@golstats/gsc-landing 1.0.35 → 1.0.36
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/gsc-landing.js +603 -613
- package/dist/gsc-landing.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/gsc-landing.umd.cjs
CHANGED
|
@@ -29,4 +29,4 @@
|
|
|
29
29
|
`).forEach(function(r){i=r.indexOf(":"),o=r.substring(0,i).trim().toLowerCase(),n=r.substring(i+1).trim(),!(!o||a[o]&&dw[o])&&(o==="set-cookie"?a[o]?a[o].push(n):a[o]=[n]:a[o]=a[o]?a[o]+", "+n:n)}),a},es=Symbol("internals");function gt(e){return e&&String(e).trim().toLowerCase()}function eo(e){return e===!1||e==null?e:k.isArray(e)?e.map(eo):String(e)}function pw(e){const a=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=o.exec(e);)a[n[1]]=n[2];return a}const uw=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ra(e,a,o,n,i){if(k.isFunction(n))return n.call(this,a,o);if(i&&(a=o),!!k.isString(a)){if(k.isString(n))return a.indexOf(n)!==-1;if(k.isRegExp(n))return n.test(a)}}function hw(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,o,n)=>o.toUpperCase()+n)}function fw(e,a){const o=k.toCamelCase(" "+a);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+o,{value:function(i,r,s){return this[n].call(this,a,i,r,s)},configurable:!0})})}class to{constructor(a){a&&this.set(a)}set(a,o,n){const i=this;function r(l,p,c){const m=gt(p);if(!m)throw new Error("header name must be a non-empty string");const u=k.findKey(i,m);(!u||i[u]===void 0||c===!0||c===void 0&&i[u]!==!1)&&(i[u||p]=eo(l))}const s=(l,p)=>k.forEach(l,(c,m)=>r(c,m,p));return k.isPlainObject(a)||a instanceof this.constructor?s(a,o):k.isString(a)&&(a=a.trim())&&!uw(a)?s(mw(a),o):a!=null&&r(o,a,n),this}get(a,o){if(a=gt(a),a){const n=k.findKey(this,a);if(n){const i=this[n];if(!o)return i;if(o===!0)return pw(i);if(k.isFunction(o))return o.call(this,i,n);if(k.isRegExp(o))return o.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,o){if(a=gt(a),a){const n=k.findKey(this,a);return!!(n&&this[n]!==void 0&&(!o||Ra(this,this[n],n,o)))}return!1}delete(a,o){const n=this;let i=!1;function r(s){if(s=gt(s),s){const l=k.findKey(n,s);l&&(!o||Ra(n,n[l],l,o))&&(delete n[l],i=!0)}}return k.isArray(a)?a.forEach(r):r(a),i}clear(a){const o=Object.keys(this);let n=o.length,i=!1;for(;n--;){const r=o[n];(!a||Ra(this,this[r],r,a,!0))&&(delete this[r],i=!0)}return i}normalize(a){const o=this,n={};return k.forEach(this,(i,r)=>{const s=k.findKey(n,r);if(s){o[s]=eo(i),delete o[r];return}const l=a?hw(r):String(r).trim();l!==r&&delete o[r],o[l]=eo(i),n[l]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const o=Object.create(null);return k.forEach(this,(n,i)=>{n!=null&&n!==!1&&(o[i]=a&&k.isArray(n)?n.join(", "):n)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,o])=>a+": "+o).join(`
|
|
30
30
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...o){const n=new this(a);return o.forEach(i=>n.set(i)),n}static accessor(a){const o=(this[es]=this[es]={accessors:{}}).accessors,n=this.prototype;function i(r){const s=gt(r);o[s]||(fw(n,r),o[s]=!0)}return k.isArray(a)?a.forEach(i):i(a),this}}to.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),k.reduceDescriptors(to.prototype,({value:e},a)=>{let o=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(n){this[o]=n}}}),k.freezeMethods(to);const Fe=to;function Ia(e,a){const o=this||za,n=a||o,i=Fe.from(n.headers);let r=n.data;return k.forEach(e,function(s){r=s.call(o,r,i.normalize(),a?a.status:void 0)}),i.normalize(),r}function ts(e){return!!(e&&e.__CANCEL__)}function yt(e,a,o){L.call(this,e??"canceled",L.ERR_CANCELED,a,o),this.name="CanceledError"}k.inherits(yt,L,{__CANCEL__:!0});function gw(e,a,o){const n=o.config.validateStatus;!o.status||!n||n(o.status)?e(o):a(new L("Request failed with status code "+o.status,[L.ERR_BAD_REQUEST,L.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}const yw=Oe.isStandardBrowserEnv?function(){return{write:function(e,a,o,n,i,r){const s=[];s.push(e+"="+encodeURIComponent(a)),k.isNumber(o)&&s.push("expires="+new Date(o).toGMTString()),k.isString(n)&&s.push("path="+n),k.isString(i)&&s.push("domain="+i),r===!0&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){const a=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function bw(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function ww(e,a){return a?e.replace(/\/+$/,"")+"/"+a.replace(/^\/+/,""):e}function os(e,a){return e&&!bw(a)?ww(e,a):a}const _w=Oe.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");let o;function n(i){let r=i;return e&&(a.setAttribute("href",r),r=a.href),a.setAttribute("href",r),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:a.pathname.charAt(0)==="/"?a.pathname:"/"+a.pathname}}return o=n(window.location.href),function(i){const r=k.isString(i)?n(i):i;return r.protocol===o.protocol&&r.host===o.host}}():function(){return function(){return!0}}();function Sw(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function kw(e,a){e=e||10;const o=new Array(e),n=new Array(e);let i=0,r=0,s;return a=a!==void 0?a:1e3,function(l){const p=Date.now(),c=n[r];s||(s=p),o[i]=l,n[i]=p;let m=r,u=0;for(;m!==i;)u+=o[m++],m=m%e;if(i=(i+1)%e,i===r&&(r=(r+1)%e),p-s<a)return;const g=c&&p-c;return g?Math.round(u*1e3/g):void 0}}function as(e,a){let o=0;const n=kw(50,250);return i=>{const r=i.loaded,s=i.lengthComputable?i.total:void 0,l=r-o,p=n(l),c=r<=s;o=r;const m={loaded:r,total:s,progress:s?r/s:void 0,bytes:l,rate:p||void 0,estimated:p&&s&&c?(s-r)/p:void 0,event:i};m[a?"download":"upload"]=!0,e(m)}}const Cw=typeof XMLHttpRequest<"u",Bw=Cw&&function(e){return new Promise(function(a,o){let n=e.data;const i=Fe.from(e.headers).normalize(),r=e.responseType;let s;function l(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}let p;k.isFormData(n)&&(Oe.isStandardBrowserEnv||Oe.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.getContentType(/^\s*multipart\/form-data/)?k.isString(p=i.getContentType())&&i.setContentType(p.replace(/^\s*(multipart\/form-data);+/,"$1")):i.setContentType("multipart/form-data"));let c=new XMLHttpRequest;if(e.auth){const d=e.auth.username||"",h=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(d+":"+h))}const m=os(e.baseURL,e.url);c.open(e.method.toUpperCase(),Xi(m,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function u(){if(!c)return;const d=Fe.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),h={data:!r||r==="text"||r==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:d,config:e,request:c};gw(function(f){a(f),l()},function(f){o(f),l()},h),c=null}if("onloadend"in c?c.onloadend=u:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(u)},c.onabort=function(){c&&(o(new L("Request aborted",L.ECONNABORTED,e,c)),c=null)},c.onerror=function(){o(new L("Network Error",L.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let d=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const h=e.transitional||Yi;e.timeoutErrorMessage&&(d=e.timeoutErrorMessage),o(new L(d,h.clarifyTimeoutError?L.ETIMEDOUT:L.ECONNABORTED,e,c)),c=null},Oe.isStandardBrowserEnv){const d=(e.withCredentials||_w(m))&&e.xsrfCookieName&&yw.read(e.xsrfCookieName);d&&i.set(e.xsrfHeaderName,d)}n===void 0&&i.setContentType(null),"setRequestHeader"in c&&k.forEach(i.toJSON(),function(d,h){c.setRequestHeader(h,d)}),k.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),r&&r!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",as(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",as(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=d=>{c&&(o(!d||d.type?new yt(null,e,c):d),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const g=Sw(m);if(g&&Oe.protocols.indexOf(g)===-1){o(new L("Unsupported protocol "+g+":",L.ERR_BAD_REQUEST,e));return}c.send(n||null)})},Fa={http:Xb,xhr:Bw};k.forEach(Fa,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const ns=e=>`- ${e}`,Ew=e=>k.isFunction(e)||e===null||e===!1,rs={getAdapter:e=>{e=k.isArray(e)?e:[e];const{length:a}=e;let o,n;const i={};for(let r=0;r<a;r++){o=e[r];let s;if(n=o,!Ew(o)&&(n=Fa[(s=String(o)).toLowerCase()],n===void 0))throw new L(`Unknown adapter '${s}'`);if(n)break;i[s||"#"+r]=n}if(!n){const r=Object.entries(i).map(([l,p])=>`adapter ${l} `+(p===!1?"is not supported by the environment":"is not available in the build"));let s=a?r.length>1?`since :
|
|
31
31
|
`+r.map(ns).join(`
|
|
32
|
-
`):" "+ns(r[0]):"as no adapter specified";throw new L("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:Fa};function Pa(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new yt(null,e)}function is(e){return Pa(e),e.headers=Fe.from(e.headers),e.data=Ia.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),rs.getAdapter(e.adapter||za.adapter)(e).then(function(a){return Pa(e),a.data=Ia.call(e,e.transformResponse,a),a.headers=Fe.from(a.headers),a},function(a){return ts(a)||(Pa(e),a&&a.response&&(a.response.data=Ia.call(e,e.transformResponse,a.response),a.response.headers=Fe.from(a.response.headers))),Promise.reject(a)})}const ss=e=>e instanceof Fe?e.toJSON():e;function et(e,a){a=a||{};const o={};function n(c,m,u){return k.isPlainObject(c)&&k.isPlainObject(m)?k.merge.call({caseless:u},c,m):k.isPlainObject(m)?k.merge({},m):k.isArray(m)?m.slice():m}function i(c,m,u){if(k.isUndefined(m)){if(!k.isUndefined(c))return n(void 0,c,u)}else return n(c,m,u)}function r(c,m){if(!k.isUndefined(m))return n(void 0,m)}function s(c,m){if(k.isUndefined(m)){if(!k.isUndefined(c))return n(void 0,c)}else return n(void 0,m)}function l(c,m,u){if(u in a)return n(c,m);if(u in e)return n(void 0,c)}const p={url:r,method:r,data:r,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(c,m)=>i(ss(c),ss(m),!0)};return k.forEach(Object.keys(Object.assign({},e,a)),function(c){const m=p[c]||i,u=m(e[c],a[c],c);k.isUndefined(u)&&m!==l||(o[c]=u)}),o}const ls="1.5.1",La={};["object","boolean","number","function","string","symbol"].forEach((e,a)=>{La[e]=function(o){return typeof o===e||"a"+(a<1?"n ":" ")+e}});const cs={};La.transitional=function(e,a,o){function n(i,r){return"[Axios v"+ls+"] Transitional option '"+i+"'"+r+(o?". "+o:"")}return(i,r,s)=>{if(e===!1)throw new L(n(r," has been removed"+(a?" in "+a:"")),L.ERR_DEPRECATED);return a&&!cs[r]&&(cs[r]=!0,console.warn(n(r," has been deprecated since v"+a+" and will be removed in the near future"))),e?e(i,r,s):!0}};function Nw(e,a,o){if(typeof e!="object")throw new L("options must be an object",L.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const r=n[i],s=a[r];if(s){const l=e[r],p=l===void 0||s(l,r,e);if(p!==!0)throw new L("option "+r+" must be "+p,L.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new L("Unknown option "+r,L.ERR_BAD_OPTION)}}const Da={assertOptions:Nw,validators:La},Me=Da.validators;class oo{constructor(a){this.defaults=a,this.interceptors={request:new Ki,response:new Ki}}request(a,o){typeof a=="string"?(o=o||{},o.url=a):o=a||{},o=et(this.defaults,o);const{transitional:n,paramsSerializer:i,headers:r}=o;n!==void 0&&Da.assertOptions(n,{silentJSONParsing:Me.transitional(Me.boolean),forcedJSONParsing:Me.transitional(Me.boolean),clarifyTimeoutError:Me.transitional(Me.boolean)},!1),i!=null&&(k.isFunction(i)?o.paramsSerializer={serialize:i}:Da.assertOptions(i,{encode:Me.function,serialize:Me.function},!0)),o.method=(o.method||this.defaults.method||"get").toLowerCase();let s=r&&k.merge(r.common,r[o.method]);r&&k.forEach(["delete","get","head","post","put","patch","common"],h=>{delete r[h]}),o.headers=Fe.concat(s,r);const l=[];let p=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(o)===!1||(p=p&&h.synchronous,l.unshift(h.fulfilled,h.rejected))});const c=[];this.interceptors.response.forEach(function(h){c.push(h.fulfilled,h.rejected)});let m,u=0,g;if(!p){const h=[is.bind(this),void 0];for(h.unshift.apply(h,l),h.push.apply(h,c),g=h.length,m=Promise.resolve(o);u<g;)m=m.then(h[u++],h[u++]);return m}g=l.length;let d=o;for(u=0;u<g;){const h=l[u++],f=l[u++];try{d=h(d)}catch(y){f.call(this,y);break}}try{m=is.call(this,d)}catch(h){return Promise.reject(h)}for(u=0,g=c.length;u<g;)m=m.then(c[u++],c[u++]);return m}getUri(a){a=et(this.defaults,a);const o=os(a.baseURL,a.url);return Xi(o,a.params,a.paramsSerializer)}}k.forEach(["delete","get","head","options"],function(e){oo.prototype[e]=function(a,o){return this.request(et(o||{},{method:e,url:a,data:(o||{}).data}))}}),k.forEach(["post","put","patch"],function(e){function a(o){return function(n,i,r){return this.request(et(r||{},{method:e,headers:o?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}oo.prototype[e]=a(),oo.prototype[e+"Form"]=a(!0)});const ao=oo;class Ma{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(i){o=i});const n=this;this.promise.then(i=>{if(!n._listeners)return;let r=n._listeners.length;for(;r-- >0;)n._listeners[r](i);n._listeners=null}),this.promise.then=i=>{let r;const s=new Promise(l=>{n.subscribe(l),r=l}).then(i);return s.cancel=function(){n.unsubscribe(r)},s},a(function(i,r,s){n.reason||(n.reason=new yt(i,r,s),o(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const o=this._listeners.indexOf(a);o!==-1&&this._listeners.splice(o,1)}static source(){let a;return{token:new Ma(function(o){a=o}),cancel:a}}}const xw=Ma;function Tw(e){return function(a){return e.apply(null,a)}}function Ow(e){return k.isObject(e)&&e.isAxiosError===!0}const ja={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(ja).forEach(([e,a])=>{ja[a]=e});const Vw=ja;function ds(e){const a=new ao(e),o=Ri(ao.prototype.request,a);return k.extend(o,ao.prototype,a,{allOwnKeys:!0}),k.extend(o,a,null,{allOwnKeys:!0}),o.create=function(n){return ds(et(e,n))},o}const q=ds(za);q.Axios=ao,q.CanceledError=yt,q.CancelToken=xw,q.isCancel=ts,q.VERSION=ls,q.toFormData=Qt,q.AxiosError=L,q.Cancel=q.CanceledError,q.all=function(e){return Promise.all(e)},q.spread=Tw,q.isAxiosError=Ow,q.mergeConfig=et,q.AxiosHeaders=Fe,q.formToJSON=e=>Qi(k.isHTMLForm(e)?new FormData(e):e),q.getAdapter=rs.getAdapter,q.HttpStatusCode=Vw,q.default=q;const ms=q,$w=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},va={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},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}},mounted(){this.getScroll()},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*2+this.arrowsPadding*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)}}},ps=()=>{t.useCssVars(e=>({cc900658:e.backgroundColor,"243d0048":e.height,"12ed9ef4":e.arrowsPosition,"434aae32":e.arrowsPadding+"px","6c491439":e.arrowsBackground,"1a7aa8c4":e.arrowsHeight*2+"px","6e4c9ee1":e.arrowsWidth*2+"px","2876691d":e.arrowsRadius,"0df470b7":e.arrowsBorder,27766434:e.arrowsMargin+"px","122404b1":e.arrowsContainerBgL,"122404b7":e.arrowsContainerBgR,"31486e15":e.scrollColor}))},us=va.setup;va.setup=us?(e,a)=>(ps(),us(e,a)):ps;const Aw={class:"scrollable-container"},zw={class:"scrollable-arrows"},Rw=["width","height","viewBox"],Iw=["stroke"],Fw={class:"scrollable-wrapper"},Pw={class:"scrollable-arrows"},Lw=["width","height","viewBox"],Dw=["stroke"];function Mw(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",Aw,[o.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",r.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...s)=>r.scrollLeft&&r.scrollLeft(...s))},[t.createElementVNode("div",zw,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:r.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:o.arrowsColor},null,8,Iw)],8,Rw))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content",ref:"content",onScroll:a[1]||(a[1]=(...s)=>r.getScroll&&r.getScroll(...s))},[t.createElementVNode("div",Fw,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),o.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["arrows-container",r.hideShowRightArrow]),onClick:a[2]||(a[2]=(...s)=>r.scrollRight&&r.scrollRight(...s))},[t.createElementVNode("div",Pw,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:r.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:o.arrowsColor},null,8,Dw)],8,Lw))])],2)):t.createCommentVNode("",!0)])}const jw=$w(va,[["render",Mw],["__scopeId","data-v-a717f423"]]),We=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o};let hs=null;const Wa={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)hs=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),hs.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},fs=()=>{t.useCssVars(e=>({d6f07504:e.colorBackgroundHome+"45","6d0848cf":e.colorBackgroundAway+"45","524ee4ec":e.colorBackgroundHome,"524bd2fb":e.colorBackgroundAway}))},gs=Wa.setup;Wa.setup=gs?(e,a)=>(fs(),gs(e,a)):fs;const no=e=>(t.pushScopeId("data-v-45034b51"),e=e(),t.popScopeId(),e),vw=no(()=>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)),Ww=[vw],Uw=no(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),Hw=["src"],Gw=no(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),Jw=no(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),qw=["src"],Zw=["src"],Xw={class:"text-container"};function Kw(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(r.thumbnailhighlights)},[t.createElementVNode("div",{class:t.normalizeClass(r.playbutton),onClick:a[0]||(a[0]=(...s)=>r.onclickPlayVideos&&r.onclickPlayVideos(...s))},Ww,2),o.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.date)},t.toDisplayString(o.dateGame),3)):t.createCommentVNode("",!0),o.matchday!=""&&o.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(r.containerinfogame)},[o.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.matchcontainer)},t.toDisplayString(o.matchday),3)):t.createCommentVNode("",!0),o.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(r.seasoncontainer)},t.toDisplayString(o.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),Uw,t.createElementVNode("img",{src:o.background,alt:"",class:"bkg-blackwhite position-image"},null,8,Hw),t.createElementVNode("div",{class:t.normalizeClass([r.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(r.baselogoright)},null,2),Gw,Jw,t.createElementVNode("img",{src:o.logoHome,alt:"",class:t.normalizeClass(r.teamlogo)},null,10,qw),t.createElementVNode("img",{src:o.logoAway,alt:"",class:t.normalizeClass(r.logoright)},null,10,Zw),t.createElementVNode("div",Xw,[t.createElementVNode("span",{class:t.normalizeClass(r.secondline)},t.toDisplayString(o.score),3),t.createElementVNode("div",{class:t.normalizeClass(r.titlename)},t.toDisplayString(o.titleCategory),3)])],2)}const Yw=We(Wa,[["render",Kw],["__scopeId","data-v-45034b51"]]);let ys=null;const Ua={components:{},props:{colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{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"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},firstline(){const e=this.gamesContainerWidth;return e<=400?"first-line400":e<=540?"first-line540":e<=650?"first-line650":"first-line"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},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)ys=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),ys.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},bs=()=>{t.useCssVars(e=>({"46c0698e":e.colorBackgroundHome,"12d9d27a":e.colorBackgroundHome+"36"}))},ws=Ua.setup;Ua.setup=ws?(e,a)=>(bs(),ws(e,a)):bs;const bt=e=>(t.pushScopeId("data-v-9caaef34"),e=e(),t.popScopeId(),e),Qw=bt(()=>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)),e_=[Qw],t_=bt(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),o_=["src"],a_=bt(()=>t.createElementVNode("div",{class:"base-logo"},null,-1)),n_=["src"],r_=bt(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),i_={class:"text-container"},s_={class:"player-image position-image"},l_=["src"],c_=["src"],d_=["src"],m_=bt(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1));function p_(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(r.thumbnailhighlights)},[t.createElementVNode("div",{class:t.normalizeClass(r.playbutton),onClick:a[0]||(a[0]=(...s)=>r.onclickPlayVideos&&r.onclickPlayVideos(...s))},e_,2),t_,t.createElementVNode("img",{src:o.background,alt:"",class:"bkg-blackwhite position-image"},null,8,o_),a_,t.createElementVNode("img",{src:o.logoHome,alt:"",class:t.normalizeClass(r.teamlogo)},null,10,n_),r_,t.createElementVNode("div",i_,[t.createElementVNode("span",{class:t.normalizeClass(r.firstline)},t.toDisplayString(o.namePlayer),3),t.createElementVNode("span",{class:t.normalizeClass(r.secondline),style:t.normalizeStyle(o.nameCategory=="Balones recuperados en disputa "?"font-size: 25px":"")},t.toDisplayString(o.nameCategory),7)]),t.createElementVNode("div",s_,[o.typeImg==0?(t.openBlock(),t.createElementBlock("img",{key:0,src:o.photoProfile,class:t.normalizeClass(r.playerimage)},null,10,l_)):t.createCommentVNode("",!0),o.typeImg==1?(t.openBlock(),t.createElementBlock("img",{key:1,src:o.photoProfile,alt:""},null,8,c_)):t.createCommentVNode("",!0),o.typeImg==2?(t.openBlock(),t.createElementBlock("img",{key:2,src:o.photoProfile,class:"img-number"},null,8,d_)):t.createCommentVNode("",!0)]),m_],2)}const u_=We(Ua,[["render",p_],["__scopeId","data-v-9caaef34"]]);let _s=null;const Ha={components:{},props:{colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""},nameTeam:{type:String,default:""},nameCategory:{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"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},firstline(){const e=this.gamesContainerWidth;return e<=400?"first-line400":e<=540?"first-line540":e<=650?"first-line650":"first-line"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)_s=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),_s.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Ss=()=>{t.useCssVars(e=>({"5536c7dc":e.colorBackgroundHome,"3e449276":e.colorBackgroundHome+"36"}))},ks=Ha.setup;Ha.setup=ks?(e,a)=>(Ss(),ks(e,a)):Ss;const ro=e=>(t.pushScopeId("data-v-ca6c08d9"),e=e(),t.popScopeId(),e),h_=ro(()=>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)),f_=[h_],g_=ro(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),y_=["src"],b_={width:"275",height:"125",viewBox:"0 0 275 125",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"base-logo"},w_=["fill"],__=["id"],S_=["stop-color"],k_=["stop-color"],C_=["src"],B_=ro(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),E_={class:"text-container"},N_=ro(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1));function x_(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(r.thumbnailhighlights)},[t.createElementVNode("div",{class:t.normalizeClass(r.playbutton),onClick:a[0]||(a[0]=(...s)=>r.onclickPlayVideos&&r.onclickPlayVideos(...s))},f_,2),g_,t.createElementVNode("img",{src:o.background,alt:"",class:"bkg-blackwhite position-image"},null,8,y_),(t.openBlock(),t.createElementBlock("svg",b_,[t.createElementVNode("path",{d:"M274.641 124.094L0 0.675049V124.094H274.641Z",fill:"url(#paint0_linear_7_"+o.nameTeam.replaceAll(" ","")+")"},null,8,w_),t.createElementVNode("defs",null,[t.createElementVNode("linearGradient",{id:"paint0_linear_7_"+o.nameTeam.replaceAll(" ",""),x1:"58.6578",y1:"15.5938",x2:"58.6578",y2:"124.094",gradientUnits:"userSpaceOnUse"},[t.createElementVNode("stop",{"stop-color":o.colorBackgroundHome},null,8,S_),t.createElementVNode("stop",{offset:"1","stop-color":o.colorBackgroundHome},null,8,k_)],8,__)])])),t.createElementVNode("img",{class:t.normalizeClass(r.teamlogo),src:o.logoHome,alt:""},null,10,C_),B_,t.createElementVNode("div",E_,[t.createElementVNode("span",{class:t.normalizeClass(r.firstline)},[o.nameTeam!="Local"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(o.nameTeam),1)],64)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(r.secondline)},t.toDisplayString(o.nameCategory),3)]),N_],2)}const T_=We(Ha,[["render",x_],["__scopeId","data-v-ca6c08d9"]]);let Cs=null;const Ga={components:{},props:{colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""},nameTeam:{type:String,default:""},nameCategory:{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"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},firstline(){const e=this.gamesContainerWidth;return e<=400?"first-line400":e<=540?"first-line540":e<=650?"first-line650":"first-line"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)Cs=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Cs.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Bs=()=>{t.useCssVars(e=>({"17b44fa7":e.colorBackgroundHome,f1e257fe:e.colorBackgroundHome+"36"}))},Es=Ga.setup;Ga.setup=Es?(e,a)=>(Bs(),Es(e,a)):Bs;const io=e=>(t.pushScopeId("data-v-49b4e56b"),e=e(),t.popScopeId(),e),O_=io(()=>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)),V_=[O_],$_=io(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),A_=["src"],z_={width:"275",height:"125",viewBox:"0 0 275 125",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"base-logo-away"},R_=["fill"],I_=["id"],F_=["stop-color"],P_=["stop-color"],L_=["src"],D_=io(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),M_={class:"text-container"},j_=io(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1));function v_(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(r.thumbnailhighlights)},[t.createElementVNode("div",{class:t.normalizeClass(r.playbutton),onClick:a[0]||(a[0]=(...s)=>r.onclickPlayVideos&&r.onclickPlayVideos(...s))},V_,2),$_,t.createElementVNode("img",{src:o.background,alt:"",class:"bkg-blackwhite position-image"},null,8,A_),(t.openBlock(),t.createElementBlock("svg",z_,[t.createElementVNode("path",{d:"M274.641 124.094L0 0.675049V124.094H274.641Z",fill:"url(#paint0_linear_7_"+o.nameTeam.replaceAll(" ","")+")"},null,8,R_),t.createElementVNode("defs",null,[t.createElementVNode("linearGradient",{id:"paint0_linear_7_"+o.nameTeam.replaceAll(" ",""),x1:"58.6578",y1:"15.5938",x2:"58.6578",y2:"124.094",gradientUnits:"userSpaceOnUse"},[t.createElementVNode("stop",{"stop-color":o.colorBackgroundAway},null,8,F_),t.createElementVNode("stop",{offset:"1","stop-color":o.colorBackgroundAway},null,8,P_)],8,I_)])])),t.createElementVNode("img",{class:t.normalizeClass(r.teamlogo),src:o.logoHome,alt:""},null,10,L_),D_,t.createElementVNode("div",M_,[t.createElementVNode("span",{class:t.normalizeClass(r.firstline)},[o.nameTeam!="Away"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(o.nameTeam),1)],64)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(r.secondline)},t.toDisplayString(o.nameCategory),3)]),j_],2)}const W_=We(Ga,[["render",v_],["__scopeId","data-v-49b4e56b"]]);let Ns=null;const Ja={components:{},props:{colorFontHome:{type:String,default:"#000000"},colorFontAway:{type:String,default:"#000000"},type:{type:Number,default:0},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{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"},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"},texttitle2(){const e=this.gamesContainerWidth;return e<=400?"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)Ns=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Ns.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},xs=()=>{t.useCssVars(e=>({"102d345c":e.colorBackgroundHome,"1033583e":e.colorBackgroundAway,"2c786ece":e.colorBackgroundAway+"62","53f7e0b6":e.colorBackgroundHome+"36"}))},Ts=Ja.setup;Ja.setup=Ts?(e,a)=>(xs(),Ts(e,a)):xs;const so=e=>(t.pushScopeId("data-v-3a68172d"),e=e(),t.popScopeId(),e),U_=so(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),H_=so(()=>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)),G_=[H_],J_={class:"player-container"},q_=["src"],Z_=["src"],X_=["src"],K_={class:"container-score"},Y_=["src"],Q_=["src"],e5=["src"],t5=so(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),o5=so(()=>t.createElementVNode("div",{class:"gradient-color"},null,-1));function a5(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(r.thumbnailhighlights)},[U_,t.createElementVNode("div",{class:t.normalizeClass(r.playbutton),onClick:a[0]||(a[0]=(...s)=>r.onclickPlayVideos&&r.onclickPlayVideos(...s))},G_,2),t.createElementVNode("div",J_,[o.type==0?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(r.texttitle)},t.toDisplayString(o.nameCategory),3)):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(r.texttitle2)},t.toDisplayString(o.nameCategory),3)),o.typeImg==0?(t.openBlock(),t.createElementBlock("img",{key:2,src:o.photoProfile,class:t.normalizeClass(r.playerimage)},null,10,q_)):t.createCommentVNode("",!0),o.typeImg==1?(t.openBlock(),t.createElementBlock("img",{key:3,src:o.photoProfile,alt:""},null,8,Z_)):t.createCommentVNode("",!0),o.typeImg==2?(t.openBlock(),t.createElementBlock("img",{key:4,src:o.photoProfile,class:"img-number"},null,8,X_)):t.createCommentVNode("",!0),t.createElementVNode("div",K_,[t.createElementVNode("div",{class:t.normalizeClass(r.hometeam)},[t.createElementVNode("span",{class:t.normalizeClass(r.teamname),style:t.normalizeStyle({color:o.colorFontAway})},t.toDisplayString(o.nameHomeTeam),7),t.createElementVNode("img",{src:o.logoHome,alt:"",class:t.normalizeClass(r.teamlogo)},null,10,Y_),t.createElementVNode("span",{class:t.normalizeClass(r.teamscore)},t.toDisplayString(o.scoreHome),3)],2),t.createElementVNode("span",{class:t.normalizeClass(r.points)},":",2),t.createElementVNode("div",{class:t.normalizeClass(r.awayteam)},[t.createElementVNode("span",{class:t.normalizeClass(r.teamscore)},t.toDisplayString(o.scoreAway),3),t.createElementVNode("img",{src:o.logoAway,alt:"",class:t.normalizeClass(r.teamlogo)},null,10,Q_),t.createElementVNode("span",{class:t.normalizeClass(r.teamname),style:t.normalizeStyle({color:o.colorFontAway})},t.toDisplayString(o.nameAwayTeam),7)],2)])]),t.createElementVNode("img",{src:o.background,alt:"",class:"bkg-blackwhite position-image"},null,8,e5),t5,o5],2)}const n5=We(Ja,[["render",a5],["__scopeId","data-v-3a68172d"]]);let Os=null;const qa={components:{},props:{colorFont:{type:String,default:"#000000"},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{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"},firstline(){const e=this.gamesContainerWidth;return e<=400?"first-line400":e<=540?"first-line540":e<=650?"first-line650":"first-line"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},playername(){const e=this.gamesContainerWidth;return e<=400?"player-name400":e<=540?"player-name540":e<=650?"player-name650":"player-name"},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)Os=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Os.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Vs=()=>{t.useCssVars(e=>({"7f6829cd":e.colorBackgroundHome+"30","1ad47d61":e.colorBackgroundHome}))},$s=qa.setup;qa.setup=$s?(e,a)=>(Vs(),$s(e,a)):Vs;const lo=e=>(t.pushScopeId("data-v-cc315132"),e=e(),t.popScopeId(),e),r5=lo(()=>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)),i5=[r5],s5={class:"player-image position-image"},l5=["src"],c5=["src"],d5=["src"],m5=["src"],p5=lo(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),u5=["src"],h5=lo(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),f5={class:"text-container"},g5=lo(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),y5={class:"base-logo",width:"91",height:"216",viewBox:"0 0 91 216",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b5=["fill"];function w5(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(r.thumbnailhighlights)},[t.createElementVNode("div",{class:t.normalizeClass(r.playbutton),onClick:a[0]||(a[0]=(...s)=>r.onclickPlayVideos&&r.onclickPlayVideos(...s))},i5,2),t.createElementVNode("div",s5,[o.typeImg==0?(t.openBlock(),t.createElementBlock("img",{key:0,src:o.photoProfile,class:t.normalizeClass(r.playerimage)},null,10,l5)):t.createCommentVNode("",!0),o.typeImg==1?(t.openBlock(),t.createElementBlock("img",{key:1,src:o.photoProfile,alt:""},null,8,c5)):t.createCommentVNode("",!0),o.typeImg==2?(t.openBlock(),t.createElementBlock("img",{key:2,src:o.photoProfile,class:"img-number"},null,8,d5)):t.createCommentVNode("",!0)]),t.createElementVNode("img",{src:o.logoHome,alt:"",class:"team-logo"},null,8,m5),p5,t.createElementVNode("img",{src:o.background,alt:"",class:"bkg-blackwhite position-image"},null,8,u5),h5,t.createElementVNode("div",f5,[t.createElementVNode("span",{class:t.normalizeClass(r.firstline)},"MEJORES JUGADAS",2),t.createElementVNode("span",{class:t.normalizeClass(r.secondline)},t.toDisplayString(o.nameCategory),3),t.createElementVNode("div",{class:t.normalizeClass(r.playername),style:t.normalizeStyle({color:o.colorFont})},t.toDisplayString(o.namePlayer),7)]),g5,(t.openBlock(),t.createElementBlock("svg",y5,[t.createElementVNode("path",{d:"M91.5 216L0 -0.5H91.5V216Z",fill:o.colorBackgroundHome},null,8,b5)]))],2)}const _5=We(qa,[["render",w5],["__scopeId","data-v-cc315132"]]);function S5(e){const a=t.ref({width:0,height:0});function o(){const n=e.value.getBoundingClientRect();a.value.width=n.width,a.value.height=n.height}return t.onMounted(()=>{o(),window.addEventListener("resize",o)}),t.onUnmounted(()=>{window.removeEventListener("resize",o)}),{elementSize:a}}const k5="_ptg_lp0fw_5",C5="_ptgtitle_lp0fw_15",B5="_ptgtitle450_lp0fw_47",E5="_pgtcontainercard_lp0fw_79",N5="_pgtcontainercard350_lp0fw_89",x5={ptg:k5,ptgtitle:C5,ptgtitle450:B5,pgtcontainercard:E5,pgtcontainercard350:N5},Za={components:{GSCSlider:jw,GSCThumbnailCategory:u_,GSCThumbnailCategoryTeam:T_,GSCThumbnailCategoryTeamAway:W_,GSCThumbnailHighlightGamePlayer:n5,GSCThumbnailSummaryPlayer:_5,GSCThumbnailHighlightGameHistoric:Yw},setup(){const e=t.ref("ptgDiv"),{elementSize:a}=S5(e);return{ptgDiv:e,elementSize:a}},props:{title:{type:String,default:"100% de sus participaciones en cada partido:"},type:{type:Number,default:0},data:{type:Object,default:()=>{}},backgroundColor:{type:String,default:"#0D1D29"},backgroundFooter:{type:String,default:"#192733"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsScrollHide:{type:Boolean,default:!1},arrowsHideOnNoScroll:{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{token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",printData:[],teamsInfo:[],playerPhoto:!0,homeTeam:0,awayTeam:0,goalCategories:[12,55,"35_r","54_r"],resumeCategories:[607,608,12,55,54,35,14,52,15,53,466,477]}},watch:{data:{immediate:!0,handler(e){this.getTeamsInfo(e),this.getStats(e)}}},computed:{ptgtitleClass(){return this.elementSize.width<=450?this.$style.ptgtitle450:this.$style.ptgtitle},pgtcontainercardClass(){return this.elementSize.width<=350?this.$style.pgtcontainercard350:this.$style.pgtcontainercard}},methods:{onclickPlayVideos(e){let a=[],o=e.data.game_id?[e.data.game_id]:null;e.type==2?e.data.position_id==1?e.data.category==0?a=[55,324,323,608,39,774,802,52,53,40,54]:a=e.data.category:e.data.category==0?a=e.isAllPlays?[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]:[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]:a=e.data.category:e.type==3?e.data.category==0?a=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:a=e.data.category:e.data.category!=0?a=e.data.category:a=[607,608,12,55,54,35,14,52,15,53,466,477],this.data.isPrematch===1&&(o=null);const n=[1,2,3];let i={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:e.categories&&e.categories.length?e.categories:a,gameIds:o,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.matchResult]:n,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(i.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",i)},onClickVideos(e){this.$emit("onClickVideos",e)},onClickCard(e){this.$emit("onClickCard",e)},async getTeamsInfo(e){const a=await ms.create({headers:{Authorization:`${this.token}`}}).get("https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/"+e.season);for(let o=0;o<a.data.teams.length;o++)this.teamsInfo[a.data.teams[o].team_id]=a.data.teams[o]},async getStats(e){const a=ms.create({headers:{Authorization:`${this.token}`}});var o=[],n={},i={};if(this.type==0){i=await a.get("https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/"+e.season+"/"+e.player);for(let r=0;r<i.data.seasons[e.season].games_played.length;r++)n={player_id:e.player,color:i.data.info_thumbnails.colors.background_color,colorfont:i.data.info_thumbnails.colors.font_color,photo_profile:i.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.info_thumbnails.images.player_in_action[0]:"https://az755631.vo.msecnd.net/players-profile/"+e.player+".png",team_logo:"https://az755631.vo.msecnd.net/teams-150/"+i.data.seasons[e.season].games_played[r].home_team+".png",player_name:i.data.seasons[e.season].games_played[r].home_team_acronym+" "+i.data.seasons[e.season].games_played[r].home_team_score+" : "+i.data.seasons[e.season].games_played[r].visiting_team_score+" "+i.data.seasons[e.season].games_played[r].visiting_team_acronym,team_id:i.data.seasons[e.season].games_played[r].game_id,team_id_b:i.data.seasons[e.season].games_played[r].home_team,season_id:i.data.seasons[e.season].games_played[r].season_id,name:"",category:0,team_id:i.data.team_id,game_id:i.data.seasons[e.season].games_played[r].game_id,position_id:i.data.position_id,scorehome:i.data.seasons[e.season].games_played[r].home_team_score,scoreaway:i.data.seasons[e.season].games_played[r].visiting_team_score,hometeamacronym:i.data.seasons[e.season].games_played[r].home_team_acronym,visitingteamacronym:i.data.seasons[e.season].games_played[r].visiting_team_acronym,seasonname:i.data.seasons[e.season].name,match:i.data.seasons[e.season].games_played[r].matchday_name.replace("Matchday","Jor"),score:i.data.seasons[e.season].games_played[r].home_team_score+" : "+i.data.seasons[e.season].games_played[r].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.info_thumbnails.images.background_player_in_action[0],backgroundhome:i.data.seasons[e.season].games_played[r].info_thumbnails.home_colors.background_color,backgroundaway:i.data.seasons[e.season].games_played[r].info_thumbnails.away_colors.background_color,colorfont_home:i.data.seasons[e.season].games_played[r].info_thumbnails.home_colors.font_color,colorfont_away:i.data.seasons[e.season].games_played[r].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+i.data.seasons[e.season].games_played[r].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+i.data.seasons[e.season].games_played[r].visiting_team+".png",total:i.data.seasons[e.season].games_played[r].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+i.data.seasons[e.season].games_played[r].home_team+"_"+i.data.seasons[e.season].games_played[r].season_id+"_r1.jpg"},o.push(n)}if(this.type==1){i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/teams/"+e.team);for(let r=0;r<i.data.categories.length;r++){this.playerPhoto=!1;const s=Math.floor(Math.random()*i.data.categories[r].info_thumbnails.images.background_default_categories.length),l=Math.floor(Math.random()*i.data.categories[r].info_thumbnails.images.background_default_teams.length);n={player_action:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.categories[r].info_thumbnails.images.background_default_categories[s],background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.categories[r].info_thumbnails.images.background_default_teams[l],color:i.data.categories[r].info_thumbnails.colors.background_color,team_logo:"https://az755631.vo.msecnd.net/teams-80/"+i.data.categories[r].info_thumbnails.team_logo,player_name:i.data.categories[r].category_name,team_name:this.teamsInfo[i.data.team_id].colloquial_name,team_id:i.data.team_id,colorfont:i.data.categories[r].info_thumbnails.colors.font_color,team_id_b:i.data.team_id,category:i.data.categories[r].categories,season_id:i.data.season_id,total:i.data.categories[r].total,background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+i.data.team_id+"_"+i.data.season_id+"_r1.jpg"},o.push(n)}}if(this.type==2){i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/players/"+e.player);for(let r=0;r<i.data.categories.length;r++){this.playerPhoto=!1;const s=Math.floor(Math.random()*i.data.categories[r].info_thumbnails.images.player_in_action.length),l=Math.floor(Math.random()*i.data.categories[r].info_thumbnails.images.background_default_categories.length);n={player_action:i.data.categories[r].info_thumbnails.images.player_in_action[s]?"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.categories[r].info_thumbnails.images.player_in_action[s]:"https://az755631.vo.msecnd.net/players-profile/"+e.player+".png",background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.categories[r].info_thumbnails.images.background_default_categories[l],color:i.data.categories[r].info_thumbnails.colors.background_color,team_logo:"https://az755631.vo.msecnd.net/teams-80/"+i.data.categories[r].info_thumbnails.team_logo,player_name:i.data.categories[r].category_name,season_id:e.season,colorfont:i.data.categories[r].info_thumbnails.colors.font_color,player_id:e.player,team_id:i.data.categories[r].info_thumbnails.colors.team_id,category:i.data.categories[r].categories,total:i.data.categories[r].total,background_card:"https://az755631.vo.msecnd.net/players-profile/"+e.player+".png"},o.push(n)}}if(this.type==3){this.playerPhoto=!1,i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/games/"+e.game);for(let r=0;r<i.data.games[0].players.length;r++){const s=Math.floor(Math.random()*i.data.games[0].players[r].info_thumbnails.images.background_player_in_action.length),l=Math.floor(Math.random()*i.data.games[0].players[r].info_thumbnails.images.player_in_action.length);n={colorbackgroundhome:i.data.games[0].players[r].info_thumbnails.colors.background_color,colorbackgroundaway:"",nameplayer:i.data.games[0].players[r].player_name,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.games[0].players[r].info_thumbnails.images.background_player_in_action[s],namecategory:"RESUMEN",namehometeam:"",nameawayteam:"",category:0,colorfont:i.data.games[0].players[r].info_thumbnails.colors.font_color,team_id:i.data.games[0].players[r].team_id,player_id:i.data.games[0].players[r].player_id,game_id:i.data.games[0].game_id,season_id:i.data.season_id,logohome:i.data.games[0].players[r].team_logo,photoprofile:i.data.games[0].players[r].info_thumbnails.images.player_in_action[l]?"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.games[0].players[r].info_thumbnails.images.player_in_action[l]:"https://az755631.vo.msecnd.net/players-profile/"+i.data.games[0].players[r].player_id+".png",logoaway:"",scoreaway:"",scorehome:""},o.push(n)}}if(this.type==4){console.log("Hola nuva mente 44444: "),console.log(i.data),this.playerPhoto=!1,i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/specifics-plays/seasons/"+e.season+"/games/"+e.game);for(let r=0;r<i.data.home_team.categories.length;r++){const s=Math.floor(Math.random()*i.data.home_team.categories[r].info_thumbnails.images.background_default_teams.length);n={game_id:i.data.game_id,season_id:i.data.season_id,team_id:i.data.home_team.team_id,category:i.data.home_team.categories[r].categories.concat(i.data.home_team.categories[r].rival_categories),background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.home_team.categories[r].info_thumbnails.images.background_default_categories[s],player_action:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.home_team.categories[r].info_thumbnails.images.background_default_categories[s],team_logo:"https://az755631.vo.msecnd.net/teams-150/"+i.data.home_team.team_id+".png",color:i.data.home_team.categories[r].info_thumbnails.colors.background_color,colorfont:i.data.home_team.categories[r].info_thumbnails.colors.font_color,player_name:i.data.home_team.categories[r].category_name,total:i.data.home_team.categories[r].total,team_name:"Local",background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+i.data.home_team.team_id+"_"+i.data.season_id+"_r1.jpg"},o.push(n)}}if(this.type==5){this.playerPhoto=!1,i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/specifics-plays/seasons/"+e.season+"/games/"+e.game);for(let r=0;r<i.data.visiting_team.categories.length;r++){const s=Math.floor(Math.random()*i.data.visiting_team.categories[r].info_thumbnails.images.background_default_categories.length);n={game_id:i.data.game_id,season_id:i.data.season_id,team_id:i.data.visiting_team.team_id,category:i.data.visiting_team.categories[r].categories.concat(i.data.visiting_team.categories[r].rival_categories),background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.visiting_team.categories[r].info_thumbnails.images.background_default_categories[s],player_action:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.visiting_team.categories[r].info_thumbnails.images.background_default_categories[s],team_logo:"https://az755631.vo.msecnd.net/teams-150/"+i.data.visiting_team.team_id+".png",team_name:"Away",color:i.data.visiting_team.categories[r].info_thumbnails.colors.background_color,colorfont:i.data.visiting_team.categories[r].info_thumbnails.colors.font_color,player_name:i.data.visiting_team.categories[r].category_name,total:i.data.visiting_team.categories[r].total,background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+i.data.visiting_team.team_id+"_"+i.data.season_id+"_r1.jpg"},o.push(n)}}if(this.type==6){i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/teams/"+e.team+"/categories/"+e.category);for(let r=0;r<i.data.best_plays.length;r++)n={category:i.data.best_plays[r].categories,team_id:i.data.team_id,game_id:i.data.best_plays[r].game_id,season_id:i.data.season_id,backgroundhome:i.data.best_plays[r].info_thumbnails.home_colors.background_color,backgroundaway:i.data.best_plays[r].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+i.data.best_plays[r].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+i.data.best_plays[r].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.best_plays[r].info_thumbnails.images.background_default_categories[0],match:"",seasonname:"",score:i.data.best_plays[r].score[0]+" : "+i.data.best_plays[r].score[1]},o.push(n)}if(this.type==7){i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/teams/"+e.team+"/categories/"+e.category);for(let r=0;r<i.data.best_plays.length;r++)n={category:i.data.best_plays[r].categories,team_id:i.data.team_id,game_id:i.data.best_plays[r].game_id,season_id:i.data.season_id,backgroundhome:i.data.best_plays[r].info_thumbnails.home_colors.background_color,colorfont_home:i.data.best_plays[r].info_thumbnails.home_colors.font_color,colorfont_away:i.data.best_plays[r].info_thumbnails.away_colors.font_color,backgroundaway:i.data.best_plays[r].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+i.data.best_plays[r].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+i.data.best_plays[r].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.best_plays[r].info_thumbnails.images.background_default_categories[0],match:"",seasonname:"",score:i.data.best_plays[r].score[0]+" : "+i.data.best_plays[r].score[1]},o.push(n)}if(this.type==8){i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/players/"+e.player+"/categories/"+e.category);for(let r=0;r<i.data.best_plays.length;r++)n={category:i.data.best_plays[r].categories,team_id:i.data.team_id,game_id:i.data.best_plays[r].game_id,season_id:i.data.season_id,player_id:i.data.player_id,backgroundhome:i.data.best_plays[r].info_thumbnails.home_colors.background_color,backgroundaway:i.data.best_plays[r].info_thumbnails.away_colors.background_color,colorfont_home:i.data.best_plays[r].info_thumbnails.home_colors.font_color,colorfont_away:i.data.best_plays[r].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+i.data.best_plays[r].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+i.data.best_plays[r].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.best_plays[r].info_thumbnails.images.background_default_categories[0],match:"",scorehome:i.data.best_plays[r].score[0],scoreaway:i.data.best_plays[r].score[1],photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+i.data.best_plays[r].info_thumbnails.player_logo,hometeamacronym:i.data.best_plays[r].home_team_acronym,visitingteamacronym:i.data.best_plays[r].away_team_acronym,seasonname:"",score:i.data.best_plays[r].score[0]+" : "+i.data.best_plays[r].score[1]},o.push(n)}if(this.type==9){i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/players/"+e.player+"/categories/"+e.category);for(let r=0;r<i.data.best_plays.length;r++)n={category:i.data.best_plays[r].categories,team_id:i.data.team_id,player_id:i.data.player_id,game_id:i.data.best_plays[r].game_id,season_id:i.data.season_id,backgroundhome:i.data.best_plays[r].info_thumbnails.home_colors.background_color,backgroundaway:i.data.best_plays[r].info_thumbnails.away_colors.background_color,colorfont_home:i.data.best_plays[r].info_thumbnails.home_colors.font_color,colorfont_away:i.data.best_plays[r].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+i.data.best_plays[r].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+i.data.best_plays[r].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.best_plays[r].info_thumbnails.images.background_default_categories[0],match:"",scorehome:i.data.best_plays[r].score[0],scoreaway:i.data.best_plays[r].score[1],seasonname:"",photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+i.data.best_plays[r].info_thumbnails.player_logo,score:i.data.best_plays[r].score[0]+" : "+i.data.best_plays[r].score[1]},o.push(n)}if(this.type==10){const r=await a.get("https://ws8d8ye2ii.execute-api.us-west-2.amazonaws.com/prod/v4/seasonsByTeam/"+e.team);for(let s=0;s<r.data.seasons[e.season].games.length;s++){const l=Math.floor(Math.random()*r.data.seasons[e.season].games[s].info_thumbnails.images.background_default_games.length);n={photo_profile:"https://az755631.vo.msecnd.net/teams-150/"+r.data.seasons[e.season].games[s].visiting_team+".png",team_logo:"https://az755631.vo.msecnd.net/teams-150/"+r.data.seasons[e.season].games[s].home_team+".png",player_name:r.data.seasons[e.season].games[s].home_team_acronym+" "+r.data.seasons[e.season].games[s].home_team_score+" : "+r.data.seasons[e.season].games[s].visiting_team_score+" "+r.data.seasons[e.season].games[s].visiting_team_acronym,team_id:r.data.seasons[e.season].games[s].game_id,team_id_b:r.data.seasons[e.season].games[s].home_team,season_id:r.data.seasons[e.season].games[s].season_id,name:"",category:0,colorfont_home:r.data.best_plays[s].info_thumbnails.home_colors.colors.font_color,colorfont_away:r.data.best_plays[s].info_thumbnails.away_colors.colors.font_color,game_id:r.data.seasons[e.season].games[s].game_id,seasonname:r.data.seasons[e.season].name,match:r.data.seasons[e.season].games[s].matchday_name.replace("Matchday","Jor"),score:r.data.seasons[e.season].games[s].home_team_score+" : "+r.data.seasons[e.season].games[s].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+r.data.seasons[e.season].games[s].info_thumbnails.images.background_default_games[l],backgroundhome:r.data.seasons[e.season].games[s].info_thumbnails.home_colors.background_color,backgroundaway:r.data.seasons[e.season].games[s].info_thumbnails.away_colors.background_color,colorfont_home:r.data.best_plays[s].info_thumbnails.home_colors.font_color,colorfont_away:r.data.best_plays[s].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+r.data.seasons[e.season].games[s].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+r.data.seasons[e.season].games[s].visiting_team+".png",total:r.data.seasons[e.season].games[s].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+r.data.seasons[e.season].games[s].home_team+"_"+r.data.seasons[e.season].games[s].season_id+"_r1.jpg"},o.push(n)}}if(this.type==11){const r=await a.get("https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/"+e.season+"/"+e.player);for(let s=0;s<r.data.seasons[e.season].games_played.length;s++)Math.floor(Math.random()*r.data.seasons[e.season].games_played[s].info_thumbnails.images.background_default_games.length),n={category:0,player_id:e.player,team_id:r.data.team_id,game_id:r.data.seasons[e.season].games_played[s].game_id,position_id:r.data.position_id,color:r.data.info_thumbnails.colors.background_color,photo_profile:"https://golstatsimages.blob.core.windows.net/images-library/"+r.data.info_thumbnails.images.player_in_action[0],team_logo:"https://az755631.vo.msecnd.net/teams-150/"+r.data.seasons[e.season].games_played[s].home_team+".png",player_name:r.data.seasons[e.season].games_played[s].home_team_acronym+" "+r.data.seasons[e.season].games_played[s].home_team_score+" : "+r.data.seasons[e.season].games_played[s].visiting_team_score+" "+r.data.seasons[e.season].games_played[s].visiting_team_acronym,team_id_b:r.data.seasons[e.season].games_played[s].home_team,season_id:r.data.seasons[e.season].games_played[s].season_id,name:r.data.seasons[e.season].games_played[s].player_name,seasonname:r.data.seasons[e.season].name,match:r.data.seasons[e.season].games_played[s].matchday_name.replace("Matchday","Jor"),scorehome:r.data.seasons[e.season].games_played[s].home_team_score,scoreaway:r.data.seasons[e.season].games_played[s].visiting_team_score,hometeamacronym:r.data.seasons[e.season].games_played[s].home_team_acronym,visitingteamacronym:r.data.seasons[e.season].games_played[s].visiting_team_acronym,background:"https://golstatsimages.blob.core.windows.net/images-library/"+r.data.info_thumbnails.images.background_player_in_action[0],backgroundhome:r.data.seasons[e.season].games_played[s].info_thumbnails.home_colors.background_color,backgroundaway:r.data.seasons[e.season].games_played[s].info_thumbnails.away_colors.background_color,colorfont_home:r.data.seasons[e.season].games_played[s].info_thumbnails.home_colors.font_color,colorfont_away:r.data.seasons[e.season].games_played[s].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+r.data.seasons[e.season].games_played[s].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+r.data.seasons[e.season].games_played[s].visiting_team+".png",total:r.data.seasons[e.season].games_played[s].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+r.data.seasons[e.season].games_played[s].home_team+"_"+r.data.seasons[e.season].games_played[s].season_id+"_r1.jpg"},o.push(n)}if(this.type==12){const r=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/categories/"+e.category);for(let s=0;s<r.data.length;s++)for(let l=0;l<r.data[s].best_plays.length;l++)n={category:r.data[s].best_plays[l].categories,game_id:r.data[s].best_plays[l].game_id,season_id:r.data[s].season_id,backgroundhome:r.data[s].best_plays[l].info_thumbnails.home_colors.background_color,backgroundaway:r.data[s].best_plays[l].info_thumbnails.away_colors.background_color,colorfont_home:r.data[s].best_plays[l].info_thumbnails.home_colors.font_color,colorfont_away:r.data[s].best_plays[l].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+r.data[s].best_plays[l].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+r.data[s].best_plays[l].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+r.data[s].best_plays[l].info_thumbnails.images.background_default_categories[0],match:"",scorehome:r.data[s].best_plays[l].score[0],scoreaway:r.data[s].best_plays[l].score[1],seasonname:"",photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+r.data[s].best_plays[l].info_thumbnails.player_logo,score:r.data[s].best_plays[l].score[0]+" : "+r.data[s].best_plays[l].score[1]},o.push(n)}if(this.type==13){const r=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/categories/"+e.category);for(let s=0;s<r.data.length;s++)for(let l=0;l<r.data[s].best_plays.length;l++)n={category:r.data[s].best_plays[l].categories,game_id:r.data[s].best_plays[l].game_id,season_id:r.data[s].season_id,backgroundhome:r.data[s].best_plays[l].info_thumbnails.home_colors.background_color,backgroundaway:r.data[s].best_plays[l].info_thumbnails.away_colors.background_color,colorfont_home:r.data[s].best_plays[l].info_thumbnails.home_colors.font_color,colorfont_away:r.data[s].best_plays[l].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+r.data[s].best_plays[l].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+r.data[s].best_plays[l].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+r.data[s].best_plays[l].info_thumbnails.images.background_default_categories[0],match:"",scorehome:r.data[s].best_plays[l].score[0],scoreaway:r.data[s].best_plays[l].score[1],seasonname:"",photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+r.data[s].best_plays[l].info_thumbnails.player_logo,score:r.data[s].best_plays[l].score[0]+" : "+r.data[s].best_plays[l].score[1]},o.push(n)}this.printData=o}},async created(){}},As=()=>{t.useCssVars(e=>({"4956e38c":e.backgroundColor}))},zs=Za.setup;Za.setup=zs?(e,a)=>(As(),zs(e,a)):As;function T5(e,a,o,n,i,r){const s=t.resolveComponent("GSCThumbnailCategory"),l=t.resolveComponent("GSCThumbnailCategoryTeam"),p=t.resolveComponent("GSCThumbnailCategoryTeamAway"),c=t.resolveComponent("GSCThumbnailHighlightGamePlayer"),m=t.resolveComponent("GSCThumbnailHighlightGameHistoric"),u=t.resolveComponent("GSCThumbnailSummaryPlayer"),g=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.ptg),ref:"ptgDiv"},[t.createElementVNode("div",{class:t.normalizeClass(r.ptgtitleClass)},t.toDisplayString(o.title),3),t.createVNode(g,{backgroundColor:o.backgroundColor,pxScroll:o.pxScroll,arrows:o.arrows,arrowsScrollHide:o.arrowsScrollHide,arrowsHideOnNoScroll:o.arrowsHideOnNoScroll,arrowsColor:o.arrowsColor,arrowsHeight:o.arrowsWidth,arrowsWidth:o.arrowsWidth,arrowsPadding:o.arrowsPadding,arrowsMargin:o.arrowsMargin,arrowsRadius:o.arrowsRadius,arrowsBorder:o.arrowsBorder,arrowsBackground:o.arrowsBackground,arrowsContainerBgL:o.arrowsContainerBgL,arrowsContainerBgR:o.arrowsContainerBgR,scrollColor:o.scrollColor,arrowsPosition:o.arrowsPosition,height:o.height},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.printData,(d,h)=>(t.openBlock(),t.createElementBlock("div",{key:h,class:t.normalizeClass(r.pgtcontainercardClass),style:t.normalizeStyle(h==0?"margin-left: 0px !important; color: white;":"")},[o.type==2?(t.openBlock(),t.createBlock(s,{key:0,"color-background-home":d.color,"name-player":o.data.player_name,"type-img":"0",background:d.background_action,"name-category":d.player_name,"logo-home":d.team_logo,onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:2}),"photo-profile":d.player_action},null,8,["color-background-home","name-player","background","name-category","logo-home","onOnclickPlayVideos","photo-profile"])):o.type==1||o.type==4?(t.openBlock(),t.createBlock(l,{key:1,type:"team","name-team":d.team_name!=null?d.team_name:"","type-style":"category","color-background-home":d.color,"logo-home":d.team_logo,onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:3}),background:d.player_action,"name-category":d.player_name},null,8,["name-team","color-background-home","logo-home","onOnclickPlayVideos","background","name-category"])):o.type==5?(t.openBlock(),t.createBlock(p,{key:2,type:"team","name-team":d.team_name!=null?d.team_name:"","type-style":"category","color-background-away":d.color,"logo-home":d.team_logo,onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:3}),background:d.player_action,"name-category":d.player_name},null,8,["name-team","color-background-away","logo-home","onOnclickPlayVideos","background","name-category"])):o.type==0?(t.openBlock(),t.createBlock(c,{key:3,items:d,type:2,"name-category":"TODAS SUS JUGADAS","color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"color-font-home":d.colorfont_home,"color-font-away":d.colorfont_away,"logo-home":d.logohome,"logo-away":d.logoaway,onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:2,isAllPlays:!0}),background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,matchday:d.match,"score-home":d.scorehome,"photo-profile":d.photo_profile,"score-away":d.scoreaway,"season-name":d.seasonname},null,8,["items","color-background-home","color-background-away","color-font-home","color-font-away","logo-home","logo-away","onOnclickPlayVideos","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):o.type==6?(t.openBlock(),t.createBlock(m,{key:4,items:d,"color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,background:d.background,"title-category":"GOLES",onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:3,categories:i.goalCategories}),matchday:d.match,"season-name":d.seasonname,score:d.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","onOnclickPlayVideos","matchday","season-name","score"])):o.type==7?(t.openBlock(),t.createBlock(m,{key:5,items:d,"color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,background:d.background,"title-category":"RESUMEN",onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:3,categories:i.resumeCategories}),matchday:d.match,"season-name":d.seasonname,score:d.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","onOnclickPlayVideos","matchday","season-name","score"])):o.type==8?(t.openBlock(),t.createBlock(c,{key:6,items:d,type:2,"name-category":"RESUMEN","color-font-home":d.colorfont_home,"color-font-away":d.colorfont_away,"color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:2}),background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,matchday:d.match,"score-home":d.scorehome,"photo-profile":d.photo_profile,"score-away":d.scoreaway,"season-name":d.seasonname},null,8,["items","color-font-home","color-font-away","color-background-home","color-background-away","logo-home","logo-away","onOnclickPlayVideos","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):o.type==9?(t.openBlock(),t.createBlock(c,{key:7,items:d,type:2,"name-category":"RESUMEN","color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:2}),"logo-away":d.logoaway,background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,matchday:d.match,"score-home":d.scorehome,"photo-profile":d.photo_profile,"score-away":d.scoreaway,"season-name":d.seasonname},null,8,["items","color-background-home","color-background-away","logo-home","onOnclickPlayVideos","logo-away","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):o.type==10?(t.openBlock(),t.createBlock(m,{key:8,items:d,"color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:1}),background:d.background,"title-category":"RESUMEN",matchday:d.match,"season-name":d.seasonname,score:d.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","onOnclickPlayVideos","background","matchday","season-name","score"])):o.type==11?(t.openBlock(),t.createBlock(c,{key:9,items:d,type:2,"name-category":"RESUMEN","color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,matchday:d.match,"color-font-home":d.colorfont_home,"color-font-away":d.colorfont_away,onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:2}),"score-home":d.scorehome,"photo-profile":d.photo_profile,"score-away":d.scoreaway,"season-name":d.seasonname},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","name-home-team","name-away-team","matchday","color-font-home","color-font-away","onOnclickPlayVideos","score-home","photo-profile","score-away","season-name"])):o.type==12?(t.openBlock(),t.createBlock(c,{key:10,items:d,type:2,"name-category":"RESUMEN","color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,"color-font-home":d.colorfont_home,"color-font-away":d.colorfont_away,onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:1}),background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,matchday:d.match,"score-home":d.scorehome,"photo-profile":d.photo_profile,"score-away":d.scoreaway,"season-name":d.seasonname},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","color-font-home","color-font-away","onOnclickPlayVideos","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):o.type==13?(t.openBlock(),t.createBlock(c,{key:11,items:d,type:2,"name-category":"GOLES","color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:1,categories:i.goalCategories}),background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,matchday:d.match,"score-home":d.scorehome,"photo-profile":d.photo_profile,"score-away":d.scoreaway,"season-name":d.seasonname},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","onOnclickPlayVideos","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):(t.openBlock(),t.createBlock(u,{key:12,type:"player","color-background-home":d.colorbackgroundhome,"color-background-away":d.colorbackgroundaway,"name-player":d.nameplayer,"type-img":0,onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:2}),background:d.background,"name-home-team":d.namehometeam,"name-away-team":d.nameawayteam,"name-category":"RESUMEN","logo-away":d.logoaway,"logo-home":d.logohome,"color-font":d.colorfont,"score-home":d.scorehome,"photo-profile":d.photoprofile,"score-away":d.logoaway,"type-style":"summary"},null,8,["color-background-home","color-background-away","name-player","onOnclickPlayVideos","background","name-home-team","name-away-team","logo-away","logo-home","color-font","score-home","photo-profile","score-away"]))],6))),128))]),_:1},8,["backgroundColor","pxScroll","arrows","arrowsScrollHide","arrowsHideOnNoScroll","arrowsColor","arrowsHeight","arrowsWidth","arrowsPadding","arrowsMargin","arrowsRadius","arrowsBorder","arrowsBackground","arrowsContainerBgL","arrowsContainerBgR","scrollColor","arrowsPosition","height"])],2)}const O5={name:"DiscoverVideos",components:{GscSwitchComponent:Qo,GSCPlayerTeamGame:We(Za,[["render",T5],["__cssModules",{$style:x5}]]),GSCButton:Ei},props:{userForDiscoverVideos:{type:Object,default:()=>{}},user:{type:Object,default:()=>{}},section:{type:Boolean,default:!1},nextRivalTeam:{type:Object,default:()=>{}},hasNextRival:{type:Boolean,default:!1},tournamentSelected:{type:Object,default:()=>{}},seasonSelected:{type:Object,default:()=>{}}},data(){return{currentTabMoreVideos:"Resumen",currentMobileTab:"Descubre videos",mobileClass:!1,resumeCategory:1000001,goalsCategory:1255e3,resumeType:1,goalsType:2}},mounted(){this.mobileClass=window.innerWidth<768,window.addEventListener("resize",this.handleResize)},methods:{handleResize(){this.mobileClass=window.innerWidth<768},onOpenMedia(e){this.$emit("openmedia",e)},onClickOpenMedia(){let o=1,n=[],i=[],r=0,s=this.user.season,l=[],p=[12,55,"35_r","54_r"],c=[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],m=[55,324,323,608,39,774,802,52,53,40,54];this.tournamentSelected.id===this.user.tournament?(s=this.seasonSelected.id,this.user.is_goalkeeper?(n=[this.user.player],l=m,o=2):this.user.is_player?(i=[this.user.player],l=c,o=2):(r=this.user.team,l=p,o=3)):(l=p,o=1);const u={seasonId:s,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:o,gameIds:null,playerIds:i,goalkeeperIds:n,categoryIds:l,teamId:r,matchResult:[1,2,3],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:""},objectPlaySync:null};this.$emit("openmedia",u)}}},V5=e=>(t.pushScopeId("data-v-626b4da8"),e=e(),t.popScopeId(),e),$5={class:"discover-videos",ref:"myDivRef"},A5={class:"title-and-button"},z5=V5(()=>t.createElementVNode("div",{class:"title-value"},"Descubre videos",-1)),R5={class:"btn-search-videos"};function I5(e,a,o,n,i,r){const s=t.resolveComponent("GSCButton"),l=t.resolveComponent("GscSwitchComponent"),p=t.resolveComponent("GSCPlayerTeamGame");return t.openBlock(),t.createElementBlock("div",$5,[t.createElementVNode("div",A5,[z5,t.createElementVNode("div",R5,[t.createVNode(s,{style:{"margin-top":"4px"},width:"182px","text-value":"Buscar videos","font-color":"#ffffff","font-family":"Poppins-Light","font-size":"16px",icon:"https://golstatsimages.blob.core.windows.net/images-library/icn-buscar-videos.svg","icon-size":"30px","icon-position":"right","button-max-width":"250px",height:"38px","border-radius":"50px","border-width":"1","background-color":"transparent","border-color":"#CBEE6B","active-background-color":"#CBEE6B",onClick:r.onClickOpenMedia},null,8,["onClick"])])]),o.userForDiscoverVideos.type===i.resumeType&&o.hasNextRival?(t.openBlock(),t.createBlock(l,{key:0,style:{"margin-left":"0px"},buttons:["Resumen","Proximo rival"],onInput:a[0]||(a[0]=c=>i.currentTabMoreVideos=c),background:"trasparent",height:"28px",width:"160px",fontSize:"14px","font-family":"Poppins-Light",backgroundOptionActive:"transparent",borderWidth:"2px",type:2,arrow:!1,selectedOption:i.currentTabMoreVideos,onOpenmedia:r.onOpenMedia},null,8,["selectedOption","onOpenmedia"])):t.createCommentVNode("",!0),o.userForDiscoverVideos.type===i.resumeType?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.currentTabMoreVideos=="Resumen"?(t.openBlock(),t.createBlock(p,{key:0,type:7,title:"",style:{"margin-top":"-30px"},backgroundColor:"transparent",data:{season:o.userForDiscoverVideos.season,team:o.userForDiscoverVideos.team,category:i.resumeCategory},width:"100%",onOpenmedia:r.onOpenMedia},null,8,["data","onOpenmedia"])):(t.openBlock(),t.createBlock(p,{key:1,type:7,style:{"margin-top":"-30px"},title:"",backgroundColor:"transparent",data:{season:o.userForDiscoverVideos.season,team:o.nextRivalTeam.id,category:i.resumeCategory},width:"100%",onOpenmedia:r.onOpenMedia},null,8,["data","onOpenmedia"]))],64)):(t.openBlock(),t.createBlock(p,{key:2,style:{"margin-top":"-30px"},type:13,data:{season:o.userForDiscoverVideos.season,category:i.goalsCategory},width:"100%",backgroundColor:"transparent",title:"",onOpenmedia:r.onOpenMedia},null,8,["data","onOpenmedia"]))],512)}const F5={components:{GSCSeasonSelect:fb,GSCTournamentSelect:G2,GSCGames:b1,GSCGridTeamsMatches:Cc,GSCPlayersLanding:gc,GSCTops:b2,GSCTableCalendar:hy,DiscoverVideos:ie(O5,[["render",I5],["__scopeId","data-v-626b4da8"]])},setup(){const e=t.ref("landingref"),{elementSize:a}=Hl(e);return{landingref:e,elementSize:a}},watch:{team:{immediate:!0,deep:!0,async handler(e){if(Object.keys(this.seasonSelected).length!==0){const a=await this.generateSeasons(this.seasonSelected);this.seasonsSelected=a,this.fetchGames(e,a)}}},closestRound(e){this.selectedRoundKeyIndex=this.tournamentScheduleKeys.findIndex(a=>a===e),this.selectedRound=e}},props:{currentSeasonId:{type:Number,default:0},season:{type:Number,default:1772},isplayer:{type:Boolean,default:!1},user:{type:Object,default:()=>{}},team:{type:Number,default:0},player:{type:Number,default:0},gamesPerMatchDay:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}}},data(){return{defaultGameId:0,lastSeasonsIds:[],gamesPages:new Map,selectedRoundKeyIndex:0,selectedRound:0,fullTournamentScheduleFull:[],defaultMatchDayKey:null,isCupTournament:!1,retries:3,userTeamGames:[],isCupLegacyTournament:!1,tournamentScheduleKeys:[],currentTournamentGames:null,currentTournamentTeams:null,gamesUrl:"https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason/",gamesUrl2:"https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",seasonSelected:{},seasonSelectedDropDowns:{},seasonsSelected:[],fullTournamentSchedule:{},tournamentSelected:{},tournamentSelectedDropDowns:{seasons:[]},playersLength:0,nextRivalId:0,loadDiscover:!1,hasNextRival:!1,tokenFree:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{gamesFullLeague(){var e=[];if(this.fullTournamentScheduleFull&&Object.keys(this.fullTournamentScheduleFull).length>0)for(let a=0;a<this.fullTournamentScheduleFull[this.selectedRound].length;a++)for(let o=0;o<this.fullTournamentScheduleFull[this.selectedRound][a].games.length;o++)e.push(this.fullTournamentScheduleFull[this.selectedRound][a].games[o]);return e},closestRound(){return this.userTeamGames&&this.userTeamGames.length?this.getUserTeamClosestRound(this.fullTournamentScheduleFull):this.getNormalClosestRound(this.fullTournamentScheduleFull)},containerGridCalendarTable(){return this.elementSize.width<=1e3?"container-grid-calendar-table-mobile":"container-grid-calendar-table"},containerbackground(){return this.elementSize.width<=680?"container-background-movil":"container-background"},containerdata(){return this.elementSize.width<=680?"container-data-movil":"container-data"}},methods:{formatUsername(e){const a=e.split(",");let o="",n="";return a[1]?(n=a[1].trim().split(" "),n[0]?o=n[0]:o=a[1]):a[0]&&(n=a[0].trim().split(" "),n[0]?o=n[0]:o=a[0]),o.trim()},onAction(e){this.$emit("action",e)},onOpenMedia(e){this.$emit("openmedia",e)},onOpenProfile(e){this.$emit("onOpenProfile",e)},onClickMatch(e){this.$emit("openGame",e)},onClickCalendar(){const e={type:this.tournamentSelected.id==this.user.tournament?1:0,team:this.team,season:this.seasonSelectedDropDowns};this.$emit("onClickMyCalendar",e)},mapDiscoverVideos(){return{type:this.tournamentSelected.id==this.user.tournament?1:2,team:this.team,season:this.seasonSelectedDropDowns}},moreTops(){const e={team:this.team,season:this.seasonSelectedDropDowns};this.$emit("openTops",e)},clickProfileBtn(e){this.$emit("openProfile",e)},viewAll(){const e={team:this.team,season:this.seasonSelectedDropDowns};this.$emit("openAllPlayers",e)},getTotalPlayers(e){this.playersLength=e},clickCard(e){const a={data:e,isPlayer:this.isplayer};this.$emit("clickOnMainCards",a)},async fetchGames(e,a){const o=a.map(i=>`seasons=${i.id}`).join("&"),n=Tt.create({headers:{Authorization:`${this.tokenFree}`}});this.fullTournamentSchedule=await n.get(this.gamesUrl+e+"?"+o),this.nextRivalId=Object.keys(this.fullTournamentSchedule).length>0?this.user.team==this.fullTournamentSchedule.data.prematch.home_team?this.fullTournamentSchedule.data.prematch.visiting_team:this.fullTournamentSchedule.data.prematch.home_team:0,this.loadDiscover=!0,this.hasNextRival=this.fullTournamentSchedule.data.prematch.game_status===4},async generateSeasons(e){const a=[{id:e.id,type:e.type}];return e.related_seasons&&e.related_seasons.length&&a.push(...e.related_seasons.map(o=>({id:o.id,type:o.type}))),a},async onInputTournament(e){this.tournamentSelected=e,this.tournamentSelectedDropDowns.id!==e.id&&(this.tournamentSelectedDropDowns=e)},async onInputSeason(e){if(this.seasonSelected=e,this.tournamentSelected.id!=this.user.tournament){const a=await this.generateSeasons(this.seasonSelected);this.seasonsSelected=a,await this.createFullTournamentScheme(a,!1)}else{const a=await this.generateSeasons(this.seasonSelected);this.seasonsSelected=a,await this.fetchGames(this.user.team,a)}this.seasonSelectedDropDowns!==e.id&&(this.seasonSelectedDropDowns=e.id,this.$emit("change-season-id",e.id))},async fetchTournaments(e){try{const{data:a}=await Tt.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments");return a}catch(a){if(e>0)return this.fetchTournaments(e-1);throw new Error(a)}},async fetchSeasonsGamesAndTeams(e,a,o=""){let n=o;try{n||(n=this.gamesUrl2,e.forEach((l,p)=>{n+=`${p===0?"":"&"}seasons=${l}`}));const i=Tt.create({headers:{Authorization:`${this.tokenFree}`}}),{data:{data:r,teams:s}}=await i.get(n);return{seasonsAndGames:r,seasonsAndTeams:s}}catch(i){if(a>0)return this.fetchSeasonsGamesAndTeams(e,a-1,n);throw new Error(i)}},areSeasonsDifferent(e){for(const a of e)if(!this.lastSeasonsIds.includes(a.season_id))return!0;return!1},async createFullTournamentScheme(e,a){try{this.fullTournamentSchedule={},this.userTeamGames=[];let o=0;const{seasonsAndGames:n,seasonsAndTeams:i}=await this.fetchSeasonsGamesAndTeams(e.map(p=>p.id),3);if(a&&this.areSeasonsDifferent(n))return;n.forEach(p=>{const{type:c}=e.find(m=>m.id===p.season_id);p.type=c,p.games.forEach(m=>{m.season_id=p.season_id}),c===0&&(o=p.season_id)});const r={seasonsGames:n},{teams:s}=i.find(p=>p.season_id===o),l=r&&r.seasonsGames?r.seasonsGames.map(p=>{const c=p.games.reduce((m,u)=>{const g={...u};return g.dateTimeMillis=new Date(g.date_time_utc).valueOf(),g.home_team=s.find(d=>d.team_id===u.home_team),g.visiting_team=s.find(d=>d.team_id===u.visiting_team),m[u.matchday_abbreviation]?m[u.matchday_abbreviation][u.game_status===3?"canceled":u.date]?m[u.matchday_abbreviation][u.game_status===3?"canceled":u.date].push(g):m[u.matchday_abbreviation][u.game_status===3?"canceled":u.date]=[g]:m[u.matchday_abbreviation]={[u.game_status===3?"canceled":u.date]:[g]},this.gsData&&this.gsData.teamId&&g.game_status===4&&(g.home_team.team_id===this.gsData.teamId||g.visiting_team.team_id===this.gsData.teamId)&&this.userTeamGames.push(g),m},{});this.userTeamGames.sort((m,u)=>m.dateTimeMillis-u.dateTimeMillis);for(let[m,u]of Object.entries(c))c[m]=Object.entries(u).map(([g,d])=>({date:g,games:d.sort((h,f)=>h.dateTimeMillis-f.dateTimeMillis)})),c[m].sort((g,d)=>g.date<d.date?-1:g.date>d.date?1:0);return{type:p.type,weight:p.type===0?0:p.type===2?1:2,schedule:c}}):[];l.sort((p,c)=>p.weight-c.weight),this.fullTournamentScheduleFull=l.reduce((p,c)=>{for(const[m,u]of Object.entries(c.schedule))if(c.type===0)if(this.isCup){const g=m.replace("M",""),d=`Jornada ${g}`;this.isCupLegacy?p[S2[g]||d]=u:p[_2[m]||d]=u}else p[Number(m.replace("M","")).toString()]=u;else c.type===2?["PI1","PI2"].includes(m)?p[m]=u:p[`R${Number(m.replace("PO",""))}`]=u:c.type===1&&(p[w2[m]]=u);return p},{}),this.tournamentScheduleKeys=Object.keys(this.fullTournamentScheduleFull)}catch(o){throw new Error(o)}finally{this.loadingFlag=!1}},getNormalClosestRound(e){const o=Object.entries(Object.entries(e).reduce((r,[s,l])=>(r[s]=[],l.forEach(p=>{p.games.forEach(c=>{const m=new Date(c.date_time_utc).getTime()+66e5;r[s].push(m)})}),r),{}));if(!o.length)return"1";const n=new Date().getTime(),i=o.reduce((r,[s,l])=>{let p=null;return l.forEach(c=>{const m=c-n;m>=0&&(p===null||m<p)&&(p=m)}),p&&(r.shortestTime===null||p<r.shortestTime)&&(r.round=s,r.shortestTime=p),r},{round:"",shortestTime:null});return i.shortestTime!==null?i.round:o[o.length-1][0]},getUserTeamClosestRound(e){let a=1;if(this.userTeamGames.length){const o=this.userTeamGames[0];for(const[n,i]of Object.entries(e))for(const r of i)if(r.games.find(l=>l.game_id===o.game_id))return n}return a}},async created(){}},P5=e=>(t.pushScopeId("data-v-849cfb29"),e=e(),t.popScopeId(),e),L5={class:"gsclanding",ref:"landingref"},D5={key:0,class:"container-selectors-mobile"},M5={class:"container-selectors-mobile-tournament"},j5={class:"container-selectors-mobile-season"},v5={key:0,class:"home-item-movil"},W5=P5(()=>t.createElementVNode("div",{class:"home-movil"},"Inicio",-1)),U5={class:"name-user-movil"},H5={key:1,class:"home-item"},G5={key:2,class:"bar-settings"},J5={class:"name-user"},q5={class:"container-selectors"},Z5={class:"selector-tournament"},X5={class:"selector-seasons"},K5={key:3,class:"container-games"},Y5={key:4,class:"container-players"},Q5={class:"container-tops"},eS={key:5,class:"container-vr"};function tS(e,a,o,n,i,r){const s=t.resolveComponent("GSCTournamentSelect"),l=t.resolveComponent("GSCSeasonSelect"),p=t.resolveComponent("GSCGames"),c=t.resolveComponent("GSCGridTeamsMatches"),m=t.resolveComponent("GSCTableCalendar"),u=t.resolveComponent("GSCPlayersLanding"),g=t.resolveComponent("GSCTops"),d=t.resolveComponent("DiscoverVideos");return t.openBlock(),t.createElementBlock("div",L5,[n.elementSize.width<=680?(t.openBlock(),t.createElementBlock("div",D5,[t.createElementVNode("div",M5,[t.createVNode(s,{"current-season-id":o.currentSeasonId,width:"100%",onInput:r.onInputTournament},null,8,["current-season-id","onInput"])]),t.createElementVNode("div",j5,[t.createVNode(l,{"current-season-id":o.currentSeasonId,width:"100%",seasons:i.tournamentSelectedDropDowns.seasons,onInput:r.onInputSeason},null,8,["current-season-id","seasons","onInput"])])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(r.containerbackground)},[t.createElementVNode("div",{class:t.normalizeClass(r.containerdata)},[n.elementSize.width<=680?(t.openBlock(),t.createElementBlock("div",v5,[W5,t.createElementVNode("div",U5,"Bienvenido "+t.toDisplayString(r.formatUsername(o.user.name)),1)])):t.createCommentVNode("",!0),n.elementSize.width>680?(t.openBlock(),t.createElementBlock("div",H5,"Inicio")):t.createCommentVNode("",!0),n.elementSize.width>680?(t.openBlock(),t.createElementBlock("div",G5,[t.createElementVNode("div",J5,"Bienvenido "+t.toDisplayString(r.formatUsername(o.user.name)),1),t.createElementVNode("div",q5,[t.createElementVNode("div",Z5,[t.createVNode(s,{"current-season-id":o.currentSeasonId,onInput:r.onInputTournament},null,8,["current-season-id","onInput"])]),t.createElementVNode("div",X5,[t.createVNode(l,{"current-season-id":o.currentSeasonId,seasons:i.tournamentSelectedDropDowns.seasons,onInput:r.onInputSeason},null,8,["current-season-id","seasons","onInput"])])])])):t.createCommentVNode("",!0),Object.keys(i.tournamentSelected).length>0?(t.openBlock(),t.createElementBlock("div",K5,[t.createVNode(p,{"component-width":n.elementSize.width,isplayer:o.isplayer,"is-full":i.tournamentSelected.id!=o.user.tournament,onClickMatch:r.onClickMatch,onClickCalendar:r.onClickCalendar,data:i.tournamentSelected.id==o.user.tournament?i.fullTournamentSchedule:r.gamesFullLeague},null,8,["component-width","isplayer","is-full","onClickMatch","onClickCalendar","data"])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(r.containerGridCalendarTable)},[t.createElementVNode("div",{class:"container-grid",style:t.normalizeStyle(n.elementSize.width<1e3?"width: 100%":"")},[t.createVNode(c,{isPlayer:o.isplayer?i.tournamentSelected.id==o.user.tournament:!1,"player-id":o.user.player,"team-id":o.user.team,"season-selected":i.seasonSelected.id,"next-rival-id":Object.keys(i.fullTournamentSchedule).length>0?o.user.team==i.fullTournamentSchedule.data.prematch.home_team?i.fullTournamentSchedule.data.prematch.visiting_team:i.fullTournamentSchedule.data.prematch.home_team:0,"team-img":"https://az755631.vo.msecnd.net/teams-150/"+o.user.team+".png","player-img":"https://az755631.vo.msecnd.net/players-profile/"+o.user.player+".png","rival-img":Object.keys(i.fullTournamentSchedule).length>0?o.user.team==i.fullTournamentSchedule.data.prematch.home_team?"https://az755631.vo.msecnd.net/teams-150/"+i.fullTournamentSchedule.data.prematch.visiting_team+".png":"https://az755631.vo.msecnd.net/teams-150/"+i.fullTournamentSchedule.data.prematch.home_team+".png":"","has-team":o.isplayer?!1:i.tournamentSelected.id==o.user.tournament,"component-width":n.elementSize.width,onAction:r.clickCard},null,8,["isPlayer","player-id","team-id","season-selected","next-rival-id","team-img","player-img","rival-img","has-team","component-width","onAction"])],4),t.createElementVNode("div",{class:"container-calendar-table",style:t.normalizeStyle(n.elementSize.width<1e3?"width: 100%; margin-top: 30px;":"")},[t.createVNode(m,{onAction:r.onAction,season:i.seasonSelected,seasons:i.seasonsSelected,onOpenmedia:r.onOpenMedia,onOnOpenProfile:r.onOpenProfile,componentWidth:n.elementSize.width},null,8,["onAction","season","seasons","onOpenmedia","onOnOpenProfile","componentWidth"])],4)],2),i.tournamentSelected.id==o.user.tournament?t.withDirectives((t.openBlock(),t.createElementBlock("div",Y5,[t.createVNode(u,{onClickProfileBtn:r.clickProfileBtn,onViewAll:r.viewAll,onTotalPlayers:r.getTotalPlayers,"team-id":o.user.team,"season-id":i.seasonSelected.id,"is-player":o.user.player!=0},null,8,["onClickProfileBtn","onViewAll","onTotalPlayers","team-id","season-id","is-player"])],512)),[[t.vShow,i.playersLength>0]]):t.createCommentVNode("",!0),t.createElementVNode("div",Q5,[t.createVNode(g,{onMore:r.moreTops,"show-switch":i.tournamentSelected.id==o.user.tournament,season:i.seasonSelected.id,"team-id":o.user.team,onOpenmedia:r.onOpenMedia},null,8,["onMore","show-switch","season","team-id","onOpenmedia"])]),i.loadDiscover?(t.openBlock(),t.createElementBlock("div",eS,[t.createVNode(d,{onOpenmedia:r.onOpenMedia,userForDiscoverVideos:r.mapDiscoverVideos(),section:!0,hasNextRival:i.hasNextRival,nextRivalTeam:{id:i.nextRivalId},user:o.user,seasonSelected:i.seasonSelected,tournamentSelected:i.tournamentSelected},null,8,["onOpenmedia","userForDiscoverVideos","hasNextRival","nextRivalTeam","user","seasonSelected","tournamentSelected"])])):t.createCommentVNode("",!0)],2)],2)],512)}const oS=ie(F5,[["render",tS],["__scopeId","data-v-849cfb29"]]);ve.GSCLanding=oS,Object.defineProperty(ve,Symbol.toStringTag,{value:"Module"})});
|
|
32
|
+
`):" "+ns(r[0]):"as no adapter specified";throw new L("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:Fa};function Pa(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new yt(null,e)}function is(e){return Pa(e),e.headers=Fe.from(e.headers),e.data=Ia.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),rs.getAdapter(e.adapter||za.adapter)(e).then(function(a){return Pa(e),a.data=Ia.call(e,e.transformResponse,a),a.headers=Fe.from(a.headers),a},function(a){return ts(a)||(Pa(e),a&&a.response&&(a.response.data=Ia.call(e,e.transformResponse,a.response),a.response.headers=Fe.from(a.response.headers))),Promise.reject(a)})}const ss=e=>e instanceof Fe?e.toJSON():e;function et(e,a){a=a||{};const o={};function n(c,m,u){return k.isPlainObject(c)&&k.isPlainObject(m)?k.merge.call({caseless:u},c,m):k.isPlainObject(m)?k.merge({},m):k.isArray(m)?m.slice():m}function i(c,m,u){if(k.isUndefined(m)){if(!k.isUndefined(c))return n(void 0,c,u)}else return n(c,m,u)}function r(c,m){if(!k.isUndefined(m))return n(void 0,m)}function s(c,m){if(k.isUndefined(m)){if(!k.isUndefined(c))return n(void 0,c)}else return n(void 0,m)}function l(c,m,u){if(u in a)return n(c,m);if(u in e)return n(void 0,c)}const p={url:r,method:r,data:r,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(c,m)=>i(ss(c),ss(m),!0)};return k.forEach(Object.keys(Object.assign({},e,a)),function(c){const m=p[c]||i,u=m(e[c],a[c],c);k.isUndefined(u)&&m!==l||(o[c]=u)}),o}const ls="1.5.1",La={};["object","boolean","number","function","string","symbol"].forEach((e,a)=>{La[e]=function(o){return typeof o===e||"a"+(a<1?"n ":" ")+e}});const cs={};La.transitional=function(e,a,o){function n(i,r){return"[Axios v"+ls+"] Transitional option '"+i+"'"+r+(o?". "+o:"")}return(i,r,s)=>{if(e===!1)throw new L(n(r," has been removed"+(a?" in "+a:"")),L.ERR_DEPRECATED);return a&&!cs[r]&&(cs[r]=!0,console.warn(n(r," has been deprecated since v"+a+" and will be removed in the near future"))),e?e(i,r,s):!0}};function Nw(e,a,o){if(typeof e!="object")throw new L("options must be an object",L.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const r=n[i],s=a[r];if(s){const l=e[r],p=l===void 0||s(l,r,e);if(p!==!0)throw new L("option "+r+" must be "+p,L.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new L("Unknown option "+r,L.ERR_BAD_OPTION)}}const Da={assertOptions:Nw,validators:La},Me=Da.validators;class oo{constructor(a){this.defaults=a,this.interceptors={request:new Ki,response:new Ki}}request(a,o){typeof a=="string"?(o=o||{},o.url=a):o=a||{},o=et(this.defaults,o);const{transitional:n,paramsSerializer:i,headers:r}=o;n!==void 0&&Da.assertOptions(n,{silentJSONParsing:Me.transitional(Me.boolean),forcedJSONParsing:Me.transitional(Me.boolean),clarifyTimeoutError:Me.transitional(Me.boolean)},!1),i!=null&&(k.isFunction(i)?o.paramsSerializer={serialize:i}:Da.assertOptions(i,{encode:Me.function,serialize:Me.function},!0)),o.method=(o.method||this.defaults.method||"get").toLowerCase();let s=r&&k.merge(r.common,r[o.method]);r&&k.forEach(["delete","get","head","post","put","patch","common"],h=>{delete r[h]}),o.headers=Fe.concat(s,r);const l=[];let p=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(o)===!1||(p=p&&h.synchronous,l.unshift(h.fulfilled,h.rejected))});const c=[];this.interceptors.response.forEach(function(h){c.push(h.fulfilled,h.rejected)});let m,u=0,g;if(!p){const h=[is.bind(this),void 0];for(h.unshift.apply(h,l),h.push.apply(h,c),g=h.length,m=Promise.resolve(o);u<g;)m=m.then(h[u++],h[u++]);return m}g=l.length;let d=o;for(u=0;u<g;){const h=l[u++],f=l[u++];try{d=h(d)}catch(y){f.call(this,y);break}}try{m=is.call(this,d)}catch(h){return Promise.reject(h)}for(u=0,g=c.length;u<g;)m=m.then(c[u++],c[u++]);return m}getUri(a){a=et(this.defaults,a);const o=os(a.baseURL,a.url);return Xi(o,a.params,a.paramsSerializer)}}k.forEach(["delete","get","head","options"],function(e){oo.prototype[e]=function(a,o){return this.request(et(o||{},{method:e,url:a,data:(o||{}).data}))}}),k.forEach(["post","put","patch"],function(e){function a(o){return function(n,i,r){return this.request(et(r||{},{method:e,headers:o?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}oo.prototype[e]=a(),oo.prototype[e+"Form"]=a(!0)});const ao=oo;class Ma{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(i){o=i});const n=this;this.promise.then(i=>{if(!n._listeners)return;let r=n._listeners.length;for(;r-- >0;)n._listeners[r](i);n._listeners=null}),this.promise.then=i=>{let r;const s=new Promise(l=>{n.subscribe(l),r=l}).then(i);return s.cancel=function(){n.unsubscribe(r)},s},a(function(i,r,s){n.reason||(n.reason=new yt(i,r,s),o(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const o=this._listeners.indexOf(a);o!==-1&&this._listeners.splice(o,1)}static source(){let a;return{token:new Ma(function(o){a=o}),cancel:a}}}const xw=Ma;function Tw(e){return function(a){return e.apply(null,a)}}function Ow(e){return k.isObject(e)&&e.isAxiosError===!0}const ja={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(ja).forEach(([e,a])=>{ja[a]=e});const Vw=ja;function ds(e){const a=new ao(e),o=Ri(ao.prototype.request,a);return k.extend(o,ao.prototype,a,{allOwnKeys:!0}),k.extend(o,a,null,{allOwnKeys:!0}),o.create=function(n){return ds(et(e,n))},o}const q=ds(za);q.Axios=ao,q.CanceledError=yt,q.CancelToken=xw,q.isCancel=ts,q.VERSION=ls,q.toFormData=Qt,q.AxiosError=L,q.Cancel=q.CanceledError,q.all=function(e){return Promise.all(e)},q.spread=Tw,q.isAxiosError=Ow,q.mergeConfig=et,q.AxiosHeaders=Fe,q.formToJSON=e=>Qi(k.isHTMLForm(e)?new FormData(e):e),q.getAdapter=rs.getAdapter,q.HttpStatusCode=Vw,q.default=q;const ms=q,$w=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},va={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},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}},mounted(){this.getScroll()},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*2+this.arrowsPadding*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)}}},ps=()=>{t.useCssVars(e=>({cc900658:e.backgroundColor,"243d0048":e.height,"12ed9ef4":e.arrowsPosition,"434aae32":e.arrowsPadding+"px","6c491439":e.arrowsBackground,"1a7aa8c4":e.arrowsHeight*2+"px","6e4c9ee1":e.arrowsWidth*2+"px","2876691d":e.arrowsRadius,"0df470b7":e.arrowsBorder,27766434:e.arrowsMargin+"px","122404b1":e.arrowsContainerBgL,"122404b7":e.arrowsContainerBgR,"31486e15":e.scrollColor}))},us=va.setup;va.setup=us?(e,a)=>(ps(),us(e,a)):ps;const Aw={class:"scrollable-container"},zw={class:"scrollable-arrows"},Rw=["width","height","viewBox"],Iw=["stroke"],Fw={class:"scrollable-wrapper"},Pw={class:"scrollable-arrows"},Lw=["width","height","viewBox"],Dw=["stroke"];function Mw(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",Aw,[o.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",r.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...s)=>r.scrollLeft&&r.scrollLeft(...s))},[t.createElementVNode("div",zw,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:r.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:o.arrowsColor},null,8,Iw)],8,Rw))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content",ref:"content",onScroll:a[1]||(a[1]=(...s)=>r.getScroll&&r.getScroll(...s))},[t.createElementVNode("div",Fw,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),o.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["arrows-container",r.hideShowRightArrow]),onClick:a[2]||(a[2]=(...s)=>r.scrollRight&&r.scrollRight(...s))},[t.createElementVNode("div",Pw,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:r.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:o.arrowsColor},null,8,Dw)],8,Lw))])],2)):t.createCommentVNode("",!0)])}const jw=$w(va,[["render",Mw],["__scopeId","data-v-a717f423"]]),We=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o};let hs=null;const Wa={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)hs=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),hs.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},fs=()=>{t.useCssVars(e=>({d6f07504:e.colorBackgroundHome+"45","6d0848cf":e.colorBackgroundAway+"45","524ee4ec":e.colorBackgroundHome,"524bd2fb":e.colorBackgroundAway}))},gs=Wa.setup;Wa.setup=gs?(e,a)=>(fs(),gs(e,a)):fs;const no=e=>(t.pushScopeId("data-v-45034b51"),e=e(),t.popScopeId(),e),vw=no(()=>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)),Ww=[vw],Uw=no(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),Hw=["src"],Gw=no(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),Jw=no(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),qw=["src"],Zw=["src"],Xw={class:"text-container"};function Kw(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(r.thumbnailhighlights)},[t.createElementVNode("div",{class:t.normalizeClass(r.playbutton),onClick:a[0]||(a[0]=(...s)=>r.onclickPlayVideos&&r.onclickPlayVideos(...s))},Ww,2),o.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.date)},t.toDisplayString(o.dateGame),3)):t.createCommentVNode("",!0),o.matchday!=""&&o.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(r.containerinfogame)},[o.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.matchcontainer)},t.toDisplayString(o.matchday),3)):t.createCommentVNode("",!0),o.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(r.seasoncontainer)},t.toDisplayString(o.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),Uw,t.createElementVNode("img",{src:o.background,alt:"",class:"bkg-blackwhite position-image"},null,8,Hw),t.createElementVNode("div",{class:t.normalizeClass([r.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(r.baselogoright)},null,2),Gw,Jw,t.createElementVNode("img",{src:o.logoHome,alt:"",class:t.normalizeClass(r.teamlogo)},null,10,qw),t.createElementVNode("img",{src:o.logoAway,alt:"",class:t.normalizeClass(r.logoright)},null,10,Zw),t.createElementVNode("div",Xw,[t.createElementVNode("span",{class:t.normalizeClass(r.secondline)},t.toDisplayString(o.score),3),t.createElementVNode("div",{class:t.normalizeClass(r.titlename)},t.toDisplayString(o.titleCategory),3)])],2)}const Yw=We(Wa,[["render",Kw],["__scopeId","data-v-45034b51"]]);let ys=null;const Ua={components:{},props:{colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{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"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},firstline(){const e=this.gamesContainerWidth;return e<=400?"first-line400":e<=540?"first-line540":e<=650?"first-line650":"first-line"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},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)ys=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),ys.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},bs=()=>{t.useCssVars(e=>({"46c0698e":e.colorBackgroundHome,"12d9d27a":e.colorBackgroundHome+"36"}))},ws=Ua.setup;Ua.setup=ws?(e,a)=>(bs(),ws(e,a)):bs;const bt=e=>(t.pushScopeId("data-v-9caaef34"),e=e(),t.popScopeId(),e),Qw=bt(()=>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)),e_=[Qw],t_=bt(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),o_=["src"],a_=bt(()=>t.createElementVNode("div",{class:"base-logo"},null,-1)),n_=["src"],r_=bt(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),i_={class:"text-container"},s_={class:"player-image position-image"},l_=["src"],c_=["src"],d_=["src"],m_=bt(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1));function p_(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(r.thumbnailhighlights)},[t.createElementVNode("div",{class:t.normalizeClass(r.playbutton),onClick:a[0]||(a[0]=(...s)=>r.onclickPlayVideos&&r.onclickPlayVideos(...s))},e_,2),t_,t.createElementVNode("img",{src:o.background,alt:"",class:"bkg-blackwhite position-image"},null,8,o_),a_,t.createElementVNode("img",{src:o.logoHome,alt:"",class:t.normalizeClass(r.teamlogo)},null,10,n_),r_,t.createElementVNode("div",i_,[t.createElementVNode("span",{class:t.normalizeClass(r.firstline)},t.toDisplayString(o.namePlayer),3),t.createElementVNode("span",{class:t.normalizeClass(r.secondline),style:t.normalizeStyle(o.nameCategory=="Balones recuperados en disputa "?"font-size: 25px":"")},t.toDisplayString(o.nameCategory),7)]),t.createElementVNode("div",s_,[o.typeImg==0?(t.openBlock(),t.createElementBlock("img",{key:0,src:o.photoProfile,class:t.normalizeClass(r.playerimage)},null,10,l_)):t.createCommentVNode("",!0),o.typeImg==1?(t.openBlock(),t.createElementBlock("img",{key:1,src:o.photoProfile,alt:""},null,8,c_)):t.createCommentVNode("",!0),o.typeImg==2?(t.openBlock(),t.createElementBlock("img",{key:2,src:o.photoProfile,class:"img-number"},null,8,d_)):t.createCommentVNode("",!0)]),m_],2)}const u_=We(Ua,[["render",p_],["__scopeId","data-v-9caaef34"]]);let _s=null;const Ha={components:{},props:{colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""},nameTeam:{type:String,default:""},nameCategory:{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"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},firstline(){const e=this.gamesContainerWidth;return e<=400?"first-line400":e<=540?"first-line540":e<=650?"first-line650":"first-line"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)_s=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),_s.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Ss=()=>{t.useCssVars(e=>({"5536c7dc":e.colorBackgroundHome,"3e449276":e.colorBackgroundHome+"36"}))},ks=Ha.setup;Ha.setup=ks?(e,a)=>(Ss(),ks(e,a)):Ss;const ro=e=>(t.pushScopeId("data-v-ca6c08d9"),e=e(),t.popScopeId(),e),h_=ro(()=>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)),f_=[h_],g_=ro(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),y_=["src"],b_={width:"275",height:"125",viewBox:"0 0 275 125",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"base-logo"},w_=["fill"],__=["id"],S_=["stop-color"],k_=["stop-color"],C_=["src"],B_=ro(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),E_={class:"text-container"},N_=ro(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1));function x_(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(r.thumbnailhighlights)},[t.createElementVNode("div",{class:t.normalizeClass(r.playbutton),onClick:a[0]||(a[0]=(...s)=>r.onclickPlayVideos&&r.onclickPlayVideos(...s))},f_,2),g_,t.createElementVNode("img",{src:o.background,alt:"",class:"bkg-blackwhite position-image"},null,8,y_),(t.openBlock(),t.createElementBlock("svg",b_,[t.createElementVNode("path",{d:"M274.641 124.094L0 0.675049V124.094H274.641Z",fill:"url(#paint0_linear_7_"+o.nameTeam.replaceAll(" ","")+")"},null,8,w_),t.createElementVNode("defs",null,[t.createElementVNode("linearGradient",{id:"paint0_linear_7_"+o.nameTeam.replaceAll(" ",""),x1:"58.6578",y1:"15.5938",x2:"58.6578",y2:"124.094",gradientUnits:"userSpaceOnUse"},[t.createElementVNode("stop",{"stop-color":o.colorBackgroundHome},null,8,S_),t.createElementVNode("stop",{offset:"1","stop-color":o.colorBackgroundHome},null,8,k_)],8,__)])])),t.createElementVNode("img",{class:t.normalizeClass(r.teamlogo),src:o.logoHome,alt:""},null,10,C_),B_,t.createElementVNode("div",E_,[t.createElementVNode("span",{class:t.normalizeClass(r.firstline)},[o.nameTeam!="Local"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(o.nameTeam),1)],64)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(r.secondline)},t.toDisplayString(o.nameCategory),3)]),N_],2)}const T_=We(Ha,[["render",x_],["__scopeId","data-v-ca6c08d9"]]);let Cs=null;const Ga={components:{},props:{colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""},nameTeam:{type:String,default:""},nameCategory:{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"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},firstline(){const e=this.gamesContainerWidth;return e<=400?"first-line400":e<=540?"first-line540":e<=650?"first-line650":"first-line"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)Cs=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Cs.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Bs=()=>{t.useCssVars(e=>({"17b44fa7":e.colorBackgroundHome,f1e257fe:e.colorBackgroundHome+"36"}))},Es=Ga.setup;Ga.setup=Es?(e,a)=>(Bs(),Es(e,a)):Bs;const io=e=>(t.pushScopeId("data-v-49b4e56b"),e=e(),t.popScopeId(),e),O_=io(()=>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)),V_=[O_],$_=io(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),A_=["src"],z_={width:"275",height:"125",viewBox:"0 0 275 125",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"base-logo-away"},R_=["fill"],I_=["id"],F_=["stop-color"],P_=["stop-color"],L_=["src"],D_=io(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),M_={class:"text-container"},j_=io(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1));function v_(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(r.thumbnailhighlights)},[t.createElementVNode("div",{class:t.normalizeClass(r.playbutton),onClick:a[0]||(a[0]=(...s)=>r.onclickPlayVideos&&r.onclickPlayVideos(...s))},V_,2),$_,t.createElementVNode("img",{src:o.background,alt:"",class:"bkg-blackwhite position-image"},null,8,A_),(t.openBlock(),t.createElementBlock("svg",z_,[t.createElementVNode("path",{d:"M274.641 124.094L0 0.675049V124.094H274.641Z",fill:"url(#paint0_linear_7_"+o.nameTeam.replaceAll(" ","")+")"},null,8,R_),t.createElementVNode("defs",null,[t.createElementVNode("linearGradient",{id:"paint0_linear_7_"+o.nameTeam.replaceAll(" ",""),x1:"58.6578",y1:"15.5938",x2:"58.6578",y2:"124.094",gradientUnits:"userSpaceOnUse"},[t.createElementVNode("stop",{"stop-color":o.colorBackgroundAway},null,8,F_),t.createElementVNode("stop",{offset:"1","stop-color":o.colorBackgroundAway},null,8,P_)],8,I_)])])),t.createElementVNode("img",{class:t.normalizeClass(r.teamlogo),src:o.logoHome,alt:""},null,10,L_),D_,t.createElementVNode("div",M_,[t.createElementVNode("span",{class:t.normalizeClass(r.firstline)},[o.nameTeam!="Away"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(o.nameTeam),1)],64)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(r.secondline)},t.toDisplayString(o.nameCategory),3)]),j_],2)}const W_=We(Ga,[["render",v_],["__scopeId","data-v-49b4e56b"]]);let Ns=null;const Ja={components:{},props:{colorFontHome:{type:String,default:"#000000"},colorFontAway:{type:String,default:"#000000"},type:{type:Number,default:0},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{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"},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"},texttitle2(){const e=this.gamesContainerWidth;return e<=400?"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)Ns=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Ns.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},xs=()=>{t.useCssVars(e=>({"102d345c":e.colorBackgroundHome,"1033583e":e.colorBackgroundAway,"2c786ece":e.colorBackgroundAway+"62","53f7e0b6":e.colorBackgroundHome+"36"}))},Ts=Ja.setup;Ja.setup=Ts?(e,a)=>(xs(),Ts(e,a)):xs;const so=e=>(t.pushScopeId("data-v-3a68172d"),e=e(),t.popScopeId(),e),U_=so(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),H_=so(()=>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)),G_=[H_],J_={class:"player-container"},q_=["src"],Z_=["src"],X_=["src"],K_={class:"container-score"},Y_=["src"],Q_=["src"],e5=["src"],t5=so(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),o5=so(()=>t.createElementVNode("div",{class:"gradient-color"},null,-1));function a5(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(r.thumbnailhighlights)},[U_,t.createElementVNode("div",{class:t.normalizeClass(r.playbutton),onClick:a[0]||(a[0]=(...s)=>r.onclickPlayVideos&&r.onclickPlayVideos(...s))},G_,2),t.createElementVNode("div",J_,[o.type==0?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(r.texttitle)},t.toDisplayString(o.nameCategory),3)):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(r.texttitle2)},t.toDisplayString(o.nameCategory),3)),o.typeImg==0?(t.openBlock(),t.createElementBlock("img",{key:2,src:o.photoProfile,class:t.normalizeClass(r.playerimage)},null,10,q_)):t.createCommentVNode("",!0),o.typeImg==1?(t.openBlock(),t.createElementBlock("img",{key:3,src:o.photoProfile,alt:""},null,8,Z_)):t.createCommentVNode("",!0),o.typeImg==2?(t.openBlock(),t.createElementBlock("img",{key:4,src:o.photoProfile,class:"img-number"},null,8,X_)):t.createCommentVNode("",!0),t.createElementVNode("div",K_,[t.createElementVNode("div",{class:t.normalizeClass(r.hometeam)},[t.createElementVNode("span",{class:t.normalizeClass(r.teamname),style:t.normalizeStyle({color:o.colorFontAway})},t.toDisplayString(o.nameHomeTeam),7),t.createElementVNode("img",{src:o.logoHome,alt:"",class:t.normalizeClass(r.teamlogo)},null,10,Y_),t.createElementVNode("span",{class:t.normalizeClass(r.teamscore)},t.toDisplayString(o.scoreHome),3)],2),t.createElementVNode("span",{class:t.normalizeClass(r.points)},":",2),t.createElementVNode("div",{class:t.normalizeClass(r.awayteam)},[t.createElementVNode("span",{class:t.normalizeClass(r.teamscore)},t.toDisplayString(o.scoreAway),3),t.createElementVNode("img",{src:o.logoAway,alt:"",class:t.normalizeClass(r.teamlogo)},null,10,Q_),t.createElementVNode("span",{class:t.normalizeClass(r.teamname),style:t.normalizeStyle({color:o.colorFontAway})},t.toDisplayString(o.nameAwayTeam),7)],2)])]),t.createElementVNode("img",{src:o.background,alt:"",class:"bkg-blackwhite position-image"},null,8,e5),t5,o5],2)}const n5=We(Ja,[["render",a5],["__scopeId","data-v-3a68172d"]]);let Os=null;const qa={components:{},props:{colorFont:{type:String,default:"#000000"},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{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"},firstline(){const e=this.gamesContainerWidth;return e<=400?"first-line400":e<=540?"first-line540":e<=650?"first-line650":"first-line"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},playername(){const e=this.gamesContainerWidth;return e<=400?"player-name400":e<=540?"player-name540":e<=650?"player-name650":"player-name"},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)Os=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Os.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Vs=()=>{t.useCssVars(e=>({"7f6829cd":e.colorBackgroundHome+"30","1ad47d61":e.colorBackgroundHome}))},$s=qa.setup;qa.setup=$s?(e,a)=>(Vs(),$s(e,a)):Vs;const lo=e=>(t.pushScopeId("data-v-cc315132"),e=e(),t.popScopeId(),e),r5=lo(()=>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)),i5=[r5],s5={class:"player-image position-image"},l5=["src"],c5=["src"],d5=["src"],m5=["src"],p5=lo(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),u5=["src"],h5=lo(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),f5={class:"text-container"},g5=lo(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),y5={class:"base-logo",width:"91",height:"216",viewBox:"0 0 91 216",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b5=["fill"];function w5(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(r.thumbnailhighlights)},[t.createElementVNode("div",{class:t.normalizeClass(r.playbutton),onClick:a[0]||(a[0]=(...s)=>r.onclickPlayVideos&&r.onclickPlayVideos(...s))},i5,2),t.createElementVNode("div",s5,[o.typeImg==0?(t.openBlock(),t.createElementBlock("img",{key:0,src:o.photoProfile,class:t.normalizeClass(r.playerimage)},null,10,l5)):t.createCommentVNode("",!0),o.typeImg==1?(t.openBlock(),t.createElementBlock("img",{key:1,src:o.photoProfile,alt:""},null,8,c5)):t.createCommentVNode("",!0),o.typeImg==2?(t.openBlock(),t.createElementBlock("img",{key:2,src:o.photoProfile,class:"img-number"},null,8,d5)):t.createCommentVNode("",!0)]),t.createElementVNode("img",{src:o.logoHome,alt:"",class:"team-logo"},null,8,m5),p5,t.createElementVNode("img",{src:o.background,alt:"",class:"bkg-blackwhite position-image"},null,8,u5),h5,t.createElementVNode("div",f5,[t.createElementVNode("span",{class:t.normalizeClass(r.firstline)},"MEJORES JUGADAS",2),t.createElementVNode("span",{class:t.normalizeClass(r.secondline)},t.toDisplayString(o.nameCategory),3),t.createElementVNode("div",{class:t.normalizeClass(r.playername),style:t.normalizeStyle({color:o.colorFont})},t.toDisplayString(o.namePlayer),7)]),g5,(t.openBlock(),t.createElementBlock("svg",y5,[t.createElementVNode("path",{d:"M91.5 216L0 -0.5H91.5V216Z",fill:o.colorBackgroundHome},null,8,b5)]))],2)}const _5=We(qa,[["render",w5],["__scopeId","data-v-cc315132"]]);function S5(e){const a=t.ref({width:0,height:0});function o(){const n=e.value.getBoundingClientRect();a.value.width=n.width,a.value.height=n.height}return t.onMounted(()=>{o(),window.addEventListener("resize",o)}),t.onUnmounted(()=>{window.removeEventListener("resize",o)}),{elementSize:a}}const k5="_ptg_lp0fw_5",C5="_ptgtitle_lp0fw_15",B5="_ptgtitle450_lp0fw_47",E5="_pgtcontainercard_lp0fw_79",N5="_pgtcontainercard350_lp0fw_89",x5={ptg:k5,ptgtitle:C5,ptgtitle450:B5,pgtcontainercard:E5,pgtcontainercard350:N5},Za={components:{GSCSlider:jw,GSCThumbnailCategory:u_,GSCThumbnailCategoryTeam:T_,GSCThumbnailCategoryTeamAway:W_,GSCThumbnailHighlightGamePlayer:n5,GSCThumbnailSummaryPlayer:_5,GSCThumbnailHighlightGameHistoric:Yw},setup(){const e=t.ref("ptgDiv"),{elementSize:a}=S5(e);return{ptgDiv:e,elementSize:a}},props:{title:{type:String,default:"100% de sus participaciones en cada partido:"},type:{type:Number,default:0},data:{type:Object,default:()=>{}},backgroundColor:{type:String,default:"#0D1D29"},backgroundFooter:{type:String,default:"#192733"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsScrollHide:{type:Boolean,default:!1},arrowsHideOnNoScroll:{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{token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",printData:[],teamsInfo:[],playerPhoto:!0,homeTeam:0,awayTeam:0,goalCategories:[12,55,"35_r","54_r"],resumeCategories:[607,608,12,55,54,35,14,52,15,53,466,477]}},watch:{data:{immediate:!0,handler(e){this.getTeamsInfo(e),this.getStats(e)}}},computed:{ptgtitleClass(){return this.elementSize.width<=450?this.$style.ptgtitle450:this.$style.ptgtitle},pgtcontainercardClass(){return this.elementSize.width<=350?this.$style.pgtcontainercard350:this.$style.pgtcontainercard}},methods:{onclickPlayVideos(e){let a=[],o=e.data.game_id?[e.data.game_id]:null;e.type==2?e.data.position_id==1?e.data.category==0?a=[55,324,323,608,39,774,802,52,53,40,54]:a=e.data.category:e.data.category==0?a=e.isAllPlays?[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]:[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]:a=e.data.category:e.type==3?e.data.category==0?a=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:a=e.data.category:e.data.category!=0?a=e.data.category:a=[607,608,12,55,54,35,14,52,15,53,466,477],this.data.isPrematch===1&&(o=null);const n=[1,2,3];let i={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:e.categories&&e.categories.length?e.categories:a,gameIds:o,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.matchResult]:n,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(i.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",i)},onClickVideos(e){this.$emit("onClickVideos",e)},onClickCard(e){this.$emit("onClickCard",e)},async getTeamsInfo(e){const a=await ms.create({headers:{Authorization:`${this.token}`}}).get("https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/"+e.season);for(let o=0;o<a.data.teams.length;o++)this.teamsInfo[a.data.teams[o].team_id]=a.data.teams[o]},async getStats(e){const a=ms.create({headers:{Authorization:`${this.token}`}});var o=[],n={},i={};if(this.type==0){i=await a.get("https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/"+e.season+"/"+e.player);for(let r=0;r<i.data.seasons[e.season].games_played.length;r++)n={player_id:e.player,color:i.data.info_thumbnails.colors.background_color,colorfont:i.data.info_thumbnails.colors.font_color,photo_profile:i.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.info_thumbnails.images.player_in_action[0]:"https://az755631.vo.msecnd.net/players-profile/"+e.player+".png",team_logo:"https://az755631.vo.msecnd.net/teams-150/"+i.data.seasons[e.season].games_played[r].home_team+".png",player_name:i.data.seasons[e.season].games_played[r].home_team_acronym+" "+i.data.seasons[e.season].games_played[r].home_team_score+" : "+i.data.seasons[e.season].games_played[r].visiting_team_score+" "+i.data.seasons[e.season].games_played[r].visiting_team_acronym,team_id:i.data.seasons[e.season].games_played[r].game_id,team_id_b:i.data.seasons[e.season].games_played[r].home_team,season_id:i.data.seasons[e.season].games_played[r].season_id,name:"",category:0,team_id:i.data.team_id,game_id:i.data.seasons[e.season].games_played[r].game_id,position_id:i.data.position_id,scorehome:i.data.seasons[e.season].games_played[r].home_team_score,scoreaway:i.data.seasons[e.season].games_played[r].visiting_team_score,hometeamacronym:i.data.seasons[e.season].games_played[r].home_team_acronym,visitingteamacronym:i.data.seasons[e.season].games_played[r].visiting_team_acronym,seasonname:i.data.seasons[e.season].name,match:i.data.seasons[e.season].games_played[r].matchday_name.replace("Matchday","Jor"),score:i.data.seasons[e.season].games_played[r].home_team_score+" : "+i.data.seasons[e.season].games_played[r].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.info_thumbnails.images.background_player_in_action[0],backgroundhome:i.data.seasons[e.season].games_played[r].info_thumbnails.home_colors.background_color,backgroundaway:i.data.seasons[e.season].games_played[r].info_thumbnails.away_colors.background_color,colorfont_home:i.data.seasons[e.season].games_played[r].info_thumbnails.home_colors.font_color,colorfont_away:i.data.seasons[e.season].games_played[r].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+i.data.seasons[e.season].games_played[r].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+i.data.seasons[e.season].games_played[r].visiting_team+".png",total:i.data.seasons[e.season].games_played[r].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+i.data.seasons[e.season].games_played[r].home_team+"_"+i.data.seasons[e.season].games_played[r].season_id+"_r1.jpg"},o.push(n)}if(this.type==1){i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/teams/"+e.team);for(let r=0;r<i.data.categories.length;r++){this.playerPhoto=!1;const s=Math.floor(Math.random()*i.data.categories[r].info_thumbnails.images.background_default_categories.length),l=Math.floor(Math.random()*i.data.categories[r].info_thumbnails.images.background_default_teams.length);n={player_action:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.categories[r].info_thumbnails.images.background_default_categories[s],background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.categories[r].info_thumbnails.images.background_default_teams[l],color:i.data.categories[r].info_thumbnails.colors.background_color,team_logo:"https://az755631.vo.msecnd.net/teams-80/"+i.data.categories[r].info_thumbnails.team_logo,player_name:i.data.categories[r].category_name,team_name:this.teamsInfo[i.data.team_id].colloquial_name,team_id:i.data.team_id,colorfont:i.data.categories[r].info_thumbnails.colors.font_color,team_id_b:i.data.team_id,category:i.data.categories[r].categories,season_id:i.data.season_id,total:i.data.categories[r].total,background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+i.data.team_id+"_"+i.data.season_id+"_r1.jpg"},o.push(n)}}if(this.type==2){i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/players/"+e.player);for(let r=0;r<i.data.categories.length;r++){this.playerPhoto=!1;const s=Math.floor(Math.random()*i.data.categories[r].info_thumbnails.images.player_in_action.length),l=Math.floor(Math.random()*i.data.categories[r].info_thumbnails.images.background_default_categories.length);n={player_action:i.data.categories[r].info_thumbnails.images.player_in_action[s]?"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.categories[r].info_thumbnails.images.player_in_action[s]:"https://az755631.vo.msecnd.net/players-profile/"+e.player+".png",background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.categories[r].info_thumbnails.images.background_default_categories[l],color:i.data.categories[r].info_thumbnails.colors.background_color,team_logo:"https://az755631.vo.msecnd.net/teams-80/"+i.data.categories[r].info_thumbnails.team_logo,player_name:i.data.categories[r].category_name,season_id:e.season,colorfont:i.data.categories[r].info_thumbnails.colors.font_color,player_id:e.player,team_id:i.data.categories[r].info_thumbnails.colors.team_id,category:i.data.categories[r].categories,total:i.data.categories[r].total,background_card:"https://az755631.vo.msecnd.net/players-profile/"+e.player+".png"},o.push(n)}}if(this.type==3){this.playerPhoto=!1,i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/games/"+e.game);for(let r=0;r<i.data.games[0].players.length;r++){const s=Math.floor(Math.random()*i.data.games[0].players[r].info_thumbnails.images.background_player_in_action.length),l=Math.floor(Math.random()*i.data.games[0].players[r].info_thumbnails.images.player_in_action.length);n={colorbackgroundhome:i.data.games[0].players[r].info_thumbnails.colors.background_color,colorbackgroundaway:"",nameplayer:i.data.games[0].players[r].player_name,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.games[0].players[r].info_thumbnails.images.background_player_in_action[s],namecategory:"RESUMEN",namehometeam:"",nameawayteam:"",category:0,colorfont:i.data.games[0].players[r].info_thumbnails.colors.font_color,team_id:i.data.games[0].players[r].team_id,player_id:i.data.games[0].players[r].player_id,game_id:i.data.games[0].game_id,season_id:i.data.season_id,logohome:i.data.games[0].players[r].team_logo,photoprofile:i.data.games[0].players[r].info_thumbnails.images.player_in_action[l]?"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.games[0].players[r].info_thumbnails.images.player_in_action[l]:"https://az755631.vo.msecnd.net/players-profile/"+i.data.games[0].players[r].player_id+".png",logoaway:"",scoreaway:"",scorehome:""},o.push(n)}}if(this.type==4){console.log("Hola nuva mente 44444: "),console.log(i.data),this.playerPhoto=!1,i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/specifics-plays/seasons/"+e.season+"/games/"+e.game);for(let r=0;r<i.data.home_team.categories.length;r++){const s=Math.floor(Math.random()*i.data.home_team.categories[r].info_thumbnails.images.background_default_teams.length);n={game_id:i.data.game_id,season_id:i.data.season_id,team_id:i.data.home_team.team_id,category:i.data.home_team.categories[r].categories.concat(i.data.home_team.categories[r].rival_categories),background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.home_team.categories[r].info_thumbnails.images.background_default_categories[s],player_action:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.home_team.categories[r].info_thumbnails.images.background_default_categories[s],team_logo:"https://az755631.vo.msecnd.net/teams-150/"+i.data.home_team.team_id+".png",color:i.data.home_team.categories[r].info_thumbnails.colors.background_color,colorfont:i.data.home_team.categories[r].info_thumbnails.colors.font_color,player_name:i.data.home_team.categories[r].category_name,total:i.data.home_team.categories[r].total,team_name:"Local",background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+i.data.home_team.team_id+"_"+i.data.season_id+"_r1.jpg"},o.push(n)}}if(this.type==5){this.playerPhoto=!1,i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/specifics-plays/seasons/"+e.season+"/games/"+e.game);for(let r=0;r<i.data.visiting_team.categories.length;r++){const s=Math.floor(Math.random()*i.data.visiting_team.categories[r].info_thumbnails.images.background_default_categories.length);n={game_id:i.data.game_id,season_id:i.data.season_id,team_id:i.data.visiting_team.team_id,category:i.data.visiting_team.categories[r].categories.concat(i.data.visiting_team.categories[r].rival_categories),background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.visiting_team.categories[r].info_thumbnails.images.background_default_categories[s],player_action:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.visiting_team.categories[r].info_thumbnails.images.background_default_categories[s],team_logo:"https://az755631.vo.msecnd.net/teams-150/"+i.data.visiting_team.team_id+".png",team_name:"Away",color:i.data.visiting_team.categories[r].info_thumbnails.colors.background_color,colorfont:i.data.visiting_team.categories[r].info_thumbnails.colors.font_color,player_name:i.data.visiting_team.categories[r].category_name,total:i.data.visiting_team.categories[r].total,background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+i.data.visiting_team.team_id+"_"+i.data.season_id+"_r1.jpg"},o.push(n)}}if(this.type==6){i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/teams/"+e.team+"/categories/"+e.category);for(let r=0;r<i.data.best_plays.length;r++)n={category:i.data.best_plays[r].categories,team_id:i.data.team_id,game_id:i.data.best_plays[r].game_id,season_id:i.data.season_id,backgroundhome:i.data.best_plays[r].info_thumbnails.home_colors.background_color,backgroundaway:i.data.best_plays[r].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+i.data.best_plays[r].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+i.data.best_plays[r].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.best_plays[r].info_thumbnails.images.background_default_categories[0],match:"",seasonname:"",score:i.data.best_plays[r].score[0]+" : "+i.data.best_plays[r].score[1]},o.push(n)}if(this.type==7){i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/teams/"+e.team+"/categories/"+e.category);for(let r=0;r<i.data.best_plays.length;r++)n={category:i.data.best_plays[r].categories,team_id:i.data.team_id,game_id:i.data.best_plays[r].game_id,season_id:i.data.season_id,backgroundhome:i.data.best_plays[r].info_thumbnails.home_colors.background_color,colorfont_home:i.data.best_plays[r].info_thumbnails.home_colors.font_color,colorfont_away:i.data.best_plays[r].info_thumbnails.away_colors.font_color,backgroundaway:i.data.best_plays[r].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+i.data.best_plays[r].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+i.data.best_plays[r].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.best_plays[r].info_thumbnails.images.background_default_categories[0],match:"",seasonname:"",score:i.data.best_plays[r].score[0]+" : "+i.data.best_plays[r].score[1]},o.push(n)}if(this.type==8){i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/players/"+e.player+"/categories/"+e.category);for(let r=0;r<i.data.best_plays.length;r++)n={category:i.data.best_plays[r].categories,team_id:i.data.team_id,game_id:i.data.best_plays[r].game_id,season_id:i.data.season_id,player_id:i.data.player_id,backgroundhome:i.data.best_plays[r].info_thumbnails.home_colors.background_color,backgroundaway:i.data.best_plays[r].info_thumbnails.away_colors.background_color,colorfont_home:i.data.best_plays[r].info_thumbnails.home_colors.font_color,colorfont_away:i.data.best_plays[r].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+i.data.best_plays[r].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+i.data.best_plays[r].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.best_plays[r].info_thumbnails.images.background_default_categories[0],match:"",scorehome:i.data.best_plays[r].score[0],scoreaway:i.data.best_plays[r].score[1],photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+i.data.best_plays[r].info_thumbnails.player_logo,hometeamacronym:i.data.best_plays[r].home_team_acronym,visitingteamacronym:i.data.best_plays[r].away_team_acronym,seasonname:"",score:i.data.best_plays[r].score[0]+" : "+i.data.best_plays[r].score[1]},o.push(n)}if(this.type==9){i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/players/"+e.player+"/categories/"+e.category);for(let r=0;r<i.data.best_plays.length;r++)n={category:i.data.best_plays[r].categories,team_id:i.data.team_id,player_id:i.data.player_id,game_id:i.data.best_plays[r].game_id,season_id:i.data.season_id,backgroundhome:i.data.best_plays[r].info_thumbnails.home_colors.background_color,backgroundaway:i.data.best_plays[r].info_thumbnails.away_colors.background_color,colorfont_home:i.data.best_plays[r].info_thumbnails.home_colors.font_color,colorfont_away:i.data.best_plays[r].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+i.data.best_plays[r].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+i.data.best_plays[r].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.best_plays[r].info_thumbnails.images.background_default_categories[0],match:"",scorehome:i.data.best_plays[r].score[0],scoreaway:i.data.best_plays[r].score[1],seasonname:"",photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+i.data.best_plays[r].info_thumbnails.player_logo,score:i.data.best_plays[r].score[0]+" : "+i.data.best_plays[r].score[1]},o.push(n)}if(this.type==10){const r=await a.get("https://ws8d8ye2ii.execute-api.us-west-2.amazonaws.com/prod/v4/seasonsByTeam/"+e.team);for(let s=0;s<r.data.seasons[e.season].games.length;s++){const l=Math.floor(Math.random()*r.data.seasons[e.season].games[s].info_thumbnails.images.background_default_games.length);n={photo_profile:"https://az755631.vo.msecnd.net/teams-150/"+r.data.seasons[e.season].games[s].visiting_team+".png",team_logo:"https://az755631.vo.msecnd.net/teams-150/"+r.data.seasons[e.season].games[s].home_team+".png",player_name:r.data.seasons[e.season].games[s].home_team_acronym+" "+r.data.seasons[e.season].games[s].home_team_score+" : "+r.data.seasons[e.season].games[s].visiting_team_score+" "+r.data.seasons[e.season].games[s].visiting_team_acronym,team_id:r.data.seasons[e.season].games[s].game_id,team_id_b:r.data.seasons[e.season].games[s].home_team,season_id:r.data.seasons[e.season].games[s].season_id,name:"",category:0,colorfont_home:r.data.best_plays[s].info_thumbnails.home_colors.colors.font_color,colorfont_away:r.data.best_plays[s].info_thumbnails.away_colors.colors.font_color,game_id:r.data.seasons[e.season].games[s].game_id,seasonname:r.data.seasons[e.season].name,match:r.data.seasons[e.season].games[s].matchday_name.replace("Matchday","Jor"),score:r.data.seasons[e.season].games[s].home_team_score+" : "+r.data.seasons[e.season].games[s].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+r.data.seasons[e.season].games[s].info_thumbnails.images.background_default_games[l],backgroundhome:r.data.seasons[e.season].games[s].info_thumbnails.home_colors.background_color,backgroundaway:r.data.seasons[e.season].games[s].info_thumbnails.away_colors.background_color,colorfont_home:r.data.best_plays[s].info_thumbnails.home_colors.font_color,colorfont_away:r.data.best_plays[s].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+r.data.seasons[e.season].games[s].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+r.data.seasons[e.season].games[s].visiting_team+".png",total:r.data.seasons[e.season].games[s].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+r.data.seasons[e.season].games[s].home_team+"_"+r.data.seasons[e.season].games[s].season_id+"_r1.jpg"},o.push(n)}}if(this.type==11){const r=await a.get("https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/"+e.season+"/"+e.player);for(let s=0;s<r.data.seasons[e.season].games_played.length;s++)Math.floor(Math.random()*r.data.seasons[e.season].games_played[s].info_thumbnails.images.background_default_games.length),n={category:0,player_id:e.player,team_id:r.data.team_id,game_id:r.data.seasons[e.season].games_played[s].game_id,position_id:r.data.position_id,color:r.data.info_thumbnails.colors.background_color,photo_profile:"https://golstatsimages.blob.core.windows.net/images-library/"+r.data.info_thumbnails.images.player_in_action[0],team_logo:"https://az755631.vo.msecnd.net/teams-150/"+r.data.seasons[e.season].games_played[s].home_team+".png",player_name:r.data.seasons[e.season].games_played[s].home_team_acronym+" "+r.data.seasons[e.season].games_played[s].home_team_score+" : "+r.data.seasons[e.season].games_played[s].visiting_team_score+" "+r.data.seasons[e.season].games_played[s].visiting_team_acronym,team_id_b:r.data.seasons[e.season].games_played[s].home_team,season_id:r.data.seasons[e.season].games_played[s].season_id,name:r.data.seasons[e.season].games_played[s].player_name,seasonname:r.data.seasons[e.season].name,match:r.data.seasons[e.season].games_played[s].matchday_name.replace("Matchday","Jor"),scorehome:r.data.seasons[e.season].games_played[s].home_team_score,scoreaway:r.data.seasons[e.season].games_played[s].visiting_team_score,hometeamacronym:r.data.seasons[e.season].games_played[s].home_team_acronym,visitingteamacronym:r.data.seasons[e.season].games_played[s].visiting_team_acronym,background:"https://golstatsimages.blob.core.windows.net/images-library/"+r.data.info_thumbnails.images.background_player_in_action[0],backgroundhome:r.data.seasons[e.season].games_played[s].info_thumbnails.home_colors.background_color,backgroundaway:r.data.seasons[e.season].games_played[s].info_thumbnails.away_colors.background_color,colorfont_home:r.data.seasons[e.season].games_played[s].info_thumbnails.home_colors.font_color,colorfont_away:r.data.seasons[e.season].games_played[s].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+r.data.seasons[e.season].games_played[s].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+r.data.seasons[e.season].games_played[s].visiting_team+".png",total:r.data.seasons[e.season].games_played[s].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+r.data.seasons[e.season].games_played[s].home_team+"_"+r.data.seasons[e.season].games_played[s].season_id+"_r1.jpg"},o.push(n)}if(this.type==12){const r=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/categories/"+e.category);for(let s=0;s<r.data.length;s++)for(let l=0;l<r.data[s].best_plays.length;l++)n={category:r.data[s].best_plays[l].categories,game_id:r.data[s].best_plays[l].game_id,season_id:r.data[s].season_id,backgroundhome:r.data[s].best_plays[l].info_thumbnails.home_colors.background_color,backgroundaway:r.data[s].best_plays[l].info_thumbnails.away_colors.background_color,colorfont_home:r.data[s].best_plays[l].info_thumbnails.home_colors.font_color,colorfont_away:r.data[s].best_plays[l].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+r.data[s].best_plays[l].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+r.data[s].best_plays[l].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+r.data[s].best_plays[l].info_thumbnails.images.background_default_categories[0],match:"",scorehome:r.data[s].best_plays[l].score[0],scoreaway:r.data[s].best_plays[l].score[1],seasonname:"",photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+r.data[s].best_plays[l].info_thumbnails.player_logo,score:r.data[s].best_plays[l].score[0]+" : "+r.data[s].best_plays[l].score[1]},o.push(n)}if(this.type==13){const r=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/categories/"+e.category);for(let s=0;s<r.data.length;s++)for(let l=0;l<r.data[s].best_plays.length;l++)n={category:r.data[s].best_plays[l].categories,game_id:r.data[s].best_plays[l].game_id,season_id:r.data[s].season_id,backgroundhome:r.data[s].best_plays[l].info_thumbnails.home_colors.background_color,backgroundaway:r.data[s].best_plays[l].info_thumbnails.away_colors.background_color,colorfont_home:r.data[s].best_plays[l].info_thumbnails.home_colors.font_color,colorfont_away:r.data[s].best_plays[l].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+r.data[s].best_plays[l].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+r.data[s].best_plays[l].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+r.data[s].best_plays[l].info_thumbnails.images.background_default_categories[0],match:"",scorehome:r.data[s].best_plays[l].score[0],scoreaway:r.data[s].best_plays[l].score[1],seasonname:"",photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+r.data[s].best_plays[l].info_thumbnails.player_logo,score:r.data[s].best_plays[l].score[0]+" : "+r.data[s].best_plays[l].score[1]},o.push(n)}this.printData=o}},async created(){}},As=()=>{t.useCssVars(e=>({"4956e38c":e.backgroundColor}))},zs=Za.setup;Za.setup=zs?(e,a)=>(As(),zs(e,a)):As;function T5(e,a,o,n,i,r){const s=t.resolveComponent("GSCThumbnailCategory"),l=t.resolveComponent("GSCThumbnailCategoryTeam"),p=t.resolveComponent("GSCThumbnailCategoryTeamAway"),c=t.resolveComponent("GSCThumbnailHighlightGamePlayer"),m=t.resolveComponent("GSCThumbnailHighlightGameHistoric"),u=t.resolveComponent("GSCThumbnailSummaryPlayer"),g=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.ptg),ref:"ptgDiv"},[t.createElementVNode("div",{class:t.normalizeClass(r.ptgtitleClass)},t.toDisplayString(o.title),3),t.createVNode(g,{backgroundColor:o.backgroundColor,pxScroll:o.pxScroll,arrows:o.arrows,arrowsScrollHide:o.arrowsScrollHide,arrowsHideOnNoScroll:o.arrowsHideOnNoScroll,arrowsColor:o.arrowsColor,arrowsHeight:o.arrowsWidth,arrowsWidth:o.arrowsWidth,arrowsPadding:o.arrowsPadding,arrowsMargin:o.arrowsMargin,arrowsRadius:o.arrowsRadius,arrowsBorder:o.arrowsBorder,arrowsBackground:o.arrowsBackground,arrowsContainerBgL:o.arrowsContainerBgL,arrowsContainerBgR:o.arrowsContainerBgR,scrollColor:o.scrollColor,arrowsPosition:o.arrowsPosition,height:o.height},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.printData,(d,h)=>(t.openBlock(),t.createElementBlock("div",{key:h,class:t.normalizeClass(r.pgtcontainercardClass),style:t.normalizeStyle(h==0?"margin-left: 0px !important; color: white;":"")},[o.type==2?(t.openBlock(),t.createBlock(s,{key:0,"color-background-home":d.color,"name-player":o.data.player_name,"type-img":"0",background:d.background_action,"name-category":d.player_name,"logo-home":d.team_logo,onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:2}),"photo-profile":d.player_action},null,8,["color-background-home","name-player","background","name-category","logo-home","onOnclickPlayVideos","photo-profile"])):o.type==1||o.type==4?(t.openBlock(),t.createBlock(l,{key:1,type:"team","name-team":d.team_name!=null?d.team_name:"","type-style":"category","color-background-home":d.color,"logo-home":d.team_logo,onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:3}),background:d.player_action,"name-category":d.player_name},null,8,["name-team","color-background-home","logo-home","onOnclickPlayVideos","background","name-category"])):o.type==5?(t.openBlock(),t.createBlock(p,{key:2,type:"team","name-team":d.team_name!=null?d.team_name:"","type-style":"category","color-background-away":d.color,"logo-home":d.team_logo,onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:3}),background:d.player_action,"name-category":d.player_name},null,8,["name-team","color-background-away","logo-home","onOnclickPlayVideos","background","name-category"])):o.type==0?(t.openBlock(),t.createBlock(c,{key:3,items:d,type:2,"name-category":"TODAS SUS JUGADAS","color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"color-font-home":d.colorfont_home,"color-font-away":d.colorfont_away,"logo-home":d.logohome,"logo-away":d.logoaway,onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:2,isAllPlays:!0}),background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,matchday:d.match,"score-home":d.scorehome,"photo-profile":d.photo_profile,"score-away":d.scoreaway,"season-name":d.seasonname},null,8,["items","color-background-home","color-background-away","color-font-home","color-font-away","logo-home","logo-away","onOnclickPlayVideos","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):o.type==6?(t.openBlock(),t.createBlock(m,{key:4,items:d,"color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,background:d.background,"title-category":"GOLES",onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:3,categories:i.goalCategories}),matchday:d.match,"season-name":d.seasonname,score:d.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","onOnclickPlayVideos","matchday","season-name","score"])):o.type==7?(t.openBlock(),t.createBlock(m,{key:5,items:d,"color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,background:d.background,"title-category":"RESUMEN",onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:3,categories:i.resumeCategories}),matchday:d.match,"season-name":d.seasonname,score:d.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","onOnclickPlayVideos","matchday","season-name","score"])):o.type==8?(t.openBlock(),t.createBlock(c,{key:6,items:d,type:2,"name-category":"RESUMEN","color-font-home":d.colorfont_home,"color-font-away":d.colorfont_away,"color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:2}),background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,matchday:d.match,"score-home":d.scorehome,"photo-profile":d.photo_profile,"score-away":d.scoreaway,"season-name":d.seasonname},null,8,["items","color-font-home","color-font-away","color-background-home","color-background-away","logo-home","logo-away","onOnclickPlayVideos","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):o.type==9?(t.openBlock(),t.createBlock(c,{key:7,items:d,type:2,"name-category":"RESUMEN","color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:2}),"logo-away":d.logoaway,background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,matchday:d.match,"score-home":d.scorehome,"photo-profile":d.photo_profile,"score-away":d.scoreaway,"season-name":d.seasonname},null,8,["items","color-background-home","color-background-away","logo-home","onOnclickPlayVideos","logo-away","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):o.type==10?(t.openBlock(),t.createBlock(m,{key:8,items:d,"color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:1}),background:d.background,"title-category":"RESUMEN",matchday:d.match,"season-name":d.seasonname,score:d.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","onOnclickPlayVideos","background","matchday","season-name","score"])):o.type==11?(t.openBlock(),t.createBlock(c,{key:9,items:d,type:2,"name-category":"RESUMEN","color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,matchday:d.match,"color-font-home":d.colorfont_home,"color-font-away":d.colorfont_away,onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:2}),"score-home":d.scorehome,"photo-profile":d.photo_profile,"score-away":d.scoreaway,"season-name":d.seasonname},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","name-home-team","name-away-team","matchday","color-font-home","color-font-away","onOnclickPlayVideos","score-home","photo-profile","score-away","season-name"])):o.type==12?(t.openBlock(),t.createBlock(c,{key:10,items:d,type:2,"name-category":"RESUMEN","color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,"color-font-home":d.colorfont_home,"color-font-away":d.colorfont_away,onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:1}),background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,matchday:d.match,"score-home":d.scorehome,"photo-profile":d.photo_profile,"score-away":d.scoreaway,"season-name":d.seasonname},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","color-font-home","color-font-away","onOnclickPlayVideos","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):o.type==13?(t.openBlock(),t.createBlock(c,{key:11,items:d,type:2,"name-category":"GOLES","color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:1,categories:i.goalCategories}),background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,matchday:d.match,"score-home":d.scorehome,"photo-profile":d.photo_profile,"score-away":d.scoreaway,"season-name":d.seasonname},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","onOnclickPlayVideos","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):(t.openBlock(),t.createBlock(u,{key:12,type:"player","color-background-home":d.colorbackgroundhome,"color-background-away":d.colorbackgroundaway,"name-player":d.nameplayer,"type-img":0,onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:2}),background:d.background,"name-home-team":d.namehometeam,"name-away-team":d.nameawayteam,"name-category":"RESUMEN","logo-away":d.logoaway,"logo-home":d.logohome,"color-font":d.colorfont,"score-home":d.scorehome,"photo-profile":d.photoprofile,"score-away":d.logoaway,"type-style":"summary"},null,8,["color-background-home","color-background-away","name-player","onOnclickPlayVideos","background","name-home-team","name-away-team","logo-away","logo-home","color-font","score-home","photo-profile","score-away"]))],6))),128))]),_:1},8,["backgroundColor","pxScroll","arrows","arrowsScrollHide","arrowsHideOnNoScroll","arrowsColor","arrowsHeight","arrowsWidth","arrowsPadding","arrowsMargin","arrowsRadius","arrowsBorder","arrowsBackground","arrowsContainerBgL","arrowsContainerBgR","scrollColor","arrowsPosition","height"])],2)}const O5={name:"DiscoverVideos",components:{GscSwitchComponent:Qo,GSCPlayerTeamGame:We(Za,[["render",T5],["__cssModules",{$style:x5}]]),GSCButton:Ei},props:{myTournament:{type:Number,default:1},videoType:{type:Number,default:1},team:{type:Number,default:0},user:{type:Object,default:()=>{}},nextRivalTeam:{type:Object,default:()=>{}},tournamentSelected:{type:Object,default:()=>{}},seasonSelected:{type:Object,default:()=>{}}},data(){return{currentTabMoreVideos:"Resumen",currentMobileTab:"Descubre videos",mobileClass:!1,resumeCategory:1000001,goalsCategory:1255e3,resumeType:1,goalsType:2}},mounted(){this.mobileClass=window.innerWidth<768,window.addEventListener("resize",this.handleResize)},methods:{handleResize(){this.mobileClass=window.innerWidth<768},onOpenMedia(e){this.$emit("openmedia",e)},onClickOpenMedia(){let o=1,n=[],i=[],r=0,s=this.user.season,l=[],p=[12,55,"35_r","54_r"],c=[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],m=[55,324,323,608,39,774,802,52,53,40,54];this.tournamentSelected.id===this.user.tournament?(s=this.seasonSelected.id,this.user.is_goalkeeper?(n=[this.user.player],l=m,o=2):this.user.is_player?(i=[this.user.player],l=c,o=2):(r=this.user.team,l=p,o=3)):(l=p,o=1);const u={seasonId:s,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:o,gameIds:null,playerIds:i,goalkeeperIds:n,categoryIds:l,teamId:r,matchResult:[1,2,3],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:""},objectPlaySync:null};this.$emit("openmedia",u)}}},V5=e=>(t.pushScopeId("data-v-6e0d5ced"),e=e(),t.popScopeId(),e),$5={class:"discover-videos",ref:"discoverVideosRef"},A5={class:"title-and-button"},z5=V5(()=>t.createElementVNode("div",{class:"title-value"},null,-1)),R5={class:"btn-search-videos"};function I5(e,a,o,n,i,r){const s=t.resolveComponent("GSCButton"),l=t.resolveComponent("GscSwitchComponent"),p=t.resolveComponent("GSCPlayerTeamGame");return t.openBlock(),t.createElementBlock("div",$5,[t.createElementVNode("div",A5,[z5,t.createElementVNode("div",R5,[t.createVNode(s,{style:{"margin-top":"4px"},width:"182px","text-value":"Buscar videos","font-color":"#ffffff","font-family":"Poppins-Light","font-size":"16px",icon:"https://golstatsimages.blob.core.windows.net/images-library/icn-buscar-videos.svg","icon-size":"30px","icon-position":"right","button-max-width":"250px",height:"38px","border-radius":"50px","border-width":"1","background-color":"transparent","border-color":"#CBEE6B","active-background-color":"#CBEE6B",onClick:r.onClickOpenMedia},null,8,["onClick"])])]),o.myTournament===o.tournamentSelected.id?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createVNode(l,{style:{"margin-left":"0px"},buttons:["Resumen","Proximo rival"],onInput:a[0]||(a[0]=c=>i.currentTabMoreVideos=c),background:"trasparent",height:"28px",width:"160px",fontSize:"14px","font-family":"Poppins-Light",backgroundOptionActive:"transparent",borderWidth:"2px",type:2,arrow:!1,selectedOption:i.currentTabMoreVideos,onOpenmedia:r.onOpenMedia},null,8,["selectedOption","onOpenmedia"]),i.currentTabMoreVideos=="Resumen"?(t.openBlock(),t.createBlock(p,{key:0,type:7,title:"",style:{"margin-top":"-30px"},backgroundColor:"transparent",data:{season:o.seasonSelected.id,team:o.team,category:i.resumeCategory},width:"100%",onOpenmedia:r.onOpenMedia},null,8,["data","onOpenmedia"])):(t.openBlock(),t.createBlock(p,{key:1,type:7,style:{"margin-top":"-30px"},title:"",backgroundColor:"transparent",data:{season:o.seasonSelected.id,team:o.nextRivalTeam.id,category:i.resumeCategory},width:"100%",onOpenmedia:r.onOpenMedia},null,8,["data","onOpenmedia"]))],64)):(t.openBlock(),t.createBlock(p,{key:1,style:{"margin-top":"-30px"},type:13,data:{season:o.seasonSelected.id,category:i.goalsCategory},width:"100%",backgroundColor:"transparent",title:"",onOpenmedia:r.onOpenMedia},null,8,["data","onOpenmedia"]))],512)}const F5={components:{GSCSeasonSelect:fb,GSCTournamentSelect:G2,GSCGames:b1,GSCGridTeamsMatches:Cc,GSCPlayersLanding:gc,GSCTops:b2,GSCTableCalendar:hy,DiscoverVideos:ie(O5,[["render",I5],["__scopeId","data-v-6e0d5ced"]])},setup(){const e=t.ref("landingref"),{elementSize:a}=Hl(e);return{landingref:e,elementSize:a}},watch:{team:{immediate:!0,deep:!0,async handler(e){if(Object.keys(this.seasonSelected).length!==0){const a=await this.generateSeasons(this.seasonSelected);this.seasonsSelected=a,this.fetchGames(e,a)}}},closestRound(e){this.selectedRoundKeyIndex=this.tournamentScheduleKeys.findIndex(a=>a===e),this.selectedRound=e}},props:{currentSeasonId:{type:Number,default:0},season:{type:Number,default:1772},isplayer:{type:Boolean,default:!1},user:{type:Object,default:()=>{}},team:{type:Number,default:0},player:{type:Number,default:0},gamesPerMatchDay:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}}},data(){return{defaultGameId:0,lastSeasonsIds:[],gamesPages:new Map,selectedRoundKeyIndex:0,selectedRound:0,fullTournamentScheduleFull:[],defaultMatchDayKey:null,isCupTournament:!1,retries:3,userTeamGames:[],isCupLegacyTournament:!1,tournamentScheduleKeys:[],currentTournamentGames:null,currentTournamentTeams:null,gamesUrl:"https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason/",gamesUrl2:"https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",seasonSelected:{},seasonSelectedDropDowns:{},seasonsSelected:[],fullTournamentSchedule:{},tournamentSelected:{},tournamentSelectedDropDowns:{seasons:[]},playersLength:0,nextRivalId:0,loadDiscover:!1,hasNextRival:!1,resumeType:1,goalsType:2,tokenFree:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{gamesFullLeague(){var e=[];if(this.fullTournamentScheduleFull&&Object.keys(this.fullTournamentScheduleFull).length>0)for(let a=0;a<this.fullTournamentScheduleFull[this.selectedRound].length;a++)for(let o=0;o<this.fullTournamentScheduleFull[this.selectedRound][a].games.length;o++)e.push(this.fullTournamentScheduleFull[this.selectedRound][a].games[o]);return e},closestRound(){return this.userTeamGames&&this.userTeamGames.length?this.getUserTeamClosestRound(this.fullTournamentScheduleFull):this.getNormalClosestRound(this.fullTournamentScheduleFull)},containerGridCalendarTable(){return this.elementSize.width<=1e3?"container-grid-calendar-table-mobile":"container-grid-calendar-table"},containerbackground(){return this.elementSize.width<=680?"container-background-movil":"container-background"},containerdata(){return this.elementSize.width<=680?"container-data-movil":"container-data"}},methods:{formatUsername(e){const a=e.split(",");let o="",n="";return a[1]?(n=a[1].trim().split(" "),n[0]?o=n[0]:o=a[1]):a[0]&&(n=a[0].trim().split(" "),n[0]?o=n[0]:o=a[0]),o.trim()},onAction(e){this.$emit("action",e)},onOpenMedia(e){this.$emit("openmedia",e)},onOpenProfile(e){this.$emit("onOpenProfile",e)},onClickMatch(e){this.$emit("openGame",e)},onClickCalendar(){const e={type:this.tournamentSelected.id==this.user.tournament?1:0,team:this.team,season:this.seasonSelectedDropDowns};this.$emit("onClickMyCalendar",e)},moreTops(){const e={team:this.team,season:this.seasonSelectedDropDowns};this.$emit("openTops",e)},clickProfileBtn(e){this.$emit("openProfile",e)},viewAll(){const e={team:this.team,season:this.seasonSelectedDropDowns};this.$emit("openAllPlayers",e)},getTotalPlayers(e){this.playersLength=e},clickCard(e){const a={data:e,isPlayer:this.isplayer};this.$emit("clickOnMainCards",a)},async fetchGames(e,a){const o=a.map(i=>`seasons=${i.id}`).join("&"),n=Tt.create({headers:{Authorization:`${this.tokenFree}`}});this.fullTournamentSchedule=await n.get(this.gamesUrl+e+"?"+o),this.nextRivalId=Object.keys(this.fullTournamentSchedule).length>0?this.user.team==this.fullTournamentSchedule.data.prematch.home_team?this.fullTournamentSchedule.data.prematch.visiting_team:this.fullTournamentSchedule.data.prematch.home_team:0,this.loadDiscover=!0},async generateSeasons(e){const a=[{id:e.id,type:e.type}];return e.related_seasons&&e.related_seasons.length&&a.push(...e.related_seasons.map(o=>({id:o.id,type:o.type}))),a},async onInputTournament(e){this.tournamentSelected=e,this.tournamentSelectedDropDowns.id!==e.id&&(this.tournamentSelectedDropDowns=e)},async onInputSeason(e){if(this.seasonSelected=e,this.tournamentSelected.id!=this.user.tournament){const a=await this.generateSeasons(this.seasonSelected);this.seasonsSelected=a,await this.createFullTournamentScheme(a,!1)}else{const a=await this.generateSeasons(this.seasonSelected);this.seasonsSelected=a,await this.fetchGames(this.user.team,a)}this.seasonSelectedDropDowns!==e.id&&(this.seasonSelectedDropDowns=e.id,this.$emit("change-season-id",e.id))},async fetchTournaments(e){try{const{data:a}=await Tt.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments");return a}catch(a){if(e>0)return this.fetchTournaments(e-1);throw new Error(a)}},async fetchSeasonsGamesAndTeams(e,a,o=""){let n=o;try{n||(n=this.gamesUrl2,e.forEach((l,p)=>{n+=`${p===0?"":"&"}seasons=${l}`}));const i=Tt.create({headers:{Authorization:`${this.tokenFree}`}}),{data:{data:r,teams:s}}=await i.get(n);return{seasonsAndGames:r,seasonsAndTeams:s}}catch(i){if(a>0)return this.fetchSeasonsGamesAndTeams(e,a-1,n);throw new Error(i)}},areSeasonsDifferent(e){for(const a of e)if(!this.lastSeasonsIds.includes(a.season_id))return!0;return!1},async createFullTournamentScheme(e,a){try{this.fullTournamentSchedule={},this.userTeamGames=[];let o=0;const{seasonsAndGames:n,seasonsAndTeams:i}=await this.fetchSeasonsGamesAndTeams(e.map(p=>p.id),3);if(a&&this.areSeasonsDifferent(n))return;n.forEach(p=>{const{type:c}=e.find(m=>m.id===p.season_id);p.type=c,p.games.forEach(m=>{m.season_id=p.season_id}),c===0&&(o=p.season_id)});const r={seasonsGames:n},{teams:s}=i.find(p=>p.season_id===o),l=r&&r.seasonsGames?r.seasonsGames.map(p=>{const c=p.games.reduce((m,u)=>{const g={...u};return g.dateTimeMillis=new Date(g.date_time_utc).valueOf(),g.home_team=s.find(d=>d.team_id===u.home_team),g.visiting_team=s.find(d=>d.team_id===u.visiting_team),m[u.matchday_abbreviation]?m[u.matchday_abbreviation][u.game_status===3?"canceled":u.date]?m[u.matchday_abbreviation][u.game_status===3?"canceled":u.date].push(g):m[u.matchday_abbreviation][u.game_status===3?"canceled":u.date]=[g]:m[u.matchday_abbreviation]={[u.game_status===3?"canceled":u.date]:[g]},this.gsData&&this.gsData.teamId&&g.game_status===4&&(g.home_team.team_id===this.gsData.teamId||g.visiting_team.team_id===this.gsData.teamId)&&this.userTeamGames.push(g),m},{});this.userTeamGames.sort((m,u)=>m.dateTimeMillis-u.dateTimeMillis);for(let[m,u]of Object.entries(c))c[m]=Object.entries(u).map(([g,d])=>({date:g,games:d.sort((h,f)=>h.dateTimeMillis-f.dateTimeMillis)})),c[m].sort((g,d)=>g.date<d.date?-1:g.date>d.date?1:0);return{type:p.type,weight:p.type===0?0:p.type===2?1:2,schedule:c}}):[];l.sort((p,c)=>p.weight-c.weight),this.fullTournamentScheduleFull=l.reduce((p,c)=>{for(const[m,u]of Object.entries(c.schedule))if(c.type===0)if(this.isCup){const g=m.replace("M",""),d=`Jornada ${g}`;this.isCupLegacy?p[S2[g]||d]=u:p[_2[m]||d]=u}else p[Number(m.replace("M","")).toString()]=u;else c.type===2?["PI1","PI2"].includes(m)?p[m]=u:p[`R${Number(m.replace("PO",""))}`]=u:c.type===1&&(p[w2[m]]=u);return p},{}),this.tournamentScheduleKeys=Object.keys(this.fullTournamentScheduleFull)}catch(o){throw new Error(o)}finally{this.loadingFlag=!1}},getNormalClosestRound(e){const o=Object.entries(Object.entries(e).reduce((r,[s,l])=>(r[s]=[],l.forEach(p=>{p.games.forEach(c=>{const m=new Date(c.date_time_utc).getTime()+66e5;r[s].push(m)})}),r),{}));if(!o.length)return"1";const n=new Date().getTime(),i=o.reduce((r,[s,l])=>{let p=null;return l.forEach(c=>{const m=c-n;m>=0&&(p===null||m<p)&&(p=m)}),p&&(r.shortestTime===null||p<r.shortestTime)&&(r.round=s,r.shortestTime=p),r},{round:"",shortestTime:null});return i.shortestTime!==null?i.round:o[o.length-1][0]},getUserTeamClosestRound(e){let a=1;if(this.userTeamGames.length){const o=this.userTeamGames[0];for(const[n,i]of Object.entries(e))for(const r of i)if(r.games.find(l=>l.game_id===o.game_id))return n}return a}},async created(){}},P5=e=>(t.pushScopeId("data-v-9551519c"),e=e(),t.popScopeId(),e),L5={class:"gsclanding",ref:"landingref"},D5={key:0,class:"container-selectors-mobile"},M5={class:"container-selectors-mobile-tournament"},j5={class:"container-selectors-mobile-season"},v5={key:0,class:"home-item-movil"},W5=P5(()=>t.createElementVNode("div",{class:"home-movil"},"Inicio",-1)),U5={class:"name-user-movil"},H5={key:1,class:"home-item"},G5={key:2,class:"bar-settings"},J5={class:"name-user"},q5={class:"container-selectors"},Z5={class:"selector-tournament"},X5={class:"selector-seasons"},K5={key:3,class:"container-games"},Y5={key:4,class:"container-players"},Q5={class:"container-tops"},eS={class:"container-vr"};function tS(e,a,o,n,i,r){const s=t.resolveComponent("GSCTournamentSelect"),l=t.resolveComponent("GSCSeasonSelect"),p=t.resolveComponent("GSCGames"),c=t.resolveComponent("GSCGridTeamsMatches"),m=t.resolveComponent("GSCTableCalendar"),u=t.resolveComponent("GSCPlayersLanding"),g=t.resolveComponent("GSCTops"),d=t.resolveComponent("DiscoverVideos");return t.openBlock(),t.createElementBlock("div",L5,[n.elementSize.width<=680?(t.openBlock(),t.createElementBlock("div",D5,[t.createElementVNode("div",M5,[t.createVNode(s,{"current-season-id":o.currentSeasonId,width:"100%",onInput:r.onInputTournament},null,8,["current-season-id","onInput"])]),t.createElementVNode("div",j5,[t.createVNode(l,{"current-season-id":o.currentSeasonId,width:"100%",seasons:i.tournamentSelectedDropDowns.seasons,onInput:r.onInputSeason},null,8,["current-season-id","seasons","onInput"])])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(r.containerbackground)},[t.createElementVNode("div",{class:t.normalizeClass(r.containerdata)},[n.elementSize.width<=680?(t.openBlock(),t.createElementBlock("div",v5,[W5,t.createElementVNode("div",U5,"Bienvenido "+t.toDisplayString(r.formatUsername(o.user.name)),1)])):t.createCommentVNode("",!0),n.elementSize.width>680?(t.openBlock(),t.createElementBlock("div",H5,"Inicio")):t.createCommentVNode("",!0),n.elementSize.width>680?(t.openBlock(),t.createElementBlock("div",G5,[t.createElementVNode("div",J5,"Bienvenido "+t.toDisplayString(r.formatUsername(o.user.name)),1),t.createElementVNode("div",q5,[t.createElementVNode("div",Z5,[t.createVNode(s,{"current-season-id":o.currentSeasonId,onInput:r.onInputTournament},null,8,["current-season-id","onInput"])]),t.createElementVNode("div",X5,[t.createVNode(l,{"current-season-id":o.currentSeasonId,seasons:i.tournamentSelectedDropDowns.seasons,onInput:r.onInputSeason},null,8,["current-season-id","seasons","onInput"])])])])):t.createCommentVNode("",!0),Object.keys(i.tournamentSelected).length>0?(t.openBlock(),t.createElementBlock("div",K5,[t.createVNode(p,{"component-width":n.elementSize.width,isplayer:o.isplayer,"is-full":i.tournamentSelected.id!=o.user.tournament,onClickMatch:r.onClickMatch,onClickCalendar:r.onClickCalendar,data:i.tournamentSelected.id==o.user.tournament?i.fullTournamentSchedule:r.gamesFullLeague},null,8,["component-width","isplayer","is-full","onClickMatch","onClickCalendar","data"])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(r.containerGridCalendarTable)},[t.createElementVNode("div",{class:"container-grid",style:t.normalizeStyle(n.elementSize.width<1e3?"width: 100%":"")},[t.createVNode(c,{isPlayer:o.isplayer?i.tournamentSelected.id==o.user.tournament:!1,"player-id":o.user.player,"team-id":o.user.team,"season-selected":i.seasonSelected.id,"next-rival-id":Object.keys(i.fullTournamentSchedule).length>0?o.user.team==i.fullTournamentSchedule.data.prematch.home_team?i.fullTournamentSchedule.data.prematch.visiting_team:i.fullTournamentSchedule.data.prematch.home_team:0,"team-img":"https://az755631.vo.msecnd.net/teams-150/"+o.user.team+".png","player-img":"https://az755631.vo.msecnd.net/players-profile/"+o.user.player+".png","rival-img":Object.keys(i.fullTournamentSchedule).length>0?o.user.team==i.fullTournamentSchedule.data.prematch.home_team?"https://az755631.vo.msecnd.net/teams-150/"+i.fullTournamentSchedule.data.prematch.visiting_team+".png":"https://az755631.vo.msecnd.net/teams-150/"+i.fullTournamentSchedule.data.prematch.home_team+".png":"","has-team":o.isplayer?!1:i.tournamentSelected.id==o.user.tournament,"component-width":n.elementSize.width,onAction:r.clickCard},null,8,["isPlayer","player-id","team-id","season-selected","next-rival-id","team-img","player-img","rival-img","has-team","component-width","onAction"])],4),t.createElementVNode("div",{class:"container-calendar-table",style:t.normalizeStyle(n.elementSize.width<1e3?"width: 100%; margin-top: 30px;":"")},[t.createVNode(m,{onAction:r.onAction,season:i.seasonSelected,seasons:i.seasonsSelected,onOpenmedia:r.onOpenMedia,onOnOpenProfile:r.onOpenProfile,componentWidth:n.elementSize.width},null,8,["onAction","season","seasons","onOpenmedia","onOnOpenProfile","componentWidth"])],4)],2),i.tournamentSelected.id==o.user.tournament?t.withDirectives((t.openBlock(),t.createElementBlock("div",Y5,[t.createVNode(u,{onClickProfileBtn:r.clickProfileBtn,onViewAll:r.viewAll,onTotalPlayers:r.getTotalPlayers,"team-id":o.user.team,"season-id":i.seasonSelected.id,"is-player":o.user.player!=0},null,8,["onClickProfileBtn","onViewAll","onTotalPlayers","team-id","season-id","is-player"])],512)),[[t.vShow,i.playersLength>0]]):t.createCommentVNode("",!0),t.createElementVNode("div",Q5,[t.createVNode(g,{onMore:r.moreTops,"show-switch":i.tournamentSelected.id==o.user.tournament,season:i.seasonSelected.id,"team-id":o.user.team,onOpenmedia:r.onOpenMedia},null,8,["onMore","show-switch","season","team-id","onOpenmedia"])]),t.createElementVNode("div",eS,[t.createVNode(d,{onOpenmedia:r.onOpenMedia,videoType:i.tournamentSelected.id==o.user.tournament?i.resumeType:i.goalsType,team:o.team,nextRivalTeam:i.tournamentSelected.id==o.user.tournament&&i.nextRivalId!=0?{id:i.nextRivalId}:0,user:o.user,seasonSelected:i.seasonSelected,tournamentSelected:i.tournamentSelected,myTournament:o.user.tournament},null,8,["onOpenmedia","videoType","team","nextRivalTeam","user","seasonSelected","tournamentSelected","myTournament"])])],2)],2)],512)}const oS=ie(F5,[["render",tS],["__scopeId","data-v-9551519c"]]);ve.GSCLanding=oS,Object.defineProperty(ve,Symbol.toStringTag,{value:"Module"})});
|