@golstats/gsc-landing 1.0.31 → 1.0.33
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 +5115 -5005
- package/dist/gsc-landing.umd.cjs +21 -20
- package/dist/style.css +1 -1
- package/package.json +3 -3
package/dist/gsc-landing.umd.cjs
CHANGED
|
@@ -1,32 +1,33 @@
|
|
|
1
|
-
(function(We,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(We=typeof globalThis<"u"?globalThis:We||self,t(We.GSCLanding={},We.Vue))})(this,function(We,t){"use strict";function Ja(e,a){return function(){return e.apply(a,arguments)}}const{toString:$s}=Object.prototype,{getPrototypeOf:lo}=Object,wt=(e=>a=>{const o=$s.call(a);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),_e=e=>(e=e.toLowerCase(),a=>wt(a)===e),_t=e=>a=>typeof a===e,{isArray:Ue}=Array,et=_t("undefined");function As(e){return e!==null&&!et(e)&&e.constructor!==null&&!et(e.constructor)&&le(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Za=_e("ArrayBuffer");function zs(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&Za(e.buffer),a}const Rs=_t("string"),le=_t("function"),Xa=_t("number"),St=e=>e!==null&&typeof e=="object",Is=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)},Fs=_e("Date"),Ps=_e("File"),Ls=_e("Blob"),Ds=_e("FileList"),Ms=e=>St(e)&&le(e.pipe),js=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]"))},vs=_e("URLSearchParams"),Ws=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function tt(e,a,{allOwnKeys:o=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),Ue(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=>!et(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):Ue(n)?a[r]=n.slice():a[r]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&tt(arguments[n],o);return a}const Us=(e,a,o,{allOwnKeys:n}={})=>(tt(a,(i,r)=>{o&&le(i)?e[r]=Ja(i,o):e[r]=i},{allOwnKeys:n}),e),Hs=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Gs=(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},Js=(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},Zs=e=>{if(!e)return null;if(Ue(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},Xs=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&lo(Uint8Array)),Ks=(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])}},Ys=(e,a)=>{let o;const n=[];for(;(o=e.exec(a))!==null;)n.push(o);return n},Qs=_e("HTMLFormElement"),el=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),tl=_e("RegExp"),tn=(e,a)=>{const o=Object.getOwnPropertyDescriptors(e),n={};tt(o,(i,r)=>{let s;(s=a(i,r,e))!==!1&&(n[r]=s||i)}),Object.defineProperties(e,n)},ol=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+"'")})}})},al=(e,a)=>{const o={},n=i=>{i.forEach(r=>{o[r]=!0})};return Ue(e)?n(e):n(String(e).split(a)),o},nl=()=>{},rl=(e,a)=>(e=+e,Number.isFinite(e)?e:a),mo="abcdefghijklmnopqrstuvwxyz",on="0123456789",an={DIGIT:on,ALPHA:mo,ALPHA_DIGIT:mo+mo.toUpperCase()+on},il=(e=16,a=an.ALPHA_DIGIT)=>{let o="";const{length:n}=a;for(;e--;)o+=a[Math.random()*n|0];return o};function sl(e){return!!(e&&le(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const ll=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=Ue(n)?[]:{};return tt(n,(s,l)=>{const p=o(s,i+1);!et(p)&&(r[l]=p)}),a[i]=void 0,r}}return n};return o(e,0)},cl=_e("AsyncFunction"),w={isArray:Ue,isArrayBuffer:Za,isBuffer:As,isFormData:js,isArrayBufferView:zs,isString:Rs,isNumber:Xa,isBoolean:Is,isObject:St,isPlainObject:kt,isUndefined:et,isDate:Fs,isFile:Ps,isBlob:Ls,isRegExp:tl,isFunction:le,isStream:Ms,isURLSearchParams:vs,isTypedArray:Xs,isFileList:Ds,forEach:tt,merge:co,extend:Us,trim:Ws,stripBOM:Hs,inherits:Gs,toFlatObject:qs,kindOf:wt,kindOfTest:_e,endsWith:Js,toArray:Zs,forEachEntry:Ks,matchAll:Ys,isHTMLForm:Qs,hasOwnProperty:en,hasOwnProp:en,reduceDescriptors:tn,freezeMethods:ol,toObjectSet:al,toCamelCase:el,noop:nl,toFiniteNumber:rl,findKey:Ka,global:Ya,isContextDefined:Qa,ALPHABET:an,generateString:il,isSpecCompliantForm:sl,toJSONObject:ll,isAsyncFn:cl,isThenable:e=>e&&(St(e)||le(e))&&le(e.then)&&le(e.catch)};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)}w.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:w.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const nn=P.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(P,rn),Object.defineProperty(nn,"isAxiosError",{value:!0}),P.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"),P.call(s,e.message,a,o,n,i),s.cause=e,s.name=e.name,r&&Object.assign(s,r),s};const dl=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 ml(e){return w.isArray(e)&&!e.some(po)}const pl=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||d,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 P("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 d(h,g,y){let C=h;if(h&&!y&&typeof h=="object"){if(w.endsWith(g,"{}"))g=n?g:g.slice(0,-2),h=JSON.stringify(h);else if(w.isArray(h)&&ml(h)||(w.isFileList(h)||w.endsWith(g,"[]"))&&(C=w.toArray(h)))return g=sn(g),C.forEach(function(W,X){!(w.isUndefined(W)||W===null)&&a.append(s===!0?ln([g],X,r):s===null?g:g+"[]",c(W))}),!1}return po(h)?!0:(a.append(ln(y,g,r),c(h)),!1)}const u=[],m=Object.assign(pl,{defaultVisitor:d,convertValue:c,isVisitable:po});function f(h,g){if(!w.isUndefined(h)){if(u.indexOf(h)!==-1)throw Error("Circular reference detected in "+g.join("."));u.push(h),w.forEach(h,function(C,O){(!(w.isUndefined(C)||C===null)&&i.call(a,C,w.isString(O)?O.trim():O,g,m))===!0&&f(C,g?g.concat(O):[O])}),u.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 ul(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||ul,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},hl={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",fl=(e=>hn&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),gl=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Se={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:hn,hasStandardBrowserEnv:fl,hasStandardBrowserWebWorkerEnv:gl},Symbol.toStringTag,{value:"Module"})),...hl};function yl(e,a){return Ct(e,new Se.classes.URLSearchParams,Object.assign({visitor:function(o,n,i,r){return Se.isNode&&w.isBuffer(o)?(this.append(n,o.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},a))}function bl(e){return w.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function wl(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]=wl(i[s])),!l)}if(w.isFormData(e)&&w.isFunction(e.entries)){const o={};return w.forEachEntry(e,(n,i)=>{a(bl(n),i,o,0)}),o}return null}function _l(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 yl(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),_l(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"?P.from(l,P.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:Se.classes.FormData,Blob:Se.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,Sl=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"]),kl=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[gn]=this[gn]={accessors:{}}).accessors,i=this.prototype;function r(s){const l=
|
|
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]&&kl[o])&&(o==="set-cookie"?a[o]?a[o].push(n):a[o]=[n]:a[o]=a[o]?a[o]+", "+n:n)}),a},gn=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 Bl(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 El=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function go(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 Nl(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,o,n)=>o.toUpperCase()+n)}function xl(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,d){const c=at(p);if(!c)throw new Error("header name must be a non-empty string");const h=w.findKey(i,c);(!h||i[h]===void 0||d===!0||d===void 0&&i[h]!==!1)&&(i[h||p]=Bt(l))}const s=(l,p)=>w.forEach(l,(d,c)=>r(d,c,p));return w.isPlainObject(a)||a instanceof this.constructor?s(a,o):w.isString(a)&&(a=a.trim())&&!El(a)?s(Cl(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 Bl(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||go(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||go(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||go(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?Nl(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[gn]=this[gn]={accessors:{}}).accessors,i=this.prototype;function r(s){const l=at(s);n[l]||(xl(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 yo(e,a){const o=this||fo,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 yn(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 Tl(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 Ol=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 Vl(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function $l(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function bn(e,a){return e&&!Vl(a)?$l(e,a):a}const Al=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 zl(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function Rl(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 d=Date.now(),c=n[r];s||(s=d),o[i]=p,n[i]=d;let h=r,m=0;for(;h!==i;)m+=o[h++],h=h%e;if(i=(i+1)%e,i===r&&(r=(r+1)%e),d-s<a)return;const f=c&&d-c;return f?Math.round(m*1e3/f):void 0}}function wn(e,a){let o=0;const n=Rl(50,250);return i=>{const r=i.loaded,s=i.lengthComputable?i.total:void 0,l=r-o,p=n(l),d=r<=s;o=r;const c={loaded:r,total:s,progress:s?r/s:void 0,bytes:l,rate:p||void 0,estimated:p&&s&&d?(s-r)/p:void 0,event:i};c[a?"download":"upload"]=!0,e(c)}}const bo={http:ml,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 d(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}let c;if(w.isFormData(i)){if(Ce.hasStandardBrowserEnv||Ce.hasStandardBrowserWebWorkerEnv)r.setContentType(!1);else if((c=r.getContentType())!==!1){const[g,...y]=c?c.split(";").map(C=>C.trim()).filter(Boolean):[];r.setContentType([g||"multipart/form-data",...y].join("; "))}}let h=new XMLHttpRequest;if(e.auth){const g=e.auth.username||"",y=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";r.set("Authorization","Basic "+btoa(g+":"+y))}const m=bn(e.baseURL,e.url);h.open(e.method.toUpperCase(),mn(m,e.params,e.paramsSerializer),!0),h.timeout=e.timeout;function f(){if(!h)return;const g=ze.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),C={data:!s||s==="text"||s==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:g,config:e,request:h};Tl(function(v){o(v),d()},function(v){n(v),d()},C),h=null}if("onloadend"in h?h.onloadend=f:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(f)},h.onabort=function(){h&&(n(new I("Request aborted",I.ECONNABORTED,e,h)),h=null)},h.onerror=function(){n(new I("Network Error",I.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let y=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const C=e.transitional||un;e.timeoutErrorMessage&&(y=e.timeoutErrorMessage),n(new I(y,C.clarifyTimeoutError?I.ETIMEDOUT:I.ECONNABORTED,e,h)),h=null},Ce.hasStandardBrowserEnv&&(l&&w.isFunction(l)&&(l=l(e)),l||l!==!1&&Al(m))){const g=e.xsrfHeaderName&&e.xsrfCookieName&&Ol.read(e.xsrfCookieName);g&&r.set(e.xsrfHeaderName,g)}i===void 0&&r.setContentType(null),"setRequestHeader"in h&&w.forEach(r.toJSON(),function(y,C){h.setRequestHeader(C,y)}),w.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),s&&s!=="json"&&(h.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&h.addEventListener("progress",wn(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&h.upload&&h.upload.addEventListener("progress",wn(e.onUploadProgress)),(e.cancelToken||e.signal)&&(p=g=>{h&&(n(!g||g.type?new nt(null,e,h):g),h.abort(),h=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p)));const u=zl(m);if(u&&Ce.protocols.indexOf(u)===-1){n(new I("Unsupported protocol "+u+":",I.ERR_BAD_REQUEST,e));return}h.send(i||null)})}};w.forEach(bo,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const _n=e=>`- ${e}`,Il=e=>w.isFunction(e)||e===null||e===!1,Sn={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,!Il(o)&&(n=bo[(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
4
|
`+r.map(_n).join(`
|
|
5
|
-
`):" "+_n(r[0]):"as no adapter specified";throw new
|
|
6
|
-
`+r):n.stack=r}throw n}}_request(a,o){typeof a=="string"?(o=o||{},o.url=a):o=a||{},o=He(this.defaults,o);const{transitional:n,paramsSerializer:i,headers:r}=o;n!==void 0&&So.assertOptions(n,{silentJSONParsing:Ae.transitional(Ae.boolean),forcedJSONParsing:Ae.transitional(Ae.boolean),clarifyTimeoutError:Ae.transitional(Ae.boolean)},!1),i!=null&&(w.isFunction(i)?o.paramsSerializer={serialize:i}:So.assertOptions(i,{encode:Ae.function,serialize:Ae.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=Te.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 c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let d,u=0,m;if(!p){const h=[kn.bind(this),void 0];for(h.unshift.apply(h,l),h.push.apply(h,c),m=h.length,d=Promise.resolve(o);u<m;)d=d.then(h[u++],h[u++]);return d}m=l.length;let f=o;for(u=0;u<m;){const h=l[u++],g=l[u++];try{f=h(f)}catch(y){g.call(this,y);break}}try{d=kn.call(this,f)}catch(h){return Promise.reject(h)}for(u=0,m=c.length;u<m;)d=d.then(c[u++],c[u++]);return d}getUri(a){a=He(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(He(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(He(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 at(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 Fl=ko;function Pl(e){return function(o){return e.apply(null,o)}}function Ll(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 Dl=Co;function Nn(e){const a=new xt(e),o=Ja(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(He(e,i))},o}const U=Nn(fo);U.Axios=xt,U.CanceledError=at,U.CancelToken=Fl,U.isCancel=yn,U.VERSION=Bn,U.toFormData=Ct,U.AxiosError=P,U.Cancel=U.CanceledError,U.all=function(a){return Promise.all(a)},U.spread=Pl,U.isAxiosError=Ll,U.mergeConfig=He,U.AxiosHeaders=Te,U.formToJSON=e=>fn(w.isHTMLForm(e)?new FormData(e):e),U.getAdapter=Sn.getAdapter,U.HttpStatusCode=Dl,U.default=U;const Tt=U;function Ml(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},jl={class:"player-card"},vl={class:"player-card__image"},Wl=["src"],Ul={class:"player-card__number"},Hl={class:"player-card__right-data"},Gl={class:"player-card__details"},ql={class:"player-card__name"},Jl={class:"player-card__position"},Zl=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",jl,[t.createElementVNode("div",vl,[t.createElementVNode("img",{class:t.normalizeClass(["player-card__photo",{"full-width":e.isImgFullWidth}]),src:e.photo,alt:"Player Image"},null,10,Wl),t.createElementVNode("div",Ul,t.toDisplayString(e.jersey),1),t.createElementVNode("div",Hl,[t.createElementVNode("button",{class:"player-card__profile-button",onClick:n[0]||(n[0]=i=>a("clickProfileBtn"))}," Ver perfil ")])]),t.createElementVNode("div",Gl,[t.createElementVNode("p",ql,t.toDisplayString(e.name),1),t.createElementVNode("p",Jl,t.toDisplayString(t.unref(Bo).get(e.position_id)),1)])]))}},[["__scopeId","data-v-caa30d1f"]]),Xl=(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 Kl={ref:"gscScrollableContainer",class:"scrollable-container"},Yl={class:"scrollable-arrows"},Ql=["width","height","viewBox"],ec=["stroke"],tc={class:"scrollable-wrapper"},oc={class:"scrollable-arrows"},ac=["width","height","viewBox"],nc=["stroke"];function rc(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",Kl,[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",Yl,[(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,ec)],8,Ql))])],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",tc,[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",oc,[(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,nc)],8,ac))])],2)):t.createCommentVNode("",!0)],512)}const nt=Xl(Eo,[["render",rc],["__scopeId","data-v-b548a08d"]]),On=e=>(t.pushScopeId("data-v-34ea0cee"),e=e(),t.popScopeId(),e),ic={class:"my-players"},sc={class:"my-players__header"},lc={class:"my-players__title"},cc=[On(()=>t.createElementVNode("span",{style:{"text-decoration-line":"underline"}},"Ver todos",-1)),On(()=>t.createElementVNode("span",null,"→",-1))],dc={class:"my-players__list"},mc=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,c)=>{var u;const d="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||d}})).json())[0])==null?void 0:u.players)||[]}catch(m){return Promise.reject(m)}};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(d=>({...d,position:Bo.get(d.position_id)})),a("totalPlayers",r.value),i.value+=1}),(l,p)=>(t.openBlock(),t.createElementBlock("div",ic,[t.createElementVNode("div",sc,[t.createElementVNode("h3",lc,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"))},cc)]),(t.openBlock(),t.createBlock(t.unref(nt),{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",dc,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.value,c=>(t.openBlock(),t.createBlock(Zl,t.mergeProps(c,{isImgFullWidth:e.isImgFullWidth,onClickProfileBtn:d=>a("clickProfileBtn",c),key:c.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",pc="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",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='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",hc=["onClick"],fc={class:"grid-section__image"},gc=["src"],yc={class:"grid-section__label"},bc=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:uc,imgType:"svg",season:o.seasonSelected},{type:"playerOtherLeague",label:"Buscar jugador →",image:pc,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,c)=>(t.openBlock(),t.createElementBlock("div",{key:c,class:"grid-section__card",onClick:d=>n(p)},[t.createElementVNode("figure",fc,[p.image!==""?(t.openBlock(),t.createElementBlock("img",{key:0,src:p.image,alt:"",class:t.normalizeClass(p.imgType)},null,10,gc)):t.createCommentVNode("",!0)]),t.createElementVNode("p",yc,t.toDisplayString(p.label),1)],8,hc))),128))],2))}},[["__scopeId","data-v-b0f26065"]]);function $n(e,a){return function(){return e.apply(a,arguments)}}const{toString:wc}=Object.prototype,{getPrototypeOf:xo}=Object,Ot=(e=>a=>{const o=wc.call(a);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),ke=e=>(e=e.toLowerCase(),a=>Ot(a)===e),Vt=e=>a=>typeof a===e,{isArray:Ge}=Array,rt=Vt("undefined");function _c(e){return e!==null&&!rt(e)&&e.constructor!==null&&!rt(e.constructor)&&ce(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const An=ke("ArrayBuffer");function Sc(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&An(e.buffer),a}const kc=Vt("string"),ce=Vt("function"),zn=Vt("number"),$t=e=>e!==null&&typeof e=="object",Cc=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)},Bc=ke("Date"),Ec=ke("File"),Nc=ke("Blob"),xc=ke("FileList"),Tc=e=>$t(e)&&ce(e.pipe),Oc=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]"))},Vc=ke("URLSearchParams"),$c=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function it(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 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=>!rt(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):Ge(n)?a[r]=n.slice():a[r]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&it(arguments[n],o);return a}const Ac=(e,a,o,{allOwnKeys:n}={})=>(it(a,(i,r)=>{o&&ce(i)?e[r]=$n(i,o):e[r]=i},{allOwnKeys:n}),e),zc=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Rc=(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)},Ic=(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},Fc=(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},Pc=e=>{if(!e)return null;if(Ge(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},Lc=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&xo(Uint8Array)),Dc=(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])}},Mc=(e,a)=>{let o;const n=[];for(;(o=e.exec(a))!==null;)n.push(o);return n},jc=ke("HTMLFormElement"),vc=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),Wc=ke("RegExp"),Ln=(e,a)=>{const o=Object.getOwnPropertyDescriptors(e),n={};it(o,(i,r)=>{let s;(s=a(i,r,e))!==!1&&(n[r]=s||i)}),Object.defineProperties(e,n)},Uc=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+"'")})}})},Hc=(e,a)=>{const o={},n=i=>{i.forEach(r=>{o[r]=!0})};return Ge(e)?n(e):n(String(e).split(a)),o},Gc=()=>{},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},Jc=(e=16,a=Mn.ALPHA_DIGIT)=>{let o="";const{length:n}=a;for(;e--;)o+=a[Math.random()*n|0];return o};function Zc(e){return!!(e&&ce(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Xc=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=Ge(n)?[]:{};return it(n,(s,l)=>{const p=o(s,i+1);!rt(p)&&(r[l]=p)}),a[i]=void 0,r}}return n};return o(e,0)},Kc=ke("AsyncFunction"),Yc=e=>e&&($t(e)||ce(e))&&ce(e.then)&&ce(e.catch),_={isArray:Ge,isArrayBuffer:An,isBuffer:_c,isFormData:Oc,isArrayBufferView:Sc,isString:kc,isNumber:zn,isBoolean:Cc,isObject:$t,isPlainObject:At,isUndefined:rt,isDate:Bc,isFile:Ec,isBlob:Nc,isRegExp:Wc,isFunction:ce,isStream:Tc,isURLSearchParams:Vc,isTypedArray:Lc,isFileList:xc,forEach:it,merge:To,extend:Ac,trim:$c,stripBOM:zc,inherits:Rc,toFlatObject:Ic,kindOf:Ot,kindOfTest:ke,endsWith:Fc,toArray:Pc,forEachEntry:Dc,matchAll:Mc,isHTMLForm:jc,hasOwnProperty:Pn,hasOwnProp:Pn,reduceDescriptors:Ln,freezeMethods:Uc,toObjectSet:Hc,toCamelCase:vc,noop:Gc,toFiniteNumber:qc,findKey:Rn,global:In,isContextDefined:Fn,ALPHABET:Mn,generateString:Jc,isSpecCompliantForm:Zc,toJSONObject:Xc,isAsyncFn:Kc,isThenable:Yc};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)}_.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:_.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const jn=L.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(L,vn),Object.defineProperty(jn,"isAxiosError",{value:!0}),L.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"),L.call(s,e.message,a,o,n,i),s.cause=e,s.name=e.name,r&&Object.assign(s,r),s};const Qc=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 ed(e){return _.isArray(e)&&!e.some(Vo)}const td=_.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,h){return!_.isUndefined(h[f])});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(f){if(f===null)return"";if(_.isDate(f))return f.toISOString();if(!l&&_.isBlob(f))throw new L("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 c(f,h,g){let y=f;if(f&&!g&&typeof f=="object"){if(_.endsWith(h,"{}"))h=n?h:h.slice(0,-2),f=JSON.stringify(f);else if(_.isArray(f)&&ed(f)||(_.isFileList(f)||_.endsWith(h,"[]"))&&(y=_.toArray(f)))return h=Wn(h),y.forEach(function(C,O){!(_.isUndefined(C)||C===null)&&a.append(s===!0?Un([h],O,r):s===null?h:h+"[]",p(C))}),!1}return Vo(f)?!0:(a.append(Un(g,h,r),p(f)),!1)}const d=[],u=Object.assign(td,{defaultVisitor:c,convertValue:p,isVisitable:Vo});function m(f,h){if(!_.isUndefined(f)){if(d.indexOf(f)!==-1)throw Error("Circular reference detected in "+h.join("."));d.push(f),_.forEach(f,function(g,y){(!(_.isUndefined(g)||g===null)&&i.call(a,g,_.isString(y)?y.trim():y,h,u))===!0&&m(g,h?h.concat(y):[y])}),d.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 od(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function qn(e,a,o){if(!a)return e;const n=o&&o.encode||od,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 ad{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 Jn=ad,Zn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},nd=typeof URLSearchParams<"u"?URLSearchParams:$o,rd=typeof FormData<"u"?FormData:null,id=typeof Blob<"u"?Blob:null,sd={isBrowser:!0,classes:{URLSearchParams:nd,FormData:rd,Blob:id},protocols:["http","https","file","blob","url","data"]},Xn=typeof window<"u"&&typeof document<"u",ld=(e=>Xn&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),cd=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",dd=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Xn,hasStandardBrowserEnv:ld,hasStandardBrowserWebWorkerEnv:cd},Symbol.toStringTag,{value:"Module"})),Ce={...dd,...sd};function md(e,a){return zt(e,new Ce.classes.URLSearchParams,Object.assign({visitor:function(o,n,i,r){return Ce.isNode&&_.isBuffer(o)?(this.append(n,o.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},a))}function pd(e){return _.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function ud(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]=ud(i[s])),!l)}if(_.isFormData(e)&&_.isFunction(e.entries)){const o={};return _.forEachEntry(e,(n,i)=>{a(pd(n),i,o,0)}),o}return null}function hd(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 md(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),hd(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"?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:Ce.classes.FormData,Blob:Ce.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,fd=_.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"]),gd=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[Yn]=this[Yn]={accessors:{}}).accessors,n=this.prototype;function i(r){const s=
|
|
5
|
+
`):" "+_n(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:bo};function wo(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new nt(null,e)}function kn(e){return wo(e),e.headers=ze.from(e.headers),e.data=yo.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Sn.getAdapter(e.adapter||fo.adapter)(e).then(function(n){return wo(e),n.data=yo.call(e,e.transformResponse,n),n.headers=ze.from(n.headers),n},function(n){return yn(n)||(wo(e),n&&n.response&&(n.response.data=yo.call(e,e.transformResponse,n.response),n.response.headers=ze.from(n.response.headers))),Promise.reject(n)})}const Cn=e=>e instanceof ze?e.toJSON():e;function Ge(e,a){a=a||{};const o={};function n(d,c,h){return w.isPlainObject(d)&&w.isPlainObject(c)?w.merge.call({caseless:h},d,c):w.isPlainObject(c)?w.merge({},c):w.isArray(c)?c.slice():c}function i(d,c,h){if(w.isUndefined(c)){if(!w.isUndefined(d))return n(void 0,d,h)}else return n(d,c,h)}function r(d,c){if(!w.isUndefined(c))return n(void 0,c)}function s(d,c){if(w.isUndefined(c)){if(!w.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(Cn(d),Cn(c),!0)};return w.forEach(Object.keys(Object.assign({},e,a)),function(c){const h=p[c]||i,m=h(e[c],a[c],c);w.isUndefined(m)&&h!==l||(o[c]=m)}),o}const Bn="1.6.7",_o={};["object","boolean","number","function","string","symbol"].forEach((e,a)=>{_o[e]=function(n){return typeof n===e||"a"+(a<1?"n ":" ")+e}});const En={};_o.transitional=function(a,o,n){function i(r,s){return"[Axios v"+Bn+"] 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&&!En[s]&&(En[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 Fl(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 So={assertOptions:Fl,validators:_o},Pe=So.validators;class Nt{constructor(a){this.defaults=a,this.interceptors={request:new pn,response:new pn}}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=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]&&gd[o])&&(o==="set-cookie"?a[o]?a[o].push(n):a[o]=[n]:a[o]=a[o]?a[o]+", "+n:n)}),a},Yn=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 bd(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 wd=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ro(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 _d(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,o,n)=>o.toUpperCase()+n)}function Sd(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,d){const c=lt(p);if(!c)throw new Error("header name must be a non-empty string");const h=_.findKey(i,c);(!h||i[h]===void 0||d===!0||d===void 0&&i[h]!==!1)&&(i[h||p]=Rt(l))}const s=(l,p)=>_.forEach(l,(d,c)=>r(d,c,p));return _.isPlainObject(a)||a instanceof this.constructor?s(a,o):_.isString(a)&&(a=a.trim())&&!wd(a)?s(yd(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 bd(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||Ro(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||Ro(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||Ro(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?_d(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[Yn]=this[Yn]={accessors:{}}).accessors,n=this.prototype;function i(r){const s=lt(r);o[s]||(Sd(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 Io(e,a){const o=this||zo,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 Qn(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 kd(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 Cd=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 Bd(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Ed(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function er(e,a){return e&&!Bd(a)?Ed(e,a):a}const Nd=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 xd(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function Td(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(),d=n[r];s||(s=p),o[i]=l,n[i]=p;let c=r,h=0;for(;c!==i;)h+=o[c++],c=c%e;if(i=(i+1)%e,i===r&&(r=(r+1)%e),p-s<a)return;const m=d&&p-d;return m?Math.round(h*1e3/m):void 0}}function tr(e,a){let o=0;const n=Td(50,250);return i=>{const r=i.loaded,s=i.lengthComputable?i.total:void 0,l=r-o,p=n(l),d=r<=s;o=r;const c={loaded:r,total:s,progress:s?r/s:void 0,bytes:l,rate:p||void 0,estimated:p&&s&&d?(s-r)/p:void 0,event:i};c[a?"download":"upload"]=!0,e(c)}}const Od=typeof XMLHttpRequest<"u",Vd=Od&&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 d;if(_.isFormData(n)){if(Ee.hasStandardBrowserEnv||Ee.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((d=i.getContentType())!==!1){const[u,...g]=d?d.split(";").map(y=>y.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...g].join("; "))}}let c=new XMLHttpRequest;if(e.auth){const u=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(u+":"+g))}const h=er(e.baseURL,e.url);c.open(e.method.toUpperCase(),Jn(h,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function m(){if(!c)return;const u=Re.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),g={data:!r||r==="text"||r==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:u,config:e,request:c};kd(function(y){a(y),p()},function(y){o(y),p()},g),c=null}if("onloadend"in c?c.onloadend=m:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(m)},c.onabort=function(){c&&(o(new F("Request aborted",F.ECONNABORTED,e,c)),c=null)},c.onerror=function(){o(new F("Network Error",F.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let u=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const g=e.transitional||Zn;e.timeoutErrorMessage&&(u=e.timeoutErrorMessage),o(new F(u,g.clarifyTimeoutError?F.ETIMEDOUT:F.ECONNABORTED,e,c)),c=null},Ee.hasStandardBrowserEnv&&(s&&_.isFunction(s)&&(s=s(e)),s||s!==!1&&Nd(h))){const u=e.xsrfHeaderName&&e.xsrfCookieName&&Cd.read(e.xsrfCookieName);u&&i.set(e.xsrfHeaderName,u)}n===void 0&&i.setContentType(null),"setRequestHeader"in c&&_.forEach(i.toJSON(),function(u,g){c.setRequestHeader(g,u)}),_.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),r&&r!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",tr(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",tr(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=u=>{c&&(o(!u||u.type?new ct(null,e,c):u),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const f=xd(h);if(f&&Ee.protocols.indexOf(f)===-1){o(new F("Unsupported protocol "+f+":",F.ERR_BAD_REQUEST,e));return}c.send(n||null)})},Fo={http:ed,xhr:Vd};_.forEach(Fo,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const or=e=>`- ${e}`,$d=e=>_.isFunction(e)||e===null||e===!1,ar={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,!$d(o)&&(n=Fo[(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
9
|
`+r.map(or).join(`
|
|
10
|
-
`):" "+or(r[0]):"as no adapter specified";throw new
|
|
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:ze.transitional(ze.boolean),forcedJSONParsing:ze.transitional(ze.boolean),clarifyTimeoutError:ze.transitional(ze.boolean)},!1),i!=null&&(_.isFunction(i)?o.paramsSerializer={serialize:i}:Do.assertOptions(i,{encode:ze.function,serialize:ze.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=Oe.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 d,u=0,m;if(!p){const h=[nr.bind(this),void 0];for(h.unshift.apply(h,l),h.push.apply(h,c),m=h.length,d=Promise.resolve(o);u<m;)d=d.then(h[u++],h[u++]);return d}m=l.length;let f=o;for(u=0;u<m;){const h=l[u++],g=l[u++];try{f=h(f)}catch(y){g.call(this,y);break}}try{d=nr.call(this,f)}catch(h){return Promise.reject(h)}for(u=0,m=c.length;u<m;)d=d.then(c[u++],c[u++]);return d}getUri(a){a=qe(this.defaults,a);const o=er(a.baseURL,a.url);return qn(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,Ad=class Os{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 lt(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 Os(function(o){a=o}),cancel:a}}};function zd(e){return function(a){return e.apply(null,a)}}function Rd(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 Id=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 H=lr(zo);H.Axios=Pt,H.CanceledError=lt,H.CancelToken=Ad,H.isCancel=Qn,H.VERSION=ir,H.toFormData=zt,H.AxiosError=L,H.Cancel=H.CanceledError,H.all=function(e){return Promise.all(e)},H.spread=zd,H.isAxiosError=Rd,H.mergeConfig=qe,H.AxiosHeaders=Oe,H.formToJSON=e=>Kn(_.isHTMLForm(e)?new FormData(e):e),H.getAdapter=ar.getAdapter,H.HttpStatusCode=Id,H.default=H;const cr=H,Fd=(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 Pd=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),Ld=["src"],Dd={key:1,class:"text"},Md=["src"],jd={class:"stats"},vd=Pd(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),Wd={class:"numstats"},Ud={class:"leyend"};function Hd(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,Ld)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",Dd,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,Md)):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",jd,[vd,t.createElementVNode("div",Wd,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",Ud,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const Gd=Fd(jo,[["render",Hd],["__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:Gd},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 Jd={id:"panelteams",class:"gsc-filterperteam__panel-teams",ref:"panel"},Zd={class:"gsc-filterperteam__panel-teams__cont-teams"},Xd=["onClick"],Kd=["src","alt","title"];function Yd(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",Jd,[t.createElementVNode("div",Zd,[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,Kd)],14,Xd))),128))])],512)],4)}const Qd=qd(vo,[["render",Yd],["__scopeId","data-v-ab79352d"]]),em=(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 tm=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),om=["src"],am={key:1,class:"text"},nm=["src"],rm={class:"stats"},im=tm(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),sm={class:"numstats"},lm={class:"leyend"};function cm(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,om)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",am,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,nm)):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",rm,[im,t.createElementVNode("div",sm,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",lm,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const dm=em(Wo,[["render",cm],["__scopeId","data-v-fb269a1e"]]);function mm(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 pm=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},um={components:{GSCButton:dm},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}=mm(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),hm={class:"trRow",style:{width:"100%",margin:"0 auto"}},fm=Uo(()=>t.createElementVNode("div",{class:"head__itemhead"},"Pos.",-1)),gm={key:0,class:"head__itemhead"},ym=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),bm={key:1,class:"head__itemhead fontP"},wm={key:1,class:"movilTextLastGame"},_m=Uo(()=>t.createElementVNode("br",null,null,-1)),Sm=Uo(()=>t.createElementVNode("div",{class:"head__itemhead fontP"},"Prox",-1)),km=["alt","title","src"],Cm={class:"hover-decorationTeam"},Bm={class:"hover-decorationTeam"},Em={key:0,class:"tdrow__itemtd"},Nm={class:"tdrow__itemtd fontM"},xm={key:1,class:"tdrow__itemtd itemtd-games"},Tm={key:1},Om=["src"];function Vm(e,a,o,n,i,r){const s=t.resolveComponent("GSCButton");return t.openBlock(),t.createElementBlock("div",hm,[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"]])},[fm,t.createElementVNode("div",{class:t.normalizeClass(["head__itemhead",n.elementSize.width>600?"leftText":"centerText"])},"Equipo",2),o.isVideos?(t.openBlock(),t.createElementBlock("div",gm," ")):t.createCommentVNode("",!0),ym,o.isGames?(t.openBlock(),t.createElementBlock("div",bm,[n.elementSize.width>580?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Últimos juegos")],64)):(t.openBlock(),t.createElementBlock("span",wm,[t.createTextVNode("Últimos "),_m,t.createTextVNode("juegos")]))])):t.createCommentVNode("",!0),Sm],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,km),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",Cm,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",Bm,t.toDisplayString(o.data.team_short_name),1)],2))],2),o.isVideos?(t.openBlock(),t.createElementBlock("div",Em,[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",Nm,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",xm,[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",Tm,"-"))])):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,Om))],2)],6)])}const $m=pm(um,[["render",Vm],["__scopeId","data-v-333b2aca"]]),Am=(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 zm=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),Rm=["src"],Im={key:1,class:"text"},Fm=["src"],Pm={class:"stats"},Lm=zm(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),Dm={class:"numstats"},Mm={class:"leyend"};function jm(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,Rm)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",Im,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,Fm)):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",Pm,[Lm,t.createElementVNode("div",Dm,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",Mm,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const vm=Am(Ho,[["render",jm],["__scopeId","data-v-fb269a1e"]]),Wm={class:"gsc-dropdown__main-container__item-selected"},Um=["height","width"],Hm=["stroke"],Gm={class:"gsc-dropdown__items-container"},qm=["onClick"],Jm={key:0,class:"gsc-dropdown__items-footer"},Zm={__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,h)=>{if(!o.modelValue&&(!o.onlyFirstTime||!h||!h.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 h=o.items.findIndex(g=>typeof f=="object"?JSON.stringify(g)===JSON.stringify(f):g===f);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 d(f){i.value&&!i.value.contains(f.target)&&(s.value=!1)}function u(f,h){o.isMultipleOption?r.value=-1:(r.value=h,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",d)}),t.onBeforeMount(()=>{document.removeEventListener("click",d)}),(f,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",Wm,[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,Hm)],8,Um))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",Gm,[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=>u(g,y)},[t.renderSlot(f.$slots,"availableItem",{item:g})],10,qm))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",Jm,[t.createVNode(t.unref(vm),{"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))}};/**
|
|
10
|
+
`):" "+or(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:Fo};function Po(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ct(null,e)}function nr(e){return Po(e),e.headers=Re.from(e.headers),e.data=Io.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ar.getAdapter(e.adapter||zo.adapter)(e).then(function(a){return Po(e),a.data=Io.call(e,e.transformResponse,a),a.headers=Re.from(a.headers),a},function(a){return Qn(a)||(Po(e),a&&a.response&&(a.response.data=Io.call(e,e.transformResponse,a.response),a.response.headers=Re.from(a.response.headers))),Promise.reject(a)})}const rr=e=>e instanceof Re?e.toJSON():e;function qe(e,a){a=a||{};const o={};function n(d,c,h){return _.isPlainObject(d)&&_.isPlainObject(c)?_.merge.call({caseless:h},d,c):_.isPlainObject(c)?_.merge({},c):_.isArray(c)?c.slice():c}function i(d,c,h){if(_.isUndefined(c)){if(!_.isUndefined(d))return n(void 0,d,h)}else return n(d,c,h)}function r(d,c){if(!_.isUndefined(c))return n(void 0,c)}function s(d,c){if(_.isUndefined(c)){if(!_.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(rr(d),rr(c),!0)};return _.forEach(Object.keys(Object.assign({},e,a)),function(d){const c=p[d]||i,h=c(e[d],a[d],d);_.isUndefined(h)&&c!==l||(o[d]=h)}),o}const ir="1.6.7",Lo={};["object","boolean","number","function","string","symbol"].forEach((e,a)=>{Lo[e]=function(o){return typeof o===e||"a"+(a<1?"n ":" ")+e}});const sr={};Lo.transitional=function(e,a,o){function n(i,r){return"[Axios v"+ir+"] 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&&!sr[r]&&(sr[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 Ad(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 Do={assertOptions:Ad,validators:Lo},Le=Do.validators;let Ft=class{constructor(a){this.defaults=a,this.interceptors={request:new qn,response:new qn}}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=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))}};/**
|
|
12
12
|
* Vue 3 Carousel 0.3.1
|
|
13
13
|
* (c) 2023
|
|
14
14
|
* @license MIT
|
|
15
|
-
*/const K={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:K.itemsToShow,type:Number},itemsToScroll:{default:K.itemsToScroll,type:Number},wrapAround:{default:K.wrapAround,type:Boolean},throttle:{default:K.throttle,type:Number},snapAlign:{default:K.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:K.transition,type:Number},breakpoints:{default:K.breakpoints,type:Object},autoplay:{default:K.autoplay,type:Number},pauseAutoplayOnHover:{default:K.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:K.mouseDrag,type:Boolean},touchDrag:{default:K.touchDrag,type:Boolean},dir:{default:K.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:K.i18n,type:Object},settings:{default(){return{}},type:Object}};function Xm({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 Km({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 Ym({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 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 Qm(e,a){let o;return a?function(...n){const i=this;o||(e.apply(i,n),o=!0,setTimeout(()=>o=!1,a))}:e}function ep(e,a){let o;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{e(...n),o=null},a)}}function tp(e="",a={}){return Object.entries(a).reduce((o,[n,i])=>o.replace(`{${n}}`,String(i)),e)}var op=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},K))),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"},tp(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:o.value}))}}),ap=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),c=t.reactive(Object.assign({},K));let d=Object.assign({},K),u;const m=t.ref((i=e.modelValue)!==null&&i!==void 0?i:0),f=t.ref(0),h=t.ref(0),g=t.ref(0),y=t.ref(0);let C,O;t.provide("config",c),t.provide("slidesCount",p),t.provide("currentSlide",m),t.provide("maxSlide",g),t.provide("minSlide",y),t.provide("slideWidth",l);function W(){u=Object.assign({},e.breakpoints),d=Object.assign(Object.assign(Object.assign({},d),e),{i18n:Object.assign(Object.assign({},d.i18n),e.i18n),breakpoints:void 0}),he(d)}function X(){if(!u||!Object.keys(u).length)return;const b=Object.keys(u).map(B=>Number(B)).sort((B,j)=>+j-+B);let N=Object.assign({},d);b.some(B=>{const j=window.matchMedia(`(min-width: ${B}px)`).matches;return j&&(N=Object.assign(Object.assign({},N),u[B])),j}),he(N)}function he(b){Object.entries(b).forEach(([N,B])=>c[N]=B)}const fe=ep(()=>{X(),J()},16);function J(){if(!r.value)return;const b=r.value.getBoundingClientRect();l.value=b.width/c.itemsToShow}function ne(){p.value<=0||(h.value=Math.ceil((p.value-1)/2),g.value=Xm({config:c,slidesCount:p.value}),y.value=Km({config:c,slidesCount:p.value}),c.wrapAround||(m.value=Go({val:m.value,max:g.value,min:y.value})))}t.onMounted(()=>{t.nextTick(()=>J()),setTimeout(()=>J(),1e3),X(),R(),window.addEventListener("resize",fe,{passive:!0}),o("init")}),t.onUnmounted(()=>{O&&clearTimeout(O),C&&clearInterval(C),window.removeEventListener("resize",fe,{passive:!0})});let A=!1;const te={x:0,y:0},oe={x:0,y:0},v=t.reactive({x:0,y:0}),ae=t.ref(!1),se=t.ref(!1),V=()=>{ae.value=!0},x=()=>{ae.value=!1};function T(b){["INPUT","TEXTAREA","SELECT"].includes(b.target.tagName)||(A=b.type==="touchstart",A||b.preventDefault(),!(!A&&b.button!==0||z.value)&&(te.x=A?b.touches[0].clientX:b.clientX,te.y=A?b.touches[0].clientY:b.clientY,document.addEventListener(A?"touchmove":"mousemove",$,!0),document.addEventListener(A?"touchend":"mouseup",E,!0)))}const $=Qm(b=>{se.value=!0,oe.x=A?b.touches[0].clientX:b.clientX,oe.y=A?b.touches[0].clientY:b.clientY;const N=oe.x-te.x,B=oe.y-te.y;v.y=B,v.x=N},c.throttle);function E(){const b=c.dir==="rtl"?-1:1,N=Math.sign(v.x)*.4,B=Math.round(v.x/l.value+N)*b;if(B&&!A){const j=ge=>{ge.stopPropagation(),window.removeEventListener("click",j,!0)};window.addEventListener("click",j,!0)}F(m.value-B),v.x=0,v.y=0,se.value=!1,document.removeEventListener(A?"touchmove":"mousemove",$,!0),document.removeEventListener(A?"touchend":"mouseup",E,!0)}function R(){!c.autoplay||c.autoplay<=0||(C=setInterval(()=>{c.pauseAutoplayOnHover&&ae.value||Q()},c.autoplay))}function I(){C&&(clearInterval(C),C=null),R()}const z=t.ref(!1);function F(b){const N=c.wrapAround?b:Go({val:b,max:g.value,min:y.value});m.value===N||z.value||(o("slide-start",{slidingToIndex:b,currentSlideIndex:m.value,prevSlideIndex:f.value,slidesCount:p.value}),z.value=!0,f.value=m.value,m.value=N,O=setTimeout(()=>{if(c.wrapAround){const B=qo({val:N,max:g.value,min:0});B!==m.value&&(m.value=B,o("loop",{currentSlideIndex:m.value,slidingToIndex:b}))}o("update:modelValue",m.value),o("slide-end",{currentSlideIndex:m.value,prevSlideIndex:f.value,slidesCount:p.value}),z.value=!1,I()},c.transition))}function Q(){F(m.value+c.itemsToScroll)}function re(){F(m.value-c.itemsToScroll)}const Fe={slideTo:F,next:Q,prev:re};t.provide("nav",Fe),t.provide("isSliding",z);const Pe=t.computed(()=>Ym({config:c,currentSlide:m.value,slidesCount:p.value}));t.provide("slidesToScroll",Pe);const bt=t.computed(()=>{const b=c.dir==="rtl"?-1:1,N=Pe.value*l.value*b;return{transform:`translateX(${v.x-N}px)`,transition:`${z.value?c.transition:0}ms`,margin:c.wrapAround?`0 -${p.value*l.value}px`:"",width:"100%"}});function Le(){W(),X(),ne(),J(),I()}Object.keys(br).forEach(b=>{["modelValue"].includes(b)||t.watch(()=>e[b],Le)}),t.watch(()=>e.modelValue,b=>{b!==m.value&&F(Number(b))}),t.watch(p,ne),o("before-init"),W();const De={config:c,slidesCount:p,slideWidth:l,next:Q,prev:re,slideTo:F,currentSlide:m,maxSlide:g,minSlide:y,middleSlide:h};n({updateBreakpointsConfigs:X,updateSlidesData:ne,updateSlideWidth:J,initDefaultConfigs:W,restartCarousel:Le,slideTo:F,next:Q,prev:re,nav:Fe,data:De});const Me=a.default||a.slides,je=a.addons,ve=t.reactive(De);return()=>{const b=wr(Me==null?void 0:Me(ve)),N=(je==null?void 0:je(ve))||[];b.forEach((ye,be)=>ye.props.index=be);let B=b;if(c.wrapAround){const ye=b.map((we,ee)=>t.cloneVNode(we,{index:-b.length+ee,isClone:!0,key:`clone-before-${ee}`})),be=b.map((we,ee)=>t.cloneVNode(we,{index:b.length+ee,isClone:!0,key:`clone-after-${ee}`}));B=[...ye,...b,...be]}s.value=b,p.value=Math.max(b.length,1);const j=t.h("ol",{class:"carousel__track",style:bt.value,onMousedownCapture:c.mouseDrag?T:null,onTouchstartPassiveCapture:c.touchDrag?T:null},B),ge=t.h("div",{class:"carousel__viewport"},j);return t.h("section",{ref:r,class:{carousel:!0,"is-sliding":z.value,"is-dragging":se.value,"is-hover":ae.value,"carousel--rtl":c.dir==="rtl"},dir:c.dir,"aria-label":c.i18n.ariaGallery,tabindex:"0",onMouseenter:V,onMouseleave:x},[ge,N,t.h(op)])}}}),_r;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(_r||(_r={}));var np=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({},K))),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 d=Math.floor(i.value),u=Math.ceil(i.value+o.itemsToShow-1);return e.index>=d&&e.index<=u};return()=>{var d;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()},(d=a.default)===null||d===void 0?void 0:d.call(a))}}});const rp=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},ip=e=>(t.pushScopeId("data-v-dd3cbf69"),e=e(),t.popScopeId(),e),sp={class:"gsc-carousel"},lp={key:0},cp=ip(()=>t.createElementVNode("div",null,"no hay",-1)),dp=[cp],mp={class:"gsc-carousel__2d__slides"},pp={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},up=["fill"],hp={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},fp=["fill"],gp={class:"gsc-carousel__2d__navigation"},yp={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},bp=["stroke"],wp={key:1,class:"gsc-carousel__2d__navigation__pagination"},_p=["onClick"],Sp={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},kp=["stroke"],Cp={__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 c(){i.value&&i.value.next()}function d(){i.value&&i.value.prev()}function u(){i.value&&i.value.updateSlideWidth()}function m(g){i.value&&i.value.slideTo(g)}function f(g){i.value.slideTo(g)}function h(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:d,next:c,updateSlideWidth:u,slideTo:m}),(g,y)=>(t.openBlock(),t.createElementBlock("div",sp,[n.is3d?(t.openBlock(),t.createElementBlock("div",lp,dp)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",mp,[t.createVNode(t.unref(ap),{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,O)=>(t.openBlock(),t.createBlock(t.unref(np),{key:O},{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",pp,[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,up)]))],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",hp,[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,fp)]))],2)])):t.createCommentVNode("",!0),t.createElementVNode("div",gp,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:y[2]||(y[2]=C=>d())},[(t.openBlock(),t.createElementBlock("svg",yp,[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,bp)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",wp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(C,O)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${O}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${n.navigationHeight}px`,width:`${s.value===O?n.navigationActiveWidth:n.navigationActiveWidth/2}px`,borderRadius:`${n.navigationBorderRadius}px`,backgroundColor:`${s.value===O?n.navigationActiveColor:n.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:W=>f(O)},null,12,_p))),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",Sp,[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,kp)]))])):t.createCommentVNode("",!0)])],2))]))}},Bp=rp(Cp,[["__scopeId","data-v-dd3cbf69"]]),Ep=(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))}}},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=Jo.setup;Jo.setup=kr?(e,a)=>(Sr(),kr(e,a)):Sr;const Np=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),xp=["src"],Tp={key:1,class:"text"},Op=["src"],Vp={class:"stats"},$p=Np(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),Ap={class:"numstats"},zp={class:"leyend"};function Rp(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,xp)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",Tp,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,Op)):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",Vp,[$p,t.createElementVNode("div",Ap,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",zp,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const Ip=Ep(Jo,[["render",Rp],["__scopeId","data-v-fb269a1e"]]),Fp={class:"gsc-dropdown__main-container__item-selected"},Pp=["height","width"],Lp=["stroke"],Dp={class:"gsc-dropdown__items-container"},Mp=["onClick"],jp={key:0,class:"gsc-dropdown__items-footer"},vp={__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,h)=>{if(!o.modelValue&&(!o.onlyFirstTime||!h||!h.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 h=o.items.findIndex(g=>typeof f=="object"?JSON.stringify(g)===JSON.stringify(f):g===f);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 d(f){i.value&&!i.value.contains(f.target)&&(s.value=!1)}function u(f,h){o.isMultipleOption?r.value=-1:(r.value=h,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",d)}),t.onBeforeMount(()=>{document.removeEventListener("click",d)}),(f,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",Fp,[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,Lp)],8,Pp))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",Dp,[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=>u(g,y)},[t.renderSlot(f.$slots,"availableItem",{item:g})],10,Mp))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",jp,[t.createVNode(t.unref(Ip),{"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))}},Wp=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},Up={class:"tournament-select__selected-tournament"},Hp={class:"tournament-select__selected-tournament__logo"},Gp=["src"],qp={class:"tournament-select__selected-tournament__name"},Jp={__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(m=>({...m.tournament,seasons:m.seasons,seasonsIds:m.seasons.reduce((f,h)=>(f.add(h.id),f),new Set)})).sort((m,f)=>m.order-f.order)}}catch(u){throw new Error(u)}}function l(u){const m=new XMLHttpRequest,f=`${o.logosUrl}${u}.${o.logoFileType}`;return m.open("HEAD",f,!1),m.send(),m.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 d(u){a("input",u)}return t.onMounted(()=>{s()}),(u,m)=>(t.openBlock(),t.createElementBlock("div",{class:"tournament-select",style:t.normalizeStyle(i.value)},[t.createVNode(t.unref(vp),t.mergeProps(o,{"model-value":r.value,items:n.value,onInput:c,"onUpdate:modelValue":d}),{default:t.withCtx(({selectedItem:f})=>[t.createElementVNode("div",Up,[t.createElementVNode("div",Hp,[l(f.id)?(t.openBlock(),t.createElementBlock("img",{key:0,src:`${o.logosUrl}${f.id}.${o.logoFileType}`,alt:""},null,8,Gp)):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))}},Zp=Wp(Jp,[["__scopeId","data-v-355af272"]]),Xp=(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 Kp=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),Yp=["src"],Qp={key:1,class:"text"},eu=["src"],tu={class:"stats"},ou=Kp(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),au={class:"numstats"},nu={class:"leyend"};function ru(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,Yp)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",Qp,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,eu)):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",tu,[ou,t.createElementVNode("div",au,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",nu,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const iu=Xp(Zo,[["render",ru],["__scopeId","data-v-fb269a1e"]]),su={class:"gsc-dropdown__main-container__item-selected"},lu=["height","width"],cu=["stroke"],du={class:"gsc-dropdown__items-container"},mu=["onClick"],pu={key:0,class:"gsc-dropdown__items-footer"},uu={__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,h)=>{if(!o.modelValue&&(!o.onlyFirstTime||!h||!h.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 h=o.items.findIndex(g=>typeof f=="object"?JSON.stringify(g)===JSON.stringify(f):g===f);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 d(f){i.value&&!i.value.contains(f.target)&&(s.value=!1)}function u(f,h){o.isMultipleOption?r.value=-1:(r.value=h,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",d)}),t.onBeforeMount(()=>{document.removeEventListener("click",d)}),(f,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",su,[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,cu)],8,lu))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",du,[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=>u(g,y)},[t.renderSlot(f.$slots,"availableItem",{item:g})],10,mu))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",pu,[t.createVNode(t.unref(iu),{"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))}},hu=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},fu={class:"season-name"},gu={class:"items-list-season"},yu={__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(uu),{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",fu,[t.createElementVNode("span",null,t.toDisplayString(p.name),1)])]),availableItem:t.withCtx(({item:p})=>[t.createElementVNode("span",gu,t.toDisplayString(p.name),1)]),_:1},8,["items","model-value"]))}},bu=hu(yu,[["__scopeId","data-v-3a11087d"]]);function wu(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},Su={components:{GSCFilterperteam:Qd,GSCTableperteam:$m,GSCDropdown:Zm,GSCCarousel:Bp,GSCTournamentSelect:Zp,GSCSeasonSelect:bu},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}=wu(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}}},ku=e=>(t.pushScopeId("data-v-871f6068"),e=e(),t.popScopeId(),e),Cu={class:"gsc-generaltable__container"},Bu=ku(()=>t.createElementVNode("div",{class:"gsc-generaltable__row-sep"},[t.createElementVNode("div",{class:"gsc-generaltable__row-sep__line"})],-1)),Eu={key:1,class:"carousel-table-landing"},Nu={class:"row-table-carrousel"};function xu(e,a,o,n,i,r){const s=t.resolveComponent("GSCTournamentSelect"),l=t.resolveComponent("GSCSeasonSelect"),p=t.resolveComponent("GSCFilterperteam"),c=t.resolveComponent("GSCTableperteam"),d=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",Cu,[t.createVNode(p,{data:i.teams,"background-color":"none","contain-border-radius":"8px",onClickTeam:r.clickTeam,onClickAll:r.clickAll},null,8,["data","onClickTeam","onClickAll"]),Bu,i.tableData?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(i.tableData,(u,m)=>(t.openBlock(),t.createBlock(c,{key:m,onOpenmedia:r.setOpenMedia,onOpenTableProfile:r.openTableProfile,isheader:m==0,"background-color":i.teamselect!=0&&i.teamselect==u.team_id?"rgba(30, 60, 81, 0.5)":m%2===0?"#172531":"#0d1d29",data:u},null,8,["onOpenmedia","onOpenTableProfile","isheader","background-color","data"]))),128)):t.createCommentVNode("",!0)])],64)):(t.openBlock(),t.createElementBlock("div",Eu,[t.createVNode(d,{isPaginationVisible:o.isPaginationVisible,items:i.pagesteams},{default:t.withCtx(({item:u})=>[t.createElementVNode("div",Nu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u,(m,f)=>(t.openBlock(),t.createBlock(c,{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 Tu=_u(Su,[["render",xu],["__scopeId","data-v-871f6068"]]);function Ou(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 Vu=(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 $u={ref:"gscScrollableContainer",class:"scrollable-container"},Au={class:"scrollable-arrows"},zu=["width","height","viewBox"],Ru=["stroke"],Iu={class:"scrollable-wrapper"},Fu={class:"scrollable-arrows"},Pu=["width","height","viewBox"],Lu=["stroke"];function Du(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",$u,[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",Au,[(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,Ru)],8,zu))])],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",Iu,[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",Fu,[(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,Lu)],8,Pu))])],2)):t.createCommentVNode("",!0)],512)}const Mu=Vu(Xo,[["render",Du],["__scopeId","data-v-b548a08d"]]),ju=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},Ko={components:{GSCSlider:Mu},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}=Ou(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 vu={ref:"myDivRef"},Wu={key:0,class:"gs-switch-container"},Uu=["onClick"],Hu={key:1,class:"gs-switch-container-type"},Gu=["onClick"],qu={key:2,class:"gs-switch-container-carousel"},Ju=["onClick"];function Zu(e,a,o,n,i,r){const s=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",vu,[o.type==0?(t.openBlock(),t.createElementBlock("div",Wu,[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,Uu))),128))],4),t.renderSlot(e.$slots,o.selectedOption,{},void 0,!0)])):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",Hu,[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,Gu))),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:c=>(o.selectedOption=l,r.clickEmitEvent(l))},t.toDisplayString(l),13,Ju))),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=ju(Ko,[["render",Zu],["__scopeId","data-v-8a86dfaf"]]);function Or(e,a){return function(){return e.apply(a,arguments)}}const{toString:Xu}=Object.prototype,{getPrototypeOf:Qo}=Object,Lt=(e=>a=>{const o=Xu.call(a);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),Be=e=>(e=e.toLowerCase(),a=>Lt(a)===e),Dt=e=>a=>typeof a===e,{isArray:Je}=Array,ct=Dt("undefined");function Ku(e){return e!==null&&!ct(e)&&e.constructor!==null&&!ct(e.constructor)&&de(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Vr=Be("ArrayBuffer");function Yu(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&Vr(e.buffer),a}const Qu=Dt("string"),de=Dt("function"),$r=Dt("number"),Mt=e=>e!==null&&typeof e=="object",eh=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)},th=Be("Date"),oh=Be("File"),ah=Be("Blob"),nh=Be("FileList"),rh=e=>Mt(e)&&de(e.pipe),ih=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]"))},sh=Be("URLSearchParams"),lh=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function dt(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 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=>!ct(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):Je(n)?a[r]=n.slice():a[r]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&dt(arguments[n],o);return a}const ch=(e,a,o,{allOwnKeys:n}={})=>(dt(a,(i,r)=>{o&&de(i)?e[r]=Or(i,o):e[r]=i},{allOwnKeys:n}),e),dh=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),mh=(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)},ph=(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},uh=(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},hh=e=>{if(!e)return null;if(Je(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},fh=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&Qo(Uint8Array)),gh=(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])}},yh=(e,a)=>{let o;const n=[];for(;(o=e.exec(a))!==null;)n.push(o);return n},bh=Be("HTMLFormElement"),wh=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),_h=Be("RegExp"),Fr=(e,a)=>{const o=Object.getOwnPropertyDescriptors(e),n={};dt(o,(i,r)=>{let s;(s=a(i,r,e))!==!1&&(n[r]=s||i)}),Object.defineProperties(e,n)},Sh=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+"'")})}})},kh=(e,a)=>{const o={},n=i=>{i.forEach(r=>{o[r]=!0})};return Je(e)?n(e):n(String(e).split(a)),o},Ch=()=>{},Bh=(e,a)=>(e=+e,Number.isFinite(e)?e:a),ta="abcdefghijklmnopqrstuvwxyz",Pr="0123456789",Lr={DIGIT:Pr,ALPHA:ta,ALPHA_DIGIT:ta+ta.toUpperCase()+Pr},Eh=(e=16,a=Lr.ALPHA_DIGIT)=>{let o="";const{length:n}=a;for(;e--;)o+=a[Math.random()*n|0];return o};function Nh(e){return!!(e&&de(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const xh=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=Je(n)?[]:{};return dt(n,(s,l)=>{const p=o(s,i+1);!ct(p)&&(r[l]=p)}),a[i]=void 0,r}}return n};return o(e,0)},Th=Be("AsyncFunction"),Oh=e=>e&&(Mt(e)||de(e))&&de(e.then)&&de(e.catch),S={isArray:Je,isArrayBuffer:Vr,isBuffer:Ku,isFormData:ih,isArrayBufferView:Yu,isString:Qu,isNumber:$r,isBoolean:eh,isObject:Mt,isPlainObject:jt,isUndefined:ct,isDate:th,isFile:oh,isBlob:ah,isRegExp:_h,isFunction:de,isStream:rh,isURLSearchParams:sh,isTypedArray:fh,isFileList:nh,forEach:dt,merge:ea,extend:ch,trim:lh,stripBOM:dh,inherits:mh,toFlatObject:ph,kindOf:Lt,kindOfTest:Be,endsWith:uh,toArray:hh,forEachEntry:gh,matchAll:yh,isHTMLForm:bh,hasOwnProperty:Ir,hasOwnProp:Ir,reduceDescriptors:Fr,freezeMethods:Sh,toObjectSet:kh,toCamelCase:wh,noop:Ch,toFiniteNumber:Bh,findKey:Ar,global:zr,isContextDefined:Rr,ALPHABET:Lr,generateString:Eh,isSpecCompliantForm:Nh,toJSONObject:xh,isAsyncFn:Th,isThenable:Oh};function D(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(D,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=D.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(D,Mr),Object.defineProperty(Dr,"isAxiosError",{value:!0}),D.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"),D.call(s,e.message,a,o,n,i),s.cause=e,s.name=e.name,r&&Object.assign(s,r),s};const Vh=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 $h(e){return S.isArray(e)&&!e.some(oa)}const Ah=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,h){return!S.isUndefined(h[f])});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(f){if(f===null)return"";if(S.isDate(f))return f.toISOString();if(!l&&S.isBlob(f))throw new D("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 c(f,h,g){let y=f;if(f&&!g&&typeof f=="object"){if(S.endsWith(h,"{}"))h=n?h:h.slice(0,-2),f=JSON.stringify(f);else if(S.isArray(f)&&$h(f)||(S.isFileList(f)||S.endsWith(h,"[]"))&&(y=S.toArray(f)))return h=jr(h),y.forEach(function(C,O){!(S.isUndefined(C)||C===null)&&a.append(s===!0?vr([h],O,r):s===null?h:h+"[]",p(C))}),!1}return oa(f)?!0:(a.append(vr(g,h,r),p(f)),!1)}const d=[],u=Object.assign(Ah,{defaultVisitor:c,convertValue:p,isVisitable:oa});function m(f,h){if(!S.isUndefined(f)){if(d.indexOf(f)!==-1)throw Error("Circular reference detected in "+h.join("."));d.push(f),S.forEach(f,function(g,y){(!(S.isUndefined(g)||g===null)&&i.call(a,g,S.isString(y)?y.trim():y,h,u))===!0&&m(g,h?h.concat(y):[y])}),d.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 zh(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||zh,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)})}},qr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Rh=typeof URLSearchParams<"u"?URLSearchParams:aa,Ih=typeof FormData<"u"?FormData:null,Fh=typeof Blob<"u"?Blob:null,Ph={isBrowser:!0,classes:{URLSearchParams:Rh,FormData:Ih,Blob:Fh},protocols:["http","https","file","blob","url","data"]},Jr=typeof window<"u"&&typeof document<"u",Lh=(e=>Jr&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Dh=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Mh=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Jr,hasStandardBrowserEnv:Lh,hasStandardBrowserWebWorkerEnv:Dh},Symbol.toStringTag,{value:"Module"})),Ee={...Mh,...Ph};function jh(e,a){return vt(e,new Ee.classes.URLSearchParams,Object.assign({visitor:function(o,n,i,r){return Ee.isNode&&S.isBuffer(o)?(this.append(n,o.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},a))}function vh(e){return S.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function Wh(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]=Wh(i[s])),!l)}if(S.isFormData(e)&&S.isFunction(e.entries)){const o={};return S.forEachEntry(e,(n,i)=>{a(vh(n),i,o,0)}),o}return null}function Uh(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:qr,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 jh(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),Uh(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"?D.from(r,D.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}}};S.forEach(["delete","get","head","post","put","patch"],e=>{na.headers[e]={}});const ra=na,Hh=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"]),Gh=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[Xr]=this[Xr]={accessors:{}}).accessors,n=this.prototype;function i(r){const s=
|
|
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]&&Gh[o])&&(o==="set-cookie"?a[o]?a[o].push(n):a[o]=[n]:a[o]=a[o]?a[o]+", "+n:n)}),a},Xr=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 qh(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 Zh=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ia(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 Xh(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,o,n)=>o.toUpperCase()+n)}function Kh(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,d){const c=pt(p);if(!c)throw new Error("header name must be a non-empty string");const h=S.findKey(i,c);(!h||i[h]===void 0||d===!0||d===void 0&&i[h]!==!1)&&(i[h||p]=Wt(l))}const s=(l,p)=>S.forEach(l,(d,c)=>r(d,c,p));return S.isPlainObject(a)||a instanceof this.constructor?s(a,o):S.isString(a)&&(a=a.trim())&&!Zh(a)?s(Jh(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 qh(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||ia(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||ia(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||ia(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?Xh(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[Xr]=this[Xr]={accessors:{}}).accessors,n=this.prototype;function i(r){const s=pt(r);o[s]||(Kh(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 sa(e,a){const o=this||ra,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 Kr(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 Yh(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 Qh=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 ef(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function tf(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function Yr(e,a){return e&&!ef(a)?tf(e,a):a}const of=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 af(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function nf(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(),d=n[r];s||(s=p),o[i]=l,n[i]=p;let c=r,h=0;for(;c!==i;)h+=o[c++],c=c%e;if(i=(i+1)%e,i===r&&(r=(r+1)%e),p-s<a)return;const m=d&&p-d;return m?Math.round(h*1e3/m):void 0}}function Qr(e,a){let o=0;const n=nf(50,250);return i=>{const r=i.loaded,s=i.lengthComputable?i.total:void 0,l=r-o,p=n(l),d=r<=s;o=r;const c={loaded:r,total:s,progress:s?r/s:void 0,bytes:l,rate:p||void 0,estimated:p&&s&&d?(s-r)/p:void 0,event:i};c[a?"download":"upload"]=!0,e(c)}}const rf=typeof XMLHttpRequest<"u",sf=rf&&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 d;if(S.isFormData(n)){if(xe.hasStandardBrowserEnv||xe.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((d=i.getContentType())!==!1){const[u,...g]=d?d.split(";").map(y=>y.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...g].join("; "))}}let c=new XMLHttpRequest;if(e.auth){const u=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(u+":"+g))}const h=Yr(e.baseURL,e.url);c.open(e.method.toUpperCase(),Hr(h,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function m(){if(!c)return;const u=Ie.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),g={data:!r||r==="text"||r==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:u,config:e,request:c};Yh(function(y){a(y),p()},function(y){o(y),p()},g),c=null}if("onloadend"in c?c.onloadend=m:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(m)},c.onabort=function(){c&&(o(new P("Request aborted",P.ECONNABORTED,e,c)),c=null)},c.onerror=function(){o(new P("Network Error",P.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let u=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const g=e.transitional||Jr;e.timeoutErrorMessage&&(u=e.timeoutErrorMessage),o(new P(u,g.clarifyTimeoutError?P.ETIMEDOUT:P.ECONNABORTED,e,c)),c=null},xe.hasStandardBrowserEnv&&(s&&S.isFunction(s)&&(s=s(e)),s||s!==!1&&of(h))){const u=e.xsrfHeaderName&&e.xsrfCookieName&&Qh.read(e.xsrfCookieName);u&&i.set(e.xsrfHeaderName,u)}n===void 0&&i.setContentType(null),"setRequestHeader"in c&&S.forEach(i.toJSON(),function(u,g){c.setRequestHeader(g,u)}),S.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),r&&r!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",Qr(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",Qr(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=u=>{c&&(o(!u||u.type?new ut(null,e,c):u),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const f=af(h);if(f&&xe.protocols.indexOf(f)===-1){o(new P("Unsupported protocol "+f+":",P.ERR_BAD_REQUEST,e));return}c.send(n||null)})},la={http:$h,xhr:sf};S.forEach(la,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const ei=e=>`- ${e}`,lf=e=>S.isFunction(e)||e===null||e===!1,ti={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,!lf(o)&&(n=la[(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
18
|
`+r.map(ei).join(`
|
|
19
|
-
`):" "+ei(r[0]):"as no adapter specified";throw new
|
|
20
|
-
`+i.stack),n}}_request(a,o){typeof a=="string"?(o=o||{},o.url=a):o=a||{},o=
|
|
19
|
+
`):" "+ei(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:la};function ca(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ut(null,e)}function oi(e){return ca(e),e.headers=Ie.from(e.headers),e.data=sa.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ti.getAdapter(e.adapter||ra.adapter)(e).then(function(a){return ca(e),a.data=sa.call(e,e.transformResponse,a),a.headers=Ie.from(a.headers),a},function(a){return Kr(a)||(ca(e),a&&a.response&&(a.response.data=sa.call(e,e.transformResponse,a.response),a.response.headers=Ie.from(a.response.headers))),Promise.reject(a)})}const ai=e=>e instanceof Ie?e.toJSON():e;function Xe(e,a){a=a||{};const o={};function n(d,c,h){return S.isPlainObject(d)&&S.isPlainObject(c)?S.merge.call({caseless:h},d,c):S.isPlainObject(c)?S.merge({},c):S.isArray(c)?c.slice():c}function i(d,c,h){if(S.isUndefined(c)){if(!S.isUndefined(d))return n(void 0,d,h)}else return n(d,c,h)}function r(d,c){if(!S.isUndefined(c))return n(void 0,c)}function s(d,c){if(S.isUndefined(c)){if(!S.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(ai(d),ai(c),!0)};return S.forEach(Object.keys(Object.assign({},e,a)),function(d){const c=p[d]||i,h=c(e[d],a[d],d);S.isUndefined(h)&&c!==l||(o[d]=h)}),o}const ni="1.6.6",da={};["object","boolean","number","function","string","symbol"].forEach((e,a)=>{da[e]=function(o){return typeof o===e||"a"+(a<1?"n ":" ")+e}});const ri={};da.transitional=function(e,a,o){function n(i,r){return"[Axios v"+ni+"] 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&&!ri[r]&&(ri[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 cf(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 ma={assertOptions:cf,validators:da},De=ma.validators;let Ht=class{constructor(a){this.defaults=a,this.interceptors={request:new Gr,response:new Gr}}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=Xe(this.defaults,o);const{transitional:n,paramsSerializer:i,headers:r}=o;n!==void 0&&ma.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}:ma.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"],u=>{delete r[u]}),o.headers=Ie.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=[oi.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=oi.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=Xe(this.defaults,a);const o=Yr(a.baseURL,a.url);return Hr(o,a.params,a.paramsSerializer)}};S.forEach(["delete","get","head","options"],function(e){Ht.prototype[e]=function(a,o){return this.request(Xe(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(Xe(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,df=class $s{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 $s(function(o){a=o}),cancel:a}}};function mf(e){return function(a){return e.apply(null,a)}}function pf(e){return S.isObject(e)&&e.isAxiosError===!0}const pa={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(pa).forEach(([e,a])=>{pa[a]=e});const uf=pa;function ii(e){const a=new Gt(e),o=Or(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 ii(Xe(e,n))},o}const J=ii(ra);J.Axios=Gt,J.CanceledError=ut,J.CancelToken=df,J.isCancel=Kr,J.VERSION=ni,J.toFormData=vt,J.AxiosError=P,J.Cancel=J.CanceledError,J.all=function(e){return Promise.all(e)},J.spread=mf,J.isAxiosError=pf,J.mergeConfig=Xe,J.AxiosHeaders=Ie,J.formToJSON=e=>Zr(S.isHTMLForm(e)?new FormData(e):e),J.getAdapter=ti.getAdapter,J.HttpStatusCode=uf,J.default=J;const si=J;/**
|
|
21
21
|
* Vue 3 Carousel 0.3.1
|
|
22
22
|
* (c) 2023
|
|
23
23
|
* @license MIT
|
|
24
|
-
*/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"}},li={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 uf({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 hf({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 ff({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 gf(e,a){let o;return a?function(...n){const i=this;o||(e.apply(i,n),o=!0,setTimeout(()=>o=!1,a))}:e}function yf(e,a){let o;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{e(...n),o=null},a)}}function bf(e="",a={}){return Object.entries(a).reduce((o,[n,i])=>o.replace(`{${n}}`,String(i)),e)}var wf=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"},bf(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:o.value}))}}),_f=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),c=t.reactive(Object.assign({},Y));let d=Object.assign({},Y),u;const m=t.ref((i=e.modelValue)!==null&&i!==void 0?i:0),f=t.ref(0),h=t.ref(0),g=t.ref(0),y=t.ref(0);let C,O;t.provide("config",c),t.provide("slidesCount",p),t.provide("currentSlide",m),t.provide("maxSlide",g),t.provide("minSlide",y),t.provide("slideWidth",l);function W(){u=Object.assign({},e.breakpoints),d=Object.assign(Object.assign(Object.assign({},d),e),{i18n:Object.assign(Object.assign({},d.i18n),e.i18n),breakpoints:void 0}),he(d)}function X(){if(!u||!Object.keys(u).length)return;const b=Object.keys(u).map(B=>Number(B)).sort((B,j)=>+j-+B);let N=Object.assign({},d);b.some(B=>{const j=window.matchMedia(`(min-width: ${B}px)`).matches;return j&&(N=Object.assign(Object.assign({},N),u[B])),j}),he(N)}function he(b){Object.entries(b).forEach(([N,B])=>c[N]=B)}const fe=yf(()=>{X(),J()},16);function J(){if(!r.value)return;const b=r.value.getBoundingClientRect();l.value=b.width/c.itemsToShow}function ne(){p.value<=0||(h.value=Math.ceil((p.value-1)/2),g.value=uf({config:c,slidesCount:p.value}),y.value=hf({config:c,slidesCount:p.value}),c.wrapAround||(m.value=ua({val:m.value,max:g.value,min:y.value})))}t.onMounted(()=>{t.nextTick(()=>J()),setTimeout(()=>J(),1e3),X(),R(),window.addEventListener("resize",fe,{passive:!0}),o("init")}),t.onUnmounted(()=>{O&&clearTimeout(O),C&&clearInterval(C),window.removeEventListener("resize",fe,{passive:!0})});let A=!1;const te={x:0,y:0},oe={x:0,y:0},v=t.reactive({x:0,y:0}),ae=t.ref(!1),se=t.ref(!1),V=()=>{ae.value=!0},x=()=>{ae.value=!1};function T(b){["INPUT","TEXTAREA","SELECT"].includes(b.target.tagName)||(A=b.type==="touchstart",A||b.preventDefault(),!(!A&&b.button!==0||z.value)&&(te.x=A?b.touches[0].clientX:b.clientX,te.y=A?b.touches[0].clientY:b.clientY,document.addEventListener(A?"touchmove":"mousemove",$,!0),document.addEventListener(A?"touchend":"mouseup",E,!0)))}const $=gf(b=>{se.value=!0,oe.x=A?b.touches[0].clientX:b.clientX,oe.y=A?b.touches[0].clientY:b.clientY;const N=oe.x-te.x,B=oe.y-te.y;v.y=B,v.x=N},c.throttle);function E(){const b=c.dir==="rtl"?-1:1,N=Math.sign(v.x)*.4,B=Math.round(v.x/l.value+N)*b;if(B&&!A){const j=ge=>{ge.stopPropagation(),window.removeEventListener("click",j,!0)};window.addEventListener("click",j,!0)}F(m.value-B),v.x=0,v.y=0,se.value=!1,document.removeEventListener(A?"touchmove":"mousemove",$,!0),document.removeEventListener(A?"touchend":"mouseup",E,!0)}function R(){!c.autoplay||c.autoplay<=0||(C=setInterval(()=>{c.pauseAutoplayOnHover&&ae.value||Q()},c.autoplay))}function I(){C&&(clearInterval(C),C=null),R()}const z=t.ref(!1);function F(b){const N=c.wrapAround?b:ua({val:b,max:g.value,min:y.value});m.value===N||z.value||(o("slide-start",{slidingToIndex:b,currentSlideIndex:m.value,prevSlideIndex:f.value,slidesCount:p.value}),z.value=!0,f.value=m.value,m.value=N,O=setTimeout(()=>{if(c.wrapAround){const B=ha({val:N,max:g.value,min:0});B!==m.value&&(m.value=B,o("loop",{currentSlideIndex:m.value,slidingToIndex:b}))}o("update:modelValue",m.value),o("slide-end",{currentSlideIndex:m.value,prevSlideIndex:f.value,slidesCount:p.value}),z.value=!1,I()},c.transition))}function Q(){F(m.value+c.itemsToScroll)}function re(){F(m.value-c.itemsToScroll)}const Fe={slideTo:F,next:Q,prev:re};t.provide("nav",Fe),t.provide("isSliding",z);const Pe=t.computed(()=>ff({config:c,currentSlide:m.value,slidesCount:p.value}));t.provide("slidesToScroll",Pe);const bt=t.computed(()=>{const b=c.dir==="rtl"?-1:1,N=Pe.value*l.value*b;return{transform:`translateX(${v.x-N}px)`,transition:`${z.value?c.transition:0}ms`,margin:c.wrapAround?`0 -${p.value*l.value}px`:"",width:"100%"}});function Le(){W(),X(),ne(),J(),I()}Object.keys(li).forEach(b=>{["modelValue"].includes(b)||t.watch(()=>e[b],Le)}),t.watch(()=>e.modelValue,b=>{b!==m.value&&F(Number(b))}),t.watch(p,ne),o("before-init"),W();const De={config:c,slidesCount:p,slideWidth:l,next:Q,prev:re,slideTo:F,currentSlide:m,maxSlide:g,minSlide:y,middleSlide:h};n({updateBreakpointsConfigs:X,updateSlidesData:ne,updateSlideWidth:J,initDefaultConfigs:W,restartCarousel:Le,slideTo:F,next:Q,prev:re,nav:Fe,data:De});const Me=a.default||a.slides,je=a.addons,ve=t.reactive(De);return()=>{const b=ci(Me==null?void 0:Me(ve)),N=(je==null?void 0:je(ve))||[];b.forEach((ye,be)=>ye.props.index=be);let B=b;if(c.wrapAround){const ye=b.map((we,ee)=>t.cloneVNode(we,{index:-b.length+ee,isClone:!0,key:`clone-before-${ee}`})),be=b.map((we,ee)=>t.cloneVNode(we,{index:b.length+ee,isClone:!0,key:`clone-after-${ee}`}));B=[...ye,...b,...be]}s.value=b,p.value=Math.max(b.length,1);const j=t.h("ol",{class:"carousel__track",style:bt.value,onMousedownCapture:c.mouseDrag?T:null,onTouchstartPassiveCapture:c.touchDrag?T:null},B),ge=t.h("div",{class:"carousel__viewport"},j);return t.h("section",{ref:r,class:{carousel:!0,"is-sliding":z.value,"is-dragging":se.value,"is-hover":ae.value,"carousel--rtl":c.dir==="rtl"},dir:c.dir,"aria-label":c.i18n.ariaGallery,tabindex:"0",onMouseenter:V,onMouseleave:x},[ge,N,t.h(wf)])}}}),di;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(di||(di={}));var Sf=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 d=Math.floor(i.value),u=Math.ceil(i.value+o.itemsToShow-1);return e.index>=d&&e.index<=u};return()=>{var d;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()},(d=a.default)===null||d===void 0?void 0:d.call(a))}}});const kf=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},Cf=e=>(t.pushScopeId("data-v-dd3cbf69"),e=e(),t.popScopeId(),e),Bf={class:"gsc-carousel"},Ef={key:0},Nf=Cf(()=>t.createElementVNode("div",null,"no hay",-1)),xf=[Nf],Tf={class:"gsc-carousel__2d__slides"},Of={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Vf=["fill"],$f={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Af=["fill"],zf={class:"gsc-carousel__2d__navigation"},Rf={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},If=["stroke"],Ff={key:1,class:"gsc-carousel__2d__navigation__pagination"},Pf=["onClick"],Lf={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Df=["stroke"],Mf={__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 c(){i.value&&i.value.next()}function d(){i.value&&i.value.prev()}function u(){i.value&&i.value.updateSlideWidth()}function m(g){i.value&&i.value.slideTo(g)}function f(g){i.value.slideTo(g)}function h(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:d,next:c,updateSlideWidth:u,slideTo:m}),(g,y)=>(t.openBlock(),t.createElementBlock("div",Bf,[n.is3d?(t.openBlock(),t.createElementBlock("div",Ef,xf)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",Tf,[t.createVNode(t.unref(_f),{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,O)=>(t.openBlock(),t.createBlock(t.unref(Sf),{key:O},{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",Of,[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,Vf)]))],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",$f,[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,Af)]))],2)])):t.createCommentVNode("",!0),t.createElementVNode("div",zf,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:y[2]||(y[2]=C=>d())},[(t.openBlock(),t.createElementBlock("svg",Rf,[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,If)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",Ff,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(C,O)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${O}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${n.navigationHeight}px`,width:`${s.value===O?n.navigationActiveWidth:n.navigationActiveWidth/2}px`,borderRadius:`${n.navigationBorderRadius}px`,backgroundColor:`${s.value===O?n.navigationActiveColor:n.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:W=>f(O)},null,12,Pf))),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",Lf,[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,Df)]))])):t.createCommentVNode("",!0)])],2))]))}},mi=kf(Mf,[["__scopeId","data-v-dd3cbf69"]]),jf={PO1:"CFI",PO2:"CFV",PO3:"SFI",PO4:"SFV",PO5:"FI",PO6:"FV"},vf={DF:"Dieciseisavos",OF:"Octavos",CF:"Cuartos",SF:"Semifinales","3ER":"Tercer lugar",FINAL:"Final"},Wf={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"}},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"};/**
|
|
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 Uf({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 Hf({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 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: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 Jf(e,a){let o;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{e(...n),o=null},a)}}function Zf(e="",a={}){return Object.entries(a).reduce((o,[n,i])=>o.replace(`{${n}}`,String(i)),e)}var Xf=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"},Zf(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:o.value}))}}),Kf=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),c=t.reactive(Object.assign({},Z));let d=Object.assign({},Z),u;const m=t.ref((i=e.modelValue)!==null&&i!==void 0?i:0),f=t.ref(0),h=t.ref(0),g=t.ref(0),y=t.ref(0);let C,O;t.provide("config",c),t.provide("slidesCount",p),t.provide("currentSlide",m),t.provide("maxSlide",g),t.provide("minSlide",y),t.provide("slideWidth",l);function W(){u=Object.assign({},e.breakpoints),d=Object.assign(Object.assign(Object.assign({},d),e),{i18n:Object.assign(Object.assign({},d.i18n),e.i18n),breakpoints:void 0}),he(d)}function X(){if(!u||!Object.keys(u).length)return;const b=Object.keys(u).map(B=>Number(B)).sort((B,j)=>+j-+B);let N=Object.assign({},d);b.some(B=>{const j=window.matchMedia(`(min-width: ${B}px)`).matches;return j&&(N=Object.assign(Object.assign({},N),u[B])),j}),he(N)}function he(b){Object.entries(b).forEach(([N,B])=>c[N]=B)}const fe=Jf(()=>{X(),J()},16);function J(){if(!r.value)return;const b=r.value.getBoundingClientRect();l.value=b.width/c.itemsToShow}function ne(){p.value<=0||(h.value=Math.ceil((p.value-1)/2),g.value=Uf({config:c,slidesCount:p.value}),y.value=Hf({config:c,slidesCount:p.value}),c.wrapAround||(m.value=fa({val:m.value,max:g.value,min:y.value})))}t.onMounted(()=>{t.nextTick(()=>J()),setTimeout(()=>J(),1e3),X(),R(),window.addEventListener("resize",fe,{passive:!0}),o("init")}),t.onUnmounted(()=>{O&&clearTimeout(O),C&&clearInterval(C),window.removeEventListener("resize",fe,{passive:!0})});let A=!1;const te={x:0,y:0},oe={x:0,y:0},v=t.reactive({x:0,y:0}),ae=t.ref(!1),se=t.ref(!1),V=()=>{ae.value=!0},x=()=>{ae.value=!1};function T(b){["INPUT","TEXTAREA","SELECT"].includes(b.target.tagName)||(A=b.type==="touchstart",A||b.preventDefault(),!(!A&&b.button!==0||z.value)&&(te.x=A?b.touches[0].clientX:b.clientX,te.y=A?b.touches[0].clientY:b.clientY,document.addEventListener(A?"touchmove":"mousemove",$,!0),document.addEventListener(A?"touchend":"mouseup",E,!0)))}const $=qf(b=>{se.value=!0,oe.x=A?b.touches[0].clientX:b.clientX,oe.y=A?b.touches[0].clientY:b.clientY;const N=oe.x-te.x,B=oe.y-te.y;v.y=B,v.x=N},c.throttle);function E(){const b=c.dir==="rtl"?-1:1,N=Math.sign(v.x)*.4,B=Math.round(v.x/l.value+N)*b;if(B&&!A){const j=ge=>{ge.stopPropagation(),window.removeEventListener("click",j,!0)};window.addEventListener("click",j,!0)}F(m.value-B),v.x=0,v.y=0,se.value=!1,document.removeEventListener(A?"touchmove":"mousemove",$,!0),document.removeEventListener(A?"touchend":"mouseup",E,!0)}function R(){!c.autoplay||c.autoplay<=0||(C=setInterval(()=>{c.pauseAutoplayOnHover&&ae.value||Q()},c.autoplay))}function I(){C&&(clearInterval(C),C=null),R()}const z=t.ref(!1);function F(b){const N=c.wrapAround?b:fa({val:b,max:g.value,min:y.value});m.value===N||z.value||(o("slide-start",{slidingToIndex:b,currentSlideIndex:m.value,prevSlideIndex:f.value,slidesCount:p.value}),z.value=!0,f.value=m.value,m.value=N,O=setTimeout(()=>{if(c.wrapAround){const B=ga({val:N,max:g.value,min:0});B!==m.value&&(m.value=B,o("loop",{currentSlideIndex:m.value,slidingToIndex:b}))}o("update:modelValue",m.value),o("slide-end",{currentSlideIndex:m.value,prevSlideIndex:f.value,slidesCount:p.value}),z.value=!1,I()},c.transition))}function Q(){F(m.value+c.itemsToScroll)}function re(){F(m.value-c.itemsToScroll)}const Fe={slideTo:F,next:Q,prev:re};t.provide("nav",Fe),t.provide("isSliding",z);const Pe=t.computed(()=>Gf({config:c,currentSlide:m.value,slidesCount:p.value}));t.provide("slidesToScroll",Pe);const bt=t.computed(()=>{const b=c.dir==="rtl"?-1:1,N=Pe.value*l.value*b;return{transform:`translateX(${v.x-N}px)`,transition:`${z.value?c.transition:0}ms`,margin:c.wrapAround?`0 -${p.value*l.value}px`:"",width:"100%"}});function Le(){W(),X(),ne(),J(),I()}Object.keys(pi).forEach(b=>{["modelValue"].includes(b)||t.watch(()=>e[b],Le)}),t.watch(()=>e.modelValue,b=>{b!==m.value&&F(Number(b))}),t.watch(p,ne),o("before-init"),W();const De={config:c,slidesCount:p,slideWidth:l,next:Q,prev:re,slideTo:F,currentSlide:m,maxSlide:g,minSlide:y,middleSlide:h};n({updateBreakpointsConfigs:X,updateSlidesData:ne,updateSlideWidth:J,initDefaultConfigs:W,restartCarousel:Le,slideTo:F,next:Q,prev:re,nav:Fe,data:De});const Me=a.default||a.slides,je=a.addons,ve=t.reactive(De);return()=>{const b=ui(Me==null?void 0:Me(ve)),N=(je==null?void 0:je(ve))||[];b.forEach((ye,be)=>ye.props.index=be);let B=b;if(c.wrapAround){const ye=b.map((we,ee)=>t.cloneVNode(we,{index:-b.length+ee,isClone:!0,key:`clone-before-${ee}`})),be=b.map((we,ee)=>t.cloneVNode(we,{index:b.length+ee,isClone:!0,key:`clone-after-${ee}`}));B=[...ye,...b,...be]}s.value=b,p.value=Math.max(b.length,1);const j=t.h("ol",{class:"carousel__track",style:bt.value,onMousedownCapture:c.mouseDrag?T:null,onTouchstartPassiveCapture:c.touchDrag?T:null},B),ge=t.h("div",{class:"carousel__viewport"},j);return t.h("section",{ref:r,class:{carousel:!0,"is-sliding":z.value,"is-dragging":se.value,"is-hover":ae.value,"carousel--rtl":c.dir==="rtl"},dir:c.dir,"aria-label":c.i18n.ariaGallery,tabindex:"0",onMouseenter:V,onMouseleave:x},[ge,N,t.h(Xf)])}}}),ya;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(ya||(ya={}));const Yf={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 Qf(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"||!Qf(o))return;const i=Yf[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 eg=(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:d,wrapAround:u,i18n:m}=r,f=d==="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":m.ariaPreviousSlide,onClick:c.prev},(i==null?void 0:i())||t.h(ba,{name:f?"arrowRight":"arrowLeft"})),g=t.h("button",{type:"button",class:["carousel__next",!u&&p.value>=s.value&&"carousel__next--disabled",o==null?void 0:o.class],"aria-label":m.ariaNextSlide,onClick:c.next},(n==null?void 0:n())||t.h(ba,{name:f?"arrowLeft":"arrowRight"}));return[h,g]};var tg=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 d=Math.floor(i.value),u=Math.ceil(i.value+o.itemsToShow-1);return e.index>=d&&e.index<=u};return()=>{var d;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()},(d=a.default)===null||d===void 0?void 0:d.call(a))}}});const pe=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},og={__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))}},ag=pe(og,[["__scopeId","data-v-89459353"]]),ng={__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}},emits:["change-match-day"],setup(e,{emit:a}){const o=e;t.useCssVars(c=>({"4882fd4e":r.value,"48852bce":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.matchDays,c=>{if(c&&c.length){const d=c.find(u=>u.key===o.defaultMatchDayKey);l.value=d||c[0],a("change-match-day",l.value)}},{immediate:!0});function p(c){l.value=c,a("change-match-day",l.value)}return(c,d)=>(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(Kf),t.mergeProps(i.value,{ref_key:"matchDayPickerCarousel",ref:n}),{addons:t.withCtx(()=>[t.createVNode(t.unref(eg))]),default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.matchDays,u=>(t.openBlock(),t.createBlock(t.unref(tg),{key:u.key},{default:t.withCtx(()=>[t.createVNode(ag,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))}},rg=pe(ng,[["__scopeId","data-v-cdc70f61"]]);function Xe(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 ig(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 sg={class:"game-info__teams"},lg={class:"game-info__teams__team__logo"},cg=["src"],dg={class:"game-info__teams__detail"},mg={key:0,class:"game-info__teams__detail__pre-game"},pg={class:"game-info__teams__team__logo away"},ug=["src"],hg={key:0},fg={key:0},gg={key:1},yg={__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),d=c.getHours(),u=c.getMinutes();return`${d<10?`0${d}`:d}:${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,d)=>(t.openBlock(),t.createElementBlock("div",{class:"game-info",style:t.normalizeStyle(e.isLandingMode?"gap:5px":"")},[t.createElementVNode("div",sg,[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",lg,[t.createElementVNode("img",{src:t.unref(Xe)(e.game.home_team.team_id),alt:""},null,8,cg)])],4),t.createElementVNode("div",dg,[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock("div",mg,[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",pg,[t.createElementVNode("img",{src:t.unref(Xe)(e.game.visiting_team.team_id),alt:""},null,8,ug)]),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",hg,[e.isTelevisionVisible?(t.openBlock(),t.createElementBlock("span",fg,t.toDisplayString(e.game.tv_stations.join(", ")),1)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",gg,t.toDisplayString(t.unref(ig)(e.game)),1))],4)],4))}},fi=pe(yg,[["__scopeId","data-v-afb1954b"]]),gi=e=>(t.pushScopeId("data-v-8839c56d"),e=e(),t.popScopeId(),e),bg={class:"game-status"},wg={key:0,class:"game-status__day__live"},_g=gi(()=>t.createElementVNode("span",null,"LIVE",-1)),Sg=gi(()=>t.createElementVNode("span",{class:"dot"},null,-1)),kg=[_g,Sg],Cg={key:0,class:"game-status__round"},Bg={__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",bg,[t.createElementVNode("div",{class:t.normalizeClass(["game-status__day",r.value]),style:t.normalizeStyle(i.value)},[e.isLive?(t.openBlock(),t.createElementBlock("div",wg,kg)):(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",Cg,t.toDisplayString(e.roundAbbreviation),1))]))}},yi=pe(Bg,[["__scopeId","data-v-8839c56d"]]),ue={SHOW_GAME_EVENTS:"SHOW_GAME_EVENTS",PLAY_GOALS:"PLAY_GOALS",PLAY_RESUME:"PLAY_RESUME",NOTIFICATION:"NOTIFICATION",STATISTICS:"STATISTICS"},Eg=e=>(t.pushScopeId("data-v-0d97b1a8"),e=e(),t.popScopeId(),e),Ng={class:"actions"},xg={class:"actions__row"},Tg=Eg(()=>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)),Og=[Tg],Vg={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$g=["fill"],Ag={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},zg=["fill"],Rg={__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",Ng,[t.createElementVNode("div",xg,[t.createElementVNode("div",{class:"actions__button rounded",style:t.normalizeStyle(n.value),onClick:s[0]||(s[0]=l=>i(t.unref(ue).STATISTICS))},Og,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",Vg,[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,$g)]))],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",Ag,[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,zg)]))])):t.createCommentVNode("",!0)])]))}},Ig=pe(Rg,[["__scopeId","data-v-0d97b1a8"]]),wa=e=>(t.pushScopeId("data-v-af6919bd"),e=e(),t.popScopeId(),e),Fg={class:"actions"},Pg={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Lg=["fill"],Dg={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Mg=["fill"],jg=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)),vg=[jg],Wg={key:0,class:"actions__videos"},Ug={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Hg=["fill"],Gg={key:1,class:"actions__videos__thumbnails"},qg=wa(()=>t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__goals"},null,-1)),Jg=wa(()=>t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__summary"},null,-1)),Zg={height:24,width:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Xg=["stroke"],Kg={__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",Fg,[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]=d=>l(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),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]=d=>l(t.unref(ue).PLAY_RESUME))},[(t.openBlock(),t.createElementBlock("svg",Dg,[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,Mg)]))],4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"actions__button rounded",style:t.normalizeStyle(n.value),onClick:c[2]||(c[2]=d=>l(t.unref(ue).STATISTICS))},vg,4)],2),r.value?(t.openBlock(),t.createElementBlock("div",Wg,[e.gameStatus===4444&&!e.isLive?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button",onClick:c[3]||(c[3]=d=>l(t.unref(ue).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",Ug,[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,Hg)]))])):t.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo?(t.openBlock(),t.createElementBlock("div",Gg,[t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:c[4]||(c[4]=d=>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:c[5]||(c[5]=d=>l(t.unref(ue).PLAY_RESUME))},[Jg,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]=d=>l(t.unref(ue).SHOW_GAME_EVENTS))},[(t.openBlock(),t.createElementBlock("svg",Zg,[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,Xg)]))],2)):(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(["actions__button expand",{"rotated-180":!1,mobile:e.componentWidth<540}])},null,2))]))}},Yg=pe(Kg,[["__scopeId","data-v-af6919bd"]]),qt=e=>(t.pushScopeId("data-v-43a88f53"),e=e(),t.popScopeId(),e),Qg={class:"row-landing__game-status"},e0={class:"row-landing__game-actions"},t0={class:"row-full__game-status"},o0={class:"row-full__game-info"},a0={key:0},n0={class:"row-full__game-actions"},r0={class:"game-events-container"},i0=qt(()=>t.createElementVNode("div",{class:"separator"},null,-1)),s0=qt(()=>t.createElementVNode("div",null,null,-1)),l0={class:"game-events__data"},c0={class:"game-events__data__team"},d0=["src"],m0={class:"game-events__data__team__event__text"},p0={class:"game-events__data__team away"},u0={class:"game-events__data__team__event__text"},h0=["src"],f0=qt(()=>t.createElementVNode("div",null,null,-1)),g0=qt(()=>t.createElementVNode("div",null,null,-1)),y0={__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})),c=t.computed(()=>({height:o.height})),d=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}),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"})),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 h(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",Qg,[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",e0,[t.createVNode(Ig,{"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",d.value.game]),style:t.normalizeStyle(c.value)},[t.createElementVNode("div",t0,[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",o0,[t.createVNode(fi,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(m.value)},[!r.value&&(e.game.game_status===4||e.game.is_live)?(t.openBlock(),t.createElementBlock("span",a0,t.toDisplayString(e.game.tv_stations.join(", ")),1)):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",n0,[t.createVNode(Yg,{"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",r0,[i0,t.createElementVNode("div",{class:t.normalizeClass(["game-events",d.value.events])},[s0,t.createElementVNode("div",l0,[t.createElementVNode("div",c0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value.homeTeam,(C,O)=>(t.openBlock(),t.createElementBlock("div",{key:`h${O}`,class:"game-events__data__team__event"},[t.createElementVNode("img",{src:C.iconUrl},null,8,d0),t.createElementVNode("div",m0,t.toDisplayString(C.text),1)]))),128))]),t.createElementVNode("div",p0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value.awayTeam,(C,O)=>(t.openBlock(),t.createElementBlock("div",{key:`a${O}`,class:"game-events__data__team__event"},[t.createElementVNode("div",u0,t.toDisplayString(C.text),1),t.createElementVNode("img",{src:C.iconUrl},null,8,h0)]))),128))])]),f0,g0],2)],512),[[t.vShow,i.value]])]),_:1})],4))}},bi=pe(y0,[["__scopeId","data-v-43a88f53"]]),b0={class:"calendar-table"},w0={__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",b0,[(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))]))}},_0=pe(w0,[["__scopeId","data-v-47b333f0"]]),S0={class:"calendar-by-team"},k0={class:"playing-as-picker"},C0={class:"calendar-by-team__page"},B0={__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((d,[u,m])=>{const f=Number(u),h=Number.isNaN(f)?u:`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&&d.push({roundName:h,games:g}),d},[]);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",S0,[t.createElementVNode("div",k0,[t.createElementVNode("div",{class:"playing-as-picker__type selected",id:"opc0",onClick:c[0]||(c[0]=d=>s(0))},"Todas"),t.createElementVNode("div",{class:"playing-as-picker__type",id:"opc1",onClick:c[1]||(c[1]=d=>s(1))},"Visitante"),t.createElementVNode("div",{class:"playing-as-picker__type",id:"opc2",onClick:c[2]||(c[2]=d=>s(2))},"Local")]),t.createVNode(t.unref(mi),{"is-pagination-visible":e.isPaginationVisible,items:i.value},{default:t.withCtx(({item:d})=>[t.createElementVNode("div",C0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d,(u,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(u.roundName)),5),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.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"])]))}},E0=pe(B0,[["__scopeId","data-v-aae4ad84"]]),N0="_image62Icon_1lvdf_3",x0="_imgChivasIcon_1lvdf_21",T0="_nameDesktop_1lvdf_35",O0="_nameMobile_1lvdf_61",V0="_homeTeam_1lvdf_85",$0="_sbado16De_1lvdf_107",A0="_gameDate_1lvdf_125",z0="_sab16092023_1lvdf_133",R0="_div_1lvdf_159",I0="_divscore_1lvdf_177",F0="_cst_1lvdf_197",P0="_hour_1lvdf_215",L0="_score_1lvdf_217",D0="_chivasTvCanal_1lvdf_239",M0="_gameStatus_1lvdf_263",j0="_matchInfo_1lvdf_285",v0="_image62Icon1_1lvdf_311",W0="_name_1lvdf_35",U0="_imgAtlasIcon_1lvdf_355",H0="_name1_1lvdf_369",G0="_awayTeam_1lvdf_393",q0="_matchCard_1lvdf_415",J0={image62Icon:N0,imgChivasIcon:x0,nameDesktop:T0,nameMobile:O0,homeTeam:V0,sbado16De:$0,gameDate:A0,sab16092023:z0,div:R0,divscore:I0,cst:F0,hour:P0,score:L0,chivasTvCanal:D0,gameStatus:M0,matchInfo:j0,image62Icon1:v0,name:W0,imgAtlasIcon:U0,name1:H0,awayTeam:G0,matchCard:q0},Z0=["src"],X0=["src"],K0={key:0},Y0=["src"],Q0=["src"],ey={__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(Xe)(o.value.home_team.team_id,150)},null,10,Z0),t.createElementVNode("img",{class:t.normalizeClass(i.$style.imgChivasIcon),alt:"",src:t.unref(Xe)(o.value.home_team.team_id)},null,10,X0),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",K0," - 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(Xe)(o.value.visiting_team.team_id,150)},null,10,Y0),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(Xe)(o.value.visiting_team.team_id)},null,10,Q0),t.createElementVNode("h3",{class:t.normalizeClass(i.$style.name1),id:"team-name"},t.toDisplayString(o.value.visiting_team.acronym),3)],2)],2))}},ty={$style:J0},oy=pe(ey,[["__cssModules",ty]]),ay={class:"calendar-by-game__carousel"},ny={components:{GscSwitchComponent:Yo,GSCGeneraltable:Tu,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}}},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([]),l=t.ref(0),p=t.ref(null),c=t.ref({}),d=t.ref(new Map),u=t.ref(!1),m=t.ref(null),f=t.ref(null),h=t.ref(null),g=t.computed(()=>o.isCup),y=t.computed(()=>o.isCupLegacy),C=t.computed(()=>({height:o.height,width:o.width})),O=t.computed(()=>o.games?J(o.games):d.value.get(c.value.key)||[]);t.watch(()=>o.seasons,V=>{V&&V.length&&(u.value=!0,i.value=V.map(x=>x.id),he(V,!0))},{immediate:!0,deep:!0}),t.watch(()=>o.teamId,()=>{fe()});async function W(V,x,T=""){let $=T;try{const E={};o.token&&(E.Authorization=o.token),$||($="https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",V.forEach((z,F)=>{$+=`${F===0?"":"&"}seasons=${z}`}));const{data:{data:R,teams:I}}=await si.get($,{headers:E});return{seasonsAndGames:R,seasonsAndTeams:I}}catch(E){if(x>0)return W(V,x-1,$);throw new Error(E)}}function X(V){for(const x of V)if(!i.value.includes(x.season_id))return!0;return!1}async function he(V,x){try{r.value={};let T=0;const{seasonsAndGames:$,seasonsAndTeams:E}=await W(V.map(I=>I.id),3);if(x&&X($))return;$.forEach(I=>{const{type:z}=V.find(F=>F.id===I.season_id);I.type=z,I.games.forEach(F=>{F.season_id=I.season_id}),z===0&&(T=I.season_id)}),m.value={seasonsGames:$};const{teams:R}=E.find(I=>I.season_id===T);f.value=R,a("change-teams",R),fe()}catch(T){throw new Error(T)}}function fe(){if(!f.value)return;const V=m.value&&m.value.seasonsGames?m.value.seasonsGames.map(x=>{const T=x.games.reduce(($,E)=>{const R={...E};return R.dateTimeMillis=new Date(R.date_time_utc).valueOf(),R.home_team=f.value.find(I=>I.team_id===E.home_team),R.visiting_team=f.value.find(I=>I.team_id===E.visiting_team),o.teamId&&R.home_team.team_id!==o.teamId&&R.visiting_team.team_id!==o.teamId||($[E.matchday_abbreviation]?$[E.matchday_abbreviation][E.game_status===3?"canceled":E.date]?$[E.matchday_abbreviation][E.game_status===3?"canceled":E.date].push(R):$[E.matchday_abbreviation][E.game_status===3?"canceled":E.date]=[R]:$[E.matchday_abbreviation]={[E.game_status===3?"canceled":E.date]:[R]}),$},{});for(let[$,E]of Object.entries(T))T[$]=Object.entries(E).map(([R,I])=>({date:R,games:I.sort((z,F)=>z.dateTimeMillis-F.dateTimeMillis)})),T[$].sort((R,I)=>R.date<I.date?-1:R.date>I.date?1:0);return{type:x.type,weight:x.type===0?0:x.type===2?1:2,schedule:T}}):[];V.sort((x,T)=>x.weight-T.weight),r.value=V.reduce((x,T)=>{for(const[$,E]of Object.entries(T.schedule))if(T.type===0)if(g.value){const R=$.replace("M",""),I=R;y.value?x[Wf[R]||I]=E:x[vf[$]||I]=E}else x[Number($.replace("M","")).toString()]=E;else T.type===2?$.charAt(1)=="I"?x[`PI${Number($.replace("PI",""))}`]=E:x[`R${Number($.replace("PO",""))}`]=E:T.type===1&&(x[jf[$]]=E);return x},{}),d.value=new Map,s.value=Array.from(Object.entries(r.value).reduce((x,[T,$])=>{const E=Number(T);let R="";Number.isNaN(E)?R=T:R=E<10?`0${E}`:T,x.set(T,{key:T,value:E,valueText:R});const I=$.reduce((F,Q)=>(Q.games.forEach(re=>{re.game_id===o.defaultGameId&&(h.value=T),re.roundAbbreviation=Number.isNaN(E)?E:`J ${E}`}),F=F.concat(Q.games),F),[]),z=J(I);return d.value.set(T,z),x},new Map).values())}function J(V){const x=[];if(o.gamesPerMatchDay>0){let T=[];V.forEach(($,E)=>{T.push($),(E+1)%o.gamesPerMatchDay===0&&(x.push([...T]),T=[])}),T.length&&x.push([...T])}else x.push(V);return x}async function ne(V){try{const{data:x}=await si.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments");return x}catch(x){if(V>0)return ne(V-1);throw new Error(x)}}function A(){if(window.ResizeObserver)n=new ResizeObserver(()=>{l.value=p.value.clientWidth}),n.observe(p.value);else throw new Error("Resize observer not supported!")}function te(V){c.value=V,a("change-round",V)}function oe(V){o.areGamesCarouselType&&a("change-game-carousel",V.selectedItem)}function v(V){a("action",V),ae(V)}function ae(V){const x="PLAY_RESUME",T="PLAY_GOALS",$=[607,608,12,55,54,35,14,52,15,53,466,477],E=[12,55,"35_r","54_r"],{game_id:R,season_id:I}=V.game;let z={seasonId:I,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:1,gameIds:[R],playerIds:[],goalkeeperIds:[],categoryIds:[],teamId:0,matchResult:[],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:""},objectPlaySync:null};V.action===x?(z.categoryIds=$,z.advancedFilter.playListTitle="Resumen",a("openmedia",z)):V.action===T&&(z.categoryIds=E,z.advancedFilter.playListTitle="Goles",a("openmedia",z))}async function se(){try{if(!o.awaitForSeasons&&!o.games){const V=(await ne(3)).find($=>$._id===1),x=V.seasons[0],T=[{id:x.id,type:x.type}];V&&V.tournament&&a("tournament-selected",V.tournament),x.related_seasons&&x.related_seasons.length&&T.push(...x.related_seasons.map($=>({id:$.id,type:$.type}))),await he(T,!1)}}catch(V){throw new Error(V)}}return t.onMounted(()=>{A()}),se(),(V,x)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"calendarByGame",ref:p,class:"calendar-by-game",style:t.normalizeStyle(C.value)},[e.teamId&&!e.avoidTeamIdFilter?(t.openBlock(),t.createBlock(E0,{key:0,"full-tournament-schedule":r.value,"team-id":e.teamId,"is-landing-mode":!1,"row-height":e.rowHeight,"component-width":l.value,"games-pages":d.value,"is-pagination-visible":e.isPaginationVisible,"is-round-mode":e.isRoundMode,onAction:v},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&&s.value?(t.openBlock(),t.createBlock(rg,{key:0,"match-days":s.value,"is-landing-mode":e.isLandingMode,height:"48px","items-to-show":e.itemsToShow,"items-to-scroll":e.itemsToScroll,"component-width":l.value,"default-match-day-key":h.value,onChangeMatchDay:te},null,8,["match-days","is-landing-mode","items-to-show","items-to-scroll","component-width","default-match-day-key"])):t.createCommentVNode("",!0),t.createElementVNode("div",ay,[O.value?(t.openBlock(),t.createBlock(t.unref(mi),{key:0,"is-pagination-visible":e.isPaginationVisible&&!e.areGamesCarouselType,items:e.areGamesCarouselType?O.value[0]:O.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:oe},{default:t.withCtx(({item:T})=>[e.areGamesCarouselType?(t.openBlock(),t.createBlock(oy,{key:0,game:T},null,8,["game"])):(t.openBlock(),t.createBlock(_0,{key:1,"games-per-page":T,"is-landing-mode":e.isLandingMode,"row-height":e.rowHeight,"component-width":l.value,"is-round-mode":e.isRoundMode,onAction:v},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-57f2fc98"]])},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)}}},ry={class:"gsc-calendar-table"},iy={class:"gsc-switch-container"},sy={class:"gsc-app-component"};function ly(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",ry,[t.createElementVNode("div",iy,[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",sy,[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 cy=ie(ny,[["render",ly],["__scopeId","data-v-6b8889ec"]]),dy={class:"match"},my={class:"match__header"},py={key:0,class:"match__final-tag"},uy={key:1,class:"match__final-tag__no-border"},hy={class:"match__tag"},fy={class:"match__body"},gy={class:"match__data"},yy={class:"match__acronym"},by=["src"],wy={class:"match__score"},_y=["src"],Sy={class:"match__acronym"},ky={class:"match__status"},Jt=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",dy,[t.createElementVNode("div",my,[e.infoType=="postmatch"?(t.openBlock(),t.createElementBlock("div",py,"FINAL ")):(t.openBlock(),t.createElementBlock("div",uy)),t.createElementVNode("div",hy,t.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),1)]),t.createElementVNode("div",fy,[t.createElementVNode("div",gy,[t.createElementVNode("div",yy,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,by),t.createElementVNode("div",wy,[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,_y),t.createElementVNode("div",Sy,t.toDisplayString((r=e.data)==null?void 0:r.visiting_team_acronym),1)]),t.createElementVNode("div",ky,[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"]]),Cy=e=>(t.pushScopeId("data-v-8a51a354"),e=e(),t.popScopeId(),e),By={class:"match"},Ey={class:"match__header"},Ny=Cy(()=>t.createElementVNode("div",{class:"match__final-tag"},"FINAL",-1)),xy={class:"match__tag"},Ty={class:"match__body"},Oy={class:"match__data"},Vy={class:"match__acronym"},$y=["src"],Ay={class:"match__score"},zy=["src"],Ry={class:"match__acronym"},Iy={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",By,[t.createElementVNode("div",Ey,[Ny,t.createElementVNode("div",xy,t.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),1)]),t.createElementVNode("div",Ty,[t.createElementVNode("div",Oy,[t.createElementVNode("div",Vy,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,$y),t.createElementVNode("div",Ay,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,zy),t.createElementVNode("div",Ry,t.toDisplayString(e.data.visiting_team.acronym),1)]),t.createElementVNode("div",Iy,"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"]]),Fy=e=>(t.pushScopeId("data-v-4c9c0afe"),e=e(),t.popScopeId(),e),Py=["src"],Ly=["src"],Dy={class:"coming-match__body"},My={class:"coming-match__data"},jy=["src"],vy={style:{"margin-top":"16px"}},Wy={class:"coming-match__time"},Uy=Fy(()=>t.createElementVNode("div",{class:"coming-match__cst"},"CST",-1)),Hy=["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,c,d,u,m,f,h,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,Py),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,Ly),t.createElementVNode("div",Dy,[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",My,[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,jy),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",vy,[t.createElementVNode("div",Wy,[e.data.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString((d=e.data)==null?void 0:d.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((m=e.data)==null?void 0:m.schedule.replace(":00","")),1)],64))]),Uy]),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/"+((h=e.data)==null?void 0:h.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,Hy)],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"]]),Gy=e=>(t.pushScopeId("data-v-90640930"),e=e(),t.popScopeId(),e),qy=["src"],Jy=["src"],Zy={class:"coming-match__body"},Xy={class:"coming-match__data"},Ky=["src"],Yy={style:{"margin-top":"16px"}},Qy={class:"coming-match__time"},e1=Gy(()=>t.createElementVNode("div",{class:"coming-match__cst"},"CST",-1)),t1=["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,c,d,u,m,f,h,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,Jy),t.createElementVNode("div",Zy,[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",Xy,[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,Ky),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",Yy,[t.createElementVNode("div",Qy,[e.data.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString((d=e.data)==null?void 0:d.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((m=e.data)==null?void 0:m.schedule.replace(":00","")),1)],64))]),e1]),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/"+((h=e.data)==null?void 0:h.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,t1)],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"]]),o1=e=>(t.pushScopeId("data-v-0c45a1f6"),e=e(),t.popScopeId(),e),a1={class:"quadrant-matches"},n1={class:"quadrant-matches__header"},r1={class:"quadrant-matches__title"},i1=o1(()=>t.createElementVNode("span",null," →",-1)),s1={key:0,class:"quadrant-matches__body"},l1={class:"quadrant-matches__body",style:{"column-gap":"16px"}},c1={class:"quadrant-matches__body matches"},d1={key:0,class:"quadrant-matches__body"},m1={class:"quadrant-matches__body",style:{"column-gap":"16px"}},p1=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",a1,[t.createElementVNode("div",n1,[t.createElementVNode("h2",r1,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),i1])]),e.isFull?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.data.length>1?(t.openBlock(),t.createBlock(t.unref(nt),{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",c1,[(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(nt),{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",m1,[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",d1,[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(nt),{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",l1,[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(Jt,{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(Jt,{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",s1,[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(Jt,{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(Jt,{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"]]),u1={__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(p1,{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"])]))}},h1="_toniKroos_1mxz1_35",f1="_centralMidfielder_1mxz1_55",g1="_icnPlayIcon_1mxz1_75",y1="_verVideos_1mxz1_89",b1="_btnVideosOptions_1mxz1_109",w1="_btnVideosOptionsTeams_1mxz1_139",_1="_info_1mxz1_179",S1="_goalUnlock_1mxz1_203",k1="_teamsAmerica_1mxz1_229",C1="_imageIcon_1mxz1_249",B1="_imageIconTeam_1mxz1_271",E1="_playerTops_1mxz1_295",N1={toniKroos:h1,centralMidfielder:f1,icnPlayIcon:g1,verVideos:y1,btnVideosOptions:b1,btnVideosOptionsTeams:w1,info:_1,goalUnlock:S1,teamsAmerica:k1,imageIcon:C1,imageIconTeam:B1,playerTops:E1},x1=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},T1={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))}}},O1=["src"],V1=["src"],$1=["src"];function A1(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,O1)):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,V1)):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,$1)],6)}const z1={$style:N1},R1=x1(T1,[["render",A1],["__cssModules",z1]]),I1=(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 F1=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),P1=["src"],L1={key:1,class:"text"},D1=["src"],M1={class:"stats"},j1=F1(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),v1={class:"numstats"},W1={class:"leyend"};function U1(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,P1)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",L1,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,D1)):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",M1,[j1,t.createElementVNode("div",v1,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",W1,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const Ci=I1(Sa,[["render",U1],["__scopeId","data-v-fb269a1e"]]);function H1(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 G1={key:0,class:"text-left"},q1=["width","src"],J1=["checked"],Z1=["width","src"],X1={key:3,class:"text-right"};function K1(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",G1,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,J1),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,Z1)):t.createCommentVNode("",!0),o.textOptionRight!=""&&!o.hiddenLabels?(t.openBlock(),t.createElementBlock("span",X1,t.toDisplayString(o.textOptionRight),1)):t.createCommentVNode("",!0)],4)}const Ca={components:{GSCSlider:nt,GSCMosaicthebest:R1,GscSwitchComponent:Yo,GSCButton:Ci,GSCRadioToggle:ie(ka,[["render",K1],["__scopeId","data-v-c2ae0cf9"]])},setup(){const e=t.ref("myDivRef"),{elementSize:a}=H1(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){this.optionSelected=e,e=="Equipos"?(await this.getCategoryStats(this.season,1),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 d={},u={};c.teams.map(h=>{d[h[0]]={},d[h[0]].total=h[1],d[h[0]].id=r[h[0]].id,d[h[0]].name=r[h[0]].name,d[h[0]].img="https://az755631.vo.msecnd.net/teams-150/"+h[0]+".png",d[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 m=[],f=[];for(const h in d)m.push(d[h]);for(const h in u)f.push(u[h]);m.sort((h,g)=>h.total<g.total?1:-1),f.sort((h,g)=>h.total<g.total?1:-1),l[c.category?c.category:i].top__players=f,l[c.category?c.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=>({"6feb151d":e.backgroundColor,a8549d6a:e.fontFamily,"7fcd83a8":e.fontSize,"7904009c":e.fontColor,"156aea90":e.marginMosaic}))},xi=Ca.setup;Ca.setup=xi?(e,a)=>(Ni(),xi(e,a)):Ni;const Y1=e=>(t.pushScopeId("data-v-536978ff"),e=e(),t.popScopeId(),e),Q1={class:"gsc-best",ref:"myDivRef"},e2={class:"gsc-best__line-bar-tools"},t2={key:0,class:"gsc-best__line-bar-tools__title"},o2=Y1(()=>t.createElementVNode("span",null,"Los mejores ",-1)),a2={key:1,class:"gsc-best__line-bar-tools__titlefull"},n2={class:"unit-items"},r2={key:2,class:"gsc-best__line-bar-tools__tools"},i2={key:0,class:"gsc-best__line-bar-tools__tools__tabs"},s2={class:"gsc-best__line-bar-tools__tools__btn"},l2={key:0,class:"gsc-best__line-bar-tools-movil"},c2={class:"gsc-best__line-bar-tools-movil__tabs"},d2={class:"gsc-best__categories"},m2={class:"gsc-best__players"};function p2(e,a,o,n,i,r){const s=t.resolveComponent("GSCRadioToggle"),l=t.resolveComponent("GSCButton"),p=t.resolveComponent("GscSwitchComponent"),c=t.resolveComponent("GSCMosaicthebest"),d=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",Q1,[t.createElementVNode("div",e2,[n.elementSize.width>900?(t.openBlock(),t.createElementBlock("div",t2,[o2,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",a2,[t.createElementVNode("span",{style:t.normalizeStyle(n.elementSize.width<=380?"font-size: 15px; margin-top:0px; width:60px;":"")},"Los mejores ",4),t.createElementVNode("span",n2,[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",r2,[n.elementSize.width>900?(t.openBlock(),t.createElementBlock("div",i2,[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",s2,[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",l2,[t.createElementVNode("div",c2,[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",d2,[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",m2,[t.createVNode(d,{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,m)=>(t.openBlock(),t.createElementBlock("div",{key:m,class:t.normalizeClass(["gsc-best__players__item",m==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:m<9?"0"+(m+1):m+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 u2=ie(Ca,[["render",p2],["__scopeId","data-v-536978ff"]]),h2={PO1:"CFI",PO2:"CFV",PO3:"SFI",PO4:"SFV",PO5:"FI",PO6:"FV"},f2={DF:"Dieciseisavos",OF:"Octavos",CF:"Cuartos",SF:"Semifinales","3ER":"Tercer lugar",FINAL:"Final"},g2={4:"Octavos",5:"Cuartos",6:"Semifinales",7:"Final"},y2=(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 b2=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),w2=["src"],_2={key:1,class:"text"},S2=["src"],k2={class:"stats"},C2=b2(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),B2={class:"numstats"},E2={class:"leyend"};function N2(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,w2)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",_2,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,S2)):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",k2,[C2,t.createElementVNode("div",B2,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",E2,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const x2=y2(Ba,[["render",N2],["__scopeId","data-v-fb269a1e"]]),T2={class:"gsc-dropdown__main-container__item-selected"},O2=["height","width"],V2=["stroke"],$2={class:"gsc-dropdown__items-container"},A2=["onClick"],z2={key:0,class:"gsc-dropdown__items-footer"},R2={__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,h)=>{if(!o.modelValue&&(!o.onlyFirstTime||!h||!h.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 h=o.items.findIndex(g=>typeof f=="object"?JSON.stringify(g)===JSON.stringify(f):g===f);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 d(f){i.value&&!i.value.contains(f.target)&&(s.value=!1)}function u(f,h){o.isMultipleOption?r.value=-1:(r.value=h,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",d)}),t.onBeforeMount(()=>{document.removeEventListener("click",d)}),(f,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",T2,[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,V2)],8,O2))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",$2,[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=>u(g,y)},[t.renderSlot(f.$slots,"availableItem",{item:g})],10,A2))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",z2,[t.createVNode(t.unref(x2),{"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))}},I2=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},F2={class:"tournament-select__selected-tournament"},P2={class:"tournament-select__selected-tournament__logo"},L2=["src"],D2={class:"tournament-select__selected-tournament__name"},M2={__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(m=>({...m.tournament,seasons:m.seasons,seasonsIds:m.seasons.reduce((f,h)=>(f.add(h.id),f),new Set)})).sort((m,f)=>m.order-f.order)}}catch(u){throw new Error(u)}}function l(u){const m=new XMLHttpRequest,f=`${o.logosUrl}${u}.${o.logoFileType}`;return m.open("HEAD",f,!1),m.send(),m.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 d(u){a("input",u)}return t.onMounted(()=>{s()}),(u,m)=>(t.openBlock(),t.createElementBlock("div",{class:"tournament-select",style:t.normalizeStyle(i.value)},[t.createVNode(t.unref(R2),t.mergeProps(o,{"model-value":r.value,items:n.value,onInput:c,"onUpdate:modelValue":d}),{default:t.withCtx(({selectedItem:f})=>[t.createElementVNode("div",F2,[t.createElementVNode("div",P2,[l(f.id)?(t.openBlock(),t.createElementBlock("img",{key:0,src:`${o.logosUrl}${f.id}.${o.logoFileType}`,alt:""},null,8,L2)):t.createCommentVNode("",!0)]),t.createElementVNode("div",D2,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))}},j2=I2(M2,[["__scopeId","data-v-355af272"]]),v2=(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 W2=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),U2=["src"],H2={key:1,class:"text"},G2=["src"],q2={class:"stats"},J2=W2(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),Z2={class:"numstats"},X2={class:"leyend"};function K2(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,U2)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",H2,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,G2)):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,[J2,t.createElementVNode("div",Z2,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",X2,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const Y2=v2(Ea,[["render",K2],["__scopeId","data-v-fb269a1e"]]),Q2={class:"gsc-dropdown__main-container__item-selected"},eb=["height","width"],tb=["stroke"],ob={class:"gsc-dropdown__items-container"},ab=["onClick"],nb={key:0,class:"gsc-dropdown__items-footer"},rb={__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,h)=>{if(!o.modelValue&&(!o.onlyFirstTime||!h||!h.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 h=o.items.findIndex(g=>typeof f=="object"?JSON.stringify(g)===JSON.stringify(f):g===f);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 d(f){i.value&&!i.value.contains(f.target)&&(s.value=!1)}function u(f,h){o.isMultipleOption?r.value=-1:(r.value=h,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",d)}),t.onBeforeMount(()=>{document.removeEventListener("click",d)}),(f,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",Q2,[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,tb)],8,eb))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",ob,[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=>u(g,y)},[t.renderSlot(f.$slots,"availableItem",{item:g})],10,ab))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",nb,[t.createVNode(t.unref(Y2),{"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))}},ib=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},sb={class:"season-name"},lb={class:"items-list-season"},cb={__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(rb),{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",sb,[t.createElementVNode("span",null,t.toDisplayString(p.name),1)])]),availableItem:t.withCtx(({item:p})=>[t.createElementVNode("span",lb,t.toDisplayString(p.name),1)]),_:1},8,["items","model-value"]))}},db=ib(cb,[["__scopeId","data-v-3a11087d"]]);function Ai(e,a){return function(){return e.apply(a,arguments)}}const{toString:mb}=Object.prototype,{getPrototypeOf:Na}=Object,Zt=(e=>a=>{const o=mb.call(a);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),Ne=e=>(e=e.toLowerCase(),a=>Zt(a)===e),Xt=e=>a=>typeof a===e,{isArray:Ke}=Array,ut=Xt("undefined");function pb(e){return e!==null&&!ut(e)&&e.constructor!==null&&!ut(e.constructor)&&me(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const zi=Ne("ArrayBuffer");function ub(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&zi(e.buffer),a}const hb=Xt("string"),me=Xt("function"),Ri=Xt("number"),Kt=e=>e!==null&&typeof e=="object",fb=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)},gb=Ne("Date"),yb=Ne("File"),bb=Ne("Blob"),wb=Ne("FileList"),_b=e=>Kt(e)&&me(e.pipe),Sb=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]"))},kb=Ne("URLSearchParams"),Cb=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ht(e,a,{allOwnKeys:o=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),Ke(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=>!ut(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):Ke(n)?a[r]=n.slice():a[r]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&ht(arguments[n],o);return a}const Bb=(e,a,o,{allOwnKeys:n}={})=>(ht(a,(i,r)=>{o&&me(i)?e[r]=Ai(i,o):e[r]=i},{allOwnKeys:n}),e),Eb=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Nb=(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)},xb=(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},Tb=(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},Ob=e=>{if(!e)return null;if(Ke(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},Vb=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&Na(Uint8Array)),$b=(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])}},Ab=(e,a)=>{let o;const n=[];for(;(o=e.exec(a))!==null;)n.push(o);return n},zb=Ne("HTMLFormElement"),Rb=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),Ib=Ne("RegExp"),Di=(e,a)=>{const o=Object.getOwnPropertyDescriptors(e),n={};ht(o,(i,r)=>{let s;(s=a(i,r,e))!==!1&&(n[r]=s||i)}),Object.defineProperties(e,n)},Fb=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+"'")})}})},Pb=(e,a)=>{const o={},n=i=>{i.forEach(r=>{o[r]=!0})};return Ke(e)?n(e):n(String(e).split(a)),o},Lb=()=>{},Db=(e,a)=>(e=+e,Number.isFinite(e)?e:a),Ta="abcdefghijklmnopqrstuvwxyz",Mi="0123456789",ji={DIGIT:Mi,ALPHA:Ta,ALPHA_DIGIT:Ta+Ta.toUpperCase()+Mi},Mb=(e=16,a=ji.ALPHA_DIGIT)=>{let o="";const{length:n}=a;for(;e--;)o+=a[Math.random()*n|0];return o};function jb(e){return!!(e&&me(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const vb=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=Ke(n)?[]:{};return ht(n,(s,l)=>{const p=o(s,i+1);!ut(p)&&(r[l]=p)}),a[i]=void 0,r}}return n};return o(e,0)},Wb=Ne("AsyncFunction"),Ub=e=>e&&(Kt(e)||me(e))&&me(e.then)&&me(e.catch),k={isArray:Ke,isArrayBuffer:zi,isBuffer:pb,isFormData:Sb,isArrayBufferView:ub,isString:hb,isNumber:Ri,isBoolean:fb,isObject:Kt,isPlainObject:Yt,isUndefined:ut,isDate:gb,isFile:yb,isBlob:bb,isRegExp:Ib,isFunction:me,isStream:_b,isURLSearchParams:kb,isTypedArray:Vb,isFileList:wb,forEach:ht,merge:xa,extend:Bb,trim:Cb,stripBOM:Eb,inherits:Nb,toFlatObject:xb,kindOf:Zt,kindOfTest:Ne,endsWith:Tb,toArray:Ob,forEachEntry:$b,matchAll:Ab,isHTMLForm:zb,hasOwnProperty:Li,hasOwnProp:Li,reduceDescriptors:Di,freezeMethods:Fb,toObjectSet:Pb,toCamelCase:Rb,noop:Lb,toFiniteNumber:Db,findKey:Ii,global:Fi,isContextDefined:Pi,ALPHABET:ji,generateString:Mb,isSpecCompliantForm:jb,toJSONObject:vb,isAsyncFn:Wb,isThenable:Ub};function M(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(M,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=M.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(M,Wi),Object.defineProperty(vi,"isAxiosError",{value:!0}),M.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"),M.call(s,e.message,a,o,n,i),s.cause=e,s.name=e.name,r&&Object.assign(s,r),s};const Hb=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 Gb(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,h){return!k.isUndefined(h[f])});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(f){if(f===null)return"";if(k.isDate(f))return f.toISOString();if(!l&&k.isBlob(f))throw new M("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 c(f,h,g){let y=f;if(f&&!g&&typeof f=="object"){if(k.endsWith(h,"{}"))h=n?h:h.slice(0,-2),f=JSON.stringify(f);else if(k.isArray(f)&&Gb(f)||(k.isFileList(f)||k.endsWith(h,"[]"))&&(y=k.toArray(f)))return h=Ui(h),y.forEach(function(C,O){!(k.isUndefined(C)||C===null)&&a.append(s===!0?Hi([h],O,r):s===null?h:h+"[]",p(C))}),!1}return Oa(f)?!0:(a.append(Hi(g,h,r),p(f)),!1)}const d=[],u=Object.assign(qb,{defaultVisitor:c,convertValue:p,isVisitable:Oa});function m(f,h){if(!k.isUndefined(f)){if(d.indexOf(f)!==-1)throw Error("Circular reference detected in "+h.join("."));d.push(f),k.forEach(f,function(g,y){(!(k.isUndefined(g)||g===null)&&i.call(a,g,k.isString(y)?y.trim():y,h,u))===!0&&m(g,h?h.concat(y):[y])}),d.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 qi=Va.prototype;qi.append=function(e,a){this._pairs.push([e,a])},qi.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 Jb(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ji(e,a,o){if(!a)return e;const n=o&&o.encode||Jb,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 Zb{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=Zb,Xi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Xb=typeof URLSearchParams<"u"?URLSearchParams:Va,Kb=typeof FormData<"u"?FormData:null,Yb=typeof Blob<"u"?Blob:null,Qb=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),ew=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",xe={isBrowser:!0,classes:{URLSearchParams:Xb,FormData:Kb,Blob:Yb},isStandardBrowserEnv:Qb,isStandardBrowserWebWorkerEnv:ew,protocols:["http","https","file","blob","url","data"]};function tw(e,a){return Qt(e,new xe.classes.URLSearchParams,Object.assign({visitor:function(o,n,i,r){return xe.isNode&&k.isBuffer(o)?(this.append(n,o.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},a))}function ow(e){return k.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function aw(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 Ki(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]=aw(i[s])),!l)}if(k.isFormData(e)&&k.isFunction(e.entries)){const o={};return k.forEachEntry(e,(n,i)=>{a(ow(n),i,o,0)}),o}return null}function nw(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&&n?JSON.stringify(Ki(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 tw(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),nw(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"?M.from(r,M.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}}};k.forEach(["delete","get","head","post","put","patch"],e=>{$a.headers[e]={}});const Aa=$a,rw=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"]),iw=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
|
-
`):" "+os(r[0]):"as no adapter specified";throw new M("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 gt(null,e)}function ns(e){return Fa(e),e.headers=$e.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),as.getAdapter(e.adapter||Aa.adapter)(e).then(function(a){return Fa(e),a.data=Ra.call(e,e.transformResponse,a),a.headers=$e.from(a.headers),a},function(a){return Qi(a)||(Fa(e),a&&a.response&&(a.response.data=Ra.call(e,e.transformResponse,a.response),a.response.headers=$e.from(a.response.headers))),Promise.reject(a)})}const rs=e=>e instanceof $e?e.toJSON():e;function Ye(e,a){a=a||{};const o={};function n(c,d,u){return k.isPlainObject(c)&&k.isPlainObject(d)?k.merge.call({caseless:u},c,d):k.isPlainObject(d)?k.merge({},d):k.isArray(d)?d.slice():d}function i(c,d,u){if(k.isUndefined(d)){if(!k.isUndefined(c))return n(void 0,c,u)}else return n(c,d,u)}function r(c,d){if(!k.isUndefined(d))return n(void 0,d)}function s(c,d){if(k.isUndefined(d)){if(!k.isUndefined(c))return n(void 0,c)}else return n(void 0,d)}function l(c,d,u){if(u in a)return n(c,d);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,d)=>i(rs(c),rs(d),!0)};return k.forEach(Object.keys(Object.assign({},e,a)),function(c){const d=p[c]||i,u=d(e[c],a[c],c);k.isUndefined(u)&&d!==l||(o[c]=u)}),o}const is="1.5.1",Pa={};["object","boolean","number","function","string","symbol"].forEach((e,a)=>{Pa[e]=function(o){return typeof o===e||"a"+(a<1?"n ":" ")+e}});const ss={};Pa.transitional=function(e,a,o){function n(i,r){return"[Axios v"+is+"] Transitional option '"+i+"'"+r+(o?". "+o:"")}return(i,r,s)=>{if(e===!1)throw new M(n(r," has been removed"+(a?" in "+a:"")),M.ERR_DEPRECATED);return a&&!ss[r]&&(ss[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 Sw(e,a,o){if(typeof e!="object")throw new M("options must be an object",M.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 M("option "+r+" must be "+p,M.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new M("Unknown option "+r,M.ERR_BAD_OPTION)}}const La={assertOptions:Sw,validators:Pa},Ie=La.validators;class oo{constructor(a){this.defaults=a,this.interceptors={request:new Zi,response:new Zi}}request(a,o){typeof a=="string"?(o=o||{},o.url=a):o=a||{},o=Ye(this.defaults,o);const{transitional:n,paramsSerializer:i,headers:r}=o;n!==void 0&&La.assertOptions(n,{silentJSONParsing:Ie.transitional(Ie.boolean),forcedJSONParsing:Ie.transitional(Ie.boolean),clarifyTimeoutError:Ie.transitional(Ie.boolean)},!1),i!=null&&(k.isFunction(i)?o.paramsSerializer={serialize:i}:La.assertOptions(i,{encode:Ie.function,serialize:Ie.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=$e.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 d,u=0,m;if(!p){const h=[ns.bind(this),void 0];for(h.unshift.apply(h,l),h.push.apply(h,c),m=h.length,d=Promise.resolve(o);u<m;)d=d.then(h[u++],h[u++]);return d}m=l.length;let f=o;for(u=0;u<m;){const h=l[u++],g=l[u++];try{f=h(f)}catch(y){g.call(this,y);break}}try{d=ns.call(this,f)}catch(h){return Promise.reject(h)}for(u=0,m=c.length;u<m;)d=d.then(c[u++],c[u++]);return d}getUri(a){a=Ye(this.defaults,a);const o=es(a.baseURL,a.url);return Ji(o,a.params,a.paramsSerializer)}}k.forEach(["delete","get","head","options"],function(e){oo.prototype[e]=function(a,o){return this.request(Ye(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(Ye(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 gt(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 kw=Da;function Cw(e){return function(a){return e.apply(null,a)}}function Bw(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 Ew=Ma;function ls(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 ls(Ye(e,n))},o}const q=ls(Aa);q.Axios=ao,q.CanceledError=gt,q.CancelToken=kw,q.isCancel=Qi,q.VERSION=is,q.toFormData=Qt,q.AxiosError=M,q.Cancel=q.CanceledError,q.all=function(e){return Promise.all(e)},q.spread=Cw,q.isAxiosError=Bw,q.mergeConfig=Ye,q.AxiosHeaders=$e,q.formToJSON=e=>Ki(k.isHTMLForm(e)?new FormData(e):e),q.getAdapter=as.getAdapter,q.HttpStatusCode=Ew,q.default=q;const cs=q,Nw=(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},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)}}},ds=()=>{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}))},ms=ja.setup;ja.setup=ms?(e,a)=>(ds(),ms(e,a)):ds;const xw={class:"scrollable-container"},Tw={class:"scrollable-arrows"},Ow=["width","height","viewBox"],Vw=["stroke"],$w={class:"scrollable-wrapper"},Aw={class:"scrollable-arrows"},zw=["width","height","viewBox"],Rw=["stroke"];function Iw(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",xw,[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",Tw,[(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,Vw)],8,Ow))])],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",$w,[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",Aw,[(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,Rw)],8,zw))])],2)):t.createCommentVNode("",!0)])}const Fw=Nw(ja,[["render",Iw],["__scopeId","data-v-a717f423"]]),Qe=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o};let ps=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)ps=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),ps.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},us=()=>{t.useCssVars(e=>({"3a7c75cd":e.colorBackgroundHome+"45","12fcf91e":e.colorBackgroundAway+"45","21da0186":e.colorBackgroundHome,"21e02568":e.colorBackgroundAway}))},hs=va.setup;va.setup=hs?(e,a)=>(us(),hs(e,a)):us;const no=e=>(t.pushScopeId("data-v-e31e7b5e"),e=e(),t.popScopeId(),e),Pw=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)),Lw=[Pw],Dw=no(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),Mw=["src"],jw=no(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),vw=no(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),Ww=["src"],Uw=["src"],Hw={class:"text-container"};function Gw(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))},Lw,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),Dw,t.createElementVNode("img",{src:o.background,alt:"",class:"bkg-blackwhite position-image"},null,8,Mw),t.createElementVNode("div",{class:t.normalizeClass([r.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(r.baselogoright)},null,2),jw,vw,t.createElementVNode("img",{src:o.logoHome,alt:"",class:t.normalizeClass(r.teamlogo)},null,10,Ww),t.createElementVNode("img",{src:o.logoAway,alt:"",class:t.normalizeClass(r.logoright)},null,10,Uw),t.createElementVNode("div",Hw,[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 qw=Qe(va,[["render",Gw],["__scopeId","data-v-e31e7b5e"]]);let fs=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)fs=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),fs.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},gs=()=>{t.useCssVars(e=>({d99ace42:e.colorBackgroundHome,"7ba58dc9":e.colorBackgroundHome+"36"}))},ys=Wa.setup;Wa.setup=ys?(e,a)=>(gs(),ys(e,a)):gs;const yt=e=>(t.pushScopeId("data-v-e678b93e"),e=e(),t.popScopeId(),e),Jw=yt(()=>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)),Zw=[Jw],Xw=yt(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),Kw=["src"],Yw=yt(()=>t.createElementVNode("div",{class:"base-logo"},null,-1)),Qw=["src"],e_=yt(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),t_={class:"text-container"},o_={class:"player-image position-image"},a_=["src"],n_=["src"],r_=["src"],i_=yt(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1));function s_(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))},Zw,2),Xw,t.createElementVNode("img",{src:o.background,alt:"",class:"bkg-blackwhite position-image"},null,8,Kw),Yw,t.createElementVNode("img",{src:o.logoHome,alt:"",class:t.normalizeClass(r.teamlogo)},null,10,Qw),e_,t.createElementVNode("div",t_,[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",o_,[o.typeImg==0?(t.openBlock(),t.createElementBlock("img",{key:0,src:o.photoProfile,class:t.normalizeClass(r.playerimage)},null,10,a_)):t.createCommentVNode("",!0),o.typeImg==1?(t.openBlock(),t.createElementBlock("img",{key:1,src:o.photoProfile,alt:""},null,8,n_)):t.createCommentVNode("",!0),o.typeImg==2?(t.openBlock(),t.createElementBlock("img",{key:2,src:o.photoProfile,class:"img-number"},null,8,r_)):t.createCommentVNode("",!0)]),i_],2)}const l_=Qe(Wa,[["render",s_],["__scopeId","data-v-e678b93e"]]);let bs=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)bs=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),bs.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},ws=()=>{t.useCssVars(e=>({"1d5400c8":e.colorBackgroundHome,"679455a8":e.colorBackgroundHome+"36"}))},_s=Ua.setup;Ua.setup=_s?(e,a)=>(ws(),_s(e,a)):ws;const ro=e=>(t.pushScopeId("data-v-8dfe2f43"),e=e(),t.popScopeId(),e),c_=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)),d_=[c_],m_=ro(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),p_=["src"],u_={width:"275",height:"125",viewBox:"0 0 275 125",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"base-logo"},h_=["fill"],f_=["id"],g_=["stop-color"],y_=["stop-color"],b_=["src"],w_=ro(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),__={class:"text-container"},S_=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 k_(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))},d_,2),m_,t.createElementVNode("img",{src:o.background,alt:"",class:"bkg-blackwhite position-image"},null,8,p_),(t.openBlock(),t.createElementBlock("svg",u_,[t.createElementVNode("path",{d:"M274.641 124.094L0 0.675049V124.094H274.641Z",fill:"url(#paint0_linear_7_"+o.nameTeam.replaceAll(" ","")+")"},null,8,h_),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,g_),t.createElementVNode("stop",{offset:"1","stop-color":o.colorBackgroundHome},null,8,y_)],8,f_)])])),t.createElementVNode("img",{class:t.normalizeClass(r.teamlogo),src:o.logoHome,alt:""},null,10,b_),w_,t.createElementVNode("div",__,[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)]),S_],2)}const C_=Qe(Ua,[["render",k_],["__scopeId","data-v-8dfe2f43"]]);let Ss=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)Ss=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Ss.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},ks=()=>{t.useCssVars(e=>({"7017716b":e.colorBackgroundHome,"70145f7a":e.colorBackgroundAway,"6b6ebad5":e.colorBackgroundAway+"62",da23a686:e.colorBackgroundHome+"36"}))},Cs=Ha.setup;Ha.setup=Cs?(e,a)=>(ks(),Cs(e,a)):ks;const io=e=>(t.pushScopeId("data-v-147d2a5e"),e=e(),t.popScopeId(),e),B_=io(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),E_=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)),N_=[E_],x_={class:"player-container"},T_=["src"],O_=["src"],V_=["src"],$_={class:"container-score"},A_=["src"],z_=["src"],R_=["src"],I_=io(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),F_=io(()=>t.createElementVNode("div",{class:"gradient-color"},null,-1));function P_(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(r.thumbnailhighlights)},[B_,t.createElementVNode("div",{class:t.normalizeClass(r.playbutton),onClick:a[0]||(a[0]=(...s)=>r.onclickPlayVideos&&r.onclickPlayVideos(...s))},N_,2),t.createElementVNode("div",x_,[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_)):t.createCommentVNode("",!0),o.typeImg==1?(t.openBlock(),t.createElementBlock("img",{key:3,src:o.photoProfile,alt:""},null,8,O_)):t.createCommentVNode("",!0),o.typeImg==2?(t.openBlock(),t.createElementBlock("img",{key:4,src:o.photoProfile,class:"img-number"},null,8,V_)):t.createCommentVNode("",!0),t.createElementVNode("div",$_,[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,A_),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,z_),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,R_),I_,F_],2)}const L_=Qe(Ha,[["render",P_],["__scopeId","data-v-147d2a5e"]]);let Bs=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)Bs=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Bs.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Es=()=>{t.useCssVars(e=>({58015760:e.colorBackgroundHome+"30",be90e604:e.colorBackgroundHome}))},Ns=Ga.setup;Ga.setup=Ns?(e,a)=>(Es(),Ns(e,a)):Es;const so=e=>(t.pushScopeId("data-v-1cf48c2c"),e=e(),t.popScopeId(),e),D_=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)),M_=[D_],j_={class:"player-image position-image"},v_=["src"],W_=["src"],U_=["src"],H_=["src"],G_=so(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),q_=["src"],J_=so(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),Z_={class:"text-container"},X_=so(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),K_={class:"base-logo",width:"91",height:"216",viewBox:"0 0 91 216",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Y_=["fill"];function Q_(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))},M_,2),t.createElementVNode("div",j_,[o.typeImg==0?(t.openBlock(),t.createElementBlock("img",{key:0,src:o.photoProfile,class:t.normalizeClass(r.playerimage)},null,10,v_)):t.createCommentVNode("",!0),o.typeImg==1?(t.openBlock(),t.createElementBlock("img",{key:1,src:o.photoProfile,alt:""},null,8,W_)):t.createCommentVNode("",!0),o.typeImg==2?(t.openBlock(),t.createElementBlock("img",{key:2,src:o.photoProfile,class:"img-number"},null,8,U_)):t.createCommentVNode("",!0)]),t.createElementVNode("img",{src:o.logoHome,alt:"",class:"team-logo"},null,8,H_),G_,t.createElementVNode("img",{src:o.background,alt:"",class:"bkg-blackwhite position-image"},null,8,q_),J_,t.createElementVNode("div",Z_,[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)]),X_,(t.openBlock(),t.createElementBlock("svg",K_,[t.createElementVNode("path",{d:"M91.5 216L0 -0.5H91.5V216Z",fill:o.colorBackgroundHome},null,8,Y_)]))],2)}const eS=Qe(Ga,[["render",Q_],["__scopeId","data-v-1cf48c2c"]]);function tS(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 oS="_ptg_6q5fq_3",aS="_ptgtitle_6q5fq_8",nS="_ptgtitle450_6q5fq_24",rS="_pgtcontainercard_6q5fq_40",iS="_pgtcontainercard350_6q5fq_45",sS={ptg:oS,ptgtitle:aS,ptgtitle450:nS,pgtcontainercard:rS,pgtcontainercard350:iS},qa={components:{GSCSlider:Fw,GSCThumbnailCategory:l_,GSCThumbnailCategoryTeam:C_,GSCThumbnailHighlightGamePlayer:L_,GSCThumbnailSummaryPlayer:eS,GSCThumbnailHighlightGameHistoric:qw},setup(){const e=t.ref("ptgDiv"),{elementSize:a}=tS(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){var a=[];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];const o=[1,2,3];let n={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:e.categories&&e.categories.length?e.categories:a,gameIds:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[e.matchResult]:o,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(n.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",n)},onClickVideos(e){this.$emit("onClickVideos",e)},onClickCard(e){this.$emit("onClickCard",e)},async getTeamsInfo(e){const a=await cs.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=cs.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(){}},xs=()=>{t.useCssVars(e=>({"890516d6":e.backgroundColor}))},Ts=qa.setup;qa.setup=Ts?(e,a)=>(xs(),Ts(e,a)):xs;function lS(e,a,o,n,i,r){const s=t.resolveComponent("GSCThumbnailCategory"),l=t.resolveComponent("GSCThumbnailCategoryTeam"),p=t.resolveComponent("GSCThumbnailHighlightGamePlayer"),c=t.resolveComponent("GSCThumbnailHighlightGameHistoric"),d=t.resolveComponent("GSCThumbnailSummaryPlayer"),u=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(u,{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:h=>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:h=>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:h=>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(c,{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:h=>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(c,{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:h=>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:h=>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:h=>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(c,{key:7,items:m,"color-background-home":m.backgroundhome,"color-background-away":m.backgroundaway,"logo-home":m.logohome,"logo-away":m.logoaway,onOnclickPlayVideos:h=>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:h=>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:h=>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:h=>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(d,{key:11,type:"player","color-background-home":m.colorbackgroundhome,"color-background-away":m.colorbackgroundaway,"name-player":m.nameplayer,"type-img":0,onOnclickPlayVideos:h=>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 cS={name:"DiscoverVideos",components:{GscSwitchComponent:Yo,GSCPlayerTeamGame:Qe(qa,[["render",lS],["__cssModules",{$style:sS}]]),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"],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],d=[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=d,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)}}},dS=e=>(t.pushScopeId("data-v-626b4da8"),e=e(),t.popScopeId(),e),mS={class:"discover-videos",ref:"myDivRef"},pS={class:"title-and-button"},uS=dS(()=>t.createElementVNode("div",{class:"title-value"},"Descubre videos",-1)),hS={class:"btn-search-videos"};function fS(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",mS,[t.createElementVNode("div",pS,[uS,t.createElementVNode("div",hS,[t.createVNode(s,{style:{"margin-top":"4px"},width:"182px","text-value":"Buscar videos","font-color":"#ffffff","font-family":"Poppins-Light","font-size":"16px",icon:"https://golstatsimages.blob.core.windows.net/images-library/icn-buscar-videos.svg","icon-size":"30px","icon-position":"right","button-max-width":"250px",height:"38px","border-radius":"50px","border-width":"1","background-color":"transparent","border-color":"#CBEE6B","active-background-color":"#CBEE6B",onClick:r.onClickOpenMedia},null,8,["onClick"])])]),o.userForDiscoverVideos.type===i.resumeType&&o.hasNextRival?(t.openBlock(),t.createBlock(l,{key:0,style:{"margin-left":"0px"},buttons:["Resumen","Proximo rival"],onInput:a[0]||(a[0]=c=>i.currentTabMoreVideos=c),background:"trasparent",height:"28px",width:"160px",fontSize:"14px","font-family":"Poppins-Light",backgroundOptionActive:"transparent",borderWidth:"2px",type:2,arrow:!1,selectedOption:i.currentTabMoreVideos,onOpenmedia:r.onOpenMedia},null,8,["selectedOption","onOpenmedia"])):t.createCommentVNode("",!0),o.userForDiscoverVideos.type===i.resumeType?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.currentTabMoreVideos=="Resumen"?(t.openBlock(),t.createBlock(p,{key:0,type:7,title:"",style:{"margin-top":"-30px"},backgroundColor:"transparent",data:{season:o.userForDiscoverVideos.season,team:o.userForDiscoverVideos.team,category:i.resumeCategory},width:"100%",onOpenmedia:r.onOpenMedia},null,8,["data","onOpenmedia"])):(t.openBlock(),t.createBlock(p,{key:1,type:7,style:{"margin-top":"-30px"},title:"",backgroundColor:"transparent",data:{season:o.userForDiscoverVideos.season,team:o.nextRivalTeam.id,category:i.resumeCategory},width:"100%",onOpenmedia:r.onOpenMedia},null,8,["data","onOpenmedia"]))],64)):(t.openBlock(),t.createBlock(p,{key:2,style:{"margin-top":"-30px"},type:13,data:{season:o.userForDiscoverVideos.season,category:i.goalsCategory},width:"100%",backgroundColor:"transparent",title:"",onOpenmedia:r.onOpenMedia},null,8,["data","onOpenmedia"]))],512)}const gS={components:{GSCSeasonSelect:db,GSCTournamentSelect:j2,GSCGames:u1,GSCGridTeamsMatches:bc,GSCPlayersLanding:mc,GSCTops:u2,GSCTableCalendar:cy,DiscoverVideos:ie(cS,[["render",fS],["__scopeId","data-v-626b4da8"]])},setup(){const e=t.ref("landingref"),{elementSize:a}=Ml(e);return{landingref:e,elementSize:a}},watch:{team:{immediate:!0,deep:!0,async handler(e){if(Object.keys(this.seasonSelected).length!==0){const a=await this.generateSeasons(this.seasonSelected);this.seasonsSelected=a,this.fetchGames(e,a)}}},closestRound(e){this.selectedRoundKeyIndex=this.tournamentScheduleKeys.findIndex(a=>a===e),this.selectedRound=e}},props:{currentSeasonId:{type:Number,default:0},season:{type:Number,default:1772},isplayer:{type:Boolean,default:!1},user:{type:Object,default:()=>{}},team:{type:Number,default:0},player:{type:Number,default:0},gamesPerMatchDay:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}}},data(){return{defaultGameId:0,lastSeasonsIds:[],gamesPages:new Map,selectedRoundKeyIndex:0,selectedRound:0,fullTournamentScheduleFull:[],defaultMatchDayKey:null,isCupTournament:!1,retries:3,userTeamGames:[],isCupLegacyTournament:!1,tournamentScheduleKeys:[],currentTournamentGames:null,currentTournamentTeams:null,gamesUrl:"https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason/",gamesUrl2:"https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",seasonSelected:{},seasonSelectedDropDowns:{},seasonsSelected:[],fullTournamentSchedule:{},tournamentSelected:{},tournamentSelectedDropDowns:{seasons:[]},playersLength:0,nextRivalId:0,loadDiscover:!1,hasNextRival:!1,tokenFree:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{gamesFullLeague(){var e=[];if(this.fullTournamentScheduleFull&&Object.keys(this.fullTournamentScheduleFull).length>0)for(let a=0;a<this.fullTournamentScheduleFull[this.selectedRound].length;a++)for(let o=0;o<this.fullTournamentScheduleFull[this.selectedRound][a].games.length;o++)e.push(this.fullTournamentScheduleFull[this.selectedRound][a].games[o]);return e},closestRound(){return this.userTeamGames&&this.userTeamGames.length?this.getUserTeamClosestRound(this.fullTournamentScheduleFull):this.getNormalClosestRound(this.fullTournamentScheduleFull)},containerGridCalendarTable(){return this.elementSize.width<=1e3?"container-grid-calendar-table-mobile":"container-grid-calendar-table"},containerbackground(){return this.elementSize.width<=680?"container-background-movil":"container-background"},containerdata(){return this.elementSize.width<=680?"container-data-movil":"container-data"}},methods:{formatUsername(e){const a=e.split(",");let o="",n="";return a[1]?(n=a[1].trim().split(" "),n[0]?o=n[0]:o=a[1]):a[0]&&(n=a[0].trim().split(" "),n[0]?o=n[0]:o=a[0]),o.trim()},onAction(e){this.$emit("action",e)},onOpenMedia(e){this.$emit("openmedia",e)},onOpenProfile(e){this.$emit("onOpenProfile",e)},onClickMatch(e){this.$emit("openGame",e)},onClickCalendar(){const e={type:this.tournamentSelected.id==this.user.tournament?1:0,team:this.team,season:this.seasonSelectedDropDowns};this.$emit("onClickMyCalendar",e)},mapDiscoverVideos(){return{type:this.tournamentSelected.id==this.user.tournament?1:2,team:this.team,season:this.seasonSelectedDropDowns}},moreTops(){const e={team:this.team,season:this.seasonSelectedDropDowns};this.$emit("openTops",e)},clickProfileBtn(e){this.$emit("openProfile",e)},viewAll(){const e={team:this.team,season:this.seasonSelectedDropDowns};this.$emit("openAllPlayers",e)},getTotalPlayers(e){this.playersLength=e},clickCard(e){const a={data:e,isPlayer:this.isplayer};this.$emit("clickOnMainCards",a)},async fetchGames(e,a){const o=a.map(i=>`seasons=${i.id}`).join("&"),n=Tt.create({headers:{Authorization:`${this.tokenFree}`}});this.fullTournamentSchedule=await n.get(this.gamesUrl+e+"?"+o),this.nextRivalId=Object.keys(this.fullTournamentSchedule).length>0?this.user.team==this.fullTournamentSchedule.data.prematch.home_team?this.fullTournamentSchedule.data.prematch.visiting_team:this.fullTournamentSchedule.data.prematch.home_team:0,this.loadDiscover=!0,this.hasNextRival=this.fullTournamentSchedule.data.prematch.game_status===4},async generateSeasons(e){const a=[{id:e.id,type:e.type}];return e.related_seasons&&e.related_seasons.length&&a.push(...e.related_seasons.map(o=>({id:o.id,type:o.type}))),a},async onInputTournament(e){this.tournamentSelected=e,this.tournamentSelectedDropDowns.id!==e.id&&(this.tournamentSelectedDropDowns=e)},async onInputSeason(e){if(this.seasonSelected=e,this.tournamentSelected.id!=this.user.tournament){const a=await this.generateSeasons(this.seasonSelected);this.seasonsSelected=a,await this.createFullTournamentScheme(a,!1)}else{const a=await this.generateSeasons(this.seasonSelected);this.seasonsSelected=a,await this.fetchGames(this.user.team,a)}this.seasonSelectedDropDowns!==e.id&&(this.seasonSelectedDropDowns=e.id,this.$emit("change-season-id",e.id))},async fetchTournaments(e){try{const{data:a}=await Tt.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments");return a}catch(a){if(e>0)return this.fetchTournaments(e-1);throw new Error(a)}},async fetchSeasonsGamesAndTeams(e,a,o=""){let n=o;try{n||(n=this.gamesUrl2,e.forEach((l,p)=>{n+=`${p===0?"":"&"}seasons=${l}`}));const i=Tt.create({headers:{Authorization:`${this.tokenFree}`}}),{data:{data:r,teams:s}}=await i.get(n);return{seasonsAndGames:r,seasonsAndTeams:s}}catch(i){if(a>0)return this.fetchSeasonsGamesAndTeams(e,a-1,n);throw new Error(i)}},areSeasonsDifferent(e){for(const a of e)if(!this.lastSeasonsIds.includes(a.season_id))return!0;return!1},async createFullTournamentScheme(e,a){try{this.fullTournamentSchedule={},this.userTeamGames=[];let o=0;const{seasonsAndGames:n,seasonsAndTeams:i}=await this.fetchSeasonsGamesAndTeams(e.map(p=>p.id),3);if(a&&this.areSeasonsDifferent(n))return;n.forEach(p=>{const{type:c}=e.find(d=>d.id===p.season_id);p.type=c,p.games.forEach(d=>{d.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((d,u)=>{const m={...u};return m.dateTimeMillis=new Date(m.date_time_utc).valueOf(),m.home_team=s.find(f=>f.team_id===u.home_team),m.visiting_team=s.find(f=>f.team_id===u.visiting_team),d[u.matchday_abbreviation]?d[u.matchday_abbreviation][u.game_status===3?"canceled":u.date]?d[u.matchday_abbreviation][u.game_status===3?"canceled":u.date].push(m):d[u.matchday_abbreviation][u.game_status===3?"canceled":u.date]=[m]:d[u.matchday_abbreviation]={[u.game_status===3?"canceled":u.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),d},{});this.userTeamGames.sort((d,u)=>d.dateTimeMillis-u.dateTimeMillis);for(let[d,u]of Object.entries(c))c[d]=Object.entries(u).map(([m,f])=>({date:m,games:f.sort((h,g)=>h.dateTimeMillis-g.dateTimeMillis)})),c[d].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:c}}):[];l.sort((p,c)=>p.weight-c.weight),this.fullTournamentScheduleFull=l.reduce((p,c)=>{for(const[d,u]of Object.entries(c.schedule))if(c.type===0)if(this.isCup){const m=d.replace("M",""),f=`Jornada ${m}`;this.isCupLegacy?p[g2[m]||f]=u:p[f2[d]||f]=u}else p[Number(d.replace("M","")).toString()]=u;else c.type===2?["PI1","PI2"].includes(d)?p[d]=u:p[`R${Number(d.replace("PO",""))}`]=u:c.type===1&&(p[h2[d]]=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 d=new Date(c.date_time_utc).getTime()+66e5;r[s].push(d)})}),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 d=c-n;d>=0&&(p===null||d<p)&&(p=d)}),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(){}},yS=e=>(t.pushScopeId("data-v-849cfb29"),e=e(),t.popScopeId(),e),bS={class:"gsclanding",ref:"landingref"},wS={key:0,class:"container-selectors-mobile"},_S={class:"container-selectors-mobile-tournament"},SS={class:"container-selectors-mobile-season"},kS={key:0,class:"home-item-movil"},CS=yS(()=>t.createElementVNode("div",{class:"home-movil"},"Inicio",-1)),BS={class:"name-user-movil"},ES={key:1,class:"home-item"},NS={key:2,class:"bar-settings"},xS={class:"name-user"},TS={class:"container-selectors"},OS={class:"selector-tournament"},VS={class:"selector-seasons"},$S={key:3,class:"container-games"},AS={key:4,class:"container-players"},zS={class:"container-tops"},RS={key:5,class:"container-vr"};function IS(e,a,o,n,i,r){const s=t.resolveComponent("GSCTournamentSelect"),l=t.resolveComponent("GSCSeasonSelect"),p=t.resolveComponent("GSCGames"),c=t.resolveComponent("GSCGridTeamsMatches"),d=t.resolveComponent("GSCTableCalendar"),u=t.resolveComponent("GSCPlayersLanding"),m=t.resolveComponent("GSCTops"),f=t.resolveComponent("DiscoverVideos");return t.openBlock(),t.createElementBlock("div",bS,[n.elementSize.width<=680?(t.openBlock(),t.createElementBlock("div",wS,[t.createElementVNode("div",_S,[t.createVNode(s,{"current-season-id":o.currentSeasonId,width:"100%",onInput:r.onInputTournament},null,8,["current-season-id","onInput"])]),t.createElementVNode("div",SS,[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",kS,[CS,t.createElementVNode("div",BS,"Bienvenido "+t.toDisplayString(r.formatUsername(o.user.name)),1)])):t.createCommentVNode("",!0),n.elementSize.width>680?(t.openBlock(),t.createElementBlock("div",ES,"Inicio")):t.createCommentVNode("",!0),n.elementSize.width>680?(t.openBlock(),t.createElementBlock("div",NS,[t.createElementVNode("div",xS,"Bienvenido "+t.toDisplayString(r.formatUsername(o.user.name)),1),t.createElementVNode("div",TS,[t.createElementVNode("div",OS,[t.createVNode(s,{"current-season-id":o.currentSeasonId,onInput:r.onInputTournament},null,8,["current-season-id","onInput"])]),t.createElementVNode("div",VS,[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",$S,[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(d,{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",AS,[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",zS,[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",RS,[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 FS=ie(gS,[["render",IS],["__scopeId","data-v-849cfb29"]]);We.GSCLanding=FS,Object.defineProperty(We,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"}},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-687d929a"]]),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=>({"395ea484":r.value,"395d8d44":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-1ad19205"]]);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-2b206f6a"]]),gi=e=>(t.pushScopeId("data-v-e2fc9ed0"),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-e2fc9ed0"]]),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-5711c5a6"),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-5711c5a6"]]),wa=e=>(t.pushScopeId("data-v-643ec896"),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-643ec896"]]),Jt=e=>(t.pushScopeId("data-v-8af393ec"),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-8af393ec"]]),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-c8583c72"]]),k0={class:"calendar-by-team"},C0={class:"playing-as-picker"},B0={style:{color:"white"}},E0={class:"calendar-by-team__page"},N0={__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.createElementVNode("div",B0,"items: "+t.toDisplayString(i.value),1),t.createVNode(t.unref(mi),{"is-pagination-visible":e.isPaginationVisible,items:i.value},{default:t.withCtx(({item:c})=>[t.createElementVNode("div",E0,[(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"])]))}},x0=pe(N0,[["__scopeId","data-v-f691038a"]]),T0="_image62Icon_1ybd3_2",O0="_imgChivasIcon_1ybd3_11",V0="_nameDesktop_1ybd3_18",$0="_nameMobile_1ybd3_31",A0="_homeTeam_1ybd3_43",z0="_sbado16De_1ybd3_54",R0="_gameDate_1ybd3_63",I0="_sab16092023_1ybd3_67",F0="_div_1ybd3_80",P0="_divscore_1ybd3_89",L0="_cst_1ybd3_99",D0="_hour_1ybd3_108",M0="_score_1ybd3_109",j0="_chivasTvCanal_1ybd3_120",v0="_gameStatus_1ybd3_132",W0="_matchInfo_1ybd3_143",U0="_image62Icon1_1ybd3_156",H0="_name_1ybd3_18",G0="_imgAtlasIcon_1ybd3_178",J0="_name1_1ybd3_185",q0="_awayTeam_1ybd3_197",Z0="_matchCard_1ybd3_208",X0={image62Icon:T0,imgChivasIcon:O0,nameDesktop:V0,nameMobile:$0,homeTeam:A0,sbado16De:z0,gameDate:R0,sab16092023:I0,div:F0,divscore:P0,cst:L0,hour:D0,score:M0,chivasTvCanal:j0,gameStatus:v0,matchInfo:W0,image62Icon1:U0,name:H0,imgAtlasIcon:G0,name1:J0,awayTeam:q0,matchCard:Z0},K0=["src"],Y0=["src"],Q0={key:0},ey=["src"],ty=["src"],oy={__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,K0),t.createElementVNode("img",{class:t.normalizeClass(i.$style.imgChivasIcon),alt:"",src:t.unref(Ke)(o.value.home_team.team_id)},null,10,Y0),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",Q0," - 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,ey),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,ty),t.createElementVNode("h3",{class:t.normalizeClass(i.$style.name1),id:"team-name"},t.toDisplayString(o.value.visiting_team.acronym),3)],2)],2))}},ay={$style:X0},ny=pe(oy,[["__cssModules",ay]]),ry={class:"calendar-by-game__carousel"},iy={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}}},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(x0,{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":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",ry,[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(ny,{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-f43a4441"]])},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)}}},sy={class:"gsc-calendar-table"},ly={class:"gsc-switch-container"},cy={class:"gsc-app-component"};function dy(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",sy,[t.createElementVNode("div",ly,[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",cy,[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 my=ie(iy,[["render",dy],["__scopeId","data-v-6b8889ec"]]),py={class:"match"},uy={class:"match__header"},hy={key:0,class:"match__final-tag"},fy={key:1,class:"match__final-tag__no-border"},gy={class:"match__tag"},yy={class:"match__body"},by={class:"match__data"},wy={class:"match__acronym"},_y=["src"],Sy={class:"match__score"},ky=["src"],Cy={class:"match__acronym"},By={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",py,[t.createElementVNode("div",uy,[e.infoType=="postmatch"?(t.openBlock(),t.createElementBlock("div",hy,"FINAL ")):(t.openBlock(),t.createElementBlock("div",fy)),t.createElementVNode("div",gy,t.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),1)]),t.createElementVNode("div",yy,[t.createElementVNode("div",by,[t.createElementVNode("div",wy,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,_y),t.createElementVNode("div",Sy,[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,ky),t.createElementVNode("div",Cy,t.toDisplayString((r=e.data)==null?void 0:r.visiting_team_acronym),1)]),t.createElementVNode("div",By,[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"]]),Ey=e=>(t.pushScopeId("data-v-8a51a354"),e=e(),t.popScopeId(),e),Ny={class:"match"},xy={class:"match__header"},Ty=Ey(()=>t.createElementVNode("div",{class:"match__final-tag"},"FINAL",-1)),Oy={class:"match__tag"},Vy={class:"match__body"},$y={class:"match__data"},Ay={class:"match__acronym"},zy=["src"],Ry={class:"match__score"},Iy=["src"],Fy={class:"match__acronym"},Py={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",Ny,[t.createElementVNode("div",xy,[Ty,t.createElementVNode("div",Oy,t.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),1)]),t.createElementVNode("div",Vy,[t.createElementVNode("div",$y,[t.createElementVNode("div",Ay,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,zy),t.createElementVNode("div",Ry,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,Iy),t.createElementVNode("div",Fy,t.toDisplayString(e.data.visiting_team.acronym),1)]),t.createElementVNode("div",Py,"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"]]),Ly=e=>(t.pushScopeId("data-v-4c9c0afe"),e=e(),t.popScopeId(),e),Dy=["src"],My=["src"],jy={class:"coming-match__body"},vy={class:"coming-match__data"},Wy=["src"],Uy={style:{"margin-top":"16px"}},Hy={class:"coming-match__time"},Gy=Ly(()=>t.createElementVNode("div",{class:"coming-match__cst"},"CST",-1)),Jy=["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,Dy),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,My),t.createElementVNode("div",jy,[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",vy,[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,Wy),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",Uy,[t.createElementVNode("div",Hy,[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))]),Gy]),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,Jy)],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"]]),qy=e=>(t.pushScopeId("data-v-90640930"),e=e(),t.popScopeId(),e),Zy=["src"],Xy=["src"],Ky={class:"coming-match__body"},Yy={class:"coming-match__data"},Qy=["src"],e1={style:{"margin-top":"16px"}},t1={class:"coming-match__time"},o1=qy(()=>t.createElementVNode("div",{class:"coming-match__cst"},"CST",-1)),a1=["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,Zy),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,Xy),t.createElementVNode("div",Ky,[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",Yy,[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,Qy),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",e1,[t.createElementVNode("div",t1,[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))]),o1]),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,a1)],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"]]),n1=e=>(t.pushScopeId("data-v-0c45a1f6"),e=e(),t.popScopeId(),e),r1={class:"quadrant-matches"},i1={class:"quadrant-matches__header"},s1={class:"quadrant-matches__title"},l1=n1(()=>t.createElementVNode("span",null," →",-1)),c1={key:0,class:"quadrant-matches__body"},d1={class:"quadrant-matches__body",style:{"column-gap":"16px"}},m1={class:"quadrant-matches__body matches"},p1={key:0,class:"quadrant-matches__body"},u1={class:"quadrant-matches__body",style:{"column-gap":"16px"}},h1=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",r1,[t.createElementVNode("div",i1,[t.createElementVNode("h2",s1,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),l1])]),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",m1,[(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",u1,[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",p1,[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",d1,[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",c1,[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"]]),f1={__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(h1,{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"])]))}},g1="_toniKroos_1mxz1_35",y1="_centralMidfielder_1mxz1_55",b1="_icnPlayIcon_1mxz1_75",w1="_verVideos_1mxz1_89",_1="_btnVideosOptions_1mxz1_109",S1="_btnVideosOptionsTeams_1mxz1_139",k1="_info_1mxz1_179",C1="_goalUnlock_1mxz1_203",B1="_teamsAmerica_1mxz1_229",E1="_imageIcon_1mxz1_249",N1="_imageIconTeam_1mxz1_271",x1="_playerTops_1mxz1_295",T1={toniKroos:g1,centralMidfielder:y1,icnPlayIcon:b1,verVideos:w1,btnVideosOptions:_1,btnVideosOptionsTeams:S1,info:k1,goalUnlock:C1,teamsAmerica:B1,imageIcon:E1,imageIconTeam:N1,playerTops:x1},O1=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},V1={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))}}},$1=["src"],A1=["src"],z1=["src"];function R1(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,$1)):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,A1)):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,z1)],6)}const I1={$style:T1},F1=O1(V1,[["render",R1],["__cssModules",I1]]),P1=(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 L1=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),D1=["src"],M1={key:1,class:"text"},j1=["src"],v1={class:"stats"},W1=L1(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),U1={class:"numstats"},H1={class:"leyend"};function G1(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,D1)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",M1,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,j1)):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",v1,[W1,t.createElementVNode("div",U1,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",H1,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const Ci=P1(Sa,[["render",G1],["__scopeId","data-v-fb269a1e"]]);function J1(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 q1={key:0,class:"text-left"},Z1=["width","src"],X1=["checked"],K1=["width","src"],Y1={key:3,class:"text-right"};function Q1(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",q1,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,Z1)):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,X1),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,K1)):t.createCommentVNode("",!0),o.textOptionRight!=""&&!o.hiddenLabels?(t.openBlock(),t.createElementBlock("span",Y1,t.toDisplayString(o.textOptionRight),1)):t.createCommentVNode("",!0)],4)}const Ca={components:{GSCSlider:rt,GSCMosaicthebest:F1,GscSwitchComponent:Yo,GSCButton:Ci,GSCRadioToggle:ie(ka,[["render",Q1],["__scopeId","data-v-c2ae0cf9"]])},setup(){const e=t.ref("myDivRef"),{elementSize:a}=J1(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 e2=e=>(t.pushScopeId("data-v-a5fb54bf"),e=e(),t.popScopeId(),e),t2={class:"gsc-best",ref:"myDivRef"},o2={class:"gsc-best__line-bar-tools"},a2={key:0,class:"gsc-best__line-bar-tools__title"},n2=e2(()=>t.createElementVNode("span",null,"Los mejores ",-1)),r2={key:1,class:"gsc-best__line-bar-tools__titlefull"},i2={class:"unit-items"},s2={key:2,class:"gsc-best__line-bar-tools__tools"},l2={key:0,class:"gsc-best__line-bar-tools__tools__tabs"},c2={class:"gsc-best__line-bar-tools__tools__btn"},d2={key:0,class:"gsc-best__line-bar-tools-movil"},m2={class:"gsc-best__line-bar-tools-movil__tabs"},p2={class:"gsc-best__categories"},u2={class:"gsc-best__players"};function h2(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",t2,[t.createElementVNode("div",o2,[n.elementSize.width>900?(t.openBlock(),t.createElementBlock("div",a2,[n2,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",r2,[t.createElementVNode("span",{style:t.normalizeStyle(n.elementSize.width<=380?"font-size: 15px; margin-top:0px; width:60px;":"")},"Los mejores ",4),t.createElementVNode("span",i2,[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",s2,[n.elementSize.width>900?(t.openBlock(),t.createElementBlock("div",l2,[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",c2,[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",d2,[t.createElementVNode("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":"10px",width:"270px",fontFamily:"Poppins-Light",onInput:r.changeType},null,8,["selected-option","onInput"])])])):t.createCommentVNode("",!0),t.createElementVNode("div",p2,[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",u2,[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 f2=ie(Ca,[["render",h2],["__scopeId","data-v-a5fb54bf"]]),g2={PO1:"CFI",PO2:"CFV",PO3:"SFI",PO4:"SFV",PO5:"FI",PO6:"FV"},y2={DF:"Dieciseisavos",OF:"Octavos",CF:"Cuartos",SF:"Semifinales","3ER":"Tercer lugar",FINAL:"Final"},b2={4:"Octavos",5:"Cuartos",6:"Semifinales",7:"Final"},w2=(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 _2=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),S2=["src"],k2={key:1,class:"text"},C2=["src"],B2={class:"stats"},E2=_2(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),N2={class:"numstats"},x2={class:"leyend"};function T2(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,S2)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",k2,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,C2)):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",B2,[E2,t.createElementVNode("div",N2,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",x2,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const O2=w2(Ba,[["render",T2],["__scopeId","data-v-fb269a1e"]]),V2={class:"gsc-dropdown__main-container__item-selected"},$2=["height","width"],A2=["stroke"],z2={class:"gsc-dropdown__items-container"},R2=["onClick"],I2={key:0,class:"gsc-dropdown__items-footer"},F2={__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",V2,[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,A2)],8,$2))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",z2,[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,R2))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",I2,[t.createVNode(t.unref(O2),{"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))}},P2=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},L2={class:"tournament-select__selected-tournament"},D2={class:"tournament-select__selected-tournament__logo"},M2=["src"],j2={class:"tournament-select__selected-tournament__name"},v2={__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(F2),t.mergeProps(o,{"model-value":r.value,items:n.value,onInput:d,"onUpdate:modelValue":c}),{default:t.withCtx(({selectedItem:f})=>[t.createElementVNode("div",L2,[t.createElementVNode("div",D2,[l(f.id)?(t.openBlock(),t.createElementBlock("img",{key:0,src:`${o.logosUrl}${f.id}.${o.logoFileType}`,alt:""},null,8,M2)):t.createCommentVNode("",!0)]),t.createElementVNode("div",j2,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))}},W2=P2(v2,[["__scopeId","data-v-355af272"]]),U2=(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 H2=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),G2=["src"],J2={key:1,class:"text"},q2=["src"],Z2={class:"stats"},X2=H2(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),K2={class:"numstats"},Y2={class:"leyend"};function Q2(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,G2)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",J2,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,q2)):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",Z2,[X2,t.createElementVNode("div",K2,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",Y2,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const eb=U2(Ea,[["render",Q2],["__scopeId","data-v-fb269a1e"]]),tb={class:"gsc-dropdown__main-container__item-selected"},ob=["height","width"],ab=["stroke"],nb={class:"gsc-dropdown__items-container"},rb=["onClick"],ib={key:0,class:"gsc-dropdown__items-footer"},sb={__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",tb,[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,ab)],8,ob))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",nb,[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,rb))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",ib,[t.createVNode(t.unref(eb),{"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))}},lb=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},cb={class:"season-name"},db={class:"items-list-season"},mb={__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(sb),{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",cb,[t.createElementVNode("span",null,t.toDisplayString(p.name),1)])]),availableItem:t.withCtx(({item:p})=>[t.createElementVNode("span",db,t.toDisplayString(p.name),1)]),_:1},8,["items","model-value"]))}},pb=lb(mb,[["__scopeId","data-v-3a11087d"]]);function Ai(e,a){return function(){return e.apply(a,arguments)}}const{toString:ub}=Object.prototype,{getPrototypeOf:Na}=Object,Zt=(e=>a=>{const o=ub.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 hb(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 fb(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&zi(e.buffer),a}const gb=Xt("string"),me=Xt("function"),Ri=Xt("number"),Kt=e=>e!==null&&typeof e=="object",yb=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)},bb=Te("Date"),wb=Te("File"),_b=Te("Blob"),Sb=Te("FileList"),kb=e=>Kt(e)&&me(e.pipe),Cb=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]"))},Bb=Te("URLSearchParams"),Eb=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 Nb=(e,a,o,{allOwnKeys:n}={})=>(ft(a,(i,r)=>{o&&me(i)?e[r]=Ai(i,o):e[r]=i},{allOwnKeys:n}),e),xb=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Tb=(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)},Ob=(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},Vb=(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},$b=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},Ab=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&Na(Uint8Array)),zb=(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])}},Rb=(e,a)=>{let o;const n=[];for(;(o=e.exec(a))!==null;)n.push(o);return n},Ib=Te("HTMLFormElement"),Fb=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),Pb=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)},Lb=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+"'")})}})},Db=(e,a)=>{const o={},n=i=>{i.forEach(r=>{o[r]=!0})};return Ye(e)?n(e):n(String(e).split(a)),o},Mb=()=>{},jb=(e,a)=>(e=+e,Number.isFinite(e)?e:a),Ta="abcdefghijklmnopqrstuvwxyz",Mi="0123456789",ji={DIGIT:Mi,ALPHA:Ta,ALPHA_DIGIT:Ta+Ta.toUpperCase()+Mi},vb=(e=16,a=ji.ALPHA_DIGIT)=>{let o="";const{length:n}=a;for(;e--;)o+=a[Math.random()*n|0];return o};function Wb(e){return!!(e&&me(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Ub=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)},Hb=Te("AsyncFunction"),Gb=e=>e&&(Kt(e)||me(e))&&me(e.then)&&me(e.catch),k={isArray:Ye,isArrayBuffer:zi,isBuffer:hb,isFormData:Cb,isArrayBufferView:fb,isString:gb,isNumber:Ri,isBoolean:yb,isObject:Kt,isPlainObject:Yt,isUndefined:ht,isDate:bb,isFile:wb,isBlob:_b,isRegExp:Pb,isFunction:me,isStream:kb,isURLSearchParams:Bb,isTypedArray:Ab,isFileList:Sb,forEach:ft,merge:xa,extend:Nb,trim:Eb,stripBOM:xb,inherits:Tb,toFlatObject:Ob,kindOf:Zt,kindOfTest:Te,endsWith:Vb,toArray:$b,forEachEntry:zb,matchAll:Rb,isHTMLForm:Ib,hasOwnProperty:Li,hasOwnProp:Li,reduceDescriptors:Di,freezeMethods:Lb,toObjectSet:Db,toCamelCase:Fb,noop:Mb,toFiniteNumber:jb,findKey:Ii,global:Fi,isContextDefined:Pi,ALPHABET:ji,generateString:vb,isSpecCompliantForm:Wb,toJSONObject:Ub,isAsyncFn:Hb,isThenable:Gb};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 Jb=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 qb(e){return k.isArray(e)&&!e.some(Oa)}const Zb=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)&&qb(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(Zb,{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 Xb(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||Xb,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 Kb{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=Kb,Xi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Yb=typeof URLSearchParams<"u"?URLSearchParams:Va,Qb=typeof FormData<"u"?FormData:null,ew=typeof Blob<"u"?Blob:null,tw={isBrowser:!0,classes:{URLSearchParams:Yb,FormData:Qb,Blob:ew},protocols:["http","https","file","blob","url","data"]},Ki=typeof window<"u"&&typeof document<"u",ow=(e=>Ki&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),aw=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",nw=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ki,hasStandardBrowserEnv:ow,hasStandardBrowserWebWorkerEnv:aw},Symbol.toStringTag,{value:"Module"})),Oe={...nw,...tw};function rw(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 iw(e){return k.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function sw(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]=sw(i[s])),!l)}if(k.isFormData(e)&&k.isFunction(e.entries)){const o={};return k.forEachEntry(e,(n,i)=>{a(iw(n),i,o,0)}),o}return null}function lw(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 rw(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),lw(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,cw=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"]),dw=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]&&cw[o])&&(o==="set-cookie"?a[o]?a[o].push(n):a[o]=[n]:a[o]=a[o]?a[o]+", "+n:n)}),a},Qi=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 mw(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 pw=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function za(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 uw(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,o,n)=>o.toUpperCase()+n)}function hw(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,d){const c=gt(p);if(!c)throw new Error("header name must be a non-empty string");const h=k.findKey(i,c);(!h||i[h]===void 0||d===!0||d===void 0&&i[h]!==!1)&&(i[h||p]=eo(l))}const s=(l,p)=>k.forEach(l,(d,c)=>r(d,c,p));return k.isPlainObject(a)||a instanceof this.constructor?s(a,o):k.isString(a)&&(a=a.trim())&&!pw(a)?s(dw(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 mw(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||za(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||za(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||za(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?uw(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[Qi]=this[Qi]={accessors:{}}).accessors,n=this.prototype;function i(r){const s=gt(r);o[s]||(hw(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 Ra(e,a){const o=this||Aa,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 es(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 fw(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 gw=Oe.hasStandardBrowserEnv?{write(e,a,o,n,i,r){const s=[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(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 yw(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function bw(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function ts(e,a){return e&&!yw(a)?bw(e,a):a}const ww=Oe.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=k.isString(i)?n(i):i;return r.protocol===o.protocol&&r.host===o.host}}():function(){return function(){return!0}}();function _w(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function Sw(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(),d=n[r];s||(s=p),o[i]=l,n[i]=p;let c=r,h=0;for(;c!==i;)h+=o[c++],c=c%e;if(i=(i+1)%e,i===r&&(r=(r+1)%e),p-s<a)return;const m=d&&p-d;return m?Math.round(h*1e3/m):void 0}}function os(e,a){let o=0;const n=Sw(50,250);return i=>{const r=i.loaded,s=i.lengthComputable?i.total:void 0,l=r-o,p=n(l),d=r<=s;o=r;const c={loaded:r,total:s,progress:s?r/s:void 0,bytes:l,rate:p||void 0,estimated:p&&s&&d?(s-r)/p:void 0,event:i};c[a?"download":"upload"]=!0,e(c)}}const kw=typeof XMLHttpRequest<"u",Cw=kw&&function(e){return new Promise(function(a,o){let n=e.data;const i=Fe.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 d;if(k.isFormData(n)){if(Oe.hasStandardBrowserEnv||Oe.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((d=i.getContentType())!==!1){const[u,...g]=d?d.split(";").map(y=>y.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...g].join("; "))}}let c=new XMLHttpRequest;if(e.auth){const u=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(u+":"+g))}const h=ts(e.baseURL,e.url);c.open(e.method.toUpperCase(),qi(h,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function m(){if(!c)return;const u=Fe.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),g={data:!r||r==="text"||r==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:u,config:e,request:c};fw(function(y){a(y),p()},function(y){o(y),p()},g),c=null}if("onloadend"in c?c.onloadend=m:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(m)},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 u=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const g=e.transitional||Xi;e.timeoutErrorMessage&&(u=e.timeoutErrorMessage),o(new L(u,g.clarifyTimeoutError?L.ETIMEDOUT:L.ECONNABORTED,e,c)),c=null},Oe.hasStandardBrowserEnv&&(s&&k.isFunction(s)&&(s=s(e)),s||s!==!1&&ww(h))){const u=e.xsrfHeaderName&&e.xsrfCookieName&&gw.read(e.xsrfCookieName);u&&i.set(e.xsrfHeaderName,u)}n===void 0&&i.setContentType(null),"setRequestHeader"in c&&k.forEach(i.toJSON(),function(u,g){c.setRequestHeader(g,u)}),k.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),r&&r!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",os(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",os(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=u=>{c&&(o(!u||u.type?new yt(null,e,c):u),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const f=_w(h);if(f&&Oe.protocols.indexOf(f)===-1){o(new L("Unsupported protocol "+f+":",L.ERR_BAD_REQUEST,e));return}c.send(n||null)})},Ia={http:Jb,xhr:Cw};k.forEach(Ia,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const as=e=>`- ${e}`,Bw=e=>k.isFunction(e)||e===null||e===!1,ns={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,!Bw(o)&&(n=Ia[(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(as).join(`
|
|
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 Ew(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:Ew,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 Nw=Da;function xw(e){return function(a){return e.apply(null,a)}}function Tw(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 Ow=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=Nw,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=xw,q.isAxiosError=Tw,q.mergeConfig=Qe,q.AxiosHeaders=Fe,q.formToJSON=e=>Yi(k.isHTMLForm(e)?new FormData(e):e),q.getAdapter=ns.getAdapter,q.HttpStatusCode=Ow,q.default=q;const ds=q,Vw=(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 $w={ref:"gscScrollableContainer",class:"scrollable-container"},Aw={class:"scrollable-arrows"},zw=["width","height","viewBox"],Rw=["stroke"],Iw={class:"scrollable-wrapper"},Fw={class:"scrollable-arrows"},Pw=["width","height","viewBox"],Lw=["stroke"];function Dw(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",$w,[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",Aw,[(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,Rw)],8,zw))])],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",Iw,[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",Fw,[(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,Lw)],8,Pw))])],2)):t.createCommentVNode("",!0)],512)}const Mw=Vw(ja,[["render",Dw],["__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),jw=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)),vw=[jw],Ww=no(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),Uw=["src"],Hw=no(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),Gw=no(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),Jw=["src"],qw=["src"],Zw={class:"text-container"};function Xw(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))},vw,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),Ww,t.createElementVNode("img",{src:o.background,alt:"",class:"bkg-blackwhite position-image"},null,8,Uw),t.createElementVNode("div",{class:t.normalizeClass([r.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(r.baselogoright)},null,2),Hw,Gw,t.createElementVNode("img",{src:o.logoHome,alt:"",class:t.normalizeClass(r.teamlogo)},null,10,Jw),t.createElementVNode("img",{src:o.logoAway,alt:"",class:t.normalizeClass(r.logoright)},null,10,qw),t.createElementVNode("div",Zw,[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 Kw=et(va,[["render",Xw],["__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),Yw=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)),Qw=[Yw],e_=bt(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),t_=["src"],o_=bt(()=>t.createElementVNode("div",{class:"base-logo"},null,-1)),a_=["src"],n_=bt(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),r_={class:"text-container"},i_={class:"player-image position-image"},s_=["src"],l_=["src"],c_=["src"],d_=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 m_(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))},Qw,2),e_,t.createElementVNode("img",{src:o.background,alt:"",class:"bkg-blackwhite position-image"},null,8,t_),o_,t.createElementVNode("img",{src:o.logoHome,alt:"",class:t.normalizeClass(r.teamlogo)},null,10,a_),n_,t.createElementVNode("div",r_,[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",i_,[o.typeImg==0?(t.openBlock(),t.createElementBlock("img",{key:0,src:o.photoProfile,class:t.normalizeClass(r.playerimage)},null,10,s_)):t.createCommentVNode("",!0),o.typeImg==1?(t.openBlock(),t.createElementBlock("img",{key:1,src:o.photoProfile,alt:""},null,8,l_)):t.createCommentVNode("",!0),o.typeImg==2?(t.openBlock(),t.createElementBlock("img",{key:2,src:o.photoProfile,class:"img-number"},null,8,c_)):t.createCommentVNode("",!0)]),d_],2)}const p_=et(Wa,[["render",m_],["__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),u_=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)),h_=[u_],f_=ro(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),g_=["src"],y_={width:"275",height:"125",viewBox:"0 0 275 125",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"base-logo"},b_=["fill"],w_=["id"],__=["stop-color"],S_=["stop-color"],k_=["src"],C_=ro(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),B_={class:"text-container"},E_=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 N_(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))},h_,2),f_,t.createElementVNode("img",{src:o.background,alt:"",class:"bkg-blackwhite position-image"},null,8,g_),(t.openBlock(),t.createElementBlock("svg",y_,[t.createElementVNode("path",{d:"M274.641 124.094L0 0.675049V124.094H274.641Z",fill:"url(#paint0_linear_7_"+o.nameTeam.replaceAll(" ","")+")"},null,8,b_),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,__),t.createElementVNode("stop",{offset:"1","stop-color":o.colorBackgroundHome},null,8,S_)],8,w_)])])),t.createElementVNode("img",{class:t.normalizeClass(r.teamlogo),src:o.logoHome,alt:""},null,10,k_),C_,t.createElementVNode("div",B_,[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)]),E_],2)}const x_=et(Ua,[["render",N_],["__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),T_=io(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),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_],$_={class:"player-container"},A_=["src"],z_=["src"],R_=["src"],I_={class:"container-score"},F_=["src"],P_=["src"],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_=io(()=>t.createElementVNode("div",{class:"gradient-color"},null,-1));function j_(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(r.thumbnailhighlights)},[T_,t.createElementVNode("div",{class:t.normalizeClass(r.playbutton),onClick:a[0]||(a[0]=(...s)=>r.onclickPlayVideos&&r.onclickPlayVideos(...s))},V_,2),t.createElementVNode("div",$_,[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,A_)):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,R_)):t.createCommentVNode("",!0),t.createElementVNode("div",I_,[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,F_),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,P_),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,L_),D_,M_],2)}const v_=et(Ha,[["render",j_],["__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),W_=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)),U_=[W_],H_={class:"player-image position-image"},G_=["src"],J_=["src"],q_=["src"],Z_=["src"],X_=so(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),K_=["src"],Y_=so(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),Q_={class:"text-container"},eS=so(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),tS={class:"base-logo",width:"91",height:"216",viewBox:"0 0 91 216",fill:"none",xmlns:"http://www.w3.org/2000/svg"},oS=["fill"];function aS(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),t.createElementVNode("div",H_,[o.typeImg==0?(t.openBlock(),t.createElementBlock("img",{key:0,src:o.photoProfile,class:t.normalizeClass(r.playerimage)},null,10,G_)):t.createCommentVNode("",!0),o.typeImg==1?(t.openBlock(),t.createElementBlock("img",{key:1,src:o.photoProfile,alt:""},null,8,J_)):t.createCommentVNode("",!0),o.typeImg==2?(t.openBlock(),t.createElementBlock("img",{key:2,src:o.photoProfile,class:"img-number"},null,8,q_)):t.createCommentVNode("",!0)]),t.createElementVNode("img",{src:o.logoHome,alt:"",class:"team-logo"},null,8,Z_),X_,t.createElementVNode("img",{src:o.background,alt:"",class:"bkg-blackwhite position-image"},null,8,K_),Y_,t.createElementVNode("div",Q_,[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)]),eS,(t.openBlock(),t.createElementBlock("svg",tS,[t.createElementVNode("path",{d:"M91.5 216L0 -0.5H91.5V216Z",fill:o.colorBackgroundHome},null,8,oS)]))],2)}const nS=et(Ga,[["render",aS],["__scopeId","data-v-cc315132"]]);function rS(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 iS="_ptg_lp0fw_5",sS="_ptgtitle_lp0fw_15",lS="_ptgtitle450_lp0fw_47",cS="_pgtcontainercard_lp0fw_79",dS="_pgtcontainercard350_lp0fw_89",mS={ptg:iS,ptgtitle:sS,ptgtitle450:lS,pgtcontainercard:cS,pgtcontainercard350:dS},Ja={components:{GSCSlider:Mw,GSCThumbnailCategory:p_,GSCThumbnailCategoryTeam:x_,GSCThumbnailHighlightGamePlayer:v_,GSCThumbnailSummaryPlayer:nS,GSCThumbnailHighlightGameHistoric:Kw},setup(){const e=t.ref("ptgDiv"),{elementSize:a}=rS(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 pS(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 uS={name:"DiscoverVideos",components:{GscSwitchComponent:Yo,GSCPlayerTeamGame:et(Ja,[["render",pS],["__cssModules",{$style:mS}]]),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)}}},hS=e=>(t.pushScopeId("data-v-626b4da8"),e=e(),t.popScopeId(),e),fS={class:"discover-videos",ref:"myDivRef"},gS={class:"title-and-button"},yS=hS(()=>t.createElementVNode("div",{class:"title-value"},"Descubre videos",-1)),bS={class:"btn-search-videos"};function wS(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",fS,[t.createElementVNode("div",gS,[yS,t.createElementVNode("div",bS,[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 _S={components:{GSCSeasonSelect:pb,GSCTournamentSelect:W2,GSCGames:f1,GSCGridTeamsMatches:wc,GSCPlayersLanding:pc,GSCTops:f2,GSCTableCalendar:my,DiscoverVideos:ie(uS,[["render",wS],["__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[b2[m]||f]=h:p[y2[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[g2[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(){}},SS=e=>(t.pushScopeId("data-v-849cfb29"),e=e(),t.popScopeId(),e),kS={class:"gsclanding",ref:"landingref"},CS={key:0,class:"container-selectors-mobile"},BS={class:"container-selectors-mobile-tournament"},ES={class:"container-selectors-mobile-season"},NS={key:0,class:"home-item-movil"},xS=SS(()=>t.createElementVNode("div",{class:"home-movil"},"Inicio",-1)),TS={class:"name-user-movil"},OS={key:1,class:"home-item"},VS={key:2,class:"bar-settings"},$S={class:"name-user"},AS={class:"container-selectors"},zS={class:"selector-tournament"},RS={class:"selector-seasons"},IS={key:3,class:"container-games"},FS={key:4,class:"container-players"},PS={class:"container-tops"},LS={key:5,class:"container-vr"};function DS(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",kS,[n.elementSize.width<=680?(t.openBlock(),t.createElementBlock("div",CS,[t.createElementVNode("div",BS,[t.createVNode(s,{"current-season-id":o.currentSeasonId,width:"100%",onInput:r.onInputTournament},null,8,["current-season-id","onInput"])]),t.createElementVNode("div",ES,[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",NS,[xS,t.createElementVNode("div",TS,"Bienvenido "+t.toDisplayString(r.formatUsername(o.user.name)),1)])):t.createCommentVNode("",!0),n.elementSize.width>680?(t.openBlock(),t.createElementBlock("div",OS,"Inicio")):t.createCommentVNode("",!0),n.elementSize.width>680?(t.openBlock(),t.createElementBlock("div",VS,[t.createElementVNode("div",$S,"Bienvenido "+t.toDisplayString(r.formatUsername(o.user.name)),1),t.createElementVNode("div",AS,[t.createElementVNode("div",zS,[t.createVNode(s,{"current-season-id":o.currentSeasonId,onInput:r.onInputTournament},null,8,["current-season-id","onInput"])]),t.createElementVNode("div",RS,[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",IS,[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",FS,[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",PS,[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",LS,[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 MS=ie(_S,[["render",DS],["__scopeId","data-v-849cfb29"]]);ve.GSCLanding=MS,Object.defineProperty(ve,Symbol.toStringTag,{value:"Module"})});
|