@golstats/gsc-landing 1.0.45 → 1.0.47

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.
@@ -38,4 +38,4 @@
38
38
  `).forEach(function(i){s=i.indexOf(":"),t=i.substring(0,s).trim().toLowerCase(),n=i.substring(s+1).trim(),!(!t||a[t]&&h5[t])&&(t==="set-cookie"?a[t]?a[t].push(n):a[t]=[n]:a[t]=a[t]?a[t]+", "+n:n)}),a},nc=Symbol("internals");function Qt(e){return e&&String(e).trim().toLowerCase()}function Go(e){return e===!1||e==null?e:B.isArray(e)?e.map(Go):String(e)}function g5(e){const a=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=t.exec(e);)a[n[1]]=n[2];return a}const f5=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Kn(e,a,t,n,s){if(B.isFunction(n))return n.call(this,a,t);if(s&&(a=t),!!B.isString(a)){if(B.isString(n))return a.indexOf(n)!==-1;if(B.isRegExp(n))return n.test(a)}}function y5(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,t,n)=>t.toUpperCase()+n)}function b5(e,a){const t=B.toCamelCase(" "+a);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+t,{value:function(s,i,r){return this[n].call(this,a,s,i,r)},configurable:!0})})}class qo{constructor(a){a&&this.set(a)}set(a,t,n){const s=this;function i(l,u,c){const m=Qt(u);if(!m)throw new Error("header name must be a non-empty string");const h=B.findKey(s,m);(!h||s[h]===void 0||c===!0||c===void 0&&s[h]!==!1)&&(s[h||u]=Go(l))}const r=(l,u)=>B.forEach(l,(c,m)=>i(c,m,u));return B.isPlainObject(a)||a instanceof this.constructor?r(a,t):B.isString(a)&&(a=a.trim())&&!f5(a)?r(p5(a),t):a!=null&&i(t,a,n),this}get(a,t){if(a=Qt(a),a){const n=B.findKey(this,a);if(n){const s=this[n];if(!t)return s;if(t===!0)return g5(s);if(B.isFunction(t))return t.call(this,s,n);if(B.isRegExp(t))return t.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,t){if(a=Qt(a),a){const n=B.findKey(this,a);return!!(n&&this[n]!==void 0&&(!t||Kn(this,this[n],n,t)))}return!1}delete(a,t){const n=this;let s=!1;function i(r){if(r=Qt(r),r){const l=B.findKey(n,r);l&&(!t||Kn(n,n[l],l,t))&&(delete n[l],s=!0)}}return B.isArray(a)?a.forEach(i):i(a),s}clear(a){const t=Object.keys(this);let n=t.length,s=!1;for(;n--;){const i=t[n];(!a||Kn(this,this[i],i,a,!0))&&(delete this[i],s=!0)}return s}normalize(a){const t=this,n={};return B.forEach(this,(s,i)=>{const r=B.findKey(n,i);if(r){t[r]=Go(s),delete t[i];return}const l=a?y5(i):String(i).trim();l!==i&&delete t[i],t[l]=Go(s),n[l]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const t=Object.create(null);return B.forEach(this,(n,s)=>{n!=null&&n!==!1&&(t[s]=a&&B.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,t])=>a+": "+t).join(`
