@golstats/gsc-landing 1.0.37 → 1.0.39
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 +12056 -7616
- package/dist/gsc-landing.umd.cjs +32 -23
- package/dist/style.css +1 -1
- package/package.json +6 -3
package/dist/gsc-landing.umd.cjs
CHANGED
|
@@ -1,32 +1,41 @@
|
|
|
1
|
-
(function(ve,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(ve=typeof globalThis<"u"?globalThis:ve||self,t(ve.GSCLanding={},ve.Vue))})(this,function(ve,t){"use strict";function Xa(e,a){return function(){return e.apply(a,arguments)}}const{toString:Fs}=Object.prototype,{getPrototypeOf:co}=Object,wt=(e=>a=>{const o=Fs.call(a);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),ke=e=>(e=e.toLowerCase(),a=>wt(a)===e),_t=e=>a=>typeof a===e,{isArray:Ge}=Array,tt=_t("undefined");function Ps(e){return e!==null&&!tt(e)&&e.constructor!==null&&!tt(e.constructor)&&le(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ka=ke("ArrayBuffer");function Ls(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&Ka(e.buffer),a}const Ds=_t("string"),le=_t("function"),Ya=_t("number"),St=e=>e!==null&&typeof e=="object",Ms=e=>e===!0||e===!1,kt=e=>{if(wt(e)!=="object")return!1;const a=co(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},js=ke("Date"),vs=ke("File"),Ws=ke("Blob"),Us=ke("FileList"),Hs=e=>St(e)&&le(e.pipe),Gs=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||le(e.append)&&((a=wt(e))==="formdata"||a==="object"&&le(e.toString)&&e.toString()==="[object FormData]"))},Js=ke("URLSearchParams"),qs=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ot(e,a,{allOwnKeys:o=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),Ge(e))for(n=0,i=e.length;n<i;n++)a.call(null,e[n],n,e);else{const r=o?Object.getOwnPropertyNames(e):Object.keys(e),s=r.length;let l;for(n=0;n<s;n++)l=r[n],a.call(null,e[l],l,e)}}function Qa(e,a){a=a.toLowerCase();const o=Object.keys(e);let n=o.length,i;for(;n-- >0;)if(i=o[n],a===i.toLowerCase())return i;return null}const en=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,tn=e=>!tt(e)&&e!==en;function mo(){const{caseless:e}=tn(this)&&this||{},a={},o=(n,i)=>{const r=e&&Qa(a,i)||i;kt(a[r])&&kt(n)?a[r]=mo(a[r],n):kt(n)?a[r]=mo({},n):Ge(n)?a[r]=n.slice():a[r]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&ot(arguments[n],o);return a}const Zs=(e,a,o,{allOwnKeys:n}={})=>(ot(a,(i,r)=>{o&&le(i)?e[r]=Xa(i,o):e[r]=i},{allOwnKeys:n}),e),Xs=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ks=(e,a,o,n)=>{e.prototype=Object.create(a.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),o&&Object.assign(e.prototype,o)},Ys=(e,a,o,n)=>{let i,r,s;const l={};if(a=a||{},e==null)return a;do{for(i=Object.getOwnPropertyNames(e),r=i.length;r-- >0;)s=i[r],(!n||n(s,e,a))&&!l[s]&&(a[s]=e[s],l[s]=!0);e=o!==!1&&co(e)}while(e&&(!o||o(e,a))&&e!==Object.prototype);return a},Qs=(e,a,o)=>{e=String(e),(o===void 0||o>e.length)&&(o=e.length),o-=a.length;const n=e.indexOf(a,o);return n!==-1&&n===o},el=e=>{if(!e)return null;if(Ge(e))return e;let a=e.length;if(!Ya(a))return null;const o=new Array(a);for(;a-- >0;)o[a]=e[a];return o},tl=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&co(Uint8Array)),ol=(e,a)=>{const n=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=n.next())&&!i.done;){const r=i.value;a.call(e,r[0],r[1])}},al=(e,a)=>{let o;const n=[];for(;(o=e.exec(a))!==null;)n.push(o);return n},nl=ke("HTMLFormElement"),rl=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,n,i){return n.toUpperCase()+i}),on=(({hasOwnProperty:e})=>(a,o)=>e.call(a,o))(Object.prototype),il=ke("RegExp"),an=(e,a)=>{const o=Object.getOwnPropertyDescriptors(e),n={};ot(o,(i,r)=>{let s;(s=a(i,r,e))!==!1&&(n[r]=s||i)}),Object.defineProperties(e,n)},sl=e=>{an(e,(a,o)=>{if(le(e)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const n=e[o];if(le(n)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},ll=(e,a)=>{const o={},n=i=>{i.forEach(r=>{o[r]=!0})};return Ge(e)?n(e):n(String(e).split(a)),o},cl=()=>{},dl=(e,a)=>(e=+e,Number.isFinite(e)?e:a),po="abcdefghijklmnopqrstuvwxyz",nn="0123456789",rn={DIGIT:nn,ALPHA:po,ALPHA_DIGIT:po+po.toUpperCase()+nn},ml=(e=16,a=rn.ALPHA_DIGIT)=>{let o="";const{length:n}=a;for(;e--;)o+=a[Math.random()*n|0];return o};function pl(e){return!!(e&&le(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const ul=e=>{const a=new Array(10),o=(n,i)=>{if(St(n)){if(a.indexOf(n)>=0)return;if(!("toJSON"in n)){a[i]=n;const r=Ge(n)?[]:{};return ot(n,(s,l)=>{const p=o(s,i+1);!tt(p)&&(r[l]=p)}),a[i]=void 0,r}}return n};return o(e,0)},hl=ke("AsyncFunction"),w={isArray:Ge,isArrayBuffer:Ka,isBuffer:Ps,isFormData:Gs,isArrayBufferView:Ls,isString:Ds,isNumber:Ya,isBoolean:Ms,isObject:St,isPlainObject:kt,isUndefined:tt,isDate:js,isFile:vs,isBlob:Ws,isRegExp:il,isFunction:le,isStream:Hs,isURLSearchParams:Js,isTypedArray:tl,isFileList:Us,forEach:ot,merge:mo,extend:Zs,trim:qs,stripBOM:Xs,inherits:Ks,toFlatObject:Ys,kindOf:wt,kindOfTest:ke,endsWith:Qs,toArray:el,forEachEntry:ol,matchAll:al,isHTMLForm:nl,hasOwnProperty:on,hasOwnProp:on,reduceDescriptors:an,freezeMethods:sl,toObjectSet:ll,toCamelCase:rl,noop:cl,toFiniteNumber:dl,findKey:Qa,global:en,isContextDefined:tn,ALPHABET:rn,generateString:ml,isSpecCompliantForm:pl,toJSONObject:ul,isAsyncFn:hl,isThenable:e=>e&&(St(e)||le(e))&&le(e.then)&&le(e.catch)};function I(e,a,o,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),o&&(this.config=o),n&&(this.request=n),i&&(this.response=i)}w.inherits(I,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:w.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const sn=I.prototype,ln={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ln[e]={value:e}}),Object.defineProperties(I,ln),Object.defineProperty(sn,"isAxiosError",{value:!0}),I.from=(e,a,o,n,i,r)=>{const s=Object.create(sn);return w.toFlatObject(e,s,function(p){return p!==Error.prototype},l=>l!=="isAxiosError"),I.call(s,e.message,a,o,n,i),s.cause=e,s.name=e.name,r&&Object.assign(s,r),s};const fl=null;function uo(e){return w.isPlainObject(e)||w.isArray(e)}function cn(e){return w.endsWith(e,"[]")?e.slice(0,-2):e}function dn(e,a,o){return e?e.concat(a).map(function(i,r){return i=cn(i),!o&&r?"["+i+"]":i}).join(o?".":""):a}function gl(e){return w.isArray(e)&&!e.some(uo)}const yl=w.toFlatObject(w,{},null,function(a){return/^is[A-Z]/.test(a)});function Ct(e,a,o){if(!w.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,o=w.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,y){return!w.isUndefined(y[f])});const n=o.metaTokens,i=o.visitor||m,r=o.dots,s=o.indexes,p=(o.Blob||typeof Blob<"u"&&Blob)&&w.isSpecCompliantForm(a);if(!w.isFunction(i))throw new TypeError("visitor must be a function");function c(h){if(h===null)return"";if(w.isDate(h))return h.toISOString();if(!p&&w.isBlob(h))throw new I("Blob is not supported. Use a Buffer instead.");return w.isArrayBuffer(h)||w.isTypedArray(h)?p&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function m(h,f,y){let C=h;if(h&&!y&&typeof h=="object"){if(w.endsWith(f,"{}"))f=n?f:f.slice(0,-2),h=JSON.stringify(h);else if(w.isArray(h)&&gl(h)||(w.isFileList(h)||w.endsWith(f,"[]"))&&(C=w.toArray(h)))return f=cn(f),C.forEach(function(v,U){!(w.isUndefined(v)||v===null)&&a.append(s===!0?dn([f],U,r):s===null?f:f+"[]",c(v))}),!1}return uo(h)?!0:(a.append(dn(y,f,r),c(h)),!1)}const u=[],g=Object.assign(yl,{defaultVisitor:m,convertValue:c,isVisitable:uo});function d(h,f){if(!w.isUndefined(h)){if(u.indexOf(h)!==-1)throw Error("Circular reference detected in "+f.join("."));u.push(h),w.forEach(h,function(C,A){(!(w.isUndefined(C)||C===null)&&i.call(a,C,w.isString(A)?A.trim():A,f,g))===!0&&d(C,f?f.concat(A):[A])}),u.pop()}}if(!w.isObject(e))throw new TypeError("data must be an object");return d(e),a}function mn(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return a[n]})}function ho(e,a){this._pairs=[],e&&Ct(e,this,a)}const pn=ho.prototype;pn.append=function(a,o){this._pairs.push([a,o])},pn.toString=function(a){const o=a?function(n){return a.call(this,n,mn)}:mn;return this._pairs.map(function(i){return o(i[0])+"="+o(i[1])},"").join("&")};function bl(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function un(e,a,o){if(!a)return e;const n=o&&o.encode||bl,i=o&&o.serialize;let r;if(i?r=i(a,o):r=w.isURLSearchParams(a)?a.toString():new ho(a,o).toString(n),r){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}class hn{constructor(){this.handlers=[]}use(a,o,n){return this.handlers.push({fulfilled:a,rejected:o,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){w.forEach(this.handlers,function(n){n!==null&&a(n)})}}const fn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},wl={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:ho,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},gn=typeof window<"u"&&typeof document<"u",_l=(e=>gn&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Sl=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Ce={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:gn,hasStandardBrowserEnv:_l,hasStandardBrowserWebWorkerEnv:Sl},Symbol.toStringTag,{value:"Module"})),...wl};function kl(e,a){return Ct(e,new Ce.classes.URLSearchParams,Object.assign({visitor:function(o,n,i,r){return Ce.isNode&&w.isBuffer(o)?(this.append(n,o.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},a))}function Cl(e){return w.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function Bl(e){const a={},o=Object.keys(e);let n;const i=o.length;let r;for(n=0;n<i;n++)r=o[n],a[r]=e[r];return a}function yn(e){function a(o,n,i,r){let s=o[r++];if(s==="__proto__")return!0;const l=Number.isFinite(+s),p=r>=o.length;return s=!s&&w.isArray(i)?i.length:s,p?(w.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!l):((!i[s]||!w.isObject(i[s]))&&(i[s]=[]),a(o,n,i[s],r)&&w.isArray(i[s])&&(i[s]=Bl(i[s])),!l)}if(w.isFormData(e)&&w.isFunction(e.entries)){const o={};return w.forEachEntry(e,(n,i)=>{a(Cl(n),i,o,0)}),o}return null}function El(e,a,o){if(w.isString(e))try{return(a||JSON.parse)(e),w.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(o||JSON.stringify)(e)}const fo={transitional:fn,adapter:["xhr","http"],transformRequest:[function(a,o){const n=o.getContentType()||"",i=n.indexOf("application/json")>-1,r=w.isObject(a);if(r&&w.isHTMLForm(a)&&(a=new FormData(a)),w.isFormData(a))return i?JSON.stringify(yn(a)):a;if(w.isArrayBuffer(a)||w.isBuffer(a)||w.isStream(a)||w.isFile(a)||w.isBlob(a))return a;if(w.isArrayBufferView(a))return a.buffer;if(w.isURLSearchParams(a))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),a.toString();let l;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return kl(a,this.formSerializer).toString();if((l=w.isFileList(a))||n.indexOf("multipart/form-data")>-1){const p=this.env&&this.env.FormData;return Ct(l?{"files[]":a}:a,p&&new p,this.formSerializer)}}return r||i?(o.setContentType("application/json",!1),El(a)):a}],transformResponse:[function(a){const o=this.transitional||fo.transitional,n=o&&o.forcedJSONParsing,i=this.responseType==="json";if(a&&w.isString(a)&&(n&&!this.responseType||i)){const s=!(o&&o.silentJSONParsing)&&i;try{return JSON.parse(a)}catch(l){if(s)throw l.name==="SyntaxError"?I.from(l,I.ERR_BAD_RESPONSE,this,null,this.response):l}}return a}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ce.classes.FormData,Blob:Ce.classes.Blob},validateStatus:function(a){return a>=200&&a<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};w.forEach(["delete","get","head","post","put","patch"],e=>{fo.headers[e]={}});const go=fo,Nl=w.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),xl=e=>{const a={};let o,n,i;return e&&e.split(`
|
|
2
|
-
`).forEach(function(
|
|
3
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...
|
|
4
|
-
`+
|
|
5
|
-
`):" "+
|
|
6
|
-
`+r):n.stack=r}throw n}}_request(a,o){typeof a=="string"?(o=o||{},o.url=a):o=a||{},o=Je(this.defaults,o);const{transitional:n,paramsSerializer:i,headers:r}=o;n!==void 0&&ko.assertOptions(n,{silentJSONParsing:Pe.transitional(Pe.boolean),forcedJSONParsing:Pe.transitional(Pe.boolean),clarifyTimeoutError:Pe.transitional(Pe.boolean)},!1),i!=null&&(w.isFunction(i)?o.paramsSerializer={serialize:i}:ko.assertOptions(i,{encode:Pe.function,serialize:Pe.function},!0)),o.method=(o.method||this.defaults.method||"get").toLowerCase();let s=r&&w.merge(r.common,r[o.method]);r&&w.forEach(["delete","get","head","post","put","patch","common"],h=>{delete r[h]}),o.headers=ze.concat(s,r);const l=[];let p=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(o)===!1||(p=p&&f.synchronous,l.unshift(f.fulfilled,f.rejected))});const c=[];this.interceptors.response.forEach(function(f){c.push(f.fulfilled,f.rejected)});let m,u=0,g;if(!p){const h=[Bn.bind(this),void 0];for(h.unshift.apply(h,l),h.push.apply(h,c),g=h.length,m=Promise.resolve(o);u<g;)m=m.then(h[u++],h[u++]);return m}g=l.length;let d=o;for(u=0;u<g;){const h=l[u++],f=l[u++];try{d=h(d)}catch(y){f.call(this,y);break}}try{m=Bn.call(this,d)}catch(h){return Promise.reject(h)}for(u=0,g=c.length;u<g;)m=m.then(c[u++],c[u++]);return m}getUri(a){a=Je(this.defaults,a);const o=_n(a.baseURL,a.url);return un(o,a.params,a.paramsSerializer)}}w.forEach(["delete","get","head","options"],function(a){Nt.prototype[a]=function(o,n){return this.request(Je(n||{},{method:a,url:o,data:(n||{}).data}))}}),w.forEach(["post","put","patch"],function(a){function o(n){return function(r,s,l){return this.request(Je(l||{},{method:a,headers:n?{"Content-Type":"multipart/form-data"}:{},url:r,data:s}))}}Nt.prototype[a]=o(),Nt.prototype[a+"Form"]=o(!0)});const xt=Nt;class Co{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(r){o=r});const n=this;this.promise.then(i=>{if(!n._listeners)return;let r=n._listeners.length;for(;r-- >0;)n._listeners[r](i);n._listeners=null}),this.promise.then=i=>{let r;const s=new Promise(l=>{n.subscribe(l),r=l}).then(i);return s.cancel=function(){n.unsubscribe(r)},s},a(function(r,s,l){n.reason||(n.reason=new nt(r,s,l),o(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const o=this._listeners.indexOf(a);o!==-1&&this._listeners.splice(o,1)}static source(){let a;return{token:new Co(function(i){a=i}),cancel:a}}}const jl=Co;function vl(e){return function(o){return e.apply(null,o)}}function Wl(e){return w.isObject(e)&&e.isAxiosError===!0}const Bo={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Bo).forEach(([e,a])=>{Bo[a]=e});const Ul=Bo;function Tn(e){const a=new xt(e),o=Xa(xt.prototype.request,a);return w.extend(o,xt.prototype,a,{allOwnKeys:!0}),w.extend(o,a,null,{allOwnKeys:!0}),o.create=function(i){return Tn(Je(e,i))},o}const H=Tn(go);H.Axios=xt,H.CanceledError=nt,H.CancelToken=jl,H.isCancel=wn,H.VERSION=Nn,H.toFormData=Ct,H.AxiosError=I,H.Cancel=H.CanceledError,H.all=function(a){return Promise.all(a)},H.spread=vl,H.isAxiosError=Wl,H.mergeConfig=Je,H.AxiosHeaders=ze,H.formToJSON=e=>yn(w.isHTMLForm(e)?new FormData(e):e),H.getAdapter=Cn.getAdapter,H.HttpStatusCode=Ul,H.default=H;const Tt=H;function Hl(e){const a=t.ref({width:0,height:0});function o(){const n=e.value.getBoundingClientRect();a.value.width=n.width,a.value.height=n.height}return t.onMounted(()=>{o(),window.addEventListener("resize",o)}),t.onUnmounted(()=>{window.removeEventListener("resize",o)}),{elementSize:a}}const Eo=new Map([[1,"Portero"],[2,"Defensa Central"],[3,"Lateral por izquierda"],[4,"Lateral por derecha"],[5,"Volante por izquierda"],[6,"Volante por derecha"],[7,"Volante defensivo"],[8,"Volante ofensivo"],[9,"Delantero "],[10,"Desconocida"]]),ie=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},Gl={class:"player-card"},Jl={class:"player-card__image"},ql=["src"],Zl={class:"player-card__number"},Xl={class:"player-card__right-data"},Kl={class:"player-card__details"},Yl={class:"player-card__name"},Ql={class:"player-card__position"},ec=ie({__name:"GSCPlayerCard",props:{countryFlag:{type:String,default:""},jersey:{type:Number,default:0},age:{type:Number,default:18},nationality:{type:String,default:"-"},name:{type:String,default:"-"},position_id:{type:Number,default:0},position:{type:String,default:"-"},photo:{type:String,default:""},photoNoBg:{type:String,default:""},isImgFullWidth:{type:Boolean,default:!1}},emits:["clickProfileBtn"],setup(e,{emit:a}){return(o,n)=>(t.openBlock(),t.createElementBlock("div",Gl,[t.createElementVNode("div",Jl,[t.createElementVNode("img",{class:t.normalizeClass(["player-card__photo",{"full-width":e.isImgFullWidth}]),src:e.photo,alt:"Player Image"},null,10,ql),t.createElementVNode("div",Zl,t.toDisplayString(e.jersey),1),t.createElementVNode("div",Xl,[t.createElementVNode("button",{class:"player-card__profile-button",onClick:n[0]||(n[0]=i=>a("clickProfileBtn"))}," Ver perfil ")])]),t.createElementVNode("div",Kl,[t.createElementVNode("p",Yl,t.toDisplayString(e.name),1),t.createElementVNode("p",Ql,t.toDisplayString(t.unref(Eo).get(e.position_id)),1)])]))}},[["__scopeId","data-v-caa30d1f"]]),tc=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},No={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,a=this.$refs.content.scrollWidth;a>0&&e>0&&(a>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},On=()=>{t.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},Vn=No.setup;No.setup=Vn?(e,a)=>(On(),Vn(e,a)):On;const oc={ref:"gscScrollableContainer",class:"scrollable-container"},ac={class:"scrollable-arrows"},nc=["width","height","viewBox"],rc=["stroke"],ic={class:"scrollable-wrapper"},sc={class:"scrollable-arrows"},lc=["width","height","viewBox"],cc=["stroke"];function dc(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",oc,[o.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",r.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...s)=>r.scrollLeft&&r.scrollLeft(...s))},[t.createElementVNode("div",ac,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:r.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:o.arrowsColor},null,8,rc)],8,nc))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:a[1]||(a[1]=(...s)=>r.getScroll&&r.getScroll(...s))},[t.createElementVNode("div",ic,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),o.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",r.hideShowRightArrow]),onClick:a[2]||(a[2]=(...s)=>r.scrollRight&&r.scrollRight(...s))},[t.createElementVNode("div",sc,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:r.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:o.arrowsColor},null,8,cc)],8,lc))])],2)):t.createCommentVNode("",!0)],512)}const rt=tc(No,[["render",dc],["__scopeId","data-v-b548a08d"]]),$n=e=>(t.pushScopeId("data-v-34ea0cee"),e=e(),t.popScopeId(),e),mc={class:"my-players"},pc={class:"my-players__header"},uc={class:"my-players__title"},hc=[$n(()=>t.createElementVNode("span",{style:{"text-decoration-line":"underline"}},"Ver todos",-1)),$n(()=>t.createElementVNode("span",null,"→",-1))],fc={class:"my-players__list"},gc=ie({__name:"GSCPlayersLanding",props:{isPlayer:{type:Boolean,default:!1},isImgFullWidth:{type:Boolean,default:!0},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MzE4ODAsIm5hbWUiOiJHb2xTdGF0cyIsInVzZXJuYW1lIjoiYnJpenVlbGEiLCJlbWFpbCI6IiIsInByb3ZpZGVyX2lkIjoxLCJsb2dpbl9nb2xzdGF0cyI6MSwiaWF0IjoxNjk4NzIzODA1LCJleHAiOjE3MzAyNTk4MDV9.3DR48YLPVAQKTisQg9SABSqDdurMuS6_z7IJfjXRlPQ"},playerId:{type:Number,default:34605},teamId:{type:Number,default:2},seasonId:{type:Number,default:1772}},emits:["viewAll","clickProfileBtn","totalPlayers"],setup(e,{emit:a}){const o=e,n=t.ref([]),i=t.ref(0),r=t.ref(0);t.onMounted(async()=>{const l=await s(o.teamId,o.seasonId,o.token);r.value=l.length,n.value=l.map(p=>({...p,position:Eo.get(p.position_id)})),o.isPlayer&&o.playerId&&(n.value=l.filter(p=>p.player_id!==o.playerId)),a("totalPlayers",r.value)});const s=async(l,p,c)=>{var u;const m="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";try{return((u=(await(await fetch(`https://pa3kubpuhg.execute-api.us-west-2.amazonaws.com/prod/playersByTeamAndSeason/${p}/${l}`,{headers:{Authorization:c||m}})).json())[0])==null?void 0:u.players)||[]}catch(g){return Promise.reject(g)}};return t.watch(()=>o.seasonId,async(l,p)=>{n.value=[];const c=await s(o.teamId,l,o.token);r.value=c.length,n.value=c.map(m=>({...m,position:Eo.get(m.position_id)})),a("totalPlayers",r.value),i.value+=1}),(l,p)=>(t.openBlock(),t.createElementBlock("div",mc,[t.createElementVNode("div",pc,[t.createElementVNode("h3",uc,t.toDisplayString(e.isPlayer?"Mis compañeros":"Mis jugadores"),1),t.createElementVNode("button",{class:"my-players__button",onClick:p[0]||(p[0]=c=>a("viewAll"))},hc)]),(t.openBlock(),t.createBlock(t.unref(rt),{pxScroll:209,scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!1,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"none",arrowsContainerBgR:"none",arrowsMargin:0,arrowsRadius:"50%",key:i.value,arrowsBorder:"#ddd"},{default:t.withCtx(()=>[t.createElementVNode("div",fc,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.value,c=>(t.openBlock(),t.createBlock(ec,t.mergeProps(c,{isImgFullWidth:e.isImgFullWidth,onClickProfileBtn:m=>a("clickProfileBtn",c),key:c.player_id}),null,16,["isImgFullWidth","onClickProfileBtn"]))),128))])]),_:1}))]))}},[["__scopeId","data-v-34ea0cee"]]),xo="data:image/svg+xml,%3csvg%20width='69'%20height='70'%20viewBox='0%200%2069%2070'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23filter0_b_3196_29756)'%3e%3crect%20x='29'%20y='35'%20width='11'%20height='11'%20rx='1'%20fill='white'%20fill-opacity='0.08'/%3e%3crect%20x='29.5'%20y='35.5'%20width='10'%20height='10'%20rx='0.5'%20stroke='white'%20stroke-opacity='0.16'/%3e%3c/g%3e%3cg%20filter='url(%23filter1_b_3196_29756)'%3e%3crect%20x='48'%20y='35'%20width='11'%20height='11'%20rx='1'%20fill='white'%20fill-opacity='0.08'/%3e%3crect%20x='48.5'%20y='35.5'%20width='10'%20height='10'%20rx='0.5'%20stroke='white'%20stroke-opacity='0.16'/%3e%3c/g%3e%3cg%20filter='url(%23filter2_b_3196_29756)'%3e%3crect%20x='10'%20y='35'%20width='11'%20height='11'%20rx='1'%20fill='white'%20fill-opacity='0.08'/%3e%3crect%20x='10.5'%20y='35.5'%20width='10'%20height='10'%20rx='0.5'%20stroke='white'%20stroke-opacity='0.16'/%3e%3c/g%3e%3cg%20opacity='0.6'%3e%3cpath%20d='M60.5556%208.70056H8.44444C4.33299%208.70056%201%2011.7003%201%2015.4006V62.3007C1%2066.001%204.33299%2069.0007%208.44444%2069.0007H60.5556C64.667%2069.0007%2068%2066.001%2068%2062.3007V15.4006C68%2011.7003%2064.667%208.70056%2060.5556%208.70056Z'%20stroke='white'%20stroke-width='1.88'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M1%2028.7991H68'%20stroke='white'%20stroke-width='1.88'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M49.3872%201.99982V15.3999'%20stroke='white'%20stroke-width='3.88'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M19.6128%201.99982V15.3999'%20stroke='white'%20stroke-width='3.88'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_b_3196_29756'%20x='13'%20y='19'%20width='43'%20height='43'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeGaussianBlur%20in='BackgroundImageFix'%20stdDeviation='8'/%3e%3cfeComposite%20in2='SourceAlpha'%20operator='in'%20result='effect1_backgroundBlur_3196_29756'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_backgroundBlur_3196_29756'%20result='shape'/%3e%3c/filter%3e%3cfilter%20id='filter1_b_3196_29756'%20x='32'%20y='19'%20width='43'%20height='43'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeGaussianBlur%20in='BackgroundImageFix'%20stdDeviation='8'/%3e%3cfeComposite%20in2='SourceAlpha'%20operator='in'%20result='effect1_backgroundBlur_3196_29756'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_backgroundBlur_3196_29756'%20result='shape'/%3e%3c/filter%3e%3cfilter%20id='filter2_b_3196_29756'%20x='-6'%20y='19'%20width='43'%20height='43'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeGaussianBlur%20in='BackgroundImageFix'%20stdDeviation='8'/%3e%3cfeComposite%20in2='SourceAlpha'%20operator='in'%20result='effect1_backgroundBlur_3196_29756'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_backgroundBlur_3196_29756'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e",An="data:image/svg+xml,%3csvg%20width='75'%20height='75'%20viewBox='0%200%2075%2075'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23filter0_b_3196_29781)'%3e%3crect%20x='6.00049'%20y='6'%20width='60'%20height='60'%20rx='30'%20fill='white'%20fill-opacity='0.08'/%3e%3crect%20x='6.50049'%20y='6.5'%20width='59'%20height='59'%20rx='29.5'%20stroke='white'%20stroke-opacity='0.16'/%3e%3c/g%3e%3cpath%20opacity='0.6'%20d='M71%2036C71%2042.9221%2068.9475%2049.6887%2065.1019%2055.4443C61.2563%2061.1998%2055.7905%2065.6859%2049.3954%2068.3351C43.0004%2070.9844%2035.9634%2071.6779%2029.1743%2070.3279C22.3851%2068.978%2016.1487%2065.6452%2011.2536%2060.751C6.3585%2055.8569%203.02455%2049.6211%201.67333%2042.8322C0.322108%2036.0433%201.01429%2029.0061%203.66235%2022.6106C6.31041%2016.2151%2010.7954%2010.7484%2016.5503%206.90175C22.3051%203.05512%2029.0714%201.0013%2035.9934%201C40.5903%200.999139%2045.1422%201.9038%2049.3894%203.66233C53.6365%205.42086%2057.4957%207.99881%2060.7464%2011.2489C63.9972%2014.4991%2066.5758%2018.3577%2068.3352%2022.6046C70.0945%2026.8514%2071%2031.4032%2071%2036V36Z'%20stroke='white'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20opacity='0.6'%20d='M74%2074L62%2062'%20stroke='white'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M44.4013%2048.6044V45.4039C44.4013%2043.7062%2043.727%2042.0781%2042.5266%2040.8777C41.3263%2039.6773%2039.6983%2039.0029%2038.0007%2039.0029H28.3999C26.7024%2039.0029%2025.0743%2039.6773%2023.874%2040.8777C22.6737%2042.0781%2021.9993%2043.7062%2021.9993%2045.4039V48.6044'%20stroke='white'%20stroke-opacity='0.6'%20stroke-width='2.38256'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M33.2031%2032.6016C36.738%2032.6016%2039.6037%2029.7358%2039.6037%2026.2006C39.6037%2022.6654%2036.738%2019.7996%2033.2031%2019.7996C29.6682%2019.7996%2026.8026%2022.6654%2026.8026%2026.2006C26.8026%2029.7358%2029.6682%2032.6016%2033.2031%2032.6016Z'%20stroke='white'%20stroke-opacity='0.6'%20stroke-width='2.38256'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M49.1998%2027.8009V37.4024M54.0003%2032.6017H44.3994'%20stroke='white'%20stroke-opacity='0.6'%20stroke-width='2.38256'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cdefs%3e%3cfilter%20id='filter0_b_3196_29781'%20x='-9.99951'%20y='-10'%20width='92'%20height='92'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeGaussianBlur%20in='BackgroundImageFix'%20stdDeviation='8'/%3e%3cfeComposite%20in2='SourceAlpha'%20operator='in'%20result='effect1_backgroundBlur_3196_29781'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_backgroundBlur_3196_29781'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e",yc="data:image/svg+xml,%3csvg%20width='90'%20height='90'%20viewBox='0%200%2090%2090'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Football%20Jersey'%3e%3cg%20id='Layer%2010'%3e%3cpath%20id='Vector'%20d='M71.7192%2052.1016V40.3172L87.7223%2033.6376C87.9169%2033.558%2088.0912%2033.4359%2088.2323%2033.2802C88.3735%2033.1244%2088.4779%2032.939%2088.538%2032.7376C88.5985%2032.5342%2088.6123%2032.3197%2088.5782%2032.1103C88.5441%2031.9009%2088.463%2031.7018%2088.3411%2031.5282L71.4661%207.62193C71.4289%207.5532%2071.3866%207.48739%2071.3395%207.42506C69.4243%205.50395%2067.1463%203.98259%2064.6381%202.94935C62.1298%201.91612%2059.4413%201.39161%2056.7286%201.40631H53.438C53.065%201.40631%2052.7073%201.55446%2052.4436%201.81819C52.1799%202.08191%2052.0317%202.4396%2052.0317%202.81256V5.62506C52.0317%207.48986%2051.2909%209.27829%2049.9723%2010.5969C48.6537%2011.9155%2046.8653%2012.6563%2045.0005%2012.6563C43.1357%2012.6563%2041.3472%2011.9155%2040.0286%2010.5969C38.71%209.27829%2037.9692%207.48986%2037.9692%205.62506V2.81256C37.9692%202.4396%2037.8211%202.08191%2037.5573%201.81819C37.2936%201.55446%2036.9359%201.40631%2036.563%201.40631H33.2723C30.5634%201.39718%2027.8796%201.92572%2025.3764%202.96128C22.8731%203.99684%2020.6003%205.51885%2018.6895%207.43912C18.6424%207.50145%2018.6001%207.56727%2018.563%207.63599L1.68797%2031.5422C1.56603%2031.7159%201.48498%2031.9149%201.45089%2032.1244C1.41679%2032.3338%201.43054%2032.5482%201.49109%2032.7516C1.55114%2032.9531%201.65558%2033.1385%201.79673%2033.2942C1.93788%2033.45%202.11215%2033.5721%202.30672%2033.6516L18.2817%2040.3172V81.5626C18.2817%2081.9355%2018.4299%2082.2932%2018.6936%2082.5569C18.9573%2082.8206%2019.315%2082.9688%2019.688%2082.9688H57.1505C59.2007%2085.1122%2061.7416%2086.7246%2064.5541%2087.6667C67.3665%2088.6089%2070.366%2088.8527%2073.2936%2088.3769C76.2213%2087.9011%2078.9892%2086.7202%2081.3586%2084.9359C83.7279%2083.1516%2085.6276%2080.8176%2086.8936%2078.1353C88.1596%2075.453%2088.7539%2072.503%2088.6253%2069.5397C88.4967%2066.5764%2087.649%2063.6889%2086.1554%2061.1264C84.6617%2058.5639%2082.567%2056.4032%2080.052%2054.8309C77.5369%2053.2587%2074.6771%2052.3219%2071.7192%2052.1016ZM84.8255%2065.011L77.7942%2066.0235L71.7192%2061.2001V54.9141C74.6356%2055.1837%2077.4155%2056.2757%2079.7356%2058.0631C82.0558%2059.8505%2083.8208%2062.2599%2084.8255%2065.011ZM73.5755%2074.5313H67.1067L64.927%2067.9922L70.313%2063.6751L75.6989%2067.9922L73.5755%2074.5313ZM54.8442%2070.3126C54.8475%2069.4546%2054.9227%2068.5985%2055.0692%2067.7532L62.227%2068.7657L64.5192%2075.6563L59.7661%2081.5626C58.2159%2080.1269%2056.9786%2078.3867%2056.1317%2076.4509C55.2848%2074.5152%2054.8465%2072.4255%2054.8442%2070.3126ZM68.9067%2052.0313C66.9688%2052.1978%2065.07%2052.6726%2063.2817%2053.4376V51.3141C63.2728%2045.3135%2065.2507%2039.4787%2068.9067%2034.7204V52.0313ZM68.9067%2054.8438V61.1297L62.8739%2066.0938L55.8427%2065.0813C56.8334%2062.3231%2058.5873%2059.9031%2060.9002%2058.1031C63.213%2056.3031%2065.9897%2055.1972%2068.9067%2054.9141V54.8438ZM71.7192%2037.2657V12.8672L85.0223%2031.7251L71.7192%2037.2657ZM4.97859%2031.7251L18.2817%2012.8672V37.2657L4.97859%2031.7251ZM21.0942%2034.7204C24.7503%2039.4787%2026.7282%2045.3135%2026.7192%2051.3141V80.1563H21.0942V34.7204ZM29.5317%2080.1563V51.3141C29.546%2043.5117%2026.5194%2036.0108%2021.0942%2030.4032V9.02818C24.3875%205.92407%2028.7467%204.20253%2033.2723%204.21881H35.1567V5.62506C35.1567%208.23578%2036.1938%2010.7396%2038.0399%2012.5856C39.8859%2014.4317%2042.3897%2015.4688%2045.0005%2015.4688C47.6112%2015.4688%2050.115%2014.4317%2051.9611%2012.5856C53.8071%2010.7396%2054.8442%208.23578%2054.8442%205.62506V4.21881H56.7286C61.2542%204.20253%2065.6134%205.92407%2068.9067%209.02818V30.4032C63.4816%2036.0108%2060.455%2043.5117%2060.4692%2051.3141V54.9282C56.3926%2057.542%2053.5197%2061.6664%2052.4809%2066.3963C51.4421%2071.1261%2052.3224%2076.0748%2054.9286%2080.1563H29.5317ZM61.988%2083.3204L66.7692%2077.3438H73.8005L78.5817%2083.3204C76.1021%2084.9263%2073.211%2085.7808%2070.2567%2085.7808C67.3025%2085.7808%2064.4113%2084.9263%2061.9317%2083.3204H61.988ZM80.8598%2081.5626L76.1067%2075.6563L78.3989%2068.7657L85.5567%2067.7532C85.9891%2070.2641%2085.7858%2072.8433%2084.9653%2075.2555C84.1449%2077.6677%2082.7335%2079.836%2080.8598%2081.5626Z'%20fill='%23A0A9AF'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",bc="data:image/svg+xml,%3csvg%20width='90'%20height='90'%20viewBox='0%200%2090%2090'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='fi_8584464'%3e%3cpath%20id='Vector'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M76.9582%2067.1642V5.59678C76.9582%204.8244%2076.3322%204.19775%2075.5592%204.19775H13.9918C13.2194%204.19775%2012.5928%204.8244%2012.5928%205.59678V67.1642C12.5928%2067.676%2012.8722%2068.1475%2013.3222%2068.3926L44.1055%2085.1836C44.5233%2085.4113%2045.0277%2085.4113%2045.4455%2085.1836L76.2295%2068.3926C76.6788%2068.1475%2076.9582%2067.676%2076.9582%2067.1642ZM74.1602%2018.1901V66.3333L44.7758%2082.3614L15.3915%2066.3333V18.1901H74.1602ZM44.7758%2023.7875C32.419%2023.7875%2022.3873%2033.8192%2022.3873%2046.1754C22.3873%2058.5316%2032.419%2068.5632%2044.7758%2068.5632C57.132%2068.5632%2067.1637%2058.5316%2067.1637%2046.1754C67.1637%2033.8192%2057.132%2023.7875%2044.7758%2023.7875ZM38.8795%2064.8604L44.7758%2059.985L50.6715%2064.8604C48.8104%2065.4481%2046.8297%2065.7651%2044.7758%2065.7651C42.7213%2065.7651%2040.7406%2065.4481%2038.8795%2064.8604ZM35.939%2028.6905C32.2168%2030.5772%2029.177%2033.617%2027.2903%2037.3392L33.8603%2045.2834C34.2881%2045.8013%2034.2881%2046.5495%2033.8603%2047.0673L27.2903%2055.0115C29.177%2058.7337%2032.2175%2061.7742%2035.939%2063.6602L43.8839%2057.0909C44.4011%2056.6631%2045.1499%2056.6631%2045.6671%2057.0909L53.6119%2063.6602C57.3342%2061.7736%2060.374%2058.7337%2062.2607%2055.0115L55.6907%2047.0673C55.2628%2046.5495%2055.2628%2045.8013%2055.6907%2045.2834L62.2607%2037.3392C60.374%2033.617%2057.3342%2030.5765%2053.6119%2028.6905L45.6671%2035.2598C45.1499%2035.6877%2044.4011%2035.6877%2043.8839%2035.2598L35.939%2028.6905ZM45.5979%2037.5475C45.1076%2037.1908%2044.4434%2037.1908%2043.9531%2037.5475L36.8243%2042.7272C36.3333%2043.0831%2036.1284%2043.7151%2036.3158%2044.2914L39.0387%2052.6722C39.2261%2053.2484%2039.7634%2053.6393%2040.3699%2053.6393H49.1818C49.7876%2053.6393%2050.3249%2053.2484%2050.5123%2052.6722L53.2358%2044.2914C53.4225%2043.7151%2053.2177%2043.0831%2052.7274%2042.7272L45.5979%2037.5475ZM58.5848%2046.1754L63.4609%2040.279C64.0486%2042.1401%2064.3649%2044.1208%2064.3649%2046.1754C64.3649%2048.2299%2064.0486%2050.2106%2063.4609%2052.0717L58.5848%2046.1754ZM26.0908%2040.279L30.9662%2046.1754L26.0908%2052.0717C25.5031%2050.2106%2025.1861%2048.2299%2025.1861%2046.1754C25.1861%2044.1208%2025.5031%2042.1401%2026.0908%2040.279ZM44.7758%2040.4086L50.2598%2044.3935L48.1649%2050.8406H41.3861L39.2912%2044.3935L44.7758%2040.4086ZM50.6715%2027.4903L44.7758%2032.3657L38.8795%2027.4903C40.7406%2026.9026%2042.7213%2026.5856%2044.7758%2026.5856C46.8297%2026.5856%2048.8104%2026.9026%2050.6715%2027.4903ZM74.1602%2015.392H15.3915C15.3915%2014.9548%2015.3915%2012.5933%2015.3915%2012.5933H74.1602V15.392ZM15.3915%209.79454V6.99648H74.1602V9.79454H15.3915Z'%20fill='%23A0A9AF'/%3e%3c/g%3e%3c/svg%3e",wc=["onClick"],_c={class:"grid-section__image"},Sc=["src"],kc={class:"grid-section__label"},Cc=ie({__name:"GSCGridTeamsMatches",props:{isPlayer:{type:Boolean,default:!1},playerId:{type:Number,default:0},teamId:{type:Number,default:0},seasonSelected:{type:Number,default:0},nextRivalId:{type:Number,default:0},hasTeam:{type:Boolean,default:!1},teamImg:{type:[String,void 0],default:void 0},rivalImg:{type:[String,void 0],default:void 0},playerImg:{type:[String,void 0],default:void 0},componentWidth:{type:Number,default:768}},emits:["action"],setup(e,{emit:a}){const o=e;function n(s){a("action",s)}const i=t.computed(()=>o.componentWidth<768),r=t.computed(()=>{let s;return o.isPlayer?s=[{type:"player",label:"Mi perfil →",image:o.playerImg||"",imgType:"player",player:o.playerId,team:o.teamId,season:o.seasonSelected},{type:"team",label:"Analizar mi equipo →",image:o.teamImg||"",imgType:"team",team:o.teamId,season:o.seasonSelected},{type:"rival",label:"Analizar mi próximo rival →",image:o.rivalImg||"",imgType:"team",team:o.nextRivalId,season:o.seasonSelected},{type:"schedule",label:"Mis partidos →",image:xo,imgType:"svg",team:o.teamId,season:o.seasonSelected}]:o.hasTeam?s=[{type:"team",label:"Analizar mi equipo →",image:o.teamImg||"",imgType:"team",team:o.teamId,season:o.seasonSelected},{type:"rival",label:"Analizar mi próximo rival →",image:o.rivalImg||"",imgType:"team",team:o.nextRivalId,season:o.seasonSelected},{type:"schedule",label:"Mis partidos →",image:xo,imgType:"svg",team:o.teamId,season:o.seasonSelected},{type:"scouting",label:"Scouting cientifico →",image:An,imgType:"svg",season:o.seasonSelected}]:s=[{type:"teamOtherLeague",label:"Buscar equipo →",image:bc,imgType:"svg",season:o.seasonSelected},{type:"playerOtherLeague",label:"Buscar jugador →",image:yc,imgType:"svg",season:o.seasonSelected},{type:"scheduleOtherLeague",label:"Calendario general →",image:xo,imgType:"svg",season:o.seasonSelected},{type:"scouting",label:"Scouting cientifico →",image:An,imgType:"svg",season:o.seasonSelected}],s});return(s,l)=>(t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass(["grid-section",{mobile:i.value}])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.value,(p,c)=>(t.openBlock(),t.createElementBlock("div",{key:c,class:"grid-section__card",onClick:m=>n(p)},[t.createElementVNode("figure",_c,[p.image!==""?(t.openBlock(),t.createElementBlock("img",{key:0,src:p.image,alt:"",class:t.normalizeClass(p.imgType)},null,10,Sc)):t.createCommentVNode("",!0)]),t.createElementVNode("p",kc,t.toDisplayString(p.label),1)],8,wc))),128))],2))}},[["__scopeId","data-v-b0f26065"]]);function zn(e,a){return function(){return e.apply(a,arguments)}}const{toString:Bc}=Object.prototype,{getPrototypeOf:To}=Object,Ot=(e=>a=>{const o=Bc.call(a);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),Be=e=>(e=e.toLowerCase(),a=>Ot(a)===e),Vt=e=>a=>typeof a===e,{isArray:qe}=Array,it=Vt("undefined");function Ec(e){return e!==null&&!it(e)&&e.constructor!==null&&!it(e.constructor)&&ce(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Rn=Be("ArrayBuffer");function Nc(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&Rn(e.buffer),a}const xc=Vt("string"),ce=Vt("function"),In=Vt("number"),$t=e=>e!==null&&typeof e=="object",Tc=e=>e===!0||e===!1,At=e=>{if(Ot(e)!=="object")return!1;const a=To(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Oc=Be("Date"),Vc=Be("File"),$c=Be("Blob"),Ac=Be("FileList"),zc=e=>$t(e)&&ce(e.pipe),Rc=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||ce(e.append)&&((a=Ot(e))==="formdata"||a==="object"&&ce(e.toString)&&e.toString()==="[object FormData]"))},Ic=Be("URLSearchParams"),Fc=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function st(e,a,{allOwnKeys:o=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),qe(e))for(n=0,i=e.length;n<i;n++)a.call(null,e[n],n,e);else{const r=o?Object.getOwnPropertyNames(e):Object.keys(e),s=r.length;let l;for(n=0;n<s;n++)l=r[n],a.call(null,e[l],l,e)}}function Fn(e,a){a=a.toLowerCase();const o=Object.keys(e);let n=o.length,i;for(;n-- >0;)if(i=o[n],a===i.toLowerCase())return i;return null}const Pn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ln=e=>!it(e)&&e!==Pn;function Oo(){const{caseless:e}=Ln(this)&&this||{},a={},o=(n,i)=>{const r=e&&Fn(a,i)||i;At(a[r])&&At(n)?a[r]=Oo(a[r],n):At(n)?a[r]=Oo({},n):qe(n)?a[r]=n.slice():a[r]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&st(arguments[n],o);return a}const Pc=(e,a,o,{allOwnKeys:n}={})=>(st(a,(i,r)=>{o&&ce(i)?e[r]=zn(i,o):e[r]=i},{allOwnKeys:n}),e),Lc=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Dc=(e,a,o,n)=>{e.prototype=Object.create(a.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),o&&Object.assign(e.prototype,o)},Mc=(e,a,o,n)=>{let i,r,s;const l={};if(a=a||{},e==null)return a;do{for(i=Object.getOwnPropertyNames(e),r=i.length;r-- >0;)s=i[r],(!n||n(s,e,a))&&!l[s]&&(a[s]=e[s],l[s]=!0);e=o!==!1&&To(e)}while(e&&(!o||o(e,a))&&e!==Object.prototype);return a},jc=(e,a,o)=>{e=String(e),(o===void 0||o>e.length)&&(o=e.length),o-=a.length;const n=e.indexOf(a,o);return n!==-1&&n===o},vc=e=>{if(!e)return null;if(qe(e))return e;let a=e.length;if(!In(a))return null;const o=new Array(a);for(;a-- >0;)o[a]=e[a];return o},Wc=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&To(Uint8Array)),Uc=(e,a)=>{const o=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=o.next())&&!n.done;){const i=n.value;a.call(e,i[0],i[1])}},Hc=(e,a)=>{let o;const n=[];for(;(o=e.exec(a))!==null;)n.push(o);return n},Gc=Be("HTMLFormElement"),Jc=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,o,n){return o.toUpperCase()+n}),Dn=(({hasOwnProperty:e})=>(a,o)=>e.call(a,o))(Object.prototype),qc=Be("RegExp"),Mn=(e,a)=>{const o=Object.getOwnPropertyDescriptors(e),n={};st(o,(i,r)=>{let s;(s=a(i,r,e))!==!1&&(n[r]=s||i)}),Object.defineProperties(e,n)},Zc=e=>{Mn(e,(a,o)=>{if(ce(e)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const n=e[o];if(ce(n)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},Xc=(e,a)=>{const o={},n=i=>{i.forEach(r=>{o[r]=!0})};return qe(e)?n(e):n(String(e).split(a)),o},Kc=()=>{},Yc=(e,a)=>(e=+e,Number.isFinite(e)?e:a),Vo="abcdefghijklmnopqrstuvwxyz",jn="0123456789",vn={DIGIT:jn,ALPHA:Vo,ALPHA_DIGIT:Vo+Vo.toUpperCase()+jn},Qc=(e=16,a=vn.ALPHA_DIGIT)=>{let o="";const{length:n}=a;for(;e--;)o+=a[Math.random()*n|0];return o};function ed(e){return!!(e&&ce(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const td=e=>{const a=new Array(10),o=(n,i)=>{if($t(n)){if(a.indexOf(n)>=0)return;if(!("toJSON"in n)){a[i]=n;const r=qe(n)?[]:{};return st(n,(s,l)=>{const p=o(s,i+1);!it(p)&&(r[l]=p)}),a[i]=void 0,r}}return n};return o(e,0)},od=Be("AsyncFunction"),ad=e=>e&&($t(e)||ce(e))&&ce(e.then)&&ce(e.catch),_={isArray:qe,isArrayBuffer:Rn,isBuffer:Ec,isFormData:Rc,isArrayBufferView:Nc,isString:xc,isNumber:In,isBoolean:Tc,isObject:$t,isPlainObject:At,isUndefined:it,isDate:Oc,isFile:Vc,isBlob:$c,isRegExp:qc,isFunction:ce,isStream:zc,isURLSearchParams:Ic,isTypedArray:Wc,isFileList:Ac,forEach:st,merge:Oo,extend:Pc,trim:Fc,stripBOM:Lc,inherits:Dc,toFlatObject:Mc,kindOf:Ot,kindOfTest:Be,endsWith:jc,toArray:vc,forEachEntry:Uc,matchAll:Hc,isHTMLForm:Gc,hasOwnProperty:Dn,hasOwnProp:Dn,reduceDescriptors:Mn,freezeMethods:Zc,toObjectSet:Xc,toCamelCase:Jc,noop:Kc,toFiniteNumber:Yc,findKey:Fn,global:Pn,isContextDefined:Ln,ALPHABET:vn,generateString:Qc,isSpecCompliantForm:ed,toJSONObject:td,isAsyncFn:od,isThenable:ad};function F(e,a,o,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),o&&(this.config=o),n&&(this.request=n),i&&(this.response=i)}_.inherits(F,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:_.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Wn=F.prototype,Un={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Un[e]={value:e}}),Object.defineProperties(F,Un),Object.defineProperty(Wn,"isAxiosError",{value:!0}),F.from=(e,a,o,n,i,r)=>{const s=Object.create(Wn);return _.toFlatObject(e,s,function(l){return l!==Error.prototype},l=>l!=="isAxiosError"),F.call(s,e.message,a,o,n,i),s.cause=e,s.name=e.name,r&&Object.assign(s,r),s};const nd=null;function $o(e){return _.isPlainObject(e)||_.isArray(e)}function Hn(e){return _.endsWith(e,"[]")?e.slice(0,-2):e}function Gn(e,a,o){return e?e.concat(a).map(function(n,i){return n=Hn(n),!o&&i?"["+n+"]":n}).join(o?".":""):a}function rd(e){return _.isArray(e)&&!e.some($o)}const id=_.toFlatObject(_,{},null,function(e){return/^is[A-Z]/.test(e)});function zt(e,a,o){if(!_.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,o=_.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,h){return!_.isUndefined(h[d])});const n=o.metaTokens,i=o.visitor||c,r=o.dots,s=o.indexes,l=(o.Blob||typeof Blob<"u"&&Blob)&&_.isSpecCompliantForm(a);if(!_.isFunction(i))throw new TypeError("visitor must be a function");function p(d){if(d===null)return"";if(_.isDate(d))return d.toISOString();if(!l&&_.isBlob(d))throw new F("Blob is not supported. Use a Buffer instead.");return _.isArrayBuffer(d)||_.isTypedArray(d)?l&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function c(d,h,f){let y=d;if(d&&!f&&typeof d=="object"){if(_.endsWith(h,"{}"))h=n?h:h.slice(0,-2),d=JSON.stringify(d);else if(_.isArray(d)&&rd(d)||(_.isFileList(d)||_.endsWith(h,"[]"))&&(y=_.toArray(d)))return h=Hn(h),y.forEach(function(C,A){!(_.isUndefined(C)||C===null)&&a.append(s===!0?Gn([h],A,r):s===null?h:h+"[]",p(C))}),!1}return $o(d)?!0:(a.append(Gn(f,h,r),p(d)),!1)}const m=[],u=Object.assign(id,{defaultVisitor:c,convertValue:p,isVisitable:$o});function g(d,h){if(!_.isUndefined(d)){if(m.indexOf(d)!==-1)throw Error("Circular reference detected in "+h.join("."));m.push(d),_.forEach(d,function(f,y){(!(_.isUndefined(f)||f===null)&&i.call(a,f,_.isString(y)?y.trim():y,h,u))===!0&&g(f,h?h.concat(y):[y])}),m.pop()}}if(!_.isObject(e))throw new TypeError("data must be an object");return g(e),a}function Jn(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return a[o]})}function Ao(e,a){this._pairs=[],e&&zt(e,this,a)}const qn=Ao.prototype;qn.append=function(e,a){this._pairs.push([e,a])},qn.toString=function(e){const a=e?function(o){return e.call(this,o,Jn)}:Jn;return this._pairs.map(function(o){return a(o[0])+"="+a(o[1])},"").join("&")};function sd(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Zn(e,a,o){if(!a)return e;const n=o&&o.encode||sd,i=o&&o.serialize;let r;if(i?r=i(a,o):r=_.isURLSearchParams(a)?a.toString():new Ao(a,o).toString(n),r){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}class ld{constructor(){this.handlers=[]}use(a,o,n){return this.handlers.push({fulfilled:a,rejected:o,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){_.forEach(this.handlers,function(o){o!==null&&a(o)})}}const Xn=ld,Kn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},cd=typeof URLSearchParams<"u"?URLSearchParams:Ao,dd=typeof FormData<"u"?FormData:null,md=typeof Blob<"u"?Blob:null,pd={isBrowser:!0,classes:{URLSearchParams:cd,FormData:dd,Blob:md},protocols:["http","https","file","blob","url","data"]},Yn=typeof window<"u"&&typeof document<"u",ud=(e=>Yn&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),hd=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",fd=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Yn,hasStandardBrowserEnv:ud,hasStandardBrowserWebWorkerEnv:hd},Symbol.toStringTag,{value:"Module"})),Ee={...fd,...pd};function gd(e,a){return zt(e,new Ee.classes.URLSearchParams,Object.assign({visitor:function(o,n,i,r){return Ee.isNode&&_.isBuffer(o)?(this.append(n,o.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},a))}function yd(e){return _.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function bd(e){const a={},o=Object.keys(e);let n;const i=o.length;let r;for(n=0;n<i;n++)r=o[n],a[r]=e[r];return a}function Qn(e){function a(o,n,i,r){let s=o[r++];if(s==="__proto__")return!0;const l=Number.isFinite(+s),p=r>=o.length;return s=!s&&_.isArray(i)?i.length:s,p?(_.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!l):((!i[s]||!_.isObject(i[s]))&&(i[s]=[]),a(o,n,i[s],r)&&_.isArray(i[s])&&(i[s]=bd(i[s])),!l)}if(_.isFormData(e)&&_.isFunction(e.entries)){const o={};return _.forEachEntry(e,(n,i)=>{a(yd(n),i,o,0)}),o}return null}function wd(e,a,o){if(_.isString(e))try{return(a||JSON.parse)(e),_.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(o||JSON.stringify)(e)}const zo={transitional:Kn,adapter:["xhr","http"],transformRequest:[function(e,a){const o=a.getContentType()||"",n=o.indexOf("application/json")>-1,i=_.isObject(e);if(i&&_.isHTMLForm(e)&&(e=new FormData(e)),_.isFormData(e))return n?JSON.stringify(Qn(e)):e;if(_.isArrayBuffer(e)||_.isBuffer(e)||_.isStream(e)||_.isFile(e)||_.isBlob(e))return e;if(_.isArrayBufferView(e))return e.buffer;if(_.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let r;if(i){if(o.indexOf("application/x-www-form-urlencoded")>-1)return gd(e,this.formSerializer).toString();if((r=_.isFileList(e))||o.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return zt(r?{"files[]":e}:e,s&&new s,this.formSerializer)}}return i||n?(a.setContentType("application/json",!1),wd(e)):e}],transformResponse:[function(e){const a=this.transitional||zo.transitional,o=a&&a.forcedJSONParsing,n=this.responseType==="json";if(e&&_.isString(e)&&(o&&!this.responseType||n)){const i=!(a&&a.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(r){if(i)throw r.name==="SyntaxError"?F.from(r,F.ERR_BAD_RESPONSE,this,null,this.response):r}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ee.classes.FormData,Blob:Ee.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_.forEach(["delete","get","head","post","put","patch"],e=>{zo.headers[e]={}});const Ro=zo,_d=_.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Sd=e=>{const a={};let o,n,i;return e&&e.split(`
|
|
7
|
-
`).forEach(function(
|
|
8
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...
|
|
9
|
-
`+
|
|
10
|
-
`):" "+
|
|
11
|
-
`+r):n.stack=r}throw n}}_request(a,o){typeof a=="string"?(o=o||{},o.url=a):o=a||{},o=Ze(this.defaults,o);const{transitional:n,paramsSerializer:i,headers:r}=o;n!==void 0&&Mo.assertOptions(n,{silentJSONParsing:Le.transitional(Le.boolean),forcedJSONParsing:Le.transitional(Le.boolean),clarifyTimeoutError:Le.transitional(Le.boolean)},!1),i!=null&&(_.isFunction(i)?o.paramsSerializer={serialize:i}:Mo.assertOptions(i,{encode:Le.function,serialize:Le.function},!0)),o.method=(o.method||this.defaults.method||"get").toLowerCase();let s=r&&_.merge(r.common,r[o.method]);r&&_.forEach(["delete","get","head","post","put","patch","common"],h=>{delete r[h]}),o.headers=Re.concat(s,r);const l=[];let p=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(o)===!1||(p=p&&h.synchronous,l.unshift(h.fulfilled,h.rejected))});const c=[];this.interceptors.response.forEach(function(h){c.push(h.fulfilled,h.rejected)});let m,u=0,g;if(!p){const h=[ir.bind(this),void 0];for(h.unshift.apply(h,l),h.push.apply(h,c),g=h.length,m=Promise.resolve(o);u<g;)m=m.then(h[u++],h[u++]);return m}g=l.length;let d=o;for(u=0;u<g;){const h=l[u++],f=l[u++];try{d=h(d)}catch(y){f.call(this,y);break}}try{m=ir.call(this,d)}catch(h){return Promise.reject(h)}for(u=0,g=c.length;u<g;)m=m.then(c[u++],c[u++]);return m}getUri(a){a=Ze(this.defaults,a);const o=or(a.baseURL,a.url);return Zn(o,a.params,a.paramsSerializer)}};_.forEach(["delete","get","head","options"],function(e){Ft.prototype[e]=function(a,o){return this.request(Ze(o||{},{method:e,url:a,data:(o||{}).data}))}}),_.forEach(["post","put","patch"],function(e){function a(o){return function(n,i,r){return this.request(Ze(r||{},{method:e,headers:o?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}Ft.prototype[e]=a(),Ft.prototype[e+"Form"]=a(!0)});const Pt=Ft,Pd=class Rs{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(i){o=i});const n=this;this.promise.then(i=>{if(!n._listeners)return;let r=n._listeners.length;for(;r-- >0;)n._listeners[r](i);n._listeners=null}),this.promise.then=i=>{let r;const s=new Promise(l=>{n.subscribe(l),r=l}).then(i);return s.cancel=function(){n.unsubscribe(r)},s},a(function(i,r,s){n.reason||(n.reason=new ct(i,r,s),o(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const o=this._listeners.indexOf(a);o!==-1&&this._listeners.splice(o,1)}static source(){let a;return{token:new Rs(function(o){a=o}),cancel:a}}};function Ld(e){return function(a){return e.apply(null,a)}}function Dd(e){return _.isObject(e)&&e.isAxiosError===!0}const jo={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(jo).forEach(([e,a])=>{jo[a]=e});const Md=jo;function dr(e){const a=new Pt(e),o=zn(Pt.prototype.request,a);return _.extend(o,Pt.prototype,a,{allOwnKeys:!0}),_.extend(o,a,null,{allOwnKeys:!0}),o.create=function(n){return dr(Ze(e,n))},o}const G=dr(Ro);G.Axios=Pt,G.CanceledError=ct,G.CancelToken=Pd,G.isCancel=tr,G.VERSION=lr,G.toFormData=zt,G.AxiosError=F,G.Cancel=G.CanceledError,G.all=function(e){return Promise.all(e)},G.spread=Ld,G.isAxiosError=Dd,G.mergeConfig=Ze,G.AxiosHeaders=Re,G.formToJSON=e=>Qn(_.isHTMLForm(e)?new FormData(e):e),G.getAdapter=rr.getAdapter,G.HttpStatusCode=Md,G.default=G;const mr=G,jd=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},vo={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},pr=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},ur=vo.setup;vo.setup=ur?(e,a)=>(pr(),ur(e,a)):pr;const vd=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),Wd=["src"],Ud={key:1,class:"text"},Hd=["src"],Gd={class:"stats"},Jd=vd(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),qd={class:"numstats"},Zd={class:"leyend"};function Xd(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",null,[o.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",i.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([r.customStyle,i.status&&o.typeOnOff&&r.customActive]),onClick:a[0]||(a[0]=(...s)=>r.btnClick&&r.btnClick(...s))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,Wd)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",Ud,t.toDisplayString(o.textValue),1)):t.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,Hd)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...s)=>r.btnClick&&r.btnClick(...s))},[t.createElementVNode("div",Gd,[Jd,t.createElementVNode("div",qd,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",Zd,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const Kd=jd(vo,[["render",Xd],["__scopeId","data-v-fb269a1e"]]),Yd=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},Wo={components:{GSCButton:Kd},props:{hiddenButtonAll:{type:Boolean,default:!1},teamId:{type:Number,default:0},height:{type:String,default:"71px"},backgroundColor:{type:String,default:"#0d1d29"},containBorderType:{type:String,default:"solid"},containBorderWidth:{type:Number,default:0},containBorderColor:{type:String,default:""},componentontainBorderRadius:{type:String,default:"0px"},teamBorderType:{type:String,default:"solid"},teamBorderWidth:{type:Number,default:1},teamBorderColor:{type:String,default:"#566068"},teamBorderRadius:{type:String,default:"43px"},teamHeight:{type:String,default:"43px"},teamWidth:{type:String,default:"43px"},data:{type:Array,default:()=>[]}},data(){return{teamselect:this.teamId,scrollBar:!1}},watch:{teamId:{handler:function(e){this.teamselect=e},immediate:!0}},computed:{centerTextCustom(){return this.hiddenButtonAll&&!this.scrollBar?"center":"left"},marginCustom(){return this.hiddenButtonAll?"0px":"12px"},customStyleContain(){return{height:this.height,backgroundColor:this.backgroundColor,borderRadius:this.containBorderRadius,border:`${this.containBorderType} ${this.containBorderWidth}px ${this.containBorderColor}`}},customStyleTeam(){return{height:this.teamHeight,width:this.teamWidth,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.teamBorderType} ${this.teamBorderWidth}px ${this.teamBorderColor}`}}},methods:{checkIfElementHasScroll(){const e=this.$refs.container.querySelector("#panelteams");e.scrollWidth>e.clientWidth?this.scrollBar=!0:this.scrollBar=!1},btnTeamClick(e){this.$emit("clickTeam",e),this.teamselect=e},click(){this.$emit("clickAll",0),this.teamselect=0}},mounted(){this.checkIfElementHasScroll(),window.addEventListener("resize",this.checkIfElementHasScroll)},beforeUnmount(){window.removeEventListener("resize",this.checkIfElementHasScroll)}},hr=()=>{t.useCssVars(e=>({"132156c0":e.centerTextCustom,"096d3ecc":e.marginCustom}))},fr=Wo.setup;Wo.setup=fr?(e,a)=>(hr(),fr(e,a)):hr;const Qd={id:"panelteams",class:"gsc-filterperteam__panel-teams",ref:"panel"},em={class:"gsc-filterperteam__panel-teams__cont-teams"},tm=["onClick"],om=["src","alt","title"];function am(e,a,o,n,i,r){const s=t.resolveComponent("GSCButton");return t.openBlock(),t.createElementBlock("div",{class:"gsc-filterperteam",ref:"container",style:t.normalizeStyle(r.customStyleContain)},[t.createElementVNode("div",Qd,[t.createElementVNode("div",em,[o.hiddenButtonAll?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(r.customStyleTeam),class:t.normalizeClass(["gsc-filterperteam__panel-teams__cont-teams__button-all",this.teamselect!==0?"--disabled":""])},[t.createVNode(s,{"text-value":"Todos",width:"76px",height:"28px","font-family":"Poppins-Light","font-size":"13px","border-color":"#cbee6b","border-type":"solid","border-width":"1","background-color":"#2A3641","border-radius":"64px",onClick:r.click},null,8,["onClick"])],6)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.data,(l,p)=>(t.openBlock(),t.createElementBlock("div",{key:p,style:t.normalizeStyle(r.customStyleTeam),class:t.normalizeClass([l.id==i.teamselect?"colorselect":"","gsc-filterperteam__panel-teams__cont-teams__btn-team hover-team"]),onClick:c=>r.btnTeamClick(l.id)},[t.createElementVNode("img",{src:l.logo,alt:l.name,title:l.name},null,8,om)],14,tm))),128))])],512)],4)}const nm=Yd(Wo,[["render",am],["__scopeId","data-v-ab79352d"]]),rm=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},Uo={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},gr=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},yr=Uo.setup;Uo.setup=yr?(e,a)=>(gr(),yr(e,a)):gr;const im=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),sm=["src"],lm={key:1,class:"text"},cm=["src"],dm={class:"stats"},mm=im(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),pm={class:"numstats"},um={class:"leyend"};function hm(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",null,[o.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",i.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([r.customStyle,i.status&&o.typeOnOff&&r.customActive]),onClick:a[0]||(a[0]=(...s)=>r.btnClick&&r.btnClick(...s))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,sm)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",lm,t.toDisplayString(o.textValue),1)):t.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,cm)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...s)=>r.btnClick&&r.btnClick(...s))},[t.createElementVNode("div",dm,[mm,t.createElementVNode("div",pm,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",um,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const fm=rm(Uo,[["render",hm],["__scopeId","data-v-fb269a1e"]]);function gm(e){const a=t.ref({width:0,height:0});function o(){const n=e.value.getBoundingClientRect();a.value.width=n.width,a.value.height=n.height}return t.onMounted(()=>{o(),window.addEventListener("resize",o)}),t.onUnmounted(()=>{window.removeEventListener("resize",o)}),{elementSize:a}}const ym=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},bm={components:{GSCButton:fm},props:{data:{type:Object,default:()=>{}},teamSelected:{type:Number,default:0},isheader:{type:Boolean,default:!0},oneClick:{type:Boolean,default:!0},isVideos:{type:Boolean,default:!0},isGames:{type:Boolean,default:!0},isPremium:{type:Boolean,default:!0},HeadBackgroundColor:{type:String,default:""},HeadFontColor:{type:String,default:""},ItemFontColor:{type:String,default:""},backgroundColor:{type:String,default:"#172531"},ItemHeight:{type:String,default:""}},setup(){const e=t.ref("myDivRef"),{elementSize:a}=gm(e);return{myDivRef:e,elementSize:a}},computed:{customStyle(){return{backgroundColor:this.HeadBackgroundColor,color:this.HeadFontColor}},customStyleLanding(){return{backgroundColor:this.HeadBackgroundColor,color:this.HeadFontColor,borderBottom:"none"}},customStyleItem(){return{color:this.ItemFontColor,height:this.ItemHeight,backgroundColor:this.backgroundColor}},customStyleItemLanding(){return{color:this.ItemFontColor,height:this.ItemHeight,backgroundColor:this.backgroundColor,borderBottom:"none"}}},methods:{setOpenMedia(e,a,o,n,i,r="",s=!1,l){l&&this.$emit("openmedia",{team:e,mainSectionType:a,playListType:o,matchResult:n,category:i,title:r,isRivalSubject:s,value:l})},goToTeamProfile(e){this.$emit("openTableProfile",e)},clickBotonVideos(e){this.isPremium&&(this.oneClick||this.$emit("btnVideos",{team:e,type:"all"}))},clickStatsVideos(e,a){this.isPremium&&(this.oneClick||this.$emit("btnStatsVideos",{team:e,type:a}))},btnAllOneClick(e){this.isPremium&&this.oneClick&&this.$emit("btnVideos",{team:e,type:"all"})},customBg(e,a,o){return!e&&a==o?"background: rgba(30, 60, 81, 0.5)!important":""},customGridM(e){var a={};return this.isVideos&&this.isGames?e.width>768?a={gridTemplateColumns:"7% 16.5% 15% 3.8% 3.8% 3.8% 3.8% 3.8% 3.8% 3.8% 6% 20% 9%"}:e.width>480?a={gridTemplateColumns:"7% 16.5% 8% 4.8% 4.8% 4.8% 4.8% 4.8% 4.8% 4.8% 6% 20% 9%"}:a={gridTemplateColumns:"9% 9% 8% 5% 5% 5% 5% 5% 5% 5% 6% 24% 10.1%"}:this.isVideos?e.width>768?a={gridTemplateColumns:"10% 16.5% 15% 5.8% 5.8% 5.8% 5.8% 5.8% 5.8% 5.8% 7% 11%"}:e.width>480?a={gridTemplateColumns:"9% 18.5% 15% 5.8% 5.8% 5.8% 5.8% 5.8% 5.8% 5.8% 7% 10%"}:a={gridTemplateColumns:"8% 14.5% 14% 6.8% 6.8% 6.8% 6.8% 6.8% 6.8% 5.8% 7% 9%"}:this.isGames?e.width>768?a={gridTemplateColumns:"8% 16.5% 5.8% 5.8% 5.8% 5.8% 5.8% 5.8% 5.8% 6% 20% 9%"}:e.width>480?a={gridTemplateColumns:"9% 18.5% 4.8% 4.8% 4.8% 4.8% 4.8% 4.8% 4.8% 10% 20% 9%"}:a={gridTemplateColumns:"9% 16.5% 4.8% 4.8% 4.8% 4.8% 4.8% 4.8% 4.8% 10% 22% 9%"}:e.width>768?a={gridTemplateColumns:"10% 21.5% 6.8% 6.8% 6.8% 6.8% 6.8% 6.8% 9.8% 6% 12%"}:e.width>480?a={gridTemplateColumns:"10% 21.5% 6.8% 6.8% 6.8% 6.8% 6.8% 6.8% 9.8% 6% 12%"}:a={gridTemplateColumns:"10% 21.5% 6.8% 6.8% 6.8% 6.8% 6.8% 6.8% 9.8% 6% 12%"},a}}},Ho=e=>(t.pushScopeId("data-v-333b2aca"),e=e(),t.popScopeId(),e),wm={class:"trRow",style:{width:"100%",margin:"0 auto"}},_m=Ho(()=>t.createElementVNode("div",{class:"head__itemhead"},"Pos.",-1)),Sm={key:0,class:"head__itemhead"},km=t.createStaticVNode('<div class="head__itemhead fontM" data-v-333b2aca>JJ</div><div class="head__itemhead fontM" data-v-333b2aca>JG</div><div class="head__itemhead fontM" data-v-333b2aca>JE</div><div class="head__itemhead fontM" data-v-333b2aca>JP</div><div class="head__itemhead fontM" data-v-333b2aca>GF</div><div class="head__itemhead fontM" data-v-333b2aca>GC</div><div class="head__itemhead fontM" data-v-333b2aca>DG</div><div class="head__itemhead fontM" data-v-333b2aca>PTS</div>',8),Cm={key:1,class:"head__itemhead fontP"},Bm={key:1,class:"movilTextLastGame"},Em=Ho(()=>t.createElementVNode("br",null,null,-1)),Nm=Ho(()=>t.createElementVNode("div",{class:"head__itemhead fontP"},"Prox",-1)),xm=["alt","title","src"],Tm={class:"hover-decorationTeam"},Om={class:"hover-decorationTeam"},Vm={key:0,class:"tdrow__itemtd"},$m={class:"tdrow__itemtd fontM"},Am={key:1,class:"tdrow__itemtd itemtd-games"},zm={key:1},Rm=["src"];function Im(e,a,o,n,i,r){const s=t.resolveComponent("GSCButton");return t.openBlock(),t.createElementBlock("div",wm,[o.isheader?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle([o.isGames?r.customStyle:r.customStyleLanding,r.customGridM(n.elementSize)]),class:t.normalizeClass(["head",[n.elementSize.width>768?"fontSizeTextPC":n.elementSize.width>480?"fontSizeTextTablet":n.elementSize.width>360?"fontSizeTextMV":"fontSizeTextSM"]])},[_m,t.createElementVNode("div",{class:t.normalizeClass(["head__itemhead",n.elementSize.width>600?"leftText":"centerText"])},"Equipo",2),o.isVideos?(t.openBlock(),t.createElementBlock("div",Sm," ")):t.createCommentVNode("",!0),km,o.isGames?(t.openBlock(),t.createElementBlock("div",Cm,[n.elementSize.width>580?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Últimos juegos")],64)):(t.openBlock(),t.createElementBlock("span",Bm,[t.createTextVNode("Últimos "),Em,t.createTextVNode("juegos")]))])):t.createCommentVNode("",!0),Nm],6)):t.createCommentVNode("",!0),t.createElementVNode("div",{ref:"myDivRef",onClick:a[11]||(a[11]=l=>r.btnAllOneClick(o.data.team_id)),class:t.normalizeClass(["tdrow",[n.elementSize.width>768?"fontSizeTextPCTD":n.elementSize.width>480?"fontSizeTextTabletTD":n.elementSize.width>360?"fontSizeTextMVTD":"fontSizeTextSMTD"]]),style:t.normalizeStyle([o.isGames?r.customStyleItem:r.customStyleItemLanding,r.customBg(o.isGames,o.data.team_id,o.teamSelected),r.customGridM(n.elementSize)])},[t.createElementVNode("div",{class:"tdrow__itemtd",style:t.normalizeStyle(o.isGames?"":"font-size:14px; font-family: Montserrat-Regular")},t.toDisplayString(o.data.table_position>9?o.data.table_position:"0"+o.data.table_position),5),t.createElementVNode("div",{onClick:a[0]||(a[0]=l=>r.goToTeamProfile(o.data.team_id)),class:t.normalizeClass(["tdrow__itemtd",n.elementSize.width>768?"itemtd-teampc":n.elementSize.width>600?"itemtd-teamtablet":n.elementSize.width>480?"itemtd-teammv":"itemtd-teamsm"])},[t.createElementVNode("img",{class:t.normalizeClass(["hover-decorationLogo",n.elementSize.width>768?"itemtd-teampc__img":n.elementSize.width>600?"itemtd-teamtablet__img":n.elementSize.width>480?"itemtd-teammv__img":"itemtd-teamsm__img"]),alt:o.data.team_name,title:o.data.team_name,src:o.data.team_logo},null,10,xm),n.elementSize.width>600?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.elementSize.width>768?"itemtd-teampc__txt":n.elementSize.width>600?"itemtd-teamtablet__txt":n.elementSize.width>480?"itemtd-teammv__txt":"itemtd-teamsm__txt")},[t.createElementVNode("span",Tm,t.toDisplayString(o.data.team_short_name),1)],2)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.elementSize.width>768?"itemtd-teampc__txt":n.elementSize.width>600?"itemtd-teamtablet__txt":n.elementSize.width>480?"itemtd-teammv__txt":"itemtd-teamsm__txt")},[t.createElementVNode("span",Om,t.toDisplayString(o.data.team_short_name),1)],2))],2),o.isVideos?(t.openBlock(),t.createElementBlock("div",Vm,[n.elementSize.width>768?(t.openBlock(),t.createBlock(s,{key:0,icon:o.data.games_played>0?"http://golstatsimages.blob.core.windows.net/todoelfut/botonplay.png":"/botonplaydisabled.png","icon-position":"left","icon-size":"18px","text-value":"Ver videos",width:"98px",height:"30px","font-family":"Poppins-Medium","font-size":"10px","font-color":o.data.games_played>0?"#FFF":"#999","border-color":o.data.games_played>0?"#4B565F":"#2e3439","border-type":"solid",value:!0,"border-width":1,"background-color":o.data.games_played>0?"#2A3641":"rgba(42, 54, 65, .6)",onClick:a[1]||(a[1]=l=>o.data.games_played>0?r.setOpenMedia(o.data.team_id,2,3,0,0,"Juegos jugados",!1,o.data.games_played):void 0),"border-radius":"64px"},null,8,["icon","font-color","border-color","background-color"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[n.elementSize.width>560?(t.openBlock(),t.createBlock(s,{key:0,icon:o.data.games_played>0?"http://golstatsimages.blob.core.windows.net/todoelfut/botonplay.png":"/botonplaydisabled.png","icon-position":"left","icon-size":"18px","text-value":"",width:"26px",height:"26px","font-family":"Poppins-Medium","font-size":"10px","font-color":o.data.games_played>0?"#FFF":"#999","border-color":o.data.games_played>0?"#4B565F":"#2e3439","border-type":"solid","border-width":1,"background-color":o.data.games_played>0?"#2A3641":"rgba(42, 54, 65, .6)",onClick:a[2]||(a[2]=l=>o.data.games_played>0?r.setOpenMedia(o.data.team_id,2,3,0,0,"Juegos jugados",!1,o.data.games_played):void 0),"border-radius":"64px"},null,8,["icon","font-color","border-color","background-color"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[n.elementSize.width>400?(t.openBlock(),t.createBlock(s,{key:0,icon:o.data.games_played>0?"http://golstatsimages.blob.core.windows.net/todoelfut/botonplay.png":"/botonplaydisabled.png","icon-position":"left","icon-size":"18px","text-value":"",width:"21px",height:"21px","font-family":"Poppins-Medium","font-size":"10px","font-color":o.data.games_played>0?"#FFF":"#999","border-color":o.data.games_played>0?"#4B565F":"#2e3439","border-type":"solid","border-width":1,"background-color":o.data.games_played>0?"#2A3641":"rgba(42, 54, 65, .6)",onClick:a[3]||(a[3]=l=>o.data.games_played>0?r.setOpenMedia(o.data.team_id,2,3,0,0,"Juegos jugados",!1,o.data.games_played):void 0),"border-radius":"64px"},null,8,["icon","font-color","border-color","background-color"])):(t.openBlock(),t.createBlock(s,{key:1,icon:o.data.games_played>0?"http://golstatsimages.blob.core.windows.net/todoelfut/botonplay.png":"/botonplaydisabled.png","icon-position":"left","icon-size":"18px","text-value":"",width:"17px",height:"17px","font-family":"Poppins-Medium","font-size":"10px","font-color":o.data.games_played>0?"#FFF":"#999","border-color":o.data.games_played>0?"#4B565F":"#2e3439","border-type":"solid","border-width":1,"background-color":o.data.games_played>0?"#2A3641":"rgba(42, 54, 65, .6)",onClick:a[4]||(a[4]=l=>o.data.games_played>0?r.setOpenMedia(o.data.team_id,2,3,0,0,"Juegos jugados",!1,o.data.games_played):void 0),"border-radius":"64px"},null,8,["icon","font-color","border-color","background-color"]))],64))],64))])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"tdrow__itemtd fontM",onClick:a[5]||(a[5]=l=>r.setOpenMedia(o.data.team_id,2,3,0,0,"Juegos jugados",!1,o.data.games_played))},[t.createElementVNode("span",{class:t.normalizeClass(o.data.games_played!=0?"hover-decoration":"")},t.toDisplayString(o.data.games_played),3)]),t.createElementVNode("div",{class:"tdrow__itemtd fontM",onClick:a[6]||(a[6]=l=>r.setOpenMedia(o.data.team_id,2,3,1,0,"Juegos ganados",!1,o.data.games_won))},[t.createElementVNode("span",{class:t.normalizeClass(o.data.games_won!=0?"hover-decoration":"")},t.toDisplayString(o.data.games_won),3)]),t.createElementVNode("div",{class:"tdrow__itemtd fontM",onClick:a[7]||(a[7]=l=>r.setOpenMedia(o.data.team_id,2,3,3,0,"Juegos empatados",!1,o.data.games_tied))},[t.createElementVNode("span",{class:t.normalizeClass(o.data.games_tied!=0?"hover-decoration":"")},t.toDisplayString(o.data.games_tied),3)]),t.createElementVNode("div",{class:"tdrow__itemtd fontM",onClick:a[8]||(a[8]=l=>r.setOpenMedia(o.data.team_id,2,3,2,0,"Juegos perdidos",!1,o.data.games_lost))},[t.createElementVNode("span",{class:t.normalizeClass(o.data.games_lost!=0?"hover-decoration":"")},t.toDisplayString(o.data.games_lost),3)]),t.createElementVNode("div",{class:"tdrow__itemtd fontM",onClick:a[9]||(a[9]=l=>r.setOpenMedia(o.data.team_id,1,3,0,1e3,"Goles anotados",!1,o.data.goals_scored))},[t.createElementVNode("span",{class:t.normalizeClass(o.data.goals_scored!=0?"hover-decoration":"")},t.toDisplayString(o.data.goals_scored),3)]),t.createElementVNode("div",{class:"tdrow__itemtd fontM",onClick:a[10]||(a[10]=l=>r.setOpenMedia(o.data.team_id,3,3,0,1001,"Goles recibidos",!0,o.data.goals_received))},[t.createElementVNode("span",{class:t.normalizeClass(o.data.goals_received!=0?"hover-decoration":"")},t.toDisplayString(o.data.goals_received),3)]),t.createElementVNode("div",$m,t.toDisplayString(o.data.goals_difference),1),t.createElementVNode("div",{class:t.normalizeClass(["tdrow__itemtd",n.elementSize.width>768?"itemtd-penaltypc":n.elementSize.width>600?"itemtd-penaltytablet":n.elementSize.width>480?"itemtd-penaltymv":"itemtd-penaltysm"])},t.toDisplayString(o.data.points),3),o.isGames?(t.openBlock(),t.createElementBlock("div",Am,[o.data.last_five_games.length>0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(o.data.last_five_games,(l,p)=>(t.openBlock(),t.createElementBlock("div",{key:p,class:t.normalizeClass([n.elementSize.width>768?"circlepc":n.elementSize.width>600?"circletablet":n.elementSize.width>480?"circlemv":"circlesm",l=="G"?"green":l=="E"?"gray":"red"])},t.toDisplayString(l),3))),128)):(t.openBlock(),t.createElementBlock("div",zm,"-"))])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["tdrow__itemtd",n.elementSize.width>768?"itemtd-nextpc":n.elementSize.width>600?"itemtd-nexttablet":n.elementSize.width>480?"itemtd-nextmv":"itemtd-nextsm"])},[o.data.next_rival_logo=="-"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(o.data.next_rival_logo),1)],64)):(t.openBlock(),t.createElementBlock("img",{key:1,class:t.normalizeClass(n.elementSize.width>768?"itemtd-nextpc__img":n.elementSize.width>600?"itemtd-nexttablet__img":n.elementSize.width>480?"itemtd-nextmv__img":"itemtd-nextsm__img"),src:o.data.next_rival_logo},null,10,Rm))],2)],6)])}const Fm=ym(bm,[["render",Im],["__scopeId","data-v-333b2aca"]]),Pm=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},Go={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},br=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},wr=Go.setup;Go.setup=wr?(e,a)=>(br(),wr(e,a)):br;const Lm=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),Dm=["src"],Mm={key:1,class:"text"},jm=["src"],vm={class:"stats"},Wm=Lm(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),Um={class:"numstats"},Hm={class:"leyend"};function Gm(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",null,[o.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",i.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([r.customStyle,i.status&&o.typeOnOff&&r.customActive]),onClick:a[0]||(a[0]=(...s)=>r.btnClick&&r.btnClick(...s))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,Dm)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",Mm,t.toDisplayString(o.textValue),1)):t.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,jm)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...s)=>r.btnClick&&r.btnClick(...s))},[t.createElementVNode("div",vm,[Wm,t.createElementVNode("div",Um,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",Hm,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const Jm=Pm(Go,[["render",Gm],["__scopeId","data-v-fb269a1e"]]),qm={class:"gsc-dropdown__main-container__item-selected"},Zm=["height","width"],Xm=["stroke"],Km={class:"gsc-dropdown__items-container"},Ym=["onClick"],Qm={key:0,class:"gsc-dropdown__items-footer"},ep={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:a}){const o=e,n=t.ref({}),i=t.ref(null),r=t.ref(o.isMultipleOption?-1:0),s=t.ref(!1);t.watch(()=>o.items,(d,h)=>{if(!o.modelValue&&(!o.onlyFirstTime||!h||!h.length)&&d&&d.length){if(o.defaultItemByProp){const f=o.items.findIndex(y=>y[o.defaultItemByProp.propName]===o.defaultItemByProp.value);f!==-1?(r.value=f,n.value=d[f]):(r.value=0,n.value=d[0])}else n.value=d[o.defaultItemByIndex];a("input",n.value)}},{immediate:!0}),t.watch(()=>o.modelValue,d=>{if(d){const h=o.items.findIndex(f=>typeof d=="object"?JSON.stringify(f)===JSON.stringify(d):f===d);h!==-1&&(r.value=h,n.value=o.items[h],a("update:modelValue",n.value))}},{immediate:!0});const l=t.computed(()=>({height:o.height,width:o.width,backgroundColor:o.backgroundColor,borderRadius:`${o.borderRadius}px`,border:`${o.borderType} ${o.borderWidth}px ${o.borderColor}`,color:o.color,"--hover-background-color":o.hoverBackgroundColor,"--list-item-padding":o.listItemPadding,"--list-background-color":o.listBackgroundColor,"--list-height":o.listHeight,"--list-item-selected-color":o.listItemSelectedColor,"--list-item-selected-background-color":o.listItemSelectedBackgroundColor,"--list-item-color":o.listItemColor,"--list-border-radius":`${o.listBorderRadius}`,"--list-border-color":o.listBorderColor,"--list-width":o.isListSameWidth?o.width:"fit-content","--list-border-width":`${o.listBorderWidth}px`,"--footer-border":`${o.footerBorderWidth}px solid ${o.footerBorderColor}`,"--dropdown-opacity":o.isDisabled?"0.5":"1","--dropdown-cursor":o.isDisabled?"not-allowed":"pointer","--dropdown-font-size":o.fontSize?o.fontSize:"14px"})),p=t.computed(()=>({height:`${o.arrowHeight}px`,width:`${o.arrowWidth}px`}));function c(){o.isDisabled||(s.value=!s.value)}function m(d){i.value&&!i.value.contains(d.target)&&(s.value=!1)}function u(d,h){o.isMultipleOption?r.value=-1:(r.value=h,s.value=!1),n.value=d,a("input",n.value),a("update:modelValue",n.value)}function g(){s.value=!1,a("click-ready")}return t.onMounted(()=>{document.addEventListener("click",m)}),t.onBeforeMount(()=>{document.removeEventListener("click",m)}),(d,h)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:i,class:"gsc-dropdown",style:t.normalizeStyle(l.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:c},[t.createElementVNode("div",qm,[t.renderSlot(d.$slots,"default",{selectedItem:n.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":s.value}]),style:t.normalizeStyle(p.value)},[(t.openBlock(),t.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,Xm)],8,Zm))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",Km,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${o.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(f,y)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:y===r.value}]),key:y,onClick:C=>u(f,y)},[t.renderSlot(d.$slots,"availableItem",{item:f})],10,Ym))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",Qm,[t.createVNode(t.unref(Jm),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:g})])):t.createCommentVNode("",!0)])],512),[[t.vShow,s.value]])]),_:3})],4))}};/**
|
|
1
|
+
(function(ht,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],o):(ht=typeof globalThis<"u"?globalThis:ht||self,o(ht.GSCLanding={},ht.Vue))})(this,function(ht,o){"use strict";function mi(e,a){return function(){return e.apply(a,arguments)}}const{toString:Mc}=Object.prototype,{getPrototypeOf:ta}=Object,oo=(e=>a=>{const t=Mc.call(a);return e[t]||(e[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Ge=e=>(e=e.toLowerCase(),a=>oo(a)===e),ao=e=>a=>typeof a===e,{isArray:bt}=Array,Tt=ao("undefined");function Dc(e){return e!==null&&!Tt(e)&&e.constructor!==null&&!Tt(e.constructor)&&Le(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ui=Ge("ArrayBuffer");function jc(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&ui(e.buffer),a}const Wc=ao("string"),Le=ao("function"),pi=ao("number"),no=e=>e!==null&&typeof e=="object",Uc=e=>e===!0||e===!1,io=e=>{if(oo(e)!=="object")return!1;const a=ta(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Hc=Ge("Date"),Gc=Ge("File"),qc=Ge("Blob"),Jc=Ge("FileList"),Kc=e=>no(e)&&Le(e.pipe),Zc=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||Le(e.append)&&((a=oo(e))==="formdata"||a==="object"&&Le(e.toString)&&e.toString()==="[object FormData]"))},Xc=Ge("URLSearchParams"),Yc=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function vt(e,a,{allOwnKeys:t=!1}={}){if(e===null||typeof e>"u")return;let n,s;if(typeof e!="object"&&(e=[e]),bt(e))for(n=0,s=e.length;n<s;n++)a.call(null,e[n],n,e);else{const i=t?Object.getOwnPropertyNames(e):Object.keys(e),r=i.length;let l;for(n=0;n<r;n++)l=i[n],a.call(null,e[l],l,e)}}function hi(e,a){a=a.toLowerCase();const t=Object.keys(e);let n=t.length,s;for(;n-- >0;)if(s=t[n],a===s.toLowerCase())return s;return null}const gi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,fi=e=>!Tt(e)&&e!==gi;function oa(){const{caseless:e}=fi(this)&&this||{},a={},t=(n,s)=>{const i=e&&hi(a,s)||s;io(a[i])&&io(n)?a[i]=oa(a[i],n):io(n)?a[i]=oa({},n):bt(n)?a[i]=n.slice():a[i]=n};for(let n=0,s=arguments.length;n<s;n++)arguments[n]&&vt(arguments[n],t);return a}const Qc=(e,a,t,{allOwnKeys:n}={})=>(vt(a,(s,i)=>{t&&Le(s)?e[i]=mi(s,t):e[i]=s},{allOwnKeys:n}),e),ed=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),td=(e,a,t,n)=>{e.prototype=Object.create(a.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),t&&Object.assign(e.prototype,t)},od=(e,a,t,n)=>{let s,i,r;const l={};if(a=a||{},e==null)return a;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)r=s[i],(!n||n(r,e,a))&&!l[r]&&(a[r]=e[r],l[r]=!0);e=t!==!1&&ta(e)}while(e&&(!t||t(e,a))&&e!==Object.prototype);return a},ad=(e,a,t)=>{e=String(e),(t===void 0||t>e.length)&&(t=e.length),t-=a.length;const n=e.indexOf(a,t);return n!==-1&&n===t},nd=e=>{if(!e)return null;if(bt(e))return e;let a=e.length;if(!pi(a))return null;const t=new Array(a);for(;a-- >0;)t[a]=e[a];return t},id=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&ta(Uint8Array)),sd=(e,a)=>{const n=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=n.next())&&!s.done;){const i=s.value;a.call(e,i[0],i[1])}},rd=(e,a)=>{let t;const n=[];for(;(t=e.exec(a))!==null;)n.push(t);return n},ld=Ge("HTMLFormElement"),cd=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,s){return n.toUpperCase()+s}),yi=(({hasOwnProperty:e})=>(a,t)=>e.call(a,t))(Object.prototype),dd=Ge("RegExp"),bi=(e,a)=>{const t=Object.getOwnPropertyDescriptors(e),n={};vt(t,(s,i)=>{let r;(r=a(s,i,e))!==!1&&(n[i]=r||s)}),Object.defineProperties(e,n)},md=e=>{bi(e,(a,t)=>{if(Le(e)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const n=e[t];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 '"+t+"'")})}})},ud=(e,a)=>{const t={},n=s=>{s.forEach(i=>{t[i]=!0})};return bt(e)?n(e):n(String(e).split(a)),t},pd=()=>{},hd=(e,a)=>(e=+e,Number.isFinite(e)?e:a),aa="abcdefghijklmnopqrstuvwxyz",wi="0123456789",Si={DIGIT:wi,ALPHA:aa,ALPHA_DIGIT:aa+aa.toUpperCase()+wi},gd=(e=16,a=Si.ALPHA_DIGIT)=>{let t="";const{length:n}=a;for(;e--;)t+=a[Math.random()*n|0];return t};function fd(e){return!!(e&&Le(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const yd=e=>{const a=new Array(10),t=(n,s)=>{if(no(n)){if(a.indexOf(n)>=0)return;if(!("toJSON"in n)){a[s]=n;const i=bt(n)?[]:{};return vt(n,(r,l)=>{const u=t(r,s+1);!Tt(u)&&(i[l]=u)}),a[s]=void 0,i}}return n};return t(e,0)},bd=Ge("AsyncFunction"),k={isArray:bt,isArrayBuffer:ui,isBuffer:Dc,isFormData:Zc,isArrayBufferView:jc,isString:Wc,isNumber:pi,isBoolean:Uc,isObject:no,isPlainObject:io,isUndefined:Tt,isDate:Hc,isFile:Gc,isBlob:qc,isRegExp:dd,isFunction:Le,isStream:Kc,isURLSearchParams:Xc,isTypedArray:id,isFileList:Jc,forEach:vt,merge:oa,extend:Qc,trim:Yc,stripBOM:ed,inherits:td,toFlatObject:od,kindOf:oo,kindOfTest:Ge,endsWith:ad,toArray:nd,forEachEntry:sd,matchAll:rd,isHTMLForm:ld,hasOwnProperty:yi,hasOwnProp:yi,reduceDescriptors:bi,freezeMethods:md,toObjectSet:ud,toCamelCase:cd,noop:pd,toFiniteNumber:hd,findKey:hi,global:gi,isContextDefined:fi,ALPHABET:Si,generateString:gd,isSpecCompliantForm:fd,toJSONObject:yd,isAsyncFn:bd,isThenable:e=>e&&(no(e)||Le(e))&&Le(e.then)&&Le(e.catch)};function G(e,a,t,n,s){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),t&&(this.config=t),n&&(this.request=n),s&&(this.response=s)}k.inherits(G,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 _i=G.prototype,ki={};["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=>{ki[e]={value:e}}),Object.defineProperties(G,ki),Object.defineProperty(_i,"isAxiosError",{value:!0}),G.from=(e,a,t,n,s,i)=>{const r=Object.create(_i);return k.toFlatObject(e,r,function(u){return u!==Error.prototype},l=>l!=="isAxiosError"),G.call(r,e.message,a,t,n,s),r.cause=e,r.name=e.name,i&&Object.assign(r,i),r};const wd=null;function na(e){return k.isPlainObject(e)||k.isArray(e)}function Ci(e){return k.endsWith(e,"[]")?e.slice(0,-2):e}function Ei(e,a,t){return e?e.concat(a).map(function(s,i){return s=Ci(s),!t&&i?"["+s+"]":s}).join(t?".":""):a}function Sd(e){return k.isArray(e)&&!e.some(na)}const _d=k.toFlatObject(k,{},null,function(a){return/^is[A-Z]/.test(a)});function so(e,a,t){if(!k.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,t=k.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,b){return!k.isUndefined(b[g])});const n=t.metaTokens,s=t.visitor||m,i=t.dots,r=t.indexes,u=(t.Blob||typeof Blob<"u"&&Blob)&&k.isSpecCompliantForm(a);if(!k.isFunction(s))throw new TypeError("visitor must be a function");function c(h){if(h===null)return"";if(k.isDate(h))return h.toISOString();if(!u&&k.isBlob(h))throw new G("Blob is not supported. Use a Buffer instead.");return k.isArrayBuffer(h)||k.isTypedArray(h)?u&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function m(h,g,b){let S=h;if(h&&!b&&typeof h=="object"){if(k.endsWith(g,"{}"))g=n?g:g.slice(0,-2),h=JSON.stringify(h);else if(k.isArray(h)&&Sd(h)||(k.isFileList(h)||k.endsWith(g,"[]"))&&(S=k.toArray(h)))return g=Ci(g),S.forEach(function(V,z){!(k.isUndefined(V)||V===null)&&a.append(r===!0?Ei([g],z,i):r===null?g:g+"[]",c(V))}),!1}return na(h)?!0:(a.append(Ei(b,g,i),c(h)),!1)}const p=[],f=Object.assign(_d,{defaultVisitor:m,convertValue:c,isVisitable:na});function d(h,g){if(!k.isUndefined(h)){if(p.indexOf(h)!==-1)throw Error("Circular reference detected in "+g.join("."));p.push(h),k.forEach(h,function(S,_){(!(k.isUndefined(S)||S===null)&&s.call(a,S,k.isString(_)?_.trim():_,g,f))===!0&&d(S,g?g.concat(_):[_])}),p.pop()}}if(!k.isObject(e))throw new TypeError("data must be an object");return d(e),a}function Bi(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return a[n]})}function ia(e,a){this._pairs=[],e&&so(e,this,a)}const xi=ia.prototype;xi.append=function(a,t){this._pairs.push([a,t])},xi.toString=function(a){const t=a?function(n){return a.call(this,n,Bi)}:Bi;return this._pairs.map(function(s){return t(s[0])+"="+t(s[1])},"").join("&")};function kd(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ni(e,a,t){if(!a)return e;const n=t&&t.encode||kd,s=t&&t.serialize;let i;if(s?i=s(a,t):i=k.isURLSearchParams(a)?a.toString():new ia(a,t).toString(n),i){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Ti{constructor(){this.handlers=[]}use(a,t,n){return this.handlers.push({fulfilled:a,rejected:t,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(n){n!==null&&a(n)})}}const vi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Cd={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:ia,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Oi=typeof window<"u"&&typeof document<"u",Ed=(e=>Oi&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Bd=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",qe={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Oi,hasStandardBrowserEnv:Ed,hasStandardBrowserWebWorkerEnv:Bd},Symbol.toStringTag,{value:"Module"})),...Cd};function xd(e,a){return so(e,new qe.classes.URLSearchParams,Object.assign({visitor:function(t,n,s,i){return qe.isNode&&k.isBuffer(t)?(this.append(n,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},a))}function Nd(e){return k.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function Td(e){const a={},t=Object.keys(e);let n;const s=t.length;let i;for(n=0;n<s;n++)i=t[n],a[i]=e[i];return a}function Ai(e){function a(t,n,s,i){let r=t[i++];if(r==="__proto__")return!0;const l=Number.isFinite(+r),u=i>=t.length;return r=!r&&k.isArray(s)?s.length:r,u?(k.hasOwnProp(s,r)?s[r]=[s[r],n]:s[r]=n,!l):((!s[r]||!k.isObject(s[r]))&&(s[r]=[]),a(t,n,s[r],i)&&k.isArray(s[r])&&(s[r]=Td(s[r])),!l)}if(k.isFormData(e)&&k.isFunction(e.entries)){const t={};return k.forEachEntry(e,(n,s)=>{a(Nd(n),s,t,0)}),t}return null}function vd(e,a,t){if(k.isString(e))try{return(a||JSON.parse)(e),k.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(e)}const sa={transitional:vi,adapter:["xhr","http"],transformRequest:[function(a,t){const n=t.getContentType()||"",s=n.indexOf("application/json")>-1,i=k.isObject(a);if(i&&k.isHTMLForm(a)&&(a=new FormData(a)),k.isFormData(a))return s?JSON.stringify(Ai(a)):a;if(k.isArrayBuffer(a)||k.isBuffer(a)||k.isStream(a)||k.isFile(a)||k.isBlob(a))return a;if(k.isArrayBufferView(a))return a.buffer;if(k.isURLSearchParams(a))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),a.toString();let l;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return xd(a,this.formSerializer).toString();if((l=k.isFileList(a))||n.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return so(l?{"files[]":a}:a,u&&new u,this.formSerializer)}}return i||s?(t.setContentType("application/json",!1),vd(a)):a}],transformResponse:[function(a){const t=this.transitional||sa.transitional,n=t&&t.forcedJSONParsing,s=this.responseType==="json";if(a&&k.isString(a)&&(n&&!this.responseType||s)){const r=!(t&&t.silentJSONParsing)&&s;try{return JSON.parse(a)}catch(l){if(r)throw l.name==="SyntaxError"?G.from(l,G.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:qe.classes.FormData,Blob:qe.classes.Blob},validateStatus:function(a){return a>=200&&a<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};k.forEach(["delete","get","head","post","put","patch"],e=>{sa.headers[e]={}});const ra=sa,Od=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"]),Ad=e=>{const a={};let t,n,s;return e&&e.split(`
|
|
2
|
+
`).forEach(function(r){s=r.indexOf(":"),t=r.substring(0,s).trim().toLowerCase(),n=r.substring(s+1).trim(),!(!t||a[t]&&Od[t])&&(t==="set-cookie"?a[t]?a[t].push(n):a[t]=[n]:a[t]=a[t]?a[t]+", "+n:n)}),a},Vi=Symbol("internals");function Ot(e){return e&&String(e).trim().toLowerCase()}function ro(e){return e===!1||e==null?e:k.isArray(e)?e.map(ro):String(e)}function Vd(e){const a=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=t.exec(e);)a[n[1]]=n[2];return a}const $d=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function la(e,a,t,n,s){if(k.isFunction(n))return n.call(this,a,t);if(s&&(a=t),!!k.isString(a)){if(k.isString(n))return a.indexOf(n)!==-1;if(k.isRegExp(n))return n.test(a)}}function Pd(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,t,n)=>t.toUpperCase()+n)}function Id(e,a){const t=k.toCamelCase(" "+a);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+t,{value:function(s,i,r){return this[n].call(this,a,s,i,r)},configurable:!0})})}class lo{constructor(a){a&&this.set(a)}set(a,t,n){const s=this;function i(l,u,c){const m=Ot(u);if(!m)throw new Error("header name must be a non-empty string");const p=k.findKey(s,m);(!p||s[p]===void 0||c===!0||c===void 0&&s[p]!==!1)&&(s[p||u]=ro(l))}const r=(l,u)=>k.forEach(l,(c,m)=>i(c,m,u));return k.isPlainObject(a)||a instanceof this.constructor?r(a,t):k.isString(a)&&(a=a.trim())&&!$d(a)?r(Ad(a),t):a!=null&&i(t,a,n),this}get(a,t){if(a=Ot(a),a){const n=k.findKey(this,a);if(n){const s=this[n];if(!t)return s;if(t===!0)return Vd(s);if(k.isFunction(t))return t.call(this,s,n);if(k.isRegExp(t))return t.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,t){if(a=Ot(a),a){const n=k.findKey(this,a);return!!(n&&this[n]!==void 0&&(!t||la(this,this[n],n,t)))}return!1}delete(a,t){const n=this;let s=!1;function i(r){if(r=Ot(r),r){const l=k.findKey(n,r);l&&(!t||la(n,n[l],l,t))&&(delete n[l],s=!0)}}return k.isArray(a)?a.forEach(i):i(a),s}clear(a){const t=Object.keys(this);let n=t.length,s=!1;for(;n--;){const i=t[n];(!a||la(this,this[i],i,a,!0))&&(delete this[i],s=!0)}return s}normalize(a){const t=this,n={};return k.forEach(this,(s,i)=>{const r=k.findKey(n,i);if(r){t[r]=ro(s),delete t[i];return}const l=a?Pd(i):String(i).trim();l!==i&&delete t[i],t[l]=ro(s),n[l]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const t=Object.create(null);return k.forEach(this,(n,s)=>{n!=null&&n!==!1&&(t[s]=a&&k.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,t])=>a+": "+t).join(`
|
|
3
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...t){const n=new this(a);return t.forEach(s=>n.set(s)),n}static accessor(a){const n=(this[Vi]=this[Vi]={accessors:{}}).accessors,s=this.prototype;function i(r){const l=Ot(r);n[l]||(Id(s,r),n[l]=!0)}return k.isArray(a)?a.forEach(i):i(a),this}}lo.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),k.reduceDescriptors(lo.prototype,({value:e},a)=>{let t=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(n){this[t]=n}}}),k.freezeMethods(lo);const ot=lo;function ca(e,a){const t=this||ra,n=a||t,s=ot.from(n.headers);let i=n.data;return k.forEach(e,function(l){i=l.call(t,i,s.normalize(),a?a.status:void 0)}),s.normalize(),i}function $i(e){return!!(e&&e.__CANCEL__)}function At(e,a,t){G.call(this,e??"canceled",G.ERR_CANCELED,a,t),this.name="CanceledError"}k.inherits(At,G,{__CANCEL__:!0});function Rd(e,a,t){const n=t.config.validateStatus;!t.status||!n||n(t.status)?e(t):a(new G("Request failed with status code "+t.status,[G.ERR_BAD_REQUEST,G.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}const Ld=qe.hasStandardBrowserEnv?{write(e,a,t,n,s,i){const r=[e+"="+encodeURIComponent(a)];k.isNumber(t)&&r.push("expires="+new Date(t).toGMTString()),k.isString(n)&&r.push("path="+n),k.isString(s)&&r.push("domain="+s),i===!0&&r.push("secure"),document.cookie=r.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 zd(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Fd(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function Pi(e,a){return e&&!zd(a)?Fd(e,a):a}const Md=qe.hasStandardBrowserEnv?function(){const a=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function s(i){let r=i;return a&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return n=s(window.location.href),function(r){const l=k.isString(r)?s(r):r;return l.protocol===n.protocol&&l.host===n.host}}():function(){return function(){return!0}}();function Dd(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function jd(e,a){e=e||10;const t=new Array(e),n=new Array(e);let s=0,i=0,r;return a=a!==void 0?a:1e3,function(u){const c=Date.now(),m=n[i];r||(r=c),t[s]=u,n[s]=c;let p=i,f=0;for(;p!==s;)f+=t[p++],p=p%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),c-r<a)return;const d=m&&c-m;return d?Math.round(f*1e3/d):void 0}}function Ii(e,a){let t=0;const n=jd(50,250);return s=>{const i=s.loaded,r=s.lengthComputable?s.total:void 0,l=i-t,u=n(l),c=i<=r;t=i;const m={loaded:i,total:r,progress:r?i/r:void 0,bytes:l,rate:u||void 0,estimated:u&&r&&c?(r-i)/u:void 0,event:s};m[a?"download":"upload"]=!0,e(m)}}const da={http:wd,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(t,n){let s=e.data;const i=ot.from(e.headers).normalize();let{responseType:r,withXSRFToken:l}=e,u;function c(){e.cancelToken&&e.cancelToken.unsubscribe(u),e.signal&&e.signal.removeEventListener("abort",u)}let m;if(k.isFormData(s)){if(qe.hasStandardBrowserEnv||qe.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((m=i.getContentType())!==!1){const[g,...b]=m?m.split(";").map(S=>S.trim()).filter(Boolean):[];i.setContentType([g||"multipart/form-data",...b].join("; "))}}let p=new XMLHttpRequest;if(e.auth){const g=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(g+":"+b))}const f=Pi(e.baseURL,e.url);p.open(e.method.toUpperCase(),Ni(f,e.params,e.paramsSerializer),!0),p.timeout=e.timeout;function d(){if(!p)return;const g=ot.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),S={data:!r||r==="text"||r==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:g,config:e,request:p};Rd(function(V){t(V),c()},function(V){n(V),c()},S),p=null}if("onloadend"in p?p.onloadend=d:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(d)},p.onabort=function(){p&&(n(new G("Request aborted",G.ECONNABORTED,e,p)),p=null)},p.onerror=function(){n(new G("Network Error",G.ERR_NETWORK,e,p)),p=null},p.ontimeout=function(){let b=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const S=e.transitional||vi;e.timeoutErrorMessage&&(b=e.timeoutErrorMessage),n(new G(b,S.clarifyTimeoutError?G.ETIMEDOUT:G.ECONNABORTED,e,p)),p=null},qe.hasStandardBrowserEnv&&(l&&k.isFunction(l)&&(l=l(e)),l||l!==!1&&Md(f))){const g=e.xsrfHeaderName&&e.xsrfCookieName&&Ld.read(e.xsrfCookieName);g&&i.set(e.xsrfHeaderName,g)}s===void 0&&i.setContentType(null),"setRequestHeader"in p&&k.forEach(i.toJSON(),function(b,S){p.setRequestHeader(S,b)}),k.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),r&&r!=="json"&&(p.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&p.addEventListener("progress",Ii(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&p.upload&&p.upload.addEventListener("progress",Ii(e.onUploadProgress)),(e.cancelToken||e.signal)&&(u=g=>{p&&(n(!g||g.type?new At(null,e,p):g),p.abort(),p=null)},e.cancelToken&&e.cancelToken.subscribe(u),e.signal&&(e.signal.aborted?u():e.signal.addEventListener("abort",u)));const h=Dd(f);if(h&&qe.protocols.indexOf(h)===-1){n(new G("Unsupported protocol "+h+":",G.ERR_BAD_REQUEST,e));return}p.send(s||null)})}};k.forEach(da,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const Ri=e=>`- ${e}`,Wd=e=>k.isFunction(e)||e===null||e===!1,Li={getAdapter:e=>{e=k.isArray(e)?e:[e];const{length:a}=e;let t,n;const s={};for(let i=0;i<a;i++){t=e[i];let r;if(n=t,!Wd(t)&&(n=da[(r=String(t)).toLowerCase()],n===void 0))throw new G(`Unknown adapter '${r}'`);if(n)break;s[r||"#"+i]=n}if(!n){const i=Object.entries(s).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let r=a?i.length>1?`since :
|
|
4
|
+
`+i.map(Ri).join(`
|
|
5
|
+
`):" "+Ri(i[0]):"as no adapter specified";throw new G("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return n},adapters:da};function ma(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new At(null,e)}function zi(e){return ma(e),e.headers=ot.from(e.headers),e.data=ca.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Li.getAdapter(e.adapter||ra.adapter)(e).then(function(n){return ma(e),n.data=ca.call(e,e.transformResponse,n),n.headers=ot.from(n.headers),n},function(n){return $i(n)||(ma(e),n&&n.response&&(n.response.data=ca.call(e,e.transformResponse,n.response),n.response.headers=ot.from(n.response.headers))),Promise.reject(n)})}const Fi=e=>e instanceof ot?e.toJSON():e;function wt(e,a){a=a||{};const t={};function n(c,m,p){return k.isPlainObject(c)&&k.isPlainObject(m)?k.merge.call({caseless:p},c,m):k.isPlainObject(m)?k.merge({},m):k.isArray(m)?m.slice():m}function s(c,m,p){if(k.isUndefined(m)){if(!k.isUndefined(c))return n(void 0,c,p)}else return n(c,m,p)}function i(c,m){if(!k.isUndefined(m))return n(void 0,m)}function r(c,m){if(k.isUndefined(m)){if(!k.isUndefined(c))return n(void 0,c)}else return n(void 0,m)}function l(c,m,p){if(p in a)return n(c,m);if(p in e)return n(void 0,c)}const u={url:i,method:i,data:i,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:l,headers:(c,m)=>s(Fi(c),Fi(m),!0)};return k.forEach(Object.keys(Object.assign({},e,a)),function(m){const p=u[m]||s,f=p(e[m],a[m],m);k.isUndefined(f)&&p!==l||(t[m]=f)}),t}const Mi="1.6.7",ua={};["object","boolean","number","function","string","symbol"].forEach((e,a)=>{ua[e]=function(n){return typeof n===e||"a"+(a<1?"n ":" ")+e}});const Di={};ua.transitional=function(a,t,n){function s(i,r){return"[Axios v"+Mi+"] Transitional option '"+i+"'"+r+(n?". "+n:"")}return(i,r,l)=>{if(a===!1)throw new G(s(r," has been removed"+(t?" in "+t:"")),G.ERR_DEPRECATED);return t&&!Di[r]&&(Di[r]=!0,console.warn(s(r," has been deprecated since v"+t+" and will be removed in the near future"))),a?a(i,r,l):!0}};function Ud(e,a,t){if(typeof e!="object")throw new G("options must be an object",G.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let s=n.length;for(;s-- >0;){const i=n[s],r=a[i];if(r){const l=e[i],u=l===void 0||r(l,i,e);if(u!==!0)throw new G("option "+i+" must be "+u,G.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new G("Unknown option "+i,G.ERR_BAD_OPTION)}}const pa={assertOptions:Ud,validators:ua},lt=pa.validators;class co{constructor(a){this.defaults=a,this.interceptors={request:new Ti,response:new Ti}}async request(a,t){try{return await this._request(a,t)}catch(n){if(n instanceof Error){let s;Error.captureStackTrace?Error.captureStackTrace(s={}):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
6
|
+
`+i):n.stack=i}throw n}}_request(a,t){typeof a=="string"?(t=t||{},t.url=a):t=a||{},t=wt(this.defaults,t);const{transitional:n,paramsSerializer:s,headers:i}=t;n!==void 0&&pa.assertOptions(n,{silentJSONParsing:lt.transitional(lt.boolean),forcedJSONParsing:lt.transitional(lt.boolean),clarifyTimeoutError:lt.transitional(lt.boolean)},!1),s!=null&&(k.isFunction(s)?t.paramsSerializer={serialize:s}:pa.assertOptions(s,{encode:lt.function,serialize:lt.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let r=i&&k.merge(i.common,i[t.method]);i&&k.forEach(["delete","get","head","post","put","patch","common"],h=>{delete i[h]}),t.headers=ot.concat(r,i);const l=[];let u=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(t)===!1||(u=u&&g.synchronous,l.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let m,p=0,f;if(!u){const h=[zi.bind(this),void 0];for(h.unshift.apply(h,l),h.push.apply(h,c),f=h.length,m=Promise.resolve(t);p<f;)m=m.then(h[p++],h[p++]);return m}f=l.length;let d=t;for(p=0;p<f;){const h=l[p++],g=l[p++];try{d=h(d)}catch(b){g.call(this,b);break}}try{m=zi.call(this,d)}catch(h){return Promise.reject(h)}for(p=0,f=c.length;p<f;)m=m.then(c[p++],c[p++]);return m}getUri(a){a=wt(this.defaults,a);const t=Pi(a.baseURL,a.url);return Ni(t,a.params,a.paramsSerializer)}}k.forEach(["delete","get","head","options"],function(a){co.prototype[a]=function(t,n){return this.request(wt(n||{},{method:a,url:t,data:(n||{}).data}))}}),k.forEach(["post","put","patch"],function(a){function t(n){return function(i,r,l){return this.request(wt(l||{},{method:a,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:r}))}}co.prototype[a]=t(),co.prototype[a+"Form"]=t(!0)});const mo=co;class ha{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(i){t=i});const n=this;this.promise.then(s=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](s);n._listeners=null}),this.promise.then=s=>{let i;const r=new Promise(l=>{n.subscribe(l),i=l}).then(s);return r.cancel=function(){n.unsubscribe(i)},r},a(function(i,r,l){n.reason||(n.reason=new At(i,r,l),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const t=this._listeners.indexOf(a);t!==-1&&this._listeners.splice(t,1)}static source(){let a;return{token:new ha(function(s){a=s}),cancel:a}}}const Hd=ha;function Gd(e){return function(t){return e.apply(null,t)}}function qd(e){return k.isObject(e)&&e.isAxiosError===!0}const ga={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(ga).forEach(([e,a])=>{ga[a]=e});const Jd=ga;function ji(e){const a=new mo(e),t=mi(mo.prototype.request,a);return k.extend(t,mo.prototype,a,{allOwnKeys:!0}),k.extend(t,a,null,{allOwnKeys:!0}),t.create=function(s){return ji(wt(e,s))},t}const re=ji(ra);re.Axios=mo,re.CanceledError=At,re.CancelToken=Hd,re.isCancel=$i,re.VERSION=Mi,re.toFormData=so,re.AxiosError=G,re.Cancel=re.CanceledError,re.all=function(a){return Promise.all(a)},re.spread=Gd,re.isAxiosError=qd,re.mergeConfig=wt,re.AxiosHeaders=ot,re.formToJSON=e=>Ai(k.isHTMLForm(e)?new FormData(e):e),re.getAdapter=Li.getAdapter,re.HttpStatusCode=Jd,re.default=re;function Kd(e){const a=o.ref({width:0,height:0});function t(){const n=e.value.getBoundingClientRect();a.value.width=n.width,a.value.height=n.height}return o.onMounted(()=>{t(),window.addEventListener("resize",t)}),o.onUnmounted(()=>{window.removeEventListener("resize",t)}),{elementSize:a}}const fa=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"]]),Ne=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},Zd={class:"player-card"},Xd={class:"player-card__image"},Yd=["src"],Qd={class:"player-card__number"},em={class:"player-card__right-data"},tm={class:"player-card__details"},om={class:"player-card__name"},am={class:"player-card__position"},nm=Ne({__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(t,n)=>(o.openBlock(),o.createElementBlock("div",Zd,[o.createElementVNode("div",Xd,[o.createElementVNode("img",{class:o.normalizeClass(["player-card__photo",{"full-width":e.isImgFullWidth}]),src:e.photo,alt:"Player Image"},null,10,Yd),o.createElementVNode("div",Qd,o.toDisplayString(e.jersey),1),o.createElementVNode("div",em,[o.createElementVNode("button",{class:"player-card__profile-button",onClick:n[0]||(n[0]=s=>a("clickProfileBtn"))}," Ver perfil ")])]),o.createElementVNode("div",tm,[o.createElementVNode("p",om,o.toDisplayString(e.name),1),o.createElementVNode("p",am,o.toDisplayString(o.unref(fa).get(e.position_id)),1)])]))}},[["__scopeId","data-v-caa30d1f"]]),im=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},ya={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)}}},Wi=()=>{o.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},Ui=ya.setup;ya.setup=Ui?(e,a)=>(Wi(),Ui(e,a)):Wi;const sm={ref:"gscScrollableContainer",class:"scrollable-container"},rm={class:"scrollable-arrows"},lm=["width","height","viewBox"],cm=["stroke"],dm={class:"scrollable-wrapper"},mm={class:"scrollable-arrows"},um=["width","height","viewBox"],pm=["stroke"];function hm(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",sm,[t.arrows?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["arrows-container",i.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...r)=>i.scrollLeft&&i.scrollLeft(...r))},[o.createElementVNode("div",rm,[(o.openBlock(),o.createElementBlock("svg",{width:t.arrowsWidth,height:t.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:t.arrowsColor},null,8,cm)],8,lm))])],2)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:a[1]||(a[1]=(...r)=>i.getScroll&&i.getScroll(...r))},[o.createElementVNode("div",dm,[o.renderSlot(e.$slots,"default",{},void 0,!0)])],544),t.arrows?(o.openBlock(),o.createElementBlock("div",{key:1,id:"arrows-container-right",class:o.normalizeClass(["arrows-container",i.hideShowRightArrow]),onClick:a[2]||(a[2]=(...r)=>i.scrollRight&&i.scrollRight(...r))},[o.createElementVNode("div",mm,[(o.openBlock(),o.createElementBlock("svg",{width:t.arrowsWidth,height:t.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:t.arrowsColor},null,8,pm)],8,um))])],2)):o.createCommentVNode("",!0)],512)}const Vt=im(ya,[["render",hm],["__scopeId","data-v-b548a08d"]]),Hi=e=>(o.pushScopeId("data-v-34ea0cee"),e=e(),o.popScopeId(),e),gm={class:"my-players"},fm={class:"my-players__header"},ym={class:"my-players__title"},bm=[Hi(()=>o.createElementVNode("span",{style:{"text-decoration-line":"underline"}},"Ver todos",-1)),Hi(()=>o.createElementVNode("span",null,"→",-1))],wm={class:"my-players__list"},Sm=Ne({__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 t=e,n=o.ref([]),s=o.ref(0),i=o.ref(0);o.onMounted(async()=>{const l=await r(t.teamId,t.seasonId,t.token);i.value=l.length,n.value=l.map(u=>({...u,position:fa.get(u.position_id)})),t.isPlayer&&t.playerId&&(n.value=l.filter(u=>u.player_id!==t.playerId)),a("totalPlayers",i.value)});const r=async(l,u,c)=>{var p;const m="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";try{return((p=(await(await fetch(`https://pa3kubpuhg.execute-api.us-west-2.amazonaws.com/prod/playersByTeamAndSeason/${u}/${l}`,{headers:{Authorization:c||m}})).json())[0])==null?void 0:p.players)||[]}catch(f){return Promise.reject(f)}};return o.watch(()=>t.seasonId,async(l,u)=>{n.value=[];const c=await r(t.teamId,l,t.token);i.value=c.length,n.value=c.map(m=>({...m,position:fa.get(m.position_id)})),a("totalPlayers",i.value),s.value+=1}),(l,u)=>(o.openBlock(),o.createElementBlock("div",gm,[o.createElementVNode("div",fm,[o.createElementVNode("h3",ym,o.toDisplayString(e.isPlayer?"Mis compañeros":"Mis jugadores"),1),o.createElementVNode("button",{class:"my-players__button",onClick:u[0]||(u[0]=c=>a("viewAll"))},bm)]),(o.openBlock(),o.createBlock(o.unref(Vt),{pxScroll:209,scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!1,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"none",arrowsContainerBgR:"none",arrowsMargin:0,arrowsRadius:"50%",key:s.value,arrowsBorder:"#ddd"},{default:o.withCtx(()=>[o.createElementVNode("div",wm,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,c=>(o.openBlock(),o.createBlock(nm,o.mergeProps(c,{isImgFullWidth:e.isImgFullWidth,onClickProfileBtn:m=>a("clickProfileBtn",c),key:c.player_id}),null,16,["isImgFullWidth","onClickProfileBtn"]))),128))])]),_:1}))]))}},[["__scopeId","data-v-34ea0cee"]]),ba="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",Gi="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",_m="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",km="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",Cm=["onClick"],Em={class:"grid-section__image"},Bm=["src"],xm={class:"grid-section__label"},Nm=Ne({__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 t=e;function n(r){a("action",r)}const s=o.computed(()=>t.componentWidth<768),i=o.computed(()=>{let r;return t.isPlayer?r=[{type:"player",label:"Mi perfil →",image:t.playerImg||"",imgType:"player",player:t.playerId,team:t.teamId,season:t.seasonSelected},{type:"team",label:"Analizar mi equipo →",image:t.teamImg||"",imgType:"team",team:t.teamId,season:t.seasonSelected},{type:"rival",label:"Analizar mi próximo rival →",image:t.rivalImg||"",imgType:"team",team:t.nextRivalId,season:t.seasonSelected},{type:"schedule",label:"Mis partidos →",image:ba,imgType:"svg",team:t.teamId,season:t.seasonSelected}]:t.hasTeam?r=[{type:"team",label:"Analizar mi equipo →",image:t.teamImg||"",imgType:"team",team:t.teamId,season:t.seasonSelected},{type:"rival",label:"Analizar mi próximo rival →",image:t.rivalImg||"",imgType:"team",team:t.nextRivalId,season:t.seasonSelected},{type:"schedule",label:"Mis partidos →",image:ba,imgType:"svg",team:t.teamId,season:t.seasonSelected},{type:"scouting",label:"Scouting cientifico →",image:Gi,imgType:"svg",season:t.seasonSelected}]:r=[{type:"teamOtherLeague",label:"Buscar equipo →",image:km,imgType:"svg",season:t.seasonSelected},{type:"playerOtherLeague",label:"Buscar jugador →",image:_m,imgType:"svg",season:t.seasonSelected},{type:"scheduleOtherLeague",label:"Calendario general →",image:ba,imgType:"svg",season:t.seasonSelected},{type:"scouting",label:"Scouting cientifico →",image:Gi,imgType:"svg",season:t.seasonSelected}],r});return(r,l)=>(o.openBlock(),o.createElementBlock("section",{class:o.normalizeClass(["grid-section",{mobile:s.value}])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,(u,c)=>(o.openBlock(),o.createElementBlock("div",{key:c,class:"grid-section__card",onClick:m=>n(u)},[o.createElementVNode("figure",Em,[u.image!==""?(o.openBlock(),o.createElementBlock("img",{key:0,src:u.image,alt:"",class:o.normalizeClass(u.imgType)},null,10,Bm)):o.createCommentVNode("",!0)]),o.createElementVNode("p",xm,o.toDisplayString(u.label),1)],8,Cm))),128))],2))}},[["__scopeId","data-v-b0f26065"]]);function qi(e,a){return function(){return e.apply(a,arguments)}}const{toString:Tm}=Object.prototype,{getPrototypeOf:wa}=Object,uo=(e=>a=>{const t=Tm.call(a);return e[t]||(e[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Je=e=>(e=e.toLowerCase(),a=>uo(a)===e),po=e=>a=>typeof a===e,{isArray:St}=Array,$t=po("undefined");function vm(e){return e!==null&&!$t(e)&&e.constructor!==null&&!$t(e.constructor)&&ze(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ji=Je("ArrayBuffer");function Om(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&Ji(e.buffer),a}const Am=po("string"),ze=po("function"),Ki=po("number"),ho=e=>e!==null&&typeof e=="object",Vm=e=>e===!0||e===!1,go=e=>{if(uo(e)!=="object")return!1;const a=wa(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},$m=Je("Date"),Pm=Je("File"),Im=Je("Blob"),Rm=Je("FileList"),Lm=e=>ho(e)&&ze(e.pipe),zm=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||ze(e.append)&&((a=uo(e))==="formdata"||a==="object"&&ze(e.toString)&&e.toString()==="[object FormData]"))},Fm=Je("URLSearchParams"),Mm=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Pt(e,a,{allOwnKeys:t=!1}={}){if(e===null||typeof e>"u")return;let n,s;if(typeof e!="object"&&(e=[e]),St(e))for(n=0,s=e.length;n<s;n++)a.call(null,e[n],n,e);else{const i=t?Object.getOwnPropertyNames(e):Object.keys(e),r=i.length;let l;for(n=0;n<r;n++)l=i[n],a.call(null,e[l],l,e)}}function Zi(e,a){a=a.toLowerCase();const t=Object.keys(e);let n=t.length,s;for(;n-- >0;)if(s=t[n],a===s.toLowerCase())return s;return null}const Xi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Yi=e=>!$t(e)&&e!==Xi;function Sa(){const{caseless:e}=Yi(this)&&this||{},a={},t=(n,s)=>{const i=e&&Zi(a,s)||s;go(a[i])&&go(n)?a[i]=Sa(a[i],n):go(n)?a[i]=Sa({},n):St(n)?a[i]=n.slice():a[i]=n};for(let n=0,s=arguments.length;n<s;n++)arguments[n]&&Pt(arguments[n],t);return a}const Dm=(e,a,t,{allOwnKeys:n}={})=>(Pt(a,(s,i)=>{t&&ze(s)?e[i]=qi(s,t):e[i]=s},{allOwnKeys:n}),e),jm=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Wm=(e,a,t,n)=>{e.prototype=Object.create(a.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),t&&Object.assign(e.prototype,t)},Um=(e,a,t,n)=>{let s,i,r;const l={};if(a=a||{},e==null)return a;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)r=s[i],(!n||n(r,e,a))&&!l[r]&&(a[r]=e[r],l[r]=!0);e=t!==!1&&wa(e)}while(e&&(!t||t(e,a))&&e!==Object.prototype);return a},Hm=(e,a,t)=>{e=String(e),(t===void 0||t>e.length)&&(t=e.length),t-=a.length;const n=e.indexOf(a,t);return n!==-1&&n===t},Gm=e=>{if(!e)return null;if(St(e))return e;let a=e.length;if(!Ki(a))return null;const t=new Array(a);for(;a-- >0;)t[a]=e[a];return t},qm=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&wa(Uint8Array)),Jm=(e,a)=>{const t=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=t.next())&&!n.done;){const s=n.value;a.call(e,s[0],s[1])}},Km=(e,a)=>{let t;const n=[];for(;(t=e.exec(a))!==null;)n.push(t);return n},Zm=Je("HTMLFormElement"),Xm=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,t,n){return t.toUpperCase()+n}),Qi=(({hasOwnProperty:e})=>(a,t)=>e.call(a,t))(Object.prototype),Ym=Je("RegExp"),es=(e,a)=>{const t=Object.getOwnPropertyDescriptors(e),n={};Pt(t,(s,i)=>{let r;(r=a(s,i,e))!==!1&&(n[i]=r||s)}),Object.defineProperties(e,n)},Qm=e=>{es(e,(a,t)=>{if(ze(e)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const n=e[t];if(ze(n)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},eu=(e,a)=>{const t={},n=s=>{s.forEach(i=>{t[i]=!0})};return St(e)?n(e):n(String(e).split(a)),t},tu=()=>{},ou=(e,a)=>(e=+e,Number.isFinite(e)?e:a),_a="abcdefghijklmnopqrstuvwxyz",ts="0123456789",os={DIGIT:ts,ALPHA:_a,ALPHA_DIGIT:_a+_a.toUpperCase()+ts},au=(e=16,a=os.ALPHA_DIGIT)=>{let t="";const{length:n}=a;for(;e--;)t+=a[Math.random()*n|0];return t};function nu(e){return!!(e&&ze(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const iu=e=>{const a=new Array(10),t=(n,s)=>{if(ho(n)){if(a.indexOf(n)>=0)return;if(!("toJSON"in n)){a[s]=n;const i=St(n)?[]:{};return Pt(n,(r,l)=>{const u=t(r,s+1);!$t(u)&&(i[l]=u)}),a[s]=void 0,i}}return n};return t(e,0)},su=Je("AsyncFunction"),ru=e=>e&&(ho(e)||ze(e))&&ze(e.then)&&ze(e.catch),C={isArray:St,isArrayBuffer:Ji,isBuffer:vm,isFormData:zm,isArrayBufferView:Om,isString:Am,isNumber:Ki,isBoolean:Vm,isObject:ho,isPlainObject:go,isUndefined:$t,isDate:$m,isFile:Pm,isBlob:Im,isRegExp:Ym,isFunction:ze,isStream:Lm,isURLSearchParams:Fm,isTypedArray:qm,isFileList:Rm,forEach:Pt,merge:Sa,extend:Dm,trim:Mm,stripBOM:jm,inherits:Wm,toFlatObject:Um,kindOf:uo,kindOfTest:Je,endsWith:Hm,toArray:Gm,forEachEntry:Jm,matchAll:Km,isHTMLForm:Zm,hasOwnProperty:Qi,hasOwnProp:Qi,reduceDescriptors:es,freezeMethods:Qm,toObjectSet:eu,toCamelCase:Xm,noop:tu,toFiniteNumber:ou,findKey:Zi,global:Xi,isContextDefined:Yi,ALPHABET:os,generateString:au,isSpecCompliantForm:nu,toJSONObject:iu,isAsyncFn:su,isThenable:ru};function q(e,a,t,n,s){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),t&&(this.config=t),n&&(this.request=n),s&&(this.response=s)}C.inherits(q,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:C.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const as=q.prototype,ns={};["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=>{ns[e]={value:e}}),Object.defineProperties(q,ns),Object.defineProperty(as,"isAxiosError",{value:!0}),q.from=(e,a,t,n,s,i)=>{const r=Object.create(as);return C.toFlatObject(e,r,function(l){return l!==Error.prototype},l=>l!=="isAxiosError"),q.call(r,e.message,a,t,n,s),r.cause=e,r.name=e.name,i&&Object.assign(r,i),r};const lu=null;function ka(e){return C.isPlainObject(e)||C.isArray(e)}function is(e){return C.endsWith(e,"[]")?e.slice(0,-2):e}function ss(e,a,t){return e?e.concat(a).map(function(n,s){return n=is(n),!t&&s?"["+n+"]":n}).join(t?".":""):a}function cu(e){return C.isArray(e)&&!e.some(ka)}const du=C.toFlatObject(C,{},null,function(e){return/^is[A-Z]/.test(e)});function fo(e,a,t){if(!C.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,t=C.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,h){return!C.isUndefined(h[d])});const n=t.metaTokens,s=t.visitor||c,i=t.dots,r=t.indexes,l=(t.Blob||typeof Blob<"u"&&Blob)&&C.isSpecCompliantForm(a);if(!C.isFunction(s))throw new TypeError("visitor must be a function");function u(d){if(d===null)return"";if(C.isDate(d))return d.toISOString();if(!l&&C.isBlob(d))throw new q("Blob is not supported. Use a Buffer instead.");return C.isArrayBuffer(d)||C.isTypedArray(d)?l&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function c(d,h,g){let b=d;if(d&&!g&&typeof d=="object"){if(C.endsWith(h,"{}"))h=n?h:h.slice(0,-2),d=JSON.stringify(d);else if(C.isArray(d)&&cu(d)||(C.isFileList(d)||C.endsWith(h,"[]"))&&(b=C.toArray(d)))return h=is(h),b.forEach(function(S,_){!(C.isUndefined(S)||S===null)&&a.append(r===!0?ss([h],_,i):r===null?h:h+"[]",u(S))}),!1}return ka(d)?!0:(a.append(ss(g,h,i),u(d)),!1)}const m=[],p=Object.assign(du,{defaultVisitor:c,convertValue:u,isVisitable:ka});function f(d,h){if(!C.isUndefined(d)){if(m.indexOf(d)!==-1)throw Error("Circular reference detected in "+h.join("."));m.push(d),C.forEach(d,function(g,b){(!(C.isUndefined(g)||g===null)&&s.call(a,g,C.isString(b)?b.trim():b,h,p))===!0&&f(g,h?h.concat(b):[b])}),m.pop()}}if(!C.isObject(e))throw new TypeError("data must be an object");return f(e),a}function rs(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(t){return a[t]})}function Ca(e,a){this._pairs=[],e&&fo(e,this,a)}const ls=Ca.prototype;ls.append=function(e,a){this._pairs.push([e,a])},ls.toString=function(e){const a=e?function(t){return e.call(this,t,rs)}:rs;return this._pairs.map(function(t){return a(t[0])+"="+a(t[1])},"").join("&")};function mu(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function cs(e,a,t){if(!a)return e;const n=t&&t.encode||mu,s=t&&t.serialize;let i;if(s?i=s(a,t):i=C.isURLSearchParams(a)?a.toString():new Ca(a,t).toString(n),i){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class uu{constructor(){this.handlers=[]}use(a,t,n){return this.handlers.push({fulfilled:a,rejected:t,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){C.forEach(this.handlers,function(t){t!==null&&a(t)})}}const ds=uu,ms={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},pu=typeof URLSearchParams<"u"?URLSearchParams:Ca,hu=typeof FormData<"u"?FormData:null,gu=typeof Blob<"u"?Blob:null,fu={isBrowser:!0,classes:{URLSearchParams:pu,FormData:hu,Blob:gu},protocols:["http","https","file","blob","url","data"]},us=typeof window<"u"&&typeof document<"u",yu=(e=>us&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),bu=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",wu=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:us,hasStandardBrowserEnv:yu,hasStandardBrowserWebWorkerEnv:bu},Symbol.toStringTag,{value:"Module"})),Ke={...wu,...fu};function Su(e,a){return fo(e,new Ke.classes.URLSearchParams,Object.assign({visitor:function(t,n,s,i){return Ke.isNode&&C.isBuffer(t)?(this.append(n,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},a))}function _u(e){return C.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function ku(e){const a={},t=Object.keys(e);let n;const s=t.length;let i;for(n=0;n<s;n++)i=t[n],a[i]=e[i];return a}function ps(e){function a(t,n,s,i){let r=t[i++];if(r==="__proto__")return!0;const l=Number.isFinite(+r),u=i>=t.length;return r=!r&&C.isArray(s)?s.length:r,u?(C.hasOwnProp(s,r)?s[r]=[s[r],n]:s[r]=n,!l):((!s[r]||!C.isObject(s[r]))&&(s[r]=[]),a(t,n,s[r],i)&&C.isArray(s[r])&&(s[r]=ku(s[r])),!l)}if(C.isFormData(e)&&C.isFunction(e.entries)){const t={};return C.forEachEntry(e,(n,s)=>{a(_u(n),s,t,0)}),t}return null}function Cu(e,a,t){if(C.isString(e))try{return(a||JSON.parse)(e),C.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(e)}const Ea={transitional:ms,adapter:["xhr","http"],transformRequest:[function(e,a){const t=a.getContentType()||"",n=t.indexOf("application/json")>-1,s=C.isObject(e);if(s&&C.isHTMLForm(e)&&(e=new FormData(e)),C.isFormData(e))return n?JSON.stringify(ps(e)):e;if(C.isArrayBuffer(e)||C.isBuffer(e)||C.isStream(e)||C.isFile(e)||C.isBlob(e))return e;if(C.isArrayBufferView(e))return e.buffer;if(C.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(s){if(t.indexOf("application/x-www-form-urlencoded")>-1)return Su(e,this.formSerializer).toString();if((i=C.isFileList(e))||t.indexOf("multipart/form-data")>-1){const r=this.env&&this.env.FormData;return fo(i?{"files[]":e}:e,r&&new r,this.formSerializer)}}return s||n?(a.setContentType("application/json",!1),Cu(e)):e}],transformResponse:[function(e){const a=this.transitional||Ea.transitional,t=a&&a.forcedJSONParsing,n=this.responseType==="json";if(e&&C.isString(e)&&(t&&!this.responseType||n)){const s=!(a&&a.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(i){if(s)throw i.name==="SyntaxError"?q.from(i,q.ERR_BAD_RESPONSE,this,null,this.response):i}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ke.classes.FormData,Blob:Ke.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};C.forEach(["delete","get","head","post","put","patch"],e=>{Ea.headers[e]={}});const Ba=Ea,Eu=C.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"]),Bu=e=>{const a={};let t,n,s;return e&&e.split(`
|
|
7
|
+
`).forEach(function(i){s=i.indexOf(":"),t=i.substring(0,s).trim().toLowerCase(),n=i.substring(s+1).trim(),!(!t||a[t]&&Eu[t])&&(t==="set-cookie"?a[t]?a[t].push(n):a[t]=[n]:a[t]=a[t]?a[t]+", "+n:n)}),a},hs=Symbol("internals");function It(e){return e&&String(e).trim().toLowerCase()}function yo(e){return e===!1||e==null?e:C.isArray(e)?e.map(yo):String(e)}function xu(e){const a=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=t.exec(e);)a[n[1]]=n[2];return a}const Nu=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function xa(e,a,t,n,s){if(C.isFunction(n))return n.call(this,a,t);if(s&&(a=t),!!C.isString(a)){if(C.isString(n))return a.indexOf(n)!==-1;if(C.isRegExp(n))return n.test(a)}}function Tu(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,t,n)=>t.toUpperCase()+n)}function vu(e,a){const t=C.toCamelCase(" "+a);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+t,{value:function(s,i,r){return this[n].call(this,a,s,i,r)},configurable:!0})})}let bo=class{constructor(a){a&&this.set(a)}set(a,t,n){const s=this;function i(l,u,c){const m=It(u);if(!m)throw new Error("header name must be a non-empty string");const p=C.findKey(s,m);(!p||s[p]===void 0||c===!0||c===void 0&&s[p]!==!1)&&(s[p||u]=yo(l))}const r=(l,u)=>C.forEach(l,(c,m)=>i(c,m,u));return C.isPlainObject(a)||a instanceof this.constructor?r(a,t):C.isString(a)&&(a=a.trim())&&!Nu(a)?r(Bu(a),t):a!=null&&i(t,a,n),this}get(a,t){if(a=It(a),a){const n=C.findKey(this,a);if(n){const s=this[n];if(!t)return s;if(t===!0)return xu(s);if(C.isFunction(t))return t.call(this,s,n);if(C.isRegExp(t))return t.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,t){if(a=It(a),a){const n=C.findKey(this,a);return!!(n&&this[n]!==void 0&&(!t||xa(this,this[n],n,t)))}return!1}delete(a,t){const n=this;let s=!1;function i(r){if(r=It(r),r){const l=C.findKey(n,r);l&&(!t||xa(n,n[l],l,t))&&(delete n[l],s=!0)}}return C.isArray(a)?a.forEach(i):i(a),s}clear(a){const t=Object.keys(this);let n=t.length,s=!1;for(;n--;){const i=t[n];(!a||xa(this,this[i],i,a,!0))&&(delete this[i],s=!0)}return s}normalize(a){const t=this,n={};return C.forEach(this,(s,i)=>{const r=C.findKey(n,i);if(r){t[r]=yo(s),delete t[i];return}const l=a?Tu(i):String(i).trim();l!==i&&delete t[i],t[l]=yo(s),n[l]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const t=Object.create(null);return C.forEach(this,(n,s)=>{n!=null&&n!==!1&&(t[s]=a&&C.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,t])=>a+": "+t).join(`
|
|
8
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...t){const n=new this(a);return t.forEach(s=>n.set(s)),n}static accessor(a){const t=(this[hs]=this[hs]={accessors:{}}).accessors,n=this.prototype;function s(i){const r=It(i);t[r]||(vu(n,i),t[r]=!0)}return C.isArray(a)?a.forEach(s):s(a),this}};bo.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),C.reduceDescriptors(bo.prototype,({value:e},a)=>{let t=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(n){this[t]=n}}}),C.freezeMethods(bo);const at=bo;function Na(e,a){const t=this||Ba,n=a||t,s=at.from(n.headers);let i=n.data;return C.forEach(e,function(r){i=r.call(t,i,s.normalize(),a?a.status:void 0)}),s.normalize(),i}function gs(e){return!!(e&&e.__CANCEL__)}function Rt(e,a,t){q.call(this,e??"canceled",q.ERR_CANCELED,a,t),this.name="CanceledError"}C.inherits(Rt,q,{__CANCEL__:!0});function Ou(e,a,t){const n=t.config.validateStatus;!t.status||!n||n(t.status)?e(t):a(new q("Request failed with status code "+t.status,[q.ERR_BAD_REQUEST,q.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}const Au=Ke.hasStandardBrowserEnv?{write(e,a,t,n,s,i){const r=[e+"="+encodeURIComponent(a)];C.isNumber(t)&&r.push("expires="+new Date(t).toGMTString()),C.isString(n)&&r.push("path="+n),C.isString(s)&&r.push("domain="+s),i===!0&&r.push("secure"),document.cookie=r.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 Vu(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function $u(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function fs(e,a){return e&&!Vu(a)?$u(e,a):a}const Pu=Ke.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");let t;function n(s){let i=s;return e&&(a.setAttribute("href",i),i=a.href),a.setAttribute("href",i),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:a.pathname.charAt(0)==="/"?a.pathname:"/"+a.pathname}}return t=n(window.location.href),function(s){const i=C.isString(s)?n(s):s;return i.protocol===t.protocol&&i.host===t.host}}():function(){return function(){return!0}}();function Iu(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function Ru(e,a){e=e||10;const t=new Array(e),n=new Array(e);let s=0,i=0,r;return a=a!==void 0?a:1e3,function(l){const u=Date.now(),c=n[i];r||(r=u),t[s]=l,n[s]=u;let m=i,p=0;for(;m!==s;)p+=t[m++],m=m%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),u-r<a)return;const f=c&&u-c;return f?Math.round(p*1e3/f):void 0}}function ys(e,a){let t=0;const n=Ru(50,250);return s=>{const i=s.loaded,r=s.lengthComputable?s.total:void 0,l=i-t,u=n(l),c=i<=r;t=i;const m={loaded:i,total:r,progress:r?i/r:void 0,bytes:l,rate:u||void 0,estimated:u&&r&&c?(r-i)/u:void 0,event:s};m[a?"download":"upload"]=!0,e(m)}}const Lu=typeof XMLHttpRequest<"u",zu=Lu&&function(e){return new Promise(function(a,t){let n=e.data;const s=at.from(e.headers).normalize();let{responseType:i,withXSRFToken:r}=e,l;function u(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let c;if(C.isFormData(n)){if(Ke.hasStandardBrowserEnv||Ke.hasStandardBrowserWebWorkerEnv)s.setContentType(!1);else if((c=s.getContentType())!==!1){const[h,...g]=c?c.split(";").map(b=>b.trim()).filter(Boolean):[];s.setContentType([h||"multipart/form-data",...g].join("; "))}}let m=new XMLHttpRequest;if(e.auth){const h=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(h+":"+g))}const p=fs(e.baseURL,e.url);m.open(e.method.toUpperCase(),cs(p,e.params,e.paramsSerializer),!0),m.timeout=e.timeout;function f(){if(!m)return;const h=at.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),g={data:!i||i==="text"||i==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:h,config:e,request:m};Ou(function(b){a(b),u()},function(b){t(b),u()},g),m=null}if("onloadend"in m?m.onloadend=f:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(f)},m.onabort=function(){m&&(t(new q("Request aborted",q.ECONNABORTED,e,m)),m=null)},m.onerror=function(){t(new q("Network Error",q.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let h=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const g=e.transitional||ms;e.timeoutErrorMessage&&(h=e.timeoutErrorMessage),t(new q(h,g.clarifyTimeoutError?q.ETIMEDOUT:q.ECONNABORTED,e,m)),m=null},Ke.hasStandardBrowserEnv&&(r&&C.isFunction(r)&&(r=r(e)),r||r!==!1&&Pu(p))){const h=e.xsrfHeaderName&&e.xsrfCookieName&&Au.read(e.xsrfCookieName);h&&s.set(e.xsrfHeaderName,h)}n===void 0&&s.setContentType(null),"setRequestHeader"in m&&C.forEach(s.toJSON(),function(h,g){m.setRequestHeader(g,h)}),C.isUndefined(e.withCredentials)||(m.withCredentials=!!e.withCredentials),i&&i!=="json"&&(m.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&m.addEventListener("progress",ys(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&m.upload&&m.upload.addEventListener("progress",ys(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=h=>{m&&(t(!h||h.type?new Rt(null,e,m):h),m.abort(),m=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const d=Iu(p);if(d&&Ke.protocols.indexOf(d)===-1){t(new q("Unsupported protocol "+d+":",q.ERR_BAD_REQUEST,e));return}m.send(n||null)})},Ta={http:lu,xhr:zu};C.forEach(Ta,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const bs=e=>`- ${e}`,Fu=e=>C.isFunction(e)||e===null||e===!1,ws={getAdapter:e=>{e=C.isArray(e)?e:[e];const{length:a}=e;let t,n;const s={};for(let i=0;i<a;i++){t=e[i];let r;if(n=t,!Fu(t)&&(n=Ta[(r=String(t)).toLowerCase()],n===void 0))throw new q(`Unknown adapter '${r}'`);if(n)break;s[r||"#"+i]=n}if(!n){const i=Object.entries(s).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let r=a?i.length>1?`since :
|
|
9
|
+
`+i.map(bs).join(`
|
|
10
|
+
`):" "+bs(i[0]):"as no adapter specified";throw new q("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return n},adapters:Ta};function va(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Rt(null,e)}function Ss(e){return va(e),e.headers=at.from(e.headers),e.data=Na.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ws.getAdapter(e.adapter||Ba.adapter)(e).then(function(a){return va(e),a.data=Na.call(e,e.transformResponse,a),a.headers=at.from(a.headers),a},function(a){return gs(a)||(va(e),a&&a.response&&(a.response.data=Na.call(e,e.transformResponse,a.response),a.response.headers=at.from(a.response.headers))),Promise.reject(a)})}const _s=e=>e instanceof at?e.toJSON():e;function _t(e,a){a=a||{};const t={};function n(c,m,p){return C.isPlainObject(c)&&C.isPlainObject(m)?C.merge.call({caseless:p},c,m):C.isPlainObject(m)?C.merge({},m):C.isArray(m)?m.slice():m}function s(c,m,p){if(C.isUndefined(m)){if(!C.isUndefined(c))return n(void 0,c,p)}else return n(c,m,p)}function i(c,m){if(!C.isUndefined(m))return n(void 0,m)}function r(c,m){if(C.isUndefined(m)){if(!C.isUndefined(c))return n(void 0,c)}else return n(void 0,m)}function l(c,m,p){if(p in a)return n(c,m);if(p in e)return n(void 0,c)}const u={url:i,method:i,data:i,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:l,headers:(c,m)=>s(_s(c),_s(m),!0)};return C.forEach(Object.keys(Object.assign({},e,a)),function(c){const m=u[c]||s,p=m(e[c],a[c],c);C.isUndefined(p)&&m!==l||(t[c]=p)}),t}const ks="1.6.7",Oa={};["object","boolean","number","function","string","symbol"].forEach((e,a)=>{Oa[e]=function(t){return typeof t===e||"a"+(a<1?"n ":" ")+e}});const Cs={};Oa.transitional=function(e,a,t){function n(s,i){return"[Axios v"+ks+"] Transitional option '"+s+"'"+i+(t?". "+t:"")}return(s,i,r)=>{if(e===!1)throw new q(n(i," has been removed"+(a?" in "+a:"")),q.ERR_DEPRECATED);return a&&!Cs[i]&&(Cs[i]=!0,console.warn(n(i," has been deprecated since v"+a+" and will be removed in the near future"))),e?e(s,i,r):!0}};function Mu(e,a,t){if(typeof e!="object")throw new q("options must be an object",q.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let s=n.length;for(;s-- >0;){const i=n[s],r=a[i];if(r){const l=e[i],u=l===void 0||r(l,i,e);if(u!==!0)throw new q("option "+i+" must be "+u,q.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new q("Unknown option "+i,q.ERR_BAD_OPTION)}}const Aa={assertOptions:Mu,validators:Oa},ct=Aa.validators;let wo=class{constructor(a){this.defaults=a,this.interceptors={request:new ds,response:new ds}}async request(a,t){try{return await this._request(a,t)}catch(n){if(n instanceof Error){let s;Error.captureStackTrace?Error.captureStackTrace(s={}):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
11
|
+
`+i):n.stack=i}throw n}}_request(a,t){typeof a=="string"?(t=t||{},t.url=a):t=a||{},t=_t(this.defaults,t);const{transitional:n,paramsSerializer:s,headers:i}=t;n!==void 0&&Aa.assertOptions(n,{silentJSONParsing:ct.transitional(ct.boolean),forcedJSONParsing:ct.transitional(ct.boolean),clarifyTimeoutError:ct.transitional(ct.boolean)},!1),s!=null&&(C.isFunction(s)?t.paramsSerializer={serialize:s}:Aa.assertOptions(s,{encode:ct.function,serialize:ct.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let r=i&&C.merge(i.common,i[t.method]);i&&C.forEach(["delete","get","head","post","put","patch","common"],h=>{delete i[h]}),t.headers=at.concat(r,i);const l=[];let u=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(t)===!1||(u=u&&h.synchronous,l.unshift(h.fulfilled,h.rejected))});const c=[];this.interceptors.response.forEach(function(h){c.push(h.fulfilled,h.rejected)});let m,p=0,f;if(!u){const h=[Ss.bind(this),void 0];for(h.unshift.apply(h,l),h.push.apply(h,c),f=h.length,m=Promise.resolve(t);p<f;)m=m.then(h[p++],h[p++]);return m}f=l.length;let d=t;for(p=0;p<f;){const h=l[p++],g=l[p++];try{d=h(d)}catch(b){g.call(this,b);break}}try{m=Ss.call(this,d)}catch(h){return Promise.reject(h)}for(p=0,f=c.length;p<f;)m=m.then(c[p++],c[p++]);return m}getUri(a){a=_t(this.defaults,a);const t=fs(a.baseURL,a.url);return cs(t,a.params,a.paramsSerializer)}};C.forEach(["delete","get","head","options"],function(e){wo.prototype[e]=function(a,t){return this.request(_t(t||{},{method:e,url:a,data:(t||{}).data}))}}),C.forEach(["post","put","patch"],function(e){function a(t){return function(n,s,i){return this.request(_t(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:s}))}}wo.prototype[e]=a(),wo.prototype[e+"Form"]=a(!0)});const So=wo,Du=class zc{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(s){t=s});const n=this;this.promise.then(s=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](s);n._listeners=null}),this.promise.then=s=>{let i;const r=new Promise(l=>{n.subscribe(l),i=l}).then(s);return r.cancel=function(){n.unsubscribe(i)},r},a(function(s,i,r){n.reason||(n.reason=new Rt(s,i,r),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const t=this._listeners.indexOf(a);t!==-1&&this._listeners.splice(t,1)}static source(){let a;return{token:new zc(function(t){a=t}),cancel:a}}};function ju(e){return function(a){return e.apply(null,a)}}function Wu(e){return C.isObject(e)&&e.isAxiosError===!0}const Va={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(Va).forEach(([e,a])=>{Va[a]=e});const Uu=Va;function Es(e){const a=new So(e),t=qi(So.prototype.request,a);return C.extend(t,So.prototype,a,{allOwnKeys:!0}),C.extend(t,a,null,{allOwnKeys:!0}),t.create=function(n){return Es(_t(e,n))},t}const pe=Es(Ba);pe.Axios=So,pe.CanceledError=Rt,pe.CancelToken=Du,pe.isCancel=gs,pe.VERSION=ks,pe.toFormData=fo,pe.AxiosError=q,pe.Cancel=pe.CanceledError,pe.all=function(e){return Promise.all(e)},pe.spread=ju,pe.isAxiosError=Wu,pe.mergeConfig=_t,pe.AxiosHeaders=at,pe.formToJSON=e=>ps(C.isHTMLForm(e)?new FormData(e):e),pe.getAdapter=ws.getAdapter,pe.HttpStatusCode=Uu,pe.default=pe;const Bs=pe,Hu=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},$a={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))}}},xs=()=>{o.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}))},Ns=$a.setup;$a.setup=Ns?(e,a)=>(xs(),Ns(e,a)):xs;const Gu=e=>(o.pushScopeId("data-v-fb269a1e"),e=e(),o.popScopeId(),e),qu=["src"],Ju={key:1,class:"text"},Ku=["src"],Zu={class:"stats"},Xu=Gu(()=>o.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),Yu={class:"numstats"},Qu={class:"leyend"};function ep(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",null,[t.type==0?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["button",s.status&&t.typeOnOff&&"button-active"]),style:o.normalizeStyle([i.customStyle,s.status&&t.typeOnOff&&i.customActive]),onClick:a[0]||(a[0]=(...r)=>i.btnClick&&i.btnClick(...r))},[t.icon&&t.iconPosition.toLowerCase()==="left"?(o.openBlock(),o.createElementBlock("img",{key:0,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,qu)):o.createCommentVNode("",!0),t.textValue?(o.openBlock(),o.createElementBlock("div",Ju,o.toDisplayString(t.textValue),1)):o.createCommentVNode("",!0),t.icon&&t.iconPosition.toLowerCase()==="right"?(o.openBlock(),o.createElementBlock("img",{key:2,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,Ku)):o.createCommentVNode("",!0)],6)):o.createCommentVNode("",!0),t.type==1?(o.openBlock(),o.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...r)=>i.btnClick&&i.btnClick(...r))},[o.createElementVNode("div",Zu,[Xu,o.createElementVNode("div",Yu,o.toDisplayString(t.textStat),1)]),o.createElementVNode("div",Qu,o.toDisplayString(t.textCategory),1)])):o.createCommentVNode("",!0)])}const tp=Hu($a,[["render",ep],["__scopeId","data-v-fb269a1e"]]),op=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},Pa={components:{GSCButton:tp},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)}},Ts=()=>{o.useCssVars(e=>({"132156c0":e.centerTextCustom,"096d3ecc":e.marginCustom}))},vs=Pa.setup;Pa.setup=vs?(e,a)=>(Ts(),vs(e,a)):Ts;const ap={id:"panelteams",class:"gsc-filterperteam__panel-teams",ref:"panel"},np={class:"gsc-filterperteam__panel-teams__cont-teams"},ip=["onClick"],sp=["src","alt","title"];function rp(e,a,t,n,s,i){const r=o.resolveComponent("GSCButton");return o.openBlock(),o.createElementBlock("div",{class:"gsc-filterperteam",ref:"container",style:o.normalizeStyle(i.customStyleContain)},[o.createElementVNode("div",ap,[o.createElementVNode("div",np,[t.hiddenButtonAll?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,style:o.normalizeStyle(i.customStyleTeam),class:o.normalizeClass(["gsc-filterperteam__panel-teams__cont-teams__button-all",this.teamselect!==0?"--disabled":""])},[o.createVNode(r,{"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:i.click},null,8,["onClick"])],6)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.data,(l,u)=>(o.openBlock(),o.createElementBlock("div",{key:u,style:o.normalizeStyle(i.customStyleTeam),class:o.normalizeClass([l.id==s.teamselect?"colorselect":"","gsc-filterperteam__panel-teams__cont-teams__btn-team hover-team"]),onClick:c=>i.btnTeamClick(l.id)},[o.createElementVNode("img",{src:l.logo,alt:l.name,title:l.name},null,8,sp)],14,ip))),128))])],512)],4)}const lp=op(Pa,[["render",rp],["__scopeId","data-v-ab79352d"]]),cp=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},Ia={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))}}},Os=()=>{o.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}))},As=Ia.setup;Ia.setup=As?(e,a)=>(Os(),As(e,a)):Os;const dp=e=>(o.pushScopeId("data-v-fb269a1e"),e=e(),o.popScopeId(),e),mp=["src"],up={key:1,class:"text"},pp=["src"],hp={class:"stats"},gp=dp(()=>o.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),fp={class:"numstats"},yp={class:"leyend"};function bp(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",null,[t.type==0?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["button",s.status&&t.typeOnOff&&"button-active"]),style:o.normalizeStyle([i.customStyle,s.status&&t.typeOnOff&&i.customActive]),onClick:a[0]||(a[0]=(...r)=>i.btnClick&&i.btnClick(...r))},[t.icon&&t.iconPosition.toLowerCase()==="left"?(o.openBlock(),o.createElementBlock("img",{key:0,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,mp)):o.createCommentVNode("",!0),t.textValue?(o.openBlock(),o.createElementBlock("div",up,o.toDisplayString(t.textValue),1)):o.createCommentVNode("",!0),t.icon&&t.iconPosition.toLowerCase()==="right"?(o.openBlock(),o.createElementBlock("img",{key:2,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,pp)):o.createCommentVNode("",!0)],6)):o.createCommentVNode("",!0),t.type==1?(o.openBlock(),o.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...r)=>i.btnClick&&i.btnClick(...r))},[o.createElementVNode("div",hp,[gp,o.createElementVNode("div",fp,o.toDisplayString(t.textStat),1)]),o.createElementVNode("div",yp,o.toDisplayString(t.textCategory),1)])):o.createCommentVNode("",!0)])}const wp=cp(Ia,[["render",bp],["__scopeId","data-v-fb269a1e"]]);function Sp(e){const a=o.ref({width:0,height:0});function t(){const n=e.value.getBoundingClientRect();a.value.width=n.width,a.value.height=n.height}return o.onMounted(()=>{t(),window.addEventListener("resize",t)}),o.onUnmounted(()=>{window.removeEventListener("resize",t)}),{elementSize:a}}const _p=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},kp={components:{GSCButton:wp},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=o.ref("myDivRef"),{elementSize:a}=Sp(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,t,n,s,i="",r=!1,l){l&&this.$emit("openmedia",{team:e,mainSectionType:a,playListType:t,matchResult:n,category:s,title:i,isRivalSubject:r,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,t){return!e&&a==t?"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}}},Ra=e=>(o.pushScopeId("data-v-333b2aca"),e=e(),o.popScopeId(),e),Cp={class:"trRow",style:{width:"100%",margin:"0 auto"}},Ep=Ra(()=>o.createElementVNode("div",{class:"head__itemhead"},"Pos.",-1)),Bp={key:0,class:"head__itemhead"},xp=o.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),Np={key:1,class:"head__itemhead fontP"},Tp={key:1,class:"movilTextLastGame"},vp=Ra(()=>o.createElementVNode("br",null,null,-1)),Op=Ra(()=>o.createElementVNode("div",{class:"head__itemhead fontP"},"Prox",-1)),Ap=["alt","title","src"],Vp={class:"hover-decorationTeam"},$p={class:"hover-decorationTeam"},Pp={key:0,class:"tdrow__itemtd"},Ip={class:"tdrow__itemtd fontM"},Rp={key:1,class:"tdrow__itemtd itemtd-games"},Lp={key:1},zp=["src"];function Fp(e,a,t,n,s,i){const r=o.resolveComponent("GSCButton");return o.openBlock(),o.createElementBlock("div",Cp,[t.isheader?(o.openBlock(),o.createElementBlock("div",{key:0,style:o.normalizeStyle([t.isGames?i.customStyle:i.customStyleLanding,i.customGridM(n.elementSize)]),class:o.normalizeClass(["head",[n.elementSize.width>768?"fontSizeTextPC":n.elementSize.width>480?"fontSizeTextTablet":n.elementSize.width>360?"fontSizeTextMV":"fontSizeTextSM"]])},[Ep,o.createElementVNode("div",{class:o.normalizeClass(["head__itemhead",n.elementSize.width>600?"leftText":"centerText"])},"Equipo",2),t.isVideos?(o.openBlock(),o.createElementBlock("div",Bp," ")):o.createCommentVNode("",!0),xp,t.isGames?(o.openBlock(),o.createElementBlock("div",Np,[n.elementSize.width>580?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode("Últimos juegos")],64)):(o.openBlock(),o.createElementBlock("span",Tp,[o.createTextVNode("Últimos "),vp,o.createTextVNode("juegos")]))])):o.createCommentVNode("",!0),Op],6)):o.createCommentVNode("",!0),o.createElementVNode("div",{ref:"myDivRef",onClick:a[11]||(a[11]=l=>i.btnAllOneClick(t.data.team_id)),class:o.normalizeClass(["tdrow",[n.elementSize.width>768?"fontSizeTextPCTD":n.elementSize.width>480?"fontSizeTextTabletTD":n.elementSize.width>360?"fontSizeTextMVTD":"fontSizeTextSMTD"]]),style:o.normalizeStyle([t.isGames?i.customStyleItem:i.customStyleItemLanding,i.customBg(t.isGames,t.data.team_id,t.teamSelected),i.customGridM(n.elementSize)])},[o.createElementVNode("div",{class:"tdrow__itemtd",style:o.normalizeStyle(t.isGames?"":"font-size:14px; font-family: Montserrat-Regular")},o.toDisplayString(t.data.table_position>9?t.data.table_position:"0"+t.data.table_position),5),o.createElementVNode("div",{onClick:a[0]||(a[0]=l=>i.goToTeamProfile(t.data.team_id)),class:o.normalizeClass(["tdrow__itemtd",n.elementSize.width>768?"itemtd-teampc":n.elementSize.width>600?"itemtd-teamtablet":n.elementSize.width>480?"itemtd-teammv":"itemtd-teamsm"])},[o.createElementVNode("img",{class:o.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:t.data.team_name,title:t.data.team_name,src:t.data.team_logo},null,10,Ap),n.elementSize.width>600?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.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")},[o.createElementVNode("span",Vp,o.toDisplayString(t.data.team_short_name),1)],2)):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.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")},[o.createElementVNode("span",$p,o.toDisplayString(t.data.team_short_name),1)],2))],2),t.isVideos?(o.openBlock(),o.createElementBlock("div",Pp,[n.elementSize.width>768?(o.openBlock(),o.createBlock(r,{key:0,icon:t.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":t.data.games_played>0?"#FFF":"#999","border-color":t.data.games_played>0?"#4B565F":"#2e3439","border-type":"solid",value:!0,"border-width":1,"background-color":t.data.games_played>0?"#2A3641":"rgba(42, 54, 65, .6)",onClick:a[1]||(a[1]=l=>t.data.games_played>0?i.setOpenMedia(t.data.team_id,2,3,0,0,"Juegos jugados",!1,t.data.games_played):void 0),"border-radius":"64px"},null,8,["icon","font-color","border-color","background-color"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[n.elementSize.width>560?(o.openBlock(),o.createBlock(r,{key:0,icon:t.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":t.data.games_played>0?"#FFF":"#999","border-color":t.data.games_played>0?"#4B565F":"#2e3439","border-type":"solid","border-width":1,"background-color":t.data.games_played>0?"#2A3641":"rgba(42, 54, 65, .6)",onClick:a[2]||(a[2]=l=>t.data.games_played>0?i.setOpenMedia(t.data.team_id,2,3,0,0,"Juegos jugados",!1,t.data.games_played):void 0),"border-radius":"64px"},null,8,["icon","font-color","border-color","background-color"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[n.elementSize.width>400?(o.openBlock(),o.createBlock(r,{key:0,icon:t.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":t.data.games_played>0?"#FFF":"#999","border-color":t.data.games_played>0?"#4B565F":"#2e3439","border-type":"solid","border-width":1,"background-color":t.data.games_played>0?"#2A3641":"rgba(42, 54, 65, .6)",onClick:a[3]||(a[3]=l=>t.data.games_played>0?i.setOpenMedia(t.data.team_id,2,3,0,0,"Juegos jugados",!1,t.data.games_played):void 0),"border-radius":"64px"},null,8,["icon","font-color","border-color","background-color"])):(o.openBlock(),o.createBlock(r,{key:1,icon:t.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":t.data.games_played>0?"#FFF":"#999","border-color":t.data.games_played>0?"#4B565F":"#2e3439","border-type":"solid","border-width":1,"background-color":t.data.games_played>0?"#2A3641":"rgba(42, 54, 65, .6)",onClick:a[4]||(a[4]=l=>t.data.games_played>0?i.setOpenMedia(t.data.team_id,2,3,0,0,"Juegos jugados",!1,t.data.games_played):void 0),"border-radius":"64px"},null,8,["icon","font-color","border-color","background-color"]))],64))],64))])):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"tdrow__itemtd fontM",onClick:a[5]||(a[5]=l=>i.setOpenMedia(t.data.team_id,2,3,0,0,"Juegos jugados",!1,t.data.games_played))},[o.createElementVNode("span",{class:o.normalizeClass(t.data.games_played!=0?"hover-decoration":"")},o.toDisplayString(t.data.games_played),3)]),o.createElementVNode("div",{class:"tdrow__itemtd fontM",onClick:a[6]||(a[6]=l=>i.setOpenMedia(t.data.team_id,2,3,1,0,"Juegos ganados",!1,t.data.games_won))},[o.createElementVNode("span",{class:o.normalizeClass(t.data.games_won!=0?"hover-decoration":"")},o.toDisplayString(t.data.games_won),3)]),o.createElementVNode("div",{class:"tdrow__itemtd fontM",onClick:a[7]||(a[7]=l=>i.setOpenMedia(t.data.team_id,2,3,3,0,"Juegos empatados",!1,t.data.games_tied))},[o.createElementVNode("span",{class:o.normalizeClass(t.data.games_tied!=0?"hover-decoration":"")},o.toDisplayString(t.data.games_tied),3)]),o.createElementVNode("div",{class:"tdrow__itemtd fontM",onClick:a[8]||(a[8]=l=>i.setOpenMedia(t.data.team_id,2,3,2,0,"Juegos perdidos",!1,t.data.games_lost))},[o.createElementVNode("span",{class:o.normalizeClass(t.data.games_lost!=0?"hover-decoration":"")},o.toDisplayString(t.data.games_lost),3)]),o.createElementVNode("div",{class:"tdrow__itemtd fontM",onClick:a[9]||(a[9]=l=>i.setOpenMedia(t.data.team_id,1,3,0,1e3,"Goles anotados",!1,t.data.goals_scored))},[o.createElementVNode("span",{class:o.normalizeClass(t.data.goals_scored!=0?"hover-decoration":"")},o.toDisplayString(t.data.goals_scored),3)]),o.createElementVNode("div",{class:"tdrow__itemtd fontM",onClick:a[10]||(a[10]=l=>i.setOpenMedia(t.data.team_id,3,3,0,1001,"Goles recibidos",!0,t.data.goals_received))},[o.createElementVNode("span",{class:o.normalizeClass(t.data.goals_received!=0?"hover-decoration":"")},o.toDisplayString(t.data.goals_received),3)]),o.createElementVNode("div",Ip,o.toDisplayString(t.data.goals_difference),1),o.createElementVNode("div",{class:o.normalizeClass(["tdrow__itemtd",n.elementSize.width>768?"itemtd-penaltypc":n.elementSize.width>600?"itemtd-penaltytablet":n.elementSize.width>480?"itemtd-penaltymv":"itemtd-penaltysm"])},o.toDisplayString(t.data.points),3),t.isGames?(o.openBlock(),o.createElementBlock("div",Rp,[t.data.last_five_games.length>0?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(t.data.last_five_games,(l,u)=>(o.openBlock(),o.createElementBlock("div",{key:u,class:o.normalizeClass([n.elementSize.width>768?"circlepc":n.elementSize.width>600?"circletablet":n.elementSize.width>480?"circlemv":"circlesm",l=="G"?"green":l=="E"?"gray":"red"])},o.toDisplayString(l),3))),128)):(o.openBlock(),o.createElementBlock("div",Lp,"-"))])):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass(["tdrow__itemtd",n.elementSize.width>768?"itemtd-nextpc":n.elementSize.width>600?"itemtd-nexttablet":n.elementSize.width>480?"itemtd-nextmv":"itemtd-nextsm"])},[t.data.next_rival_logo=="-"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(t.data.next_rival_logo),1)],64)):(o.openBlock(),o.createElementBlock("img",{key:1,class:o.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:t.data.next_rival_logo},null,10,zp))],2)],6)])}const Mp=_p(kp,[["render",Fp],["__scopeId","data-v-333b2aca"]]),Dp=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},La={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))}}},Vs=()=>{o.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}))},$s=La.setup;La.setup=$s?(e,a)=>(Vs(),$s(e,a)):Vs;const jp=e=>(o.pushScopeId("data-v-fb269a1e"),e=e(),o.popScopeId(),e),Wp=["src"],Up={key:1,class:"text"},Hp=["src"],Gp={class:"stats"},qp=jp(()=>o.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),Jp={class:"numstats"},Kp={class:"leyend"};function Zp(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",null,[t.type==0?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["button",s.status&&t.typeOnOff&&"button-active"]),style:o.normalizeStyle([i.customStyle,s.status&&t.typeOnOff&&i.customActive]),onClick:a[0]||(a[0]=(...r)=>i.btnClick&&i.btnClick(...r))},[t.icon&&t.iconPosition.toLowerCase()==="left"?(o.openBlock(),o.createElementBlock("img",{key:0,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,Wp)):o.createCommentVNode("",!0),t.textValue?(o.openBlock(),o.createElementBlock("div",Up,o.toDisplayString(t.textValue),1)):o.createCommentVNode("",!0),t.icon&&t.iconPosition.toLowerCase()==="right"?(o.openBlock(),o.createElementBlock("img",{key:2,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,Hp)):o.createCommentVNode("",!0)],6)):o.createCommentVNode("",!0),t.type==1?(o.openBlock(),o.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...r)=>i.btnClick&&i.btnClick(...r))},[o.createElementVNode("div",Gp,[qp,o.createElementVNode("div",Jp,o.toDisplayString(t.textStat),1)]),o.createElementVNode("div",Kp,o.toDisplayString(t.textCategory),1)])):o.createCommentVNode("",!0)])}const Xp=Dp(La,[["render",Zp],["__scopeId","data-v-fb269a1e"]]),Yp={class:"gsc-dropdown__main-container__item-selected"},Qp=["height","width"],eh=["stroke"],th={class:"gsc-dropdown__items-container"},oh=["onClick"],ah={key:0,class:"gsc-dropdown__items-footer"},nh={__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 t=e,n=o.ref({}),s=o.ref(null),i=o.ref(t.isMultipleOption?-1:0),r=o.ref(!1);o.watch(()=>t.items,(d,h)=>{if(!t.modelValue&&(!t.onlyFirstTime||!h||!h.length)&&d&&d.length){if(t.defaultItemByProp){const g=t.items.findIndex(b=>b[t.defaultItemByProp.propName]===t.defaultItemByProp.value);g!==-1?(i.value=g,n.value=d[g]):(i.value=0,n.value=d[0])}else n.value=d[t.defaultItemByIndex];a("input",n.value)}},{immediate:!0}),o.watch(()=>t.modelValue,d=>{if(d){const h=t.items.findIndex(g=>typeof d=="object"?JSON.stringify(g)===JSON.stringify(d):g===d);h!==-1&&(i.value=h,n.value=t.items[h],a("update:modelValue",n.value))}},{immediate:!0});const l=o.computed(()=>({height:t.height,width:t.width,backgroundColor:t.backgroundColor,borderRadius:`${t.borderRadius}px`,border:`${t.borderType} ${t.borderWidth}px ${t.borderColor}`,color:t.color,"--hover-background-color":t.hoverBackgroundColor,"--list-item-padding":t.listItemPadding,"--list-background-color":t.listBackgroundColor,"--list-height":t.listHeight,"--list-item-selected-color":t.listItemSelectedColor,"--list-item-selected-background-color":t.listItemSelectedBackgroundColor,"--list-item-color":t.listItemColor,"--list-border-radius":`${t.listBorderRadius}`,"--list-border-color":t.listBorderColor,"--list-width":t.isListSameWidth?t.width:"fit-content","--list-border-width":`${t.listBorderWidth}px`,"--footer-border":`${t.footerBorderWidth}px solid ${t.footerBorderColor}`,"--dropdown-opacity":t.isDisabled?"0.5":"1","--dropdown-cursor":t.isDisabled?"not-allowed":"pointer","--dropdown-font-size":t.fontSize?t.fontSize:"14px"})),u=o.computed(()=>({height:`${t.arrowHeight}px`,width:`${t.arrowWidth}px`}));function c(){t.isDisabled||(r.value=!r.value)}function m(d){s.value&&!s.value.contains(d.target)&&(r.value=!1)}function p(d,h){t.isMultipleOption?i.value=-1:(i.value=h,r.value=!1),n.value=d,a("input",n.value),a("update:modelValue",n.value)}function f(){r.value=!1,a("click-ready")}return o.onMounted(()=>{document.addEventListener("click",m)}),o.onBeforeMount(()=>{document.removeEventListener("click",m)}),(d,h)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"dropDown",ref:s,class:"gsc-dropdown",style:o.normalizeStyle(l.value)},[o.createElementVNode("div",{class:"gsc-dropdown__main-container",style:o.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:c},[o.createElementVNode("div",Yp,[o.renderSlot(d.$slots,"default",{selectedItem:n.value})]),o.createElementVNode("div",{class:o.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":r.value}]),style:o.normalizeStyle(u.value)},[(o.openBlock(),o.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.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,eh)],8,Qp))],6)],4),o.createVNode(o.Transition,null,{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("div",th,[o.createElementVNode("div",null,[o.createElementVNode("div",{class:"gsc-dropdown__items",style:o.normalizeStyle({"margin-top":`${t.borderWidth}px`})},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.items,(g,b)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["gsc-dropdown__items__item",{selected:b===i.value}]),key:b,onClick:S=>p(g,b)},[o.renderSlot(d.$slots,"availableItem",{item:g})],10,oh))),128))],4),e.isFooterVisible?(o.openBlock(),o.createElementBlock("div",ah,[o.createVNode(o.unref(Xp),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:f})])):o.createCommentVNode("",!0)])],512),[[o.vShow,r.value]])]),_:3})],4))}};/**
|
|
12
12
|
* Vue 3 Carousel 0.3.1
|
|
13
13
|
* (c) 2023
|
|
14
14
|
* @license MIT
|
|
15
|
-
*/const Y={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},_r={itemsToShow:{default:Y.itemsToShow,type:Number},itemsToScroll:{default:Y.itemsToScroll,type:Number},wrapAround:{default:Y.wrapAround,type:Boolean},throttle:{default:Y.throttle,type:Number},snapAlign:{default:Y.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Y.transition,type:Number},breakpoints:{default:Y.breakpoints,type:Object},autoplay:{default:Y.autoplay,type:Number},pauseAutoplayOnHover:{default:Y.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Y.mouseDrag,type:Boolean},touchDrag:{default:Y.touchDrag,type:Boolean},dir:{default:Y.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Y.i18n,type:Object},settings:{default(){return{}},type:Object}};function tp({config:e,slidesCount:a}){const{snapAlign:o,wrapAround:n,itemsToShow:i=1}=e;if(n)return Math.max(a-1,0);let r;switch(o){case"start":r=a-i;break;case"end":r=a-1;break;case"center":case"center-odd":r=a-Math.ceil((i-.5)/2);break;case"center-even":r=a-Math.ceil(i/2);break;default:r=0;break}return Math.max(r,0)}function op({config:e,slidesCount:a}){const{wrapAround:o,snapAlign:n,itemsToShow:i=1}=e;let r=0;if(o||i>a)return r;switch(n){case"start":r=0;break;case"end":r=i-1;break;case"center":case"center-odd":r=Math.floor((i-1)/2);break;case"center-even":r=Math.floor((i-2)/2);break;default:r=0;break}return r}function Jo({val:e,max:a,min:o}){return a<o?e:Math.min(Math.max(e,o),a)}function ap({config:e,currentSlide:a,slidesCount:o}){const{snapAlign:n,wrapAround:i,itemsToShow:r=1}=e;let s=a;switch(n){case"center":case"center-odd":s-=(r-1)/2;break;case"center-even":s-=(r-2)/2;break;case"end":s-=r-1;break}return i?s:Jo({val:s,max:o-r,min:0})}function Sr(e){return e?e.reduce((a,o)=>{var n;return o.type===t.Fragment?[...a,...Sr(o.children)]:((n=o.type)===null||n===void 0?void 0:n.name)==="CarouselSlide"?[...a,o]:a},[]):[]}function qo({val:e,max:a,min:o=0}){return e>a?qo({val:e-(a+1),max:a,min:o}):e<o?qo({val:e+(a+1),max:a,min:o}):e}function np(e,a){let o;return a?function(...n){const i=this;o||(e.apply(i,n),o=!0,setTimeout(()=>o=!1,a))}:e}function rp(e,a){let o;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{e(...n),o=null},a)}}function ip(e="",a={}){return Object.entries(a).reduce((o,[n,i])=>o.replace(`{${n}}`,String(i)),e)}var sp=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Y))),a=t.inject("currentSlide",t.ref(0)),o=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},ip(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:o.value}))}}),lp=t.defineComponent({name:"Carousel",props:_r,setup(e,{slots:a,emit:o,expose:n}){var i;const r=t.ref(null),s=t.ref([]),l=t.ref(0),p=t.ref(0),c=t.reactive(Object.assign({},Y));let m=Object.assign({},Y),u;const g=t.ref((i=e.modelValue)!==null&&i!==void 0?i:0),d=t.ref(0),h=t.ref(0),f=t.ref(0),y=t.ref(0);let C,A;t.provide("config",c),t.provide("slidesCount",p),t.provide("currentSlide",g),t.provide("maxSlide",f),t.provide("minSlide",y),t.provide("slideWidth",l);function v(){u=Object.assign({},e.breakpoints),m=Object.assign(Object.assign(Object.assign({},m),e),{i18n:Object.assign(Object.assign({},m.i18n),e.i18n),breakpoints:void 0}),ne(m)}function U(){if(!u||!Object.keys(u).length)return;const b=Object.keys(u).map(x=>Number(x)).sort((x,M)=>+M-+x);let V=Object.assign({},m);b.some(x=>{const M=window.matchMedia(`(min-width: ${x}px)`).matches;return M&&(V=Object.assign(Object.assign({},V),u[x])),M}),ne(V)}function ne(b){Object.entries(b).forEach(([V,x])=>c[V]=x)}const he=rp(()=>{U(),X()},16);function X(){if(!r.value)return;const b=r.value.getBoundingClientRect();l.value=b.width/c.itemsToShow}function se(){p.value<=0||(h.value=Math.ceil((p.value-1)/2),f.value=tp({config:c,slidesCount:p.value}),y.value=op({config:c,slidesCount:p.value}),c.wrapAround||(g.value=Jo({val:g.value,max:f.value,min:y.value})))}t.onMounted(()=>{t.nextTick(()=>X()),setTimeout(()=>X(),1e3),U(),Ae(),window.addEventListener("resize",he,{passive:!0}),o("init")}),t.onUnmounted(()=>{A&&clearTimeout(A),C&&clearInterval(C),window.removeEventListener("resize",he,{passive:!0})});let R=!1;const ae={x:0,y:0},ee={x:0,y:0},j=t.reactive({x:0,y:0}),te=t.ref(!1),re=t.ref(!1),Ue=()=>{te.value=!0},He=()=>{te.value=!1};function Ve(b){["INPUT","TEXTAREA","SELECT"].includes(b.target.tagName)||(R=b.type==="touchstart",R||b.preventDefault(),!(!R&&b.button!==0||B.value)&&(ae.x=R?b.touches[0].clientX:b.clientX,ae.y=R?b.touches[0].clientY:b.clientY,document.addEventListener(R?"touchmove":"mousemove",fe,!0),document.addEventListener(R?"touchend":"mouseup",$e,!0)))}const fe=np(b=>{re.value=!0,ee.x=R?b.touches[0].clientX:b.clientX,ee.y=R?b.touches[0].clientY:b.clientY;const V=ee.x-ae.x,x=ee.y-ae.y;j.y=x,j.x=V},c.throttle);function $e(){const b=c.dir==="rtl"?-1:1,V=Math.sign(j.x)*.4,x=Math.round(j.x/l.value+V)*b;if(x&&!R){const M=be=>{be.stopPropagation(),window.removeEventListener("click",M,!0)};window.addEventListener("click",M,!0)}E(g.value-x),j.x=0,j.y=0,re.value=!1,document.removeEventListener(R?"touchmove":"mousemove",fe,!0),document.removeEventListener(R?"touchend":"mouseup",$e,!0)}function Ae(){!c.autoplay||c.autoplay<=0||(C=setInterval(()=>{c.pauseAutoplayOnHover&&te.value||T()},c.autoplay))}function O(){C&&(clearInterval(C),C=null),Ae()}const B=t.ref(!1);function E(b){const V=c.wrapAround?b:Jo({val:b,max:f.value,min:y.value});g.value===V||B.value||(o("slide-start",{slidingToIndex:b,currentSlideIndex:g.value,prevSlideIndex:d.value,slidesCount:p.value}),B.value=!0,d.value=g.value,g.value=V,A=setTimeout(()=>{if(c.wrapAround){const x=qo({val:V,max:f.value,min:0});x!==g.value&&(g.value=x,o("loop",{currentSlideIndex:g.value,slidingToIndex:b}))}o("update:modelValue",g.value),o("slide-end",{currentSlideIndex:g.value,prevSlideIndex:d.value,slidesCount:p.value}),B.value=!1,O()},c.transition))}function T(){E(g.value+c.itemsToScroll)}function N(){E(g.value-c.itemsToScroll)}const $={slideTo:E,next:T,prev:N};t.provide("nav",$),t.provide("isSliding",B);const z=t.computed(()=>ap({config:c,currentSlide:g.value,slidesCount:p.value}));t.provide("slidesToScroll",z);const D=t.computed(()=>{const b=c.dir==="rtl"?-1:1,V=z.value*l.value*b;return{transform:`translateX(${j.x-V}px)`,transition:`${B.value?c.transition:0}ms`,margin:c.wrapAround?`0 -${p.value*l.value}px`:"",width:"100%"}});function W(){v(),U(),se(),X(),O()}Object.keys(_r).forEach(b=>{["modelValue"].includes(b)||t.watch(()=>e[b],W)}),t.watch(()=>e.modelValue,b=>{b!==g.value&&E(Number(b))}),t.watch(p,se),o("before-init"),v();const K={config:c,slidesCount:p,slideWidth:l,next:T,prev:N,slideTo:E,currentSlide:g,maxSlide:f,minSlide:y,middleSlide:h};n({updateBreakpointsConfigs:U,updateSlidesData:se,updateSlideWidth:X,initDefaultConfigs:v,restartCarousel:W,slideTo:E,next:T,prev:N,nav:$,data:K});const ge=a.default||a.slides,ye=a.addons,je=t.reactive(K);return()=>{const b=Sr(ge==null?void 0:ge(je)),V=(ye==null?void 0:ye(je))||[];b.forEach((we,_e)=>we.props.index=_e);let x=b;if(c.wrapAround){const we=b.map((Se,oe)=>t.cloneVNode(Se,{index:-b.length+oe,isClone:!0,key:`clone-before-${oe}`})),_e=b.map((Se,oe)=>t.cloneVNode(Se,{index:b.length+oe,isClone:!0,key:`clone-after-${oe}`}));x=[...we,...b,..._e]}s.value=b,p.value=Math.max(b.length,1);const M=t.h("ol",{class:"carousel__track",style:D.value,onMousedownCapture:c.mouseDrag?Ve:null,onTouchstartPassiveCapture:c.touchDrag?Ve:null},x),be=t.h("div",{class:"carousel__viewport"},M);return t.h("section",{ref:r,class:{carousel:!0,"is-sliding":B.value,"is-dragging":re.value,"is-hover":te.value,"carousel--rtl":c.dir==="rtl"},dir:c.dir,"aria-label":c.i18n.ariaGallery,tabindex:"0",onMouseenter:Ue,onMouseleave:He},[be,V,t.h(sp)])}}}),kr;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(kr||(kr={}));var cp=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const o=t.inject("config",t.reactive(Object.assign({},Y))),n=t.inject("currentSlide",t.ref(0)),i=t.inject("slidesToScroll",t.ref(0)),r=t.inject("isSliding",t.ref(!1)),s=()=>e.index===n.value,l=()=>e.index===n.value-1,p=()=>e.index===n.value+1,c=()=>{const m=Math.floor(i.value),u=Math.ceil(i.value+o.itemsToShow-1);return e.index>=m&&e.index<=u};return()=>{var m;return t.h("li",{style:{width:`${100/o.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":c(),"carousel__slide--active":s(),"carousel__slide--prev":l(),"carousel__slide--next":p(),"carousel__slide--sliding":r.value},"aria-hidden":!c()},(m=a.default)===null||m===void 0?void 0:m.call(a))}}});const dp=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},mp=e=>(t.pushScopeId("data-v-dd3cbf69"),e=e(),t.popScopeId(),e),pp={class:"gsc-carousel"},up={key:0},hp=mp(()=>t.createElementVNode("div",null,"no hay",-1)),fp=[hp],gp={class:"gsc-carousel__2d__slides"},yp={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},bp=["fill"],wp={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_p=["fill"],Sp={class:"gsc-carousel__2d__navigation"},kp={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Cp=["stroke"],Bp={key:1,class:"gsc-carousel__2d__navigation__pagination"},Ep=["onClick"],Np={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},xp=["stroke"],Tp={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:a,emit:o}){const n=e;t.useCssVars(f=>({"0d808f0f":e.slideLeftArrowBackgroundImage,"1e0ef2e5":e.slidesArrowsLeftAndRight,"66d12b5c":e.slideRightArrowBackgroundImage,"2b22a85a":e.marginTop,"1a842b02":e.secondarySlidesOpacity}));const i=t.ref(null),r=t.ref({}),s=t.ref(0),l=t.ref(!1);t.watch(i,f=>{f&&l.value?(l.value=!1,p(n.items)):f&&f.slideTo&&f.slideTo(s.value)},{deep:!0}),t.watch(()=>n.currentItemIndex,f=>{s.value!==f&&g(f)}),t.watch(()=>n.items,f=>{i.value?p(f):l.value=!0},{immediate:!0});function p(f){if(f&&f.length&&i.value){if(n.defaultItemByProp){const y=n.items.findIndex(C=>C[n.defaultItemByProp.propName]===n.defaultItemByProp.value);y!==-1?(s.value=y,r.value=f[y]):(s.value=0,r.value=f[0])}else s.value=n.defaultItemByIndex,r.value=f[n.defaultItemByIndex];i.value.slideTo&&i.value.slideTo(s.value),o("input",{selectedItem:r.value,selectedItemIndex:s.value})}}function c(){i.value&&i.value.next()}function m(){i.value&&i.value.prev()}function u(){i.value&&i.value.updateSlideWidth()}function g(f){i.value&&i.value.slideTo(f)}function d(f){i.value.slideTo(f)}function h(f){const y=f.slidingToIndex<0?n.items.length-1:f.slidingToIndex===n.items.length?0:f.slidingToIndex;s.value=y,r.value=n.items[y],o("update:currentItemIndex",y),o("input",{selectedItem:r.value,selectedItemIndex:s.value})}return a({prev:m,next:c,updateSlideWidth:u,slideTo:g}),(f,y)=>(t.openBlock(),t.createElementBlock("div",pp,[n.is3d?(t.openBlock(),t.createElementBlock("div",up,fp)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",gp,[t.createVNode(t.unref(lp),{ref_key:"carousel2d",ref:i,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:h},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(C,A)=>(t.openBlock(),t.createBlock(t.unref(cp),{key:A},{default:t.withCtx(()=>[t.renderSlot(f.$slots,"default",{item:C},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",onClick:y[0]||(y[0]=C=>i.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",yp,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:e.arrowsColor},null,8,bp)]))],2)])):t.createCommentVNode("",!0),e.areSlidesArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",onClick:y[1]||(y[1]=C=>c())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",wp,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:e.arrowsColor},null,8,_p)]))],2)])):t.createCommentVNode("",!0),t.createElementVNode("div",Sp,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:y[2]||(y[2]=C=>m())},[(t.openBlock(),t.createElementBlock("svg",kp,[t.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:n.arrowsColor},null,8,Cp)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",Bp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(C,A)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${A}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${n.navigationHeight}px`,width:`${s.value===A?n.navigationActiveWidth:n.navigationActiveWidth/2}px`,borderRadius:`${n.navigationBorderRadius}px`,backgroundColor:`${s.value===A?n.navigationActiveColor:n.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:v=>d(A)},null,12,Ep))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:y[3]||(y[3]=C=>i.value.next())},[(t.openBlock(),t.createElementBlock("svg",Np,[t.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:n.arrowsColor},null,8,xp)]))])):t.createCommentVNode("",!0)])],2))]))}},Op=dp(Tp,[["__scopeId","data-v-dd3cbf69"]]),Vp=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},Zo={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},Cr=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},Br=Zo.setup;Zo.setup=Br?(e,a)=>(Cr(),Br(e,a)):Cr;const $p=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),Ap=["src"],zp={key:1,class:"text"},Rp=["src"],Ip={class:"stats"},Fp=$p(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),Pp={class:"numstats"},Lp={class:"leyend"};function Dp(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",null,[o.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",i.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([r.customStyle,i.status&&o.typeOnOff&&r.customActive]),onClick:a[0]||(a[0]=(...s)=>r.btnClick&&r.btnClick(...s))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,Ap)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",zp,t.toDisplayString(o.textValue),1)):t.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,Rp)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...s)=>r.btnClick&&r.btnClick(...s))},[t.createElementVNode("div",Ip,[Fp,t.createElementVNode("div",Pp,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",Lp,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const Mp=Vp(Zo,[["render",Dp],["__scopeId","data-v-fb269a1e"]]),jp={class:"gsc-dropdown__main-container__item-selected"},vp=["height","width"],Wp=["stroke"],Up={class:"gsc-dropdown__items-container"},Hp=["onClick"],Gp={key:0,class:"gsc-dropdown__items-footer"},Jp={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:a}){const o=e,n=t.ref({}),i=t.ref(null),r=t.ref(o.isMultipleOption?-1:0),s=t.ref(!1);t.watch(()=>o.items,(d,h)=>{if(!o.modelValue&&(!o.onlyFirstTime||!h||!h.length)&&d&&d.length){if(o.defaultItemByProp){const f=o.items.findIndex(y=>y[o.defaultItemByProp.propName]===o.defaultItemByProp.value);f!==-1?(r.value=f,n.value=d[f]):(r.value=0,n.value=d[0])}else n.value=d[o.defaultItemByIndex];a("input",n.value)}},{immediate:!0}),t.watch(()=>o.modelValue,d=>{if(d){const h=o.items.findIndex(f=>typeof d=="object"?JSON.stringify(f)===JSON.stringify(d):f===d);h!==-1&&(r.value=h,n.value=o.items[h],a("update:modelValue",n.value))}},{immediate:!0});const l=t.computed(()=>({height:o.height,width:o.width,backgroundColor:o.backgroundColor,borderRadius:`${o.borderRadius}px`,border:`${o.borderType} ${o.borderWidth}px ${o.borderColor}`,color:o.color,"--hover-background-color":o.hoverBackgroundColor,"--list-item-padding":o.listItemPadding,"--list-background-color":o.listBackgroundColor,"--list-height":o.listHeight,"--list-item-selected-color":o.listItemSelectedColor,"--list-item-selected-background-color":o.listItemSelectedBackgroundColor,"--list-item-color":o.listItemColor,"--list-border-radius":`${o.listBorderRadius}`,"--list-border-color":o.listBorderColor,"--list-width":o.isListSameWidth?o.width:"fit-content","--list-border-width":`${o.listBorderWidth}px`,"--footer-border":`${o.footerBorderWidth}px solid ${o.footerBorderColor}`,"--dropdown-opacity":o.isDisabled?"0.5":"1","--dropdown-cursor":o.isDisabled?"not-allowed":"pointer","--dropdown-font-size":o.fontSize?o.fontSize:"14px"})),p=t.computed(()=>({height:`${o.arrowHeight}px`,width:`${o.arrowWidth}px`}));function c(){o.isDisabled||(s.value=!s.value)}function m(d){i.value&&!i.value.contains(d.target)&&(s.value=!1)}function u(d,h){o.isMultipleOption?r.value=-1:(r.value=h,s.value=!1),n.value=d,a("input",n.value),a("update:modelValue",n.value)}function g(){s.value=!1,a("click-ready")}return t.onMounted(()=>{document.addEventListener("click",m)}),t.onBeforeMount(()=>{document.removeEventListener("click",m)}),(d,h)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:i,class:"gsc-dropdown",style:t.normalizeStyle(l.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:c},[t.createElementVNode("div",jp,[t.renderSlot(d.$slots,"default",{selectedItem:n.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":s.value}]),style:t.normalizeStyle(p.value)},[(t.openBlock(),t.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,Wp)],8,vp))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",Up,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${o.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(f,y)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:y===r.value}]),key:y,onClick:C=>u(f,y)},[t.renderSlot(d.$slots,"availableItem",{item:f})],10,Hp))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",Gp,[t.createVNode(t.unref(Mp),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:g})])):t.createCommentVNode("",!0)])],512),[[t.vShow,s.value]])]),_:3})],4))}},qp=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},Zp={class:"tournament-select__selected-tournament"},Xp={class:"tournament-select__selected-tournament__logo"},Kp=["src"],Yp={class:"tournament-select__selected-tournament__name"},Qp={__name:"GSCTournamentSelect",props:{apiUrl:{type:String,default:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments"},fontFamily:{type:String,default:"Poppins-Light"},logosUrl:{type:String,default:"https://az755631.vo.msecnd.net/todoelfut/"},logoFileType:{type:String,default:"png"},height:{type:String,default:"40px"},width:{type:String,default:"179px"},borderRadius:{type:Number,default:8},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},backgroundColor:{type:String,default:"#0d1d29"},color:{type:String,default:"white"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},currentSeasonId:{type:Number,default:0}},emits:["input"],setup(e,{emit:a}){const o=e,n=t.ref([]),i=t.computed(()=>{const u={};return o.fontFamily&&(u["font-family"]=`${o.fontFamily}`),u}),r=t.computed(()=>n.value.find(u=>u.seasonsIds.has(o.currentSeasonId))||n.value[0]);async function s(){try{if(o.items&&o.items.length)n.value=[...o.items];else if(o.apiUrl){const u=await p();n.value=u.map(g=>({...g.tournament,seasons:g.seasons,seasonsIds:g.seasons.reduce((d,h)=>(d.add(h.id),d),new Set)})).sort((g,d)=>g.order-d.order)}}catch(u){throw new Error(u)}}function l(u){const g=new XMLHttpRequest,d=`${o.logosUrl}${u}.${o.logoFileType}`;return g.open("HEAD",d,!1),g.send(),g.status!==404}async function p(){try{return(await fetch(o.apiUrl)).json()}catch(u){return Promise.reject(u)}}function c(u){a("input",u)}function m(u){a("input",u)}return t.onMounted(()=>{s()}),(u,g)=>(t.openBlock(),t.createElementBlock("div",{class:"tournament-select",style:t.normalizeStyle(i.value)},[t.createVNode(t.unref(Jp),t.mergeProps(o,{"model-value":r.value,items:n.value,onInput:c,"onUpdate:modelValue":m}),{default:t.withCtx(({selectedItem:d})=>[t.createElementVNode("div",Zp,[t.createElementVNode("div",Xp,[l(d.id)?(t.openBlock(),t.createElementBlock("img",{key:0,src:`${o.logosUrl}${d.id}.${o.logoFileType}`,alt:""},null,8,Kp)):t.createCommentVNode("",!0)]),t.createElementVNode("div",Yp,t.toDisplayString(d.name),1)])]),availableItem:t.withCtx(({item:d})=>[t.createElementVNode("div",null,t.toDisplayString(d.name),1)]),_:1},16,["model-value","items"])],4))}},eu=qp(Qp,[["__scopeId","data-v-355af272"]]),tu=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},Xo={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},Er=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},Nr=Xo.setup;Xo.setup=Nr?(e,a)=>(Er(),Nr(e,a)):Er;const ou=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),au=["src"],nu={key:1,class:"text"},ru=["src"],iu={class:"stats"},su=ou(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),lu={class:"numstats"},cu={class:"leyend"};function du(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",null,[o.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",i.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([r.customStyle,i.status&&o.typeOnOff&&r.customActive]),onClick:a[0]||(a[0]=(...s)=>r.btnClick&&r.btnClick(...s))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,au)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",nu,t.toDisplayString(o.textValue),1)):t.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,ru)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...s)=>r.btnClick&&r.btnClick(...s))},[t.createElementVNode("div",iu,[su,t.createElementVNode("div",lu,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",cu,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const mu=tu(Xo,[["render",du],["__scopeId","data-v-fb269a1e"]]),pu={class:"gsc-dropdown__main-container__item-selected"},uu=["height","width"],hu=["stroke"],fu={class:"gsc-dropdown__items-container"},gu=["onClick"],yu={key:0,class:"gsc-dropdown__items-footer"},bu={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:a}){const o=e,n=t.ref({}),i=t.ref(null),r=t.ref(o.isMultipleOption?-1:0),s=t.ref(!1);t.watch(()=>o.items,(d,h)=>{if(!o.modelValue&&(!o.onlyFirstTime||!h||!h.length)&&d&&d.length){if(o.defaultItemByProp){const f=o.items.findIndex(y=>y[o.defaultItemByProp.propName]===o.defaultItemByProp.value);f!==-1?(r.value=f,n.value=d[f]):(r.value=0,n.value=d[0])}else n.value=d[o.defaultItemByIndex];a("input",n.value)}},{immediate:!0}),t.watch(()=>o.modelValue,d=>{if(d){const h=o.items.findIndex(f=>typeof d=="object"?JSON.stringify(f)===JSON.stringify(d):f===d);h!==-1&&(r.value=h,n.value=o.items[h],a("update:modelValue",n.value))}},{immediate:!0});const l=t.computed(()=>({height:o.height,width:o.width,backgroundColor:o.backgroundColor,borderRadius:`${o.borderRadius}px`,border:`${o.borderType} ${o.borderWidth}px ${o.borderColor}`,color:o.color,"--hover-background-color":o.hoverBackgroundColor,"--list-item-padding":o.listItemPadding,"--list-background-color":o.listBackgroundColor,"--list-height":o.listHeight,"--list-item-selected-color":o.listItemSelectedColor,"--list-item-selected-background-color":o.listItemSelectedBackgroundColor,"--list-item-color":o.listItemColor,"--list-border-radius":`${o.listBorderRadius}`,"--list-border-color":o.listBorderColor,"--list-width":o.isListSameWidth?o.width:"fit-content","--list-border-width":`${o.listBorderWidth}px`,"--footer-border":`${o.footerBorderWidth}px solid ${o.footerBorderColor}`,"--dropdown-opacity":o.isDisabled?"0.5":"1","--dropdown-cursor":o.isDisabled?"not-allowed":"pointer","--dropdown-font-size":o.fontSize?o.fontSize:"14px"})),p=t.computed(()=>({height:`${o.arrowHeight}px`,width:`${o.arrowWidth}px`}));function c(){o.isDisabled||(s.value=!s.value)}function m(d){i.value&&!i.value.contains(d.target)&&(s.value=!1)}function u(d,h){o.isMultipleOption?r.value=-1:(r.value=h,s.value=!1),n.value=d,a("input",n.value),a("update:modelValue",n.value)}function g(){s.value=!1,a("click-ready")}return t.onMounted(()=>{document.addEventListener("click",m)}),t.onBeforeMount(()=>{document.removeEventListener("click",m)}),(d,h)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:i,class:"gsc-dropdown",style:t.normalizeStyle(l.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:c},[t.createElementVNode("div",pu,[t.renderSlot(d.$slots,"default",{selectedItem:n.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":s.value}]),style:t.normalizeStyle(p.value)},[(t.openBlock(),t.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,hu)],8,uu))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",fu,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${o.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(f,y)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:y===r.value}]),key:y,onClick:C=>u(f,y)},[t.renderSlot(d.$slots,"availableItem",{item:f})],10,gu))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",yu,[t.createVNode(t.unref(mu),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:g})])):t.createCommentVNode("",!0)])],512),[[t.vShow,s.value]])]),_:3})],4))}},wu=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},_u={class:"season-name"},Su={class:"items-list-season"},ku={__name:"GSC-SeasonSelect",props:{seasons:{type:Array,default:()=>[]},currentSeasonId:{type:Number,default:0}},emits:["input"],setup(e,{emit:a}){const o=e,n=t.computed(()=>o.seasons.find(s=>s.id===o.currentSeasonId));function i(s){a("input",s)}function r(s){a("input",s)}return(s,l)=>(t.openBlock(),t.createBlock(t.unref(bu),{items:e.seasons,"model-value":n.value,height:"40px",width:"179px","background-color":"#0d1d29",color:"white","border-color":"rgba(255, 255, 255, 0.2)","font-family":"Poppins-Regular","border-radius":8,onInput:r,"onUpdate:modelValue":i},{default:t.withCtx(({selectedItem:p})=>[t.createElementVNode("div",_u,[t.createElementVNode("span",null,t.toDisplayString(p.name),1)])]),availableItem:t.withCtx(({item:p})=>[t.createElementVNode("span",Su,t.toDisplayString(p.name),1)]),_:1},8,["items","model-value"]))}},Cu=wu(ku,[["__scopeId","data-v-3a11087d"]]);function Bu(e){const a=t.ref({width:0,height:0});function o(){const n=e.value.getBoundingClientRect();a.value.width=n.width,a.value.height=n.height}return t.onMounted(()=>{o(),window.addEventListener("resize",o)}),t.onUnmounted(()=>{window.removeEventListener("resize",o)}),{elementSize:a}}const Eu=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},Nu={components:{GSCFilterperteam:nm,GSCTableperteam:Fm,GSCDropdown:ep,GSCCarousel:Op,GSCTournamentSelect:eu,GSCSeasonSelect:Cu},computed:{customStyle(){return{backgroundColor:this.background,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,height:this.height}},customStyleLanding(){return{boxShadow:"0px 4px 20px 0px rgba(0, 0, 0, 0.25)",backgroundColor:this.background,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,height:this.height,borderRadius:"9px"}},customStyleTitle(){return{color:this.colortitle}}},props:{season:{type:Number},currentSeasonId:{type:Number,default:0},awaitForSeason:{type:Boolean,default:!0},type:{type:Number,default:0},teamperpage:{type:Number,default:5},background:{type:String,default:"#0d1d29"},borderRadius:{type:String,default:"8px"},borderWidth:{type:Number,default:0},borderColor:{type:String,default:"#0d1d29"},borderType:{type:String,default:"solid"},height:{type:String,default:"auto"},colortitle:{type:String,default:"#FFFFFF"},isPaginationVisible:{type:Boolean,default:!1}},setup(){const e=t.ref("myDivRef"),{elementSize:a}=Bu(e);return{myDivRef:e,elementSize:a}},data(){return{url:"https://jfxv8fqkn3.execute-api.us-west-2.amazonaws.com/prod/generalTable/",tournamentsUrl:"https://17zyhpyc7c.execute-api.us-west-2.amazonaws.com/prod/tournaments",tournaments:[],tournamentSelected:{seasons:[]},seasonSelected:{},retries:3,tableData:null,tableFull:!0,flaghideShow:!0,showNum:6,seasonSelect:0,teamselect:0,arrayTournaments:[],arraySeasons:{},seasonBytournament:[],teams:[],pagesteams:[],token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},watch:{currentSeasonId:{async handler(e,a){this.type==1&&e!==0&&e!==a&&await this.getTableList(this.currentSeasonId)},immediate:!0}},async created(){try{const e=await this.fetchTournaments(3);this.tournaments=e.map(a=>({...a.tournament,seasons:a.seasons}));for(const a in e){this.arrayTournaments.push({id:e[a].tournament.id,name:e[a].tournament.name}),this.arraySeasons[e[a].tournament.id]={};for(const o in e[a].seasons)this.arraySeasons[e[a].tournament.id][" "+e[a].seasons[o].id]={},this.arraySeasons[e[a].tournament.id][" "+e[a].seasons[o].id].id=e[a].seasons[o].id,this.arraySeasons[e[a].tournament.id][" "+e[a].seasons[o].id].name=e[a].seasons[o].name}if(this.type==1)if(this.currentSeasonId===0){const a=e.find(o=>o._id===1).seasons[0];await this.getTableList(a.id)}else await this.getTableList(this.currentSeasonId)}catch(e){throw new Error(e)}},methods:{setOpenMedia(e){const a={1e3:[12,55,"35_r","54_r"],1001:["57_r","326_r","56_r","60_r","59_r","55_r",35,54],0:[]},o=[1,2,3],n=a[e.category]||[];let i={seasonId:this.seasonSelect,tournaments:this.tournaments,mainSectionType:1,playListType:e.playListType,categoryIds:n,gameIds:null,playerIds:[],teamId:e.team,matchResult:e.matchResult?[e.matchResult]:o,isRivalSubject:e.isRivalSubject,playData:{},advancedFilter:{playListTitle:e.title}};e.category!==0&&(i.advancedFilter.mainCategoryId=e.category),this.$emit("openmedia",i)},openTableProfile(e){const a={team:e,season:this.seasonSelect};this.$emit("openTableProfile",a)},clickAll(e){this.teamselect=e},clickTeam(e){this.teamselect=e},onInputTournament(e){this.tournamentSelected.id!==e.id&&(this.tournamentSelected=e)},async onInputSeason(e){this.seasonSelected!==e.id&&(this.seasonSelected=e.id,this.$emit("change-season-id",e.id),await this.getTableList(e.id))},async getTableList(e){try{this.seasonSelect=e,this.teams=[];const a=await mr.create({headers:{Authorization:`${this.token}`}}).get(this.url+e);if(this.tableData=a.data.data,this.pagesteams=[],this.teamperpage>0){let o=[];this.tableData.forEach((n,i)=>{o.push(n),(i+1)%this.teamperpage===0&&(this.pagesteams.push([...o]),o=[])}),o.length&&this.pagesteams.push([...o])}for(let o=0;o<this.tableData.length;o++)this.teams.push({id:this.tableData[o].team_id,team:this.tableData[o].team_name,logo:this.tableData[o].team_logo});this.teams.sort((o,n)=>{const i=o.team.toUpperCase(),r=n.team.toUpperCase();return i<r?-1:i>r?1:0})}catch(a){return Promise.reject(a)}},async fetchTournaments(){const e=mr.create({headers:{Authorization:`${this.token}`}}),{data:a}=await e.get(this.tournamentsUrl);return a}}},xu=e=>(t.pushScopeId("data-v-871f6068"),e=e(),t.popScopeId(),e),Tu={class:"gsc-generaltable__container"},Ou=xu(()=>t.createElementVNode("div",{class:"gsc-generaltable__row-sep"},[t.createElementVNode("div",{class:"gsc-generaltable__row-sep__line"})],-1)),Vu={key:1,class:"carousel-table-landing"},$u={class:"row-table-carrousel"};function Au(e,a,o,n,i,r){const s=t.resolveComponent("GSCTournamentSelect"),l=t.resolveComponent("GSCSeasonSelect"),p=t.resolveComponent("GSCFilterperteam"),c=t.resolveComponent("GSCTableperteam"),m=t.resolveComponent("GSCCarousel");return t.openBlock(),t.createElementBlock("div",{class:"gsc-generaltable",style:t.normalizeStyle(o.type==0?r.customStyle:r.customStyleLanding),ref:"myDivRef"},[o.type==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-generaltable__row-toolbar",n.elementSize.width<590?"style-display":""])},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-generaltable__row-toolbar__title",n.elementSize.width<768?"style-auto":""]),style:t.normalizeStyle(r.customStyleTitle)}," Tabla General ",6),t.createElementVNode("div",{class:t.normalizeClass(["gsc-generaltable__row-toolbar__selectors",n.elementSize.width<768&&n.elementSize.width>590?"style-auto":n.elementSize.width<590?"width-100":""])},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-generaltable__row-toolbar__selectors__tournaments",n.elementSize.width<590&&n.elementSize.width>=420?"width-50":n.elementSize.width<420?"width-30":""])},[t.createVNode(s,{"current-season-id":o.currentSeasonId,onInput:r.onInputTournament},null,8,["current-season-id","onInput"])],2),t.createElementVNode("div",{class:t.normalizeClass(["gsc-generaltable__row-toolbar__selectors__seasons",n.elementSize.width<590&&n.elementSize.width>=420?"width-50":n.elementSize.width<420?"width-30":""])},[t.createVNode(l,{"current-season-id":o.currentSeasonId,seasons:i.tournamentSelected.seasons,onInput:r.onInputSeason},null,8,["current-season-id","seasons","onInput"])],2)],2)],2),t.createElementVNode("div",Tu,[t.createVNode(p,{data:i.teams,"background-color":"none","contain-border-radius":"8px",onClickTeam:r.clickTeam,onClickAll:r.clickAll},null,8,["data","onClickTeam","onClickAll"]),Ou,i.tableData?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(i.tableData,(u,g)=>(t.openBlock(),t.createBlock(c,{key:g,onOpenmedia:r.setOpenMedia,onOpenTableProfile:r.openTableProfile,isheader:g==0,"background-color":i.teamselect!=0&&i.teamselect==u.team_id?"rgba(30, 60, 81, 0.5)":g%2===0?"#172531":"#0d1d29",data:u},null,8,["onOpenmedia","onOpenTableProfile","isheader","background-color","data"]))),128)):t.createCommentVNode("",!0)])],64)):(t.openBlock(),t.createElementBlock("div",Vu,[t.createVNode(m,{isPaginationVisible:o.isPaginationVisible,items:i.pagesteams},{default:t.withCtx(({item:u})=>[t.createElementVNode("div",$u,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u,(g,d)=>(t.openBlock(),t.createBlock(c,{key:d,onOpenmedia:r.setOpenMedia,onOpenTableProfile:r.openTableProfile,"is-games":!1,ItemHeight:"60px",teamSelected:1,isheader:d==0,"background-color":i.teamselect!=0&&i.teamselect==g.team_id?"rgba(30, 60, 81, 0.5)":d%2===0?"#172531":"#0d1d29",data:g},null,8,["onOpenmedia","onOpenTableProfile","isheader","background-color","data"]))),128))])]),_:1},8,["isPaginationVisible","items"])]))],4)}const zu=Eu(Nu,[["render",Au],["__scopeId","data-v-871f6068"]]);function Ru(e){const a=t.ref({width:0,height:0});function o(){const n=e.value.getBoundingClientRect();a.value.width=n.width,a.value.height=n.height}return t.onMounted(()=>{o(),window.addEventListener("resize",o)}),t.onUnmounted(()=>{window.removeEventListener("resize",o)}),{elementSize:a}}const Iu=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},Ko={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,a=this.$refs.content.scrollWidth;a>0&&e>0&&(a>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},xr=()=>{t.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},Tr=Ko.setup;Ko.setup=Tr?(e,a)=>(xr(),Tr(e,a)):xr;const Fu={ref:"gscScrollableContainer",class:"scrollable-container"},Pu={class:"scrollable-arrows"},Lu=["width","height","viewBox"],Du=["stroke"],Mu={class:"scrollable-wrapper"},ju={class:"scrollable-arrows"},vu=["width","height","viewBox"],Wu=["stroke"];function Uu(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",Fu,[o.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",r.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...s)=>r.scrollLeft&&r.scrollLeft(...s))},[t.createElementVNode("div",Pu,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:r.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:o.arrowsColor},null,8,Du)],8,Lu))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:a[1]||(a[1]=(...s)=>r.getScroll&&r.getScroll(...s))},[t.createElementVNode("div",Mu,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),o.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",r.hideShowRightArrow]),onClick:a[2]||(a[2]=(...s)=>r.scrollRight&&r.scrollRight(...s))},[t.createElementVNode("div",ju,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:r.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:o.arrowsColor},null,8,Wu)],8,vu))])],2)):t.createCommentVNode("",!0)],512)}const Hu=Iu(Ko,[["render",Uu],["__scopeId","data-v-b548a08d"]]),Gu=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},Yo={components:{GSCSlider:Hu},props:{arrow:{type:Boolean,required:!0},buttons:{type:Array,required:!0},width:{type:String,default:"300px"},height:{type:String,default:"80px"},fontSize:{type:String,default:"16px"},colorFont:{type:String,default:"#ffffff"},backgroundOptionActive:{type:String,default:"#0d1d29"},colorOptionActive:{type:String,default:"#cbee6b"},colorOptionDisable:{type:String,default:"gray"},backgroundOptionDisable:{type:String,default:"#0d1d29"},fontFamily:{type:String,default:"Poppins-Semibold"},borderWidth:{type:String,default:"3px"},borderRadius:{type:String,default:"0px"},selectedOption:{type:String,default:""},type:{type:Number,default:0},borderWidthContainer:{type:String,default:"1px"},background:{type:String,default:"#0d1d29"},borderColorContainer:{type:String,default:"#505355"},pxScroll:{type:Number,default:100},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},arrowsScrollHide:{type:Boolean,default:!1},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"}},setup(){const e=t.ref("myDivRef"),{elementSize:a}=Ru(e);return{myDivRef:e,elementSize:a}},methods:{clickEmitEvent(e){this.$emit("input",e)},customGrid(e){var a={};return e.width>768?a={fontSize:"16px"}:e.width>480?a={fontSize:"14px"}:a={fontSize:"12px"},a}}},Or=()=>{t.useCssVars(e=>({cff4a118:e.fontSize,"42aab7f6":e.borderWidth,d29bcbd2:e.fontFamily,df6c5a9c:e.background,"09b32862":e.borderRadius,"8c0d6daa":e.borderWidthContainer,e8a86fa4:e.borderColorContainer,"179494da":e.colorOptionActive,cea5647c:e.width}))},Vr=Yo.setup;Yo.setup=Vr?(e,a)=>(Or(),Vr(e,a)):Or;const Ju={ref:"myDivRef"},qu={key:0,class:"gs-switch-container"},Zu=["onClick"],Xu={key:1,class:"gs-switch-container-type"},Ku=["onClick"],Yu={key:2,class:"gs-switch-container-carousel"},Qu=["onClick"];function eh(e,a,o,n,i,r){const s=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",Ju,[o.type==0?(t.openBlock(),t.createElementBlock("div",qu,[t.createElementVNode("div",{class:"gs-switch-container__control",style:t.normalizeStyle([r.customGrid(n.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.buttons,(l,p)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container__control__button-option",style:t.normalizeStyle([{height:o.height},o.selectedOption==l?{borderColor:o.colorOptionActive,color:o.colorFont+"!important",background:o.backgroundOptionActive}:{borderColor:o.colorOptionDisable,color:"grey !important"}]),key:p,onClick:c=>(o.selectedOption=l,r.clickEmitEvent(l))},t.toDisplayString(l),13,Zu))),128))],4),t.renderSlot(e.$slots,o.selectedOption,{},void 0,!0)])):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",Xu,[t.createElementVNode("div",{class:"gs-switch-container-type__control",style:t.normalizeStyle([r.customGrid(n.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.buttons,(l,p)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container-type__control__button-option-type",style:t.normalizeStyle([{height:o.height},o.selectedOption==l?{borderColor:o.colorOptionActive,color:o.colorFont+"!important",background:o.backgroundOptionActive}:{borderColor:o.colorOptionDisable,borderWidth:"0px",borderWidth:"0px !important",color:"grey !important",background:o.backgroundOptionDisable}]),key:p,onClick:c=>(o.selectedOption=l,r.clickEmitEvent(l))},t.toDisplayString(l),13,Ku))),128))],4)])):t.createCommentVNode("",!0),o.type==2?(t.openBlock(),t.createElementBlock("div",Yu,[t.createVNode(s,{arrows:o.arrow,"background-color":o.background,"px-scroll":o.pxScroll,"scroll-color":o.scrollColor,"arrows-position":o.arrowsPosition,arrowsScrollHide:o.arrowsScrollHide,"arrows-background":o.arrowsBackground,"arrows-container-bg-l":o.arrowsContainerBgL,"arrows-container-bg-r":o.arrowsContainerBgR,"arrows-margin":o.arrowsMargin,"arrows-radius":o.arrowsRadius,"arrows-border":o.arrowsBorder},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.buttons,(l,p)=>(t.openBlock(),t.createElementBlock("div",{class:"button-option-multi",style:t.normalizeStyle([{height:o.height},o.selectedOption==l?{borderColor:o.colorOptionActive,color:o.colorFont+"!important",background:o.backgroundOptionActive}:{borderColor:o.colorOptionDisable,color:"grey !important"}]),key:p,onClick:c=>(o.selectedOption=l,r.clickEmitEvent(l))},t.toDisplayString(l),13,Qu))),128))]),_:1},8,["arrows","background-color","px-scroll","scroll-color","arrows-position","arrowsScrollHide","arrows-background","arrows-container-bg-l","arrows-container-bg-r","arrows-margin","arrows-radius","arrows-border"])])):t.createCommentVNode("",!0)],512)}const Qo=Gu(Yo,[["render",eh],["__scopeId","data-v-8a86dfaf"]]);function $r(e,a){return function(){return e.apply(a,arguments)}}const{toString:th}=Object.prototype,{getPrototypeOf:ea}=Object,Lt=(e=>a=>{const o=th.call(a);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),Ne=e=>(e=e.toLowerCase(),a=>Lt(a)===e),Dt=e=>a=>typeof a===e,{isArray:Xe}=Array,dt=Dt("undefined");function oh(e){return e!==null&&!dt(e)&&e.constructor!==null&&!dt(e.constructor)&&de(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ar=Ne("ArrayBuffer");function ah(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&Ar(e.buffer),a}const nh=Dt("string"),de=Dt("function"),zr=Dt("number"),Mt=e=>e!==null&&typeof e=="object",rh=e=>e===!0||e===!1,jt=e=>{if(Lt(e)!=="object")return!1;const a=ea(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},ih=Ne("Date"),sh=Ne("File"),lh=Ne("Blob"),ch=Ne("FileList"),dh=e=>Mt(e)&&de(e.pipe),mh=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||de(e.append)&&((a=Lt(e))==="formdata"||a==="object"&&de(e.toString)&&e.toString()==="[object FormData]"))},ph=Ne("URLSearchParams"),uh=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function mt(e,a,{allOwnKeys:o=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),Xe(e))for(n=0,i=e.length;n<i;n++)a.call(null,e[n],n,e);else{const r=o?Object.getOwnPropertyNames(e):Object.keys(e),s=r.length;let l;for(n=0;n<s;n++)l=r[n],a.call(null,e[l],l,e)}}function Rr(e,a){a=a.toLowerCase();const o=Object.keys(e);let n=o.length,i;for(;n-- >0;)if(i=o[n],a===i.toLowerCase())return i;return null}const Ir=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Fr=e=>!dt(e)&&e!==Ir;function ta(){const{caseless:e}=Fr(this)&&this||{},a={},o=(n,i)=>{const r=e&&Rr(a,i)||i;jt(a[r])&&jt(n)?a[r]=ta(a[r],n):jt(n)?a[r]=ta({},n):Xe(n)?a[r]=n.slice():a[r]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&mt(arguments[n],o);return a}const hh=(e,a,o,{allOwnKeys:n}={})=>(mt(a,(i,r)=>{o&&de(i)?e[r]=$r(i,o):e[r]=i},{allOwnKeys:n}),e),fh=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),gh=(e,a,o,n)=>{e.prototype=Object.create(a.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),o&&Object.assign(e.prototype,o)},yh=(e,a,o,n)=>{let i,r,s;const l={};if(a=a||{},e==null)return a;do{for(i=Object.getOwnPropertyNames(e),r=i.length;r-- >0;)s=i[r],(!n||n(s,e,a))&&!l[s]&&(a[s]=e[s],l[s]=!0);e=o!==!1&&ea(e)}while(e&&(!o||o(e,a))&&e!==Object.prototype);return a},bh=(e,a,o)=>{e=String(e),(o===void 0||o>e.length)&&(o=e.length),o-=a.length;const n=e.indexOf(a,o);return n!==-1&&n===o},wh=e=>{if(!e)return null;if(Xe(e))return e;let a=e.length;if(!zr(a))return null;const o=new Array(a);for(;a-- >0;)o[a]=e[a];return o},_h=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&ea(Uint8Array)),Sh=(e,a)=>{const o=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=o.next())&&!n.done;){const i=n.value;a.call(e,i[0],i[1])}},kh=(e,a)=>{let o;const n=[];for(;(o=e.exec(a))!==null;)n.push(o);return n},Ch=Ne("HTMLFormElement"),Bh=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,o,n){return o.toUpperCase()+n}),Pr=(({hasOwnProperty:e})=>(a,o)=>e.call(a,o))(Object.prototype),Eh=Ne("RegExp"),Lr=(e,a)=>{const o=Object.getOwnPropertyDescriptors(e),n={};mt(o,(i,r)=>{let s;(s=a(i,r,e))!==!1&&(n[r]=s||i)}),Object.defineProperties(e,n)},Nh=e=>{Lr(e,(a,o)=>{if(de(e)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const n=e[o];if(de(n)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},xh=(e,a)=>{const o={},n=i=>{i.forEach(r=>{o[r]=!0})};return Xe(e)?n(e):n(String(e).split(a)),o},Th=()=>{},Oh=(e,a)=>(e=+e,Number.isFinite(e)?e:a),oa="abcdefghijklmnopqrstuvwxyz",Dr="0123456789",Mr={DIGIT:Dr,ALPHA:oa,ALPHA_DIGIT:oa+oa.toUpperCase()+Dr},Vh=(e=16,a=Mr.ALPHA_DIGIT)=>{let o="";const{length:n}=a;for(;e--;)o+=a[Math.random()*n|0];return o};function $h(e){return!!(e&&de(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Ah=e=>{const a=new Array(10),o=(n,i)=>{if(Mt(n)){if(a.indexOf(n)>=0)return;if(!("toJSON"in n)){a[i]=n;const r=Xe(n)?[]:{};return mt(n,(s,l)=>{const p=o(s,i+1);!dt(p)&&(r[l]=p)}),a[i]=void 0,r}}return n};return o(e,0)},zh=Ne("AsyncFunction"),Rh=e=>e&&(Mt(e)||de(e))&&de(e.then)&&de(e.catch),S={isArray:Xe,isArrayBuffer:Ar,isBuffer:oh,isFormData:mh,isArrayBufferView:ah,isString:nh,isNumber:zr,isBoolean:rh,isObject:Mt,isPlainObject:jt,isUndefined:dt,isDate:ih,isFile:sh,isBlob:lh,isRegExp:Eh,isFunction:de,isStream:dh,isURLSearchParams:ph,isTypedArray:_h,isFileList:ch,forEach:mt,merge:ta,extend:hh,trim:uh,stripBOM:fh,inherits:gh,toFlatObject:yh,kindOf:Lt,kindOfTest:Ne,endsWith:bh,toArray:wh,forEachEntry:Sh,matchAll:kh,isHTMLForm:Ch,hasOwnProperty:Pr,hasOwnProp:Pr,reduceDescriptors:Lr,freezeMethods:Nh,toObjectSet:xh,toCamelCase:Bh,noop:Th,toFiniteNumber:Oh,findKey:Rr,global:Ir,isContextDefined:Fr,ALPHABET:Mr,generateString:Vh,isSpecCompliantForm:$h,toJSONObject:Ah,isAsyncFn:zh,isThenable:Rh};function P(e,a,o,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),o&&(this.config=o),n&&(this.request=n),i&&(this.response=i)}S.inherits(P,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:S.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const jr=P.prototype,vr={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{vr[e]={value:e}}),Object.defineProperties(P,vr),Object.defineProperty(jr,"isAxiosError",{value:!0}),P.from=(e,a,o,n,i,r)=>{const s=Object.create(jr);return S.toFlatObject(e,s,function(l){return l!==Error.prototype},l=>l!=="isAxiosError"),P.call(s,e.message,a,o,n,i),s.cause=e,s.name=e.name,r&&Object.assign(s,r),s};const Ih=null;function aa(e){return S.isPlainObject(e)||S.isArray(e)}function Wr(e){return S.endsWith(e,"[]")?e.slice(0,-2):e}function Ur(e,a,o){return e?e.concat(a).map(function(n,i){return n=Wr(n),!o&&i?"["+n+"]":n}).join(o?".":""):a}function Fh(e){return S.isArray(e)&&!e.some(aa)}const Ph=S.toFlatObject(S,{},null,function(e){return/^is[A-Z]/.test(e)});function vt(e,a,o){if(!S.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,o=S.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,h){return!S.isUndefined(h[d])});const n=o.metaTokens,i=o.visitor||c,r=o.dots,s=o.indexes,l=(o.Blob||typeof Blob<"u"&&Blob)&&S.isSpecCompliantForm(a);if(!S.isFunction(i))throw new TypeError("visitor must be a function");function p(d){if(d===null)return"";if(S.isDate(d))return d.toISOString();if(!l&&S.isBlob(d))throw new P("Blob is not supported. Use a Buffer instead.");return S.isArrayBuffer(d)||S.isTypedArray(d)?l&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function c(d,h,f){let y=d;if(d&&!f&&typeof d=="object"){if(S.endsWith(h,"{}"))h=n?h:h.slice(0,-2),d=JSON.stringify(d);else if(S.isArray(d)&&Fh(d)||(S.isFileList(d)||S.endsWith(h,"[]"))&&(y=S.toArray(d)))return h=Wr(h),y.forEach(function(C,A){!(S.isUndefined(C)||C===null)&&a.append(s===!0?Ur([h],A,r):s===null?h:h+"[]",p(C))}),!1}return aa(d)?!0:(a.append(Ur(f,h,r),p(d)),!1)}const m=[],u=Object.assign(Ph,{defaultVisitor:c,convertValue:p,isVisitable:aa});function g(d,h){if(!S.isUndefined(d)){if(m.indexOf(d)!==-1)throw Error("Circular reference detected in "+h.join("."));m.push(d),S.forEach(d,function(f,y){(!(S.isUndefined(f)||f===null)&&i.call(a,f,S.isString(y)?y.trim():y,h,u))===!0&&g(f,h?h.concat(y):[y])}),m.pop()}}if(!S.isObject(e))throw new TypeError("data must be an object");return g(e),a}function Hr(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return a[o]})}function na(e,a){this._pairs=[],e&&vt(e,this,a)}const Gr=na.prototype;Gr.append=function(e,a){this._pairs.push([e,a])},Gr.toString=function(e){const a=e?function(o){return e.call(this,o,Hr)}:Hr;return this._pairs.map(function(o){return a(o[0])+"="+a(o[1])},"").join("&")};function Lh(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Jr(e,a,o){if(!a)return e;const n=o&&o.encode||Lh,i=o&&o.serialize;let r;if(i?r=i(a,o):r=S.isURLSearchParams(a)?a.toString():new na(a,o).toString(n),r){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}const qr=class{constructor(){this.handlers=[]}use(a,o,n){return this.handlers.push({fulfilled:a,rejected:o,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){S.forEach(this.handlers,function(o){o!==null&&a(o)})}},Zr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Dh=typeof URLSearchParams<"u"?URLSearchParams:na,Mh=typeof FormData<"u"?FormData:null,jh=typeof Blob<"u"?Blob:null,vh={isBrowser:!0,classes:{URLSearchParams:Dh,FormData:Mh,Blob:jh},protocols:["http","https","file","blob","url","data"]},Xr=typeof window<"u"&&typeof document<"u",Wh=(e=>Xr&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Uh=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Hh=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Xr,hasStandardBrowserEnv:Wh,hasStandardBrowserWebWorkerEnv:Uh},Symbol.toStringTag,{value:"Module"})),xe={...Hh,...vh};function Gh(e,a){return vt(e,new xe.classes.URLSearchParams,Object.assign({visitor:function(o,n,i,r){return xe.isNode&&S.isBuffer(o)?(this.append(n,o.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},a))}function Jh(e){return S.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function qh(e){const a={},o=Object.keys(e);let n;const i=o.length;let r;for(n=0;n<i;n++)r=o[n],a[r]=e[r];return a}function Kr(e){function a(o,n,i,r){let s=o[r++];if(s==="__proto__")return!0;const l=Number.isFinite(+s),p=r>=o.length;return s=!s&&S.isArray(i)?i.length:s,p?(S.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!l):((!i[s]||!S.isObject(i[s]))&&(i[s]=[]),a(o,n,i[s],r)&&S.isArray(i[s])&&(i[s]=qh(i[s])),!l)}if(S.isFormData(e)&&S.isFunction(e.entries)){const o={};return S.forEachEntry(e,(n,i)=>{a(Jh(n),i,o,0)}),o}return null}function Zh(e,a,o){if(S.isString(e))try{return(a||JSON.parse)(e),S.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(o||JSON.stringify)(e)}const ra={transitional:Zr,adapter:["xhr","http"],transformRequest:[function(e,a){const o=a.getContentType()||"",n=o.indexOf("application/json")>-1,i=S.isObject(e);if(i&&S.isHTMLForm(e)&&(e=new FormData(e)),S.isFormData(e))return n&&n?JSON.stringify(Kr(e)):e;if(S.isArrayBuffer(e)||S.isBuffer(e)||S.isStream(e)||S.isFile(e)||S.isBlob(e))return e;if(S.isArrayBufferView(e))return e.buffer;if(S.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let r;if(i){if(o.indexOf("application/x-www-form-urlencoded")>-1)return Gh(e,this.formSerializer).toString();if((r=S.isFileList(e))||o.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return vt(r?{"files[]":e}:e,s&&new s,this.formSerializer)}}return i||n?(a.setContentType("application/json",!1),Zh(e)):e}],transformResponse:[function(e){const a=this.transitional||ra.transitional,o=a&&a.forcedJSONParsing,n=this.responseType==="json";if(e&&S.isString(e)&&(o&&!this.responseType||n)){const i=!(a&&a.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(r){if(i)throw r.name==="SyntaxError"?P.from(r,P.ERR_BAD_RESPONSE,this,null,this.response):r}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:xe.classes.FormData,Blob:xe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};S.forEach(["delete","get","head","post","put","patch"],e=>{ra.headers[e]={}});const ia=ra,Xh=S.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Kh=e=>{const a={};let o,n,i;return e&&e.split(`
|
|
16
|
-
`).forEach(function(
|
|
17
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...
|
|
18
|
-
`+
|
|
19
|
-
`):" "+
|
|
20
|
-
`+
|
|
15
|
+
*/const Te={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"}},Ps={itemsToShow:{default:Te.itemsToShow,type:Number},itemsToScroll:{default:Te.itemsToScroll,type:Number},wrapAround:{default:Te.wrapAround,type:Boolean},throttle:{default:Te.throttle,type:Number},snapAlign:{default:Te.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Te.transition,type:Number},breakpoints:{default:Te.breakpoints,type:Object},autoplay:{default:Te.autoplay,type:Number},pauseAutoplayOnHover:{default:Te.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Te.mouseDrag,type:Boolean},touchDrag:{default:Te.touchDrag,type:Boolean},dir:{default:Te.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Te.i18n,type:Object},settings:{default(){return{}},type:Object}};function ih({config:e,slidesCount:a}){const{snapAlign:t,wrapAround:n,itemsToShow:s=1}=e;if(n)return Math.max(a-1,0);let i;switch(t){case"start":i=a-s;break;case"end":i=a-1;break;case"center":case"center-odd":i=a-Math.ceil((s-.5)/2);break;case"center-even":i=a-Math.ceil(s/2);break;default:i=0;break}return Math.max(i,0)}function sh({config:e,slidesCount:a}){const{wrapAround:t,snapAlign:n,itemsToShow:s=1}=e;let i=0;if(t||s>a)return i;switch(n){case"start":i=0;break;case"end":i=s-1;break;case"center":case"center-odd":i=Math.floor((s-1)/2);break;case"center-even":i=Math.floor((s-2)/2);break;default:i=0;break}return i}function za({val:e,max:a,min:t}){return a<t?e:Math.min(Math.max(e,t),a)}function rh({config:e,currentSlide:a,slidesCount:t}){const{snapAlign:n,wrapAround:s,itemsToShow:i=1}=e;let r=a;switch(n){case"center":case"center-odd":r-=(i-1)/2;break;case"center-even":r-=(i-2)/2;break;case"end":r-=i-1;break}return s?r:za({val:r,max:t-i,min:0})}function Is(e){return e?e.reduce((a,t)=>{var n;return t.type===o.Fragment?[...a,...Is(t.children)]:((n=t.type)===null||n===void 0?void 0:n.name)==="CarouselSlide"?[...a,t]:a},[]):[]}function Fa({val:e,max:a,min:t=0}){return e>a?Fa({val:e-(a+1),max:a,min:t}):e<t?Fa({val:e+(a+1),max:a,min:t}):e}function lh(e,a){let t;return a?function(...n){const s=this;t||(e.apply(s,n),t=!0,setTimeout(()=>t=!1,a))}:e}function ch(e,a){let t;return function(...n){t&&clearTimeout(t),t=setTimeout(()=>{e(...n),t=null},a)}}function dh(e="",a={}){return Object.entries(a).reduce((t,[n,s])=>t.replace(`{${n}}`,String(s)),e)}var mh=o.defineComponent({name:"ARIA",setup(){const e=o.inject("config",o.reactive(Object.assign({},Te))),a=o.inject("currentSlide",o.ref(0)),t=o.inject("slidesCount",o.ref(0));return()=>o.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},dh(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:t.value}))}}),uh=o.defineComponent({name:"Carousel",props:Ps,setup(e,{slots:a,emit:t,expose:n}){var s;const i=o.ref(null),r=o.ref([]),l=o.ref(0),u=o.ref(0),c=o.reactive(Object.assign({},Te));let m=Object.assign({},Te),p;const f=o.ref((s=e.modelValue)!==null&&s!==void 0?s:0),d=o.ref(0),h=o.ref(0),g=o.ref(0),b=o.ref(0);let S,_;o.provide("config",c),o.provide("slidesCount",u),o.provide("currentSlide",f),o.provide("maxSlide",g),o.provide("minSlide",b),o.provide("slideWidth",l);function V(){p=Object.assign({},e.breakpoints),m=Object.assign(Object.assign(Object.assign({},m),e),{i18n:Object.assign(Object.assign({},m.i18n),e.i18n),breakpoints:void 0}),H(m)}function z(){if(!p||!Object.keys(p).length)return;const w=Object.keys(p).map(x=>Number(x)).sort((x,D)=>+D-+x);let T=Object.assign({},m);w.some(x=>{const D=window.matchMedia(`(min-width: ${x}px)`).matches;return D&&(T=Object.assign(Object.assign({},T),p[x])),D}),H(T)}function H(w){Object.entries(w).forEach(([T,x])=>c[T]=x)}const ee=ch(()=>{z(),W()},16);function W(){if(!i.value)return;const w=i.value.getBoundingClientRect();l.value=w.width/c.itemsToShow}function le(){u.value<=0||(h.value=Math.ceil((u.value-1)/2),g.value=ih({config:c,slidesCount:u.value}),b.value=sh({config:c,slidesCount:u.value}),c.wrapAround||(f.value=za({val:f.value,max:g.value,min:b.value})))}o.onMounted(()=>{o.nextTick(()=>W()),setTimeout(()=>W(),1e3),z(),Ie(),window.addEventListener("resize",ee,{passive:!0}),t("init")}),o.onUnmounted(()=>{_&&clearTimeout(_),S&&clearInterval(S),window.removeEventListener("resize",ee,{passive:!0})});let $=!1;const ae={x:0,y:0},ie={x:0,y:0},U=o.reactive({x:0,y:0}),se=o.ref(!1),de=o.ref(!1),Ue=()=>{se.value=!0},He=()=>{se.value=!1};function $e(w){["INPUT","TEXTAREA","SELECT"].includes(w.target.tagName)||($=w.type==="touchstart",$||w.preventDefault(),!(!$&&w.button!==0||N.value)&&(ae.x=$?w.touches[0].clientX:w.clientX,ae.y=$?w.touches[0].clientY:w.clientY,document.addEventListener($?"touchmove":"mousemove",Ae,!0),document.addEventListener($?"touchend":"mouseup",Pe,!0)))}const Ae=lh(w=>{de.value=!0,ie.x=$?w.touches[0].clientX:w.clientX,ie.y=$?w.touches[0].clientY:w.clientY;const T=ie.x-ae.x,x=ie.y-ae.y;U.y=x,U.x=T},c.throttle);function Pe(){const w=c.dir==="rtl"?-1:1,T=Math.sign(U.x)*.4,x=Math.round(U.x/l.value+T)*w;if(x&&!$){const D=we=>{we.stopPropagation(),window.removeEventListener("click",D,!0)};window.addEventListener("click",D,!0)}v(f.value-x),U.x=0,U.y=0,de.value=!1,document.removeEventListener($?"touchmove":"mousemove",Ae,!0),document.removeEventListener($?"touchend":"mouseup",Pe,!0)}function Ie(){!c.autoplay||c.autoplay<=0||(S=setInterval(()=>{c.pauseAutoplayOnHover&&se.value||I()},c.autoplay))}function R(){S&&(clearInterval(S),S=null),Ie()}const N=o.ref(!1);function v(w){const T=c.wrapAround?w:za({val:w,max:g.value,min:b.value});f.value===T||N.value||(t("slide-start",{slidingToIndex:w,currentSlideIndex:f.value,prevSlideIndex:d.value,slidesCount:u.value}),N.value=!0,d.value=f.value,f.value=T,_=setTimeout(()=>{if(c.wrapAround){const x=Fa({val:T,max:g.value,min:0});x!==f.value&&(f.value=x,t("loop",{currentSlideIndex:f.value,slidingToIndex:w}))}t("update:modelValue",f.value),t("slide-end",{currentSlideIndex:f.value,prevSlideIndex:d.value,slidesCount:u.value}),N.value=!1,R()},c.transition))}function I(){v(f.value+c.itemsToScroll)}function P(){v(f.value-c.itemsToScroll)}const L={slideTo:v,next:I,prev:P};o.provide("nav",L),o.provide("isSliding",N);const F=o.computed(()=>rh({config:c,currentSlide:f.value,slidesCount:u.value}));o.provide("slidesToScroll",F);const Z=o.computed(()=>{const w=c.dir==="rtl"?-1:1,T=F.value*l.value*w;return{transform:`translateX(${U.x-T}px)`,transition:`${N.value?c.transition:0}ms`,margin:c.wrapAround?`0 -${u.value*l.value}px`:"",width:"100%"}});function ne(){V(),z(),le(),W(),R()}Object.keys(Ps).forEach(w=>{["modelValue"].includes(w)||o.watch(()=>e[w],ne)}),o.watch(()=>e.modelValue,w=>{w!==f.value&&v(Number(w))}),o.watch(u,le),t("before-init"),V();const ce={config:c,slidesCount:u,slideWidth:l,next:I,prev:P,slideTo:v,currentSlide:f,maxSlide:g,minSlide:b,middleSlide:h};n({updateBreakpointsConfigs:z,updateSlidesData:le,updateSlideWidth:W,initDefaultConfigs:V,restartCarousel:ne,slideTo:v,next:I,prev:P,nav:L,data:ce});const Be=a.default||a.slides,xe=a.addons,Re=o.reactive(ce);return()=>{const w=Is(Be==null?void 0:Be(Re)),T=(xe==null?void 0:xe(Re))||[];w.forEach((Se,_e)=>Se.props.index=_e);let x=w;if(c.wrapAround){const Se=w.map((ke,te)=>o.cloneVNode(ke,{index:-w.length+te,isClone:!0,key:`clone-before-${te}`})),_e=w.map((ke,te)=>o.cloneVNode(ke,{index:w.length+te,isClone:!0,key:`clone-after-${te}`}));x=[...Se,...w,..._e]}r.value=w,u.value=Math.max(w.length,1);const D=o.h("ol",{class:"carousel__track",style:Z.value,onMousedownCapture:c.mouseDrag?$e:null,onTouchstartPassiveCapture:c.touchDrag?$e:null},x),we=o.h("div",{class:"carousel__viewport"},D);return o.h("section",{ref:i,class:{carousel:!0,"is-sliding":N.value,"is-dragging":de.value,"is-hover":se.value,"carousel--rtl":c.dir==="rtl"},dir:c.dir,"aria-label":c.i18n.ariaGallery,tabindex:"0",onMouseenter:Ue,onMouseleave:He},[we,T,o.h(mh)])}}}),Rs;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(Rs||(Rs={}));var ph=o.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const t=o.inject("config",o.reactive(Object.assign({},Te))),n=o.inject("currentSlide",o.ref(0)),s=o.inject("slidesToScroll",o.ref(0)),i=o.inject("isSliding",o.ref(!1)),r=()=>e.index===n.value,l=()=>e.index===n.value-1,u=()=>e.index===n.value+1,c=()=>{const m=Math.floor(s.value),p=Math.ceil(s.value+t.itemsToShow-1);return e.index>=m&&e.index<=p};return()=>{var m;return o.h("li",{style:{width:`${100/t.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":c(),"carousel__slide--active":r(),"carousel__slide--prev":l(),"carousel__slide--next":u(),"carousel__slide--sliding":i.value},"aria-hidden":!c()},(m=a.default)===null||m===void 0?void 0:m.call(a))}}});const hh=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},gh=e=>(o.pushScopeId("data-v-dd3cbf69"),e=e(),o.popScopeId(),e),fh={class:"gsc-carousel"},yh={key:0},bh=gh(()=>o.createElementVNode("div",null,"no hay",-1)),wh=[bh],Sh={class:"gsc-carousel__2d__slides"},_h={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},kh=["fill"],Ch={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Eh=["fill"],Bh={class:"gsc-carousel__2d__navigation"},xh={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Nh=["stroke"],Th={key:1,class:"gsc-carousel__2d__navigation__pagination"},vh=["onClick"],Oh={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ah=["stroke"],Vh={__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:t}){const n=e;o.useCssVars(g=>({"0d808f0f":e.slideLeftArrowBackgroundImage,"1e0ef2e5":e.slidesArrowsLeftAndRight,"66d12b5c":e.slideRightArrowBackgroundImage,"2b22a85a":e.marginTop,"1a842b02":e.secondarySlidesOpacity}));const s=o.ref(null),i=o.ref({}),r=o.ref(0),l=o.ref(!1);o.watch(s,g=>{g&&l.value?(l.value=!1,u(n.items)):g&&g.slideTo&&g.slideTo(r.value)},{deep:!0}),o.watch(()=>n.currentItemIndex,g=>{r.value!==g&&f(g)}),o.watch(()=>n.items,g=>{s.value?u(g):l.value=!0},{immediate:!0});function u(g){if(g&&g.length&&s.value){if(n.defaultItemByProp){const b=n.items.findIndex(S=>S[n.defaultItemByProp.propName]===n.defaultItemByProp.value);b!==-1?(r.value=b,i.value=g[b]):(r.value=0,i.value=g[0])}else r.value=n.defaultItemByIndex,i.value=g[n.defaultItemByIndex];s.value.slideTo&&s.value.slideTo(r.value),t("input",{selectedItem:i.value,selectedItemIndex:r.value})}}function c(){s.value&&s.value.next()}function m(){s.value&&s.value.prev()}function p(){s.value&&s.value.updateSlideWidth()}function f(g){s.value&&s.value.slideTo(g)}function d(g){s.value.slideTo(g)}function h(g){const b=g.slidingToIndex<0?n.items.length-1:g.slidingToIndex===n.items.length?0:g.slidingToIndex;r.value=b,i.value=n.items[b],t("update:currentItemIndex",b),t("input",{selectedItem:i.value,selectedItemIndex:r.value})}return a({prev:m,next:c,updateSlideWidth:p,slideTo:f}),(g,b)=>(o.openBlock(),o.createElementBlock("div",fh,[n.is3d?(o.openBlock(),o.createElementBlock("div",yh,wh)):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[o.createElementVNode("div",Sh,[o.createVNode(o.unref(uh),{ref_key:"carousel2d",ref:s,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:h},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.items,(S,_)=>(o.openBlock(),o.createBlock(o.unref(ph),{key:_},{default:o.withCtx(()=>[o.renderSlot(g.$slots,"default",{item:S},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible?(o.openBlock(),o.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",onClick:b[0]||(b[0]=S=>s.value.prev())},[o.createElementVNode("div",{class:o.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(o.openBlock(),o.createElementBlock("svg",_h,[o.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,kh)]))],2)])):o.createCommentVNode("",!0),e.areSlidesArrowsVisible?(o.openBlock(),o.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",onClick:b[1]||(b[1]=S=>c())},[o.createElementVNode("div",{class:o.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(o.openBlock(),o.createElementBlock("svg",Ch,[o.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,Eh)]))],2)])):o.createCommentVNode("",!0),o.createElementVNode("div",Bh,[e.areNavigationArrowsVisible?(o.openBlock(),o.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:b[2]||(b[2]=S=>m())},[(o.openBlock(),o.createElementBlock("svg",xh,[o.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,Nh)]))])):o.createCommentVNode("",!0),e.isPaginationVisible?(o.openBlock(),o.createElementBlock("div",Th,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.items,(S,_)=>(o.openBlock(),o.createElementBlock("div",{key:`i-${_}`,class:"gsc-carousel__2d__navigation__pagination__item",style:o.normalizeStyle({height:`${n.navigationHeight}px`,width:`${r.value===_?n.navigationActiveWidth:n.navigationActiveWidth/2}px`,borderRadius:`${n.navigationBorderRadius}px`,backgroundColor:`${r.value===_?n.navigationActiveColor:n.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:V=>d(_)},null,12,vh))),128))])):o.createCommentVNode("",!0),e.areNavigationArrowsVisible?(o.openBlock(),o.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:b[3]||(b[3]=S=>s.value.next())},[(o.openBlock(),o.createElementBlock("svg",Oh,[o.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,Ah)]))])):o.createCommentVNode("",!0)])],2))]))}},$h=hh(Vh,[["__scopeId","data-v-dd3cbf69"]]),Ph=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},Ma={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))}}},Ls=()=>{o.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}))},zs=Ma.setup;Ma.setup=zs?(e,a)=>(Ls(),zs(e,a)):Ls;const Ih=e=>(o.pushScopeId("data-v-fb269a1e"),e=e(),o.popScopeId(),e),Rh=["src"],Lh={key:1,class:"text"},zh=["src"],Fh={class:"stats"},Mh=Ih(()=>o.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),Dh={class:"numstats"},jh={class:"leyend"};function Wh(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",null,[t.type==0?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["button",s.status&&t.typeOnOff&&"button-active"]),style:o.normalizeStyle([i.customStyle,s.status&&t.typeOnOff&&i.customActive]),onClick:a[0]||(a[0]=(...r)=>i.btnClick&&i.btnClick(...r))},[t.icon&&t.iconPosition.toLowerCase()==="left"?(o.openBlock(),o.createElementBlock("img",{key:0,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,Rh)):o.createCommentVNode("",!0),t.textValue?(o.openBlock(),o.createElementBlock("div",Lh,o.toDisplayString(t.textValue),1)):o.createCommentVNode("",!0),t.icon&&t.iconPosition.toLowerCase()==="right"?(o.openBlock(),o.createElementBlock("img",{key:2,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,zh)):o.createCommentVNode("",!0)],6)):o.createCommentVNode("",!0),t.type==1?(o.openBlock(),o.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...r)=>i.btnClick&&i.btnClick(...r))},[o.createElementVNode("div",Fh,[Mh,o.createElementVNode("div",Dh,o.toDisplayString(t.textStat),1)]),o.createElementVNode("div",jh,o.toDisplayString(t.textCategory),1)])):o.createCommentVNode("",!0)])}const Uh=Ph(Ma,[["render",Wh],["__scopeId","data-v-fb269a1e"]]),Hh={class:"gsc-dropdown__main-container__item-selected"},Gh=["height","width"],qh=["stroke"],Jh={class:"gsc-dropdown__items-container"},Kh=["onClick"],Zh={key:0,class:"gsc-dropdown__items-footer"},Xh={__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 t=e,n=o.ref({}),s=o.ref(null),i=o.ref(t.isMultipleOption?-1:0),r=o.ref(!1);o.watch(()=>t.items,(d,h)=>{if(!t.modelValue&&(!t.onlyFirstTime||!h||!h.length)&&d&&d.length){if(t.defaultItemByProp){const g=t.items.findIndex(b=>b[t.defaultItemByProp.propName]===t.defaultItemByProp.value);g!==-1?(i.value=g,n.value=d[g]):(i.value=0,n.value=d[0])}else n.value=d[t.defaultItemByIndex];a("input",n.value)}},{immediate:!0}),o.watch(()=>t.modelValue,d=>{if(d){const h=t.items.findIndex(g=>typeof d=="object"?JSON.stringify(g)===JSON.stringify(d):g===d);h!==-1&&(i.value=h,n.value=t.items[h],a("update:modelValue",n.value))}},{immediate:!0});const l=o.computed(()=>({height:t.height,width:t.width,backgroundColor:t.backgroundColor,borderRadius:`${t.borderRadius}px`,border:`${t.borderType} ${t.borderWidth}px ${t.borderColor}`,color:t.color,"--hover-background-color":t.hoverBackgroundColor,"--list-item-padding":t.listItemPadding,"--list-background-color":t.listBackgroundColor,"--list-height":t.listHeight,"--list-item-selected-color":t.listItemSelectedColor,"--list-item-selected-background-color":t.listItemSelectedBackgroundColor,"--list-item-color":t.listItemColor,"--list-border-radius":`${t.listBorderRadius}`,"--list-border-color":t.listBorderColor,"--list-width":t.isListSameWidth?t.width:"fit-content","--list-border-width":`${t.listBorderWidth}px`,"--footer-border":`${t.footerBorderWidth}px solid ${t.footerBorderColor}`,"--dropdown-opacity":t.isDisabled?"0.5":"1","--dropdown-cursor":t.isDisabled?"not-allowed":"pointer","--dropdown-font-size":t.fontSize?t.fontSize:"14px"})),u=o.computed(()=>({height:`${t.arrowHeight}px`,width:`${t.arrowWidth}px`}));function c(){t.isDisabled||(r.value=!r.value)}function m(d){s.value&&!s.value.contains(d.target)&&(r.value=!1)}function p(d,h){t.isMultipleOption?i.value=-1:(i.value=h,r.value=!1),n.value=d,a("input",n.value),a("update:modelValue",n.value)}function f(){r.value=!1,a("click-ready")}return o.onMounted(()=>{document.addEventListener("click",m)}),o.onBeforeMount(()=>{document.removeEventListener("click",m)}),(d,h)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"dropDown",ref:s,class:"gsc-dropdown",style:o.normalizeStyle(l.value)},[o.createElementVNode("div",{class:"gsc-dropdown__main-container",style:o.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:c},[o.createElementVNode("div",Hh,[o.renderSlot(d.$slots,"default",{selectedItem:n.value})]),o.createElementVNode("div",{class:o.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":r.value}]),style:o.normalizeStyle(u.value)},[(o.openBlock(),o.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.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,qh)],8,Gh))],6)],4),o.createVNode(o.Transition,null,{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("div",Jh,[o.createElementVNode("div",null,[o.createElementVNode("div",{class:"gsc-dropdown__items",style:o.normalizeStyle({"margin-top":`${t.borderWidth}px`})},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.items,(g,b)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["gsc-dropdown__items__item",{selected:b===i.value}]),key:b,onClick:S=>p(g,b)},[o.renderSlot(d.$slots,"availableItem",{item:g})],10,Kh))),128))],4),e.isFooterVisible?(o.openBlock(),o.createElementBlock("div",Zh,[o.createVNode(o.unref(Uh),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:f})])):o.createCommentVNode("",!0)])],512),[[o.vShow,r.value]])]),_:3})],4))}},Yh=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},Qh={class:"tournament-select__selected-tournament"},eg={class:"tournament-select__selected-tournament__logo"},tg=["src"],og={class:"tournament-select__selected-tournament__name"},ag={__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 t=e,n=o.ref([]),s=o.computed(()=>{const p={};return t.fontFamily&&(p["font-family"]=`${t.fontFamily}`),p}),i=o.computed(()=>n.value.find(p=>p.seasonsIds.has(t.currentSeasonId))||n.value[0]);async function r(){try{if(t.items&&t.items.length)n.value=[...t.items];else if(t.apiUrl){const p=await u();n.value=p.map(f=>({...f.tournament,seasons:f.seasons,seasonsIds:f.seasons.reduce((d,h)=>(d.add(h.id),d),new Set)})).sort((f,d)=>f.order-d.order)}}catch(p){throw new Error(p)}}function l(p){const f=new XMLHttpRequest,d=`${t.logosUrl}${p}.${t.logoFileType}`;return f.open("HEAD",d,!1),f.send(),f.status!==404}async function u(){try{return(await fetch(t.apiUrl)).json()}catch(p){return Promise.reject(p)}}function c(p){a("input",p)}function m(p){a("input",p)}return o.onMounted(()=>{r()}),(p,f)=>(o.openBlock(),o.createElementBlock("div",{class:"tournament-select",style:o.normalizeStyle(s.value)},[o.createVNode(o.unref(Xh),o.mergeProps(t,{"model-value":i.value,items:n.value,onInput:c,"onUpdate:modelValue":m}),{default:o.withCtx(({selectedItem:d})=>[o.createElementVNode("div",Qh,[o.createElementVNode("div",eg,[l(d.id)?(o.openBlock(),o.createElementBlock("img",{key:0,src:`${t.logosUrl}${d.id}.${t.logoFileType}`,alt:""},null,8,tg)):o.createCommentVNode("",!0)]),o.createElementVNode("div",og,o.toDisplayString(d.name),1)])]),availableItem:o.withCtx(({item:d})=>[o.createElementVNode("div",null,o.toDisplayString(d.name),1)]),_:1},16,["model-value","items"])],4))}},ng=Yh(ag,[["__scopeId","data-v-355af272"]]),ig=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},Da={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))}}},Fs=()=>{o.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}))},Ms=Da.setup;Da.setup=Ms?(e,a)=>(Fs(),Ms(e,a)):Fs;const sg=e=>(o.pushScopeId("data-v-fb269a1e"),e=e(),o.popScopeId(),e),rg=["src"],lg={key:1,class:"text"},cg=["src"],dg={class:"stats"},mg=sg(()=>o.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),ug={class:"numstats"},pg={class:"leyend"};function hg(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",null,[t.type==0?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["button",s.status&&t.typeOnOff&&"button-active"]),style:o.normalizeStyle([i.customStyle,s.status&&t.typeOnOff&&i.customActive]),onClick:a[0]||(a[0]=(...r)=>i.btnClick&&i.btnClick(...r))},[t.icon&&t.iconPosition.toLowerCase()==="left"?(o.openBlock(),o.createElementBlock("img",{key:0,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,rg)):o.createCommentVNode("",!0),t.textValue?(o.openBlock(),o.createElementBlock("div",lg,o.toDisplayString(t.textValue),1)):o.createCommentVNode("",!0),t.icon&&t.iconPosition.toLowerCase()==="right"?(o.openBlock(),o.createElementBlock("img",{key:2,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,cg)):o.createCommentVNode("",!0)],6)):o.createCommentVNode("",!0),t.type==1?(o.openBlock(),o.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...r)=>i.btnClick&&i.btnClick(...r))},[o.createElementVNode("div",dg,[mg,o.createElementVNode("div",ug,o.toDisplayString(t.textStat),1)]),o.createElementVNode("div",pg,o.toDisplayString(t.textCategory),1)])):o.createCommentVNode("",!0)])}const gg=ig(Da,[["render",hg],["__scopeId","data-v-fb269a1e"]]),fg={class:"gsc-dropdown__main-container__item-selected"},yg=["height","width"],bg=["stroke"],wg={class:"gsc-dropdown__items-container"},Sg=["onClick"],_g={key:0,class:"gsc-dropdown__items-footer"},kg={__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 t=e,n=o.ref({}),s=o.ref(null),i=o.ref(t.isMultipleOption?-1:0),r=o.ref(!1);o.watch(()=>t.items,(d,h)=>{if(!t.modelValue&&(!t.onlyFirstTime||!h||!h.length)&&d&&d.length){if(t.defaultItemByProp){const g=t.items.findIndex(b=>b[t.defaultItemByProp.propName]===t.defaultItemByProp.value);g!==-1?(i.value=g,n.value=d[g]):(i.value=0,n.value=d[0])}else n.value=d[t.defaultItemByIndex];a("input",n.value)}},{immediate:!0}),o.watch(()=>t.modelValue,d=>{if(d){const h=t.items.findIndex(g=>typeof d=="object"?JSON.stringify(g)===JSON.stringify(d):g===d);h!==-1&&(i.value=h,n.value=t.items[h],a("update:modelValue",n.value))}},{immediate:!0});const l=o.computed(()=>({height:t.height,width:t.width,backgroundColor:t.backgroundColor,borderRadius:`${t.borderRadius}px`,border:`${t.borderType} ${t.borderWidth}px ${t.borderColor}`,color:t.color,"--hover-background-color":t.hoverBackgroundColor,"--list-item-padding":t.listItemPadding,"--list-background-color":t.listBackgroundColor,"--list-height":t.listHeight,"--list-item-selected-color":t.listItemSelectedColor,"--list-item-selected-background-color":t.listItemSelectedBackgroundColor,"--list-item-color":t.listItemColor,"--list-border-radius":`${t.listBorderRadius}`,"--list-border-color":t.listBorderColor,"--list-width":t.isListSameWidth?t.width:"fit-content","--list-border-width":`${t.listBorderWidth}px`,"--footer-border":`${t.footerBorderWidth}px solid ${t.footerBorderColor}`,"--dropdown-opacity":t.isDisabled?"0.5":"1","--dropdown-cursor":t.isDisabled?"not-allowed":"pointer","--dropdown-font-size":t.fontSize?t.fontSize:"14px"})),u=o.computed(()=>({height:`${t.arrowHeight}px`,width:`${t.arrowWidth}px`}));function c(){t.isDisabled||(r.value=!r.value)}function m(d){s.value&&!s.value.contains(d.target)&&(r.value=!1)}function p(d,h){t.isMultipleOption?i.value=-1:(i.value=h,r.value=!1),n.value=d,a("input",n.value),a("update:modelValue",n.value)}function f(){r.value=!1,a("click-ready")}return o.onMounted(()=>{document.addEventListener("click",m)}),o.onBeforeMount(()=>{document.removeEventListener("click",m)}),(d,h)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"dropDown",ref:s,class:"gsc-dropdown",style:o.normalizeStyle(l.value)},[o.createElementVNode("div",{class:"gsc-dropdown__main-container",style:o.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:c},[o.createElementVNode("div",fg,[o.renderSlot(d.$slots,"default",{selectedItem:n.value})]),o.createElementVNode("div",{class:o.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":r.value}]),style:o.normalizeStyle(u.value)},[(o.openBlock(),o.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.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,bg)],8,yg))],6)],4),o.createVNode(o.Transition,null,{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("div",wg,[o.createElementVNode("div",null,[o.createElementVNode("div",{class:"gsc-dropdown__items",style:o.normalizeStyle({"margin-top":`${t.borderWidth}px`})},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.items,(g,b)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["gsc-dropdown__items__item",{selected:b===i.value}]),key:b,onClick:S=>p(g,b)},[o.renderSlot(d.$slots,"availableItem",{item:g})],10,Sg))),128))],4),e.isFooterVisible?(o.openBlock(),o.createElementBlock("div",_g,[o.createVNode(o.unref(gg),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:f})])):o.createCommentVNode("",!0)])],512),[[o.vShow,r.value]])]),_:3})],4))}},Cg=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},Eg={class:"season-name"},Bg={class:"items-list-season"},xg={__name:"GSC-SeasonSelect",props:{seasons:{type:Array,default:()=>[]},currentSeasonId:{type:Number,default:0}},emits:["input"],setup(e,{emit:a}){const t=e,n=o.computed(()=>t.seasons.find(r=>r.id===t.currentSeasonId));function s(r){a("input",r)}function i(r){a("input",r)}return(r,l)=>(o.openBlock(),o.createBlock(o.unref(kg),{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:i,"onUpdate:modelValue":s},{default:o.withCtx(({selectedItem:u})=>[o.createElementVNode("div",Eg,[o.createElementVNode("span",null,o.toDisplayString(u.name),1)])]),availableItem:o.withCtx(({item:u})=>[o.createElementVNode("span",Bg,o.toDisplayString(u.name),1)]),_:1},8,["items","model-value"]))}},Ng=Cg(xg,[["__scopeId","data-v-3a11087d"]]);function Tg(e){const a=o.ref({width:0,height:0});function t(){const n=e.value.getBoundingClientRect();a.value.width=n.width,a.value.height=n.height}return o.onMounted(()=>{t(),window.addEventListener("resize",t)}),o.onUnmounted(()=>{window.removeEventListener("resize",t)}),{elementSize:a}}const vg=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},Og={components:{GSCFilterperteam:lp,GSCTableperteam:Mp,GSCDropdown:nh,GSCCarousel:$h,GSCTournamentSelect:ng,GSCSeasonSelect:Ng},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=o.ref("myDivRef"),{elementSize:a}=Tg(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 t in e[a].seasons)this.arraySeasons[e[a].tournament.id][" "+e[a].seasons[t].id]={},this.arraySeasons[e[a].tournament.id][" "+e[a].seasons[t].id].id=e[a].seasons[t].id,this.arraySeasons[e[a].tournament.id][" "+e[a].seasons[t].id].name=e[a].seasons[t].name}if(this.type==1)if(this.currentSeasonId===0){const a=e.find(t=>t._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:[]},t=[1,2,3],n=a[e.category]||[];let s={seasonId:this.seasonSelect,tournaments:this.tournaments,mainSectionType:1,playListType:e.playListType,categoryIds:n,gameIds:null,playerIds:[],teamId:e.team,matchResult:e.matchResult?[e.matchResult]:t,isRivalSubject:e.isRivalSubject,playData:{},advancedFilter:{playListTitle:e.title}};e.category!==0&&(s.advancedFilter.mainCategoryId=e.category),this.$emit("openmedia",s)},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 Bs.create({headers:{Authorization:`${this.token}`}}).get(this.url+e);if(this.tableData=a.data.data,this.pagesteams=[],this.teamperpage>0){let t=[];this.tableData.forEach((n,s)=>{t.push(n),(s+1)%this.teamperpage===0&&(this.pagesteams.push([...t]),t=[])}),t.length&&this.pagesteams.push([...t])}for(let t=0;t<this.tableData.length;t++)this.teams.push({id:this.tableData[t].team_id,team:this.tableData[t].team_name,logo:this.tableData[t].team_logo});this.teams.sort((t,n)=>{const s=t.team.toUpperCase(),i=n.team.toUpperCase();return s<i?-1:s>i?1:0})}catch(a){return Promise.reject(a)}},async fetchTournaments(){const e=Bs.create({headers:{Authorization:`${this.token}`}}),{data:a}=await e.get(this.tournamentsUrl);return a}}},Ag=e=>(o.pushScopeId("data-v-871f6068"),e=e(),o.popScopeId(),e),Vg={class:"gsc-generaltable__container"},$g=Ag(()=>o.createElementVNode("div",{class:"gsc-generaltable__row-sep"},[o.createElementVNode("div",{class:"gsc-generaltable__row-sep__line"})],-1)),Pg={key:1,class:"carousel-table-landing"},Ig={class:"row-table-carrousel"};function Rg(e,a,t,n,s,i){const r=o.resolveComponent("GSCTournamentSelect"),l=o.resolveComponent("GSCSeasonSelect"),u=o.resolveComponent("GSCFilterperteam"),c=o.resolveComponent("GSCTableperteam"),m=o.resolveComponent("GSCCarousel");return o.openBlock(),o.createElementBlock("div",{class:"gsc-generaltable",style:o.normalizeStyle(t.type==0?i.customStyle:i.customStyleLanding),ref:"myDivRef"},[t.type==0?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",{class:o.normalizeClass(["gsc-generaltable__row-toolbar",n.elementSize.width<590?"style-display":""])},[o.createElementVNode("div",{class:o.normalizeClass(["gsc-generaltable__row-toolbar__title",n.elementSize.width<768?"style-auto":""]),style:o.normalizeStyle(i.customStyleTitle)}," Tabla General ",6),o.createElementVNode("div",{class:o.normalizeClass(["gsc-generaltable__row-toolbar__selectors",n.elementSize.width<768&&n.elementSize.width>590?"style-auto":n.elementSize.width<590?"width-100":""])},[o.createElementVNode("div",{class:o.normalizeClass(["gsc-generaltable__row-toolbar__selectors__tournaments",n.elementSize.width<590&&n.elementSize.width>=420?"width-50":n.elementSize.width<420?"width-30":""])},[o.createVNode(r,{"current-season-id":t.currentSeasonId,onInput:i.onInputTournament},null,8,["current-season-id","onInput"])],2),o.createElementVNode("div",{class:o.normalizeClass(["gsc-generaltable__row-toolbar__selectors__seasons",n.elementSize.width<590&&n.elementSize.width>=420?"width-50":n.elementSize.width<420?"width-30":""])},[o.createVNode(l,{"current-season-id":t.currentSeasonId,seasons:s.tournamentSelected.seasons,onInput:i.onInputSeason},null,8,["current-season-id","seasons","onInput"])],2)],2)],2),o.createElementVNode("div",Vg,[o.createVNode(u,{data:s.teams,"background-color":"none","contain-border-radius":"8px",onClickTeam:i.clickTeam,onClickAll:i.clickAll},null,8,["data","onClickTeam","onClickAll"]),$g,s.tableData?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(s.tableData,(p,f)=>(o.openBlock(),o.createBlock(c,{key:f,onOpenmedia:i.setOpenMedia,onOpenTableProfile:i.openTableProfile,isheader:f==0,"background-color":s.teamselect!=0&&s.teamselect==p.team_id?"rgba(30, 60, 81, 0.5)":f%2===0?"#172531":"#0d1d29",data:p},null,8,["onOpenmedia","onOpenTableProfile","isheader","background-color","data"]))),128)):o.createCommentVNode("",!0)])],64)):(o.openBlock(),o.createElementBlock("div",Pg,[o.createVNode(m,{isPaginationVisible:t.isPaginationVisible,items:s.pagesteams},{default:o.withCtx(({item:p})=>[o.createElementVNode("div",Ig,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(p,(f,d)=>(o.openBlock(),o.createBlock(c,{key:d,onOpenmedia:i.setOpenMedia,onOpenTableProfile:i.openTableProfile,"is-games":!1,ItemHeight:"60px",teamSelected:1,isheader:d==0,"background-color":s.teamselect!=0&&s.teamselect==f.team_id?"rgba(30, 60, 81, 0.5)":d%2===0?"#172531":"#0d1d29",data:f},null,8,["onOpenmedia","onOpenTableProfile","isheader","background-color","data"]))),128))])]),_:1},8,["isPaginationVisible","items"])]))],4)}const Lg=vg(Og,[["render",Rg],["__scopeId","data-v-871f6068"]]);function zg(e){const a=o.ref({width:0,height:0});function t(){const n=e.value.getBoundingClientRect();a.value.width=n.width,a.value.height=n.height}return o.onMounted(()=>{t(),window.addEventListener("resize",t)}),o.onUnmounted(()=>{window.removeEventListener("resize",t)}),{elementSize:a}}const Fg=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},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)}}},Ds=()=>{o.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},js=ja.setup;ja.setup=js?(e,a)=>(Ds(),js(e,a)):Ds;const Mg={ref:"gscScrollableContainer",class:"scrollable-container"},Dg={class:"scrollable-arrows"},jg=["width","height","viewBox"],Wg=["stroke"],Ug={class:"scrollable-wrapper"},Hg={class:"scrollable-arrows"},Gg=["width","height","viewBox"],qg=["stroke"];function Jg(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",Mg,[t.arrows?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["arrows-container",i.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...r)=>i.scrollLeft&&i.scrollLeft(...r))},[o.createElementVNode("div",Dg,[(o.openBlock(),o.createElementBlock("svg",{width:t.arrowsWidth,height:t.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:t.arrowsColor},null,8,Wg)],8,jg))])],2)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:a[1]||(a[1]=(...r)=>i.getScroll&&i.getScroll(...r))},[o.createElementVNode("div",Ug,[o.renderSlot(e.$slots,"default",{},void 0,!0)])],544),t.arrows?(o.openBlock(),o.createElementBlock("div",{key:1,id:"arrows-container-right",class:o.normalizeClass(["arrows-container",i.hideShowRightArrow]),onClick:a[2]||(a[2]=(...r)=>i.scrollRight&&i.scrollRight(...r))},[o.createElementVNode("div",Hg,[(o.openBlock(),o.createElementBlock("svg",{width:t.arrowsWidth,height:t.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:t.arrowsColor},null,8,qg)],8,Gg))])],2)):o.createCommentVNode("",!0)],512)}const Kg=Fg(ja,[["render",Jg],["__scopeId","data-v-b548a08d"]]),Zg=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},Wa={components:{GSCSlider:Kg},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=o.ref("myDivRef"),{elementSize:a}=zg(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}}},Ws=()=>{o.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}))},Us=Wa.setup;Wa.setup=Us?(e,a)=>(Ws(),Us(e,a)):Ws;const Xg={ref:"myDivRef"},Yg={key:0,class:"gs-switch-container"},Qg=["onClick"],ef={key:1,class:"gs-switch-container-type"},tf=["onClick"],of={key:2,class:"gs-switch-container-carousel"},af=["onClick"];function nf(e,a,t,n,s,i){const r=o.resolveComponent("GSCSlider");return o.openBlock(),o.createElementBlock("div",Xg,[t.type==0?(o.openBlock(),o.createElementBlock("div",Yg,[o.createElementVNode("div",{class:"gs-switch-container__control",style:o.normalizeStyle([i.customGrid(n.elementSize)])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.buttons,(l,u)=>(o.openBlock(),o.createElementBlock("div",{class:"gs-switch-container__control__button-option",style:o.normalizeStyle([{height:t.height},t.selectedOption==l?{borderColor:t.colorOptionActive,color:t.colorFont+"!important",background:t.backgroundOptionActive}:{borderColor:t.colorOptionDisable,color:"grey !important"}]),key:u,onClick:c=>(t.selectedOption=l,i.clickEmitEvent(l))},o.toDisplayString(l),13,Qg))),128))],4),o.renderSlot(e.$slots,t.selectedOption,{},void 0,!0)])):o.createCommentVNode("",!0),t.type==1?(o.openBlock(),o.createElementBlock("div",ef,[o.createElementVNode("div",{class:"gs-switch-container-type__control",style:o.normalizeStyle([i.customGrid(n.elementSize)])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.buttons,(l,u)=>(o.openBlock(),o.createElementBlock("div",{class:"gs-switch-container-type__control__button-option-type",style:o.normalizeStyle([{height:t.height},t.selectedOption==l?{borderColor:t.colorOptionActive,color:t.colorFont+"!important",background:t.backgroundOptionActive}:{borderColor:t.colorOptionDisable,borderWidth:"0px",borderWidth:"0px !important",color:"grey !important",background:t.backgroundOptionDisable}]),key:u,onClick:c=>(t.selectedOption=l,i.clickEmitEvent(l))},o.toDisplayString(l),13,tf))),128))],4)])):o.createCommentVNode("",!0),t.type==2?(o.openBlock(),o.createElementBlock("div",of,[o.createVNode(r,{arrows:t.arrow,"background-color":t.background,"px-scroll":t.pxScroll,"scroll-color":t.scrollColor,"arrows-position":t.arrowsPosition,arrowsScrollHide:t.arrowsScrollHide,"arrows-background":t.arrowsBackground,"arrows-container-bg-l":t.arrowsContainerBgL,"arrows-container-bg-r":t.arrowsContainerBgR,"arrows-margin":t.arrowsMargin,"arrows-radius":t.arrowsRadius,"arrows-border":t.arrowsBorder},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.buttons,(l,u)=>(o.openBlock(),o.createElementBlock("div",{class:"button-option-multi",style:o.normalizeStyle([{height:t.height},t.selectedOption==l?{borderColor:t.colorOptionActive,color:t.colorFont+"!important",background:t.backgroundOptionActive}:{borderColor:t.colorOptionDisable,color:"grey !important"}]),key:u,onClick:c=>(t.selectedOption=l,i.clickEmitEvent(l))},o.toDisplayString(l),13,af))),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"])])):o.createCommentVNode("",!0)],512)}const Ua=Zg(Wa,[["render",nf],["__scopeId","data-v-8a86dfaf"]]);function Hs(e,a){return function(){return e.apply(a,arguments)}}const{toString:sf}=Object.prototype,{getPrototypeOf:Ha}=Object,_o=(e=>a=>{const t=sf.call(a);return e[t]||(e[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Ze=e=>(e=e.toLowerCase(),a=>_o(a)===e),ko=e=>a=>typeof a===e,{isArray:kt}=Array,Lt=ko("undefined");function rf(e){return e!==null&&!Lt(e)&&e.constructor!==null&&!Lt(e.constructor)&&Fe(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Gs=Ze("ArrayBuffer");function lf(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&Gs(e.buffer),a}const cf=ko("string"),Fe=ko("function"),qs=ko("number"),Co=e=>e!==null&&typeof e=="object",df=e=>e===!0||e===!1,Eo=e=>{if(_o(e)!=="object")return!1;const a=Ha(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},mf=Ze("Date"),uf=Ze("File"),pf=Ze("Blob"),hf=Ze("FileList"),gf=e=>Co(e)&&Fe(e.pipe),ff=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||Fe(e.append)&&((a=_o(e))==="formdata"||a==="object"&&Fe(e.toString)&&e.toString()==="[object FormData]"))},yf=Ze("URLSearchParams"),bf=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function zt(e,a,{allOwnKeys:t=!1}={}){if(e===null||typeof e>"u")return;let n,s;if(typeof e!="object"&&(e=[e]),kt(e))for(n=0,s=e.length;n<s;n++)a.call(null,e[n],n,e);else{const i=t?Object.getOwnPropertyNames(e):Object.keys(e),r=i.length;let l;for(n=0;n<r;n++)l=i[n],a.call(null,e[l],l,e)}}function Js(e,a){a=a.toLowerCase();const t=Object.keys(e);let n=t.length,s;for(;n-- >0;)if(s=t[n],a===s.toLowerCase())return s;return null}const Ks=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Zs=e=>!Lt(e)&&e!==Ks;function Ga(){const{caseless:e}=Zs(this)&&this||{},a={},t=(n,s)=>{const i=e&&Js(a,s)||s;Eo(a[i])&&Eo(n)?a[i]=Ga(a[i],n):Eo(n)?a[i]=Ga({},n):kt(n)?a[i]=n.slice():a[i]=n};for(let n=0,s=arguments.length;n<s;n++)arguments[n]&&zt(arguments[n],t);return a}const wf=(e,a,t,{allOwnKeys:n}={})=>(zt(a,(s,i)=>{t&&Fe(s)?e[i]=Hs(s,t):e[i]=s},{allOwnKeys:n}),e),Sf=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),_f=(e,a,t,n)=>{e.prototype=Object.create(a.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),t&&Object.assign(e.prototype,t)},kf=(e,a,t,n)=>{let s,i,r;const l={};if(a=a||{},e==null)return a;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)r=s[i],(!n||n(r,e,a))&&!l[r]&&(a[r]=e[r],l[r]=!0);e=t!==!1&&Ha(e)}while(e&&(!t||t(e,a))&&e!==Object.prototype);return a},Cf=(e,a,t)=>{e=String(e),(t===void 0||t>e.length)&&(t=e.length),t-=a.length;const n=e.indexOf(a,t);return n!==-1&&n===t},Ef=e=>{if(!e)return null;if(kt(e))return e;let a=e.length;if(!qs(a))return null;const t=new Array(a);for(;a-- >0;)t[a]=e[a];return t},Bf=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&Ha(Uint8Array)),xf=(e,a)=>{const t=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=t.next())&&!n.done;){const s=n.value;a.call(e,s[0],s[1])}},Nf=(e,a)=>{let t;const n=[];for(;(t=e.exec(a))!==null;)n.push(t);return n},Tf=Ze("HTMLFormElement"),vf=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,t,n){return t.toUpperCase()+n}),Xs=(({hasOwnProperty:e})=>(a,t)=>e.call(a,t))(Object.prototype),Of=Ze("RegExp"),Ys=(e,a)=>{const t=Object.getOwnPropertyDescriptors(e),n={};zt(t,(s,i)=>{let r;(r=a(s,i,e))!==!1&&(n[i]=r||s)}),Object.defineProperties(e,n)},Af=e=>{Ys(e,(a,t)=>{if(Fe(e)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const n=e[t];if(Fe(n)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},Vf=(e,a)=>{const t={},n=s=>{s.forEach(i=>{t[i]=!0})};return kt(e)?n(e):n(String(e).split(a)),t},$f=()=>{},Pf=(e,a)=>(e=+e,Number.isFinite(e)?e:a),qa="abcdefghijklmnopqrstuvwxyz",Qs="0123456789",er={DIGIT:Qs,ALPHA:qa,ALPHA_DIGIT:qa+qa.toUpperCase()+Qs},If=(e=16,a=er.ALPHA_DIGIT)=>{let t="";const{length:n}=a;for(;e--;)t+=a[Math.random()*n|0];return t};function Rf(e){return!!(e&&Fe(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Lf=e=>{const a=new Array(10),t=(n,s)=>{if(Co(n)){if(a.indexOf(n)>=0)return;if(!("toJSON"in n)){a[s]=n;const i=kt(n)?[]:{};return zt(n,(r,l)=>{const u=t(r,s+1);!Lt(u)&&(i[l]=u)}),a[s]=void 0,i}}return n};return t(e,0)},zf=Ze("AsyncFunction"),Ff=e=>e&&(Co(e)||Fe(e))&&Fe(e.then)&&Fe(e.catch),E={isArray:kt,isArrayBuffer:Gs,isBuffer:rf,isFormData:ff,isArrayBufferView:lf,isString:cf,isNumber:qs,isBoolean:df,isObject:Co,isPlainObject:Eo,isUndefined:Lt,isDate:mf,isFile:uf,isBlob:pf,isRegExp:Of,isFunction:Fe,isStream:gf,isURLSearchParams:yf,isTypedArray:Bf,isFileList:hf,forEach:zt,merge:Ga,extend:wf,trim:bf,stripBOM:Sf,inherits:_f,toFlatObject:kf,kindOf:_o,kindOfTest:Ze,endsWith:Cf,toArray:Ef,forEachEntry:xf,matchAll:Nf,isHTMLForm:Tf,hasOwnProperty:Xs,hasOwnProp:Xs,reduceDescriptors:Ys,freezeMethods:Af,toObjectSet:Vf,toCamelCase:vf,noop:$f,toFiniteNumber:Pf,findKey:Js,global:Ks,isContextDefined:Zs,ALPHABET:er,generateString:If,isSpecCompliantForm:Rf,toJSONObject:Lf,isAsyncFn:zf,isThenable:Ff};function J(e,a,t,n,s){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),t&&(this.config=t),n&&(this.request=n),s&&(this.response=s)}E.inherits(J,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:E.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const tr=J.prototype,or={};["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=>{or[e]={value:e}}),Object.defineProperties(J,or),Object.defineProperty(tr,"isAxiosError",{value:!0}),J.from=(e,a,t,n,s,i)=>{const r=Object.create(tr);return E.toFlatObject(e,r,function(l){return l!==Error.prototype},l=>l!=="isAxiosError"),J.call(r,e.message,a,t,n,s),r.cause=e,r.name=e.name,i&&Object.assign(r,i),r};const Mf=null;function Ja(e){return E.isPlainObject(e)||E.isArray(e)}function ar(e){return E.endsWith(e,"[]")?e.slice(0,-2):e}function nr(e,a,t){return e?e.concat(a).map(function(n,s){return n=ar(n),!t&&s?"["+n+"]":n}).join(t?".":""):a}function Df(e){return E.isArray(e)&&!e.some(Ja)}const jf=E.toFlatObject(E,{},null,function(e){return/^is[A-Z]/.test(e)});function Bo(e,a,t){if(!E.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,t=E.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,h){return!E.isUndefined(h[d])});const n=t.metaTokens,s=t.visitor||c,i=t.dots,r=t.indexes,l=(t.Blob||typeof Blob<"u"&&Blob)&&E.isSpecCompliantForm(a);if(!E.isFunction(s))throw new TypeError("visitor must be a function");function u(d){if(d===null)return"";if(E.isDate(d))return d.toISOString();if(!l&&E.isBlob(d))throw new J("Blob is not supported. Use a Buffer instead.");return E.isArrayBuffer(d)||E.isTypedArray(d)?l&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function c(d,h,g){let b=d;if(d&&!g&&typeof d=="object"){if(E.endsWith(h,"{}"))h=n?h:h.slice(0,-2),d=JSON.stringify(d);else if(E.isArray(d)&&Df(d)||(E.isFileList(d)||E.endsWith(h,"[]"))&&(b=E.toArray(d)))return h=ar(h),b.forEach(function(S,_){!(E.isUndefined(S)||S===null)&&a.append(r===!0?nr([h],_,i):r===null?h:h+"[]",u(S))}),!1}return Ja(d)?!0:(a.append(nr(g,h,i),u(d)),!1)}const m=[],p=Object.assign(jf,{defaultVisitor:c,convertValue:u,isVisitable:Ja});function f(d,h){if(!E.isUndefined(d)){if(m.indexOf(d)!==-1)throw Error("Circular reference detected in "+h.join("."));m.push(d),E.forEach(d,function(g,b){(!(E.isUndefined(g)||g===null)&&s.call(a,g,E.isString(b)?b.trim():b,h,p))===!0&&f(g,h?h.concat(b):[b])}),m.pop()}}if(!E.isObject(e))throw new TypeError("data must be an object");return f(e),a}function ir(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(t){return a[t]})}function Ka(e,a){this._pairs=[],e&&Bo(e,this,a)}const sr=Ka.prototype;sr.append=function(e,a){this._pairs.push([e,a])},sr.toString=function(e){const a=e?function(t){return e.call(this,t,ir)}:ir;return this._pairs.map(function(t){return a(t[0])+"="+a(t[1])},"").join("&")};function Wf(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function rr(e,a,t){if(!a)return e;const n=t&&t.encode||Wf,s=t&&t.serialize;let i;if(s?i=s(a,t):i=E.isURLSearchParams(a)?a.toString():new Ka(a,t).toString(n),i){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}const lr=class{constructor(){this.handlers=[]}use(a,t,n){return this.handlers.push({fulfilled:a,rejected:t,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){E.forEach(this.handlers,function(t){t!==null&&a(t)})}},cr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Uf=typeof URLSearchParams<"u"?URLSearchParams:Ka,Hf=typeof FormData<"u"?FormData:null,Gf=typeof Blob<"u"?Blob:null,qf={isBrowser:!0,classes:{URLSearchParams:Uf,FormData:Hf,Blob:Gf},protocols:["http","https","file","blob","url","data"]},dr=typeof window<"u"&&typeof document<"u",Jf=(e=>dr&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Kf=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Zf=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:dr,hasStandardBrowserEnv:Jf,hasStandardBrowserWebWorkerEnv:Kf},Symbol.toStringTag,{value:"Module"})),Xe={...Zf,...qf};function Xf(e,a){return Bo(e,new Xe.classes.URLSearchParams,Object.assign({visitor:function(t,n,s,i){return Xe.isNode&&E.isBuffer(t)?(this.append(n,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},a))}function Yf(e){return E.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function Qf(e){const a={},t=Object.keys(e);let n;const s=t.length;let i;for(n=0;n<s;n++)i=t[n],a[i]=e[i];return a}function mr(e){function a(t,n,s,i){let r=t[i++];if(r==="__proto__")return!0;const l=Number.isFinite(+r),u=i>=t.length;return r=!r&&E.isArray(s)?s.length:r,u?(E.hasOwnProp(s,r)?s[r]=[s[r],n]:s[r]=n,!l):((!s[r]||!E.isObject(s[r]))&&(s[r]=[]),a(t,n,s[r],i)&&E.isArray(s[r])&&(s[r]=Qf(s[r])),!l)}if(E.isFormData(e)&&E.isFunction(e.entries)){const t={};return E.forEachEntry(e,(n,s)=>{a(Yf(n),s,t,0)}),t}return null}function ey(e,a,t){if(E.isString(e))try{return(a||JSON.parse)(e),E.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(e)}const Za={transitional:cr,adapter:["xhr","http"],transformRequest:[function(e,a){const t=a.getContentType()||"",n=t.indexOf("application/json")>-1,s=E.isObject(e);if(s&&E.isHTMLForm(e)&&(e=new FormData(e)),E.isFormData(e))return n&&n?JSON.stringify(mr(e)):e;if(E.isArrayBuffer(e)||E.isBuffer(e)||E.isStream(e)||E.isFile(e)||E.isBlob(e))return e;if(E.isArrayBufferView(e))return e.buffer;if(E.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(s){if(t.indexOf("application/x-www-form-urlencoded")>-1)return Xf(e,this.formSerializer).toString();if((i=E.isFileList(e))||t.indexOf("multipart/form-data")>-1){const r=this.env&&this.env.FormData;return Bo(i?{"files[]":e}:e,r&&new r,this.formSerializer)}}return s||n?(a.setContentType("application/json",!1),ey(e)):e}],transformResponse:[function(e){const a=this.transitional||Za.transitional,t=a&&a.forcedJSONParsing,n=this.responseType==="json";if(e&&E.isString(e)&&(t&&!this.responseType||n)){const s=!(a&&a.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(i){if(s)throw i.name==="SyntaxError"?J.from(i,J.ERR_BAD_RESPONSE,this,null,this.response):i}}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}}};E.forEach(["delete","get","head","post","put","patch"],e=>{Za.headers[e]={}});const Xa=Za,ty=E.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"]),oy=e=>{const a={};let t,n,s;return e&&e.split(`
|
|
16
|
+
`).forEach(function(i){s=i.indexOf(":"),t=i.substring(0,s).trim().toLowerCase(),n=i.substring(s+1).trim(),!(!t||a[t]&&ty[t])&&(t==="set-cookie"?a[t]?a[t].push(n):a[t]=[n]:a[t]=a[t]?a[t]+", "+n:n)}),a},ur=Symbol("internals");function Ft(e){return e&&String(e).trim().toLowerCase()}function xo(e){return e===!1||e==null?e:E.isArray(e)?e.map(xo):String(e)}function ay(e){const a=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=t.exec(e);)a[n[1]]=n[2];return a}const ny=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ya(e,a,t,n,s){if(E.isFunction(n))return n.call(this,a,t);if(s&&(a=t),!!E.isString(a)){if(E.isString(n))return a.indexOf(n)!==-1;if(E.isRegExp(n))return n.test(a)}}function iy(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,t,n)=>t.toUpperCase()+n)}function sy(e,a){const t=E.toCamelCase(" "+a);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+t,{value:function(s,i,r){return this[n].call(this,a,s,i,r)},configurable:!0})})}let No=class{constructor(a){a&&this.set(a)}set(a,t,n){const s=this;function i(l,u,c){const m=Ft(u);if(!m)throw new Error("header name must be a non-empty string");const p=E.findKey(s,m);(!p||s[p]===void 0||c===!0||c===void 0&&s[p]!==!1)&&(s[p||u]=xo(l))}const r=(l,u)=>E.forEach(l,(c,m)=>i(c,m,u));return E.isPlainObject(a)||a instanceof this.constructor?r(a,t):E.isString(a)&&(a=a.trim())&&!ny(a)?r(oy(a),t):a!=null&&i(t,a,n),this}get(a,t){if(a=Ft(a),a){const n=E.findKey(this,a);if(n){const s=this[n];if(!t)return s;if(t===!0)return ay(s);if(E.isFunction(t))return t.call(this,s,n);if(E.isRegExp(t))return t.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,t){if(a=Ft(a),a){const n=E.findKey(this,a);return!!(n&&this[n]!==void 0&&(!t||Ya(this,this[n],n,t)))}return!1}delete(a,t){const n=this;let s=!1;function i(r){if(r=Ft(r),r){const l=E.findKey(n,r);l&&(!t||Ya(n,n[l],l,t))&&(delete n[l],s=!0)}}return E.isArray(a)?a.forEach(i):i(a),s}clear(a){const t=Object.keys(this);let n=t.length,s=!1;for(;n--;){const i=t[n];(!a||Ya(this,this[i],i,a,!0))&&(delete this[i],s=!0)}return s}normalize(a){const t=this,n={};return E.forEach(this,(s,i)=>{const r=E.findKey(n,i);if(r){t[r]=xo(s),delete t[i];return}const l=a?iy(i):String(i).trim();l!==i&&delete t[i],t[l]=xo(s),n[l]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const t=Object.create(null);return E.forEach(this,(n,s)=>{n!=null&&n!==!1&&(t[s]=a&&E.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,t])=>a+": "+t).join(`
|
|
17
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...t){const n=new this(a);return t.forEach(s=>n.set(s)),n}static accessor(a){const t=(this[ur]=this[ur]={accessors:{}}).accessors,n=this.prototype;function s(i){const r=Ft(i);t[r]||(sy(n,i),t[r]=!0)}return E.isArray(a)?a.forEach(s):s(a),this}};No.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),E.reduceDescriptors(No.prototype,({value:e},a)=>{let t=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(n){this[t]=n}}}),E.freezeMethods(No);const nt=No;function Qa(e,a){const t=this||Xa,n=a||t,s=nt.from(n.headers);let i=n.data;return E.forEach(e,function(r){i=r.call(t,i,s.normalize(),a?a.status:void 0)}),s.normalize(),i}function pr(e){return!!(e&&e.__CANCEL__)}function Mt(e,a,t){J.call(this,e??"canceled",J.ERR_CANCELED,a,t),this.name="CanceledError"}E.inherits(Mt,J,{__CANCEL__:!0});function ry(e,a,t){const n=t.config.validateStatus;!t.status||!n||n(t.status)?e(t):a(new J("Request failed with status code "+t.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}const ly=Xe.hasStandardBrowserEnv?{write(e,a,t,n,s,i){const r=[e+"="+encodeURIComponent(a)];E.isNumber(t)&&r.push("expires="+new Date(t).toGMTString()),E.isString(n)&&r.push("path="+n),E.isString(s)&&r.push("domain="+s),i===!0&&r.push("secure"),document.cookie=r.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 cy(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function dy(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function hr(e,a){return e&&!cy(a)?dy(e,a):a}const my=Xe.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");let t;function n(s){let i=s;return e&&(a.setAttribute("href",i),i=a.href),a.setAttribute("href",i),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:a.pathname.charAt(0)==="/"?a.pathname:"/"+a.pathname}}return t=n(window.location.href),function(s){const i=E.isString(s)?n(s):s;return i.protocol===t.protocol&&i.host===t.host}}():function(){return function(){return!0}}();function uy(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function py(e,a){e=e||10;const t=new Array(e),n=new Array(e);let s=0,i=0,r;return a=a!==void 0?a:1e3,function(l){const u=Date.now(),c=n[i];r||(r=u),t[s]=l,n[s]=u;let m=i,p=0;for(;m!==s;)p+=t[m++],m=m%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),u-r<a)return;const f=c&&u-c;return f?Math.round(p*1e3/f):void 0}}function gr(e,a){let t=0;const n=py(50,250);return s=>{const i=s.loaded,r=s.lengthComputable?s.total:void 0,l=i-t,u=n(l),c=i<=r;t=i;const m={loaded:i,total:r,progress:r?i/r:void 0,bytes:l,rate:u||void 0,estimated:u&&r&&c?(r-i)/u:void 0,event:s};m[a?"download":"upload"]=!0,e(m)}}const hy=typeof XMLHttpRequest<"u",gy=hy&&function(e){return new Promise(function(a,t){let n=e.data;const s=nt.from(e.headers).normalize();let{responseType:i,withXSRFToken:r}=e,l;function u(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let c;if(E.isFormData(n)){if(Xe.hasStandardBrowserEnv||Xe.hasStandardBrowserWebWorkerEnv)s.setContentType(!1);else if((c=s.getContentType())!==!1){const[h,...g]=c?c.split(";").map(b=>b.trim()).filter(Boolean):[];s.setContentType([h||"multipart/form-data",...g].join("; "))}}let m=new XMLHttpRequest;if(e.auth){const h=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(h+":"+g))}const p=hr(e.baseURL,e.url);m.open(e.method.toUpperCase(),rr(p,e.params,e.paramsSerializer),!0),m.timeout=e.timeout;function f(){if(!m)return;const h=nt.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),g={data:!i||i==="text"||i==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:h,config:e,request:m};ry(function(b){a(b),u()},function(b){t(b),u()},g),m=null}if("onloadend"in m?m.onloadend=f:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(f)},m.onabort=function(){m&&(t(new J("Request aborted",J.ECONNABORTED,e,m)),m=null)},m.onerror=function(){t(new J("Network Error",J.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let h=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const g=e.transitional||cr;e.timeoutErrorMessage&&(h=e.timeoutErrorMessage),t(new J(h,g.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,m)),m=null},Xe.hasStandardBrowserEnv&&(r&&E.isFunction(r)&&(r=r(e)),r||r!==!1&&my(p))){const h=e.xsrfHeaderName&&e.xsrfCookieName&&ly.read(e.xsrfCookieName);h&&s.set(e.xsrfHeaderName,h)}n===void 0&&s.setContentType(null),"setRequestHeader"in m&&E.forEach(s.toJSON(),function(h,g){m.setRequestHeader(g,h)}),E.isUndefined(e.withCredentials)||(m.withCredentials=!!e.withCredentials),i&&i!=="json"&&(m.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&m.addEventListener("progress",gr(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&m.upload&&m.upload.addEventListener("progress",gr(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=h=>{m&&(t(!h||h.type?new Mt(null,e,m):h),m.abort(),m=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const d=uy(p);if(d&&Xe.protocols.indexOf(d)===-1){t(new J("Unsupported protocol "+d+":",J.ERR_BAD_REQUEST,e));return}m.send(n||null)})},en={http:Mf,xhr:gy};E.forEach(en,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const fr=e=>`- ${e}`,fy=e=>E.isFunction(e)||e===null||e===!1,yr={getAdapter:e=>{e=E.isArray(e)?e:[e];const{length:a}=e;let t,n;const s={};for(let i=0;i<a;i++){t=e[i];let r;if(n=t,!fy(t)&&(n=en[(r=String(t)).toLowerCase()],n===void 0))throw new J(`Unknown adapter '${r}'`);if(n)break;s[r||"#"+i]=n}if(!n){const i=Object.entries(s).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let r=a?i.length>1?`since :
|
|
18
|
+
`+i.map(fr).join(`
|
|
19
|
+
`):" "+fr(i[0]):"as no adapter specified";throw new J("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return n},adapters:en};function tn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Mt(null,e)}function br(e){return tn(e),e.headers=nt.from(e.headers),e.data=Qa.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),yr.getAdapter(e.adapter||Xa.adapter)(e).then(function(a){return tn(e),a.data=Qa.call(e,e.transformResponse,a),a.headers=nt.from(a.headers),a},function(a){return pr(a)||(tn(e),a&&a.response&&(a.response.data=Qa.call(e,e.transformResponse,a.response),a.response.headers=nt.from(a.response.headers))),Promise.reject(a)})}const wr=e=>e instanceof nt?e.toJSON():e;function Ct(e,a){a=a||{};const t={};function n(c,m,p){return E.isPlainObject(c)&&E.isPlainObject(m)?E.merge.call({caseless:p},c,m):E.isPlainObject(m)?E.merge({},m):E.isArray(m)?m.slice():m}function s(c,m,p){if(E.isUndefined(m)){if(!E.isUndefined(c))return n(void 0,c,p)}else return n(c,m,p)}function i(c,m){if(!E.isUndefined(m))return n(void 0,m)}function r(c,m){if(E.isUndefined(m)){if(!E.isUndefined(c))return n(void 0,c)}else return n(void 0,m)}function l(c,m,p){if(p in a)return n(c,m);if(p in e)return n(void 0,c)}const u={url:i,method:i,data:i,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:l,headers:(c,m)=>s(wr(c),wr(m),!0)};return E.forEach(Object.keys(Object.assign({},e,a)),function(c){const m=u[c]||s,p=m(e[c],a[c],c);E.isUndefined(p)&&m!==l||(t[c]=p)}),t}const Sr="1.6.6",on={};["object","boolean","number","function","string","symbol"].forEach((e,a)=>{on[e]=function(t){return typeof t===e||"a"+(a<1?"n ":" ")+e}});const _r={};on.transitional=function(e,a,t){function n(s,i){return"[Axios v"+Sr+"] Transitional option '"+s+"'"+i+(t?". "+t:"")}return(s,i,r)=>{if(e===!1)throw new J(n(i," has been removed"+(a?" in "+a:"")),J.ERR_DEPRECATED);return a&&!_r[i]&&(_r[i]=!0,console.warn(n(i," has been deprecated since v"+a+" and will be removed in the near future"))),e?e(s,i,r):!0}};function yy(e,a,t){if(typeof e!="object")throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let s=n.length;for(;s-- >0;){const i=n[s],r=a[i];if(r){const l=e[i],u=l===void 0||r(l,i,e);if(u!==!0)throw new J("option "+i+" must be "+u,J.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new J("Unknown option "+i,J.ERR_BAD_OPTION)}}const an={assertOptions:yy,validators:on},dt=an.validators;let To=class{constructor(a){this.defaults=a,this.interceptors={request:new lr,response:new lr}}async request(a,t){try{return await this._request(a,t)}catch(n){const s={};throw Error.captureStackTrace?Error.captureStackTrace(s):s.stack=new Error().stack,s.stack=s.stack.replace(/^.+\n/,""),n.stack.endsWith(s.stack.replace(/^.+\n.+\n/,""))||(n.stack+=`
|
|
20
|
+
`+s.stack),n}}_request(a,t){typeof a=="string"?(t=t||{},t.url=a):t=a||{},t=Ct(this.defaults,t);const{transitional:n,paramsSerializer:s,headers:i}=t;n!==void 0&&an.assertOptions(n,{silentJSONParsing:dt.transitional(dt.boolean),forcedJSONParsing:dt.transitional(dt.boolean),clarifyTimeoutError:dt.transitional(dt.boolean)},!1),s!=null&&(E.isFunction(s)?t.paramsSerializer={serialize:s}:an.assertOptions(s,{encode:dt.function,serialize:dt.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let r=i&&E.merge(i.common,i[t.method]);i&&E.forEach(["delete","get","head","post","put","patch","common"],h=>{delete i[h]}),t.headers=nt.concat(r,i);const l=[];let u=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(t)===!1||(u=u&&h.synchronous,l.unshift(h.fulfilled,h.rejected))});const c=[];this.interceptors.response.forEach(function(h){c.push(h.fulfilled,h.rejected)});let m,p=0,f;if(!u){const h=[br.bind(this),void 0];for(h.unshift.apply(h,l),h.push.apply(h,c),f=h.length,m=Promise.resolve(t);p<f;)m=m.then(h[p++],h[p++]);return m}f=l.length;let d=t;for(p=0;p<f;){const h=l[p++],g=l[p++];try{d=h(d)}catch(b){g.call(this,b);break}}try{m=br.call(this,d)}catch(h){return Promise.reject(h)}for(p=0,f=c.length;p<f;)m=m.then(c[p++],c[p++]);return m}getUri(a){a=Ct(this.defaults,a);const t=hr(a.baseURL,a.url);return rr(t,a.params,a.paramsSerializer)}};E.forEach(["delete","get","head","options"],function(e){To.prototype[e]=function(a,t){return this.request(Ct(t||{},{method:e,url:a,data:(t||{}).data}))}}),E.forEach(["post","put","patch"],function(e){function a(t){return function(n,s,i){return this.request(Ct(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:s}))}}To.prototype[e]=a(),To.prototype[e+"Form"]=a(!0)});const vo=To,by=class Fc{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(s){t=s});const n=this;this.promise.then(s=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](s);n._listeners=null}),this.promise.then=s=>{let i;const r=new Promise(l=>{n.subscribe(l),i=l}).then(s);return r.cancel=function(){n.unsubscribe(i)},r},a(function(s,i,r){n.reason||(n.reason=new Mt(s,i,r),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const t=this._listeners.indexOf(a);t!==-1&&this._listeners.splice(t,1)}static source(){let a;return{token:new Fc(function(t){a=t}),cancel:a}}};function wy(e){return function(a){return e.apply(null,a)}}function Sy(e){return E.isObject(e)&&e.isAxiosError===!0}const nn={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(nn).forEach(([e,a])=>{nn[a]=e});const _y=nn;function kr(e){const a=new vo(e),t=Hs(vo.prototype.request,a);return E.extend(t,vo.prototype,a,{allOwnKeys:!0}),E.extend(t,a,null,{allOwnKeys:!0}),t.create=function(n){return kr(Ct(e,n))},t}const he=kr(Xa);he.Axios=vo,he.CanceledError=Mt,he.CancelToken=by,he.isCancel=pr,he.VERSION=Sr,he.toFormData=Bo,he.AxiosError=J,he.Cancel=he.CanceledError,he.all=function(e){return Promise.all(e)},he.spread=wy,he.isAxiosError=Sy,he.mergeConfig=Ct,he.AxiosHeaders=nt,he.formToJSON=e=>mr(E.isHTMLForm(e)?new FormData(e):e),he.getAdapter=yr.getAdapter,he.HttpStatusCode=_y,he.default=he;const Cr=he;/**
|
|
21
21
|
* Vue 3 Carousel 0.3.1
|
|
22
22
|
* (c) 2023
|
|
23
23
|
* @license MIT
|
|
24
|
-
*/const Q={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},di={itemsToShow:{default:Q.itemsToShow,type:Number},itemsToScroll:{default:Q.itemsToScroll,type:Number},wrapAround:{default:Q.wrapAround,type:Boolean},throttle:{default:Q.throttle,type:Number},snapAlign:{default:Q.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Q.transition,type:Number},breakpoints:{default:Q.breakpoints,type:Object},autoplay:{default:Q.autoplay,type:Number},pauseAutoplayOnHover:{default:Q.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Q.mouseDrag,type:Boolean},touchDrag:{default:Q.touchDrag,type:Boolean},dir:{default:Q.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Q.i18n,type:Object},settings:{default(){return{}},type:Object}};function bf({config:e,slidesCount:a}){const{snapAlign:o,wrapAround:n,itemsToShow:i=1}=e;if(n)return Math.max(a-1,0);let r;switch(o){case"start":r=a-i;break;case"end":r=a-1;break;case"center":case"center-odd":r=a-Math.ceil((i-.5)/2);break;case"center-even":r=a-Math.ceil(i/2);break;default:r=0;break}return Math.max(r,0)}function wf({config:e,slidesCount:a}){const{wrapAround:o,snapAlign:n,itemsToShow:i=1}=e;let r=0;if(o||i>a)return r;switch(n){case"start":r=0;break;case"end":r=i-1;break;case"center":case"center-odd":r=Math.floor((i-1)/2);break;case"center-even":r=Math.floor((i-2)/2);break;default:r=0;break}return r}function ha({val:e,max:a,min:o}){return a<o?e:Math.min(Math.max(e,o),a)}function _f({config:e,currentSlide:a,slidesCount:o}){const{snapAlign:n,wrapAround:i,itemsToShow:r=1}=e;let s=a;switch(n){case"center":case"center-odd":s-=(r-1)/2;break;case"center-even":s-=(r-2)/2;break;case"end":s-=r-1;break}return i?s:ha({val:s,max:o-r,min:0})}function mi(e){return e?e.reduce((a,o)=>{var n;return o.type===t.Fragment?[...a,...mi(o.children)]:((n=o.type)===null||n===void 0?void 0:n.name)==="CarouselSlide"?[...a,o]:a},[]):[]}function fa({val:e,max:a,min:o=0}){return e>a?fa({val:e-(a+1),max:a,min:o}):e<o?fa({val:e+(a+1),max:a,min:o}):e}function Sf(e,a){let o;return a?function(...n){const i=this;o||(e.apply(i,n),o=!0,setTimeout(()=>o=!1,a))}:e}function kf(e,a){let o;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{e(...n),o=null},a)}}function Cf(e="",a={}){return Object.entries(a).reduce((o,[n,i])=>o.replace(`{${n}}`,String(i)),e)}var Bf=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Q))),a=t.inject("currentSlide",t.ref(0)),o=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},Cf(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:o.value}))}}),Ef=t.defineComponent({name:"Carousel",props:di,setup(e,{slots:a,emit:o,expose:n}){var i;const r=t.ref(null),s=t.ref([]),l=t.ref(0),p=t.ref(0),c=t.reactive(Object.assign({},Q));let m=Object.assign({},Q),u;const g=t.ref((i=e.modelValue)!==null&&i!==void 0?i:0),d=t.ref(0),h=t.ref(0),f=t.ref(0),y=t.ref(0);let C,A;t.provide("config",c),t.provide("slidesCount",p),t.provide("currentSlide",g),t.provide("maxSlide",f),t.provide("minSlide",y),t.provide("slideWidth",l);function v(){u=Object.assign({},e.breakpoints),m=Object.assign(Object.assign(Object.assign({},m),e),{i18n:Object.assign(Object.assign({},m.i18n),e.i18n),breakpoints:void 0}),ne(m)}function U(){if(!u||!Object.keys(u).length)return;const b=Object.keys(u).map(x=>Number(x)).sort((x,M)=>+M-+x);let V=Object.assign({},m);b.some(x=>{const M=window.matchMedia(`(min-width: ${x}px)`).matches;return M&&(V=Object.assign(Object.assign({},V),u[x])),M}),ne(V)}function ne(b){Object.entries(b).forEach(([V,x])=>c[V]=x)}const he=kf(()=>{U(),X()},16);function X(){if(!r.value)return;const b=r.value.getBoundingClientRect();l.value=b.width/c.itemsToShow}function se(){p.value<=0||(h.value=Math.ceil((p.value-1)/2),f.value=bf({config:c,slidesCount:p.value}),y.value=wf({config:c,slidesCount:p.value}),c.wrapAround||(g.value=ha({val:g.value,max:f.value,min:y.value})))}t.onMounted(()=>{t.nextTick(()=>X()),setTimeout(()=>X(),1e3),U(),Ae(),window.addEventListener("resize",he,{passive:!0}),o("init")}),t.onUnmounted(()=>{A&&clearTimeout(A),C&&clearInterval(C),window.removeEventListener("resize",he,{passive:!0})});let R=!1;const ae={x:0,y:0},ee={x:0,y:0},j=t.reactive({x:0,y:0}),te=t.ref(!1),re=t.ref(!1),Ue=()=>{te.value=!0},He=()=>{te.value=!1};function Ve(b){["INPUT","TEXTAREA","SELECT"].includes(b.target.tagName)||(R=b.type==="touchstart",R||b.preventDefault(),!(!R&&b.button!==0||B.value)&&(ae.x=R?b.touches[0].clientX:b.clientX,ae.y=R?b.touches[0].clientY:b.clientY,document.addEventListener(R?"touchmove":"mousemove",fe,!0),document.addEventListener(R?"touchend":"mouseup",$e,!0)))}const fe=Sf(b=>{re.value=!0,ee.x=R?b.touches[0].clientX:b.clientX,ee.y=R?b.touches[0].clientY:b.clientY;const V=ee.x-ae.x,x=ee.y-ae.y;j.y=x,j.x=V},c.throttle);function $e(){const b=c.dir==="rtl"?-1:1,V=Math.sign(j.x)*.4,x=Math.round(j.x/l.value+V)*b;if(x&&!R){const M=be=>{be.stopPropagation(),window.removeEventListener("click",M,!0)};window.addEventListener("click",M,!0)}E(g.value-x),j.x=0,j.y=0,re.value=!1,document.removeEventListener(R?"touchmove":"mousemove",fe,!0),document.removeEventListener(R?"touchend":"mouseup",$e,!0)}function Ae(){!c.autoplay||c.autoplay<=0||(C=setInterval(()=>{c.pauseAutoplayOnHover&&te.value||T()},c.autoplay))}function O(){C&&(clearInterval(C),C=null),Ae()}const B=t.ref(!1);function E(b){const V=c.wrapAround?b:ha({val:b,max:f.value,min:y.value});g.value===V||B.value||(o("slide-start",{slidingToIndex:b,currentSlideIndex:g.value,prevSlideIndex:d.value,slidesCount:p.value}),B.value=!0,d.value=g.value,g.value=V,A=setTimeout(()=>{if(c.wrapAround){const x=fa({val:V,max:f.value,min:0});x!==g.value&&(g.value=x,o("loop",{currentSlideIndex:g.value,slidingToIndex:b}))}o("update:modelValue",g.value),o("slide-end",{currentSlideIndex:g.value,prevSlideIndex:d.value,slidesCount:p.value}),B.value=!1,O()},c.transition))}function T(){E(g.value+c.itemsToScroll)}function N(){E(g.value-c.itemsToScroll)}const $={slideTo:E,next:T,prev:N};t.provide("nav",$),t.provide("isSliding",B);const z=t.computed(()=>_f({config:c,currentSlide:g.value,slidesCount:p.value}));t.provide("slidesToScroll",z);const D=t.computed(()=>{const b=c.dir==="rtl"?-1:1,V=z.value*l.value*b;return{transform:`translateX(${j.x-V}px)`,transition:`${B.value?c.transition:0}ms`,margin:c.wrapAround?`0 -${p.value*l.value}px`:"",width:"100%"}});function W(){v(),U(),se(),X(),O()}Object.keys(di).forEach(b=>{["modelValue"].includes(b)||t.watch(()=>e[b],W)}),t.watch(()=>e.modelValue,b=>{b!==g.value&&E(Number(b))}),t.watch(p,se),o("before-init"),v();const K={config:c,slidesCount:p,slideWidth:l,next:T,prev:N,slideTo:E,currentSlide:g,maxSlide:f,minSlide:y,middleSlide:h};n({updateBreakpointsConfigs:U,updateSlidesData:se,updateSlideWidth:X,initDefaultConfigs:v,restartCarousel:W,slideTo:E,next:T,prev:N,nav:$,data:K});const ge=a.default||a.slides,ye=a.addons,je=t.reactive(K);return()=>{const b=mi(ge==null?void 0:ge(je)),V=(ye==null?void 0:ye(je))||[];b.forEach((we,_e)=>we.props.index=_e);let x=b;if(c.wrapAround){const we=b.map((Se,oe)=>t.cloneVNode(Se,{index:-b.length+oe,isClone:!0,key:`clone-before-${oe}`})),_e=b.map((Se,oe)=>t.cloneVNode(Se,{index:b.length+oe,isClone:!0,key:`clone-after-${oe}`}));x=[...we,...b,..._e]}s.value=b,p.value=Math.max(b.length,1);const M=t.h("ol",{class:"carousel__track",style:D.value,onMousedownCapture:c.mouseDrag?Ve:null,onTouchstartPassiveCapture:c.touchDrag?Ve:null},x),be=t.h("div",{class:"carousel__viewport"},M);return t.h("section",{ref:r,class:{carousel:!0,"is-sliding":B.value,"is-dragging":re.value,"is-hover":te.value,"carousel--rtl":c.dir==="rtl"},dir:c.dir,"aria-label":c.i18n.ariaGallery,tabindex:"0",onMouseenter:Ue,onMouseleave:He},[be,V,t.h(Bf)])}}}),pi;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(pi||(pi={}));var Nf=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const o=t.inject("config",t.reactive(Object.assign({},Q))),n=t.inject("currentSlide",t.ref(0)),i=t.inject("slidesToScroll",t.ref(0)),r=t.inject("isSliding",t.ref(!1)),s=()=>e.index===n.value,l=()=>e.index===n.value-1,p=()=>e.index===n.value+1,c=()=>{const m=Math.floor(i.value),u=Math.ceil(i.value+o.itemsToShow-1);return e.index>=m&&e.index<=u};return()=>{var m;return t.h("li",{style:{width:`${100/o.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":c(),"carousel__slide--active":s(),"carousel__slide--prev":l(),"carousel__slide--next":p(),"carousel__slide--sliding":r.value},"aria-hidden":!c()},(m=a.default)===null||m===void 0?void 0:m.call(a))}}});const xf=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},Tf=e=>(t.pushScopeId("data-v-dd3cbf69"),e=e(),t.popScopeId(),e),Of={class:"gsc-carousel"},Vf={key:0},$f=Tf(()=>t.createElementVNode("div",null,"no hay",-1)),Af=[$f],zf={class:"gsc-carousel__2d__slides"},Rf={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},If=["fill"],Ff={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Pf=["fill"],Lf={class:"gsc-carousel__2d__navigation"},Df={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Mf=["stroke"],jf={key:1,class:"gsc-carousel__2d__navigation__pagination"},vf=["onClick"],Wf={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Uf=["stroke"],Hf={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:a,emit:o}){const n=e;t.useCssVars(f=>({"0d808f0f":e.slideLeftArrowBackgroundImage,"1e0ef2e5":e.slidesArrowsLeftAndRight,"66d12b5c":e.slideRightArrowBackgroundImage,"2b22a85a":e.marginTop,"1a842b02":e.secondarySlidesOpacity}));const i=t.ref(null),r=t.ref({}),s=t.ref(0),l=t.ref(!1);t.watch(i,f=>{f&&l.value?(l.value=!1,p(n.items)):f&&f.slideTo&&f.slideTo(s.value)},{deep:!0}),t.watch(()=>n.currentItemIndex,f=>{s.value!==f&&g(f)}),t.watch(()=>n.items,f=>{i.value?p(f):l.value=!0},{immediate:!0});function p(f){if(f&&f.length&&i.value){if(n.defaultItemByProp){const y=n.items.findIndex(C=>C[n.defaultItemByProp.propName]===n.defaultItemByProp.value);y!==-1?(s.value=y,r.value=f[y]):(s.value=0,r.value=f[0])}else s.value=n.defaultItemByIndex,r.value=f[n.defaultItemByIndex];i.value.slideTo&&i.value.slideTo(s.value),o("input",{selectedItem:r.value,selectedItemIndex:s.value})}}function c(){i.value&&i.value.next()}function m(){i.value&&i.value.prev()}function u(){i.value&&i.value.updateSlideWidth()}function g(f){i.value&&i.value.slideTo(f)}function d(f){i.value.slideTo(f)}function h(f){const y=f.slidingToIndex<0?n.items.length-1:f.slidingToIndex===n.items.length?0:f.slidingToIndex;s.value=y,r.value=n.items[y],o("update:currentItemIndex",y),o("input",{selectedItem:r.value,selectedItemIndex:s.value})}return a({prev:m,next:c,updateSlideWidth:u,slideTo:g}),(f,y)=>(t.openBlock(),t.createElementBlock("div",Of,[n.is3d?(t.openBlock(),t.createElementBlock("div",Vf,Af)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",zf,[t.createVNode(t.unref(Ef),{ref_key:"carousel2d",ref:i,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:h},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(C,A)=>(t.openBlock(),t.createBlock(t.unref(Nf),{key:A},{default:t.withCtx(()=>[t.renderSlot(f.$slots,"default",{item:C},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",onClick:y[0]||(y[0]=C=>i.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",Rf,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:e.arrowsColor},null,8,If)]))],2)])):t.createCommentVNode("",!0),e.areSlidesArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",onClick:y[1]||(y[1]=C=>c())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",Ff,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:e.arrowsColor},null,8,Pf)]))],2)])):t.createCommentVNode("",!0),t.createElementVNode("div",Lf,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:y[2]||(y[2]=C=>m())},[(t.openBlock(),t.createElementBlock("svg",Df,[t.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:n.arrowsColor},null,8,Mf)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",jf,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(C,A)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${A}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${n.navigationHeight}px`,width:`${s.value===A?n.navigationActiveWidth:n.navigationActiveWidth/2}px`,borderRadius:`${n.navigationBorderRadius}px`,backgroundColor:`${s.value===A?n.navigationActiveColor:n.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:v=>d(A)},null,12,vf))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:y[3]||(y[3]=C=>i.value.next())},[(t.openBlock(),t.createElementBlock("svg",Wf,[t.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:n.arrowsColor},null,8,Uf)]))])):t.createCommentVNode("",!0)])],2))]))}},ui=xf(Hf,[["__scopeId","data-v-dd3cbf69"]]),Gf={PO1:"CFI",PO2:"CFV",PO3:"SFI",PO4:"SFV",PO5:"FI",PO6:"FV"},Jf={DF:"Dieciseisavos",OF:"Octavos",CF:"Cuartos",SF:"Semifinales","3ER":"Tercer lugar",FINAL:"Final"},qf={4:"Octavos",5:"Cuartos",6:"Semifinales",7:"Final"};/**
|
|
24
|
+
*/const ve={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"}},Er={itemsToShow:{default:ve.itemsToShow,type:Number},itemsToScroll:{default:ve.itemsToScroll,type:Number},wrapAround:{default:ve.wrapAround,type:Boolean},throttle:{default:ve.throttle,type:Number},snapAlign:{default:ve.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:ve.transition,type:Number},breakpoints:{default:ve.breakpoints,type:Object},autoplay:{default:ve.autoplay,type:Number},pauseAutoplayOnHover:{default:ve.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:ve.mouseDrag,type:Boolean},touchDrag:{default:ve.touchDrag,type:Boolean},dir:{default:ve.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:ve.i18n,type:Object},settings:{default(){return{}},type:Object}};function ky({config:e,slidesCount:a}){const{snapAlign:t,wrapAround:n,itemsToShow:s=1}=e;if(n)return Math.max(a-1,0);let i;switch(t){case"start":i=a-s;break;case"end":i=a-1;break;case"center":case"center-odd":i=a-Math.ceil((s-.5)/2);break;case"center-even":i=a-Math.ceil(s/2);break;default:i=0;break}return Math.max(i,0)}function Cy({config:e,slidesCount:a}){const{wrapAround:t,snapAlign:n,itemsToShow:s=1}=e;let i=0;if(t||s>a)return i;switch(n){case"start":i=0;break;case"end":i=s-1;break;case"center":case"center-odd":i=Math.floor((s-1)/2);break;case"center-even":i=Math.floor((s-2)/2);break;default:i=0;break}return i}function sn({val:e,max:a,min:t}){return a<t?e:Math.min(Math.max(e,t),a)}function Ey({config:e,currentSlide:a,slidesCount:t}){const{snapAlign:n,wrapAround:s,itemsToShow:i=1}=e;let r=a;switch(n){case"center":case"center-odd":r-=(i-1)/2;break;case"center-even":r-=(i-2)/2;break;case"end":r-=i-1;break}return s?r:sn({val:r,max:t-i,min:0})}function Br(e){return e?e.reduce((a,t)=>{var n;return t.type===o.Fragment?[...a,...Br(t.children)]:((n=t.type)===null||n===void 0?void 0:n.name)==="CarouselSlide"?[...a,t]:a},[]):[]}function rn({val:e,max:a,min:t=0}){return e>a?rn({val:e-(a+1),max:a,min:t}):e<t?rn({val:e+(a+1),max:a,min:t}):e}function By(e,a){let t;return a?function(...n){const s=this;t||(e.apply(s,n),t=!0,setTimeout(()=>t=!1,a))}:e}function xy(e,a){let t;return function(...n){t&&clearTimeout(t),t=setTimeout(()=>{e(...n),t=null},a)}}function Ny(e="",a={}){return Object.entries(a).reduce((t,[n,s])=>t.replace(`{${n}}`,String(s)),e)}var Ty=o.defineComponent({name:"ARIA",setup(){const e=o.inject("config",o.reactive(Object.assign({},ve))),a=o.inject("currentSlide",o.ref(0)),t=o.inject("slidesCount",o.ref(0));return()=>o.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},Ny(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:t.value}))}}),vy=o.defineComponent({name:"Carousel",props:Er,setup(e,{slots:a,emit:t,expose:n}){var s;const i=o.ref(null),r=o.ref([]),l=o.ref(0),u=o.ref(0),c=o.reactive(Object.assign({},ve));let m=Object.assign({},ve),p;const f=o.ref((s=e.modelValue)!==null&&s!==void 0?s:0),d=o.ref(0),h=o.ref(0),g=o.ref(0),b=o.ref(0);let S,_;o.provide("config",c),o.provide("slidesCount",u),o.provide("currentSlide",f),o.provide("maxSlide",g),o.provide("minSlide",b),o.provide("slideWidth",l);function V(){p=Object.assign({},e.breakpoints),m=Object.assign(Object.assign(Object.assign({},m),e),{i18n:Object.assign(Object.assign({},m.i18n),e.i18n),breakpoints:void 0}),H(m)}function z(){if(!p||!Object.keys(p).length)return;const w=Object.keys(p).map(x=>Number(x)).sort((x,D)=>+D-+x);let T=Object.assign({},m);w.some(x=>{const D=window.matchMedia(`(min-width: ${x}px)`).matches;return D&&(T=Object.assign(Object.assign({},T),p[x])),D}),H(T)}function H(w){Object.entries(w).forEach(([T,x])=>c[T]=x)}const ee=xy(()=>{z(),W()},16);function W(){if(!i.value)return;const w=i.value.getBoundingClientRect();l.value=w.width/c.itemsToShow}function le(){u.value<=0||(h.value=Math.ceil((u.value-1)/2),g.value=ky({config:c,slidesCount:u.value}),b.value=Cy({config:c,slidesCount:u.value}),c.wrapAround||(f.value=sn({val:f.value,max:g.value,min:b.value})))}o.onMounted(()=>{o.nextTick(()=>W()),setTimeout(()=>W(),1e3),z(),Ie(),window.addEventListener("resize",ee,{passive:!0}),t("init")}),o.onUnmounted(()=>{_&&clearTimeout(_),S&&clearInterval(S),window.removeEventListener("resize",ee,{passive:!0})});let $=!1;const ae={x:0,y:0},ie={x:0,y:0},U=o.reactive({x:0,y:0}),se=o.ref(!1),de=o.ref(!1),Ue=()=>{se.value=!0},He=()=>{se.value=!1};function $e(w){["INPUT","TEXTAREA","SELECT"].includes(w.target.tagName)||($=w.type==="touchstart",$||w.preventDefault(),!(!$&&w.button!==0||N.value)&&(ae.x=$?w.touches[0].clientX:w.clientX,ae.y=$?w.touches[0].clientY:w.clientY,document.addEventListener($?"touchmove":"mousemove",Ae,!0),document.addEventListener($?"touchend":"mouseup",Pe,!0)))}const Ae=By(w=>{de.value=!0,ie.x=$?w.touches[0].clientX:w.clientX,ie.y=$?w.touches[0].clientY:w.clientY;const T=ie.x-ae.x,x=ie.y-ae.y;U.y=x,U.x=T},c.throttle);function Pe(){const w=c.dir==="rtl"?-1:1,T=Math.sign(U.x)*.4,x=Math.round(U.x/l.value+T)*w;if(x&&!$){const D=we=>{we.stopPropagation(),window.removeEventListener("click",D,!0)};window.addEventListener("click",D,!0)}v(f.value-x),U.x=0,U.y=0,de.value=!1,document.removeEventListener($?"touchmove":"mousemove",Ae,!0),document.removeEventListener($?"touchend":"mouseup",Pe,!0)}function Ie(){!c.autoplay||c.autoplay<=0||(S=setInterval(()=>{c.pauseAutoplayOnHover&&se.value||I()},c.autoplay))}function R(){S&&(clearInterval(S),S=null),Ie()}const N=o.ref(!1);function v(w){const T=c.wrapAround?w:sn({val:w,max:g.value,min:b.value});f.value===T||N.value||(t("slide-start",{slidingToIndex:w,currentSlideIndex:f.value,prevSlideIndex:d.value,slidesCount:u.value}),N.value=!0,d.value=f.value,f.value=T,_=setTimeout(()=>{if(c.wrapAround){const x=rn({val:T,max:g.value,min:0});x!==f.value&&(f.value=x,t("loop",{currentSlideIndex:f.value,slidingToIndex:w}))}t("update:modelValue",f.value),t("slide-end",{currentSlideIndex:f.value,prevSlideIndex:d.value,slidesCount:u.value}),N.value=!1,R()},c.transition))}function I(){v(f.value+c.itemsToScroll)}function P(){v(f.value-c.itemsToScroll)}const L={slideTo:v,next:I,prev:P};o.provide("nav",L),o.provide("isSliding",N);const F=o.computed(()=>Ey({config:c,currentSlide:f.value,slidesCount:u.value}));o.provide("slidesToScroll",F);const Z=o.computed(()=>{const w=c.dir==="rtl"?-1:1,T=F.value*l.value*w;return{transform:`translateX(${U.x-T}px)`,transition:`${N.value?c.transition:0}ms`,margin:c.wrapAround?`0 -${u.value*l.value}px`:"",width:"100%"}});function ne(){V(),z(),le(),W(),R()}Object.keys(Er).forEach(w=>{["modelValue"].includes(w)||o.watch(()=>e[w],ne)}),o.watch(()=>e.modelValue,w=>{w!==f.value&&v(Number(w))}),o.watch(u,le),t("before-init"),V();const ce={config:c,slidesCount:u,slideWidth:l,next:I,prev:P,slideTo:v,currentSlide:f,maxSlide:g,minSlide:b,middleSlide:h};n({updateBreakpointsConfigs:z,updateSlidesData:le,updateSlideWidth:W,initDefaultConfigs:V,restartCarousel:ne,slideTo:v,next:I,prev:P,nav:L,data:ce});const Be=a.default||a.slides,xe=a.addons,Re=o.reactive(ce);return()=>{const w=Br(Be==null?void 0:Be(Re)),T=(xe==null?void 0:xe(Re))||[];w.forEach((Se,_e)=>Se.props.index=_e);let x=w;if(c.wrapAround){const Se=w.map((ke,te)=>o.cloneVNode(ke,{index:-w.length+te,isClone:!0,key:`clone-before-${te}`})),_e=w.map((ke,te)=>o.cloneVNode(ke,{index:w.length+te,isClone:!0,key:`clone-after-${te}`}));x=[...Se,...w,..._e]}r.value=w,u.value=Math.max(w.length,1);const D=o.h("ol",{class:"carousel__track",style:Z.value,onMousedownCapture:c.mouseDrag?$e:null,onTouchstartPassiveCapture:c.touchDrag?$e:null},x),we=o.h("div",{class:"carousel__viewport"},D);return o.h("section",{ref:i,class:{carousel:!0,"is-sliding":N.value,"is-dragging":de.value,"is-hover":se.value,"carousel--rtl":c.dir==="rtl"},dir:c.dir,"aria-label":c.i18n.ariaGallery,tabindex:"0",onMouseenter:Ue,onMouseleave:He},[we,T,o.h(Ty)])}}}),xr;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(xr||(xr={}));var Oy=o.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const t=o.inject("config",o.reactive(Object.assign({},ve))),n=o.inject("currentSlide",o.ref(0)),s=o.inject("slidesToScroll",o.ref(0)),i=o.inject("isSliding",o.ref(!1)),r=()=>e.index===n.value,l=()=>e.index===n.value-1,u=()=>e.index===n.value+1,c=()=>{const m=Math.floor(s.value),p=Math.ceil(s.value+t.itemsToShow-1);return e.index>=m&&e.index<=p};return()=>{var m;return o.h("li",{style:{width:`${100/t.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":c(),"carousel__slide--active":r(),"carousel__slide--prev":l(),"carousel__slide--next":u(),"carousel__slide--sliding":i.value},"aria-hidden":!c()},(m=a.default)===null||m===void 0?void 0:m.call(a))}}});const Ay=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},Vy=e=>(o.pushScopeId("data-v-dd3cbf69"),e=e(),o.popScopeId(),e),$y={class:"gsc-carousel"},Py={key:0},Iy=Vy(()=>o.createElementVNode("div",null,"no hay",-1)),Ry=[Iy],Ly={class:"gsc-carousel__2d__slides"},zy={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Fy=["fill"],My={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Dy=["fill"],jy={class:"gsc-carousel__2d__navigation"},Wy={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Uy=["stroke"],Hy={key:1,class:"gsc-carousel__2d__navigation__pagination"},Gy=["onClick"],qy={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Jy=["stroke"],Ky={__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:t}){const n=e;o.useCssVars(g=>({"0d808f0f":e.slideLeftArrowBackgroundImage,"1e0ef2e5":e.slidesArrowsLeftAndRight,"66d12b5c":e.slideRightArrowBackgroundImage,"2b22a85a":e.marginTop,"1a842b02":e.secondarySlidesOpacity}));const s=o.ref(null),i=o.ref({}),r=o.ref(0),l=o.ref(!1);o.watch(s,g=>{g&&l.value?(l.value=!1,u(n.items)):g&&g.slideTo&&g.slideTo(r.value)},{deep:!0}),o.watch(()=>n.currentItemIndex,g=>{r.value!==g&&f(g)}),o.watch(()=>n.items,g=>{s.value?u(g):l.value=!0},{immediate:!0});function u(g){if(g&&g.length&&s.value){if(n.defaultItemByProp){const b=n.items.findIndex(S=>S[n.defaultItemByProp.propName]===n.defaultItemByProp.value);b!==-1?(r.value=b,i.value=g[b]):(r.value=0,i.value=g[0])}else r.value=n.defaultItemByIndex,i.value=g[n.defaultItemByIndex];s.value.slideTo&&s.value.slideTo(r.value),t("input",{selectedItem:i.value,selectedItemIndex:r.value})}}function c(){s.value&&s.value.next()}function m(){s.value&&s.value.prev()}function p(){s.value&&s.value.updateSlideWidth()}function f(g){s.value&&s.value.slideTo(g)}function d(g){s.value.slideTo(g)}function h(g){const b=g.slidingToIndex<0?n.items.length-1:g.slidingToIndex===n.items.length?0:g.slidingToIndex;r.value=b,i.value=n.items[b],t("update:currentItemIndex",b),t("input",{selectedItem:i.value,selectedItemIndex:r.value})}return a({prev:m,next:c,updateSlideWidth:p,slideTo:f}),(g,b)=>(o.openBlock(),o.createElementBlock("div",$y,[n.is3d?(o.openBlock(),o.createElementBlock("div",Py,Ry)):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[o.createElementVNode("div",Ly,[o.createVNode(o.unref(vy),{ref_key:"carousel2d",ref:s,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:h},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.items,(S,_)=>(o.openBlock(),o.createBlock(o.unref(Oy),{key:_},{default:o.withCtx(()=>[o.renderSlot(g.$slots,"default",{item:S},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible?(o.openBlock(),o.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",onClick:b[0]||(b[0]=S=>s.value.prev())},[o.createElementVNode("div",{class:o.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(o.openBlock(),o.createElementBlock("svg",zy,[o.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,Fy)]))],2)])):o.createCommentVNode("",!0),e.areSlidesArrowsVisible?(o.openBlock(),o.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",onClick:b[1]||(b[1]=S=>c())},[o.createElementVNode("div",{class:o.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(o.openBlock(),o.createElementBlock("svg",My,[o.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,Dy)]))],2)])):o.createCommentVNode("",!0),o.createElementVNode("div",jy,[e.areNavigationArrowsVisible?(o.openBlock(),o.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:b[2]||(b[2]=S=>m())},[(o.openBlock(),o.createElementBlock("svg",Wy,[o.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,Uy)]))])):o.createCommentVNode("",!0),e.isPaginationVisible?(o.openBlock(),o.createElementBlock("div",Hy,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.items,(S,_)=>(o.openBlock(),o.createElementBlock("div",{key:`i-${_}`,class:"gsc-carousel__2d__navigation__pagination__item",style:o.normalizeStyle({height:`${n.navigationHeight}px`,width:`${r.value===_?n.navigationActiveWidth:n.navigationActiveWidth/2}px`,borderRadius:`${n.navigationBorderRadius}px`,backgroundColor:`${r.value===_?n.navigationActiveColor:n.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:V=>d(_)},null,12,Gy))),128))])):o.createCommentVNode("",!0),e.areNavigationArrowsVisible?(o.openBlock(),o.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:b[3]||(b[3]=S=>s.value.next())},[(o.openBlock(),o.createElementBlock("svg",qy,[o.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,Jy)]))])):o.createCommentVNode("",!0)])],2))]))}},Nr=Ay(Ky,[["__scopeId","data-v-dd3cbf69"]]),Zy={PO1:"CFI",PO2:"CFV",PO3:"SFI",PO4:"SFV",PO5:"FI",PO6:"FV"},Xy={DF:"Dieciseisavos",OF:"Octavos",CF:"Cuartos",SF:"Semifinales","3ER":"Tercer lugar",FINAL:"Final"},Yy={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"}},hi={itemsToShow:{default:Z.itemsToShow,type:Number},itemsToScroll:{default:Z.itemsToScroll,type:Number},wrapAround:{default:Z.wrapAround,type:Boolean},throttle:{default:Z.throttle,type:Number},snapAlign:{default:Z.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Z.transition,type:Number},breakpoints:{default:Z.breakpoints,type:Object},autoplay:{default:Z.autoplay,type:Number},pauseAutoplayOnHover:{default:Z.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Z.mouseDrag,type:Boolean},touchDrag:{default:Z.touchDrag,type:Boolean},dir:{default:Z.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Z.i18n,type:Object},settings:{default(){return{}},type:Object}};function Zf({config:e,slidesCount:a}){const{snapAlign:o,wrapAround:n,itemsToShow:i=1}=e;if(n)return Math.max(a-1,0);let r;switch(o){case"start":r=a-i;break;case"end":r=a-1;break;case"center":case"center-odd":r=a-Math.ceil((i-.5)/2);break;case"center-even":r=a-Math.ceil(i/2);break;default:r=0;break}return Math.max(r,0)}function Xf({config:e,slidesCount:a}){const{wrapAround:o,snapAlign:n,itemsToShow:i=1}=e;let r=0;if(o||i>a)return r;switch(n){case"start":r=0;break;case"end":r=i-1;break;case"center":case"center-odd":r=Math.floor((i-1)/2);break;case"center-even":r=Math.floor((i-2)/2);break;default:r=0;break}return r}function ga({val:e,max:a,min:o}){return a<o?e:Math.min(Math.max(e,o),a)}function Kf({config:e,currentSlide:a,slidesCount:o}){const{snapAlign:n,wrapAround:i,itemsToShow:r=1}=e;let s=a;switch(n){case"center":case"center-odd":s-=(r-1)/2;break;case"center-even":s-=(r-2)/2;break;case"end":s-=r-1;break}return i?s:ga({val:s,max:o-r,min:0})}function fi(e){return e?e.reduce((a,o)=>{var n;return o.type===t.Fragment?[...a,...fi(o.children)]:((n=o.type)===null||n===void 0?void 0:n.name)==="CarouselSlide"?[...a,o]:a},[]):[]}function ya({val:e,max:a,min:o=0}){return e>a?ya({val:e-(a+1),max:a,min:o}):e<o?ya({val:e+(a+1),max:a,min:o}):e}function Yf(e,a){let o;return a?function(...n){const i=this;o||(e.apply(i,n),o=!0,setTimeout(()=>o=!1,a))}:e}function Qf(e,a){let o;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{e(...n),o=null},a)}}function eg(e="",a={}){return Object.entries(a).reduce((o,[n,i])=>o.replace(`{${n}}`,String(i)),e)}var tg=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Z))),a=t.inject("currentSlide",t.ref(0)),o=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},eg(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:o.value}))}}),og=t.defineComponent({name:"Carousel",props:hi,setup(e,{slots:a,emit:o,expose:n}){var i;const r=t.ref(null),s=t.ref([]),l=t.ref(0),p=t.ref(0),c=t.reactive(Object.assign({},Z));let m=Object.assign({},Z),u;const g=t.ref((i=e.modelValue)!==null&&i!==void 0?i:0),d=t.ref(0),h=t.ref(0),f=t.ref(0),y=t.ref(0);let C,A;t.provide("config",c),t.provide("slidesCount",p),t.provide("currentSlide",g),t.provide("maxSlide",f),t.provide("minSlide",y),t.provide("slideWidth",l);function v(){u=Object.assign({},e.breakpoints),m=Object.assign(Object.assign(Object.assign({},m),e),{i18n:Object.assign(Object.assign({},m.i18n),e.i18n),breakpoints:void 0}),ne(m)}function U(){if(!u||!Object.keys(u).length)return;const b=Object.keys(u).map(x=>Number(x)).sort((x,M)=>+M-+x);let V=Object.assign({},m);b.some(x=>{const M=window.matchMedia(`(min-width: ${x}px)`).matches;return M&&(V=Object.assign(Object.assign({},V),u[x])),M}),ne(V)}function ne(b){Object.entries(b).forEach(([V,x])=>c[V]=x)}const he=Qf(()=>{U(),X()},16);function X(){if(!r.value)return;const b=r.value.getBoundingClientRect();l.value=b.width/c.itemsToShow}function se(){p.value<=0||(h.value=Math.ceil((p.value-1)/2),f.value=Zf({config:c,slidesCount:p.value}),y.value=Xf({config:c,slidesCount:p.value}),c.wrapAround||(g.value=ga({val:g.value,max:f.value,min:y.value})))}t.onMounted(()=>{t.nextTick(()=>X()),setTimeout(()=>X(),1e3),U(),Ae(),window.addEventListener("resize",he,{passive:!0}),o("init")}),t.onUnmounted(()=>{A&&clearTimeout(A),C&&clearInterval(C),window.removeEventListener("resize",he,{passive:!0})});let R=!1;const ae={x:0,y:0},ee={x:0,y:0},j=t.reactive({x:0,y:0}),te=t.ref(!1),re=t.ref(!1),Ue=()=>{te.value=!0},He=()=>{te.value=!1};function Ve(b){["INPUT","TEXTAREA","SELECT"].includes(b.target.tagName)||(R=b.type==="touchstart",R||b.preventDefault(),!(!R&&b.button!==0||B.value)&&(ae.x=R?b.touches[0].clientX:b.clientX,ae.y=R?b.touches[0].clientY:b.clientY,document.addEventListener(R?"touchmove":"mousemove",fe,!0),document.addEventListener(R?"touchend":"mouseup",$e,!0)))}const fe=Yf(b=>{re.value=!0,ee.x=R?b.touches[0].clientX:b.clientX,ee.y=R?b.touches[0].clientY:b.clientY;const V=ee.x-ae.x,x=ee.y-ae.y;j.y=x,j.x=V},c.throttle);function $e(){const b=c.dir==="rtl"?-1:1,V=Math.sign(j.x)*.4,x=Math.round(j.x/l.value+V)*b;if(x&&!R){const M=be=>{be.stopPropagation(),window.removeEventListener("click",M,!0)};window.addEventListener("click",M,!0)}E(g.value-x),j.x=0,j.y=0,re.value=!1,document.removeEventListener(R?"touchmove":"mousemove",fe,!0),document.removeEventListener(R?"touchend":"mouseup",$e,!0)}function Ae(){!c.autoplay||c.autoplay<=0||(C=setInterval(()=>{c.pauseAutoplayOnHover&&te.value||T()},c.autoplay))}function O(){C&&(clearInterval(C),C=null),Ae()}const B=t.ref(!1);function E(b){const V=c.wrapAround?b:ga({val:b,max:f.value,min:y.value});g.value===V||B.value||(o("slide-start",{slidingToIndex:b,currentSlideIndex:g.value,prevSlideIndex:d.value,slidesCount:p.value}),B.value=!0,d.value=g.value,g.value=V,A=setTimeout(()=>{if(c.wrapAround){const x=ya({val:V,max:f.value,min:0});x!==g.value&&(g.value=x,o("loop",{currentSlideIndex:g.value,slidingToIndex:b}))}o("update:modelValue",g.value),o("slide-end",{currentSlideIndex:g.value,prevSlideIndex:d.value,slidesCount:p.value}),B.value=!1,O()},c.transition))}function T(){E(g.value+c.itemsToScroll)}function N(){E(g.value-c.itemsToScroll)}const $={slideTo:E,next:T,prev:N};t.provide("nav",$),t.provide("isSliding",B);const z=t.computed(()=>Kf({config:c,currentSlide:g.value,slidesCount:p.value}));t.provide("slidesToScroll",z);const D=t.computed(()=>{const b=c.dir==="rtl"?-1:1,V=z.value*l.value*b;return{transform:`translateX(${j.x-V}px)`,transition:`${B.value?c.transition:0}ms`,margin:c.wrapAround?`0 -${p.value*l.value}px`:"",width:"100%"}});function W(){v(),U(),se(),X(),O()}Object.keys(hi).forEach(b=>{["modelValue"].includes(b)||t.watch(()=>e[b],W)}),t.watch(()=>e.modelValue,b=>{b!==g.value&&E(Number(b))}),t.watch(p,se),o("before-init"),v();const K={config:c,slidesCount:p,slideWidth:l,next:T,prev:N,slideTo:E,currentSlide:g,maxSlide:f,minSlide:y,middleSlide:h};n({updateBreakpointsConfigs:U,updateSlidesData:se,updateSlideWidth:X,initDefaultConfigs:v,restartCarousel:W,slideTo:E,next:T,prev:N,nav:$,data:K});const ge=a.default||a.slides,ye=a.addons,je=t.reactive(K);return()=>{const b=fi(ge==null?void 0:ge(je)),V=(ye==null?void 0:ye(je))||[];b.forEach((we,_e)=>we.props.index=_e);let x=b;if(c.wrapAround){const we=b.map((Se,oe)=>t.cloneVNode(Se,{index:-b.length+oe,isClone:!0,key:`clone-before-${oe}`})),_e=b.map((Se,oe)=>t.cloneVNode(Se,{index:b.length+oe,isClone:!0,key:`clone-after-${oe}`}));x=[...we,...b,..._e]}s.value=b,p.value=Math.max(b.length,1);const M=t.h("ol",{class:"carousel__track",style:D.value,onMousedownCapture:c.mouseDrag?Ve:null,onTouchstartPassiveCapture:c.touchDrag?Ve:null},x),be=t.h("div",{class:"carousel__viewport"},M);return t.h("section",{ref:r,class:{carousel:!0,"is-sliding":B.value,"is-dragging":re.value,"is-hover":te.value,"carousel--rtl":c.dir==="rtl"},dir:c.dir,"aria-label":c.i18n.ariaGallery,tabindex:"0",onMouseenter:Ue,onMouseleave:He},[be,V,t.h(tg)])}}}),ba;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(ba||(ba={}));const ag={arrowUp:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z",arrowDown:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",arrowRight:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",arrowLeft:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"};function ng(e){return e in ba}const wa=e=>{const a=t.inject("config",t.reactive(Object.assign({},Z))),o=String(e.name),n=`icon${o.charAt(0).toUpperCase()+o.slice(1)}`;if(!o||typeof o!="string"||!ng(o))return;const i=ag[o],r=t.h("path",{d:i}),s=a.i18n[n]||e.title||o,l=t.h("title",s);return t.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":s},[l,r])};wa.props={name:String,title:String};const rg=(e,{slots:a,attrs:o})=>{const{next:n,prev:i}=a||{},r=t.inject("config",t.reactive(Object.assign({},Z))),s=t.inject("maxSlide",t.ref(1)),l=t.inject("minSlide",t.ref(1)),p=t.inject("currentSlide",t.ref(1)),c=t.inject("nav",{}),{dir:m,wrapAround:u,i18n:g}=r,d=m==="rtl",h=t.h("button",{type:"button",class:["carousel__prev",!u&&p.value<=l.value&&"carousel__prev--disabled",o==null?void 0:o.class],"aria-label":g.ariaPreviousSlide,onClick:c.prev},(i==null?void 0:i())||t.h(wa,{name:d?"arrowRight":"arrowLeft"})),f=t.h("button",{type:"button",class:["carousel__next",!u&&p.value>=s.value&&"carousel__next--disabled",o==null?void 0:o.class],"aria-label":g.ariaNextSlide,onClick:c.next},(n==null?void 0:n())||t.h(wa,{name:d?"arrowLeft":"arrowRight"}));return[h,f]};var ig=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const o=t.inject("config",t.reactive(Object.assign({},Z))),n=t.inject("currentSlide",t.ref(0)),i=t.inject("slidesToScroll",t.ref(0)),r=t.inject("isSliding",t.ref(!1)),s=()=>e.index===n.value,l=()=>e.index===n.value-1,p=()=>e.index===n.value+1,c=()=>{const m=Math.floor(i.value),u=Math.ceil(i.value+o.itemsToShow-1);return e.index>=m&&e.index<=u};return()=>{var m;return t.h("li",{style:{width:`${100/o.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":c(),"carousel__slide--active":s(),"carousel__slide--prev":l(),"carousel__slide--next":p(),"carousel__slide--sliding":r.value},"aria-hidden":!c()},(m=a.default)===null||m===void 0?void 0:m.call(a))}}});const pe=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},sg={__name:"MatchDay",props:{isLandingMode:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#183143"},numberColor:{type:String,default:"white"},numberFontFamily:{type:String,default:"sans-serif"},numberFontSize:{type:String,default:"14px"},textColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},textFontFamily:{type:String,default:"'Poppins-Regular', sans-serif"},textFontSize:{type:String,default:"8px"},bottomLineColor:{type:String,default:"#cbee6b"},selectedMatchDayBackgroundColor:{type:String,default:"#243b4c"},height:{type:String,default:"fit-content"},matchDay:{type:Object,default:()=>{}},matchDaySelected:{type:Object,default:()=>{}},componentWidth:{type:Number,default:0}},emits:["change-match-day"],setup(e,{emit:a}){const o=e,n=t.computed(()=>{const l={"background-color":o.backgroundColor,height:o.height};return o.matchDay.key===o.matchDaySelected.key&&(l["border-bottom"]=`solid 1px ${o.bottomLineColor}`,l["background-color"]=o.selectedMatchDayBackgroundColor),o.isLandingMode||(l["border-right"]="solid 1px rgba(255, 255, 255, 0.1)"),l}),i=t.computed(()=>({color:o.numberColor,"font-family":o.numberFontFamily,"font-size":o.numberFontSize})),r=t.computed(()=>({color:o.textColor,"font-family":o.textFontFamily,"font-size":o.textFontSize}));function s(l){a("click-match-day",l)}return(l,p)=>(t.openBlock(),t.createElementBlock("div",{class:"match-day",style:t.normalizeStyle({...n.value}),onClick:p[0]||(p[0]=c=>s(e.matchDay))},[t.createElementVNode("div",{class:"match-day__value",style:t.normalizeStyle(i.value)},t.toDisplayString(e.matchDay.valueText),5),Number.isNaN(e.matchDay.value)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:"match-day__text",style:t.normalizeStyle([e.isLandingMode?"margin-top:3px":"margin-top:4px",r.value])},t.toDisplayString(e.isLandingMode||e.componentWidth<=425?"JOR":"JORNADA"),5))],4))}},lg=pe(sg,[["__scopeId","data-v-89459353"]]),cg={__name:"MatchDayPicker",props:{matchDays:{type:Array,default:()=>[]},isLandingMode:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#183143"},numberColor:{type:String,default:"white"},numberFontFamily:{type:String,default:"sans-serif"},numberFontSize:{type:String,default:"14px"},textColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"8px"},bottomLineColor:{type:String,default:"#cbee6b"},selectedMatchDayBackgroundColor:{type:String,default:"#243b4c"},height:{type:String,default:"fit-content"},itemsToShow:{type:Number,default:9},itemsToScroll:{type:Number,default:9},defaultMatchDayKey:{type:[String,null],default:""},componentWidth:{type:Number,default:0},closestMatchDay:{type:[Number,String],default:0}},emits:["change-match-day"],setup(e,{emit:a}){const o=e;t.useCssVars(c=>({"469bccd0":r.value,"469dfb50":s.value}));const n=t.ref(null),i=t.computed(()=>({itemsToShow:o.itemsToShow,itemsToScroll:o.itemsToScroll,snapAlign:"start"})),r=t.computed(()=>n.value.data.currentSlide.value==0?"none":"inline"),s=t.computed(()=>n.value.data.currentSlide.value==n.value.data.maxSlide.value?"none":"inline"),l=t.ref({});t.watch(()=>o.closestMatchDay,c=>{if(c){const m=o.matchDays.find(u=>u.key===c);p(m||o.matchDays[0],!0)}}),t.watch(()=>o.matchDays,c=>{if(!o.closestMatchDay&&c&&c.length){const m=c.find(u=>u.key===o.defaultMatchDayKey);l.value=m||c[0],a("change-match-day",l.value)}},{immediate:!0});function p(c,m=!1){m&&n.value.slideTo(c.index),l.value=c,a("change-match-day",l.value)}return(c,m)=>(t.openBlock(),t.createElementBlock("div",{class:"match-day-picker",style:t.normalizeStyle(e.isLandingMode?"border-top-left-radius: 9px; border-top-right-radius: 9px;":"margin-bottom:12px")},[t.createVNode(t.unref(og),t.mergeProps(i.value,{ref_key:"matchDayPickerCarousel",ref:n}),{addons:t.withCtx(()=>[t.createVNode(t.unref(rg))]),default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.matchDays,u=>(t.openBlock(),t.createBlock(t.unref(ig),{key:u.key},{default:t.withCtx(()=>[t.createVNode(lg,t.mergeProps(o,{"match-day":u,"match-day-selected":l.value,"is-landing-mode":e.isLandingMode,"component-width":e.componentWidth,onClickMatchDay:p}),null,16,["match-day","match-day-selected","is-landing-mode","component-width"])]),_:2},1024))),128))]),_:1},16)],4))}},dg=pe(cg,[["__scopeId","data-v-930cd509"]]);function Ye(e,a=80){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-"}${a}/${e}.png`}function gi(e){if(typeof e=="string"){let a=e.replace("M","J ");return a=a.replace("PO1","CFI"),a=a.replace("PO2","CFV"),a=a.replace("PO3","SFI"),a=a.replace("PO4","SFV"),a=a.replace("PO5","FI"),a=a.replace("PO6","FV"),a}}function mg(e){let a="";return e.game_status!=4&&(a+="Finalizado"),(e.penalties_score_home_team!=0||e.penalties_score_visiting_team!=0)&&(a+=" - Penales "+e.penalties_score_home_team+" - "+e.penalties_score_visiting_team),a}const pg={class:"game-info__teams"},ug={class:"game-info__teams__team__logo"},hg=["src"],fg={class:"game-info__teams__detail"},gg={key:0,class:"game-info__teams__detail__pre-game"},yg={class:"game-info__teams__team__logo away"},bg=["src"],wg={key:0},_g={key:0},Sg={key:1},kg={__name:"GameInfo",props:{isLandingMode:{type:Boolean,default:!1},isAcronymVisible:{type:Boolean,default:!1},isTelevisionVisible:{type:Boolean,default:!0},game:{type:Object,required:!0},colorPrimary:{type:String,default:"white"},colorSecondary:{type:String,default:"grey"},namesFontSize:{type:String,default:"12px"},timeFontSize:{type:String,default:"12px"},timeZoneFontSize:{type:String,default:"8px"},scoreFontSize:{type:String,default:"13px"},namesFontFamily:{type:String,default:"sans-serif"},scoreFontFamily:{type:String,default:"sans-serif"},additionalInfoFontFamily:{type:String,default:"sans-serif"},additionalInfoFontSize:{type:String,default:"9px"}},setup(e){const a=e,o=t.computed(()=>{const c=new Date(a.game.dateTimeMillis),m=c.getHours(),u=c.getMinutes();return`${m<10?`0${m}`:m}:${u<10?`0${u}`:u}`}),n=t.computed(()=>{let c="120px";return(a.isLandingMode||a.isAcronymVisible)&&(c="70px"),{"min-width":c}}),i=t.computed(()=>({"font-size":a.namesFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary})),r=t.computed(()=>({"font-size":a.additionalInfoFontSize,"font-family":a.additionalInfoFontFamily,color:a.colorSecondary})),s=t.computed(()=>({"font-size":a.scoreFontSize,"font-family":a.scoreFontFamily,color:a.colorPrimary})),l=t.computed(()=>({"font-size":a.timeZoneFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary})),p=t.computed(()=>({"font-size":a.timeFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary}));return(c,m)=>(t.openBlock(),t.createElementBlock("div",{class:"game-info",style:t.normalizeStyle(e.isLandingMode?"gap:5px":"")},[t.createElementVNode("div",pg,[t.createElementVNode("div",{class:"game-info__teams__team",style:t.normalizeStyle(n.value)},[t.createElementVNode("div",{class:"game-info__teams__team__name",style:t.normalizeStyle(i.value)},t.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.home_team.acronym:e.game.home_team.colloquial_name),5),t.createElementVNode("div",ug,[t.createElementVNode("img",{src:t.unref(Ye)(e.game.home_team.team_id),alt:""},null,8,hg)])],4),t.createElementVNode("div",fg,[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock("div",gg,[t.createElementVNode("div",null,[t.createElementVNode("span",{style:t.normalizeStyle(p.value)},t.toDisplayString(o.value),5),t.createTextVNode(),t.createElementVNode("span",{style:t.normalizeStyle(l.value)},"CST",4)])])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"game-info__teams__detail__score",style:t.normalizeStyle(s.value)},[t.createElementVNode("span",null,t.toDisplayString(e.game.score[0])+" - "+t.toDisplayString(e.game.score[1]),1)],4))]),t.createElementVNode("div",{class:"game-info__teams__team away",style:t.normalizeStyle(n.value)},[t.createElementVNode("div",yg,[t.createElementVNode("img",{src:t.unref(Ye)(e.game.visiting_team.team_id),alt:""},null,8,bg)]),t.createElementVNode("div",{class:"game-info__teams__team__name",style:t.normalizeStyle(i.value)},t.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.visiting_team.acronym:e.game.visiting_team.colloquial_name),5)],4)]),t.createElementVNode("div",{class:"game-info__status",style:t.normalizeStyle([r.value,e.isLandingMode?"line-height: normal":""])},[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock("span",wg,[e.isTelevisionVisible?(t.openBlock(),t.createElementBlock("span",_g,t.toDisplayString(e.game.tv_stations.join(", ")),1)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",Sg,t.toDisplayString(t.unref(mg)(e.game)),1))],4)],4))}},yi=pe(kg,[["__scopeId","data-v-afb1954b"]]),bi=e=>(t.pushScopeId("data-v-8839c56d"),e=e(),t.popScopeId(),e),Cg={class:"game-status"},Bg={key:0,class:"game-status__day__live"},Eg=bi(()=>t.createElementVNode("span",null,"LIVE",-1)),Ng=bi(()=>t.createElementVNode("span",{class:"dot"},null,-1)),xg=[Eg,Ng],Tg={key:0,class:"game-status__round"},Og={__name:"GameStatus",props:{isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},status:{type:Number,default:4},isLive:{type:Boolean,default:!1},dateTimeMillis:{type:Number,default:0},roundAbbreviation:{type:String,default:""},fontSize:{type:String,default:"10px"}},setup(e){const a=e,o=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],n=t.computed(()=>{let s="";if(a.dateTimeMillis){const l=new Date(a.dateTimeMillis);s=`${l.getDate()} ${o[l.getMonth()]}`}return s}),i=t.computed(()=>({"font-size":a.fontSize})),r=t.computed(()=>{let s=[];return a.isLive?s.push("live"):a.status!==1&&s.push("pre-match"),s});return(s,l)=>(t.openBlock(),t.createElementBlock("div",Cg,[t.createElementVNode("div",{class:t.normalizeClass(["game-status__day",r.value]),style:t.normalizeStyle(i.value)},[e.isLive?(t.openBlock(),t.createElementBlock("div",Bg,xg)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(n.value),1)],64))],6),e.isRoundMode?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Tg,t.toDisplayString(e.roundAbbreviation),1))]))}},wi=pe(Og,[["__scopeId","data-v-8839c56d"]]),ue={SHOW_GAME_EVENTS:"SHOW_GAME_EVENTS",PLAY_GOALS:"PLAY_GOALS",PLAY_RESUME:"PLAY_RESUME",NOTIFICATION:"NOTIFICATION",STATISTICS:"STATISTICS"},Vg=e=>(t.pushScopeId("data-v-0d97b1a8"),e=e(),t.popScopeId(),e),$g={class:"actions"},Ag={class:"actions__row"},zg=Vg(()=>t.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.87471 3.35132C9.31653 3.35132 9.67471 3.70949 9.67471 4.15132V10.4531C9.67471 10.8949 9.31653 11.2531 8.87471 11.2531C8.43288 11.2531 8.07471 10.8949 8.07471 10.4531V4.15132C8.07471 3.70949 8.43288 3.35132 8.87471 3.35132Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.67549 0.199951C5.11732 0.199951 5.47549 0.558123 5.47549 0.999951V10.4526C5.47549 10.8944 5.11732 11.2526 4.67549 11.2526C4.23366 11.2526 3.87549 10.8944 3.87549 10.4526V0.999951C3.87549 0.558123 4.23366 0.199951 4.67549 0.199951Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.0002 5.45154C1.44202 5.45154 1.8002 5.80971 1.8002 6.25154V10.4527C1.8002 10.8945 1.44202 11.2527 1.0002 11.2527C0.558368 11.2527 0.200195 10.8945 0.200195 10.4527V6.25154C0.200195 5.80971 0.558368 5.45154 1.0002 5.45154Z",fill:"#EEEC6B"})],-1)),Rg=[zg],Ig={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Fg=["fill"],Pg={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Lg=["fill"],Dg={__name:"GameActionsLanding",props:{gameStatus:{type:Number,default:4},isLive:{type:Boolean,default:!1},hasVideo:{type:Boolean,default:!1},iconColor:{type:String,default:"#CBEE6B"},iconBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},iconBorderColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},showPlayButton:{type:Boolean,default:!1}},emits:["action"],setup(e,{emit:a}){const o=e,n=t.computed(()=>({backgroundColor:o.iconBackgroundColor,borderColor:o.iconBorderColor}));function i(r){a("action",r)}return(r,s)=>(t.openBlock(),t.createElementBlock("div",$g,[t.createElementVNode("div",Ag,[t.createElementVNode("div",{class:"actions__button rounded",style:t.normalizeStyle(n.value),onClick:s[0]||(s[0]=l=>i(t.unref(ue).STATISTICS))},Rg,4),e.showPlayButton&&e.hasVideo?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button rounded",style:t.normalizeStyle(n.value),onClick:s[1]||(s[1]=l=>i(t.unref(ue).PLAY_RESUME))},[(t.openBlock(),t.createElementBlock("svg",Ig,[t.createElementVNode("path",{d:"M0.442694 7.9474C0.385489 7.90953 0.337676 7.85295 0.304408 7.78375C0.27114 7.71456 0.25368 7.63538 0.253908 7.55475V0.444134C0.253987 0.363779 0.271562 0.284951 0.304765 0.216032C0.337968 0.147113 0.385557 0.090677 0.442475 0.0527243C0.499393 0.0147716 0.563511 -0.00327964 0.628014 0.000489552C0.692517 0.00425874 0.754994 0.0297075 0.808803 0.0741304L5.09491 3.62986C5.14387 3.67036 5.18401 3.7253 5.21178 3.78978C5.23955 3.85426 5.25409 3.92628 5.25409 3.99944C5.25409 4.0726 5.23955 4.14462 5.21178 4.2091C5.18401 4.27358 5.14387 4.32852 5.09491 4.36902L0.808803 7.92559C0.755077 7.97011 0.692648 7.99565 0.628173 7.99949C0.563698 8.00333 0.499593 7.98533 0.442694 7.9474Z",fill:o.iconColor},null,8,Fg)]))],4)):t.createCommentVNode("",!0),e.gameStatus===4444&&!e.isLive?(t.openBlock(),t.createElementBlock("div",{key:1,class:"actions__button",onClick:s[2]||(s[2]=l=>i(t.unref(ue).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",Pg,[t.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:o.iconColor},null,8,Lg)]))])):t.createCommentVNode("",!0)])]))}},Mg=pe(Dg,[["__scopeId","data-v-0d97b1a8"]]),_a=e=>(t.pushScopeId("data-v-af6919bd"),e=e(),t.popScopeId(),e),jg={class:"actions"},vg={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Wg=["fill"],Ug={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Hg=["fill"],Gg=_a(()=>t.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.87471 3.35132C9.31653 3.35132 9.67471 3.70949 9.67471 4.15132V10.4531C9.67471 10.8949 9.31653 11.2531 8.87471 11.2531C8.43288 11.2531 8.07471 10.8949 8.07471 10.4531V4.15132C8.07471 3.70949 8.43288 3.35132 8.87471 3.35132Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.67549 0.199951C5.11732 0.199951 5.47549 0.558123 5.47549 0.999951V10.4526C5.47549 10.8944 5.11732 11.2526 4.67549 11.2526C4.23366 11.2526 3.87549 10.8944 3.87549 10.4526V0.999951C3.87549 0.558123 4.23366 0.199951 4.67549 0.199951Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.0002 5.45154C1.44202 5.45154 1.8002 5.80971 1.8002 6.25154V10.4527C1.8002 10.8945 1.44202 11.2527 1.0002 11.2527C0.558368 11.2527 0.200195 10.8945 0.200195 10.4527V6.25154C0.200195 5.80971 0.558368 5.45154 1.0002 5.45154Z",fill:"#EEEC6B"})],-1)),Jg=[Gg],qg={key:0,class:"actions__videos"},Zg={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Xg=["fill"],Kg={key:1,class:"actions__videos__thumbnails"},Yg=_a(()=>t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__goals"},null,-1)),Qg=_a(()=>t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__summary"},null,-1)),e0={height:24,width:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t0=["stroke"],o0={__name:"GameActionsFull",props:{gameStatus:{type:Number,default:4},isLive:{type:Boolean,default:!1},hasVideo:{type:Boolean,default:!1},hasActions:{type:Boolean,default:!0},areEventsVisible:{type:Boolean,default:!1},iconColor:{type:String,default:"#CBEE6B"},iconBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},iconBorderColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},showPlayButton:{type:Boolean,default:!1},arrowColor:{type:String,default:"white"},thumbnailFontFamily:{type:String,default:"sans-serif"},thumbnailFontSize:{type:String,default:"8px"},thumbnailColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:a}){const o=e,n=t.computed(()=>({backgroundColor:o.iconBackgroundColor,borderColor:o.iconBorderColor})),i=t.computed(()=>{const p=[];return o.componentWidth<540&&p.push("mobile"),p}),r=t.computed(()=>o.componentWidth>730),s=t.computed(()=>({color:o.thumbnailColor,fontFamily:o.thumbnailFontFamily,fontSize:o.thumbnailFontSize}));function l(p){a("action",p)}return(p,c)=>(t.openBlock(),t.createElementBlock("div",jg,[t.createElementVNode("div",{class:t.normalizeClass(["actions__buttons",i.value])},[e.gameStatus===4444&&!e.isLive&&!r.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button",onClick:c[0]||(c[0]=m=>l(t.unref(ue).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",vg,[t.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:o.iconColor},null,8,Wg)]))])):t.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo&&!r.value?(t.openBlock(),t.createElementBlock("div",{key:1,class:"actions__button rounded",style:t.normalizeStyle(n.value),onClick:c[1]||(c[1]=m=>l(t.unref(ue).PLAY_RESUME))},[(t.openBlock(),t.createElementBlock("svg",Ug,[t.createElementVNode("path",{d:"M0.442694 7.9474C0.385489 7.90953 0.337676 7.85295 0.304408 7.78375C0.27114 7.71456 0.25368 7.63538 0.253908 7.55475V0.444134C0.253987 0.363779 0.271562 0.284951 0.304765 0.216032C0.337968 0.147113 0.385557 0.090677 0.442475 0.0527243C0.499393 0.0147716 0.563511 -0.00327964 0.628014 0.000489552C0.692517 0.00425874 0.754994 0.0297075 0.808803 0.0741304L5.09491 3.62986C5.14387 3.67036 5.18401 3.7253 5.21178 3.78978C5.23955 3.85426 5.25409 3.92628 5.25409 3.99944C5.25409 4.0726 5.23955 4.14462 5.21178 4.2091C5.18401 4.27358 5.14387 4.32852 5.09491 4.36902L0.808803 7.92559C0.755077 7.97011 0.692648 7.99565 0.628173 7.99949C0.563698 8.00333 0.499593 7.98533 0.442694 7.9474Z",fill:o.iconColor},null,8,Hg)]))],4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"actions__button rounded",style:t.normalizeStyle(n.value),onClick:c[2]||(c[2]=m=>l(t.unref(ue).STATISTICS))},Jg,4)],2),r.value?(t.openBlock(),t.createElementBlock("div",qg,[e.gameStatus===4444&&!e.isLive?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button",onClick:c[3]||(c[3]=m=>l(t.unref(ue).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",Zg,[t.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:o.iconColor},null,8,Xg)]))])):t.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo?(t.openBlock(),t.createElementBlock("div",Kg,[t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:c[4]||(c[4]=m=>l(t.unref(ue).PLAY_GOALS))},[Yg,t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:t.normalizeStyle(s.value)}," Goles ",4)]),t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:c[5]||(c[5]=m=>l(t.unref(ue).PLAY_RESUME))},[Qg,t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:t.normalizeStyle(s.value)}," Resumen ",4)])])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),(e.gameStatus!==4||e.isLive)&&e.hasActions?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["actions__button expand",{"rotated-180":e.areEventsVisible,mobile:e.componentWidth<540}]),onClick:c[6]||(c[6]=m=>l(t.unref(ue).SHOW_GAME_EVENTS))},[(t.openBlock(),t.createElementBlock("svg",e0,[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,t0)]))],2)):(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(["actions__button expand",{"rotated-180":!1,mobile:e.componentWidth<540}])},null,2))]))}},a0=pe(o0,[["__scopeId","data-v-af6919bd"]]),Jt=e=>(t.pushScopeId("data-v-43a88f53"),e=e(),t.popScopeId(),e),n0={class:"row-landing__game-status"},r0={class:"row-landing__game-actions"},i0={class:"row-full__game-status"},s0={class:"row-full__game-info"},l0={key:0},c0={class:"row-full__game-actions"},d0={class:"game-events-container"},m0=Jt(()=>t.createElementVNode("div",{class:"separator"},null,-1)),p0=Jt(()=>t.createElementVNode("div",null,null,-1)),u0={class:"game-events__data"},h0={class:"game-events__data__team"},f0=["src"],g0={class:"game-events__data__team__event__text"},y0={class:"game-events__data__team away"},b0={class:"game-events__data__team__event__text"},w0=["src"],_0=Jt(()=>t.createElementVNode("div",null,null,-1)),S0=Jt(()=>t.createElementVNode("div",null,null,-1)),k0={__name:"CalendarRow",props:{isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},game:{type:Object,required:!0},height:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#172531"},showPlayButton:{type:Boolean,default:!1},componentWidth:{type:Number,default:400,validator(e){return e>0}},televisionFontSize:{type:String,default:"12px"},televisionFontFamily:{type:String,default:"sans-serif"},televisionColor:{type:String,default:"rgba(255, 255, 255, 0.5)"}},emits:["action"],setup(e,{emit:a}){const o=e,n={GOAL:{}.GAME_EVENTS_ICONS_GOAL||"/icn-gol.svg",RED_CARD:{}.GAME_EVENTS_ICONS_RED_CARD||"/icn-expulsion.svg",YELLOW_CARD:{}.GAME_EVENTS_ICONS_YELLOW_CARD||"/icn-amarilla.svg"},i=t.ref(!1),r=t.ref(!1),s=t.computed(()=>{const f={homeTeam:[],awayTeam:[]};return o.game&&o.game.game_status!==4&&!o.game.is_live&&o.game.minutes&&(f.homeTeam.push(...d(o.game.minutes.home_goals_minutes,n.GOAL)),f.homeTeam.push(...d(o.game.minutes.home_red_cards_minutes,n.RED_CARD)),f.homeTeam.push(...d(o.game.minutes.home_yellow_cards_minutes,n.YELLOW_CARD)),f.awayTeam.push(...d(o.game.minutes.visiting_goals_minutes,n.GOAL)),f.awayTeam.push(...d(o.game.minutes.away_red_cards_minutes,n.RED_CARD)),f.awayTeam.push(...d(o.game.minutes.away_yellow_cards_minutes,n.YELLOW_CARD))),f}),l=t.computed(()=>{const f=s.value.homeTeam.length,y=s.value.awayTeam.length;return f+y>0}),p=t.computed(()=>({"background-color":o.backgroundColor})),c=t.computed(()=>({height:o.height})),m=t.computed(()=>{const f={game:[],events:[]};return o.componentWidth<500?(f.events.push("break-point-3"),f.game.push("break-point-2")):o.componentWidth<730?(f.game.push("break-point-2"),f.events.push("break-point-2")):o.componentWidth<910&&(f.game.push("break-point-1"),f.events.push("break-point-1")),f}),u=t.computed(()=>({isLandingMode:o.isLandingMode,game:o.game,colorPrimary:"#fff",colorSecondary:"#fff",namesFontSize:"12px",timeFontSize:"12px",timeZoneFontSize:"8px",scoreFontSize:"13px",namesFontFamily:"sans-serif",scoreFontFamily:"sans-serif",additionalInfoFontFamily:"sans-serif",additionalInfoFontSize:"9px"})),g=t.computed(()=>({"font-size":o.televisionFontSize,"font-family":o.televisionFontFamily,color:o.televisionColor}));t.watch(()=>o.componentWidth,f=>{r.value=f<910});function d(f,y){return f.map(C=>({iconUrl:y,text:C}))}function h(f){f===ue.SHOW_GAME_EVENTS?i.value=!i.value:a("action",{action:f,game:o.game})}return(f,y)=>e.isLandingMode?(t.openBlock(),t.createElementBlock("div",{key:0,class:"row-landing",style:t.normalizeStyle(p.value)},[t.createVNode(yi,{game:e.game,"is-landing-mode":e.isLandingMode},null,8,["game","is-landing-mode"]),t.createElementVNode("div",n0,[t.createVNode(wi,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":t.unref(gi)(e.game.matchday_abbreviation),"is-landing-mode":e.isLandingMode,"is-round-mode":e.isRoundMode,"font-size":"10px"},null,8,["status","is-live","date-time-millis","round-abbreviation","is-landing-mode","is-round-mode"])]),t.createElementVNode("div",r0,[t.createVNode(Mg,{"is-live":!!e.game.is_live,"has-video":!!e.game.has_video,"game-status":e.game.game_status,"show-play-button":!0,onAction:h},null,8,["is-live","has-video","game-status"])])],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"row-full-container",style:t.normalizeStyle(p.value)},[t.createElementVNode("div",{class:t.normalizeClass(["row-full",m.value.game]),style:t.normalizeStyle(c.value)},[t.createElementVNode("div",i0,[t.createVNode(wi,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":t.unref(gi)(e.game.matchday_abbreviation),"is-landing-mode":e.isLandingMode,"is-round-mode":e.isRoundMode,"font-size":"10px"},null,8,["status","is-live","date-time-millis","round-abbreviation","is-landing-mode","is-round-mode"])]),t.createElementVNode("div",s0,[t.createVNode(yi,t.mergeProps(u.value,{"is-television-visible":r.value,game:e.game,"is-landing-mode":e.isLandingMode,"is-acronym-visible":e.componentWidth<540}),null,16,["is-television-visible","game","is-landing-mode","is-acronym-visible"])]),e.componentWidth>=910?(t.openBlock(),t.createElementBlock("div",{key:0,class:"row-full__television",style:t.normalizeStyle(g.value)},[!r.value&&(e.game.game_status===4||e.game.is_live)?(t.openBlock(),t.createElementBlock("span",l0,t.toDisplayString(e.game.tv_stations.join(", ")),1)):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",c0,[t.createVNode(a0,{"is-live":!!e.game.is_live,"has-video":!!e.game.has_video,"has-actions":l.value,"game-status":e.game.game_status,"show-play-button":!0,"are-events-visible":i.value,"component-width":e.componentWidth,onAction:h},null,8,["is-live","has-video","has-actions","game-status","are-events-visible","component-width"])])],6),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",d0,[m0,t.createElementVNode("div",{class:t.normalizeClass(["game-events",m.value.events])},[p0,t.createElementVNode("div",u0,[t.createElementVNode("div",h0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value.homeTeam,(C,A)=>(t.openBlock(),t.createElementBlock("div",{key:`h${A}`,class:"game-events__data__team__event"},[t.createElementVNode("img",{src:C.iconUrl},null,8,f0),t.createElementVNode("div",g0,t.toDisplayString(C.text),1)]))),128))]),t.createElementVNode("div",y0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value.awayTeam,(C,A)=>(t.openBlock(),t.createElementBlock("div",{key:`a${A}`,class:"game-events__data__team__event"},[t.createElementVNode("div",b0,t.toDisplayString(C.text),1),t.createElementVNode("img",{src:C.iconUrl},null,8,w0)]))),128))])]),_0,S0],2)],512),[[t.vShow,i.value]])]),_:1})],4))}},_i=pe(k0,[["__scopeId","data-v-43a88f53"]]),C0={class:"calendar-table"},B0={__name:"CalendarTable",props:{isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},gamesPerPage:{type:Array,default:()=>[]},rowHeight:{type:String,default:"fit-content"},oddRowColor:{type:String,default:"#172531"},evenRowColor:{type:String,default:"#0D1D29"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:a}){const o=e;function n(r){return r%2===0?o.evenRowColor:o.oddRowColor}function i(r){a("action",r)}return(r,s)=>(t.openBlock(),t.createElementBlock("div",C0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gamesPerPage,(l,p)=>(t.openBlock(),t.createBlock(_i,{key:l.game_id,game:l,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":n(p),"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:i},null,8,["game","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))}},E0=pe(B0,[["__scopeId","data-v-47b333f0"]]),N0={class:"calendar-by-team"},x0={class:"playing-as-picker"},T0={class:"calendar-by-team__page"},O0={__name:"CalendarTableByTeam",props:{teamId:{type:Number,default:0},isPaginationVisible:{type:Boolean,default:!0},gamesPages:{type:Map,default:()=>new Map},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},rowHeight:{type:String,default:"fit-content"},nameRowColor:{type:String,default:"#172531"},gameRowColor:{type:String,default:"#0D1D29"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:a}){const o=e,n=t.ref(0),i=t.computed(()=>{let p=[];if(o.gamesPages.size>0){const c=Array.from(o.gamesPages.entries()).reduce((m,[u,g])=>{const d=Number(u),h=Number.isNaN(d)?u:`Jornada ${d<10?"0":""}${d}`,f=g.reduce((y,C)=>(y.push(...C),y),[]).filter(y=>n.value===0||n.value===1&&y.visiting_team.team_id===o.teamId?!0:n.value===2&&y.home_team.team_id===o.teamId);return f.length>0&&m.push({roundName:h,games:f}),m},[]);p.push(c)}return p});function r(p){a("action",p)}function s(p){document.querySelector("#opc0").classList.remove("selected"),document.querySelector("#opc1").classList.remove("selected"),document.querySelector("#opc2").classList.remove("selected"),n.value=p,document.querySelector("#opc"+p).classList.add("selected")}function l(p){let c=p;switch(p){case"PI1":c="Play In 1";break;case"PI2":c="Play In 2";break;case"R1":c="Repechaje";break;case"CFI":c="Cuartos de final - Ida";break;case"CFV":c="Cuartos de final - Vuelta";break;case"SFI":c="Semifinal - Ida";break;case"SFV":c="Semifinal - Vuelta";break;case"FI":c="Final - Ida";break;case"FV":c="Final - Vuelta";break}return c}return(p,c)=>(t.openBlock(),t.createElementBlock("div",N0,[t.createElementVNode("div",x0,[t.createElementVNode("div",{class:"playing-as-picker__type selected",id:"opc0",onClick:c[0]||(c[0]=m=>s(0))}," Todas "),t.createElementVNode("div",{class:"playing-as-picker__type",id:"opc1",onClick:c[1]||(c[1]=m=>s(1))},"Visitante"),t.createElementVNode("div",{class:"playing-as-picker__type",id:"opc2",onClick:c[2]||(c[2]=m=>s(2))},"Local")]),t.createVNode(t.unref(ui),{"is-pagination-visible":e.isPaginationVisible,items:i.value},{default:t.withCtx(({item:m})=>[t.createElementVNode("div",T0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m,(u,g)=>(t.openBlock(),t.createElementBlock("div",{key:g,class:"calendar-by-team__page__round"},[t.createElementVNode("div",{class:"calendar-by-team__page__round__round-name",style:t.normalizeStyle([{color:"white"},e.componentWidth<=425?"padding: 5px 10px":""])},t.toDisplayString(l(u.roundName)),5),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.games,d=>(t.openBlock(),t.createBlock(_i,{key:d.game_id,game:d,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":e.gameRowColor,"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:r},null,8,["game","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))),128))])]),_:1},8,["is-pagination-visible","items"])]))}},V0=pe(O0,[["__scopeId","data-v-1cad2737"]]),$0="_image62Icon_1lvdf_3",A0="_imgChivasIcon_1lvdf_21",z0="_nameDesktop_1lvdf_35",R0="_nameMobile_1lvdf_61",I0="_homeTeam_1lvdf_85",F0="_sbado16De_1lvdf_107",P0="_gameDate_1lvdf_125",L0="_sab16092023_1lvdf_133",D0="_div_1lvdf_159",M0="_divscore_1lvdf_177",j0="_cst_1lvdf_197",v0="_hour_1lvdf_215",W0="_score_1lvdf_217",U0="_chivasTvCanal_1lvdf_239",H0="_gameStatus_1lvdf_263",G0="_matchInfo_1lvdf_285",J0="_image62Icon1_1lvdf_311",q0="_name_1lvdf_35",Z0="_imgAtlasIcon_1lvdf_355",X0="_name1_1lvdf_369",K0="_awayTeam_1lvdf_393",Y0="_matchCard_1lvdf_415",Q0={image62Icon:$0,imgChivasIcon:A0,nameDesktop:z0,nameMobile:R0,homeTeam:I0,sbado16De:F0,gameDate:P0,sab16092023:L0,div:D0,divscore:M0,cst:j0,hour:v0,score:W0,chivasTvCanal:U0,gameStatus:H0,matchInfo:G0,image62Icon1:J0,name:q0,imgAtlasIcon:Z0,name1:X0,awayTeam:K0,matchCard:Y0},ey=["src"],ty=["src"],oy={key:0},ay=["src"],ny=["src"],ry={__name:"CardPreMatch",props:{game:{type:Object,default:()=>{}}},setup(e){const a=e,o=t.computed(()=>{const i={...a.game};return i.gameSchedule=a.game.schedule.split(":"),i.gameSchedule.pop(),i.gameSchedule=i.gameSchedule.join(":"),i});function n(i,r){const s=new Date(i);if(r==1){const l=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],p=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"];return`${l[s.getDay()]} ${s.getDate()} de ${p[s.getMonth()]}`}else return`${s.getDate()}-${s.getMonth()+1}-${s.getFullYear()}`}return(i,r)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(i.$style.matchCard)},[t.createElementVNode("div",{class:t.normalizeClass(i.$style.homeTeam),id:"container-home-team"},[t.createElementVNode("img",{class:t.normalizeClass(i.$style.image62Icon),alt:"",src:t.unref(Ye)(o.value.home_team.team_id,150)},null,10,ey),t.createElementVNode("img",{class:t.normalizeClass(i.$style.imgChivasIcon),alt:"",src:t.unref(Ye)(o.value.home_team.team_id)},null,10,ty),t.createElementVNode("h3",{class:t.normalizeClass(i.$style.nameDesktop),id:"team-name"},t.toDisplayString(o.value.home_team.colloquial_name),3),t.createElementVNode("h3",{class:t.normalizeClass(i.$style.nameMobile),id:"team-name"},t.toDisplayString(o.value.home_team.acronym),3)],2),o.value.game_status==4?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.$style.matchInfo),id:"container-match-info"},[t.createElementVNode("div",{class:t.normalizeClass(i.$style.sbado16De)},t.toDisplayString(n(o.value.date_time_utc,1)),3),t.createElementVNode("div",{class:t.normalizeClass(i.$style.sab16092023)},t.toDisplayString(n(o.value.date_time_utc,0)),3),t.createElementVNode("div",{class:t.normalizeClass(i.$style.hour)},[t.createElementVNode("div",{class:t.normalizeClass(i.$style.div)},t.toDisplayString(o.value.gameSchedule),3),t.createElementVNode("div",{class:t.normalizeClass(i.$style.cst)},"CST",2)],2),t.createElementVNode("div",{class:t.normalizeClass(i.$style.chivasTvCanal)},t.toDisplayString(o.value.tv_stations.join(", ")),3)],2)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.$style.matchInfo),id:"container-match-info"},[t.createElementVNode("div",{class:t.normalizeClass([i.$style.sbado16De,i.$style.gameDate])},t.toDisplayString(n(o.value.date_time_utc,1)),3),t.createElementVNode("div",{class:t.normalizeClass([i.$style.sab16092023,i.$style.gameDate])},t.toDisplayString(n(o.value.date_time_utc,0)),3),t.createElementVNode("div",{class:t.normalizeClass(i.$style.score)},[t.createElementVNode("div",{class:t.normalizeClass(i.$style.divscore)},t.toDisplayString(o.value.score.join(" - ")),3)],2),t.createElementVNode("div",{class:t.normalizeClass(i.$style.gameStatus)},[t.createTextVNode(" Finalizado "),o.value.penalties_score_home_team!=0||o.value.penalties_score_visiting_team!=0?(t.openBlock(),t.createElementBlock("span",oy," - Penales "+t.toDisplayString(o.value.penalties_score_home_team)+" - "+t.toDisplayString(o.value.penalties_score_visiting_team),1)):t.createCommentVNode("",!0)],2)],2)),t.createElementVNode("div",{class:t.normalizeClass(i.$style.awayTeam),id:"container-away-team"},[t.createElementVNode("img",{class:t.normalizeClass(i.$style.image62Icon1),alt:"",src:t.unref(Ye)(o.value.visiting_team.team_id,150)},null,10,ay),t.createElementVNode("h3",{class:t.normalizeClass(i.$style.name),id:"team-name"},t.toDisplayString(o.value.visiting_team.colloquial_name),3),t.createElementVNode("img",{class:t.normalizeClass(i.$style.imgAtlasIcon),alt:"",src:t.unref(Ye)(o.value.visiting_team.team_id)},null,10,ny),t.createElementVNode("h3",{class:t.normalizeClass(i.$style.name1),id:"team-name"},t.toDisplayString(o.value.visiting_team.acronym),3)],2)],2))}},iy={$style:Q0},sy=pe(ry,[["__cssModules",iy]]),ly={class:"calendar-by-game__carousel"},cy={components:{GscSwitchComponent:Qo,GSCGeneraltable:zu,GSCCalendarByGame:pe({__name:"GSC-CalendarByGame",props:{height:{type:String,default:"fit-content"},width:{type:String,default:"100%"},rowHeight:{type:String,default:"fit-content"},oddRowColor:{type:String,default:"#172531"},evenRowColor:{type:String,default:"#0D1D29"},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},isRoundPickerVisible:{type:Boolean,default:!0},isPaginationVisible:{type:Boolean,default:!0},awaitForSeasons:{type:Boolean,default:!1},seasons:{type:Array,default:()=>[]},isCup:{type:Boolean,default:!1},isCupLegacy:{type:Boolean,default:!1},token:{type:String,default:""},pagesWithGames:{type:Array,default:()=>[]},maxGamesToShow:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},areRoundsVisible:{type:Boolean,default:!0},gamesPerMatchDay:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},itemsToShow:{type:Number,default:9},itemsToScroll:{type:Number,default:9},games:{type:Array,default:()=>null},teamId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},avoidTeamIdFilter:{type:Boolean,default:!1},areGamesCarouselType:{type:Boolean,default:!1},defaultGameId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},userTeamId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},sortCalendar:{type:Boolean,default:!0}},emits:["tournament-selected","change-teams","change-round","change-game-carousel","action"],setup(e,{emit:a}){const o=e;let n=null;const i=t.ref([]),r=t.ref({}),s=t.ref(0),l=t.ref(null),p=t.ref({}),c=t.ref(new Map),m=t.ref(!1),u=t.ref(null),g=t.ref(null),d=t.ref(null),h=t.computed(()=>o.isCup),f=t.computed(()=>o.isCupLegacy),y=t.computed(()=>({height:o.height,width:o.width})),C=t.computed(()=>o.games?te(o.games):c.value.get(p.value.key)||[]),A=t.ref(0),v=t.ref("1"),U=t.ref([]),ne=t.ref([]),he=t.computed(()=>ne.value&&ne.value.length?se(r.value):X(r.value));t.watch(()=>he.value,O=>{A.value=U.value.findIndex(B=>B===O),v.value=O}),t.watch(()=>o.seasons,O=>{O&&O.length&&(m.value=!0,i.value=O.map(B=>B.id),ee(O,!0))},{immediate:!0,deep:!0});function X(O){const B=Object.entries(Object.entries(O).reduce((N,[$,z])=>(N[$]=[],z.forEach(D=>{D.games.forEach(W=>{const K=new Date(W.date_time_utc).getTime()+66e5;N[$].push(K)})}),N),{}));if(!B.length)return"1";const E=new Date().getTime(),T=B.reduce((N,[$,z])=>{let D=null;return z.forEach(W=>{const K=W-E;K>=0&&(D===null||K<D)&&(D=K)}),D&&(N.shortestTime===null||D<N.shortestTime)&&(N.round=$,N.shortestTime=D),N},{round:"",shortestTime:null});return T.shortestTime!==null?T.round:B[B.length-1][0]}function se(O){let B=1;if(ne.value.length){const E=ne.value[0];for(const[T,N]of Object.entries(O))for(const $ of N)if($.games.find(z=>z.game_id===E.game_id))return T}return B}t.watch(()=>o.teamId,()=>{j()},{immediate:!0});async function R(O,B,E=""){let T=E;try{const N={};o.token&&(N.Authorization=o.token),T||(T="https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",O.forEach((D,W)=>{T+=`${W===0?"":"&"}seasons=${D}`}));const{data:{data:$,teams:z}}=await ci.get(T,{headers:N});return{seasonsAndGames:$,seasonsAndTeams:z}}catch(N){if(B>0)return R(O,B-1,T);throw new Error(N)}}function ae(O){for(const B of O)if(!i.value.includes(B.season_id))return!0;return!1}async function ee(O,B){try{r.value={};let E=0;const{seasonsAndGames:T,seasonsAndTeams:N}=await R(O.map(z=>z.id),3);if(B&&ae(T))return;T.forEach(z=>{const{type:D}=O.find(W=>W.id===z.season_id);z.type=D,z.games.forEach(W=>{W.season_id=z.season_id}),D===0&&(E=z.season_id)}),u.value={seasonsGames:T};const{teams:$}=N.find(z=>z.season_id===E);g.value=$,a("change-teams",$),j()}catch(E){throw new Error(E)}}function j(){if(!g.value)return;ne.value=[];const O=u.value&&u.value.seasonsGames?u.value.seasonsGames.map(B=>{const E=B.games.reduce((T,N)=>{const $={...N};return $.dateTimeMillis=new Date($.date_time_utc).valueOf(),$.home_team=g.value.find(z=>z.team_id===N.home_team),$.visiting_team=g.value.find(z=>z.team_id===N.visiting_team),o.teamId&&$.home_team.team_id!==o.teamId&&$.visiting_team.team_id!==o.teamId||(T[N.matchday_abbreviation]?T[N.matchday_abbreviation][N.game_status===3?"canceled":N.date]?T[N.matchday_abbreviation][N.game_status===3?"canceled":N.date].push($):T[N.matchday_abbreviation][N.game_status===3?"canceled":N.date]=[$]:T[N.matchday_abbreviation]={[N.game_status===3?"canceled":N.date]:[$]},o.userTeamId&&$.game_status===4&&($.home_team.team_id===o.userTeamId||$.visiting_team.team_id===o.userTeamId)&&ne.value.push($)),T},{});for(let[T,N]of Object.entries(E))E[T]=Object.entries(N).map(([$,z])=>({date:$,games:z.sort((D,W)=>D.dateTimeMillis-W.dateTimeMillis)})),E[T].sort(($,z)=>$.date<z.date?-1:$.date>z.date?1:0);return{type:B.type,weight:B.type===0?0:B.type===2?1:2,schedule:E}}):[];O.sort((B,E)=>B.weight-E.weight),r.value=O.reduce((B,E)=>{for(const[T,N]of Object.entries(E.schedule))if(E.type===0)if(h.value){const $=T.replace("M",""),z=$;f.value?B[qf[$]||z]=N:B[Jf[T]||z]=N}else B[Number(T.replace("M","")).toString()]=N;else E.type===2?T.charAt(1)=="I"?B[`PI${Number(T.replace("PI",""))}`]=N:B[`R${Number(T.replace("PO",""))}`]=N:E.type===1&&(B[Gf[T]]=N);return B},{}),c.value=new Map,U.value=Array.from(Object.entries(r.value).reduce((B,[E,T],N)=>{const $=Number(E);let z="";Number.isNaN($)?z=E:z=$<10?`0${$}`:E,B.set(E,{key:E,value:$,valueText:z,index:N});const D=T.reduce((K,ge)=>(ge.games.forEach(ye=>{ye.game_id===o.defaultGameId&&(d.value=E),ye.roundAbbreviation=Number.isNaN($)?$:`J ${$}`}),K=K.concat(ge.games),K),[]),W=te(D);return c.value.set(E,W),B},new Map).values())}function te(O){const B=[];if(o.gamesPerMatchDay>0){let E=[];O.forEach((T,N)=>{E.push(T),(N+1)%o.gamesPerMatchDay===0&&(B.push([...E]),E=[])}),E.length&&B.push([...E])}else B.push(O);return B}async function re(O){try{const{data:B}=await ci.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments");return B}catch(B){if(O>0)return re(O-1);throw new Error(B)}}function Ue(){if(window.ResizeObserver)n=new ResizeObserver(()=>{s.value=l.value.clientWidth}),n.observe(l.value);else throw new Error("Resize observer not supported!")}function He(O){p.value=O,a("change-round",O)}function Ve(O){o.areGamesCarouselType&&a("change-game-carousel",O.selectedItem)}function fe(O){a("action",O),$e(O)}function $e(O){const B="PLAY_RESUME",E="PLAY_GOALS",T=[607,608,12,55,54,35,14,52,15,53,466,477],N=[12,55,"35_r","54_r"],{game_id:$,season_id:z}=O.game;let D={seasonId:z,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:1,gameIds:[$],playerIds:[],goalkeeperIds:[],categoryIds:[],teamId:0,matchResult:[],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:""},objectPlaySync:null};O.action===B?(D.categoryIds=T,D.advancedFilter.playListTitle="Resumen",a("openmedia",D)):O.action===E&&(D.categoryIds=N,D.advancedFilter.playListTitle="Goles",a("openmedia",D))}async function Ae(){try{if(!o.awaitForSeasons&&!o.games){const O=(await re(3)).find(T=>T._id===1),B=O.seasons[0],E=[{id:B.id,type:B.type}];O&&O.tournament&&a("tournament-selected",O.tournament),B.related_seasons&&B.related_seasons.length&&E.push(...B.related_seasons.map(T=>({id:T.id,type:T.type}))),await ee(E,!1)}}catch(O){throw new Error(O)}}return t.onMounted(()=>{Ue()}),Ae(),(O,B)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"calendarByGame",ref:l,class:"calendar-by-game",style:t.normalizeStyle(y.value)},[e.teamId&&!e.avoidTeamIdFilter?(t.openBlock(),t.createBlock(V0,{key:0,"full-tournament-schedule":r.value,"team-id":e.teamId,"is-landing-mode":!1,"row-height":e.rowHeight,"component-width":s.value,"games-pages":c.value,"is-pagination-visible":e.isPaginationVisible,"is-round-mode":e.isRoundMode,onAction:fe},null,8,["full-tournament-schedule","team-id","row-height","component-width","games-pages","is-pagination-visible","is-round-mode"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.areRoundsVisible&&U.value?(t.openBlock(),t.createBlock(dg,{key:0,"match-days":U.value,"is-landing-mode":e.isLandingMode,height:"48px","items-to-show":e.itemsToShow,"items-to-scroll":e.itemsToScroll,"component-width":s.value,"default-match-day-key":d.value,"closest-match-day":e.sortCalendar?he.value:"",onChangeMatchDay:He},null,8,["match-days","is-landing-mode","items-to-show","items-to-scroll","component-width","default-match-day-key","closest-match-day"])):t.createCommentVNode("",!0),t.createElementVNode("div",ly,[C.value?(t.openBlock(),t.createBlock(t.unref(ui),{key:0,"is-pagination-visible":e.isPaginationVisible&&!e.areGamesCarouselType,items:e.areGamesCarouselType?C.value[0]:C.value,"are-navigation-arrows-visible":e.areGamesCarouselType?!e.areGamesCarouselType:e.isPaginationVisible,"wrap-around":e.areGamesCarouselType,"items-to-show":e.areGamesCarouselType?1.2:1,"is-main-slide-priority":e.areGamesCarouselType,"are-slides-arrows-visible":e.areGamesCarouselType,"slides-arrows-left-and-right":e.areGamesCarouselType?"30px":"0px","default-item-by-prop":e.areGamesCarouselType?{propName:"game_id",value:e.defaultGameId}:{},onInput:Ve},{default:t.withCtx(({item:E})=>[e.areGamesCarouselType?(t.openBlock(),t.createBlock(sy,{key:0,game:E},null,8,["game"])):(t.openBlock(),t.createBlock(E0,{key:1,"games-per-page":E,"is-landing-mode":e.isLandingMode,"row-height":e.rowHeight,"component-width":s.value,"is-round-mode":e.isRoundMode,onAction:fe},null,8,["games-per-page","is-landing-mode","row-height","component-width","is-round-mode"]))]),_:1},8,["is-pagination-visible","items","are-navigation-arrows-visible","wrap-around","items-to-show","is-main-slide-priority","are-slides-arrows-visible","slides-arrows-left-and-right","default-item-by-prop"])):t.createCommentVNode("",!0)])],64))],4))}},[["__scopeId","data-v-94228d1d"]])},props:{season:{type:Object,default:()=>{}},seasons:{type:Array,default:()=>[]},componentWidth:{type:Number,default:768,validator(e){return e>0}}},data(){return{selectedOpt:"Mi posición",tokenFree:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{},methods:{onAction(e){this.$emit("action",e)},changeCategory(e){this.selectedOpt=e},onOpenMedia(e){this.$emit("openmedia",e)},onOpenProfile(e){this.$emit("onOpenProfile",e)}}},dy={class:"gsc-calendar-table"},my={class:"gsc-switch-container"},py={class:"gsc-app-component"};function uy(e,a,o,n,i,r){const s=t.resolveComponent("GscSwitchComponent"),l=t.resolveComponent("GSCGeneraltable"),p=t.resolveComponent("GSCCalendarByGame");return t.openBlock(),t.createElementBlock("div",dy,[t.createElementVNode("div",my,[t.createVNode(s,{type:0,"font-family":"Poppins-Light",buttons:["Mi posición","Calendario"],height:"40px","selected-option":i.selectedOpt,"font-size":o.componentWidth>=768?"16px":"14px",width:"355px",onInput:r.changeCategory},null,8,["selected-option","font-size","onInput"])]),t.createElementVNode("div",py,[i.selectedOpt=="Mi posición"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createVNode(l,{isPaginationVisible:!0,"current-season-id":o.season.id,type:1,"await-for-season":!0,onOpenmedia:r.onOpenMedia,onOpenTableProfile:r.onOpenProfile},null,8,["current-season-id","onOpenmedia","onOpenTableProfile"]),t.createElementVNode("div",{onClick:a[0]||(a[0]=c=>this.$router.push({name:"table"})),class:"gsc-app-component-view-all"}," Ver todo ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(p,{onAction:r.onAction,onOpenmedia:r.onOpenMedia,width:"100%",token:i.tokenFree,seasons:o.seasons,"row-height":"90px","is-landing-mode":!0,"is-pagination-visible":!0,isRoundPickerVisible:!0,"await-for-seasons":"","items-to-show":9,"items-to-scroll":5,"max-games-to-show":5,"games-per-match-day":5},null,8,["onAction","onOpenmedia","token","seasons"]),t.createElementVNode("div",{onClick:a[1]||(a[1]=c=>this.$router.push({name:"calendar"})),class:"gsc-app-component-view-all"}," Ver todo ")],64))])])}const hy=ie(cy,[["render",uy],["__scopeId","data-v-6b8889ec"]]),fy={class:"match"},gy={class:"match__header"},yy={key:0,class:"match__final-tag"},by={key:1,class:"match__final-tag__no-border"},wy={class:"match__tag"},_y={class:"match__body"},Sy={class:"match__data"},ky={class:"match__acronym"},Cy=["src"],By={class:"match__score"},Ey=["src"],Ny={class:"match__acronym"},xy={class:"match__status"},qt=ie({__name:"PreviousMatch",props:{visitTeam:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},homeTeam:{type:Object,default:()=>{}},score:{type:String,default:"2 - 1"},journey:{type:[String,Number],default:2},penalScore:{type:String,default:""},infoType:{type:String,default:"postmatch"}},setup(e){return(a,o)=>{var n,i,r;return t.openBlock(),t.createElementBlock("section",fy,[t.createElementVNode("div",gy,[e.infoType=="postmatch"?(t.openBlock(),t.createElementBlock("div",yy,"FINAL ")):(t.openBlock(),t.createElementBlock("div",by)),t.createElementVNode("div",wy,t.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),1)]),t.createElementVNode("div",_y,[t.createElementVNode("div",Sy,[t.createElementVNode("div",ky,t.toDisplayString((n=e.data)==null?void 0:n.home_team_acronym),1),t.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.home_team+".png",alt:"team-img"},null,8,Cy),t.createElementVNode("div",By,[e.infoType=="postmatch"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(e.data.score[0])+" - "+t.toDisplayString(e.data.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString((i=e.data)==null?void 0:i.schedule.replace(":00","")),1)],64))]),t.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.visiting_team+".png",alt:"team-img"},null,8,Ey),t.createElementVNode("div",Ny,t.toDisplayString((r=e.data)==null?void 0:r.visiting_team_acronym),1)]),t.createElementVNode("div",xy,[e.infoType=="postmatch"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Finalizado"+t.toDisplayString(e.penalScore?` - Penales ${e.penalScore}`:""),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("CST")],64))])]),t.createElementVNode("div",{class:"match__button",onClick:o[0]||(o[0]=s=>a.$emit("clickMatch"))},"Analizar partido →")])}}},[["__scopeId","data-v-c49fa538"]]),Ty=e=>(t.pushScopeId("data-v-8a51a354"),e=e(),t.popScopeId(),e),Oy={class:"match"},Vy={class:"match__header"},$y=Ty(()=>t.createElementVNode("div",{class:"match__final-tag"},"FINAL",-1)),Ay={class:"match__tag"},zy={class:"match__body"},Ry={class:"match__data"},Iy={class:"match__acronym"},Fy=["src"],Py={class:"match__score"},Ly=["src"],Dy={class:"match__acronym"},My={class:"match__status"},Si=ie({__name:"PreviousMatchGame",props:{visitTeam:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},homeTeam:{type:Object,default:()=>{}},score:{type:String,default:"2 - 1"},journey:{type:[String,Number],default:2},penalScore:{type:String,default:""}},setup(e){return(a,o)=>(t.openBlock(),t.createElementBlock("section",Oy,[t.createElementVNode("div",Vy,[$y,t.createElementVNode("div",Ay,t.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),1)]),t.createElementVNode("div",zy,[t.createElementVNode("div",Ry,[t.createElementVNode("div",Iy,t.toDisplayString(e.data.home_team.acronym),1),t.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.home_team.team_id+".png",alt:"team-img"},null,8,Fy),t.createElementVNode("div",Py,t.toDisplayString(e.data.score[0])+" - "+t.toDisplayString(e.data.score[1]),1),t.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.visiting_team.team_id+".png",alt:"team-img"},null,8,Ly),t.createElementVNode("div",Dy,t.toDisplayString(e.data.visiting_team.acronym),1)]),t.createElementVNode("div",My,"Finalizado"+t.toDisplayString(e.penalScore?` - Penales ${e.penalScore}`:""),1)]),t.createElementVNode("div",{class:"match__button",onClick:o[0]||(o[0]=n=>a.$emit("clickMatch"))},"Analizar partido →")]))}},[["__scopeId","data-v-8a51a354"]]),jy=e=>(t.pushScopeId("data-v-4c9c0afe"),e=e(),t.popScopeId(),e),vy=["src"],Wy=["src"],Uy={class:"coming-match__body"},Hy={class:"coming-match__data"},Gy=["src"],Jy={style:{"margin-top":"16px"}},qy={class:"coming-match__time"},Zy=jy(()=>t.createElementVNode("div",{class:"coming-match__cst"},"CST",-1)),Xy=["src"],Sa=ie({__name:"ComingMatch",props:{small:{type:Boolean,default:!1},visitTeam:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},homeTeam:{type:Object,default:()=>{}},date:{type:String,default:"Jueves 7 de Abril"},time:{type:String,default:"5: 00"}},setup(e){return(a,o)=>{var n,i,r,s,l,p,c,m,u,g,d,h,f;return t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass(["coming-match",{small:e.small}])},[t.createElementVNode("img",{class:t.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-150/"+((n=e.data)==null?void 0:n.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-150/"+((i=e.data)==null?void 0:i.home_team)+".png",alt:"team-img"},null,10,vy),t.createElementVNode("img",{class:t.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-150/"+((r=e.data)==null?void 0:r.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-150/"+((s=e.data)==null?void 0:s.visiting_team)+".png",alt:"team-img"},null,10,Wy),t.createElementVNode("div",Uy,[t.createElementVNode("div",{class:t.normalizeClass(["coming-match__date",{small:e.small}])},t.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),3),t.createElementVNode("div",Hy,[t.createElementVNode("div",{class:t.normalizeClass(["coming-match__team",{small:e.small}])},[t.createElementVNode("img",{class:t.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((l=e.data)==null?void 0:l.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((p=e.data)==null?void 0:p.home_team)+".png",alt:"team-img"},null,10,Gy),t.createElementVNode("div",{class:t.normalizeClass(["coming-match__acronym",{small:e.small}])},t.toDisplayString((c=e.data)==null?void 0:c.home_team_name),3)],2),t.createElementVNode("div",Jy,[t.createElementVNode("div",qy,[e.data.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString((m=e.data)==null?void 0:m.score[0])+" - "+t.toDisplayString((u=e.data)==null?void 0:u.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString((g=e.data)==null?void 0:g.schedule.replace(":00","")),1)],64))]),Zy]),t.createElementVNode("div",{class:t.normalizeClass(["coming-match__team",{small:e.small}])},[t.createElementVNode("div",{class:t.normalizeClass(["coming-match__acronym",{small:e.small}])},t.toDisplayString((d=e.data)==null?void 0:d.visiting_team_name),3),t.createElementVNode("img",{class:t.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((h=e.data)==null?void 0:h.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((f=e.data)==null?void 0:f.visiting_team)+".png",alt:"team-img"},null,10,Xy)],2)])]),t.createElementVNode("div",{class:t.normalizeClass(["coming-match__button",{small:e.small}]),onClick:o[0]||(o[0]=y=>a.$emit("clickMatch"))},"Analizar partido →",2)],2)}}},[["__scopeId","data-v-4c9c0afe"]]),Ky=e=>(t.pushScopeId("data-v-90640930"),e=e(),t.popScopeId(),e),Yy=["src"],Qy=["src"],e1={class:"coming-match__body"},t1={class:"coming-match__data"},o1=["src"],a1={style:{"margin-top":"16px"}},n1={class:"coming-match__time"},r1=Ky(()=>t.createElementVNode("div",{class:"coming-match__cst"},"CST",-1)),i1=["src"],ki=ie({__name:"ComingMatchGame",props:{small:{type:Boolean,default:!1},visitTeam:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},homeTeam:{type:Object,default:()=>{}},date:{type:String,default:"Jueves 7 de Abril"},time:{type:String,default:"5: 00"}},setup(e){return(a,o)=>{var n,i,r,s,l,p,c,m,u,g,d,h,f;return t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass(["coming-match",{small:e.small}])},[t.createElementVNode("img",{class:t.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((n=e.data)==null?void 0:n.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((i=e.data)==null?void 0:i.home_team)+".png",alt:"team-img"},null,10,Yy),t.createElementVNode("img",{class:t.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((r=e.data)==null?void 0:r.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((s=e.data)==null?void 0:s.visiting_team)+".png",alt:"team-img"},null,10,Qy),t.createElementVNode("div",e1,[t.createElementVNode("div",{class:t.normalizeClass(["coming-match__date",{small:e.small}])},t.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),3),t.createElementVNode("div",t1,[t.createElementVNode("div",{class:t.normalizeClass(["coming-match__team",{small:e.small}])},[t.createElementVNode("img",{class:t.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((l=e.data)==null?void 0:l.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((p=e.data)==null?void 0:p.home_team)+".png",alt:"team-img"},null,10,o1),t.createElementVNode("div",{class:t.normalizeClass(["coming-match__acronym",{small:e.small}])},t.toDisplayString((c=e.data)==null?void 0:c.home_team_name),3)],2),t.createElementVNode("div",a1,[t.createElementVNode("div",n1,[e.data.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString((m=e.data)==null?void 0:m.score[0])+" - "+t.toDisplayString((u=e.data)==null?void 0:u.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString((g=e.data)==null?void 0:g.schedule.replace(":00","")),1)],64))]),r1]),t.createElementVNode("div",{class:t.normalizeClass(["coming-match__team",{small:e.small}])},[t.createElementVNode("div",{class:t.normalizeClass(["coming-match__acronym",{small:e.small}])},t.toDisplayString((d=e.data)==null?void 0:d.visiting_team_name),3),t.createElementVNode("img",{class:t.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((h=e.data)==null?void 0:h.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((f=e.data)==null?void 0:f.visiting_team)+".png",alt:"team-img"},null,10,i1)],2)])]),t.createElementVNode("div",{class:t.normalizeClass(["coming-match__button",{small:e.small}]),onClick:o[0]||(o[0]=y=>a.$emit("clickMatch"))},"Analizar partido →",2)],2)}}},[["__scopeId","data-v-90640930"]]),s1=e=>(t.pushScopeId("data-v-0c45a1f6"),e=e(),t.popScopeId(),e),l1={class:"quadrant-matches"},c1={class:"quadrant-matches__header"},d1={class:"quadrant-matches__title"},m1=s1(()=>t.createElementVNode("span",null," →",-1)),p1={key:0,class:"quadrant-matches__body"},u1={class:"quadrant-matches__body",style:{"column-gap":"16px"}},h1={class:"quadrant-matches__body matches"},f1={key:0,class:"quadrant-matches__body"},g1={class:"quadrant-matches__body",style:{"column-gap":"16px"}},y1=ie({__name:"GSCQuadrantGames",props:{isUserPro:{type:Boolean,default:!1},hasTeam:{type:Boolean,default:!1},isFull:{type:Boolean,default:!1},comingMatches:{type:Array,default:()=>[]},data:{type:Object,default:()=>{}},previousMatches:{type:Array,default:()=>[]},componentWidth:{type:Number,default:768,validator(e){return e>0}}},setup(e){const a=e;t.computed(()=>a.comingMatches[0]||{}),t.computed(()=>a.previousMatches[0]||{});const o=t.toRef(a,"componentWidth"),n=t.computed(()=>o.value<768);return(i,r)=>(t.openBlock(),t.createElementBlock("section",l1,[t.createElementVNode("div",c1,[t.createElementVNode("h2",d1,t.toDisplayString(e.isFull?"Partidos":"Mis partidos"),1),t.createElementVNode("button",{class:"quadrant-matches__button",onClick:r[0]||(r[0]=s=>i.$emit("clickCalendar"))},[t.createElementVNode("span",null,t.toDisplayString(e.isFull?"Calendario completo":"Mi calendario completo"),1),m1])]),e.isFull?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.data.length>1?(t.openBlock(),t.createBlock(t.unref(rt),{key:0,pxScroll:348,"background-color":"none",scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(13,29,41,0) 100%, rgba(13,29,41,1) 100%)",arrowsContainerBgR:"linear-gradient(270deg, rgba(13,29,41,0) 100%, rgba(13,29,41,1) 100%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[t.createElementVNode("div",h1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.data,(s,l)=>(t.openBlock(),t.createBlock(Sa,{key:l,data:s,small:"",onClickMatch:p=>i.$emit("clickMatch",s)},null,8,["data","onClickMatch"]))),128))])]),_:1})):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[n.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.data).length>0?(t.openBlock(),t.createBlock(t.unref(rt),{key:0,pxScroll:348,"background-color":"none",scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(13,29,41,0) 100%, rgba(13,29,41,1) 100%)",arrowsContainerBgR:"linear-gradient(270deg, rgba(13,29,41,0) 100%, rgba(13,29,41,1) 100%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[t.createElementVNode("div",g1,[e.data[0].game_status==4?(t.openBlock(),t.createBlock(ki,{key:0,data:e.data[0],onClickMatch:r[9]||(r[9]=s=>i.$emit("clickMatch",e.data[0]))},null,8,["data"])):t.createCommentVNode("",!0),e.data[0].game_status!=4?(t.openBlock(),t.createBlock(Si,{key:1,data:e.data[0],onClickMatch:r[10]||(r[10]=s=>i.$emit("clickMatch",e.data[0]))},null,8,["data"])):t.createCommentVNode("",!0)])]),_:1})):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.data).length>0?(t.openBlock(),t.createElementBlock("div",f1,[e.data[0].game_status==4?(t.openBlock(),t.createBlock(ki,{key:0,data:e.data[0],onClickMatch:r[7]||(r[7]=s=>i.$emit("clickMatch",e.data[0]))},null,8,["data"])):t.createCommentVNode("",!0),e.data[0].game_status!=4?(t.openBlock(),t.createBlock(Si,{key:1,data:e.data[0],onClickMatch:r[8]||(r[8]=s=>i.$emit("clickMatch",e.data[0]))},null,8,["data"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],64))],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[n.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.data).length>0?(t.openBlock(),t.createBlock(t.unref(rt),{key:0,pxScroll:348,"background-color":"none",scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(13,29,41,0) 100%, rgba(13,29,41,1) 100%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(13,29,41,0) 100%, rgba(13,29,41,1) 100%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[t.createElementVNode("div",u1,[t.createVNode(Sa,{small:"",data:e.data.data.prematch,onClickMatch:r[4]||(r[4]=s=>i.$emit("clickMatch",e.data.data.prematch))},null,8,["data"]),e.data.data.postmatch&&e.data.data.postmatch.game_status&&e.data.data.postmatch.game_status!==4?(t.openBlock(),t.createBlock(qt,{key:0,data:e.data.data.postmatch,onClickMatch:r[5]||(r[5]=s=>i.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"])):(t.openBlock(),t.createBlock(qt,{key:1,"info-type":"prematch",data:e.data.data.postmatch,onClickMatch:r[6]||(r[6]=s=>i.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"]))])]),_:1})):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.data).length>0?(t.openBlock(),t.createElementBlock("div",p1,[t.createVNode(Sa,{data:e.data.data.prematch,onClickMatch:r[1]||(r[1]=s=>i.$emit("clickMatch",e.data.data.prematch))},null,8,["data"]),e.data.data.postmatch&&e.data.data.postmatch.game_status&&e.data.data.postmatch.game_status!==4?(t.openBlock(),t.createBlock(qt,{key:0,data:e.data.data.postmatch,onClickMatch:r[2]||(r[2]=s=>i.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"])):(t.openBlock(),t.createBlock(qt,{key:1,"info-type":"prematch",data:e.data.data.postmatch,onClickMatch:r[3]||(r[3]=s=>i.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"]))])):t.createCommentVNode("",!0)],64))],64))]))}},[["__scopeId","data-v-0c45a1f6"]]),b1={__name:"gsc-games",props:{componentWidth:{type:Number,default:768,validator(e){return e>0}},isplayer:{type:Boolean,default:!1},isFull:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},setup(e){return(a,o)=>(t.openBlock(),t.createElementBlock("main",null,[t.createVNode(y1,{data:e.data,"component-width":e.componentWidth,"is-full":e.isFull,onClickCalendar:o[0]||(o[0]=n=>a.$emit("clickCalendar")),onClickMatch:o[1]||(o[1]=n=>a.$emit("clickMatch",n)),"has-team":!e.isplayer},null,8,["data","component-width","is-full","has-team"])]))}},w1="_toniKroos_1mxz1_35",_1="_centralMidfielder_1mxz1_55",S1="_icnPlayIcon_1mxz1_75",k1="_verVideos_1mxz1_89",C1="_btnVideosOptions_1mxz1_109",B1="_btnVideosOptionsTeams_1mxz1_139",E1="_info_1mxz1_179",N1="_goalUnlock_1mxz1_203",x1="_teamsAmerica_1mxz1_229",T1="_imageIcon_1mxz1_249",O1="_imageIconTeam_1mxz1_271",V1="_playerTops_1mxz1_295",$1={toniKroos:w1,centralMidfielder:_1,icnPlayIcon:S1,verVideos:k1,btnVideosOptions:C1,btnVideosOptionsTeams:B1,info:E1,goalUnlock:N1,teamsAmerica:x1,imageIcon:T1,imageIconTeam:O1,playerTops:V1},A1=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},z1={props:{height:{type:String,default:"194px"},background:{type:String,default:"#122735"},borderRadius:{type:String,default:"4px"},borderWidth:{type:Number,default:0},borderColor:{type:String,default:"#ffffff"},namePlayerFont:{type:String,default:"Montserrat-SemiBold"},namePlayerFontColor:{type:String,default:"#ffffff"},namePlayerFontSize:{type:String,default:"18px"},namePlayerFontStyle:{type:String,default:"Normal"},namePositionFont:{type:String,default:"Poppins-Regular"},namePositionFontColor:{type:String,default:"#8ea2ab"},namePositionFontSize:{type:String,default:"14px"},namePositionFontStyle:{type:String,default:"Normal"},totalFont:{type:String,default:"Poppins-Regular"},totalFontColor:{type:String,default:"#ffffff"},totalFontSize:{type:String,default:"8px"},totalFontStyle:{type:String,default:"Normal"},totalHeight:{type:String,default:"22px"},totalWidth:{type:String,default:"80px"},totalBorderRadius:{type:String,default:"64px"},totalBorderWidth:{type:Number,default:1},totalBorderColor:{type:String,default:"#cbee6b"},iconPlay:{type:String,default:"/icnplay1.svg"},teamWidth:{type:String,default:"34px"},teamPositionLeft:{type:String,default:"12px"},teamPositionTop:{type:String,default:""},playerOrTeamPhotoWidth:{type:String,default:"99px"},numbertopLeft:{type:String,default:"-8px"},numbertopBottom:{type:String,default:"-25px"},numbertopTop:{type:String},numbertopRight:{type:String},numbertopColor:{type:String,default:"#ffffff"},numbertopFontSize:{type:String,default:"98px"},numbertopOpacity:{type:String,default:"0.18"},numberFontFamily:{type:String,default:"Montserrat-SemiBold"},showShieldTeam:{type:Boolean,default:!0},showIconVideo:{type:Boolean,default:!0},showPositionPlayer:{type:Boolean,default:!0},activeVideos:{type:Boolean,default:!0},freemiumActive:{type:Boolean,default:!1},isPlayer:{type:Boolean,default:!0},data:{type:Object,default:()=>{}}},computed:{customMosaic(){return{height:this.height,background:this.background,borderRadius:`${this.borderRadius} !important`,border:`solid ${this.borderWidth}px ${this.borderColor}`}},customNamePlayer(){return{fontFamily:this.namePlayerFont,fontSize:this.namePlayerFontSize,color:this.namePlayerFontColor,fontStyle:this.namePlayerFontStyle}},customNamePosition(){return{fontFamily:this.namePositionFont,fontSize:this.namePositionFontSize,color:this.namePositionFontColor,fontStyle:this.namePositionFontStyle}},customTotal(){return{fontFamily:this.totalFont,fontSize:this.totalFontSize,color:this.totalFontColor,fontStyle:this.totalFontStyle}},customTotalCont(){return{MinHeight:this.totalHeight,width:this.totalWidth,borderRadius:`${this.totalBorderRadius} !important`,border:`solid ${this.totalBorderWidth}px ${this.totalBorderColor}`}},customShieldTeam(){return{width:this.teamWidth,top:this.teamPositionTop,left:this.teamPositionLeft}},customPhotoPlayerOrTeam(){return{width:this.playerOrTeamPhotoWidth}},customNumberTop(){return{fontSize:this.numbertopFontSize,color:this.numbertopColor,left:this.numbertopLeft,right:this.numbertopRight,top:this.numbertopTop,bottom:this.numbertopBottom,opacity:this.numbertopOpacity,fontFamily:this.numberFontFamily}}},methods:{onPlayerTopsClick(e){this.activeVideos&&(this.$emit("clickMosaic",e),this.$emit("freemium",this.freemiumActive))},onButtonVideos(e){this.activeVideos&&(this.$emit("openmedia",e),this.$emit("clickvideos",e.id),this.$emit("freemium",this.freemiumActive))}}},R1=["src"],I1=["src"],F1=["src"];function P1(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass(e.$style.playerTops),style:t.normalizeStyle(r.customMosaic),id:"player-mosaico",onClick:a[1]||(a[1]=s=>r.onPlayerTopsClick(o.data.player_id))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.info)},[t.createElementVNode("h3",{class:t.normalizeClass(e.$style.toniKroos),style:t.normalizeStyle(r.customNamePlayer)},t.toDisplayString(o.data.player_name),7),o.showPositionPlayer?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.centralMidfielder),style:t.normalizeStyle(r.customNamePosition)},t.toDisplayString(o.data.player_position),7)):t.createCommentVNode("",!0),t.createElementVNode("button",{class:t.normalizeClass(this.isPlayer?e.$style.btnVideosOptions:e.$style.btnVideosOptionsTeams),style:t.normalizeStyle(r.customTotalCont),id:"button-actions",onClick:a[0]||(a[0]=s=>r.onButtonVideos(o.data))},[o.showIconVideo?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.icnPlayIcon),src:o.iconPlay},null,10,R1)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.verVideos),style:t.normalizeStyle(r.customTotal)},t.toDisplayString(o.data.player_stat)+" "+t.toDisplayString(o.data.category),7)],6)],2),t.createElementVNode("b",{style:t.normalizeStyle(r.customNumberTop),class:t.normalizeClass(e.$style.goalUnlock)},t.toDisplayString(o.data.top),7),o.showShieldTeam?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.teamsAmerica),style:t.normalizeStyle(r.customShieldTeam),loading:"lazy",src:o.data.team_logo},null,14,I1)):t.createCommentVNode("",!0),t.createElementVNode("img",{style:t.normalizeStyle(r.customPhotoPlayerOrTeam),class:t.normalizeClass(this.isPlayer?e.$style.imageIcon:e.$style.imageIconTeam),loading:"lazy",src:o.data.player_photo},null,14,F1)],6)}const L1={$style:$1},D1=A1(z1,[["render",P1],["__cssModules",L1]]),M1=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},ka={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},Ci=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},Bi=ka.setup;ka.setup=Bi?(e,a)=>(Ci(),Bi(e,a)):Ci;const j1=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),v1=["src"],W1={key:1,class:"text"},U1=["src"],H1={class:"stats"},G1=j1(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),J1={class:"numstats"},q1={class:"leyend"};function Z1(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",null,[o.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",i.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([r.customStyle,i.status&&o.typeOnOff&&r.customActive]),onClick:a[0]||(a[0]=(...s)=>r.btnClick&&r.btnClick(...s))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,v1)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",W1,t.toDisplayString(o.textValue),1)):t.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,U1)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...s)=>r.btnClick&&r.btnClick(...s))},[t.createElementVNode("div",H1,[G1,t.createElementVNode("div",J1,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",q1,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const Ei=M1(ka,[["render",Z1],["__scopeId","data-v-fb269a1e"]]);function X1(e){const a=t.ref({width:0,height:0});function o(){const n=e.value.getBoundingClientRect();a.value.width=n.width,a.value.height=n.height}return t.onMounted(()=>{o(),window.addEventListener("resize",o)}),t.onUnmounted(()=>{window.removeEventListener("resize",o)}),{elementSize:a}}const Ca={props:{textOptionLeft:String,valueDefault:{type:String,default:""},textOptionRight:String,hiddenLabels:{type:Boolean,default:!1},width:{type:String,default:"50px"},height:{type:String,default:"32px"},heightCircle:{type:String,default:"24px"},widthCircle:{type:String,default:"24px"},widthIcons:{type:String,default:"22"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"14px"},fontColor:{type:String,default:"#000000"},iconA:{type:String,default:""},iconB:{type:String,default:""},fontFamily:{type:String,default:"Poppins-Light"},backgroundColor:{type:String,default:"#2e3b46"},circleColorSwitch:{type:String,default:"#FFFFFF"}},data(){return{OptionDefault:!1}},watch:{valueDefault:{immediate:!0,handler:async function(e){try{e==this.textOptionLeft&&(this.OptionDefault=!1),e==this.textOptionRight&&(this.OptionDefault=!0)}catch(a){throw new Error(a)}}}},computed:{customStyle(){return{width:this.width,height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,backgroundColor:this.backgroundColor,circleColor:this.circleColorSwitch}},customText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}}},methods:{handleSwitchChange(e){e.target.checked?this.$emit("change",this.textOptionRight):this.$emit("change",this.textOptionLeft)}}},Ni=()=>{t.useCssVars(e=>({"2bf57034":e.backgroundColor,b8f32872:e.widthCircle,23023166:e.heightCircle}))},xi=Ca.setup;Ca.setup=xi?(e,a)=>(Ni(),xi(e,a)):Ni;const K1={key:0,class:"text-left"},Y1=["width","src"],Q1=["checked"],e2=["width","src"],t2={key:3,class:"text-right"};function o2(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",{class:"gsc-switch-radio",style:t.normalizeStyle(r.customText)},[o.textOptionLeft!=""&&!o.hiddenLabels?(t.openBlock(),t.createElementBlock("span",K1,t.toDisplayString(o.textOptionLeft),1)):t.createCommentVNode("",!0),o.iconA!=""?(t.openBlock(),t.createElementBlock("img",{key:1,width:o.widthIcons,src:o.iconA},null,8,Y1)):t.createCommentVNode("",!0),t.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:a[0]||(a[0]=(...s)=>r.handleSwitchChange&&r.handleSwitchChange(...s)),checked:i.OptionDefault},null,40,Q1),t.createElementVNode("label",{for:"toggle-btn",style:t.normalizeStyle([r.customStyle,{"--circle-color":o.circleColorSwitch}])},null,4),o.iconB!=""?(t.openBlock(),t.createElementBlock("img",{key:2,width:o.widthIcons,src:o.iconB},null,8,e2)):t.createCommentVNode("",!0),o.textOptionRight!=""&&!o.hiddenLabels?(t.openBlock(),t.createElementBlock("span",t2,t.toDisplayString(o.textOptionRight),1)):t.createCommentVNode("",!0)],4)}const Ba={components:{GSCSlider:rt,GSCMosaicthebest:D1,GscSwitchComponent:Qo,GSCButton:Ei,GSCRadioToggle:ie(Ca,[["render",o2],["__scopeId","data-v-c2ae0cf9"]])},setup(){const e=t.ref("myDivRef"),{elementSize:a}=X1(e);return{myDivRef:e,elementSize:a}},props:{backgroundColor:{type:String,default:"#0D1D29"},showSwitch:{type:Boolean,default:!0},fontFamily:{type:String,default:"Poppins-Semibold"},fontColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"24px"},marginMosaic:{type:String,default:"24px"},tournament:{type:Number,default:1},season:{type:Number,default:1772},teamId:{type:Number,default:0}},watch:{async season(e,a){const o=this.categorySelected!==null?this.categorySelected:1;this.showSwitch||(this.filterSelected=1),await this.getCategoryStats(e,this.filterSelected,o)}},data:()=>({url:"https://kgfaxdv624.execute-api.us-east-2.amazonaws.com/prod/tops/seasons/",token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",categoriesDefault:["Goles","Pases acertados","Balones recuperados en disputa","Asistencias","Participaciones en gol","Tiros a gol","Tiros a gol que llegaron a la portería","Cabeceos en área rival","Cabeceos en área propia","Centros","Centros acertados","1vs1 exitosos ofensivos","1vs1 exitosos ofensivos que terminaron en gol","1vs1 defensivos exitoso","Rechaces","Balones ganados en área propia","Balones ganados en área rival","Faltas cometidas","Faltas recibidas","Tarjetas amarillas","Tarjetas rojas","Atajadas","Tiros de Esquina"],categories:[{id:1,name:"Goles"},{id:2,name:"Pases acertados"},{id:3,name:"Balones recuperados en disputa"},{id:4,name:"Asistencias"},{id:5,name:"Participaciones en gol"},{id:6,name:"Tiros a gol"},{id:7,name:"Tiros a gol que llegaron a la portería"},{id:8,name:"Cabeceos en área rival"},{id:9,name:"Cabeceos en área propia"},{id:10,name:"Centros"},{id:11,name:"Centros acertados"},{id:12,name:"1vs1 exitosos ofensivos"},{id:13,name:"1vs1 exitosos ofensivos que terminaron en gol"},{id:14,name:"1vs1 defensivos exitoso"},{id:15,name:"Rechaces"},{id:16,name:"Balones ganados en área propia"},{id:17,name:"Balones ganados en área rival"},{id:18,name:"Faltas cometidas"},{id:19,name:"Faltas recibidas"},{id:20,name:"Tarjetas amarillas"},{id:21,name:"Tarjetas rojas"},{id:22,name:"Atajadas"},{id:23,name:"Tiros de Esquina"}],categoryData:[],categorySelected:null,filterSelected:1,isTeam:!1,categoryName:"Goles",optionSelected:"Jugadores",positions:[{name:"Portero"},{name:"Defensa central"},{name:"Lateral por izquierda"},{name:"Lateral por derecha"},{name:"Volante por izquierda"},{name:"Volante por derecha"},{name:"Volante defensivo"},{name:"Volante ofensivo"},{name:"Delantero"},{name:"Desconocida"}]}),async created(){await this.getCategoryStats(this.season,1)},computed:{topData(){var e=[];return this.categorySelected!=null&&this.categoryData[this.categorySelected]!==void 0&&(this.isTeam?e=this.categoryData[this.categorySelected].top__teams:e=this.categoryData[this.categorySelected].top__players),e}},methods:{formatPlayerName(e){var n;const a=e.split(",");let o="";if(a[1]&&(o=`${a[1].trim()[0]}.`,a[0])){const i=(n=a[0])==null?void 0:n.trim().split(" ");for(let r of i)if(o=`${o} ${r.trim()}`,r.trim().length>3)break}return o},translateTopCategories(e){return{1:[12,55,"35_r","54_r"],2:[2,20],3:[485,486,487,488],4:[10,324],5:[27,323],6:[510],7:[537,540,544,547],8:[328],9:[231,238,280,287,294,406],10:[13,25],11:[98,101,104,105,109,112,115,116],12:[4],13:[88],14:[5],15:[34],16:[23],17:[11],18:[17,50],19:[18,49],20:[14,52],21:[15,53],22:[39],23:[31,32]}[e]||[]},onOpenMedia(e){const a=this.translateTopCategories(this.categorySelected),o=2,n=3;let i=[],r=0,s=0;this.isTeam?(r=e.player_id,s=n):(i=[e.player_id],s=o);const l={seasonId:this.season,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:s,gameIds:null,playerIds:i,goalkeeperIds:[],categoryIds:a,teamId:r,matchResult:[1,2,3],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:e.category},objectPlaySync:null};this.$emit("openmedia",l)},async ChangeRadio(e){const a=this.categorySelected!==null?this.categorySelected:1;e==="Mi equipo"&&(this.filterSelected=0,await this.getCategoryStats(this.season,0,a)),e==="Liga MX"&&(this.filterSelected=1,await this.getCategoryStats(this.season,1,a))},clickMosaic(e){this.$emit("boxinput",e)},clickMore(){this.$emit("more")},async changeType(e){const a=this.categorySelected!==null?this.categorySelected:1;this.optionSelected=e,e=="Equipos"?(await this.getCategoryStats(this.season,1,a),this.isTeam=!0):this.isTeam=!1},changeCategory(e){this.categoryName=e;const a=this.categories.find(o=>o.name===e);this.categorySelected=a.id},async getCategoryStats(e,a,o=0){try{let r={},s={},l=[];const p=Tt.create({headers:{Authorization:`${this.token}`}});var n={};if(a==0&&(n=await p.get(this.url+this.season+"/teams/"+this.teamId)),a==1&&(n=await p.get(this.url+e)),n&&n.data){n.data.teams.map(c=>{r[c[0]]={},r[c[0]].id=c[0],r[c[0]].name=c[1],r[c[0]].img=c[3],r[c[0]].abrv=c[2],r[c[0]].logo=c[3]}),n.data.players.map(c=>{s[c[0]]={},s[c[0]].id=c[0],s[c[0]].name=c[1],s[c[0]].img=c[2],s[c[0]].position=c[6],s[c[0]].logo="https://az755631.vo.msecnd.net/teams-80/"+c[10][0].team_id+".png"});var i=1;n.data.tops.map(c=>{l[c.category?c.category:i]={};var m={},u={};c.teams.map(h=>{m[h[0]]={},m[h[0]].total=h[1],m[h[0]].id=r[h[0]].id,m[h[0]].name=r[h[0]].name,m[h[0]].img="https://az755631.vo.msecnd.net/teams-150/"+h[0]+".png",m[h[0]].logo="https://az755631.vo.msecnd.net/teams-80/"+h[0]+".png"}),c.players.map(h=>{u[h[0]]={},u[h[0]].total=h[1],u[h[0]].name=s[h[0]].name,u[h[0]].img=s[h[0]].img.replace("players-profile/","players-profile/"),u[h[0]].id=s[h[0]].id,u[h[0]].position=this.positions[s[h[0]].position-1].name,u[h[0]].logo=s[h[0]].logo});var g=[],d=[];for(const h in m)g.push(m[h]);for(const h in u)d.push(u[h]);g.sort((h,f)=>h.total<f.total?1:-1),d.sort((h,f)=>h.total<f.total?1:-1),l[c.category?c.category:i].top__players=d,l[c.category?c.category:i].top__teams=g,i++})}o===0?this.categorySelected=1:this.categorySelected=o,this.categoryData=l}catch(r){return Promise.reject(r)}}}},Ti=()=>{t.useCssVars(e=>({"7a5b0a28":e.backgroundColor,"292ba61c":e.fontFamily,"510c78b9":e.fontSize,"60b8a4aa":e.fontColor,d5d221be:e.marginMosaic}))},Oi=Ba.setup;Ba.setup=Oi?(e,a)=>(Ti(),Oi(e,a)):Ti;const a2=e=>(t.pushScopeId("data-v-a5fb54bf"),e=e(),t.popScopeId(),e),n2={class:"gsc-best",ref:"myDivRef"},r2={class:"gsc-best__line-bar-tools"},i2={key:0,class:"gsc-best__line-bar-tools__title"},s2=a2(()=>t.createElementVNode("span",null,"Los mejores ",-1)),l2={key:1,class:"gsc-best__line-bar-tools__titlefull"},c2={class:"unit-items"},d2={key:2,class:"gsc-best__line-bar-tools__tools"},m2={key:0,class:"gsc-best__line-bar-tools__tools__tabs"},p2={class:"gsc-best__line-bar-tools__tools__btn"},u2={key:0,class:"gsc-best__line-bar-tools-movil"},h2={class:"gsc-best__line-bar-tools-movil__tabs"},f2={class:"gsc-best__categories"},g2={class:"gsc-best__players"};function y2(e,a,o,n,i,r){const s=t.resolveComponent("GSCRadioToggle"),l=t.resolveComponent("GSCButton"),p=t.resolveComponent("GscSwitchComponent"),c=t.resolveComponent("GSCMosaicthebest"),m=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",n2,[t.createElementVNode("div",r2,[n.elementSize.width>900?(t.openBlock(),t.createElementBlock("div",i2,[s2,e.optionSelected!=="Equipos"&&o.showSwitch?(t.openBlock(),t.createBlock(s,{key:0,height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","value-default":"Liga MX",iconA:"https://az755631.vo.msecnd.net/teams-150/"+o.teamId+".png",iconB:"https://az755631.vo.msecnd.net/todoelfut/1.png",textOptionLeft:"Mi equipo",textOptionRight:"Liga MX",onChange:r.ChangeRadio},null,8,["iconA","onChange"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),n.elementSize.width<=900?(t.openBlock(),t.createElementBlock("div",l2,[t.createElementVNode("span",{style:t.normalizeStyle(n.elementSize.width<=380?"font-size: 15px; margin-top:0px; width:60px;":"")},"Los mejores ",4),t.createElementVNode("span",c2,[e.optionSelected!=="Equipos"&&o.showSwitch?(t.openBlock(),t.createBlock(s,{key:0,height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","hidden-labels":!0,"value-default":"Liga MX",iconA:"https://az755631.vo.msecnd.net/teams-150/"+o.teamId+".png",iconB:"https://az755631.vo.msecnd.net/todoelfut/1.png",textOptionLeft:"Mi equipo",textOptionRight:"Liga MX",onChange:r.ChangeRadio},null,8,["iconA","onChange"])):t.createCommentVNode("",!0),t.createVNode(l,{style:{"margin-top":"4px"},width:"75px","text-value":"Ver más","font-color":n.elementSize.width<=680?"rgba(255,255,255, 0.7)":"#fff","font-size":n.elementSize.width<=680?"11px":"14px","text-decoration":"underline",onClick:r.clickMore},null,8,["font-color","font-size","onClick"])])])):t.createCommentVNode("",!0),n.elementSize.width>900?(t.openBlock(),t.createElementBlock("div",d2,[n.elementSize.width>900?(t.openBlock(),t.createElementBlock("div",m2,[t.createVNode(p,{type:1,buttons:["Jugadores","Equipos"],"selected-option":e.optionSelected,"border-radius":"32px",height:"28px","border-width":"1px","border-width-container":"0.5px","background-option-active":"#0d1d29","color-option-active":"#FFFFFF","font-size":"12px",width:"270px",fontFamily:"Poppins-Light",onInput:r.changeType,arrowsScrollHide:!1,arrowsPosition:"absolute"},null,8,["selected-option","onInput"])])):t.createCommentVNode("",!0),t.createElementVNode("div",p2,[t.createVNode(l,{width:"75px","text-value":"Ver más","font-size":"14px","text-decoration":"underline",onClick:r.clickMore},null,8,["onClick"]),t.createVNode(l,{width:"10px","text-value":"→","font-size":"14px","font-color":"#cbee6b",onClick:r.clickMore},null,8,["onClick"])])])):t.createCommentVNode("",!0)]),n.elementSize.width<=900?(t.openBlock(),t.createElementBlock("div",u2,[t.createElementVNode("div",h2,[t.createVNode(p,{type:1,buttons:["Jugadores","Equipos"],"selected-option":e.optionSelected,"border-radius":"32px",height:"28px","border-width":"1px","border-width-container":"0.5px","background-option-active":"#0d1d29","color-option-active":"#FFFFFF","font-size":"10px",width:"270px",fontFamily:"Poppins-Light",onInput:r.changeType},null,8,["selected-option","onInput"])])])):t.createCommentVNode("",!0),t.createElementVNode("div",f2,[t.createVNode(p,{type:2,arrow:!0,"font-family":"Poppins-Light",buttons:e.categoriesDefault,height:"40px","selected-option":"Goles","font-size":n.elementSize.width<=900?"12px":"14px",width:"max-content",onInput:r.changeCategory,pxScroll:200,scrollColor:"none",arrowsScrollHide:!1,arrowsMargin:0,borderWidth:"2px"},null,8,["buttons","font-size","onInput"])]),t.createElementVNode("div",g2,[t.createVNode(m,{pxScroll:198,scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(13,29,41,0) 0%, rgba(13,29,41,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(13,29,41,0) 0%, rgba(13,29,41,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.topData,(u,g)=>(t.openBlock(),t.createElementBlock("div",{key:g,class:t.normalizeClass(["gsc-best__players__item",g==0?"margin-none":""])},[t.createVNode(c,{data:{player_id:u.id,player_name:this.isTeam?u.name:r.formatPlayerName(u.name),player_position:u.position,player_stat:u.total,category:"Total",top:g<9?"0"+(g+1):g+1,team_logo:u.logo,player_photo:u.img},"show-shield-team":!0,"active-videos":!0,onClickMosaic:r.clickMosaic,onOpenmedia:r.onOpenMedia,namePlayerFontSize:"13px",namePositionFontSize:"10px",numbertopLeft:"-15px",numberFontFamily:"Oswald-SemiBold",totalFontSize:"12px",totalFont:"Poppins-Light!important",totalHeight:"21px","is-player":!this.isTeam},null,8,["data","onClickMosaic","onOpenmedia","is-player"])],2))),128))]),_:1})])],512)}const b2=ie(Ba,[["render",y2],["__scopeId","data-v-a5fb54bf"]]),w2={PO1:"CFI",PO2:"CFV",PO3:"SFI",PO4:"SFV",PO5:"FI",PO6:"FV"},_2={DF:"Dieciseisavos",OF:"Octavos",CF:"Cuartos",SF:"Semifinales","3ER":"Tercer lugar",FINAL:"Final"},S2={4:"Octavos",5:"Cuartos",6:"Semifinales",7:"Final"},k2=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},Ea={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},Vi=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},$i=Ea.setup;Ea.setup=$i?(e,a)=>(Vi(),$i(e,a)):Vi;const C2=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),B2=["src"],E2={key:1,class:"text"},N2=["src"],x2={class:"stats"},T2=C2(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),O2={class:"numstats"},V2={class:"leyend"};function $2(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",null,[o.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",i.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([r.customStyle,i.status&&o.typeOnOff&&r.customActive]),onClick:a[0]||(a[0]=(...s)=>r.btnClick&&r.btnClick(...s))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,B2)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",E2,t.toDisplayString(o.textValue),1)):t.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,N2)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...s)=>r.btnClick&&r.btnClick(...s))},[t.createElementVNode("div",x2,[T2,t.createElementVNode("div",O2,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",V2,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const A2=k2(Ea,[["render",$2],["__scopeId","data-v-fb269a1e"]]),z2={class:"gsc-dropdown__main-container__item-selected"},R2=["height","width"],I2=["stroke"],F2={class:"gsc-dropdown__items-container"},P2=["onClick"],L2={key:0,class:"gsc-dropdown__items-footer"},D2={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:a}){const o=e,n=t.ref({}),i=t.ref(null),r=t.ref(o.isMultipleOption?-1:0),s=t.ref(!1);t.watch(()=>o.items,(d,h)=>{if(!o.modelValue&&(!o.onlyFirstTime||!h||!h.length)&&d&&d.length){if(o.defaultItemByProp){const f=o.items.findIndex(y=>y[o.defaultItemByProp.propName]===o.defaultItemByProp.value);f!==-1?(r.value=f,n.value=d[f]):(r.value=0,n.value=d[0])}else n.value=d[o.defaultItemByIndex];a("input",n.value)}},{immediate:!0}),t.watch(()=>o.modelValue,d=>{if(d){const h=o.items.findIndex(f=>typeof d=="object"?JSON.stringify(f)===JSON.stringify(d):f===d);h!==-1&&(r.value=h,n.value=o.items[h],a("update:modelValue",n.value))}},{immediate:!0});const l=t.computed(()=>({height:o.height,width:o.width,backgroundColor:o.backgroundColor,borderRadius:`${o.borderRadius}px`,border:`${o.borderType} ${o.borderWidth}px ${o.borderColor}`,color:o.color,"--hover-background-color":o.hoverBackgroundColor,"--list-item-padding":o.listItemPadding,"--list-background-color":o.listBackgroundColor,"--list-height":o.listHeight,"--list-item-selected-color":o.listItemSelectedColor,"--list-item-selected-background-color":o.listItemSelectedBackgroundColor,"--list-item-color":o.listItemColor,"--list-border-radius":`${o.listBorderRadius}`,"--list-border-color":o.listBorderColor,"--list-width":o.isListSameWidth?o.width:"fit-content","--list-border-width":`${o.listBorderWidth}px`,"--footer-border":`${o.footerBorderWidth}px solid ${o.footerBorderColor}`,"--dropdown-opacity":o.isDisabled?"0.5":"1","--dropdown-cursor":o.isDisabled?"not-allowed":"pointer","--dropdown-font-size":o.fontSize?o.fontSize:"14px"})),p=t.computed(()=>({height:`${o.arrowHeight}px`,width:`${o.arrowWidth}px`}));function c(){o.isDisabled||(s.value=!s.value)}function m(d){i.value&&!i.value.contains(d.target)&&(s.value=!1)}function u(d,h){o.isMultipleOption?r.value=-1:(r.value=h,s.value=!1),n.value=d,a("input",n.value),a("update:modelValue",n.value)}function g(){s.value=!1,a("click-ready")}return t.onMounted(()=>{document.addEventListener("click",m)}),t.onBeforeMount(()=>{document.removeEventListener("click",m)}),(d,h)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:i,class:"gsc-dropdown",style:t.normalizeStyle(l.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:c},[t.createElementVNode("div",z2,[t.renderSlot(d.$slots,"default",{selectedItem:n.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":s.value}]),style:t.normalizeStyle(p.value)},[(t.openBlock(),t.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,I2)],8,R2))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",F2,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${o.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(f,y)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:y===r.value}]),key:y,onClick:C=>u(f,y)},[t.renderSlot(d.$slots,"availableItem",{item:f})],10,P2))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",L2,[t.createVNode(t.unref(A2),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:g})])):t.createCommentVNode("",!0)])],512),[[t.vShow,s.value]])]),_:3})],4))}},M2=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},j2={class:"tournament-select__selected-tournament"},v2={class:"tournament-select__selected-tournament__logo"},W2=["src"],U2={class:"tournament-select__selected-tournament__name"},H2={__name:"GSCTournamentSelect",props:{apiUrl:{type:String,default:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments"},fontFamily:{type:String,default:"Poppins-Light"},logosUrl:{type:String,default:"https://az755631.vo.msecnd.net/todoelfut/"},logoFileType:{type:String,default:"png"},height:{type:String,default:"40px"},width:{type:String,default:"179px"},borderRadius:{type:Number,default:8},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},backgroundColor:{type:String,default:"#0d1d29"},color:{type:String,default:"white"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},currentSeasonId:{type:Number,default:0}},emits:["input"],setup(e,{emit:a}){const o=e,n=t.ref([]),i=t.computed(()=>{const u={};return o.fontFamily&&(u["font-family"]=`${o.fontFamily}`),u}),r=t.computed(()=>n.value.find(u=>u.seasonsIds.has(o.currentSeasonId))||n.value[0]);async function s(){try{if(o.items&&o.items.length)n.value=[...o.items];else if(o.apiUrl){const u=await p();n.value=u.map(g=>({...g.tournament,seasons:g.seasons,seasonsIds:g.seasons.reduce((d,h)=>(d.add(h.id),d),new Set)})).sort((g,d)=>g.order-d.order)}}catch(u){throw new Error(u)}}function l(u){const g=new XMLHttpRequest,d=`${o.logosUrl}${u}.${o.logoFileType}`;return g.open("HEAD",d,!1),g.send(),g.status!==404}async function p(){try{return(await fetch(o.apiUrl)).json()}catch(u){return Promise.reject(u)}}function c(u){a("input",u)}function m(u){a("input",u)}return t.onMounted(()=>{s()}),(u,g)=>(t.openBlock(),t.createElementBlock("div",{class:"tournament-select",style:t.normalizeStyle(i.value)},[t.createVNode(t.unref(D2),t.mergeProps(o,{"model-value":r.value,items:n.value,onInput:c,"onUpdate:modelValue":m}),{default:t.withCtx(({selectedItem:d})=>[t.createElementVNode("div",j2,[t.createElementVNode("div",v2,[l(d.id)?(t.openBlock(),t.createElementBlock("img",{key:0,src:`${o.logosUrl}${d.id}.${o.logoFileType}`,alt:""},null,8,W2)):t.createCommentVNode("",!0)]),t.createElementVNode("div",U2,t.toDisplayString(d.name),1)])]),availableItem:t.withCtx(({item:d})=>[t.createElementVNode("div",null,t.toDisplayString(d.name),1)]),_:1},16,["model-value","items"])],4))}},G2=M2(H2,[["__scopeId","data-v-355af272"]]),J2=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},Na={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},Ai=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},zi=Na.setup;Na.setup=zi?(e,a)=>(Ai(),zi(e,a)):Ai;const q2=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),Z2=["src"],X2={key:1,class:"text"},K2=["src"],Y2={class:"stats"},Q2=q2(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),eb={class:"numstats"},tb={class:"leyend"};function ob(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",null,[o.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",i.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([r.customStyle,i.status&&o.typeOnOff&&r.customActive]),onClick:a[0]||(a[0]=(...s)=>r.btnClick&&r.btnClick(...s))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,Z2)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",X2,t.toDisplayString(o.textValue),1)):t.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,K2)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...s)=>r.btnClick&&r.btnClick(...s))},[t.createElementVNode("div",Y2,[Q2,t.createElementVNode("div",eb,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",tb,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const ab=J2(Na,[["render",ob],["__scopeId","data-v-fb269a1e"]]),nb={class:"gsc-dropdown__main-container__item-selected"},rb=["height","width"],ib=["stroke"],sb={class:"gsc-dropdown__items-container"},lb=["onClick"],cb={key:0,class:"gsc-dropdown__items-footer"},db={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:a}){const o=e,n=t.ref({}),i=t.ref(null),r=t.ref(o.isMultipleOption?-1:0),s=t.ref(!1);t.watch(()=>o.items,(d,h)=>{if(!o.modelValue&&(!o.onlyFirstTime||!h||!h.length)&&d&&d.length){if(o.defaultItemByProp){const f=o.items.findIndex(y=>y[o.defaultItemByProp.propName]===o.defaultItemByProp.value);f!==-1?(r.value=f,n.value=d[f]):(r.value=0,n.value=d[0])}else n.value=d[o.defaultItemByIndex];a("input",n.value)}},{immediate:!0}),t.watch(()=>o.modelValue,d=>{if(d){const h=o.items.findIndex(f=>typeof d=="object"?JSON.stringify(f)===JSON.stringify(d):f===d);h!==-1&&(r.value=h,n.value=o.items[h],a("update:modelValue",n.value))}},{immediate:!0});const l=t.computed(()=>({height:o.height,width:o.width,backgroundColor:o.backgroundColor,borderRadius:`${o.borderRadius}px`,border:`${o.borderType} ${o.borderWidth}px ${o.borderColor}`,color:o.color,"--hover-background-color":o.hoverBackgroundColor,"--list-item-padding":o.listItemPadding,"--list-background-color":o.listBackgroundColor,"--list-height":o.listHeight,"--list-item-selected-color":o.listItemSelectedColor,"--list-item-selected-background-color":o.listItemSelectedBackgroundColor,"--list-item-color":o.listItemColor,"--list-border-radius":`${o.listBorderRadius}`,"--list-border-color":o.listBorderColor,"--list-width":o.isListSameWidth?o.width:"fit-content","--list-border-width":`${o.listBorderWidth}px`,"--footer-border":`${o.footerBorderWidth}px solid ${o.footerBorderColor}`,"--dropdown-opacity":o.isDisabled?"0.5":"1","--dropdown-cursor":o.isDisabled?"not-allowed":"pointer","--dropdown-font-size":o.fontSize?o.fontSize:"14px"})),p=t.computed(()=>({height:`${o.arrowHeight}px`,width:`${o.arrowWidth}px`}));function c(){o.isDisabled||(s.value=!s.value)}function m(d){i.value&&!i.value.contains(d.target)&&(s.value=!1)}function u(d,h){o.isMultipleOption?r.value=-1:(r.value=h,s.value=!1),n.value=d,a("input",n.value),a("update:modelValue",n.value)}function g(){s.value=!1,a("click-ready")}return t.onMounted(()=>{document.addEventListener("click",m)}),t.onBeforeMount(()=>{document.removeEventListener("click",m)}),(d,h)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:i,class:"gsc-dropdown",style:t.normalizeStyle(l.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:c},[t.createElementVNode("div",nb,[t.renderSlot(d.$slots,"default",{selectedItem:n.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":s.value}]),style:t.normalizeStyle(p.value)},[(t.openBlock(),t.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,ib)],8,rb))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",sb,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${o.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(f,y)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:y===r.value}]),key:y,onClick:C=>u(f,y)},[t.renderSlot(d.$slots,"availableItem",{item:f})],10,lb))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",cb,[t.createVNode(t.unref(ab),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:g})])):t.createCommentVNode("",!0)])],512),[[t.vShow,s.value]])]),_:3})],4))}},mb=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},pb={class:"season-name"},ub={class:"items-list-season"},hb={__name:"GSC-SeasonSelect",props:{seasons:{type:Array,default:()=>[]},currentSeasonId:{type:Number,default:0}},emits:["input"],setup(e,{emit:a}){const o=e,n=t.computed(()=>o.seasons.find(s=>s.id===o.currentSeasonId));function i(s){a("input",s)}function r(s){a("input",s)}return(s,l)=>(t.openBlock(),t.createBlock(t.unref(db),{items:e.seasons,"model-value":n.value,height:"40px",width:"179px","background-color":"#0d1d29",color:"white","border-color":"rgba(255, 255, 255, 0.2)","font-family":"Poppins-Regular","border-radius":8,onInput:r,"onUpdate:modelValue":i},{default:t.withCtx(({selectedItem:p})=>[t.createElementVNode("div",pb,[t.createElementVNode("span",null,t.toDisplayString(p.name),1)])]),availableItem:t.withCtx(({item:p})=>[t.createElementVNode("span",ub,t.toDisplayString(p.name),1)]),_:1},8,["items","model-value"]))}},fb=mb(hb,[["__scopeId","data-v-3a11087d"]]);function Ri(e,a){return function(){return e.apply(a,arguments)}}const{toString:gb}=Object.prototype,{getPrototypeOf:xa}=Object,Zt=(e=>a=>{const o=gb.call(a);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),Te=e=>(e=e.toLowerCase(),a=>Zt(a)===e),Xt=e=>a=>typeof a===e,{isArray:Qe}=Array,ht=Xt("undefined");function yb(e){return e!==null&&!ht(e)&&e.constructor!==null&&!ht(e.constructor)&&me(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ii=Te("ArrayBuffer");function bb(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&Ii(e.buffer),a}const wb=Xt("string"),me=Xt("function"),Fi=Xt("number"),Kt=e=>e!==null&&typeof e=="object",_b=e=>e===!0||e===!1,Yt=e=>{if(Zt(e)!=="object")return!1;const a=xa(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Sb=Te("Date"),kb=Te("File"),Cb=Te("Blob"),Bb=Te("FileList"),Eb=e=>Kt(e)&&me(e.pipe),Nb=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||me(e.append)&&((a=Zt(e))==="formdata"||a==="object"&&me(e.toString)&&e.toString()==="[object FormData]"))},xb=Te("URLSearchParams"),Tb=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ft(e,a,{allOwnKeys:o=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),Qe(e))for(n=0,i=e.length;n<i;n++)a.call(null,e[n],n,e);else{const r=o?Object.getOwnPropertyNames(e):Object.keys(e),s=r.length;let l;for(n=0;n<s;n++)l=r[n],a.call(null,e[l],l,e)}}function Pi(e,a){a=a.toLowerCase();const o=Object.keys(e);let n=o.length,i;for(;n-- >0;)if(i=o[n],a===i.toLowerCase())return i;return null}const Li=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Di=e=>!ht(e)&&e!==Li;function Ta(){const{caseless:e}=Di(this)&&this||{},a={},o=(n,i)=>{const r=e&&Pi(a,i)||i;Yt(a[r])&&Yt(n)?a[r]=Ta(a[r],n):Yt(n)?a[r]=Ta({},n):Qe(n)?a[r]=n.slice():a[r]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&ft(arguments[n],o);return a}const Ob=(e,a,o,{allOwnKeys:n}={})=>(ft(a,(i,r)=>{o&&me(i)?e[r]=Ri(i,o):e[r]=i},{allOwnKeys:n}),e),Vb=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),$b=(e,a,o,n)=>{e.prototype=Object.create(a.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),o&&Object.assign(e.prototype,o)},Ab=(e,a,o,n)=>{let i,r,s;const l={};if(a=a||{},e==null)return a;do{for(i=Object.getOwnPropertyNames(e),r=i.length;r-- >0;)s=i[r],(!n||n(s,e,a))&&!l[s]&&(a[s]=e[s],l[s]=!0);e=o!==!1&&xa(e)}while(e&&(!o||o(e,a))&&e!==Object.prototype);return a},zb=(e,a,o)=>{e=String(e),(o===void 0||o>e.length)&&(o=e.length),o-=a.length;const n=e.indexOf(a,o);return n!==-1&&n===o},Rb=e=>{if(!e)return null;if(Qe(e))return e;let a=e.length;if(!Fi(a))return null;const o=new Array(a);for(;a-- >0;)o[a]=e[a];return o},Ib=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&xa(Uint8Array)),Fb=(e,a)=>{const o=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=o.next())&&!n.done;){const i=n.value;a.call(e,i[0],i[1])}},Pb=(e,a)=>{let o;const n=[];for(;(o=e.exec(a))!==null;)n.push(o);return n},Lb=Te("HTMLFormElement"),Db=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,o,n){return o.toUpperCase()+n}),Mi=(({hasOwnProperty:e})=>(a,o)=>e.call(a,o))(Object.prototype),Mb=Te("RegExp"),ji=(e,a)=>{const o=Object.getOwnPropertyDescriptors(e),n={};ft(o,(i,r)=>{let s;(s=a(i,r,e))!==!1&&(n[r]=s||i)}),Object.defineProperties(e,n)},jb=e=>{ji(e,(a,o)=>{if(me(e)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const n=e[o];if(me(n)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},vb=(e,a)=>{const o={},n=i=>{i.forEach(r=>{o[r]=!0})};return Qe(e)?n(e):n(String(e).split(a)),o},Wb=()=>{},Ub=(e,a)=>(e=+e,Number.isFinite(e)?e:a),Oa="abcdefghijklmnopqrstuvwxyz",vi="0123456789",Wi={DIGIT:vi,ALPHA:Oa,ALPHA_DIGIT:Oa+Oa.toUpperCase()+vi},Hb=(e=16,a=Wi.ALPHA_DIGIT)=>{let o="";const{length:n}=a;for(;e--;)o+=a[Math.random()*n|0];return o};function Gb(e){return!!(e&&me(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Jb=e=>{const a=new Array(10),o=(n,i)=>{if(Kt(n)){if(a.indexOf(n)>=0)return;if(!("toJSON"in n)){a[i]=n;const r=Qe(n)?[]:{};return ft(n,(s,l)=>{const p=o(s,i+1);!ht(p)&&(r[l]=p)}),a[i]=void 0,r}}return n};return o(e,0)},qb=Te("AsyncFunction"),Zb=e=>e&&(Kt(e)||me(e))&&me(e.then)&&me(e.catch),k={isArray:Qe,isArrayBuffer:Ii,isBuffer:yb,isFormData:Nb,isArrayBufferView:bb,isString:wb,isNumber:Fi,isBoolean:_b,isObject:Kt,isPlainObject:Yt,isUndefined:ht,isDate:Sb,isFile:kb,isBlob:Cb,isRegExp:Mb,isFunction:me,isStream:Eb,isURLSearchParams:xb,isTypedArray:Ib,isFileList:Bb,forEach:ft,merge:Ta,extend:Ob,trim:Tb,stripBOM:Vb,inherits:$b,toFlatObject:Ab,kindOf:Zt,kindOfTest:Te,endsWith:zb,toArray:Rb,forEachEntry:Fb,matchAll:Pb,isHTMLForm:Lb,hasOwnProperty:Mi,hasOwnProp:Mi,reduceDescriptors:ji,freezeMethods:jb,toObjectSet:vb,toCamelCase:Db,noop:Wb,toFiniteNumber:Ub,findKey:Pi,global:Li,isContextDefined:Di,ALPHABET:Wi,generateString:Hb,isSpecCompliantForm:Gb,toJSONObject:Jb,isAsyncFn:qb,isThenable:Zb};function L(e,a,o,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),o&&(this.config=o),n&&(this.request=n),i&&(this.response=i)}k.inherits(L,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:k.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Ui=L.prototype,Hi={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Hi[e]={value:e}}),Object.defineProperties(L,Hi),Object.defineProperty(Ui,"isAxiosError",{value:!0}),L.from=(e,a,o,n,i,r)=>{const s=Object.create(Ui);return k.toFlatObject(e,s,function(l){return l!==Error.prototype},l=>l!=="isAxiosError"),L.call(s,e.message,a,o,n,i),s.cause=e,s.name=e.name,r&&Object.assign(s,r),s};const Xb=null;function Va(e){return k.isPlainObject(e)||k.isArray(e)}function Gi(e){return k.endsWith(e,"[]")?e.slice(0,-2):e}function Ji(e,a,o){return e?e.concat(a).map(function(n,i){return n=Gi(n),!o&&i?"["+n+"]":n}).join(o?".":""):a}function Kb(e){return k.isArray(e)&&!e.some(Va)}const Yb=k.toFlatObject(k,{},null,function(e){return/^is[A-Z]/.test(e)});function Qt(e,a,o){if(!k.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,o=k.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,h){return!k.isUndefined(h[d])});const n=o.metaTokens,i=o.visitor||c,r=o.dots,s=o.indexes,l=(o.Blob||typeof Blob<"u"&&Blob)&&k.isSpecCompliantForm(a);if(!k.isFunction(i))throw new TypeError("visitor must be a function");function p(d){if(d===null)return"";if(k.isDate(d))return d.toISOString();if(!l&&k.isBlob(d))throw new L("Blob is not supported. Use a Buffer instead.");return k.isArrayBuffer(d)||k.isTypedArray(d)?l&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function c(d,h,f){let y=d;if(d&&!f&&typeof d=="object"){if(k.endsWith(h,"{}"))h=n?h:h.slice(0,-2),d=JSON.stringify(d);else if(k.isArray(d)&&Kb(d)||(k.isFileList(d)||k.endsWith(h,"[]"))&&(y=k.toArray(d)))return h=Gi(h),y.forEach(function(C,A){!(k.isUndefined(C)||C===null)&&a.append(s===!0?Ji([h],A,r):s===null?h:h+"[]",p(C))}),!1}return Va(d)?!0:(a.append(Ji(f,h,r),p(d)),!1)}const m=[],u=Object.assign(Yb,{defaultVisitor:c,convertValue:p,isVisitable:Va});function g(d,h){if(!k.isUndefined(d)){if(m.indexOf(d)!==-1)throw Error("Circular reference detected in "+h.join("."));m.push(d),k.forEach(d,function(f,y){(!(k.isUndefined(f)||f===null)&&i.call(a,f,k.isString(y)?y.trim():y,h,u))===!0&&g(f,h?h.concat(y):[y])}),m.pop()}}if(!k.isObject(e))throw new TypeError("data must be an object");return g(e),a}function qi(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return a[o]})}function $a(e,a){this._pairs=[],e&&Qt(e,this,a)}const Zi=$a.prototype;Zi.append=function(e,a){this._pairs.push([e,a])},Zi.toString=function(e){const a=e?function(o){return e.call(this,o,qi)}:qi;return this._pairs.map(function(o){return a(o[0])+"="+a(o[1])},"").join("&")};function Qb(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Xi(e,a,o){if(!a)return e;const n=o&&o.encode||Qb,i=o&&o.serialize;let r;if(i?r=i(a,o):r=k.isURLSearchParams(a)?a.toString():new $a(a,o).toString(n),r){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}class ew{constructor(){this.handlers=[]}use(a,o,n){return this.handlers.push({fulfilled:a,rejected:o,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){k.forEach(this.handlers,function(o){o!==null&&a(o)})}}const Ki=ew,Yi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},tw=typeof URLSearchParams<"u"?URLSearchParams:$a,ow=typeof FormData<"u"?FormData:null,aw=typeof Blob<"u"?Blob:null,nw=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),rw=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Oe={isBrowser:!0,classes:{URLSearchParams:tw,FormData:ow,Blob:aw},isStandardBrowserEnv:nw,isStandardBrowserWebWorkerEnv:rw,protocols:["http","https","file","blob","url","data"]};function iw(e,a){return Qt(e,new Oe.classes.URLSearchParams,Object.assign({visitor:function(o,n,i,r){return Oe.isNode&&k.isBuffer(o)?(this.append(n,o.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},a))}function sw(e){return k.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function lw(e){const a={},o=Object.keys(e);let n;const i=o.length;let r;for(n=0;n<i;n++)r=o[n],a[r]=e[r];return a}function Qi(e){function a(o,n,i,r){let s=o[r++];const l=Number.isFinite(+s),p=r>=o.length;return s=!s&&k.isArray(i)?i.length:s,p?(k.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!l):((!i[s]||!k.isObject(i[s]))&&(i[s]=[]),a(o,n,i[s],r)&&k.isArray(i[s])&&(i[s]=lw(i[s])),!l)}if(k.isFormData(e)&&k.isFunction(e.entries)){const o={};return k.forEachEntry(e,(n,i)=>{a(sw(n),i,o,0)}),o}return null}function cw(e,a,o){if(k.isString(e))try{return(a||JSON.parse)(e),k.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(o||JSON.stringify)(e)}const Aa={transitional:Yi,adapter:["xhr","http"],transformRequest:[function(e,a){const o=a.getContentType()||"",n=o.indexOf("application/json")>-1,i=k.isObject(e);if(i&&k.isHTMLForm(e)&&(e=new FormData(e)),k.isFormData(e))return n&&n?JSON.stringify(Qi(e)):e;if(k.isArrayBuffer(e)||k.isBuffer(e)||k.isStream(e)||k.isFile(e)||k.isBlob(e))return e;if(k.isArrayBufferView(e))return e.buffer;if(k.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let r;if(i){if(o.indexOf("application/x-www-form-urlencoded")>-1)return iw(e,this.formSerializer).toString();if((r=k.isFileList(e))||o.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Qt(r?{"files[]":e}:e,s&&new s,this.formSerializer)}}return i||n?(a.setContentType("application/json",!1),cw(e)):e}],transformResponse:[function(e){const a=this.transitional||Aa.transitional,o=a&&a.forcedJSONParsing,n=this.responseType==="json";if(e&&k.isString(e)&&(o&&!this.responseType||n)){const i=!(a&&a.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(r){if(i)throw r.name==="SyntaxError"?L.from(r,L.ERR_BAD_RESPONSE,this,null,this.response):r}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Oe.classes.FormData,Blob:Oe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};k.forEach(["delete","get","head","post","put","patch"],e=>{Aa.headers[e]={}});const za=Aa,dw=k.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),mw=e=>{const a={};let o,n,i;return e&&e.split(`
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
`):" "+ns(r[0]):"as no adapter specified";throw new L("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:Fa};function Pa(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new yt(null,e)}function is(e){return Pa(e),e.headers=Fe.from(e.headers),e.data=Ia.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),rs.getAdapter(e.adapter||za.adapter)(e).then(function(a){return Pa(e),a.data=Ia.call(e,e.transformResponse,a),a.headers=Fe.from(a.headers),a},function(a){return ts(a)||(Pa(e),a&&a.response&&(a.response.data=Ia.call(e,e.transformResponse,a.response),a.response.headers=Fe.from(a.response.headers))),Promise.reject(a)})}const ss=e=>e instanceof Fe?e.toJSON():e;function et(e,a){a=a||{};const o={};function n(c,m,u){return k.isPlainObject(c)&&k.isPlainObject(m)?k.merge.call({caseless:u},c,m):k.isPlainObject(m)?k.merge({},m):k.isArray(m)?m.slice():m}function i(c,m,u){if(k.isUndefined(m)){if(!k.isUndefined(c))return n(void 0,c,u)}else return n(c,m,u)}function r(c,m){if(!k.isUndefined(m))return n(void 0,m)}function s(c,m){if(k.isUndefined(m)){if(!k.isUndefined(c))return n(void 0,c)}else return n(void 0,m)}function l(c,m,u){if(u in a)return n(c,m);if(u in e)return n(void 0,c)}const p={url:r,method:r,data:r,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(c,m)=>i(ss(c),ss(m),!0)};return k.forEach(Object.keys(Object.assign({},e,a)),function(c){const m=p[c]||i,u=m(e[c],a[c],c);k.isUndefined(u)&&m!==l||(o[c]=u)}),o}const ls="1.5.1",La={};["object","boolean","number","function","string","symbol"].forEach((e,a)=>{La[e]=function(o){return typeof o===e||"a"+(a<1?"n ":" ")+e}});const cs={};La.transitional=function(e,a,o){function n(i,r){return"[Axios v"+ls+"] Transitional option '"+i+"'"+r+(o?". "+o:"")}return(i,r,s)=>{if(e===!1)throw new L(n(r," has been removed"+(a?" in "+a:"")),L.ERR_DEPRECATED);return a&&!cs[r]&&(cs[r]=!0,console.warn(n(r," has been deprecated since v"+a+" and will be removed in the near future"))),e?e(i,r,s):!0}};function Nw(e,a,o){if(typeof e!="object")throw new L("options must be an object",L.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const r=n[i],s=a[r];if(s){const l=e[r],p=l===void 0||s(l,r,e);if(p!==!0)throw new L("option "+r+" must be "+p,L.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new L("Unknown option "+r,L.ERR_BAD_OPTION)}}const Da={assertOptions:Nw,validators:La},Me=Da.validators;class oo{constructor(a){this.defaults=a,this.interceptors={request:new Ki,response:new Ki}}request(a,o){typeof a=="string"?(o=o||{},o.url=a):o=a||{},o=et(this.defaults,o);const{transitional:n,paramsSerializer:i,headers:r}=o;n!==void 0&&Da.assertOptions(n,{silentJSONParsing:Me.transitional(Me.boolean),forcedJSONParsing:Me.transitional(Me.boolean),clarifyTimeoutError:Me.transitional(Me.boolean)},!1),i!=null&&(k.isFunction(i)?o.paramsSerializer={serialize:i}:Da.assertOptions(i,{encode:Me.function,serialize:Me.function},!0)),o.method=(o.method||this.defaults.method||"get").toLowerCase();let s=r&&k.merge(r.common,r[o.method]);r&&k.forEach(["delete","get","head","post","put","patch","common"],h=>{delete r[h]}),o.headers=Fe.concat(s,r);const l=[];let p=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(o)===!1||(p=p&&h.synchronous,l.unshift(h.fulfilled,h.rejected))});const c=[];this.interceptors.response.forEach(function(h){c.push(h.fulfilled,h.rejected)});let m,u=0,g;if(!p){const h=[is.bind(this),void 0];for(h.unshift.apply(h,l),h.push.apply(h,c),g=h.length,m=Promise.resolve(o);u<g;)m=m.then(h[u++],h[u++]);return m}g=l.length;let d=o;for(u=0;u<g;){const h=l[u++],f=l[u++];try{d=h(d)}catch(y){f.call(this,y);break}}try{m=is.call(this,d)}catch(h){return Promise.reject(h)}for(u=0,g=c.length;u<g;)m=m.then(c[u++],c[u++]);return m}getUri(a){a=et(this.defaults,a);const o=os(a.baseURL,a.url);return Xi(o,a.params,a.paramsSerializer)}}k.forEach(["delete","get","head","options"],function(e){oo.prototype[e]=function(a,o){return this.request(et(o||{},{method:e,url:a,data:(o||{}).data}))}}),k.forEach(["post","put","patch"],function(e){function a(o){return function(n,i,r){return this.request(et(r||{},{method:e,headers:o?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}oo.prototype[e]=a(),oo.prototype[e+"Form"]=a(!0)});const ao=oo;class Ma{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(i){o=i});const n=this;this.promise.then(i=>{if(!n._listeners)return;let r=n._listeners.length;for(;r-- >0;)n._listeners[r](i);n._listeners=null}),this.promise.then=i=>{let r;const s=new Promise(l=>{n.subscribe(l),r=l}).then(i);return s.cancel=function(){n.unsubscribe(r)},s},a(function(i,r,s){n.reason||(n.reason=new yt(i,r,s),o(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const o=this._listeners.indexOf(a);o!==-1&&this._listeners.splice(o,1)}static source(){let a;return{token:new Ma(function(o){a=o}),cancel:a}}}const xw=Ma;function Tw(e){return function(a){return e.apply(null,a)}}function Ow(e){return k.isObject(e)&&e.isAxiosError===!0}const ja={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ja).forEach(([e,a])=>{ja[a]=e});const Vw=ja;function ds(e){const a=new ao(e),o=Ri(ao.prototype.request,a);return k.extend(o,ao.prototype,a,{allOwnKeys:!0}),k.extend(o,a,null,{allOwnKeys:!0}),o.create=function(n){return ds(et(e,n))},o}const q=ds(za);q.Axios=ao,q.CanceledError=yt,q.CancelToken=xw,q.isCancel=ts,q.VERSION=ls,q.toFormData=Qt,q.AxiosError=L,q.Cancel=q.CanceledError,q.all=function(e){return Promise.all(e)},q.spread=Tw,q.isAxiosError=Ow,q.mergeConfig=et,q.AxiosHeaders=Fe,q.formToJSON=e=>Qi(k.isHTMLForm(e)?new FormData(e):e),q.getAdapter=rs.getAdapter,q.HttpStatusCode=Vw,q.default=q;const ms=q,$w=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o},va={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0}},mounted(){this.getScroll()},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*2+this.arrowsPadding*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0)}}},ps=()=>{t.useCssVars(e=>({cc900658:e.backgroundColor,"243d0048":e.height,"12ed9ef4":e.arrowsPosition,"434aae32":e.arrowsPadding+"px","6c491439":e.arrowsBackground,"1a7aa8c4":e.arrowsHeight*2+"px","6e4c9ee1":e.arrowsWidth*2+"px","2876691d":e.arrowsRadius,"0df470b7":e.arrowsBorder,27766434:e.arrowsMargin+"px","122404b1":e.arrowsContainerBgL,"122404b7":e.arrowsContainerBgR,"31486e15":e.scrollColor}))},us=va.setup;va.setup=us?(e,a)=>(ps(),us(e,a)):ps;const Aw={class:"scrollable-container"},zw={class:"scrollable-arrows"},Rw=["width","height","viewBox"],Iw=["stroke"],Fw={class:"scrollable-wrapper"},Pw={class:"scrollable-arrows"},Lw=["width","height","viewBox"],Dw=["stroke"];function Mw(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",Aw,[o.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",r.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...s)=>r.scrollLeft&&r.scrollLeft(...s))},[t.createElementVNode("div",zw,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:r.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:o.arrowsColor},null,8,Iw)],8,Rw))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content",ref:"content",onScroll:a[1]||(a[1]=(...s)=>r.getScroll&&r.getScroll(...s))},[t.createElementVNode("div",Fw,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),o.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["arrows-container",r.hideShowRightArrow]),onClick:a[2]||(a[2]=(...s)=>r.scrollRight&&r.scrollRight(...s))},[t.createElementVNode("div",Pw,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:r.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:o.arrowsColor},null,8,Dw)],8,Lw))])],2)):t.createCommentVNode("",!0)])}const jw=$w(va,[["render",Mw],["__scopeId","data-v-a717f423"]]),We=(e,a)=>{const o=e.__vccOpts||e;for(const[n,i]of a)o[n]=i;return o};let hs=null;const Wa={components:{},props:{titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},baselogo(){const e=this.gamesContainerWidth;return e<=400?"base-logo400":e<=540?"base-logo540":e<=650?"base-logo650":"base-logo"},baselogoright(){const e=this.gamesContainerWidth;return e<=400?"base-logo-right400":e<=540?"base-logo-right540":e<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},logoright(){const e=this.gamesContainerWidth;return e<=400?"logo-right400":e<=540?"logo-right540":e<=650?"logo-right650":"logo-right"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},titlename(){const e=this.gamesContainerWidth;return e<=400?"title-name400":e<=540?"title-name540":e<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)hs=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),hs.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},fs=()=>{t.useCssVars(e=>({d6f07504:e.colorBackgroundHome+"45","6d0848cf":e.colorBackgroundAway+"45","524ee4ec":e.colorBackgroundHome,"524bd2fb":e.colorBackgroundAway}))},gs=Wa.setup;Wa.setup=gs?(e,a)=>(fs(),gs(e,a)):fs;const no=e=>(t.pushScopeId("data-v-45034b51"),e=e(),t.popScopeId(),e),vw=no(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),Ww=[vw],Uw=no(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),Hw=["src"],Gw=no(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),Jw=no(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),qw=["src"],Zw=["src"],Xw={class:"text-container"};function Kw(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(r.thumbnailhighlights)},[t.createElementVNode("div",{class:t.normalizeClass(r.playbutton),onClick:a[0]||(a[0]=(...s)=>r.onclickPlayVideos&&r.onclickPlayVideos(...s))},Ww,2),o.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.date)},t.toDisplayString(o.dateGame),3)):t.createCommentVNode("",!0),o.matchday!=""&&o.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(r.containerinfogame)},[o.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.matchcontainer)},t.toDisplayString(o.matchday),3)):t.createCommentVNode("",!0),o.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(r.seasoncontainer)},t.toDisplayString(o.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),Uw,t.createElementVNode("img",{src:o.background,alt:"",class:"bkg-blackwhite position-image"},null,8,Hw),t.createElementVNode("div",{class:t.normalizeClass([r.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(r.baselogoright)},null,2),Gw,Jw,t.createElementVNode("img",{src:o.logoHome,alt:"",class:t.normalizeClass(r.teamlogo)},null,10,qw),t.createElementVNode("img",{src:o.logoAway,alt:"",class:t.normalizeClass(r.logoright)},null,10,Zw),t.createElementVNode("div",Xw,[t.createElementVNode("span",{class:t.normalizeClass(r.secondline)},t.toDisplayString(o.score),3),t.createElementVNode("div",{class:t.normalizeClass(r.titlename)},t.toDisplayString(o.titleCategory),3)])],2)}const Yw=We(Wa,[["render",Kw],["__scopeId","data-v-45034b51"]]);let ys=null;const Ua={components:{},props:{colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{type:String,default:""},photoProfile:{type:String,default:""},logoHome:{type:String,default:""},logoAway:{type:String,default:""},scoreHome:{type:String,default:""},scoreAway:{type:String,default:""},background:{type:String,default:""},typeImg:{type:Number,default:0},nameHomeTeam:{type:String,default:""},nameAwayTeam:{type:String,default:""},namePlayer:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},firstline(){const e=this.gamesContainerWidth;return e<=400?"first-line400":e<=540?"first-line540":e<=650?"first-line650":"first-line"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},playerimage(){const e=this.gamesContainerWidth;return e<=400?"player-image400":e<=540?"player-image540":e<=650?"player-image650":"player-image"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)ys=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),ys.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},bs=()=>{t.useCssVars(e=>({"46c0698e":e.colorBackgroundHome,"12d9d27a":e.colorBackgroundHome+"36"}))},ws=Ua.setup;Ua.setup=ws?(e,a)=>(bs(),ws(e,a)):bs;const bt=e=>(t.pushScopeId("data-v-9caaef34"),e=e(),t.popScopeId(),e),Qw=bt(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),e_=[Qw],t_=bt(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),o_=["src"],a_=bt(()=>t.createElementVNode("div",{class:"base-logo"},null,-1)),n_=["src"],r_=bt(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),i_={class:"text-container"},s_={class:"player-image position-image"},l_=["src"],c_=["src"],d_=["src"],m_=bt(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1));function p_(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(r.thumbnailhighlights)},[t.createElementVNode("div",{class:t.normalizeClass(r.playbutton),onClick:a[0]||(a[0]=(...s)=>r.onclickPlayVideos&&r.onclickPlayVideos(...s))},e_,2),t_,t.createElementVNode("img",{src:o.background,alt:"",class:"bkg-blackwhite position-image"},null,8,o_),a_,t.createElementVNode("img",{src:o.logoHome,alt:"",class:t.normalizeClass(r.teamlogo)},null,10,n_),r_,t.createElementVNode("div",i_,[t.createElementVNode("span",{class:t.normalizeClass(r.firstline)},t.toDisplayString(o.namePlayer),3),t.createElementVNode("span",{class:t.normalizeClass(r.secondline),style:t.normalizeStyle(o.nameCategory=="Balones recuperados en disputa "?"font-size: 25px":"")},t.toDisplayString(o.nameCategory),7)]),t.createElementVNode("div",s_,[o.typeImg==0?(t.openBlock(),t.createElementBlock("img",{key:0,src:o.photoProfile,class:t.normalizeClass(r.playerimage)},null,10,l_)):t.createCommentVNode("",!0),o.typeImg==1?(t.openBlock(),t.createElementBlock("img",{key:1,src:o.photoProfile,alt:""},null,8,c_)):t.createCommentVNode("",!0),o.typeImg==2?(t.openBlock(),t.createElementBlock("img",{key:2,src:o.photoProfile,class:"img-number"},null,8,d_)):t.createCommentVNode("",!0)]),m_],2)}const u_=We(Ua,[["render",p_],["__scopeId","data-v-9caaef34"]]);let _s=null;const Ha={components:{},props:{colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""},nameTeam:{type:String,default:""},nameCategory:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},firstline(){const e=this.gamesContainerWidth;return e<=400?"first-line400":e<=540?"first-line540":e<=650?"first-line650":"first-line"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)_s=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),_s.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Ss=()=>{t.useCssVars(e=>({"5536c7dc":e.colorBackgroundHome,"3e449276":e.colorBackgroundHome+"36"}))},ks=Ha.setup;Ha.setup=ks?(e,a)=>(Ss(),ks(e,a)):Ss;const ro=e=>(t.pushScopeId("data-v-ca6c08d9"),e=e(),t.popScopeId(),e),h_=ro(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),f_=[h_],g_=ro(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),y_=["src"],b_={width:"275",height:"125",viewBox:"0 0 275 125",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"base-logo"},w_=["fill"],__=["id"],S_=["stop-color"],k_=["stop-color"],C_=["src"],B_=ro(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),E_={class:"text-container"},N_=ro(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1));function x_(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(r.thumbnailhighlights)},[t.createElementVNode("div",{class:t.normalizeClass(r.playbutton),onClick:a[0]||(a[0]=(...s)=>r.onclickPlayVideos&&r.onclickPlayVideos(...s))},f_,2),g_,t.createElementVNode("img",{src:o.background,alt:"",class:"bkg-blackwhite position-image"},null,8,y_),(t.openBlock(),t.createElementBlock("svg",b_,[t.createElementVNode("path",{d:"M274.641 124.094L0 0.675049V124.094H274.641Z",fill:"url(#paint0_linear_7_"+o.nameTeam.replaceAll(" ","")+")"},null,8,w_),t.createElementVNode("defs",null,[t.createElementVNode("linearGradient",{id:"paint0_linear_7_"+o.nameTeam.replaceAll(" ",""),x1:"58.6578",y1:"15.5938",x2:"58.6578",y2:"124.094",gradientUnits:"userSpaceOnUse"},[t.createElementVNode("stop",{"stop-color":o.colorBackgroundHome},null,8,S_),t.createElementVNode("stop",{offset:"1","stop-color":o.colorBackgroundHome},null,8,k_)],8,__)])])),t.createElementVNode("img",{class:t.normalizeClass(r.teamlogo),src:o.logoHome,alt:""},null,10,C_),B_,t.createElementVNode("div",E_,[t.createElementVNode("span",{class:t.normalizeClass(r.firstline)},[o.nameTeam!="Local"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(o.nameTeam),1)],64)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(r.secondline)},t.toDisplayString(o.nameCategory),3)]),N_],2)}const T_=We(Ha,[["render",x_],["__scopeId","data-v-ca6c08d9"]]);let Cs=null;const Ga={components:{},props:{colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""},nameTeam:{type:String,default:""},nameCategory:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},firstline(){const e=this.gamesContainerWidth;return e<=400?"first-line400":e<=540?"first-line540":e<=650?"first-line650":"first-line"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)Cs=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Cs.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Bs=()=>{t.useCssVars(e=>({"17b44fa7":e.colorBackgroundHome,f1e257fe:e.colorBackgroundHome+"36"}))},Es=Ga.setup;Ga.setup=Es?(e,a)=>(Bs(),Es(e,a)):Bs;const io=e=>(t.pushScopeId("data-v-49b4e56b"),e=e(),t.popScopeId(),e),O_=io(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),V_=[O_],$_=io(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),A_=["src"],z_={width:"275",height:"125",viewBox:"0 0 275 125",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"base-logo-away"},R_=["fill"],I_=["id"],F_=["stop-color"],P_=["stop-color"],L_=["src"],D_=io(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),M_={class:"text-container"},j_=io(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1));function v_(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(r.thumbnailhighlights)},[t.createElementVNode("div",{class:t.normalizeClass(r.playbutton),onClick:a[0]||(a[0]=(...s)=>r.onclickPlayVideos&&r.onclickPlayVideos(...s))},V_,2),$_,t.createElementVNode("img",{src:o.background,alt:"",class:"bkg-blackwhite position-image"},null,8,A_),(t.openBlock(),t.createElementBlock("svg",z_,[t.createElementVNode("path",{d:"M274.641 124.094L0 0.675049V124.094H274.641Z",fill:"url(#paint0_linear_7_"+o.nameTeam.replaceAll(" ","")+")"},null,8,R_),t.createElementVNode("defs",null,[t.createElementVNode("linearGradient",{id:"paint0_linear_7_"+o.nameTeam.replaceAll(" ",""),x1:"58.6578",y1:"15.5938",x2:"58.6578",y2:"124.094",gradientUnits:"userSpaceOnUse"},[t.createElementVNode("stop",{"stop-color":o.colorBackgroundAway},null,8,F_),t.createElementVNode("stop",{offset:"1","stop-color":o.colorBackgroundAway},null,8,P_)],8,I_)])])),t.createElementVNode("img",{class:t.normalizeClass(r.teamlogo),src:o.logoHome,alt:""},null,10,L_),D_,t.createElementVNode("div",M_,[t.createElementVNode("span",{class:t.normalizeClass(r.firstline)},[o.nameTeam!="Away"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(o.nameTeam),1)],64)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(r.secondline)},t.toDisplayString(o.nameCategory),3)]),j_],2)}const W_=We(Ga,[["render",v_],["__scopeId","data-v-49b4e56b"]]);let Ns=null;const Ja={components:{},props:{colorFontHome:{type:String,default:"#000000"},colorFontAway:{type:String,default:"#000000"},type:{type:Number,default:0},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{type:String,default:""},photoProfile:{type:String,default:""},logoHome:{type:String,default:""},logoAway:{type:String,default:""},scoreHome:{type:String,default:""},scoreAway:{type:String,default:""},background:{type:String,default:""},typeImg:{type:Number,default:0},nameHomeTeam:{type:String,default:""},nameAwayTeam:{type:String,default:""},namePlayer:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},points(){const e=this.gamesContainerWidth;return e<=400?"points400":e<=540?"points540":e<=650?"points650":"points"},teamname(){const e=this.gamesContainerWidth;return e<=400?"team-name400":e<=540?"team-name540":e<=650?"team-name650":"team-name"},teamscore(){const e=this.gamesContainerWidth;return e<=400?"team-score400":e<=540?"team-score540":e<=650?"team-score650":"team-score"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},hometeam(){const e=this.gamesContainerWidth;return e<=400?"home-team400":e<=540?"home-team540":e<=650?"home-team650":"home-team"},awayteam(){const e=this.gamesContainerWidth;return e<=400?"away-team400":e<=540?"away-team540":e<=650?"away-team650":"away-team"},texttitle(){const e=this.gamesContainerWidth;return e<=400?"text-title400":e<=540?"text-title540":e<=650?"text-title650":"text-title"},texttitle2(){const e=this.gamesContainerWidth;return e<=400?"text-title2400":e<=540?"text-title2540":e<=650?"text-title2650":"text-title2"},playerimage(){const e=this.gamesContainerWidth;return e<=400?"player-image400":e<=540?"player-image540":e<=650?"player-image650":"player-image"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)Ns=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Ns.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},xs=()=>{t.useCssVars(e=>({"102d345c":e.colorBackgroundHome,"1033583e":e.colorBackgroundAway,"2c786ece":e.colorBackgroundAway+"62","53f7e0b6":e.colorBackgroundHome+"36"}))},Ts=Ja.setup;Ja.setup=Ts?(e,a)=>(xs(),Ts(e,a)):xs;const so=e=>(t.pushScopeId("data-v-3a68172d"),e=e(),t.popScopeId(),e),U_=so(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),H_=so(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),G_=[H_],J_={class:"player-container"},q_=["src"],Z_=["src"],X_=["src"],K_={class:"container-score"},Y_=["src"],Q_=["src"],eS=["src"],tS=so(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),oS=so(()=>t.createElementVNode("div",{class:"gradient-color"},null,-1));function aS(e,a,o,n,i,r){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(r.thumbnailhighlights)},[U_,t.createElementVNode("div",{class:t.normalizeClass(r.playbutton),onClick:a[0]||(a[0]=(...s)=>r.onclickPlayVideos&&r.onclickPlayVideos(...s))},G_,2),t.createElementVNode("div",J_,[o.type==0?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(r.texttitle)},t.toDisplayString(o.nameCategory),3)):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(r.texttitle2)},t.toDisplayString(o.nameCategory),3)),o.typeImg==0?(t.openBlock(),t.createElementBlock("img",{key:2,src:o.photoProfile,class:t.normalizeClass(r.playerimage)},null,10,q_)):t.createCommentVNode("",!0),o.typeImg==1?(t.openBlock(),t.createElementBlock("img",{key:3,src:o.photoProfile,alt:""},null,8,Z_)):t.createCommentVNode("",!0),o.typeImg==2?(t.openBlock(),t.createElementBlock("img",{key:4,src:o.photoProfile,class:"img-number"},null,8,X_)):t.createCommentVNode("",!0),t.createElementVNode("div",K_,[t.createElementVNode("div",{class:t.normalizeClass(r.hometeam)},[t.createElementVNode("span",{class:t.normalizeClass(r.teamname),style:t.normalizeStyle({color:o.colorFontAway})},t.toDisplayString(o.nameHomeTeam),7),t.createElementVNode("img",{src:o.logoHome,alt:"",class:t.normalizeClass(r.teamlogo)},null,10,Y_),t.createElementVNode("span",{class:t.normalizeClass(r.teamscore)},t.toDisplayString(o.scoreHome),3)],2),t.createElementVNode("span",{class:t.normalizeClass(r.points)},":",2),t.createElementVNode("div",{class:t.normalizeClass(r.awayteam)},[t.createElementVNode("span",{class:t.normalizeClass(r.teamscore)},t.toDisplayString(o.scoreAway),3),t.createElementVNode("img",{src:o.logoAway,alt:"",class:t.normalizeClass(r.teamlogo)},null,10,Q_),t.createElementVNode("span",{class:t.normalizeClass(r.teamname),style:t.normalizeStyle({color:o.colorFontAway})},t.toDisplayString(o.nameAwayTeam),7)],2)])]),t.createElementVNode("img",{src:o.background,alt:"",class:"bkg-blackwhite position-image"},null,8,eS),tS,oS],2)}const nS=We(Ja,[["render",aS],["__scopeId","data-v-3a68172d"]]);let Os=null;const qa={components:{},props:{colorFont:{type:String,default:"#000000"},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{type:String,default:""},photoProfile:{type:String,default:""},logoHome:{type:String,default:""},logoAway:{type:String,default:""},scoreHome:{type:String,default:""},scoreAway:{type:String,default:""},background:{type:String,default:""},typeImg:{type:Number,default:0},nameHomeTeam:{type:String,default:""},nameAwayTeam:{type:String,default:""},namePlayer:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},firstline(){const e=this.gamesContainerWidth;return e<=400?"first-line400":e<=540?"first-line540":e<=650?"first-line650":"first-line"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},playername(){const e=this.gamesContainerWidth;return e<=400?"player-name400":e<=540?"player-name540":e<=650?"player-name650":"player-name"},playerimage(){const e=this.gamesContainerWidth;return e<=400?"player-image400":e<=540?"player-image540":e<=650?"player-image650":"player-image"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)Os=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Os.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Vs=()=>{t.useCssVars(e=>({"7f6829cd":e.colorBackgroundHome+"30","1ad47d61":e.colorBackgroundHome}))},$s=qa.setup;qa.setup=$s?(e,a)=>(Vs(),$s(e,a)):Vs;const lo=e=>(t.pushScopeId("data-v-cc315132"),e=e(),t.popScopeId(),e),rS=lo(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),iS=[rS],sS={class:"player-image position-image"},lS=["src"],cS=["src"],dS=["src"],mS=["src"],pS=lo(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),uS=["src"],hS=lo(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),fS={class:"text-container"},gS=lo(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),yS={class:"base-logo",width:"91",height:"216",viewBox:"0 0 91 216",fill:"none",xmlns:"http://www.w3.org/2000/svg"},bS=["fill"];function wS(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))},iS,2),t.createElementVNode("div",sS,[o.typeImg==0?(t.openBlock(),t.createElementBlock("img",{key:0,src:o.photoProfile,class:t.normalizeClass(r.playerimage)},null,10,lS)):t.createCommentVNode("",!0),o.typeImg==1?(t.openBlock(),t.createElementBlock("img",{key:1,src:o.photoProfile,alt:""},null,8,cS)):t.createCommentVNode("",!0),o.typeImg==2?(t.openBlock(),t.createElementBlock("img",{key:2,src:o.photoProfile,class:"img-number"},null,8,dS)):t.createCommentVNode("",!0)]),t.createElementVNode("img",{src:o.logoHome,alt:"",class:"team-logo"},null,8,mS),pS,t.createElementVNode("img",{src:o.background,alt:"",class:"bkg-blackwhite position-image"},null,8,uS),hS,t.createElementVNode("div",fS,[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)]),gS,(t.openBlock(),t.createElementBlock("svg",yS,[t.createElementVNode("path",{d:"M91.5 216L0 -0.5H91.5V216Z",fill:o.colorBackgroundHome},null,8,bS)]))],2)}const _S=We(qa,[["render",wS],["__scopeId","data-v-cc315132"]]);function SS(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 kS="_ptg_lp0fw_5",CS="_ptgtitle_lp0fw_15",BS="_ptgtitle450_lp0fw_47",ES="_pgtcontainercard_lp0fw_79",NS="_pgtcontainercard350_lp0fw_89",xS={ptg:kS,ptgtitle:CS,ptgtitle450:BS,pgtcontainercard:ES,pgtcontainercard350:NS},Za={components:{GSCSlider:jw,GSCThumbnailCategory:u_,GSCThumbnailCategoryTeam:T_,GSCThumbnailCategoryTeamAway:W_,GSCThumbnailHighlightGamePlayer:nS,GSCThumbnailSummaryPlayer:_S,GSCThumbnailHighlightGameHistoric:Yw},setup(){const e=t.ref("ptgDiv"),{elementSize:a}=SS(e);return{ptgDiv:e,elementSize:a}},props:{title:{type:String,default:"100% de sus participaciones en cada partido:"},type:{type:Number,default:0},data:{type:Object,default:()=>{}},backgroundColor:{type:String,default:"#0D1D29"},backgroundFooter:{type:String,default:"#192733"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsScrollHide:{type:Boolean,default:!1},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",printData:[],teamsInfo:[],playerPhoto:!0,homeTeam:0,awayTeam:0,goalCategories:[12,55,"35_r","54_r"],resumeCategories:[607,608,12,55,54,35,14,52,15,53,466,477]}},watch:{data:{immediate:!0,handler(e){this.getTeamsInfo(e),this.getStats(e)}}},computed:{ptgtitleClass(){return this.elementSize.width<=450?this.$style.ptgtitle450:this.$style.ptgtitle},pgtcontainercardClass(){return this.elementSize.width<=350?this.$style.pgtcontainercard350:this.$style.pgtcontainercard}},methods:{onclickPlayVideos(e){let a=[],o=e.data.game_id?[e.data.game_id]:null;e.type==2?e.data.position_id==1?e.data.category==0?a=[55,324,323,608,39,774,802,52,53,40,54]:a=e.data.category:e.data.category==0?a=e.isAllPlays?[56,57,59,60,326,213,214,215,216,583,584,122,123,124,125,585,586,128,129,130,131,133,327,587,588,136,137,138,139,589,590,142,143,144,145,146,147,485,486,487,488,489,490,491,492,10,27,597,598,538,539,599,600,541,542,601,602,545,546,603,604,548,549,561,562,100,563,564,103,104,105,106,107,108,565,566,111,567,568,114,115,116,117,118,119,4,88,5,34,402,459,460,461,233,403,456,457,458,236,404,453,454,455,240,405,450,451,452,243,408,447,448,449,283,409,444,445,446,285,410,441,442,443,290,411,438,439,440,292,412,435,436,437,297,414,415,416,417,244,418,419,420,421,401,581,582,331,506,530,579,580,334,507,531,577,578,344,508,532,575,576,424,509,533,573,574,341,529,534,571,572,340,528,535,569,570,427,527,536,348,349,350,465,352,353,354,466,14,52,15,53,218,219,220,221,496,497,498,499,500,501,502,503,217,504,505,521,522,543,33,209,208,517,206,207,26,325,16,51,463,151,154,156,591,592,159,162,163,429,165,593,594,168,171,172,430,174,595,596,177,180,181,431,467,358,361,363,366,369,370,469,372,376,378,379,470,381,385,387,388,471,607,608,210,212]:[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:a=e.data.category:e.type==3?e.data.category==0?a=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:a=e.data.category:e.data.category!=0?a=e.data.category:a=[607,608,12,55,54,35,14,52,15,53,466,477],this.data.isPrematch===1&&(o=null);const n=[1,2,3];let i={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:e.categories&&e.categories.length?e.categories:a,gameIds:o,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[e.matchResult]:n,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(i.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",i)},onClickVideos(e){this.$emit("onClickVideos",e)},onClickCard(e){this.$emit("onClickCard",e)},async getTeamsInfo(e){const a=await ms.create({headers:{Authorization:`${this.token}`}}).get("https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/"+e.season);for(let o=0;o<a.data.teams.length;o++)this.teamsInfo[a.data.teams[o].team_id]=a.data.teams[o]},async getStats(e){const a=ms.create({headers:{Authorization:`${this.token}`}});var o=[],n={},i={};if(this.type==0){i=await a.get("https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/"+e.season+"/"+e.player);for(let r=0;r<i.data.seasons[e.season].games_played.length;r++)n={player_id:e.player,color:i.data.info_thumbnails.colors.background_color,colorfont:i.data.info_thumbnails.colors.font_color,photo_profile:i.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.info_thumbnails.images.player_in_action[0]:"https://az755631.vo.msecnd.net/players-profile/"+e.player+".png",team_logo:"https://az755631.vo.msecnd.net/teams-150/"+i.data.seasons[e.season].games_played[r].home_team+".png",player_name:i.data.seasons[e.season].games_played[r].home_team_acronym+" "+i.data.seasons[e.season].games_played[r].home_team_score+" : "+i.data.seasons[e.season].games_played[r].visiting_team_score+" "+i.data.seasons[e.season].games_played[r].visiting_team_acronym,team_id:i.data.seasons[e.season].games_played[r].game_id,team_id_b:i.data.seasons[e.season].games_played[r].home_team,season_id:i.data.seasons[e.season].games_played[r].season_id,name:"",category:0,team_id:i.data.team_id,game_id:i.data.seasons[e.season].games_played[r].game_id,position_id:i.data.position_id,scorehome:i.data.seasons[e.season].games_played[r].home_team_score,scoreaway:i.data.seasons[e.season].games_played[r].visiting_team_score,hometeamacronym:i.data.seasons[e.season].games_played[r].home_team_acronym,visitingteamacronym:i.data.seasons[e.season].games_played[r].visiting_team_acronym,seasonname:i.data.seasons[e.season].name,match:i.data.seasons[e.season].games_played[r].matchday_name.replace("Matchday","Jor"),score:i.data.seasons[e.season].games_played[r].home_team_score+" : "+i.data.seasons[e.season].games_played[r].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.info_thumbnails.images.background_player_in_action[0],backgroundhome:i.data.seasons[e.season].games_played[r].info_thumbnails.home_colors.background_color,backgroundaway:i.data.seasons[e.season].games_played[r].info_thumbnails.away_colors.background_color,colorfont_home:i.data.seasons[e.season].games_played[r].info_thumbnails.home_colors.font_color,colorfont_away:i.data.seasons[e.season].games_played[r].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+i.data.seasons[e.season].games_played[r].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+i.data.seasons[e.season].games_played[r].visiting_team+".png",total:i.data.seasons[e.season].games_played[r].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+i.data.seasons[e.season].games_played[r].home_team+"_"+i.data.seasons[e.season].games_played[r].season_id+"_r1.jpg"},o.push(n)}if(this.type==1){i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/teams/"+e.team);for(let r=0;r<i.data.categories.length;r++){this.playerPhoto=!1;const s=Math.floor(Math.random()*i.data.categories[r].info_thumbnails.images.background_default_categories.length),l=Math.floor(Math.random()*i.data.categories[r].info_thumbnails.images.background_default_teams.length);n={player_action:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.categories[r].info_thumbnails.images.background_default_categories[s],background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.categories[r].info_thumbnails.images.background_default_teams[l],color:i.data.categories[r].info_thumbnails.colors.background_color,team_logo:"https://az755631.vo.msecnd.net/teams-80/"+i.data.categories[r].info_thumbnails.team_logo,player_name:i.data.categories[r].category_name,team_name:this.teamsInfo[i.data.team_id].colloquial_name,team_id:i.data.team_id,colorfont:i.data.categories[r].info_thumbnails.colors.font_color,team_id_b:i.data.team_id,category:i.data.categories[r].categories,season_id:i.data.season_id,total:i.data.categories[r].total,background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+i.data.team_id+"_"+i.data.season_id+"_r1.jpg"},o.push(n)}}if(this.type==2){i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/players/"+e.player);for(let r=0;r<i.data.categories.length;r++){this.playerPhoto=!1;const s=Math.floor(Math.random()*i.data.categories[r].info_thumbnails.images.player_in_action.length),l=Math.floor(Math.random()*i.data.categories[r].info_thumbnails.images.background_default_categories.length);n={player_action:i.data.categories[r].info_thumbnails.images.player_in_action[s]?"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.categories[r].info_thumbnails.images.player_in_action[s]:"https://az755631.vo.msecnd.net/players-profile/"+e.player+".png",background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.categories[r].info_thumbnails.images.background_default_categories[l],color:i.data.categories[r].info_thumbnails.colors.background_color,team_logo:"https://az755631.vo.msecnd.net/teams-80/"+i.data.categories[r].info_thumbnails.team_logo,player_name:i.data.categories[r].category_name,season_id:e.season,colorfont:i.data.categories[r].info_thumbnails.colors.font_color,player_id:e.player,team_id:i.data.categories[r].info_thumbnails.colors.team_id,category:i.data.categories[r].categories,total:i.data.categories[r].total,background_card:"https://az755631.vo.msecnd.net/players-profile/"+e.player+".png"},o.push(n)}}if(this.type==3){this.playerPhoto=!1,i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/games/"+e.game);for(let r=0;r<i.data.games[0].players.length;r++){const s=Math.floor(Math.random()*i.data.games[0].players[r].info_thumbnails.images.background_player_in_action.length),l=Math.floor(Math.random()*i.data.games[0].players[r].info_thumbnails.images.player_in_action.length);n={colorbackgroundhome:i.data.games[0].players[r].info_thumbnails.colors.background_color,colorbackgroundaway:"",nameplayer:i.data.games[0].players[r].player_name,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.games[0].players[r].info_thumbnails.images.background_player_in_action[s],namecategory:"RESUMEN",namehometeam:"",nameawayteam:"",category:0,colorfont:i.data.games[0].players[r].info_thumbnails.colors.font_color,team_id:i.data.games[0].players[r].team_id,player_id:i.data.games[0].players[r].player_id,game_id:i.data.games[0].game_id,season_id:i.data.season_id,logohome:i.data.games[0].players[r].team_logo,photoprofile:i.data.games[0].players[r].info_thumbnails.images.player_in_action[l]?"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.games[0].players[r].info_thumbnails.images.player_in_action[l]:"https://az755631.vo.msecnd.net/players-profile/"+i.data.games[0].players[r].player_id+".png",logoaway:"",scoreaway:"",scorehome:""},o.push(n)}}if(this.type==4){console.log("Hola nuva mente 44444: "),console.log(i.data),this.playerPhoto=!1,i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/specifics-plays/seasons/"+e.season+"/games/"+e.game);for(let r=0;r<i.data.home_team.categories.length;r++){const s=Math.floor(Math.random()*i.data.home_team.categories[r].info_thumbnails.images.background_default_teams.length);n={game_id:i.data.game_id,season_id:i.data.season_id,team_id:i.data.home_team.team_id,category:i.data.home_team.categories[r].categories.concat(i.data.home_team.categories[r].rival_categories),background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.home_team.categories[r].info_thumbnails.images.background_default_categories[s],player_action:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.home_team.categories[r].info_thumbnails.images.background_default_categories[s],team_logo:"https://az755631.vo.msecnd.net/teams-150/"+i.data.home_team.team_id+".png",color:i.data.home_team.categories[r].info_thumbnails.colors.background_color,colorfont:i.data.home_team.categories[r].info_thumbnails.colors.font_color,player_name:i.data.home_team.categories[r].category_name,total:i.data.home_team.categories[r].total,team_name:"Local",background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+i.data.home_team.team_id+"_"+i.data.season_id+"_r1.jpg"},o.push(n)}}if(this.type==5){this.playerPhoto=!1,i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/specifics-plays/seasons/"+e.season+"/games/"+e.game);for(let r=0;r<i.data.visiting_team.categories.length;r++){const s=Math.floor(Math.random()*i.data.visiting_team.categories[r].info_thumbnails.images.background_default_categories.length);n={game_id:i.data.game_id,season_id:i.data.season_id,team_id:i.data.visiting_team.team_id,category:i.data.visiting_team.categories[r].categories.concat(i.data.visiting_team.categories[r].rival_categories),background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.visiting_team.categories[r].info_thumbnails.images.background_default_categories[s],player_action:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.visiting_team.categories[r].info_thumbnails.images.background_default_categories[s],team_logo:"https://az755631.vo.msecnd.net/teams-150/"+i.data.visiting_team.team_id+".png",team_name:"Away",color:i.data.visiting_team.categories[r].info_thumbnails.colors.background_color,colorfont:i.data.visiting_team.categories[r].info_thumbnails.colors.font_color,player_name:i.data.visiting_team.categories[r].category_name,total:i.data.visiting_team.categories[r].total,background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+i.data.visiting_team.team_id+"_"+i.data.season_id+"_r1.jpg"},o.push(n)}}if(this.type==6){i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/teams/"+e.team+"/categories/"+e.category);for(let r=0;r<i.data.best_plays.length;r++)n={category:i.data.best_plays[r].categories,team_id:i.data.team_id,game_id:i.data.best_plays[r].game_id,season_id:i.data.season_id,backgroundhome:i.data.best_plays[r].info_thumbnails.home_colors.background_color,backgroundaway:i.data.best_plays[r].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+i.data.best_plays[r].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+i.data.best_plays[r].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.best_plays[r].info_thumbnails.images.background_default_categories[0],match:"",seasonname:"",score:i.data.best_plays[r].score[0]+" : "+i.data.best_plays[r].score[1]},o.push(n)}if(this.type==7){i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/teams/"+e.team+"/categories/"+e.category);for(let r=0;r<i.data.best_plays.length;r++)n={category:i.data.best_plays[r].categories,team_id:i.data.team_id,game_id:i.data.best_plays[r].game_id,season_id:i.data.season_id,backgroundhome:i.data.best_plays[r].info_thumbnails.home_colors.background_color,colorfont_home:i.data.best_plays[r].info_thumbnails.home_colors.font_color,colorfont_away:i.data.best_plays[r].info_thumbnails.away_colors.font_color,backgroundaway:i.data.best_plays[r].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+i.data.best_plays[r].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+i.data.best_plays[r].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.best_plays[r].info_thumbnails.images.background_default_categories[0],match:"",seasonname:"",score:i.data.best_plays[r].score[0]+" : "+i.data.best_plays[r].score[1]},o.push(n)}if(this.type==8){i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/players/"+e.player+"/categories/"+e.category);for(let r=0;r<i.data.best_plays.length;r++)n={category:i.data.best_plays[r].categories,team_id:i.data.team_id,game_id:i.data.best_plays[r].game_id,season_id:i.data.season_id,player_id:i.data.player_id,backgroundhome:i.data.best_plays[r].info_thumbnails.home_colors.background_color,backgroundaway:i.data.best_plays[r].info_thumbnails.away_colors.background_color,colorfont_home:i.data.best_plays[r].info_thumbnails.home_colors.font_color,colorfont_away:i.data.best_plays[r].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+i.data.best_plays[r].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+i.data.best_plays[r].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.best_plays[r].info_thumbnails.images.background_default_categories[0],match:"",scorehome:i.data.best_plays[r].score[0],scoreaway:i.data.best_plays[r].score[1],photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+i.data.best_plays[r].info_thumbnails.player_logo,hometeamacronym:i.data.best_plays[r].home_team_acronym,visitingteamacronym:i.data.best_plays[r].away_team_acronym,seasonname:"",score:i.data.best_plays[r].score[0]+" : "+i.data.best_plays[r].score[1]},o.push(n)}if(this.type==9){i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/players/"+e.player+"/categories/"+e.category);for(let r=0;r<i.data.best_plays.length;r++)n={category:i.data.best_plays[r].categories,team_id:i.data.team_id,player_id:i.data.player_id,game_id:i.data.best_plays[r].game_id,season_id:i.data.season_id,backgroundhome:i.data.best_plays[r].info_thumbnails.home_colors.background_color,backgroundaway:i.data.best_plays[r].info_thumbnails.away_colors.background_color,colorfont_home:i.data.best_plays[r].info_thumbnails.home_colors.font_color,colorfont_away:i.data.best_plays[r].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+i.data.best_plays[r].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+i.data.best_plays[r].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.best_plays[r].info_thumbnails.images.background_default_categories[0],match:"",scorehome:i.data.best_plays[r].score[0],scoreaway:i.data.best_plays[r].score[1],seasonname:"",photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+i.data.best_plays[r].info_thumbnails.player_logo,score:i.data.best_plays[r].score[0]+" : "+i.data.best_plays[r].score[1]},o.push(n)}if(this.type==10){const r=await a.get("https://ws8d8ye2ii.execute-api.us-west-2.amazonaws.com/prod/v4/seasonsByTeam/"+e.team);for(let s=0;s<r.data.seasons[e.season].games.length;s++){const l=Math.floor(Math.random()*r.data.seasons[e.season].games[s].info_thumbnails.images.background_default_games.length);n={photo_profile:"https://az755631.vo.msecnd.net/teams-150/"+r.data.seasons[e.season].games[s].visiting_team+".png",team_logo:"https://az755631.vo.msecnd.net/teams-150/"+r.data.seasons[e.season].games[s].home_team+".png",player_name:r.data.seasons[e.season].games[s].home_team_acronym+" "+r.data.seasons[e.season].games[s].home_team_score+" : "+r.data.seasons[e.season].games[s].visiting_team_score+" "+r.data.seasons[e.season].games[s].visiting_team_acronym,team_id:r.data.seasons[e.season].games[s].game_id,team_id_b:r.data.seasons[e.season].games[s].home_team,season_id:r.data.seasons[e.season].games[s].season_id,name:"",category:0,colorfont_home:r.data.best_plays[s].info_thumbnails.home_colors.colors.font_color,colorfont_away:r.data.best_plays[s].info_thumbnails.away_colors.colors.font_color,game_id:r.data.seasons[e.season].games[s].game_id,seasonname:r.data.seasons[e.season].name,match:r.data.seasons[e.season].games[s].matchday_name.replace("Matchday","Jor"),score:r.data.seasons[e.season].games[s].home_team_score+" : "+r.data.seasons[e.season].games[s].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+r.data.seasons[e.season].games[s].info_thumbnails.images.background_default_games[l],backgroundhome:r.data.seasons[e.season].games[s].info_thumbnails.home_colors.background_color,backgroundaway:r.data.seasons[e.season].games[s].info_thumbnails.away_colors.background_color,colorfont_home:r.data.best_plays[s].info_thumbnails.home_colors.font_color,colorfont_away:r.data.best_plays[s].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+r.data.seasons[e.season].games[s].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+r.data.seasons[e.season].games[s].visiting_team+".png",total:r.data.seasons[e.season].games[s].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+r.data.seasons[e.season].games[s].home_team+"_"+r.data.seasons[e.season].games[s].season_id+"_r1.jpg"},o.push(n)}}if(this.type==11){const r=await a.get("https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/"+e.season+"/"+e.player);for(let s=0;s<r.data.seasons[e.season].games_played.length;s++)Math.floor(Math.random()*r.data.seasons[e.season].games_played[s].info_thumbnails.images.background_default_games.length),n={category:0,player_id:e.player,team_id:r.data.team_id,game_id:r.data.seasons[e.season].games_played[s].game_id,position_id:r.data.position_id,color:r.data.info_thumbnails.colors.background_color,photo_profile:"https://golstatsimages.blob.core.windows.net/images-library/"+r.data.info_thumbnails.images.player_in_action[0],team_logo:"https://az755631.vo.msecnd.net/teams-150/"+r.data.seasons[e.season].games_played[s].home_team+".png",player_name:r.data.seasons[e.season].games_played[s].home_team_acronym+" "+r.data.seasons[e.season].games_played[s].home_team_score+" : "+r.data.seasons[e.season].games_played[s].visiting_team_score+" "+r.data.seasons[e.season].games_played[s].visiting_team_acronym,team_id_b:r.data.seasons[e.season].games_played[s].home_team,season_id:r.data.seasons[e.season].games_played[s].season_id,name:r.data.seasons[e.season].games_played[s].player_name,seasonname:r.data.seasons[e.season].name,match:r.data.seasons[e.season].games_played[s].matchday_name.replace("Matchday","Jor"),scorehome:r.data.seasons[e.season].games_played[s].home_team_score,scoreaway:r.data.seasons[e.season].games_played[s].visiting_team_score,hometeamacronym:r.data.seasons[e.season].games_played[s].home_team_acronym,visitingteamacronym:r.data.seasons[e.season].games_played[s].visiting_team_acronym,background:"https://golstatsimages.blob.core.windows.net/images-library/"+r.data.info_thumbnails.images.background_player_in_action[0],backgroundhome:r.data.seasons[e.season].games_played[s].info_thumbnails.home_colors.background_color,backgroundaway:r.data.seasons[e.season].games_played[s].info_thumbnails.away_colors.background_color,colorfont_home:r.data.seasons[e.season].games_played[s].info_thumbnails.home_colors.font_color,colorfont_away:r.data.seasons[e.season].games_played[s].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+r.data.seasons[e.season].games_played[s].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+r.data.seasons[e.season].games_played[s].visiting_team+".png",total:r.data.seasons[e.season].games_played[s].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+r.data.seasons[e.season].games_played[s].home_team+"_"+r.data.seasons[e.season].games_played[s].season_id+"_r1.jpg"},o.push(n)}if(this.type==12){const r=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/categories/"+e.category);for(let s=0;s<r.data.length;s++)for(let l=0;l<r.data[s].best_plays.length;l++)n={category:r.data[s].best_plays[l].categories,game_id:r.data[s].best_plays[l].game_id,season_id:r.data[s].season_id,backgroundhome:r.data[s].best_plays[l].info_thumbnails.home_colors.background_color,backgroundaway:r.data[s].best_plays[l].info_thumbnails.away_colors.background_color,colorfont_home:r.data[s].best_plays[l].info_thumbnails.home_colors.font_color,colorfont_away:r.data[s].best_plays[l].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+r.data[s].best_plays[l].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+r.data[s].best_plays[l].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+r.data[s].best_plays[l].info_thumbnails.images.background_default_categories[0],match:"",scorehome:r.data[s].best_plays[l].score[0],scoreaway:r.data[s].best_plays[l].score[1],seasonname:"",photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+r.data[s].best_plays[l].info_thumbnails.player_logo,score:r.data[s].best_plays[l].score[0]+" : "+r.data[s].best_plays[l].score[1]},o.push(n)}if(this.type==13){const r=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/categories/"+e.category);for(let s=0;s<r.data.length;s++)for(let l=0;l<r.data[s].best_plays.length;l++)n={category:r.data[s].best_plays[l].categories,game_id:r.data[s].best_plays[l].game_id,season_id:r.data[s].season_id,backgroundhome:r.data[s].best_plays[l].info_thumbnails.home_colors.background_color,backgroundaway:r.data[s].best_plays[l].info_thumbnails.away_colors.background_color,colorfont_home:r.data[s].best_plays[l].info_thumbnails.home_colors.font_color,colorfont_away:r.data[s].best_plays[l].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+r.data[s].best_plays[l].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+r.data[s].best_plays[l].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+r.data[s].best_plays[l].info_thumbnails.images.background_default_categories[0],match:"",scorehome:r.data[s].best_plays[l].score[0],scoreaway:r.data[s].best_plays[l].score[1],seasonname:"",photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+r.data[s].best_plays[l].info_thumbnails.player_logo,score:r.data[s].best_plays[l].score[0]+" : "+r.data[s].best_plays[l].score[1]},o.push(n)}this.printData=o}},async created(){}},As=()=>{t.useCssVars(e=>({"4956e38c":e.backgroundColor}))},zs=Za.setup;Za.setup=zs?(e,a)=>(As(),zs(e,a)):As;function TS(e,a,o,n,i,r){const s=t.resolveComponent("GSCThumbnailCategory"),l=t.resolveComponent("GSCThumbnailCategoryTeam"),p=t.resolveComponent("GSCThumbnailCategoryTeamAway"),c=t.resolveComponent("GSCThumbnailHighlightGamePlayer"),m=t.resolveComponent("GSCThumbnailHighlightGameHistoric"),u=t.resolveComponent("GSCThumbnailSummaryPlayer"),g=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.ptg),ref:"ptgDiv"},[t.createElementVNode("div",{class:t.normalizeClass(r.ptgtitleClass)},t.toDisplayString(o.title),3),t.createVNode(g,{backgroundColor:o.backgroundColor,pxScroll:o.pxScroll,arrows:o.arrows,arrowsScrollHide:o.arrowsScrollHide,arrowsHideOnNoScroll:o.arrowsHideOnNoScroll,arrowsColor:o.arrowsColor,arrowsHeight:o.arrowsWidth,arrowsWidth:o.arrowsWidth,arrowsPadding:o.arrowsPadding,arrowsMargin:o.arrowsMargin,arrowsRadius:o.arrowsRadius,arrowsBorder:o.arrowsBorder,arrowsBackground:o.arrowsBackground,arrowsContainerBgL:o.arrowsContainerBgL,arrowsContainerBgR:o.arrowsContainerBgR,scrollColor:o.scrollColor,arrowsPosition:o.arrowsPosition,height:o.height},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.printData,(d,h)=>(t.openBlock(),t.createElementBlock("div",{key:h,class:t.normalizeClass(r.pgtcontainercardClass),style:t.normalizeStyle(h==0?"margin-left: 0px !important; color: white;":"")},[o.type==2?(t.openBlock(),t.createBlock(s,{key:0,"color-background-home":d.color,"name-player":o.data.player_name,"type-img":"0",background:d.background_action,"name-category":d.player_name,"logo-home":d.team_logo,onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:2}),"photo-profile":d.player_action},null,8,["color-background-home","name-player","background","name-category","logo-home","onOnclickPlayVideos","photo-profile"])):o.type==1||o.type==4?(t.openBlock(),t.createBlock(l,{key:1,type:"team","name-team":d.team_name!=null?d.team_name:"","type-style":"category","color-background-home":d.color,"logo-home":d.team_logo,onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:3}),background:d.player_action,"name-category":d.player_name},null,8,["name-team","color-background-home","logo-home","onOnclickPlayVideos","background","name-category"])):o.type==5?(t.openBlock(),t.createBlock(p,{key:2,type:"team","name-team":d.team_name!=null?d.team_name:"","type-style":"category","color-background-away":d.color,"logo-home":d.team_logo,onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:3}),background:d.player_action,"name-category":d.player_name},null,8,["name-team","color-background-away","logo-home","onOnclickPlayVideos","background","name-category"])):o.type==0?(t.openBlock(),t.createBlock(c,{key:3,items:d,type:2,"name-category":"TODAS SUS JUGADAS","color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"color-font-home":d.colorfont_home,"color-font-away":d.colorfont_away,"logo-home":d.logohome,"logo-away":d.logoaway,onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:2,isAllPlays:!0}),background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,matchday:d.match,"score-home":d.scorehome,"photo-profile":d.photo_profile,"score-away":d.scoreaway,"season-name":d.seasonname},null,8,["items","color-background-home","color-background-away","color-font-home","color-font-away","logo-home","logo-away","onOnclickPlayVideos","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):o.type==6?(t.openBlock(),t.createBlock(m,{key:4,items:d,"color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,background:d.background,"title-category":"GOLES",onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:3,categories:i.goalCategories}),matchday:d.match,"season-name":d.seasonname,score:d.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","onOnclickPlayVideos","matchday","season-name","score"])):o.type==7?(t.openBlock(),t.createBlock(m,{key:5,items:d,"color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,background:d.background,"title-category":"RESUMEN",onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:3,categories:i.resumeCategories}),matchday:d.match,"season-name":d.seasonname,score:d.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","onOnclickPlayVideos","matchday","season-name","score"])):o.type==8?(t.openBlock(),t.createBlock(c,{key:6,items:d,type:2,"name-category":"RESUMEN","color-font-home":d.colorfont_home,"color-font-away":d.colorfont_away,"color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:2}),background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,matchday:d.match,"score-home":d.scorehome,"photo-profile":d.photo_profile,"score-away":d.scoreaway,"season-name":d.seasonname},null,8,["items","color-font-home","color-font-away","color-background-home","color-background-away","logo-home","logo-away","onOnclickPlayVideos","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):o.type==9?(t.openBlock(),t.createBlock(c,{key:7,items:d,type:2,"name-category":"RESUMEN","color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:2}),"logo-away":d.logoaway,background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,matchday:d.match,"score-home":d.scorehome,"photo-profile":d.photo_profile,"score-away":d.scoreaway,"season-name":d.seasonname},null,8,["items","color-background-home","color-background-away","logo-home","onOnclickPlayVideos","logo-away","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):o.type==10?(t.openBlock(),t.createBlock(m,{key:8,items:d,"color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:1}),background:d.background,"title-category":"RESUMEN",matchday:d.match,"season-name":d.seasonname,score:d.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","onOnclickPlayVideos","background","matchday","season-name","score"])):o.type==11?(t.openBlock(),t.createBlock(c,{key:9,items:d,type:2,"name-category":"RESUMEN","color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,matchday:d.match,"color-font-home":d.colorfont_home,"color-font-away":d.colorfont_away,onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:2}),"score-home":d.scorehome,"photo-profile":d.photo_profile,"score-away":d.scoreaway,"season-name":d.seasonname},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","name-home-team","name-away-team","matchday","color-font-home","color-font-away","onOnclickPlayVideos","score-home","photo-profile","score-away","season-name"])):o.type==12?(t.openBlock(),t.createBlock(c,{key:10,items:d,type:2,"name-category":"RESUMEN","color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,"color-font-home":d.colorfont_home,"color-font-away":d.colorfont_away,onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:1}),background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,matchday:d.match,"score-home":d.scorehome,"photo-profile":d.photo_profile,"score-away":d.scoreaway,"season-name":d.seasonname},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","color-font-home","color-font-away","onOnclickPlayVideos","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):o.type==13?(t.openBlock(),t.createBlock(c,{key:11,items:d,type:2,"name-category":"GOLES","color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:1,categories:i.goalCategories}),background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,matchday:d.match,"score-home":d.scorehome,"photo-profile":d.photo_profile,"score-away":d.scoreaway,"season-name":d.seasonname},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","onOnclickPlayVideos","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):(t.openBlock(),t.createBlock(u,{key:12,type:"player","color-background-home":d.colorbackgroundhome,"color-background-away":d.colorbackgroundaway,"name-player":d.nameplayer,"type-img":0,onOnclickPlayVideos:f=>r.onclickPlayVideos({data:d,type:2}),background:d.background,"name-home-team":d.namehometeam,"name-away-team":d.nameawayteam,"name-category":"RESUMEN","logo-away":d.logoaway,"logo-home":d.logohome,"color-font":d.colorfont,"score-home":d.scorehome,"photo-profile":d.photoprofile,"score-away":d.logoaway,"type-style":"summary"},null,8,["color-background-home","color-background-away","name-player","onOnclickPlayVideos","background","name-home-team","name-away-team","logo-away","logo-home","color-font","score-home","photo-profile","score-away"]))],6))),128))]),_:1},8,["backgroundColor","pxScroll","arrows","arrowsScrollHide","arrowsHideOnNoScroll","arrowsColor","arrowsHeight","arrowsWidth","arrowsPadding","arrowsMargin","arrowsRadius","arrowsBorder","arrowsBackground","arrowsContainerBgL","arrowsContainerBgR","scrollColor","arrowsPosition","height"])],2)}const OS={name:"DiscoverVideos",components:{GscSwitchComponent:Qo,GSCPlayerTeamGame:We(Za,[["render",TS],["__cssModules",{$style:xS}]]),GSCButton:Ei},props:{myTournament:{type:Number,default:1},videoType:{type:Number,default:1},isplayer:{type:Boolean,default:!1},team:{type:Number,default:0},player:{type:Number,default:0},user:{type:Object,default:()=>{}},nextRivalTeam:{type:Object,default:()=>{}},tournamentSelected:{type:Object,default:()=>{}},seasonSelected:{type:Object,default:()=>{}}},data(){return{currentTabMoreVideos:"Resumen",currentMobileTab:"Descubre videos",mobileClass:!1,resumeCategory:1000001,goalsCategory:1255e3,resumeType:1,goalsType:2}},mounted(){this.mobileClass=window.innerWidth<768,window.addEventListener("resize",this.handleResize)},methods:{handleResize(){this.mobileClass=window.innerWidth<768},onOpenMedia(e){this.$emit("openmedia",e)},onClickOpenMedia(){let o=1,n=[],i=[],r=0,s=this.user.season,l=[],p=[12,55,"35_r","54_r"],c=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257],m=[55,324,323,608,39,774,802,52,53,40,54];this.tournamentSelected.id===this.user.tournament?(s=this.seasonSelected.id,this.user.is_goalkeeper?(n=[this.user.player],l=m,o=2):this.user.is_player?(i=[this.user.player],l=c,o=2):(r=this.user.team,l=p,o=3)):(l=p,o=1);const u={seasonId:s,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:o,gameIds:null,playerIds:i,goalkeeperIds:n,categoryIds:l,teamId:r,matchResult:[1,2,3],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:""},objectPlaySync:null};this.$emit("openmedia",u)}}},VS=e=>(t.pushScopeId("data-v-95c1baf0"),e=e(),t.popScopeId(),e),$S={class:"discover-videos",ref:"discoverVideosRef"},AS={class:"title-and-button"},zS=VS(()=>t.createElementVNode("div",{class:"title-value"},null,-1)),RS={class:"btn-search-videos"};function IS(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",$S,[t.createElementVNode("div",AS,[zS,t.createElementVNode("div",RS,[t.createVNode(s,{style:{"margin-top":"4px"},width:"182px","text-value":"Buscar videos","font-color":"#ffffff","font-family":"Poppins-Light","font-size":"16px",icon:"https://golstatsimages.blob.core.windows.net/images-library/icn-buscar-videos.svg","icon-size":"30px","icon-position":"right","button-max-width":"250px",height:"38px","border-radius":"50px","border-width":"1","background-color":"transparent","border-color":"#CBEE6B","active-background-color":"#CBEE6B",onClick:r.onClickOpenMedia},null,8,["onClick"])])]),o.myTournament===o.tournamentSelected.id?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createVNode(l,{style:{"margin-left":"0px"},buttons:["Resumen","Proximo rival"],onInput:a[0]||(a[0]=c=>i.currentTabMoreVideos=c),background:"trasparent",height:"28px",width:"160px",fontSize:"14px","font-family":"Poppins-Light",backgroundOptionActive:"transparent",borderWidth:"2px",type:2,arrow:!1,selectedOption:i.currentTabMoreVideos,onOpenmedia:r.onOpenMedia},null,8,["selectedOption","onOpenmedia"]),i.currentTabMoreVideos=="Resumen"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[o.isplayer?(t.openBlock(),t.createBlock(p,{key:1,type:8,title:"",style:{"margin-top":"-30px"},backgroundColor:"transparent",data:{season:o.seasonSelected.id,player:o.player,category:1000001},width:"100%",onOpenmedia:r.onOpenMedia},null,8,["data","onOpenmedia"])):(t.openBlock(),t.createBlock(p,{key:0,type:7,title:"",style:{"margin-top":"-30px"},backgroundColor:"transparent",data:{season:o.seasonSelected.id,team:o.team,category:i.resumeCategory},width:"100%",onOpenmedia:r.onOpenMedia},null,8,["data","onOpenmedia"]))],64)):(t.openBlock(),t.createBlock(p,{key:1,type:7,style:{"margin-top":"-30px"},title:"",backgroundColor:"transparent",data:{season:o.seasonSelected.id,team:o.nextRivalTeam.id,category:i.resumeCategory},width:"100%",onOpenmedia:r.onOpenMedia},null,8,["data","onOpenmedia"]))],64)):(t.openBlock(),t.createBlock(p,{key:1,style:{"margin-top":"-30px"},type:13,data:{season:o.seasonSelected.id,category:i.goalsCategory},width:"100%",backgroundColor:"transparent",title:"",onOpenmedia:r.onOpenMedia},null,8,["data","onOpenmedia"]))],512)}const FS={components:{GSCSeasonSelect:fb,GSCTournamentSelect:G2,GSCGames:b1,GSCGridTeamsMatches:Cc,GSCPlayersLanding:gc,GSCTops:b2,GSCTableCalendar:hy,DiscoverVideos:ie(OS,[["render",IS],["__scopeId","data-v-95c1baf0"]])},setup(){const e=t.ref("landingref"),{elementSize:a}=Hl(e);return{landingref:e,elementSize:a}},watch:{team:{immediate:!0,deep:!0,async handler(e){if(Object.keys(this.seasonSelected).length!==0){const a=await this.generateSeasons(this.seasonSelected);this.seasonsSelected=a,this.fetchGames(e,a)}}},closestRound(e){this.selectedRoundKeyIndex=this.tournamentScheduleKeys.findIndex(a=>a===e),this.selectedRound=e}},props:{currentSeasonId:{type:Number,default:0},season:{type:Number,default:1772},isplayer:{type:Boolean,default:!1},user:{type:Object,default:()=>{}},team:{type:Number,default:0},player:{type:Number,default:0},gamesPerMatchDay:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}}},data(){return{defaultGameId:0,lastSeasonsIds:[],gamesPages:new Map,selectedRoundKeyIndex:0,selectedRound:0,fullTournamentScheduleFull:[],defaultMatchDayKey:null,isCupTournament:!1,retries:3,userTeamGames:[],isCupLegacyTournament:!1,tournamentScheduleKeys:[],currentTournamentGames:null,currentTournamentTeams:null,gamesUrl:"https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason/",gamesUrl2:"https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",seasonSelected:{},seasonSelectedDropDowns:{},seasonsSelected:[],fullTournamentSchedule:{},tournamentSelected:{},tournamentSelectedDropDowns:{seasons:[]},playersLength:0,nextRivalId:0,loadDiscover:!1,hasNextRival:!1,resumeType:1,goalsType:2,tokenFree:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{gamesFullLeague(){var e=[];if(this.fullTournamentScheduleFull&&Object.keys(this.fullTournamentScheduleFull).length>0)for(let a=0;a<this.fullTournamentScheduleFull[this.selectedRound].length;a++)for(let o=0;o<this.fullTournamentScheduleFull[this.selectedRound][a].games.length;o++)e.push(this.fullTournamentScheduleFull[this.selectedRound][a].games[o]);return e},closestRound(){return this.userTeamGames&&this.userTeamGames.length?this.getUserTeamClosestRound(this.fullTournamentScheduleFull):this.getNormalClosestRound(this.fullTournamentScheduleFull)},containerGridCalendarTable(){return this.elementSize.width<=1e3?"container-grid-calendar-table-mobile":"container-grid-calendar-table"},containerbackground(){return this.elementSize.width<=680?"container-background-movil":"container-background"},containerdata(){return this.elementSize.width<=680?"container-data-movil":"container-data"}},methods:{formatUsername(e){const a=e.split(",");let o="",n="";return a[1]?(n=a[1].trim().split(" "),n[0]?o=n[0]:o=a[1]):a[0]&&(n=a[0].trim().split(" "),n[0]?o=n[0]:o=a[0]),o.trim()},onAction(e){this.$emit("action",e)},onOpenMedia(e){this.$emit("openmedia",e)},onOpenProfile(e){this.$emit("onOpenProfile",e)},onClickMatch(e){this.$emit("openGame",e)},onClickCalendar(){const e={type:this.tournamentSelected.id==this.user.tournament?1:0,team:this.team,season:this.seasonSelectedDropDowns};this.$emit("onClickMyCalendar",e)},moreTops(){const e={team:this.team,season:this.seasonSelectedDropDowns};this.$emit("openTops",e)},clickProfileBtn(e){this.$emit("openProfile",e)},viewAll(){const e={team:this.team,season:this.seasonSelectedDropDowns};this.$emit("openAllPlayers",e)},getTotalPlayers(e){this.playersLength=e},clickCard(e){const a={data:e,isPlayer:this.isplayer};this.$emit("clickOnMainCards",a)},async fetchGames(e,a){const o=a.map(i=>`seasons=${i.id}`).join("&"),n=Tt.create({headers:{Authorization:`${this.tokenFree}`}});this.fullTournamentSchedule=await n.get(this.gamesUrl+e+"?"+o),this.nextRivalId=Object.keys(this.fullTournamentSchedule).length>0?this.user.team==this.fullTournamentSchedule.data.prematch.home_team?this.fullTournamentSchedule.data.prematch.visiting_team:this.fullTournamentSchedule.data.prematch.home_team:0,this.loadDiscover=!0},async generateSeasons(e){const a=[{id:e.id,type:e.type}];return e.related_seasons&&e.related_seasons.length&&a.push(...e.related_seasons.map(o=>({id:o.id,type:o.type}))),a},async onInputTournament(e){this.tournamentSelected=e,this.tournamentSelectedDropDowns.id!==e.id&&(this.tournamentSelectedDropDowns=e)},async onInputSeason(e){if(this.seasonSelected=e,this.tournamentSelected.id!=this.user.tournament){const a=await this.generateSeasons(this.seasonSelected);this.seasonsSelected=a,await this.createFullTournamentScheme(a,!1)}else{const a=await this.generateSeasons(this.seasonSelected);this.seasonsSelected=a,await this.fetchGames(this.user.team,a)}this.seasonSelectedDropDowns!==e.id&&(this.seasonSelectedDropDowns=e.id,this.$emit("change-season-id",e.id))},async fetchTournaments(e){try{const{data:a}=await Tt.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments");return a}catch(a){if(e>0)return this.fetchTournaments(e-1);throw new Error(a)}},async fetchSeasonsGamesAndTeams(e,a,o=""){let n=o;try{n||(n=this.gamesUrl2,e.forEach((l,p)=>{n+=`${p===0?"":"&"}seasons=${l}`}));const i=Tt.create({headers:{Authorization:`${this.tokenFree}`}}),{data:{data:r,teams:s}}=await i.get(n);return{seasonsAndGames:r,seasonsAndTeams:s}}catch(i){if(a>0)return this.fetchSeasonsGamesAndTeams(e,a-1,n);throw new Error(i)}},areSeasonsDifferent(e){for(const a of e)if(!this.lastSeasonsIds.includes(a.season_id))return!0;return!1},async createFullTournamentScheme(e,a){try{this.fullTournamentSchedule={},this.userTeamGames=[];let o=0;const{seasonsAndGames:n,seasonsAndTeams:i}=await this.fetchSeasonsGamesAndTeams(e.map(p=>p.id),3);if(a&&this.areSeasonsDifferent(n))return;n.forEach(p=>{const{type:c}=e.find(m=>m.id===p.season_id);p.type=c,p.games.forEach(m=>{m.season_id=p.season_id}),c===0&&(o=p.season_id)});const r={seasonsGames:n},{teams:s}=i.find(p=>p.season_id===o),l=r&&r.seasonsGames?r.seasonsGames.map(p=>{const c=p.games.reduce((m,u)=>{const g={...u};return g.dateTimeMillis=new Date(g.date_time_utc).valueOf(),g.home_team=s.find(d=>d.team_id===u.home_team),g.visiting_team=s.find(d=>d.team_id===u.visiting_team),m[u.matchday_abbreviation]?m[u.matchday_abbreviation][u.game_status===3?"canceled":u.date]?m[u.matchday_abbreviation][u.game_status===3?"canceled":u.date].push(g):m[u.matchday_abbreviation][u.game_status===3?"canceled":u.date]=[g]:m[u.matchday_abbreviation]={[u.game_status===3?"canceled":u.date]:[g]},this.gsData&&this.gsData.teamId&&g.game_status===4&&(g.home_team.team_id===this.gsData.teamId||g.visiting_team.team_id===this.gsData.teamId)&&this.userTeamGames.push(g),m},{});this.userTeamGames.sort((m,u)=>m.dateTimeMillis-u.dateTimeMillis);for(let[m,u]of Object.entries(c))c[m]=Object.entries(u).map(([g,d])=>({date:g,games:d.sort((h,f)=>h.dateTimeMillis-f.dateTimeMillis)})),c[m].sort((g,d)=>g.date<d.date?-1:g.date>d.date?1:0);return{type:p.type,weight:p.type===0?0:p.type===2?1:2,schedule:c}}):[];l.sort((p,c)=>p.weight-c.weight),this.fullTournamentScheduleFull=l.reduce((p,c)=>{for(const[m,u]of Object.entries(c.schedule))if(c.type===0)if(this.isCup){const g=m.replace("M",""),d=`Jornada ${g}`;this.isCupLegacy?p[S2[g]||d]=u:p[_2[m]||d]=u}else p[Number(m.replace("M","")).toString()]=u;else c.type===2?["PI1","PI2"].includes(m)?p[m]=u:p[`R${Number(m.replace("PO",""))}`]=u:c.type===1&&(p[w2[m]]=u);return p},{}),this.tournamentScheduleKeys=Object.keys(this.fullTournamentScheduleFull)}catch(o){throw new Error(o)}finally{this.loadingFlag=!1}},getNormalClosestRound(e){const o=Object.entries(Object.entries(e).reduce((r,[s,l])=>(r[s]=[],l.forEach(p=>{p.games.forEach(c=>{const m=new Date(c.date_time_utc).getTime()+66e5;r[s].push(m)})}),r),{}));if(!o.length)return"1";const n=new Date().getTime(),i=o.reduce((r,[s,l])=>{let p=null;return l.forEach(c=>{const m=c-n;m>=0&&(p===null||m<p)&&(p=m)}),p&&(r.shortestTime===null||p<r.shortestTime)&&(r.round=s,r.shortestTime=p),r},{round:"",shortestTime:null});return i.shortestTime!==null?i.round:o[o.length-1][0]},getUserTeamClosestRound(e){let a=1;if(this.userTeamGames.length){const o=this.userTeamGames[0];for(const[n,i]of Object.entries(e))for(const r of i)if(r.games.find(l=>l.game_id===o.game_id))return n}return a}},async created(){}},PS=e=>(t.pushScopeId("data-v-acc084f5"),e=e(),t.popScopeId(),e),LS={class:"gsclanding",ref:"landingref"},DS={key:0,class:"container-selectors-mobile"},MS={class:"container-selectors-mobile-tournament"},jS={class:"container-selectors-mobile-season"},vS={key:0,class:"home-item-movil"},WS=PS(()=>t.createElementVNode("div",{class:"home-movil"},"Inicio",-1)),US={class:"name-user-movil"},HS={key:1,class:"home-item"},GS={key:2,class:"bar-settings"},JS={class:"name-user"},qS={class:"container-selectors"},ZS={class:"selector-tournament"},XS={class:"selector-seasons"},KS={key:3,class:"container-games"},YS={key:4,class:"container-players"},QS={class:"container-tops"},e5={class:"container-vr"};function t5(e,a,o,n,i,r){const s=t.resolveComponent("GSCTournamentSelect"),l=t.resolveComponent("GSCSeasonSelect"),p=t.resolveComponent("GSCGames"),c=t.resolveComponent("GSCGridTeamsMatches"),m=t.resolveComponent("GSCTableCalendar"),u=t.resolveComponent("GSCPlayersLanding"),g=t.resolveComponent("GSCTops"),d=t.resolveComponent("DiscoverVideos");return t.openBlock(),t.createElementBlock("div",LS,[n.elementSize.width<=680?(t.openBlock(),t.createElementBlock("div",DS,[t.createElementVNode("div",MS,[t.createVNode(s,{"current-season-id":o.currentSeasonId,width:"100%",onInput:r.onInputTournament},null,8,["current-season-id","onInput"])]),t.createElementVNode("div",jS,[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",vS,[WS,t.createElementVNode("div",US,"Bienvenido "+t.toDisplayString(r.formatUsername(o.user.name)),1)])):t.createCommentVNode("",!0),n.elementSize.width>680?(t.openBlock(),t.createElementBlock("div",HS,"Inicio")):t.createCommentVNode("",!0),n.elementSize.width>680?(t.openBlock(),t.createElementBlock("div",GS,[t.createElementVNode("div",JS,"Bienvenido "+t.toDisplayString(r.formatUsername(o.user.name)),1),t.createElementVNode("div",qS,[t.createElementVNode("div",ZS,[t.createVNode(s,{"current-season-id":o.currentSeasonId,onInput:r.onInputTournament},null,8,["current-season-id","onInput"])]),t.createElementVNode("div",XS,[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",KS,[t.createVNode(p,{"component-width":n.elementSize.width,isplayer:o.isplayer,"is-full":i.tournamentSelected.id!=o.user.tournament,onClickMatch:r.onClickMatch,onClickCalendar:r.onClickCalendar,data:i.tournamentSelected.id==o.user.tournament?i.fullTournamentSchedule:r.gamesFullLeague},null,8,["component-width","isplayer","is-full","onClickMatch","onClickCalendar","data"])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(r.containerGridCalendarTable)},[t.createElementVNode("div",{class:"container-grid",style:t.normalizeStyle(n.elementSize.width<1e3?"width: 100%":"")},[t.createVNode(c,{isPlayer:o.isplayer?i.tournamentSelected.id==o.user.tournament:!1,"player-id":o.user.player,"team-id":o.user.team,"season-selected":i.seasonSelected.id,"next-rival-id":Object.keys(i.fullTournamentSchedule).length>0?o.user.team==i.fullTournamentSchedule.data.prematch.home_team?i.fullTournamentSchedule.data.prematch.visiting_team:i.fullTournamentSchedule.data.prematch.home_team:0,"team-img":"https://az755631.vo.msecnd.net/teams-150/"+o.user.team+".png","player-img":"https://az755631.vo.msecnd.net/players-profile/"+o.user.player+".png","rival-img":Object.keys(i.fullTournamentSchedule).length>0?o.user.team==i.fullTournamentSchedule.data.prematch.home_team?"https://az755631.vo.msecnd.net/teams-150/"+i.fullTournamentSchedule.data.prematch.visiting_team+".png":"https://az755631.vo.msecnd.net/teams-150/"+i.fullTournamentSchedule.data.prematch.home_team+".png":"","has-team":o.isplayer?!1:i.tournamentSelected.id==o.user.tournament,"component-width":n.elementSize.width,onAction:r.clickCard},null,8,["isPlayer","player-id","team-id","season-selected","next-rival-id","team-img","player-img","rival-img","has-team","component-width","onAction"])],4),t.createElementVNode("div",{class:"container-calendar-table",style:t.normalizeStyle(n.elementSize.width<1e3?"width: 100%; margin-top: 30px;":"")},[t.createVNode(m,{onAction:r.onAction,season:i.seasonSelected,seasons:i.seasonsSelected,onOpenmedia:r.onOpenMedia,onOnOpenProfile:r.onOpenProfile,componentWidth:n.elementSize.width},null,8,["onAction","season","seasons","onOpenmedia","onOnOpenProfile","componentWidth"])],4)],2),i.tournamentSelected.id==o.user.tournament?t.withDirectives((t.openBlock(),t.createElementBlock("div",YS,[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",QS,[t.createVNode(g,{onMore:r.moreTops,"show-switch":i.tournamentSelected.id==o.user.tournament,season:i.seasonSelected.id,"team-id":o.user.team,onOpenmedia:r.onOpenMedia},null,8,["onMore","show-switch","season","team-id","onOpenmedia"])]),t.createElementVNode("div",e5,[t.createVNode(d,{onOpenmedia:r.onOpenMedia,videoType:i.tournamentSelected.id==o.user.tournament?i.resumeType:i.goalsType,team:o.team,player:o.user.player,isplayer:o.isplayer,nextRivalTeam:i.tournamentSelected.id==o.user.tournament&&i.nextRivalId!=0?{id:i.nextRivalId}:0,user:o.user,seasonSelected:i.seasonSelected,tournamentSelected:i.tournamentSelected,myTournament:o.user.tournament},null,8,["onOpenmedia","videoType","team","player","isplayer","nextRivalTeam","user","seasonSelected","tournamentSelected","myTournament"])])],2)],2)],512)}const o5=ie(FS,[["render",t5],["__scopeId","data-v-acc084f5"]]);ve.GSCLanding=o5,Object.defineProperty(ve,Symbol.toStringTag,{value:"Module"})});
|
|
28
|
+
*/const fe={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"}},Tr={itemsToShow:{default:fe.itemsToShow,type:Number},itemsToScroll:{default:fe.itemsToScroll,type:Number},wrapAround:{default:fe.wrapAround,type:Boolean},throttle:{default:fe.throttle,type:Number},snapAlign:{default:fe.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:fe.transition,type:Number},breakpoints:{default:fe.breakpoints,type:Object},autoplay:{default:fe.autoplay,type:Number},pauseAutoplayOnHover:{default:fe.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:fe.mouseDrag,type:Boolean},touchDrag:{default:fe.touchDrag,type:Boolean},dir:{default:fe.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:fe.i18n,type:Object},settings:{default(){return{}},type:Object}};function Qy({config:e,slidesCount:a}){const{snapAlign:t,wrapAround:n,itemsToShow:s=1}=e;if(n)return Math.max(a-1,0);let i;switch(t){case"start":i=a-s;break;case"end":i=a-1;break;case"center":case"center-odd":i=a-Math.ceil((s-.5)/2);break;case"center-even":i=a-Math.ceil(s/2);break;default:i=0;break}return Math.max(i,0)}function e0({config:e,slidesCount:a}){const{wrapAround:t,snapAlign:n,itemsToShow:s=1}=e;let i=0;if(t||s>a)return i;switch(n){case"start":i=0;break;case"end":i=s-1;break;case"center":case"center-odd":i=Math.floor((s-1)/2);break;case"center-even":i=Math.floor((s-2)/2);break;default:i=0;break}return i}function ln({val:e,max:a,min:t}){return a<t?e:Math.min(Math.max(e,t),a)}function t0({config:e,currentSlide:a,slidesCount:t}){const{snapAlign:n,wrapAround:s,itemsToShow:i=1}=e;let r=a;switch(n){case"center":case"center-odd":r-=(i-1)/2;break;case"center-even":r-=(i-2)/2;break;case"end":r-=i-1;break}return s?r:ln({val:r,max:t-i,min:0})}function vr(e){return e?e.reduce((a,t)=>{var n;return t.type===o.Fragment?[...a,...vr(t.children)]:((n=t.type)===null||n===void 0?void 0:n.name)==="CarouselSlide"?[...a,t]:a},[]):[]}function cn({val:e,max:a,min:t=0}){return e>a?cn({val:e-(a+1),max:a,min:t}):e<t?cn({val:e+(a+1),max:a,min:t}):e}function o0(e,a){let t;return a?function(...n){const s=this;t||(e.apply(s,n),t=!0,setTimeout(()=>t=!1,a))}:e}function a0(e,a){let t;return function(...n){t&&clearTimeout(t),t=setTimeout(()=>{e(...n),t=null},a)}}function n0(e="",a={}){return Object.entries(a).reduce((t,[n,s])=>t.replace(`{${n}}`,String(s)),e)}var i0=o.defineComponent({name:"ARIA",setup(){const e=o.inject("config",o.reactive(Object.assign({},fe))),a=o.inject("currentSlide",o.ref(0)),t=o.inject("slidesCount",o.ref(0));return()=>o.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},n0(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:t.value}))}}),s0=o.defineComponent({name:"Carousel",props:Tr,setup(e,{slots:a,emit:t,expose:n}){var s;const i=o.ref(null),r=o.ref([]),l=o.ref(0),u=o.ref(0),c=o.reactive(Object.assign({},fe));let m=Object.assign({},fe),p;const f=o.ref((s=e.modelValue)!==null&&s!==void 0?s:0),d=o.ref(0),h=o.ref(0),g=o.ref(0),b=o.ref(0);let S,_;o.provide("config",c),o.provide("slidesCount",u),o.provide("currentSlide",f),o.provide("maxSlide",g),o.provide("minSlide",b),o.provide("slideWidth",l);function V(){p=Object.assign({},e.breakpoints),m=Object.assign(Object.assign(Object.assign({},m),e),{i18n:Object.assign(Object.assign({},m.i18n),e.i18n),breakpoints:void 0}),H(m)}function z(){if(!p||!Object.keys(p).length)return;const w=Object.keys(p).map(x=>Number(x)).sort((x,D)=>+D-+x);let T=Object.assign({},m);w.some(x=>{const D=window.matchMedia(`(min-width: ${x}px)`).matches;return D&&(T=Object.assign(Object.assign({},T),p[x])),D}),H(T)}function H(w){Object.entries(w).forEach(([T,x])=>c[T]=x)}const ee=a0(()=>{z(),W()},16);function W(){if(!i.value)return;const w=i.value.getBoundingClientRect();l.value=w.width/c.itemsToShow}function le(){u.value<=0||(h.value=Math.ceil((u.value-1)/2),g.value=Qy({config:c,slidesCount:u.value}),b.value=e0({config:c,slidesCount:u.value}),c.wrapAround||(f.value=ln({val:f.value,max:g.value,min:b.value})))}o.onMounted(()=>{o.nextTick(()=>W()),setTimeout(()=>W(),1e3),z(),Ie(),window.addEventListener("resize",ee,{passive:!0}),t("init")}),o.onUnmounted(()=>{_&&clearTimeout(_),S&&clearInterval(S),window.removeEventListener("resize",ee,{passive:!0})});let $=!1;const ae={x:0,y:0},ie={x:0,y:0},U=o.reactive({x:0,y:0}),se=o.ref(!1),de=o.ref(!1),Ue=()=>{se.value=!0},He=()=>{se.value=!1};function $e(w){["INPUT","TEXTAREA","SELECT"].includes(w.target.tagName)||($=w.type==="touchstart",$||w.preventDefault(),!(!$&&w.button!==0||N.value)&&(ae.x=$?w.touches[0].clientX:w.clientX,ae.y=$?w.touches[0].clientY:w.clientY,document.addEventListener($?"touchmove":"mousemove",Ae,!0),document.addEventListener($?"touchend":"mouseup",Pe,!0)))}const Ae=o0(w=>{de.value=!0,ie.x=$?w.touches[0].clientX:w.clientX,ie.y=$?w.touches[0].clientY:w.clientY;const T=ie.x-ae.x,x=ie.y-ae.y;U.y=x,U.x=T},c.throttle);function Pe(){const w=c.dir==="rtl"?-1:1,T=Math.sign(U.x)*.4,x=Math.round(U.x/l.value+T)*w;if(x&&!$){const D=we=>{we.stopPropagation(),window.removeEventListener("click",D,!0)};window.addEventListener("click",D,!0)}v(f.value-x),U.x=0,U.y=0,de.value=!1,document.removeEventListener($?"touchmove":"mousemove",Ae,!0),document.removeEventListener($?"touchend":"mouseup",Pe,!0)}function Ie(){!c.autoplay||c.autoplay<=0||(S=setInterval(()=>{c.pauseAutoplayOnHover&&se.value||I()},c.autoplay))}function R(){S&&(clearInterval(S),S=null),Ie()}const N=o.ref(!1);function v(w){const T=c.wrapAround?w:ln({val:w,max:g.value,min:b.value});f.value===T||N.value||(t("slide-start",{slidingToIndex:w,currentSlideIndex:f.value,prevSlideIndex:d.value,slidesCount:u.value}),N.value=!0,d.value=f.value,f.value=T,_=setTimeout(()=>{if(c.wrapAround){const x=cn({val:T,max:g.value,min:0});x!==f.value&&(f.value=x,t("loop",{currentSlideIndex:f.value,slidingToIndex:w}))}t("update:modelValue",f.value),t("slide-end",{currentSlideIndex:f.value,prevSlideIndex:d.value,slidesCount:u.value}),N.value=!1,R()},c.transition))}function I(){v(f.value+c.itemsToScroll)}function P(){v(f.value-c.itemsToScroll)}const L={slideTo:v,next:I,prev:P};o.provide("nav",L),o.provide("isSliding",N);const F=o.computed(()=>t0({config:c,currentSlide:f.value,slidesCount:u.value}));o.provide("slidesToScroll",F);const Z=o.computed(()=>{const w=c.dir==="rtl"?-1:1,T=F.value*l.value*w;return{transform:`translateX(${U.x-T}px)`,transition:`${N.value?c.transition:0}ms`,margin:c.wrapAround?`0 -${u.value*l.value}px`:"",width:"100%"}});function ne(){V(),z(),le(),W(),R()}Object.keys(Tr).forEach(w=>{["modelValue"].includes(w)||o.watch(()=>e[w],ne)}),o.watch(()=>e.modelValue,w=>{w!==f.value&&v(Number(w))}),o.watch(u,le),t("before-init"),V();const ce={config:c,slidesCount:u,slideWidth:l,next:I,prev:P,slideTo:v,currentSlide:f,maxSlide:g,minSlide:b,middleSlide:h};n({updateBreakpointsConfigs:z,updateSlidesData:le,updateSlideWidth:W,initDefaultConfigs:V,restartCarousel:ne,slideTo:v,next:I,prev:P,nav:L,data:ce});const Be=a.default||a.slides,xe=a.addons,Re=o.reactive(ce);return()=>{const w=vr(Be==null?void 0:Be(Re)),T=(xe==null?void 0:xe(Re))||[];w.forEach((Se,_e)=>Se.props.index=_e);let x=w;if(c.wrapAround){const Se=w.map((ke,te)=>o.cloneVNode(ke,{index:-w.length+te,isClone:!0,key:`clone-before-${te}`})),_e=w.map((ke,te)=>o.cloneVNode(ke,{index:w.length+te,isClone:!0,key:`clone-after-${te}`}));x=[...Se,...w,..._e]}r.value=w,u.value=Math.max(w.length,1);const D=o.h("ol",{class:"carousel__track",style:Z.value,onMousedownCapture:c.mouseDrag?$e:null,onTouchstartPassiveCapture:c.touchDrag?$e:null},x),we=o.h("div",{class:"carousel__viewport"},D);return o.h("section",{ref:i,class:{carousel:!0,"is-sliding":N.value,"is-dragging":de.value,"is-hover":se.value,"carousel--rtl":c.dir==="rtl"},dir:c.dir,"aria-label":c.i18n.ariaGallery,tabindex:"0",onMouseenter:Ue,onMouseleave:He},[we,T,o.h(i0)])}}}),dn;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(dn||(dn={}));const r0={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 l0(e){return e in dn}const mn=e=>{const a=o.inject("config",o.reactive(Object.assign({},fe))),t=String(e.name),n=`icon${t.charAt(0).toUpperCase()+t.slice(1)}`;if(!t||typeof t!="string"||!l0(t))return;const s=r0[t],i=o.h("path",{d:s}),r=a.i18n[n]||e.title||t,l=o.h("title",r);return o.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":r},[l,i])};mn.props={name:String,title:String};const c0=(e,{slots:a,attrs:t})=>{const{next:n,prev:s}=a||{},i=o.inject("config",o.reactive(Object.assign({},fe))),r=o.inject("maxSlide",o.ref(1)),l=o.inject("minSlide",o.ref(1)),u=o.inject("currentSlide",o.ref(1)),c=o.inject("nav",{}),{dir:m,wrapAround:p,i18n:f}=i,d=m==="rtl",h=o.h("button",{type:"button",class:["carousel__prev",!p&&u.value<=l.value&&"carousel__prev--disabled",t==null?void 0:t.class],"aria-label":f.ariaPreviousSlide,onClick:c.prev},(s==null?void 0:s())||o.h(mn,{name:d?"arrowRight":"arrowLeft"})),g=o.h("button",{type:"button",class:["carousel__next",!p&&u.value>=r.value&&"carousel__next--disabled",t==null?void 0:t.class],"aria-label":f.ariaNextSlide,onClick:c.next},(n==null?void 0:n())||o.h(mn,{name:d?"arrowLeft":"arrowRight"}));return[h,g]};var d0=o.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const t=o.inject("config",o.reactive(Object.assign({},fe))),n=o.inject("currentSlide",o.ref(0)),s=o.inject("slidesToScroll",o.ref(0)),i=o.inject("isSliding",o.ref(!1)),r=()=>e.index===n.value,l=()=>e.index===n.value-1,u=()=>e.index===n.value+1,c=()=>{const m=Math.floor(s.value),p=Math.ceil(s.value+t.itemsToShow-1);return e.index>=m&&e.index<=p};return()=>{var m;return o.h("li",{style:{width:`${100/t.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":c(),"carousel__slide--active":r(),"carousel__slide--prev":l(),"carousel__slide--next":u(),"carousel__slide--sliding":i.value},"aria-hidden":!c()},(m=a.default)===null||m===void 0?void 0:m.call(a))}}});const De=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},m0={__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 t=e,n=o.computed(()=>{const l={"background-color":t.backgroundColor,height:t.height};return t.matchDay.key===t.matchDaySelected.key&&(l["border-bottom"]=`solid 1px ${t.bottomLineColor}`,l["background-color"]=t.selectedMatchDayBackgroundColor),t.isLandingMode||(l["border-right"]="solid 1px rgba(255, 255, 255, 0.1)"),l}),s=o.computed(()=>({color:t.numberColor,"font-family":t.numberFontFamily,"font-size":t.numberFontSize})),i=o.computed(()=>({color:t.textColor,"font-family":t.textFontFamily,"font-size":t.textFontSize}));function r(l){a("click-match-day",l)}return(l,u)=>(o.openBlock(),o.createElementBlock("div",{class:"match-day",style:o.normalizeStyle({...n.value}),onClick:u[0]||(u[0]=c=>r(e.matchDay))},[o.createElementVNode("div",{class:"match-day__value",style:o.normalizeStyle(s.value)},o.toDisplayString(e.matchDay.valueText),5),Number.isNaN(e.matchDay.value)?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:"match-day__text",style:o.normalizeStyle([e.isLandingMode?"margin-top:3px":"margin-top:4px",i.value])},o.toDisplayString(e.isLandingMode||e.componentWidth<=425?"JOR":"JORNADA"),5))],4))}},u0=De(m0,[["__scopeId","data-v-89459353"]]),p0={__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 t=e;o.useCssVars(c=>({"469bccd0":i.value,"469dfb50":r.value}));const n=o.ref(null),s=o.computed(()=>({itemsToShow:t.itemsToShow,itemsToScroll:t.itemsToScroll,snapAlign:"start"})),i=o.computed(()=>n.value.data.currentSlide.value==0?"none":"inline"),r=o.computed(()=>n.value.data.currentSlide.value==n.value.data.maxSlide.value?"none":"inline"),l=o.ref({});o.watch(()=>t.closestMatchDay,c=>{if(c){const m=t.matchDays.find(p=>p.key===c);u(m||t.matchDays[0],!0)}}),o.watch(()=>t.matchDays,c=>{if(!t.closestMatchDay&&c&&c.length){const m=c.find(p=>p.key===t.defaultMatchDayKey);l.value=m||c[0],a("change-match-day",l.value)}},{immediate:!0});function u(c,m=!1){m&&n.value.slideTo(c.index),l.value=c,a("change-match-day",l.value)}return(c,m)=>(o.openBlock(),o.createElementBlock("div",{class:"match-day-picker",style:o.normalizeStyle(e.isLandingMode?"border-top-left-radius: 9px; border-top-right-radius: 9px;":"margin-bottom:12px")},[o.createVNode(o.unref(s0),o.mergeProps(s.value,{ref_key:"matchDayPickerCarousel",ref:n}),{addons:o.withCtx(()=>[o.createVNode(o.unref(c0))]),default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.matchDays,p=>(o.openBlock(),o.createBlock(o.unref(d0),{key:p.key},{default:o.withCtx(()=>[o.createVNode(u0,o.mergeProps(t,{"match-day":p,"match-day-selected":l.value,"is-landing-mode":e.isLandingMode,"component-width":e.componentWidth,onClickMatchDay:u}),null,16,["match-day","match-day-selected","is-landing-mode","component-width"])]),_:2},1024))),128))]),_:1},16)],4))}},h0=De(p0,[["__scopeId","data-v-930cd509"]]);function Et(e,a=80){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-"}${a}/${e}.png`}function Or(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 g0(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 f0={class:"game-info__teams"},y0={class:"game-info__teams__team__logo"},b0=["src"],w0={class:"game-info__teams__detail"},S0={key:0,class:"game-info__teams__detail__pre-game"},_0={class:"game-info__teams__team__logo away"},k0=["src"],C0={key:0},E0={key:0},B0={key:1},x0={__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,t=o.computed(()=>{const c=new Date(a.game.dateTimeMillis),m=c.getHours(),p=c.getMinutes();return`${m<10?`0${m}`:m}:${p<10?`0${p}`:p}`}),n=o.computed(()=>{let c="120px";return(a.isLandingMode||a.isAcronymVisible)&&(c="70px"),{"min-width":c}}),s=o.computed(()=>({"font-size":a.namesFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary})),i=o.computed(()=>({"font-size":a.additionalInfoFontSize,"font-family":a.additionalInfoFontFamily,color:a.colorSecondary})),r=o.computed(()=>({"font-size":a.scoreFontSize,"font-family":a.scoreFontFamily,color:a.colorPrimary})),l=o.computed(()=>({"font-size":a.timeZoneFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary})),u=o.computed(()=>({"font-size":a.timeFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary}));return(c,m)=>(o.openBlock(),o.createElementBlock("div",{class:"game-info",style:o.normalizeStyle(e.isLandingMode?"gap:5px":"")},[o.createElementVNode("div",f0,[o.createElementVNode("div",{class:"game-info__teams__team",style:o.normalizeStyle(n.value)},[o.createElementVNode("div",{class:"game-info__teams__team__name",style:o.normalizeStyle(s.value)},o.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.home_team.acronym:e.game.home_team.colloquial_name),5),o.createElementVNode("div",y0,[o.createElementVNode("img",{src:o.unref(Et)(e.game.home_team.team_id),alt:""},null,8,b0)])],4),o.createElementVNode("div",w0,[e.game.game_status===4&&!e.game.is_live?(o.openBlock(),o.createElementBlock("div",S0,[o.createElementVNode("div",null,[o.createElementVNode("span",{style:o.normalizeStyle(u.value)},o.toDisplayString(t.value),5),o.createTextVNode(),o.createElementVNode("span",{style:o.normalizeStyle(l.value)},"CST",4)])])):(o.openBlock(),o.createElementBlock("div",{key:1,class:"game-info__teams__detail__score",style:o.normalizeStyle(r.value)},[o.createElementVNode("span",null,o.toDisplayString(e.game.score[0])+" - "+o.toDisplayString(e.game.score[1]),1)],4))]),o.createElementVNode("div",{class:"game-info__teams__team away",style:o.normalizeStyle(n.value)},[o.createElementVNode("div",_0,[o.createElementVNode("img",{src:o.unref(Et)(e.game.visiting_team.team_id),alt:""},null,8,k0)]),o.createElementVNode("div",{class:"game-info__teams__team__name",style:o.normalizeStyle(s.value)},o.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.visiting_team.acronym:e.game.visiting_team.colloquial_name),5)],4)]),o.createElementVNode("div",{class:"game-info__status",style:o.normalizeStyle([i.value,e.isLandingMode?"line-height: normal":""])},[e.game.game_status===4&&!e.game.is_live?(o.openBlock(),o.createElementBlock("span",C0,[e.isTelevisionVisible?(o.openBlock(),o.createElementBlock("span",E0,o.toDisplayString(e.game.tv_stations.join(", ")),1)):o.createCommentVNode("",!0)])):(o.openBlock(),o.createElementBlock("span",B0,o.toDisplayString(o.unref(g0)(e.game)),1))],4)],4))}},Ar=De(x0,[["__scopeId","data-v-afb1954b"]]),Vr=e=>(o.pushScopeId("data-v-8839c56d"),e=e(),o.popScopeId(),e),N0={class:"game-status"},T0={key:0,class:"game-status__day__live"},v0=Vr(()=>o.createElementVNode("span",null,"LIVE",-1)),O0=Vr(()=>o.createElementVNode("span",{class:"dot"},null,-1)),A0=[v0,O0],V0={key:0,class:"game-status__round"},$0={__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,t=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],n=o.computed(()=>{let r="";if(a.dateTimeMillis){const l=new Date(a.dateTimeMillis);r=`${l.getDate()} ${t[l.getMonth()]}`}return r}),s=o.computed(()=>({"font-size":a.fontSize})),i=o.computed(()=>{let r=[];return a.isLive?r.push("live"):a.status!==1&&r.push("pre-match"),r});return(r,l)=>(o.openBlock(),o.createElementBlock("div",N0,[o.createElementVNode("div",{class:o.normalizeClass(["game-status__day",i.value]),style:o.normalizeStyle(s.value)},[e.isLive?(o.openBlock(),o.createElementBlock("div",T0,A0)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(n.value),1)],64))],6),e.isRoundMode?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",V0,o.toDisplayString(e.roundAbbreviation),1))]))}},$r=De($0,[["__scopeId","data-v-8839c56d"]]),je={SHOW_GAME_EVENTS:"SHOW_GAME_EVENTS",PLAY_GOALS:"PLAY_GOALS",PLAY_RESUME:"PLAY_RESUME",NOTIFICATION:"NOTIFICATION",STATISTICS:"STATISTICS"},P0=e=>(o.pushScopeId("data-v-0d97b1a8"),e=e(),o.popScopeId(),e),I0={class:"actions"},R0={class:"actions__row"},L0=P0(()=>o.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.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"}),o.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"}),o.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)),z0=[L0],F0={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},M0=["fill"],D0={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},j0=["fill"],W0={__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 t=e,n=o.computed(()=>({backgroundColor:t.iconBackgroundColor,borderColor:t.iconBorderColor}));function s(i){a("action",i)}return(i,r)=>(o.openBlock(),o.createElementBlock("div",I0,[o.createElementVNode("div",R0,[o.createElementVNode("div",{class:"actions__button rounded",style:o.normalizeStyle(n.value),onClick:r[0]||(r[0]=l=>s(o.unref(je).STATISTICS))},z0,4),e.showPlayButton&&e.hasVideo?(o.openBlock(),o.createElementBlock("div",{key:0,class:"actions__button rounded",style:o.normalizeStyle(n.value),onClick:r[1]||(r[1]=l=>s(o.unref(je).PLAY_RESUME))},[(o.openBlock(),o.createElementBlock("svg",F0,[o.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:t.iconColor},null,8,M0)]))],4)):o.createCommentVNode("",!0),e.gameStatus===4444&&!e.isLive?(o.openBlock(),o.createElementBlock("div",{key:1,class:"actions__button",onClick:r[2]||(r[2]=l=>s(o.unref(je).NOTIFICATION))},[(o.openBlock(),o.createElementBlock("svg",D0,[o.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:t.iconColor},null,8,j0)]))])):o.createCommentVNode("",!0)])]))}},U0=De(W0,[["__scopeId","data-v-0d97b1a8"]]),un=e=>(o.pushScopeId("data-v-af6919bd"),e=e(),o.popScopeId(),e),H0={class:"actions"},G0={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},q0=["fill"],J0={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},K0=["fill"],Z0=un(()=>o.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.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"}),o.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"}),o.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)),X0=[Z0],Y0={key:0,class:"actions__videos"},Q0={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e1=["fill"],t1={key:1,class:"actions__videos__thumbnails"},o1=un(()=>o.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__goals"},null,-1)),a1=un(()=>o.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__summary"},null,-1)),n1={height:24,width:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i1=["stroke"],s1={__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 t=e,n=o.computed(()=>({backgroundColor:t.iconBackgroundColor,borderColor:t.iconBorderColor})),s=o.computed(()=>{const u=[];return t.componentWidth<540&&u.push("mobile"),u}),i=o.computed(()=>t.componentWidth>730),r=o.computed(()=>({color:t.thumbnailColor,fontFamily:t.thumbnailFontFamily,fontSize:t.thumbnailFontSize}));function l(u){a("action",u)}return(u,c)=>(o.openBlock(),o.createElementBlock("div",H0,[o.createElementVNode("div",{class:o.normalizeClass(["actions__buttons",s.value])},[e.gameStatus===4444&&!e.isLive&&!i.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:"actions__button",onClick:c[0]||(c[0]=m=>l(o.unref(je).NOTIFICATION))},[(o.openBlock(),o.createElementBlock("svg",G0,[o.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:t.iconColor},null,8,q0)]))])):o.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo&&!i.value?(o.openBlock(),o.createElementBlock("div",{key:1,class:"actions__button rounded",style:o.normalizeStyle(n.value),onClick:c[1]||(c[1]=m=>l(o.unref(je).PLAY_RESUME))},[(o.openBlock(),o.createElementBlock("svg",J0,[o.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:t.iconColor},null,8,K0)]))],4)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"actions__button rounded",style:o.normalizeStyle(n.value),onClick:c[2]||(c[2]=m=>l(o.unref(je).STATISTICS))},X0,4)],2),i.value?(o.openBlock(),o.createElementBlock("div",Y0,[e.gameStatus===4444&&!e.isLive?(o.openBlock(),o.createElementBlock("div",{key:0,class:"actions__button",onClick:c[3]||(c[3]=m=>l(o.unref(je).NOTIFICATION))},[(o.openBlock(),o.createElementBlock("svg",Q0,[o.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:t.iconColor},null,8,e1)]))])):o.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo?(o.openBlock(),o.createElementBlock("div",t1,[o.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:c[4]||(c[4]=m=>l(o.unref(je).PLAY_GOALS))},[o1,o.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:o.normalizeStyle(r.value)}," Goles ",4)]),o.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:c[5]||(c[5]=m=>l(o.unref(je).PLAY_RESUME))},[a1,o.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:o.normalizeStyle(r.value)}," Resumen ",4)])])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),(e.gameStatus!==4||e.isLive)&&e.hasActions?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(["actions__button expand",{"rotated-180":e.areEventsVisible,mobile:e.componentWidth<540}]),onClick:c[6]||(c[6]=m=>l(o.unref(je).SHOW_GAME_EVENTS))},[(o.openBlock(),o.createElementBlock("svg",n1,[o.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,i1)]))],2)):(o.openBlock(),o.createElementBlock("div",{key:2,class:o.normalizeClass(["actions__button expand",{"rotated-180":!1,mobile:e.componentWidth<540}])},null,2))]))}},r1=De(s1,[["__scopeId","data-v-af6919bd"]]),Oo=e=>(o.pushScopeId("data-v-43a88f53"),e=e(),o.popScopeId(),e),l1={class:"row-landing__game-status"},c1={class:"row-landing__game-actions"},d1={class:"row-full__game-status"},m1={class:"row-full__game-info"},u1={key:0},p1={class:"row-full__game-actions"},h1={class:"game-events-container"},g1=Oo(()=>o.createElementVNode("div",{class:"separator"},null,-1)),f1=Oo(()=>o.createElementVNode("div",null,null,-1)),y1={class:"game-events__data"},b1={class:"game-events__data__team"},w1=["src"],S1={class:"game-events__data__team__event__text"},_1={class:"game-events__data__team away"},k1={class:"game-events__data__team__event__text"},C1=["src"],E1=Oo(()=>o.createElementVNode("div",null,null,-1)),B1=Oo(()=>o.createElementVNode("div",null,null,-1)),x1={__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 t=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"},s=o.ref(!1),i=o.ref(!1),r=o.computed(()=>{const g={homeTeam:[],awayTeam:[]};return t.game&&t.game.game_status!==4&&!t.game.is_live&&t.game.minutes&&(g.homeTeam.push(...d(t.game.minutes.home_goals_minutes,n.GOAL)),g.homeTeam.push(...d(t.game.minutes.home_red_cards_minutes,n.RED_CARD)),g.homeTeam.push(...d(t.game.minutes.home_yellow_cards_minutes,n.YELLOW_CARD)),g.awayTeam.push(...d(t.game.minutes.visiting_goals_minutes,n.GOAL)),g.awayTeam.push(...d(t.game.minutes.away_red_cards_minutes,n.RED_CARD)),g.awayTeam.push(...d(t.game.minutes.away_yellow_cards_minutes,n.YELLOW_CARD))),g}),l=o.computed(()=>{const g=r.value.homeTeam.length,b=r.value.awayTeam.length;return g+b>0}),u=o.computed(()=>({"background-color":t.backgroundColor})),c=o.computed(()=>({height:t.height})),m=o.computed(()=>{const g={game:[],events:[]};return t.componentWidth<500?(g.events.push("break-point-3"),g.game.push("break-point-2")):t.componentWidth<730?(g.game.push("break-point-2"),g.events.push("break-point-2")):t.componentWidth<910&&(g.game.push("break-point-1"),g.events.push("break-point-1")),g}),p=o.computed(()=>({isLandingMode:t.isLandingMode,game:t.game,colorPrimary:"#fff",colorSecondary:"#fff",namesFontSize:"12px",timeFontSize:"12px",timeZoneFontSize:"8px",scoreFontSize:"13px",namesFontFamily:"sans-serif",scoreFontFamily:"sans-serif",additionalInfoFontFamily:"sans-serif",additionalInfoFontSize:"9px"})),f=o.computed(()=>({"font-size":t.televisionFontSize,"font-family":t.televisionFontFamily,color:t.televisionColor}));o.watch(()=>t.componentWidth,g=>{i.value=g<910});function d(g,b){return g.map(S=>({iconUrl:b,text:S}))}function h(g){g===je.SHOW_GAME_EVENTS?s.value=!s.value:a("action",{action:g,game:t.game})}return(g,b)=>e.isLandingMode?(o.openBlock(),o.createElementBlock("div",{key:0,class:"row-landing",style:o.normalizeStyle(u.value)},[o.createVNode(Ar,{game:e.game,"is-landing-mode":e.isLandingMode},null,8,["game","is-landing-mode"]),o.createElementVNode("div",l1,[o.createVNode($r,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":o.unref(Or)(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"])]),o.createElementVNode("div",c1,[o.createVNode(U0,{"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)):(o.openBlock(),o.createElementBlock("div",{key:1,class:"row-full-container",style:o.normalizeStyle(u.value)},[o.createElementVNode("div",{class:o.normalizeClass(["row-full",m.value.game]),style:o.normalizeStyle(c.value)},[o.createElementVNode("div",d1,[o.createVNode($r,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":o.unref(Or)(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"])]),o.createElementVNode("div",m1,[o.createVNode(Ar,o.mergeProps(p.value,{"is-television-visible":i.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?(o.openBlock(),o.createElementBlock("div",{key:0,class:"row-full__television",style:o.normalizeStyle(f.value)},[!i.value&&(e.game.game_status===4||e.game.is_live)?(o.openBlock(),o.createElementBlock("span",u1,o.toDisplayString(e.game.tv_stations.join(", ")),1)):o.createCommentVNode("",!0)],4)):o.createCommentVNode("",!0),o.createElementVNode("div",p1,[o.createVNode(r1,{"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":s.value,"component-width":e.componentWidth,onAction:h},null,8,["is-live","has-video","has-actions","game-status","are-events-visible","component-width"])])],6),o.createVNode(o.Transition,null,{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("div",h1,[g1,o.createElementVNode("div",{class:o.normalizeClass(["game-events",m.value.events])},[f1,o.createElementVNode("div",y1,[o.createElementVNode("div",b1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.value.homeTeam,(S,_)=>(o.openBlock(),o.createElementBlock("div",{key:`h${_}`,class:"game-events__data__team__event"},[o.createElementVNode("img",{src:S.iconUrl},null,8,w1),o.createElementVNode("div",S1,o.toDisplayString(S.text),1)]))),128))]),o.createElementVNode("div",_1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.value.awayTeam,(S,_)=>(o.openBlock(),o.createElementBlock("div",{key:`a${_}`,class:"game-events__data__team__event"},[o.createElementVNode("div",k1,o.toDisplayString(S.text),1),o.createElementVNode("img",{src:S.iconUrl},null,8,C1)]))),128))])]),E1,B1],2)],512),[[o.vShow,s.value]])]),_:1})],4))}},Pr=De(x1,[["__scopeId","data-v-43a88f53"]]),N1={class:"calendar-table"},T1={__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 t=e;function n(i){return i%2===0?t.evenRowColor:t.oddRowColor}function s(i){a("action",i)}return(i,r)=>(o.openBlock(),o.createElementBlock("div",N1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.gamesPerPage,(l,u)=>(o.openBlock(),o.createBlock(Pr,{key:l.game_id,game:l,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":n(u),"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:s},null,8,["game","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))}},v1=De(T1,[["__scopeId","data-v-47b333f0"]]),O1={class:"calendar-by-team"},A1={class:"playing-as-picker"},V1={class:"calendar-by-team__page"},$1={__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 t=e,n=o.ref(0),s=o.computed(()=>{let u=[];if(t.gamesPages.size>0){const c=Array.from(t.gamesPages.entries()).reduce((m,[p,f])=>{const d=Number(p),h=Number.isNaN(d)?p:`Jornada ${d<10?"0":""}${d}`,g=f.reduce((b,S)=>(b.push(...S),b),[]).filter(b=>n.value===0||n.value===1&&b.visiting_team.team_id===t.teamId?!0:n.value===2&&b.home_team.team_id===t.teamId);return g.length>0&&m.push({roundName:h,games:g}),m},[]);u.push(c)}return u});function i(u){a("action",u)}function r(u){document.querySelector("#opc0").classList.remove("selected"),document.querySelector("#opc1").classList.remove("selected"),document.querySelector("#opc2").classList.remove("selected"),n.value=u,document.querySelector("#opc"+u).classList.add("selected")}function l(u){let c=u;switch(u){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(u,c)=>(o.openBlock(),o.createElementBlock("div",O1,[o.createElementVNode("div",A1,[o.createElementVNode("div",{class:"playing-as-picker__type selected",id:"opc0",onClick:c[0]||(c[0]=m=>r(0))}," Todas "),o.createElementVNode("div",{class:"playing-as-picker__type",id:"opc1",onClick:c[1]||(c[1]=m=>r(1))},"Visitante"),o.createElementVNode("div",{class:"playing-as-picker__type",id:"opc2",onClick:c[2]||(c[2]=m=>r(2))},"Local")]),o.createVNode(o.unref(Nr),{"is-pagination-visible":e.isPaginationVisible,items:s.value},{default:o.withCtx(({item:m})=>[o.createElementVNode("div",V1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(m,(p,f)=>(o.openBlock(),o.createElementBlock("div",{key:f,class:"calendar-by-team__page__round"},[o.createElementVNode("div",{class:"calendar-by-team__page__round__round-name",style:o.normalizeStyle([{color:"white"},e.componentWidth<=425?"padding: 5px 10px":""])},o.toDisplayString(l(p.roundName)),5),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(p.games,d=>(o.openBlock(),o.createBlock(Pr,{key:d.game_id,game:d,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":e.gameRowColor,"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:i},null,8,["game","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))),128))])]),_:1},8,["is-pagination-visible","items"])]))}},P1=De($1,[["__scopeId","data-v-1cad2737"]]),I1="_image62Icon_1lvdf_3",R1="_imgChivasIcon_1lvdf_21",L1="_nameDesktop_1lvdf_35",z1="_nameMobile_1lvdf_61",F1="_homeTeam_1lvdf_85",M1="_sbado16De_1lvdf_107",D1="_gameDate_1lvdf_125",j1="_sab16092023_1lvdf_133",W1="_div_1lvdf_159",U1="_divscore_1lvdf_177",H1="_cst_1lvdf_197",G1="_hour_1lvdf_215",q1="_score_1lvdf_217",J1="_chivasTvCanal_1lvdf_239",K1="_gameStatus_1lvdf_263",Z1="_matchInfo_1lvdf_285",X1="_image62Icon1_1lvdf_311",Y1="_name_1lvdf_35",Q1="_imgAtlasIcon_1lvdf_355",eb="_name1_1lvdf_369",tb="_awayTeam_1lvdf_393",ob="_matchCard_1lvdf_415",ab={image62Icon:I1,imgChivasIcon:R1,nameDesktop:L1,nameMobile:z1,homeTeam:F1,sbado16De:M1,gameDate:D1,sab16092023:j1,div:W1,divscore:U1,cst:H1,hour:G1,score:q1,chivasTvCanal:J1,gameStatus:K1,matchInfo:Z1,image62Icon1:X1,name:Y1,imgAtlasIcon:Q1,name1:eb,awayTeam:tb,matchCard:ob},nb=["src"],ib=["src"],sb={key:0},rb=["src"],lb=["src"],cb={__name:"CardPreMatch",props:{game:{type:Object,default:()=>{}}},setup(e){const a=e,t=o.computed(()=>{const s={...a.game};return s.gameSchedule=a.game.schedule.split(":"),s.gameSchedule.pop(),s.gameSchedule=s.gameSchedule.join(":"),s});function n(s,i){const r=new Date(s);if(i==1){const l=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],u=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"];return`${l[r.getDay()]} ${r.getDate()} de ${u[r.getMonth()]}`}else return`${r.getDate()}-${r.getMonth()+1}-${r.getFullYear()}`}return(s,i)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(s.$style.matchCard)},[o.createElementVNode("div",{class:o.normalizeClass(s.$style.homeTeam),id:"container-home-team"},[o.createElementVNode("img",{class:o.normalizeClass(s.$style.image62Icon),alt:"",src:o.unref(Et)(t.value.home_team.team_id,150)},null,10,nb),o.createElementVNode("img",{class:o.normalizeClass(s.$style.imgChivasIcon),alt:"",src:o.unref(Et)(t.value.home_team.team_id)},null,10,ib),o.createElementVNode("h3",{class:o.normalizeClass(s.$style.nameDesktop),id:"team-name"},o.toDisplayString(t.value.home_team.colloquial_name),3),o.createElementVNode("h3",{class:o.normalizeClass(s.$style.nameMobile),id:"team-name"},o.toDisplayString(t.value.home_team.acronym),3)],2),t.value.game_status==4?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(s.$style.matchInfo),id:"container-match-info"},[o.createElementVNode("div",{class:o.normalizeClass(s.$style.sbado16De)},o.toDisplayString(n(t.value.date_time_utc,1)),3),o.createElementVNode("div",{class:o.normalizeClass(s.$style.sab16092023)},o.toDisplayString(n(t.value.date_time_utc,0)),3),o.createElementVNode("div",{class:o.normalizeClass(s.$style.hour)},[o.createElementVNode("div",{class:o.normalizeClass(s.$style.div)},o.toDisplayString(t.value.gameSchedule),3),o.createElementVNode("div",{class:o.normalizeClass(s.$style.cst)},"CST",2)],2),o.createElementVNode("div",{class:o.normalizeClass(s.$style.chivasTvCanal)},o.toDisplayString(t.value.tv_stations.join(", ")),3)],2)):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(s.$style.matchInfo),id:"container-match-info"},[o.createElementVNode("div",{class:o.normalizeClass([s.$style.sbado16De,s.$style.gameDate])},o.toDisplayString(n(t.value.date_time_utc,1)),3),o.createElementVNode("div",{class:o.normalizeClass([s.$style.sab16092023,s.$style.gameDate])},o.toDisplayString(n(t.value.date_time_utc,0)),3),o.createElementVNode("div",{class:o.normalizeClass(s.$style.score)},[o.createElementVNode("div",{class:o.normalizeClass(s.$style.divscore)},o.toDisplayString(t.value.score.join(" - ")),3)],2),o.createElementVNode("div",{class:o.normalizeClass(s.$style.gameStatus)},[o.createTextVNode(" Finalizado "),t.value.penalties_score_home_team!=0||t.value.penalties_score_visiting_team!=0?(o.openBlock(),o.createElementBlock("span",sb," - Penales "+o.toDisplayString(t.value.penalties_score_home_team)+" - "+o.toDisplayString(t.value.penalties_score_visiting_team),1)):o.createCommentVNode("",!0)],2)],2)),o.createElementVNode("div",{class:o.normalizeClass(s.$style.awayTeam),id:"container-away-team"},[o.createElementVNode("img",{class:o.normalizeClass(s.$style.image62Icon1),alt:"",src:o.unref(Et)(t.value.visiting_team.team_id,150)},null,10,rb),o.createElementVNode("h3",{class:o.normalizeClass(s.$style.name),id:"team-name"},o.toDisplayString(t.value.visiting_team.colloquial_name),3),o.createElementVNode("img",{class:o.normalizeClass(s.$style.imgAtlasIcon),alt:"",src:o.unref(Et)(t.value.visiting_team.team_id)},null,10,lb),o.createElementVNode("h3",{class:o.normalizeClass(s.$style.name1),id:"team-name"},o.toDisplayString(t.value.visiting_team.acronym),3)],2)],2))}},db={$style:ab},mb=De(cb,[["__cssModules",db]]),ub={class:"calendar-by-game__carousel"},pb={components:{GscSwitchComponent:Ua,GSCGeneraltable:Lg,GSCCalendarByGame:De({__name:"GSC-CalendarByGame",props:{height:{type:String,default:"fit-content"},width:{type:String,default:"100%"},rowHeight:{type:String,default:"fit-content"},oddRowColor:{type:String,default:"#172531"},evenRowColor:{type:String,default:"#0D1D29"},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},isRoundPickerVisible:{type:Boolean,default:!0},isPaginationVisible:{type:Boolean,default:!0},awaitForSeasons:{type:Boolean,default:!1},seasons:{type:Array,default:()=>[]},isCup:{type:Boolean,default:!1},isCupLegacy:{type:Boolean,default:!1},token:{type:String,default:""},pagesWithGames:{type:Array,default:()=>[]},maxGamesToShow:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},areRoundsVisible:{type:Boolean,default:!0},gamesPerMatchDay:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},itemsToShow:{type:Number,default:9},itemsToScroll:{type:Number,default:9},games:{type:Array,default:()=>null},teamId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},avoidTeamIdFilter:{type:Boolean,default:!1},areGamesCarouselType:{type:Boolean,default:!1},defaultGameId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},userTeamId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},sortCalendar:{type:Boolean,default:!0}},emits:["tournament-selected","change-teams","change-round","change-game-carousel","action"],setup(e,{emit:a}){const t=e;let n=null;const s=o.ref([]),i=o.ref({}),r=o.ref(0),l=o.ref(null),u=o.ref({}),c=o.ref(new Map),m=o.ref(!1),p=o.ref(null),f=o.ref(null),d=o.ref(null),h=o.computed(()=>t.isCup),g=o.computed(()=>t.isCupLegacy),b=o.computed(()=>({height:t.height,width:t.width})),S=o.computed(()=>t.games?se(t.games):c.value.get(u.value.key)||[]),_=o.ref(0),V=o.ref("1"),z=o.ref([]),H=o.ref([]),ee=o.computed(()=>H.value&&H.value.length?le(i.value):W(i.value));o.watch(()=>ee.value,R=>{_.value=z.value.findIndex(N=>N===R),V.value=R}),o.watch(()=>t.seasons,R=>{R&&R.length&&(m.value=!0,s.value=R.map(N=>N.id),ie(R,!0))},{immediate:!0,deep:!0});function W(R){const N=Object.entries(Object.entries(R).reduce((P,[L,F])=>(P[L]=[],F.forEach(Z=>{Z.games.forEach(ne=>{const ce=new Date(ne.date_time_utc).getTime()+66e5;P[L].push(ce)})}),P),{}));if(!N.length)return"1";const v=new Date().getTime(),I=N.reduce((P,[L,F])=>{let Z=null;return F.forEach(ne=>{const ce=ne-v;ce>=0&&(Z===null||ce<Z)&&(Z=ce)}),Z&&(P.shortestTime===null||Z<P.shortestTime)&&(P.round=L,P.shortestTime=Z),P},{round:"",shortestTime:null});return I.shortestTime!==null?I.round:N[N.length-1][0]}function le(R){let N=1;if(H.value.length){const v=H.value[0];for(const[I,P]of Object.entries(R))for(const L of P)if(L.games.find(F=>F.game_id===v.game_id))return I}return N}o.watch(()=>t.teamId,()=>{U()},{immediate:!0});async function $(R,N,v=""){let I=v;try{const P={};t.token&&(P.Authorization=t.token),I||(I="https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",R.forEach((Z,ne)=>{I+=`${ne===0?"":"&"}seasons=${Z}`}));const{data:{data:L,teams:F}}=await Cr.get(I,{headers:P});return{seasonsAndGames:L,seasonsAndTeams:F}}catch(P){if(N>0)return $(R,N-1,I);throw new Error(P)}}function ae(R){for(const N of R)if(!s.value.includes(N.season_id))return!0;return!1}async function ie(R,N){try{i.value={};let v=0;const{seasonsAndGames:I,seasonsAndTeams:P}=await $(R.map(F=>F.id),3);if(N&&ae(I))return;I.forEach(F=>{const{type:Z}=R.find(ne=>ne.id===F.season_id);F.type=Z,F.games.forEach(ne=>{ne.season_id=F.season_id}),Z===0&&(v=F.season_id)}),p.value={seasonsGames:I};const{teams:L}=P.find(F=>F.season_id===v);f.value=L,a("change-teams",L),U()}catch(v){throw new Error(v)}}function U(){if(!f.value)return;H.value=[];const R=p.value&&p.value.seasonsGames?p.value.seasonsGames.map(N=>{const v=N.games.reduce((I,P)=>{const L={...P};return L.dateTimeMillis=new Date(L.date_time_utc).valueOf(),L.home_team=f.value.find(F=>F.team_id===P.home_team),L.visiting_team=f.value.find(F=>F.team_id===P.visiting_team),t.teamId&&L.home_team.team_id!==t.teamId&&L.visiting_team.team_id!==t.teamId||(I[P.matchday_abbreviation]?I[P.matchday_abbreviation][P.game_status===3?"canceled":P.date]?I[P.matchday_abbreviation][P.game_status===3?"canceled":P.date].push(L):I[P.matchday_abbreviation][P.game_status===3?"canceled":P.date]=[L]:I[P.matchday_abbreviation]={[P.game_status===3?"canceled":P.date]:[L]},t.userTeamId&&L.game_status===4&&(L.home_team.team_id===t.userTeamId||L.visiting_team.team_id===t.userTeamId)&&H.value.push(L)),I},{});for(let[I,P]of Object.entries(v))v[I]=Object.entries(P).map(([L,F])=>({date:L,games:F.sort((Z,ne)=>Z.dateTimeMillis-ne.dateTimeMillis)})),v[I].sort((L,F)=>L.date<F.date?-1:L.date>F.date?1:0);return{type:N.type,weight:N.type===0?0:N.type===2?1:2,schedule:v}}):[];R.sort((N,v)=>N.weight-v.weight),i.value=R.reduce((N,v)=>{for(const[I,P]of Object.entries(v.schedule))if(v.type===0)if(h.value){const L=I.replace("M",""),F=L;g.value?N[Yy[L]||F]=P:N[Xy[I]||F]=P}else N[Number(I.replace("M","")).toString()]=P;else v.type===2?I.charAt(1)=="I"?N[`PI${Number(I.replace("PI",""))}`]=P:N[`R${Number(I.replace("PO",""))}`]=P:v.type===1&&(N[Zy[I]]=P);return N},{}),c.value=new Map,z.value=Array.from(Object.entries(i.value).reduce((N,[v,I],P)=>{const L=Number(v);let F="";Number.isNaN(L)?F=v:F=L<10?`0${L}`:v,N.set(v,{key:v,value:L,valueText:F,index:P});const Z=I.reduce((ce,Be)=>(Be.games.forEach(xe=>{xe.game_id===t.defaultGameId&&(d.value=v),xe.roundAbbreviation=Number.isNaN(L)?L:`J ${L}`}),ce=ce.concat(Be.games),ce),[]),ne=se(Z);return c.value.set(v,ne),N},new Map).values())}function se(R){const N=[];if(t.gamesPerMatchDay>0){let v=[];R.forEach((I,P)=>{v.push(I),(P+1)%t.gamesPerMatchDay===0&&(N.push([...v]),v=[])}),v.length&&N.push([...v])}else N.push(R);return N}async function de(R){try{const{data:N}=await Cr.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments");return N}catch(N){if(R>0)return de(R-1);throw new Error(N)}}function Ue(){if(window.ResizeObserver)n=new ResizeObserver(()=>{r.value=l.value.clientWidth}),n.observe(l.value);else throw new Error("Resize observer not supported!")}function He(R){u.value=R,a("change-round",R)}function $e(R){t.areGamesCarouselType&&a("change-game-carousel",R.selectedItem)}function Ae(R){a("action",R),Pe(R)}function Pe(R){const N="PLAY_RESUME",v="PLAY_GOALS",I=[607,608,12,55,54,35,14,52,15,53,466,477],P=[12,55,"35_r","54_r"],{game_id:L,season_id:F}=R.game;let Z={seasonId:F,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:1,gameIds:[L],playerIds:[],goalkeeperIds:[],categoryIds:[],teamId:0,matchResult:[],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:""},objectPlaySync:null};R.action===N?(Z.categoryIds=I,Z.advancedFilter.playListTitle="Resumen",a("openmedia",Z)):R.action===v&&(Z.categoryIds=P,Z.advancedFilter.playListTitle="Goles",a("openmedia",Z))}async function Ie(){try{if(!t.awaitForSeasons&&!t.games){const R=(await de(3)).find(I=>I._id===1),N=R.seasons[0],v=[{id:N.id,type:N.type}];R&&R.tournament&&a("tournament-selected",R.tournament),N.related_seasons&&N.related_seasons.length&&v.push(...N.related_seasons.map(I=>({id:I.id,type:I.type}))),await ie(v,!1)}}catch(R){throw new Error(R)}}return o.onMounted(()=>{Ue()}),Ie(),(R,N)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"calendarByGame",ref:l,class:"calendar-by-game",style:o.normalizeStyle(b.value)},[e.teamId&&!e.avoidTeamIdFilter?(o.openBlock(),o.createBlock(P1,{key:0,"full-tournament-schedule":i.value,"team-id":e.teamId,"is-landing-mode":!1,"row-height":e.rowHeight,"component-width":r.value,"games-pages":c.value,"is-pagination-visible":e.isPaginationVisible,"is-round-mode":e.isRoundMode,onAction:Ae},null,8,["full-tournament-schedule","team-id","row-height","component-width","games-pages","is-pagination-visible","is-round-mode"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[e.areRoundsVisible&&z.value?(o.openBlock(),o.createBlock(h0,{key:0,"match-days":z.value,"is-landing-mode":e.isLandingMode,height:"48px","items-to-show":e.itemsToShow,"items-to-scroll":e.itemsToScroll,"component-width":r.value,"default-match-day-key":d.value,"closest-match-day":e.sortCalendar?ee.value:"",onChangeMatchDay:He},null,8,["match-days","is-landing-mode","items-to-show","items-to-scroll","component-width","default-match-day-key","closest-match-day"])):o.createCommentVNode("",!0),o.createElementVNode("div",ub,[S.value?(o.openBlock(),o.createBlock(o.unref(Nr),{key:0,"is-pagination-visible":e.isPaginationVisible&&!e.areGamesCarouselType,items:e.areGamesCarouselType?S.value[0]:S.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:$e},{default:o.withCtx(({item:v})=>[e.areGamesCarouselType?(o.openBlock(),o.createBlock(mb,{key:0,game:v},null,8,["game"])):(o.openBlock(),o.createBlock(v1,{key:1,"games-per-page":v,"is-landing-mode":e.isLandingMode,"row-height":e.rowHeight,"component-width":r.value,"is-round-mode":e.isRoundMode,onAction:Ae},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"])):o.createCommentVNode("",!0)])],64))],4))}},[["__scopeId","data-v-94228d1d"]])},props:{season:{type:Object,default:()=>{}},seasons:{type:Array,default:()=>[]},componentWidth:{type:Number,default:768,validator(e){return e>0}}},data(){return{selectedOpt:"Mi posición",tokenFree:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{},methods:{onAction(e){this.$emit("action",e)},changeCategory(e){this.selectedOpt=e},onOpenMedia(e){this.$emit("openmedia",e)},onOpenProfile(e){this.$emit("onOpenProfile",e)}}},hb={class:"gsc-calendar-table"},gb={class:"gsc-switch-container"},fb={class:"gsc-app-component"};function yb(e,a,t,n,s,i){const r=o.resolveComponent("GscSwitchComponent"),l=o.resolveComponent("GSCGeneraltable"),u=o.resolveComponent("GSCCalendarByGame");return o.openBlock(),o.createElementBlock("div",hb,[o.createElementVNode("div",gb,[o.createVNode(r,{type:0,"font-family":"Poppins-Light",buttons:["Mi posición","Calendario"],height:"40px","selected-option":s.selectedOpt,"font-size":t.componentWidth>=768?"16px":"14px",width:"355px",onInput:i.changeCategory},null,8,["selected-option","font-size","onInput"])]),o.createElementVNode("div",fb,[s.selectedOpt=="Mi posición"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createVNode(l,{isPaginationVisible:!0,"current-season-id":t.season.id,type:1,"await-for-season":!0,onOpenmedia:i.onOpenMedia,onOpenTableProfile:i.onOpenProfile},null,8,["current-season-id","onOpenmedia","onOpenTableProfile"]),o.createElementVNode("div",{onClick:a[0]||(a[0]=c=>this.$router.push({name:"table"})),class:"gsc-app-component-view-all"}," Ver todo ")],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createVNode(u,{onAction:i.onAction,onOpenmedia:i.onOpenMedia,width:"100%",token:s.tokenFree,seasons:t.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"]),o.createElementVNode("div",{onClick:a[1]||(a[1]=c=>this.$router.push({name:"calendar"})),class:"gsc-app-component-view-all"}," Ver todo ")],64))])])}const bb=Ne(pb,[["render",yb],["__scopeId","data-v-6b8889ec"]]),wb={class:"match"},Sb={class:"match__header"},_b={key:0,class:"match__final-tag"},kb={key:1,class:"match__final-tag__no-border"},Cb={class:"match__tag"},Eb={class:"match__body"},Bb={class:"match__data"},xb={class:"match__acronym"},Nb=["src"],Tb={class:"match__score"},vb=["src"],Ob={class:"match__acronym"},Ab={class:"match__status"},Ao=Ne({__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,t)=>{var n,s,i;return o.openBlock(),o.createElementBlock("section",wb,[o.createElementVNode("div",Sb,[e.infoType=="postmatch"?(o.openBlock(),o.createElementBlock("div",_b,"FINAL ")):(o.openBlock(),o.createElementBlock("div",kb)),o.createElementVNode("div",Cb,o.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),1)]),o.createElementVNode("div",Eb,[o.createElementVNode("div",Bb,[o.createElementVNode("div",xb,o.toDisplayString((n=e.data)==null?void 0:n.home_team_acronym),1),o.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.home_team+".png",alt:"team-img"},null,8,Nb),o.createElementVNode("div",Tb,[e.infoType=="postmatch"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(e.data.score[0])+" - "+o.toDisplayString(e.data.score[1]),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString((s=e.data)==null?void 0:s.schedule.replace(":00","")),1)],64))]),o.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.visiting_team+".png",alt:"team-img"},null,8,vb),o.createElementVNode("div",Ob,o.toDisplayString((i=e.data)==null?void 0:i.visiting_team_acronym),1)]),o.createElementVNode("div",Ab,[e.infoType=="postmatch"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode("Finalizado"+o.toDisplayString(e.penalScore?` - Penales ${e.penalScore}`:""),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode("CST")],64))])]),o.createElementVNode("div",{class:"match__button",onClick:t[0]||(t[0]=r=>a.$emit("clickMatch"))},"Analizar partido →")])}}},[["__scopeId","data-v-c49fa538"]]),Vb=e=>(o.pushScopeId("data-v-8a51a354"),e=e(),o.popScopeId(),e),$b={class:"match"},Pb={class:"match__header"},Ib=Vb(()=>o.createElementVNode("div",{class:"match__final-tag"},"FINAL",-1)),Rb={class:"match__tag"},Lb={class:"match__body"},zb={class:"match__data"},Fb={class:"match__acronym"},Mb=["src"],Db={class:"match__score"},jb=["src"],Wb={class:"match__acronym"},Ub={class:"match__status"},Ir=Ne({__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,t)=>(o.openBlock(),o.createElementBlock("section",$b,[o.createElementVNode("div",Pb,[Ib,o.createElementVNode("div",Rb,o.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),1)]),o.createElementVNode("div",Lb,[o.createElementVNode("div",zb,[o.createElementVNode("div",Fb,o.toDisplayString(e.data.home_team.acronym),1),o.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,Mb),o.createElementVNode("div",Db,o.toDisplayString(e.data.score[0])+" - "+o.toDisplayString(e.data.score[1]),1),o.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,jb),o.createElementVNode("div",Wb,o.toDisplayString(e.data.visiting_team.acronym),1)]),o.createElementVNode("div",Ub,"Finalizado"+o.toDisplayString(e.penalScore?` - Penales ${e.penalScore}`:""),1)]),o.createElementVNode("div",{class:"match__button",onClick:t[0]||(t[0]=n=>a.$emit("clickMatch"))},"Analizar partido →")]))}},[["__scopeId","data-v-8a51a354"]]),Hb=e=>(o.pushScopeId("data-v-4c9c0afe"),e=e(),o.popScopeId(),e),Gb=["src"],qb=["src"],Jb={class:"coming-match__body"},Kb={class:"coming-match__data"},Zb=["src"],Xb={style:{"margin-top":"16px"}},Yb={class:"coming-match__time"},Qb=Hb(()=>o.createElementVNode("div",{class:"coming-match__cst"},"CST",-1)),e2=["src"],pn=Ne({__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,t)=>{var n,s,i,r,l,u,c,m,p,f,d,h,g;return o.openBlock(),o.createElementBlock("section",{class:o.normalizeClass(["coming-match",{small:e.small}])},[o.createElementVNode("img",{class:o.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/"+((s=e.data)==null?void 0:s.home_team)+".png",alt:"team-img"},null,10,Gb),o.createElementVNode("img",{class:o.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-150/"+((i=e.data)==null?void 0:i.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-150/"+((r=e.data)==null?void 0:r.visiting_team)+".png",alt:"team-img"},null,10,qb),o.createElementVNode("div",Jb,[o.createElementVNode("div",{class:o.normalizeClass(["coming-match__date",{small:e.small}])},o.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),3),o.createElementVNode("div",Kb,[o.createElementVNode("div",{class:o.normalizeClass(["coming-match__team",{small:e.small}])},[o.createElementVNode("img",{class:o.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/"+((u=e.data)==null?void 0:u.home_team)+".png",alt:"team-img"},null,10,Zb),o.createElementVNode("div",{class:o.normalizeClass(["coming-match__acronym",{small:e.small}])},o.toDisplayString((c=e.data)==null?void 0:c.home_team_name),3)],2),o.createElementVNode("div",Xb,[o.createElementVNode("div",Yb,[e.data.game_status==1?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString((m=e.data)==null?void 0:m.score[0])+" - "+o.toDisplayString((p=e.data)==null?void 0:p.score[1]),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString((f=e.data)==null?void 0:f.schedule.replace(":00","")),1)],64))]),Qb]),o.createElementVNode("div",{class:o.normalizeClass(["coming-match__team",{small:e.small}])},[o.createElementVNode("div",{class:o.normalizeClass(["coming-match__acronym",{small:e.small}])},o.toDisplayString((d=e.data)==null?void 0:d.visiting_team_name),3),o.createElementVNode("img",{class:o.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,e2)],2)])]),o.createElementVNode("div",{class:o.normalizeClass(["coming-match__button",{small:e.small}]),onClick:t[0]||(t[0]=b=>a.$emit("clickMatch"))},"Analizar partido →",2)],2)}}},[["__scopeId","data-v-4c9c0afe"]]),t2=e=>(o.pushScopeId("data-v-90640930"),e=e(),o.popScopeId(),e),o2=["src"],a2=["src"],n2={class:"coming-match__body"},i2={class:"coming-match__data"},s2=["src"],r2={style:{"margin-top":"16px"}},l2={class:"coming-match__time"},c2=t2(()=>o.createElementVNode("div",{class:"coming-match__cst"},"CST",-1)),d2=["src"],Rr=Ne({__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,t)=>{var n,s,i,r,l,u,c,m,p,f,d,h,g;return o.openBlock(),o.createElementBlock("section",{class:o.normalizeClass(["coming-match",{small:e.small}])},[o.createElementVNode("img",{class:o.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/"+((s=e.data)==null?void 0:s.home_team)+".png",alt:"team-img"},null,10,o2),o.createElementVNode("img",{class:o.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((i=e.data)==null?void 0:i.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((r=e.data)==null?void 0:r.visiting_team)+".png",alt:"team-img"},null,10,a2),o.createElementVNode("div",n2,[o.createElementVNode("div",{class:o.normalizeClass(["coming-match__date",{small:e.small}])},o.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),3),o.createElementVNode("div",i2,[o.createElementVNode("div",{class:o.normalizeClass(["coming-match__team",{small:e.small}])},[o.createElementVNode("img",{class:o.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/"+((u=e.data)==null?void 0:u.home_team)+".png",alt:"team-img"},null,10,s2),o.createElementVNode("div",{class:o.normalizeClass(["coming-match__acronym",{small:e.small}])},o.toDisplayString((c=e.data)==null?void 0:c.home_team_name),3)],2),o.createElementVNode("div",r2,[o.createElementVNode("div",l2,[e.data.game_status==1?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString((m=e.data)==null?void 0:m.score[0])+" - "+o.toDisplayString((p=e.data)==null?void 0:p.score[1]),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString((f=e.data)==null?void 0:f.schedule.replace(":00","")),1)],64))]),c2]),o.createElementVNode("div",{class:o.normalizeClass(["coming-match__team",{small:e.small}])},[o.createElementVNode("div",{class:o.normalizeClass(["coming-match__acronym",{small:e.small}])},o.toDisplayString((d=e.data)==null?void 0:d.visiting_team_name),3),o.createElementVNode("img",{class:o.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,d2)],2)])]),o.createElementVNode("div",{class:o.normalizeClass(["coming-match__button",{small:e.small}]),onClick:t[0]||(t[0]=b=>a.$emit("clickMatch"))},"Analizar partido →",2)],2)}}},[["__scopeId","data-v-90640930"]]);/**
|
|
29
|
+
* Vue 3 Carousel 0.3.1
|
|
30
|
+
* (c) 2023
|
|
31
|
+
* @license MIT
|
|
32
|
+
*/const ye={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"}},Lr={itemsToShow:{default:ye.itemsToShow,type:Number},itemsToScroll:{default:ye.itemsToScroll,type:Number},wrapAround:{default:ye.wrapAround,type:Boolean},throttle:{default:ye.throttle,type:Number},snapAlign:{default:ye.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:ye.transition,type:Number},breakpoints:{default:ye.breakpoints,type:Object},autoplay:{default:ye.autoplay,type:Number},pauseAutoplayOnHover:{default:ye.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:ye.mouseDrag,type:Boolean},touchDrag:{default:ye.touchDrag,type:Boolean},dir:{default:ye.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:ye.i18n,type:Object},settings:{default(){return{}},type:Object}};function m2({config:e,slidesCount:a}){const{snapAlign:t,wrapAround:n,itemsToShow:s=1}=e;if(n)return Math.max(a-1,0);let i;switch(t){case"start":i=a-s;break;case"end":i=a-1;break;case"center":case"center-odd":i=a-Math.ceil((s-.5)/2);break;case"center-even":i=a-Math.ceil(s/2);break;default:i=0;break}return Math.max(i,0)}function u2({config:e,slidesCount:a}){const{wrapAround:t,snapAlign:n,itemsToShow:s=1}=e;let i=0;if(t||s>a)return i;switch(n){case"start":i=0;break;case"end":i=s-1;break;case"center":case"center-odd":i=Math.floor((s-1)/2);break;case"center-even":i=Math.floor((s-2)/2);break;default:i=0;break}return i}function hn({val:e,max:a,min:t}){return a<t?e:Math.min(Math.max(e,t),a)}function p2({config:e,currentSlide:a,slidesCount:t}){const{snapAlign:n,wrapAround:s,itemsToShow:i=1}=e;let r=a;switch(n){case"center":case"center-odd":r-=(i-1)/2;break;case"center-even":r-=(i-2)/2;break;case"end":r-=i-1;break}return s?r:hn({val:r,max:t-i,min:0})}function zr(e){return e?e.reduce((a,t)=>{var n;return t.type===o.Fragment?[...a,...zr(t.children)]:((n=t.type)===null||n===void 0?void 0:n.name)==="CarouselSlide"?[...a,t]:a},[]):[]}function gn({val:e,max:a,min:t=0}){return e>a?gn({val:e-(a+1),max:a,min:t}):e<t?gn({val:e+(a+1),max:a,min:t}):e}function h2(e,a){let t;return a?function(...n){const s=this;t||(e.apply(s,n),t=!0,setTimeout(()=>t=!1,a))}:e}function g2(e,a){let t;return function(...n){t&&clearTimeout(t),t=setTimeout(()=>{e(...n),t=null},a)}}function f2(e="",a={}){return Object.entries(a).reduce((t,[n,s])=>t.replace(`{${n}}`,String(s)),e)}var y2=o.defineComponent({name:"ARIA",setup(){const e=o.inject("config",o.reactive(Object.assign({},ye))),a=o.inject("currentSlide",o.ref(0)),t=o.inject("slidesCount",o.ref(0));return()=>o.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},f2(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:t.value}))}}),b2=o.defineComponent({name:"Carousel",props:Lr,setup(e,{slots:a,emit:t,expose:n}){var s;const i=o.ref(null),r=o.ref([]),l=o.ref(0),u=o.ref(0),c=o.reactive(Object.assign({},ye));let m=Object.assign({},ye),p;const f=o.ref((s=e.modelValue)!==null&&s!==void 0?s:0),d=o.ref(0),h=o.ref(0),g=o.ref(0),b=o.ref(0);let S,_;o.provide("config",c),o.provide("slidesCount",u),o.provide("currentSlide",f),o.provide("maxSlide",g),o.provide("minSlide",b),o.provide("slideWidth",l);function V(){p=Object.assign({},e.breakpoints),m=Object.assign(Object.assign(Object.assign({},m),e),{i18n:Object.assign(Object.assign({},m.i18n),e.i18n),breakpoints:void 0}),H(m)}function z(){if(!p||!Object.keys(p).length)return;const w=Object.keys(p).map(x=>Number(x)).sort((x,D)=>+D-+x);let T=Object.assign({},m);w.some(x=>{const D=window.matchMedia(`(min-width: ${x}px)`).matches;return D&&(T=Object.assign(Object.assign({},T),p[x])),D}),H(T)}function H(w){Object.entries(w).forEach(([T,x])=>c[T]=x)}const ee=g2(()=>{z(),W()},16);function W(){if(!i.value)return;const w=i.value.getBoundingClientRect();l.value=w.width/c.itemsToShow}function le(){u.value<=0||(h.value=Math.ceil((u.value-1)/2),g.value=m2({config:c,slidesCount:u.value}),b.value=u2({config:c,slidesCount:u.value}),c.wrapAround||(f.value=hn({val:f.value,max:g.value,min:b.value})))}o.onMounted(()=>{o.nextTick(()=>W()),setTimeout(()=>W(),1e3),z(),Ie(),window.addEventListener("resize",ee,{passive:!0}),t("init")}),o.onUnmounted(()=>{_&&clearTimeout(_),S&&clearInterval(S),window.removeEventListener("resize",ee,{passive:!0})});let $=!1;const ae={x:0,y:0},ie={x:0,y:0},U=o.reactive({x:0,y:0}),se=o.ref(!1),de=o.ref(!1),Ue=()=>{se.value=!0},He=()=>{se.value=!1};function $e(w){["INPUT","TEXTAREA","SELECT"].includes(w.target.tagName)||($=w.type==="touchstart",$||w.preventDefault(),!(!$&&w.button!==0||N.value)&&(ae.x=$?w.touches[0].clientX:w.clientX,ae.y=$?w.touches[0].clientY:w.clientY,document.addEventListener($?"touchmove":"mousemove",Ae,!0),document.addEventListener($?"touchend":"mouseup",Pe,!0)))}const Ae=h2(w=>{de.value=!0,ie.x=$?w.touches[0].clientX:w.clientX,ie.y=$?w.touches[0].clientY:w.clientY;const T=ie.x-ae.x,x=ie.y-ae.y;U.y=x,U.x=T},c.throttle);function Pe(){const w=c.dir==="rtl"?-1:1,T=Math.sign(U.x)*.4,x=Math.round(U.x/l.value+T)*w;if(x&&!$){const D=we=>{we.stopPropagation(),window.removeEventListener("click",D,!0)};window.addEventListener("click",D,!0)}v(f.value-x),U.x=0,U.y=0,de.value=!1,document.removeEventListener($?"touchmove":"mousemove",Ae,!0),document.removeEventListener($?"touchend":"mouseup",Pe,!0)}function Ie(){!c.autoplay||c.autoplay<=0||(S=setInterval(()=>{c.pauseAutoplayOnHover&&se.value||I()},c.autoplay))}function R(){S&&(clearInterval(S),S=null),Ie()}const N=o.ref(!1);function v(w){const T=c.wrapAround?w:hn({val:w,max:g.value,min:b.value});f.value===T||N.value||(t("slide-start",{slidingToIndex:w,currentSlideIndex:f.value,prevSlideIndex:d.value,slidesCount:u.value}),N.value=!0,d.value=f.value,f.value=T,_=setTimeout(()=>{if(c.wrapAround){const x=gn({val:T,max:g.value,min:0});x!==f.value&&(f.value=x,t("loop",{currentSlideIndex:f.value,slidingToIndex:w}))}t("update:modelValue",f.value),t("slide-end",{currentSlideIndex:f.value,prevSlideIndex:d.value,slidesCount:u.value}),N.value=!1,R()},c.transition))}function I(){v(f.value+c.itemsToScroll)}function P(){v(f.value-c.itemsToScroll)}const L={slideTo:v,next:I,prev:P};o.provide("nav",L),o.provide("isSliding",N);const F=o.computed(()=>p2({config:c,currentSlide:f.value,slidesCount:u.value}));o.provide("slidesToScroll",F);const Z=o.computed(()=>{const w=c.dir==="rtl"?-1:1,T=F.value*l.value*w;return{transform:`translateX(${U.x-T}px)`,transition:`${N.value?c.transition:0}ms`,margin:c.wrapAround?`0 -${u.value*l.value}px`:"",width:"100%"}});function ne(){V(),z(),le(),W(),R()}Object.keys(Lr).forEach(w=>{["modelValue"].includes(w)||o.watch(()=>e[w],ne)}),o.watch(()=>e.modelValue,w=>{w!==f.value&&v(Number(w))}),o.watch(u,le),t("before-init"),V();const ce={config:c,slidesCount:u,slideWidth:l,next:I,prev:P,slideTo:v,currentSlide:f,maxSlide:g,minSlide:b,middleSlide:h};n({updateBreakpointsConfigs:z,updateSlidesData:le,updateSlideWidth:W,initDefaultConfigs:V,restartCarousel:ne,slideTo:v,next:I,prev:P,nav:L,data:ce});const Be=a.default||a.slides,xe=a.addons,Re=o.reactive(ce);return()=>{const w=zr(Be==null?void 0:Be(Re)),T=(xe==null?void 0:xe(Re))||[];w.forEach((Se,_e)=>Se.props.index=_e);let x=w;if(c.wrapAround){const Se=w.map((ke,te)=>o.cloneVNode(ke,{index:-w.length+te,isClone:!0,key:`clone-before-${te}`})),_e=w.map((ke,te)=>o.cloneVNode(ke,{index:w.length+te,isClone:!0,key:`clone-after-${te}`}));x=[...Se,...w,..._e]}r.value=w,u.value=Math.max(w.length,1);const D=o.h("ol",{class:"carousel__track",style:Z.value,onMousedownCapture:c.mouseDrag?$e:null,onTouchstartPassiveCapture:c.touchDrag?$e:null},x),we=o.h("div",{class:"carousel__viewport"},D);return o.h("section",{ref:i,class:{carousel:!0,"is-sliding":N.value,"is-dragging":de.value,"is-hover":se.value,"carousel--rtl":c.dir==="rtl"},dir:c.dir,"aria-label":c.i18n.ariaGallery,tabindex:"0",onMouseenter:Ue,onMouseleave:He},[we,T,o.h(y2)])}}}),fn;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(fn||(fn={}));const w2={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 S2(e){return e in fn}const yn=e=>{const a=o.inject("config",o.reactive(Object.assign({},ye))),t=String(e.name),n=`icon${t.charAt(0).toUpperCase()+t.slice(1)}`;if(!t||typeof t!="string"||!S2(t))return;const s=w2[t],i=o.h("path",{d:s}),r=a.i18n[n]||e.title||t,l=o.h("title",r);return o.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":r},[l,i])};yn.props={name:String,title:String};const _2=(e,{slots:a,attrs:t})=>{const{next:n,prev:s}=a||{},i=o.inject("config",o.reactive(Object.assign({},ye))),r=o.inject("maxSlide",o.ref(1)),l=o.inject("minSlide",o.ref(1)),u=o.inject("currentSlide",o.ref(1)),c=o.inject("nav",{}),{dir:m,wrapAround:p,i18n:f}=i,d=m==="rtl",h=o.h("button",{type:"button",class:["carousel__prev",!p&&u.value<=l.value&&"carousel__prev--disabled",t==null?void 0:t.class],"aria-label":f.ariaPreviousSlide,onClick:c.prev},(s==null?void 0:s())||o.h(yn,{name:d?"arrowRight":"arrowLeft"})),g=o.h("button",{type:"button",class:["carousel__next",!p&&u.value>=r.value&&"carousel__next--disabled",t==null?void 0:t.class],"aria-label":f.ariaNextSlide,onClick:c.next},(n==null?void 0:n())||o.h(yn,{name:d?"arrowLeft":"arrowRight"}));return[h,g]};var k2=o.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const t=o.inject("config",o.reactive(Object.assign({},ye))),n=o.inject("currentSlide",o.ref(0)),s=o.inject("slidesToScroll",o.ref(0)),i=o.inject("isSliding",o.ref(!1)),r=()=>e.index===n.value,l=()=>e.index===n.value-1,u=()=>e.index===n.value+1,c=()=>{const m=Math.floor(s.value),p=Math.ceil(s.value+t.itemsToShow-1);return e.index>=m&&e.index<=p};return()=>{var m;return o.h("li",{style:{width:`${100/t.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":c(),"carousel__slide--active":r(),"carousel__slide--prev":l(),"carousel__slide--next":u(),"carousel__slide--sliding":i.value},"aria-hidden":!c()},(m=a.default)===null||m===void 0?void 0:m.call(a))}}});const C2=Ne({__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 t=e,n=o.computed(()=>{const l={"background-color":t.backgroundColor,height:t.height};return t.matchDay.key===t.matchDaySelected.key&&(l["border-bottom"]=`solid 1px ${t.bottomLineColor}`,l["background-color"]=t.selectedMatchDayBackgroundColor),t.isLandingMode||(l["border-right"]="solid 1px rgba(255, 255, 255, 0.1)"),l}),s=o.computed(()=>({color:t.numberColor,"font-family":t.numberFontFamily,"font-size":t.numberFontSize})),i=o.computed(()=>({color:t.textColor,"font-family":t.textFontFamily,"font-size":t.textFontSize}));function r(l){a("click-match-day",l)}return(l,u)=>(o.openBlock(),o.createElementBlock("div",{class:"match-day",style:o.normalizeStyle({...n.value}),onClick:u[0]||(u[0]=c=>r(e.matchDay))},[o.createElementVNode("div",{class:"match-day__value",style:o.normalizeStyle(s.value)},o.toDisplayString(e.matchDay.valueText),5),Number.isNaN(e.matchDay.value)?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:"match-day__text",style:o.normalizeStyle([e.isLandingMode?"margin-top:3px":"margin-top:4px",i.value])},o.toDisplayString(e.isLandingMode||e.componentWidth<=425?"JOR":"JORNADA"),5))],4))}},[["__scopeId","data-v-89459353"]]),Fr=Ne({__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"},disableMatchdays:{type:Boolean,default:!1},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 t=e;o.useCssVars(c=>({"6dc1777e":i.value,"6dc0603e":r.value}));const n=o.ref(null),s=o.computed(()=>({itemsToShow:t.itemsToShow,itemsToScroll:t.itemsToScroll,snapAlign:"start"})),i=o.computed(()=>n.value.data.currentSlide.value==0?"none":"inline"),r=o.computed(()=>n.value.data.currentSlide.value==n.value.data.maxSlide.value?"none":"inline"),l=o.ref({});o.watch(()=>t.closestMatchDay,c=>{if(c){const m=t.matchDays.find(p=>p.key===c);u(m||t.matchDays[0],!0)}}),o.watch(()=>t.matchDays,c=>{if(!t.closestMatchDay&&c&&c.length){const m=c.find(p=>p.key===t.defaultMatchDayKey);l.value=m||c[0],a("change-match-day",l.value)}},{immediate:!0});function u(c,m=!1){m&&n.value.slideTo(c.index),t.disableMatchdays?c.avaible==!0&&(l.value=c,a("change-match-day",l.value)):(l.value=c,a("change-match-day",l.value))}return(c,m)=>(o.openBlock(),o.createElementBlock("div",{class:"match-day-picker",style:o.normalizeStyle(e.isLandingMode?"border-top-left-radius: 9px; border-top-right-radius: 9px;":"margin-bottom:12px")},[o.createVNode(o.unref(b2),o.mergeProps(s.value,{ref_key:"matchDayPickerCarousel",ref:n}),{addons:o.withCtx(()=>[o.createVNode(o.unref(_2))]),default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.matchDays,p=>(o.openBlock(),o.createBlock(o.unref(k2),{key:p.key},{default:o.withCtx(()=>[o.createVNode(C2,o.mergeProps({style:e.disableMatchdays&&!p.avaible?"opacity: 0.6 !important; cursor: default !important;":""},t,{"match-day":p,"match-day-selected":l.value,"is-landing-mode":e.isLandingMode,"component-width":e.componentWidth,onClickMatchDay:u}),null,16,["style","match-day","match-day-selected","is-landing-mode","component-width"])]),_:2},1024))),128))]),_:1},16)],4))}},[["__scopeId","data-v-39d33c84"]]),E2=e=>(o.pushScopeId("data-v-ff4a2f0d"),e=e(),o.popScopeId(),e),B2={class:"quadrant-matches"},x2={class:"quadrant-matches__header"},N2={class:"quadrant-matches__title"},T2=E2(()=>o.createElementVNode("span",null," →",-1)),v2={key:0,class:"quadrant-matches__body"},O2={class:"quadrant-matches__body",style:{"column-gap":"16px"}},A2={class:"quadrant-matches__body matches"},V2={key:0,class:"quadrant-matches__body"},$2={class:"quadrant-matches__body",style:{"column-gap":"16px"}},P2=Ne({__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}},tournamentScheduleKeys:{type:Array,default:()=>[]},defaultMatchDayKey:{type:String,default:""}},emits:["change-match-day","change-is-league-selected"],setup(e,{emit:a}){const t=e,n=o.ref(!1);o.computed(()=>t.comingMatches[0]||{}),o.computed(()=>t.previousMatches[0]||{});const s=o.toRef(t,"componentWidth"),i=o.computed(()=>s.value<768);function r(l){a("change-match-day",l)}return(l,u)=>(o.openBlock(),o.createElementBlock("section",B2,[o.createElementVNode("div",x2,[o.createElementVNode("h2",N2,o.toDisplayString(e.isFull?"Partidos":"Mis partidos"),1),o.createCommentVNode("",!0),o.createElementVNode("button",{class:"quadrant-matches__button",onClick:u[0]||(u[0]=c=>l.$emit("clickCalendar"))},[o.createElementVNode("span",null,o.toDisplayString(e.isFull?"Calendario completo":"Mi calendario completo"),1),T2])]),(e.isFull||n.value)&&e.tournamentScheduleKeys&&e.tournamentScheduleKeys.length?(o.openBlock(),o.createBlock(Fr,{key:0,height:"48px","match-days":e.tournamentScheduleKeys,"is-landing-mode":!1,"items-to-show":9,"items-to-scroll":9,"component-width":"100%","default-match-day-key":e.defaultMatchDayKey,onChangeMatchDay:r},null,8,["match-days","default-match-day-key"])):o.createCommentVNode("",!0),!e.isFull&&!n.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[i.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[Object.keys(e.data).length>0?(o.openBlock(),o.createBlock(o.unref(Vt),{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:o.withCtx(()=>[o.createElementVNode("div",O2,[o.createVNode(pn,{small:"",data:e.data.data.prematch,onClickMatch:u[4]||(u[4]=c=>l.$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?(o.openBlock(),o.createBlock(Ao,{key:0,data:e.data.data.postmatch,onClickMatch:u[5]||(u[5]=c=>l.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"])):(o.openBlock(),o.createBlock(Ao,{key:1,"info-type":"prematch",data:e.data.data.postmatch,onClickMatch:u[6]||(u[6]=c=>l.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"]))])]),_:1})):o.createCommentVNode("",!0)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[Object.keys(e.data).length>0?(o.openBlock(),o.createElementBlock("div",v2,[o.createVNode(pn,{data:e.data.data.prematch,onClickMatch:u[1]||(u[1]=c=>l.$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?(o.openBlock(),o.createBlock(Ao,{key:0,data:e.data.data.postmatch,onClickMatch:u[2]||(u[2]=c=>l.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"])):(o.openBlock(),o.createBlock(Ao,{key:1,"info-type":"prematch",data:e.data.data.postmatch,onClickMatch:u[3]||(u[3]=c=>l.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"]))])):o.createCommentVNode("",!0)],64))],64)):e.data?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[e.data.length>1?(o.openBlock(),o.createBlock(o.unref(Vt),{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:o.withCtx(()=>[o.createElementVNode("div",A2,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.data,(c,m)=>(o.openBlock(),o.createBlock(pn,{key:m,data:c,small:"",onClickMatch:p=>l.$emit("clickMatch",c)},null,8,["data","onClickMatch"]))),128))])]),_:1})):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[i.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[Object.keys(e.data).length>0?(o.openBlock(),o.createBlock(o.unref(Vt),{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:o.withCtx(()=>[o.createElementVNode("div",$2,[e.data[0].game_status==4?(o.openBlock(),o.createBlock(Rr,{key:0,data:e.data[0],onClickMatch:u[9]||(u[9]=c=>l.$emit("clickMatch",e.data[0]))},null,8,["data"])):o.createCommentVNode("",!0),e.data[0].game_status!=4?(o.openBlock(),o.createBlock(Ir,{key:1,data:e.data[0],onClickMatch:u[10]||(u[10]=c=>l.$emit("clickMatch",e.data[0]))},null,8,["data"])):o.createCommentVNode("",!0)])]),_:1})):o.createCommentVNode("",!0)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[Object.keys(e.data).length>0?(o.openBlock(),o.createElementBlock("div",V2,[e.data[0].game_status==4?(o.openBlock(),o.createBlock(Rr,{key:0,data:e.data[0],onClickMatch:u[7]||(u[7]=c=>l.$emit("clickMatch",e.data[0]))},null,8,["data"])):o.createCommentVNode("",!0),e.data[0].game_status!=4?(o.openBlock(),o.createBlock(Ir,{key:1,data:e.data[0],onClickMatch:u[8]||(u[8]=c=>l.$emit("clickMatch",e.data[0]))},null,8,["data"])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)],64))],64))],64)):o.createCommentVNode("",!0)]))}},[["__scopeId","data-v-ff4a2f0d"]]),I2={__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:()=>{}},tournamentScheduleKeys:{type:Array,default:()=>[]},defaultMatchDayKey:{type:String,default:""}},setup(e){return(a,t)=>(o.openBlock(),o.createElementBlock("main",null,[o.createVNode(P2,{data:e.data,"component-width":e.componentWidth,"is-full":e.isFull,"has-team":!e.isplayer,"tournament-schedule-keys":e.tournamentScheduleKeys,"default-match-day-key":e.defaultMatchDayKey,onClickCalendar:t[0]||(t[0]=n=>a.$emit("clickCalendar")),onClickMatch:t[1]||(t[1]=n=>a.$emit("clickMatch",n)),onChangeMatchDay:t[2]||(t[2]=n=>a.$emit("change-match-day",n)),onChangeIsLeagueSelected:t[3]||(t[3]=n=>a.$emit("change-is-league-selected",n))},null,8,["data","component-width","is-full","has-team","tournament-schedule-keys","default-match-day-key"])]))}},R2="_toniKroos_1mxz1_35",L2="_centralMidfielder_1mxz1_55",z2="_icnPlayIcon_1mxz1_75",F2="_verVideos_1mxz1_89",M2="_btnVideosOptions_1mxz1_109",D2="_btnVideosOptionsTeams_1mxz1_139",j2="_info_1mxz1_179",W2="_goalUnlock_1mxz1_203",U2="_teamsAmerica_1mxz1_229",H2="_imageIcon_1mxz1_249",G2="_imageIconTeam_1mxz1_271",q2="_playerTops_1mxz1_295",J2={toniKroos:R2,centralMidfielder:L2,icnPlayIcon:z2,verVideos:F2,btnVideosOptions:M2,btnVideosOptionsTeams:D2,info:j2,goalUnlock:W2,teamsAmerica:U2,imageIcon:H2,imageIconTeam:G2,playerTops:q2},K2=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},Z2={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))}}},X2=["src"],Y2=["src"],Q2=["src"];function ew(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("section",{class:o.normalizeClass(e.$style.playerTops),style:o.normalizeStyle(i.customMosaic),id:"player-mosaico",onClick:a[1]||(a[1]=r=>i.onPlayerTopsClick(t.data.player_id))},[o.createElementVNode("div",{class:o.normalizeClass(e.$style.info)},[o.createElementVNode("h3",{class:o.normalizeClass(e.$style.toniKroos),style:o.normalizeStyle(i.customNamePlayer)},o.toDisplayString(t.data.player_name),7),t.showPositionPlayer?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(e.$style.centralMidfielder),style:o.normalizeStyle(i.customNamePosition)},o.toDisplayString(t.data.player_position),7)):o.createCommentVNode("",!0),o.createElementVNode("button",{class:o.normalizeClass(this.isPlayer?e.$style.btnVideosOptions:e.$style.btnVideosOptionsTeams),style:o.normalizeStyle(i.customTotalCont),id:"button-actions",onClick:a[0]||(a[0]=r=>i.onButtonVideos(t.data))},[t.showIconVideo?(o.openBlock(),o.createElementBlock("img",{key:0,class:o.normalizeClass(e.$style.icnPlayIcon),src:t.iconPlay},null,10,X2)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass(e.$style.verVideos),style:o.normalizeStyle(i.customTotal)},o.toDisplayString(t.data.player_stat)+" "+o.toDisplayString(t.data.category),7)],6)],2),o.createElementVNode("b",{style:o.normalizeStyle(i.customNumberTop),class:o.normalizeClass(e.$style.goalUnlock)},o.toDisplayString(t.data.top),7),t.showShieldTeam?(o.openBlock(),o.createElementBlock("img",{key:0,class:o.normalizeClass(e.$style.teamsAmerica),style:o.normalizeStyle(i.customShieldTeam),loading:"lazy",src:t.data.team_logo},null,14,Y2)):o.createCommentVNode("",!0),o.createElementVNode("img",{style:o.normalizeStyle(i.customPhotoPlayerOrTeam),class:o.normalizeClass(this.isPlayer?e.$style.imageIcon:e.$style.imageIconTeam),loading:"lazy",src:t.data.player_photo},null,14,Q2)],6)}const tw={$style:J2},ow=K2(Z2,[["render",ew],["__cssModules",tw]]),aw=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},bn={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))}}},Mr=()=>{o.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}))},Dr=bn.setup;bn.setup=Dr?(e,a)=>(Mr(),Dr(e,a)):Mr;const nw=e=>(o.pushScopeId("data-v-fb269a1e"),e=e(),o.popScopeId(),e),iw=["src"],sw={key:1,class:"text"},rw=["src"],lw={class:"stats"},cw=nw(()=>o.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),dw={class:"numstats"},mw={class:"leyend"};function uw(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",null,[t.type==0?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["button",s.status&&t.typeOnOff&&"button-active"]),style:o.normalizeStyle([i.customStyle,s.status&&t.typeOnOff&&i.customActive]),onClick:a[0]||(a[0]=(...r)=>i.btnClick&&i.btnClick(...r))},[t.icon&&t.iconPosition.toLowerCase()==="left"?(o.openBlock(),o.createElementBlock("img",{key:0,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,iw)):o.createCommentVNode("",!0),t.textValue?(o.openBlock(),o.createElementBlock("div",sw,o.toDisplayString(t.textValue),1)):o.createCommentVNode("",!0),t.icon&&t.iconPosition.toLowerCase()==="right"?(o.openBlock(),o.createElementBlock("img",{key:2,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,rw)):o.createCommentVNode("",!0)],6)):o.createCommentVNode("",!0),t.type==1?(o.openBlock(),o.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...r)=>i.btnClick&&i.btnClick(...r))},[o.createElementVNode("div",lw,[cw,o.createElementVNode("div",dw,o.toDisplayString(t.textStat),1)]),o.createElementVNode("div",mw,o.toDisplayString(t.textCategory),1)])):o.createCommentVNode("",!0)])}const jr=aw(bn,[["render",uw],["__scopeId","data-v-fb269a1e"]]);function pw(e){const a=o.ref({width:0,height:0});function t(){const n=e.value.getBoundingClientRect();a.value.width=n.width,a.value.height=n.height}return o.onMounted(()=>{t(),window.addEventListener("resize",t)}),o.onUnmounted(()=>{window.removeEventListener("resize",t)}),{elementSize:a}}const wn={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)}}},Wr=()=>{o.useCssVars(e=>({"2bf57034":e.backgroundColor,b8f32872:e.widthCircle,23023166:e.heightCircle}))},Ur=wn.setup;wn.setup=Ur?(e,a)=>(Wr(),Ur(e,a)):Wr;const hw={key:0,class:"text-left"},gw=["width","src"],fw=["checked"],yw=["width","src"],bw={key:3,class:"text-right"};function ww(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",{class:"gsc-switch-radio",style:o.normalizeStyle(i.customText)},[t.textOptionLeft!=""&&!t.hiddenLabels?(o.openBlock(),o.createElementBlock("span",hw,o.toDisplayString(t.textOptionLeft),1)):o.createCommentVNode("",!0),t.iconA!=""?(o.openBlock(),o.createElementBlock("img",{key:1,width:t.widthIcons,src:t.iconA},null,8,gw)):o.createCommentVNode("",!0),o.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:a[0]||(a[0]=(...r)=>i.handleSwitchChange&&i.handleSwitchChange(...r)),checked:s.OptionDefault},null,40,fw),o.createElementVNode("label",{for:"toggle-btn",style:o.normalizeStyle([i.customStyle,{"--circle-color":t.circleColorSwitch}])},null,4),t.iconB!=""?(o.openBlock(),o.createElementBlock("img",{key:2,width:t.widthIcons,src:t.iconB},null,8,yw)):o.createCommentVNode("",!0),t.textOptionRight!=""&&!t.hiddenLabels?(o.openBlock(),o.createElementBlock("span",bw,o.toDisplayString(t.textOptionRight),1)):o.createCommentVNode("",!0)],4)}const Sn={components:{GSCSlider:Vt,GSCMosaicthebest:ow,GscSwitchComponent:Ua,GSCButton:jr,GSCRadioToggle:Ne(wn,[["render",ww],["__scopeId","data-v-c2ae0cf9"]])},setup(){const e=o.ref("myDivRef"),{elementSize:a}=pw(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 t=this.categorySelected!==null?this.categorySelected:1;this.showSwitch||(this.filterSelected=1),await this.getCategoryStats(e,this.filterSelected,t)}},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 t="";if(a[1]&&(t=`${a[1].trim()[0]}.`,a[0])){const s=(n=a[0])==null?void 0:n.trim().split(" ");for(let i of s)if(t=`${t} ${i.trim()}`,i.trim().length>3)break}return t},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),t=2,n=3;let s=[],i=0,r=0;this.isTeam?(i=e.player_id,r=n):(s=[e.player_id],r=t);const l={seasonId:this.season,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:r,gameIds:null,playerIds:s,goalkeeperIds:[],categoryIds:a,teamId:i,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(t=>t.name===e);this.categorySelected=a.id},async getCategoryStats(e,a,t=0){try{let i={},r={},l=[];const u=re.create({headers:{Authorization:`${this.token}`}});var n={};if(a==0&&(n=await u.get(this.url+this.season+"/teams/"+this.teamId)),a==1&&(n=await u.get(this.url+e)),n&&n.data){n.data.teams.map(c=>{i[c[0]]={},i[c[0]].id=c[0],i[c[0]].name=c[1],i[c[0]].img=c[3],i[c[0]].abrv=c[2],i[c[0]].logo=c[3]}),n.data.players.map(c=>{r[c[0]]={},r[c[0]].id=c[0],r[c[0]].name=c[1],r[c[0]].img=c[2],r[c[0]].position=c[6],r[c[0]].logo="https://az755631.vo.msecnd.net/teams-80/"+c[10][0].team_id+".png"});var s=1;n.data.tops.map(c=>{l[c.category?c.category:s]={};var m={},p={};c.teams.map(h=>{m[h[0]]={},m[h[0]].total=h[1],m[h[0]].id=i[h[0]].id,m[h[0]].name=i[h[0]].name,m[h[0]].img="https://az755631.vo.msecnd.net/teams-150/"+h[0]+".png",m[h[0]].logo="https://az755631.vo.msecnd.net/teams-80/"+h[0]+".png"}),c.players.map(h=>{p[h[0]]={},p[h[0]].total=h[1],p[h[0]].name=r[h[0]].name,p[h[0]].img=r[h[0]].img.replace("players-profile/","players-profile/"),p[h[0]].id=r[h[0]].id,p[h[0]].position=this.positions[r[h[0]].position-1].name,p[h[0]].logo=r[h[0]].logo});var f=[],d=[];for(const h in m)f.push(m[h]);for(const h in p)d.push(p[h]);f.sort((h,g)=>h.total<g.total?1:-1),d.sort((h,g)=>h.total<g.total?1:-1),l[c.category?c.category:s].top__players=d,l[c.category?c.category:s].top__teams=f,s++})}t===0?this.categorySelected=1:this.categorySelected=t,this.categoryData=l}catch(i){return Promise.reject(i)}}}},Hr=()=>{o.useCssVars(e=>({"7a5b0a28":e.backgroundColor,"292ba61c":e.fontFamily,"510c78b9":e.fontSize,"60b8a4aa":e.fontColor,d5d221be:e.marginMosaic}))},Gr=Sn.setup;Sn.setup=Gr?(e,a)=>(Hr(),Gr(e,a)):Hr;const Sw=e=>(o.pushScopeId("data-v-a5fb54bf"),e=e(),o.popScopeId(),e),_w={class:"gsc-best",ref:"myDivRef"},kw={class:"gsc-best__line-bar-tools"},Cw={key:0,class:"gsc-best__line-bar-tools__title"},Ew=Sw(()=>o.createElementVNode("span",null,"Los mejores ",-1)),Bw={key:1,class:"gsc-best__line-bar-tools__titlefull"},xw={class:"unit-items"},Nw={key:2,class:"gsc-best__line-bar-tools__tools"},Tw={key:0,class:"gsc-best__line-bar-tools__tools__tabs"},vw={class:"gsc-best__line-bar-tools__tools__btn"},Ow={key:0,class:"gsc-best__line-bar-tools-movil"},Aw={class:"gsc-best__line-bar-tools-movil__tabs"},Vw={class:"gsc-best__categories"},$w={class:"gsc-best__players"};function Pw(e,a,t,n,s,i){const r=o.resolveComponent("GSCRadioToggle"),l=o.resolveComponent("GSCButton"),u=o.resolveComponent("GscSwitchComponent"),c=o.resolveComponent("GSCMosaicthebest"),m=o.resolveComponent("GSCSlider");return o.openBlock(),o.createElementBlock("div",_w,[o.createElementVNode("div",kw,[n.elementSize.width>900?(o.openBlock(),o.createElementBlock("div",Cw,[Ew,e.optionSelected!=="Equipos"&&t.showSwitch?(o.openBlock(),o.createBlock(r,{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/"+t.teamId+".png",iconB:"https://az755631.vo.msecnd.net/todoelfut/1.png",textOptionLeft:"Mi equipo",textOptionRight:"Liga MX",onChange:i.ChangeRadio},null,8,["iconA","onChange"])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),n.elementSize.width<=900?(o.openBlock(),o.createElementBlock("div",Bw,[o.createElementVNode("span",{style:o.normalizeStyle(n.elementSize.width<=380?"font-size: 15px; margin-top:0px; width:60px;":"")},"Los mejores ",4),o.createElementVNode("span",xw,[e.optionSelected!=="Equipos"&&t.showSwitch?(o.openBlock(),o.createBlock(r,{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/"+t.teamId+".png",iconB:"https://az755631.vo.msecnd.net/todoelfut/1.png",textOptionLeft:"Mi equipo",textOptionRight:"Liga MX",onChange:i.ChangeRadio},null,8,["iconA","onChange"])):o.createCommentVNode("",!0),o.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:i.clickMore},null,8,["font-color","font-size","onClick"])])])):o.createCommentVNode("",!0),n.elementSize.width>900?(o.openBlock(),o.createElementBlock("div",Nw,[n.elementSize.width>900?(o.openBlock(),o.createElementBlock("div",Tw,[o.createVNode(u,{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:i.changeType,arrowsScrollHide:!1,arrowsPosition:"absolute"},null,8,["selected-option","onInput"])])):o.createCommentVNode("",!0),o.createElementVNode("div",vw,[o.createVNode(l,{width:"75px","text-value":"Ver más","font-size":"14px","text-decoration":"underline",onClick:i.clickMore},null,8,["onClick"]),o.createVNode(l,{width:"10px","text-value":"→","font-size":"14px","font-color":"#cbee6b",onClick:i.clickMore},null,8,["onClick"])])])):o.createCommentVNode("",!0)]),n.elementSize.width<=900?(o.openBlock(),o.createElementBlock("div",Ow,[o.createElementVNode("div",Aw,[o.createVNode(u,{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:i.changeType},null,8,["selected-option","onInput"])])])):o.createCommentVNode("",!0),o.createElementVNode("div",Vw,[o.createVNode(u,{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:i.changeCategory,pxScroll:200,scrollColor:"none",arrowsScrollHide:!1,arrowsMargin:0,borderWidth:"2px"},null,8,["buttons","font-size","onInput"])]),o.createElementVNode("div",$w,[o.createVNode(m,{pxScroll:198,scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(13,29,41,0) 0%, rgba(13,29,41,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(13,29,41,0) 0%, rgba(13,29,41,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.topData,(p,f)=>(o.openBlock(),o.createElementBlock("div",{key:f,class:o.normalizeClass(["gsc-best__players__item",f==0?"margin-none":""])},[o.createVNode(c,{data:{player_id:p.id,player_name:this.isTeam?p.name:i.formatPlayerName(p.name),player_position:p.position,player_stat:p.total,category:"Total",top:f<9?"0"+(f+1):f+1,team_logo:p.logo,player_photo:p.img},"show-shield-team":!0,"active-videos":!0,onClickMosaic:i.clickMosaic,onOpenmedia:i.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 Iw=Ne(Sn,[["render",Pw],["__scopeId","data-v-a5fb54bf"]]);/**
|
|
33
|
+
* Vue 3 Carousel 0.3.1
|
|
34
|
+
* (c) 2023
|
|
35
|
+
* @license MIT
|
|
36
|
+
*/const Oe={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"}},qr={itemsToShow:{default:Oe.itemsToShow,type:Number},itemsToScroll:{default:Oe.itemsToScroll,type:Number},wrapAround:{default:Oe.wrapAround,type:Boolean},throttle:{default:Oe.throttle,type:Number},snapAlign:{default:Oe.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Oe.transition,type:Number},breakpoints:{default:Oe.breakpoints,type:Object},autoplay:{default:Oe.autoplay,type:Number},pauseAutoplayOnHover:{default:Oe.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Oe.mouseDrag,type:Boolean},touchDrag:{default:Oe.touchDrag,type:Boolean},dir:{default:Oe.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Oe.i18n,type:Object},settings:{default(){return{}},type:Object}};function Rw({config:e,slidesCount:a}){const{snapAlign:t,wrapAround:n,itemsToShow:s=1}=e;if(n)return Math.max(a-1,0);let i;switch(t){case"start":i=a-s;break;case"end":i=a-1;break;case"center":case"center-odd":i=a-Math.ceil((s-.5)/2);break;case"center-even":i=a-Math.ceil(s/2);break;default:i=0;break}return Math.max(i,0)}function Lw({config:e,slidesCount:a}){const{wrapAround:t,snapAlign:n,itemsToShow:s=1}=e;let i=0;if(t||s>a)return i;switch(n){case"start":i=0;break;case"end":i=s-1;break;case"center":case"center-odd":i=Math.floor((s-1)/2);break;case"center-even":i=Math.floor((s-2)/2);break;default:i=0;break}return i}function _n({val:e,max:a,min:t}){return a<t?e:Math.min(Math.max(e,t),a)}function zw({config:e,currentSlide:a,slidesCount:t}){const{snapAlign:n,wrapAround:s,itemsToShow:i=1}=e;let r=a;switch(n){case"center":case"center-odd":r-=(i-1)/2;break;case"center-even":r-=(i-2)/2;break;case"end":r-=i-1;break}return s?r:_n({val:r,max:t-i,min:0})}function Jr(e){return e?e.reduce((a,t)=>{var n;return t.type===o.Fragment?[...a,...Jr(t.children)]:((n=t.type)===null||n===void 0?void 0:n.name)==="CarouselSlide"?[...a,t]:a},[]):[]}function kn({val:e,max:a,min:t=0}){return e>a?kn({val:e-(a+1),max:a,min:t}):e<t?kn({val:e+(a+1),max:a,min:t}):e}function Fw(e,a){let t;return a?function(...n){const s=this;t||(e.apply(s,n),t=!0,setTimeout(()=>t=!1,a))}:e}function Mw(e,a){let t;return function(...n){t&&clearTimeout(t),t=setTimeout(()=>{e(...n),t=null},a)}}function Dw(e="",a={}){return Object.entries(a).reduce((t,[n,s])=>t.replace(`{${n}}`,String(s)),e)}var jw=o.defineComponent({name:"ARIA",setup(){const e=o.inject("config",o.reactive(Object.assign({},Oe))),a=o.inject("currentSlide",o.ref(0)),t=o.inject("slidesCount",o.ref(0));return()=>o.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},Dw(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:t.value}))}}),Ww=o.defineComponent({name:"Carousel",props:qr,setup(e,{slots:a,emit:t,expose:n}){var s;const i=o.ref(null),r=o.ref([]),l=o.ref(0),u=o.ref(0),c=o.reactive(Object.assign({},Oe));let m=Object.assign({},Oe),p;const f=o.ref((s=e.modelValue)!==null&&s!==void 0?s:0),d=o.ref(0),h=o.ref(0),g=o.ref(0),b=o.ref(0);let S,_;o.provide("config",c),o.provide("slidesCount",u),o.provide("currentSlide",f),o.provide("maxSlide",g),o.provide("minSlide",b),o.provide("slideWidth",l);function V(){p=Object.assign({},e.breakpoints),m=Object.assign(Object.assign(Object.assign({},m),e),{i18n:Object.assign(Object.assign({},m.i18n),e.i18n),breakpoints:void 0}),H(m)}function z(){if(!p||!Object.keys(p).length)return;const w=Object.keys(p).map(x=>Number(x)).sort((x,D)=>+D-+x);let T=Object.assign({},m);w.some(x=>{const D=window.matchMedia(`(min-width: ${x}px)`).matches;return D&&(T=Object.assign(Object.assign({},T),p[x])),D}),H(T)}function H(w){Object.entries(w).forEach(([T,x])=>c[T]=x)}const ee=Mw(()=>{z(),W()},16);function W(){if(!i.value)return;const w=i.value.getBoundingClientRect();l.value=w.width/c.itemsToShow}function le(){u.value<=0||(h.value=Math.ceil((u.value-1)/2),g.value=Rw({config:c,slidesCount:u.value}),b.value=Lw({config:c,slidesCount:u.value}),c.wrapAround||(f.value=_n({val:f.value,max:g.value,min:b.value})))}o.onMounted(()=>{o.nextTick(()=>W()),setTimeout(()=>W(),1e3),z(),Ie(),window.addEventListener("resize",ee,{passive:!0}),t("init")}),o.onUnmounted(()=>{_&&clearTimeout(_),S&&clearInterval(S),window.removeEventListener("resize",ee,{passive:!0})});let $=!1;const ae={x:0,y:0},ie={x:0,y:0},U=o.reactive({x:0,y:0}),se=o.ref(!1),de=o.ref(!1),Ue=()=>{se.value=!0},He=()=>{se.value=!1};function $e(w){["INPUT","TEXTAREA","SELECT"].includes(w.target.tagName)||($=w.type==="touchstart",$||w.preventDefault(),!(!$&&w.button!==0||N.value)&&(ae.x=$?w.touches[0].clientX:w.clientX,ae.y=$?w.touches[0].clientY:w.clientY,document.addEventListener($?"touchmove":"mousemove",Ae,!0),document.addEventListener($?"touchend":"mouseup",Pe,!0)))}const Ae=Fw(w=>{de.value=!0,ie.x=$?w.touches[0].clientX:w.clientX,ie.y=$?w.touches[0].clientY:w.clientY;const T=ie.x-ae.x,x=ie.y-ae.y;U.y=x,U.x=T},c.throttle);function Pe(){const w=c.dir==="rtl"?-1:1,T=Math.sign(U.x)*.4,x=Math.round(U.x/l.value+T)*w;if(x&&!$){const D=we=>{we.stopPropagation(),window.removeEventListener("click",D,!0)};window.addEventListener("click",D,!0)}v(f.value-x),U.x=0,U.y=0,de.value=!1,document.removeEventListener($?"touchmove":"mousemove",Ae,!0),document.removeEventListener($?"touchend":"mouseup",Pe,!0)}function Ie(){!c.autoplay||c.autoplay<=0||(S=setInterval(()=>{c.pauseAutoplayOnHover&&se.value||I()},c.autoplay))}function R(){S&&(clearInterval(S),S=null),Ie()}const N=o.ref(!1);function v(w){const T=c.wrapAround?w:_n({val:w,max:g.value,min:b.value});f.value===T||N.value||(t("slide-start",{slidingToIndex:w,currentSlideIndex:f.value,prevSlideIndex:d.value,slidesCount:u.value}),N.value=!0,d.value=f.value,f.value=T,_=setTimeout(()=>{if(c.wrapAround){const x=kn({val:T,max:g.value,min:0});x!==f.value&&(f.value=x,t("loop",{currentSlideIndex:f.value,slidingToIndex:w}))}t("update:modelValue",f.value),t("slide-end",{currentSlideIndex:f.value,prevSlideIndex:d.value,slidesCount:u.value}),N.value=!1,R()},c.transition))}function I(){v(f.value+c.itemsToScroll)}function P(){v(f.value-c.itemsToScroll)}const L={slideTo:v,next:I,prev:P};o.provide("nav",L),o.provide("isSliding",N);const F=o.computed(()=>zw({config:c,currentSlide:f.value,slidesCount:u.value}));o.provide("slidesToScroll",F);const Z=o.computed(()=>{const w=c.dir==="rtl"?-1:1,T=F.value*l.value*w;return{transform:`translateX(${U.x-T}px)`,transition:`${N.value?c.transition:0}ms`,margin:c.wrapAround?`0 -${u.value*l.value}px`:"",width:"100%"}});function ne(){V(),z(),le(),W(),R()}Object.keys(qr).forEach(w=>{["modelValue"].includes(w)||o.watch(()=>e[w],ne)}),o.watch(()=>e.modelValue,w=>{w!==f.value&&v(Number(w))}),o.watch(u,le),t("before-init"),V();const ce={config:c,slidesCount:u,slideWidth:l,next:I,prev:P,slideTo:v,currentSlide:f,maxSlide:g,minSlide:b,middleSlide:h};n({updateBreakpointsConfigs:z,updateSlidesData:le,updateSlideWidth:W,initDefaultConfigs:V,restartCarousel:ne,slideTo:v,next:I,prev:P,nav:L,data:ce});const Be=a.default||a.slides,xe=a.addons,Re=o.reactive(ce);return()=>{const w=Jr(Be==null?void 0:Be(Re)),T=(xe==null?void 0:xe(Re))||[];w.forEach((Se,_e)=>Se.props.index=_e);let x=w;if(c.wrapAround){const Se=w.map((ke,te)=>o.cloneVNode(ke,{index:-w.length+te,isClone:!0,key:`clone-before-${te}`})),_e=w.map((ke,te)=>o.cloneVNode(ke,{index:w.length+te,isClone:!0,key:`clone-after-${te}`}));x=[...Se,...w,..._e]}r.value=w,u.value=Math.max(w.length,1);const D=o.h("ol",{class:"carousel__track",style:Z.value,onMousedownCapture:c.mouseDrag?$e:null,onTouchstartPassiveCapture:c.touchDrag?$e:null},x),we=o.h("div",{class:"carousel__viewport"},D);return o.h("section",{ref:i,class:{carousel:!0,"is-sliding":N.value,"is-dragging":de.value,"is-hover":se.value,"carousel--rtl":c.dir==="rtl"},dir:c.dir,"aria-label":c.i18n.ariaGallery,tabindex:"0",onMouseenter:Ue,onMouseleave:He},[we,T,o.h(jw)])}}}),Kr;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(Kr||(Kr={}));var Uw=o.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const t=o.inject("config",o.reactive(Object.assign({},Oe))),n=o.inject("currentSlide",o.ref(0)),s=o.inject("slidesToScroll",o.ref(0)),i=o.inject("isSliding",o.ref(!1)),r=()=>e.index===n.value,l=()=>e.index===n.value-1,u=()=>e.index===n.value+1,c=()=>{const m=Math.floor(s.value),p=Math.ceil(s.value+t.itemsToShow-1);return e.index>=m&&e.index<=p};return()=>{var m;return o.h("li",{style:{width:`${100/t.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":c(),"carousel__slide--active":r(),"carousel__slide--prev":l(),"carousel__slide--next":u(),"carousel__slide--sliding":i.value},"aria-hidden":!c()},(m=a.default)===null||m===void 0?void 0:m.call(a))}}});const Hw=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},Gw=e=>(o.pushScopeId("data-v-dd3cbf69"),e=e(),o.popScopeId(),e),qw={class:"gsc-carousel"},Jw={key:0},Kw=Gw(()=>o.createElementVNode("div",null,"no hay",-1)),Zw=[Kw],Xw={class:"gsc-carousel__2d__slides"},Yw={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Qw=["fill"],eS={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},tS=["fill"],oS={class:"gsc-carousel__2d__navigation"},aS={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},nS=["stroke"],iS={key:1,class:"gsc-carousel__2d__navigation__pagination"},sS=["onClick"],rS={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},lS=["stroke"],cS={__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:t}){const n=e;o.useCssVars(g=>({"0d808f0f":e.slideLeftArrowBackgroundImage,"1e0ef2e5":e.slidesArrowsLeftAndRight,"66d12b5c":e.slideRightArrowBackgroundImage,"2b22a85a":e.marginTop,"1a842b02":e.secondarySlidesOpacity}));const s=o.ref(null),i=o.ref({}),r=o.ref(0),l=o.ref(!1);o.watch(s,g=>{g&&l.value?(l.value=!1,u(n.items)):g&&g.slideTo&&g.slideTo(r.value)},{deep:!0}),o.watch(()=>n.currentItemIndex,g=>{r.value!==g&&f(g)}),o.watch(()=>n.items,g=>{s.value?u(g):l.value=!0},{immediate:!0});function u(g){if(g&&g.length&&s.value){if(n.defaultItemByProp){const b=n.items.findIndex(S=>S[n.defaultItemByProp.propName]===n.defaultItemByProp.value);b!==-1?(r.value=b,i.value=g[b]):(r.value=0,i.value=g[0])}else r.value=n.defaultItemByIndex,i.value=g[n.defaultItemByIndex];s.value.slideTo&&s.value.slideTo(r.value),t("input",{selectedItem:i.value,selectedItemIndex:r.value})}}function c(){s.value&&s.value.next()}function m(){s.value&&s.value.prev()}function p(){s.value&&s.value.updateSlideWidth()}function f(g){s.value&&s.value.slideTo(g)}function d(g){s.value.slideTo(g)}function h(g){const b=g.slidingToIndex<0?n.items.length-1:g.slidingToIndex===n.items.length?0:g.slidingToIndex;r.value=b,i.value=n.items[b],t("update:currentItemIndex",b),t("input",{selectedItem:i.value,selectedItemIndex:r.value})}return a({prev:m,next:c,updateSlideWidth:p,slideTo:f}),(g,b)=>(o.openBlock(),o.createElementBlock("div",qw,[n.is3d?(o.openBlock(),o.createElementBlock("div",Jw,Zw)):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[o.createElementVNode("div",Xw,[o.createVNode(o.unref(Ww),{ref_key:"carousel2d",ref:s,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:h},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.items,(S,_)=>(o.openBlock(),o.createBlock(o.unref(Uw),{key:_},{default:o.withCtx(()=>[o.renderSlot(g.$slots,"default",{item:S},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible?(o.openBlock(),o.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",onClick:b[0]||(b[0]=S=>s.value.prev())},[o.createElementVNode("div",{class:o.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(o.openBlock(),o.createElementBlock("svg",Yw,[o.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,Qw)]))],2)])):o.createCommentVNode("",!0),e.areSlidesArrowsVisible?(o.openBlock(),o.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",onClick:b[1]||(b[1]=S=>c())},[o.createElementVNode("div",{class:o.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(o.openBlock(),o.createElementBlock("svg",eS,[o.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,tS)]))],2)])):o.createCommentVNode("",!0),o.createElementVNode("div",oS,[e.areNavigationArrowsVisible?(o.openBlock(),o.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:b[2]||(b[2]=S=>m())},[(o.openBlock(),o.createElementBlock("svg",aS,[o.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,nS)]))])):o.createCommentVNode("",!0),e.isPaginationVisible?(o.openBlock(),o.createElementBlock("div",iS,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.items,(S,_)=>(o.openBlock(),o.createElementBlock("div",{key:`i-${_}`,class:"gsc-carousel__2d__navigation__pagination__item",style:o.normalizeStyle({height:`${n.navigationHeight}px`,width:`${r.value===_?n.navigationActiveWidth:n.navigationActiveWidth/2}px`,borderRadius:`${n.navigationBorderRadius}px`,backgroundColor:`${r.value===_?n.navigationActiveColor:n.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:V=>d(_)},null,12,sS))),128))])):o.createCommentVNode("",!0),e.areNavigationArrowsVisible?(o.openBlock(),o.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:b[3]||(b[3]=S=>s.value.next())},[(o.openBlock(),o.createElementBlock("svg",rS,[o.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,lS)]))])):o.createCommentVNode("",!0)])],2))]))}},dS=Hw(cS,[["__scopeId","data-v-dd3cbf69"]]);function A(e,a,t){return(a=uS(a))in e?Object.defineProperty(e,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[a]=t,e}function mS(e,a){if(typeof e!="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,a||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(e)}function uS(e){var a=mS(e,"string");return typeof a=="symbol"?a:String(a)}function pS(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}function Zr(e,a){for(var t=0;t<a.length;t++){var n=a[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function hS(e,a,t){return a&&Zr(e.prototype,a),t&&Zr(e,t),e}function gS(e,a,t){return a in e?Object.defineProperty(e,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[a]=t,e}function Xr(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,n)}return t}function Yr(e){for(var a=1;a<arguments.length;a++){var t=arguments[a]!=null?arguments[a]:{};a%2?Xr(Object(t),!0).forEach(function(n){gS(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Xr(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}var Qr={addCSS:!0,thumbWidth:15,watch:!0};function fS(e,a){return(function(){return Array.from(document.querySelectorAll(a)).includes(this)}).call(e,a)}function yS(e,a){if(e&&a){var t=new Event(a,{bubbles:!0});e.dispatchEvent(t)}}var Dt=function(e){return e!=null?e.constructor:null},Cn=function(e,a){return!!(e&&a&&e instanceof a)},el=function(e){return e==null},tl=function(e){return Dt(e)===Object},bS=function(e){return Dt(e)===Number&&!Number.isNaN(e)},ol=function(e){return Dt(e)===String},wS=function(e){return Dt(e)===Boolean},SS=function(e){return Dt(e)===Function},al=function(e){return Array.isArray(e)},nl=function(e){return Cn(e,NodeList)},_S=function(e){return Cn(e,Element)},kS=function(e){return Cn(e,Event)},CS=function(e){return el(e)||(ol(e)||al(e)||nl(e))&&!e.length||tl(e)&&!Object.keys(e).length},Ve={nullOrUndefined:el,object:tl,number:bS,string:ol,boolean:wS,function:SS,array:al,nodeList:nl,element:_S,event:kS,empty:CS};function ES(e){var a="".concat(e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return a?Math.max(0,(a[1]?a[1].length:0)-(a[2]?+a[2]:0)):0}function BS(e,a){if(1>a){var t=ES(a);return parseFloat(e.toFixed(t))}return Math.round(e/a)*a}var xS=function(){function e(a,t){pS(this,e),Ve.element(a)?this.element=a:Ve.string(a)&&(this.element=document.querySelector(a)),Ve.element(this.element)&&Ve.empty(this.element.rangeTouch)&&(this.config=Yr({},Qr,{},t),this.init())}return hS(e,[{key:"init",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="none",this.element.style.webKitUserSelect="none",this.element.style.touchAction="manipulation"),this.listeners(!0),this.element.rangeTouch=this)}},{key:"destroy",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="",this.element.style.webKitUserSelect="",this.element.style.touchAction=""),this.listeners(!1),this.element.rangeTouch=null)}},{key:"listeners",value:function(a){var t=this,n=a?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach(function(s){t.element[n](s,function(i){return t.set(i)},!1)})}},{key:"get",value:function(a){if(!e.enabled||!Ve.event(a))return null;var t,n=a.target,s=a.changedTouches[0],i=parseFloat(n.getAttribute("min"))||0,r=parseFloat(n.getAttribute("max"))||100,l=parseFloat(n.getAttribute("step"))||1,u=n.getBoundingClientRect(),c=100/u.width*(this.config.thumbWidth/2)/100;return 0>(t=100/u.width*(s.clientX-u.left))?t=0:100<t&&(t=100),50>t?t-=(100-2*t)*c:50<t&&(t+=2*(t-50)*c),i+BS(t/100*(r-i),l)}},{key:"set",value:function(a){e.enabled&&Ve.event(a)&&!a.target.disabled&&(a.preventDefault(),a.target.value=this.get(a),yS(a.target,a.type==="touchend"?"change":"input"))}}],[{key:"setup",value:function(a){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},n=null;if(Ve.empty(a)||Ve.string(a)?n=Array.from(document.querySelectorAll(Ve.string(a)?a:'input[type="range"]')):Ve.element(a)?n=[a]:Ve.nodeList(a)?n=Array.from(a):Ve.array(a)&&(n=a.filter(Ve.element)),Ve.empty(n))return null;var s=Yr({},Qr,{},t);if(Ve.string(a)&&s.watch){var i=new MutationObserver(function(r){Array.from(r).forEach(function(l){Array.from(l.addedNodes).forEach(function(u){Ve.element(u)&&fS(u,a)&&new e(u,s)})})});i.observe(document.body,{childList:!0,subtree:!0})}return n.map(function(r){return new e(r,t)})}},{key:"enabled",get:function(){return"ontouchstart"in document.documentElement}}]),e}();const jt=e=>e!=null?e.constructor:null,it=(e,a)=>!!(e&&a&&e instanceof a),En=e=>e==null,il=e=>jt(e)===Object,NS=e=>jt(e)===Number&&!Number.isNaN(e),Vo=e=>jt(e)===String,TS=e=>jt(e)===Boolean,sl=e=>typeof e=="function",rl=e=>Array.isArray(e),vS=e=>it(e,WeakMap),ll=e=>it(e,NodeList),OS=e=>jt(e)===Text,AS=e=>it(e,Event),VS=e=>it(e,KeyboardEvent),$S=e=>it(e,window.TextTrackCue)||it(e,window.VTTCue),PS=e=>it(e,TextTrack)||!En(e)&&Vo(e.kind),IS=e=>it(e,Promise)&&sl(e.then),RS=e=>e!==null&&typeof e=="object"&&e.nodeType===1&&typeof e.style=="object"&&typeof e.ownerDocument=="object",cl=e=>En(e)||(Vo(e)||rl(e)||ll(e))&&!e.length||il(e)&&!Object.keys(e).length;var y={nullOrUndefined:En,object:il,number:NS,string:Vo,boolean:TS,function:sl,array:rl,weakMap:vS,nodeList:ll,element:RS,textNode:OS,event:AS,keyboardEvent:VS,cue:$S,track:PS,promise:IS,url:e=>{if(it(e,window.URL))return!0;if(!Vo(e))return!1;let a=e;e.startsWith("http://")&&e.startsWith("https://")||(a=`http://${e}`);try{return!cl(new URL(a).hostname)}catch{return!1}},empty:cl};const Bn=(()=>{const e=document.createElement("span"),a={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},t=Object.keys(a).find(n=>e.style[n]!==void 0);return!!y.string(t)&&a[t]})();function dl(e,a){setTimeout(()=>{try{e.hidden=!0,e.offsetHeight,e.hidden=!1}catch{}},a)}const LS=!!window.document.documentMode,zS=/Edge/g.test(navigator.userAgent),FS="WebkitAppearance"in document.documentElement.style&&!/Edge/g.test(navigator.userAgent),MS=/iPhone|iPod/gi.test(navigator.userAgent)&&navigator.maxTouchPoints>1,DS=navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,jS=/iPad|iPhone|iPod/gi.test(navigator.userAgent)&&navigator.maxTouchPoints>1;var Ce={isIE:LS,isEdge:zS,isWebKit:FS,isIPhone:MS,isIPadOS:DS,isIos:jS};function WS(e){return JSON.parse(JSON.stringify(e))}function ml(e,a){return a.split(".").reduce((t,n)=>t&&t[n],e)}function me(e={},...a){if(!a.length)return e;const t=a.shift();return y.object(t)?(Object.keys(t).forEach(n=>{y.object(t[n])?(Object.keys(e).includes(n)||Object.assign(e,{[n]:{}}),me(e[n],t[n])):Object.assign(e,{[n]:t[n]})}),me(e,...a)):e}function ul(e,a){const t=e.length?e:[e];Array.from(t).reverse().forEach((n,s)=>{const i=s>0?a.cloneNode(!0):a,r=n.parentNode,l=n.nextSibling;i.appendChild(n),l?r.insertBefore(i,l):r.appendChild(i)})}function xn(e,a){y.element(e)&&!y.empty(a)&&Object.entries(a).filter(([,t])=>!y.nullOrUndefined(t)).forEach(([t,n])=>e.setAttribute(t,n))}function M(e,a,t){const n=document.createElement(e);return y.object(a)&&xn(n,a),y.string(t)&&(n.innerText=t),n}function US(e,a){y.element(e)&&y.element(a)&&a.parentNode.insertBefore(e,a.nextSibling)}function pl(e,a,t,n){y.element(a)&&a.appendChild(M(e,t,n))}function st(e){y.nodeList(e)||y.array(e)?Array.from(e).forEach(st):y.element(e)&&y.element(e.parentNode)&&e.parentNode.removeChild(e)}function $o(e){if(!y.element(e))return;let{length:a}=e.childNodes;for(;a>0;)e.removeChild(e.lastChild),a-=1}function Po(e,a){return y.element(a)&&y.element(a.parentNode)&&y.element(e)?(a.parentNode.replaceChild(e,a),e):null}function Ye(e,a){if(!y.string(e)||y.empty(e))return{};const t={},n=me({},a);return e.split(",").forEach(s=>{const i=s.trim(),r=i.replace(".",""),l=i.replace(/[[\]]/g,"").split("="),[u]=l,c=l.length>1?l[1].replace(/["']/g,""):"";switch(i.charAt(0)){case".":y.string(n.class)?t.class=`${n.class} ${r}`:t.class=r;break;case"#":t.id=i.replace("#","");break;case"[":t[u]=c}}),me(n,t)}function gt(e,a){if(!y.element(e))return;let t=a;y.boolean(t)||(t=!e.hidden),e.hidden=t}function Q(e,a,t){if(y.nodeList(e))return Array.from(e).map(n=>Q(n,a,t));if(y.element(e)){let n="toggle";return t!==void 0&&(n=t?"add":"remove"),e.classList[n](a),e.classList.contains(a)}return!1}function Io(e,a){return y.element(e)&&e.classList.contains(a)}function ft(e,a){const{prototype:t}=Element;return(t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||function(){return Array.from(document.querySelectorAll(a)).includes(this)}).call(e,a)}function HS(e,a){const{prototype:t}=Element;return(t.closest||function(){let n=this;do{if(ft.matches(n,a))return n;n=n.parentElement||n.parentNode}while(n!==null&&n.nodeType===1);return null}).call(e,a)}function Wt(e){return this.elements.container.querySelectorAll(e)}function be(e){return this.elements.container.querySelector(e)}function Nn(e=null,a=!1){y.element(e)&&e.focus({preventScroll:!0,focusVisible:a})}const hl={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},ue={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check(e,a){const t=ue[e]||a!=="html5";return{api:t,ui:t&&ue.rangeInput}},pip:!(Ce.isIPhone||!y.function(M("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||M("video").disablePictureInPicture)),airplay:y.function(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime(e){if(y.empty(e))return!1;const[a]=e.split("/");let t=e;if(!this.isHTML5||a!==this.type)return!1;Object.keys(hl).includes(t)&&(t+=`; codecs="${hl[e]}"`);try{return!!(t&&this.media.canPlayType(t).replace(/no/,""))}catch{return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:(()=>{const e=document.createElement("input");return e.type="range",e.type==="range"})(),touch:"ontouchstart"in document.documentElement,transitions:Bn!==!1,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},GS=(()=>{let e=!1;try{const a=Object.defineProperty({},"passive",{get:()=>(e=!0,null)});window.addEventListener("test",null,a),window.removeEventListener("test",null,a)}catch{}return e})();function Ut(e,a,t,n=!1,s=!0,i=!1){if(!e||!("addEventListener"in e)||y.empty(a)||!y.function(t))return;const r=a.split(" ");let l=i;GS&&(l={passive:s,capture:i}),r.forEach(u=>{this&&this.eventListeners&&n&&this.eventListeners.push({element:e,type:u,callback:t,options:l}),e[n?"addEventListener":"removeEventListener"](u,t,l)})}function X(e,a="",t,n=!0,s=!1){Ut.call(this,e,a,t,!0,n,s)}function Ro(e,a="",t,n=!0,s=!1){Ut.call(this,e,a,t,!1,n,s)}function Tn(e,a="",t,n=!0,s=!1){const i=(...r)=>{Ro(e,a,i,n,s),t.apply(this,r)};Ut.call(this,e,a,i,!0,n,s)}function j(e,a="",t=!1,n={}){if(!y.element(e)||y.empty(a))return;const s=new CustomEvent(a,{bubbles:t,detail:{...n,plyr:this}});e.dispatchEvent(s)}function qS(){this&&this.eventListeners&&(this.eventListeners.forEach(e=>{const{element:a,type:t,callback:n,options:s}=e;a.removeEventListener(t,n,s)}),this.eventListeners=[])}function JS(){return new Promise(e=>this.ready?setTimeout(e,0):X.call(this,this.elements.container,"ready",e)).then(()=>{})}function Qe(e){y.promise(e)&&e.then(null,()=>{})}function vn(e){return y.array(e)?e.filter((a,t)=>e.indexOf(a)===t):e}function gl(e,a){return y.array(e)&&e.length?e.reduce((t,n)=>Math.abs(n-a)<Math.abs(t-a)?n:t):null}function fl(e){return!(!window||!window.CSS)&&window.CSS.supports(e)}const yl=[[1,1],[4,3],[3,4],[5,4],[4,5],[3,2],[2,3],[16,10],[10,16],[16,9],[9,16],[21,9],[9,21],[32,9],[9,32]].reduce((e,[a,t])=>({...e,[a/t]:[a,t]}),{});function bl(e){return y.array(e)||y.string(e)&&e.includes(":")?(y.array(e)?e:e.split(":")).map(Number).every(y.number):!1}function Lo(e){if(!y.array(e)||!e.every(y.number))return null;const[a,t]=e,n=(i,r)=>r===0?i:n(r,i%r),s=n(a,t);return[a/s,t/s]}function On(e){const a=n=>bl(n)?n.split(":").map(Number):null;let t=a(e);if(t===null&&(t=a(this.config.ratio)),t===null&&!y.empty(this.embed)&&y.array(this.embed.ratio)&&({ratio:t}=this.embed),t===null&&this.isHTML5){const{videoWidth:n,videoHeight:s}=this.media;t=[n,s]}return Lo(t)}function Bt(e){if(!this.isVideo)return{};const{wrapper:a}=this.elements,t=On.call(this,e);if(!y.array(t))return{};const[n,s]=Lo(t),i=100/n*s;if(fl(`aspect-ratio: ${n}/${s}`)?a.style.aspectRatio=`${n}/${s}`:a.style.paddingBottom=`${i}%`,this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){const r=100/this.media.offsetWidth*parseInt(window.getComputedStyle(this.media).paddingBottom,10),l=(r-i)/(r/50);this.fullscreen.active?a.style.paddingBottom=null:this.media.style.transform=`translateY(-${l}%)`}else this.isHTML5&&a.classList.add(this.config.classNames.videoFixedRatio);return{padding:i,ratio:t}}function wl(e,a,t=.05){const n=e/a,s=gl(Object.keys(yl),n);return Math.abs(s-n)<=t?yl[s]:[e,a]}function KS(){return[Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)]}const mt={getSources(){return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter(e=>{const a=e.getAttribute("type");return!!y.empty(a)||ue.mime.call(this,a)}):[]},getQualityOptions(){return this.config.quality.forced?this.config.quality.options:mt.getSources.call(this).map(e=>Number(e.getAttribute("size"))).filter(Boolean)},setup(){if(!this.isHTML5)return;const e=this;e.options.speed=e.config.speed.options,y.empty(this.config.ratio)||Bt.call(e),Object.defineProperty(e.media,"quality",{get(){const a=mt.getSources.call(e).find(t=>t.getAttribute("src")===e.source);return a&&Number(a.getAttribute("size"))},set(a){if(e.quality!==a){if(e.config.quality.forced&&y.function(e.config.quality.onChange))e.config.quality.onChange(a);else{const t=mt.getSources.call(e).find(u=>Number(u.getAttribute("size"))===a);if(!t)return;const{currentTime:n,paused:s,preload:i,readyState:r,playbackRate:l}=e.media;e.media.src=t.getAttribute("src"),(i!=="none"||r)&&(e.once("loadedmetadata",()=>{e.speed=l,e.currentTime=n,s||Qe(e.play())}),e.media.load())}j.call(e,e.media,"qualitychange",!1,{quality:a})}}})},cancelRequests(){this.isHTML5&&(st(mt.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function ZS(e){return`${e}-${Math.floor(1e4*Math.random())}`}function An(e,...a){return y.empty(e)?e:e.toString().replace(/{(\d+)}/g,(t,n)=>a[n].toString())}function XS(e,a){return e===0||a===0||Number.isNaN(e)||Number.isNaN(a)?0:(e/a*100).toFixed(2)}const Ht=(e="",a="",t="")=>e.replace(new RegExp(a.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),t.toString()),Sl=(e="")=>e.toString().replace(/\w\S*/g,a=>a.charAt(0).toUpperCase()+a.slice(1).toLowerCase());function YS(e=""){let a=e.toString();return a=Ht(a,"-"," "),a=Ht(a,"_"," "),a=Sl(a),Ht(a," ","")}function QS(e=""){let a=e.toString();return a=YS(a),a.charAt(0).toLowerCase()+a.slice(1)}function e_(e){const a=document.createDocumentFragment(),t=document.createElement("div");return a.appendChild(t),t.innerHTML=e,a.firstChild.innerText}function t_(e){const a=document.createElement("div");return a.appendChild(e),a.innerHTML}const _l={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},Ee={get(e="",a={}){if(y.empty(e)||y.empty(a))return"";let t=ml(a.i18n,e);if(y.empty(t))return Object.keys(_l).includes(e)?_l[e]:"";const n={"{seektime}":a.seekTime,"{title}":a.title};return Object.entries(n).forEach(([s,i])=>{t=Ht(t,s,i)}),t}};class Gt{constructor(a){A(this,"get",t=>{if(!Gt.supported||!this.enabled)return null;const n=window.localStorage.getItem(this.key);if(y.empty(n))return null;const s=JSON.parse(n);return y.string(t)&&t.length?s[t]:s}),A(this,"set",t=>{if(!Gt.supported||!this.enabled||!y.object(t))return;let n=this.get();y.empty(n)&&(n={}),me(n,t);try{window.localStorage.setItem(this.key,JSON.stringify(n))}catch{}}),this.enabled=a.config.storage.enabled,this.key=a.config.storage.key}static get supported(){try{if(!("localStorage"in window))return!1;const a="___test";return window.localStorage.setItem(a,a),window.localStorage.removeItem(a),!0}catch{return!1}}}function qt(e,a="text"){return new Promise((t,n)=>{try{const s=new XMLHttpRequest;if(!("withCredentials"in s))return;s.addEventListener("load",()=>{if(a==="text")try{t(JSON.parse(s.responseText))}catch{t(s.responseText)}else t(s.response)}),s.addEventListener("error",()=>{throw new Error(s.status)}),s.open("GET",e,!0),s.responseType=a,s.send()}catch(s){n(s)}})}function kl(e,a){if(!y.string(e))return;const t="cache",n=y.string(a);let s=!1;const i=()=>document.getElementById(a)!==null,r=(l,u)=>{l.innerHTML=u,n&&i()||document.body.insertAdjacentElement("afterbegin",l)};if(!n||!i()){const l=Gt.supported,u=document.createElement("div");if(u.setAttribute("hidden",""),n&&u.setAttribute("id",a),l){const c=window.localStorage.getItem(`${t}-${a}`);if(s=c!==null,s){const m=JSON.parse(c);r(u,m.content)}}qt(e).then(c=>{if(!y.empty(c)){if(l)try{window.localStorage.setItem(`${t}-${a}`,JSON.stringify({content:c}))}catch{}r(u,c)}}).catch(()=>{})}}const Cl=e=>Math.trunc(e/60/60%60,10),o_=e=>Math.trunc(e/60%60,10),a_=e=>Math.trunc(e%60,10);function zo(e=0,a=!1,t=!1){if(!y.number(e))return zo(void 0,a,t);const n=l=>`0${l}`.slice(-2);let s=Cl(e);const i=o_(e),r=a_(e);return s=a||s>0?`${s}:`:"",`${t&&e>0?"-":""}${s}${n(i)}:${n(r)}`}const O={getIconUrl(){const e=new URL(this.config.iconUrl,window.location),a=window.location.host?window.location.host:window.top.location.host,t=e.host!==a||Ce.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:t}},findElements(){try{return this.elements.controls=be.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:Wt.call(this,this.config.selectors.buttons.play),pause:be.call(this,this.config.selectors.buttons.pause),restart:be.call(this,this.config.selectors.buttons.restart),rewind:be.call(this,this.config.selectors.buttons.rewind),fastForward:be.call(this,this.config.selectors.buttons.fastForward),mute:be.call(this,this.config.selectors.buttons.mute),pip:be.call(this,this.config.selectors.buttons.pip),airplay:be.call(this,this.config.selectors.buttons.airplay),settings:be.call(this,this.config.selectors.buttons.settings),captions:be.call(this,this.config.selectors.buttons.captions),fullscreen:be.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=be.call(this,this.config.selectors.progress),this.elements.inputs={seek:be.call(this,this.config.selectors.inputs.seek),volume:be.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:be.call(this,this.config.selectors.display.buffer),currentTime:be.call(this,this.config.selectors.display.currentTime),duration:be.call(this,this.config.selectors.display.duration)},y.element(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(`.${this.config.classNames.tooltip}`)),!0}catch(e){return this.debug.warn("It looks like there is a problem with your custom controls HTML",e),this.toggleNativeControls(!0),!1}},createIcon(e,a){const t="http://www.w3.org/2000/svg",n=O.getIconUrl.call(this),s=`${n.cors?"":n.url}#${this.config.iconPrefix}`,i=document.createElementNS(t,"svg");xn(i,me(a,{"aria-hidden":"true",focusable:"false"}));const r=document.createElementNS(t,"use"),l=`${s}-${e}`;return"href"in r&&r.setAttributeNS("http://www.w3.org/1999/xlink","href",l),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l),i.appendChild(r),i},createLabel(e,a={}){const t=Ee.get(e,this.config);return M("span",{...a,class:[a.class,this.config.classNames.hidden].filter(Boolean).join(" ")},t)},createBadge(e){if(y.empty(e))return null;const a=M("span",{class:this.config.classNames.menu.value});return a.appendChild(M("span",{class:this.config.classNames.menu.badge},e)),a},createButton(e,a){const t=me({},a);let n=QS(e);const s={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach(r=>{Object.keys(t).includes(r)&&(s[r]=t[r],delete t[r])}),s.element!=="button"||Object.keys(t).includes("type")||(t.type="button"),Object.keys(t).includes("class")?t.class.split(" ").some(r=>r===this.config.classNames.control)||me(t,{class:`${t.class} ${this.config.classNames.control}`}):t.class=this.config.classNames.control,e){case"play":s.toggle=!0,s.label="play",s.labelPressed="pause",s.icon="play",s.iconPressed="pause";break;case"mute":s.toggle=!0,s.label="mute",s.labelPressed="unmute",s.icon="volume",s.iconPressed="muted";break;case"captions":s.toggle=!0,s.label="enableCaptions",s.labelPressed="disableCaptions",s.icon="captions-off",s.iconPressed="captions-on";break;case"fullscreen":s.toggle=!0,s.label="enterFullscreen",s.labelPressed="exitFullscreen",s.icon="enter-fullscreen",s.iconPressed="exit-fullscreen";break;case"play-large":t.class+=` ${this.config.classNames.control}--overlaid`,n="play",s.label="play",s.icon="play";break;default:y.empty(s.label)&&(s.label=n),y.empty(s.icon)&&(s.icon=e)}const i=M(s.element);return s.toggle?(i.appendChild(O.createIcon.call(this,s.iconPressed,{class:"icon--pressed"})),i.appendChild(O.createIcon.call(this,s.icon,{class:"icon--not-pressed"})),i.appendChild(O.createLabel.call(this,s.labelPressed,{class:"label--pressed"})),i.appendChild(O.createLabel.call(this,s.label,{class:"label--not-pressed"}))):(i.appendChild(O.createIcon.call(this,s.icon)),i.appendChild(O.createLabel.call(this,s.label))),me(t,Ye(this.config.selectors.buttons[n],t)),xn(i,t),n==="play"?(y.array(this.elements.buttons[n])||(this.elements.buttons[n]=[]),this.elements.buttons[n].push(i)):this.elements.buttons[n]=i,i},createRange(e,a){const t=M("input",me(Ye(this.config.selectors.inputs[e]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":Ee.get(e,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},a));return this.elements.inputs[e]=t,O.updateRangeFill.call(this,t),xS.setup(t),t},createProgress(e,a){const t=M("progress",me(Ye(this.config.selectors.display[e]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},a));if(e!=="volume"){t.appendChild(M("span",null,"0"));const n={played:"played",buffer:"buffered"}[e],s=n?Ee.get(n,this.config):"";t.innerText=`% ${s.toLowerCase()}`}return this.elements.display[e]=t,t},createTime(e,a){const t=Ye(this.config.selectors.display[e],a),n=M("div",me(t,{class:`${t.class?t.class:""} ${this.config.classNames.display.time} `.trim(),"aria-label":Ee.get(e,this.config),role:"timer"}),"00:00");return this.elements.display[e]=n,n},bindMenuItemShortcuts(e,a){X.call(this,e,"keydown keyup",t=>{if(![" ","ArrowUp","ArrowDown","ArrowRight"].includes(t.key)||(t.preventDefault(),t.stopPropagation(),t.type==="keydown"))return;const n=ft(e,'[role="menuitemradio"]');if(!n&&[" ","ArrowRight"].includes(t.key))O.showMenuPanel.call(this,a,!0);else{let s;t.key!==" "&&(t.key==="ArrowDown"||n&&t.key==="ArrowRight"?(s=e.nextElementSibling,y.element(s)||(s=e.parentNode.firstElementChild)):(s=e.previousElementSibling,y.element(s)||(s=e.parentNode.lastElementChild)),Nn.call(this,s,!0))}},!1),X.call(this,e,"keyup",t=>{t.key==="Return"&&O.focusFirstMenuItem.call(this,null,!0)})},createMenuItem({value:e,list:a,type:t,title:n,badge:s=null,checked:i=!1}){const r=Ye(this.config.selectors.inputs[t]),l=M("button",me(r,{type:"button",role:"menuitemradio",class:`${this.config.classNames.control} ${r.class?r.class:""}`.trim(),"aria-checked":i,value:e})),u=M("span");u.innerHTML=n,y.element(s)&&u.appendChild(s),l.appendChild(u),Object.defineProperty(l,"checked",{enumerable:!0,get:()=>l.getAttribute("aria-checked")==="true",set(c){c&&Array.from(l.parentNode.children).filter(m=>ft(m,'[role="menuitemradio"]')).forEach(m=>m.setAttribute("aria-checked","false")),l.setAttribute("aria-checked",c?"true":"false")}}),this.listeners.bind(l,"click keyup",c=>{if(!y.keyboardEvent(c)||c.key===" "){switch(c.preventDefault(),c.stopPropagation(),l.checked=!0,t){case"language":this.currentTrack=Number(e);break;case"quality":this.quality=e;break;case"speed":this.speed=parseFloat(e)}O.showMenuPanel.call(this,"home",y.keyboardEvent(c))}},t,!1),O.bindMenuItemShortcuts.call(this,l,t),a.appendChild(l)},formatTime(e=0,a=!1){return y.number(e)?zo(e,Cl(this.duration)>0,a):e},updateTimeDisplay(e=null,a=0,t=!1){y.element(e)&&y.number(a)&&(e.innerText=O.formatTime(a,t))},updateVolume(){this.supported.ui&&(y.element(this.elements.inputs.volume)&&O.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),y.element(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||this.volume===0))},setRange(e,a=0){y.element(e)&&(e.value=a,O.updateRangeFill.call(this,e))},updateProgress(e){if(!this.supported.ui||!y.event(e))return;let a=0;const t=(n,s)=>{const i=y.number(s)?s:0,r=y.element(n)?n:this.elements.display.buffer;if(y.element(r)){r.value=i;const l=r.getElementsByTagName("span")[0];y.element(l)&&(l.childNodes[0].nodeValue=i)}};if(e)switch(e.type){case"timeupdate":case"seeking":case"seeked":a=XS(this.currentTime,this.duration),e.type==="timeupdate"&&O.setRange.call(this,this.elements.inputs.seek,a);break;case"playing":case"progress":t(this.elements.display.buffer,100*this.buffered)}},updateRangeFill(e){const a=y.event(e)?e.target:e;if(y.element(a)&&a.getAttribute("type")==="range"){if(ft(a,this.config.selectors.inputs.seek)){a.setAttribute("aria-valuenow",this.currentTime);const t=O.formatTime(this.currentTime),n=O.formatTime(this.duration),s=Ee.get("seekLabel",this.config);a.setAttribute("aria-valuetext",s.replace("{currentTime}",t).replace("{duration}",n))}else if(ft(a,this.config.selectors.inputs.volume)){const t=100*a.value;a.setAttribute("aria-valuenow",t),a.setAttribute("aria-valuetext",`${t.toFixed(1)}%`)}else a.setAttribute("aria-valuenow",a.value);(Ce.isWebKit||Ce.isIPadOS)&&a.style.setProperty("--value",a.value/a.max*100+"%")}},updateSeekTooltip(e){var a,t;if(!this.config.tooltips.seek||!y.element(this.elements.inputs.seek)||!y.element(this.elements.display.seekTooltip)||this.duration===0)return;const n=this.elements.display.seekTooltip,s=`${this.config.classNames.tooltip}--visible`,i=m=>Q(n,s,m);if(this.touch)return void i(!1);let r=0;const l=this.elements.progress.getBoundingClientRect();if(y.event(e))r=100/l.width*(e.pageX-l.left);else{if(!Io(n,s))return;r=parseFloat(n.style.left,10)}r<0?r=0:r>100&&(r=100);const u=this.duration/100*r;n.innerText=O.formatTime(u);const c=(a=this.config.markers)===null||a===void 0||(t=a.points)===null||t===void 0?void 0:t.find(({time:m})=>m===Math.round(u));c&&n.insertAdjacentHTML("afterbegin",`${c.label}<br>`),n.style.left=`${r}%`,y.event(e)&&["mouseenter","mouseleave"].includes(e.type)&&i(e.type==="mouseenter")},timeUpdate(e){const a=!y.element(this.elements.display.duration)&&this.config.invertTime;O.updateTimeDisplay.call(this,this.elements.display.currentTime,a?this.duration-this.currentTime:this.currentTime,a),e&&e.type==="timeupdate"&&this.media.seeking||O.updateProgress.call(this,e)},durationUpdate(){if(!this.supported.ui||!this.config.invertTime&&this.currentTime)return;if(this.duration>=2**32)return gt(this.elements.display.currentTime,!0),void gt(this.elements.progress,!0);y.element(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);const e=y.element(this.elements.display.duration);!e&&this.config.displayDuration&&this.paused&&O.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),e&&O.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),this.config.markers.enabled&&O.setMarkers.call(this),O.updateSeekTooltip.call(this)},toggleMenuButton(e,a){gt(this.elements.settings.buttons[e],!a)},updateSetting(e,a,t){const n=this.elements.settings.panels[e];let s=null,i=a;if(e==="captions")s=this.currentTrack;else{if(s=y.empty(t)?this[e]:t,y.empty(s)&&(s=this.config[e].default),!y.empty(this.options[e])&&!this.options[e].includes(s))return void this.debug.warn(`Unsupported value of '${s}' for ${e}`);if(!this.config[e].options.includes(s))return void this.debug.warn(`Disabled value of '${s}' for ${e}`)}if(y.element(i)||(i=n&&n.querySelector('[role="menu"]')),!y.element(i))return;this.elements.settings.buttons[e].querySelector(`.${this.config.classNames.menu.value}`).innerHTML=O.getLabel.call(this,e,s);const r=i&&i.querySelector(`[value="${s}"]`);y.element(r)&&(r.checked=!0)},getLabel(e,a){switch(e){case"speed":return a===1?Ee.get("normal",this.config):`${a}×`;case"quality":if(y.number(a)){const t=Ee.get(`qualityLabel.${a}`,this.config);return t.length?t:`${a}p`}return Sl(a);case"captions":return Y.getLabel.call(this);default:return null}},setQualityMenu(e){if(!y.element(this.elements.settings.panels.quality))return;const a="quality",t=this.elements.settings.panels.quality.querySelector('[role="menu"]');y.array(e)&&(this.options.quality=vn(e).filter(i=>this.config.quality.options.includes(i)));const n=!y.empty(this.options.quality)&&this.options.quality.length>1;if(O.toggleMenuButton.call(this,a,n),$o(t),O.checkMenu.call(this),!n)return;const s=i=>{const r=Ee.get(`qualityBadge.${i}`,this.config);return r.length?O.createBadge.call(this,r):null};this.options.quality.sort((i,r)=>{const l=this.config.quality.options;return l.indexOf(i)>l.indexOf(r)?1:-1}).forEach(i=>{O.createMenuItem.call(this,{value:i,list:t,type:a,title:O.getLabel.call(this,"quality",i),badge:s(i)})}),O.updateSetting.call(this,a,t)},setCaptionsMenu(){if(!y.element(this.elements.settings.panels.captions))return;const e="captions",a=this.elements.settings.panels.captions.querySelector('[role="menu"]'),t=Y.getTracks.call(this),n=!!t.length;if(O.toggleMenuButton.call(this,e,n),$o(a),O.checkMenu.call(this),!n)return;const s=t.map((i,r)=>({value:r,checked:this.captions.toggled&&this.currentTrack===r,title:Y.getLabel.call(this,i),badge:i.language&&O.createBadge.call(this,i.language.toUpperCase()),list:a,type:"language"}));s.unshift({value:-1,checked:!this.captions.toggled,title:Ee.get("disabled",this.config),list:a,type:"language"}),s.forEach(O.createMenuItem.bind(this)),O.updateSetting.call(this,e,a)},setSpeedMenu(){if(!y.element(this.elements.settings.panels.speed))return;const e="speed",a=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter(n=>n>=this.minimumSpeed&&n<=this.maximumSpeed);const t=!y.empty(this.options.speed)&&this.options.speed.length>1;O.toggleMenuButton.call(this,e,t),$o(a),O.checkMenu.call(this),t&&(this.options.speed.forEach(n=>{O.createMenuItem.call(this,{value:n,list:a,type:e,title:O.getLabel.call(this,"speed",n)})}),O.updateSetting.call(this,e,a))},checkMenu(){const{buttons:e}=this.elements.settings,a=!y.empty(e)&&Object.values(e).some(t=>!t.hidden);gt(this.elements.settings.menu,!a)},focusFirstMenuItem(e,a=!1){if(this.elements.settings.popup.hidden)return;let t=e;y.element(t)||(t=Object.values(this.elements.settings.panels).find(s=>!s.hidden));const n=t.querySelector('[role^="menuitem"]');Nn.call(this,n,a)},toggleMenu(e){const{popup:a}=this.elements.settings,t=this.elements.buttons.settings;if(!y.element(a)||!y.element(t))return;const{hidden:n}=a;let s=n;if(y.boolean(e))s=e;else if(y.keyboardEvent(e)&&e.key==="Escape")s=!1;else if(y.event(e)){const i=y.function(e.composedPath)?e.composedPath()[0]:e.target,r=a.contains(i);if(r||!r&&e.target!==t&&s)return}t.setAttribute("aria-expanded",s),gt(a,!s),Q(this.elements.container,this.config.classNames.menu.open,s),s&&y.keyboardEvent(e)?O.focusFirstMenuItem.call(this,null,!0):s||n||Nn.call(this,t,y.keyboardEvent(e))},getMenuSize(e){const a=e.cloneNode(!0);a.style.position="absolute",a.style.opacity=0,a.removeAttribute("hidden"),e.parentNode.appendChild(a);const t=a.scrollWidth,n=a.scrollHeight;return st(a),{width:t,height:n}},showMenuPanel(e="",a=!1){const t=this.elements.container.querySelector(`#plyr-settings-${this.id}-${e}`);if(!y.element(t))return;const n=t.parentNode,s=Array.from(n.children).find(i=>!i.hidden);if(ue.transitions&&!ue.reducedMotion){n.style.width=`${s.scrollWidth}px`,n.style.height=`${s.scrollHeight}px`;const i=O.getMenuSize.call(this,t),r=l=>{l.target===n&&["width","height"].includes(l.propertyName)&&(n.style.width="",n.style.height="",Ro.call(this,n,Bn,r))};X.call(this,n,Bn,r),n.style.width=`${i.width}px`,n.style.height=`${i.height}px`}gt(s,!0),gt(t,!1),O.focusFirstMenuItem.call(this,t,a)},setDownloadUrl(){const e=this.elements.buttons.download;y.element(e)&&e.setAttribute("href",this.download)},create(e){const{bindMenuItemShortcuts:a,createButton:t,createProgress:n,createRange:s,createTime:i,setQualityMenu:r,setSpeedMenu:l,showMenuPanel:u}=O;this.elements.controls=null,y.array(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(t.call(this,"play-large"));const c=M("div",Ye(this.config.selectors.controls.wrapper));this.elements.controls=c;const m={class:"plyr__controls__item"};return vn(y.array(this.config.controls)?this.config.controls:[]).forEach(p=>{if(p==="restart"&&c.appendChild(t.call(this,"restart",m)),p==="rewind"&&c.appendChild(t.call(this,"rewind",m)),p==="play"&&c.appendChild(t.call(this,"play",m)),p==="fast-forward"&&c.appendChild(t.call(this,"fast-forward",m)),p==="progress"){const f=M("div",{class:`${m.class} plyr__progress__container`}),d=M("div",Ye(this.config.selectors.progress));if(d.appendChild(s.call(this,"seek",{id:`plyr-seek-${e.id}`})),d.appendChild(n.call(this,"buffer")),this.config.tooltips.seek){const h=M("span",{class:this.config.classNames.tooltip},"00:00");d.appendChild(h),this.elements.display.seekTooltip=h}this.elements.progress=d,f.appendChild(this.elements.progress),c.appendChild(f)}if(p==="current-time"&&c.appendChild(i.call(this,"currentTime",m)),p==="duration"&&c.appendChild(i.call(this,"duration",m)),p==="mute"||p==="volume"){let{volume:f}=this.elements;if(y.element(f)&&c.contains(f)||(f=M("div",me({},m,{class:`${m.class} plyr__volume`.trim()})),this.elements.volume=f,c.appendChild(f)),p==="mute"&&f.appendChild(t.call(this,"mute")),p==="volume"&&!Ce.isIos&&!Ce.isIPadOS){const d={max:1,step:.05,value:this.config.volume};f.appendChild(s.call(this,"volume",me(d,{id:`plyr-volume-${e.id}`})))}}if(p==="captions"&&c.appendChild(t.call(this,"captions",m)),p==="settings"&&!y.empty(this.config.settings)){const f=M("div",me({},m,{class:`${m.class} plyr__menu`.trim(),hidden:""}));f.appendChild(t.call(this,"settings",{"aria-haspopup":!0,"aria-controls":`plyr-settings-${e.id}`,"aria-expanded":!1}));const d=M("div",{class:"plyr__menu__container",id:`plyr-settings-${e.id}`,hidden:""}),h=M("div"),g=M("div",{id:`plyr-settings-${e.id}-home`}),b=M("div",{role:"menu"});g.appendChild(b),h.appendChild(g),this.elements.settings.panels.home=g,this.config.settings.forEach(S=>{const _=M("button",me(Ye(this.config.selectors.buttons.settings),{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--forward`,role:"menuitem","aria-haspopup":!0,hidden:""}));a.call(this,_,S),X.call(this,_,"click",()=>{u.call(this,S,!1)});const V=M("span",null,Ee.get(S,this.config)),z=M("span",{class:this.config.classNames.menu.value});z.innerHTML=e[S],V.appendChild(z),_.appendChild(V),b.appendChild(_);const H=M("div",{id:`plyr-settings-${e.id}-${S}`,hidden:""}),ee=M("button",{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--back`});ee.appendChild(M("span",{"aria-hidden":!0},Ee.get(S,this.config))),ee.appendChild(M("span",{class:this.config.classNames.hidden},Ee.get("menuBack",this.config))),X.call(this,H,"keydown",W=>{W.key==="ArrowLeft"&&(W.preventDefault(),W.stopPropagation(),u.call(this,"home",!0))},!1),X.call(this,ee,"click",()=>{u.call(this,"home",!1)}),H.appendChild(ee),H.appendChild(M("div",{role:"menu"})),h.appendChild(H),this.elements.settings.buttons[S]=_,this.elements.settings.panels[S]=H}),d.appendChild(h),f.appendChild(d),c.appendChild(f),this.elements.settings.popup=d,this.elements.settings.menu=f}if(p==="pip"&&ue.pip&&c.appendChild(t.call(this,"pip",m)),p==="airplay"&&ue.airplay&&c.appendChild(t.call(this,"airplay",m)),p==="download"){const f=me({},m,{element:"a",href:this.download,target:"_blank"});this.isHTML5&&(f.download="");const{download:d}=this.config.urls;!y.url(d)&&this.isEmbed&&me(f,{icon:`logo-${this.provider}`,label:this.provider}),c.appendChild(t.call(this,"download",f))}p==="fullscreen"&&c.appendChild(t.call(this,"fullscreen",m))}),this.isHTML5&&r.call(this,mt.getQualityOptions.call(this)),l.call(this),c},inject(){if(this.config.loadSprite){const s=O.getIconUrl.call(this);s.cors&&kl(s.url,"sprite-plyr")}this.id=Math.floor(1e4*Math.random());let e=null;this.elements.controls=null;const a={id:this.id,seektime:this.config.seekTime,title:this.config.title};let t=!0;y.function(this.config.controls)&&(this.config.controls=this.config.controls.call(this,a)),this.config.controls||(this.config.controls=[]),y.element(this.config.controls)||y.string(this.config.controls)?e=this.config.controls:(e=O.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:Y.getLabel.call(this)}),t=!1);let n;if(t&&y.string(this.config.controls)&&(e=(s=>{let i=s;return Object.entries(a).forEach(([r,l])=>{i=Ht(i,`{${r}}`,l)}),i})(e)),y.string(this.config.selectors.controls.container)&&(n=document.querySelector(this.config.selectors.controls.container)),y.element(n)||(n=this.elements.container),n[y.element(e)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",e),y.element(this.elements.controls)||O.findElements.call(this),!y.empty(this.elements.buttons)){const s=i=>{const r=this.config.classNames.controlPressed;i.setAttribute("aria-pressed","false"),Object.defineProperty(i,"pressed",{configurable:!0,enumerable:!0,get:()=>Io(i,r),set(l=!1){Q(i,r,l),i.setAttribute("aria-pressed",l?"true":"false")}})};Object.values(this.elements.buttons).filter(Boolean).forEach(i=>{y.array(i)||y.nodeList(i)?Array.from(i).filter(Boolean).forEach(s):s(i)})}if(Ce.isEdge&&dl(n),this.config.tooltips.controls){const{classNames:s,selectors:i}=this.config,r=`${i.controls.wrapper} ${i.labels} .${s.hidden}`,l=Wt.call(this,r);Array.from(l).forEach(u=>{Q(u,this.config.classNames.hidden,!1),Q(u,this.config.classNames.tooltip,!0)})}},setMediaMetadata(){try{"mediaSession"in navigator&&(navigator.mediaSession.metadata=new window.MediaMetadata({title:this.config.mediaMetadata.title,artist:this.config.mediaMetadata.artist,album:this.config.mediaMetadata.album,artwork:this.config.mediaMetadata.artwork}))}catch{}},setMarkers(){var e,a;if(!this.duration||this.elements.markers)return;const t=(e=this.config.markers)===null||e===void 0||(a=e.points)===null||a===void 0?void 0:a.filter(({time:u})=>u>0&&u<this.duration);if(t==null||!t.length)return;const n=document.createDocumentFragment(),s=document.createDocumentFragment();let i=null;const r=`${this.config.classNames.tooltip}--visible`,l=u=>Q(i,r,u);t.forEach(u=>{const c=M("span",{class:this.config.classNames.marker},""),m=u.time/this.duration*100+"%";i&&(c.addEventListener("mouseenter",()=>{u.label||(i.style.left=m,i.innerHTML=u.label,l(!0))}),c.addEventListener("mouseleave",()=>{l(!1)})),c.addEventListener("click",()=>{this.currentTime=u.time}),c.style.left=m,s.appendChild(c)}),n.appendChild(s),this.config.tooltips.seek||(i=M("span",{class:this.config.classNames.tooltip},""),n.appendChild(i)),this.elements.markers={points:s,tip:i},this.elements.progress.appendChild(n)}};function El(e,a=!0){let t=e;if(a){const n=document.createElement("a");n.href=t,t=n.href}try{return new URL(t)}catch{return null}}function Bl(e){const a=new URLSearchParams;return y.object(e)&&Object.entries(e).forEach(([t,n])=>{a.set(t,n)}),a}const Y={setup(){if(!this.supported.ui)return;if(!this.isVideo||this.isYouTube||this.isHTML5&&!ue.textTracks)return void(y.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&O.setCaptionsMenu.call(this));if(y.element(this.elements.captions)||(this.elements.captions=M("div",Ye(this.config.selectors.captions)),this.elements.captions.setAttribute("dir","auto"),US(this.elements.captions,this.elements.wrapper)),Ce.isIE&&window.URL){const n=this.media.querySelectorAll("track");Array.from(n).forEach(s=>{const i=s.getAttribute("src"),r=El(i);r!==null&&r.hostname!==window.location.href.hostname&&["http:","https:"].includes(r.protocol)&&qt(i,"blob").then(l=>{s.setAttribute("src",window.URL.createObjectURL(l))}).catch(()=>{st(s)})})}const e=vn((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map(n=>n.split("-")[0]));let a=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase();a==="auto"&&([a]=e);let t=this.storage.get("captions");if(y.boolean(t)||({active:t}=this.config.captions),Object.assign(this.captions,{toggled:!1,active:t,language:a,languages:e}),this.isHTML5){const n=this.config.captions.update?"addtrack removetrack":"removetrack";X.call(this,this.media.textTracks,n,Y.update.bind(this))}setTimeout(Y.update.bind(this),0)},update(){const e=Y.getTracks.call(this,!0),{active:a,language:t,meta:n,currentTrackNode:s}=this.captions,i=!!e.find(r=>r.language===t);this.isHTML5&&this.isVideo&&e.filter(r=>!n.get(r)).forEach(r=>{this.debug.log("Track added",r),n.set(r,{default:r.mode==="showing"}),r.mode==="showing"&&(r.mode="hidden"),X.call(this,r,"cuechange",()=>Y.updateCues.call(this))}),(i&&this.language!==t||!e.includes(s))&&(Y.setLanguage.call(this,t),Y.toggle.call(this,a&&i)),this.elements&&Q(this.elements.container,this.config.classNames.captions.enabled,!y.empty(e)),y.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&O.setCaptionsMenu.call(this)},toggle(e,a=!0){if(!this.supported.ui)return;const{toggled:t}=this.captions,n=this.config.classNames.captions.active,s=y.nullOrUndefined(e)?!t:e;if(s!==t){if(a||(this.captions.active=s,this.storage.set({captions:s})),!this.language&&s&&!a){const i=Y.getTracks.call(this),r=Y.findTrack.call(this,[this.captions.language,...this.captions.languages],!0);return this.captions.language=r.language,void Y.set.call(this,i.indexOf(r))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=s),Q(this.elements.container,n,s),this.captions.toggled=s,O.updateSetting.call(this,"captions"),j.call(this,this.media,s?"captionsenabled":"captionsdisabled")}setTimeout(()=>{s&&this.captions.toggled&&(this.captions.currentTrackNode.mode="hidden")})},set(e,a=!0){const t=Y.getTracks.call(this);if(e!==-1)if(y.number(e))if(e in t){if(this.captions.currentTrack!==e){this.captions.currentTrack=e;const n=t[e],{language:s}=n||{};this.captions.currentTrackNode=n,O.updateSetting.call(this,"captions"),a||(this.captions.language=s,this.storage.set({language:s})),this.isVimeo&&this.embed.enableTextTrack(s),j.call(this,this.media,"languagechange")}Y.toggle.call(this,!0,a),this.isHTML5&&this.isVideo&&Y.updateCues.call(this)}else this.debug.warn("Track not found",e);else this.debug.warn("Invalid caption argument",e);else Y.toggle.call(this,!1,a)},setLanguage(e,a=!0){if(!y.string(e))return void this.debug.warn("Invalid language argument",e);const t=e.toLowerCase();this.captions.language=t;const n=Y.getTracks.call(this),s=Y.findTrack.call(this,[t]);Y.set.call(this,n.indexOf(s),a)},getTracks(e=!1){return Array.from((this.media||{}).textTracks||[]).filter(a=>!this.isHTML5||e||this.captions.meta.has(a)).filter(a=>["captions","subtitles"].includes(a.kind))},findTrack(e,a=!1){const t=Y.getTracks.call(this),n=r=>Number((this.captions.meta.get(r)||{}).default),s=Array.from(t).sort((r,l)=>n(l)-n(r));let i;return e.every(r=>(i=s.find(l=>l.language===r),!i)),i||(a?s[0]:void 0)},getCurrentTrack(){return Y.getTracks.call(this)[this.currentTrack]},getLabel(e){let a=e;return!y.track(a)&&ue.textTracks&&this.captions.toggled&&(a=Y.getCurrentTrack.call(this)),y.track(a)?y.empty(a.label)?y.empty(a.language)?Ee.get("enabled",this.config):e.language.toUpperCase():a.label:Ee.get("disabled",this.config)},updateCues(e){if(!this.supported.ui)return;if(!y.element(this.elements.captions))return void this.debug.warn("No captions element to render to");if(!y.nullOrUndefined(e)&&!Array.isArray(e))return void this.debug.warn("updateCues: Invalid input",e);let a=e;if(!a){const n=Y.getCurrentTrack.call(this);a=Array.from((n||{}).activeCues||[]).map(s=>s.getCueAsHTML()).map(t_)}const t=a.map(n=>n.trim()).join(`
|
|
37
|
+
`);if(t!==this.elements.captions.innerHTML){$o(this.elements.captions);const n=M("span",Ye(this.config.selectors.caption));n.innerHTML=t,this.elements.captions.appendChild(n),j.call(this,this.media,"cuechange")}}},xl={enabled:!0,title:"",debug:!1,autoplay:!1,autopause:!0,playsinline:!0,seekTime:10,volume:1,muted:!1,duration:null,displayDuration:!0,invertTime:!0,toggleInvert:!0,ratio:null,clickToPlay:!0,hideControls:!0,resetOnEnd:!1,disableContextMenu:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/3.7.8/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{default:576,options:[4320,2880,2160,1440,1080,720,576,480,360,240],forced:!1,onChange:null},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2,4]},keyboard:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},captions:{active:!1,language:"auto",update:!1},fullscreen:{enabled:!0,fallback:!0,iosNative:!1},storage:{enabled:!0,key:"plyr"},controls:["play-large","play","progress","current-time","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["captions","quality","speed"],i18n:{restart:"Restart",rewind:"Rewind {seektime}s",play:"Play",pause:"Pause",fastForward:"Forward {seektime}s",seek:"Seek",seekLabel:"{currentTime} of {duration}",played:"Played",buffered:"Buffered",currentTime:"Current time",duration:"Duration",volume:"Volume",mute:"Mute",unmute:"Unmute",enableCaptions:"Enable captions",disableCaptions:"Disable captions",download:"Download",enterFullscreen:"Enter fullscreen",exitFullscreen:"Exit fullscreen",frameTitle:"Player for {title}",captions:"Captions",settings:"Settings",pip:"PIP",menuBack:"Go back to previous menu",speed:"Speed",normal:"Normal",quality:"Quality",loop:"Loop",start:"Start",end:"End",all:"All",reset:"Reset",disabled:"Disabled",enabled:"Enabled",advertisement:"Ad",qualityBadge:{2160:"4K",1440:"HD",1080:"HD",720:"HD",576:"SD",480:"SD"}},urls:{download:null,vimeo:{sdk:"https://player.vimeo.com/api/player.js",iframe:"https://player.vimeo.com/video/{0}?{1}",api:"https://vimeo.com/api/oembed.json?url={0}"},youtube:{sdk:"https://www.youtube.com/iframe_api",api:"https://noembed.com/embed?url=https://www.youtube.com/watch?v={0}"},googleIMA:{sdk:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,fastForward:null,mute:null,volume:null,captions:null,download:null,fullscreen:null,pip:null,airplay:null,speed:null,quality:null,loop:null,language:null},events:["ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied","ratechange","cuechange","download","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled","languagechange","controlshidden","controlsshown","ready","statechange","qualitychange","adsloaded","adscontentpause","adscontentresume","adstarted","adsmidpoint","adscomplete","adsallcomplete","adsimpression","adsclick"],selectors:{editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',fastForward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',download:'[data-plyr="download"]',fullscreen:'[data-plyr="fullscreen"]',pip:'[data-plyr="pip"]',airplay:'[data-plyr="airplay"]',settings:'[data-plyr="settings"]',loop:'[data-plyr="loop"]'},inputs:{seek:'[data-plyr="seek"]',volume:'[data-plyr="volume"]',speed:'[data-plyr="speed"]',language:'[data-plyr="language"]',quality:'[data-plyr="quality"]'},display:{currentTime:".plyr__time--current",duration:".plyr__time--duration",buffer:".plyr__progress__buffer",loop:".plyr__progress__loop",volume:".plyr__volume--display"},progress:".plyr__progress",captions:".plyr__captions",caption:".plyr__caption"},classNames:{type:"plyr--{0}",provider:"plyr--{0}",video:"plyr__video-wrapper",embed:"plyr__video-embed",videoFixedRatio:"plyr__video-wrapper--fixed-ratio",embedContainer:"plyr__video-embed__container",poster:"plyr__poster",posterEnabled:"plyr__poster-enabled",ads:"plyr__ads",control:"plyr__control",controlPressed:"plyr__control--pressed",playing:"plyr--playing",paused:"plyr--paused",stopped:"plyr--stopped",loading:"plyr--loading",hover:"plyr--hover",tooltip:"plyr__tooltip",cues:"plyr__cues",marker:"plyr__progress__marker",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isTouch:"plyr--is-touch",uiSupported:"plyr--full-ui",noTransition:"plyr--no-transition",display:{time:"plyr__time"},menu:{value:"plyr__menu__value",badge:"plyr__badge",open:"plyr--menu-open"},captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback"},pip:{supported:"plyr--pip-supported",active:"plyr--pip-active"},airplay:{supported:"plyr--airplay-supported",active:"plyr--airplay-active"},previewThumbnails:{thumbContainer:"plyr__preview-thumb",thumbContainerShown:"plyr__preview-thumb--is-shown",imageContainer:"plyr__preview-thumb__image-container",timeContainer:"plyr__preview-thumb__time-container",scrubbingContainer:"plyr__preview-scrubbing",scrubbingContainerShown:"plyr__preview-scrubbing--is-shown"}},attributes:{embed:{provider:"data-plyr-provider",id:"data-plyr-embed-id",hash:"data-plyr-embed-hash"}},ads:{enabled:!1,publisherId:"",tagUrl:""},previewThumbnails:{enabled:!1,src:""},vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,customControls:!0,referrerPolicy:null,premium:!1},youtube:{rel:0,showinfo:0,iv_load_policy:3,modestbranding:1,customControls:!0,noCookie:!1},mediaMetadata:{title:"",artist:"",album:"",artwork:[]},markers:{enabled:!1,points:[]}},Vn={active:"picture-in-picture",inactive:"inline"},ut={html5:"html5",youtube:"youtube",vimeo:"vimeo"},$n={audio:"audio",video:"video"};function n_(e){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(e)?ut.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(e)?ut.vimeo:null}const Pn=()=>{};class i_{constructor(a=!1){this.enabled=window.console&&a,this.enabled&&this.log("Debugging enabled")}get log(){return this.enabled?Function.prototype.bind.call(console.log,console):Pn}get warn(){return this.enabled?Function.prototype.bind.call(console.warn,console):Pn}get error(){return this.enabled?Function.prototype.bind.call(console.error,console):Pn}}class We{constructor(a){A(this,"onChange",()=>{if(!this.supported)return;const t=this.player.elements.buttons.fullscreen;y.element(t)&&(t.pressed=this.active);const n=this.target===this.player.media?this.target:this.player.elements.container;j.call(this.player,n,this.active?"enterfullscreen":"exitfullscreen",!0)}),A(this,"toggleFallback",(t=!1)=>{if(t?this.scrollPosition={x:window.scrollX??0,y:window.scrollY??0}:window.scrollTo(this.scrollPosition.x,this.scrollPosition.y),document.body.style.overflow=t?"hidden":"",Q(this.target,this.player.config.classNames.fullscreen.fallback,t),Ce.isIos){let n=document.head.querySelector('meta[name="viewport"]');const s="viewport-fit=cover";n||(n=document.createElement("meta"),n.setAttribute("name","viewport"));const i=y.string(n.content)&&n.content.includes(s);t?(this.cleanupViewport=!i,i||(n.content+=`,${s}`)):this.cleanupViewport&&(n.content=n.content.split(",").filter(r=>r.trim()!==s).join(","))}this.onChange()}),A(this,"trapFocus",t=>{if(Ce.isIos||Ce.isIPadOS||!this.active||t.key!=="Tab")return;const n=document.activeElement,s=Wt.call(this.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),[i]=s,r=s[s.length-1];n!==r||t.shiftKey?n===i&&t.shiftKey&&(r.focus(),t.preventDefault()):(i.focus(),t.preventDefault())}),A(this,"update",()=>{if(this.supported){let t;t=this.forceFallback?"Fallback (forced)":We.nativeSupported?"Native":"Fallback",this.player.debug.log(`${t} fullscreen enabled`)}else this.player.debug.log("Fullscreen not supported and fallback disabled");Q(this.player.elements.container,this.player.config.classNames.fullscreen.enabled,this.supported)}),A(this,"enter",()=>{this.supported&&(Ce.isIos&&this.player.config.fullscreen.iosNative?this.player.isVimeo?this.player.embed.requestFullscreen():this.target.webkitEnterFullscreen():!We.nativeSupported||this.forceFallback?this.toggleFallback(!0):this.prefix?y.empty(this.prefix)||this.target[`${this.prefix}Request${this.property}`]():this.target.requestFullscreen({navigationUI:"hide"}))}),A(this,"exit",()=>{if(this.supported)if(Ce.isIos&&this.player.config.fullscreen.iosNative)this.player.isVimeo?this.player.embed.exitFullscreen():this.target.webkitEnterFullscreen(),Qe(this.player.play());else if(!We.nativeSupported||this.forceFallback)this.toggleFallback(!1);else if(this.prefix){if(!y.empty(this.prefix)){const t=this.prefix==="moz"?"Cancel":"Exit";document[`${this.prefix}${t}${this.property}`]()}}else(document.cancelFullScreen||document.exitFullscreen).call(document)}),A(this,"toggle",()=>{this.active?this.exit():this.enter()}),this.player=a,this.prefix=We.prefix,this.property=We.property,this.scrollPosition={x:0,y:0},this.forceFallback=a.config.fullscreen.fallback==="force",this.player.elements.fullscreen=a.config.fullscreen.container&&HS(this.player.elements.container,a.config.fullscreen.container),X.call(this.player,document,this.prefix==="ms"?"MSFullscreenChange":`${this.prefix}fullscreenchange`,()=>{this.onChange()}),X.call(this.player,this.player.elements.container,"dblclick",t=>{y.element(this.player.elements.controls)&&this.player.elements.controls.contains(t.target)||this.player.listeners.proxy(t,this.toggle,"fullscreen")}),X.call(this,this.player.elements.container,"keydown",t=>this.trapFocus(t)),this.update()}static get nativeSupported(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}get useNative(){return We.nativeSupported&&!this.forceFallback}static get prefix(){if(y.function(document.exitFullscreen))return"";let a="";return["webkit","moz","ms"].some(t=>!(!y.function(document[`${t}ExitFullscreen`])&&!y.function(document[`${t}CancelFullScreen`]))&&(a=t,!0)),a}static get property(){return this.prefix==="moz"?"FullScreen":"Fullscreen"}get supported(){return[this.player.config.fullscreen.enabled,this.player.isVideo,We.nativeSupported||this.player.config.fullscreen.fallback,!this.player.isYouTube||We.nativeSupported||!Ce.isIos||this.player.config.playsinline&&!this.player.config.fullscreen.iosNative].every(Boolean)}get active(){if(!this.supported)return!1;if(!We.nativeSupported||this.forceFallback)return Io(this.target,this.player.config.classNames.fullscreen.fallback);const a=this.prefix?this.target.getRootNode()[`${this.prefix}${this.property}Element`]:this.target.getRootNode().fullscreenElement;return a&&a.shadowRoot?a===this.target.getRootNode().host:a===this.target}get target(){return Ce.isIos&&this.player.config.fullscreen.iosNative?this.player.media:this.player.elements.fullscreen??this.player.elements.container}}function Fo(e,a=1){return new Promise((t,n)=>{const s=new Image,i=()=>{delete s.onload,delete s.onerror,(s.naturalWidth>=a?t:n)(s)};Object.assign(s,{onload:i,onerror:i,src:e})})}const oe={addStyleHook(){Q(this.elements.container,this.config.selectors.container.replace(".",""),!0),Q(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls(e=!1){e&&this.isHTML5?this.media.setAttribute("controls",""):this.media.removeAttribute("controls")},build(){if(this.listeners.media(),!this.supported.ui)return this.debug.warn(`Basic support only for ${this.provider} ${this.type}`),void oe.toggleNativeControls.call(this,!0);y.element(this.elements.controls)||(O.inject.call(this),this.listeners.controls()),oe.toggleNativeControls.call(this),this.isHTML5&&Y.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,O.updateVolume.call(this),O.timeUpdate.call(this),O.durationUpdate.call(this),oe.checkPlaying.call(this),Q(this.elements.container,this.config.classNames.pip.supported,ue.pip&&this.isHTML5&&this.isVideo),Q(this.elements.container,this.config.classNames.airplay.supported,ue.airplay&&this.isHTML5),Q(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout(()=>{j.call(this,this.media,"ready")},0),oe.setTitle.call(this),this.poster&&oe.setPoster.call(this,this.poster,!1).catch(()=>{}),this.config.duration&&O.durationUpdate.call(this),this.config.mediaMetadata&&O.setMediaMetadata.call(this)},setTitle(){let e=Ee.get("play",this.config);if(y.string(this.config.title)&&!y.empty(this.config.title)&&(e+=`, ${this.config.title}`),Array.from(this.elements.buttons.play||[]).forEach(a=>{a.setAttribute("aria-label",e)}),this.isEmbed){const a=be.call(this,"iframe");if(!y.element(a))return;const t=y.empty(this.config.title)?"video":this.config.title,n=Ee.get("frameTitle",this.config);a.setAttribute("title",n.replace("{title}",t))}},togglePoster(e){Q(this.elements.container,this.config.classNames.posterEnabled,e)},setPoster(e,a=!0){return a&&this.poster?Promise.reject(new Error("Poster already set")):(this.media.setAttribute("data-poster",e),this.elements.poster.removeAttribute("hidden"),JS.call(this).then(()=>Fo(e)).catch(t=>{throw e===this.poster&&oe.togglePoster.call(this,!1),t}).then(()=>{if(e!==this.poster)throw new Error("setPoster cancelled by later call to setPoster")}).then(()=>(Object.assign(this.elements.poster.style,{backgroundImage:`url('${e}')`,backgroundSize:""}),oe.togglePoster.call(this,!0),e)))},checkPlaying(e){Q(this.elements.container,this.config.classNames.playing,this.playing),Q(this.elements.container,this.config.classNames.paused,this.paused),Q(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach(a=>{Object.assign(a,{pressed:this.playing}),a.setAttribute("aria-label",Ee.get(this.playing?"pause":"play",this.config))}),y.event(e)&&e.type==="timeupdate"||oe.toggleControls.call(this)},checkLoading(e){this.loading=["stalled","waiting"].includes(e.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout(()=>{Q(this.elements.container,this.config.classNames.loading,this.loading),oe.toggleControls.call(this)},this.loading?250:0)},toggleControls(e){const{controls:a}=this.elements;if(a&&this.config.hideControls){const t=this.touch&&this.lastSeekTime+2e3>Date.now();this.toggleControls(!!(e||this.loading||this.paused||a.pressed||a.hover||t))}},migrateStyles(){Object.values({...this.media.style}).filter(e=>!y.empty(e)&&y.string(e)&&e.startsWith("--plyr")).forEach(e=>{this.elements.container.style.setProperty(e,this.media.style.getPropertyValue(e)),this.media.style.removeProperty(e)}),y.empty(this.media.style)&&this.media.removeAttribute("style")}};class s_{constructor(a){A(this,"firstTouch",()=>{const{player:t}=this,{elements:n}=t;t.touch=!0,Q(n.container,t.config.classNames.isTouch,!0)}),A(this,"global",(t=!0)=>{const{player:n}=this;n.config.keyboard.global&&Ut.call(n,window,"keydown keyup",this.handleKey,t,!1),Ut.call(n,document.body,"click",this.toggleMenu,t),Tn.call(n,document.body,"touchstart",this.firstTouch)}),A(this,"container",()=>{const{player:t}=this,{config:n,elements:s,timers:i}=t;!n.keyboard.global&&n.keyboard.focused&&X.call(t,s.container,"keydown keyup",this.handleKey,!1),X.call(t,s.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",u=>{const{controls:c}=s;c&&u.type==="enterfullscreen"&&(c.pressed=!1,c.hover=!1);let m=0;["touchstart","touchmove","mousemove"].includes(u.type)&&(oe.toggleControls.call(t,!0),m=t.touch?3e3:2e3),clearTimeout(i.controls),i.controls=setTimeout(()=>oe.toggleControls.call(t,!1),m)});const r=()=>{if(!t.isVimeo||t.config.vimeo.premium)return;const u=s.wrapper,{active:c}=t.fullscreen,[m,p]=On.call(t),f=fl(`aspect-ratio: ${m} / ${p}`);if(!c)return void(f?(u.style.width=null,u.style.height=null):(u.style.maxWidth=null,u.style.margin=null));const[d,h]=KS(),g=d/h>m/p;f?(u.style.width=g?"auto":"100%",u.style.height=g?"100%":"auto"):(u.style.maxWidth=g?h/p*m+"px":null,u.style.margin=g?"0 auto":null)},l=()=>{clearTimeout(i.resized),i.resized=setTimeout(r,50)};X.call(t,s.container,"enterfullscreen exitfullscreen",u=>{const{target:c}=t.fullscreen;c===s.container&&(!t.isEmbed&&y.empty(t.config.ratio)||(r(),(u.type==="enterfullscreen"?X:Ro).call(t,window,"resize",l)))})}),A(this,"media",()=>{const{player:t}=this,{elements:n}=t;if(X.call(t,t.media,"timeupdate seeking seeked",i=>O.timeUpdate.call(t,i)),X.call(t,t.media,"durationchange loadeddata loadedmetadata",i=>O.durationUpdate.call(t,i)),X.call(t,t.media,"ended",()=>{t.isHTML5&&t.isVideo&&t.config.resetOnEnd&&(t.restart(),t.pause())}),X.call(t,t.media,"progress playing seeking seeked",i=>O.updateProgress.call(t,i)),X.call(t,t.media,"volumechange",i=>O.updateVolume.call(t,i)),X.call(t,t.media,"playing play pause ended emptied timeupdate",i=>oe.checkPlaying.call(t,i)),X.call(t,t.media,"waiting canplay seeked playing",i=>oe.checkLoading.call(t,i)),t.supported.ui&&t.config.clickToPlay&&!t.isAudio){const i=be.call(t,`.${t.config.classNames.video}`);if(!y.element(i))return;X.call(t,n.container,"click",r=>{([n.container,i].includes(r.target)||i.contains(r.target))&&(t.touch&&t.config.hideControls||(t.ended?(this.proxy(r,t.restart,"restart"),this.proxy(r,()=>{Qe(t.play())},"play")):this.proxy(r,()=>{Qe(t.togglePlay())},"play")))})}t.supported.ui&&t.config.disableContextMenu&&X.call(t,n.wrapper,"contextmenu",i=>{i.preventDefault()},!1),X.call(t,t.media,"volumechange",()=>{t.storage.set({volume:t.volume,muted:t.muted})}),X.call(t,t.media,"ratechange",()=>{O.updateSetting.call(t,"speed"),t.storage.set({speed:t.speed})}),X.call(t,t.media,"qualitychange",i=>{O.updateSetting.call(t,"quality",null,i.detail.quality)}),X.call(t,t.media,"ready qualitychange",()=>{O.setDownloadUrl.call(t)});const s=t.config.events.concat(["keyup","keydown"]).join(" ");X.call(t,t.media,s,i=>{let{detail:r={}}=i;i.type==="error"&&(r=t.media.error),j.call(t,n.container,i.type,!0,r)})}),A(this,"proxy",(t,n,s)=>{const{player:i}=this,r=i.config.listeners[s];let l=!0;y.function(r)&&(l=r.call(i,t)),l!==!1&&y.function(n)&&n.call(i,t)}),A(this,"bind",(t,n,s,i,r=!0)=>{const{player:l}=this,u=l.config.listeners[i],c=y.function(u);X.call(l,t,n,m=>this.proxy(m,s,i),r&&!c)}),A(this,"controls",()=>{const{player:t}=this,{elements:n}=t,s=Ce.isIE?"change":"input";if(n.buttons.play&&Array.from(n.buttons.play).forEach(i=>{this.bind(i,"click",()=>{Qe(t.togglePlay())},"play")}),this.bind(n.buttons.restart,"click",t.restart,"restart"),this.bind(n.buttons.rewind,"click",()=>{t.lastSeekTime=Date.now(),t.rewind()},"rewind"),this.bind(n.buttons.fastForward,"click",()=>{t.lastSeekTime=Date.now(),t.forward()},"fastForward"),this.bind(n.buttons.mute,"click",()=>{t.muted=!t.muted},"mute"),this.bind(n.buttons.captions,"click",()=>t.toggleCaptions()),this.bind(n.buttons.download,"click",()=>{j.call(t,t.media,"download")},"download"),this.bind(n.buttons.fullscreen,"click",()=>{t.fullscreen.toggle()},"fullscreen"),this.bind(n.buttons.pip,"click",()=>{t.pip="toggle"},"pip"),this.bind(n.buttons.airplay,"click",t.airplay,"airplay"),this.bind(n.buttons.settings,"click",i=>{i.stopPropagation(),i.preventDefault(),O.toggleMenu.call(t,i)},null,!1),this.bind(n.buttons.settings,"keyup",i=>{[" ","Enter"].includes(i.key)&&(i.key!=="Enter"?(i.preventDefault(),i.stopPropagation(),O.toggleMenu.call(t,i)):O.focusFirstMenuItem.call(t,null,!0))},null,!1),this.bind(n.settings.menu,"keydown",i=>{i.key==="Escape"&&O.toggleMenu.call(t,i)}),this.bind(n.inputs.seek,"mousedown mousemove",i=>{const r=n.progress.getBoundingClientRect(),l=100/r.width*(i.pageX-r.left);i.currentTarget.setAttribute("seek-value",l)}),this.bind(n.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",i=>{const r=i.currentTarget,l="play-on-seeked";if(y.keyboardEvent(i)&&!["ArrowLeft","ArrowRight"].includes(i.key))return;t.lastSeekTime=Date.now();const u=r.hasAttribute(l),c=["mouseup","touchend","keyup"].includes(i.type);u&&c?(r.removeAttribute(l),Qe(t.play())):!c&&t.playing&&(r.setAttribute(l,""),t.pause())}),Ce.isIos){const i=Wt.call(t,'input[type="range"]');Array.from(i).forEach(r=>this.bind(r,s,l=>dl(l.target)))}this.bind(n.inputs.seek,s,i=>{const r=i.currentTarget;let l=r.getAttribute("seek-value");y.empty(l)&&(l=r.value),r.removeAttribute("seek-value"),t.currentTime=l/r.max*t.duration},"seek"),this.bind(n.progress,"mouseenter mouseleave mousemove",i=>O.updateSeekTooltip.call(t,i)),this.bind(n.progress,"mousemove touchmove",i=>{const{previewThumbnails:r}=t;r&&r.loaded&&r.startMove(i)}),this.bind(n.progress,"mouseleave touchend click",()=>{const{previewThumbnails:i}=t;i&&i.loaded&&i.endMove(!1,!0)}),this.bind(n.progress,"mousedown touchstart",i=>{const{previewThumbnails:r}=t;r&&r.loaded&&r.startScrubbing(i)}),this.bind(n.progress,"mouseup touchend",i=>{const{previewThumbnails:r}=t;r&&r.loaded&&r.endScrubbing(i)}),Ce.isWebKit&&Array.from(Wt.call(t,'input[type="range"]')).forEach(i=>{this.bind(i,"input",r=>O.updateRangeFill.call(t,r.target))}),t.config.toggleInvert&&!y.element(n.display.duration)&&this.bind(n.display.currentTime,"click",()=>{t.currentTime!==0&&(t.config.invertTime=!t.config.invertTime,O.timeUpdate.call(t))}),this.bind(n.inputs.volume,s,i=>{t.volume=i.target.value},"volume"),this.bind(n.controls,"mouseenter mouseleave",i=>{n.controls.hover=!t.touch&&i.type==="mouseenter"}),n.fullscreen&&Array.from(n.fullscreen.children).filter(i=>!i.contains(n.container)).forEach(i=>{this.bind(i,"mouseenter mouseleave",r=>{n.controls&&(n.controls.hover=!t.touch&&r.type==="mouseenter")})}),this.bind(n.controls,"mousedown mouseup touchstart touchend touchcancel",i=>{n.controls.pressed=["mousedown","touchstart"].includes(i.type)}),this.bind(n.controls,"focusin",()=>{const{config:i,timers:r}=t;Q(n.controls,i.classNames.noTransition,!0),oe.toggleControls.call(t,!0),setTimeout(()=>{Q(n.controls,i.classNames.noTransition,!1)},0);const l=this.touch?3e3:4e3;clearTimeout(r.controls),r.controls=setTimeout(()=>oe.toggleControls.call(t,!1),l)}),this.bind(n.inputs.volume,"wheel",i=>{const r=i.webkitDirectionInvertedFromDevice,[l,u]=[i.deltaX,-i.deltaY].map(p=>r?-p:p),c=Math.sign(Math.abs(l)>Math.abs(u)?l:u);t.increaseVolume(c/50);const{volume:m}=t.media;(c===1&&m<1||c===-1&&m>0)&&i.preventDefault()},"volume",!1)}),this.player=a,this.lastKey=null,this.focusTimer=null,this.lastKeyDown=null,this.handleKey=this.handleKey.bind(this),this.toggleMenu=this.toggleMenu.bind(this),this.firstTouch=this.firstTouch.bind(this)}handleKey(a){const{player:t}=this,{elements:n}=t,{key:s,type:i,altKey:r,ctrlKey:l,metaKey:u,shiftKey:c}=a,m=i==="keydown",p=m&&s===this.lastKey;if(!(r||l||u||c)&&s){if(m){const d=document.activeElement;if(y.element(d)){const{editable:h}=t.config.selectors,{seek:g}=n.inputs;if(d!==g&&ft(d,h)||a.key===" "&&ft(d,'button, [role^="menuitem"]'))return}switch([" ","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","0","1","2","3","4","5","6","7","8","9","c","f","k","l","m"].includes(s)&&(a.preventDefault(),a.stopPropagation()),s){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":p||(f=parseInt(s,10),t.currentTime=t.duration/10*f);break;case" ":case"k":p||Qe(t.togglePlay());break;case"ArrowUp":t.increaseVolume(.1);break;case"ArrowDown":t.decreaseVolume(.1);break;case"m":p||(t.muted=!t.muted);break;case"ArrowRight":t.forward();break;case"ArrowLeft":t.rewind();break;case"f":t.fullscreen.toggle();break;case"c":p||t.toggleCaptions();break;case"l":t.loop=!t.loop}s==="Escape"&&!t.fullscreen.usingNative&&t.fullscreen.active&&t.fullscreen.toggle(),this.lastKey=s}else this.lastKey=null;var f}}toggleMenu(a){O.toggleMenu.call(this.player,a)}}function r_(e,a){return e(a={exports:{}},a.exports),a.exports}var l_=r_(function(e,a){e.exports=function(){var t=function(){},n={},s={},i={};function r(f,d){f=f.push?f:[f];var h,g,b,S=[],_=f.length,V=_;for(h=function(z,H){H.length&&S.push(z),--V||d(S)};_--;)g=f[_],(b=s[g])?h(g,b):(i[g]=i[g]||[]).push(h)}function l(f,d){if(f){var h=i[f];if(s[f]=d,h)for(;h.length;)h[0](f,d),h.splice(0,1)}}function u(f,d){f.call&&(f={success:f}),d.length?(f.error||t)(d):(f.success||t)(f)}function c(f,d,h,g){var b,S,_=document,V=h.async,z=(h.numRetries||0)+1,H=h.before||t,ee=f.replace(/[\?|#].*$/,""),W=f.replace(/^(css|img)!/,"");g=g||0,/(^css!|\.css$)/.test(ee)?((S=_.createElement("link")).rel="stylesheet",S.href=W,(b="hideFocus"in S)&&S.relList&&(b=0,S.rel="preload",S.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(ee)?(S=_.createElement("img")).src=W:((S=_.createElement("script")).src=f,S.async=V===void 0||V),S.onload=S.onerror=S.onbeforeload=function(le){var $=le.type[0];if(b)try{S.sheet.cssText.length||($="e")}catch(ae){ae.code!=18&&($="e")}if($=="e"){if((g+=1)<z)return c(f,d,h,g)}else if(S.rel=="preload"&&S.as=="style")return S.rel="stylesheet";d(f,$,le.defaultPrevented)},H(f,S)!==!1&&_.head.appendChild(S)}function m(f,d,h){var g,b,S=(f=f.push?f:[f]).length,_=S,V=[];for(g=function(z,H,ee){if(H=="e"&&V.push(z),H=="b"){if(!ee)return;V.push(z)}--S||d(V)},b=0;b<_;b++)c(f[b],g,h)}function p(f,d,h){var g,b;if(d&&d.trim&&(g=d),b=(g?h:d)||{},g){if(g in n)throw"LoadJS";n[g]=!0}function S(_,V){m(f,function(z){u(b,z),_&&u({success:_,error:V},z),l(g,z)},b)}if(b.returnPromise)return new Promise(S);S()}return p.ready=function(f,d){return r(f,function(h){u(d,h)}),p},p.done=function(f){l(f,[])},p.reset=function(){n={},s={},i={}},p.isDefined=function(f){return f in n},p}()});function In(e){return new Promise((a,t)=>{l_(e,{success:a,error:t})})}function c_(e){return y.empty(e)?null:y.number(Number(e))?e:e.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:e}function d_(e){const a=e.match(/^.*(vimeo.com\/|video\/)(\d+)(\?.*&*h=|\/)+([\d,a-f]+)/);return a&&a.length===5?a[4]:null}function Jt(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,j.call(this,this.media,e?"play":"pause"))}const Rn={setup(){const e=this;Q(e.elements.wrapper,e.config.classNames.embed,!0),e.options.speed=e.config.speed.options,Bt.call(e),y.object(window.Vimeo)?Rn.ready.call(e):In(e.config.urls.vimeo.sdk).then(()=>{Rn.ready.call(e)}).catch(a=>{e.debug.warn("Vimeo SDK (player.js) failed to load",a)})},ready(){const e=this,a=e.config.vimeo,{premium:t,referrerPolicy:n,...s}=a;let i=e.media.getAttribute("src"),r="";y.empty(i)?(i=e.media.getAttribute(e.config.attributes.embed.id),r=e.media.getAttribute(e.config.attributes.embed.hash)):r=d_(i);const l=r?{h:r}:{};t&&Object.assign(s,{controls:!1,sidedock:!1});const u=Bl({loop:e.config.loop.active,autoplay:e.autoplay,muted:e.muted,gesture:"media",playsinline:e.config.playsinline,...l,...s}),c=c_(i),m=M("iframe"),p=An(e.config.urls.vimeo.iframe,c,u);if(m.setAttribute("src",p),m.setAttribute("allowfullscreen",""),m.setAttribute("allow",["autoplay","fullscreen","picture-in-picture","encrypted-media","accelerometer","gyroscope"].join("; ")),y.empty(n)||m.setAttribute("referrerPolicy",n),t||!a.customControls)m.setAttribute("data-poster",e.poster),e.media=Po(m,e.media);else{const _=M("div",{class:e.config.classNames.embedContainer,"data-poster":e.poster});_.appendChild(m),e.media=Po(_,e.media)}a.customControls||qt(An(e.config.urls.vimeo.api,p)).then(_=>{!y.empty(_)&&_.thumbnail_url&&oe.setPoster.call(e,_.thumbnail_url).catch(()=>{})}),e.embed=new window.Vimeo.Player(m,{autopause:e.config.autopause,muted:e.muted}),e.media.paused=!0,e.media.currentTime=0,e.supported.ui&&e.embed.disableTextTrack(),e.media.play=()=>(Jt.call(e,!0),e.embed.play()),e.media.pause=()=>(Jt.call(e,!1),e.embed.pause()),e.media.stop=()=>{e.pause(),e.currentTime=0};let{currentTime:f}=e.media;Object.defineProperty(e.media,"currentTime",{get:()=>f,set(_){const{embed:V,media:z,paused:H,volume:ee}=e,W=H&&!V.hasPlayed;z.seeking=!0,j.call(e,z,"seeking"),Promise.resolve(W&&V.setVolume(0)).then(()=>V.setCurrentTime(_)).then(()=>W&&V.pause()).then(()=>W&&V.setVolume(ee)).catch(()=>{})}});let d=e.config.speed.selected;Object.defineProperty(e.media,"playbackRate",{get:()=>d,set(_){e.embed.setPlaybackRate(_).then(()=>{d=_,j.call(e,e.media,"ratechange")}).catch(()=>{e.options.speed=[1]})}});let{volume:h}=e.config;Object.defineProperty(e.media,"volume",{get:()=>h,set(_){e.embed.setVolume(_).then(()=>{h=_,j.call(e,e.media,"volumechange")})}});let{muted:g}=e.config;Object.defineProperty(e.media,"muted",{get:()=>g,set(_){const V=!!y.boolean(_)&&_;e.embed.setMuted(!!V||e.config.muted).then(()=>{g=V,j.call(e,e.media,"volumechange")})}});let b,{loop:S}=e.config;Object.defineProperty(e.media,"loop",{get:()=>S,set(_){const V=y.boolean(_)?_:e.config.loop.active;e.embed.setLoop(V).then(()=>{S=V})}}),e.embed.getVideoUrl().then(_=>{b=_,O.setDownloadUrl.call(e)}).catch(_=>{this.debug.warn(_)}),Object.defineProperty(e.media,"currentSrc",{get:()=>b}),Object.defineProperty(e.media,"ended",{get:()=>e.currentTime===e.duration}),Promise.all([e.embed.getVideoWidth(),e.embed.getVideoHeight()]).then(_=>{const[V,z]=_;e.embed.ratio=wl(V,z),Bt.call(this)}),e.embed.setAutopause(e.config.autopause).then(_=>{e.config.autopause=_}),e.embed.getVideoTitle().then(_=>{e.config.title=_,oe.setTitle.call(this)}),e.embed.getCurrentTime().then(_=>{f=_,j.call(e,e.media,"timeupdate")}),e.embed.getDuration().then(_=>{e.media.duration=_,j.call(e,e.media,"durationchange")}),e.embed.getTextTracks().then(_=>{e.media.textTracks=_,Y.setup.call(e)}),e.embed.on("cuechange",({cues:_=[]})=>{const V=_.map(z=>e_(z.text));Y.updateCues.call(e,V)}),e.embed.on("loaded",()=>{e.embed.getPaused().then(_=>{Jt.call(e,!_),_||j.call(e,e.media,"playing")}),y.element(e.embed.element)&&e.supported.ui&&e.embed.element.setAttribute("tabindex",-1)}),e.embed.on("bufferstart",()=>{j.call(e,e.media,"waiting")}),e.embed.on("bufferend",()=>{j.call(e,e.media,"playing")}),e.embed.on("play",()=>{Jt.call(e,!0),j.call(e,e.media,"playing")}),e.embed.on("pause",()=>{Jt.call(e,!1)}),e.embed.on("timeupdate",_=>{e.media.seeking=!1,f=_.seconds,j.call(e,e.media,"timeupdate")}),e.embed.on("progress",_=>{e.media.buffered=_.percent,j.call(e,e.media,"progress"),parseInt(_.percent,10)===1&&j.call(e,e.media,"canplaythrough"),e.embed.getDuration().then(V=>{V!==e.media.duration&&(e.media.duration=V,j.call(e,e.media,"durationchange"))})}),e.embed.on("seeked",()=>{e.media.seeking=!1,j.call(e,e.media,"seeked")}),e.embed.on("ended",()=>{e.media.paused=!0,j.call(e,e.media,"ended")}),e.embed.on("error",_=>{e.media.error=_,j.call(e,e.media,"error")}),a.customControls&&setTimeout(()=>oe.build.call(e),0)}};function m_(e){return y.empty(e)?null:e.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:e}function Kt(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,j.call(this,this.media,e?"play":"pause"))}function u_(e){return e.noCookie?"https://www.youtube-nocookie.com":window.location.protocol==="http:"?"http://www.youtube.com":void 0}const Mo={setup(){if(Q(this.elements.wrapper,this.config.classNames.embed,!0),y.object(window.YT)&&y.function(window.YT.Player))Mo.ready.call(this);else{const e=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{y.function(e)&&e(),Mo.ready.call(this)},In(this.config.urls.youtube.sdk).catch(a=>{this.debug.warn("YouTube API failed to load",a)})}},getTitle(e){qt(An(this.config.urls.youtube.api,e)).then(a=>{if(y.object(a)){const{title:t,height:n,width:s}=a;this.config.title=t,oe.setTitle.call(this),this.embed.ratio=wl(s,n)}Bt.call(this)}).catch(()=>{Bt.call(this)})},ready(){const e=this,a=e.config.youtube,t=e.media&&e.media.getAttribute("id");if(!y.empty(t)&&t.startsWith("youtube-"))return;let n=e.media.getAttribute("src");y.empty(n)&&(n=e.media.getAttribute(this.config.attributes.embed.id));const s=m_(n),i=M("div",{id:ZS(e.provider),"data-poster":a.customControls?e.poster:void 0});if(e.media=Po(i,e.media),a.customControls){const r=l=>`https://i.ytimg.com/vi/${s}/${l}default.jpg`;Fo(r("maxres"),121).catch(()=>Fo(r("sd"),121)).catch(()=>Fo(r("hq"))).then(l=>oe.setPoster.call(e,l.src)).then(l=>{l.includes("maxres")||(e.elements.poster.style.backgroundSize="cover")}).catch(()=>{})}e.embed=new window.YT.Player(e.media,{videoId:s,host:u_(a),playerVars:me({},{autoplay:e.config.autoplay?1:0,hl:e.config.hl,controls:e.supported.ui&&a.customControls?0:1,disablekb:1,playsinline:e.config.playsinline&&!e.config.fullscreen.iosNative?1:0,cc_load_policy:e.captions.active?1:0,cc_lang_pref:e.config.captions.language,widget_referrer:window?window.location.href:null},a),events:{onError(r){if(!e.media.error){const l=r.data,u={2:"The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invalid characters, such as exclamation points or asterisks.",5:"The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.",100:"The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.",101:"The owner of the requested video does not allow it to be played in embedded players.",150:"The owner of the requested video does not allow it to be played in embedded players."}[l]||"An unknown error occurred";e.media.error={code:l,message:u},j.call(e,e.media,"error")}},onPlaybackRateChange(r){const l=r.target;e.media.playbackRate=l.getPlaybackRate(),j.call(e,e.media,"ratechange")},onReady(r){if(y.function(e.media.play))return;const l=r.target;Mo.getTitle.call(e,s),e.media.play=()=>{Kt.call(e,!0),l.playVideo()},e.media.pause=()=>{Kt.call(e,!1),l.pauseVideo()},e.media.stop=()=>{l.stopVideo()},e.media.duration=l.getDuration(),e.media.paused=!0,e.media.currentTime=0,Object.defineProperty(e.media,"currentTime",{get:()=>Number(l.getCurrentTime()),set(p){e.paused&&!e.embed.hasPlayed&&e.embed.mute(),e.media.seeking=!0,j.call(e,e.media,"seeking"),l.seekTo(p)}}),Object.defineProperty(e.media,"playbackRate",{get:()=>l.getPlaybackRate(),set(p){l.setPlaybackRate(p)}});let{volume:u}=e.config;Object.defineProperty(e.media,"volume",{get:()=>u,set(p){u=p,l.setVolume(100*u),j.call(e,e.media,"volumechange")}});let{muted:c}=e.config;Object.defineProperty(e.media,"muted",{get:()=>c,set(p){const f=y.boolean(p)?p:c;c=f,l[f?"mute":"unMute"](),l.setVolume(100*u),j.call(e,e.media,"volumechange")}}),Object.defineProperty(e.media,"currentSrc",{get:()=>l.getVideoUrl()}),Object.defineProperty(e.media,"ended",{get:()=>e.currentTime===e.duration});const m=l.getAvailablePlaybackRates();e.options.speed=m.filter(p=>e.config.speed.options.includes(p)),e.supported.ui&&a.customControls&&e.media.setAttribute("tabindex",-1),j.call(e,e.media,"timeupdate"),j.call(e,e.media,"durationchange"),clearInterval(e.timers.buffering),e.timers.buffering=setInterval(()=>{e.media.buffered=l.getVideoLoadedFraction(),(e.media.lastBuffered===null||e.media.lastBuffered<e.media.buffered)&&j.call(e,e.media,"progress"),e.media.lastBuffered=e.media.buffered,e.media.buffered===1&&(clearInterval(e.timers.buffering),j.call(e,e.media,"canplaythrough"))},200),a.customControls&&setTimeout(()=>oe.build.call(e),50)},onStateChange(r){const l=r.target;switch(clearInterval(e.timers.playing),e.media.seeking&&[1,2].includes(r.data)&&(e.media.seeking=!1,j.call(e,e.media,"seeked")),r.data){case-1:j.call(e,e.media,"timeupdate"),e.media.buffered=l.getVideoLoadedFraction(),j.call(e,e.media,"progress");break;case 0:Kt.call(e,!1),e.media.loop?(l.stopVideo(),l.playVideo()):j.call(e,e.media,"ended");break;case 1:a.customControls&&!e.config.autoplay&&e.media.paused&&!e.embed.hasPlayed?e.media.pause():(Kt.call(e,!0),j.call(e,e.media,"playing"),e.timers.playing=setInterval(()=>{j.call(e,e.media,"timeupdate")},50),e.media.duration!==l.getDuration()&&(e.media.duration=l.getDuration(),j.call(e,e.media,"durationchange")));break;case 2:e.muted||e.embed.unMute(),Kt.call(e,!1);break;case 3:j.call(e,e.media,"waiting")}j.call(e,e.elements.container,"statechange",!1,{code:r.data})}}})}},Nl={setup(){this.media?(Q(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),Q(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&Q(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=M("div",{class:this.config.classNames.video}),ul(this.media,this.elements.wrapper),this.elements.poster=M("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?mt.setup.call(this):this.isYouTube?Mo.setup.call(this):this.isVimeo&&Rn.setup.call(this)):this.debug.warn("No media element found!")}};class p_{constructor(a){A(this,"load",()=>{this.enabled&&(y.object(window.google)&&y.object(window.google.ima)?this.ready():In(this.player.config.urls.googleIMA.sdk).then(()=>{this.ready()}).catch(()=>{this.trigger("error",new Error("Google IMA SDK failed to load"))}))}),A(this,"ready",()=>{var t;this.enabled||((t=this).manager&&t.manager.destroy(),t.elements.displayContainer&&t.elements.displayContainer.destroy(),t.elements.container.remove()),this.startSafetyTimer(12e3,"ready()"),this.managerPromise.then(()=>{this.clearSafetyTimer("onAdsManagerLoaded()")}),this.listeners(),this.setupIMA()}),A(this,"setupIMA",()=>{this.elements.container=M("div",{class:this.player.config.classNames.ads}),this.player.elements.container.appendChild(this.elements.container),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(this.player.config.ads.language),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(this.player.config.playsinline),this.elements.displayContainer=new google.ima.AdDisplayContainer(this.elements.container,this.player.media),this.loader=new google.ima.AdsLoader(this.elements.displayContainer),this.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,t=>this.onAdsManagerLoaded(t),!1),this.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,t=>this.onAdError(t),!1),this.requestAds()}),A(this,"requestAds",()=>{const{container:t}=this.player.elements;try{const n=new google.ima.AdsRequest;n.adTagUrl=this.tagUrl,n.linearAdSlotWidth=t.offsetWidth,n.linearAdSlotHeight=t.offsetHeight,n.nonLinearAdSlotWidth=t.offsetWidth,n.nonLinearAdSlotHeight=t.offsetHeight,n.forceNonLinearFullSlot=!1,n.setAdWillPlayMuted(!this.player.muted),this.loader.requestAds(n)}catch(n){this.onAdError(n)}}),A(this,"pollCountdown",(t=!1)=>{if(!t)return clearInterval(this.countdownTimer),void this.elements.container.removeAttribute("data-badge-text");this.countdownTimer=setInterval(()=>{const n=zo(Math.max(this.manager.getRemainingTime(),0)),s=`${Ee.get("advertisement",this.player.config)} - ${n}`;this.elements.container.setAttribute("data-badge-text",s)},100)}),A(this,"onAdsManagerLoaded",t=>{if(!this.enabled)return;const n=new google.ima.AdsRenderingSettings;n.restoreCustomPlaybackStateOnAdBreakComplete=!0,n.enablePreloading=!0,this.manager=t.getAdsManager(this.player,n),this.cuePoints=this.manager.getCuePoints(),this.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,s=>this.onAdError(s)),Object.keys(google.ima.AdEvent.Type).forEach(s=>{this.manager.addEventListener(google.ima.AdEvent.Type[s],i=>this.onAdEvent(i))}),this.trigger("loaded")}),A(this,"addCuePoints",()=>{y.empty(this.cuePoints)||this.cuePoints.forEach(t=>{if(t!==0&&t!==-1&&t<this.player.duration){const n=this.player.elements.progress;if(y.element(n)){const s=100/this.player.duration*t,i=M("span",{class:this.player.config.classNames.cues});i.style.left=`${s.toString()}%`,n.appendChild(i)}}})}),A(this,"onAdEvent",t=>{const{container:n}=this.player.elements,s=t.getAd(),i=t.getAdData();switch((r=>{j.call(this.player,this.player.media,`ads${r.replace(/_/g,"").toLowerCase()}`)})(t.type),t.type){case google.ima.AdEvent.Type.LOADED:this.trigger("loaded"),this.pollCountdown(!0),s.isLinear()||(s.width=n.offsetWidth,s.height=n.offsetHeight);break;case google.ima.AdEvent.Type.STARTED:this.manager.setVolume(this.player.volume);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:this.player.ended?this.loadAds():this.loader.contentComplete();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:this.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:this.pollCountdown(),this.resumeContent();break;case google.ima.AdEvent.Type.LOG:i.adError&&this.player.debug.warn(`Non-fatal ad error: ${i.adError.getMessage()}`)}}),A(this,"onAdError",t=>{this.cancel(),this.player.debug.warn("Ads error",t)}),A(this,"listeners",()=>{const{container:t}=this.player.elements;let n;this.player.on("canplay",()=>{this.addCuePoints()}),this.player.on("ended",()=>{this.loader.contentComplete()}),this.player.on("timeupdate",()=>{n=this.player.currentTime}),this.player.on("seeked",()=>{const s=this.player.currentTime;y.empty(this.cuePoints)||this.cuePoints.forEach((i,r)=>{n<i&&i<s&&(this.manager.discardAdBreak(),this.cuePoints.splice(r,1))})}),window.addEventListener("resize",()=>{this.manager&&this.manager.resize(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL)})}),A(this,"play",()=>{const{container:t}=this.player.elements;this.managerPromise||this.resumeContent(),this.managerPromise.then(()=>{this.manager.setVolume(this.player.volume),this.elements.displayContainer.initialize();try{this.initialized||(this.manager.init(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL),this.manager.start()),this.initialized=!0}catch(n){this.onAdError(n)}}).catch(()=>{})}),A(this,"resumeContent",()=>{this.elements.container.style.zIndex="",this.playing=!1,Qe(this.player.media.play())}),A(this,"pauseContent",()=>{this.elements.container.style.zIndex=3,this.playing=!0,this.player.media.pause()}),A(this,"cancel",()=>{this.initialized&&this.resumeContent(),this.trigger("error"),this.loadAds()}),A(this,"loadAds",()=>{this.managerPromise.then(()=>{this.manager&&this.manager.destroy(),this.managerPromise=new Promise(t=>{this.on("loaded",t),this.player.debug.log(this.manager)}),this.initialized=!1,this.requestAds()}).catch(()=>{})}),A(this,"trigger",(t,...n)=>{const s=this.events[t];y.array(s)&&s.forEach(i=>{y.function(i)&&i.apply(this,n)})}),A(this,"on",(t,n)=>(y.array(this.events[t])||(this.events[t]=[]),this.events[t].push(n),this)),A(this,"startSafetyTimer",(t,n)=>{this.player.debug.log(`Safety timer invoked from: ${n}`),this.safetyTimer=setTimeout(()=>{this.cancel(),this.clearSafetyTimer("startSafetyTimer()")},t)}),A(this,"clearSafetyTimer",t=>{y.nullOrUndefined(this.safetyTimer)||(this.player.debug.log(`Safety timer cleared from: ${t}`),clearTimeout(this.safetyTimer),this.safetyTimer=null)}),this.player=a,this.config=a.config.ads,this.playing=!1,this.initialized=!1,this.elements={container:null,displayContainer:null},this.manager=null,this.loader=null,this.cuePoints=null,this.events={},this.safetyTimer=null,this.countdownTimer=null,this.managerPromise=new Promise((t,n)=>{this.on("loaded",t),this.on("error",n)}),this.load()}get enabled(){const{config:a}=this;return this.player.isHTML5&&this.player.isVideo&&a.enabled&&(!y.empty(a.publisherId)||y.url(a.tagUrl))}get tagUrl(){const{config:a}=this;return y.url(a.tagUrl)?a.tagUrl:`https://go.aniview.com/api/adserver6/vast/?${Bl({AV_PUBLISHERID:"58c25bb0073ef448b1087ad6",AV_CHANNELID:"5a0458dc28a06145e4519d21",AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:a.publisherId})}`}}function Tl(e=0,a=0,t=255){return Math.min(Math.max(e,a),t)}const h_=e=>{const a=[];return e.split(/\r\n\r\n|\n\n|\r\r/).forEach(t=>{const n={};t.split(/\r\n|\n|\r/).forEach(s=>{if(y.number(n.startTime)){if(!y.empty(s.trim())&&y.empty(n.text)){const i=s.trim().split("#xywh=");[n.text]=i,i[1]&&([n.x,n.y,n.w,n.h]=i[1].split(","))}}else{const i=s.match(/([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})( ?--> ?)([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})/);i&&(n.startTime=60*Number(i[1]||0)*60+60*Number(i[2])+Number(i[3])+ +`0.${i[4]}`,n.endTime=60*Number(i[6]||0)*60+60*Number(i[7])+Number(i[8])+ +`0.${i[9]}`)}}),n.text&&a.push(n)}),a},vl=(e,a)=>{const t={};return e>a.width/a.height?(t.width=a.width,t.height=1/e*a.width):(t.height=a.height,t.width=e*a.height),t};class Ln{constructor(a){A(this,"load",()=>{this.player.elements.display.seekTooltip&&(this.player.elements.display.seekTooltip.hidden=this.enabled),this.enabled&&this.getThumbnails().then(()=>{this.enabled&&(this.render(),this.determineContainerAutoSizing(),this.listeners(),this.loaded=!0)})}),A(this,"getThumbnails",()=>new Promise(t=>{const{src:n}=this.player.config.previewThumbnails;if(y.empty(n))throw new Error("Missing previewThumbnails.src config attribute");const s=()=>{this.thumbnails.sort((i,r)=>i.height-r.height),this.player.debug.log("Preview thumbnails",this.thumbnails),t()};if(y.function(n))n(i=>{this.thumbnails=i,s()});else{const i=(y.string(n)?[n]:n).map(r=>this.getThumbnail(r));Promise.all(i).then(s)}})),A(this,"getThumbnail",t=>new Promise(n=>{qt(t).then(s=>{const i={frames:h_(s),height:null,urlPrefix:""};i.frames[0].text.startsWith("/")||i.frames[0].text.startsWith("http://")||i.frames[0].text.startsWith("https://")||(i.urlPrefix=t.substring(0,t.lastIndexOf("/")+1));const r=new Image;r.onload=()=>{i.height=r.naturalHeight,i.width=r.naturalWidth,this.thumbnails.push(i),n()},r.src=i.urlPrefix+i.frames[0].text})})),A(this,"startMove",t=>{if(this.loaded&&y.event(t)&&["touchmove","mousemove"].includes(t.type)&&this.player.media.duration){if(t.type==="touchmove")this.seekTime=this.player.media.duration*(this.player.elements.inputs.seek.value/100);else{var n,s;const i=this.player.elements.progress.getBoundingClientRect(),r=100/i.width*(t.pageX-i.left);this.seekTime=this.player.media.duration*(r/100),this.seekTime<0&&(this.seekTime=0),this.seekTime>this.player.media.duration-1&&(this.seekTime=this.player.media.duration-1),this.mousePosX=t.pageX,this.elements.thumb.time.innerText=zo(this.seekTime);const l=(n=this.player.config.markers)===null||n===void 0||(s=n.points)===null||s===void 0?void 0:s.find(({time:u})=>u===Math.round(this.seekTime));l&&this.elements.thumb.time.insertAdjacentHTML("afterbegin",`${l.label}<br>`)}this.showImageAtCurrentTime()}}),A(this,"endMove",()=>{this.toggleThumbContainer(!1,!0)}),A(this,"startScrubbing",t=>{(y.nullOrUndefined(t.button)||t.button===!1||t.button===0)&&(this.mouseDown=!0,this.player.media.duration&&(this.toggleScrubbingContainer(!0),this.toggleThumbContainer(!1,!0),this.showImageAtCurrentTime()))}),A(this,"endScrubbing",()=>{this.mouseDown=!1,Math.ceil(this.lastTime)===Math.ceil(this.player.media.currentTime)?this.toggleScrubbingContainer(!1):Tn.call(this.player,this.player.media,"timeupdate",()=>{this.mouseDown||this.toggleScrubbingContainer(!1)})}),A(this,"listeners",()=>{this.player.on("play",()=>{this.toggleThumbContainer(!1,!0)}),this.player.on("seeked",()=>{this.toggleThumbContainer(!1)}),this.player.on("timeupdate",()=>{this.lastTime=this.player.media.currentTime})}),A(this,"render",()=>{this.elements.thumb.container=M("div",{class:this.player.config.classNames.previewThumbnails.thumbContainer}),this.elements.thumb.imageContainer=M("div",{class:this.player.config.classNames.previewThumbnails.imageContainer}),this.elements.thumb.container.appendChild(this.elements.thumb.imageContainer);const t=M("div",{class:this.player.config.classNames.previewThumbnails.timeContainer});this.elements.thumb.time=M("span",{},"00:00"),t.appendChild(this.elements.thumb.time),this.elements.thumb.imageContainer.appendChild(t),y.element(this.player.elements.progress)&&this.player.elements.progress.appendChild(this.elements.thumb.container),this.elements.scrubbing.container=M("div",{class:this.player.config.classNames.previewThumbnails.scrubbingContainer}),this.player.elements.wrapper.appendChild(this.elements.scrubbing.container)}),A(this,"destroy",()=>{this.elements.thumb.container&&this.elements.thumb.container.remove(),this.elements.scrubbing.container&&this.elements.scrubbing.container.remove()}),A(this,"showImageAtCurrentTime",()=>{this.mouseDown?this.setScrubbingContainerSize():this.setThumbContainerSizeAndPos();const t=this.thumbnails[0].frames.findIndex(i=>this.seekTime>=i.startTime&&this.seekTime<=i.endTime),n=t>=0;let s=0;this.mouseDown||this.toggleThumbContainer(n),n&&(this.thumbnails.forEach((i,r)=>{this.loadedImages.includes(i.frames[t].text)&&(s=r)}),t!==this.showingThumb&&(this.showingThumb=t,this.loadImage(s)))}),A(this,"loadImage",(t=0)=>{const n=this.showingThumb,s=this.thumbnails[t],{urlPrefix:i}=s,r=s.frames[n],l=s.frames[n].text,u=i+l;if(this.currentImageElement&&this.currentImageElement.dataset.filename===l)this.showImage(this.currentImageElement,r,t,n,l,!1),this.currentImageElement.dataset.index=n,this.removeOldImages(this.currentImageElement);else{this.loadingImage&&this.usingSprites&&(this.loadingImage.onload=null);const c=new Image;c.src=u,c.dataset.index=n,c.dataset.filename=l,this.showingThumbFilename=l,this.player.debug.log(`Loading image: ${u}`),c.onload=()=>this.showImage(c,r,t,n,l,!0),this.loadingImage=c,this.removeOldImages(c)}}),A(this,"showImage",(t,n,s,i,r,l=!0)=>{this.player.debug.log(`Showing thumb: ${r}. num: ${i}. qual: ${s}. newimg: ${l}`),this.setImageSizeAndOffset(t,n),l&&(this.currentImageContainer.appendChild(t),this.currentImageElement=t,this.loadedImages.includes(r)||this.loadedImages.push(r)),this.preloadNearby(i,!0).then(this.preloadNearby(i,!1)).then(this.getHigherQuality(s,t,n,r))}),A(this,"removeOldImages",t=>{Array.from(this.currentImageContainer.children).forEach(n=>{if(n.tagName.toLowerCase()!=="img")return;const s=this.usingSprites?500:1e3;if(n.dataset.index!==t.dataset.index&&!n.dataset.deleting){n.dataset.deleting=!0;const{currentImageContainer:i}=this;setTimeout(()=>{i.removeChild(n),this.player.debug.log(`Removing thumb: ${n.dataset.filename}`)},s)}})}),A(this,"preloadNearby",(t,n=!0)=>new Promise(s=>{setTimeout(()=>{const i=this.thumbnails[0].frames[t].text;if(this.showingThumbFilename===i){let r;r=n?this.thumbnails[0].frames.slice(t):this.thumbnails[0].frames.slice(0,t).reverse();let l=!1;r.forEach(u=>{const c=u.text;if(c!==i&&!this.loadedImages.includes(c)){l=!0,this.player.debug.log(`Preloading thumb filename: ${c}`);const{urlPrefix:m}=this.thumbnails[0],p=m+c,f=new Image;f.src=p,f.onload=()=>{this.player.debug.log(`Preloaded thumb filename: ${c}`),this.loadedImages.includes(c)||this.loadedImages.push(c),s()}}}),l||s()}},300)})),A(this,"getHigherQuality",(t,n,s,i)=>{if(t<this.thumbnails.length-1){let r=n.naturalHeight;this.usingSprites&&(r=s.h),r<this.thumbContainerHeight&&setTimeout(()=>{this.showingThumbFilename===i&&(this.player.debug.log(`Showing higher quality thumb for: ${i}`),this.loadImage(t+1))},300)}}),A(this,"toggleThumbContainer",(t=!1,n=!1)=>{const s=this.player.config.classNames.previewThumbnails.thumbContainerShown;this.elements.thumb.container.classList.toggle(s,t),!t&&n&&(this.showingThumb=null,this.showingThumbFilename=null)}),A(this,"toggleScrubbingContainer",(t=!1)=>{const n=this.player.config.classNames.previewThumbnails.scrubbingContainerShown;this.elements.scrubbing.container.classList.toggle(n,t),t||(this.showingThumb=null,this.showingThumbFilename=null)}),A(this,"determineContainerAutoSizing",()=>{(this.elements.thumb.imageContainer.clientHeight>20||this.elements.thumb.imageContainer.clientWidth>20)&&(this.sizeSpecifiedInCSS=!0)}),A(this,"setThumbContainerSizeAndPos",()=>{const{imageContainer:t}=this.elements.thumb;if(this.sizeSpecifiedInCSS){if(t.clientHeight>20&&t.clientWidth<20){const n=Math.floor(t.clientHeight*this.thumbAspectRatio);t.style.width=`${n}px`}else if(t.clientHeight<20&&t.clientWidth>20){const n=Math.floor(t.clientWidth/this.thumbAspectRatio);t.style.height=`${n}px`}}else{const n=Math.floor(this.thumbContainerHeight*this.thumbAspectRatio);t.style.height=`${this.thumbContainerHeight}px`,t.style.width=`${n}px`}this.setThumbContainerPos()}),A(this,"setThumbContainerPos",()=>{const t=this.player.elements.progress.getBoundingClientRect(),n=this.player.elements.container.getBoundingClientRect(),{container:s}=this.elements.thumb,i=n.left-t.left+10,r=n.right-t.left-s.clientWidth-10,l=this.mousePosX-t.left-s.clientWidth/2,u=Tl(l,i,r);s.style.left=`${u}px`,s.style.setProperty("--preview-arrow-offset",l-u+"px")}),A(this,"setScrubbingContainerSize",()=>{const{width:t,height:n}=vl(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});this.elements.scrubbing.container.style.width=`${t}px`,this.elements.scrubbing.container.style.height=`${n}px`}),A(this,"setImageSizeAndOffset",(t,n)=>{if(!this.usingSprites)return;const s=this.thumbContainerHeight/n.h;t.style.height=t.naturalHeight*s+"px",t.style.width=t.naturalWidth*s+"px",t.style.left=`-${n.x*s}px`,t.style.top=`-${n.y*s}px`}),this.player=a,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}get enabled(){return this.player.isHTML5&&this.player.isVideo&&this.player.config.previewThumbnails.enabled}get currentImageContainer(){return this.mouseDown?this.elements.scrubbing.container:this.elements.thumb.imageContainer}get usingSprites(){return Object.keys(this.thumbnails[0].frames[0]).includes("w")}get thumbAspectRatio(){return this.usingSprites?this.thumbnails[0].frames[0].w/this.thumbnails[0].frames[0].h:this.thumbnails[0].width/this.thumbnails[0].height}get thumbContainerHeight(){if(this.mouseDown){const{height:a}=vl(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});return a}return this.sizeSpecifiedInCSS?this.elements.thumb.imageContainer.clientHeight:Math.floor(this.player.media.clientWidth/this.thumbAspectRatio/4)}get currentImageElement(){return this.mouseDown?this.currentScrubbingImageElement:this.currentThumbnailImageElement}set currentImageElement(a){this.mouseDown?this.currentScrubbingImageElement=a:this.currentThumbnailImageElement=a}}const zn={insertElements(e,a){y.string(a)?pl(e,this.media,{src:a}):y.array(a)&&a.forEach(t=>{pl(e,this.media,t)})},change(e){ml(e,"sources.length")?(mt.cancelRequests.call(this),this.destroy.call(this,()=>{this.options.quality=[],st(this.media),this.media=null,y.element(this.elements.container)&&this.elements.container.removeAttribute("class");const{sources:a,type:t}=e,[{provider:n=ut.html5,src:s}]=a,i=n==="html5"?t:"div",r=n==="html5"?{}:{src:s};Object.assign(this,{provider:n,type:t,supported:ue.check(t,n,this.config.playsinline),media:M(i,r)}),this.elements.container.appendChild(this.media),y.boolean(e.autoplay)&&(this.config.autoplay=e.autoplay),this.isHTML5&&(this.config.crossorigin&&this.media.setAttribute("crossorigin",""),this.config.autoplay&&this.media.setAttribute("autoplay",""),y.empty(e.poster)||(this.poster=e.poster),this.config.loop.active&&this.media.setAttribute("loop",""),this.config.muted&&this.media.setAttribute("muted",""),this.config.playsinline&&this.media.setAttribute("playsinline","")),oe.addStyleHook.call(this),this.isHTML5&&zn.insertElements.call(this,"source",a),this.config.title=e.title,Nl.setup.call(this),this.isHTML5&&Object.keys(e).includes("tracks")&&zn.insertElements.call(this,"track",e.tracks),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&oe.build.call(this),this.isHTML5&&this.media.load(),y.empty(e.previewThumbnails)||(Object.assign(this.config.previewThumbnails,e.previewThumbnails),this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Ln(this))),this.fullscreen.update()},!0)):this.debug.warn("Invalid source format")}};class Zt{constructor(a,t){if(A(this,"play",()=>y.function(this.media.play)?(this.ads&&this.ads.enabled&&this.ads.managerPromise.then(()=>this.ads.play()).catch(()=>Qe(this.media.play())),this.media.play()):null),A(this,"pause",()=>this.playing&&y.function(this.media.pause)?this.media.pause():null),A(this,"togglePlay",l=>(y.boolean(l)?l:!this.playing)?this.play():this.pause()),A(this,"stop",()=>{this.isHTML5?(this.pause(),this.restart()):y.function(this.media.stop)&&this.media.stop()}),A(this,"restart",()=>{this.currentTime=0}),A(this,"rewind",l=>{this.currentTime-=y.number(l)?l:this.config.seekTime}),A(this,"forward",l=>{this.currentTime+=y.number(l)?l:this.config.seekTime}),A(this,"increaseVolume",l=>{const u=this.media.muted?0:this.volume;this.volume=u+(y.number(l)?l:0)}),A(this,"decreaseVolume",l=>{this.increaseVolume(-l)}),A(this,"airplay",()=>{ue.airplay&&this.media.webkitShowPlaybackTargetPicker()}),A(this,"toggleControls",l=>{if(this.supported.ui&&!this.isAudio){const u=Io(this.elements.container,this.config.classNames.hideControls),c=l===void 0?void 0:!l,m=Q(this.elements.container,this.config.classNames.hideControls,c);if(m&&y.array(this.config.controls)&&this.config.controls.includes("settings")&&!y.empty(this.config.settings)&&O.toggleMenu.call(this,!1),m!==u){const p=m?"controlshidden":"controlsshown";j.call(this,this.media,p)}return!m}return!1}),A(this,"on",(l,u)=>{X.call(this,this.elements.container,l,u)}),A(this,"once",(l,u)=>{Tn.call(this,this.elements.container,l,u)}),A(this,"off",(l,u)=>{Ro(this.elements.container,l,u)}),A(this,"destroy",(l,u=!1)=>{if(!this.ready)return;const c=()=>{document.body.style.overflow="",this.embed=null,u?(Object.keys(this.elements).length&&(st(this.elements.buttons.play),st(this.elements.captions),st(this.elements.controls),st(this.elements.wrapper),this.elements.buttons.play=null,this.elements.captions=null,this.elements.controls=null,this.elements.wrapper=null),y.function(l)&&l()):(qS.call(this),mt.cancelRequests.call(this),Po(this.elements.original,this.elements.container),j.call(this,this.elements.original,"destroyed",!0),y.function(l)&&l.call(this.elements.original),this.ready=!1,setTimeout(()=>{this.elements=null,this.media=null},200))};this.stop(),clearTimeout(this.timers.loading),clearTimeout(this.timers.controls),clearTimeout(this.timers.resized),this.isHTML5?(oe.toggleNativeControls.call(this,!0),c()):this.isYouTube?(clearInterval(this.timers.buffering),clearInterval(this.timers.playing),this.embed!==null&&y.function(this.embed.destroy)&&this.embed.destroy(),c()):this.isVimeo&&(this.embed!==null&&this.embed.unload().then(c),setTimeout(c,200))}),A(this,"supports",l=>ue.mime.call(this,l)),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=ue.touch,this.media=a,y.string(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||y.nodeList(this.media)||y.array(this.media))&&(this.media=this.media[0]),this.config=me({},xl,Zt.defaults,t||{},(()=>{try{return JSON.parse(this.media.getAttribute("data-plyr-config"))}catch{return{}}})()),this.elements={container:null,fullscreen:null,captions:null,buttons:{},display:{},progress:{},inputs:{},settings:{popup:null,menu:null,panels:{},buttons:{}}},this.captions={active:null,currentTrack:-1,meta:new WeakMap},this.fullscreen={active:!1},this.options={speed:[],quality:[]},this.debug=new i_(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",ue),y.nullOrUndefined(this.media)||!y.element(this.media))return void this.debug.error("Setup failed: no suitable element passed");if(this.media.plyr)return void this.debug.warn("Target already setup");if(!this.config.enabled)return void this.debug.error("Setup failed: disabled by config");if(!ue.check().api)return void this.debug.error("Setup failed: no support");const n=this.media.cloneNode(!0);n.autoplay=!1,this.elements.original=n;const s=this.media.tagName.toLowerCase();let i=null,r=null;switch(s){case"div":if(i=this.media.querySelector("iframe"),y.element(i)){if(r=El(i.getAttribute("src")),this.provider=n_(r.toString()),this.elements.container=this.media,this.media=i,this.elements.container.className="",r.search.length){const l=["1","true"];l.includes(r.searchParams.get("autoplay"))&&(this.config.autoplay=!0),l.includes(r.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=l.includes(r.searchParams.get("playsinline")),this.config.youtube.hl=r.searchParams.get("hl")):this.config.playsinline=!0}}else this.provider=this.media.getAttribute(this.config.attributes.embed.provider),this.media.removeAttribute(this.config.attributes.embed.provider);if(y.empty(this.provider)||!Object.values(ut).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type=$n.video;break;case"video":case"audio":this.type=s,this.provider=ut.html5,this.media.hasAttribute("crossorigin")&&(this.config.crossorigin=!0),this.media.hasAttribute("autoplay")&&(this.config.autoplay=!0),(this.media.hasAttribute("playsinline")||this.media.hasAttribute("webkit-playsinline"))&&(this.config.playsinline=!0),this.media.hasAttribute("muted")&&(this.config.muted=!0),this.media.hasAttribute("loop")&&(this.config.loop.active=!0);break;default:return void this.debug.error("Setup failed: unsupported type")}this.supported=ue.check(this.type,this.provider),this.supported.api?(this.eventListeners=[],this.listeners=new s_(this),this.storage=new Gt(this),this.media.plyr=this,y.element(this.elements.container)||(this.elements.container=M("div"),ul(this.media,this.elements.container)),oe.migrateStyles.call(this),oe.addStyleHook.call(this),Nl.setup.call(this),this.config.debug&&X.call(this,this.elements.container,this.config.events.join(" "),l=>{this.debug.log(`event: ${l.type}`)}),this.fullscreen=new We(this),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&oe.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new p_(this)),this.isHTML5&&this.config.autoplay&&this.once("canplay",()=>Qe(this.play())),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Ln(this))):this.debug.error("Setup failed: no support")}get isHTML5(){return this.provider===ut.html5}get isEmbed(){return this.isYouTube||this.isVimeo}get isYouTube(){return this.provider===ut.youtube}get isVimeo(){return this.provider===ut.vimeo}get isVideo(){return this.type===$n.video}get isAudio(){return this.type===$n.audio}get playing(){return!!(this.ready&&!this.paused&&!this.ended)}get paused(){return!!this.media.paused}get stopped(){return!!(this.paused&&this.currentTime===0)}get ended(){return!!this.media.ended}set currentTime(a){if(!this.duration)return;const t=y.number(a)&&a>0;this.media.currentTime=t?Math.min(a,this.duration):0,this.debug.log(`Seeking to ${this.currentTime} seconds`)}get currentTime(){return Number(this.media.currentTime)}get buffered(){const{buffered:a}=this.media;return y.number(a)?a:a&&a.length&&this.duration>0?a.end(0)/this.duration:0}get seeking(){return!!this.media.seeking}get duration(){const a=parseFloat(this.config.duration),t=(this.media||{}).duration,n=y.number(t)&&t!==1/0?t:0;return a||n}set volume(a){let t=a;y.string(t)&&(t=Number(t)),y.number(t)||(t=this.storage.get("volume")),y.number(t)||({volume:t}=this.config),t>1&&(t=1),t<0&&(t=0),this.config.volume=t,this.media.volume=t,!y.empty(a)&&this.muted&&t>0&&(this.muted=!1)}get volume(){return Number(this.media.volume)}set muted(a){let t=a;y.boolean(t)||(t=this.storage.get("muted")),y.boolean(t)||(t=this.config.muted),this.config.muted=t,this.media.muted=t}get muted(){return!!this.media.muted}get hasAudio(){return!this.isHTML5||!!this.isAudio||!!this.media.mozHasAudio||!!this.media.webkitAudioDecodedByteCount||!!(this.media.audioTracks&&this.media.audioTracks.length)}set speed(a){let t=null;y.number(a)&&(t=a),y.number(t)||(t=this.storage.get("speed")),y.number(t)||(t=this.config.speed.selected);const{minimumSpeed:n,maximumSpeed:s}=this;t=Tl(t,n,s),this.config.speed.selected=t,setTimeout(()=>{this.media&&(this.media.playbackRate=t)},0)}get speed(){return Number(this.media.playbackRate)}get minimumSpeed(){return this.isYouTube?Math.min(...this.options.speed):this.isVimeo?.5:.0625}get maximumSpeed(){return this.isYouTube?Math.max(...this.options.speed):this.isVimeo?2:16}set quality(a){const t=this.config.quality,n=this.options.quality;if(!n.length)return;let s=[!y.empty(a)&&Number(a),this.storage.get("quality"),t.selected,t.default].find(y.number),i=!0;if(!n.includes(s)){const r=gl(n,s);this.debug.warn(`Unsupported quality option: ${s}, using ${r} instead`),s=r,i=!1}t.selected=s,this.media.quality=s,i&&this.storage.set({quality:s})}get quality(){return this.media.quality}set loop(a){const t=y.boolean(a)?a:this.config.loop.active;this.config.loop.active=t,this.media.loop=t}get loop(){return!!this.media.loop}set source(a){zn.change.call(this,a)}get source(){return this.media.currentSrc}get download(){const{download:a}=this.config.urls;return y.url(a)?a:this.source}set download(a){y.url(a)&&(this.config.urls.download=a,O.setDownloadUrl.call(this))}set poster(a){this.isVideo?oe.setPoster.call(this,a,!1).catch(()=>{}):this.debug.warn("Poster can only be set for video")}get poster(){return this.isVideo?this.media.getAttribute("poster")||this.media.getAttribute("data-poster"):null}get ratio(){if(!this.isVideo)return null;const a=Lo(On.call(this));return y.array(a)?a.join(":"):a}set ratio(a){this.isVideo?y.string(a)&&bl(a)?(this.config.ratio=Lo(a),Bt.call(this)):this.debug.error(`Invalid aspect ratio specified (${a})`):this.debug.warn("Aspect ratio can only be set for video")}set autoplay(a){this.config.autoplay=y.boolean(a)?a:this.config.autoplay}get autoplay(){return!!this.config.autoplay}toggleCaptions(a){Y.toggle.call(this,a,!1)}set currentTrack(a){Y.set.call(this,a,!1),Y.setup.call(this)}get currentTrack(){const{toggled:a,currentTrack:t}=this.captions;return a?t:-1}set language(a){Y.setLanguage.call(this,a,!1)}get language(){return(Y.getCurrentTrack.call(this)||{}).language}set pip(a){if(!ue.pip)return;const t=y.boolean(a)?a:!this.pip;y.function(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(t?Vn.active:Vn.inactive),y.function(this.media.requestPictureInPicture)&&(!this.pip&&t?this.media.requestPictureInPicture():this.pip&&!t&&document.exitPictureInPicture())}get pip(){return ue.pip?y.empty(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===Vn.active:null}setPreviewThumbnails(a){this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),Object.assign(this.config.previewThumbnails,a),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Ln(this))}static supported(a,t){return ue.check(a,t)}static loadSprite(a,t){return kl(a,t)}static setup(a,t={}){let n=null;return y.string(a)?n=Array.from(document.querySelectorAll(a)):y.nodeList(a)?n=Array.from(a):y.array(a)&&(n=a.filter(y.element)),y.empty(n)?null:n.map(s=>new Zt(s,t))}}Zt.defaults=WS(xl);const g_={class:"carousel-video-player"},f_={class:"video-container"},y_=["id"],b_=Ne({__name:"CarouselVideoPlayer",props:{play:{type:Object,required:!0}},emits:["play-ended"],setup(e,{emit:a}){const t=e,n=o.ref(null),s=o.computed(()=>`p-${t.play.playId}`);function i(){n.value=new Zt(`#${s.value}`,{controls:["play","volume","settings","progress"],autoplay:!1,playsinline:!0}),n.value.source={type:"video",sources:[{src:t.play.video_link,type:"video/mp4"}]},n.value.isDestroyed=!1,t.play.videoPlayer=n.value,t.play.plyrInit=i,n.value.on("webkitfullscreenchange",r()),n.value.on("mozfullscreenchange",r()),n.value.on("fullscreenchange",r())}function r(){const l=this;return()=>{document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen(),setTimeout(()=>{l.$emit("full-screen-change")},100)}}return o.onMounted(()=>{setTimeout(()=>{i()},100)}),(l,u)=>(o.openBlock(),o.createElementBlock("div",g_,[o.createElementVNode("div",f_,[o.createElementVNode("video",{id:s.value,controls:"",preload:"auto","data-setup":"{}"},null,8,y_)])]))}},[["__scopeId","data-v-0d5827c5"]]),Ol=e=>(o.pushScopeId("data-v-df58a9e4"),e=e(),o.popScopeId(),e),w_={class:"carousel-full-screen",id:"carousel-swipe"},S_=[Ol(()=>o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},[o.createElementVNode("path",{d:"M5 15L15 5",stroke:"white","stroke-width":"1.7","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),o.createElementVNode("path",{d:"M15 15L5 5",stroke:"white","stroke-width":"1.7","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"})],-1))],__={class:"carousel-full-screen__carousel"},k_=Ol(()=>o.createElementVNode("div",null,"holi",-1)),C_={class:"carousel-full-screen__carousel__video-player"},Fn=2,E_=Ne({__name:"CarouselFullScreen",props:{playerQueue:{type:Array,default:()=>[]},playlistIndex:{type:Number,default:0},initialPlay:{type:Object,default:()=>({})}},emits:["close"],setup(e,{emit:a}){const t=e;let n=0,s=new Map;const i=o.ref({wrapAround:!1,itemsToShow:1.2,isMainSlidePriority:!0,areSlidesArrowsVisible:!0,areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"}),r=o.ref(null),l=o.ref([]);o.watch(()=>t.playerQueue,p=>{p.length&&(l.value=p.map((f,d)=>(f.index=d,f)),n=t.playlistIndex,s=new Map(l.value.map(f=>[f.index,f])))},{immediate:!0});function u({selectedItem:p,selectedItemIndex:f}){if(n!==p.index){const d=p.index-n;n=p.index;const h=s.get(n+d*-1),g=s.get(n);if(h&&h.videoPlayer&&h.videoPlayer.pause(),g&&g.videoPlayer&&g.videoPlayer.play(),d>0){const b=s.get(n+Fn),S=s.get(n+1),_=s.get(n-Fn);b&&(l.value.find(V=>V.index===b.index)||l.value.push(b)),S&&S.videoPlayer&&S.videoPlayer.isDestroyed&&S.plyrInit(),_&&_.videoPlayer&&(_.videoPlayer.pause(),_.videoPlayer.src="",_.videoPlayer.destroy(),_.videoPlayer.isDestroyed=!0)}else if(d<0){const b=s.get(n-1),S=s.get(n+Fn);b&&b.videoPlayer&&b.videoPlayer.isDestroyed&&b.plyrInit(),S&&S.videoPlayer&&(S.videoPlayer.pause(),S.videoPlayer.src="",S.videoPlayer.destroy(),S.videoPlayer.isDestroyed=!0)}}}function c(){r.value&&r.value.next()}function m(){a("close",n)}return o.onMounted(()=>{setTimeout(()=>{const p=document.getElementsByClassName("video-element");p&&p.length&&Array.from(p).forEach((f,d)=>{f.id=`plyrFS${d+1}`})},100)}),o.onBeforeUnmount(()=>{t.playerQueue.forEach(p=>{p.videoPlayer&&(p.videoPlayer.pause(),p.videoPlayer.destroy())})}),(p,f)=>(o.openBlock(),o.createElementBlock("div",w_,[o.createElementVNode("div",{class:"carousel-full-screen__close",onClick:m},S_),o.createElementVNode("div",__,[o.createVNode(o.unref(dS),o.mergeProps({ref_key:"gscCarousel",ref:r},i.value,{items:l.value,onInput:u}),{default:o.withCtx(({item:d})=>[k_,o.createElementVNode("div",C_,[o.createVNode(b_,{play:d,onPlayEnded:c},null,8,["play"])])]),_:1},16,["items"])])]))}},[["__scopeId","data-v-df58a9e4"]]),Al={PO1:"CFI",PO2:"CFV",PO3:"SFI",PO4:"SFV",PO5:"FI",PO6:"FV"},Vl={DF:"Dieciseisavos",OF:"Octavos",CF:"Cuartos",SF:"Semifinales","3ER":"Tercer lugar",FINAL:"Final"},$l={4:"Octavos",5:"Cuartos",6:"Semifinales",7:"Final"},B_=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},Mn={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))}}},Pl=()=>{o.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}))},Il=Mn.setup;Mn.setup=Il?(e,a)=>(Pl(),Il(e,a)):Pl;const x_=e=>(o.pushScopeId("data-v-fb269a1e"),e=e(),o.popScopeId(),e),N_=["src"],T_={key:1,class:"text"},v_=["src"],O_={class:"stats"},A_=x_(()=>o.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),V_={class:"numstats"},$_={class:"leyend"};function P_(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",null,[t.type==0?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["button",s.status&&t.typeOnOff&&"button-active"]),style:o.normalizeStyle([i.customStyle,s.status&&t.typeOnOff&&i.customActive]),onClick:a[0]||(a[0]=(...r)=>i.btnClick&&i.btnClick(...r))},[t.icon&&t.iconPosition.toLowerCase()==="left"?(o.openBlock(),o.createElementBlock("img",{key:0,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,N_)):o.createCommentVNode("",!0),t.textValue?(o.openBlock(),o.createElementBlock("div",T_,o.toDisplayString(t.textValue),1)):o.createCommentVNode("",!0),t.icon&&t.iconPosition.toLowerCase()==="right"?(o.openBlock(),o.createElementBlock("img",{key:2,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,v_)):o.createCommentVNode("",!0)],6)):o.createCommentVNode("",!0),t.type==1?(o.openBlock(),o.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...r)=>i.btnClick&&i.btnClick(...r))},[o.createElementVNode("div",O_,[A_,o.createElementVNode("div",V_,o.toDisplayString(t.textStat),1)]),o.createElementVNode("div",$_,o.toDisplayString(t.textCategory),1)])):o.createCommentVNode("",!0)])}const I_=B_(Mn,[["render",P_],["__scopeId","data-v-fb269a1e"]]),R_={class:"gsc-dropdown__main-container__item-selected"},L_=["height","width"],z_=["stroke"],F_={class:"gsc-dropdown__items-container"},M_=["onClick"],D_={key:0,class:"gsc-dropdown__items-footer"},j_={__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 t=e,n=o.ref({}),s=o.ref(null),i=o.ref(t.isMultipleOption?-1:0),r=o.ref(!1);o.watch(()=>t.items,(d,h)=>{if(!t.modelValue&&(!t.onlyFirstTime||!h||!h.length)&&d&&d.length){if(t.defaultItemByProp){const g=t.items.findIndex(b=>b[t.defaultItemByProp.propName]===t.defaultItemByProp.value);g!==-1?(i.value=g,n.value=d[g]):(i.value=0,n.value=d[0])}else n.value=d[t.defaultItemByIndex];a("input",n.value)}},{immediate:!0}),o.watch(()=>t.modelValue,d=>{if(d){const h=t.items.findIndex(g=>typeof d=="object"?JSON.stringify(g)===JSON.stringify(d):g===d);h!==-1&&(i.value=h,n.value=t.items[h],a("update:modelValue",n.value))}},{immediate:!0});const l=o.computed(()=>({height:t.height,width:t.width,backgroundColor:t.backgroundColor,borderRadius:`${t.borderRadius}px`,border:`${t.borderType} ${t.borderWidth}px ${t.borderColor}`,color:t.color,"--hover-background-color":t.hoverBackgroundColor,"--list-item-padding":t.listItemPadding,"--list-background-color":t.listBackgroundColor,"--list-height":t.listHeight,"--list-item-selected-color":t.listItemSelectedColor,"--list-item-selected-background-color":t.listItemSelectedBackgroundColor,"--list-item-color":t.listItemColor,"--list-border-radius":`${t.listBorderRadius}`,"--list-border-color":t.listBorderColor,"--list-width":t.isListSameWidth?t.width:"fit-content","--list-border-width":`${t.listBorderWidth}px`,"--footer-border":`${t.footerBorderWidth}px solid ${t.footerBorderColor}`,"--dropdown-opacity":t.isDisabled?"0.5":"1","--dropdown-cursor":t.isDisabled?"not-allowed":"pointer","--dropdown-font-size":t.fontSize?t.fontSize:"14px"})),u=o.computed(()=>({height:`${t.arrowHeight}px`,width:`${t.arrowWidth}px`}));function c(){t.isDisabled||(r.value=!r.value)}function m(d){s.value&&!s.value.contains(d.target)&&(r.value=!1)}function p(d,h){t.isMultipleOption?i.value=-1:(i.value=h,r.value=!1),n.value=d,a("input",n.value),a("update:modelValue",n.value)}function f(){r.value=!1,a("click-ready")}return o.onMounted(()=>{document.addEventListener("click",m)}),o.onBeforeMount(()=>{document.removeEventListener("click",m)}),(d,h)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"dropDown",ref:s,class:"gsc-dropdown",style:o.normalizeStyle(l.value)},[o.createElementVNode("div",{class:"gsc-dropdown__main-container",style:o.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:c},[o.createElementVNode("div",R_,[o.renderSlot(d.$slots,"default",{selectedItem:n.value})]),o.createElementVNode("div",{class:o.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":r.value}]),style:o.normalizeStyle(u.value)},[(o.openBlock(),o.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.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,z_)],8,L_))],6)],4),o.createVNode(o.Transition,null,{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("div",F_,[o.createElementVNode("div",null,[o.createElementVNode("div",{class:"gsc-dropdown__items",style:o.normalizeStyle({"margin-top":`${t.borderWidth}px`})},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.items,(g,b)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["gsc-dropdown__items__item",{selected:b===i.value}]),key:b,onClick:S=>p(g,b)},[o.renderSlot(d.$slots,"availableItem",{item:g})],10,M_))),128))],4),e.isFooterVisible?(o.openBlock(),o.createElementBlock("div",D_,[o.createVNode(o.unref(I_),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:f})])):o.createCommentVNode("",!0)])],512),[[o.vShow,r.value]])]),_:3})],4))}},W_=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},U_={class:"tournament-select__selected-tournament"},H_={class:"tournament-select__selected-tournament__logo"},G_=["src"],q_={class:"tournament-select__selected-tournament__name"},J_={__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 t=e,n=o.ref([]),s=o.computed(()=>{const p={};return t.fontFamily&&(p["font-family"]=`${t.fontFamily}`),p}),i=o.computed(()=>n.value.find(p=>p.seasonsIds.has(t.currentSeasonId))||n.value[0]);async function r(){try{if(t.items&&t.items.length)n.value=[...t.items];else if(t.apiUrl){const p=await u();n.value=p.map(f=>({...f.tournament,seasons:f.seasons,seasonsIds:f.seasons.reduce((d,h)=>(d.add(h.id),d),new Set)})).sort((f,d)=>f.order-d.order)}}catch(p){throw new Error(p)}}function l(p){const f=new XMLHttpRequest,d=`${t.logosUrl}${p}.${t.logoFileType}`;return f.open("HEAD",d,!1),f.send(),f.status!==404}async function u(){try{return(await fetch(t.apiUrl)).json()}catch(p){return Promise.reject(p)}}function c(p){a("input",p)}function m(p){a("input",p)}return o.onMounted(()=>{r()}),(p,f)=>(o.openBlock(),o.createElementBlock("div",{class:"tournament-select",style:o.normalizeStyle(s.value)},[o.createVNode(o.unref(j_),o.mergeProps(t,{"model-value":i.value,items:n.value,onInput:c,"onUpdate:modelValue":m}),{default:o.withCtx(({selectedItem:d})=>[o.createElementVNode("div",U_,[o.createElementVNode("div",H_,[l(d.id)?(o.openBlock(),o.createElementBlock("img",{key:0,src:`${t.logosUrl}${d.id}.${t.logoFileType}`,alt:""},null,8,G_)):o.createCommentVNode("",!0)]),o.createElementVNode("div",q_,o.toDisplayString(d.name),1)])]),availableItem:o.withCtx(({item:d})=>[o.createElementVNode("div",null,o.toDisplayString(d.name),1)]),_:1},16,["model-value","items"])],4))}},K_=W_(J_,[["__scopeId","data-v-355af272"]]),Z_=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},Dn={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))}}},Rl=()=>{o.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}))},Ll=Dn.setup;Dn.setup=Ll?(e,a)=>(Rl(),Ll(e,a)):Rl;const X_=e=>(o.pushScopeId("data-v-fb269a1e"),e=e(),o.popScopeId(),e),Y_=["src"],Q_={key:1,class:"text"},ek=["src"],tk={class:"stats"},ok=X_(()=>o.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),ak={class:"numstats"},nk={class:"leyend"};function ik(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",null,[t.type==0?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["button",s.status&&t.typeOnOff&&"button-active"]),style:o.normalizeStyle([i.customStyle,s.status&&t.typeOnOff&&i.customActive]),onClick:a[0]||(a[0]=(...r)=>i.btnClick&&i.btnClick(...r))},[t.icon&&t.iconPosition.toLowerCase()==="left"?(o.openBlock(),o.createElementBlock("img",{key:0,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,Y_)):o.createCommentVNode("",!0),t.textValue?(o.openBlock(),o.createElementBlock("div",Q_,o.toDisplayString(t.textValue),1)):o.createCommentVNode("",!0),t.icon&&t.iconPosition.toLowerCase()==="right"?(o.openBlock(),o.createElementBlock("img",{key:2,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,ek)):o.createCommentVNode("",!0)],6)):o.createCommentVNode("",!0),t.type==1?(o.openBlock(),o.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...r)=>i.btnClick&&i.btnClick(...r))},[o.createElementVNode("div",tk,[ok,o.createElementVNode("div",ak,o.toDisplayString(t.textStat),1)]),o.createElementVNode("div",nk,o.toDisplayString(t.textCategory),1)])):o.createCommentVNode("",!0)])}const sk=Z_(Dn,[["render",ik],["__scopeId","data-v-fb269a1e"]]),rk={class:"gsc-dropdown__main-container__item-selected"},lk=["height","width"],ck=["stroke"],dk={class:"gsc-dropdown__items-container"},mk=["onClick"],uk={key:0,class:"gsc-dropdown__items-footer"},pk={__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 t=e,n=o.ref({}),s=o.ref(null),i=o.ref(t.isMultipleOption?-1:0),r=o.ref(!1);o.watch(()=>t.items,(d,h)=>{if(!t.modelValue&&(!t.onlyFirstTime||!h||!h.length)&&d&&d.length){if(t.defaultItemByProp){const g=t.items.findIndex(b=>b[t.defaultItemByProp.propName]===t.defaultItemByProp.value);g!==-1?(i.value=g,n.value=d[g]):(i.value=0,n.value=d[0])}else n.value=d[t.defaultItemByIndex];a("input",n.value)}},{immediate:!0}),o.watch(()=>t.modelValue,d=>{if(d){const h=t.items.findIndex(g=>typeof d=="object"?JSON.stringify(g)===JSON.stringify(d):g===d);h!==-1&&(i.value=h,n.value=t.items[h],a("update:modelValue",n.value))}},{immediate:!0});const l=o.computed(()=>({height:t.height,width:t.width,backgroundColor:t.backgroundColor,borderRadius:`${t.borderRadius}px`,border:`${t.borderType} ${t.borderWidth}px ${t.borderColor}`,color:t.color,"--hover-background-color":t.hoverBackgroundColor,"--list-item-padding":t.listItemPadding,"--list-background-color":t.listBackgroundColor,"--list-height":t.listHeight,"--list-item-selected-color":t.listItemSelectedColor,"--list-item-selected-background-color":t.listItemSelectedBackgroundColor,"--list-item-color":t.listItemColor,"--list-border-radius":`${t.listBorderRadius}`,"--list-border-color":t.listBorderColor,"--list-width":t.isListSameWidth?t.width:"fit-content","--list-border-width":`${t.listBorderWidth}px`,"--footer-border":`${t.footerBorderWidth}px solid ${t.footerBorderColor}`,"--dropdown-opacity":t.isDisabled?"0.5":"1","--dropdown-cursor":t.isDisabled?"not-allowed":"pointer","--dropdown-font-size":t.fontSize?t.fontSize:"14px"})),u=o.computed(()=>({height:`${t.arrowHeight}px`,width:`${t.arrowWidth}px`}));function c(){t.isDisabled||(r.value=!r.value)}function m(d){s.value&&!s.value.contains(d.target)&&(r.value=!1)}function p(d,h){t.isMultipleOption?i.value=-1:(i.value=h,r.value=!1),n.value=d,a("input",n.value),a("update:modelValue",n.value)}function f(){r.value=!1,a("click-ready")}return o.onMounted(()=>{document.addEventListener("click",m)}),o.onBeforeMount(()=>{document.removeEventListener("click",m)}),(d,h)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"dropDown",ref:s,class:"gsc-dropdown",style:o.normalizeStyle(l.value)},[o.createElementVNode("div",{class:"gsc-dropdown__main-container",style:o.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:c},[o.createElementVNode("div",rk,[o.renderSlot(d.$slots,"default",{selectedItem:n.value})]),o.createElementVNode("div",{class:o.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":r.value}]),style:o.normalizeStyle(u.value)},[(o.openBlock(),o.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.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,ck)],8,lk))],6)],4),o.createVNode(o.Transition,null,{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("div",dk,[o.createElementVNode("div",null,[o.createElementVNode("div",{class:"gsc-dropdown__items",style:o.normalizeStyle({"margin-top":`${t.borderWidth}px`})},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.items,(g,b)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["gsc-dropdown__items__item",{selected:b===i.value}]),key:b,onClick:S=>p(g,b)},[o.renderSlot(d.$slots,"availableItem",{item:g})],10,mk))),128))],4),e.isFooterVisible?(o.openBlock(),o.createElementBlock("div",uk,[o.createVNode(o.unref(sk),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:f})])):o.createCommentVNode("",!0)])],512),[[o.vShow,r.value]])]),_:3})],4))}},hk=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},gk={class:"season-name"},fk={class:"items-list-season"},yk={__name:"GSC-SeasonSelect",props:{seasons:{type:Array,default:()=>[]},currentSeasonId:{type:Number,default:0}},emits:["input"],setup(e,{emit:a}){const t=e,n=o.computed(()=>t.seasons.find(r=>r.id===t.currentSeasonId));function s(r){a("input",r)}function i(r){a("input",r)}return(r,l)=>(o.openBlock(),o.createBlock(o.unref(pk),{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:i,"onUpdate:modelValue":s},{default:o.withCtx(({selectedItem:u})=>[o.createElementVNode("div",gk,[o.createElementVNode("span",null,o.toDisplayString(u.name),1)])]),availableItem:o.withCtx(({item:u})=>[o.createElementVNode("span",fk,o.toDisplayString(u.name),1)]),_:1},8,["items","model-value"]))}},bk=hk(yk,[["__scopeId","data-v-3a11087d"]]);function zl(e,a){return function(){return e.apply(a,arguments)}}const{toString:wk}=Object.prototype,{getPrototypeOf:jn}=Object,Do=(e=>a=>{const t=wk.call(a);return e[t]||(e[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),et=e=>(e=e.toLowerCase(),a=>Do(a)===e),jo=e=>a=>typeof a===e,{isArray:xt}=Array,Xt=jo("undefined");function Sk(e){return e!==null&&!Xt(e)&&e.constructor!==null&&!Xt(e.constructor)&&Me(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Fl=et("ArrayBuffer");function _k(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&Fl(e.buffer),a}const kk=jo("string"),Me=jo("function"),Ml=jo("number"),Wo=e=>e!==null&&typeof e=="object",Ck=e=>e===!0||e===!1,Uo=e=>{if(Do(e)!=="object")return!1;const a=jn(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Ek=et("Date"),Bk=et("File"),xk=et("Blob"),Nk=et("FileList"),Tk=e=>Wo(e)&&Me(e.pipe),vk=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||Me(e.append)&&((a=Do(e))==="formdata"||a==="object"&&Me(e.toString)&&e.toString()==="[object FormData]"))},Ok=et("URLSearchParams"),Ak=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Yt(e,a,{allOwnKeys:t=!1}={}){if(e===null||typeof e>"u")return;let n,s;if(typeof e!="object"&&(e=[e]),xt(e))for(n=0,s=e.length;n<s;n++)a.call(null,e[n],n,e);else{const i=t?Object.getOwnPropertyNames(e):Object.keys(e),r=i.length;let l;for(n=0;n<r;n++)l=i[n],a.call(null,e[l],l,e)}}function Dl(e,a){a=a.toLowerCase();const t=Object.keys(e);let n=t.length,s;for(;n-- >0;)if(s=t[n],a===s.toLowerCase())return s;return null}const jl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Wl=e=>!Xt(e)&&e!==jl;function Wn(){const{caseless:e}=Wl(this)&&this||{},a={},t=(n,s)=>{const i=e&&Dl(a,s)||s;Uo(a[i])&&Uo(n)?a[i]=Wn(a[i],n):Uo(n)?a[i]=Wn({},n):xt(n)?a[i]=n.slice():a[i]=n};for(let n=0,s=arguments.length;n<s;n++)arguments[n]&&Yt(arguments[n],t);return a}const Vk=(e,a,t,{allOwnKeys:n}={})=>(Yt(a,(s,i)=>{t&&Me(s)?e[i]=zl(s,t):e[i]=s},{allOwnKeys:n}),e),$k=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Pk=(e,a,t,n)=>{e.prototype=Object.create(a.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),t&&Object.assign(e.prototype,t)},Ik=(e,a,t,n)=>{let s,i,r;const l={};if(a=a||{},e==null)return a;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)r=s[i],(!n||n(r,e,a))&&!l[r]&&(a[r]=e[r],l[r]=!0);e=t!==!1&&jn(e)}while(e&&(!t||t(e,a))&&e!==Object.prototype);return a},Rk=(e,a,t)=>{e=String(e),(t===void 0||t>e.length)&&(t=e.length),t-=a.length;const n=e.indexOf(a,t);return n!==-1&&n===t},Lk=e=>{if(!e)return null;if(xt(e))return e;let a=e.length;if(!Ml(a))return null;const t=new Array(a);for(;a-- >0;)t[a]=e[a];return t},zk=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&jn(Uint8Array)),Fk=(e,a)=>{const t=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=t.next())&&!n.done;){const s=n.value;a.call(e,s[0],s[1])}},Mk=(e,a)=>{let t;const n=[];for(;(t=e.exec(a))!==null;)n.push(t);return n},Dk=et("HTMLFormElement"),jk=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,t,n){return t.toUpperCase()+n}),Ul=(({hasOwnProperty:e})=>(a,t)=>e.call(a,t))(Object.prototype),Wk=et("RegExp"),Hl=(e,a)=>{const t=Object.getOwnPropertyDescriptors(e),n={};Yt(t,(s,i)=>{let r;(r=a(s,i,e))!==!1&&(n[i]=r||s)}),Object.defineProperties(e,n)},Uk=e=>{Hl(e,(a,t)=>{if(Me(e)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const n=e[t];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 '"+t+"'")})}})},Hk=(e,a)=>{const t={},n=s=>{s.forEach(i=>{t[i]=!0})};return xt(e)?n(e):n(String(e).split(a)),t},Gk=()=>{},qk=(e,a)=>(e=+e,Number.isFinite(e)?e:a),Un="abcdefghijklmnopqrstuvwxyz",Gl="0123456789",ql={DIGIT:Gl,ALPHA:Un,ALPHA_DIGIT:Un+Un.toUpperCase()+Gl},Jk=(e=16,a=ql.ALPHA_DIGIT)=>{let t="";const{length:n}=a;for(;e--;)t+=a[Math.random()*n|0];return t};function Kk(e){return!!(e&&Me(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Zk=e=>{const a=new Array(10),t=(n,s)=>{if(Wo(n)){if(a.indexOf(n)>=0)return;if(!("toJSON"in n)){a[s]=n;const i=xt(n)?[]:{};return Yt(n,(r,l)=>{const u=t(r,s+1);!Xt(u)&&(i[l]=u)}),a[s]=void 0,i}}return n};return t(e,0)},Xk=et("AsyncFunction"),Yk=e=>e&&(Wo(e)||Me(e))&&Me(e.then)&&Me(e.catch),B={isArray:xt,isArrayBuffer:Fl,isBuffer:Sk,isFormData:vk,isArrayBufferView:_k,isString:kk,isNumber:Ml,isBoolean:Ck,isObject:Wo,isPlainObject:Uo,isUndefined:Xt,isDate:Ek,isFile:Bk,isBlob:xk,isRegExp:Wk,isFunction:Me,isStream:Tk,isURLSearchParams:Ok,isTypedArray:zk,isFileList:Nk,forEach:Yt,merge:Wn,extend:Vk,trim:Ak,stripBOM:$k,inherits:Pk,toFlatObject:Ik,kindOf:Do,kindOfTest:et,endsWith:Rk,toArray:Lk,forEachEntry:Fk,matchAll:Mk,isHTMLForm:Dk,hasOwnProperty:Ul,hasOwnProp:Ul,reduceDescriptors:Hl,freezeMethods:Uk,toObjectSet:Hk,toCamelCase:jk,noop:Gk,toFiniteNumber:qk,findKey:Dl,global:jl,isContextDefined:Wl,ALPHABET:ql,generateString:Jk,isSpecCompliantForm:Kk,toJSONObject:Zk,isAsyncFn:Xk,isThenable:Yk};function K(e,a,t,n,s){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),t&&(this.config=t),n&&(this.request=n),s&&(this.response=s)}B.inherits(K,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:B.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Jl=K.prototype,Kl={};["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=>{Kl[e]={value:e}}),Object.defineProperties(K,Kl),Object.defineProperty(Jl,"isAxiosError",{value:!0}),K.from=(e,a,t,n,s,i)=>{const r=Object.create(Jl);return B.toFlatObject(e,r,function(l){return l!==Error.prototype},l=>l!=="isAxiosError"),K.call(r,e.message,a,t,n,s),r.cause=e,r.name=e.name,i&&Object.assign(r,i),r};const Qk=null;function Hn(e){return B.isPlainObject(e)||B.isArray(e)}function Zl(e){return B.endsWith(e,"[]")?e.slice(0,-2):e}function Xl(e,a,t){return e?e.concat(a).map(function(n,s){return n=Zl(n),!t&&s?"["+n+"]":n}).join(t?".":""):a}function e5(e){return B.isArray(e)&&!e.some(Hn)}const t5=B.toFlatObject(B,{},null,function(e){return/^is[A-Z]/.test(e)});function Ho(e,a,t){if(!B.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,t=B.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,h){return!B.isUndefined(h[d])});const n=t.metaTokens,s=t.visitor||c,i=t.dots,r=t.indexes,l=(t.Blob||typeof Blob<"u"&&Blob)&&B.isSpecCompliantForm(a);if(!B.isFunction(s))throw new TypeError("visitor must be a function");function u(d){if(d===null)return"";if(B.isDate(d))return d.toISOString();if(!l&&B.isBlob(d))throw new K("Blob is not supported. Use a Buffer instead.");return B.isArrayBuffer(d)||B.isTypedArray(d)?l&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function c(d,h,g){let b=d;if(d&&!g&&typeof d=="object"){if(B.endsWith(h,"{}"))h=n?h:h.slice(0,-2),d=JSON.stringify(d);else if(B.isArray(d)&&e5(d)||(B.isFileList(d)||B.endsWith(h,"[]"))&&(b=B.toArray(d)))return h=Zl(h),b.forEach(function(S,_){!(B.isUndefined(S)||S===null)&&a.append(r===!0?Xl([h],_,i):r===null?h:h+"[]",u(S))}),!1}return Hn(d)?!0:(a.append(Xl(g,h,i),u(d)),!1)}const m=[],p=Object.assign(t5,{defaultVisitor:c,convertValue:u,isVisitable:Hn});function f(d,h){if(!B.isUndefined(d)){if(m.indexOf(d)!==-1)throw Error("Circular reference detected in "+h.join("."));m.push(d),B.forEach(d,function(g,b){(!(B.isUndefined(g)||g===null)&&s.call(a,g,B.isString(b)?b.trim():b,h,p))===!0&&f(g,h?h.concat(b):[b])}),m.pop()}}if(!B.isObject(e))throw new TypeError("data must be an object");return f(e),a}function Yl(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(t){return a[t]})}function Gn(e,a){this._pairs=[],e&&Ho(e,this,a)}const Ql=Gn.prototype;Ql.append=function(e,a){this._pairs.push([e,a])},Ql.toString=function(e){const a=e?function(t){return e.call(this,t,Yl)}:Yl;return this._pairs.map(function(t){return a(t[0])+"="+a(t[1])},"").join("&")};function o5(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ec(e,a,t){if(!a)return e;const n=t&&t.encode||o5,s=t&&t.serialize;let i;if(s?i=s(a,t):i=B.isURLSearchParams(a)?a.toString():new Gn(a,t).toString(n),i){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class a5{constructor(){this.handlers=[]}use(a,t,n){return this.handlers.push({fulfilled:a,rejected:t,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){B.forEach(this.handlers,function(t){t!==null&&a(t)})}}const tc=a5,oc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},n5=typeof URLSearchParams<"u"?URLSearchParams:Gn,i5=typeof FormData<"u"?FormData:null,s5=typeof Blob<"u"?Blob:null,r5=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),l5=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",tt={isBrowser:!0,classes:{URLSearchParams:n5,FormData:i5,Blob:s5},isStandardBrowserEnv:r5,isStandardBrowserWebWorkerEnv:l5,protocols:["http","https","file","blob","url","data"]};function c5(e,a){return Ho(e,new tt.classes.URLSearchParams,Object.assign({visitor:function(t,n,s,i){return tt.isNode&&B.isBuffer(t)?(this.append(n,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},a))}function d5(e){return B.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function m5(e){const a={},t=Object.keys(e);let n;const s=t.length;let i;for(n=0;n<s;n++)i=t[n],a[i]=e[i];return a}function ac(e){function a(t,n,s,i){let r=t[i++];const l=Number.isFinite(+r),u=i>=t.length;return r=!r&&B.isArray(s)?s.length:r,u?(B.hasOwnProp(s,r)?s[r]=[s[r],n]:s[r]=n,!l):((!s[r]||!B.isObject(s[r]))&&(s[r]=[]),a(t,n,s[r],i)&&B.isArray(s[r])&&(s[r]=m5(s[r])),!l)}if(B.isFormData(e)&&B.isFunction(e.entries)){const t={};return B.forEachEntry(e,(n,s)=>{a(d5(n),s,t,0)}),t}return null}function u5(e,a,t){if(B.isString(e))try{return(a||JSON.parse)(e),B.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(e)}const qn={transitional:oc,adapter:["xhr","http"],transformRequest:[function(e,a){const t=a.getContentType()||"",n=t.indexOf("application/json")>-1,s=B.isObject(e);if(s&&B.isHTMLForm(e)&&(e=new FormData(e)),B.isFormData(e))return n&&n?JSON.stringify(ac(e)):e;if(B.isArrayBuffer(e)||B.isBuffer(e)||B.isStream(e)||B.isFile(e)||B.isBlob(e))return e;if(B.isArrayBufferView(e))return e.buffer;if(B.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(s){if(t.indexOf("application/x-www-form-urlencoded")>-1)return c5(e,this.formSerializer).toString();if((i=B.isFileList(e))||t.indexOf("multipart/form-data")>-1){const r=this.env&&this.env.FormData;return Ho(i?{"files[]":e}:e,r&&new r,this.formSerializer)}}return s||n?(a.setContentType("application/json",!1),u5(e)):e}],transformResponse:[function(e){const a=this.transitional||qn.transitional,t=a&&a.forcedJSONParsing,n=this.responseType==="json";if(e&&B.isString(e)&&(t&&!this.responseType||n)){const s=!(a&&a.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(i){if(s)throw i.name==="SyntaxError"?K.from(i,K.ERR_BAD_RESPONSE,this,null,this.response):i}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:tt.classes.FormData,Blob:tt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};B.forEach(["delete","get","head","post","put","patch"],e=>{qn.headers[e]={}});const Jn=qn,p5=B.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"]),h5=e=>{const a={};let t,n,s;return e&&e.split(`
|
|
38
|
+
`).forEach(function(i){s=i.indexOf(":"),t=i.substring(0,s).trim().toLowerCase(),n=i.substring(s+1).trim(),!(!t||a[t]&&p5[t])&&(t==="set-cookie"?a[t]?a[t].push(n):a[t]=[n]:a[t]=a[t]?a[t]+", "+n:n)}),a},nc=Symbol("internals");function Qt(e){return e&&String(e).trim().toLowerCase()}function Go(e){return e===!1||e==null?e:B.isArray(e)?e.map(Go):String(e)}function g5(e){const a=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=t.exec(e);)a[n[1]]=n[2];return a}const f5=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Kn(e,a,t,n,s){if(B.isFunction(n))return n.call(this,a,t);if(s&&(a=t),!!B.isString(a)){if(B.isString(n))return a.indexOf(n)!==-1;if(B.isRegExp(n))return n.test(a)}}function y5(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,t,n)=>t.toUpperCase()+n)}function b5(e,a){const t=B.toCamelCase(" "+a);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+t,{value:function(s,i,r){return this[n].call(this,a,s,i,r)},configurable:!0})})}class qo{constructor(a){a&&this.set(a)}set(a,t,n){const s=this;function i(l,u,c){const m=Qt(u);if(!m)throw new Error("header name must be a non-empty string");const p=B.findKey(s,m);(!p||s[p]===void 0||c===!0||c===void 0&&s[p]!==!1)&&(s[p||u]=Go(l))}const r=(l,u)=>B.forEach(l,(c,m)=>i(c,m,u));return B.isPlainObject(a)||a instanceof this.constructor?r(a,t):B.isString(a)&&(a=a.trim())&&!f5(a)?r(h5(a),t):a!=null&&i(t,a,n),this}get(a,t){if(a=Qt(a),a){const n=B.findKey(this,a);if(n){const s=this[n];if(!t)return s;if(t===!0)return g5(s);if(B.isFunction(t))return t.call(this,s,n);if(B.isRegExp(t))return t.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,t){if(a=Qt(a),a){const n=B.findKey(this,a);return!!(n&&this[n]!==void 0&&(!t||Kn(this,this[n],n,t)))}return!1}delete(a,t){const n=this;let s=!1;function i(r){if(r=Qt(r),r){const l=B.findKey(n,r);l&&(!t||Kn(n,n[l],l,t))&&(delete n[l],s=!0)}}return B.isArray(a)?a.forEach(i):i(a),s}clear(a){const t=Object.keys(this);let n=t.length,s=!1;for(;n--;){const i=t[n];(!a||Kn(this,this[i],i,a,!0))&&(delete this[i],s=!0)}return s}normalize(a){const t=this,n={};return B.forEach(this,(s,i)=>{const r=B.findKey(n,i);if(r){t[r]=Go(s),delete t[i];return}const l=a?y5(i):String(i).trim();l!==i&&delete t[i],t[l]=Go(s),n[l]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const t=Object.create(null);return B.forEach(this,(n,s)=>{n!=null&&n!==!1&&(t[s]=a&&B.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,t])=>a+": "+t).join(`
|
|
39
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...t){const n=new this(a);return t.forEach(s=>n.set(s)),n}static accessor(a){const t=(this[nc]=this[nc]={accessors:{}}).accessors,n=this.prototype;function s(i){const r=Qt(i);t[r]||(b5(n,i),t[r]=!0)}return B.isArray(a)?a.forEach(s):s(a),this}}qo.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),B.reduceDescriptors(qo.prototype,({value:e},a)=>{let t=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(n){this[t]=n}}}),B.freezeMethods(qo);const rt=qo;function Zn(e,a){const t=this||Jn,n=a||t,s=rt.from(n.headers);let i=n.data;return B.forEach(e,function(r){i=r.call(t,i,s.normalize(),a?a.status:void 0)}),s.normalize(),i}function ic(e){return!!(e&&e.__CANCEL__)}function eo(e,a,t){K.call(this,e??"canceled",K.ERR_CANCELED,a,t),this.name="CanceledError"}B.inherits(eo,K,{__CANCEL__:!0});function w5(e,a,t){const n=t.config.validateStatus;!t.status||!n||n(t.status)?e(t):a(new K("Request failed with status code "+t.status,[K.ERR_BAD_REQUEST,K.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}const S5=tt.isStandardBrowserEnv?function(){return{write:function(e,a,t,n,s,i){const r=[];r.push(e+"="+encodeURIComponent(a)),B.isNumber(t)&&r.push("expires="+new Date(t).toGMTString()),B.isString(n)&&r.push("path="+n),B.isString(s)&&r.push("domain="+s),i===!0&&r.push("secure"),document.cookie=r.join("; ")},read:function(e){const a=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function _5(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function k5(e,a){return a?e.replace(/\/+$/,"")+"/"+a.replace(/^\/+/,""):e}function sc(e,a){return e&&!_5(a)?k5(e,a):a}const C5=tt.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");let t;function n(s){let i=s;return e&&(a.setAttribute("href",i),i=a.href),a.setAttribute("href",i),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:a.pathname.charAt(0)==="/"?a.pathname:"/"+a.pathname}}return t=n(window.location.href),function(s){const i=B.isString(s)?n(s):s;return i.protocol===t.protocol&&i.host===t.host}}():function(){return function(){return!0}}();function E5(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function B5(e,a){e=e||10;const t=new Array(e),n=new Array(e);let s=0,i=0,r;return a=a!==void 0?a:1e3,function(l){const u=Date.now(),c=n[i];r||(r=u),t[s]=l,n[s]=u;let m=i,p=0;for(;m!==s;)p+=t[m++],m=m%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),u-r<a)return;const f=c&&u-c;return f?Math.round(p*1e3/f):void 0}}function rc(e,a){let t=0;const n=B5(50,250);return s=>{const i=s.loaded,r=s.lengthComputable?s.total:void 0,l=i-t,u=n(l),c=i<=r;t=i;const m={loaded:i,total:r,progress:r?i/r:void 0,bytes:l,rate:u||void 0,estimated:u&&r&&c?(r-i)/u:void 0,event:s};m[a?"download":"upload"]=!0,e(m)}}const x5=typeof XMLHttpRequest<"u",N5=x5&&function(e){return new Promise(function(a,t){let n=e.data;const s=rt.from(e.headers).normalize(),i=e.responseType;let r;function l(){e.cancelToken&&e.cancelToken.unsubscribe(r),e.signal&&e.signal.removeEventListener("abort",r)}let u;B.isFormData(n)&&(tt.isStandardBrowserEnv||tt.isStandardBrowserWebWorkerEnv?s.setContentType(!1):s.getContentType(/^\s*multipart\/form-data/)?B.isString(u=s.getContentType())&&s.setContentType(u.replace(/^\s*(multipart\/form-data);+/,"$1")):s.setContentType("multipart/form-data"));let c=new XMLHttpRequest;if(e.auth){const d=e.auth.username||"",h=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(d+":"+h))}const m=sc(e.baseURL,e.url);c.open(e.method.toUpperCase(),ec(m,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function p(){if(!c)return;const d=rt.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),h={data:!i||i==="text"||i==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:d,config:e,request:c};w5(function(g){a(g),l()},function(g){t(g),l()},h),c=null}if("onloadend"in c?c.onloadend=p:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(p)},c.onabort=function(){c&&(t(new K("Request aborted",K.ECONNABORTED,e,c)),c=null)},c.onerror=function(){t(new K("Network Error",K.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let d=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const h=e.transitional||oc;e.timeoutErrorMessage&&(d=e.timeoutErrorMessage),t(new K(d,h.clarifyTimeoutError?K.ETIMEDOUT:K.ECONNABORTED,e,c)),c=null},tt.isStandardBrowserEnv){const d=(e.withCredentials||C5(m))&&e.xsrfCookieName&&S5.read(e.xsrfCookieName);d&&s.set(e.xsrfHeaderName,d)}n===void 0&&s.setContentType(null),"setRequestHeader"in c&&B.forEach(s.toJSON(),function(d,h){c.setRequestHeader(h,d)}),B.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),i&&i!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",rc(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",rc(e.onUploadProgress)),(e.cancelToken||e.signal)&&(r=d=>{c&&(t(!d||d.type?new eo(null,e,c):d),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(r),e.signal&&(e.signal.aborted?r():e.signal.addEventListener("abort",r)));const f=E5(m);if(f&&tt.protocols.indexOf(f)===-1){t(new K("Unsupported protocol "+f+":",K.ERR_BAD_REQUEST,e));return}c.send(n||null)})},Xn={http:Qk,xhr:N5};B.forEach(Xn,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const lc=e=>`- ${e}`,T5=e=>B.isFunction(e)||e===null||e===!1,cc={getAdapter:e=>{e=B.isArray(e)?e:[e];const{length:a}=e;let t,n;const s={};for(let i=0;i<a;i++){t=e[i];let r;if(n=t,!T5(t)&&(n=Xn[(r=String(t)).toLowerCase()],n===void 0))throw new K(`Unknown adapter '${r}'`);if(n)break;s[r||"#"+i]=n}if(!n){const i=Object.entries(s).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let r=a?i.length>1?`since :
|
|
40
|
+
`+i.map(lc).join(`
|
|
41
|
+
`):" "+lc(i[0]):"as no adapter specified";throw new K("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return n},adapters:Xn};function Yn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new eo(null,e)}function dc(e){return Yn(e),e.headers=rt.from(e.headers),e.data=Zn.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),cc.getAdapter(e.adapter||Jn.adapter)(e).then(function(a){return Yn(e),a.data=Zn.call(e,e.transformResponse,a),a.headers=rt.from(a.headers),a},function(a){return ic(a)||(Yn(e),a&&a.response&&(a.response.data=Zn.call(e,e.transformResponse,a.response),a.response.headers=rt.from(a.response.headers))),Promise.reject(a)})}const mc=e=>e instanceof rt?e.toJSON():e;function Nt(e,a){a=a||{};const t={};function n(c,m,p){return B.isPlainObject(c)&&B.isPlainObject(m)?B.merge.call({caseless:p},c,m):B.isPlainObject(m)?B.merge({},m):B.isArray(m)?m.slice():m}function s(c,m,p){if(B.isUndefined(m)){if(!B.isUndefined(c))return n(void 0,c,p)}else return n(c,m,p)}function i(c,m){if(!B.isUndefined(m))return n(void 0,m)}function r(c,m){if(B.isUndefined(m)){if(!B.isUndefined(c))return n(void 0,c)}else return n(void 0,m)}function l(c,m,p){if(p in a)return n(c,m);if(p in e)return n(void 0,c)}const u={url:i,method:i,data:i,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:l,headers:(c,m)=>s(mc(c),mc(m),!0)};return B.forEach(Object.keys(Object.assign({},e,a)),function(c){const m=u[c]||s,p=m(e[c],a[c],c);B.isUndefined(p)&&m!==l||(t[c]=p)}),t}const uc="1.5.1",Qn={};["object","boolean","number","function","string","symbol"].forEach((e,a)=>{Qn[e]=function(t){return typeof t===e||"a"+(a<1?"n ":" ")+e}});const pc={};Qn.transitional=function(e,a,t){function n(s,i){return"[Axios v"+uc+"] Transitional option '"+s+"'"+i+(t?". "+t:"")}return(s,i,r)=>{if(e===!1)throw new K(n(i," has been removed"+(a?" in "+a:"")),K.ERR_DEPRECATED);return a&&!pc[i]&&(pc[i]=!0,console.warn(n(i," has been deprecated since v"+a+" and will be removed in the near future"))),e?e(s,i,r):!0}};function v5(e,a,t){if(typeof e!="object")throw new K("options must be an object",K.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let s=n.length;for(;s-- >0;){const i=n[s],r=a[i];if(r){const l=e[i],u=l===void 0||r(l,i,e);if(u!==!0)throw new K("option "+i+" must be "+u,K.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new K("Unknown option "+i,K.ERR_BAD_OPTION)}}const ei={assertOptions:v5,validators:Qn},pt=ei.validators;class Jo{constructor(a){this.defaults=a,this.interceptors={request:new tc,response:new tc}}request(a,t){typeof a=="string"?(t=t||{},t.url=a):t=a||{},t=Nt(this.defaults,t);const{transitional:n,paramsSerializer:s,headers:i}=t;n!==void 0&&ei.assertOptions(n,{silentJSONParsing:pt.transitional(pt.boolean),forcedJSONParsing:pt.transitional(pt.boolean),clarifyTimeoutError:pt.transitional(pt.boolean)},!1),s!=null&&(B.isFunction(s)?t.paramsSerializer={serialize:s}:ei.assertOptions(s,{encode:pt.function,serialize:pt.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let r=i&&B.merge(i.common,i[t.method]);i&&B.forEach(["delete","get","head","post","put","patch","common"],h=>{delete i[h]}),t.headers=rt.concat(r,i);const l=[];let u=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(t)===!1||(u=u&&h.synchronous,l.unshift(h.fulfilled,h.rejected))});const c=[];this.interceptors.response.forEach(function(h){c.push(h.fulfilled,h.rejected)});let m,p=0,f;if(!u){const h=[dc.bind(this),void 0];for(h.unshift.apply(h,l),h.push.apply(h,c),f=h.length,m=Promise.resolve(t);p<f;)m=m.then(h[p++],h[p++]);return m}f=l.length;let d=t;for(p=0;p<f;){const h=l[p++],g=l[p++];try{d=h(d)}catch(b){g.call(this,b);break}}try{m=dc.call(this,d)}catch(h){return Promise.reject(h)}for(p=0,f=c.length;p<f;)m=m.then(c[p++],c[p++]);return m}getUri(a){a=Nt(this.defaults,a);const t=sc(a.baseURL,a.url);return ec(t,a.params,a.paramsSerializer)}}B.forEach(["delete","get","head","options"],function(e){Jo.prototype[e]=function(a,t){return this.request(Nt(t||{},{method:e,url:a,data:(t||{}).data}))}}),B.forEach(["post","put","patch"],function(e){function a(t){return function(n,s,i){return this.request(Nt(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:s}))}}Jo.prototype[e]=a(),Jo.prototype[e+"Form"]=a(!0)});const Ko=Jo;class ti{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(s){t=s});const n=this;this.promise.then(s=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](s);n._listeners=null}),this.promise.then=s=>{let i;const r=new Promise(l=>{n.subscribe(l),i=l}).then(s);return r.cancel=function(){n.unsubscribe(i)},r},a(function(s,i,r){n.reason||(n.reason=new eo(s,i,r),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const t=this._listeners.indexOf(a);t!==-1&&this._listeners.splice(t,1)}static source(){let a;return{token:new ti(function(t){a=t}),cancel:a}}}const O5=ti;function A5(e){return function(a){return e.apply(null,a)}}function V5(e){return B.isObject(e)&&e.isAxiosError===!0}const oi={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(oi).forEach(([e,a])=>{oi[a]=e});const $5=oi;function hc(e){const a=new Ko(e),t=zl(Ko.prototype.request,a);return B.extend(t,Ko.prototype,a,{allOwnKeys:!0}),B.extend(t,a,null,{allOwnKeys:!0}),t.create=function(n){return hc(Nt(e,n))},t}const ge=hc(Jn);ge.Axios=Ko,ge.CanceledError=eo,ge.CancelToken=O5,ge.isCancel=ic,ge.VERSION=uc,ge.toFormData=Ho,ge.AxiosError=K,ge.Cancel=ge.CanceledError,ge.all=function(e){return Promise.all(e)},ge.spread=A5,ge.isAxiosError=V5,ge.mergeConfig=Nt,ge.AxiosHeaders=rt,ge.formToJSON=e=>ac(B.isHTMLForm(e)?new FormData(e):e),ge.getAdapter=cc.getAdapter,ge.HttpStatusCode=$5,ge.default=ge;const gc=ge,P5=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},ai={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},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)}}},fc=()=>{o.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}))},yc=ai.setup;ai.setup=yc?(e,a)=>(fc(),yc(e,a)):fc;const I5={class:"scrollable-container"},R5={class:"scrollable-arrows"},L5=["width","height","viewBox"],z5=["stroke"],F5={class:"scrollable-wrapper"},M5={class:"scrollable-arrows"},D5=["width","height","viewBox"],j5=["stroke"];function W5(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",I5,[t.arrows?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["arrows-container",i.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...r)=>i.scrollLeft&&i.scrollLeft(...r))},[o.createElementVNode("div",R5,[(o.openBlock(),o.createElementBlock("svg",{width:t.arrowsWidth,height:t.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:t.arrowsColor},null,8,z5)],8,L5))])],2)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"scrollable-content",ref:"content",onScroll:a[1]||(a[1]=(...r)=>i.getScroll&&i.getScroll(...r))},[o.createElementVNode("div",F5,[o.renderSlot(e.$slots,"default",{},void 0,!0)])],544),t.arrows?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(["arrows-container",i.hideShowRightArrow]),onClick:a[2]||(a[2]=(...r)=>i.scrollRight&&i.scrollRight(...r))},[o.createElementVNode("div",M5,[(o.openBlock(),o.createElementBlock("svg",{width:t.arrowsWidth,height:t.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:t.arrowsColor},null,8,j5)],8,D5))])],2)):o.createCommentVNode("",!0)])}const U5=P5(ai,[["render",W5],["__scopeId","data-v-a717f423"]]),yt=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t};let bc=null;const ni={components:{},props:{titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},baselogo(){const e=this.gamesContainerWidth;return e<=400?"base-logo400":e<=540?"base-logo540":e<=650?"base-logo650":"base-logo"},baselogoright(){const e=this.gamesContainerWidth;return e<=400?"base-logo-right400":e<=540?"base-logo-right540":e<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},logoright(){const e=this.gamesContainerWidth;return e<=400?"logo-right400":e<=540?"logo-right540":e<=650?"logo-right650":"logo-right"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},titlename(){const e=this.gamesContainerWidth;return e<=400?"title-name400":e<=540?"title-name540":e<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)bc=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),bc.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},wc=()=>{o.useCssVars(e=>({d6f07504:e.colorBackgroundHome+"45","6d0848cf":e.colorBackgroundAway+"45","524ee4ec":e.colorBackgroundHome,"524bd2fb":e.colorBackgroundAway}))},Sc=ni.setup;ni.setup=Sc?(e,a)=>(wc(),Sc(e,a)):wc;const Zo=e=>(o.pushScopeId("data-v-45034b51"),e=e(),o.popScopeId(),e),H5=Zo(()=>o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[o.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),G5=[H5],q5=Zo(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),J5=["src"],K5=Zo(()=>o.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),Z5=Zo(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),X5=["src"],Y5=["src"],Q5={class:"text-container"};function eC(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",{ref:"gamesContainer",class:o.normalizeClass(i.thumbnailhighlights)},[o.createElementVNode("div",{class:o.normalizeClass(i.playbutton),onClick:a[0]||(a[0]=(...r)=>i.onclickPlayVideos&&i.onclickPlayVideos(...r))},G5,2),t.dateGame!=""?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(i.date)},o.toDisplayString(t.dateGame),3)):o.createCommentVNode("",!0),t.matchday!=""&&t.seasonName!=""?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(i.containerinfogame)},[t.matchday!=""?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(i.matchcontainer)},o.toDisplayString(t.matchday),3)):o.createCommentVNode("",!0),t.seasonName!=""?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(i.seasoncontainer)},o.toDisplayString(t.seasonName),3)):o.createCommentVNode("",!0)],2)):o.createCommentVNode("",!0),q5,o.createElementVNode("img",{src:t.background,alt:"",class:"bkg-blackwhite position-image"},null,8,J5),o.createElementVNode("div",{class:o.normalizeClass([i.baselogo,"position-image"])},null,2),o.createElementVNode("div",{class:o.normalizeClass(i.baselogoright)},null,2),K5,Z5,o.createElementVNode("img",{src:t.logoHome,alt:"",class:o.normalizeClass(i.teamlogo)},null,10,X5),o.createElementVNode("img",{src:t.logoAway,alt:"",class:o.normalizeClass(i.logoright)},null,10,Y5),o.createElementVNode("div",Q5,[o.createElementVNode("span",{class:o.normalizeClass(i.secondline)},o.toDisplayString(t.score),3),o.createElementVNode("div",{class:o.normalizeClass(i.titlename)},o.toDisplayString(t.titleCategory),3)])],2)}const tC=yt(ni,[["render",eC],["__scopeId","data-v-45034b51"]]);let _c=null;const ii={components:{},props:{colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{type:String,default:""},photoProfile:{type:String,default:""},logoHome:{type:String,default:""},logoAway:{type:String,default:""},scoreHome:{type:String,default:""},scoreAway:{type:String,default:""},background:{type:String,default:""},typeImg:{type:Number,default:0},nameHomeTeam:{type:String,default:""},nameAwayTeam:{type:String,default:""},namePlayer:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},firstline(){const e=this.gamesContainerWidth;return e<=400?"first-line400":e<=540?"first-line540":e<=650?"first-line650":"first-line"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},playerimage(){const e=this.gamesContainerWidth;return e<=400?"player-image400":e<=540?"player-image540":e<=650?"player-image650":"player-image"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)_c=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),_c.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},kc=()=>{o.useCssVars(e=>({"46c0698e":e.colorBackgroundHome,"12d9d27a":e.colorBackgroundHome+"36"}))},Cc=ii.setup;ii.setup=Cc?(e,a)=>(kc(),Cc(e,a)):kc;const to=e=>(o.pushScopeId("data-v-9caaef34"),e=e(),o.popScopeId(),e),oC=to(()=>o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[o.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),aC=[oC],nC=to(()=>o.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),iC=["src"],sC=to(()=>o.createElementVNode("div",{class:"base-logo"},null,-1)),rC=["src"],lC=to(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),cC={class:"text-container"},dC={class:"player-image position-image"},mC=["src"],uC=["src"],pC=["src"],hC=to(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1));function gC(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",{ref:"gamesContainer",class:o.normalizeClass(i.thumbnailhighlights)},[o.createElementVNode("div",{class:o.normalizeClass(i.playbutton),onClick:a[0]||(a[0]=(...r)=>i.onclickPlayVideos&&i.onclickPlayVideos(...r))},aC,2),nC,o.createElementVNode("img",{src:t.background,alt:"",class:"bkg-blackwhite position-image"},null,8,iC),sC,o.createElementVNode("img",{src:t.logoHome,alt:"",class:o.normalizeClass(i.teamlogo)},null,10,rC),lC,o.createElementVNode("div",cC,[o.createElementVNode("span",{class:o.normalizeClass(i.firstline)},o.toDisplayString(t.namePlayer),3),o.createElementVNode("span",{class:o.normalizeClass(i.secondline),style:o.normalizeStyle(t.nameCategory=="Balones recuperados en disputa "?"font-size: 25px":"")},o.toDisplayString(t.nameCategory),7)]),o.createElementVNode("div",dC,[t.typeImg==0?(o.openBlock(),o.createElementBlock("img",{key:0,src:t.photoProfile,class:o.normalizeClass(i.playerimage)},null,10,mC)):o.createCommentVNode("",!0),t.typeImg==1?(o.openBlock(),o.createElementBlock("img",{key:1,src:t.photoProfile,alt:""},null,8,uC)):o.createCommentVNode("",!0),t.typeImg==2?(o.openBlock(),o.createElementBlock("img",{key:2,src:t.photoProfile,class:"img-number"},null,8,pC)):o.createCommentVNode("",!0)]),hC],2)}const fC=yt(ii,[["render",gC],["__scopeId","data-v-9caaef34"]]);let Ec=null;const si={components:{},props:{colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""},nameTeam:{type:String,default:""},nameCategory:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},firstline(){const e=this.gamesContainerWidth;return e<=400?"first-line400":e<=540?"first-line540":e<=650?"first-line650":"first-line"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)Ec=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Ec.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Bc=()=>{o.useCssVars(e=>({"5536c7dc":e.colorBackgroundHome,"3e449276":e.colorBackgroundHome+"36"}))},xc=si.setup;si.setup=xc?(e,a)=>(Bc(),xc(e,a)):Bc;const Xo=e=>(o.pushScopeId("data-v-ca6c08d9"),e=e(),o.popScopeId(),e),yC=Xo(()=>o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[o.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),bC=[yC],wC=Xo(()=>o.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),SC=["src"],_C={width:"275",height:"125",viewBox:"0 0 275 125",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"base-logo"},kC=["fill"],CC=["id"],EC=["stop-color"],BC=["stop-color"],xC=["src"],NC=Xo(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),TC={class:"text-container"},vC=Xo(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1));function OC(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",{ref:"gamesContainer",class:o.normalizeClass(i.thumbnailhighlights)},[o.createElementVNode("div",{class:o.normalizeClass(i.playbutton),onClick:a[0]||(a[0]=(...r)=>i.onclickPlayVideos&&i.onclickPlayVideos(...r))},bC,2),wC,o.createElementVNode("img",{src:t.background,alt:"",class:"bkg-blackwhite position-image"},null,8,SC),(o.openBlock(),o.createElementBlock("svg",_C,[o.createElementVNode("path",{d:"M274.641 124.094L0 0.675049V124.094H274.641Z",fill:"url(#paint0_linear_7_"+t.nameTeam.replaceAll(" ","")+")"},null,8,kC),o.createElementVNode("defs",null,[o.createElementVNode("linearGradient",{id:"paint0_linear_7_"+t.nameTeam.replaceAll(" ",""),x1:"58.6578",y1:"15.5938",x2:"58.6578",y2:"124.094",gradientUnits:"userSpaceOnUse"},[o.createElementVNode("stop",{"stop-color":t.colorBackgroundHome},null,8,EC),o.createElementVNode("stop",{offset:"1","stop-color":t.colorBackgroundHome},null,8,BC)],8,CC)])])),o.createElementVNode("img",{class:o.normalizeClass(i.teamlogo),src:t.logoHome,alt:""},null,10,xC),NC,o.createElementVNode("div",TC,[o.createElementVNode("span",{class:o.normalizeClass(i.firstline)},[t.nameTeam!="Local"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(t.nameTeam),1)],64)):o.createCommentVNode("",!0)],2),o.createElementVNode("div",{class:o.normalizeClass(i.secondline)},o.toDisplayString(t.nameCategory),3)]),vC],2)}const AC=yt(si,[["render",OC],["__scopeId","data-v-ca6c08d9"]]);let Nc=null;const ri={components:{},props:{colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""},nameTeam:{type:String,default:""},nameCategory:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},firstline(){const e=this.gamesContainerWidth;return e<=400?"first-line400":e<=540?"first-line540":e<=650?"first-line650":"first-line"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)Nc=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Nc.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Tc=()=>{o.useCssVars(e=>({"17b44fa7":e.colorBackgroundHome,f1e257fe:e.colorBackgroundHome+"36"}))},vc=ri.setup;ri.setup=vc?(e,a)=>(Tc(),vc(e,a)):Tc;const Yo=e=>(o.pushScopeId("data-v-49b4e56b"),e=e(),o.popScopeId(),e),VC=Yo(()=>o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[o.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),$C=[VC],PC=Yo(()=>o.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),IC=["src"],RC={width:"275",height:"125",viewBox:"0 0 275 125",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"base-logo-away"},LC=["fill"],zC=["id"],FC=["stop-color"],MC=["stop-color"],DC=["src"],jC=Yo(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),WC={class:"text-container"},UC=Yo(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1));function HC(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",{ref:"gamesContainer",class:o.normalizeClass(i.thumbnailhighlights)},[o.createElementVNode("div",{class:o.normalizeClass(i.playbutton),onClick:a[0]||(a[0]=(...r)=>i.onclickPlayVideos&&i.onclickPlayVideos(...r))},$C,2),PC,o.createElementVNode("img",{src:t.background,alt:"",class:"bkg-blackwhite position-image"},null,8,IC),(o.openBlock(),o.createElementBlock("svg",RC,[o.createElementVNode("path",{d:"M274.641 124.094L0 0.675049V124.094H274.641Z",fill:"url(#paint0_linear_7_"+t.nameTeam.replaceAll(" ","")+")"},null,8,LC),o.createElementVNode("defs",null,[o.createElementVNode("linearGradient",{id:"paint0_linear_7_"+t.nameTeam.replaceAll(" ",""),x1:"58.6578",y1:"15.5938",x2:"58.6578",y2:"124.094",gradientUnits:"userSpaceOnUse"},[o.createElementVNode("stop",{"stop-color":t.colorBackgroundAway},null,8,FC),o.createElementVNode("stop",{offset:"1","stop-color":t.colorBackgroundAway},null,8,MC)],8,zC)])])),o.createElementVNode("img",{class:o.normalizeClass(i.teamlogo),src:t.logoHome,alt:""},null,10,DC),jC,o.createElementVNode("div",WC,[o.createElementVNode("span",{class:o.normalizeClass(i.firstline)},[t.nameTeam!="Away"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(t.nameTeam),1)],64)):o.createCommentVNode("",!0)],2),o.createElementVNode("div",{class:o.normalizeClass(i.secondline)},o.toDisplayString(t.nameCategory),3)]),UC],2)}const GC=yt(ri,[["render",HC],["__scopeId","data-v-49b4e56b"]]);let Oc=null;const li={components:{},props:{colorFontHome:{type:String,default:"#000000"},colorFontAway:{type:String,default:"#000000"},type:{type:Number,default:0},playStatus:{type:Number,default:2},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{type:String,default:""},showimg:{type:Boolean,default:!0},photoProfile:{type:String,default:""},logoHome:{type:String,default:""},logoAway:{type:String,default:""},scoreHome:{type:String,default:""},scoreAway:{type:String,default:""},background:{type:String,default:""},typeImg:{type:Number,default:0},nameHomeTeam:{type:String,default:""},nameAwayTeam:{type:String,default:""},namePlayer:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},points(){const e=this.gamesContainerWidth;return e<=400?"points400":e<=540?"points540":e<=650?"points650":"points"},teamname(){const e=this.gamesContainerWidth;return e<=400?"team-name400":e<=540?"team-name540":e<=650?"team-name650":"team-name"},teamscore(){const e=this.gamesContainerWidth;return e<=400?"team-score400":e<=540?"team-score540":e<=650?"team-score650":"team-score"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},hometeam(){const e=this.gamesContainerWidth;return e<=400?"home-team400":e<=540?"home-team540":e<=650?"home-team650":"home-team"},awayteam(){const e=this.gamesContainerWidth;return e<=400?"away-team400":e<=540?"away-team540":e<=650?"away-team650":"away-team"},texttitle(){const e=this.gamesContainerWidth;return e<=400?"text-title400":e<=540?"text-title540":e<=650?"text-title650":"text-title"},texttitle2(){const e=this.gamesContainerWidth;return e<=400?"text-title2400":e<=540?"text-title2540":e<=650?"text-title2650":"text-title2"},playerimage(){const e=this.gamesContainerWidth;return e<=400?"player-image400":e<=540?"player-image540":e<=650?"player-image650":"player-image"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)Oc=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Oc.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Ac=()=>{o.useCssVars(e=>({"78f57c00":e.colorBackgroundHome,"78f26a0f":e.colorBackgroundAway,"4c090560":e.colorBackgroundAway+"62",73887748:e.colorBackgroundHome+"36"}))},Vc=li.setup;li.setup=Vc?(e,a)=>(Ac(),Vc(e,a)):Ac;const Qo=e=>(o.pushScopeId("data-v-e77c3274"),e=e(),o.popScopeId(),e),qC=["width","src"],JC=Qo(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),KC=Qo(()=>o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[o.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),ZC=[KC],XC={class:"player-container"},YC=["src"],QC=["src"],e4=["src"],t4={class:"container-score"},o4=["src"],a4=["src"],n4=["src"],i4=Qo(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),s4=Qo(()=>o.createElementVNode("div",{class:"gradient-color"},null,-1));function r4(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",{ref:"gamesContainer",class:o.normalizeClass(i.thumbnailhighlights)},[t.playStatus!=2?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass((t.playStatus==1,"icon-thumb"))},[o.createElementVNode("img",{width:t.playStatus==1?60:40,src:t.playStatus==1?"http://golstatsimages.blob.core.windows.net/images-library/icn-live@2x.png":"http://golstatsimages.blob.core.windows.net/images-library/icn-info@2x.png"},null,8,qC)],2)):o.createCommentVNode("",!0),JC,o.createElementVNode("div",{class:o.normalizeClass(i.playbutton),onClick:a[0]||(a[0]=(...r)=>i.onclickPlayVideos&&i.onclickPlayVideos(...r))},ZC,2),o.createElementVNode("div",XC,[t.type==0?(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass(i.texttitle)},o.toDisplayString(t.nameCategory),3)):(o.openBlock(),o.createElementBlock("span",{key:1,class:o.normalizeClass(i.texttitle2)},o.toDisplayString(t.nameCategory),3)),t.showimg?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[t.typeImg==0?(o.openBlock(),o.createElementBlock("img",{key:0,src:t.photoProfile,class:o.normalizeClass(i.playerimage)},null,10,YC)):o.createCommentVNode("",!0),t.typeImg==1?(o.openBlock(),o.createElementBlock("img",{key:1,src:t.photoProfile,alt:""},null,8,QC)):o.createCommentVNode("",!0),t.typeImg==2?(o.openBlock(),o.createElementBlock("img",{key:2,src:t.photoProfile,class:"img-number"},null,8,e4)):o.createCommentVNode("",!0)],64)):o.createCommentVNode("",!0),o.createElementVNode("div",t4,[o.createElementVNode("div",{class:o.normalizeClass(i.hometeam)},[o.createElementVNode("span",{class:o.normalizeClass(i.teamname),style:o.normalizeStyle({color:t.colorFontAway})},o.toDisplayString(t.nameHomeTeam),7),o.createElementVNode("img",{src:t.logoHome,alt:"",class:o.normalizeClass(i.teamlogo)},null,10,o4),o.createElementVNode("span",{class:o.normalizeClass(i.teamscore)},o.toDisplayString(t.scoreHome),3)],2),o.createElementVNode("span",{class:o.normalizeClass(i.points)},":",2),o.createElementVNode("div",{class:o.normalizeClass(i.awayteam)},[o.createElementVNode("span",{class:o.normalizeClass(i.teamscore)},o.toDisplayString(t.scoreAway),3),o.createElementVNode("img",{src:t.logoAway,alt:"",class:o.normalizeClass(i.teamlogo)},null,10,a4),o.createElementVNode("span",{class:o.normalizeClass(i.teamname),style:o.normalizeStyle({color:t.colorFontAway})},o.toDisplayString(t.nameAwayTeam),7)],2)])]),o.createElementVNode("img",{src:t.background,alt:"",class:"bkg-blackwhite position-image"},null,8,n4),i4,s4],2)}const l4=yt(li,[["render",r4],["__scopeId","data-v-e77c3274"]]);let $c=null;const ci={components:{},props:{colorFont:{type:String,default:"#000000"},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{type:String,default:""},photoProfile:{type:String,default:""},logoHome:{type:String,default:""},logoAway:{type:String,default:""},scoreHome:{type:String,default:""},scoreAway:{type:String,default:""},background:{type:String,default:""},typeImg:{type:Number,default:0},nameHomeTeam:{type:String,default:""},nameAwayTeam:{type:String,default:""},namePlayer:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},firstline(){const e=this.gamesContainerWidth;return e<=400?"first-line400":e<=540?"first-line540":e<=650?"first-line650":"first-line"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},playername(){const e=this.gamesContainerWidth;return e<=400?"player-name400":e<=540?"player-name540":e<=650?"player-name650":"player-name"},playerimage(){const e=this.gamesContainerWidth;return e<=400?"player-image400":e<=540?"player-image540":e<=650?"player-image650":"player-image"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)$c=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),$c.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Pc=()=>{o.useCssVars(e=>({"7f6829cd":e.colorBackgroundHome+"30","1ad47d61":e.colorBackgroundHome}))},Ic=ci.setup;ci.setup=Ic?(e,a)=>(Pc(),Ic(e,a)):Pc;const ea=e=>(o.pushScopeId("data-v-cc315132"),e=e(),o.popScopeId(),e),c4=ea(()=>o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[o.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),d4=[c4],m4={class:"player-image position-image"},u4=["src"],p4=["src"],h4=["src"],g4=["src"],f4=ea(()=>o.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),y4=["src"],b4=ea(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),w4={class:"text-container"},S4=ea(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),_4={class:"base-logo",width:"91",height:"216",viewBox:"0 0 91 216",fill:"none",xmlns:"http://www.w3.org/2000/svg"},k4=["fill"];function C4(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",{ref:"gamesContainer",class:o.normalizeClass(i.thumbnailhighlights)},[o.createElementVNode("div",{class:o.normalizeClass(i.playbutton),onClick:a[0]||(a[0]=(...r)=>i.onclickPlayVideos&&i.onclickPlayVideos(...r))},d4,2),o.createElementVNode("div",m4,[t.typeImg==0?(o.openBlock(),o.createElementBlock("img",{key:0,src:t.photoProfile,class:o.normalizeClass(i.playerimage)},null,10,u4)):o.createCommentVNode("",!0),t.typeImg==1?(o.openBlock(),o.createElementBlock("img",{key:1,src:t.photoProfile,alt:""},null,8,p4)):o.createCommentVNode("",!0),t.typeImg==2?(o.openBlock(),o.createElementBlock("img",{key:2,src:t.photoProfile,class:"img-number"},null,8,h4)):o.createCommentVNode("",!0)]),o.createElementVNode("img",{src:t.logoHome,alt:"",class:"team-logo"},null,8,g4),f4,o.createElementVNode("img",{src:t.background,alt:"",class:"bkg-blackwhite position-image"},null,8,y4),b4,o.createElementVNode("div",w4,[o.createElementVNode("span",{class:o.normalizeClass(i.firstline)},"MEJORES JUGADAS",2),o.createElementVNode("span",{class:o.normalizeClass(i.secondline)},o.toDisplayString(t.nameCategory),3),o.createElementVNode("div",{class:o.normalizeClass(i.playername),style:o.normalizeStyle({color:t.colorFont})},o.toDisplayString(t.namePlayer),7)]),S4,(o.openBlock(),o.createElementBlock("svg",_4,[o.createElementVNode("path",{d:"M91.5 216L0 -0.5H91.5V216Z",fill:t.colorBackgroundHome},null,8,k4)]))],2)}const E4=yt(ci,[["render",C4],["__scopeId","data-v-cc315132"]]);function B4(e){const a=o.ref({width:0,height:0});function t(){const n=e.value.getBoundingClientRect();a.value.width=n.width,a.value.height=n.height}return o.onMounted(()=>{t(),window.addEventListener("resize",t)}),o.onUnmounted(()=>{window.removeEventListener("resize",t)}),{elementSize:a}}const x4="_ptg_lp0fw_5",N4="_ptgtitle_lp0fw_15",T4="_ptgtitle450_lp0fw_47",v4="_pgtcontainercard_lp0fw_79",O4="_pgtcontainercard350_lp0fw_89",A4={ptg:x4,ptgtitle:N4,ptgtitle450:T4,pgtcontainercard:v4,pgtcontainercard350:O4},di={components:{GSCSlider:U5,GSCThumbnailCategory:fC,GSCThumbnailCategoryTeam:AC,GSCThumbnailCategoryTeamAway:GC,GSCThumbnailHighlightGamePlayer:l4,GSCThumbnailSummaryPlayer:E4,GSCThumbnailHighlightGameHistoric:tC},setup(){const e=o.ref("ptgDiv"),{elementSize:a}=B4(e);return{ptgDiv:e,elementSize:a}},props:{title:{type:String,default:"100% de sus participaciones en cada partido:"},type:{type:Number,default:0},data:{type:Object,default:()=>{}},backgroundColor:{type:String,default:"#0D1D29"},backgroundFooter:{type:String,default:"#192733"},matchdayView:{type:Number,default:1},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsScrollHide:{type:Boolean,default:!1},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",printData:[],teamsInfo:[],playerPhoto:!0,homeTeam:0,lastseason:0,arrayMatchdays:[],awayTeam:0,goalCategories:[12,55,"35_r","54_r"],resumeCategories:[607,608,12,55,54,35,14,52,15,53,466,477]}},watch:{data:{immediate:!0,handler(e){console.log("LLEgo aqui"),this.type!=14&&this.getTeamsInfo(e),this.getStats(e)}}},computed:{ptgtitleClass(){return this.elementSize.width<=450?this.$style.ptgtitle450:this.$style.ptgtitle},pgtcontainercardClass(){return this.elementSize.width<=350?this.$style.pgtcontainercard350:this.$style.pgtcontainercard}},methods:{onclickPlayVideos(e){let a=[],t=e.data.game_id?[e.data.game_id]:null;e.type==2?e.data.position_id==1?e.data.category==0?a=[55,324,323,608,39,774,802,52,53,40,54]:a=e.data.category:e.data.category==0?a=e.isAllPlays?[56,57,59,60,326,213,214,215,216,583,584,122,123,124,125,585,586,128,129,130,131,133,327,587,588,136,137,138,139,589,590,142,143,144,145,146,147,485,486,487,488,489,490,491,492,10,27,597,598,538,539,599,600,541,542,601,602,545,546,603,604,548,549,561,562,100,563,564,103,104,105,106,107,108,565,566,111,567,568,114,115,116,117,118,119,4,88,5,34,402,459,460,461,233,403,456,457,458,236,404,453,454,455,240,405,450,451,452,243,408,447,448,449,283,409,444,445,446,285,410,441,442,443,290,411,438,439,440,292,412,435,436,437,297,414,415,416,417,244,418,419,420,421,401,581,582,331,506,530,579,580,334,507,531,577,578,344,508,532,575,576,424,509,533,573,574,341,529,534,571,572,340,528,535,569,570,427,527,536,348,349,350,465,352,353,354,466,14,52,15,53,218,219,220,221,496,497,498,499,500,501,502,503,217,504,505,521,522,543,33,209,208,517,206,207,26,325,16,51,463,151,154,156,591,592,159,162,163,429,165,593,594,168,171,172,430,174,595,596,177,180,181,431,467,358,361,363,366,369,370,469,372,376,378,379,470,381,385,387,388,471,607,608,210,212]:[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:a=e.data.category:e.type==3?e.data.category==0?a=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:a=e.data.category:e.data.category!=0?a=e.data.category:a=[607,608,12,55,54,35,14,52,15,53,466,477],this.data.isPrematch===1&&(t=null);const n=[1,2,3];let s={type:e.data.play_status==0||!e.data.play_status?0:1,seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:e.categories&&e.categories.length?e.categories:a,gameIds:t,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[e.matchResult]:n,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(s.advancedFilter.mainCategoryId=e.data.category),console.log(s),this.$emit("openmedia",s)},onClickVideos(e){this.$emit("onClickVideos",e)},onClickCard(e){this.$emit("onClickCard",e)},async getTeamsInfo(e){const a=await gc.create({headers:{Authorization:`${this.token}`}}).get("https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/"+e.season);for(let t=0;t<a.data.teams.length;t++)this.teamsInfo[a.data.teams[t].team_id]=a.data.teams[t]},async getStats(e){const a=gc.create({headers:{Authorization:`${this.token}`}});var t=[],n={},s={};if(this.type==0){s=await a.get("https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/"+e.season+"/"+e.player);for(let i=0;i<s.data.seasons[e.season].games_played.length;i++)n={player_id:e.player,color:s.data.info_thumbnails.colors.background_color,colorfont:s.data.info_thumbnails.colors.font_color,photo_profile:s.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.info_thumbnails.images.player_in_action[0]:"https://az755631.vo.msecnd.net/players-profile/"+e.player+".png",team_logo:"https://az755631.vo.msecnd.net/teams-150/"+s.data.seasons[e.season].games_played[i].home_team+".png",player_name:s.data.seasons[e.season].games_played[i].home_team_acronym+" "+s.data.seasons[e.season].games_played[i].home_team_score+" : "+s.data.seasons[e.season].games_played[i].visiting_team_score+" "+s.data.seasons[e.season].games_played[i].visiting_team_acronym,team_id:s.data.seasons[e.season].games_played[i].game_id,team_id_b:s.data.seasons[e.season].games_played[i].home_team,season_id:s.data.seasons[e.season].games_played[i].season_id,name:"",category:0,team_id:s.data.team_id,game_id:s.data.seasons[e.season].games_played[i].game_id,position_id:s.data.position_id,scorehome:s.data.seasons[e.season].games_played[i].home_team_score,scoreaway:s.data.seasons[e.season].games_played[i].visiting_team_score,hometeamacronym:s.data.seasons[e.season].games_played[i].home_team_acronym,visitingteamacronym:s.data.seasons[e.season].games_played[i].visiting_team_acronym,seasonname:s.data.seasons[e.season].name,match:s.data.seasons[e.season].games_played[i].matchday_name.replace("Matchday","Jor"),score:s.data.seasons[e.season].games_played[i].home_team_score+" : "+s.data.seasons[e.season].games_played[i].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.info_thumbnails.images.background_player_in_action[0],backgroundhome:s.data.seasons[e.season].games_played[i].info_thumbnails.home_colors.background_color,backgroundaway:s.data.seasons[e.season].games_played[i].info_thumbnails.away_colors.background_color,colorfont_home:s.data.seasons[e.season].games_played[i].info_thumbnails.home_colors.font_color,colorfont_away:s.data.seasons[e.season].games_played[i].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+s.data.seasons[e.season].games_played[i].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+s.data.seasons[e.season].games_played[i].visiting_team+".png",total:s.data.seasons[e.season].games_played[i].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+s.data.seasons[e.season].games_played[i].home_team+"_"+s.data.seasons[e.season].games_played[i].season_id+"_r1.jpg"},t.push(n)}if(this.type==1){s=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/teams/"+e.team);for(let i=0;i<s.data.categories.length;i++){this.playerPhoto=!1;const r=Math.floor(Math.random()*s.data.categories[i].info_thumbnails.images.background_default_categories.length),l=Math.floor(Math.random()*s.data.categories[i].info_thumbnails.images.background_default_teams.length);n={player_action:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.categories[i].info_thumbnails.images.background_default_categories[r],background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.categories[i].info_thumbnails.images.background_default_teams[l],color:s.data.categories[i].info_thumbnails.colors.background_color,team_logo:"https://az755631.vo.msecnd.net/teams-80/"+s.data.categories[i].info_thumbnails.team_logo,player_name:s.data.categories[i].category_name,team_name:this.teamsInfo[s.data.team_id].colloquial_name,team_id:s.data.team_id,colorfont:s.data.categories[i].info_thumbnails.colors.font_color,team_id_b:s.data.team_id,category:s.data.categories[i].categories,season_id:s.data.season_id,total:s.data.categories[i].total,background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+s.data.team_id+"_"+s.data.season_id+"_r1.jpg"},t.push(n)}}if(this.type==2){s=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/players/"+e.player);for(let i=0;i<s.data.categories.length;i++){this.playerPhoto=!1;const r=Math.floor(Math.random()*s.data.categories[i].info_thumbnails.images.player_in_action.length),l=Math.floor(Math.random()*s.data.categories[i].info_thumbnails.images.background_default_categories.length);n={player_action:s.data.categories[i].info_thumbnails.images.player_in_action[r]?"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.categories[i].info_thumbnails.images.player_in_action[r]:"https://az755631.vo.msecnd.net/players-profile/"+e.player+".png",background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.categories[i].info_thumbnails.images.background_default_categories[l],color:s.data.categories[i].info_thumbnails.colors.background_color,team_logo:"https://az755631.vo.msecnd.net/teams-80/"+s.data.categories[i].info_thumbnails.team_logo,player_name:s.data.categories[i].category_name,season_id:e.season,colorfont:s.data.categories[i].info_thumbnails.colors.font_color,player_id:e.player,team_id:s.data.categories[i].info_thumbnails.colors.team_id,category:s.data.categories[i].categories,total:s.data.categories[i].total,background_card:"https://az755631.vo.msecnd.net/players-profile/"+e.player+".png"},t.push(n)}}if(this.type==3){this.playerPhoto=!1,s=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/games/"+e.game);for(let i=0;i<s.data.games[0].players.length;i++){const r=Math.floor(Math.random()*s.data.games[0].players[i].info_thumbnails.images.background_player_in_action.length),l=Math.floor(Math.random()*s.data.games[0].players[i].info_thumbnails.images.player_in_action.length);n={colorbackgroundhome:s.data.games[0].players[i].info_thumbnails.colors.background_color,colorbackgroundaway:"",nameplayer:s.data.games[0].players[i].player_name,background:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.games[0].players[i].info_thumbnails.images.background_player_in_action[r],namecategory:"RESUMEN",namehometeam:"",nameawayteam:"",category:0,colorfont:s.data.games[0].players[i].info_thumbnails.colors.font_color,team_id:s.data.games[0].players[i].team_id,player_id:s.data.games[0].players[i].player_id,game_id:s.data.games[0].game_id,season_id:s.data.season_id,logohome:s.data.games[0].players[i].team_logo,photoprofile:s.data.games[0].players[i].info_thumbnails.images.player_in_action[l]?"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.games[0].players[i].info_thumbnails.images.player_in_action[l]:"https://az755631.vo.msecnd.net/players-profile/"+s.data.games[0].players[i].player_id+".png",logoaway:"",scoreaway:"",scorehome:""},t.push(n)}}if(this.type==4){console.log("Hola nuva mente 44444: "),console.log(s.data),this.playerPhoto=!1,s=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/specifics-plays/seasons/"+e.season+"/games/"+e.game);for(let i=0;i<s.data.home_team.categories.length;i++){const r=Math.floor(Math.random()*s.data.home_team.categories[i].info_thumbnails.images.background_default_teams.length);n={game_id:s.data.game_id,season_id:s.data.season_id,team_id:s.data.home_team.team_id,category:s.data.home_team.categories[i].categories.concat(s.data.home_team.categories[i].rival_categories),background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.home_team.categories[i].info_thumbnails.images.background_default_categories[r],player_action:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.home_team.categories[i].info_thumbnails.images.background_default_categories[r],team_logo:"https://az755631.vo.msecnd.net/teams-150/"+s.data.home_team.team_id+".png",color:s.data.home_team.categories[i].info_thumbnails.colors.background_color,colorfont:s.data.home_team.categories[i].info_thumbnails.colors.font_color,player_name:s.data.home_team.categories[i].category_name,total:s.data.home_team.categories[i].total,team_name:"Local",background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+s.data.home_team.team_id+"_"+s.data.season_id+"_r1.jpg"},t.push(n)}}if(this.type==5){this.playerPhoto=!1,s=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/specifics-plays/seasons/"+e.season+"/games/"+e.game);for(let i=0;i<s.data.visiting_team.categories.length;i++){const r=Math.floor(Math.random()*s.data.visiting_team.categories[i].info_thumbnails.images.background_default_categories.length);n={game_id:s.data.game_id,season_id:s.data.season_id,team_id:s.data.visiting_team.team_id,category:s.data.visiting_team.categories[i].categories.concat(s.data.visiting_team.categories[i].rival_categories),background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.visiting_team.categories[i].info_thumbnails.images.background_default_categories[r],player_action:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.visiting_team.categories[i].info_thumbnails.images.background_default_categories[r],team_logo:"https://az755631.vo.msecnd.net/teams-150/"+s.data.visiting_team.team_id+".png",team_name:"Away",color:s.data.visiting_team.categories[i].info_thumbnails.colors.background_color,colorfont:s.data.visiting_team.categories[i].info_thumbnails.colors.font_color,player_name:s.data.visiting_team.categories[i].category_name,total:s.data.visiting_team.categories[i].total,background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+s.data.visiting_team.team_id+"_"+s.data.season_id+"_r1.jpg"},t.push(n)}}if(this.type==6){s=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/teams/"+e.team+"/categories/"+e.category);for(let i=0;i<s.data.best_plays.length;i++)n={category:s.data.best_plays[i].categories,team_id:s.data.team_id,game_id:s.data.best_plays[i].game_id,season_id:s.data.season_id,backgroundhome:s.data.best_plays[i].info_thumbnails.home_colors.background_color,backgroundaway:s.data.best_plays[i].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+s.data.best_plays[i].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+s.data.best_plays[i].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.best_plays[i].info_thumbnails.images.background_default_categories[0],match:"",seasonname:"",score:s.data.best_plays[i].score[0]+" : "+s.data.best_plays[i].score[1]},t.push(n)}if(this.type==7){s=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/teams/"+e.team+"/categories/"+e.category);for(let i=0;i<s.data.best_plays.length;i++)n={category:s.data.best_plays[i].categories,team_id:s.data.team_id,game_id:s.data.best_plays[i].game_id,season_id:s.data.season_id,backgroundhome:s.data.best_plays[i].info_thumbnails.home_colors.background_color,colorfont_home:s.data.best_plays[i].info_thumbnails.home_colors.font_color,colorfont_away:s.data.best_plays[i].info_thumbnails.away_colors.font_color,backgroundaway:s.data.best_plays[i].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+s.data.best_plays[i].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+s.data.best_plays[i].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.best_plays[i].info_thumbnails.images.background_default_categories[0],match:"",seasonname:"",score:s.data.best_plays[i].score[0]+" : "+s.data.best_plays[i].score[1]},t.push(n)}if(this.type==8){s=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/players/"+e.player+"/categories/"+e.category);for(let i=0;i<s.data.best_plays.length;i++)n={category:s.data.best_plays[i].categories,team_id:s.data.team_id,game_id:s.data.best_plays[i].game_id,season_id:s.data.season_id,player_id:s.data.player_id,backgroundhome:s.data.best_plays[i].info_thumbnails.home_colors.background_color,backgroundaway:s.data.best_plays[i].info_thumbnails.away_colors.background_color,colorfont_home:s.data.best_plays[i].info_thumbnails.home_colors.font_color,colorfont_away:s.data.best_plays[i].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+s.data.best_plays[i].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+s.data.best_plays[i].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.best_plays[i].info_thumbnails.images.background_default_categories[0],match:"",scorehome:s.data.best_plays[i].score[0],scoreaway:s.data.best_plays[i].score[1],photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+s.data.best_plays[i].info_thumbnails.player_logo,hometeamacronym:s.data.best_plays[i].home_team_acronym,visitingteamacronym:s.data.best_plays[i].away_team_acronym,seasonname:"",score:s.data.best_plays[i].score[0]+" : "+s.data.best_plays[i].score[1]},t.push(n)}if(this.type==9){s=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/players/"+e.player+"/categories/"+e.category);for(let i=0;i<s.data.best_plays.length;i++)n={category:s.data.best_plays[i].categories,team_id:s.data.team_id,player_id:s.data.player_id,game_id:s.data.best_plays[i].game_id,season_id:s.data.season_id,backgroundhome:s.data.best_plays[i].info_thumbnails.home_colors.background_color,backgroundaway:s.data.best_plays[i].info_thumbnails.away_colors.background_color,colorfont_home:s.data.best_plays[i].info_thumbnails.home_colors.font_color,colorfont_away:s.data.best_plays[i].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+s.data.best_plays[i].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+s.data.best_plays[i].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.best_plays[i].info_thumbnails.images.background_default_categories[0],match:"",scorehome:s.data.best_plays[i].score[0],scoreaway:s.data.best_plays[i].score[1],seasonname:"",photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+s.data.best_plays[i].info_thumbnails.player_logo,score:s.data.best_plays[i].score[0]+" : "+s.data.best_plays[i].score[1]},t.push(n)}if(this.type==10){const i=await a.get("https://ws8d8ye2ii.execute-api.us-west-2.amazonaws.com/prod/v4/seasonsByTeam/"+e.team);for(let r=0;r<i.data.seasons[e.season].games.length;r++){const l=Math.floor(Math.random()*i.data.seasons[e.season].games[r].info_thumbnails.images.background_default_games.length);n={photo_profile:"https://az755631.vo.msecnd.net/teams-150/"+i.data.seasons[e.season].games[r].visiting_team+".png",team_logo:"https://az755631.vo.msecnd.net/teams-150/"+i.data.seasons[e.season].games[r].home_team+".png",player_name:i.data.seasons[e.season].games[r].home_team_acronym+" "+i.data.seasons[e.season].games[r].home_team_score+" : "+i.data.seasons[e.season].games[r].visiting_team_score+" "+i.data.seasons[e.season].games[r].visiting_team_acronym,team_id:i.data.seasons[e.season].games[r].game_id,team_id_b:i.data.seasons[e.season].games[r].home_team,season_id:i.data.seasons[e.season].games[r].season_id,name:"",category:0,colorfont_home:i.data.best_plays[r].info_thumbnails.home_colors.colors.font_color,colorfont_away:i.data.best_plays[r].info_thumbnails.away_colors.colors.font_color,game_id:i.data.seasons[e.season].games[r].game_id,seasonname:i.data.seasons[e.season].name,match:i.data.seasons[e.season].games[r].matchday_name.replace("Matchday","Jor"),score:i.data.seasons[e.season].games[r].home_team_score+" : "+i.data.seasons[e.season].games[r].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.seasons[e.season].games[r].info_thumbnails.images.background_default_games[l],backgroundhome:i.data.seasons[e.season].games[r].info_thumbnails.home_colors.background_color,backgroundaway:i.data.seasons[e.season].games[r].info_thumbnails.away_colors.background_color,colorfont_home:i.data.best_plays[r].info_thumbnails.home_colors.font_color,colorfont_away:i.data.best_plays[r].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+i.data.seasons[e.season].games[r].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+i.data.seasons[e.season].games[r].visiting_team+".png",total:i.data.seasons[e.season].games[r].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+i.data.seasons[e.season].games[r].home_team+"_"+i.data.seasons[e.season].games[r].season_id+"_r1.jpg"},t.push(n)}}if(this.type==11){const i=await a.get("https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/"+e.season+"/"+e.player);for(let r=0;r<i.data.seasons[e.season].games_played.length;r++)Math.floor(Math.random()*i.data.seasons[e.season].games_played[r].info_thumbnails.images.background_default_games.length),n={category:0,player_id:e.player,team_id:i.data.team_id,game_id:i.data.seasons[e.season].games_played[r].game_id,position_id:i.data.position_id,color:i.data.info_thumbnails.colors.background_color,photo_profile:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.info_thumbnails.images.player_in_action[0],team_logo:"https://az755631.vo.msecnd.net/teams-150/"+i.data.seasons[e.season].games_played[r].home_team+".png",player_name:i.data.seasons[e.season].games_played[r].home_team_acronym+" "+i.data.seasons[e.season].games_played[r].home_team_score+" : "+i.data.seasons[e.season].games_played[r].visiting_team_score+" "+i.data.seasons[e.season].games_played[r].visiting_team_acronym,team_id_b:i.data.seasons[e.season].games_played[r].home_team,season_id:i.data.seasons[e.season].games_played[r].season_id,name:i.data.seasons[e.season].games_played[r].player_name,seasonname:i.data.seasons[e.season].name,match:i.data.seasons[e.season].games_played[r].matchday_name.replace("Matchday","Jor"),scorehome:i.data.seasons[e.season].games_played[r].home_team_score,scoreaway:i.data.seasons[e.season].games_played[r].visiting_team_score,hometeamacronym:i.data.seasons[e.season].games_played[r].home_team_acronym,visitingteamacronym:i.data.seasons[e.season].games_played[r].visiting_team_acronym,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.info_thumbnails.images.background_player_in_action[0],backgroundhome:i.data.seasons[e.season].games_played[r].info_thumbnails.home_colors.background_color,backgroundaway:i.data.seasons[e.season].games_played[r].info_thumbnails.away_colors.background_color,colorfont_home:i.data.seasons[e.season].games_played[r].info_thumbnails.home_colors.font_color,colorfont_away:i.data.seasons[e.season].games_played[r].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+i.data.seasons[e.season].games_played[r].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+i.data.seasons[e.season].games_played[r].visiting_team+".png",total:i.data.seasons[e.season].games_played[r].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+i.data.seasons[e.season].games_played[r].home_team+"_"+i.data.seasons[e.season].games_played[r].season_id+"_r1.jpg"},t.push(n)}if(this.type==12){const i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/categories/"+e.category);for(let r=0;r<i.data.length;r++)for(let l=0;l<i.data[r].best_plays.length;l++)n={category:i.data[r].best_plays[l].categories,game_id:i.data[r].best_plays[l].game_id,season_id:i.data[r].season_id,backgroundhome:i.data[r].best_plays[l].info_thumbnails.home_colors.background_color,backgroundaway:i.data[r].best_plays[l].info_thumbnails.away_colors.background_color,colorfont_home:i.data[r].best_plays[l].info_thumbnails.home_colors.font_color,colorfont_away:i.data[r].best_plays[l].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+i.data[r].best_plays[l].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+i.data[r].best_plays[l].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data[r].best_plays[l].info_thumbnails.images.background_default_categories[0],match:"",scorehome:i.data[r].best_plays[l].score[0],scoreaway:i.data[r].best_plays[l].score[1],seasonname:"",photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+i.data[r].best_plays[l].info_thumbnails.player_logo,score:i.data[r].best_plays[l].score[0]+" : "+i.data[r].best_plays[l].score[1]},t.push(n)}if(this.type==13){const i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/categories/"+e.category);for(let r=0;r<i.data.length;r++)for(let l=0;l<i.data[r].best_plays.length;l++)n={category:i.data[r].best_plays[l].categories,game_id:i.data[r].best_plays[l].game_id,season_id:i.data[r].season_id,backgroundhome:i.data[r].best_plays[l].info_thumbnails.home_colors.background_color,backgroundaway:i.data[r].best_plays[l].info_thumbnails.away_colors.background_color,colorfont_home:i.data[r].best_plays[l].info_thumbnails.home_colors.font_color,colorfont_away:i.data[r].best_plays[l].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+i.data[r].best_plays[l].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+i.data[r].best_plays[l].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data[r].best_plays[l].info_thumbnails.images.background_default_categories[0],match:"",scorehome:i.data[r].best_plays[l].score[0],scoreaway:i.data[r].best_plays[l].score[1],seasonname:"",photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+i.data[r].best_plays[l].info_thumbnails.player_logo,score:i.data[r].best_plays[l].score[0]+" : "+i.data[r].best_plays[l].score[1]},t.push(n)}if(this.type==14)if(this.lastseason!=e.season){this.arrayMatchdays=[];const i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/categories/"+e.category);let r=[];for(let l=0;l<i.data.length;l++)for(let u=0;u<i.data[l].best_plays.length;u++)n={category:i.data[l].best_plays[u].categories,game_id:i.data[l].best_plays[u].game_id,play_status:i.data[l].best_plays[u].play_status,season_id:i.data[l].season_id,backgroundhome:i.data[l].best_plays[u].info_thumbnails.home_colors.background_color,backgroundaway:i.data[l].best_plays[u].info_thumbnails.away_colors.background_color,colorfont_home:i.data[l].best_plays[u].info_thumbnails.home_colors.font_color,colorfont_away:i.data[l].best_plays[u].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+i.data[l].best_plays[u].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+i.data[l].best_plays[u].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data[l].best_plays[u].info_thumbnails.images.background_default_categories[0],match:"",scorehome:i.data[l].best_plays[u].score[0],scoreaway:i.data[l].best_plays[u].score[1],seasonname:"",photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+i.data[l].best_plays[u].info_thumbnails.player_logo,score:i.data[l].best_plays[u].score[0]+" : "+i.data[l].best_plays[u].score[1],matchday_id:i.data[l].best_plays[u].matchday_id},this.arrayMatchdays[i.data[l].best_plays[u].matchday_id]?r.includes(n.game_id)||(this.arrayMatchdays[i.data[l].best_plays[u].matchday_id].push(n),r.push(n.game_id)):r.includes(n.game_id)||(this.arrayMatchdays[i.data[l].best_plays[u].matchday_id]=[],this.arrayMatchdays[i.data[l].best_plays[u].matchday_id].push(n),r.push(n.game_id)),t=this.arrayMatchdays[this.matchdayView]}else t=this.arrayMatchdays[this.matchdayView];this.lastseason=e.season,this.printData=t}},async created(){}},Rc=()=>{o.useCssVars(e=>({"71fabda6":e.backgroundColor}))},Lc=di.setup;di.setup=Lc?(e,a)=>(Rc(),Lc(e,a)):Rc;function V4(e,a,t,n,s,i){const r=o.resolveComponent("GSCThumbnailCategory"),l=o.resolveComponent("GSCThumbnailCategoryTeam"),u=o.resolveComponent("GSCThumbnailCategoryTeamAway"),c=o.resolveComponent("GSCThumbnailHighlightGamePlayer"),m=o.resolveComponent("GSCThumbnailHighlightGameHistoric"),p=o.resolveComponent("GSCThumbnailSummaryPlayer"),f=o.resolveComponent("GSCSlider");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(e.$style.ptg),ref:"ptgDiv"},[o.createElementVNode("div",{class:o.normalizeClass(i.ptgtitleClass)},o.toDisplayString(t.title),3),o.createVNode(f,{backgroundColor:t.backgroundColor,pxScroll:t.pxScroll,arrows:t.arrows,arrowsScrollHide:t.arrowsScrollHide,arrowsHideOnNoScroll:t.arrowsHideOnNoScroll,arrowsColor:t.arrowsColor,arrowsHeight:t.arrowsWidth,arrowsWidth:t.arrowsWidth,arrowsPadding:t.arrowsPadding,arrowsMargin:t.arrowsMargin,arrowsRadius:t.arrowsRadius,arrowsBorder:t.arrowsBorder,arrowsBackground:t.arrowsBackground,arrowsContainerBgL:t.arrowsContainerBgL,arrowsContainerBgR:t.arrowsContainerBgR,scrollColor:t.scrollColor,arrowsPosition:t.arrowsPosition,height:t.height},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.printData,(d,h)=>(o.openBlock(),o.createElementBlock("div",{key:h,class:o.normalizeClass(i.pgtcontainercardClass),style:o.normalizeStyle(h==0?"margin-left: 0px !important; color: white;":"")},[t.type==2?(o.openBlock(),o.createBlock(r,{key:0,"color-background-home":d.color,"name-player":t.data.player_name,"type-img":"0",background:d.background_action,"name-category":d.player_name,"logo-home":d.team_logo,onOnclickPlayVideos:g=>i.onclickPlayVideos({data:d,type:2}),"photo-profile":d.player_action},null,8,["color-background-home","name-player","background","name-category","logo-home","onOnclickPlayVideos","photo-profile"])):t.type==1||t.type==4?(o.openBlock(),o.createBlock(l,{key:1,type:"team","name-team":d.team_name!=null?d.team_name:"","type-style":"category","color-background-home":d.color,"logo-home":d.team_logo,onOnclickPlayVideos:g=>i.onclickPlayVideos({data:d,type:3}),background:d.player_action,"name-category":d.player_name},null,8,["name-team","color-background-home","logo-home","onOnclickPlayVideos","background","name-category"])):t.type==5?(o.openBlock(),o.createBlock(u,{key:2,type:"team","name-team":d.team_name!=null?d.team_name:"","type-style":"category","color-background-away":d.color,"logo-home":d.team_logo,onOnclickPlayVideos:g=>i.onclickPlayVideos({data:d,type:3}),background:d.player_action,"name-category":d.player_name},null,8,["name-team","color-background-away","logo-home","onOnclickPlayVideos","background","name-category"])):t.type==0?(o.openBlock(),o.createBlock(c,{key:3,items:d,type:2,"name-category":"TODAS SUS JUGADAS","color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"color-font-home":d.colorfont_home,"color-font-away":d.colorfont_away,"logo-home":d.logohome,"logo-away":d.logoaway,onOnclickPlayVideos:g=>i.onclickPlayVideos({data:d,type:2,isAllPlays:!0}),background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,matchday:d.match,"score-home":d.scorehome,"photo-profile":d.photo_profile,"score-away":d.scoreaway,"season-name":d.seasonname},null,8,["items","color-background-home","color-background-away","color-font-home","color-font-away","logo-home","logo-away","onOnclickPlayVideos","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):t.type==6?(o.openBlock(),o.createBlock(m,{key:4,items:d,"color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,background:d.background,"title-category":"GOLES",onOnclickPlayVideos:g=>i.onclickPlayVideos({data:d,type:3,categories:s.goalCategories}),matchday:d.match,"season-name":d.seasonname,score:d.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","onOnclickPlayVideos","matchday","season-name","score"])):t.type==7?(o.openBlock(),o.createBlock(m,{key:5,items:d,"color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,background:d.background,"title-category":"RESUMEN",onOnclickPlayVideos:g=>i.onclickPlayVideos({data:d,type:3,categories:s.resumeCategories}),matchday:d.match,"season-name":d.seasonname,score:d.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","onOnclickPlayVideos","matchday","season-name","score"])):t.type==8?(o.openBlock(),o.createBlock(c,{key:6,items:d,type:2,"name-category":"RESUMEN","color-font-home":d.colorfont_home,"color-font-away":d.colorfont_away,"color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,onOnclickPlayVideos:g=>i.onclickPlayVideos({data:d,type:2}),background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,matchday:d.match,"score-home":d.scorehome,"photo-profile":d.photo_profile,"score-away":d.scoreaway,"season-name":d.seasonname},null,8,["items","color-font-home","color-font-away","color-background-home","color-background-away","logo-home","logo-away","onOnclickPlayVideos","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):t.type==9?(o.openBlock(),o.createBlock(c,{key:7,items:d,type:2,"name-category":"RESUMEN","color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,onOnclickPlayVideos:g=>i.onclickPlayVideos({data:d,type:2}),"logo-away":d.logoaway,background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,matchday:d.match,"score-home":d.scorehome,"photo-profile":d.photo_profile,"score-away":d.scoreaway,"season-name":d.seasonname},null,8,["items","color-background-home","color-background-away","logo-home","onOnclickPlayVideos","logo-away","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):t.type==10?(o.openBlock(),o.createBlock(m,{key:8,items:d,"color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,onOnclickPlayVideos:g=>i.onclickPlayVideos({data:d,type:1}),background:d.background,"title-category":"RESUMEN",matchday:d.match,"season-name":d.seasonname,score:d.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","onOnclickPlayVideos","background","matchday","season-name","score"])):t.type==11?(o.openBlock(),o.createBlock(c,{key:9,items:d,type:2,"name-category":"RESUMEN","color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,matchday:d.match,"color-font-home":d.colorfont_home,"color-font-away":d.colorfont_away,onOnclickPlayVideos:g=>i.onclickPlayVideos({data:d,type:2}),"score-home":d.scorehome,"photo-profile":d.photo_profile,"score-away":d.scoreaway,"season-name":d.seasonname},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","name-home-team","name-away-team","matchday","color-font-home","color-font-away","onOnclickPlayVideos","score-home","photo-profile","score-away","season-name"])):t.type==12?(o.openBlock(),o.createBlock(c,{key:10,items:d,type:2,"name-category":"RESUMEN","color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,"color-font-home":d.colorfont_home,"color-font-away":d.colorfont_away,onOnclickPlayVideos:g=>i.onclickPlayVideos({data:d,type:1}),background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,matchday:d.match,"score-home":d.scorehome,"photo-profile":d.photo_profile,"score-away":d.scoreaway,"season-name":d.seasonname},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","color-font-home","color-font-away","onOnclickPlayVideos","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):t.type==13?(o.openBlock(),o.createBlock(c,{key:11,items:d,type:2,"name-category":"GOLES","color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,onOnclickPlayVideos:g=>i.onclickPlayVideos({data:d,type:1,categories:s.goalCategories}),background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,matchday:d.match,"score-home":d.scorehome,"photo-profile":d.photo_profile,"score-away":d.scoreaway,"season-name":d.seasonname},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","onOnclickPlayVideos","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):t.type==14?(o.openBlock(),o.createBlock(c,{key:12,items:d,type:2,"play-status":d.play_status?d.play_status:0,"name-category":"GOLES","color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,onOnclickPlayVideos:g=>i.onclickPlayVideos({data:d,type:1,categories:s.goalCategories}),background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,matchday:d.match,"score-home":d.scorehome,showimg:!1,"photo-profile":d.photo_profile,"score-away":d.scoreaway,"season-name":d.seasonname},null,8,["items","play-status","color-background-home","color-background-away","logo-home","logo-away","onOnclickPlayVideos","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):(o.openBlock(),o.createBlock(p,{key:13,type:"player","color-background-home":d.colorbackgroundhome,"color-background-away":d.colorbackgroundaway,"name-player":d.nameplayer,"type-img":0,onOnclickPlayVideos:g=>i.onclickPlayVideos({data:d,type:2}),background:d.background,"name-home-team":d.namehometeam,"name-away-team":d.nameawayteam,"name-category":"RESUMEN","logo-away":d.logoaway,"logo-home":d.logohome,"color-font":d.colorfont,"score-home":d.scorehome,"photo-profile":d.photoprofile,"score-away":d.logoaway,"type-style":"summary"},null,8,["color-background-home","color-background-away","name-player","onOnclickPlayVideos","background","name-home-team","name-away-team","logo-away","logo-home","color-font","score-home","photo-profile","score-away"]))],6))),128))]),_:1},8,["backgroundColor","pxScroll","arrows","arrowsScrollHide","arrowsHideOnNoScroll","arrowsColor","arrowsHeight","arrowsWidth","arrowsPadding","arrowsMargin","arrowsRadius","arrowsBorder","arrowsBackground","arrowsContainerBgL","arrowsContainerBgR","scrollColor","arrowsPosition","height"])],2)}const $4={name:"DiscoverVideos",components:{GscSwitchComponent:Ua,GSCPlayerTeamGame:yt(di,[["render",V4],["__cssModules",{$style:A4}]]),GSCButton:jr,MatchDayPicker:Fr},props:{myTournament:{type:Number,default:1},videoType:{type:Number,default:1},isplayer:{type:Boolean,default:!1},team:{type:Number,default:0},player:{type:Number,default:0},user:{type:Object,default:()=>{}},nextRivalTeam:{type:Object,default:()=>{}},tournamentSelected:{type:Object,default:()=>{}},defaultMatchDayKey:{type:String,default:""},isLeagueSelected:{type:Boolean,default:!1},isFull:{type:Boolean,default:!1},tournamentScheduleKeys:{type:Array,default:()=>[]},seasonSelected:{type:Object,default:()=>{}}},watch:{tournamentSelected:{immediate:!0,deep:!1,async handler(e){this.myTournament!==e.id?this.currentTabMoreVideos="Goles":this.currentTabMoreVideos="Goles",setTimeout(()=>{this.upkey+=1},500)}},closestRound(e){this.selectedRoundKeyIndex=this.tournamentScheduleKeys.findIndex(a=>a===e),this.selectedRound=e}},data(){return{currentTabMoreVideos:"Resumen",currentMobileTab:"Descubre videos",mobileClass:!1,activeDropGoals:!1,matchdayActive:{},resumeCategory:1000001,goalsCategory:1255e3,resumeType:1,upkey:0,goalsType:2}},mounted(){this.mobileClass=window.innerWidth<768,window.addEventListener("resize",this.handleResize)},methods:{onChangeMatchDay(e){this.matchdayActive=e,this.$emit("change-match-day",e)},handleResize(){this.mobileClass=window.innerWidth<768},onOpenMedia(e){this.$emit("openmedia",e)},onClickOpenMedia(){let t=1,n=[],s=[],i=0,r=this.user.season,l=[],u=[12,55,"35_r","54_r"],c=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257],m=[55,324,323,608,39,774,802,52,53,40,54];this.tournamentSelected.id===this.user.tournament?(r=this.seasonSelected.id,this.user.is_goalkeeper?(n=[this.user.player],l=m,t=2):this.user.is_player?(s=[this.user.player],l=c,t=2):(i=this.user.team,l=u,t=3)):(l=u,t=1);const p={type:0,seasonId:r,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:t,gameIds:null,playerIds:s,goalkeeperIds:n,categoryIds:l,teamId:i,matchResult:[1,2,3],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:""},objectPlaySync:null};this.$emit("openmedia",p)}}},P4=e=>(o.pushScopeId("data-v-c63f9fb7"),e=e(),o.popScopeId(),e),I4={class:"discover-videos",ref:"discoverVideosRef"},R4={class:"title-and-button"},L4={class:"menu-container"},z4=P4(()=>o.createElementVNode("div",{class:"title-value"},"Videos",-1)),F4={class:"btn-search-videos"},M4={class:"calendar-container"},D4={class:"drop-down-innercontainer-text"},j4={class:"drop-down-innercontainer-arrow"};function W4(e,a,t,n,s,i){const r=o.resolveComponent("GscSwitchComponent"),l=o.resolveComponent("GSCButton"),u=o.resolveComponent("MatchDayPicker"),c=o.resolveComponent("GSCPlayerTeamGame");return o.openBlock(),o.createElementBlock("div",I4,[o.createElementVNode("div",R4,[o.createElementVNode("div",L4,[z4,t.myTournament===t.tournamentSelected.id?(o.openBlock(),o.createBlock(r,{key:0,style:{"margin-left":"45px"},buttons:["Goles","Resumen","Proximo rival"],onInput:a[0]||(a[0]=m=>s.currentTabMoreVideos=m),background:"trasparent",height:"28px",width:"140px",fontSize:"14px","font-family":"Poppins-Light",backgroundOptionActive:"transparent",borderWidth:"2px",type:2,arrow:!1,selectedOption:s.currentTabMoreVideos,onOpenmedia:i.onOpenMedia},null,8,["selectedOption","onOpenmedia"])):o.createCommentVNode("",!0)]),o.createElementVNode("div",F4,[o.createVNode(l,{style:{"margin-top":"4px"},width:"182px","text-value":"Buscar videos","font-color":"#ffffff","font-family":"Poppins-Light","font-size":"16px",icon:"https://golstatsimages.blob.core.windows.net/images-library/icn-buscar-videos.svg","icon-size":"30px","icon-position":"right","button-max-width":"250px",height:"38px","border-radius":"50px","border-width":"1","background-color":"transparent","border-color":"#CBEE6B","active-background-color":"#CBEE6B",onClick:i.onClickOpenMedia},null,8,["onClick"])])]),s.currentTabMoreVideos=="Goles"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",M4,[o.createElementVNode("div",{class:"drop-down-innercontainer",onClick:a[1]||(a[1]=m=>s.activeDropGoals=!s.activeDropGoals)},[o.createElementVNode("div",D4,[o.createTextVNode("Jornada "),Object.keys(s.matchdayActive).length>0?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(s.matchdayActive.value),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(t.defaultMatchDayKey),1)],64))]),o.createElementVNode("div",j4,[o.createElementVNode("img",{width:"18",style:o.normalizeStyle(s.activeDropGoals?"":"transform: rotate(180deg);"),src:"http://golstatsimages.blob.core.windows.net/images-library/icn-arrow-collapse@2x.png"},null,4)])]),(t.isLeagueSelected||s.currentTabMoreVideos=="Goles")&&t.tournamentScheduleKeys&&t.tournamentScheduleKeys.length&&s.activeDropGoals?(o.openBlock(),o.createBlock(u,{height:"48px","margin-top":"5px","disable-matchdays":!0,"match-days":t.tournamentScheduleKeys,"is-landing-mode":!1,"items-to-show":9,key:s.upkey,"items-to-scroll":9,onChangeMatchDay:i.onChangeMatchDay,"default-match-day-key":t.defaultMatchDayKey},null,8,["match-days","onChangeMatchDay","default-match-day-key"])):o.createCommentVNode("",!0)]),o.createVNode(c,{style:{"margin-top":"-30px"},type:14,data:{season:t.seasonSelected.id,category:s.goalsCategory},width:"100%","matchday-view":s.matchdayActive.value,backgroundColor:"transparent",title:"",onOpenmedia:i.onOpenMedia},null,8,["data","matchday-view","onOpenmedia"])],64)):o.createCommentVNode("",!0),s.currentTabMoreVideos=="Resumen"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[t.isplayer?(o.openBlock(),o.createBlock(c,{key:1,type:8,title:"",style:{"margin-top":"-30px"},backgroundColor:"transparent",data:{season:t.seasonSelected.id,player:t.player,category:1000001},width:"100%",onOpenmedia:i.onOpenMedia},null,8,["data","onOpenmedia"])):(o.openBlock(),o.createBlock(c,{key:0,type:7,title:"",style:{"margin-top":"-30px"},backgroundColor:"transparent",data:{season:t.seasonSelected.id,team:t.team,category:s.resumeCategory},width:"100%",onOpenmedia:i.onOpenMedia},null,8,["data","onOpenmedia"]))],64)):o.createCommentVNode("",!0),s.currentTabMoreVideos=="Proximo rival"?(o.openBlock(),o.createBlock(c,{key:2,type:7,style:{"margin-top":"-30px"},title:"",backgroundColor:"transparent",data:{season:t.seasonSelected.id,team:t.nextRivalTeam.id,category:s.resumeCategory},width:"100%",onOpenmedia:i.onOpenMedia},null,8,["data","onOpenmedia"])):o.createCommentVNode("",!0)],512)}const U4={components:{GSCSeasonSelect:bk,GSCTournamentSelect:K_,GSCGames:I2,GSCGridTeamsMatches:Nm,GSCPlayersLanding:Sm,GSCTops:Iw,GSCTableCalendar:bb,DiscoverVideos:Ne($4,[["render",W4],["__scopeId","data-v-c63f9fb7"]]),CarouselFullScreen:E_},setup(){const e=o.ref("landingref"),{elementSize:a}=Kd(e);return{landingref:e,elementSize:a}},watch:{team:{immediate:!0,deep:!0,async handler(e){if(Object.keys(this.seasonSelected).length!==0){const a=await this.generateSeasons(this.seasonSelected);this.seasonsSelected=a,this.fetchGames(e,a)}}},closestRound(e){this.selectedRoundKeyIndex=this.tournamentScheduleKeys.findIndex(a=>a===e),this.selectedRound=e},latestRound(e){this.selectedRoundKeyIndexVideo=this.tournamentScheduleKeysGoals.findIndex(a=>a===e),this.selectedRoundVideos=e}},props:{currentSeasonId:{type:Number,default:0},season:{type:Number,default:1772},isplayer:{type:Boolean,default:!1},user:{type:Object,default:()=>{}},team:{type:Number,default:0},player:{type:Number,default:0},gamesPerMatchDay:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},data(){return{isCarouselFullScreenVisible:!1,carouselPlayerQueue:[],gameEventsUrl:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",defaultGameId:0,lastSeasonsIds:[],gamesPages:new Map,selectedRoundKeyIndex:0,selectedRoundKeyIndexVideo:0,selectedRound:"0",selectedRoundVideos:"0",isLeagueSelected:!1,fullTournamentScheduleFull:[],fullTournamentScheduleFullGoals:[],defaultMatchDayKey:null,isCupTournament:!1,retries:3,userTeamGames:[],isCupLegacyTournament:!1,tournamentScheduleKeys:[],tournamentScheduleKeysGoals:[],currentTournamentGames:null,currentTournamentTeams:null,gamesUrl:"https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason/",gamesUrl2:"https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",seasonSelected:{},seasonSelectedDropDowns:{},seasonsSelected:[],fullTournamentSchedule:{},tournamentSelected:{},tournamentSelectedDropDowns:{seasons:[]},playersLength:0,nextRivalId:0,loadDiscover:!1,hasNextRival:!1,resumeType:1,goalsType:2}},computed:{games(){if(this.tournamentSelected.id===this.user.tournament&&!this.isLeagueSelected)return this.fullTournamentSchedule;{const e=this.gamesPages.get(this.selectedRound);return e?e[0]:[]}},latestRound(){return this.userTeamGames&&this.userTeamGames.length&&this.fullTournamentScheduleFullGoals&&this.fullTournamentScheduleFullGoals.length?this.getUserTeamClosestRound(this.fullTournamentScheduleFullGoals):this.getNormalClosestRound(this.fullTournamentScheduleFullGoals)},closestRound(){return this.userTeamGames&&this.userTeamGames.length?this.getUserTeamClosestRound(this.fullTournamentScheduleFull):this.getNormalClosestRound(this.fullTournamentScheduleFull)},containerGridCalendarTable(){return this.elementSize.width<=1e3?"container-grid-calendar-table-mobile":"container-grid-calendar-table"},containerbackground(){return this.elementSize.width<=680?"container-background-movil":"container-background"},containerdata(){return this.elementSize.width<=680?"container-data-movil":"container-data"}},methods:{formatUsername(e){const a=e.split(",");let t="",n="";return a[1]?(n=a[1].trim().split(" "),n[0]?t=n[0]:t=a[1]):a[0]&&(n=a[0].trim().split(" "),n[0]?t=n[0]:t=a[0]),t.trim()},async fetchGameEvents(e){try{const{data:{plays:a}}=await re.get(`${this.gameEventsUrl}${e}`,{headers:{Authorization:`${this.token}`}});return a}catch(a){throw new Error(a)}},async onClickOpenCarouselVideos(e){try{const a=await this.fetchGameEvents(e);this.carouselPlayerQueue=a.filter(t=>t.event_type_id===1),this.isCarouselFullScreenVisible=!0}catch(a){throw new Error(a)}},onChangeMatchDayGames(e){this.selectedRound!==e.key&&(this.selectedRound=e.key)},onClickCloseCarousel(){this.carouselPlayerQueue=[],this.isCarouselFullScreenVisible=!1},onChangeIsLeagueSelected(e){this.isLeagueSelected=e},onAction(e){this.$emit("action",e)},onOpenMedia(e){e.type==0?this.$emit("openmedia",e):this.onClickOpenCarouselVideos(e.gameIds[0])},onOpenProfile(e){this.$emit("onOpenProfile",e)},moreTops(){const e={team:this.team,season:this.seasonSelectedDropDowns};this.$emit("openTops",e)},clickProfileBtn(e){this.$emit("openProfile",e)},viewAll(){const e={team:this.team,season:this.seasonSelectedDropDowns};this.$emit("openAllPlayers",e)},getTotalPlayers(e){this.playersLength=e},clickCard(e){const a={data:e,isPlayer:this.isplayer};this.$emit("clickOnMainCards",a)},async fetchGames(e,a){const t=a.map(s=>`seasons=${s.id}`).join("&"),n=re.create({headers:{Authorization:`${this.token}`}});this.fullTournamentSchedule=await n.get(this.gamesUrl+e+"?"+t),this.nextRivalId=Object.keys(this.fullTournamentSchedule).length>0?this.user.team==this.fullTournamentSchedule.data.prematch.home_team?this.fullTournamentSchedule.data.prematch.visiting_team:this.fullTournamentSchedule.data.prematch.home_team:0,this.loadDiscover=!0},async generateSeasons(e){const a=[{id:e.id,type:e.type}];return e.related_seasons&&e.related_seasons.length&&a.push(...e.related_seasons.map(t=>({id:t.id,type:t.type}))),a},async onInputTournament(e){this.tournamentSelected=e,this.tournamentSelectedDropDowns.id!==e.id&&(this.tournamentSelectedDropDowns=e)},async onInputSeason(e){if(this.seasonSelected=e,this.tournamentSelected.id!=this.user.tournament){const a=await this.generateSeasons(this.seasonSelected);this.seasonsSelected=a,await this.createFullTournamentScheme(a,!1)}else{const a=await this.generateSeasons(this.seasonSelected);this.seasonsSelected=a,await this.createFullTournamentScheme(a,!1),await this.fetchGames(this.user.team,a)}this.seasonSelectedDropDowns!==e.id&&(this.seasonSelectedDropDowns=e.id,this.$emit("change-season-id",e.id))},async fetchTournaments(e){try{const{data:a}=await re.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments");return a}catch(a){if(e>0)return this.fetchTournaments(e-1);throw new Error(a)}},async fetchSeasonsGamesAndTeams(e,a,t=""){let n=t;try{n||(n=this.gamesUrl2,e.forEach((l,u)=>{n+=`${u===0?"":"&"}seasons=${l}`}));const s=re.create({headers:{Authorization:`${this.token}`}}),{data:{data:i,teams:r}}=await s.get(n);return{seasonsAndGames:i,seasonsAndTeams:r}}catch(s){if(a>0)return this.fetchSeasonsGamesAndTeams(e,a-1,n);throw new Error(s)}},areSeasonsDifferent(e){for(const a of e)if(!this.lastSeasonsIds.includes(a.season_id))return!0;return!1},async createFullTournamentScheme(e,a){try{this.fullTournamentSchedule={},this.userTeamGames=[];let t=0;const{seasonsAndGames:n,seasonsAndTeams:s}=await this.fetchSeasonsGamesAndTeams(e.map(m=>m.id),3);if(a&&this.areSeasonsDifferent(n))return;n.forEach(m=>{const{type:p}=e.find(f=>f.id===m.season_id);m.type=p,m.games.forEach(f=>{f.season_id=m.season_id}),p===0&&(t=m.season_id)});const i={seasonsGames:n},{teams:r}=s.find(m=>m.season_id===t),l=[...i.seasonsGames],u=i&&i.seasonsGames?i.seasonsGames.map(m=>{const p=m.games.reduce((f,d)=>{const h={...d};return h.dateTimeMillis=new Date(h.date_time_utc).valueOf(),h.home_team=r.find(g=>g.team_id===d.home_team),h.visiting_team=r.find(g=>g.team_id===d.visiting_team),f[d.matchday_abbreviation]?f[d.matchday_abbreviation][d.game_status===3?"canceled":d.date]?f[d.matchday_abbreviation][d.game_status===3?"canceled":d.date].push(h):f[d.matchday_abbreviation][d.game_status===3?"canceled":d.date]=[h]:f[d.matchday_abbreviation]={[d.game_status===3?"canceled":d.date]:[h]},this.gsData&&this.gsData.teamId&&h.game_status===4&&(h.home_team.team_id===this.gsData.teamId||h.visiting_team.team_id===this.gsData.teamId)&&this.userTeamGames.push(h),f},{});this.userTeamGames.sort((f,d)=>f.dateTimeMillis-d.dateTimeMillis);for(let[f,d]of Object.entries(p))p[f]=Object.entries(d).map(([h,g])=>({date:h,games:g.sort((b,S)=>b.dateTimeMillis-S.dateTimeMillis)})),p[f].sort((h,g)=>h.date<g.date?-1:h.date>g.date?1:0);return{type:m.type,weight:m.type===0?0:m.type===2?1:2,schedule:p}}):[],c=i&&i.seasonsGames?l.map(m=>{const p=m.games.reduce((f,d)=>{const h={...d};return h.dateTimeMillis=new Date(h.date_time_utc).valueOf(),h.home_team=r.find(g=>g.team_id===d.home_team),h.visiting_team=r.find(g=>g.team_id===d.visiting_team),f[d.matchday_abbreviation]?f[d.matchday_abbreviation][d.game_status===3?"canceled":d.date]?(h.game_status!=4||h.is_live==1)&&(h.score[0]!=0||h.score[1]!=0)&&f[d.matchday_abbreviation][d.game_status===3?"canceled":d.date].push(h):(h.game_status!=4||h.is_live==1)&&(h.score[0]!=0||h.score[1]!=0)&&(f[d.matchday_abbreviation][d.game_status===3?"canceled":d.date]=[h]):(h.game_status!=4||h.is_live==1)&&(h.score[0]!=0||h.score[1]!=0)&&(f[d.matchday_abbreviation]={[d.game_status===3?"canceled":d.date]:[h]}),f},{});this.userTeamGames.sort((f,d)=>f.dateTimeMillis-d.dateTimeMillis);for(let[f,d]of Object.entries(p))p[f]=Object.entries(d).map(([h,g])=>({date:h,games:g.sort((b,S)=>b.dateTimeMillis-S.dateTimeMillis)})),p[f].sort((h,g)=>h.date<g.date?-1:h.date>g.date?1:0);return{type:m.type,weight:m.type===0?0:m.type===2?1:2,schedule:p}}):[];u.sort((m,p)=>m.weight-p.weight),this.fullTournamentScheduleFull=u.reduce((m,p)=>{for(const[f,d]of Object.entries(p.schedule))if(p.type===0)if(this.isCup){const h=f.replace("M",""),g=`Jornada ${h}`;this.isCupLegacy?m[$l[h]||g]=d:m[Vl[f]||g]=d}else m[Number(f.replace("M","")).toString()]=d;else p.type===2?["PI1","PI2"].includes(f)?m[f]=d:m[`R${Number(f.replace("PO",""))}`]=d:p.type===1&&(m[Al[f]]=d);return m},{}),this.fullTournamentScheduleFullGoals=c.reduce((m,p)=>{for(const[f,d]of Object.entries(p.schedule))if(p.type===0)if(this.isCup){const h=f.replace("M",""),g=`Jornada ${h}`;this.isCupLegacy?m[$l[h]||g]=d:m[Vl[f]||g]=myArray}else m[Number(f.replace("M","")).toString()]=d;else p.type===2?["PI1","PI2"].includes(f)?m[f]=d:m[`R${Number(f.replace("PO",""))}`]=d:p.type===1&&(m[Al[f]]=d);return m},{}),this.tournamentScheduleKeys=Array.from(Object.entries(this.fullTournamentScheduleFull).reduce((m,[p,f])=>{const d=Number(p);let h="";Number.isNaN(d)?h=p:h=d<10?`0${d}`:p;let g=!1;const b=f.reduce((_,V)=>(V.games.forEach(z=>{z.roundAbbreviation=Number.isNaN(d)?d:`J ${d}`}),_=_.concat(V.games),_),[]);for(let _=0;_<b.length;_++)(b[_].game_status!=4||b[_].is_live)&&(b[_].score[0]!=0||b[_].score[1]!=0)&&(g=!0);m.set(p,{key:p,value:d,valueText:h,avaible:g});const S=this.getPages(b);return this.gamesPages.set(p,S),m},new Map).values()),this.tournamentScheduleKeysGoals=Array.from(Object.entries(this.fullTournamentScheduleFullGoals).reduce((m,[p,f])=>{const d=Number(p);let h="";Number.isNaN(d)?h=p:h=d<10?`0${d}`:p;let g=!1;const b=f.reduce((_,V)=>(V.games.forEach(z=>{z.roundAbbreviation=Number.isNaN(d)?d:`J ${d}`}),_=_.concat(V.games),_),[]);for(let _=0;_<b.length;_++)(b[_].game_status!=4||b[_].is_live&&(b[_].score[0]!=0||b[_].score[1]!=0))&&(g=!0);m.set(p,{key:p,value:d,valueText:h,avaible:g});const S=this.getPages(b);return this.gamesPages.set(p,S),m},new Map).values())}catch(t){throw new Error(t)}finally{this.loadingFlag=!1}},getPages(e){const a=[];if(this.gamesPerMatchDay>0){let t=[];e.forEach((n,s)=>{t.push(n),(s+1)%this.gamesPerMatchDay===0&&(a.push([...t]),t=[])}),t.length&&a.push([...t])}else a.push(e);return a},getNormalClosestRound(e){const t=Object.entries(Object.entries(e).reduce((i,[r,l])=>(i[r]=[],l.forEach(u=>{u.games.forEach(c=>{const m=new Date(c.date_time_utc).getTime()+66e5;i[r].push(m)})}),i),{}));if(!t.length)return"1";const n=new Date().getTime(),s=t.reduce((i,[r,l])=>{let u=null;return l.forEach(c=>{const m=c-n;m>=0&&(u===null||m<u)&&(u=m)}),u&&(i.shortestTime===null||u<i.shortestTime)&&(i.round=r,i.shortestTime=u),i},{round:"",shortestTime:null});return s.shortestTime!==null?s.round:t[t.length-1][0]},getUserTeamClosestRound(e){let a=1;if(this.userTeamGames.length){const t=this.userTeamGames[0];for(const[n,s]of Object.entries(e))for(const i of s)if(i.games.find(l=>l.game_id===t.game_id))return n}return a}},async created(){}},H4=e=>(o.pushScopeId("data-v-4b65f14f"),e=e(),o.popScopeId(),e),G4={class:"gsclanding",ref:"landingref"},q4={key:1,class:"container-selectors-mobile"},J4={class:"container-selectors-mobile-tournament"},K4={class:"container-selectors-mobile-season"},Z4={key:0,class:"home-item-movil"},X4=H4(()=>o.createElementVNode("div",{class:"home-movil"},"Inicio",-1)),Y4={class:"name-user-movil"},Q4={key:1,class:"home-item"},e3={key:2,class:"bar-settings"},t3={class:"name-user"},o3={class:"container-selectors"},a3={class:"selector-tournament"},n3={class:"selector-seasons"},i3={key:3,class:"container-games"},s3={class:"container-vr"},r3={key:4,class:"container-players"},l3={class:"container-tops"};function c3(e,a,t,n,s,i){const r=o.resolveComponent("CarouselFullScreen"),l=o.resolveComponent("GSCTournamentSelect"),u=o.resolveComponent("GSCSeasonSelect"),c=o.resolveComponent("GSCGames"),m=o.resolveComponent("DiscoverVideos"),p=o.resolveComponent("GSCGridTeamsMatches"),f=o.resolveComponent("GSCTableCalendar"),d=o.resolveComponent("GSCPlayersLanding"),h=o.resolveComponent("GSCTops");return o.openBlock(),o.createElementBlock("div",G4,[s.isCarouselFullScreenVisible?(o.openBlock(),o.createBlock(r,{key:0,"player-queue":s.carouselPlayerQueue,"playlist-index":0,onClose:i.onClickCloseCarousel},null,8,["player-queue","onClose"])):o.createCommentVNode("",!0),n.elementSize.width<=680?(o.openBlock(),o.createElementBlock("div",q4,[o.createElementVNode("div",J4,[o.createVNode(l,{"current-season-id":t.currentSeasonId,width:"100%",onInput:i.onInputTournament},null,8,["current-season-id","onInput"])]),o.createElementVNode("div",K4,[o.createVNode(u,{"current-season-id":t.currentSeasonId,width:"100%",seasons:s.tournamentSelectedDropDowns.seasons,onInput:i.onInputSeason},null,8,["current-season-id","seasons","onInput"])])])):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass(i.containerbackground)},[o.createElementVNode("div",{class:o.normalizeClass(i.containerdata)},[n.elementSize.width<=680?(o.openBlock(),o.createElementBlock("div",Z4,[X4,o.createElementVNode("div",Y4,"Bienvenido "+o.toDisplayString(i.formatUsername(t.user.name)),1)])):o.createCommentVNode("",!0),n.elementSize.width>680?(o.openBlock(),o.createElementBlock("div",Q4,"Inicio")):o.createCommentVNode("",!0),n.elementSize.width>680?(o.openBlock(),o.createElementBlock("div",e3,[o.createElementVNode("div",t3,"Bienvenido "+o.toDisplayString(i.formatUsername(t.user.name)),1),o.createElementVNode("div",o3,[o.createElementVNode("div",a3,[o.createVNode(l,{"current-season-id":t.currentSeasonId,onInput:i.onInputTournament},null,8,["current-season-id","onInput"])]),o.createElementVNode("div",n3,[o.createVNode(u,{"current-season-id":t.currentSeasonId,seasons:s.tournamentSelectedDropDowns.seasons,onInput:i.onInputSeason},null,8,["current-season-id","seasons","onInput"])])])])):o.createCommentVNode("",!0),Object.keys(s.tournamentSelected).length>0?(o.openBlock(),o.createElementBlock("div",i3,[o.createVNode(c,{"component-width":n.elementSize.width,isplayer:t.isplayer,"is-full":s.tournamentSelected.id!=t.user.tournament,data:i.games,"tournament-schedule-keys":s.tournamentScheduleKeys,"default-match-day-key":s.selectedRound,onClickCalendar:e.onClickCalendar,onClickMatch:e.onClickMatch,onChangeMatchDay:i.onChangeMatchDayGames,onChangeIsLeagueSelected:i.onChangeIsLeagueSelected},null,8,["component-width","isplayer","is-full","data","tournament-schedule-keys","default-match-day-key","onClickCalendar","onClickMatch","onChangeMatchDay","onChangeIsLeagueSelected"])])):o.createCommentVNode("",!0),o.createElementVNode("div",s3,[o.createVNode(m,{"component-width":n.elementSize.width,onOpenmedia:i.onOpenMedia,videoType:s.tournamentSelected.id==t.user.tournament?s.resumeType:s.goalsType,team:t.team,player:t.user.player,isplayer:t.isplayer,"is-full":s.tournamentSelected.id!=t.user.tournament,"is-league-selected":s.tournamentSelected.id!=t.user.tournament,nextRivalTeam:s.tournamentSelected.id==t.user.tournament&&s.nextRivalId!=0?{id:s.nextRivalId}:0,user:t.user,"tournament-schedule-keys":s.tournamentScheduleKeys,"default-match-day-key":i.latestRound,seasonSelected:s.seasonSelected,tournamentSelected:s.tournamentSelected,myTournament:t.user.tournament},null,8,["component-width","onOpenmedia","videoType","team","player","isplayer","is-full","is-league-selected","nextRivalTeam","user","tournament-schedule-keys","default-match-day-key","seasonSelected","tournamentSelected","myTournament"])]),o.createElementVNode("div",{class:o.normalizeClass(i.containerGridCalendarTable)},[o.createElementVNode("div",{class:"container-grid",style:o.normalizeStyle(n.elementSize.width<1e3?"width: 100%":"")},[o.createVNode(p,{isPlayer:t.isplayer?s.tournamentSelected.id==t.user.tournament:!1,"player-id":t.user.player,"team-id":t.user.team,"season-selected":s.seasonSelected.id,"next-rival-id":Object.keys(s.fullTournamentSchedule).length>0?t.user.team==s.fullTournamentSchedule.data.prematch.home_team?s.fullTournamentSchedule.data.prematch.visiting_team:s.fullTournamentSchedule.data.prematch.home_team:0,"team-img":"https://az755631.vo.msecnd.net/teams-150/"+t.user.team+".png","player-img":"https://az755631.vo.msecnd.net/players-profile/"+t.user.player+".png","rival-img":Object.keys(s.fullTournamentSchedule).length>0?t.user.team==s.fullTournamentSchedule.data.prematch.home_team?"https://az755631.vo.msecnd.net/teams-150/"+s.fullTournamentSchedule.data.prematch.visiting_team+".png":"https://az755631.vo.msecnd.net/teams-150/"+s.fullTournamentSchedule.data.prematch.home_team+".png":"","has-team":t.isplayer?!1:s.tournamentSelected.id==t.user.tournament,"component-width":n.elementSize.width,onAction:i.clickCard},null,8,["isPlayer","player-id","team-id","season-selected","next-rival-id","team-img","player-img","rival-img","has-team","component-width","onAction"])],4),o.createElementVNode("div",{class:"container-calendar-table",style:o.normalizeStyle(n.elementSize.width<1e3?"width: 100%; margin-top: 30px;":"")},[o.createVNode(f,{onAction:i.onAction,season:s.seasonSelected,seasons:s.seasonsSelected,onOpenmedia:i.onOpenMedia,onOnOpenProfile:i.onOpenProfile,componentWidth:n.elementSize.width},null,8,["onAction","season","seasons","onOpenmedia","onOnOpenProfile","componentWidth"])],4)],2),s.tournamentSelected.id==t.user.tournament?o.withDirectives((o.openBlock(),o.createElementBlock("div",r3,[o.createVNode(d,{onClickProfileBtn:i.clickProfileBtn,onViewAll:i.viewAll,onTotalPlayers:i.getTotalPlayers,"team-id":t.user.team,"season-id":s.seasonSelected.id,"is-player":t.user.player!=0},null,8,["onClickProfileBtn","onViewAll","onTotalPlayers","team-id","season-id","is-player"])],512)),[[o.vShow,s.playersLength>0]]):o.createCommentVNode("",!0),o.createElementVNode("div",l3,[o.createVNode(h,{onMore:i.moreTops,"show-switch":s.tournamentSelected.id==t.user.tournament,season:s.seasonSelected.id,"team-id":t.user.team,onOpenmedia:i.onOpenMedia},null,8,["onMore","show-switch","season","team-id","onOpenmedia"])])],2)],2)],512)}const d3=Ne(U4,[["render",c3],["__scopeId","data-v-4b65f14f"]]);ht.GSCLanding=d3,Object.defineProperty(ht,Symbol.toStringTag,{value:"Module"})});
|