@golstats/gsc-landing 1.0.24 → 1.0.25
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/README.md +2 -2
- package/dist/{FilterConditions-d8d96251-Ei6mUo4M.js → FilterConditions-d8d96251-yQHUlB0w.js} +1 -1
- package/dist/{FilterField-15eae076-AYxZ_1ZG.js → FilterField-15eae076-oqbjn8pI.js} +1 -1
- package/dist/{FilterSubcategories-e58037cd-_p2GTCbw.js → FilterSubcategories-e58037cd-glPtvjtF.js} +1 -1
- package/dist/arrow-expand.svg +3 -3
- package/dist/back-arrow.svg +3 -3
- package/dist/back-arrow1.svg +3 -3
- package/dist/back-arrow2.svg +3 -3
- package/dist/back-arrow3.svg +3 -3
- package/dist/back-arrow4.svg +3 -3
- package/dist/backarrow.svg +3 -3
- package/dist/css/fonts.css +127 -127
- package/dist/goal-icn.svg +14 -14
- package/dist/goal-icn1.svg +14 -14
- package/dist/goal-icn2.svg +14 -14
- package/dist/group-483271.svg +14 -14
- package/dist/gsc-landing.js +1 -1
- package/dist/gsc-landing.umd.cjs +6 -4
- package/dist/icn-arrow-expand.svg +3 -3
- package/dist/icn-expand-arrow.svg +3 -3
- package/dist/icn-expand-arrow1.svg +3 -3
- package/dist/icn-filter.svg +12 -12
- package/dist/icn-filter1.svg +12 -12
- package/dist/icn-filter2.svg +12 -12
- package/dist/icnplay1.svg +3 -3
- package/dist/{index-1NFB5BZ7.js → index-CCPN1utO.js} +111 -85
- package/dist/next-arrow.svg +3 -3
- package/dist/next-arrow1.svg +3 -3
- package/dist/next-arrow2.svg +3 -3
- package/dist/next-arrow3.svg +3 -3
- package/dist/next-arrow4.svg +3 -3
- package/dist/next-arrow5.svg +3 -3
- package/dist/nextarrow.svg +3 -3
- package/dist/style.css +1 -1
- package/dist/vector.svg +3 -3
- package/package.json +46 -46
package/dist/gsc-landing.umd.cjs
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
`).forEach(function(o){n=o.indexOf(":"),a=o.substring(0,n).trim().toLowerCase(),i=o.substring(n+1).trim(),!(!a||t[a]&&gO[a])&&(a==="set-cookie"?t[a]?t[a].push(i):t[a]=[i]:t[a]=t[a]?t[a]+", "+i:i)}),t},RS=Symbol("internals");function bc(e){return e&&String(e).trim().toLowerCase()}function Mu(e){return e===!1||e==null?e:Te.isArray(e)?e.map(Mu):String(e)}function _O(e){const t=Object.create(null),a=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=a.exec(e);)t[i[1]]=i[2];return t}const bO=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ug(e,t,a,i,n){if(Te.isFunction(i))return i.call(this,t,a);if(n&&(t=a),!!Te.isString(t)){if(Te.isString(i))return t.indexOf(i)!==-1;if(Te.isRegExp(i))return i.test(t)}}function vO(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,a,i)=>a.toUpperCase()+i)}function SO(e,t){const a=Te.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+a,{value:function(n,r,o){return this[i].call(this,t,n,r,o)},configurable:!0})})}class Fu{constructor(t){t&&this.set(t)}set(t,a,i){const n=this;function r(l,c,d){const u=bc(c);if(!u)throw new Error("header name must be a non-empty string");const h=Te.findKey(n,u);(!h||n[h]===void 0||d===!0||d===void 0&&n[h]!==!1)&&(n[h||c]=Mu(l))}const o=(l,c)=>Te.forEach(l,(d,u)=>r(d,u,c));return Te.isPlainObject(t)||t instanceof this.constructor?o(t,a):Te.isString(t)&&(t=t.trim())&&!bO(t)?o(yO(t),a):t!=null&&r(a,t,i),this}get(t,a){if(t=bc(t),t){const i=Te.findKey(this,t);if(i){const n=this[i];if(!a)return n;if(a===!0)return _O(n);if(Te.isFunction(a))return a.call(this,n,i);if(Te.isRegExp(a))return a.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,a){if(t=bc(t),t){const i=Te.findKey(this,t);return!!(i&&this[i]!==void 0&&(!a||ug(this,this[i],i,a)))}return!1}delete(t,a){const i=this;let n=!1;function r(o){if(o=bc(o),o){const l=Te.findKey(i,o);l&&(!a||ug(i,i[l],l,a))&&(delete i[l],n=!0)}}return Te.isArray(t)?t.forEach(r):r(t),n}clear(t){const a=Object.keys(this);let i=a.length,n=!1;for(;i--;){const r=a[i];(!t||ug(this,this[r],r,t,!0))&&(delete this[r],n=!0)}return n}normalize(t){const a=this,i={};return Te.forEach(this,(n,r)=>{const o=Te.findKey(i,r);if(o){a[o]=Mu(n),delete a[r];return}const l=t?vO(r):String(r).trim();l!==r&&delete a[r],a[l]=Mu(n),i[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const a=Object.create(null);return Te.forEach(this,(i,n)=>{i!=null&&i!==!1&&(a[n]=t&&Te.isArray(i)?i.join(", "):i)}),a}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,a])=>t+": "+a).join(`
|
|
3
3
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...a){const i=new this(t);return a.forEach(n=>i.set(n)),i}static accessor(t){const i=(this[RS]=this[RS]={accessors:{}}).accessors,n=this.prototype;function r(o){const l=bc(o);i[l]||(SO(n,o),i[l]=!0)}return Te.isArray(t)?t.forEach(r):r(t),this}}Fu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Te.reduceDescriptors(Fu.prototype,({value:e},t)=>{let a=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(i){this[a]=i}}}),Te.freezeMethods(Fu);const qn=Fu;function hg(e,t){const a=this||dg,i=t||a,n=qn.from(i.headers);let r=i.data;return Te.forEach(e,function(l){r=l.call(a,r,n.normalize(),t?t.status:void 0)}),n.normalize(),r}function MS(e){return!!(e&&e.__CANCEL__)}function vc(e,t,a){ot.call(this,e??"canceled",ot.ERR_CANCELED,t,a),this.name="CanceledError"}Te.inherits(vc,ot,{__CANCEL__:!0});function wO(e,t,a){const i=a.config.validateStatus;!a.status||!i||i(a.status)?e(a):t(new ot("Request failed with status code "+a.status,[ot.ERR_BAD_REQUEST,ot.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}const TO=nn.hasStandardBrowserEnv?{write(e,t,a,i,n,r){const o=[e+"="+encodeURIComponent(t)];Te.isNumber(a)&&o.push("expires="+new Date(a).toGMTString()),Te.isString(i)&&o.push("path="+i),Te.isString(n)&&o.push("domain="+n),r===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function CO(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function kO(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function FS(e,t){return e&&!CO(t)?kO(e,t):t}const EO=nn.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");let i;function n(r){let o=r;return t&&(a.setAttribute("href",o),o=a.href),a.setAttribute("href",o),{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 i=n(window.location.href),function(o){const l=Te.isString(o)?n(o):o;return l.protocol===i.protocol&&l.host===i.host}}():function(){return function(){return!0}}();function IO(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function xO(e,t){e=e||10;const a=new Array(e),i=new Array(e);let n=0,r=0,o;return t=t!==void 0?t:1e3,function(c){const d=Date.now(),u=i[r];o||(o=d),a[n]=c,i[n]=d;let h=r,m=0;for(;h!==n;)m+=a[h++],h=h%e;if(n=(n+1)%e,n===r&&(r=(r+1)%e),d-o<t)return;const p=u&&d-u;return p?Math.round(m*1e3/p):void 0}}function VS(e,t){let a=0;const i=xO(50,250);return n=>{const r=n.loaded,o=n.lengthComputable?n.total:void 0,l=r-a,c=i(l),d=r<=o;a=r;const u={loaded:r,total:o,progress:o?r/o:void 0,bytes:l,rate:c||void 0,estimated:c&&o&&d?(o-r)/c:void 0,event:n};u[t?"download":"upload"]=!0,e(u)}}const pg={http:rO,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(a,i){let n=e.data;const r=qn.from(e.headers).normalize();let{responseType:o,withXSRFToken:l}=e,c;function d(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}let u;if(Te.isFormData(n)){if(nn.hasStandardBrowserEnv||nn.hasStandardBrowserWebWorkerEnv)r.setContentType(!1);else if((u=r.getContentType())!==!1){const[y,...b]=u?u.split(";").map(E=>E.trim()).filter(Boolean):[];r.setContentType([y||"multipart/form-data",...b].join("; "))}}let h=new XMLHttpRequest;if(e.auth){const y=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";r.set("Authorization","Basic "+btoa(y+":"+b))}const m=FS(e.baseURL,e.url);h.open(e.method.toUpperCase(),PS(m,e.params,e.paramsSerializer),!0),h.timeout=e.timeout;function p(){if(!h)return;const y=qn.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),E={data:!o||o==="text"||o==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:y,config:e,request:h};wO(function(M){a(M),d()},function(M){i(M),d()},E),h=null}if("onloadend"in h?h.onloadend=p:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(p)},h.onabort=function(){h&&(i(new ot("Request aborted",ot.ECONNABORTED,e,h)),h=null)},h.onerror=function(){i(new ot("Network Error",ot.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let b=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const E=e.transitional||BS;e.timeoutErrorMessage&&(b=e.timeoutErrorMessage),i(new ot(b,E.clarifyTimeoutError?ot.ETIMEDOUT:ot.ECONNABORTED,e,h)),h=null},nn.hasStandardBrowserEnv&&(l&&Te.isFunction(l)&&(l=l(e)),l||l!==!1&&EO(m))){const y=e.xsrfHeaderName&&e.xsrfCookieName&&TO.read(e.xsrfCookieName);y&&r.set(e.xsrfHeaderName,y)}n===void 0&&r.setContentType(null),"setRequestHeader"in h&&Te.forEach(r.toJSON(),function(b,E){h.setRequestHeader(E,b)}),Te.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),o&&o!=="json"&&(h.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&h.addEventListener("progress",VS(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&h.upload&&h.upload.addEventListener("progress",VS(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=y=>{h&&(i(!y||y.type?new vc(null,e,h):y),h.abort(),h=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c)));const f=IO(m);if(f&&nn.protocols.indexOf(f)===-1){i(new ot("Unsupported protocol "+f+":",ot.ERR_BAD_REQUEST,e));return}h.send(n||null)})}};Te.forEach(pg,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const US=e=>`- ${e}`,NO=e=>Te.isFunction(e)||e===null||e===!1,jS={getAdapter:e=>{e=Te.isArray(e)?e:[e];const{length:t}=e;let a,i;const n={};for(let r=0;r<t;r++){a=e[r];let o;if(i=a,!NO(a)&&(i=pg[(o=String(a)).toLowerCase()],i===void 0))throw new ot(`Unknown adapter '${o}'`);if(i)break;n[o||"#"+r]=i}if(!i){const r=Object.entries(n).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let o=t?r.length>1?`since :
|
|
4
4
|
`+r.map(US).join(`
|
|
5
|
-
`):" "+US(r[0]):"as no adapter specified";throw new ot("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return i},adapters:pg};function mg(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new vc(null,e)}function zS(e){return mg(e),e.headers=qn.from(e.headers),e.data=hg.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),jS.getAdapter(e.adapter||dg.adapter)(e).then(function(i){return mg(e),i.data=hg.call(e,e.transformResponse,i),i.headers=qn.from(i.headers),i},function(i){return MS(i)||(mg(e),i&&i.response&&(i.response.data=hg.call(e,e.transformResponse,i.response),i.response.headers=qn.from(i.response.headers))),Promise.reject(i)})}const HS=e=>e instanceof qn?e.toJSON():e;function ho(e,t){t=t||{};const a={};function i(d,u,h){return Te.isPlainObject(d)&&Te.isPlainObject(u)?Te.merge.call({caseless:h},d,u):Te.isPlainObject(u)?Te.merge({},u):Te.isArray(u)?u.slice():u}function n(d,u,h){if(Te.isUndefined(u)){if(!Te.isUndefined(d))return i(void 0,d,h)}else return i(d,u,h)}function r(d,u){if(!Te.isUndefined(u))return i(void 0,u)}function o(d,u){if(Te.isUndefined(u)){if(!Te.isUndefined(d))return i(void 0,d)}else return i(void 0,u)}function l(d,u,h){if(h in t)return i(d,u);if(h in e)return i(void 0,d)}const c={url:r,method:r,data:r,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:l,headers:(d,u)=>n(HS(d),HS(u),!0)};return Te.forEach(Object.keys(Object.assign({},e,t)),function(u){const h=c[u]||n,m=h(e[u],t[u],u);Te.isUndefined(m)&&h!==l||(a[u]=m)}),a}const qS="1.6.5",fg={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{fg[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const WS={};fg.transitional=function(t,a,i){function n(r,o){return"[Axios v"+qS+"] Transitional option '"+r+"'"+o+(i?". "+i:"")}return(r,o,l)=>{if(t===!1)throw new ot(n(o," has been removed"+(a?" in "+a:"")),ot.ERR_DEPRECATED);return a&&!WS[o]&&(WS[o]=!0,console.warn(n(o," has been deprecated since v"+a+" and will be removed in the near future"))),t?t(r,o,l):!0}};function AO(e,t,a){if(typeof e!="object")throw new ot("options must be an object",ot.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let n=i.length;for(;n-- >0;){const r=i[n],o=t[r];if(o){const l=e[r],c=l===void 0||o(l,r,e);if(c!==!0)throw new ot("option "+r+" must be "+c,ot.ERR_BAD_OPTION_VALUE);continue}if(a!==!0)throw new ot("Unknown option "+r,ot.ERR_BAD_OPTION)}}const gg={assertOptions:AO,validators:fg},Ar=gg.validators;class Vu{constructor(t){this.defaults=t,this.interceptors={request:new OS,response:new OS}}request(t,a){typeof t=="string"?(a=a||{},a.url=t):a=t||{},a=ho(this.defaults,a);const{transitional:i,paramsSerializer:n,headers:r}=a;i!==void 0&&gg.assertOptions(i,{silentJSONParsing:Ar.transitional(Ar.boolean),forcedJSONParsing:Ar.transitional(Ar.boolean),clarifyTimeoutError:Ar.transitional(Ar.boolean)},!1),n!=null&&(Te.isFunction(n)?a.paramsSerializer={serialize:n}:gg.assertOptions(n,{encode:Ar.function,serialize:Ar.function},!0)),a.method=(a.method||this.defaults.method||"get").toLowerCase();let o=r&&Te.merge(r.common,r[a.method]);r&&Te.forEach(["delete","get","head","post","put","patch","common"],f=>{delete r[f]}),a.headers=qn.concat(o,r);const l=[];let c=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(a)===!1||(c=c&&y.synchronous,l.unshift(y.fulfilled,y.rejected))});const d=[];this.interceptors.response.forEach(function(y){d.push(y.fulfilled,y.rejected)});let u,h=0,m;if(!c){const f=[zS.bind(this),void 0];for(f.unshift.apply(f,l),f.push.apply(f,d),m=f.length,u=Promise.resolve(a);h<m;)u=u.then(f[h++],f[h++]);return u}m=l.length;let p=a;for(h=0;h<m;){const f=l[h++],y=l[h++];try{p=f(p)}catch(b){y.call(this,b);break}}try{u=zS.call(this,p)}catch(f){return Promise.reject(f)}for(h=0,m=d.length;h<m;)u=u.then(d[h++],d[h++]);return u}getUri(t){t=ho(this.defaults,t);const a=FS(t.baseURL,t.url);return PS(a,t.params,t.paramsSerializer)}}Te.forEach(["delete","get","head","options"],function(t){Vu.prototype[t]=function(a,i){return this.request(ho(i||{},{method:t,url:a,data:(i||{}).data}))}}),Te.forEach(["post","put","patch"],function(t){function a(i){return function(r,o,l){return this.request(ho(l||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:r,data:o}))}}Vu.prototype[t]=a(),Vu.prototype[t+"Form"]=a(!0)});const Uu=Vu;class yg{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(r){a=r});const i=this;this.promise.then(n=>{if(!i._listeners)return;let r=i._listeners.length;for(;r-- >0;)i._listeners[r](n);i._listeners=null}),this.promise.then=n=>{let r;const o=new Promise(l=>{i.subscribe(l),r=l}).then(n);return o.cancel=function(){i.unsubscribe(r)},o},t(function(r,o,l){i.reason||(i.reason=new vc(r,o,l),a(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const a=this._listeners.indexOf(t);a!==-1&&this._listeners.splice(a,1)}static source(){let t;return{token:new yg(function(n){t=n}),cancel:t}}}const PO=yg;function OO(e){return function(a){return e.apply(null,a)}}function BO(e){return Te.isObject(e)&&e.isAxiosError===!0}const _g={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(_g).forEach(([e,t])=>{_g[t]=e});const DO=_g;function GS(e){const t=new Uu(e),a=fS(Uu.prototype.request,t);return Te.extend(a,Uu.prototype,t,{allOwnKeys:!0}),Te.extend(a,t,null,{allOwnKeys:!0}),a.create=function(n){return GS(ho(e,n))},a}const Jt=GS(dg);Jt.Axios=Uu,Jt.CanceledError=vc,Jt.CancelToken=PO,Jt.isCancel=MS,Jt.VERSION=qS,Jt.toFormData=Ru,Jt.AxiosError=ot,Jt.Cancel=Jt.CanceledError,Jt.all=function(t){return Promise.all(t)},Jt.spread=OO,Jt.isAxiosError=BO,Jt.mergeConfig=ho,Jt.AxiosHeaders=qn,Jt.formToJSON=e=>LS(Te.isHTMLForm(e)?new FormData(e):e),Jt.getAdapter=jS.getAdapter,Jt.HttpStatusCode=DO,Jt.default=Jt;const Sc=Jt;function LO(e){const t=s.ref({width:0,height:0});function a(){const i=e.value.getBoundingClientRect();t.value.width=i.width,t.value.height=i.height}return s.onMounted(()=>{a(),window.addEventListener("resize",a)}),s.onUnmounted(()=>{window.removeEventListener("resize",a)}),{elementSize:t}}const bg=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"]]),si=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},RO={class:"player-card"},MO={class:"player-card__image"},FO=["src"],VO={class:"player-card__number"},UO={class:"player-card__right-data"},jO={class:"player-card__details"},zO={class:"player-card__name"},HO={class:"player-card__position"},qO=si({__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:t}){return(a,i)=>(s.openBlock(),s.createElementBlock("div",RO,[s.createElementVNode("div",MO,[s.createElementVNode("img",{class:s.normalizeClass(["player-card__photo",{"full-width":e.isImgFullWidth}]),src:e.photo,alt:"Player Image"},null,10,FO),s.createElementVNode("div",VO,s.toDisplayString(e.jersey),1),s.createElementVNode("div",UO,[s.createElementVNode("button",{class:"player-card__profile-button",onClick:i[0]||(i[0]=n=>t("clickProfileBtn"))}," Ver perfil ")])]),s.createElementVNode("div",jO,[s.createElementVNode("p",zO,s.toDisplayString(e.name),1),s.createElementVNode("p",HO,s.toDisplayString(s.unref(bg).get(e.position_id)),1)])]))}},[["__scopeId","data-v-57264add"]]),WO=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},vg={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,t=this.$refs.content.scrollWidth;t>0&&e>0&&(t>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},KS=()=>{s.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}))},XS=vg.setup;vg.setup=XS?(e,t)=>(KS(),XS(e,t)):KS;const GO={ref:"gscScrollableContainer",class:"scrollable-container"},KO={class:"scrollable-arrows"},XO=["width","height","viewBox"],JO=["stroke"],YO={class:"scrollable-wrapper"},QO={class:"scrollable-arrows"},ZO=["width","height","viewBox"],$O=["stroke"];function eB(e,t,a,i,n,r){return s.openBlock(),s.createElementBlock("div",GO,[a.arrows?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["arrows-container",r.hideShowLeftArrow]),onClick:t[0]||(t[0]=(...o)=>r.scrollLeft&&r.scrollLeft(...o))},[s.createElementVNode("div",KO,[(s.openBlock(),s.createElementBlock("svg",{width:a.arrowsWidth,height:a.arrowsHeight,viewBox:r.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[s.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:a.arrowsColor},null,8,JO)],8,XO))])],2)):s.createCommentVNode("",!0),s.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:t[1]||(t[1]=(...o)=>r.getScroll&&r.getScroll(...o))},[s.createElementVNode("div",YO,[s.renderSlot(e.$slots,"default",{},void 0,!0)])],544),a.arrows?(s.openBlock(),s.createElementBlock("div",{key:1,id:"arrows-container-right",class:s.normalizeClass(["arrows-container",r.hideShowRightArrow]),onClick:t[2]||(t[2]=(...o)=>r.scrollRight&&r.scrollRight(...o))},[s.createElementVNode("div",QO,[(s.openBlock(),s.createElementBlock("svg",{width:a.arrowsWidth,height:a.arrowsHeight,viewBox:r.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[s.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:a.arrowsColor},null,8,$O)],8,ZO))])],2)):s.createCommentVNode("",!0)],512)}const wc=WO(vg,[["render",eB],["__scopeId","data-v-b548a08d"]]),JS=e=>(s.pushScopeId("data-v-bbde2ca8"),e=e(),s.popScopeId(),e),tB={class:"my-players"},aB={class:"my-players__header"},iB={class:"my-players__title"},nB=[JS(()=>s.createElementVNode("span",{style:{"text-decoration-line":"underline"}},"Ver todos",-1)),JS(()=>s.createElementVNode("span",null,"→",-1))],rB={class:"my-players__list"},sB=si({__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:t}){const a=e,i=s.ref([]),n=s.ref(0),r=s.ref(0);s.onMounted(async()=>{const l=await o(a.teamId,a.seasonId,a.token);r.value=l.length,i.value=l.map(c=>({...c,position:bg.get(c.position_id)})),a.isPlayer&&a.playerId&&(i.value=l.filter(c=>c.player_id!==a.playerId)),t("totalPlayers",r.value)});const o=async(l,c,d)=>{var h;const u="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";try{return((h=(await(await fetch(`https://pa3kubpuhg.execute-api.us-west-2.amazonaws.com/prod/playersByTeamAndSeason/${c}/${l}`,{headers:{Authorization:d||u}})).json())[0])==null?void 0:h.players)||[]}catch(m){return Promise.reject(m)}};return s.watch(()=>a.seasonId,async(l,c)=>{i.value=[];const d=await o(a.teamId,l,a.token);r.value=d.length,i.value=d.map(u=>({...u,position:bg.get(u.position_id)})),t("totalPlayers",r.value),n.value+=1}),(l,c)=>(s.openBlock(),s.createElementBlock("div",tB,[s.createElementVNode("div",aB,[s.createElementVNode("h3",iB,s.toDisplayString(e.isPlayer?"Mis compañeros":"Mis jugadores"),1),s.createElementVNode("button",{class:"my-players__button",onClick:c[0]||(c[0]=d=>t("viewAll"))},nB)]),(s.openBlock(),s.createBlock(s.unref(wc),{pxScroll:628,scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!1,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"none",arrowsContainerBgR:"none",arrowsMargin:0,arrowsRadius:"50%",key:n.value,arrowsBorder:"#ddd"},{default:s.withCtx(()=>[s.createElementVNode("div",rB,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(i.value,d=>(s.openBlock(),s.createBlock(qO,s.mergeProps(d,{isImgFullWidth:e.isImgFullWidth,onClickProfileBtn:u=>t("clickProfileBtn",d),key:d.player_id}),null,16,["isImgFullWidth","onClickProfileBtn"]))),128))])]),_:1}))]))}},[["__scopeId","data-v-bbde2ca8"]]),Sg="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",YS="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",oB="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",lB="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",cB=["onClick"],dB={class:"grid-section__image"},uB=["src"],hB={class:"grid-section__label"},pB=si({__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:t}){const a=e;function i(o){t("action",o)}const n=s.computed(()=>a.componentWidth<768),r=s.computed(()=>{let o;return a.isPlayer?o=[{type:"player",label:"Mi perfil →",image:a.playerImg||"",imgType:"player",player:a.playerId,team:a.teamId,season:a.seasonSelected},{type:"team",label:"Analizar mi equipo →",image:a.teamImg||"",imgType:"team",team:a.teamId,season:a.seasonSelected},{type:"rival",label:"Analizar mi próximo rival →",image:a.rivalImg||"",imgType:"team",team:a.nextRivalId,season:a.seasonSelected},{type:"schedule",label:"Mis partidos →",image:Sg,imgType:"svg",team:a.teamId,season:a.seasonSelected}]:a.hasTeam?o=[{type:"team",label:"Analizar mi equipo →",image:a.teamImg||"",imgType:"team",team:a.teamId,season:a.seasonSelected},{type:"rival",label:"Analizar mi próximo rival →",image:a.rivalImg||"",imgType:"team",team:a.nextRivalId,season:a.seasonSelected},{type:"schedule",label:"Mis partidos →",image:Sg,imgType:"svg",team:a.teamId,season:a.seasonSelected},{type:"scouting",label:"Scouting cientifico →",image:YS,imgType:"svg",season:a.seasonSelected}]:o=[{type:"teamOtherLeague",label:"Buscar equipo →",image:lB,imgType:"svg",season:a.seasonSelected},{type:"playerOtherLeague",label:"Buscar jugador →",image:oB,imgType:"svg",season:a.seasonSelected},{type:"scheduleOtherLeague",label:"Calendario general →",image:Sg,imgType:"svg",season:a.seasonSelected},{type:"scouting",label:"Scouting cientifico →",image:YS,imgType:"svg",season:a.seasonSelected}],o});return(o,l)=>(s.openBlock(),s.createElementBlock("section",{class:s.normalizeClass(["grid-section",{mobile:n.value}])},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.value,(c,d)=>(s.openBlock(),s.createElementBlock("div",{key:d,class:"grid-section__card",onClick:u=>i(c)},[s.createElementVNode("figure",dB,[c.image!==""?(s.openBlock(),s.createElementBlock("img",{key:0,src:c.image,alt:"",class:s.normalizeClass(c.imgType)},null,10,uB)):s.createCommentVNode("",!0)]),s.createElementVNode("p",hB,s.toDisplayString(c.label),1)],8,cB))),128))],2))}},[["__scopeId","data-v-dbd6cfb7"]]);function QS(e,t){return function(){return e.apply(t,arguments)}}const{toString:mB}=Object.prototype,{getPrototypeOf:wg}=Object,ju=(e=>t=>{const a=mB.call(t);return e[a]||(e[a]=a.slice(8,-1).toLowerCase())})(Object.create(null)),rn=e=>(e=e.toLowerCase(),t=>ju(t)===e),zu=e=>t=>typeof t===e,{isArray:po}=Array,Tc=zu("undefined");function fB(e){return e!==null&&!Tc(e)&&e.constructor!==null&&!Tc(e.constructor)&&vi(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ZS=rn("ArrayBuffer");function gB(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ZS(e.buffer),t}const yB=zu("string"),vi=zu("function"),$S=zu("number"),Hu=e=>e!==null&&typeof e=="object",_B=e=>e===!0||e===!1,qu=e=>{if(ju(e)!=="object")return!1;const t=wg(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},bB=rn("Date"),vB=rn("File"),SB=rn("Blob"),wB=rn("FileList"),TB=e=>Hu(e)&&vi(e.pipe),CB=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||vi(e.append)&&((t=ju(e))==="formdata"||t==="object"&&vi(e.toString)&&e.toString()==="[object FormData]"))},kB=rn("URLSearchParams"),EB=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Cc(e,t,{allOwnKeys:a=!1}={}){if(e===null||typeof e>"u")return;let i,n;if(typeof e!="object"&&(e=[e]),po(e))for(i=0,n=e.length;i<n;i++)t.call(null,e[i],i,e);else{const r=a?Object.getOwnPropertyNames(e):Object.keys(e),o=r.length;let l;for(i=0;i<o;i++)l=r[i],t.call(null,e[l],l,e)}}function ew(e,t){t=t.toLowerCase();const a=Object.keys(e);let i=a.length,n;for(;i-- >0;)if(n=a[i],t===n.toLowerCase())return n;return null}const tw=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,aw=e=>!Tc(e)&&e!==tw;function Tg(){const{caseless:e}=aw(this)&&this||{},t={},a=(i,n)=>{const r=e&&ew(t,n)||n;qu(t[r])&&qu(i)?t[r]=Tg(t[r],i):qu(i)?t[r]=Tg({},i):po(i)?t[r]=i.slice():t[r]=i};for(let i=0,n=arguments.length;i<n;i++)arguments[i]&&Cc(arguments[i],a);return t}const IB=(e,t,a,{allOwnKeys:i}={})=>(Cc(t,(n,r)=>{a&&vi(n)?e[r]=QS(n,a):e[r]=n},{allOwnKeys:i}),e),xB=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),NB=(e,t,a,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),a&&Object.assign(e.prototype,a)},AB=(e,t,a,i)=>{let n,r,o;const l={};if(t=t||{},e==null)return t;do{for(n=Object.getOwnPropertyNames(e),r=n.length;r-- >0;)o=n[r],(!i||i(o,e,t))&&!l[o]&&(t[o]=e[o],l[o]=!0);e=a!==!1&&wg(e)}while(e&&(!a||a(e,t))&&e!==Object.prototype);return t},PB=(e,t,a)=>{e=String(e),(a===void 0||a>e.length)&&(a=e.length),a-=t.length;const i=e.indexOf(t,a);return i!==-1&&i===a},OB=e=>{if(!e)return null;if(po(e))return e;let t=e.length;if(!$S(t))return null;const a=new Array(t);for(;t-- >0;)a[t]=e[t];return a},BB=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&wg(Uint8Array)),DB=(e,t)=>{const a=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=a.next())&&!i.done;){const n=i.value;t.call(e,n[0],n[1])}},LB=(e,t)=>{let a;const i=[];for(;(a=e.exec(t))!==null;)i.push(a);return i},RB=rn("HTMLFormElement"),MB=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,a,i){return a.toUpperCase()+i}),iw=(({hasOwnProperty:e})=>(t,a)=>e.call(t,a))(Object.prototype),FB=rn("RegExp"),nw=(e,t)=>{const a=Object.getOwnPropertyDescriptors(e),i={};Cc(a,(n,r)=>{let o;(o=t(n,r,e))!==!1&&(i[r]=o||n)}),Object.defineProperties(e,i)},VB=e=>{nw(e,(t,a)=>{if(vi(e)&&["arguments","caller","callee"].indexOf(a)!==-1)return!1;const i=e[a];if(vi(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+a+"'")})}})},UB=(e,t)=>{const a={},i=n=>{n.forEach(r=>{a[r]=!0})};return po(e)?i(e):i(String(e).split(t)),a},jB=()=>{},zB=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Cg="abcdefghijklmnopqrstuvwxyz",rw="0123456789",sw={DIGIT:rw,ALPHA:Cg,ALPHA_DIGIT:Cg+Cg.toUpperCase()+rw},HB=(e=16,t=sw.ALPHA_DIGIT)=>{let a="";const{length:i}=t;for(;e--;)a+=t[Math.random()*i|0];return a};function qB(e){return!!(e&&vi(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const WB=e=>{const t=new Array(10),a=(i,n)=>{if(Hu(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[n]=i;const r=po(i)?[]:{};return Cc(i,(o,l)=>{const c=a(o,n+1);!Tc(c)&&(r[l]=c)}),t[n]=void 0,r}}return i};return a(e,0)},GB=rn("AsyncFunction"),KB=e=>e&&(Hu(e)||vi(e))&&vi(e.then)&&vi(e.catch),Ce={isArray:po,isArrayBuffer:ZS,isBuffer:fB,isFormData:CB,isArrayBufferView:gB,isString:yB,isNumber:$S,isBoolean:_B,isObject:Hu,isPlainObject:qu,isUndefined:Tc,isDate:bB,isFile:vB,isBlob:SB,isRegExp:FB,isFunction:vi,isStream:TB,isURLSearchParams:kB,isTypedArray:BB,isFileList:wB,forEach:Cc,merge:Tg,extend:IB,trim:EB,stripBOM:xB,inherits:NB,toFlatObject:AB,kindOf:ju,kindOfTest:rn,endsWith:PB,toArray:OB,forEachEntry:DB,matchAll:LB,isHTMLForm:RB,hasOwnProperty:iw,hasOwnProp:iw,reduceDescriptors:nw,freezeMethods:VB,toObjectSet:UB,toCamelCase:MB,noop:jB,toFiniteNumber:zB,findKey:ew,global:tw,isContextDefined:aw,ALPHABET:sw,generateString:HB,isSpecCompliantForm:qB,toJSONObject:WB,isAsyncFn:GB,isThenable:KB};function lt(e,t,a,i,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),a&&(this.config=a),i&&(this.request=i),n&&(this.response=n)}Ce.inherits(lt,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:Ce.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ow=lt.prototype,lw={};["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=>{lw[e]={value:e}}),Object.defineProperties(lt,lw),Object.defineProperty(ow,"isAxiosError",{value:!0}),lt.from=(e,t,a,i,n,r)=>{const o=Object.create(ow);return Ce.toFlatObject(e,o,function(l){return l!==Error.prototype},l=>l!=="isAxiosError"),lt.call(o,e.message,t,a,i,n),o.cause=e,o.name=e.name,r&&Object.assign(o,r),o};const XB=null;function kg(e){return Ce.isPlainObject(e)||Ce.isArray(e)}function cw(e){return Ce.endsWith(e,"[]")?e.slice(0,-2):e}function dw(e,t,a){return e?e.concat(t).map(function(i,n){return i=cw(i),!a&&n?"["+i+"]":i}).join(a?".":""):t}function JB(e){return Ce.isArray(e)&&!e.some(kg)}const YB=Ce.toFlatObject(Ce,{},null,function(e){return/^is[A-Z]/.test(e)});function Wu(e,t,a){if(!Ce.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,a=Ce.toFlatObject(a,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,f){return!Ce.isUndefined(f[p])});const i=a.metaTokens,n=a.visitor||d,r=a.dots,o=a.indexes,l=(a.Blob||typeof Blob<"u"&&Blob)&&Ce.isSpecCompliantForm(t);if(!Ce.isFunction(n))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(Ce.isDate(p))return p.toISOString();if(!l&&Ce.isBlob(p))throw new lt("Blob is not supported. Use a Buffer instead.");return Ce.isArrayBuffer(p)||Ce.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function d(p,f,y){let b=p;if(p&&!y&&typeof p=="object"){if(Ce.endsWith(f,"{}"))f=i?f:f.slice(0,-2),p=JSON.stringify(p);else if(Ce.isArray(p)&&JB(p)||(Ce.isFileList(p)||Ce.endsWith(f,"[]"))&&(b=Ce.toArray(p)))return f=cw(f),b.forEach(function(E,D){!(Ce.isUndefined(E)||E===null)&&t.append(o===!0?dw([f],D,r):o===null?f:f+"[]",c(E))}),!1}return kg(p)?!0:(t.append(dw(y,f,r),c(p)),!1)}const u=[],h=Object.assign(YB,{defaultVisitor:d,convertValue:c,isVisitable:kg});function m(p,f){if(!Ce.isUndefined(p)){if(u.indexOf(p)!==-1)throw Error("Circular reference detected in "+f.join("."));u.push(p),Ce.forEach(p,function(y,b){(!(Ce.isUndefined(y)||y===null)&&n.call(t,y,Ce.isString(b)?b.trim():b,f,h))===!0&&m(y,f?f.concat(b):[b])}),u.pop()}}if(!Ce.isObject(e))throw new TypeError("data must be an object");return m(e),t}function uw(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(a){return t[a]})}function Eg(e,t){this._pairs=[],e&&Wu(e,this,t)}const hw=Eg.prototype;hw.append=function(e,t){this._pairs.push([e,t])},hw.toString=function(e){const t=e?function(a){return e.call(this,a,uw)}:uw;return this._pairs.map(function(a){return t(a[0])+"="+t(a[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 pw(e,t,a){if(!t)return e;const i=a&&a.encode||QB,n=a&&a.serialize;let r;if(n?r=n(t,a):r=Ce.isURLSearchParams(t)?t.toString():new Eg(t,a).toString(i),r){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}const mw=class{constructor(){this.handlers=[]}use(t,a,i){return this.handlers.push({fulfilled:t,rejected:a,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Ce.forEach(this.handlers,function(a){a!==null&&t(a)})}},fw={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ZB=typeof URLSearchParams<"u"?URLSearchParams:Eg,$B=typeof FormData<"u"?FormData:null,e7=typeof Blob<"u"?Blob:null,t7={isBrowser:!0,classes:{URLSearchParams:ZB,FormData:$B,Blob:e7},protocols:["http","https","file","blob","url","data"]},gw=typeof window<"u"&&typeof document<"u",a7=(e=>gw&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),i7=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",n7=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:gw,hasStandardBrowserEnv:a7,hasStandardBrowserWebWorkerEnv:i7},Symbol.toStringTag,{value:"Module"})),sn={...n7,...t7};function r7(e,t){return Wu(e,new sn.classes.URLSearchParams,Object.assign({visitor:function(a,i,n,r){return sn.isNode&&Ce.isBuffer(a)?(this.append(i,a.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}function s7(e){return Ce.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function o7(e){const t={},a=Object.keys(e);let i;const n=a.length;let r;for(i=0;i<n;i++)r=a[i],t[r]=e[r];return t}function yw(e){function t(a,i,n,r){let o=a[r++];if(o==="__proto__")return!0;const l=Number.isFinite(+o),c=r>=a.length;return o=!o&&Ce.isArray(n)?n.length:o,c?(Ce.hasOwnProp(n,o)?n[o]=[n[o],i]:n[o]=i,!l):((!n[o]||!Ce.isObject(n[o]))&&(n[o]=[]),t(a,i,n[o],r)&&Ce.isArray(n[o])&&(n[o]=o7(n[o])),!l)}if(Ce.isFormData(e)&&Ce.isFunction(e.entries)){const a={};return Ce.forEachEntry(e,(i,n)=>{t(s7(i),n,a,0)}),a}return null}function l7(e,t,a){if(Ce.isString(e))try{return(t||JSON.parse)(e),Ce.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(a||JSON.stringify)(e)}const Ig={transitional:fw,adapter:["xhr","http"],transformRequest:[function(e,t){const a=t.getContentType()||"",i=a.indexOf("application/json")>-1,n=Ce.isObject(e);if(n&&Ce.isHTMLForm(e)&&(e=new FormData(e)),Ce.isFormData(e))return i&&i?JSON.stringify(yw(e)):e;if(Ce.isArrayBuffer(e)||Ce.isBuffer(e)||Ce.isStream(e)||Ce.isFile(e)||Ce.isBlob(e))return e;if(Ce.isArrayBufferView(e))return e.buffer;if(Ce.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let r;if(n){if(a.indexOf("application/x-www-form-urlencoded")>-1)return r7(e,this.formSerializer).toString();if((r=Ce.isFileList(e))||a.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return Wu(r?{"files[]":e}:e,o&&new o,this.formSerializer)}}return n||i?(t.setContentType("application/json",!1),l7(e)):e}],transformResponse:[function(e){const t=this.transitional||Ig.transitional,a=t&&t.forcedJSONParsing,i=this.responseType==="json";if(e&&Ce.isString(e)&&(a&&!this.responseType||i)){const n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(r){if(n)throw r.name==="SyntaxError"?lt.from(r,lt.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:sn.classes.FormData,Blob:sn.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ce.forEach(["delete","get","head","post","put","patch"],e=>{Ig.headers[e]={}});const xg=Ig,c7=Ce.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"]),d7=e=>{const t={};let a,i,n;return e&&e.split(`
|
|
5
|
+
`):" "+US(r[0]):"as no adapter specified";throw new ot("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return i},adapters:pg};function mg(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new vc(null,e)}function zS(e){return mg(e),e.headers=qn.from(e.headers),e.data=hg.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),jS.getAdapter(e.adapter||dg.adapter)(e).then(function(i){return mg(e),i.data=hg.call(e,e.transformResponse,i),i.headers=qn.from(i.headers),i},function(i){return MS(i)||(mg(e),i&&i.response&&(i.response.data=hg.call(e,e.transformResponse,i.response),i.response.headers=qn.from(i.response.headers))),Promise.reject(i)})}const HS=e=>e instanceof qn?e.toJSON():e;function ho(e,t){t=t||{};const a={};function i(d,u,h){return Te.isPlainObject(d)&&Te.isPlainObject(u)?Te.merge.call({caseless:h},d,u):Te.isPlainObject(u)?Te.merge({},u):Te.isArray(u)?u.slice():u}function n(d,u,h){if(Te.isUndefined(u)){if(!Te.isUndefined(d))return i(void 0,d,h)}else return i(d,u,h)}function r(d,u){if(!Te.isUndefined(u))return i(void 0,u)}function o(d,u){if(Te.isUndefined(u)){if(!Te.isUndefined(d))return i(void 0,d)}else return i(void 0,u)}function l(d,u,h){if(h in t)return i(d,u);if(h in e)return i(void 0,d)}const c={url:r,method:r,data:r,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:l,headers:(d,u)=>n(HS(d),HS(u),!0)};return Te.forEach(Object.keys(Object.assign({},e,t)),function(u){const h=c[u]||n,m=h(e[u],t[u],u);Te.isUndefined(m)&&h!==l||(a[u]=m)}),a}const qS="1.6.6",fg={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{fg[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const WS={};fg.transitional=function(t,a,i){function n(r,o){return"[Axios v"+qS+"] Transitional option '"+r+"'"+o+(i?". "+i:"")}return(r,o,l)=>{if(t===!1)throw new ot(n(o," has been removed"+(a?" in "+a:"")),ot.ERR_DEPRECATED);return a&&!WS[o]&&(WS[o]=!0,console.warn(n(o," has been deprecated since v"+a+" and will be removed in the near future"))),t?t(r,o,l):!0}};function AO(e,t,a){if(typeof e!="object")throw new ot("options must be an object",ot.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let n=i.length;for(;n-- >0;){const r=i[n],o=t[r];if(o){const l=e[r],c=l===void 0||o(l,r,e);if(c!==!0)throw new ot("option "+r+" must be "+c,ot.ERR_BAD_OPTION_VALUE);continue}if(a!==!0)throw new ot("Unknown option "+r,ot.ERR_BAD_OPTION)}}const gg={assertOptions:AO,validators:fg},Ar=gg.validators;class Vu{constructor(t){this.defaults=t,this.interceptors={request:new OS,response:new OS}}async request(t,a){try{return await this._request(t,a)}catch(i){const n={};throw Error.captureStackTrace?Error.captureStackTrace(n):n.stack=new Error().stack,n.stack=n.stack.replace(/^.+\n/,""),i.stack.endsWith(n.stack.replace(/^.+\n.+\n/,""))||(i.stack+=`
|
|
6
|
+
`+n.stack),i}}_request(t,a){typeof t=="string"?(a=a||{},a.url=t):a=t||{},a=ho(this.defaults,a);const{transitional:i,paramsSerializer:n,headers:r}=a;i!==void 0&&gg.assertOptions(i,{silentJSONParsing:Ar.transitional(Ar.boolean),forcedJSONParsing:Ar.transitional(Ar.boolean),clarifyTimeoutError:Ar.transitional(Ar.boolean)},!1),n!=null&&(Te.isFunction(n)?a.paramsSerializer={serialize:n}:gg.assertOptions(n,{encode:Ar.function,serialize:Ar.function},!0)),a.method=(a.method||this.defaults.method||"get").toLowerCase();let o=r&&Te.merge(r.common,r[a.method]);r&&Te.forEach(["delete","get","head","post","put","patch","common"],f=>{delete r[f]}),a.headers=qn.concat(o,r);const l=[];let c=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(a)===!1||(c=c&&y.synchronous,l.unshift(y.fulfilled,y.rejected))});const d=[];this.interceptors.response.forEach(function(y){d.push(y.fulfilled,y.rejected)});let u,h=0,m;if(!c){const f=[zS.bind(this),void 0];for(f.unshift.apply(f,l),f.push.apply(f,d),m=f.length,u=Promise.resolve(a);h<m;)u=u.then(f[h++],f[h++]);return u}m=l.length;let p=a;for(h=0;h<m;){const f=l[h++],y=l[h++];try{p=f(p)}catch(b){y.call(this,b);break}}try{u=zS.call(this,p)}catch(f){return Promise.reject(f)}for(h=0,m=d.length;h<m;)u=u.then(d[h++],d[h++]);return u}getUri(t){t=ho(this.defaults,t);const a=FS(t.baseURL,t.url);return PS(a,t.params,t.paramsSerializer)}}Te.forEach(["delete","get","head","options"],function(t){Vu.prototype[t]=function(a,i){return this.request(ho(i||{},{method:t,url:a,data:(i||{}).data}))}}),Te.forEach(["post","put","patch"],function(t){function a(i){return function(r,o,l){return this.request(ho(l||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:r,data:o}))}}Vu.prototype[t]=a(),Vu.prototype[t+"Form"]=a(!0)});const Uu=Vu;class yg{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(r){a=r});const i=this;this.promise.then(n=>{if(!i._listeners)return;let r=i._listeners.length;for(;r-- >0;)i._listeners[r](n);i._listeners=null}),this.promise.then=n=>{let r;const o=new Promise(l=>{i.subscribe(l),r=l}).then(n);return o.cancel=function(){i.unsubscribe(r)},o},t(function(r,o,l){i.reason||(i.reason=new vc(r,o,l),a(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const a=this._listeners.indexOf(t);a!==-1&&this._listeners.splice(a,1)}static source(){let t;return{token:new yg(function(n){t=n}),cancel:t}}}const PO=yg;function OO(e){return function(a){return e.apply(null,a)}}function BO(e){return Te.isObject(e)&&e.isAxiosError===!0}const _g={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(_g).forEach(([e,t])=>{_g[t]=e});const DO=_g;function GS(e){const t=new Uu(e),a=fS(Uu.prototype.request,t);return Te.extend(a,Uu.prototype,t,{allOwnKeys:!0}),Te.extend(a,t,null,{allOwnKeys:!0}),a.create=function(n){return GS(ho(e,n))},a}const Jt=GS(dg);Jt.Axios=Uu,Jt.CanceledError=vc,Jt.CancelToken=PO,Jt.isCancel=MS,Jt.VERSION=qS,Jt.toFormData=Ru,Jt.AxiosError=ot,Jt.Cancel=Jt.CanceledError,Jt.all=function(t){return Promise.all(t)},Jt.spread=OO,Jt.isAxiosError=BO,Jt.mergeConfig=ho,Jt.AxiosHeaders=qn,Jt.formToJSON=e=>LS(Te.isHTMLForm(e)?new FormData(e):e),Jt.getAdapter=jS.getAdapter,Jt.HttpStatusCode=DO,Jt.default=Jt;const Sc=Jt;function LO(e){const t=s.ref({width:0,height:0});function a(){const i=e.value.getBoundingClientRect();t.value.width=i.width,t.value.height=i.height}return s.onMounted(()=>{a(),window.addEventListener("resize",a)}),s.onUnmounted(()=>{window.removeEventListener("resize",a)}),{elementSize:t}}const bg=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"]]),si=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},RO={class:"player-card"},MO={class:"player-card__image"},FO=["src"],VO={class:"player-card__number"},UO={class:"player-card__right-data"},jO={class:"player-card__details"},zO={class:"player-card__name"},HO={class:"player-card__position"},qO=si({__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:t}){return(a,i)=>(s.openBlock(),s.createElementBlock("div",RO,[s.createElementVNode("div",MO,[s.createElementVNode("img",{class:s.normalizeClass(["player-card__photo",{"full-width":e.isImgFullWidth}]),src:e.photo,alt:"Player Image"},null,10,FO),s.createElementVNode("div",VO,s.toDisplayString(e.jersey),1),s.createElementVNode("div",UO,[s.createElementVNode("button",{class:"player-card__profile-button",onClick:i[0]||(i[0]=n=>t("clickProfileBtn"))}," Ver perfil ")])]),s.createElementVNode("div",jO,[s.createElementVNode("p",zO,s.toDisplayString(e.name),1),s.createElementVNode("p",HO,s.toDisplayString(s.unref(bg).get(e.position_id)),1)])]))}},[["__scopeId","data-v-56cff6a3"]]),WO=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},vg={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,t=this.$refs.content.scrollWidth;t>0&&e>0&&(t>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},KS=()=>{s.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}))},XS=vg.setup;vg.setup=XS?(e,t)=>(KS(),XS(e,t)):KS;const GO={ref:"gscScrollableContainer",class:"scrollable-container"},KO={class:"scrollable-arrows"},XO=["width","height","viewBox"],JO=["stroke"],YO={class:"scrollable-wrapper"},QO={class:"scrollable-arrows"},ZO=["width","height","viewBox"],$O=["stroke"];function eB(e,t,a,i,n,r){return s.openBlock(),s.createElementBlock("div",GO,[a.arrows?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["arrows-container",r.hideShowLeftArrow]),onClick:t[0]||(t[0]=(...o)=>r.scrollLeft&&r.scrollLeft(...o))},[s.createElementVNode("div",KO,[(s.openBlock(),s.createElementBlock("svg",{width:a.arrowsWidth,height:a.arrowsHeight,viewBox:r.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[s.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:a.arrowsColor},null,8,JO)],8,XO))])],2)):s.createCommentVNode("",!0),s.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:t[1]||(t[1]=(...o)=>r.getScroll&&r.getScroll(...o))},[s.createElementVNode("div",YO,[s.renderSlot(e.$slots,"default",{},void 0,!0)])],544),a.arrows?(s.openBlock(),s.createElementBlock("div",{key:1,id:"arrows-container-right",class:s.normalizeClass(["arrows-container",r.hideShowRightArrow]),onClick:t[2]||(t[2]=(...o)=>r.scrollRight&&r.scrollRight(...o))},[s.createElementVNode("div",QO,[(s.openBlock(),s.createElementBlock("svg",{width:a.arrowsWidth,height:a.arrowsHeight,viewBox:r.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[s.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:a.arrowsColor},null,8,$O)],8,ZO))])],2)):s.createCommentVNode("",!0)],512)}const wc=WO(vg,[["render",eB],["__scopeId","data-v-b548a08d"]]),JS=e=>(s.pushScopeId("data-v-958bac74"),e=e(),s.popScopeId(),e),tB={class:"my-players"},aB={class:"my-players__header"},iB={class:"my-players__title"},nB=[JS(()=>s.createElementVNode("span",{style:{"text-decoration-line":"underline"}},"Ver todos",-1)),JS(()=>s.createElementVNode("span",null,"→",-1))],rB={class:"my-players__list"},sB=si({__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:t}){const a=e,i=s.ref([]),n=s.ref(0),r=s.ref(0);s.onMounted(async()=>{const l=await o(a.teamId,a.seasonId,a.token);r.value=l.length,i.value=l.map(c=>({...c,position:bg.get(c.position_id)})),a.isPlayer&&a.playerId&&(i.value=l.filter(c=>c.player_id!==a.playerId)),t("totalPlayers",r.value)});const o=async(l,c,d)=>{var h;const u="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";try{return((h=(await(await fetch(`https://pa3kubpuhg.execute-api.us-west-2.amazonaws.com/prod/playersByTeamAndSeason/${c}/${l}`,{headers:{Authorization:d||u}})).json())[0])==null?void 0:h.players)||[]}catch(m){return Promise.reject(m)}};return s.watch(()=>a.seasonId,async(l,c)=>{i.value=[];const d=await o(a.teamId,l,a.token);r.value=d.length,i.value=d.map(u=>({...u,position:bg.get(u.position_id)})),t("totalPlayers",r.value),n.value+=1}),(l,c)=>(s.openBlock(),s.createElementBlock("div",tB,[s.createElementVNode("div",aB,[s.createElementVNode("h3",iB,s.toDisplayString(e.isPlayer?"Mis compañeros":"Mis jugadores"),1),s.createElementVNode("button",{class:"my-players__button",onClick:c[0]||(c[0]=d=>t("viewAll"))},nB)]),(s.openBlock(),s.createBlock(s.unref(wc),{pxScroll:209,scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!1,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"none",arrowsContainerBgR:"none",arrowsMargin:0,arrowsRadius:"50%",key:n.value,arrowsBorder:"#ddd"},{default:s.withCtx(()=>[s.createElementVNode("div",rB,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(i.value,d=>(s.openBlock(),s.createBlock(qO,s.mergeProps(d,{isImgFullWidth:e.isImgFullWidth,onClickProfileBtn:u=>t("clickProfileBtn",d),key:d.player_id}),null,16,["isImgFullWidth","onClickProfileBtn"]))),128))])]),_:1}))]))}},[["__scopeId","data-v-958bac74"]]),Sg="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",YS="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",oB="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",lB="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",cB=["onClick"],dB={class:"grid-section__image"},uB=["src"],hB={class:"grid-section__label"},pB=si({__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:t}){const a=e;function i(o){t("action",o)}const n=s.computed(()=>a.componentWidth<768),r=s.computed(()=>{let o;return a.isPlayer?o=[{type:"player",label:"Mi perfil →",image:a.playerImg||"",imgType:"player",player:a.playerId,team:a.teamId,season:a.seasonSelected},{type:"team",label:"Analizar mi equipo →",image:a.teamImg||"",imgType:"team",team:a.teamId,season:a.seasonSelected},{type:"rival",label:"Analizar mi próximo rival →",image:a.rivalImg||"",imgType:"team",team:a.nextRivalId,season:a.seasonSelected},{type:"schedule",label:"Mis partidos →",image:Sg,imgType:"svg",team:a.teamId,season:a.seasonSelected}]:a.hasTeam?o=[{type:"team",label:"Analizar mi equipo →",image:a.teamImg||"",imgType:"team",team:a.teamId,season:a.seasonSelected},{type:"rival",label:"Analizar mi próximo rival →",image:a.rivalImg||"",imgType:"team",team:a.nextRivalId,season:a.seasonSelected},{type:"schedule",label:"Mis partidos →",image:Sg,imgType:"svg",team:a.teamId,season:a.seasonSelected},{type:"scouting",label:"Scouting cientifico →",image:YS,imgType:"svg",season:a.seasonSelected}]:o=[{type:"teamOtherLeague",label:"Buscar equipo →",image:lB,imgType:"svg",season:a.seasonSelected},{type:"playerOtherLeague",label:"Buscar jugador →",image:oB,imgType:"svg",season:a.seasonSelected},{type:"scheduleOtherLeague",label:"Calendario general →",image:Sg,imgType:"svg",season:a.seasonSelected},{type:"scouting",label:"Scouting cientifico →",image:YS,imgType:"svg",season:a.seasonSelected}],o});return(o,l)=>(s.openBlock(),s.createElementBlock("section",{class:s.normalizeClass(["grid-section",{mobile:n.value}])},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.value,(c,d)=>(s.openBlock(),s.createElementBlock("div",{key:d,class:"grid-section__card",onClick:u=>i(c)},[s.createElementVNode("figure",dB,[c.image!==""?(s.openBlock(),s.createElementBlock("img",{key:0,src:c.image,alt:"",class:s.normalizeClass(c.imgType)},null,10,uB)):s.createCommentVNode("",!0)]),s.createElementVNode("p",hB,s.toDisplayString(c.label),1)],8,cB))),128))],2))}},[["__scopeId","data-v-f3eae3d8"]]);function QS(e,t){return function(){return e.apply(t,arguments)}}const{toString:mB}=Object.prototype,{getPrototypeOf:wg}=Object,ju=(e=>t=>{const a=mB.call(t);return e[a]||(e[a]=a.slice(8,-1).toLowerCase())})(Object.create(null)),rn=e=>(e=e.toLowerCase(),t=>ju(t)===e),zu=e=>t=>typeof t===e,{isArray:po}=Array,Tc=zu("undefined");function fB(e){return e!==null&&!Tc(e)&&e.constructor!==null&&!Tc(e.constructor)&&vi(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ZS=rn("ArrayBuffer");function gB(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ZS(e.buffer),t}const yB=zu("string"),vi=zu("function"),$S=zu("number"),Hu=e=>e!==null&&typeof e=="object",_B=e=>e===!0||e===!1,qu=e=>{if(ju(e)!=="object")return!1;const t=wg(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},bB=rn("Date"),vB=rn("File"),SB=rn("Blob"),wB=rn("FileList"),TB=e=>Hu(e)&&vi(e.pipe),CB=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||vi(e.append)&&((t=ju(e))==="formdata"||t==="object"&&vi(e.toString)&&e.toString()==="[object FormData]"))},kB=rn("URLSearchParams"),EB=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Cc(e,t,{allOwnKeys:a=!1}={}){if(e===null||typeof e>"u")return;let i,n;if(typeof e!="object"&&(e=[e]),po(e))for(i=0,n=e.length;i<n;i++)t.call(null,e[i],i,e);else{const r=a?Object.getOwnPropertyNames(e):Object.keys(e),o=r.length;let l;for(i=0;i<o;i++)l=r[i],t.call(null,e[l],l,e)}}function ew(e,t){t=t.toLowerCase();const a=Object.keys(e);let i=a.length,n;for(;i-- >0;)if(n=a[i],t===n.toLowerCase())return n;return null}const tw=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,aw=e=>!Tc(e)&&e!==tw;function Tg(){const{caseless:e}=aw(this)&&this||{},t={},a=(i,n)=>{const r=e&&ew(t,n)||n;qu(t[r])&&qu(i)?t[r]=Tg(t[r],i):qu(i)?t[r]=Tg({},i):po(i)?t[r]=i.slice():t[r]=i};for(let i=0,n=arguments.length;i<n;i++)arguments[i]&&Cc(arguments[i],a);return t}const IB=(e,t,a,{allOwnKeys:i}={})=>(Cc(t,(n,r)=>{a&&vi(n)?e[r]=QS(n,a):e[r]=n},{allOwnKeys:i}),e),xB=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),NB=(e,t,a,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),a&&Object.assign(e.prototype,a)},AB=(e,t,a,i)=>{let n,r,o;const l={};if(t=t||{},e==null)return t;do{for(n=Object.getOwnPropertyNames(e),r=n.length;r-- >0;)o=n[r],(!i||i(o,e,t))&&!l[o]&&(t[o]=e[o],l[o]=!0);e=a!==!1&&wg(e)}while(e&&(!a||a(e,t))&&e!==Object.prototype);return t},PB=(e,t,a)=>{e=String(e),(a===void 0||a>e.length)&&(a=e.length),a-=t.length;const i=e.indexOf(t,a);return i!==-1&&i===a},OB=e=>{if(!e)return null;if(po(e))return e;let t=e.length;if(!$S(t))return null;const a=new Array(t);for(;t-- >0;)a[t]=e[t];return a},BB=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&wg(Uint8Array)),DB=(e,t)=>{const a=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=a.next())&&!i.done;){const n=i.value;t.call(e,n[0],n[1])}},LB=(e,t)=>{let a;const i=[];for(;(a=e.exec(t))!==null;)i.push(a);return i},RB=rn("HTMLFormElement"),MB=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,a,i){return a.toUpperCase()+i}),iw=(({hasOwnProperty:e})=>(t,a)=>e.call(t,a))(Object.prototype),FB=rn("RegExp"),nw=(e,t)=>{const a=Object.getOwnPropertyDescriptors(e),i={};Cc(a,(n,r)=>{let o;(o=t(n,r,e))!==!1&&(i[r]=o||n)}),Object.defineProperties(e,i)},VB=e=>{nw(e,(t,a)=>{if(vi(e)&&["arguments","caller","callee"].indexOf(a)!==-1)return!1;const i=e[a];if(vi(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+a+"'")})}})},UB=(e,t)=>{const a={},i=n=>{n.forEach(r=>{a[r]=!0})};return po(e)?i(e):i(String(e).split(t)),a},jB=()=>{},zB=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Cg="abcdefghijklmnopqrstuvwxyz",rw="0123456789",sw={DIGIT:rw,ALPHA:Cg,ALPHA_DIGIT:Cg+Cg.toUpperCase()+rw},HB=(e=16,t=sw.ALPHA_DIGIT)=>{let a="";const{length:i}=t;for(;e--;)a+=t[Math.random()*i|0];return a};function qB(e){return!!(e&&vi(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const WB=e=>{const t=new Array(10),a=(i,n)=>{if(Hu(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[n]=i;const r=po(i)?[]:{};return Cc(i,(o,l)=>{const c=a(o,n+1);!Tc(c)&&(r[l]=c)}),t[n]=void 0,r}}return i};return a(e,0)},GB=rn("AsyncFunction"),KB=e=>e&&(Hu(e)||vi(e))&&vi(e.then)&&vi(e.catch),Ce={isArray:po,isArrayBuffer:ZS,isBuffer:fB,isFormData:CB,isArrayBufferView:gB,isString:yB,isNumber:$S,isBoolean:_B,isObject:Hu,isPlainObject:qu,isUndefined:Tc,isDate:bB,isFile:vB,isBlob:SB,isRegExp:FB,isFunction:vi,isStream:TB,isURLSearchParams:kB,isTypedArray:BB,isFileList:wB,forEach:Cc,merge:Tg,extend:IB,trim:EB,stripBOM:xB,inherits:NB,toFlatObject:AB,kindOf:ju,kindOfTest:rn,endsWith:PB,toArray:OB,forEachEntry:DB,matchAll:LB,isHTMLForm:RB,hasOwnProperty:iw,hasOwnProp:iw,reduceDescriptors:nw,freezeMethods:VB,toObjectSet:UB,toCamelCase:MB,noop:jB,toFiniteNumber:zB,findKey:ew,global:tw,isContextDefined:aw,ALPHABET:sw,generateString:HB,isSpecCompliantForm:qB,toJSONObject:WB,isAsyncFn:GB,isThenable:KB};function lt(e,t,a,i,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),a&&(this.config=a),i&&(this.request=i),n&&(this.response=n)}Ce.inherits(lt,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:Ce.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ow=lt.prototype,lw={};["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=>{lw[e]={value:e}}),Object.defineProperties(lt,lw),Object.defineProperty(ow,"isAxiosError",{value:!0}),lt.from=(e,t,a,i,n,r)=>{const o=Object.create(ow);return Ce.toFlatObject(e,o,function(l){return l!==Error.prototype},l=>l!=="isAxiosError"),lt.call(o,e.message,t,a,i,n),o.cause=e,o.name=e.name,r&&Object.assign(o,r),o};const XB=null;function kg(e){return Ce.isPlainObject(e)||Ce.isArray(e)}function cw(e){return Ce.endsWith(e,"[]")?e.slice(0,-2):e}function dw(e,t,a){return e?e.concat(t).map(function(i,n){return i=cw(i),!a&&n?"["+i+"]":i}).join(a?".":""):t}function JB(e){return Ce.isArray(e)&&!e.some(kg)}const YB=Ce.toFlatObject(Ce,{},null,function(e){return/^is[A-Z]/.test(e)});function Wu(e,t,a){if(!Ce.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,a=Ce.toFlatObject(a,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,f){return!Ce.isUndefined(f[p])});const i=a.metaTokens,n=a.visitor||d,r=a.dots,o=a.indexes,l=(a.Blob||typeof Blob<"u"&&Blob)&&Ce.isSpecCompliantForm(t);if(!Ce.isFunction(n))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(Ce.isDate(p))return p.toISOString();if(!l&&Ce.isBlob(p))throw new lt("Blob is not supported. Use a Buffer instead.");return Ce.isArrayBuffer(p)||Ce.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function d(p,f,y){let b=p;if(p&&!y&&typeof p=="object"){if(Ce.endsWith(f,"{}"))f=i?f:f.slice(0,-2),p=JSON.stringify(p);else if(Ce.isArray(p)&&JB(p)||(Ce.isFileList(p)||Ce.endsWith(f,"[]"))&&(b=Ce.toArray(p)))return f=cw(f),b.forEach(function(E,D){!(Ce.isUndefined(E)||E===null)&&t.append(o===!0?dw([f],D,r):o===null?f:f+"[]",c(E))}),!1}return kg(p)?!0:(t.append(dw(y,f,r),c(p)),!1)}const u=[],h=Object.assign(YB,{defaultVisitor:d,convertValue:c,isVisitable:kg});function m(p,f){if(!Ce.isUndefined(p)){if(u.indexOf(p)!==-1)throw Error("Circular reference detected in "+f.join("."));u.push(p),Ce.forEach(p,function(y,b){(!(Ce.isUndefined(y)||y===null)&&n.call(t,y,Ce.isString(b)?b.trim():b,f,h))===!0&&m(y,f?f.concat(b):[b])}),u.pop()}}if(!Ce.isObject(e))throw new TypeError("data must be an object");return m(e),t}function uw(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(a){return t[a]})}function Eg(e,t){this._pairs=[],e&&Wu(e,this,t)}const hw=Eg.prototype;hw.append=function(e,t){this._pairs.push([e,t])},hw.toString=function(e){const t=e?function(a){return e.call(this,a,uw)}:uw;return this._pairs.map(function(a){return t(a[0])+"="+t(a[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 pw(e,t,a){if(!t)return e;const i=a&&a.encode||QB,n=a&&a.serialize;let r;if(n?r=n(t,a):r=Ce.isURLSearchParams(t)?t.toString():new Eg(t,a).toString(i),r){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}const mw=class{constructor(){this.handlers=[]}use(t,a,i){return this.handlers.push({fulfilled:t,rejected:a,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Ce.forEach(this.handlers,function(a){a!==null&&t(a)})}},fw={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ZB=typeof URLSearchParams<"u"?URLSearchParams:Eg,$B=typeof FormData<"u"?FormData:null,e7=typeof Blob<"u"?Blob:null,t7={isBrowser:!0,classes:{URLSearchParams:ZB,FormData:$B,Blob:e7},protocols:["http","https","file","blob","url","data"]},gw=typeof window<"u"&&typeof document<"u",a7=(e=>gw&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),i7=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",n7=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:gw,hasStandardBrowserEnv:a7,hasStandardBrowserWebWorkerEnv:i7},Symbol.toStringTag,{value:"Module"})),sn={...n7,...t7};function r7(e,t){return Wu(e,new sn.classes.URLSearchParams,Object.assign({visitor:function(a,i,n,r){return sn.isNode&&Ce.isBuffer(a)?(this.append(i,a.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}function s7(e){return Ce.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function o7(e){const t={},a=Object.keys(e);let i;const n=a.length;let r;for(i=0;i<n;i++)r=a[i],t[r]=e[r];return t}function yw(e){function t(a,i,n,r){let o=a[r++];if(o==="__proto__")return!0;const l=Number.isFinite(+o),c=r>=a.length;return o=!o&&Ce.isArray(n)?n.length:o,c?(Ce.hasOwnProp(n,o)?n[o]=[n[o],i]:n[o]=i,!l):((!n[o]||!Ce.isObject(n[o]))&&(n[o]=[]),t(a,i,n[o],r)&&Ce.isArray(n[o])&&(n[o]=o7(n[o])),!l)}if(Ce.isFormData(e)&&Ce.isFunction(e.entries)){const a={};return Ce.forEachEntry(e,(i,n)=>{t(s7(i),n,a,0)}),a}return null}function l7(e,t,a){if(Ce.isString(e))try{return(t||JSON.parse)(e),Ce.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(a||JSON.stringify)(e)}const Ig={transitional:fw,adapter:["xhr","http"],transformRequest:[function(e,t){const a=t.getContentType()||"",i=a.indexOf("application/json")>-1,n=Ce.isObject(e);if(n&&Ce.isHTMLForm(e)&&(e=new FormData(e)),Ce.isFormData(e))return i&&i?JSON.stringify(yw(e)):e;if(Ce.isArrayBuffer(e)||Ce.isBuffer(e)||Ce.isStream(e)||Ce.isFile(e)||Ce.isBlob(e))return e;if(Ce.isArrayBufferView(e))return e.buffer;if(Ce.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let r;if(n){if(a.indexOf("application/x-www-form-urlencoded")>-1)return r7(e,this.formSerializer).toString();if((r=Ce.isFileList(e))||a.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return Wu(r?{"files[]":e}:e,o&&new o,this.formSerializer)}}return n||i?(t.setContentType("application/json",!1),l7(e)):e}],transformResponse:[function(e){const t=this.transitional||Ig.transitional,a=t&&t.forcedJSONParsing,i=this.responseType==="json";if(e&&Ce.isString(e)&&(a&&!this.responseType||i)){const n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(r){if(n)throw r.name==="SyntaxError"?lt.from(r,lt.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:sn.classes.FormData,Blob:sn.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ce.forEach(["delete","get","head","post","put","patch"],e=>{Ig.headers[e]={}});const xg=Ig,c7=Ce.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"]),d7=e=>{const t={};let a,i,n;return e&&e.split(`
|
|
6
7
|
`).forEach(function(r){n=r.indexOf(":"),a=r.substring(0,n).trim().toLowerCase(),i=r.substring(n+1).trim(),!(!a||t[a]&&c7[a])&&(a==="set-cookie"?t[a]?t[a].push(i):t[a]=[i]:t[a]=t[a]?t[a]+", "+i:i)}),t},_w=Symbol("internals");function kc(e){return e&&String(e).trim().toLowerCase()}function Gu(e){return e===!1||e==null?e:Ce.isArray(e)?e.map(Gu):String(e)}function u7(e){const t=Object.create(null),a=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=a.exec(e);)t[i[1]]=i[2];return t}const h7=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ng(e,t,a,i,n){if(Ce.isFunction(i))return i.call(this,t,a);if(n&&(t=a),!!Ce.isString(t)){if(Ce.isString(i))return t.indexOf(i)!==-1;if(Ce.isRegExp(i))return i.test(t)}}function p7(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,a,i)=>a.toUpperCase()+i)}function m7(e,t){const a=Ce.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+a,{value:function(n,r,o){return this[i].call(this,t,n,r,o)},configurable:!0})})}let Ku=class{constructor(t){t&&this.set(t)}set(t,a,i){const n=this;function r(l,c,d){const u=kc(c);if(!u)throw new Error("header name must be a non-empty string");const h=Ce.findKey(n,u);(!h||n[h]===void 0||d===!0||d===void 0&&n[h]!==!1)&&(n[h||c]=Gu(l))}const o=(l,c)=>Ce.forEach(l,(d,u)=>r(d,u,c));return Ce.isPlainObject(t)||t instanceof this.constructor?o(t,a):Ce.isString(t)&&(t=t.trim())&&!h7(t)?o(d7(t),a):t!=null&&r(a,t,i),this}get(t,a){if(t=kc(t),t){const i=Ce.findKey(this,t);if(i){const n=this[i];if(!a)return n;if(a===!0)return u7(n);if(Ce.isFunction(a))return a.call(this,n,i);if(Ce.isRegExp(a))return a.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,a){if(t=kc(t),t){const i=Ce.findKey(this,t);return!!(i&&this[i]!==void 0&&(!a||Ng(this,this[i],i,a)))}return!1}delete(t,a){const i=this;let n=!1;function r(o){if(o=kc(o),o){const l=Ce.findKey(i,o);l&&(!a||Ng(i,i[l],l,a))&&(delete i[l],n=!0)}}return Ce.isArray(t)?t.forEach(r):r(t),n}clear(t){const a=Object.keys(this);let i=a.length,n=!1;for(;i--;){const r=a[i];(!t||Ng(this,this[r],r,t,!0))&&(delete this[r],n=!0)}return n}normalize(t){const a=this,i={};return Ce.forEach(this,(n,r)=>{const o=Ce.findKey(i,r);if(o){a[o]=Gu(n),delete a[r];return}const l=t?p7(r):String(r).trim();l!==r&&delete a[r],a[l]=Gu(n),i[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const a=Object.create(null);return Ce.forEach(this,(i,n)=>{i!=null&&i!==!1&&(a[n]=t&&Ce.isArray(i)?i.join(", "):i)}),a}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,a])=>t+": "+a).join(`
|
|
7
8
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...a){const i=new this(t);return a.forEach(n=>i.set(n)),i}static accessor(t){const a=(this[_w]=this[_w]={accessors:{}}).accessors,i=this.prototype;function n(r){const o=kc(r);a[o]||(m7(i,r),a[o]=!0)}return Ce.isArray(t)?t.forEach(n):n(t),this}};Ku.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ce.reduceDescriptors(Ku.prototype,({value:e},t)=>{let a=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(i){this[a]=i}}}),Ce.freezeMethods(Ku);const Wn=Ku;function Ag(e,t){const a=this||xg,i=t||a,n=Wn.from(i.headers);let r=i.data;return Ce.forEach(e,function(o){r=o.call(a,r,n.normalize(),t?t.status:void 0)}),n.normalize(),r}function bw(e){return!!(e&&e.__CANCEL__)}function Ec(e,t,a){lt.call(this,e??"canceled",lt.ERR_CANCELED,t,a),this.name="CanceledError"}Ce.inherits(Ec,lt,{__CANCEL__:!0});function f7(e,t,a){const i=a.config.validateStatus;!a.status||!i||i(a.status)?e(a):t(new lt("Request failed with status code "+a.status,[lt.ERR_BAD_REQUEST,lt.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}const g7=sn.hasStandardBrowserEnv?{write(e,t,a,i,n,r){const o=[e+"="+encodeURIComponent(t)];Ce.isNumber(a)&&o.push("expires="+new Date(a).toGMTString()),Ce.isString(i)&&o.push("path="+i),Ce.isString(n)&&o.push("domain="+n),r===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function y7(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function _7(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function vw(e,t){return e&&!y7(t)?_7(e,t):t}const b7=sn.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let a;function i(n){let r=n;return e&&(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 a=i(window.location.href),function(n){const r=Ce.isString(n)?i(n):n;return r.protocol===a.protocol&&r.host===a.host}}():function(){return function(){return!0}}();function v7(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function S7(e,t){e=e||10;const a=new Array(e),i=new Array(e);let n=0,r=0,o;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),d=i[r];o||(o=c),a[n]=l,i[n]=c;let u=r,h=0;for(;u!==n;)h+=a[u++],u=u%e;if(n=(n+1)%e,n===r&&(r=(r+1)%e),c-o<t)return;const m=d&&c-d;return m?Math.round(h*1e3/m):void 0}}function Sw(e,t){let a=0;const i=S7(50,250);return n=>{const r=n.loaded,o=n.lengthComputable?n.total:void 0,l=r-a,c=i(l),d=r<=o;a=r;const u={loaded:r,total:o,progress:o?r/o:void 0,bytes:l,rate:c||void 0,estimated:c&&o&&d?(o-r)/c:void 0,event:n};u[t?"download":"upload"]=!0,e(u)}}const w7=typeof XMLHttpRequest<"u",T7=w7&&function(e){return new Promise(function(t,a){let i=e.data;const n=Wn.from(e.headers).normalize();let{responseType:r,withXSRFToken:o}=e,l;function c(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let d;if(Ce.isFormData(i)){if(sn.hasStandardBrowserEnv||sn.hasStandardBrowserWebWorkerEnv)n.setContentType(!1);else if((d=n.getContentType())!==!1){const[f,...y]=d?d.split(";").map(b=>b.trim()).filter(Boolean):[];n.setContentType([f||"multipart/form-data",...y].join("; "))}}let u=new XMLHttpRequest;if(e.auth){const f=e.auth.username||"",y=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";n.set("Authorization","Basic "+btoa(f+":"+y))}const h=vw(e.baseURL,e.url);u.open(e.method.toUpperCase(),pw(h,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function m(){if(!u)return;const f=Wn.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),y={data:!r||r==="text"||r==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:f,config:e,request:u};f7(function(b){t(b),c()},function(b){a(b),c()},y),u=null}if("onloadend"in u?u.onloadend=m:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(m)},u.onabort=function(){u&&(a(new lt("Request aborted",lt.ECONNABORTED,e,u)),u=null)},u.onerror=function(){a(new lt("Network Error",lt.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let f=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const y=e.transitional||fw;e.timeoutErrorMessage&&(f=e.timeoutErrorMessage),a(new lt(f,y.clarifyTimeoutError?lt.ETIMEDOUT:lt.ECONNABORTED,e,u)),u=null},sn.hasStandardBrowserEnv&&(o&&Ce.isFunction(o)&&(o=o(e)),o||o!==!1&&b7(h))){const f=e.xsrfHeaderName&&e.xsrfCookieName&&g7.read(e.xsrfCookieName);f&&n.set(e.xsrfHeaderName,f)}i===void 0&&n.setContentType(null),"setRequestHeader"in u&&Ce.forEach(n.toJSON(),function(f,y){u.setRequestHeader(y,f)}),Ce.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),r&&r!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",Sw(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",Sw(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=f=>{u&&(a(!f||f.type?new Ec(null,e,u):f),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const p=v7(h);if(p&&sn.protocols.indexOf(p)===-1){a(new lt("Unsupported protocol "+p+":",lt.ERR_BAD_REQUEST,e));return}u.send(i||null)})},Pg={http:XB,xhr:T7};Ce.forEach(Pg,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ww=e=>`- ${e}`,C7=e=>Ce.isFunction(e)||e===null||e===!1,Tw={getAdapter:e=>{e=Ce.isArray(e)?e:[e];const{length:t}=e;let a,i;const n={};for(let r=0;r<t;r++){a=e[r];let o;if(i=a,!C7(a)&&(i=Pg[(o=String(a)).toLowerCase()],i===void 0))throw new lt(`Unknown adapter '${o}'`);if(i)break;n[o||"#"+r]=i}if(!i){const r=Object.entries(n).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let o=t?r.length>1?`since :
|
|
8
9
|
`+r.map(ww).join(`
|
|
@@ -14,7 +15,8 @@
|
|
|
14
15
|
`).forEach(function(r){n=r.indexOf(":"),a=r.substring(0,n).trim().toLowerCase(),i=r.substring(n+1).trim(),!(!a||t[a]&&FR[a])&&(a==="set-cookie"?t[a]?t[a].push(i):t[a]=[i]:t[a]=t[a]?t[a]+", "+i:i)}),t},yT=Symbol("internals");function Nc(e){return e&&String(e).trim().toLowerCase()}function th(e){return e===!1||e==null?e:ke.isArray(e)?e.map(th):String(e)}function UR(e){const t=Object.create(null),a=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=a.exec(e);)t[i[1]]=i[2];return t}const jR=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ey(e,t,a,i,n){if(ke.isFunction(i))return i.call(this,t,a);if(n&&(t=a),!!ke.isString(t)){if(ke.isString(i))return t.indexOf(i)!==-1;if(ke.isRegExp(i))return i.test(t)}}function zR(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,a,i)=>a.toUpperCase()+i)}function HR(e,t){const a=ke.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+a,{value:function(n,r,o){return this[i].call(this,t,n,r,o)},configurable:!0})})}let ah=class{constructor(t){t&&this.set(t)}set(t,a,i){const n=this;function r(l,c,d){const u=Nc(c);if(!u)throw new Error("header name must be a non-empty string");const h=ke.findKey(n,u);(!h||n[h]===void 0||d===!0||d===void 0&&n[h]!==!1)&&(n[h||c]=th(l))}const o=(l,c)=>ke.forEach(l,(d,u)=>r(d,u,c));return ke.isPlainObject(t)||t instanceof this.constructor?o(t,a):ke.isString(t)&&(t=t.trim())&&!jR(t)?o(VR(t),a):t!=null&&r(a,t,i),this}get(t,a){if(t=Nc(t),t){const i=ke.findKey(this,t);if(i){const n=this[i];if(!a)return n;if(a===!0)return UR(n);if(ke.isFunction(a))return a.call(this,n,i);if(ke.isRegExp(a))return a.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,a){if(t=Nc(t),t){const i=ke.findKey(this,t);return!!(i&&this[i]!==void 0&&(!a||ey(this,this[i],i,a)))}return!1}delete(t,a){const i=this;let n=!1;function r(o){if(o=Nc(o),o){const l=ke.findKey(i,o);l&&(!a||ey(i,i[l],l,a))&&(delete i[l],n=!0)}}return ke.isArray(t)?t.forEach(r):r(t),n}clear(t){const a=Object.keys(this);let i=a.length,n=!1;for(;i--;){const r=a[i];(!t||ey(this,this[r],r,t,!0))&&(delete this[r],n=!0)}return n}normalize(t){const a=this,i={};return ke.forEach(this,(n,r)=>{const o=ke.findKey(i,r);if(o){a[o]=th(n),delete a[r];return}const l=t?zR(r):String(r).trim();l!==r&&delete a[r],a[l]=th(n),i[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const a=Object.create(null);return ke.forEach(this,(i,n)=>{i!=null&&i!==!1&&(a[n]=t&&ke.isArray(i)?i.join(", "):i)}),a}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,a])=>t+": "+a).join(`
|
|
15
16
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...a){const i=new this(t);return a.forEach(n=>i.set(n)),i}static accessor(t){const a=(this[yT]=this[yT]={accessors:{}}).accessors,i=this.prototype;function n(r){const o=Nc(r);a[o]||(HR(i,r),a[o]=!0)}return ke.isArray(t)?t.forEach(n):n(t),this}};ah.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ke.reduceDescriptors(ah.prototype,({value:e},t)=>{let a=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(i){this[a]=i}}}),ke.freezeMethods(ah);const Gn=ah;function ty(e,t){const a=this||$g,i=t||a,n=Gn.from(i.headers);let r=i.data;return ke.forEach(e,function(o){r=o.call(a,r,n.normalize(),t?t.status:void 0)}),n.normalize(),r}function _T(e){return!!(e&&e.__CANCEL__)}function Ac(e,t,a){ct.call(this,e??"canceled",ct.ERR_CANCELED,t,a),this.name="CanceledError"}ke.inherits(Ac,ct,{__CANCEL__:!0});function qR(e,t,a){const i=a.config.validateStatus;!a.status||!i||i(a.status)?e(a):t(new ct("Request failed with status code "+a.status,[ct.ERR_BAD_REQUEST,ct.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}const WR=ln.hasStandardBrowserEnv?{write(e,t,a,i,n,r){const o=[e+"="+encodeURIComponent(t)];ke.isNumber(a)&&o.push("expires="+new Date(a).toGMTString()),ke.isString(i)&&o.push("path="+i),ke.isString(n)&&o.push("domain="+n),r===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function GR(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function KR(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function bT(e,t){return e&&!GR(t)?KR(e,t):t}const XR=ln.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let a;function i(n){let r=n;return e&&(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 a=i(window.location.href),function(n){const r=ke.isString(n)?i(n):n;return r.protocol===a.protocol&&r.host===a.host}}():function(){return function(){return!0}}();function JR(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function YR(e,t){e=e||10;const a=new Array(e),i=new Array(e);let n=0,r=0,o;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),d=i[r];o||(o=c),a[n]=l,i[n]=c;let u=r,h=0;for(;u!==n;)h+=a[u++],u=u%e;if(n=(n+1)%e,n===r&&(r=(r+1)%e),c-o<t)return;const m=d&&c-d;return m?Math.round(h*1e3/m):void 0}}function vT(e,t){let a=0;const i=YR(50,250);return n=>{const r=n.loaded,o=n.lengthComputable?n.total:void 0,l=r-a,c=i(l),d=r<=o;a=r;const u={loaded:r,total:o,progress:o?r/o:void 0,bytes:l,rate:c||void 0,estimated:c&&o&&d?(o-r)/c:void 0,event:n};u[t?"download":"upload"]=!0,e(u)}}const QR=typeof XMLHttpRequest<"u",ZR=QR&&function(e){return new Promise(function(t,a){let i=e.data;const n=Gn.from(e.headers).normalize();let{responseType:r,withXSRFToken:o}=e,l;function c(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let d;if(ke.isFormData(i)){if(ln.hasStandardBrowserEnv||ln.hasStandardBrowserWebWorkerEnv)n.setContentType(!1);else if((d=n.getContentType())!==!1){const[f,...y]=d?d.split(";").map(b=>b.trim()).filter(Boolean):[];n.setContentType([f||"multipart/form-data",...y].join("; "))}}let u=new XMLHttpRequest;if(e.auth){const f=e.auth.username||"",y=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";n.set("Authorization","Basic "+btoa(f+":"+y))}const h=bT(e.baseURL,e.url);u.open(e.method.toUpperCase(),hT(h,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function m(){if(!u)return;const f=Gn.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),y={data:!r||r==="text"||r==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:f,config:e,request:u};qR(function(b){t(b),c()},function(b){a(b),c()},y),u=null}if("onloadend"in u?u.onloadend=m:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(m)},u.onabort=function(){u&&(a(new ct("Request aborted",ct.ECONNABORTED,e,u)),u=null)},u.onerror=function(){a(new ct("Network Error",ct.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let f=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const y=e.transitional||mT;e.timeoutErrorMessage&&(f=e.timeoutErrorMessage),a(new ct(f,y.clarifyTimeoutError?ct.ETIMEDOUT:ct.ECONNABORTED,e,u)),u=null},ln.hasStandardBrowserEnv&&(o&&ke.isFunction(o)&&(o=o(e)),o||o!==!1&&XR(h))){const f=e.xsrfHeaderName&&e.xsrfCookieName&&WR.read(e.xsrfCookieName);f&&n.set(e.xsrfHeaderName,f)}i===void 0&&n.setContentType(null),"setRequestHeader"in u&&ke.forEach(n.toJSON(),function(f,y){u.setRequestHeader(y,f)}),ke.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),r&&r!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",vT(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",vT(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=f=>{u&&(a(!f||f.type?new Ac(null,e,u):f),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const p=JR(h);if(p&&ln.protocols.indexOf(p)===-1){a(new ct("Unsupported protocol "+p+":",ct.ERR_BAD_REQUEST,e));return}u.send(i||null)})},ay={http:TR,xhr:ZR};ke.forEach(ay,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ST=e=>`- ${e}`,$R=e=>ke.isFunction(e)||e===null||e===!1,wT={getAdapter:e=>{e=ke.isArray(e)?e:[e];const{length:t}=e;let a,i;const n={};for(let r=0;r<t;r++){a=e[r];let o;if(i=a,!$R(a)&&(i=ay[(o=String(a)).toLowerCase()],i===void 0))throw new ct(`Unknown adapter '${o}'`);if(i)break;n[o||"#"+r]=i}if(!i){const r=Object.entries(n).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let o=t?r.length>1?`since :
|
|
16
17
|
`+r.map(ST).join(`
|
|
17
|
-
`):" "+ST(r[0]):"as no adapter specified";throw new ct("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return i},adapters:ay};function iy(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ac(null,e)}function TT(e){return iy(e),e.headers=Gn.from(e.headers),e.data=ty.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),wT.getAdapter(e.adapter||$g.adapter)(e).then(function(t){return iy(e),t.data=ty.call(e,e.transformResponse,t),t.headers=Gn.from(t.headers),t},function(t){return _T(t)||(iy(e),t&&t.response&&(t.response.data=ty.call(e,e.transformResponse,t.response),t.response.headers=Gn.from(t.response.headers))),Promise.reject(t)})}const CT=e=>e instanceof Gn?e.toJSON():e;function go(e,t){t=t||{};const a={};function i(d,u,h){return ke.isPlainObject(d)&&ke.isPlainObject(u)?ke.merge.call({caseless:h},d,u):ke.isPlainObject(u)?ke.merge({},u):ke.isArray(u)?u.slice():u}function n(d,u,h){if(ke.isUndefined(u)){if(!ke.isUndefined(d))return i(void 0,d,h)}else return i(d,u,h)}function r(d,u){if(!ke.isUndefined(u))return i(void 0,u)}function o(d,u){if(ke.isUndefined(u)){if(!ke.isUndefined(d))return i(void 0,d)}else return i(void 0,u)}function l(d,u,h){if(h in t)return i(d,u);if(h in e)return i(void 0,d)}const c={url:r,method:r,data:r,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:l,headers:(d,u)=>n(CT(d),CT(u),!0)};return ke.forEach(Object.keys(Object.assign({},e,t)),function(d){const u=c[d]||n,h=u(e[d],t[d],d);ke.isUndefined(h)&&u!==l||(a[d]=h)}),a}const kT="1.6.
|
|
18
|
+
`):" "+ST(r[0]):"as no adapter specified";throw new ct("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return i},adapters:ay};function iy(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ac(null,e)}function TT(e){return iy(e),e.headers=Gn.from(e.headers),e.data=ty.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),wT.getAdapter(e.adapter||$g.adapter)(e).then(function(t){return iy(e),t.data=ty.call(e,e.transformResponse,t),t.headers=Gn.from(t.headers),t},function(t){return _T(t)||(iy(e),t&&t.response&&(t.response.data=ty.call(e,e.transformResponse,t.response),t.response.headers=Gn.from(t.response.headers))),Promise.reject(t)})}const CT=e=>e instanceof Gn?e.toJSON():e;function go(e,t){t=t||{};const a={};function i(d,u,h){return ke.isPlainObject(d)&&ke.isPlainObject(u)?ke.merge.call({caseless:h},d,u):ke.isPlainObject(u)?ke.merge({},u):ke.isArray(u)?u.slice():u}function n(d,u,h){if(ke.isUndefined(u)){if(!ke.isUndefined(d))return i(void 0,d,h)}else return i(d,u,h)}function r(d,u){if(!ke.isUndefined(u))return i(void 0,u)}function o(d,u){if(ke.isUndefined(u)){if(!ke.isUndefined(d))return i(void 0,d)}else return i(void 0,u)}function l(d,u,h){if(h in t)return i(d,u);if(h in e)return i(void 0,d)}const c={url:r,method:r,data:r,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:l,headers:(d,u)=>n(CT(d),CT(u),!0)};return ke.forEach(Object.keys(Object.assign({},e,t)),function(d){const u=c[d]||n,h=u(e[d],t[d],d);ke.isUndefined(h)&&u!==l||(a[d]=h)}),a}const kT="1.6.6",ny={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ny[e]=function(a){return typeof a===e||"a"+(t<1?"n ":" ")+e}});const ET={};ny.transitional=function(e,t,a){function i(n,r){return"[Axios v"+kT+"] Transitional option '"+n+"'"+r+(a?". "+a:"")}return(n,r,o)=>{if(e===!1)throw new ct(i(r," has been removed"+(t?" in "+t:"")),ct.ERR_DEPRECATED);return t&&!ET[r]&&(ET[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(n,r,o):!0}};function eM(e,t,a){if(typeof e!="object")throw new ct("options must be an object",ct.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let n=i.length;for(;n-- >0;){const r=i[n],o=t[r];if(o){const l=e[r],c=l===void 0||o(l,r,e);if(c!==!0)throw new ct("option "+r+" must be "+c,ct.ERR_BAD_OPTION_VALUE);continue}if(a!==!0)throw new ct("Unknown option "+r,ct.ERR_BAD_OPTION)}}const ry={assertOptions:eM,validators:ny},Or=ry.validators;let ih=class{constructor(t){this.defaults=t,this.interceptors={request:new pT,response:new pT}}async request(t,a){try{return await this._request(t,a)}catch(i){const n={};throw Error.captureStackTrace?Error.captureStackTrace(n):n.stack=new Error().stack,n.stack=n.stack.replace(/^.+\n/,""),i.stack.endsWith(n.stack.replace(/^.+\n.+\n/,""))||(i.stack+=`
|
|
19
|
+
`+n.stack),i}}_request(t,a){typeof t=="string"?(a=a||{},a.url=t):a=t||{},a=go(this.defaults,a);const{transitional:i,paramsSerializer:n,headers:r}=a;i!==void 0&&ry.assertOptions(i,{silentJSONParsing:Or.transitional(Or.boolean),forcedJSONParsing:Or.transitional(Or.boolean),clarifyTimeoutError:Or.transitional(Or.boolean)},!1),n!=null&&(ke.isFunction(n)?a.paramsSerializer={serialize:n}:ry.assertOptions(n,{encode:Or.function,serialize:Or.function},!0)),a.method=(a.method||this.defaults.method||"get").toLowerCase();let o=r&&ke.merge(r.common,r[a.method]);r&&ke.forEach(["delete","get","head","post","put","patch","common"],f=>{delete r[f]}),a.headers=Gn.concat(o,r);const l=[];let c=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(a)===!1||(c=c&&f.synchronous,l.unshift(f.fulfilled,f.rejected))});const d=[];this.interceptors.response.forEach(function(f){d.push(f.fulfilled,f.rejected)});let u,h=0,m;if(!c){const f=[TT.bind(this),void 0];for(f.unshift.apply(f,l),f.push.apply(f,d),m=f.length,u=Promise.resolve(a);h<m;)u=u.then(f[h++],f[h++]);return u}m=l.length;let p=a;for(h=0;h<m;){const f=l[h++],y=l[h++];try{p=f(p)}catch(b){y.call(this,b);break}}try{u=TT.call(this,p)}catch(f){return Promise.reject(f)}for(h=0,m=d.length;h<m;)u=u.then(d[h++],d[h++]);return u}getUri(t){t=go(this.defaults,t);const a=bT(t.baseURL,t.url);return hT(a,t.params,t.paramsSerializer)}};ke.forEach(["delete","get","head","options"],function(e){ih.prototype[e]=function(t,a){return this.request(go(a||{},{method:e,url:t,data:(a||{}).data}))}}),ke.forEach(["post","put","patch"],function(e){function t(a){return function(i,n,r){return this.request(go(r||{},{method:e,headers:a?{"Content-Type":"multipart/form-data"}:{},url:i,data:n}))}}ih.prototype[e]=t(),ih.prototype[e+"Form"]=t(!0)});const nh=ih;class sy{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(n){a=n});const i=this;this.promise.then(n=>{if(!i._listeners)return;let r=i._listeners.length;for(;r-- >0;)i._listeners[r](n);i._listeners=null}),this.promise.then=n=>{let r;const o=new Promise(l=>{i.subscribe(l),r=l}).then(n);return o.cancel=function(){i.unsubscribe(r)},o},t(function(n,r,o){i.reason||(i.reason=new Ac(n,r,o),a(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const a=this._listeners.indexOf(t);a!==-1&&this._listeners.splice(a,1)}static source(){let t;return{token:new sy(function(a){t=a}),cancel:t}}}const tM=sy;function aM(e){return function(t){return e.apply(null,t)}}function iM(e){return ke.isObject(e)&&e.isAxiosError===!0}const oy={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(oy).forEach(([e,t])=>{oy[t]=e});const nM=oy;function IT(e){const t=new nh(e),a=Yw(nh.prototype.request,t);return ke.extend(a,nh.prototype,t,{allOwnKeys:!0}),ke.extend(a,t,null,{allOwnKeys:!0}),a.create=function(i){return IT(go(e,i))},a}const Qt=IT($g);Qt.Axios=nh,Qt.CanceledError=Ac,Qt.CancelToken=tM,Qt.isCancel=_T,Qt.VERSION=kT,Qt.toFormData=eh,Qt.AxiosError=ct,Qt.Cancel=Qt.CanceledError,Qt.all=function(e){return Promise.all(e)},Qt.spread=aM,Qt.isAxiosError=iM,Qt.mergeConfig=go,Qt.AxiosHeaders=Gn,Qt.formToJSON=e=>gT(ke.isHTMLForm(e)?new FormData(e):e),Qt.getAdapter=wT.getAdapter,Qt.HttpStatusCode=nM,Qt.default=Qt;const xT=Qt;/**
|
|
18
20
|
* Vue 3 Carousel 0.3.1
|
|
19
21
|
* (c) 2023
|
|
20
22
|
* @license MIT
|
|
@@ -22,7 +24,7 @@
|
|
|
22
24
|
* Vue 3 Carousel 0.3.1
|
|
23
25
|
* (c) 2023
|
|
24
26
|
* @license MIT
|
|
25
|
-
*/const na={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"}},BT={itemsToShow:{default:na.itemsToShow,type:Number},itemsToScroll:{default:na.itemsToScroll,type:Number},wrapAround:{default:na.wrapAround,type:Boolean},throttle:{default:na.throttle,type:Number},snapAlign:{default:na.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:na.transition,type:Number},breakpoints:{default:na.breakpoints,type:Object},autoplay:{default:na.autoplay,type:Number},pauseAutoplayOnHover:{default:na.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:na.mouseDrag,type:Boolean},touchDrag:{default:na.touchDrag,type:Boolean},dir:{default:na.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:na.i18n,type:Object},settings:{default(){return{}},type:Object}};function RM({config:e,slidesCount:t}){const{snapAlign:a,wrapAround:i,itemsToShow:n=1}=e;if(i)return Math.max(t-1,0);let r;switch(a){case"start":r=t-n;break;case"end":r=t-1;break;case"center":case"center-odd":r=t-Math.ceil((n-.5)/2);break;case"center-even":r=t-Math.ceil(n/2);break;default:r=0;break}return Math.max(r,0)}function MM({config:e,slidesCount:t}){const{wrapAround:a,snapAlign:i,itemsToShow:n=1}=e;let r=0;if(a||n>t)return r;switch(i){case"start":r=0;break;case"end":r=n-1;break;case"center":case"center-odd":r=Math.floor((n-1)/2);break;case"center-even":r=Math.floor((n-2)/2);break;default:r=0;break}return r}function dy({val:e,max:t,min:a}){return t<a?e:Math.min(Math.max(e,a),t)}function FM({config:e,currentSlide:t,slidesCount:a}){const{snapAlign:i,wrapAround:n,itemsToShow:r=1}=e;let o=t;switch(i){case"center":case"center-odd":o-=(r-1)/2;break;case"center-even":o-=(r-2)/2;break;case"end":o-=r-1;break}return n?o:dy({val:o,max:a-r,min:0})}function DT(e){return e?e.reduce((t,a)=>{var i;return a.type===s.Fragment?[...t,...DT(a.children)]:((i=a.type)===null||i===void 0?void 0:i.name)==="CarouselSlide"?[...t,a]:t},[]):[]}function uy({val:e,max:t,min:a=0}){return e>t?uy({val:e-(t+1),max:t,min:a}):e<a?uy({val:e+(t+1),max:t,min:a}):e}function VM(e,t){let a;return t?function(...i){const n=this;a||(e.apply(n,i),a=!0,setTimeout(()=>a=!1,t))}:e}function UM(e,t){let a;return function(...i){a&&clearTimeout(a),a=setTimeout(()=>{e(...i),a=null},t)}}function jM(e="",t={}){return Object.entries(t).reduce((a,[i,n])=>a.replace(`{${i}}`,String(n)),e)}var zM=s.defineComponent({name:"ARIA",setup(){const e=s.inject("config",s.reactive(Object.assign({},na))),t=s.inject("currentSlide",s.ref(0)),a=s.inject("slidesCount",s.ref(0));return()=>s.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},jM(e.i18n.itemXofY,{currentSlide:t.value+1,slidesCount:a.value}))}}),HM=s.defineComponent({name:"Carousel",props:BT,setup(e,{slots:t,emit:a,expose:i}){var n;const r=s.ref(null),o=s.ref([]),l=s.ref(0),c=s.ref(0),d=s.reactive(Object.assign({},na));let u=Object.assign({},na),h;const m=s.ref((n=e.modelValue)!==null&&n!==void 0?n:0),p=s.ref(0),f=s.ref(0),y=s.ref(0),b=s.ref(0);let E,D;s.provide("config",d),s.provide("slidesCount",c),s.provide("currentSlide",m),s.provide("maxSlide",y),s.provide("minSlide",b),s.provide("slideWidth",l);function M(){h=Object.assign({},e.breakpoints),u=Object.assign(Object.assign(Object.assign({},u),e),{i18n:Object.assign(Object.assign({},u.i18n),e.i18n),breakpoints:void 0}),A(u)}function N(){if(!h||!Object.keys(h).length)return;const J=Object.keys(h).map(Oe=>Number(Oe)).sort((Oe,We)=>+We-+Oe);let De=Object.assign({},u);J.some(Oe=>{const We=window.matchMedia(`(min-width: ${Oe}px)`).matches;return We&&(De=Object.assign(Object.assign({},De),h[Oe])),We}),A(De)}function A(J){Object.entries(J).forEach(([De,Oe])=>d[De]=Oe)}const L=UM(()=>{N(),V()},16);function V(){if(!r.value)return;const J=r.value.getBoundingClientRect();l.value=J.width/d.itemsToShow}function $(){c.value<=0||(f.value=Math.ceil((c.value-1)/2),y.value=RM({config:d,slidesCount:c.value}),b.value=MM({config:d,slidesCount:c.value}),d.wrapAround||(m.value=dy({val:m.value,max:y.value,min:b.value})))}s.onMounted(()=>{s.nextTick(()=>V()),setTimeout(()=>V(),1e3),N(),ie(),window.addEventListener("resize",L,{passive:!0}),a("init")}),s.onUnmounted(()=>{D&&clearTimeout(D),E&&clearInterval(E),window.removeEventListener("resize",L,{passive:!0})});let U=!1;const ae={x:0,y:0},oe={x:0,y:0},Q=s.reactive({x:0,y:0}),de=s.ref(!1),Se=s.ref(!1),we=()=>{de.value=!0},pe=()=>{de.value=!1};function z(J){["INPUT","TEXTAREA","SELECT"].includes(J.target.tagName)||(U=J.type==="touchstart",U||J.preventDefault(),!(!U&&J.button!==0||fe.value)&&(ae.x=U?J.touches[0].clientX:J.clientX,ae.y=U?J.touches[0].clientY:J.clientY,document.addEventListener(U?"touchmove":"mousemove",K,!0),document.addEventListener(U?"touchend":"mouseup",ue,!0)))}const K=VM(J=>{Se.value=!0,oe.x=U?J.touches[0].clientX:J.clientX,oe.y=U?J.touches[0].clientY:J.clientY;const De=oe.x-ae.x,Oe=oe.y-ae.y;Q.y=Oe,Q.x=De},d.throttle);function ue(){const J=d.dir==="rtl"?-1:1,De=Math.sign(Q.x)*.4,Oe=Math.round(Q.x/l.value+De)*J;if(Oe&&!U){const We=gt=>{gt.stopPropagation(),window.removeEventListener("click",We,!0)};window.addEventListener("click",We,!0)}me(m.value-Oe),Q.x=0,Q.y=0,Se.value=!1,document.removeEventListener(U?"touchmove":"mousemove",K,!0),document.removeEventListener(U?"touchend":"mouseup",ue,!0)}function ie(){!d.autoplay||d.autoplay<=0||(E=setInterval(()=>{d.pauseAutoplayOnHover&&de.value||ge()},d.autoplay))}function ne(){E&&(clearInterval(E),E=null),ie()}const fe=s.ref(!1);function me(J){const De=d.wrapAround?J:dy({val:J,max:y.value,min:b.value});m.value===De||fe.value||(a("slide-start",{slidingToIndex:J,currentSlideIndex:m.value,prevSlideIndex:p.value,slidesCount:c.value}),fe.value=!0,p.value=m.value,m.value=De,D=setTimeout(()=>{if(d.wrapAround){const Oe=uy({val:De,max:y.value,min:0});Oe!==m.value&&(m.value=Oe,a("loop",{currentSlideIndex:m.value,slidingToIndex:J}))}a("update:modelValue",m.value),a("slide-end",{currentSlideIndex:m.value,prevSlideIndex:p.value,slidesCount:c.value}),fe.value=!1,ne()},d.transition))}function ge(){me(m.value+d.itemsToScroll)}function ee(){me(m.value-d.itemsToScroll)}const re={slideTo:me,next:ge,prev:ee};s.provide("nav",re),s.provide("isSliding",fe);const X=s.computed(()=>FM({config:d,currentSlide:m.value,slidesCount:c.value}));s.provide("slidesToScroll",X);const R=s.computed(()=>{const J=d.dir==="rtl"?-1:1,De=X.value*l.value*J;return{transform:`translateX(${Q.x-De}px)`,transition:`${fe.value?d.transition:0}ms`,margin:d.wrapAround?`0 -${c.value*l.value}px`:"",width:"100%"}});function he(){M(),N(),$(),V(),ne()}Object.keys(BT).forEach(J=>{["modelValue"].includes(J)||s.watch(()=>e[J],he)}),s.watch(()=>e.modelValue,J=>{J!==m.value&&me(Number(J))}),s.watch(c,$),a("before-init"),M();const ve={config:d,slidesCount:c,slideWidth:l,next:ge,prev:ee,slideTo:me,currentSlide:m,maxSlide:y,minSlide:b,middleSlide:f};i({updateBreakpointsConfigs:N,updateSlidesData:$,updateSlideWidth:V,initDefaultConfigs:M,restartCarousel:he,slideTo:me,next:ge,prev:ee,nav:re,data:ve});const Re=t.default||t.slides,qe=t.addons,Ge=s.reactive(ve);return()=>{const J=DT(Re==null?void 0:Re(Ge)),De=(qe==null?void 0:qe(Ge))||[];J.forEach((Ye,Ze)=>Ye.props.index=Ze);let Oe=J;if(d.wrapAround){const Ye=J.map((Bt,rt)=>s.cloneVNode(Bt,{index:-J.length+rt,isClone:!0,key:`clone-before-${rt}`})),Ze=J.map((Bt,rt)=>s.cloneVNode(Bt,{index:J.length+rt,isClone:!0,key:`clone-after-${rt}`}));Oe=[...Ye,...J,...Ze]}o.value=J,c.value=Math.max(J.length,1);const We=s.h("ol",{class:"carousel__track",style:R.value,onMousedownCapture:d.mouseDrag?z:null,onTouchstartPassiveCapture:d.touchDrag?z:null},Oe),gt=s.h("div",{class:"carousel__viewport"},We);return s.h("section",{ref:r,class:{carousel:!0,"is-sliding":fe.value,"is-dragging":Se.value,"is-hover":de.value,"carousel--rtl":d.dir==="rtl"},dir:d.dir,"aria-label":d.i18n.ariaGallery,tabindex:"0",onMouseenter:we,onMouseleave:pe},[gt,De,s.h(zM)])}}}),hy;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(hy||(hy={}));const qM={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 WM(e){return e in hy}const py=e=>{const t=s.inject("config",s.reactive(Object.assign({},na))),a=String(e.name),i=`icon${a.charAt(0).toUpperCase()+a.slice(1)}`;if(!a||typeof a!="string"||!WM(a))return;const n=qM[a],r=s.h("path",{d:n}),o=t.i18n[i]||e.title||a,l=s.h("title",o);return s.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":o},[l,r])};py.props={name:String,title:String};const GM=(e,{slots:t,attrs:a})=>{const{next:i,prev:n}=t||{},r=s.inject("config",s.reactive(Object.assign({},na))),o=s.inject("maxSlide",s.ref(1)),l=s.inject("minSlide",s.ref(1)),c=s.inject("currentSlide",s.ref(1)),d=s.inject("nav",{}),{dir:u,wrapAround:h,i18n:m}=r,p=u==="rtl",f=s.h("button",{type:"button",class:["carousel__prev",!h&&c.value<=l.value&&"carousel__prev--disabled",a==null?void 0:a.class],"aria-label":m.ariaPreviousSlide,onClick:d.prev},(n==null?void 0:n())||s.h(py,{name:p?"arrowRight":"arrowLeft"})),y=s.h("button",{type:"button",class:["carousel__next",!h&&c.value>=o.value&&"carousel__next--disabled",a==null?void 0:a.class],"aria-label":m.ariaNextSlide,onClick:d.next},(i==null?void 0:i())||s.h(py,{name:p?"arrowLeft":"arrowRight"}));return[f,y]};var KM=s.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:t}){const a=s.inject("config",s.reactive(Object.assign({},na))),i=s.inject("currentSlide",s.ref(0)),n=s.inject("slidesToScroll",s.ref(0)),r=s.inject("isSliding",s.ref(!1)),o=()=>e.index===i.value,l=()=>e.index===i.value-1,c=()=>e.index===i.value+1,d=()=>{const u=Math.floor(n.value),h=Math.ceil(n.value+a.itemsToShow-1);return e.index>=u&&e.index<=h};return()=>{var u;return s.h("li",{style:{width:`${100/a.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":d(),"carousel__slide--active":o(),"carousel__slide--prev":l(),"carousel__slide--next":c(),"carousel__slide--sliding":r.value},"aria-hidden":!d()},(u=t.default)===null||u===void 0?void 0:u.call(t))}}});const Mi=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},XM={__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:t}){const a=e,i=s.computed(()=>{const l={"background-color":a.backgroundColor,height:a.height};return a.matchDay.key===a.matchDaySelected.key&&(l["border-bottom"]=`solid 1px ${a.bottomLineColor}`,l["background-color"]=a.selectedMatchDayBackgroundColor),a.isLandingMode||(l["border-right"]="solid 1px rgba(255, 255, 255, 0.1)"),l}),n=s.computed(()=>({color:a.numberColor,"font-family":a.numberFontFamily,"font-size":a.numberFontSize})),r=s.computed(()=>({color:a.textColor,"font-family":a.textFontFamily,"font-size":a.textFontSize}));function o(l){t("click-match-day",l)}return(l,c)=>(s.openBlock(),s.createElementBlock("div",{class:"match-day",style:s.normalizeStyle({...i.value}),onClick:c[0]||(c[0]=d=>o(e.matchDay))},[s.createElementVNode("div",{class:"match-day__value",style:s.normalizeStyle(n.value)},s.toDisplayString(e.matchDay.valueText),5),Number.isNaN(e.matchDay.value)?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",{key:0,class:"match-day__text",style:s.normalizeStyle([e.isLandingMode?"margin-top:3px":"margin-top:4px",r.value])},s.toDisplayString(e.isLandingMode||e.componentWidth<=425?"JOR":"JORNADA"),5))],4))}},JM=Mi(XM,[["__scopeId","data-v-687d929a"]]),YM={__name:"MatchDayPicker",props:{matchDays:{type:Array,default:()=>[]},isLandingMode:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#183143"},numberColor:{type:String,default:"white"},numberFontFamily:{type:String,default:"sans-serif"},numberFontSize:{type:String,default:"14px"},textColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"8px"},bottomLineColor:{type:String,default:"#cbee6b"},selectedMatchDayBackgroundColor:{type:String,default:"#243b4c"},height:{type:String,default:"fit-content"},itemsToShow:{type:Number,default:9},itemsToScroll:{type:Number,default:9},defaultMatchDayKey:{type:[String,null],default:""},componentWidth:{type:Number,default:0}},emits:["change-match-day"],setup(e,{emit:t}){const a=e;s.useCssVars(d=>({"2c74e7d9":r.value,"2c73d099":o.value}));const i=s.ref(null),n=s.computed(()=>({itemsToShow:a.itemsToShow,itemsToScroll:a.itemsToScroll,snapAlign:"start"})),r=s.computed(()=>i.value.data.currentSlide.value==0?"none":"inline"),o=s.computed(()=>i.value.data.currentSlide.value==i.value.data.maxSlide.value?"none":"inline"),l=s.ref({});s.watch(()=>a.matchDays,d=>{if(d&&d.length){const u=d.find(h=>h.key===a.defaultMatchDayKey);l.value=u||d[0],t("change-match-day",l.value)}},{immediate:!0});function c(d){l.value=d,t("change-match-day",l.value)}return(d,u)=>(s.openBlock(),s.createElementBlock("div",{class:"match-day-picker",style:s.normalizeStyle(e.isLandingMode?"border-top-left-radius: 9px; border-top-right-radius: 9px;":"margin-bottom:12px")},[s.createVNode(s.unref(HM),s.mergeProps(n.value,{ref_key:"matchDayPickerCarousel",ref:i}),{addons:s.withCtx(()=>[s.createVNode(s.unref(GM))]),default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.matchDays,h=>(s.openBlock(),s.createBlock(s.unref(KM),{key:h.key},{default:s.withCtx(()=>[s.createVNode(JM,s.mergeProps(a,{"match-day":h,"match-day-selected":l.value,"is-landing-mode":e.isLandingMode,"component-width":e.componentWidth,onClickMatchDay:c}),null,16,["match-day","match-day-selected","is-landing-mode","component-width"])]),_:2},1024))),128))]),_:1},16)],4))}},QM=Mi(YM,[["__scopeId","data-v-523ebbb9"]]);function yo(e,t=80){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-"}${t}/${e}.png`}function LT(e){if(typeof e=="string"){let t=e.replace("M","J ");return t=t.replace("PO1","CFI"),t=t.replace("PO2","CFV"),t=t.replace("PO3","SFI"),t=t.replace("PO4","SFV"),t=t.replace("PO5","FI"),t=t.replace("PO6","FV"),t}}function ZM(e){let t="";return e.game_status!=4&&(t+="Finalizado"),(e.penalties_score_home_team!=0||e.penalties_score_visiting_team!=0)&&(t+=" - Penales "+e.penalties_score_home_team+" - "+e.penalties_score_visiting_team),t}const $M={class:"game-info__teams"},eF={class:"game-info__teams__team__logo"},tF=["src"],aF={class:"game-info__teams__detail"},iF={key:0,class:"game-info__teams__detail__pre-game"},nF={class:"game-info__teams__team__logo away"},rF=["src"],sF={key:0},oF={key:0},lF={key:1},cF={__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 t=e,a=s.computed(()=>{const d=new Date(t.game.dateTimeMillis),u=d.getHours(),h=d.getMinutes();return`${u<10?`0${u}`:u}:${h<10?`0${h}`:h}`}),i=s.computed(()=>{let d="120px";return(t.isLandingMode||t.isAcronymVisible)&&(d="70px"),{"min-width":d}}),n=s.computed(()=>({"font-size":t.namesFontSize,"font-family":t.namesFontFamily,color:t.colorPrimary})),r=s.computed(()=>({"font-size":t.additionalInfoFontSize,"font-family":t.additionalInfoFontFamily,color:t.colorSecondary})),o=s.computed(()=>({"font-size":t.scoreFontSize,"font-family":t.scoreFontFamily,color:t.colorPrimary})),l=s.computed(()=>({"font-size":t.timeZoneFontSize,"font-family":t.namesFontFamily,color:t.colorPrimary})),c=s.computed(()=>({"font-size":t.timeFontSize,"font-family":t.namesFontFamily,color:t.colorPrimary}));return(d,u)=>(s.openBlock(),s.createElementBlock("div",{class:"game-info",style:s.normalizeStyle(e.isLandingMode?"gap:5px":"")},[s.createElementVNode("div",$M,[s.createElementVNode("div",{class:"game-info__teams__team",style:s.normalizeStyle(i.value)},[s.createElementVNode("div",{class:"game-info__teams__team__name",style:s.normalizeStyle(n.value)},s.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.home_team.acronym:e.game.home_team.colloquial_name),5),s.createElementVNode("div",eF,[s.createElementVNode("img",{src:s.unref(yo)(e.game.home_team.team_id),alt:""},null,8,tF)])],4),s.createElementVNode("div",aF,[e.game.game_status===4&&!e.game.is_live?(s.openBlock(),s.createElementBlock("div",iF,[s.createElementVNode("div",null,[s.createElementVNode("span",{style:s.normalizeStyle(c.value)},s.toDisplayString(a.value),5),s.createTextVNode(),s.createElementVNode("span",{style:s.normalizeStyle(l.value)},"CST",4)])])):(s.openBlock(),s.createElementBlock("div",{key:1,class:"game-info__teams__detail__score",style:s.normalizeStyle(o.value)},[s.createElementVNode("span",null,s.toDisplayString(e.game.score[0])+" - "+s.toDisplayString(e.game.score[1]),1)],4))]),s.createElementVNode("div",{class:"game-info__teams__team away",style:s.normalizeStyle(i.value)},[s.createElementVNode("div",nF,[s.createElementVNode("img",{src:s.unref(yo)(e.game.visiting_team.team_id),alt:""},null,8,rF)]),s.createElementVNode("div",{class:"game-info__teams__team__name",style:s.normalizeStyle(n.value)},s.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.visiting_team.acronym:e.game.visiting_team.colloquial_name),5)],4)]),s.createElementVNode("div",{class:"game-info__status",style:s.normalizeStyle([r.value,e.isLandingMode?"line-height: normal":""])},[e.game.game_status===4&&!e.game.is_live?(s.openBlock(),s.createElementBlock("span",sF,[e.isTelevisionVisible?(s.openBlock(),s.createElementBlock("span",oF,s.toDisplayString(e.game.tv_stations.join(", ")),1)):s.createCommentVNode("",!0)])):(s.openBlock(),s.createElementBlock("span",lF,s.toDisplayString(s.unref(ZM)(e.game)),1))],4)],4))}},RT=Mi(cF,[["__scopeId","data-v-2b206f6a"]]),MT=e=>(s.pushScopeId("data-v-e2fc9ed0"),e=e(),s.popScopeId(),e),dF={class:"game-status"},uF={key:0,class:"game-status__day__live"},hF=MT(()=>s.createElementVNode("span",null,"LIVE",-1)),pF=MT(()=>s.createElementVNode("span",{class:"dot"},null,-1)),mF=[hF,pF],fF={key:0,class:"game-status__round"},gF={__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 t=e,a=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],i=s.computed(()=>{let o="";if(t.dateTimeMillis){const l=new Date(t.dateTimeMillis);o=`${l.getDate()} ${a[l.getMonth()]}`}return o}),n=s.computed(()=>({"font-size":t.fontSize})),r=s.computed(()=>{let o=[];return t.isLive?o.push("live"):t.status!==1&&o.push("pre-match"),o});return(o,l)=>(s.openBlock(),s.createElementBlock("div",dF,[s.createElementVNode("div",{class:s.normalizeClass(["game-status__day",r.value]),style:s.normalizeStyle(n.value)},[e.isLive?(s.openBlock(),s.createElementBlock("div",uF,mF)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(i.value),1)],64))],6),e.isRoundMode?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",fF,s.toDisplayString(e.roundAbbreviation),1))]))}},FT=Mi(gF,[["__scopeId","data-v-e2fc9ed0"]]),Fi={SHOW_GAME_EVENTS:"SHOW_GAME_EVENTS",PLAY_GOALS:"PLAY_GOALS",PLAY_RESUME:"PLAY_RESUME",NOTIFICATION:"NOTIFICATION",STATISTICS:"STATISTICS"},yF=e=>(s.pushScopeId("data-v-5711c5a6"),e=e(),s.popScopeId(),e),_F={class:"actions"},bF={class:"actions__row"},vF=yF(()=>s.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[s.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"}),s.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"}),s.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)),SF=[vF],wF={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},TF=["fill"],CF={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},kF=["fill"],EF={__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:t}){const a=e,i=s.computed(()=>({backgroundColor:a.iconBackgroundColor,borderColor:a.iconBorderColor}));function n(r){t("action",r)}return(r,o)=>(s.openBlock(),s.createElementBlock("div",_F,[s.createElementVNode("div",bF,[s.createElementVNode("div",{class:"actions__button rounded",style:s.normalizeStyle(i.value),onClick:o[0]||(o[0]=l=>n(s.unref(Fi).STATISTICS))},SF,4),e.showPlayButton&&e.hasVideo?(s.openBlock(),s.createElementBlock("div",{key:0,class:"actions__button rounded",style:s.normalizeStyle(i.value),onClick:o[1]||(o[1]=l=>n(s.unref(Fi).PLAY_RESUME))},[(s.openBlock(),s.createElementBlock("svg",wF,[s.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:a.iconColor},null,8,TF)]))],4)):s.createCommentVNode("",!0),e.gameStatus===4444&&!e.isLive?(s.openBlock(),s.createElementBlock("div",{key:1,class:"actions__button",onClick:o[2]||(o[2]=l=>n(s.unref(Fi).NOTIFICATION))},[(s.openBlock(),s.createElementBlock("svg",CF,[s.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:a.iconColor},null,8,kF)]))])):s.createCommentVNode("",!0)])]))}},IF=Mi(EF,[["__scopeId","data-v-5711c5a6"]]),my=e=>(s.pushScopeId("data-v-9350c7c8"),e=e(),s.popScopeId(),e),xF={class:"actions"},NF={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},AF=["fill"],PF={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},OF=["fill"],BF=my(()=>s.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[s.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"}),s.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"}),s.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)),DF=[BF],LF={key:0,class:"actions__videos"},RF={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},MF=["fill"],FF={key:1,class:"actions__videos__thumbnails"},VF=my(()=>s.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__goals"},null,-1)),UF=my(()=>s.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__summary"},null,-1)),jF={height:24,width:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},zF=["stroke"],HF={__name:"GameActionsFull",props:{gameStatus:{type:Number,default:4},isLive:{type:Boolean,default:!1},hasVideo:{type:Boolean,default:!1},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:t}){const a=e,i=s.computed(()=>({backgroundColor:a.iconBackgroundColor,borderColor:a.iconBorderColor})),n=s.computed(()=>{const c=[];return a.componentWidth<540&&c.push("mobile"),c}),r=s.computed(()=>a.componentWidth>730),o=s.computed(()=>({color:a.thumbnailColor,fontFamily:a.thumbnailFontFamily,fontSize:a.thumbnailFontSize}));function l(c){t("action",c)}return(c,d)=>(s.openBlock(),s.createElementBlock("div",xF,[s.createElementVNode("div",{class:s.normalizeClass(["actions__buttons",n.value])},[e.gameStatus===4444&&!e.isLive&&!r.value?(s.openBlock(),s.createElementBlock("div",{key:0,class:"actions__button",onClick:d[0]||(d[0]=u=>l(s.unref(Fi).NOTIFICATION))},[(s.openBlock(),s.createElementBlock("svg",NF,[s.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:a.iconColor},null,8,AF)]))])):s.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo&&!r.value?(s.openBlock(),s.createElementBlock("div",{key:1,class:"actions__button rounded",style:s.normalizeStyle(i.value),onClick:d[1]||(d[1]=u=>l(s.unref(Fi).PLAY_RESUME))},[(s.openBlock(),s.createElementBlock("svg",PF,[s.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:a.iconColor},null,8,OF)]))],4)):s.createCommentVNode("",!0),s.createElementVNode("div",{class:"actions__button rounded",style:s.normalizeStyle(i.value),onClick:d[2]||(d[2]=u=>l(s.unref(Fi).STATISTICS))},DF,4)],2),r.value?(s.openBlock(),s.createElementBlock("div",LF,[e.gameStatus===4444&&!e.isLive?(s.openBlock(),s.createElementBlock("div",{key:0,class:"actions__button",onClick:d[3]||(d[3]=u=>l(s.unref(Fi).NOTIFICATION))},[(s.openBlock(),s.createElementBlock("svg",RF,[s.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:a.iconColor},null,8,MF)]))])):s.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo?(s.openBlock(),s.createElementBlock("div",FF,[s.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:d[4]||(d[4]=u=>l(s.unref(Fi).PLAY_GOALS))},[VF,s.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:s.normalizeStyle(o.value)}," Goles ",4)]),s.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:d[5]||(d[5]=u=>l(s.unref(Fi).PLAY_RESUME))},[UF,s.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:s.normalizeStyle(o.value)}," Resumen ",4)])])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),e.gameStatus!==4||e.isLive?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["actions__button expand",{"rotated-180":e.areEventsVisible,mobile:e.componentWidth<540}]),onClick:d[6]||(d[6]=u=>l(s.unref(Fi).SHOW_GAME_EVENTS))},[(s.openBlock(),s.createElementBlock("svg",jF,[s.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,zF)]))],2)):(s.openBlock(),s.createElementBlock("div",{key:2,class:s.normalizeClass(["actions__button expand",{"rotated-180":!1,mobile:e.componentWidth<540}])},null,2))]))}},qF=Mi(HF,[["__scopeId","data-v-9350c7c8"]]),rh=e=>(s.pushScopeId("data-v-1b5d4b19"),e=e(),s.popScopeId(),e),WF={class:"row-landing__game-status"},GF={class:"row-landing__game-actions"},KF={class:"row-full__game-status"},XF={class:"row-full__game-info"},JF={key:0},YF={class:"row-full__game-actions"},QF={class:"game-events-container"},ZF=rh(()=>s.createElementVNode("div",{class:"separator"},null,-1)),$F=rh(()=>s.createElementVNode("div",null,null,-1)),eV={class:"game-events__data"},tV={class:"game-events__data__team"},aV=["src"],iV={class:"game-events__data__team__event__text"},nV={class:"game-events__data__team away"},rV={class:"game-events__data__team__event__text"},sV=["src"],oV=rh(()=>s.createElementVNode("div",null,null,-1)),lV=rh(()=>s.createElementVNode("div",null,null,-1)),cV={__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:t}){const a=e,i={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"},n=s.ref(!1),r=s.ref(!1),o=s.computed(()=>{const f={homeTeam:[],awayTeam:[]};return a.game&&a.game.game_status!==4&&!a.game.is_live&&a.game.minutes&&(f.homeTeam.push(...m(a.game.minutes.home_goals_minutes,i.GOAL)),f.homeTeam.push(...m(a.game.minutes.home_red_cards_minutes,i.RED_CARD)),f.homeTeam.push(...m(a.game.minutes.home_yellow_cards_minutes,i.YELLOW_CARD)),f.awayTeam.push(...m(a.game.minutes.visiting_goals_minutes,i.GOAL)),f.awayTeam.push(...m(a.game.minutes.away_red_cards_minutes,i.RED_CARD)),f.awayTeam.push(...m(a.game.minutes.away_yellow_cards_minutes,i.YELLOW_CARD))),f}),l=s.computed(()=>({"background-color":a.backgroundColor})),c=s.computed(()=>({height:a.height})),d=s.computed(()=>{const f={game:[],events:[]};return a.componentWidth<500?(f.events.push("break-point-3"),f.game.push("break-point-2")):a.componentWidth<730?(f.game.push("break-point-2"),f.events.push("break-point-2")):a.componentWidth<910&&(f.game.push("break-point-1"),f.events.push("break-point-1")),f}),u=s.computed(()=>({isLandingMode:a.isLandingMode,game:a.game,colorPrimary:"#fff",colorSecondary:"#fff",namesFontSize:"12px",timeFontSize:"12px",timeZoneFontSize:"8px",scoreFontSize:"13px",namesFontFamily:"sans-serif",scoreFontFamily:"sans-serif",additionalInfoFontFamily:"sans-serif",additionalInfoFontSize:"9px"})),h=s.computed(()=>({"font-size":a.televisionFontSize,"font-family":a.televisionFontFamily,color:a.televisionColor}));s.watch(()=>a.componentWidth,f=>{r.value=f<910});function m(f,y){return f.map(b=>({iconUrl:y,text:b}))}function p(f){f===Fi.SHOW_GAME_EVENTS?n.value=!n.value:t("action",{action:f,game:a.game})}return(f,y)=>e.isLandingMode?(s.openBlock(),s.createElementBlock("div",{key:0,class:"row-landing",style:s.normalizeStyle(l.value)},[s.createVNode(RT,{game:e.game,"is-landing-mode":e.isLandingMode},null,8,["game","is-landing-mode"]),s.createElementVNode("div",WF,[s.createVNode(FT,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":s.unref(LT)(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"])]),s.createElementVNode("div",GF,[s.createVNode(IF,{"is-live":!!e.game.is_live,"has-video":!!e.game.has_video,"game-status":e.game.game_status,"show-play-button":!0,onAction:p},null,8,["is-live","has-video","game-status"])])],4)):(s.openBlock(),s.createElementBlock("div",{key:1,class:"row-full-container",style:s.normalizeStyle(l.value)},[s.createElementVNode("div",{class:s.normalizeClass(["row-full",d.value.game]),style:s.normalizeStyle(c.value)},[s.createElementVNode("div",KF,[s.createVNode(FT,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":s.unref(LT)(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"])]),s.createElementVNode("div",XF,[s.createVNode(RT,s.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?(s.openBlock(),s.createElementBlock("div",{key:0,class:"row-full__television",style:s.normalizeStyle(h.value)},[!r.value&&(e.game.game_status===4||e.game.is_live)?(s.openBlock(),s.createElementBlock("span",JF,s.toDisplayString(e.game.tv_stations.join(", ")),1)):s.createCommentVNode("",!0)],4)):s.createCommentVNode("",!0),s.createElementVNode("div",YF,[s.createVNode(qF,{"is-live":!!e.game.is_live,"has-video":!!e.game.has_video,"game-status":e.game.game_status,"show-play-button":!0,"are-events-visible":n.value,"component-width":e.componentWidth,onAction:p},null,8,["is-live","has-video","game-status","are-events-visible","component-width"])])],6),s.createVNode(s.Transition,null,{default:s.withCtx(()=>[s.withDirectives(s.createElementVNode("div",QF,[ZF,s.createElementVNode("div",{class:s.normalizeClass(["game-events",d.value.events])},[$F,s.createElementVNode("div",eV,[s.createElementVNode("div",tV,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.value.homeTeam,(b,E)=>(s.openBlock(),s.createElementBlock("div",{key:`h${E}`,class:"game-events__data__team__event"},[s.createElementVNode("img",{src:b.iconUrl},null,8,aV),s.createElementVNode("div",iV,s.toDisplayString(b.text),1)]))),128))]),s.createElementVNode("div",nV,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.value.awayTeam,(b,E)=>(s.openBlock(),s.createElementBlock("div",{key:`a${E}`,class:"game-events__data__team__event"},[s.createElementVNode("div",rV,s.toDisplayString(b.text),1),s.createElementVNode("img",{src:b.iconUrl},null,8,sV)]))),128))])]),oV,lV],2)],512),[[s.vShow,n.value]])]),_:1})],4))}},VT=Mi(cV,[["__scopeId","data-v-1b5d4b19"]]),dV={class:"calendar-table"},uV={__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:t}){const a=e;function i(r){return r%2===0?a.evenRowColor:a.oddRowColor}function n(r){t("action",r)}return(r,o)=>(s.openBlock(),s.createElementBlock("div",dV,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.gamesPerPage,(l,c)=>(s.openBlock(),s.createBlock(VT,{key:l.game_id,game:l,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":i(c),"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:n},null,8,["game","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))}},hV=Mi(uV,[["__scopeId","data-v-c8583c72"]]),pV={class:"calendar-by-team"},mV={class:"playing-as-picker"},fV={class:"calendar-by-team__page"},gV={__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:t}){const a=e,i=s.ref(0),n=s.computed(()=>{let c=[];if(a.gamesPages.size>0){const d=Array.from(a.gamesPages.entries()).reduce((u,[h,m])=>{const p=Number(h),f=Number.isNaN(p)?h:`Jornada ${p<10?"0":""}${p}`,y=m.reduce((b,E)=>(b.push(...E),b),[]).filter(b=>i.value===0||i.value===1&&b.visiting_team.team_id===a.teamId?!0:i.value===2&&b.home_team.team_id===a.teamId);return y.length>0&&u.push({roundName:f,games:y}),u},[]);c.push(d)}return c});function r(c){t("action",c)}function o(c){document.querySelector("#opc0").classList.remove("selected"),document.querySelector("#opc1").classList.remove("selected"),document.querySelector("#opc2").classList.remove("selected"),i.value=c,document.querySelector("#opc"+c).classList.add("selected")}function l(c){let d=c;switch(c){case"PI1":d="Play In 1";break;case"PI2":d="Play In 2";break;case"R1":d="Repechaje";break;case"CFI":d="Cuartos de final - Ida";break;case"CFV":d="Cuartos de final - Vuelta";break;case"SFI":d="Semifinal - Ida";break;case"SFV":d="Semifinal - Vuelta";break;case"FI":d="Final - Ida";break;case"FV":d="Final - Vuelta";break}return d}return(c,d)=>(s.openBlock(),s.createElementBlock("div",pV,[s.createElementVNode("div",mV,[s.createElementVNode("div",{class:"playing-as-picker__type selected",id:"opc0",onClick:d[0]||(d[0]=u=>o(0))},"Todas"),s.createElementVNode("div",{class:"playing-as-picker__type",id:"opc1",onClick:d[1]||(d[1]=u=>o(1))},"Visitante"),s.createElementVNode("div",{class:"playing-as-picker__type",id:"opc2",onClick:d[2]||(d[2]=u=>o(2))},"Local")]),s.createVNode(s.unref(OT),{"is-pagination-visible":e.isPaginationVisible,items:n.value},{default:s.withCtx(({item:u})=>[s.createElementVNode("div",fV,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(u,(h,m)=>(s.openBlock(),s.createElementBlock("div",{key:m,class:"calendar-by-team__page__round"},[s.createElementVNode("div",{class:"calendar-by-team__page__round__round-name",style:s.normalizeStyle([{color:"white"},e.componentWidth<=425?"padding: 5px 10px":""])},s.toDisplayString(l(h.roundName)),5),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(h.games,p=>(s.openBlock(),s.createBlock(VT,{key:p.game_id,game:p,"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"])]))}},yV=Mi(gV,[["__scopeId","data-v-875ef70b"]]),_V="_image62Icon_1ybd3_2",bV="_imgChivasIcon_1ybd3_11",vV="_nameDesktop_1ybd3_18",SV="_nameMobile_1ybd3_31",wV="_homeTeam_1ybd3_43",TV="_sbado16De_1ybd3_54",CV="_gameDate_1ybd3_63",kV="_sab16092023_1ybd3_67",EV="_div_1ybd3_80",IV="_divscore_1ybd3_89",xV="_cst_1ybd3_99",NV="_hour_1ybd3_108",AV="_score_1ybd3_109",PV="_chivasTvCanal_1ybd3_120",OV="_gameStatus_1ybd3_132",BV="_matchInfo_1ybd3_143",DV="_image62Icon1_1ybd3_156",LV="_name_1ybd3_18",RV="_imgAtlasIcon_1ybd3_178",MV="_name1_1ybd3_185",FV="_awayTeam_1ybd3_197",VV="_matchCard_1ybd3_208",UV={image62Icon:_V,imgChivasIcon:bV,nameDesktop:vV,nameMobile:SV,homeTeam:wV,sbado16De:TV,gameDate:CV,sab16092023:kV,div:EV,divscore:IV,cst:xV,hour:NV,score:AV,chivasTvCanal:PV,gameStatus:OV,matchInfo:BV,image62Icon1:DV,name:LV,imgAtlasIcon:RV,name1:MV,awayTeam:FV,matchCard:VV},jV=["src"],zV=["src"],HV={key:0},qV=["src"],WV=["src"],GV={__name:"CardPreMatch",props:{game:{type:Object,default:()=>{}}},setup(e){const t=e,a=s.computed(()=>{const n={...t.game};return n.gameSchedule=t.game.schedule.split(":"),n.gameSchedule.pop(),n.gameSchedule=n.gameSchedule.join(":"),n});function i(n,r){const o=new Date(n);if(r==1){const l=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],c=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"];return`${l[o.getDay()]} ${o.getDate()} de ${c[o.getMonth()]}`}else return`${o.getDate()}-${o.getMonth()}-${o.getFullYear()}`}return(n,r)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(n.$style.matchCard)},[s.createElementVNode("div",{class:s.normalizeClass(n.$style.homeTeam),id:"container-home-team"},[s.createElementVNode("img",{class:s.normalizeClass(n.$style.image62Icon),alt:"",src:s.unref(yo)(a.value.home_team.team_id,150)},null,10,jV),s.createElementVNode("img",{class:s.normalizeClass(n.$style.imgChivasIcon),alt:"",src:s.unref(yo)(a.value.home_team.team_id)},null,10,zV),s.createElementVNode("h3",{class:s.normalizeClass(n.$style.nameDesktop),id:"team-name"},s.toDisplayString(a.value.home_team.colloquial_name),3),s.createElementVNode("h3",{class:s.normalizeClass(n.$style.nameMobile),id:"team-name"},s.toDisplayString(a.value.home_team.acronym),3)],2),a.value.game_status==4?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(n.$style.matchInfo),id:"container-match-info"},[s.createElementVNode("div",{class:s.normalizeClass(n.$style.sbado16De)},s.toDisplayString(i(a.value.date_time_utc,1)),3),s.createElementVNode("div",{class:s.normalizeClass(n.$style.sab16092023)},s.toDisplayString(i(a.value.date_time_utc,0)),3),s.createElementVNode("div",{class:s.normalizeClass(n.$style.hour)},[s.createElementVNode("div",{class:s.normalizeClass(n.$style.div)},s.toDisplayString(a.value.gameSchedule),3),s.createElementVNode("div",{class:s.normalizeClass(n.$style.cst)},"CST",2)],2),s.createElementVNode("div",{class:s.normalizeClass(n.$style.chivasTvCanal)},s.toDisplayString(a.value.tv_stations.join(", ")),3)],2)):(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(n.$style.matchInfo),id:"container-match-info"},[s.createElementVNode("div",{class:s.normalizeClass([n.$style.sbado16De,n.$style.gameDate])},s.toDisplayString(i(a.value.date_time_utc,1)),3),s.createElementVNode("div",{class:s.normalizeClass([n.$style.sab16092023,n.$style.gameDate])},s.toDisplayString(i(a.value.date_time_utc,0)),3),s.createElementVNode("div",{class:s.normalizeClass(n.$style.score)},[s.createElementVNode("div",{class:s.normalizeClass(n.$style.divscore)},s.toDisplayString(a.value.score.join(" - ")),3)],2),s.createElementVNode("div",{class:s.normalizeClass(n.$style.gameStatus)},[s.createTextVNode(" Finalizado "),a.value.penalties_score_home_team!=0||a.value.penalties_score_visiting_team!=0?(s.openBlock(),s.createElementBlock("span",HV," - Penales "+s.toDisplayString(a.value.penalties_score_home_team)+" - "+s.toDisplayString(a.value.penalties_score_visiting_team),1)):s.createCommentVNode("",!0)],2)],2)),s.createElementVNode("div",{class:s.normalizeClass(n.$style.awayTeam),id:"container-away-team"},[s.createElementVNode("img",{class:s.normalizeClass(n.$style.image62Icon1),alt:"",src:s.unref(yo)(a.value.visiting_team.team_id,150)},null,10,qV),s.createElementVNode("h3",{class:s.normalizeClass(n.$style.name),id:"team-name"},s.toDisplayString(a.value.visiting_team.colloquial_name),3),s.createElementVNode("img",{class:s.normalizeClass(n.$style.imgAtlasIcon),alt:"",src:s.unref(yo)(a.value.visiting_team.team_id)},null,10,WV),s.createElementVNode("h3",{class:s.normalizeClass(n.$style.name1),id:"team-name"},s.toDisplayString(a.value.visiting_team.acronym),3)],2)],2))}},KV={$style:UV},XV=Mi(GV,[["__cssModules",KV]]),JV={class:"calendar-by-game__carousel"},YV={components:{GscSwitchComponent:Jw,GSCGeneraltable:SL,GSCCalendarByGame:Mi({__name:"GSC-CalendarByGame",props:{height:{type:String,default:"fit-content"},width:{type:String,default:"100%"},rowHeight:{type:String,default:"fit-content"},oddRowColor:{type:String,default:"#172531"},evenRowColor:{type:String,default:"#0D1D29"},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},isRoundPickerVisible:{type:Boolean,default:!0},isPaginationVisible:{type:Boolean,default:!0},awaitForSeasons:{type:Boolean,default:!1},seasons:{type:Array,default:()=>[]},isCup:{type:Boolean,default:!1},isCupLegacy:{type:Boolean,default:!1},token:{type:String,default:""},pagesWithGames:{type:Array,default:()=>[]},maxGamesToShow:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},areRoundsVisible:{type:Boolean,default:!0},gamesPerMatchDay:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},itemsToShow:{type:Number,default:9},itemsToScroll:{type:Number,default:9},games:{type:Array,default:()=>null},teamId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},avoidTeamIdFilter:{type:Boolean,default:!1},areGamesCarouselType:{type:Boolean,default:!1},defaultGameId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}}},emits:["tournament-selected","change-teams","change-round","change-game-carousel","action"],setup(e,{emit:t}){const a=e;let i=null;const n=s.ref([]),r=s.ref({}),o=s.ref([]),l=s.ref(0),c=s.ref(null),d=s.ref({}),u=s.ref(new Map),h=s.ref(!1),m=s.ref(null),p=s.ref(null),f=s.ref(null),y=s.computed(()=>a.isCup),b=s.computed(()=>a.isCupLegacy),E=s.computed(()=>({height:a.height,width:a.width})),D=s.computed(()=>a.games?V(a.games):u.value.get(d.value.key)||[]);s.watch(()=>a.seasons,we=>{we&&we.length&&(h.value=!0,n.value=we.map(pe=>pe.id),A(we,!0))},{immediate:!0,deep:!0}),s.watch(()=>a.teamId,()=>{L()});async function M(we,pe,z=""){let K=z;try{const ue={};a.token&&(ue.Authorization=a.token),K||(K="https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",we.forEach((fe,me)=>{K+=`${me===0?"":"&"}seasons=${fe}`}));const{data:{data:ie,teams:ne}}=await xT.get(K,{headers:ue});return{seasonsAndGames:ie,seasonsAndTeams:ne}}catch(ue){if(pe>0)return M(we,pe-1,K);throw new Error(ue)}}function N(we){for(const pe of we)if(!n.value.includes(pe.season_id))return!0;return!1}async function A(we,pe){try{r.value={};let z=0;const{seasonsAndGames:K,seasonsAndTeams:ue}=await M(we.map(ne=>ne.id),3);if(pe&&N(K))return;K.forEach(ne=>{const{type:fe}=we.find(me=>me.id===ne.season_id);ne.type=fe,ne.games.forEach(me=>{me.season_id=ne.season_id}),fe===0&&(z=ne.season_id)}),m.value={seasonsGames:K};const{teams:ie}=ue.find(ne=>ne.season_id===z);p.value=ie,t("change-teams",ie),L()}catch(z){throw new Error(z)}}function L(){if(!p.value)return;const we=m.value&&m.value.seasonsGames?m.value.seasonsGames.map(pe=>{const z=pe.games.reduce((K,ue)=>{const ie={...ue};return ie.dateTimeMillis=new Date(ie.date_time_utc).valueOf(),ie.home_team=p.value.find(ne=>ne.team_id===ue.home_team),ie.visiting_team=p.value.find(ne=>ne.team_id===ue.visiting_team),a.teamId&&ie.home_team.team_id!==a.teamId&&ie.visiting_team.team_id!==a.teamId||(K[ue.matchday_abbreviation]?K[ue.matchday_abbreviation][ue.game_status===3?"canceled":ue.date]?K[ue.matchday_abbreviation][ue.game_status===3?"canceled":ue.date].push(ie):K[ue.matchday_abbreviation][ue.game_status===3?"canceled":ue.date]=[ie]:K[ue.matchday_abbreviation]={[ue.game_status===3?"canceled":ue.date]:[ie]}),K},{});for(let[K,ue]of Object.entries(z))z[K]=Object.entries(ue).map(([ie,ne])=>({date:ie,games:ne.sort((fe,me)=>fe.dateTimeMillis-me.dateTimeMillis)})),z[K].sort((ie,ne)=>ie.date<ne.date?-1:ie.date>ne.date?1:0);return{type:pe.type,weight:pe.type===0?0:pe.type===2?1:2,schedule:z}}):[];we.sort((pe,z)=>pe.weight-z.weight),r.value=we.reduce((pe,z)=>{for(const[K,ue]of Object.entries(z.schedule))if(z.type===0)if(y.value){const ie=K.replace("M",""),ne=ie;b.value?pe[LM[ie]||ne]=ue:pe[DM[K]||ne]=ue}else pe[Number(K.replace("M","")).toString()]=ue;else z.type===2?K.charAt(1)=="I"?pe[`PI${Number(K.replace("PI",""))}`]=ue:pe[`R${Number(K.replace("PO",""))}`]=ue:z.type===1&&(pe[BM[K]]=ue);return pe},{}),u.value=new Map,o.value=Array.from(Object.entries(r.value).reduce((pe,[z,K])=>{const ue=Number(z);let ie="";Number.isNaN(ue)?ie=z:ie=ue<10?`0${ue}`:z,pe.set(z,{key:z,value:ue,valueText:ie});const ne=K.reduce((me,ge)=>(ge.games.forEach(ee=>{ee.game_id===a.defaultGameId&&(f.value=z),ee.roundAbbreviation=Number.isNaN(ue)?ue:`J ${ue}`}),me=me.concat(ge.games),me),[]),fe=V(ne);return u.value.set(z,fe),pe},new Map).values())}function V(we){const pe=[];if(a.gamesPerMatchDay>0){let z=[];we.forEach((K,ue)=>{z.push(K),(ue+1)%a.gamesPerMatchDay===0&&(pe.push([...z]),z=[])}),z.length&&pe.push([...z])}else pe.push(we);return pe}async function $(we){try{const{data:pe}=await xT.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments");return pe}catch(pe){if(we>0)return $(we-1);throw new Error(pe)}}function U(){if(window.ResizeObserver)i=new ResizeObserver(()=>{l.value=c.value.clientWidth}),i.observe(c.value);else throw new Error("Resize observer not supported!")}function ae(we){d.value=we,t("change-round",we)}function oe(we){a.areGamesCarouselType&&t("change-game-carousel",we.selectedItem)}function Q(we){t("action",we),de(we)}function de(we){const pe="PLAY_RESUME",z="PLAY_GOALS",K=[607,608,12,55,54,35,14,52,15,53,466,477],ue=[12,55,"35_r","54_r"],{game_id:ie,season_id:ne}=we.game;let fe={seasonId:ne,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:1,gameIds:[ie],playerIds:[],goalkeeperIds:[],categoryIds:[],teamId:0,matchResult:[],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:""},objectPlaySync:null};we.action===pe?(fe.categoryIds=K,fe.advancedFilter.playListTitle="Resumen",t("openmedia",fe)):we.action===z&&(fe.categoryIds=ue,fe.advancedFilter.playListTitle="Goles",t("openmedia",fe))}async function Se(){try{if(!a.awaitForSeasons&&!a.games){const we=(await $(3)).find(K=>K._id===1),pe=we.seasons[0],z=[{id:pe.id,type:pe.type}];we&&we.tournament&&t("tournament-selected",we.tournament),pe.related_seasons&&pe.related_seasons.length&&z.push(...pe.related_seasons.map(K=>({id:K.id,type:K.type}))),await A(z,!1)}}catch(we){throw new Error(we)}}return s.onMounted(()=>{U()}),Se(),(we,pe)=>(s.openBlock(),s.createElementBlock("div",{ref_key:"calendarByGame",ref:c,class:"calendar-by-game",style:s.normalizeStyle(E.value)},[e.teamId&&!e.avoidTeamIdFilter?(s.openBlock(),s.createBlock(yV,{key:0,"full-tournament-schedule":r.value,"team-id":e.teamId,"is-landing-mode":!1,"row-height":e.rowHeight,"component-width":l.value,"games-pages":u.value,"is-pagination-visible":e.isPaginationVisible,"is-round-mode":e.isRoundMode,onAction:Q},null,8,["full-tournament-schedule","team-id","row-height","component-width","games-pages","is-pagination-visible","is-round-mode"])):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[e.areRoundsVisible&&o.value?(s.openBlock(),s.createBlock(QM,{key:0,"match-days":o.value,"is-landing-mode":e.isLandingMode,height:"48px","items-to-show":e.itemsToShow,"items-to-scroll":e.itemsToScroll,"component-width":l.value,"default-match-day-key":f.value,onChangeMatchDay:ae},null,8,["match-days","is-landing-mode","items-to-show","items-to-scroll","component-width","default-match-day-key"])):s.createCommentVNode("",!0),s.createElementVNode("div",JV,[D.value?(s.openBlock(),s.createBlock(s.unref(OT),{key:0,"is-pagination-visible":e.isPaginationVisible&&!e.areGamesCarouselType,items:e.areGamesCarouselType?D.value[0]:D.value,"are-navigation-arrows-visible":e.areGamesCarouselType?!e.areGamesCarouselType:e.isPaginationVisible,"wrap-around":e.areGamesCarouselType,"items-to-show":e.areGamesCarouselType?1.2:1,"is-main-slide-priority":e.areGamesCarouselType,"are-slides-arrows-visible":e.areGamesCarouselType,"slides-arrows-left-and-right":e.areGamesCarouselType?"30px":"0px","default-item-by-prop":e.areGamesCarouselType?{propName:"game_id",value:e.defaultGameId}:{},onInput:oe},{default:s.withCtx(({item:z})=>[e.areGamesCarouselType?(s.openBlock(),s.createBlock(XV,{key:0,game:z},null,8,["game"])):(s.openBlock(),s.createBlock(hV,{key:1,"games-per-page":z,"is-landing-mode":e.isLandingMode,"row-height":e.rowHeight,"component-width":l.value,"is-round-mode":e.isRoundMode,onAction:Q},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"])):s.createCommentVNode("",!0)])],64))],4))}},[["__scopeId","data-v-7f065e14"]])},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)}}},QV={class:"gsc-calendar-table"},ZV={class:"gsc-switch-container"},$V={class:"gsc-app-component"};function eU(e,t,a,i,n,r){const o=s.resolveComponent("GscSwitchComponent"),l=s.resolveComponent("GSCGeneraltable"),c=s.resolveComponent("GSCCalendarByGame");return s.openBlock(),s.createElementBlock("div",QV,[s.createElementVNode("div",ZV,[s.createVNode(o,{type:0,"font-family":"Poppins-Regular",buttons:["Mi posición","Calendario"],height:"40px","selected-option":n.selectedOpt,"font-size":a.componentWidth>=768?"16px":"14px",width:"355px",onInput:r.changeCategory},null,8,["selected-option","font-size","onInput"])]),s.createElementVNode("div",$V,[n.selectedOpt=="Mi posición"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createVNode(l,{isPaginationVisible:!0,"current-season-id":a.season.id,type:1,"await-for-season":!0,onOpenmedia:r.onOpenMedia,onOpenTableProfile:r.onOpenProfile},null,8,["current-season-id","onOpenmedia","onOpenTableProfile"]),s.createElementVNode("div",{onClick:t[0]||(t[0]=d=>this.$router.push({name:"table"})),class:"gsc-app-component-view-all"}," Ver todo ")],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createVNode(c,{onAction:r.onAction,onOpenmedia:r.onOpenMedia,width:"100%",token:n.tokenFree,seasons:a.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"]),s.createElementVNode("div",{onClick:t[1]||(t[1]=d=>this.$router.push({name:"calendar"})),class:"gsc-app-component-view-all"}," Ver todo ")],64))])])}const tU=si(YV,[["render",eU],["__scopeId","data-v-46b2c6d3"]]),aU={class:"match"},iU={class:"match__header"},nU={key:0,class:"match__final-tag"},rU={key:1,class:"match__final-tag__no-border"},sU={class:"match__tag"},oU={class:"match__body"},lU={class:"match__data"},cU={class:"match__acronym"},dU=["src"],uU={class:"match__score"},hU=["src"],pU={class:"match__acronym"},mU={class:"match__status"},sh=si({__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(t,a)=>{var i,n,r;return s.openBlock(),s.createElementBlock("section",aU,[s.createElementVNode("div",iU,[e.infoType=="postmatch"?(s.openBlock(),s.createElementBlock("div",nU,"FINAL ")):(s.openBlock(),s.createElementBlock("div",rU)),s.createElementVNode("div",sU,s.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),1)]),s.createElementVNode("div",oU,[s.createElementVNode("div",lU,[s.createElementVNode("div",cU,s.toDisplayString((i=e.data)==null?void 0:i.home_team_acronym),1),s.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.home_team+".png",alt:"team-img"},null,8,dU),s.createElementVNode("div",uU,[e.infoType=="postmatch"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createTextVNode(s.toDisplayString(e.data.score[0])+" - "+s.toDisplayString(e.data.score[1]),1)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString((n=e.data)==null?void 0:n.schedule.replace(":00","")),1)],64))]),s.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.visiting_team+".png",alt:"team-img"},null,8,hU),s.createElementVNode("div",pU,s.toDisplayString((r=e.data)==null?void 0:r.visiting_team_acronym),1)]),s.createElementVNode("div",mU,[e.infoType=="postmatch"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createTextVNode("Finalizado"+s.toDisplayString(e.penalScore?` - Penales ${e.penalScore}`:""),1)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode("CST")],64))])]),s.createElementVNode("div",{class:"match__button",onClick:a[0]||(a[0]=o=>t.$emit("clickMatch"))},"Analizar partido →")])}}},[["__scopeId","data-v-19fa994a"]]),fU=e=>(s.pushScopeId("data-v-48fd3198"),e=e(),s.popScopeId(),e),gU={class:"match"},yU={class:"match__header"},_U=fU(()=>s.createElementVNode("div",{class:"match__final-tag"},"FINAL",-1)),bU={class:"match__tag"},vU={class:"match__body"},SU={class:"match__data"},wU={class:"match__acronym"},TU=["src"],CU={class:"match__score"},kU=["src"],EU={class:"match__acronym"},IU={class:"match__status"},UT=si({__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(t,a)=>(s.openBlock(),s.createElementBlock("section",gU,[s.createElementVNode("div",yU,[_U,s.createElementVNode("div",bU,s.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),1)]),s.createElementVNode("div",vU,[s.createElementVNode("div",SU,[s.createElementVNode("div",wU,s.toDisplayString(e.data.home_team.acronym),1),s.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,TU),s.createElementVNode("div",CU,s.toDisplayString(e.data.score[0])+" - "+s.toDisplayString(e.data.score[1]),1),s.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,kU),s.createElementVNode("div",EU,s.toDisplayString(e.data.visiting_team.acronym),1)]),s.createElementVNode("div",IU,"Finalizado"+s.toDisplayString(e.penalScore?` - Penales ${e.penalScore}`:""),1)]),s.createElementVNode("div",{class:"match__button",onClick:a[0]||(a[0]=i=>t.$emit("clickMatch"))},"Analizar partido →")]))}},[["__scopeId","data-v-48fd3198"]]),xU=e=>(s.pushScopeId("data-v-1bb62bcb"),e=e(),s.popScopeId(),e),NU=["src"],AU=["src"],PU={class:"coming-match__body"},OU={class:"coming-match__data"},BU=["src"],DU={style:{"margin-top":"16px"}},LU={class:"coming-match__time"},RU=xU(()=>s.createElementVNode("div",{class:"coming-match__cst"},"CST",-1)),MU=["src"],fy=si({__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(t,a)=>{var i,n,r,o,l,c,d,u,h,m,p,f,y;return s.openBlock(),s.createElementBlock("section",{class:s.normalizeClass(["coming-match",{small:e.small}])},[s.createElementVNode("img",{class:s.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-150/"+((i=e.data)==null?void 0:i.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-150/"+((n=e.data)==null?void 0:n.home_team)+".png",alt:"team-img"},null,10,NU),s.createElementVNode("img",{class:s.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/"+((o=e.data)==null?void 0:o.visiting_team)+".png",alt:"team-img"},null,10,AU),s.createElementVNode("div",PU,[s.createElementVNode("div",{class:s.normalizeClass(["coming-match__date",{small:e.small}])},s.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),3),s.createElementVNode("div",OU,[s.createElementVNode("div",{class:s.normalizeClass(["coming-match__team",{small:e.small}])},[s.createElementVNode("img",{class:s.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/"+((c=e.data)==null?void 0:c.home_team)+".png",alt:"team-img"},null,10,BU),s.createElementVNode("div",{class:s.normalizeClass(["coming-match__acronym",{small:e.small}])},s.toDisplayString((d=e.data)==null?void 0:d.home_team_name),3)],2),s.createElementVNode("div",DU,[s.createElementVNode("div",LU,[e.data.game_status==1?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createTextVNode(s.toDisplayString((u=e.data)==null?void 0:u.score[0])+" - "+s.toDisplayString((h=e.data)==null?void 0:h.score[1]),1)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString((m=e.data)==null?void 0:m.schedule.replace(":00","")),1)],64))]),RU]),s.createElementVNode("div",{class:s.normalizeClass(["coming-match__team",{small:e.small}])},[s.createElementVNode("div",{class:s.normalizeClass(["coming-match__acronym",{small:e.small}])},s.toDisplayString((p=e.data)==null?void 0:p.visiting_team_name),3),s.createElementVNode("img",{class:s.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((f=e.data)==null?void 0:f.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((y=e.data)==null?void 0:y.visiting_team)+".png",alt:"team-img"},null,10,MU)],2)])]),s.createElementVNode("div",{class:s.normalizeClass(["coming-match__button",{small:e.small}]),onClick:a[0]||(a[0]=b=>t.$emit("clickMatch"))},"Analizar partido →",2)],2)}}},[["__scopeId","data-v-1bb62bcb"]]),FU=e=>(s.pushScopeId("data-v-fd22358e"),e=e(),s.popScopeId(),e),VU=["src"],UU=["src"],jU={class:"coming-match__body"},zU={class:"coming-match__data"},HU=["src"],qU={style:{"margin-top":"16px"}},WU={class:"coming-match__time"},GU=FU(()=>s.createElementVNode("div",{class:"coming-match__cst"},"CST",-1)),KU=["src"],jT=si({__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(t,a)=>{var i,n,r,o,l,c,d,u,h,m,p,f,y;return s.openBlock(),s.createElementBlock("section",{class:s.normalizeClass(["coming-match",{small:e.small}])},[s.createElementVNode("img",{class:s.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((i=e.data)==null?void 0:i.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((n=e.data)==null?void 0:n.home_team)+".png",alt:"team-img"},null,10,VU),s.createElementVNode("img",{class:s.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/"+((o=e.data)==null?void 0:o.visiting_team)+".png",alt:"team-img"},null,10,UU),s.createElementVNode("div",jU,[s.createElementVNode("div",{class:s.normalizeClass(["coming-match__date",{small:e.small}])},s.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),3),s.createElementVNode("div",zU,[s.createElementVNode("div",{class:s.normalizeClass(["coming-match__team",{small:e.small}])},[s.createElementVNode("img",{class:s.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/"+((c=e.data)==null?void 0:c.home_team)+".png",alt:"team-img"},null,10,HU),s.createElementVNode("div",{class:s.normalizeClass(["coming-match__acronym",{small:e.small}])},s.toDisplayString((d=e.data)==null?void 0:d.home_team_name),3)],2),s.createElementVNode("div",qU,[s.createElementVNode("div",WU,[e.data.game_status==1?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createTextVNode(s.toDisplayString((u=e.data)==null?void 0:u.score[0])+" - "+s.toDisplayString((h=e.data)==null?void 0:h.score[1]),1)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString((m=e.data)==null?void 0:m.schedule.replace(":00","")),1)],64))]),GU]),s.createElementVNode("div",{class:s.normalizeClass(["coming-match__team",{small:e.small}])},[s.createElementVNode("div",{class:s.normalizeClass(["coming-match__acronym",{small:e.small}])},s.toDisplayString((p=e.data)==null?void 0:p.visiting_team_name),3),s.createElementVNode("img",{class:s.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((f=e.data)==null?void 0:f.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((y=e.data)==null?void 0:y.visiting_team)+".png",alt:"team-img"},null,10,KU)],2)])]),s.createElementVNode("div",{class:s.normalizeClass(["coming-match__button",{small:e.small}]),onClick:a[0]||(a[0]=b=>t.$emit("clickMatch"))},"Analizar partido →",2)],2)}}},[["__scopeId","data-v-fd22358e"]]),XU=e=>(s.pushScopeId("data-v-7fbf71af"),e=e(),s.popScopeId(),e),JU={class:"quadrant-matches"},YU={class:"quadrant-matches__header"},QU={class:"quadrant-matches__title"},ZU=XU(()=>s.createElementVNode("span",null," →",-1)),$U={key:0,class:"quadrant-matches__body"},ej={class:"quadrant-matches__body",style:{"column-gap":"16px"}},tj={class:"quadrant-matches__body matches"},aj={key:0,class:"quadrant-matches__body"},ij={class:"quadrant-matches__body",style:{"column-gap":"16px"}},nj=si({__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 t=e;s.computed(()=>t.comingMatches[0]||{}),s.computed(()=>t.previousMatches[0]||{});const a=s.toRef(t,"componentWidth"),i=s.computed(()=>a.value<768);return(n,r)=>(s.openBlock(),s.createElementBlock("section",JU,[s.createElementVNode("div",YU,[s.createElementVNode("h2",QU,s.toDisplayString(e.isFull?"Partidos":"Mis partidos"),1),s.createElementVNode("button",{class:"quadrant-matches__button",onClick:r[0]||(r[0]=o=>n.$emit("clickCalendar"))},[s.createElementVNode("span",null,s.toDisplayString(e.isFull?"Calendario completo":"Mi calendario completo"),1),ZU])]),e.isFull?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[e.data.length>1?(s.openBlock(),s.createBlock(s.unref(wc),{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:s.withCtx(()=>[s.createElementVNode("div",tj,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.data,(o,l)=>(s.openBlock(),s.createBlock(fy,{key:l,data:o,small:"",onClickMatch:c=>n.$emit("clickMatch",o)},null,8,["data","onClickMatch"]))),128))])]),_:1})):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[i.value?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[Object.keys(e.data).length>0?(s.openBlock(),s.createBlock(s.unref(wc),{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:s.withCtx(()=>[s.createElementVNode("div",ij,[e.data[0].game_status==4?(s.openBlock(),s.createBlock(jT,{key:0,data:e.data[0],onClickMatch:r[9]||(r[9]=o=>n.$emit("clickMatch",e.data[0]))},null,8,["data"])):s.createCommentVNode("",!0),e.data[0].game_status!=4?(s.openBlock(),s.createBlock(UT,{key:1,data:e.data[0],onClickMatch:r[10]||(r[10]=o=>n.$emit("clickMatch",e.data[0]))},null,8,["data"])):s.createCommentVNode("",!0)])]),_:1})):s.createCommentVNode("",!0)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[Object.keys(e.data).length>0?(s.openBlock(),s.createElementBlock("div",aj,[e.data[0].game_status==4?(s.openBlock(),s.createBlock(jT,{key:0,data:e.data[0],onClickMatch:r[7]||(r[7]=o=>n.$emit("clickMatch",e.data[0]))},null,8,["data"])):s.createCommentVNode("",!0),e.data[0].game_status!=4?(s.openBlock(),s.createBlock(UT,{key:1,data:e.data[0],onClickMatch:r[8]||(r[8]=o=>n.$emit("clickMatch",e.data[0]))},null,8,["data"])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)],64))],64))],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[i.value?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[Object.keys(e.data).length>0?(s.openBlock(),s.createBlock(s.unref(wc),{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:s.withCtx(()=>[s.createElementVNode("div",ej,[s.createVNode(fy,{small:"",data:e.data.data.prematch,onClickMatch:r[4]||(r[4]=o=>n.$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?(s.openBlock(),s.createBlock(sh,{key:0,data:e.data.data.postmatch,onClickMatch:r[5]||(r[5]=o=>n.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"])):(s.openBlock(),s.createBlock(sh,{key:1,"info-type":"prematch",data:e.data.data.postmatch,onClickMatch:r[6]||(r[6]=o=>n.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"]))])]),_:1})):s.createCommentVNode("",!0)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[Object.keys(e.data).length>0?(s.openBlock(),s.createElementBlock("div",$U,[s.createVNode(fy,{data:e.data.data.prematch,onClickMatch:r[1]||(r[1]=o=>n.$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?(s.openBlock(),s.createBlock(sh,{key:0,data:e.data.data.postmatch,onClickMatch:r[2]||(r[2]=o=>n.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"])):(s.openBlock(),s.createBlock(sh,{key:1,"info-type":"prematch",data:e.data.data.postmatch,onClickMatch:r[3]||(r[3]=o=>n.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"]))])):s.createCommentVNode("",!0)],64))],64))]))}},[["__scopeId","data-v-7fbf71af"]]),rj={__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(t,a)=>(s.openBlock(),s.createElementBlock("main",null,[s.createVNode(nj,{data:e.data,"component-width":e.componentWidth,"is-full":e.isFull,onClickCalendar:a[0]||(a[0]=i=>t.$emit("clickCalendar")),onClickMatch:a[1]||(a[1]=i=>t.$emit("clickMatch",i)),"has-team":!e.isplayer},null,8,["data","component-width","is-full","has-team"])]))}},sj="_toniKroos_1mxz1_35",oj="_centralMidfielder_1mxz1_55",lj="_icnPlayIcon_1mxz1_75",cj="_verVideos_1mxz1_89",dj="_btnVideosOptions_1mxz1_109",uj="_btnVideosOptionsTeams_1mxz1_139",hj="_info_1mxz1_179",pj="_goalUnlock_1mxz1_203",mj="_teamsAmerica_1mxz1_229",fj="_imageIcon_1mxz1_249",gj="_imageIconTeam_1mxz1_271",yj="_playerTops_1mxz1_295",_j={toniKroos:sj,centralMidfielder:oj,icnPlayIcon:lj,verVideos:cj,btnVideosOptions:dj,btnVideosOptionsTeams:uj,info:hj,goalUnlock:pj,teamsAmerica:mj,imageIcon:fj,imageIconTeam:gj,playerTops:yj},bj=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},vj={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))}}},Sj=["src"],wj=["src"],Tj=["src"];function Cj(e,t,a,i,n,r){return s.openBlock(),s.createElementBlock("section",{class:s.normalizeClass(e.$style.playerTops),style:s.normalizeStyle(r.customMosaic),id:"player-mosaico",onClick:t[1]||(t[1]=o=>r.onPlayerTopsClick(a.data.player_id))},[s.createElementVNode("div",{class:s.normalizeClass(e.$style.info)},[s.createElementVNode("h3",{class:s.normalizeClass(e.$style.toniKroos),style:s.normalizeStyle(r.customNamePlayer)},s.toDisplayString(a.data.player_name),7),a.showPositionPlayer?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(e.$style.centralMidfielder),style:s.normalizeStyle(r.customNamePosition)},s.toDisplayString(a.data.player_position),7)):s.createCommentVNode("",!0),s.createElementVNode("button",{class:s.normalizeClass(this.isPlayer?e.$style.btnVideosOptions:e.$style.btnVideosOptionsTeams),style:s.normalizeStyle(r.customTotalCont),id:"button-actions",onClick:t[0]||(t[0]=o=>r.onButtonVideos(a.data))},[a.showIconVideo?(s.openBlock(),s.createElementBlock("img",{key:0,class:s.normalizeClass(e.$style.icnPlayIcon),src:a.iconPlay},null,10,Sj)):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(e.$style.verVideos),style:s.normalizeStyle(r.customTotal)},s.toDisplayString(a.data.player_stat)+" "+s.toDisplayString(a.data.category),7)],6)],2),s.createElementVNode("b",{style:s.normalizeStyle(r.customNumberTop),class:s.normalizeClass(e.$style.goalUnlock)},s.toDisplayString(a.data.top),7),a.showShieldTeam?(s.openBlock(),s.createElementBlock("img",{key:0,class:s.normalizeClass(e.$style.teamsAmerica),style:s.normalizeStyle(r.customShieldTeam),loading:"lazy",src:a.data.team_logo},null,14,wj)):s.createCommentVNode("",!0),s.createElementVNode("img",{style:s.normalizeStyle(r.customPhotoPlayerOrTeam),class:s.normalizeClass(this.isPlayer?e.$style.imageIcon:e.$style.imageIconTeam),loading:"lazy",src:a.data.player_photo},null,14,Tj)],6)}const kj={$style:_j},Ej=bj(vj,[["render",Cj],["__cssModules",kj]]),Ij=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},gy={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))}}},zT=()=>{s.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}))},HT=gy.setup;gy.setup=HT?(e,t)=>(zT(),HT(e,t)):zT;const xj=e=>(s.pushScopeId("data-v-fb269a1e"),e=e(),s.popScopeId(),e),Nj=["src"],Aj={key:1,class:"text"},Pj=["src"],Oj={class:"stats"},Bj=xj(()=>s.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),Dj={class:"numstats"},Lj={class:"leyend"};function Rj(e,t,a,i,n,r){return s.openBlock(),s.createElementBlock("div",null,[a.type==0?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["button",n.status&&a.typeOnOff&&"button-active"]),style:s.normalizeStyle([r.customStyle,n.status&&a.typeOnOff&&r.customActive]),onClick:t[0]||(t[0]=(...o)=>r.btnClick&&r.btnClick(...o))},[a.icon&&a.iconPosition.toLowerCase()==="left"?(s.openBlock(),s.createElementBlock("img",{key:0,class:"icon",style:s.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,Nj)):s.createCommentVNode("",!0),a.textValue?(s.openBlock(),s.createElementBlock("div",Aj,s.toDisplayString(a.textValue),1)):s.createCommentVNode("",!0),a.icon&&a.iconPosition.toLowerCase()==="right"?(s.openBlock(),s.createElementBlock("img",{key:2,class:"icon",style:s.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,Pj)):s.createCommentVNode("",!0)],6)):s.createCommentVNode("",!0),a.type==1?(s.openBlock(),s.createElementBlock("div",{key:1,class:"button-target",onClick:t[1]||(t[1]=(...o)=>r.btnClick&&r.btnClick(...o))},[s.createElementVNode("div",Oj,[Bj,s.createElementVNode("div",Dj,s.toDisplayString(a.textStat),1)]),s.createElementVNode("div",Lj,s.toDisplayString(a.textCategory),1)])):s.createCommentVNode("",!0)])}const Mj=Ij(gy,[["render",Rj],["__scopeId","data-v-fb269a1e"]]);function Fj(e){const t=s.ref({width:0,height:0});function a(){const i=e.value.getBoundingClientRect();t.value.width=i.width,t.value.height=i.height}return s.onMounted(()=>{a(),window.addEventListener("resize",a)}),s.onUnmounted(()=>{window.removeEventListener("resize",a)}),{elementSize:t}}const yy={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-Regular"},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(t){throw new Error(t)}}}},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)}}},qT=()=>{s.useCssVars(e=>({"0b58fe62":e.backgroundColor,"1350c043":e.widthCircle,a6fb272c:e.heightCircle}))},WT=yy.setup;yy.setup=WT?(e,t)=>(qT(),WT(e,t)):qT;const Vj={key:0,class:"text-left"},Uj=["width","src"],jj=["checked"],zj=["width","src"],Hj={key:3,class:"text-right"};function qj(e,t,a,i,n,r){return s.openBlock(),s.createElementBlock("div",{class:"gsc-switch-radio",style:s.normalizeStyle(r.customText)},[a.textOptionLeft!=""&&!a.hiddenLabels?(s.openBlock(),s.createElementBlock("span",Vj,s.toDisplayString(a.textOptionLeft),1)):s.createCommentVNode("",!0),a.iconA!=""?(s.openBlock(),s.createElementBlock("img",{key:1,width:a.widthIcons,src:a.iconA},null,8,Uj)):s.createCommentVNode("",!0),s.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:t[0]||(t[0]=(...o)=>r.handleSwitchChange&&r.handleSwitchChange(...o)),checked:n.OptionDefault},null,40,jj),s.createElementVNode("label",{for:"toggle-btn",style:s.normalizeStyle([r.customStyle,{"--circle-color":a.circleColorSwitch}])},null,4),a.iconB!=""?(s.openBlock(),s.createElementBlock("img",{key:2,width:a.widthIcons,src:a.iconB},null,8,zj)):s.createCommentVNode("",!0),a.textOptionRight!=""&&!a.hiddenLabels?(s.openBlock(),s.createElementBlock("span",Hj,s.toDisplayString(a.textOptionRight),1)):s.createCommentVNode("",!0)],4)}const _y={components:{GSCSlider:wc,GSCMosaicthebest:Ej,GscSwitchComponent:Jw,GSCButton:Mj,GSCRadioToggle:si(yy,[["render",qj],["__scopeId","data-v-d33948ae"]])},setup(){const e=s.ref("myDivRef"),{elementSize:t}=Fj(e);return{myDivRef:e,elementSize:t}},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"},season:{type:Number,default:1772},teamId:{type:Number,default:0}},watch:{async season(e,t){await this.getCategoryStats(e,1)}},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,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:{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 t=this.translateTopCategories(this.categorySelected),a=2,i=3;let n=[],r=0,o=0;this.isTeam?(r=e.player_id,o=i):(n=[e.player_id],o=a);const l={seasonId:this.season,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:o,gameIds:null,playerIds:n,goalkeeperIds:[],categoryIds:t,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){e==="Mi equipo"&&await this.getCategoryStats(this.season,0),e==="Liga MX"&&await this.getCategoryStats(this.season,1)},clickMosaic(e){this.$emit("boxinput",e)},clickMore(){this.$emit("more")},async changeType(e){this.optionSelected=e,e=="Equipos"?(await this.getCategoryStats(this.season,1),this.isTeam=!0):this.isTeam=!1},changeCategory(e){this.categoryName=e;const t=this.categories.find(a=>a.name===e);this.categorySelected=t.id},async getCategoryStats(e,t){try{let n={},r={},o=[];const l=Sc.create({headers:{Authorization:`${this.token}`}});var a={};if(t==0&&(a=await l.get(this.url+this.season+"/teams/"+this.teamId)),t==1&&(a=await l.get(this.url+e)),a&&a.data){a.data.teams.map(c=>{n[c[0]]={},n[c[0]].id=c[0],n[c[0]].name=c[1],n[c[0]].img=c[3],n[c[0]].abrv=c[2],n[c[0]].logo=c[3]}),a.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 i=1;a.data.tops.map(c=>{o[c.category?c.category:i]={};var d={},u={};c.teams.map(p=>{d[p[0]]={},d[p[0]].total=p[1],d[p[0]].id=n[p[0]].id,d[p[0]].name=n[p[0]].name,d[p[0]].img="https://az755631.vo.msecnd.net/teams-150/"+p[0]+".png",d[p[0]].logo="https://az755631.vo.msecnd.net/teams-80/"+p[0]+".png"}),c.players.map(p=>{u[p[0]]={},u[p[0]].total=p[1],u[p[0]].name=r[p[0]].name,u[p[0]].img=r[p[0]].img.replace("players-profile/","players-profile/"),u[p[0]].id=r[p[0]].id,u[p[0]].position=this.positions[r[p[0]].position-1].name,u[p[0]].logo=r[p[0]].logo});var h=[],m=[];for(const p in d)h.push(d[p]);for(const p in u)m.push(u[p]);h.sort((p,f)=>p.total<f.total?1:-1),m.sort((p,f)=>p.total<f.total?1:-1),o[c.category?c.category:i].top__players=m,o[c.category?c.category:i].top__teams=h,i++})}this.categorySelected=1,this.categoryData=o}catch(n){return Promise.reject(n)}}}},GT=()=>{s.useCssVars(e=>({"8efcba5e":e.backgroundColor,"2ebb39d2":e.fontFamily,"0b743874":e.fontSize,"6233e550":e.fontColor,"51d2595c":e.marginMosaic}))},KT=_y.setup;_y.setup=KT?(e,t)=>(GT(),KT(e,t)):GT;const Wj=e=>(s.pushScopeId("data-v-0f956c7f"),e=e(),s.popScopeId(),e),Gj={class:"gsc-best",ref:"myDivRef"},Kj={class:"gsc-best__line-bar-tools"},Xj={key:0,class:"gsc-best__line-bar-tools__title"},Jj=Wj(()=>s.createElementVNode("span",null,"Los mejores ",-1)),Yj={key:1,class:"gsc-best__line-bar-tools__titlefull"},Qj={class:"unit-items"},Zj={key:2,class:"gsc-best__line-bar-tools__tools"},$j={key:0,class:"gsc-best__line-bar-tools__tools__tabs"},ez={class:"gsc-best__line-bar-tools__tools__btn"},tz={key:0,class:"gsc-best__line-bar-tools-movil"},az={class:"gsc-best__line-bar-tools-movil__tabs"},iz={class:"gsc-best__categories"},nz={class:"gsc-best__players"};function rz(e,t,a,i,n,r){const o=s.resolveComponent("GSCRadioToggle"),l=s.resolveComponent("GSCButton"),c=s.resolveComponent("GscSwitchComponent"),d=s.resolveComponent("GSCMosaicthebest"),u=s.resolveComponent("GSCSlider");return s.openBlock(),s.createElementBlock("div",Gj,[s.createElementVNode("div",Kj,[i.elementSize.width>900?(s.openBlock(),s.createElementBlock("div",Xj,[Jj,e.optionSelected!=="Equipos"&&a.showSwitch?(s.openBlock(),s.createBlock(o,{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/"+a.teamId+".png",iconB:"https://az755631.vo.msecnd.net/todoelfut/1.png",textOptionLeft:"Mi equipo",textOptionRight:"Liga MX",onChange:r.ChangeRadio},null,8,["iconA","onChange"])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),i.elementSize.width<=900?(s.openBlock(),s.createElementBlock("div",Yj,[s.createElementVNode("span",{style:s.normalizeStyle(i.elementSize.width<=380?"font-size: 15px; margin-top:0px; width:60px;":"")},"Los mejores ",4),s.createElementVNode("span",Qj,[e.optionSelected!=="Equipos"&&a.showSwitch?(s.openBlock(),s.createBlock(o,{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/"+a.teamId+".png",iconB:"https://az755631.vo.msecnd.net/todoelfut/1.png",textOptionLeft:"Mi equipo",textOptionRight:"Liga MX",onChange:r.ChangeRadio},null,8,["iconA","onChange"])):s.createCommentVNode("",!0),s.createVNode(l,{style:{"margin-top":"4px"},width:"75px","text-value":"Ver más","font-color":i.elementSize.width<=680?"rgba(255,255,255, 0.7)":"#fff","font-size":i.elementSize.width<=680?"11px":"14px","text-decoration":"underline",onClick:r.clickMore},null,8,["font-color","font-size","onClick"])])])):s.createCommentVNode("",!0),i.elementSize.width>900?(s.openBlock(),s.createElementBlock("div",Zj,[i.elementSize.width>900?(s.openBlock(),s.createElementBlock("div",$j,[s.createVNode(c,{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-Regular",onInput:r.changeType,arrowsScrollHide:!1,arrowsPosition:"absolute"},null,8,["selected-option","onInput"])])):s.createCommentVNode("",!0),s.createElementVNode("div",ez,[s.createVNode(l,{width:"75px","text-value":"Ver más","font-size":"14px","text-decoration":"underline",onClick:r.clickMore},null,8,["onClick"]),s.createVNode(l,{width:"10px","text-value":"→","font-size":"14px","font-color":"#cbee6b",onClick:r.clickMore},null,8,["onClick"])])])):s.createCommentVNode("",!0)]),i.elementSize.width<=900?(s.openBlock(),s.createElementBlock("div",tz,[s.createElementVNode("div",az,[s.createVNode(c,{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-Regular",onInput:r.changeType},null,8,["selected-option","onInput"])])])):s.createCommentVNode("",!0),s.createElementVNode("div",iz,[s.createVNode(c,{type:2,arrow:!0,"font-family":"Poppins-Regular",buttons:e.categoriesDefault,height:"40px","selected-option":"Goles","font-size":i.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"])]),s.createElementVNode("div",nz,[s.createVNode(u,{pxScroll:777,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:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.topData,(h,m)=>(s.openBlock(),s.createElementBlock("div",{key:m,class:s.normalizeClass(["gsc-best__players__item",m==0?"margin-none":""])},[s.createVNode(d,{data:{player_id:h.id,player_name:h.name,player_position:h.position,player_stat:h.total,category:"Total",top:m<9?"0"+(m+1):m+1,team_logo:h.logo,player_photo:h.img},"show-shield-team":!0,"active-videos":!0,onClickMosaic:r.clickMosaic,onOpenmedia:r.onOpenMedia,namePlayerFontSize:"13px",namePositionFontSize:"10px",numbertopLeft:"-15px",numberFontFamily:"Oswald-SemiBold",totalFontSize:"12px",totalFont:"Poppins-Regular!important",totalHeight:"21px","is-player":!this.isTeam},null,8,["data","onClickMosaic","onOpenmedia","is-player"])],2))),128))]),_:1})])],512)}const sz=si(_y,[["render",rz],["__scopeId","data-v-0f956c7f"]]),bt=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},oz=e=>(s.pushScopeId("data-v-b9c574d2"),e=e(),s.popScopeId(),e),lz={key:0,class:"match-header__left"},cz={class:"match-header__img-container"},dz=["src"],uz={class:"match-header__img-container overlap"},hz=["src"],pz={class:"match-header__score"},mz={class:"match-header__date"},fz={key:0,xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",viewBox:"0 0 12 7",fill:"none"},gz=oz(()=>s.createElementVNode("path",{d:"M11 1L6 6L1 0.999999",stroke:"#9CA3AF","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),yz=[gz],_z={__name:"MatchHeader",props:{match:{type:Object,default:()=>({})},mobileClass:{type:String,default:""},clientWidth:{type:Number,default:0},hideArrow:{type:Boolean,default:!1}},setup(e){const t=e,a=s.computed(()=>{let r=[];return t.clientWidth>0&&(t.clientWidth<=450?r.push("match-header__acronyms__450"):t.clientWidth<=750?r.push("match-header__acronyms__750"):t.clientWidth<=850?r.push("match-header__acronyms__850"):r.push("match-header__acronyms")),r}),{match:i,mobileClass:n}=s.toRefs(t);return(r,o)=>{var l,c,d,u,h,m,p,f;return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["match-header",s.unref(n)])},[s.unref(i)?(s.openBlock(),s.createElementBlock("div",lz,[s.createElementVNode("div",cz,[s.createElementVNode("img",{class:"match-header__img",src:(c=(l=s.unref(i))==null?void 0:l.homeTeam)==null?void 0:c.logo},null,8,dz)]),s.createElementVNode("div",uz,[s.createElementVNode("img",{class:"match-header__img",src:(u=(d=s.unref(i))==null?void 0:d.awayTeam)==null?void 0:u.logo},null,8,hz)]),s.createElementVNode("div",{class:s.normalizeClass(["match-header__acronyms",a.value])},s.toDisplayString(`${(m=(h=s.unref(i))==null?void 0:h.homeTeam)==null?void 0:m.acronym} VS ${(f=(p=s.unref(i))==null?void 0:p.awayTeam)==null?void 0:f.acronym}`),3)])):s.createCommentVNode("",!0),s.createElementVNode("div",pz,s.toDisplayString(`${s.unref(i).score[0]} - ${s.unref(i).score[1]}`),1),s.createElementVNode("div",mz,[s.createElementVNode("span",null,s.toDisplayString(s.unref(i).date.split("-").reverse().join("/")),1),e.hideArrow?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("svg",fz,yz))])],2)}}},XT=bt(_z,[["__scopeId","data-v-b9c574d2"]]);function bz(){return JT().__VUE_DEVTOOLS_GLOBAL_HOOK__}function JT(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const vz=typeof Proxy=="function",Sz="devtools-plugin:setup",wz="plugin:settings:set";let Pc,by;function Tz(){var e;return Pc!==void 0||(typeof window<"u"&&window.performance?(Pc=!0,by=window.performance):typeof global<"u"&&!((e=global.perf_hooks)===null||e===void 0)&&e.performance?(Pc=!0,by=global.perf_hooks.performance):Pc=!1),Pc}function Cz(){return Tz()?by.now():Date.now()}class kz{constructor(t,a){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=a;const i={};if(t.settings)for(const o in t.settings){const l=t.settings[o];i[o]=l.defaultValue}const n=`__vue-devtools-plugin-settings__${t.id}`;let r=Object.assign({},i);try{const o=localStorage.getItem(n),l=JSON.parse(o);Object.assign(r,l)}catch{}this.fallbacks={getSettings(){return r},setSettings(o){try{localStorage.setItem(n,JSON.stringify(o))}catch{}r=o},now(){return Cz()}},a&&a.on(wz,(o,l)=>{o===this.plugin.id&&this.fallbacks.setSettings(l)}),this.proxiedOn=new Proxy({},{get:(o,l)=>this.target?this.target.on[l]:(...c)=>{this.onQueue.push({method:l,args:c})}}),this.proxiedTarget=new Proxy({},{get:(o,l)=>this.target?this.target[l]:l==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(l)?(...c)=>(this.targetQueue.push({method:l,args:c,resolve:()=>{}}),this.fallbacks[l](...c)):(...c)=>new Promise(d=>{this.targetQueue.push({method:l,args:c,resolve:d})})})}async setRealTarget(t){this.target=t;for(const a of this.onQueue)this.target.on[a.method](...a.args);for(const a of this.targetQueue)a.resolve(await this.target[a.method](...a.args))}}function Ez(e,t){const a=e,i=JT(),n=bz(),r=vz&&a.enableEarlyProxy;if(n&&(i.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!r))n.emit(Sz,e,t);else{const o=r?new kz(a,n):null;(i.__VUE_DEVTOOLS_PLUGINS__=i.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:a,setupFn:t,proxy:o}),o&&t(o.proxiedTarget)}}/*!
|
|
27
|
+
*/const na={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"}},BT={itemsToShow:{default:na.itemsToShow,type:Number},itemsToScroll:{default:na.itemsToScroll,type:Number},wrapAround:{default:na.wrapAround,type:Boolean},throttle:{default:na.throttle,type:Number},snapAlign:{default:na.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:na.transition,type:Number},breakpoints:{default:na.breakpoints,type:Object},autoplay:{default:na.autoplay,type:Number},pauseAutoplayOnHover:{default:na.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:na.mouseDrag,type:Boolean},touchDrag:{default:na.touchDrag,type:Boolean},dir:{default:na.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:na.i18n,type:Object},settings:{default(){return{}},type:Object}};function RM({config:e,slidesCount:t}){const{snapAlign:a,wrapAround:i,itemsToShow:n=1}=e;if(i)return Math.max(t-1,0);let r;switch(a){case"start":r=t-n;break;case"end":r=t-1;break;case"center":case"center-odd":r=t-Math.ceil((n-.5)/2);break;case"center-even":r=t-Math.ceil(n/2);break;default:r=0;break}return Math.max(r,0)}function MM({config:e,slidesCount:t}){const{wrapAround:a,snapAlign:i,itemsToShow:n=1}=e;let r=0;if(a||n>t)return r;switch(i){case"start":r=0;break;case"end":r=n-1;break;case"center":case"center-odd":r=Math.floor((n-1)/2);break;case"center-even":r=Math.floor((n-2)/2);break;default:r=0;break}return r}function dy({val:e,max:t,min:a}){return t<a?e:Math.min(Math.max(e,a),t)}function FM({config:e,currentSlide:t,slidesCount:a}){const{snapAlign:i,wrapAround:n,itemsToShow:r=1}=e;let o=t;switch(i){case"center":case"center-odd":o-=(r-1)/2;break;case"center-even":o-=(r-2)/2;break;case"end":o-=r-1;break}return n?o:dy({val:o,max:a-r,min:0})}function DT(e){return e?e.reduce((t,a)=>{var i;return a.type===s.Fragment?[...t,...DT(a.children)]:((i=a.type)===null||i===void 0?void 0:i.name)==="CarouselSlide"?[...t,a]:t},[]):[]}function uy({val:e,max:t,min:a=0}){return e>t?uy({val:e-(t+1),max:t,min:a}):e<a?uy({val:e+(t+1),max:t,min:a}):e}function VM(e,t){let a;return t?function(...i){const n=this;a||(e.apply(n,i),a=!0,setTimeout(()=>a=!1,t))}:e}function UM(e,t){let a;return function(...i){a&&clearTimeout(a),a=setTimeout(()=>{e(...i),a=null},t)}}function jM(e="",t={}){return Object.entries(t).reduce((a,[i,n])=>a.replace(`{${i}}`,String(n)),e)}var zM=s.defineComponent({name:"ARIA",setup(){const e=s.inject("config",s.reactive(Object.assign({},na))),t=s.inject("currentSlide",s.ref(0)),a=s.inject("slidesCount",s.ref(0));return()=>s.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},jM(e.i18n.itemXofY,{currentSlide:t.value+1,slidesCount:a.value}))}}),HM=s.defineComponent({name:"Carousel",props:BT,setup(e,{slots:t,emit:a,expose:i}){var n;const r=s.ref(null),o=s.ref([]),l=s.ref(0),c=s.ref(0),d=s.reactive(Object.assign({},na));let u=Object.assign({},na),h;const m=s.ref((n=e.modelValue)!==null&&n!==void 0?n:0),p=s.ref(0),f=s.ref(0),y=s.ref(0),b=s.ref(0);let E,D;s.provide("config",d),s.provide("slidesCount",c),s.provide("currentSlide",m),s.provide("maxSlide",y),s.provide("minSlide",b),s.provide("slideWidth",l);function M(){h=Object.assign({},e.breakpoints),u=Object.assign(Object.assign(Object.assign({},u),e),{i18n:Object.assign(Object.assign({},u.i18n),e.i18n),breakpoints:void 0}),A(u)}function N(){if(!h||!Object.keys(h).length)return;const J=Object.keys(h).map(Oe=>Number(Oe)).sort((Oe,We)=>+We-+Oe);let De=Object.assign({},u);J.some(Oe=>{const We=window.matchMedia(`(min-width: ${Oe}px)`).matches;return We&&(De=Object.assign(Object.assign({},De),h[Oe])),We}),A(De)}function A(J){Object.entries(J).forEach(([De,Oe])=>d[De]=Oe)}const L=UM(()=>{N(),V()},16);function V(){if(!r.value)return;const J=r.value.getBoundingClientRect();l.value=J.width/d.itemsToShow}function $(){c.value<=0||(f.value=Math.ceil((c.value-1)/2),y.value=RM({config:d,slidesCount:c.value}),b.value=MM({config:d,slidesCount:c.value}),d.wrapAround||(m.value=dy({val:m.value,max:y.value,min:b.value})))}s.onMounted(()=>{s.nextTick(()=>V()),setTimeout(()=>V(),1e3),N(),ie(),window.addEventListener("resize",L,{passive:!0}),a("init")}),s.onUnmounted(()=>{D&&clearTimeout(D),E&&clearInterval(E),window.removeEventListener("resize",L,{passive:!0})});let U=!1;const ae={x:0,y:0},oe={x:0,y:0},Q=s.reactive({x:0,y:0}),de=s.ref(!1),Se=s.ref(!1),we=()=>{de.value=!0},pe=()=>{de.value=!1};function z(J){["INPUT","TEXTAREA","SELECT"].includes(J.target.tagName)||(U=J.type==="touchstart",U||J.preventDefault(),!(!U&&J.button!==0||fe.value)&&(ae.x=U?J.touches[0].clientX:J.clientX,ae.y=U?J.touches[0].clientY:J.clientY,document.addEventListener(U?"touchmove":"mousemove",K,!0),document.addEventListener(U?"touchend":"mouseup",ue,!0)))}const K=VM(J=>{Se.value=!0,oe.x=U?J.touches[0].clientX:J.clientX,oe.y=U?J.touches[0].clientY:J.clientY;const De=oe.x-ae.x,Oe=oe.y-ae.y;Q.y=Oe,Q.x=De},d.throttle);function ue(){const J=d.dir==="rtl"?-1:1,De=Math.sign(Q.x)*.4,Oe=Math.round(Q.x/l.value+De)*J;if(Oe&&!U){const We=gt=>{gt.stopPropagation(),window.removeEventListener("click",We,!0)};window.addEventListener("click",We,!0)}me(m.value-Oe),Q.x=0,Q.y=0,Se.value=!1,document.removeEventListener(U?"touchmove":"mousemove",K,!0),document.removeEventListener(U?"touchend":"mouseup",ue,!0)}function ie(){!d.autoplay||d.autoplay<=0||(E=setInterval(()=>{d.pauseAutoplayOnHover&&de.value||ge()},d.autoplay))}function ne(){E&&(clearInterval(E),E=null),ie()}const fe=s.ref(!1);function me(J){const De=d.wrapAround?J:dy({val:J,max:y.value,min:b.value});m.value===De||fe.value||(a("slide-start",{slidingToIndex:J,currentSlideIndex:m.value,prevSlideIndex:p.value,slidesCount:c.value}),fe.value=!0,p.value=m.value,m.value=De,D=setTimeout(()=>{if(d.wrapAround){const Oe=uy({val:De,max:y.value,min:0});Oe!==m.value&&(m.value=Oe,a("loop",{currentSlideIndex:m.value,slidingToIndex:J}))}a("update:modelValue",m.value),a("slide-end",{currentSlideIndex:m.value,prevSlideIndex:p.value,slidesCount:c.value}),fe.value=!1,ne()},d.transition))}function ge(){me(m.value+d.itemsToScroll)}function ee(){me(m.value-d.itemsToScroll)}const re={slideTo:me,next:ge,prev:ee};s.provide("nav",re),s.provide("isSliding",fe);const X=s.computed(()=>FM({config:d,currentSlide:m.value,slidesCount:c.value}));s.provide("slidesToScroll",X);const R=s.computed(()=>{const J=d.dir==="rtl"?-1:1,De=X.value*l.value*J;return{transform:`translateX(${Q.x-De}px)`,transition:`${fe.value?d.transition:0}ms`,margin:d.wrapAround?`0 -${c.value*l.value}px`:"",width:"100%"}});function he(){M(),N(),$(),V(),ne()}Object.keys(BT).forEach(J=>{["modelValue"].includes(J)||s.watch(()=>e[J],he)}),s.watch(()=>e.modelValue,J=>{J!==m.value&&me(Number(J))}),s.watch(c,$),a("before-init"),M();const ve={config:d,slidesCount:c,slideWidth:l,next:ge,prev:ee,slideTo:me,currentSlide:m,maxSlide:y,minSlide:b,middleSlide:f};i({updateBreakpointsConfigs:N,updateSlidesData:$,updateSlideWidth:V,initDefaultConfigs:M,restartCarousel:he,slideTo:me,next:ge,prev:ee,nav:re,data:ve});const Re=t.default||t.slides,qe=t.addons,Ge=s.reactive(ve);return()=>{const J=DT(Re==null?void 0:Re(Ge)),De=(qe==null?void 0:qe(Ge))||[];J.forEach((Ye,Ze)=>Ye.props.index=Ze);let Oe=J;if(d.wrapAround){const Ye=J.map((Bt,rt)=>s.cloneVNode(Bt,{index:-J.length+rt,isClone:!0,key:`clone-before-${rt}`})),Ze=J.map((Bt,rt)=>s.cloneVNode(Bt,{index:J.length+rt,isClone:!0,key:`clone-after-${rt}`}));Oe=[...Ye,...J,...Ze]}o.value=J,c.value=Math.max(J.length,1);const We=s.h("ol",{class:"carousel__track",style:R.value,onMousedownCapture:d.mouseDrag?z:null,onTouchstartPassiveCapture:d.touchDrag?z:null},Oe),gt=s.h("div",{class:"carousel__viewport"},We);return s.h("section",{ref:r,class:{carousel:!0,"is-sliding":fe.value,"is-dragging":Se.value,"is-hover":de.value,"carousel--rtl":d.dir==="rtl"},dir:d.dir,"aria-label":d.i18n.ariaGallery,tabindex:"0",onMouseenter:we,onMouseleave:pe},[gt,De,s.h(zM)])}}}),hy;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(hy||(hy={}));const qM={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 WM(e){return e in hy}const py=e=>{const t=s.inject("config",s.reactive(Object.assign({},na))),a=String(e.name),i=`icon${a.charAt(0).toUpperCase()+a.slice(1)}`;if(!a||typeof a!="string"||!WM(a))return;const n=qM[a],r=s.h("path",{d:n}),o=t.i18n[i]||e.title||a,l=s.h("title",o);return s.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":o},[l,r])};py.props={name:String,title:String};const GM=(e,{slots:t,attrs:a})=>{const{next:i,prev:n}=t||{},r=s.inject("config",s.reactive(Object.assign({},na))),o=s.inject("maxSlide",s.ref(1)),l=s.inject("minSlide",s.ref(1)),c=s.inject("currentSlide",s.ref(1)),d=s.inject("nav",{}),{dir:u,wrapAround:h,i18n:m}=r,p=u==="rtl",f=s.h("button",{type:"button",class:["carousel__prev",!h&&c.value<=l.value&&"carousel__prev--disabled",a==null?void 0:a.class],"aria-label":m.ariaPreviousSlide,onClick:d.prev},(n==null?void 0:n())||s.h(py,{name:p?"arrowRight":"arrowLeft"})),y=s.h("button",{type:"button",class:["carousel__next",!h&&c.value>=o.value&&"carousel__next--disabled",a==null?void 0:a.class],"aria-label":m.ariaNextSlide,onClick:d.next},(i==null?void 0:i())||s.h(py,{name:p?"arrowLeft":"arrowRight"}));return[f,y]};var KM=s.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:t}){const a=s.inject("config",s.reactive(Object.assign({},na))),i=s.inject("currentSlide",s.ref(0)),n=s.inject("slidesToScroll",s.ref(0)),r=s.inject("isSliding",s.ref(!1)),o=()=>e.index===i.value,l=()=>e.index===i.value-1,c=()=>e.index===i.value+1,d=()=>{const u=Math.floor(n.value),h=Math.ceil(n.value+a.itemsToShow-1);return e.index>=u&&e.index<=h};return()=>{var u;return s.h("li",{style:{width:`${100/a.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":d(),"carousel__slide--active":o(),"carousel__slide--prev":l(),"carousel__slide--next":c(),"carousel__slide--sliding":r.value},"aria-hidden":!d()},(u=t.default)===null||u===void 0?void 0:u.call(t))}}});const Mi=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},XM={__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:t}){const a=e,i=s.computed(()=>{const l={"background-color":a.backgroundColor,height:a.height};return a.matchDay.key===a.matchDaySelected.key&&(l["border-bottom"]=`solid 1px ${a.bottomLineColor}`,l["background-color"]=a.selectedMatchDayBackgroundColor),a.isLandingMode||(l["border-right"]="solid 1px rgba(255, 255, 255, 0.1)"),l}),n=s.computed(()=>({color:a.numberColor,"font-family":a.numberFontFamily,"font-size":a.numberFontSize})),r=s.computed(()=>({color:a.textColor,"font-family":a.textFontFamily,"font-size":a.textFontSize}));function o(l){t("click-match-day",l)}return(l,c)=>(s.openBlock(),s.createElementBlock("div",{class:"match-day",style:s.normalizeStyle({...i.value}),onClick:c[0]||(c[0]=d=>o(e.matchDay))},[s.createElementVNode("div",{class:"match-day__value",style:s.normalizeStyle(n.value)},s.toDisplayString(e.matchDay.valueText),5),Number.isNaN(e.matchDay.value)?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",{key:0,class:"match-day__text",style:s.normalizeStyle([e.isLandingMode?"margin-top:3px":"margin-top:4px",r.value])},s.toDisplayString(e.isLandingMode||e.componentWidth<=425?"JOR":"JORNADA"),5))],4))}},JM=Mi(XM,[["__scopeId","data-v-687d929a"]]),YM={__name:"MatchDayPicker",props:{matchDays:{type:Array,default:()=>[]},isLandingMode:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#183143"},numberColor:{type:String,default:"white"},numberFontFamily:{type:String,default:"sans-serif"},numberFontSize:{type:String,default:"14px"},textColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"8px"},bottomLineColor:{type:String,default:"#cbee6b"},selectedMatchDayBackgroundColor:{type:String,default:"#243b4c"},height:{type:String,default:"fit-content"},itemsToShow:{type:Number,default:9},itemsToScroll:{type:Number,default:9},defaultMatchDayKey:{type:[String,null],default:""},componentWidth:{type:Number,default:0}},emits:["change-match-day"],setup(e,{emit:t}){const a=e;s.useCssVars(d=>({"2c74e7d9":r.value,"2c73d099":o.value}));const i=s.ref(null),n=s.computed(()=>({itemsToShow:a.itemsToShow,itemsToScroll:a.itemsToScroll,snapAlign:"start"})),r=s.computed(()=>i.value.data.currentSlide.value==0?"none":"inline"),o=s.computed(()=>i.value.data.currentSlide.value==i.value.data.maxSlide.value?"none":"inline"),l=s.ref({});s.watch(()=>a.matchDays,d=>{if(d&&d.length){const u=d.find(h=>h.key===a.defaultMatchDayKey);l.value=u||d[0],t("change-match-day",l.value)}},{immediate:!0});function c(d){l.value=d,t("change-match-day",l.value)}return(d,u)=>(s.openBlock(),s.createElementBlock("div",{class:"match-day-picker",style:s.normalizeStyle(e.isLandingMode?"border-top-left-radius: 9px; border-top-right-radius: 9px;":"margin-bottom:12px")},[s.createVNode(s.unref(HM),s.mergeProps(n.value,{ref_key:"matchDayPickerCarousel",ref:i}),{addons:s.withCtx(()=>[s.createVNode(s.unref(GM))]),default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.matchDays,h=>(s.openBlock(),s.createBlock(s.unref(KM),{key:h.key},{default:s.withCtx(()=>[s.createVNode(JM,s.mergeProps(a,{"match-day":h,"match-day-selected":l.value,"is-landing-mode":e.isLandingMode,"component-width":e.componentWidth,onClickMatchDay:c}),null,16,["match-day","match-day-selected","is-landing-mode","component-width"])]),_:2},1024))),128))]),_:1},16)],4))}},QM=Mi(YM,[["__scopeId","data-v-523ebbb9"]]);function yo(e,t=80){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-"}${t}/${e}.png`}function LT(e){if(typeof e=="string"){let t=e.replace("M","J ");return t=t.replace("PO1","CFI"),t=t.replace("PO2","CFV"),t=t.replace("PO3","SFI"),t=t.replace("PO4","SFV"),t=t.replace("PO5","FI"),t=t.replace("PO6","FV"),t}}function ZM(e){let t="";return e.game_status!=4&&(t+="Finalizado"),(e.penalties_score_home_team!=0||e.penalties_score_visiting_team!=0)&&(t+=" - Penales "+e.penalties_score_home_team+" - "+e.penalties_score_visiting_team),t}const $M={class:"game-info__teams"},eF={class:"game-info__teams__team__logo"},tF=["src"],aF={class:"game-info__teams__detail"},iF={key:0,class:"game-info__teams__detail__pre-game"},nF={class:"game-info__teams__team__logo away"},rF=["src"],sF={key:0},oF={key:0},lF={key:1},cF={__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 t=e,a=s.computed(()=>{const d=new Date(t.game.dateTimeMillis),u=d.getHours(),h=d.getMinutes();return`${u<10?`0${u}`:u}:${h<10?`0${h}`:h}`}),i=s.computed(()=>{let d="120px";return(t.isLandingMode||t.isAcronymVisible)&&(d="70px"),{"min-width":d}}),n=s.computed(()=>({"font-size":t.namesFontSize,"font-family":t.namesFontFamily,color:t.colorPrimary})),r=s.computed(()=>({"font-size":t.additionalInfoFontSize,"font-family":t.additionalInfoFontFamily,color:t.colorSecondary})),o=s.computed(()=>({"font-size":t.scoreFontSize,"font-family":t.scoreFontFamily,color:t.colorPrimary})),l=s.computed(()=>({"font-size":t.timeZoneFontSize,"font-family":t.namesFontFamily,color:t.colorPrimary})),c=s.computed(()=>({"font-size":t.timeFontSize,"font-family":t.namesFontFamily,color:t.colorPrimary}));return(d,u)=>(s.openBlock(),s.createElementBlock("div",{class:"game-info",style:s.normalizeStyle(e.isLandingMode?"gap:5px":"")},[s.createElementVNode("div",$M,[s.createElementVNode("div",{class:"game-info__teams__team",style:s.normalizeStyle(i.value)},[s.createElementVNode("div",{class:"game-info__teams__team__name",style:s.normalizeStyle(n.value)},s.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.home_team.acronym:e.game.home_team.colloquial_name),5),s.createElementVNode("div",eF,[s.createElementVNode("img",{src:s.unref(yo)(e.game.home_team.team_id),alt:""},null,8,tF)])],4),s.createElementVNode("div",aF,[e.game.game_status===4&&!e.game.is_live?(s.openBlock(),s.createElementBlock("div",iF,[s.createElementVNode("div",null,[s.createElementVNode("span",{style:s.normalizeStyle(c.value)},s.toDisplayString(a.value),5),s.createTextVNode(),s.createElementVNode("span",{style:s.normalizeStyle(l.value)},"CST",4)])])):(s.openBlock(),s.createElementBlock("div",{key:1,class:"game-info__teams__detail__score",style:s.normalizeStyle(o.value)},[s.createElementVNode("span",null,s.toDisplayString(e.game.score[0])+" - "+s.toDisplayString(e.game.score[1]),1)],4))]),s.createElementVNode("div",{class:"game-info__teams__team away",style:s.normalizeStyle(i.value)},[s.createElementVNode("div",nF,[s.createElementVNode("img",{src:s.unref(yo)(e.game.visiting_team.team_id),alt:""},null,8,rF)]),s.createElementVNode("div",{class:"game-info__teams__team__name",style:s.normalizeStyle(n.value)},s.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.visiting_team.acronym:e.game.visiting_team.colloquial_name),5)],4)]),s.createElementVNode("div",{class:"game-info__status",style:s.normalizeStyle([r.value,e.isLandingMode?"line-height: normal":""])},[e.game.game_status===4&&!e.game.is_live?(s.openBlock(),s.createElementBlock("span",sF,[e.isTelevisionVisible?(s.openBlock(),s.createElementBlock("span",oF,s.toDisplayString(e.game.tv_stations.join(", ")),1)):s.createCommentVNode("",!0)])):(s.openBlock(),s.createElementBlock("span",lF,s.toDisplayString(s.unref(ZM)(e.game)),1))],4)],4))}},RT=Mi(cF,[["__scopeId","data-v-2b206f6a"]]),MT=e=>(s.pushScopeId("data-v-e2fc9ed0"),e=e(),s.popScopeId(),e),dF={class:"game-status"},uF={key:0,class:"game-status__day__live"},hF=MT(()=>s.createElementVNode("span",null,"LIVE",-1)),pF=MT(()=>s.createElementVNode("span",{class:"dot"},null,-1)),mF=[hF,pF],fF={key:0,class:"game-status__round"},gF={__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 t=e,a=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],i=s.computed(()=>{let o="";if(t.dateTimeMillis){const l=new Date(t.dateTimeMillis);o=`${l.getDate()} ${a[l.getMonth()]}`}return o}),n=s.computed(()=>({"font-size":t.fontSize})),r=s.computed(()=>{let o=[];return t.isLive?o.push("live"):t.status!==1&&o.push("pre-match"),o});return(o,l)=>(s.openBlock(),s.createElementBlock("div",dF,[s.createElementVNode("div",{class:s.normalizeClass(["game-status__day",r.value]),style:s.normalizeStyle(n.value)},[e.isLive?(s.openBlock(),s.createElementBlock("div",uF,mF)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(i.value),1)],64))],6),e.isRoundMode?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",fF,s.toDisplayString(e.roundAbbreviation),1))]))}},FT=Mi(gF,[["__scopeId","data-v-e2fc9ed0"]]),Fi={SHOW_GAME_EVENTS:"SHOW_GAME_EVENTS",PLAY_GOALS:"PLAY_GOALS",PLAY_RESUME:"PLAY_RESUME",NOTIFICATION:"NOTIFICATION",STATISTICS:"STATISTICS"},yF=e=>(s.pushScopeId("data-v-5711c5a6"),e=e(),s.popScopeId(),e),_F={class:"actions"},bF={class:"actions__row"},vF=yF(()=>s.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[s.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"}),s.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"}),s.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)),SF=[vF],wF={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},TF=["fill"],CF={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},kF=["fill"],EF={__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:t}){const a=e,i=s.computed(()=>({backgroundColor:a.iconBackgroundColor,borderColor:a.iconBorderColor}));function n(r){t("action",r)}return(r,o)=>(s.openBlock(),s.createElementBlock("div",_F,[s.createElementVNode("div",bF,[s.createElementVNode("div",{class:"actions__button rounded",style:s.normalizeStyle(i.value),onClick:o[0]||(o[0]=l=>n(s.unref(Fi).STATISTICS))},SF,4),e.showPlayButton&&e.hasVideo?(s.openBlock(),s.createElementBlock("div",{key:0,class:"actions__button rounded",style:s.normalizeStyle(i.value),onClick:o[1]||(o[1]=l=>n(s.unref(Fi).PLAY_RESUME))},[(s.openBlock(),s.createElementBlock("svg",wF,[s.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:a.iconColor},null,8,TF)]))],4)):s.createCommentVNode("",!0),e.gameStatus===4444&&!e.isLive?(s.openBlock(),s.createElementBlock("div",{key:1,class:"actions__button",onClick:o[2]||(o[2]=l=>n(s.unref(Fi).NOTIFICATION))},[(s.openBlock(),s.createElementBlock("svg",CF,[s.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:a.iconColor},null,8,kF)]))])):s.createCommentVNode("",!0)])]))}},IF=Mi(EF,[["__scopeId","data-v-5711c5a6"]]),my=e=>(s.pushScopeId("data-v-643ec896"),e=e(),s.popScopeId(),e),xF={class:"actions"},NF={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},AF=["fill"],PF={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},OF=["fill"],BF=my(()=>s.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[s.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"}),s.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"}),s.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)),DF=[BF],LF={key:0,class:"actions__videos"},RF={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},MF=["fill"],FF={key:1,class:"actions__videos__thumbnails"},VF=my(()=>s.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__goals"},null,-1)),UF=my(()=>s.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__summary"},null,-1)),jF={height:24,width:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},zF=["stroke"],HF={__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:t}){const a=e,i=s.computed(()=>({backgroundColor:a.iconBackgroundColor,borderColor:a.iconBorderColor})),n=s.computed(()=>{const c=[];return a.componentWidth<540&&c.push("mobile"),c}),r=s.computed(()=>a.componentWidth>730),o=s.computed(()=>({color:a.thumbnailColor,fontFamily:a.thumbnailFontFamily,fontSize:a.thumbnailFontSize}));function l(c){t("action",c)}return(c,d)=>(s.openBlock(),s.createElementBlock("div",xF,[s.createElementVNode("div",{class:s.normalizeClass(["actions__buttons",n.value])},[e.gameStatus===4444&&!e.isLive&&!r.value?(s.openBlock(),s.createElementBlock("div",{key:0,class:"actions__button",onClick:d[0]||(d[0]=u=>l(s.unref(Fi).NOTIFICATION))},[(s.openBlock(),s.createElementBlock("svg",NF,[s.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:a.iconColor},null,8,AF)]))])):s.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo&&!r.value?(s.openBlock(),s.createElementBlock("div",{key:1,class:"actions__button rounded",style:s.normalizeStyle(i.value),onClick:d[1]||(d[1]=u=>l(s.unref(Fi).PLAY_RESUME))},[(s.openBlock(),s.createElementBlock("svg",PF,[s.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:a.iconColor},null,8,OF)]))],4)):s.createCommentVNode("",!0),s.createElementVNode("div",{class:"actions__button rounded",style:s.normalizeStyle(i.value),onClick:d[2]||(d[2]=u=>l(s.unref(Fi).STATISTICS))},DF,4)],2),r.value?(s.openBlock(),s.createElementBlock("div",LF,[e.gameStatus===4444&&!e.isLive?(s.openBlock(),s.createElementBlock("div",{key:0,class:"actions__button",onClick:d[3]||(d[3]=u=>l(s.unref(Fi).NOTIFICATION))},[(s.openBlock(),s.createElementBlock("svg",RF,[s.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:a.iconColor},null,8,MF)]))])):s.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo?(s.openBlock(),s.createElementBlock("div",FF,[s.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:d[4]||(d[4]=u=>l(s.unref(Fi).PLAY_GOALS))},[VF,s.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:s.normalizeStyle(o.value)}," Goles ",4)]),s.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:d[5]||(d[5]=u=>l(s.unref(Fi).PLAY_RESUME))},[UF,s.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:s.normalizeStyle(o.value)}," Resumen ",4)])])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),(e.gameStatus!==4||e.isLive)&&e.hasActions?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["actions__button expand",{"rotated-180":e.areEventsVisible,mobile:e.componentWidth<540}]),onClick:d[6]||(d[6]=u=>l(s.unref(Fi).SHOW_GAME_EVENTS))},[(s.openBlock(),s.createElementBlock("svg",jF,[s.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,zF)]))],2)):(s.openBlock(),s.createElementBlock("div",{key:2,class:s.normalizeClass(["actions__button expand",{"rotated-180":!1,mobile:e.componentWidth<540}])},null,2))]))}},qF=Mi(HF,[["__scopeId","data-v-643ec896"]]),rh=e=>(s.pushScopeId("data-v-8af393ec"),e=e(),s.popScopeId(),e),WF={class:"row-landing__game-status"},GF={class:"row-landing__game-actions"},KF={class:"row-full__game-status"},XF={class:"row-full__game-info"},JF={key:0},YF={class:"row-full__game-actions"},QF={class:"game-events-container"},ZF=rh(()=>s.createElementVNode("div",{class:"separator"},null,-1)),$F=rh(()=>s.createElementVNode("div",null,null,-1)),eV={class:"game-events__data"},tV={class:"game-events__data__team"},aV=["src"],iV={class:"game-events__data__team__event__text"},nV={class:"game-events__data__team away"},rV={class:"game-events__data__team__event__text"},sV=["src"],oV=rh(()=>s.createElementVNode("div",null,null,-1)),lV=rh(()=>s.createElementVNode("div",null,null,-1)),cV={__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:t}){const a=e,i={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"},n=s.ref(!1),r=s.ref(!1),o=s.computed(()=>{const y={homeTeam:[],awayTeam:[]};return a.game&&a.game.game_status!==4&&!a.game.is_live&&a.game.minutes&&(y.homeTeam.push(...p(a.game.minutes.home_goals_minutes,i.GOAL)),y.homeTeam.push(...p(a.game.minutes.home_red_cards_minutes,i.RED_CARD)),y.homeTeam.push(...p(a.game.minutes.home_yellow_cards_minutes,i.YELLOW_CARD)),y.awayTeam.push(...p(a.game.minutes.visiting_goals_minutes,i.GOAL)),y.awayTeam.push(...p(a.game.minutes.away_red_cards_minutes,i.RED_CARD)),y.awayTeam.push(...p(a.game.minutes.away_yellow_cards_minutes,i.YELLOW_CARD))),y}),l=s.computed(()=>{const y=o.value.homeTeam.length,b=o.value.awayTeam.length;return y+b>0}),c=s.computed(()=>({"background-color":a.backgroundColor})),d=s.computed(()=>({height:a.height})),u=s.computed(()=>{const y={game:[],events:[]};return a.componentWidth<500?(y.events.push("break-point-3"),y.game.push("break-point-2")):a.componentWidth<730?(y.game.push("break-point-2"),y.events.push("break-point-2")):a.componentWidth<910&&(y.game.push("break-point-1"),y.events.push("break-point-1")),y}),h=s.computed(()=>({isLandingMode:a.isLandingMode,game:a.game,colorPrimary:"#fff",colorSecondary:"#fff",namesFontSize:"12px",timeFontSize:"12px",timeZoneFontSize:"8px",scoreFontSize:"13px",namesFontFamily:"sans-serif",scoreFontFamily:"sans-serif",additionalInfoFontFamily:"sans-serif",additionalInfoFontSize:"9px"})),m=s.computed(()=>({"font-size":a.televisionFontSize,"font-family":a.televisionFontFamily,color:a.televisionColor}));s.watch(()=>a.componentWidth,y=>{r.value=y<910});function p(y,b){return y.map(E=>({iconUrl:b,text:E}))}function f(y){y===Fi.SHOW_GAME_EVENTS?n.value=!n.value:t("action",{action:y,game:a.game})}return(y,b)=>e.isLandingMode?(s.openBlock(),s.createElementBlock("div",{key:0,class:"row-landing",style:s.normalizeStyle(c.value)},[s.createVNode(RT,{game:e.game,"is-landing-mode":e.isLandingMode},null,8,["game","is-landing-mode"]),s.createElementVNode("div",WF,[s.createVNode(FT,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":s.unref(LT)(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"])]),s.createElementVNode("div",GF,[s.createVNode(IF,{"is-live":!!e.game.is_live,"has-video":!!e.game.has_video,"game-status":e.game.game_status,"show-play-button":!0,onAction:f},null,8,["is-live","has-video","game-status"])])],4)):(s.openBlock(),s.createElementBlock("div",{key:1,class:"row-full-container",style:s.normalizeStyle(c.value)},[s.createElementVNode("div",{class:s.normalizeClass(["row-full",u.value.game]),style:s.normalizeStyle(d.value)},[s.createElementVNode("div",KF,[s.createVNode(FT,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":s.unref(LT)(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"])]),s.createElementVNode("div",XF,[s.createVNode(RT,s.mergeProps(h.value,{"is-television-visible":r.value,game:e.game,"is-landing-mode":e.isLandingMode,"is-acronym-visible":e.componentWidth<540}),null,16,["is-television-visible","game","is-landing-mode","is-acronym-visible"])]),e.componentWidth>=910?(s.openBlock(),s.createElementBlock("div",{key:0,class:"row-full__television",style:s.normalizeStyle(m.value)},[!r.value&&(e.game.game_status===4||e.game.is_live)?(s.openBlock(),s.createElementBlock("span",JF,s.toDisplayString(e.game.tv_stations.join(", ")),1)):s.createCommentVNode("",!0)],4)):s.createCommentVNode("",!0),s.createElementVNode("div",YF,[s.createVNode(qF,{"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":n.value,"component-width":e.componentWidth,onAction:f},null,8,["is-live","has-video","has-actions","game-status","are-events-visible","component-width"])])],6),s.createVNode(s.Transition,null,{default:s.withCtx(()=>[s.withDirectives(s.createElementVNode("div",QF,[ZF,s.createElementVNode("div",{class:s.normalizeClass(["game-events",u.value.events])},[$F,s.createElementVNode("div",eV,[s.createElementVNode("div",tV,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.value.homeTeam,(E,D)=>(s.openBlock(),s.createElementBlock("div",{key:`h${D}`,class:"game-events__data__team__event"},[s.createElementVNode("img",{src:E.iconUrl},null,8,aV),s.createElementVNode("div",iV,s.toDisplayString(E.text),1)]))),128))]),s.createElementVNode("div",nV,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.value.awayTeam,(E,D)=>(s.openBlock(),s.createElementBlock("div",{key:`a${D}`,class:"game-events__data__team__event"},[s.createElementVNode("div",rV,s.toDisplayString(E.text),1),s.createElementVNode("img",{src:E.iconUrl},null,8,sV)]))),128))])]),oV,lV],2)],512),[[s.vShow,n.value]])]),_:1})],4))}},VT=Mi(cV,[["__scopeId","data-v-8af393ec"]]),dV={class:"calendar-table"},uV={__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:t}){const a=e;function i(r){return r%2===0?a.evenRowColor:a.oddRowColor}function n(r){t("action",r)}return(r,o)=>(s.openBlock(),s.createElementBlock("div",dV,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.gamesPerPage,(l,c)=>(s.openBlock(),s.createBlock(VT,{key:l.game_id,game:l,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":i(c),"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:n},null,8,["game","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))}},hV=Mi(uV,[["__scopeId","data-v-c8583c72"]]),pV={class:"calendar-by-team"},mV={class:"playing-as-picker"},fV={class:"calendar-by-team__page"},gV={__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:t}){const a=e,i=s.ref(0),n=s.computed(()=>{let c=[];if(a.gamesPages.size>0){const d=Array.from(a.gamesPages.entries()).reduce((u,[h,m])=>{const p=Number(h),f=Number.isNaN(p)?h:`Jornada ${p<10?"0":""}${p}`,y=m.reduce((b,E)=>(b.push(...E),b),[]).filter(b=>i.value===0||i.value===1&&b.visiting_team.team_id===a.teamId?!0:i.value===2&&b.home_team.team_id===a.teamId);return y.length>0&&u.push({roundName:f,games:y}),u},[]);c.push(d)}return c});function r(c){t("action",c)}function o(c){document.querySelector("#opc0").classList.remove("selected"),document.querySelector("#opc1").classList.remove("selected"),document.querySelector("#opc2").classList.remove("selected"),i.value=c,document.querySelector("#opc"+c).classList.add("selected")}function l(c){let d=c;switch(c){case"PI1":d="Play In 1";break;case"PI2":d="Play In 2";break;case"R1":d="Repechaje";break;case"CFI":d="Cuartos de final - Ida";break;case"CFV":d="Cuartos de final - Vuelta";break;case"SFI":d="Semifinal - Ida";break;case"SFV":d="Semifinal - Vuelta";break;case"FI":d="Final - Ida";break;case"FV":d="Final - Vuelta";break}return d}return(c,d)=>(s.openBlock(),s.createElementBlock("div",pV,[s.createElementVNode("div",mV,[s.createElementVNode("div",{class:"playing-as-picker__type selected",id:"opc0",onClick:d[0]||(d[0]=u=>o(0))},"Todas"),s.createElementVNode("div",{class:"playing-as-picker__type",id:"opc1",onClick:d[1]||(d[1]=u=>o(1))},"Visitante"),s.createElementVNode("div",{class:"playing-as-picker__type",id:"opc2",onClick:d[2]||(d[2]=u=>o(2))},"Local")]),s.createVNode(s.unref(OT),{"is-pagination-visible":e.isPaginationVisible,items:n.value},{default:s.withCtx(({item:u})=>[s.createElementVNode("div",fV,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(u,(h,m)=>(s.openBlock(),s.createElementBlock("div",{key:m,class:"calendar-by-team__page__round"},[s.createElementVNode("div",{class:"calendar-by-team__page__round__round-name",style:s.normalizeStyle([{color:"white"},e.componentWidth<=425?"padding: 5px 10px":""])},s.toDisplayString(l(h.roundName)),5),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(h.games,p=>(s.openBlock(),s.createBlock(VT,{key:p.game_id,game:p,"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"])]))}},yV=Mi(gV,[["__scopeId","data-v-875ef70b"]]),_V="_image62Icon_1ybd3_2",bV="_imgChivasIcon_1ybd3_11",vV="_nameDesktop_1ybd3_18",SV="_nameMobile_1ybd3_31",wV="_homeTeam_1ybd3_43",TV="_sbado16De_1ybd3_54",CV="_gameDate_1ybd3_63",kV="_sab16092023_1ybd3_67",EV="_div_1ybd3_80",IV="_divscore_1ybd3_89",xV="_cst_1ybd3_99",NV="_hour_1ybd3_108",AV="_score_1ybd3_109",PV="_chivasTvCanal_1ybd3_120",OV="_gameStatus_1ybd3_132",BV="_matchInfo_1ybd3_143",DV="_image62Icon1_1ybd3_156",LV="_name_1ybd3_18",RV="_imgAtlasIcon_1ybd3_178",MV="_name1_1ybd3_185",FV="_awayTeam_1ybd3_197",VV="_matchCard_1ybd3_208",UV={image62Icon:_V,imgChivasIcon:bV,nameDesktop:vV,nameMobile:SV,homeTeam:wV,sbado16De:TV,gameDate:CV,sab16092023:kV,div:EV,divscore:IV,cst:xV,hour:NV,score:AV,chivasTvCanal:PV,gameStatus:OV,matchInfo:BV,image62Icon1:DV,name:LV,imgAtlasIcon:RV,name1:MV,awayTeam:FV,matchCard:VV},jV=["src"],zV=["src"],HV={key:0},qV=["src"],WV=["src"],GV={__name:"CardPreMatch",props:{game:{type:Object,default:()=>{}}},setup(e){const t=e,a=s.computed(()=>{const n={...t.game};return n.gameSchedule=t.game.schedule.split(":"),n.gameSchedule.pop(),n.gameSchedule=n.gameSchedule.join(":"),n});function i(n,r){const o=new Date(n);if(r==1){const l=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],c=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"];return`${l[o.getDay()]} ${o.getDate()} de ${c[o.getMonth()]}`}else return`${o.getDate()}-${o.getMonth()}-${o.getFullYear()}`}return(n,r)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(n.$style.matchCard)},[s.createElementVNode("div",{class:s.normalizeClass(n.$style.homeTeam),id:"container-home-team"},[s.createElementVNode("img",{class:s.normalizeClass(n.$style.image62Icon),alt:"",src:s.unref(yo)(a.value.home_team.team_id,150)},null,10,jV),s.createElementVNode("img",{class:s.normalizeClass(n.$style.imgChivasIcon),alt:"",src:s.unref(yo)(a.value.home_team.team_id)},null,10,zV),s.createElementVNode("h3",{class:s.normalizeClass(n.$style.nameDesktop),id:"team-name"},s.toDisplayString(a.value.home_team.colloquial_name),3),s.createElementVNode("h3",{class:s.normalizeClass(n.$style.nameMobile),id:"team-name"},s.toDisplayString(a.value.home_team.acronym),3)],2),a.value.game_status==4?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(n.$style.matchInfo),id:"container-match-info"},[s.createElementVNode("div",{class:s.normalizeClass(n.$style.sbado16De)},s.toDisplayString(i(a.value.date_time_utc,1)),3),s.createElementVNode("div",{class:s.normalizeClass(n.$style.sab16092023)},s.toDisplayString(i(a.value.date_time_utc,0)),3),s.createElementVNode("div",{class:s.normalizeClass(n.$style.hour)},[s.createElementVNode("div",{class:s.normalizeClass(n.$style.div)},s.toDisplayString(a.value.gameSchedule),3),s.createElementVNode("div",{class:s.normalizeClass(n.$style.cst)},"CST",2)],2),s.createElementVNode("div",{class:s.normalizeClass(n.$style.chivasTvCanal)},s.toDisplayString(a.value.tv_stations.join(", ")),3)],2)):(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(n.$style.matchInfo),id:"container-match-info"},[s.createElementVNode("div",{class:s.normalizeClass([n.$style.sbado16De,n.$style.gameDate])},s.toDisplayString(i(a.value.date_time_utc,1)),3),s.createElementVNode("div",{class:s.normalizeClass([n.$style.sab16092023,n.$style.gameDate])},s.toDisplayString(i(a.value.date_time_utc,0)),3),s.createElementVNode("div",{class:s.normalizeClass(n.$style.score)},[s.createElementVNode("div",{class:s.normalizeClass(n.$style.divscore)},s.toDisplayString(a.value.score.join(" - ")),3)],2),s.createElementVNode("div",{class:s.normalizeClass(n.$style.gameStatus)},[s.createTextVNode(" Finalizado "),a.value.penalties_score_home_team!=0||a.value.penalties_score_visiting_team!=0?(s.openBlock(),s.createElementBlock("span",HV," - Penales "+s.toDisplayString(a.value.penalties_score_home_team)+" - "+s.toDisplayString(a.value.penalties_score_visiting_team),1)):s.createCommentVNode("",!0)],2)],2)),s.createElementVNode("div",{class:s.normalizeClass(n.$style.awayTeam),id:"container-away-team"},[s.createElementVNode("img",{class:s.normalizeClass(n.$style.image62Icon1),alt:"",src:s.unref(yo)(a.value.visiting_team.team_id,150)},null,10,qV),s.createElementVNode("h3",{class:s.normalizeClass(n.$style.name),id:"team-name"},s.toDisplayString(a.value.visiting_team.colloquial_name),3),s.createElementVNode("img",{class:s.normalizeClass(n.$style.imgAtlasIcon),alt:"",src:s.unref(yo)(a.value.visiting_team.team_id)},null,10,WV),s.createElementVNode("h3",{class:s.normalizeClass(n.$style.name1),id:"team-name"},s.toDisplayString(a.value.visiting_team.acronym),3)],2)],2))}},KV={$style:UV},XV=Mi(GV,[["__cssModules",KV]]),JV={class:"calendar-by-game__carousel"},YV={components:{GscSwitchComponent:Jw,GSCGeneraltable:SL,GSCCalendarByGame:Mi({__name:"GSC-CalendarByGame",props:{height:{type:String,default:"fit-content"},width:{type:String,default:"100%"},rowHeight:{type:String,default:"fit-content"},oddRowColor:{type:String,default:"#172531"},evenRowColor:{type:String,default:"#0D1D29"},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},isRoundPickerVisible:{type:Boolean,default:!0},isPaginationVisible:{type:Boolean,default:!0},awaitForSeasons:{type:Boolean,default:!1},seasons:{type:Array,default:()=>[]},isCup:{type:Boolean,default:!1},isCupLegacy:{type:Boolean,default:!1},token:{type:String,default:""},pagesWithGames:{type:Array,default:()=>[]},maxGamesToShow:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},areRoundsVisible:{type:Boolean,default:!0},gamesPerMatchDay:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},itemsToShow:{type:Number,default:9},itemsToScroll:{type:Number,default:9},games:{type:Array,default:()=>null},teamId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},avoidTeamIdFilter:{type:Boolean,default:!1},areGamesCarouselType:{type:Boolean,default:!1},defaultGameId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}}},emits:["tournament-selected","change-teams","change-round","change-game-carousel","action"],setup(e,{emit:t}){const a=e;let i=null;const n=s.ref([]),r=s.ref({}),o=s.ref([]),l=s.ref(0),c=s.ref(null),d=s.ref({}),u=s.ref(new Map),h=s.ref(!1),m=s.ref(null),p=s.ref(null),f=s.ref(null),y=s.computed(()=>a.isCup),b=s.computed(()=>a.isCupLegacy),E=s.computed(()=>({height:a.height,width:a.width})),D=s.computed(()=>a.games?V(a.games):u.value.get(d.value.key)||[]);s.watch(()=>a.seasons,we=>{we&&we.length&&(h.value=!0,n.value=we.map(pe=>pe.id),A(we,!0))},{immediate:!0,deep:!0}),s.watch(()=>a.teamId,()=>{L()});async function M(we,pe,z=""){let K=z;try{const ue={};a.token&&(ue.Authorization=a.token),K||(K="https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",we.forEach((fe,me)=>{K+=`${me===0?"":"&"}seasons=${fe}`}));const{data:{data:ie,teams:ne}}=await xT.get(K,{headers:ue});return{seasonsAndGames:ie,seasonsAndTeams:ne}}catch(ue){if(pe>0)return M(we,pe-1,K);throw new Error(ue)}}function N(we){for(const pe of we)if(!n.value.includes(pe.season_id))return!0;return!1}async function A(we,pe){try{r.value={};let z=0;const{seasonsAndGames:K,seasonsAndTeams:ue}=await M(we.map(ne=>ne.id),3);if(pe&&N(K))return;K.forEach(ne=>{const{type:fe}=we.find(me=>me.id===ne.season_id);ne.type=fe,ne.games.forEach(me=>{me.season_id=ne.season_id}),fe===0&&(z=ne.season_id)}),m.value={seasonsGames:K};const{teams:ie}=ue.find(ne=>ne.season_id===z);p.value=ie,t("change-teams",ie),L()}catch(z){throw new Error(z)}}function L(){if(!p.value)return;const we=m.value&&m.value.seasonsGames?m.value.seasonsGames.map(pe=>{const z=pe.games.reduce((K,ue)=>{const ie={...ue};return ie.dateTimeMillis=new Date(ie.date_time_utc).valueOf(),ie.home_team=p.value.find(ne=>ne.team_id===ue.home_team),ie.visiting_team=p.value.find(ne=>ne.team_id===ue.visiting_team),a.teamId&&ie.home_team.team_id!==a.teamId&&ie.visiting_team.team_id!==a.teamId||(K[ue.matchday_abbreviation]?K[ue.matchday_abbreviation][ue.game_status===3?"canceled":ue.date]?K[ue.matchday_abbreviation][ue.game_status===3?"canceled":ue.date].push(ie):K[ue.matchday_abbreviation][ue.game_status===3?"canceled":ue.date]=[ie]:K[ue.matchday_abbreviation]={[ue.game_status===3?"canceled":ue.date]:[ie]}),K},{});for(let[K,ue]of Object.entries(z))z[K]=Object.entries(ue).map(([ie,ne])=>({date:ie,games:ne.sort((fe,me)=>fe.dateTimeMillis-me.dateTimeMillis)})),z[K].sort((ie,ne)=>ie.date<ne.date?-1:ie.date>ne.date?1:0);return{type:pe.type,weight:pe.type===0?0:pe.type===2?1:2,schedule:z}}):[];we.sort((pe,z)=>pe.weight-z.weight),r.value=we.reduce((pe,z)=>{for(const[K,ue]of Object.entries(z.schedule))if(z.type===0)if(y.value){const ie=K.replace("M",""),ne=ie;b.value?pe[LM[ie]||ne]=ue:pe[DM[K]||ne]=ue}else pe[Number(K.replace("M","")).toString()]=ue;else z.type===2?K.charAt(1)=="I"?pe[`PI${Number(K.replace("PI",""))}`]=ue:pe[`R${Number(K.replace("PO",""))}`]=ue:z.type===1&&(pe[BM[K]]=ue);return pe},{}),u.value=new Map,o.value=Array.from(Object.entries(r.value).reduce((pe,[z,K])=>{const ue=Number(z);let ie="";Number.isNaN(ue)?ie=z:ie=ue<10?`0${ue}`:z,pe.set(z,{key:z,value:ue,valueText:ie});const ne=K.reduce((me,ge)=>(ge.games.forEach(ee=>{ee.game_id===a.defaultGameId&&(f.value=z),ee.roundAbbreviation=Number.isNaN(ue)?ue:`J ${ue}`}),me=me.concat(ge.games),me),[]),fe=V(ne);return u.value.set(z,fe),pe},new Map).values())}function V(we){const pe=[];if(a.gamesPerMatchDay>0){let z=[];we.forEach((K,ue)=>{z.push(K),(ue+1)%a.gamesPerMatchDay===0&&(pe.push([...z]),z=[])}),z.length&&pe.push([...z])}else pe.push(we);return pe}async function $(we){try{const{data:pe}=await xT.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments");return pe}catch(pe){if(we>0)return $(we-1);throw new Error(pe)}}function U(){if(window.ResizeObserver)i=new ResizeObserver(()=>{l.value=c.value.clientWidth}),i.observe(c.value);else throw new Error("Resize observer not supported!")}function ae(we){d.value=we,t("change-round",we)}function oe(we){a.areGamesCarouselType&&t("change-game-carousel",we.selectedItem)}function Q(we){t("action",we),de(we)}function de(we){const pe="PLAY_RESUME",z="PLAY_GOALS",K=[607,608,12,55,54,35,14,52,15,53,466,477],ue=[12,55,"35_r","54_r"],{game_id:ie,season_id:ne}=we.game;let fe={seasonId:ne,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:1,gameIds:[ie],playerIds:[],goalkeeperIds:[],categoryIds:[],teamId:0,matchResult:[],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:""},objectPlaySync:null};we.action===pe?(fe.categoryIds=K,fe.advancedFilter.playListTitle="Resumen",t("openmedia",fe)):we.action===z&&(fe.categoryIds=ue,fe.advancedFilter.playListTitle="Goles",t("openmedia",fe))}async function Se(){try{if(!a.awaitForSeasons&&!a.games){const we=(await $(3)).find(K=>K._id===1),pe=we.seasons[0],z=[{id:pe.id,type:pe.type}];we&&we.tournament&&t("tournament-selected",we.tournament),pe.related_seasons&&pe.related_seasons.length&&z.push(...pe.related_seasons.map(K=>({id:K.id,type:K.type}))),await A(z,!1)}}catch(we){throw new Error(we)}}return s.onMounted(()=>{U()}),Se(),(we,pe)=>(s.openBlock(),s.createElementBlock("div",{ref_key:"calendarByGame",ref:c,class:"calendar-by-game",style:s.normalizeStyle(E.value)},[e.teamId&&!e.avoidTeamIdFilter?(s.openBlock(),s.createBlock(yV,{key:0,"full-tournament-schedule":r.value,"team-id":e.teamId,"is-landing-mode":!1,"row-height":e.rowHeight,"component-width":l.value,"games-pages":u.value,"is-pagination-visible":e.isPaginationVisible,"is-round-mode":e.isRoundMode,onAction:Q},null,8,["full-tournament-schedule","team-id","row-height","component-width","games-pages","is-pagination-visible","is-round-mode"])):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[e.areRoundsVisible&&o.value?(s.openBlock(),s.createBlock(QM,{key:0,"match-days":o.value,"is-landing-mode":e.isLandingMode,height:"48px","items-to-show":e.itemsToShow,"items-to-scroll":e.itemsToScroll,"component-width":l.value,"default-match-day-key":f.value,onChangeMatchDay:ae},null,8,["match-days","is-landing-mode","items-to-show","items-to-scroll","component-width","default-match-day-key"])):s.createCommentVNode("",!0),s.createElementVNode("div",JV,[D.value?(s.openBlock(),s.createBlock(s.unref(OT),{key:0,"is-pagination-visible":e.isPaginationVisible&&!e.areGamesCarouselType,items:e.areGamesCarouselType?D.value[0]:D.value,"are-navigation-arrows-visible":e.areGamesCarouselType?!e.areGamesCarouselType:e.isPaginationVisible,"wrap-around":e.areGamesCarouselType,"items-to-show":e.areGamesCarouselType?1.2:1,"is-main-slide-priority":e.areGamesCarouselType,"are-slides-arrows-visible":e.areGamesCarouselType,"slides-arrows-left-and-right":e.areGamesCarouselType?"30px":"0px","default-item-by-prop":e.areGamesCarouselType?{propName:"game_id",value:e.defaultGameId}:{},onInput:oe},{default:s.withCtx(({item:z})=>[e.areGamesCarouselType?(s.openBlock(),s.createBlock(XV,{key:0,game:z},null,8,["game"])):(s.openBlock(),s.createBlock(hV,{key:1,"games-per-page":z,"is-landing-mode":e.isLandingMode,"row-height":e.rowHeight,"component-width":l.value,"is-round-mode":e.isRoundMode,onAction:Q},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"])):s.createCommentVNode("",!0)])],64))],4))}},[["__scopeId","data-v-7f065e14"]])},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)}}},QV={class:"gsc-calendar-table"},ZV={class:"gsc-switch-container"},$V={class:"gsc-app-component"};function eU(e,t,a,i,n,r){const o=s.resolveComponent("GscSwitchComponent"),l=s.resolveComponent("GSCGeneraltable"),c=s.resolveComponent("GSCCalendarByGame");return s.openBlock(),s.createElementBlock("div",QV,[s.createElementVNode("div",ZV,[s.createVNode(o,{type:0,"font-family":"Poppins-Regular",buttons:["Mi posición","Calendario"],height:"40px","selected-option":n.selectedOpt,"font-size":a.componentWidth>=768?"16px":"14px",width:"355px",onInput:r.changeCategory},null,8,["selected-option","font-size","onInput"])]),s.createElementVNode("div",$V,[n.selectedOpt=="Mi posición"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createVNode(l,{isPaginationVisible:!0,"current-season-id":a.season.id,type:1,"await-for-season":!0,onOpenmedia:r.onOpenMedia,onOpenTableProfile:r.onOpenProfile},null,8,["current-season-id","onOpenmedia","onOpenTableProfile"]),s.createElementVNode("div",{onClick:t[0]||(t[0]=d=>this.$router.push({name:"table"})),class:"gsc-app-component-view-all"}," Ver todo ")],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createVNode(c,{onAction:r.onAction,onOpenmedia:r.onOpenMedia,width:"100%",token:n.tokenFree,seasons:a.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"]),s.createElementVNode("div",{onClick:t[1]||(t[1]=d=>this.$router.push({name:"calendar"})),class:"gsc-app-component-view-all"}," Ver todo ")],64))])])}const tU=si(YV,[["render",eU],["__scopeId","data-v-022943cc"]]),aU={class:"match"},iU={class:"match__header"},nU={key:0,class:"match__final-tag"},rU={key:1,class:"match__final-tag__no-border"},sU={class:"match__tag"},oU={class:"match__body"},lU={class:"match__data"},cU={class:"match__acronym"},dU=["src"],uU={class:"match__score"},hU=["src"],pU={class:"match__acronym"},mU={class:"match__status"},sh=si({__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(t,a)=>{var i,n,r;return s.openBlock(),s.createElementBlock("section",aU,[s.createElementVNode("div",iU,[e.infoType=="postmatch"?(s.openBlock(),s.createElementBlock("div",nU,"FINAL ")):(s.openBlock(),s.createElementBlock("div",rU)),s.createElementVNode("div",sU,s.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),1)]),s.createElementVNode("div",oU,[s.createElementVNode("div",lU,[s.createElementVNode("div",cU,s.toDisplayString((i=e.data)==null?void 0:i.home_team_acronym),1),s.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.home_team+".png",alt:"team-img"},null,8,dU),s.createElementVNode("div",uU,[e.infoType=="postmatch"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createTextVNode(s.toDisplayString(e.data.score[0])+" - "+s.toDisplayString(e.data.score[1]),1)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString((n=e.data)==null?void 0:n.schedule.replace(":00","")),1)],64))]),s.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.visiting_team+".png",alt:"team-img"},null,8,hU),s.createElementVNode("div",pU,s.toDisplayString((r=e.data)==null?void 0:r.visiting_team_acronym),1)]),s.createElementVNode("div",mU,[e.infoType=="postmatch"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createTextVNode("Finalizado"+s.toDisplayString(e.penalScore?` - Penales ${e.penalScore}`:""),1)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode("CST")],64))])]),s.createElementVNode("div",{class:"match__button",onClick:a[0]||(a[0]=o=>t.$emit("clickMatch"))},"Analizar partido →")])}}},[["__scopeId","data-v-954d15f5"]]),fU=e=>(s.pushScopeId("data-v-06c7db7c"),e=e(),s.popScopeId(),e),gU={class:"match"},yU={class:"match__header"},_U=fU(()=>s.createElementVNode("div",{class:"match__final-tag"},"FINAL",-1)),bU={class:"match__tag"},vU={class:"match__body"},SU={class:"match__data"},wU={class:"match__acronym"},TU=["src"],CU={class:"match__score"},kU=["src"],EU={class:"match__acronym"},IU={class:"match__status"},UT=si({__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(t,a)=>(s.openBlock(),s.createElementBlock("section",gU,[s.createElementVNode("div",yU,[_U,s.createElementVNode("div",bU,s.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),1)]),s.createElementVNode("div",vU,[s.createElementVNode("div",SU,[s.createElementVNode("div",wU,s.toDisplayString(e.data.home_team.acronym),1),s.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,TU),s.createElementVNode("div",CU,s.toDisplayString(e.data.score[0])+" - "+s.toDisplayString(e.data.score[1]),1),s.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,kU),s.createElementVNode("div",EU,s.toDisplayString(e.data.visiting_team.acronym),1)]),s.createElementVNode("div",IU,"Finalizado"+s.toDisplayString(e.penalScore?` - Penales ${e.penalScore}`:""),1)]),s.createElementVNode("div",{class:"match__button",onClick:a[0]||(a[0]=i=>t.$emit("clickMatch"))},"Analizar partido →")]))}},[["__scopeId","data-v-06c7db7c"]]),xU=e=>(s.pushScopeId("data-v-50e32924"),e=e(),s.popScopeId(),e),NU=["src"],AU=["src"],PU={class:"coming-match__body"},OU={class:"coming-match__data"},BU=["src"],DU={style:{"margin-top":"16px"}},LU={class:"coming-match__time"},RU=xU(()=>s.createElementVNode("div",{class:"coming-match__cst"},"CST",-1)),MU=["src"],fy=si({__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(t,a)=>{var i,n,r,o,l,c,d,u,h,m,p,f,y;return s.openBlock(),s.createElementBlock("section",{class:s.normalizeClass(["coming-match",{small:e.small}])},[s.createElementVNode("img",{class:s.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-150/"+((i=e.data)==null?void 0:i.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-150/"+((n=e.data)==null?void 0:n.home_team)+".png",alt:"team-img"},null,10,NU),s.createElementVNode("img",{class:s.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/"+((o=e.data)==null?void 0:o.visiting_team)+".png",alt:"team-img"},null,10,AU),s.createElementVNode("div",PU,[s.createElementVNode("div",{class:s.normalizeClass(["coming-match__date",{small:e.small}])},s.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),3),s.createElementVNode("div",OU,[s.createElementVNode("div",{class:s.normalizeClass(["coming-match__team",{small:e.small}])},[s.createElementVNode("img",{class:s.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/"+((c=e.data)==null?void 0:c.home_team)+".png",alt:"team-img"},null,10,BU),s.createElementVNode("div",{class:s.normalizeClass(["coming-match__acronym",{small:e.small}])},s.toDisplayString((d=e.data)==null?void 0:d.home_team_name),3)],2),s.createElementVNode("div",DU,[s.createElementVNode("div",LU,[e.data.game_status==1?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createTextVNode(s.toDisplayString((u=e.data)==null?void 0:u.score[0])+" - "+s.toDisplayString((h=e.data)==null?void 0:h.score[1]),1)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString((m=e.data)==null?void 0:m.schedule.replace(":00","")),1)],64))]),RU]),s.createElementVNode("div",{class:s.normalizeClass(["coming-match__team",{small:e.small}])},[s.createElementVNode("div",{class:s.normalizeClass(["coming-match__acronym",{small:e.small}])},s.toDisplayString((p=e.data)==null?void 0:p.visiting_team_name),3),s.createElementVNode("img",{class:s.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((f=e.data)==null?void 0:f.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((y=e.data)==null?void 0:y.visiting_team)+".png",alt:"team-img"},null,10,MU)],2)])]),s.createElementVNode("div",{class:s.normalizeClass(["coming-match__button",{small:e.small}]),onClick:a[0]||(a[0]=b=>t.$emit("clickMatch"))},"Analizar partido →",2)],2)}}},[["__scopeId","data-v-50e32924"]]),FU=e=>(s.pushScopeId("data-v-5cc69d6e"),e=e(),s.popScopeId(),e),VU=["src"],UU=["src"],jU={class:"coming-match__body"},zU={class:"coming-match__data"},HU=["src"],qU={style:{"margin-top":"16px"}},WU={class:"coming-match__time"},GU=FU(()=>s.createElementVNode("div",{class:"coming-match__cst"},"CST",-1)),KU=["src"],jT=si({__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(t,a)=>{var i,n,r,o,l,c,d,u,h,m,p,f,y;return s.openBlock(),s.createElementBlock("section",{class:s.normalizeClass(["coming-match",{small:e.small}])},[s.createElementVNode("img",{class:s.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((i=e.data)==null?void 0:i.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((n=e.data)==null?void 0:n.home_team)+".png",alt:"team-img"},null,10,VU),s.createElementVNode("img",{class:s.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/"+((o=e.data)==null?void 0:o.visiting_team)+".png",alt:"team-img"},null,10,UU),s.createElementVNode("div",jU,[s.createElementVNode("div",{class:s.normalizeClass(["coming-match__date",{small:e.small}])},s.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),3),s.createElementVNode("div",zU,[s.createElementVNode("div",{class:s.normalizeClass(["coming-match__team",{small:e.small}])},[s.createElementVNode("img",{class:s.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/"+((c=e.data)==null?void 0:c.home_team)+".png",alt:"team-img"},null,10,HU),s.createElementVNode("div",{class:s.normalizeClass(["coming-match__acronym",{small:e.small}])},s.toDisplayString((d=e.data)==null?void 0:d.home_team_name),3)],2),s.createElementVNode("div",qU,[s.createElementVNode("div",WU,[e.data.game_status==1?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createTextVNode(s.toDisplayString((u=e.data)==null?void 0:u.score[0])+" - "+s.toDisplayString((h=e.data)==null?void 0:h.score[1]),1)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString((m=e.data)==null?void 0:m.schedule.replace(":00","")),1)],64))]),GU]),s.createElementVNode("div",{class:s.normalizeClass(["coming-match__team",{small:e.small}])},[s.createElementVNode("div",{class:s.normalizeClass(["coming-match__acronym",{small:e.small}])},s.toDisplayString((p=e.data)==null?void 0:p.visiting_team_name),3),s.createElementVNode("img",{class:s.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((f=e.data)==null?void 0:f.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((y=e.data)==null?void 0:y.visiting_team)+".png",alt:"team-img"},null,10,KU)],2)])]),s.createElementVNode("div",{class:s.normalizeClass(["coming-match__button",{small:e.small}]),onClick:a[0]||(a[0]=b=>t.$emit("clickMatch"))},"Analizar partido →",2)],2)}}},[["__scopeId","data-v-5cc69d6e"]]),XU=e=>(s.pushScopeId("data-v-27bee5a0"),e=e(),s.popScopeId(),e),JU={class:"quadrant-matches"},YU={class:"quadrant-matches__header"},QU={class:"quadrant-matches__title"},ZU=XU(()=>s.createElementVNode("span",null," →",-1)),$U={key:0,class:"quadrant-matches__body"},ej={class:"quadrant-matches__body",style:{"column-gap":"16px"}},tj={class:"quadrant-matches__body matches"},aj={key:0,class:"quadrant-matches__body"},ij={class:"quadrant-matches__body",style:{"column-gap":"16px"}},nj=si({__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 t=e;s.computed(()=>t.comingMatches[0]||{}),s.computed(()=>t.previousMatches[0]||{});const a=s.toRef(t,"componentWidth"),i=s.computed(()=>a.value<768);return(n,r)=>(s.openBlock(),s.createElementBlock("section",JU,[s.createElementVNode("div",YU,[s.createElementVNode("h2",QU,s.toDisplayString(e.isFull?"Partidos":"Mis partidos"),1),s.createElementVNode("button",{class:"quadrant-matches__button",onClick:r[0]||(r[0]=o=>n.$emit("clickCalendar"))},[s.createElementVNode("span",null,s.toDisplayString(e.isFull?"Calendario completo":"Mi calendario completo"),1),ZU])]),e.isFull?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[e.data.length>1?(s.openBlock(),s.createBlock(s.unref(wc),{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:s.withCtx(()=>[s.createElementVNode("div",tj,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.data,(o,l)=>(s.openBlock(),s.createBlock(fy,{key:l,data:o,small:"",onClickMatch:c=>n.$emit("clickMatch",o)},null,8,["data","onClickMatch"]))),128))])]),_:1})):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[i.value?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[Object.keys(e.data).length>0?(s.openBlock(),s.createBlock(s.unref(wc),{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:s.withCtx(()=>[s.createElementVNode("div",ij,[e.data[0].game_status==4?(s.openBlock(),s.createBlock(jT,{key:0,data:e.data[0],onClickMatch:r[9]||(r[9]=o=>n.$emit("clickMatch",e.data[0]))},null,8,["data"])):s.createCommentVNode("",!0),e.data[0].game_status!=4?(s.openBlock(),s.createBlock(UT,{key:1,data:e.data[0],onClickMatch:r[10]||(r[10]=o=>n.$emit("clickMatch",e.data[0]))},null,8,["data"])):s.createCommentVNode("",!0)])]),_:1})):s.createCommentVNode("",!0)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[Object.keys(e.data).length>0?(s.openBlock(),s.createElementBlock("div",aj,[e.data[0].game_status==4?(s.openBlock(),s.createBlock(jT,{key:0,data:e.data[0],onClickMatch:r[7]||(r[7]=o=>n.$emit("clickMatch",e.data[0]))},null,8,["data"])):s.createCommentVNode("",!0),e.data[0].game_status!=4?(s.openBlock(),s.createBlock(UT,{key:1,data:e.data[0],onClickMatch:r[8]||(r[8]=o=>n.$emit("clickMatch",e.data[0]))},null,8,["data"])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)],64))],64))],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[i.value?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[Object.keys(e.data).length>0?(s.openBlock(),s.createBlock(s.unref(wc),{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:s.withCtx(()=>[s.createElementVNode("div",ej,[s.createVNode(fy,{small:"",data:e.data.data.prematch,onClickMatch:r[4]||(r[4]=o=>n.$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?(s.openBlock(),s.createBlock(sh,{key:0,data:e.data.data.postmatch,onClickMatch:r[5]||(r[5]=o=>n.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"])):(s.openBlock(),s.createBlock(sh,{key:1,"info-type":"prematch",data:e.data.data.postmatch,onClickMatch:r[6]||(r[6]=o=>n.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"]))])]),_:1})):s.createCommentVNode("",!0)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[Object.keys(e.data).length>0?(s.openBlock(),s.createElementBlock("div",$U,[s.createVNode(fy,{data:e.data.data.prematch,onClickMatch:r[1]||(r[1]=o=>n.$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?(s.openBlock(),s.createBlock(sh,{key:0,data:e.data.data.postmatch,onClickMatch:r[2]||(r[2]=o=>n.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"])):(s.openBlock(),s.createBlock(sh,{key:1,"info-type":"prematch",data:e.data.data.postmatch,onClickMatch:r[3]||(r[3]=o=>n.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"]))])):s.createCommentVNode("",!0)],64))],64))]))}},[["__scopeId","data-v-27bee5a0"]]),rj={__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(t,a)=>(s.openBlock(),s.createElementBlock("main",null,[s.createVNode(nj,{data:e.data,"component-width":e.componentWidth,"is-full":e.isFull,onClickCalendar:a[0]||(a[0]=i=>t.$emit("clickCalendar")),onClickMatch:a[1]||(a[1]=i=>t.$emit("clickMatch",i)),"has-team":!e.isplayer},null,8,["data","component-width","is-full","has-team"])]))}},sj="_toniKroos_1mxz1_35",oj="_centralMidfielder_1mxz1_55",lj="_icnPlayIcon_1mxz1_75",cj="_verVideos_1mxz1_89",dj="_btnVideosOptions_1mxz1_109",uj="_btnVideosOptionsTeams_1mxz1_139",hj="_info_1mxz1_179",pj="_goalUnlock_1mxz1_203",mj="_teamsAmerica_1mxz1_229",fj="_imageIcon_1mxz1_249",gj="_imageIconTeam_1mxz1_271",yj="_playerTops_1mxz1_295",_j={toniKroos:sj,centralMidfielder:oj,icnPlayIcon:lj,verVideos:cj,btnVideosOptions:dj,btnVideosOptionsTeams:uj,info:hj,goalUnlock:pj,teamsAmerica:mj,imageIcon:fj,imageIconTeam:gj,playerTops:yj},bj=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},vj={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))}}},Sj=["src"],wj=["src"],Tj=["src"];function Cj(e,t,a,i,n,r){return s.openBlock(),s.createElementBlock("section",{class:s.normalizeClass(e.$style.playerTops),style:s.normalizeStyle(r.customMosaic),id:"player-mosaico",onClick:t[1]||(t[1]=o=>r.onPlayerTopsClick(a.data.player_id))},[s.createElementVNode("div",{class:s.normalizeClass(e.$style.info)},[s.createElementVNode("h3",{class:s.normalizeClass(e.$style.toniKroos),style:s.normalizeStyle(r.customNamePlayer)},s.toDisplayString(a.data.player_name),7),a.showPositionPlayer?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(e.$style.centralMidfielder),style:s.normalizeStyle(r.customNamePosition)},s.toDisplayString(a.data.player_position),7)):s.createCommentVNode("",!0),s.createElementVNode("button",{class:s.normalizeClass(this.isPlayer?e.$style.btnVideosOptions:e.$style.btnVideosOptionsTeams),style:s.normalizeStyle(r.customTotalCont),id:"button-actions",onClick:t[0]||(t[0]=o=>r.onButtonVideos(a.data))},[a.showIconVideo?(s.openBlock(),s.createElementBlock("img",{key:0,class:s.normalizeClass(e.$style.icnPlayIcon),src:a.iconPlay},null,10,Sj)):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(e.$style.verVideos),style:s.normalizeStyle(r.customTotal)},s.toDisplayString(a.data.player_stat)+" "+s.toDisplayString(a.data.category),7)],6)],2),s.createElementVNode("b",{style:s.normalizeStyle(r.customNumberTop),class:s.normalizeClass(e.$style.goalUnlock)},s.toDisplayString(a.data.top),7),a.showShieldTeam?(s.openBlock(),s.createElementBlock("img",{key:0,class:s.normalizeClass(e.$style.teamsAmerica),style:s.normalizeStyle(r.customShieldTeam),loading:"lazy",src:a.data.team_logo},null,14,wj)):s.createCommentVNode("",!0),s.createElementVNode("img",{style:s.normalizeStyle(r.customPhotoPlayerOrTeam),class:s.normalizeClass(this.isPlayer?e.$style.imageIcon:e.$style.imageIconTeam),loading:"lazy",src:a.data.player_photo},null,14,Tj)],6)}const kj={$style:_j},Ej=bj(vj,[["render",Cj],["__cssModules",kj]]),Ij=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},gy={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))}}},zT=()=>{s.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}))},HT=gy.setup;gy.setup=HT?(e,t)=>(zT(),HT(e,t)):zT;const xj=e=>(s.pushScopeId("data-v-fb269a1e"),e=e(),s.popScopeId(),e),Nj=["src"],Aj={key:1,class:"text"},Pj=["src"],Oj={class:"stats"},Bj=xj(()=>s.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),Dj={class:"numstats"},Lj={class:"leyend"};function Rj(e,t,a,i,n,r){return s.openBlock(),s.createElementBlock("div",null,[a.type==0?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["button",n.status&&a.typeOnOff&&"button-active"]),style:s.normalizeStyle([r.customStyle,n.status&&a.typeOnOff&&r.customActive]),onClick:t[0]||(t[0]=(...o)=>r.btnClick&&r.btnClick(...o))},[a.icon&&a.iconPosition.toLowerCase()==="left"?(s.openBlock(),s.createElementBlock("img",{key:0,class:"icon",style:s.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,Nj)):s.createCommentVNode("",!0),a.textValue?(s.openBlock(),s.createElementBlock("div",Aj,s.toDisplayString(a.textValue),1)):s.createCommentVNode("",!0),a.icon&&a.iconPosition.toLowerCase()==="right"?(s.openBlock(),s.createElementBlock("img",{key:2,class:"icon",style:s.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,Pj)):s.createCommentVNode("",!0)],6)):s.createCommentVNode("",!0),a.type==1?(s.openBlock(),s.createElementBlock("div",{key:1,class:"button-target",onClick:t[1]||(t[1]=(...o)=>r.btnClick&&r.btnClick(...o))},[s.createElementVNode("div",Oj,[Bj,s.createElementVNode("div",Dj,s.toDisplayString(a.textStat),1)]),s.createElementVNode("div",Lj,s.toDisplayString(a.textCategory),1)])):s.createCommentVNode("",!0)])}const Mj=Ij(gy,[["render",Rj],["__scopeId","data-v-fb269a1e"]]);function Fj(e){const t=s.ref({width:0,height:0});function a(){const i=e.value.getBoundingClientRect();t.value.width=i.width,t.value.height=i.height}return s.onMounted(()=>{a(),window.addEventListener("resize",a)}),s.onUnmounted(()=>{window.removeEventListener("resize",a)}),{elementSize:t}}const yy={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-Regular"},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(t){throw new Error(t)}}}},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)}}},qT=()=>{s.useCssVars(e=>({"07b24dd0":e.backgroundColor,"2ba6f6b1":e.widthCircle,c219f888:e.heightCircle}))},WT=yy.setup;yy.setup=WT?(e,t)=>(qT(),WT(e,t)):qT;const Vj={key:0,class:"text-left"},Uj=["width","src"],jj=["checked"],zj=["width","src"],Hj={key:3,class:"text-right"};function qj(e,t,a,i,n,r){return s.openBlock(),s.createElementBlock("div",{class:"gsc-switch-radio",style:s.normalizeStyle(r.customText)},[a.textOptionLeft!=""&&!a.hiddenLabels?(s.openBlock(),s.createElementBlock("span",Vj,s.toDisplayString(a.textOptionLeft),1)):s.createCommentVNode("",!0),a.iconA!=""?(s.openBlock(),s.createElementBlock("img",{key:1,width:a.widthIcons,src:a.iconA},null,8,Uj)):s.createCommentVNode("",!0),s.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:t[0]||(t[0]=(...o)=>r.handleSwitchChange&&r.handleSwitchChange(...o)),checked:n.OptionDefault},null,40,jj),s.createElementVNode("label",{for:"toggle-btn",style:s.normalizeStyle([r.customStyle,{"--circle-color":a.circleColorSwitch}])},null,4),a.iconB!=""?(s.openBlock(),s.createElementBlock("img",{key:2,width:a.widthIcons,src:a.iconB},null,8,zj)):s.createCommentVNode("",!0),a.textOptionRight!=""&&!a.hiddenLabels?(s.openBlock(),s.createElementBlock("span",Hj,s.toDisplayString(a.textOptionRight),1)):s.createCommentVNode("",!0)],4)}const _y={components:{GSCSlider:wc,GSCMosaicthebest:Ej,GscSwitchComponent:Jw,GSCButton:Mj,GSCRadioToggle:si(yy,[["render",qj],["__scopeId","data-v-f00464ad"]])},setup(){const e=s.ref("myDivRef"),{elementSize:t}=Fj(e);return{myDivRef:e,elementSize:t}},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"},season:{type:Number,default:1772},teamId:{type:Number,default:0}},watch:{async season(e,t){await this.getCategoryStats(e,1)}},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,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:{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 t=this.translateTopCategories(this.categorySelected),a=2,i=3;let n=[],r=0,o=0;this.isTeam?(r=e.player_id,o=i):(n=[e.player_id],o=a);const l={seasonId:this.season,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:o,gameIds:null,playerIds:n,goalkeeperIds:[],categoryIds:t,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){e==="Mi equipo"&&await this.getCategoryStats(this.season,0),e==="Liga MX"&&await this.getCategoryStats(this.season,1)},clickMosaic(e){this.$emit("boxinput",e)},clickMore(){this.$emit("more")},async changeType(e){this.optionSelected=e,e=="Equipos"?(await this.getCategoryStats(this.season,1),this.isTeam=!0):this.isTeam=!1},changeCategory(e){this.categoryName=e;const t=this.categories.find(a=>a.name===e);this.categorySelected=t.id},async getCategoryStats(e,t){try{let n={},r={},o=[];const l=Sc.create({headers:{Authorization:`${this.token}`}});var a={};if(t==0&&(a=await l.get(this.url+this.season+"/teams/"+this.teamId)),t==1&&(a=await l.get(this.url+e)),a&&a.data){a.data.teams.map(c=>{n[c[0]]={},n[c[0]].id=c[0],n[c[0]].name=c[1],n[c[0]].img=c[3],n[c[0]].abrv=c[2],n[c[0]].logo=c[3]}),a.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 i=1;a.data.tops.map(c=>{o[c.category?c.category:i]={};var d={},u={};c.teams.map(p=>{d[p[0]]={},d[p[0]].total=p[1],d[p[0]].id=n[p[0]].id,d[p[0]].name=n[p[0]].name,d[p[0]].img="https://az755631.vo.msecnd.net/teams-150/"+p[0]+".png",d[p[0]].logo="https://az755631.vo.msecnd.net/teams-80/"+p[0]+".png"}),c.players.map(p=>{u[p[0]]={},u[p[0]].total=p[1],u[p[0]].name=r[p[0]].name,u[p[0]].img=r[p[0]].img.replace("players-profile/","players-profile/"),u[p[0]].id=r[p[0]].id,u[p[0]].position=this.positions[r[p[0]].position-1].name,u[p[0]].logo=r[p[0]].logo});var h=[],m=[];for(const p in d)h.push(d[p]);for(const p in u)m.push(u[p]);h.sort((p,f)=>p.total<f.total?1:-1),m.sort((p,f)=>p.total<f.total?1:-1),o[c.category?c.category:i].top__players=m,o[c.category?c.category:i].top__teams=h,i++})}this.categorySelected=1,this.categoryData=o}catch(n){return Promise.reject(n)}}}},GT=()=>{s.useCssVars(e=>({83326918:e.backgroundColor,"79b92094":e.fontFamily,41263131:e.fontSize,"3a7df79a":e.fontColor,"0fa0a8ce":e.marginMosaic}))},KT=_y.setup;_y.setup=KT?(e,t)=>(GT(),KT(e,t)):GT;const Wj=e=>(s.pushScopeId("data-v-5a697cc3"),e=e(),s.popScopeId(),e),Gj={class:"gsc-best",ref:"myDivRef"},Kj={class:"gsc-best__line-bar-tools"},Xj={key:0,class:"gsc-best__line-bar-tools__title"},Jj=Wj(()=>s.createElementVNode("span",null,"Los mejores ",-1)),Yj={key:1,class:"gsc-best__line-bar-tools__titlefull"},Qj={class:"unit-items"},Zj={key:2,class:"gsc-best__line-bar-tools__tools"},$j={key:0,class:"gsc-best__line-bar-tools__tools__tabs"},ez={class:"gsc-best__line-bar-tools__tools__btn"},tz={key:0,class:"gsc-best__line-bar-tools-movil"},az={class:"gsc-best__line-bar-tools-movil__tabs"},iz={class:"gsc-best__categories"},nz={class:"gsc-best__players"};function rz(e,t,a,i,n,r){const o=s.resolveComponent("GSCRadioToggle"),l=s.resolveComponent("GSCButton"),c=s.resolveComponent("GscSwitchComponent"),d=s.resolveComponent("GSCMosaicthebest"),u=s.resolveComponent("GSCSlider");return s.openBlock(),s.createElementBlock("div",Gj,[s.createElementVNode("div",Kj,[i.elementSize.width>900?(s.openBlock(),s.createElementBlock("div",Xj,[Jj,e.optionSelected!=="Equipos"&&a.showSwitch?(s.openBlock(),s.createBlock(o,{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/"+a.teamId+".png",iconB:"https://az755631.vo.msecnd.net/todoelfut/1.png",textOptionLeft:"Mi equipo",textOptionRight:"Liga MX",onChange:r.ChangeRadio},null,8,["iconA","onChange"])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),i.elementSize.width<=900?(s.openBlock(),s.createElementBlock("div",Yj,[s.createElementVNode("span",{style:s.normalizeStyle(i.elementSize.width<=380?"font-size: 15px; margin-top:0px; width:60px;":"")},"Los mejores ",4),s.createElementVNode("span",Qj,[e.optionSelected!=="Equipos"&&a.showSwitch?(s.openBlock(),s.createBlock(o,{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/"+a.teamId+".png",iconB:"https://az755631.vo.msecnd.net/todoelfut/1.png",textOptionLeft:"Mi equipo",textOptionRight:"Liga MX",onChange:r.ChangeRadio},null,8,["iconA","onChange"])):s.createCommentVNode("",!0),s.createVNode(l,{style:{"margin-top":"4px"},width:"75px","text-value":"Ver más","font-color":i.elementSize.width<=680?"rgba(255,255,255, 0.7)":"#fff","font-size":i.elementSize.width<=680?"11px":"14px","text-decoration":"underline",onClick:r.clickMore},null,8,["font-color","font-size","onClick"])])])):s.createCommentVNode("",!0),i.elementSize.width>900?(s.openBlock(),s.createElementBlock("div",Zj,[i.elementSize.width>900?(s.openBlock(),s.createElementBlock("div",$j,[s.createVNode(c,{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-Regular",onInput:r.changeType,arrowsScrollHide:!1,arrowsPosition:"absolute"},null,8,["selected-option","onInput"])])):s.createCommentVNode("",!0),s.createElementVNode("div",ez,[s.createVNode(l,{width:"75px","text-value":"Ver más","font-size":"14px","text-decoration":"underline",onClick:r.clickMore},null,8,["onClick"]),s.createVNode(l,{width:"10px","text-value":"→","font-size":"14px","font-color":"#cbee6b",onClick:r.clickMore},null,8,["onClick"])])])):s.createCommentVNode("",!0)]),i.elementSize.width<=900?(s.openBlock(),s.createElementBlock("div",tz,[s.createElementVNode("div",az,[s.createVNode(c,{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-Regular",onInput:r.changeType},null,8,["selected-option","onInput"])])])):s.createCommentVNode("",!0),s.createElementVNode("div",iz,[s.createVNode(c,{type:2,arrow:!0,"font-family":"Poppins-Regular",buttons:e.categoriesDefault,height:"40px","selected-option":"Goles","font-size":i.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"])]),s.createElementVNode("div",nz,[s.createVNode(u,{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:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.topData,(h,m)=>(s.openBlock(),s.createElementBlock("div",{key:m,class:s.normalizeClass(["gsc-best__players__item",m==0?"margin-none":""])},[s.createVNode(d,{data:{player_id:h.id,player_name:h.name,player_position:h.position,player_stat:h.total,category:"Total",top:m<9?"0"+(m+1):m+1,team_logo:h.logo,player_photo:h.img},"show-shield-team":!0,"active-videos":!0,onClickMosaic:r.clickMosaic,onOpenmedia:r.onOpenMedia,namePlayerFontSize:"13px",namePositionFontSize:"10px",numbertopLeft:"-15px",numberFontFamily:"Oswald-SemiBold",totalFontSize:"12px",totalFont:"Poppins-Regular!important",totalHeight:"21px","is-player":!this.isTeam},null,8,["data","onClickMosaic","onOpenmedia","is-player"])],2))),128))]),_:1})])],512)}const sz=si(_y,[["render",rz],["__scopeId","data-v-5a697cc3"]]),bt=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},oz=e=>(s.pushScopeId("data-v-b9c574d2"),e=e(),s.popScopeId(),e),lz={key:0,class:"match-header__left"},cz={class:"match-header__img-container"},dz=["src"],uz={class:"match-header__img-container overlap"},hz=["src"],pz={class:"match-header__score"},mz={class:"match-header__date"},fz={key:0,xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",viewBox:"0 0 12 7",fill:"none"},gz=oz(()=>s.createElementVNode("path",{d:"M11 1L6 6L1 0.999999",stroke:"#9CA3AF","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),yz=[gz],_z={__name:"MatchHeader",props:{match:{type:Object,default:()=>({})},mobileClass:{type:String,default:""},clientWidth:{type:Number,default:0},hideArrow:{type:Boolean,default:!1}},setup(e){const t=e,a=s.computed(()=>{let r=[];return t.clientWidth>0&&(t.clientWidth<=450?r.push("match-header__acronyms__450"):t.clientWidth<=750?r.push("match-header__acronyms__750"):t.clientWidth<=850?r.push("match-header__acronyms__850"):r.push("match-header__acronyms")),r}),{match:i,mobileClass:n}=s.toRefs(t);return(r,o)=>{var l,c,d,u,h,m,p,f;return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["match-header",s.unref(n)])},[s.unref(i)?(s.openBlock(),s.createElementBlock("div",lz,[s.createElementVNode("div",cz,[s.createElementVNode("img",{class:"match-header__img",src:(c=(l=s.unref(i))==null?void 0:l.homeTeam)==null?void 0:c.logo},null,8,dz)]),s.createElementVNode("div",uz,[s.createElementVNode("img",{class:"match-header__img",src:(u=(d=s.unref(i))==null?void 0:d.awayTeam)==null?void 0:u.logo},null,8,hz)]),s.createElementVNode("div",{class:s.normalizeClass(["match-header__acronyms",a.value])},s.toDisplayString(`${(m=(h=s.unref(i))==null?void 0:h.homeTeam)==null?void 0:m.acronym} VS ${(f=(p=s.unref(i))==null?void 0:p.awayTeam)==null?void 0:f.acronym}`),3)])):s.createCommentVNode("",!0),s.createElementVNode("div",pz,s.toDisplayString(`${s.unref(i).score[0]} - ${s.unref(i).score[1]}`),1),s.createElementVNode("div",mz,[s.createElementVNode("span",null,s.toDisplayString(s.unref(i).date.split("-").reverse().join("/")),1),e.hideArrow?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("svg",fz,yz))])],2)}}},XT=bt(_z,[["__scopeId","data-v-b9c574d2"]]);function bz(){return JT().__VUE_DEVTOOLS_GLOBAL_HOOK__}function JT(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const vz=typeof Proxy=="function",Sz="devtools-plugin:setup",wz="plugin:settings:set";let Pc,by;function Tz(){var e;return Pc!==void 0||(typeof window<"u"&&window.performance?(Pc=!0,by=window.performance):typeof global<"u"&&!((e=global.perf_hooks)===null||e===void 0)&&e.performance?(Pc=!0,by=global.perf_hooks.performance):Pc=!1),Pc}function Cz(){return Tz()?by.now():Date.now()}class kz{constructor(t,a){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=a;const i={};if(t.settings)for(const o in t.settings){const l=t.settings[o];i[o]=l.defaultValue}const n=`__vue-devtools-plugin-settings__${t.id}`;let r=Object.assign({},i);try{const o=localStorage.getItem(n),l=JSON.parse(o);Object.assign(r,l)}catch{}this.fallbacks={getSettings(){return r},setSettings(o){try{localStorage.setItem(n,JSON.stringify(o))}catch{}r=o},now(){return Cz()}},a&&a.on(wz,(o,l)=>{o===this.plugin.id&&this.fallbacks.setSettings(l)}),this.proxiedOn=new Proxy({},{get:(o,l)=>this.target?this.target.on[l]:(...c)=>{this.onQueue.push({method:l,args:c})}}),this.proxiedTarget=new Proxy({},{get:(o,l)=>this.target?this.target[l]:l==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(l)?(...c)=>(this.targetQueue.push({method:l,args:c,resolve:()=>{}}),this.fallbacks[l](...c)):(...c)=>new Promise(d=>{this.targetQueue.push({method:l,args:c,resolve:d})})})}async setRealTarget(t){this.target=t;for(const a of this.onQueue)this.target.on[a.method](...a.args);for(const a of this.targetQueue)a.resolve(await this.target[a.method](...a.args))}}function Ez(e,t){const a=e,i=JT(),n=bz(),r=vz&&a.enableEarlyProxy;if(n&&(i.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!r))n.emit(Sz,e,t);else{const o=r?new kz(a,n):null;(i.__VUE_DEVTOOLS_PLUGINS__=i.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:a,setupFn:t,proxy:o}),o&&t(o.proxiedTarget)}}/*!
|
|
26
28
|
* vuex v4.1.0
|
|
27
29
|
* (c) 2022 Evan You
|
|
28
30
|
* @license MIT
|
|
@@ -302,4 +304,4 @@ browserWorkerPolyFill(self);
|
|
|
302
304
|
* Vue 3 Carousel 0.3.1
|
|
303
305
|
* (c) 2023
|
|
304
306
|
* @license MIT
|
|
305
|
-
*/const Sa={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"}},tP={itemsToShow:{default:Sa.itemsToShow,type:Number},itemsToScroll:{default:Sa.itemsToScroll,type:Number},wrapAround:{default:Sa.wrapAround,type:Boolean},throttle:{default:Sa.throttle,type:Number},snapAlign:{default:Sa.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Sa.transition,type:Number},breakpoints:{default:Sa.breakpoints,type:Object},autoplay:{default:Sa.autoplay,type:Number},pauseAutoplayOnHover:{default:Sa.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Sa.mouseDrag,type:Boolean},touchDrag:{default:Sa.touchDrag,type:Boolean},dir:{default:Sa.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Sa.i18n,type:Object},settings:{default(){return{}},type:Object}};function Fke({config:e,slidesCount:t}){const{snapAlign:a,wrapAround:i,itemsToShow:n=1}=e;if(i)return Math.max(t-1,0);let r;switch(a){case"start":r=t-n;break;case"end":r=t-1;break;case"center":case"center-odd":r=t-Math.ceil((n-.5)/2);break;case"center-even":r=t-Math.ceil(n/2);break;default:r=0;break}return Math.max(r,0)}function Vke({config:e,slidesCount:t}){const{wrapAround:a,snapAlign:i,itemsToShow:n=1}=e;let r=0;if(a||n>t)return r;switch(i){case"start":r=0;break;case"end":r=n-1;break;case"center":case"center-odd":r=Math.floor((n-1)/2);break;case"center-even":r=Math.floor((n-2)/2);break;default:r=0;break}return r}function lv({val:e,max:t,min:a}){return t<a?e:Math.min(Math.max(e,a),t)}function Uke({config:e,currentSlide:t,slidesCount:a}){const{snapAlign:i,wrapAround:n,itemsToShow:r=1}=e;let o=t;switch(i){case"center":case"center-odd":o-=(r-1)/2;break;case"center-even":o-=(r-2)/2;break;case"end":o-=r-1;break}return n?o:lv({val:o,max:a-r,min:0})}function aP(e){return e?e.reduce((t,a)=>{var i;return a.type===s.Fragment?[...t,...aP(a.children)]:((i=a.type)===null||i===void 0?void 0:i.name)==="CarouselSlide"?[...t,a]:t},[]):[]}function cv({val:e,max:t,min:a=0}){return e>t?cv({val:e-(t+1),max:t,min:a}):e<a?cv({val:e+(t+1),max:t,min:a}):e}function jke(e,t){let a;return t?function(...i){const n=this;a||(e.apply(n,i),a=!0,setTimeout(()=>a=!1,t))}:e}function zke(e,t){let a;return function(...i){a&&clearTimeout(a),a=setTimeout(()=>{e(...i),a=null},t)}}function Hke(e="",t={}){return Object.entries(t).reduce((a,[i,n])=>a.replace(`{${i}}`,String(n)),e)}var qke=s.defineComponent({name:"ARIA",setup(){const e=s.inject("config",s.reactive(Object.assign({},Sa))),t=s.inject("currentSlide",s.ref(0)),a=s.inject("slidesCount",s.ref(0));return()=>s.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},Hke(e.i18n.itemXofY,{currentSlide:t.value+1,slidesCount:a.value}))}}),Wke=s.defineComponent({name:"Carousel",props:tP,setup(e,{slots:t,emit:a,expose:i}){var n;const r=s.ref(null),o=s.ref([]),l=s.ref(0),c=s.ref(0),d=s.reactive(Object.assign({},Sa));let u=Object.assign({},Sa),h;const m=s.ref((n=e.modelValue)!==null&&n!==void 0?n:0),p=s.ref(0),f=s.ref(0),y=s.ref(0),b=s.ref(0);let E,D;s.provide("config",d),s.provide("slidesCount",c),s.provide("currentSlide",m),s.provide("maxSlide",y),s.provide("minSlide",b),s.provide("slideWidth",l);function M(){h=Object.assign({},e.breakpoints),u=Object.assign(Object.assign(Object.assign({},u),e),{i18n:Object.assign(Object.assign({},u.i18n),e.i18n),breakpoints:void 0}),A(u)}function N(){if(!h||!Object.keys(h).length)return;const J=Object.keys(h).map(Oe=>Number(Oe)).sort((Oe,We)=>+We-+Oe);let De=Object.assign({},u);J.some(Oe=>{const We=window.matchMedia(`(min-width: ${Oe}px)`).matches;return We&&(De=Object.assign(Object.assign({},De),h[Oe])),We}),A(De)}function A(J){Object.entries(J).forEach(([De,Oe])=>d[De]=Oe)}const L=zke(()=>{N(),V()},16);function V(){if(!r.value)return;const J=r.value.getBoundingClientRect();l.value=J.width/d.itemsToShow}function $(){c.value<=0||(f.value=Math.ceil((c.value-1)/2),y.value=Fke({config:d,slidesCount:c.value}),b.value=Vke({config:d,slidesCount:c.value}),d.wrapAround||(m.value=lv({val:m.value,max:y.value,min:b.value})))}s.onMounted(()=>{s.nextTick(()=>V()),setTimeout(()=>V(),1e3),N(),ie(),window.addEventListener("resize",L,{passive:!0}),a("init")}),s.onUnmounted(()=>{D&&clearTimeout(D),E&&clearInterval(E),window.removeEventListener("resize",L,{passive:!0})});let U=!1;const ae={x:0,y:0},oe={x:0,y:0},Q=s.reactive({x:0,y:0}),de=s.ref(!1),Se=s.ref(!1),we=()=>{de.value=!0},pe=()=>{de.value=!1};function z(J){["INPUT","TEXTAREA","SELECT"].includes(J.target.tagName)||(U=J.type==="touchstart",U||J.preventDefault(),!(!U&&J.button!==0||fe.value)&&(ae.x=U?J.touches[0].clientX:J.clientX,ae.y=U?J.touches[0].clientY:J.clientY,document.addEventListener(U?"touchmove":"mousemove",K,!0),document.addEventListener(U?"touchend":"mouseup",ue,!0)))}const K=jke(J=>{Se.value=!0,oe.x=U?J.touches[0].clientX:J.clientX,oe.y=U?J.touches[0].clientY:J.clientY;const De=oe.x-ae.x,Oe=oe.y-ae.y;Q.y=Oe,Q.x=De},d.throttle);function ue(){const J=d.dir==="rtl"?-1:1,De=Math.sign(Q.x)*.4,Oe=Math.round(Q.x/l.value+De)*J;if(Oe&&!U){const We=gt=>{gt.stopPropagation(),window.removeEventListener("click",We,!0)};window.addEventListener("click",We,!0)}me(m.value-Oe),Q.x=0,Q.y=0,Se.value=!1,document.removeEventListener(U?"touchmove":"mousemove",K,!0),document.removeEventListener(U?"touchend":"mouseup",ue,!0)}function ie(){!d.autoplay||d.autoplay<=0||(E=setInterval(()=>{d.pauseAutoplayOnHover&&de.value||ge()},d.autoplay))}function ne(){E&&(clearInterval(E),E=null),ie()}const fe=s.ref(!1);function me(J){const De=d.wrapAround?J:lv({val:J,max:y.value,min:b.value});m.value===De||fe.value||(a("slide-start",{slidingToIndex:J,currentSlideIndex:m.value,prevSlideIndex:p.value,slidesCount:c.value}),fe.value=!0,p.value=m.value,m.value=De,D=setTimeout(()=>{if(d.wrapAround){const Oe=cv({val:De,max:y.value,min:0});Oe!==m.value&&(m.value=Oe,a("loop",{currentSlideIndex:m.value,slidingToIndex:J}))}a("update:modelValue",m.value),a("slide-end",{currentSlideIndex:m.value,prevSlideIndex:p.value,slidesCount:c.value}),fe.value=!1,ne()},d.transition))}function ge(){me(m.value+d.itemsToScroll)}function ee(){me(m.value-d.itemsToScroll)}const re={slideTo:me,next:ge,prev:ee};s.provide("nav",re),s.provide("isSliding",fe);const X=s.computed(()=>Uke({config:d,currentSlide:m.value,slidesCount:c.value}));s.provide("slidesToScroll",X);const R=s.computed(()=>{const J=d.dir==="rtl"?-1:1,De=X.value*l.value*J;return{transform:`translateX(${Q.x-De}px)`,transition:`${fe.value?d.transition:0}ms`,margin:d.wrapAround?`0 -${c.value*l.value}px`:"",width:"100%"}});function he(){M(),N(),$(),V(),ne()}Object.keys(tP).forEach(J=>{["modelValue"].includes(J)||s.watch(()=>e[J],he)}),s.watch(()=>e.modelValue,J=>{J!==m.value&&me(Number(J))}),s.watch(c,$),a("before-init"),M();const ve={config:d,slidesCount:c,slideWidth:l,next:ge,prev:ee,slideTo:me,currentSlide:m,maxSlide:y,minSlide:b,middleSlide:f};i({updateBreakpointsConfigs:N,updateSlidesData:$,updateSlideWidth:V,initDefaultConfigs:M,restartCarousel:he,slideTo:me,next:ge,prev:ee,nav:re,data:ve});const Re=t.default||t.slides,qe=t.addons,Ge=s.reactive(ve);return()=>{const J=aP(Re==null?void 0:Re(Ge)),De=(qe==null?void 0:qe(Ge))||[];J.forEach((Ye,Ze)=>Ye.props.index=Ze);let Oe=J;if(d.wrapAround){const Ye=J.map((Bt,rt)=>s.cloneVNode(Bt,{index:-J.length+rt,isClone:!0,key:`clone-before-${rt}`})),Ze=J.map((Bt,rt)=>s.cloneVNode(Bt,{index:J.length+rt,isClone:!0,key:`clone-after-${rt}`}));Oe=[...Ye,...J,...Ze]}o.value=J,c.value=Math.max(J.length,1);const We=s.h("ol",{class:"carousel__track",style:R.value,onMousedownCapture:d.mouseDrag?z:null,onTouchstartPassiveCapture:d.touchDrag?z:null},Oe),gt=s.h("div",{class:"carousel__viewport"},We);return s.h("section",{ref:r,class:{carousel:!0,"is-sliding":fe.value,"is-dragging":Se.value,"is-hover":de.value,"carousel--rtl":d.dir==="rtl"},dir:d.dir,"aria-label":d.i18n.ariaGallery,tabindex:"0",onMouseenter:we,onMouseleave:pe},[gt,De,s.h(qke)])}}}),iP;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(iP||(iP={}));var Gke=s.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:t}){const a=s.inject("config",s.reactive(Object.assign({},Sa))),i=s.inject("currentSlide",s.ref(0)),n=s.inject("slidesToScroll",s.ref(0)),r=s.inject("isSliding",s.ref(!1)),o=()=>e.index===i.value,l=()=>e.index===i.value-1,c=()=>e.index===i.value+1,d=()=>{const u=Math.floor(n.value),h=Math.ceil(n.value+a.itemsToShow-1);return e.index>=u&&e.index<=h};return()=>{var u;return s.h("li",{style:{width:`${100/a.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":d(),"carousel__slide--active":o(),"carousel__slide--prev":l(),"carousel__slide--next":c(),"carousel__slide--sliding":r.value},"aria-hidden":!d()},(u=t.default)===null||u===void 0?void 0:u.call(t))}}});const Kke=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},Xke=e=>(s.pushScopeId("data-v-dd3cbf69"),e=e(),s.popScopeId(),e),Jke={class:"gsc-carousel"},Yke={key:0},Qke=Xke(()=>s.createElementVNode("div",null,"no hay",-1)),Zke=[Qke],$ke={class:"gsc-carousel__2d__slides"},eEe={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},tEe=["fill"],aEe={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},iEe=["fill"],nEe={class:"gsc-carousel__2d__navigation"},rEe={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},sEe=["stroke"],oEe={key:1,class:"gsc-carousel__2d__navigation__pagination"},lEe=["onClick"],cEe={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},dEe=["stroke"],uEe={__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(t=>t 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:t,emit:a}){const i=e;s.useCssVars(y=>({"0d808f0f":e.slideLeftArrowBackgroundImage,"1e0ef2e5":e.slidesArrowsLeftAndRight,"66d12b5c":e.slideRightArrowBackgroundImage,"2b22a85a":e.marginTop,"1a842b02":e.secondarySlidesOpacity}));const n=s.ref(null),r=s.ref({}),o=s.ref(0),l=s.ref(!1);s.watch(n,y=>{y&&l.value?(l.value=!1,c(i.items)):y&&y.slideTo&&y.slideTo(o.value)},{deep:!0}),s.watch(()=>i.currentItemIndex,y=>{o.value!==y&&m(y)}),s.watch(()=>i.items,y=>{n.value?c(y):l.value=!0},{immediate:!0});function c(y){if(y&&y.length&&n.value){if(i.defaultItemByProp){const b=i.items.findIndex(E=>E[i.defaultItemByProp.propName]===i.defaultItemByProp.value);b!==-1?(o.value=b,r.value=y[b]):(o.value=0,r.value=y[0])}else o.value=i.defaultItemByIndex,r.value=y[i.defaultItemByIndex];n.value.slideTo&&n.value.slideTo(o.value),a("input",{selectedItem:r.value,selectedItemIndex:o.value})}}function d(){n.value&&n.value.next()}function u(){n.value&&n.value.prev()}function h(){n.value&&n.value.updateSlideWidth()}function m(y){n.value&&n.value.slideTo(y)}function p(y){n.value.slideTo(y)}function f(y){const b=y.slidingToIndex<0?i.items.length-1:y.slidingToIndex===i.items.length?0:y.slidingToIndex;o.value=b,r.value=i.items[b],a("update:currentItemIndex",b),a("input",{selectedItem:r.value,selectedItemIndex:o.value})}return t({prev:u,next:d,updateSlideWidth:h,slideTo:m}),(y,b)=>(s.openBlock(),s.createElementBlock("div",Jke,[i.is3d?(s.openBlock(),s.createElementBlock("div",Yke,Zke)):(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[s.createElementVNode("div",$ke,[s.createVNode(s.unref(Wke),{ref_key:"carousel2d",ref:n,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:f},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.items,(E,D)=>(s.openBlock(),s.createBlock(s.unref(Gke),{key:D},{default:s.withCtx(()=>[s.renderSlot(y.$slots,"default",{item:E},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible?(s.openBlock(),s.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",onClick:b[0]||(b[0]=E=>n.value.prev())},[s.createElementVNode("div",{class:s.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(s.openBlock(),s.createElementBlock("svg",eEe,[s.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,tEe)]))],2)])):s.createCommentVNode("",!0),e.areSlidesArrowsVisible?(s.openBlock(),s.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",onClick:b[1]||(b[1]=E=>d())},[s.createElementVNode("div",{class:s.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(s.openBlock(),s.createElementBlock("svg",aEe,[s.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,iEe)]))],2)])):s.createCommentVNode("",!0),s.createElementVNode("div",nEe,[e.areNavigationArrowsVisible?(s.openBlock(),s.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:b[2]||(b[2]=E=>u())},[(s.openBlock(),s.createElementBlock("svg",rEe,[s.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:i.arrowsColor},null,8,sEe)]))])):s.createCommentVNode("",!0),e.isPaginationVisible?(s.openBlock(),s.createElementBlock("div",oEe,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.items,(E,D)=>(s.openBlock(),s.createElementBlock("div",{key:`i-${D}`,class:"gsc-carousel__2d__navigation__pagination__item",style:s.normalizeStyle({height:`${i.navigationHeight}px`,width:`${o.value===D?i.navigationActiveWidth:i.navigationActiveWidth/2}px`,borderRadius:`${i.navigationBorderRadius}px`,backgroundColor:`${o.value===D?i.navigationActiveColor:i.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:M=>p(D)},null,12,lEe))),128))])):s.createCommentVNode("",!0),e.areNavigationArrowsVisible?(s.openBlock(),s.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:b[3]||(b[3]=E=>n.value.next())},[(s.openBlock(),s.createElementBlock("svg",cEe,[s.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:i.arrowsColor},null,8,dEe)]))])):s.createCommentVNode("",!0)])],2))]))}},hEe=Kke(uEe,[["__scopeId","data-v-dd3cbf69"]]),pEe={class:"carousel-video-player"},mEe={class:"video-container"},fEe=["id"],gEe={__name:"CarouselVideoPlayer",props:{play:{type:Object,required:!0},videojs:{type:Function,required:!0}},emits:["play-ended"],setup(e,{emit:t}){const a=e,i=s.ref(null),n=s.computed(()=>`p-${a.play.playId}`);function r(){i.value=a.videojs(n.value,{controlBar:{fullscreenToggle:!1},playsinline:!0}),i.value.src({type:"video/mp4",src:`https://golstatsbets.blob.core.windows.net/video-player/${a.play.gameId}_1.mp4`}),i.value.offset({start:a.play.startSeconds,end:a.play.endSeconds}),i.value.on("ended",()=>{t("play-ended")}),a.play.videoPlayer=i}return s.onMounted(()=>{setTimeout(()=>{r()},10)}),(o,l)=>(s.openBlock(),s.createElementBlock("div",pEe,[s.createElementVNode("div",mEe,[s.createElementVNode("video",{id:n.value,class:"video-js",controls:"",preload:"auto","data-setup":"{}"},null,8,fEe)])]))}},yEe=bt(gEe,[["__scopeId","data-v-e4d57431"]]),_Ee=e=>(s.pushScopeId("data-v-bf6136c0"),e=e(),s.popScopeId(),e),bEe=_Ee(()=>s.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},[s.createElementVNode("path",{d:"M5 15L15 5",stroke:"white","stroke-width":"1.7","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),s.createElementVNode("path",{d:"M15 15L5 5",stroke:"white","stroke-width":"1.7","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),vEe=[bEe],SEe={class:"carousel-full-screen__carousel"},wEe={class:"carousel-full-screen__carousel__video-player"},TEe={__name:"CarouselFullScreen",props:{playerQueue:{type:Array,default:()=>[]},playlistIndex:{type:Number,default:0},initialPlay:{type:Object,default:()=>({})},videojs:{type:Function,required:!0}},emits:["close"],setup(e,{emit:t}){const a=e,i=s.ref({wrapAround:!1,itemsToShow:1.2,isMainSlidePriority:!0,areSlidesArrowsVisible:!0,areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"}),n=s.ref(0),r=s.ref(0),o=s.ref(null);function l(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}function c(){return/iPhone|iPad/i.test(navigator.userAgent)}function d(){const y=document.getElementById("carousel-swipe"),b=window.screen.orientation;b.angle==90&&l()||window.innerWidth<window.innerHeight&&l()?y.classList.remove("landscape"):(b.angle==0&&l()||window.innerWidth>window.innerHeight&&l())&&y.classList.add("landscape")}function u(){const y=document.getElementById("carousel-swipe"),b=window.screen.orientation;b.angle==90&&l()||window.innerWidth>window.innerHeight&&l()?y.classList.remove("landscape"):(b.angle==0&&l()||window.innerWidth<window.innerHeight&&l())&&y.classList.add("landscape")}function h(){const y=document.getElementById("carousel-swipe");window.innerWidth>window.innerHeight&&l()?y.classList.remove("landscape"):window.innerWidth<window.innerHeight&&l()&&y.classList.add("landscape")}function m({selectedItemIndex:y}){const b=y-n.value;r.value+=b;const E=a.playerQueue[n.value],D=a.playerQueue[y];E.videoPlayer&&E.videoPlayer.pause(),D.videoPlayer&&D.videoPlayer.play(),n.value=y}function p(){o.value&&o.value.next()}function f(){const y=a.playlistIndex+r.value;r.value=0,n.value=0,t("close",y)}return s.onMounted(()=>{c()?(window.addEventListener("resize",h),h()):(window.addEventListener("orientationchange",d),u()),setTimeout(()=>{const y=document.getElementsByClassName("video-element");y&&y.length&&Array.from(y).forEach((b,E)=>{b.id=`plyrFS${E+1}`})},100)}),s.onBeforeUnmount(()=>{c()?window.removeEventListener("resize",h):window.removeEventListener("orientationchange",d),a.playerQueue.forEach(y=>{y.videoPlayer&&(y.videoPlayer.pause(),y.videoPlayer.dispose())})}),(y,b)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["carousel-full-screen",{landscape:l()}]),id:"carousel-swipe"},[s.createElementVNode("div",{class:"carousel-full-screen__close",onClick:f},vEe),s.createElementVNode("div",SEe,[s.createVNode(s.unref(hEe),s.mergeProps({ref_key:"gscCarousel",ref:o},i.value,{items:e.playerQueue,"default-item-by-prop":{propName:"playId",value:e.initialPlay.playId},onInput:m}),{default:s.withCtx(({item:E})=>[s.createElementVNode("div",wEe,[s.createVNode(yEe,{videojs:e.videojs,play:E,onPlayEnded:p},null,8,["videojs","play"])])]),_:1},16,["items","default-item-by-prop"])])],2))}},CEe=bt(TEe,[["__scopeId","data-v-bf6136c0"]]),kEe=Gd(),Qi=_0e();let yu=null;const _u=["goals","bestPlays"],je={1:{name:"Oportunidad de Gol",weighing:3},2:{name:"Gol",weighing:1},3:{name:"Autogol",weighing:2},4:{name:"Tarjeta Amarilla",weighing:5},5:{name:"Tarjeta Roja",weighing:4},6:{name:"Penal Recibido",weighing:6},7:{name:"Atajada",weighing:8},8:{name:"Asistencia",weighing:9},9:{name:"Participación en Gol",weighing:14},10:{name:"Sobresaliente",weighing:20},11:{name:"Centro Rematado",weighing:11},12:{name:"Corner Rematado",weighing:12},13:{name:"Tiro Libre Rematado",weighing:13},14:{name:"1vs1 Exitoso Ofensivo",weighing:16},15:{name:"1vs1 Exitoso Defensivo",weighing:18},16:{name:"Pase Filtrado",weighing:15},17:{name:"Balón ganado en Área Propia",weighing:19},18:{name:"Balón Recuperado",weighing:17},19:{name:"Gol Recibido",weighing:7},20:{name:"Pases acertados",weighing:100},21:{name:"Balones recuperados en disputa",weighing:100},22:{name:"Asistencias",weighing:100},23:{name:"Participaciones en gol",weighing:100},24:{name:"Tiros a gol",weighing:100},25:{name:"Tiros a gol que llegaron a la portería",weighing:100},26:{name:"Cabeceos en área rival",weighing:100},27:{name:"Cabeceos en área propia",weighing:100},28:{name:"Centros",weighing:100},29:{name:"Centros acertados",weighing:100},30:{name:"1vs1 exitosos ofensivo",weighing:100},31:{name:"1vs1 exitosos ofensivo que terminaron en gol",weighing:100},32:{name:"1vs1 defensivos exitoso",weighing:100},33:{name:"Rechaces",weighing:100},34:{name:"Balones ganados en área rival",weighing:100},35:{name:"Balones ganados en área propia",weighing:100},36:{name:"Faltas cometidas",weighing:100},37:{name:"Faltas recibidas",weighing:100},38:{name:"Tarjetas amarillas",weighing:100},39:{name:"Tarjetas rojas",weighing:100},40:{name:"Atajadas",weighing:100},41:{name:"Tiros de Esquina",weighing:100,bluer:!0},42:{name:"Balones recuperados en cancha rival",weighing:100},43:{name:"Origen de gol",weighing:10}},Cf={player:{"12-55":je[2]},gamesAndTeams:{"12-55":je[2],"54_r-35_r":je[3]}},Zi={games:{"607-608":je[1],"12-55":je[2],"54-35":je[3],"14-52":je[4],"15-53":je[5],"466-477":je[6]},team:{"607-608":je[1],"12-55":je[2],"54-35":je[3],"14-52":je[4],"15-53":je[5],"466-477":je[6],"40-257":je[19],39:je[7]},player:{regular:{12:je[2],35:je[3],10:je[8],27:je[9],607:je[1],61:je[43],519:je[10],"98-101-109-112":je[11],"121-122-127-128-135-136-141-142":je[12],"161-170-179":je[13],702:je[14],730:je[15],466:je[6],217:je[16],"211-232-235-239-242-282-284-289-291-296":je[17],"485-486-487-488":je[18],14:je[4],15:je[5],257:je[19]},goalkeeper:{55:je[2],324:je[8],323:je[9],608:je[1],39:je[7],774:je[14],802:je[15],52:je[4],53:je[5],40:je[19],54:je[3]}}},EEe={"2-20":je[20],483:je[21],10:je[22],27:je[23],510:je[24],"537-540-544-547":je[25],328:je[26],"231-280-238-287-406-294":je[27],"13-25":je[28],"98-101-104-105-109-112-115-116":je[29],4:je[30],88:je[31],5:je[32],34:je[33],11:je[34],23:je[35],17:je[36],18:je[37],14:je[38],15:je[39],39:je[40],"31-32":je[41],"225-224":je[42]},IEe=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],xEe=1,dv={components:{CarouselFullScreen:CEe,SearchFilters:Mke,VideoSearch:ywe,VideoPlayerControls:Mde,VideoPlayer:bue,CurrentMatch:Coe,MatchesList:Ioe,GSCPlayerTeamGame:Ide,GscSwitchComponent:DE},props:{section:{type:Boolean,default:!0},componentWidth:{type:Number,default:767,validator(e){return e>0}},backgroundColor:{type:String,default:"#172531"},user:{type:Object,default:()=>({})},userForDiscoverVideos:{type:Object,default:()=>({})},token:{type:String,default:""},isGSUser:{type:Boolean,default:!0},tournamentSelectedId:{type:Number,default:0},seasonSelectedId:{type:Number,default:0},tournamentsForMediaPlayer:{type:[Map],default:()=>new Map},isFromMexico:{type:Boolean,default:!0},gsData:{type:[Object,null],default:null},isFirstRow:{type:Boolean,default:!1},custom:{type:[Object,null],default:null},autoFillVideos:{type:Boolean,default:!1},isPlayerUser:{type:Boolean,default:!1},isGoalkeeper:{type:[Boolean,Number],default:!1},playerId:{type:Number,default:0},isModalMode:{type:Boolean,default:!0},modalInitialData:{type:Object,default:null},isModal:{type:Boolean,default:!1},isGoalsOnly:{type:Boolean,default:!1},nextRivalTeam:{type:Object,default:()=>({team_id:0})}},data(){return{filterToSetUp:null,videojsLocal:null,player:null,lastSearchResult:null,mobileClass:!1,currentMobileTab:"Estás viendo",currentTabMoreVideos:"Resumen",booleanIsFirstIteration:!0,numberCurrentSeasonId:0,numberLastActionId:0,numberPlayerSpeed:1,numberOptionsMenuTop:0,numberOptionsMenuLeft:0,booleanIsVideoPlayerPlaying:!1,booleanIsOptionsMenuVisible:!1,booleanIsSpeedModalVisible:!1,showModalConfirm:!1,showConfirmPlaylist:!0,showModal:!1,seasonId:0,plays:[],playerQueue:[],playsType:_u[0],playsTypeOptions:_u,playInfo:{},teamsMap:new Map,gamesMap:new Map,roundsMap:new Map,mediaPlayerMode:"games",playerPosition:0,playlistTournament:null,showImage:!1,seasonName:"",playlistSeasonIndex:0,playlistSeasonIndexAux:0,playerModeSelected:1,currentTournament:{seasons:[]},mediaPlayerResizeObserver:null,mediaPlayerWidth:0,lastMediaPlayerWidth:0,selectedType:1,roundsAndGamesWithPlaysMap:null,gameIdSelected:0,seasonSearchingCount:0,hasPlayerActivityInTournament:!1,isAutoPlay:!1,storeModule:this.isModalMode?"mediaModal":"mediaGeneral",isFirstTypeChange:!0,rivalCategories:[],counterAux:0,useIdsFromAdvancedFilter:!1,maxGameId:0,tournamentsForModalLauncher:new Map,lastGameIdWatched:0,isSomeListSelected:!1,booleanIsModesModalOpen:!1,arrayCategoriesIdsToFilter:null,arrayRivalCategoriesIdsToFilter:null,arrayCategoriesIdsRaw:null,booleanIsFilterApplied:!1,stringModeTitle:"Estas viendo: Goles de la jornada",objectMediaPlayerModeFilters:this.getEmptyMediaPlayerModeFilters(),playSeekerPlays:[],geoOptions:{enableHighAccuracy:!0,timeout:5e3,maximumAge:0},coords:null,concatPlays:!1,currentPlayIndex:0,firstInteractionToken:"",firstInteractionUrl:"https://playseeker-api-fi.golstats.com",userBehaviorUrl:"https://playseeker-api-ub.golstats.com",gamesUrl:"https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",booleanIsPlaySeekerMode:!1,objectLastDataToFilter:null,objectPlaySeekerLastPlay:null,objectPlaySync:null,isCarouselFullScreenVisible:!1}},computed:{...pC("mediaModal",["currentPlaylistPlays","modalSectionSelected","isModalOpen","playlistGameId"]),...pC("mediaGeneral",["playersMapMyPlaylists","teamsMapMyPlaylists","gamesMapMyPlaylists","maxGameIdMyPlaylists","player","mapMinutesPlayedCategoryNames","playSeekerUserId","playSeekerCurrentSessionId"]),...fC("mediaModal",["currentPlayerQueueByGames"]),...fC("mediaGeneral",["userPlaylistsSeasonIds"]),currentMatch(){return this.currentPlayerQueueByGames&&this.currentPlayerQueueByGames.length&&this.playlistGameId?this.currentPlayerQueueByGames.find(e=>e.id===this.playlistGameId):null},dynamicClasses(){let e=[];return this.isModal&&e.push("modal-class"),this.mediaPlayerWidth>0&&(this.mediaPlayerWidth<=420?e.push("modal-video__420"):this.mediaPlayerWidth<=750?e.push("modal-video__750"):this.mediaPlayerWidth<=850?e.push("modal-video__850"):this.mediaPlayerWidth<=1024?e.push("modal-video__1024"):this.mediaPlayerWidth<=1100?e.push("modal-video__1100"):this.mediaPlayerWidth<=1280?e.push("modal-video__1280"):this.mediaPlayerWidth<=1520&&e.push("modal-video__1520")),e},carouselPlayerQueue(){return this.playerQueue?this.playerQueue.filter(e=>e.gameId===this.currentMatch.id):[]},mediaPlayerType(){return"general"},extraCategories(){return[...oSe,...lSe,...fSe,..._Se,...wSe,...ESe,...ASe,...hSe].reduce((e,t)=>(t.categories.forEach(a=>{e.set(a,{id:a,name:this.$t&&t.translationKey&&this.$t(t.translationKey)||t.singleName})}),e),new Map)},isMyPlaylistsActive(){return this.isModalMode&&this.modalSectionSelected===2&&this.isSomeListSelected},modalInitialState(){return this.isModalMode?this.$store.state.mediaModal.modalInitialState:{}},modalSectionSelected(){return this.isModalMode?this.$store.state.mediaModal.modalSectionSelected:{}},playerType(){return this.isModalMode?this.$store.state.mediaModal.playerType:0},advancedFilter(){return this.isModalMode?this.$store.state.mediaModal.advancedFilter:{}},applyAdvancedFilterCounter(){return this.isModalMode?this.$store.state.mediaModal.applyAdvancedFilterCounter:0},selectedSubcategoryIds(){return this.isModalMode?this.$store.state.mediaModal.selectedSubcategoryIds:[]},getSeasonIdOnly(){return this.$store.getters[`${this.storeModule}/getSeasonIdOnly`]},getTeamId(){return this.$store.getters[`${this.storeModule}/getTeamId`]},getPlayerId(){return this.$store.getters[`${this.storeModule}/getPlayerId`]},seasonPlayers(){return this.$store.getters[`${this.storeModule}/seasonPlayers`]},selectedTournament(){return this.$store.getters[`${this.storeModule}/selectedTournament`]},isPlayerGoalkeeper(){return this.$store.getters[`${this.storeModule}/isPlayerGoalkeeper`]},hasPlayerPositionId(){return this.$store.getters[`${this.storeModule}/hasPlayerPositionId`]},playersByTeam(){return this.$store.getters[`${this.storeModule}/playersByTeam`]},tournaments(){return this.$store.state[`${this.storeModule}`].tournaments},seasonID(){return this.$store.state[`${this.storeModule}`].seasonID},playlistIndex(){return this.$store.state[`${this.storeModule}`].playlistIndex},retroSeason(){return this.$store.state[`${this.storeModule}`].retroSeason},objectMediaData(){return this.$store.state[`${this.storeModule}`].objectMediaData},playsSaved(){return this.$store.getters["mediaGeneral/playsSaved"]},summaryData(){return null},isSummaryData(){return!!this.summaryData},profilesSeasonId(){return this.isModalMode?0:this.$store.getters["filterGeneral/getSeasonId"]},currentCategories(){return this.isModalMode?this.modalSectionSelected===1?this.isGoalsOnly?Object.keys(Cf.gamesAndTeams).reduce((e,t)=>(t.split("-").forEach(a=>{e.push(a)}),e),[]):this.modalInitialState?this.modalInitialState.categoryIds&&this.modalInitialState.categoryIds.length?this.modalInitialState.categoryIds:this.getBestCategoriesIds():[]:this.useIdsFromAdvancedFilter?this.selectedSubcategoryIds:this.modalInitialState?this.modalInitialState.categoryIds:[]:this.summaryData?Object.keys(this.summaryData.isTeam?Cf.gamesAndTeams:this.summaryData.positionId===1?Zi.player.goalkeeper:Zi.player.regular).reduce((e,t)=>(t.split("-").forEach(a=>{e.push(a)}),e),[]):Object.keys(this.user&&this.user.is_player&&this.hasUserPlayerSelectedSeason?this.user.is_goalkeeper?Zi.player.goalkeeper:Zi.player.regular:Cf.gamesAndTeams).reduce((e,t)=>(t.split("-").forEach(a=>{e.push(a)}),e),[])},allCategories(){const e=new Map,t={...Cf.gamesAndTeams,...EEe};return Object.entries(t).forEach(([a,i])=>{a.split("-").forEach(n=>{e.set(n.includes("_r")?n:Number(n),i)})}),this.setBestCategoriesNames(e),e},queryCategories(){let e="";const t=[];return this.currentCategories.forEach((a,i)=>{let n=typeof a=="string"?a:a.toString(),r=!1;n.includes("_")&&(r=!0,n=Number(n.split("_")[0]),t.push(n)),e+=`${i>0?"&":""}${r?"r":""}categories=${n}`}),this.setRivalCategories(t),e},gamesByRound(){const e={};if(this.roundsAndGamesWithPlaysMap)for(const[t,a]of this.roundsAndGamesWithPlaysMap){const[i,n]=t.split(","),r=Array.from(a.values());r.sort((o,l)=>l.dateTimeMillis-o.dateTimeMillis),e[n]={name:i,games:r}}return e},teams(){return this.teamsMap?Array.from(this.teamsMap.values()):[]},isGoalsActive(){return this.playsType===_u[0]},headerResponsiveClass(){const e=[];return this.mediaPlayerWidth<354?e.push("header--width-354"):this.mediaPlayerWidth<440?e.push("header--width-400"):this.mediaPlayerWidth<541?e.push("header--width-540"):this.mediaPlayerWidth<626?e.push("header--width-626"):this.isFirstRow&&this.mediaPlayerWidth<610&&e.push("header--first-row"),e},playInfoStyle(){return!this.gsData&&this.mediaPlayerWidth<871?{padding:"0 0.5em"}:this.isFirstRow?{"margin-top":"0.3em"}:{}},headerIcon(){return this.custom!=null&&Object.keys(this.custom).length?this.custom.logo:"https://az755631.vo.msecnd.net/content/shieldLogoPc.png"},isUserTournament(){return this.gsData&&this.gsData.tournamentId===this.currentTournament._id},hasUserPlayerSelectedSeason(){return this.user.is_player?this.user.related_seasons.includes(this.numberCurrentSeasonId||this.seasonSelectedId):!1},hasUserTeamSelectedTournament(){return!this.user.is_player&&this.user.team?this.user.related_seasons.includes(this.numberCurrentSeasonId||this.seasonSelectedId):!1}},watch:{isModalOpen(e){e||this.applyObjectMediaData()},seasonSelected(){this.setInitialTitle()},tournamentSelectedId(){this.setInitialTitle()},seasonSelectedId:{handler(e){this.setUpData(e)},immediate:!0},selectedTournament:{deep:!0,handler(e){e&&(this.playlistTournament=e,this.playlistSeasonIndex=0)}},seasonID:{deep:!0,handler(e){e&&(this.playlistSeasonIndexAux=e.index)}},playsType(e){this.isModalMode||this.setPlaysType({mediaPlayerType:this.mediaPlayerType,playsType:e}),this.fetchInfo(!0,this.playlistTournament)},modalSectionSelected(e){e!==1&&(this.isSomeListSelected=!1),[0,1].includes(e)&&(this.playsType!==_u[e]?this.playsType=_u[e]:this.fetchInfo(!0,this.playlistTournament)),this.modalInitialState&&this.modalInitialState.mainSectionType-1===this.modalSectionSelected&&this.checkSeason()},selectedSubcategoryIds(e){e&&e.length&&this.applyAdvancedFilter()},seasonPlayers(e){if(this.getPlayerId&&!this.hasPlayerPositionId){const t=e.get(this.getPlayerId);t&&this.$store.commit(`${this.storeModule}/setPlayer`,t)}},profilesSeasonId:{handler(e){this.setUpData(e)}},tournamentsForMediaPlayer(e){this.seasonSelectedId&&e.size>0&&!this.isModalMode&&this.setUpData(this.seasonSelectedId)},currentPlaylistPlays(e){this.isModalMode&&this.modalSectionSelected===2&&this.setPlaylistPlays(e)},userPlaylistsSeasonIds(e){this.fillMyPlaylistsData(Array.from(e.values()))},seasonId:{immediate:!0,handler(e){this.isModalMode||this.setSeasonId({mediaPlayerType:this.mediaPlayerType,seasonId:e})}},currentCategories:{immediate:!0,handler(e){this.isModalMode||this.setCurrentCategories({mediaPlayerType:this.mediaPlayerType,currentCategories:e})}},selectedType:{immediate:!0,handler(e){this.isModalMode||this.setSelectedType({mediaPlayerType:this.mediaPlayerType,selectedType:e})}},getTeamId:{immediate:!0,handler(e){this.isModalMode||this.setTeamId({mediaPlayerType:this.mediaPlayerType,teamId:e})}},player:{immediate:!0,handler(e){this.isModalMode||this.setModalPlayer({mediaPlayerType:this.mediaPlayerType,player:e})}}},methods:{...mC("mediaModal",["setPlaylistGameId","setPlayerType","setModalInitialState","setIsModalOpen","setIsModalCreatePlayListOpen"]),...mC("mediaGeneral",["setPlayersMapMyPlaylists","setTeamsMapMyPlaylists","setGamesMapMyPlaylists","setMaxGameIdMyPlaylists","setSeasonId","setPlaysType","setCurrentCategories","setSelectedType","setTournamentsForModalLauncher","setTeamId","setModalPlayer","setPlaysToSaveAsFavorites","setPlaySeekerUserId","setPlaySeekerCurrentSessionId"]),applyObjectMediaData(){!this.objectMediaData||this.objectMediaData.booleanAvoidApply||(this.objectMediaData.numberMainSectionType&&this.$store.commit("mediaModal/setModalSectionSelected",this.objectMediaData.numberMainSectionType),this.objectPlaySync=this.objectMediaData.objectPlaySync?{...this.objectMediaData.objectPlaySync,booleanIsApplied:!1}:null,this.stringModeTitle=this.objectMediaData.stringModeTitle,this.playerQueue=[...this.objectMediaData.arrayPlayerQueue],this.$store.commit(`${this.storeModule}/setPlaylistIndex`,{mediaPlayerType:this.isModalMode?null:this.mediaPlayerType,playlistIndex:this.objectMediaData.numberPlaylistIndex}),this.$store.commit(`${this.storeModule}/setCurrentPlayerQueue`,this.playerQueue),this.playlistSeasonIndex=this.objectMediaData.numberPlaylistSeasonIndex,this.booleanIsPlaySeekerMode=this.objectMediaData.booleanIsPlaySeekerMode,this.booleanIsFilterApplied=this.objectMediaData.booleanIsFilterApplied,this.objectMediaData.objectLastDataToFilter&&this.fillDataToFilterData(this.objectMediaData.objectLastDataToFilter))},setPlaylistPlays(e){const t=this.getFormattedPlays(e,!0);this.generatePlayerQueue(null,t,!0)},applyAdvancedFilter(){this.useIdsFromAdvancedFilter=!0,this.fetchInfo(!0,this.playlistTournament)},setRivalCategories(e){this.rivalCategories=e},setUpData(e,t=!1){if(!this.isFromMexico&&!this.isGSUser){this.$emit("finish");return}let a=!1;const i=this.tournamentsForMediaPlayer;e||(a=!0,e=this.seasonSelectedId);const n=Number(e);let r=i.get(n);if(this.tournamentsForModalLauncher=i,this.isModalMode||this.setTournamentsForModalLauncher({mediaPlayerType:this.mediaPlayerType,tournamentsForModalLauncher:i}),!r&&this.isModalMode&&this.modalInitialState&&this.modalInitialState.tournamentsLastClashes&&(r=this.modalInitialState.tournamentsLastClashes.get(e)),this.playlistTournament=r,r){if(this.summaryData&&(this.stringModeTitle=this.summaryData.isTeam?"Estas viendo: Resumen equipo":"Estas viendo: Resumen jugador"),this.playlistSeasonIndex=r.seasons.findIndex(o=>o.id===n),this.playlistSeasonIndexAux=this.playlistSeasonIndex,!t&&!this.summaryData)if(this.isPlayerUser){if(this.hasPlayerActivityInTournament=!!this.getPlayerTournamentBySelectedSeason(n,i),this.hasPlayerActivityInTournament){const o={id:Number(this.user.player)};this.isGoalkeeper&&(o.positionId=1),this.seasonSearchingCount=0,this.$store.commit(`${this.storeModule}/setPlayer`,o),this.$store.commit(`${this.storeModule}/setTeam`,this.gsData.teamId),this.onPlayerSelected();return}!this.hasPlayerActivityInTournament&&this.selectedType!==1&&(this.$store.commit(`${this.storeModule}/setPlayer`,null),this.$store.commit(`${this.storeModule}/setTeam`,null))}else if(this.gsData&&this.gsData.tournamentId===this.playlistTournament._id&&this.gsData.teamId){this.seasonSearchingCount=0,this.$store.commit(`${this.storeModule}/setPlayer`,null),this.$store.commit(`${this.storeModule}/setTeam`,this.gsData.teamId),this.onTeamSelected();return}else this.seasonSearchingCount=0,this.$store.commit(`${this.storeModule}/setPlayer`,null),this.$store.commit(`${this.storeModule}/setTeam`,null);this.fillSeasons([r],a)}},setInitialTitle(){!this.summaryData&&!this.booleanIsFilterApplied&&this.hasUserPlayerSelectedSeason?this.stringModeTitle="Estas viendo: Resumen de jugador":!this.summaryData&&!this.booleanIsFilterApplied&&this.hasUserTeamSelectedTournament?this.stringModeTitle="Estas viendo: Resumen de equipo":this.stringModeTitle="Estas viendo: Goles de la jornada"},closeModalConfirm(){this.showModalConfirm=!1},onModalSpeedClose(){this.booleanIsSpeedModalVisible=!1},onClickSpeed(e){this.numberPlayerSpeed=e,this.$refs.videoPlayer.setSpeedToAllPlayers(e),this.booleanIsSpeedModalVisible=!1},confirmModalConfirm(){this.showModalConfirm=!1,this.$refs.videoPlayer.playCurrentVideoPlayer()},openmodal(){this.$refs.videoPlayer.setAutoPlaysCount(0),this.showModal=!0},closeModal(){this.showModal=!1},getBestCategoriesIds(){let e=null;return this.mediaPlayerMode==="player"?this.isPlayerGoalkeeper?e=Object.keys(Zi.player.goalkeeper):e=Object.keys(Zi.player.regular):e=Object.keys(Zi[this.mediaPlayerMode]),e.reduce((t,a)=>(a.split("-").forEach(i=>{t.push(i)}),t),[])},setBestCategoriesNames(e){[...Object.entries(Zi.player.goalkeeper),...Object.entries(Zi.player.regular),...Object.entries(Zi[this.mediaPlayerMode])].forEach(([t,a])=>{t.split("-").forEach(i=>{e.set(Number(i),a)})})},onPlaysTypeClicked(e){this.playsType=e},getPlayTime(e,t){let a="",i=0;switch(e.matchLapse){case 1:a=e.syncStartFirstTime;break;case 2:a=e.syncStartSecondTime,i=45;break;case 3:a=e.syncStartFirstExtraTime,i=90;break;case 4:a=e.syncStartSecondExtraTime,i=105;break;case 5:a=e.syncStartPenals,i=120;break}return(!a||a==="0")&&(a="00:00"),this.getTimeToSeconds(a)+(this.getTimeToSeconds(e[t])-i*60)},getTimeToSeconds(e){const t=e.indexOf(".")>-1?e.substring(0,e.indexOf(".")):e,[a,i,n]=t.split(":").reverse();return(n?Number(n)*60*60:0)+Number(i)*60+Number(a)},getFormattedPlays(e,t=!1,a=null){this.roundsAndGamesWithPlaysMap=new Map,yu=new Map,e.forEach(n=>{const r=n.reduce((u,h,m)=>(u[kEe[m]]=h,u),{});r.playRaw=n;let o=null,l=null,c=null,d=0;if(t?(c=this.teamsMapMyPlaylists,d=this.maxGameIdMyPlaylists,o=this.gamesMapMyPlaylists.get(r.gameId),l=this.playersMapMyPlaylists.get(r.playerId),r.booleanIsFromMyPlaylists=!0):(c=a?a.mapTeams:this.teamsMap,d=a?a.maxGameId:this.maxGameId,o=a?a.mapGames.get(r.gameId):this.gamesMap.get(r.gameId),l=a?a.mapPlayers.get(r.playerId):this.seasonPlayers.get(r.playerId)),l&&o&&r.gameId<=d){const u=`${o.roundName},${o.roundAbbreviation},${o.seasonId}`,h=this.roundsAndGamesWithPlaysMap.get(u);h?h.set(o.id,o):this.roundsAndGamesWithPlaysMap.set(u,new Map().set(o.id,o)),r.game=o,r.game.awayTeam.id===r.teamId?(r.teamName=r.game.awayTeam.name,r.teamAcronym=r.game.awayTeam.acronym,r.rivalName=r.game.homeTeam.name):(r.teamName=r.game.homeTeam.name,r.teamAcronym=r.game.homeTeam.acronym,r.rivalName=r.game.awayTeam.name),r.playingAs=r.teamId===r.game.homeTeam.id?1:2,r.player=l,r.playerTeamLogo=c.get(r.player.teamId).logo,r.rivalTeamLogo=c.get(r.player.teamId===r.game.homeTeam.id?r.game.awayTeam.id:r.game.homeTeam.id).logo,r.startSeconds=this.getPlayTime(r,"startTime"),r.endSeconds=this.getPlayTime(r,"endTime");const m=new Date(r.gameDate),[p,f]=r.gameHour.split(":");m.setHours(p),m.setMinutes(f),r.dateTimeMillis=m.valueOf(),yu.has(r.gameId)?yu.get(r.gameId).plays.push(r):yu.set(r.gameId,{dateTimeMillis:m.valueOf(),plays:[r]})}});const i=Array.from(yu.values());return i.sort((n,r)=>r.dateTimeMillis-n.dateTimeMillis),i.reduce((n,r)=>(r.plays.sort((o,l)=>+`${o.matchLapse}${o.startTime.replace(/:*\.*/g,"")}`-+`${l.matchLapse}${l.startTime.replace(/:*\.*/g,"")}`),n.push(...r.plays),n),[])},generatePlayerQueue(e,t,a=!1,i=0,n){if(!t.length)return;const r=new Map,o=this.modalInitialState?this.modalInitialState.advancedFilter||{}:{};o&&o.fieldSections&&(o.fieldSectors=o.fieldSections.map(d=>Yi[`${d}`]));let l=0,c=0;if(this.lastSearchResult&&t.filter(d=>{const u=d.game.homeTeam.id===this.lastSearchResult.team.id||d.game.awayTeam.id===this.lastSearchResult.team.id;return u&&console.count("valid team"),u}).filter(d=>{const u=!this.lastSearchResult.game||d.gameId===this.lastSearchResult.game.id;return u&&console.count("valid game"),u}).filter(d=>!this.lastSearchResult.player||d.playerId===this.lastSearchResult.player.id),this.$store.commit("mediaGeneral/setPlaylistIndex",{mediaPlayerType:this.isModalMode?null:this.mediaPlayerType,playlistIndex:0}),this.playerQueue=t.reduce((d,u)=>{const h=`${u.gameId}-${u.playerId}-${u.startTime}`;let m=!1;if(this.modalInitialState&&this.modalInitialState.playsIds)m=!this.modalInitialState.playsIds.has(u.playId);else if(this.lastSearchResult)u.game.homeTeam.id===this.lastSearchResult.team.id||(u.game.awayTeam.id,this.lastSearchResult.team.id),this.lastSearchResult.team&&(m=u.game.homeTeam.id!==this.lastSearchResult.team.id&&u.game.awayTeam.id!==this.lastSearchResult.team.id),!m&&this.lastSearchResult.game&&(m=u.gameId!==this.lastSearchResult.game.id),!m&&this.lastSearchResult.player&&(m=u.playerId!==this.lastSearchResult.player.id);else if(this.isModalMode&&!a&&!n){this.modalInitialState.lastClashesGameId&&(m=u.gameId!==this.modalInitialState.lastClashesGameId);const y=this.getTeamId||this.modalInitialState.teamId;if(y&&(m=u.game.homeTeam.id!==y&&u.game.awayTeam.id!==y),!m&&this.selectedType===2&&(m=(this.modalInitialState&&this.modalInitialState.playerIds?this.modalInitialState.playerIds[0]:this.getPlayerId)!==u.playerId),!m&&o&&(o.playingAs&&o.playingAs.length&&(m=o.requiresRivalTransform&&o.playingAs.length===1&&u.teamId!==y?o.playingAs.includes(u.playingAs):!o.playingAs.includes(u.playingAs)),!m&&o.timeSections&&o.timeSections.length&&(m=!o.timeSections.includes(u.section)),!m&&o.coordinatePoint&&o.fieldSectors)){const b=bl(u[`x${o.coordinatePoint}`],u[`y${o.coordinatePoint}`])+1;m=!o.fieldSectors.includes(b)}if(!m&&y&&this.modalInitialState.matchResult&&this.modalInitialState.matchResult.length){const b=u.game.gameResult===3?3:u.game.gameResult===1&&y===u.game.homeTeam.id||u.game.gameResult===2&&y===u.game.awayTeam.id?1:2;m=!this.modalInitialState.matchResult.includes(b)}}const p=this.lastSearchResult?this.lastSearchResult.categoryIds:this.arrayCategoriesIdsToFilter||e,f=this.arrayRivalCategoriesIdsToFilter||this.rivalCategories;if(a||(n||!m)&&(p.includes(u.categoryId)||f.includes(u.categoryId)&&(this.booleanIsFilterApplied||!this.getTeamId||u.rivalTeamId===this.getTeamId))&&u.startSeconds!==u.endSeconds){const y=r.get(h);let b=this.modalInitialState&&this.modalInitialState.mainSectionType===this.modalSectionSelected+1&&this.modalInitialState.categorySingleName&&!this.modalInitialState.avoidCategorySingleName&&![35,54].includes(u.categoryId)?{name:this.modalInitialState.categorySingleName}:this.allCategories.get(u.categoryId)||this.allCategories.get(`${u.categoryId}_r`)||this.extraCategories.get(u.categoryId)||this.extraCategories.get(`${u.categoryId}_r`);this.modalInitialState&&this.modalInitialState.avoidCategorySingleName?b={name:this.modalInitialState.categorySingleName,weighing:1}:this.isModalMode&&u.categoryId===33&&(b={name:"Fuera de lugar",weighing:1});let E="";b||(E=this.mapMinutesPlayedCategoryNames.get(u.categoryId),E?b={name:E,weighing:1}:!b&&o&&(b={name:o.playListTitle,weighing:100})),b||(b=this.allCategories.get(u.categoryId)||this.allCategories.get(`${u.categoryId}_r`)||this.extraCategories.get(u.categoryId)||this.extraCategories.get(`${u.categoryId}_r`)),c||(this.lastGameIdWatched===u.gameId&&(c=l),l++),y?(b.weighing<y.mainCategory.weighing&&(y.mainCategory=b),y.categoriesNames.add(b.name)):(u.isSaved=this.playsSaved.has(u.playId),u.mainCategory=b,u.categoriesNames=new Set,u.categoriesNames.add(b.name),r.set(h,u),d.push(u))}return d},[]),this.lastSearchResult=null,this.showImage=!1,this.isModalMode){if(a)this.$store.commit("mediaModal/setPlaylistIndex",{mediaPlayerType:this.isModalMode?null:this.mediaPlayerType,playlistIndex:0});else if(this.playerQueue.length)if(n&&this.objectMediaPlayerModeFilters.objectGameSelected){const d=this.playerQueue.findIndex(u=>this.objectMediaPlayerModeFilters.objectGameSelected.game_id===u.game.id);d!==-1&&this.$store.commit("mediaModal/setPlaylistIndex",{mediaPlayerType:this.isModalMode?null:this.mediaPlayerType,playlistIndex:d})}else if(this.selectedType===1&&c)this.$store.commit("mediaGeneral/setPlaylistIndex",{mediaPlayerType:this.isModalMode?null:this.mediaPlayerType,playlistIndex:c});else if(this.modalInitialState&&!this.modalInitialState.lastClashesGameId&&this.modalInitialState.gameIds&&this.selectedType===1){const d=this.playerQueue.findIndex(u=>this.modalInitialState.gameIds.includes(u.game.id));d!==-1?this.$store.commit("mediaModal/setPlaylistIndex",{mediaPlayerType:this.isModalMode?null:this.mediaPlayerType,playlistIndex:d}):this.playerQueue=[]}else if(this.modalInitialState&&this.modalInitialState.playData&&this.modalInitialState.playData.playId){const d=this.playerQueue.findIndex(u=>u.playId===this.modalInitialState.playData.playId);d!==-1&&this.$store.commit("mediaModal/setPlaylistIndex",{mediaPlayerType:this.isModalMode?null:this.mediaPlayerType,playlistIndex:d})}else this.modalInitialState&&this.modalInitialState.currentPlayIndex?this.$store.commit("mediaModal/setPlaylistIndex",{mediaPlayerType:this.isModalMode?null:this.mediaPlayerType,playlistIndex:this.modalInitialState.currentPlayIndex}):this.$store.commit("mediaModal/setPlaylistIndex",{mediaPlayerType:this.isModalMode?null:this.mediaPlayerType,playlistIndex:i});this.$store.commit(`${this.storeModule}/setCurrentPlayerQueue`,this.playerQueue)}this.playerQueue.length||this.emptyListDecision(),this.booleanIsFirstIteration&&(this.booleanIsFirstIteration=!1,this.$emit("finish"))},emptyListDecision(){this.summaryData&&this.summaryData.isTeam&&this.playsType===this.playsTypeOptions[0]?this.playsType=this.playsTypeOptions[1]:!this.summaryData&&!this.isModalMode&&this.onTypeChanged(1)},getGeneralName(e){return e.split(" ").reduce((t,a,i)=>{if(i===0)if(a.includes("."))t.push(a);else{const n=a.toLowerCase().split("");n[0]=n[0].toUpperCase(),t.push(n.join(""))}else t.push(a.toLowerCase());return t},[]).join(" ")},getSingleName(e){return e.split(" ").reduce((t,a)=>{let i=a;return a.endsWith("ciones")?i=a.replace("ciones","ción"):a.endsWith("nales")?i=a.replace("nales","nal"):a.endsWith("vocan")?i=a.replace("vocan","voca"):a.endsWith("lones")?i=a.replace("lones","lón"):a.endsWith("oles")?i=a.replace("oles","ol"):(a.endsWith("os")||a.endsWith("as")||a.endsWith("es"))&&(i=a.slice(0,a.length-1)),t.push(i),t},[]).join(" ")},getCategoryFormat(e=""){const t=this.getGeneralName(e);return this.getSingleName(t)},getPlayerTournamentBySelectedSeason(e,t){const a=this.user.related_seasons.reduce((n,r)=>{const o=t.get(r);return o&&n.push(o._id),n},[]),i=t.get(e);return a.includes(i._id)?i:null},changeTournament(e){},changeSeason(e){},getFilteredPlays(e){return e.reduce((t,a)=>{if(this.objectMediaPlayerModeFilters.objectFilters.numberActionId>1){let i=!0;if(i&&this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayPlayingAs&&([3,4].includes(this.actionId)?i=!(this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.booleanRequiresRivalTransform&&this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayPlayingAs.length===1?a.teamId!==this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.numberTeamId?this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayPlayingAs.includes(a.playingAs):!this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayPlayingAs.includes(a.playingAs):!this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayPlayingAs.includes(a.playingAs)):i=this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayPlayingAs.includes(a.playingAs)),i&&this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayTimeSections&&(i=this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayTimeSections.includes(a.section)),i&&this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.coordinatePoint&&this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayFieldSections){const n=`${bl(a[`x${this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.coordinatePoint}`],a[`y${this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.coordinatePoint}`])+1}`,r=Yi[n],o=this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.requiresRivalTransform&&this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arraySelectedSubcategoryIds.includes(`${a.categoryId}_r`)?Yi[`${gu[n]}`]:r;i=!!this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayFieldSections.find(l=>l.num===o&&l.status)}i&&t.push(a)}else t.push(a);return t},[])},async fillSeasonPlayers(e){try{const t=await this.$store.dispatch("mediaGeneral/getPlayersBySeasons",{seasonId:e.id,returnData:!0});e.mapPlayers=new Map,e.mapPlayersByTeam=t.reduce((a,i)=>{e.mapPlayers.set(i.player_id,{id:i.player_id,name:i.player_name,shortName:i.shortName,photo:i.player_photo,teamId:i.team_id,positionId:i.position_id});const n=a.get(i.team_id);return n?n.push(i):a.set(i.team_id,[i]),a},new Map)}catch(t){throw new Error(t)}},async fillMatchDaysAndGamesV2(e){try{const{seasonsAndGames:t,seasonsAndTeams:a}=await this.fetchSeasonsGamesAndTeamsV2([e.id,...e.related_seasons.map(o=>o.id)],3),i=a.find(o=>o._id===e.id);e.arrayTeams=[],e.mapTeams=new Map;const n=i.teams.reduce((o,l)=>(e.arrayTeams.push(l),e.mapTeams.set(l.team_id,{name:l.colloquial_name,acronym:l.acronym,logo:l.logo,id:l.team_id}),o.set(l.team_id,l),o),new Map);e.mapGames=new Map,e.mapGamesByTeam=new Map;const r=Array.from(t.reduce((o,l)=>(l.games.forEach(c=>{if(c.game_status===1&&c.has_video){(!e.maxGameId||c.game_id>e.maxGameId)&&(e.maxGameId=c.game_id);let d=c.matchday_abbreviation.replace("M","J"),u=c.matchday_abbreviation.replace("M","Jornada ");const h=c.matchday_abbreviation.replace("M","");l.season_type===0?this.objectMediaPlayerModeFilters.objectTournamentSelected.id===33&&(c.seasonId===881?(d=w6[h]||d,u=S6[h]||u):(d=Cm[c.matchday_abbreviation]?c.matchday_abbreviation:d,u=Cm[c.matchday_abbreviation]||u,d==="FINAL"&&(d="F"))):l.season_type===1?(d=v6[c.matchday_abbreviation],u=d):c.matchday_id===182?(d="PI1",u="Play In 1"):c.matchday_id===183?(d="PI2",u="Play In 2"):(d=c.matchday_abbreviation.replace("PO","R"),u="Repechaje"),c.roundAbbreviation=d,c.roundName=u,e.mapGames.set(c.game_id,{id:c.game_id,date:c.date,dateTimeMillis:new Date(c.date_time_utc).valueOf(),homeTeam:e.mapTeams.get(c.home_team),awayTeam:e.mapTeams.get(c.visiting_team),roundAbbreviation:c.roundAbbreviation,roundName:c.roundName,score:c.score,gameResult:c.score[0]>c.score[1]?1:c.score[0]<c.score[1]?2:3,seasonId:l.season_id});const m=o.get(c.roundAbbreviation);c.numberDateTimeMillis=new Date(c.date_time_utc).getTime(),c.homeTeam=n.get(c.home_team),c.awayTeam=n.get(c.visiting_team);const p=e.mapGamesByTeam.get(c.home_team),f=e.mapGamesByTeam.get(c.visiting_team);p?p.push(c):e.mapGamesByTeam.set(c.home_team,[c]),f?f.push(c):e.mapGamesByTeam.set(c.visiting_team,[c]),m?m.arrayGames.push(c):o.set(c.roundAbbreviation,{stringMatchDayAbbreviation:c.roundAbbreviation,stringMatchDayName:c.roundName,arrayGames:[c]})}}),o),new Map).values());r.reverse(),r.forEach(o=>{o.arrayGames.sort((l,c)=>l.numberDateTimeMillis-c.numberDateTimeMillis)}),e.arrayMatchDays=r,this.objectMatchDaySelected=r[0]||{}}catch(t){throw new Error(t)}},async fetchSeasonsGamesAndTeamsV2(e,t,a=""){let i=a;try{i||(i=this.gamesUrl,e.forEach((o,l)=>{i+=`${l===0?"":"&"}seasons=${o}`}));const{data:{data:n,teams:r}}=await Ei.get(i);return{seasonsAndGames:n,seasonsAndTeams:r}}catch(n){if(t>0)return this.fetchSeasonsGamesAndTeamsV2(e,t-1,i);throw new Error(n)}},async fillNextSeasonPlays(){try{this.showImage=!0,this.playlistSeasonIndex++,this.seasonName=this.objectMediaPlayerModeFilters.objectTournamentSelected.arraySeasons[this.playlistSeasonIndex].name,this.playlistSeasonIndex>this.objectMediaPlayerModeFilters.objectTournamentSelected.arraySeasons.length-1&&(this.playlistSeasonIndex=0);const e=this.objectMediaPlayerModeFilters.objectTournamentSelected.arraySeasons[this.playlistSeasonIndex];e.arrayMatchDays||(await this.fillMatchDaysAndGamesV2(e),await this.fillSeasonPlayers(e));const t=await this.fetchPlays(e.id,this.objectMediaPlayerModeFilters.stringQueryCategoryIds,this.objectMediaPlayerModeFilters.stringQueryParams),a=this.getFormattedPlays(t,!1,e),i=this.getFilteredPlays(a);this.generatePlayerQueue(null,i,!1,0,!0)}catch(e){throw new Error(e)}},onPlaylistEnded(){this.booleanIsPlaySeekerMode||(this.isMyPlaylistsActive?this.$store.commit("mediaModal/setPlaylistIndex",{mediaPlayerType:this.isModalMode?null:this.mediaPlayerType,playlistIndex:0}):this.booleanIsFilterApplied?this.fillNextSeasonPlays():(this.playlistSeasonIndex++,this.playlistSeasonIndex>this.playlistTournament.seasons.length-1&&(this.playlistSeasonIndex=0),this.seasonName=this.playlistTournament.seasons[this.playlistSeasonIndex].name,this.showImage=!0,setTimeout(()=>{this.fetchInfo(!1,this.playlistTournament)},4e3)))},onFullScreenChange(){this.isCarouselFullScreenVisible=!0},onTypeChanged(e=1){if((e!==this.selectedType||this.isModalMode)&&(this.isModalMode&&this.setPlayerType(e),this.selectedType!==e||this.isModalMode&&e===1)){if(this.selectedType=e,this.selectedType===2){this.mediaPlayerMode="player";const t=this.summaryData?{id:this.summaryData.id}:this.isModalMode?this.isFirstTypeChange?this.modalInitialState&&this.modalInitialState.goalkeeperIds?{id:this.modalInitialState.goalkeeperIds[0],positionId:1}:{id:this.modalInitialState.playerIds[0]}:this.playInfo.player:this.isUserTournament?null:this.playInfo.player;this.$store.commit(`${this.storeModule}/setPlayer`,t),this.$store.commit(`${this.storeModule}/setTeam`,this.isModalMode?this.playInfo.teamId:this.isUserTournament?this.gsData.teamId:this.playInfo.teamId),this.onPlayerSelected()}else if(this.selectedType===3){this.mediaPlayerMode="team";const t=this.summaryData?this.summaryData.id:this.isModalMode?this.isFirstTypeChange?this.modalInitialState&&this.modalInitialState.teamId:this.playInfo.teamId:this.hasPlayerActivityInTournament||this.isUserTournament?this.gsData.teamId:this.playInfo.teamId;this.$store.commit(`${this.storeModule}/setPlayer`,null),this.$store.commit(`${this.storeModule}/setTeam`,t),this.onTeamSelected()}else this.selectedType===1&&(this.mediaPlayerMode="games",this.$store.commit(`${this.storeModule}/setPlayer`,null),this.$store.commit(`${this.storeModule}/setTeam`,null),this.checkSeason());e!==0&&(this.isFirstTypeChange=!1)}},onMaxInactivityReached(){this.showModalConfirm=!0},checkSeason(){this.gsData||(this.playlistSeasonIndex=this.playlistSeasonIndexAux);const e=this.getSeasonIdOnly===this.seasonId;this.fetchInfo(e,this.playlistTournament)},onPlayerSelected(){this.mediaPlayerMode="player",this.checkSeason()},onTeamSelected(){this.mediaPlayerMode="team",this.checkSeason()},onGameIdSelected(e){this.gameIdSelected=e},onPlaying(){this.isAutoPlay=!0},onPlayChanged(e){if(this.lastGameIdWatched=e.gameId,e.isPlaySeeker)this.playInfo=e,this.objectPlaySeekerLastPlay={playListId:e.payloadData.playlist_id,groupPlayListId:e.payloadData.group_playlist_id,groupId:e.payloadData.group_id,playIndex:e.payloadData.play_number-1},window.localStorage.setItem("playSeekerLastPlay",JSON.stringify(this.objectPlaySeekerLastPlay));else if(e.booleanIsFullGame)this.playInfo={playId:e.playId,booleanIsFullGame:!0,homeTeamLogo:e.objectGame.homeTeam.logo,homeTeamName:e.objectGame.homeTeam.colloquial_name,awayTeamLogo:e.objectGame.awayTeam.logo,awayTeamName:e.objectGame.awayTeam.colloquial_name,arrayScore:e.objectGame.score,gameId:e.gameId,seasonId:e.objectGame.season_id,teamLogo:e.playerTeamLogo,playerLogo:e.player.photo,dateTimeMillis:new Date(e.objectGame.date_time_utc).getTime()};else if(this.summaryData)this.playInfo={playId:e.playId,homeTeamLogo:e.game.homeTeam.logo,homeTeamName:e.game.homeTeam.colloquial_name||e.game.homeTeam.name,awayTeamLogo:e.game.awayTeam.logo,awayTeamName:e.game.awayTeam.colloquial_name||e.game.awayTeam.name,arrayScore:e.game.score,gameId:e.gameId,seasonId:e.seasonId,mainCategoryName:C0(e.mainCategory.name),playerShortName:e.player.shortName,dateTimeMillis:e.dateTimeMillis,playRaw:e.playRaw,startSeconds:e.startSeconds,endSeconds:e.endSeconds};else{if(this.isModalMode){this.setPlaylistGameId(e.game.id);const t=this.playerType===2?e.player.shortName:this.playerType===3?this.modalInitialState&&this.modalInitialState.isRivalSubject&&this.modalInitialState.mainSectionType===this.modalSectionSelected+1?[35,54].includes(e.categoryId)?e.teamname:e.rivalName:[35,54].includes(e.categoryId)?e.rivalName:e.teamName:"";this.$emit("subject-change",t?` - ${t}`:"")}this.playInfo={playId:e.playId,date:e.gameDate,dateTimeMillis:e.dateTimeMillis,arrayScore:e.game.score,objectHomeTeam:e.game.homeTeam,objectAwayTeam:e.game.awayTeam,playerId:e.player.id,playerName:e.player.name,playerShortName:e.player.shortName,playCategory:e.categoryName,teams:`${e.game.homeTeam.name} vs ${e.game.awayTeam.name}`,playerPhoto:e.player.photo,teamLogo:e.playerTeamLogo,rivalLogo:e.rivalTeamLogo,teamId:e.teamId,categoryId:e.categoryId,jersey:e.jersey,mainCategoryName:C0(e.mainCategory.name||e.stringMainCategoryName||""),categoriesNames:Array.from(e.categoriesNames.values()).reduce((t,a,i)=>(t+=`${i===0?"":", "}${a}`,t),""),gameId:e.game.id,roundAbbreviation:e.game.roundAbbreviation,player:e.player,asLocal:e.game.homeTeam.id===e.teamId,momentOfPlay:e.momentOfPlay,seasonId:e.seasonId,playRaw:e.playRaw,startSeconds:e.startSeconds,endSeconds:e.endSeconds,booleanIsFromMyPlaylists:e.booleanIsFromMyPlaylists,tvStations:e.game.tvStations}}},async fetchPlays(e=null,t=null,a=null){try{this.lastGameIdWatched=0;let i="";if(a===null){const r=this.modalInitialState&&this.modalInitialState.playerIds&&this.modalInitialState.playerIds.length;this.modalInitialState.isFeaturedPlayers?(this.modalInitialState.playerIds.forEach(o=>{i+=`&player=${o}`}),this.modalInitialState.isFeaturedPlayers=!1):this.getPlayerId?(this.hasUserPlayerSelectedSeason&&this.getPlayerId===this.user.player||!this.user.is_player)&&(i+=`&player=${this.getPlayerId}`):r?this.modalInitialState.playerIds.forEach(o=>{i+=`&player=${o}`}):(this.getTeamId||this.modalInitialState.teamId)&&(i+=`&team=${this.getTeamId||this.modalInitialState.teamId}`),this.modalInitialState&&this.modalInitialState.isPost&&(i+="&isPost=1")}const n=await Ei.get(`https://cpj4073446.execute-api.us-east-2.amazonaws.com/prod/videos/plays/seasons/${e||this.seasonId}?${t||this.queryCategories}${a||i}`);if(n.data&&n.data.plays){const r=[...n.data.plays];return n.data.plays_rival?r.concat(n.data.plays_rival):r}return[]}catch(i){throw new Error(i)}},async fetchInfo(e,t){try{if(!t)return;let a=this.playlistSeasonIndex;this.playlistTournament=t,this.seasonId=t.seasons[a].id;let i=null,n=null;this.lastSearchResult&&(i="",this.lastSearchResult.player?i+=`&player=${this.lastSearchResult.player.id}`:this.lastSearchResult.team&&(i+=`&team=${this.lastSearchResult.team.id}`),n=this.lastSearchResult.categoryIds.reduce((d,u,h)=>(d+=`${h>0?"&":""}categories=${u}`,d),""));const r=[this.fetchPlays(null,n,i)];if(!e&&t.seasons[a]){const d=[this.seasonId];t.seasons[a].related_seasons&&t.seasons[a].related_seasons.length&&d.push(...t.seasons[a].related_seasons.map(u=>u.id)),r.push(this.$store.dispatch(`${this.storeModule}/fetchSeasonsGamesAndTeams`,{seasons:d})),r.push(this.$store.dispatch(`${this.storeModule}/getPlayersBySeasons`,{seasonId:this.seasonId}))}const[o,l]=await Promise.all(r);if(this.plays=o||[],this.hasPlayerActivityInTournament&&!this.plays.length)if(this.playlistSeasonIndex<this.playlistTournament.seasons.length-1&&this.seasonSearchingCount<1)this.playlistSeasonIndex++,this.seasonSearchingCount++,await this.fetchInfo(!1,t);else return;e||this.formatGamesAndTeams(l);const c=this.getFormattedPlays(this.plays);this.generatePlayerQueue(this.currentCategories.reduce((d,u)=>(typeof u=="string"&&u.includes("_")||d.push(Number(u)),d),[]),c),this.showImage=!1}catch(a){throw new Error(a)}},async fillSeasons(e,t=!1){try{if(e){let a=null;if(this.autoFillVideos?a=e.find(i=>i._id===1):a=e[0],a){if(this.currentTournament=a,this.isModalMode&&!t&&!this.lastSearchResult)return;await this.fetchInfo(!1,this.currentTournament)}}}catch(a){throw new Error(a)}},async fillMyPlaylistsData(e){if(e.length){const t=[this.$store.dispatch("mediaGeneral/fetchSeasonsGamesAndTeams",{seasons:e})];e.forEach(r=>{t.push(this.$store.dispatch("mediaGeneral/getPlayersBySeasons",{seasonId:r,returnData:!0}))});const a=await Promise.all(t),i=a.shift();this.formatGamesAndTeamsForMyPlaylists(i);const n=a.reduce((r,o)=>(o.forEach(l=>{r.set(l.player_id,{id:l.player_id,name:l.player_name,shortName:l.shortName,photo:l.player_photo,teamId:l.team_id,positionId:l.position_id})}),r),new Map);this.setPlayersMapMyPlaylists(n)}},getBestPlaysCategoriesIds(){return Object.keys(Zi[this.mediaPlayerMode]).reduce((e,t)=>(t.split("-").forEach(a=>{e.push(Number(a))}),e),[])},setUpMediaGeneralData(){const{objectCurrentPlay:e,numberCurrentTime:t}=this.$refs.videoPlayer.getCurrentPlayerPlayInfo(),a={numberPlayId:e.playId,numberCurrentTime:t},i={arrayPlayerQueue:[...this.playerQueue],stringModeTitle:this.stringModeTitle,numberPlaylistIndex:this.playlistIndex,numberPlaylistSeasonIndex:this.playlistSeasonIndex,booleanIsFilterApplied:this.booleanIsFilterApplied,booleanIsPlaySeekerMode:this.booleanIsPlaySeekerMode,booleanAvoidApply:this.isModalMode&&this.modalInitialState&&this.modalInitialState.avoidApply&&!this.booleanIsFilterApplied,objectPlaySync:a};this.booleanIsFilterApplied&&(i.objectLastDataToFilter=this.objectLastDataToFilter),this.$store.commit("mediaGeneral/setObjectMediaData",i)},formatGamesAndTeams(e){this.roundsMap=new Map,this.teamsMap=e.seasonsAndTeams.reduce((t,a)=>(a&&a.teams.forEach(i=>{t.has(i.team_id)||t.set(i.team_id,{name:i.colloquial_name,acronym:i.acronym,logo:i.logo,id:i.team_id,players:this.playersByTeam.get(i.team_id)})}),t),new Map),this.gamesMap=e.seasonsAndGames.reduce((t,a)=>{const i=!!(this.currentTournament&&this.currentTournament.tournament&&this.currentTournament.tournament.tournament_type);return a.games.forEach(n=>{n.seasonType=a.season_type,n.seasonId=a.season_id,n.game_id>this.maxGameId&&(this.maxGameId=n.game_id);let r=n.matchday_abbreviation.replace("M","J"),o=n.matchday_abbreviation.replace("M","Jornada ");const l=n.matchday_abbreviation.replace("M","");n.seasonType===0?i&&(n.seasonId===881?(r=w6[l]||r,o=S6[l]||o):(r=Cm[n.matchday_abbreviation]?n.matchday_abbreviation:r,o=Cm[n.matchday_abbreviation]||o,r==="FINAL"&&(r="F"))):n.seasonType===1?(r=v6[n.matchday_abbreviation],o=r):n.matchday_id===182?(r="PI1",o="Play In 1"):n.matchday_id===183?(r="PI2",o="Play In 2"):(r=n.matchday_abbreviation.replace("PO","R"),o="Repechaje"),n.roundAbbreviation=r,n.roundName=o;const c=n.date.split("-"),d={id:n.game_id,date:n.date,dateTimeMillis:new Date(n.date_time_utc).valueOf(),homeTeam:this.teamsMap.get(n.home_team),awayTeam:this.teamsMap.get(n.visiting_team),roundAbbreviation:n.roundAbbreviation,roundName:n.roundName,score:n.score,gameResult:n.score[0]>n.score[1]?1:n.score[0]<n.score[1]?2:3,seasonId:a.season_id,dateFormatted:`${Number(c[2])} ${IEe[Number(c[1])-1]}, ${c[0]}`,tvStations:n.tv_stations?n.tv_stations.join(", "):null},u=this.roundsMap.get(n.roundAbbreviation);u?u.push(d):this.roundsMap.set(n.roundAbbreviation,[d]),t.has(n.game_id)||t.set(n.game_id,d)}),t},new Map)},formatGamesAndTeamsForMyPlaylists(e){const t=e.seasonsAndTeams.reduce((n,r)=>(r&&r.teams.forEach(o=>{n.has(o.team_id)||n.set(o.team_id,{name:o.colloquial_name,acronym:o.acronym,logo:o.logo,id:o.team_id,players:this.playersByTeam.get(o.team_id)})}),n),new Map);let a=0;const i=e.seasonsAndGames.reduce((n,r)=>(r.games.forEach(o=>{o.seasonType=r.season_type,o.seasonId=r.season_id,o.game_id>a&&(a=o.game_id);const l={id:o.game_id,date:o.date,dateTimeMillis:new Date(o.date_time_utc).valueOf(),homeTeam:t.get(o.home_team),awayTeam:t.get(o.visiting_team),roundAbbreviation:o.matchday_abbreviation,roundName:o.matchday_abbreviation.replace("M","MatchDay "),score:o.score,gameResult:o.score[0]>o.score[1]?1:o.score[0]<o.score[1]?2:3,seasonId:r.season_id};n.has(o.game_id)||n.set(o.game_id,l)}),n),new Map);this.setTeamsMapMyPlaylists(t),this.setGamesMapMyPlaylists(i),this.setMaxGameIdMyPlaylists(a)},onPlayerModeClicked(e){this.playerModeSelected=e},onClickModalLauncher(e=1){const{objectCurrentPlay:t,numberCurrentTime:a}=this.$refs.videoPlayer.getCurrentPlayerPlayInfo(),i={numberPlayId:t.playId,numberCurrentTime:a};this.$refs.videoPlayer.pausePlayers();let n=null;if(!e&&this.booleanIsFilterApplied||this.objectMediaPlayerModeFilters.objectSeasonSelected||this.booleanIsPlaySeekerMode||this.booleanIsFilterApplied){const r={arrayPlayerQueue:[...this.playerQueue],stringModeTitle:this.stringModeTitle,numberPlaylistIndex:this.playlistIndex,numberPlaylistSeasonIndex:this.playlistSeasonIndex,booleanIsPlaySeekerMode:this.booleanIsPlaySeekerMode,numberMainSectionType:e,objectPlaySync:i};r.booleanIsFilterApplied=this.booleanIsFilterApplied,this.booleanIsFilterApplied&&(r.objectLastDataToFilter=this.objectLastDataToFilter),this.$store.commit("mediaModal/setModalInitialState",null),this.$store.commit("mediaModal/setObjectMediaData",r)}else n={seasonId:this.seasonId,tournaments:this.tournamentsForModalLauncher,categoryIds:[...this.currentCategories],mainSectionType:e,matchResult:[1,2,3],currentPlayIndex:this.playlistIndex,objectPlaySync:i},this.getPlayerId?this.isPlayerGoalkeeper?n.goalkeeperIds=[this.getPlayerId]:n.playerIds=[this.getPlayerId]:this.getTeamId&&(n.teamId=this.getTeamId),this.$store.commit("mediaModal/setObjectMediaData",null),this.$store.commit("mediaModal/setModalInitialState",n);this.$store.commit("mediaModal/setIsModalOpen",!0)},setUpResizeObserver(){if(window.ResizeObserver)this.mediaPlayerResizeObserver=new window.ResizeObserver(()=>{this.mediaPlayerWidth=this.$refs.mediaPlayer.clientWidth}),this.mediaPlayerResizeObserver.observe(this.$refs.mediaPlayer);else throw new Error("Resize observer not supported!")},onClickMyPlaylists(){this.isModalMode?this.$store.commit("mediaModal/setModalSectionSelected",2):this.onClickModalLauncher(2)},getEmptyMediaPlayerModeFilters(){return{objectTournamentSelected:null,objectSeasonSelected:null,stringQueryCategoryIds:"",stringQueryParams:"",objectFilters:{numberActionId:0,numberMediaPlayerType:null,objectCategorySelected:null,objectAdvancedFilters:{numberTeamId:null,numberPlayerId:null,arraySelectedSubcategoryIds:[],booleanRequiresRivalTransform:!1,numberCoordinatePoint:2,arrayPlayingAs:[],arrayTimeSections:[],arrayFieldSections:[]}}}},fillDataToFilterData(e){this.objectLastDataToFilter=e,this.arrayCategoriesIdsToFilter=e.arrayCategoriesIds,this.arrayRivalCategoriesIdsToFilter=e.arrayRivalCategoriesIds,this.arrayCategoriesIdsRaw=e.arrayCategoriesIdsRaw,this.objectMediaPlayerModeFilters.stringQueryCategoryIds=e.stringQueryCategoryIds,this.objectMediaPlayerModeFilters.stringQueryParams=e.stringQueryParams,this.objectMediaPlayerModeFilters.objectTournamentSelected=e.objectTournamentSelected,this.objectMediaPlayerModeFilters.objectSeasonSelected=e.objectSeasonSelected,this.objectMediaPlayerModeFilters.objectGameSelected=e.objectGameSelected,this.objectMediaPlayerModeFilters.objectFilters.numberMediaPlayerType=e.objectFilters.numberMediaPlayerType,this.objectMediaPlayerModeFilters.objectFilters.objectCategorySelected=e.objectFilters.objectCategorySelected,this.objectMediaPlayerModeFilters.objectFilters.numberActionId=e.objectFilters.numberActionId,this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.numberTeamId=e.objectFilters.objectAdvancedFilters.numberTeamId,this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.numberPlayerId=e.objectFilters.objectAdvancedFilters.numberPlayerId,this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.booleanIsPlayerGoalKeeper=e.objectFilters.objectAdvancedFilters.booleanIsPlayerGoalKeeper,this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arraySelectedSubcategoryIds=e.objectFilters.objectAdvancedFilters.arraySelectedSubcategoryIds,this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.booleanRequiresRivalTransform=e.objectFilters.objectAdvancedFilters.booleanRequiresRivalTransform,this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.numberCoordinatePoint=e.objectFilters.objectAdvancedFilters.numberCoordinatePoint,this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayPlayingAs=e.objectFilters.objectAdvancedFilters.arrayPlayingAs,this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayTimeSections=e.objectFilters.objectAdvancedFilters.arrayTimeSections,this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayFieldSections=e.objectFilters.objectAdvancedFilters.arrayFieldSections,this.selectedType=e.numberSelectedType},onApplyFilters(e){this.stringModeTitle=`Estas viendo: ${e.stringControlsTitle}`,this.booleanIsPlaySeekerMode=!1,this.booleanIsFilterApplied=!0,this.fillDataToFilterData(e),this.playlistSeasonIndex=e.objectTournamentSelected.numberSeasonSelectedIndex,this.generatePlayerQueue(null,e.arrayFormattedPlays,!1,e.numberPlaylistIndex,!0)},onClickOptions(e){this.booleanIsOptionsMenuVisible=!0,this.numberOptionsMenuTop=e.numberY,this.numberOptionsMenuLeft=e.numberX},onClickOpenModes(){this.$refs.videoPlayer.pausePlayers(),this.booleanIsModesModalOpen=!0},onClickFullGame(e){this.booleanIsPlaySeekerMode=!1,this.booleanIsFilterApplied=!0;const t=e.arrayMatchDayGames.findIndex(a=>a.game_id===e.objectGame.game_id);t!==-1&&(this.stringModeTitle=`Estas viendo: ${e.stringControlsTitle}`,this.booleanIsPlaySeekerMode=!1,this.playerQueue=e.arrayMatchDayGames.map(a=>(a.homeTeam.name=a.homeTeam.colloquial_name,a.awayTeam.name=a.awayTeam.colloquial_name,{booleanIsFullGame:!0,objectGame:a,gameId:a.game_id,startSeconds:0,endSeconds:null})),this.$store.commit(`${this.storeModule}/setPlaylistIndex`,{mediaPlayerType:this.isModalMode?null:this.mediaPlayerType,playlistIndex:t}),this.$store.commit(`${this.storeModule}/setCurrentPlayerQueue`,this.playerQueue))},onModesModalClose(){this.booleanIsModesModalOpen=!1,this.onClickSpeed(1)},onClickMode(){this.$refs.videoPlayer.setSpeedToAllPlayers(1)},onClickSurpriseMe(){this.booleanIsFilterApplied=!1,this.booleanIsPlaySeekerMode=!0,this.fillPlaySeekerPlays()},getPlaySeekerCategoryName(e){if(e.categoryId===33)return"Fuera de lugar";if([35,54].includes(e.categoryId))return"Auto gol";{const t=this.allCategories.get(e.categoryId)||this.allCategories.get(`${e.categoryId}_r`)||this.extraCategories.get(e.categoryId)||this.extraCategories.get(`${e.categoryId}_r`);return t?t.name:"S/N"}},async setUpTokens(){try{const e=await(await fetch(`${this.firstInteractionUrl}/token`,{method:"POST",mode:"cors",headers:{Authorization:"Basic bXN1c2VyQWRtaW46bXN1c2VycGFzc3dvcmRBZG1pbg=="},referrerPolicy:"no-referrer"})).json();this.firstInteractionToken=e.token}catch(e){throw new Error(e)}},async fillPlaySeekerPlays(){try{if(this.stringModeTitle="Sorpréndeme",this.booleanIsPlaySeekerMode){const e=await(await fetch(`${this.firstInteractionUrl}/firstInteraction/${xEe}/${this.user.username}/playlist`,{method:"GET",headers:{Authorization:`Bearer ${this.firstInteractionToken}`},referrerPolicy:"no-referrer"})).json();e&&(this.setPlaySeekerUserId(e.user_id),this.setPlaySeekerCurrentSessionId(this.getPlaySeekerSessionId(this.playSeekerUserId)),this.$emit("change-user-id",this.playSeekerUserId),window.localStorage.setItem("playSeekerUserId",this.playSeekerUserId),this.formatPlaySeekerPlays(e))}}catch(e){throw new Error(e)}},formatPlaySeekerPlays(e){let t=[];e&&e.playlist&&e.playlist.length&&(t=e.playlist.reduce((i,n,r)=>{const o={...Object.entries(Qi).reduce((h,[m,p])=>(h[m]=n[p],h),{}),isPlaySeeker:!0,startSeconds:n[Qi.startTime],endSeconds:n[Qi.endTime],totalSeconds:Math.floor(n[Qi.endTime]-n[Qi.startTime]),payloadData:{play_id:n[Qi.playId],total_plays:e.total_plays,play_number:r+1,group_playlist_id:e.group_playlist_id,playlist_id:e.playlist_id,group_id:e.group_id,moment_of_play:n[Qi.momentOfPlay],play_type:n[Qi.categoryId],viewer_second_start:Math.floor(n[Qi.startTime]),intended_second_start:Math.floor(n[Qi.startTime]),intended_second_end:Math.floor(n[Qi.endTime]),latitude_of_user:null,longitude_of_user:null}},[l,c]=o.playerName.split(","),d=l.split(" ");let u="";for(const h of d)if(u+=` ${h}`,h.length>3)break;if(o.playerShortName=c&&l?`${c.trim().charAt(0)}.${u}`:"",!o.mainCategoryName){o.mainCategoryName=C0(this.getPlaySeekerCategoryName(o));const[h,m]=o.finalScore.split(" - ");o.arrayScore=[Number(h),Number(m)]}return i.push(o),i},[]));let a=[];this.concatPlays?a=[...this.playerQueue.splice(0,this.currentPlayIndex+1),...t]:a=t,this.playerQueue=a,this.objectPlaySeekerLastPlay&&this.objectPlaySeekerLastPlay.playListId===e.playlist_id&&this.objectPlaySeekerLastPlay.groupPlayListId===e.group_playlist_id&&this.objectPlaySeekerLastPlay.groupId===e.group_id&&this.$store.commit(`${this.storeModule}/setPlaylistIndex`,{mediaPlayerType:this.isModalMode?null:this.mediaPlayerType,playlistIndex:this.objectPlaySeekerLastPlay.playIndex}),this.$store.commit(`${this.storeModule}/setCurrentPlayerQueue`,this.playerQueue)},getPlaySeekerSessionId(e){return e?`S_${e}${Date.now()}`:null},getRandomPercentage(){return Math.floor(Math.random()*60+20)},async sendUserBehavior(e,t,a){try{if(this.playInfo.isPlaySeeker){const i={user_id:this.playSeekerUserId,current_session_id:this.playSeekerCurrentSessionId,last_play:{...this.playInfo.payloadData}};i&&(i.last_play.action=t,i.last_play.percentage_viewed=t===1?100:this.getRandomPercentage(),i.last_play.viewer_second_end=e||this.playInfo.endSeconds,i.last_play.date_time_of_user_action=a,this.coords&&(i.last_play.latitude_of_user=this.coords.latitude,i.last_play.longitude_of_user=this.coords.latitude));const n=await fetch(`${this.userBehaviorUrl}/user-behavior`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});if(n.status===200){const r=await n.json();r&&(this.concatPlays=!0,this.formatPlaySeekerPlays(r))}else this.concatPlays=!1}}catch(i){throw new Error(i)}},onGeoSuccess(e){this.coords=e.coords},onGeoError(e){throw new Error(e)},onClickTimeButton(e){e.numberType===1?this.$refs.videoPlayer.addSecondsToCurrentPlayer(e.numberValue*e.numberValueFactor):e.numberType===2?this.booleanIsSpeedModalVisible=!0:this.booleanIsVideoPlayerPlaying?this.$refs.videoPlayer.pausePlayers():this.$refs.videoPlayer.playCurrentPlayer()},onClickOption(e){this.$refs.videoPlayer.pausePlayers(),e===1?dp.emit("click-game",{gameId:this.playInfo.gameId,gameStatus:1,dateTimeUTC:new Date(this.playInfo.dateTimeMillis).toISOString(),seasonId:this.playInfo.seasonId,stringSectionName:"lineups"}):e===2?this.onClickDownload():e===3?(this.setPlaysToSaveAsFavorites([this.playInfo.playRaw]),this.setIsModalCreatePlayListOpen(!0)):e===4&&(this.isModalMode?this.$emit("show-list"):this.onClickModalLauncher())},onClickNextBack(e){this.$refs.videoPlayer.onMoveToPlayClicked(e)},onPlayIteration({iterationTime:e,userAction:t,dateTimeIsoString:a}){this.booleanIsPlaySeekerMode&&this.sendUserBehavior(e,t,a)},onClickAnalyst(){this.onClickModalLauncher()},onClickFullscreen(){this.isCarouselFullScreenVisible=!0},onClickAdvnacedFilterType(e){},onChangeSeason(e){this.numberCurrentSeasonId=Number(e),this.isAutoPlay=!1,this.objectMediaPlayerModeFilters=this.getEmptyMediaPlayerModeFilters(),this.setUpData(e)},onUpdateSearchResult(e){this.lastSearchResult=e,this.setUpData(e.seasonId)},onClickClose(){this.$emit("close")},onClickCloseCarousel(e){e&&this.$store.commit("mediaModal/setPlaylistIndex",{mediaPlayerType:null,playlistIndex:e}),this.isCarouselFullScreenVisible=!1},getPlayerOptions(){return{playbackRates:[.5,1,1.5,2],autoplay:!1,controls:!0,controlBar:{children:["playToggle","volumePanel","playbackRateMenuButton","CurrentTimeDisplay","progressControl","remainingTimeDisplay","fullscreenToggle"],pictureInPictureToggle:!1,volumePanel:{inline:!1}},liveui:!0,preload:"auto",fluid:!0}},videoJsInit(){_e.registerPlugin("offset",$1),this.videojsLocal=_e},onClickAdvancedFilterType(e){this.filterToSetUp=e,setTimeout(()=>{this.filterToSetUp=null},100)}},async created(){try{this.videoJsInit(),Ei.defaults.headers.common.Authorization=this.token,this.modalInitialData&&this.$store.commit("mediaModal/setModalInitialState",this.modalInitialData),dp.on("change-season",this.onChangeSeason),dp.on("some-list-selected",()=>{this.isSomeListSelected=!0}),this.autoFillVideos&&await this.$store.dispatch(`${this.storeModule}/fetchTournaments`)}catch(e){throw new Error(e)}},mounted(){this.isModalMode?setTimeout(()=>{this.modalInitialState?(this.objectPlaySync=this.modalInitialState.objectPlaySync?{...this.modalInitialState.objectPlaySync,booleanIsApplied:!1}:null,this.setUpData(this.modalInitialState.seasonId),this.onTypeChanged(this.modalInitialState.playListType),this.$store.commit("mediaModal/setModalSectionSelected",this.modalInitialState.mainSectionType||1),this.stringModeTitle=`Estas viendo: ${this.modalInitialState.teamId?"Resumen de equipo":this.modalInitialState.playerIds&&this.modalInitialState.playerIds.length?"Resumen de jugador":this.modalInitialState.gameIds&&this.modalInitialState.gameIds.length?"Resumen de partido":""}`):this.objectMediaData&&(this.$store.commit("mediaModal/setModalSectionSelected",1),this.applyObjectMediaData())},100):this.seasonSelectedId&&this.tournamentsForMediaPlayer.size>0&&(this.setUpData(this.seasonSelectedId),this.setInitialTitle()),setTimeout(()=>{this.setUpResizeObserver()},1e3)},beforeUnmount(){this.isSomeListSelected=!1,this.mediaPlayerResizeObserver&&(this.mediaPlayerResizeObserver.disconnect(),this.mediaPlayerResizeObserver=null),this.$store.commit(`${this.storeModule}/setPlayer`,null),this.$store.commit(`${this.storeModule}/setTeam`,null),this.setPlaylistGameId(0)}},nP=()=>{s.useCssVars(e=>({"5611c94f":e.backgroundColor}))},rP=dv.setup;dv.setup=rP?(e,t)=>(nP(),rP(e,t)):nP;const bu=e=>(s.pushScopeId("data-v-9f287f4b"),e=e(),s.popScopeId(),e),NEe={class:"modal-video__videos"},AEe=bu(()=>s.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},[s.createElementVNode("path",{d:"M5 15L15 5",stroke:"white","stroke-width":"1.7","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),s.createElementVNode("path",{d:"M15 15L5 5",stroke:"white","stroke-width":"1.7","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),PEe=[AEe],OEe={class:"modal-video__videos__search-and-filters"},BEe={class:"modal-video__search-and-filters__search"},DEe={class:"modal-video__search-and-filters__advanced"},LEe={class:"modal-video__videos__video"},REe={key:1,class:"modal-video__detail"},MEe={class:"modal-video__img-container"},FEe=["src"],VEe={class:"modal-video__img-container overlap"},UEe=["src"],jEe={class:"modal-video__description"},zEe={key:2,class:"modal-video__date"},HEe={class:"discover-container"},qEe=bu(()=>s.createElementVNode("div",{class:"title-value"},"Descubre videos",-1)),WEe={class:"modal-video__matches"},GEe={class:"current-match-info"},KEe=bu(()=>s.createElementVNode("h4",null,"Estás viendo:",-1)),XEe={key:0},JEe={class:"modal-video__game-list"},YEe=bu(()=>s.createElementVNode("div",{class:"modal-video__game-list__title"},"Otros partidos",-1)),QEe={key:0,class:"discover-videos"},ZEe=bu(()=>s.createElementVNode("div",{class:"title-value"},"Descubre videos",-1));function $Ee(e,t,a,i,n,r){const o=s.resolveComponent("CarouselFullScreen"),l=s.resolveComponent("VideoSearch"),c=s.resolveComponent("SearchFilters"),d=s.resolveComponent("VideoPlayer"),u=s.resolveComponent("VideoPlayerControls"),h=s.resolveComponent("GscSwitchComponent"),m=s.resolveComponent("GSCPlayerTeamGame"),p=s.resolveComponent("CurrentMatch"),f=s.resolveComponent("MatchesList");return s.openBlock(),s.createElementBlock(s.Fragment,null,[n.isCarouselFullScreenVisible?(s.openBlock(),s.createBlock(o,{key:0,videojs:n.videojsLocal,"player-queue":r.carouselPlayerQueue,"playlist-index":r.playlistIndex,"initial-play":n.playInfo,onClose:r.onClickCloseCarousel},null,8,["videojs","player-queue","playlist-index","initial-play","onClose"])):s.createCommentVNode("",!0),s.createElementVNode("div",{ref:"mediaPlayer",class:s.normalizeClass(["modal-video",r.dynamicClasses])},[s.createElementVNode("div",NEe,[a.isModal?(s.openBlock(),s.createElementBlock("div",{key:0,class:"modal-video__close",onClick:t[0]||(t[0]=(...y)=>r.onClickClose&&r.onClickClose(...y))},PEe)):s.createCommentVNode("",!0),s.createElementVNode("div",OEe,[s.createElementVNode("div",BEe,[s.createVNode(l,{clientWidth:this.mediaPlayerWidth,onClickAdvancedFilterType:r.onClickAdvancedFilterType,"onUpdate:searchResult":r.onUpdateSearchResult},null,8,["clientWidth","onClickAdvancedFilterType","onUpdate:searchResult"])]),s.createElementVNode("div",DEe,[s.createVNode(c,{ref:"searchFilters",clientWidth:this.mediaPlayerWidth,"filter-type-to-set-up":n.filterToSetUp,onApplyFilters:r.onApplyFilters},null,8,["clientWidth","filter-type-to-set-up","onApplyFilters"])])]),s.createElementVNode("div",LEe,[s.createVNode(d,{ref:"videoPlayer","player-queue":n.playerQueue,"is-v2":"","is-gs":"","is-from-mexico":a.isFromMexico,"is-gs-user":a.isGSUser,"container-width":n.mediaPlayerWidth,"game-id-selected":n.gameIdSelected,"is-first-row":!1,"plays-type-selected":n.selectedType,"is-auto-play":n.isAutoPlay,"is-modal-mode":a.isModalMode,"are-types-hidden":r.isSummaryData||r.isMyPlaylistsActive,"is-play-seeker-mode":n.booleanIsPlaySeekerMode,"play-sync":n.objectPlaySync,onPlayIteration:r.onPlayIteration,onPlaying:r.onPlaying,onPlayChanged:r.onPlayChanged,onMaxInactivityReached:r.onMaxInactivityReached,onPlaylistEnded:r.onPlaylistEnded,onChangeType:r.onTypeChanged,onPlay:t[1]||(t[1]=y=>n.booleanIsVideoPlayerPlaying=!0),onPause:t[2]||(t[2]=y=>n.booleanIsVideoPlayerPlaying=!1),onClickFullScreen:r.onClickFullscreen},null,8,["player-queue","is-from-mexico","is-gs-user","container-width","game-id-selected","plays-type-selected","is-auto-play","is-modal-mode","are-types-hidden","is-play-seeker-mode","play-sync","onPlayIteration","onPlaying","onPlayChanged","onMaxInactivityReached","onPlaylistEnded","onChangeType","onClickFullScreen"]),s.createVNode(u,{"play-info":n.playInfo,onClickNextBack:r.onClickNextBack,clientWidth:this.mediaPlayerWidth},null,8,["play-info","onClickNextBack","clientWidth"])]),n.playInfo&&n.playInfo.objectHomeTeam?(s.openBlock(),s.createElementBlock("div",REe,[s.createElementVNode("div",MEe,[s.createElementVNode("img",{class:"modal-video__img",src:n.playInfo.teamLogo},null,8,FEe)]),s.createElementVNode("div",VEe,[s.createElementVNode("img",{class:"modal-video__img",src:n.playInfo.playerPhoto},null,8,UEe)]),s.createElementVNode("div",jEe,s.toDisplayString(n.playInfo.objectHomeTeam.acronym)+" "+s.toDisplayString(n.playInfo.arrayScore[0])+" : "+s.toDisplayString(n.playInfo.arrayScore[1])+" "+s.toDisplayString(n.playInfo.objectAwayTeam.acronym)+" I "+s.toDisplayString(n.playInfo.roundAbbreviation)+" "+s.toDisplayString(n.playInfo.tvStations||""),1)])):s.createCommentVNode("",!0),!n.mobileClass&&n.playInfo?(s.openBlock(),s.createElementBlock("div",zEe,s.toDisplayString(n.playInfo.date),1)):s.createCommentVNode("",!0),s.createElementVNode("div",HEe,[a.userForDiscoverVideos&&a.nextRivalTeam?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[qEe,n.mobileClass?(s.openBlock(),s.createBlock(h,{key:0,buttons:["Estás viendo","Otros partidos","Descubre videos"],class:"current-match__tabs",selectedOption:n.currentMobileTab,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",backgroundOptionActive:"transparent",onInput:t[3]||(t[3]=y=>n.currentMobileTab=y)},null,8,["selectedOption"])):s.createCommentVNode("",!0),a.section?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createVNode(h,{style:{"margin-left":"25px"},buttons:["Resumen","Proximo rival"],onInput:t[4]||(t[4]=y=>n.currentTabMoreVideos=y),background:"trasparent",height:"28px",width:"160px","font-family":"Poppins-Regular",type:2,arrow:!1,selectedOption:n.currentTabMoreVideos},null,8,["selectedOption"]),this.userForDiscoverVideos.is_player?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[n.currentTabMoreVideos=="Resumen"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[!n.mobileClass||n.currentMobileTab==="Resumen"?(s.openBlock(),s.createBlock(m,{key:0,type:8,style:{"margin-top":"-30px"},title:"",backgroundColor:"#172531",data:{season:a.userForDiscoverVideos.season,player:a.userForDiscoverVideos.player,category:1255e3},width:"100%"},null,8,["data"])):s.createCommentVNode("",!0)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[!n.mobileClass||n.currentMobileTab==="Resumen"?(s.openBlock(),s.createBlock(m,{key:0,type:8,style:{"margin-top":"-30px"},title:"",backgroundColor:"#172531",data:{season:a.userForDiscoverVideos.season,player:a.userForDiscoverVideos.player,category:1255e3},width:"100%"},null,8,["data"])):s.createCommentVNode("",!0)],64))],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[n.currentTabMoreVideos=="Resumen"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[!n.mobileClass||n.currentMobileTab==="Resumen"?(s.openBlock(),s.createBlock(m,{key:0,type:7,title:"",style:{"margin-top":"-30px"},backgroundColor:"#172531",data:{season:a.userForDiscoverVideos.season,team:a.userForDiscoverVideos.team,category:1255e3},width:"100%"},null,8,["data"])):s.createCommentVNode("",!0)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[!n.mobileClass||n.currentMobileTab==="Resumen"?(s.openBlock(),s.createBlock(m,{key:0,type:7,style:{"margin-top":"-30px"},title:"",backgroundColor:"#172531",data:{season:a.userForDiscoverVideos.season,team:a.nextRivalTeam.team_id,category:1255e3},width:"100%"},null,8,["data"])):s.createCommentVNode("",!0)],64))],64))],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:2},[!n.mobileClass||n.currentMobileTab==="Resumen"?(s.openBlock(),s.createBlock(m,{key:0,style:{"margin-top":"-30px"},type:13,data:{season:a.userForDiscoverVideos.season,category:1255e3},width:"100%",backgroundColor:"#172531",title:""},null,8,["data"])):s.createCommentVNode("",!0)],64))],64)):s.createCommentVNode("",!0)])]),s.createElementVNode("div",WEe,[s.createElementVNode("div",GEe,[n.mobileClass?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[KEe,n.playInfo?(s.openBlock(),s.createElementBlock("h3",XEe,s.toDisplayString(n.playInfo.mainCategoryName),1)):s.createCommentVNode("",!0)],64)),r.currentMatch&&(!n.mobileClass||n.currentMobileTab==="Estás viendo")?(s.openBlock(),s.createBlock(p,{key:1,currentMatch:r.currentMatch,mobileClass:"",clientWidth:this.mediaPlayerWidth},null,8,["currentMatch","clientWidth"])):s.createCommentVNode("",!0)]),s.createElementVNode("div",JEe,[YEe,!n.mobileClass||n.currentMobileTab==="Otros partidos"?(s.openBlock(),s.createBlock(f,{key:0,matches:e.currentPlayerQueueByGames,mobileClass:"",clientWidth:this.mediaPlayerWidth},null,8,["matches","clientWidth"])):s.createCommentVNode("",!0)])]),a.userForDiscoverVideos&&a.nextRivalTeam?(s.openBlock(),s.createElementBlock("div",QEe,[ZEe,n.mobileClass?(s.openBlock(),s.createBlock(h,{key:0,buttons:["Estás viendo","Otros partidos","Descubre videos"],class:"current-match__tabs",selectedOption:n.currentMobileTab,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",backgroundOptionActive:"transparent",onInput:t[5]||(t[5]=y=>n.currentMobileTab=y)},null,8,["selectedOption"])):s.createCommentVNode("",!0),a.section?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createVNode(h,{style:{"margin-left":"25px"},buttons:["Resumen","Proximo rival"],onInput:t[6]||(t[6]=y=>n.currentTabMoreVideos=y),background:"trasparent",height:"28px",width:"160px","font-family":"Poppins-Regular",type:2,arrow:!1,selectedOption:n.currentTabMoreVideos},null,8,["selectedOption"]),this.userForDiscoverVideos.is_player?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[n.currentTabMoreVideos=="Resumen"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[!n.mobileClass||n.currentMobileTab==="Resumen"?(s.openBlock(),s.createBlock(m,{key:0,type:8,style:{"margin-top":"-30px"},title:"",backgroundColor:"#172531",data:{season:a.userForDiscoverVideos.season,player:a.userForDiscoverVideos.player,category:1255e3},width:"100%"},null,8,["data"])):s.createCommentVNode("",!0)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[!n.mobileClass||n.currentMobileTab==="Resumen"?(s.openBlock(),s.createBlock(m,{key:0,type:8,style:{"margin-top":"-30px"},title:"",backgroundColor:"#172531",data:{season:a.userForDiscoverVideos.season,player:a.userForDiscoverVideos.player,category:1255e3},width:"100%"},null,8,["data"])):s.createCommentVNode("",!0)],64))],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[n.currentTabMoreVideos=="Resumen"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[!n.mobileClass||n.currentMobileTab==="Resumen"?(s.openBlock(),s.createBlock(m,{key:0,type:7,title:"",style:{"margin-top":"-30px"},backgroundColor:"#172531",data:{season:a.userForDiscoverVideos.season,team:a.userForDiscoverVideos.team,category:1255e3},width:"100%"},null,8,["data"])):s.createCommentVNode("",!0)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[!n.mobileClass||n.currentMobileTab==="Resumen"?(s.openBlock(),s.createBlock(m,{key:0,type:7,style:{"margin-top":"-30px"},title:"",backgroundColor:"#172531",data:{season:a.userForDiscoverVideos.season,team:a.nextRivalTeam.team_id,category:1255e3},width:"100%"},null,8,["data"])):s.createCommentVNode("",!0)],64))],64))],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:2},[!n.mobileClass||n.currentMobileTab==="Resumen"?(s.openBlock(),s.createBlock(m,{key:0,style:{"margin-top":"-30px"},type:13,data:{season:a.userForDiscoverVideos.season,category:1255e3},width:"100%",backgroundColor:"#172531",title:""},null,8,["data"])):s.createCommentVNode("",!0)],64))])):s.createCommentVNode("",!0)],2)],64)}const e5e=bt(dv,[["render",$Ee],["__scopeId","data-v-9f287f4b"]]);g0e();const t5e={class:"container"},a5e=!1,i5e=si({__name:"GSCMediaPlayer",setup(e){const t=s.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE");Sc.defaults.headers.common.Authorization=t.value;const a=[{_id:44,seasons:[{name:"Clausura 2023",related_seasons:[{type:1,id:1752}],id:1713,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1592}],id:1542,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1521}],id:1486,type:0}],tournament:{show_logos:0,tournament_type:0,name:"Sub-20",logo:null,id:44,tournament_status:0,order:5}},{_id:1095,seasons:[{name:"Apertura 2023",related_seasons:[{type:1,id:1831}],id:1783,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1750}],id:1715,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1652}],id:1541,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1527}],id:1488,type:0}],tournament:{show_logos:0,tournament_type:0,name:"Sub-16",logo:null,id:1095,tournament_status:0,order:7}},{_id:1001,seasons:[{name:"Clausura 2024",related_seasons:[],id:1838,type:0},{name:"Apertura 2023",related_seasons:[{type:1,id:1825}],id:1777,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}],tournament:{show_logos:1,tournament_type:0,name:"Liga MX Femenil",logo:"https://az755631.vo.msecnd.net/tournaments/femenil_mx.png",id:1001,tournament_status:0,order:2}},{_id:1143,seasons:[{name:"Apertura 2023",related_seasons:[{type:1,id:1829}],id:1785,type:0}],tournament:{show_logos:0,tournament_type:0,name:"Sub-23",logo:null,id:1143,tournament_status:0,order:4}},{_id:1,seasons:[{name:"Clausura 2024",related_seasons:[],id:1836,type:0},{name:"Apertura 2023",related_seasons:[{type:2,id:1826},{type:1,id:1827}],id:1772,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}],tournament:{show_logos:1,tournament_type:0,name:"Liga MX",logo:"https://az755631.vo.msecnd.net/tournaments/liga_mx.png",id:1,tournament_status:0,order:1}},{_id:1071,seasons:[{name:"Clausura 2024",related_seasons:[],id:1837,type:0},{name:"Apertura 2023",related_seasons:[{type:2,id:1822},{type:1,id:1828}],id:1776,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}],tournament:{show_logos:1,tournament_type:0,name:"Liga Expansion MX",logo:"https://az755631.vo.msecnd.net/tournaments/expansion_mx.png",id:1071,tournament_status:0,order:3}},{_id:1096,seasons:[{name:"Apertura 2023",related_seasons:[{type:1,id:1830}],id:1782,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1751}],id:1714,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1593}],id:1543,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1522}],id:1487,type:0}],tournament:{show_logos:0,tournament_type:0,name:"Sub-18",logo:null,id:1096,tournament_status:0,order:6}}],i={token:"",token_b2c:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MjQyNTQsIm5hbWUiOiJHb2xTdGF0cyIsInVzZXJuYW1lIjoiZ29sdGVzdGluZyIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE3MDA3ODkyNTcsImV4cCI6MTczMjMyNTI1N30.4iVGU3Q8rcNFRkYiPEmEYj1pB_UoYr1L5virEIpmGhs",id:24254,username:"goltesting",name:"GolStats",team:1,player:0,tournament:1,type_system:"presidents",language:"es",active_time:1,season:1772,is_player:0,related_seasons:[],is_goalkeeper:0,show_dashboard:1,user_type:1,premiumAccount:!0,userType:1,accessVideos:!0,sessionExpiration:1701869305930},n=s.computed(()=>a.reduce((r,o)=>{const l={...o.tournament,seasons:o.seasons};return l.seasons.forEach(c=>{r.set(c.id,l)}),r},new Map));return(r,o)=>(s.openBlock(),s.createElementBlock("div",t5e,[s.createVNode(s.unref(e5e),{"season-selected-id":1772,user:i,section:a5e,token:t.value,"tournaments-for-media-player":n.value,"background-color":""},null,8,["token","tournaments-for-media-player"])]))}},[["__scopeId","data-v-6fdc2bb3"]]),n5e={PO1:"CFI",PO2:"CFV",PO3:"SFI",PO4:"SFV",PO5:"FI",PO6:"FV"},r5e={DF:"Dieciseisavos",OF:"Octavos",CF:"Cuartos",SF:"Semifinales","3ER":"Tercer lugar",FINAL:"Final"},s5e={4:"Octavos",5:"Cuartos",6:"Semifinales",7:"Final"},o5e=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},uv={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))}}},sP=()=>{s.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}))},oP=uv.setup;uv.setup=oP?(e,t)=>(sP(),oP(e,t)):sP;const l5e=e=>(s.pushScopeId("data-v-fb269a1e"),e=e(),s.popScopeId(),e),c5e=["src"],d5e={key:1,class:"text"},u5e=["src"],h5e={class:"stats"},p5e=l5e(()=>s.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),m5e={class:"numstats"},f5e={class:"leyend"};function g5e(e,t,a,i,n,r){return s.openBlock(),s.createElementBlock("div",null,[a.type==0?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["button",n.status&&a.typeOnOff&&"button-active"]),style:s.normalizeStyle([r.customStyle,n.status&&a.typeOnOff&&r.customActive]),onClick:t[0]||(t[0]=(...o)=>r.btnClick&&r.btnClick(...o))},[a.icon&&a.iconPosition.toLowerCase()==="left"?(s.openBlock(),s.createElementBlock("img",{key:0,class:"icon",style:s.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,c5e)):s.createCommentVNode("",!0),a.textValue?(s.openBlock(),s.createElementBlock("div",d5e,s.toDisplayString(a.textValue),1)):s.createCommentVNode("",!0),a.icon&&a.iconPosition.toLowerCase()==="right"?(s.openBlock(),s.createElementBlock("img",{key:2,class:"icon",style:s.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,u5e)):s.createCommentVNode("",!0)],6)):s.createCommentVNode("",!0),a.type==1?(s.openBlock(),s.createElementBlock("div",{key:1,class:"button-target",onClick:t[1]||(t[1]=(...o)=>r.btnClick&&r.btnClick(...o))},[s.createElementVNode("div",h5e,[p5e,s.createElementVNode("div",m5e,s.toDisplayString(a.textStat),1)]),s.createElementVNode("div",f5e,s.toDisplayString(a.textCategory),1)])):s.createCommentVNode("",!0)])}const y5e=o5e(uv,[["render",g5e],["__scopeId","data-v-fb269a1e"]]),_5e={class:"gsc-dropdown__main-container__item-selected"},b5e=["height","width"],v5e=["stroke"],S5e={class:"gsc-dropdown__items-container"},w5e=["onClick"],T5e={key:0,class:"gsc-dropdown__items-footer"},C5e={__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(t=>t 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:t}){const a=e,i=s.ref({}),n=s.ref(null),r=s.ref(a.isMultipleOption?-1:0),o=s.ref(!1);s.watch(()=>a.items,(p,f)=>{if(!a.modelValue&&(!a.onlyFirstTime||!f||!f.length)&&p&&p.length){if(a.defaultItemByProp){const y=a.items.findIndex(b=>b[a.defaultItemByProp.propName]===a.defaultItemByProp.value);y!==-1?(r.value=y,i.value=p[y]):(r.value=0,i.value=p[0])}else i.value=p[a.defaultItemByIndex];t("input",i.value)}},{immediate:!0}),s.watch(()=>a.modelValue,p=>{if(p){const f=a.items.findIndex(y=>typeof p=="object"?JSON.stringify(y)===JSON.stringify(p):y===p);f!==-1&&(r.value=f,i.value=a.items[f],t("update:modelValue",i.value))}},{immediate:!0});const l=s.computed(()=>({height:a.height,width:a.width,backgroundColor:a.backgroundColor,borderRadius:`${a.borderRadius}px`,border:`${a.borderType} ${a.borderWidth}px ${a.borderColor}`,color:a.color,"--hover-background-color":a.hoverBackgroundColor,"--list-item-padding":a.listItemPadding,"--list-background-color":a.listBackgroundColor,"--list-height":a.listHeight,"--list-item-selected-color":a.listItemSelectedColor,"--list-item-selected-background-color":a.listItemSelectedBackgroundColor,"--list-item-color":a.listItemColor,"--list-border-radius":`${a.listBorderRadius}`,"--list-border-color":a.listBorderColor,"--list-width":a.isListSameWidth?a.width:"fit-content","--list-border-width":`${a.listBorderWidth}px`,"--footer-border":`${a.footerBorderWidth}px solid ${a.footerBorderColor}`,"--dropdown-opacity":a.isDisabled?"0.5":"1","--dropdown-cursor":a.isDisabled?"not-allowed":"pointer","--dropdown-font-size":a.fontSize?a.fontSize:"14px"})),c=s.computed(()=>({height:`${a.arrowHeight}px`,width:`${a.arrowWidth}px`}));function d(){a.isDisabled||(o.value=!o.value)}function u(p){n.value.contains(p.target)||(o.value=!1)}function h(p,f){a.isMultipleOption?r.value=-1:(r.value=f,o.value=!1),i.value=p,t("input",i.value),t("update:modelValue",i.value)}function m(){o.value=!1,t("click-ready")}return s.onMounted(()=>{document.addEventListener("click",u)}),s.onBeforeMount(()=>{document.removeEventListener("click",u)}),(p,f)=>(s.openBlock(),s.createElementBlock("div",{ref_key:"dropDown",ref:n,class:"gsc-dropdown",style:s.normalizeStyle(l.value)},[s.createElementVNode("div",{class:"gsc-dropdown__main-container",style:s.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:d},[s.createElementVNode("div",_5e,[s.renderSlot(p.$slots,"default",{selectedItem:i.value})]),s.createElementVNode("div",{class:s.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":o.value}]),style:s.normalizeStyle(c.value)},[(s.openBlock(),s.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[s.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,v5e)],8,b5e))],6)],4),s.createVNode(s.Transition,null,{default:s.withCtx(()=>[s.withDirectives(s.createElementVNode("div",S5e,[s.createElementVNode("div",null,[s.createElementVNode("div",{class:"gsc-dropdown__items",style:s.normalizeStyle({"margin-top":`${a.borderWidth}px`})},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.items,(y,b)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["gsc-dropdown__items__item",{selected:b===r.value}]),key:b,onClick:E=>h(y,b)},[s.renderSlot(p.$slots,"availableItem",{item:y})],10,w5e))),128))],4),e.isFooterVisible?(s.openBlock(),s.createElementBlock("div",T5e,[s.createVNode(s.unref(y5e),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:m})])):s.createCommentVNode("",!0)])],512),[[s.vShow,o.value]])]),_:3})],4))}},k5e=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},E5e={class:"tournament-select__selected-tournament"},I5e={class:"tournament-select__selected-tournament__logo"},x5e=["src"],N5e={class:"tournament-select__selected-tournament__name"},A5e={__name:"GSCTournamentSelect",props:{apiUrl:{type:String,default:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments"},fontFamily:{type:String,default:"sans-serif"},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(t=>t in e)},currentSeasonId:{type:Number,default:0}},emits:["input"],setup(e,{emit:t}){const a=e,i=s.ref([]),n=s.computed(()=>{const h={};return a.fontFamily&&(h["font-family"]=`${a.fontFamily}`),h}),r=s.computed(()=>i.value.find(h=>h.seasonsIds.has(a.currentSeasonId))||i.value[0]);async function o(){try{if(a.items&&a.items.length)i.value=[...a.items];else if(a.apiUrl){const h=await c();i.value=h.map(m=>({...m.tournament,seasons:m.seasons,seasonsIds:m.seasons.reduce((p,f)=>(p.add(f.id),p),new Set)})).sort((m,p)=>m.order-p.order)}}catch(h){throw new Error(h)}}function l(h){const m=new XMLHttpRequest,p=`${a.logosUrl}${h}.${a.logoFileType}`;return m.open("HEAD",p,!1),m.send(),m.status!==404}async function c(){try{return(await fetch(a.apiUrl)).json()}catch(h){return Promise.reject(h)}}function d(h){t("input",h)}function u(h){t("input",h)}return s.onMounted(()=>{o()}),(h,m)=>(s.openBlock(),s.createElementBlock("div",{class:"tournament-select",style:s.normalizeStyle(n.value)},[s.createVNode(s.unref(C5e),s.mergeProps(a,{"model-value":r.value,items:i.value,onInput:d,"onUpdate:modelValue":u}),{default:s.withCtx(({selectedItem:p})=>[s.createElementVNode("div",E5e,[s.createElementVNode("div",I5e,[l(p.id)?(s.openBlock(),s.createElementBlock("img",{key:0,src:`${a.logosUrl}${p.id}.${a.logoFileType}`,alt:""},null,8,x5e)):s.createCommentVNode("",!0)]),s.createElementVNode("div",N5e,s.toDisplayString(p.name),1)])]),availableItem:s.withCtx(({item:p})=>[s.createElementVNode("div",null,s.toDisplayString(p.name),1)]),_:1},16,["model-value","items"])],4))}},P5e=k5e(A5e,[["__scopeId","data-v-44050d64"]]),O5e=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},hv={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))}}},lP=()=>{s.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}))},cP=hv.setup;hv.setup=cP?(e,t)=>(lP(),cP(e,t)):lP;const B5e=e=>(s.pushScopeId("data-v-fb269a1e"),e=e(),s.popScopeId(),e),D5e=["src"],L5e={key:1,class:"text"},R5e=["src"],M5e={class:"stats"},F5e=B5e(()=>s.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),V5e={class:"numstats"},U5e={class:"leyend"};function j5e(e,t,a,i,n,r){return s.openBlock(),s.createElementBlock("div",null,[a.type==0?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["button",n.status&&a.typeOnOff&&"button-active"]),style:s.normalizeStyle([r.customStyle,n.status&&a.typeOnOff&&r.customActive]),onClick:t[0]||(t[0]=(...o)=>r.btnClick&&r.btnClick(...o))},[a.icon&&a.iconPosition.toLowerCase()==="left"?(s.openBlock(),s.createElementBlock("img",{key:0,class:"icon",style:s.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,D5e)):s.createCommentVNode("",!0),a.textValue?(s.openBlock(),s.createElementBlock("div",L5e,s.toDisplayString(a.textValue),1)):s.createCommentVNode("",!0),a.icon&&a.iconPosition.toLowerCase()==="right"?(s.openBlock(),s.createElementBlock("img",{key:2,class:"icon",style:s.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,R5e)):s.createCommentVNode("",!0)],6)):s.createCommentVNode("",!0),a.type==1?(s.openBlock(),s.createElementBlock("div",{key:1,class:"button-target",onClick:t[1]||(t[1]=(...o)=>r.btnClick&&r.btnClick(...o))},[s.createElementVNode("div",M5e,[F5e,s.createElementVNode("div",V5e,s.toDisplayString(a.textStat),1)]),s.createElementVNode("div",U5e,s.toDisplayString(a.textCategory),1)])):s.createCommentVNode("",!0)])}const z5e=O5e(hv,[["render",j5e],["__scopeId","data-v-fb269a1e"]]),H5e={class:"gsc-dropdown__main-container__item-selected"},q5e=["height","width"],W5e=["stroke"],G5e={class:"gsc-dropdown__items-container"},K5e=["onClick"],X5e={key:0,class:"gsc-dropdown__items-footer"},J5e={__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(t=>t 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:t}){const a=e,i=s.ref({}),n=s.ref(null),r=s.ref(a.isMultipleOption?-1:0),o=s.ref(!1);s.watch(()=>a.items,(p,f)=>{if(!a.modelValue&&(!a.onlyFirstTime||!f||!f.length)&&p&&p.length){if(a.defaultItemByProp){const y=a.items.findIndex(b=>b[a.defaultItemByProp.propName]===a.defaultItemByProp.value);y!==-1?(r.value=y,i.value=p[y]):(r.value=0,i.value=p[0])}else i.value=p[a.defaultItemByIndex];t("input",i.value)}},{immediate:!0}),s.watch(()=>a.modelValue,p=>{if(p){const f=a.items.findIndex(y=>typeof p=="object"?JSON.stringify(y)===JSON.stringify(p):y===p);f!==-1&&(r.value=f,i.value=a.items[f],t("update:modelValue",i.value))}},{immediate:!0});const l=s.computed(()=>({height:a.height,width:a.width,backgroundColor:a.backgroundColor,borderRadius:`${a.borderRadius}px`,border:`${a.borderType} ${a.borderWidth}px ${a.borderColor}`,color:a.color,"--hover-background-color":a.hoverBackgroundColor,"--list-item-padding":a.listItemPadding,"--list-background-color":a.listBackgroundColor,"--list-height":a.listHeight,"--list-item-selected-color":a.listItemSelectedColor,"--list-item-selected-background-color":a.listItemSelectedBackgroundColor,"--list-item-color":a.listItemColor,"--list-border-radius":`${a.listBorderRadius}`,"--list-border-color":a.listBorderColor,"--list-width":a.isListSameWidth?a.width:"fit-content","--list-border-width":`${a.listBorderWidth}px`,"--footer-border":`${a.footerBorderWidth}px solid ${a.footerBorderColor}`,"--dropdown-opacity":a.isDisabled?"0.5":"1","--dropdown-cursor":a.isDisabled?"not-allowed":"pointer","--dropdown-font-size":a.fontSize?a.fontSize:"14px"})),c=s.computed(()=>({height:`${a.arrowHeight}px`,width:`${a.arrowWidth}px`}));function d(){a.isDisabled||(o.value=!o.value)}function u(p){n.value.contains(p.target)||(o.value=!1)}function h(p,f){a.isMultipleOption?r.value=-1:(r.value=f,o.value=!1),i.value=p,t("input",i.value),t("update:modelValue",i.value)}function m(){o.value=!1,t("click-ready")}return s.onMounted(()=>{document.addEventListener("click",u)}),s.onBeforeMount(()=>{document.removeEventListener("click",u)}),(p,f)=>(s.openBlock(),s.createElementBlock("div",{ref_key:"dropDown",ref:n,class:"gsc-dropdown",style:s.normalizeStyle(l.value)},[s.createElementVNode("div",{class:"gsc-dropdown__main-container",style:s.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:d},[s.createElementVNode("div",H5e,[s.renderSlot(p.$slots,"default",{selectedItem:i.value})]),s.createElementVNode("div",{class:s.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":o.value}]),style:s.normalizeStyle(c.value)},[(s.openBlock(),s.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[s.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,W5e)],8,q5e))],6)],4),s.createVNode(s.Transition,null,{default:s.withCtx(()=>[s.withDirectives(s.createElementVNode("div",G5e,[s.createElementVNode("div",null,[s.createElementVNode("div",{class:"gsc-dropdown__items",style:s.normalizeStyle({"margin-top":`${a.borderWidth}px`})},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.items,(y,b)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["gsc-dropdown__items__item",{selected:b===r.value}]),key:b,onClick:E=>h(y,b)},[s.renderSlot(p.$slots,"availableItem",{item:y})],10,K5e))),128))],4),e.isFooterVisible?(s.openBlock(),s.createElementBlock("div",X5e,[s.createVNode(s.unref(z5e),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:m})])):s.createCommentVNode("",!0)])],512),[[s.vShow,o.value]])]),_:3})],4))}},Y5e=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},Q5e={class:"season-name"},Z5e={components:{GSCSeasonSelect:Y5e({__name:"GSC-SeasonSelect",props:{seasons:{type:Array,default:()=>[]},currentSeasonId:{type:Number,default:0}},emits:["input"],setup(e,{emit:t}){const a=e,i=s.computed(()=>a.seasons.find(o=>o.id===a.currentSeasonId));function n(o){t("input",o)}function r(o){t("input",o)}return(o,l)=>(s.openBlock(),s.createBlock(s.unref(J5e),{items:e.seasons,"model-value":i.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":n},{default:s.withCtx(({selectedItem:c})=>[s.createElementVNode("div",Q5e,[s.createElementVNode("span",null,s.toDisplayString(c.name),1)])]),availableItem:s.withCtx(({item:c})=>[s.createElementVNode("span",null,s.toDisplayString(c.name),1)]),_:1},8,["items","model-value"]))}},[["__scopeId","data-v-a372361a"]]),GSCTournamentSelect:P5e,GSCGames:rj,GSCGridTeamsMatches:pB,GSCPlayersLanding:sB,GSCTops:sz,GSCTableCalendar:tU,GSCMediaPlayer:i5e},setup(){const e=s.ref("landingref"),{elementSize:t}=LO(e);return{landingref:e,elementSize:t}},watch:{team:{immediate:!0,deep:!0,async handler(e){if(Object.keys(this.seasonSelected).length!==0){const t=await this.generateSeasons(this.seasonSelected);this.seasonsSelected=t,this.fetchGames(e,t)}}},closestRound(e){this.selectedRoundKeyIndex=this.tournamentScheduleKeys.findIndex(t=>t===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,tokenFree:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{gamesFullLeague(){var e=[];for(let t=0;t<this.fullTournamentScheduleFull[this.selectedRound].length;t++)for(let a=0;a<this.fullTournamentScheduleFull[this.selectedRound][t].games.length;a++)e.push(this.fullTournamentScheduleFull[this.selectedRound][t].games[a]);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:{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 t={data:e,isPlayer:this.isplayer};this.$emit("clickOnMainCards",t)},async fetchGames(e,t){const a=t.map(n=>`seasons=${n.id}`).join("&"),i=Sc.create({headers:{Authorization:`${this.tokenFree}`}});this.fullTournamentSchedule=await i.get(this.gamesUrl+e+"?"+a)},async generateSeasons(e){const t=[{id:e.id,type:e.type}];return e.related_seasons&&e.related_seasons.length&&t.push(...e.related_seasons.map(a=>({id:a.id,type:a.type}))),t},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 t=await this.generateSeasons(this.seasonSelected);this.seasonsSelected=t,await this.createFullTournamentScheme(t,!1)}else{const t=await this.generateSeasons(this.seasonSelected);this.seasonsSelected=t,await this.fetchGames(this.user.team,t)}this.seasonSelectedDropDowns!==e.id&&(this.seasonSelectedDropDowns=e.id,this.$emit("change-season-id",e.id))},async fetchTournaments(e){try{const{data:t}=await Sc.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments");return t}catch(t){if(e>0)return this.fetchTournaments(e-1);throw new Error(t)}},async fetchSeasonsGamesAndTeams(e,t,a=""){let i=a;try{i||(i=this.gamesUrl2,e.forEach((l,c)=>{i+=`${c===0?"":"&"}seasons=${l}`}));const n=Sc.create({headers:{Authorization:`${this.tokenFree}`}}),{data:{data:r,teams:o}}=await n.get(i);return{seasonsAndGames:r,seasonsAndTeams:o}}catch(n){if(t>0)return this.fetchSeasonsGamesAndTeams(e,t-1,i);throw new Error(n)}},areSeasonsDifferent(e){for(const t of e)if(!this.lastSeasonsIds.includes(t.season_id))return!0;return!1},async createFullTournamentScheme(e,t){try{this.fullTournamentSchedule={},this.userTeamGames=[];let a=0;const{seasonsAndGames:i,seasonsAndTeams:n}=await this.fetchSeasonsGamesAndTeams(e.map(c=>c.id),3);if(t&&this.areSeasonsDifferent(i))return;i.forEach(c=>{const{type:d}=e.find(u=>u.id===c.season_id);c.type=d,c.games.forEach(u=>{u.season_id=c.season_id}),d===0&&(a=c.season_id)});const r={seasonsGames:i},{teams:o}=n.find(c=>c.season_id===a),l=r&&r.seasonsGames?r.seasonsGames.map(c=>{const d=c.games.reduce((u,h)=>{const m={...h};return m.dateTimeMillis=new Date(m.date_time_utc).valueOf(),m.home_team=o.find(p=>p.team_id===h.home_team),m.visiting_team=o.find(p=>p.team_id===h.visiting_team),u[h.matchday_abbreviation]?u[h.matchday_abbreviation][h.game_status===3?"canceled":h.date]?u[h.matchday_abbreviation][h.game_status===3?"canceled":h.date].push(m):u[h.matchday_abbreviation][h.game_status===3?"canceled":h.date]=[m]:u[h.matchday_abbreviation]={[h.game_status===3?"canceled":h.date]:[m]},this.gsData&&this.gsData.teamId&&m.game_status===4&&(m.home_team.team_id===this.gsData.teamId||m.visiting_team.team_id===this.gsData.teamId)&&this.userTeamGames.push(m),u},{});this.userTeamGames.sort((u,h)=>u.dateTimeMillis-h.dateTimeMillis);for(let[u,h]of Object.entries(d))d[u]=Object.entries(h).map(([m,p])=>({date:m,games:p.sort((f,y)=>f.dateTimeMillis-y.dateTimeMillis)})),d[u].sort((m,p)=>m.date<p.date?-1:m.date>p.date?1:0);return{type:c.type,weight:c.type===0?0:c.type===2?1:2,schedule:d}}):[];l.sort((c,d)=>c.weight-d.weight),this.fullTournamentScheduleFull=l.reduce((c,d)=>{for(const[u,h]of Object.entries(d.schedule))if(d.type===0)if(this.isCup){const m=u.replace("M",""),p=`Jornada ${m}`;this.isCupLegacy?c[s5e[m]||p]=h:c[r5e[u]||p]=h}else c[Number(u.replace("M","")).toString()]=h;else d.type===2?["PI1","PI2"].includes(u)?c[u]=h:c[`R${Number(u.replace("PO",""))}`]=h:d.type===1&&(c[n5e[u]]=h);return c},{}),this.tournamentScheduleKeys=Object.keys(this.fullTournamentScheduleFull)}catch(a){throw new Error(a)}finally{this.loadingFlag=!1}},getNormalClosestRound(e){const a=Object.entries(Object.entries(e).reduce((r,[o,l])=>(r[o]=[],l.forEach(c=>{c.games.forEach(d=>{const u=new Date(d.date_time_utc).getTime()+66e5;r[o].push(u)})}),r),{}));if(!a.length)return"1";const i=new Date().getTime(),n=a.reduce((r,[o,l])=>{let c=null;return l.forEach(d=>{const u=d-i;u>=0&&(c===null||u<c)&&(c=u)}),c&&(r.shortestTime===null||c<r.shortestTime)&&(r.round=o,r.shortestTime=c),r},{round:"",shortestTime:null});return n.shortestTime!==null?n.round:a[a.length-1][0]},getUserTeamClosestRound(e){let t=1;if(this.userTeamGames.length){const a=this.userTeamGames[0];for(const[i,n]of Object.entries(e))for(const r of n)if(r.games.find(l=>l.game_id===a.game_id))return i}return t}},async created(){const a=(await this.fetchTournaments(3)).find(n=>n._id===1).seasons[1],i=[{id:a.id,type:a.type}];a.related_seasons&&a.related_seasons.length&&i.push(...a.related_seasons.map(n=>({id:n.id,type:n.type}))),await this.createFullTournamentScheme(i,!1)}},$5e=e=>(s.pushScopeId("data-v-1d1c7fb4"),e=e(),s.popScopeId(),e),e4e={class:"gsclanding",ref:"landingref"},t4e={key:0,class:"container-selectors-mobile"},a4e={class:"container-selectors-mobile-tournament"},i4e={class:"container-selectors-mobile-season"},n4e={key:0,class:"home-item-movil"},r4e=$5e(()=>s.createElementVNode("div",{class:"home-movil"},"Inicio",-1)),s4e={class:"name-user-movil"},o4e={key:1,class:"home-item"},l4e={key:2,class:"bar-settings"},c4e={class:"name-user"},d4e={class:"container-selectors"},u4e={class:"selector-tournament"},h4e={class:"selector-seasons"},p4e={key:3,class:"container-games"},m4e={key:4,class:"container-players"},f4e={class:"container-tops"},g4e={class:"container-vr"};function y4e(e,t,a,i,n,r){const o=s.resolveComponent("GSCTournamentSelect"),l=s.resolveComponent("GSCSeasonSelect"),c=s.resolveComponent("GSCGames"),d=s.resolveComponent("GSCGridTeamsMatches"),u=s.resolveComponent("GSCTableCalendar"),h=s.resolveComponent("GSCPlayersLanding"),m=s.resolveComponent("GSCTops"),p=s.resolveComponent("GSCMediaPlayer");return s.openBlock(),s.createElementBlock("div",e4e,[i.elementSize.width<=680?(s.openBlock(),s.createElementBlock("div",t4e,[s.createElementVNode("div",a4e,[s.createVNode(o,{"current-season-id":a.currentSeasonId,width:"100%",onInput:r.onInputTournament},null,8,["current-season-id","onInput"])]),s.createElementVNode("div",i4e,[s.createVNode(l,{"current-season-id":a.currentSeasonId,width:"100%",seasons:n.tournamentSelectedDropDowns.seasons,onInput:r.onInputSeason},null,8,["current-season-id","seasons","onInput"])])])):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(r.containerbackground)},[s.createElementVNode("div",{class:s.normalizeClass(r.containerdata)},[i.elementSize.width<=680?(s.openBlock(),s.createElementBlock("div",n4e,[r4e,s.createElementVNode("div",s4e,[s.createTextVNode("Bienvenido "),a.user.name.split(",").length!=0?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[a.user.name.split(",").length==1?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[a.user.name.split(",")[0]!=""?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createTextVNode(", ")],64)):s.createCommentVNode("",!0),s.createTextVNode(s.toDisplayString(a.user.name.split(",")[0]),1)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[a.user.name.split(",")[0]!=""?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createTextVNode(", ")],64)):s.createCommentVNode("",!0),s.createTextVNode(s.toDisplayString(a.user.name.split(",")[1]),1)],64))],64)):s.createCommentVNode("",!0)])])):s.createCommentVNode("",!0),i.elementSize.width>680?(s.openBlock(),s.createElementBlock("div",o4e,"Inicio")):s.createCommentVNode("",!0),i.elementSize.width>680?(s.openBlock(),s.createElementBlock("div",l4e,[s.createElementVNode("div",c4e,[s.createTextVNode("Bienvenido "),a.user.name.split(",").length!=0?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[a.user.name.split(",").length==1?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[a.user.name.split(",")[0]!=""?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createTextVNode(", ")],64)):s.createCommentVNode("",!0),s.createTextVNode(s.toDisplayString(a.user.name.split(",")[0]),1)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[a.user.name.split(",")[0]!=""?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createTextVNode(", ")],64)):s.createCommentVNode("",!0),s.createTextVNode(s.toDisplayString(a.user.name.split(",")[1]),1)],64))],64)):s.createCommentVNode("",!0)]),s.createElementVNode("div",d4e,[s.createElementVNode("div",u4e,[s.createVNode(o,{"current-season-id":a.currentSeasonId,onInput:r.onInputTournament},null,8,["current-season-id","onInput"])]),s.createElementVNode("div",h4e,[s.createVNode(l,{"current-season-id":a.currentSeasonId,seasons:n.tournamentSelectedDropDowns.seasons,onInput:r.onInputSeason},null,8,["current-season-id","seasons","onInput"])])])])):s.createCommentVNode("",!0),Object.keys(n.tournamentSelected).length>0?(s.openBlock(),s.createElementBlock("div",p4e,[s.createVNode(c,{"component-width":i.elementSize.width,isplayer:a.isplayer,"is-full":n.tournamentSelected.id!=a.user.tournament,onClickMatch:r.onClickMatch,onClickCalendar:r.onClickCalendar,data:n.tournamentSelected.id==a.user.tournament?n.fullTournamentSchedule:r.gamesFullLeague},null,8,["component-width","isplayer","is-full","onClickMatch","onClickCalendar","data"])])):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(r.containerGridCalendarTable)},[s.createElementVNode("div",{class:"container-grid",style:s.normalizeStyle(i.elementSize.width<1e3?"width: 100%":"")},[s.createVNode(d,{isPlayer:a.isplayer?n.tournamentSelected.id==a.user.tournament:!1,"player-id":a.user.player,"team-id":a.user.team,"season-selected":n.seasonSelected.id,"next-rival-id":Object.keys(n.fullTournamentSchedule).length>0?a.user.team==n.fullTournamentSchedule.data.prematch.home_team?n.fullTournamentSchedule.data.prematch.visiting_team:n.fullTournamentSchedule.data.prematch.home_team:0,"team-img":"https://az755631.vo.msecnd.net/teams-150/"+a.user.team+".png","player-img":"https://az755631.vo.msecnd.net/players-profile/"+a.user.player+".png","rival-img":Object.keys(n.fullTournamentSchedule).length>0?a.user.team==n.fullTournamentSchedule.data.prematch.home_team?"https://az755631.vo.msecnd.net/teams-150/"+n.fullTournamentSchedule.data.prematch.visiting_team+".png":"https://az755631.vo.msecnd.net/teams-150/"+n.fullTournamentSchedule.data.prematch.home_team+".png":"","has-team":a.isplayer?!1:n.tournamentSelected.id==a.user.tournament,"component-width":i.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),s.createElementVNode("div",{class:"container-calendar-table",style:s.normalizeStyle(i.elementSize.width<1e3?"width: 100%; margin-top: 30px;":"")},[s.createVNode(u,{onAction:r.onAction,season:n.seasonSelected,seasons:n.seasonsSelected,onOpenmedia:r.onOpenMedia,onOnOpenProfile:r.onOpenProfile,componentWidth:i.elementSize.width},null,8,["onAction","season","seasons","onOpenmedia","onOnOpenProfile","componentWidth"])],4)],2),n.tournamentSelected.id==a.user.tournament?s.withDirectives((s.openBlock(),s.createElementBlock("div",m4e,[s.createVNode(h,{onClickProfileBtn:r.clickProfileBtn,onViewAll:r.viewAll,onTotalPlayers:r.getTotalPlayers,"team-id":a.user.team,"season-id":n.seasonSelected.id,"is-player":a.user.player!=0},null,8,["onClickProfileBtn","onViewAll","onTotalPlayers","team-id","season-id","is-player"])],512)),[[s.vShow,n.playersLength>0]]):s.createCommentVNode("",!0),s.createElementVNode("div",f4e,[s.createVNode(m,{onMore:r.moreTops,"show-switch":n.tournamentSelected.id==a.user.tournament,season:n.seasonSelected.id,"team-id":a.user.team,onOpenmedia:r.onOpenMedia},null,8,["onMore","show-switch","season","team-id","onOpenmedia"])]),s.createElementVNode("div",g4e,[s.createVNode(p)])],2)],2)],512)}const _4e=si(Z5e,[["render",y4e],["__scopeId","data-v-1d1c7fb4"]]),b4e=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},v4e={key:1},S4e={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w4e=["fill"],T4e={key:0,class:"checkbox__teams"},C4e={class:"checkbox__teams__logo"},k4e=["src"],E4e={class:"checkbox__teams__logo"},I4e=["src"],x4e={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelWhiteSpace:{type:String,default:"normal"},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(e){return["left","right","top","bottom"].includes(e)}},boxMarginTop:{type:String,default:"0.2em"},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1},avoidToCheck:{type:Boolean,default:!1},isBoxOnly:{type:Boolean,default:!1},teamsIds:{type:Array,default:()=>null}},emits:["update:modelValue"],setup(e,{emit:t}){const a=e;s.useCssVars(d=>({"6582e90e":e.width,"310b3edf":e.height}));const i=s.ref(!1),n=s.computed(()=>{const d={color:a.boxValueColor,"font-family":a.fontFamily,height:a.boxWidthAndHeight,width:a.boxWidthAndHeight,minWidth:a.boxWidthAndHeight,"border-radius":a.boxBorderRadius,"margin-top":a.boxMarginTop};return i.value?(d["background-color"]=a.boxBackgroundColor,d.border=`solid ${a.boxBorderWidth} ${a.boxBackgroundColor}`):d.border=`solid ${a.boxBorderWidth} ${a.boxBorderColor}`,d}),r=s.computed(()=>({"font-family":a.boxValueFontFamily,"font-size":a.boxValueFontSize,color:a.boxValueColor,"line-height":1})),o=s.computed(()=>{const d={color:a.labelColor,"font-family":a.fontFamily,"font-size":a.labelFontSize,"white-space":a.labelWhiteSpace,"text-align":a.boxPosition==="top"||a.boxPosition==="bottom"?"center":a.boxPosition};return(a.boxPosition==="left"||a.boxPosition==="right")&&(d[`margin-${a.boxPosition}`]=a.isBoxOnly?"0":a.teamsIds?"8px":"10px"),d});s.watch(()=>a.modelValue,d=>{d!==i.value&&(i.value=d)},{immediate:!0});function l(){a.avoidInteraction||!i.value&&a.avoidToCheck||(i.value=!i.value,t("update:modelValue",i.value))}function c(d){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-80/"}${d}.png`}return(d,u)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:l},[s.createElementVNode("div",{class:"checkbox__box",style:s.normalizeStyle(n.value)},[i.value?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[a.boxValue?(s.openBlock(),s.createElementBlock("div",{key:0,class:"checkbox__box__value",style:s.normalizeStyle(r.value)},s.toDisplayString(e.boxValue),5)):(s.openBlock(),s.createElementBlock("div",v4e,[(s.openBlock(),s.createElementBlock("svg",S4e,[s.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:e.boxValueColor},null,8,w4e)]))]))],64)):s.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(s.openBlock(),s.createElementBlock("div",T4e,[s.createElementVNode("div",C4e,[s.createElementVNode("img",{src:c(e.teamsIds[0]),alt:""},null,8,k4e)]),s.createElementVNode("div",E4e,[s.createElementVNode("img",{src:c(e.teamsIds[1]),alt:""},null,8,I4e)])])):s.createCommentVNode("",!0),s.createElementVNode("div",{class:"checkbox__label",style:s.normalizeStyle(o.value)},s.toDisplayString(e.label),5)],2))}},pv=b4e(x4e,[["__scopeId","data-v-bcf3bcc6"]]),N4e={class:"subcategory-group"},A4e={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(e){return(t,a)=>(s.openBlock(),s.createElementBlock("div",N4e,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.subcategoryGroup,i=>(s.openBlock(),s.createBlock(s.unref(pv),{key:i.id,modelValue:i.isSelected,"onUpdate:modelValue":n=>i.isSelected=n,label:i.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},P4e=bt(A4e,[["__scopeId","data-v-6c6e0261"]]),O4e={class:"filter-subcategories"},B4e=Object.freeze(Object.defineProperty({__proto__:null,default:bt({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(e){return(t,a)=>(s.openBlock(),s.createElementBlock("div",O4e,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.subcategoryGroups,i=>(s.openBlock(),s.createElementBlock("div",{key:i.id,class:"filter-subcategories__group"},[s.createVNode(P4e,{subcategoryGroup:i},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-feeb6f0d"]])},Symbol.toStringTag,{value:"Module"})),kf=e=>(s.pushScopeId("data-v-f22f11b6"),e=e(),s.popScopeId(),e),D4e={class:"details__header"},L4e=kf(()=>s.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),R4e={class:"details__header__checkbox"},M4e={class:"details__body"},F4e={class:"details__body__playing-as"},V4e=["onClick"],U4e={class:"details__header"},j4e=kf(()=>s.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),z4e={class:"details__header__checkbox"},H4e={class:"details__body"},q4e=kf(()=>s.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),W4e={class:"details__body__game-section"},G4e=["onClick"],K4e={class:"details__body"},X4e=kf(()=>s.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),J4e={class:"details__body__game-section"},Y4e=["onClick"],Q4e=Object.freeze(Object.defineProperty({__proto__:null,default:bt({__name:"FilterConditions",props:{conditions:{type:Object,default:()=>({playingAs:[{name:"Local",value:1,isSelected:!0},{name:"Visitante",value:2,isSelected:!0}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]})},playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(e){const t=e;s.useCssVars(u=>({"7fb261be":e.buttonsBackgroundColor,"2ed63bdf":e.buttonsTextColor,"104a673a":e.buttonsBorderWidth,12786400:e.buttonsBorderColor,"661a0664":e.buttonsBackgroundColorActive,"61bff876":e.buttonsTextColorActive,e5a1bd6e:e.buttonsBorderWidthActive,"50c5b926":e.buttonsBorderColorActive}));const a=s.computed(()=>t.conditions.playingAs.every(u=>u.isSelected)),i=s.computed(()=>t.conditions.gameSections.every(u=>u.isSelected)),n=s.computed(()=>t.conditions.gameSections.reduce((u,h)=>(h.value<=3?u.firstHalf.push(h):u.secondHalf.push(h),u),{firstHalf:[],secondHalf:[]})),r=s.computed(()=>({"--border-radius-first-button":`${t.buttonsBorderRadius} 0 0 ${t.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${t.buttonsBorderRadius} ${t.buttonsBorderRadius} 0`}));function o(u){u?t.conditions.playingAs.forEach(h=>{h.isSelected=!0}):t.conditions.playingAs.forEach((h,m)=>{h.isSelected=m===0})}function l(u){t.conditions.playingAs.filter(h=>h.isSelected).length===1&&u.isSelected||(u.isSelected=!u.isSelected)}function c(u){t.conditions.gameSections.filter(h=>h.isSelected).length===1&&u.isSelected||(u.isSelected=!u.isSelected)}function d(u){u?t.conditions.gameSections.forEach(h=>{h.isSelected=!0}):t.conditions.gameSections.forEach((h,m)=>{h.isSelected=m===0})}return(u,h)=>(s.openBlock(),s.createElementBlock("div",{class:"details",style:s.normalizeStyle(r.value)},[s.createElementVNode("div",D4e,[L4e,s.createElementVNode("div",R4e,[s.createVNode(s.unref(pv),{label:"Todos","model-value":a.value,"onUpdate:modelValue":o},null,8,["model-value"])])]),s.createElementVNode("div",M4e,[s.createElementVNode("div",F4e,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.conditions.playingAs,(m,p)=>(s.openBlock(),s.createElementBlock("div",{key:`pa${p}`,class:s.normalizeClass(["details__body__button",{active:m.isSelected}]),onClick:f=>l(m)},s.toDisplayString(m.name),11,V4e))),128))])]),s.createElementVNode("div",U4e,[j4e,s.createElementVNode("div",z4e,[s.createVNode(s.unref(pv),{label:"Todos","model-value":i.value,"onUpdate:modelValue":d},null,8,["model-value"])])]),s.createElementVNode("div",H4e,[q4e,s.createElementVNode("div",W4e,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n.value.firstHalf,(m,p)=>(s.openBlock(),s.createElementBlock("div",{key:`pa${p}`,class:s.normalizeClass(["details__body__button",{active:m.isSelected}]),onClick:f=>c(m)},s.toDisplayString(m.text),11,G4e))),128))])]),s.createElementVNode("div",K4e,[X4e,s.createElementVNode("div",J4e,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n.value.secondHalf,(m,p)=>(s.openBlock(),s.createElementBlock("div",{key:`pa${p}`,class:s.normalizeClass(["details__body__button",{active:m.isSelected}]),onClick:f=>c(m)},s.toDisplayString(m.text),11,Y4e))),128))])])],4))}},[["__scopeId","data-v-f22f11b6"]])},Symbol.toStringTag,{value:"Module"})),Z4e=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},mv={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))}}},dP=()=>{s.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}))},uP=mv.setup;mv.setup=uP?(e,t)=>(dP(),uP(e,t)):dP;const $4e=e=>(s.pushScopeId("data-v-fb269a1e"),e=e(),s.popScopeId(),e),e3e=["src"],t3e={key:1,class:"text"},a3e=["src"],i3e={class:"stats"},n3e=$4e(()=>s.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),r3e={class:"numstats"},s3e={class:"leyend"};function o3e(e,t,a,i,n,r){return s.openBlock(),s.createElementBlock("div",null,[a.type==0?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["button",n.status&&a.typeOnOff&&"button-active"]),style:s.normalizeStyle([r.customStyle,n.status&&a.typeOnOff&&r.customActive]),onClick:t[0]||(t[0]=(...o)=>r.btnClick&&r.btnClick(...o))},[a.icon&&a.iconPosition.toLowerCase()==="left"?(s.openBlock(),s.createElementBlock("img",{key:0,class:"icon",style:s.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,e3e)):s.createCommentVNode("",!0),a.textValue?(s.openBlock(),s.createElementBlock("div",t3e,s.toDisplayString(a.textValue),1)):s.createCommentVNode("",!0),a.icon&&a.iconPosition.toLowerCase()==="right"?(s.openBlock(),s.createElementBlock("img",{key:2,class:"icon",style:s.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,a3e)):s.createCommentVNode("",!0)],6)):s.createCommentVNode("",!0),a.type==1?(s.openBlock(),s.createElementBlock("div",{key:1,class:"button-target",onClick:t[1]||(t[1]=(...o)=>r.btnClick&&r.btnClick(...o))},[s.createElementVNode("div",i3e,[n3e,s.createElementVNode("div",r3e,s.toDisplayString(a.textStat),1)]),s.createElementVNode("div",s3e,s.toDisplayString(a.textCategory),1)])):s.createCommentVNode("",!0)])}const l3e=Z4e(mv,[["render",o3e],["__scopeId","data-v-fb269a1e"]]),c3e=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},d3e={key:1},u3e={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h3e=["fill"],p3e={key:0,class:"checkbox__teams"},m3e={class:"checkbox__teams__logo"},f3e=["src"],g3e={class:"checkbox__teams__logo"},y3e=["src"],_3e={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelWhiteSpace:{type:String,default:"normal"},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(e){return["left","right","top","bottom"].includes(e)}},boxMarginTop:{type:String,default:"0.2em"},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1},avoidToCheck:{type:Boolean,default:!1},isBoxOnly:{type:Boolean,default:!1},teamsIds:{type:Array,default:()=>null}},emits:["update:modelValue"],setup(e,{emit:t}){const a=e;s.useCssVars(d=>({"6582e90e":e.width,"310b3edf":e.height}));const i=s.ref(!1),n=s.computed(()=>{const d={color:a.boxValueColor,"font-family":a.fontFamily,height:a.boxWidthAndHeight,width:a.boxWidthAndHeight,minWidth:a.boxWidthAndHeight,"border-radius":a.boxBorderRadius,"margin-top":a.boxMarginTop};return i.value?(d["background-color"]=a.boxBackgroundColor,d.border=`solid ${a.boxBorderWidth} ${a.boxBackgroundColor}`):d.border=`solid ${a.boxBorderWidth} ${a.boxBorderColor}`,d}),r=s.computed(()=>({"font-family":a.boxValueFontFamily,"font-size":a.boxValueFontSize,color:a.boxValueColor,"line-height":1})),o=s.computed(()=>{const d={color:a.labelColor,"font-family":a.fontFamily,"font-size":a.labelFontSize,"white-space":a.labelWhiteSpace,"text-align":a.boxPosition==="top"||a.boxPosition==="bottom"?"center":a.boxPosition};return(a.boxPosition==="left"||a.boxPosition==="right")&&(d[`margin-${a.boxPosition}`]=a.isBoxOnly?"0":a.teamsIds?"8px":"10px"),d});s.watch(()=>a.modelValue,d=>{d!==i.value&&(i.value=d)},{immediate:!0});function l(){a.avoidInteraction||!i.value&&a.avoidToCheck||(i.value=!i.value,t("update:modelValue",i.value))}function c(d){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-80/"}${d}.png`}return(d,u)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:l},[s.createElementVNode("div",{class:"checkbox__box",style:s.normalizeStyle(n.value)},[i.value?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[a.boxValue?(s.openBlock(),s.createElementBlock("div",{key:0,class:"checkbox__box__value",style:s.normalizeStyle(r.value)},s.toDisplayString(e.boxValue),5)):(s.openBlock(),s.createElementBlock("div",d3e,[(s.openBlock(),s.createElementBlock("svg",u3e,[s.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:e.boxValueColor},null,8,h3e)]))]))],64)):s.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(s.openBlock(),s.createElementBlock("div",p3e,[s.createElementVNode("div",m3e,[s.createElementVNode("img",{src:c(e.teamsIds[0]),alt:""},null,8,f3e)]),s.createElementVNode("div",g3e,[s.createElementVNode("img",{src:c(e.teamsIds[1]),alt:""},null,8,y3e)])])):s.createCommentVNode("",!0),s.createElementVNode("div",{class:"checkbox__label",style:s.normalizeStyle(o.value)},s.toDisplayString(e.label),5)],2))}},b3e=c3e(_3e,[["__scopeId","data-v-bcf3bcc6"]]),v3e=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},fv={components:{GSCButton:l3e,GSCCheckbox:b3e},data(){return{update:0,all:!1,refreshBtn14:0,refreshBtn24:0,refreshBtn34:0,refreshBtn44:0,sectors:Array.from({length:16},(e,t)=>({sector:t+1,active:!1})),lastUpdatedValue:[]}},props:{backgroundColor:{type:String,default:"#2e3b46"},heightContainer:{type:String,default:"340px"},widthContainer:{type:String,default:"455px"},heightField:{type:Number,default:230},widthField:{type:Number,default:350},heightFieldGrid:{type:String,default:"230px"},widthFieldGrid:{type:String,default:"350px"},backgroundSectorActive:{type:String,default:"#cbee6b"},backgroundSectorDisabled:{type:String,default:"#2e3b46"},borderWidth:{type:Number,default:1},opacitySector:{type:Number,default:.5},borderColor:{type:String,default:"#FFFFFF"},colorLineField:{type:String,default:"#bfc2c5"},borderWidthLineField:{type:Number,default:2},value:{type:Array,default:()=>[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]},title:{type:String,default:"Pase(s) desde la(s) zona(s):"},titleFontSize:{type:String,default:"14px"}},watch:{value:{deep:!0,immediate:!0,handler(e){const t=e.sort();JSON.stringify(t)!==JSON.stringify(this.lastUpdatedValue)&&(this.lastUpdatedValue=t,this.sectors.forEach((a,i)=>{a.active=e.includes(i+1),this.validateField(i)}),this.$emit("update:modelValue",e))}},sectors:{handler(e){var t=[];for(let a=0;a<e.length;a++)e[a].active&&t.push(a+1);this.$emit("update:modelValue",t)},deep:!0}},computed:{translx(){var e=0;return this.widthField>305?e=this.widthField-305:this.widthField==268&&(e=-36),e},transly(){var e=0;return this.heightField>195?(e=this.heightField-195,e=e/2):this.heightField==180&&(e=-7),e},translxcircle(){var e=0;return this.widthField>305?(e=this.widthField-305,e=e/2):this.widthField==268&&(e=-18),e}},methods:{clickAll(e){if(e){for(let t=0;t<this.sectors.length;t++)this.sectors[t].active=!0,this.validateField(t);this.status14=!0,this.status24=!0,this.status34=!0,this.status44=!0,this.refreshBtn14+=1,this.refreshBtn24+=1,this.refreshBtn34+=1,this.refreshBtn44+=1}else for(let t=0;t<this.sectors.length;t++)this.sectors[t].active=!1,this.validateField(t),this.status14=!1,this.status24=!1,this.status34=!1,this.status44=!1,this.refreshBtn14=0,this.refreshBtn24=0,this.refreshBtn34=0,this.refreshBtn44=0},selectSector(e){var t=0;this.sectors[e].active=!this.sectors[e].active;for(let a=0;a<this.sectors.length;a++)this.sectors[a].active&&(t+=1);t==0&&(this.sectors[e].active=!0),this.validateField(e)},btn14(e){this.sectors[0].active=e?this.sectors[0].active=!0:this.sectors[0].active=!1,this.sectors[1].active=e?this.sectors[1].active=!0:this.sectors[1].active=!1,this.sectors[2].active=e?this.sectors[2].active=!0:this.sectors[2].active=!1,this.sectors[3].active=e?this.sectors[3].active=!0:this.sectors[3].active=!1;var t=0;for(let a=0;a<this.sectors.length;a++)this.sectors[a].active&&(t+=1);t==0?(this.sectors[0].active=!0,this.sectors[1].active=!0,this.sectors[2].active=!0,this.sectors[3].active=!0,this.status14=!0,this.refreshBtn14+=1):this.status14=!1,t==16&&(this.all=!0,this.update+=1)},btn24(e){this.sectors[4].active=e?this.sectors[4].active=!0:this.sectors[4].active=!1,this.sectors[5].active=e?this.sectors[5].active=!0:this.sectors[5].active=!1,this.sectors[6].active=e?this.sectors[6].active=!0:this.sectors[6].active=!1,this.sectors[7].active=e?this.sectors[7].active=!0:this.sectors[7].active=!1;var t=0;for(let a=0;a<this.sectors.length;a++)this.sectors[a].active&&(t+=1);t==0?(this.sectors[4].active=!0,this.sectors[5].active=!0,this.sectors[6].active=!0,this.sectors[7].active=!0,this.status24=!0,this.refreshBtn24+=1):this.status24=!1,t==16&&(this.all=!0,this.update+=1)},btn34(e){this.sectors[8].active=e?this.sectors[8].active=!0:this.sectors[8].active=!1,this.sectors[9].active=e?this.sectors[9].active=!0:this.sectors[9].active=!1,this.sectors[10].active=e?this.sectors[10].active=!0:this.sectors[10].active=!1,this.sectors[11].active=e?this.sectors[11].active=!0:this.sectors[11].active=!1;var t=0;for(let a=0;a<this.sectors.length;a++)this.sectors[a].active&&(t+=1);t==0?(this.sectors[8].active=!0,this.sectors[9].active=!0,this.sectors[10].active=!0,this.sectors[11].active=!0,this.status34=!0,this.refreshBtn34+=1):this.status34=!1,t==16&&(this.all=!0,this.update+=1)},btn44(e){this.sectors[12].active=e?this.sectors[12].active=!0:this.sectors[12].active=!1,this.sectors[13].active=e?this.sectors[13].active=!0:this.sectors[13].active=!1,this.sectors[14].active=e?this.sectors[14].active=!0:this.sectors[14].active=!1,this.sectors[15].active=e?this.sectors[15].active=!0:this.sectors[15].active=!1;var t=0;for(let a=0;a<this.sectors.length;a++)this.sectors[a].active&&(t+=1);t==0?(this.sectors[12].active=!0,this.sectors[13].active=!0,this.sectors[14].active=!0,this.sectors[15].active=!0,this.status44=!0,this.refreshBtn44+=1):this.status44=!1,t==16&&(this.all=!0,this.update+=1)},validateField(e){(e===0||e===1||e===2||e===3)&&(this.status14=!!(this.sectors[0].active&&this.sectors[1].active&&this.sectors[2].active&&this.sectors[3].active)),(e===4||e===5||e===6||e===7)&&(this.status24=!!(this.sectors[4].active&&this.sectors[5].active&&this.sectors[6].active&&this.sectors[7].active)),(e===8||e===9||e===10||e===11)&&(this.status34=!!(this.sectors[8].active&&this.sectors[9].active&&this.sectors[10].active&&this.sectors[11].active)),(e===12||e===13||e===14||e===15)&&(this.status44=!!(this.sectors[12].active&&this.sectors[13].active&&this.sectors[14].active&&this.sectors[15].active)),this.all=!!(this.status14&&this.status34&&this.status24&&this.status44),this.update+=1,this.status14&&(this.refreshBtn14+=1),this.status24&&(this.refreshBtn24+=1),this.status34&&(this.refreshBtn34+=1),this.status44&&(this.refreshBtn44+=1)}}},hP=()=>{s.useCssVars(e=>({ff70d60a:e.widthContainer,daba190c:e.heightContainer,"6f469996":e.backgroundColor,"4ee5a3c8":e.titleFontSize,"37ac484c":e.widthFieldGrid,"12f58b4e":e.heightFieldGrid}))},pP=fv.setup;fv.setup=pP?(e,t)=>(hP(),pP(e,t)):hP;const S3e={class:"gsc-field"},w3e={class:"gsc-field__title-checked"},T3e={class:"gsc-field__title-checked__title"},C3e={class:"gsc-field__title-checked__check-cont"},k3e={class:"gsc-field__container-field"},E3e={class:"gsc-field__container-field__field"},I3e={width:"100%",height:"100%",fill:"#2e3b46",xmlns:"http://www.w3.org/2000/svg"},x3e=["stroke"],N3e=["stroke","stroke-width"],A3e=["stroke","stroke-width"],P3e=["stroke-width","stroke"],O3e=["fill","fill-opacity","stroke","stroke-width"],B3e=["fill","fill-opacity","stroke","stroke-width"],D3e=["fill","fill-opacity","stroke","stroke-width"],L3e=["fill","fill-opacity","stroke","stroke-width"],R3e=["fill","fill-opacity","stroke","stroke-width"],M3e=["fill","fill-opacity","stroke","stroke-width"],F3e=["fill","fill-opacity","stroke","stroke-width"],V3e=["fill","fill-opacity","stroke","stroke-width"],U3e=["fill","fill-opacity","stroke","stroke-width"],j3e=["fill","fill-opacity","stroke","stroke-width"],z3e=["fill","fill-opacity","stroke","stroke-width"],H3e=["fill","fill-opacity","stroke","stroke-width"],q3e=["fill","fill-opacity","stroke","stroke-width"],W3e=["fill","fill-opacity","stroke","stroke-width"],G3e=["fill","fill-opacity","stroke","stroke-width"],K3e=["fill","fill-opacity","stroke","stroke-width"],X3e={class:"gsc-field__container-field__bar-buttons"};function J3e(e,t,a,i,n,r){const o=s.resolveComponent("GSCCheckbox"),l=s.resolveComponent("GSCButton");return s.openBlock(),s.createElementBlock("div",S3e,[s.createElementVNode("div",w3e,[s.createElementVNode("div",T3e,s.toDisplayString(a.title),1),s.createElementVNode("div",C3e,[(s.openBlock(),s.createBlock(o,{label:"Todas las zonas","font-family":"Poppins-Regular","box-value-font-family":"Poppins-Regular","box-position":"right","label-font-size":a.titleFontSize,"label-white-space":"nowrap","box-margin-top":"0.4em",value:n.all,key:n.update,"model-value":n.all,"onUpdate:modelValue":r.clickAll},null,8,["label-font-size","value","model-value","onUpdate:modelValue"]))])]),s.createElementVNode("div",k3e,[s.createElementVNode("div",E3e,[(s.openBlock(),s.createElementBlock("svg",I3e,[s.createElementVNode("rect",{x:"1.5",y:"0.5",width:"100%",height:"100%",rx:"1.5",stroke:a.colorLineField},null,8,x3e),s.createElementVNode("path",{style:s.normalizeStyle("transform: translate("+r.translx+"px, "+r.transly+"px);"),d:"M303.597 39.9799H263.371C262.817 39.9799 262.369 40.4301 262.371 40.984L262.842 155.176C262.845 155.726 263.292 156.172 263.842 156.172H302.884",stroke:a.colorLineField,"stroke-width":a.borderWidthLineField,"stroke-linecap":"square"},null,12,N3e),s.createElementVNode("path",{style:s.normalizeStyle("transform: translateY("+r.transly+"px);"),class:"porteria1",d:"M1.09097 156.172L41.3162 156.172C41.8701 156.172 42.3185 155.722 42.3162 155.168L41.845 40.9758C41.8427 40.4252 41.3957 39.98 40.845 39.98L1.80338 39.98",stroke:a.colorLineField,"stroke-width":a.borderWidthLineField,"stroke-linecap":"square"},null,12,A3e),s.createElementVNode("path",{style:s.normalizeStyle("transform: translate("+r.translxcircle+"px, "+r.transly+"px);"),class:"circle",d:"M182.911 97.4512C182.911 113.726 169.44 126.936 152.801 126.936C136.162 126.936 122.691 113.726 122.691 97.4512C122.691 81.1767 136.162 67.9662 152.801 67.9662C169.44 67.9662 182.911 81.1767 182.911 97.4512Z","stroke-width":a.borderWidthLineField,stroke:a.colorLineField},null,12,P3e),s.createElementVNode("rect",{x:"0%",y:"0%",width:"25%",height:"25%",fill:n.sectors[0].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[0]||(t[0]=c=>r.selectSector(0))},null,8,O3e),s.createElementVNode("rect",{x:"0%",y:"25%",width:"25%",height:"25%",fill:n.sectors[1].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[1]||(t[1]=c=>r.selectSector(1))},null,8,B3e),s.createElementVNode("rect",{x:"0%",y:"50%",width:"25%",height:"25%",fill:n.sectors[2].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[2]||(t[2]=c=>r.selectSector(2))},null,8,D3e),s.createElementVNode("rect",{x:"0%",y:"75%",width:"25%",height:"25%",fill:n.sectors[3].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[3]||(t[3]=c=>r.selectSector(3))},null,8,L3e),s.createElementVNode("rect",{x:"25%",y:"0%",width:"25%",height:"25%",fill:n.sectors[4].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[4]||(t[4]=c=>r.selectSector(4))},null,8,R3e),s.createElementVNode("rect",{x:"25%",y:"25%",width:"25%",height:"25%",fill:n.sectors[5].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[5]||(t[5]=c=>r.selectSector(5))},null,8,M3e),s.createElementVNode("rect",{x:"25%",y:"50%",width:"25%",height:"25%",fill:n.sectors[6].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[6]||(t[6]=c=>r.selectSector(6))},null,8,F3e),s.createElementVNode("rect",{x:"25%",y:"75%",width:"25%",height:"25%",fill:n.sectors[7].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[7]||(t[7]=c=>r.selectSector(7))},null,8,V3e),s.createElementVNode("rect",{x:"50%",y:"0%",width:"25%",height:"25%",fill:n.sectors[8].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[8]||(t[8]=c=>r.selectSector(8))},null,8,U3e),s.createElementVNode("rect",{x:"50%",y:"25%",width:"25%",height:"25%",fill:n.sectors[9].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[9]||(t[9]=c=>r.selectSector(9))},null,8,j3e),s.createElementVNode("rect",{x:"50%",y:"50%",width:"25%",height:"25%",fill:n.sectors[10].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[10]||(t[10]=c=>r.selectSector(10))},null,8,z3e),s.createElementVNode("rect",{x:"50%",y:"75%",width:"25%",height:"25%",fill:n.sectors[11].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[11]||(t[11]=c=>r.selectSector(11))},null,8,H3e),s.createElementVNode("rect",{x:"75%",y:"0%",width:"25%",height:"25%",fill:n.sectors[12].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[12]||(t[12]=c=>r.selectSector(12))},null,8,q3e),s.createElementVNode("rect",{x:"75%",y:"25%",width:"25%",height:"25%",fill:n.sectors[13].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[13]||(t[13]=c=>r.selectSector(13))},null,8,W3e),s.createElementVNode("rect",{x:"75%",y:"50%",width:"25%",height:"25%",fill:n.sectors[14].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[14]||(t[14]=c=>r.selectSector(14))},null,8,G3e),s.createElementVNode("rect",{x:"75%",y:"75%",width:"25%",height:"25%",fill:n.sectors[15].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[15]||(t[15]=c=>r.selectSector(15))},null,8,K3e)]))]),s.createElementVNode("div",X3e,[(s.openBlock(),s.createBlock(l,{"text-value":"1/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn14",onStatus:r.btn14,key:n.refreshBtn14,value:e.status14},null,8,["onStatus","value"])),(s.openBlock(),s.createBlock(l,{"text-value":"2/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn24",onStatus:r.btn24,key:n.refreshBtn24,value:e.status24},null,8,["onStatus","value"])),(s.openBlock(),s.createBlock(l,{"text-value":"3/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn34",onStatus:r.btn34,key:n.refreshBtn34,value:e.status34},null,8,["onStatus","value"])),(s.openBlock(),s.createBlock(l,{"text-value":"4/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn44",onStatus:r.btn44,key:n.refreshBtn44,value:e.status44},null,8,["onStatus","value"]))])])])}const Y3e=v3e(fv,[["render",J3e],["__scopeId","data-v-f9923331"]]),Q3e={class:"filter-field"},Z3e=Object.freeze(Object.defineProperty({__proto__:null,default:bt({__name:"FilterField",setup(e){const t=s.ref(Array.from({length:16},(i,n)=>n+1));function a(i){}return(i,n)=>(s.openBlock(),s.createElementBlock("div",Q3e,[s.createVNode(s.unref(Y3e),{width:"100%","background-color":"#2E3B46",value:t.value,"onUpdate:modelValue":a},null,8,["value"])]))}},[["__scopeId","data-v-dc8a3bf4"]])},Symbol.toStringTag,{value:"Module"}));fs.GSCLanding=_4e,Object.defineProperty(fs,Symbol.toStringTag,{value:"Module"})});
|
|
307
|
+
*/const Sa={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"}},tP={itemsToShow:{default:Sa.itemsToShow,type:Number},itemsToScroll:{default:Sa.itemsToScroll,type:Number},wrapAround:{default:Sa.wrapAround,type:Boolean},throttle:{default:Sa.throttle,type:Number},snapAlign:{default:Sa.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Sa.transition,type:Number},breakpoints:{default:Sa.breakpoints,type:Object},autoplay:{default:Sa.autoplay,type:Number},pauseAutoplayOnHover:{default:Sa.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Sa.mouseDrag,type:Boolean},touchDrag:{default:Sa.touchDrag,type:Boolean},dir:{default:Sa.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Sa.i18n,type:Object},settings:{default(){return{}},type:Object}};function Fke({config:e,slidesCount:t}){const{snapAlign:a,wrapAround:i,itemsToShow:n=1}=e;if(i)return Math.max(t-1,0);let r;switch(a){case"start":r=t-n;break;case"end":r=t-1;break;case"center":case"center-odd":r=t-Math.ceil((n-.5)/2);break;case"center-even":r=t-Math.ceil(n/2);break;default:r=0;break}return Math.max(r,0)}function Vke({config:e,slidesCount:t}){const{wrapAround:a,snapAlign:i,itemsToShow:n=1}=e;let r=0;if(a||n>t)return r;switch(i){case"start":r=0;break;case"end":r=n-1;break;case"center":case"center-odd":r=Math.floor((n-1)/2);break;case"center-even":r=Math.floor((n-2)/2);break;default:r=0;break}return r}function lv({val:e,max:t,min:a}){return t<a?e:Math.min(Math.max(e,a),t)}function Uke({config:e,currentSlide:t,slidesCount:a}){const{snapAlign:i,wrapAround:n,itemsToShow:r=1}=e;let o=t;switch(i){case"center":case"center-odd":o-=(r-1)/2;break;case"center-even":o-=(r-2)/2;break;case"end":o-=r-1;break}return n?o:lv({val:o,max:a-r,min:0})}function aP(e){return e?e.reduce((t,a)=>{var i;return a.type===s.Fragment?[...t,...aP(a.children)]:((i=a.type)===null||i===void 0?void 0:i.name)==="CarouselSlide"?[...t,a]:t},[]):[]}function cv({val:e,max:t,min:a=0}){return e>t?cv({val:e-(t+1),max:t,min:a}):e<a?cv({val:e+(t+1),max:t,min:a}):e}function jke(e,t){let a;return t?function(...i){const n=this;a||(e.apply(n,i),a=!0,setTimeout(()=>a=!1,t))}:e}function zke(e,t){let a;return function(...i){a&&clearTimeout(a),a=setTimeout(()=>{e(...i),a=null},t)}}function Hke(e="",t={}){return Object.entries(t).reduce((a,[i,n])=>a.replace(`{${i}}`,String(n)),e)}var qke=s.defineComponent({name:"ARIA",setup(){const e=s.inject("config",s.reactive(Object.assign({},Sa))),t=s.inject("currentSlide",s.ref(0)),a=s.inject("slidesCount",s.ref(0));return()=>s.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},Hke(e.i18n.itemXofY,{currentSlide:t.value+1,slidesCount:a.value}))}}),Wke=s.defineComponent({name:"Carousel",props:tP,setup(e,{slots:t,emit:a,expose:i}){var n;const r=s.ref(null),o=s.ref([]),l=s.ref(0),c=s.ref(0),d=s.reactive(Object.assign({},Sa));let u=Object.assign({},Sa),h;const m=s.ref((n=e.modelValue)!==null&&n!==void 0?n:0),p=s.ref(0),f=s.ref(0),y=s.ref(0),b=s.ref(0);let E,D;s.provide("config",d),s.provide("slidesCount",c),s.provide("currentSlide",m),s.provide("maxSlide",y),s.provide("minSlide",b),s.provide("slideWidth",l);function M(){h=Object.assign({},e.breakpoints),u=Object.assign(Object.assign(Object.assign({},u),e),{i18n:Object.assign(Object.assign({},u.i18n),e.i18n),breakpoints:void 0}),A(u)}function N(){if(!h||!Object.keys(h).length)return;const J=Object.keys(h).map(Oe=>Number(Oe)).sort((Oe,We)=>+We-+Oe);let De=Object.assign({},u);J.some(Oe=>{const We=window.matchMedia(`(min-width: ${Oe}px)`).matches;return We&&(De=Object.assign(Object.assign({},De),h[Oe])),We}),A(De)}function A(J){Object.entries(J).forEach(([De,Oe])=>d[De]=Oe)}const L=zke(()=>{N(),V()},16);function V(){if(!r.value)return;const J=r.value.getBoundingClientRect();l.value=J.width/d.itemsToShow}function $(){c.value<=0||(f.value=Math.ceil((c.value-1)/2),y.value=Fke({config:d,slidesCount:c.value}),b.value=Vke({config:d,slidesCount:c.value}),d.wrapAround||(m.value=lv({val:m.value,max:y.value,min:b.value})))}s.onMounted(()=>{s.nextTick(()=>V()),setTimeout(()=>V(),1e3),N(),ie(),window.addEventListener("resize",L,{passive:!0}),a("init")}),s.onUnmounted(()=>{D&&clearTimeout(D),E&&clearInterval(E),window.removeEventListener("resize",L,{passive:!0})});let U=!1;const ae={x:0,y:0},oe={x:0,y:0},Q=s.reactive({x:0,y:0}),de=s.ref(!1),Se=s.ref(!1),we=()=>{de.value=!0},pe=()=>{de.value=!1};function z(J){["INPUT","TEXTAREA","SELECT"].includes(J.target.tagName)||(U=J.type==="touchstart",U||J.preventDefault(),!(!U&&J.button!==0||fe.value)&&(ae.x=U?J.touches[0].clientX:J.clientX,ae.y=U?J.touches[0].clientY:J.clientY,document.addEventListener(U?"touchmove":"mousemove",K,!0),document.addEventListener(U?"touchend":"mouseup",ue,!0)))}const K=jke(J=>{Se.value=!0,oe.x=U?J.touches[0].clientX:J.clientX,oe.y=U?J.touches[0].clientY:J.clientY;const De=oe.x-ae.x,Oe=oe.y-ae.y;Q.y=Oe,Q.x=De},d.throttle);function ue(){const J=d.dir==="rtl"?-1:1,De=Math.sign(Q.x)*.4,Oe=Math.round(Q.x/l.value+De)*J;if(Oe&&!U){const We=gt=>{gt.stopPropagation(),window.removeEventListener("click",We,!0)};window.addEventListener("click",We,!0)}me(m.value-Oe),Q.x=0,Q.y=0,Se.value=!1,document.removeEventListener(U?"touchmove":"mousemove",K,!0),document.removeEventListener(U?"touchend":"mouseup",ue,!0)}function ie(){!d.autoplay||d.autoplay<=0||(E=setInterval(()=>{d.pauseAutoplayOnHover&&de.value||ge()},d.autoplay))}function ne(){E&&(clearInterval(E),E=null),ie()}const fe=s.ref(!1);function me(J){const De=d.wrapAround?J:lv({val:J,max:y.value,min:b.value});m.value===De||fe.value||(a("slide-start",{slidingToIndex:J,currentSlideIndex:m.value,prevSlideIndex:p.value,slidesCount:c.value}),fe.value=!0,p.value=m.value,m.value=De,D=setTimeout(()=>{if(d.wrapAround){const Oe=cv({val:De,max:y.value,min:0});Oe!==m.value&&(m.value=Oe,a("loop",{currentSlideIndex:m.value,slidingToIndex:J}))}a("update:modelValue",m.value),a("slide-end",{currentSlideIndex:m.value,prevSlideIndex:p.value,slidesCount:c.value}),fe.value=!1,ne()},d.transition))}function ge(){me(m.value+d.itemsToScroll)}function ee(){me(m.value-d.itemsToScroll)}const re={slideTo:me,next:ge,prev:ee};s.provide("nav",re),s.provide("isSliding",fe);const X=s.computed(()=>Uke({config:d,currentSlide:m.value,slidesCount:c.value}));s.provide("slidesToScroll",X);const R=s.computed(()=>{const J=d.dir==="rtl"?-1:1,De=X.value*l.value*J;return{transform:`translateX(${Q.x-De}px)`,transition:`${fe.value?d.transition:0}ms`,margin:d.wrapAround?`0 -${c.value*l.value}px`:"",width:"100%"}});function he(){M(),N(),$(),V(),ne()}Object.keys(tP).forEach(J=>{["modelValue"].includes(J)||s.watch(()=>e[J],he)}),s.watch(()=>e.modelValue,J=>{J!==m.value&&me(Number(J))}),s.watch(c,$),a("before-init"),M();const ve={config:d,slidesCount:c,slideWidth:l,next:ge,prev:ee,slideTo:me,currentSlide:m,maxSlide:y,minSlide:b,middleSlide:f};i({updateBreakpointsConfigs:N,updateSlidesData:$,updateSlideWidth:V,initDefaultConfigs:M,restartCarousel:he,slideTo:me,next:ge,prev:ee,nav:re,data:ve});const Re=t.default||t.slides,qe=t.addons,Ge=s.reactive(ve);return()=>{const J=aP(Re==null?void 0:Re(Ge)),De=(qe==null?void 0:qe(Ge))||[];J.forEach((Ye,Ze)=>Ye.props.index=Ze);let Oe=J;if(d.wrapAround){const Ye=J.map((Bt,rt)=>s.cloneVNode(Bt,{index:-J.length+rt,isClone:!0,key:`clone-before-${rt}`})),Ze=J.map((Bt,rt)=>s.cloneVNode(Bt,{index:J.length+rt,isClone:!0,key:`clone-after-${rt}`}));Oe=[...Ye,...J,...Ze]}o.value=J,c.value=Math.max(J.length,1);const We=s.h("ol",{class:"carousel__track",style:R.value,onMousedownCapture:d.mouseDrag?z:null,onTouchstartPassiveCapture:d.touchDrag?z:null},Oe),gt=s.h("div",{class:"carousel__viewport"},We);return s.h("section",{ref:r,class:{carousel:!0,"is-sliding":fe.value,"is-dragging":Se.value,"is-hover":de.value,"carousel--rtl":d.dir==="rtl"},dir:d.dir,"aria-label":d.i18n.ariaGallery,tabindex:"0",onMouseenter:we,onMouseleave:pe},[gt,De,s.h(qke)])}}}),iP;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(iP||(iP={}));var Gke=s.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:t}){const a=s.inject("config",s.reactive(Object.assign({},Sa))),i=s.inject("currentSlide",s.ref(0)),n=s.inject("slidesToScroll",s.ref(0)),r=s.inject("isSliding",s.ref(!1)),o=()=>e.index===i.value,l=()=>e.index===i.value-1,c=()=>e.index===i.value+1,d=()=>{const u=Math.floor(n.value),h=Math.ceil(n.value+a.itemsToShow-1);return e.index>=u&&e.index<=h};return()=>{var u;return s.h("li",{style:{width:`${100/a.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":d(),"carousel__slide--active":o(),"carousel__slide--prev":l(),"carousel__slide--next":c(),"carousel__slide--sliding":r.value},"aria-hidden":!d()},(u=t.default)===null||u===void 0?void 0:u.call(t))}}});const Kke=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},Xke=e=>(s.pushScopeId("data-v-dd3cbf69"),e=e(),s.popScopeId(),e),Jke={class:"gsc-carousel"},Yke={key:0},Qke=Xke(()=>s.createElementVNode("div",null,"no hay",-1)),Zke=[Qke],$ke={class:"gsc-carousel__2d__slides"},eEe={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},tEe=["fill"],aEe={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},iEe=["fill"],nEe={class:"gsc-carousel__2d__navigation"},rEe={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},sEe=["stroke"],oEe={key:1,class:"gsc-carousel__2d__navigation__pagination"},lEe=["onClick"],cEe={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},dEe=["stroke"],uEe={__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(t=>t 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:t,emit:a}){const i=e;s.useCssVars(y=>({"0d808f0f":e.slideLeftArrowBackgroundImage,"1e0ef2e5":e.slidesArrowsLeftAndRight,"66d12b5c":e.slideRightArrowBackgroundImage,"2b22a85a":e.marginTop,"1a842b02":e.secondarySlidesOpacity}));const n=s.ref(null),r=s.ref({}),o=s.ref(0),l=s.ref(!1);s.watch(n,y=>{y&&l.value?(l.value=!1,c(i.items)):y&&y.slideTo&&y.slideTo(o.value)},{deep:!0}),s.watch(()=>i.currentItemIndex,y=>{o.value!==y&&m(y)}),s.watch(()=>i.items,y=>{n.value?c(y):l.value=!0},{immediate:!0});function c(y){if(y&&y.length&&n.value){if(i.defaultItemByProp){const b=i.items.findIndex(E=>E[i.defaultItemByProp.propName]===i.defaultItemByProp.value);b!==-1?(o.value=b,r.value=y[b]):(o.value=0,r.value=y[0])}else o.value=i.defaultItemByIndex,r.value=y[i.defaultItemByIndex];n.value.slideTo&&n.value.slideTo(o.value),a("input",{selectedItem:r.value,selectedItemIndex:o.value})}}function d(){n.value&&n.value.next()}function u(){n.value&&n.value.prev()}function h(){n.value&&n.value.updateSlideWidth()}function m(y){n.value&&n.value.slideTo(y)}function p(y){n.value.slideTo(y)}function f(y){const b=y.slidingToIndex<0?i.items.length-1:y.slidingToIndex===i.items.length?0:y.slidingToIndex;o.value=b,r.value=i.items[b],a("update:currentItemIndex",b),a("input",{selectedItem:r.value,selectedItemIndex:o.value})}return t({prev:u,next:d,updateSlideWidth:h,slideTo:m}),(y,b)=>(s.openBlock(),s.createElementBlock("div",Jke,[i.is3d?(s.openBlock(),s.createElementBlock("div",Yke,Zke)):(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[s.createElementVNode("div",$ke,[s.createVNode(s.unref(Wke),{ref_key:"carousel2d",ref:n,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:f},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.items,(E,D)=>(s.openBlock(),s.createBlock(s.unref(Gke),{key:D},{default:s.withCtx(()=>[s.renderSlot(y.$slots,"default",{item:E},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible?(s.openBlock(),s.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",onClick:b[0]||(b[0]=E=>n.value.prev())},[s.createElementVNode("div",{class:s.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(s.openBlock(),s.createElementBlock("svg",eEe,[s.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,tEe)]))],2)])):s.createCommentVNode("",!0),e.areSlidesArrowsVisible?(s.openBlock(),s.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",onClick:b[1]||(b[1]=E=>d())},[s.createElementVNode("div",{class:s.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(s.openBlock(),s.createElementBlock("svg",aEe,[s.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,iEe)]))],2)])):s.createCommentVNode("",!0),s.createElementVNode("div",nEe,[e.areNavigationArrowsVisible?(s.openBlock(),s.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:b[2]||(b[2]=E=>u())},[(s.openBlock(),s.createElementBlock("svg",rEe,[s.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:i.arrowsColor},null,8,sEe)]))])):s.createCommentVNode("",!0),e.isPaginationVisible?(s.openBlock(),s.createElementBlock("div",oEe,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.items,(E,D)=>(s.openBlock(),s.createElementBlock("div",{key:`i-${D}`,class:"gsc-carousel__2d__navigation__pagination__item",style:s.normalizeStyle({height:`${i.navigationHeight}px`,width:`${o.value===D?i.navigationActiveWidth:i.navigationActiveWidth/2}px`,borderRadius:`${i.navigationBorderRadius}px`,backgroundColor:`${o.value===D?i.navigationActiveColor:i.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:M=>p(D)},null,12,lEe))),128))])):s.createCommentVNode("",!0),e.areNavigationArrowsVisible?(s.openBlock(),s.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:b[3]||(b[3]=E=>n.value.next())},[(s.openBlock(),s.createElementBlock("svg",cEe,[s.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:i.arrowsColor},null,8,dEe)]))])):s.createCommentVNode("",!0)])],2))]))}},hEe=Kke(uEe,[["__scopeId","data-v-dd3cbf69"]]),pEe={class:"carousel-video-player"},mEe={class:"video-container"},fEe=["id"],gEe={__name:"CarouselVideoPlayer",props:{play:{type:Object,required:!0},videojs:{type:Function,required:!0}},emits:["play-ended"],setup(e,{emit:t}){const a=e,i=s.ref(null),n=s.computed(()=>`p-${a.play.playId}`);function r(){i.value=a.videojs(n.value,{controlBar:{fullscreenToggle:!1},playsinline:!0}),i.value.src({type:"video/mp4",src:`https://golstatsbets.blob.core.windows.net/video-player/${a.play.gameId}_1.mp4`}),i.value.offset({start:a.play.startSeconds,end:a.play.endSeconds}),i.value.on("ended",()=>{t("play-ended")}),a.play.videoPlayer=i}return s.onMounted(()=>{setTimeout(()=>{r()},10)}),(o,l)=>(s.openBlock(),s.createElementBlock("div",pEe,[s.createElementVNode("div",mEe,[s.createElementVNode("video",{id:n.value,class:"video-js",controls:"",preload:"auto","data-setup":"{}"},null,8,fEe)])]))}},yEe=bt(gEe,[["__scopeId","data-v-e4d57431"]]),_Ee=e=>(s.pushScopeId("data-v-bf6136c0"),e=e(),s.popScopeId(),e),bEe=_Ee(()=>s.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},[s.createElementVNode("path",{d:"M5 15L15 5",stroke:"white","stroke-width":"1.7","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),s.createElementVNode("path",{d:"M15 15L5 5",stroke:"white","stroke-width":"1.7","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),vEe=[bEe],SEe={class:"carousel-full-screen__carousel"},wEe={class:"carousel-full-screen__carousel__video-player"},TEe={__name:"CarouselFullScreen",props:{playerQueue:{type:Array,default:()=>[]},playlistIndex:{type:Number,default:0},initialPlay:{type:Object,default:()=>({})},videojs:{type:Function,required:!0}},emits:["close"],setup(e,{emit:t}){const a=e,i=s.ref({wrapAround:!1,itemsToShow:1.2,isMainSlidePriority:!0,areSlidesArrowsVisible:!0,areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"}),n=s.ref(0),r=s.ref(0),o=s.ref(null);function l(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}function c(){return/iPhone|iPad/i.test(navigator.userAgent)}function d(){const y=document.getElementById("carousel-swipe"),b=window.screen.orientation;b.angle==90&&l()||window.innerWidth<window.innerHeight&&l()?y.classList.remove("landscape"):(b.angle==0&&l()||window.innerWidth>window.innerHeight&&l())&&y.classList.add("landscape")}function u(){const y=document.getElementById("carousel-swipe"),b=window.screen.orientation;b.angle==90&&l()||window.innerWidth>window.innerHeight&&l()?y.classList.remove("landscape"):(b.angle==0&&l()||window.innerWidth<window.innerHeight&&l())&&y.classList.add("landscape")}function h(){const y=document.getElementById("carousel-swipe");window.innerWidth>window.innerHeight&&l()?y.classList.remove("landscape"):window.innerWidth<window.innerHeight&&l()&&y.classList.add("landscape")}function m({selectedItemIndex:y}){const b=y-n.value;r.value+=b;const E=a.playerQueue[n.value],D=a.playerQueue[y];E.videoPlayer&&E.videoPlayer.pause(),D.videoPlayer&&D.videoPlayer.play(),n.value=y}function p(){o.value&&o.value.next()}function f(){const y=a.playlistIndex+r.value;r.value=0,n.value=0,t("close",y)}return s.onMounted(()=>{c()?(window.addEventListener("resize",h),h()):(window.addEventListener("orientationchange",d),u()),setTimeout(()=>{const y=document.getElementsByClassName("video-element");y&&y.length&&Array.from(y).forEach((b,E)=>{b.id=`plyrFS${E+1}`})},100)}),s.onBeforeUnmount(()=>{c()?window.removeEventListener("resize",h):window.removeEventListener("orientationchange",d),a.playerQueue.forEach(y=>{y.videoPlayer&&(y.videoPlayer.pause(),y.videoPlayer.dispose())})}),(y,b)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["carousel-full-screen",{landscape:l()}]),id:"carousel-swipe"},[s.createElementVNode("div",{class:"carousel-full-screen__close",onClick:f},vEe),s.createElementVNode("div",SEe,[s.createVNode(s.unref(hEe),s.mergeProps({ref_key:"gscCarousel",ref:o},i.value,{items:e.playerQueue,"default-item-by-prop":{propName:"playId",value:e.initialPlay.playId},onInput:m}),{default:s.withCtx(({item:E})=>[s.createElementVNode("div",wEe,[s.createVNode(yEe,{videojs:e.videojs,play:E,onPlayEnded:p},null,8,["videojs","play"])])]),_:1},16,["items","default-item-by-prop"])])],2))}},CEe=bt(TEe,[["__scopeId","data-v-bf6136c0"]]),kEe=Gd(),Qi=_0e();let yu=null;const _u=["goals","bestPlays"],je={1:{name:"Oportunidad de Gol",weighing:3},2:{name:"Gol",weighing:1},3:{name:"Autogol",weighing:2},4:{name:"Tarjeta Amarilla",weighing:5},5:{name:"Tarjeta Roja",weighing:4},6:{name:"Penal Recibido",weighing:6},7:{name:"Atajada",weighing:8},8:{name:"Asistencia",weighing:9},9:{name:"Participación en Gol",weighing:14},10:{name:"Sobresaliente",weighing:20},11:{name:"Centro Rematado",weighing:11},12:{name:"Corner Rematado",weighing:12},13:{name:"Tiro Libre Rematado",weighing:13},14:{name:"1vs1 Exitoso Ofensivo",weighing:16},15:{name:"1vs1 Exitoso Defensivo",weighing:18},16:{name:"Pase Filtrado",weighing:15},17:{name:"Balón ganado en Área Propia",weighing:19},18:{name:"Balón Recuperado",weighing:17},19:{name:"Gol Recibido",weighing:7},20:{name:"Pases acertados",weighing:100},21:{name:"Balones recuperados en disputa",weighing:100},22:{name:"Asistencias",weighing:100},23:{name:"Participaciones en gol",weighing:100},24:{name:"Tiros a gol",weighing:100},25:{name:"Tiros a gol que llegaron a la portería",weighing:100},26:{name:"Cabeceos en área rival",weighing:100},27:{name:"Cabeceos en área propia",weighing:100},28:{name:"Centros",weighing:100},29:{name:"Centros acertados",weighing:100},30:{name:"1vs1 exitosos ofensivo",weighing:100},31:{name:"1vs1 exitosos ofensivo que terminaron en gol",weighing:100},32:{name:"1vs1 defensivos exitoso",weighing:100},33:{name:"Rechaces",weighing:100},34:{name:"Balones ganados en área rival",weighing:100},35:{name:"Balones ganados en área propia",weighing:100},36:{name:"Faltas cometidas",weighing:100},37:{name:"Faltas recibidas",weighing:100},38:{name:"Tarjetas amarillas",weighing:100},39:{name:"Tarjetas rojas",weighing:100},40:{name:"Atajadas",weighing:100},41:{name:"Tiros de Esquina",weighing:100,bluer:!0},42:{name:"Balones recuperados en cancha rival",weighing:100},43:{name:"Origen de gol",weighing:10}},Cf={player:{"12-55":je[2]},gamesAndTeams:{"12-55":je[2],"54_r-35_r":je[3]}},Zi={games:{"607-608":je[1],"12-55":je[2],"54-35":je[3],"14-52":je[4],"15-53":je[5],"466-477":je[6]},team:{"607-608":je[1],"12-55":je[2],"54-35":je[3],"14-52":je[4],"15-53":je[5],"466-477":je[6],"40-257":je[19],39:je[7]},player:{regular:{12:je[2],35:je[3],10:je[8],27:je[9],607:je[1],61:je[43],519:je[10],"98-101-109-112":je[11],"121-122-127-128-135-136-141-142":je[12],"161-170-179":je[13],702:je[14],730:je[15],466:je[6],217:je[16],"211-232-235-239-242-282-284-289-291-296":je[17],"485-486-487-488":je[18],14:je[4],15:je[5],257:je[19]},goalkeeper:{55:je[2],324:je[8],323:je[9],608:je[1],39:je[7],774:je[14],802:je[15],52:je[4],53:je[5],40:je[19],54:je[3]}}},EEe={"2-20":je[20],483:je[21],10:je[22],27:je[23],510:je[24],"537-540-544-547":je[25],328:je[26],"231-280-238-287-406-294":je[27],"13-25":je[28],"98-101-104-105-109-112-115-116":je[29],4:je[30],88:je[31],5:je[32],34:je[33],11:je[34],23:je[35],17:je[36],18:je[37],14:je[38],15:je[39],39:je[40],"31-32":je[41],"225-224":je[42]},IEe=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],xEe=1,dv={components:{CarouselFullScreen:CEe,SearchFilters:Mke,VideoSearch:ywe,VideoPlayerControls:Mde,VideoPlayer:bue,CurrentMatch:Coe,MatchesList:Ioe,GSCPlayerTeamGame:Ide,GscSwitchComponent:DE},props:{section:{type:Boolean,default:!0},componentWidth:{type:Number,default:767,validator(e){return e>0}},backgroundColor:{type:String,default:"#172531"},user:{type:Object,default:()=>({})},userForDiscoverVideos:{type:Object,default:()=>({})},token:{type:String,default:""},isGSUser:{type:Boolean,default:!0},tournamentSelectedId:{type:Number,default:0},seasonSelectedId:{type:Number,default:0},tournamentsForMediaPlayer:{type:[Map],default:()=>new Map},isFromMexico:{type:Boolean,default:!0},gsData:{type:[Object,null],default:null},isFirstRow:{type:Boolean,default:!1},custom:{type:[Object,null],default:null},autoFillVideos:{type:Boolean,default:!1},isPlayerUser:{type:Boolean,default:!1},isGoalkeeper:{type:[Boolean,Number],default:!1},playerId:{type:Number,default:0},isModalMode:{type:Boolean,default:!0},modalInitialData:{type:Object,default:null},isModal:{type:Boolean,default:!1},isGoalsOnly:{type:Boolean,default:!1},nextRivalTeam:{type:Object,default:()=>({team_id:0})}},data(){return{filterToSetUp:null,videojsLocal:null,player:null,lastSearchResult:null,mobileClass:!1,currentMobileTab:"Estás viendo",currentTabMoreVideos:"Resumen",booleanIsFirstIteration:!0,numberCurrentSeasonId:0,numberLastActionId:0,numberPlayerSpeed:1,numberOptionsMenuTop:0,numberOptionsMenuLeft:0,booleanIsVideoPlayerPlaying:!1,booleanIsOptionsMenuVisible:!1,booleanIsSpeedModalVisible:!1,showModalConfirm:!1,showConfirmPlaylist:!0,showModal:!1,seasonId:0,plays:[],playerQueue:[],playsType:_u[0],playsTypeOptions:_u,playInfo:{},teamsMap:new Map,gamesMap:new Map,roundsMap:new Map,mediaPlayerMode:"games",playerPosition:0,playlistTournament:null,showImage:!1,seasonName:"",playlistSeasonIndex:0,playlistSeasonIndexAux:0,playerModeSelected:1,currentTournament:{seasons:[]},mediaPlayerResizeObserver:null,mediaPlayerWidth:0,lastMediaPlayerWidth:0,selectedType:1,roundsAndGamesWithPlaysMap:null,gameIdSelected:0,seasonSearchingCount:0,hasPlayerActivityInTournament:!1,isAutoPlay:!1,storeModule:this.isModalMode?"mediaModal":"mediaGeneral",isFirstTypeChange:!0,rivalCategories:[],counterAux:0,useIdsFromAdvancedFilter:!1,maxGameId:0,tournamentsForModalLauncher:new Map,lastGameIdWatched:0,isSomeListSelected:!1,booleanIsModesModalOpen:!1,arrayCategoriesIdsToFilter:null,arrayRivalCategoriesIdsToFilter:null,arrayCategoriesIdsRaw:null,booleanIsFilterApplied:!1,stringModeTitle:"Estas viendo: Goles de la jornada",objectMediaPlayerModeFilters:this.getEmptyMediaPlayerModeFilters(),playSeekerPlays:[],geoOptions:{enableHighAccuracy:!0,timeout:5e3,maximumAge:0},coords:null,concatPlays:!1,currentPlayIndex:0,firstInteractionToken:"",firstInteractionUrl:"https://playseeker-api-fi.golstats.com",userBehaviorUrl:"https://playseeker-api-ub.golstats.com",gamesUrl:"https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",booleanIsPlaySeekerMode:!1,objectLastDataToFilter:null,objectPlaySeekerLastPlay:null,objectPlaySync:null,isCarouselFullScreenVisible:!1}},computed:{...pC("mediaModal",["currentPlaylistPlays","modalSectionSelected","isModalOpen","playlistGameId"]),...pC("mediaGeneral",["playersMapMyPlaylists","teamsMapMyPlaylists","gamesMapMyPlaylists","maxGameIdMyPlaylists","player","mapMinutesPlayedCategoryNames","playSeekerUserId","playSeekerCurrentSessionId"]),...fC("mediaModal",["currentPlayerQueueByGames"]),...fC("mediaGeneral",["userPlaylistsSeasonIds"]),currentMatch(){return this.currentPlayerQueueByGames&&this.currentPlayerQueueByGames.length&&this.playlistGameId?this.currentPlayerQueueByGames.find(e=>e.id===this.playlistGameId):null},dynamicClasses(){let e=[];return this.isModal&&e.push("modal-class"),this.mediaPlayerWidth>0&&(this.mediaPlayerWidth<=420?e.push("modal-video__420"):this.mediaPlayerWidth<=750?e.push("modal-video__750"):this.mediaPlayerWidth<=850?e.push("modal-video__850"):this.mediaPlayerWidth<=1024?e.push("modal-video__1024"):this.mediaPlayerWidth<=1100?e.push("modal-video__1100"):this.mediaPlayerWidth<=1280?e.push("modal-video__1280"):this.mediaPlayerWidth<=1520&&e.push("modal-video__1520")),e},carouselPlayerQueue(){return this.playerQueue?this.playerQueue.filter(e=>e.gameId===this.currentMatch.id):[]},mediaPlayerType(){return"general"},extraCategories(){return[...oSe,...lSe,...fSe,..._Se,...wSe,...ESe,...ASe,...hSe].reduce((e,t)=>(t.categories.forEach(a=>{e.set(a,{id:a,name:this.$t&&t.translationKey&&this.$t(t.translationKey)||t.singleName})}),e),new Map)},isMyPlaylistsActive(){return this.isModalMode&&this.modalSectionSelected===2&&this.isSomeListSelected},modalInitialState(){return this.isModalMode?this.$store.state.mediaModal.modalInitialState:{}},modalSectionSelected(){return this.isModalMode?this.$store.state.mediaModal.modalSectionSelected:{}},playerType(){return this.isModalMode?this.$store.state.mediaModal.playerType:0},advancedFilter(){return this.isModalMode?this.$store.state.mediaModal.advancedFilter:{}},applyAdvancedFilterCounter(){return this.isModalMode?this.$store.state.mediaModal.applyAdvancedFilterCounter:0},selectedSubcategoryIds(){return this.isModalMode?this.$store.state.mediaModal.selectedSubcategoryIds:[]},getSeasonIdOnly(){return this.$store.getters[`${this.storeModule}/getSeasonIdOnly`]},getTeamId(){return this.$store.getters[`${this.storeModule}/getTeamId`]},getPlayerId(){return this.$store.getters[`${this.storeModule}/getPlayerId`]},seasonPlayers(){return this.$store.getters[`${this.storeModule}/seasonPlayers`]},selectedTournament(){return this.$store.getters[`${this.storeModule}/selectedTournament`]},isPlayerGoalkeeper(){return this.$store.getters[`${this.storeModule}/isPlayerGoalkeeper`]},hasPlayerPositionId(){return this.$store.getters[`${this.storeModule}/hasPlayerPositionId`]},playersByTeam(){return this.$store.getters[`${this.storeModule}/playersByTeam`]},tournaments(){return this.$store.state[`${this.storeModule}`].tournaments},seasonID(){return this.$store.state[`${this.storeModule}`].seasonID},playlistIndex(){return this.$store.state[`${this.storeModule}`].playlistIndex},retroSeason(){return this.$store.state[`${this.storeModule}`].retroSeason},objectMediaData(){return this.$store.state[`${this.storeModule}`].objectMediaData},playsSaved(){return this.$store.getters["mediaGeneral/playsSaved"]},summaryData(){return null},isSummaryData(){return!!this.summaryData},profilesSeasonId(){return this.isModalMode?0:this.$store.getters["filterGeneral/getSeasonId"]},currentCategories(){return this.isModalMode?this.modalSectionSelected===1?this.isGoalsOnly?Object.keys(Cf.gamesAndTeams).reduce((e,t)=>(t.split("-").forEach(a=>{e.push(a)}),e),[]):this.modalInitialState?this.modalInitialState.categoryIds&&this.modalInitialState.categoryIds.length?this.modalInitialState.categoryIds:this.getBestCategoriesIds():[]:this.useIdsFromAdvancedFilter?this.selectedSubcategoryIds:this.modalInitialState?this.modalInitialState.categoryIds:[]:this.summaryData?Object.keys(this.summaryData.isTeam?Cf.gamesAndTeams:this.summaryData.positionId===1?Zi.player.goalkeeper:Zi.player.regular).reduce((e,t)=>(t.split("-").forEach(a=>{e.push(a)}),e),[]):Object.keys(this.user&&this.user.is_player&&this.hasUserPlayerSelectedSeason?this.user.is_goalkeeper?Zi.player.goalkeeper:Zi.player.regular:Cf.gamesAndTeams).reduce((e,t)=>(t.split("-").forEach(a=>{e.push(a)}),e),[])},allCategories(){const e=new Map,t={...Cf.gamesAndTeams,...EEe};return Object.entries(t).forEach(([a,i])=>{a.split("-").forEach(n=>{e.set(n.includes("_r")?n:Number(n),i)})}),this.setBestCategoriesNames(e),e},queryCategories(){let e="";const t=[];return this.currentCategories.forEach((a,i)=>{let n=typeof a=="string"?a:a.toString(),r=!1;n.includes("_")&&(r=!0,n=Number(n.split("_")[0]),t.push(n)),e+=`${i>0?"&":""}${r?"r":""}categories=${n}`}),this.setRivalCategories(t),e},gamesByRound(){const e={};if(this.roundsAndGamesWithPlaysMap)for(const[t,a]of this.roundsAndGamesWithPlaysMap){const[i,n]=t.split(","),r=Array.from(a.values());r.sort((o,l)=>l.dateTimeMillis-o.dateTimeMillis),e[n]={name:i,games:r}}return e},teams(){return this.teamsMap?Array.from(this.teamsMap.values()):[]},isGoalsActive(){return this.playsType===_u[0]},headerResponsiveClass(){const e=[];return this.mediaPlayerWidth<354?e.push("header--width-354"):this.mediaPlayerWidth<440?e.push("header--width-400"):this.mediaPlayerWidth<541?e.push("header--width-540"):this.mediaPlayerWidth<626?e.push("header--width-626"):this.isFirstRow&&this.mediaPlayerWidth<610&&e.push("header--first-row"),e},playInfoStyle(){return!this.gsData&&this.mediaPlayerWidth<871?{padding:"0 0.5em"}:this.isFirstRow?{"margin-top":"0.3em"}:{}},headerIcon(){return this.custom!=null&&Object.keys(this.custom).length?this.custom.logo:"https://az755631.vo.msecnd.net/content/shieldLogoPc.png"},isUserTournament(){return this.gsData&&this.gsData.tournamentId===this.currentTournament._id},hasUserPlayerSelectedSeason(){return this.user.is_player?this.user.related_seasons.includes(this.numberCurrentSeasonId||this.seasonSelectedId):!1},hasUserTeamSelectedTournament(){return!this.user.is_player&&this.user.team?this.user.related_seasons.includes(this.numberCurrentSeasonId||this.seasonSelectedId):!1}},watch:{isModalOpen(e){e||this.applyObjectMediaData()},seasonSelected(){this.setInitialTitle()},tournamentSelectedId(){this.setInitialTitle()},seasonSelectedId:{handler(e){this.setUpData(e)},immediate:!0},selectedTournament:{deep:!0,handler(e){e&&(this.playlistTournament=e,this.playlistSeasonIndex=0)}},seasonID:{deep:!0,handler(e){e&&(this.playlistSeasonIndexAux=e.index)}},playsType(e){this.isModalMode||this.setPlaysType({mediaPlayerType:this.mediaPlayerType,playsType:e}),this.fetchInfo(!0,this.playlistTournament)},modalSectionSelected(e){e!==1&&(this.isSomeListSelected=!1),[0,1].includes(e)&&(this.playsType!==_u[e]?this.playsType=_u[e]:this.fetchInfo(!0,this.playlistTournament)),this.modalInitialState&&this.modalInitialState.mainSectionType-1===this.modalSectionSelected&&this.checkSeason()},selectedSubcategoryIds(e){e&&e.length&&this.applyAdvancedFilter()},seasonPlayers(e){if(this.getPlayerId&&!this.hasPlayerPositionId){const t=e.get(this.getPlayerId);t&&this.$store.commit(`${this.storeModule}/setPlayer`,t)}},profilesSeasonId:{handler(e){this.setUpData(e)}},tournamentsForMediaPlayer(e){this.seasonSelectedId&&e.size>0&&!this.isModalMode&&this.setUpData(this.seasonSelectedId)},currentPlaylistPlays(e){this.isModalMode&&this.modalSectionSelected===2&&this.setPlaylistPlays(e)},userPlaylistsSeasonIds(e){this.fillMyPlaylistsData(Array.from(e.values()))},seasonId:{immediate:!0,handler(e){this.isModalMode||this.setSeasonId({mediaPlayerType:this.mediaPlayerType,seasonId:e})}},currentCategories:{immediate:!0,handler(e){this.isModalMode||this.setCurrentCategories({mediaPlayerType:this.mediaPlayerType,currentCategories:e})}},selectedType:{immediate:!0,handler(e){this.isModalMode||this.setSelectedType({mediaPlayerType:this.mediaPlayerType,selectedType:e})}},getTeamId:{immediate:!0,handler(e){this.isModalMode||this.setTeamId({mediaPlayerType:this.mediaPlayerType,teamId:e})}},player:{immediate:!0,handler(e){this.isModalMode||this.setModalPlayer({mediaPlayerType:this.mediaPlayerType,player:e})}}},methods:{...mC("mediaModal",["setPlaylistGameId","setPlayerType","setModalInitialState","setIsModalOpen","setIsModalCreatePlayListOpen"]),...mC("mediaGeneral",["setPlayersMapMyPlaylists","setTeamsMapMyPlaylists","setGamesMapMyPlaylists","setMaxGameIdMyPlaylists","setSeasonId","setPlaysType","setCurrentCategories","setSelectedType","setTournamentsForModalLauncher","setTeamId","setModalPlayer","setPlaysToSaveAsFavorites","setPlaySeekerUserId","setPlaySeekerCurrentSessionId"]),applyObjectMediaData(){!this.objectMediaData||this.objectMediaData.booleanAvoidApply||(this.objectMediaData.numberMainSectionType&&this.$store.commit("mediaModal/setModalSectionSelected",this.objectMediaData.numberMainSectionType),this.objectPlaySync=this.objectMediaData.objectPlaySync?{...this.objectMediaData.objectPlaySync,booleanIsApplied:!1}:null,this.stringModeTitle=this.objectMediaData.stringModeTitle,this.playerQueue=[...this.objectMediaData.arrayPlayerQueue],this.$store.commit(`${this.storeModule}/setPlaylistIndex`,{mediaPlayerType:this.isModalMode?null:this.mediaPlayerType,playlistIndex:this.objectMediaData.numberPlaylistIndex}),this.$store.commit(`${this.storeModule}/setCurrentPlayerQueue`,this.playerQueue),this.playlistSeasonIndex=this.objectMediaData.numberPlaylistSeasonIndex,this.booleanIsPlaySeekerMode=this.objectMediaData.booleanIsPlaySeekerMode,this.booleanIsFilterApplied=this.objectMediaData.booleanIsFilterApplied,this.objectMediaData.objectLastDataToFilter&&this.fillDataToFilterData(this.objectMediaData.objectLastDataToFilter))},setPlaylistPlays(e){const t=this.getFormattedPlays(e,!0);this.generatePlayerQueue(null,t,!0)},applyAdvancedFilter(){this.useIdsFromAdvancedFilter=!0,this.fetchInfo(!0,this.playlistTournament)},setRivalCategories(e){this.rivalCategories=e},setUpData(e,t=!1){if(!this.isFromMexico&&!this.isGSUser){this.$emit("finish");return}let a=!1;const i=this.tournamentsForMediaPlayer;e||(a=!0,e=this.seasonSelectedId);const n=Number(e);let r=i.get(n);if(this.tournamentsForModalLauncher=i,this.isModalMode||this.setTournamentsForModalLauncher({mediaPlayerType:this.mediaPlayerType,tournamentsForModalLauncher:i}),!r&&this.isModalMode&&this.modalInitialState&&this.modalInitialState.tournamentsLastClashes&&(r=this.modalInitialState.tournamentsLastClashes.get(e)),this.playlistTournament=r,r){if(this.summaryData&&(this.stringModeTitle=this.summaryData.isTeam?"Estas viendo: Resumen equipo":"Estas viendo: Resumen jugador"),this.playlistSeasonIndex=r.seasons.findIndex(o=>o.id===n),this.playlistSeasonIndexAux=this.playlistSeasonIndex,!t&&!this.summaryData)if(this.isPlayerUser){if(this.hasPlayerActivityInTournament=!!this.getPlayerTournamentBySelectedSeason(n,i),this.hasPlayerActivityInTournament){const o={id:Number(this.user.player)};this.isGoalkeeper&&(o.positionId=1),this.seasonSearchingCount=0,this.$store.commit(`${this.storeModule}/setPlayer`,o),this.$store.commit(`${this.storeModule}/setTeam`,this.gsData.teamId),this.onPlayerSelected();return}!this.hasPlayerActivityInTournament&&this.selectedType!==1&&(this.$store.commit(`${this.storeModule}/setPlayer`,null),this.$store.commit(`${this.storeModule}/setTeam`,null))}else if(this.gsData&&this.gsData.tournamentId===this.playlistTournament._id&&this.gsData.teamId){this.seasonSearchingCount=0,this.$store.commit(`${this.storeModule}/setPlayer`,null),this.$store.commit(`${this.storeModule}/setTeam`,this.gsData.teamId),this.onTeamSelected();return}else this.seasonSearchingCount=0,this.$store.commit(`${this.storeModule}/setPlayer`,null),this.$store.commit(`${this.storeModule}/setTeam`,null);this.fillSeasons([r],a)}},setInitialTitle(){!this.summaryData&&!this.booleanIsFilterApplied&&this.hasUserPlayerSelectedSeason?this.stringModeTitle="Estas viendo: Resumen de jugador":!this.summaryData&&!this.booleanIsFilterApplied&&this.hasUserTeamSelectedTournament?this.stringModeTitle="Estas viendo: Resumen de equipo":this.stringModeTitle="Estas viendo: Goles de la jornada"},closeModalConfirm(){this.showModalConfirm=!1},onModalSpeedClose(){this.booleanIsSpeedModalVisible=!1},onClickSpeed(e){this.numberPlayerSpeed=e,this.$refs.videoPlayer.setSpeedToAllPlayers(e),this.booleanIsSpeedModalVisible=!1},confirmModalConfirm(){this.showModalConfirm=!1,this.$refs.videoPlayer.playCurrentVideoPlayer()},openmodal(){this.$refs.videoPlayer.setAutoPlaysCount(0),this.showModal=!0},closeModal(){this.showModal=!1},getBestCategoriesIds(){let e=null;return this.mediaPlayerMode==="player"?this.isPlayerGoalkeeper?e=Object.keys(Zi.player.goalkeeper):e=Object.keys(Zi.player.regular):e=Object.keys(Zi[this.mediaPlayerMode]),e.reduce((t,a)=>(a.split("-").forEach(i=>{t.push(i)}),t),[])},setBestCategoriesNames(e){[...Object.entries(Zi.player.goalkeeper),...Object.entries(Zi.player.regular),...Object.entries(Zi[this.mediaPlayerMode])].forEach(([t,a])=>{t.split("-").forEach(i=>{e.set(Number(i),a)})})},onPlaysTypeClicked(e){this.playsType=e},getPlayTime(e,t){let a="",i=0;switch(e.matchLapse){case 1:a=e.syncStartFirstTime;break;case 2:a=e.syncStartSecondTime,i=45;break;case 3:a=e.syncStartFirstExtraTime,i=90;break;case 4:a=e.syncStartSecondExtraTime,i=105;break;case 5:a=e.syncStartPenals,i=120;break}return(!a||a==="0")&&(a="00:00"),this.getTimeToSeconds(a)+(this.getTimeToSeconds(e[t])-i*60)},getTimeToSeconds(e){const t=e.indexOf(".")>-1?e.substring(0,e.indexOf(".")):e,[a,i,n]=t.split(":").reverse();return(n?Number(n)*60*60:0)+Number(i)*60+Number(a)},getFormattedPlays(e,t=!1,a=null){this.roundsAndGamesWithPlaysMap=new Map,yu=new Map,e.forEach(n=>{const r=n.reduce((u,h,m)=>(u[kEe[m]]=h,u),{});r.playRaw=n;let o=null,l=null,c=null,d=0;if(t?(c=this.teamsMapMyPlaylists,d=this.maxGameIdMyPlaylists,o=this.gamesMapMyPlaylists.get(r.gameId),l=this.playersMapMyPlaylists.get(r.playerId),r.booleanIsFromMyPlaylists=!0):(c=a?a.mapTeams:this.teamsMap,d=a?a.maxGameId:this.maxGameId,o=a?a.mapGames.get(r.gameId):this.gamesMap.get(r.gameId),l=a?a.mapPlayers.get(r.playerId):this.seasonPlayers.get(r.playerId)),l&&o&&r.gameId<=d){const u=`${o.roundName},${o.roundAbbreviation},${o.seasonId}`,h=this.roundsAndGamesWithPlaysMap.get(u);h?h.set(o.id,o):this.roundsAndGamesWithPlaysMap.set(u,new Map().set(o.id,o)),r.game=o,r.game.awayTeam.id===r.teamId?(r.teamName=r.game.awayTeam.name,r.teamAcronym=r.game.awayTeam.acronym,r.rivalName=r.game.homeTeam.name):(r.teamName=r.game.homeTeam.name,r.teamAcronym=r.game.homeTeam.acronym,r.rivalName=r.game.awayTeam.name),r.playingAs=r.teamId===r.game.homeTeam.id?1:2,r.player=l,r.playerTeamLogo=c.get(r.player.teamId).logo,r.rivalTeamLogo=c.get(r.player.teamId===r.game.homeTeam.id?r.game.awayTeam.id:r.game.homeTeam.id).logo,r.startSeconds=this.getPlayTime(r,"startTime"),r.endSeconds=this.getPlayTime(r,"endTime");const m=new Date(r.gameDate),[p,f]=r.gameHour.split(":");m.setHours(p),m.setMinutes(f),r.dateTimeMillis=m.valueOf(),yu.has(r.gameId)?yu.get(r.gameId).plays.push(r):yu.set(r.gameId,{dateTimeMillis:m.valueOf(),plays:[r]})}});const i=Array.from(yu.values());return i.sort((n,r)=>r.dateTimeMillis-n.dateTimeMillis),i.reduce((n,r)=>(r.plays.sort((o,l)=>+`${o.matchLapse}${o.startTime.replace(/:*\.*/g,"")}`-+`${l.matchLapse}${l.startTime.replace(/:*\.*/g,"")}`),n.push(...r.plays),n),[])},generatePlayerQueue(e,t,a=!1,i=0,n){if(!t.length)return;const r=new Map,o=this.modalInitialState?this.modalInitialState.advancedFilter||{}:{};o&&o.fieldSections&&(o.fieldSectors=o.fieldSections.map(d=>Yi[`${d}`]));let l=0,c=0;if(this.lastSearchResult&&t.filter(d=>{const u=d.game.homeTeam.id===this.lastSearchResult.team.id||d.game.awayTeam.id===this.lastSearchResult.team.id;return u&&console.count("valid team"),u}).filter(d=>{const u=!this.lastSearchResult.game||d.gameId===this.lastSearchResult.game.id;return u&&console.count("valid game"),u}).filter(d=>!this.lastSearchResult.player||d.playerId===this.lastSearchResult.player.id),this.$store.commit("mediaGeneral/setPlaylistIndex",{mediaPlayerType:this.isModalMode?null:this.mediaPlayerType,playlistIndex:0}),this.playerQueue=t.reduce((d,u)=>{const h=`${u.gameId}-${u.playerId}-${u.startTime}`;let m=!1;if(this.modalInitialState&&this.modalInitialState.playsIds)m=!this.modalInitialState.playsIds.has(u.playId);else if(this.lastSearchResult)u.game.homeTeam.id===this.lastSearchResult.team.id||(u.game.awayTeam.id,this.lastSearchResult.team.id),this.lastSearchResult.team&&(m=u.game.homeTeam.id!==this.lastSearchResult.team.id&&u.game.awayTeam.id!==this.lastSearchResult.team.id),!m&&this.lastSearchResult.game&&(m=u.gameId!==this.lastSearchResult.game.id),!m&&this.lastSearchResult.player&&(m=u.playerId!==this.lastSearchResult.player.id);else if(this.isModalMode&&!a&&!n){this.modalInitialState.lastClashesGameId&&(m=u.gameId!==this.modalInitialState.lastClashesGameId);const y=this.getTeamId||this.modalInitialState.teamId;if(y&&(m=u.game.homeTeam.id!==y&&u.game.awayTeam.id!==y),!m&&this.selectedType===2&&(m=(this.modalInitialState&&this.modalInitialState.playerIds?this.modalInitialState.playerIds[0]:this.getPlayerId)!==u.playerId),!m&&o&&(o.playingAs&&o.playingAs.length&&(m=o.requiresRivalTransform&&o.playingAs.length===1&&u.teamId!==y?o.playingAs.includes(u.playingAs):!o.playingAs.includes(u.playingAs)),!m&&o.timeSections&&o.timeSections.length&&(m=!o.timeSections.includes(u.section)),!m&&o.coordinatePoint&&o.fieldSectors)){const b=bl(u[`x${o.coordinatePoint}`],u[`y${o.coordinatePoint}`])+1;m=!o.fieldSectors.includes(b)}if(!m&&y&&this.modalInitialState.matchResult&&this.modalInitialState.matchResult.length){const b=u.game.gameResult===3?3:u.game.gameResult===1&&y===u.game.homeTeam.id||u.game.gameResult===2&&y===u.game.awayTeam.id?1:2;m=!this.modalInitialState.matchResult.includes(b)}}const p=this.lastSearchResult?this.lastSearchResult.categoryIds:this.arrayCategoriesIdsToFilter||e,f=this.arrayRivalCategoriesIdsToFilter||this.rivalCategories;if(a||(n||!m)&&(p.includes(u.categoryId)||f.includes(u.categoryId)&&(this.booleanIsFilterApplied||!this.getTeamId||u.rivalTeamId===this.getTeamId))&&u.startSeconds!==u.endSeconds){const y=r.get(h);let b=this.modalInitialState&&this.modalInitialState.mainSectionType===this.modalSectionSelected+1&&this.modalInitialState.categorySingleName&&!this.modalInitialState.avoidCategorySingleName&&![35,54].includes(u.categoryId)?{name:this.modalInitialState.categorySingleName}:this.allCategories.get(u.categoryId)||this.allCategories.get(`${u.categoryId}_r`)||this.extraCategories.get(u.categoryId)||this.extraCategories.get(`${u.categoryId}_r`);this.modalInitialState&&this.modalInitialState.avoidCategorySingleName?b={name:this.modalInitialState.categorySingleName,weighing:1}:this.isModalMode&&u.categoryId===33&&(b={name:"Fuera de lugar",weighing:1});let E="";b||(E=this.mapMinutesPlayedCategoryNames.get(u.categoryId),E?b={name:E,weighing:1}:!b&&o&&(b={name:o.playListTitle,weighing:100})),b||(b=this.allCategories.get(u.categoryId)||this.allCategories.get(`${u.categoryId}_r`)||this.extraCategories.get(u.categoryId)||this.extraCategories.get(`${u.categoryId}_r`)),c||(this.lastGameIdWatched===u.gameId&&(c=l),l++),y?(b.weighing<y.mainCategory.weighing&&(y.mainCategory=b),y.categoriesNames.add(b.name)):(u.isSaved=this.playsSaved.has(u.playId),u.mainCategory=b,u.categoriesNames=new Set,u.categoriesNames.add(b.name),r.set(h,u),d.push(u))}return d},[]),this.lastSearchResult=null,this.showImage=!1,this.isModalMode){if(a)this.$store.commit("mediaModal/setPlaylistIndex",{mediaPlayerType:this.isModalMode?null:this.mediaPlayerType,playlistIndex:0});else if(this.playerQueue.length)if(n&&this.objectMediaPlayerModeFilters.objectGameSelected){const d=this.playerQueue.findIndex(u=>this.objectMediaPlayerModeFilters.objectGameSelected.game_id===u.game.id);d!==-1&&this.$store.commit("mediaModal/setPlaylistIndex",{mediaPlayerType:this.isModalMode?null:this.mediaPlayerType,playlistIndex:d})}else if(this.selectedType===1&&c)this.$store.commit("mediaGeneral/setPlaylistIndex",{mediaPlayerType:this.isModalMode?null:this.mediaPlayerType,playlistIndex:c});else if(this.modalInitialState&&!this.modalInitialState.lastClashesGameId&&this.modalInitialState.gameIds&&this.selectedType===1){const d=this.playerQueue.findIndex(u=>this.modalInitialState.gameIds.includes(u.game.id));d!==-1?this.$store.commit("mediaModal/setPlaylistIndex",{mediaPlayerType:this.isModalMode?null:this.mediaPlayerType,playlistIndex:d}):this.playerQueue=[]}else if(this.modalInitialState&&this.modalInitialState.playData&&this.modalInitialState.playData.playId){const d=this.playerQueue.findIndex(u=>u.playId===this.modalInitialState.playData.playId);d!==-1&&this.$store.commit("mediaModal/setPlaylistIndex",{mediaPlayerType:this.isModalMode?null:this.mediaPlayerType,playlistIndex:d})}else this.modalInitialState&&this.modalInitialState.currentPlayIndex?this.$store.commit("mediaModal/setPlaylistIndex",{mediaPlayerType:this.isModalMode?null:this.mediaPlayerType,playlistIndex:this.modalInitialState.currentPlayIndex}):this.$store.commit("mediaModal/setPlaylistIndex",{mediaPlayerType:this.isModalMode?null:this.mediaPlayerType,playlistIndex:i});this.$store.commit(`${this.storeModule}/setCurrentPlayerQueue`,this.playerQueue)}this.playerQueue.length||this.emptyListDecision(),this.booleanIsFirstIteration&&(this.booleanIsFirstIteration=!1,this.$emit("finish"))},emptyListDecision(){this.summaryData&&this.summaryData.isTeam&&this.playsType===this.playsTypeOptions[0]?this.playsType=this.playsTypeOptions[1]:!this.summaryData&&!this.isModalMode&&this.onTypeChanged(1)},getGeneralName(e){return e.split(" ").reduce((t,a,i)=>{if(i===0)if(a.includes("."))t.push(a);else{const n=a.toLowerCase().split("");n[0]=n[0].toUpperCase(),t.push(n.join(""))}else t.push(a.toLowerCase());return t},[]).join(" ")},getSingleName(e){return e.split(" ").reduce((t,a)=>{let i=a;return a.endsWith("ciones")?i=a.replace("ciones","ción"):a.endsWith("nales")?i=a.replace("nales","nal"):a.endsWith("vocan")?i=a.replace("vocan","voca"):a.endsWith("lones")?i=a.replace("lones","lón"):a.endsWith("oles")?i=a.replace("oles","ol"):(a.endsWith("os")||a.endsWith("as")||a.endsWith("es"))&&(i=a.slice(0,a.length-1)),t.push(i),t},[]).join(" ")},getCategoryFormat(e=""){const t=this.getGeneralName(e);return this.getSingleName(t)},getPlayerTournamentBySelectedSeason(e,t){const a=this.user.related_seasons.reduce((n,r)=>{const o=t.get(r);return o&&n.push(o._id),n},[]),i=t.get(e);return a.includes(i._id)?i:null},changeTournament(e){},changeSeason(e){},getFilteredPlays(e){return e.reduce((t,a)=>{if(this.objectMediaPlayerModeFilters.objectFilters.numberActionId>1){let i=!0;if(i&&this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayPlayingAs&&([3,4].includes(this.actionId)?i=!(this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.booleanRequiresRivalTransform&&this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayPlayingAs.length===1?a.teamId!==this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.numberTeamId?this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayPlayingAs.includes(a.playingAs):!this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayPlayingAs.includes(a.playingAs):!this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayPlayingAs.includes(a.playingAs)):i=this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayPlayingAs.includes(a.playingAs)),i&&this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayTimeSections&&(i=this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayTimeSections.includes(a.section)),i&&this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.coordinatePoint&&this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayFieldSections){const n=`${bl(a[`x${this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.coordinatePoint}`],a[`y${this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.coordinatePoint}`])+1}`,r=Yi[n],o=this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.requiresRivalTransform&&this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arraySelectedSubcategoryIds.includes(`${a.categoryId}_r`)?Yi[`${gu[n]}`]:r;i=!!this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayFieldSections.find(l=>l.num===o&&l.status)}i&&t.push(a)}else t.push(a);return t},[])},async fillSeasonPlayers(e){try{const t=await this.$store.dispatch("mediaGeneral/getPlayersBySeasons",{seasonId:e.id,returnData:!0});e.mapPlayers=new Map,e.mapPlayersByTeam=t.reduce((a,i)=>{e.mapPlayers.set(i.player_id,{id:i.player_id,name:i.player_name,shortName:i.shortName,photo:i.player_photo,teamId:i.team_id,positionId:i.position_id});const n=a.get(i.team_id);return n?n.push(i):a.set(i.team_id,[i]),a},new Map)}catch(t){throw new Error(t)}},async fillMatchDaysAndGamesV2(e){try{const{seasonsAndGames:t,seasonsAndTeams:a}=await this.fetchSeasonsGamesAndTeamsV2([e.id,...e.related_seasons.map(o=>o.id)],3),i=a.find(o=>o._id===e.id);e.arrayTeams=[],e.mapTeams=new Map;const n=i.teams.reduce((o,l)=>(e.arrayTeams.push(l),e.mapTeams.set(l.team_id,{name:l.colloquial_name,acronym:l.acronym,logo:l.logo,id:l.team_id}),o.set(l.team_id,l),o),new Map);e.mapGames=new Map,e.mapGamesByTeam=new Map;const r=Array.from(t.reduce((o,l)=>(l.games.forEach(c=>{if(c.game_status===1&&c.has_video){(!e.maxGameId||c.game_id>e.maxGameId)&&(e.maxGameId=c.game_id);let d=c.matchday_abbreviation.replace("M","J"),u=c.matchday_abbreviation.replace("M","Jornada ");const h=c.matchday_abbreviation.replace("M","");l.season_type===0?this.objectMediaPlayerModeFilters.objectTournamentSelected.id===33&&(c.seasonId===881?(d=w6[h]||d,u=S6[h]||u):(d=Cm[c.matchday_abbreviation]?c.matchday_abbreviation:d,u=Cm[c.matchday_abbreviation]||u,d==="FINAL"&&(d="F"))):l.season_type===1?(d=v6[c.matchday_abbreviation],u=d):c.matchday_id===182?(d="PI1",u="Play In 1"):c.matchday_id===183?(d="PI2",u="Play In 2"):(d=c.matchday_abbreviation.replace("PO","R"),u="Repechaje"),c.roundAbbreviation=d,c.roundName=u,e.mapGames.set(c.game_id,{id:c.game_id,date:c.date,dateTimeMillis:new Date(c.date_time_utc).valueOf(),homeTeam:e.mapTeams.get(c.home_team),awayTeam:e.mapTeams.get(c.visiting_team),roundAbbreviation:c.roundAbbreviation,roundName:c.roundName,score:c.score,gameResult:c.score[0]>c.score[1]?1:c.score[0]<c.score[1]?2:3,seasonId:l.season_id});const m=o.get(c.roundAbbreviation);c.numberDateTimeMillis=new Date(c.date_time_utc).getTime(),c.homeTeam=n.get(c.home_team),c.awayTeam=n.get(c.visiting_team);const p=e.mapGamesByTeam.get(c.home_team),f=e.mapGamesByTeam.get(c.visiting_team);p?p.push(c):e.mapGamesByTeam.set(c.home_team,[c]),f?f.push(c):e.mapGamesByTeam.set(c.visiting_team,[c]),m?m.arrayGames.push(c):o.set(c.roundAbbreviation,{stringMatchDayAbbreviation:c.roundAbbreviation,stringMatchDayName:c.roundName,arrayGames:[c]})}}),o),new Map).values());r.reverse(),r.forEach(o=>{o.arrayGames.sort((l,c)=>l.numberDateTimeMillis-c.numberDateTimeMillis)}),e.arrayMatchDays=r,this.objectMatchDaySelected=r[0]||{}}catch(t){throw new Error(t)}},async fetchSeasonsGamesAndTeamsV2(e,t,a=""){let i=a;try{i||(i=this.gamesUrl,e.forEach((o,l)=>{i+=`${l===0?"":"&"}seasons=${o}`}));const{data:{data:n,teams:r}}=await Ei.get(i);return{seasonsAndGames:n,seasonsAndTeams:r}}catch(n){if(t>0)return this.fetchSeasonsGamesAndTeamsV2(e,t-1,i);throw new Error(n)}},async fillNextSeasonPlays(){try{this.showImage=!0,this.playlistSeasonIndex++,this.seasonName=this.objectMediaPlayerModeFilters.objectTournamentSelected.arraySeasons[this.playlistSeasonIndex].name,this.playlistSeasonIndex>this.objectMediaPlayerModeFilters.objectTournamentSelected.arraySeasons.length-1&&(this.playlistSeasonIndex=0);const e=this.objectMediaPlayerModeFilters.objectTournamentSelected.arraySeasons[this.playlistSeasonIndex];e.arrayMatchDays||(await this.fillMatchDaysAndGamesV2(e),await this.fillSeasonPlayers(e));const t=await this.fetchPlays(e.id,this.objectMediaPlayerModeFilters.stringQueryCategoryIds,this.objectMediaPlayerModeFilters.stringQueryParams),a=this.getFormattedPlays(t,!1,e),i=this.getFilteredPlays(a);this.generatePlayerQueue(null,i,!1,0,!0)}catch(e){throw new Error(e)}},onPlaylistEnded(){this.booleanIsPlaySeekerMode||(this.isMyPlaylistsActive?this.$store.commit("mediaModal/setPlaylistIndex",{mediaPlayerType:this.isModalMode?null:this.mediaPlayerType,playlistIndex:0}):this.booleanIsFilterApplied?this.fillNextSeasonPlays():(this.playlistSeasonIndex++,this.playlistSeasonIndex>this.playlistTournament.seasons.length-1&&(this.playlistSeasonIndex=0),this.seasonName=this.playlistTournament.seasons[this.playlistSeasonIndex].name,this.showImage=!0,setTimeout(()=>{this.fetchInfo(!1,this.playlistTournament)},4e3)))},onFullScreenChange(){this.isCarouselFullScreenVisible=!0},onTypeChanged(e=1){if((e!==this.selectedType||this.isModalMode)&&(this.isModalMode&&this.setPlayerType(e),this.selectedType!==e||this.isModalMode&&e===1)){if(this.selectedType=e,this.selectedType===2){this.mediaPlayerMode="player";const t=this.summaryData?{id:this.summaryData.id}:this.isModalMode?this.isFirstTypeChange?this.modalInitialState&&this.modalInitialState.goalkeeperIds?{id:this.modalInitialState.goalkeeperIds[0],positionId:1}:{id:this.modalInitialState.playerIds[0]}:this.playInfo.player:this.isUserTournament?null:this.playInfo.player;this.$store.commit(`${this.storeModule}/setPlayer`,t),this.$store.commit(`${this.storeModule}/setTeam`,this.isModalMode?this.playInfo.teamId:this.isUserTournament?this.gsData.teamId:this.playInfo.teamId),this.onPlayerSelected()}else if(this.selectedType===3){this.mediaPlayerMode="team";const t=this.summaryData?this.summaryData.id:this.isModalMode?this.isFirstTypeChange?this.modalInitialState&&this.modalInitialState.teamId:this.playInfo.teamId:this.hasPlayerActivityInTournament||this.isUserTournament?this.gsData.teamId:this.playInfo.teamId;this.$store.commit(`${this.storeModule}/setPlayer`,null),this.$store.commit(`${this.storeModule}/setTeam`,t),this.onTeamSelected()}else this.selectedType===1&&(this.mediaPlayerMode="games",this.$store.commit(`${this.storeModule}/setPlayer`,null),this.$store.commit(`${this.storeModule}/setTeam`,null),this.checkSeason());e!==0&&(this.isFirstTypeChange=!1)}},onMaxInactivityReached(){this.showModalConfirm=!0},checkSeason(){this.gsData||(this.playlistSeasonIndex=this.playlistSeasonIndexAux);const e=this.getSeasonIdOnly===this.seasonId;this.fetchInfo(e,this.playlistTournament)},onPlayerSelected(){this.mediaPlayerMode="player",this.checkSeason()},onTeamSelected(){this.mediaPlayerMode="team",this.checkSeason()},onGameIdSelected(e){this.gameIdSelected=e},onPlaying(){this.isAutoPlay=!0},onPlayChanged(e){if(this.lastGameIdWatched=e.gameId,e.isPlaySeeker)this.playInfo=e,this.objectPlaySeekerLastPlay={playListId:e.payloadData.playlist_id,groupPlayListId:e.payloadData.group_playlist_id,groupId:e.payloadData.group_id,playIndex:e.payloadData.play_number-1},window.localStorage.setItem("playSeekerLastPlay",JSON.stringify(this.objectPlaySeekerLastPlay));else if(e.booleanIsFullGame)this.playInfo={playId:e.playId,booleanIsFullGame:!0,homeTeamLogo:e.objectGame.homeTeam.logo,homeTeamName:e.objectGame.homeTeam.colloquial_name,awayTeamLogo:e.objectGame.awayTeam.logo,awayTeamName:e.objectGame.awayTeam.colloquial_name,arrayScore:e.objectGame.score,gameId:e.gameId,seasonId:e.objectGame.season_id,teamLogo:e.playerTeamLogo,playerLogo:e.player.photo,dateTimeMillis:new Date(e.objectGame.date_time_utc).getTime()};else if(this.summaryData)this.playInfo={playId:e.playId,homeTeamLogo:e.game.homeTeam.logo,homeTeamName:e.game.homeTeam.colloquial_name||e.game.homeTeam.name,awayTeamLogo:e.game.awayTeam.logo,awayTeamName:e.game.awayTeam.colloquial_name||e.game.awayTeam.name,arrayScore:e.game.score,gameId:e.gameId,seasonId:e.seasonId,mainCategoryName:C0(e.mainCategory.name),playerShortName:e.player.shortName,dateTimeMillis:e.dateTimeMillis,playRaw:e.playRaw,startSeconds:e.startSeconds,endSeconds:e.endSeconds};else{if(this.isModalMode){this.setPlaylistGameId(e.game.id);const t=this.playerType===2?e.player.shortName:this.playerType===3?this.modalInitialState&&this.modalInitialState.isRivalSubject&&this.modalInitialState.mainSectionType===this.modalSectionSelected+1?[35,54].includes(e.categoryId)?e.teamname:e.rivalName:[35,54].includes(e.categoryId)?e.rivalName:e.teamName:"";this.$emit("subject-change",t?` - ${t}`:"")}this.playInfo={playId:e.playId,date:e.gameDate,dateTimeMillis:e.dateTimeMillis,arrayScore:e.game.score,objectHomeTeam:e.game.homeTeam,objectAwayTeam:e.game.awayTeam,playerId:e.player.id,playerName:e.player.name,playerShortName:e.player.shortName,playCategory:e.categoryName,teams:`${e.game.homeTeam.name} vs ${e.game.awayTeam.name}`,playerPhoto:e.player.photo,teamLogo:e.playerTeamLogo,rivalLogo:e.rivalTeamLogo,teamId:e.teamId,categoryId:e.categoryId,jersey:e.jersey,mainCategoryName:C0(e.mainCategory.name||e.stringMainCategoryName||""),categoriesNames:Array.from(e.categoriesNames.values()).reduce((t,a,i)=>(t+=`${i===0?"":", "}${a}`,t),""),gameId:e.game.id,roundAbbreviation:e.game.roundAbbreviation,player:e.player,asLocal:e.game.homeTeam.id===e.teamId,momentOfPlay:e.momentOfPlay,seasonId:e.seasonId,playRaw:e.playRaw,startSeconds:e.startSeconds,endSeconds:e.endSeconds,booleanIsFromMyPlaylists:e.booleanIsFromMyPlaylists,tvStations:e.game.tvStations}}},async fetchPlays(e=null,t=null,a=null){try{this.lastGameIdWatched=0;let i="";if(a===null){const r=this.modalInitialState&&this.modalInitialState.playerIds&&this.modalInitialState.playerIds.length;this.modalInitialState.isFeaturedPlayers?(this.modalInitialState.playerIds.forEach(o=>{i+=`&player=${o}`}),this.modalInitialState.isFeaturedPlayers=!1):this.getPlayerId?(this.hasUserPlayerSelectedSeason&&this.getPlayerId===this.user.player||!this.user.is_player)&&(i+=`&player=${this.getPlayerId}`):r?this.modalInitialState.playerIds.forEach(o=>{i+=`&player=${o}`}):(this.getTeamId||this.modalInitialState.teamId)&&(i+=`&team=${this.getTeamId||this.modalInitialState.teamId}`),this.modalInitialState&&this.modalInitialState.isPost&&(i+="&isPost=1")}const n=await Ei.get(`https://cpj4073446.execute-api.us-east-2.amazonaws.com/prod/videos/plays/seasons/${e||this.seasonId}?${t||this.queryCategories}${a||i}`);if(n.data&&n.data.plays){const r=[...n.data.plays];return n.data.plays_rival?r.concat(n.data.plays_rival):r}return[]}catch(i){throw new Error(i)}},async fetchInfo(e,t){try{if(!t)return;let a=this.playlistSeasonIndex;this.playlistTournament=t,this.seasonId=t.seasons[a].id;let i=null,n=null;this.lastSearchResult&&(i="",this.lastSearchResult.player?i+=`&player=${this.lastSearchResult.player.id}`:this.lastSearchResult.team&&(i+=`&team=${this.lastSearchResult.team.id}`),n=this.lastSearchResult.categoryIds.reduce((d,u,h)=>(d+=`${h>0?"&":""}categories=${u}`,d),""));const r=[this.fetchPlays(null,n,i)];if(!e&&t.seasons[a]){const d=[this.seasonId];t.seasons[a].related_seasons&&t.seasons[a].related_seasons.length&&d.push(...t.seasons[a].related_seasons.map(u=>u.id)),r.push(this.$store.dispatch(`${this.storeModule}/fetchSeasonsGamesAndTeams`,{seasons:d})),r.push(this.$store.dispatch(`${this.storeModule}/getPlayersBySeasons`,{seasonId:this.seasonId}))}const[o,l]=await Promise.all(r);if(this.plays=o||[],this.hasPlayerActivityInTournament&&!this.plays.length)if(this.playlistSeasonIndex<this.playlistTournament.seasons.length-1&&this.seasonSearchingCount<1)this.playlistSeasonIndex++,this.seasonSearchingCount++,await this.fetchInfo(!1,t);else return;e||this.formatGamesAndTeams(l);const c=this.getFormattedPlays(this.plays);this.generatePlayerQueue(this.currentCategories.reduce((d,u)=>(typeof u=="string"&&u.includes("_")||d.push(Number(u)),d),[]),c),this.showImage=!1}catch(a){throw new Error(a)}},async fillSeasons(e,t=!1){try{if(e){let a=null;if(this.autoFillVideos?a=e.find(i=>i._id===1):a=e[0],a){if(this.currentTournament=a,this.isModalMode&&!t&&!this.lastSearchResult)return;await this.fetchInfo(!1,this.currentTournament)}}}catch(a){throw new Error(a)}},async fillMyPlaylistsData(e){if(e.length){const t=[this.$store.dispatch("mediaGeneral/fetchSeasonsGamesAndTeams",{seasons:e})];e.forEach(r=>{t.push(this.$store.dispatch("mediaGeneral/getPlayersBySeasons",{seasonId:r,returnData:!0}))});const a=await Promise.all(t),i=a.shift();this.formatGamesAndTeamsForMyPlaylists(i);const n=a.reduce((r,o)=>(o.forEach(l=>{r.set(l.player_id,{id:l.player_id,name:l.player_name,shortName:l.shortName,photo:l.player_photo,teamId:l.team_id,positionId:l.position_id})}),r),new Map);this.setPlayersMapMyPlaylists(n)}},getBestPlaysCategoriesIds(){return Object.keys(Zi[this.mediaPlayerMode]).reduce((e,t)=>(t.split("-").forEach(a=>{e.push(Number(a))}),e),[])},setUpMediaGeneralData(){const{objectCurrentPlay:e,numberCurrentTime:t}=this.$refs.videoPlayer.getCurrentPlayerPlayInfo(),a={numberPlayId:e.playId,numberCurrentTime:t},i={arrayPlayerQueue:[...this.playerQueue],stringModeTitle:this.stringModeTitle,numberPlaylistIndex:this.playlistIndex,numberPlaylistSeasonIndex:this.playlistSeasonIndex,booleanIsFilterApplied:this.booleanIsFilterApplied,booleanIsPlaySeekerMode:this.booleanIsPlaySeekerMode,booleanAvoidApply:this.isModalMode&&this.modalInitialState&&this.modalInitialState.avoidApply&&!this.booleanIsFilterApplied,objectPlaySync:a};this.booleanIsFilterApplied&&(i.objectLastDataToFilter=this.objectLastDataToFilter),this.$store.commit("mediaGeneral/setObjectMediaData",i)},formatGamesAndTeams(e){this.roundsMap=new Map,this.teamsMap=e.seasonsAndTeams.reduce((t,a)=>(a&&a.teams.forEach(i=>{t.has(i.team_id)||t.set(i.team_id,{name:i.colloquial_name,acronym:i.acronym,logo:i.logo,id:i.team_id,players:this.playersByTeam.get(i.team_id)})}),t),new Map),this.gamesMap=e.seasonsAndGames.reduce((t,a)=>{const i=!!(this.currentTournament&&this.currentTournament.tournament&&this.currentTournament.tournament.tournament_type);return a.games.forEach(n=>{n.seasonType=a.season_type,n.seasonId=a.season_id,n.game_id>this.maxGameId&&(this.maxGameId=n.game_id);let r=n.matchday_abbreviation.replace("M","J"),o=n.matchday_abbreviation.replace("M","Jornada ");const l=n.matchday_abbreviation.replace("M","");n.seasonType===0?i&&(n.seasonId===881?(r=w6[l]||r,o=S6[l]||o):(r=Cm[n.matchday_abbreviation]?n.matchday_abbreviation:r,o=Cm[n.matchday_abbreviation]||o,r==="FINAL"&&(r="F"))):n.seasonType===1?(r=v6[n.matchday_abbreviation],o=r):n.matchday_id===182?(r="PI1",o="Play In 1"):n.matchday_id===183?(r="PI2",o="Play In 2"):(r=n.matchday_abbreviation.replace("PO","R"),o="Repechaje"),n.roundAbbreviation=r,n.roundName=o;const c=n.date.split("-"),d={id:n.game_id,date:n.date,dateTimeMillis:new Date(n.date_time_utc).valueOf(),homeTeam:this.teamsMap.get(n.home_team),awayTeam:this.teamsMap.get(n.visiting_team),roundAbbreviation:n.roundAbbreviation,roundName:n.roundName,score:n.score,gameResult:n.score[0]>n.score[1]?1:n.score[0]<n.score[1]?2:3,seasonId:a.season_id,dateFormatted:`${Number(c[2])} ${IEe[Number(c[1])-1]}, ${c[0]}`,tvStations:n.tv_stations?n.tv_stations.join(", "):null},u=this.roundsMap.get(n.roundAbbreviation);u?u.push(d):this.roundsMap.set(n.roundAbbreviation,[d]),t.has(n.game_id)||t.set(n.game_id,d)}),t},new Map)},formatGamesAndTeamsForMyPlaylists(e){const t=e.seasonsAndTeams.reduce((n,r)=>(r&&r.teams.forEach(o=>{n.has(o.team_id)||n.set(o.team_id,{name:o.colloquial_name,acronym:o.acronym,logo:o.logo,id:o.team_id,players:this.playersByTeam.get(o.team_id)})}),n),new Map);let a=0;const i=e.seasonsAndGames.reduce((n,r)=>(r.games.forEach(o=>{o.seasonType=r.season_type,o.seasonId=r.season_id,o.game_id>a&&(a=o.game_id);const l={id:o.game_id,date:o.date,dateTimeMillis:new Date(o.date_time_utc).valueOf(),homeTeam:t.get(o.home_team),awayTeam:t.get(o.visiting_team),roundAbbreviation:o.matchday_abbreviation,roundName:o.matchday_abbreviation.replace("M","MatchDay "),score:o.score,gameResult:o.score[0]>o.score[1]?1:o.score[0]<o.score[1]?2:3,seasonId:r.season_id};n.has(o.game_id)||n.set(o.game_id,l)}),n),new Map);this.setTeamsMapMyPlaylists(t),this.setGamesMapMyPlaylists(i),this.setMaxGameIdMyPlaylists(a)},onPlayerModeClicked(e){this.playerModeSelected=e},onClickModalLauncher(e=1){const{objectCurrentPlay:t,numberCurrentTime:a}=this.$refs.videoPlayer.getCurrentPlayerPlayInfo(),i={numberPlayId:t.playId,numberCurrentTime:a};this.$refs.videoPlayer.pausePlayers();let n=null;if(!e&&this.booleanIsFilterApplied||this.objectMediaPlayerModeFilters.objectSeasonSelected||this.booleanIsPlaySeekerMode||this.booleanIsFilterApplied){const r={arrayPlayerQueue:[...this.playerQueue],stringModeTitle:this.stringModeTitle,numberPlaylistIndex:this.playlistIndex,numberPlaylistSeasonIndex:this.playlistSeasonIndex,booleanIsPlaySeekerMode:this.booleanIsPlaySeekerMode,numberMainSectionType:e,objectPlaySync:i};r.booleanIsFilterApplied=this.booleanIsFilterApplied,this.booleanIsFilterApplied&&(r.objectLastDataToFilter=this.objectLastDataToFilter),this.$store.commit("mediaModal/setModalInitialState",null),this.$store.commit("mediaModal/setObjectMediaData",r)}else n={seasonId:this.seasonId,tournaments:this.tournamentsForModalLauncher,categoryIds:[...this.currentCategories],mainSectionType:e,matchResult:[1,2,3],currentPlayIndex:this.playlistIndex,objectPlaySync:i},this.getPlayerId?this.isPlayerGoalkeeper?n.goalkeeperIds=[this.getPlayerId]:n.playerIds=[this.getPlayerId]:this.getTeamId&&(n.teamId=this.getTeamId),this.$store.commit("mediaModal/setObjectMediaData",null),this.$store.commit("mediaModal/setModalInitialState",n);this.$store.commit("mediaModal/setIsModalOpen",!0)},setUpResizeObserver(){if(window.ResizeObserver)this.mediaPlayerResizeObserver=new window.ResizeObserver(()=>{this.mediaPlayerWidth=this.$refs.mediaPlayer.clientWidth}),this.mediaPlayerResizeObserver.observe(this.$refs.mediaPlayer);else throw new Error("Resize observer not supported!")},onClickMyPlaylists(){this.isModalMode?this.$store.commit("mediaModal/setModalSectionSelected",2):this.onClickModalLauncher(2)},getEmptyMediaPlayerModeFilters(){return{objectTournamentSelected:null,objectSeasonSelected:null,stringQueryCategoryIds:"",stringQueryParams:"",objectFilters:{numberActionId:0,numberMediaPlayerType:null,objectCategorySelected:null,objectAdvancedFilters:{numberTeamId:null,numberPlayerId:null,arraySelectedSubcategoryIds:[],booleanRequiresRivalTransform:!1,numberCoordinatePoint:2,arrayPlayingAs:[],arrayTimeSections:[],arrayFieldSections:[]}}}},fillDataToFilterData(e){this.objectLastDataToFilter=e,this.arrayCategoriesIdsToFilter=e.arrayCategoriesIds,this.arrayRivalCategoriesIdsToFilter=e.arrayRivalCategoriesIds,this.arrayCategoriesIdsRaw=e.arrayCategoriesIdsRaw,this.objectMediaPlayerModeFilters.stringQueryCategoryIds=e.stringQueryCategoryIds,this.objectMediaPlayerModeFilters.stringQueryParams=e.stringQueryParams,this.objectMediaPlayerModeFilters.objectTournamentSelected=e.objectTournamentSelected,this.objectMediaPlayerModeFilters.objectSeasonSelected=e.objectSeasonSelected,this.objectMediaPlayerModeFilters.objectGameSelected=e.objectGameSelected,this.objectMediaPlayerModeFilters.objectFilters.numberMediaPlayerType=e.objectFilters.numberMediaPlayerType,this.objectMediaPlayerModeFilters.objectFilters.objectCategorySelected=e.objectFilters.objectCategorySelected,this.objectMediaPlayerModeFilters.objectFilters.numberActionId=e.objectFilters.numberActionId,this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.numberTeamId=e.objectFilters.objectAdvancedFilters.numberTeamId,this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.numberPlayerId=e.objectFilters.objectAdvancedFilters.numberPlayerId,this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.booleanIsPlayerGoalKeeper=e.objectFilters.objectAdvancedFilters.booleanIsPlayerGoalKeeper,this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arraySelectedSubcategoryIds=e.objectFilters.objectAdvancedFilters.arraySelectedSubcategoryIds,this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.booleanRequiresRivalTransform=e.objectFilters.objectAdvancedFilters.booleanRequiresRivalTransform,this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.numberCoordinatePoint=e.objectFilters.objectAdvancedFilters.numberCoordinatePoint,this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayPlayingAs=e.objectFilters.objectAdvancedFilters.arrayPlayingAs,this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayTimeSections=e.objectFilters.objectAdvancedFilters.arrayTimeSections,this.objectMediaPlayerModeFilters.objectFilters.objectAdvancedFilters.arrayFieldSections=e.objectFilters.objectAdvancedFilters.arrayFieldSections,this.selectedType=e.numberSelectedType},onApplyFilters(e){this.stringModeTitle=`Estas viendo: ${e.stringControlsTitle}`,this.booleanIsPlaySeekerMode=!1,this.booleanIsFilterApplied=!0,this.fillDataToFilterData(e),this.playlistSeasonIndex=e.objectTournamentSelected.numberSeasonSelectedIndex,this.generatePlayerQueue(null,e.arrayFormattedPlays,!1,e.numberPlaylistIndex,!0)},onClickOptions(e){this.booleanIsOptionsMenuVisible=!0,this.numberOptionsMenuTop=e.numberY,this.numberOptionsMenuLeft=e.numberX},onClickOpenModes(){this.$refs.videoPlayer.pausePlayers(),this.booleanIsModesModalOpen=!0},onClickFullGame(e){this.booleanIsPlaySeekerMode=!1,this.booleanIsFilterApplied=!0;const t=e.arrayMatchDayGames.findIndex(a=>a.game_id===e.objectGame.game_id);t!==-1&&(this.stringModeTitle=`Estas viendo: ${e.stringControlsTitle}`,this.booleanIsPlaySeekerMode=!1,this.playerQueue=e.arrayMatchDayGames.map(a=>(a.homeTeam.name=a.homeTeam.colloquial_name,a.awayTeam.name=a.awayTeam.colloquial_name,{booleanIsFullGame:!0,objectGame:a,gameId:a.game_id,startSeconds:0,endSeconds:null})),this.$store.commit(`${this.storeModule}/setPlaylistIndex`,{mediaPlayerType:this.isModalMode?null:this.mediaPlayerType,playlistIndex:t}),this.$store.commit(`${this.storeModule}/setCurrentPlayerQueue`,this.playerQueue))},onModesModalClose(){this.booleanIsModesModalOpen=!1,this.onClickSpeed(1)},onClickMode(){this.$refs.videoPlayer.setSpeedToAllPlayers(1)},onClickSurpriseMe(){this.booleanIsFilterApplied=!1,this.booleanIsPlaySeekerMode=!0,this.fillPlaySeekerPlays()},getPlaySeekerCategoryName(e){if(e.categoryId===33)return"Fuera de lugar";if([35,54].includes(e.categoryId))return"Auto gol";{const t=this.allCategories.get(e.categoryId)||this.allCategories.get(`${e.categoryId}_r`)||this.extraCategories.get(e.categoryId)||this.extraCategories.get(`${e.categoryId}_r`);return t?t.name:"S/N"}},async setUpTokens(){try{const e=await(await fetch(`${this.firstInteractionUrl}/token`,{method:"POST",mode:"cors",headers:{Authorization:"Basic bXN1c2VyQWRtaW46bXN1c2VycGFzc3dvcmRBZG1pbg=="},referrerPolicy:"no-referrer"})).json();this.firstInteractionToken=e.token}catch(e){throw new Error(e)}},async fillPlaySeekerPlays(){try{if(this.stringModeTitle="Sorpréndeme",this.booleanIsPlaySeekerMode){const e=await(await fetch(`${this.firstInteractionUrl}/firstInteraction/${xEe}/${this.user.username}/playlist`,{method:"GET",headers:{Authorization:`Bearer ${this.firstInteractionToken}`},referrerPolicy:"no-referrer"})).json();e&&(this.setPlaySeekerUserId(e.user_id),this.setPlaySeekerCurrentSessionId(this.getPlaySeekerSessionId(this.playSeekerUserId)),this.$emit("change-user-id",this.playSeekerUserId),window.localStorage.setItem("playSeekerUserId",this.playSeekerUserId),this.formatPlaySeekerPlays(e))}}catch(e){throw new Error(e)}},formatPlaySeekerPlays(e){let t=[];e&&e.playlist&&e.playlist.length&&(t=e.playlist.reduce((i,n,r)=>{const o={...Object.entries(Qi).reduce((h,[m,p])=>(h[m]=n[p],h),{}),isPlaySeeker:!0,startSeconds:n[Qi.startTime],endSeconds:n[Qi.endTime],totalSeconds:Math.floor(n[Qi.endTime]-n[Qi.startTime]),payloadData:{play_id:n[Qi.playId],total_plays:e.total_plays,play_number:r+1,group_playlist_id:e.group_playlist_id,playlist_id:e.playlist_id,group_id:e.group_id,moment_of_play:n[Qi.momentOfPlay],play_type:n[Qi.categoryId],viewer_second_start:Math.floor(n[Qi.startTime]),intended_second_start:Math.floor(n[Qi.startTime]),intended_second_end:Math.floor(n[Qi.endTime]),latitude_of_user:null,longitude_of_user:null}},[l,c]=o.playerName.split(","),d=l.split(" ");let u="";for(const h of d)if(u+=` ${h}`,h.length>3)break;if(o.playerShortName=c&&l?`${c.trim().charAt(0)}.${u}`:"",!o.mainCategoryName){o.mainCategoryName=C0(this.getPlaySeekerCategoryName(o));const[h,m]=o.finalScore.split(" - ");o.arrayScore=[Number(h),Number(m)]}return i.push(o),i},[]));let a=[];this.concatPlays?a=[...this.playerQueue.splice(0,this.currentPlayIndex+1),...t]:a=t,this.playerQueue=a,this.objectPlaySeekerLastPlay&&this.objectPlaySeekerLastPlay.playListId===e.playlist_id&&this.objectPlaySeekerLastPlay.groupPlayListId===e.group_playlist_id&&this.objectPlaySeekerLastPlay.groupId===e.group_id&&this.$store.commit(`${this.storeModule}/setPlaylistIndex`,{mediaPlayerType:this.isModalMode?null:this.mediaPlayerType,playlistIndex:this.objectPlaySeekerLastPlay.playIndex}),this.$store.commit(`${this.storeModule}/setCurrentPlayerQueue`,this.playerQueue)},getPlaySeekerSessionId(e){return e?`S_${e}${Date.now()}`:null},getRandomPercentage(){return Math.floor(Math.random()*60+20)},async sendUserBehavior(e,t,a){try{if(this.playInfo.isPlaySeeker){const i={user_id:this.playSeekerUserId,current_session_id:this.playSeekerCurrentSessionId,last_play:{...this.playInfo.payloadData}};i&&(i.last_play.action=t,i.last_play.percentage_viewed=t===1?100:this.getRandomPercentage(),i.last_play.viewer_second_end=e||this.playInfo.endSeconds,i.last_play.date_time_of_user_action=a,this.coords&&(i.last_play.latitude_of_user=this.coords.latitude,i.last_play.longitude_of_user=this.coords.latitude));const n=await fetch(`${this.userBehaviorUrl}/user-behavior`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});if(n.status===200){const r=await n.json();r&&(this.concatPlays=!0,this.formatPlaySeekerPlays(r))}else this.concatPlays=!1}}catch(i){throw new Error(i)}},onGeoSuccess(e){this.coords=e.coords},onGeoError(e){throw new Error(e)},onClickTimeButton(e){e.numberType===1?this.$refs.videoPlayer.addSecondsToCurrentPlayer(e.numberValue*e.numberValueFactor):e.numberType===2?this.booleanIsSpeedModalVisible=!0:this.booleanIsVideoPlayerPlaying?this.$refs.videoPlayer.pausePlayers():this.$refs.videoPlayer.playCurrentPlayer()},onClickOption(e){this.$refs.videoPlayer.pausePlayers(),e===1?dp.emit("click-game",{gameId:this.playInfo.gameId,gameStatus:1,dateTimeUTC:new Date(this.playInfo.dateTimeMillis).toISOString(),seasonId:this.playInfo.seasonId,stringSectionName:"lineups"}):e===2?this.onClickDownload():e===3?(this.setPlaysToSaveAsFavorites([this.playInfo.playRaw]),this.setIsModalCreatePlayListOpen(!0)):e===4&&(this.isModalMode?this.$emit("show-list"):this.onClickModalLauncher())},onClickNextBack(e){this.$refs.videoPlayer.onMoveToPlayClicked(e)},onPlayIteration({iterationTime:e,userAction:t,dateTimeIsoString:a}){this.booleanIsPlaySeekerMode&&this.sendUserBehavior(e,t,a)},onClickAnalyst(){this.onClickModalLauncher()},onClickFullscreen(){this.isCarouselFullScreenVisible=!0},onClickAdvnacedFilterType(e){},onChangeSeason(e){this.numberCurrentSeasonId=Number(e),this.isAutoPlay=!1,this.objectMediaPlayerModeFilters=this.getEmptyMediaPlayerModeFilters(),this.setUpData(e)},onUpdateSearchResult(e){this.lastSearchResult=e,this.setUpData(e.seasonId)},onClickClose(){this.$emit("close")},onClickCloseCarousel(e){e&&this.$store.commit("mediaModal/setPlaylistIndex",{mediaPlayerType:null,playlistIndex:e}),this.isCarouselFullScreenVisible=!1},getPlayerOptions(){return{playbackRates:[.5,1,1.5,2],autoplay:!1,controls:!0,controlBar:{children:["playToggle","volumePanel","playbackRateMenuButton","CurrentTimeDisplay","progressControl","remainingTimeDisplay","fullscreenToggle"],pictureInPictureToggle:!1,volumePanel:{inline:!1}},liveui:!0,preload:"auto",fluid:!0}},videoJsInit(){_e.registerPlugin("offset",$1),this.videojsLocal=_e},onClickAdvancedFilterType(e){this.filterToSetUp=e,setTimeout(()=>{this.filterToSetUp=null},100)}},async created(){try{this.videoJsInit(),Ei.defaults.headers.common.Authorization=this.token,this.modalInitialData&&this.$store.commit("mediaModal/setModalInitialState",this.modalInitialData),dp.on("change-season",this.onChangeSeason),dp.on("some-list-selected",()=>{this.isSomeListSelected=!0}),this.autoFillVideos&&await this.$store.dispatch(`${this.storeModule}/fetchTournaments`)}catch(e){throw new Error(e)}},mounted(){this.isModalMode?setTimeout(()=>{this.modalInitialState?(this.objectPlaySync=this.modalInitialState.objectPlaySync?{...this.modalInitialState.objectPlaySync,booleanIsApplied:!1}:null,this.setUpData(this.modalInitialState.seasonId),this.onTypeChanged(this.modalInitialState.playListType),this.$store.commit("mediaModal/setModalSectionSelected",this.modalInitialState.mainSectionType||1),this.stringModeTitle=`Estas viendo: ${this.modalInitialState.teamId?"Resumen de equipo":this.modalInitialState.playerIds&&this.modalInitialState.playerIds.length?"Resumen de jugador":this.modalInitialState.gameIds&&this.modalInitialState.gameIds.length?"Resumen de partido":""}`):this.objectMediaData&&(this.$store.commit("mediaModal/setModalSectionSelected",1),this.applyObjectMediaData())},100):this.seasonSelectedId&&this.tournamentsForMediaPlayer.size>0&&(this.setUpData(this.seasonSelectedId),this.setInitialTitle()),setTimeout(()=>{this.setUpResizeObserver()},1e3)},beforeUnmount(){this.isSomeListSelected=!1,this.mediaPlayerResizeObserver&&(this.mediaPlayerResizeObserver.disconnect(),this.mediaPlayerResizeObserver=null),this.$store.commit(`${this.storeModule}/setPlayer`,null),this.$store.commit(`${this.storeModule}/setTeam`,null),this.setPlaylistGameId(0)}},nP=()=>{s.useCssVars(e=>({"5611c94f":e.backgroundColor}))},rP=dv.setup;dv.setup=rP?(e,t)=>(nP(),rP(e,t)):nP;const bu=e=>(s.pushScopeId("data-v-9f287f4b"),e=e(),s.popScopeId(),e),NEe={class:"modal-video__videos"},AEe=bu(()=>s.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},[s.createElementVNode("path",{d:"M5 15L15 5",stroke:"white","stroke-width":"1.7","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),s.createElementVNode("path",{d:"M15 15L5 5",stroke:"white","stroke-width":"1.7","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),PEe=[AEe],OEe={class:"modal-video__videos__search-and-filters"},BEe={class:"modal-video__search-and-filters__search"},DEe={class:"modal-video__search-and-filters__advanced"},LEe={class:"modal-video__videos__video"},REe={key:1,class:"modal-video__detail"},MEe={class:"modal-video__img-container"},FEe=["src"],VEe={class:"modal-video__img-container overlap"},UEe=["src"],jEe={class:"modal-video__description"},zEe={key:2,class:"modal-video__date"},HEe={class:"discover-container"},qEe=bu(()=>s.createElementVNode("div",{class:"title-value"},"Descubre videos",-1)),WEe={class:"modal-video__matches"},GEe={class:"current-match-info"},KEe=bu(()=>s.createElementVNode("h4",null,"Estás viendo:",-1)),XEe={key:0},JEe={class:"modal-video__game-list"},YEe=bu(()=>s.createElementVNode("div",{class:"modal-video__game-list__title"},"Otros partidos",-1)),QEe={key:0,class:"discover-videos"},ZEe=bu(()=>s.createElementVNode("div",{class:"title-value"},"Descubre videos",-1));function $Ee(e,t,a,i,n,r){const o=s.resolveComponent("CarouselFullScreen"),l=s.resolveComponent("VideoSearch"),c=s.resolveComponent("SearchFilters"),d=s.resolveComponent("VideoPlayer"),u=s.resolveComponent("VideoPlayerControls"),h=s.resolveComponent("GscSwitchComponent"),m=s.resolveComponent("GSCPlayerTeamGame"),p=s.resolveComponent("CurrentMatch"),f=s.resolveComponent("MatchesList");return s.openBlock(),s.createElementBlock(s.Fragment,null,[n.isCarouselFullScreenVisible?(s.openBlock(),s.createBlock(o,{key:0,videojs:n.videojsLocal,"player-queue":r.carouselPlayerQueue,"playlist-index":r.playlistIndex,"initial-play":n.playInfo,onClose:r.onClickCloseCarousel},null,8,["videojs","player-queue","playlist-index","initial-play","onClose"])):s.createCommentVNode("",!0),s.createElementVNode("div",{ref:"mediaPlayer",class:s.normalizeClass(["modal-video",r.dynamicClasses])},[s.createElementVNode("div",NEe,[a.isModal?(s.openBlock(),s.createElementBlock("div",{key:0,class:"modal-video__close",onClick:t[0]||(t[0]=(...y)=>r.onClickClose&&r.onClickClose(...y))},PEe)):s.createCommentVNode("",!0),s.createElementVNode("div",OEe,[s.createElementVNode("div",BEe,[s.createVNode(l,{clientWidth:this.mediaPlayerWidth,onClickAdvancedFilterType:r.onClickAdvancedFilterType,"onUpdate:searchResult":r.onUpdateSearchResult},null,8,["clientWidth","onClickAdvancedFilterType","onUpdate:searchResult"])]),s.createElementVNode("div",DEe,[s.createVNode(c,{ref:"searchFilters",clientWidth:this.mediaPlayerWidth,"filter-type-to-set-up":n.filterToSetUp,onApplyFilters:r.onApplyFilters},null,8,["clientWidth","filter-type-to-set-up","onApplyFilters"])])]),s.createElementVNode("div",LEe,[s.createVNode(d,{ref:"videoPlayer","player-queue":n.playerQueue,"is-v2":"","is-gs":"","is-from-mexico":a.isFromMexico,"is-gs-user":a.isGSUser,"container-width":n.mediaPlayerWidth,"game-id-selected":n.gameIdSelected,"is-first-row":!1,"plays-type-selected":n.selectedType,"is-auto-play":n.isAutoPlay,"is-modal-mode":a.isModalMode,"are-types-hidden":r.isSummaryData||r.isMyPlaylistsActive,"is-play-seeker-mode":n.booleanIsPlaySeekerMode,"play-sync":n.objectPlaySync,onPlayIteration:r.onPlayIteration,onPlaying:r.onPlaying,onPlayChanged:r.onPlayChanged,onMaxInactivityReached:r.onMaxInactivityReached,onPlaylistEnded:r.onPlaylistEnded,onChangeType:r.onTypeChanged,onPlay:t[1]||(t[1]=y=>n.booleanIsVideoPlayerPlaying=!0),onPause:t[2]||(t[2]=y=>n.booleanIsVideoPlayerPlaying=!1),onClickFullScreen:r.onClickFullscreen},null,8,["player-queue","is-from-mexico","is-gs-user","container-width","game-id-selected","plays-type-selected","is-auto-play","is-modal-mode","are-types-hidden","is-play-seeker-mode","play-sync","onPlayIteration","onPlaying","onPlayChanged","onMaxInactivityReached","onPlaylistEnded","onChangeType","onClickFullScreen"]),s.createVNode(u,{"play-info":n.playInfo,onClickNextBack:r.onClickNextBack,clientWidth:this.mediaPlayerWidth},null,8,["play-info","onClickNextBack","clientWidth"])]),n.playInfo&&n.playInfo.objectHomeTeam?(s.openBlock(),s.createElementBlock("div",REe,[s.createElementVNode("div",MEe,[s.createElementVNode("img",{class:"modal-video__img",src:n.playInfo.teamLogo},null,8,FEe)]),s.createElementVNode("div",VEe,[s.createElementVNode("img",{class:"modal-video__img",src:n.playInfo.playerPhoto},null,8,UEe)]),s.createElementVNode("div",jEe,s.toDisplayString(n.playInfo.objectHomeTeam.acronym)+" "+s.toDisplayString(n.playInfo.arrayScore[0])+" : "+s.toDisplayString(n.playInfo.arrayScore[1])+" "+s.toDisplayString(n.playInfo.objectAwayTeam.acronym)+" I "+s.toDisplayString(n.playInfo.roundAbbreviation)+" "+s.toDisplayString(n.playInfo.tvStations||""),1)])):s.createCommentVNode("",!0),!n.mobileClass&&n.playInfo?(s.openBlock(),s.createElementBlock("div",zEe,s.toDisplayString(n.playInfo.date),1)):s.createCommentVNode("",!0),s.createElementVNode("div",HEe,[a.userForDiscoverVideos&&a.nextRivalTeam?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[qEe,n.mobileClass?(s.openBlock(),s.createBlock(h,{key:0,buttons:["Estás viendo","Otros partidos","Descubre videos"],class:"current-match__tabs",selectedOption:n.currentMobileTab,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",backgroundOptionActive:"transparent",onInput:t[3]||(t[3]=y=>n.currentMobileTab=y)},null,8,["selectedOption"])):s.createCommentVNode("",!0),a.section?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createVNode(h,{style:{"margin-left":"25px"},buttons:["Resumen","Proximo rival"],onInput:t[4]||(t[4]=y=>n.currentTabMoreVideos=y),background:"trasparent",height:"28px",width:"160px","font-family":"Poppins-Regular",type:2,arrow:!1,selectedOption:n.currentTabMoreVideos},null,8,["selectedOption"]),this.userForDiscoverVideos.is_player?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[n.currentTabMoreVideos=="Resumen"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[!n.mobileClass||n.currentMobileTab==="Resumen"?(s.openBlock(),s.createBlock(m,{key:0,type:8,style:{"margin-top":"-30px"},title:"",backgroundColor:"#172531",data:{season:a.userForDiscoverVideos.season,player:a.userForDiscoverVideos.player,category:1255e3},width:"100%"},null,8,["data"])):s.createCommentVNode("",!0)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[!n.mobileClass||n.currentMobileTab==="Resumen"?(s.openBlock(),s.createBlock(m,{key:0,type:8,style:{"margin-top":"-30px"},title:"",backgroundColor:"#172531",data:{season:a.userForDiscoverVideos.season,player:a.userForDiscoverVideos.player,category:1255e3},width:"100%"},null,8,["data"])):s.createCommentVNode("",!0)],64))],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[n.currentTabMoreVideos=="Resumen"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[!n.mobileClass||n.currentMobileTab==="Resumen"?(s.openBlock(),s.createBlock(m,{key:0,type:7,title:"",style:{"margin-top":"-30px"},backgroundColor:"#172531",data:{season:a.userForDiscoverVideos.season,team:a.userForDiscoverVideos.team,category:1255e3},width:"100%"},null,8,["data"])):s.createCommentVNode("",!0)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[!n.mobileClass||n.currentMobileTab==="Resumen"?(s.openBlock(),s.createBlock(m,{key:0,type:7,style:{"margin-top":"-30px"},title:"",backgroundColor:"#172531",data:{season:a.userForDiscoverVideos.season,team:a.nextRivalTeam.team_id,category:1255e3},width:"100%"},null,8,["data"])):s.createCommentVNode("",!0)],64))],64))],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:2},[!n.mobileClass||n.currentMobileTab==="Resumen"?(s.openBlock(),s.createBlock(m,{key:0,style:{"margin-top":"-30px"},type:13,data:{season:a.userForDiscoverVideos.season,category:1255e3},width:"100%",backgroundColor:"#172531",title:""},null,8,["data"])):s.createCommentVNode("",!0)],64))],64)):s.createCommentVNode("",!0)])]),s.createElementVNode("div",WEe,[s.createElementVNode("div",GEe,[n.mobileClass?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[KEe,n.playInfo?(s.openBlock(),s.createElementBlock("h3",XEe,s.toDisplayString(n.playInfo.mainCategoryName),1)):s.createCommentVNode("",!0)],64)),r.currentMatch&&(!n.mobileClass||n.currentMobileTab==="Estás viendo")?(s.openBlock(),s.createBlock(p,{key:1,currentMatch:r.currentMatch,mobileClass:"",clientWidth:this.mediaPlayerWidth},null,8,["currentMatch","clientWidth"])):s.createCommentVNode("",!0)]),s.createElementVNode("div",JEe,[YEe,!n.mobileClass||n.currentMobileTab==="Otros partidos"?(s.openBlock(),s.createBlock(f,{key:0,matches:e.currentPlayerQueueByGames,mobileClass:"",clientWidth:this.mediaPlayerWidth},null,8,["matches","clientWidth"])):s.createCommentVNode("",!0)])]),a.userForDiscoverVideos&&a.nextRivalTeam?(s.openBlock(),s.createElementBlock("div",QEe,[ZEe,n.mobileClass?(s.openBlock(),s.createBlock(h,{key:0,buttons:["Estás viendo","Otros partidos","Descubre videos"],class:"current-match__tabs",selectedOption:n.currentMobileTab,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",backgroundOptionActive:"transparent",onInput:t[5]||(t[5]=y=>n.currentMobileTab=y)},null,8,["selectedOption"])):s.createCommentVNode("",!0),a.section?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createVNode(h,{style:{"margin-left":"25px"},buttons:["Resumen","Proximo rival"],onInput:t[6]||(t[6]=y=>n.currentTabMoreVideos=y),background:"trasparent",height:"28px",width:"160px","font-family":"Poppins-Regular",type:2,arrow:!1,selectedOption:n.currentTabMoreVideos},null,8,["selectedOption"]),this.userForDiscoverVideos.is_player?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[n.currentTabMoreVideos=="Resumen"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[!n.mobileClass||n.currentMobileTab==="Resumen"?(s.openBlock(),s.createBlock(m,{key:0,type:8,style:{"margin-top":"-30px"},title:"",backgroundColor:"#172531",data:{season:a.userForDiscoverVideos.season,player:a.userForDiscoverVideos.player,category:1255e3},width:"100%"},null,8,["data"])):s.createCommentVNode("",!0)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[!n.mobileClass||n.currentMobileTab==="Resumen"?(s.openBlock(),s.createBlock(m,{key:0,type:8,style:{"margin-top":"-30px"},title:"",backgroundColor:"#172531",data:{season:a.userForDiscoverVideos.season,player:a.userForDiscoverVideos.player,category:1255e3},width:"100%"},null,8,["data"])):s.createCommentVNode("",!0)],64))],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[n.currentTabMoreVideos=="Resumen"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[!n.mobileClass||n.currentMobileTab==="Resumen"?(s.openBlock(),s.createBlock(m,{key:0,type:7,title:"",style:{"margin-top":"-30px"},backgroundColor:"#172531",data:{season:a.userForDiscoverVideos.season,team:a.userForDiscoverVideos.team,category:1255e3},width:"100%"},null,8,["data"])):s.createCommentVNode("",!0)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[!n.mobileClass||n.currentMobileTab==="Resumen"?(s.openBlock(),s.createBlock(m,{key:0,type:7,style:{"margin-top":"-30px"},title:"",backgroundColor:"#172531",data:{season:a.userForDiscoverVideos.season,team:a.nextRivalTeam.team_id,category:1255e3},width:"100%"},null,8,["data"])):s.createCommentVNode("",!0)],64))],64))],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:2},[!n.mobileClass||n.currentMobileTab==="Resumen"?(s.openBlock(),s.createBlock(m,{key:0,style:{"margin-top":"-30px"},type:13,data:{season:a.userForDiscoverVideos.season,category:1255e3},width:"100%",backgroundColor:"#172531",title:""},null,8,["data"])):s.createCommentVNode("",!0)],64))])):s.createCommentVNode("",!0)],2)],64)}const e5e=bt(dv,[["render",$Ee],["__scopeId","data-v-9f287f4b"]]);g0e();const t5e={class:"container"},a5e=!1,i5e=si({__name:"GSCMediaPlayer",setup(e){const t=s.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE");Sc.defaults.headers.common.Authorization=t.value;const a=[{_id:44,seasons:[{name:"Clausura 2023",related_seasons:[{type:1,id:1752}],id:1713,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1592}],id:1542,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1521}],id:1486,type:0}],tournament:{show_logos:0,tournament_type:0,name:"Sub-20",logo:null,id:44,tournament_status:0,order:5}},{_id:1095,seasons:[{name:"Apertura 2023",related_seasons:[{type:1,id:1831}],id:1783,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1750}],id:1715,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1652}],id:1541,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1527}],id:1488,type:0}],tournament:{show_logos:0,tournament_type:0,name:"Sub-16",logo:null,id:1095,tournament_status:0,order:7}},{_id:1001,seasons:[{name:"Clausura 2024",related_seasons:[],id:1838,type:0},{name:"Apertura 2023",related_seasons:[{type:1,id:1825}],id:1777,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}],tournament:{show_logos:1,tournament_type:0,name:"Liga MX Femenil",logo:"https://az755631.vo.msecnd.net/tournaments/femenil_mx.png",id:1001,tournament_status:0,order:2}},{_id:1143,seasons:[{name:"Apertura 2023",related_seasons:[{type:1,id:1829}],id:1785,type:0}],tournament:{show_logos:0,tournament_type:0,name:"Sub-23",logo:null,id:1143,tournament_status:0,order:4}},{_id:1,seasons:[{name:"Clausura 2024",related_seasons:[],id:1836,type:0},{name:"Apertura 2023",related_seasons:[{type:2,id:1826},{type:1,id:1827}],id:1772,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}],tournament:{show_logos:1,tournament_type:0,name:"Liga MX",logo:"https://az755631.vo.msecnd.net/tournaments/liga_mx.png",id:1,tournament_status:0,order:1}},{_id:1071,seasons:[{name:"Clausura 2024",related_seasons:[],id:1837,type:0},{name:"Apertura 2023",related_seasons:[{type:2,id:1822},{type:1,id:1828}],id:1776,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}],tournament:{show_logos:1,tournament_type:0,name:"Liga Expansion MX",logo:"https://az755631.vo.msecnd.net/tournaments/expansion_mx.png",id:1071,tournament_status:0,order:3}},{_id:1096,seasons:[{name:"Apertura 2023",related_seasons:[{type:1,id:1830}],id:1782,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1751}],id:1714,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1593}],id:1543,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1522}],id:1487,type:0}],tournament:{show_logos:0,tournament_type:0,name:"Sub-18",logo:null,id:1096,tournament_status:0,order:6}}],i={token:"",token_b2c:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MjQyNTQsIm5hbWUiOiJHb2xTdGF0cyIsInVzZXJuYW1lIjoiZ29sdGVzdGluZyIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE3MDA3ODkyNTcsImV4cCI6MTczMjMyNTI1N30.4iVGU3Q8rcNFRkYiPEmEYj1pB_UoYr1L5virEIpmGhs",id:24254,username:"goltesting",name:"GolStats",team:1,player:0,tournament:1,type_system:"presidents",language:"es",active_time:1,season:1772,is_player:0,related_seasons:[],is_goalkeeper:0,show_dashboard:1,user_type:1,premiumAccount:!0,userType:1,accessVideos:!0,sessionExpiration:1701869305930},n=s.computed(()=>a.reduce((r,o)=>{const l={...o.tournament,seasons:o.seasons};return l.seasons.forEach(c=>{r.set(c.id,l)}),r},new Map));return(r,o)=>(s.openBlock(),s.createElementBlock("div",t5e,[s.createVNode(s.unref(e5e),{"season-selected-id":1772,user:i,section:a5e,token:t.value,"tournaments-for-media-player":n.value,"background-color":""},null,8,["token","tournaments-for-media-player"])]))}},[["__scopeId","data-v-8898ddab"]]),n5e={PO1:"CFI",PO2:"CFV",PO3:"SFI",PO4:"SFV",PO5:"FI",PO6:"FV"},r5e={DF:"Dieciseisavos",OF:"Octavos",CF:"Cuartos",SF:"Semifinales","3ER":"Tercer lugar",FINAL:"Final"},s5e={4:"Octavos",5:"Cuartos",6:"Semifinales",7:"Final"},o5e=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},uv={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))}}},sP=()=>{s.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}))},oP=uv.setup;uv.setup=oP?(e,t)=>(sP(),oP(e,t)):sP;const l5e=e=>(s.pushScopeId("data-v-fb269a1e"),e=e(),s.popScopeId(),e),c5e=["src"],d5e={key:1,class:"text"},u5e=["src"],h5e={class:"stats"},p5e=l5e(()=>s.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),m5e={class:"numstats"},f5e={class:"leyend"};function g5e(e,t,a,i,n,r){return s.openBlock(),s.createElementBlock("div",null,[a.type==0?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["button",n.status&&a.typeOnOff&&"button-active"]),style:s.normalizeStyle([r.customStyle,n.status&&a.typeOnOff&&r.customActive]),onClick:t[0]||(t[0]=(...o)=>r.btnClick&&r.btnClick(...o))},[a.icon&&a.iconPosition.toLowerCase()==="left"?(s.openBlock(),s.createElementBlock("img",{key:0,class:"icon",style:s.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,c5e)):s.createCommentVNode("",!0),a.textValue?(s.openBlock(),s.createElementBlock("div",d5e,s.toDisplayString(a.textValue),1)):s.createCommentVNode("",!0),a.icon&&a.iconPosition.toLowerCase()==="right"?(s.openBlock(),s.createElementBlock("img",{key:2,class:"icon",style:s.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,u5e)):s.createCommentVNode("",!0)],6)):s.createCommentVNode("",!0),a.type==1?(s.openBlock(),s.createElementBlock("div",{key:1,class:"button-target",onClick:t[1]||(t[1]=(...o)=>r.btnClick&&r.btnClick(...o))},[s.createElementVNode("div",h5e,[p5e,s.createElementVNode("div",m5e,s.toDisplayString(a.textStat),1)]),s.createElementVNode("div",f5e,s.toDisplayString(a.textCategory),1)])):s.createCommentVNode("",!0)])}const y5e=o5e(uv,[["render",g5e],["__scopeId","data-v-fb269a1e"]]),_5e={class:"gsc-dropdown__main-container__item-selected"},b5e=["height","width"],v5e=["stroke"],S5e={class:"gsc-dropdown__items-container"},w5e=["onClick"],T5e={key:0,class:"gsc-dropdown__items-footer"},C5e={__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(t=>t 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:t}){const a=e,i=s.ref({}),n=s.ref(null),r=s.ref(a.isMultipleOption?-1:0),o=s.ref(!1);s.watch(()=>a.items,(p,f)=>{if(!a.modelValue&&(!a.onlyFirstTime||!f||!f.length)&&p&&p.length){if(a.defaultItemByProp){const y=a.items.findIndex(b=>b[a.defaultItemByProp.propName]===a.defaultItemByProp.value);y!==-1?(r.value=y,i.value=p[y]):(r.value=0,i.value=p[0])}else i.value=p[a.defaultItemByIndex];t("input",i.value)}},{immediate:!0}),s.watch(()=>a.modelValue,p=>{if(p){const f=a.items.findIndex(y=>typeof p=="object"?JSON.stringify(y)===JSON.stringify(p):y===p);f!==-1&&(r.value=f,i.value=a.items[f],t("update:modelValue",i.value))}},{immediate:!0});const l=s.computed(()=>({height:a.height,width:a.width,backgroundColor:a.backgroundColor,borderRadius:`${a.borderRadius}px`,border:`${a.borderType} ${a.borderWidth}px ${a.borderColor}`,color:a.color,"--hover-background-color":a.hoverBackgroundColor,"--list-item-padding":a.listItemPadding,"--list-background-color":a.listBackgroundColor,"--list-height":a.listHeight,"--list-item-selected-color":a.listItemSelectedColor,"--list-item-selected-background-color":a.listItemSelectedBackgroundColor,"--list-item-color":a.listItemColor,"--list-border-radius":`${a.listBorderRadius}`,"--list-border-color":a.listBorderColor,"--list-width":a.isListSameWidth?a.width:"fit-content","--list-border-width":`${a.listBorderWidth}px`,"--footer-border":`${a.footerBorderWidth}px solid ${a.footerBorderColor}`,"--dropdown-opacity":a.isDisabled?"0.5":"1","--dropdown-cursor":a.isDisabled?"not-allowed":"pointer","--dropdown-font-size":a.fontSize?a.fontSize:"14px"})),c=s.computed(()=>({height:`${a.arrowHeight}px`,width:`${a.arrowWidth}px`}));function d(){a.isDisabled||(o.value=!o.value)}function u(p){n.value.contains(p.target)||(o.value=!1)}function h(p,f){a.isMultipleOption?r.value=-1:(r.value=f,o.value=!1),i.value=p,t("input",i.value),t("update:modelValue",i.value)}function m(){o.value=!1,t("click-ready")}return s.onMounted(()=>{document.addEventListener("click",u)}),s.onBeforeMount(()=>{document.removeEventListener("click",u)}),(p,f)=>(s.openBlock(),s.createElementBlock("div",{ref_key:"dropDown",ref:n,class:"gsc-dropdown",style:s.normalizeStyle(l.value)},[s.createElementVNode("div",{class:"gsc-dropdown__main-container",style:s.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:d},[s.createElementVNode("div",_5e,[s.renderSlot(p.$slots,"default",{selectedItem:i.value})]),s.createElementVNode("div",{class:s.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":o.value}]),style:s.normalizeStyle(c.value)},[(s.openBlock(),s.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[s.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,v5e)],8,b5e))],6)],4),s.createVNode(s.Transition,null,{default:s.withCtx(()=>[s.withDirectives(s.createElementVNode("div",S5e,[s.createElementVNode("div",null,[s.createElementVNode("div",{class:"gsc-dropdown__items",style:s.normalizeStyle({"margin-top":`${a.borderWidth}px`})},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.items,(y,b)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["gsc-dropdown__items__item",{selected:b===r.value}]),key:b,onClick:E=>h(y,b)},[s.renderSlot(p.$slots,"availableItem",{item:y})],10,w5e))),128))],4),e.isFooterVisible?(s.openBlock(),s.createElementBlock("div",T5e,[s.createVNode(s.unref(y5e),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:m})])):s.createCommentVNode("",!0)])],512),[[s.vShow,o.value]])]),_:3})],4))}},k5e=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},E5e={class:"tournament-select__selected-tournament"},I5e={class:"tournament-select__selected-tournament__logo"},x5e=["src"],N5e={class:"tournament-select__selected-tournament__name"},A5e={__name:"GSCTournamentSelect",props:{apiUrl:{type:String,default:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments"},fontFamily:{type:String,default:"sans-serif"},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(t=>t in e)},currentSeasonId:{type:Number,default:0}},emits:["input"],setup(e,{emit:t}){const a=e,i=s.ref([]),n=s.computed(()=>{const h={};return a.fontFamily&&(h["font-family"]=`${a.fontFamily}`),h}),r=s.computed(()=>i.value.find(h=>h.seasonsIds.has(a.currentSeasonId))||i.value[0]);async function o(){try{if(a.items&&a.items.length)i.value=[...a.items];else if(a.apiUrl){const h=await c();i.value=h.map(m=>({...m.tournament,seasons:m.seasons,seasonsIds:m.seasons.reduce((p,f)=>(p.add(f.id),p),new Set)})).sort((m,p)=>m.order-p.order)}}catch(h){throw new Error(h)}}function l(h){const m=new XMLHttpRequest,p=`${a.logosUrl}${h}.${a.logoFileType}`;return m.open("HEAD",p,!1),m.send(),m.status!==404}async function c(){try{return(await fetch(a.apiUrl)).json()}catch(h){return Promise.reject(h)}}function d(h){t("input",h)}function u(h){t("input",h)}return s.onMounted(()=>{o()}),(h,m)=>(s.openBlock(),s.createElementBlock("div",{class:"tournament-select",style:s.normalizeStyle(n.value)},[s.createVNode(s.unref(C5e),s.mergeProps(a,{"model-value":r.value,items:i.value,onInput:d,"onUpdate:modelValue":u}),{default:s.withCtx(({selectedItem:p})=>[s.createElementVNode("div",E5e,[s.createElementVNode("div",I5e,[l(p.id)?(s.openBlock(),s.createElementBlock("img",{key:0,src:`${a.logosUrl}${p.id}.${a.logoFileType}`,alt:""},null,8,x5e)):s.createCommentVNode("",!0)]),s.createElementVNode("div",N5e,s.toDisplayString(p.name),1)])]),availableItem:s.withCtx(({item:p})=>[s.createElementVNode("div",null,s.toDisplayString(p.name),1)]),_:1},16,["model-value","items"])],4))}},P5e=k5e(A5e,[["__scopeId","data-v-44050d64"]]),O5e=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},hv={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))}}},lP=()=>{s.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}))},cP=hv.setup;hv.setup=cP?(e,t)=>(lP(),cP(e,t)):lP;const B5e=e=>(s.pushScopeId("data-v-fb269a1e"),e=e(),s.popScopeId(),e),D5e=["src"],L5e={key:1,class:"text"},R5e=["src"],M5e={class:"stats"},F5e=B5e(()=>s.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),V5e={class:"numstats"},U5e={class:"leyend"};function j5e(e,t,a,i,n,r){return s.openBlock(),s.createElementBlock("div",null,[a.type==0?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["button",n.status&&a.typeOnOff&&"button-active"]),style:s.normalizeStyle([r.customStyle,n.status&&a.typeOnOff&&r.customActive]),onClick:t[0]||(t[0]=(...o)=>r.btnClick&&r.btnClick(...o))},[a.icon&&a.iconPosition.toLowerCase()==="left"?(s.openBlock(),s.createElementBlock("img",{key:0,class:"icon",style:s.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,D5e)):s.createCommentVNode("",!0),a.textValue?(s.openBlock(),s.createElementBlock("div",L5e,s.toDisplayString(a.textValue),1)):s.createCommentVNode("",!0),a.icon&&a.iconPosition.toLowerCase()==="right"?(s.openBlock(),s.createElementBlock("img",{key:2,class:"icon",style:s.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,R5e)):s.createCommentVNode("",!0)],6)):s.createCommentVNode("",!0),a.type==1?(s.openBlock(),s.createElementBlock("div",{key:1,class:"button-target",onClick:t[1]||(t[1]=(...o)=>r.btnClick&&r.btnClick(...o))},[s.createElementVNode("div",M5e,[F5e,s.createElementVNode("div",V5e,s.toDisplayString(a.textStat),1)]),s.createElementVNode("div",U5e,s.toDisplayString(a.textCategory),1)])):s.createCommentVNode("",!0)])}const z5e=O5e(hv,[["render",j5e],["__scopeId","data-v-fb269a1e"]]),H5e={class:"gsc-dropdown__main-container__item-selected"},q5e=["height","width"],W5e=["stroke"],G5e={class:"gsc-dropdown__items-container"},K5e=["onClick"],X5e={key:0,class:"gsc-dropdown__items-footer"},J5e={__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(t=>t 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:t}){const a=e,i=s.ref({}),n=s.ref(null),r=s.ref(a.isMultipleOption?-1:0),o=s.ref(!1);s.watch(()=>a.items,(p,f)=>{if(!a.modelValue&&(!a.onlyFirstTime||!f||!f.length)&&p&&p.length){if(a.defaultItemByProp){const y=a.items.findIndex(b=>b[a.defaultItemByProp.propName]===a.defaultItemByProp.value);y!==-1?(r.value=y,i.value=p[y]):(r.value=0,i.value=p[0])}else i.value=p[a.defaultItemByIndex];t("input",i.value)}},{immediate:!0}),s.watch(()=>a.modelValue,p=>{if(p){const f=a.items.findIndex(y=>typeof p=="object"?JSON.stringify(y)===JSON.stringify(p):y===p);f!==-1&&(r.value=f,i.value=a.items[f],t("update:modelValue",i.value))}},{immediate:!0});const l=s.computed(()=>({height:a.height,width:a.width,backgroundColor:a.backgroundColor,borderRadius:`${a.borderRadius}px`,border:`${a.borderType} ${a.borderWidth}px ${a.borderColor}`,color:a.color,"--hover-background-color":a.hoverBackgroundColor,"--list-item-padding":a.listItemPadding,"--list-background-color":a.listBackgroundColor,"--list-height":a.listHeight,"--list-item-selected-color":a.listItemSelectedColor,"--list-item-selected-background-color":a.listItemSelectedBackgroundColor,"--list-item-color":a.listItemColor,"--list-border-radius":`${a.listBorderRadius}`,"--list-border-color":a.listBorderColor,"--list-width":a.isListSameWidth?a.width:"fit-content","--list-border-width":`${a.listBorderWidth}px`,"--footer-border":`${a.footerBorderWidth}px solid ${a.footerBorderColor}`,"--dropdown-opacity":a.isDisabled?"0.5":"1","--dropdown-cursor":a.isDisabled?"not-allowed":"pointer","--dropdown-font-size":a.fontSize?a.fontSize:"14px"})),c=s.computed(()=>({height:`${a.arrowHeight}px`,width:`${a.arrowWidth}px`}));function d(){a.isDisabled||(o.value=!o.value)}function u(p){n.value.contains(p.target)||(o.value=!1)}function h(p,f){a.isMultipleOption?r.value=-1:(r.value=f,o.value=!1),i.value=p,t("input",i.value),t("update:modelValue",i.value)}function m(){o.value=!1,t("click-ready")}return s.onMounted(()=>{document.addEventListener("click",u)}),s.onBeforeMount(()=>{document.removeEventListener("click",u)}),(p,f)=>(s.openBlock(),s.createElementBlock("div",{ref_key:"dropDown",ref:n,class:"gsc-dropdown",style:s.normalizeStyle(l.value)},[s.createElementVNode("div",{class:"gsc-dropdown__main-container",style:s.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:d},[s.createElementVNode("div",H5e,[s.renderSlot(p.$slots,"default",{selectedItem:i.value})]),s.createElementVNode("div",{class:s.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":o.value}]),style:s.normalizeStyle(c.value)},[(s.openBlock(),s.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[s.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,W5e)],8,q5e))],6)],4),s.createVNode(s.Transition,null,{default:s.withCtx(()=>[s.withDirectives(s.createElementVNode("div",G5e,[s.createElementVNode("div",null,[s.createElementVNode("div",{class:"gsc-dropdown__items",style:s.normalizeStyle({"margin-top":`${a.borderWidth}px`})},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.items,(y,b)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["gsc-dropdown__items__item",{selected:b===r.value}]),key:b,onClick:E=>h(y,b)},[s.renderSlot(p.$slots,"availableItem",{item:y})],10,K5e))),128))],4),e.isFooterVisible?(s.openBlock(),s.createElementBlock("div",X5e,[s.createVNode(s.unref(z5e),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:m})])):s.createCommentVNode("",!0)])],512),[[s.vShow,o.value]])]),_:3})],4))}},Y5e=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},Q5e={class:"season-name"},Z5e={components:{GSCSeasonSelect:Y5e({__name:"GSC-SeasonSelect",props:{seasons:{type:Array,default:()=>[]},currentSeasonId:{type:Number,default:0}},emits:["input"],setup(e,{emit:t}){const a=e,i=s.computed(()=>a.seasons.find(o=>o.id===a.currentSeasonId));function n(o){t("input",o)}function r(o){t("input",o)}return(o,l)=>(s.openBlock(),s.createBlock(s.unref(J5e),{items:e.seasons,"model-value":i.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":n},{default:s.withCtx(({selectedItem:c})=>[s.createElementVNode("div",Q5e,[s.createElementVNode("span",null,s.toDisplayString(c.name),1)])]),availableItem:s.withCtx(({item:c})=>[s.createElementVNode("span",null,s.toDisplayString(c.name),1)]),_:1},8,["items","model-value"]))}},[["__scopeId","data-v-a372361a"]]),GSCTournamentSelect:P5e,GSCGames:rj,GSCGridTeamsMatches:pB,GSCPlayersLanding:sB,GSCTops:sz,GSCTableCalendar:tU,GSCMediaPlayer:i5e},setup(){const e=s.ref("landingref"),{elementSize:t}=LO(e);return{landingref:e,elementSize:t}},watch:{team:{immediate:!0,deep:!0,async handler(e){if(Object.keys(this.seasonSelected).length!==0){const t=await this.generateSeasons(this.seasonSelected);this.seasonsSelected=t,this.fetchGames(e,t)}}},closestRound(e){this.selectedRoundKeyIndex=this.tournamentScheduleKeys.findIndex(t=>t===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,tokenFree:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{gamesFullLeague(){var e=[];for(let t=0;t<this.fullTournamentScheduleFull[this.selectedRound].length;t++)for(let a=0;a<this.fullTournamentScheduleFull[this.selectedRound][t].games.length;a++)e.push(this.fullTournamentScheduleFull[this.selectedRound][t].games[a]);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:{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 t={data:e,isPlayer:this.isplayer};this.$emit("clickOnMainCards",t)},async fetchGames(e,t){const a=t.map(n=>`seasons=${n.id}`).join("&"),i=Sc.create({headers:{Authorization:`${this.tokenFree}`}});this.fullTournamentSchedule=await i.get(this.gamesUrl+e+"?"+a)},async generateSeasons(e){const t=[{id:e.id,type:e.type}];return e.related_seasons&&e.related_seasons.length&&t.push(...e.related_seasons.map(a=>({id:a.id,type:a.type}))),t},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 t=await this.generateSeasons(this.seasonSelected);this.seasonsSelected=t,await this.createFullTournamentScheme(t,!1)}else{const t=await this.generateSeasons(this.seasonSelected);this.seasonsSelected=t,await this.fetchGames(this.user.team,t)}this.seasonSelectedDropDowns!==e.id&&(this.seasonSelectedDropDowns=e.id,this.$emit("change-season-id",e.id))},async fetchTournaments(e){try{const{data:t}=await Sc.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments");return t}catch(t){if(e>0)return this.fetchTournaments(e-1);throw new Error(t)}},async fetchSeasonsGamesAndTeams(e,t,a=""){let i=a;try{i||(i=this.gamesUrl2,e.forEach((l,c)=>{i+=`${c===0?"":"&"}seasons=${l}`}));const n=Sc.create({headers:{Authorization:`${this.tokenFree}`}}),{data:{data:r,teams:o}}=await n.get(i);return{seasonsAndGames:r,seasonsAndTeams:o}}catch(n){if(t>0)return this.fetchSeasonsGamesAndTeams(e,t-1,i);throw new Error(n)}},areSeasonsDifferent(e){for(const t of e)if(!this.lastSeasonsIds.includes(t.season_id))return!0;return!1},async createFullTournamentScheme(e,t){try{this.fullTournamentSchedule={},this.userTeamGames=[];let a=0;const{seasonsAndGames:i,seasonsAndTeams:n}=await this.fetchSeasonsGamesAndTeams(e.map(c=>c.id),3);if(t&&this.areSeasonsDifferent(i))return;i.forEach(c=>{const{type:d}=e.find(u=>u.id===c.season_id);c.type=d,c.games.forEach(u=>{u.season_id=c.season_id}),d===0&&(a=c.season_id)});const r={seasonsGames:i},{teams:o}=n.find(c=>c.season_id===a),l=r&&r.seasonsGames?r.seasonsGames.map(c=>{const d=c.games.reduce((u,h)=>{const m={...h};return m.dateTimeMillis=new Date(m.date_time_utc).valueOf(),m.home_team=o.find(p=>p.team_id===h.home_team),m.visiting_team=o.find(p=>p.team_id===h.visiting_team),u[h.matchday_abbreviation]?u[h.matchday_abbreviation][h.game_status===3?"canceled":h.date]?u[h.matchday_abbreviation][h.game_status===3?"canceled":h.date].push(m):u[h.matchday_abbreviation][h.game_status===3?"canceled":h.date]=[m]:u[h.matchday_abbreviation]={[h.game_status===3?"canceled":h.date]:[m]},this.gsData&&this.gsData.teamId&&m.game_status===4&&(m.home_team.team_id===this.gsData.teamId||m.visiting_team.team_id===this.gsData.teamId)&&this.userTeamGames.push(m),u},{});this.userTeamGames.sort((u,h)=>u.dateTimeMillis-h.dateTimeMillis);for(let[u,h]of Object.entries(d))d[u]=Object.entries(h).map(([m,p])=>({date:m,games:p.sort((f,y)=>f.dateTimeMillis-y.dateTimeMillis)})),d[u].sort((m,p)=>m.date<p.date?-1:m.date>p.date?1:0);return{type:c.type,weight:c.type===0?0:c.type===2?1:2,schedule:d}}):[];l.sort((c,d)=>c.weight-d.weight),this.fullTournamentScheduleFull=l.reduce((c,d)=>{for(const[u,h]of Object.entries(d.schedule))if(d.type===0)if(this.isCup){const m=u.replace("M",""),p=`Jornada ${m}`;this.isCupLegacy?c[s5e[m]||p]=h:c[r5e[u]||p]=h}else c[Number(u.replace("M","")).toString()]=h;else d.type===2?["PI1","PI2"].includes(u)?c[u]=h:c[`R${Number(u.replace("PO",""))}`]=h:d.type===1&&(c[n5e[u]]=h);return c},{}),this.tournamentScheduleKeys=Object.keys(this.fullTournamentScheduleFull)}catch(a){throw new Error(a)}finally{this.loadingFlag=!1}},getNormalClosestRound(e){const a=Object.entries(Object.entries(e).reduce((r,[o,l])=>(r[o]=[],l.forEach(c=>{c.games.forEach(d=>{const u=new Date(d.date_time_utc).getTime()+66e5;r[o].push(u)})}),r),{}));if(!a.length)return"1";const i=new Date().getTime(),n=a.reduce((r,[o,l])=>{let c=null;return l.forEach(d=>{const u=d-i;u>=0&&(c===null||u<c)&&(c=u)}),c&&(r.shortestTime===null||c<r.shortestTime)&&(r.round=o,r.shortestTime=c),r},{round:"",shortestTime:null});return n.shortestTime!==null?n.round:a[a.length-1][0]},getUserTeamClosestRound(e){let t=1;if(this.userTeamGames.length){const a=this.userTeamGames[0];for(const[i,n]of Object.entries(e))for(const r of n)if(r.games.find(l=>l.game_id===a.game_id))return i}return t}},async created(){const a=(await this.fetchTournaments(3)).find(n=>n._id===1).seasons[1],i=[{id:a.id,type:a.type}];a.related_seasons&&a.related_seasons.length&&i.push(...a.related_seasons.map(n=>({id:n.id,type:n.type}))),await this.createFullTournamentScheme(i,!1)}},$5e=e=>(s.pushScopeId("data-v-48a50809"),e=e(),s.popScopeId(),e),e4e={class:"gsclanding",ref:"landingref"},t4e={key:0,class:"container-selectors-mobile"},a4e={class:"container-selectors-mobile-tournament"},i4e={class:"container-selectors-mobile-season"},n4e={key:0,class:"home-item-movil"},r4e=$5e(()=>s.createElementVNode("div",{class:"home-movil"},"Inicio",-1)),s4e={class:"name-user-movil"},o4e={key:1,class:"home-item"},l4e={key:2,class:"bar-settings"},c4e={class:"name-user"},d4e={class:"container-selectors"},u4e={class:"selector-tournament"},h4e={class:"selector-seasons"},p4e={key:3,class:"container-games"},m4e={key:4,class:"container-players"},f4e={class:"container-tops"},g4e={class:"container-vr"};function y4e(e,t,a,i,n,r){const o=s.resolveComponent("GSCTournamentSelect"),l=s.resolveComponent("GSCSeasonSelect"),c=s.resolveComponent("GSCGames"),d=s.resolveComponent("GSCGridTeamsMatches"),u=s.resolveComponent("GSCTableCalendar"),h=s.resolveComponent("GSCPlayersLanding"),m=s.resolveComponent("GSCTops"),p=s.resolveComponent("GSCMediaPlayer");return s.openBlock(),s.createElementBlock("div",e4e,[i.elementSize.width<=680?(s.openBlock(),s.createElementBlock("div",t4e,[s.createElementVNode("div",a4e,[s.createVNode(o,{"current-season-id":a.currentSeasonId,width:"100%",onInput:r.onInputTournament},null,8,["current-season-id","onInput"])]),s.createElementVNode("div",i4e,[s.createVNode(l,{"current-season-id":a.currentSeasonId,width:"100%",seasons:n.tournamentSelectedDropDowns.seasons,onInput:r.onInputSeason},null,8,["current-season-id","seasons","onInput"])])])):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(r.containerbackground)},[s.createElementVNode("div",{class:s.normalizeClass(r.containerdata)},[i.elementSize.width<=680?(s.openBlock(),s.createElementBlock("div",n4e,[r4e,s.createElementVNode("div",s4e,[s.createTextVNode("Bienvenido "),a.user.name.split(",").length!=0?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[a.user.name.split(",").length==1?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[a.user.name.split(",")[0]!=""?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createTextVNode(", ")],64)):s.createCommentVNode("",!0),s.createTextVNode(s.toDisplayString(a.user.name.split(",")[0]),1)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[a.user.name.split(",")[0]!=""?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createTextVNode(", ")],64)):s.createCommentVNode("",!0),s.createTextVNode(s.toDisplayString(a.user.name.split(",")[1]),1)],64))],64)):s.createCommentVNode("",!0)])])):s.createCommentVNode("",!0),i.elementSize.width>680?(s.openBlock(),s.createElementBlock("div",o4e,"Inicio")):s.createCommentVNode("",!0),i.elementSize.width>680?(s.openBlock(),s.createElementBlock("div",l4e,[s.createElementVNode("div",c4e,[s.createTextVNode("Bienvenido "),a.user.name.split(",").length!=0?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[a.user.name.split(",").length==1?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[a.user.name.split(",")[0]!=""?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createTextVNode(", ")],64)):s.createCommentVNode("",!0),s.createTextVNode(s.toDisplayString(a.user.name.split(",")[0]),1)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[a.user.name.split(",")[0]!=""?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createTextVNode(", ")],64)):s.createCommentVNode("",!0),s.createTextVNode(s.toDisplayString(a.user.name.split(",")[1]),1)],64))],64)):s.createCommentVNode("",!0)]),s.createElementVNode("div",d4e,[s.createElementVNode("div",u4e,[s.createVNode(o,{"current-season-id":a.currentSeasonId,onInput:r.onInputTournament},null,8,["current-season-id","onInput"])]),s.createElementVNode("div",h4e,[s.createVNode(l,{"current-season-id":a.currentSeasonId,seasons:n.tournamentSelectedDropDowns.seasons,onInput:r.onInputSeason},null,8,["current-season-id","seasons","onInput"])])])])):s.createCommentVNode("",!0),Object.keys(n.tournamentSelected).length>0?(s.openBlock(),s.createElementBlock("div",p4e,[s.createVNode(c,{"component-width":i.elementSize.width,isplayer:a.isplayer,"is-full":n.tournamentSelected.id!=a.user.tournament,onClickMatch:r.onClickMatch,onClickCalendar:r.onClickCalendar,data:n.tournamentSelected.id==a.user.tournament?n.fullTournamentSchedule:r.gamesFullLeague},null,8,["component-width","isplayer","is-full","onClickMatch","onClickCalendar","data"])])):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(r.containerGridCalendarTable)},[s.createElementVNode("div",{class:"container-grid",style:s.normalizeStyle(i.elementSize.width<1e3?"width: 100%":"")},[s.createVNode(d,{isPlayer:a.isplayer?n.tournamentSelected.id==a.user.tournament:!1,"player-id":a.user.player,"team-id":a.user.team,"season-selected":n.seasonSelected.id,"next-rival-id":Object.keys(n.fullTournamentSchedule).length>0?a.user.team==n.fullTournamentSchedule.data.prematch.home_team?n.fullTournamentSchedule.data.prematch.visiting_team:n.fullTournamentSchedule.data.prematch.home_team:0,"team-img":"https://az755631.vo.msecnd.net/teams-150/"+a.user.team+".png","player-img":"https://az755631.vo.msecnd.net/players-profile/"+a.user.player+".png","rival-img":Object.keys(n.fullTournamentSchedule).length>0?a.user.team==n.fullTournamentSchedule.data.prematch.home_team?"https://az755631.vo.msecnd.net/teams-150/"+n.fullTournamentSchedule.data.prematch.visiting_team+".png":"https://az755631.vo.msecnd.net/teams-150/"+n.fullTournamentSchedule.data.prematch.home_team+".png":"","has-team":a.isplayer?!1:n.tournamentSelected.id==a.user.tournament,"component-width":i.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),s.createElementVNode("div",{class:"container-calendar-table",style:s.normalizeStyle(i.elementSize.width<1e3?"width: 100%; margin-top: 30px;":"")},[s.createVNode(u,{onAction:r.onAction,season:n.seasonSelected,seasons:n.seasonsSelected,onOpenmedia:r.onOpenMedia,onOnOpenProfile:r.onOpenProfile,componentWidth:i.elementSize.width},null,8,["onAction","season","seasons","onOpenmedia","onOnOpenProfile","componentWidth"])],4)],2),n.tournamentSelected.id==a.user.tournament?s.withDirectives((s.openBlock(),s.createElementBlock("div",m4e,[s.createVNode(h,{onClickProfileBtn:r.clickProfileBtn,onViewAll:r.viewAll,onTotalPlayers:r.getTotalPlayers,"team-id":a.user.team,"season-id":n.seasonSelected.id,"is-player":a.user.player!=0},null,8,["onClickProfileBtn","onViewAll","onTotalPlayers","team-id","season-id","is-player"])],512)),[[s.vShow,n.playersLength>0]]):s.createCommentVNode("",!0),s.createElementVNode("div",f4e,[s.createVNode(m,{onMore:r.moreTops,"show-switch":n.tournamentSelected.id==a.user.tournament,season:n.seasonSelected.id,"team-id":a.user.team,onOpenmedia:r.onOpenMedia},null,8,["onMore","show-switch","season","team-id","onOpenmedia"])]),s.createElementVNode("div",g4e,[s.createVNode(p)])],2)],2)],512)}const _4e=si(Z5e,[["render",y4e],["__scopeId","data-v-48a50809"]]),b4e=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},v4e={key:1},S4e={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w4e=["fill"],T4e={key:0,class:"checkbox__teams"},C4e={class:"checkbox__teams__logo"},k4e=["src"],E4e={class:"checkbox__teams__logo"},I4e=["src"],x4e={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelWhiteSpace:{type:String,default:"normal"},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(e){return["left","right","top","bottom"].includes(e)}},boxMarginTop:{type:String,default:"0.2em"},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1},avoidToCheck:{type:Boolean,default:!1},isBoxOnly:{type:Boolean,default:!1},teamsIds:{type:Array,default:()=>null}},emits:["update:modelValue"],setup(e,{emit:t}){const a=e;s.useCssVars(d=>({"6582e90e":e.width,"310b3edf":e.height}));const i=s.ref(!1),n=s.computed(()=>{const d={color:a.boxValueColor,"font-family":a.fontFamily,height:a.boxWidthAndHeight,width:a.boxWidthAndHeight,minWidth:a.boxWidthAndHeight,"border-radius":a.boxBorderRadius,"margin-top":a.boxMarginTop};return i.value?(d["background-color"]=a.boxBackgroundColor,d.border=`solid ${a.boxBorderWidth} ${a.boxBackgroundColor}`):d.border=`solid ${a.boxBorderWidth} ${a.boxBorderColor}`,d}),r=s.computed(()=>({"font-family":a.boxValueFontFamily,"font-size":a.boxValueFontSize,color:a.boxValueColor,"line-height":1})),o=s.computed(()=>{const d={color:a.labelColor,"font-family":a.fontFamily,"font-size":a.labelFontSize,"white-space":a.labelWhiteSpace,"text-align":a.boxPosition==="top"||a.boxPosition==="bottom"?"center":a.boxPosition};return(a.boxPosition==="left"||a.boxPosition==="right")&&(d[`margin-${a.boxPosition}`]=a.isBoxOnly?"0":a.teamsIds?"8px":"10px"),d});s.watch(()=>a.modelValue,d=>{d!==i.value&&(i.value=d)},{immediate:!0});function l(){a.avoidInteraction||!i.value&&a.avoidToCheck||(i.value=!i.value,t("update:modelValue",i.value))}function c(d){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-80/"}${d}.png`}return(d,u)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:l},[s.createElementVNode("div",{class:"checkbox__box",style:s.normalizeStyle(n.value)},[i.value?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[a.boxValue?(s.openBlock(),s.createElementBlock("div",{key:0,class:"checkbox__box__value",style:s.normalizeStyle(r.value)},s.toDisplayString(e.boxValue),5)):(s.openBlock(),s.createElementBlock("div",v4e,[(s.openBlock(),s.createElementBlock("svg",S4e,[s.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:e.boxValueColor},null,8,w4e)]))]))],64)):s.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(s.openBlock(),s.createElementBlock("div",T4e,[s.createElementVNode("div",C4e,[s.createElementVNode("img",{src:c(e.teamsIds[0]),alt:""},null,8,k4e)]),s.createElementVNode("div",E4e,[s.createElementVNode("img",{src:c(e.teamsIds[1]),alt:""},null,8,I4e)])])):s.createCommentVNode("",!0),s.createElementVNode("div",{class:"checkbox__label",style:s.normalizeStyle(o.value)},s.toDisplayString(e.label),5)],2))}},pv=b4e(x4e,[["__scopeId","data-v-bcf3bcc6"]]),N4e={class:"subcategory-group"},A4e={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(e){return(t,a)=>(s.openBlock(),s.createElementBlock("div",N4e,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.subcategoryGroup,i=>(s.openBlock(),s.createBlock(s.unref(pv),{key:i.id,modelValue:i.isSelected,"onUpdate:modelValue":n=>i.isSelected=n,label:i.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},P4e=bt(A4e,[["__scopeId","data-v-6c6e0261"]]),O4e={class:"filter-subcategories"},B4e=Object.freeze(Object.defineProperty({__proto__:null,default:bt({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(e){return(t,a)=>(s.openBlock(),s.createElementBlock("div",O4e,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.subcategoryGroups,i=>(s.openBlock(),s.createElementBlock("div",{key:i.id,class:"filter-subcategories__group"},[s.createVNode(P4e,{subcategoryGroup:i},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-feeb6f0d"]])},Symbol.toStringTag,{value:"Module"})),kf=e=>(s.pushScopeId("data-v-f22f11b6"),e=e(),s.popScopeId(),e),D4e={class:"details__header"},L4e=kf(()=>s.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),R4e={class:"details__header__checkbox"},M4e={class:"details__body"},F4e={class:"details__body__playing-as"},V4e=["onClick"],U4e={class:"details__header"},j4e=kf(()=>s.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),z4e={class:"details__header__checkbox"},H4e={class:"details__body"},q4e=kf(()=>s.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),W4e={class:"details__body__game-section"},G4e=["onClick"],K4e={class:"details__body"},X4e=kf(()=>s.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),J4e={class:"details__body__game-section"},Y4e=["onClick"],Q4e=Object.freeze(Object.defineProperty({__proto__:null,default:bt({__name:"FilterConditions",props:{conditions:{type:Object,default:()=>({playingAs:[{name:"Local",value:1,isSelected:!0},{name:"Visitante",value:2,isSelected:!0}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]})},playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(e){const t=e;s.useCssVars(u=>({"7fb261be":e.buttonsBackgroundColor,"2ed63bdf":e.buttonsTextColor,"104a673a":e.buttonsBorderWidth,12786400:e.buttonsBorderColor,"661a0664":e.buttonsBackgroundColorActive,"61bff876":e.buttonsTextColorActive,e5a1bd6e:e.buttonsBorderWidthActive,"50c5b926":e.buttonsBorderColorActive}));const a=s.computed(()=>t.conditions.playingAs.every(u=>u.isSelected)),i=s.computed(()=>t.conditions.gameSections.every(u=>u.isSelected)),n=s.computed(()=>t.conditions.gameSections.reduce((u,h)=>(h.value<=3?u.firstHalf.push(h):u.secondHalf.push(h),u),{firstHalf:[],secondHalf:[]})),r=s.computed(()=>({"--border-radius-first-button":`${t.buttonsBorderRadius} 0 0 ${t.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${t.buttonsBorderRadius} ${t.buttonsBorderRadius} 0`}));function o(u){u?t.conditions.playingAs.forEach(h=>{h.isSelected=!0}):t.conditions.playingAs.forEach((h,m)=>{h.isSelected=m===0})}function l(u){t.conditions.playingAs.filter(h=>h.isSelected).length===1&&u.isSelected||(u.isSelected=!u.isSelected)}function c(u){t.conditions.gameSections.filter(h=>h.isSelected).length===1&&u.isSelected||(u.isSelected=!u.isSelected)}function d(u){u?t.conditions.gameSections.forEach(h=>{h.isSelected=!0}):t.conditions.gameSections.forEach((h,m)=>{h.isSelected=m===0})}return(u,h)=>(s.openBlock(),s.createElementBlock("div",{class:"details",style:s.normalizeStyle(r.value)},[s.createElementVNode("div",D4e,[L4e,s.createElementVNode("div",R4e,[s.createVNode(s.unref(pv),{label:"Todos","model-value":a.value,"onUpdate:modelValue":o},null,8,["model-value"])])]),s.createElementVNode("div",M4e,[s.createElementVNode("div",F4e,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.conditions.playingAs,(m,p)=>(s.openBlock(),s.createElementBlock("div",{key:`pa${p}`,class:s.normalizeClass(["details__body__button",{active:m.isSelected}]),onClick:f=>l(m)},s.toDisplayString(m.name),11,V4e))),128))])]),s.createElementVNode("div",U4e,[j4e,s.createElementVNode("div",z4e,[s.createVNode(s.unref(pv),{label:"Todos","model-value":i.value,"onUpdate:modelValue":d},null,8,["model-value"])])]),s.createElementVNode("div",H4e,[q4e,s.createElementVNode("div",W4e,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n.value.firstHalf,(m,p)=>(s.openBlock(),s.createElementBlock("div",{key:`pa${p}`,class:s.normalizeClass(["details__body__button",{active:m.isSelected}]),onClick:f=>c(m)},s.toDisplayString(m.text),11,G4e))),128))])]),s.createElementVNode("div",K4e,[X4e,s.createElementVNode("div",J4e,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n.value.secondHalf,(m,p)=>(s.openBlock(),s.createElementBlock("div",{key:`pa${p}`,class:s.normalizeClass(["details__body__button",{active:m.isSelected}]),onClick:f=>c(m)},s.toDisplayString(m.text),11,Y4e))),128))])])],4))}},[["__scopeId","data-v-f22f11b6"]])},Symbol.toStringTag,{value:"Module"})),Z4e=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},mv={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))}}},dP=()=>{s.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}))},uP=mv.setup;mv.setup=uP?(e,t)=>(dP(),uP(e,t)):dP;const $4e=e=>(s.pushScopeId("data-v-fb269a1e"),e=e(),s.popScopeId(),e),e3e=["src"],t3e={key:1,class:"text"},a3e=["src"],i3e={class:"stats"},n3e=$4e(()=>s.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),r3e={class:"numstats"},s3e={class:"leyend"};function o3e(e,t,a,i,n,r){return s.openBlock(),s.createElementBlock("div",null,[a.type==0?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["button",n.status&&a.typeOnOff&&"button-active"]),style:s.normalizeStyle([r.customStyle,n.status&&a.typeOnOff&&r.customActive]),onClick:t[0]||(t[0]=(...o)=>r.btnClick&&r.btnClick(...o))},[a.icon&&a.iconPosition.toLowerCase()==="left"?(s.openBlock(),s.createElementBlock("img",{key:0,class:"icon",style:s.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,e3e)):s.createCommentVNode("",!0),a.textValue?(s.openBlock(),s.createElementBlock("div",t3e,s.toDisplayString(a.textValue),1)):s.createCommentVNode("",!0),a.icon&&a.iconPosition.toLowerCase()==="right"?(s.openBlock(),s.createElementBlock("img",{key:2,class:"icon",style:s.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,a3e)):s.createCommentVNode("",!0)],6)):s.createCommentVNode("",!0),a.type==1?(s.openBlock(),s.createElementBlock("div",{key:1,class:"button-target",onClick:t[1]||(t[1]=(...o)=>r.btnClick&&r.btnClick(...o))},[s.createElementVNode("div",i3e,[n3e,s.createElementVNode("div",r3e,s.toDisplayString(a.textStat),1)]),s.createElementVNode("div",s3e,s.toDisplayString(a.textCategory),1)])):s.createCommentVNode("",!0)])}const l3e=Z4e(mv,[["render",o3e],["__scopeId","data-v-fb269a1e"]]),c3e=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},d3e={key:1},u3e={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h3e=["fill"],p3e={key:0,class:"checkbox__teams"},m3e={class:"checkbox__teams__logo"},f3e=["src"],g3e={class:"checkbox__teams__logo"},y3e=["src"],_3e={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelWhiteSpace:{type:String,default:"normal"},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(e){return["left","right","top","bottom"].includes(e)}},boxMarginTop:{type:String,default:"0.2em"},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1},avoidToCheck:{type:Boolean,default:!1},isBoxOnly:{type:Boolean,default:!1},teamsIds:{type:Array,default:()=>null}},emits:["update:modelValue"],setup(e,{emit:t}){const a=e;s.useCssVars(d=>({"6582e90e":e.width,"310b3edf":e.height}));const i=s.ref(!1),n=s.computed(()=>{const d={color:a.boxValueColor,"font-family":a.fontFamily,height:a.boxWidthAndHeight,width:a.boxWidthAndHeight,minWidth:a.boxWidthAndHeight,"border-radius":a.boxBorderRadius,"margin-top":a.boxMarginTop};return i.value?(d["background-color"]=a.boxBackgroundColor,d.border=`solid ${a.boxBorderWidth} ${a.boxBackgroundColor}`):d.border=`solid ${a.boxBorderWidth} ${a.boxBorderColor}`,d}),r=s.computed(()=>({"font-family":a.boxValueFontFamily,"font-size":a.boxValueFontSize,color:a.boxValueColor,"line-height":1})),o=s.computed(()=>{const d={color:a.labelColor,"font-family":a.fontFamily,"font-size":a.labelFontSize,"white-space":a.labelWhiteSpace,"text-align":a.boxPosition==="top"||a.boxPosition==="bottom"?"center":a.boxPosition};return(a.boxPosition==="left"||a.boxPosition==="right")&&(d[`margin-${a.boxPosition}`]=a.isBoxOnly?"0":a.teamsIds?"8px":"10px"),d});s.watch(()=>a.modelValue,d=>{d!==i.value&&(i.value=d)},{immediate:!0});function l(){a.avoidInteraction||!i.value&&a.avoidToCheck||(i.value=!i.value,t("update:modelValue",i.value))}function c(d){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-80/"}${d}.png`}return(d,u)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:l},[s.createElementVNode("div",{class:"checkbox__box",style:s.normalizeStyle(n.value)},[i.value?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[a.boxValue?(s.openBlock(),s.createElementBlock("div",{key:0,class:"checkbox__box__value",style:s.normalizeStyle(r.value)},s.toDisplayString(e.boxValue),5)):(s.openBlock(),s.createElementBlock("div",d3e,[(s.openBlock(),s.createElementBlock("svg",u3e,[s.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:e.boxValueColor},null,8,h3e)]))]))],64)):s.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(s.openBlock(),s.createElementBlock("div",p3e,[s.createElementVNode("div",m3e,[s.createElementVNode("img",{src:c(e.teamsIds[0]),alt:""},null,8,f3e)]),s.createElementVNode("div",g3e,[s.createElementVNode("img",{src:c(e.teamsIds[1]),alt:""},null,8,y3e)])])):s.createCommentVNode("",!0),s.createElementVNode("div",{class:"checkbox__label",style:s.normalizeStyle(o.value)},s.toDisplayString(e.label),5)],2))}},b3e=c3e(_3e,[["__scopeId","data-v-bcf3bcc6"]]),v3e=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},fv={components:{GSCButton:l3e,GSCCheckbox:b3e},data(){return{update:0,all:!1,refreshBtn14:0,refreshBtn24:0,refreshBtn34:0,refreshBtn44:0,sectors:Array.from({length:16},(e,t)=>({sector:t+1,active:!1})),lastUpdatedValue:[]}},props:{backgroundColor:{type:String,default:"#2e3b46"},heightContainer:{type:String,default:"340px"},widthContainer:{type:String,default:"455px"},heightField:{type:Number,default:230},widthField:{type:Number,default:350},heightFieldGrid:{type:String,default:"230px"},widthFieldGrid:{type:String,default:"350px"},backgroundSectorActive:{type:String,default:"#cbee6b"},backgroundSectorDisabled:{type:String,default:"#2e3b46"},borderWidth:{type:Number,default:1},opacitySector:{type:Number,default:.5},borderColor:{type:String,default:"#FFFFFF"},colorLineField:{type:String,default:"#bfc2c5"},borderWidthLineField:{type:Number,default:2},value:{type:Array,default:()=>[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]},title:{type:String,default:"Pase(s) desde la(s) zona(s):"},titleFontSize:{type:String,default:"14px"}},watch:{value:{deep:!0,immediate:!0,handler(e){const t=e.sort();JSON.stringify(t)!==JSON.stringify(this.lastUpdatedValue)&&(this.lastUpdatedValue=t,this.sectors.forEach((a,i)=>{a.active=e.includes(i+1),this.validateField(i)}),this.$emit("update:modelValue",e))}},sectors:{handler(e){var t=[];for(let a=0;a<e.length;a++)e[a].active&&t.push(a+1);this.$emit("update:modelValue",t)},deep:!0}},computed:{translx(){var e=0;return this.widthField>305?e=this.widthField-305:this.widthField==268&&(e=-36),e},transly(){var e=0;return this.heightField>195?(e=this.heightField-195,e=e/2):this.heightField==180&&(e=-7),e},translxcircle(){var e=0;return this.widthField>305?(e=this.widthField-305,e=e/2):this.widthField==268&&(e=-18),e}},methods:{clickAll(e){if(e){for(let t=0;t<this.sectors.length;t++)this.sectors[t].active=!0,this.validateField(t);this.status14=!0,this.status24=!0,this.status34=!0,this.status44=!0,this.refreshBtn14+=1,this.refreshBtn24+=1,this.refreshBtn34+=1,this.refreshBtn44+=1}else for(let t=0;t<this.sectors.length;t++)this.sectors[t].active=!1,this.validateField(t),this.status14=!1,this.status24=!1,this.status34=!1,this.status44=!1,this.refreshBtn14=0,this.refreshBtn24=0,this.refreshBtn34=0,this.refreshBtn44=0},selectSector(e){var t=0;this.sectors[e].active=!this.sectors[e].active;for(let a=0;a<this.sectors.length;a++)this.sectors[a].active&&(t+=1);t==0&&(this.sectors[e].active=!0),this.validateField(e)},btn14(e){this.sectors[0].active=e?this.sectors[0].active=!0:this.sectors[0].active=!1,this.sectors[1].active=e?this.sectors[1].active=!0:this.sectors[1].active=!1,this.sectors[2].active=e?this.sectors[2].active=!0:this.sectors[2].active=!1,this.sectors[3].active=e?this.sectors[3].active=!0:this.sectors[3].active=!1;var t=0;for(let a=0;a<this.sectors.length;a++)this.sectors[a].active&&(t+=1);t==0?(this.sectors[0].active=!0,this.sectors[1].active=!0,this.sectors[2].active=!0,this.sectors[3].active=!0,this.status14=!0,this.refreshBtn14+=1):this.status14=!1,t==16&&(this.all=!0,this.update+=1)},btn24(e){this.sectors[4].active=e?this.sectors[4].active=!0:this.sectors[4].active=!1,this.sectors[5].active=e?this.sectors[5].active=!0:this.sectors[5].active=!1,this.sectors[6].active=e?this.sectors[6].active=!0:this.sectors[6].active=!1,this.sectors[7].active=e?this.sectors[7].active=!0:this.sectors[7].active=!1;var t=0;for(let a=0;a<this.sectors.length;a++)this.sectors[a].active&&(t+=1);t==0?(this.sectors[4].active=!0,this.sectors[5].active=!0,this.sectors[6].active=!0,this.sectors[7].active=!0,this.status24=!0,this.refreshBtn24+=1):this.status24=!1,t==16&&(this.all=!0,this.update+=1)},btn34(e){this.sectors[8].active=e?this.sectors[8].active=!0:this.sectors[8].active=!1,this.sectors[9].active=e?this.sectors[9].active=!0:this.sectors[9].active=!1,this.sectors[10].active=e?this.sectors[10].active=!0:this.sectors[10].active=!1,this.sectors[11].active=e?this.sectors[11].active=!0:this.sectors[11].active=!1;var t=0;for(let a=0;a<this.sectors.length;a++)this.sectors[a].active&&(t+=1);t==0?(this.sectors[8].active=!0,this.sectors[9].active=!0,this.sectors[10].active=!0,this.sectors[11].active=!0,this.status34=!0,this.refreshBtn34+=1):this.status34=!1,t==16&&(this.all=!0,this.update+=1)},btn44(e){this.sectors[12].active=e?this.sectors[12].active=!0:this.sectors[12].active=!1,this.sectors[13].active=e?this.sectors[13].active=!0:this.sectors[13].active=!1,this.sectors[14].active=e?this.sectors[14].active=!0:this.sectors[14].active=!1,this.sectors[15].active=e?this.sectors[15].active=!0:this.sectors[15].active=!1;var t=0;for(let a=0;a<this.sectors.length;a++)this.sectors[a].active&&(t+=1);t==0?(this.sectors[12].active=!0,this.sectors[13].active=!0,this.sectors[14].active=!0,this.sectors[15].active=!0,this.status44=!0,this.refreshBtn44+=1):this.status44=!1,t==16&&(this.all=!0,this.update+=1)},validateField(e){(e===0||e===1||e===2||e===3)&&(this.status14=!!(this.sectors[0].active&&this.sectors[1].active&&this.sectors[2].active&&this.sectors[3].active)),(e===4||e===5||e===6||e===7)&&(this.status24=!!(this.sectors[4].active&&this.sectors[5].active&&this.sectors[6].active&&this.sectors[7].active)),(e===8||e===9||e===10||e===11)&&(this.status34=!!(this.sectors[8].active&&this.sectors[9].active&&this.sectors[10].active&&this.sectors[11].active)),(e===12||e===13||e===14||e===15)&&(this.status44=!!(this.sectors[12].active&&this.sectors[13].active&&this.sectors[14].active&&this.sectors[15].active)),this.all=!!(this.status14&&this.status34&&this.status24&&this.status44),this.update+=1,this.status14&&(this.refreshBtn14+=1),this.status24&&(this.refreshBtn24+=1),this.status34&&(this.refreshBtn34+=1),this.status44&&(this.refreshBtn44+=1)}}},hP=()=>{s.useCssVars(e=>({ff70d60a:e.widthContainer,daba190c:e.heightContainer,"6f469996":e.backgroundColor,"4ee5a3c8":e.titleFontSize,"37ac484c":e.widthFieldGrid,"12f58b4e":e.heightFieldGrid}))},pP=fv.setup;fv.setup=pP?(e,t)=>(hP(),pP(e,t)):hP;const S3e={class:"gsc-field"},w3e={class:"gsc-field__title-checked"},T3e={class:"gsc-field__title-checked__title"},C3e={class:"gsc-field__title-checked__check-cont"},k3e={class:"gsc-field__container-field"},E3e={class:"gsc-field__container-field__field"},I3e={width:"100%",height:"100%",fill:"#2e3b46",xmlns:"http://www.w3.org/2000/svg"},x3e=["stroke"],N3e=["stroke","stroke-width"],A3e=["stroke","stroke-width"],P3e=["stroke-width","stroke"],O3e=["fill","fill-opacity","stroke","stroke-width"],B3e=["fill","fill-opacity","stroke","stroke-width"],D3e=["fill","fill-opacity","stroke","stroke-width"],L3e=["fill","fill-opacity","stroke","stroke-width"],R3e=["fill","fill-opacity","stroke","stroke-width"],M3e=["fill","fill-opacity","stroke","stroke-width"],F3e=["fill","fill-opacity","stroke","stroke-width"],V3e=["fill","fill-opacity","stroke","stroke-width"],U3e=["fill","fill-opacity","stroke","stroke-width"],j3e=["fill","fill-opacity","stroke","stroke-width"],z3e=["fill","fill-opacity","stroke","stroke-width"],H3e=["fill","fill-opacity","stroke","stroke-width"],q3e=["fill","fill-opacity","stroke","stroke-width"],W3e=["fill","fill-opacity","stroke","stroke-width"],G3e=["fill","fill-opacity","stroke","stroke-width"],K3e=["fill","fill-opacity","stroke","stroke-width"],X3e={class:"gsc-field__container-field__bar-buttons"};function J3e(e,t,a,i,n,r){const o=s.resolveComponent("GSCCheckbox"),l=s.resolveComponent("GSCButton");return s.openBlock(),s.createElementBlock("div",S3e,[s.createElementVNode("div",w3e,[s.createElementVNode("div",T3e,s.toDisplayString(a.title),1),s.createElementVNode("div",C3e,[(s.openBlock(),s.createBlock(o,{label:"Todas las zonas","font-family":"Poppins-Regular","box-value-font-family":"Poppins-Regular","box-position":"right","label-font-size":a.titleFontSize,"label-white-space":"nowrap","box-margin-top":"0.4em",value:n.all,key:n.update,"model-value":n.all,"onUpdate:modelValue":r.clickAll},null,8,["label-font-size","value","model-value","onUpdate:modelValue"]))])]),s.createElementVNode("div",k3e,[s.createElementVNode("div",E3e,[(s.openBlock(),s.createElementBlock("svg",I3e,[s.createElementVNode("rect",{x:"1.5",y:"0.5",width:"100%",height:"100%",rx:"1.5",stroke:a.colorLineField},null,8,x3e),s.createElementVNode("path",{style:s.normalizeStyle("transform: translate("+r.translx+"px, "+r.transly+"px);"),d:"M303.597 39.9799H263.371C262.817 39.9799 262.369 40.4301 262.371 40.984L262.842 155.176C262.845 155.726 263.292 156.172 263.842 156.172H302.884",stroke:a.colorLineField,"stroke-width":a.borderWidthLineField,"stroke-linecap":"square"},null,12,N3e),s.createElementVNode("path",{style:s.normalizeStyle("transform: translateY("+r.transly+"px);"),class:"porteria1",d:"M1.09097 156.172L41.3162 156.172C41.8701 156.172 42.3185 155.722 42.3162 155.168L41.845 40.9758C41.8427 40.4252 41.3957 39.98 40.845 39.98L1.80338 39.98",stroke:a.colorLineField,"stroke-width":a.borderWidthLineField,"stroke-linecap":"square"},null,12,A3e),s.createElementVNode("path",{style:s.normalizeStyle("transform: translate("+r.translxcircle+"px, "+r.transly+"px);"),class:"circle",d:"M182.911 97.4512C182.911 113.726 169.44 126.936 152.801 126.936C136.162 126.936 122.691 113.726 122.691 97.4512C122.691 81.1767 136.162 67.9662 152.801 67.9662C169.44 67.9662 182.911 81.1767 182.911 97.4512Z","stroke-width":a.borderWidthLineField,stroke:a.colorLineField},null,12,P3e),s.createElementVNode("rect",{x:"0%",y:"0%",width:"25%",height:"25%",fill:n.sectors[0].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[0]||(t[0]=c=>r.selectSector(0))},null,8,O3e),s.createElementVNode("rect",{x:"0%",y:"25%",width:"25%",height:"25%",fill:n.sectors[1].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[1]||(t[1]=c=>r.selectSector(1))},null,8,B3e),s.createElementVNode("rect",{x:"0%",y:"50%",width:"25%",height:"25%",fill:n.sectors[2].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[2]||(t[2]=c=>r.selectSector(2))},null,8,D3e),s.createElementVNode("rect",{x:"0%",y:"75%",width:"25%",height:"25%",fill:n.sectors[3].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[3]||(t[3]=c=>r.selectSector(3))},null,8,L3e),s.createElementVNode("rect",{x:"25%",y:"0%",width:"25%",height:"25%",fill:n.sectors[4].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[4]||(t[4]=c=>r.selectSector(4))},null,8,R3e),s.createElementVNode("rect",{x:"25%",y:"25%",width:"25%",height:"25%",fill:n.sectors[5].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[5]||(t[5]=c=>r.selectSector(5))},null,8,M3e),s.createElementVNode("rect",{x:"25%",y:"50%",width:"25%",height:"25%",fill:n.sectors[6].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[6]||(t[6]=c=>r.selectSector(6))},null,8,F3e),s.createElementVNode("rect",{x:"25%",y:"75%",width:"25%",height:"25%",fill:n.sectors[7].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[7]||(t[7]=c=>r.selectSector(7))},null,8,V3e),s.createElementVNode("rect",{x:"50%",y:"0%",width:"25%",height:"25%",fill:n.sectors[8].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[8]||(t[8]=c=>r.selectSector(8))},null,8,U3e),s.createElementVNode("rect",{x:"50%",y:"25%",width:"25%",height:"25%",fill:n.sectors[9].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[9]||(t[9]=c=>r.selectSector(9))},null,8,j3e),s.createElementVNode("rect",{x:"50%",y:"50%",width:"25%",height:"25%",fill:n.sectors[10].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[10]||(t[10]=c=>r.selectSector(10))},null,8,z3e),s.createElementVNode("rect",{x:"50%",y:"75%",width:"25%",height:"25%",fill:n.sectors[11].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[11]||(t[11]=c=>r.selectSector(11))},null,8,H3e),s.createElementVNode("rect",{x:"75%",y:"0%",width:"25%",height:"25%",fill:n.sectors[12].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[12]||(t[12]=c=>r.selectSector(12))},null,8,q3e),s.createElementVNode("rect",{x:"75%",y:"25%",width:"25%",height:"25%",fill:n.sectors[13].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[13]||(t[13]=c=>r.selectSector(13))},null,8,W3e),s.createElementVNode("rect",{x:"75%",y:"50%",width:"25%",height:"25%",fill:n.sectors[14].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[14]||(t[14]=c=>r.selectSector(14))},null,8,G3e),s.createElementVNode("rect",{x:"75%",y:"75%",width:"25%",height:"25%",fill:n.sectors[15].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:t[15]||(t[15]=c=>r.selectSector(15))},null,8,K3e)]))]),s.createElementVNode("div",X3e,[(s.openBlock(),s.createBlock(l,{"text-value":"1/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn14",onStatus:r.btn14,key:n.refreshBtn14,value:e.status14},null,8,["onStatus","value"])),(s.openBlock(),s.createBlock(l,{"text-value":"2/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn24",onStatus:r.btn24,key:n.refreshBtn24,value:e.status24},null,8,["onStatus","value"])),(s.openBlock(),s.createBlock(l,{"text-value":"3/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn34",onStatus:r.btn34,key:n.refreshBtn34,value:e.status34},null,8,["onStatus","value"])),(s.openBlock(),s.createBlock(l,{"text-value":"4/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn44",onStatus:r.btn44,key:n.refreshBtn44,value:e.status44},null,8,["onStatus","value"]))])])])}const Y3e=v3e(fv,[["render",J3e],["__scopeId","data-v-f9923331"]]),Q3e={class:"filter-field"},Z3e=Object.freeze(Object.defineProperty({__proto__:null,default:bt({__name:"FilterField",setup(e){const t=s.ref(Array.from({length:16},(i,n)=>n+1));function a(i){}return(i,n)=>(s.openBlock(),s.createElementBlock("div",Q3e,[s.createVNode(s.unref(Y3e),{width:"100%","background-color":"#2E3B46",value:t.value,"onUpdate:modelValue":a},null,8,["value"])]))}},[["__scopeId","data-v-dc8a3bf4"]])},Symbol.toStringTag,{value:"Module"}));fs.GSCLanding=_4e,Object.defineProperty(fs,Symbol.toStringTag,{value:"Module"})});
|