39
39
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...t){const n=new this(a);return t.forEach(s=>n.set(s)),n}static accessor(a){const t=(this[nc]=this[nc]={accessors:{}}).accessors,n=this.prototype;function s(i){const r=Qt(i);t[r]||(b5(n,i),t[r]=!0)}return B.isArray(a)?a.forEach(s):s(a),this}}qo.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),B.reduceDescriptors(qo.prototype,({value:e},a)=>{let t=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(n){this[t]=n}}}),B.freezeMethods(qo);const rt=qo;function Zn(e,a){const t=this||Jn,n=a||t,s=rt.from(n.headers);let i=n.data;return B.forEach(e,function(r){i=r.call(t,i,s.normalize(),a?a.status:void 0)}),s.normalize(),i}function ic(e){return!!(e&&e.__CANCEL__)}function eo(e,a,t){K.call(this,e??"canceled",K.ERR_CANCELED,a,t),this.name="CanceledError"}B.inherits(eo,K,{__CANCEL__:!0});function w5(e,a,t){const n=t.config.validateStatus;!t.status||!n||n(t.status)?e(t):a(new K("Request failed with status code "+t.status,[K.ERR_BAD_REQUEST,K.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}const S5=tt.isStandardBrowserEnv?function(){return{write:function(e,a,t,n,s,i){const r=[];r.push(e+"="+encodeURIComponent(a)),B.isNumber(t)&&r.push("expires="+new Date(t).toGMTString()),B.isString(n)&&r.push("path="+n),B.isString(s)&&r.push("domain="+s),i===!0&&r.push("secure"),document.cookie=r.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 _5(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function k5(e,a){return a?e.replace(/\/+$/,"")+"/"+a.replace(/^\/+/,""):e}function sc(e,a){return e&&!_5(a)?k5(e,a):a}const C5=tt.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");let t;function n(s){let i=s;return e&&(a.setAttribute("href",i),i=a.href),a.setAttribute("href",i),{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 t=n(window.location.href),function(s){const i=B.isString(s)?n(s):s;return i.protocol===t.protocol&&i.host===t.host}}():function(){return function(){return!0}}();function E5(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function B5(e,a){e=e||10;const t=new Array(e),n=new Array(e);let s=0,i=0,r;return a=a!==void 0?a:1e3,function(l){const u=Date.now(),c=n[i];r||(r=u),t[s]=l,n[s]=u;let m=i,h=0;for(;m!==s;)h+=t[m++],m=m%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),u-r<a)return;const f=c&&u-c;return f?Math.round(h*1e3/f):void 0}}function rc(e,a){let t=0;const n=B5(50,250);return s=>{const i=s.loaded,r=s.lengthComputable?s.total:void 0,l=i-t,u=n(l),c=i<=r;t=i;const m={loaded:i,total:r,progress:r?i/r:void 0,bytes:l,rate:u||void 0,estimated:u&&r&&c?(r-i)/u:void 0,event:s};m[a?"download":"upload"]=!0,e(m)}}const x5=typeof XMLHttpRequest<"u",N5=x5&&function(e){return new Promise(function(a,t){let n=e.data;const s=rt.from(e.headers).normalize(),i=e.responseType;let r;function l(){e.cancelToken&&e.cancelToken.unsubscribe(r),e.signal&&e.signal.removeEventListener("abort",r)}let u;B.isFormData(n)&&(tt.isStandardBrowserEnv||tt.isStandardBrowserWebWorkerEnv?s.setContentType(!1):s.getContentType(/^\s*multipart\/form-data/)?B.isString(u=s.getContentType())&&s.setContentType(u.replace(/^\s*(multipart\/form-data);+/,"$1")):s.setContentType("multipart/form-data"));let c=new XMLHttpRequest;if(e.auth){const d=e.auth.username||"",p=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(d+":"+p))}const m=sc(e.baseURL,e.url);c.open(e.method.toUpperCase(),ec(m,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function h(){if(!c)return;const d=rt.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),p={data:!i||i==="text"||i==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:d,config:e,request:c};w5(function(g){a(g),l()},function(g){t(g),l()},p),c=null}if("onloadend"in c?c.onloadend=h:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(h)},c.onabort=function(){c&&(t(new K("Request aborted",K.ECONNABORTED,e,c)),c=null)},c.onerror=function(){t(new K("Network Error",K.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let d=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const p=e.transitional||oc;e.timeoutErrorMessage&&(d=e.timeoutErrorMessage),t(new K(d,p.clarifyTimeoutError?K.ETIMEDOUT:K.ECONNABORTED,e,c)),c=null},tt.isStandardBrowserEnv){const d=(e.withCredentials||C5(m))&&e.xsrfCookieName&&S5.read(e.xsrfCookieName);d&&s.set(e.xsrfHeaderName,d)}n===void 0&&s.setContentType(null),"setRequestHeader"in c&&B.forEach(s.toJSON(),function(d,p){c.setRequestHeader(p,d)}),B.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),i&&i!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",rc(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",rc(e.onUploadProgress)),(e.cancelToken||e.signal)&&(r=d=>{c&&(t(!d||d.type?new eo(null,e,c):d),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(r),e.signal&&(e.signal.aborted?r():e.signal.addEventListener("abort",r)));const f=E5(m);if(f&&tt.protocols.indexOf(f)===-1){t(new K("Unsupported protocol "+f+":",K.ERR_BAD_REQUEST,e));return}c.send(n||null)})},Xn={http:Qk,xhr:N5};B.forEach(Xn,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const lc=e=>`- ${e}`,T5=e=>B.isFunction(e)||e===null||e===!1,cc={getAdapter:e=>{e=B.isArray(e)?e:[e];const{length:a}=e;let t,n;const s={};for(let i=0;i<a;i++){t=e[i];let r;if(n=t,!T5(t)&&(n=Xn[(r=String(t)).toLowerCase()],n===void 0))throw new K(`Unknown adapter '${r}'`);if(n)break;s[r||"#"+i]=n}if(!n){const i=Object.entries(s).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let r=a?i.length>1?`since :
40
40
  `+i.map(lc).join(`
41
- `):" "+lc(i[0]):"as no adapter specified";throw new K("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return n},adapters:Xn};function Yn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new eo(null,e)}function dc(e){return Yn(e),e.headers=rt.from(e.headers),e.data=Zn.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),cc.getAdapter(e.adapter||Jn.adapter)(e).then(function(a){return Yn(e),a.data=Zn.call(e,e.transformResponse,a),a.headers=rt.from(a.headers),a},function(a){return ic(a)||(Yn(e),a&&a.response&&(a.response.data=Zn.call(e,e.transformResponse,a.response),a.response.headers=rt.from(a.response.headers))),Promise.reject(a)})}const mc=e=>e instanceof rt?e.toJSON():e;function Nt(e,a){a=a||{};const t={};function n(c,m,h){return B.isPlainObject(c)&&B.isPlainObject(m)?B.merge.call({caseless:h},c,m):B.isPlainObject(m)?B.merge({},m):B.isArray(m)?m.slice():m}function s(c,m,h){if(B.isUndefined(m)){if(!B.isUndefined(c))return n(void 0,c,h)}else return n(c,m,h)}function i(c,m){if(!B.isUndefined(m))return n(void 0,m)}function r(c,m){if(B.isUndefined(m)){if(!B.isUndefined(c))return n(void 0,c)}else return n(void 0,m)}function l(c,m,h){if(h in a)return n(c,m);if(h in e)return n(void 0,c)}const u={url:i,method:i,data:i,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:l,headers:(c,m)=>s(mc(c),mc(m),!0)};return B.forEach(Object.keys(Object.assign({},e,a)),function(c){const m=u[c]||s,h=m(e[c],a[c],c);B.isUndefined(h)&&m!==l||(t[c]=h)}),t}const uc="1.5.1",Qn={};["object","boolean","number","function","string","symbol"].forEach((e,a)=>{Qn[e]=function(t){return typeof t===e||"a"+(a<1?"n ":" ")+e}});const hc={};Qn.transitional=function(e,a,t){function n(s,i){return"[Axios v"+uc+"] Transitional option '"+s+"'"+i+(t?". "+t:"")}return(s,i,r)=>{if(e===!1)throw new K(n(i," has been removed"+(a?" in "+a:"")),K.ERR_DEPRECATED);return a&&!hc[i]&&(hc[i]=!0,console.warn(n(i," has been deprecated since v"+a+" and will be removed in the near future"))),e?e(s,i,r):!0}};function v5(e,a,t){if(typeof e!="object")throw new K("options must be an object",K.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let s=n.length;for(;s-- >0;){const i=n[s],r=a[i];if(r){const l=e[i],u=l===void 0||r(l,i,e);if(u!==!0)throw new K("option "+i+" must be "+u,K.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new K("Unknown option "+i,K.ERR_BAD_OPTION)}}const ei={assertOptions:v5,validators:Qn},ht=ei.validators;class Jo{constructor(a){this.defaults=a,this.interceptors={request:new tc,response:new tc}}request(a,t){typeof a=="string"?(t=t||{},t.url=a):t=a||{},t=Nt(this.defaults,t);const{transitional:n,paramsSerializer:s,headers:i}=t;n!==void 0&&ei.assertOptions(n,{silentJSONParsing:ht.transitional(ht.boolean),forcedJSONParsing:ht.transitional(ht.boolean),clarifyTimeoutError:ht.transitional(ht.boolean)},!1),s!=null&&(B.isFunction(s)?t.paramsSerializer={serialize:s}:ei.assertOptions(s,{encode:ht.function,serialize:ht.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let r=i&&B.merge(i.common,i[t.method]);i&&B.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),t.headers=rt.concat(r,i);const l=[];let u=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(t)===!1||(u=u&&p.synchronous,l.unshift(p.fulfilled,p.rejected))});const c=[];this.interceptors.response.forEach(function(p){c.push(p.fulfilled,p.rejected)});let m,h=0,f;if(!u){const p=[dc.bind(this),void 0];for(p.unshift.apply(p,l),p.push.apply(p,c),f=p.length,m=Promise.resolve(t);h<f;)m=m.then(p[h++],p[h++]);return m}f=l.length;let d=t;for(h=0;h<f;){const p=l[h++],g=l[h++];try{d=p(d)}catch(b){g.call(this,b);break}}try{m=dc.call(this,d)}catch(p){return Promise.reject(p)}for(h=0,f=c.length;h<f;)m=m.then(c[h++],c[h++]);return m}getUri(a){a=Nt(this.defaults,a);const t=sc(a.baseURL,a.url);return ec(t,a.params,a.paramsSerializer)}}B.forEach(["delete","get","head","options"],function(e){Jo.prototype[e]=function(a,t){return this.request(Nt(t||{},{method:e,url:a,data:(t||{}).data}))}}),B.forEach(["post","put","patch"],function(e){function a(t){return function(n,s,i){return this.request(Nt(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:s}))}}Jo.prototype[e]=a(),Jo.prototype[e+"Form"]=a(!0)});const Ko=Jo;class ti{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(s){t=s});const n=this;this.promise.then(s=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](s);n._listeners=null}),this.promise.then=s=>{let i;const r=new Promise(l=>{n.subscribe(l),i=l}).then(s);return r.cancel=function(){n.unsubscribe(i)},r},a(function(s,i,r){n.reason||(n.reason=new eo(s,i,r),t(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 t=this._listeners.indexOf(a);t!==-1&&this._listeners.splice(t,1)}static source(){let a;return{token:new ti(function(t){a=t}),cancel:a}}}const O5=ti;function A5(e){return function(a){return e.apply(null,a)}}function V5(e){return B.isObject(e)&&e.isAxiosError===!0}const oi={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(oi).forEach(([e,a])=>{oi[a]=e});const $5=oi;function pc(e){const a=new Ko(e),t=zl(Ko.prototype.request,a);return B.extend(t,Ko.prototype,a,{allOwnKeys:!0}),B.extend(t,a,null,{allOwnKeys:!0}),t.create=function(n){return pc(Nt(e,n))},t}const ge=pc(Jn);ge.Axios=Ko,ge.CanceledError=eo,ge.CancelToken=O5,ge.isCancel=ic,ge.VERSION=uc,ge.toFormData=Ho,ge.AxiosError=K,ge.Cancel=ge.CanceledError,ge.all=function(e){return Promise.all(e)},ge.spread=A5,ge.isAxiosError=V5,ge.mergeConfig=Nt,ge.AxiosHeaders=rt,ge.formToJSON=e=>ac(B.isHTMLForm(e)?new FormData(e):e),ge.getAdapter=cc.getAdapter,ge.HttpStatusCode=$5,ge.default=ge;const gc=ge,I5=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},ai={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,a=this.$refs.content.scrollWidth;a>0&&e>0&&(a>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},fc=()=>{o.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},yc=ai.setup;ai.setup=yc?(e,a)=>(fc(),yc(e,a)):fc;const P5={ref:"gscScrollableContainer",class:"scrollable-container"},R5={class:"scrollable-arrows"},L5=["width","height","viewBox"],z5=["stroke"],F5={class:"scrollable-wrapper"},M5={class:"scrollable-arrows"},D5=["width","height","viewBox"],j5=["stroke"];function W5(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",P5,[t.arrows?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["arrows-container",i.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...r)=>i.scrollLeft&&i.scrollLeft(...r))},[o.createElementVNode("div",R5,[(o.openBlock(),o.createElementBlock("svg",{width:t.arrowsWidth,height:t.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:t.arrowsColor},null,8,z5)],8,L5))])],2)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:a[1]||(a[1]=(...r)=>i.getScroll&&i.getScroll(...r))},[o.createElementVNode("div",F5,[o.renderSlot(e.$slots,"default",{},void 0,!0)])],544),t.arrows?(o.openBlock(),o.createElementBlock("div",{key:1,id:"arrows-container-right",class:o.normalizeClass(["arrows-container",i.hideShowRightArrow]),onClick:a[2]||(a[2]=(...r)=>i.scrollRight&&i.scrollRight(...r))},[o.createElementVNode("div",M5,[(o.openBlock(),o.createElementBlock("svg",{width:t.arrowsWidth,height:t.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:t.arrowsColor},null,8,j5)],8,D5))])],2)):o.createCommentVNode("",!0)],512)}const U5=I5(ai,[["render",W5],["__scopeId","data-v-b548a08d"]]),yt=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t};let bc=null;const ni={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)bc=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),bc.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},wc=()=>{o.useCssVars(e=>({d6f07504:e.colorBackgroundHome+"45","6d0848cf":e.colorBackgroundAway+"45","524ee4ec":e.colorBackgroundHome,"524bd2fb":e.colorBackgroundAway}))},Sc=ni.setup;ni.setup=Sc?(e,a)=>(wc(),Sc(e,a)):wc;const Zo=e=>(o.pushScopeId("data-v-45034b51"),e=e(),o.popScopeId(),e),H5=Zo(()=>o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[o.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)),G5=[H5],q5=Zo(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),J5=["src"],K5=Zo(()=>o.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),Z5=Zo(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),X5=["src"],Y5=["src"],Q5={class:"text-container"};function eC(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",{ref:"gamesContainer",class:o.normalizeClass(i.thumbnailhighlights)},[o.createElementVNode("div",{class:o.normalizeClass(i.playbutton),onClick:a[0]||(a[0]=(...r)=>i.onclickPlayVideos&&i.onclickPlayVideos(...r))},G5,2),t.dateGame!=""?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(i.date)},o.toDisplayString(t.dateGame),3)):o.createCommentVNode("",!0),t.matchday!=""&&t.seasonName!=""?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(i.containerinfogame)},[t.matchday!=""?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(i.matchcontainer)},o.toDisplayString(t.matchday),3)):o.createCommentVNode("",!0),t.seasonName!=""?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(i.seasoncontainer)},o.toDisplayString(t.seasonName),3)):o.createCommentVNode("",!0)],2)):o.createCommentVNode("",!0),q5,o.createElementVNode("img",{src:t.background,alt:"",class:"bkg-blackwhite position-image"},null,8,J5),o.createElementVNode("div",{class:o.normalizeClass([i.baselogo,"position-image"])},null,2),o.createElementVNode("div",{class:o.normalizeClass(i.baselogoright)},null,2),K5,Z5,o.createElementVNode("img",{src:t.logoHome,alt:"",class:o.normalizeClass(i.teamlogo)},null,10,X5),o.createElementVNode("img",{src:t.logoAway,alt:"",class:o.normalizeClass(i.logoright)},null,10,Y5),o.createElementVNode("div",Q5,[o.createElementVNode("span",{class:o.normalizeClass(i.secondline)},o.toDisplayString(t.score),3),o.createElementVNode("div",{class:o.normalizeClass(i.titlename)},o.toDisplayString(t.titleCategory),3)])],2)}const tC=yt(ni,[["render",eC],["__scopeId","data-v-45034b51"]]);let _c=null;const ii={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)_c=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),_c.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},kc=()=>{o.useCssVars(e=>({"46c0698e":e.colorBackgroundHome,"12d9d27a":e.colorBackgroundHome+"36"}))},Cc=ii.setup;ii.setup=Cc?(e,a)=>(kc(),Cc(e,a)):kc;const to=e=>(o.pushScopeId("data-v-9caaef34"),e=e(),o.popScopeId(),e),oC=to(()=>o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[o.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)),aC=[oC],nC=to(()=>o.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),iC=["src"],sC=to(()=>o.createElementVNode("div",{class:"base-logo"},null,-1)),rC=["src"],lC=to(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),cC={class:"text-container"},dC={class:"player-image position-image"},mC=["src"],uC=["src"],hC=["src"],pC=to(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1));function gC(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",{ref:"gamesContainer",class:o.normalizeClass(i.thumbnailhighlights)},[o.createElementVNode("div",{class:o.normalizeClass(i.playbutton),onClick:a[0]||(a[0]=(...r)=>i.onclickPlayVideos&&i.onclickPlayVideos(...r))},aC,2),nC,o.createElementVNode("img",{src:t.background,alt:"",class:"bkg-blackwhite position-image"},null,8,iC),sC,o.createElementVNode("img",{src:t.logoHome,alt:"",class:o.normalizeClass(i.teamlogo)},null,10,rC),lC,o.createElementVNode("div",cC,[o.createElementVNode("span",{class:o.normalizeClass(i.firstline)},o.toDisplayString(t.namePlayer),3),o.createElementVNode("span",{class:o.normalizeClass(i.secondline),style:o.normalizeStyle(t.nameCategory=="Balones recuperados en disputa "?"font-size: 25px":"")},o.toDisplayString(t.nameCategory),7)]),o.createElementVNode("div",dC,[t.typeImg==0?(o.openBlock(),o.createElementBlock("img",{key:0,src:t.photoProfile,class:o.normalizeClass(i.playerimage)},null,10,mC)):o.createCommentVNode("",!0),t.typeImg==1?(o.openBlock(),o.createElementBlock("img",{key:1,src:t.photoProfile,alt:""},null,8,uC)):o.createCommentVNode("",!0),t.typeImg==2?(o.openBlock(),o.createElementBlock("img",{key:2,src:t.photoProfile,class:"img-number"},null,8,hC)):o.createCommentVNode("",!0)]),pC],2)}const fC=yt(ii,[["render",gC],["__scopeId","data-v-9caaef34"]]);let Ec=null;const si={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)Ec=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Ec.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Bc=()=>{o.useCssVars(e=>({"5536c7dc":e.colorBackgroundHome,"3e449276":e.colorBackgroundHome+"36"}))},xc=si.setup;si.setup=xc?(e,a)=>(Bc(),xc(e,a)):Bc;const Xo=e=>(o.pushScopeId("data-v-ca6c08d9"),e=e(),o.popScopeId(),e),yC=Xo(()=>o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[o.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)),bC=[yC],wC=Xo(()=>o.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),SC=["src"],_C={width:"275",height:"125",viewBox:"0 0 275 125",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"base-logo"},kC=["fill"],CC=["id"],EC=["stop-color"],BC=["stop-color"],xC=["src"],NC=Xo(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),TC={class:"text-container"},vC=Xo(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1));function OC(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",{ref:"gamesContainer",class:o.normalizeClass(i.thumbnailhighlights)},[o.createElementVNode("div",{class:o.normalizeClass(i.playbutton),onClick:a[0]||(a[0]=(...r)=>i.onclickPlayVideos&&i.onclickPlayVideos(...r))},bC,2),wC,o.createElementVNode("img",{src:t.background,alt:"",class:"bkg-blackwhite position-image"},null,8,SC),(o.openBlock(),o.createElementBlock("svg",_C,[o.createElementVNode("path",{d:"M274.641 124.094L0 0.675049V124.094H274.641Z",fill:"url(#paint0_linear_7_"+t.nameTeam.replaceAll(" ","")+")"},null,8,kC),o.createElementVNode("defs",null,[o.createElementVNode("linearGradient",{id:"paint0_linear_7_"+t.nameTeam.replaceAll(" ",""),x1:"58.6578",y1:"15.5938",x2:"58.6578",y2:"124.094",gradientUnits:"userSpaceOnUse"},[o.createElementVNode("stop",{"stop-color":t.colorBackgroundHome},null,8,EC),o.createElementVNode("stop",{offset:"1","stop-color":t.colorBackgroundHome},null,8,BC)],8,CC)])])),o.createElementVNode("img",{class:o.normalizeClass(i.teamlogo),src:t.logoHome,alt:""},null,10,xC),NC,o.createElementVNode("div",TC,[o.createElementVNode("span",{class:o.normalizeClass(i.firstline)},[t.nameTeam!="Local"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(t.nameTeam),1)],64)):o.createCommentVNode("",!0)],2),o.createElementVNode("div",{class:o.normalizeClass(i.secondline)},o.toDisplayString(t.nameCategory),3)]),vC],2)}const AC=yt(si,[["render",OC],["__scopeId","data-v-ca6c08d9"]]);let Nc=null;const ri={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)Nc=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Nc.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Tc=()=>{o.useCssVars(e=>({"17b44fa7":e.colorBackgroundHome,f1e257fe:e.colorBackgroundHome+"36"}))},vc=ri.setup;ri.setup=vc?(e,a)=>(Tc(),vc(e,a)):Tc;const Yo=e=>(o.pushScopeId("data-v-49b4e56b"),e=e(),o.popScopeId(),e),VC=Yo(()=>o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[o.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)),$C=[VC],IC=Yo(()=>o.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),PC=["src"],RC={width:"275",height:"125",viewBox:"0 0 275 125",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"base-logo-away"},LC=["fill"],zC=["id"],FC=["stop-color"],MC=["stop-color"],DC=["src"],jC=Yo(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),WC={class:"text-container"},UC=Yo(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1));function HC(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",{ref:"gamesContainer",class:o.normalizeClass(i.thumbnailhighlights)},[o.createElementVNode("div",{class:o.normalizeClass(i.playbutton),onClick:a[0]||(a[0]=(...r)=>i.onclickPlayVideos&&i.onclickPlayVideos(...r))},$C,2),IC,o.createElementVNode("img",{src:t.background,alt:"",class:"bkg-blackwhite position-image"},null,8,PC),(o.openBlock(),o.createElementBlock("svg",RC,[o.createElementVNode("path",{d:"M274.641 124.094L0 0.675049V124.094H274.641Z",fill:"url(#paint0_linear_7_"+t.nameTeam.replaceAll(" ","")+")"},null,8,LC),o.createElementVNode("defs",null,[o.createElementVNode("linearGradient",{id:"paint0_linear_7_"+t.nameTeam.replaceAll(" ",""),x1:"58.6578",y1:"15.5938",x2:"58.6578",y2:"124.094",gradientUnits:"userSpaceOnUse"},[o.createElementVNode("stop",{"stop-color":t.colorBackgroundAway},null,8,FC),o.createElementVNode("stop",{offset:"1","stop-color":t.colorBackgroundAway},null,8,MC)],8,zC)])])),o.createElementVNode("img",{class:o.normalizeClass(i.teamlogo),src:t.logoHome,alt:""},null,10,DC),jC,o.createElementVNode("div",WC,[o.createElementVNode("span",{class:o.normalizeClass(i.firstline)},[t.nameTeam!="Away"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(t.nameTeam),1)],64)):o.createCommentVNode("",!0)],2),o.createElementVNode("div",{class:o.normalizeClass(i.secondline)},o.toDisplayString(t.nameCategory),3)]),UC],2)}const GC=yt(ri,[["render",HC],["__scopeId","data-v-49b4e56b"]]);let Oc=null;const li={components:{},props:{colorFontHome:{type:String,default:"#000000"},colorFontAway:{type:String,default:"#000000"},type:{type:Number,default:0},playStatus:{type:Number,default:2},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{type:String,default:""},showimg:{type:Boolean,default:!0},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)Oc=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Oc.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Ac=()=>{o.useCssVars(e=>({"78f57c00":e.colorBackgroundHome,"78f26a0f":e.colorBackgroundAway,"4c090560":e.colorBackgroundAway+"62",73887748:e.colorBackgroundHome+"36"}))},Vc=li.setup;li.setup=Vc?(e,a)=>(Ac(),Vc(e,a)):Ac;const Qo=e=>(o.pushScopeId("data-v-e77c3274"),e=e(),o.popScopeId(),e),qC=["width","src"],JC=Qo(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),KC=Qo(()=>o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[o.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)),ZC=[KC],XC={class:"player-container"},YC=["src"],QC=["src"],e4=["src"],t4={class:"container-score"},o4=["src"],a4=["src"],n4=["src"],i4=Qo(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),s4=Qo(()=>o.createElementVNode("div",{class:"gradient-color"},null,-1));function r4(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",{ref:"gamesContainer",class:o.normalizeClass(i.thumbnailhighlights)},[t.playStatus!=2?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass((t.playStatus==1,"icon-thumb"))},[o.createElementVNode("img",{width:t.playStatus==1?60:40,src:t.playStatus==1?"http://golstatsimages.blob.core.windows.net/images-library/icn-live@2x.png":"http://golstatsimages.blob.core.windows.net/images-library/icn-info@2x.png"},null,8,qC)],2)):o.createCommentVNode("",!0),JC,o.createElementVNode("div",{class:o.normalizeClass(i.playbutton),onClick:a[0]||(a[0]=(...r)=>i.onclickPlayVideos&&i.onclickPlayVideos(...r))},ZC,2),o.createElementVNode("div",XC,[t.type==0?(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass(i.texttitle)},o.toDisplayString(t.nameCategory),3)):(o.openBlock(),o.createElementBlock("span",{key:1,class:o.normalizeClass(i.texttitle2)},o.toDisplayString(t.nameCategory),3)),t.showimg?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[t.typeImg==0?(o.openBlock(),o.createElementBlock("img",{key:0,src:t.photoProfile,class:o.normalizeClass(i.playerimage)},null,10,YC)):o.createCommentVNode("",!0),t.typeImg==1?(o.openBlock(),o.createElementBlock("img",{key:1,src:t.photoProfile,alt:""},null,8,QC)):o.createCommentVNode("",!0),t.typeImg==2?(o.openBlock(),o.createElementBlock("img",{key:2,src:t.photoProfile,class:"img-number"},null,8,e4)):o.createCommentVNode("",!0)],64)):o.createCommentVNode("",!0),o.createElementVNode("div",t4,[o.createElementVNode("div",{class:o.normalizeClass(i.hometeam)},[o.createElementVNode("span",{class:o.normalizeClass(i.teamname),style:o.normalizeStyle({color:t.colorFontAway})},o.toDisplayString(t.nameHomeTeam),7),o.createElementVNode("img",{src:t.logoHome,alt:"",class:o.normalizeClass(i.teamlogo)},null,10,o4),o.createElementVNode("span",{class:o.normalizeClass(i.teamscore)},o.toDisplayString(t.scoreHome),3)],2),o.createElementVNode("span",{class:o.normalizeClass(i.points)},":",2),o.createElementVNode("div",{class:o.normalizeClass(i.awayteam)},[o.createElementVNode("span",{class:o.normalizeClass(i.teamscore)},o.toDisplayString(t.scoreAway),3),o.createElementVNode("img",{src:t.logoAway,alt:"",class:o.normalizeClass(i.teamlogo)},null,10,a4),o.createElementVNode("span",{class:o.normalizeClass(i.teamname),style:o.normalizeStyle({color:t.colorFontAway})},o.toDisplayString(t.nameAwayTeam),7)],2)])]),o.createElementVNode("img",{src:t.background,alt:"",class:"bkg-blackwhite position-image"},null,8,n4),i4,s4],2)}const l4=yt(li,[["render",r4],["__scopeId","data-v-e77c3274"]]);let $c=null;const ci={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)$c=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),$c.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Ic=()=>{o.useCssVars(e=>({"7f6829cd":e.colorBackgroundHome+"30","1ad47d61":e.colorBackgroundHome}))},Pc=ci.setup;ci.setup=Pc?(e,a)=>(Ic(),Pc(e,a)):Ic;const ea=e=>(o.pushScopeId("data-v-cc315132"),e=e(),o.popScopeId(),e),c4=ea(()=>o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[o.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)),d4=[c4],m4={class:"player-image position-image"},u4=["src"],h4=["src"],p4=["src"],g4=["src"],f4=ea(()=>o.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),y4=["src"],b4=ea(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),w4={class:"text-container"},S4=ea(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),_4={class:"base-logo",width:"91",height:"216",viewBox:"0 0 91 216",fill:"none",xmlns:"http://www.w3.org/2000/svg"},k4=["fill"];function C4(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",{ref:"gamesContainer",class:o.normalizeClass(i.thumbnailhighlights)},[o.createElementVNode("div",{class:o.normalizeClass(i.playbutton),onClick:a[0]||(a[0]=(...r)=>i.onclickPlayVideos&&i.onclickPlayVideos(...r))},d4,2),o.createElementVNode("div",m4,[t.typeImg==0?(o.openBlock(),o.createElementBlock("img",{key:0,src:t.photoProfile,class:o.normalizeClass(i.playerimage)},null,10,u4)):o.createCommentVNode("",!0),t.typeImg==1?(o.openBlock(),o.createElementBlock("img",{key:1,src:t.photoProfile,alt:""},null,8,h4)):o.createCommentVNode("",!0),t.typeImg==2?(o.openBlock(),o.createElementBlock("img",{key:2,src:t.photoProfile,class:"img-number"},null,8,p4)):o.createCommentVNode("",!0)]),o.createElementVNode("img",{src:t.logoHome,alt:"",class:"team-logo"},null,8,g4),f4,o.createElementVNode("img",{src:t.background,alt:"",class:"bkg-blackwhite position-image"},null,8,y4),b4,o.createElementVNode("div",w4,[o.createElementVNode("span",{class:o.normalizeClass(i.firstline)},"MEJORES JUGADAS",2),o.createElementVNode("span",{class:o.normalizeClass(i.secondline)},o.toDisplayString(t.nameCategory),3),o.createElementVNode("div",{class:o.normalizeClass(i.playername),style:o.normalizeStyle({color:t.colorFont})},o.toDisplayString(t.namePlayer),7)]),S4,(o.openBlock(),o.createElementBlock("svg",_4,[o.createElementVNode("path",{d:"M91.5 216L0 -0.5H91.5V216Z",fill:t.colorBackgroundHome},null,8,k4)]))],2)}const E4=yt(ci,[["render",C4],["__scopeId","data-v-cc315132"]]);function B4(e){const a=o.ref({width:0,height:0});function t(){const n=e.value.getBoundingClientRect();a.value.width=n.width,a.value.height=n.height}return o.onMounted(()=>{t(),window.addEventListener("resize",t)}),o.onUnmounted(()=>{window.removeEventListener("resize",t)}),{elementSize:a}}const x4="_ptg_lp0fw_5",N4="_ptgtitle_lp0fw_15",T4="_ptgtitle450_lp0fw_47",v4="_pgtcontainercard_lp0fw_79",O4="_pgtcontainercard350_lp0fw_89",A4={ptg:x4,ptgtitle:N4,ptgtitle450:T4,pgtcontainercard:v4,pgtcontainercard350:O4},di={components:{GSCSlider:U5,GSCThumbnailCategory:fC,GSCThumbnailCategoryTeam:AC,GSCThumbnailCategoryTeamAway:GC,GSCThumbnailHighlightGamePlayer:l4,GSCThumbnailSummaryPlayer:E4,GSCThumbnailHighlightGameHistoric:tC},setup(){const e=o.ref("ptgDiv"),{elementSize:a}=B4(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"},matchdayView:{type:Number,default:1},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,flagGames:[],lastseason:0,arrayMatchdays:[],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.type!=14&&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=[],t=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&&(t=null);const n=[1,2,3];let s={type:e.data.plays_status==0||!e.data.plays_status?0:1,seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:e.categories&&e.categories.length?e.categories:a,gameIds:t,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&&(s.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",s)},onClickVideos(e){this.$emit("onClickVideos",e)},onClickCard(e){this.$emit("onClickCard",e)},async getTeamsInfo(e){const a=await gc.create({headers:{Authorization:`${this.token}`}}).get("https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/"+e.season);for(let t=0;t<a.data.teams.length;t++)this.teamsInfo[a.data.teams[t].team_id]=a.data.teams[t]},async getStats(e){const a=gc.create({headers:{Authorization:`${this.token}`}});var t=[],n={},s={};if(this.type==0){s=await a.get("https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/"+e.season+"/"+e.player);for(let i=0;i<s.data.seasons[e.season].games_played.length;i++)n={player_id:e.player,color:s.data.info_thumbnails.colors.background_color,colorfont:s.data.info_thumbnails.colors.font_color,photo_profile:s.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+s.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/"+s.data.seasons[e.season].games_played[i].home_team+".png",player_name:s.data.seasons[e.season].games_played[i].home_team_acronym+" "+s.data.seasons[e.season].games_played[i].home_team_score+" : "+s.data.seasons[e.season].games_played[i].visiting_team_score+" "+s.data.seasons[e.season].games_played[i].visiting_team_acronym,team_id:s.data.seasons[e.season].games_played[i].game_id,team_id_b:s.data.seasons[e.season].games_played[i].home_team,season_id:s.data.seasons[e.season].games_played[i].season_id,name:"",category:0,team_id:s.data.team_id,game_id:s.data.seasons[e.season].games_played[i].game_id,position_id:s.data.position_id,scorehome:s.data.seasons[e.season].games_played[i].home_team_score,scoreaway:s.data.seasons[e.season].games_played[i].visiting_team_score,hometeamacronym:s.data.seasons[e.season].games_played[i].home_team_acronym,visitingteamacronym:s.data.seasons[e.season].games_played[i].visiting_team_acronym,seasonname:s.data.seasons[e.season].name,match:s.data.seasons[e.season].games_played[i].matchday_name.replace("Matchday","Jor"),score:s.data.seasons[e.season].games_played[i].home_team_score+" : "+s.data.seasons[e.season].games_played[i].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.info_thumbnails.images.background_player_in_action[0],backgroundhome:s.data.seasons[e.season].games_played[i].info_thumbnails.home_colors.background_color,backgroundaway:s.data.seasons[e.season].games_played[i].info_thumbnails.away_colors.background_color,colorfont_home:s.data.seasons[e.season].games_played[i].info_thumbnails.home_colors.font_color,colorfont_away:s.data.seasons[e.season].games_played[i].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+s.data.seasons[e.season].games_played[i].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+s.data.seasons[e.season].games_played[i].visiting_team+".png",total:s.data.seasons[e.season].games_played[i].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+s.data.seasons[e.season].games_played[i].home_team+"_"+s.data.seasons[e.season].games_played[i].season_id+"_r1.jpg"},t.push(n)}if(this.type==1){s=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/teams/"+e.team);for(let i=0;i<s.data.categories.length;i++){this.playerPhoto=!1;const r=Math.floor(Math.random()*s.data.categories[i].info_thumbnails.images.background_default_categories.length),l=Math.floor(Math.random()*s.data.categories[i].info_thumbnails.images.background_default_teams.length);n={player_action:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.categories[i].info_thumbnails.images.background_default_categories[r],background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.categories[i].info_thumbnails.images.background_default_teams[l],color:s.data.categories[i].info_thumbnails.colors.background_color,team_logo:"https://az755631.vo.msecnd.net/teams-80/"+s.data.categories[i].info_thumbnails.team_logo,player_name:s.data.categories[i].category_name,team_name:this.teamsInfo[s.data.team_id].colloquial_name,team_id:s.data.team_id,colorfont:s.data.categories[i].info_thumbnails.colors.font_color,team_id_b:s.data.team_id,category:s.data.categories[i].categories,season_id:s.data.season_id,total:s.data.categories[i].total,background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+s.data.team_id+"_"+s.data.season_id+"_r1.jpg"},t.push(n)}}if(this.type==2){s=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/players/"+e.player);for(let i=0;i<s.data.categories.length;i++){this.playerPhoto=!1;const r=Math.floor(Math.random()*s.data.categories[i].info_thumbnails.images.player_in_action.length),l=Math.floor(Math.random()*s.data.categories[i].info_thumbnails.images.background_default_categories.length);n={player_action:s.data.categories[i].info_thumbnails.images.player_in_action[r]?"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.categories[i].info_thumbnails.images.player_in_action[r]:"https://az755631.vo.msecnd.net/players-profile/"+e.player+".png",background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.categories[i].info_thumbnails.images.background_default_categories[l],color:s.data.categories[i].info_thumbnails.colors.background_color,team_logo:"https://az755631.vo.msecnd.net/teams-80/"+s.data.categories[i].info_thumbnails.team_logo,player_name:s.data.categories[i].category_name,season_id:e.season,colorfont:s.data.categories[i].info_thumbnails.colors.font_color,player_id:e.player,team_id:s.data.categories[i].info_thumbnails.colors.team_id,category:s.data.categories[i].categories,total:s.data.categories[i].total,background_card:"https://az755631.vo.msecnd.net/players-profile/"+e.player+".png"},t.push(n)}}if(this.type==3){this.playerPhoto=!1,s=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/games/"+e.game);for(let i=0;i<s.data.games[0].players.length;i++){const r=Math.floor(Math.random()*s.data.games[0].players[i].info_thumbnails.images.background_player_in_action.length),l=Math.floor(Math.random()*s.data.games[0].players[i].info_thumbnails.images.player_in_action.length);n={colorbackgroundhome:s.data.games[0].players[i].info_thumbnails.colors.background_color,colorbackgroundaway:"",nameplayer:s.data.games[0].players[i].player_name,background:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.games[0].players[i].info_thumbnails.images.background_player_in_action[r],namecategory:"RESUMEN",namehometeam:"",nameawayteam:"",category:0,colorfont:s.data.games[0].players[i].info_thumbnails.colors.font_color,team_id:s.data.games[0].players[i].team_id,player_id:s.data.games[0].players[i].player_id,game_id:s.data.games[0].game_id,season_id:s.data.season_id,logohome:s.data.games[0].players[i].team_logo,photoprofile:s.data.games[0].players[i].info_thumbnails.images.player_in_action[l]?"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.games[0].players[i].info_thumbnails.images.player_in_action[l]:"https://az755631.vo.msecnd.net/players-profile/"+s.data.games[0].players[i].player_id+".png",logoaway:"",scoreaway:"",scorehome:""},t.push(n)}}if(this.type==4){this.playerPhoto=!1,s=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/specifics-plays/seasons/"+e.season+"/games/"+e.game);for(let i=0;i<s.data.home_team.categories.length;i++){const r=Math.floor(Math.random()*s.data.home_team.categories[i].info_thumbnails.images.background_default_teams.length);n={game_id:s.data.game_id,season_id:s.data.season_id,team_id:s.data.home_team.team_id,category:s.data.home_team.categories[i].categories.concat(s.data.home_team.categories[i].rival_categories),background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.home_team.categories[i].info_thumbnails.images.background_default_categories[r],player_action:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.home_team.categories[i].info_thumbnails.images.background_default_categories[r],team_logo:"https://az755631.vo.msecnd.net/teams-150/"+s.data.home_team.team_id+".png",color:s.data.home_team.categories[i].info_thumbnails.colors.background_color,colorfont:s.data.home_team.categories[i].info_thumbnails.colors.font_color,player_name:s.data.home_team.categories[i].category_name,total:s.data.home_team.categories[i].total,team_name:"Local",background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+s.data.home_team.team_id+"_"+s.data.season_id+"_r1.jpg"},t.push(n)}}if(this.type==5){this.playerPhoto=!1,s=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/specifics-plays/seasons/"+e.season+"/games/"+e.game);for(let i=0;i<s.data.visiting_team.categories.length;i++){const r=Math.floor(Math.random()*s.data.visiting_team.categories[i].info_thumbnails.images.background_default_categories.length);n={game_id:s.data.game_id,season_id:s.data.season_id,team_id:s.data.visiting_team.team_id,category:s.data.visiting_team.categories[i].categories.concat(s.data.visiting_team.categories[i].rival_categories),background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.visiting_team.categories[i].info_thumbnails.images.background_default_categories[r],player_action:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.visiting_team.categories[i].info_thumbnails.images.background_default_categories[r],team_logo:"https://az755631.vo.msecnd.net/teams-150/"+s.data.visiting_team.team_id+".png",team_name:"Away",color:s.data.visiting_team.categories[i].info_thumbnails.colors.background_color,colorfont:s.data.visiting_team.categories[i].info_thumbnails.colors.font_color,player_name:s.data.visiting_team.categories[i].category_name,total:s.data.visiting_team.categories[i].total,background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+s.data.visiting_team.team_id+"_"+s.data.season_id+"_r1.jpg"},t.push(n)}}if(this.type==6){s=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 i=0;i<s.data.best_plays.length;i++)n={category:s.data.best_plays[i].categories,team_id:s.data.team_id,game_id:s.data.best_plays[i].game_id,season_id:s.data.season_id,backgroundhome:s.data.best_plays[i].info_thumbnails.home_colors.background_color,backgroundaway:s.data.best_plays[i].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+s.data.best_plays[i].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+s.data.best_plays[i].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.best_plays[i].info_thumbnails.images.background_default_categories[0],match:"",seasonname:"",score:s.data.best_plays[i].score[0]+" : "+s.data.best_plays[i].score[1]},t.push(n)}if(this.type==7){s=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 i=0;i<s.data.best_plays.length;i++)n={category:s.data.best_plays[i].categories,team_id:s.data.team_id,game_id:s.data.best_plays[i].game_id,season_id:s.data.season_id,backgroundhome:s.data.best_plays[i].info_thumbnails.home_colors.background_color,colorfont_home:s.data.best_plays[i].info_thumbnails.home_colors.font_color,colorfont_away:s.data.best_plays[i].info_thumbnails.away_colors.font_color,backgroundaway:s.data.best_plays[i].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+s.data.best_plays[i].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+s.data.best_plays[i].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.best_plays[i].info_thumbnails.images.background_default_categories[0],match:"",seasonname:"",score:s.data.best_plays[i].score[0]+" : "+s.data.best_plays[i].score[1]},t.push(n)}if(this.type==8){s=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 i=0;i<s.data.best_plays.length;i++)n={category:s.data.best_plays[i].categories,team_id:s.data.team_id,game_id:s.data.best_plays[i].game_id,season_id:s.data.season_id,player_id:s.data.player_id,backgroundhome:s.data.best_plays[i].info_thumbnails.home_colors.background_color,backgroundaway:s.data.best_plays[i].info_thumbnails.away_colors.background_color,colorfont_home:s.data.best_plays[i].info_thumbnails.home_colors.font_color,colorfont_away:s.data.best_plays[i].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+s.data.best_plays[i].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+s.data.best_plays[i].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.best_plays[i].info_thumbnails.images.background_default_categories[0],match:"",scorehome:s.data.best_plays[i].score[0],scoreaway:s.data.best_plays[i].score[1],photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+s.data.best_plays[i].info_thumbnails.player_logo,hometeamacronym:s.data.best_plays[i].home_team_acronym,visitingteamacronym:s.data.best_plays[i].away_team_acronym,seasonname:"",score:s.data.best_plays[i].score[0]+" : "+s.data.best_plays[i].score[1]},t.push(n)}if(this.type==9){s=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 i=0;i<s.data.best_plays.length;i++)n={category:s.data.best_plays[i].categories,team_id:s.data.team_id,player_id:s.data.player_id,game_id:s.data.best_plays[i].game_id,season_id:s.data.season_id,backgroundhome:s.data.best_plays[i].info_thumbnails.home_colors.background_color,backgroundaway:s.data.best_plays[i].info_thumbnails.away_colors.background_color,colorfont_home:s.data.best_plays[i].info_thumbnails.home_colors.font_color,colorfont_away:s.data.best_plays[i].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+s.data.best_plays[i].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+s.data.best_plays[i].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.best_plays[i].info_thumbnails.images.background_default_categories[0],match:"",scorehome:s.data.best_plays[i].score[0],scoreaway:s.data.best_plays[i].score[1],seasonname:"",photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+s.data.best_plays[i].info_thumbnails.player_logo,score:s.data.best_plays[i].score[0]+" : "+s.data.best_plays[i].score[1]},t.push(n)}if(this.type==10){const i=await a.get("https://ws8d8ye2ii.execute-api.us-west-2.amazonaws.com/prod/v4/seasonsByTeam/"+e.team);for(let r=0;r<i.data.seasons[e.season].games.length;r++){const l=Math.floor(Math.random()*i.data.seasons[e.season].games[r].info_thumbnails.images.background_default_games.length);n={photo_profile:"https://az755631.vo.msecnd.net/teams-150/"+i.data.seasons[e.season].games[r].visiting_team+".png",team_logo:"https://az755631.vo.msecnd.net/teams-150/"+i.data.seasons[e.season].games[r].home_team+".png",player_name:i.data.seasons[e.season].games[r].home_team_acronym+" "+i.data.seasons[e.season].games[r].home_team_score+" : "+i.data.seasons[e.season].games[r].visiting_team_score+" "+i.data.seasons[e.season].games[r].visiting_team_acronym,team_id:i.data.seasons[e.season].games[r].game_id,team_id_b:i.data.seasons[e.season].games[r].home_team,season_id:i.data.seasons[e.season].games[r].season_id,name:"",category:0,colorfont_home:i.data.best_plays[r].info_thumbnails.home_colors.colors.font_color,colorfont_away:i.data.best_plays[r].info_thumbnails.away_colors.colors.font_color,game_id:i.data.seasons[e.season].games[r].game_id,seasonname:i.data.seasons[e.season].name,match:i.data.seasons[e.season].games[r].matchday_name.replace("Matchday","Jor"),score:i.data.seasons[e.season].games[r].home_team_score+" : "+i.data.seasons[e.season].games[r].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.seasons[e.season].games[r].info_thumbnails.images.background_default_games[l],backgroundhome:i.data.seasons[e.season].games[r].info_thumbnails.home_colors.background_color,backgroundaway:i.data.seasons[e.season].games[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.seasons[e.season].games[r].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+i.data.seasons[e.season].games[r].visiting_team+".png",total:i.data.seasons[e.season].games[r].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+i.data.seasons[e.season].games[r].home_team+"_"+i.data.seasons[e.season].games[r].season_id+"_r1.jpg"},t.push(n)}}if(this.type==11){const 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++)Math.floor(Math.random()*i.data.seasons[e.season].games_played[r].info_thumbnails.images.background_default_games.length),n={category:0,player_id:e.player,team_id:i.data.team_id,game_id:i.data.seasons[e.season].games_played[r].game_id,position_id:i.data.position_id,color:i.data.info_thumbnails.colors.background_color,photo_profile:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.info_thumbnails.images.player_in_action[0],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_b:i.data.seasons[e.season].games_played[r].home_team,season_id:i.data.seasons[e.season].games_played[r].season_id,name:i.data.seasons[e.season].games_played[r].player_name,seasonname:i.data.seasons[e.season].name,match:i.data.seasons[e.season].games_played[r].matchday_name.replace("Matchday","Jor"),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,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"},t.push(n)}if(this.type==12){const i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/categories/"+e.category);for(let r=0;r<i.data.length;r++)for(let l=0;l<i.data[r].best_plays.length;l++)n={category:i.data[r].best_plays[l].categories,game_id:i.data[r].best_plays[l].game_id,season_id:i.data[r].season_id,backgroundhome:i.data[r].best_plays[l].info_thumbnails.home_colors.background_color,backgroundaway:i.data[r].best_plays[l].info_thumbnails.away_colors.background_color,colorfont_home:i.data[r].best_plays[l].info_thumbnails.home_colors.font_color,colorfont_away:i.data[r].best_plays[l].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+i.data[r].best_plays[l].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+i.data[r].best_plays[l].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data[r].best_plays[l].info_thumbnails.images.background_default_categories[0],match:"",scorehome:i.data[r].best_plays[l].score[0],scoreaway:i.data[r].best_plays[l].score[1],seasonname:"",photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+i.data[r].best_plays[l].info_thumbnails.player_logo,score:i.data[r].best_plays[l].score[0]+" : "+i.data[r].best_plays[l].score[1]},t.push(n)}if(this.type==13){const i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/categories/"+e.category);for(let r=0;r<i.data.length;r++)for(let l=0;l<i.data[r].best_plays.length;l++)n={category:i.data[r].best_plays[l].categories,game_id:i.data[r].best_plays[l].game_id,season_id:i.data[r].season_id,backgroundhome:i.data[r].best_plays[l].info_thumbnails.home_colors.background_color,backgroundaway:i.data[r].best_plays[l].info_thumbnails.away_colors.background_color,colorfont_home:i.data[r].best_plays[l].info_thumbnails.home_colors.font_color,colorfont_away:i.data[r].best_plays[l].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+i.data[r].best_plays[l].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+i.data[r].best_plays[l].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data[r].best_plays[l].info_thumbnails.images.background_default_categories[0],match:"",scorehome:i.data[r].best_plays[l].score[0],scoreaway:i.data[r].best_plays[l].score[1],seasonname:"",photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+i.data[r].best_plays[l].info_thumbnails.player_logo,score:i.data[r].best_plays[l].score[0]+" : "+i.data[r].best_plays[l].score[1]},t.push(n)}if(this.type==14&&(t=[],e.season)){if(this.lastseason!=e.season){const i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/categories/"+e.category);this.flagGames=[],this.arrayMatchdays=[];for(let r=0;r<i.data.length;r++)for(let l=0;l<i.data[r].best_plays.length;l++)i.data[r].best_plays[l].score[0]==0&&i.data[r].best_plays[l].score[1]==0||(n={category:i.data[r].best_plays[l].categories,game_id:i.data[r].best_plays[l].game_id,plays_status:i.data[r].best_plays[l].plays_status,season_id:i.data[r].season_id,backgroundhome:i.data[r].best_plays[l].info_thumbnails.home_colors.background_color,backgroundaway:i.data[r].best_plays[l].info_thumbnails.away_colors.background_color,colorfont_home:i.data[r].best_plays[l].info_thumbnails.home_colors.font_color,date_time:new Date(i.data[r].best_plays[l].date_time_utc).valueOf(),colorfont_away:i.data[r].best_plays[l].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+i.data[r].best_plays[l].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+i.data[r].best_plays[l].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data[r].best_plays[l].info_thumbnails.images.background_default_categories[0],match:"",scorehome:i.data[r].best_plays[l].score[0],scoreaway:i.data[r].best_plays[l].score[1],seasonname:"",photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+i.data[r].best_plays[l].info_thumbnails.player_logo,score:i.data[r].best_plays[l].score[0]+" : "+i.data[r].best_plays[l].score[1],matchday_id:i.data[r].best_plays[l].matchday_id},this.arrayMatchdays[i.data[r].best_plays[l].matchday_id]?this.flagGames.includes(n.game_id)||(this.arrayMatchdays[i.data[r].best_plays[l].matchday_id].push(n),this.flagGames.push(n.game_id)):(this.arrayMatchdays[i.data[r].best_plays[l].matchday_id]=[],this.flagGames.includes(n.game_id)||(this.arrayMatchdays[i.data[r].best_plays[l].matchday_id].push(n),this.flagGames.push(n.game_id))));t=this.arrayMatchdays[this.matchdayView]?this.arrayMatchdays[this.matchdayView].sort((r,l)=>r.date_time-l.date_time):[]}else t=this.arrayMatchdays[this.matchdayView]?this.arrayMatchdays[this.matchdayView].sort((i,r)=>i.date_time-r.date_time):[];this.lastseason=e.season}this.printData=t}},async created(){}},Rc=()=>{o.useCssVars(e=>({"0c805cc5":e.backgroundColor}))},Lc=di.setup;di.setup=Lc?(e,a)=>(Rc(),Lc(e,a)):Rc;function V4(e,a,t,n,s,i){const r=o.resolveComponent("GSCThumbnailCategory"),l=o.resolveComponent("GSCThumbnailCategoryTeam"),u=o.resolveComponent("GSCThumbnailCategoryTeamAway"),c=o.resolveComponent("GSCThumbnailHighlightGamePlayer"),m=o.resolveComponent("GSCThumbnailHighlightGameHistoric"),h=o.resolveComponent("GSCThumbnailSummaryPlayer"),f=o.resolveComponent("GSCSlider");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(e.$style.ptg),ref:"ptgDiv"},[o.createElementVNode("div",{class:o.normalizeClass(i.ptgtitleClass)},o.toDisplayString(t.title),3),o.createVNode(f,{backgroundColor:t.backgroundColor,pxScroll:t.pxScroll,arrows:t.arrows,arrowsScrollHide:t.arrowsScrollHide,arrowsHideOnNoScroll:t.arrowsHideOnNoScroll,arrowsColor:t.arrowsColor,arrowsHeight:t.arrowsWidth,arrowsWidth:t.arrowsWidth,arrowsPadding:t.arrowsPadding,arrowsMargin:t.arrowsMargin,arrowsRadius:t.arrowsRadius,arrowsBorder:t.arrowsBorder,arrowsBackground:t.arrowsBackground,arrowsContainerBgL:t.arrowsContainerBgL,arrowsContainerBgR:t.arrowsContainerBgR,scrollColor:t.scrollColor,arrowsPosition:t.arrowsPosition,height:t.height},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.printData,(d,p)=>(o.openBlock(),o.createElementBlock("div",{key:p,class:o.normalizeClass(i.pgtcontainercardClass),style:o.normalizeStyle(p==0?"margin-left: 0px !important; color: white;":"")},[t.type==2?(o.openBlock(),o.createBlock(r,{key:0,"color-background-home":d.color,"name-player":t.data.player_name,"type-img":"0",background:d.background_action,"name-category":d.player_name,"logo-home":d.team_logo,onOnclickPlayVideos:g=>i.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"])):t.type==1||t.type==4?(o.openBlock(),o.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:g=>i.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"])):t.type==5?(o.openBlock(),o.createBlock(u,{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:g=>i.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"])):t.type==0?(o.openBlock(),o.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:g=>i.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"])):t.type==6?(o.openBlock(),o.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:g=>i.onclickPlayVideos({data:d,type:3,categories:s.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"])):t.type==7?(o.openBlock(),o.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:g=>i.onclickPlayVideos({data:d,type:3,categories:s.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"])):t.type==8?(o.openBlock(),o.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:g=>i.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"])):t.type==9?(o.openBlock(),o.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:g=>i.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"])):t.type==10?(o.openBlock(),o.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:g=>i.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"])):t.type==11?(o.openBlock(),o.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:g=>i.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"])):t.type==12?(o.openBlock(),o.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:g=>i.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"])):t.type==13?(o.openBlock(),o.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:g=>i.onclickPlayVideos({data:d,type:1,categories:s.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.type==14?(o.openBlock(),o.createBlock(c,{key:12,items:d,type:2,"play-status":d.plays_status?d.plays_status:0,"name-category":"GOLES","color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,onOnclickPlayVideos:g=>i.onclickPlayVideos({data:d,type:1,categories:s.goalCategories}),background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,matchday:d.match,"score-home":d.scorehome,showimg:!1,"photo-profile":d.photo_profile,"score-away":d.scoreaway,"season-name":d.seasonname},null,8,["items","play-status","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.openBlock(),o.createBlock(h,{key:13,type:"player","color-background-home":d.colorbackgroundhome,"color-background-away":d.colorbackgroundaway,"name-player":d.nameplayer,"type-img":0,onOnclickPlayVideos:g=>i.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 $4={name:"DiscoverVideos",components:{GscSwitchComponent:Ua,GSCPlayerTeamGame:yt(di,[["render",V4],["__cssModules",{$style:A4}]]),GSCButton:jr,MatchDayPicker:Fr},props:{componentWidth:{type:Number,default:768,validator(e){return e>0}},myTournament:{type:Number,default:1},videoType:{type:Number,default:1},isplayer:{type:Boolean,default:!1},team:{type:Number,default:0},player:{type:Number,default:0},user:{type:Object,default:()=>{}},nextRivalTeam:{type:Object,default:()=>{}},tournamentSelected:{type:Object,default:()=>{}},defaultMatchDayKey:{type:String,default:""},isLeagueSelected:{type:Boolean,default:!1},isFull:{type:Boolean,default:!1},tournamentScheduleKeys:{type:Array,default:()=>[]},seasonSelected:{type:Object,default:()=>{}}},watch:{tournamentSelected:{immediate:!0,deep:!1,async handler(e){this.myTournament!==e.id?this.currentTabMoreVideos="Goles":this.currentTabMoreVideos="Goles"}},closestRound(e){this.selectedRoundKeyIndex=this.tournamentScheduleKeys.findIndex(a=>a===e),this.selectedRound=e}},data(){return{currentTabMoreVideos:"Resumen",currentMobileTab:"Descubre videos",mobileClass:!1,activeDropGoals:!1,matchdayActive:{},resumeCategory:1000001,goalsCategory:1255e3,resumeType:1,goalsType:2}},mounted(){this.mobileClass=window.innerWidth<768,window.addEventListener("resize",this.handleResize)},methods:{onChangeMatchDay(e){this.matchdayActive=e,this.$emit("change-match-day",e)},handleResize(){this.mobileClass=window.innerWidth<768},onOpenMedia(e){this.$emit("openmedia",e)},onClickOpenMedia(){let t=1,n=[],s=[],i=0,r=this.user.season,l=[],u=[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?(r=this.seasonSelected.id,this.user.is_goalkeeper?(n=[this.user.player],l=m,t=2):this.user.is_player?(s=[this.user.player],l=c,t=2):(i=this.user.team,l=u,t=3)):(l=u,t=1);const h={type:0,seasonId:r,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:t,gameIds:null,playerIds:s,goalkeeperIds:n,categoryIds:l,teamId:i,matchResult:[1,2,3],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:""},objectPlaySync:null};this.$emit("openmedia",h)}}},I4=e=>(o.pushScopeId("data-v-07493628"),e=e(),o.popScopeId(),e),P4={class:"discover-videos",ref:"discoverVideosRef"},R4={class:"title-and-button"},L4=I4(()=>o.createElementVNode("div",{class:"title-value"},"Videos",-1)),z4={class:"calendar-container"},F4={class:"drop-down-innercontainer-text"},M4={class:"drop-down-innercontainer-arrow"};function D4(e,a,t,n,s,i){const r=o.resolveComponent("GscSwitchComponent"),l=o.resolveComponent("GSCButton"),u=o.resolveComponent("MatchDayPicker"),c=o.resolveComponent("GSCPlayerTeamGame");return o.openBlock(),o.createElementBlock("div",P4,[o.createElementVNode("div",R4,[o.createElementVNode("div",{class:o.normalizeClass(t.componentWidth>900?"menu-container":"menu-container-movil")},[L4,t.myTournament===t.tournamentSelected.id?(o.openBlock(),o.createBlock(r,{key:0,style:o.normalizeStyle(t.componentWidth>900?"margin-left: 45px":""),buttons:["Goles","Resumen","Proximo rival"],onInput:a[0]||(a[0]=m=>s.currentTabMoreVideos=m),background:"trasparent",height:"28px",width:"140px","font-size":t.componentWidth>900?"14px":"12px","font-family":"Poppins-Light",backgroundOptionActive:"transparent",borderWidth:"2px",type:2,arrow:!1,selectedOption:s.currentTabMoreVideos,onOpenmedia:i.onOpenMedia},null,8,["style","font-size","selectedOption","onOpenmedia"])):o.createCommentVNode("",!0)],2),o.createElementVNode("div",{class:o.normalizeClass(t.componentWidth>900?"btn-search-videos":"btn-search-videos-movil")},[o.createVNode(l,{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:i.onClickOpenMedia},null,8,["onClick"])],2)]),s.currentTabMoreVideos=="Goles"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",z4,[o.createElementVNode("div",{class:"drop-down-innercontainer",onClick:a[1]||(a[1]=m=>s.activeDropGoals=!s.activeDropGoals)},[o.createElementVNode("div",F4,[o.createTextVNode(" Jornada "),Object.keys(s.matchdayActive).length>0?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(s.matchdayActive.valueText),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(t.defaultMatchDayKey),1)],64))]),o.createElementVNode("div",M4,[o.createElementVNode("img",{width:"18",style:o.normalizeStyle(s.activeDropGoals?"":"transform: rotate(180deg);"),src:"http://golstatsimages.blob.core.windows.net/images-library/icn-arrow-collapse@2x.png"},null,4)])]),o.withDirectives(o.createVNode(u,{height:"48px","margin-top":"5px","disable-matchdays":!0,"match-days":t.tournamentScheduleKeys,"is-landing-mode":!1,"items-to-show":9,"items-to-scroll":9,onChangeMatchDay:i.onChangeMatchDay,"default-match-day-key":t.defaultMatchDayKey},null,8,["match-days","onChangeMatchDay","default-match-day-key"]),[[o.vShow,(t.isLeagueSelected||s.currentTabMoreVideos=="Goles")&&t.tournamentScheduleKeys&&t.tournamentScheduleKeys.length&&s.activeDropGoals]])]),o.createVNode(c,{style:{"margin-top":"-30px"},type:14,data:{season:t.seasonSelected.id,category:s.goalsCategory},width:"100%","matchday-view":Object.keys(s.matchdayActive).length>0?s.matchdayActive.matchDayId:t.defaultMatchDayKey,backgroundColor:"transparent",title:"",onOpenmedia:i.onOpenMedia},null,8,["data","matchday-view","onOpenmedia"])],64)):o.createCommentVNode("",!0),s.currentTabMoreVideos=="Resumen"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[t.isplayer?(o.openBlock(),o.createBlock(c,{key:1,type:8,title:"",style:{"margin-top":"-30px"},backgroundColor:"transparent",data:{season:t.seasonSelected.id,player:t.player,category:1000001},width:"100%",onOpenmedia:i.onOpenMedia},null,8,["data","onOpenmedia"])):(o.openBlock(),o.createBlock(c,{key:0,type:7,title:"",style:{"margin-top":"-30px"},backgroundColor:"transparent",data:{season:t.seasonSelected.id,team:t.team,category:s.resumeCategory},width:"100%",onOpenmedia:i.onOpenMedia},null,8,["data","onOpenmedia"]))],64)):o.createCommentVNode("",!0),s.currentTabMoreVideos=="Proximo rival"?(o.openBlock(),o.createBlock(c,{key:2,type:7,style:{"margin-top":"-30px"},title:"",backgroundColor:"transparent",data:{season:t.seasonSelected.id,team:t.nextRivalTeam.id,category:s.resumeCategory},width:"100%",onOpenmedia:i.onOpenMedia},null,8,["data","onOpenmedia"])):o.createCommentVNode("",!0)],512)}const j4={components:{GSCSeasonSelect:bk,GSCTournamentSelect:K_,GSCGames:P2,GSCGridTeamsMatches:Nm,GSCPlayersLanding:Sm,GSCTops:Pw,GSCTableCalendar:bb,DiscoverVideos:Ne($4,[["render",D4],["__scopeId","data-v-07493628"]]),CarouselFullScreen:E_},setup(){const e=o.ref("landingref"),{elementSize:a}=Kd(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},latestRound(e){this.selectedRoundKeyIndexVideo=this.tournamentScheduleKeysGoals.findIndex(a=>a===e),this.selectedRoundVideos=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}},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},data(){return{isCarouselFullScreenVisible:!1,carouselPlayerQueue:[],gameEventsUrl:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",defaultGameId:0,lastSeasonsIds:[],gamesPages:new Map,selectedRoundKeyIndex:0,selectedRoundKeyIndexVideo:0,selectedRound:"0",selectedRoundVideos:"0",isLeagueSelected:!1,fullTournamentScheduleFull:[],fullTournamentScheduleFullGoals:[],defaultMatchDayKey:null,isCupTournament:!1,retries:3,userTeamGames:[],isCupLegacyTournament:!1,tournamentScheduleKeys:[],tournamentScheduleKeysGoals:[],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}},computed:{games(){if(this.tournamentSelected.id===this.user.tournament&&!this.isLeagueSelected)return this.fullTournamentSchedule;{const e=this.gamesPages.get(this.selectedRound);return e?e[0]:[]}},latestRound(){return this.userTeamGames&&this.userTeamGames.length&&this.fullTournamentScheduleFullGoals&&this.fullTournamentScheduleFullGoals.length?this.getUserTeamClosestRound(this.fullTournamentScheduleFullGoals):this.getNormalClosestRound(this.fullTournamentScheduleFullGoals)},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 t="",n="";return a[1]?(n=a[1].trim().split(" "),n[0]?t=n[0]:t=a[1]):a[0]&&(n=a[0].trim().split(" "),n[0]?t=n[0]:t=a[0]),t.trim()},async fetchGameEvents(e){try{const{data:{plays:a}}=await re.get(`${this.gameEventsUrl}${e}`,{headers:{Authorization:`${this.token}`}});return a}catch(a){throw new Error(a)}},async onClickOpenCarouselVideos(e){try{const a=await this.fetchGameEvents(e);this.carouselPlayerQueue=a.filter(t=>t.event_type_id===1&&t.video_link!=="-"),this.isCarouselFullScreenVisible=!0}catch(a){throw new Error(a)}},onChangeMatchDayGames(e){this.selectedRound!==e.key&&(this.selectedRound=e.key)},onClickCloseCarousel(){this.carouselPlayerQueue=[],this.isCarouselFullScreenVisible=!1},onChangeIsLeagueSelected(e){this.isLeagueSelected=e},onAction(e){this.$emit("action",e)},onOpenMedia(e){e.type===1&&e.gamesIds&&e.gamesIds.length>0?this.onClickOpenCarouselVideos(e.gameIds[0]):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 t=a.map(s=>`seasons=${s.id}`).join("&"),n=re.create({headers:{Authorization:`${this.token}`}});this.fullTournamentSchedule=await n.get(this.gamesUrl+e+"?"+t),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(t=>({id:t.id,type:t.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.createFullTournamentScheme(a,!1),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 re.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,t=""){let n=t;try{n||(n=this.gamesUrl2,e.forEach((l,u)=>{n+=`${u===0?"":"&"}seasons=${l}`}));const s=re.create({headers:{Authorization:`${this.token}`}}),{data:{data:i,teams:r}}=await s.get(n);return{seasonsAndGames:i,seasonsAndTeams:r}}catch(s){if(a>0)return this.fetchSeasonsGamesAndTeams(e,a-1,n);throw new Error(s)}},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 t=0;const{seasonsAndGames:n,seasonsAndTeams:s}=await this.fetchSeasonsGamesAndTeams(e.map(m=>m.id),3);if(a&&this.areSeasonsDifferent(n))return;n.forEach(m=>{const{type:h}=e.find(f=>f.id===m.season_id);m.type=h,m.games.forEach(f=>{f.season_id=m.season_id}),h===0&&(t=m.season_id)});const i={seasonsGames:n},{teams:r}=s.find(m=>m.season_id===t),l=[...i.seasonsGames],u=i&&i.seasonsGames?i.seasonsGames.map(m=>{const h=m.games.reduce((f,d)=>{const p={...d};return p.dateTimeMillis=new Date(p.date_time_utc).valueOf(),p.home_team=r.find(g=>g.team_id===d.home_team),p.visiting_team=r.find(g=>g.team_id===d.visiting_team),f[d.matchday_abbreviation]?f[d.matchday_abbreviation][d.game_status===3?"canceled":d.date]?f[d.matchday_abbreviation][d.game_status===3?"canceled":d.date].push(p):f[d.matchday_abbreviation][d.game_status===3?"canceled":d.date]=[p]:f[d.matchday_abbreviation]={[d.game_status===3?"canceled":d.date]:[p]},this.gsData&&this.gsData.teamId&&p.game_status===4&&(p.home_team.team_id===this.gsData.teamId||p.visiting_team.team_id===this.gsData.teamId)&&this.userTeamGames.push(p),f},{});this.userTeamGames.sort((f,d)=>f.dateTimeMillis-d.dateTimeMillis);for(let[f,d]of Object.entries(h))h[f]=Object.entries(d).map(([p,g])=>({date:p,games:g.sort((b,S)=>b.dateTimeMillis-S.dateTimeMillis)})),h[f].sort((p,g)=>p.date<g.date?-1:p.date>g.date?1:0);return{type:m.type,weight:m.type===0?0:m.type===2?1:2,schedule:h}}):[],c=i&&i.seasonsGames?l.map(m=>{const h=m.games.reduce((f,d)=>{const p={...d};return p.dateTimeMillis=new Date(p.date_time_utc).valueOf(),p.home_team=r.find(g=>g.team_id===d.home_team),p.visiting_team=r.find(g=>g.team_id===d.visiting_team),f[d.matchday_abbreviation]?f[d.matchday_abbreviation][d.game_status===3?"canceled":d.date]?(p.game_status!=4||p.is_live==1)&&(p.score[0]!=0||p.score[1]!=0)&&f[d.matchday_abbreviation][d.game_status===3?"canceled":d.date].push(p):(p.game_status!=4||p.is_live==1)&&(p.score[0]!=0||p.score[1]!=0)&&(f[d.matchday_abbreviation][d.game_status===3?"canceled":d.date]=[p]):(p.game_status!=4||p.is_live==1)&&(p.score[0]!=0||p.score[1]!=0)&&(f[d.matchday_abbreviation]={[d.game_status===3?"canceled":d.date]:[p]}),f},{});this.userTeamGames.sort((f,d)=>f.dateTimeMillis-d.dateTimeMillis);for(let[f,d]of Object.entries(h))h[f]=Object.entries(d).map(([p,g])=>({date:p,games:g.sort((b,S)=>b.dateTimeMillis-S.dateTimeMillis)})),h[f].sort((p,g)=>p.date<g.date?-1:p.date>g.date?1:0);return{type:m.type,weight:m.type===0?0:m.type===2?1:2,schedule:h}}):[];u.sort((m,h)=>m.weight-h.weight),this.fullTournamentScheduleFull=u.reduce((m,h)=>{for(const[f,d]of Object.entries(h.schedule))if(h.type===0)if(this.isCup){const p=f.replace("M",""),g=`Jornada ${p}`;this.isCupLegacy?m[$l[p]||g]=d:m[Vl[f]||g]=d}else m[Number(f.replace("M","")).toString()]=d;else h.type===2?["PI1","PI2"].includes(f)?m[f]=d:m[`R${Number(f.replace("PO",""))}`]=d:h.type===1&&(m[Al[f]]=d);return m},{}),this.fullTournamentScheduleFullGoals=c.reduce((m,h)=>{for(const[f,d]of Object.entries(h.schedule))if(h.type===0)if(this.isCup){const p=f.replace("M",""),g=`Jornada ${p}`;this.isCupLegacy?m[$l[p]||g]=d:m[Vl[f]||g]=myArray}else m[Number(f.replace("M","")).toString()]=d;else h.type===2?["PI1","PI2"].includes(f)?m[f]=d:m[`R${Number(f.replace("PO",""))}`]=d:h.type===1&&(m[Al[f]]=d);return m},{}),this.tournamentScheduleKeys=Array.from(Object.entries(this.fullTournamentScheduleFull).reduce((m,[h,f])=>{const d=Number(h);let p="";Number.isNaN(d)?p=h:p=d<10?`0${d}`:h;let g=!1,b=null;const S=f.reduce((O,L)=>(!b&&L&&L.games&&L.games.length&&(b=L.games[0].matchday_id),L.games.forEach(H=>{H.roundAbbreviation=Number.isNaN(d)?d:`J ${d}`}),O=O.concat(L.games),O),[]);for(let O=0;O<S.length;O++)(S[O].game_status!=4||S[O].is_live)&&(S[O].score[0]!=0||S[O].score[1]!=0)&&(g=!0);m.set(h,{key:h,value:d,valueText:p,avaible:g,matchDayId:b});const _=this.getPages(S);return this.gamesPages.set(h,_),m},new Map).values()),this.tournamentScheduleKeysGoals=Array.from(Object.entries(this.fullTournamentScheduleFullGoals).reduce((m,[h,f])=>{const d=Number(h);let p="";Number.isNaN(d)?p=h:p=d<10?`0${d}`:h;let g=!1;const b=f.reduce((_,O)=>(O.games.forEach(L=>{L.roundAbbreviation=Number.isNaN(d)?d:`J ${d}`}),_=_.concat(O.games),_),[]);for(let _=0;_<b.length;_++)(b[_].game_status!=4||b[_].is_live&&(b[_].score[0]!=0||b[_].score[1]!=0))&&(g=!0);m.set(h,{key:h,value:d,valueText:p,avaible:g});const S=this.getPages(b);return this.gamesPages.set(h,S),m},new Map).values())}catch(t){throw new Error(t)}finally{this.loadingFlag=!1}},getPages(e){const a=[];if(this.gamesPerMatchDay>0){let t=[];e.forEach((n,s)=>{t.push(n),(s+1)%this.gamesPerMatchDay===0&&(a.push([...t]),t=[])}),t.length&&a.push([...t])}else a.push(e);return a},getNormalClosestRound(e){const t=Object.entries(Object.entries(e).reduce((i,[r,l])=>(i[r]=[],l.forEach(u=>{u.games.forEach(c=>{const m=new Date(c.date_time_utc).getTime()+66e5;i[r].push(m)})}),i),{}));if(!t.length)return"1";const n=new Date().getTime(),s=t.reduce((i,[r,l])=>{let u=null;return l.forEach(c=>{const m=c-n;m>=0&&(u===null||m<u)&&(u=m)}),u&&(i.shortestTime===null||u<i.shortestTime)&&(i.round=r,i.shortestTime=u),i},{round:"",shortestTime:null});return s.shortestTime!==null?s.round:t[t.length-1][0]},getUserTeamClosestRound(e){let a=1;if(this.userTeamGames.length){const t=this.userTeamGames[0];for(const[n,s]of Object.entries(e))for(const i of s)if(i.games.find(l=>l.game_id===t.game_id))return n}return a}},async created(){}},W4=e=>(o.pushScopeId("data-v-4e58f388"),e=e(),o.popScopeId(),e),U4={class:"gsclanding",ref:"landingref"},H4={key:1,class:"container-selectors-mobile"},G4={class:"container-selectors-mobile-tournament"},q4={class:"container-selectors-mobile-season"},J4={key:0,class:"home-item-movil"},K4=W4(()=>o.createElementVNode("div",{class:"home-movil"},"Inicio",-1)),Z4={class:"name-user-movil"},X4={key:1,class:"home-item"},Y4={key:2,class:"bar-settings"},Q4={class:"name-user"},e3={class:"container-selectors"},t3={class:"selector-tournament"},o3={class:"selector-seasons"},a3={key:3,class:"container-games"},n3={class:"container-vr"},i3={key:4,class:"container-players"},s3={class:"container-tops"};function r3(e,a,t,n,s,i){const r=o.resolveComponent("CarouselFullScreen"),l=o.resolveComponent("GSCTournamentSelect"),u=o.resolveComponent("GSCSeasonSelect"),c=o.resolveComponent("GSCGames"),m=o.resolveComponent("DiscoverVideos"),h=o.resolveComponent("GSCGridTeamsMatches"),f=o.resolveComponent("GSCTableCalendar"),d=o.resolveComponent("GSCPlayersLanding"),p=o.resolveComponent("GSCTops");return o.openBlock(),o.createElementBlock("div",U4,[s.isCarouselFullScreenVisible?(o.openBlock(),o.createBlock(r,{key:0,"player-queue":s.carouselPlayerQueue,"playlist-index":0,onClose:i.onClickCloseCarousel},null,8,["player-queue","onClose"])):o.createCommentVNode("",!0),n.elementSize.width<=680?(o.openBlock(),o.createElementBlock("div",H4,[o.createElementVNode("div",G4,[o.createVNode(l,{"current-season-id":t.currentSeasonId,width:"100%",onInput:i.onInputTournament},null,8,["current-season-id","onInput"])]),o.createElementVNode("div",q4,[o.createVNode(u,{"current-season-id":t.currentSeasonId,width:"100%",seasons:s.tournamentSelectedDropDowns.seasons,onInput:i.onInputSeason},null,8,["current-season-id","seasons","onInput"])])])):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass(i.containerbackground)},[o.createElementVNode("div",{class:o.normalizeClass(i.containerdata)},[n.elementSize.width<=680?(o.openBlock(),o.createElementBlock("div",J4,[K4,o.createElementVNode("div",Z4,"Bienvenido "+o.toDisplayString(i.formatUsername(t.user.name)),1)])):o.createCommentVNode("",!0),n.elementSize.width>680?(o.openBlock(),o.createElementBlock("div",X4,"Inicio")):o.createCommentVNode("",!0),n.elementSize.width>680?(o.openBlock(),o.createElementBlock("div",Y4,[o.createElementVNode("div",Q4,"Bienvenido "+o.toDisplayString(i.formatUsername(t.user.name)),1),o.createElementVNode("div",e3,[o.createElementVNode("div",t3,[o.createVNode(l,{"current-season-id":t.currentSeasonId,onInput:i.onInputTournament},null,8,["current-season-id","onInput"])]),o.createElementVNode("div",o3,[o.createVNode(u,{"current-season-id":t.currentSeasonId,seasons:s.tournamentSelectedDropDowns.seasons,onInput:i.onInputSeason},null,8,["current-season-id","seasons","onInput"])])])])):o.createCommentVNode("",!0),Object.keys(s.tournamentSelected).length>0?(o.openBlock(),o.createElementBlock("div",a3,[o.createVNode(c,{"component-width":n.elementSize.width,isplayer:t.isplayer,"is-full":s.tournamentSelected.id!=t.user.tournament,data:i.games,"tournament-schedule-keys":s.tournamentScheduleKeys,"default-match-day-key":s.selectedRound,onClickCalendar:i.onClickCalendar,onClickMatch:i.onClickMatch,onChangeMatchDay:i.onChangeMatchDayGames,onChangeIsLeagueSelected:i.onChangeIsLeagueSelected},null,8,["component-width","isplayer","is-full","data","tournament-schedule-keys","default-match-day-key","onClickCalendar","onClickMatch","onChangeMatchDay","onChangeIsLeagueSelected"])])):o.createCommentVNode("",!0),o.createElementVNode("div",n3,[o.createVNode(m,{"component-width":n.elementSize.width,onOpenmedia:i.onOpenMedia,videoType:s.tournamentSelected.id==t.user.tournament?s.resumeType:s.goalsType,team:t.team,player:t.user.player,isplayer:t.isplayer,"is-full":s.tournamentSelected.id!=t.user.tournament,"is-league-selected":s.tournamentSelected.id!=t.user.tournament,nextRivalTeam:s.tournamentSelected.id==t.user.tournament&&s.nextRivalId!=0?{id:s.nextRivalId}:0,user:t.user,"tournament-schedule-keys":s.tournamentScheduleKeys,"default-match-day-key":i.latestRound,seasonSelected:s.seasonSelected,tournamentSelected:s.tournamentSelected,myTournament:t.user.tournament},null,8,["component-width","onOpenmedia","videoType","team","player","isplayer","is-full","is-league-selected","nextRivalTeam","user","tournament-schedule-keys","default-match-day-key","seasonSelected","tournamentSelected","myTournament"])]),o.createElementVNode("div",{class:o.normalizeClass(i.containerGridCalendarTable)},[o.createElementVNode("div",{class:"container-grid",style:o.normalizeStyle(n.elementSize.width<1e3?"width: 100%":"")},[o.createVNode(h,{isPlayer:t.isplayer?s.tournamentSelected.id==t.user.tournament:!1,"player-id":t.user.player,"team-id":t.user.team,"season-selected":s.seasonSelected.id,"next-rival-id":Object.keys(s.fullTournamentSchedule).length>0?t.user.team==s.fullTournamentSchedule.data.prematch.home_team?s.fullTournamentSchedule.data.prematch.visiting_team:s.fullTournamentSchedule.data.prematch.home_team:0,"team-img":"https://az755631.vo.msecnd.net/teams-150/"+t.user.team+".png","player-img":"https://az755631.vo.msecnd.net/players-profile/"+t.user.player+".png","rival-img":Object.keys(s.fullTournamentSchedule).length>0?t.user.team==s.fullTournamentSchedule.data.prematch.home_team?"https://az755631.vo.msecnd.net/teams-150/"+s.fullTournamentSchedule.data.prematch.visiting_team+".png":"https://az755631.vo.msecnd.net/teams-150/"+s.fullTournamentSchedule.data.prematch.home_team+".png":"","has-team":t.isplayer?!1:s.tournamentSelected.id==t.user.tournament,"component-width":n.elementSize.width,onAction:i.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),o.createElementVNode("div",{class:"container-calendar-table",style:o.normalizeStyle(n.elementSize.width<1e3?"width: 100%; margin-top: 30px;":"")},[o.createVNode(f,{onAction:i.onAction,season:s.seasonSelected,seasons:s.seasonsSelected,onOpenmedia:i.onOpenMedia,onOnOpenProfile:i.onOpenProfile,componentWidth:n.elementSize.width},null,8,["onAction","season","seasons","onOpenmedia","onOnOpenProfile","componentWidth"])],4)],2),s.tournamentSelected.id==t.user.tournament?o.withDirectives((o.openBlock(),o.createElementBlock("div",i3,[o.createVNode(d,{onClickProfileBtn:i.clickProfileBtn,onViewAll:i.viewAll,onTotalPlayers:i.getTotalPlayers,"team-id":t.user.team,"season-id":s.seasonSelected.id,"is-player":t.user.player!=0},null,8,["onClickProfileBtn","onViewAll","onTotalPlayers","team-id","season-id","is-player"])],512)),[[o.vShow,s.playersLength>0]]):o.createCommentVNode("",!0),o.createElementVNode("div",s3,[o.createVNode(p,{onMore:i.moreTops,"show-switch":s.tournamentSelected.id==t.user.tournament,season:s.seasonSelected.id,"team-id":t.user.team,onOpenmedia:i.onOpenMedia},null,8,["onMore","show-switch","season","team-id","onOpenmedia"])])],2)],2)],512)}const l3=Ne(j4,[["render",r3],["__scopeId","data-v-4e58f388"]]);pt.GSCLanding=l3,Object.defineProperty(pt,Symbol.toStringTag,{value:"Module"})});
41
+ `):" "+lc(i[0]):"as no adapter specified";throw new K("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return n},adapters:Xn};function Yn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new eo(null,e)}function dc(e){return Yn(e),e.headers=rt.from(e.headers),e.data=Zn.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),cc.getAdapter(e.adapter||Jn.adapter)(e).then(function(a){return Yn(e),a.data=Zn.call(e,e.transformResponse,a),a.headers=rt.from(a.headers),a},function(a){return ic(a)||(Yn(e),a&&a.response&&(a.response.data=Zn.call(e,e.transformResponse,a.response),a.response.headers=rt.from(a.response.headers))),Promise.reject(a)})}const mc=e=>e instanceof rt?e.toJSON():e;function Nt(e,a){a=a||{};const t={};function n(c,m,h){return B.isPlainObject(c)&&B.isPlainObject(m)?B.merge.call({caseless:h},c,m):B.isPlainObject(m)?B.merge({},m):B.isArray(m)?m.slice():m}function s(c,m,h){if(B.isUndefined(m)){if(!B.isUndefined(c))return n(void 0,c,h)}else return n(c,m,h)}function i(c,m){if(!B.isUndefined(m))return n(void 0,m)}function r(c,m){if(B.isUndefined(m)){if(!B.isUndefined(c))return n(void 0,c)}else return n(void 0,m)}function l(c,m,h){if(h in a)return n(c,m);if(h in e)return n(void 0,c)}const u={url:i,method:i,data:i,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:l,headers:(c,m)=>s(mc(c),mc(m),!0)};return B.forEach(Object.keys(Object.assign({},e,a)),function(c){const m=u[c]||s,h=m(e[c],a[c],c);B.isUndefined(h)&&m!==l||(t[c]=h)}),t}const uc="1.5.1",Qn={};["object","boolean","number","function","string","symbol"].forEach((e,a)=>{Qn[e]=function(t){return typeof t===e||"a"+(a<1?"n ":" ")+e}});const hc={};Qn.transitional=function(e,a,t){function n(s,i){return"[Axios v"+uc+"] Transitional option '"+s+"'"+i+(t?". "+t:"")}return(s,i,r)=>{if(e===!1)throw new K(n(i," has been removed"+(a?" in "+a:"")),K.ERR_DEPRECATED);return a&&!hc[i]&&(hc[i]=!0,console.warn(n(i," has been deprecated since v"+a+" and will be removed in the near future"))),e?e(s,i,r):!0}};function v5(e,a,t){if(typeof e!="object")throw new K("options must be an object",K.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let s=n.length;for(;s-- >0;){const i=n[s],r=a[i];if(r){const l=e[i],u=l===void 0||r(l,i,e);if(u!==!0)throw new K("option "+i+" must be "+u,K.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new K("Unknown option "+i,K.ERR_BAD_OPTION)}}const ei={assertOptions:v5,validators:Qn},ht=ei.validators;class Jo{constructor(a){this.defaults=a,this.interceptors={request:new tc,response:new tc}}request(a,t){typeof a=="string"?(t=t||{},t.url=a):t=a||{},t=Nt(this.defaults,t);const{transitional:n,paramsSerializer:s,headers:i}=t;n!==void 0&&ei.assertOptions(n,{silentJSONParsing:ht.transitional(ht.boolean),forcedJSONParsing:ht.transitional(ht.boolean),clarifyTimeoutError:ht.transitional(ht.boolean)},!1),s!=null&&(B.isFunction(s)?t.paramsSerializer={serialize:s}:ei.assertOptions(s,{encode:ht.function,serialize:ht.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let r=i&&B.merge(i.common,i[t.method]);i&&B.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),t.headers=rt.concat(r,i);const l=[];let u=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(t)===!1||(u=u&&p.synchronous,l.unshift(p.fulfilled,p.rejected))});const c=[];this.interceptors.response.forEach(function(p){c.push(p.fulfilled,p.rejected)});let m,h=0,f;if(!u){const p=[dc.bind(this),void 0];for(p.unshift.apply(p,l),p.push.apply(p,c),f=p.length,m=Promise.resolve(t);h<f;)m=m.then(p[h++],p[h++]);return m}f=l.length;let d=t;for(h=0;h<f;){const p=l[h++],g=l[h++];try{d=p(d)}catch(b){g.call(this,b);break}}try{m=dc.call(this,d)}catch(p){return Promise.reject(p)}for(h=0,f=c.length;h<f;)m=m.then(c[h++],c[h++]);return m}getUri(a){a=Nt(this.defaults,a);const t=sc(a.baseURL,a.url);return ec(t,a.params,a.paramsSerializer)}}B.forEach(["delete","get","head","options"],function(e){Jo.prototype[e]=function(a,t){return this.request(Nt(t||{},{method:e,url:a,data:(t||{}).data}))}}),B.forEach(["post","put","patch"],function(e){function a(t){return function(n,s,i){return this.request(Nt(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:s}))}}Jo.prototype[e]=a(),Jo.prototype[e+"Form"]=a(!0)});const Ko=Jo;class ti{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(s){t=s});const n=this;this.promise.then(s=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](s);n._listeners=null}),this.promise.then=s=>{let i;const r=new Promise(l=>{n.subscribe(l),i=l}).then(s);return r.cancel=function(){n.unsubscribe(i)},r},a(function(s,i,r){n.reason||(n.reason=new eo(s,i,r),t(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 t=this._listeners.indexOf(a);t!==-1&&this._listeners.splice(t,1)}static source(){let a;return{token:new ti(function(t){a=t}),cancel:a}}}const O5=ti;function A5(e){return function(a){return e.apply(null,a)}}function V5(e){return B.isObject(e)&&e.isAxiosError===!0}const oi={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(oi).forEach(([e,a])=>{oi[a]=e});const $5=oi;function pc(e){const a=new Ko(e),t=zl(Ko.prototype.request,a);return B.extend(t,Ko.prototype,a,{allOwnKeys:!0}),B.extend(t,a,null,{allOwnKeys:!0}),t.create=function(n){return pc(Nt(e,n))},t}const ge=pc(Jn);ge.Axios=Ko,ge.CanceledError=eo,ge.CancelToken=O5,ge.isCancel=ic,ge.VERSION=uc,ge.toFormData=Ho,ge.AxiosError=K,ge.Cancel=ge.CanceledError,ge.all=function(e){return Promise.all(e)},ge.spread=A5,ge.isAxiosError=V5,ge.mergeConfig=Nt,ge.AxiosHeaders=rt,ge.formToJSON=e=>ac(B.isHTMLForm(e)?new FormData(e):e),ge.getAdapter=cc.getAdapter,ge.HttpStatusCode=$5,ge.default=ge;const gc=ge,I5=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},ai={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,a=this.$refs.content.scrollWidth;a>0&&e>0&&(a>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},fc=()=>{o.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},yc=ai.setup;ai.setup=yc?(e,a)=>(fc(),yc(e,a)):fc;const P5={ref:"gscScrollableContainer",class:"scrollable-container"},R5={class:"scrollable-arrows"},L5=["width","height","viewBox"],z5=["stroke"],F5={class:"scrollable-wrapper"},M5={class:"scrollable-arrows"},D5=["width","height","viewBox"],j5=["stroke"];function W5(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",P5,[t.arrows?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["arrows-container",i.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...r)=>i.scrollLeft&&i.scrollLeft(...r))},[o.createElementVNode("div",R5,[(o.openBlock(),o.createElementBlock("svg",{width:t.arrowsWidth,height:t.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:t.arrowsColor},null,8,z5)],8,L5))])],2)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:a[1]||(a[1]=(...r)=>i.getScroll&&i.getScroll(...r))},[o.createElementVNode("div",F5,[o.renderSlot(e.$slots,"default",{},void 0,!0)])],544),t.arrows?(o.openBlock(),o.createElementBlock("div",{key:1,id:"arrows-container-right",class:o.normalizeClass(["arrows-container",i.hideShowRightArrow]),onClick:a[2]||(a[2]=(...r)=>i.scrollRight&&i.scrollRight(...r))},[o.createElementVNode("div",M5,[(o.openBlock(),o.createElementBlock("svg",{width:t.arrowsWidth,height:t.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:t.arrowsColor},null,8,j5)],8,D5))])],2)):o.createCommentVNode("",!0)],512)}const U5=I5(ai,[["render",W5],["__scopeId","data-v-b548a08d"]]),yt=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t};let bc=null;const ni={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)bc=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),bc.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},wc=()=>{o.useCssVars(e=>({d6f07504:e.colorBackgroundHome+"45","6d0848cf":e.colorBackgroundAway+"45","524ee4ec":e.colorBackgroundHome,"524bd2fb":e.colorBackgroundAway}))},Sc=ni.setup;ni.setup=Sc?(e,a)=>(wc(),Sc(e,a)):wc;const Zo=e=>(o.pushScopeId("data-v-45034b51"),e=e(),o.popScopeId(),e),H5=Zo(()=>o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[o.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)),G5=[H5],q5=Zo(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),J5=["src"],K5=Zo(()=>o.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),Z5=Zo(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),X5=["src"],Y5=["src"],Q5={class:"text-container"};function eC(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",{ref:"gamesContainer",class:o.normalizeClass(i.thumbnailhighlights)},[o.createElementVNode("div",{class:o.normalizeClass(i.playbutton),onClick:a[0]||(a[0]=(...r)=>i.onclickPlayVideos&&i.onclickPlayVideos(...r))},G5,2),t.dateGame!=""?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(i.date)},o.toDisplayString(t.dateGame),3)):o.createCommentVNode("",!0),t.matchday!=""&&t.seasonName!=""?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(i.containerinfogame)},[t.matchday!=""?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(i.matchcontainer)},o.toDisplayString(t.matchday),3)):o.createCommentVNode("",!0),t.seasonName!=""?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(i.seasoncontainer)},o.toDisplayString(t.seasonName),3)):o.createCommentVNode("",!0)],2)):o.createCommentVNode("",!0),q5,o.createElementVNode("img",{src:t.background,alt:"",class:"bkg-blackwhite position-image"},null,8,J5),o.createElementVNode("div",{class:o.normalizeClass([i.baselogo,"position-image"])},null,2),o.createElementVNode("div",{class:o.normalizeClass(i.baselogoright)},null,2),K5,Z5,o.createElementVNode("img",{src:t.logoHome,alt:"",class:o.normalizeClass(i.teamlogo)},null,10,X5),o.createElementVNode("img",{src:t.logoAway,alt:"",class:o.normalizeClass(i.logoright)},null,10,Y5),o.createElementVNode("div",Q5,[o.createElementVNode("span",{class:o.normalizeClass(i.secondline)},o.toDisplayString(t.score),3),o.createElementVNode("div",{class:o.normalizeClass(i.titlename)},o.toDisplayString(t.titleCategory),3)])],2)}const tC=yt(ni,[["render",eC],["__scopeId","data-v-45034b51"]]);let _c=null;const ii={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)_c=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),_c.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},kc=()=>{o.useCssVars(e=>({"46c0698e":e.colorBackgroundHome,"12d9d27a":e.colorBackgroundHome+"36"}))},Cc=ii.setup;ii.setup=Cc?(e,a)=>(kc(),Cc(e,a)):kc;const to=e=>(o.pushScopeId("data-v-9caaef34"),e=e(),o.popScopeId(),e),oC=to(()=>o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[o.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)),aC=[oC],nC=to(()=>o.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),iC=["src"],sC=to(()=>o.createElementVNode("div",{class:"base-logo"},null,-1)),rC=["src"],lC=to(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),cC={class:"text-container"},dC={class:"player-image position-image"},mC=["src"],uC=["src"],hC=["src"],pC=to(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1));function gC(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",{ref:"gamesContainer",class:o.normalizeClass(i.thumbnailhighlights)},[o.createElementVNode("div",{class:o.normalizeClass(i.playbutton),onClick:a[0]||(a[0]=(...r)=>i.onclickPlayVideos&&i.onclickPlayVideos(...r))},aC,2),nC,o.createElementVNode("img",{src:t.background,alt:"",class:"bkg-blackwhite position-image"},null,8,iC),sC,o.createElementVNode("img",{src:t.logoHome,alt:"",class:o.normalizeClass(i.teamlogo)},null,10,rC),lC,o.createElementVNode("div",cC,[o.createElementVNode("span",{class:o.normalizeClass(i.firstline)},o.toDisplayString(t.namePlayer),3),o.createElementVNode("span",{class:o.normalizeClass(i.secondline),style:o.normalizeStyle(t.nameCategory=="Balones recuperados en disputa "?"font-size: 25px":"")},o.toDisplayString(t.nameCategory),7)]),o.createElementVNode("div",dC,[t.typeImg==0?(o.openBlock(),o.createElementBlock("img",{key:0,src:t.photoProfile,class:o.normalizeClass(i.playerimage)},null,10,mC)):o.createCommentVNode("",!0),t.typeImg==1?(o.openBlock(),o.createElementBlock("img",{key:1,src:t.photoProfile,alt:""},null,8,uC)):o.createCommentVNode("",!0),t.typeImg==2?(o.openBlock(),o.createElementBlock("img",{key:2,src:t.photoProfile,class:"img-number"},null,8,hC)):o.createCommentVNode("",!0)]),pC],2)}const fC=yt(ii,[["render",gC],["__scopeId","data-v-9caaef34"]]);let Ec=null;const si={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)Ec=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Ec.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Bc=()=>{o.useCssVars(e=>({"5536c7dc":e.colorBackgroundHome,"3e449276":e.colorBackgroundHome+"36"}))},xc=si.setup;si.setup=xc?(e,a)=>(Bc(),xc(e,a)):Bc;const Xo=e=>(o.pushScopeId("data-v-ca6c08d9"),e=e(),o.popScopeId(),e),yC=Xo(()=>o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[o.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)),bC=[yC],wC=Xo(()=>o.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),SC=["src"],_C={width:"275",height:"125",viewBox:"0 0 275 125",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"base-logo"},kC=["fill"],CC=["id"],EC=["stop-color"],BC=["stop-color"],xC=["src"],NC=Xo(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),TC={class:"text-container"},vC=Xo(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1));function OC(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",{ref:"gamesContainer",class:o.normalizeClass(i.thumbnailhighlights)},[o.createElementVNode("div",{class:o.normalizeClass(i.playbutton),onClick:a[0]||(a[0]=(...r)=>i.onclickPlayVideos&&i.onclickPlayVideos(...r))},bC,2),wC,o.createElementVNode("img",{src:t.background,alt:"",class:"bkg-blackwhite position-image"},null,8,SC),(o.openBlock(),o.createElementBlock("svg",_C,[o.createElementVNode("path",{d:"M274.641 124.094L0 0.675049V124.094H274.641Z",fill:"url(#paint0_linear_7_"+t.nameTeam.replaceAll(" ","")+")"},null,8,kC),o.createElementVNode("defs",null,[o.createElementVNode("linearGradient",{id:"paint0_linear_7_"+t.nameTeam.replaceAll(" ",""),x1:"58.6578",y1:"15.5938",x2:"58.6578",y2:"124.094",gradientUnits:"userSpaceOnUse"},[o.createElementVNode("stop",{"stop-color":t.colorBackgroundHome},null,8,EC),o.createElementVNode("stop",{offset:"1","stop-color":t.colorBackgroundHome},null,8,BC)],8,CC)])])),o.createElementVNode("img",{class:o.normalizeClass(i.teamlogo),src:t.logoHome,alt:""},null,10,xC),NC,o.createElementVNode("div",TC,[o.createElementVNode("span",{class:o.normalizeClass(i.firstline)},[t.nameTeam!="Local"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(t.nameTeam),1)],64)):o.createCommentVNode("",!0)],2),o.createElementVNode("div",{class:o.normalizeClass(i.secondline)},o.toDisplayString(t.nameCategory),3)]),vC],2)}const AC=yt(si,[["render",OC],["__scopeId","data-v-ca6c08d9"]]);let Nc=null;const ri={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)Nc=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Nc.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Tc=()=>{o.useCssVars(e=>({"17b44fa7":e.colorBackgroundHome,f1e257fe:e.colorBackgroundHome+"36"}))},vc=ri.setup;ri.setup=vc?(e,a)=>(Tc(),vc(e,a)):Tc;const Yo=e=>(o.pushScopeId("data-v-49b4e56b"),e=e(),o.popScopeId(),e),VC=Yo(()=>o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[o.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)),$C=[VC],IC=Yo(()=>o.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),PC=["src"],RC={width:"275",height:"125",viewBox:"0 0 275 125",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"base-logo-away"},LC=["fill"],zC=["id"],FC=["stop-color"],MC=["stop-color"],DC=["src"],jC=Yo(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),WC={class:"text-container"},UC=Yo(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1));function HC(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",{ref:"gamesContainer",class:o.normalizeClass(i.thumbnailhighlights)},[o.createElementVNode("div",{class:o.normalizeClass(i.playbutton),onClick:a[0]||(a[0]=(...r)=>i.onclickPlayVideos&&i.onclickPlayVideos(...r))},$C,2),IC,o.createElementVNode("img",{src:t.background,alt:"",class:"bkg-blackwhite position-image"},null,8,PC),(o.openBlock(),o.createElementBlock("svg",RC,[o.createElementVNode("path",{d:"M274.641 124.094L0 0.675049V124.094H274.641Z",fill:"url(#paint0_linear_7_"+t.nameTeam.replaceAll(" ","")+")"},null,8,LC),o.createElementVNode("defs",null,[o.createElementVNode("linearGradient",{id:"paint0_linear_7_"+t.nameTeam.replaceAll(" ",""),x1:"58.6578",y1:"15.5938",x2:"58.6578",y2:"124.094",gradientUnits:"userSpaceOnUse"},[o.createElementVNode("stop",{"stop-color":t.colorBackgroundAway},null,8,FC),o.createElementVNode("stop",{offset:"1","stop-color":t.colorBackgroundAway},null,8,MC)],8,zC)])])),o.createElementVNode("img",{class:o.normalizeClass(i.teamlogo),src:t.logoHome,alt:""},null,10,DC),jC,o.createElementVNode("div",WC,[o.createElementVNode("span",{class:o.normalizeClass(i.firstline)},[t.nameTeam!="Away"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(t.nameTeam),1)],64)):o.createCommentVNode("",!0)],2),o.createElementVNode("div",{class:o.normalizeClass(i.secondline)},o.toDisplayString(t.nameCategory),3)]),UC],2)}const GC=yt(ri,[["render",HC],["__scopeId","data-v-49b4e56b"]]);let Oc=null;const li={components:{},props:{colorFontHome:{type:String,default:"#000000"},colorFontAway:{type:String,default:"#000000"},type:{type:Number,default:0},playStatus:{type:Number,default:2},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{type:String,default:""},showimg:{type:Boolean,default:!0},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)Oc=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Oc.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Ac=()=>{o.useCssVars(e=>({"78f57c00":e.colorBackgroundHome,"78f26a0f":e.colorBackgroundAway,"4c090560":e.colorBackgroundAway+"62",73887748:e.colorBackgroundHome+"36"}))},Vc=li.setup;li.setup=Vc?(e,a)=>(Ac(),Vc(e,a)):Ac;const Qo=e=>(o.pushScopeId("data-v-e77c3274"),e=e(),o.popScopeId(),e),qC=["width","src"],JC=Qo(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),KC=Qo(()=>o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[o.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)),ZC=[KC],XC={class:"player-container"},YC=["src"],QC=["src"],e4=["src"],t4={class:"container-score"},o4=["src"],a4=["src"],n4=["src"],i4=Qo(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),s4=Qo(()=>o.createElementVNode("div",{class:"gradient-color"},null,-1));function r4(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",{ref:"gamesContainer",class:o.normalizeClass(i.thumbnailhighlights)},[t.playStatus!=2?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass((t.playStatus==1,"icon-thumb"))},[o.createElementVNode("img",{width:t.playStatus==1?60:40,src:t.playStatus==1?"http://golstatsimages.blob.core.windows.net/images-library/icn-live@2x.png":"http://golstatsimages.blob.core.windows.net/images-library/icn-info@2x.png"},null,8,qC)],2)):o.createCommentVNode("",!0),JC,o.createElementVNode("div",{class:o.normalizeClass(i.playbutton),onClick:a[0]||(a[0]=(...r)=>i.onclickPlayVideos&&i.onclickPlayVideos(...r))},ZC,2),o.createElementVNode("div",XC,[t.type==0?(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass(i.texttitle)},o.toDisplayString(t.nameCategory),3)):(o.openBlock(),o.createElementBlock("span",{key:1,class:o.normalizeClass(i.texttitle2)},o.toDisplayString(t.nameCategory),3)),t.showimg?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[t.typeImg==0?(o.openBlock(),o.createElementBlock("img",{key:0,src:t.photoProfile,class:o.normalizeClass(i.playerimage)},null,10,YC)):o.createCommentVNode("",!0),t.typeImg==1?(o.openBlock(),o.createElementBlock("img",{key:1,src:t.photoProfile,alt:""},null,8,QC)):o.createCommentVNode("",!0),t.typeImg==2?(o.openBlock(),o.createElementBlock("img",{key:2,src:t.photoProfile,class:"img-number"},null,8,e4)):o.createCommentVNode("",!0)],64)):o.createCommentVNode("",!0),o.createElementVNode("div",t4,[o.createElementVNode("div",{class:o.normalizeClass(i.hometeam)},[o.createElementVNode("span",{class:o.normalizeClass(i.teamname),style:o.normalizeStyle({color:t.colorFontAway})},o.toDisplayString(t.nameHomeTeam),7),o.createElementVNode("img",{src:t.logoHome,alt:"",class:o.normalizeClass(i.teamlogo)},null,10,o4),o.createElementVNode("span",{class:o.normalizeClass(i.teamscore)},o.toDisplayString(t.scoreHome),3)],2),o.createElementVNode("span",{class:o.normalizeClass(i.points)},":",2),o.createElementVNode("div",{class:o.normalizeClass(i.awayteam)},[o.createElementVNode("span",{class:o.normalizeClass(i.teamscore)},o.toDisplayString(t.scoreAway),3),o.createElementVNode("img",{src:t.logoAway,alt:"",class:o.normalizeClass(i.teamlogo)},null,10,a4),o.createElementVNode("span",{class:o.normalizeClass(i.teamname),style:o.normalizeStyle({color:t.colorFontAway})},o.toDisplayString(t.nameAwayTeam),7)],2)])]),o.createElementVNode("img",{src:t.background,alt:"",class:"bkg-blackwhite position-image"},null,8,n4),i4,s4],2)}const l4=yt(li,[["render",r4],["__scopeId","data-v-e77c3274"]]);let $c=null;const ci={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)$c=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),$c.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Ic=()=>{o.useCssVars(e=>({"7f6829cd":e.colorBackgroundHome+"30","1ad47d61":e.colorBackgroundHome}))},Pc=ci.setup;ci.setup=Pc?(e,a)=>(Ic(),Pc(e,a)):Ic;const ea=e=>(o.pushScopeId("data-v-cc315132"),e=e(),o.popScopeId(),e),c4=ea(()=>o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[o.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)),d4=[c4],m4={class:"player-image position-image"},u4=["src"],h4=["src"],p4=["src"],g4=["src"],f4=ea(()=>o.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),y4=["src"],b4=ea(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),w4={class:"text-container"},S4=ea(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),_4={class:"base-logo",width:"91",height:"216",viewBox:"0 0 91 216",fill:"none",xmlns:"http://www.w3.org/2000/svg"},k4=["fill"];function C4(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",{ref:"gamesContainer",class:o.normalizeClass(i.thumbnailhighlights)},[o.createElementVNode("div",{class:o.normalizeClass(i.playbutton),onClick:a[0]||(a[0]=(...r)=>i.onclickPlayVideos&&i.onclickPlayVideos(...r))},d4,2),o.createElementVNode("div",m4,[t.typeImg==0?(o.openBlock(),o.createElementBlock("img",{key:0,src:t.photoProfile,class:o.normalizeClass(i.playerimage)},null,10,u4)):o.createCommentVNode("",!0),t.typeImg==1?(o.openBlock(),o.createElementBlock("img",{key:1,src:t.photoProfile,alt:""},null,8,h4)):o.createCommentVNode("",!0),t.typeImg==2?(o.openBlock(),o.createElementBlock("img",{key:2,src:t.photoProfile,class:"img-number"},null,8,p4)):o.createCommentVNode("",!0)]),o.createElementVNode("img",{src:t.logoHome,alt:"",class:"team-logo"},null,8,g4),f4,o.createElementVNode("img",{src:t.background,alt:"",class:"bkg-blackwhite position-image"},null,8,y4),b4,o.createElementVNode("div",w4,[o.createElementVNode("span",{class:o.normalizeClass(i.firstline)},"MEJORES JUGADAS",2),o.createElementVNode("span",{class:o.normalizeClass(i.secondline)},o.toDisplayString(t.nameCategory),3),o.createElementVNode("div",{class:o.normalizeClass(i.playername),style:o.normalizeStyle({color:t.colorFont})},o.toDisplayString(t.namePlayer),7)]),S4,(o.openBlock(),o.createElementBlock("svg",_4,[o.createElementVNode("path",{d:"M91.5 216L0 -0.5H91.5V216Z",fill:t.colorBackgroundHome},null,8,k4)]))],2)}const E4=yt(ci,[["render",C4],["__scopeId","data-v-cc315132"]]);function B4(e){const a=o.ref({width:0,height:0});function t(){const n=e.value.getBoundingClientRect();a.value.width=n.width,a.value.height=n.height}return o.onMounted(()=>{t(),window.addEventListener("resize",t)}),o.onUnmounted(()=>{window.removeEventListener("resize",t)}),{elementSize:a}}const x4="_ptg_lp0fw_5",N4="_ptgtitle_lp0fw_15",T4="_ptgtitle450_lp0fw_47",v4="_pgtcontainercard_lp0fw_79",O4="_pgtcontainercard350_lp0fw_89",A4={ptg:x4,ptgtitle:N4,ptgtitle450:T4,pgtcontainercard:v4,pgtcontainercard350:O4},di={components:{GSCSlider:U5,GSCThumbnailCategory:fC,GSCThumbnailCategoryTeam:AC,GSCThumbnailCategoryTeamAway:GC,GSCThumbnailHighlightGamePlayer:l4,GSCThumbnailSummaryPlayer:E4,GSCThumbnailHighlightGameHistoric:tC},setup(){const e=o.ref("ptgDiv"),{elementSize:a}=B4(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"},matchdayView:{type:Number,default:1},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,flagGames:[],lastseason:0,arrayMatchdays:[],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.type!=14&&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=[],t=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&&(t=null);const n=[1,2,3];let s={type:e.data.plays_status==0||!e.data.plays_status?0:1,seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:e.categories&&e.categories.length?e.categories:a,gameIds:t,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&&(s.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",s)},onClickVideos(e){this.$emit("onClickVideos",e)},onClickCard(e){this.$emit("onClickCard",e)},async getTeamsInfo(e){const a=await gc.create({headers:{Authorization:`${this.token}`}}).get("https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/"+e.season);for(let t=0;t<a.data.teams.length;t++)this.teamsInfo[a.data.teams[t].team_id]=a.data.teams[t]},async getStats(e){const a=gc.create({headers:{Authorization:`${this.token}`}});var t=[],n={},s={};if(this.type==0){s=await a.get("https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/"+e.season+"/"+e.player);for(let i=0;i<s.data.seasons[e.season].games_played.length;i++)n={player_id:e.player,color:s.data.info_thumbnails.colors.background_color,colorfont:s.data.info_thumbnails.colors.font_color,photo_profile:s.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+s.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/"+s.data.seasons[e.season].games_played[i].home_team+".png",player_name:s.data.seasons[e.season].games_played[i].home_team_acronym+" "+s.data.seasons[e.season].games_played[i].home_team_score+" : "+s.data.seasons[e.season].games_played[i].visiting_team_score+" "+s.data.seasons[e.season].games_played[i].visiting_team_acronym,team_id:s.data.seasons[e.season].games_played[i].game_id,team_id_b:s.data.seasons[e.season].games_played[i].home_team,season_id:s.data.seasons[e.season].games_played[i].season_id,name:"",category:0,team_id:s.data.team_id,game_id:s.data.seasons[e.season].games_played[i].game_id,position_id:s.data.position_id,scorehome:s.data.seasons[e.season].games_played[i].home_team_score,scoreaway:s.data.seasons[e.season].games_played[i].visiting_team_score,hometeamacronym:s.data.seasons[e.season].games_played[i].home_team_acronym,visitingteamacronym:s.data.seasons[e.season].games_played[i].visiting_team_acronym,seasonname:s.data.seasons[e.season].name,match:s.data.seasons[e.season].games_played[i].matchday_name.replace("Matchday","Jor"),score:s.data.seasons[e.season].games_played[i].home_team_score+" : "+s.data.seasons[e.season].games_played[i].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.info_thumbnails.images.background_player_in_action[0],backgroundhome:s.data.seasons[e.season].games_played[i].info_thumbnails.home_colors.background_color,backgroundaway:s.data.seasons[e.season].games_played[i].info_thumbnails.away_colors.background_color,colorfont_home:s.data.seasons[e.season].games_played[i].info_thumbnails.home_colors.font_color,colorfont_away:s.data.seasons[e.season].games_played[i].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+s.data.seasons[e.season].games_played[i].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+s.data.seasons[e.season].games_played[i].visiting_team+".png",total:s.data.seasons[e.season].games_played[i].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+s.data.seasons[e.season].games_played[i].home_team+"_"+s.data.seasons[e.season].games_played[i].season_id+"_r1.jpg"},t.push(n)}if(this.type==1){s=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/teams/"+e.team);for(let i=0;i<s.data.categories.length;i++){this.playerPhoto=!1;const r=Math.floor(Math.random()*s.data.categories[i].info_thumbnails.images.background_default_categories.length),l=Math.floor(Math.random()*s.data.categories[i].info_thumbnails.images.background_default_teams.length);n={player_action:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.categories[i].info_thumbnails.images.background_default_categories[r],background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.categories[i].info_thumbnails.images.background_default_teams[l],color:s.data.categories[i].info_thumbnails.colors.background_color,team_logo:"https://az755631.vo.msecnd.net/teams-80/"+s.data.categories[i].info_thumbnails.team_logo,player_name:s.data.categories[i].category_name,team_name:this.teamsInfo[s.data.team_id].colloquial_name,team_id:s.data.team_id,colorfont:s.data.categories[i].info_thumbnails.colors.font_color,team_id_b:s.data.team_id,category:s.data.categories[i].categories,season_id:s.data.season_id,total:s.data.categories[i].total,background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+s.data.team_id+"_"+s.data.season_id+"_r1.jpg"},t.push(n)}}if(this.type==2){s=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/players/"+e.player);for(let i=0;i<s.data.categories.length;i++){this.playerPhoto=!1;const r=Math.floor(Math.random()*s.data.categories[i].info_thumbnails.images.player_in_action.length),l=Math.floor(Math.random()*s.data.categories[i].info_thumbnails.images.background_default_categories.length);n={player_action:s.data.categories[i].info_thumbnails.images.player_in_action[r]?"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.categories[i].info_thumbnails.images.player_in_action[r]:"https://az755631.vo.msecnd.net/players-profile/"+e.player+".png",background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.categories[i].info_thumbnails.images.background_default_categories[l],color:s.data.categories[i].info_thumbnails.colors.background_color,team_logo:"https://az755631.vo.msecnd.net/teams-80/"+s.data.categories[i].info_thumbnails.team_logo,player_name:s.data.categories[i].category_name,season_id:e.season,colorfont:s.data.categories[i].info_thumbnails.colors.font_color,player_id:e.player,team_id:s.data.categories[i].info_thumbnails.colors.team_id,category:s.data.categories[i].categories,total:s.data.categories[i].total,background_card:"https://az755631.vo.msecnd.net/players-profile/"+e.player+".png"},t.push(n)}}if(this.type==3){this.playerPhoto=!1,s=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/games/"+e.game);for(let i=0;i<s.data.games[0].players.length;i++){const r=Math.floor(Math.random()*s.data.games[0].players[i].info_thumbnails.images.background_player_in_action.length),l=Math.floor(Math.random()*s.data.games[0].players[i].info_thumbnails.images.player_in_action.length);n={colorbackgroundhome:s.data.games[0].players[i].info_thumbnails.colors.background_color,colorbackgroundaway:"",nameplayer:s.data.games[0].players[i].player_name,background:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.games[0].players[i].info_thumbnails.images.background_player_in_action[r],namecategory:"RESUMEN",namehometeam:"",nameawayteam:"",category:0,colorfont:s.data.games[0].players[i].info_thumbnails.colors.font_color,team_id:s.data.games[0].players[i].team_id,player_id:s.data.games[0].players[i].player_id,game_id:s.data.games[0].game_id,season_id:s.data.season_id,logohome:s.data.games[0].players[i].team_logo,photoprofile:s.data.games[0].players[i].info_thumbnails.images.player_in_action[l]?"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.games[0].players[i].info_thumbnails.images.player_in_action[l]:"https://az755631.vo.msecnd.net/players-profile/"+s.data.games[0].players[i].player_id+".png",logoaway:"",scoreaway:"",scorehome:""},t.push(n)}}if(this.type==4){this.playerPhoto=!1,s=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/specifics-plays/seasons/"+e.season+"/games/"+e.game);for(let i=0;i<s.data.home_team.categories.length;i++){const r=Math.floor(Math.random()*s.data.home_team.categories[i].info_thumbnails.images.background_default_teams.length);n={game_id:s.data.game_id,season_id:s.data.season_id,team_id:s.data.home_team.team_id,category:s.data.home_team.categories[i].categories.concat(s.data.home_team.categories[i].rival_categories),background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.home_team.categories[i].info_thumbnails.images.background_default_categories[r],player_action:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.home_team.categories[i].info_thumbnails.images.background_default_categories[r],team_logo:"https://az755631.vo.msecnd.net/teams-150/"+s.data.home_team.team_id+".png",color:s.data.home_team.categories[i].info_thumbnails.colors.background_color,colorfont:s.data.home_team.categories[i].info_thumbnails.colors.font_color,player_name:s.data.home_team.categories[i].category_name,total:s.data.home_team.categories[i].total,team_name:"Local",background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+s.data.home_team.team_id+"_"+s.data.season_id+"_r1.jpg"},t.push(n)}}if(this.type==5){this.playerPhoto=!1,s=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/specifics-plays/seasons/"+e.season+"/games/"+e.game);for(let i=0;i<s.data.visiting_team.categories.length;i++){const r=Math.floor(Math.random()*s.data.visiting_team.categories[i].info_thumbnails.images.background_default_categories.length);n={game_id:s.data.game_id,season_id:s.data.season_id,team_id:s.data.visiting_team.team_id,category:s.data.visiting_team.categories[i].categories.concat(s.data.visiting_team.categories[i].rival_categories),background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.visiting_team.categories[i].info_thumbnails.images.background_default_categories[r],player_action:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.visiting_team.categories[i].info_thumbnails.images.background_default_categories[r],team_logo:"https://az755631.vo.msecnd.net/teams-150/"+s.data.visiting_team.team_id+".png",team_name:"Away",color:s.data.visiting_team.categories[i].info_thumbnails.colors.background_color,colorfont:s.data.visiting_team.categories[i].info_thumbnails.colors.font_color,player_name:s.data.visiting_team.categories[i].category_name,total:s.data.visiting_team.categories[i].total,background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+s.data.visiting_team.team_id+"_"+s.data.season_id+"_r1.jpg"},t.push(n)}}if(this.type==6){s=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 i=0;i<s.data.best_plays.length;i++)n={category:s.data.best_plays[i].categories,team_id:s.data.team_id,game_id:s.data.best_plays[i].game_id,season_id:s.data.season_id,backgroundhome:s.data.best_plays[i].info_thumbnails.home_colors.background_color,backgroundaway:s.data.best_plays[i].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+s.data.best_plays[i].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+s.data.best_plays[i].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.best_plays[i].info_thumbnails.images.background_default_categories[0],match:"",seasonname:"",score:s.data.best_plays[i].score[0]+" : "+s.data.best_plays[i].score[1]},t.push(n)}if(this.type==7){s=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 i=0;i<s.data.best_plays.length;i++)n={category:s.data.best_plays[i].categories,team_id:s.data.team_id,game_id:s.data.best_plays[i].game_id,season_id:s.data.season_id,backgroundhome:s.data.best_plays[i].info_thumbnails.home_colors.background_color,colorfont_home:s.data.best_plays[i].info_thumbnails.home_colors.font_color,colorfont_away:s.data.best_plays[i].info_thumbnails.away_colors.font_color,backgroundaway:s.data.best_plays[i].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+s.data.best_plays[i].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+s.data.best_plays[i].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.best_plays[i].info_thumbnails.images.background_default_categories[0],match:"",seasonname:"",score:s.data.best_plays[i].score[0]+" : "+s.data.best_plays[i].score[1]},t.push(n)}if(this.type==8){s=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 i=0;i<s.data.best_plays.length;i++)n={category:s.data.best_plays[i].categories,team_id:s.data.team_id,game_id:s.data.best_plays[i].game_id,season_id:s.data.season_id,player_id:s.data.player_id,backgroundhome:s.data.best_plays[i].info_thumbnails.home_colors.background_color,backgroundaway:s.data.best_plays[i].info_thumbnails.away_colors.background_color,colorfont_home:s.data.best_plays[i].info_thumbnails.home_colors.font_color,colorfont_away:s.data.best_plays[i].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+s.data.best_plays[i].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+s.data.best_plays[i].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.best_plays[i].info_thumbnails.images.background_default_categories[0],match:"",scorehome:s.data.best_plays[i].score[0],scoreaway:s.data.best_plays[i].score[1],photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+s.data.best_plays[i].info_thumbnails.player_logo,hometeamacronym:s.data.best_plays[i].home_team_acronym,visitingteamacronym:s.data.best_plays[i].away_team_acronym,seasonname:"",score:s.data.best_plays[i].score[0]+" : "+s.data.best_plays[i].score[1]},t.push(n)}if(this.type==9){s=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 i=0;i<s.data.best_plays.length;i++)n={category:s.data.best_plays[i].categories,team_id:s.data.team_id,player_id:s.data.player_id,game_id:s.data.best_plays[i].game_id,season_id:s.data.season_id,backgroundhome:s.data.best_plays[i].info_thumbnails.home_colors.background_color,backgroundaway:s.data.best_plays[i].info_thumbnails.away_colors.background_color,colorfont_home:s.data.best_plays[i].info_thumbnails.home_colors.font_color,colorfont_away:s.data.best_plays[i].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+s.data.best_plays[i].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+s.data.best_plays[i].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.best_plays[i].info_thumbnails.images.background_default_categories[0],match:"",scorehome:s.data.best_plays[i].score[0],scoreaway:s.data.best_plays[i].score[1],seasonname:"",photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+s.data.best_plays[i].info_thumbnails.player_logo,score:s.data.best_plays[i].score[0]+" : "+s.data.best_plays[i].score[1]},t.push(n)}if(this.type==10){const i=await a.get("https://ws8d8ye2ii.execute-api.us-west-2.amazonaws.com/prod/v4/seasonsByTeam/"+e.team);for(let r=0;r<i.data.seasons[e.season].games.length;r++){const l=Math.floor(Math.random()*i.data.seasons[e.season].games[r].info_thumbnails.images.background_default_games.length);n={photo_profile:"https://az755631.vo.msecnd.net/teams-150/"+i.data.seasons[e.season].games[r].visiting_team+".png",team_logo:"https://az755631.vo.msecnd.net/teams-150/"+i.data.seasons[e.season].games[r].home_team+".png",player_name:i.data.seasons[e.season].games[r].home_team_acronym+" "+i.data.seasons[e.season].games[r].home_team_score+" : "+i.data.seasons[e.season].games[r].visiting_team_score+" "+i.data.seasons[e.season].games[r].visiting_team_acronym,team_id:i.data.seasons[e.season].games[r].game_id,team_id_b:i.data.seasons[e.season].games[r].home_team,season_id:i.data.seasons[e.season].games[r].season_id,name:"",category:0,colorfont_home:i.data.best_plays[r].info_thumbnails.home_colors.colors.font_color,colorfont_away:i.data.best_plays[r].info_thumbnails.away_colors.colors.font_color,game_id:i.data.seasons[e.season].games[r].game_id,seasonname:i.data.seasons[e.season].name,match:i.data.seasons[e.season].games[r].matchday_name.replace("Matchday","Jor"),score:i.data.seasons[e.season].games[r].home_team_score+" : "+i.data.seasons[e.season].games[r].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.seasons[e.season].games[r].info_thumbnails.images.background_default_games[l],backgroundhome:i.data.seasons[e.season].games[r].info_thumbnails.home_colors.background_color,backgroundaway:i.data.seasons[e.season].games[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.seasons[e.season].games[r].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+i.data.seasons[e.season].games[r].visiting_team+".png",total:i.data.seasons[e.season].games[r].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+i.data.seasons[e.season].games[r].home_team+"_"+i.data.seasons[e.season].games[r].season_id+"_r1.jpg"},t.push(n)}}if(this.type==11){const 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++)Math.floor(Math.random()*i.data.seasons[e.season].games_played[r].info_thumbnails.images.background_default_games.length),n={category:0,player_id:e.player,team_id:i.data.team_id,game_id:i.data.seasons[e.season].games_played[r].game_id,position_id:i.data.position_id,color:i.data.info_thumbnails.colors.background_color,photo_profile:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.info_thumbnails.images.player_in_action[0],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_b:i.data.seasons[e.season].games_played[r].home_team,season_id:i.data.seasons[e.season].games_played[r].season_id,name:i.data.seasons[e.season].games_played[r].player_name,seasonname:i.data.seasons[e.season].name,match:i.data.seasons[e.season].games_played[r].matchday_name.replace("Matchday","Jor"),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,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"},t.push(n)}if(this.type==12){const i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/categories/"+e.category);for(let r=0;r<i.data.length;r++)for(let l=0;l<i.data[r].best_plays.length;l++)n={category:i.data[r].best_plays[l].categories,game_id:i.data[r].best_plays[l].game_id,season_id:i.data[r].season_id,backgroundhome:i.data[r].best_plays[l].info_thumbnails.home_colors.background_color,backgroundaway:i.data[r].best_plays[l].info_thumbnails.away_colors.background_color,colorfont_home:i.data[r].best_plays[l].info_thumbnails.home_colors.font_color,colorfont_away:i.data[r].best_plays[l].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+i.data[r].best_plays[l].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+i.data[r].best_plays[l].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data[r].best_plays[l].info_thumbnails.images.background_default_categories[0],match:"",scorehome:i.data[r].best_plays[l].score[0],scoreaway:i.data[r].best_plays[l].score[1],seasonname:"",photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+i.data[r].best_plays[l].info_thumbnails.player_logo,score:i.data[r].best_plays[l].score[0]+" : "+i.data[r].best_plays[l].score[1]},t.push(n)}if(this.type==13){const i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/categories/"+e.category);for(let r=0;r<i.data.length;r++)for(let l=0;l<i.data[r].best_plays.length;l++)n={category:i.data[r].best_plays[l].categories,game_id:i.data[r].best_plays[l].game_id,season_id:i.data[r].season_id,backgroundhome:i.data[r].best_plays[l].info_thumbnails.home_colors.background_color,backgroundaway:i.data[r].best_plays[l].info_thumbnails.away_colors.background_color,colorfont_home:i.data[r].best_plays[l].info_thumbnails.home_colors.font_color,colorfont_away:i.data[r].best_plays[l].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+i.data[r].best_plays[l].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+i.data[r].best_plays[l].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data[r].best_plays[l].info_thumbnails.images.background_default_categories[0],match:"",scorehome:i.data[r].best_plays[l].score[0],scoreaway:i.data[r].best_plays[l].score[1],seasonname:"",photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+i.data[r].best_plays[l].info_thumbnails.player_logo,score:i.data[r].best_plays[l].score[0]+" : "+i.data[r].best_plays[l].score[1]},t.push(n)}if(this.type==14&&(t=[],e.season)){if(this.lastseason!=e.season){const i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/categories/"+e.category);this.flagGames=[],this.arrayMatchdays=[];for(let r=0;r<i.data.length;r++)for(let l=0;l<i.data[r].best_plays.length;l++)i.data[r].best_plays[l].score[0]==0&&i.data[r].best_plays[l].score[1]==0||(n={category:i.data[r].best_plays[l].categories,game_id:i.data[r].best_plays[l].game_id,plays_status:i.data[r].best_plays[l].plays_status,season_id:i.data[r].season_id,backgroundhome:i.data[r].best_plays[l].info_thumbnails.home_colors.background_color,backgroundaway:i.data[r].best_plays[l].info_thumbnails.away_colors.background_color,colorfont_home:i.data[r].best_plays[l].info_thumbnails.home_colors.font_color,date_time:new Date(i.data[r].best_plays[l].date_time_utc).valueOf(),colorfont_away:i.data[r].best_plays[l].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+i.data[r].best_plays[l].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+i.data[r].best_plays[l].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data[r].best_plays[l].info_thumbnails.images.background_default_categories[0],match:"",scorehome:i.data[r].best_plays[l].score[0],scoreaway:i.data[r].best_plays[l].score[1],seasonname:"",photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+i.data[r].best_plays[l].info_thumbnails.player_logo,score:i.data[r].best_plays[l].score[0]+" : "+i.data[r].best_plays[l].score[1],matchday_id:i.data[r].best_plays[l].matchday_id},this.arrayMatchdays[i.data[r].best_plays[l].matchday_id]?this.flagGames.includes(n.game_id)||(this.arrayMatchdays[i.data[r].best_plays[l].matchday_id].push(n),this.flagGames.push(n.game_id)):(this.arrayMatchdays[i.data[r].best_plays[l].matchday_id]=[],this.flagGames.includes(n.game_id)||(this.arrayMatchdays[i.data[r].best_plays[l].matchday_id].push(n),this.flagGames.push(n.game_id))));t=this.arrayMatchdays[this.matchdayView]?this.arrayMatchdays[this.matchdayView].sort((r,l)=>r.date_time-l.date_time):[]}else t=this.arrayMatchdays[this.matchdayView]?this.arrayMatchdays[this.matchdayView].sort((i,r)=>i.date_time-r.date_time):[];this.lastseason=e.season}this.printData=t}},async created(){}},Rc=()=>{o.useCssVars(e=>({"0c805cc5":e.backgroundColor}))},Lc=di.setup;di.setup=Lc?(e,a)=>(Rc(),Lc(e,a)):Rc;function V4(e,a,t,n,s,i){const r=o.resolveComponent("GSCThumbnailCategory"),l=o.resolveComponent("GSCThumbnailCategoryTeam"),u=o.resolveComponent("GSCThumbnailCategoryTeamAway"),c=o.resolveComponent("GSCThumbnailHighlightGamePlayer"),m=o.resolveComponent("GSCThumbnailHighlightGameHistoric"),h=o.resolveComponent("GSCThumbnailSummaryPlayer"),f=o.resolveComponent("GSCSlider");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(e.$style.ptg),ref:"ptgDiv"},[o.createElementVNode("div",{class:o.normalizeClass(i.ptgtitleClass)},o.toDisplayString(t.title),3),o.createVNode(f,{backgroundColor:t.backgroundColor,pxScroll:t.pxScroll,arrows:t.arrows,arrowsScrollHide:t.arrowsScrollHide,arrowsHideOnNoScroll:t.arrowsHideOnNoScroll,arrowsColor:t.arrowsColor,arrowsHeight:t.arrowsWidth,arrowsWidth:t.arrowsWidth,arrowsPadding:t.arrowsPadding,arrowsMargin:t.arrowsMargin,arrowsRadius:t.arrowsRadius,arrowsBorder:t.arrowsBorder,arrowsBackground:t.arrowsBackground,arrowsContainerBgL:t.arrowsContainerBgL,arrowsContainerBgR:t.arrowsContainerBgR,scrollColor:t.scrollColor,arrowsPosition:t.arrowsPosition,height:t.height},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.printData,(d,p)=>(o.openBlock(),o.createElementBlock("div",{key:p,class:o.normalizeClass(i.pgtcontainercardClass),style:o.normalizeStyle(p==0?"margin-left: 0px !important; color: white;":"")},[t.type==2?(o.openBlock(),o.createBlock(r,{key:0,"color-background-home":d.color,"name-player":t.data.player_name,"type-img":"0",background:d.background_action,"name-category":d.player_name,"logo-home":d.team_logo,onOnclickPlayVideos:g=>i.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"])):t.type==1||t.type==4?(o.openBlock(),o.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:g=>i.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"])):t.type==5?(o.openBlock(),o.createBlock(u,{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:g=>i.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"])):t.type==0?(o.openBlock(),o.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:g=>i.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"])):t.type==6?(o.openBlock(),o.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:g=>i.onclickPlayVideos({data:d,type:3,categories:s.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"])):t.type==7?(o.openBlock(),o.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:g=>i.onclickPlayVideos({data:d,type:3,categories:s.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"])):t.type==8?(o.openBlock(),o.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:g=>i.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"])):t.type==9?(o.openBlock(),o.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:g=>i.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"])):t.type==10?(o.openBlock(),o.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:g=>i.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"])):t.type==11?(o.openBlock(),o.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:g=>i.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"])):t.type==12?(o.openBlock(),o.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:g=>i.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"])):t.type==13?(o.openBlock(),o.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:g=>i.onclickPlayVideos({data:d,type:1,categories:s.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.type==14?(o.openBlock(),o.createBlock(c,{key:12,items:d,type:2,"play-status":d.plays_status?d.plays_status:0,"name-category":"GOLES","color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,onOnclickPlayVideos:g=>i.onclickPlayVideos({data:d,type:1,categories:s.goalCategories}),background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,matchday:d.match,"score-home":d.scorehome,showimg:!1,"photo-profile":d.photo_profile,"score-away":d.scoreaway,"season-name":d.seasonname},null,8,["items","play-status","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.openBlock(),o.createBlock(h,{key:13,type:"player","color-background-home":d.colorbackgroundhome,"color-background-away":d.colorbackgroundaway,"name-player":d.nameplayer,"type-img":0,onOnclickPlayVideos:g=>i.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 $4={name:"DiscoverVideos",components:{GscSwitchComponent:Ua,GSCPlayerTeamGame:yt(di,[["render",V4],["__cssModules",{$style:A4}]]),GSCButton:jr,MatchDayPicker:Fr},props:{componentWidth:{type:Number,default:768,validator(e){return e>0}},myTournament:{type:Number,default:1},videoType:{type:Number,default:1},isplayer:{type:Boolean,default:!1},team:{type:Number,default:0},player:{type:Number,default:0},user:{type:Object,default:()=>{}},nextRivalTeam:{type:Object,default:()=>{}},tournamentSelected:{type:Object,default:()=>{}},defaultMatchDayKey:{type:String,default:""},isLeagueSelected:{type:Boolean,default:!1},isFull:{type:Boolean,default:!1},tournamentScheduleKeys:{type:Array,default:()=>[]},seasonSelected:{type:Object,default:()=>{}}},watch:{tournamentSelected:{immediate:!0,deep:!1,async handler(e){this.myTournament!==e.id?this.currentTabMoreVideos="Goles":this.currentTabMoreVideos="Goles"}},closestRound(e){this.selectedRoundKeyIndex=this.tournamentScheduleKeys.findIndex(a=>a===e),this.selectedRound=e},activeDropGoals:{handler(e){e&&(this.matchDayPickerKey+=1)},immediate:!0}},data(){return{currentTabMoreVideos:"Resumen",currentMobileTab:"Descubre videos",mobileClass:!1,activeDropGoals:!1,matchdayActive:{},resumeCategory:1000001,goalsCategory:1255e3,resumeType:1,goalsType:2,matchDayPickerKey:0}},mounted(){this.mobileClass=window.innerWidth<768,window.addEventListener("resize",this.handleResize)},methods:{onChangeMatchDay(e){this.matchdayActive=e,this.$emit("change-match-day",e)},handleResize(){this.mobileClass=window.innerWidth<768},onOpenMedia(e){this.$emit("openmedia",e)},onClickOpenMedia(){let t=1,n=[],s=[],i=0,r=this.user.season,l=[],u=[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?(r=this.seasonSelected.id,this.user.is_goalkeeper?(n=[this.user.player],l=m,t=2):this.user.is_player?(s=[this.user.player],l=c,t=2):(i=this.user.team,l=u,t=3)):(l=u,t=1);const h={type:0,seasonId:r,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:t,gameIds:null,playerIds:s,goalkeeperIds:n,categoryIds:l,teamId:i,matchResult:[1,2,3],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:""},objectPlaySync:null};this.$emit("openmedia",h)}}},I4=e=>(o.pushScopeId("data-v-26338754"),e=e(),o.popScopeId(),e),P4={class:"discover-videos",ref:"discoverVideosRef"},R4={class:"title-and-button"},L4=I4(()=>o.createElementVNode("div",{class:"title-value"},"Videos",-1)),z4={class:"calendar-container"},F4={class:"drop-down-innercontainer-text"},M4={class:"drop-down-innercontainer-arrow"};function D4(e,a,t,n,s,i){const r=o.resolveComponent("GscSwitchComponent"),l=o.resolveComponent("GSCButton"),u=o.resolveComponent("MatchDayPicker"),c=o.resolveComponent("GSCPlayerTeamGame");return o.openBlock(),o.createElementBlock("div",P4,[o.createElementVNode("div",R4,[o.createElementVNode("div",{class:o.normalizeClass(t.componentWidth>900?"menu-container":"menu-container-movil")},[L4,t.myTournament===t.tournamentSelected.id?(o.openBlock(),o.createBlock(r,{key:0,style:o.normalizeStyle(t.componentWidth>900?"margin-left: 45px":""),buttons:["Goles","Resumen","Proximo rival"],onInput:a[0]||(a[0]=m=>s.currentTabMoreVideos=m),background:"trasparent",height:"28px",width:"140px","font-size":t.componentWidth>900?"14px":"12px","font-family":"Poppins-Light",backgroundOptionActive:"transparent",borderWidth:"2px",type:2,arrow:!1,selectedOption:s.currentTabMoreVideos,onOpenmedia:i.onOpenMedia},null,8,["style","font-size","selectedOption","onOpenmedia"])):o.createCommentVNode("",!0)],2),o.createElementVNode("div",{class:o.normalizeClass(t.componentWidth>900?"btn-search-videos":"btn-search-videos-movil")},[o.createVNode(l,{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:i.onClickOpenMedia},null,8,["onClick"])],2)]),s.currentTabMoreVideos=="Goles"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",z4,[o.createElementVNode("div",{class:"drop-down-innercontainer",onClick:a[1]||(a[1]=m=>s.activeDropGoals=!s.activeDropGoals)},[o.createElementVNode("div",F4,[o.createTextVNode(" Jornada "),Object.keys(s.matchdayActive).length>0?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(s.matchdayActive.valueText),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(t.defaultMatchDayKey),1)],64))]),o.createElementVNode("div",M4,[o.createElementVNode("img",{width:"18",style:o.normalizeStyle(s.activeDropGoals?"":"transform: rotate(180deg);"),src:"http://golstatsimages.blob.core.windows.net/images-library/icn-arrow-collapse@2x.png"},null,4)])]),o.withDirectives((o.openBlock(),o.createBlock(u,{height:"48px","margin-top":"5px","disable-matchdays":!0,"match-days":t.tournamentScheduleKeys,"is-landing-mode":!1,"items-to-show":9,"items-to-scroll":9,"default-match-day-key":t.defaultMatchDayKey,key:s.matchDayPickerKey,onChangeMatchDay:i.onChangeMatchDay},null,8,["match-days","default-match-day-key","onChangeMatchDay"])),[[o.vShow,(t.isLeagueSelected||s.currentTabMoreVideos=="Goles")&&t.tournamentScheduleKeys&&t.tournamentScheduleKeys.length&&s.activeDropGoals]])]),o.createVNode(c,{style:{"margin-top":"-30px"},type:14,data:{season:t.seasonSelected.id,category:s.goalsCategory},width:"100%","matchday-view":Object.keys(s.matchdayActive).length>0?s.matchdayActive.matchDayId:t.defaultMatchDayKey,backgroundColor:"transparent",title:"",onOpenmedia:i.onOpenMedia},null,8,["data","matchday-view","onOpenmedia"])],64)):o.createCommentVNode("",!0),s.currentTabMoreVideos=="Resumen"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[t.isplayer?(o.openBlock(),o.createBlock(c,{key:1,type:8,title:"",style:{"margin-top":"-30px"},backgroundColor:"transparent",data:{season:t.seasonSelected.id,player:t.player,category:1000001},width:"100%",onOpenmedia:i.onOpenMedia},null,8,["data","onOpenmedia"])):(o.openBlock(),o.createBlock(c,{key:0,type:7,title:"",style:{"margin-top":"-30px"},backgroundColor:"transparent",data:{season:t.seasonSelected.id,team:t.team,category:s.resumeCategory},width:"100%",onOpenmedia:i.onOpenMedia},null,8,["data","onOpenmedia"]))],64)):o.createCommentVNode("",!0),s.currentTabMoreVideos=="Proximo rival"?(o.openBlock(),o.createBlock(c,{key:2,type:7,style:{"margin-top":"-30px"},title:"",backgroundColor:"transparent",data:{season:t.seasonSelected.id,team:t.nextRivalTeam.id,category:s.resumeCategory},width:"100%",onOpenmedia:i.onOpenMedia},null,8,["data","onOpenmedia"])):o.createCommentVNode("",!0)],512)}const j4={components:{GSCSeasonSelect:bk,GSCTournamentSelect:K_,GSCGames:P2,GSCGridTeamsMatches:Nm,GSCPlayersLanding:Sm,GSCTops:Pw,GSCTableCalendar:bb,DiscoverVideos:Ne($4,[["render",D4],["__scopeId","data-v-26338754"]]),CarouselFullScreen:E_},setup(){const e=o.ref("landingref"),{elementSize:a}=Kd(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},latestRound(e){this.selectedRoundKeyIndexVideo=this.tournamentScheduleKeysGoals.findIndex(a=>a===e),this.selectedRoundVideos=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}},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},data(){return{isCarouselFullScreenVisible:!1,carouselPlayerQueue:[],gameEventsUrl:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",defaultGameId:0,lastSeasonsIds:[],gamesPages:new Map,selectedRoundKeyIndex:0,selectedRoundKeyIndexVideo:0,selectedRound:"0",selectedRoundVideos:"0",isLeagueSelected:!1,fullTournamentScheduleFull:[],fullTournamentScheduleFullGoals:[],defaultMatchDayKey:null,isCupTournament:!1,retries:3,userTeamGames:[],isCupLegacyTournament:!1,tournamentScheduleKeys:[],tournamentScheduleKeysGoals:[],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}},computed:{games(){if(this.tournamentSelected.id===this.user.tournament&&!this.isLeagueSelected)return this.fullTournamentSchedule;{const e=this.gamesPages.get(this.selectedRound);return e?e[0]:[]}},latestRound(){return this.userTeamGames&&this.userTeamGames.length&&this.fullTournamentScheduleFullGoals&&this.fullTournamentScheduleFullGoals.length?this.getUserTeamClosestRound(this.fullTournamentScheduleFullGoals):this.getNormalClosestRound(this.fullTournamentScheduleFullGoals)},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 t="",n="";return a[1]?(n=a[1].trim().split(" "),n[0]?t=n[0]:t=a[1]):a[0]&&(n=a[0].trim().split(" "),n[0]?t=n[0]:t=a[0]),t.trim()},async fetchGameEvents(e){try{const{data:{plays:a}}=await re.get(`${this.gameEventsUrl}${e}`,{headers:{Authorization:`${this.token}`}});return a}catch(a){throw new Error(a)}},async onClickOpenCarouselVideos(e){try{const a=await this.fetchGameEvents(e);this.carouselPlayerQueue=a.filter(t=>t.event_type_id===1&&t.video_link!=="-"),this.isCarouselFullScreenVisible=!0}catch(a){throw new Error(a)}},onChangeMatchDayGames(e){this.selectedRound!==e.key&&(this.selectedRound=e.key)},onClickCloseCarousel(){this.carouselPlayerQueue=[],this.isCarouselFullScreenVisible=!1},onChangeIsLeagueSelected(e){this.isLeagueSelected=e},onAction(e){this.$emit("action",e)},onOpenMedia(e){e.type===1&&e.gameIds&&e.gameIds.length>0?this.onClickOpenCarouselVideos(e.gameIds[0]):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 t=a.map(s=>`seasons=${s.id}`).join("&"),n=re.create({headers:{Authorization:`${this.token}`}});this.fullTournamentSchedule=await n.get(this.gamesUrl+e+"?"+t),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(t=>({id:t.id,type:t.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.createFullTournamentScheme(a,!1),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 re.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,t=""){let n=t;try{n||(n=this.gamesUrl2,e.forEach((l,u)=>{n+=`${u===0?"":"&"}seasons=${l}`}));const s=re.create({headers:{Authorization:`${this.token}`}}),{data:{data:i,teams:r}}=await s.get(n);return{seasonsAndGames:i,seasonsAndTeams:r}}catch(s){if(a>0)return this.fetchSeasonsGamesAndTeams(e,a-1,n);throw new Error(s)}},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 t=0;const{seasonsAndGames:n,seasonsAndTeams:s}=await this.fetchSeasonsGamesAndTeams(e.map(m=>m.id),3);if(a&&this.areSeasonsDifferent(n))return;n.forEach(m=>{const{type:h}=e.find(f=>f.id===m.season_id);m.type=h,m.games.forEach(f=>{f.season_id=m.season_id}),h===0&&(t=m.season_id)});const i={seasonsGames:n},{teams:r}=s.find(m=>m.season_id===t),l=[...i.seasonsGames],u=i&&i.seasonsGames?i.seasonsGames.map(m=>{const h=m.games.reduce((f,d)=>{const p={...d};return p.dateTimeMillis=new Date(p.date_time_utc).valueOf(),p.home_team=r.find(g=>g.team_id===d.home_team),p.visiting_team=r.find(g=>g.team_id===d.visiting_team),f[d.matchday_abbreviation]?f[d.matchday_abbreviation][d.game_status===3?"canceled":d.date]?f[d.matchday_abbreviation][d.game_status===3?"canceled":d.date].push(p):f[d.matchday_abbreviation][d.game_status===3?"canceled":d.date]=[p]:f[d.matchday_abbreviation]={[d.game_status===3?"canceled":d.date]:[p]},this.gsData&&this.gsData.teamId&&p.game_status===4&&(p.home_team.team_id===this.gsData.teamId||p.visiting_team.team_id===this.gsData.teamId)&&this.userTeamGames.push(p),f},{});this.userTeamGames.sort((f,d)=>f.dateTimeMillis-d.dateTimeMillis);for(let[f,d]of Object.entries(h))h[f]=Object.entries(d).map(([p,g])=>({date:p,games:g.sort((b,S)=>b.dateTimeMillis-S.dateTimeMillis)})),h[f].sort((p,g)=>p.date<g.date?-1:p.date>g.date?1:0);return{type:m.type,weight:m.type===0?0:m.type===2?1:2,schedule:h}}):[],c=i&&i.seasonsGames?l.map(m=>{const h=m.games.reduce((f,d)=>{const p={...d};return p.dateTimeMillis=new Date(p.date_time_utc).valueOf(),p.home_team=r.find(g=>g.team_id===d.home_team),p.visiting_team=r.find(g=>g.team_id===d.visiting_team),f[d.matchday_abbreviation]?f[d.matchday_abbreviation][d.game_status===3?"canceled":d.date]?(p.game_status!=4||p.is_live==1)&&(p.score[0]!=0||p.score[1]!=0)&&f[d.matchday_abbreviation][d.game_status===3?"canceled":d.date].push(p):(p.game_status!=4||p.is_live==1)&&(p.score[0]!=0||p.score[1]!=0)&&(f[d.matchday_abbreviation][d.game_status===3?"canceled":d.date]=[p]):(p.game_status!=4||p.is_live==1)&&(p.score[0]!=0||p.score[1]!=0)&&(f[d.matchday_abbreviation]={[d.game_status===3?"canceled":d.date]:[p]}),f},{});this.userTeamGames.sort((f,d)=>f.dateTimeMillis-d.dateTimeMillis);for(let[f,d]of Object.entries(h))h[f]=Object.entries(d).map(([p,g])=>({date:p,games:g.sort((b,S)=>b.dateTimeMillis-S.dateTimeMillis)})),h[f].sort((p,g)=>p.date<g.date?-1:p.date>g.date?1:0);return{type:m.type,weight:m.type===0?0:m.type===2?1:2,schedule:h}}):[];u.sort((m,h)=>m.weight-h.weight),this.fullTournamentScheduleFull=u.reduce((m,h)=>{for(const[f,d]of Object.entries(h.schedule))if(h.type===0)if(this.isCup){const p=f.replace("M",""),g=`Jornada ${p}`;this.isCupLegacy?m[$l[p]||g]=d:m[Vl[f]||g]=d}else m[Number(f.replace("M","")).toString()]=d;else h.type===2?["PI1","PI2"].includes(f)?m[f]=d:m[`R${Number(f.replace("PO",""))}`]=d:h.type===1&&(m[Al[f]]=d);return m},{}),this.fullTournamentScheduleFullGoals=c.reduce((m,h)=>{for(const[f,d]of Object.entries(h.schedule))if(h.type===0)if(this.isCup){const p=f.replace("M",""),g=`Jornada ${p}`;this.isCupLegacy?m[$l[p]||g]=d:m[Vl[f]||g]=myArray}else m[Number(f.replace("M","")).toString()]=d;else h.type===2?["PI1","PI2"].includes(f)?m[f]=d:m[`R${Number(f.replace("PO",""))}`]=d:h.type===1&&(m[Al[f]]=d);return m},{}),this.tournamentScheduleKeys=Array.from(Object.entries(this.fullTournamentScheduleFull).reduce((m,[h,f])=>{const d=Number(h);let p="";Number.isNaN(d)?p=h:p=d<10?`0${d}`:h;let g=!1,b=null;const S=f.reduce((O,L)=>(!b&&L&&L.games&&L.games.length&&(b=L.games[0].matchday_id),L.games.forEach(H=>{H.roundAbbreviation=Number.isNaN(d)?d:`J ${d}`}),O=O.concat(L.games),O),[]);for(let O=0;O<S.length;O++)(S[O].game_status!=4||S[O].is_live)&&(S[O].score[0]!=0||S[O].score[1]!=0)&&(g=!0);m.set(h,{key:h,value:d,valueText:p,avaible:g,matchDayId:b});const _=this.getPages(S);return this.gamesPages.set(h,_),m},new Map).values()),this.tournamentScheduleKeysGoals=Array.from(Object.entries(this.fullTournamentScheduleFullGoals).reduce((m,[h,f])=>{const d=Number(h);let p="";Number.isNaN(d)?p=h:p=d<10?`0${d}`:h;let g=!1;const b=f.reduce((_,O)=>(O.games.forEach(L=>{L.roundAbbreviation=Number.isNaN(d)?d:`J ${d}`}),_=_.concat(O.games),_),[]);for(let _=0;_<b.length;_++)(b[_].game_status!=4||b[_].is_live&&(b[_].score[0]!=0||b[_].score[1]!=0))&&(g=!0);m.set(h,{key:h,value:d,valueText:p,avaible:g});const S=this.getPages(b);return this.gamesPages.set(h,S),m},new Map).values())}catch(t){throw new Error(t)}finally{this.loadingFlag=!1}},getPages(e){const a=[];if(this.gamesPerMatchDay>0){let t=[];e.forEach((n,s)=>{t.push(n),(s+1)%this.gamesPerMatchDay===0&&(a.push([...t]),t=[])}),t.length&&a.push([...t])}else a.push(e);return a},getNormalClosestRound(e){const t=Object.entries(Object.entries(e).reduce((i,[r,l])=>(i[r]=[],l.forEach(u=>{u.games.forEach(c=>{const m=new Date(c.date_time_utc).getTime()+66e5;i[r].push(m)})}),i),{}));if(!t.length)return"1";const n=new Date().getTime(),s=t.reduce((i,[r,l])=>{let u=null;return l.forEach(c=>{const m=c-n;m>=0&&(u===null||m<u)&&(u=m)}),u&&(i.shortestTime===null||u<i.shortestTime)&&(i.round=r,i.shortestTime=u),i},{round:"",shortestTime:null});return s.shortestTime!==null?s.round:t[t.length-1][0]},getUserTeamClosestRound(e){let a=1;if(this.userTeamGames.length){const t=this.userTeamGames[0];for(const[n,s]of Object.entries(e))for(const i of s)if(i.games.find(l=>l.game_id===t.game_id))return n}return a}},async created(){}},W4=e=>(o.pushScopeId("data-v-c2127a95"),e=e(),o.popScopeId(),e),U4={class:"gsclanding",ref:"landingref"},H4={key:1,class:"container-selectors-mobile"},G4={class:"container-selectors-mobile-tournament"},q4={class:"container-selectors-mobile-season"},J4={key:0,class:"home-item-movil"},K4=W4(()=>o.createElementVNode("div",{class:"home-movil"},"Inicio",-1)),Z4={class:"name-user-movil"},X4={key:1,class:"home-item"},Y4={key:2,class:"bar-settings"},Q4={class:"name-user"},e3={class:"container-selectors"},t3={class:"selector-tournament"},o3={class:"selector-seasons"},a3={key:3,class:"container-games"},n3={class:"container-vr"},i3={key:4,class:"container-players"},s3={class:"container-tops"};function r3(e,a,t,n,s,i){const r=o.resolveComponent("CarouselFullScreen"),l=o.resolveComponent("GSCTournamentSelect"),u=o.resolveComponent("GSCSeasonSelect"),c=o.resolveComponent("GSCGames"),m=o.resolveComponent("DiscoverVideos"),h=o.resolveComponent("GSCGridTeamsMatches"),f=o.resolveComponent("GSCTableCalendar"),d=o.resolveComponent("GSCPlayersLanding"),p=o.resolveComponent("GSCTops");return o.openBlock(),o.createElementBlock("div",U4,[s.isCarouselFullScreenVisible?(o.openBlock(),o.createBlock(r,{key:0,"player-queue":s.carouselPlayerQueue,"playlist-index":0,onClose:i.onClickCloseCarousel},null,8,["player-queue","onClose"])):o.createCommentVNode("",!0),n.elementSize.width<=680?(o.openBlock(),o.createElementBlock("div",H4,[o.createElementVNode("div",G4,[o.createVNode(l,{"current-season-id":t.currentSeasonId,width:"100%",onInput:i.onInputTournament},null,8,["current-season-id","onInput"])]),o.createElementVNode("div",q4,[o.createVNode(u,{"current-season-id":t.currentSeasonId,width:"100%",seasons:s.tournamentSelectedDropDowns.seasons,onInput:i.onInputSeason},null,8,["current-season-id","seasons","onInput"])])])):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass(i.containerbackground)},[o.createElementVNode("div",{class:o.normalizeClass(i.containerdata)},[n.elementSize.width<=680?(o.openBlock(),o.createElementBlock("div",J4,[K4,o.createElementVNode("div",Z4,"Bienvenido "+o.toDisplayString(i.formatUsername(t.user.name)),1)])):o.createCommentVNode("",!0),n.elementSize.width>680?(o.openBlock(),o.createElementBlock("div",X4,"Inicio")):o.createCommentVNode("",!0),n.elementSize.width>680?(o.openBlock(),o.createElementBlock("div",Y4,[o.createElementVNode("div",Q4,"Bienvenido "+o.toDisplayString(i.formatUsername(t.user.name)),1),o.createElementVNode("div",e3,[o.createElementVNode("div",t3,[o.createVNode(l,{"current-season-id":t.currentSeasonId,onInput:i.onInputTournament},null,8,["current-season-id","onInput"])]),o.createElementVNode("div",o3,[o.createVNode(u,{"current-season-id":t.currentSeasonId,seasons:s.tournamentSelectedDropDowns.seasons,onInput:i.onInputSeason},null,8,["current-season-id","seasons","onInput"])])])])):o.createCommentVNode("",!0),Object.keys(s.tournamentSelected).length>0?(o.openBlock(),o.createElementBlock("div",a3,[o.createVNode(c,{"component-width":n.elementSize.width,isplayer:t.isplayer,"is-full":s.tournamentSelected.id!=t.user.tournament,data:i.games,"tournament-schedule-keys":s.tournamentScheduleKeys,"default-match-day-key":s.selectedRound,onClickCalendar:i.onClickCalendar,onClickMatch:i.onClickMatch,onChangeMatchDay:i.onChangeMatchDayGames,onChangeIsLeagueSelected:i.onChangeIsLeagueSelected},null,8,["component-width","isplayer","is-full","data","tournament-schedule-keys","default-match-day-key","onClickCalendar","onClickMatch","onChangeMatchDay","onChangeIsLeagueSelected"])])):o.createCommentVNode("",!0),o.createElementVNode("div",n3,[o.createVNode(m,{"component-width":n.elementSize.width,onOpenmedia:i.onOpenMedia,videoType:s.tournamentSelected.id==t.user.tournament?s.resumeType:s.goalsType,team:t.team,player:t.user.player,isplayer:t.isplayer,"is-full":s.tournamentSelected.id!=t.user.tournament,"is-league-selected":s.tournamentSelected.id!=t.user.tournament,nextRivalTeam:s.tournamentSelected.id==t.user.tournament&&s.nextRivalId!=0?{id:s.nextRivalId}:0,user:t.user,"tournament-schedule-keys":s.tournamentScheduleKeys,"default-match-day-key":i.latestRound,seasonSelected:s.seasonSelected,tournamentSelected:s.tournamentSelected,myTournament:t.user.tournament},null,8,["component-width","onOpenmedia","videoType","team","player","isplayer","is-full","is-league-selected","nextRivalTeam","user","tournament-schedule-keys","default-match-day-key","seasonSelected","tournamentSelected","myTournament"])]),o.createElementVNode("div",{class:o.normalizeClass(i.containerGridCalendarTable)},[o.createElementVNode("div",{class:"container-grid",style:o.normalizeStyle(n.elementSize.width<1e3?"width: 100%":"")},[o.createVNode(h,{isPlayer:t.isplayer?s.tournamentSelected.id==t.user.tournament:!1,"player-id":t.user.player,"team-id":t.user.team,"season-selected":s.seasonSelected.id,"next-rival-id":Object.keys(s.fullTournamentSchedule).length>0?t.user.team==s.fullTournamentSchedule.data.prematch.home_team?s.fullTournamentSchedule.data.prematch.visiting_team:s.fullTournamentSchedule.data.prematch.home_team:0,"team-img":"https://az755631.vo.msecnd.net/teams-150/"+t.user.team+".png","player-img":"https://az755631.vo.msecnd.net/players-profile/"+t.user.player+".png","rival-img":Object.keys(s.fullTournamentSchedule).length>0?t.user.team==s.fullTournamentSchedule.data.prematch.home_team?"https://az755631.vo.msecnd.net/teams-150/"+s.fullTournamentSchedule.data.prematch.visiting_team+".png":"https://az755631.vo.msecnd.net/teams-150/"+s.fullTournamentSchedule.data.prematch.home_team+".png":"","has-team":t.isplayer?!1:s.tournamentSelected.id==t.user.tournament,"component-width":n.elementSize.width,onAction:i.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),o.createElementVNode("div",{class:"container-calendar-table",style:o.normalizeStyle(n.elementSize.width<1e3?"width: 100%; margin-top: 30px;":"")},[o.createVNode(f,{onAction:i.onAction,season:s.seasonSelected,seasons:s.seasonsSelected,onOpenmedia:i.onOpenMedia,onOnOpenProfile:i.onOpenProfile,componentWidth:n.elementSize.width},null,8,["onAction","season","seasons","onOpenmedia","onOnOpenProfile","componentWidth"])],4)],2),s.tournamentSelected.id==t.user.tournament?o.withDirectives((o.openBlock(),o.createElementBlock("div",i3,[o.createVNode(d,{onClickProfileBtn:i.clickProfileBtn,onViewAll:i.viewAll,onTotalPlayers:i.getTotalPlayers,"team-id":t.user.team,"season-id":s.seasonSelected.id,"is-player":t.user.player!=0},null,8,["onClickProfileBtn","onViewAll","onTotalPlayers","team-id","season-id","is-player"])],512)),[[o.vShow,s.playersLength>0]]):o.createCommentVNode("",!0),o.createElementVNode("div",s3,[o.createVNode(p,{onMore:i.moreTops,"show-switch":s.tournamentSelected.id==t.user.tournament,season:s.seasonSelected.id,"team-id":t.user.team,onOpenmedia:i.onOpenMedia},null,8,["onMore","show-switch","season","team-id","onOpenmedia"])])],2)],2)],512)}const l3=Ne(j4,[["render",r3],["__scopeId","data-v-c2127a95"]]);pt.GSCLanding=l3,Object.defineProperty(pt,Symbol.toStringTag,{value:"Module"})});