@golstats/gsc-landing 1.0.34 → 1.0.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/gsc-landing.js +4856 -4715
- package/dist/gsc-landing.umd.cjs +23 -24
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/gsc-landing.umd.cjs
CHANGED
|
@@ -1,33 +1,32 @@
|
|
|
1
|
-
(function(ve,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(ve=typeof globalThis<"u"?globalThis:ve||self,t(ve.GSCLanding={},ve.Vue))})(this,function(ve,t){"use strict";function qa(e,a){return function(){return e.apply(a,arguments)}}const{toString:As}=Object.prototype,{getPrototypeOf:lo}=Object,wt=(e=>a=>{const o=As.call(a);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),ke=e=>(e=e.toLowerCase(),a=>wt(a)===e),_t=e=>a=>typeof a===e,{isArray:He}=Array,tt=_t("undefined");function zs(e){return e!==null&&!tt(e)&&e.constructor!==null&&!tt(e.constructor)&&le(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Za=ke("ArrayBuffer");function Rs(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&Za(e.buffer),a}const Is=_t("string"),le=_t("function"),Xa=_t("number"),St=e=>e!==null&&typeof e=="object",Fs=e=>e===!0||e===!1,kt=e=>{if(wt(e)!=="object")return!1;const a=lo(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Ps=ke("Date"),Ls=ke("File"),Ds=ke("Blob"),Ms=ke("FileList"),js=e=>St(e)&&le(e.pipe),vs=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||le(e.append)&&((a=wt(e))==="formdata"||a==="object"&&le(e.toString)&&e.toString()==="[object FormData]"))},Ws=ke("URLSearchParams"),Us=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ot(e,a,{allOwnKeys:o=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),He(e))for(n=0,i=e.length;n<i;n++)a.call(null,e[n],n,e);else{const r=o?Object.getOwnPropertyNames(e):Object.keys(e),s=r.length;let l;for(n=0;n<s;n++)l=r[n],a.call(null,e[l],l,e)}}function Ka(e,a){a=a.toLowerCase();const o=Object.keys(e);let n=o.length,i;for(;n-- >0;)if(i=o[n],a===i.toLowerCase())return i;return null}const Ya=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Qa=e=>!tt(e)&&e!==Ya;function co(){const{caseless:e}=Qa(this)&&this||{},a={},o=(n,i)=>{const r=e&&Ka(a,i)||i;kt(a[r])&&kt(n)?a[r]=co(a[r],n):kt(n)?a[r]=co({},n):He(n)?a[r]=n.slice():a[r]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&ot(arguments[n],o);return a}const Hs=(e,a,o,{allOwnKeys:n}={})=>(ot(a,(i,r)=>{o&&le(i)?e[r]=qa(i,o):e[r]=i},{allOwnKeys:n}),e),Gs=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Js=(e,a,o,n)=>{e.prototype=Object.create(a.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),o&&Object.assign(e.prototype,o)},qs=(e,a,o,n)=>{let i,r,s;const l={};if(a=a||{},e==null)return a;do{for(i=Object.getOwnPropertyNames(e),r=i.length;r-- >0;)s=i[r],(!n||n(s,e,a))&&!l[s]&&(a[s]=e[s],l[s]=!0);e=o!==!1&&lo(e)}while(e&&(!o||o(e,a))&&e!==Object.prototype);return a},Zs=(e,a,o)=>{e=String(e),(o===void 0||o>e.length)&&(o=e.length),o-=a.length;const n=e.indexOf(a,o);return n!==-1&&n===o},Xs=e=>{if(!e)return null;if(He(e))return e;let a=e.length;if(!Xa(a))return null;const o=new Array(a);for(;a-- >0;)o[a]=e[a];return o},Ks=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&lo(Uint8Array)),Ys=(e,a)=>{const n=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=n.next())&&!i.done;){const r=i.value;a.call(e,r[0],r[1])}},Qs=(e,a)=>{let o;const n=[];for(;(o=e.exec(a))!==null;)n.push(o);return n},el=ke("HTMLFormElement"),tl=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,n,i){return n.toUpperCase()+i}),en=(({hasOwnProperty:e})=>(a,o)=>e.call(a,o))(Object.prototype),ol=ke("RegExp"),tn=(e,a)=>{const o=Object.getOwnPropertyDescriptors(e),n={};ot(o,(i,r)=>{let s;(s=a(i,r,e))!==!1&&(n[r]=s||i)}),Object.defineProperties(e,n)},al=e=>{tn(e,(a,o)=>{if(le(e)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const n=e[o];if(le(n)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},nl=(e,a)=>{const o={},n=i=>{i.forEach(r=>{o[r]=!0})};return He(e)?n(e):n(String(e).split(a)),o},rl=()=>{},il=(e,a)=>(e=+e,Number.isFinite(e)?e:a),mo="abcdefghijklmnopqrstuvwxyz",on="0123456789",an={DIGIT:on,ALPHA:mo,ALPHA_DIGIT:mo+mo.toUpperCase()+on},sl=(e=16,a=an.ALPHA_DIGIT)=>{let o="";const{length:n}=a;for(;e--;)o+=a[Math.random()*n|0];return o};function ll(e){return!!(e&&le(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const cl=e=>{const a=new Array(10),o=(n,i)=>{if(St(n)){if(a.indexOf(n)>=0)return;if(!("toJSON"in n)){a[i]=n;const r=He(n)?[]:{};return ot(n,(s,l)=>{const p=o(s,i+1);!tt(p)&&(r[l]=p)}),a[i]=void 0,r}}return n};return o(e,0)},dl=ke("AsyncFunction"),w={isArray:He,isArrayBuffer:Za,isBuffer:zs,isFormData:vs,isArrayBufferView:Rs,isString:Is,isNumber:Xa,isBoolean:Fs,isObject:St,isPlainObject:kt,isUndefined:tt,isDate:Ps,isFile:Ls,isBlob:Ds,isRegExp:ol,isFunction:le,isStream:js,isURLSearchParams:Ws,isTypedArray:Ks,isFileList:Ms,forEach:ot,merge:co,extend:Hs,trim:Us,stripBOM:Gs,inherits:Js,toFlatObject:qs,kindOf:wt,kindOfTest:ke,endsWith:Zs,toArray:Xs,forEachEntry:Ys,matchAll:Qs,isHTMLForm:el,hasOwnProperty:en,hasOwnProp:en,reduceDescriptors:tn,freezeMethods:al,toObjectSet:nl,toCamelCase:tl,noop:rl,toFiniteNumber:il,findKey:Ka,global:Ya,isContextDefined:Qa,ALPHABET:an,generateString:sl,isSpecCompliantForm:ll,toJSONObject:cl,isAsyncFn:dl,isThenable:e=>e&&(St(e)||le(e))&&le(e.then)&&le(e.catch)};function I(e,a,o,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),o&&(this.config=o),n&&(this.request=n),i&&(this.response=i)}w.inherits(I,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:w.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const nn=I.prototype,rn={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{rn[e]={value:e}}),Object.defineProperties(I,rn),Object.defineProperty(nn,"isAxiosError",{value:!0}),I.from=(e,a,o,n,i,r)=>{const s=Object.create(nn);return w.toFlatObject(e,s,function(p){return p!==Error.prototype},l=>l!=="isAxiosError"),I.call(s,e.message,a,o,n,i),s.cause=e,s.name=e.name,r&&Object.assign(s,r),s};const ml=null;function po(e){return w.isPlainObject(e)||w.isArray(e)}function sn(e){return w.endsWith(e,"[]")?e.slice(0,-2):e}function ln(e,a,o){return e?e.concat(a).map(function(i,r){return i=sn(i),!o&&r?"["+i+"]":i}).join(o?".":""):a}function pl(e){return w.isArray(e)&&!e.some(po)}const ul=w.toFlatObject(w,{},null,function(a){return/^is[A-Z]/.test(a)});function Ct(e,a,o){if(!w.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,o=w.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,y){return!w.isUndefined(y[g])});const n=o.metaTokens,i=o.visitor||c,r=o.dots,s=o.indexes,p=(o.Blob||typeof Blob<"u"&&Blob)&&w.isSpecCompliantForm(a);if(!w.isFunction(i))throw new TypeError("visitor must be a function");function d(u){if(u===null)return"";if(w.isDate(u))return u.toISOString();if(!p&&w.isBlob(u))throw new I("Blob is not supported. Use a Buffer instead.");return w.isArrayBuffer(u)||w.isTypedArray(u)?p&&typeof Blob=="function"?new Blob([u]):Buffer.from(u):u}function c(u,g,y){let C=u;if(u&&!y&&typeof u=="object"){if(w.endsWith(g,"{}"))g=n?g:g.slice(0,-2),u=JSON.stringify(u);else if(w.isArray(u)&&pl(u)||(w.isFileList(u)||w.endsWith(g,"[]"))&&(C=w.toArray(u)))return g=sn(g),C.forEach(function(v,U){!(w.isUndefined(v)||v===null)&&a.append(s===!0?ln([g],U,r):s===null?g:g+"[]",d(v))}),!1}return po(u)?!0:(a.append(ln(y,g,r),d(u)),!1)}const h=[],m=Object.assign(ul,{defaultVisitor:c,convertValue:d,isVisitable:po});function f(u,g){if(!w.isUndefined(u)){if(h.indexOf(u)!==-1)throw Error("Circular reference detected in "+g.join("."));h.push(u),w.forEach(u,function(C,A){(!(w.isUndefined(C)||C===null)&&i.call(a,C,w.isString(A)?A.trim():A,g,m))===!0&&f(C,g?g.concat(A):[A])}),h.pop()}}if(!w.isObject(e))throw new TypeError("data must be an object");return f(e),a}function cn(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return a[n]})}function uo(e,a){this._pairs=[],e&&Ct(e,this,a)}const dn=uo.prototype;dn.append=function(a,o){this._pairs.push([a,o])},dn.toString=function(a){const o=a?function(n){return a.call(this,n,cn)}:cn;return this._pairs.map(function(i){return o(i[0])+"="+o(i[1])},"").join("&")};function hl(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function mn(e,a,o){if(!a)return e;const n=o&&o.encode||hl,i=o&&o.serialize;let r;if(i?r=i(a,o):r=w.isURLSearchParams(a)?a.toString():new uo(a,o).toString(n),r){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}class pn{constructor(){this.handlers=[]}use(a,o,n){return this.handlers.push({fulfilled:a,rejected:o,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){w.forEach(this.handlers,function(n){n!==null&&a(n)})}}const un={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},fl={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:uo,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},hn=typeof window<"u"&&typeof document<"u",gl=(e=>hn&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),yl=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Ce={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:hn,hasStandardBrowserEnv:gl,hasStandardBrowserWebWorkerEnv:yl},Symbol.toStringTag,{value:"Module"})),...fl};function bl(e,a){return Ct(e,new Ce.classes.URLSearchParams,Object.assign({visitor:function(o,n,i,r){return Ce.isNode&&w.isBuffer(o)?(this.append(n,o.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},a))}function wl(e){return w.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function _l(e){const a={},o=Object.keys(e);let n;const i=o.length;let r;for(n=0;n<i;n++)r=o[n],a[r]=e[r];return a}function fn(e){function a(o,n,i,r){let s=o[r++];if(s==="__proto__")return!0;const l=Number.isFinite(+s),p=r>=o.length;return s=!s&&w.isArray(i)?i.length:s,p?(w.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!l):((!i[s]||!w.isObject(i[s]))&&(i[s]=[]),a(o,n,i[s],r)&&w.isArray(i[s])&&(i[s]=_l(i[s])),!l)}if(w.isFormData(e)&&w.isFunction(e.entries)){const o={};return w.forEachEntry(e,(n,i)=>{a(wl(n),i,o,0)}),o}return null}function Sl(e,a,o){if(w.isString(e))try{return(a||JSON.parse)(e),w.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(o||JSON.stringify)(e)}const ho={transitional:un,adapter:["xhr","http"],transformRequest:[function(a,o){const n=o.getContentType()||"",i=n.indexOf("application/json")>-1,r=w.isObject(a);if(r&&w.isHTMLForm(a)&&(a=new FormData(a)),w.isFormData(a))return i?JSON.stringify(fn(a)):a;if(w.isArrayBuffer(a)||w.isBuffer(a)||w.isStream(a)||w.isFile(a)||w.isBlob(a))return a;if(w.isArrayBufferView(a))return a.buffer;if(w.isURLSearchParams(a))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),a.toString();let l;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return bl(a,this.formSerializer).toString();if((l=w.isFileList(a))||n.indexOf("multipart/form-data")>-1){const p=this.env&&this.env.FormData;return Ct(l?{"files[]":a}:a,p&&new p,this.formSerializer)}}return r||i?(o.setContentType("application/json",!1),Sl(a)):a}],transformResponse:[function(a){const o=this.transitional||ho.transitional,n=o&&o.forcedJSONParsing,i=this.responseType==="json";if(a&&w.isString(a)&&(n&&!this.responseType||i)){const s=!(o&&o.silentJSONParsing)&&i;try{return JSON.parse(a)}catch(l){if(s)throw l.name==="SyntaxError"?I.from(l,I.ERR_BAD_RESPONSE,this,null,this.response):l}}return a}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ce.classes.FormData,Blob:Ce.classes.Blob},validateStatus:function(a){return a>=200&&a<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};w.forEach(["delete","get","head","post","put","patch"],e=>{ho.headers[e]={}});const fo=ho,kl=w.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Cl=e=>{const a={};let o,n,i;return e&&e.split(`
|
|
2
|
-
`).forEach(function(s){i=s.indexOf(":"),o=s.substring(0,i).trim().toLowerCase(),n=s.substring(i+1).trim(),!(!o||a[o]&&
|
|
3
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...o){const n=new this(a);return o.forEach(i=>n.set(i)),n}static accessor(a){const n=(this[
|
|
4
|
-
`+r.map(
|
|
5
|
-
`):" "+
|
|
6
|
-
`+r):n.stack=r}throw n}}_request(a,o){typeof a=="string"?(o=o||{},o.url=a):o=a||{},o=Ge(this.defaults,o);const{transitional:n,paramsSerializer:i,headers:r}=o;n!==void 0&&So.assertOptions(n,{silentJSONParsing:Pe.transitional(Pe.boolean),forcedJSONParsing:Pe.transitional(Pe.boolean),clarifyTimeoutError:Pe.transitional(Pe.boolean)},!1),i!=null&&(w.isFunction(i)?o.paramsSerializer={serialize:i}:So.assertOptions(i,{encode:Pe.function,serialize:Pe.function},!0)),o.method=(o.method||this.defaults.method||"get").toLowerCase();let s=r&&w.merge(r.common,r[o.method]);r&&w.forEach(["delete","get","head","post","put","patch","common"],u=>{delete r[u]}),o.headers=ze.concat(s,r);const l=[];let p=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(o)===!1||(p=p&&g.synchronous,l.unshift(g.fulfilled,g.rejected))});const d=[];this.interceptors.response.forEach(function(g){d.push(g.fulfilled,g.rejected)});let c,h=0,m;if(!p){const u=[kn.bind(this),void 0];for(u.unshift.apply(u,l),u.push.apply(u,d),m=u.length,c=Promise.resolve(o);h<m;)c=c.then(u[h++],u[h++]);return c}m=l.length;let f=o;for(h=0;h<m;){const u=l[h++],g=l[h++];try{f=u(f)}catch(y){g.call(this,y);break}}try{c=kn.call(this,f)}catch(u){return Promise.reject(u)}for(h=0,m=d.length;h<m;)c=c.then(d[h++],d[h++]);return c}getUri(a){a=Ge(this.defaults,a);const o=bn(a.baseURL,a.url);return mn(o,a.params,a.paramsSerializer)}}w.forEach(["delete","get","head","options"],function(a){Nt.prototype[a]=function(o,n){return this.request(Ge(n||{},{method:a,url:o,data:(n||{}).data}))}}),w.forEach(["post","put","patch"],function(a){function o(n){return function(r,s,l){return this.request(Ge(l||{},{method:a,headers:n?{"Content-Type":"multipart/form-data"}:{},url:r,data:s}))}}Nt.prototype[a]=o(),Nt.prototype[a+"Form"]=o(!0)});const xt=Nt;class ko{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(r){o=r});const n=this;this.promise.then(i=>{if(!n._listeners)return;let r=n._listeners.length;for(;r-- >0;)n._listeners[r](i);n._listeners=null}),this.promise.then=i=>{let r;const s=new Promise(l=>{n.subscribe(l),r=l}).then(i);return s.cancel=function(){n.unsubscribe(r)},s},a(function(r,s,l){n.reason||(n.reason=new nt(r,s,l),o(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const o=this._listeners.indexOf(a);o!==-1&&this._listeners.splice(o,1)}static source(){let a;return{token:new ko(function(i){a=i}),cancel:a}}}const Pl=ko;function Ll(e){return function(o){return e.apply(null,o)}}function Dl(e){return w.isObject(e)&&e.isAxiosError===!0}const Co={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(Co).forEach(([e,a])=>{Co[a]=e});const Ml=Co;function Nn(e){const a=new xt(e),o=qa(xt.prototype.request,a);return w.extend(o,xt.prototype,a,{allOwnKeys:!0}),w.extend(o,a,null,{allOwnKeys:!0}),o.create=function(i){return Nn(Ge(e,i))},o}const H=Nn(fo);H.Axios=xt,H.CanceledError=nt,H.CancelToken=Pl,H.isCancel=yn,H.VERSION=Bn,H.toFormData=Ct,H.AxiosError=I,H.Cancel=H.CanceledError,H.all=function(a){return Promise.all(a)},H.spread=Ll,H.isAxiosError=Dl,H.mergeConfig=Ge,H.AxiosHeaders=ze,H.formToJSON=e=>fn(w.isHTMLForm(e)?new FormData(e):e),H.getAdapter=Sn.getAdapter,H.HttpStatusCode=Ml,H.default=H;const Tt=H;function jl(e){const a=t.ref({width:0,height:0});function o(){const n=e.value.getBoundingClientRect();a.value.width=n.width,a.value.height=n.height}return t.onMounted(()=>{o(),window.addEventListener("resize",o)}),t.onUnmounted(()=>{window.removeEventListener("resize",o)}),{elementSize:a}}const Bo=new Map([[1,"Portero"],[2,"Defensa Central"],[3,"Lateral por izquierda"],[4,"Lateral por derecha"],[5,"Volante por izquierda"],[6,"Volante por derecha"],[7,"Volante defensivo"],[8,"Volante ofensivo"],[9,"Delantero "],[10,"Desconocida"]]),ie=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},vl={class:"player-card"},Wl={class:"player-card__image"},Ul=["src"],Hl={class:"player-card__number"},Gl={class:"player-card__right-data"},Jl={class:"player-card__details"},ql={class:"player-card__name"},Zl={class:"player-card__position"},Xl=ie({__name:"GSCPlayerCard",props:{countryFlag:{type:String,default:""},jersey:{type:Number,default:0},age:{type:Number,default:18},nationality:{type:String,default:"-"},name:{type:String,default:"-"},position_id:{type:Number,default:0},position:{type:String,default:"-"},photo:{type:String,default:""},photoNoBg:{type:String,default:""},isImgFullWidth:{type:Boolean,default:!1}},emits:["clickProfileBtn"],setup(e,{emit:a}){return(o,n)=>(t.openBlock(),t.createElementBlock("div",vl,[t.createElementVNode("div",Wl,[t.createElementVNode("img",{class:t.normalizeClass(["player-card__photo",{"full-width":e.isImgFullWidth}]),src:e.photo,alt:"Player Image"},null,10,Ul),t.createElementVNode("div",Hl,t.toDisplayString(e.jersey),1),t.createElementVNode("div",Gl,[t.createElementVNode("button",{class:"player-card__profile-button",onClick:n[0]||(n[0]=i=>a("clickProfileBtn"))}," Ver perfil ")])]),t.createElementVNode("div",Jl,[t.createElementVNode("p",ql,t.toDisplayString(e.name),1),t.createElementVNode("p",Zl,t.toDisplayString(t.unref(Bo).get(e.position_id)),1)])]))}},[["__scopeId","data-v-caa30d1f"]]),Kl=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},Eo={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)}}},xn=()=>{t.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},Tn=Eo.setup;Eo.setup=Tn?(e,a)=>(xn(),Tn(e,a)):xn;const Yl={ref:"gscScrollableContainer",class:"scrollable-container"},Ql={class:"scrollable-arrows"},ec=["width","height","viewBox"],tc=["stroke"],oc={class:"scrollable-wrapper"},ac={class:"scrollable-arrows"},nc=["width","height","viewBox"],rc=["stroke"];function ic(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",Yl,[o.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",r.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...s)=>r.scrollLeft&&r.scrollLeft(...s))},[t.createElementVNode("div",Ql,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:r.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:o.arrowsColor},null,8,tc)],8,ec))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:a[1]||(a[1]=(...s)=>r.getScroll&&r.getScroll(...s))},[t.createElementVNode("div",oc,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),o.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",r.hideShowRightArrow]),onClick:a[2]||(a[2]=(...s)=>r.scrollRight&&r.scrollRight(...s))},[t.createElementVNode("div",ac,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:r.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:o.arrowsColor},null,8,rc)],8,nc))])],2)):t.createCommentVNode("",!0)],512)}const rt=Kl(Eo,[["render",ic],["__scopeId","data-v-b548a08d"]]),On=e=>(t.pushScopeId("data-v-34ea0cee"),e=e(),t.popScopeId(),e),sc={class:"my-players"},lc={class:"my-players__header"},cc={class:"my-players__title"},dc=[On(()=>t.createElementVNode("span",{style:{"text-decoration-line":"underline"}},"Ver todos",-1)),On(()=>t.createElementVNode("span",null,"→",-1))],mc={class:"my-players__list"},pc=ie({__name:"GSCPlayersLanding",props:{isPlayer:{type:Boolean,default:!1},isImgFullWidth:{type:Boolean,default:!0},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MzE4ODAsIm5hbWUiOiJHb2xTdGF0cyIsInVzZXJuYW1lIjoiYnJpenVlbGEiLCJlbWFpbCI6IiIsInByb3ZpZGVyX2lkIjoxLCJsb2dpbl9nb2xzdGF0cyI6MSwiaWF0IjoxNjk4NzIzODA1LCJleHAiOjE3MzAyNTk4MDV9.3DR48YLPVAQKTisQg9SABSqDdurMuS6_z7IJfjXRlPQ"},playerId:{type:Number,default:34605},teamId:{type:Number,default:2},seasonId:{type:Number,default:1772}},emits:["viewAll","clickProfileBtn","totalPlayers"],setup(e,{emit:a}){const o=e,n=t.ref([]),i=t.ref(0),r=t.ref(0);t.onMounted(async()=>{const l=await s(o.teamId,o.seasonId,o.token);r.value=l.length,n.value=l.map(p=>({...p,position:Bo.get(p.position_id)})),o.isPlayer&&o.playerId&&(n.value=l.filter(p=>p.player_id!==o.playerId)),a("totalPlayers",r.value)});const s=async(l,p,d)=>{var h;const c="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";try{return((h=(await(await fetch(`https://pa3kubpuhg.execute-api.us-west-2.amazonaws.com/prod/playersByTeamAndSeason/${p}/${l}`,{headers:{Authorization:d||c}})).json())[0])==null?void 0:h.players)||[]}catch(m){return Promise.reject(m)}};return t.watch(()=>o.seasonId,async(l,p)=>{n.value=[];const d=await s(o.teamId,l,o.token);r.value=d.length,n.value=d.map(c=>({...c,position:Bo.get(c.position_id)})),a("totalPlayers",r.value),i.value+=1}),(l,p)=>(t.openBlock(),t.createElementBlock("div",sc,[t.createElementVNode("div",lc,[t.createElementVNode("h3",cc,t.toDisplayString(e.isPlayer?"Mis compañeros":"Mis jugadores"),1),t.createElementVNode("button",{class:"my-players__button",onClick:p[0]||(p[0]=d=>a("viewAll"))},dc)]),(t.openBlock(),t.createBlock(t.unref(rt),{pxScroll:209,scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!1,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"none",arrowsContainerBgR:"none",arrowsMargin:0,arrowsRadius:"50%",key:i.value,arrowsBorder:"#ddd"},{default:t.withCtx(()=>[t.createElementVNode("div",mc,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.value,d=>(t.openBlock(),t.createBlock(Xl,t.mergeProps(d,{isImgFullWidth:e.isImgFullWidth,onClickProfileBtn:c=>a("clickProfileBtn",d),key:d.player_id}),null,16,["isImgFullWidth","onClickProfileBtn"]))),128))])]),_:1}))]))}},[["__scopeId","data-v-34ea0cee"]]),No="data:image/svg+xml,%3csvg%20width='69'%20height='70'%20viewBox='0%200%2069%2070'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23filter0_b_3196_29756)'%3e%3crect%20x='29'%20y='35'%20width='11'%20height='11'%20rx='1'%20fill='white'%20fill-opacity='0.08'/%3e%3crect%20x='29.5'%20y='35.5'%20width='10'%20height='10'%20rx='0.5'%20stroke='white'%20stroke-opacity='0.16'/%3e%3c/g%3e%3cg%20filter='url(%23filter1_b_3196_29756)'%3e%3crect%20x='48'%20y='35'%20width='11'%20height='11'%20rx='1'%20fill='white'%20fill-opacity='0.08'/%3e%3crect%20x='48.5'%20y='35.5'%20width='10'%20height='10'%20rx='0.5'%20stroke='white'%20stroke-opacity='0.16'/%3e%3c/g%3e%3cg%20filter='url(%23filter2_b_3196_29756)'%3e%3crect%20x='10'%20y='35'%20width='11'%20height='11'%20rx='1'%20fill='white'%20fill-opacity='0.08'/%3e%3crect%20x='10.5'%20y='35.5'%20width='10'%20height='10'%20rx='0.5'%20stroke='white'%20stroke-opacity='0.16'/%3e%3c/g%3e%3cg%20opacity='0.6'%3e%3cpath%20d='M60.5556%208.70056H8.44444C4.33299%208.70056%201%2011.7003%201%2015.4006V62.3007C1%2066.001%204.33299%2069.0007%208.44444%2069.0007H60.5556C64.667%2069.0007%2068%2066.001%2068%2062.3007V15.4006C68%2011.7003%2064.667%208.70056%2060.5556%208.70056Z'%20stroke='white'%20stroke-width='1.88'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M1%2028.7991H68'%20stroke='white'%20stroke-width='1.88'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M49.3872%201.99982V15.3999'%20stroke='white'%20stroke-width='3.88'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M19.6128%201.99982V15.3999'%20stroke='white'%20stroke-width='3.88'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_b_3196_29756'%20x='13'%20y='19'%20width='43'%20height='43'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeGaussianBlur%20in='BackgroundImageFix'%20stdDeviation='8'/%3e%3cfeComposite%20in2='SourceAlpha'%20operator='in'%20result='effect1_backgroundBlur_3196_29756'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_backgroundBlur_3196_29756'%20result='shape'/%3e%3c/filter%3e%3cfilter%20id='filter1_b_3196_29756'%20x='32'%20y='19'%20width='43'%20height='43'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeGaussianBlur%20in='BackgroundImageFix'%20stdDeviation='8'/%3e%3cfeComposite%20in2='SourceAlpha'%20operator='in'%20result='effect1_backgroundBlur_3196_29756'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_backgroundBlur_3196_29756'%20result='shape'/%3e%3c/filter%3e%3cfilter%20id='filter2_b_3196_29756'%20x='-6'%20y='19'%20width='43'%20height='43'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeGaussianBlur%20in='BackgroundImageFix'%20stdDeviation='8'/%3e%3cfeComposite%20in2='SourceAlpha'%20operator='in'%20result='effect1_backgroundBlur_3196_29756'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_backgroundBlur_3196_29756'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e",Vn="data:image/svg+xml,%3csvg%20width='75'%20height='75'%20viewBox='0%200%2075%2075'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23filter0_b_3196_29781)'%3e%3crect%20x='6.00049'%20y='6'%20width='60'%20height='60'%20rx='30'%20fill='white'%20fill-opacity='0.08'/%3e%3crect%20x='6.50049'%20y='6.5'%20width='59'%20height='59'%20rx='29.5'%20stroke='white'%20stroke-opacity='0.16'/%3e%3c/g%3e%3cpath%20opacity='0.6'%20d='M71%2036C71%2042.9221%2068.9475%2049.6887%2065.1019%2055.4443C61.2563%2061.1998%2055.7905%2065.6859%2049.3954%2068.3351C43.0004%2070.9844%2035.9634%2071.6779%2029.1743%2070.3279C22.3851%2068.978%2016.1487%2065.6452%2011.2536%2060.751C6.3585%2055.8569%203.02455%2049.6211%201.67333%2042.8322C0.322108%2036.0433%201.01429%2029.0061%203.66235%2022.6106C6.31041%2016.2151%2010.7954%2010.7484%2016.5503%206.90175C22.3051%203.05512%2029.0714%201.0013%2035.9934%201C40.5903%200.999139%2045.1422%201.9038%2049.3894%203.66233C53.6365%205.42086%2057.4957%207.99881%2060.7464%2011.2489C63.9972%2014.4991%2066.5758%2018.3577%2068.3352%2022.6046C70.0945%2026.8514%2071%2031.4032%2071%2036V36Z'%20stroke='white'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20opacity='0.6'%20d='M74%2074L62%2062'%20stroke='white'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M44.4013%2048.6044V45.4039C44.4013%2043.7062%2043.727%2042.0781%2042.5266%2040.8777C41.3263%2039.6773%2039.6983%2039.0029%2038.0007%2039.0029H28.3999C26.7024%2039.0029%2025.0743%2039.6773%2023.874%2040.8777C22.6737%2042.0781%2021.9993%2043.7062%2021.9993%2045.4039V48.6044'%20stroke='white'%20stroke-opacity='0.6'%20stroke-width='2.38256'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M33.2031%2032.6016C36.738%2032.6016%2039.6037%2029.7358%2039.6037%2026.2006C39.6037%2022.6654%2036.738%2019.7996%2033.2031%2019.7996C29.6682%2019.7996%2026.8026%2022.6654%2026.8026%2026.2006C26.8026%2029.7358%2029.6682%2032.6016%2033.2031%2032.6016Z'%20stroke='white'%20stroke-opacity='0.6'%20stroke-width='2.38256'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M49.1998%2027.8009V37.4024M54.0003%2032.6017H44.3994'%20stroke='white'%20stroke-opacity='0.6'%20stroke-width='2.38256'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cdefs%3e%3cfilter%20id='filter0_b_3196_29781'%20x='-9.99951'%20y='-10'%20width='92'%20height='92'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeGaussianBlur%20in='BackgroundImageFix'%20stdDeviation='8'/%3e%3cfeComposite%20in2='SourceAlpha'%20operator='in'%20result='effect1_backgroundBlur_3196_29781'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_backgroundBlur_3196_29781'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e",uc="data:image/svg+xml,%3csvg%20width='90'%20height='90'%20viewBox='0%200%2090%2090'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Football%20Jersey'%3e%3cg%20id='Layer%2010'%3e%3cpath%20id='Vector'%20d='M71.7192%2052.1016V40.3172L87.7223%2033.6376C87.9169%2033.558%2088.0912%2033.4359%2088.2323%2033.2802C88.3735%2033.1244%2088.4779%2032.939%2088.538%2032.7376C88.5985%2032.5342%2088.6123%2032.3197%2088.5782%2032.1103C88.5441%2031.9009%2088.463%2031.7018%2088.3411%2031.5282L71.4661%207.62193C71.4289%207.5532%2071.3866%207.48739%2071.3395%207.42506C69.4243%205.50395%2067.1463%203.98259%2064.6381%202.94935C62.1298%201.91612%2059.4413%201.39161%2056.7286%201.40631H53.438C53.065%201.40631%2052.7073%201.55446%2052.4436%201.81819C52.1799%202.08191%2052.0317%202.4396%2052.0317%202.81256V5.62506C52.0317%207.48986%2051.2909%209.27829%2049.9723%2010.5969C48.6537%2011.9155%2046.8653%2012.6563%2045.0005%2012.6563C43.1357%2012.6563%2041.3472%2011.9155%2040.0286%2010.5969C38.71%209.27829%2037.9692%207.48986%2037.9692%205.62506V2.81256C37.9692%202.4396%2037.8211%202.08191%2037.5573%201.81819C37.2936%201.55446%2036.9359%201.40631%2036.563%201.40631H33.2723C30.5634%201.39718%2027.8796%201.92572%2025.3764%202.96128C22.8731%203.99684%2020.6003%205.51885%2018.6895%207.43912C18.6424%207.50145%2018.6001%207.56727%2018.563%207.63599L1.68797%2031.5422C1.56603%2031.7159%201.48498%2031.9149%201.45089%2032.1244C1.41679%2032.3338%201.43054%2032.5482%201.49109%2032.7516C1.55114%2032.9531%201.65558%2033.1385%201.79673%2033.2942C1.93788%2033.45%202.11215%2033.5721%202.30672%2033.6516L18.2817%2040.3172V81.5626C18.2817%2081.9355%2018.4299%2082.2932%2018.6936%2082.5569C18.9573%2082.8206%2019.315%2082.9688%2019.688%2082.9688H57.1505C59.2007%2085.1122%2061.7416%2086.7246%2064.5541%2087.6667C67.3665%2088.6089%2070.366%2088.8527%2073.2936%2088.3769C76.2213%2087.9011%2078.9892%2086.7202%2081.3586%2084.9359C83.7279%2083.1516%2085.6276%2080.8176%2086.8936%2078.1353C88.1596%2075.453%2088.7539%2072.503%2088.6253%2069.5397C88.4967%2066.5764%2087.649%2063.6889%2086.1554%2061.1264C84.6617%2058.5639%2082.567%2056.4032%2080.052%2054.8309C77.5369%2053.2587%2074.6771%2052.3219%2071.7192%2052.1016ZM84.8255%2065.011L77.7942%2066.0235L71.7192%2061.2001V54.9141C74.6356%2055.1837%2077.4155%2056.2757%2079.7356%2058.0631C82.0558%2059.8505%2083.8208%2062.2599%2084.8255%2065.011ZM73.5755%2074.5313H67.1067L64.927%2067.9922L70.313%2063.6751L75.6989%2067.9922L73.5755%2074.5313ZM54.8442%2070.3126C54.8475%2069.4546%2054.9227%2068.5985%2055.0692%2067.7532L62.227%2068.7657L64.5192%2075.6563L59.7661%2081.5626C58.2159%2080.1269%2056.9786%2078.3867%2056.1317%2076.4509C55.2848%2074.5152%2054.8465%2072.4255%2054.8442%2070.3126ZM68.9067%2052.0313C66.9688%2052.1978%2065.07%2052.6726%2063.2817%2053.4376V51.3141C63.2728%2045.3135%2065.2507%2039.4787%2068.9067%2034.7204V52.0313ZM68.9067%2054.8438V61.1297L62.8739%2066.0938L55.8427%2065.0813C56.8334%2062.3231%2058.5873%2059.9031%2060.9002%2058.1031C63.213%2056.3031%2065.9897%2055.1972%2068.9067%2054.9141V54.8438ZM71.7192%2037.2657V12.8672L85.0223%2031.7251L71.7192%2037.2657ZM4.97859%2031.7251L18.2817%2012.8672V37.2657L4.97859%2031.7251ZM21.0942%2034.7204C24.7503%2039.4787%2026.7282%2045.3135%2026.7192%2051.3141V80.1563H21.0942V34.7204ZM29.5317%2080.1563V51.3141C29.546%2043.5117%2026.5194%2036.0108%2021.0942%2030.4032V9.02818C24.3875%205.92407%2028.7467%204.20253%2033.2723%204.21881H35.1567V5.62506C35.1567%208.23578%2036.1938%2010.7396%2038.0399%2012.5856C39.8859%2014.4317%2042.3897%2015.4688%2045.0005%2015.4688C47.6112%2015.4688%2050.115%2014.4317%2051.9611%2012.5856C53.8071%2010.7396%2054.8442%208.23578%2054.8442%205.62506V4.21881H56.7286C61.2542%204.20253%2065.6134%205.92407%2068.9067%209.02818V30.4032C63.4816%2036.0108%2060.455%2043.5117%2060.4692%2051.3141V54.9282C56.3926%2057.542%2053.5197%2061.6664%2052.4809%2066.3963C51.4421%2071.1261%2052.3224%2076.0748%2054.9286%2080.1563H29.5317ZM61.988%2083.3204L66.7692%2077.3438H73.8005L78.5817%2083.3204C76.1021%2084.9263%2073.211%2085.7808%2070.2567%2085.7808C67.3025%2085.7808%2064.4113%2084.9263%2061.9317%2083.3204H61.988ZM80.8598%2081.5626L76.1067%2075.6563L78.3989%2068.7657L85.5567%2067.7532C85.9891%2070.2641%2085.7858%2072.8433%2084.9653%2075.2555C84.1449%2077.6677%2082.7335%2079.836%2080.8598%2081.5626Z'%20fill='%23A0A9AF'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",hc="data:image/svg+xml,%3csvg%20width='90'%20height='90'%20viewBox='0%200%2090%2090'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='fi_8584464'%3e%3cpath%20id='Vector'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M76.9582%2067.1642V5.59678C76.9582%204.8244%2076.3322%204.19775%2075.5592%204.19775H13.9918C13.2194%204.19775%2012.5928%204.8244%2012.5928%205.59678V67.1642C12.5928%2067.676%2012.8722%2068.1475%2013.3222%2068.3926L44.1055%2085.1836C44.5233%2085.4113%2045.0277%2085.4113%2045.4455%2085.1836L76.2295%2068.3926C76.6788%2068.1475%2076.9582%2067.676%2076.9582%2067.1642ZM74.1602%2018.1901V66.3333L44.7758%2082.3614L15.3915%2066.3333V18.1901H74.1602ZM44.7758%2023.7875C32.419%2023.7875%2022.3873%2033.8192%2022.3873%2046.1754C22.3873%2058.5316%2032.419%2068.5632%2044.7758%2068.5632C57.132%2068.5632%2067.1637%2058.5316%2067.1637%2046.1754C67.1637%2033.8192%2057.132%2023.7875%2044.7758%2023.7875ZM38.8795%2064.8604L44.7758%2059.985L50.6715%2064.8604C48.8104%2065.4481%2046.8297%2065.7651%2044.7758%2065.7651C42.7213%2065.7651%2040.7406%2065.4481%2038.8795%2064.8604ZM35.939%2028.6905C32.2168%2030.5772%2029.177%2033.617%2027.2903%2037.3392L33.8603%2045.2834C34.2881%2045.8013%2034.2881%2046.5495%2033.8603%2047.0673L27.2903%2055.0115C29.177%2058.7337%2032.2175%2061.7742%2035.939%2063.6602L43.8839%2057.0909C44.4011%2056.6631%2045.1499%2056.6631%2045.6671%2057.0909L53.6119%2063.6602C57.3342%2061.7736%2060.374%2058.7337%2062.2607%2055.0115L55.6907%2047.0673C55.2628%2046.5495%2055.2628%2045.8013%2055.6907%2045.2834L62.2607%2037.3392C60.374%2033.617%2057.3342%2030.5765%2053.6119%2028.6905L45.6671%2035.2598C45.1499%2035.6877%2044.4011%2035.6877%2043.8839%2035.2598L35.939%2028.6905ZM45.5979%2037.5475C45.1076%2037.1908%2044.4434%2037.1908%2043.9531%2037.5475L36.8243%2042.7272C36.3333%2043.0831%2036.1284%2043.7151%2036.3158%2044.2914L39.0387%2052.6722C39.2261%2053.2484%2039.7634%2053.6393%2040.3699%2053.6393H49.1818C49.7876%2053.6393%2050.3249%2053.2484%2050.5123%2052.6722L53.2358%2044.2914C53.4225%2043.7151%2053.2177%2043.0831%2052.7274%2042.7272L45.5979%2037.5475ZM58.5848%2046.1754L63.4609%2040.279C64.0486%2042.1401%2064.3649%2044.1208%2064.3649%2046.1754C64.3649%2048.2299%2064.0486%2050.2106%2063.4609%2052.0717L58.5848%2046.1754ZM26.0908%2040.279L30.9662%2046.1754L26.0908%2052.0717C25.5031%2050.2106%2025.1861%2048.2299%2025.1861%2046.1754C25.1861%2044.1208%2025.5031%2042.1401%2026.0908%2040.279ZM44.7758%2040.4086L50.2598%2044.3935L48.1649%2050.8406H41.3861L39.2912%2044.3935L44.7758%2040.4086ZM50.6715%2027.4903L44.7758%2032.3657L38.8795%2027.4903C40.7406%2026.9026%2042.7213%2026.5856%2044.7758%2026.5856C46.8297%2026.5856%2048.8104%2026.9026%2050.6715%2027.4903ZM74.1602%2015.392H15.3915C15.3915%2014.9548%2015.3915%2012.5933%2015.3915%2012.5933H74.1602V15.392ZM15.3915%209.79454V6.99648H74.1602V9.79454H15.3915Z'%20fill='%23A0A9AF'/%3e%3c/g%3e%3c/svg%3e",fc=["onClick"],gc={class:"grid-section__image"},yc=["src"],bc={class:"grid-section__label"},wc=ie({__name:"GSCGridTeamsMatches",props:{isPlayer:{type:Boolean,default:!1},playerId:{type:Number,default:0},teamId:{type:Number,default:0},seasonSelected:{type:Number,default:0},nextRivalId:{type:Number,default:0},hasTeam:{type:Boolean,default:!1},teamImg:{type:[String,void 0],default:void 0},rivalImg:{type:[String,void 0],default:void 0},playerImg:{type:[String,void 0],default:void 0},componentWidth:{type:Number,default:768}},emits:["action"],setup(e,{emit:a}){const o=e;function n(s){a("action",s)}const i=t.computed(()=>o.componentWidth<768),r=t.computed(()=>{let s;return o.isPlayer?s=[{type:"player",label:"Mi perfil →",image:o.playerImg||"",imgType:"player",player:o.playerId,team:o.teamId,season:o.seasonSelected},{type:"team",label:"Analizar mi equipo →",image:o.teamImg||"",imgType:"team",team:o.teamId,season:o.seasonSelected},{type:"rival",label:"Analizar mi próximo rival →",image:o.rivalImg||"",imgType:"team",team:o.nextRivalId,season:o.seasonSelected},{type:"schedule",label:"Mis partidos →",image:No,imgType:"svg",team:o.teamId,season:o.seasonSelected}]:o.hasTeam?s=[{type:"team",label:"Analizar mi equipo →",image:o.teamImg||"",imgType:"team",team:o.teamId,season:o.seasonSelected},{type:"rival",label:"Analizar mi próximo rival →",image:o.rivalImg||"",imgType:"team",team:o.nextRivalId,season:o.seasonSelected},{type:"schedule",label:"Mis partidos →",image:No,imgType:"svg",team:o.teamId,season:o.seasonSelected},{type:"scouting",label:"Scouting cientifico →",image:Vn,imgType:"svg",season:o.seasonSelected}]:s=[{type:"teamOtherLeague",label:"Buscar equipo →",image:hc,imgType:"svg",season:o.seasonSelected},{type:"playerOtherLeague",label:"Buscar jugador →",image:uc,imgType:"svg",season:o.seasonSelected},{type:"scheduleOtherLeague",label:"Calendario general →",image:No,imgType:"svg",season:o.seasonSelected},{type:"scouting",label:"Scouting cientifico →",image:Vn,imgType:"svg",season:o.seasonSelected}],s});return(s,l)=>(t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass(["grid-section",{mobile:i.value}])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.value,(p,d)=>(t.openBlock(),t.createElementBlock("div",{key:d,class:"grid-section__card",onClick:c=>n(p)},[t.createElementVNode("figure",gc,[p.image!==""?(t.openBlock(),t.createElementBlock("img",{key:0,src:p.image,alt:"",class:t.normalizeClass(p.imgType)},null,10,yc)):t.createCommentVNode("",!0)]),t.createElementVNode("p",bc,t.toDisplayString(p.label),1)],8,fc))),128))],2))}},[["__scopeId","data-v-b0f26065"]]);function $n(e,a){return function(){return e.apply(a,arguments)}}const{toString:_c}=Object.prototype,{getPrototypeOf:xo}=Object,Ot=(e=>a=>{const o=_c.call(a);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),Be=e=>(e=e.toLowerCase(),a=>Ot(a)===e),Vt=e=>a=>typeof a===e,{isArray:Je}=Array,it=Vt("undefined");function Sc(e){return e!==null&&!it(e)&&e.constructor!==null&&!it(e.constructor)&&ce(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const An=Be("ArrayBuffer");function kc(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&An(e.buffer),a}const Cc=Vt("string"),ce=Vt("function"),zn=Vt("number"),$t=e=>e!==null&&typeof e=="object",Bc=e=>e===!0||e===!1,At=e=>{if(Ot(e)!=="object")return!1;const a=xo(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Ec=Be("Date"),Nc=Be("File"),xc=Be("Blob"),Tc=Be("FileList"),Oc=e=>$t(e)&&ce(e.pipe),Vc=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||ce(e.append)&&((a=Ot(e))==="formdata"||a==="object"&&ce(e.toString)&&e.toString()==="[object FormData]"))},$c=Be("URLSearchParams"),Ac=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function st(e,a,{allOwnKeys:o=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),Je(e))for(n=0,i=e.length;n<i;n++)a.call(null,e[n],n,e);else{const r=o?Object.getOwnPropertyNames(e):Object.keys(e),s=r.length;let l;for(n=0;n<s;n++)l=r[n],a.call(null,e[l],l,e)}}function Rn(e,a){a=a.toLowerCase();const o=Object.keys(e);let n=o.length,i;for(;n-- >0;)if(i=o[n],a===i.toLowerCase())return i;return null}const In=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Fn=e=>!it(e)&&e!==In;function To(){const{caseless:e}=Fn(this)&&this||{},a={},o=(n,i)=>{const r=e&&Rn(a,i)||i;At(a[r])&&At(n)?a[r]=To(a[r],n):At(n)?a[r]=To({},n):Je(n)?a[r]=n.slice():a[r]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&st(arguments[n],o);return a}const zc=(e,a,o,{allOwnKeys:n}={})=>(st(a,(i,r)=>{o&&ce(i)?e[r]=$n(i,o):e[r]=i},{allOwnKeys:n}),e),Rc=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ic=(e,a,o,n)=>{e.prototype=Object.create(a.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),o&&Object.assign(e.prototype,o)},Fc=(e,a,o,n)=>{let i,r,s;const l={};if(a=a||{},e==null)return a;do{for(i=Object.getOwnPropertyNames(e),r=i.length;r-- >0;)s=i[r],(!n||n(s,e,a))&&!l[s]&&(a[s]=e[s],l[s]=!0);e=o!==!1&&xo(e)}while(e&&(!o||o(e,a))&&e!==Object.prototype);return a},Pc=(e,a,o)=>{e=String(e),(o===void 0||o>e.length)&&(o=e.length),o-=a.length;const n=e.indexOf(a,o);return n!==-1&&n===o},Lc=e=>{if(!e)return null;if(Je(e))return e;let a=e.length;if(!zn(a))return null;const o=new Array(a);for(;a-- >0;)o[a]=e[a];return o},Dc=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&xo(Uint8Array)),Mc=(e,a)=>{const o=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=o.next())&&!n.done;){const i=n.value;a.call(e,i[0],i[1])}},jc=(e,a)=>{let o;const n=[];for(;(o=e.exec(a))!==null;)n.push(o);return n},vc=Be("HTMLFormElement"),Wc=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,o,n){return o.toUpperCase()+n}),Pn=(({hasOwnProperty:e})=>(a,o)=>e.call(a,o))(Object.prototype),Uc=Be("RegExp"),Ln=(e,a)=>{const o=Object.getOwnPropertyDescriptors(e),n={};st(o,(i,r)=>{let s;(s=a(i,r,e))!==!1&&(n[r]=s||i)}),Object.defineProperties(e,n)},Hc=e=>{Ln(e,(a,o)=>{if(ce(e)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const n=e[o];if(ce(n)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},Gc=(e,a)=>{const o={},n=i=>{i.forEach(r=>{o[r]=!0})};return Je(e)?n(e):n(String(e).split(a)),o},Jc=()=>{},qc=(e,a)=>(e=+e,Number.isFinite(e)?e:a),Oo="abcdefghijklmnopqrstuvwxyz",Dn="0123456789",Mn={DIGIT:Dn,ALPHA:Oo,ALPHA_DIGIT:Oo+Oo.toUpperCase()+Dn},Zc=(e=16,a=Mn.ALPHA_DIGIT)=>{let o="";const{length:n}=a;for(;e--;)o+=a[Math.random()*n|0];return o};function Xc(e){return!!(e&&ce(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Kc=e=>{const a=new Array(10),o=(n,i)=>{if($t(n)){if(a.indexOf(n)>=0)return;if(!("toJSON"in n)){a[i]=n;const r=Je(n)?[]:{};return st(n,(s,l)=>{const p=o(s,i+1);!it(p)&&(r[l]=p)}),a[i]=void 0,r}}return n};return o(e,0)},Yc=Be("AsyncFunction"),Qc=e=>e&&($t(e)||ce(e))&&ce(e.then)&&ce(e.catch),_={isArray:Je,isArrayBuffer:An,isBuffer:Sc,isFormData:Vc,isArrayBufferView:kc,isString:Cc,isNumber:zn,isBoolean:Bc,isObject:$t,isPlainObject:At,isUndefined:it,isDate:Ec,isFile:Nc,isBlob:xc,isRegExp:Uc,isFunction:ce,isStream:Oc,isURLSearchParams:$c,isTypedArray:Dc,isFileList:Tc,forEach:st,merge:To,extend:zc,trim:Ac,stripBOM:Rc,inherits:Ic,toFlatObject:Fc,kindOf:Ot,kindOfTest:Be,endsWith:Pc,toArray:Lc,forEachEntry:Mc,matchAll:jc,isHTMLForm:vc,hasOwnProperty:Pn,hasOwnProp:Pn,reduceDescriptors:Ln,freezeMethods:Hc,toObjectSet:Gc,toCamelCase:Wc,noop:Jc,toFiniteNumber:qc,findKey:Rn,global:In,isContextDefined:Fn,ALPHABET:Mn,generateString:Zc,isSpecCompliantForm:Xc,toJSONObject:Kc,isAsyncFn:Yc,isThenable:Qc};function F(e,a,o,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),o&&(this.config=o),n&&(this.request=n),i&&(this.response=i)}_.inherits(F,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:_.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const jn=F.prototype,vn={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{vn[e]={value:e}}),Object.defineProperties(F,vn),Object.defineProperty(jn,"isAxiosError",{value:!0}),F.from=(e,a,o,n,i,r)=>{const s=Object.create(jn);return _.toFlatObject(e,s,function(l){return l!==Error.prototype},l=>l!=="isAxiosError"),F.call(s,e.message,a,o,n,i),s.cause=e,s.name=e.name,r&&Object.assign(s,r),s};const ed=null;function Vo(e){return _.isPlainObject(e)||_.isArray(e)}function Wn(e){return _.endsWith(e,"[]")?e.slice(0,-2):e}function Un(e,a,o){return e?e.concat(a).map(function(n,i){return n=Wn(n),!o&&i?"["+n+"]":n}).join(o?".":""):a}function td(e){return _.isArray(e)&&!e.some(Vo)}const od=_.toFlatObject(_,{},null,function(e){return/^is[A-Z]/.test(e)});function zt(e,a,o){if(!_.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,o=_.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,u){return!_.isUndefined(u[f])});const n=o.metaTokens,i=o.visitor||d,r=o.dots,s=o.indexes,l=(o.Blob||typeof Blob<"u"&&Blob)&&_.isSpecCompliantForm(a);if(!_.isFunction(i))throw new TypeError("visitor must be a function");function p(f){if(f===null)return"";if(_.isDate(f))return f.toISOString();if(!l&&_.isBlob(f))throw new F("Blob is not supported. Use a Buffer instead.");return _.isArrayBuffer(f)||_.isTypedArray(f)?l&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function d(f,u,g){let y=f;if(f&&!g&&typeof f=="object"){if(_.endsWith(u,"{}"))u=n?u:u.slice(0,-2),f=JSON.stringify(f);else if(_.isArray(f)&&td(f)||(_.isFileList(f)||_.endsWith(u,"[]"))&&(y=_.toArray(f)))return u=Wn(u),y.forEach(function(C,A){!(_.isUndefined(C)||C===null)&&a.append(s===!0?Un([u],A,r):s===null?u:u+"[]",p(C))}),!1}return Vo(f)?!0:(a.append(Un(g,u,r),p(f)),!1)}const c=[],h=Object.assign(od,{defaultVisitor:d,convertValue:p,isVisitable:Vo});function m(f,u){if(!_.isUndefined(f)){if(c.indexOf(f)!==-1)throw Error("Circular reference detected in "+u.join("."));c.push(f),_.forEach(f,function(g,y){(!(_.isUndefined(g)||g===null)&&i.call(a,g,_.isString(y)?y.trim():y,u,h))===!0&&m(g,u?u.concat(y):[y])}),c.pop()}}if(!_.isObject(e))throw new TypeError("data must be an object");return m(e),a}function Hn(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return a[o]})}function $o(e,a){this._pairs=[],e&&zt(e,this,a)}const Gn=$o.prototype;Gn.append=function(e,a){this._pairs.push([e,a])},Gn.toString=function(e){const a=e?function(o){return e.call(this,o,Hn)}:Hn;return this._pairs.map(function(o){return a(o[0])+"="+a(o[1])},"").join("&")};function ad(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Jn(e,a,o){if(!a)return e;const n=o&&o.encode||ad,i=o&&o.serialize;let r;if(i?r=i(a,o):r=_.isURLSearchParams(a)?a.toString():new $o(a,o).toString(n),r){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}class nd{constructor(){this.handlers=[]}use(a,o,n){return this.handlers.push({fulfilled:a,rejected:o,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){_.forEach(this.handlers,function(o){o!==null&&a(o)})}}const qn=nd,Zn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},rd=typeof URLSearchParams<"u"?URLSearchParams:$o,id=typeof FormData<"u"?FormData:null,sd=typeof Blob<"u"?Blob:null,ld={isBrowser:!0,classes:{URLSearchParams:rd,FormData:id,Blob:sd},protocols:["http","https","file","blob","url","data"]},Xn=typeof window<"u"&&typeof document<"u",cd=(e=>Xn&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),dd=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",md=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Xn,hasStandardBrowserEnv:cd,hasStandardBrowserWebWorkerEnv:dd},Symbol.toStringTag,{value:"Module"})),Ee={...md,...ld};function pd(e,a){return zt(e,new Ee.classes.URLSearchParams,Object.assign({visitor:function(o,n,i,r){return Ee.isNode&&_.isBuffer(o)?(this.append(n,o.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},a))}function ud(e){return _.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function hd(e){const a={},o=Object.keys(e);let n;const i=o.length;let r;for(n=0;n<i;n++)r=o[n],a[r]=e[r];return a}function Kn(e){function a(o,n,i,r){let s=o[r++];if(s==="__proto__")return!0;const l=Number.isFinite(+s),p=r>=o.length;return s=!s&&_.isArray(i)?i.length:s,p?(_.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!l):((!i[s]||!_.isObject(i[s]))&&(i[s]=[]),a(o,n,i[s],r)&&_.isArray(i[s])&&(i[s]=hd(i[s])),!l)}if(_.isFormData(e)&&_.isFunction(e.entries)){const o={};return _.forEachEntry(e,(n,i)=>{a(ud(n),i,o,0)}),o}return null}function fd(e,a,o){if(_.isString(e))try{return(a||JSON.parse)(e),_.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(o||JSON.stringify)(e)}const Ao={transitional:Zn,adapter:["xhr","http"],transformRequest:[function(e,a){const o=a.getContentType()||"",n=o.indexOf("application/json")>-1,i=_.isObject(e);if(i&&_.isHTMLForm(e)&&(e=new FormData(e)),_.isFormData(e))return n?JSON.stringify(Kn(e)):e;if(_.isArrayBuffer(e)||_.isBuffer(e)||_.isStream(e)||_.isFile(e)||_.isBlob(e))return e;if(_.isArrayBufferView(e))return e.buffer;if(_.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let r;if(i){if(o.indexOf("application/x-www-form-urlencoded")>-1)return pd(e,this.formSerializer).toString();if((r=_.isFileList(e))||o.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return zt(r?{"files[]":e}:e,s&&new s,this.formSerializer)}}return i||n?(a.setContentType("application/json",!1),fd(e)):e}],transformResponse:[function(e){const a=this.transitional||Ao.transitional,o=a&&a.forcedJSONParsing,n=this.responseType==="json";if(e&&_.isString(e)&&(o&&!this.responseType||n)){const i=!(a&&a.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(r){if(i)throw r.name==="SyntaxError"?F.from(r,F.ERR_BAD_RESPONSE,this,null,this.response):r}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ee.classes.FormData,Blob:Ee.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_.forEach(["delete","get","head","post","put","patch"],e=>{Ao.headers[e]={}});const zo=Ao,gd=_.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),yd=e=>{const a={};let o,n,i;return e&&e.split(`
|
|
7
|
-
`).forEach(function(r){i=r.indexOf(":"),o=r.substring(0,i).trim().toLowerCase(),n=r.substring(i+1).trim(),!(!o||a[o]&&
|
|
8
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...o){const n=new this(a);return o.forEach(i=>n.set(i)),n}static accessor(a){const o=(this[
|
|
9
|
-
`+r.map(
|
|
10
|
-
`):" "+
|
|
11
|
-
`+r):n.stack=r}throw n}}_request(a,o){typeof a=="string"?(o=o||{},o.url=a):o=a||{},o=qe(this.defaults,o);const{transitional:n,paramsSerializer:i,headers:r}=o;n!==void 0&&Do.assertOptions(n,{silentJSONParsing:Le.transitional(Le.boolean),forcedJSONParsing:Le.transitional(Le.boolean),clarifyTimeoutError:Le.transitional(Le.boolean)},!1),i!=null&&(_.isFunction(i)?o.paramsSerializer={serialize:i}:Do.assertOptions(i,{encode:Le.function,serialize:Le.function},!0)),o.method=(o.method||this.defaults.method||"get").toLowerCase();let s=r&&_.merge(r.common,r[o.method]);r&&_.forEach(["delete","get","head","post","put","patch","common"],u=>{delete r[u]}),o.headers=Re.concat(s,r);const l=[];let p=!0;this.interceptors.request.forEach(function(u){typeof u.runWhen=="function"&&u.runWhen(o)===!1||(p=p&&u.synchronous,l.unshift(u.fulfilled,u.rejected))});const d=[];this.interceptors.response.forEach(function(u){d.push(u.fulfilled,u.rejected)});let c,h=0,m;if(!p){const u=[nr.bind(this),void 0];for(u.unshift.apply(u,l),u.push.apply(u,d),m=u.length,c=Promise.resolve(o);h<m;)c=c.then(u[h++],u[h++]);return c}m=l.length;let f=o;for(h=0;h<m;){const u=l[h++],g=l[h++];try{f=u(f)}catch(y){g.call(this,y);break}}try{c=nr.call(this,f)}catch(u){return Promise.reject(u)}for(h=0,m=d.length;h<m;)c=c.then(d[h++],d[h++]);return c}getUri(a){a=qe(this.defaults,a);const o=er(a.baseURL,a.url);return Jn(o,a.params,a.paramsSerializer)}};_.forEach(["delete","get","head","options"],function(e){Ft.prototype[e]=function(a,o){return this.request(qe(o||{},{method:e,url:a,data:(o||{}).data}))}}),_.forEach(["post","put","patch"],function(e){function a(o){return function(n,i,r){return this.request(qe(r||{},{method:e,headers:o?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}Ft.prototype[e]=a(),Ft.prototype[e+"Form"]=a(!0)});const Pt=Ft,zd=class Vs{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(i){o=i});const n=this;this.promise.then(i=>{if(!n._listeners)return;let r=n._listeners.length;for(;r-- >0;)n._listeners[r](i);n._listeners=null}),this.promise.then=i=>{let r;const s=new Promise(l=>{n.subscribe(l),r=l}).then(i);return s.cancel=function(){n.unsubscribe(r)},s},a(function(i,r,s){n.reason||(n.reason=new ct(i,r,s),o(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const o=this._listeners.indexOf(a);o!==-1&&this._listeners.splice(o,1)}static source(){let a;return{token:new Vs(function(o){a=o}),cancel:a}}};function Rd(e){return function(a){return e.apply(null,a)}}function Id(e){return _.isObject(e)&&e.isAxiosError===!0}const Mo={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(Mo).forEach(([e,a])=>{Mo[a]=e});const Fd=Mo;function lr(e){const a=new Pt(e),o=$n(Pt.prototype.request,a);return _.extend(o,Pt.prototype,a,{allOwnKeys:!0}),_.extend(o,a,null,{allOwnKeys:!0}),o.create=function(n){return lr(qe(e,n))},o}const G=lr(zo);G.Axios=Pt,G.CanceledError=ct,G.CancelToken=zd,G.isCancel=Qn,G.VERSION=ir,G.toFormData=zt,G.AxiosError=F,G.Cancel=G.CanceledError,G.all=function(e){return Promise.all(e)},G.spread=Rd,G.isAxiosError=Id,G.mergeConfig=qe,G.AxiosHeaders=Re,G.formToJSON=e=>Kn(_.isHTMLForm(e)?new FormData(e):e),G.getAdapter=ar.getAdapter,G.HttpStatusCode=Fd,G.default=G;const cr=G,Pd=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},jo={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},dr=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},mr=jo.setup;jo.setup=mr?(e,a)=>(dr(),mr(e,a)):dr;const Ld=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),Dd=["src"],Md={key:1,class:"text"},jd=["src"],vd={class:"stats"},Wd=Ld(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),Ud={class:"numstats"},Hd={class:"leyend"};function Gd(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",null,[o.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",i.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([r.customStyle,i.status&&o.typeOnOff&&r.customActive]),onClick:a[0]||(a[0]=(...s)=>r.btnClick&&r.btnClick(...s))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,Dd)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",Md,t.toDisplayString(o.textValue),1)):t.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,jd)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...s)=>r.btnClick&&r.btnClick(...s))},[t.createElementVNode("div",vd,[Wd,t.createElementVNode("div",Ud,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",Hd,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const Jd=Pd(jo,[["render",Gd],["__scopeId","data-v-fb269a1e"]]),qd=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},vo={components:{GSCButton:Jd},props:{hiddenButtonAll:{type:Boolean,default:!1},teamId:{type:Number,default:0},height:{type:String,default:"71px"},backgroundColor:{type:String,default:"#0d1d29"},containBorderType:{type:String,default:"solid"},containBorderWidth:{type:Number,default:0},containBorderColor:{type:String,default:""},componentontainBorderRadius:{type:String,default:"0px"},teamBorderType:{type:String,default:"solid"},teamBorderWidth:{type:Number,default:1},teamBorderColor:{type:String,default:"#566068"},teamBorderRadius:{type:String,default:"43px"},teamHeight:{type:String,default:"43px"},teamWidth:{type:String,default:"43px"},data:{type:Array,default:()=>[]}},data(){return{teamselect:this.teamId,scrollBar:!1}},watch:{teamId:{handler:function(e){this.teamselect=e},immediate:!0}},computed:{centerTextCustom(){return this.hiddenButtonAll&&!this.scrollBar?"center":"left"},marginCustom(){return this.hiddenButtonAll?"0px":"12px"},customStyleContain(){return{height:this.height,backgroundColor:this.backgroundColor,borderRadius:this.containBorderRadius,border:`${this.containBorderType} ${this.containBorderWidth}px ${this.containBorderColor}`}},customStyleTeam(){return{height:this.teamHeight,width:this.teamWidth,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.teamBorderType} ${this.teamBorderWidth}px ${this.teamBorderColor}`}}},methods:{checkIfElementHasScroll(){const e=this.$refs.container.querySelector("#panelteams");e.scrollWidth>e.clientWidth?this.scrollBar=!0:this.scrollBar=!1},btnTeamClick(e){this.$emit("clickTeam",e),this.teamselect=e},click(){this.$emit("clickAll",0),this.teamselect=0}},mounted(){this.checkIfElementHasScroll(),window.addEventListener("resize",this.checkIfElementHasScroll)},beforeUnmount(){window.removeEventListener("resize",this.checkIfElementHasScroll)}},pr=()=>{t.useCssVars(e=>({"132156c0":e.centerTextCustom,"096d3ecc":e.marginCustom}))},ur=vo.setup;vo.setup=ur?(e,a)=>(pr(),ur(e,a)):pr;const Zd={id:"panelteams",class:"gsc-filterperteam__panel-teams",ref:"panel"},Xd={class:"gsc-filterperteam__panel-teams__cont-teams"},Kd=["onClick"],Yd=["src","alt","title"];function Qd(e,a,o,n,i,r){const s=t.resolveComponent("GSCButton");return t.openBlock(),t.createElementBlock("div",{class:"gsc-filterperteam",ref:"container",style:t.normalizeStyle(r.customStyleContain)},[t.createElementVNode("div",Zd,[t.createElementVNode("div",Xd,[o.hiddenButtonAll?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(r.customStyleTeam),class:t.normalizeClass(["gsc-filterperteam__panel-teams__cont-teams__button-all",this.teamselect!==0?"--disabled":""])},[t.createVNode(s,{"text-value":"Todos",width:"76px",height:"28px","font-family":"Poppins-Light","font-size":"13px","border-color":"#cbee6b","border-type":"solid","border-width":"1","background-color":"#2A3641","border-radius":"64px",onClick:r.click},null,8,["onClick"])],6)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.data,(l,p)=>(t.openBlock(),t.createElementBlock("div",{key:p,style:t.normalizeStyle(r.customStyleTeam),class:t.normalizeClass([l.id==i.teamselect?"colorselect":"","gsc-filterperteam__panel-teams__cont-teams__btn-team hover-team"]),onClick:d=>r.btnTeamClick(l.id)},[t.createElementVNode("img",{src:l.logo,alt:l.name,title:l.name},null,8,Yd)],14,Kd))),128))])],512)],4)}const em=qd(vo,[["render",Qd],["__scopeId","data-v-ab79352d"]]),tm=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},Wo={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},hr=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},fr=Wo.setup;Wo.setup=fr?(e,a)=>(hr(),fr(e,a)):hr;const om=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),am=["src"],nm={key:1,class:"text"},rm=["src"],im={class:"stats"},sm=om(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),lm={class:"numstats"},cm={class:"leyend"};function dm(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",null,[o.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",i.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([r.customStyle,i.status&&o.typeOnOff&&r.customActive]),onClick:a[0]||(a[0]=(...s)=>r.btnClick&&r.btnClick(...s))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,am)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",nm,t.toDisplayString(o.textValue),1)):t.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,rm)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...s)=>r.btnClick&&r.btnClick(...s))},[t.createElementVNode("div",im,[sm,t.createElementVNode("div",lm,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",cm,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const mm=tm(Wo,[["render",dm],["__scopeId","data-v-fb269a1e"]]);function pm(e){const a=t.ref({width:0,height:0});function o(){const n=e.value.getBoundingClientRect();a.value.width=n.width,a.value.height=n.height}return t.onMounted(()=>{o(),window.addEventListener("resize",o)}),t.onUnmounted(()=>{window.removeEventListener("resize",o)}),{elementSize:a}}const um=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},hm={components:{GSCButton:mm},props:{data:{type:Object,default:()=>{}},teamSelected:{type:Number,default:0},isheader:{type:Boolean,default:!0},oneClick:{type:Boolean,default:!0},isVideos:{type:Boolean,default:!0},isGames:{type:Boolean,default:!0},isPremium:{type:Boolean,default:!0},HeadBackgroundColor:{type:String,default:""},HeadFontColor:{type:String,default:""},ItemFontColor:{type:String,default:""},backgroundColor:{type:String,default:"#172531"},ItemHeight:{type:String,default:""}},setup(){const e=t.ref("myDivRef"),{elementSize:a}=pm(e);return{myDivRef:e,elementSize:a}},computed:{customStyle(){return{backgroundColor:this.HeadBackgroundColor,color:this.HeadFontColor}},customStyleLanding(){return{backgroundColor:this.HeadBackgroundColor,color:this.HeadFontColor,borderBottom:"none"}},customStyleItem(){return{color:this.ItemFontColor,height:this.ItemHeight,backgroundColor:this.backgroundColor}},customStyleItemLanding(){return{color:this.ItemFontColor,height:this.ItemHeight,backgroundColor:this.backgroundColor,borderBottom:"none"}}},methods:{setOpenMedia(e,a,o,n,i,r="",s=!1,l){l&&this.$emit("openmedia",{team:e,mainSectionType:a,playListType:o,matchResult:n,category:i,title:r,isRivalSubject:s,value:l})},goToTeamProfile(e){this.$emit("openTableProfile",e)},clickBotonVideos(e){this.isPremium&&(this.oneClick||this.$emit("btnVideos",{team:e,type:"all"}))},clickStatsVideos(e,a){this.isPremium&&(this.oneClick||this.$emit("btnStatsVideos",{team:e,type:a}))},btnAllOneClick(e){this.isPremium&&this.oneClick&&this.$emit("btnVideos",{team:e,type:"all"})},customBg(e,a,o){return!e&&a==o?"background: rgba(30, 60, 81, 0.5)!important":""},customGridM(e){var a={};return this.isVideos&&this.isGames?e.width>768?a={gridTemplateColumns:"7% 16.5% 15% 3.8% 3.8% 3.8% 3.8% 3.8% 3.8% 3.8% 6% 20% 9%"}:e.width>480?a={gridTemplateColumns:"7% 16.5% 8% 4.8% 4.8% 4.8% 4.8% 4.8% 4.8% 4.8% 6% 20% 9%"}:a={gridTemplateColumns:"9% 9% 8% 5% 5% 5% 5% 5% 5% 5% 6% 24% 10.1%"}:this.isVideos?e.width>768?a={gridTemplateColumns:"10% 16.5% 15% 5.8% 5.8% 5.8% 5.8% 5.8% 5.8% 5.8% 7% 11%"}:e.width>480?a={gridTemplateColumns:"9% 18.5% 15% 5.8% 5.8% 5.8% 5.8% 5.8% 5.8% 5.8% 7% 10%"}:a={gridTemplateColumns:"8% 14.5% 14% 6.8% 6.8% 6.8% 6.8% 6.8% 6.8% 5.8% 7% 9%"}:this.isGames?e.width>768?a={gridTemplateColumns:"8% 16.5% 5.8% 5.8% 5.8% 5.8% 5.8% 5.8% 5.8% 6% 20% 9%"}:e.width>480?a={gridTemplateColumns:"9% 18.5% 4.8% 4.8% 4.8% 4.8% 4.8% 4.8% 4.8% 10% 20% 9%"}:a={gridTemplateColumns:"9% 16.5% 4.8% 4.8% 4.8% 4.8% 4.8% 4.8% 4.8% 10% 22% 9%"}:e.width>768?a={gridTemplateColumns:"10% 21.5% 6.8% 6.8% 6.8% 6.8% 6.8% 6.8% 9.8% 6% 12%"}:e.width>480?a={gridTemplateColumns:"10% 21.5% 6.8% 6.8% 6.8% 6.8% 6.8% 6.8% 9.8% 6% 12%"}:a={gridTemplateColumns:"10% 21.5% 6.8% 6.8% 6.8% 6.8% 6.8% 6.8% 9.8% 6% 12%"},a}}},Uo=e=>(t.pushScopeId("data-v-333b2aca"),e=e(),t.popScopeId(),e),fm={class:"trRow",style:{width:"100%",margin:"0 auto"}},gm=Uo(()=>t.createElementVNode("div",{class:"head__itemhead"},"Pos.",-1)),ym={key:0,class:"head__itemhead"},bm=t.createStaticVNode('<div class="head__itemhead fontM" data-v-333b2aca>JJ</div><div class="head__itemhead fontM" data-v-333b2aca>JG</div><div class="head__itemhead fontM" data-v-333b2aca>JE</div><div class="head__itemhead fontM" data-v-333b2aca>JP</div><div class="head__itemhead fontM" data-v-333b2aca>GF</div><div class="head__itemhead fontM" data-v-333b2aca>GC</div><div class="head__itemhead fontM" data-v-333b2aca>DG</div><div class="head__itemhead fontM" data-v-333b2aca>PTS</div>',8),wm={key:1,class:"head__itemhead fontP"},_m={key:1,class:"movilTextLastGame"},Sm=Uo(()=>t.createElementVNode("br",null,null,-1)),km=Uo(()=>t.createElementVNode("div",{class:"head__itemhead fontP"},"Prox",-1)),Cm=["alt","title","src"],Bm={class:"hover-decorationTeam"},Em={class:"hover-decorationTeam"},Nm={key:0,class:"tdrow__itemtd"},xm={class:"tdrow__itemtd fontM"},Tm={key:1,class:"tdrow__itemtd itemtd-games"},Om={key:1},Vm=["src"];function $m(e,a,o,n,i,r){const s=t.resolveComponent("GSCButton");return t.openBlock(),t.createElementBlock("div",fm,[o.isheader?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle([o.isGames?r.customStyle:r.customStyleLanding,r.customGridM(n.elementSize)]),class:t.normalizeClass(["head",[n.elementSize.width>768?"fontSizeTextPC":n.elementSize.width>480?"fontSizeTextTablet":n.elementSize.width>360?"fontSizeTextMV":"fontSizeTextSM"]])},[gm,t.createElementVNode("div",{class:t.normalizeClass(["head__itemhead",n.elementSize.width>600?"leftText":"centerText"])},"Equipo",2),o.isVideos?(t.openBlock(),t.createElementBlock("div",ym," ")):t.createCommentVNode("",!0),bm,o.isGames?(t.openBlock(),t.createElementBlock("div",wm,[n.elementSize.width>580?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Últimos juegos")],64)):(t.openBlock(),t.createElementBlock("span",_m,[t.createTextVNode("Últimos "),Sm,t.createTextVNode("juegos")]))])):t.createCommentVNode("",!0),km],6)):t.createCommentVNode("",!0),t.createElementVNode("div",{ref:"myDivRef",onClick:a[11]||(a[11]=l=>r.btnAllOneClick(o.data.team_id)),class:t.normalizeClass(["tdrow",[n.elementSize.width>768?"fontSizeTextPCTD":n.elementSize.width>480?"fontSizeTextTabletTD":n.elementSize.width>360?"fontSizeTextMVTD":"fontSizeTextSMTD"]]),style:t.normalizeStyle([o.isGames?r.customStyleItem:r.customStyleItemLanding,r.customBg(o.isGames,o.data.team_id,o.teamSelected),r.customGridM(n.elementSize)])},[t.createElementVNode("div",{class:"tdrow__itemtd",style:t.normalizeStyle(o.isGames?"":"font-size:14px; font-family: Montserrat-Regular")},t.toDisplayString(o.data.table_position>9?o.data.table_position:"0"+o.data.table_position),5),t.createElementVNode("div",{onClick:a[0]||(a[0]=l=>r.goToTeamProfile(o.data.team_id)),class:t.normalizeClass(["tdrow__itemtd",n.elementSize.width>768?"itemtd-teampc":n.elementSize.width>600?"itemtd-teamtablet":n.elementSize.width>480?"itemtd-teammv":"itemtd-teamsm"])},[t.createElementVNode("img",{class:t.normalizeClass(["hover-decorationLogo",n.elementSize.width>768?"itemtd-teampc__img":n.elementSize.width>600?"itemtd-teamtablet__img":n.elementSize.width>480?"itemtd-teammv__img":"itemtd-teamsm__img"]),alt:o.data.team_name,title:o.data.team_name,src:o.data.team_logo},null,10,Cm),n.elementSize.width>600?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.elementSize.width>768?"itemtd-teampc__txt":n.elementSize.width>600?"itemtd-teamtablet__txt":n.elementSize.width>480?"itemtd-teammv__txt":"itemtd-teamsm__txt")},[t.createElementVNode("span",Bm,t.toDisplayString(o.data.team_short_name),1)],2)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.elementSize.width>768?"itemtd-teampc__txt":n.elementSize.width>600?"itemtd-teamtablet__txt":n.elementSize.width>480?"itemtd-teammv__txt":"itemtd-teamsm__txt")},[t.createElementVNode("span",Em,t.toDisplayString(o.data.team_short_name),1)],2))],2),o.isVideos?(t.openBlock(),t.createElementBlock("div",Nm,[n.elementSize.width>768?(t.openBlock(),t.createBlock(s,{key:0,icon:o.data.games_played>0?"http://golstatsimages.blob.core.windows.net/todoelfut/botonplay.png":"/botonplaydisabled.png","icon-position":"left","icon-size":"18px","text-value":"Ver videos",width:"98px",height:"30px","font-family":"Poppins-Medium","font-size":"10px","font-color":o.data.games_played>0?"#FFF":"#999","border-color":o.data.games_played>0?"#4B565F":"#2e3439","border-type":"solid",value:!0,"border-width":1,"background-color":o.data.games_played>0?"#2A3641":"rgba(42, 54, 65, .6)",onClick:a[1]||(a[1]=l=>o.data.games_played>0?r.setOpenMedia(o.data.team_id,2,3,0,0,"Juegos jugados",!1,o.data.games_played):void 0),"border-radius":"64px"},null,8,["icon","font-color","border-color","background-color"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[n.elementSize.width>560?(t.openBlock(),t.createBlock(s,{key:0,icon:o.data.games_played>0?"http://golstatsimages.blob.core.windows.net/todoelfut/botonplay.png":"/botonplaydisabled.png","icon-position":"left","icon-size":"18px","text-value":"",width:"26px",height:"26px","font-family":"Poppins-Medium","font-size":"10px","font-color":o.data.games_played>0?"#FFF":"#999","border-color":o.data.games_played>0?"#4B565F":"#2e3439","border-type":"solid","border-width":1,"background-color":o.data.games_played>0?"#2A3641":"rgba(42, 54, 65, .6)",onClick:a[2]||(a[2]=l=>o.data.games_played>0?r.setOpenMedia(o.data.team_id,2,3,0,0,"Juegos jugados",!1,o.data.games_played):void 0),"border-radius":"64px"},null,8,["icon","font-color","border-color","background-color"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[n.elementSize.width>400?(t.openBlock(),t.createBlock(s,{key:0,icon:o.data.games_played>0?"http://golstatsimages.blob.core.windows.net/todoelfut/botonplay.png":"/botonplaydisabled.png","icon-position":"left","icon-size":"18px","text-value":"",width:"21px",height:"21px","font-family":"Poppins-Medium","font-size":"10px","font-color":o.data.games_played>0?"#FFF":"#999","border-color":o.data.games_played>0?"#4B565F":"#2e3439","border-type":"solid","border-width":1,"background-color":o.data.games_played>0?"#2A3641":"rgba(42, 54, 65, .6)",onClick:a[3]||(a[3]=l=>o.data.games_played>0?r.setOpenMedia(o.data.team_id,2,3,0,0,"Juegos jugados",!1,o.data.games_played):void 0),"border-radius":"64px"},null,8,["icon","font-color","border-color","background-color"])):(t.openBlock(),t.createBlock(s,{key:1,icon:o.data.games_played>0?"http://golstatsimages.blob.core.windows.net/todoelfut/botonplay.png":"/botonplaydisabled.png","icon-position":"left","icon-size":"18px","text-value":"",width:"17px",height:"17px","font-family":"Poppins-Medium","font-size":"10px","font-color":o.data.games_played>0?"#FFF":"#999","border-color":o.data.games_played>0?"#4B565F":"#2e3439","border-type":"solid","border-width":1,"background-color":o.data.games_played>0?"#2A3641":"rgba(42, 54, 65, .6)",onClick:a[4]||(a[4]=l=>o.data.games_played>0?r.setOpenMedia(o.data.team_id,2,3,0,0,"Juegos jugados",!1,o.data.games_played):void 0),"border-radius":"64px"},null,8,["icon","font-color","border-color","background-color"]))],64))],64))])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"tdrow__itemtd fontM",onClick:a[5]||(a[5]=l=>r.setOpenMedia(o.data.team_id,2,3,0,0,"Juegos jugados",!1,o.data.games_played))},[t.createElementVNode("span",{class:t.normalizeClass(o.data.games_played!=0?"hover-decoration":"")},t.toDisplayString(o.data.games_played),3)]),t.createElementVNode("div",{class:"tdrow__itemtd fontM",onClick:a[6]||(a[6]=l=>r.setOpenMedia(o.data.team_id,2,3,1,0,"Juegos ganados",!1,o.data.games_won))},[t.createElementVNode("span",{class:t.normalizeClass(o.data.games_won!=0?"hover-decoration":"")},t.toDisplayString(o.data.games_won),3)]),t.createElementVNode("div",{class:"tdrow__itemtd fontM",onClick:a[7]||(a[7]=l=>r.setOpenMedia(o.data.team_id,2,3,3,0,"Juegos empatados",!1,o.data.games_tied))},[t.createElementVNode("span",{class:t.normalizeClass(o.data.games_tied!=0?"hover-decoration":"")},t.toDisplayString(o.data.games_tied),3)]),t.createElementVNode("div",{class:"tdrow__itemtd fontM",onClick:a[8]||(a[8]=l=>r.setOpenMedia(o.data.team_id,2,3,2,0,"Juegos perdidos",!1,o.data.games_lost))},[t.createElementVNode("span",{class:t.normalizeClass(o.data.games_lost!=0?"hover-decoration":"")},t.toDisplayString(o.data.games_lost),3)]),t.createElementVNode("div",{class:"tdrow__itemtd fontM",onClick:a[9]||(a[9]=l=>r.setOpenMedia(o.data.team_id,1,3,0,1e3,"Goles anotados",!1,o.data.goals_scored))},[t.createElementVNode("span",{class:t.normalizeClass(o.data.goals_scored!=0?"hover-decoration":"")},t.toDisplayString(o.data.goals_scored),3)]),t.createElementVNode("div",{class:"tdrow__itemtd fontM",onClick:a[10]||(a[10]=l=>r.setOpenMedia(o.data.team_id,3,3,0,1001,"Goles recibidos",!0,o.data.goals_received))},[t.createElementVNode("span",{class:t.normalizeClass(o.data.goals_received!=0?"hover-decoration":"")},t.toDisplayString(o.data.goals_received),3)]),t.createElementVNode("div",xm,t.toDisplayString(o.data.goals_difference),1),t.createElementVNode("div",{class:t.normalizeClass(["tdrow__itemtd",n.elementSize.width>768?"itemtd-penaltypc":n.elementSize.width>600?"itemtd-penaltytablet":n.elementSize.width>480?"itemtd-penaltymv":"itemtd-penaltysm"])},t.toDisplayString(o.data.points),3),o.isGames?(t.openBlock(),t.createElementBlock("div",Tm,[o.data.last_five_games.length>0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(o.data.last_five_games,(l,p)=>(t.openBlock(),t.createElementBlock("div",{key:p,class:t.normalizeClass([n.elementSize.width>768?"circlepc":n.elementSize.width>600?"circletablet":n.elementSize.width>480?"circlemv":"circlesm",l=="G"?"green":l=="E"?"gray":"red"])},t.toDisplayString(l),3))),128)):(t.openBlock(),t.createElementBlock("div",Om,"-"))])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["tdrow__itemtd",n.elementSize.width>768?"itemtd-nextpc":n.elementSize.width>600?"itemtd-nexttablet":n.elementSize.width>480?"itemtd-nextmv":"itemtd-nextsm"])},[o.data.next_rival_logo=="-"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(o.data.next_rival_logo),1)],64)):(t.openBlock(),t.createElementBlock("img",{key:1,class:t.normalizeClass(n.elementSize.width>768?"itemtd-nextpc__img":n.elementSize.width>600?"itemtd-nexttablet__img":n.elementSize.width>480?"itemtd-nextmv__img":"itemtd-nextsm__img"),src:o.data.next_rival_logo},null,10,Vm))],2)],6)])}const Am=um(hm,[["render",$m],["__scopeId","data-v-333b2aca"]]),zm=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},Ho={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},gr=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},yr=Ho.setup;Ho.setup=yr?(e,a)=>(gr(),yr(e,a)):gr;const Rm=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),Im=["src"],Fm={key:1,class:"text"},Pm=["src"],Lm={class:"stats"},Dm=Rm(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),Mm={class:"numstats"},jm={class:"leyend"};function vm(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",null,[o.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",i.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([r.customStyle,i.status&&o.typeOnOff&&r.customActive]),onClick:a[0]||(a[0]=(...s)=>r.btnClick&&r.btnClick(...s))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,Im)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",Fm,t.toDisplayString(o.textValue),1)):t.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,Pm)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...s)=>r.btnClick&&r.btnClick(...s))},[t.createElementVNode("div",Lm,[Dm,t.createElementVNode("div",Mm,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",jm,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const Wm=zm(Ho,[["render",vm],["__scopeId","data-v-fb269a1e"]]),Um={class:"gsc-dropdown__main-container__item-selected"},Hm=["height","width"],Gm=["stroke"],Jm={class:"gsc-dropdown__items-container"},qm=["onClick"],Zm={key:0,class:"gsc-dropdown__items-footer"},Xm={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:a}){const o=e,n=t.ref({}),i=t.ref(null),r=t.ref(o.isMultipleOption?-1:0),s=t.ref(!1);t.watch(()=>o.items,(f,u)=>{if(!o.modelValue&&(!o.onlyFirstTime||!u||!u.length)&&f&&f.length){if(o.defaultItemByProp){const g=o.items.findIndex(y=>y[o.defaultItemByProp.propName]===o.defaultItemByProp.value);g!==-1?(r.value=g,n.value=f[g]):(r.value=0,n.value=f[0])}else n.value=f[o.defaultItemByIndex];a("input",n.value)}},{immediate:!0}),t.watch(()=>o.modelValue,f=>{if(f){const u=o.items.findIndex(g=>typeof f=="object"?JSON.stringify(g)===JSON.stringify(f):g===f);u!==-1&&(r.value=u,n.value=o.items[u],a("update:modelValue",n.value))}},{immediate:!0});const l=t.computed(()=>({height:o.height,width:o.width,backgroundColor:o.backgroundColor,borderRadius:`${o.borderRadius}px`,border:`${o.borderType} ${o.borderWidth}px ${o.borderColor}`,color:o.color,"--hover-background-color":o.hoverBackgroundColor,"--list-item-padding":o.listItemPadding,"--list-background-color":o.listBackgroundColor,"--list-height":o.listHeight,"--list-item-selected-color":o.listItemSelectedColor,"--list-item-selected-background-color":o.listItemSelectedBackgroundColor,"--list-item-color":o.listItemColor,"--list-border-radius":`${o.listBorderRadius}`,"--list-border-color":o.listBorderColor,"--list-width":o.isListSameWidth?o.width:"fit-content","--list-border-width":`${o.listBorderWidth}px`,"--footer-border":`${o.footerBorderWidth}px solid ${o.footerBorderColor}`,"--dropdown-opacity":o.isDisabled?"0.5":"1","--dropdown-cursor":o.isDisabled?"not-allowed":"pointer","--dropdown-font-size":o.fontSize?o.fontSize:"14px"})),p=t.computed(()=>({height:`${o.arrowHeight}px`,width:`${o.arrowWidth}px`}));function d(){o.isDisabled||(s.value=!s.value)}function c(f){i.value&&!i.value.contains(f.target)&&(s.value=!1)}function h(f,u){o.isMultipleOption?r.value=-1:(r.value=u,s.value=!1),n.value=f,a("input",n.value),a("update:modelValue",n.value)}function m(){s.value=!1,a("click-ready")}return t.onMounted(()=>{document.addEventListener("click",c)}),t.onBeforeMount(()=>{document.removeEventListener("click",c)}),(f,u)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:i,class:"gsc-dropdown",style:t.normalizeStyle(l.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:d},[t.createElementVNode("div",Um,[t.renderSlot(f.$slots,"default",{selectedItem:n.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":s.value}]),style:t.normalizeStyle(p.value)},[(t.openBlock(),t.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,Gm)],8,Hm))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",Jm,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${o.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(g,y)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:y===r.value}]),key:y,onClick:C=>h(g,y)},[t.renderSlot(f.$slots,"availableItem",{item:g})],10,qm))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",Zm,[t.createVNode(t.unref(Wm),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:m})])):t.createCommentVNode("",!0)])],512),[[t.vShow,s.value]])]),_:3})],4))}};/**
|
|
1
|
+
(function(ve,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(ve=typeof globalThis<"u"?globalThis:ve||self,t(ve.GSCLanding={},ve.Vue))})(this,function(ve,t){"use strict";function Xa(e,a){return function(){return e.apply(a,arguments)}}const{toString:Fs}=Object.prototype,{getPrototypeOf:co}=Object,wt=(e=>a=>{const o=Fs.call(a);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),ke=e=>(e=e.toLowerCase(),a=>wt(a)===e),_t=e=>a=>typeof a===e,{isArray:Ge}=Array,tt=_t("undefined");function Ps(e){return e!==null&&!tt(e)&&e.constructor!==null&&!tt(e.constructor)&&le(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ka=ke("ArrayBuffer");function Ls(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&Ka(e.buffer),a}const Ds=_t("string"),le=_t("function"),Ya=_t("number"),St=e=>e!==null&&typeof e=="object",Ms=e=>e===!0||e===!1,kt=e=>{if(wt(e)!=="object")return!1;const a=co(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},js=ke("Date"),vs=ke("File"),Ws=ke("Blob"),Us=ke("FileList"),Hs=e=>St(e)&&le(e.pipe),Gs=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||le(e.append)&&((a=wt(e))==="formdata"||a==="object"&&le(e.toString)&&e.toString()==="[object FormData]"))},Js=ke("URLSearchParams"),qs=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ot(e,a,{allOwnKeys:o=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),Ge(e))for(n=0,i=e.length;n<i;n++)a.call(null,e[n],n,e);else{const r=o?Object.getOwnPropertyNames(e):Object.keys(e),s=r.length;let l;for(n=0;n<s;n++)l=r[n],a.call(null,e[l],l,e)}}function Qa(e,a){a=a.toLowerCase();const o=Object.keys(e);let n=o.length,i;for(;n-- >0;)if(i=o[n],a===i.toLowerCase())return i;return null}const en=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,tn=e=>!tt(e)&&e!==en;function mo(){const{caseless:e}=tn(this)&&this||{},a={},o=(n,i)=>{const r=e&&Qa(a,i)||i;kt(a[r])&&kt(n)?a[r]=mo(a[r],n):kt(n)?a[r]=mo({},n):Ge(n)?a[r]=n.slice():a[r]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&ot(arguments[n],o);return a}const Zs=(e,a,o,{allOwnKeys:n}={})=>(ot(a,(i,r)=>{o&&le(i)?e[r]=Xa(i,o):e[r]=i},{allOwnKeys:n}),e),Xs=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ks=(e,a,o,n)=>{e.prototype=Object.create(a.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),o&&Object.assign(e.prototype,o)},Ys=(e,a,o,n)=>{let i,r,s;const l={};if(a=a||{},e==null)return a;do{for(i=Object.getOwnPropertyNames(e),r=i.length;r-- >0;)s=i[r],(!n||n(s,e,a))&&!l[s]&&(a[s]=e[s],l[s]=!0);e=o!==!1&&co(e)}while(e&&(!o||o(e,a))&&e!==Object.prototype);return a},Qs=(e,a,o)=>{e=String(e),(o===void 0||o>e.length)&&(o=e.length),o-=a.length;const n=e.indexOf(a,o);return n!==-1&&n===o},el=e=>{if(!e)return null;if(Ge(e))return e;let a=e.length;if(!Ya(a))return null;const o=new Array(a);for(;a-- >0;)o[a]=e[a];return o},tl=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&co(Uint8Array)),ol=(e,a)=>{const n=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=n.next())&&!i.done;){const r=i.value;a.call(e,r[0],r[1])}},al=(e,a)=>{let o;const n=[];for(;(o=e.exec(a))!==null;)n.push(o);return n},nl=ke("HTMLFormElement"),rl=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,n,i){return n.toUpperCase()+i}),on=(({hasOwnProperty:e})=>(a,o)=>e.call(a,o))(Object.prototype),il=ke("RegExp"),an=(e,a)=>{const o=Object.getOwnPropertyDescriptors(e),n={};ot(o,(i,r)=>{let s;(s=a(i,r,e))!==!1&&(n[r]=s||i)}),Object.defineProperties(e,n)},sl=e=>{an(e,(a,o)=>{if(le(e)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const n=e[o];if(le(n)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},ll=(e,a)=>{const o={},n=i=>{i.forEach(r=>{o[r]=!0})};return Ge(e)?n(e):n(String(e).split(a)),o},cl=()=>{},dl=(e,a)=>(e=+e,Number.isFinite(e)?e:a),po="abcdefghijklmnopqrstuvwxyz",nn="0123456789",rn={DIGIT:nn,ALPHA:po,ALPHA_DIGIT:po+po.toUpperCase()+nn},ml=(e=16,a=rn.ALPHA_DIGIT)=>{let o="";const{length:n}=a;for(;e--;)o+=a[Math.random()*n|0];return o};function pl(e){return!!(e&&le(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const ul=e=>{const a=new Array(10),o=(n,i)=>{if(St(n)){if(a.indexOf(n)>=0)return;if(!("toJSON"in n)){a[i]=n;const r=Ge(n)?[]:{};return ot(n,(s,l)=>{const p=o(s,i+1);!tt(p)&&(r[l]=p)}),a[i]=void 0,r}}return n};return o(e,0)},hl=ke("AsyncFunction"),w={isArray:Ge,isArrayBuffer:Ka,isBuffer:Ps,isFormData:Gs,isArrayBufferView:Ls,isString:Ds,isNumber:Ya,isBoolean:Ms,isObject:St,isPlainObject:kt,isUndefined:tt,isDate:js,isFile:vs,isBlob:Ws,isRegExp:il,isFunction:le,isStream:Hs,isURLSearchParams:Js,isTypedArray:tl,isFileList:Us,forEach:ot,merge:mo,extend:Zs,trim:qs,stripBOM:Xs,inherits:Ks,toFlatObject:Ys,kindOf:wt,kindOfTest:ke,endsWith:Qs,toArray:el,forEachEntry:ol,matchAll:al,isHTMLForm:nl,hasOwnProperty:on,hasOwnProp:on,reduceDescriptors:an,freezeMethods:sl,toObjectSet:ll,toCamelCase:rl,noop:cl,toFiniteNumber:dl,findKey:Qa,global:en,isContextDefined:tn,ALPHABET:rn,generateString:ml,isSpecCompliantForm:pl,toJSONObject:ul,isAsyncFn:hl,isThenable:e=>e&&(St(e)||le(e))&&le(e.then)&&le(e.catch)};function I(e,a,o,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),o&&(this.config=o),n&&(this.request=n),i&&(this.response=i)}w.inherits(I,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:w.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const sn=I.prototype,ln={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ln[e]={value:e}}),Object.defineProperties(I,ln),Object.defineProperty(sn,"isAxiosError",{value:!0}),I.from=(e,a,o,n,i,r)=>{const s=Object.create(sn);return w.toFlatObject(e,s,function(p){return p!==Error.prototype},l=>l!=="isAxiosError"),I.call(s,e.message,a,o,n,i),s.cause=e,s.name=e.name,r&&Object.assign(s,r),s};const fl=null;function uo(e){return w.isPlainObject(e)||w.isArray(e)}function cn(e){return w.endsWith(e,"[]")?e.slice(0,-2):e}function dn(e,a,o){return e?e.concat(a).map(function(i,r){return i=cn(i),!o&&r?"["+i+"]":i}).join(o?".":""):a}function gl(e){return w.isArray(e)&&!e.some(uo)}const yl=w.toFlatObject(w,{},null,function(a){return/^is[A-Z]/.test(a)});function Ct(e,a,o){if(!w.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,o=w.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,y){return!w.isUndefined(y[f])});const n=o.metaTokens,i=o.visitor||m,r=o.dots,s=o.indexes,p=(o.Blob||typeof Blob<"u"&&Blob)&&w.isSpecCompliantForm(a);if(!w.isFunction(i))throw new TypeError("visitor must be a function");function c(h){if(h===null)return"";if(w.isDate(h))return h.toISOString();if(!p&&w.isBlob(h))throw new I("Blob is not supported. Use a Buffer instead.");return w.isArrayBuffer(h)||w.isTypedArray(h)?p&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function m(h,f,y){let C=h;if(h&&!y&&typeof h=="object"){if(w.endsWith(f,"{}"))f=n?f:f.slice(0,-2),h=JSON.stringify(h);else if(w.isArray(h)&&gl(h)||(w.isFileList(h)||w.endsWith(f,"[]"))&&(C=w.toArray(h)))return f=cn(f),C.forEach(function(v,U){!(w.isUndefined(v)||v===null)&&a.append(s===!0?dn([f],U,r):s===null?f:f+"[]",c(v))}),!1}return uo(h)?!0:(a.append(dn(y,f,r),c(h)),!1)}const u=[],g=Object.assign(yl,{defaultVisitor:m,convertValue:c,isVisitable:uo});function d(h,f){if(!w.isUndefined(h)){if(u.indexOf(h)!==-1)throw Error("Circular reference detected in "+f.join("."));u.push(h),w.forEach(h,function(C,A){(!(w.isUndefined(C)||C===null)&&i.call(a,C,w.isString(A)?A.trim():A,f,g))===!0&&d(C,f?f.concat(A):[A])}),u.pop()}}if(!w.isObject(e))throw new TypeError("data must be an object");return d(e),a}function mn(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return a[n]})}function ho(e,a){this._pairs=[],e&&Ct(e,this,a)}const pn=ho.prototype;pn.append=function(a,o){this._pairs.push([a,o])},pn.toString=function(a){const o=a?function(n){return a.call(this,n,mn)}:mn;return this._pairs.map(function(i){return o(i[0])+"="+o(i[1])},"").join("&")};function bl(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function un(e,a,o){if(!a)return e;const n=o&&o.encode||bl,i=o&&o.serialize;let r;if(i?r=i(a,o):r=w.isURLSearchParams(a)?a.toString():new ho(a,o).toString(n),r){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}class hn{constructor(){this.handlers=[]}use(a,o,n){return this.handlers.push({fulfilled:a,rejected:o,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){w.forEach(this.handlers,function(n){n!==null&&a(n)})}}const fn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},wl={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:ho,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},gn=typeof window<"u"&&typeof document<"u",_l=(e=>gn&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Sl=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Ce={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:gn,hasStandardBrowserEnv:_l,hasStandardBrowserWebWorkerEnv:Sl},Symbol.toStringTag,{value:"Module"})),...wl};function kl(e,a){return Ct(e,new Ce.classes.URLSearchParams,Object.assign({visitor:function(o,n,i,r){return Ce.isNode&&w.isBuffer(o)?(this.append(n,o.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},a))}function Cl(e){return w.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function Bl(e){const a={},o=Object.keys(e);let n;const i=o.length;let r;for(n=0;n<i;n++)r=o[n],a[r]=e[r];return a}function yn(e){function a(o,n,i,r){let s=o[r++];if(s==="__proto__")return!0;const l=Number.isFinite(+s),p=r>=o.length;return s=!s&&w.isArray(i)?i.length:s,p?(w.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!l):((!i[s]||!w.isObject(i[s]))&&(i[s]=[]),a(o,n,i[s],r)&&w.isArray(i[s])&&(i[s]=Bl(i[s])),!l)}if(w.isFormData(e)&&w.isFunction(e.entries)){const o={};return w.forEachEntry(e,(n,i)=>{a(Cl(n),i,o,0)}),o}return null}function El(e,a,o){if(w.isString(e))try{return(a||JSON.parse)(e),w.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(o||JSON.stringify)(e)}const fo={transitional:fn,adapter:["xhr","http"],transformRequest:[function(a,o){const n=o.getContentType()||"",i=n.indexOf("application/json")>-1,r=w.isObject(a);if(r&&w.isHTMLForm(a)&&(a=new FormData(a)),w.isFormData(a))return i?JSON.stringify(yn(a)):a;if(w.isArrayBuffer(a)||w.isBuffer(a)||w.isStream(a)||w.isFile(a)||w.isBlob(a))return a;if(w.isArrayBufferView(a))return a.buffer;if(w.isURLSearchParams(a))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),a.toString();let l;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return kl(a,this.formSerializer).toString();if((l=w.isFileList(a))||n.indexOf("multipart/form-data")>-1){const p=this.env&&this.env.FormData;return Ct(l?{"files[]":a}:a,p&&new p,this.formSerializer)}}return r||i?(o.setContentType("application/json",!1),El(a)):a}],transformResponse:[function(a){const o=this.transitional||fo.transitional,n=o&&o.forcedJSONParsing,i=this.responseType==="json";if(a&&w.isString(a)&&(n&&!this.responseType||i)){const s=!(o&&o.silentJSONParsing)&&i;try{return JSON.parse(a)}catch(l){if(s)throw l.name==="SyntaxError"?I.from(l,I.ERR_BAD_RESPONSE,this,null,this.response):l}}return a}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ce.classes.FormData,Blob:Ce.classes.Blob},validateStatus:function(a){return a>=200&&a<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};w.forEach(["delete","get","head","post","put","patch"],e=>{fo.headers[e]={}});const go=fo,Nl=w.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),xl=e=>{const a={};let o,n,i;return e&&e.split(`
|
|
2
|
+
`).forEach(function(s){i=s.indexOf(":"),o=s.substring(0,i).trim().toLowerCase(),n=s.substring(i+1).trim(),!(!o||a[o]&&Nl[o])&&(o==="set-cookie"?a[o]?a[o].push(n):a[o]=[n]:a[o]=a[o]?a[o]+", "+n:n)}),a},bn=Symbol("internals");function at(e){return e&&String(e).trim().toLowerCase()}function Bt(e){return e===!1||e==null?e:w.isArray(e)?e.map(Bt):String(e)}function Tl(e){const a=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=o.exec(e);)a[n[1]]=n[2];return a}const Ol=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function yo(e,a,o,n,i){if(w.isFunction(n))return n.call(this,a,o);if(i&&(a=o),!!w.isString(a)){if(w.isString(n))return a.indexOf(n)!==-1;if(w.isRegExp(n))return n.test(a)}}function Vl(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,o,n)=>o.toUpperCase()+n)}function $l(e,a){const o=w.toCamelCase(" "+a);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+o,{value:function(i,r,s){return this[n].call(this,a,i,r,s)},configurable:!0})})}class Et{constructor(a){a&&this.set(a)}set(a,o,n){const i=this;function r(l,p,c){const m=at(p);if(!m)throw new Error("header name must be a non-empty string");const u=w.findKey(i,m);(!u||i[u]===void 0||c===!0||c===void 0&&i[u]!==!1)&&(i[u||p]=Bt(l))}const s=(l,p)=>w.forEach(l,(c,m)=>r(c,m,p));return w.isPlainObject(a)||a instanceof this.constructor?s(a,o):w.isString(a)&&(a=a.trim())&&!Ol(a)?s(xl(a),o):a!=null&&r(o,a,n),this}get(a,o){if(a=at(a),a){const n=w.findKey(this,a);if(n){const i=this[n];if(!o)return i;if(o===!0)return Tl(i);if(w.isFunction(o))return o.call(this,i,n);if(w.isRegExp(o))return o.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,o){if(a=at(a),a){const n=w.findKey(this,a);return!!(n&&this[n]!==void 0&&(!o||yo(this,this[n],n,o)))}return!1}delete(a,o){const n=this;let i=!1;function r(s){if(s=at(s),s){const l=w.findKey(n,s);l&&(!o||yo(n,n[l],l,o))&&(delete n[l],i=!0)}}return w.isArray(a)?a.forEach(r):r(a),i}clear(a){const o=Object.keys(this);let n=o.length,i=!1;for(;n--;){const r=o[n];(!a||yo(this,this[r],r,a,!0))&&(delete this[r],i=!0)}return i}normalize(a){const o=this,n={};return w.forEach(this,(i,r)=>{const s=w.findKey(n,r);if(s){o[s]=Bt(i),delete o[r];return}const l=a?Vl(r):String(r).trim();l!==r&&delete o[r],o[l]=Bt(i),n[l]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const o=Object.create(null);return w.forEach(this,(n,i)=>{n!=null&&n!==!1&&(o[i]=a&&w.isArray(n)?n.join(", "):n)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,o])=>a+": "+o).join(`
|
|
3
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...o){const n=new this(a);return o.forEach(i=>n.set(i)),n}static accessor(a){const n=(this[bn]=this[bn]={accessors:{}}).accessors,i=this.prototype;function r(s){const l=at(s);n[l]||($l(i,s),n[l]=!0)}return w.isArray(a)?a.forEach(r):r(a),this}}Et.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),w.reduceDescriptors(Et.prototype,({value:e},a)=>{let o=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(n){this[o]=n}}}),w.freezeMethods(Et);const ze=Et;function bo(e,a){const o=this||go,n=a||o,i=ze.from(n.headers);let r=n.data;return w.forEach(e,function(l){r=l.call(o,r,i.normalize(),a?a.status:void 0)}),i.normalize(),r}function wn(e){return!!(e&&e.__CANCEL__)}function nt(e,a,o){I.call(this,e??"canceled",I.ERR_CANCELED,a,o),this.name="CanceledError"}w.inherits(nt,I,{__CANCEL__:!0});function Al(e,a,o){const n=o.config.validateStatus;!o.status||!n||n(o.status)?e(o):a(new I("Request failed with status code "+o.status,[I.ERR_BAD_REQUEST,I.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}const zl=Ce.hasStandardBrowserEnv?{write(e,a,o,n,i,r){const s=[e+"="+encodeURIComponent(a)];w.isNumber(o)&&s.push("expires="+new Date(o).toGMTString()),w.isString(n)&&s.push("path="+n),w.isString(i)&&s.push("domain="+i),r===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const a=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Rl(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Il(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function _n(e,a){return e&&!Rl(a)?Il(e,a):a}const Fl=Ce.hasStandardBrowserEnv?function(){const a=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");let n;function i(r){let s=r;return a&&(o.setAttribute("href",s),s=o.href),o.setAttribute("href",s),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:o.pathname.charAt(0)==="/"?o.pathname:"/"+o.pathname}}return n=i(window.location.href),function(s){const l=w.isString(s)?i(s):s;return l.protocol===n.protocol&&l.host===n.host}}():function(){return function(){return!0}}();function Pl(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function Ll(e,a){e=e||10;const o=new Array(e),n=new Array(e);let i=0,r=0,s;return a=a!==void 0?a:1e3,function(p){const c=Date.now(),m=n[r];s||(s=c),o[i]=p,n[i]=c;let u=r,g=0;for(;u!==i;)g+=o[u++],u=u%e;if(i=(i+1)%e,i===r&&(r=(r+1)%e),c-s<a)return;const d=m&&c-m;return d?Math.round(g*1e3/d):void 0}}function Sn(e,a){let o=0;const n=Ll(50,250);return i=>{const r=i.loaded,s=i.lengthComputable?i.total:void 0,l=r-o,p=n(l),c=r<=s;o=r;const m={loaded:r,total:s,progress:s?r/s:void 0,bytes:l,rate:p||void 0,estimated:p&&s&&c?(s-r)/p:void 0,event:i};m[a?"download":"upload"]=!0,e(m)}}const wo={http:fl,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(o,n){let i=e.data;const r=ze.from(e.headers).normalize();let{responseType:s,withXSRFToken:l}=e,p;function c(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}let m;if(w.isFormData(i)){if(Ce.hasStandardBrowserEnv||Ce.hasStandardBrowserWebWorkerEnv)r.setContentType(!1);else if((m=r.getContentType())!==!1){const[f,...y]=m?m.split(";").map(C=>C.trim()).filter(Boolean):[];r.setContentType([f||"multipart/form-data",...y].join("; "))}}let u=new XMLHttpRequest;if(e.auth){const f=e.auth.username||"",y=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";r.set("Authorization","Basic "+btoa(f+":"+y))}const g=_n(e.baseURL,e.url);u.open(e.method.toUpperCase(),un(g,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function d(){if(!u)return;const f=ze.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),C={data:!s||s==="text"||s==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:f,config:e,request:u};Al(function(v){o(v),c()},function(v){n(v),c()},C),u=null}if("onloadend"in u?u.onloadend=d:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(d)},u.onabort=function(){u&&(n(new I("Request aborted",I.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new I("Network Error",I.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let y=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const C=e.transitional||fn;e.timeoutErrorMessage&&(y=e.timeoutErrorMessage),n(new I(y,C.clarifyTimeoutError?I.ETIMEDOUT:I.ECONNABORTED,e,u)),u=null},Ce.hasStandardBrowserEnv&&(l&&w.isFunction(l)&&(l=l(e)),l||l!==!1&&Fl(g))){const f=e.xsrfHeaderName&&e.xsrfCookieName&&zl.read(e.xsrfCookieName);f&&r.set(e.xsrfHeaderName,f)}i===void 0&&r.setContentType(null),"setRequestHeader"in u&&w.forEach(r.toJSON(),function(y,C){u.setRequestHeader(C,y)}),w.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&s!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",Sn(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",Sn(e.onUploadProgress)),(e.cancelToken||e.signal)&&(p=f=>{u&&(n(!f||f.type?new nt(null,e,u):f),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p)));const h=Pl(g);if(h&&Ce.protocols.indexOf(h)===-1){n(new I("Unsupported protocol "+h+":",I.ERR_BAD_REQUEST,e));return}u.send(i||null)})}};w.forEach(wo,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const kn=e=>`- ${e}`,Dl=e=>w.isFunction(e)||e===null||e===!1,Cn={getAdapter:e=>{e=w.isArray(e)?e:[e];const{length:a}=e;let o,n;const i={};for(let r=0;r<a;r++){o=e[r];let s;if(n=o,!Dl(o)&&(n=wo[(s=String(o)).toLowerCase()],n===void 0))throw new I(`Unknown adapter '${s}'`);if(n)break;i[s||"#"+r]=n}if(!n){const r=Object.entries(i).map(([l,p])=>`adapter ${l} `+(p===!1?"is not supported by the environment":"is not available in the build"));let s=a?r.length>1?`since :
|
|
4
|
+
`+r.map(kn).join(`
|
|
5
|
+
`):" "+kn(r[0]):"as no adapter specified";throw new I("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:wo};function _o(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new nt(null,e)}function Bn(e){return _o(e),e.headers=ze.from(e.headers),e.data=bo.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Cn.getAdapter(e.adapter||go.adapter)(e).then(function(n){return _o(e),n.data=bo.call(e,e.transformResponse,n),n.headers=ze.from(n.headers),n},function(n){return wn(n)||(_o(e),n&&n.response&&(n.response.data=bo.call(e,e.transformResponse,n.response),n.response.headers=ze.from(n.response.headers))),Promise.reject(n)})}const En=e=>e instanceof ze?e.toJSON():e;function Je(e,a){a=a||{};const o={};function n(c,m,u){return w.isPlainObject(c)&&w.isPlainObject(m)?w.merge.call({caseless:u},c,m):w.isPlainObject(m)?w.merge({},m):w.isArray(m)?m.slice():m}function i(c,m,u){if(w.isUndefined(m)){if(!w.isUndefined(c))return n(void 0,c,u)}else return n(c,m,u)}function r(c,m){if(!w.isUndefined(m))return n(void 0,m)}function s(c,m){if(w.isUndefined(m)){if(!w.isUndefined(c))return n(void 0,c)}else return n(void 0,m)}function l(c,m,u){if(u in a)return n(c,m);if(u in e)return n(void 0,c)}const p={url:r,method:r,data:r,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(c,m)=>i(En(c),En(m),!0)};return w.forEach(Object.keys(Object.assign({},e,a)),function(m){const u=p[m]||i,g=u(e[m],a[m],m);w.isUndefined(g)&&u!==l||(o[m]=g)}),o}const Nn="1.6.7",So={};["object","boolean","number","function","string","symbol"].forEach((e,a)=>{So[e]=function(n){return typeof n===e||"a"+(a<1?"n ":" ")+e}});const xn={};So.transitional=function(a,o,n){function i(r,s){return"[Axios v"+Nn+"] Transitional option '"+r+"'"+s+(n?". "+n:"")}return(r,s,l)=>{if(a===!1)throw new I(i(s," has been removed"+(o?" in "+o:"")),I.ERR_DEPRECATED);return o&&!xn[s]&&(xn[s]=!0,console.warn(i(s," has been deprecated since v"+o+" and will be removed in the near future"))),a?a(r,s,l):!0}};function Ml(e,a,o){if(typeof e!="object")throw new I("options must be an object",I.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const r=n[i],s=a[r];if(s){const l=e[r],p=l===void 0||s(l,r,e);if(p!==!0)throw new I("option "+r+" must be "+p,I.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new I("Unknown option "+r,I.ERR_BAD_OPTION)}}const ko={assertOptions:Ml,validators:So},Pe=ko.validators;class Nt{constructor(a){this.defaults=a,this.interceptors={request:new hn,response:new hn}}async request(a,o){try{return await this._request(a,o)}catch(n){if(n instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const r=i.stack?i.stack.replace(/^.+\n/,""):"";n.stack?r&&!String(n.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
6
|
+
`+r):n.stack=r}throw n}}_request(a,o){typeof a=="string"?(o=o||{},o.url=a):o=a||{},o=Je(this.defaults,o);const{transitional:n,paramsSerializer:i,headers:r}=o;n!==void 0&&ko.assertOptions(n,{silentJSONParsing:Pe.transitional(Pe.boolean),forcedJSONParsing:Pe.transitional(Pe.boolean),clarifyTimeoutError:Pe.transitional(Pe.boolean)},!1),i!=null&&(w.isFunction(i)?o.paramsSerializer={serialize:i}:ko.assertOptions(i,{encode:Pe.function,serialize:Pe.function},!0)),o.method=(o.method||this.defaults.method||"get").toLowerCase();let s=r&&w.merge(r.common,r[o.method]);r&&w.forEach(["delete","get","head","post","put","patch","common"],h=>{delete r[h]}),o.headers=ze.concat(s,r);const l=[];let p=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(o)===!1||(p=p&&f.synchronous,l.unshift(f.fulfilled,f.rejected))});const c=[];this.interceptors.response.forEach(function(f){c.push(f.fulfilled,f.rejected)});let m,u=0,g;if(!p){const h=[Bn.bind(this),void 0];for(h.unshift.apply(h,l),h.push.apply(h,c),g=h.length,m=Promise.resolve(o);u<g;)m=m.then(h[u++],h[u++]);return m}g=l.length;let d=o;for(u=0;u<g;){const h=l[u++],f=l[u++];try{d=h(d)}catch(y){f.call(this,y);break}}try{m=Bn.call(this,d)}catch(h){return Promise.reject(h)}for(u=0,g=c.length;u<g;)m=m.then(c[u++],c[u++]);return m}getUri(a){a=Je(this.defaults,a);const o=_n(a.baseURL,a.url);return un(o,a.params,a.paramsSerializer)}}w.forEach(["delete","get","head","options"],function(a){Nt.prototype[a]=function(o,n){return this.request(Je(n||{},{method:a,url:o,data:(n||{}).data}))}}),w.forEach(["post","put","patch"],function(a){function o(n){return function(r,s,l){return this.request(Je(l||{},{method:a,headers:n?{"Content-Type":"multipart/form-data"}:{},url:r,data:s}))}}Nt.prototype[a]=o(),Nt.prototype[a+"Form"]=o(!0)});const xt=Nt;class Co{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(r){o=r});const n=this;this.promise.then(i=>{if(!n._listeners)return;let r=n._listeners.length;for(;r-- >0;)n._listeners[r](i);n._listeners=null}),this.promise.then=i=>{let r;const s=new Promise(l=>{n.subscribe(l),r=l}).then(i);return s.cancel=function(){n.unsubscribe(r)},s},a(function(r,s,l){n.reason||(n.reason=new nt(r,s,l),o(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const o=this._listeners.indexOf(a);o!==-1&&this._listeners.splice(o,1)}static source(){let a;return{token:new Co(function(i){a=i}),cancel:a}}}const jl=Co;function vl(e){return function(o){return e.apply(null,o)}}function Wl(e){return w.isObject(e)&&e.isAxiosError===!0}const Bo={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(Bo).forEach(([e,a])=>{Bo[a]=e});const Ul=Bo;function Tn(e){const a=new xt(e),o=Xa(xt.prototype.request,a);return w.extend(o,xt.prototype,a,{allOwnKeys:!0}),w.extend(o,a,null,{allOwnKeys:!0}),o.create=function(i){return Tn(Je(e,i))},o}const H=Tn(go);H.Axios=xt,H.CanceledError=nt,H.CancelToken=jl,H.isCancel=wn,H.VERSION=Nn,H.toFormData=Ct,H.AxiosError=I,H.Cancel=H.CanceledError,H.all=function(a){return Promise.all(a)},H.spread=vl,H.isAxiosError=Wl,H.mergeConfig=Je,H.AxiosHeaders=ze,H.formToJSON=e=>yn(w.isHTMLForm(e)?new FormData(e):e),H.getAdapter=Cn.getAdapter,H.HttpStatusCode=Ul,H.default=H;const Tt=H;function Hl(e){const a=t.ref({width:0,height:0});function o(){const n=e.value.getBoundingClientRect();a.value.width=n.width,a.value.height=n.height}return t.onMounted(()=>{o(),window.addEventListener("resize",o)}),t.onUnmounted(()=>{window.removeEventListener("resize",o)}),{elementSize:a}}const Eo=new Map([[1,"Portero"],[2,"Defensa Central"],[3,"Lateral por izquierda"],[4,"Lateral por derecha"],[5,"Volante por izquierda"],[6,"Volante por derecha"],[7,"Volante defensivo"],[8,"Volante ofensivo"],[9,"Delantero "],[10,"Desconocida"]]),ie=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},Gl={class:"player-card"},Jl={class:"player-card__image"},ql=["src"],Zl={class:"player-card__number"},Xl={class:"player-card__right-data"},Kl={class:"player-card__details"},Yl={class:"player-card__name"},Ql={class:"player-card__position"},ec=ie({__name:"GSCPlayerCard",props:{countryFlag:{type:String,default:""},jersey:{type:Number,default:0},age:{type:Number,default:18},nationality:{type:String,default:"-"},name:{type:String,default:"-"},position_id:{type:Number,default:0},position:{type:String,default:"-"},photo:{type:String,default:""},photoNoBg:{type:String,default:""},isImgFullWidth:{type:Boolean,default:!1}},emits:["clickProfileBtn"],setup(e,{emit:a}){return(o,n)=>(t.openBlock(),t.createElementBlock("div",Gl,[t.createElementVNode("div",Jl,[t.createElementVNode("img",{class:t.normalizeClass(["player-card__photo",{"full-width":e.isImgFullWidth}]),src:e.photo,alt:"Player Image"},null,10,ql),t.createElementVNode("div",Zl,t.toDisplayString(e.jersey),1),t.createElementVNode("div",Xl,[t.createElementVNode("button",{class:"player-card__profile-button",onClick:n[0]||(n[0]=i=>a("clickProfileBtn"))}," Ver perfil ")])]),t.createElementVNode("div",Kl,[t.createElementVNode("p",Yl,t.toDisplayString(e.name),1),t.createElementVNode("p",Ql,t.toDisplayString(t.unref(Eo).get(e.position_id)),1)])]))}},[["__scopeId","data-v-caa30d1f"]]),tc=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},No={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)}}},On=()=>{t.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},Vn=No.setup;No.setup=Vn?(e,a)=>(On(),Vn(e,a)):On;const oc={ref:"gscScrollableContainer",class:"scrollable-container"},ac={class:"scrollable-arrows"},nc=["width","height","viewBox"],rc=["stroke"],ic={class:"scrollable-wrapper"},sc={class:"scrollable-arrows"},lc=["width","height","viewBox"],cc=["stroke"];function dc(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",oc,[o.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",r.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...s)=>r.scrollLeft&&r.scrollLeft(...s))},[t.createElementVNode("div",ac,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:r.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:o.arrowsColor},null,8,rc)],8,nc))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:a[1]||(a[1]=(...s)=>r.getScroll&&r.getScroll(...s))},[t.createElementVNode("div",ic,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),o.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",r.hideShowRightArrow]),onClick:a[2]||(a[2]=(...s)=>r.scrollRight&&r.scrollRight(...s))},[t.createElementVNode("div",sc,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:r.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:o.arrowsColor},null,8,cc)],8,lc))])],2)):t.createCommentVNode("",!0)],512)}const rt=tc(No,[["render",dc],["__scopeId","data-v-b548a08d"]]),$n=e=>(t.pushScopeId("data-v-34ea0cee"),e=e(),t.popScopeId(),e),mc={class:"my-players"},pc={class:"my-players__header"},uc={class:"my-players__title"},hc=[$n(()=>t.createElementVNode("span",{style:{"text-decoration-line":"underline"}},"Ver todos",-1)),$n(()=>t.createElementVNode("span",null,"→",-1))],fc={class:"my-players__list"},gc=ie({__name:"GSCPlayersLanding",props:{isPlayer:{type:Boolean,default:!1},isImgFullWidth:{type:Boolean,default:!0},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MzE4ODAsIm5hbWUiOiJHb2xTdGF0cyIsInVzZXJuYW1lIjoiYnJpenVlbGEiLCJlbWFpbCI6IiIsInByb3ZpZGVyX2lkIjoxLCJsb2dpbl9nb2xzdGF0cyI6MSwiaWF0IjoxNjk4NzIzODA1LCJleHAiOjE3MzAyNTk4MDV9.3DR48YLPVAQKTisQg9SABSqDdurMuS6_z7IJfjXRlPQ"},playerId:{type:Number,default:34605},teamId:{type:Number,default:2},seasonId:{type:Number,default:1772}},emits:["viewAll","clickProfileBtn","totalPlayers"],setup(e,{emit:a}){const o=e,n=t.ref([]),i=t.ref(0),r=t.ref(0);t.onMounted(async()=>{const l=await s(o.teamId,o.seasonId,o.token);r.value=l.length,n.value=l.map(p=>({...p,position:Eo.get(p.position_id)})),o.isPlayer&&o.playerId&&(n.value=l.filter(p=>p.player_id!==o.playerId)),a("totalPlayers",r.value)});const s=async(l,p,c)=>{var u;const m="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";try{return((u=(await(await fetch(`https://pa3kubpuhg.execute-api.us-west-2.amazonaws.com/prod/playersByTeamAndSeason/${p}/${l}`,{headers:{Authorization:c||m}})).json())[0])==null?void 0:u.players)||[]}catch(g){return Promise.reject(g)}};return t.watch(()=>o.seasonId,async(l,p)=>{n.value=[];const c=await s(o.teamId,l,o.token);r.value=c.length,n.value=c.map(m=>({...m,position:Eo.get(m.position_id)})),a("totalPlayers",r.value),i.value+=1}),(l,p)=>(t.openBlock(),t.createElementBlock("div",mc,[t.createElementVNode("div",pc,[t.createElementVNode("h3",uc,t.toDisplayString(e.isPlayer?"Mis compañeros":"Mis jugadores"),1),t.createElementVNode("button",{class:"my-players__button",onClick:p[0]||(p[0]=c=>a("viewAll"))},hc)]),(t.openBlock(),t.createBlock(t.unref(rt),{pxScroll:209,scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!1,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"none",arrowsContainerBgR:"none",arrowsMargin:0,arrowsRadius:"50%",key:i.value,arrowsBorder:"#ddd"},{default:t.withCtx(()=>[t.createElementVNode("div",fc,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.value,c=>(t.openBlock(),t.createBlock(ec,t.mergeProps(c,{isImgFullWidth:e.isImgFullWidth,onClickProfileBtn:m=>a("clickProfileBtn",c),key:c.player_id}),null,16,["isImgFullWidth","onClickProfileBtn"]))),128))])]),_:1}))]))}},[["__scopeId","data-v-34ea0cee"]]),xo="data:image/svg+xml,%3csvg%20width='69'%20height='70'%20viewBox='0%200%2069%2070'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23filter0_b_3196_29756)'%3e%3crect%20x='29'%20y='35'%20width='11'%20height='11'%20rx='1'%20fill='white'%20fill-opacity='0.08'/%3e%3crect%20x='29.5'%20y='35.5'%20width='10'%20height='10'%20rx='0.5'%20stroke='white'%20stroke-opacity='0.16'/%3e%3c/g%3e%3cg%20filter='url(%23filter1_b_3196_29756)'%3e%3crect%20x='48'%20y='35'%20width='11'%20height='11'%20rx='1'%20fill='white'%20fill-opacity='0.08'/%3e%3crect%20x='48.5'%20y='35.5'%20width='10'%20height='10'%20rx='0.5'%20stroke='white'%20stroke-opacity='0.16'/%3e%3c/g%3e%3cg%20filter='url(%23filter2_b_3196_29756)'%3e%3crect%20x='10'%20y='35'%20width='11'%20height='11'%20rx='1'%20fill='white'%20fill-opacity='0.08'/%3e%3crect%20x='10.5'%20y='35.5'%20width='10'%20height='10'%20rx='0.5'%20stroke='white'%20stroke-opacity='0.16'/%3e%3c/g%3e%3cg%20opacity='0.6'%3e%3cpath%20d='M60.5556%208.70056H8.44444C4.33299%208.70056%201%2011.7003%201%2015.4006V62.3007C1%2066.001%204.33299%2069.0007%208.44444%2069.0007H60.5556C64.667%2069.0007%2068%2066.001%2068%2062.3007V15.4006C68%2011.7003%2064.667%208.70056%2060.5556%208.70056Z'%20stroke='white'%20stroke-width='1.88'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M1%2028.7991H68'%20stroke='white'%20stroke-width='1.88'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M49.3872%201.99982V15.3999'%20stroke='white'%20stroke-width='3.88'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M19.6128%201.99982V15.3999'%20stroke='white'%20stroke-width='3.88'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_b_3196_29756'%20x='13'%20y='19'%20width='43'%20height='43'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeGaussianBlur%20in='BackgroundImageFix'%20stdDeviation='8'/%3e%3cfeComposite%20in2='SourceAlpha'%20operator='in'%20result='effect1_backgroundBlur_3196_29756'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_backgroundBlur_3196_29756'%20result='shape'/%3e%3c/filter%3e%3cfilter%20id='filter1_b_3196_29756'%20x='32'%20y='19'%20width='43'%20height='43'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeGaussianBlur%20in='BackgroundImageFix'%20stdDeviation='8'/%3e%3cfeComposite%20in2='SourceAlpha'%20operator='in'%20result='effect1_backgroundBlur_3196_29756'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_backgroundBlur_3196_29756'%20result='shape'/%3e%3c/filter%3e%3cfilter%20id='filter2_b_3196_29756'%20x='-6'%20y='19'%20width='43'%20height='43'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeGaussianBlur%20in='BackgroundImageFix'%20stdDeviation='8'/%3e%3cfeComposite%20in2='SourceAlpha'%20operator='in'%20result='effect1_backgroundBlur_3196_29756'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_backgroundBlur_3196_29756'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e",An="data:image/svg+xml,%3csvg%20width='75'%20height='75'%20viewBox='0%200%2075%2075'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23filter0_b_3196_29781)'%3e%3crect%20x='6.00049'%20y='6'%20width='60'%20height='60'%20rx='30'%20fill='white'%20fill-opacity='0.08'/%3e%3crect%20x='6.50049'%20y='6.5'%20width='59'%20height='59'%20rx='29.5'%20stroke='white'%20stroke-opacity='0.16'/%3e%3c/g%3e%3cpath%20opacity='0.6'%20d='M71%2036C71%2042.9221%2068.9475%2049.6887%2065.1019%2055.4443C61.2563%2061.1998%2055.7905%2065.6859%2049.3954%2068.3351C43.0004%2070.9844%2035.9634%2071.6779%2029.1743%2070.3279C22.3851%2068.978%2016.1487%2065.6452%2011.2536%2060.751C6.3585%2055.8569%203.02455%2049.6211%201.67333%2042.8322C0.322108%2036.0433%201.01429%2029.0061%203.66235%2022.6106C6.31041%2016.2151%2010.7954%2010.7484%2016.5503%206.90175C22.3051%203.05512%2029.0714%201.0013%2035.9934%201C40.5903%200.999139%2045.1422%201.9038%2049.3894%203.66233C53.6365%205.42086%2057.4957%207.99881%2060.7464%2011.2489C63.9972%2014.4991%2066.5758%2018.3577%2068.3352%2022.6046C70.0945%2026.8514%2071%2031.4032%2071%2036V36Z'%20stroke='white'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20opacity='0.6'%20d='M74%2074L62%2062'%20stroke='white'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M44.4013%2048.6044V45.4039C44.4013%2043.7062%2043.727%2042.0781%2042.5266%2040.8777C41.3263%2039.6773%2039.6983%2039.0029%2038.0007%2039.0029H28.3999C26.7024%2039.0029%2025.0743%2039.6773%2023.874%2040.8777C22.6737%2042.0781%2021.9993%2043.7062%2021.9993%2045.4039V48.6044'%20stroke='white'%20stroke-opacity='0.6'%20stroke-width='2.38256'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M33.2031%2032.6016C36.738%2032.6016%2039.6037%2029.7358%2039.6037%2026.2006C39.6037%2022.6654%2036.738%2019.7996%2033.2031%2019.7996C29.6682%2019.7996%2026.8026%2022.6654%2026.8026%2026.2006C26.8026%2029.7358%2029.6682%2032.6016%2033.2031%2032.6016Z'%20stroke='white'%20stroke-opacity='0.6'%20stroke-width='2.38256'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M49.1998%2027.8009V37.4024M54.0003%2032.6017H44.3994'%20stroke='white'%20stroke-opacity='0.6'%20stroke-width='2.38256'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cdefs%3e%3cfilter%20id='filter0_b_3196_29781'%20x='-9.99951'%20y='-10'%20width='92'%20height='92'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeGaussianBlur%20in='BackgroundImageFix'%20stdDeviation='8'/%3e%3cfeComposite%20in2='SourceAlpha'%20operator='in'%20result='effect1_backgroundBlur_3196_29781'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_backgroundBlur_3196_29781'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e",yc="data:image/svg+xml,%3csvg%20width='90'%20height='90'%20viewBox='0%200%2090%2090'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Football%20Jersey'%3e%3cg%20id='Layer%2010'%3e%3cpath%20id='Vector'%20d='M71.7192%2052.1016V40.3172L87.7223%2033.6376C87.9169%2033.558%2088.0912%2033.4359%2088.2323%2033.2802C88.3735%2033.1244%2088.4779%2032.939%2088.538%2032.7376C88.5985%2032.5342%2088.6123%2032.3197%2088.5782%2032.1103C88.5441%2031.9009%2088.463%2031.7018%2088.3411%2031.5282L71.4661%207.62193C71.4289%207.5532%2071.3866%207.48739%2071.3395%207.42506C69.4243%205.50395%2067.1463%203.98259%2064.6381%202.94935C62.1298%201.91612%2059.4413%201.39161%2056.7286%201.40631H53.438C53.065%201.40631%2052.7073%201.55446%2052.4436%201.81819C52.1799%202.08191%2052.0317%202.4396%2052.0317%202.81256V5.62506C52.0317%207.48986%2051.2909%209.27829%2049.9723%2010.5969C48.6537%2011.9155%2046.8653%2012.6563%2045.0005%2012.6563C43.1357%2012.6563%2041.3472%2011.9155%2040.0286%2010.5969C38.71%209.27829%2037.9692%207.48986%2037.9692%205.62506V2.81256C37.9692%202.4396%2037.8211%202.08191%2037.5573%201.81819C37.2936%201.55446%2036.9359%201.40631%2036.563%201.40631H33.2723C30.5634%201.39718%2027.8796%201.92572%2025.3764%202.96128C22.8731%203.99684%2020.6003%205.51885%2018.6895%207.43912C18.6424%207.50145%2018.6001%207.56727%2018.563%207.63599L1.68797%2031.5422C1.56603%2031.7159%201.48498%2031.9149%201.45089%2032.1244C1.41679%2032.3338%201.43054%2032.5482%201.49109%2032.7516C1.55114%2032.9531%201.65558%2033.1385%201.79673%2033.2942C1.93788%2033.45%202.11215%2033.5721%202.30672%2033.6516L18.2817%2040.3172V81.5626C18.2817%2081.9355%2018.4299%2082.2932%2018.6936%2082.5569C18.9573%2082.8206%2019.315%2082.9688%2019.688%2082.9688H57.1505C59.2007%2085.1122%2061.7416%2086.7246%2064.5541%2087.6667C67.3665%2088.6089%2070.366%2088.8527%2073.2936%2088.3769C76.2213%2087.9011%2078.9892%2086.7202%2081.3586%2084.9359C83.7279%2083.1516%2085.6276%2080.8176%2086.8936%2078.1353C88.1596%2075.453%2088.7539%2072.503%2088.6253%2069.5397C88.4967%2066.5764%2087.649%2063.6889%2086.1554%2061.1264C84.6617%2058.5639%2082.567%2056.4032%2080.052%2054.8309C77.5369%2053.2587%2074.6771%2052.3219%2071.7192%2052.1016ZM84.8255%2065.011L77.7942%2066.0235L71.7192%2061.2001V54.9141C74.6356%2055.1837%2077.4155%2056.2757%2079.7356%2058.0631C82.0558%2059.8505%2083.8208%2062.2599%2084.8255%2065.011ZM73.5755%2074.5313H67.1067L64.927%2067.9922L70.313%2063.6751L75.6989%2067.9922L73.5755%2074.5313ZM54.8442%2070.3126C54.8475%2069.4546%2054.9227%2068.5985%2055.0692%2067.7532L62.227%2068.7657L64.5192%2075.6563L59.7661%2081.5626C58.2159%2080.1269%2056.9786%2078.3867%2056.1317%2076.4509C55.2848%2074.5152%2054.8465%2072.4255%2054.8442%2070.3126ZM68.9067%2052.0313C66.9688%2052.1978%2065.07%2052.6726%2063.2817%2053.4376V51.3141C63.2728%2045.3135%2065.2507%2039.4787%2068.9067%2034.7204V52.0313ZM68.9067%2054.8438V61.1297L62.8739%2066.0938L55.8427%2065.0813C56.8334%2062.3231%2058.5873%2059.9031%2060.9002%2058.1031C63.213%2056.3031%2065.9897%2055.1972%2068.9067%2054.9141V54.8438ZM71.7192%2037.2657V12.8672L85.0223%2031.7251L71.7192%2037.2657ZM4.97859%2031.7251L18.2817%2012.8672V37.2657L4.97859%2031.7251ZM21.0942%2034.7204C24.7503%2039.4787%2026.7282%2045.3135%2026.7192%2051.3141V80.1563H21.0942V34.7204ZM29.5317%2080.1563V51.3141C29.546%2043.5117%2026.5194%2036.0108%2021.0942%2030.4032V9.02818C24.3875%205.92407%2028.7467%204.20253%2033.2723%204.21881H35.1567V5.62506C35.1567%208.23578%2036.1938%2010.7396%2038.0399%2012.5856C39.8859%2014.4317%2042.3897%2015.4688%2045.0005%2015.4688C47.6112%2015.4688%2050.115%2014.4317%2051.9611%2012.5856C53.8071%2010.7396%2054.8442%208.23578%2054.8442%205.62506V4.21881H56.7286C61.2542%204.20253%2065.6134%205.92407%2068.9067%209.02818V30.4032C63.4816%2036.0108%2060.455%2043.5117%2060.4692%2051.3141V54.9282C56.3926%2057.542%2053.5197%2061.6664%2052.4809%2066.3963C51.4421%2071.1261%2052.3224%2076.0748%2054.9286%2080.1563H29.5317ZM61.988%2083.3204L66.7692%2077.3438H73.8005L78.5817%2083.3204C76.1021%2084.9263%2073.211%2085.7808%2070.2567%2085.7808C67.3025%2085.7808%2064.4113%2084.9263%2061.9317%2083.3204H61.988ZM80.8598%2081.5626L76.1067%2075.6563L78.3989%2068.7657L85.5567%2067.7532C85.9891%2070.2641%2085.7858%2072.8433%2084.9653%2075.2555C84.1449%2077.6677%2082.7335%2079.836%2080.8598%2081.5626Z'%20fill='%23A0A9AF'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",bc="data:image/svg+xml,%3csvg%20width='90'%20height='90'%20viewBox='0%200%2090%2090'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='fi_8584464'%3e%3cpath%20id='Vector'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M76.9582%2067.1642V5.59678C76.9582%204.8244%2076.3322%204.19775%2075.5592%204.19775H13.9918C13.2194%204.19775%2012.5928%204.8244%2012.5928%205.59678V67.1642C12.5928%2067.676%2012.8722%2068.1475%2013.3222%2068.3926L44.1055%2085.1836C44.5233%2085.4113%2045.0277%2085.4113%2045.4455%2085.1836L76.2295%2068.3926C76.6788%2068.1475%2076.9582%2067.676%2076.9582%2067.1642ZM74.1602%2018.1901V66.3333L44.7758%2082.3614L15.3915%2066.3333V18.1901H74.1602ZM44.7758%2023.7875C32.419%2023.7875%2022.3873%2033.8192%2022.3873%2046.1754C22.3873%2058.5316%2032.419%2068.5632%2044.7758%2068.5632C57.132%2068.5632%2067.1637%2058.5316%2067.1637%2046.1754C67.1637%2033.8192%2057.132%2023.7875%2044.7758%2023.7875ZM38.8795%2064.8604L44.7758%2059.985L50.6715%2064.8604C48.8104%2065.4481%2046.8297%2065.7651%2044.7758%2065.7651C42.7213%2065.7651%2040.7406%2065.4481%2038.8795%2064.8604ZM35.939%2028.6905C32.2168%2030.5772%2029.177%2033.617%2027.2903%2037.3392L33.8603%2045.2834C34.2881%2045.8013%2034.2881%2046.5495%2033.8603%2047.0673L27.2903%2055.0115C29.177%2058.7337%2032.2175%2061.7742%2035.939%2063.6602L43.8839%2057.0909C44.4011%2056.6631%2045.1499%2056.6631%2045.6671%2057.0909L53.6119%2063.6602C57.3342%2061.7736%2060.374%2058.7337%2062.2607%2055.0115L55.6907%2047.0673C55.2628%2046.5495%2055.2628%2045.8013%2055.6907%2045.2834L62.2607%2037.3392C60.374%2033.617%2057.3342%2030.5765%2053.6119%2028.6905L45.6671%2035.2598C45.1499%2035.6877%2044.4011%2035.6877%2043.8839%2035.2598L35.939%2028.6905ZM45.5979%2037.5475C45.1076%2037.1908%2044.4434%2037.1908%2043.9531%2037.5475L36.8243%2042.7272C36.3333%2043.0831%2036.1284%2043.7151%2036.3158%2044.2914L39.0387%2052.6722C39.2261%2053.2484%2039.7634%2053.6393%2040.3699%2053.6393H49.1818C49.7876%2053.6393%2050.3249%2053.2484%2050.5123%2052.6722L53.2358%2044.2914C53.4225%2043.7151%2053.2177%2043.0831%2052.7274%2042.7272L45.5979%2037.5475ZM58.5848%2046.1754L63.4609%2040.279C64.0486%2042.1401%2064.3649%2044.1208%2064.3649%2046.1754C64.3649%2048.2299%2064.0486%2050.2106%2063.4609%2052.0717L58.5848%2046.1754ZM26.0908%2040.279L30.9662%2046.1754L26.0908%2052.0717C25.5031%2050.2106%2025.1861%2048.2299%2025.1861%2046.1754C25.1861%2044.1208%2025.5031%2042.1401%2026.0908%2040.279ZM44.7758%2040.4086L50.2598%2044.3935L48.1649%2050.8406H41.3861L39.2912%2044.3935L44.7758%2040.4086ZM50.6715%2027.4903L44.7758%2032.3657L38.8795%2027.4903C40.7406%2026.9026%2042.7213%2026.5856%2044.7758%2026.5856C46.8297%2026.5856%2048.8104%2026.9026%2050.6715%2027.4903ZM74.1602%2015.392H15.3915C15.3915%2014.9548%2015.3915%2012.5933%2015.3915%2012.5933H74.1602V15.392ZM15.3915%209.79454V6.99648H74.1602V9.79454H15.3915Z'%20fill='%23A0A9AF'/%3e%3c/g%3e%3c/svg%3e",wc=["onClick"],_c={class:"grid-section__image"},Sc=["src"],kc={class:"grid-section__label"},Cc=ie({__name:"GSCGridTeamsMatches",props:{isPlayer:{type:Boolean,default:!1},playerId:{type:Number,default:0},teamId:{type:Number,default:0},seasonSelected:{type:Number,default:0},nextRivalId:{type:Number,default:0},hasTeam:{type:Boolean,default:!1},teamImg:{type:[String,void 0],default:void 0},rivalImg:{type:[String,void 0],default:void 0},playerImg:{type:[String,void 0],default:void 0},componentWidth:{type:Number,default:768}},emits:["action"],setup(e,{emit:a}){const o=e;function n(s){a("action",s)}const i=t.computed(()=>o.componentWidth<768),r=t.computed(()=>{let s;return o.isPlayer?s=[{type:"player",label:"Mi perfil →",image:o.playerImg||"",imgType:"player",player:o.playerId,team:o.teamId,season:o.seasonSelected},{type:"team",label:"Analizar mi equipo →",image:o.teamImg||"",imgType:"team",team:o.teamId,season:o.seasonSelected},{type:"rival",label:"Analizar mi próximo rival →",image:o.rivalImg||"",imgType:"team",team:o.nextRivalId,season:o.seasonSelected},{type:"schedule",label:"Mis partidos →",image:xo,imgType:"svg",team:o.teamId,season:o.seasonSelected}]:o.hasTeam?s=[{type:"team",label:"Analizar mi equipo →",image:o.teamImg||"",imgType:"team",team:o.teamId,season:o.seasonSelected},{type:"rival",label:"Analizar mi próximo rival →",image:o.rivalImg||"",imgType:"team",team:o.nextRivalId,season:o.seasonSelected},{type:"schedule",label:"Mis partidos →",image:xo,imgType:"svg",team:o.teamId,season:o.seasonSelected},{type:"scouting",label:"Scouting cientifico →",image:An,imgType:"svg",season:o.seasonSelected}]:s=[{type:"teamOtherLeague",label:"Buscar equipo →",image:bc,imgType:"svg",season:o.seasonSelected},{type:"playerOtherLeague",label:"Buscar jugador →",image:yc,imgType:"svg",season:o.seasonSelected},{type:"scheduleOtherLeague",label:"Calendario general →",image:xo,imgType:"svg",season:o.seasonSelected},{type:"scouting",label:"Scouting cientifico →",image:An,imgType:"svg",season:o.seasonSelected}],s});return(s,l)=>(t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass(["grid-section",{mobile:i.value}])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.value,(p,c)=>(t.openBlock(),t.createElementBlock("div",{key:c,class:"grid-section__card",onClick:m=>n(p)},[t.createElementVNode("figure",_c,[p.image!==""?(t.openBlock(),t.createElementBlock("img",{key:0,src:p.image,alt:"",class:t.normalizeClass(p.imgType)},null,10,Sc)):t.createCommentVNode("",!0)]),t.createElementVNode("p",kc,t.toDisplayString(p.label),1)],8,wc))),128))],2))}},[["__scopeId","data-v-b0f26065"]]);function zn(e,a){return function(){return e.apply(a,arguments)}}const{toString:Bc}=Object.prototype,{getPrototypeOf:To}=Object,Ot=(e=>a=>{const o=Bc.call(a);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),Be=e=>(e=e.toLowerCase(),a=>Ot(a)===e),Vt=e=>a=>typeof a===e,{isArray:qe}=Array,it=Vt("undefined");function Ec(e){return e!==null&&!it(e)&&e.constructor!==null&&!it(e.constructor)&&ce(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Rn=Be("ArrayBuffer");function Nc(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&Rn(e.buffer),a}const xc=Vt("string"),ce=Vt("function"),In=Vt("number"),$t=e=>e!==null&&typeof e=="object",Tc=e=>e===!0||e===!1,At=e=>{if(Ot(e)!=="object")return!1;const a=To(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Oc=Be("Date"),Vc=Be("File"),$c=Be("Blob"),Ac=Be("FileList"),zc=e=>$t(e)&&ce(e.pipe),Rc=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||ce(e.append)&&((a=Ot(e))==="formdata"||a==="object"&&ce(e.toString)&&e.toString()==="[object FormData]"))},Ic=Be("URLSearchParams"),Fc=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function st(e,a,{allOwnKeys:o=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),qe(e))for(n=0,i=e.length;n<i;n++)a.call(null,e[n],n,e);else{const r=o?Object.getOwnPropertyNames(e):Object.keys(e),s=r.length;let l;for(n=0;n<s;n++)l=r[n],a.call(null,e[l],l,e)}}function Fn(e,a){a=a.toLowerCase();const o=Object.keys(e);let n=o.length,i;for(;n-- >0;)if(i=o[n],a===i.toLowerCase())return i;return null}const Pn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ln=e=>!it(e)&&e!==Pn;function Oo(){const{caseless:e}=Ln(this)&&this||{},a={},o=(n,i)=>{const r=e&&Fn(a,i)||i;At(a[r])&&At(n)?a[r]=Oo(a[r],n):At(n)?a[r]=Oo({},n):qe(n)?a[r]=n.slice():a[r]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&st(arguments[n],o);return a}const Pc=(e,a,o,{allOwnKeys:n}={})=>(st(a,(i,r)=>{o&&ce(i)?e[r]=zn(i,o):e[r]=i},{allOwnKeys:n}),e),Lc=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Dc=(e,a,o,n)=>{e.prototype=Object.create(a.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),o&&Object.assign(e.prototype,o)},Mc=(e,a,o,n)=>{let i,r,s;const l={};if(a=a||{},e==null)return a;do{for(i=Object.getOwnPropertyNames(e),r=i.length;r-- >0;)s=i[r],(!n||n(s,e,a))&&!l[s]&&(a[s]=e[s],l[s]=!0);e=o!==!1&&To(e)}while(e&&(!o||o(e,a))&&e!==Object.prototype);return a},jc=(e,a,o)=>{e=String(e),(o===void 0||o>e.length)&&(o=e.length),o-=a.length;const n=e.indexOf(a,o);return n!==-1&&n===o},vc=e=>{if(!e)return null;if(qe(e))return e;let a=e.length;if(!In(a))return null;const o=new Array(a);for(;a-- >0;)o[a]=e[a];return o},Wc=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&To(Uint8Array)),Uc=(e,a)=>{const o=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=o.next())&&!n.done;){const i=n.value;a.call(e,i[0],i[1])}},Hc=(e,a)=>{let o;const n=[];for(;(o=e.exec(a))!==null;)n.push(o);return n},Gc=Be("HTMLFormElement"),Jc=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,o,n){return o.toUpperCase()+n}),Dn=(({hasOwnProperty:e})=>(a,o)=>e.call(a,o))(Object.prototype),qc=Be("RegExp"),Mn=(e,a)=>{const o=Object.getOwnPropertyDescriptors(e),n={};st(o,(i,r)=>{let s;(s=a(i,r,e))!==!1&&(n[r]=s||i)}),Object.defineProperties(e,n)},Zc=e=>{Mn(e,(a,o)=>{if(ce(e)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const n=e[o];if(ce(n)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},Xc=(e,a)=>{const o={},n=i=>{i.forEach(r=>{o[r]=!0})};return qe(e)?n(e):n(String(e).split(a)),o},Kc=()=>{},Yc=(e,a)=>(e=+e,Number.isFinite(e)?e:a),Vo="abcdefghijklmnopqrstuvwxyz",jn="0123456789",vn={DIGIT:jn,ALPHA:Vo,ALPHA_DIGIT:Vo+Vo.toUpperCase()+jn},Qc=(e=16,a=vn.ALPHA_DIGIT)=>{let o="";const{length:n}=a;for(;e--;)o+=a[Math.random()*n|0];return o};function ed(e){return!!(e&&ce(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const td=e=>{const a=new Array(10),o=(n,i)=>{if($t(n)){if(a.indexOf(n)>=0)return;if(!("toJSON"in n)){a[i]=n;const r=qe(n)?[]:{};return st(n,(s,l)=>{const p=o(s,i+1);!it(p)&&(r[l]=p)}),a[i]=void 0,r}}return n};return o(e,0)},od=Be("AsyncFunction"),ad=e=>e&&($t(e)||ce(e))&&ce(e.then)&&ce(e.catch),_={isArray:qe,isArrayBuffer:Rn,isBuffer:Ec,isFormData:Rc,isArrayBufferView:Nc,isString:xc,isNumber:In,isBoolean:Tc,isObject:$t,isPlainObject:At,isUndefined:it,isDate:Oc,isFile:Vc,isBlob:$c,isRegExp:qc,isFunction:ce,isStream:zc,isURLSearchParams:Ic,isTypedArray:Wc,isFileList:Ac,forEach:st,merge:Oo,extend:Pc,trim:Fc,stripBOM:Lc,inherits:Dc,toFlatObject:Mc,kindOf:Ot,kindOfTest:Be,endsWith:jc,toArray:vc,forEachEntry:Uc,matchAll:Hc,isHTMLForm:Gc,hasOwnProperty:Dn,hasOwnProp:Dn,reduceDescriptors:Mn,freezeMethods:Zc,toObjectSet:Xc,toCamelCase:Jc,noop:Kc,toFiniteNumber:Yc,findKey:Fn,global:Pn,isContextDefined:Ln,ALPHABET:vn,generateString:Qc,isSpecCompliantForm:ed,toJSONObject:td,isAsyncFn:od,isThenable:ad};function F(e,a,o,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),o&&(this.config=o),n&&(this.request=n),i&&(this.response=i)}_.inherits(F,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:_.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Wn=F.prototype,Un={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Un[e]={value:e}}),Object.defineProperties(F,Un),Object.defineProperty(Wn,"isAxiosError",{value:!0}),F.from=(e,a,o,n,i,r)=>{const s=Object.create(Wn);return _.toFlatObject(e,s,function(l){return l!==Error.prototype},l=>l!=="isAxiosError"),F.call(s,e.message,a,o,n,i),s.cause=e,s.name=e.name,r&&Object.assign(s,r),s};const nd=null;function $o(e){return _.isPlainObject(e)||_.isArray(e)}function Hn(e){return _.endsWith(e,"[]")?e.slice(0,-2):e}function Gn(e,a,o){return e?e.concat(a).map(function(n,i){return n=Hn(n),!o&&i?"["+n+"]":n}).join(o?".":""):a}function rd(e){return _.isArray(e)&&!e.some($o)}const id=_.toFlatObject(_,{},null,function(e){return/^is[A-Z]/.test(e)});function zt(e,a,o){if(!_.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,o=_.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,h){return!_.isUndefined(h[d])});const n=o.metaTokens,i=o.visitor||c,r=o.dots,s=o.indexes,l=(o.Blob||typeof Blob<"u"&&Blob)&&_.isSpecCompliantForm(a);if(!_.isFunction(i))throw new TypeError("visitor must be a function");function p(d){if(d===null)return"";if(_.isDate(d))return d.toISOString();if(!l&&_.isBlob(d))throw new F("Blob is not supported. Use a Buffer instead.");return _.isArrayBuffer(d)||_.isTypedArray(d)?l&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function c(d,h,f){let y=d;if(d&&!f&&typeof d=="object"){if(_.endsWith(h,"{}"))h=n?h:h.slice(0,-2),d=JSON.stringify(d);else if(_.isArray(d)&&rd(d)||(_.isFileList(d)||_.endsWith(h,"[]"))&&(y=_.toArray(d)))return h=Hn(h),y.forEach(function(C,A){!(_.isUndefined(C)||C===null)&&a.append(s===!0?Gn([h],A,r):s===null?h:h+"[]",p(C))}),!1}return $o(d)?!0:(a.append(Gn(f,h,r),p(d)),!1)}const m=[],u=Object.assign(id,{defaultVisitor:c,convertValue:p,isVisitable:$o});function g(d,h){if(!_.isUndefined(d)){if(m.indexOf(d)!==-1)throw Error("Circular reference detected in "+h.join("."));m.push(d),_.forEach(d,function(f,y){(!(_.isUndefined(f)||f===null)&&i.call(a,f,_.isString(y)?y.trim():y,h,u))===!0&&g(f,h?h.concat(y):[y])}),m.pop()}}if(!_.isObject(e))throw new TypeError("data must be an object");return g(e),a}function Jn(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return a[o]})}function Ao(e,a){this._pairs=[],e&&zt(e,this,a)}const qn=Ao.prototype;qn.append=function(e,a){this._pairs.push([e,a])},qn.toString=function(e){const a=e?function(o){return e.call(this,o,Jn)}:Jn;return this._pairs.map(function(o){return a(o[0])+"="+a(o[1])},"").join("&")};function sd(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Zn(e,a,o){if(!a)return e;const n=o&&o.encode||sd,i=o&&o.serialize;let r;if(i?r=i(a,o):r=_.isURLSearchParams(a)?a.toString():new Ao(a,o).toString(n),r){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}class ld{constructor(){this.handlers=[]}use(a,o,n){return this.handlers.push({fulfilled:a,rejected:o,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){_.forEach(this.handlers,function(o){o!==null&&a(o)})}}const Xn=ld,Kn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},cd=typeof URLSearchParams<"u"?URLSearchParams:Ao,dd=typeof FormData<"u"?FormData:null,md=typeof Blob<"u"?Blob:null,pd={isBrowser:!0,classes:{URLSearchParams:cd,FormData:dd,Blob:md},protocols:["http","https","file","blob","url","data"]},Yn=typeof window<"u"&&typeof document<"u",ud=(e=>Yn&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),hd=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",fd=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Yn,hasStandardBrowserEnv:ud,hasStandardBrowserWebWorkerEnv:hd},Symbol.toStringTag,{value:"Module"})),Ee={...fd,...pd};function gd(e,a){return zt(e,new Ee.classes.URLSearchParams,Object.assign({visitor:function(o,n,i,r){return Ee.isNode&&_.isBuffer(o)?(this.append(n,o.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},a))}function yd(e){return _.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function bd(e){const a={},o=Object.keys(e);let n;const i=o.length;let r;for(n=0;n<i;n++)r=o[n],a[r]=e[r];return a}function Qn(e){function a(o,n,i,r){let s=o[r++];if(s==="__proto__")return!0;const l=Number.isFinite(+s),p=r>=o.length;return s=!s&&_.isArray(i)?i.length:s,p?(_.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!l):((!i[s]||!_.isObject(i[s]))&&(i[s]=[]),a(o,n,i[s],r)&&_.isArray(i[s])&&(i[s]=bd(i[s])),!l)}if(_.isFormData(e)&&_.isFunction(e.entries)){const o={};return _.forEachEntry(e,(n,i)=>{a(yd(n),i,o,0)}),o}return null}function wd(e,a,o){if(_.isString(e))try{return(a||JSON.parse)(e),_.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(o||JSON.stringify)(e)}const zo={transitional:Kn,adapter:["xhr","http"],transformRequest:[function(e,a){const o=a.getContentType()||"",n=o.indexOf("application/json")>-1,i=_.isObject(e);if(i&&_.isHTMLForm(e)&&(e=new FormData(e)),_.isFormData(e))return n?JSON.stringify(Qn(e)):e;if(_.isArrayBuffer(e)||_.isBuffer(e)||_.isStream(e)||_.isFile(e)||_.isBlob(e))return e;if(_.isArrayBufferView(e))return e.buffer;if(_.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let r;if(i){if(o.indexOf("application/x-www-form-urlencoded")>-1)return gd(e,this.formSerializer).toString();if((r=_.isFileList(e))||o.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return zt(r?{"files[]":e}:e,s&&new s,this.formSerializer)}}return i||n?(a.setContentType("application/json",!1),wd(e)):e}],transformResponse:[function(e){const a=this.transitional||zo.transitional,o=a&&a.forcedJSONParsing,n=this.responseType==="json";if(e&&_.isString(e)&&(o&&!this.responseType||n)){const i=!(a&&a.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(r){if(i)throw r.name==="SyntaxError"?F.from(r,F.ERR_BAD_RESPONSE,this,null,this.response):r}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ee.classes.FormData,Blob:Ee.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_.forEach(["delete","get","head","post","put","patch"],e=>{zo.headers[e]={}});const Ro=zo,_d=_.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Sd=e=>{const a={};let o,n,i;return e&&e.split(`
|
|
7
|
+
`).forEach(function(r){i=r.indexOf(":"),o=r.substring(0,i).trim().toLowerCase(),n=r.substring(i+1).trim(),!(!o||a[o]&&_d[o])&&(o==="set-cookie"?a[o]?a[o].push(n):a[o]=[n]:a[o]=a[o]?a[o]+", "+n:n)}),a},er=Symbol("internals");function lt(e){return e&&String(e).trim().toLowerCase()}function Rt(e){return e===!1||e==null?e:_.isArray(e)?e.map(Rt):String(e)}function kd(e){const a=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=o.exec(e);)a[n[1]]=n[2];return a}const Cd=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Io(e,a,o,n,i){if(_.isFunction(n))return n.call(this,a,o);if(i&&(a=o),!!_.isString(a)){if(_.isString(n))return a.indexOf(n)!==-1;if(_.isRegExp(n))return n.test(a)}}function Bd(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,o,n)=>o.toUpperCase()+n)}function Ed(e,a){const o=_.toCamelCase(" "+a);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+o,{value:function(i,r,s){return this[n].call(this,a,i,r,s)},configurable:!0})})}let It=class{constructor(a){a&&this.set(a)}set(a,o,n){const i=this;function r(l,p,c){const m=lt(p);if(!m)throw new Error("header name must be a non-empty string");const u=_.findKey(i,m);(!u||i[u]===void 0||c===!0||c===void 0&&i[u]!==!1)&&(i[u||p]=Rt(l))}const s=(l,p)=>_.forEach(l,(c,m)=>r(c,m,p));return _.isPlainObject(a)||a instanceof this.constructor?s(a,o):_.isString(a)&&(a=a.trim())&&!Cd(a)?s(Sd(a),o):a!=null&&r(o,a,n),this}get(a,o){if(a=lt(a),a){const n=_.findKey(this,a);if(n){const i=this[n];if(!o)return i;if(o===!0)return kd(i);if(_.isFunction(o))return o.call(this,i,n);if(_.isRegExp(o))return o.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,o){if(a=lt(a),a){const n=_.findKey(this,a);return!!(n&&this[n]!==void 0&&(!o||Io(this,this[n],n,o)))}return!1}delete(a,o){const n=this;let i=!1;function r(s){if(s=lt(s),s){const l=_.findKey(n,s);l&&(!o||Io(n,n[l],l,o))&&(delete n[l],i=!0)}}return _.isArray(a)?a.forEach(r):r(a),i}clear(a){const o=Object.keys(this);let n=o.length,i=!1;for(;n--;){const r=o[n];(!a||Io(this,this[r],r,a,!0))&&(delete this[r],i=!0)}return i}normalize(a){const o=this,n={};return _.forEach(this,(i,r)=>{const s=_.findKey(n,r);if(s){o[s]=Rt(i),delete o[r];return}const l=a?Bd(r):String(r).trim();l!==r&&delete o[r],o[l]=Rt(i),n[l]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const o=Object.create(null);return _.forEach(this,(n,i)=>{n!=null&&n!==!1&&(o[i]=a&&_.isArray(n)?n.join(", "):n)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,o])=>a+": "+o).join(`
|
|
8
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...o){const n=new this(a);return o.forEach(i=>n.set(i)),n}static accessor(a){const o=(this[er]=this[er]={accessors:{}}).accessors,n=this.prototype;function i(r){const s=lt(r);o[s]||(Ed(n,r),o[s]=!0)}return _.isArray(a)?a.forEach(i):i(a),this}};It.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),_.reduceDescriptors(It.prototype,({value:e},a)=>{let o=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(n){this[o]=n}}}),_.freezeMethods(It);const Re=It;function Fo(e,a){const o=this||Ro,n=a||o,i=Re.from(n.headers);let r=n.data;return _.forEach(e,function(s){r=s.call(o,r,i.normalize(),a?a.status:void 0)}),i.normalize(),r}function tr(e){return!!(e&&e.__CANCEL__)}function ct(e,a,o){F.call(this,e??"canceled",F.ERR_CANCELED,a,o),this.name="CanceledError"}_.inherits(ct,F,{__CANCEL__:!0});function Nd(e,a,o){const n=o.config.validateStatus;!o.status||!n||n(o.status)?e(o):a(new F("Request failed with status code "+o.status,[F.ERR_BAD_REQUEST,F.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}const xd=Ee.hasStandardBrowserEnv?{write(e,a,o,n,i,r){const s=[e+"="+encodeURIComponent(a)];_.isNumber(o)&&s.push("expires="+new Date(o).toGMTString()),_.isString(n)&&s.push("path="+n),_.isString(i)&&s.push("domain="+i),r===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const a=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Td(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Od(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function or(e,a){return e&&!Td(a)?Od(e,a):a}const Vd=Ee.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");let o;function n(i){let r=i;return e&&(a.setAttribute("href",r),r=a.href),a.setAttribute("href",r),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:a.pathname.charAt(0)==="/"?a.pathname:"/"+a.pathname}}return o=n(window.location.href),function(i){const r=_.isString(i)?n(i):i;return r.protocol===o.protocol&&r.host===o.host}}():function(){return function(){return!0}}();function $d(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function Ad(e,a){e=e||10;const o=new Array(e),n=new Array(e);let i=0,r=0,s;return a=a!==void 0?a:1e3,function(l){const p=Date.now(),c=n[r];s||(s=p),o[i]=l,n[i]=p;let m=r,u=0;for(;m!==i;)u+=o[m++],m=m%e;if(i=(i+1)%e,i===r&&(r=(r+1)%e),p-s<a)return;const g=c&&p-c;return g?Math.round(u*1e3/g):void 0}}function ar(e,a){let o=0;const n=Ad(50,250);return i=>{const r=i.loaded,s=i.lengthComputable?i.total:void 0,l=r-o,p=n(l),c=r<=s;o=r;const m={loaded:r,total:s,progress:s?r/s:void 0,bytes:l,rate:p||void 0,estimated:p&&s&&c?(s-r)/p:void 0,event:i};m[a?"download":"upload"]=!0,e(m)}}const zd=typeof XMLHttpRequest<"u",Rd=zd&&function(e){return new Promise(function(a,o){let n=e.data;const i=Re.from(e.headers).normalize();let{responseType:r,withXSRFToken:s}=e,l;function p(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let c;if(_.isFormData(n)){if(Ee.hasStandardBrowserEnv||Ee.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((c=i.getContentType())!==!1){const[h,...f]=c?c.split(";").map(y=>y.trim()).filter(Boolean):[];i.setContentType([h||"multipart/form-data",...f].join("; "))}}let m=new XMLHttpRequest;if(e.auth){const h=e.auth.username||"",f=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(h+":"+f))}const u=or(e.baseURL,e.url);m.open(e.method.toUpperCase(),Zn(u,e.params,e.paramsSerializer),!0),m.timeout=e.timeout;function g(){if(!m)return;const h=Re.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),f={data:!r||r==="text"||r==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:h,config:e,request:m};Nd(function(y){a(y),p()},function(y){o(y),p()},f),m=null}if("onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(g)},m.onabort=function(){m&&(o(new F("Request aborted",F.ECONNABORTED,e,m)),m=null)},m.onerror=function(){o(new F("Network Error",F.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let h=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const f=e.transitional||Kn;e.timeoutErrorMessage&&(h=e.timeoutErrorMessage),o(new F(h,f.clarifyTimeoutError?F.ETIMEDOUT:F.ECONNABORTED,e,m)),m=null},Ee.hasStandardBrowserEnv&&(s&&_.isFunction(s)&&(s=s(e)),s||s!==!1&&Vd(u))){const h=e.xsrfHeaderName&&e.xsrfCookieName&&xd.read(e.xsrfCookieName);h&&i.set(e.xsrfHeaderName,h)}n===void 0&&i.setContentType(null),"setRequestHeader"in m&&_.forEach(i.toJSON(),function(h,f){m.setRequestHeader(f,h)}),_.isUndefined(e.withCredentials)||(m.withCredentials=!!e.withCredentials),r&&r!=="json"&&(m.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&m.addEventListener("progress",ar(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&m.upload&&m.upload.addEventListener("progress",ar(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=h=>{m&&(o(!h||h.type?new ct(null,e,m):h),m.abort(),m=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const d=$d(u);if(d&&Ee.protocols.indexOf(d)===-1){o(new F("Unsupported protocol "+d+":",F.ERR_BAD_REQUEST,e));return}m.send(n||null)})},Po={http:nd,xhr:Rd};_.forEach(Po,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const nr=e=>`- ${e}`,Id=e=>_.isFunction(e)||e===null||e===!1,rr={getAdapter:e=>{e=_.isArray(e)?e:[e];const{length:a}=e;let o,n;const i={};for(let r=0;r<a;r++){o=e[r];let s;if(n=o,!Id(o)&&(n=Po[(s=String(o)).toLowerCase()],n===void 0))throw new F(`Unknown adapter '${s}'`);if(n)break;i[s||"#"+r]=n}if(!n){const r=Object.entries(i).map(([l,p])=>`adapter ${l} `+(p===!1?"is not supported by the environment":"is not available in the build"));let s=a?r.length>1?`since :
|
|
9
|
+
`+r.map(nr).join(`
|
|
10
|
+
`):" "+nr(r[0]):"as no adapter specified";throw new F("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:Po};function Lo(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ct(null,e)}function ir(e){return Lo(e),e.headers=Re.from(e.headers),e.data=Fo.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),rr.getAdapter(e.adapter||Ro.adapter)(e).then(function(a){return Lo(e),a.data=Fo.call(e,e.transformResponse,a),a.headers=Re.from(a.headers),a},function(a){return tr(a)||(Lo(e),a&&a.response&&(a.response.data=Fo.call(e,e.transformResponse,a.response),a.response.headers=Re.from(a.response.headers))),Promise.reject(a)})}const sr=e=>e instanceof Re?e.toJSON():e;function Ze(e,a){a=a||{};const o={};function n(c,m,u){return _.isPlainObject(c)&&_.isPlainObject(m)?_.merge.call({caseless:u},c,m):_.isPlainObject(m)?_.merge({},m):_.isArray(m)?m.slice():m}function i(c,m,u){if(_.isUndefined(m)){if(!_.isUndefined(c))return n(void 0,c,u)}else return n(c,m,u)}function r(c,m){if(!_.isUndefined(m))return n(void 0,m)}function s(c,m){if(_.isUndefined(m)){if(!_.isUndefined(c))return n(void 0,c)}else return n(void 0,m)}function l(c,m,u){if(u in a)return n(c,m);if(u in e)return n(void 0,c)}const p={url:r,method:r,data:r,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(c,m)=>i(sr(c),sr(m),!0)};return _.forEach(Object.keys(Object.assign({},e,a)),function(c){const m=p[c]||i,u=m(e[c],a[c],c);_.isUndefined(u)&&m!==l||(o[c]=u)}),o}const lr="1.6.7",Do={};["object","boolean","number","function","string","symbol"].forEach((e,a)=>{Do[e]=function(o){return typeof o===e||"a"+(a<1?"n ":" ")+e}});const cr={};Do.transitional=function(e,a,o){function n(i,r){return"[Axios v"+lr+"] Transitional option '"+i+"'"+r+(o?". "+o:"")}return(i,r,s)=>{if(e===!1)throw new F(n(r," has been removed"+(a?" in "+a:"")),F.ERR_DEPRECATED);return a&&!cr[r]&&(cr[r]=!0,console.warn(n(r," has been deprecated since v"+a+" and will be removed in the near future"))),e?e(i,r,s):!0}};function Fd(e,a,o){if(typeof e!="object")throw new F("options must be an object",F.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const r=n[i],s=a[r];if(s){const l=e[r],p=l===void 0||s(l,r,e);if(p!==!0)throw new F("option "+r+" must be "+p,F.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new F("Unknown option "+r,F.ERR_BAD_OPTION)}}const Mo={assertOptions:Fd,validators:Do},Le=Mo.validators;let Ft=class{constructor(a){this.defaults=a,this.interceptors={request:new Xn,response:new Xn}}async request(a,o){try{return await this._request(a,o)}catch(n){if(n instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const r=i.stack?i.stack.replace(/^.+\n/,""):"";n.stack?r&&!String(n.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
11
|
+
`+r):n.stack=r}throw n}}_request(a,o){typeof a=="string"?(o=o||{},o.url=a):o=a||{},o=Ze(this.defaults,o);const{transitional:n,paramsSerializer:i,headers:r}=o;n!==void 0&&Mo.assertOptions(n,{silentJSONParsing:Le.transitional(Le.boolean),forcedJSONParsing:Le.transitional(Le.boolean),clarifyTimeoutError:Le.transitional(Le.boolean)},!1),i!=null&&(_.isFunction(i)?o.paramsSerializer={serialize:i}:Mo.assertOptions(i,{encode:Le.function,serialize:Le.function},!0)),o.method=(o.method||this.defaults.method||"get").toLowerCase();let s=r&&_.merge(r.common,r[o.method]);r&&_.forEach(["delete","get","head","post","put","patch","common"],h=>{delete r[h]}),o.headers=Re.concat(s,r);const l=[];let p=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(o)===!1||(p=p&&h.synchronous,l.unshift(h.fulfilled,h.rejected))});const c=[];this.interceptors.response.forEach(function(h){c.push(h.fulfilled,h.rejected)});let m,u=0,g;if(!p){const h=[ir.bind(this),void 0];for(h.unshift.apply(h,l),h.push.apply(h,c),g=h.length,m=Promise.resolve(o);u<g;)m=m.then(h[u++],h[u++]);return m}g=l.length;let d=o;for(u=0;u<g;){const h=l[u++],f=l[u++];try{d=h(d)}catch(y){f.call(this,y);break}}try{m=ir.call(this,d)}catch(h){return Promise.reject(h)}for(u=0,g=c.length;u<g;)m=m.then(c[u++],c[u++]);return m}getUri(a){a=Ze(this.defaults,a);const o=or(a.baseURL,a.url);return Zn(o,a.params,a.paramsSerializer)}};_.forEach(["delete","get","head","options"],function(e){Ft.prototype[e]=function(a,o){return this.request(Ze(o||{},{method:e,url:a,data:(o||{}).data}))}}),_.forEach(["post","put","patch"],function(e){function a(o){return function(n,i,r){return this.request(Ze(r||{},{method:e,headers:o?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}Ft.prototype[e]=a(),Ft.prototype[e+"Form"]=a(!0)});const Pt=Ft,Pd=class Rs{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(i){o=i});const n=this;this.promise.then(i=>{if(!n._listeners)return;let r=n._listeners.length;for(;r-- >0;)n._listeners[r](i);n._listeners=null}),this.promise.then=i=>{let r;const s=new Promise(l=>{n.subscribe(l),r=l}).then(i);return s.cancel=function(){n.unsubscribe(r)},s},a(function(i,r,s){n.reason||(n.reason=new ct(i,r,s),o(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const o=this._listeners.indexOf(a);o!==-1&&this._listeners.splice(o,1)}static source(){let a;return{token:new Rs(function(o){a=o}),cancel:a}}};function Ld(e){return function(a){return e.apply(null,a)}}function Dd(e){return _.isObject(e)&&e.isAxiosError===!0}const jo={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(jo).forEach(([e,a])=>{jo[a]=e});const Md=jo;function dr(e){const a=new Pt(e),o=zn(Pt.prototype.request,a);return _.extend(o,Pt.prototype,a,{allOwnKeys:!0}),_.extend(o,a,null,{allOwnKeys:!0}),o.create=function(n){return dr(Ze(e,n))},o}const G=dr(Ro);G.Axios=Pt,G.CanceledError=ct,G.CancelToken=Pd,G.isCancel=tr,G.VERSION=lr,G.toFormData=zt,G.AxiosError=F,G.Cancel=G.CanceledError,G.all=function(e){return Promise.all(e)},G.spread=Ld,G.isAxiosError=Dd,G.mergeConfig=Ze,G.AxiosHeaders=Re,G.formToJSON=e=>Qn(_.isHTMLForm(e)?new FormData(e):e),G.getAdapter=rr.getAdapter,G.HttpStatusCode=Md,G.default=G;const mr=G,jd=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},vo={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},pr=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},ur=vo.setup;vo.setup=ur?(e,a)=>(pr(),ur(e,a)):pr;const vd=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),Wd=["src"],Ud={key:1,class:"text"},Hd=["src"],Gd={class:"stats"},Jd=vd(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),qd={class:"numstats"},Zd={class:"leyend"};function Xd(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",null,[o.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",i.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([r.customStyle,i.status&&o.typeOnOff&&r.customActive]),onClick:a[0]||(a[0]=(...s)=>r.btnClick&&r.btnClick(...s))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,Wd)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",Ud,t.toDisplayString(o.textValue),1)):t.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,Hd)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...s)=>r.btnClick&&r.btnClick(...s))},[t.createElementVNode("div",Gd,[Jd,t.createElementVNode("div",qd,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",Zd,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const Kd=jd(vo,[["render",Xd],["__scopeId","data-v-fb269a1e"]]),Yd=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},Wo={components:{GSCButton:Kd},props:{hiddenButtonAll:{type:Boolean,default:!1},teamId:{type:Number,default:0},height:{type:String,default:"71px"},backgroundColor:{type:String,default:"#0d1d29"},containBorderType:{type:String,default:"solid"},containBorderWidth:{type:Number,default:0},containBorderColor:{type:String,default:""},componentontainBorderRadius:{type:String,default:"0px"},teamBorderType:{type:String,default:"solid"},teamBorderWidth:{type:Number,default:1},teamBorderColor:{type:String,default:"#566068"},teamBorderRadius:{type:String,default:"43px"},teamHeight:{type:String,default:"43px"},teamWidth:{type:String,default:"43px"},data:{type:Array,default:()=>[]}},data(){return{teamselect:this.teamId,scrollBar:!1}},watch:{teamId:{handler:function(e){this.teamselect=e},immediate:!0}},computed:{centerTextCustom(){return this.hiddenButtonAll&&!this.scrollBar?"center":"left"},marginCustom(){return this.hiddenButtonAll?"0px":"12px"},customStyleContain(){return{height:this.height,backgroundColor:this.backgroundColor,borderRadius:this.containBorderRadius,border:`${this.containBorderType} ${this.containBorderWidth}px ${this.containBorderColor}`}},customStyleTeam(){return{height:this.teamHeight,width:this.teamWidth,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.teamBorderType} ${this.teamBorderWidth}px ${this.teamBorderColor}`}}},methods:{checkIfElementHasScroll(){const e=this.$refs.container.querySelector("#panelteams");e.scrollWidth>e.clientWidth?this.scrollBar=!0:this.scrollBar=!1},btnTeamClick(e){this.$emit("clickTeam",e),this.teamselect=e},click(){this.$emit("clickAll",0),this.teamselect=0}},mounted(){this.checkIfElementHasScroll(),window.addEventListener("resize",this.checkIfElementHasScroll)},beforeUnmount(){window.removeEventListener("resize",this.checkIfElementHasScroll)}},hr=()=>{t.useCssVars(e=>({"132156c0":e.centerTextCustom,"096d3ecc":e.marginCustom}))},fr=Wo.setup;Wo.setup=fr?(e,a)=>(hr(),fr(e,a)):hr;const Qd={id:"panelteams",class:"gsc-filterperteam__panel-teams",ref:"panel"},em={class:"gsc-filterperteam__panel-teams__cont-teams"},tm=["onClick"],om=["src","alt","title"];function am(e,a,o,n,i,r){const s=t.resolveComponent("GSCButton");return t.openBlock(),t.createElementBlock("div",{class:"gsc-filterperteam",ref:"container",style:t.normalizeStyle(r.customStyleContain)},[t.createElementVNode("div",Qd,[t.createElementVNode("div",em,[o.hiddenButtonAll?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(r.customStyleTeam),class:t.normalizeClass(["gsc-filterperteam__panel-teams__cont-teams__button-all",this.teamselect!==0?"--disabled":""])},[t.createVNode(s,{"text-value":"Todos",width:"76px",height:"28px","font-family":"Poppins-Light","font-size":"13px","border-color":"#cbee6b","border-type":"solid","border-width":"1","background-color":"#2A3641","border-radius":"64px",onClick:r.click},null,8,["onClick"])],6)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.data,(l,p)=>(t.openBlock(),t.createElementBlock("div",{key:p,style:t.normalizeStyle(r.customStyleTeam),class:t.normalizeClass([l.id==i.teamselect?"colorselect":"","gsc-filterperteam__panel-teams__cont-teams__btn-team hover-team"]),onClick:c=>r.btnTeamClick(l.id)},[t.createElementVNode("img",{src:l.logo,alt:l.name,title:l.name},null,8,om)],14,tm))),128))])],512)],4)}const nm=Yd(Wo,[["render",am],["__scopeId","data-v-ab79352d"]]),rm=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},Uo={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},gr=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},yr=Uo.setup;Uo.setup=yr?(e,a)=>(gr(),yr(e,a)):gr;const im=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),sm=["src"],lm={key:1,class:"text"},cm=["src"],dm={class:"stats"},mm=im(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),pm={class:"numstats"},um={class:"leyend"};function hm(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",null,[o.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",i.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([r.customStyle,i.status&&o.typeOnOff&&r.customActive]),onClick:a[0]||(a[0]=(...s)=>r.btnClick&&r.btnClick(...s))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,sm)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",lm,t.toDisplayString(o.textValue),1)):t.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,cm)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...s)=>r.btnClick&&r.btnClick(...s))},[t.createElementVNode("div",dm,[mm,t.createElementVNode("div",pm,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",um,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const fm=rm(Uo,[["render",hm],["__scopeId","data-v-fb269a1e"]]);function gm(e){const a=t.ref({width:0,height:0});function o(){const n=e.value.getBoundingClientRect();a.value.width=n.width,a.value.height=n.height}return t.onMounted(()=>{o(),window.addEventListener("resize",o)}),t.onUnmounted(()=>{window.removeEventListener("resize",o)}),{elementSize:a}}const ym=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},bm={components:{GSCButton:fm},props:{data:{type:Object,default:()=>{}},teamSelected:{type:Number,default:0},isheader:{type:Boolean,default:!0},oneClick:{type:Boolean,default:!0},isVideos:{type:Boolean,default:!0},isGames:{type:Boolean,default:!0},isPremium:{type:Boolean,default:!0},HeadBackgroundColor:{type:String,default:""},HeadFontColor:{type:String,default:""},ItemFontColor:{type:String,default:""},backgroundColor:{type:String,default:"#172531"},ItemHeight:{type:String,default:""}},setup(){const e=t.ref("myDivRef"),{elementSize:a}=gm(e);return{myDivRef:e,elementSize:a}},computed:{customStyle(){return{backgroundColor:this.HeadBackgroundColor,color:this.HeadFontColor}},customStyleLanding(){return{backgroundColor:this.HeadBackgroundColor,color:this.HeadFontColor,borderBottom:"none"}},customStyleItem(){return{color:this.ItemFontColor,height:this.ItemHeight,backgroundColor:this.backgroundColor}},customStyleItemLanding(){return{color:this.ItemFontColor,height:this.ItemHeight,backgroundColor:this.backgroundColor,borderBottom:"none"}}},methods:{setOpenMedia(e,a,o,n,i,r="",s=!1,l){l&&this.$emit("openmedia",{team:e,mainSectionType:a,playListType:o,matchResult:n,category:i,title:r,isRivalSubject:s,value:l})},goToTeamProfile(e){this.$emit("openTableProfile",e)},clickBotonVideos(e){this.isPremium&&(this.oneClick||this.$emit("btnVideos",{team:e,type:"all"}))},clickStatsVideos(e,a){this.isPremium&&(this.oneClick||this.$emit("btnStatsVideos",{team:e,type:a}))},btnAllOneClick(e){this.isPremium&&this.oneClick&&this.$emit("btnVideos",{team:e,type:"all"})},customBg(e,a,o){return!e&&a==o?"background: rgba(30, 60, 81, 0.5)!important":""},customGridM(e){var a={};return this.isVideos&&this.isGames?e.width>768?a={gridTemplateColumns:"7% 16.5% 15% 3.8% 3.8% 3.8% 3.8% 3.8% 3.8% 3.8% 6% 20% 9%"}:e.width>480?a={gridTemplateColumns:"7% 16.5% 8% 4.8% 4.8% 4.8% 4.8% 4.8% 4.8% 4.8% 6% 20% 9%"}:a={gridTemplateColumns:"9% 9% 8% 5% 5% 5% 5% 5% 5% 5% 6% 24% 10.1%"}:this.isVideos?e.width>768?a={gridTemplateColumns:"10% 16.5% 15% 5.8% 5.8% 5.8% 5.8% 5.8% 5.8% 5.8% 7% 11%"}:e.width>480?a={gridTemplateColumns:"9% 18.5% 15% 5.8% 5.8% 5.8% 5.8% 5.8% 5.8% 5.8% 7% 10%"}:a={gridTemplateColumns:"8% 14.5% 14% 6.8% 6.8% 6.8% 6.8% 6.8% 6.8% 5.8% 7% 9%"}:this.isGames?e.width>768?a={gridTemplateColumns:"8% 16.5% 5.8% 5.8% 5.8% 5.8% 5.8% 5.8% 5.8% 6% 20% 9%"}:e.width>480?a={gridTemplateColumns:"9% 18.5% 4.8% 4.8% 4.8% 4.8% 4.8% 4.8% 4.8% 10% 20% 9%"}:a={gridTemplateColumns:"9% 16.5% 4.8% 4.8% 4.8% 4.8% 4.8% 4.8% 4.8% 10% 22% 9%"}:e.width>768?a={gridTemplateColumns:"10% 21.5% 6.8% 6.8% 6.8% 6.8% 6.8% 6.8% 9.8% 6% 12%"}:e.width>480?a={gridTemplateColumns:"10% 21.5% 6.8% 6.8% 6.8% 6.8% 6.8% 6.8% 9.8% 6% 12%"}:a={gridTemplateColumns:"10% 21.5% 6.8% 6.8% 6.8% 6.8% 6.8% 6.8% 9.8% 6% 12%"},a}}},Ho=e=>(t.pushScopeId("data-v-333b2aca"),e=e(),t.popScopeId(),e),wm={class:"trRow",style:{width:"100%",margin:"0 auto"}},_m=Ho(()=>t.createElementVNode("div",{class:"head__itemhead"},"Pos.",-1)),Sm={key:0,class:"head__itemhead"},km=t.createStaticVNode('<div class="head__itemhead fontM" data-v-333b2aca>JJ</div><div class="head__itemhead fontM" data-v-333b2aca>JG</div><div class="head__itemhead fontM" data-v-333b2aca>JE</div><div class="head__itemhead fontM" data-v-333b2aca>JP</div><div class="head__itemhead fontM" data-v-333b2aca>GF</div><div class="head__itemhead fontM" data-v-333b2aca>GC</div><div class="head__itemhead fontM" data-v-333b2aca>DG</div><div class="head__itemhead fontM" data-v-333b2aca>PTS</div>',8),Cm={key:1,class:"head__itemhead fontP"},Bm={key:1,class:"movilTextLastGame"},Em=Ho(()=>t.createElementVNode("br",null,null,-1)),Nm=Ho(()=>t.createElementVNode("div",{class:"head__itemhead fontP"},"Prox",-1)),xm=["alt","title","src"],Tm={class:"hover-decorationTeam"},Om={class:"hover-decorationTeam"},Vm={key:0,class:"tdrow__itemtd"},$m={class:"tdrow__itemtd fontM"},Am={key:1,class:"tdrow__itemtd itemtd-games"},zm={key:1},Rm=["src"];function Im(e,a,o,n,i,r){const s=t.resolveComponent("GSCButton");return t.openBlock(),t.createElementBlock("div",wm,[o.isheader?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle([o.isGames?r.customStyle:r.customStyleLanding,r.customGridM(n.elementSize)]),class:t.normalizeClass(["head",[n.elementSize.width>768?"fontSizeTextPC":n.elementSize.width>480?"fontSizeTextTablet":n.elementSize.width>360?"fontSizeTextMV":"fontSizeTextSM"]])},[_m,t.createElementVNode("div",{class:t.normalizeClass(["head__itemhead",n.elementSize.width>600?"leftText":"centerText"])},"Equipo",2),o.isVideos?(t.openBlock(),t.createElementBlock("div",Sm," ")):t.createCommentVNode("",!0),km,o.isGames?(t.openBlock(),t.createElementBlock("div",Cm,[n.elementSize.width>580?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Últimos juegos")],64)):(t.openBlock(),t.createElementBlock("span",Bm,[t.createTextVNode("Últimos "),Em,t.createTextVNode("juegos")]))])):t.createCommentVNode("",!0),Nm],6)):t.createCommentVNode("",!0),t.createElementVNode("div",{ref:"myDivRef",onClick:a[11]||(a[11]=l=>r.btnAllOneClick(o.data.team_id)),class:t.normalizeClass(["tdrow",[n.elementSize.width>768?"fontSizeTextPCTD":n.elementSize.width>480?"fontSizeTextTabletTD":n.elementSize.width>360?"fontSizeTextMVTD":"fontSizeTextSMTD"]]),style:t.normalizeStyle([o.isGames?r.customStyleItem:r.customStyleItemLanding,r.customBg(o.isGames,o.data.team_id,o.teamSelected),r.customGridM(n.elementSize)])},[t.createElementVNode("div",{class:"tdrow__itemtd",style:t.normalizeStyle(o.isGames?"":"font-size:14px; font-family: Montserrat-Regular")},t.toDisplayString(o.data.table_position>9?o.data.table_position:"0"+o.data.table_position),5),t.createElementVNode("div",{onClick:a[0]||(a[0]=l=>r.goToTeamProfile(o.data.team_id)),class:t.normalizeClass(["tdrow__itemtd",n.elementSize.width>768?"itemtd-teampc":n.elementSize.width>600?"itemtd-teamtablet":n.elementSize.width>480?"itemtd-teammv":"itemtd-teamsm"])},[t.createElementVNode("img",{class:t.normalizeClass(["hover-decorationLogo",n.elementSize.width>768?"itemtd-teampc__img":n.elementSize.width>600?"itemtd-teamtablet__img":n.elementSize.width>480?"itemtd-teammv__img":"itemtd-teamsm__img"]),alt:o.data.team_name,title:o.data.team_name,src:o.data.team_logo},null,10,xm),n.elementSize.width>600?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.elementSize.width>768?"itemtd-teampc__txt":n.elementSize.width>600?"itemtd-teamtablet__txt":n.elementSize.width>480?"itemtd-teammv__txt":"itemtd-teamsm__txt")},[t.createElementVNode("span",Tm,t.toDisplayString(o.data.team_short_name),1)],2)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.elementSize.width>768?"itemtd-teampc__txt":n.elementSize.width>600?"itemtd-teamtablet__txt":n.elementSize.width>480?"itemtd-teammv__txt":"itemtd-teamsm__txt")},[t.createElementVNode("span",Om,t.toDisplayString(o.data.team_short_name),1)],2))],2),o.isVideos?(t.openBlock(),t.createElementBlock("div",Vm,[n.elementSize.width>768?(t.openBlock(),t.createBlock(s,{key:0,icon:o.data.games_played>0?"http://golstatsimages.blob.core.windows.net/todoelfut/botonplay.png":"/botonplaydisabled.png","icon-position":"left","icon-size":"18px","text-value":"Ver videos",width:"98px",height:"30px","font-family":"Poppins-Medium","font-size":"10px","font-color":o.data.games_played>0?"#FFF":"#999","border-color":o.data.games_played>0?"#4B565F":"#2e3439","border-type":"solid",value:!0,"border-width":1,"background-color":o.data.games_played>0?"#2A3641":"rgba(42, 54, 65, .6)",onClick:a[1]||(a[1]=l=>o.data.games_played>0?r.setOpenMedia(o.data.team_id,2,3,0,0,"Juegos jugados",!1,o.data.games_played):void 0),"border-radius":"64px"},null,8,["icon","font-color","border-color","background-color"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[n.elementSize.width>560?(t.openBlock(),t.createBlock(s,{key:0,icon:o.data.games_played>0?"http://golstatsimages.blob.core.windows.net/todoelfut/botonplay.png":"/botonplaydisabled.png","icon-position":"left","icon-size":"18px","text-value":"",width:"26px",height:"26px","font-family":"Poppins-Medium","font-size":"10px","font-color":o.data.games_played>0?"#FFF":"#999","border-color":o.data.games_played>0?"#4B565F":"#2e3439","border-type":"solid","border-width":1,"background-color":o.data.games_played>0?"#2A3641":"rgba(42, 54, 65, .6)",onClick:a[2]||(a[2]=l=>o.data.games_played>0?r.setOpenMedia(o.data.team_id,2,3,0,0,"Juegos jugados",!1,o.data.games_played):void 0),"border-radius":"64px"},null,8,["icon","font-color","border-color","background-color"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[n.elementSize.width>400?(t.openBlock(),t.createBlock(s,{key:0,icon:o.data.games_played>0?"http://golstatsimages.blob.core.windows.net/todoelfut/botonplay.png":"/botonplaydisabled.png","icon-position":"left","icon-size":"18px","text-value":"",width:"21px",height:"21px","font-family":"Poppins-Medium","font-size":"10px","font-color":o.data.games_played>0?"#FFF":"#999","border-color":o.data.games_played>0?"#4B565F":"#2e3439","border-type":"solid","border-width":1,"background-color":o.data.games_played>0?"#2A3641":"rgba(42, 54, 65, .6)",onClick:a[3]||(a[3]=l=>o.data.games_played>0?r.setOpenMedia(o.data.team_id,2,3,0,0,"Juegos jugados",!1,o.data.games_played):void 0),"border-radius":"64px"},null,8,["icon","font-color","border-color","background-color"])):(t.openBlock(),t.createBlock(s,{key:1,icon:o.data.games_played>0?"http://golstatsimages.blob.core.windows.net/todoelfut/botonplay.png":"/botonplaydisabled.png","icon-position":"left","icon-size":"18px","text-value":"",width:"17px",height:"17px","font-family":"Poppins-Medium","font-size":"10px","font-color":o.data.games_played>0?"#FFF":"#999","border-color":o.data.games_played>0?"#4B565F":"#2e3439","border-type":"solid","border-width":1,"background-color":o.data.games_played>0?"#2A3641":"rgba(42, 54, 65, .6)",onClick:a[4]||(a[4]=l=>o.data.games_played>0?r.setOpenMedia(o.data.team_id,2,3,0,0,"Juegos jugados",!1,o.data.games_played):void 0),"border-radius":"64px"},null,8,["icon","font-color","border-color","background-color"]))],64))],64))])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"tdrow__itemtd fontM",onClick:a[5]||(a[5]=l=>r.setOpenMedia(o.data.team_id,2,3,0,0,"Juegos jugados",!1,o.data.games_played))},[t.createElementVNode("span",{class:t.normalizeClass(o.data.games_played!=0?"hover-decoration":"")},t.toDisplayString(o.data.games_played),3)]),t.createElementVNode("div",{class:"tdrow__itemtd fontM",onClick:a[6]||(a[6]=l=>r.setOpenMedia(o.data.team_id,2,3,1,0,"Juegos ganados",!1,o.data.games_won))},[t.createElementVNode("span",{class:t.normalizeClass(o.data.games_won!=0?"hover-decoration":"")},t.toDisplayString(o.data.games_won),3)]),t.createElementVNode("div",{class:"tdrow__itemtd fontM",onClick:a[7]||(a[7]=l=>r.setOpenMedia(o.data.team_id,2,3,3,0,"Juegos empatados",!1,o.data.games_tied))},[t.createElementVNode("span",{class:t.normalizeClass(o.data.games_tied!=0?"hover-decoration":"")},t.toDisplayString(o.data.games_tied),3)]),t.createElementVNode("div",{class:"tdrow__itemtd fontM",onClick:a[8]||(a[8]=l=>r.setOpenMedia(o.data.team_id,2,3,2,0,"Juegos perdidos",!1,o.data.games_lost))},[t.createElementVNode("span",{class:t.normalizeClass(o.data.games_lost!=0?"hover-decoration":"")},t.toDisplayString(o.data.games_lost),3)]),t.createElementVNode("div",{class:"tdrow__itemtd fontM",onClick:a[9]||(a[9]=l=>r.setOpenMedia(o.data.team_id,1,3,0,1e3,"Goles anotados",!1,o.data.goals_scored))},[t.createElementVNode("span",{class:t.normalizeClass(o.data.goals_scored!=0?"hover-decoration":"")},t.toDisplayString(o.data.goals_scored),3)]),t.createElementVNode("div",{class:"tdrow__itemtd fontM",onClick:a[10]||(a[10]=l=>r.setOpenMedia(o.data.team_id,3,3,0,1001,"Goles recibidos",!0,o.data.goals_received))},[t.createElementVNode("span",{class:t.normalizeClass(o.data.goals_received!=0?"hover-decoration":"")},t.toDisplayString(o.data.goals_received),3)]),t.createElementVNode("div",$m,t.toDisplayString(o.data.goals_difference),1),t.createElementVNode("div",{class:t.normalizeClass(["tdrow__itemtd",n.elementSize.width>768?"itemtd-penaltypc":n.elementSize.width>600?"itemtd-penaltytablet":n.elementSize.width>480?"itemtd-penaltymv":"itemtd-penaltysm"])},t.toDisplayString(o.data.points),3),o.isGames?(t.openBlock(),t.createElementBlock("div",Am,[o.data.last_five_games.length>0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(o.data.last_five_games,(l,p)=>(t.openBlock(),t.createElementBlock("div",{key:p,class:t.normalizeClass([n.elementSize.width>768?"circlepc":n.elementSize.width>600?"circletablet":n.elementSize.width>480?"circlemv":"circlesm",l=="G"?"green":l=="E"?"gray":"red"])},t.toDisplayString(l),3))),128)):(t.openBlock(),t.createElementBlock("div",zm,"-"))])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["tdrow__itemtd",n.elementSize.width>768?"itemtd-nextpc":n.elementSize.width>600?"itemtd-nexttablet":n.elementSize.width>480?"itemtd-nextmv":"itemtd-nextsm"])},[o.data.next_rival_logo=="-"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(o.data.next_rival_logo),1)],64)):(t.openBlock(),t.createElementBlock("img",{key:1,class:t.normalizeClass(n.elementSize.width>768?"itemtd-nextpc__img":n.elementSize.width>600?"itemtd-nexttablet__img":n.elementSize.width>480?"itemtd-nextmv__img":"itemtd-nextsm__img"),src:o.data.next_rival_logo},null,10,Rm))],2)],6)])}const Fm=ym(bm,[["render",Im],["__scopeId","data-v-333b2aca"]]),Pm=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},Go={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},br=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},wr=Go.setup;Go.setup=wr?(e,a)=>(br(),wr(e,a)):br;const Lm=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),Dm=["src"],Mm={key:1,class:"text"},jm=["src"],vm={class:"stats"},Wm=Lm(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),Um={class:"numstats"},Hm={class:"leyend"};function Gm(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",null,[o.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",i.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([r.customStyle,i.status&&o.typeOnOff&&r.customActive]),onClick:a[0]||(a[0]=(...s)=>r.btnClick&&r.btnClick(...s))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,Dm)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",Mm,t.toDisplayString(o.textValue),1)):t.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,jm)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...s)=>r.btnClick&&r.btnClick(...s))},[t.createElementVNode("div",vm,[Wm,t.createElementVNode("div",Um,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",Hm,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const Jm=Pm(Go,[["render",Gm],["__scopeId","data-v-fb269a1e"]]),qm={class:"gsc-dropdown__main-container__item-selected"},Zm=["height","width"],Xm=["stroke"],Km={class:"gsc-dropdown__items-container"},Ym=["onClick"],Qm={key:0,class:"gsc-dropdown__items-footer"},ep={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:a}){const o=e,n=t.ref({}),i=t.ref(null),r=t.ref(o.isMultipleOption?-1:0),s=t.ref(!1);t.watch(()=>o.items,(d,h)=>{if(!o.modelValue&&(!o.onlyFirstTime||!h||!h.length)&&d&&d.length){if(o.defaultItemByProp){const f=o.items.findIndex(y=>y[o.defaultItemByProp.propName]===o.defaultItemByProp.value);f!==-1?(r.value=f,n.value=d[f]):(r.value=0,n.value=d[0])}else n.value=d[o.defaultItemByIndex];a("input",n.value)}},{immediate:!0}),t.watch(()=>o.modelValue,d=>{if(d){const h=o.items.findIndex(f=>typeof d=="object"?JSON.stringify(f)===JSON.stringify(d):f===d);h!==-1&&(r.value=h,n.value=o.items[h],a("update:modelValue",n.value))}},{immediate:!0});const l=t.computed(()=>({height:o.height,width:o.width,backgroundColor:o.backgroundColor,borderRadius:`${o.borderRadius}px`,border:`${o.borderType} ${o.borderWidth}px ${o.borderColor}`,color:o.color,"--hover-background-color":o.hoverBackgroundColor,"--list-item-padding":o.listItemPadding,"--list-background-color":o.listBackgroundColor,"--list-height":o.listHeight,"--list-item-selected-color":o.listItemSelectedColor,"--list-item-selected-background-color":o.listItemSelectedBackgroundColor,"--list-item-color":o.listItemColor,"--list-border-radius":`${o.listBorderRadius}`,"--list-border-color":o.listBorderColor,"--list-width":o.isListSameWidth?o.width:"fit-content","--list-border-width":`${o.listBorderWidth}px`,"--footer-border":`${o.footerBorderWidth}px solid ${o.footerBorderColor}`,"--dropdown-opacity":o.isDisabled?"0.5":"1","--dropdown-cursor":o.isDisabled?"not-allowed":"pointer","--dropdown-font-size":o.fontSize?o.fontSize:"14px"})),p=t.computed(()=>({height:`${o.arrowHeight}px`,width:`${o.arrowWidth}px`}));function c(){o.isDisabled||(s.value=!s.value)}function m(d){i.value&&!i.value.contains(d.target)&&(s.value=!1)}function u(d,h){o.isMultipleOption?r.value=-1:(r.value=h,s.value=!1),n.value=d,a("input",n.value),a("update:modelValue",n.value)}function g(){s.value=!1,a("click-ready")}return t.onMounted(()=>{document.addEventListener("click",m)}),t.onBeforeMount(()=>{document.removeEventListener("click",m)}),(d,h)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:i,class:"gsc-dropdown",style:t.normalizeStyle(l.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:c},[t.createElementVNode("div",qm,[t.renderSlot(d.$slots,"default",{selectedItem:n.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":s.value}]),style:t.normalizeStyle(p.value)},[(t.openBlock(),t.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,Xm)],8,Zm))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",Km,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${o.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(f,y)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:y===r.value}]),key:y,onClick:C=>u(f,y)},[t.renderSlot(d.$slots,"availableItem",{item:f})],10,Ym))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",Qm,[t.createVNode(t.unref(Jm),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:g})])):t.createCommentVNode("",!0)])],512),[[t.vShow,s.value]])]),_:3})],4))}};/**
|
|
12
12
|
* Vue 3 Carousel 0.3.1
|
|
13
13
|
* (c) 2023
|
|
14
14
|
* @license MIT
|
|
15
|
-
*/const Y={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},br={itemsToShow:{default:Y.itemsToShow,type:Number},itemsToScroll:{default:Y.itemsToScroll,type:Number},wrapAround:{default:Y.wrapAround,type:Boolean},throttle:{default:Y.throttle,type:Number},snapAlign:{default:Y.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Y.transition,type:Number},breakpoints:{default:Y.breakpoints,type:Object},autoplay:{default:Y.autoplay,type:Number},pauseAutoplayOnHover:{default:Y.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Y.mouseDrag,type:Boolean},touchDrag:{default:Y.touchDrag,type:Boolean},dir:{default:Y.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Y.i18n,type:Object},settings:{default(){return{}},type:Object}};function Km({config:e,slidesCount:a}){const{snapAlign:o,wrapAround:n,itemsToShow:i=1}=e;if(n)return Math.max(a-1,0);let r;switch(o){case"start":r=a-i;break;case"end":r=a-1;break;case"center":case"center-odd":r=a-Math.ceil((i-.5)/2);break;case"center-even":r=a-Math.ceil(i/2);break;default:r=0;break}return Math.max(r,0)}function Ym({config:e,slidesCount:a}){const{wrapAround:o,snapAlign:n,itemsToShow:i=1}=e;let r=0;if(o||i>a)return r;switch(n){case"start":r=0;break;case"end":r=i-1;break;case"center":case"center-odd":r=Math.floor((i-1)/2);break;case"center-even":r=Math.floor((i-2)/2);break;default:r=0;break}return r}function Go({val:e,max:a,min:o}){return a<o?e:Math.min(Math.max(e,o),a)}function Qm({config:e,currentSlide:a,slidesCount:o}){const{snapAlign:n,wrapAround:i,itemsToShow:r=1}=e;let s=a;switch(n){case"center":case"center-odd":s-=(r-1)/2;break;case"center-even":s-=(r-2)/2;break;case"end":s-=r-1;break}return i?s:Go({val:s,max:o-r,min:0})}function wr(e){return e?e.reduce((a,o)=>{var n;return o.type===t.Fragment?[...a,...wr(o.children)]:((n=o.type)===null||n===void 0?void 0:n.name)==="CarouselSlide"?[...a,o]:a},[]):[]}function Jo({val:e,max:a,min:o=0}){return e>a?Jo({val:e-(a+1),max:a,min:o}):e<o?Jo({val:e+(a+1),max:a,min:o}):e}function ep(e,a){let o;return a?function(...n){const i=this;o||(e.apply(i,n),o=!0,setTimeout(()=>o=!1,a))}:e}function tp(e,a){let o;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{e(...n),o=null},a)}}function op(e="",a={}){return Object.entries(a).reduce((o,[n,i])=>o.replace(`{${n}}`,String(i)),e)}var ap=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Y))),a=t.inject("currentSlide",t.ref(0)),o=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},op(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:o.value}))}}),np=t.defineComponent({name:"Carousel",props:br,setup(e,{slots:a,emit:o,expose:n}){var i;const r=t.ref(null),s=t.ref([]),l=t.ref(0),p=t.ref(0),d=t.reactive(Object.assign({},Y));let c=Object.assign({},Y),h;const m=t.ref((i=e.modelValue)!==null&&i!==void 0?i:0),f=t.ref(0),u=t.ref(0),g=t.ref(0),y=t.ref(0);let C,A;t.provide("config",d),t.provide("slidesCount",p),t.provide("currentSlide",m),t.provide("maxSlide",g),t.provide("minSlide",y),t.provide("slideWidth",l);function v(){h=Object.assign({},e.breakpoints),c=Object.assign(Object.assign(Object.assign({},c),e),{i18n:Object.assign(Object.assign({},c.i18n),e.i18n),breakpoints:void 0}),ne(c)}function U(){if(!h||!Object.keys(h).length)return;const b=Object.keys(h).map(x=>Number(x)).sort((x,M)=>+M-+x);let V=Object.assign({},c);b.some(x=>{const M=window.matchMedia(`(min-width: ${x}px)`).matches;return M&&(V=Object.assign(Object.assign({},V),h[x])),M}),ne(V)}function ne(b){Object.entries(b).forEach(([V,x])=>d[V]=x)}const he=tp(()=>{U(),X()},16);function X(){if(!r.value)return;const b=r.value.getBoundingClientRect();l.value=b.width/d.itemsToShow}function se(){p.value<=0||(u.value=Math.ceil((p.value-1)/2),g.value=Km({config:d,slidesCount:p.value}),y.value=Ym({config:d,slidesCount:p.value}),d.wrapAround||(m.value=Go({val:m.value,max:g.value,min:y.value})))}t.onMounted(()=>{t.nextTick(()=>X()),setTimeout(()=>X(),1e3),U(),Ae(),window.addEventListener("resize",he,{passive:!0}),o("init")}),t.onUnmounted(()=>{A&&clearTimeout(A),C&&clearInterval(C),window.removeEventListener("resize",he,{passive:!0})});let R=!1;const ae={x:0,y:0},ee={x:0,y:0},j=t.reactive({x:0,y:0}),te=t.ref(!1),re=t.ref(!1),We=()=>{te.value=!0},Ue=()=>{te.value=!1};function Ve(b){["INPUT","TEXTAREA","SELECT"].includes(b.target.tagName)||(R=b.type==="touchstart",R||b.preventDefault(),!(!R&&b.button!==0||B.value)&&(ae.x=R?b.touches[0].clientX:b.clientX,ae.y=R?b.touches[0].clientY:b.clientY,document.addEventListener(R?"touchmove":"mousemove",fe,!0),document.addEventListener(R?"touchend":"mouseup",$e,!0)))}const fe=ep(b=>{re.value=!0,ee.x=R?b.touches[0].clientX:b.clientX,ee.y=R?b.touches[0].clientY:b.clientY;const V=ee.x-ae.x,x=ee.y-ae.y;j.y=x,j.x=V},d.throttle);function $e(){const b=d.dir==="rtl"?-1:1,V=Math.sign(j.x)*.4,x=Math.round(j.x/l.value+V)*b;if(x&&!R){const M=be=>{be.stopPropagation(),window.removeEventListener("click",M,!0)};window.addEventListener("click",M,!0)}E(m.value-x),j.x=0,j.y=0,re.value=!1,document.removeEventListener(R?"touchmove":"mousemove",fe,!0),document.removeEventListener(R?"touchend":"mouseup",$e,!0)}function Ae(){!d.autoplay||d.autoplay<=0||(C=setInterval(()=>{d.pauseAutoplayOnHover&&te.value||T()},d.autoplay))}function O(){C&&(clearInterval(C),C=null),Ae()}const B=t.ref(!1);function E(b){const V=d.wrapAround?b:Go({val:b,max:g.value,min:y.value});m.value===V||B.value||(o("slide-start",{slidingToIndex:b,currentSlideIndex:m.value,prevSlideIndex:f.value,slidesCount:p.value}),B.value=!0,f.value=m.value,m.value=V,A=setTimeout(()=>{if(d.wrapAround){const x=Jo({val:V,max:g.value,min:0});x!==m.value&&(m.value=x,o("loop",{currentSlideIndex:m.value,slidingToIndex:b}))}o("update:modelValue",m.value),o("slide-end",{currentSlideIndex:m.value,prevSlideIndex:f.value,slidesCount:p.value}),B.value=!1,O()},d.transition))}function T(){E(m.value+d.itemsToScroll)}function N(){E(m.value-d.itemsToScroll)}const $={slideTo:E,next:T,prev:N};t.provide("nav",$),t.provide("isSliding",B);const z=t.computed(()=>Qm({config:d,currentSlide:m.value,slidesCount:p.value}));t.provide("slidesToScroll",z);const D=t.computed(()=>{const b=d.dir==="rtl"?-1:1,V=z.value*l.value*b;return{transform:`translateX(${j.x-V}px)`,transition:`${B.value?d.transition:0}ms`,margin:d.wrapAround?`0 -${p.value*l.value}px`:"",width:"100%"}});function W(){v(),U(),se(),X(),O()}Object.keys(br).forEach(b=>{["modelValue"].includes(b)||t.watch(()=>e[b],W)}),t.watch(()=>e.modelValue,b=>{b!==m.value&&E(Number(b))}),t.watch(p,se),o("before-init"),v();const K={config:d,slidesCount:p,slideWidth:l,next:T,prev:N,slideTo:E,currentSlide:m,maxSlide:g,minSlide:y,middleSlide:u};n({updateBreakpointsConfigs:U,updateSlidesData:se,updateSlideWidth:X,initDefaultConfigs:v,restartCarousel:W,slideTo:E,next:T,prev:N,nav:$,data:K});const ge=a.default||a.slides,ye=a.addons,je=t.reactive(K);return()=>{const b=wr(ge==null?void 0:ge(je)),V=(ye==null?void 0:ye(je))||[];b.forEach((we,_e)=>we.props.index=_e);let x=b;if(d.wrapAround){const we=b.map((Se,oe)=>t.cloneVNode(Se,{index:-b.length+oe,isClone:!0,key:`clone-before-${oe}`})),_e=b.map((Se,oe)=>t.cloneVNode(Se,{index:b.length+oe,isClone:!0,key:`clone-after-${oe}`}));x=[...we,...b,..._e]}s.value=b,p.value=Math.max(b.length,1);const M=t.h("ol",{class:"carousel__track",style:D.value,onMousedownCapture:d.mouseDrag?Ve:null,onTouchstartPassiveCapture:d.touchDrag?Ve:null},x),be=t.h("div",{class:"carousel__viewport"},M);return t.h("section",{ref:r,class:{carousel:!0,"is-sliding":B.value,"is-dragging":re.value,"is-hover":te.value,"carousel--rtl":d.dir==="rtl"},dir:d.dir,"aria-label":d.i18n.ariaGallery,tabindex:"0",onMouseenter:We,onMouseleave:Ue},[be,V,t.h(ap)])}}}),_r;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(_r||(_r={}));var rp=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const o=t.inject("config",t.reactive(Object.assign({},Y))),n=t.inject("currentSlide",t.ref(0)),i=t.inject("slidesToScroll",t.ref(0)),r=t.inject("isSliding",t.ref(!1)),s=()=>e.index===n.value,l=()=>e.index===n.value-1,p=()=>e.index===n.value+1,d=()=>{const c=Math.floor(i.value),h=Math.ceil(i.value+o.itemsToShow-1);return e.index>=c&&e.index<=h};return()=>{var c;return t.h("li",{style:{width:`${100/o.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":d(),"carousel__slide--active":s(),"carousel__slide--prev":l(),"carousel__slide--next":p(),"carousel__slide--sliding":r.value},"aria-hidden":!d()},(c=a.default)===null||c===void 0?void 0:c.call(a))}}});const ip=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},sp=e=>(t.pushScopeId("data-v-dd3cbf69"),e=e(),t.popScopeId(),e),lp={class:"gsc-carousel"},cp={key:0},dp=sp(()=>t.createElementVNode("div",null,"no hay",-1)),mp=[dp],pp={class:"gsc-carousel__2d__slides"},up={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},hp=["fill"],fp={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},gp=["fill"],yp={class:"gsc-carousel__2d__navigation"},bp={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wp=["stroke"],_p={key:1,class:"gsc-carousel__2d__navigation__pagination"},Sp=["onClick"],kp={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Cp=["stroke"],Bp={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:a,emit:o}){const n=e;t.useCssVars(g=>({"0d808f0f":e.slideLeftArrowBackgroundImage,"1e0ef2e5":e.slidesArrowsLeftAndRight,"66d12b5c":e.slideRightArrowBackgroundImage,"2b22a85a":e.marginTop,"1a842b02":e.secondarySlidesOpacity}));const i=t.ref(null),r=t.ref({}),s=t.ref(0),l=t.ref(!1);t.watch(i,g=>{g&&l.value?(l.value=!1,p(n.items)):g&&g.slideTo&&g.slideTo(s.value)},{deep:!0}),t.watch(()=>n.currentItemIndex,g=>{s.value!==g&&m(g)}),t.watch(()=>n.items,g=>{i.value?p(g):l.value=!0},{immediate:!0});function p(g){if(g&&g.length&&i.value){if(n.defaultItemByProp){const y=n.items.findIndex(C=>C[n.defaultItemByProp.propName]===n.defaultItemByProp.value);y!==-1?(s.value=y,r.value=g[y]):(s.value=0,r.value=g[0])}else s.value=n.defaultItemByIndex,r.value=g[n.defaultItemByIndex];i.value.slideTo&&i.value.slideTo(s.value),o("input",{selectedItem:r.value,selectedItemIndex:s.value})}}function d(){i.value&&i.value.next()}function c(){i.value&&i.value.prev()}function h(){i.value&&i.value.updateSlideWidth()}function m(g){i.value&&i.value.slideTo(g)}function f(g){i.value.slideTo(g)}function u(g){const y=g.slidingToIndex<0?n.items.length-1:g.slidingToIndex===n.items.length?0:g.slidingToIndex;s.value=y,r.value=n.items[y],o("update:currentItemIndex",y),o("input",{selectedItem:r.value,selectedItemIndex:s.value})}return a({prev:c,next:d,updateSlideWidth:h,slideTo:m}),(g,y)=>(t.openBlock(),t.createElementBlock("div",lp,[n.is3d?(t.openBlock(),t.createElementBlock("div",cp,mp)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",pp,[t.createVNode(t.unref(np),{ref_key:"carousel2d",ref:i,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:u},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(C,A)=>(t.openBlock(),t.createBlock(t.unref(rp),{key:A},{default:t.withCtx(()=>[t.renderSlot(g.$slots,"default",{item:C},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",onClick:y[0]||(y[0]=C=>i.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",up,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:e.arrowsColor},null,8,hp)]))],2)])):t.createCommentVNode("",!0),e.areSlidesArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",onClick:y[1]||(y[1]=C=>d())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",fp,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:e.arrowsColor},null,8,gp)]))],2)])):t.createCommentVNode("",!0),t.createElementVNode("div",yp,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:y[2]||(y[2]=C=>c())},[(t.openBlock(),t.createElementBlock("svg",bp,[t.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:n.arrowsColor},null,8,wp)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",_p,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(C,A)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${A}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${n.navigationHeight}px`,width:`${s.value===A?n.navigationActiveWidth:n.navigationActiveWidth/2}px`,borderRadius:`${n.navigationBorderRadius}px`,backgroundColor:`${s.value===A?n.navigationActiveColor:n.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:v=>f(A)},null,12,Sp))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:y[3]||(y[3]=C=>i.value.next())},[(t.openBlock(),t.createElementBlock("svg",kp,[t.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:n.arrowsColor},null,8,Cp)]))])):t.createCommentVNode("",!0)])],2))]))}},Ep=ip(Bp,[["__scopeId","data-v-dd3cbf69"]]),Np=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},qo={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},Sr=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},kr=qo.setup;qo.setup=kr?(e,a)=>(Sr(),kr(e,a)):Sr;const xp=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),Tp=["src"],Op={key:1,class:"text"},Vp=["src"],$p={class:"stats"},Ap=xp(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),zp={class:"numstats"},Rp={class:"leyend"};function Ip(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",null,[o.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",i.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([r.customStyle,i.status&&o.typeOnOff&&r.customActive]),onClick:a[0]||(a[0]=(...s)=>r.btnClick&&r.btnClick(...s))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,Tp)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",Op,t.toDisplayString(o.textValue),1)):t.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,Vp)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...s)=>r.btnClick&&r.btnClick(...s))},[t.createElementVNode("div",$p,[Ap,t.createElementVNode("div",zp,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",Rp,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const Fp=Np(qo,[["render",Ip],["__scopeId","data-v-fb269a1e"]]),Pp={class:"gsc-dropdown__main-container__item-selected"},Lp=["height","width"],Dp=["stroke"],Mp={class:"gsc-dropdown__items-container"},jp=["onClick"],vp={key:0,class:"gsc-dropdown__items-footer"},Wp={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:a}){const o=e,n=t.ref({}),i=t.ref(null),r=t.ref(o.isMultipleOption?-1:0),s=t.ref(!1);t.watch(()=>o.items,(f,u)=>{if(!o.modelValue&&(!o.onlyFirstTime||!u||!u.length)&&f&&f.length){if(o.defaultItemByProp){const g=o.items.findIndex(y=>y[o.defaultItemByProp.propName]===o.defaultItemByProp.value);g!==-1?(r.value=g,n.value=f[g]):(r.value=0,n.value=f[0])}else n.value=f[o.defaultItemByIndex];a("input",n.value)}},{immediate:!0}),t.watch(()=>o.modelValue,f=>{if(f){const u=o.items.findIndex(g=>typeof f=="object"?JSON.stringify(g)===JSON.stringify(f):g===f);u!==-1&&(r.value=u,n.value=o.items[u],a("update:modelValue",n.value))}},{immediate:!0});const l=t.computed(()=>({height:o.height,width:o.width,backgroundColor:o.backgroundColor,borderRadius:`${o.borderRadius}px`,border:`${o.borderType} ${o.borderWidth}px ${o.borderColor}`,color:o.color,"--hover-background-color":o.hoverBackgroundColor,"--list-item-padding":o.listItemPadding,"--list-background-color":o.listBackgroundColor,"--list-height":o.listHeight,"--list-item-selected-color":o.listItemSelectedColor,"--list-item-selected-background-color":o.listItemSelectedBackgroundColor,"--list-item-color":o.listItemColor,"--list-border-radius":`${o.listBorderRadius}`,"--list-border-color":o.listBorderColor,"--list-width":o.isListSameWidth?o.width:"fit-content","--list-border-width":`${o.listBorderWidth}px`,"--footer-border":`${o.footerBorderWidth}px solid ${o.footerBorderColor}`,"--dropdown-opacity":o.isDisabled?"0.5":"1","--dropdown-cursor":o.isDisabled?"not-allowed":"pointer","--dropdown-font-size":o.fontSize?o.fontSize:"14px"})),p=t.computed(()=>({height:`${o.arrowHeight}px`,width:`${o.arrowWidth}px`}));function d(){o.isDisabled||(s.value=!s.value)}function c(f){i.value&&!i.value.contains(f.target)&&(s.value=!1)}function h(f,u){o.isMultipleOption?r.value=-1:(r.value=u,s.value=!1),n.value=f,a("input",n.value),a("update:modelValue",n.value)}function m(){s.value=!1,a("click-ready")}return t.onMounted(()=>{document.addEventListener("click",c)}),t.onBeforeMount(()=>{document.removeEventListener("click",c)}),(f,u)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:i,class:"gsc-dropdown",style:t.normalizeStyle(l.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:d},[t.createElementVNode("div",Pp,[t.renderSlot(f.$slots,"default",{selectedItem:n.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":s.value}]),style:t.normalizeStyle(p.value)},[(t.openBlock(),t.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,Dp)],8,Lp))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",Mp,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${o.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(g,y)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:y===r.value}]),key:y,onClick:C=>h(g,y)},[t.renderSlot(f.$slots,"availableItem",{item:g})],10,jp))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",vp,[t.createVNode(t.unref(Fp),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:m})])):t.createCommentVNode("",!0)])],512),[[t.vShow,s.value]])]),_:3})],4))}},Up=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},Hp={class:"tournament-select__selected-tournament"},Gp={class:"tournament-select__selected-tournament__logo"},Jp=["src"],qp={class:"tournament-select__selected-tournament__name"},Zp={__name:"GSCTournamentSelect",props:{apiUrl:{type:String,default:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments"},fontFamily:{type:String,default:"Poppins-Light"},logosUrl:{type:String,default:"https://az755631.vo.msecnd.net/todoelfut/"},logoFileType:{type:String,default:"png"},height:{type:String,default:"40px"},width:{type:String,default:"179px"},borderRadius:{type:Number,default:8},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},backgroundColor:{type:String,default:"#0d1d29"},color:{type:String,default:"white"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},currentSeasonId:{type:Number,default:0}},emits:["input"],setup(e,{emit:a}){const o=e,n=t.ref([]),i=t.computed(()=>{const h={};return o.fontFamily&&(h["font-family"]=`${o.fontFamily}`),h}),r=t.computed(()=>n.value.find(h=>h.seasonsIds.has(o.currentSeasonId))||n.value[0]);async function s(){try{if(o.items&&o.items.length)n.value=[...o.items];else if(o.apiUrl){const h=await p();n.value=h.map(m=>({...m.tournament,seasons:m.seasons,seasonsIds:m.seasons.reduce((f,u)=>(f.add(u.id),f),new Set)})).sort((m,f)=>m.order-f.order)}}catch(h){throw new Error(h)}}function l(h){const m=new XMLHttpRequest,f=`${o.logosUrl}${h}.${o.logoFileType}`;return m.open("HEAD",f,!1),m.send(),m.status!==404}async function p(){try{return(await fetch(o.apiUrl)).json()}catch(h){return Promise.reject(h)}}function d(h){a("input",h)}function c(h){a("input",h)}return t.onMounted(()=>{s()}),(h,m)=>(t.openBlock(),t.createElementBlock("div",{class:"tournament-select",style:t.normalizeStyle(i.value)},[t.createVNode(t.unref(Wp),t.mergeProps(o,{"model-value":r.value,items:n.value,onInput:d,"onUpdate:modelValue":c}),{default:t.withCtx(({selectedItem:f})=>[t.createElementVNode("div",Hp,[t.createElementVNode("div",Gp,[l(f.id)?(t.openBlock(),t.createElementBlock("img",{key:0,src:`${o.logosUrl}${f.id}.${o.logoFileType}`,alt:""},null,8,Jp)):t.createCommentVNode("",!0)]),t.createElementVNode("div",qp,t.toDisplayString(f.name),1)])]),availableItem:t.withCtx(({item:f})=>[t.createElementVNode("div",null,t.toDisplayString(f.name),1)]),_:1},16,["model-value","items"])],4))}},Xp=Up(Zp,[["__scopeId","data-v-355af272"]]),Kp=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},Zo={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},Cr=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},Br=Zo.setup;Zo.setup=Br?(e,a)=>(Cr(),Br(e,a)):Cr;const Yp=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),Qp=["src"],eu={key:1,class:"text"},tu=["src"],ou={class:"stats"},au=Yp(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),nu={class:"numstats"},ru={class:"leyend"};function iu(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",null,[o.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",i.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([r.customStyle,i.status&&o.typeOnOff&&r.customActive]),onClick:a[0]||(a[0]=(...s)=>r.btnClick&&r.btnClick(...s))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,Qp)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",eu,t.toDisplayString(o.textValue),1)):t.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,tu)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...s)=>r.btnClick&&r.btnClick(...s))},[t.createElementVNode("div",ou,[au,t.createElementVNode("div",nu,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",ru,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const su=Kp(Zo,[["render",iu],["__scopeId","data-v-fb269a1e"]]),lu={class:"gsc-dropdown__main-container__item-selected"},cu=["height","width"],du=["stroke"],mu={class:"gsc-dropdown__items-container"},pu=["onClick"],uu={key:0,class:"gsc-dropdown__items-footer"},hu={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:a}){const o=e,n=t.ref({}),i=t.ref(null),r=t.ref(o.isMultipleOption?-1:0),s=t.ref(!1);t.watch(()=>o.items,(f,u)=>{if(!o.modelValue&&(!o.onlyFirstTime||!u||!u.length)&&f&&f.length){if(o.defaultItemByProp){const g=o.items.findIndex(y=>y[o.defaultItemByProp.propName]===o.defaultItemByProp.value);g!==-1?(r.value=g,n.value=f[g]):(r.value=0,n.value=f[0])}else n.value=f[o.defaultItemByIndex];a("input",n.value)}},{immediate:!0}),t.watch(()=>o.modelValue,f=>{if(f){const u=o.items.findIndex(g=>typeof f=="object"?JSON.stringify(g)===JSON.stringify(f):g===f);u!==-1&&(r.value=u,n.value=o.items[u],a("update:modelValue",n.value))}},{immediate:!0});const l=t.computed(()=>({height:o.height,width:o.width,backgroundColor:o.backgroundColor,borderRadius:`${o.borderRadius}px`,border:`${o.borderType} ${o.borderWidth}px ${o.borderColor}`,color:o.color,"--hover-background-color":o.hoverBackgroundColor,"--list-item-padding":o.listItemPadding,"--list-background-color":o.listBackgroundColor,"--list-height":o.listHeight,"--list-item-selected-color":o.listItemSelectedColor,"--list-item-selected-background-color":o.listItemSelectedBackgroundColor,"--list-item-color":o.listItemColor,"--list-border-radius":`${o.listBorderRadius}`,"--list-border-color":o.listBorderColor,"--list-width":o.isListSameWidth?o.width:"fit-content","--list-border-width":`${o.listBorderWidth}px`,"--footer-border":`${o.footerBorderWidth}px solid ${o.footerBorderColor}`,"--dropdown-opacity":o.isDisabled?"0.5":"1","--dropdown-cursor":o.isDisabled?"not-allowed":"pointer","--dropdown-font-size":o.fontSize?o.fontSize:"14px"})),p=t.computed(()=>({height:`${o.arrowHeight}px`,width:`${o.arrowWidth}px`}));function d(){o.isDisabled||(s.value=!s.value)}function c(f){i.value&&!i.value.contains(f.target)&&(s.value=!1)}function h(f,u){o.isMultipleOption?r.value=-1:(r.value=u,s.value=!1),n.value=f,a("input",n.value),a("update:modelValue",n.value)}function m(){s.value=!1,a("click-ready")}return t.onMounted(()=>{document.addEventListener("click",c)}),t.onBeforeMount(()=>{document.removeEventListener("click",c)}),(f,u)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:i,class:"gsc-dropdown",style:t.normalizeStyle(l.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:d},[t.createElementVNode("div",lu,[t.renderSlot(f.$slots,"default",{selectedItem:n.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":s.value}]),style:t.normalizeStyle(p.value)},[(t.openBlock(),t.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,du)],8,cu))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",mu,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${o.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(g,y)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:y===r.value}]),key:y,onClick:C=>h(g,y)},[t.renderSlot(f.$slots,"availableItem",{item:g})],10,pu))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",uu,[t.createVNode(t.unref(su),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:m})])):t.createCommentVNode("",!0)])],512),[[t.vShow,s.value]])]),_:3})],4))}},fu=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},gu={class:"season-name"},yu={class:"items-list-season"},bu={__name:"GSC-SeasonSelect",props:{seasons:{type:Array,default:()=>[]},currentSeasonId:{type:Number,default:0}},emits:["input"],setup(e,{emit:a}){const o=e,n=t.computed(()=>o.seasons.find(s=>s.id===o.currentSeasonId));function i(s){a("input",s)}function r(s){a("input",s)}return(s,l)=>(t.openBlock(),t.createBlock(t.unref(hu),{items:e.seasons,"model-value":n.value,height:"40px",width:"179px","background-color":"#0d1d29",color:"white","border-color":"rgba(255, 255, 255, 0.2)","font-family":"Poppins-Regular","border-radius":8,onInput:r,"onUpdate:modelValue":i},{default:t.withCtx(({selectedItem:p})=>[t.createElementVNode("div",gu,[t.createElementVNode("span",null,t.toDisplayString(p.name),1)])]),availableItem:t.withCtx(({item:p})=>[t.createElementVNode("span",yu,t.toDisplayString(p.name),1)]),_:1},8,["items","model-value"]))}},wu=fu(bu,[["__scopeId","data-v-3a11087d"]]);function _u(e){const a=t.ref({width:0,height:0});function o(){const n=e.value.getBoundingClientRect();a.value.width=n.width,a.value.height=n.height}return t.onMounted(()=>{o(),window.addEventListener("resize",o)}),t.onUnmounted(()=>{window.removeEventListener("resize",o)}),{elementSize:a}}const Su=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},ku={components:{GSCFilterperteam:em,GSCTableperteam:Am,GSCDropdown:Xm,GSCCarousel:Ep,GSCTournamentSelect:Xp,GSCSeasonSelect:wu},computed:{customStyle(){return{backgroundColor:this.background,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,height:this.height}},customStyleLanding(){return{boxShadow:"0px 4px 20px 0px rgba(0, 0, 0, 0.25)",backgroundColor:this.background,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,height:this.height,borderRadius:"9px"}},customStyleTitle(){return{color:this.colortitle}}},props:{season:{type:Number},currentSeasonId:{type:Number,default:0},awaitForSeason:{type:Boolean,default:!0},type:{type:Number,default:0},teamperpage:{type:Number,default:5},background:{type:String,default:"#0d1d29"},borderRadius:{type:String,default:"8px"},borderWidth:{type:Number,default:0},borderColor:{type:String,default:"#0d1d29"},borderType:{type:String,default:"solid"},height:{type:String,default:"auto"},colortitle:{type:String,default:"#FFFFFF"},isPaginationVisible:{type:Boolean,default:!1}},setup(){const e=t.ref("myDivRef"),{elementSize:a}=_u(e);return{myDivRef:e,elementSize:a}},data(){return{url:"https://jfxv8fqkn3.execute-api.us-west-2.amazonaws.com/prod/generalTable/",tournamentsUrl:"https://17zyhpyc7c.execute-api.us-west-2.amazonaws.com/prod/tournaments",tournaments:[],tournamentSelected:{seasons:[]},seasonSelected:{},retries:3,tableData:null,tableFull:!0,flaghideShow:!0,showNum:6,seasonSelect:0,teamselect:0,arrayTournaments:[],arraySeasons:{},seasonBytournament:[],teams:[],pagesteams:[],token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},watch:{currentSeasonId:{async handler(e,a){this.type==1&&e!==0&&e!==a&&await this.getTableList(this.currentSeasonId)},immediate:!0}},async created(){try{const e=await this.fetchTournaments(3);this.tournaments=e.map(a=>({...a.tournament,seasons:a.seasons}));for(const a in e){this.arrayTournaments.push({id:e[a].tournament.id,name:e[a].tournament.name}),this.arraySeasons[e[a].tournament.id]={};for(const o in e[a].seasons)this.arraySeasons[e[a].tournament.id][" "+e[a].seasons[o].id]={},this.arraySeasons[e[a].tournament.id][" "+e[a].seasons[o].id].id=e[a].seasons[o].id,this.arraySeasons[e[a].tournament.id][" "+e[a].seasons[o].id].name=e[a].seasons[o].name}if(this.type==1)if(this.currentSeasonId===0){const a=e.find(o=>o._id===1).seasons[0];await this.getTableList(a.id)}else await this.getTableList(this.currentSeasonId)}catch(e){throw new Error(e)}},methods:{setOpenMedia(e){const a={1e3:[12,55,"35_r","54_r"],1001:["57_r","326_r","56_r","60_r","59_r","55_r",35,54],0:[]},o=[1,2,3],n=a[e.category]||[];let i={seasonId:this.seasonSelect,tournaments:this.tournaments,mainSectionType:1,playListType:e.playListType,categoryIds:n,gameIds:null,playerIds:[],teamId:e.team,matchResult:e.matchResult?[e.matchResult]:o,isRivalSubject:e.isRivalSubject,playData:{},advancedFilter:{playListTitle:e.title}};e.category!==0&&(i.advancedFilter.mainCategoryId=e.category),this.$emit("openmedia",i)},openTableProfile(e){const a={team:e,season:this.seasonSelect};this.$emit("openTableProfile",a)},clickAll(e){this.teamselect=e},clickTeam(e){this.teamselect=e},onInputTournament(e){this.tournamentSelected.id!==e.id&&(this.tournamentSelected=e)},async onInputSeason(e){this.seasonSelected!==e.id&&(this.seasonSelected=e.id,this.$emit("change-season-id",e.id),await this.getTableList(e.id))},async getTableList(e){try{this.seasonSelect=e,this.teams=[];const a=await cr.create({headers:{Authorization:`${this.token}`}}).get(this.url+e);if(this.tableData=a.data.data,this.pagesteams=[],this.teamperpage>0){let o=[];this.tableData.forEach((n,i)=>{o.push(n),(i+1)%this.teamperpage===0&&(this.pagesteams.push([...o]),o=[])}),o.length&&this.pagesteams.push([...o])}for(let o=0;o<this.tableData.length;o++)this.teams.push({id:this.tableData[o].team_id,team:this.tableData[o].team_name,logo:this.tableData[o].team_logo});this.teams.sort((o,n)=>{const i=o.team.toUpperCase(),r=n.team.toUpperCase();return i<r?-1:i>r?1:0})}catch(a){return Promise.reject(a)}},async fetchTournaments(){const e=cr.create({headers:{Authorization:`${this.token}`}}),{data:a}=await e.get(this.tournamentsUrl);return a}}},Cu=e=>(t.pushScopeId("data-v-871f6068"),e=e(),t.popScopeId(),e),Bu={class:"gsc-generaltable__container"},Eu=Cu(()=>t.createElementVNode("div",{class:"gsc-generaltable__row-sep"},[t.createElementVNode("div",{class:"gsc-generaltable__row-sep__line"})],-1)),Nu={key:1,class:"carousel-table-landing"},xu={class:"row-table-carrousel"};function Tu(e,a,o,n,i,r){const s=t.resolveComponent("GSCTournamentSelect"),l=t.resolveComponent("GSCSeasonSelect"),p=t.resolveComponent("GSCFilterperteam"),d=t.resolveComponent("GSCTableperteam"),c=t.resolveComponent("GSCCarousel");return t.openBlock(),t.createElementBlock("div",{class:"gsc-generaltable",style:t.normalizeStyle(o.type==0?r.customStyle:r.customStyleLanding),ref:"myDivRef"},[o.type==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-generaltable__row-toolbar",n.elementSize.width<590?"style-display":""])},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-generaltable__row-toolbar__title",n.elementSize.width<768?"style-auto":""]),style:t.normalizeStyle(r.customStyleTitle)}," Tabla General ",6),t.createElementVNode("div",{class:t.normalizeClass(["gsc-generaltable__row-toolbar__selectors",n.elementSize.width<768&&n.elementSize.width>590?"style-auto":n.elementSize.width<590?"width-100":""])},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-generaltable__row-toolbar__selectors__tournaments",n.elementSize.width<590&&n.elementSize.width>=420?"width-50":n.elementSize.width<420?"width-30":""])},[t.createVNode(s,{"current-season-id":o.currentSeasonId,onInput:r.onInputTournament},null,8,["current-season-id","onInput"])],2),t.createElementVNode("div",{class:t.normalizeClass(["gsc-generaltable__row-toolbar__selectors__seasons",n.elementSize.width<590&&n.elementSize.width>=420?"width-50":n.elementSize.width<420?"width-30":""])},[t.createVNode(l,{"current-season-id":o.currentSeasonId,seasons:i.tournamentSelected.seasons,onInput:r.onInputSeason},null,8,["current-season-id","seasons","onInput"])],2)],2)],2),t.createElementVNode("div",Bu,[t.createVNode(p,{data:i.teams,"background-color":"none","contain-border-radius":"8px",onClickTeam:r.clickTeam,onClickAll:r.clickAll},null,8,["data","onClickTeam","onClickAll"]),Eu,i.tableData?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(i.tableData,(h,m)=>(t.openBlock(),t.createBlock(d,{key:m,onOpenmedia:r.setOpenMedia,onOpenTableProfile:r.openTableProfile,isheader:m==0,"background-color":i.teamselect!=0&&i.teamselect==h.team_id?"rgba(30, 60, 81, 0.5)":m%2===0?"#172531":"#0d1d29",data:h},null,8,["onOpenmedia","onOpenTableProfile","isheader","background-color","data"]))),128)):t.createCommentVNode("",!0)])],64)):(t.openBlock(),t.createElementBlock("div",Nu,[t.createVNode(c,{isPaginationVisible:o.isPaginationVisible,items:i.pagesteams},{default:t.withCtx(({item:h})=>[t.createElementVNode("div",xu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h,(m,f)=>(t.openBlock(),t.createBlock(d,{key:f,onOpenmedia:r.setOpenMedia,onOpenTableProfile:r.openTableProfile,"is-games":!1,ItemHeight:"60px",teamSelected:1,isheader:f==0,"background-color":i.teamselect!=0&&i.teamselect==m.team_id?"rgba(30, 60, 81, 0.5)":f%2===0?"#172531":"#0d1d29",data:m},null,8,["onOpenmedia","onOpenTableProfile","isheader","background-color","data"]))),128))])]),_:1},8,["isPaginationVisible","items"])]))],4)}const Ou=Su(ku,[["render",Tu],["__scopeId","data-v-871f6068"]]);function Vu(e){const a=t.ref({width:0,height:0});function o(){const n=e.value.getBoundingClientRect();a.value.width=n.width,a.value.height=n.height}return t.onMounted(()=>{o(),window.addEventListener("resize",o)}),t.onUnmounted(()=>{window.removeEventListener("resize",o)}),{elementSize:a}}const $u=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},Xo={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)}}},Er=()=>{t.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},Nr=Xo.setup;Xo.setup=Nr?(e,a)=>(Er(),Nr(e,a)):Er;const Au={ref:"gscScrollableContainer",class:"scrollable-container"},zu={class:"scrollable-arrows"},Ru=["width","height","viewBox"],Iu=["stroke"],Fu={class:"scrollable-wrapper"},Pu={class:"scrollable-arrows"},Lu=["width","height","viewBox"],Du=["stroke"];function Mu(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",Au,[o.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",r.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...s)=>r.scrollLeft&&r.scrollLeft(...s))},[t.createElementVNode("div",zu,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:r.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:o.arrowsColor},null,8,Iu)],8,Ru))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:a[1]||(a[1]=(...s)=>r.getScroll&&r.getScroll(...s))},[t.createElementVNode("div",Fu,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),o.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",r.hideShowRightArrow]),onClick:a[2]||(a[2]=(...s)=>r.scrollRight&&r.scrollRight(...s))},[t.createElementVNode("div",Pu,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:r.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:o.arrowsColor},null,8,Du)],8,Lu))])],2)):t.createCommentVNode("",!0)],512)}const ju=$u(Xo,[["render",Mu],["__scopeId","data-v-b548a08d"]]),vu=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},Ko={components:{GSCSlider:ju},props:{arrow:{type:Boolean,required:!0},buttons:{type:Array,required:!0},width:{type:String,default:"300px"},height:{type:String,default:"80px"},fontSize:{type:String,default:"16px"},colorFont:{type:String,default:"#ffffff"},backgroundOptionActive:{type:String,default:"#0d1d29"},colorOptionActive:{type:String,default:"#cbee6b"},colorOptionDisable:{type:String,default:"gray"},backgroundOptionDisable:{type:String,default:"#0d1d29"},fontFamily:{type:String,default:"Poppins-Semibold"},borderWidth:{type:String,default:"3px"},borderRadius:{type:String,default:"0px"},selectedOption:{type:String,default:""},type:{type:Number,default:0},borderWidthContainer:{type:String,default:"1px"},background:{type:String,default:"#0d1d29"},borderColorContainer:{type:String,default:"#505355"},pxScroll:{type:Number,default:100},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},arrowsScrollHide:{type:Boolean,default:!1},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"}},setup(){const e=t.ref("myDivRef"),{elementSize:a}=Vu(e);return{myDivRef:e,elementSize:a}},methods:{clickEmitEvent(e){this.$emit("input",e)},customGrid(e){var a={};return e.width>768?a={fontSize:"16px"}:e.width>480?a={fontSize:"14px"}:a={fontSize:"12px"},a}}},xr=()=>{t.useCssVars(e=>({cff4a118:e.fontSize,"42aab7f6":e.borderWidth,d29bcbd2:e.fontFamily,df6c5a9c:e.background,"09b32862":e.borderRadius,"8c0d6daa":e.borderWidthContainer,e8a86fa4:e.borderColorContainer,"179494da":e.colorOptionActive,cea5647c:e.width}))},Tr=Ko.setup;Ko.setup=Tr?(e,a)=>(xr(),Tr(e,a)):xr;const Wu={ref:"myDivRef"},Uu={key:0,class:"gs-switch-container"},Hu=["onClick"],Gu={key:1,class:"gs-switch-container-type"},Ju=["onClick"],qu={key:2,class:"gs-switch-container-carousel"},Zu=["onClick"];function Xu(e,a,o,n,i,r){const s=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",Wu,[o.type==0?(t.openBlock(),t.createElementBlock("div",Uu,[t.createElementVNode("div",{class:"gs-switch-container__control",style:t.normalizeStyle([r.customGrid(n.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.buttons,(l,p)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container__control__button-option",style:t.normalizeStyle([{height:o.height},o.selectedOption==l?{borderColor:o.colorOptionActive,color:o.colorFont+"!important",background:o.backgroundOptionActive}:{borderColor:o.colorOptionDisable,color:"grey !important"}]),key:p,onClick:d=>(o.selectedOption=l,r.clickEmitEvent(l))},t.toDisplayString(l),13,Hu))),128))],4),t.renderSlot(e.$slots,o.selectedOption,{},void 0,!0)])):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",Gu,[t.createElementVNode("div",{class:"gs-switch-container-type__control",style:t.normalizeStyle([r.customGrid(n.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.buttons,(l,p)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container-type__control__button-option-type",style:t.normalizeStyle([{height:o.height},o.selectedOption==l?{borderColor:o.colorOptionActive,color:o.colorFont+"!important",background:o.backgroundOptionActive}:{borderColor:o.colorOptionDisable,borderWidth:"0px",borderWidth:"0px !important",color:"grey !important",background:o.backgroundOptionDisable}]),key:p,onClick:d=>(o.selectedOption=l,r.clickEmitEvent(l))},t.toDisplayString(l),13,Ju))),128))],4)])):t.createCommentVNode("",!0),o.type==2?(t.openBlock(),t.createElementBlock("div",qu,[t.createVNode(s,{arrows:o.arrow,"background-color":o.background,"px-scroll":o.pxScroll,"scroll-color":o.scrollColor,"arrows-position":o.arrowsPosition,arrowsScrollHide:o.arrowsScrollHide,"arrows-background":o.arrowsBackground,"arrows-container-bg-l":o.arrowsContainerBgL,"arrows-container-bg-r":o.arrowsContainerBgR,"arrows-margin":o.arrowsMargin,"arrows-radius":o.arrowsRadius,"arrows-border":o.arrowsBorder},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.buttons,(l,p)=>(t.openBlock(),t.createElementBlock("div",{class:"button-option-multi",style:t.normalizeStyle([{height:o.height},o.selectedOption==l?{borderColor:o.colorOptionActive,color:o.colorFont+"!important",background:o.backgroundOptionActive}:{borderColor:o.colorOptionDisable,color:"grey !important"}]),key:p,onClick:d=>(o.selectedOption=l,r.clickEmitEvent(l))},t.toDisplayString(l),13,Zu))),128))]),_:1},8,["arrows","background-color","px-scroll","scroll-color","arrows-position","arrowsScrollHide","arrows-background","arrows-container-bg-l","arrows-container-bg-r","arrows-margin","arrows-radius","arrows-border"])])):t.createCommentVNode("",!0)],512)}const Yo=vu(Ko,[["render",Xu],["__scopeId","data-v-8a86dfaf"]]);function Or(e,a){return function(){return e.apply(a,arguments)}}const{toString:Ku}=Object.prototype,{getPrototypeOf:Qo}=Object,Lt=(e=>a=>{const o=Ku.call(a);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),Ne=e=>(e=e.toLowerCase(),a=>Lt(a)===e),Dt=e=>a=>typeof a===e,{isArray:Ze}=Array,dt=Dt("undefined");function Yu(e){return e!==null&&!dt(e)&&e.constructor!==null&&!dt(e.constructor)&&de(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Vr=Ne("ArrayBuffer");function Qu(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&Vr(e.buffer),a}const eh=Dt("string"),de=Dt("function"),$r=Dt("number"),Mt=e=>e!==null&&typeof e=="object",th=e=>e===!0||e===!1,jt=e=>{if(Lt(e)!=="object")return!1;const a=Qo(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},oh=Ne("Date"),ah=Ne("File"),nh=Ne("Blob"),rh=Ne("FileList"),ih=e=>Mt(e)&&de(e.pipe),sh=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||de(e.append)&&((a=Lt(e))==="formdata"||a==="object"&&de(e.toString)&&e.toString()==="[object FormData]"))},lh=Ne("URLSearchParams"),ch=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function mt(e,a,{allOwnKeys:o=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),Ze(e))for(n=0,i=e.length;n<i;n++)a.call(null,e[n],n,e);else{const r=o?Object.getOwnPropertyNames(e):Object.keys(e),s=r.length;let l;for(n=0;n<s;n++)l=r[n],a.call(null,e[l],l,e)}}function Ar(e,a){a=a.toLowerCase();const o=Object.keys(e);let n=o.length,i;for(;n-- >0;)if(i=o[n],a===i.toLowerCase())return i;return null}const zr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Rr=e=>!dt(e)&&e!==zr;function ea(){const{caseless:e}=Rr(this)&&this||{},a={},o=(n,i)=>{const r=e&&Ar(a,i)||i;jt(a[r])&&jt(n)?a[r]=ea(a[r],n):jt(n)?a[r]=ea({},n):Ze(n)?a[r]=n.slice():a[r]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&mt(arguments[n],o);return a}const dh=(e,a,o,{allOwnKeys:n}={})=>(mt(a,(i,r)=>{o&&de(i)?e[r]=Or(i,o):e[r]=i},{allOwnKeys:n}),e),mh=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ph=(e,a,o,n)=>{e.prototype=Object.create(a.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),o&&Object.assign(e.prototype,o)},uh=(e,a,o,n)=>{let i,r,s;const l={};if(a=a||{},e==null)return a;do{for(i=Object.getOwnPropertyNames(e),r=i.length;r-- >0;)s=i[r],(!n||n(s,e,a))&&!l[s]&&(a[s]=e[s],l[s]=!0);e=o!==!1&&Qo(e)}while(e&&(!o||o(e,a))&&e!==Object.prototype);return a},hh=(e,a,o)=>{e=String(e),(o===void 0||o>e.length)&&(o=e.length),o-=a.length;const n=e.indexOf(a,o);return n!==-1&&n===o},fh=e=>{if(!e)return null;if(Ze(e))return e;let a=e.length;if(!$r(a))return null;const o=new Array(a);for(;a-- >0;)o[a]=e[a];return o},gh=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&Qo(Uint8Array)),yh=(e,a)=>{const o=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=o.next())&&!n.done;){const i=n.value;a.call(e,i[0],i[1])}},bh=(e,a)=>{let o;const n=[];for(;(o=e.exec(a))!==null;)n.push(o);return n},wh=Ne("HTMLFormElement"),_h=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,o,n){return o.toUpperCase()+n}),Ir=(({hasOwnProperty:e})=>(a,o)=>e.call(a,o))(Object.prototype),Sh=Ne("RegExp"),Fr=(e,a)=>{const o=Object.getOwnPropertyDescriptors(e),n={};mt(o,(i,r)=>{let s;(s=a(i,r,e))!==!1&&(n[r]=s||i)}),Object.defineProperties(e,n)},kh=e=>{Fr(e,(a,o)=>{if(de(e)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const n=e[o];if(de(n)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},Ch=(e,a)=>{const o={},n=i=>{i.forEach(r=>{o[r]=!0})};return Ze(e)?n(e):n(String(e).split(a)),o},Bh=()=>{},Eh=(e,a)=>(e=+e,Number.isFinite(e)?e:a),ta="abcdefghijklmnopqrstuvwxyz",Pr="0123456789",Lr={DIGIT:Pr,ALPHA:ta,ALPHA_DIGIT:ta+ta.toUpperCase()+Pr},Nh=(e=16,a=Lr.ALPHA_DIGIT)=>{let o="";const{length:n}=a;for(;e--;)o+=a[Math.random()*n|0];return o};function xh(e){return!!(e&&de(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Th=e=>{const a=new Array(10),o=(n,i)=>{if(Mt(n)){if(a.indexOf(n)>=0)return;if(!("toJSON"in n)){a[i]=n;const r=Ze(n)?[]:{};return mt(n,(s,l)=>{const p=o(s,i+1);!dt(p)&&(r[l]=p)}),a[i]=void 0,r}}return n};return o(e,0)},Oh=Ne("AsyncFunction"),Vh=e=>e&&(Mt(e)||de(e))&&de(e.then)&&de(e.catch),S={isArray:Ze,isArrayBuffer:Vr,isBuffer:Yu,isFormData:sh,isArrayBufferView:Qu,isString:eh,isNumber:$r,isBoolean:th,isObject:Mt,isPlainObject:jt,isUndefined:dt,isDate:oh,isFile:ah,isBlob:nh,isRegExp:Sh,isFunction:de,isStream:ih,isURLSearchParams:lh,isTypedArray:gh,isFileList:rh,forEach:mt,merge:ea,extend:dh,trim:ch,stripBOM:mh,inherits:ph,toFlatObject:uh,kindOf:Lt,kindOfTest:Ne,endsWith:hh,toArray:fh,forEachEntry:yh,matchAll:bh,isHTMLForm:wh,hasOwnProperty:Ir,hasOwnProp:Ir,reduceDescriptors:Fr,freezeMethods:kh,toObjectSet:Ch,toCamelCase:_h,noop:Bh,toFiniteNumber:Eh,findKey:Ar,global:zr,isContextDefined:Rr,ALPHABET:Lr,generateString:Nh,isSpecCompliantForm:xh,toJSONObject:Th,isAsyncFn:Oh,isThenable:Vh};function P(e,a,o,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),o&&(this.config=o),n&&(this.request=n),i&&(this.response=i)}S.inherits(P,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:S.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Dr=P.prototype,Mr={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Mr[e]={value:e}}),Object.defineProperties(P,Mr),Object.defineProperty(Dr,"isAxiosError",{value:!0}),P.from=(e,a,o,n,i,r)=>{const s=Object.create(Dr);return S.toFlatObject(e,s,function(l){return l!==Error.prototype},l=>l!=="isAxiosError"),P.call(s,e.message,a,o,n,i),s.cause=e,s.name=e.name,r&&Object.assign(s,r),s};const $h=null;function oa(e){return S.isPlainObject(e)||S.isArray(e)}function jr(e){return S.endsWith(e,"[]")?e.slice(0,-2):e}function vr(e,a,o){return e?e.concat(a).map(function(n,i){return n=jr(n),!o&&i?"["+n+"]":n}).join(o?".":""):a}function Ah(e){return S.isArray(e)&&!e.some(oa)}const zh=S.toFlatObject(S,{},null,function(e){return/^is[A-Z]/.test(e)});function vt(e,a,o){if(!S.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,o=S.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,u){return!S.isUndefined(u[f])});const n=o.metaTokens,i=o.visitor||d,r=o.dots,s=o.indexes,l=(o.Blob||typeof Blob<"u"&&Blob)&&S.isSpecCompliantForm(a);if(!S.isFunction(i))throw new TypeError("visitor must be a function");function p(f){if(f===null)return"";if(S.isDate(f))return f.toISOString();if(!l&&S.isBlob(f))throw new P("Blob is not supported. Use a Buffer instead.");return S.isArrayBuffer(f)||S.isTypedArray(f)?l&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function d(f,u,g){let y=f;if(f&&!g&&typeof f=="object"){if(S.endsWith(u,"{}"))u=n?u:u.slice(0,-2),f=JSON.stringify(f);else if(S.isArray(f)&&Ah(f)||(S.isFileList(f)||S.endsWith(u,"[]"))&&(y=S.toArray(f)))return u=jr(u),y.forEach(function(C,A){!(S.isUndefined(C)||C===null)&&a.append(s===!0?vr([u],A,r):s===null?u:u+"[]",p(C))}),!1}return oa(f)?!0:(a.append(vr(g,u,r),p(f)),!1)}const c=[],h=Object.assign(zh,{defaultVisitor:d,convertValue:p,isVisitable:oa});function m(f,u){if(!S.isUndefined(f)){if(c.indexOf(f)!==-1)throw Error("Circular reference detected in "+u.join("."));c.push(f),S.forEach(f,function(g,y){(!(S.isUndefined(g)||g===null)&&i.call(a,g,S.isString(y)?y.trim():y,u,h))===!0&&m(g,u?u.concat(y):[y])}),c.pop()}}if(!S.isObject(e))throw new TypeError("data must be an object");return m(e),a}function Wr(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return a[o]})}function aa(e,a){this._pairs=[],e&&vt(e,this,a)}const Ur=aa.prototype;Ur.append=function(e,a){this._pairs.push([e,a])},Ur.toString=function(e){const a=e?function(o){return e.call(this,o,Wr)}:Wr;return this._pairs.map(function(o){return a(o[0])+"="+a(o[1])},"").join("&")};function Rh(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Hr(e,a,o){if(!a)return e;const n=o&&o.encode||Rh,i=o&&o.serialize;let r;if(i?r=i(a,o):r=S.isURLSearchParams(a)?a.toString():new aa(a,o).toString(n),r){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}const Gr=class{constructor(){this.handlers=[]}use(a,o,n){return this.handlers.push({fulfilled:a,rejected:o,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){S.forEach(this.handlers,function(o){o!==null&&a(o)})}},Jr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ih=typeof URLSearchParams<"u"?URLSearchParams:aa,Fh=typeof FormData<"u"?FormData:null,Ph=typeof Blob<"u"?Blob:null,Lh={isBrowser:!0,classes:{URLSearchParams:Ih,FormData:Fh,Blob:Ph},protocols:["http","https","file","blob","url","data"]},qr=typeof window<"u"&&typeof document<"u",Dh=(e=>qr&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Mh=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",jh=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:qr,hasStandardBrowserEnv:Dh,hasStandardBrowserWebWorkerEnv:Mh},Symbol.toStringTag,{value:"Module"})),xe={...jh,...Lh};function vh(e,a){return vt(e,new xe.classes.URLSearchParams,Object.assign({visitor:function(o,n,i,r){return xe.isNode&&S.isBuffer(o)?(this.append(n,o.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},a))}function Wh(e){return S.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function Uh(e){const a={},o=Object.keys(e);let n;const i=o.length;let r;for(n=0;n<i;n++)r=o[n],a[r]=e[r];return a}function Zr(e){function a(o,n,i,r){let s=o[r++];if(s==="__proto__")return!0;const l=Number.isFinite(+s),p=r>=o.length;return s=!s&&S.isArray(i)?i.length:s,p?(S.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!l):((!i[s]||!S.isObject(i[s]))&&(i[s]=[]),a(o,n,i[s],r)&&S.isArray(i[s])&&(i[s]=Uh(i[s])),!l)}if(S.isFormData(e)&&S.isFunction(e.entries)){const o={};return S.forEachEntry(e,(n,i)=>{a(Wh(n),i,o,0)}),o}return null}function Hh(e,a,o){if(S.isString(e))try{return(a||JSON.parse)(e),S.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(o||JSON.stringify)(e)}const na={transitional:Jr,adapter:["xhr","http"],transformRequest:[function(e,a){const o=a.getContentType()||"",n=o.indexOf("application/json")>-1,i=S.isObject(e);if(i&&S.isHTMLForm(e)&&(e=new FormData(e)),S.isFormData(e))return n&&n?JSON.stringify(Zr(e)):e;if(S.isArrayBuffer(e)||S.isBuffer(e)||S.isStream(e)||S.isFile(e)||S.isBlob(e))return e;if(S.isArrayBufferView(e))return e.buffer;if(S.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let r;if(i){if(o.indexOf("application/x-www-form-urlencoded")>-1)return vh(e,this.formSerializer).toString();if((r=S.isFileList(e))||o.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return vt(r?{"files[]":e}:e,s&&new s,this.formSerializer)}}return i||n?(a.setContentType("application/json",!1),Hh(e)):e}],transformResponse:[function(e){const a=this.transitional||na.transitional,o=a&&a.forcedJSONParsing,n=this.responseType==="json";if(e&&S.isString(e)&&(o&&!this.responseType||n)){const i=!(a&&a.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(r){if(i)throw r.name==="SyntaxError"?P.from(r,P.ERR_BAD_RESPONSE,this,null,this.response):r}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:xe.classes.FormData,Blob:xe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};S.forEach(["delete","get","head","post","put","patch"],e=>{na.headers[e]={}});const ra=na,Gh=S.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Jh=e=>{const a={};let o,n,i;return e&&e.split(`
|
|
16
|
-
`).forEach(function(r){i=r.indexOf(":"),o=r.substring(0,i).trim().toLowerCase(),n=r.substring(i+1).trim(),!(!o||a[o]&&
|
|
17
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...o){const n=new this(a);return o.forEach(i=>n.set(i)),n}static accessor(a){const o=(this[
|
|
18
|
-
`+r.map(
|
|
19
|
-
`):" "+
|
|
20
|
-
`+i.stack),n}}_request(a,o){typeof a=="string"?(o=o||{},o.url=a):o=a||{},o=
|
|
15
|
+
*/const Y={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},_r={itemsToShow:{default:Y.itemsToShow,type:Number},itemsToScroll:{default:Y.itemsToScroll,type:Number},wrapAround:{default:Y.wrapAround,type:Boolean},throttle:{default:Y.throttle,type:Number},snapAlign:{default:Y.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Y.transition,type:Number},breakpoints:{default:Y.breakpoints,type:Object},autoplay:{default:Y.autoplay,type:Number},pauseAutoplayOnHover:{default:Y.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Y.mouseDrag,type:Boolean},touchDrag:{default:Y.touchDrag,type:Boolean},dir:{default:Y.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Y.i18n,type:Object},settings:{default(){return{}},type:Object}};function tp({config:e,slidesCount:a}){const{snapAlign:o,wrapAround:n,itemsToShow:i=1}=e;if(n)return Math.max(a-1,0);let r;switch(o){case"start":r=a-i;break;case"end":r=a-1;break;case"center":case"center-odd":r=a-Math.ceil((i-.5)/2);break;case"center-even":r=a-Math.ceil(i/2);break;default:r=0;break}return Math.max(r,0)}function op({config:e,slidesCount:a}){const{wrapAround:o,snapAlign:n,itemsToShow:i=1}=e;let r=0;if(o||i>a)return r;switch(n){case"start":r=0;break;case"end":r=i-1;break;case"center":case"center-odd":r=Math.floor((i-1)/2);break;case"center-even":r=Math.floor((i-2)/2);break;default:r=0;break}return r}function Jo({val:e,max:a,min:o}){return a<o?e:Math.min(Math.max(e,o),a)}function ap({config:e,currentSlide:a,slidesCount:o}){const{snapAlign:n,wrapAround:i,itemsToShow:r=1}=e;let s=a;switch(n){case"center":case"center-odd":s-=(r-1)/2;break;case"center-even":s-=(r-2)/2;break;case"end":s-=r-1;break}return i?s:Jo({val:s,max:o-r,min:0})}function Sr(e){return e?e.reduce((a,o)=>{var n;return o.type===t.Fragment?[...a,...Sr(o.children)]:((n=o.type)===null||n===void 0?void 0:n.name)==="CarouselSlide"?[...a,o]:a},[]):[]}function qo({val:e,max:a,min:o=0}){return e>a?qo({val:e-(a+1),max:a,min:o}):e<o?qo({val:e+(a+1),max:a,min:o}):e}function np(e,a){let o;return a?function(...n){const i=this;o||(e.apply(i,n),o=!0,setTimeout(()=>o=!1,a))}:e}function rp(e,a){let o;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{e(...n),o=null},a)}}function ip(e="",a={}){return Object.entries(a).reduce((o,[n,i])=>o.replace(`{${n}}`,String(i)),e)}var sp=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Y))),a=t.inject("currentSlide",t.ref(0)),o=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},ip(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:o.value}))}}),lp=t.defineComponent({name:"Carousel",props:_r,setup(e,{slots:a,emit:o,expose:n}){var i;const r=t.ref(null),s=t.ref([]),l=t.ref(0),p=t.ref(0),c=t.reactive(Object.assign({},Y));let m=Object.assign({},Y),u;const g=t.ref((i=e.modelValue)!==null&&i!==void 0?i:0),d=t.ref(0),h=t.ref(0),f=t.ref(0),y=t.ref(0);let C,A;t.provide("config",c),t.provide("slidesCount",p),t.provide("currentSlide",g),t.provide("maxSlide",f),t.provide("minSlide",y),t.provide("slideWidth",l);function v(){u=Object.assign({},e.breakpoints),m=Object.assign(Object.assign(Object.assign({},m),e),{i18n:Object.assign(Object.assign({},m.i18n),e.i18n),breakpoints:void 0}),ne(m)}function U(){if(!u||!Object.keys(u).length)return;const b=Object.keys(u).map(x=>Number(x)).sort((x,M)=>+M-+x);let V=Object.assign({},m);b.some(x=>{const M=window.matchMedia(`(min-width: ${x}px)`).matches;return M&&(V=Object.assign(Object.assign({},V),u[x])),M}),ne(V)}function ne(b){Object.entries(b).forEach(([V,x])=>c[V]=x)}const he=rp(()=>{U(),X()},16);function X(){if(!r.value)return;const b=r.value.getBoundingClientRect();l.value=b.width/c.itemsToShow}function se(){p.value<=0||(h.value=Math.ceil((p.value-1)/2),f.value=tp({config:c,slidesCount:p.value}),y.value=op({config:c,slidesCount:p.value}),c.wrapAround||(g.value=Jo({val:g.value,max:f.value,min:y.value})))}t.onMounted(()=>{t.nextTick(()=>X()),setTimeout(()=>X(),1e3),U(),Ae(),window.addEventListener("resize",he,{passive:!0}),o("init")}),t.onUnmounted(()=>{A&&clearTimeout(A),C&&clearInterval(C),window.removeEventListener("resize",he,{passive:!0})});let R=!1;const ae={x:0,y:0},ee={x:0,y:0},j=t.reactive({x:0,y:0}),te=t.ref(!1),re=t.ref(!1),Ue=()=>{te.value=!0},He=()=>{te.value=!1};function Ve(b){["INPUT","TEXTAREA","SELECT"].includes(b.target.tagName)||(R=b.type==="touchstart",R||b.preventDefault(),!(!R&&b.button!==0||B.value)&&(ae.x=R?b.touches[0].clientX:b.clientX,ae.y=R?b.touches[0].clientY:b.clientY,document.addEventListener(R?"touchmove":"mousemove",fe,!0),document.addEventListener(R?"touchend":"mouseup",$e,!0)))}const fe=np(b=>{re.value=!0,ee.x=R?b.touches[0].clientX:b.clientX,ee.y=R?b.touches[0].clientY:b.clientY;const V=ee.x-ae.x,x=ee.y-ae.y;j.y=x,j.x=V},c.throttle);function $e(){const b=c.dir==="rtl"?-1:1,V=Math.sign(j.x)*.4,x=Math.round(j.x/l.value+V)*b;if(x&&!R){const M=be=>{be.stopPropagation(),window.removeEventListener("click",M,!0)};window.addEventListener("click",M,!0)}E(g.value-x),j.x=0,j.y=0,re.value=!1,document.removeEventListener(R?"touchmove":"mousemove",fe,!0),document.removeEventListener(R?"touchend":"mouseup",$e,!0)}function Ae(){!c.autoplay||c.autoplay<=0||(C=setInterval(()=>{c.pauseAutoplayOnHover&&te.value||T()},c.autoplay))}function O(){C&&(clearInterval(C),C=null),Ae()}const B=t.ref(!1);function E(b){const V=c.wrapAround?b:Jo({val:b,max:f.value,min:y.value});g.value===V||B.value||(o("slide-start",{slidingToIndex:b,currentSlideIndex:g.value,prevSlideIndex:d.value,slidesCount:p.value}),B.value=!0,d.value=g.value,g.value=V,A=setTimeout(()=>{if(c.wrapAround){const x=qo({val:V,max:f.value,min:0});x!==g.value&&(g.value=x,o("loop",{currentSlideIndex:g.value,slidingToIndex:b}))}o("update:modelValue",g.value),o("slide-end",{currentSlideIndex:g.value,prevSlideIndex:d.value,slidesCount:p.value}),B.value=!1,O()},c.transition))}function T(){E(g.value+c.itemsToScroll)}function N(){E(g.value-c.itemsToScroll)}const $={slideTo:E,next:T,prev:N};t.provide("nav",$),t.provide("isSliding",B);const z=t.computed(()=>ap({config:c,currentSlide:g.value,slidesCount:p.value}));t.provide("slidesToScroll",z);const D=t.computed(()=>{const b=c.dir==="rtl"?-1:1,V=z.value*l.value*b;return{transform:`translateX(${j.x-V}px)`,transition:`${B.value?c.transition:0}ms`,margin:c.wrapAround?`0 -${p.value*l.value}px`:"",width:"100%"}});function W(){v(),U(),se(),X(),O()}Object.keys(_r).forEach(b=>{["modelValue"].includes(b)||t.watch(()=>e[b],W)}),t.watch(()=>e.modelValue,b=>{b!==g.value&&E(Number(b))}),t.watch(p,se),o("before-init"),v();const K={config:c,slidesCount:p,slideWidth:l,next:T,prev:N,slideTo:E,currentSlide:g,maxSlide:f,minSlide:y,middleSlide:h};n({updateBreakpointsConfigs:U,updateSlidesData:se,updateSlideWidth:X,initDefaultConfigs:v,restartCarousel:W,slideTo:E,next:T,prev:N,nav:$,data:K});const ge=a.default||a.slides,ye=a.addons,je=t.reactive(K);return()=>{const b=Sr(ge==null?void 0:ge(je)),V=(ye==null?void 0:ye(je))||[];b.forEach((we,_e)=>we.props.index=_e);let x=b;if(c.wrapAround){const we=b.map((Se,oe)=>t.cloneVNode(Se,{index:-b.length+oe,isClone:!0,key:`clone-before-${oe}`})),_e=b.map((Se,oe)=>t.cloneVNode(Se,{index:b.length+oe,isClone:!0,key:`clone-after-${oe}`}));x=[...we,...b,..._e]}s.value=b,p.value=Math.max(b.length,1);const M=t.h("ol",{class:"carousel__track",style:D.value,onMousedownCapture:c.mouseDrag?Ve:null,onTouchstartPassiveCapture:c.touchDrag?Ve:null},x),be=t.h("div",{class:"carousel__viewport"},M);return t.h("section",{ref:r,class:{carousel:!0,"is-sliding":B.value,"is-dragging":re.value,"is-hover":te.value,"carousel--rtl":c.dir==="rtl"},dir:c.dir,"aria-label":c.i18n.ariaGallery,tabindex:"0",onMouseenter:Ue,onMouseleave:He},[be,V,t.h(sp)])}}}),kr;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(kr||(kr={}));var cp=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const o=t.inject("config",t.reactive(Object.assign({},Y))),n=t.inject("currentSlide",t.ref(0)),i=t.inject("slidesToScroll",t.ref(0)),r=t.inject("isSliding",t.ref(!1)),s=()=>e.index===n.value,l=()=>e.index===n.value-1,p=()=>e.index===n.value+1,c=()=>{const m=Math.floor(i.value),u=Math.ceil(i.value+o.itemsToShow-1);return e.index>=m&&e.index<=u};return()=>{var m;return t.h("li",{style:{width:`${100/o.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":c(),"carousel__slide--active":s(),"carousel__slide--prev":l(),"carousel__slide--next":p(),"carousel__slide--sliding":r.value},"aria-hidden":!c()},(m=a.default)===null||m===void 0?void 0:m.call(a))}}});const dp=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},mp=e=>(t.pushScopeId("data-v-dd3cbf69"),e=e(),t.popScopeId(),e),pp={class:"gsc-carousel"},up={key:0},hp=mp(()=>t.createElementVNode("div",null,"no hay",-1)),fp=[hp],gp={class:"gsc-carousel__2d__slides"},yp={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},bp=["fill"],wp={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_p=["fill"],Sp={class:"gsc-carousel__2d__navigation"},kp={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Cp=["stroke"],Bp={key:1,class:"gsc-carousel__2d__navigation__pagination"},Ep=["onClick"],Np={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},xp=["stroke"],Tp={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:a,emit:o}){const n=e;t.useCssVars(f=>({"0d808f0f":e.slideLeftArrowBackgroundImage,"1e0ef2e5":e.slidesArrowsLeftAndRight,"66d12b5c":e.slideRightArrowBackgroundImage,"2b22a85a":e.marginTop,"1a842b02":e.secondarySlidesOpacity}));const i=t.ref(null),r=t.ref({}),s=t.ref(0),l=t.ref(!1);t.watch(i,f=>{f&&l.value?(l.value=!1,p(n.items)):f&&f.slideTo&&f.slideTo(s.value)},{deep:!0}),t.watch(()=>n.currentItemIndex,f=>{s.value!==f&&g(f)}),t.watch(()=>n.items,f=>{i.value?p(f):l.value=!0},{immediate:!0});function p(f){if(f&&f.length&&i.value){if(n.defaultItemByProp){const y=n.items.findIndex(C=>C[n.defaultItemByProp.propName]===n.defaultItemByProp.value);y!==-1?(s.value=y,r.value=f[y]):(s.value=0,r.value=f[0])}else s.value=n.defaultItemByIndex,r.value=f[n.defaultItemByIndex];i.value.slideTo&&i.value.slideTo(s.value),o("input",{selectedItem:r.value,selectedItemIndex:s.value})}}function c(){i.value&&i.value.next()}function m(){i.value&&i.value.prev()}function u(){i.value&&i.value.updateSlideWidth()}function g(f){i.value&&i.value.slideTo(f)}function d(f){i.value.slideTo(f)}function h(f){const y=f.slidingToIndex<0?n.items.length-1:f.slidingToIndex===n.items.length?0:f.slidingToIndex;s.value=y,r.value=n.items[y],o("update:currentItemIndex",y),o("input",{selectedItem:r.value,selectedItemIndex:s.value})}return a({prev:m,next:c,updateSlideWidth:u,slideTo:g}),(f,y)=>(t.openBlock(),t.createElementBlock("div",pp,[n.is3d?(t.openBlock(),t.createElementBlock("div",up,fp)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",gp,[t.createVNode(t.unref(lp),{ref_key:"carousel2d",ref:i,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:h},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(C,A)=>(t.openBlock(),t.createBlock(t.unref(cp),{key:A},{default:t.withCtx(()=>[t.renderSlot(f.$slots,"default",{item:C},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",onClick:y[0]||(y[0]=C=>i.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",yp,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:e.arrowsColor},null,8,bp)]))],2)])):t.createCommentVNode("",!0),e.areSlidesArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",onClick:y[1]||(y[1]=C=>c())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",wp,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:e.arrowsColor},null,8,_p)]))],2)])):t.createCommentVNode("",!0),t.createElementVNode("div",Sp,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:y[2]||(y[2]=C=>m())},[(t.openBlock(),t.createElementBlock("svg",kp,[t.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:n.arrowsColor},null,8,Cp)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",Bp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(C,A)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${A}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${n.navigationHeight}px`,width:`${s.value===A?n.navigationActiveWidth:n.navigationActiveWidth/2}px`,borderRadius:`${n.navigationBorderRadius}px`,backgroundColor:`${s.value===A?n.navigationActiveColor:n.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:v=>d(A)},null,12,Ep))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:y[3]||(y[3]=C=>i.value.next())},[(t.openBlock(),t.createElementBlock("svg",Np,[t.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:n.arrowsColor},null,8,xp)]))])):t.createCommentVNode("",!0)])],2))]))}},Op=dp(Tp,[["__scopeId","data-v-dd3cbf69"]]),Vp=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},Zo={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},Cr=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},Br=Zo.setup;Zo.setup=Br?(e,a)=>(Cr(),Br(e,a)):Cr;const $p=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),Ap=["src"],zp={key:1,class:"text"},Rp=["src"],Ip={class:"stats"},Fp=$p(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),Pp={class:"numstats"},Lp={class:"leyend"};function Dp(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",null,[o.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",i.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([r.customStyle,i.status&&o.typeOnOff&&r.customActive]),onClick:a[0]||(a[0]=(...s)=>r.btnClick&&r.btnClick(...s))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,Ap)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",zp,t.toDisplayString(o.textValue),1)):t.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,Rp)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...s)=>r.btnClick&&r.btnClick(...s))},[t.createElementVNode("div",Ip,[Fp,t.createElementVNode("div",Pp,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",Lp,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const Mp=Vp(Zo,[["render",Dp],["__scopeId","data-v-fb269a1e"]]),jp={class:"gsc-dropdown__main-container__item-selected"},vp=["height","width"],Wp=["stroke"],Up={class:"gsc-dropdown__items-container"},Hp=["onClick"],Gp={key:0,class:"gsc-dropdown__items-footer"},Jp={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:a}){const o=e,n=t.ref({}),i=t.ref(null),r=t.ref(o.isMultipleOption?-1:0),s=t.ref(!1);t.watch(()=>o.items,(d,h)=>{if(!o.modelValue&&(!o.onlyFirstTime||!h||!h.length)&&d&&d.length){if(o.defaultItemByProp){const f=o.items.findIndex(y=>y[o.defaultItemByProp.propName]===o.defaultItemByProp.value);f!==-1?(r.value=f,n.value=d[f]):(r.value=0,n.value=d[0])}else n.value=d[o.defaultItemByIndex];a("input",n.value)}},{immediate:!0}),t.watch(()=>o.modelValue,d=>{if(d){const h=o.items.findIndex(f=>typeof d=="object"?JSON.stringify(f)===JSON.stringify(d):f===d);h!==-1&&(r.value=h,n.value=o.items[h],a("update:modelValue",n.value))}},{immediate:!0});const l=t.computed(()=>({height:o.height,width:o.width,backgroundColor:o.backgroundColor,borderRadius:`${o.borderRadius}px`,border:`${o.borderType} ${o.borderWidth}px ${o.borderColor}`,color:o.color,"--hover-background-color":o.hoverBackgroundColor,"--list-item-padding":o.listItemPadding,"--list-background-color":o.listBackgroundColor,"--list-height":o.listHeight,"--list-item-selected-color":o.listItemSelectedColor,"--list-item-selected-background-color":o.listItemSelectedBackgroundColor,"--list-item-color":o.listItemColor,"--list-border-radius":`${o.listBorderRadius}`,"--list-border-color":o.listBorderColor,"--list-width":o.isListSameWidth?o.width:"fit-content","--list-border-width":`${o.listBorderWidth}px`,"--footer-border":`${o.footerBorderWidth}px solid ${o.footerBorderColor}`,"--dropdown-opacity":o.isDisabled?"0.5":"1","--dropdown-cursor":o.isDisabled?"not-allowed":"pointer","--dropdown-font-size":o.fontSize?o.fontSize:"14px"})),p=t.computed(()=>({height:`${o.arrowHeight}px`,width:`${o.arrowWidth}px`}));function c(){o.isDisabled||(s.value=!s.value)}function m(d){i.value&&!i.value.contains(d.target)&&(s.value=!1)}function u(d,h){o.isMultipleOption?r.value=-1:(r.value=h,s.value=!1),n.value=d,a("input",n.value),a("update:modelValue",n.value)}function g(){s.value=!1,a("click-ready")}return t.onMounted(()=>{document.addEventListener("click",m)}),t.onBeforeMount(()=>{document.removeEventListener("click",m)}),(d,h)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:i,class:"gsc-dropdown",style:t.normalizeStyle(l.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:c},[t.createElementVNode("div",jp,[t.renderSlot(d.$slots,"default",{selectedItem:n.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":s.value}]),style:t.normalizeStyle(p.value)},[(t.openBlock(),t.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,Wp)],8,vp))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",Up,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${o.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(f,y)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:y===r.value}]),key:y,onClick:C=>u(f,y)},[t.renderSlot(d.$slots,"availableItem",{item:f})],10,Hp))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",Gp,[t.createVNode(t.unref(Mp),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:g})])):t.createCommentVNode("",!0)])],512),[[t.vShow,s.value]])]),_:3})],4))}},qp=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},Zp={class:"tournament-select__selected-tournament"},Xp={class:"tournament-select__selected-tournament__logo"},Kp=["src"],Yp={class:"tournament-select__selected-tournament__name"},Qp={__name:"GSCTournamentSelect",props:{apiUrl:{type:String,default:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments"},fontFamily:{type:String,default:"Poppins-Light"},logosUrl:{type:String,default:"https://az755631.vo.msecnd.net/todoelfut/"},logoFileType:{type:String,default:"png"},height:{type:String,default:"40px"},width:{type:String,default:"179px"},borderRadius:{type:Number,default:8},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},backgroundColor:{type:String,default:"#0d1d29"},color:{type:String,default:"white"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},currentSeasonId:{type:Number,default:0}},emits:["input"],setup(e,{emit:a}){const o=e,n=t.ref([]),i=t.computed(()=>{const u={};return o.fontFamily&&(u["font-family"]=`${o.fontFamily}`),u}),r=t.computed(()=>n.value.find(u=>u.seasonsIds.has(o.currentSeasonId))||n.value[0]);async function s(){try{if(o.items&&o.items.length)n.value=[...o.items];else if(o.apiUrl){const u=await p();n.value=u.map(g=>({...g.tournament,seasons:g.seasons,seasonsIds:g.seasons.reduce((d,h)=>(d.add(h.id),d),new Set)})).sort((g,d)=>g.order-d.order)}}catch(u){throw new Error(u)}}function l(u){const g=new XMLHttpRequest,d=`${o.logosUrl}${u}.${o.logoFileType}`;return g.open("HEAD",d,!1),g.send(),g.status!==404}async function p(){try{return(await fetch(o.apiUrl)).json()}catch(u){return Promise.reject(u)}}function c(u){a("input",u)}function m(u){a("input",u)}return t.onMounted(()=>{s()}),(u,g)=>(t.openBlock(),t.createElementBlock("div",{class:"tournament-select",style:t.normalizeStyle(i.value)},[t.createVNode(t.unref(Jp),t.mergeProps(o,{"model-value":r.value,items:n.value,onInput:c,"onUpdate:modelValue":m}),{default:t.withCtx(({selectedItem:d})=>[t.createElementVNode("div",Zp,[t.createElementVNode("div",Xp,[l(d.id)?(t.openBlock(),t.createElementBlock("img",{key:0,src:`${o.logosUrl}${d.id}.${o.logoFileType}`,alt:""},null,8,Kp)):t.createCommentVNode("",!0)]),t.createElementVNode("div",Yp,t.toDisplayString(d.name),1)])]),availableItem:t.withCtx(({item:d})=>[t.createElementVNode("div",null,t.toDisplayString(d.name),1)]),_:1},16,["model-value","items"])],4))}},eu=qp(Qp,[["__scopeId","data-v-355af272"]]),tu=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},Xo={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},Er=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},Nr=Xo.setup;Xo.setup=Nr?(e,a)=>(Er(),Nr(e,a)):Er;const ou=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),au=["src"],nu={key:1,class:"text"},ru=["src"],iu={class:"stats"},su=ou(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),lu={class:"numstats"},cu={class:"leyend"};function du(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",null,[o.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",i.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([r.customStyle,i.status&&o.typeOnOff&&r.customActive]),onClick:a[0]||(a[0]=(...s)=>r.btnClick&&r.btnClick(...s))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,au)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",nu,t.toDisplayString(o.textValue),1)):t.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,ru)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...s)=>r.btnClick&&r.btnClick(...s))},[t.createElementVNode("div",iu,[su,t.createElementVNode("div",lu,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",cu,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const mu=tu(Xo,[["render",du],["__scopeId","data-v-fb269a1e"]]),pu={class:"gsc-dropdown__main-container__item-selected"},uu=["height","width"],hu=["stroke"],fu={class:"gsc-dropdown__items-container"},gu=["onClick"],yu={key:0,class:"gsc-dropdown__items-footer"},bu={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:a}){const o=e,n=t.ref({}),i=t.ref(null),r=t.ref(o.isMultipleOption?-1:0),s=t.ref(!1);t.watch(()=>o.items,(d,h)=>{if(!o.modelValue&&(!o.onlyFirstTime||!h||!h.length)&&d&&d.length){if(o.defaultItemByProp){const f=o.items.findIndex(y=>y[o.defaultItemByProp.propName]===o.defaultItemByProp.value);f!==-1?(r.value=f,n.value=d[f]):(r.value=0,n.value=d[0])}else n.value=d[o.defaultItemByIndex];a("input",n.value)}},{immediate:!0}),t.watch(()=>o.modelValue,d=>{if(d){const h=o.items.findIndex(f=>typeof d=="object"?JSON.stringify(f)===JSON.stringify(d):f===d);h!==-1&&(r.value=h,n.value=o.items[h],a("update:modelValue",n.value))}},{immediate:!0});const l=t.computed(()=>({height:o.height,width:o.width,backgroundColor:o.backgroundColor,borderRadius:`${o.borderRadius}px`,border:`${o.borderType} ${o.borderWidth}px ${o.borderColor}`,color:o.color,"--hover-background-color":o.hoverBackgroundColor,"--list-item-padding":o.listItemPadding,"--list-background-color":o.listBackgroundColor,"--list-height":o.listHeight,"--list-item-selected-color":o.listItemSelectedColor,"--list-item-selected-background-color":o.listItemSelectedBackgroundColor,"--list-item-color":o.listItemColor,"--list-border-radius":`${o.listBorderRadius}`,"--list-border-color":o.listBorderColor,"--list-width":o.isListSameWidth?o.width:"fit-content","--list-border-width":`${o.listBorderWidth}px`,"--footer-border":`${o.footerBorderWidth}px solid ${o.footerBorderColor}`,"--dropdown-opacity":o.isDisabled?"0.5":"1","--dropdown-cursor":o.isDisabled?"not-allowed":"pointer","--dropdown-font-size":o.fontSize?o.fontSize:"14px"})),p=t.computed(()=>({height:`${o.arrowHeight}px`,width:`${o.arrowWidth}px`}));function c(){o.isDisabled||(s.value=!s.value)}function m(d){i.value&&!i.value.contains(d.target)&&(s.value=!1)}function u(d,h){o.isMultipleOption?r.value=-1:(r.value=h,s.value=!1),n.value=d,a("input",n.value),a("update:modelValue",n.value)}function g(){s.value=!1,a("click-ready")}return t.onMounted(()=>{document.addEventListener("click",m)}),t.onBeforeMount(()=>{document.removeEventListener("click",m)}),(d,h)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:i,class:"gsc-dropdown",style:t.normalizeStyle(l.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:c},[t.createElementVNode("div",pu,[t.renderSlot(d.$slots,"default",{selectedItem:n.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":s.value}]),style:t.normalizeStyle(p.value)},[(t.openBlock(),t.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,hu)],8,uu))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",fu,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${o.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(f,y)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:y===r.value}]),key:y,onClick:C=>u(f,y)},[t.renderSlot(d.$slots,"availableItem",{item:f})],10,gu))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",yu,[t.createVNode(t.unref(mu),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:g})])):t.createCommentVNode("",!0)])],512),[[t.vShow,s.value]])]),_:3})],4))}},wu=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},_u={class:"season-name"},Su={class:"items-list-season"},ku={__name:"GSC-SeasonSelect",props:{seasons:{type:Array,default:()=>[]},currentSeasonId:{type:Number,default:0}},emits:["input"],setup(e,{emit:a}){const o=e,n=t.computed(()=>o.seasons.find(s=>s.id===o.currentSeasonId));function i(s){a("input",s)}function r(s){a("input",s)}return(s,l)=>(t.openBlock(),t.createBlock(t.unref(bu),{items:e.seasons,"model-value":n.value,height:"40px",width:"179px","background-color":"#0d1d29",color:"white","border-color":"rgba(255, 255, 255, 0.2)","font-family":"Poppins-Regular","border-radius":8,onInput:r,"onUpdate:modelValue":i},{default:t.withCtx(({selectedItem:p})=>[t.createElementVNode("div",_u,[t.createElementVNode("span",null,t.toDisplayString(p.name),1)])]),availableItem:t.withCtx(({item:p})=>[t.createElementVNode("span",Su,t.toDisplayString(p.name),1)]),_:1},8,["items","model-value"]))}},Cu=wu(ku,[["__scopeId","data-v-3a11087d"]]);function Bu(e){const a=t.ref({width:0,height:0});function o(){const n=e.value.getBoundingClientRect();a.value.width=n.width,a.value.height=n.height}return t.onMounted(()=>{o(),window.addEventListener("resize",o)}),t.onUnmounted(()=>{window.removeEventListener("resize",o)}),{elementSize:a}}const Eu=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},Nu={components:{GSCFilterperteam:nm,GSCTableperteam:Fm,GSCDropdown:ep,GSCCarousel:Op,GSCTournamentSelect:eu,GSCSeasonSelect:Cu},computed:{customStyle(){return{backgroundColor:this.background,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,height:this.height}},customStyleLanding(){return{boxShadow:"0px 4px 20px 0px rgba(0, 0, 0, 0.25)",backgroundColor:this.background,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,height:this.height,borderRadius:"9px"}},customStyleTitle(){return{color:this.colortitle}}},props:{season:{type:Number},currentSeasonId:{type:Number,default:0},awaitForSeason:{type:Boolean,default:!0},type:{type:Number,default:0},teamperpage:{type:Number,default:5},background:{type:String,default:"#0d1d29"},borderRadius:{type:String,default:"8px"},borderWidth:{type:Number,default:0},borderColor:{type:String,default:"#0d1d29"},borderType:{type:String,default:"solid"},height:{type:String,default:"auto"},colortitle:{type:String,default:"#FFFFFF"},isPaginationVisible:{type:Boolean,default:!1}},setup(){const e=t.ref("myDivRef"),{elementSize:a}=Bu(e);return{myDivRef:e,elementSize:a}},data(){return{url:"https://jfxv8fqkn3.execute-api.us-west-2.amazonaws.com/prod/generalTable/",tournamentsUrl:"https://17zyhpyc7c.execute-api.us-west-2.amazonaws.com/prod/tournaments",tournaments:[],tournamentSelected:{seasons:[]},seasonSelected:{},retries:3,tableData:null,tableFull:!0,flaghideShow:!0,showNum:6,seasonSelect:0,teamselect:0,arrayTournaments:[],arraySeasons:{},seasonBytournament:[],teams:[],pagesteams:[],token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},watch:{currentSeasonId:{async handler(e,a){this.type==1&&e!==0&&e!==a&&await this.getTableList(this.currentSeasonId)},immediate:!0}},async created(){try{const e=await this.fetchTournaments(3);this.tournaments=e.map(a=>({...a.tournament,seasons:a.seasons}));for(const a in e){this.arrayTournaments.push({id:e[a].tournament.id,name:e[a].tournament.name}),this.arraySeasons[e[a].tournament.id]={};for(const o in e[a].seasons)this.arraySeasons[e[a].tournament.id][" "+e[a].seasons[o].id]={},this.arraySeasons[e[a].tournament.id][" "+e[a].seasons[o].id].id=e[a].seasons[o].id,this.arraySeasons[e[a].tournament.id][" "+e[a].seasons[o].id].name=e[a].seasons[o].name}if(this.type==1)if(this.currentSeasonId===0){const a=e.find(o=>o._id===1).seasons[0];await this.getTableList(a.id)}else await this.getTableList(this.currentSeasonId)}catch(e){throw new Error(e)}},methods:{setOpenMedia(e){const a={1e3:[12,55,"35_r","54_r"],1001:["57_r","326_r","56_r","60_r","59_r","55_r",35,54],0:[]},o=[1,2,3],n=a[e.category]||[];let i={seasonId:this.seasonSelect,tournaments:this.tournaments,mainSectionType:1,playListType:e.playListType,categoryIds:n,gameIds:null,playerIds:[],teamId:e.team,matchResult:e.matchResult?[e.matchResult]:o,isRivalSubject:e.isRivalSubject,playData:{},advancedFilter:{playListTitle:e.title}};e.category!==0&&(i.advancedFilter.mainCategoryId=e.category),this.$emit("openmedia",i)},openTableProfile(e){const a={team:e,season:this.seasonSelect};this.$emit("openTableProfile",a)},clickAll(e){this.teamselect=e},clickTeam(e){this.teamselect=e},onInputTournament(e){this.tournamentSelected.id!==e.id&&(this.tournamentSelected=e)},async onInputSeason(e){this.seasonSelected!==e.id&&(this.seasonSelected=e.id,this.$emit("change-season-id",e.id),await this.getTableList(e.id))},async getTableList(e){try{this.seasonSelect=e,this.teams=[];const a=await mr.create({headers:{Authorization:`${this.token}`}}).get(this.url+e);if(this.tableData=a.data.data,this.pagesteams=[],this.teamperpage>0){let o=[];this.tableData.forEach((n,i)=>{o.push(n),(i+1)%this.teamperpage===0&&(this.pagesteams.push([...o]),o=[])}),o.length&&this.pagesteams.push([...o])}for(let o=0;o<this.tableData.length;o++)this.teams.push({id:this.tableData[o].team_id,team:this.tableData[o].team_name,logo:this.tableData[o].team_logo});this.teams.sort((o,n)=>{const i=o.team.toUpperCase(),r=n.team.toUpperCase();return i<r?-1:i>r?1:0})}catch(a){return Promise.reject(a)}},async fetchTournaments(){const e=mr.create({headers:{Authorization:`${this.token}`}}),{data:a}=await e.get(this.tournamentsUrl);return a}}},xu=e=>(t.pushScopeId("data-v-871f6068"),e=e(),t.popScopeId(),e),Tu={class:"gsc-generaltable__container"},Ou=xu(()=>t.createElementVNode("div",{class:"gsc-generaltable__row-sep"},[t.createElementVNode("div",{class:"gsc-generaltable__row-sep__line"})],-1)),Vu={key:1,class:"carousel-table-landing"},$u={class:"row-table-carrousel"};function Au(e,a,o,n,i,r){const s=t.resolveComponent("GSCTournamentSelect"),l=t.resolveComponent("GSCSeasonSelect"),p=t.resolveComponent("GSCFilterperteam"),c=t.resolveComponent("GSCTableperteam"),m=t.resolveComponent("GSCCarousel");return t.openBlock(),t.createElementBlock("div",{class:"gsc-generaltable",style:t.normalizeStyle(o.type==0?r.customStyle:r.customStyleLanding),ref:"myDivRef"},[o.type==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-generaltable__row-toolbar",n.elementSize.width<590?"style-display":""])},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-generaltable__row-toolbar__title",n.elementSize.width<768?"style-auto":""]),style:t.normalizeStyle(r.customStyleTitle)}," Tabla General ",6),t.createElementVNode("div",{class:t.normalizeClass(["gsc-generaltable__row-toolbar__selectors",n.elementSize.width<768&&n.elementSize.width>590?"style-auto":n.elementSize.width<590?"width-100":""])},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-generaltable__row-toolbar__selectors__tournaments",n.elementSize.width<590&&n.elementSize.width>=420?"width-50":n.elementSize.width<420?"width-30":""])},[t.createVNode(s,{"current-season-id":o.currentSeasonId,onInput:r.onInputTournament},null,8,["current-season-id","onInput"])],2),t.createElementVNode("div",{class:t.normalizeClass(["gsc-generaltable__row-toolbar__selectors__seasons",n.elementSize.width<590&&n.elementSize.width>=420?"width-50":n.elementSize.width<420?"width-30":""])},[t.createVNode(l,{"current-season-id":o.currentSeasonId,seasons:i.tournamentSelected.seasons,onInput:r.onInputSeason},null,8,["current-season-id","seasons","onInput"])],2)],2)],2),t.createElementVNode("div",Tu,[t.createVNode(p,{data:i.teams,"background-color":"none","contain-border-radius":"8px",onClickTeam:r.clickTeam,onClickAll:r.clickAll},null,8,["data","onClickTeam","onClickAll"]),Ou,i.tableData?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(i.tableData,(u,g)=>(t.openBlock(),t.createBlock(c,{key:g,onOpenmedia:r.setOpenMedia,onOpenTableProfile:r.openTableProfile,isheader:g==0,"background-color":i.teamselect!=0&&i.teamselect==u.team_id?"rgba(30, 60, 81, 0.5)":g%2===0?"#172531":"#0d1d29",data:u},null,8,["onOpenmedia","onOpenTableProfile","isheader","background-color","data"]))),128)):t.createCommentVNode("",!0)])],64)):(t.openBlock(),t.createElementBlock("div",Vu,[t.createVNode(m,{isPaginationVisible:o.isPaginationVisible,items:i.pagesteams},{default:t.withCtx(({item:u})=>[t.createElementVNode("div",$u,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u,(g,d)=>(t.openBlock(),t.createBlock(c,{key:d,onOpenmedia:r.setOpenMedia,onOpenTableProfile:r.openTableProfile,"is-games":!1,ItemHeight:"60px",teamSelected:1,isheader:d==0,"background-color":i.teamselect!=0&&i.teamselect==g.team_id?"rgba(30, 60, 81, 0.5)":d%2===0?"#172531":"#0d1d29",data:g},null,8,["onOpenmedia","onOpenTableProfile","isheader","background-color","data"]))),128))])]),_:1},8,["isPaginationVisible","items"])]))],4)}const zu=Eu(Nu,[["render",Au],["__scopeId","data-v-871f6068"]]);function Ru(e){const a=t.ref({width:0,height:0});function o(){const n=e.value.getBoundingClientRect();a.value.width=n.width,a.value.height=n.height}return t.onMounted(()=>{o(),window.addEventListener("resize",o)}),t.onUnmounted(()=>{window.removeEventListener("resize",o)}),{elementSize:a}}const Iu=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},Ko={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)}}},xr=()=>{t.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},Tr=Ko.setup;Ko.setup=Tr?(e,a)=>(xr(),Tr(e,a)):xr;const Fu={ref:"gscScrollableContainer",class:"scrollable-container"},Pu={class:"scrollable-arrows"},Lu=["width","height","viewBox"],Du=["stroke"],Mu={class:"scrollable-wrapper"},ju={class:"scrollable-arrows"},vu=["width","height","viewBox"],Wu=["stroke"];function Uu(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",Fu,[o.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",r.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...s)=>r.scrollLeft&&r.scrollLeft(...s))},[t.createElementVNode("div",Pu,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:r.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:o.arrowsColor},null,8,Du)],8,Lu))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:a[1]||(a[1]=(...s)=>r.getScroll&&r.getScroll(...s))},[t.createElementVNode("div",Mu,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),o.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",r.hideShowRightArrow]),onClick:a[2]||(a[2]=(...s)=>r.scrollRight&&r.scrollRight(...s))},[t.createElementVNode("div",ju,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:r.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:o.arrowsColor},null,8,Wu)],8,vu))])],2)):t.createCommentVNode("",!0)],512)}const Hu=Iu(Ko,[["render",Uu],["__scopeId","data-v-b548a08d"]]),Gu=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},Yo={components:{GSCSlider:Hu},props:{arrow:{type:Boolean,required:!0},buttons:{type:Array,required:!0},width:{type:String,default:"300px"},height:{type:String,default:"80px"},fontSize:{type:String,default:"16px"},colorFont:{type:String,default:"#ffffff"},backgroundOptionActive:{type:String,default:"#0d1d29"},colorOptionActive:{type:String,default:"#cbee6b"},colorOptionDisable:{type:String,default:"gray"},backgroundOptionDisable:{type:String,default:"#0d1d29"},fontFamily:{type:String,default:"Poppins-Semibold"},borderWidth:{type:String,default:"3px"},borderRadius:{type:String,default:"0px"},selectedOption:{type:String,default:""},type:{type:Number,default:0},borderWidthContainer:{type:String,default:"1px"},background:{type:String,default:"#0d1d29"},borderColorContainer:{type:String,default:"#505355"},pxScroll:{type:Number,default:100},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},arrowsScrollHide:{type:Boolean,default:!1},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"}},setup(){const e=t.ref("myDivRef"),{elementSize:a}=Ru(e);return{myDivRef:e,elementSize:a}},methods:{clickEmitEvent(e){this.$emit("input",e)},customGrid(e){var a={};return e.width>768?a={fontSize:"16px"}:e.width>480?a={fontSize:"14px"}:a={fontSize:"12px"},a}}},Or=()=>{t.useCssVars(e=>({cff4a118:e.fontSize,"42aab7f6":e.borderWidth,d29bcbd2:e.fontFamily,df6c5a9c:e.background,"09b32862":e.borderRadius,"8c0d6daa":e.borderWidthContainer,e8a86fa4:e.borderColorContainer,"179494da":e.colorOptionActive,cea5647c:e.width}))},Vr=Yo.setup;Yo.setup=Vr?(e,a)=>(Or(),Vr(e,a)):Or;const Ju={ref:"myDivRef"},qu={key:0,class:"gs-switch-container"},Zu=["onClick"],Xu={key:1,class:"gs-switch-container-type"},Ku=["onClick"],Yu={key:2,class:"gs-switch-container-carousel"},Qu=["onClick"];function eh(e,a,o,n,i,r){const s=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",Ju,[o.type==0?(t.openBlock(),t.createElementBlock("div",qu,[t.createElementVNode("div",{class:"gs-switch-container__control",style:t.normalizeStyle([r.customGrid(n.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.buttons,(l,p)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container__control__button-option",style:t.normalizeStyle([{height:o.height},o.selectedOption==l?{borderColor:o.colorOptionActive,color:o.colorFont+"!important",background:o.backgroundOptionActive}:{borderColor:o.colorOptionDisable,color:"grey !important"}]),key:p,onClick:c=>(o.selectedOption=l,r.clickEmitEvent(l))},t.toDisplayString(l),13,Zu))),128))],4),t.renderSlot(e.$slots,o.selectedOption,{},void 0,!0)])):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",Xu,[t.createElementVNode("div",{class:"gs-switch-container-type__control",style:t.normalizeStyle([r.customGrid(n.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.buttons,(l,p)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container-type__control__button-option-type",style:t.normalizeStyle([{height:o.height},o.selectedOption==l?{borderColor:o.colorOptionActive,color:o.colorFont+"!important",background:o.backgroundOptionActive}:{borderColor:o.colorOptionDisable,borderWidth:"0px",borderWidth:"0px !important",color:"grey !important",background:o.backgroundOptionDisable}]),key:p,onClick:c=>(o.selectedOption=l,r.clickEmitEvent(l))},t.toDisplayString(l),13,Ku))),128))],4)])):t.createCommentVNode("",!0),o.type==2?(t.openBlock(),t.createElementBlock("div",Yu,[t.createVNode(s,{arrows:o.arrow,"background-color":o.background,"px-scroll":o.pxScroll,"scroll-color":o.scrollColor,"arrows-position":o.arrowsPosition,arrowsScrollHide:o.arrowsScrollHide,"arrows-background":o.arrowsBackground,"arrows-container-bg-l":o.arrowsContainerBgL,"arrows-container-bg-r":o.arrowsContainerBgR,"arrows-margin":o.arrowsMargin,"arrows-radius":o.arrowsRadius,"arrows-border":o.arrowsBorder},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.buttons,(l,p)=>(t.openBlock(),t.createElementBlock("div",{class:"button-option-multi",style:t.normalizeStyle([{height:o.height},o.selectedOption==l?{borderColor:o.colorOptionActive,color:o.colorFont+"!important",background:o.backgroundOptionActive}:{borderColor:o.colorOptionDisable,color:"grey !important"}]),key:p,onClick:c=>(o.selectedOption=l,r.clickEmitEvent(l))},t.toDisplayString(l),13,Qu))),128))]),_:1},8,["arrows","background-color","px-scroll","scroll-color","arrows-position","arrowsScrollHide","arrows-background","arrows-container-bg-l","arrows-container-bg-r","arrows-margin","arrows-radius","arrows-border"])])):t.createCommentVNode("",!0)],512)}const Qo=Gu(Yo,[["render",eh],["__scopeId","data-v-8a86dfaf"]]);function $r(e,a){return function(){return e.apply(a,arguments)}}const{toString:th}=Object.prototype,{getPrototypeOf:ea}=Object,Lt=(e=>a=>{const o=th.call(a);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),Ne=e=>(e=e.toLowerCase(),a=>Lt(a)===e),Dt=e=>a=>typeof a===e,{isArray:Xe}=Array,dt=Dt("undefined");function oh(e){return e!==null&&!dt(e)&&e.constructor!==null&&!dt(e.constructor)&&de(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ar=Ne("ArrayBuffer");function ah(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&Ar(e.buffer),a}const nh=Dt("string"),de=Dt("function"),zr=Dt("number"),Mt=e=>e!==null&&typeof e=="object",rh=e=>e===!0||e===!1,jt=e=>{if(Lt(e)!=="object")return!1;const a=ea(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},ih=Ne("Date"),sh=Ne("File"),lh=Ne("Blob"),ch=Ne("FileList"),dh=e=>Mt(e)&&de(e.pipe),mh=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||de(e.append)&&((a=Lt(e))==="formdata"||a==="object"&&de(e.toString)&&e.toString()==="[object FormData]"))},ph=Ne("URLSearchParams"),uh=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function mt(e,a,{allOwnKeys:o=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),Xe(e))for(n=0,i=e.length;n<i;n++)a.call(null,e[n],n,e);else{const r=o?Object.getOwnPropertyNames(e):Object.keys(e),s=r.length;let l;for(n=0;n<s;n++)l=r[n],a.call(null,e[l],l,e)}}function Rr(e,a){a=a.toLowerCase();const o=Object.keys(e);let n=o.length,i;for(;n-- >0;)if(i=o[n],a===i.toLowerCase())return i;return null}const Ir=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Fr=e=>!dt(e)&&e!==Ir;function ta(){const{caseless:e}=Fr(this)&&this||{},a={},o=(n,i)=>{const r=e&&Rr(a,i)||i;jt(a[r])&&jt(n)?a[r]=ta(a[r],n):jt(n)?a[r]=ta({},n):Xe(n)?a[r]=n.slice():a[r]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&mt(arguments[n],o);return a}const hh=(e,a,o,{allOwnKeys:n}={})=>(mt(a,(i,r)=>{o&&de(i)?e[r]=$r(i,o):e[r]=i},{allOwnKeys:n}),e),fh=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),gh=(e,a,o,n)=>{e.prototype=Object.create(a.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),o&&Object.assign(e.prototype,o)},yh=(e,a,o,n)=>{let i,r,s;const l={};if(a=a||{},e==null)return a;do{for(i=Object.getOwnPropertyNames(e),r=i.length;r-- >0;)s=i[r],(!n||n(s,e,a))&&!l[s]&&(a[s]=e[s],l[s]=!0);e=o!==!1&&ea(e)}while(e&&(!o||o(e,a))&&e!==Object.prototype);return a},bh=(e,a,o)=>{e=String(e),(o===void 0||o>e.length)&&(o=e.length),o-=a.length;const n=e.indexOf(a,o);return n!==-1&&n===o},wh=e=>{if(!e)return null;if(Xe(e))return e;let a=e.length;if(!zr(a))return null;const o=new Array(a);for(;a-- >0;)o[a]=e[a];return o},_h=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&ea(Uint8Array)),Sh=(e,a)=>{const o=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=o.next())&&!n.done;){const i=n.value;a.call(e,i[0],i[1])}},kh=(e,a)=>{let o;const n=[];for(;(o=e.exec(a))!==null;)n.push(o);return n},Ch=Ne("HTMLFormElement"),Bh=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,o,n){return o.toUpperCase()+n}),Pr=(({hasOwnProperty:e})=>(a,o)=>e.call(a,o))(Object.prototype),Eh=Ne("RegExp"),Lr=(e,a)=>{const o=Object.getOwnPropertyDescriptors(e),n={};mt(o,(i,r)=>{let s;(s=a(i,r,e))!==!1&&(n[r]=s||i)}),Object.defineProperties(e,n)},Nh=e=>{Lr(e,(a,o)=>{if(de(e)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const n=e[o];if(de(n)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},xh=(e,a)=>{const o={},n=i=>{i.forEach(r=>{o[r]=!0})};return Xe(e)?n(e):n(String(e).split(a)),o},Th=()=>{},Oh=(e,a)=>(e=+e,Number.isFinite(e)?e:a),oa="abcdefghijklmnopqrstuvwxyz",Dr="0123456789",Mr={DIGIT:Dr,ALPHA:oa,ALPHA_DIGIT:oa+oa.toUpperCase()+Dr},Vh=(e=16,a=Mr.ALPHA_DIGIT)=>{let o="";const{length:n}=a;for(;e--;)o+=a[Math.random()*n|0];return o};function $h(e){return!!(e&&de(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Ah=e=>{const a=new Array(10),o=(n,i)=>{if(Mt(n)){if(a.indexOf(n)>=0)return;if(!("toJSON"in n)){a[i]=n;const r=Xe(n)?[]:{};return mt(n,(s,l)=>{const p=o(s,i+1);!dt(p)&&(r[l]=p)}),a[i]=void 0,r}}return n};return o(e,0)},zh=Ne("AsyncFunction"),Rh=e=>e&&(Mt(e)||de(e))&&de(e.then)&&de(e.catch),S={isArray:Xe,isArrayBuffer:Ar,isBuffer:oh,isFormData:mh,isArrayBufferView:ah,isString:nh,isNumber:zr,isBoolean:rh,isObject:Mt,isPlainObject:jt,isUndefined:dt,isDate:ih,isFile:sh,isBlob:lh,isRegExp:Eh,isFunction:de,isStream:dh,isURLSearchParams:ph,isTypedArray:_h,isFileList:ch,forEach:mt,merge:ta,extend:hh,trim:uh,stripBOM:fh,inherits:gh,toFlatObject:yh,kindOf:Lt,kindOfTest:Ne,endsWith:bh,toArray:wh,forEachEntry:Sh,matchAll:kh,isHTMLForm:Ch,hasOwnProperty:Pr,hasOwnProp:Pr,reduceDescriptors:Lr,freezeMethods:Nh,toObjectSet:xh,toCamelCase:Bh,noop:Th,toFiniteNumber:Oh,findKey:Rr,global:Ir,isContextDefined:Fr,ALPHABET:Mr,generateString:Vh,isSpecCompliantForm:$h,toJSONObject:Ah,isAsyncFn:zh,isThenable:Rh};function P(e,a,o,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),o&&(this.config=o),n&&(this.request=n),i&&(this.response=i)}S.inherits(P,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:S.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const jr=P.prototype,vr={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{vr[e]={value:e}}),Object.defineProperties(P,vr),Object.defineProperty(jr,"isAxiosError",{value:!0}),P.from=(e,a,o,n,i,r)=>{const s=Object.create(jr);return S.toFlatObject(e,s,function(l){return l!==Error.prototype},l=>l!=="isAxiosError"),P.call(s,e.message,a,o,n,i),s.cause=e,s.name=e.name,r&&Object.assign(s,r),s};const Ih=null;function aa(e){return S.isPlainObject(e)||S.isArray(e)}function Wr(e){return S.endsWith(e,"[]")?e.slice(0,-2):e}function Ur(e,a,o){return e?e.concat(a).map(function(n,i){return n=Wr(n),!o&&i?"["+n+"]":n}).join(o?".":""):a}function Fh(e){return S.isArray(e)&&!e.some(aa)}const Ph=S.toFlatObject(S,{},null,function(e){return/^is[A-Z]/.test(e)});function vt(e,a,o){if(!S.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,o=S.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,h){return!S.isUndefined(h[d])});const n=o.metaTokens,i=o.visitor||c,r=o.dots,s=o.indexes,l=(o.Blob||typeof Blob<"u"&&Blob)&&S.isSpecCompliantForm(a);if(!S.isFunction(i))throw new TypeError("visitor must be a function");function p(d){if(d===null)return"";if(S.isDate(d))return d.toISOString();if(!l&&S.isBlob(d))throw new P("Blob is not supported. Use a Buffer instead.");return S.isArrayBuffer(d)||S.isTypedArray(d)?l&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function c(d,h,f){let y=d;if(d&&!f&&typeof d=="object"){if(S.endsWith(h,"{}"))h=n?h:h.slice(0,-2),d=JSON.stringify(d);else if(S.isArray(d)&&Fh(d)||(S.isFileList(d)||S.endsWith(h,"[]"))&&(y=S.toArray(d)))return h=Wr(h),y.forEach(function(C,A){!(S.isUndefined(C)||C===null)&&a.append(s===!0?Ur([h],A,r):s===null?h:h+"[]",p(C))}),!1}return aa(d)?!0:(a.append(Ur(f,h,r),p(d)),!1)}const m=[],u=Object.assign(Ph,{defaultVisitor:c,convertValue:p,isVisitable:aa});function g(d,h){if(!S.isUndefined(d)){if(m.indexOf(d)!==-1)throw Error("Circular reference detected in "+h.join("."));m.push(d),S.forEach(d,function(f,y){(!(S.isUndefined(f)||f===null)&&i.call(a,f,S.isString(y)?y.trim():y,h,u))===!0&&g(f,h?h.concat(y):[y])}),m.pop()}}if(!S.isObject(e))throw new TypeError("data must be an object");return g(e),a}function Hr(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return a[o]})}function na(e,a){this._pairs=[],e&&vt(e,this,a)}const Gr=na.prototype;Gr.append=function(e,a){this._pairs.push([e,a])},Gr.toString=function(e){const a=e?function(o){return e.call(this,o,Hr)}:Hr;return this._pairs.map(function(o){return a(o[0])+"="+a(o[1])},"").join("&")};function Lh(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Jr(e,a,o){if(!a)return e;const n=o&&o.encode||Lh,i=o&&o.serialize;let r;if(i?r=i(a,o):r=S.isURLSearchParams(a)?a.toString():new na(a,o).toString(n),r){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}const qr=class{constructor(){this.handlers=[]}use(a,o,n){return this.handlers.push({fulfilled:a,rejected:o,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){S.forEach(this.handlers,function(o){o!==null&&a(o)})}},Zr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Dh=typeof URLSearchParams<"u"?URLSearchParams:na,Mh=typeof FormData<"u"?FormData:null,jh=typeof Blob<"u"?Blob:null,vh={isBrowser:!0,classes:{URLSearchParams:Dh,FormData:Mh,Blob:jh},protocols:["http","https","file","blob","url","data"]},Xr=typeof window<"u"&&typeof document<"u",Wh=(e=>Xr&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Uh=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Hh=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Xr,hasStandardBrowserEnv:Wh,hasStandardBrowserWebWorkerEnv:Uh},Symbol.toStringTag,{value:"Module"})),xe={...Hh,...vh};function Gh(e,a){return vt(e,new xe.classes.URLSearchParams,Object.assign({visitor:function(o,n,i,r){return xe.isNode&&S.isBuffer(o)?(this.append(n,o.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},a))}function Jh(e){return S.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function qh(e){const a={},o=Object.keys(e);let n;const i=o.length;let r;for(n=0;n<i;n++)r=o[n],a[r]=e[r];return a}function Kr(e){function a(o,n,i,r){let s=o[r++];if(s==="__proto__")return!0;const l=Number.isFinite(+s),p=r>=o.length;return s=!s&&S.isArray(i)?i.length:s,p?(S.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!l):((!i[s]||!S.isObject(i[s]))&&(i[s]=[]),a(o,n,i[s],r)&&S.isArray(i[s])&&(i[s]=qh(i[s])),!l)}if(S.isFormData(e)&&S.isFunction(e.entries)){const o={};return S.forEachEntry(e,(n,i)=>{a(Jh(n),i,o,0)}),o}return null}function Zh(e,a,o){if(S.isString(e))try{return(a||JSON.parse)(e),S.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(o||JSON.stringify)(e)}const ra={transitional:Zr,adapter:["xhr","http"],transformRequest:[function(e,a){const o=a.getContentType()||"",n=o.indexOf("application/json")>-1,i=S.isObject(e);if(i&&S.isHTMLForm(e)&&(e=new FormData(e)),S.isFormData(e))return n&&n?JSON.stringify(Kr(e)):e;if(S.isArrayBuffer(e)||S.isBuffer(e)||S.isStream(e)||S.isFile(e)||S.isBlob(e))return e;if(S.isArrayBufferView(e))return e.buffer;if(S.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let r;if(i){if(o.indexOf("application/x-www-form-urlencoded")>-1)return Gh(e,this.formSerializer).toString();if((r=S.isFileList(e))||o.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return vt(r?{"files[]":e}:e,s&&new s,this.formSerializer)}}return i||n?(a.setContentType("application/json",!1),Zh(e)):e}],transformResponse:[function(e){const a=this.transitional||ra.transitional,o=a&&a.forcedJSONParsing,n=this.responseType==="json";if(e&&S.isString(e)&&(o&&!this.responseType||n)){const i=!(a&&a.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(r){if(i)throw r.name==="SyntaxError"?P.from(r,P.ERR_BAD_RESPONSE,this,null,this.response):r}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:xe.classes.FormData,Blob:xe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};S.forEach(["delete","get","head","post","put","patch"],e=>{ra.headers[e]={}});const ia=ra,Xh=S.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Kh=e=>{const a={};let o,n,i;return e&&e.split(`
|
|
16
|
+
`).forEach(function(r){i=r.indexOf(":"),o=r.substring(0,i).trim().toLowerCase(),n=r.substring(i+1).trim(),!(!o||a[o]&&Xh[o])&&(o==="set-cookie"?a[o]?a[o].push(n):a[o]=[n]:a[o]=a[o]?a[o]+", "+n:n)}),a},Yr=Symbol("internals");function pt(e){return e&&String(e).trim().toLowerCase()}function Wt(e){return e===!1||e==null?e:S.isArray(e)?e.map(Wt):String(e)}function Yh(e){const a=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=o.exec(e);)a[n[1]]=n[2];return a}const Qh=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function sa(e,a,o,n,i){if(S.isFunction(n))return n.call(this,a,o);if(i&&(a=o),!!S.isString(a)){if(S.isString(n))return a.indexOf(n)!==-1;if(S.isRegExp(n))return n.test(a)}}function ef(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,o,n)=>o.toUpperCase()+n)}function tf(e,a){const o=S.toCamelCase(" "+a);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+o,{value:function(i,r,s){return this[n].call(this,a,i,r,s)},configurable:!0})})}let Ut=class{constructor(a){a&&this.set(a)}set(a,o,n){const i=this;function r(l,p,c){const m=pt(p);if(!m)throw new Error("header name must be a non-empty string");const u=S.findKey(i,m);(!u||i[u]===void 0||c===!0||c===void 0&&i[u]!==!1)&&(i[u||p]=Wt(l))}const s=(l,p)=>S.forEach(l,(c,m)=>r(c,m,p));return S.isPlainObject(a)||a instanceof this.constructor?s(a,o):S.isString(a)&&(a=a.trim())&&!Qh(a)?s(Kh(a),o):a!=null&&r(o,a,n),this}get(a,o){if(a=pt(a),a){const n=S.findKey(this,a);if(n){const i=this[n];if(!o)return i;if(o===!0)return Yh(i);if(S.isFunction(o))return o.call(this,i,n);if(S.isRegExp(o))return o.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,o){if(a=pt(a),a){const n=S.findKey(this,a);return!!(n&&this[n]!==void 0&&(!o||sa(this,this[n],n,o)))}return!1}delete(a,o){const n=this;let i=!1;function r(s){if(s=pt(s),s){const l=S.findKey(n,s);l&&(!o||sa(n,n[l],l,o))&&(delete n[l],i=!0)}}return S.isArray(a)?a.forEach(r):r(a),i}clear(a){const o=Object.keys(this);let n=o.length,i=!1;for(;n--;){const r=o[n];(!a||sa(this,this[r],r,a,!0))&&(delete this[r],i=!0)}return i}normalize(a){const o=this,n={};return S.forEach(this,(i,r)=>{const s=S.findKey(n,r);if(s){o[s]=Wt(i),delete o[r];return}const l=a?ef(r):String(r).trim();l!==r&&delete o[r],o[l]=Wt(i),n[l]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const o=Object.create(null);return S.forEach(this,(n,i)=>{n!=null&&n!==!1&&(o[i]=a&&S.isArray(n)?n.join(", "):n)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,o])=>a+": "+o).join(`
|
|
17
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...o){const n=new this(a);return o.forEach(i=>n.set(i)),n}static accessor(a){const o=(this[Yr]=this[Yr]={accessors:{}}).accessors,n=this.prototype;function i(r){const s=pt(r);o[s]||(tf(n,r),o[s]=!0)}return S.isArray(a)?a.forEach(i):i(a),this}};Ut.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),S.reduceDescriptors(Ut.prototype,({value:e},a)=>{let o=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(n){this[o]=n}}}),S.freezeMethods(Ut);const Ie=Ut;function la(e,a){const o=this||ia,n=a||o,i=Ie.from(n.headers);let r=n.data;return S.forEach(e,function(s){r=s.call(o,r,i.normalize(),a?a.status:void 0)}),i.normalize(),r}function Qr(e){return!!(e&&e.__CANCEL__)}function ut(e,a,o){P.call(this,e??"canceled",P.ERR_CANCELED,a,o),this.name="CanceledError"}S.inherits(ut,P,{__CANCEL__:!0});function of(e,a,o){const n=o.config.validateStatus;!o.status||!n||n(o.status)?e(o):a(new P("Request failed with status code "+o.status,[P.ERR_BAD_REQUEST,P.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}const af=xe.hasStandardBrowserEnv?{write(e,a,o,n,i,r){const s=[e+"="+encodeURIComponent(a)];S.isNumber(o)&&s.push("expires="+new Date(o).toGMTString()),S.isString(n)&&s.push("path="+n),S.isString(i)&&s.push("domain="+i),r===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const a=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function nf(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function rf(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function ei(e,a){return e&&!nf(a)?rf(e,a):a}const sf=xe.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");let o;function n(i){let r=i;return e&&(a.setAttribute("href",r),r=a.href),a.setAttribute("href",r),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:a.pathname.charAt(0)==="/"?a.pathname:"/"+a.pathname}}return o=n(window.location.href),function(i){const r=S.isString(i)?n(i):i;return r.protocol===o.protocol&&r.host===o.host}}():function(){return function(){return!0}}();function lf(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function cf(e,a){e=e||10;const o=new Array(e),n=new Array(e);let i=0,r=0,s;return a=a!==void 0?a:1e3,function(l){const p=Date.now(),c=n[r];s||(s=p),o[i]=l,n[i]=p;let m=r,u=0;for(;m!==i;)u+=o[m++],m=m%e;if(i=(i+1)%e,i===r&&(r=(r+1)%e),p-s<a)return;const g=c&&p-c;return g?Math.round(u*1e3/g):void 0}}function ti(e,a){let o=0;const n=cf(50,250);return i=>{const r=i.loaded,s=i.lengthComputable?i.total:void 0,l=r-o,p=n(l),c=r<=s;o=r;const m={loaded:r,total:s,progress:s?r/s:void 0,bytes:l,rate:p||void 0,estimated:p&&s&&c?(s-r)/p:void 0,event:i};m[a?"download":"upload"]=!0,e(m)}}const df=typeof XMLHttpRequest<"u",mf=df&&function(e){return new Promise(function(a,o){let n=e.data;const i=Ie.from(e.headers).normalize();let{responseType:r,withXSRFToken:s}=e,l;function p(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let c;if(S.isFormData(n)){if(xe.hasStandardBrowserEnv||xe.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((c=i.getContentType())!==!1){const[h,...f]=c?c.split(";").map(y=>y.trim()).filter(Boolean):[];i.setContentType([h||"multipart/form-data",...f].join("; "))}}let m=new XMLHttpRequest;if(e.auth){const h=e.auth.username||"",f=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(h+":"+f))}const u=ei(e.baseURL,e.url);m.open(e.method.toUpperCase(),Jr(u,e.params,e.paramsSerializer),!0),m.timeout=e.timeout;function g(){if(!m)return;const h=Ie.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),f={data:!r||r==="text"||r==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:h,config:e,request:m};of(function(y){a(y),p()},function(y){o(y),p()},f),m=null}if("onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(g)},m.onabort=function(){m&&(o(new P("Request aborted",P.ECONNABORTED,e,m)),m=null)},m.onerror=function(){o(new P("Network Error",P.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let h=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const f=e.transitional||Zr;e.timeoutErrorMessage&&(h=e.timeoutErrorMessage),o(new P(h,f.clarifyTimeoutError?P.ETIMEDOUT:P.ECONNABORTED,e,m)),m=null},xe.hasStandardBrowserEnv&&(s&&S.isFunction(s)&&(s=s(e)),s||s!==!1&&sf(u))){const h=e.xsrfHeaderName&&e.xsrfCookieName&&af.read(e.xsrfCookieName);h&&i.set(e.xsrfHeaderName,h)}n===void 0&&i.setContentType(null),"setRequestHeader"in m&&S.forEach(i.toJSON(),function(h,f){m.setRequestHeader(f,h)}),S.isUndefined(e.withCredentials)||(m.withCredentials=!!e.withCredentials),r&&r!=="json"&&(m.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&m.addEventListener("progress",ti(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&m.upload&&m.upload.addEventListener("progress",ti(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=h=>{m&&(o(!h||h.type?new ut(null,e,m):h),m.abort(),m=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const d=lf(u);if(d&&xe.protocols.indexOf(d)===-1){o(new P("Unsupported protocol "+d+":",P.ERR_BAD_REQUEST,e));return}m.send(n||null)})},ca={http:Ih,xhr:mf};S.forEach(ca,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const oi=e=>`- ${e}`,pf=e=>S.isFunction(e)||e===null||e===!1,ai={getAdapter:e=>{e=S.isArray(e)?e:[e];const{length:a}=e;let o,n;const i={};for(let r=0;r<a;r++){o=e[r];let s;if(n=o,!pf(o)&&(n=ca[(s=String(o)).toLowerCase()],n===void 0))throw new P(`Unknown adapter '${s}'`);if(n)break;i[s||"#"+r]=n}if(!n){const r=Object.entries(i).map(([l,p])=>`adapter ${l} `+(p===!1?"is not supported by the environment":"is not available in the build"));let s=a?r.length>1?`since :
|
|
18
|
+
`+r.map(oi).join(`
|
|
19
|
+
`):" "+oi(r[0]):"as no adapter specified";throw new P("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:ca};function da(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ut(null,e)}function ni(e){return da(e),e.headers=Ie.from(e.headers),e.data=la.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ai.getAdapter(e.adapter||ia.adapter)(e).then(function(a){return da(e),a.data=la.call(e,e.transformResponse,a),a.headers=Ie.from(a.headers),a},function(a){return Qr(a)||(da(e),a&&a.response&&(a.response.data=la.call(e,e.transformResponse,a.response),a.response.headers=Ie.from(a.response.headers))),Promise.reject(a)})}const ri=e=>e instanceof Ie?e.toJSON():e;function Ke(e,a){a=a||{};const o={};function n(c,m,u){return S.isPlainObject(c)&&S.isPlainObject(m)?S.merge.call({caseless:u},c,m):S.isPlainObject(m)?S.merge({},m):S.isArray(m)?m.slice():m}function i(c,m,u){if(S.isUndefined(m)){if(!S.isUndefined(c))return n(void 0,c,u)}else return n(c,m,u)}function r(c,m){if(!S.isUndefined(m))return n(void 0,m)}function s(c,m){if(S.isUndefined(m)){if(!S.isUndefined(c))return n(void 0,c)}else return n(void 0,m)}function l(c,m,u){if(u in a)return n(c,m);if(u in e)return n(void 0,c)}const p={url:r,method:r,data:r,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(c,m)=>i(ri(c),ri(m),!0)};return S.forEach(Object.keys(Object.assign({},e,a)),function(c){const m=p[c]||i,u=m(e[c],a[c],c);S.isUndefined(u)&&m!==l||(o[c]=u)}),o}const ii="1.6.6",ma={};["object","boolean","number","function","string","symbol"].forEach((e,a)=>{ma[e]=function(o){return typeof o===e||"a"+(a<1?"n ":" ")+e}});const si={};ma.transitional=function(e,a,o){function n(i,r){return"[Axios v"+ii+"] Transitional option '"+i+"'"+r+(o?". "+o:"")}return(i,r,s)=>{if(e===!1)throw new P(n(r," has been removed"+(a?" in "+a:"")),P.ERR_DEPRECATED);return a&&!si[r]&&(si[r]=!0,console.warn(n(r," has been deprecated since v"+a+" and will be removed in the near future"))),e?e(i,r,s):!0}};function uf(e,a,o){if(typeof e!="object")throw new P("options must be an object",P.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const r=n[i],s=a[r];if(s){const l=e[r],p=l===void 0||s(l,r,e);if(p!==!0)throw new P("option "+r+" must be "+p,P.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new P("Unknown option "+r,P.ERR_BAD_OPTION)}}const pa={assertOptions:uf,validators:ma},De=pa.validators;let Ht=class{constructor(a){this.defaults=a,this.interceptors={request:new qr,response:new qr}}async request(a,o){try{return await this._request(a,o)}catch(n){const i={};throw Error.captureStackTrace?Error.captureStackTrace(i):i.stack=new Error().stack,i.stack=i.stack.replace(/^.+\n/,""),n.stack.endsWith(i.stack.replace(/^.+\n.+\n/,""))||(n.stack+=`
|
|
20
|
+
`+i.stack),n}}_request(a,o){typeof a=="string"?(o=o||{},o.url=a):o=a||{},o=Ke(this.defaults,o);const{transitional:n,paramsSerializer:i,headers:r}=o;n!==void 0&&pa.assertOptions(n,{silentJSONParsing:De.transitional(De.boolean),forcedJSONParsing:De.transitional(De.boolean),clarifyTimeoutError:De.transitional(De.boolean)},!1),i!=null&&(S.isFunction(i)?o.paramsSerializer={serialize:i}:pa.assertOptions(i,{encode:De.function,serialize:De.function},!0)),o.method=(o.method||this.defaults.method||"get").toLowerCase();let s=r&&S.merge(r.common,r[o.method]);r&&S.forEach(["delete","get","head","post","put","patch","common"],h=>{delete r[h]}),o.headers=Ie.concat(s,r);const l=[];let p=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(o)===!1||(p=p&&h.synchronous,l.unshift(h.fulfilled,h.rejected))});const c=[];this.interceptors.response.forEach(function(h){c.push(h.fulfilled,h.rejected)});let m,u=0,g;if(!p){const h=[ni.bind(this),void 0];for(h.unshift.apply(h,l),h.push.apply(h,c),g=h.length,m=Promise.resolve(o);u<g;)m=m.then(h[u++],h[u++]);return m}g=l.length;let d=o;for(u=0;u<g;){const h=l[u++],f=l[u++];try{d=h(d)}catch(y){f.call(this,y);break}}try{m=ni.call(this,d)}catch(h){return Promise.reject(h)}for(u=0,g=c.length;u<g;)m=m.then(c[u++],c[u++]);return m}getUri(a){a=Ke(this.defaults,a);const o=ei(a.baseURL,a.url);return Jr(o,a.params,a.paramsSerializer)}};S.forEach(["delete","get","head","options"],function(e){Ht.prototype[e]=function(a,o){return this.request(Ke(o||{},{method:e,url:a,data:(o||{}).data}))}}),S.forEach(["post","put","patch"],function(e){function a(o){return function(n,i,r){return this.request(Ke(r||{},{method:e,headers:o?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}Ht.prototype[e]=a(),Ht.prototype[e+"Form"]=a(!0)});const Gt=Ht,hf=class Is{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(i){o=i});const n=this;this.promise.then(i=>{if(!n._listeners)return;let r=n._listeners.length;for(;r-- >0;)n._listeners[r](i);n._listeners=null}),this.promise.then=i=>{let r;const s=new Promise(l=>{n.subscribe(l),r=l}).then(i);return s.cancel=function(){n.unsubscribe(r)},s},a(function(i,r,s){n.reason||(n.reason=new ut(i,r,s),o(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const o=this._listeners.indexOf(a);o!==-1&&this._listeners.splice(o,1)}static source(){let a;return{token:new Is(function(o){a=o}),cancel:a}}};function ff(e){return function(a){return e.apply(null,a)}}function gf(e){return S.isObject(e)&&e.isAxiosError===!0}const ua={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(ua).forEach(([e,a])=>{ua[a]=e});const yf=ua;function li(e){const a=new Gt(e),o=$r(Gt.prototype.request,a);return S.extend(o,Gt.prototype,a,{allOwnKeys:!0}),S.extend(o,a,null,{allOwnKeys:!0}),o.create=function(n){return li(Ke(e,n))},o}const J=li(ia);J.Axios=Gt,J.CanceledError=ut,J.CancelToken=hf,J.isCancel=Qr,J.VERSION=ii,J.toFormData=vt,J.AxiosError=P,J.Cancel=J.CanceledError,J.all=function(e){return Promise.all(e)},J.spread=ff,J.isAxiosError=gf,J.mergeConfig=Ke,J.AxiosHeaders=Ie,J.formToJSON=e=>Kr(S.isHTMLForm(e)?new FormData(e):e),J.getAdapter=ai.getAdapter,J.HttpStatusCode=yf,J.default=J;const ci=J;/**
|
|
21
21
|
* Vue 3 Carousel 0.3.1
|
|
22
22
|
* (c) 2023
|
|
23
23
|
* @license MIT
|
|
24
|
-
*/const Q={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},li={itemsToShow:{default:Q.itemsToShow,type:Number},itemsToScroll:{default:Q.itemsToScroll,type:Number},wrapAround:{default:Q.wrapAround,type:Boolean},throttle:{default:Q.throttle,type:Number},snapAlign:{default:Q.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Q.transition,type:Number},breakpoints:{default:Q.breakpoints,type:Object},autoplay:{default:Q.autoplay,type:Number},pauseAutoplayOnHover:{default:Q.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Q.mouseDrag,type:Boolean},touchDrag:{default:Q.touchDrag,type:Boolean},dir:{default:Q.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Q.i18n,type:Object},settings:{default(){return{}},type:Object}};function hf({config:e,slidesCount:a}){const{snapAlign:o,wrapAround:n,itemsToShow:i=1}=e;if(n)return Math.max(a-1,0);let r;switch(o){case"start":r=a-i;break;case"end":r=a-1;break;case"center":case"center-odd":r=a-Math.ceil((i-.5)/2);break;case"center-even":r=a-Math.ceil(i/2);break;default:r=0;break}return Math.max(r,0)}function ff({config:e,slidesCount:a}){const{wrapAround:o,snapAlign:n,itemsToShow:i=1}=e;let r=0;if(o||i>a)return r;switch(n){case"start":r=0;break;case"end":r=i-1;break;case"center":case"center-odd":r=Math.floor((i-1)/2);break;case"center-even":r=Math.floor((i-2)/2);break;default:r=0;break}return r}function ua({val:e,max:a,min:o}){return a<o?e:Math.min(Math.max(e,o),a)}function gf({config:e,currentSlide:a,slidesCount:o}){const{snapAlign:n,wrapAround:i,itemsToShow:r=1}=e;let s=a;switch(n){case"center":case"center-odd":s-=(r-1)/2;break;case"center-even":s-=(r-2)/2;break;case"end":s-=r-1;break}return i?s:ua({val:s,max:o-r,min:0})}function ci(e){return e?e.reduce((a,o)=>{var n;return o.type===t.Fragment?[...a,...ci(o.children)]:((n=o.type)===null||n===void 0?void 0:n.name)==="CarouselSlide"?[...a,o]:a},[]):[]}function ha({val:e,max:a,min:o=0}){return e>a?ha({val:e-(a+1),max:a,min:o}):e<o?ha({val:e+(a+1),max:a,min:o}):e}function yf(e,a){let o;return a?function(...n){const i=this;o||(e.apply(i,n),o=!0,setTimeout(()=>o=!1,a))}:e}function bf(e,a){let o;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{e(...n),o=null},a)}}function wf(e="",a={}){return Object.entries(a).reduce((o,[n,i])=>o.replace(`{${n}}`,String(i)),e)}var _f=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Q))),a=t.inject("currentSlide",t.ref(0)),o=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},wf(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:o.value}))}}),Sf=t.defineComponent({name:"Carousel",props:li,setup(e,{slots:a,emit:o,expose:n}){var i;const r=t.ref(null),s=t.ref([]),l=t.ref(0),p=t.ref(0),d=t.reactive(Object.assign({},Q));let c=Object.assign({},Q),h;const m=t.ref((i=e.modelValue)!==null&&i!==void 0?i:0),f=t.ref(0),u=t.ref(0),g=t.ref(0),y=t.ref(0);let C,A;t.provide("config",d),t.provide("slidesCount",p),t.provide("currentSlide",m),t.provide("maxSlide",g),t.provide("minSlide",y),t.provide("slideWidth",l);function v(){h=Object.assign({},e.breakpoints),c=Object.assign(Object.assign(Object.assign({},c),e),{i18n:Object.assign(Object.assign({},c.i18n),e.i18n),breakpoints:void 0}),ne(c)}function U(){if(!h||!Object.keys(h).length)return;const b=Object.keys(h).map(x=>Number(x)).sort((x,M)=>+M-+x);let V=Object.assign({},c);b.some(x=>{const M=window.matchMedia(`(min-width: ${x}px)`).matches;return M&&(V=Object.assign(Object.assign({},V),h[x])),M}),ne(V)}function ne(b){Object.entries(b).forEach(([V,x])=>d[V]=x)}const he=bf(()=>{U(),X()},16);function X(){if(!r.value)return;const b=r.value.getBoundingClientRect();l.value=b.width/d.itemsToShow}function se(){p.value<=0||(u.value=Math.ceil((p.value-1)/2),g.value=hf({config:d,slidesCount:p.value}),y.value=ff({config:d,slidesCount:p.value}),d.wrapAround||(m.value=ua({val:m.value,max:g.value,min:y.value})))}t.onMounted(()=>{t.nextTick(()=>X()),setTimeout(()=>X(),1e3),U(),Ae(),window.addEventListener("resize",he,{passive:!0}),o("init")}),t.onUnmounted(()=>{A&&clearTimeout(A),C&&clearInterval(C),window.removeEventListener("resize",he,{passive:!0})});let R=!1;const ae={x:0,y:0},ee={x:0,y:0},j=t.reactive({x:0,y:0}),te=t.ref(!1),re=t.ref(!1),We=()=>{te.value=!0},Ue=()=>{te.value=!1};function Ve(b){["INPUT","TEXTAREA","SELECT"].includes(b.target.tagName)||(R=b.type==="touchstart",R||b.preventDefault(),!(!R&&b.button!==0||B.value)&&(ae.x=R?b.touches[0].clientX:b.clientX,ae.y=R?b.touches[0].clientY:b.clientY,document.addEventListener(R?"touchmove":"mousemove",fe,!0),document.addEventListener(R?"touchend":"mouseup",$e,!0)))}const fe=yf(b=>{re.value=!0,ee.x=R?b.touches[0].clientX:b.clientX,ee.y=R?b.touches[0].clientY:b.clientY;const V=ee.x-ae.x,x=ee.y-ae.y;j.y=x,j.x=V},d.throttle);function $e(){const b=d.dir==="rtl"?-1:1,V=Math.sign(j.x)*.4,x=Math.round(j.x/l.value+V)*b;if(x&&!R){const M=be=>{be.stopPropagation(),window.removeEventListener("click",M,!0)};window.addEventListener("click",M,!0)}E(m.value-x),j.x=0,j.y=0,re.value=!1,document.removeEventListener(R?"touchmove":"mousemove",fe,!0),document.removeEventListener(R?"touchend":"mouseup",$e,!0)}function Ae(){!d.autoplay||d.autoplay<=0||(C=setInterval(()=>{d.pauseAutoplayOnHover&&te.value||T()},d.autoplay))}function O(){C&&(clearInterval(C),C=null),Ae()}const B=t.ref(!1);function E(b){const V=d.wrapAround?b:ua({val:b,max:g.value,min:y.value});m.value===V||B.value||(o("slide-start",{slidingToIndex:b,currentSlideIndex:m.value,prevSlideIndex:f.value,slidesCount:p.value}),B.value=!0,f.value=m.value,m.value=V,A=setTimeout(()=>{if(d.wrapAround){const x=ha({val:V,max:g.value,min:0});x!==m.value&&(m.value=x,o("loop",{currentSlideIndex:m.value,slidingToIndex:b}))}o("update:modelValue",m.value),o("slide-end",{currentSlideIndex:m.value,prevSlideIndex:f.value,slidesCount:p.value}),B.value=!1,O()},d.transition))}function T(){E(m.value+d.itemsToScroll)}function N(){E(m.value-d.itemsToScroll)}const $={slideTo:E,next:T,prev:N};t.provide("nav",$),t.provide("isSliding",B);const z=t.computed(()=>gf({config:d,currentSlide:m.value,slidesCount:p.value}));t.provide("slidesToScroll",z);const D=t.computed(()=>{const b=d.dir==="rtl"?-1:1,V=z.value*l.value*b;return{transform:`translateX(${j.x-V}px)`,transition:`${B.value?d.transition:0}ms`,margin:d.wrapAround?`0 -${p.value*l.value}px`:"",width:"100%"}});function W(){v(),U(),se(),X(),O()}Object.keys(li).forEach(b=>{["modelValue"].includes(b)||t.watch(()=>e[b],W)}),t.watch(()=>e.modelValue,b=>{b!==m.value&&E(Number(b))}),t.watch(p,se),o("before-init"),v();const K={config:d,slidesCount:p,slideWidth:l,next:T,prev:N,slideTo:E,currentSlide:m,maxSlide:g,minSlide:y,middleSlide:u};n({updateBreakpointsConfigs:U,updateSlidesData:se,updateSlideWidth:X,initDefaultConfigs:v,restartCarousel:W,slideTo:E,next:T,prev:N,nav:$,data:K});const ge=a.default||a.slides,ye=a.addons,je=t.reactive(K);return()=>{const b=ci(ge==null?void 0:ge(je)),V=(ye==null?void 0:ye(je))||[];b.forEach((we,_e)=>we.props.index=_e);let x=b;if(d.wrapAround){const we=b.map((Se,oe)=>t.cloneVNode(Se,{index:-b.length+oe,isClone:!0,key:`clone-before-${oe}`})),_e=b.map((Se,oe)=>t.cloneVNode(Se,{index:b.length+oe,isClone:!0,key:`clone-after-${oe}`}));x=[...we,...b,..._e]}s.value=b,p.value=Math.max(b.length,1);const M=t.h("ol",{class:"carousel__track",style:D.value,onMousedownCapture:d.mouseDrag?Ve:null,onTouchstartPassiveCapture:d.touchDrag?Ve:null},x),be=t.h("div",{class:"carousel__viewport"},M);return t.h("section",{ref:r,class:{carousel:!0,"is-sliding":B.value,"is-dragging":re.value,"is-hover":te.value,"carousel--rtl":d.dir==="rtl"},dir:d.dir,"aria-label":d.i18n.ariaGallery,tabindex:"0",onMouseenter:We,onMouseleave:Ue},[be,V,t.h(_f)])}}}),di;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(di||(di={}));var kf=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const o=t.inject("config",t.reactive(Object.assign({},Q))),n=t.inject("currentSlide",t.ref(0)),i=t.inject("slidesToScroll",t.ref(0)),r=t.inject("isSliding",t.ref(!1)),s=()=>e.index===n.value,l=()=>e.index===n.value-1,p=()=>e.index===n.value+1,d=()=>{const c=Math.floor(i.value),h=Math.ceil(i.value+o.itemsToShow-1);return e.index>=c&&e.index<=h};return()=>{var c;return t.h("li",{style:{width:`${100/o.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":d(),"carousel__slide--active":s(),"carousel__slide--prev":l(),"carousel__slide--next":p(),"carousel__slide--sliding":r.value},"aria-hidden":!d()},(c=a.default)===null||c===void 0?void 0:c.call(a))}}});const Cf=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},Bf=e=>(t.pushScopeId("data-v-dd3cbf69"),e=e(),t.popScopeId(),e),Ef={class:"gsc-carousel"},Nf={key:0},xf=Bf(()=>t.createElementVNode("div",null,"no hay",-1)),Tf=[xf],Of={class:"gsc-carousel__2d__slides"},Vf={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$f=["fill"],Af={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},zf=["fill"],Rf={class:"gsc-carousel__2d__navigation"},If={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ff=["stroke"],Pf={key:1,class:"gsc-carousel__2d__navigation__pagination"},Lf=["onClick"],Df={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Mf=["stroke"],jf={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:a,emit:o}){const n=e;t.useCssVars(g=>({"0d808f0f":e.slideLeftArrowBackgroundImage,"1e0ef2e5":e.slidesArrowsLeftAndRight,"66d12b5c":e.slideRightArrowBackgroundImage,"2b22a85a":e.marginTop,"1a842b02":e.secondarySlidesOpacity}));const i=t.ref(null),r=t.ref({}),s=t.ref(0),l=t.ref(!1);t.watch(i,g=>{g&&l.value?(l.value=!1,p(n.items)):g&&g.slideTo&&g.slideTo(s.value)},{deep:!0}),t.watch(()=>n.currentItemIndex,g=>{s.value!==g&&m(g)}),t.watch(()=>n.items,g=>{i.value?p(g):l.value=!0},{immediate:!0});function p(g){if(g&&g.length&&i.value){if(n.defaultItemByProp){const y=n.items.findIndex(C=>C[n.defaultItemByProp.propName]===n.defaultItemByProp.value);y!==-1?(s.value=y,r.value=g[y]):(s.value=0,r.value=g[0])}else s.value=n.defaultItemByIndex,r.value=g[n.defaultItemByIndex];i.value.slideTo&&i.value.slideTo(s.value),o("input",{selectedItem:r.value,selectedItemIndex:s.value})}}function d(){i.value&&i.value.next()}function c(){i.value&&i.value.prev()}function h(){i.value&&i.value.updateSlideWidth()}function m(g){i.value&&i.value.slideTo(g)}function f(g){i.value.slideTo(g)}function u(g){const y=g.slidingToIndex<0?n.items.length-1:g.slidingToIndex===n.items.length?0:g.slidingToIndex;s.value=y,r.value=n.items[y],o("update:currentItemIndex",y),o("input",{selectedItem:r.value,selectedItemIndex:s.value})}return a({prev:c,next:d,updateSlideWidth:h,slideTo:m}),(g,y)=>(t.openBlock(),t.createElementBlock("div",Ef,[n.is3d?(t.openBlock(),t.createElementBlock("div",Nf,Tf)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",Of,[t.createVNode(t.unref(Sf),{ref_key:"carousel2d",ref:i,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:u},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(C,A)=>(t.openBlock(),t.createBlock(t.unref(kf),{key:A},{default:t.withCtx(()=>[t.renderSlot(g.$slots,"default",{item:C},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",onClick:y[0]||(y[0]=C=>i.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",Vf,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:e.arrowsColor},null,8,$f)]))],2)])):t.createCommentVNode("",!0),e.areSlidesArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",onClick:y[1]||(y[1]=C=>d())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",Af,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:e.arrowsColor},null,8,zf)]))],2)])):t.createCommentVNode("",!0),t.createElementVNode("div",Rf,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:y[2]||(y[2]=C=>c())},[(t.openBlock(),t.createElementBlock("svg",If,[t.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:n.arrowsColor},null,8,Ff)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",Pf,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(C,A)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${A}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${n.navigationHeight}px`,width:`${s.value===A?n.navigationActiveWidth:n.navigationActiveWidth/2}px`,borderRadius:`${n.navigationBorderRadius}px`,backgroundColor:`${s.value===A?n.navigationActiveColor:n.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:v=>f(A)},null,12,Lf))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:y[3]||(y[3]=C=>i.value.next())},[(t.openBlock(),t.createElementBlock("svg",Df,[t.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:n.arrowsColor},null,8,Mf)]))])):t.createCommentVNode("",!0)])],2))]))}},mi=Cf(jf,[["__scopeId","data-v-dd3cbf69"]]),vf={PO1:"CFI",PO2:"CFV",PO3:"SFI",PO4:"SFV",PO5:"FI",PO6:"FV"},Wf={DF:"Dieciseisavos",OF:"Octavos",CF:"Cuartos",SF:"Semifinales","3ER":"Tercer lugar",FINAL:"Final"},Uf={4:"Octavos",5:"Cuartos",6:"Semifinales",7:"Final"};/**
|
|
24
|
+
*/const Q={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},di={itemsToShow:{default:Q.itemsToShow,type:Number},itemsToScroll:{default:Q.itemsToScroll,type:Number},wrapAround:{default:Q.wrapAround,type:Boolean},throttle:{default:Q.throttle,type:Number},snapAlign:{default:Q.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Q.transition,type:Number},breakpoints:{default:Q.breakpoints,type:Object},autoplay:{default:Q.autoplay,type:Number},pauseAutoplayOnHover:{default:Q.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Q.mouseDrag,type:Boolean},touchDrag:{default:Q.touchDrag,type:Boolean},dir:{default:Q.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Q.i18n,type:Object},settings:{default(){return{}},type:Object}};function bf({config:e,slidesCount:a}){const{snapAlign:o,wrapAround:n,itemsToShow:i=1}=e;if(n)return Math.max(a-1,0);let r;switch(o){case"start":r=a-i;break;case"end":r=a-1;break;case"center":case"center-odd":r=a-Math.ceil((i-.5)/2);break;case"center-even":r=a-Math.ceil(i/2);break;default:r=0;break}return Math.max(r,0)}function wf({config:e,slidesCount:a}){const{wrapAround:o,snapAlign:n,itemsToShow:i=1}=e;let r=0;if(o||i>a)return r;switch(n){case"start":r=0;break;case"end":r=i-1;break;case"center":case"center-odd":r=Math.floor((i-1)/2);break;case"center-even":r=Math.floor((i-2)/2);break;default:r=0;break}return r}function ha({val:e,max:a,min:o}){return a<o?e:Math.min(Math.max(e,o),a)}function _f({config:e,currentSlide:a,slidesCount:o}){const{snapAlign:n,wrapAround:i,itemsToShow:r=1}=e;let s=a;switch(n){case"center":case"center-odd":s-=(r-1)/2;break;case"center-even":s-=(r-2)/2;break;case"end":s-=r-1;break}return i?s:ha({val:s,max:o-r,min:0})}function mi(e){return e?e.reduce((a,o)=>{var n;return o.type===t.Fragment?[...a,...mi(o.children)]:((n=o.type)===null||n===void 0?void 0:n.name)==="CarouselSlide"?[...a,o]:a},[]):[]}function fa({val:e,max:a,min:o=0}){return e>a?fa({val:e-(a+1),max:a,min:o}):e<o?fa({val:e+(a+1),max:a,min:o}):e}function Sf(e,a){let o;return a?function(...n){const i=this;o||(e.apply(i,n),o=!0,setTimeout(()=>o=!1,a))}:e}function kf(e,a){let o;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{e(...n),o=null},a)}}function Cf(e="",a={}){return Object.entries(a).reduce((o,[n,i])=>o.replace(`{${n}}`,String(i)),e)}var Bf=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Q))),a=t.inject("currentSlide",t.ref(0)),o=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},Cf(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:o.value}))}}),Ef=t.defineComponent({name:"Carousel",props:di,setup(e,{slots:a,emit:o,expose:n}){var i;const r=t.ref(null),s=t.ref([]),l=t.ref(0),p=t.ref(0),c=t.reactive(Object.assign({},Q));let m=Object.assign({},Q),u;const g=t.ref((i=e.modelValue)!==null&&i!==void 0?i:0),d=t.ref(0),h=t.ref(0),f=t.ref(0),y=t.ref(0);let C,A;t.provide("config",c),t.provide("slidesCount",p),t.provide("currentSlide",g),t.provide("maxSlide",f),t.provide("minSlide",y),t.provide("slideWidth",l);function v(){u=Object.assign({},e.breakpoints),m=Object.assign(Object.assign(Object.assign({},m),e),{i18n:Object.assign(Object.assign({},m.i18n),e.i18n),breakpoints:void 0}),ne(m)}function U(){if(!u||!Object.keys(u).length)return;const b=Object.keys(u).map(x=>Number(x)).sort((x,M)=>+M-+x);let V=Object.assign({},m);b.some(x=>{const M=window.matchMedia(`(min-width: ${x}px)`).matches;return M&&(V=Object.assign(Object.assign({},V),u[x])),M}),ne(V)}function ne(b){Object.entries(b).forEach(([V,x])=>c[V]=x)}const he=kf(()=>{U(),X()},16);function X(){if(!r.value)return;const b=r.value.getBoundingClientRect();l.value=b.width/c.itemsToShow}function se(){p.value<=0||(h.value=Math.ceil((p.value-1)/2),f.value=bf({config:c,slidesCount:p.value}),y.value=wf({config:c,slidesCount:p.value}),c.wrapAround||(g.value=ha({val:g.value,max:f.value,min:y.value})))}t.onMounted(()=>{t.nextTick(()=>X()),setTimeout(()=>X(),1e3),U(),Ae(),window.addEventListener("resize",he,{passive:!0}),o("init")}),t.onUnmounted(()=>{A&&clearTimeout(A),C&&clearInterval(C),window.removeEventListener("resize",he,{passive:!0})});let R=!1;const ae={x:0,y:0},ee={x:0,y:0},j=t.reactive({x:0,y:0}),te=t.ref(!1),re=t.ref(!1),Ue=()=>{te.value=!0},He=()=>{te.value=!1};function Ve(b){["INPUT","TEXTAREA","SELECT"].includes(b.target.tagName)||(R=b.type==="touchstart",R||b.preventDefault(),!(!R&&b.button!==0||B.value)&&(ae.x=R?b.touches[0].clientX:b.clientX,ae.y=R?b.touches[0].clientY:b.clientY,document.addEventListener(R?"touchmove":"mousemove",fe,!0),document.addEventListener(R?"touchend":"mouseup",$e,!0)))}const fe=Sf(b=>{re.value=!0,ee.x=R?b.touches[0].clientX:b.clientX,ee.y=R?b.touches[0].clientY:b.clientY;const V=ee.x-ae.x,x=ee.y-ae.y;j.y=x,j.x=V},c.throttle);function $e(){const b=c.dir==="rtl"?-1:1,V=Math.sign(j.x)*.4,x=Math.round(j.x/l.value+V)*b;if(x&&!R){const M=be=>{be.stopPropagation(),window.removeEventListener("click",M,!0)};window.addEventListener("click",M,!0)}E(g.value-x),j.x=0,j.y=0,re.value=!1,document.removeEventListener(R?"touchmove":"mousemove",fe,!0),document.removeEventListener(R?"touchend":"mouseup",$e,!0)}function Ae(){!c.autoplay||c.autoplay<=0||(C=setInterval(()=>{c.pauseAutoplayOnHover&&te.value||T()},c.autoplay))}function O(){C&&(clearInterval(C),C=null),Ae()}const B=t.ref(!1);function E(b){const V=c.wrapAround?b:ha({val:b,max:f.value,min:y.value});g.value===V||B.value||(o("slide-start",{slidingToIndex:b,currentSlideIndex:g.value,prevSlideIndex:d.value,slidesCount:p.value}),B.value=!0,d.value=g.value,g.value=V,A=setTimeout(()=>{if(c.wrapAround){const x=fa({val:V,max:f.value,min:0});x!==g.value&&(g.value=x,o("loop",{currentSlideIndex:g.value,slidingToIndex:b}))}o("update:modelValue",g.value),o("slide-end",{currentSlideIndex:g.value,prevSlideIndex:d.value,slidesCount:p.value}),B.value=!1,O()},c.transition))}function T(){E(g.value+c.itemsToScroll)}function N(){E(g.value-c.itemsToScroll)}const $={slideTo:E,next:T,prev:N};t.provide("nav",$),t.provide("isSliding",B);const z=t.computed(()=>_f({config:c,currentSlide:g.value,slidesCount:p.value}));t.provide("slidesToScroll",z);const D=t.computed(()=>{const b=c.dir==="rtl"?-1:1,V=z.value*l.value*b;return{transform:`translateX(${j.x-V}px)`,transition:`${B.value?c.transition:0}ms`,margin:c.wrapAround?`0 -${p.value*l.value}px`:"",width:"100%"}});function W(){v(),U(),se(),X(),O()}Object.keys(di).forEach(b=>{["modelValue"].includes(b)||t.watch(()=>e[b],W)}),t.watch(()=>e.modelValue,b=>{b!==g.value&&E(Number(b))}),t.watch(p,se),o("before-init"),v();const K={config:c,slidesCount:p,slideWidth:l,next:T,prev:N,slideTo:E,currentSlide:g,maxSlide:f,minSlide:y,middleSlide:h};n({updateBreakpointsConfigs:U,updateSlidesData:se,updateSlideWidth:X,initDefaultConfigs:v,restartCarousel:W,slideTo:E,next:T,prev:N,nav:$,data:K});const ge=a.default||a.slides,ye=a.addons,je=t.reactive(K);return()=>{const b=mi(ge==null?void 0:ge(je)),V=(ye==null?void 0:ye(je))||[];b.forEach((we,_e)=>we.props.index=_e);let x=b;if(c.wrapAround){const we=b.map((Se,oe)=>t.cloneVNode(Se,{index:-b.length+oe,isClone:!0,key:`clone-before-${oe}`})),_e=b.map((Se,oe)=>t.cloneVNode(Se,{index:b.length+oe,isClone:!0,key:`clone-after-${oe}`}));x=[...we,...b,..._e]}s.value=b,p.value=Math.max(b.length,1);const M=t.h("ol",{class:"carousel__track",style:D.value,onMousedownCapture:c.mouseDrag?Ve:null,onTouchstartPassiveCapture:c.touchDrag?Ve:null},x),be=t.h("div",{class:"carousel__viewport"},M);return t.h("section",{ref:r,class:{carousel:!0,"is-sliding":B.value,"is-dragging":re.value,"is-hover":te.value,"carousel--rtl":c.dir==="rtl"},dir:c.dir,"aria-label":c.i18n.ariaGallery,tabindex:"0",onMouseenter:Ue,onMouseleave:He},[be,V,t.h(Bf)])}}}),pi;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(pi||(pi={}));var Nf=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const o=t.inject("config",t.reactive(Object.assign({},Q))),n=t.inject("currentSlide",t.ref(0)),i=t.inject("slidesToScroll",t.ref(0)),r=t.inject("isSliding",t.ref(!1)),s=()=>e.index===n.value,l=()=>e.index===n.value-1,p=()=>e.index===n.value+1,c=()=>{const m=Math.floor(i.value),u=Math.ceil(i.value+o.itemsToShow-1);return e.index>=m&&e.index<=u};return()=>{var m;return t.h("li",{style:{width:`${100/o.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":c(),"carousel__slide--active":s(),"carousel__slide--prev":l(),"carousel__slide--next":p(),"carousel__slide--sliding":r.value},"aria-hidden":!c()},(m=a.default)===null||m===void 0?void 0:m.call(a))}}});const xf=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},Tf=e=>(t.pushScopeId("data-v-dd3cbf69"),e=e(),t.popScopeId(),e),Of={class:"gsc-carousel"},Vf={key:0},$f=Tf(()=>t.createElementVNode("div",null,"no hay",-1)),Af=[$f],zf={class:"gsc-carousel__2d__slides"},Rf={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},If=["fill"],Ff={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Pf=["fill"],Lf={class:"gsc-carousel__2d__navigation"},Df={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Mf=["stroke"],jf={key:1,class:"gsc-carousel__2d__navigation__pagination"},vf=["onClick"],Wf={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Uf=["stroke"],Hf={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:a,emit:o}){const n=e;t.useCssVars(f=>({"0d808f0f":e.slideLeftArrowBackgroundImage,"1e0ef2e5":e.slidesArrowsLeftAndRight,"66d12b5c":e.slideRightArrowBackgroundImage,"2b22a85a":e.marginTop,"1a842b02":e.secondarySlidesOpacity}));const i=t.ref(null),r=t.ref({}),s=t.ref(0),l=t.ref(!1);t.watch(i,f=>{f&&l.value?(l.value=!1,p(n.items)):f&&f.slideTo&&f.slideTo(s.value)},{deep:!0}),t.watch(()=>n.currentItemIndex,f=>{s.value!==f&&g(f)}),t.watch(()=>n.items,f=>{i.value?p(f):l.value=!0},{immediate:!0});function p(f){if(f&&f.length&&i.value){if(n.defaultItemByProp){const y=n.items.findIndex(C=>C[n.defaultItemByProp.propName]===n.defaultItemByProp.value);y!==-1?(s.value=y,r.value=f[y]):(s.value=0,r.value=f[0])}else s.value=n.defaultItemByIndex,r.value=f[n.defaultItemByIndex];i.value.slideTo&&i.value.slideTo(s.value),o("input",{selectedItem:r.value,selectedItemIndex:s.value})}}function c(){i.value&&i.value.next()}function m(){i.value&&i.value.prev()}function u(){i.value&&i.value.updateSlideWidth()}function g(f){i.value&&i.value.slideTo(f)}function d(f){i.value.slideTo(f)}function h(f){const y=f.slidingToIndex<0?n.items.length-1:f.slidingToIndex===n.items.length?0:f.slidingToIndex;s.value=y,r.value=n.items[y],o("update:currentItemIndex",y),o("input",{selectedItem:r.value,selectedItemIndex:s.value})}return a({prev:m,next:c,updateSlideWidth:u,slideTo:g}),(f,y)=>(t.openBlock(),t.createElementBlock("div",Of,[n.is3d?(t.openBlock(),t.createElementBlock("div",Vf,Af)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",zf,[t.createVNode(t.unref(Ef),{ref_key:"carousel2d",ref:i,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:h},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(C,A)=>(t.openBlock(),t.createBlock(t.unref(Nf),{key:A},{default:t.withCtx(()=>[t.renderSlot(f.$slots,"default",{item:C},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",onClick:y[0]||(y[0]=C=>i.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",Rf,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:e.arrowsColor},null,8,If)]))],2)])):t.createCommentVNode("",!0),e.areSlidesArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",onClick:y[1]||(y[1]=C=>c())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",Ff,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:e.arrowsColor},null,8,Pf)]))],2)])):t.createCommentVNode("",!0),t.createElementVNode("div",Lf,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:y[2]||(y[2]=C=>m())},[(t.openBlock(),t.createElementBlock("svg",Df,[t.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:n.arrowsColor},null,8,Mf)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",jf,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(C,A)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${A}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${n.navigationHeight}px`,width:`${s.value===A?n.navigationActiveWidth:n.navigationActiveWidth/2}px`,borderRadius:`${n.navigationBorderRadius}px`,backgroundColor:`${s.value===A?n.navigationActiveColor:n.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:v=>d(A)},null,12,vf))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:y[3]||(y[3]=C=>i.value.next())},[(t.openBlock(),t.createElementBlock("svg",Wf,[t.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:n.arrowsColor},null,8,Uf)]))])):t.createCommentVNode("",!0)])],2))]))}},ui=xf(Hf,[["__scopeId","data-v-dd3cbf69"]]),Gf={PO1:"CFI",PO2:"CFV",PO3:"SFI",PO4:"SFV",PO5:"FI",PO6:"FV"},Jf={DF:"Dieciseisavos",OF:"Octavos",CF:"Cuartos",SF:"Semifinales","3ER":"Tercer lugar",FINAL:"Final"},qf={4:"Octavos",5:"Cuartos",6:"Semifinales",7:"Final"};/**
|
|
25
25
|
* Vue 3 Carousel 0.3.1
|
|
26
26
|
* (c) 2023
|
|
27
27
|
* @license MIT
|
|
28
|
-
*/const Z={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},pi={itemsToShow:{default:Z.itemsToShow,type:Number},itemsToScroll:{default:Z.itemsToScroll,type:Number},wrapAround:{default:Z.wrapAround,type:Boolean},throttle:{default:Z.throttle,type:Number},snapAlign:{default:Z.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Z.transition,type:Number},breakpoints:{default:Z.breakpoints,type:Object},autoplay:{default:Z.autoplay,type:Number},pauseAutoplayOnHover:{default:Z.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Z.mouseDrag,type:Boolean},touchDrag:{default:Z.touchDrag,type:Boolean},dir:{default:Z.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Z.i18n,type:Object},settings:{default(){return{}},type:Object}};function Hf({config:e,slidesCount:a}){const{snapAlign:o,wrapAround:n,itemsToShow:i=1}=e;if(n)return Math.max(a-1,0);let r;switch(o){case"start":r=a-i;break;case"end":r=a-1;break;case"center":case"center-odd":r=a-Math.ceil((i-.5)/2);break;case"center-even":r=a-Math.ceil(i/2);break;default:r=0;break}return Math.max(r,0)}function Gf({config:e,slidesCount:a}){const{wrapAround:o,snapAlign:n,itemsToShow:i=1}=e;let r=0;if(o||i>a)return r;switch(n){case"start":r=0;break;case"end":r=i-1;break;case"center":case"center-odd":r=Math.floor((i-1)/2);break;case"center-even":r=Math.floor((i-2)/2);break;default:r=0;break}return r}function fa({val:e,max:a,min:o}){return a<o?e:Math.min(Math.max(e,o),a)}function Jf({config:e,currentSlide:a,slidesCount:o}){const{snapAlign:n,wrapAround:i,itemsToShow:r=1}=e;let s=a;switch(n){case"center":case"center-odd":s-=(r-1)/2;break;case"center-even":s-=(r-2)/2;break;case"end":s-=r-1;break}return i?s:fa({val:s,max:o-r,min:0})}function ui(e){return e?e.reduce((a,o)=>{var n;return o.type===t.Fragment?[...a,...ui(o.children)]:((n=o.type)===null||n===void 0?void 0:n.name)==="CarouselSlide"?[...a,o]:a},[]):[]}function ga({val:e,max:a,min:o=0}){return e>a?ga({val:e-(a+1),max:a,min:o}):e<o?ga({val:e+(a+1),max:a,min:o}):e}function qf(e,a){let o;return a?function(...n){const i=this;o||(e.apply(i,n),o=!0,setTimeout(()=>o=!1,a))}:e}function Zf(e,a){let o;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{e(...n),o=null},a)}}function Xf(e="",a={}){return Object.entries(a).reduce((o,[n,i])=>o.replace(`{${n}}`,String(i)),e)}var Kf=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Z))),a=t.inject("currentSlide",t.ref(0)),o=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},Xf(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:o.value}))}}),Yf=t.defineComponent({name:"Carousel",props:pi,setup(e,{slots:a,emit:o,expose:n}){var i;const r=t.ref(null),s=t.ref([]),l=t.ref(0),p=t.ref(0),d=t.reactive(Object.assign({},Z));let c=Object.assign({},Z),h;const m=t.ref((i=e.modelValue)!==null&&i!==void 0?i:0),f=t.ref(0),u=t.ref(0),g=t.ref(0),y=t.ref(0);let C,A;t.provide("config",d),t.provide("slidesCount",p),t.provide("currentSlide",m),t.provide("maxSlide",g),t.provide("minSlide",y),t.provide("slideWidth",l);function v(){h=Object.assign({},e.breakpoints),c=Object.assign(Object.assign(Object.assign({},c),e),{i18n:Object.assign(Object.assign({},c.i18n),e.i18n),breakpoints:void 0}),ne(c)}function U(){if(!h||!Object.keys(h).length)return;const b=Object.keys(h).map(x=>Number(x)).sort((x,M)=>+M-+x);let V=Object.assign({},c);b.some(x=>{const M=window.matchMedia(`(min-width: ${x}px)`).matches;return M&&(V=Object.assign(Object.assign({},V),h[x])),M}),ne(V)}function ne(b){Object.entries(b).forEach(([V,x])=>d[V]=x)}const he=Zf(()=>{U(),X()},16);function X(){if(!r.value)return;const b=r.value.getBoundingClientRect();l.value=b.width/d.itemsToShow}function se(){p.value<=0||(u.value=Math.ceil((p.value-1)/2),g.value=Hf({config:d,slidesCount:p.value}),y.value=Gf({config:d,slidesCount:p.value}),d.wrapAround||(m.value=fa({val:m.value,max:g.value,min:y.value})))}t.onMounted(()=>{t.nextTick(()=>X()),setTimeout(()=>X(),1e3),U(),Ae(),window.addEventListener("resize",he,{passive:!0}),o("init")}),t.onUnmounted(()=>{A&&clearTimeout(A),C&&clearInterval(C),window.removeEventListener("resize",he,{passive:!0})});let R=!1;const ae={x:0,y:0},ee={x:0,y:0},j=t.reactive({x:0,y:0}),te=t.ref(!1),re=t.ref(!1),We=()=>{te.value=!0},Ue=()=>{te.value=!1};function Ve(b){["INPUT","TEXTAREA","SELECT"].includes(b.target.tagName)||(R=b.type==="touchstart",R||b.preventDefault(),!(!R&&b.button!==0||B.value)&&(ae.x=R?b.touches[0].clientX:b.clientX,ae.y=R?b.touches[0].clientY:b.clientY,document.addEventListener(R?"touchmove":"mousemove",fe,!0),document.addEventListener(R?"touchend":"mouseup",$e,!0)))}const fe=qf(b=>{re.value=!0,ee.x=R?b.touches[0].clientX:b.clientX,ee.y=R?b.touches[0].clientY:b.clientY;const V=ee.x-ae.x,x=ee.y-ae.y;j.y=x,j.x=V},d.throttle);function $e(){const b=d.dir==="rtl"?-1:1,V=Math.sign(j.x)*.4,x=Math.round(j.x/l.value+V)*b;if(x&&!R){const M=be=>{be.stopPropagation(),window.removeEventListener("click",M,!0)};window.addEventListener("click",M,!0)}E(m.value-x),j.x=0,j.y=0,re.value=!1,document.removeEventListener(R?"touchmove":"mousemove",fe,!0),document.removeEventListener(R?"touchend":"mouseup",$e,!0)}function Ae(){!d.autoplay||d.autoplay<=0||(C=setInterval(()=>{d.pauseAutoplayOnHover&&te.value||T()},d.autoplay))}function O(){C&&(clearInterval(C),C=null),Ae()}const B=t.ref(!1);function E(b){const V=d.wrapAround?b:fa({val:b,max:g.value,min:y.value});m.value===V||B.value||(o("slide-start",{slidingToIndex:b,currentSlideIndex:m.value,prevSlideIndex:f.value,slidesCount:p.value}),B.value=!0,f.value=m.value,m.value=V,A=setTimeout(()=>{if(d.wrapAround){const x=ga({val:V,max:g.value,min:0});x!==m.value&&(m.value=x,o("loop",{currentSlideIndex:m.value,slidingToIndex:b}))}o("update:modelValue",m.value),o("slide-end",{currentSlideIndex:m.value,prevSlideIndex:f.value,slidesCount:p.value}),B.value=!1,O()},d.transition))}function T(){E(m.value+d.itemsToScroll)}function N(){E(m.value-d.itemsToScroll)}const $={slideTo:E,next:T,prev:N};t.provide("nav",$),t.provide("isSliding",B);const z=t.computed(()=>Jf({config:d,currentSlide:m.value,slidesCount:p.value}));t.provide("slidesToScroll",z);const D=t.computed(()=>{const b=d.dir==="rtl"?-1:1,V=z.value*l.value*b;return{transform:`translateX(${j.x-V}px)`,transition:`${B.value?d.transition:0}ms`,margin:d.wrapAround?`0 -${p.value*l.value}px`:"",width:"100%"}});function W(){v(),U(),se(),X(),O()}Object.keys(pi).forEach(b=>{["modelValue"].includes(b)||t.watch(()=>e[b],W)}),t.watch(()=>e.modelValue,b=>{b!==m.value&&E(Number(b))}),t.watch(p,se),o("before-init"),v();const K={config:d,slidesCount:p,slideWidth:l,next:T,prev:N,slideTo:E,currentSlide:m,maxSlide:g,minSlide:y,middleSlide:u};n({updateBreakpointsConfigs:U,updateSlidesData:se,updateSlideWidth:X,initDefaultConfigs:v,restartCarousel:W,slideTo:E,next:T,prev:N,nav:$,data:K});const ge=a.default||a.slides,ye=a.addons,je=t.reactive(K);return()=>{const b=ui(ge==null?void 0:ge(je)),V=(ye==null?void 0:ye(je))||[];b.forEach((we,_e)=>we.props.index=_e);let x=b;if(d.wrapAround){const we=b.map((Se,oe)=>t.cloneVNode(Se,{index:-b.length+oe,isClone:!0,key:`clone-before-${oe}`})),_e=b.map((Se,oe)=>t.cloneVNode(Se,{index:b.length+oe,isClone:!0,key:`clone-after-${oe}`}));x=[...we,...b,..._e]}s.value=b,p.value=Math.max(b.length,1);const M=t.h("ol",{class:"carousel__track",style:D.value,onMousedownCapture:d.mouseDrag?Ve:null,onTouchstartPassiveCapture:d.touchDrag?Ve:null},x),be=t.h("div",{class:"carousel__viewport"},M);return t.h("section",{ref:r,class:{carousel:!0,"is-sliding":B.value,"is-dragging":re.value,"is-hover":te.value,"carousel--rtl":d.dir==="rtl"},dir:d.dir,"aria-label":d.i18n.ariaGallery,tabindex:"0",onMouseenter:We,onMouseleave:Ue},[be,V,t.h(Kf)])}}}),ya;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(ya||(ya={}));const Qf={arrowUp:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z",arrowDown:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",arrowRight:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",arrowLeft:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"};function eg(e){return e in ya}const ba=e=>{const a=t.inject("config",t.reactive(Object.assign({},Z))),o=String(e.name),n=`icon${o.charAt(0).toUpperCase()+o.slice(1)}`;if(!o||typeof o!="string"||!eg(o))return;const i=Qf[o],r=t.h("path",{d:i}),s=a.i18n[n]||e.title||o,l=t.h("title",s);return t.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":s},[l,r])};ba.props={name:String,title:String};const tg=(e,{slots:a,attrs:o})=>{const{next:n,prev:i}=a||{},r=t.inject("config",t.reactive(Object.assign({},Z))),s=t.inject("maxSlide",t.ref(1)),l=t.inject("minSlide",t.ref(1)),p=t.inject("currentSlide",t.ref(1)),d=t.inject("nav",{}),{dir:c,wrapAround:h,i18n:m}=r,f=c==="rtl",u=t.h("button",{type:"button",class:["carousel__prev",!h&&p.value<=l.value&&"carousel__prev--disabled",o==null?void 0:o.class],"aria-label":m.ariaPreviousSlide,onClick:d.prev},(i==null?void 0:i())||t.h(ba,{name:f?"arrowRight":"arrowLeft"})),g=t.h("button",{type:"button",class:["carousel__next",!h&&p.value>=s.value&&"carousel__next--disabled",o==null?void 0:o.class],"aria-label":m.ariaNextSlide,onClick:d.next},(n==null?void 0:n())||t.h(ba,{name:f?"arrowLeft":"arrowRight"}));return[u,g]};var og=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const o=t.inject("config",t.reactive(Object.assign({},Z))),n=t.inject("currentSlide",t.ref(0)),i=t.inject("slidesToScroll",t.ref(0)),r=t.inject("isSliding",t.ref(!1)),s=()=>e.index===n.value,l=()=>e.index===n.value-1,p=()=>e.index===n.value+1,d=()=>{const c=Math.floor(i.value),h=Math.ceil(i.value+o.itemsToShow-1);return e.index>=c&&e.index<=h};return()=>{var c;return t.h("li",{style:{width:`${100/o.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":d(),"carousel__slide--active":s(),"carousel__slide--prev":l(),"carousel__slide--next":p(),"carousel__slide--sliding":r.value},"aria-hidden":!d()},(c=a.default)===null||c===void 0?void 0:c.call(a))}}});const pe=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},ag={__name:"MatchDay",props:{isLandingMode:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#183143"},numberColor:{type:String,default:"white"},numberFontFamily:{type:String,default:"sans-serif"},numberFontSize:{type:String,default:"14px"},textColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},textFontFamily:{type:String,default:"'Poppins-Regular', sans-serif"},textFontSize:{type:String,default:"8px"},bottomLineColor:{type:String,default:"#cbee6b"},selectedMatchDayBackgroundColor:{type:String,default:"#243b4c"},height:{type:String,default:"fit-content"},matchDay:{type:Object,default:()=>{}},matchDaySelected:{type:Object,default:()=>{}},componentWidth:{type:Number,default:0}},emits:["change-match-day"],setup(e,{emit:a}){const o=e,n=t.computed(()=>{const l={"background-color":o.backgroundColor,height:o.height};return o.matchDay.key===o.matchDaySelected.key&&(l["border-bottom"]=`solid 1px ${o.bottomLineColor}`,l["background-color"]=o.selectedMatchDayBackgroundColor),o.isLandingMode||(l["border-right"]="solid 1px rgba(255, 255, 255, 0.1)"),l}),i=t.computed(()=>({color:o.numberColor,"font-family":o.numberFontFamily,"font-size":o.numberFontSize})),r=t.computed(()=>({color:o.textColor,"font-family":o.textFontFamily,"font-size":o.textFontSize}));function s(l){a("click-match-day",l)}return(l,p)=>(t.openBlock(),t.createElementBlock("div",{class:"match-day",style:t.normalizeStyle({...n.value}),onClick:p[0]||(p[0]=d=>s(e.matchDay))},[t.createElementVNode("div",{class:"match-day__value",style:t.normalizeStyle(i.value)},t.toDisplayString(e.matchDay.valueText),5),Number.isNaN(e.matchDay.value)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:"match-day__text",style:t.normalizeStyle([e.isLandingMode?"margin-top:3px":"margin-top:4px",r.value])},t.toDisplayString(e.isLandingMode||e.componentWidth<=425?"JOR":"JORNADA"),5))],4))}},ng=pe(ag,[["__scopeId","data-v-89459353"]]),rg={__name:"MatchDayPicker",props:{matchDays:{type:Array,default:()=>[]},isLandingMode:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#183143"},numberColor:{type:String,default:"white"},numberFontFamily:{type:String,default:"sans-serif"},numberFontSize:{type:String,default:"14px"},textColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"8px"},bottomLineColor:{type:String,default:"#cbee6b"},selectedMatchDayBackgroundColor:{type:String,default:"#243b4c"},height:{type:String,default:"fit-content"},itemsToShow:{type:Number,default:9},itemsToScroll:{type:Number,default:9},defaultMatchDayKey:{type:[String,null],default:""},componentWidth:{type:Number,default:0},closestMatchDay:{type:[Number,String],default:0}},emits:["change-match-day"],setup(e,{emit:a}){const o=e;t.useCssVars(d=>({"469bccd0":r.value,"469dfb50":s.value}));const n=t.ref(null),i=t.computed(()=>({itemsToShow:o.itemsToShow,itemsToScroll:o.itemsToScroll,snapAlign:"start"})),r=t.computed(()=>n.value.data.currentSlide.value==0?"none":"inline"),s=t.computed(()=>n.value.data.currentSlide.value==n.value.data.maxSlide.value?"none":"inline"),l=t.ref({});t.watch(()=>o.closestMatchDay,d=>{if(d){const c=o.matchDays.find(h=>h.key===d);p(c||o.matchDays[0],!0)}}),t.watch(()=>o.matchDays,d=>{if(!o.closestMatchDay&&d&&d.length){const c=d.find(h=>h.key===o.defaultMatchDayKey);l.value=c||d[0],a("change-match-day",l.value)}},{immediate:!0});function p(d,c=!1){c&&n.value.slideTo(d.index),l.value=d,a("change-match-day",l.value)}return(d,c)=>(t.openBlock(),t.createElementBlock("div",{class:"match-day-picker",style:t.normalizeStyle(e.isLandingMode?"border-top-left-radius: 9px; border-top-right-radius: 9px;":"margin-bottom:12px")},[t.createVNode(t.unref(Yf),t.mergeProps(i.value,{ref_key:"matchDayPickerCarousel",ref:n}),{addons:t.withCtx(()=>[t.createVNode(t.unref(tg))]),default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.matchDays,h=>(t.openBlock(),t.createBlock(t.unref(og),{key:h.key},{default:t.withCtx(()=>[t.createVNode(ng,t.mergeProps(o,{"match-day":h,"match-day-selected":l.value,"is-landing-mode":e.isLandingMode,"component-width":e.componentWidth,onClickMatchDay:p}),null,16,["match-day","match-day-selected","is-landing-mode","component-width"])]),_:2},1024))),128))]),_:1},16)],4))}},ig=pe(rg,[["__scopeId","data-v-930cd509"]]);function Ke(e,a=80){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-"}${a}/${e}.png`}function hi(e){if(typeof e=="string"){let a=e.replace("M","J ");return a=a.replace("PO1","CFI"),a=a.replace("PO2","CFV"),a=a.replace("PO3","SFI"),a=a.replace("PO4","SFV"),a=a.replace("PO5","FI"),a=a.replace("PO6","FV"),a}}function sg(e){let a="";return e.game_status!=4&&(a+="Finalizado"),(e.penalties_score_home_team!=0||e.penalties_score_visiting_team!=0)&&(a+=" - Penales "+e.penalties_score_home_team+" - "+e.penalties_score_visiting_team),a}const lg={class:"game-info__teams"},cg={class:"game-info__teams__team__logo"},dg=["src"],mg={class:"game-info__teams__detail"},pg={key:0,class:"game-info__teams__detail__pre-game"},ug={class:"game-info__teams__team__logo away"},hg=["src"],fg={key:0},gg={key:0},yg={key:1},bg={__name:"GameInfo",props:{isLandingMode:{type:Boolean,default:!1},isAcronymVisible:{type:Boolean,default:!1},isTelevisionVisible:{type:Boolean,default:!0},game:{type:Object,required:!0},colorPrimary:{type:String,default:"white"},colorSecondary:{type:String,default:"grey"},namesFontSize:{type:String,default:"12px"},timeFontSize:{type:String,default:"12px"},timeZoneFontSize:{type:String,default:"8px"},scoreFontSize:{type:String,default:"13px"},namesFontFamily:{type:String,default:"sans-serif"},scoreFontFamily:{type:String,default:"sans-serif"},additionalInfoFontFamily:{type:String,default:"sans-serif"},additionalInfoFontSize:{type:String,default:"9px"}},setup(e){const a=e,o=t.computed(()=>{const d=new Date(a.game.dateTimeMillis),c=d.getHours(),h=d.getMinutes();return`${c<10?`0${c}`:c}:${h<10?`0${h}`:h}`}),n=t.computed(()=>{let d="120px";return(a.isLandingMode||a.isAcronymVisible)&&(d="70px"),{"min-width":d}}),i=t.computed(()=>({"font-size":a.namesFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary})),r=t.computed(()=>({"font-size":a.additionalInfoFontSize,"font-family":a.additionalInfoFontFamily,color:a.colorSecondary})),s=t.computed(()=>({"font-size":a.scoreFontSize,"font-family":a.scoreFontFamily,color:a.colorPrimary})),l=t.computed(()=>({"font-size":a.timeZoneFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary})),p=t.computed(()=>({"font-size":a.timeFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary}));return(d,c)=>(t.openBlock(),t.createElementBlock("div",{class:"game-info",style:t.normalizeStyle(e.isLandingMode?"gap:5px":"")},[t.createElementVNode("div",lg,[t.createElementVNode("div",{class:"game-info__teams__team",style:t.normalizeStyle(n.value)},[t.createElementVNode("div",{class:"game-info__teams__team__name",style:t.normalizeStyle(i.value)},t.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.home_team.acronym:e.game.home_team.colloquial_name),5),t.createElementVNode("div",cg,[t.createElementVNode("img",{src:t.unref(Ke)(e.game.home_team.team_id),alt:""},null,8,dg)])],4),t.createElementVNode("div",mg,[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock("div",pg,[t.createElementVNode("div",null,[t.createElementVNode("span",{style:t.normalizeStyle(p.value)},t.toDisplayString(o.value),5),t.createTextVNode(),t.createElementVNode("span",{style:t.normalizeStyle(l.value)},"CST",4)])])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"game-info__teams__detail__score",style:t.normalizeStyle(s.value)},[t.createElementVNode("span",null,t.toDisplayString(e.game.score[0])+" - "+t.toDisplayString(e.game.score[1]),1)],4))]),t.createElementVNode("div",{class:"game-info__teams__team away",style:t.normalizeStyle(n.value)},[t.createElementVNode("div",ug,[t.createElementVNode("img",{src:t.unref(Ke)(e.game.visiting_team.team_id),alt:""},null,8,hg)]),t.createElementVNode("div",{class:"game-info__teams__team__name",style:t.normalizeStyle(i.value)},t.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.visiting_team.acronym:e.game.visiting_team.colloquial_name),5)],4)]),t.createElementVNode("div",{class:"game-info__status",style:t.normalizeStyle([r.value,e.isLandingMode?"line-height: normal":""])},[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock("span",fg,[e.isTelevisionVisible?(t.openBlock(),t.createElementBlock("span",gg,t.toDisplayString(e.game.tv_stations.join(", ")),1)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",yg,t.toDisplayString(t.unref(sg)(e.game)),1))],4)],4))}},fi=pe(bg,[["__scopeId","data-v-afb1954b"]]),gi=e=>(t.pushScopeId("data-v-8839c56d"),e=e(),t.popScopeId(),e),wg={class:"game-status"},_g={key:0,class:"game-status__day__live"},Sg=gi(()=>t.createElementVNode("span",null,"LIVE",-1)),kg=gi(()=>t.createElementVNode("span",{class:"dot"},null,-1)),Cg=[Sg,kg],Bg={key:0,class:"game-status__round"},Eg={__name:"GameStatus",props:{isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},status:{type:Number,default:4},isLive:{type:Boolean,default:!1},dateTimeMillis:{type:Number,default:0},roundAbbreviation:{type:String,default:""},fontSize:{type:String,default:"10px"}},setup(e){const a=e,o=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],n=t.computed(()=>{let s="";if(a.dateTimeMillis){const l=new Date(a.dateTimeMillis);s=`${l.getDate()} ${o[l.getMonth()]}`}return s}),i=t.computed(()=>({"font-size":a.fontSize})),r=t.computed(()=>{let s=[];return a.isLive?s.push("live"):a.status!==1&&s.push("pre-match"),s});return(s,l)=>(t.openBlock(),t.createElementBlock("div",wg,[t.createElementVNode("div",{class:t.normalizeClass(["game-status__day",r.value]),style:t.normalizeStyle(i.value)},[e.isLive?(t.openBlock(),t.createElementBlock("div",_g,Cg)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(n.value),1)],64))],6),e.isRoundMode?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Bg,t.toDisplayString(e.roundAbbreviation),1))]))}},yi=pe(Eg,[["__scopeId","data-v-8839c56d"]]),ue={SHOW_GAME_EVENTS:"SHOW_GAME_EVENTS",PLAY_GOALS:"PLAY_GOALS",PLAY_RESUME:"PLAY_RESUME",NOTIFICATION:"NOTIFICATION",STATISTICS:"STATISTICS"},Ng=e=>(t.pushScopeId("data-v-0d97b1a8"),e=e(),t.popScopeId(),e),xg={class:"actions"},Tg={class:"actions__row"},Og=Ng(()=>t.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.87471 3.35132C9.31653 3.35132 9.67471 3.70949 9.67471 4.15132V10.4531C9.67471 10.8949 9.31653 11.2531 8.87471 11.2531C8.43288 11.2531 8.07471 10.8949 8.07471 10.4531V4.15132C8.07471 3.70949 8.43288 3.35132 8.87471 3.35132Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.67549 0.199951C5.11732 0.199951 5.47549 0.558123 5.47549 0.999951V10.4526C5.47549 10.8944 5.11732 11.2526 4.67549 11.2526C4.23366 11.2526 3.87549 10.8944 3.87549 10.4526V0.999951C3.87549 0.558123 4.23366 0.199951 4.67549 0.199951Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.0002 5.45154C1.44202 5.45154 1.8002 5.80971 1.8002 6.25154V10.4527C1.8002 10.8945 1.44202 11.2527 1.0002 11.2527C0.558368 11.2527 0.200195 10.8945 0.200195 10.4527V6.25154C0.200195 5.80971 0.558368 5.45154 1.0002 5.45154Z",fill:"#EEEC6B"})],-1)),Vg=[Og],$g={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ag=["fill"],zg={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Rg=["fill"],Ig={__name:"GameActionsLanding",props:{gameStatus:{type:Number,default:4},isLive:{type:Boolean,default:!1},hasVideo:{type:Boolean,default:!1},iconColor:{type:String,default:"#CBEE6B"},iconBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},iconBorderColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},showPlayButton:{type:Boolean,default:!1}},emits:["action"],setup(e,{emit:a}){const o=e,n=t.computed(()=>({backgroundColor:o.iconBackgroundColor,borderColor:o.iconBorderColor}));function i(r){a("action",r)}return(r,s)=>(t.openBlock(),t.createElementBlock("div",xg,[t.createElementVNode("div",Tg,[t.createElementVNode("div",{class:"actions__button rounded",style:t.normalizeStyle(n.value),onClick:s[0]||(s[0]=l=>i(t.unref(ue).STATISTICS))},Vg,4),e.showPlayButton&&e.hasVideo?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button rounded",style:t.normalizeStyle(n.value),onClick:s[1]||(s[1]=l=>i(t.unref(ue).PLAY_RESUME))},[(t.openBlock(),t.createElementBlock("svg",$g,[t.createElementVNode("path",{d:"M0.442694 7.9474C0.385489 7.90953 0.337676 7.85295 0.304408 7.78375C0.27114 7.71456 0.25368 7.63538 0.253908 7.55475V0.444134C0.253987 0.363779 0.271562 0.284951 0.304765 0.216032C0.337968 0.147113 0.385557 0.090677 0.442475 0.0527243C0.499393 0.0147716 0.563511 -0.00327964 0.628014 0.000489552C0.692517 0.00425874 0.754994 0.0297075 0.808803 0.0741304L5.09491 3.62986C5.14387 3.67036 5.18401 3.7253 5.21178 3.78978C5.23955 3.85426 5.25409 3.92628 5.25409 3.99944C5.25409 4.0726 5.23955 4.14462 5.21178 4.2091C5.18401 4.27358 5.14387 4.32852 5.09491 4.36902L0.808803 7.92559C0.755077 7.97011 0.692648 7.99565 0.628173 7.99949C0.563698 8.00333 0.499593 7.98533 0.442694 7.9474Z",fill:o.iconColor},null,8,Ag)]))],4)):t.createCommentVNode("",!0),e.gameStatus===4444&&!e.isLive?(t.openBlock(),t.createElementBlock("div",{key:1,class:"actions__button",onClick:s[2]||(s[2]=l=>i(t.unref(ue).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",zg,[t.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:o.iconColor},null,8,Rg)]))])):t.createCommentVNode("",!0)])]))}},Fg=pe(Ig,[["__scopeId","data-v-0d97b1a8"]]),wa=e=>(t.pushScopeId("data-v-af6919bd"),e=e(),t.popScopeId(),e),Pg={class:"actions"},Lg={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Dg=["fill"],Mg={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},jg=["fill"],vg=wa(()=>t.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.87471 3.35132C9.31653 3.35132 9.67471 3.70949 9.67471 4.15132V10.4531C9.67471 10.8949 9.31653 11.2531 8.87471 11.2531C8.43288 11.2531 8.07471 10.8949 8.07471 10.4531V4.15132C8.07471 3.70949 8.43288 3.35132 8.87471 3.35132Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.67549 0.199951C5.11732 0.199951 5.47549 0.558123 5.47549 0.999951V10.4526C5.47549 10.8944 5.11732 11.2526 4.67549 11.2526C4.23366 11.2526 3.87549 10.8944 3.87549 10.4526V0.999951C3.87549 0.558123 4.23366 0.199951 4.67549 0.199951Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.0002 5.45154C1.44202 5.45154 1.8002 5.80971 1.8002 6.25154V10.4527C1.8002 10.8945 1.44202 11.2527 1.0002 11.2527C0.558368 11.2527 0.200195 10.8945 0.200195 10.4527V6.25154C0.200195 5.80971 0.558368 5.45154 1.0002 5.45154Z",fill:"#EEEC6B"})],-1)),Wg=[vg],Ug={key:0,class:"actions__videos"},Hg={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Gg=["fill"],Jg={key:1,class:"actions__videos__thumbnails"},qg=wa(()=>t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__goals"},null,-1)),Zg=wa(()=>t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__summary"},null,-1)),Xg={height:24,width:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Kg=["stroke"],Yg={__name:"GameActionsFull",props:{gameStatus:{type:Number,default:4},isLive:{type:Boolean,default:!1},hasVideo:{type:Boolean,default:!1},hasActions:{type:Boolean,default:!0},areEventsVisible:{type:Boolean,default:!1},iconColor:{type:String,default:"#CBEE6B"},iconBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},iconBorderColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},showPlayButton:{type:Boolean,default:!1},arrowColor:{type:String,default:"white"},thumbnailFontFamily:{type:String,default:"sans-serif"},thumbnailFontSize:{type:String,default:"8px"},thumbnailColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:a}){const o=e,n=t.computed(()=>({backgroundColor:o.iconBackgroundColor,borderColor:o.iconBorderColor})),i=t.computed(()=>{const p=[];return o.componentWidth<540&&p.push("mobile"),p}),r=t.computed(()=>o.componentWidth>730),s=t.computed(()=>({color:o.thumbnailColor,fontFamily:o.thumbnailFontFamily,fontSize:o.thumbnailFontSize}));function l(p){a("action",p)}return(p,d)=>(t.openBlock(),t.createElementBlock("div",Pg,[t.createElementVNode("div",{class:t.normalizeClass(["actions__buttons",i.value])},[e.gameStatus===4444&&!e.isLive&&!r.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button",onClick:d[0]||(d[0]=c=>l(t.unref(ue).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",Lg,[t.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:o.iconColor},null,8,Dg)]))])):t.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo&&!r.value?(t.openBlock(),t.createElementBlock("div",{key:1,class:"actions__button rounded",style:t.normalizeStyle(n.value),onClick:d[1]||(d[1]=c=>l(t.unref(ue).PLAY_RESUME))},[(t.openBlock(),t.createElementBlock("svg",Mg,[t.createElementVNode("path",{d:"M0.442694 7.9474C0.385489 7.90953 0.337676 7.85295 0.304408 7.78375C0.27114 7.71456 0.25368 7.63538 0.253908 7.55475V0.444134C0.253987 0.363779 0.271562 0.284951 0.304765 0.216032C0.337968 0.147113 0.385557 0.090677 0.442475 0.0527243C0.499393 0.0147716 0.563511 -0.00327964 0.628014 0.000489552C0.692517 0.00425874 0.754994 0.0297075 0.808803 0.0741304L5.09491 3.62986C5.14387 3.67036 5.18401 3.7253 5.21178 3.78978C5.23955 3.85426 5.25409 3.92628 5.25409 3.99944C5.25409 4.0726 5.23955 4.14462 5.21178 4.2091C5.18401 4.27358 5.14387 4.32852 5.09491 4.36902L0.808803 7.92559C0.755077 7.97011 0.692648 7.99565 0.628173 7.99949C0.563698 8.00333 0.499593 7.98533 0.442694 7.9474Z",fill:o.iconColor},null,8,jg)]))],4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"actions__button rounded",style:t.normalizeStyle(n.value),onClick:d[2]||(d[2]=c=>l(t.unref(ue).STATISTICS))},Wg,4)],2),r.value?(t.openBlock(),t.createElementBlock("div",Ug,[e.gameStatus===4444&&!e.isLive?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button",onClick:d[3]||(d[3]=c=>l(t.unref(ue).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",Hg,[t.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:o.iconColor},null,8,Gg)]))])):t.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo?(t.openBlock(),t.createElementBlock("div",Jg,[t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:d[4]||(d[4]=c=>l(t.unref(ue).PLAY_GOALS))},[qg,t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:t.normalizeStyle(s.value)}," Goles ",4)]),t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:d[5]||(d[5]=c=>l(t.unref(ue).PLAY_RESUME))},[Zg,t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:t.normalizeStyle(s.value)}," Resumen ",4)])])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),(e.gameStatus!==4||e.isLive)&&e.hasActions?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["actions__button expand",{"rotated-180":e.areEventsVisible,mobile:e.componentWidth<540}]),onClick:d[6]||(d[6]=c=>l(t.unref(ue).SHOW_GAME_EVENTS))},[(t.openBlock(),t.createElementBlock("svg",Xg,[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,Kg)]))],2)):(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(["actions__button expand",{"rotated-180":!1,mobile:e.componentWidth<540}])},null,2))]))}},Qg=pe(Yg,[["__scopeId","data-v-af6919bd"]]),Jt=e=>(t.pushScopeId("data-v-43a88f53"),e=e(),t.popScopeId(),e),e0={class:"row-landing__game-status"},t0={class:"row-landing__game-actions"},o0={class:"row-full__game-status"},a0={class:"row-full__game-info"},n0={key:0},r0={class:"row-full__game-actions"},i0={class:"game-events-container"},s0=Jt(()=>t.createElementVNode("div",{class:"separator"},null,-1)),l0=Jt(()=>t.createElementVNode("div",null,null,-1)),c0={class:"game-events__data"},d0={class:"game-events__data__team"},m0=["src"],p0={class:"game-events__data__team__event__text"},u0={class:"game-events__data__team away"},h0={class:"game-events__data__team__event__text"},f0=["src"],g0=Jt(()=>t.createElementVNode("div",null,null,-1)),y0=Jt(()=>t.createElementVNode("div",null,null,-1)),b0={__name:"CalendarRow",props:{isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},game:{type:Object,required:!0},height:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#172531"},showPlayButton:{type:Boolean,default:!1},componentWidth:{type:Number,default:400,validator(e){return e>0}},televisionFontSize:{type:String,default:"12px"},televisionFontFamily:{type:String,default:"sans-serif"},televisionColor:{type:String,default:"rgba(255, 255, 255, 0.5)"}},emits:["action"],setup(e,{emit:a}){const o=e,n={GOAL:{}.GAME_EVENTS_ICONS_GOAL||"/icn-gol.svg",RED_CARD:{}.GAME_EVENTS_ICONS_RED_CARD||"/icn-expulsion.svg",YELLOW_CARD:{}.GAME_EVENTS_ICONS_YELLOW_CARD||"/icn-amarilla.svg"},i=t.ref(!1),r=t.ref(!1),s=t.computed(()=>{const g={homeTeam:[],awayTeam:[]};return o.game&&o.game.game_status!==4&&!o.game.is_live&&o.game.minutes&&(g.homeTeam.push(...f(o.game.minutes.home_goals_minutes,n.GOAL)),g.homeTeam.push(...f(o.game.minutes.home_red_cards_minutes,n.RED_CARD)),g.homeTeam.push(...f(o.game.minutes.home_yellow_cards_minutes,n.YELLOW_CARD)),g.awayTeam.push(...f(o.game.minutes.visiting_goals_minutes,n.GOAL)),g.awayTeam.push(...f(o.game.minutes.away_red_cards_minutes,n.RED_CARD)),g.awayTeam.push(...f(o.game.minutes.away_yellow_cards_minutes,n.YELLOW_CARD))),g}),l=t.computed(()=>{const g=s.value.homeTeam.length,y=s.value.awayTeam.length;return g+y>0}),p=t.computed(()=>({"background-color":o.backgroundColor})),d=t.computed(()=>({height:o.height})),c=t.computed(()=>{const g={game:[],events:[]};return o.componentWidth<500?(g.events.push("break-point-3"),g.game.push("break-point-2")):o.componentWidth<730?(g.game.push("break-point-2"),g.events.push("break-point-2")):o.componentWidth<910&&(g.game.push("break-point-1"),g.events.push("break-point-1")),g}),h=t.computed(()=>({isLandingMode:o.isLandingMode,game:o.game,colorPrimary:"#fff",colorSecondary:"#fff",namesFontSize:"12px",timeFontSize:"12px",timeZoneFontSize:"8px",scoreFontSize:"13px",namesFontFamily:"sans-serif",scoreFontFamily:"sans-serif",additionalInfoFontFamily:"sans-serif",additionalInfoFontSize:"9px"})),m=t.computed(()=>({"font-size":o.televisionFontSize,"font-family":o.televisionFontFamily,color:o.televisionColor}));t.watch(()=>o.componentWidth,g=>{r.value=g<910});function f(g,y){return g.map(C=>({iconUrl:y,text:C}))}function u(g){g===ue.SHOW_GAME_EVENTS?i.value=!i.value:a("action",{action:g,game:o.game})}return(g,y)=>e.isLandingMode?(t.openBlock(),t.createElementBlock("div",{key:0,class:"row-landing",style:t.normalizeStyle(p.value)},[t.createVNode(fi,{game:e.game,"is-landing-mode":e.isLandingMode},null,8,["game","is-landing-mode"]),t.createElementVNode("div",e0,[t.createVNode(yi,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":t.unref(hi)(e.game.matchday_abbreviation),"is-landing-mode":e.isLandingMode,"is-round-mode":e.isRoundMode,"font-size":"10px"},null,8,["status","is-live","date-time-millis","round-abbreviation","is-landing-mode","is-round-mode"])]),t.createElementVNode("div",t0,[t.createVNode(Fg,{"is-live":!!e.game.is_live,"has-video":!!e.game.has_video,"game-status":e.game.game_status,"show-play-button":!0,onAction:u},null,8,["is-live","has-video","game-status"])])],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"row-full-container",style:t.normalizeStyle(p.value)},[t.createElementVNode("div",{class:t.normalizeClass(["row-full",c.value.game]),style:t.normalizeStyle(d.value)},[t.createElementVNode("div",o0,[t.createVNode(yi,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":t.unref(hi)(e.game.matchday_abbreviation),"is-landing-mode":e.isLandingMode,"is-round-mode":e.isRoundMode,"font-size":"10px"},null,8,["status","is-live","date-time-millis","round-abbreviation","is-landing-mode","is-round-mode"])]),t.createElementVNode("div",a0,[t.createVNode(fi,t.mergeProps(h.value,{"is-television-visible":r.value,game:e.game,"is-landing-mode":e.isLandingMode,"is-acronym-visible":e.componentWidth<540}),null,16,["is-television-visible","game","is-landing-mode","is-acronym-visible"])]),e.componentWidth>=910?(t.openBlock(),t.createElementBlock("div",{key:0,class:"row-full__television",style:t.normalizeStyle(m.value)},[!r.value&&(e.game.game_status===4||e.game.is_live)?(t.openBlock(),t.createElementBlock("span",n0,t.toDisplayString(e.game.tv_stations.join(", ")),1)):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",r0,[t.createVNode(Qg,{"is-live":!!e.game.is_live,"has-video":!!e.game.has_video,"has-actions":l.value,"game-status":e.game.game_status,"show-play-button":!0,"are-events-visible":i.value,"component-width":e.componentWidth,onAction:u},null,8,["is-live","has-video","has-actions","game-status","are-events-visible","component-width"])])],6),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",i0,[s0,t.createElementVNode("div",{class:t.normalizeClass(["game-events",c.value.events])},[l0,t.createElementVNode("div",c0,[t.createElementVNode("div",d0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value.homeTeam,(C,A)=>(t.openBlock(),t.createElementBlock("div",{key:`h${A}`,class:"game-events__data__team__event"},[t.createElementVNode("img",{src:C.iconUrl},null,8,m0),t.createElementVNode("div",p0,t.toDisplayString(C.text),1)]))),128))]),t.createElementVNode("div",u0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value.awayTeam,(C,A)=>(t.openBlock(),t.createElementBlock("div",{key:`a${A}`,class:"game-events__data__team__event"},[t.createElementVNode("div",h0,t.toDisplayString(C.text),1),t.createElementVNode("img",{src:C.iconUrl},null,8,f0)]))),128))])]),g0,y0],2)],512),[[t.vShow,i.value]])]),_:1})],4))}},bi=pe(b0,[["__scopeId","data-v-43a88f53"]]),w0={class:"calendar-table"},_0={__name:"CalendarTable",props:{isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},gamesPerPage:{type:Array,default:()=>[]},rowHeight:{type:String,default:"fit-content"},oddRowColor:{type:String,default:"#172531"},evenRowColor:{type:String,default:"#0D1D29"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:a}){const o=e;function n(r){return r%2===0?o.evenRowColor:o.oddRowColor}function i(r){a("action",r)}return(r,s)=>(t.openBlock(),t.createElementBlock("div",w0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gamesPerPage,(l,p)=>(t.openBlock(),t.createBlock(bi,{key:l.game_id,game:l,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":n(p),"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:i},null,8,["game","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))}},S0=pe(_0,[["__scopeId","data-v-47b333f0"]]),k0={class:"calendar-by-team"},C0={class:"playing-as-picker"},B0={class:"calendar-by-team__page"},E0={__name:"CalendarTableByTeam",props:{teamId:{type:Number,default:0},isPaginationVisible:{type:Boolean,default:!0},gamesPages:{type:Map,default:()=>new Map},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},rowHeight:{type:String,default:"fit-content"},nameRowColor:{type:String,default:"#172531"},gameRowColor:{type:String,default:"#0D1D29"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:a}){const o=e,n=t.ref(0),i=t.computed(()=>{let p=[];if(o.gamesPages.size>0){const d=Array.from(o.gamesPages.entries()).reduce((c,[h,m])=>{const f=Number(h),u=Number.isNaN(f)?h:`Jornada ${f<10?"0":""}${f}`,g=m.reduce((y,C)=>(y.push(...C),y),[]).filter(y=>n.value===0||n.value===1&&y.visiting_team.team_id===o.teamId?!0:n.value===2&&y.home_team.team_id===o.teamId);return g.length>0&&c.push({roundName:u,games:g}),c},[]);p.push(d)}return p});function r(p){a("action",p)}function s(p){document.querySelector("#opc0").classList.remove("selected"),document.querySelector("#opc1").classList.remove("selected"),document.querySelector("#opc2").classList.remove("selected"),n.value=p,document.querySelector("#opc"+p).classList.add("selected")}function l(p){let d=p;switch(p){case"PI1":d="Play In 1";break;case"PI2":d="Play In 2";break;case"R1":d="Repechaje";break;case"CFI":d="Cuartos de final - Ida";break;case"CFV":d="Cuartos de final - Vuelta";break;case"SFI":d="Semifinal - Ida";break;case"SFV":d="Semifinal - Vuelta";break;case"FI":d="Final - Ida";break;case"FV":d="Final - Vuelta";break}return d}return(p,d)=>(t.openBlock(),t.createElementBlock("div",k0,[t.createElementVNode("div",C0,[t.createElementVNode("div",{class:"playing-as-picker__type selected",id:"opc0",onClick:d[0]||(d[0]=c=>s(0))}," Todas "),t.createElementVNode("div",{class:"playing-as-picker__type",id:"opc1",onClick:d[1]||(d[1]=c=>s(1))},"Visitante"),t.createElementVNode("div",{class:"playing-as-picker__type",id:"opc2",onClick:d[2]||(d[2]=c=>s(2))},"Local")]),t.createVNode(t.unref(mi),{"is-pagination-visible":e.isPaginationVisible,items:i.value},{default:t.withCtx(({item:c})=>[t.createElementVNode("div",B0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c,(h,m)=>(t.openBlock(),t.createElementBlock("div",{key:m,class:"calendar-by-team__page__round"},[t.createElementVNode("div",{class:"calendar-by-team__page__round__round-name",style:t.normalizeStyle([{color:"white"},e.componentWidth<=425?"padding: 5px 10px":""])},t.toDisplayString(l(h.roundName)),5),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(h.games,f=>(t.openBlock(),t.createBlock(bi,{key:f.game_id,game:f,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":e.gameRowColor,"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:r},null,8,["game","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))),128))])]),_:1},8,["is-pagination-visible","items"])]))}},N0=pe(E0,[["__scopeId","data-v-1cad2737"]]),x0="_image62Icon_1lvdf_3",T0="_imgChivasIcon_1lvdf_21",O0="_nameDesktop_1lvdf_35",V0="_nameMobile_1lvdf_61",$0="_homeTeam_1lvdf_85",A0="_sbado16De_1lvdf_107",z0="_gameDate_1lvdf_125",R0="_sab16092023_1lvdf_133",I0="_div_1lvdf_159",F0="_divscore_1lvdf_177",P0="_cst_1lvdf_197",L0="_hour_1lvdf_215",D0="_score_1lvdf_217",M0="_chivasTvCanal_1lvdf_239",j0="_gameStatus_1lvdf_263",v0="_matchInfo_1lvdf_285",W0="_image62Icon1_1lvdf_311",U0="_name_1lvdf_35",H0="_imgAtlasIcon_1lvdf_355",G0="_name1_1lvdf_369",J0="_awayTeam_1lvdf_393",q0="_matchCard_1lvdf_415",Z0={image62Icon:x0,imgChivasIcon:T0,nameDesktop:O0,nameMobile:V0,homeTeam:$0,sbado16De:A0,gameDate:z0,sab16092023:R0,div:I0,divscore:F0,cst:P0,hour:L0,score:D0,chivasTvCanal:M0,gameStatus:j0,matchInfo:v0,image62Icon1:W0,name:U0,imgAtlasIcon:H0,name1:G0,awayTeam:J0,matchCard:q0},X0=["src"],K0=["src"],Y0={key:0},Q0=["src"],ey=["src"],ty={__name:"CardPreMatch",props:{game:{type:Object,default:()=>{}}},setup(e){const a=e,o=t.computed(()=>{const i={...a.game};return i.gameSchedule=a.game.schedule.split(":"),i.gameSchedule.pop(),i.gameSchedule=i.gameSchedule.join(":"),i});function n(i,r){const s=new Date(i);if(r==1){const l=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],p=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"];return`${l[s.getDay()]} ${s.getDate()} de ${p[s.getMonth()]}`}else return`${s.getDate()}-${s.getMonth()+1}-${s.getFullYear()}`}return(i,r)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(i.$style.matchCard)},[t.createElementVNode("div",{class:t.normalizeClass(i.$style.homeTeam),id:"container-home-team"},[t.createElementVNode("img",{class:t.normalizeClass(i.$style.image62Icon),alt:"",src:t.unref(Ke)(o.value.home_team.team_id,150)},null,10,X0),t.createElementVNode("img",{class:t.normalizeClass(i.$style.imgChivasIcon),alt:"",src:t.unref(Ke)(o.value.home_team.team_id)},null,10,K0),t.createElementVNode("h3",{class:t.normalizeClass(i.$style.nameDesktop),id:"team-name"},t.toDisplayString(o.value.home_team.colloquial_name),3),t.createElementVNode("h3",{class:t.normalizeClass(i.$style.nameMobile),id:"team-name"},t.toDisplayString(o.value.home_team.acronym),3)],2),o.value.game_status==4?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.$style.matchInfo),id:"container-match-info"},[t.createElementVNode("div",{class:t.normalizeClass(i.$style.sbado16De)},t.toDisplayString(n(o.value.date_time_utc,1)),3),t.createElementVNode("div",{class:t.normalizeClass(i.$style.sab16092023)},t.toDisplayString(n(o.value.date_time_utc,0)),3),t.createElementVNode("div",{class:t.normalizeClass(i.$style.hour)},[t.createElementVNode("div",{class:t.normalizeClass(i.$style.div)},t.toDisplayString(o.value.gameSchedule),3),t.createElementVNode("div",{class:t.normalizeClass(i.$style.cst)},"CST",2)],2),t.createElementVNode("div",{class:t.normalizeClass(i.$style.chivasTvCanal)},t.toDisplayString(o.value.tv_stations.join(", ")),3)],2)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.$style.matchInfo),id:"container-match-info"},[t.createElementVNode("div",{class:t.normalizeClass([i.$style.sbado16De,i.$style.gameDate])},t.toDisplayString(n(o.value.date_time_utc,1)),3),t.createElementVNode("div",{class:t.normalizeClass([i.$style.sab16092023,i.$style.gameDate])},t.toDisplayString(n(o.value.date_time_utc,0)),3),t.createElementVNode("div",{class:t.normalizeClass(i.$style.score)},[t.createElementVNode("div",{class:t.normalizeClass(i.$style.divscore)},t.toDisplayString(o.value.score.join(" - ")),3)],2),t.createElementVNode("div",{class:t.normalizeClass(i.$style.gameStatus)},[t.createTextVNode(" Finalizado "),o.value.penalties_score_home_team!=0||o.value.penalties_score_visiting_team!=0?(t.openBlock(),t.createElementBlock("span",Y0," - Penales "+t.toDisplayString(o.value.penalties_score_home_team)+" - "+t.toDisplayString(o.value.penalties_score_visiting_team),1)):t.createCommentVNode("",!0)],2)],2)),t.createElementVNode("div",{class:t.normalizeClass(i.$style.awayTeam),id:"container-away-team"},[t.createElementVNode("img",{class:t.normalizeClass(i.$style.image62Icon1),alt:"",src:t.unref(Ke)(o.value.visiting_team.team_id,150)},null,10,Q0),t.createElementVNode("h3",{class:t.normalizeClass(i.$style.name),id:"team-name"},t.toDisplayString(o.value.visiting_team.colloquial_name),3),t.createElementVNode("img",{class:t.normalizeClass(i.$style.imgAtlasIcon),alt:"",src:t.unref(Ke)(o.value.visiting_team.team_id)},null,10,ey),t.createElementVNode("h3",{class:t.normalizeClass(i.$style.name1),id:"team-name"},t.toDisplayString(o.value.visiting_team.acronym),3)],2)],2))}},oy={$style:Z0},ay=pe(ty,[["__cssModules",oy]]),ny={class:"calendar-by-game__carousel"},ry={components:{GscSwitchComponent:Yo,GSCGeneraltable:Ou,GSCCalendarByGame:pe({__name:"GSC-CalendarByGame",props:{height:{type:String,default:"fit-content"},width:{type:String,default:"100%"},rowHeight:{type:String,default:"fit-content"},oddRowColor:{type:String,default:"#172531"},evenRowColor:{type:String,default:"#0D1D29"},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},isRoundPickerVisible:{type:Boolean,default:!0},isPaginationVisible:{type:Boolean,default:!0},awaitForSeasons:{type:Boolean,default:!1},seasons:{type:Array,default:()=>[]},isCup:{type:Boolean,default:!1},isCupLegacy:{type:Boolean,default:!1},token:{type:String,default:""},pagesWithGames:{type:Array,default:()=>[]},maxGamesToShow:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},areRoundsVisible:{type:Boolean,default:!0},gamesPerMatchDay:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},itemsToShow:{type:Number,default:9},itemsToScroll:{type:Number,default:9},games:{type:Array,default:()=>null},teamId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},avoidTeamIdFilter:{type:Boolean,default:!1},areGamesCarouselType:{type:Boolean,default:!1},defaultGameId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},userTeamId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},sortCalendar:{type:Boolean,default:!0}},emits:["tournament-selected","change-teams","change-round","change-game-carousel","action"],setup(e,{emit:a}){const o=e;let n=null;const i=t.ref([]),r=t.ref({}),s=t.ref(0),l=t.ref(null),p=t.ref({}),d=t.ref(new Map),c=t.ref(!1),h=t.ref(null),m=t.ref(null),f=t.ref(null),u=t.computed(()=>o.isCup),g=t.computed(()=>o.isCupLegacy),y=t.computed(()=>({height:o.height,width:o.width})),C=t.computed(()=>o.games?te(o.games):d.value.get(p.value.key)||[]),A=t.ref(0),v=t.ref("1"),U=t.ref([]),ne=t.ref([]),he=t.computed(()=>ne.value&&ne.value.length?se(r.value):X(r.value));t.watch(()=>he.value,O=>{A.value=U.value.findIndex(B=>B===O),v.value=O}),t.watch(()=>o.seasons,O=>{O&&O.length&&(c.value=!0,i.value=O.map(B=>B.id),ee(O,!0))},{immediate:!0,deep:!0});function X(O){const B=Object.entries(Object.entries(O).reduce((N,[$,z])=>(N[$]=[],z.forEach(D=>{D.games.forEach(W=>{const K=new Date(W.date_time_utc).getTime()+66e5;N[$].push(K)})}),N),{}));if(!B.length)return"1";const E=new Date().getTime(),T=B.reduce((N,[$,z])=>{let D=null;return z.forEach(W=>{const K=W-E;K>=0&&(D===null||K<D)&&(D=K)}),D&&(N.shortestTime===null||D<N.shortestTime)&&(N.round=$,N.shortestTime=D),N},{round:"",shortestTime:null});return T.shortestTime!==null?T.round:B[B.length-1][0]}function se(O){let B=1;if(ne.value.length){const E=ne.value[0];for(const[T,N]of Object.entries(O))for(const $ of N)if($.games.find(z=>z.game_id===E.game_id))return T}return B}t.watch(()=>o.teamId,()=>{j()},{immediate:!0});async function R(O,B,E=""){let T=E;try{const N={};o.token&&(N.Authorization=o.token),T||(T="https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",O.forEach((D,W)=>{T+=`${W===0?"":"&"}seasons=${D}`}));const{data:{data:$,teams:z}}=await si.get(T,{headers:N});return{seasonsAndGames:$,seasonsAndTeams:z}}catch(N){if(B>0)return R(O,B-1,T);throw new Error(N)}}function ae(O){for(const B of O)if(!i.value.includes(B.season_id))return!0;return!1}async function ee(O,B){try{r.value={};let E=0;const{seasonsAndGames:T,seasonsAndTeams:N}=await R(O.map(z=>z.id),3);if(B&&ae(T))return;T.forEach(z=>{const{type:D}=O.find(W=>W.id===z.season_id);z.type=D,z.games.forEach(W=>{W.season_id=z.season_id}),D===0&&(E=z.season_id)}),h.value={seasonsGames:T};const{teams:$}=N.find(z=>z.season_id===E);m.value=$,a("change-teams",$),j()}catch(E){throw new Error(E)}}function j(){if(!m.value)return;ne.value=[];const O=h.value&&h.value.seasonsGames?h.value.seasonsGames.map(B=>{const E=B.games.reduce((T,N)=>{const $={...N};return $.dateTimeMillis=new Date($.date_time_utc).valueOf(),$.home_team=m.value.find(z=>z.team_id===N.home_team),$.visiting_team=m.value.find(z=>z.team_id===N.visiting_team),o.teamId&&$.home_team.team_id!==o.teamId&&$.visiting_team.team_id!==o.teamId||(T[N.matchday_abbreviation]?T[N.matchday_abbreviation][N.game_status===3?"canceled":N.date]?T[N.matchday_abbreviation][N.game_status===3?"canceled":N.date].push($):T[N.matchday_abbreviation][N.game_status===3?"canceled":N.date]=[$]:T[N.matchday_abbreviation]={[N.game_status===3?"canceled":N.date]:[$]},o.userTeamId&&$.game_status===4&&($.home_team.team_id===o.userTeamId||$.visiting_team.team_id===o.userTeamId)&&ne.value.push($)),T},{});for(let[T,N]of Object.entries(E))E[T]=Object.entries(N).map(([$,z])=>({date:$,games:z.sort((D,W)=>D.dateTimeMillis-W.dateTimeMillis)})),E[T].sort(($,z)=>$.date<z.date?-1:$.date>z.date?1:0);return{type:B.type,weight:B.type===0?0:B.type===2?1:2,schedule:E}}):[];O.sort((B,E)=>B.weight-E.weight),r.value=O.reduce((B,E)=>{for(const[T,N]of Object.entries(E.schedule))if(E.type===0)if(u.value){const $=T.replace("M",""),z=$;g.value?B[Uf[$]||z]=N:B[Wf[T]||z]=N}else B[Number(T.replace("M","")).toString()]=N;else E.type===2?T.charAt(1)=="I"?B[`PI${Number(T.replace("PI",""))}`]=N:B[`R${Number(T.replace("PO",""))}`]=N:E.type===1&&(B[vf[T]]=N);return B},{}),d.value=new Map,U.value=Array.from(Object.entries(r.value).reduce((B,[E,T],N)=>{const $=Number(E);let z="";Number.isNaN($)?z=E:z=$<10?`0${$}`:E,B.set(E,{key:E,value:$,valueText:z,index:N});const D=T.reduce((K,ge)=>(ge.games.forEach(ye=>{ye.game_id===o.defaultGameId&&(f.value=E),ye.roundAbbreviation=Number.isNaN($)?$:`J ${$}`}),K=K.concat(ge.games),K),[]),W=te(D);return d.value.set(E,W),B},new Map).values())}function te(O){const B=[];if(o.gamesPerMatchDay>0){let E=[];O.forEach((T,N)=>{E.push(T),(N+1)%o.gamesPerMatchDay===0&&(B.push([...E]),E=[])}),E.length&&B.push([...E])}else B.push(O);return B}async function re(O){try{const{data:B}=await si.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments");return B}catch(B){if(O>0)return re(O-1);throw new Error(B)}}function We(){if(window.ResizeObserver)n=new ResizeObserver(()=>{s.value=l.value.clientWidth}),n.observe(l.value);else throw new Error("Resize observer not supported!")}function Ue(O){p.value=O,a("change-round",O)}function Ve(O){o.areGamesCarouselType&&a("change-game-carousel",O.selectedItem)}function fe(O){a("action",O),$e(O)}function $e(O){const B="PLAY_RESUME",E="PLAY_GOALS",T=[607,608,12,55,54,35,14,52,15,53,466,477],N=[12,55,"35_r","54_r"],{game_id:$,season_id:z}=O.game;let D={seasonId:z,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:1,gameIds:[$],playerIds:[],goalkeeperIds:[],categoryIds:[],teamId:0,matchResult:[],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:""},objectPlaySync:null};O.action===B?(D.categoryIds=T,D.advancedFilter.playListTitle="Resumen",a("openmedia",D)):O.action===E&&(D.categoryIds=N,D.advancedFilter.playListTitle="Goles",a("openmedia",D))}async function Ae(){try{if(!o.awaitForSeasons&&!o.games){const O=(await re(3)).find(T=>T._id===1),B=O.seasons[0],E=[{id:B.id,type:B.type}];O&&O.tournament&&a("tournament-selected",O.tournament),B.related_seasons&&B.related_seasons.length&&E.push(...B.related_seasons.map(T=>({id:T.id,type:T.type}))),await ee(E,!1)}}catch(O){throw new Error(O)}}return t.onMounted(()=>{We()}),Ae(),(O,B)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"calendarByGame",ref:l,class:"calendar-by-game",style:t.normalizeStyle(y.value)},[e.teamId&&!e.avoidTeamIdFilter?(t.openBlock(),t.createBlock(N0,{key:0,"full-tournament-schedule":r.value,"team-id":e.teamId,"is-landing-mode":!1,"row-height":e.rowHeight,"component-width":s.value,"games-pages":d.value,"is-pagination-visible":e.isPaginationVisible,"is-round-mode":e.isRoundMode,onAction:fe},null,8,["full-tournament-schedule","team-id","row-height","component-width","games-pages","is-pagination-visible","is-round-mode"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.areRoundsVisible&&U.value?(t.openBlock(),t.createBlock(ig,{key:0,"match-days":U.value,"is-landing-mode":e.isLandingMode,height:"48px","items-to-show":e.itemsToShow,"items-to-scroll":e.itemsToScroll,"component-width":s.value,"default-match-day-key":f.value,"closest-match-day":e.sortCalendar?he.value:"",onChangeMatchDay:Ue},null,8,["match-days","is-landing-mode","items-to-show","items-to-scroll","component-width","default-match-day-key","closest-match-day"])):t.createCommentVNode("",!0),t.createElementVNode("div",ny,[C.value?(t.openBlock(),t.createBlock(t.unref(mi),{key:0,"is-pagination-visible":e.isPaginationVisible&&!e.areGamesCarouselType,items:e.areGamesCarouselType?C.value[0]:C.value,"are-navigation-arrows-visible":e.areGamesCarouselType?!e.areGamesCarouselType:e.isPaginationVisible,"wrap-around":e.areGamesCarouselType,"items-to-show":e.areGamesCarouselType?1.2:1,"is-main-slide-priority":e.areGamesCarouselType,"are-slides-arrows-visible":e.areGamesCarouselType,"slides-arrows-left-and-right":e.areGamesCarouselType?"30px":"0px","default-item-by-prop":e.areGamesCarouselType?{propName:"game_id",value:e.defaultGameId}:{},onInput:Ve},{default:t.withCtx(({item:E})=>[e.areGamesCarouselType?(t.openBlock(),t.createBlock(ay,{key:0,game:E},null,8,["game"])):(t.openBlock(),t.createBlock(S0,{key:1,"games-per-page":E,"is-landing-mode":e.isLandingMode,"row-height":e.rowHeight,"component-width":s.value,"is-round-mode":e.isRoundMode,onAction:fe},null,8,["games-per-page","is-landing-mode","row-height","component-width","is-round-mode"]))]),_:1},8,["is-pagination-visible","items","are-navigation-arrows-visible","wrap-around","items-to-show","is-main-slide-priority","are-slides-arrows-visible","slides-arrows-left-and-right","default-item-by-prop"])):t.createCommentVNode("",!0)])],64))],4))}},[["__scopeId","data-v-94228d1d"]])},props:{season:{type:Object,default:()=>{}},seasons:{type:Array,default:()=>[]},componentWidth:{type:Number,default:768,validator(e){return e>0}}},data(){return{selectedOpt:"Mi posición",tokenFree:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{},methods:{onAction(e){this.$emit("action",e)},changeCategory(e){this.selectedOpt=e},onOpenMedia(e){this.$emit("openmedia",e)},onOpenProfile(e){this.$emit("onOpenProfile",e)}}},iy={class:"gsc-calendar-table"},sy={class:"gsc-switch-container"},ly={class:"gsc-app-component"};function cy(e,a,o,n,i,r){const s=t.resolveComponent("GscSwitchComponent"),l=t.resolveComponent("GSCGeneraltable"),p=t.resolveComponent("GSCCalendarByGame");return t.openBlock(),t.createElementBlock("div",iy,[t.createElementVNode("div",sy,[t.createVNode(s,{type:0,"font-family":"Poppins-Light",buttons:["Mi posición","Calendario"],height:"40px","selected-option":i.selectedOpt,"font-size":o.componentWidth>=768?"16px":"14px",width:"355px",onInput:r.changeCategory},null,8,["selected-option","font-size","onInput"])]),t.createElementVNode("div",ly,[i.selectedOpt=="Mi posición"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createVNode(l,{isPaginationVisible:!0,"current-season-id":o.season.id,type:1,"await-for-season":!0,onOpenmedia:r.onOpenMedia,onOpenTableProfile:r.onOpenProfile},null,8,["current-season-id","onOpenmedia","onOpenTableProfile"]),t.createElementVNode("div",{onClick:a[0]||(a[0]=d=>this.$router.push({name:"table"})),class:"gsc-app-component-view-all"}," Ver todo ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(p,{onAction:r.onAction,onOpenmedia:r.onOpenMedia,width:"100%",token:i.tokenFree,seasons:o.seasons,"row-height":"90px","is-landing-mode":!0,"is-pagination-visible":!0,isRoundPickerVisible:!0,"await-for-seasons":"","items-to-show":9,"items-to-scroll":5,"max-games-to-show":5,"games-per-match-day":5},null,8,["onAction","onOpenmedia","token","seasons"]),t.createElementVNode("div",{onClick:a[1]||(a[1]=d=>this.$router.push({name:"calendar"})),class:"gsc-app-component-view-all"}," Ver todo ")],64))])])}const dy=ie(ry,[["render",cy],["__scopeId","data-v-6b8889ec"]]),my={class:"match"},py={class:"match__header"},uy={key:0,class:"match__final-tag"},hy={key:1,class:"match__final-tag__no-border"},fy={class:"match__tag"},gy={class:"match__body"},yy={class:"match__data"},by={class:"match__acronym"},wy=["src"],_y={class:"match__score"},Sy=["src"],ky={class:"match__acronym"},Cy={class:"match__status"},qt=ie({__name:"PreviousMatch",props:{visitTeam:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},homeTeam:{type:Object,default:()=>{}},score:{type:String,default:"2 - 1"},journey:{type:[String,Number],default:2},penalScore:{type:String,default:""},infoType:{type:String,default:"postmatch"}},setup(e){return(a,o)=>{var n,i,r;return t.openBlock(),t.createElementBlock("section",my,[t.createElementVNode("div",py,[e.infoType=="postmatch"?(t.openBlock(),t.createElementBlock("div",uy,"FINAL ")):(t.openBlock(),t.createElementBlock("div",hy)),t.createElementVNode("div",fy,t.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),1)]),t.createElementVNode("div",gy,[t.createElementVNode("div",yy,[t.createElementVNode("div",by,t.toDisplayString((n=e.data)==null?void 0:n.home_team_acronym),1),t.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.home_team+".png",alt:"team-img"},null,8,wy),t.createElementVNode("div",_y,[e.infoType=="postmatch"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(e.data.score[0])+" - "+t.toDisplayString(e.data.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString((i=e.data)==null?void 0:i.schedule.replace(":00","")),1)],64))]),t.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.visiting_team+".png",alt:"team-img"},null,8,Sy),t.createElementVNode("div",ky,t.toDisplayString((r=e.data)==null?void 0:r.visiting_team_acronym),1)]),t.createElementVNode("div",Cy,[e.infoType=="postmatch"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Finalizado"+t.toDisplayString(e.penalScore?` - Penales ${e.penalScore}`:""),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("CST")],64))])]),t.createElementVNode("div",{class:"match__button",onClick:o[0]||(o[0]=s=>a.$emit("clickMatch"))},"Analizar partido →")])}}},[["__scopeId","data-v-c49fa538"]]),By=e=>(t.pushScopeId("data-v-8a51a354"),e=e(),t.popScopeId(),e),Ey={class:"match"},Ny={class:"match__header"},xy=By(()=>t.createElementVNode("div",{class:"match__final-tag"},"FINAL",-1)),Ty={class:"match__tag"},Oy={class:"match__body"},Vy={class:"match__data"},$y={class:"match__acronym"},Ay=["src"],zy={class:"match__score"},Ry=["src"],Iy={class:"match__acronym"},Fy={class:"match__status"},wi=ie({__name:"PreviousMatchGame",props:{visitTeam:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},homeTeam:{type:Object,default:()=>{}},score:{type:String,default:"2 - 1"},journey:{type:[String,Number],default:2},penalScore:{type:String,default:""}},setup(e){return(a,o)=>(t.openBlock(),t.createElementBlock("section",Ey,[t.createElementVNode("div",Ny,[xy,t.createElementVNode("div",Ty,t.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),1)]),t.createElementVNode("div",Oy,[t.createElementVNode("div",Vy,[t.createElementVNode("div",$y,t.toDisplayString(e.data.home_team.acronym),1),t.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.home_team.team_id+".png",alt:"team-img"},null,8,Ay),t.createElementVNode("div",zy,t.toDisplayString(e.data.score[0])+" - "+t.toDisplayString(e.data.score[1]),1),t.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.visiting_team.team_id+".png",alt:"team-img"},null,8,Ry),t.createElementVNode("div",Iy,t.toDisplayString(e.data.visiting_team.acronym),1)]),t.createElementVNode("div",Fy,"Finalizado"+t.toDisplayString(e.penalScore?` - Penales ${e.penalScore}`:""),1)]),t.createElementVNode("div",{class:"match__button",onClick:o[0]||(o[0]=n=>a.$emit("clickMatch"))},"Analizar partido →")]))}},[["__scopeId","data-v-8a51a354"]]),Py=e=>(t.pushScopeId("data-v-4c9c0afe"),e=e(),t.popScopeId(),e),Ly=["src"],Dy=["src"],My={class:"coming-match__body"},jy={class:"coming-match__data"},vy=["src"],Wy={style:{"margin-top":"16px"}},Uy={class:"coming-match__time"},Hy=Py(()=>t.createElementVNode("div",{class:"coming-match__cst"},"CST",-1)),Gy=["src"],_a=ie({__name:"ComingMatch",props:{small:{type:Boolean,default:!1},visitTeam:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},homeTeam:{type:Object,default:()=>{}},date:{type:String,default:"Jueves 7 de Abril"},time:{type:String,default:"5: 00"}},setup(e){return(a,o)=>{var n,i,r,s,l,p,d,c,h,m,f,u,g;return t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass(["coming-match",{small:e.small}])},[t.createElementVNode("img",{class:t.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-150/"+((n=e.data)==null?void 0:n.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-150/"+((i=e.data)==null?void 0:i.home_team)+".png",alt:"team-img"},null,10,Ly),t.createElementVNode("img",{class:t.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-150/"+((r=e.data)==null?void 0:r.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-150/"+((s=e.data)==null?void 0:s.visiting_team)+".png",alt:"team-img"},null,10,Dy),t.createElementVNode("div",My,[t.createElementVNode("div",{class:t.normalizeClass(["coming-match__date",{small:e.small}])},t.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),3),t.createElementVNode("div",jy,[t.createElementVNode("div",{class:t.normalizeClass(["coming-match__team",{small:e.small}])},[t.createElementVNode("img",{class:t.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((l=e.data)==null?void 0:l.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((p=e.data)==null?void 0:p.home_team)+".png",alt:"team-img"},null,10,vy),t.createElementVNode("div",{class:t.normalizeClass(["coming-match__acronym",{small:e.small}])},t.toDisplayString((d=e.data)==null?void 0:d.home_team_name),3)],2),t.createElementVNode("div",Wy,[t.createElementVNode("div",Uy,[e.data.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString((c=e.data)==null?void 0:c.score[0])+" - "+t.toDisplayString((h=e.data)==null?void 0:h.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString((m=e.data)==null?void 0:m.schedule.replace(":00","")),1)],64))]),Hy]),t.createElementVNode("div",{class:t.normalizeClass(["coming-match__team",{small:e.small}])},[t.createElementVNode("div",{class:t.normalizeClass(["coming-match__acronym",{small:e.small}])},t.toDisplayString((f=e.data)==null?void 0:f.visiting_team_name),3),t.createElementVNode("img",{class:t.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((u=e.data)==null?void 0:u.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((g=e.data)==null?void 0:g.visiting_team)+".png",alt:"team-img"},null,10,Gy)],2)])]),t.createElementVNode("div",{class:t.normalizeClass(["coming-match__button",{small:e.small}]),onClick:o[0]||(o[0]=y=>a.$emit("clickMatch"))},"Analizar partido →",2)],2)}}},[["__scopeId","data-v-4c9c0afe"]]),Jy=e=>(t.pushScopeId("data-v-90640930"),e=e(),t.popScopeId(),e),qy=["src"],Zy=["src"],Xy={class:"coming-match__body"},Ky={class:"coming-match__data"},Yy=["src"],Qy={style:{"margin-top":"16px"}},e1={class:"coming-match__time"},t1=Jy(()=>t.createElementVNode("div",{class:"coming-match__cst"},"CST",-1)),o1=["src"],_i=ie({__name:"ComingMatchGame",props:{small:{type:Boolean,default:!1},visitTeam:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},homeTeam:{type:Object,default:()=>{}},date:{type:String,default:"Jueves 7 de Abril"},time:{type:String,default:"5: 00"}},setup(e){return(a,o)=>{var n,i,r,s,l,p,d,c,h,m,f,u,g;return t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass(["coming-match",{small:e.small}])},[t.createElementVNode("img",{class:t.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((n=e.data)==null?void 0:n.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((i=e.data)==null?void 0:i.home_team)+".png",alt:"team-img"},null,10,qy),t.createElementVNode("img",{class:t.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((r=e.data)==null?void 0:r.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((s=e.data)==null?void 0:s.visiting_team)+".png",alt:"team-img"},null,10,Zy),t.createElementVNode("div",Xy,[t.createElementVNode("div",{class:t.normalizeClass(["coming-match__date",{small:e.small}])},t.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),3),t.createElementVNode("div",Ky,[t.createElementVNode("div",{class:t.normalizeClass(["coming-match__team",{small:e.small}])},[t.createElementVNode("img",{class:t.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((l=e.data)==null?void 0:l.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((p=e.data)==null?void 0:p.home_team)+".png",alt:"team-img"},null,10,Yy),t.createElementVNode("div",{class:t.normalizeClass(["coming-match__acronym",{small:e.small}])},t.toDisplayString((d=e.data)==null?void 0:d.home_team_name),3)],2),t.createElementVNode("div",Qy,[t.createElementVNode("div",e1,[e.data.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString((c=e.data)==null?void 0:c.score[0])+" - "+t.toDisplayString((h=e.data)==null?void 0:h.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString((m=e.data)==null?void 0:m.schedule.replace(":00","")),1)],64))]),t1]),t.createElementVNode("div",{class:t.normalizeClass(["coming-match__team",{small:e.small}])},[t.createElementVNode("div",{class:t.normalizeClass(["coming-match__acronym",{small:e.small}])},t.toDisplayString((f=e.data)==null?void 0:f.visiting_team_name),3),t.createElementVNode("img",{class:t.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((u=e.data)==null?void 0:u.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((g=e.data)==null?void 0:g.visiting_team)+".png",alt:"team-img"},null,10,o1)],2)])]),t.createElementVNode("div",{class:t.normalizeClass(["coming-match__button",{small:e.small}]),onClick:o[0]||(o[0]=y=>a.$emit("clickMatch"))},"Analizar partido →",2)],2)}}},[["__scopeId","data-v-90640930"]]),a1=e=>(t.pushScopeId("data-v-0c45a1f6"),e=e(),t.popScopeId(),e),n1={class:"quadrant-matches"},r1={class:"quadrant-matches__header"},i1={class:"quadrant-matches__title"},s1=a1(()=>t.createElementVNode("span",null," →",-1)),l1={key:0,class:"quadrant-matches__body"},c1={class:"quadrant-matches__body",style:{"column-gap":"16px"}},d1={class:"quadrant-matches__body matches"},m1={key:0,class:"quadrant-matches__body"},p1={class:"quadrant-matches__body",style:{"column-gap":"16px"}},u1=ie({__name:"GSCQuadrantGames",props:{isUserPro:{type:Boolean,default:!1},hasTeam:{type:Boolean,default:!1},isFull:{type:Boolean,default:!1},comingMatches:{type:Array,default:()=>[]},data:{type:Object,default:()=>{}},previousMatches:{type:Array,default:()=>[]},componentWidth:{type:Number,default:768,validator(e){return e>0}}},setup(e){const a=e;t.computed(()=>a.comingMatches[0]||{}),t.computed(()=>a.previousMatches[0]||{});const o=t.toRef(a,"componentWidth"),n=t.computed(()=>o.value<768);return(i,r)=>(t.openBlock(),t.createElementBlock("section",n1,[t.createElementVNode("div",r1,[t.createElementVNode("h2",i1,t.toDisplayString(e.isFull?"Partidos":"Mis partidos"),1),t.createElementVNode("button",{class:"quadrant-matches__button",onClick:r[0]||(r[0]=s=>i.$emit("clickCalendar"))},[t.createElementVNode("span",null,t.toDisplayString(e.isFull?"Calendario completo":"Mi calendario completo"),1),s1])]),e.isFull?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.data.length>1?(t.openBlock(),t.createBlock(t.unref(rt),{key:0,pxScroll:348,"background-color":"none",scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(13,29,41,0) 100%, rgba(13,29,41,1) 100%)",arrowsContainerBgR:"linear-gradient(270deg, rgba(13,29,41,0) 100%, rgba(13,29,41,1) 100%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[t.createElementVNode("div",d1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.data,(s,l)=>(t.openBlock(),t.createBlock(_a,{key:l,data:s,small:"",onClickMatch:p=>i.$emit("clickMatch",s)},null,8,["data","onClickMatch"]))),128))])]),_:1})):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[n.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.data).length>0?(t.openBlock(),t.createBlock(t.unref(rt),{key:0,pxScroll:348,"background-color":"none",scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(13,29,41,0) 100%, rgba(13,29,41,1) 100%)",arrowsContainerBgR:"linear-gradient(270deg, rgba(13,29,41,0) 100%, rgba(13,29,41,1) 100%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[t.createElementVNode("div",p1,[e.data[0].game_status==4?(t.openBlock(),t.createBlock(_i,{key:0,data:e.data[0],onClickMatch:r[9]||(r[9]=s=>i.$emit("clickMatch",e.data[0]))},null,8,["data"])):t.createCommentVNode("",!0),e.data[0].game_status!=4?(t.openBlock(),t.createBlock(wi,{key:1,data:e.data[0],onClickMatch:r[10]||(r[10]=s=>i.$emit("clickMatch",e.data[0]))},null,8,["data"])):t.createCommentVNode("",!0)])]),_:1})):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.data).length>0?(t.openBlock(),t.createElementBlock("div",m1,[e.data[0].game_status==4?(t.openBlock(),t.createBlock(_i,{key:0,data:e.data[0],onClickMatch:r[7]||(r[7]=s=>i.$emit("clickMatch",e.data[0]))},null,8,["data"])):t.createCommentVNode("",!0),e.data[0].game_status!=4?(t.openBlock(),t.createBlock(wi,{key:1,data:e.data[0],onClickMatch:r[8]||(r[8]=s=>i.$emit("clickMatch",e.data[0]))},null,8,["data"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],64))],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[n.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.data).length>0?(t.openBlock(),t.createBlock(t.unref(rt),{key:0,pxScroll:348,"background-color":"none",scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(13,29,41,0) 100%, rgba(13,29,41,1) 100%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(13,29,41,0) 100%, rgba(13,29,41,1) 100%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[t.createElementVNode("div",c1,[t.createVNode(_a,{small:"",data:e.data.data.prematch,onClickMatch:r[4]||(r[4]=s=>i.$emit("clickMatch",e.data.data.prematch))},null,8,["data"]),e.data.data.postmatch&&e.data.data.postmatch.game_status&&e.data.data.postmatch.game_status!==4?(t.openBlock(),t.createBlock(qt,{key:0,data:e.data.data.postmatch,onClickMatch:r[5]||(r[5]=s=>i.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"])):(t.openBlock(),t.createBlock(qt,{key:1,"info-type":"prematch",data:e.data.data.postmatch,onClickMatch:r[6]||(r[6]=s=>i.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"]))])]),_:1})):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.data).length>0?(t.openBlock(),t.createElementBlock("div",l1,[t.createVNode(_a,{data:e.data.data.prematch,onClickMatch:r[1]||(r[1]=s=>i.$emit("clickMatch",e.data.data.prematch))},null,8,["data"]),e.data.data.postmatch&&e.data.data.postmatch.game_status&&e.data.data.postmatch.game_status!==4?(t.openBlock(),t.createBlock(qt,{key:0,data:e.data.data.postmatch,onClickMatch:r[2]||(r[2]=s=>i.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"])):(t.openBlock(),t.createBlock(qt,{key:1,"info-type":"prematch",data:e.data.data.postmatch,onClickMatch:r[3]||(r[3]=s=>i.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"]))])):t.createCommentVNode("",!0)],64))],64))]))}},[["__scopeId","data-v-0c45a1f6"]]),h1={__name:"gsc-games",props:{componentWidth:{type:Number,default:768,validator(e){return e>0}},isplayer:{type:Boolean,default:!1},isFull:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},setup(e){return(a,o)=>(t.openBlock(),t.createElementBlock("main",null,[t.createVNode(u1,{data:e.data,"component-width":e.componentWidth,"is-full":e.isFull,onClickCalendar:o[0]||(o[0]=n=>a.$emit("clickCalendar")),onClickMatch:o[1]||(o[1]=n=>a.$emit("clickMatch",n)),"has-team":!e.isplayer},null,8,["data","component-width","is-full","has-team"])]))}},f1="_toniKroos_1mxz1_35",g1="_centralMidfielder_1mxz1_55",y1="_icnPlayIcon_1mxz1_75",b1="_verVideos_1mxz1_89",w1="_btnVideosOptions_1mxz1_109",_1="_btnVideosOptionsTeams_1mxz1_139",S1="_info_1mxz1_179",k1="_goalUnlock_1mxz1_203",C1="_teamsAmerica_1mxz1_229",B1="_imageIcon_1mxz1_249",E1="_imageIconTeam_1mxz1_271",N1="_playerTops_1mxz1_295",x1={toniKroos:f1,centralMidfielder:g1,icnPlayIcon:y1,verVideos:b1,btnVideosOptions:w1,btnVideosOptionsTeams:_1,info:S1,goalUnlock:k1,teamsAmerica:C1,imageIcon:B1,imageIconTeam:E1,playerTops:N1},T1=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},O1={props:{height:{type:String,default:"194px"},background:{type:String,default:"#122735"},borderRadius:{type:String,default:"4px"},borderWidth:{type:Number,default:0},borderColor:{type:String,default:"#ffffff"},namePlayerFont:{type:String,default:"Montserrat-SemiBold"},namePlayerFontColor:{type:String,default:"#ffffff"},namePlayerFontSize:{type:String,default:"18px"},namePlayerFontStyle:{type:String,default:"Normal"},namePositionFont:{type:String,default:"Poppins-Regular"},namePositionFontColor:{type:String,default:"#8ea2ab"},namePositionFontSize:{type:String,default:"14px"},namePositionFontStyle:{type:String,default:"Normal"},totalFont:{type:String,default:"Poppins-Regular"},totalFontColor:{type:String,default:"#ffffff"},totalFontSize:{type:String,default:"8px"},totalFontStyle:{type:String,default:"Normal"},totalHeight:{type:String,default:"22px"},totalWidth:{type:String,default:"80px"},totalBorderRadius:{type:String,default:"64px"},totalBorderWidth:{type:Number,default:1},totalBorderColor:{type:String,default:"#cbee6b"},iconPlay:{type:String,default:"/icnplay1.svg"},teamWidth:{type:String,default:"34px"},teamPositionLeft:{type:String,default:"12px"},teamPositionTop:{type:String,default:""},playerOrTeamPhotoWidth:{type:String,default:"99px"},numbertopLeft:{type:String,default:"-8px"},numbertopBottom:{type:String,default:"-25px"},numbertopTop:{type:String},numbertopRight:{type:String},numbertopColor:{type:String,default:"#ffffff"},numbertopFontSize:{type:String,default:"98px"},numbertopOpacity:{type:String,default:"0.18"},numberFontFamily:{type:String,default:"Montserrat-SemiBold"},showShieldTeam:{type:Boolean,default:!0},showIconVideo:{type:Boolean,default:!0},showPositionPlayer:{type:Boolean,default:!0},activeVideos:{type:Boolean,default:!0},freemiumActive:{type:Boolean,default:!1},isPlayer:{type:Boolean,default:!0},data:{type:Object,default:()=>{}}},computed:{customMosaic(){return{height:this.height,background:this.background,borderRadius:`${this.borderRadius} !important`,border:`solid ${this.borderWidth}px ${this.borderColor}`}},customNamePlayer(){return{fontFamily:this.namePlayerFont,fontSize:this.namePlayerFontSize,color:this.namePlayerFontColor,fontStyle:this.namePlayerFontStyle}},customNamePosition(){return{fontFamily:this.namePositionFont,fontSize:this.namePositionFontSize,color:this.namePositionFontColor,fontStyle:this.namePositionFontStyle}},customTotal(){return{fontFamily:this.totalFont,fontSize:this.totalFontSize,color:this.totalFontColor,fontStyle:this.totalFontStyle}},customTotalCont(){return{MinHeight:this.totalHeight,width:this.totalWidth,borderRadius:`${this.totalBorderRadius} !important`,border:`solid ${this.totalBorderWidth}px ${this.totalBorderColor}`}},customShieldTeam(){return{width:this.teamWidth,top:this.teamPositionTop,left:this.teamPositionLeft}},customPhotoPlayerOrTeam(){return{width:this.playerOrTeamPhotoWidth}},customNumberTop(){return{fontSize:this.numbertopFontSize,color:this.numbertopColor,left:this.numbertopLeft,right:this.numbertopRight,top:this.numbertopTop,bottom:this.numbertopBottom,opacity:this.numbertopOpacity,fontFamily:this.numberFontFamily}}},methods:{onPlayerTopsClick(e){this.activeVideos&&(this.$emit("clickMosaic",e),this.$emit("freemium",this.freemiumActive))},onButtonVideos(e){this.activeVideos&&(this.$emit("openmedia",e),this.$emit("clickvideos",e.id),this.$emit("freemium",this.freemiumActive))}}},V1=["src"],$1=["src"],A1=["src"];function z1(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass(e.$style.playerTops),style:t.normalizeStyle(r.customMosaic),id:"player-mosaico",onClick:a[1]||(a[1]=s=>r.onPlayerTopsClick(o.data.player_id))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.info)},[t.createElementVNode("h3",{class:t.normalizeClass(e.$style.toniKroos),style:t.normalizeStyle(r.customNamePlayer)},t.toDisplayString(o.data.player_name),7),o.showPositionPlayer?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.centralMidfielder),style:t.normalizeStyle(r.customNamePosition)},t.toDisplayString(o.data.player_position),7)):t.createCommentVNode("",!0),t.createElementVNode("button",{class:t.normalizeClass(this.isPlayer?e.$style.btnVideosOptions:e.$style.btnVideosOptionsTeams),style:t.normalizeStyle(r.customTotalCont),id:"button-actions",onClick:a[0]||(a[0]=s=>r.onButtonVideos(o.data))},[o.showIconVideo?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.icnPlayIcon),src:o.iconPlay},null,10,V1)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.verVideos),style:t.normalizeStyle(r.customTotal)},t.toDisplayString(o.data.player_stat)+" "+t.toDisplayString(o.data.category),7)],6)],2),t.createElementVNode("b",{style:t.normalizeStyle(r.customNumberTop),class:t.normalizeClass(e.$style.goalUnlock)},t.toDisplayString(o.data.top),7),o.showShieldTeam?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.teamsAmerica),style:t.normalizeStyle(r.customShieldTeam),loading:"lazy",src:o.data.team_logo},null,14,$1)):t.createCommentVNode("",!0),t.createElementVNode("img",{style:t.normalizeStyle(r.customPhotoPlayerOrTeam),class:t.normalizeClass(this.isPlayer?e.$style.imageIcon:e.$style.imageIconTeam),loading:"lazy",src:o.data.player_photo},null,14,A1)],6)}const R1={$style:x1},I1=T1(O1,[["render",z1],["__cssModules",R1]]),F1=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},Sa={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},Si=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},ki=Sa.setup;Sa.setup=ki?(e,a)=>(Si(),ki(e,a)):Si;const P1=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),L1=["src"],D1={key:1,class:"text"},M1=["src"],j1={class:"stats"},v1=P1(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),W1={class:"numstats"},U1={class:"leyend"};function H1(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",null,[o.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",i.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([r.customStyle,i.status&&o.typeOnOff&&r.customActive]),onClick:a[0]||(a[0]=(...s)=>r.btnClick&&r.btnClick(...s))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,L1)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",D1,t.toDisplayString(o.textValue),1)):t.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,M1)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...s)=>r.btnClick&&r.btnClick(...s))},[t.createElementVNode("div",j1,[v1,t.createElementVNode("div",W1,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",U1,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const Ci=F1(Sa,[["render",H1],["__scopeId","data-v-fb269a1e"]]);function G1(e){const a=t.ref({width:0,height:0});function o(){const n=e.value.getBoundingClientRect();a.value.width=n.width,a.value.height=n.height}return t.onMounted(()=>{o(),window.addEventListener("resize",o)}),t.onUnmounted(()=>{window.removeEventListener("resize",o)}),{elementSize:a}}const ka={props:{textOptionLeft:String,valueDefault:{type:String,default:""},textOptionRight:String,hiddenLabels:{type:Boolean,default:!1},width:{type:String,default:"50px"},height:{type:String,default:"32px"},heightCircle:{type:String,default:"24px"},widthCircle:{type:String,default:"24px"},widthIcons:{type:String,default:"22"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"14px"},fontColor:{type:String,default:"#000000"},iconA:{type:String,default:""},iconB:{type:String,default:""},fontFamily:{type:String,default:"Poppins-Light"},backgroundColor:{type:String,default:"#2e3b46"},circleColorSwitch:{type:String,default:"#FFFFFF"}},data(){return{OptionDefault:!1}},watch:{valueDefault:{immediate:!0,handler:async function(e){try{e==this.textOptionLeft&&(this.OptionDefault=!1),e==this.textOptionRight&&(this.OptionDefault=!0)}catch(a){throw new Error(a)}}}},computed:{customStyle(){return{width:this.width,height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,backgroundColor:this.backgroundColor,circleColor:this.circleColorSwitch}},customText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}}},methods:{handleSwitchChange(e){e.target.checked?this.$emit("change",this.textOptionRight):this.$emit("change",this.textOptionLeft)}}},Bi=()=>{t.useCssVars(e=>({"2bf57034":e.backgroundColor,b8f32872:e.widthCircle,23023166:e.heightCircle}))},Ei=ka.setup;ka.setup=Ei?(e,a)=>(Bi(),Ei(e,a)):Bi;const J1={key:0,class:"text-left"},q1=["width","src"],Z1=["checked"],X1=["width","src"],K1={key:3,class:"text-right"};function Y1(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",{class:"gsc-switch-radio",style:t.normalizeStyle(r.customText)},[o.textOptionLeft!=""&&!o.hiddenLabels?(t.openBlock(),t.createElementBlock("span",J1,t.toDisplayString(o.textOptionLeft),1)):t.createCommentVNode("",!0),o.iconA!=""?(t.openBlock(),t.createElementBlock("img",{key:1,width:o.widthIcons,src:o.iconA},null,8,q1)):t.createCommentVNode("",!0),t.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:a[0]||(a[0]=(...s)=>r.handleSwitchChange&&r.handleSwitchChange(...s)),checked:i.OptionDefault},null,40,Z1),t.createElementVNode("label",{for:"toggle-btn",style:t.normalizeStyle([r.customStyle,{"--circle-color":o.circleColorSwitch}])},null,4),o.iconB!=""?(t.openBlock(),t.createElementBlock("img",{key:2,width:o.widthIcons,src:o.iconB},null,8,X1)):t.createCommentVNode("",!0),o.textOptionRight!=""&&!o.hiddenLabels?(t.openBlock(),t.createElementBlock("span",K1,t.toDisplayString(o.textOptionRight),1)):t.createCommentVNode("",!0)],4)}const Ca={components:{GSCSlider:rt,GSCMosaicthebest:I1,GscSwitchComponent:Yo,GSCButton:Ci,GSCRadioToggle:ie(ka,[["render",Y1],["__scopeId","data-v-c2ae0cf9"]])},setup(){const e=t.ref("myDivRef"),{elementSize:a}=G1(e);return{myDivRef:e,elementSize:a}},props:{backgroundColor:{type:String,default:"#0D1D29"},showSwitch:{type:Boolean,default:!0},fontFamily:{type:String,default:"Poppins-Semibold"},fontColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"24px"},marginMosaic:{type:String,default:"24px"},tournament:{type:Number,default:1},season:{type:Number,default:1772},teamId:{type:Number,default:0}},watch:{async season(e,a){const o=this.categorySelected!==null?this.categorySelected:1;this.showSwitch||(this.filterSelected=1),await this.getCategoryStats(e,this.filterSelected,o)}},data:()=>({url:"https://kgfaxdv624.execute-api.us-east-2.amazonaws.com/prod/tops/seasons/",token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",categoriesDefault:["Goles","Pases acertados","Balones recuperados en disputa","Asistencias","Participaciones en gol","Tiros a gol","Tiros a gol que llegaron a la portería","Cabeceos en área rival","Cabeceos en área propia","Centros","Centros acertados","1vs1 exitosos ofensivos","1vs1 exitosos ofensivos que terminaron en gol","1vs1 defensivos exitoso","Rechaces","Balones ganados en área propia","Balones ganados en área rival","Faltas cometidas","Faltas recibidas","Tarjetas amarillas","Tarjetas rojas","Atajadas","Tiros de Esquina"],categories:[{id:1,name:"Goles"},{id:2,name:"Pases acertados"},{id:3,name:"Balones recuperados en disputa"},{id:4,name:"Asistencias"},{id:5,name:"Participaciones en gol"},{id:6,name:"Tiros a gol"},{id:7,name:"Tiros a gol que llegaron a la portería"},{id:8,name:"Cabeceos en área rival"},{id:9,name:"Cabeceos en área propia"},{id:10,name:"Centros"},{id:11,name:"Centros acertados"},{id:12,name:"1vs1 exitosos ofensivos"},{id:13,name:"1vs1 exitosos ofensivos que terminaron en gol"},{id:14,name:"1vs1 defensivos exitoso"},{id:15,name:"Rechaces"},{id:16,name:"Balones ganados en área propia"},{id:17,name:"Balones ganados en área rival"},{id:18,name:"Faltas cometidas"},{id:19,name:"Faltas recibidas"},{id:20,name:"Tarjetas amarillas"},{id:21,name:"Tarjetas rojas"},{id:22,name:"Atajadas"},{id:23,name:"Tiros de Esquina"}],categoryData:[],categorySelected:null,filterSelected:1,isTeam:!1,categoryName:"Goles",optionSelected:"Jugadores",positions:[{name:"Portero"},{name:"Defensa central"},{name:"Lateral por izquierda"},{name:"Lateral por derecha"},{name:"Volante por izquierda"},{name:"Volante por derecha"},{name:"Volante defensivo"},{name:"Volante ofensivo"},{name:"Delantero"},{name:"Desconocida"}]}),async created(){await this.getCategoryStats(this.season,1)},computed:{topData(){var e=[];return this.categorySelected!=null&&this.categoryData[this.categorySelected]!==void 0&&(this.isTeam?e=this.categoryData[this.categorySelected].top__teams:e=this.categoryData[this.categorySelected].top__players),e}},methods:{formatPlayerName(e){var n;const a=e.split(",");let o="";if(a[1]&&(o=`${a[1].trim()[0]}.`,a[0])){const i=(n=a[0])==null?void 0:n.trim().split(" ");for(let r of i)if(o=`${o} ${r.trim()}`,r.trim().length>3)break}return o},translateTopCategories(e){return{1:[12,55,"35_r","54_r"],2:[2,20],3:[485,486,487,488],4:[10,324],5:[27,323],6:[510],7:[537,540,544,547],8:[328],9:[231,238,280,287,294,406],10:[13,25],11:[98,101,104,105,109,112,115,116],12:[4],13:[88],14:[5],15:[34],16:[23],17:[11],18:[17,50],19:[18,49],20:[14,52],21:[15,53],22:[39],23:[31,32]}[e]||[]},onOpenMedia(e){const a=this.translateTopCategories(this.categorySelected),o=2,n=3;let i=[],r=0,s=0;this.isTeam?(r=e.player_id,s=n):(i=[e.player_id],s=o);const l={seasonId:this.season,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:s,gameIds:null,playerIds:i,goalkeeperIds:[],categoryIds:a,teamId:r,matchResult:[1,2,3],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:e.category},objectPlaySync:null};this.$emit("openmedia",l)},async ChangeRadio(e){const a=this.categorySelected!==null?this.categorySelected:1;e==="Mi equipo"&&(this.filterSelected=0,await this.getCategoryStats(this.season,0,a)),e==="Liga MX"&&(this.filterSelected=1,await this.getCategoryStats(this.season,1,a))},clickMosaic(e){this.$emit("boxinput",e)},clickMore(){this.$emit("more")},async changeType(e){const a=this.categorySelected!==null?this.categorySelected:1;this.optionSelected=e,e=="Equipos"?(await this.getCategoryStats(this.season,1,a),this.isTeam=!0):this.isTeam=!1},changeCategory(e){this.categoryName=e;const a=this.categories.find(o=>o.name===e);this.categorySelected=a.id},async getCategoryStats(e,a,o=0){try{let r={},s={},l=[];const p=Tt.create({headers:{Authorization:`${this.token}`}});var n={};if(a==0&&(n=await p.get(this.url+this.season+"/teams/"+this.teamId)),a==1&&(n=await p.get(this.url+e)),n&&n.data){n.data.teams.map(d=>{r[d[0]]={},r[d[0]].id=d[0],r[d[0]].name=d[1],r[d[0]].img=d[3],r[d[0]].abrv=d[2],r[d[0]].logo=d[3]}),n.data.players.map(d=>{s[d[0]]={},s[d[0]].id=d[0],s[d[0]].name=d[1],s[d[0]].img=d[2],s[d[0]].position=d[6],s[d[0]].logo="https://az755631.vo.msecnd.net/teams-80/"+d[10][0].team_id+".png"});var i=1;n.data.tops.map(d=>{l[d.category?d.category:i]={};var c={},h={};d.teams.map(u=>{c[u[0]]={},c[u[0]].total=u[1],c[u[0]].id=r[u[0]].id,c[u[0]].name=r[u[0]].name,c[u[0]].img="https://az755631.vo.msecnd.net/teams-150/"+u[0]+".png",c[u[0]].logo="https://az755631.vo.msecnd.net/teams-80/"+u[0]+".png"}),d.players.map(u=>{h[u[0]]={},h[u[0]].total=u[1],h[u[0]].name=s[u[0]].name,h[u[0]].img=s[u[0]].img.replace("players-profile/","players-profile/"),h[u[0]].id=s[u[0]].id,h[u[0]].position=this.positions[s[u[0]].position-1].name,h[u[0]].logo=s[u[0]].logo});var m=[],f=[];for(const u in c)m.push(c[u]);for(const u in h)f.push(h[u]);m.sort((u,g)=>u.total<g.total?1:-1),f.sort((u,g)=>u.total<g.total?1:-1),l[d.category?d.category:i].top__players=f,l[d.category?d.category:i].top__teams=m,i++})}o===0?this.categorySelected=1:this.categorySelected=o,this.categoryData=l}catch(r){return Promise.reject(r)}}}},Ni=()=>{t.useCssVars(e=>({"7a5b0a28":e.backgroundColor,"292ba61c":e.fontFamily,"510c78b9":e.fontSize,"60b8a4aa":e.fontColor,d5d221be:e.marginMosaic}))},xi=Ca.setup;Ca.setup=xi?(e,a)=>(Ni(),xi(e,a)):Ni;const Q1=e=>(t.pushScopeId("data-v-a5fb54bf"),e=e(),t.popScopeId(),e),e2={class:"gsc-best",ref:"myDivRef"},t2={class:"gsc-best__line-bar-tools"},o2={key:0,class:"gsc-best__line-bar-tools__title"},a2=Q1(()=>t.createElementVNode("span",null,"Los mejores ",-1)),n2={key:1,class:"gsc-best__line-bar-tools__titlefull"},r2={class:"unit-items"},i2={key:2,class:"gsc-best__line-bar-tools__tools"},s2={key:0,class:"gsc-best__line-bar-tools__tools__tabs"},l2={class:"gsc-best__line-bar-tools__tools__btn"},c2={key:0,class:"gsc-best__line-bar-tools-movil"},d2={class:"gsc-best__line-bar-tools-movil__tabs"},m2={class:"gsc-best__categories"},p2={class:"gsc-best__players"};function u2(e,a,o,n,i,r){const s=t.resolveComponent("GSCRadioToggle"),l=t.resolveComponent("GSCButton"),p=t.resolveComponent("GscSwitchComponent"),d=t.resolveComponent("GSCMosaicthebest"),c=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",e2,[t.createElementVNode("div",t2,[n.elementSize.width>900?(t.openBlock(),t.createElementBlock("div",o2,[a2,e.optionSelected!=="Equipos"&&o.showSwitch?(t.openBlock(),t.createBlock(s,{key:0,height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","value-default":"Liga MX",iconA:"https://az755631.vo.msecnd.net/teams-150/"+o.teamId+".png",iconB:"https://az755631.vo.msecnd.net/todoelfut/1.png",textOptionLeft:"Mi equipo",textOptionRight:"Liga MX",onChange:r.ChangeRadio},null,8,["iconA","onChange"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),n.elementSize.width<=900?(t.openBlock(),t.createElementBlock("div",n2,[t.createElementVNode("span",{style:t.normalizeStyle(n.elementSize.width<=380?"font-size: 15px; margin-top:0px; width:60px;":"")},"Los mejores ",4),t.createElementVNode("span",r2,[e.optionSelected!=="Equipos"&&o.showSwitch?(t.openBlock(),t.createBlock(s,{key:0,height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","hidden-labels":!0,"value-default":"Liga MX",iconA:"https://az755631.vo.msecnd.net/teams-150/"+o.teamId+".png",iconB:"https://az755631.vo.msecnd.net/todoelfut/1.png",textOptionLeft:"Mi equipo",textOptionRight:"Liga MX",onChange:r.ChangeRadio},null,8,["iconA","onChange"])):t.createCommentVNode("",!0),t.createVNode(l,{style:{"margin-top":"4px"},width:"75px","text-value":"Ver más","font-color":n.elementSize.width<=680?"rgba(255,255,255, 0.7)":"#fff","font-size":n.elementSize.width<=680?"11px":"14px","text-decoration":"underline",onClick:r.clickMore},null,8,["font-color","font-size","onClick"])])])):t.createCommentVNode("",!0),n.elementSize.width>900?(t.openBlock(),t.createElementBlock("div",i2,[n.elementSize.width>900?(t.openBlock(),t.createElementBlock("div",s2,[t.createVNode(p,{type:1,buttons:["Jugadores","Equipos"],"selected-option":e.optionSelected,"border-radius":"32px",height:"28px","border-width":"1px","border-width-container":"0.5px","background-option-active":"#0d1d29","color-option-active":"#FFFFFF","font-size":"12px",width:"270px",fontFamily:"Poppins-Light",onInput:r.changeType,arrowsScrollHide:!1,arrowsPosition:"absolute"},null,8,["selected-option","onInput"])])):t.createCommentVNode("",!0),t.createElementVNode("div",l2,[t.createVNode(l,{width:"75px","text-value":"Ver más","font-size":"14px","text-decoration":"underline",onClick:r.clickMore},null,8,["onClick"]),t.createVNode(l,{width:"10px","text-value":"→","font-size":"14px","font-color":"#cbee6b",onClick:r.clickMore},null,8,["onClick"])])])):t.createCommentVNode("",!0)]),n.elementSize.width<=900?(t.openBlock(),t.createElementBlock("div",c2,[t.createElementVNode("div",d2,[t.createVNode(p,{type:1,buttons:["Jugadores","Equipos"],"selected-option":e.optionSelected,"border-radius":"32px",height:"28px","border-width":"1px","border-width-container":"0.5px","background-option-active":"#0d1d29","color-option-active":"#FFFFFF","font-size":"10px",width:"270px",fontFamily:"Poppins-Light",onInput:r.changeType},null,8,["selected-option","onInput"])])])):t.createCommentVNode("",!0),t.createElementVNode("div",m2,[t.createVNode(p,{type:2,arrow:!0,"font-family":"Poppins-Light",buttons:e.categoriesDefault,height:"40px","selected-option":"Goles","font-size":n.elementSize.width<=900?"12px":"14px",width:"max-content",onInput:r.changeCategory,pxScroll:200,scrollColor:"none",arrowsScrollHide:!1,arrowsMargin:0,borderWidth:"2px"},null,8,["buttons","font-size","onInput"])]),t.createElementVNode("div",p2,[t.createVNode(c,{pxScroll:198,scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(13,29,41,0) 0%, rgba(13,29,41,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(13,29,41,0) 0%, rgba(13,29,41,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.topData,(h,m)=>(t.openBlock(),t.createElementBlock("div",{key:m,class:t.normalizeClass(["gsc-best__players__item",m==0?"margin-none":""])},[t.createVNode(d,{data:{player_id:h.id,player_name:this.isTeam?h.name:r.formatPlayerName(h.name),player_position:h.position,player_stat:h.total,category:"Total",top:m<9?"0"+(m+1):m+1,team_logo:h.logo,player_photo:h.img},"show-shield-team":!0,"active-videos":!0,onClickMosaic:r.clickMosaic,onOpenmedia:r.onOpenMedia,namePlayerFontSize:"13px",namePositionFontSize:"10px",numbertopLeft:"-15px",numberFontFamily:"Oswald-SemiBold",totalFontSize:"12px",totalFont:"Poppins-Light!important",totalHeight:"21px","is-player":!this.isTeam},null,8,["data","onClickMosaic","onOpenmedia","is-player"])],2))),128))]),_:1})])],512)}const h2=ie(Ca,[["render",u2],["__scopeId","data-v-a5fb54bf"]]),f2={PO1:"CFI",PO2:"CFV",PO3:"SFI",PO4:"SFV",PO5:"FI",PO6:"FV"},g2={DF:"Dieciseisavos",OF:"Octavos",CF:"Cuartos",SF:"Semifinales","3ER":"Tercer lugar",FINAL:"Final"},y2={4:"Octavos",5:"Cuartos",6:"Semifinales",7:"Final"},b2=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},Ba={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},Ti=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},Oi=Ba.setup;Ba.setup=Oi?(e,a)=>(Ti(),Oi(e,a)):Ti;const w2=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),_2=["src"],S2={key:1,class:"text"},k2=["src"],C2={class:"stats"},B2=w2(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),E2={class:"numstats"},N2={class:"leyend"};function x2(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",null,[o.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",i.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([r.customStyle,i.status&&o.typeOnOff&&r.customActive]),onClick:a[0]||(a[0]=(...s)=>r.btnClick&&r.btnClick(...s))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,_2)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",S2,t.toDisplayString(o.textValue),1)):t.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,k2)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...s)=>r.btnClick&&r.btnClick(...s))},[t.createElementVNode("div",C2,[B2,t.createElementVNode("div",E2,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",N2,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const T2=b2(Ba,[["render",x2],["__scopeId","data-v-fb269a1e"]]),O2={class:"gsc-dropdown__main-container__item-selected"},V2=["height","width"],$2=["stroke"],A2={class:"gsc-dropdown__items-container"},z2=["onClick"],R2={key:0,class:"gsc-dropdown__items-footer"},I2={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:a}){const o=e,n=t.ref({}),i=t.ref(null),r=t.ref(o.isMultipleOption?-1:0),s=t.ref(!1);t.watch(()=>o.items,(f,u)=>{if(!o.modelValue&&(!o.onlyFirstTime||!u||!u.length)&&f&&f.length){if(o.defaultItemByProp){const g=o.items.findIndex(y=>y[o.defaultItemByProp.propName]===o.defaultItemByProp.value);g!==-1?(r.value=g,n.value=f[g]):(r.value=0,n.value=f[0])}else n.value=f[o.defaultItemByIndex];a("input",n.value)}},{immediate:!0}),t.watch(()=>o.modelValue,f=>{if(f){const u=o.items.findIndex(g=>typeof f=="object"?JSON.stringify(g)===JSON.stringify(f):g===f);u!==-1&&(r.value=u,n.value=o.items[u],a("update:modelValue",n.value))}},{immediate:!0});const l=t.computed(()=>({height:o.height,width:o.width,backgroundColor:o.backgroundColor,borderRadius:`${o.borderRadius}px`,border:`${o.borderType} ${o.borderWidth}px ${o.borderColor}`,color:o.color,"--hover-background-color":o.hoverBackgroundColor,"--list-item-padding":o.listItemPadding,"--list-background-color":o.listBackgroundColor,"--list-height":o.listHeight,"--list-item-selected-color":o.listItemSelectedColor,"--list-item-selected-background-color":o.listItemSelectedBackgroundColor,"--list-item-color":o.listItemColor,"--list-border-radius":`${o.listBorderRadius}`,"--list-border-color":o.listBorderColor,"--list-width":o.isListSameWidth?o.width:"fit-content","--list-border-width":`${o.listBorderWidth}px`,"--footer-border":`${o.footerBorderWidth}px solid ${o.footerBorderColor}`,"--dropdown-opacity":o.isDisabled?"0.5":"1","--dropdown-cursor":o.isDisabled?"not-allowed":"pointer","--dropdown-font-size":o.fontSize?o.fontSize:"14px"})),p=t.computed(()=>({height:`${o.arrowHeight}px`,width:`${o.arrowWidth}px`}));function d(){o.isDisabled||(s.value=!s.value)}function c(f){i.value&&!i.value.contains(f.target)&&(s.value=!1)}function h(f,u){o.isMultipleOption?r.value=-1:(r.value=u,s.value=!1),n.value=f,a("input",n.value),a("update:modelValue",n.value)}function m(){s.value=!1,a("click-ready")}return t.onMounted(()=>{document.addEventListener("click",c)}),t.onBeforeMount(()=>{document.removeEventListener("click",c)}),(f,u)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:i,class:"gsc-dropdown",style:t.normalizeStyle(l.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:d},[t.createElementVNode("div",O2,[t.renderSlot(f.$slots,"default",{selectedItem:n.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":s.value}]),style:t.normalizeStyle(p.value)},[(t.openBlock(),t.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,$2)],8,V2))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",A2,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${o.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(g,y)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:y===r.value}]),key:y,onClick:C=>h(g,y)},[t.renderSlot(f.$slots,"availableItem",{item:g})],10,z2))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",R2,[t.createVNode(t.unref(T2),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:m})])):t.createCommentVNode("",!0)])],512),[[t.vShow,s.value]])]),_:3})],4))}},F2=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},P2={class:"tournament-select__selected-tournament"},L2={class:"tournament-select__selected-tournament__logo"},D2=["src"],M2={class:"tournament-select__selected-tournament__name"},j2={__name:"GSCTournamentSelect",props:{apiUrl:{type:String,default:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments"},fontFamily:{type:String,default:"Poppins-Light"},logosUrl:{type:String,default:"https://az755631.vo.msecnd.net/todoelfut/"},logoFileType:{type:String,default:"png"},height:{type:String,default:"40px"},width:{type:String,default:"179px"},borderRadius:{type:Number,default:8},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},backgroundColor:{type:String,default:"#0d1d29"},color:{type:String,default:"white"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},currentSeasonId:{type:Number,default:0}},emits:["input"],setup(e,{emit:a}){const o=e,n=t.ref([]),i=t.computed(()=>{const h={};return o.fontFamily&&(h["font-family"]=`${o.fontFamily}`),h}),r=t.computed(()=>n.value.find(h=>h.seasonsIds.has(o.currentSeasonId))||n.value[0]);async function s(){try{if(o.items&&o.items.length)n.value=[...o.items];else if(o.apiUrl){const h=await p();n.value=h.map(m=>({...m.tournament,seasons:m.seasons,seasonsIds:m.seasons.reduce((f,u)=>(f.add(u.id),f),new Set)})).sort((m,f)=>m.order-f.order)}}catch(h){throw new Error(h)}}function l(h){const m=new XMLHttpRequest,f=`${o.logosUrl}${h}.${o.logoFileType}`;return m.open("HEAD",f,!1),m.send(),m.status!==404}async function p(){try{return(await fetch(o.apiUrl)).json()}catch(h){return Promise.reject(h)}}function d(h){a("input",h)}function c(h){a("input",h)}return t.onMounted(()=>{s()}),(h,m)=>(t.openBlock(),t.createElementBlock("div",{class:"tournament-select",style:t.normalizeStyle(i.value)},[t.createVNode(t.unref(I2),t.mergeProps(o,{"model-value":r.value,items:n.value,onInput:d,"onUpdate:modelValue":c}),{default:t.withCtx(({selectedItem:f})=>[t.createElementVNode("div",P2,[t.createElementVNode("div",L2,[l(f.id)?(t.openBlock(),t.createElementBlock("img",{key:0,src:`${o.logosUrl}${f.id}.${o.logoFileType}`,alt:""},null,8,D2)):t.createCommentVNode("",!0)]),t.createElementVNode("div",M2,t.toDisplayString(f.name),1)])]),availableItem:t.withCtx(({item:f})=>[t.createElementVNode("div",null,t.toDisplayString(f.name),1)]),_:1},16,["model-value","items"])],4))}},v2=F2(j2,[["__scopeId","data-v-355af272"]]),W2=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},Ea={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},Vi=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},$i=Ea.setup;Ea.setup=$i?(e,a)=>(Vi(),$i(e,a)):Vi;const U2=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),H2=["src"],G2={key:1,class:"text"},J2=["src"],q2={class:"stats"},Z2=U2(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),X2={class:"numstats"},K2={class:"leyend"};function Y2(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",null,[o.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",i.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([r.customStyle,i.status&&o.typeOnOff&&r.customActive]),onClick:a[0]||(a[0]=(...s)=>r.btnClick&&r.btnClick(...s))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,H2)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",G2,t.toDisplayString(o.textValue),1)):t.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,J2)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...s)=>r.btnClick&&r.btnClick(...s))},[t.createElementVNode("div",q2,[Z2,t.createElementVNode("div",X2,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",K2,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const Q2=W2(Ea,[["render",Y2],["__scopeId","data-v-fb269a1e"]]),eb={class:"gsc-dropdown__main-container__item-selected"},tb=["height","width"],ob=["stroke"],ab={class:"gsc-dropdown__items-container"},nb=["onClick"],rb={key:0,class:"gsc-dropdown__items-footer"},ib={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:a}){const o=e,n=t.ref({}),i=t.ref(null),r=t.ref(o.isMultipleOption?-1:0),s=t.ref(!1);t.watch(()=>o.items,(f,u)=>{if(!o.modelValue&&(!o.onlyFirstTime||!u||!u.length)&&f&&f.length){if(o.defaultItemByProp){const g=o.items.findIndex(y=>y[o.defaultItemByProp.propName]===o.defaultItemByProp.value);g!==-1?(r.value=g,n.value=f[g]):(r.value=0,n.value=f[0])}else n.value=f[o.defaultItemByIndex];a("input",n.value)}},{immediate:!0}),t.watch(()=>o.modelValue,f=>{if(f){const u=o.items.findIndex(g=>typeof f=="object"?JSON.stringify(g)===JSON.stringify(f):g===f);u!==-1&&(r.value=u,n.value=o.items[u],a("update:modelValue",n.value))}},{immediate:!0});const l=t.computed(()=>({height:o.height,width:o.width,backgroundColor:o.backgroundColor,borderRadius:`${o.borderRadius}px`,border:`${o.borderType} ${o.borderWidth}px ${o.borderColor}`,color:o.color,"--hover-background-color":o.hoverBackgroundColor,"--list-item-padding":o.listItemPadding,"--list-background-color":o.listBackgroundColor,"--list-height":o.listHeight,"--list-item-selected-color":o.listItemSelectedColor,"--list-item-selected-background-color":o.listItemSelectedBackgroundColor,"--list-item-color":o.listItemColor,"--list-border-radius":`${o.listBorderRadius}`,"--list-border-color":o.listBorderColor,"--list-width":o.isListSameWidth?o.width:"fit-content","--list-border-width":`${o.listBorderWidth}px`,"--footer-border":`${o.footerBorderWidth}px solid ${o.footerBorderColor}`,"--dropdown-opacity":o.isDisabled?"0.5":"1","--dropdown-cursor":o.isDisabled?"not-allowed":"pointer","--dropdown-font-size":o.fontSize?o.fontSize:"14px"})),p=t.computed(()=>({height:`${o.arrowHeight}px`,width:`${o.arrowWidth}px`}));function d(){o.isDisabled||(s.value=!s.value)}function c(f){i.value&&!i.value.contains(f.target)&&(s.value=!1)}function h(f,u){o.isMultipleOption?r.value=-1:(r.value=u,s.value=!1),n.value=f,a("input",n.value),a("update:modelValue",n.value)}function m(){s.value=!1,a("click-ready")}return t.onMounted(()=>{document.addEventListener("click",c)}),t.onBeforeMount(()=>{document.removeEventListener("click",c)}),(f,u)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:i,class:"gsc-dropdown",style:t.normalizeStyle(l.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:d},[t.createElementVNode("div",eb,[t.renderSlot(f.$slots,"default",{selectedItem:n.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":s.value}]),style:t.normalizeStyle(p.value)},[(t.openBlock(),t.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,ob)],8,tb))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",ab,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${o.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(g,y)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:y===r.value}]),key:y,onClick:C=>h(g,y)},[t.renderSlot(f.$slots,"availableItem",{item:g})],10,nb))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",rb,[t.createVNode(t.unref(Q2),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:m})])):t.createCommentVNode("",!0)])],512),[[t.vShow,s.value]])]),_:3})],4))}},sb=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},lb={class:"season-name"},cb={class:"items-list-season"},db={__name:"GSC-SeasonSelect",props:{seasons:{type:Array,default:()=>[]},currentSeasonId:{type:Number,default:0}},emits:["input"],setup(e,{emit:a}){const o=e,n=t.computed(()=>o.seasons.find(s=>s.id===o.currentSeasonId));function i(s){a("input",s)}function r(s){a("input",s)}return(s,l)=>(t.openBlock(),t.createBlock(t.unref(ib),{items:e.seasons,"model-value":n.value,height:"40px",width:"179px","background-color":"#0d1d29",color:"white","border-color":"rgba(255, 255, 255, 0.2)","font-family":"Poppins-Regular","border-radius":8,onInput:r,"onUpdate:modelValue":i},{default:t.withCtx(({selectedItem:p})=>[t.createElementVNode("div",lb,[t.createElementVNode("span",null,t.toDisplayString(p.name),1)])]),availableItem:t.withCtx(({item:p})=>[t.createElementVNode("span",cb,t.toDisplayString(p.name),1)]),_:1},8,["items","model-value"]))}},mb=sb(db,[["__scopeId","data-v-3a11087d"]]);function Ai(e,a){return function(){return e.apply(a,arguments)}}const{toString:pb}=Object.prototype,{getPrototypeOf:Na}=Object,Zt=(e=>a=>{const o=pb.call(a);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),Te=e=>(e=e.toLowerCase(),a=>Zt(a)===e),Xt=e=>a=>typeof a===e,{isArray:Ye}=Array,ht=Xt("undefined");function ub(e){return e!==null&&!ht(e)&&e.constructor!==null&&!ht(e.constructor)&&me(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const zi=Te("ArrayBuffer");function hb(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&zi(e.buffer),a}const fb=Xt("string"),me=Xt("function"),Ri=Xt("number"),Kt=e=>e!==null&&typeof e=="object",gb=e=>e===!0||e===!1,Yt=e=>{if(Zt(e)!=="object")return!1;const a=Na(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},yb=Te("Date"),bb=Te("File"),wb=Te("Blob"),_b=Te("FileList"),Sb=e=>Kt(e)&&me(e.pipe),kb=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||me(e.append)&&((a=Zt(e))==="formdata"||a==="object"&&me(e.toString)&&e.toString()==="[object FormData]"))},Cb=Te("URLSearchParams"),Bb=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ft(e,a,{allOwnKeys:o=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),Ye(e))for(n=0,i=e.length;n<i;n++)a.call(null,e[n],n,e);else{const r=o?Object.getOwnPropertyNames(e):Object.keys(e),s=r.length;let l;for(n=0;n<s;n++)l=r[n],a.call(null,e[l],l,e)}}function Ii(e,a){a=a.toLowerCase();const o=Object.keys(e);let n=o.length,i;for(;n-- >0;)if(i=o[n],a===i.toLowerCase())return i;return null}const Fi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Pi=e=>!ht(e)&&e!==Fi;function xa(){const{caseless:e}=Pi(this)&&this||{},a={},o=(n,i)=>{const r=e&&Ii(a,i)||i;Yt(a[r])&&Yt(n)?a[r]=xa(a[r],n):Yt(n)?a[r]=xa({},n):Ye(n)?a[r]=n.slice():a[r]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&ft(arguments[n],o);return a}const Eb=(e,a,o,{allOwnKeys:n}={})=>(ft(a,(i,r)=>{o&&me(i)?e[r]=Ai(i,o):e[r]=i},{allOwnKeys:n}),e),Nb=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),xb=(e,a,o,n)=>{e.prototype=Object.create(a.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),o&&Object.assign(e.prototype,o)},Tb=(e,a,o,n)=>{let i,r,s;const l={};if(a=a||{},e==null)return a;do{for(i=Object.getOwnPropertyNames(e),r=i.length;r-- >0;)s=i[r],(!n||n(s,e,a))&&!l[s]&&(a[s]=e[s],l[s]=!0);e=o!==!1&&Na(e)}while(e&&(!o||o(e,a))&&e!==Object.prototype);return a},Ob=(e,a,o)=>{e=String(e),(o===void 0||o>e.length)&&(o=e.length),o-=a.length;const n=e.indexOf(a,o);return n!==-1&&n===o},Vb=e=>{if(!e)return null;if(Ye(e))return e;let a=e.length;if(!Ri(a))return null;const o=new Array(a);for(;a-- >0;)o[a]=e[a];return o},$b=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&Na(Uint8Array)),Ab=(e,a)=>{const o=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=o.next())&&!n.done;){const i=n.value;a.call(e,i[0],i[1])}},zb=(e,a)=>{let o;const n=[];for(;(o=e.exec(a))!==null;)n.push(o);return n},Rb=Te("HTMLFormElement"),Ib=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,o,n){return o.toUpperCase()+n}),Li=(({hasOwnProperty:e})=>(a,o)=>e.call(a,o))(Object.prototype),Fb=Te("RegExp"),Di=(e,a)=>{const o=Object.getOwnPropertyDescriptors(e),n={};ft(o,(i,r)=>{let s;(s=a(i,r,e))!==!1&&(n[r]=s||i)}),Object.defineProperties(e,n)},Pb=e=>{Di(e,(a,o)=>{if(me(e)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const n=e[o];if(me(n)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},Lb=(e,a)=>{const o={},n=i=>{i.forEach(r=>{o[r]=!0})};return Ye(e)?n(e):n(String(e).split(a)),o},Db=()=>{},Mb=(e,a)=>(e=+e,Number.isFinite(e)?e:a),Ta="abcdefghijklmnopqrstuvwxyz",Mi="0123456789",ji={DIGIT:Mi,ALPHA:Ta,ALPHA_DIGIT:Ta+Ta.toUpperCase()+Mi},jb=(e=16,a=ji.ALPHA_DIGIT)=>{let o="";const{length:n}=a;for(;e--;)o+=a[Math.random()*n|0];return o};function vb(e){return!!(e&&me(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Wb=e=>{const a=new Array(10),o=(n,i)=>{if(Kt(n)){if(a.indexOf(n)>=0)return;if(!("toJSON"in n)){a[i]=n;const r=Ye(n)?[]:{};return ft(n,(s,l)=>{const p=o(s,i+1);!ht(p)&&(r[l]=p)}),a[i]=void 0,r}}return n};return o(e,0)},Ub=Te("AsyncFunction"),Hb=e=>e&&(Kt(e)||me(e))&&me(e.then)&&me(e.catch),k={isArray:Ye,isArrayBuffer:zi,isBuffer:ub,isFormData:kb,isArrayBufferView:hb,isString:fb,isNumber:Ri,isBoolean:gb,isObject:Kt,isPlainObject:Yt,isUndefined:ht,isDate:yb,isFile:bb,isBlob:wb,isRegExp:Fb,isFunction:me,isStream:Sb,isURLSearchParams:Cb,isTypedArray:$b,isFileList:_b,forEach:ft,merge:xa,extend:Eb,trim:Bb,stripBOM:Nb,inherits:xb,toFlatObject:Tb,kindOf:Zt,kindOfTest:Te,endsWith:Ob,toArray:Vb,forEachEntry:Ab,matchAll:zb,isHTMLForm:Rb,hasOwnProperty:Li,hasOwnProp:Li,reduceDescriptors:Di,freezeMethods:Pb,toObjectSet:Lb,toCamelCase:Ib,noop:Db,toFiniteNumber:Mb,findKey:Ii,global:Fi,isContextDefined:Pi,ALPHABET:ji,generateString:jb,isSpecCompliantForm:vb,toJSONObject:Wb,isAsyncFn:Ub,isThenable:Hb};function L(e,a,o,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),o&&(this.config=o),n&&(this.request=n),i&&(this.response=i)}k.inherits(L,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:k.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const vi=L.prototype,Wi={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Wi[e]={value:e}}),Object.defineProperties(L,Wi),Object.defineProperty(vi,"isAxiosError",{value:!0}),L.from=(e,a,o,n,i,r)=>{const s=Object.create(vi);return k.toFlatObject(e,s,function(l){return l!==Error.prototype},l=>l!=="isAxiosError"),L.call(s,e.message,a,o,n,i),s.cause=e,s.name=e.name,r&&Object.assign(s,r),s};const Gb=null;function Oa(e){return k.isPlainObject(e)||k.isArray(e)}function Ui(e){return k.endsWith(e,"[]")?e.slice(0,-2):e}function Hi(e,a,o){return e?e.concat(a).map(function(n,i){return n=Ui(n),!o&&i?"["+n+"]":n}).join(o?".":""):a}function Jb(e){return k.isArray(e)&&!e.some(Oa)}const qb=k.toFlatObject(k,{},null,function(e){return/^is[A-Z]/.test(e)});function Qt(e,a,o){if(!k.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,o=k.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,u){return!k.isUndefined(u[f])});const n=o.metaTokens,i=o.visitor||d,r=o.dots,s=o.indexes,l=(o.Blob||typeof Blob<"u"&&Blob)&&k.isSpecCompliantForm(a);if(!k.isFunction(i))throw new TypeError("visitor must be a function");function p(f){if(f===null)return"";if(k.isDate(f))return f.toISOString();if(!l&&k.isBlob(f))throw new L("Blob is not supported. Use a Buffer instead.");return k.isArrayBuffer(f)||k.isTypedArray(f)?l&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function d(f,u,g){let y=f;if(f&&!g&&typeof f=="object"){if(k.endsWith(u,"{}"))u=n?u:u.slice(0,-2),f=JSON.stringify(f);else if(k.isArray(f)&&Jb(f)||(k.isFileList(f)||k.endsWith(u,"[]"))&&(y=k.toArray(f)))return u=Ui(u),y.forEach(function(C,A){!(k.isUndefined(C)||C===null)&&a.append(s===!0?Hi([u],A,r):s===null?u:u+"[]",p(C))}),!1}return Oa(f)?!0:(a.append(Hi(g,u,r),p(f)),!1)}const c=[],h=Object.assign(qb,{defaultVisitor:d,convertValue:p,isVisitable:Oa});function m(f,u){if(!k.isUndefined(f)){if(c.indexOf(f)!==-1)throw Error("Circular reference detected in "+u.join("."));c.push(f),k.forEach(f,function(g,y){(!(k.isUndefined(g)||g===null)&&i.call(a,g,k.isString(y)?y.trim():y,u,h))===!0&&m(g,u?u.concat(y):[y])}),c.pop()}}if(!k.isObject(e))throw new TypeError("data must be an object");return m(e),a}function Gi(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return a[o]})}function Va(e,a){this._pairs=[],e&&Qt(e,this,a)}const Ji=Va.prototype;Ji.append=function(e,a){this._pairs.push([e,a])},Ji.toString=function(e){const a=e?function(o){return e.call(this,o,Gi)}:Gi;return this._pairs.map(function(o){return a(o[0])+"="+a(o[1])},"").join("&")};function Zb(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function qi(e,a,o){if(!a)return e;const n=o&&o.encode||Zb,i=o&&o.serialize;let r;if(i?r=i(a,o):r=k.isURLSearchParams(a)?a.toString():new Va(a,o).toString(n),r){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}class Xb{constructor(){this.handlers=[]}use(a,o,n){return this.handlers.push({fulfilled:a,rejected:o,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){k.forEach(this.handlers,function(o){o!==null&&a(o)})}}const Zi=Xb,Xi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Kb=typeof URLSearchParams<"u"?URLSearchParams:Va,Yb=typeof FormData<"u"?FormData:null,Qb=typeof Blob<"u"?Blob:null,ew={isBrowser:!0,classes:{URLSearchParams:Kb,FormData:Yb,Blob:Qb},protocols:["http","https","file","blob","url","data"]},Ki=typeof window<"u"&&typeof document<"u",tw=(e=>Ki&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),ow=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",aw=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ki,hasStandardBrowserEnv:tw,hasStandardBrowserWebWorkerEnv:ow},Symbol.toStringTag,{value:"Module"})),Oe={...aw,...ew};function nw(e,a){return Qt(e,new Oe.classes.URLSearchParams,Object.assign({visitor:function(o,n,i,r){return Oe.isNode&&k.isBuffer(o)?(this.append(n,o.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},a))}function rw(e){return k.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function iw(e){const a={},o=Object.keys(e);let n;const i=o.length;let r;for(n=0;n<i;n++)r=o[n],a[r]=e[r];return a}function Yi(e){function a(o,n,i,r){let s=o[r++];if(s==="__proto__")return!0;const l=Number.isFinite(+s),p=r>=o.length;return s=!s&&k.isArray(i)?i.length:s,p?(k.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!l):((!i[s]||!k.isObject(i[s]))&&(i[s]=[]),a(o,n,i[s],r)&&k.isArray(i[s])&&(i[s]=iw(i[s])),!l)}if(k.isFormData(e)&&k.isFunction(e.entries)){const o={};return k.forEachEntry(e,(n,i)=>{a(rw(n),i,o,0)}),o}return null}function sw(e,a,o){if(k.isString(e))try{return(a||JSON.parse)(e),k.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(o||JSON.stringify)(e)}const $a={transitional:Xi,adapter:["xhr","http"],transformRequest:[function(e,a){const o=a.getContentType()||"",n=o.indexOf("application/json")>-1,i=k.isObject(e);if(i&&k.isHTMLForm(e)&&(e=new FormData(e)),k.isFormData(e))return n?JSON.stringify(Yi(e)):e;if(k.isArrayBuffer(e)||k.isBuffer(e)||k.isStream(e)||k.isFile(e)||k.isBlob(e))return e;if(k.isArrayBufferView(e))return e.buffer;if(k.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let r;if(i){if(o.indexOf("application/x-www-form-urlencoded")>-1)return nw(e,this.formSerializer).toString();if((r=k.isFileList(e))||o.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Qt(r?{"files[]":e}:e,s&&new s,this.formSerializer)}}return i||n?(a.setContentType("application/json",!1),sw(e)):e}],transformResponse:[function(e){const a=this.transitional||$a.transitional,o=a&&a.forcedJSONParsing,n=this.responseType==="json";if(e&&k.isString(e)&&(o&&!this.responseType||n)){const i=!(a&&a.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(r){if(i)throw r.name==="SyntaxError"?L.from(r,L.ERR_BAD_RESPONSE,this,null,this.response):r}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Oe.classes.FormData,Blob:Oe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};k.forEach(["delete","get","head","post","put","patch"],e=>{$a.headers[e]={}});const Aa=$a,lw=k.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),cw=e=>{const a={};let o,n,i;return e&&e.split(`
|
|
29
|
-
`).forEach(function(r){i=r.indexOf(":"),o=r.substring(0,i).trim().toLowerCase(),n=r.substring(i+1).trim(),!(!o||a[o]&&
|
|
30
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...o){const n=new this(a);return o.forEach(i=>n.set(i)),n}static accessor(a){const o=(this[
|
|
31
|
-
`+r.map(
|
|
32
|
-
`):" "+as(r[0]):"as no adapter specified";throw new L("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:Ia};function Fa(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new yt(null,e)}function rs(e){return Fa(e),e.headers=Fe.from(e.headers),e.data=Ra.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ns.getAdapter(e.adapter||Aa.adapter)(e).then(function(a){return Fa(e),a.data=Ra.call(e,e.transformResponse,a),a.headers=Fe.from(a.headers),a},function(a){return es(a)||(Fa(e),a&&a.response&&(a.response.data=Ra.call(e,e.transformResponse,a.response),a.response.headers=Fe.from(a.response.headers))),Promise.reject(a)})}const is=e=>e instanceof Fe?e.toJSON():e;function Qe(e,a){a=a||{};const o={};function n(d,c,h){return k.isPlainObject(d)&&k.isPlainObject(c)?k.merge.call({caseless:h},d,c):k.isPlainObject(c)?k.merge({},c):k.isArray(c)?c.slice():c}function i(d,c,h){if(k.isUndefined(c)){if(!k.isUndefined(d))return n(void 0,d,h)}else return n(d,c,h)}function r(d,c){if(!k.isUndefined(c))return n(void 0,c)}function s(d,c){if(k.isUndefined(c)){if(!k.isUndefined(d))return n(void 0,d)}else return n(void 0,c)}function l(d,c,h){if(h in a)return n(d,c);if(h in e)return n(void 0,d)}const p={url:r,method:r,data:r,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(d,c)=>i(is(d),is(c),!0)};return k.forEach(Object.keys(Object.assign({},e,a)),function(d){const c=p[d]||i,h=c(e[d],a[d],d);k.isUndefined(h)&&c!==l||(o[d]=h)}),o}const ss="1.6.7",Pa={};["object","boolean","number","function","string","symbol"].forEach((e,a)=>{Pa[e]=function(o){return typeof o===e||"a"+(a<1?"n ":" ")+e}});const ls={};Pa.transitional=function(e,a,o){function n(i,r){return"[Axios v"+ss+"] Transitional option '"+i+"'"+r+(o?". "+o:"")}return(i,r,s)=>{if(e===!1)throw new L(n(r," has been removed"+(a?" in "+a:"")),L.ERR_DEPRECATED);return a&&!ls[r]&&(ls[r]=!0,console.warn(n(r," has been deprecated since v"+a+" and will be removed in the near future"))),e?e(i,r,s):!0}};function Bw(e,a,o){if(typeof e!="object")throw new L("options must be an object",L.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const r=n[i],s=a[r];if(s){const l=e[r],p=l===void 0||s(l,r,e);if(p!==!0)throw new L("option "+r+" must be "+p,L.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new L("Unknown option "+r,L.ERR_BAD_OPTION)}}const La={assertOptions:Bw,validators:Pa},Me=La.validators;class oo{constructor(a){this.defaults=a,this.interceptors={request:new Zi,response:new Zi}}async request(a,o){try{return await this._request(a,o)}catch(n){if(n instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const r=i.stack?i.stack.replace(/^.+\n/,""):"";n.stack?r&&!String(n.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
33
|
-
`+r):n.stack=r}throw n}}_request(a,o){typeof a=="string"?(o=o||{},o.url=a):o=a||{},o=Qe(this.defaults,o);const{transitional:n,paramsSerializer:i,headers:r}=o;n!==void 0&&La.assertOptions(n,{silentJSONParsing:Me.transitional(Me.boolean),forcedJSONParsing:Me.transitional(Me.boolean),clarifyTimeoutError:Me.transitional(Me.boolean)},!1),i!=null&&(k.isFunction(i)?o.paramsSerializer={serialize:i}:La.assertOptions(i,{encode:Me.function,serialize:Me.function},!0)),o.method=(o.method||this.defaults.method||"get").toLowerCase();let s=r&&k.merge(r.common,r[o.method]);r&&k.forEach(["delete","get","head","post","put","patch","common"],u=>{delete r[u]}),o.headers=Fe.concat(s,r);const l=[];let p=!0;this.interceptors.request.forEach(function(u){typeof u.runWhen=="function"&&u.runWhen(o)===!1||(p=p&&u.synchronous,l.unshift(u.fulfilled,u.rejected))});const d=[];this.interceptors.response.forEach(function(u){d.push(u.fulfilled,u.rejected)});let c,h=0,m;if(!p){const u=[rs.bind(this),void 0];for(u.unshift.apply(u,l),u.push.apply(u,d),m=u.length,c=Promise.resolve(o);h<m;)c=c.then(u[h++],u[h++]);return c}m=l.length;let f=o;for(h=0;h<m;){const u=l[h++],g=l[h++];try{f=u(f)}catch(y){g.call(this,y);break}}try{c=rs.call(this,f)}catch(u){return Promise.reject(u)}for(h=0,m=d.length;h<m;)c=c.then(d[h++],d[h++]);return c}getUri(a){a=Qe(this.defaults,a);const o=ts(a.baseURL,a.url);return qi(o,a.params,a.paramsSerializer)}}k.forEach(["delete","get","head","options"],function(e){oo.prototype[e]=function(a,o){return this.request(Qe(o||{},{method:e,url:a,data:(o||{}).data}))}}),k.forEach(["post","put","patch"],function(e){function a(o){return function(n,i,r){return this.request(Qe(r||{},{method:e,headers:o?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}oo.prototype[e]=a(),oo.prototype[e+"Form"]=a(!0)});const ao=oo;class Da{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(i){o=i});const n=this;this.promise.then(i=>{if(!n._listeners)return;let r=n._listeners.length;for(;r-- >0;)n._listeners[r](i);n._listeners=null}),this.promise.then=i=>{let r;const s=new Promise(l=>{n.subscribe(l),r=l}).then(i);return s.cancel=function(){n.unsubscribe(r)},s},a(function(i,r,s){n.reason||(n.reason=new yt(i,r,s),o(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const o=this._listeners.indexOf(a);o!==-1&&this._listeners.splice(o,1)}static source(){let a;return{token:new Da(function(o){a=o}),cancel:a}}}const Ew=Da;function Nw(e){return function(a){return e.apply(null,a)}}function xw(e){return k.isObject(e)&&e.isAxiosError===!0}const Ma={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(Ma).forEach(([e,a])=>{Ma[a]=e});const Tw=Ma;function cs(e){const a=new ao(e),o=Ai(ao.prototype.request,a);return k.extend(o,ao.prototype,a,{allOwnKeys:!0}),k.extend(o,a,null,{allOwnKeys:!0}),o.create=function(n){return cs(Qe(e,n))},o}const q=cs(Aa);q.Axios=ao,q.CanceledError=yt,q.CancelToken=Ew,q.isCancel=es,q.VERSION=ss,q.toFormData=Qt,q.AxiosError=L,q.Cancel=q.CanceledError,q.all=function(e){return Promise.all(e)},q.spread=Nw,q.isAxiosError=xw,q.mergeConfig=Qe,q.AxiosHeaders=Fe,q.formToJSON=e=>Yi(k.isHTMLForm(e)?new FormData(e):e),q.getAdapter=ns.getAdapter,q.HttpStatusCode=Tw,q.default=q;const ds=q,Ow=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},ja={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)}}},ms=()=>{t.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},ps=ja.setup;ja.setup=ps?(e,a)=>(ms(),ps(e,a)):ms;const Vw={ref:"gscScrollableContainer",class:"scrollable-container"},$w={class:"scrollable-arrows"},Aw=["width","height","viewBox"],zw=["stroke"],Rw={class:"scrollable-wrapper"},Iw={class:"scrollable-arrows"},Fw=["width","height","viewBox"],Pw=["stroke"];function Lw(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",Vw,[o.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",r.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...s)=>r.scrollLeft&&r.scrollLeft(...s))},[t.createElementVNode("div",$w,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:r.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:o.arrowsColor},null,8,zw)],8,Aw))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:a[1]||(a[1]=(...s)=>r.getScroll&&r.getScroll(...s))},[t.createElementVNode("div",Rw,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),o.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",r.hideShowRightArrow]),onClick:a[2]||(a[2]=(...s)=>r.scrollRight&&r.scrollRight(...s))},[t.createElementVNode("div",Iw,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:r.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:o.arrowsColor},null,8,Pw)],8,Fw))])],2)):t.createCommentVNode("",!0)],512)}const Dw=Ow(ja,[["render",Lw],["__scopeId","data-v-b548a08d"]]),et=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o};let us=null;const va={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)us=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),us.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},hs=()=>{t.useCssVars(e=>({d6f07504:e.colorBackgroundHome+"45","6d0848cf":e.colorBackgroundAway+"45","524ee4ec":e.colorBackgroundHome,"524bd2fb":e.colorBackgroundAway}))},fs=va.setup;va.setup=fs?(e,a)=>(hs(),fs(e,a)):hs;const no=e=>(t.pushScopeId("data-v-45034b51"),e=e(),t.popScopeId(),e),Mw=no(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),jw=[Mw],vw=no(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),Ww=["src"],Uw=no(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),Hw=no(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),Gw=["src"],Jw=["src"],qw={class:"text-container"};function Zw(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(r.thumbnailhighlights)},[t.createElementVNode("div",{class:t.normalizeClass(r.playbutton),onClick:a[0]||(a[0]=(...s)=>r.onclickPlayVideos&&r.onclickPlayVideos(...s))},jw,2),o.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.date)},t.toDisplayString(o.dateGame),3)):t.createCommentVNode("",!0),o.matchday!=""&&o.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(r.containerinfogame)},[o.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.matchcontainer)},t.toDisplayString(o.matchday),3)):t.createCommentVNode("",!0),o.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(r.seasoncontainer)},t.toDisplayString(o.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),vw,t.createElementVNode("img",{src:o.background,alt:"",class:"bkg-blackwhite position-image"},null,8,Ww),t.createElementVNode("div",{class:t.normalizeClass([r.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(r.baselogoright)},null,2),Uw,Hw,t.createElementVNode("img",{src:o.logoHome,alt:"",class:t.normalizeClass(r.teamlogo)},null,10,Gw),t.createElementVNode("img",{src:o.logoAway,alt:"",class:t.normalizeClass(r.logoright)},null,10,Jw),t.createElementVNode("div",qw,[t.createElementVNode("span",{class:t.normalizeClass(r.secondline)},t.toDisplayString(o.score),3),t.createElementVNode("div",{class:t.normalizeClass(r.titlename)},t.toDisplayString(o.titleCategory),3)])],2)}const Xw=et(va,[["render",Zw],["__scopeId","data-v-45034b51"]]);let gs=null;const Wa={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)gs=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),gs.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},ys=()=>{t.useCssVars(e=>({"46c0698e":e.colorBackgroundHome,"12d9d27a":e.colorBackgroundHome+"36"}))},bs=Wa.setup;Wa.setup=bs?(e,a)=>(ys(),bs(e,a)):ys;const bt=e=>(t.pushScopeId("data-v-9caaef34"),e=e(),t.popScopeId(),e),Kw=bt(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),Yw=[Kw],Qw=bt(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),e_=["src"],t_=bt(()=>t.createElementVNode("div",{class:"base-logo"},null,-1)),o_=["src"],a_=bt(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),n_={class:"text-container"},r_={class:"player-image position-image"},i_=["src"],s_=["src"],l_=["src"],c_=bt(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1));function d_(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(r.thumbnailhighlights)},[t.createElementVNode("div",{class:t.normalizeClass(r.playbutton),onClick:a[0]||(a[0]=(...s)=>r.onclickPlayVideos&&r.onclickPlayVideos(...s))},Yw,2),Qw,t.createElementVNode("img",{src:o.background,alt:"",class:"bkg-blackwhite position-image"},null,8,e_),t_,t.createElementVNode("img",{src:o.logoHome,alt:"",class:t.normalizeClass(r.teamlogo)},null,10,o_),a_,t.createElementVNode("div",n_,[t.createElementVNode("span",{class:t.normalizeClass(r.firstline)},t.toDisplayString(o.namePlayer),3),t.createElementVNode("span",{class:t.normalizeClass(r.secondline),style:t.normalizeStyle(o.nameCategory=="Balones recuperados en disputa "?"font-size: 25px":"")},t.toDisplayString(o.nameCategory),7)]),t.createElementVNode("div",r_,[o.typeImg==0?(t.openBlock(),t.createElementBlock("img",{key:0,src:o.photoProfile,class:t.normalizeClass(r.playerimage)},null,10,i_)):t.createCommentVNode("",!0),o.typeImg==1?(t.openBlock(),t.createElementBlock("img",{key:1,src:o.photoProfile,alt:""},null,8,s_)):t.createCommentVNode("",!0),o.typeImg==2?(t.openBlock(),t.createElementBlock("img",{key:2,src:o.photoProfile,class:"img-number"},null,8,l_)):t.createCommentVNode("",!0)]),c_],2)}const m_=et(Wa,[["render",d_],["__scopeId","data-v-9caaef34"]]);let ws=null;const Ua={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)ws=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),ws.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},_s=()=>{t.useCssVars(e=>({"5d98c65b":e.colorBackgroundHome,"42a72466":e.colorBackgroundHome+"36"}))},Ss=Ua.setup;Ua.setup=Ss?(e,a)=>(_s(),Ss(e,a)):_s;const ro=e=>(t.pushScopeId("data-v-4412e88c"),e=e(),t.popScopeId(),e),p_=ro(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),u_=[p_],h_=ro(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),f_=["src"],g_={width:"275",height:"125",viewBox:"0 0 275 125",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"base-logo"},y_=["fill"],b_=["id"],w_=["stop-color"],__=["stop-color"],S_=["src"],k_=ro(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),C_={class:"text-container"},B_=ro(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1));function E_(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(r.thumbnailhighlights)},[t.createElementVNode("div",{class:t.normalizeClass(r.playbutton),onClick:a[0]||(a[0]=(...s)=>r.onclickPlayVideos&&r.onclickPlayVideos(...s))},u_,2),h_,t.createElementVNode("img",{src:o.background,alt:"",class:"bkg-blackwhite position-image"},null,8,f_),(t.openBlock(),t.createElementBlock("svg",g_,[t.createElementVNode("path",{d:"M274.641 124.094L0 0.675049V124.094H274.641Z",fill:"url(#paint0_linear_7_"+o.nameTeam.replaceAll(" ","")+")"},null,8,y_),t.createElementVNode("defs",null,[t.createElementVNode("linearGradient",{id:"paint0_linear_7_"+o.nameTeam.replaceAll(" ",""),x1:"58.6578",y1:"15.5938",x2:"58.6578",y2:"124.094",gradientUnits:"userSpaceOnUse"},[t.createElementVNode("stop",{"stop-color":o.colorBackgroundHome},null,8,w_),t.createElementVNode("stop",{offset:"1","stop-color":o.colorBackgroundHome},null,8,__)],8,b_)])])),t.createElementVNode("img",{class:t.normalizeClass(r.teamlogo),src:o.logoHome,alt:""},null,10,S_),k_,t.createElementVNode("div",C_,[t.createElementVNode("span",{class:t.normalizeClass(r.firstline)},t.toDisplayString(o.nameTeam),3),t.createElementVNode("div",{class:t.normalizeClass(r.secondline)},t.toDisplayString(o.nameCategory),3)]),B_],2)}const N_=et(Ua,[["render",E_],["__scopeId","data-v-4412e88c"]]);let ks=null;const Ha={components:{},props:{colorFontHome:{type:String,default:"#000000"},colorFontAway:{type:String,default:"#000000"},type:{type:Number,default:0},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{type:String,default:""},photoProfile:{type:String,default:""},logoHome:{type:String,default:""},logoAway:{type:String,default:""},scoreHome:{type:String,default:""},scoreAway:{type:String,default:""},background:{type:String,default:""},typeImg:{type:Number,default:0},nameHomeTeam:{type:String,default:""},nameAwayTeam:{type:String,default:""},namePlayer:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},points(){const e=this.gamesContainerWidth;return e<=400?"points400":e<=540?"points540":e<=650?"points650":"points"},teamname(){const e=this.gamesContainerWidth;return e<=400?"team-name400":e<=540?"team-name540":e<=650?"team-name650":"team-name"},teamscore(){const e=this.gamesContainerWidth;return e<=400?"team-score400":e<=540?"team-score540":e<=650?"team-score650":"team-score"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},hometeam(){const e=this.gamesContainerWidth;return e<=400?"home-team400":e<=540?"home-team540":e<=650?"home-team650":"home-team"},awayteam(){const e=this.gamesContainerWidth;return e<=400?"away-team400":e<=540?"away-team540":e<=650?"away-team650":"away-team"},texttitle(){const e=this.gamesContainerWidth;return e<=400?"text-title400":e<=540?"text-title540":e<=650?"text-title650":"text-title"},texttitle2(){const e=this.gamesContainerWidth;return e<=400?"text-title2400":e<=540?"text-title2540":e<=650?"text-title2650":"text-title2"},playerimage(){const e=this.gamesContainerWidth;return e<=400?"player-image400":e<=540?"player-image540":e<=650?"player-image650":"player-image"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)ks=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),ks.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Cs=()=>{t.useCssVars(e=>({"102d345c":e.colorBackgroundHome,"1033583e":e.colorBackgroundAway,"2c786ece":e.colorBackgroundAway+"62","53f7e0b6":e.colorBackgroundHome+"36"}))},Bs=Ha.setup;Ha.setup=Bs?(e,a)=>(Cs(),Bs(e,a)):Cs;const io=e=>(t.pushScopeId("data-v-3a68172d"),e=e(),t.popScopeId(),e),x_=io(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),T_=io(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),O_=[T_],V_={class:"player-container"},$_=["src"],A_=["src"],z_=["src"],R_={class:"container-score"},I_=["src"],F_=["src"],P_=["src"],L_=io(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),D_=io(()=>t.createElementVNode("div",{class:"gradient-color"},null,-1));function M_(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(r.thumbnailhighlights)},[x_,t.createElementVNode("div",{class:t.normalizeClass(r.playbutton),onClick:a[0]||(a[0]=(...s)=>r.onclickPlayVideos&&r.onclickPlayVideos(...s))},O_,2),t.createElementVNode("div",V_,[o.type==0?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(r.texttitle)},t.toDisplayString(o.nameCategory),3)):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(r.texttitle2)},t.toDisplayString(o.nameCategory),3)),o.typeImg==0?(t.openBlock(),t.createElementBlock("img",{key:2,src:o.photoProfile,class:t.normalizeClass(r.playerimage)},null,10,$_)):t.createCommentVNode("",!0),o.typeImg==1?(t.openBlock(),t.createElementBlock("img",{key:3,src:o.photoProfile,alt:""},null,8,A_)):t.createCommentVNode("",!0),o.typeImg==2?(t.openBlock(),t.createElementBlock("img",{key:4,src:o.photoProfile,class:"img-number"},null,8,z_)):t.createCommentVNode("",!0),t.createElementVNode("div",R_,[t.createElementVNode("div",{class:t.normalizeClass(r.hometeam)},[t.createElementVNode("span",{class:t.normalizeClass(r.teamname),style:t.normalizeStyle({color:o.colorFontAway})},t.toDisplayString(o.nameHomeTeam),7),t.createElementVNode("img",{src:o.logoHome,alt:"",class:t.normalizeClass(r.teamlogo)},null,10,I_),t.createElementVNode("span",{class:t.normalizeClass(r.teamscore)},t.toDisplayString(o.scoreHome),3)],2),t.createElementVNode("span",{class:t.normalizeClass(r.points)},":",2),t.createElementVNode("div",{class:t.normalizeClass(r.awayteam)},[t.createElementVNode("span",{class:t.normalizeClass(r.teamscore)},t.toDisplayString(o.scoreAway),3),t.createElementVNode("img",{src:o.logoAway,alt:"",class:t.normalizeClass(r.teamlogo)},null,10,F_),t.createElementVNode("span",{class:t.normalizeClass(r.teamname),style:t.normalizeStyle({color:o.colorFontAway})},t.toDisplayString(o.nameAwayTeam),7)],2)])]),t.createElementVNode("img",{src:o.background,alt:"",class:"bkg-blackwhite position-image"},null,8,P_),L_,D_],2)}const j_=et(Ha,[["render",M_],["__scopeId","data-v-3a68172d"]]);let Es=null;const Ga={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)Es=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Es.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Ns=()=>{t.useCssVars(e=>({"7f6829cd":e.colorBackgroundHome+"30","1ad47d61":e.colorBackgroundHome}))},xs=Ga.setup;Ga.setup=xs?(e,a)=>(Ns(),xs(e,a)):Ns;const so=e=>(t.pushScopeId("data-v-cc315132"),e=e(),t.popScopeId(),e),v_=so(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),W_=[v_],U_={class:"player-image position-image"},H_=["src"],G_=["src"],J_=["src"],q_=["src"],Z_=so(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),X_=["src"],K_=so(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),Y_={class:"text-container"},Q_=so(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),eS={class:"base-logo",width:"91",height:"216",viewBox:"0 0 91 216",fill:"none",xmlns:"http://www.w3.org/2000/svg"},tS=["fill"];function oS(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(r.thumbnailhighlights)},[t.createElementVNode("div",{class:t.normalizeClass(r.playbutton),onClick:a[0]||(a[0]=(...s)=>r.onclickPlayVideos&&r.onclickPlayVideos(...s))},W_,2),t.createElementVNode("div",U_,[o.typeImg==0?(t.openBlock(),t.createElementBlock("img",{key:0,src:o.photoProfile,class:t.normalizeClass(r.playerimage)},null,10,H_)):t.createCommentVNode("",!0),o.typeImg==1?(t.openBlock(),t.createElementBlock("img",{key:1,src:o.photoProfile,alt:""},null,8,G_)):t.createCommentVNode("",!0),o.typeImg==2?(t.openBlock(),t.createElementBlock("img",{key:2,src:o.photoProfile,class:"img-number"},null,8,J_)):t.createCommentVNode("",!0)]),t.createElementVNode("img",{src:o.logoHome,alt:"",class:"team-logo"},null,8,q_),Z_,t.createElementVNode("img",{src:o.background,alt:"",class:"bkg-blackwhite position-image"},null,8,X_),K_,t.createElementVNode("div",Y_,[t.createElementVNode("span",{class:t.normalizeClass(r.firstline)},"MEJORES JUGADAS",2),t.createElementVNode("span",{class:t.normalizeClass(r.secondline)},t.toDisplayString(o.nameCategory),3),t.createElementVNode("div",{class:t.normalizeClass(r.playername),style:t.normalizeStyle({color:o.colorFont})},t.toDisplayString(o.namePlayer),7)]),Q_,(t.openBlock(),t.createElementBlock("svg",eS,[t.createElementVNode("path",{d:"M91.5 216L0 -0.5H91.5V216Z",fill:o.colorBackgroundHome},null,8,tS)]))],2)}const aS=et(Ga,[["render",oS],["__scopeId","data-v-cc315132"]]);function nS(e){const a=t.ref({width:0,height:0});function o(){const n=e.value.getBoundingClientRect();a.value.width=n.width,a.value.height=n.height}return t.onMounted(()=>{o(),window.addEventListener("resize",o)}),t.onUnmounted(()=>{window.removeEventListener("resize",o)}),{elementSize:a}}const rS="_ptg_lp0fw_5",iS="_ptgtitle_lp0fw_15",sS="_ptgtitle450_lp0fw_47",lS="_pgtcontainercard_lp0fw_79",cS="_pgtcontainercard350_lp0fw_89",dS={ptg:rS,ptgtitle:iS,ptgtitle450:sS,pgtcontainercard:lS,pgtcontainercard350:cS},Ja={components:{GSCSlider:Dw,GSCThumbnailCategory:m_,GSCThumbnailCategoryTeam:N_,GSCThumbnailHighlightGamePlayer:j_,GSCThumbnailSummaryPlayer:aS,GSCThumbnailHighlightGameHistoric:Xw},setup(){const e=t.ref("ptgDiv"),{elementSize:a}=nS(e);return{ptgDiv:e,elementSize:a}},props:{title:{type:String,default:"100% de sus participaciones en cada partido:"},type:{type:Number,default:0},data:{type:Object,default:()=>{}},backgroundColor:{type:String,default:"#0D1D29"},backgroundFooter:{type:String,default:"#192733"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsScrollHide:{type:Boolean,default:!1},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",printData:[],teamsInfo:[],playerPhoto:!0,homeTeam:0,awayTeam:0,goalCategories:[12,55,"35_r","54_r"],resumeCategories:[607,608,12,55,54,35,14,52,15,53,466,477]}},watch:{data:{immediate:!0,handler(e){this.getTeamsInfo(e),this.getStats(e)}}},computed:{ptgtitleClass(){return this.elementSize.width<=450?this.$style.ptgtitle450:this.$style.ptgtitle},pgtcontainercardClass(){return this.elementSize.width<=350?this.$style.pgtcontainercard350:this.$style.pgtcontainercard}},methods:{onclickPlayVideos(e){let a=[],o=e.data.game_id?[e.data.game_id]:null;e.type==2?e.data.position_id==1?e.data.category==0?a=[55,324,323,608,39,774,802,52,53,40,54]:a=e.data.category:e.data.category==0?a=e.isAllPlays?[56,57,59,60,326,213,214,215,216,583,584,122,123,124,125,585,586,128,129,130,131,133,327,587,588,136,137,138,139,589,590,142,143,144,145,146,147,485,486,487,488,489,490,491,492,10,27,597,598,538,539,599,600,541,542,601,602,545,546,603,604,548,549,561,562,100,563,564,103,104,105,106,107,108,565,566,111,567,568,114,115,116,117,118,119,4,88,5,34,402,459,460,461,233,403,456,457,458,236,404,453,454,455,240,405,450,451,452,243,408,447,448,449,283,409,444,445,446,285,410,441,442,443,290,411,438,439,440,292,412,435,436,437,297,414,415,416,417,244,418,419,420,421,401,581,582,331,506,530,579,580,334,507,531,577,578,344,508,532,575,576,424,509,533,573,574,341,529,534,571,572,340,528,535,569,570,427,527,536,348,349,350,465,352,353,354,466,14,52,15,53,218,219,220,221,496,497,498,499,500,501,502,503,217,504,505,521,522,543,33,209,208,517,206,207,26,325,16,51,463,151,154,156,591,592,159,162,163,429,165,593,594,168,171,172,430,174,595,596,177,180,181,431,467,358,361,363,366,369,370,469,372,376,378,379,470,381,385,387,388,471,607,608,210,212]:[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:a=e.data.category:e.type==3?e.data.category==0?a=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:a=e.data.category:e.data.category!=0?a=e.data.category:a=[607,608,12,55,54,35,14,52,15,53,466,477],this.data.isPrematch===1&&(o=null);const n=[1,2,3];let i={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:e.categories&&e.categories.length?e.categories:a,gameIds:o,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[e.matchResult]:n,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(i.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",i)},onClickVideos(e){this.$emit("onClickVideos",e)},onClickCard(e){this.$emit("onClickCard",e)},async getTeamsInfo(e){const a=await ds.create({headers:{Authorization:`${this.token}`}}).get("https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/"+e.season);for(let o=0;o<a.data.teams.length;o++)this.teamsInfo[a.data.teams[o].team_id]=a.data.teams[o]},async getStats(e){const a=ds.create({headers:{Authorization:`${this.token}`}});var o=[],n={},i={};if(this.type==0){i=await a.get("https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/"+e.season+"/"+e.player);for(let r=0;r<i.data.seasons[e.season].games_played.length;r++)n={player_id:e.player,color:i.data.info_thumbnails.colors.background_color,colorfont:i.data.info_thumbnails.colors.font_color,photo_profile:i.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.info_thumbnails.images.player_in_action[0]:"https://az755631.vo.msecnd.net/players-profile/"+e.player+".png",team_logo:"https://az755631.vo.msecnd.net/teams-150/"+i.data.seasons[e.season].games_played[r].home_team+".png",player_name:i.data.seasons[e.season].games_played[r].home_team_acronym+" "+i.data.seasons[e.season].games_played[r].home_team_score+" : "+i.data.seasons[e.season].games_played[r].visiting_team_score+" "+i.data.seasons[e.season].games_played[r].visiting_team_acronym,team_id:i.data.seasons[e.season].games_played[r].game_id,team_id_b:i.data.seasons[e.season].games_played[r].home_team,season_id:i.data.seasons[e.season].games_played[r].season_id,name:"",category:0,team_id:i.data.team_id,game_id:i.data.seasons[e.season].games_played[r].game_id,position_id:i.data.position_id,scorehome:i.data.seasons[e.season].games_played[r].home_team_score,scoreaway:i.data.seasons[e.season].games_played[r].visiting_team_score,hometeamacronym:i.data.seasons[e.season].games_played[r].home_team_acronym,visitingteamacronym:i.data.seasons[e.season].games_played[r].visiting_team_acronym,seasonname:i.data.seasons[e.season].name,match:i.data.seasons[e.season].games_played[r].matchday_name.replace("Matchday","Jor"),score:i.data.seasons[e.season].games_played[r].home_team_score+" : "+i.data.seasons[e.season].games_played[r].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.info_thumbnails.images.background_player_in_action[0],backgroundhome:i.data.seasons[e.season].games_played[r].info_thumbnails.home_colors.background_color,backgroundaway:i.data.seasons[e.season].games_played[r].info_thumbnails.away_colors.background_color,colorfont_home:i.data.seasons[e.season].games_played[r].info_thumbnails.home_colors.font_color,colorfont_away:i.data.seasons[e.season].games_played[r].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+i.data.seasons[e.season].games_played[r].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+i.data.seasons[e.season].games_played[r].visiting_team+".png",total:i.data.seasons[e.season].games_played[r].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+i.data.seasons[e.season].games_played[r].home_team+"_"+i.data.seasons[e.season].games_played[r].season_id+"_r1.jpg"},o.push(n)}if(this.type==1){i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/teams/"+e.team);for(let r=0;r<i.data.categories.length;r++){this.playerPhoto=!1;const s=Math.floor(Math.random()*i.data.categories[r].info_thumbnails.images.background_default_categories.length),l=Math.floor(Math.random()*i.data.categories[r].info_thumbnails.images.background_default_teams.length);n={player_action:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.categories[r].info_thumbnails.images.background_default_categories[s],background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.categories[r].info_thumbnails.images.background_default_teams[l],color:i.data.categories[r].info_thumbnails.colors.background_color,team_logo:"https://az755631.vo.msecnd.net/teams-80/"+i.data.categories[r].info_thumbnails.team_logo,player_name:i.data.categories[r].category_name,team_name:this.teamsInfo[i.data.team_id].colloquial_name,team_id:i.data.team_id,colorfont:i.data.categories[r].info_thumbnails.colors.font_color,team_id_b:i.data.team_id,category:i.data.categories[r].categories,season_id:i.data.season_id,total:i.data.categories[r].total,background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+i.data.team_id+"_"+i.data.season_id+"_r1.jpg"},o.push(n)}}if(this.type==2){i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/players/"+e.player);for(let r=0;r<i.data.categories.length;r++){this.playerPhoto=!1;const s=Math.floor(Math.random()*i.data.categories[r].info_thumbnails.images.player_in_action.length),l=Math.floor(Math.random()*i.data.categories[r].info_thumbnails.images.background_default_categories.length);n={player_action:i.data.categories[r].info_thumbnails.images.player_in_action[s]?"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.categories[r].info_thumbnails.images.player_in_action[s]:"https://az755631.vo.msecnd.net/players-profile/"+e.player+".png",background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.categories[r].info_thumbnails.images.background_default_categories[l],color:i.data.categories[r].info_thumbnails.colors.background_color,team_logo:"https://az755631.vo.msecnd.net/teams-80/"+i.data.categories[r].info_thumbnails.team_logo,player_name:i.data.categories[r].category_name,season_id:e.season,colorfont:i.data.categories[r].info_thumbnails.colors.font_color,player_id:e.player,team_id:i.data.categories[r].info_thumbnails.colors.team_id,category:i.data.categories[r].categories,total:i.data.categories[r].total,background_card:"https://az755631.vo.msecnd.net/players-profile/"+e.player+".png"},o.push(n)}}if(this.type==3){this.playerPhoto=!1,i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/games/"+e.game);for(let r=0;r<i.data.games[0].players.length;r++){const s=Math.floor(Math.random()*i.data.games[0].players[r].info_thumbnails.images.background_player_in_action.length),l=Math.floor(Math.random()*i.data.games[0].players[r].info_thumbnails.images.player_in_action.length);n={colorbackgroundhome:i.data.games[0].players[r].info_thumbnails.colors.background_color,colorbackgroundaway:"",nameplayer:i.data.games[0].players[r].player_name,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.games[0].players[r].info_thumbnails.images.background_player_in_action[s],namecategory:"RESUMEN",namehometeam:"",nameawayteam:"",category:0,colorfont:i.data.games[0].players[r].info_thumbnails.colors.font_color,team_id:i.data.games[0].players[r].team_id,player_id:i.data.games[0].players[r].player_id,game_id:i.data.games[0].game_id,season_id:i.data.season_id,logohome:i.data.games[0].players[r].team_logo,photoprofile:i.data.games[0].players[r].info_thumbnails.images.player_in_action[l]?"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.games[0].players[r].info_thumbnails.images.player_in_action[l]:"https://az755631.vo.msecnd.net/players-profile/"+i.data.games[0].players[r].player_id+".png",logoaway:"",scoreaway:"",scorehome:""},o.push(n)}}if(this.type==4){this.playerPhoto=!1,i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/specifics-plays/seasons/"+e.season+"/games/"+e.game);for(let r=0;r<i.data.home_team.categories.length;r++){const s=Math.floor(Math.random()*i.data.home_team.categories[r].info_thumbnails.images.background_default_teams.length);n={game_id:i.data.game_id,season_id:i.data.season_id,team_id:i.data.home_team.team_id,category:i.data.home_team.categories[r].categories.concat(i.data.home_team.categories[r].rival_categories),background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.home_team.categories[r].info_thumbnails.images.background_default_categories[s],player_action:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.home_team.categories[r].info_thumbnails.images.background_default_categories[s],team_logo:"https://az755631.vo.msecnd.net/teams-150/"+i.data.home_team.team_id+".png",color:i.data.home_team.categories[r].info_thumbnails.colors.background_color,colorfont:i.data.home_team.categories[r].info_thumbnails.colors.font_color,player_name:i.data.home_team.categories[r].category_name,total:i.data.home_team.categories[r].total,background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+i.data.home_team.team_id+"_"+i.data.season_id+"_r1.jpg"},o.push(n)}}if(this.type==5){this.playerPhoto=!1,i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/specifics-plays/seasons/"+e.season+"/games/"+e.game);for(let r=0;r<i.data.visiting_team.categories.length;r++){const s=Math.floor(Math.random()*i.data.visiting_team.categories[r].info_thumbnails.images.background_default_categories.length);n={game_id:i.data.game_id,season_id:i.data.season_id,team_id:i.data.home_team.team_id,category:i.data.visiting_team.categories[r].categories.concat(i.data.visiting_team.categories[r].rival_categories),background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.visiting_team.categories[r].info_thumbnails.images.background_default_categories[s],player_action:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.visiting_team.categories[r].info_thumbnails.images.background_default_categories[s],team_logo:"https://az755631.vo.msecnd.net/teams-150/"+i.data.visiting_team.team_id+".png",color:i.data.visiting_team.categories[r].info_thumbnails.colors.background_color,colorfont:i.data.visiting_team.categories[r].info_thumbnails.colors.font_color,player_name:i.data.visiting_team.categories[r].category_name,total:i.data.visiting_team.categories[r].total,background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+i.data.visiting_team.team_id+"_"+i.data.season_id+"_r1.jpg"},o.push(n)}}if(this.type==6){i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/teams/"+e.team+"/categories/"+e.category);for(let r=0;r<i.data.best_plays.length;r++)n={category:i.data.best_plays[r].categories,team_id:i.data.team_id,game_id:i.data.best_plays[r].game_id,season_id:i.data.season_id,backgroundhome:i.data.best_plays[r].info_thumbnails.home_colors.background_color,backgroundaway:i.data.best_plays[r].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+i.data.best_plays[r].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+i.data.best_plays[r].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.best_plays[r].info_thumbnails.images.background_default_categories[0],match:"",seasonname:"",score:i.data.best_plays[r].score[0]+" : "+i.data.best_plays[r].score[1]},o.push(n)}if(this.type==7){i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/teams/"+e.team+"/categories/"+e.category);for(let r=0;r<i.data.best_plays.length;r++)n={category:i.data.best_plays[r].categories,team_id:i.data.team_id,game_id:i.data.best_plays[r].game_id,season_id:i.data.season_id,backgroundhome:i.data.best_plays[r].info_thumbnails.home_colors.background_color,colorfont_home:i.data.best_plays[r].info_thumbnails.home_colors.font_color,colorfont_away:i.data.best_plays[r].info_thumbnails.away_colors.font_color,backgroundaway:i.data.best_plays[r].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+i.data.best_plays[r].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+i.data.best_plays[r].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.best_plays[r].info_thumbnails.images.background_default_categories[0],match:"",seasonname:"",score:i.data.best_plays[r].score[0]+" : "+i.data.best_plays[r].score[1]},o.push(n)}if(this.type==8){i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/players/"+e.player+"/categories/"+e.category);for(let r=0;r<i.data.best_plays.length;r++)n={category:i.data.best_plays[r].categories,team_id:i.data.team_id,game_id:i.data.best_plays[r].game_id,season_id:i.data.season_id,player_id:i.data.player_id,backgroundhome:i.data.best_plays[r].info_thumbnails.home_colors.background_color,backgroundaway:i.data.best_plays[r].info_thumbnails.away_colors.background_color,colorfont_home:i.data.best_plays[r].info_thumbnails.home_colors.font_color,colorfont_away:i.data.best_plays[r].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+i.data.best_plays[r].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+i.data.best_plays[r].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.best_plays[r].info_thumbnails.images.background_default_categories[0],match:"",scorehome:i.data.best_plays[r].score[0],scoreaway:i.data.best_plays[r].score[1],photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+i.data.best_plays[r].info_thumbnails.player_logo,hometeamacronym:i.data.best_plays[r].home_team_acronym,visitingteamacronym:i.data.best_plays[r].away_team_acronym,seasonname:"",score:i.data.best_plays[r].score[0]+" : "+i.data.best_plays[r].score[1]},o.push(n)}if(this.type==9){i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/players/"+e.player+"/categories/"+e.category);for(let r=0;r<i.data.best_plays.length;r++)n={category:i.data.best_plays[r].categories,team_id:i.data.team_id,player_id:i.data.player_id,game_id:i.data.best_plays[r].game_id,season_id:i.data.season_id,backgroundhome:i.data.best_plays[r].info_thumbnails.home_colors.background_color,backgroundaway:i.data.best_plays[r].info_thumbnails.away_colors.background_color,colorfont_home:i.data.best_plays[r].info_thumbnails.home_colors.font_color,colorfont_away:i.data.best_plays[r].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+i.data.best_plays[r].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+i.data.best_plays[r].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.best_plays[r].info_thumbnails.images.background_default_categories[0],match:"",scorehome:i.data.best_plays[r].score[0],scoreaway:i.data.best_plays[r].score[1],seasonname:"",photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+i.data.best_plays[r].info_thumbnails.player_logo,score:i.data.best_plays[r].score[0]+" : "+i.data.best_plays[r].score[1]},o.push(n)}if(this.type==10){const r=await a.get("https://ws8d8ye2ii.execute-api.us-west-2.amazonaws.com/prod/v4/seasonsByTeam/"+e.team);for(let s=0;s<r.data.seasons[e.season].games.length;s++){const l=Math.floor(Math.random()*r.data.seasons[e.season].games[s].info_thumbnails.images.background_default_games.length);n={photo_profile:"https://az755631.vo.msecnd.net/teams-150/"+r.data.seasons[e.season].games[s].visiting_team+".png",team_logo:"https://az755631.vo.msecnd.net/teams-150/"+r.data.seasons[e.season].games[s].home_team+".png",player_name:r.data.seasons[e.season].games[s].home_team_acronym+" "+r.data.seasons[e.season].games[s].home_team_score+" : "+r.data.seasons[e.season].games[s].visiting_team_score+" "+r.data.seasons[e.season].games[s].visiting_team_acronym,team_id:r.data.seasons[e.season].games[s].game_id,team_id_b:r.data.seasons[e.season].games[s].home_team,season_id:r.data.seasons[e.season].games[s].season_id,name:"",category:0,colorfont_home:r.data.best_plays[s].info_thumbnails.home_colors.colors.font_color,colorfont_away:r.data.best_plays[s].info_thumbnails.away_colors.colors.font_color,game_id:r.data.seasons[e.season].games[s].game_id,seasonname:r.data.seasons[e.season].name,match:r.data.seasons[e.season].games[s].matchday_name.replace("Matchday","Jor"),score:r.data.seasons[e.season].games[s].home_team_score+" : "+r.data.seasons[e.season].games[s].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+r.data.seasons[e.season].games[s].info_thumbnails.images.background_default_games[l],backgroundhome:r.data.seasons[e.season].games[s].info_thumbnails.home_colors.background_color,backgroundaway:r.data.seasons[e.season].games[s].info_thumbnails.away_colors.background_color,colorfont_home:r.data.best_plays[s].info_thumbnails.home_colors.font_color,colorfont_away:r.data.best_plays[s].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+r.data.seasons[e.season].games[s].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+r.data.seasons[e.season].games[s].visiting_team+".png",total:r.data.seasons[e.season].games[s].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+r.data.seasons[e.season].games[s].home_team+"_"+r.data.seasons[e.season].games[s].season_id+"_r1.jpg"},o.push(n)}}if(this.type==11){const r=await a.get("https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/"+e.season+"/"+e.player);for(let s=0;s<r.data.seasons[e.season].games_played.length;s++)Math.floor(Math.random()*r.data.seasons[e.season].games_played[s].info_thumbnails.images.background_default_games.length),n={category:0,player_id:e.player,team_id:r.data.team_id,game_id:r.data.seasons[e.season].games_played[s].game_id,position_id:r.data.position_id,color:r.data.info_thumbnails.colors.background_color,photo_profile:"https://golstatsimages.blob.core.windows.net/images-library/"+r.data.info_thumbnails.images.player_in_action[0],team_logo:"https://az755631.vo.msecnd.net/teams-150/"+r.data.seasons[e.season].games_played[s].home_team+".png",player_name:r.data.seasons[e.season].games_played[s].home_team_acronym+" "+r.data.seasons[e.season].games_played[s].home_team_score+" : "+r.data.seasons[e.season].games_played[s].visiting_team_score+" "+r.data.seasons[e.season].games_played[s].visiting_team_acronym,team_id_b:r.data.seasons[e.season].games_played[s].home_team,season_id:r.data.seasons[e.season].games_played[s].season_id,name:r.data.seasons[e.season].games_played[s].player_name,seasonname:r.data.seasons[e.season].name,match:r.data.seasons[e.season].games_played[s].matchday_name.replace("Matchday","Jor"),scorehome:r.data.seasons[e.season].games_played[s].home_team_score,scoreaway:r.data.seasons[e.season].games_played[s].visiting_team_score,hometeamacronym:r.data.seasons[e.season].games_played[s].home_team_acronym,visitingteamacronym:r.data.seasons[e.season].games_played[s].visiting_team_acronym,background:"https://golstatsimages.blob.core.windows.net/images-library/"+r.data.info_thumbnails.images.background_player_in_action[0],backgroundhome:r.data.seasons[e.season].games_played[s].info_thumbnails.home_colors.background_color,backgroundaway:r.data.seasons[e.season].games_played[s].info_thumbnails.away_colors.background_color,colorfont_home:r.data.seasons[e.season].games_played[s].info_thumbnails.home_colors.font_color,colorfont_away:r.data.seasons[e.season].games_played[s].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+r.data.seasons[e.season].games_played[s].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+r.data.seasons[e.season].games_played[s].visiting_team+".png",total:r.data.seasons[e.season].games_played[s].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+r.data.seasons[e.season].games_played[s].home_team+"_"+r.data.seasons[e.season].games_played[s].season_id+"_r1.jpg"},o.push(n)}if(this.type==12){const r=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/categories/"+e.category);for(let s=0;s<r.data.length;s++)for(let l=0;l<r.data[s].best_plays.length;l++)n={category:r.data[s].best_plays[l].categories,game_id:r.data[s].best_plays[l].game_id,season_id:r.data[s].season_id,backgroundhome:r.data[s].best_plays[l].info_thumbnails.home_colors.background_color,backgroundaway:r.data[s].best_plays[l].info_thumbnails.away_colors.background_color,colorfont_home:r.data[s].best_plays[l].info_thumbnails.home_colors.font_color,colorfont_away:r.data[s].best_plays[l].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+r.data[s].best_plays[l].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+r.data[s].best_plays[l].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+r.data[s].best_plays[l].info_thumbnails.images.background_default_categories[0],match:"",scorehome:r.data[s].best_plays[l].score[0],scoreaway:r.data[s].best_plays[l].score[1],seasonname:"",photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+r.data[s].best_plays[l].info_thumbnails.player_logo,score:r.data[s].best_plays[l].score[0]+" : "+r.data[s].best_plays[l].score[1]},o.push(n)}if(this.type==13){const r=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/categories/"+e.category);for(let s=0;s<r.data.length;s++)for(let l=0;l<r.data[s].best_plays.length;l++)n={category:r.data[s].best_plays[l].categories,game_id:r.data[s].best_plays[l].game_id,season_id:r.data[s].season_id,backgroundhome:r.data[s].best_plays[l].info_thumbnails.home_colors.background_color,backgroundaway:r.data[s].best_plays[l].info_thumbnails.away_colors.background_color,colorfont_home:r.data[s].best_plays[l].info_thumbnails.home_colors.font_color,colorfont_away:r.data[s].best_plays[l].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+r.data[s].best_plays[l].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+r.data[s].best_plays[l].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+r.data[s].best_plays[l].info_thumbnails.images.background_default_categories[0],match:"",scorehome:r.data[s].best_plays[l].score[0],scoreaway:r.data[s].best_plays[l].score[1],seasonname:"",photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+r.data[s].best_plays[l].info_thumbnails.player_logo,score:r.data[s].best_plays[l].score[0]+" : "+r.data[s].best_plays[l].score[1]},o.push(n)}this.printData=o}},async created(){}},Ts=()=>{t.useCssVars(e=>({"11a7c15c":e.backgroundColor}))},Os=Ja.setup;Ja.setup=Os?(e,a)=>(Ts(),Os(e,a)):Ts;function mS(e,a,o,n,i,r){const s=t.resolveComponent("GSCThumbnailCategory"),l=t.resolveComponent("GSCThumbnailCategoryTeam"),p=t.resolveComponent("GSCThumbnailHighlightGamePlayer"),d=t.resolveComponent("GSCThumbnailHighlightGameHistoric"),c=t.resolveComponent("GSCThumbnailSummaryPlayer"),h=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.ptg),ref:"ptgDiv"},[t.createElementVNode("div",{class:t.normalizeClass(r.ptgtitleClass)},t.toDisplayString(o.title),3),t.createVNode(h,{backgroundColor:o.backgroundColor,pxScroll:o.pxScroll,arrows:o.arrows,arrowsScrollHide:o.arrowsScrollHide,arrowsHideOnNoScroll:o.arrowsHideOnNoScroll,arrowsColor:o.arrowsColor,arrowsHeight:o.arrowsWidth,arrowsWidth:o.arrowsWidth,arrowsPadding:o.arrowsPadding,arrowsMargin:o.arrowsMargin,arrowsRadius:o.arrowsRadius,arrowsBorder:o.arrowsBorder,arrowsBackground:o.arrowsBackground,arrowsContainerBgL:o.arrowsContainerBgL,arrowsContainerBgR:o.arrowsContainerBgR,scrollColor:o.scrollColor,arrowsPosition:o.arrowsPosition,height:o.height},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.printData,(m,f)=>(t.openBlock(),t.createElementBlock("div",{key:f,class:t.normalizeClass(r.pgtcontainercardClass),style:t.normalizeStyle(f==0?"margin-left: 0px !important; color: white;":"")},[o.type==2?(t.openBlock(),t.createBlock(s,{key:0,"color-background-home":m.color,"name-player":o.data.player_name,"type-img":"0",background:m.background_action,"name-category":m.player_name,"logo-home":m.team_logo,onOnclickPlayVideos:u=>r.onclickPlayVideos({data:m,type:2}),"photo-profile":m.player_action},null,8,["color-background-home","name-player","background","name-category","logo-home","onOnclickPlayVideos","photo-profile"])):o.type==1||o.type==4||o.type==5?(t.openBlock(),t.createBlock(l,{key:1,type:"team","name-team":m.team_name!=null?m.team_name:"","type-style":"category","color-background-home":m.color,"logo-home":m.team_logo,onOnclickPlayVideos:u=>r.onclickPlayVideos({data:m,type:3}),background:m.player_action,"name-category":m.player_name},null,8,["name-team","color-background-home","logo-home","onOnclickPlayVideos","background","name-category"])):o.type==0?(t.openBlock(),t.createBlock(p,{key:2,items:m,type:2,"name-category":"TODAS SUS JUGADAS","color-background-home":m.backgroundhome,"color-background-away":m.backgroundaway,"color-font-home":m.colorfont_home,"color-font-away":m.colorfont_away,"logo-home":m.logohome,"logo-away":m.logoaway,onOnclickPlayVideos:u=>r.onclickPlayVideos({data:m,type:2,isAllPlays:!0}),background:m.background,"name-home-team":m.hometeamacronym,"name-away-team":m.visitingteamacronym,matchday:m.match,"score-home":m.scorehome,"photo-profile":m.photo_profile,"score-away":m.scoreaway,"season-name":m.seasonname},null,8,["items","color-background-home","color-background-away","color-font-home","color-font-away","logo-home","logo-away","onOnclickPlayVideos","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):o.type==6?(t.openBlock(),t.createBlock(d,{key:3,items:m,"color-background-home":m.backgroundhome,"color-background-away":m.backgroundaway,"logo-home":m.logohome,"logo-away":m.logoaway,background:m.background,"title-category":"GOLES",onOnclickPlayVideos:u=>r.onclickPlayVideos({data:m,type:3,categories:i.goalCategories}),matchday:m.match,"season-name":m.seasonname,score:m.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","onOnclickPlayVideos","matchday","season-name","score"])):o.type==7?(t.openBlock(),t.createBlock(d,{key:4,items:m,"color-background-home":m.backgroundhome,"color-background-away":m.backgroundaway,"logo-home":m.logohome,"logo-away":m.logoaway,background:m.background,"title-category":"RESUMEN",onOnclickPlayVideos:u=>r.onclickPlayVideos({data:m,type:3,categories:i.resumeCategories}),matchday:m.match,"season-name":m.seasonname,score:m.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","onOnclickPlayVideos","matchday","season-name","score"])):o.type==8?(t.openBlock(),t.createBlock(p,{key:5,items:m,type:2,"name-category":"RESUMEN","color-font-home":m.colorfont_home,"color-font-away":m.colorfont_away,"color-background-home":m.backgroundhome,"color-background-away":m.backgroundaway,"logo-home":m.logohome,"logo-away":m.logoaway,onOnclickPlayVideos:u=>r.onclickPlayVideos({data:m,type:2}),background:m.background,"name-home-team":m.hometeamacronym,"name-away-team":m.visitingteamacronym,matchday:m.match,"score-home":m.scorehome,"photo-profile":m.photo_profile,"score-away":m.scoreaway,"season-name":m.seasonname},null,8,["items","color-font-home","color-font-away","color-background-home","color-background-away","logo-home","logo-away","onOnclickPlayVideos","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):o.type==9?(t.openBlock(),t.createBlock(p,{key:6,items:m,type:2,"name-category":"RESUMEN","color-background-home":m.backgroundhome,"color-background-away":m.backgroundaway,"logo-home":m.logohome,onOnclickPlayVideos:u=>r.onclickPlayVideos({data:m,type:2}),"logo-away":m.logoaway,background:m.background,"name-home-team":m.hometeamacronym,"name-away-team":m.visitingteamacronym,matchday:m.match,"score-home":m.scorehome,"photo-profile":m.photo_profile,"score-away":m.scoreaway,"season-name":m.seasonname},null,8,["items","color-background-home","color-background-away","logo-home","onOnclickPlayVideos","logo-away","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):o.type==10?(t.openBlock(),t.createBlock(d,{key:7,items:m,"color-background-home":m.backgroundhome,"color-background-away":m.backgroundaway,"logo-home":m.logohome,"logo-away":m.logoaway,onOnclickPlayVideos:u=>r.onclickPlayVideos({data:m,type:1}),background:m.background,"title-category":"RESUMEN",matchday:m.match,"season-name":m.seasonname,score:m.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","onOnclickPlayVideos","background","matchday","season-name","score"])):o.type==11?(t.openBlock(),t.createBlock(p,{key:8,items:m,type:2,"name-category":"RESUMEN","color-background-home":m.backgroundhome,"color-background-away":m.backgroundaway,"logo-home":m.logohome,"logo-away":m.logoaway,background:m.background,"name-home-team":m.hometeamacronym,"name-away-team":m.visitingteamacronym,matchday:m.match,"color-font-home":m.colorfont_home,"color-font-away":m.colorfont_away,onOnclickPlayVideos:u=>r.onclickPlayVideos({data:m,type:2}),"score-home":m.scorehome,"photo-profile":m.photo_profile,"score-away":m.scoreaway,"season-name":m.seasonname},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","name-home-team","name-away-team","matchday","color-font-home","color-font-away","onOnclickPlayVideos","score-home","photo-profile","score-away","season-name"])):o.type==12?(t.openBlock(),t.createBlock(p,{key:9,items:m,type:2,"name-category":"RESUMEN","color-background-home":m.backgroundhome,"color-background-away":m.backgroundaway,"logo-home":m.logohome,"logo-away":m.logoaway,"color-font-home":m.colorfont_home,"color-font-away":m.colorfont_away,onOnclickPlayVideos:u=>r.onclickPlayVideos({data:m,type:1}),background:m.background,"name-home-team":m.hometeamacronym,"name-away-team":m.visitingteamacronym,matchday:m.match,"score-home":m.scorehome,"photo-profile":m.photo_profile,"score-away":m.scoreaway,"season-name":m.seasonname},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","color-font-home","color-font-away","onOnclickPlayVideos","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):o.type==13?(t.openBlock(),t.createBlock(p,{key:10,items:m,type:2,"name-category":"GOLES","color-background-home":m.backgroundhome,"color-background-away":m.backgroundaway,"logo-home":m.logohome,"logo-away":m.logoaway,onOnclickPlayVideos:u=>r.onclickPlayVideos({data:m,type:1,categories:i.goalCategories}),background:m.background,"name-home-team":m.hometeamacronym,"name-away-team":m.visitingteamacronym,matchday:m.match,"score-home":m.scorehome,"photo-profile":m.photo_profile,"score-away":m.scoreaway,"season-name":m.seasonname},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","onOnclickPlayVideos","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):(t.openBlock(),t.createBlock(c,{key:11,type:"player","color-background-home":m.colorbackgroundhome,"color-background-away":m.colorbackgroundaway,"name-player":m.nameplayer,"type-img":0,onOnclickPlayVideos:u=>r.onclickPlayVideos({data:m,type:2}),background:m.background,"name-home-team":m.namehometeam,"name-away-team":m.nameawayteam,"name-category":"RESUMEN","logo-away":m.logoaway,"logo-home":m.logohome,"color-font":m.colorfont,"score-home":m.scorehome,"photo-profile":m.photoprofile,"score-away":m.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 pS={name:"DiscoverVideos",components:{GscSwitchComponent:Yo,GSCPlayerTeamGame:et(Ja,[["render",mS],["__cssModules",{$style:dS}]]),GSCButton:Ci},props:{userForDiscoverVideos:{type:Object,default:()=>{}},user:{type:Object,default:()=>{}},section:{type:Boolean,default:!1},nextRivalTeam:{type:Object,default:()=>{}},hasNextRival:{type:Boolean,default:!1},tournamentSelected:{type:Object,default:()=>{}},seasonSelected:{type:Object,default:()=>{}}},data(){return{currentTabMoreVideos:"Resumen",currentMobileTab:"Descubre videos",mobileClass:!1,resumeCategory:1000001,goalsCategory:1255e3,resumeType:1,goalsType:2}},mounted(){this.mobileClass=window.innerWidth<768,window.addEventListener("resize",this.handleResize)},methods:{handleResize(){this.mobileClass=window.innerWidth<768},onOpenMedia(e){this.$emit("openmedia",e)},onClickOpenMedia(){let o=1,n=[],i=[],r=0,s=this.user.season,l=[],p=[12,55,"35_r","54_r"],d=[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],c=[55,324,323,608,39,774,802,52,53,40,54];this.tournamentSelected.id===this.user.tournament?(s=this.seasonSelected.id,this.user.is_goalkeeper?(n=[this.user.player],l=c,o=2):this.user.is_player?(i=[this.user.player],l=d,o=2):(r=this.user.team,l=p,o=3)):(l=p,o=1);const h={seasonId:s,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:o,gameIds:null,playerIds:i,goalkeeperIds:n,categoryIds:l,teamId:r,matchResult:[1,2,3],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:""},objectPlaySync:null};this.$emit("openmedia",h)}}},uS=e=>(t.pushScopeId("data-v-626b4da8"),e=e(),t.popScopeId(),e),hS={class:"discover-videos",ref:"myDivRef"},fS={class:"title-and-button"},gS=uS(()=>t.createElementVNode("div",{class:"title-value"},"Descubre videos",-1)),yS={class:"btn-search-videos"};function bS(e,a,o,n,i,r){const s=t.resolveComponent("GSCButton"),l=t.resolveComponent("GscSwitchComponent"),p=t.resolveComponent("GSCPlayerTeamGame");return t.openBlock(),t.createElementBlock("div",hS,[t.createElementVNode("div",fS,[gS,t.createElementVNode("div",yS,[t.createVNode(s,{style:{"margin-top":"4px"},width:"182px","text-value":"Buscar videos","font-color":"#ffffff","font-family":"Poppins-Light","font-size":"16px",icon:"https://golstatsimages.blob.core.windows.net/images-library/icn-buscar-videos.svg","icon-size":"30px","icon-position":"right","button-max-width":"250px",height:"38px","border-radius":"50px","border-width":"1","background-color":"transparent","border-color":"#CBEE6B","active-background-color":"#CBEE6B",onClick:r.onClickOpenMedia},null,8,["onClick"])])]),o.userForDiscoverVideos.type===i.resumeType&&o.hasNextRival?(t.openBlock(),t.createBlock(l,{key:0,style:{"margin-left":"0px"},buttons:["Resumen","Proximo rival"],onInput:a[0]||(a[0]=d=>i.currentTabMoreVideos=d),background:"trasparent",height:"28px",width:"160px",fontSize:"14px","font-family":"Poppins-Light",backgroundOptionActive:"transparent",borderWidth:"2px",type:2,arrow:!1,selectedOption:i.currentTabMoreVideos,onOpenmedia:r.onOpenMedia},null,8,["selectedOption","onOpenmedia"])):t.createCommentVNode("",!0),o.userForDiscoverVideos.type===i.resumeType?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.currentTabMoreVideos=="Resumen"?(t.openBlock(),t.createBlock(p,{key:0,type:7,title:"",style:{"margin-top":"-30px"},backgroundColor:"transparent",data:{season:o.userForDiscoverVideos.season,team:o.userForDiscoverVideos.team,category:i.resumeCategory},width:"100%",onOpenmedia:r.onOpenMedia},null,8,["data","onOpenmedia"])):(t.openBlock(),t.createBlock(p,{key:1,type:7,style:{"margin-top":"-30px"},title:"",backgroundColor:"transparent",data:{season:o.userForDiscoverVideos.season,team:o.nextRivalTeam.id,category:i.resumeCategory},width:"100%",onOpenmedia:r.onOpenMedia},null,8,["data","onOpenmedia"]))],64)):(t.openBlock(),t.createBlock(p,{key:2,style:{"margin-top":"-30px"},type:13,data:{season:o.userForDiscoverVideos.season,category:i.goalsCategory},width:"100%",backgroundColor:"transparent",title:"",onOpenmedia:r.onOpenMedia},null,8,["data","onOpenmedia"]))],512)}const wS={components:{GSCSeasonSelect:mb,GSCTournamentSelect:v2,GSCGames:h1,GSCGridTeamsMatches:wc,GSCPlayersLanding:pc,GSCTops:h2,GSCTableCalendar:dy,DiscoverVideos:ie(pS,[["render",bS],["__scopeId","data-v-626b4da8"]])},setup(){const e=t.ref("landingref"),{elementSize:a}=jl(e);return{landingref:e,elementSize:a}},watch:{team:{immediate:!0,deep:!0,async handler(e){if(Object.keys(this.seasonSelected).length!==0){const a=await this.generateSeasons(this.seasonSelected);this.seasonsSelected=a,this.fetchGames(e,a)}}},closestRound(e){this.selectedRoundKeyIndex=this.tournamentScheduleKeys.findIndex(a=>a===e),this.selectedRound=e}},props:{currentSeasonId:{type:Number,default:0},season:{type:Number,default:1772},isplayer:{type:Boolean,default:!1},user:{type:Object,default:()=>{}},team:{type:Number,default:0},player:{type:Number,default:0},gamesPerMatchDay:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}}},data(){return{defaultGameId:0,lastSeasonsIds:[],gamesPages:new Map,selectedRoundKeyIndex:0,selectedRound:0,fullTournamentScheduleFull:[],defaultMatchDayKey:null,isCupTournament:!1,retries:3,userTeamGames:[],isCupLegacyTournament:!1,tournamentScheduleKeys:[],currentTournamentGames:null,currentTournamentTeams:null,gamesUrl:"https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason/",gamesUrl2:"https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",seasonSelected:{},seasonSelectedDropDowns:{},seasonsSelected:[],fullTournamentSchedule:{},tournamentSelected:{},tournamentSelectedDropDowns:{seasons:[]},playersLength:0,nextRivalId:0,loadDiscover:!1,hasNextRival:!1,tokenFree:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{gamesFullLeague(){var e=[];if(this.fullTournamentScheduleFull&&Object.keys(this.fullTournamentScheduleFull).length>0)for(let a=0;a<this.fullTournamentScheduleFull[this.selectedRound].length;a++)for(let o=0;o<this.fullTournamentScheduleFull[this.selectedRound][a].games.length;o++)e.push(this.fullTournamentScheduleFull[this.selectedRound][a].games[o]);return e},closestRound(){return this.userTeamGames&&this.userTeamGames.length?this.getUserTeamClosestRound(this.fullTournamentScheduleFull):this.getNormalClosestRound(this.fullTournamentScheduleFull)},containerGridCalendarTable(){return this.elementSize.width<=1e3?"container-grid-calendar-table-mobile":"container-grid-calendar-table"},containerbackground(){return this.elementSize.width<=680?"container-background-movil":"container-background"},containerdata(){return this.elementSize.width<=680?"container-data-movil":"container-data"}},methods:{formatUsername(e){const a=e.split(",");let o="",n="";return a[1]?(n=a[1].trim().split(" "),n[0]?o=n[0]:o=a[1]):a[0]&&(n=a[0].trim().split(" "),n[0]?o=n[0]:o=a[0]),o.trim()},onAction(e){this.$emit("action",e)},onOpenMedia(e){this.$emit("openmedia",e)},onOpenProfile(e){this.$emit("onOpenProfile",e)},onClickMatch(e){this.$emit("openGame",e)},onClickCalendar(){const e={type:this.tournamentSelected.id==this.user.tournament?1:0,team:this.team,season:this.seasonSelectedDropDowns};this.$emit("onClickMyCalendar",e)},mapDiscoverVideos(){return{type:this.tournamentSelected.id==this.user.tournament?1:2,team:this.team,season:this.seasonSelectedDropDowns}},moreTops(){const e={team:this.team,season:this.seasonSelectedDropDowns};this.$emit("openTops",e)},clickProfileBtn(e){this.$emit("openProfile",e)},viewAll(){const e={team:this.team,season:this.seasonSelectedDropDowns};this.$emit("openAllPlayers",e)},getTotalPlayers(e){this.playersLength=e},clickCard(e){const a={data:e,isPlayer:this.isplayer};this.$emit("clickOnMainCards",a)},async fetchGames(e,a){const o=a.map(i=>`seasons=${i.id}`).join("&"),n=Tt.create({headers:{Authorization:`${this.tokenFree}`}});this.fullTournamentSchedule=await n.get(this.gamesUrl+e+"?"+o),this.nextRivalId=Object.keys(this.fullTournamentSchedule).length>0?this.user.team==this.fullTournamentSchedule.data.prematch.home_team?this.fullTournamentSchedule.data.prematch.visiting_team:this.fullTournamentSchedule.data.prematch.home_team:0,this.loadDiscover=!0,this.hasNextRival=this.fullTournamentSchedule.data.prematch.game_status===4},async generateSeasons(e){const a=[{id:e.id,type:e.type}];return e.related_seasons&&e.related_seasons.length&&a.push(...e.related_seasons.map(o=>({id:o.id,type:o.type}))),a},async onInputTournament(e){this.tournamentSelected=e,this.tournamentSelectedDropDowns.id!==e.id&&(this.tournamentSelectedDropDowns=e)},async onInputSeason(e){if(this.seasonSelected=e,this.tournamentSelected.id!=this.user.tournament){const a=await this.generateSeasons(this.seasonSelected);this.seasonsSelected=a,await this.createFullTournamentScheme(a,!1)}else{const a=await this.generateSeasons(this.seasonSelected);this.seasonsSelected=a,await this.fetchGames(this.user.team,a)}this.seasonSelectedDropDowns!==e.id&&(this.seasonSelectedDropDowns=e.id,this.$emit("change-season-id",e.id))},async fetchTournaments(e){try{const{data:a}=await Tt.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments");return a}catch(a){if(e>0)return this.fetchTournaments(e-1);throw new Error(a)}},async fetchSeasonsGamesAndTeams(e,a,o=""){let n=o;try{n||(n=this.gamesUrl2,e.forEach((l,p)=>{n+=`${p===0?"":"&"}seasons=${l}`}));const i=Tt.create({headers:{Authorization:`${this.tokenFree}`}}),{data:{data:r,teams:s}}=await i.get(n);return{seasonsAndGames:r,seasonsAndTeams:s}}catch(i){if(a>0)return this.fetchSeasonsGamesAndTeams(e,a-1,n);throw new Error(i)}},areSeasonsDifferent(e){for(const a of e)if(!this.lastSeasonsIds.includes(a.season_id))return!0;return!1},async createFullTournamentScheme(e,a){try{this.fullTournamentSchedule={},this.userTeamGames=[];let o=0;const{seasonsAndGames:n,seasonsAndTeams:i}=await this.fetchSeasonsGamesAndTeams(e.map(p=>p.id),3);if(a&&this.areSeasonsDifferent(n))return;n.forEach(p=>{const{type:d}=e.find(c=>c.id===p.season_id);p.type=d,p.games.forEach(c=>{c.season_id=p.season_id}),d===0&&(o=p.season_id)});const r={seasonsGames:n},{teams:s}=i.find(p=>p.season_id===o),l=r&&r.seasonsGames?r.seasonsGames.map(p=>{const d=p.games.reduce((c,h)=>{const m={...h};return m.dateTimeMillis=new Date(m.date_time_utc).valueOf(),m.home_team=s.find(f=>f.team_id===h.home_team),m.visiting_team=s.find(f=>f.team_id===h.visiting_team),c[h.matchday_abbreviation]?c[h.matchday_abbreviation][h.game_status===3?"canceled":h.date]?c[h.matchday_abbreviation][h.game_status===3?"canceled":h.date].push(m):c[h.matchday_abbreviation][h.game_status===3?"canceled":h.date]=[m]:c[h.matchday_abbreviation]={[h.game_status===3?"canceled":h.date]:[m]},this.gsData&&this.gsData.teamId&&m.game_status===4&&(m.home_team.team_id===this.gsData.teamId||m.visiting_team.team_id===this.gsData.teamId)&&this.userTeamGames.push(m),c},{});this.userTeamGames.sort((c,h)=>c.dateTimeMillis-h.dateTimeMillis);for(let[c,h]of Object.entries(d))d[c]=Object.entries(h).map(([m,f])=>({date:m,games:f.sort((u,g)=>u.dateTimeMillis-g.dateTimeMillis)})),d[c].sort((m,f)=>m.date<f.date?-1:m.date>f.date?1:0);return{type:p.type,weight:p.type===0?0:p.type===2?1:2,schedule:d}}):[];l.sort((p,d)=>p.weight-d.weight),this.fullTournamentScheduleFull=l.reduce((p,d)=>{for(const[c,h]of Object.entries(d.schedule))if(d.type===0)if(this.isCup){const m=c.replace("M",""),f=`Jornada ${m}`;this.isCupLegacy?p[y2[m]||f]=h:p[g2[c]||f]=h}else p[Number(c.replace("M","")).toString()]=h;else d.type===2?["PI1","PI2"].includes(c)?p[c]=h:p[`R${Number(c.replace("PO",""))}`]=h:d.type===1&&(p[f2[c]]=h);return p},{}),this.tournamentScheduleKeys=Object.keys(this.fullTournamentScheduleFull)}catch(o){throw new Error(o)}finally{this.loadingFlag=!1}},getNormalClosestRound(e){const o=Object.entries(Object.entries(e).reduce((r,[s,l])=>(r[s]=[],l.forEach(p=>{p.games.forEach(d=>{const c=new Date(d.date_time_utc).getTime()+66e5;r[s].push(c)})}),r),{}));if(!o.length)return"1";const n=new Date().getTime(),i=o.reduce((r,[s,l])=>{let p=null;return l.forEach(d=>{const c=d-n;c>=0&&(p===null||c<p)&&(p=c)}),p&&(r.shortestTime===null||p<r.shortestTime)&&(r.round=s,r.shortestTime=p),r},{round:"",shortestTime:null});return i.shortestTime!==null?i.round:o[o.length-1][0]},getUserTeamClosestRound(e){let a=1;if(this.userTeamGames.length){const o=this.userTeamGames[0];for(const[n,i]of Object.entries(e))for(const r of i)if(r.games.find(l=>l.game_id===o.game_id))return n}return a}},async created(){}},_S=e=>(t.pushScopeId("data-v-849cfb29"),e=e(),t.popScopeId(),e),SS={class:"gsclanding",ref:"landingref"},kS={key:0,class:"container-selectors-mobile"},CS={class:"container-selectors-mobile-tournament"},BS={class:"container-selectors-mobile-season"},ES={key:0,class:"home-item-movil"},NS=_S(()=>t.createElementVNode("div",{class:"home-movil"},"Inicio",-1)),xS={class:"name-user-movil"},TS={key:1,class:"home-item"},OS={key:2,class:"bar-settings"},VS={class:"name-user"},$S={class:"container-selectors"},AS={class:"selector-tournament"},zS={class:"selector-seasons"},RS={key:3,class:"container-games"},IS={key:4,class:"container-players"},FS={class:"container-tops"},PS={key:5,class:"container-vr"};function LS(e,a,o,n,i,r){const s=t.resolveComponent("GSCTournamentSelect"),l=t.resolveComponent("GSCSeasonSelect"),p=t.resolveComponent("GSCGames"),d=t.resolveComponent("GSCGridTeamsMatches"),c=t.resolveComponent("GSCTableCalendar"),h=t.resolveComponent("GSCPlayersLanding"),m=t.resolveComponent("GSCTops"),f=t.resolveComponent("DiscoverVideos");return t.openBlock(),t.createElementBlock("div",SS,[n.elementSize.width<=680?(t.openBlock(),t.createElementBlock("div",kS,[t.createElementVNode("div",CS,[t.createVNode(s,{"current-season-id":o.currentSeasonId,width:"100%",onInput:r.onInputTournament},null,8,["current-season-id","onInput"])]),t.createElementVNode("div",BS,[t.createVNode(l,{"current-season-id":o.currentSeasonId,width:"100%",seasons:i.tournamentSelectedDropDowns.seasons,onInput:r.onInputSeason},null,8,["current-season-id","seasons","onInput"])])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(r.containerbackground)},[t.createElementVNode("div",{class:t.normalizeClass(r.containerdata)},[n.elementSize.width<=680?(t.openBlock(),t.createElementBlock("div",ES,[NS,t.createElementVNode("div",xS,"Bienvenido "+t.toDisplayString(r.formatUsername(o.user.name)),1)])):t.createCommentVNode("",!0),n.elementSize.width>680?(t.openBlock(),t.createElementBlock("div",TS,"Inicio")):t.createCommentVNode("",!0),n.elementSize.width>680?(t.openBlock(),t.createElementBlock("div",OS,[t.createElementVNode("div",VS,"Bienvenido "+t.toDisplayString(r.formatUsername(o.user.name)),1),t.createElementVNode("div",$S,[t.createElementVNode("div",AS,[t.createVNode(s,{"current-season-id":o.currentSeasonId,onInput:r.onInputTournament},null,8,["current-season-id","onInput"])]),t.createElementVNode("div",zS,[t.createVNode(l,{"current-season-id":o.currentSeasonId,seasons:i.tournamentSelectedDropDowns.seasons,onInput:r.onInputSeason},null,8,["current-season-id","seasons","onInput"])])])])):t.createCommentVNode("",!0),Object.keys(i.tournamentSelected).length>0?(t.openBlock(),t.createElementBlock("div",RS,[t.createVNode(p,{"component-width":n.elementSize.width,isplayer:o.isplayer,"is-full":i.tournamentSelected.id!=o.user.tournament,onClickMatch:r.onClickMatch,onClickCalendar:r.onClickCalendar,data:i.tournamentSelected.id==o.user.tournament?i.fullTournamentSchedule:r.gamesFullLeague},null,8,["component-width","isplayer","is-full","onClickMatch","onClickCalendar","data"])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(r.containerGridCalendarTable)},[t.createElementVNode("div",{class:"container-grid",style:t.normalizeStyle(n.elementSize.width<1e3?"width: 100%":"")},[t.createVNode(d,{isPlayer:o.isplayer?i.tournamentSelected.id==o.user.tournament:!1,"player-id":o.user.player,"team-id":o.user.team,"season-selected":i.seasonSelected.id,"next-rival-id":Object.keys(i.fullTournamentSchedule).length>0?o.user.team==i.fullTournamentSchedule.data.prematch.home_team?i.fullTournamentSchedule.data.prematch.visiting_team:i.fullTournamentSchedule.data.prematch.home_team:0,"team-img":"https://az755631.vo.msecnd.net/teams-150/"+o.user.team+".png","player-img":"https://az755631.vo.msecnd.net/players-profile/"+o.user.player+".png","rival-img":Object.keys(i.fullTournamentSchedule).length>0?o.user.team==i.fullTournamentSchedule.data.prematch.home_team?"https://az755631.vo.msecnd.net/teams-150/"+i.fullTournamentSchedule.data.prematch.visiting_team+".png":"https://az755631.vo.msecnd.net/teams-150/"+i.fullTournamentSchedule.data.prematch.home_team+".png":"","has-team":o.isplayer?!1:i.tournamentSelected.id==o.user.tournament,"component-width":n.elementSize.width,onAction:r.clickCard},null,8,["isPlayer","player-id","team-id","season-selected","next-rival-id","team-img","player-img","rival-img","has-team","component-width","onAction"])],4),t.createElementVNode("div",{class:"container-calendar-table",style:t.normalizeStyle(n.elementSize.width<1e3?"width: 100%; margin-top: 30px;":"")},[t.createVNode(c,{onAction:r.onAction,season:i.seasonSelected,seasons:i.seasonsSelected,onOpenmedia:r.onOpenMedia,onOnOpenProfile:r.onOpenProfile,componentWidth:n.elementSize.width},null,8,["onAction","season","seasons","onOpenmedia","onOnOpenProfile","componentWidth"])],4)],2),i.tournamentSelected.id==o.user.tournament?t.withDirectives((t.openBlock(),t.createElementBlock("div",IS,[t.createVNode(h,{onClickProfileBtn:r.clickProfileBtn,onViewAll:r.viewAll,onTotalPlayers:r.getTotalPlayers,"team-id":o.user.team,"season-id":i.seasonSelected.id,"is-player":o.user.player!=0},null,8,["onClickProfileBtn","onViewAll","onTotalPlayers","team-id","season-id","is-player"])],512)),[[t.vShow,i.playersLength>0]]):t.createCommentVNode("",!0),t.createElementVNode("div",FS,[t.createVNode(m,{onMore:r.moreTops,"show-switch":i.tournamentSelected.id==o.user.tournament,season:i.seasonSelected.id,"team-id":o.user.team,onOpenmedia:r.onOpenMedia},null,8,["onMore","show-switch","season","team-id","onOpenmedia"])]),i.loadDiscover?(t.openBlock(),t.createElementBlock("div",PS,[t.createVNode(f,{onOpenmedia:r.onOpenMedia,userForDiscoverVideos:r.mapDiscoverVideos(),section:!0,hasNextRival:i.hasNextRival,nextRivalTeam:{id:i.nextRivalId},user:o.user,seasonSelected:i.seasonSelected,tournamentSelected:i.tournamentSelected},null,8,["onOpenmedia","userForDiscoverVideos","hasNextRival","nextRivalTeam","user","seasonSelected","tournamentSelected"])])):t.createCommentVNode("",!0)],2)],2)],512)}const DS=ie(wS,[["render",LS],["__scopeId","data-v-849cfb29"]]);ve.GSCLanding=DS,Object.defineProperty(ve,Symbol.toStringTag,{value:"Module"})});
|
|
28
|
+
*/const Z={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},hi={itemsToShow:{default:Z.itemsToShow,type:Number},itemsToScroll:{default:Z.itemsToScroll,type:Number},wrapAround:{default:Z.wrapAround,type:Boolean},throttle:{default:Z.throttle,type:Number},snapAlign:{default:Z.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Z.transition,type:Number},breakpoints:{default:Z.breakpoints,type:Object},autoplay:{default:Z.autoplay,type:Number},pauseAutoplayOnHover:{default:Z.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Z.mouseDrag,type:Boolean},touchDrag:{default:Z.touchDrag,type:Boolean},dir:{default:Z.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Z.i18n,type:Object},settings:{default(){return{}},type:Object}};function Zf({config:e,slidesCount:a}){const{snapAlign:o,wrapAround:n,itemsToShow:i=1}=e;if(n)return Math.max(a-1,0);let r;switch(o){case"start":r=a-i;break;case"end":r=a-1;break;case"center":case"center-odd":r=a-Math.ceil((i-.5)/2);break;case"center-even":r=a-Math.ceil(i/2);break;default:r=0;break}return Math.max(r,0)}function Xf({config:e,slidesCount:a}){const{wrapAround:o,snapAlign:n,itemsToShow:i=1}=e;let r=0;if(o||i>a)return r;switch(n){case"start":r=0;break;case"end":r=i-1;break;case"center":case"center-odd":r=Math.floor((i-1)/2);break;case"center-even":r=Math.floor((i-2)/2);break;default:r=0;break}return r}function ga({val:e,max:a,min:o}){return a<o?e:Math.min(Math.max(e,o),a)}function Kf({config:e,currentSlide:a,slidesCount:o}){const{snapAlign:n,wrapAround:i,itemsToShow:r=1}=e;let s=a;switch(n){case"center":case"center-odd":s-=(r-1)/2;break;case"center-even":s-=(r-2)/2;break;case"end":s-=r-1;break}return i?s:ga({val:s,max:o-r,min:0})}function fi(e){return e?e.reduce((a,o)=>{var n;return o.type===t.Fragment?[...a,...fi(o.children)]:((n=o.type)===null||n===void 0?void 0:n.name)==="CarouselSlide"?[...a,o]:a},[]):[]}function ya({val:e,max:a,min:o=0}){return e>a?ya({val:e-(a+1),max:a,min:o}):e<o?ya({val:e+(a+1),max:a,min:o}):e}function Yf(e,a){let o;return a?function(...n){const i=this;o||(e.apply(i,n),o=!0,setTimeout(()=>o=!1,a))}:e}function Qf(e,a){let o;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{e(...n),o=null},a)}}function eg(e="",a={}){return Object.entries(a).reduce((o,[n,i])=>o.replace(`{${n}}`,String(i)),e)}var tg=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Z))),a=t.inject("currentSlide",t.ref(0)),o=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},eg(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:o.value}))}}),og=t.defineComponent({name:"Carousel",props:hi,setup(e,{slots:a,emit:o,expose:n}){var i;const r=t.ref(null),s=t.ref([]),l=t.ref(0),p=t.ref(0),c=t.reactive(Object.assign({},Z));let m=Object.assign({},Z),u;const g=t.ref((i=e.modelValue)!==null&&i!==void 0?i:0),d=t.ref(0),h=t.ref(0),f=t.ref(0),y=t.ref(0);let C,A;t.provide("config",c),t.provide("slidesCount",p),t.provide("currentSlide",g),t.provide("maxSlide",f),t.provide("minSlide",y),t.provide("slideWidth",l);function v(){u=Object.assign({},e.breakpoints),m=Object.assign(Object.assign(Object.assign({},m),e),{i18n:Object.assign(Object.assign({},m.i18n),e.i18n),breakpoints:void 0}),ne(m)}function U(){if(!u||!Object.keys(u).length)return;const b=Object.keys(u).map(x=>Number(x)).sort((x,M)=>+M-+x);let V=Object.assign({},m);b.some(x=>{const M=window.matchMedia(`(min-width: ${x}px)`).matches;return M&&(V=Object.assign(Object.assign({},V),u[x])),M}),ne(V)}function ne(b){Object.entries(b).forEach(([V,x])=>c[V]=x)}const he=Qf(()=>{U(),X()},16);function X(){if(!r.value)return;const b=r.value.getBoundingClientRect();l.value=b.width/c.itemsToShow}function se(){p.value<=0||(h.value=Math.ceil((p.value-1)/2),f.value=Zf({config:c,slidesCount:p.value}),y.value=Xf({config:c,slidesCount:p.value}),c.wrapAround||(g.value=ga({val:g.value,max:f.value,min:y.value})))}t.onMounted(()=>{t.nextTick(()=>X()),setTimeout(()=>X(),1e3),U(),Ae(),window.addEventListener("resize",he,{passive:!0}),o("init")}),t.onUnmounted(()=>{A&&clearTimeout(A),C&&clearInterval(C),window.removeEventListener("resize",he,{passive:!0})});let R=!1;const ae={x:0,y:0},ee={x:0,y:0},j=t.reactive({x:0,y:0}),te=t.ref(!1),re=t.ref(!1),Ue=()=>{te.value=!0},He=()=>{te.value=!1};function Ve(b){["INPUT","TEXTAREA","SELECT"].includes(b.target.tagName)||(R=b.type==="touchstart",R||b.preventDefault(),!(!R&&b.button!==0||B.value)&&(ae.x=R?b.touches[0].clientX:b.clientX,ae.y=R?b.touches[0].clientY:b.clientY,document.addEventListener(R?"touchmove":"mousemove",fe,!0),document.addEventListener(R?"touchend":"mouseup",$e,!0)))}const fe=Yf(b=>{re.value=!0,ee.x=R?b.touches[0].clientX:b.clientX,ee.y=R?b.touches[0].clientY:b.clientY;const V=ee.x-ae.x,x=ee.y-ae.y;j.y=x,j.x=V},c.throttle);function $e(){const b=c.dir==="rtl"?-1:1,V=Math.sign(j.x)*.4,x=Math.round(j.x/l.value+V)*b;if(x&&!R){const M=be=>{be.stopPropagation(),window.removeEventListener("click",M,!0)};window.addEventListener("click",M,!0)}E(g.value-x),j.x=0,j.y=0,re.value=!1,document.removeEventListener(R?"touchmove":"mousemove",fe,!0),document.removeEventListener(R?"touchend":"mouseup",$e,!0)}function Ae(){!c.autoplay||c.autoplay<=0||(C=setInterval(()=>{c.pauseAutoplayOnHover&&te.value||T()},c.autoplay))}function O(){C&&(clearInterval(C),C=null),Ae()}const B=t.ref(!1);function E(b){const V=c.wrapAround?b:ga({val:b,max:f.value,min:y.value});g.value===V||B.value||(o("slide-start",{slidingToIndex:b,currentSlideIndex:g.value,prevSlideIndex:d.value,slidesCount:p.value}),B.value=!0,d.value=g.value,g.value=V,A=setTimeout(()=>{if(c.wrapAround){const x=ya({val:V,max:f.value,min:0});x!==g.value&&(g.value=x,o("loop",{currentSlideIndex:g.value,slidingToIndex:b}))}o("update:modelValue",g.value),o("slide-end",{currentSlideIndex:g.value,prevSlideIndex:d.value,slidesCount:p.value}),B.value=!1,O()},c.transition))}function T(){E(g.value+c.itemsToScroll)}function N(){E(g.value-c.itemsToScroll)}const $={slideTo:E,next:T,prev:N};t.provide("nav",$),t.provide("isSliding",B);const z=t.computed(()=>Kf({config:c,currentSlide:g.value,slidesCount:p.value}));t.provide("slidesToScroll",z);const D=t.computed(()=>{const b=c.dir==="rtl"?-1:1,V=z.value*l.value*b;return{transform:`translateX(${j.x-V}px)`,transition:`${B.value?c.transition:0}ms`,margin:c.wrapAround?`0 -${p.value*l.value}px`:"",width:"100%"}});function W(){v(),U(),se(),X(),O()}Object.keys(hi).forEach(b=>{["modelValue"].includes(b)||t.watch(()=>e[b],W)}),t.watch(()=>e.modelValue,b=>{b!==g.value&&E(Number(b))}),t.watch(p,se),o("before-init"),v();const K={config:c,slidesCount:p,slideWidth:l,next:T,prev:N,slideTo:E,currentSlide:g,maxSlide:f,minSlide:y,middleSlide:h};n({updateBreakpointsConfigs:U,updateSlidesData:se,updateSlideWidth:X,initDefaultConfigs:v,restartCarousel:W,slideTo:E,next:T,prev:N,nav:$,data:K});const ge=a.default||a.slides,ye=a.addons,je=t.reactive(K);return()=>{const b=fi(ge==null?void 0:ge(je)),V=(ye==null?void 0:ye(je))||[];b.forEach((we,_e)=>we.props.index=_e);let x=b;if(c.wrapAround){const we=b.map((Se,oe)=>t.cloneVNode(Se,{index:-b.length+oe,isClone:!0,key:`clone-before-${oe}`})),_e=b.map((Se,oe)=>t.cloneVNode(Se,{index:b.length+oe,isClone:!0,key:`clone-after-${oe}`}));x=[...we,...b,..._e]}s.value=b,p.value=Math.max(b.length,1);const M=t.h("ol",{class:"carousel__track",style:D.value,onMousedownCapture:c.mouseDrag?Ve:null,onTouchstartPassiveCapture:c.touchDrag?Ve:null},x),be=t.h("div",{class:"carousel__viewport"},M);return t.h("section",{ref:r,class:{carousel:!0,"is-sliding":B.value,"is-dragging":re.value,"is-hover":te.value,"carousel--rtl":c.dir==="rtl"},dir:c.dir,"aria-label":c.i18n.ariaGallery,tabindex:"0",onMouseenter:Ue,onMouseleave:He},[be,V,t.h(tg)])}}}),ba;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(ba||(ba={}));const ag={arrowUp:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z",arrowDown:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",arrowRight:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",arrowLeft:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"};function ng(e){return e in ba}const wa=e=>{const a=t.inject("config",t.reactive(Object.assign({},Z))),o=String(e.name),n=`icon${o.charAt(0).toUpperCase()+o.slice(1)}`;if(!o||typeof o!="string"||!ng(o))return;const i=ag[o],r=t.h("path",{d:i}),s=a.i18n[n]||e.title||o,l=t.h("title",s);return t.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":s},[l,r])};wa.props={name:String,title:String};const rg=(e,{slots:a,attrs:o})=>{const{next:n,prev:i}=a||{},r=t.inject("config",t.reactive(Object.assign({},Z))),s=t.inject("maxSlide",t.ref(1)),l=t.inject("minSlide",t.ref(1)),p=t.inject("currentSlide",t.ref(1)),c=t.inject("nav",{}),{dir:m,wrapAround:u,i18n:g}=r,d=m==="rtl",h=t.h("button",{type:"button",class:["carousel__prev",!u&&p.value<=l.value&&"carousel__prev--disabled",o==null?void 0:o.class],"aria-label":g.ariaPreviousSlide,onClick:c.prev},(i==null?void 0:i())||t.h(wa,{name:d?"arrowRight":"arrowLeft"})),f=t.h("button",{type:"button",class:["carousel__next",!u&&p.value>=s.value&&"carousel__next--disabled",o==null?void 0:o.class],"aria-label":g.ariaNextSlide,onClick:c.next},(n==null?void 0:n())||t.h(wa,{name:d?"arrowLeft":"arrowRight"}));return[h,f]};var ig=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const o=t.inject("config",t.reactive(Object.assign({},Z))),n=t.inject("currentSlide",t.ref(0)),i=t.inject("slidesToScroll",t.ref(0)),r=t.inject("isSliding",t.ref(!1)),s=()=>e.index===n.value,l=()=>e.index===n.value-1,p=()=>e.index===n.value+1,c=()=>{const m=Math.floor(i.value),u=Math.ceil(i.value+o.itemsToShow-1);return e.index>=m&&e.index<=u};return()=>{var m;return t.h("li",{style:{width:`${100/o.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":c(),"carousel__slide--active":s(),"carousel__slide--prev":l(),"carousel__slide--next":p(),"carousel__slide--sliding":r.value},"aria-hidden":!c()},(m=a.default)===null||m===void 0?void 0:m.call(a))}}});const pe=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},sg={__name:"MatchDay",props:{isLandingMode:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#183143"},numberColor:{type:String,default:"white"},numberFontFamily:{type:String,default:"sans-serif"},numberFontSize:{type:String,default:"14px"},textColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},textFontFamily:{type:String,default:"'Poppins-Regular', sans-serif"},textFontSize:{type:String,default:"8px"},bottomLineColor:{type:String,default:"#cbee6b"},selectedMatchDayBackgroundColor:{type:String,default:"#243b4c"},height:{type:String,default:"fit-content"},matchDay:{type:Object,default:()=>{}},matchDaySelected:{type:Object,default:()=>{}},componentWidth:{type:Number,default:0}},emits:["change-match-day"],setup(e,{emit:a}){const o=e,n=t.computed(()=>{const l={"background-color":o.backgroundColor,height:o.height};return o.matchDay.key===o.matchDaySelected.key&&(l["border-bottom"]=`solid 1px ${o.bottomLineColor}`,l["background-color"]=o.selectedMatchDayBackgroundColor),o.isLandingMode||(l["border-right"]="solid 1px rgba(255, 255, 255, 0.1)"),l}),i=t.computed(()=>({color:o.numberColor,"font-family":o.numberFontFamily,"font-size":o.numberFontSize})),r=t.computed(()=>({color:o.textColor,"font-family":o.textFontFamily,"font-size":o.textFontSize}));function s(l){a("click-match-day",l)}return(l,p)=>(t.openBlock(),t.createElementBlock("div",{class:"match-day",style:t.normalizeStyle({...n.value}),onClick:p[0]||(p[0]=c=>s(e.matchDay))},[t.createElementVNode("div",{class:"match-day__value",style:t.normalizeStyle(i.value)},t.toDisplayString(e.matchDay.valueText),5),Number.isNaN(e.matchDay.value)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:"match-day__text",style:t.normalizeStyle([e.isLandingMode?"margin-top:3px":"margin-top:4px",r.value])},t.toDisplayString(e.isLandingMode||e.componentWidth<=425?"JOR":"JORNADA"),5))],4))}},lg=pe(sg,[["__scopeId","data-v-89459353"]]),cg={__name:"MatchDayPicker",props:{matchDays:{type:Array,default:()=>[]},isLandingMode:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#183143"},numberColor:{type:String,default:"white"},numberFontFamily:{type:String,default:"sans-serif"},numberFontSize:{type:String,default:"14px"},textColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"8px"},bottomLineColor:{type:String,default:"#cbee6b"},selectedMatchDayBackgroundColor:{type:String,default:"#243b4c"},height:{type:String,default:"fit-content"},itemsToShow:{type:Number,default:9},itemsToScroll:{type:Number,default:9},defaultMatchDayKey:{type:[String,null],default:""},componentWidth:{type:Number,default:0},closestMatchDay:{type:[Number,String],default:0}},emits:["change-match-day"],setup(e,{emit:a}){const o=e;t.useCssVars(c=>({"469bccd0":r.value,"469dfb50":s.value}));const n=t.ref(null),i=t.computed(()=>({itemsToShow:o.itemsToShow,itemsToScroll:o.itemsToScroll,snapAlign:"start"})),r=t.computed(()=>n.value.data.currentSlide.value==0?"none":"inline"),s=t.computed(()=>n.value.data.currentSlide.value==n.value.data.maxSlide.value?"none":"inline"),l=t.ref({});t.watch(()=>o.closestMatchDay,c=>{if(c){const m=o.matchDays.find(u=>u.key===c);p(m||o.matchDays[0],!0)}}),t.watch(()=>o.matchDays,c=>{if(!o.closestMatchDay&&c&&c.length){const m=c.find(u=>u.key===o.defaultMatchDayKey);l.value=m||c[0],a("change-match-day",l.value)}},{immediate:!0});function p(c,m=!1){m&&n.value.slideTo(c.index),l.value=c,a("change-match-day",l.value)}return(c,m)=>(t.openBlock(),t.createElementBlock("div",{class:"match-day-picker",style:t.normalizeStyle(e.isLandingMode?"border-top-left-radius: 9px; border-top-right-radius: 9px;":"margin-bottom:12px")},[t.createVNode(t.unref(og),t.mergeProps(i.value,{ref_key:"matchDayPickerCarousel",ref:n}),{addons:t.withCtx(()=>[t.createVNode(t.unref(rg))]),default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.matchDays,u=>(t.openBlock(),t.createBlock(t.unref(ig),{key:u.key},{default:t.withCtx(()=>[t.createVNode(lg,t.mergeProps(o,{"match-day":u,"match-day-selected":l.value,"is-landing-mode":e.isLandingMode,"component-width":e.componentWidth,onClickMatchDay:p}),null,16,["match-day","match-day-selected","is-landing-mode","component-width"])]),_:2},1024))),128))]),_:1},16)],4))}},dg=pe(cg,[["__scopeId","data-v-930cd509"]]);function Ye(e,a=80){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-"}${a}/${e}.png`}function gi(e){if(typeof e=="string"){let a=e.replace("M","J ");return a=a.replace("PO1","CFI"),a=a.replace("PO2","CFV"),a=a.replace("PO3","SFI"),a=a.replace("PO4","SFV"),a=a.replace("PO5","FI"),a=a.replace("PO6","FV"),a}}function mg(e){let a="";return e.game_status!=4&&(a+="Finalizado"),(e.penalties_score_home_team!=0||e.penalties_score_visiting_team!=0)&&(a+=" - Penales "+e.penalties_score_home_team+" - "+e.penalties_score_visiting_team),a}const pg={class:"game-info__teams"},ug={class:"game-info__teams__team__logo"},hg=["src"],fg={class:"game-info__teams__detail"},gg={key:0,class:"game-info__teams__detail__pre-game"},yg={class:"game-info__teams__team__logo away"},bg=["src"],wg={key:0},_g={key:0},Sg={key:1},kg={__name:"GameInfo",props:{isLandingMode:{type:Boolean,default:!1},isAcronymVisible:{type:Boolean,default:!1},isTelevisionVisible:{type:Boolean,default:!0},game:{type:Object,required:!0},colorPrimary:{type:String,default:"white"},colorSecondary:{type:String,default:"grey"},namesFontSize:{type:String,default:"12px"},timeFontSize:{type:String,default:"12px"},timeZoneFontSize:{type:String,default:"8px"},scoreFontSize:{type:String,default:"13px"},namesFontFamily:{type:String,default:"sans-serif"},scoreFontFamily:{type:String,default:"sans-serif"},additionalInfoFontFamily:{type:String,default:"sans-serif"},additionalInfoFontSize:{type:String,default:"9px"}},setup(e){const a=e,o=t.computed(()=>{const c=new Date(a.game.dateTimeMillis),m=c.getHours(),u=c.getMinutes();return`${m<10?`0${m}`:m}:${u<10?`0${u}`:u}`}),n=t.computed(()=>{let c="120px";return(a.isLandingMode||a.isAcronymVisible)&&(c="70px"),{"min-width":c}}),i=t.computed(()=>({"font-size":a.namesFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary})),r=t.computed(()=>({"font-size":a.additionalInfoFontSize,"font-family":a.additionalInfoFontFamily,color:a.colorSecondary})),s=t.computed(()=>({"font-size":a.scoreFontSize,"font-family":a.scoreFontFamily,color:a.colorPrimary})),l=t.computed(()=>({"font-size":a.timeZoneFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary})),p=t.computed(()=>({"font-size":a.timeFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary}));return(c,m)=>(t.openBlock(),t.createElementBlock("div",{class:"game-info",style:t.normalizeStyle(e.isLandingMode?"gap:5px":"")},[t.createElementVNode("div",pg,[t.createElementVNode("div",{class:"game-info__teams__team",style:t.normalizeStyle(n.value)},[t.createElementVNode("div",{class:"game-info__teams__team__name",style:t.normalizeStyle(i.value)},t.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.home_team.acronym:e.game.home_team.colloquial_name),5),t.createElementVNode("div",ug,[t.createElementVNode("img",{src:t.unref(Ye)(e.game.home_team.team_id),alt:""},null,8,hg)])],4),t.createElementVNode("div",fg,[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock("div",gg,[t.createElementVNode("div",null,[t.createElementVNode("span",{style:t.normalizeStyle(p.value)},t.toDisplayString(o.value),5),t.createTextVNode(),t.createElementVNode("span",{style:t.normalizeStyle(l.value)},"CST",4)])])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"game-info__teams__detail__score",style:t.normalizeStyle(s.value)},[t.createElementVNode("span",null,t.toDisplayString(e.game.score[0])+" - "+t.toDisplayString(e.game.score[1]),1)],4))]),t.createElementVNode("div",{class:"game-info__teams__team away",style:t.normalizeStyle(n.value)},[t.createElementVNode("div",yg,[t.createElementVNode("img",{src:t.unref(Ye)(e.game.visiting_team.team_id),alt:""},null,8,bg)]),t.createElementVNode("div",{class:"game-info__teams__team__name",style:t.normalizeStyle(i.value)},t.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.visiting_team.acronym:e.game.visiting_team.colloquial_name),5)],4)]),t.createElementVNode("div",{class:"game-info__status",style:t.normalizeStyle([r.value,e.isLandingMode?"line-height: normal":""])},[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock("span",wg,[e.isTelevisionVisible?(t.openBlock(),t.createElementBlock("span",_g,t.toDisplayString(e.game.tv_stations.join(", ")),1)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",Sg,t.toDisplayString(t.unref(mg)(e.game)),1))],4)],4))}},yi=pe(kg,[["__scopeId","data-v-afb1954b"]]),bi=e=>(t.pushScopeId("data-v-8839c56d"),e=e(),t.popScopeId(),e),Cg={class:"game-status"},Bg={key:0,class:"game-status__day__live"},Eg=bi(()=>t.createElementVNode("span",null,"LIVE",-1)),Ng=bi(()=>t.createElementVNode("span",{class:"dot"},null,-1)),xg=[Eg,Ng],Tg={key:0,class:"game-status__round"},Og={__name:"GameStatus",props:{isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},status:{type:Number,default:4},isLive:{type:Boolean,default:!1},dateTimeMillis:{type:Number,default:0},roundAbbreviation:{type:String,default:""},fontSize:{type:String,default:"10px"}},setup(e){const a=e,o=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],n=t.computed(()=>{let s="";if(a.dateTimeMillis){const l=new Date(a.dateTimeMillis);s=`${l.getDate()} ${o[l.getMonth()]}`}return s}),i=t.computed(()=>({"font-size":a.fontSize})),r=t.computed(()=>{let s=[];return a.isLive?s.push("live"):a.status!==1&&s.push("pre-match"),s});return(s,l)=>(t.openBlock(),t.createElementBlock("div",Cg,[t.createElementVNode("div",{class:t.normalizeClass(["game-status__day",r.value]),style:t.normalizeStyle(i.value)},[e.isLive?(t.openBlock(),t.createElementBlock("div",Bg,xg)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(n.value),1)],64))],6),e.isRoundMode?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Tg,t.toDisplayString(e.roundAbbreviation),1))]))}},wi=pe(Og,[["__scopeId","data-v-8839c56d"]]),ue={SHOW_GAME_EVENTS:"SHOW_GAME_EVENTS",PLAY_GOALS:"PLAY_GOALS",PLAY_RESUME:"PLAY_RESUME",NOTIFICATION:"NOTIFICATION",STATISTICS:"STATISTICS"},Vg=e=>(t.pushScopeId("data-v-0d97b1a8"),e=e(),t.popScopeId(),e),$g={class:"actions"},Ag={class:"actions__row"},zg=Vg(()=>t.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.87471 3.35132C9.31653 3.35132 9.67471 3.70949 9.67471 4.15132V10.4531C9.67471 10.8949 9.31653 11.2531 8.87471 11.2531C8.43288 11.2531 8.07471 10.8949 8.07471 10.4531V4.15132C8.07471 3.70949 8.43288 3.35132 8.87471 3.35132Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.67549 0.199951C5.11732 0.199951 5.47549 0.558123 5.47549 0.999951V10.4526C5.47549 10.8944 5.11732 11.2526 4.67549 11.2526C4.23366 11.2526 3.87549 10.8944 3.87549 10.4526V0.999951C3.87549 0.558123 4.23366 0.199951 4.67549 0.199951Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.0002 5.45154C1.44202 5.45154 1.8002 5.80971 1.8002 6.25154V10.4527C1.8002 10.8945 1.44202 11.2527 1.0002 11.2527C0.558368 11.2527 0.200195 10.8945 0.200195 10.4527V6.25154C0.200195 5.80971 0.558368 5.45154 1.0002 5.45154Z",fill:"#EEEC6B"})],-1)),Rg=[zg],Ig={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Fg=["fill"],Pg={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Lg=["fill"],Dg={__name:"GameActionsLanding",props:{gameStatus:{type:Number,default:4},isLive:{type:Boolean,default:!1},hasVideo:{type:Boolean,default:!1},iconColor:{type:String,default:"#CBEE6B"},iconBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},iconBorderColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},showPlayButton:{type:Boolean,default:!1}},emits:["action"],setup(e,{emit:a}){const o=e,n=t.computed(()=>({backgroundColor:o.iconBackgroundColor,borderColor:o.iconBorderColor}));function i(r){a("action",r)}return(r,s)=>(t.openBlock(),t.createElementBlock("div",$g,[t.createElementVNode("div",Ag,[t.createElementVNode("div",{class:"actions__button rounded",style:t.normalizeStyle(n.value),onClick:s[0]||(s[0]=l=>i(t.unref(ue).STATISTICS))},Rg,4),e.showPlayButton&&e.hasVideo?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button rounded",style:t.normalizeStyle(n.value),onClick:s[1]||(s[1]=l=>i(t.unref(ue).PLAY_RESUME))},[(t.openBlock(),t.createElementBlock("svg",Ig,[t.createElementVNode("path",{d:"M0.442694 7.9474C0.385489 7.90953 0.337676 7.85295 0.304408 7.78375C0.27114 7.71456 0.25368 7.63538 0.253908 7.55475V0.444134C0.253987 0.363779 0.271562 0.284951 0.304765 0.216032C0.337968 0.147113 0.385557 0.090677 0.442475 0.0527243C0.499393 0.0147716 0.563511 -0.00327964 0.628014 0.000489552C0.692517 0.00425874 0.754994 0.0297075 0.808803 0.0741304L5.09491 3.62986C5.14387 3.67036 5.18401 3.7253 5.21178 3.78978C5.23955 3.85426 5.25409 3.92628 5.25409 3.99944C5.25409 4.0726 5.23955 4.14462 5.21178 4.2091C5.18401 4.27358 5.14387 4.32852 5.09491 4.36902L0.808803 7.92559C0.755077 7.97011 0.692648 7.99565 0.628173 7.99949C0.563698 8.00333 0.499593 7.98533 0.442694 7.9474Z",fill:o.iconColor},null,8,Fg)]))],4)):t.createCommentVNode("",!0),e.gameStatus===4444&&!e.isLive?(t.openBlock(),t.createElementBlock("div",{key:1,class:"actions__button",onClick:s[2]||(s[2]=l=>i(t.unref(ue).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",Pg,[t.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:o.iconColor},null,8,Lg)]))])):t.createCommentVNode("",!0)])]))}},Mg=pe(Dg,[["__scopeId","data-v-0d97b1a8"]]),_a=e=>(t.pushScopeId("data-v-af6919bd"),e=e(),t.popScopeId(),e),jg={class:"actions"},vg={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Wg=["fill"],Ug={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Hg=["fill"],Gg=_a(()=>t.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.87471 3.35132C9.31653 3.35132 9.67471 3.70949 9.67471 4.15132V10.4531C9.67471 10.8949 9.31653 11.2531 8.87471 11.2531C8.43288 11.2531 8.07471 10.8949 8.07471 10.4531V4.15132C8.07471 3.70949 8.43288 3.35132 8.87471 3.35132Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.67549 0.199951C5.11732 0.199951 5.47549 0.558123 5.47549 0.999951V10.4526C5.47549 10.8944 5.11732 11.2526 4.67549 11.2526C4.23366 11.2526 3.87549 10.8944 3.87549 10.4526V0.999951C3.87549 0.558123 4.23366 0.199951 4.67549 0.199951Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.0002 5.45154C1.44202 5.45154 1.8002 5.80971 1.8002 6.25154V10.4527C1.8002 10.8945 1.44202 11.2527 1.0002 11.2527C0.558368 11.2527 0.200195 10.8945 0.200195 10.4527V6.25154C0.200195 5.80971 0.558368 5.45154 1.0002 5.45154Z",fill:"#EEEC6B"})],-1)),Jg=[Gg],qg={key:0,class:"actions__videos"},Zg={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Xg=["fill"],Kg={key:1,class:"actions__videos__thumbnails"},Yg=_a(()=>t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__goals"},null,-1)),Qg=_a(()=>t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__summary"},null,-1)),e0={height:24,width:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t0=["stroke"],o0={__name:"GameActionsFull",props:{gameStatus:{type:Number,default:4},isLive:{type:Boolean,default:!1},hasVideo:{type:Boolean,default:!1},hasActions:{type:Boolean,default:!0},areEventsVisible:{type:Boolean,default:!1},iconColor:{type:String,default:"#CBEE6B"},iconBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},iconBorderColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},showPlayButton:{type:Boolean,default:!1},arrowColor:{type:String,default:"white"},thumbnailFontFamily:{type:String,default:"sans-serif"},thumbnailFontSize:{type:String,default:"8px"},thumbnailColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:a}){const o=e,n=t.computed(()=>({backgroundColor:o.iconBackgroundColor,borderColor:o.iconBorderColor})),i=t.computed(()=>{const p=[];return o.componentWidth<540&&p.push("mobile"),p}),r=t.computed(()=>o.componentWidth>730),s=t.computed(()=>({color:o.thumbnailColor,fontFamily:o.thumbnailFontFamily,fontSize:o.thumbnailFontSize}));function l(p){a("action",p)}return(p,c)=>(t.openBlock(),t.createElementBlock("div",jg,[t.createElementVNode("div",{class:t.normalizeClass(["actions__buttons",i.value])},[e.gameStatus===4444&&!e.isLive&&!r.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button",onClick:c[0]||(c[0]=m=>l(t.unref(ue).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",vg,[t.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:o.iconColor},null,8,Wg)]))])):t.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo&&!r.value?(t.openBlock(),t.createElementBlock("div",{key:1,class:"actions__button rounded",style:t.normalizeStyle(n.value),onClick:c[1]||(c[1]=m=>l(t.unref(ue).PLAY_RESUME))},[(t.openBlock(),t.createElementBlock("svg",Ug,[t.createElementVNode("path",{d:"M0.442694 7.9474C0.385489 7.90953 0.337676 7.85295 0.304408 7.78375C0.27114 7.71456 0.25368 7.63538 0.253908 7.55475V0.444134C0.253987 0.363779 0.271562 0.284951 0.304765 0.216032C0.337968 0.147113 0.385557 0.090677 0.442475 0.0527243C0.499393 0.0147716 0.563511 -0.00327964 0.628014 0.000489552C0.692517 0.00425874 0.754994 0.0297075 0.808803 0.0741304L5.09491 3.62986C5.14387 3.67036 5.18401 3.7253 5.21178 3.78978C5.23955 3.85426 5.25409 3.92628 5.25409 3.99944C5.25409 4.0726 5.23955 4.14462 5.21178 4.2091C5.18401 4.27358 5.14387 4.32852 5.09491 4.36902L0.808803 7.92559C0.755077 7.97011 0.692648 7.99565 0.628173 7.99949C0.563698 8.00333 0.499593 7.98533 0.442694 7.9474Z",fill:o.iconColor},null,8,Hg)]))],4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"actions__button rounded",style:t.normalizeStyle(n.value),onClick:c[2]||(c[2]=m=>l(t.unref(ue).STATISTICS))},Jg,4)],2),r.value?(t.openBlock(),t.createElementBlock("div",qg,[e.gameStatus===4444&&!e.isLive?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button",onClick:c[3]||(c[3]=m=>l(t.unref(ue).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",Zg,[t.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:o.iconColor},null,8,Xg)]))])):t.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo?(t.openBlock(),t.createElementBlock("div",Kg,[t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:c[4]||(c[4]=m=>l(t.unref(ue).PLAY_GOALS))},[Yg,t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:t.normalizeStyle(s.value)}," Goles ",4)]),t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:c[5]||(c[5]=m=>l(t.unref(ue).PLAY_RESUME))},[Qg,t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:t.normalizeStyle(s.value)}," Resumen ",4)])])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),(e.gameStatus!==4||e.isLive)&&e.hasActions?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["actions__button expand",{"rotated-180":e.areEventsVisible,mobile:e.componentWidth<540}]),onClick:c[6]||(c[6]=m=>l(t.unref(ue).SHOW_GAME_EVENTS))},[(t.openBlock(),t.createElementBlock("svg",e0,[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,t0)]))],2)):(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(["actions__button expand",{"rotated-180":!1,mobile:e.componentWidth<540}])},null,2))]))}},a0=pe(o0,[["__scopeId","data-v-af6919bd"]]),Jt=e=>(t.pushScopeId("data-v-43a88f53"),e=e(),t.popScopeId(),e),n0={class:"row-landing__game-status"},r0={class:"row-landing__game-actions"},i0={class:"row-full__game-status"},s0={class:"row-full__game-info"},l0={key:0},c0={class:"row-full__game-actions"},d0={class:"game-events-container"},m0=Jt(()=>t.createElementVNode("div",{class:"separator"},null,-1)),p0=Jt(()=>t.createElementVNode("div",null,null,-1)),u0={class:"game-events__data"},h0={class:"game-events__data__team"},f0=["src"],g0={class:"game-events__data__team__event__text"},y0={class:"game-events__data__team away"},b0={class:"game-events__data__team__event__text"},w0=["src"],_0=Jt(()=>t.createElementVNode("div",null,null,-1)),S0=Jt(()=>t.createElementVNode("div",null,null,-1)),k0={__name:"CalendarRow",props:{isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},game:{type:Object,required:!0},height:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#172531"},showPlayButton:{type:Boolean,default:!1},componentWidth:{type:Number,default:400,validator(e){return e>0}},televisionFontSize:{type:String,default:"12px"},televisionFontFamily:{type:String,default:"sans-serif"},televisionColor:{type:String,default:"rgba(255, 255, 255, 0.5)"}},emits:["action"],setup(e,{emit:a}){const o=e,n={GOAL:{}.GAME_EVENTS_ICONS_GOAL||"/icn-gol.svg",RED_CARD:{}.GAME_EVENTS_ICONS_RED_CARD||"/icn-expulsion.svg",YELLOW_CARD:{}.GAME_EVENTS_ICONS_YELLOW_CARD||"/icn-amarilla.svg"},i=t.ref(!1),r=t.ref(!1),s=t.computed(()=>{const f={homeTeam:[],awayTeam:[]};return o.game&&o.game.game_status!==4&&!o.game.is_live&&o.game.minutes&&(f.homeTeam.push(...d(o.game.minutes.home_goals_minutes,n.GOAL)),f.homeTeam.push(...d(o.game.minutes.home_red_cards_minutes,n.RED_CARD)),f.homeTeam.push(...d(o.game.minutes.home_yellow_cards_minutes,n.YELLOW_CARD)),f.awayTeam.push(...d(o.game.minutes.visiting_goals_minutes,n.GOAL)),f.awayTeam.push(...d(o.game.minutes.away_red_cards_minutes,n.RED_CARD)),f.awayTeam.push(...d(o.game.minutes.away_yellow_cards_minutes,n.YELLOW_CARD))),f}),l=t.computed(()=>{const f=s.value.homeTeam.length,y=s.value.awayTeam.length;return f+y>0}),p=t.computed(()=>({"background-color":o.backgroundColor})),c=t.computed(()=>({height:o.height})),m=t.computed(()=>{const f={game:[],events:[]};return o.componentWidth<500?(f.events.push("break-point-3"),f.game.push("break-point-2")):o.componentWidth<730?(f.game.push("break-point-2"),f.events.push("break-point-2")):o.componentWidth<910&&(f.game.push("break-point-1"),f.events.push("break-point-1")),f}),u=t.computed(()=>({isLandingMode:o.isLandingMode,game:o.game,colorPrimary:"#fff",colorSecondary:"#fff",namesFontSize:"12px",timeFontSize:"12px",timeZoneFontSize:"8px",scoreFontSize:"13px",namesFontFamily:"sans-serif",scoreFontFamily:"sans-serif",additionalInfoFontFamily:"sans-serif",additionalInfoFontSize:"9px"})),g=t.computed(()=>({"font-size":o.televisionFontSize,"font-family":o.televisionFontFamily,color:o.televisionColor}));t.watch(()=>o.componentWidth,f=>{r.value=f<910});function d(f,y){return f.map(C=>({iconUrl:y,text:C}))}function h(f){f===ue.SHOW_GAME_EVENTS?i.value=!i.value:a("action",{action:f,game:o.game})}return(f,y)=>e.isLandingMode?(t.openBlock(),t.createElementBlock("div",{key:0,class:"row-landing",style:t.normalizeStyle(p.value)},[t.createVNode(yi,{game:e.game,"is-landing-mode":e.isLandingMode},null,8,["game","is-landing-mode"]),t.createElementVNode("div",n0,[t.createVNode(wi,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":t.unref(gi)(e.game.matchday_abbreviation),"is-landing-mode":e.isLandingMode,"is-round-mode":e.isRoundMode,"font-size":"10px"},null,8,["status","is-live","date-time-millis","round-abbreviation","is-landing-mode","is-round-mode"])]),t.createElementVNode("div",r0,[t.createVNode(Mg,{"is-live":!!e.game.is_live,"has-video":!!e.game.has_video,"game-status":e.game.game_status,"show-play-button":!0,onAction:h},null,8,["is-live","has-video","game-status"])])],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"row-full-container",style:t.normalizeStyle(p.value)},[t.createElementVNode("div",{class:t.normalizeClass(["row-full",m.value.game]),style:t.normalizeStyle(c.value)},[t.createElementVNode("div",i0,[t.createVNode(wi,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":t.unref(gi)(e.game.matchday_abbreviation),"is-landing-mode":e.isLandingMode,"is-round-mode":e.isRoundMode,"font-size":"10px"},null,8,["status","is-live","date-time-millis","round-abbreviation","is-landing-mode","is-round-mode"])]),t.createElementVNode("div",s0,[t.createVNode(yi,t.mergeProps(u.value,{"is-television-visible":r.value,game:e.game,"is-landing-mode":e.isLandingMode,"is-acronym-visible":e.componentWidth<540}),null,16,["is-television-visible","game","is-landing-mode","is-acronym-visible"])]),e.componentWidth>=910?(t.openBlock(),t.createElementBlock("div",{key:0,class:"row-full__television",style:t.normalizeStyle(g.value)},[!r.value&&(e.game.game_status===4||e.game.is_live)?(t.openBlock(),t.createElementBlock("span",l0,t.toDisplayString(e.game.tv_stations.join(", ")),1)):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",c0,[t.createVNode(a0,{"is-live":!!e.game.is_live,"has-video":!!e.game.has_video,"has-actions":l.value,"game-status":e.game.game_status,"show-play-button":!0,"are-events-visible":i.value,"component-width":e.componentWidth,onAction:h},null,8,["is-live","has-video","has-actions","game-status","are-events-visible","component-width"])])],6),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",d0,[m0,t.createElementVNode("div",{class:t.normalizeClass(["game-events",m.value.events])},[p0,t.createElementVNode("div",u0,[t.createElementVNode("div",h0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value.homeTeam,(C,A)=>(t.openBlock(),t.createElementBlock("div",{key:`h${A}`,class:"game-events__data__team__event"},[t.createElementVNode("img",{src:C.iconUrl},null,8,f0),t.createElementVNode("div",g0,t.toDisplayString(C.text),1)]))),128))]),t.createElementVNode("div",y0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value.awayTeam,(C,A)=>(t.openBlock(),t.createElementBlock("div",{key:`a${A}`,class:"game-events__data__team__event"},[t.createElementVNode("div",b0,t.toDisplayString(C.text),1),t.createElementVNode("img",{src:C.iconUrl},null,8,w0)]))),128))])]),_0,S0],2)],512),[[t.vShow,i.value]])]),_:1})],4))}},_i=pe(k0,[["__scopeId","data-v-43a88f53"]]),C0={class:"calendar-table"},B0={__name:"CalendarTable",props:{isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},gamesPerPage:{type:Array,default:()=>[]},rowHeight:{type:String,default:"fit-content"},oddRowColor:{type:String,default:"#172531"},evenRowColor:{type:String,default:"#0D1D29"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:a}){const o=e;function n(r){return r%2===0?o.evenRowColor:o.oddRowColor}function i(r){a("action",r)}return(r,s)=>(t.openBlock(),t.createElementBlock("div",C0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gamesPerPage,(l,p)=>(t.openBlock(),t.createBlock(_i,{key:l.game_id,game:l,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":n(p),"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:i},null,8,["game","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))}},E0=pe(B0,[["__scopeId","data-v-47b333f0"]]),N0={class:"calendar-by-team"},x0={class:"playing-as-picker"},T0={class:"calendar-by-team__page"},O0={__name:"CalendarTableByTeam",props:{teamId:{type:Number,default:0},isPaginationVisible:{type:Boolean,default:!0},gamesPages:{type:Map,default:()=>new Map},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},rowHeight:{type:String,default:"fit-content"},nameRowColor:{type:String,default:"#172531"},gameRowColor:{type:String,default:"#0D1D29"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:a}){const o=e,n=t.ref(0),i=t.computed(()=>{let p=[];if(o.gamesPages.size>0){const c=Array.from(o.gamesPages.entries()).reduce((m,[u,g])=>{const d=Number(u),h=Number.isNaN(d)?u:`Jornada ${d<10?"0":""}${d}`,f=g.reduce((y,C)=>(y.push(...C),y),[]).filter(y=>n.value===0||n.value===1&&y.visiting_team.team_id===o.teamId?!0:n.value===2&&y.home_team.team_id===o.teamId);return f.length>0&&m.push({roundName:h,games:f}),m},[]);p.push(c)}return p});function r(p){a("action",p)}function s(p){document.querySelector("#opc0").classList.remove("selected"),document.querySelector("#opc1").classList.remove("selected"),document.querySelector("#opc2").classList.remove("selected"),n.value=p,document.querySelector("#opc"+p).classList.add("selected")}function l(p){let c=p;switch(p){case"PI1":c="Play In 1";break;case"PI2":c="Play In 2";break;case"R1":c="Repechaje";break;case"CFI":c="Cuartos de final - Ida";break;case"CFV":c="Cuartos de final - Vuelta";break;case"SFI":c="Semifinal - Ida";break;case"SFV":c="Semifinal - Vuelta";break;case"FI":c="Final - Ida";break;case"FV":c="Final - Vuelta";break}return c}return(p,c)=>(t.openBlock(),t.createElementBlock("div",N0,[t.createElementVNode("div",x0,[t.createElementVNode("div",{class:"playing-as-picker__type selected",id:"opc0",onClick:c[0]||(c[0]=m=>s(0))}," Todas "),t.createElementVNode("div",{class:"playing-as-picker__type",id:"opc1",onClick:c[1]||(c[1]=m=>s(1))},"Visitante"),t.createElementVNode("div",{class:"playing-as-picker__type",id:"opc2",onClick:c[2]||(c[2]=m=>s(2))},"Local")]),t.createVNode(t.unref(ui),{"is-pagination-visible":e.isPaginationVisible,items:i.value},{default:t.withCtx(({item:m})=>[t.createElementVNode("div",T0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m,(u,g)=>(t.openBlock(),t.createElementBlock("div",{key:g,class:"calendar-by-team__page__round"},[t.createElementVNode("div",{class:"calendar-by-team__page__round__round-name",style:t.normalizeStyle([{color:"white"},e.componentWidth<=425?"padding: 5px 10px":""])},t.toDisplayString(l(u.roundName)),5),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.games,d=>(t.openBlock(),t.createBlock(_i,{key:d.game_id,game:d,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":e.gameRowColor,"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:r},null,8,["game","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))),128))])]),_:1},8,["is-pagination-visible","items"])]))}},V0=pe(O0,[["__scopeId","data-v-1cad2737"]]),$0="_image62Icon_1lvdf_3",A0="_imgChivasIcon_1lvdf_21",z0="_nameDesktop_1lvdf_35",R0="_nameMobile_1lvdf_61",I0="_homeTeam_1lvdf_85",F0="_sbado16De_1lvdf_107",P0="_gameDate_1lvdf_125",L0="_sab16092023_1lvdf_133",D0="_div_1lvdf_159",M0="_divscore_1lvdf_177",j0="_cst_1lvdf_197",v0="_hour_1lvdf_215",W0="_score_1lvdf_217",U0="_chivasTvCanal_1lvdf_239",H0="_gameStatus_1lvdf_263",G0="_matchInfo_1lvdf_285",J0="_image62Icon1_1lvdf_311",q0="_name_1lvdf_35",Z0="_imgAtlasIcon_1lvdf_355",X0="_name1_1lvdf_369",K0="_awayTeam_1lvdf_393",Y0="_matchCard_1lvdf_415",Q0={image62Icon:$0,imgChivasIcon:A0,nameDesktop:z0,nameMobile:R0,homeTeam:I0,sbado16De:F0,gameDate:P0,sab16092023:L0,div:D0,divscore:M0,cst:j0,hour:v0,score:W0,chivasTvCanal:U0,gameStatus:H0,matchInfo:G0,image62Icon1:J0,name:q0,imgAtlasIcon:Z0,name1:X0,awayTeam:K0,matchCard:Y0},ey=["src"],ty=["src"],oy={key:0},ay=["src"],ny=["src"],ry={__name:"CardPreMatch",props:{game:{type:Object,default:()=>{}}},setup(e){const a=e,o=t.computed(()=>{const i={...a.game};return i.gameSchedule=a.game.schedule.split(":"),i.gameSchedule.pop(),i.gameSchedule=i.gameSchedule.join(":"),i});function n(i,r){const s=new Date(i);if(r==1){const l=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],p=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"];return`${l[s.getDay()]} ${s.getDate()} de ${p[s.getMonth()]}`}else return`${s.getDate()}-${s.getMonth()+1}-${s.getFullYear()}`}return(i,r)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(i.$style.matchCard)},[t.createElementVNode("div",{class:t.normalizeClass(i.$style.homeTeam),id:"container-home-team"},[t.createElementVNode("img",{class:t.normalizeClass(i.$style.image62Icon),alt:"",src:t.unref(Ye)(o.value.home_team.team_id,150)},null,10,ey),t.createElementVNode("img",{class:t.normalizeClass(i.$style.imgChivasIcon),alt:"",src:t.unref(Ye)(o.value.home_team.team_id)},null,10,ty),t.createElementVNode("h3",{class:t.normalizeClass(i.$style.nameDesktop),id:"team-name"},t.toDisplayString(o.value.home_team.colloquial_name),3),t.createElementVNode("h3",{class:t.normalizeClass(i.$style.nameMobile),id:"team-name"},t.toDisplayString(o.value.home_team.acronym),3)],2),o.value.game_status==4?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.$style.matchInfo),id:"container-match-info"},[t.createElementVNode("div",{class:t.normalizeClass(i.$style.sbado16De)},t.toDisplayString(n(o.value.date_time_utc,1)),3),t.createElementVNode("div",{class:t.normalizeClass(i.$style.sab16092023)},t.toDisplayString(n(o.value.date_time_utc,0)),3),t.createElementVNode("div",{class:t.normalizeClass(i.$style.hour)},[t.createElementVNode("div",{class:t.normalizeClass(i.$style.div)},t.toDisplayString(o.value.gameSchedule),3),t.createElementVNode("div",{class:t.normalizeClass(i.$style.cst)},"CST",2)],2),t.createElementVNode("div",{class:t.normalizeClass(i.$style.chivasTvCanal)},t.toDisplayString(o.value.tv_stations.join(", ")),3)],2)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.$style.matchInfo),id:"container-match-info"},[t.createElementVNode("div",{class:t.normalizeClass([i.$style.sbado16De,i.$style.gameDate])},t.toDisplayString(n(o.value.date_time_utc,1)),3),t.createElementVNode("div",{class:t.normalizeClass([i.$style.sab16092023,i.$style.gameDate])},t.toDisplayString(n(o.value.date_time_utc,0)),3),t.createElementVNode("div",{class:t.normalizeClass(i.$style.score)},[t.createElementVNode("div",{class:t.normalizeClass(i.$style.divscore)},t.toDisplayString(o.value.score.join(" - ")),3)],2),t.createElementVNode("div",{class:t.normalizeClass(i.$style.gameStatus)},[t.createTextVNode(" Finalizado "),o.value.penalties_score_home_team!=0||o.value.penalties_score_visiting_team!=0?(t.openBlock(),t.createElementBlock("span",oy," - Penales "+t.toDisplayString(o.value.penalties_score_home_team)+" - "+t.toDisplayString(o.value.penalties_score_visiting_team),1)):t.createCommentVNode("",!0)],2)],2)),t.createElementVNode("div",{class:t.normalizeClass(i.$style.awayTeam),id:"container-away-team"},[t.createElementVNode("img",{class:t.normalizeClass(i.$style.image62Icon1),alt:"",src:t.unref(Ye)(o.value.visiting_team.team_id,150)},null,10,ay),t.createElementVNode("h3",{class:t.normalizeClass(i.$style.name),id:"team-name"},t.toDisplayString(o.value.visiting_team.colloquial_name),3),t.createElementVNode("img",{class:t.normalizeClass(i.$style.imgAtlasIcon),alt:"",src:t.unref(Ye)(o.value.visiting_team.team_id)},null,10,ny),t.createElementVNode("h3",{class:t.normalizeClass(i.$style.name1),id:"team-name"},t.toDisplayString(o.value.visiting_team.acronym),3)],2)],2))}},iy={$style:Q0},sy=pe(ry,[["__cssModules",iy]]),ly={class:"calendar-by-game__carousel"},cy={components:{GscSwitchComponent:Qo,GSCGeneraltable:zu,GSCCalendarByGame:pe({__name:"GSC-CalendarByGame",props:{height:{type:String,default:"fit-content"},width:{type:String,default:"100%"},rowHeight:{type:String,default:"fit-content"},oddRowColor:{type:String,default:"#172531"},evenRowColor:{type:String,default:"#0D1D29"},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},isRoundPickerVisible:{type:Boolean,default:!0},isPaginationVisible:{type:Boolean,default:!0},awaitForSeasons:{type:Boolean,default:!1},seasons:{type:Array,default:()=>[]},isCup:{type:Boolean,default:!1},isCupLegacy:{type:Boolean,default:!1},token:{type:String,default:""},pagesWithGames:{type:Array,default:()=>[]},maxGamesToShow:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},areRoundsVisible:{type:Boolean,default:!0},gamesPerMatchDay:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},itemsToShow:{type:Number,default:9},itemsToScroll:{type:Number,default:9},games:{type:Array,default:()=>null},teamId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},avoidTeamIdFilter:{type:Boolean,default:!1},areGamesCarouselType:{type:Boolean,default:!1},defaultGameId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},userTeamId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},sortCalendar:{type:Boolean,default:!0}},emits:["tournament-selected","change-teams","change-round","change-game-carousel","action"],setup(e,{emit:a}){const o=e;let n=null;const i=t.ref([]),r=t.ref({}),s=t.ref(0),l=t.ref(null),p=t.ref({}),c=t.ref(new Map),m=t.ref(!1),u=t.ref(null),g=t.ref(null),d=t.ref(null),h=t.computed(()=>o.isCup),f=t.computed(()=>o.isCupLegacy),y=t.computed(()=>({height:o.height,width:o.width})),C=t.computed(()=>o.games?te(o.games):c.value.get(p.value.key)||[]),A=t.ref(0),v=t.ref("1"),U=t.ref([]),ne=t.ref([]),he=t.computed(()=>ne.value&&ne.value.length?se(r.value):X(r.value));t.watch(()=>he.value,O=>{A.value=U.value.findIndex(B=>B===O),v.value=O}),t.watch(()=>o.seasons,O=>{O&&O.length&&(m.value=!0,i.value=O.map(B=>B.id),ee(O,!0))},{immediate:!0,deep:!0});function X(O){const B=Object.entries(Object.entries(O).reduce((N,[$,z])=>(N[$]=[],z.forEach(D=>{D.games.forEach(W=>{const K=new Date(W.date_time_utc).getTime()+66e5;N[$].push(K)})}),N),{}));if(!B.length)return"1";const E=new Date().getTime(),T=B.reduce((N,[$,z])=>{let D=null;return z.forEach(W=>{const K=W-E;K>=0&&(D===null||K<D)&&(D=K)}),D&&(N.shortestTime===null||D<N.shortestTime)&&(N.round=$,N.shortestTime=D),N},{round:"",shortestTime:null});return T.shortestTime!==null?T.round:B[B.length-1][0]}function se(O){let B=1;if(ne.value.length){const E=ne.value[0];for(const[T,N]of Object.entries(O))for(const $ of N)if($.games.find(z=>z.game_id===E.game_id))return T}return B}t.watch(()=>o.teamId,()=>{j()},{immediate:!0});async function R(O,B,E=""){let T=E;try{const N={};o.token&&(N.Authorization=o.token),T||(T="https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",O.forEach((D,W)=>{T+=`${W===0?"":"&"}seasons=${D}`}));const{data:{data:$,teams:z}}=await ci.get(T,{headers:N});return{seasonsAndGames:$,seasonsAndTeams:z}}catch(N){if(B>0)return R(O,B-1,T);throw new Error(N)}}function ae(O){for(const B of O)if(!i.value.includes(B.season_id))return!0;return!1}async function ee(O,B){try{r.value={};let E=0;const{seasonsAndGames:T,seasonsAndTeams:N}=await R(O.map(z=>z.id),3);if(B&&ae(T))return;T.forEach(z=>{const{type:D}=O.find(W=>W.id===z.season_id);z.type=D,z.games.forEach(W=>{W.season_id=z.season_id}),D===0&&(E=z.season_id)}),u.value={seasonsGames:T};const{teams:$}=N.find(z=>z.season_id===E);g.value=$,a("change-teams",$),j()}catch(E){throw new Error(E)}}function j(){if(!g.value)return;ne.value=[];const O=u.value&&u.value.seasonsGames?u.value.seasonsGames.map(B=>{const E=B.games.reduce((T,N)=>{const $={...N};return $.dateTimeMillis=new Date($.date_time_utc).valueOf(),$.home_team=g.value.find(z=>z.team_id===N.home_team),$.visiting_team=g.value.find(z=>z.team_id===N.visiting_team),o.teamId&&$.home_team.team_id!==o.teamId&&$.visiting_team.team_id!==o.teamId||(T[N.matchday_abbreviation]?T[N.matchday_abbreviation][N.game_status===3?"canceled":N.date]?T[N.matchday_abbreviation][N.game_status===3?"canceled":N.date].push($):T[N.matchday_abbreviation][N.game_status===3?"canceled":N.date]=[$]:T[N.matchday_abbreviation]={[N.game_status===3?"canceled":N.date]:[$]},o.userTeamId&&$.game_status===4&&($.home_team.team_id===o.userTeamId||$.visiting_team.team_id===o.userTeamId)&&ne.value.push($)),T},{});for(let[T,N]of Object.entries(E))E[T]=Object.entries(N).map(([$,z])=>({date:$,games:z.sort((D,W)=>D.dateTimeMillis-W.dateTimeMillis)})),E[T].sort(($,z)=>$.date<z.date?-1:$.date>z.date?1:0);return{type:B.type,weight:B.type===0?0:B.type===2?1:2,schedule:E}}):[];O.sort((B,E)=>B.weight-E.weight),r.value=O.reduce((B,E)=>{for(const[T,N]of Object.entries(E.schedule))if(E.type===0)if(h.value){const $=T.replace("M",""),z=$;f.value?B[qf[$]||z]=N:B[Jf[T]||z]=N}else B[Number(T.replace("M","")).toString()]=N;else E.type===2?T.charAt(1)=="I"?B[`PI${Number(T.replace("PI",""))}`]=N:B[`R${Number(T.replace("PO",""))}`]=N:E.type===1&&(B[Gf[T]]=N);return B},{}),c.value=new Map,U.value=Array.from(Object.entries(r.value).reduce((B,[E,T],N)=>{const $=Number(E);let z="";Number.isNaN($)?z=E:z=$<10?`0${$}`:E,B.set(E,{key:E,value:$,valueText:z,index:N});const D=T.reduce((K,ge)=>(ge.games.forEach(ye=>{ye.game_id===o.defaultGameId&&(d.value=E),ye.roundAbbreviation=Number.isNaN($)?$:`J ${$}`}),K=K.concat(ge.games),K),[]),W=te(D);return c.value.set(E,W),B},new Map).values())}function te(O){const B=[];if(o.gamesPerMatchDay>0){let E=[];O.forEach((T,N)=>{E.push(T),(N+1)%o.gamesPerMatchDay===0&&(B.push([...E]),E=[])}),E.length&&B.push([...E])}else B.push(O);return B}async function re(O){try{const{data:B}=await ci.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments");return B}catch(B){if(O>0)return re(O-1);throw new Error(B)}}function Ue(){if(window.ResizeObserver)n=new ResizeObserver(()=>{s.value=l.value.clientWidth}),n.observe(l.value);else throw new Error("Resize observer not supported!")}function He(O){p.value=O,a("change-round",O)}function Ve(O){o.areGamesCarouselType&&a("change-game-carousel",O.selectedItem)}function fe(O){a("action",O),$e(O)}function $e(O){const B="PLAY_RESUME",E="PLAY_GOALS",T=[607,608,12,55,54,35,14,52,15,53,466,477],N=[12,55,"35_r","54_r"],{game_id:$,season_id:z}=O.game;let D={seasonId:z,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:1,gameIds:[$],playerIds:[],goalkeeperIds:[],categoryIds:[],teamId:0,matchResult:[],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:""},objectPlaySync:null};O.action===B?(D.categoryIds=T,D.advancedFilter.playListTitle="Resumen",a("openmedia",D)):O.action===E&&(D.categoryIds=N,D.advancedFilter.playListTitle="Goles",a("openmedia",D))}async function Ae(){try{if(!o.awaitForSeasons&&!o.games){const O=(await re(3)).find(T=>T._id===1),B=O.seasons[0],E=[{id:B.id,type:B.type}];O&&O.tournament&&a("tournament-selected",O.tournament),B.related_seasons&&B.related_seasons.length&&E.push(...B.related_seasons.map(T=>({id:T.id,type:T.type}))),await ee(E,!1)}}catch(O){throw new Error(O)}}return t.onMounted(()=>{Ue()}),Ae(),(O,B)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"calendarByGame",ref:l,class:"calendar-by-game",style:t.normalizeStyle(y.value)},[e.teamId&&!e.avoidTeamIdFilter?(t.openBlock(),t.createBlock(V0,{key:0,"full-tournament-schedule":r.value,"team-id":e.teamId,"is-landing-mode":!1,"row-height":e.rowHeight,"component-width":s.value,"games-pages":c.value,"is-pagination-visible":e.isPaginationVisible,"is-round-mode":e.isRoundMode,onAction:fe},null,8,["full-tournament-schedule","team-id","row-height","component-width","games-pages","is-pagination-visible","is-round-mode"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.areRoundsVisible&&U.value?(t.openBlock(),t.createBlock(dg,{key:0,"match-days":U.value,"is-landing-mode":e.isLandingMode,height:"48px","items-to-show":e.itemsToShow,"items-to-scroll":e.itemsToScroll,"component-width":s.value,"default-match-day-key":d.value,"closest-match-day":e.sortCalendar?he.value:"",onChangeMatchDay:He},null,8,["match-days","is-landing-mode","items-to-show","items-to-scroll","component-width","default-match-day-key","closest-match-day"])):t.createCommentVNode("",!0),t.createElementVNode("div",ly,[C.value?(t.openBlock(),t.createBlock(t.unref(ui),{key:0,"is-pagination-visible":e.isPaginationVisible&&!e.areGamesCarouselType,items:e.areGamesCarouselType?C.value[0]:C.value,"are-navigation-arrows-visible":e.areGamesCarouselType?!e.areGamesCarouselType:e.isPaginationVisible,"wrap-around":e.areGamesCarouselType,"items-to-show":e.areGamesCarouselType?1.2:1,"is-main-slide-priority":e.areGamesCarouselType,"are-slides-arrows-visible":e.areGamesCarouselType,"slides-arrows-left-and-right":e.areGamesCarouselType?"30px":"0px","default-item-by-prop":e.areGamesCarouselType?{propName:"game_id",value:e.defaultGameId}:{},onInput:Ve},{default:t.withCtx(({item:E})=>[e.areGamesCarouselType?(t.openBlock(),t.createBlock(sy,{key:0,game:E},null,8,["game"])):(t.openBlock(),t.createBlock(E0,{key:1,"games-per-page":E,"is-landing-mode":e.isLandingMode,"row-height":e.rowHeight,"component-width":s.value,"is-round-mode":e.isRoundMode,onAction:fe},null,8,["games-per-page","is-landing-mode","row-height","component-width","is-round-mode"]))]),_:1},8,["is-pagination-visible","items","are-navigation-arrows-visible","wrap-around","items-to-show","is-main-slide-priority","are-slides-arrows-visible","slides-arrows-left-and-right","default-item-by-prop"])):t.createCommentVNode("",!0)])],64))],4))}},[["__scopeId","data-v-94228d1d"]])},props:{season:{type:Object,default:()=>{}},seasons:{type:Array,default:()=>[]},componentWidth:{type:Number,default:768,validator(e){return e>0}}},data(){return{selectedOpt:"Mi posición",tokenFree:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{},methods:{onAction(e){this.$emit("action",e)},changeCategory(e){this.selectedOpt=e},onOpenMedia(e){this.$emit("openmedia",e)},onOpenProfile(e){this.$emit("onOpenProfile",e)}}},dy={class:"gsc-calendar-table"},my={class:"gsc-switch-container"},py={class:"gsc-app-component"};function uy(e,a,o,n,i,r){const s=t.resolveComponent("GscSwitchComponent"),l=t.resolveComponent("GSCGeneraltable"),p=t.resolveComponent("GSCCalendarByGame");return t.openBlock(),t.createElementBlock("div",dy,[t.createElementVNode("div",my,[t.createVNode(s,{type:0,"font-family":"Poppins-Light",buttons:["Mi posición","Calendario"],height:"40px","selected-option":i.selectedOpt,"font-size":o.componentWidth>=768?"16px":"14px",width:"355px",onInput:r.changeCategory},null,8,["selected-option","font-size","onInput"])]),t.createElementVNode("div",py,[i.selectedOpt=="Mi posición"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createVNode(l,{isPaginationVisible:!0,"current-season-id":o.season.id,type:1,"await-for-season":!0,onOpenmedia:r.onOpenMedia,onOpenTableProfile:r.onOpenProfile},null,8,["current-season-id","onOpenmedia","onOpenTableProfile"]),t.createElementVNode("div",{onClick:a[0]||(a[0]=c=>this.$router.push({name:"table"})),class:"gsc-app-component-view-all"}," Ver todo ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(p,{onAction:r.onAction,onOpenmedia:r.onOpenMedia,width:"100%",token:i.tokenFree,seasons:o.seasons,"row-height":"90px","is-landing-mode":!0,"is-pagination-visible":!0,isRoundPickerVisible:!0,"await-for-seasons":"","items-to-show":9,"items-to-scroll":5,"max-games-to-show":5,"games-per-match-day":5},null,8,["onAction","onOpenmedia","token","seasons"]),t.createElementVNode("div",{onClick:a[1]||(a[1]=c=>this.$router.push({name:"calendar"})),class:"gsc-app-component-view-all"}," Ver todo ")],64))])])}const hy=ie(cy,[["render",uy],["__scopeId","data-v-6b8889ec"]]),fy={class:"match"},gy={class:"match__header"},yy={key:0,class:"match__final-tag"},by={key:1,class:"match__final-tag__no-border"},wy={class:"match__tag"},_y={class:"match__body"},Sy={class:"match__data"},ky={class:"match__acronym"},Cy=["src"],By={class:"match__score"},Ey=["src"],Ny={class:"match__acronym"},xy={class:"match__status"},qt=ie({__name:"PreviousMatch",props:{visitTeam:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},homeTeam:{type:Object,default:()=>{}},score:{type:String,default:"2 - 1"},journey:{type:[String,Number],default:2},penalScore:{type:String,default:""},infoType:{type:String,default:"postmatch"}},setup(e){return(a,o)=>{var n,i,r;return t.openBlock(),t.createElementBlock("section",fy,[t.createElementVNode("div",gy,[e.infoType=="postmatch"?(t.openBlock(),t.createElementBlock("div",yy,"FINAL ")):(t.openBlock(),t.createElementBlock("div",by)),t.createElementVNode("div",wy,t.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),1)]),t.createElementVNode("div",_y,[t.createElementVNode("div",Sy,[t.createElementVNode("div",ky,t.toDisplayString((n=e.data)==null?void 0:n.home_team_acronym),1),t.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.home_team+".png",alt:"team-img"},null,8,Cy),t.createElementVNode("div",By,[e.infoType=="postmatch"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(e.data.score[0])+" - "+t.toDisplayString(e.data.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString((i=e.data)==null?void 0:i.schedule.replace(":00","")),1)],64))]),t.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.visiting_team+".png",alt:"team-img"},null,8,Ey),t.createElementVNode("div",Ny,t.toDisplayString((r=e.data)==null?void 0:r.visiting_team_acronym),1)]),t.createElementVNode("div",xy,[e.infoType=="postmatch"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Finalizado"+t.toDisplayString(e.penalScore?` - Penales ${e.penalScore}`:""),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("CST")],64))])]),t.createElementVNode("div",{class:"match__button",onClick:o[0]||(o[0]=s=>a.$emit("clickMatch"))},"Analizar partido →")])}}},[["__scopeId","data-v-c49fa538"]]),Ty=e=>(t.pushScopeId("data-v-8a51a354"),e=e(),t.popScopeId(),e),Oy={class:"match"},Vy={class:"match__header"},$y=Ty(()=>t.createElementVNode("div",{class:"match__final-tag"},"FINAL",-1)),Ay={class:"match__tag"},zy={class:"match__body"},Ry={class:"match__data"},Iy={class:"match__acronym"},Fy=["src"],Py={class:"match__score"},Ly=["src"],Dy={class:"match__acronym"},My={class:"match__status"},Si=ie({__name:"PreviousMatchGame",props:{visitTeam:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},homeTeam:{type:Object,default:()=>{}},score:{type:String,default:"2 - 1"},journey:{type:[String,Number],default:2},penalScore:{type:String,default:""}},setup(e){return(a,o)=>(t.openBlock(),t.createElementBlock("section",Oy,[t.createElementVNode("div",Vy,[$y,t.createElementVNode("div",Ay,t.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),1)]),t.createElementVNode("div",zy,[t.createElementVNode("div",Ry,[t.createElementVNode("div",Iy,t.toDisplayString(e.data.home_team.acronym),1),t.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.home_team.team_id+".png",alt:"team-img"},null,8,Fy),t.createElementVNode("div",Py,t.toDisplayString(e.data.score[0])+" - "+t.toDisplayString(e.data.score[1]),1),t.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.visiting_team.team_id+".png",alt:"team-img"},null,8,Ly),t.createElementVNode("div",Dy,t.toDisplayString(e.data.visiting_team.acronym),1)]),t.createElementVNode("div",My,"Finalizado"+t.toDisplayString(e.penalScore?` - Penales ${e.penalScore}`:""),1)]),t.createElementVNode("div",{class:"match__button",onClick:o[0]||(o[0]=n=>a.$emit("clickMatch"))},"Analizar partido →")]))}},[["__scopeId","data-v-8a51a354"]]),jy=e=>(t.pushScopeId("data-v-4c9c0afe"),e=e(),t.popScopeId(),e),vy=["src"],Wy=["src"],Uy={class:"coming-match__body"},Hy={class:"coming-match__data"},Gy=["src"],Jy={style:{"margin-top":"16px"}},qy={class:"coming-match__time"},Zy=jy(()=>t.createElementVNode("div",{class:"coming-match__cst"},"CST",-1)),Xy=["src"],Sa=ie({__name:"ComingMatch",props:{small:{type:Boolean,default:!1},visitTeam:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},homeTeam:{type:Object,default:()=>{}},date:{type:String,default:"Jueves 7 de Abril"},time:{type:String,default:"5: 00"}},setup(e){return(a,o)=>{var n,i,r,s,l,p,c,m,u,g,d,h,f;return t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass(["coming-match",{small:e.small}])},[t.createElementVNode("img",{class:t.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-150/"+((n=e.data)==null?void 0:n.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-150/"+((i=e.data)==null?void 0:i.home_team)+".png",alt:"team-img"},null,10,vy),t.createElementVNode("img",{class:t.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-150/"+((r=e.data)==null?void 0:r.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-150/"+((s=e.data)==null?void 0:s.visiting_team)+".png",alt:"team-img"},null,10,Wy),t.createElementVNode("div",Uy,[t.createElementVNode("div",{class:t.normalizeClass(["coming-match__date",{small:e.small}])},t.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),3),t.createElementVNode("div",Hy,[t.createElementVNode("div",{class:t.normalizeClass(["coming-match__team",{small:e.small}])},[t.createElementVNode("img",{class:t.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((l=e.data)==null?void 0:l.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((p=e.data)==null?void 0:p.home_team)+".png",alt:"team-img"},null,10,Gy),t.createElementVNode("div",{class:t.normalizeClass(["coming-match__acronym",{small:e.small}])},t.toDisplayString((c=e.data)==null?void 0:c.home_team_name),3)],2),t.createElementVNode("div",Jy,[t.createElementVNode("div",qy,[e.data.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString((m=e.data)==null?void 0:m.score[0])+" - "+t.toDisplayString((u=e.data)==null?void 0:u.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString((g=e.data)==null?void 0:g.schedule.replace(":00","")),1)],64))]),Zy]),t.createElementVNode("div",{class:t.normalizeClass(["coming-match__team",{small:e.small}])},[t.createElementVNode("div",{class:t.normalizeClass(["coming-match__acronym",{small:e.small}])},t.toDisplayString((d=e.data)==null?void 0:d.visiting_team_name),3),t.createElementVNode("img",{class:t.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((h=e.data)==null?void 0:h.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((f=e.data)==null?void 0:f.visiting_team)+".png",alt:"team-img"},null,10,Xy)],2)])]),t.createElementVNode("div",{class:t.normalizeClass(["coming-match__button",{small:e.small}]),onClick:o[0]||(o[0]=y=>a.$emit("clickMatch"))},"Analizar partido →",2)],2)}}},[["__scopeId","data-v-4c9c0afe"]]),Ky=e=>(t.pushScopeId("data-v-90640930"),e=e(),t.popScopeId(),e),Yy=["src"],Qy=["src"],e1={class:"coming-match__body"},t1={class:"coming-match__data"},o1=["src"],a1={style:{"margin-top":"16px"}},n1={class:"coming-match__time"},r1=Ky(()=>t.createElementVNode("div",{class:"coming-match__cst"},"CST",-1)),i1=["src"],ki=ie({__name:"ComingMatchGame",props:{small:{type:Boolean,default:!1},visitTeam:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},homeTeam:{type:Object,default:()=>{}},date:{type:String,default:"Jueves 7 de Abril"},time:{type:String,default:"5: 00"}},setup(e){return(a,o)=>{var n,i,r,s,l,p,c,m,u,g,d,h,f;return t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass(["coming-match",{small:e.small}])},[t.createElementVNode("img",{class:t.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((n=e.data)==null?void 0:n.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((i=e.data)==null?void 0:i.home_team)+".png",alt:"team-img"},null,10,Yy),t.createElementVNode("img",{class:t.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((r=e.data)==null?void 0:r.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((s=e.data)==null?void 0:s.visiting_team)+".png",alt:"team-img"},null,10,Qy),t.createElementVNode("div",e1,[t.createElementVNode("div",{class:t.normalizeClass(["coming-match__date",{small:e.small}])},t.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),3),t.createElementVNode("div",t1,[t.createElementVNode("div",{class:t.normalizeClass(["coming-match__team",{small:e.small}])},[t.createElementVNode("img",{class:t.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((l=e.data)==null?void 0:l.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((p=e.data)==null?void 0:p.home_team)+".png",alt:"team-img"},null,10,o1),t.createElementVNode("div",{class:t.normalizeClass(["coming-match__acronym",{small:e.small}])},t.toDisplayString((c=e.data)==null?void 0:c.home_team_name),3)],2),t.createElementVNode("div",a1,[t.createElementVNode("div",n1,[e.data.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString((m=e.data)==null?void 0:m.score[0])+" - "+t.toDisplayString((u=e.data)==null?void 0:u.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString((g=e.data)==null?void 0:g.schedule.replace(":00","")),1)],64))]),r1]),t.createElementVNode("div",{class:t.normalizeClass(["coming-match__team",{small:e.small}])},[t.createElementVNode("div",{class:t.normalizeClass(["coming-match__acronym",{small:e.small}])},t.toDisplayString((d=e.data)==null?void 0:d.visiting_team_name),3),t.createElementVNode("img",{class:t.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((h=e.data)==null?void 0:h.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((f=e.data)==null?void 0:f.visiting_team)+".png",alt:"team-img"},null,10,i1)],2)])]),t.createElementVNode("div",{class:t.normalizeClass(["coming-match__button",{small:e.small}]),onClick:o[0]||(o[0]=y=>a.$emit("clickMatch"))},"Analizar partido →",2)],2)}}},[["__scopeId","data-v-90640930"]]),s1=e=>(t.pushScopeId("data-v-0c45a1f6"),e=e(),t.popScopeId(),e),l1={class:"quadrant-matches"},c1={class:"quadrant-matches__header"},d1={class:"quadrant-matches__title"},m1=s1(()=>t.createElementVNode("span",null," →",-1)),p1={key:0,class:"quadrant-matches__body"},u1={class:"quadrant-matches__body",style:{"column-gap":"16px"}},h1={class:"quadrant-matches__body matches"},f1={key:0,class:"quadrant-matches__body"},g1={class:"quadrant-matches__body",style:{"column-gap":"16px"}},y1=ie({__name:"GSCQuadrantGames",props:{isUserPro:{type:Boolean,default:!1},hasTeam:{type:Boolean,default:!1},isFull:{type:Boolean,default:!1},comingMatches:{type:Array,default:()=>[]},data:{type:Object,default:()=>{}},previousMatches:{type:Array,default:()=>[]},componentWidth:{type:Number,default:768,validator(e){return e>0}}},setup(e){const a=e;t.computed(()=>a.comingMatches[0]||{}),t.computed(()=>a.previousMatches[0]||{});const o=t.toRef(a,"componentWidth"),n=t.computed(()=>o.value<768);return(i,r)=>(t.openBlock(),t.createElementBlock("section",l1,[t.createElementVNode("div",c1,[t.createElementVNode("h2",d1,t.toDisplayString(e.isFull?"Partidos":"Mis partidos"),1),t.createElementVNode("button",{class:"quadrant-matches__button",onClick:r[0]||(r[0]=s=>i.$emit("clickCalendar"))},[t.createElementVNode("span",null,t.toDisplayString(e.isFull?"Calendario completo":"Mi calendario completo"),1),m1])]),e.isFull?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.data.length>1?(t.openBlock(),t.createBlock(t.unref(rt),{key:0,pxScroll:348,"background-color":"none",scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(13,29,41,0) 100%, rgba(13,29,41,1) 100%)",arrowsContainerBgR:"linear-gradient(270deg, rgba(13,29,41,0) 100%, rgba(13,29,41,1) 100%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[t.createElementVNode("div",h1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.data,(s,l)=>(t.openBlock(),t.createBlock(Sa,{key:l,data:s,small:"",onClickMatch:p=>i.$emit("clickMatch",s)},null,8,["data","onClickMatch"]))),128))])]),_:1})):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[n.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.data).length>0?(t.openBlock(),t.createBlock(t.unref(rt),{key:0,pxScroll:348,"background-color":"none",scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(13,29,41,0) 100%, rgba(13,29,41,1) 100%)",arrowsContainerBgR:"linear-gradient(270deg, rgba(13,29,41,0) 100%, rgba(13,29,41,1) 100%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[t.createElementVNode("div",g1,[e.data[0].game_status==4?(t.openBlock(),t.createBlock(ki,{key:0,data:e.data[0],onClickMatch:r[9]||(r[9]=s=>i.$emit("clickMatch",e.data[0]))},null,8,["data"])):t.createCommentVNode("",!0),e.data[0].game_status!=4?(t.openBlock(),t.createBlock(Si,{key:1,data:e.data[0],onClickMatch:r[10]||(r[10]=s=>i.$emit("clickMatch",e.data[0]))},null,8,["data"])):t.createCommentVNode("",!0)])]),_:1})):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.data).length>0?(t.openBlock(),t.createElementBlock("div",f1,[e.data[0].game_status==4?(t.openBlock(),t.createBlock(ki,{key:0,data:e.data[0],onClickMatch:r[7]||(r[7]=s=>i.$emit("clickMatch",e.data[0]))},null,8,["data"])):t.createCommentVNode("",!0),e.data[0].game_status!=4?(t.openBlock(),t.createBlock(Si,{key:1,data:e.data[0],onClickMatch:r[8]||(r[8]=s=>i.$emit("clickMatch",e.data[0]))},null,8,["data"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],64))],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[n.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.data).length>0?(t.openBlock(),t.createBlock(t.unref(rt),{key:0,pxScroll:348,"background-color":"none",scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(13,29,41,0) 100%, rgba(13,29,41,1) 100%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(13,29,41,0) 100%, rgba(13,29,41,1) 100%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[t.createElementVNode("div",u1,[t.createVNode(Sa,{small:"",data:e.data.data.prematch,onClickMatch:r[4]||(r[4]=s=>i.$emit("clickMatch",e.data.data.prematch))},null,8,["data"]),e.data.data.postmatch&&e.data.data.postmatch.game_status&&e.data.data.postmatch.game_status!==4?(t.openBlock(),t.createBlock(qt,{key:0,data:e.data.data.postmatch,onClickMatch:r[5]||(r[5]=s=>i.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"])):(t.openBlock(),t.createBlock(qt,{key:1,"info-type":"prematch",data:e.data.data.postmatch,onClickMatch:r[6]||(r[6]=s=>i.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"]))])]),_:1})):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.data).length>0?(t.openBlock(),t.createElementBlock("div",p1,[t.createVNode(Sa,{data:e.data.data.prematch,onClickMatch:r[1]||(r[1]=s=>i.$emit("clickMatch",e.data.data.prematch))},null,8,["data"]),e.data.data.postmatch&&e.data.data.postmatch.game_status&&e.data.data.postmatch.game_status!==4?(t.openBlock(),t.createBlock(qt,{key:0,data:e.data.data.postmatch,onClickMatch:r[2]||(r[2]=s=>i.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"])):(t.openBlock(),t.createBlock(qt,{key:1,"info-type":"prematch",data:e.data.data.postmatch,onClickMatch:r[3]||(r[3]=s=>i.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"]))])):t.createCommentVNode("",!0)],64))],64))]))}},[["__scopeId","data-v-0c45a1f6"]]),b1={__name:"gsc-games",props:{componentWidth:{type:Number,default:768,validator(e){return e>0}},isplayer:{type:Boolean,default:!1},isFull:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},setup(e){return(a,o)=>(t.openBlock(),t.createElementBlock("main",null,[t.createVNode(y1,{data:e.data,"component-width":e.componentWidth,"is-full":e.isFull,onClickCalendar:o[0]||(o[0]=n=>a.$emit("clickCalendar")),onClickMatch:o[1]||(o[1]=n=>a.$emit("clickMatch",n)),"has-team":!e.isplayer},null,8,["data","component-width","is-full","has-team"])]))}},w1="_toniKroos_1mxz1_35",_1="_centralMidfielder_1mxz1_55",S1="_icnPlayIcon_1mxz1_75",k1="_verVideos_1mxz1_89",C1="_btnVideosOptions_1mxz1_109",B1="_btnVideosOptionsTeams_1mxz1_139",E1="_info_1mxz1_179",N1="_goalUnlock_1mxz1_203",x1="_teamsAmerica_1mxz1_229",T1="_imageIcon_1mxz1_249",O1="_imageIconTeam_1mxz1_271",V1="_playerTops_1mxz1_295",$1={toniKroos:w1,centralMidfielder:_1,icnPlayIcon:S1,verVideos:k1,btnVideosOptions:C1,btnVideosOptionsTeams:B1,info:E1,goalUnlock:N1,teamsAmerica:x1,imageIcon:T1,imageIconTeam:O1,playerTops:V1},A1=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},z1={props:{height:{type:String,default:"194px"},background:{type:String,default:"#122735"},borderRadius:{type:String,default:"4px"},borderWidth:{type:Number,default:0},borderColor:{type:String,default:"#ffffff"},namePlayerFont:{type:String,default:"Montserrat-SemiBold"},namePlayerFontColor:{type:String,default:"#ffffff"},namePlayerFontSize:{type:String,default:"18px"},namePlayerFontStyle:{type:String,default:"Normal"},namePositionFont:{type:String,default:"Poppins-Regular"},namePositionFontColor:{type:String,default:"#8ea2ab"},namePositionFontSize:{type:String,default:"14px"},namePositionFontStyle:{type:String,default:"Normal"},totalFont:{type:String,default:"Poppins-Regular"},totalFontColor:{type:String,default:"#ffffff"},totalFontSize:{type:String,default:"8px"},totalFontStyle:{type:String,default:"Normal"},totalHeight:{type:String,default:"22px"},totalWidth:{type:String,default:"80px"},totalBorderRadius:{type:String,default:"64px"},totalBorderWidth:{type:Number,default:1},totalBorderColor:{type:String,default:"#cbee6b"},iconPlay:{type:String,default:"/icnplay1.svg"},teamWidth:{type:String,default:"34px"},teamPositionLeft:{type:String,default:"12px"},teamPositionTop:{type:String,default:""},playerOrTeamPhotoWidth:{type:String,default:"99px"},numbertopLeft:{type:String,default:"-8px"},numbertopBottom:{type:String,default:"-25px"},numbertopTop:{type:String},numbertopRight:{type:String},numbertopColor:{type:String,default:"#ffffff"},numbertopFontSize:{type:String,default:"98px"},numbertopOpacity:{type:String,default:"0.18"},numberFontFamily:{type:String,default:"Montserrat-SemiBold"},showShieldTeam:{type:Boolean,default:!0},showIconVideo:{type:Boolean,default:!0},showPositionPlayer:{type:Boolean,default:!0},activeVideos:{type:Boolean,default:!0},freemiumActive:{type:Boolean,default:!1},isPlayer:{type:Boolean,default:!0},data:{type:Object,default:()=>{}}},computed:{customMosaic(){return{height:this.height,background:this.background,borderRadius:`${this.borderRadius} !important`,border:`solid ${this.borderWidth}px ${this.borderColor}`}},customNamePlayer(){return{fontFamily:this.namePlayerFont,fontSize:this.namePlayerFontSize,color:this.namePlayerFontColor,fontStyle:this.namePlayerFontStyle}},customNamePosition(){return{fontFamily:this.namePositionFont,fontSize:this.namePositionFontSize,color:this.namePositionFontColor,fontStyle:this.namePositionFontStyle}},customTotal(){return{fontFamily:this.totalFont,fontSize:this.totalFontSize,color:this.totalFontColor,fontStyle:this.totalFontStyle}},customTotalCont(){return{MinHeight:this.totalHeight,width:this.totalWidth,borderRadius:`${this.totalBorderRadius} !important`,border:`solid ${this.totalBorderWidth}px ${this.totalBorderColor}`}},customShieldTeam(){return{width:this.teamWidth,top:this.teamPositionTop,left:this.teamPositionLeft}},customPhotoPlayerOrTeam(){return{width:this.playerOrTeamPhotoWidth}},customNumberTop(){return{fontSize:this.numbertopFontSize,color:this.numbertopColor,left:this.numbertopLeft,right:this.numbertopRight,top:this.numbertopTop,bottom:this.numbertopBottom,opacity:this.numbertopOpacity,fontFamily:this.numberFontFamily}}},methods:{onPlayerTopsClick(e){this.activeVideos&&(this.$emit("clickMosaic",e),this.$emit("freemium",this.freemiumActive))},onButtonVideos(e){this.activeVideos&&(this.$emit("openmedia",e),this.$emit("clickvideos",e.id),this.$emit("freemium",this.freemiumActive))}}},R1=["src"],I1=["src"],F1=["src"];function P1(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass(e.$style.playerTops),style:t.normalizeStyle(r.customMosaic),id:"player-mosaico",onClick:a[1]||(a[1]=s=>r.onPlayerTopsClick(o.data.player_id))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.info)},[t.createElementVNode("h3",{class:t.normalizeClass(e.$style.toniKroos),style:t.normalizeStyle(r.customNamePlayer)},t.toDisplayString(o.data.player_name),7),o.showPositionPlayer?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.centralMidfielder),style:t.normalizeStyle(r.customNamePosition)},t.toDisplayString(o.data.player_position),7)):t.createCommentVNode("",!0),t.createElementVNode("button",{class:t.normalizeClass(this.isPlayer?e.$style.btnVideosOptions:e.$style.btnVideosOptionsTeams),style:t.normalizeStyle(r.customTotalCont),id:"button-actions",onClick:a[0]||(a[0]=s=>r.onButtonVideos(o.data))},[o.showIconVideo?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.icnPlayIcon),src:o.iconPlay},null,10,R1)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.verVideos),style:t.normalizeStyle(r.customTotal)},t.toDisplayString(o.data.player_stat)+" "+t.toDisplayString(o.data.category),7)],6)],2),t.createElementVNode("b",{style:t.normalizeStyle(r.customNumberTop),class:t.normalizeClass(e.$style.goalUnlock)},t.toDisplayString(o.data.top),7),o.showShieldTeam?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.teamsAmerica),style:t.normalizeStyle(r.customShieldTeam),loading:"lazy",src:o.data.team_logo},null,14,I1)):t.createCommentVNode("",!0),t.createElementVNode("img",{style:t.normalizeStyle(r.customPhotoPlayerOrTeam),class:t.normalizeClass(this.isPlayer?e.$style.imageIcon:e.$style.imageIconTeam),loading:"lazy",src:o.data.player_photo},null,14,F1)],6)}const L1={$style:$1},D1=A1(z1,[["render",P1],["__cssModules",L1]]),M1=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},ka={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},Ci=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},Bi=ka.setup;ka.setup=Bi?(e,a)=>(Ci(),Bi(e,a)):Ci;const j1=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),v1=["src"],W1={key:1,class:"text"},U1=["src"],H1={class:"stats"},G1=j1(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),J1={class:"numstats"},q1={class:"leyend"};function Z1(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",null,[o.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",i.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([r.customStyle,i.status&&o.typeOnOff&&r.customActive]),onClick:a[0]||(a[0]=(...s)=>r.btnClick&&r.btnClick(...s))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,v1)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",W1,t.toDisplayString(o.textValue),1)):t.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,U1)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...s)=>r.btnClick&&r.btnClick(...s))},[t.createElementVNode("div",H1,[G1,t.createElementVNode("div",J1,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",q1,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const Ei=M1(ka,[["render",Z1],["__scopeId","data-v-fb269a1e"]]);function X1(e){const a=t.ref({width:0,height:0});function o(){const n=e.value.getBoundingClientRect();a.value.width=n.width,a.value.height=n.height}return t.onMounted(()=>{o(),window.addEventListener("resize",o)}),t.onUnmounted(()=>{window.removeEventListener("resize",o)}),{elementSize:a}}const Ca={props:{textOptionLeft:String,valueDefault:{type:String,default:""},textOptionRight:String,hiddenLabels:{type:Boolean,default:!1},width:{type:String,default:"50px"},height:{type:String,default:"32px"},heightCircle:{type:String,default:"24px"},widthCircle:{type:String,default:"24px"},widthIcons:{type:String,default:"22"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"14px"},fontColor:{type:String,default:"#000000"},iconA:{type:String,default:""},iconB:{type:String,default:""},fontFamily:{type:String,default:"Poppins-Light"},backgroundColor:{type:String,default:"#2e3b46"},circleColorSwitch:{type:String,default:"#FFFFFF"}},data(){return{OptionDefault:!1}},watch:{valueDefault:{immediate:!0,handler:async function(e){try{e==this.textOptionLeft&&(this.OptionDefault=!1),e==this.textOptionRight&&(this.OptionDefault=!0)}catch(a){throw new Error(a)}}}},computed:{customStyle(){return{width:this.width,height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,backgroundColor:this.backgroundColor,circleColor:this.circleColorSwitch}},customText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}}},methods:{handleSwitchChange(e){e.target.checked?this.$emit("change",this.textOptionRight):this.$emit("change",this.textOptionLeft)}}},Ni=()=>{t.useCssVars(e=>({"2bf57034":e.backgroundColor,b8f32872:e.widthCircle,23023166:e.heightCircle}))},xi=Ca.setup;Ca.setup=xi?(e,a)=>(Ni(),xi(e,a)):Ni;const K1={key:0,class:"text-left"},Y1=["width","src"],Q1=["checked"],e2=["width","src"],t2={key:3,class:"text-right"};function o2(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",{class:"gsc-switch-radio",style:t.normalizeStyle(r.customText)},[o.textOptionLeft!=""&&!o.hiddenLabels?(t.openBlock(),t.createElementBlock("span",K1,t.toDisplayString(o.textOptionLeft),1)):t.createCommentVNode("",!0),o.iconA!=""?(t.openBlock(),t.createElementBlock("img",{key:1,width:o.widthIcons,src:o.iconA},null,8,Y1)):t.createCommentVNode("",!0),t.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:a[0]||(a[0]=(...s)=>r.handleSwitchChange&&r.handleSwitchChange(...s)),checked:i.OptionDefault},null,40,Q1),t.createElementVNode("label",{for:"toggle-btn",style:t.normalizeStyle([r.customStyle,{"--circle-color":o.circleColorSwitch}])},null,4),o.iconB!=""?(t.openBlock(),t.createElementBlock("img",{key:2,width:o.widthIcons,src:o.iconB},null,8,e2)):t.createCommentVNode("",!0),o.textOptionRight!=""&&!o.hiddenLabels?(t.openBlock(),t.createElementBlock("span",t2,t.toDisplayString(o.textOptionRight),1)):t.createCommentVNode("",!0)],4)}const Ba={components:{GSCSlider:rt,GSCMosaicthebest:D1,GscSwitchComponent:Qo,GSCButton:Ei,GSCRadioToggle:ie(Ca,[["render",o2],["__scopeId","data-v-c2ae0cf9"]])},setup(){const e=t.ref("myDivRef"),{elementSize:a}=X1(e);return{myDivRef:e,elementSize:a}},props:{backgroundColor:{type:String,default:"#0D1D29"},showSwitch:{type:Boolean,default:!0},fontFamily:{type:String,default:"Poppins-Semibold"},fontColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"24px"},marginMosaic:{type:String,default:"24px"},tournament:{type:Number,default:1},season:{type:Number,default:1772},teamId:{type:Number,default:0}},watch:{async season(e,a){const o=this.categorySelected!==null?this.categorySelected:1;this.showSwitch||(this.filterSelected=1),await this.getCategoryStats(e,this.filterSelected,o)}},data:()=>({url:"https://kgfaxdv624.execute-api.us-east-2.amazonaws.com/prod/tops/seasons/",token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",categoriesDefault:["Goles","Pases acertados","Balones recuperados en disputa","Asistencias","Participaciones en gol","Tiros a gol","Tiros a gol que llegaron a la portería","Cabeceos en área rival","Cabeceos en área propia","Centros","Centros acertados","1vs1 exitosos ofensivos","1vs1 exitosos ofensivos que terminaron en gol","1vs1 defensivos exitoso","Rechaces","Balones ganados en área propia","Balones ganados en área rival","Faltas cometidas","Faltas recibidas","Tarjetas amarillas","Tarjetas rojas","Atajadas","Tiros de Esquina"],categories:[{id:1,name:"Goles"},{id:2,name:"Pases acertados"},{id:3,name:"Balones recuperados en disputa"},{id:4,name:"Asistencias"},{id:5,name:"Participaciones en gol"},{id:6,name:"Tiros a gol"},{id:7,name:"Tiros a gol que llegaron a la portería"},{id:8,name:"Cabeceos en área rival"},{id:9,name:"Cabeceos en área propia"},{id:10,name:"Centros"},{id:11,name:"Centros acertados"},{id:12,name:"1vs1 exitosos ofensivos"},{id:13,name:"1vs1 exitosos ofensivos que terminaron en gol"},{id:14,name:"1vs1 defensivos exitoso"},{id:15,name:"Rechaces"},{id:16,name:"Balones ganados en área propia"},{id:17,name:"Balones ganados en área rival"},{id:18,name:"Faltas cometidas"},{id:19,name:"Faltas recibidas"},{id:20,name:"Tarjetas amarillas"},{id:21,name:"Tarjetas rojas"},{id:22,name:"Atajadas"},{id:23,name:"Tiros de Esquina"}],categoryData:[],categorySelected:null,filterSelected:1,isTeam:!1,categoryName:"Goles",optionSelected:"Jugadores",positions:[{name:"Portero"},{name:"Defensa central"},{name:"Lateral por izquierda"},{name:"Lateral por derecha"},{name:"Volante por izquierda"},{name:"Volante por derecha"},{name:"Volante defensivo"},{name:"Volante ofensivo"},{name:"Delantero"},{name:"Desconocida"}]}),async created(){await this.getCategoryStats(this.season,1)},computed:{topData(){var e=[];return this.categorySelected!=null&&this.categoryData[this.categorySelected]!==void 0&&(this.isTeam?e=this.categoryData[this.categorySelected].top__teams:e=this.categoryData[this.categorySelected].top__players),e}},methods:{formatPlayerName(e){var n;const a=e.split(",");let o="";if(a[1]&&(o=`${a[1].trim()[0]}.`,a[0])){const i=(n=a[0])==null?void 0:n.trim().split(" ");for(let r of i)if(o=`${o} ${r.trim()}`,r.trim().length>3)break}return o},translateTopCategories(e){return{1:[12,55,"35_r","54_r"],2:[2,20],3:[485,486,487,488],4:[10,324],5:[27,323],6:[510],7:[537,540,544,547],8:[328],9:[231,238,280,287,294,406],10:[13,25],11:[98,101,104,105,109,112,115,116],12:[4],13:[88],14:[5],15:[34],16:[23],17:[11],18:[17,50],19:[18,49],20:[14,52],21:[15,53],22:[39],23:[31,32]}[e]||[]},onOpenMedia(e){const a=this.translateTopCategories(this.categorySelected),o=2,n=3;let i=[],r=0,s=0;this.isTeam?(r=e.player_id,s=n):(i=[e.player_id],s=o);const l={seasonId:this.season,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:s,gameIds:null,playerIds:i,goalkeeperIds:[],categoryIds:a,teamId:r,matchResult:[1,2,3],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:e.category},objectPlaySync:null};this.$emit("openmedia",l)},async ChangeRadio(e){const a=this.categorySelected!==null?this.categorySelected:1;e==="Mi equipo"&&(this.filterSelected=0,await this.getCategoryStats(this.season,0,a)),e==="Liga MX"&&(this.filterSelected=1,await this.getCategoryStats(this.season,1,a))},clickMosaic(e){this.$emit("boxinput",e)},clickMore(){this.$emit("more")},async changeType(e){const a=this.categorySelected!==null?this.categorySelected:1;this.optionSelected=e,e=="Equipos"?(await this.getCategoryStats(this.season,1,a),this.isTeam=!0):this.isTeam=!1},changeCategory(e){this.categoryName=e;const a=this.categories.find(o=>o.name===e);this.categorySelected=a.id},async getCategoryStats(e,a,o=0){try{let r={},s={},l=[];const p=Tt.create({headers:{Authorization:`${this.token}`}});var n={};if(a==0&&(n=await p.get(this.url+this.season+"/teams/"+this.teamId)),a==1&&(n=await p.get(this.url+e)),n&&n.data){n.data.teams.map(c=>{r[c[0]]={},r[c[0]].id=c[0],r[c[0]].name=c[1],r[c[0]].img=c[3],r[c[0]].abrv=c[2],r[c[0]].logo=c[3]}),n.data.players.map(c=>{s[c[0]]={},s[c[0]].id=c[0],s[c[0]].name=c[1],s[c[0]].img=c[2],s[c[0]].position=c[6],s[c[0]].logo="https://az755631.vo.msecnd.net/teams-80/"+c[10][0].team_id+".png"});var i=1;n.data.tops.map(c=>{l[c.category?c.category:i]={};var m={},u={};c.teams.map(h=>{m[h[0]]={},m[h[0]].total=h[1],m[h[0]].id=r[h[0]].id,m[h[0]].name=r[h[0]].name,m[h[0]].img="https://az755631.vo.msecnd.net/teams-150/"+h[0]+".png",m[h[0]].logo="https://az755631.vo.msecnd.net/teams-80/"+h[0]+".png"}),c.players.map(h=>{u[h[0]]={},u[h[0]].total=h[1],u[h[0]].name=s[h[0]].name,u[h[0]].img=s[h[0]].img.replace("players-profile/","players-profile/"),u[h[0]].id=s[h[0]].id,u[h[0]].position=this.positions[s[h[0]].position-1].name,u[h[0]].logo=s[h[0]].logo});var g=[],d=[];for(const h in m)g.push(m[h]);for(const h in u)d.push(u[h]);g.sort((h,f)=>h.total<f.total?1:-1),d.sort((h,f)=>h.total<f.total?1:-1),l[c.category?c.category:i].top__players=d,l[c.category?c.category:i].top__teams=g,i++})}o===0?this.categorySelected=1:this.categorySelected=o,this.categoryData=l}catch(r){return Promise.reject(r)}}}},Ti=()=>{t.useCssVars(e=>({"7a5b0a28":e.backgroundColor,"292ba61c":e.fontFamily,"510c78b9":e.fontSize,"60b8a4aa":e.fontColor,d5d221be:e.marginMosaic}))},Oi=Ba.setup;Ba.setup=Oi?(e,a)=>(Ti(),Oi(e,a)):Ti;const a2=e=>(t.pushScopeId("data-v-a5fb54bf"),e=e(),t.popScopeId(),e),n2={class:"gsc-best",ref:"myDivRef"},r2={class:"gsc-best__line-bar-tools"},i2={key:0,class:"gsc-best__line-bar-tools__title"},s2=a2(()=>t.createElementVNode("span",null,"Los mejores ",-1)),l2={key:1,class:"gsc-best__line-bar-tools__titlefull"},c2={class:"unit-items"},d2={key:2,class:"gsc-best__line-bar-tools__tools"},m2={key:0,class:"gsc-best__line-bar-tools__tools__tabs"},p2={class:"gsc-best__line-bar-tools__tools__btn"},u2={key:0,class:"gsc-best__line-bar-tools-movil"},h2={class:"gsc-best__line-bar-tools-movil__tabs"},f2={class:"gsc-best__categories"},g2={class:"gsc-best__players"};function y2(e,a,o,n,i,r){const s=t.resolveComponent("GSCRadioToggle"),l=t.resolveComponent("GSCButton"),p=t.resolveComponent("GscSwitchComponent"),c=t.resolveComponent("GSCMosaicthebest"),m=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",n2,[t.createElementVNode("div",r2,[n.elementSize.width>900?(t.openBlock(),t.createElementBlock("div",i2,[s2,e.optionSelected!=="Equipos"&&o.showSwitch?(t.openBlock(),t.createBlock(s,{key:0,height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","value-default":"Liga MX",iconA:"https://az755631.vo.msecnd.net/teams-150/"+o.teamId+".png",iconB:"https://az755631.vo.msecnd.net/todoelfut/1.png",textOptionLeft:"Mi equipo",textOptionRight:"Liga MX",onChange:r.ChangeRadio},null,8,["iconA","onChange"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),n.elementSize.width<=900?(t.openBlock(),t.createElementBlock("div",l2,[t.createElementVNode("span",{style:t.normalizeStyle(n.elementSize.width<=380?"font-size: 15px; margin-top:0px; width:60px;":"")},"Los mejores ",4),t.createElementVNode("span",c2,[e.optionSelected!=="Equipos"&&o.showSwitch?(t.openBlock(),t.createBlock(s,{key:0,height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","hidden-labels":!0,"value-default":"Liga MX",iconA:"https://az755631.vo.msecnd.net/teams-150/"+o.teamId+".png",iconB:"https://az755631.vo.msecnd.net/todoelfut/1.png",textOptionLeft:"Mi equipo",textOptionRight:"Liga MX",onChange:r.ChangeRadio},null,8,["iconA","onChange"])):t.createCommentVNode("",!0),t.createVNode(l,{style:{"margin-top":"4px"},width:"75px","text-value":"Ver más","font-color":n.elementSize.width<=680?"rgba(255,255,255, 0.7)":"#fff","font-size":n.elementSize.width<=680?"11px":"14px","text-decoration":"underline",onClick:r.clickMore},null,8,["font-color","font-size","onClick"])])])):t.createCommentVNode("",!0),n.elementSize.width>900?(t.openBlock(),t.createElementBlock("div",d2,[n.elementSize.width>900?(t.openBlock(),t.createElementBlock("div",m2,[t.createVNode(p,{type:1,buttons:["Jugadores","Equipos"],"selected-option":e.optionSelected,"border-radius":"32px",height:"28px","border-width":"1px","border-width-container":"0.5px","background-option-active":"#0d1d29","color-option-active":"#FFFFFF","font-size":"12px",width:"270px",fontFamily:"Poppins-Light",onInput:r.changeType,arrowsScrollHide:!1,arrowsPosition:"absolute"},null,8,["selected-option","onInput"])])):t.createCommentVNode("",!0),t.createElementVNode("div",p2,[t.createVNode(l,{width:"75px","text-value":"Ver más","font-size":"14px","text-decoration":"underline",onClick:r.clickMore},null,8,["onClick"]),t.createVNode(l,{width:"10px","text-value":"→","font-size":"14px","font-color":"#cbee6b",onClick:r.clickMore},null,8,["onClick"])])])):t.createCommentVNode("",!0)]),n.elementSize.width<=900?(t.openBlock(),t.createElementBlock("div",u2,[t.createElementVNode("div",h2,[t.createVNode(p,{type:1,buttons:["Jugadores","Equipos"],"selected-option":e.optionSelected,"border-radius":"32px",height:"28px","border-width":"1px","border-width-container":"0.5px","background-option-active":"#0d1d29","color-option-active":"#FFFFFF","font-size":"10px",width:"270px",fontFamily:"Poppins-Light",onInput:r.changeType},null,8,["selected-option","onInput"])])])):t.createCommentVNode("",!0),t.createElementVNode("div",f2,[t.createVNode(p,{type:2,arrow:!0,"font-family":"Poppins-Light",buttons:e.categoriesDefault,height:"40px","selected-option":"Goles","font-size":n.elementSize.width<=900?"12px":"14px",width:"max-content",onInput:r.changeCategory,pxScroll:200,scrollColor:"none",arrowsScrollHide:!1,arrowsMargin:0,borderWidth:"2px"},null,8,["buttons","font-size","onInput"])]),t.createElementVNode("div",g2,[t.createVNode(m,{pxScroll:198,scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(13,29,41,0) 0%, rgba(13,29,41,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(13,29,41,0) 0%, rgba(13,29,41,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.topData,(u,g)=>(t.openBlock(),t.createElementBlock("div",{key:g,class:t.normalizeClass(["gsc-best__players__item",g==0?"margin-none":""])},[t.createVNode(c,{data:{player_id:u.id,player_name:this.isTeam?u.name:r.formatPlayerName(u.name),player_position:u.position,player_stat:u.total,category:"Total",top:g<9?"0"+(g+1):g+1,team_logo:u.logo,player_photo:u.img},"show-shield-team":!0,"active-videos":!0,onClickMosaic:r.clickMosaic,onOpenmedia:r.onOpenMedia,namePlayerFontSize:"13px",namePositionFontSize:"10px",numbertopLeft:"-15px",numberFontFamily:"Oswald-SemiBold",totalFontSize:"12px",totalFont:"Poppins-Light!important",totalHeight:"21px","is-player":!this.isTeam},null,8,["data","onClickMosaic","onOpenmedia","is-player"])],2))),128))]),_:1})])],512)}const b2=ie(Ba,[["render",y2],["__scopeId","data-v-a5fb54bf"]]),w2={PO1:"CFI",PO2:"CFV",PO3:"SFI",PO4:"SFV",PO5:"FI",PO6:"FV"},_2={DF:"Dieciseisavos",OF:"Octavos",CF:"Cuartos",SF:"Semifinales","3ER":"Tercer lugar",FINAL:"Final"},S2={4:"Octavos",5:"Cuartos",6:"Semifinales",7:"Final"},k2=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},Ea={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},Vi=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},$i=Ea.setup;Ea.setup=$i?(e,a)=>(Vi(),$i(e,a)):Vi;const C2=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),B2=["src"],E2={key:1,class:"text"},N2=["src"],x2={class:"stats"},T2=C2(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),O2={class:"numstats"},V2={class:"leyend"};function $2(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",null,[o.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",i.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([r.customStyle,i.status&&o.typeOnOff&&r.customActive]),onClick:a[0]||(a[0]=(...s)=>r.btnClick&&r.btnClick(...s))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,B2)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",E2,t.toDisplayString(o.textValue),1)):t.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,N2)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...s)=>r.btnClick&&r.btnClick(...s))},[t.createElementVNode("div",x2,[T2,t.createElementVNode("div",O2,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",V2,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const A2=k2(Ea,[["render",$2],["__scopeId","data-v-fb269a1e"]]),z2={class:"gsc-dropdown__main-container__item-selected"},R2=["height","width"],I2=["stroke"],F2={class:"gsc-dropdown__items-container"},P2=["onClick"],L2={key:0,class:"gsc-dropdown__items-footer"},D2={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:a}){const o=e,n=t.ref({}),i=t.ref(null),r=t.ref(o.isMultipleOption?-1:0),s=t.ref(!1);t.watch(()=>o.items,(d,h)=>{if(!o.modelValue&&(!o.onlyFirstTime||!h||!h.length)&&d&&d.length){if(o.defaultItemByProp){const f=o.items.findIndex(y=>y[o.defaultItemByProp.propName]===o.defaultItemByProp.value);f!==-1?(r.value=f,n.value=d[f]):(r.value=0,n.value=d[0])}else n.value=d[o.defaultItemByIndex];a("input",n.value)}},{immediate:!0}),t.watch(()=>o.modelValue,d=>{if(d){const h=o.items.findIndex(f=>typeof d=="object"?JSON.stringify(f)===JSON.stringify(d):f===d);h!==-1&&(r.value=h,n.value=o.items[h],a("update:modelValue",n.value))}},{immediate:!0});const l=t.computed(()=>({height:o.height,width:o.width,backgroundColor:o.backgroundColor,borderRadius:`${o.borderRadius}px`,border:`${o.borderType} ${o.borderWidth}px ${o.borderColor}`,color:o.color,"--hover-background-color":o.hoverBackgroundColor,"--list-item-padding":o.listItemPadding,"--list-background-color":o.listBackgroundColor,"--list-height":o.listHeight,"--list-item-selected-color":o.listItemSelectedColor,"--list-item-selected-background-color":o.listItemSelectedBackgroundColor,"--list-item-color":o.listItemColor,"--list-border-radius":`${o.listBorderRadius}`,"--list-border-color":o.listBorderColor,"--list-width":o.isListSameWidth?o.width:"fit-content","--list-border-width":`${o.listBorderWidth}px`,"--footer-border":`${o.footerBorderWidth}px solid ${o.footerBorderColor}`,"--dropdown-opacity":o.isDisabled?"0.5":"1","--dropdown-cursor":o.isDisabled?"not-allowed":"pointer","--dropdown-font-size":o.fontSize?o.fontSize:"14px"})),p=t.computed(()=>({height:`${o.arrowHeight}px`,width:`${o.arrowWidth}px`}));function c(){o.isDisabled||(s.value=!s.value)}function m(d){i.value&&!i.value.contains(d.target)&&(s.value=!1)}function u(d,h){o.isMultipleOption?r.value=-1:(r.value=h,s.value=!1),n.value=d,a("input",n.value),a("update:modelValue",n.value)}function g(){s.value=!1,a("click-ready")}return t.onMounted(()=>{document.addEventListener("click",m)}),t.onBeforeMount(()=>{document.removeEventListener("click",m)}),(d,h)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:i,class:"gsc-dropdown",style:t.normalizeStyle(l.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:c},[t.createElementVNode("div",z2,[t.renderSlot(d.$slots,"default",{selectedItem:n.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":s.value}]),style:t.normalizeStyle(p.value)},[(t.openBlock(),t.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,I2)],8,R2))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",F2,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${o.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(f,y)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:y===r.value}]),key:y,onClick:C=>u(f,y)},[t.renderSlot(d.$slots,"availableItem",{item:f})],10,P2))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",L2,[t.createVNode(t.unref(A2),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:g})])):t.createCommentVNode("",!0)])],512),[[t.vShow,s.value]])]),_:3})],4))}},M2=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},j2={class:"tournament-select__selected-tournament"},v2={class:"tournament-select__selected-tournament__logo"},W2=["src"],U2={class:"tournament-select__selected-tournament__name"},H2={__name:"GSCTournamentSelect",props:{apiUrl:{type:String,default:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments"},fontFamily:{type:String,default:"Poppins-Light"},logosUrl:{type:String,default:"https://az755631.vo.msecnd.net/todoelfut/"},logoFileType:{type:String,default:"png"},height:{type:String,default:"40px"},width:{type:String,default:"179px"},borderRadius:{type:Number,default:8},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},backgroundColor:{type:String,default:"#0d1d29"},color:{type:String,default:"white"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},currentSeasonId:{type:Number,default:0}},emits:["input"],setup(e,{emit:a}){const o=e,n=t.ref([]),i=t.computed(()=>{const u={};return o.fontFamily&&(u["font-family"]=`${o.fontFamily}`),u}),r=t.computed(()=>n.value.find(u=>u.seasonsIds.has(o.currentSeasonId))||n.value[0]);async function s(){try{if(o.items&&o.items.length)n.value=[...o.items];else if(o.apiUrl){const u=await p();n.value=u.map(g=>({...g.tournament,seasons:g.seasons,seasonsIds:g.seasons.reduce((d,h)=>(d.add(h.id),d),new Set)})).sort((g,d)=>g.order-d.order)}}catch(u){throw new Error(u)}}function l(u){const g=new XMLHttpRequest,d=`${o.logosUrl}${u}.${o.logoFileType}`;return g.open("HEAD",d,!1),g.send(),g.status!==404}async function p(){try{return(await fetch(o.apiUrl)).json()}catch(u){return Promise.reject(u)}}function c(u){a("input",u)}function m(u){a("input",u)}return t.onMounted(()=>{s()}),(u,g)=>(t.openBlock(),t.createElementBlock("div",{class:"tournament-select",style:t.normalizeStyle(i.value)},[t.createVNode(t.unref(D2),t.mergeProps(o,{"model-value":r.value,items:n.value,onInput:c,"onUpdate:modelValue":m}),{default:t.withCtx(({selectedItem:d})=>[t.createElementVNode("div",j2,[t.createElementVNode("div",v2,[l(d.id)?(t.openBlock(),t.createElementBlock("img",{key:0,src:`${o.logosUrl}${d.id}.${o.logoFileType}`,alt:""},null,8,W2)):t.createCommentVNode("",!0)]),t.createElementVNode("div",U2,t.toDisplayString(d.name),1)])]),availableItem:t.withCtx(({item:d})=>[t.createElementVNode("div",null,t.toDisplayString(d.name),1)]),_:1},16,["model-value","items"])],4))}},G2=M2(H2,[["__scopeId","data-v-355af272"]]),J2=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},Na={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},Ai=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},zi=Na.setup;Na.setup=zi?(e,a)=>(Ai(),zi(e,a)):Ai;const q2=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),Z2=["src"],X2={key:1,class:"text"},K2=["src"],Y2={class:"stats"},Q2=q2(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),eb={class:"numstats"},tb={class:"leyend"};function ob(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",null,[o.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",i.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([r.customStyle,i.status&&o.typeOnOff&&r.customActive]),onClick:a[0]||(a[0]=(...s)=>r.btnClick&&r.btnClick(...s))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,Z2)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",X2,t.toDisplayString(o.textValue),1)):t.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,K2)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...s)=>r.btnClick&&r.btnClick(...s))},[t.createElementVNode("div",Y2,[Q2,t.createElementVNode("div",eb,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",tb,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const ab=J2(Na,[["render",ob],["__scopeId","data-v-fb269a1e"]]),nb={class:"gsc-dropdown__main-container__item-selected"},rb=["height","width"],ib=["stroke"],sb={class:"gsc-dropdown__items-container"},lb=["onClick"],cb={key:0,class:"gsc-dropdown__items-footer"},db={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:a}){const o=e,n=t.ref({}),i=t.ref(null),r=t.ref(o.isMultipleOption?-1:0),s=t.ref(!1);t.watch(()=>o.items,(d,h)=>{if(!o.modelValue&&(!o.onlyFirstTime||!h||!h.length)&&d&&d.length){if(o.defaultItemByProp){const f=o.items.findIndex(y=>y[o.defaultItemByProp.propName]===o.defaultItemByProp.value);f!==-1?(r.value=f,n.value=d[f]):(r.value=0,n.value=d[0])}else n.value=d[o.defaultItemByIndex];a("input",n.value)}},{immediate:!0}),t.watch(()=>o.modelValue,d=>{if(d){const h=o.items.findIndex(f=>typeof d=="object"?JSON.stringify(f)===JSON.stringify(d):f===d);h!==-1&&(r.value=h,n.value=o.items[h],a("update:modelValue",n.value))}},{immediate:!0});const l=t.computed(()=>({height:o.height,width:o.width,backgroundColor:o.backgroundColor,borderRadius:`${o.borderRadius}px`,border:`${o.borderType} ${o.borderWidth}px ${o.borderColor}`,color:o.color,"--hover-background-color":o.hoverBackgroundColor,"--list-item-padding":o.listItemPadding,"--list-background-color":o.listBackgroundColor,"--list-height":o.listHeight,"--list-item-selected-color":o.listItemSelectedColor,"--list-item-selected-background-color":o.listItemSelectedBackgroundColor,"--list-item-color":o.listItemColor,"--list-border-radius":`${o.listBorderRadius}`,"--list-border-color":o.listBorderColor,"--list-width":o.isListSameWidth?o.width:"fit-content","--list-border-width":`${o.listBorderWidth}px`,"--footer-border":`${o.footerBorderWidth}px solid ${o.footerBorderColor}`,"--dropdown-opacity":o.isDisabled?"0.5":"1","--dropdown-cursor":o.isDisabled?"not-allowed":"pointer","--dropdown-font-size":o.fontSize?o.fontSize:"14px"})),p=t.computed(()=>({height:`${o.arrowHeight}px`,width:`${o.arrowWidth}px`}));function c(){o.isDisabled||(s.value=!s.value)}function m(d){i.value&&!i.value.contains(d.target)&&(s.value=!1)}function u(d,h){o.isMultipleOption?r.value=-1:(r.value=h,s.value=!1),n.value=d,a("input",n.value),a("update:modelValue",n.value)}function g(){s.value=!1,a("click-ready")}return t.onMounted(()=>{document.addEventListener("click",m)}),t.onBeforeMount(()=>{document.removeEventListener("click",m)}),(d,h)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:i,class:"gsc-dropdown",style:t.normalizeStyle(l.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:c},[t.createElementVNode("div",nb,[t.renderSlot(d.$slots,"default",{selectedItem:n.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":s.value}]),style:t.normalizeStyle(p.value)},[(t.openBlock(),t.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,ib)],8,rb))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",sb,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${o.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(f,y)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:y===r.value}]),key:y,onClick:C=>u(f,y)},[t.renderSlot(d.$slots,"availableItem",{item:f})],10,lb))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",cb,[t.createVNode(t.unref(ab),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:g})])):t.createCommentVNode("",!0)])],512),[[t.vShow,s.value]])]),_:3})],4))}},mb=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},pb={class:"season-name"},ub={class:"items-list-season"},hb={__name:"GSC-SeasonSelect",props:{seasons:{type:Array,default:()=>[]},currentSeasonId:{type:Number,default:0}},emits:["input"],setup(e,{emit:a}){const o=e,n=t.computed(()=>o.seasons.find(s=>s.id===o.currentSeasonId));function i(s){a("input",s)}function r(s){a("input",s)}return(s,l)=>(t.openBlock(),t.createBlock(t.unref(db),{items:e.seasons,"model-value":n.value,height:"40px",width:"179px","background-color":"#0d1d29",color:"white","border-color":"rgba(255, 255, 255, 0.2)","font-family":"Poppins-Regular","border-radius":8,onInput:r,"onUpdate:modelValue":i},{default:t.withCtx(({selectedItem:p})=>[t.createElementVNode("div",pb,[t.createElementVNode("span",null,t.toDisplayString(p.name),1)])]),availableItem:t.withCtx(({item:p})=>[t.createElementVNode("span",ub,t.toDisplayString(p.name),1)]),_:1},8,["items","model-value"]))}},fb=mb(hb,[["__scopeId","data-v-3a11087d"]]);function Ri(e,a){return function(){return e.apply(a,arguments)}}const{toString:gb}=Object.prototype,{getPrototypeOf:xa}=Object,Zt=(e=>a=>{const o=gb.call(a);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),Te=e=>(e=e.toLowerCase(),a=>Zt(a)===e),Xt=e=>a=>typeof a===e,{isArray:Qe}=Array,ht=Xt("undefined");function yb(e){return e!==null&&!ht(e)&&e.constructor!==null&&!ht(e.constructor)&&me(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ii=Te("ArrayBuffer");function bb(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&Ii(e.buffer),a}const wb=Xt("string"),me=Xt("function"),Fi=Xt("number"),Kt=e=>e!==null&&typeof e=="object",_b=e=>e===!0||e===!1,Yt=e=>{if(Zt(e)!=="object")return!1;const a=xa(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Sb=Te("Date"),kb=Te("File"),Cb=Te("Blob"),Bb=Te("FileList"),Eb=e=>Kt(e)&&me(e.pipe),Nb=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||me(e.append)&&((a=Zt(e))==="formdata"||a==="object"&&me(e.toString)&&e.toString()==="[object FormData]"))},xb=Te("URLSearchParams"),Tb=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ft(e,a,{allOwnKeys:o=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),Qe(e))for(n=0,i=e.length;n<i;n++)a.call(null,e[n],n,e);else{const r=o?Object.getOwnPropertyNames(e):Object.keys(e),s=r.length;let l;for(n=0;n<s;n++)l=r[n],a.call(null,e[l],l,e)}}function Pi(e,a){a=a.toLowerCase();const o=Object.keys(e);let n=o.length,i;for(;n-- >0;)if(i=o[n],a===i.toLowerCase())return i;return null}const Li=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Di=e=>!ht(e)&&e!==Li;function Ta(){const{caseless:e}=Di(this)&&this||{},a={},o=(n,i)=>{const r=e&&Pi(a,i)||i;Yt(a[r])&&Yt(n)?a[r]=Ta(a[r],n):Yt(n)?a[r]=Ta({},n):Qe(n)?a[r]=n.slice():a[r]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&ft(arguments[n],o);return a}const Ob=(e,a,o,{allOwnKeys:n}={})=>(ft(a,(i,r)=>{o&&me(i)?e[r]=Ri(i,o):e[r]=i},{allOwnKeys:n}),e),Vb=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),$b=(e,a,o,n)=>{e.prototype=Object.create(a.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),o&&Object.assign(e.prototype,o)},Ab=(e,a,o,n)=>{let i,r,s;const l={};if(a=a||{},e==null)return a;do{for(i=Object.getOwnPropertyNames(e),r=i.length;r-- >0;)s=i[r],(!n||n(s,e,a))&&!l[s]&&(a[s]=e[s],l[s]=!0);e=o!==!1&&xa(e)}while(e&&(!o||o(e,a))&&e!==Object.prototype);return a},zb=(e,a,o)=>{e=String(e),(o===void 0||o>e.length)&&(o=e.length),o-=a.length;const n=e.indexOf(a,o);return n!==-1&&n===o},Rb=e=>{if(!e)return null;if(Qe(e))return e;let a=e.length;if(!Fi(a))return null;const o=new Array(a);for(;a-- >0;)o[a]=e[a];return o},Ib=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&xa(Uint8Array)),Fb=(e,a)=>{const o=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=o.next())&&!n.done;){const i=n.value;a.call(e,i[0],i[1])}},Pb=(e,a)=>{let o;const n=[];for(;(o=e.exec(a))!==null;)n.push(o);return n},Lb=Te("HTMLFormElement"),Db=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,o,n){return o.toUpperCase()+n}),Mi=(({hasOwnProperty:e})=>(a,o)=>e.call(a,o))(Object.prototype),Mb=Te("RegExp"),ji=(e,a)=>{const o=Object.getOwnPropertyDescriptors(e),n={};ft(o,(i,r)=>{let s;(s=a(i,r,e))!==!1&&(n[r]=s||i)}),Object.defineProperties(e,n)},jb=e=>{ji(e,(a,o)=>{if(me(e)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const n=e[o];if(me(n)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},vb=(e,a)=>{const o={},n=i=>{i.forEach(r=>{o[r]=!0})};return Qe(e)?n(e):n(String(e).split(a)),o},Wb=()=>{},Ub=(e,a)=>(e=+e,Number.isFinite(e)?e:a),Oa="abcdefghijklmnopqrstuvwxyz",vi="0123456789",Wi={DIGIT:vi,ALPHA:Oa,ALPHA_DIGIT:Oa+Oa.toUpperCase()+vi},Hb=(e=16,a=Wi.ALPHA_DIGIT)=>{let o="";const{length:n}=a;for(;e--;)o+=a[Math.random()*n|0];return o};function Gb(e){return!!(e&&me(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Jb=e=>{const a=new Array(10),o=(n,i)=>{if(Kt(n)){if(a.indexOf(n)>=0)return;if(!("toJSON"in n)){a[i]=n;const r=Qe(n)?[]:{};return ft(n,(s,l)=>{const p=o(s,i+1);!ht(p)&&(r[l]=p)}),a[i]=void 0,r}}return n};return o(e,0)},qb=Te("AsyncFunction"),Zb=e=>e&&(Kt(e)||me(e))&&me(e.then)&&me(e.catch),k={isArray:Qe,isArrayBuffer:Ii,isBuffer:yb,isFormData:Nb,isArrayBufferView:bb,isString:wb,isNumber:Fi,isBoolean:_b,isObject:Kt,isPlainObject:Yt,isUndefined:ht,isDate:Sb,isFile:kb,isBlob:Cb,isRegExp:Mb,isFunction:me,isStream:Eb,isURLSearchParams:xb,isTypedArray:Ib,isFileList:Bb,forEach:ft,merge:Ta,extend:Ob,trim:Tb,stripBOM:Vb,inherits:$b,toFlatObject:Ab,kindOf:Zt,kindOfTest:Te,endsWith:zb,toArray:Rb,forEachEntry:Fb,matchAll:Pb,isHTMLForm:Lb,hasOwnProperty:Mi,hasOwnProp:Mi,reduceDescriptors:ji,freezeMethods:jb,toObjectSet:vb,toCamelCase:Db,noop:Wb,toFiniteNumber:Ub,findKey:Pi,global:Li,isContextDefined:Di,ALPHABET:Wi,generateString:Hb,isSpecCompliantForm:Gb,toJSONObject:Jb,isAsyncFn:qb,isThenable:Zb};function L(e,a,o,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),o&&(this.config=o),n&&(this.request=n),i&&(this.response=i)}k.inherits(L,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:k.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Ui=L.prototype,Hi={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Hi[e]={value:e}}),Object.defineProperties(L,Hi),Object.defineProperty(Ui,"isAxiosError",{value:!0}),L.from=(e,a,o,n,i,r)=>{const s=Object.create(Ui);return k.toFlatObject(e,s,function(l){return l!==Error.prototype},l=>l!=="isAxiosError"),L.call(s,e.message,a,o,n,i),s.cause=e,s.name=e.name,r&&Object.assign(s,r),s};const Xb=null;function Va(e){return k.isPlainObject(e)||k.isArray(e)}function Gi(e){return k.endsWith(e,"[]")?e.slice(0,-2):e}function Ji(e,a,o){return e?e.concat(a).map(function(n,i){return n=Gi(n),!o&&i?"["+n+"]":n}).join(o?".":""):a}function Kb(e){return k.isArray(e)&&!e.some(Va)}const Yb=k.toFlatObject(k,{},null,function(e){return/^is[A-Z]/.test(e)});function Qt(e,a,o){if(!k.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,o=k.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,h){return!k.isUndefined(h[d])});const n=o.metaTokens,i=o.visitor||c,r=o.dots,s=o.indexes,l=(o.Blob||typeof Blob<"u"&&Blob)&&k.isSpecCompliantForm(a);if(!k.isFunction(i))throw new TypeError("visitor must be a function");function p(d){if(d===null)return"";if(k.isDate(d))return d.toISOString();if(!l&&k.isBlob(d))throw new L("Blob is not supported. Use a Buffer instead.");return k.isArrayBuffer(d)||k.isTypedArray(d)?l&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function c(d,h,f){let y=d;if(d&&!f&&typeof d=="object"){if(k.endsWith(h,"{}"))h=n?h:h.slice(0,-2),d=JSON.stringify(d);else if(k.isArray(d)&&Kb(d)||(k.isFileList(d)||k.endsWith(h,"[]"))&&(y=k.toArray(d)))return h=Gi(h),y.forEach(function(C,A){!(k.isUndefined(C)||C===null)&&a.append(s===!0?Ji([h],A,r):s===null?h:h+"[]",p(C))}),!1}return Va(d)?!0:(a.append(Ji(f,h,r),p(d)),!1)}const m=[],u=Object.assign(Yb,{defaultVisitor:c,convertValue:p,isVisitable:Va});function g(d,h){if(!k.isUndefined(d)){if(m.indexOf(d)!==-1)throw Error("Circular reference detected in "+h.join("."));m.push(d),k.forEach(d,function(f,y){(!(k.isUndefined(f)||f===null)&&i.call(a,f,k.isString(y)?y.trim():y,h,u))===!0&&g(f,h?h.concat(y):[y])}),m.pop()}}if(!k.isObject(e))throw new TypeError("data must be an object");return g(e),a}function qi(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return a[o]})}function $a(e,a){this._pairs=[],e&&Qt(e,this,a)}const Zi=$a.prototype;Zi.append=function(e,a){this._pairs.push([e,a])},Zi.toString=function(e){const a=e?function(o){return e.call(this,o,qi)}:qi;return this._pairs.map(function(o){return a(o[0])+"="+a(o[1])},"").join("&")};function Qb(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Xi(e,a,o){if(!a)return e;const n=o&&o.encode||Qb,i=o&&o.serialize;let r;if(i?r=i(a,o):r=k.isURLSearchParams(a)?a.toString():new $a(a,o).toString(n),r){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}class ew{constructor(){this.handlers=[]}use(a,o,n){return this.handlers.push({fulfilled:a,rejected:o,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){k.forEach(this.handlers,function(o){o!==null&&a(o)})}}const Ki=ew,Yi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},tw=typeof URLSearchParams<"u"?URLSearchParams:$a,ow=typeof FormData<"u"?FormData:null,aw=typeof Blob<"u"?Blob:null,nw=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),rw=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Oe={isBrowser:!0,classes:{URLSearchParams:tw,FormData:ow,Blob:aw},isStandardBrowserEnv:nw,isStandardBrowserWebWorkerEnv:rw,protocols:["http","https","file","blob","url","data"]};function iw(e,a){return Qt(e,new Oe.classes.URLSearchParams,Object.assign({visitor:function(o,n,i,r){return Oe.isNode&&k.isBuffer(o)?(this.append(n,o.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},a))}function sw(e){return k.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function lw(e){const a={},o=Object.keys(e);let n;const i=o.length;let r;for(n=0;n<i;n++)r=o[n],a[r]=e[r];return a}function Qi(e){function a(o,n,i,r){let s=o[r++];const l=Number.isFinite(+s),p=r>=o.length;return s=!s&&k.isArray(i)?i.length:s,p?(k.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!l):((!i[s]||!k.isObject(i[s]))&&(i[s]=[]),a(o,n,i[s],r)&&k.isArray(i[s])&&(i[s]=lw(i[s])),!l)}if(k.isFormData(e)&&k.isFunction(e.entries)){const o={};return k.forEachEntry(e,(n,i)=>{a(sw(n),i,o,0)}),o}return null}function cw(e,a,o){if(k.isString(e))try{return(a||JSON.parse)(e),k.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(o||JSON.stringify)(e)}const Aa={transitional:Yi,adapter:["xhr","http"],transformRequest:[function(e,a){const o=a.getContentType()||"",n=o.indexOf("application/json")>-1,i=k.isObject(e);if(i&&k.isHTMLForm(e)&&(e=new FormData(e)),k.isFormData(e))return n&&n?JSON.stringify(Qi(e)):e;if(k.isArrayBuffer(e)||k.isBuffer(e)||k.isStream(e)||k.isFile(e)||k.isBlob(e))return e;if(k.isArrayBufferView(e))return e.buffer;if(k.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let r;if(i){if(o.indexOf("application/x-www-form-urlencoded")>-1)return iw(e,this.formSerializer).toString();if((r=k.isFileList(e))||o.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Qt(r?{"files[]":e}:e,s&&new s,this.formSerializer)}}return i||n?(a.setContentType("application/json",!1),cw(e)):e}],transformResponse:[function(e){const a=this.transitional||Aa.transitional,o=a&&a.forcedJSONParsing,n=this.responseType==="json";if(e&&k.isString(e)&&(o&&!this.responseType||n)){const i=!(a&&a.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(r){if(i)throw r.name==="SyntaxError"?L.from(r,L.ERR_BAD_RESPONSE,this,null,this.response):r}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Oe.classes.FormData,Blob:Oe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};k.forEach(["delete","get","head","post","put","patch"],e=>{Aa.headers[e]={}});const za=Aa,dw=k.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),mw=e=>{const a={};let o,n,i;return e&&e.split(`
|
|
29
|
+
`).forEach(function(r){i=r.indexOf(":"),o=r.substring(0,i).trim().toLowerCase(),n=r.substring(i+1).trim(),!(!o||a[o]&&dw[o])&&(o==="set-cookie"?a[o]?a[o].push(n):a[o]=[n]:a[o]=a[o]?a[o]+", "+n:n)}),a},es=Symbol("internals");function gt(e){return e&&String(e).trim().toLowerCase()}function eo(e){return e===!1||e==null?e:k.isArray(e)?e.map(eo):String(e)}function pw(e){const a=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=o.exec(e);)a[n[1]]=n[2];return a}const uw=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ra(e,a,o,n,i){if(k.isFunction(n))return n.call(this,a,o);if(i&&(a=o),!!k.isString(a)){if(k.isString(n))return a.indexOf(n)!==-1;if(k.isRegExp(n))return n.test(a)}}function hw(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,o,n)=>o.toUpperCase()+n)}function fw(e,a){const o=k.toCamelCase(" "+a);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+o,{value:function(i,r,s){return this[n].call(this,a,i,r,s)},configurable:!0})})}class to{constructor(a){a&&this.set(a)}set(a,o,n){const i=this;function r(l,p,c){const m=gt(p);if(!m)throw new Error("header name must be a non-empty string");const u=k.findKey(i,m);(!u||i[u]===void 0||c===!0||c===void 0&&i[u]!==!1)&&(i[u||p]=eo(l))}const s=(l,p)=>k.forEach(l,(c,m)=>r(c,m,p));return k.isPlainObject(a)||a instanceof this.constructor?s(a,o):k.isString(a)&&(a=a.trim())&&!uw(a)?s(mw(a),o):a!=null&&r(o,a,n),this}get(a,o){if(a=gt(a),a){const n=k.findKey(this,a);if(n){const i=this[n];if(!o)return i;if(o===!0)return pw(i);if(k.isFunction(o))return o.call(this,i,n);if(k.isRegExp(o))return o.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,o){if(a=gt(a),a){const n=k.findKey(this,a);return!!(n&&this[n]!==void 0&&(!o||Ra(this,this[n],n,o)))}return!1}delete(a,o){const n=this;let i=!1;function r(s){if(s=gt(s),s){const l=k.findKey(n,s);l&&(!o||Ra(n,n[l],l,o))&&(delete n[l],i=!0)}}return k.isArray(a)?a.forEach(r):r(a),i}clear(a){const o=Object.keys(this);let n=o.length,i=!1;for(;n--;){const r=o[n];(!a||Ra(this,this[r],r,a,!0))&&(delete this[r],i=!0)}return i}normalize(a){const o=this,n={};return k.forEach(this,(i,r)=>{const s=k.findKey(n,r);if(s){o[s]=eo(i),delete o[r];return}const l=a?hw(r):String(r).trim();l!==r&&delete o[r],o[l]=eo(i),n[l]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const o=Object.create(null);return k.forEach(this,(n,i)=>{n!=null&&n!==!1&&(o[i]=a&&k.isArray(n)?n.join(", "):n)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,o])=>a+": "+o).join(`
|
|
30
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...o){const n=new this(a);return o.forEach(i=>n.set(i)),n}static accessor(a){const o=(this[es]=this[es]={accessors:{}}).accessors,n=this.prototype;function i(r){const s=gt(r);o[s]||(fw(n,r),o[s]=!0)}return k.isArray(a)?a.forEach(i):i(a),this}}to.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),k.reduceDescriptors(to.prototype,({value:e},a)=>{let o=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(n){this[o]=n}}}),k.freezeMethods(to);const Fe=to;function Ia(e,a){const o=this||za,n=a||o,i=Fe.from(n.headers);let r=n.data;return k.forEach(e,function(s){r=s.call(o,r,i.normalize(),a?a.status:void 0)}),i.normalize(),r}function ts(e){return!!(e&&e.__CANCEL__)}function yt(e,a,o){L.call(this,e??"canceled",L.ERR_CANCELED,a,o),this.name="CanceledError"}k.inherits(yt,L,{__CANCEL__:!0});function gw(e,a,o){const n=o.config.validateStatus;!o.status||!n||n(o.status)?e(o):a(new L("Request failed with status code "+o.status,[L.ERR_BAD_REQUEST,L.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}const yw=Oe.isStandardBrowserEnv?function(){return{write:function(e,a,o,n,i,r){const s=[];s.push(e+"="+encodeURIComponent(a)),k.isNumber(o)&&s.push("expires="+new Date(o).toGMTString()),k.isString(n)&&s.push("path="+n),k.isString(i)&&s.push("domain="+i),r===!0&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){const a=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function bw(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function ww(e,a){return a?e.replace(/\/+$/,"")+"/"+a.replace(/^\/+/,""):e}function os(e,a){return e&&!bw(a)?ww(e,a):a}const _w=Oe.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");let o;function n(i){let r=i;return e&&(a.setAttribute("href",r),r=a.href),a.setAttribute("href",r),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:a.pathname.charAt(0)==="/"?a.pathname:"/"+a.pathname}}return o=n(window.location.href),function(i){const r=k.isString(i)?n(i):i;return r.protocol===o.protocol&&r.host===o.host}}():function(){return function(){return!0}}();function Sw(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function kw(e,a){e=e||10;const o=new Array(e),n=new Array(e);let i=0,r=0,s;return a=a!==void 0?a:1e3,function(l){const p=Date.now(),c=n[r];s||(s=p),o[i]=l,n[i]=p;let m=r,u=0;for(;m!==i;)u+=o[m++],m=m%e;if(i=(i+1)%e,i===r&&(r=(r+1)%e),p-s<a)return;const g=c&&p-c;return g?Math.round(u*1e3/g):void 0}}function as(e,a){let o=0;const n=kw(50,250);return i=>{const r=i.loaded,s=i.lengthComputable?i.total:void 0,l=r-o,p=n(l),c=r<=s;o=r;const m={loaded:r,total:s,progress:s?r/s:void 0,bytes:l,rate:p||void 0,estimated:p&&s&&c?(s-r)/p:void 0,event:i};m[a?"download":"upload"]=!0,e(m)}}const Cw=typeof XMLHttpRequest<"u",Bw=Cw&&function(e){return new Promise(function(a,o){let n=e.data;const i=Fe.from(e.headers).normalize(),r=e.responseType;let s;function l(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}let p;k.isFormData(n)&&(Oe.isStandardBrowserEnv||Oe.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.getContentType(/^\s*multipart\/form-data/)?k.isString(p=i.getContentType())&&i.setContentType(p.replace(/^\s*(multipart\/form-data);+/,"$1")):i.setContentType("multipart/form-data"));let c=new XMLHttpRequest;if(e.auth){const d=e.auth.username||"",h=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(d+":"+h))}const m=os(e.baseURL,e.url);c.open(e.method.toUpperCase(),Xi(m,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function u(){if(!c)return;const d=Fe.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),h={data:!r||r==="text"||r==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:d,config:e,request:c};gw(function(f){a(f),l()},function(f){o(f),l()},h),c=null}if("onloadend"in c?c.onloadend=u:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(u)},c.onabort=function(){c&&(o(new L("Request aborted",L.ECONNABORTED,e,c)),c=null)},c.onerror=function(){o(new L("Network Error",L.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let d=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const h=e.transitional||Yi;e.timeoutErrorMessage&&(d=e.timeoutErrorMessage),o(new L(d,h.clarifyTimeoutError?L.ETIMEDOUT:L.ECONNABORTED,e,c)),c=null},Oe.isStandardBrowserEnv){const d=(e.withCredentials||_w(m))&&e.xsrfCookieName&&yw.read(e.xsrfCookieName);d&&i.set(e.xsrfHeaderName,d)}n===void 0&&i.setContentType(null),"setRequestHeader"in c&&k.forEach(i.toJSON(),function(d,h){c.setRequestHeader(h,d)}),k.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),r&&r!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",as(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",as(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=d=>{c&&(o(!d||d.type?new yt(null,e,c):d),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const g=Sw(m);if(g&&Oe.protocols.indexOf(g)===-1){o(new L("Unsupported protocol "+g+":",L.ERR_BAD_REQUEST,e));return}c.send(n||null)})},Fa={http:Xb,xhr:Bw};k.forEach(Fa,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const ns=e=>`- ${e}`,Ew=e=>k.isFunction(e)||e===null||e===!1,rs={getAdapter:e=>{e=k.isArray(e)?e:[e];const{length:a}=e;let o,n;const i={};for(let r=0;r<a;r++){o=e[r];let s;if(n=o,!Ew(o)&&(n=Fa[(s=String(o)).toLowerCase()],n===void 0))throw new L(`Unknown adapter '${s}'`);if(n)break;i[s||"#"+r]=n}if(!n){const r=Object.entries(i).map(([l,p])=>`adapter ${l} `+(p===!1?"is not supported by the environment":"is not available in the build"));let s=a?r.length>1?`since :
|
|
31
|
+
`+r.map(ns).join(`
|
|
32
|
+
`):" "+ns(r[0]):"as no adapter specified";throw new L("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:Fa};function Pa(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new yt(null,e)}function is(e){return Pa(e),e.headers=Fe.from(e.headers),e.data=Ia.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),rs.getAdapter(e.adapter||za.adapter)(e).then(function(a){return Pa(e),a.data=Ia.call(e,e.transformResponse,a),a.headers=Fe.from(a.headers),a},function(a){return ts(a)||(Pa(e),a&&a.response&&(a.response.data=Ia.call(e,e.transformResponse,a.response),a.response.headers=Fe.from(a.response.headers))),Promise.reject(a)})}const ss=e=>e instanceof Fe?e.toJSON():e;function et(e,a){a=a||{};const o={};function n(c,m,u){return k.isPlainObject(c)&&k.isPlainObject(m)?k.merge.call({caseless:u},c,m):k.isPlainObject(m)?k.merge({},m):k.isArray(m)?m.slice():m}function i(c,m,u){if(k.isUndefined(m)){if(!k.isUndefined(c))return n(void 0,c,u)}else return n(c,m,u)}function r(c,m){if(!k.isUndefined(m))return n(void 0,m)}function s(c,m){if(k.isUndefined(m)){if(!k.isUndefined(c))return n(void 0,c)}else return n(void 0,m)}function l(c,m,u){if(u in a)return n(c,m);if(u in e)return n(void 0,c)}const p={url:r,method:r,data:r,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(c,m)=>i(ss(c),ss(m),!0)};return k.forEach(Object.keys(Object.assign({},e,a)),function(c){const m=p[c]||i,u=m(e[c],a[c],c);k.isUndefined(u)&&m!==l||(o[c]=u)}),o}const ls="1.5.1",La={};["object","boolean","number","function","string","symbol"].forEach((e,a)=>{La[e]=function(o){return typeof o===e||"a"+(a<1?"n ":" ")+e}});const cs={};La.transitional=function(e,a,o){function n(i,r){return"[Axios v"+ls+"] Transitional option '"+i+"'"+r+(o?". "+o:"")}return(i,r,s)=>{if(e===!1)throw new L(n(r," has been removed"+(a?" in "+a:"")),L.ERR_DEPRECATED);return a&&!cs[r]&&(cs[r]=!0,console.warn(n(r," has been deprecated since v"+a+" and will be removed in the near future"))),e?e(i,r,s):!0}};function Nw(e,a,o){if(typeof e!="object")throw new L("options must be an object",L.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const r=n[i],s=a[r];if(s){const l=e[r],p=l===void 0||s(l,r,e);if(p!==!0)throw new L("option "+r+" must be "+p,L.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new L("Unknown option "+r,L.ERR_BAD_OPTION)}}const Da={assertOptions:Nw,validators:La},Me=Da.validators;class oo{constructor(a){this.defaults=a,this.interceptors={request:new Ki,response:new Ki}}request(a,o){typeof a=="string"?(o=o||{},o.url=a):o=a||{},o=et(this.defaults,o);const{transitional:n,paramsSerializer:i,headers:r}=o;n!==void 0&&Da.assertOptions(n,{silentJSONParsing:Me.transitional(Me.boolean),forcedJSONParsing:Me.transitional(Me.boolean),clarifyTimeoutError:Me.transitional(Me.boolean)},!1),i!=null&&(k.isFunction(i)?o.paramsSerializer={serialize:i}:Da.assertOptions(i,{encode:Me.function,serialize:Me.function},!0)),o.method=(o.method||this.defaults.method||"get").toLowerCase();let s=r&&k.merge(r.common,r[o.method]);r&&k.forEach(["delete","get","head","post","put","patch","common"],h=>{delete r[h]}),o.headers=Fe.concat(s,r);const l=[];let p=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(o)===!1||(p=p&&h.synchronous,l.unshift(h.fulfilled,h.rejected))});const c=[];this.interceptors.response.forEach(function(h){c.push(h.fulfilled,h.rejected)});let m,u=0,g;if(!p){const h=[is.bind(this),void 0];for(h.unshift.apply(h,l),h.push.apply(h,c),g=h.length,m=Promise.resolve(o);u<g;)m=m.then(h[u++],h[u++]);return m}g=l.length;let d=o;for(u=0;u<g;){const h=l[u++],f=l[u++];try{d=h(d)}catch(y){f.call(this,y);break}}try{m=is.call(this,d)}catch(h){return Promise.reject(h)}for(u=0,g=c.length;u<g;)m=m.then(c[u++],c[u++]);return m}getUri(a){a=et(this.defaults,a);const o=os(a.baseURL,a.url);return Xi(o,a.params,a.paramsSerializer)}}k.forEach(["delete","get","head","options"],function(e){oo.prototype[e]=function(a,o){return this.request(et(o||{},{method:e,url:a,data:(o||{}).data}))}}),k.forEach(["post","put","patch"],function(e){function a(o){return function(n,i,r){return this.request(et(r||{},{method:e,headers:o?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}oo.prototype[e]=a(),oo.prototype[e+"Form"]=a(!0)});const ao=oo;class Ma{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(i){o=i});const n=this;this.promise.then(i=>{if(!n._listeners)return;let r=n._listeners.length;for(;r-- >0;)n._listeners[r](i);n._listeners=null}),this.promise.then=i=>{let r;const s=new Promise(l=>{n.subscribe(l),r=l}).then(i);return s.cancel=function(){n.unsubscribe(r)},s},a(function(i,r,s){n.reason||(n.reason=new yt(i,r,s),o(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const o=this._listeners.indexOf(a);o!==-1&&this._listeners.splice(o,1)}static source(){let a;return{token:new Ma(function(o){a=o}),cancel:a}}}const xw=Ma;function Tw(e){return function(a){return e.apply(null,a)}}function Ow(e){return k.isObject(e)&&e.isAxiosError===!0}const ja={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ja).forEach(([e,a])=>{ja[a]=e});const Vw=ja;function ds(e){const a=new ao(e),o=Ri(ao.prototype.request,a);return k.extend(o,ao.prototype,a,{allOwnKeys:!0}),k.extend(o,a,null,{allOwnKeys:!0}),o.create=function(n){return ds(et(e,n))},o}const q=ds(za);q.Axios=ao,q.CanceledError=yt,q.CancelToken=xw,q.isCancel=ts,q.VERSION=ls,q.toFormData=Qt,q.AxiosError=L,q.Cancel=q.CanceledError,q.all=function(e){return Promise.all(e)},q.spread=Tw,q.isAxiosError=Ow,q.mergeConfig=et,q.AxiosHeaders=Fe,q.formToJSON=e=>Qi(k.isHTMLForm(e)?new FormData(e):e),q.getAdapter=rs.getAdapter,q.HttpStatusCode=Vw,q.default=q;const ms=q,$w=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},va={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0}},mounted(){this.getScroll()},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*2+this.arrowsPadding*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0)}}},ps=()=>{t.useCssVars(e=>({cc900658:e.backgroundColor,"243d0048":e.height,"12ed9ef4":e.arrowsPosition,"434aae32":e.arrowsPadding+"px","6c491439":e.arrowsBackground,"1a7aa8c4":e.arrowsHeight*2+"px","6e4c9ee1":e.arrowsWidth*2+"px","2876691d":e.arrowsRadius,"0df470b7":e.arrowsBorder,27766434:e.arrowsMargin+"px","122404b1":e.arrowsContainerBgL,"122404b7":e.arrowsContainerBgR,"31486e15":e.scrollColor}))},us=va.setup;va.setup=us?(e,a)=>(ps(),us(e,a)):ps;const Aw={class:"scrollable-container"},zw={class:"scrollable-arrows"},Rw=["width","height","viewBox"],Iw=["stroke"],Fw={class:"scrollable-wrapper"},Pw={class:"scrollable-arrows"},Lw=["width","height","viewBox"],Dw=["stroke"];function Mw(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",Aw,[o.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",r.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...s)=>r.scrollLeft&&r.scrollLeft(...s))},[t.createElementVNode("div",zw,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:r.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:o.arrowsColor},null,8,Iw)],8,Rw))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content",ref:"content",onScroll:a[1]||(a[1]=(...s)=>r.getScroll&&r.getScroll(...s))},[t.createElementVNode("div",Fw,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),o.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["arrows-container",r.hideShowRightArrow]),onClick:a[2]||(a[2]=(...s)=>r.scrollRight&&r.scrollRight(...s))},[t.createElementVNode("div",Pw,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:r.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:o.arrowsColor},null,8,Dw)],8,Lw))])],2)):t.createCommentVNode("",!0)])}const jw=$w(va,[["render",Mw],["__scopeId","data-v-a717f423"]]),We=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o};let hs=null;const Wa={components:{},props:{titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},baselogo(){const e=this.gamesContainerWidth;return e<=400?"base-logo400":e<=540?"base-logo540":e<=650?"base-logo650":"base-logo"},baselogoright(){const e=this.gamesContainerWidth;return e<=400?"base-logo-right400":e<=540?"base-logo-right540":e<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},logoright(){const e=this.gamesContainerWidth;return e<=400?"logo-right400":e<=540?"logo-right540":e<=650?"logo-right650":"logo-right"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},titlename(){const e=this.gamesContainerWidth;return e<=400?"title-name400":e<=540?"title-name540":e<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)hs=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),hs.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},fs=()=>{t.useCssVars(e=>({d6f07504:e.colorBackgroundHome+"45","6d0848cf":e.colorBackgroundAway+"45","524ee4ec":e.colorBackgroundHome,"524bd2fb":e.colorBackgroundAway}))},gs=Wa.setup;Wa.setup=gs?(e,a)=>(fs(),gs(e,a)):fs;const no=e=>(t.pushScopeId("data-v-45034b51"),e=e(),t.popScopeId(),e),vw=no(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),Ww=[vw],Uw=no(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),Hw=["src"],Gw=no(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),Jw=no(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),qw=["src"],Zw=["src"],Xw={class:"text-container"};function Kw(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(r.thumbnailhighlights)},[t.createElementVNode("div",{class:t.normalizeClass(r.playbutton),onClick:a[0]||(a[0]=(...s)=>r.onclickPlayVideos&&r.onclickPlayVideos(...s))},Ww,2),o.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.date)},t.toDisplayString(o.dateGame),3)):t.createCommentVNode("",!0),o.matchday!=""&&o.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(r.containerinfogame)},[o.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.matchcontainer)},t.toDisplayString(o.matchday),3)):t.createCommentVNode("",!0),o.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(r.seasoncontainer)},t.toDisplayString(o.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),Uw,t.createElementVNode("img",{src:o.background,alt:"",class:"bkg-blackwhite position-image"},null,8,Hw),t.createElementVNode("div",{class:t.normalizeClass([r.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(r.baselogoright)},null,2),Gw,Jw,t.createElementVNode("img",{src:o.logoHome,alt:"",class:t.normalizeClass(r.teamlogo)},null,10,qw),t.createElementVNode("img",{src:o.logoAway,alt:"",class:t.normalizeClass(r.logoright)},null,10,Zw),t.createElementVNode("div",Xw,[t.createElementVNode("span",{class:t.normalizeClass(r.secondline)},t.toDisplayString(o.score),3),t.createElementVNode("div",{class:t.normalizeClass(r.titlename)},t.toDisplayString(o.titleCategory),3)])],2)}const Yw=We(Wa,[["render",Kw],["__scopeId","data-v-45034b51"]]);let ys=null;const Ua={components:{},props:{colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{type:String,default:""},photoProfile:{type:String,default:""},logoHome:{type:String,default:""},logoAway:{type:String,default:""},scoreHome:{type:String,default:""},scoreAway:{type:String,default:""},background:{type:String,default:""},typeImg:{type:Number,default:0},nameHomeTeam:{type:String,default:""},nameAwayTeam:{type:String,default:""},namePlayer:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},firstline(){const e=this.gamesContainerWidth;return e<=400?"first-line400":e<=540?"first-line540":e<=650?"first-line650":"first-line"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},playerimage(){const e=this.gamesContainerWidth;return e<=400?"player-image400":e<=540?"player-image540":e<=650?"player-image650":"player-image"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)ys=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),ys.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},bs=()=>{t.useCssVars(e=>({"46c0698e":e.colorBackgroundHome,"12d9d27a":e.colorBackgroundHome+"36"}))},ws=Ua.setup;Ua.setup=ws?(e,a)=>(bs(),ws(e,a)):bs;const bt=e=>(t.pushScopeId("data-v-9caaef34"),e=e(),t.popScopeId(),e),Qw=bt(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),e_=[Qw],t_=bt(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),o_=["src"],a_=bt(()=>t.createElementVNode("div",{class:"base-logo"},null,-1)),n_=["src"],r_=bt(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),i_={class:"text-container"},s_={class:"player-image position-image"},l_=["src"],c_=["src"],d_=["src"],m_=bt(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1));function p_(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(r.thumbnailhighlights)},[t.createElementVNode("div",{class:t.normalizeClass(r.playbutton),onClick:a[0]||(a[0]=(...s)=>r.onclickPlayVideos&&r.onclickPlayVideos(...s))},e_,2),t_,t.createElementVNode("img",{src:o.background,alt:"",class:"bkg-blackwhite position-image"},null,8,o_),a_,t.createElementVNode("img",{src:o.logoHome,alt:"",class:t.normalizeClass(r.teamlogo)},null,10,n_),r_,t.createElementVNode("div",i_,[t.createElementVNode("span",{class:t.normalizeClass(r.firstline)},t.toDisplayString(o.namePlayer),3),t.createElementVNode("span",{class:t.normalizeClass(r.secondline),style:t.normalizeStyle(o.nameCategory=="Balones recuperados en disputa "?"font-size: 25px":"")},t.toDisplayString(o.nameCategory),7)]),t.createElementVNode("div",s_,[o.typeImg==0?(t.openBlock(),t.createElementBlock("img",{key:0,src:o.photoProfile,class:t.normalizeClass(r.playerimage)},null,10,l_)):t.createCommentVNode("",!0),o.typeImg==1?(t.openBlock(),t.createElementBlock("img",{key:1,src:o.photoProfile,alt:""},null,8,c_)):t.createCommentVNode("",!0),o.typeImg==2?(t.openBlock(),t.createElementBlock("img",{key:2,src:o.photoProfile,class:"img-number"},null,8,d_)):t.createCommentVNode("",!0)]),m_],2)}const u_=We(Ua,[["render",p_],["__scopeId","data-v-9caaef34"]]);let _s=null;const Ha={components:{},props:{colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""},nameTeam:{type:String,default:""},nameCategory:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},firstline(){const e=this.gamesContainerWidth;return e<=400?"first-line400":e<=540?"first-line540":e<=650?"first-line650":"first-line"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)_s=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),_s.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Ss=()=>{t.useCssVars(e=>({"5536c7dc":e.colorBackgroundHome,"3e449276":e.colorBackgroundHome+"36"}))},ks=Ha.setup;Ha.setup=ks?(e,a)=>(Ss(),ks(e,a)):Ss;const ro=e=>(t.pushScopeId("data-v-ca6c08d9"),e=e(),t.popScopeId(),e),h_=ro(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),f_=[h_],g_=ro(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),y_=["src"],b_={width:"275",height:"125",viewBox:"0 0 275 125",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"base-logo"},w_=["fill"],__=["id"],S_=["stop-color"],k_=["stop-color"],C_=["src"],B_=ro(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),E_={class:"text-container"},N_=ro(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1));function x_(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(r.thumbnailhighlights)},[t.createElementVNode("div",{class:t.normalizeClass(r.playbutton),onClick:a[0]||(a[0]=(...s)=>r.onclickPlayVideos&&r.onclickPlayVideos(...s))},f_,2),g_,t.createElementVNode("img",{src:o.background,alt:"",class:"bkg-blackwhite position-image"},null,8,y_),(t.openBlock(),t.createElementBlock("svg",b_,[t.createElementVNode("path",{d:"M274.641 124.094L0 0.675049V124.094H274.641Z",fill:"url(#paint0_linear_7_"+o.nameTeam.replaceAll(" ","")+")"},null,8,w_),t.createElementVNode("defs",null,[t.createElementVNode("linearGradient",{id:"paint0_linear_7_"+o.nameTeam.replaceAll(" ",""),x1:"58.6578",y1:"15.5938",x2:"58.6578",y2:"124.094",gradientUnits:"userSpaceOnUse"},[t.createElementVNode("stop",{"stop-color":o.colorBackgroundHome},null,8,S_),t.createElementVNode("stop",{offset:"1","stop-color":o.colorBackgroundHome},null,8,k_)],8,__)])])),t.createElementVNode("img",{class:t.normalizeClass(r.teamlogo),src:o.logoHome,alt:""},null,10,C_),B_,t.createElementVNode("div",E_,[t.createElementVNode("span",{class:t.normalizeClass(r.firstline)},[o.nameTeam!="Local"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(o.nameTeam),1)],64)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(r.secondline)},t.toDisplayString(o.nameCategory),3)]),N_],2)}const T_=We(Ha,[["render",x_],["__scopeId","data-v-ca6c08d9"]]);let Cs=null;const Ga={components:{},props:{colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""},nameTeam:{type:String,default:""},nameCategory:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},firstline(){const e=this.gamesContainerWidth;return e<=400?"first-line400":e<=540?"first-line540":e<=650?"first-line650":"first-line"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)Cs=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Cs.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Bs=()=>{t.useCssVars(e=>({"17b44fa7":e.colorBackgroundHome,f1e257fe:e.colorBackgroundHome+"36"}))},Es=Ga.setup;Ga.setup=Es?(e,a)=>(Bs(),Es(e,a)):Bs;const io=e=>(t.pushScopeId("data-v-49b4e56b"),e=e(),t.popScopeId(),e),O_=io(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),V_=[O_],$_=io(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),A_=["src"],z_={width:"275",height:"125",viewBox:"0 0 275 125",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"base-logo-away"},R_=["fill"],I_=["id"],F_=["stop-color"],P_=["stop-color"],L_=["src"],D_=io(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),M_={class:"text-container"},j_=io(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1));function v_(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(r.thumbnailhighlights)},[t.createElementVNode("div",{class:t.normalizeClass(r.playbutton),onClick:a[0]||(a[0]=(...s)=>r.onclickPlayVideos&&r.onclickPlayVideos(...s))},V_,2),$_,t.createElementVNode("img",{src:o.background,alt:"",class:"bkg-blackwhite position-image"},null,8,A_),(t.openBlock(),t.createElementBlock("svg",z_,[t.createElementVNode("path",{d:"M274.641 124.094L0 0.675049V124.094H274.641Z",fill:"url(#paint0_linear_7_"+o.nameTeam.replaceAll(" ","")+")"},null,8,R_),t.createElementVNode("defs",null,[t.createElementVNode("linearGradient",{id:"paint0_linear_7_"+o.nameTeam.replaceAll(" ",""),x1:"58.6578",y1:"15.5938",x2:"58.6578",y2:"124.094",gradientUnits:"userSpaceOnUse"},[t.createElementVNode("stop",{"stop-color":o.colorBackgroundAway},null,8,F_),t.createElementVNode("stop",{offset:"1","stop-color":o.colorBackgroundAway},null,8,P_)],8,I_)])])),t.createElementVNode("img",{class:t.normalizeClass(r.teamlogo),src:o.logoHome,alt:""},null,10,L_),D_,t.createElementVNode("div",M_,[t.createElementVNode("span",{class:t.normalizeClass(r.firstline)},[o.nameTeam!="Away"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(o.nameTeam),1)],64)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(r.secondline)},t.toDisplayString(o.nameCategory),3)]),j_],2)}const W_=We(Ga,[["render",v_],["__scopeId","data-v-49b4e56b"]]);let Ns=null;const Ja={components:{},props:{colorFontHome:{type:String,default:"#000000"},colorFontAway:{type:String,default:"#000000"},type:{type:Number,default:0},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{type:String,default:""},photoProfile:{type:String,default:""},logoHome:{type:String,default:""},logoAway:{type:String,default:""},scoreHome:{type:String,default:""},scoreAway:{type:String,default:""},background:{type:String,default:""},typeImg:{type:Number,default:0},nameHomeTeam:{type:String,default:""},nameAwayTeam:{type:String,default:""},namePlayer:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},points(){const e=this.gamesContainerWidth;return e<=400?"points400":e<=540?"points540":e<=650?"points650":"points"},teamname(){const e=this.gamesContainerWidth;return e<=400?"team-name400":e<=540?"team-name540":e<=650?"team-name650":"team-name"},teamscore(){const e=this.gamesContainerWidth;return e<=400?"team-score400":e<=540?"team-score540":e<=650?"team-score650":"team-score"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},hometeam(){const e=this.gamesContainerWidth;return e<=400?"home-team400":e<=540?"home-team540":e<=650?"home-team650":"home-team"},awayteam(){const e=this.gamesContainerWidth;return e<=400?"away-team400":e<=540?"away-team540":e<=650?"away-team650":"away-team"},texttitle(){const e=this.gamesContainerWidth;return e<=400?"text-title400":e<=540?"text-title540":e<=650?"text-title650":"text-title"},texttitle2(){const e=this.gamesContainerWidth;return e<=400?"text-title2400":e<=540?"text-title2540":e<=650?"text-title2650":"text-title2"},playerimage(){const e=this.gamesContainerWidth;return e<=400?"player-image400":e<=540?"player-image540":e<=650?"player-image650":"player-image"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)Ns=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Ns.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},xs=()=>{t.useCssVars(e=>({"102d345c":e.colorBackgroundHome,"1033583e":e.colorBackgroundAway,"2c786ece":e.colorBackgroundAway+"62","53f7e0b6":e.colorBackgroundHome+"36"}))},Ts=Ja.setup;Ja.setup=Ts?(e,a)=>(xs(),Ts(e,a)):xs;const so=e=>(t.pushScopeId("data-v-3a68172d"),e=e(),t.popScopeId(),e),U_=so(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),H_=so(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),G_=[H_],J_={class:"player-container"},q_=["src"],Z_=["src"],X_=["src"],K_={class:"container-score"},Y_=["src"],Q_=["src"],e5=["src"],t5=so(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),o5=so(()=>t.createElementVNode("div",{class:"gradient-color"},null,-1));function a5(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(r.thumbnailhighlights)},[U_,t.createElementVNode("div",{class:t.normalizeClass(r.playbutton),onClick:a[0]||(a[0]=(...s)=>r.onclickPlayVideos&&r.onclickPlayVideos(...s))},G_,2),t.createElementVNode("div",J_,[o.type==0?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(r.texttitle)},t.toDisplayString(o.nameCategory),3)):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(r.texttitle2)},t.toDisplayString(o.nameCategory),3)),o.typeImg==0?(t.openBlock(),t.createElementBlock("img",{key:2,src:o.photoProfile,class:t.normalizeClass(r.playerimage)},null,10,q_)):t.createCommentVNode("",!0),o.typeImg==1?(t.openBlock(),t.createElementBlock("img",{key:3,src:o.photoProfile,alt:""},null,8,Z_)):t.createCommentVNode("",!0),o.typeImg==2?(t.openBlock(),t.createElementBlock("img",{key:4,src:o.photoProfile,class:"img-number"},null,8,X_)):t.createCommentVNode("",!0),t.createElementVNode("div",K_,[t.createElementVNode("div",{class:t.normalizeClass(r.hometeam)},[t.createElementVNode("span",{class:t.normalizeClass(r.teamname),style:t.normalizeStyle({color:o.colorFontAway})},t.toDisplayString(o.nameHomeTeam),7),t.createElementVNode("img",{src:o.logoHome,alt:"",class:t.normalizeClass(r.teamlogo)},null,10,Y_),t.createElementVNode("span",{class:t.normalizeClass(r.teamscore)},t.toDisplayString(o.scoreHome),3)],2),t.createElementVNode("span",{class:t.normalizeClass(r.points)},":",2),t.createElementVNode("div",{class:t.normalizeClass(r.awayteam)},[t.createElementVNode("span",{class:t.normalizeClass(r.teamscore)},t.toDisplayString(o.scoreAway),3),t.createElementVNode("img",{src:o.logoAway,alt:"",class:t.normalizeClass(r.teamlogo)},null,10,Q_),t.createElementVNode("span",{class:t.normalizeClass(r.teamname),style:t.normalizeStyle({color:o.colorFontAway})},t.toDisplayString(o.nameAwayTeam),7)],2)])]),t.createElementVNode("img",{src:o.background,alt:"",class:"bkg-blackwhite position-image"},null,8,e5),t5,o5],2)}const n5=We(Ja,[["render",a5],["__scopeId","data-v-3a68172d"]]);let Os=null;const qa={components:{},props:{colorFont:{type:String,default:"#000000"},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{type:String,default:""},photoProfile:{type:String,default:""},logoHome:{type:String,default:""},logoAway:{type:String,default:""},scoreHome:{type:String,default:""},scoreAway:{type:String,default:""},background:{type:String,default:""},typeImg:{type:Number,default:0},nameHomeTeam:{type:String,default:""},nameAwayTeam:{type:String,default:""},namePlayer:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},firstline(){const e=this.gamesContainerWidth;return e<=400?"first-line400":e<=540?"first-line540":e<=650?"first-line650":"first-line"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},playername(){const e=this.gamesContainerWidth;return e<=400?"player-name400":e<=540?"player-name540":e<=650?"player-name650":"player-name"},playerimage(){const e=this.gamesContainerWidth;return e<=400?"player-image400":e<=540?"player-image540":e<=650?"player-image650":"player-image"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)Os=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Os.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Vs=()=>{t.useCssVars(e=>({"7f6829cd":e.colorBackgroundHome+"30","1ad47d61":e.colorBackgroundHome}))},$s=qa.setup;qa.setup=$s?(e,a)=>(Vs(),$s(e,a)):Vs;const lo=e=>(t.pushScopeId("data-v-cc315132"),e=e(),t.popScopeId(),e),r5=lo(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),i5=[r5],s5={class:"player-image position-image"},l5=["src"],c5=["src"],d5=["src"],m5=["src"],p5=lo(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),u5=["src"],h5=lo(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),f5={class:"text-container"},g5=lo(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),y5={class:"base-logo",width:"91",height:"216",viewBox:"0 0 91 216",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b5=["fill"];function w5(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(r.thumbnailhighlights)},[t.createElementVNode("div",{class:t.normalizeClass(r.playbutton),onClick:a[0]||(a[0]=(...s)=>r.onclickPlayVideos&&r.onclickPlayVideos(...s))},i5,2),t.createElementVNode("div",s5,[o.typeImg==0?(t.openBlock(),t.createElementBlock("img",{key:0,src:o.photoProfile,class:t.normalizeClass(r.playerimage)},null,10,l5)):t.createCommentVNode("",!0),o.typeImg==1?(t.openBlock(),t.createElementBlock("img",{key:1,src:o.photoProfile,alt:""},null,8,c5)):t.createCommentVNode("",!0),o.typeImg==2?(t.openBlock(),t.createElementBlock("img",{key:2,src:o.photoProfile,class:"img-number"},null,8,d5)):t.createCommentVNode("",!0)]),t.createElementVNode("img",{src:o.logoHome,alt:"",class:"team-logo"},null,8,m5),p5,t.createElementVNode("img",{src:o.background,alt:"",class:"bkg-blackwhite position-image"},null,8,u5),h5,t.createElementVNode("div",f5,[t.createElementVNode("span",{class:t.normalizeClass(r.firstline)},"MEJORES JUGADAS",2),t.createElementVNode("span",{class:t.normalizeClass(r.secondline)},t.toDisplayString(o.nameCategory),3),t.createElementVNode("div",{class:t.normalizeClass(r.playername),style:t.normalizeStyle({color:o.colorFont})},t.toDisplayString(o.namePlayer),7)]),g5,(t.openBlock(),t.createElementBlock("svg",y5,[t.createElementVNode("path",{d:"M91.5 216L0 -0.5H91.5V216Z",fill:o.colorBackgroundHome},null,8,b5)]))],2)}const _5=We(qa,[["render",w5],["__scopeId","data-v-cc315132"]]);function S5(e){const a=t.ref({width:0,height:0});function o(){const n=e.value.getBoundingClientRect();a.value.width=n.width,a.value.height=n.height}return t.onMounted(()=>{o(),window.addEventListener("resize",o)}),t.onUnmounted(()=>{window.removeEventListener("resize",o)}),{elementSize:a}}const k5="_ptg_lp0fw_5",C5="_ptgtitle_lp0fw_15",B5="_ptgtitle450_lp0fw_47",E5="_pgtcontainercard_lp0fw_79",N5="_pgtcontainercard350_lp0fw_89",x5={ptg:k5,ptgtitle:C5,ptgtitle450:B5,pgtcontainercard:E5,pgtcontainercard350:N5},Za={components:{GSCSlider:jw,GSCThumbnailCategory:u_,GSCThumbnailCategoryTeam:T_,GSCThumbnailCategoryTeamAway:W_,GSCThumbnailHighlightGamePlayer:n5,GSCThumbnailSummaryPlayer:_5,GSCThumbnailHighlightGameHistoric:Yw},setup(){const e=t.ref("ptgDiv"),{elementSize:a}=S5(e);return{ptgDiv:e,elementSize:a}},props:{title:{type:String,default:"100% de sus participaciones en cada partido:"},type:{type:Number,default:0},data:{type:Object,default:()=>{}},backgroundColor:{type:String,default:"#0D1D29"},backgroundFooter:{type:String,default:"#192733"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsScrollHide:{type:Boolean,default:!1},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",printData:[],teamsInfo:[],playerPhoto:!0,homeTeam:0,awayTeam:0,goalCategories:[12,55,"35_r","54_r"],resumeCategories:[607,608,12,55,54,35,14,52,15,53,466,477]}},watch:{data:{immediate:!0,handler(e){this.getTeamsInfo(e),this.getStats(e)}}},computed:{ptgtitleClass(){return this.elementSize.width<=450?this.$style.ptgtitle450:this.$style.ptgtitle},pgtcontainercardClass(){return this.elementSize.width<=350?this.$style.pgtcontainercard350:this.$style.pgtcontainercard}},methods:{onclickPlayVideos(e){let a=[],o=e.data.game_id?[e.data.game_id]:null;e.type==2?e.data.position_id==1?e.data.category==0?a=[55,324,323,608,39,774,802,52,53,40,54]:a=e.data.category:e.data.category==0?a=e.isAllPlays?[56,57,59,60,326,213,214,215,216,583,584,122,123,124,125,585,586,128,129,130,131,133,327,587,588,136,137,138,139,589,590,142,143,144,145,146,147,485,486,487,488,489,490,491,492,10,27,597,598,538,539,599,600,541,542,601,602,545,546,603,604,548,549,561,562,100,563,564,103,104,105,106,107,108,565,566,111,567,568,114,115,116,117,118,119,4,88,5,34,402,459,460,461,233,403,456,457,458,236,404,453,454,455,240,405,450,451,452,243,408,447,448,449,283,409,444,445,446,285,410,441,442,443,290,411,438,439,440,292,412,435,436,437,297,414,415,416,417,244,418,419,420,421,401,581,582,331,506,530,579,580,334,507,531,577,578,344,508,532,575,576,424,509,533,573,574,341,529,534,571,572,340,528,535,569,570,427,527,536,348,349,350,465,352,353,354,466,14,52,15,53,218,219,220,221,496,497,498,499,500,501,502,503,217,504,505,521,522,543,33,209,208,517,206,207,26,325,16,51,463,151,154,156,591,592,159,162,163,429,165,593,594,168,171,172,430,174,595,596,177,180,181,431,467,358,361,363,366,369,370,469,372,376,378,379,470,381,385,387,388,471,607,608,210,212]:[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:a=e.data.category:e.type==3?e.data.category==0?a=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:a=e.data.category:e.data.category!=0?a=e.data.category:a=[607,608,12,55,54,35,14,52,15,53,466,477],this.data.isPrematch===1&&(o=null);const n=[1,2,3];let i={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:e.categories&&e.categories.length?e.categories:a,gameIds:o,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[e.matchResult]:n,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(i.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",i)},onClickVideos(e){this.$emit("onClickVideos",e)},onClickCard(e){this.$emit("onClickCard",e)},async getTeamsInfo(e){const a=await ms.create({headers:{Authorization:`${this.token}`}}).get("https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/"+e.season);for(let o=0;o<a.data.teams.length;o++)this.teamsInfo[a.data.teams[o].team_id]=a.data.teams[o]},async getStats(e){const a=ms.create({headers:{Authorization:`${this.token}`}});var o=[],n={},i={};if(this.type==0){i=await a.get("https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/"+e.season+"/"+e.player);for(let r=0;r<i.data.seasons[e.season].games_played.length;r++)n={player_id:e.player,color:i.data.info_thumbnails.colors.background_color,colorfont:i.data.info_thumbnails.colors.font_color,photo_profile:i.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.info_thumbnails.images.player_in_action[0]:"https://az755631.vo.msecnd.net/players-profile/"+e.player+".png",team_logo:"https://az755631.vo.msecnd.net/teams-150/"+i.data.seasons[e.season].games_played[r].home_team+".png",player_name:i.data.seasons[e.season].games_played[r].home_team_acronym+" "+i.data.seasons[e.season].games_played[r].home_team_score+" : "+i.data.seasons[e.season].games_played[r].visiting_team_score+" "+i.data.seasons[e.season].games_played[r].visiting_team_acronym,team_id:i.data.seasons[e.season].games_played[r].game_id,team_id_b:i.data.seasons[e.season].games_played[r].home_team,season_id:i.data.seasons[e.season].games_played[r].season_id,name:"",category:0,team_id:i.data.team_id,game_id:i.data.seasons[e.season].games_played[r].game_id,position_id:i.data.position_id,scorehome:i.data.seasons[e.season].games_played[r].home_team_score,scoreaway:i.data.seasons[e.season].games_played[r].visiting_team_score,hometeamacronym:i.data.seasons[e.season].games_played[r].home_team_acronym,visitingteamacronym:i.data.seasons[e.season].games_played[r].visiting_team_acronym,seasonname:i.data.seasons[e.season].name,match:i.data.seasons[e.season].games_played[r].matchday_name.replace("Matchday","Jor"),score:i.data.seasons[e.season].games_played[r].home_team_score+" : "+i.data.seasons[e.season].games_played[r].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.info_thumbnails.images.background_player_in_action[0],backgroundhome:i.data.seasons[e.season].games_played[r].info_thumbnails.home_colors.background_color,backgroundaway:i.data.seasons[e.season].games_played[r].info_thumbnails.away_colors.background_color,colorfont_home:i.data.seasons[e.season].games_played[r].info_thumbnails.home_colors.font_color,colorfont_away:i.data.seasons[e.season].games_played[r].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+i.data.seasons[e.season].games_played[r].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+i.data.seasons[e.season].games_played[r].visiting_team+".png",total:i.data.seasons[e.season].games_played[r].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+i.data.seasons[e.season].games_played[r].home_team+"_"+i.data.seasons[e.season].games_played[r].season_id+"_r1.jpg"},o.push(n)}if(this.type==1){i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/teams/"+e.team);for(let r=0;r<i.data.categories.length;r++){this.playerPhoto=!1;const s=Math.floor(Math.random()*i.data.categories[r].info_thumbnails.images.background_default_categories.length),l=Math.floor(Math.random()*i.data.categories[r].info_thumbnails.images.background_default_teams.length);n={player_action:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.categories[r].info_thumbnails.images.background_default_categories[s],background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.categories[r].info_thumbnails.images.background_default_teams[l],color:i.data.categories[r].info_thumbnails.colors.background_color,team_logo:"https://az755631.vo.msecnd.net/teams-80/"+i.data.categories[r].info_thumbnails.team_logo,player_name:i.data.categories[r].category_name,team_name:this.teamsInfo[i.data.team_id].colloquial_name,team_id:i.data.team_id,colorfont:i.data.categories[r].info_thumbnails.colors.font_color,team_id_b:i.data.team_id,category:i.data.categories[r].categories,season_id:i.data.season_id,total:i.data.categories[r].total,background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+i.data.team_id+"_"+i.data.season_id+"_r1.jpg"},o.push(n)}}if(this.type==2){i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/players/"+e.player);for(let r=0;r<i.data.categories.length;r++){this.playerPhoto=!1;const s=Math.floor(Math.random()*i.data.categories[r].info_thumbnails.images.player_in_action.length),l=Math.floor(Math.random()*i.data.categories[r].info_thumbnails.images.background_default_categories.length);n={player_action:i.data.categories[r].info_thumbnails.images.player_in_action[s]?"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.categories[r].info_thumbnails.images.player_in_action[s]:"https://az755631.vo.msecnd.net/players-profile/"+e.player+".png",background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.categories[r].info_thumbnails.images.background_default_categories[l],color:i.data.categories[r].info_thumbnails.colors.background_color,team_logo:"https://az755631.vo.msecnd.net/teams-80/"+i.data.categories[r].info_thumbnails.team_logo,player_name:i.data.categories[r].category_name,season_id:e.season,colorfont:i.data.categories[r].info_thumbnails.colors.font_color,player_id:e.player,team_id:i.data.categories[r].info_thumbnails.colors.team_id,category:i.data.categories[r].categories,total:i.data.categories[r].total,background_card:"https://az755631.vo.msecnd.net/players-profile/"+e.player+".png"},o.push(n)}}if(this.type==3){this.playerPhoto=!1,i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/games/"+e.game);for(let r=0;r<i.data.games[0].players.length;r++){const s=Math.floor(Math.random()*i.data.games[0].players[r].info_thumbnails.images.background_player_in_action.length),l=Math.floor(Math.random()*i.data.games[0].players[r].info_thumbnails.images.player_in_action.length);n={colorbackgroundhome:i.data.games[0].players[r].info_thumbnails.colors.background_color,colorbackgroundaway:"",nameplayer:i.data.games[0].players[r].player_name,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.games[0].players[r].info_thumbnails.images.background_player_in_action[s],namecategory:"RESUMEN",namehometeam:"",nameawayteam:"",category:0,colorfont:i.data.games[0].players[r].info_thumbnails.colors.font_color,team_id:i.data.games[0].players[r].team_id,player_id:i.data.games[0].players[r].player_id,game_id:i.data.games[0].game_id,season_id:i.data.season_id,logohome:i.data.games[0].players[r].team_logo,photoprofile:i.data.games[0].players[r].info_thumbnails.images.player_in_action[l]?"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.games[0].players[r].info_thumbnails.images.player_in_action[l]:"https://az755631.vo.msecnd.net/players-profile/"+i.data.games[0].players[r].player_id+".png",logoaway:"",scoreaway:"",scorehome:""},o.push(n)}}if(this.type==4){console.log("Hola nuva mente 44444: "),console.log(i.data),this.playerPhoto=!1,i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/specifics-plays/seasons/"+e.season+"/games/"+e.game);for(let r=0;r<i.data.home_team.categories.length;r++){const s=Math.floor(Math.random()*i.data.home_team.categories[r].info_thumbnails.images.background_default_teams.length);n={game_id:i.data.game_id,season_id:i.data.season_id,team_id:i.data.home_team.team_id,category:i.data.home_team.categories[r].categories.concat(i.data.home_team.categories[r].rival_categories),background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.home_team.categories[r].info_thumbnails.images.background_default_categories[s],player_action:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.home_team.categories[r].info_thumbnails.images.background_default_categories[s],team_logo:"https://az755631.vo.msecnd.net/teams-150/"+i.data.home_team.team_id+".png",color:i.data.home_team.categories[r].info_thumbnails.colors.background_color,colorfont:i.data.home_team.categories[r].info_thumbnails.colors.font_color,player_name:i.data.home_team.categories[r].category_name,total:i.data.home_team.categories[r].total,team_name:"Local",background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+i.data.home_team.team_id+"_"+i.data.season_id+"_r1.jpg"},o.push(n)}}if(this.type==5){this.playerPhoto=!1,i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/specifics-plays/seasons/"+e.season+"/games/"+e.game);for(let r=0;r<i.data.visiting_team.categories.length;r++){const s=Math.floor(Math.random()*i.data.visiting_team.categories[r].info_thumbnails.images.background_default_categories.length);n={game_id:i.data.game_id,season_id:i.data.season_id,team_id:i.data.visiting_team.team_id,category:i.data.visiting_team.categories[r].categories.concat(i.data.visiting_team.categories[r].rival_categories),background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.visiting_team.categories[r].info_thumbnails.images.background_default_categories[s],player_action:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.visiting_team.categories[r].info_thumbnails.images.background_default_categories[s],team_logo:"https://az755631.vo.msecnd.net/teams-150/"+i.data.visiting_team.team_id+".png",team_name:"Away",color:i.data.visiting_team.categories[r].info_thumbnails.colors.background_color,colorfont:i.data.visiting_team.categories[r].info_thumbnails.colors.font_color,player_name:i.data.visiting_team.categories[r].category_name,total:i.data.visiting_team.categories[r].total,background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+i.data.visiting_team.team_id+"_"+i.data.season_id+"_r1.jpg"},o.push(n)}}if(this.type==6){i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/teams/"+e.team+"/categories/"+e.category);for(let r=0;r<i.data.best_plays.length;r++)n={category:i.data.best_plays[r].categories,team_id:i.data.team_id,game_id:i.data.best_plays[r].game_id,season_id:i.data.season_id,backgroundhome:i.data.best_plays[r].info_thumbnails.home_colors.background_color,backgroundaway:i.data.best_plays[r].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+i.data.best_plays[r].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+i.data.best_plays[r].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.best_plays[r].info_thumbnails.images.background_default_categories[0],match:"",seasonname:"",score:i.data.best_plays[r].score[0]+" : "+i.data.best_plays[r].score[1]},o.push(n)}if(this.type==7){i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/teams/"+e.team+"/categories/"+e.category);for(let r=0;r<i.data.best_plays.length;r++)n={category:i.data.best_plays[r].categories,team_id:i.data.team_id,game_id:i.data.best_plays[r].game_id,season_id:i.data.season_id,backgroundhome:i.data.best_plays[r].info_thumbnails.home_colors.background_color,colorfont_home:i.data.best_plays[r].info_thumbnails.home_colors.font_color,colorfont_away:i.data.best_plays[r].info_thumbnails.away_colors.font_color,backgroundaway:i.data.best_plays[r].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+i.data.best_plays[r].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+i.data.best_plays[r].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.best_plays[r].info_thumbnails.images.background_default_categories[0],match:"",seasonname:"",score:i.data.best_plays[r].score[0]+" : "+i.data.best_plays[r].score[1]},o.push(n)}if(this.type==8){i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/players/"+e.player+"/categories/"+e.category);for(let r=0;r<i.data.best_plays.length;r++)n={category:i.data.best_plays[r].categories,team_id:i.data.team_id,game_id:i.data.best_plays[r].game_id,season_id:i.data.season_id,player_id:i.data.player_id,backgroundhome:i.data.best_plays[r].info_thumbnails.home_colors.background_color,backgroundaway:i.data.best_plays[r].info_thumbnails.away_colors.background_color,colorfont_home:i.data.best_plays[r].info_thumbnails.home_colors.font_color,colorfont_away:i.data.best_plays[r].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+i.data.best_plays[r].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+i.data.best_plays[r].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.best_plays[r].info_thumbnails.images.background_default_categories[0],match:"",scorehome:i.data.best_plays[r].score[0],scoreaway:i.data.best_plays[r].score[1],photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+i.data.best_plays[r].info_thumbnails.player_logo,hometeamacronym:i.data.best_plays[r].home_team_acronym,visitingteamacronym:i.data.best_plays[r].away_team_acronym,seasonname:"",score:i.data.best_plays[r].score[0]+" : "+i.data.best_plays[r].score[1]},o.push(n)}if(this.type==9){i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/players/"+e.player+"/categories/"+e.category);for(let r=0;r<i.data.best_plays.length;r++)n={category:i.data.best_plays[r].categories,team_id:i.data.team_id,player_id:i.data.player_id,game_id:i.data.best_plays[r].game_id,season_id:i.data.season_id,backgroundhome:i.data.best_plays[r].info_thumbnails.home_colors.background_color,backgroundaway:i.data.best_plays[r].info_thumbnails.away_colors.background_color,colorfont_home:i.data.best_plays[r].info_thumbnails.home_colors.font_color,colorfont_away:i.data.best_plays[r].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+i.data.best_plays[r].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+i.data.best_plays[r].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.best_plays[r].info_thumbnails.images.background_default_categories[0],match:"",scorehome:i.data.best_plays[r].score[0],scoreaway:i.data.best_plays[r].score[1],seasonname:"",photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+i.data.best_plays[r].info_thumbnails.player_logo,score:i.data.best_plays[r].score[0]+" : "+i.data.best_plays[r].score[1]},o.push(n)}if(this.type==10){const r=await a.get("https://ws8d8ye2ii.execute-api.us-west-2.amazonaws.com/prod/v4/seasonsByTeam/"+e.team);for(let s=0;s<r.data.seasons[e.season].games.length;s++){const l=Math.floor(Math.random()*r.data.seasons[e.season].games[s].info_thumbnails.images.background_default_games.length);n={photo_profile:"https://az755631.vo.msecnd.net/teams-150/"+r.data.seasons[e.season].games[s].visiting_team+".png",team_logo:"https://az755631.vo.msecnd.net/teams-150/"+r.data.seasons[e.season].games[s].home_team+".png",player_name:r.data.seasons[e.season].games[s].home_team_acronym+" "+r.data.seasons[e.season].games[s].home_team_score+" : "+r.data.seasons[e.season].games[s].visiting_team_score+" "+r.data.seasons[e.season].games[s].visiting_team_acronym,team_id:r.data.seasons[e.season].games[s].game_id,team_id_b:r.data.seasons[e.season].games[s].home_team,season_id:r.data.seasons[e.season].games[s].season_id,name:"",category:0,colorfont_home:r.data.best_plays[s].info_thumbnails.home_colors.colors.font_color,colorfont_away:r.data.best_plays[s].info_thumbnails.away_colors.colors.font_color,game_id:r.data.seasons[e.season].games[s].game_id,seasonname:r.data.seasons[e.season].name,match:r.data.seasons[e.season].games[s].matchday_name.replace("Matchday","Jor"),score:r.data.seasons[e.season].games[s].home_team_score+" : "+r.data.seasons[e.season].games[s].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+r.data.seasons[e.season].games[s].info_thumbnails.images.background_default_games[l],backgroundhome:r.data.seasons[e.season].games[s].info_thumbnails.home_colors.background_color,backgroundaway:r.data.seasons[e.season].games[s].info_thumbnails.away_colors.background_color,colorfont_home:r.data.best_plays[s].info_thumbnails.home_colors.font_color,colorfont_away:r.data.best_plays[s].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+r.data.seasons[e.season].games[s].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+r.data.seasons[e.season].games[s].visiting_team+".png",total:r.data.seasons[e.season].games[s].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+r.data.seasons[e.season].games[s].home_team+"_"+r.data.seasons[e.season].games[s].season_id+"_r1.jpg"},o.push(n)}}if(this.type==11){const r=await a.get("https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/"+e.season+"/"+e.player);for(let s=0;s<r.data.seasons[e.season].games_played.length;s++)Math.floor(Math.random()*r.data.seasons[e.season].games_played[s].info_thumbnails.images.background_default_games.length),n={category:0,player_id:e.player,team_id:r.data.team_id,game_id:r.data.seasons[e.season].games_played[s].game_id,position_id:r.data.position_id,color:r.data.info_thumbnails.colors.background_color,photo_profile:"https://golstatsimages.blob.core.windows.net/images-library/"+r.data.info_thumbnails.images.player_in_action[0],team_logo:"https://az755631.vo.msecnd.net/teams-150/"+r.data.seasons[e.season].games_played[s].home_team+".png",player_name:r.data.seasons[e.season].games_played[s].home_team_acronym+" "+r.data.seasons[e.season].games_played[s].home_team_score+" : "+r.data.seasons[e.season].games_played[s].visiting_team_score+" "+r.data.seasons[e.season].games_played[s].visiting_team_acronym,team_id_b:r.data.seasons[e.season].games_played[s].home_team,season_id:r.data.seasons[e.season].games_played[s].season_id,name:r.data.seasons[e.season].games_played[s].player_name,seasonname:r.data.seasons[e.season].name,match:r.data.seasons[e.season].games_played[s].matchday_name.replace("Matchday","Jor"),scorehome:r.data.seasons[e.season].games_played[s].home_team_score,scoreaway:r.data.seasons[e.season].games_played[s].visiting_team_score,hometeamacronym:r.data.seasons[e.season].games_played[s].home_team_acronym,visitingteamacronym:r.data.seasons[e.season].games_played[s].visiting_team_acronym,background:"https://golstatsimages.blob.core.windows.net/images-library/"+r.data.info_thumbnails.images.background_player_in_action[0],backgroundhome:r.data.seasons[e.season].games_played[s].info_thumbnails.home_colors.background_color,backgroundaway:r.data.seasons[e.season].games_played[s].info_thumbnails.away_colors.background_color,colorfont_home:r.data.seasons[e.season].games_played[s].info_thumbnails.home_colors.font_color,colorfont_away:r.data.seasons[e.season].games_played[s].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+r.data.seasons[e.season].games_played[s].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+r.data.seasons[e.season].games_played[s].visiting_team+".png",total:r.data.seasons[e.season].games_played[s].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+r.data.seasons[e.season].games_played[s].home_team+"_"+r.data.seasons[e.season].games_played[s].season_id+"_r1.jpg"},o.push(n)}if(this.type==12){const r=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/categories/"+e.category);for(let s=0;s<r.data.length;s++)for(let l=0;l<r.data[s].best_plays.length;l++)n={category:r.data[s].best_plays[l].categories,game_id:r.data[s].best_plays[l].game_id,season_id:r.data[s].season_id,backgroundhome:r.data[s].best_plays[l].info_thumbnails.home_colors.background_color,backgroundaway:r.data[s].best_plays[l].info_thumbnails.away_colors.background_color,colorfont_home:r.data[s].best_plays[l].info_thumbnails.home_colors.font_color,colorfont_away:r.data[s].best_plays[l].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+r.data[s].best_plays[l].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+r.data[s].best_plays[l].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+r.data[s].best_plays[l].info_thumbnails.images.background_default_categories[0],match:"",scorehome:r.data[s].best_plays[l].score[0],scoreaway:r.data[s].best_plays[l].score[1],seasonname:"",photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+r.data[s].best_plays[l].info_thumbnails.player_logo,score:r.data[s].best_plays[l].score[0]+" : "+r.data[s].best_plays[l].score[1]},o.push(n)}if(this.type==13){const r=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/categories/"+e.category);for(let s=0;s<r.data.length;s++)for(let l=0;l<r.data[s].best_plays.length;l++)n={category:r.data[s].best_plays[l].categories,game_id:r.data[s].best_plays[l].game_id,season_id:r.data[s].season_id,backgroundhome:r.data[s].best_plays[l].info_thumbnails.home_colors.background_color,backgroundaway:r.data[s].best_plays[l].info_thumbnails.away_colors.background_color,colorfont_home:r.data[s].best_plays[l].info_thumbnails.home_colors.font_color,colorfont_away:r.data[s].best_plays[l].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+r.data[s].best_plays[l].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+r.data[s].best_plays[l].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+r.data[s].best_plays[l].info_thumbnails.images.background_default_categories[0],match:"",scorehome:r.data[s].best_plays[l].score[0],scoreaway:r.data[s].best_plays[l].score[1],seasonname:"",photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+r.data[s].best_plays[l].info_thumbnails.player_logo,score:r.data[s].best_plays[l].score[0]+" : "+r.data[s].best_plays[l].score[1]},o.push(n)}this.printData=o}},async created(){}},As=()=>{t.useCssVars(e=>({"4956e38c":e.backgroundColor}))},zs=Za.setup;Za.setup=zs?(e,a)=>(As(),zs(e,a)):As;function T5(e,a,o,n,i,r){const s=t.resolveComponent("GSCThumbnailCategory"),l=t.resolveComponent("GSCThumbnailCategoryTeam"),p=t.resolveComponent("GSCThumbnailCategoryTeamAway"),c=t.resolveComponent("GSCThumbnailHighlightGamePlayer"),m=t.resolveComponent("GSCThumbnailHighlightGameHistoric"),u=t.resolveComponent("GSCThumbnailSummaryPlayer"),g=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.ptg),ref:"ptgDiv"},[t.createElementVNode("div",{class:t.normalizeClass(r.ptgtitleClass)},t.toDisplayString(o.title),3),t.createVNode(g,{backgroundColor:o.backgroundColor,pxScroll:o.pxScroll,arrows:o.arrows,arrowsScrollHide:o.arrowsScrollHide,arrowsHideOnNoScroll:o.arrowsHideOnNoScroll,arrowsColor:o.arrowsColor,arrowsHeight:o.arrowsWidth,arrowsWidth:o.arrowsWidth,arrowsPadding:o.arrowsPadding,arrowsMargin:o.arrowsMargin,arrowsRadius:o.arrowsRadius,arrowsBorder:o.arrowsBorder,arrowsBackground:o.arrowsBackground,arrowsContainerBgL:o.arrowsContainerBgL,arrowsContainerBgR:o.arrowsContainerBgR,scrollColor:o.scrollColor,arrowsPosition:o.arrowsPosition,height:o.height},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.printData,(d,h)=>(t.openBlock(),t.createElementBlock("div",{key:h,class:t.normalizeClass(r.pgtcontainercardClass),style:t.normalizeStyle(h==0?"margin-left: 0px !important; color: white;":"")},[o.type==2?(t.openBlock(),t.createBlock(s,{key:0,"color-background-home":d.color,"name-player":o.data.player_name,"type-img":"0",background:d.background_action,"name-category":d.player_name,"logo-home":d.team_logo,onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:2}),"photo-profile":d.player_action},null,8,["color-background-home","name-player","background","name-category","logo-home","onOnclickPlayVideos","photo-profile"])):o.type==1||o.type==4?(t.openBlock(),t.createBlock(l,{key:1,type:"team","name-team":d.team_name!=null?d.team_name:"","type-style":"category","color-background-home":d.color,"logo-home":d.team_logo,onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:3}),background:d.player_action,"name-category":d.player_name},null,8,["name-team","color-background-home","logo-home","onOnclickPlayVideos","background","name-category"])):o.type==5?(t.openBlock(),t.createBlock(p,{key:2,type:"team","name-team":d.team_name!=null?d.team_name:"","type-style":"category","color-background-away":d.color,"logo-home":d.team_logo,onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:3}),background:d.player_action,"name-category":d.player_name},null,8,["name-team","color-background-away","logo-home","onOnclickPlayVideos","background","name-category"])):o.type==0?(t.openBlock(),t.createBlock(c,{key:3,items:d,type:2,"name-category":"TODAS SUS JUGADAS","color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"color-font-home":d.colorfont_home,"color-font-away":d.colorfont_away,"logo-home":d.logohome,"logo-away":d.logoaway,onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:2,isAllPlays:!0}),background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,matchday:d.match,"score-home":d.scorehome,"photo-profile":d.photo_profile,"score-away":d.scoreaway,"season-name":d.seasonname},null,8,["items","color-background-home","color-background-away","color-font-home","color-font-away","logo-home","logo-away","onOnclickPlayVideos","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):o.type==6?(t.openBlock(),t.createBlock(m,{key:4,items:d,"color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,background:d.background,"title-category":"GOLES",onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:3,categories:i.goalCategories}),matchday:d.match,"season-name":d.seasonname,score:d.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","onOnclickPlayVideos","matchday","season-name","score"])):o.type==7?(t.openBlock(),t.createBlock(m,{key:5,items:d,"color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,background:d.background,"title-category":"RESUMEN",onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:3,categories:i.resumeCategories}),matchday:d.match,"season-name":d.seasonname,score:d.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","onOnclickPlayVideos","matchday","season-name","score"])):o.type==8?(t.openBlock(),t.createBlock(c,{key:6,items:d,type:2,"name-category":"RESUMEN","color-font-home":d.colorfont_home,"color-font-away":d.colorfont_away,"color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:2}),background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,matchday:d.match,"score-home":d.scorehome,"photo-profile":d.photo_profile,"score-away":d.scoreaway,"season-name":d.seasonname},null,8,["items","color-font-home","color-font-away","color-background-home","color-background-away","logo-home","logo-away","onOnclickPlayVideos","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):o.type==9?(t.openBlock(),t.createBlock(c,{key:7,items:d,type:2,"name-category":"RESUMEN","color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:2}),"logo-away":d.logoaway,background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,matchday:d.match,"score-home":d.scorehome,"photo-profile":d.photo_profile,"score-away":d.scoreaway,"season-name":d.seasonname},null,8,["items","color-background-home","color-background-away","logo-home","onOnclickPlayVideos","logo-away","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):o.type==10?(t.openBlock(),t.createBlock(m,{key:8,items:d,"color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:1}),background:d.background,"title-category":"RESUMEN",matchday:d.match,"season-name":d.seasonname,score:d.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","onOnclickPlayVideos","background","matchday","season-name","score"])):o.type==11?(t.openBlock(),t.createBlock(c,{key:9,items:d,type:2,"name-category":"RESUMEN","color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,matchday:d.match,"color-font-home":d.colorfont_home,"color-font-away":d.colorfont_away,onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:2}),"score-home":d.scorehome,"photo-profile":d.photo_profile,"score-away":d.scoreaway,"season-name":d.seasonname},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","name-home-team","name-away-team","matchday","color-font-home","color-font-away","onOnclickPlayVideos","score-home","photo-profile","score-away","season-name"])):o.type==12?(t.openBlock(),t.createBlock(c,{key:10,items:d,type:2,"name-category":"RESUMEN","color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,"color-font-home":d.colorfont_home,"color-font-away":d.colorfont_away,onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:1}),background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,matchday:d.match,"score-home":d.scorehome,"photo-profile":d.photo_profile,"score-away":d.scoreaway,"season-name":d.seasonname},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","color-font-home","color-font-away","onOnclickPlayVideos","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):o.type==13?(t.openBlock(),t.createBlock(c,{key:11,items:d,type:2,"name-category":"GOLES","color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:1,categories:i.goalCategories}),background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,matchday:d.match,"score-home":d.scorehome,"photo-profile":d.photo_profile,"score-away":d.scoreaway,"season-name":d.seasonname},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","onOnclickPlayVideos","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):(t.openBlock(),t.createBlock(u,{key:12,type:"player","color-background-home":d.colorbackgroundhome,"color-background-away":d.colorbackgroundaway,"name-player":d.nameplayer,"type-img":0,onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:2}),background:d.background,"name-home-team":d.namehometeam,"name-away-team":d.nameawayteam,"name-category":"RESUMEN","logo-away":d.logoaway,"logo-home":d.logohome,"color-font":d.colorfont,"score-home":d.scorehome,"photo-profile":d.photoprofile,"score-away":d.logoaway,"type-style":"summary"},null,8,["color-background-home","color-background-away","name-player","onOnclickPlayVideos","background","name-home-team","name-away-team","logo-away","logo-home","color-font","score-home","photo-profile","score-away"]))],6))),128))]),_:1},8,["backgroundColor","pxScroll","arrows","arrowsScrollHide","arrowsHideOnNoScroll","arrowsColor","arrowsHeight","arrowsWidth","arrowsPadding","arrowsMargin","arrowsRadius","arrowsBorder","arrowsBackground","arrowsContainerBgL","arrowsContainerBgR","scrollColor","arrowsPosition","height"])],2)}const O5={name:"DiscoverVideos",components:{GscSwitchComponent:Qo,GSCPlayerTeamGame:We(Za,[["render",T5],["__cssModules",{$style:x5}]]),GSCButton:Ei},props:{myTournament:{type:Number,default:1},videoType:{type:Number,default:1},team:{type:Number,default:0},user:{type:Object,default:()=>{}},nextRivalTeam:{type:Object,default:()=>{}},tournamentSelected:{type:Object,default:()=>{}},seasonSelected:{type:Object,default:()=>{}}},data(){return{currentTabMoreVideos:"Resumen",currentMobileTab:"Descubre videos",mobileClass:!1,resumeCategory:1000001,goalsCategory:1255e3,resumeType:1,goalsType:2}},mounted(){this.mobileClass=window.innerWidth<768,window.addEventListener("resize",this.handleResize)},methods:{handleResize(){this.mobileClass=window.innerWidth<768},onOpenMedia(e){this.$emit("openmedia",e)},onClickOpenMedia(){let o=1,n=[],i=[],r=0,s=this.user.season,l=[],p=[12,55,"35_r","54_r"],c=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257],m=[55,324,323,608,39,774,802,52,53,40,54];this.tournamentSelected.id===this.user.tournament?(s=this.seasonSelected.id,this.user.is_goalkeeper?(n=[this.user.player],l=m,o=2):this.user.is_player?(i=[this.user.player],l=c,o=2):(r=this.user.team,l=p,o=3)):(l=p,o=1);const u={seasonId:s,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:o,gameIds:null,playerIds:i,goalkeeperIds:n,categoryIds:l,teamId:r,matchResult:[1,2,3],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:""},objectPlaySync:null};this.$emit("openmedia",u)}}},V5=e=>(t.pushScopeId("data-v-6e0d5ced"),e=e(),t.popScopeId(),e),$5={class:"discover-videos",ref:"discoverVideosRef"},A5={class:"title-and-button"},z5=V5(()=>t.createElementVNode("div",{class:"title-value"},null,-1)),R5={class:"btn-search-videos"};function I5(e,a,o,n,i,r){const s=t.resolveComponent("GSCButton"),l=t.resolveComponent("GscSwitchComponent"),p=t.resolveComponent("GSCPlayerTeamGame");return t.openBlock(),t.createElementBlock("div",$5,[t.createElementVNode("div",A5,[z5,t.createElementVNode("div",R5,[t.createVNode(s,{style:{"margin-top":"4px"},width:"182px","text-value":"Buscar videos","font-color":"#ffffff","font-family":"Poppins-Light","font-size":"16px",icon:"https://golstatsimages.blob.core.windows.net/images-library/icn-buscar-videos.svg","icon-size":"30px","icon-position":"right","button-max-width":"250px",height:"38px","border-radius":"50px","border-width":"1","background-color":"transparent","border-color":"#CBEE6B","active-background-color":"#CBEE6B",onClick:r.onClickOpenMedia},null,8,["onClick"])])]),o.myTournament===o.tournamentSelected.id?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createVNode(l,{style:{"margin-left":"0px"},buttons:["Resumen","Proximo rival"],onInput:a[0]||(a[0]=c=>i.currentTabMoreVideos=c),background:"trasparent",height:"28px",width:"160px",fontSize:"14px","font-family":"Poppins-Light",backgroundOptionActive:"transparent",borderWidth:"2px",type:2,arrow:!1,selectedOption:i.currentTabMoreVideos,onOpenmedia:r.onOpenMedia},null,8,["selectedOption","onOpenmedia"]),i.currentTabMoreVideos=="Resumen"?(t.openBlock(),t.createBlock(p,{key:0,type:7,title:"",style:{"margin-top":"-30px"},backgroundColor:"transparent",data:{season:o.seasonSelected.id,team:o.team,category:i.resumeCategory},width:"100%",onOpenmedia:r.onOpenMedia},null,8,["data","onOpenmedia"])):(t.openBlock(),t.createBlock(p,{key:1,type:7,style:{"margin-top":"-30px"},title:"",backgroundColor:"transparent",data:{season:o.seasonSelected.id,team:o.nextRivalTeam.id,category:i.resumeCategory},width:"100%",onOpenmedia:r.onOpenMedia},null,8,["data","onOpenmedia"]))],64)):(t.openBlock(),t.createBlock(p,{key:1,style:{"margin-top":"-30px"},type:13,data:{season:o.seasonSelected.id,category:i.goalsCategory},width:"100%",backgroundColor:"transparent",title:"",onOpenmedia:r.onOpenMedia},null,8,["data","onOpenmedia"]))],512)}const F5={components:{GSCSeasonSelect:fb,GSCTournamentSelect:G2,GSCGames:b1,GSCGridTeamsMatches:Cc,GSCPlayersLanding:gc,GSCTops:b2,GSCTableCalendar:hy,DiscoverVideos:ie(O5,[["render",I5],["__scopeId","data-v-6e0d5ced"]])},setup(){const e=t.ref("landingref"),{elementSize:a}=Hl(e);return{landingref:e,elementSize:a}},watch:{team:{immediate:!0,deep:!0,async handler(e){if(Object.keys(this.seasonSelected).length!==0){const a=await this.generateSeasons(this.seasonSelected);this.seasonsSelected=a,this.fetchGames(e,a)}}},closestRound(e){this.selectedRoundKeyIndex=this.tournamentScheduleKeys.findIndex(a=>a===e),this.selectedRound=e}},props:{currentSeasonId:{type:Number,default:0},season:{type:Number,default:1772},isplayer:{type:Boolean,default:!1},user:{type:Object,default:()=>{}},team:{type:Number,default:0},player:{type:Number,default:0},gamesPerMatchDay:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}}},data(){return{defaultGameId:0,lastSeasonsIds:[],gamesPages:new Map,selectedRoundKeyIndex:0,selectedRound:0,fullTournamentScheduleFull:[],defaultMatchDayKey:null,isCupTournament:!1,retries:3,userTeamGames:[],isCupLegacyTournament:!1,tournamentScheduleKeys:[],currentTournamentGames:null,currentTournamentTeams:null,gamesUrl:"https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason/",gamesUrl2:"https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",seasonSelected:{},seasonSelectedDropDowns:{},seasonsSelected:[],fullTournamentSchedule:{},tournamentSelected:{},tournamentSelectedDropDowns:{seasons:[]},playersLength:0,nextRivalId:0,loadDiscover:!1,hasNextRival:!1,resumeType:1,goalsType:2,tokenFree:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{gamesFullLeague(){var e=[];if(this.fullTournamentScheduleFull&&Object.keys(this.fullTournamentScheduleFull).length>0)for(let a=0;a<this.fullTournamentScheduleFull[this.selectedRound].length;a++)for(let o=0;o<this.fullTournamentScheduleFull[this.selectedRound][a].games.length;o++)e.push(this.fullTournamentScheduleFull[this.selectedRound][a].games[o]);return e},closestRound(){return this.userTeamGames&&this.userTeamGames.length?this.getUserTeamClosestRound(this.fullTournamentScheduleFull):this.getNormalClosestRound(this.fullTournamentScheduleFull)},containerGridCalendarTable(){return this.elementSize.width<=1e3?"container-grid-calendar-table-mobile":"container-grid-calendar-table"},containerbackground(){return this.elementSize.width<=680?"container-background-movil":"container-background"},containerdata(){return this.elementSize.width<=680?"container-data-movil":"container-data"}},methods:{formatUsername(e){const a=e.split(",");let o="",n="";return a[1]?(n=a[1].trim().split(" "),n[0]?o=n[0]:o=a[1]):a[0]&&(n=a[0].trim().split(" "),n[0]?o=n[0]:o=a[0]),o.trim()},onAction(e){this.$emit("action",e)},onOpenMedia(e){this.$emit("openmedia",e)},onOpenProfile(e){this.$emit("onOpenProfile",e)},onClickMatch(e){this.$emit("openGame",e)},onClickCalendar(){const e={type:this.tournamentSelected.id==this.user.tournament?1:0,team:this.team,season:this.seasonSelectedDropDowns};this.$emit("onClickMyCalendar",e)},moreTops(){const e={team:this.team,season:this.seasonSelectedDropDowns};this.$emit("openTops",e)},clickProfileBtn(e){this.$emit("openProfile",e)},viewAll(){const e={team:this.team,season:this.seasonSelectedDropDowns};this.$emit("openAllPlayers",e)},getTotalPlayers(e){this.playersLength=e},clickCard(e){const a={data:e,isPlayer:this.isplayer};this.$emit("clickOnMainCards",a)},async fetchGames(e,a){const o=a.map(i=>`seasons=${i.id}`).join("&"),n=Tt.create({headers:{Authorization:`${this.tokenFree}`}});this.fullTournamentSchedule=await n.get(this.gamesUrl+e+"?"+o),this.nextRivalId=Object.keys(this.fullTournamentSchedule).length>0?this.user.team==this.fullTournamentSchedule.data.prematch.home_team?this.fullTournamentSchedule.data.prematch.visiting_team:this.fullTournamentSchedule.data.prematch.home_team:0,this.loadDiscover=!0},async generateSeasons(e){const a=[{id:e.id,type:e.type}];return e.related_seasons&&e.related_seasons.length&&a.push(...e.related_seasons.map(o=>({id:o.id,type:o.type}))),a},async onInputTournament(e){this.tournamentSelected=e,this.tournamentSelectedDropDowns.id!==e.id&&(this.tournamentSelectedDropDowns=e)},async onInputSeason(e){if(this.seasonSelected=e,this.tournamentSelected.id!=this.user.tournament){const a=await this.generateSeasons(this.seasonSelected);this.seasonsSelected=a,await this.createFullTournamentScheme(a,!1)}else{const a=await this.generateSeasons(this.seasonSelected);this.seasonsSelected=a,await this.fetchGames(this.user.team,a)}this.seasonSelectedDropDowns!==e.id&&(this.seasonSelectedDropDowns=e.id,this.$emit("change-season-id",e.id))},async fetchTournaments(e){try{const{data:a}=await Tt.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments");return a}catch(a){if(e>0)return this.fetchTournaments(e-1);throw new Error(a)}},async fetchSeasonsGamesAndTeams(e,a,o=""){let n=o;try{n||(n=this.gamesUrl2,e.forEach((l,p)=>{n+=`${p===0?"":"&"}seasons=${l}`}));const i=Tt.create({headers:{Authorization:`${this.tokenFree}`}}),{data:{data:r,teams:s}}=await i.get(n);return{seasonsAndGames:r,seasonsAndTeams:s}}catch(i){if(a>0)return this.fetchSeasonsGamesAndTeams(e,a-1,n);throw new Error(i)}},areSeasonsDifferent(e){for(const a of e)if(!this.lastSeasonsIds.includes(a.season_id))return!0;return!1},async createFullTournamentScheme(e,a){try{this.fullTournamentSchedule={},this.userTeamGames=[];let o=0;const{seasonsAndGames:n,seasonsAndTeams:i}=await this.fetchSeasonsGamesAndTeams(e.map(p=>p.id),3);if(a&&this.areSeasonsDifferent(n))return;n.forEach(p=>{const{type:c}=e.find(m=>m.id===p.season_id);p.type=c,p.games.forEach(m=>{m.season_id=p.season_id}),c===0&&(o=p.season_id)});const r={seasonsGames:n},{teams:s}=i.find(p=>p.season_id===o),l=r&&r.seasonsGames?r.seasonsGames.map(p=>{const c=p.games.reduce((m,u)=>{const g={...u};return g.dateTimeMillis=new Date(g.date_time_utc).valueOf(),g.home_team=s.find(d=>d.team_id===u.home_team),g.visiting_team=s.find(d=>d.team_id===u.visiting_team),m[u.matchday_abbreviation]?m[u.matchday_abbreviation][u.game_status===3?"canceled":u.date]?m[u.matchday_abbreviation][u.game_status===3?"canceled":u.date].push(g):m[u.matchday_abbreviation][u.game_status===3?"canceled":u.date]=[g]:m[u.matchday_abbreviation]={[u.game_status===3?"canceled":u.date]:[g]},this.gsData&&this.gsData.teamId&&g.game_status===4&&(g.home_team.team_id===this.gsData.teamId||g.visiting_team.team_id===this.gsData.teamId)&&this.userTeamGames.push(g),m},{});this.userTeamGames.sort((m,u)=>m.dateTimeMillis-u.dateTimeMillis);for(let[m,u]of Object.entries(c))c[m]=Object.entries(u).map(([g,d])=>({date:g,games:d.sort((h,f)=>h.dateTimeMillis-f.dateTimeMillis)})),c[m].sort((g,d)=>g.date<d.date?-1:g.date>d.date?1:0);return{type:p.type,weight:p.type===0?0:p.type===2?1:2,schedule:c}}):[];l.sort((p,c)=>p.weight-c.weight),this.fullTournamentScheduleFull=l.reduce((p,c)=>{for(const[m,u]of Object.entries(c.schedule))if(c.type===0)if(this.isCup){const g=m.replace("M",""),d=`Jornada ${g}`;this.isCupLegacy?p[S2[g]||d]=u:p[_2[m]||d]=u}else p[Number(m.replace("M","")).toString()]=u;else c.type===2?["PI1","PI2"].includes(m)?p[m]=u:p[`R${Number(m.replace("PO",""))}`]=u:c.type===1&&(p[w2[m]]=u);return p},{}),this.tournamentScheduleKeys=Object.keys(this.fullTournamentScheduleFull)}catch(o){throw new Error(o)}finally{this.loadingFlag=!1}},getNormalClosestRound(e){const o=Object.entries(Object.entries(e).reduce((r,[s,l])=>(r[s]=[],l.forEach(p=>{p.games.forEach(c=>{const m=new Date(c.date_time_utc).getTime()+66e5;r[s].push(m)})}),r),{}));if(!o.length)return"1";const n=new Date().getTime(),i=o.reduce((r,[s,l])=>{let p=null;return l.forEach(c=>{const m=c-n;m>=0&&(p===null||m<p)&&(p=m)}),p&&(r.shortestTime===null||p<r.shortestTime)&&(r.round=s,r.shortestTime=p),r},{round:"",shortestTime:null});return i.shortestTime!==null?i.round:o[o.length-1][0]},getUserTeamClosestRound(e){let a=1;if(this.userTeamGames.length){const o=this.userTeamGames[0];for(const[n,i]of Object.entries(e))for(const r of i)if(r.games.find(l=>l.game_id===o.game_id))return n}return a}},async created(){}},P5=e=>(t.pushScopeId("data-v-9551519c"),e=e(),t.popScopeId(),e),L5={class:"gsclanding",ref:"landingref"},D5={key:0,class:"container-selectors-mobile"},M5={class:"container-selectors-mobile-tournament"},j5={class:"container-selectors-mobile-season"},v5={key:0,class:"home-item-movil"},W5=P5(()=>t.createElementVNode("div",{class:"home-movil"},"Inicio",-1)),U5={class:"name-user-movil"},H5={key:1,class:"home-item"},G5={key:2,class:"bar-settings"},J5={class:"name-user"},q5={class:"container-selectors"},Z5={class:"selector-tournament"},X5={class:"selector-seasons"},K5={key:3,class:"container-games"},Y5={key:4,class:"container-players"},Q5={class:"container-tops"},eS={class:"container-vr"};function tS(e,a,o,n,i,r){const s=t.resolveComponent("GSCTournamentSelect"),l=t.resolveComponent("GSCSeasonSelect"),p=t.resolveComponent("GSCGames"),c=t.resolveComponent("GSCGridTeamsMatches"),m=t.resolveComponent("GSCTableCalendar"),u=t.resolveComponent("GSCPlayersLanding"),g=t.resolveComponent("GSCTops"),d=t.resolveComponent("DiscoverVideos");return t.openBlock(),t.createElementBlock("div",L5,[n.elementSize.width<=680?(t.openBlock(),t.createElementBlock("div",D5,[t.createElementVNode("div",M5,[t.createVNode(s,{"current-season-id":o.currentSeasonId,width:"100%",onInput:r.onInputTournament},null,8,["current-season-id","onInput"])]),t.createElementVNode("div",j5,[t.createVNode(l,{"current-season-id":o.currentSeasonId,width:"100%",seasons:i.tournamentSelectedDropDowns.seasons,onInput:r.onInputSeason},null,8,["current-season-id","seasons","onInput"])])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(r.containerbackground)},[t.createElementVNode("div",{class:t.normalizeClass(r.containerdata)},[n.elementSize.width<=680?(t.openBlock(),t.createElementBlock("div",v5,[W5,t.createElementVNode("div",U5,"Bienvenido "+t.toDisplayString(r.formatUsername(o.user.name)),1)])):t.createCommentVNode("",!0),n.elementSize.width>680?(t.openBlock(),t.createElementBlock("div",H5,"Inicio")):t.createCommentVNode("",!0),n.elementSize.width>680?(t.openBlock(),t.createElementBlock("div",G5,[t.createElementVNode("div",J5,"Bienvenido "+t.toDisplayString(r.formatUsername(o.user.name)),1),t.createElementVNode("div",q5,[t.createElementVNode("div",Z5,[t.createVNode(s,{"current-season-id":o.currentSeasonId,onInput:r.onInputTournament},null,8,["current-season-id","onInput"])]),t.createElementVNode("div",X5,[t.createVNode(l,{"current-season-id":o.currentSeasonId,seasons:i.tournamentSelectedDropDowns.seasons,onInput:r.onInputSeason},null,8,["current-season-id","seasons","onInput"])])])])):t.createCommentVNode("",!0),Object.keys(i.tournamentSelected).length>0?(t.openBlock(),t.createElementBlock("div",K5,[t.createVNode(p,{"component-width":n.elementSize.width,isplayer:o.isplayer,"is-full":i.tournamentSelected.id!=o.user.tournament,onClickMatch:r.onClickMatch,onClickCalendar:r.onClickCalendar,data:i.tournamentSelected.id==o.user.tournament?i.fullTournamentSchedule:r.gamesFullLeague},null,8,["component-width","isplayer","is-full","onClickMatch","onClickCalendar","data"])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(r.containerGridCalendarTable)},[t.createElementVNode("div",{class:"container-grid",style:t.normalizeStyle(n.elementSize.width<1e3?"width: 100%":"")},[t.createVNode(c,{isPlayer:o.isplayer?i.tournamentSelected.id==o.user.tournament:!1,"player-id":o.user.player,"team-id":o.user.team,"season-selected":i.seasonSelected.id,"next-rival-id":Object.keys(i.fullTournamentSchedule).length>0?o.user.team==i.fullTournamentSchedule.data.prematch.home_team?i.fullTournamentSchedule.data.prematch.visiting_team:i.fullTournamentSchedule.data.prematch.home_team:0,"team-img":"https://az755631.vo.msecnd.net/teams-150/"+o.user.team+".png","player-img":"https://az755631.vo.msecnd.net/players-profile/"+o.user.player+".png","rival-img":Object.keys(i.fullTournamentSchedule).length>0?o.user.team==i.fullTournamentSchedule.data.prematch.home_team?"https://az755631.vo.msecnd.net/teams-150/"+i.fullTournamentSchedule.data.prematch.visiting_team+".png":"https://az755631.vo.msecnd.net/teams-150/"+i.fullTournamentSchedule.data.prematch.home_team+".png":"","has-team":o.isplayer?!1:i.tournamentSelected.id==o.user.tournament,"component-width":n.elementSize.width,onAction:r.clickCard},null,8,["isPlayer","player-id","team-id","season-selected","next-rival-id","team-img","player-img","rival-img","has-team","component-width","onAction"])],4),t.createElementVNode("div",{class:"container-calendar-table",style:t.normalizeStyle(n.elementSize.width<1e3?"width: 100%; margin-top: 30px;":"")},[t.createVNode(m,{onAction:r.onAction,season:i.seasonSelected,seasons:i.seasonsSelected,onOpenmedia:r.onOpenMedia,onOnOpenProfile:r.onOpenProfile,componentWidth:n.elementSize.width},null,8,["onAction","season","seasons","onOpenmedia","onOnOpenProfile","componentWidth"])],4)],2),i.tournamentSelected.id==o.user.tournament?t.withDirectives((t.openBlock(),t.createElementBlock("div",Y5,[t.createVNode(u,{onClickProfileBtn:r.clickProfileBtn,onViewAll:r.viewAll,onTotalPlayers:r.getTotalPlayers,"team-id":o.user.team,"season-id":i.seasonSelected.id,"is-player":o.user.player!=0},null,8,["onClickProfileBtn","onViewAll","onTotalPlayers","team-id","season-id","is-player"])],512)),[[t.vShow,i.playersLength>0]]):t.createCommentVNode("",!0),t.createElementVNode("div",Q5,[t.createVNode(g,{onMore:r.moreTops,"show-switch":i.tournamentSelected.id==o.user.tournament,season:i.seasonSelected.id,"team-id":o.user.team,onOpenmedia:r.onOpenMedia},null,8,["onMore","show-switch","season","team-id","onOpenmedia"])]),t.createElementVNode("div",eS,[t.createVNode(d,{onOpenmedia:r.onOpenMedia,videoType:i.tournamentSelected.id==o.user.tournament?i.resumeType:i.goalsType,team:o.team,nextRivalTeam:i.tournamentSelected.id==o.user.tournament&&i.nextRivalId!=0?{id:i.nextRivalId}:0,user:o.user,seasonSelected:i.seasonSelected,tournamentSelected:i.tournamentSelected,myTournament:o.user.tournament},null,8,["onOpenmedia","videoType","team","nextRivalTeam","user","seasonSelected","tournamentSelected","myTournament"])])],2)],2)],512)}const oS=ie(F5,[["render",tS],["__scopeId","data-v-9551519c"]]);ve.GSCLanding=oS,Object.defineProperty(ve,Symbol.toStringTag,{value:"Module"})});
|