@golstats/gsc-game-data 1.0.41 → 1.0.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/gsc-game-data.js +3 -4
- package/dist/gsc-game-data.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +3 -3
package/dist/gsc-game-data.js
CHANGED
|
@@ -10161,7 +10161,7 @@ const fT = {
|
|
|
10161
10161
|
},
|
|
10162
10162
|
async mounted() {
|
|
10163
10163
|
}
|
|
10164
|
-
}, Bv = (e) => (we("data-v-
|
|
10164
|
+
}, Bv = (e) => (we("data-v-a93399df"), e = e(), Ce(), e), _T = { class: "card" }, bT = { class: "card__header" }, vT = { class: "card__stats" }, wT = ["onClick"], CT = /* @__PURE__ */ Bv(() => /* @__PURE__ */ r("img", { src: Fv }, null, -1)), ST = [
|
|
10165
10165
|
CT
|
|
10166
10166
|
], kT = {
|
|
10167
10167
|
key: 1,
|
|
@@ -10181,7 +10181,6 @@ function jT(e, t, a, s, i, o) {
|
|
|
10181
10181
|
key: d,
|
|
10182
10182
|
class: "card__stats__stat"
|
|
10183
10183
|
}, [
|
|
10184
|
-
M(C(y.accomplishedCategoryIds) + " ", 1),
|
|
10185
10184
|
r("div", null, [
|
|
10186
10185
|
o.hVal(y) && o.hVal(y).numberValue != "0" ? (f(), _("div", {
|
|
10187
10186
|
key: 0,
|
|
@@ -10190,7 +10189,7 @@ function jT(e, t, a, s, i, o) {
|
|
|
10190
10189
|
}, ST, 8, wT)) : (f(), _("div", kT))
|
|
10191
10190
|
]),
|
|
10192
10191
|
r("div", null, [
|
|
10193
|
-
r("div", $T, C(y.name)
|
|
10192
|
+
r("div", $T, C(y.name), 1),
|
|
10194
10193
|
r("div", xT, [
|
|
10195
10194
|
o.hVal(y) ? (f(), _("span", AT, [
|
|
10196
10195
|
M(C(o.deleteDecimalZero(o.formatNumbers(o.hVal(y).numberValue))), 1),
|
|
@@ -10237,7 +10236,7 @@ function jT(e, t, a, s, i, o) {
|
|
|
10237
10236
|
])
|
|
10238
10237
|
]);
|
|
10239
10238
|
}
|
|
10240
|
-
const LT = /* @__PURE__ */ st(fT, [["render", jT], ["__scopeId", "data-v-
|
|
10239
|
+
const LT = /* @__PURE__ */ st(fT, [["render", jT], ["__scopeId", "data-v-a93399df"]]);
|
|
10241
10240
|
const DT = {
|
|
10242
10241
|
name: "GscComparative",
|
|
10243
10242
|
props: {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...o){const s=new this(a);return o.forEach(n=>s.set(n)),s}static accessor(a){const s=(this[n1]=this[n1]={accessors:{}}).accessors,n=this.prototype;function i(r){const c=Is(r);s[c]||(tV(n,r),s[c]=!0)}return j.isArray(a)?a.forEach(i):i(a),this}}Ri.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),j.reduceDescriptors(Ri.prototype,({value:e},a)=>{let o=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(s){this[o]=s}}}),j.freezeMethods(Ri);const Va=Ri;function Fd(e,a){const o=this||Od,s=a||o,n=Va.from(s.headers);let i=s.data;return j.forEach(e,function(c){i=c.call(o,i,n.normalize(),a?a.status:void 0)}),n.normalize(),i}function i1(e){return!!(e&&e.__CANCEL__)}function As(e,a,o){me.call(this,e??"canceled",me.ERR_CANCELED,a,o),this.name="CanceledError"}j.inherits(As,me,{__CANCEL__:!0});function aV(e,a,o){const s=o.config.validateStatus;!o.status||!s||s(o.status)?e(o):a(new me("Request failed with status code "+o.status,[me.ERR_BAD_REQUEST,me.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}const oV=ea.hasStandardBrowserEnv?{write(e,a,o,s,n,i){const r=[e+"="+encodeURIComponent(a)];j.isNumber(o)&&r.push("expires="+new Date(o).toGMTString()),j.isString(s)&&r.push("path="+s),j.isString(n)&&r.push("domain="+n),i===!0&&r.push("secure"),document.cookie=r.join("; ")},read(e){const a=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function sV(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function nV(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function r1(e,a){return e&&!sV(a)?nV(e,a):a}const iV=ea.hasStandardBrowserEnv?function(){const a=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");let s;function n(i){let r=i;return a&&(o.setAttribute("href",r),r=o.href),o.setAttribute("href",r),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:o.pathname.charAt(0)==="/"?o.pathname:"/"+o.pathname}}return s=n(window.location.href),function(r){const c=j.isString(r)?n(r):r;return c.protocol===s.protocol&&c.host===s.host}}():function(){return function(){return!0}}();function rV(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function lV(e,a){e=e||10;const o=new Array(e),s=new Array(e);let n=0,i=0,r;return a=a!==void 0?a:1e3,function(y){const d=Date.now(),l=s[i];r||(r=d),o[n]=y,s[n]=d;let m=i,h=0;for(;m!==n;)h+=o[m++],m=m%e;if(n=(n+1)%e,n===i&&(i=(i+1)%e),d-r<a)return;const g=l&&d-l;return g?Math.round(h*1e3/g):void 0}}function l1(e,a){let o=0;const s=lV(50,250);return n=>{const i=n.loaded,r=n.lengthComputable?n.total:void 0,c=i-o,y=s(c),d=i<=r;o=i;const l={loaded:i,total:r,progress:r?i/r:void 0,bytes:c,rate:y||void 0,estimated:y&&r&&d?(r-i)/y:void 0,event:n};l[a?"download":"upload"]=!0,e(l)}}const zd={http:Dx,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(o,s){let n=e.data;const i=Va.from(e.headers).normalize();let{responseType:r,withXSRFToken:c}=e,y;function d(){e.cancelToken&&e.cancelToken.unsubscribe(y),e.signal&&e.signal.removeEventListener("abort",y)}let l;if(j.isFormData(n)){if(ea.hasStandardBrowserEnv||ea.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((l=i.getContentType())!==!1){const[u,...f]=l?l.split(";").map(_=>_.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...f].join("; "))}}let m=new XMLHttpRequest;if(e.auth){const u=e.auth.username||"",f=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(u+":"+f))}const h=r1(e.baseURL,e.url);m.open(e.method.toUpperCase(),e1(h,e.params,e.paramsSerializer),!0),m.timeout=e.timeout;function g(){if(!m)return;const u=Va.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),_={data:!r||r==="text"||r==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:u,config:e,request:m};aV(function(C){o(C),d()},function(C){s(C),d()},_),m=null}if("onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(g)},m.onabort=function(){m&&(s(new me("Request aborted",me.ECONNABORTED,e,m)),m=null)},m.onerror=function(){s(new me("Network Error",me.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let f=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const _=e.transitional||a1;e.timeoutErrorMessage&&(f=e.timeoutErrorMessage),s(new me(f,_.clarifyTimeoutError?me.ETIMEDOUT:me.ECONNABORTED,e,m)),m=null},ea.hasStandardBrowserEnv&&(c&&j.isFunction(c)&&(c=c(e)),c||c!==!1&&iV(h))){const u=e.xsrfHeaderName&&e.xsrfCookieName&&oV.read(e.xsrfCookieName);u&&i.set(e.xsrfHeaderName,u)}n===void 0&&i.setContentType(null),"setRequestHeader"in m&&j.forEach(i.toJSON(),function(f,_){m.setRequestHeader(_,f)}),j.isUndefined(e.withCredentials)||(m.withCredentials=!!e.withCredentials),r&&r!=="json"&&(m.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&m.addEventListener("progress",l1(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&m.upload&&m.upload.addEventListener("progress",l1(e.onUploadProgress)),(e.cancelToken||e.signal)&&(y=u=>{m&&(s(!u||u.type?new As(null,e,m):u),m.abort(),m=null)},e.cancelToken&&e.cancelToken.subscribe(y),e.signal&&(e.signal.aborted?y():e.signal.addEventListener("abort",y)));const p=rV(h);if(p&&ea.protocols.indexOf(p)===-1){s(new me("Unsupported protocol "+p+":",me.ERR_BAD_REQUEST,e));return}m.send(n||null)})}};j.forEach(zd,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const c1=e=>`- ${e}`,cV=e=>j.isFunction(e)||e===null||e===!1,d1={getAdapter:e=>{e=j.isArray(e)?e:[e];const{length:a}=e;let o,s;const n={};for(let i=0;i<a;i++){o=e[i];let r;if(s=o,!cV(o)&&(s=zd[(r=String(o)).toLowerCase()],s===void 0))throw new me(`Unknown adapter '${r}'`);if(s)break;n[r||"#"+i]=s}if(!s){const i=Object.entries(n).map(([c,y])=>`adapter ${c} `+(y===!1?"is not supported by the environment":"is not available in the build"));let r=a?i.length>1?`since :
|
|
21
21
|
`+i.map(c1).join(`
|
|
22
22
|
`):" "+c1(i[0]):"as no adapter specified";throw new me("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return s},adapters:zd};function Rd(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new As(null,e)}function m1(e){return Rd(e),e.headers=Va.from(e.headers),e.data=Fd.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),d1.getAdapter(e.adapter||Od.adapter)(e).then(function(s){return Rd(e),s.data=Fd.call(e,e.transformResponse,s),s.headers=Va.from(s.headers),s},function(s){return i1(s)||(Rd(e),s&&s.response&&(s.response.data=Fd.call(e,e.transformResponse,s.response),s.response.headers=Va.from(s.response.headers))),Promise.reject(s)})}const p1=e=>e instanceof Va?e.toJSON():e;function xo(e,a){a=a||{};const o={};function s(d,l,m){return j.isPlainObject(d)&&j.isPlainObject(l)?j.merge.call({caseless:m},d,l):j.isPlainObject(l)?j.merge({},l):j.isArray(l)?l.slice():l}function n(d,l,m){if(j.isUndefined(l)){if(!j.isUndefined(d))return s(void 0,d,m)}else return s(d,l,m)}function i(d,l){if(!j.isUndefined(l))return s(void 0,l)}function r(d,l){if(j.isUndefined(l)){if(!j.isUndefined(d))return s(void 0,d)}else return s(void 0,l)}function c(d,l,m){if(m in a)return s(d,l);if(m in e)return s(void 0,d)}const y={url:i,method:i,data:i,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:c,headers:(d,l)=>n(p1(d),p1(l),!0)};return j.forEach(Object.keys(Object.assign({},e,a)),function(l){const m=y[l]||n,h=m(e[l],a[l],l);j.isUndefined(h)&&m!==c||(o[l]=h)}),o}const h1="1.6.7",Pd={};["object","boolean","number","function","string","symbol"].forEach((e,a)=>{Pd[e]=function(s){return typeof s===e||"a"+(a<1?"n ":" ")+e}});const y1={};Pd.transitional=function(a,o,s){function n(i,r){return"[Axios v"+h1+"] Transitional option '"+i+"'"+r+(s?". "+s:"")}return(i,r,c)=>{if(a===!1)throw new me(n(r," has been removed"+(o?" in "+o:"")),me.ERR_DEPRECATED);return o&&!y1[r]&&(y1[r]=!0,console.warn(n(r," has been deprecated since v"+o+" and will be removed in the near future"))),a?a(i,r,c):!0}};function dV(e,a,o){if(typeof e!="object")throw new me("options must be an object",me.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let n=s.length;for(;n-- >0;){const i=s[n],r=a[i];if(r){const c=e[i],y=c===void 0||r(c,i,e);if(y!==!0)throw new me("option "+i+" must be "+y,me.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new me("Unknown option "+i,me.ERR_BAD_OPTION)}}const Dd={assertOptions:dV,validators:Pd},Ga=Dd.validators;class Pi{constructor(a){this.defaults=a,this.interceptors={request:new t1,response:new t1}}async request(a,o){try{return await this._request(a,o)}catch(s){if(s instanceof Error){let n;Error.captureStackTrace?Error.captureStackTrace(n={}):n=new Error;const i=n.stack?n.stack.replace(/^.+\n/,""):"";s.stack?i&&!String(s.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(s.stack+=`
|
|
23
|
-
`+i):s.stack=i}throw s}}_request(a,o){typeof a=="string"?(o=o||{},o.url=a):o=a||{},o=xo(this.defaults,o);const{transitional:s,paramsSerializer:n,headers:i}=o;s!==void 0&&Dd.assertOptions(s,{silentJSONParsing:Ga.transitional(Ga.boolean),forcedJSONParsing:Ga.transitional(Ga.boolean),clarifyTimeoutError:Ga.transitional(Ga.boolean)},!1),n!=null&&(j.isFunction(n)?o.paramsSerializer={serialize:n}:Dd.assertOptions(n,{encode:Ga.function,serialize:Ga.function},!0)),o.method=(o.method||this.defaults.method||"get").toLowerCase();let r=i&&j.merge(i.common,i[o.method]);i&&j.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),o.headers=Va.concat(r,i);const c=[];let y=!0;this.interceptors.request.forEach(function(u){typeof u.runWhen=="function"&&u.runWhen(o)===!1||(y=y&&u.synchronous,c.unshift(u.fulfilled,u.rejected))});const d=[];this.interceptors.response.forEach(function(u){d.push(u.fulfilled,u.rejected)});let l,m=0,h;if(!y){const p=[m1.bind(this),void 0];for(p.unshift.apply(p,c),p.push.apply(p,d),h=p.length,l=Promise.resolve(o);m<h;)l=l.then(p[m++],p[m++]);return l}h=c.length;let g=o;for(m=0;m<h;){const p=c[m++],u=c[m++];try{g=p(g)}catch(f){u.call(this,f);break}}try{l=m1.call(this,g)}catch(p){return Promise.reject(p)}for(m=0,h=d.length;m<h;)l=l.then(d[m++],d[m++]);return l}getUri(a){a=xo(this.defaults,a);const o=r1(a.baseURL,a.url);return e1(o,a.params,a.paramsSerializer)}}j.forEach(["delete","get","head","options"],function(a){Pi.prototype[a]=function(o,s){return this.request(xo(s||{},{method:a,url:o,data:(s||{}).data}))}}),j.forEach(["post","put","patch"],function(a){function o(s){return function(i,r,c){return this.request(xo(c||{},{method:a,headers:s?{"Content-Type":"multipart/form-data"}:{},url:i,data:r}))}}Pi.prototype[a]=o(),Pi.prototype[a+"Form"]=o(!0)});const Di=Pi;class jd{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(i){o=i});const s=this;this.promise.then(n=>{if(!s._listeners)return;let i=s._listeners.length;for(;i-- >0;)s._listeners[i](n);s._listeners=null}),this.promise.then=n=>{let i;const r=new Promise(c=>{s.subscribe(c),i=c}).then(n);return r.cancel=function(){s.unsubscribe(i)},r},a(function(i,r,c){s.reason||(s.reason=new As(i,r,c),o(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const o=this._listeners.indexOf(a);o!==-1&&this._listeners.splice(o,1)}static source(){let a;return{token:new jd(function(n){a=n}),cancel:a}}}const mV=jd;function pV(e){return function(o){return e.apply(null,o)}}function hV(e){return j.isObject(e)&&e.isAxiosError===!0}const Ld={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(Ld).forEach(([e,a])=>{Ld[a]=e});const yV=Ld;function g1(e){const a=new Di(e),o=Du(Di.prototype.request,a);return j.extend(o,Di.prototype,a,{allOwnKeys:!0}),j.extend(o,a,null,{allOwnKeys:!0}),o.create=function(n){return g1(xo(e,n))},o}const Me=g1(Od);Me.Axios=Di,Me.CanceledError=As,Me.CancelToken=mV,Me.isCancel=i1,Me.VERSION=h1,Me.toFormData=Fi,Me.AxiosError=me,Me.Cancel=Me.CanceledError,Me.all=function(a){return Promise.all(a)},Me.spread=pV,Me.isAxiosError=hV,Me.mergeConfig=xo,Me.AxiosHeaders=Va,Me.formToJSON=e=>s1(j.isHTMLForm(e)?new FormData(e):e),Me.getAdapter=d1.getAdapter,Me.HttpStatusCode=yV,Me.default=Me;const ji=Me,u1="/icn-play.svg",sMe="",gV={components:{BarraLeft:ZB,BarraRight:sx},props:{data:{type:Object,required:!1},showPlayButton:{type:Boolean,value:!0}},data(){return{gamesBySeason:{}}},computed:{...kt("nextGeneral",["gameForAnalysis","seasonId"]),...Te("nextGeneral",["homeTeam","visitingTeam"])},methods:{onclickPlayVideos(e){var a=[];e.type==2?e.position_id==1?e.category==0?a=[55,324,323,608,39,774,802,52,53,40,54]:a=e.category:e.category==0?a=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:a=e.category:e.type==3?e.category==0?a=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:a=e.category:e.category!=0?a=e.category:a=[607,608,12,55,54,35,14,52,15,53,466,477];const o=[1,2,3];let s={seasonId:e.season_id,mainSectionType:1,playListType:e.type,categoryIds:a,gameIds:this.gameForAnalysis.game_status!==4?[this.gameForAnalysis.game_id]:null,playerIds:e.position_id!=1?e.player_id?[e.player_id]:[]:[],goalkeeperIds:e.position_id==1?e.player_id?[e.player_id]:[]:[],teamId:e.team_id?e.team_id:0,matchResult:e.matchResult?[e.matchResult]:o,playData:{},advancedFilter:{playListTitle:""}};e.category!==0&&(s.advancedFilter.mainCategoryId=e.category),this.$emit("openmedia",s)},hVal(e){return this.getTeamValue(e,this.gameForAnalysis,"homeTeam")},aVal(e){return this.getTeamValue(e,this.gameForAnalysis,"visitingTeam")},deleteDecimalZero(e){const a=typeof e=="string"?parseFloat(e):e;return typeof a=="number"&&!isNaN(a)?a%1===0?a:a%1===0?Math.floor(a):a:e},formatNumbers(e){return e%1!==0?e.toFixed(1):e},getTeamValue(e,a,o){if(!a.game_id)return this.objectZeroValues;const s=e.generalCategoriesIds.accomplished===3;if(a.is_live){const n=e.homeTeam.accomplished.totalLive+e.visitingTeam.accomplished.totalLive;return n?{numberValue:s?e[o].accomplished.totalLive/n*100:e[o].accomplished.totalLive,numberBarPercent:e[o].accomplished.totalLive/n}:this.objectZeroValues}else if(a.is_live||a.game_status===1){const n=e.homeTeam.accomplished.totalPostGame+e.visitingTeam.accomplished.totalPostGame;return n?{numberValue:s?e[o].accomplished.totalPostGame/n*100:e[o].accomplished.totalPostGame,numberBarPercent:e[o].accomplished.totalPostGame/n}:this.objectZeroValues}if(s){const n=e.homeTeam.accomplished.avgPostGame+e.visitingTeam.accomplished.avgPostGame,i=e[o].accomplished.avgPostGame/n;return e[o].accomplished.avgPostGame?{numberValue:i<1?i*100:i,numberBarPercent:e[o].accomplished.avgPostGame/n}:this.objectZeroValues}else{const n=e.homeTeam.accomplished.avgPostGame+e.visitingTeam.accomplished.avgPostGame;return e[o].accomplished.avgPostGame?{numberValue:e[o].accomplished.avgPostGame,numberBarPercent:e[o].accomplished.avgPostGame/n}:this.objectZeroValues}},async getGamesBySeasonV2(){try{const e={Authorization:this.token},o=`${this.apiUrl}${this.seasonId}/games/${this.gameId}`;return(await ji.get(o,{headers:e})).data}catch(e){return Promise.reject(e)}}},async mounted(){}},f1=e=>(t.pushScopeId("data-v-65254d6e"),e=e(),t.popScopeId(),e),uV={class:"card"},fV={class:"card__header"},_V={class:"card__stats"},bV=["onClick"],wV=[f1(()=>t.createElementVNode("img",{src:u1},null,-1))],CV={key:1,class:"card__stats__stat__button_empty"},kV={class:"card__stats__title"},SV={class:"card__stats__scores"},EV={key:0},NV={key:1},$V={key:2},BV={key:3},xV={class:"card__stats__bars"},VV=["onClick"],IV=[f1(()=>t.createElementVNode("img",{src:u1},null,-1))],AV={key:1,class:"card__stats__stat__button_empty"};function OV(e,a,o,s,n,i){const r=t.resolveComponent("BarraLeft"),c=t.resolveComponent("BarraRight");return t.openBlock(),t.createElementBlock("div",uV,[t.createElementVNode("span",fV,t.toDisplayString(o.data.name),1),t.createElementVNode("div",_V,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.data.subcategories,(y,d)=>(t.openBlock(),t.createElementBlock("div",{key:d,class:"card__stats__stat"},[t.createTextVNode(t.toDisplayString(y.accomplishedCategoryIds)+" ",1),t.createElementVNode("div",null,[i.hVal(y)&&i.hVal(y).numberValue!="0"?(t.openBlock(),t.createElementBlock("div",{key:0,onClick:l=>i.onclickPlayVideos({category:y.accomplishedCategoryIds,type:3,season_id:e.seasonId,team_id:e.homeTeam.team_id}),class:"card__stats__stat__button card__stats__stat__button_left"},wV,8,bV)):(t.openBlock(),t.createElementBlock("div",CV))]),t.createElementVNode("div",null,[t.createElementVNode("div",kV,t.toDisplayString(y.name)+t.toDisplayString(),1),t.createElementVNode("div",SV,[i.hVal(y)?(t.openBlock(),t.createElementBlock("span",EV,[t.createTextVNode(t.toDisplayString(i.deleteDecimalZero(i.formatNumbers(i.hVal(y).numberValue))),1),y.name=="Posesión"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("%")],64)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",NV,"0")),i.aVal(y)?(t.openBlock(),t.createElementBlock("span",$V,[t.createTextVNode(t.toDisplayString(i.deleteDecimalZero(i.formatNumbers(i.aVal(y).numberValue))),1),y.name=="Posesión"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("%")],64)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",BV,"0"))]),t.createElementVNode("div",xV,[t.createElementVNode("div",null,[i.hVal(y)?(t.openBlock(),t.createBlock(r,{key:0,postmatch:i.hVal(y).numberBarPercent},null,8,["postmatch"])):(t.openBlock(),t.createBlock(r,{key:1,postmatch:0}))]),t.createElementVNode("div",null,[i.aVal(y)?(t.openBlock(),t.createBlock(c,{key:0,postmatch:i.aVal(y).numberBarPercent},null,8,["postmatch"])):(t.openBlock(),t.createBlock(c,{key:1,postmatch:0}))])])]),t.createElementVNode("div",null,[i.aVal(y)&&i.aVal(y).numberValue!="0"?(t.openBlock(),t.createElementBlock("div",{key:0,onClick:l=>i.onclickPlayVideos({category:y.accomplishedCategoryIds,type:3,season_id:e.seasonId,team_id:e.visitingTeam.team_id}),class:"card__stats__stat__button card__stats__stat__button_right"},IV,8,VV)):(t.openBlock(),t.createElementBlock("div",AV))])]))),128))])])}const TV=Ae(gV,[["render",OV],["__scopeId","data-v-65254d6e"]]),rMe="",FV={name:"GscComparative",props:{local:{type:Object,default:()=>{}},away:{type:Object,default:()=>{}},fontFamily:{type:String,default:"inherit"}},data(){return{}},computed:{customStyle(){const e={};return this.fontFamily&&(e["font-family"]=`${this.fontFamily}`),e}},methods:{}},Ia=e=>(t.pushScopeId("data-v-c7dcae1a"),e=e(),t.popScopeId(),e),zV={class:"comparative-card"},RV=Ia(()=>t.createElementVNode("div",{class:"header-title"},[t.createElementVNode("span",null,"Comparativa")],-1)),PV={class:"versus"},DV={class:"team-badge"},jV=["src","alt"],LV=Ia(()=>t.createElementVNode("div",null,[t.createElementVNode("div",null,[t.createElementVNode("div"),t.createElementVNode("div")]),t.createElementVNode("div",null,[t.createElementVNode("div"),t.createElementVNode("div")])],-1)),vV=Ia(()=>t.createElementVNode("span",{class:"vs-text"},"VS",-1)),MV={class:"team-badge"},HV=["src","alt"],UV={class:"details"},GV={key:0},WV=Ia(()=>t.createElementVNode("td",null,"Posición en la tabla",-1)),qV=Ia(()=>t.createElementVNode("td",null,"Puntos",-1)),JV=Ia(()=>t.createElementVNode("td",null,"Partidos jugados",-1)),XV=Ia(()=>t.createElementVNode("td",null,"Partidos ganados",-1)),ZV=Ia(()=>t.createElementVNode("td",null,"Partidos perdidos",-1)),YV=Ia(()=>t.createElementVNode("td",null,"Partidos empatados",-1));function KV(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock("div",{class:"comparative-main",style:t.normalizeStyle(i.customStyle)},[t.createElementVNode("div",zV,[RV,t.createElementVNode("div",PV,[t.createElementVNode("div",DV,[o.local?(t.openBlock(),t.createElementBlock("img",{key:0,class:"team-badge__image",src:o.local.team_logo,alt:o.local.team_name},null,8,jV)):t.createCommentVNode("",!0),LV]),vV,t.createElementVNode("div",MV,[o.away?(t.openBlock(),t.createElementBlock("img",{key:0,class:"team-badge__image",src:o.away.team_logo,alt:o.away.team_name},null,8,HV)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",UV,[o.away&&o.local?(t.openBlock(),t.createElementBlock("table",GV,[t.createElementVNode("tbody",null,[t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(o.local.table_position),1),WV,t.createElementVNode("td",null,t.toDisplayString(o.away.table_position),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(o.local.points),1),qV,t.createElementVNode("td",null,t.toDisplayString(o.away.points),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(o.local.games_played),1),JV,t.createElementVNode("td",null,t.toDisplayString(o.away.games_played),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(o.local.games_won),1),XV,t.createElementVNode("td",null,t.toDisplayString(o.away.games_won),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(o.local.games_lost),1),ZV,t.createElementVNode("td",null,t.toDisplayString(o.away.games_lost),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(o.local.games_tied),1),YV,t.createElementVNode("td",null,t.toDisplayString(o.away.games_tied),1)])])])):t.createCommentVNode("",!0)])])],4)}const QV=Ae(FV,[["render",KV],["__scopeId","data-v-c7dcae1a"]]),lMe="",eI=(e,a)=>{const o=e.__vccOpts||e;for(const[s,n]of a)o[s]=n;return o},vd={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,a=this.$refs.content.scrollWidth;a>0&&e>0&&(a>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},_1=()=>{t.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},b1=vd.setup;vd.setup=b1?(e,a)=>(_1(),b1(e,a)):_1;const tI={ref:"gscScrollableContainer",class:"scrollable-container"},aI={class:"scrollable-arrows"},oI=["width","height","viewBox"],sI=["stroke"],nI={class:"scrollable-wrapper"},iI={class:"scrollable-arrows"},rI=["width","height","viewBox"],lI=["stroke"];function cI(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock("div",tI,[o.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",i.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...r)=>i.scrollLeft&&i.scrollLeft(...r))},[t.createElementVNode("div",aI,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:o.arrowsColor},null,8,sI)],8,oI))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:a[1]||(a[1]=(...r)=>i.getScroll&&i.getScroll(...r))},[t.createElementVNode("div",nI,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),o.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",i.hideShowRightArrow]),onClick:a[2]||(a[2]=(...r)=>i.scrollRight&&i.scrollRight(...r))},[t.createElementVNode("div",iI,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:o.arrowsColor},null,8,lI)],8,rI))])],2)):t.createCommentVNode("",!0)],512)}const Md=eI(vd,[["render",cI],["__scopeId","data-v-b548a08d"]]),cMe="";let w1=null;const dI={name:"App",components:{GscLinearTeamStats:TV,TableComparative:QV,GSCSlider:Md},props:{seasonSelected:{type:Object,default:()=>({})}},computed:{...kt("nextGeneral",["gameForAnalysis","seasonId"]),...Te("nextGeneral",["arrayFilledDataSortedByPriority"])},watch:{gameForAnalysis:{handler:function(){this.getTableList()},immediate:!0}},data(){return{gamesContainerWidth:0,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",url:"https://jfxv8fqkn3.execute-api.us-west-2.amazonaws.com/prod/generalTable/",gameId:79623,movil:!1,home:null,away:null}},methods:{openmedia(e){this.$emit("openmedia",e)},setUpResizeObserver(){if(window.ResizeObserver)w1=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<680?this.movil=!0:this.movil=!1}),w1.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async getTableList(){try{const a=await ji.create({headers:{Authorization:`${this.token}`}}).get(this.url+this.seasonSelected.id),o=a.data.data.findIndex(n=>n.team_id===this.gameForAnalysis.home_team),s=a.data.data.findIndex(n=>n.team_id===this.gameForAnalysis.visiting_team);this.home=a.data.data[o],this.away=a.data.data[s]}catch(e){console.error(e)}}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},mI={class:"container",ref:"gamesContainer"},pI={key:0,class:"grid-container"},hI={key:0,class:"item"},yI={class:"item"},gI={class:"item"},uI={class:"item"},fI={class:"item"},_I={class:"item"},bI={class:"item"},wI={class:"grid-container"},CI={key:0,class:"item-comparative"},kI={class:"table-movil-container"};function SI(e,a,o,s,n,i){const r=t.resolveComponent("TableComparative"),c=t.resolveComponent("GscLinearTeamStats"),y=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",mI,[n.movil?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",wI,[n.home&&n.away?(t.openBlock(),t.createElementBlock("div",CI,[t.createVNode(r,{local:n.home,away:n.away,fontFamily:"Poppins-Light"},null,8,["local","away"])])):t.createCommentVNode("",!0)]),t.createVNode(y,{backgroundColor:"none",pxScroll:300,scrollColor:"none",arrowsPosition:"relative",arrowsScrollHide:!1,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"none",arrowsContainerBgR:"none",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[t.createElementVNode("div",kI,[t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(n.gamesContainerWidth<510&&n.gamesContainerWidth>450?"width: 400px":n.gamesContainerWidth<=450?"width: 360px":"")},[t.createVNode(c,{onOpenmedia:i.openmedia,data:e.arrayFilledDataSortedByPriority[0]},null,8,["onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(n.gamesContainerWidth<510?"width: 400px":n.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(c,{onOpenmedia:i.openmedia,data:e.arrayFilledDataSortedByPriority[1]},null,8,["onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(n.gamesContainerWidth<510?"width: 400px":n.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(c,{onOpenmedia:i.openmedia,data:e.arrayFilledDataSortedByPriority[2]},null,8,["onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(n.gamesContainerWidth<510?"width: 400px":n.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(c,{onOpenmedia:i.openmedia,data:e.arrayFilledDataSortedByPriority[3]},null,8,["onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(n.gamesContainerWidth<510?"width: 400px":n.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(c,{onOpenmedia:i.openmedia,data:e.arrayFilledDataSortedByPriority[4]},null,8,["onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(n.gamesContainerWidth<510?"width: 400px":n.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(c,{onOpenmedia:i.openmedia,data:e.arrayFilledDataSortedByPriority[5]},null,8,["onOpenmedia","data"])],4)])]),_:1})],64)):(t.openBlock(),t.createElementBlock("div",pI,[n.home&&n.away?(t.openBlock(),t.createElementBlock("div",hI,[t.createVNode(r,{local:n.home,away:n.away,fontFamily:"Poppins-Light"},null,8,["local","away"])])):t.createCommentVNode("",!0),t.createElementVNode("div",yI,[t.createVNode(c,{data:e.arrayFilledDataSortedByPriority[0],onOpenmedia:i.openmedia},null,8,["data","onOpenmedia"])]),t.createElementVNode("div",gI,[t.createVNode(c,{data:e.arrayFilledDataSortedByPriority[1],onOpenmedia:i.openmedia},null,8,["data","onOpenmedia"])]),t.createElementVNode("div",uI,[t.createVNode(c,{data:e.arrayFilledDataSortedByPriority[2],onOpenmedia:i.openmedia},null,8,["data","onOpenmedia"])]),t.createElementVNode("div",fI,[t.createVNode(c,{data:e.arrayFilledDataSortedByPriority[3],onOpenmedia:i.openmedia},null,8,["data","onOpenmedia"])]),t.createElementVNode("div",_I,[t.createVNode(c,{data:e.arrayFilledDataSortedByPriority[4],onOpenmedia:i.openmedia},null,8,["data","onOpenmedia"])]),t.createElementVNode("div",bI,[t.createVNode(c,{data:e.arrayFilledDataSortedByPriority[5],onOpenmedia:i.openmedia},null,8,["data","onOpenmedia"])])]))],512)}const EI=Ae(dI,[["render",SI]]),dMe="",mMe="",C1=["#cbee6b","#0033C5"],NI={name:"distributionchart",components:{},props:{seasonSelected:{type:Object,default:()=>({})}},data(){return{arrayChartTypes:["General","Ofensivo","Defensivo","Posesión","Balón parado","Infracciones"],height:409,updateCategory:0,homeTeamSelectedPlaysType:0,visitingTeamSelectedPlaysType:0,chartKeyCounter:0,homeTeamPlaysTypes:{history:0,live:1},visitingTeamPlaysTypes:{history:0,live:1},tooltip:{show:!1,data:{},names:{},keyName:"",leagueAvg:"",showLiveData:!1,local:!1,x:0,y:0},globals:{x:0,y:0},arrayDataForCharts:[],arrayChartOptions:[],arrayFilledSeries:[]}},watch:{menuOptionActive(){this.idAssetSelected==3},idAssetSelected(){this.idAssetSelected===3&&this.chartKeyCounter++},isMobile(e){this.chartOptions.legend.horizontalAlign=e?"center":"left",this.chartKeyCounter++},arrayFilledDataSortedByPriority:{immediate:!0,deep:!0,handler(){this.fillData(),this.updateCategory++}},showLiveData(){this.fillData()}},computed:{...kt("nextGeneral",["showLiveData","gameForAnalysis"]),...Te("nextGeneral",["idAssetSelected","menuOptionActive","homeTeamStatisticsType","showPostMatchData","visitingTeamStatisticsType","homeTeam","visitingTeam","subcategoryName","accomplished","arrayFilledDataSortedByPriority","filledDataStructure","showPostMatchData"]),isMobile(){return this.$mq==="mobile"},timeLeft(){const e=new Date().getTime(),o=new Date(this.gameForAnalysis.date_time_utc).getTime()-e,s=Math.floor(o/(1e3*60*60*24)),n=Math.floor(o%(1e3*60*60*24)/(1e3*60*60)),i=Math.floor(o%(1e3*60*60)/(1e3*60)),r=Math.floor(o%(1e3*60)/1e3);let c="";return r>0&&(c=r==1?r+" segundo":r+" segundos"),i>0&&(c=i==1?i+" minuto":i+" minutos"),n>0&&(c=n==1?n+" hora":n+" horas"),s>0&&(c=s==1?s+" día":s+" días"),c}},methods:{avg(e,a){return a?e.leagueAccomplishedAvg:e.leagueReceivedAvg},fillData(){this.arrayChartOptions=[],this.arrayFilledDataSortedByPriority&&this.arrayFilledDataSortedByPriority.length&&typeof this.arrayFilledDataSortedByPriority[0].subcategories=="object"?(this.arrayChartOptions=[],this.arrayFilledSeries=[],this.arrayDataForCharts=this.arrayFilledDataSortedByPriority.map(e=>{const a=this.getChartOptions();return this.arrayFilledSeries.push(this.getChartSeries(e.subcategories,a)),this.arrayChartOptions.push(a),e})):this.arrayDataForCharts=[]},getChartOptions(){return{plotOptions:{radar:{size:132,polygons:{strokeColors:"#606971"}}},chart:{type:"radar",height:509,toolbar:{show:!1}},colors:C1,fill:{colors:C1,opacity:.4},legend:{show:!0,position:"bottom",horizontalAlign:"left",fontSize:"11px",fontFamily:"Poppins-Regular",labels:{colors:"#d9d9d9",useSeriesColors:!1}},xaxis:{categories:[],labels:{show:!0,style:{fontSize:"11px",fontFamily:"Poppins-Regular"}}},yaxis:{show:!1},responsive:[{breakpoint:770,options:{chart:{height:300},plotOptions:{radar:{size:100,offsetY:10,polygons:{strokeColors:"#606971"}},bar:{horizontal:!1}},legend:{position:"top",horizontalAlign:"center"},xaxis:{labels:{show:!0,style:{fontSize:"11px"}}}}},{breakpoint:450,options:{plotOptions:{radar:{size:70,offsetY:-20,polygons:{strokeColors:"#dcdcdc"}},bar:{horizontal:!1}},legend:{position:"top",horizontalAlign:"center"},xaxis:{labels:{show:!0,style:{fontSize:"10px"}}}}}],tooltip:{intersect:!0,followCursor:!0,shared:!1,theme:"dark",style:{fontSize:"12px"},custom:function({series:e,seriesIndex:a,dataPointIndex:o,w:s}){const n=s.config.arraySubcategories[o].name,i=s.config.series[a].name,r=s.config.series[a].dataTotal[o],c=e[a][o];return s.config.arraySubcategories[o].id==="3-0"?`
|
|
23
|
+
`+i):s.stack=i}throw s}}_request(a,o){typeof a=="string"?(o=o||{},o.url=a):o=a||{},o=xo(this.defaults,o);const{transitional:s,paramsSerializer:n,headers:i}=o;s!==void 0&&Dd.assertOptions(s,{silentJSONParsing:Ga.transitional(Ga.boolean),forcedJSONParsing:Ga.transitional(Ga.boolean),clarifyTimeoutError:Ga.transitional(Ga.boolean)},!1),n!=null&&(j.isFunction(n)?o.paramsSerializer={serialize:n}:Dd.assertOptions(n,{encode:Ga.function,serialize:Ga.function},!0)),o.method=(o.method||this.defaults.method||"get").toLowerCase();let r=i&&j.merge(i.common,i[o.method]);i&&j.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),o.headers=Va.concat(r,i);const c=[];let y=!0;this.interceptors.request.forEach(function(u){typeof u.runWhen=="function"&&u.runWhen(o)===!1||(y=y&&u.synchronous,c.unshift(u.fulfilled,u.rejected))});const d=[];this.interceptors.response.forEach(function(u){d.push(u.fulfilled,u.rejected)});let l,m=0,h;if(!y){const p=[m1.bind(this),void 0];for(p.unshift.apply(p,c),p.push.apply(p,d),h=p.length,l=Promise.resolve(o);m<h;)l=l.then(p[m++],p[m++]);return l}h=c.length;let g=o;for(m=0;m<h;){const p=c[m++],u=c[m++];try{g=p(g)}catch(f){u.call(this,f);break}}try{l=m1.call(this,g)}catch(p){return Promise.reject(p)}for(m=0,h=d.length;m<h;)l=l.then(d[m++],d[m++]);return l}getUri(a){a=xo(this.defaults,a);const o=r1(a.baseURL,a.url);return e1(o,a.params,a.paramsSerializer)}}j.forEach(["delete","get","head","options"],function(a){Pi.prototype[a]=function(o,s){return this.request(xo(s||{},{method:a,url:o,data:(s||{}).data}))}}),j.forEach(["post","put","patch"],function(a){function o(s){return function(i,r,c){return this.request(xo(c||{},{method:a,headers:s?{"Content-Type":"multipart/form-data"}:{},url:i,data:r}))}}Pi.prototype[a]=o(),Pi.prototype[a+"Form"]=o(!0)});const Di=Pi;class jd{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(i){o=i});const s=this;this.promise.then(n=>{if(!s._listeners)return;let i=s._listeners.length;for(;i-- >0;)s._listeners[i](n);s._listeners=null}),this.promise.then=n=>{let i;const r=new Promise(c=>{s.subscribe(c),i=c}).then(n);return r.cancel=function(){s.unsubscribe(i)},r},a(function(i,r,c){s.reason||(s.reason=new As(i,r,c),o(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const o=this._listeners.indexOf(a);o!==-1&&this._listeners.splice(o,1)}static source(){let a;return{token:new jd(function(n){a=n}),cancel:a}}}const mV=jd;function pV(e){return function(o){return e.apply(null,o)}}function hV(e){return j.isObject(e)&&e.isAxiosError===!0}const Ld={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(Ld).forEach(([e,a])=>{Ld[a]=e});const yV=Ld;function g1(e){const a=new Di(e),o=Du(Di.prototype.request,a);return j.extend(o,Di.prototype,a,{allOwnKeys:!0}),j.extend(o,a,null,{allOwnKeys:!0}),o.create=function(n){return g1(xo(e,n))},o}const Me=g1(Od);Me.Axios=Di,Me.CanceledError=As,Me.CancelToken=mV,Me.isCancel=i1,Me.VERSION=h1,Me.toFormData=Fi,Me.AxiosError=me,Me.Cancel=Me.CanceledError,Me.all=function(a){return Promise.all(a)},Me.spread=pV,Me.isAxiosError=hV,Me.mergeConfig=xo,Me.AxiosHeaders=Va,Me.formToJSON=e=>s1(j.isHTMLForm(e)?new FormData(e):e),Me.getAdapter=d1.getAdapter,Me.HttpStatusCode=yV,Me.default=Me;const ji=Me,u1="/icn-play.svg",sMe="",gV={components:{BarraLeft:ZB,BarraRight:sx},props:{data:{type:Object,required:!1},showPlayButton:{type:Boolean,value:!0}},data(){return{gamesBySeason:{}}},computed:{...kt("nextGeneral",["gameForAnalysis","seasonId"]),...Te("nextGeneral",["homeTeam","visitingTeam"])},methods:{onclickPlayVideos(e){var a=[];e.type==2?e.position_id==1?e.category==0?a=[55,324,323,608,39,774,802,52,53,40,54]:a=e.category:e.category==0?a=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:a=e.category:e.type==3?e.category==0?a=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:a=e.category:e.category!=0?a=e.category:a=[607,608,12,55,54,35,14,52,15,53,466,477];const o=[1,2,3];let s={seasonId:e.season_id,mainSectionType:1,playListType:e.type,categoryIds:a,gameIds:this.gameForAnalysis.game_status!==4?[this.gameForAnalysis.game_id]:null,playerIds:e.position_id!=1?e.player_id?[e.player_id]:[]:[],goalkeeperIds:e.position_id==1?e.player_id?[e.player_id]:[]:[],teamId:e.team_id?e.team_id:0,matchResult:e.matchResult?[e.matchResult]:o,playData:{},advancedFilter:{playListTitle:""}};e.category!==0&&(s.advancedFilter.mainCategoryId=e.category),this.$emit("openmedia",s)},hVal(e){return this.getTeamValue(e,this.gameForAnalysis,"homeTeam")},aVal(e){return this.getTeamValue(e,this.gameForAnalysis,"visitingTeam")},deleteDecimalZero(e){const a=typeof e=="string"?parseFloat(e):e;return typeof a=="number"&&!isNaN(a)?a%1===0?a:a%1===0?Math.floor(a):a:e},formatNumbers(e){return e%1!==0?e.toFixed(1):e},getTeamValue(e,a,o){if(!a.game_id)return this.objectZeroValues;const s=e.generalCategoriesIds.accomplished===3;if(a.is_live){const n=e.homeTeam.accomplished.totalLive+e.visitingTeam.accomplished.totalLive;return n?{numberValue:s?e[o].accomplished.totalLive/n*100:e[o].accomplished.totalLive,numberBarPercent:e[o].accomplished.totalLive/n}:this.objectZeroValues}else if(a.is_live||a.game_status===1){const n=e.homeTeam.accomplished.totalPostGame+e.visitingTeam.accomplished.totalPostGame;return n?{numberValue:s?e[o].accomplished.totalPostGame/n*100:e[o].accomplished.totalPostGame,numberBarPercent:e[o].accomplished.totalPostGame/n}:this.objectZeroValues}if(s){const n=e.homeTeam.accomplished.avgPostGame+e.visitingTeam.accomplished.avgPostGame,i=e[o].accomplished.avgPostGame/n;return e[o].accomplished.avgPostGame?{numberValue:i<1?i*100:i,numberBarPercent:e[o].accomplished.avgPostGame/n}:this.objectZeroValues}else{const n=e.homeTeam.accomplished.avgPostGame+e.visitingTeam.accomplished.avgPostGame;return e[o].accomplished.avgPostGame?{numberValue:e[o].accomplished.avgPostGame,numberBarPercent:e[o].accomplished.avgPostGame/n}:this.objectZeroValues}},async getGamesBySeasonV2(){try{const e={Authorization:this.token},o=`${this.apiUrl}${this.seasonId}/games/${this.gameId}`;return(await ji.get(o,{headers:e})).data}catch(e){return Promise.reject(e)}}},async mounted(){}},f1=e=>(t.pushScopeId("data-v-a93399df"),e=e(),t.popScopeId(),e),uV={class:"card"},fV={class:"card__header"},_V={class:"card__stats"},bV=["onClick"],wV=[f1(()=>t.createElementVNode("img",{src:u1},null,-1))],CV={key:1,class:"card__stats__stat__button_empty"},kV={class:"card__stats__title"},SV={class:"card__stats__scores"},EV={key:0},NV={key:1},$V={key:2},BV={key:3},xV={class:"card__stats__bars"},VV=["onClick"],IV=[f1(()=>t.createElementVNode("img",{src:u1},null,-1))],AV={key:1,class:"card__stats__stat__button_empty"};function OV(e,a,o,s,n,i){const r=t.resolveComponent("BarraLeft"),c=t.resolveComponent("BarraRight");return t.openBlock(),t.createElementBlock("div",uV,[t.createElementVNode("span",fV,t.toDisplayString(o.data.name),1),t.createElementVNode("div",_V,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.data.subcategories,(y,d)=>(t.openBlock(),t.createElementBlock("div",{key:d,class:"card__stats__stat"},[t.createElementVNode("div",null,[i.hVal(y)&&i.hVal(y).numberValue!="0"?(t.openBlock(),t.createElementBlock("div",{key:0,onClick:l=>i.onclickPlayVideos({category:y.accomplishedCategoryIds,type:3,season_id:e.seasonId,team_id:e.homeTeam.team_id}),class:"card__stats__stat__button card__stats__stat__button_left"},wV,8,bV)):(t.openBlock(),t.createElementBlock("div",CV))]),t.createElementVNode("div",null,[t.createElementVNode("div",kV,t.toDisplayString(y.name),1),t.createElementVNode("div",SV,[i.hVal(y)?(t.openBlock(),t.createElementBlock("span",EV,[t.createTextVNode(t.toDisplayString(i.deleteDecimalZero(i.formatNumbers(i.hVal(y).numberValue))),1),y.name=="Posesión"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("%")],64)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",NV,"0")),i.aVal(y)?(t.openBlock(),t.createElementBlock("span",$V,[t.createTextVNode(t.toDisplayString(i.deleteDecimalZero(i.formatNumbers(i.aVal(y).numberValue))),1),y.name=="Posesión"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("%")],64)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",BV,"0"))]),t.createElementVNode("div",xV,[t.createElementVNode("div",null,[i.hVal(y)?(t.openBlock(),t.createBlock(r,{key:0,postmatch:i.hVal(y).numberBarPercent},null,8,["postmatch"])):(t.openBlock(),t.createBlock(r,{key:1,postmatch:0}))]),t.createElementVNode("div",null,[i.aVal(y)?(t.openBlock(),t.createBlock(c,{key:0,postmatch:i.aVal(y).numberBarPercent},null,8,["postmatch"])):(t.openBlock(),t.createBlock(c,{key:1,postmatch:0}))])])]),t.createElementVNode("div",null,[i.aVal(y)&&i.aVal(y).numberValue!="0"?(t.openBlock(),t.createElementBlock("div",{key:0,onClick:l=>i.onclickPlayVideos({category:y.accomplishedCategoryIds,type:3,season_id:e.seasonId,team_id:e.visitingTeam.team_id}),class:"card__stats__stat__button card__stats__stat__button_right"},IV,8,VV)):(t.openBlock(),t.createElementBlock("div",AV))])]))),128))])])}const TV=Ae(gV,[["render",OV],["__scopeId","data-v-a93399df"]]),rMe="",FV={name:"GscComparative",props:{local:{type:Object,default:()=>{}},away:{type:Object,default:()=>{}},fontFamily:{type:String,default:"inherit"}},data(){return{}},computed:{customStyle(){const e={};return this.fontFamily&&(e["font-family"]=`${this.fontFamily}`),e}},methods:{}},Ia=e=>(t.pushScopeId("data-v-c7dcae1a"),e=e(),t.popScopeId(),e),zV={class:"comparative-card"},RV=Ia(()=>t.createElementVNode("div",{class:"header-title"},[t.createElementVNode("span",null,"Comparativa")],-1)),PV={class:"versus"},DV={class:"team-badge"},jV=["src","alt"],LV=Ia(()=>t.createElementVNode("div",null,[t.createElementVNode("div",null,[t.createElementVNode("div"),t.createElementVNode("div")]),t.createElementVNode("div",null,[t.createElementVNode("div"),t.createElementVNode("div")])],-1)),vV=Ia(()=>t.createElementVNode("span",{class:"vs-text"},"VS",-1)),MV={class:"team-badge"},HV=["src","alt"],UV={class:"details"},GV={key:0},WV=Ia(()=>t.createElementVNode("td",null,"Posición en la tabla",-1)),qV=Ia(()=>t.createElementVNode("td",null,"Puntos",-1)),JV=Ia(()=>t.createElementVNode("td",null,"Partidos jugados",-1)),XV=Ia(()=>t.createElementVNode("td",null,"Partidos ganados",-1)),ZV=Ia(()=>t.createElementVNode("td",null,"Partidos perdidos",-1)),YV=Ia(()=>t.createElementVNode("td",null,"Partidos empatados",-1));function KV(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock("div",{class:"comparative-main",style:t.normalizeStyle(i.customStyle)},[t.createElementVNode("div",zV,[RV,t.createElementVNode("div",PV,[t.createElementVNode("div",DV,[o.local?(t.openBlock(),t.createElementBlock("img",{key:0,class:"team-badge__image",src:o.local.team_logo,alt:o.local.team_name},null,8,jV)):t.createCommentVNode("",!0),LV]),vV,t.createElementVNode("div",MV,[o.away?(t.openBlock(),t.createElementBlock("img",{key:0,class:"team-badge__image",src:o.away.team_logo,alt:o.away.team_name},null,8,HV)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",UV,[o.away&&o.local?(t.openBlock(),t.createElementBlock("table",GV,[t.createElementVNode("tbody",null,[t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(o.local.table_position),1),WV,t.createElementVNode("td",null,t.toDisplayString(o.away.table_position),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(o.local.points),1),qV,t.createElementVNode("td",null,t.toDisplayString(o.away.points),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(o.local.games_played),1),JV,t.createElementVNode("td",null,t.toDisplayString(o.away.games_played),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(o.local.games_won),1),XV,t.createElementVNode("td",null,t.toDisplayString(o.away.games_won),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(o.local.games_lost),1),ZV,t.createElementVNode("td",null,t.toDisplayString(o.away.games_lost),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(o.local.games_tied),1),YV,t.createElementVNode("td",null,t.toDisplayString(o.away.games_tied),1)])])])):t.createCommentVNode("",!0)])])],4)}const QV=Ae(FV,[["render",KV],["__scopeId","data-v-c7dcae1a"]]),lMe="",eI=(e,a)=>{const o=e.__vccOpts||e;for(const[s,n]of a)o[s]=n;return o},vd={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,a=this.$refs.content.scrollWidth;a>0&&e>0&&(a>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},_1=()=>{t.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},b1=vd.setup;vd.setup=b1?(e,a)=>(_1(),b1(e,a)):_1;const tI={ref:"gscScrollableContainer",class:"scrollable-container"},aI={class:"scrollable-arrows"},oI=["width","height","viewBox"],sI=["stroke"],nI={class:"scrollable-wrapper"},iI={class:"scrollable-arrows"},rI=["width","height","viewBox"],lI=["stroke"];function cI(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock("div",tI,[o.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",i.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...r)=>i.scrollLeft&&i.scrollLeft(...r))},[t.createElementVNode("div",aI,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:o.arrowsColor},null,8,sI)],8,oI))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:a[1]||(a[1]=(...r)=>i.getScroll&&i.getScroll(...r))},[t.createElementVNode("div",nI,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),o.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",i.hideShowRightArrow]),onClick:a[2]||(a[2]=(...r)=>i.scrollRight&&i.scrollRight(...r))},[t.createElementVNode("div",iI,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:o.arrowsColor},null,8,lI)],8,rI))])],2)):t.createCommentVNode("",!0)],512)}const Md=eI(vd,[["render",cI],["__scopeId","data-v-b548a08d"]]),cMe="";let w1=null;const dI={name:"App",components:{GscLinearTeamStats:TV,TableComparative:QV,GSCSlider:Md},props:{seasonSelected:{type:Object,default:()=>({})}},computed:{...kt("nextGeneral",["gameForAnalysis","seasonId"]),...Te("nextGeneral",["arrayFilledDataSortedByPriority"])},watch:{gameForAnalysis:{handler:function(){this.getTableList()},immediate:!0}},data(){return{gamesContainerWidth:0,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",url:"https://jfxv8fqkn3.execute-api.us-west-2.amazonaws.com/prod/generalTable/",gameId:79623,movil:!1,home:null,away:null}},methods:{openmedia(e){this.$emit("openmedia",e)},setUpResizeObserver(){if(window.ResizeObserver)w1=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<680?this.movil=!0:this.movil=!1}),w1.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async getTableList(){try{const a=await ji.create({headers:{Authorization:`${this.token}`}}).get(this.url+this.seasonSelected.id),o=a.data.data.findIndex(n=>n.team_id===this.gameForAnalysis.home_team),s=a.data.data.findIndex(n=>n.team_id===this.gameForAnalysis.visiting_team);this.home=a.data.data[o],this.away=a.data.data[s]}catch(e){console.error(e)}}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},mI={class:"container",ref:"gamesContainer"},pI={key:0,class:"grid-container"},hI={key:0,class:"item"},yI={class:"item"},gI={class:"item"},uI={class:"item"},fI={class:"item"},_I={class:"item"},bI={class:"item"},wI={class:"grid-container"},CI={key:0,class:"item-comparative"},kI={class:"table-movil-container"};function SI(e,a,o,s,n,i){const r=t.resolveComponent("TableComparative"),c=t.resolveComponent("GscLinearTeamStats"),y=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",mI,[n.movil?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",wI,[n.home&&n.away?(t.openBlock(),t.createElementBlock("div",CI,[t.createVNode(r,{local:n.home,away:n.away,fontFamily:"Poppins-Light"},null,8,["local","away"])])):t.createCommentVNode("",!0)]),t.createVNode(y,{backgroundColor:"none",pxScroll:300,scrollColor:"none",arrowsPosition:"relative",arrowsScrollHide:!1,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"none",arrowsContainerBgR:"none",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[t.createElementVNode("div",kI,[t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(n.gamesContainerWidth<510&&n.gamesContainerWidth>450?"width: 400px":n.gamesContainerWidth<=450?"width: 360px":"")},[t.createVNode(c,{onOpenmedia:i.openmedia,data:e.arrayFilledDataSortedByPriority[0]},null,8,["onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(n.gamesContainerWidth<510?"width: 400px":n.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(c,{onOpenmedia:i.openmedia,data:e.arrayFilledDataSortedByPriority[1]},null,8,["onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(n.gamesContainerWidth<510?"width: 400px":n.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(c,{onOpenmedia:i.openmedia,data:e.arrayFilledDataSortedByPriority[2]},null,8,["onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(n.gamesContainerWidth<510?"width: 400px":n.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(c,{onOpenmedia:i.openmedia,data:e.arrayFilledDataSortedByPriority[3]},null,8,["onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(n.gamesContainerWidth<510?"width: 400px":n.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(c,{onOpenmedia:i.openmedia,data:e.arrayFilledDataSortedByPriority[4]},null,8,["onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(n.gamesContainerWidth<510?"width: 400px":n.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(c,{onOpenmedia:i.openmedia,data:e.arrayFilledDataSortedByPriority[5]},null,8,["onOpenmedia","data"])],4)])]),_:1})],64)):(t.openBlock(),t.createElementBlock("div",pI,[n.home&&n.away?(t.openBlock(),t.createElementBlock("div",hI,[t.createVNode(r,{local:n.home,away:n.away,fontFamily:"Poppins-Light"},null,8,["local","away"])])):t.createCommentVNode("",!0),t.createElementVNode("div",yI,[t.createVNode(c,{data:e.arrayFilledDataSortedByPriority[0],onOpenmedia:i.openmedia},null,8,["data","onOpenmedia"])]),t.createElementVNode("div",gI,[t.createVNode(c,{data:e.arrayFilledDataSortedByPriority[1],onOpenmedia:i.openmedia},null,8,["data","onOpenmedia"])]),t.createElementVNode("div",uI,[t.createVNode(c,{data:e.arrayFilledDataSortedByPriority[2],onOpenmedia:i.openmedia},null,8,["data","onOpenmedia"])]),t.createElementVNode("div",fI,[t.createVNode(c,{data:e.arrayFilledDataSortedByPriority[3],onOpenmedia:i.openmedia},null,8,["data","onOpenmedia"])]),t.createElementVNode("div",_I,[t.createVNode(c,{data:e.arrayFilledDataSortedByPriority[4],onOpenmedia:i.openmedia},null,8,["data","onOpenmedia"])]),t.createElementVNode("div",bI,[t.createVNode(c,{data:e.arrayFilledDataSortedByPriority[5],onOpenmedia:i.openmedia},null,8,["data","onOpenmedia"])])]))],512)}const EI=Ae(dI,[["render",SI]]),dMe="",mMe="",C1=["#cbee6b","#0033C5"],NI={name:"distributionchart",components:{},props:{seasonSelected:{type:Object,default:()=>({})}},data(){return{arrayChartTypes:["General","Ofensivo","Defensivo","Posesión","Balón parado","Infracciones"],height:409,updateCategory:0,homeTeamSelectedPlaysType:0,visitingTeamSelectedPlaysType:0,chartKeyCounter:0,homeTeamPlaysTypes:{history:0,live:1},visitingTeamPlaysTypes:{history:0,live:1},tooltip:{show:!1,data:{},names:{},keyName:"",leagueAvg:"",showLiveData:!1,local:!1,x:0,y:0},globals:{x:0,y:0},arrayDataForCharts:[],arrayChartOptions:[],arrayFilledSeries:[]}},watch:{menuOptionActive(){this.idAssetSelected==3},idAssetSelected(){this.idAssetSelected===3&&this.chartKeyCounter++},isMobile(e){this.chartOptions.legend.horizontalAlign=e?"center":"left",this.chartKeyCounter++},arrayFilledDataSortedByPriority:{immediate:!0,deep:!0,handler(){this.fillData(),this.updateCategory++}},showLiveData(){this.fillData()}},computed:{...kt("nextGeneral",["showLiveData","gameForAnalysis"]),...Te("nextGeneral",["idAssetSelected","menuOptionActive","homeTeamStatisticsType","showPostMatchData","visitingTeamStatisticsType","homeTeam","visitingTeam","subcategoryName","accomplished","arrayFilledDataSortedByPriority","filledDataStructure","showPostMatchData"]),isMobile(){return this.$mq==="mobile"},timeLeft(){const e=new Date().getTime(),o=new Date(this.gameForAnalysis.date_time_utc).getTime()-e,s=Math.floor(o/(1e3*60*60*24)),n=Math.floor(o%(1e3*60*60*24)/(1e3*60*60)),i=Math.floor(o%(1e3*60*60)/(1e3*60)),r=Math.floor(o%(1e3*60)/1e3);let c="";return r>0&&(c=r==1?r+" segundo":r+" segundos"),i>0&&(c=i==1?i+" minuto":i+" minutos"),n>0&&(c=n==1?n+" hora":n+" horas"),s>0&&(c=s==1?s+" día":s+" días"),c}},methods:{avg(e,a){return a?e.leagueAccomplishedAvg:e.leagueReceivedAvg},fillData(){this.arrayChartOptions=[],this.arrayFilledDataSortedByPriority&&this.arrayFilledDataSortedByPriority.length&&typeof this.arrayFilledDataSortedByPriority[0].subcategories=="object"?(this.arrayChartOptions=[],this.arrayFilledSeries=[],this.arrayDataForCharts=this.arrayFilledDataSortedByPriority.map(e=>{const a=this.getChartOptions();return this.arrayFilledSeries.push(this.getChartSeries(e.subcategories,a)),this.arrayChartOptions.push(a),e})):this.arrayDataForCharts=[]},getChartOptions(){return{plotOptions:{radar:{size:132,polygons:{strokeColors:"#606971"}}},chart:{type:"radar",height:509,toolbar:{show:!1}},colors:C1,fill:{colors:C1,opacity:.4},legend:{show:!0,position:"bottom",horizontalAlign:"left",fontSize:"11px",fontFamily:"Poppins-Regular",labels:{colors:"#d9d9d9",useSeriesColors:!1}},xaxis:{categories:[],labels:{show:!0,style:{fontSize:"11px",fontFamily:"Poppins-Regular"}}},yaxis:{show:!1},responsive:[{breakpoint:770,options:{chart:{height:300},plotOptions:{radar:{size:100,offsetY:10,polygons:{strokeColors:"#606971"}},bar:{horizontal:!1}},legend:{position:"top",horizontalAlign:"center"},xaxis:{labels:{show:!0,style:{fontSize:"11px"}}}}},{breakpoint:450,options:{plotOptions:{radar:{size:70,offsetY:-20,polygons:{strokeColors:"#dcdcdc"}},bar:{horizontal:!1}},legend:{position:"top",horizontalAlign:"center"},xaxis:{labels:{show:!0,style:{fontSize:"10px"}}}}}],tooltip:{intersect:!0,followCursor:!0,shared:!1,theme:"dark",style:{fontSize:"12px"},custom:function({series:e,seriesIndex:a,dataPointIndex:o,w:s}){const n=s.config.arraySubcategories[o].name,i=s.config.series[a].name,r=s.config.series[a].dataTotal[o],c=e[a][o];return s.config.arraySubcategories[o].id==="3-0"?`
|
|
24
24
|
<div class="custom-tooltip-apexchart" style="display: none !important;">
|
|
25
25
|
<div class="__title">${n}:</div>
|
|
26
26
|
<div class="__totals">${i}: ${c}%</div>
|