@golstats/gsc-game-info 1.1.2 → 1.1.3
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-info-game.js +83 -83
- package/dist/gsc-info-game.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/gsc-info-game.js
CHANGED
|
@@ -25,7 +25,7 @@ const jn = lt("string"), X = lt("function"), Ua = lt("number"), ct = (e) => e !=
|
|
|
25
25
|
let a;
|
|
26
26
|
return e && (typeof FormData == "function" && e instanceof FormData || X(e.append) && ((a = rt(e)) === "formdata" || // detect form-data instance
|
|
27
27
|
a === "object" && X(e.toString) && e.toString() === "[object FormData]"));
|
|
28
|
-
}, Hn = ne("URLSearchParams"), [$n,
|
|
28
|
+
}, Hn = ne("URLSearchParams"), [Wn, $n, Zn, Kn] = ["ReadableStream", "Request", "Response", "Headers"].map(ne), Xn = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
29
29
|
function Le(e, a, { allOwnKeys: t = !1 } = {}) {
|
|
30
30
|
if (e === null || typeof e > "u")
|
|
31
31
|
return;
|
|
@@ -188,8 +188,8 @@ const gs = (e) => {
|
|
|
188
188
|
isBoolean: Un,
|
|
189
189
|
isObject: ct,
|
|
190
190
|
isPlainObject: Ke,
|
|
191
|
-
isReadableStream:
|
|
192
|
-
isRequest:
|
|
191
|
+
isReadableStream: Wn,
|
|
192
|
+
isRequest: $n,
|
|
193
193
|
isResponse: Zn,
|
|
194
194
|
isHeaders: Kn,
|
|
195
195
|
isUndefined: Fe,
|
|
@@ -291,12 +291,12 @@ const vs = null;
|
|
|
291
291
|
function Ot(e) {
|
|
292
292
|
return p.isPlainObject(e) || p.isArray(e);
|
|
293
293
|
}
|
|
294
|
-
function
|
|
294
|
+
function Wa(e) {
|
|
295
295
|
return p.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
296
296
|
}
|
|
297
297
|
function ia(e, a, t) {
|
|
298
298
|
return e ? e.concat(a).map(function(s, i) {
|
|
299
|
-
return s =
|
|
299
|
+
return s = Wa(s), !t && i ? "[" + s + "]" : s;
|
|
300
300
|
}).join(t ? "." : "") : a;
|
|
301
301
|
}
|
|
302
302
|
function Cs(e) {
|
|
@@ -333,7 +333,7 @@ function dt(e, a, t) {
|
|
|
333
333
|
if (p.endsWith(v, "{}"))
|
|
334
334
|
v = n ? v : v.slice(0, -2), w = JSON.stringify(w);
|
|
335
335
|
else if (p.isArray(w) && Cs(w) || (p.isFileList(w) || p.endsWith(v, "[]")) && (P = p.toArray(w)))
|
|
336
|
-
return v =
|
|
336
|
+
return v = Wa(v), P.forEach(function(R, L) {
|
|
337
337
|
!(p.isUndefined(R) || R === null) && a.append(
|
|
338
338
|
// eslint-disable-next-line no-nested-ternary
|
|
339
339
|
o === !0 ? ia([v], L, i) : o === null ? v : v + "[]",
|
|
@@ -384,11 +384,11 @@ function oa(e) {
|
|
|
384
384
|
function qt(e, a) {
|
|
385
385
|
this._pairs = [], e && dt(e, this, a);
|
|
386
386
|
}
|
|
387
|
-
const
|
|
388
|
-
|
|
387
|
+
const $a = qt.prototype;
|
|
388
|
+
$a.append = function(a, t) {
|
|
389
389
|
this._pairs.push([a, t]);
|
|
390
390
|
};
|
|
391
|
-
|
|
391
|
+
$a.toString = function(a) {
|
|
392
392
|
const t = a ? function(n) {
|
|
393
393
|
return a.call(this, n, oa);
|
|
394
394
|
} : oa;
|
|
@@ -887,7 +887,7 @@ const nt = (e, a, t = 3) => {
|
|
|
887
887
|
}, da = (e) => (...a) => p.asap(() => e(...a)), Hs = H.hasStandardBrowserEnv ? ((e, a) => (t) => (t = new URL(t, H.origin), e.protocol === t.protocol && e.host === t.host && (a || e.port === t.port)))(
|
|
888
888
|
new URL(H.origin),
|
|
889
889
|
H.navigator && /(msie|trident)/i.test(H.navigator.userAgent)
|
|
890
|
-
) : () => !0,
|
|
890
|
+
) : () => !0, Ws = H.hasStandardBrowserEnv ? (
|
|
891
891
|
// Standard browser envs support document.cookie
|
|
892
892
|
{
|
|
893
893
|
write(e, a, t, n, s, i) {
|
|
@@ -914,14 +914,14 @@ const nt = (e, a, t = 3) => {
|
|
|
914
914
|
}
|
|
915
915
|
}
|
|
916
916
|
);
|
|
917
|
-
function
|
|
917
|
+
function $s(e) {
|
|
918
918
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
919
919
|
}
|
|
920
920
|
function Zs(e, a) {
|
|
921
921
|
return a ? e.replace(/\/?\/$/, "") + "/" + a.replace(/^\/+/, "") : e;
|
|
922
922
|
}
|
|
923
923
|
function en(e, a) {
|
|
924
|
-
return e &&
|
|
924
|
+
return e && !$s(a) ? Zs(e, a) : a;
|
|
925
925
|
}
|
|
926
926
|
const ua = (e) => e instanceof ae ? { ...e } : e;
|
|
927
927
|
function we(e, a) {
|
|
@@ -1007,7 +1007,7 @@ const tn = (e) => {
|
|
|
1007
1007
|
}
|
|
1008
1008
|
}
|
|
1009
1009
|
if (H.hasStandardBrowserEnv && (n && p.isFunction(n) && (n = n(a)), n || n !== !1 && Hs(a.url))) {
|
|
1010
|
-
const d = s && i &&
|
|
1010
|
+
const d = s && i && Ws.read(i);
|
|
1011
1011
|
d && o.set(s, d);
|
|
1012
1012
|
}
|
|
1013
1013
|
return a;
|
|
@@ -2199,11 +2199,11 @@ const _e = J, yi = "_content_1e8cp_32", fi = "_title_1e8cp_39", gi = "_title473_
|
|
|
2199
2199
|
fill: "#CBEE6B"
|
|
2200
2200
|
}, null, -1), Hi = [
|
|
2201
2201
|
Gi
|
|
2202
|
-
],
|
|
2202
|
+
], Wi = /* @__PURE__ */ r("path", {
|
|
2203
2203
|
d: "M0.45404 9.34811C0.39103 9.3064 0.338365 9.24407 0.301721 9.16785C0.265077 9.09163 0.245844 9.00441 0.246096 8.9156V1.0831C0.246183 0.994582 0.265541 0.907752 0.302114 0.831836C0.338686 0.75592 0.391105 0.693755 0.453799 0.651949C0.516493 0.610143 0.587118 0.590259 0.658167 0.594411C0.729216 0.598563 0.798034 0.626596 0.857304 0.675528L5.57838 4.59224C5.6323 4.63686 5.67652 4.69738 5.70711 4.7684C5.7377 4.83943 5.75371 4.91876 5.75371 4.99935C5.75371 5.07993 5.7377 5.15926 5.70711 5.23029C5.67652 5.30131 5.6323 5.36183 5.57838 5.40645L0.857304 9.32409C0.798124 9.37313 0.72936 9.40126 0.658342 9.40549C0.587324 9.40973 0.516714 9.38989 0.45404 9.34811Z",
|
|
2204
2204
|
fill: "#CBEE6B"
|
|
2205
|
-
}, null, -1),
|
|
2206
|
-
|
|
2205
|
+
}, null, -1), $i = [
|
|
2206
|
+
Wi
|
|
2207
2207
|
], Zi = /* @__PURE__ */ r("path", {
|
|
2208
2208
|
d: "M0.45404 9.34811C0.39103 9.3064 0.338365 9.24407 0.301721 9.16785C0.265077 9.09163 0.245844 9.00441 0.246096 8.9156V1.0831C0.246183 0.994582 0.265541 0.907752 0.302114 0.831836C0.338686 0.75592 0.391105 0.693755 0.453799 0.651949C0.516493 0.610143 0.587118 0.590259 0.658167 0.594411C0.729216 0.598563 0.798034 0.626596 0.857304 0.675528L5.57838 4.59224C5.6323 4.63686 5.67652 4.69738 5.70711 4.7684C5.7377 4.83943 5.75371 4.91876 5.75371 4.99935C5.75371 5.07993 5.7377 5.15926 5.70711 5.23029C5.67652 5.30131 5.6323 5.36183 5.57838 5.40645L0.857304 9.32409C0.798124 9.37313 0.72936 9.40126 0.658342 9.40549C0.587324 9.40973 0.516714 9.38989 0.45404 9.34811Z",
|
|
2209
2209
|
fill: "#CBEE6B"
|
|
@@ -2435,7 +2435,7 @@ function yo(e, a, t, n, s, i) {
|
|
|
2435
2435
|
viewBox: "0 0 6 10",
|
|
2436
2436
|
fill: "none",
|
|
2437
2437
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2438
|
-
},
|
|
2438
|
+
}, $i, 2))
|
|
2439
2439
|
], 2)), [
|
|
2440
2440
|
[M, t.canPlayVideos]
|
|
2441
2441
|
]) : S("", !0),
|
|
@@ -2916,7 +2916,7 @@ function pe(e) {
|
|
|
2916
2916
|
])
|
|
2917
2917
|
};
|
|
2918
2918
|
}
|
|
2919
|
-
const po = "_content_x3ht0_54", bo = "_j_x3ht0_62", wo = "_jornada_x3ht0_69", vo = "_live_x3ht0_82", Co = "_liveButon_x3ht0_88", _o = "_dateContainer_x3ht0_102", Do = "_dateContainer473_x3ht0_117", So = "_title_x3ht0_132", Ao = "_title473_x3ht0_145", To = "_chivasIcon_x3ht0_159", Eo = "_escudos_x3ht0_173", ko = "_escudosWrapper_x3ht0_181", Io = "_homeTeamInner_x3ht0_192", Po = "_homeTeam_x3ht0_192", Oo = "_btnPlayIcon_x3ht0_211", No = "_div1_x3ht0_217", Ro = "_score_x3ht0_222", Bo = "_btnPlay_x3ht0_211", Fo = "_containerTeams_x3ht0_242", Mo = "_containerTeams473_x3ht0_252", Lo = "_jornadaParent_x3ht0_265", jo = "_jornadaParent473_x3ht0_275", Uo = "_headCard_x3ht0_279", xo = "_headCard473_x3ht0_290", qo = "_content1_x3ht0_303", Jo = "_span_x3ht0_310", Vo = "_partidos_x3ht0_314", zo = "_content2_x3ht0_318", Go = "_totalContainer_x3ht0_324", Ho = "_rowTable_x3ht0_334",
|
|
2919
|
+
const po = "_content_x3ht0_54", bo = "_j_x3ht0_62", wo = "_jornada_x3ht0_69", vo = "_live_x3ht0_82", Co = "_liveButon_x3ht0_88", _o = "_dateContainer_x3ht0_102", Do = "_dateContainer473_x3ht0_117", So = "_title_x3ht0_132", Ao = "_title473_x3ht0_145", To = "_chivasIcon_x3ht0_159", Eo = "_escudos_x3ht0_173", ko = "_escudosWrapper_x3ht0_181", Io = "_homeTeamInner_x3ht0_192", Po = "_homeTeam_x3ht0_192", Oo = "_btnPlayIcon_x3ht0_211", No = "_div1_x3ht0_217", Ro = "_score_x3ht0_222", Bo = "_btnPlay_x3ht0_211", Fo = "_containerTeams_x3ht0_242", Mo = "_containerTeams473_x3ht0_252", Lo = "_jornadaParent_x3ht0_265", jo = "_jornadaParent473_x3ht0_275", Uo = "_headCard_x3ht0_279", xo = "_headCard473_x3ht0_290", qo = "_content1_x3ht0_303", Jo = "_span_x3ht0_310", Vo = "_partidos_x3ht0_314", zo = "_content2_x3ht0_318", Go = "_totalContainer_x3ht0_324", Ho = "_rowTable_x3ht0_334", Wo = "_icnPlayIcon_x3ht0_346", $o = "_content4_x3ht0_362", Zo = "_totalContainer1_x3ht0_372", Ko = "_rowTable1_x3ht0_383", Xo = "_rowTable3_x3ht0_395", Qo = "_rowTable3473_x3ht0_408", Yo = "_rowsContainer_x3ht0_421", er = "_rowTable4_x3ht0_430", tr = "_rowTable5_x3ht0_442", ar = "_content16_x3ht0_454", nr = "_rowTable7_x3ht0_461", sr = "_rowTable7473_x3ht0_474", ir = "_containerData_x3ht0_487", or = "_tableContainer_x3ht0_498", rr = "_lastGameCard_x3ht0_506", lr = "_lastGameCard473_x3ht0_522", cr = {
|
|
2920
2920
|
content: po,
|
|
2921
2921
|
j: bo,
|
|
2922
2922
|
jornada: wo,
|
|
@@ -2947,8 +2947,8 @@ const po = "_content_x3ht0_54", bo = "_j_x3ht0_62", wo = "_jornada_x3ht0_69", vo
|
|
|
2947
2947
|
content2: zo,
|
|
2948
2948
|
totalContainer: Go,
|
|
2949
2949
|
rowTable: Ho,
|
|
2950
|
-
icnPlayIcon:
|
|
2951
|
-
content4:
|
|
2950
|
+
icnPlayIcon: Wo,
|
|
2951
|
+
content4: $o,
|
|
2952
2952
|
totalContainer1: Zo,
|
|
2953
2953
|
rowTable1: Ko,
|
|
2954
2954
|
rowTable3: Xo,
|
|
@@ -4247,8 +4247,8 @@ Ht.setup = ba ? (e, a) => (pa(), ba(e, a)) : pa;
|
|
|
4247
4247
|
const xr = {
|
|
4248
4248
|
ref: "gscScrollableContainer",
|
|
4249
4249
|
class: "scrollable-container"
|
|
4250
|
-
}, qr = { class: "scrollable-arrows" }, Jr = ["width", "height", "viewBox"], Vr = ["stroke"], zr = { class: "scrollable-wrapper" }, Gr = { class: "scrollable-arrows" }, Hr = ["width", "height", "viewBox"],
|
|
4251
|
-
function
|
|
4250
|
+
}, qr = { class: "scrollable-arrows" }, Jr = ["width", "height", "viewBox"], Vr = ["stroke"], zr = { class: "scrollable-wrapper" }, Gr = { class: "scrollable-arrows" }, Hr = ["width", "height", "viewBox"], Wr = ["stroke"];
|
|
4251
|
+
function $r(e, a, t, n, s, i) {
|
|
4252
4252
|
return h(), m("div", xr, [
|
|
4253
4253
|
t.arrows ? (h(), m("div", {
|
|
4254
4254
|
key: 0,
|
|
@@ -4296,13 +4296,13 @@ function Wr(e, a, t, n, s, i) {
|
|
|
4296
4296
|
r("path", {
|
|
4297
4297
|
d: "M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",
|
|
4298
4298
|
stroke: t.arrowsColor
|
|
4299
|
-
}, null, 8,
|
|
4299
|
+
}, null, 8, Wr)
|
|
4300
4300
|
], 8, Hr))
|
|
4301
4301
|
])
|
|
4302
4302
|
], 2)) : S("", !0)
|
|
4303
4303
|
], 512);
|
|
4304
4304
|
}
|
|
4305
|
-
const Zr = /* @__PURE__ */ Ur(Ht, [["render",
|
|
4305
|
+
const Zr = /* @__PURE__ */ Ur(Ht, [["render", $r], ["__scopeId", "data-v-b548a08d"]]);
|
|
4306
4306
|
const Kr = /* @__PURE__ */ Me({
|
|
4307
4307
|
__name: "GSC-ModalDownloadDuplicate",
|
|
4308
4308
|
props: {
|
|
@@ -4383,22 +4383,22 @@ function ln(e, a) {
|
|
|
4383
4383
|
return e.apply(a, arguments);
|
|
4384
4384
|
};
|
|
4385
4385
|
}
|
|
4386
|
-
const { toString: Yr } = Object.prototype, { getPrototypeOf:
|
|
4386
|
+
const { toString: Yr } = Object.prototype, { getPrototypeOf: Wt } = Object, { iterator: yt, toStringTag: cn } = Symbol, ft = /* @__PURE__ */ ((e) => (a) => {
|
|
4387
4387
|
const t = Yr.call(a);
|
|
4388
4388
|
return e[t] || (e[t] = t.slice(8, -1).toLowerCase());
|
|
4389
4389
|
})(/* @__PURE__ */ Object.create(null)), se = (e) => (e = e.toLowerCase(), (a) => ft(a) === e), gt = (e) => (a) => typeof a === e, { isArray: Pe } = Array, Ae = gt("undefined");
|
|
4390
4390
|
function Ue(e) {
|
|
4391
|
-
return e !== null && !Ae(e) && e.constructor !== null && !Ae(e.constructor) &&
|
|
4391
|
+
return e !== null && !Ae(e) && e.constructor !== null && !Ae(e.constructor) && $(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
4392
4392
|
}
|
|
4393
4393
|
const dn = se("ArrayBuffer");
|
|
4394
4394
|
function el(e) {
|
|
4395
4395
|
let a;
|
|
4396
4396
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? a = ArrayBuffer.isView(e) : a = e && e.buffer && dn(e.buffer), a;
|
|
4397
4397
|
}
|
|
4398
|
-
const tl = gt("string"),
|
|
4398
|
+
const tl = gt("string"), $ = gt("function"), un = gt("number"), xe = (e) => e !== null && typeof e == "object", al = (e) => e === !0 || e === !1, et = (e) => {
|
|
4399
4399
|
if (ft(e) !== "object")
|
|
4400
4400
|
return !1;
|
|
4401
|
-
const a =
|
|
4401
|
+
const a = Wt(e);
|
|
4402
4402
|
return (a === null || a === Object.prototype || Object.getPrototypeOf(a) === null) && !(cn in e) && !(yt in e);
|
|
4403
4403
|
}, nl = (e) => {
|
|
4404
4404
|
if (!xe(e) || Ue(e))
|
|
@@ -4408,14 +4408,14 @@ const tl = gt("string"), W = gt("function"), un = gt("number"), xe = (e) => e !=
|
|
|
4408
4408
|
} catch {
|
|
4409
4409
|
return !1;
|
|
4410
4410
|
}
|
|
4411
|
-
}, sl = se("Date"), il = se("File"), ol = (e) => !!(e && typeof e.uri < "u"), rl = (e) => e && typeof e.getParts < "u", ll = se("Blob"), cl = se("FileList"), dl = (e) => xe(e) &&
|
|
4411
|
+
}, sl = se("Date"), il = se("File"), ol = (e) => !!(e && typeof e.uri < "u"), rl = (e) => e && typeof e.getParts < "u", ll = se("Blob"), cl = se("FileList"), dl = (e) => xe(e) && $(e.pipe);
|
|
4412
4412
|
function ul() {
|
|
4413
4413
|
return typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {};
|
|
4414
4414
|
}
|
|
4415
4415
|
const wa = ul(), va = typeof wa.FormData < "u" ? wa.FormData : void 0, hl = (e) => {
|
|
4416
4416
|
let a;
|
|
4417
|
-
return e && (va && e instanceof va ||
|
|
4418
|
-
a === "object" &&
|
|
4417
|
+
return e && (va && e instanceof va || $(e.append) && ((a = ft(e)) === "formdata" || // detect form-data instance
|
|
4418
|
+
a === "object" && $(e.toString) && e.toString() === "[object FormData]"));
|
|
4419
4419
|
}, ml = se("URLSearchParams"), [yl, fl, gl, pl] = [
|
|
4420
4420
|
"ReadableStream",
|
|
4421
4421
|
"Request",
|
|
@@ -4464,7 +4464,7 @@ function Mt() {
|
|
|
4464
4464
|
const wl = (e, a, t, { allOwnKeys: n } = {}) => (qe(
|
|
4465
4465
|
a,
|
|
4466
4466
|
(s, i) => {
|
|
4467
|
-
t &&
|
|
4467
|
+
t && $(s) ? Object.defineProperty(e, i, {
|
|
4468
4468
|
value: ln(s, t),
|
|
4469
4469
|
writable: !0,
|
|
4470
4470
|
enumerable: !0,
|
|
@@ -4494,7 +4494,7 @@ const wl = (e, a, t, { allOwnKeys: n } = {}) => (qe(
|
|
|
4494
4494
|
do {
|
|
4495
4495
|
for (s = Object.getOwnPropertyNames(e), i = s.length; i-- > 0; )
|
|
4496
4496
|
o = s[i], (!n || n(o, e, a)) && !c[o] && (a[o] = e[o], c[o] = !0);
|
|
4497
|
-
e = t !== !1 &&
|
|
4497
|
+
e = t !== !1 && Wt(e);
|
|
4498
4498
|
} while (e && (!t || t(e, a)) && e !== Object.prototype);
|
|
4499
4499
|
return a;
|
|
4500
4500
|
}, Dl = (e, a, t) => {
|
|
@@ -4513,7 +4513,7 @@ const wl = (e, a, t, { allOwnKeys: n } = {}) => (qe(
|
|
|
4513
4513
|
for (; a-- > 0; )
|
|
4514
4514
|
t[a] = e[a];
|
|
4515
4515
|
return t;
|
|
4516
|
-
}, Al = /* @__PURE__ */ ((e) => (a) => e && a instanceof e)(typeof Uint8Array < "u" &&
|
|
4516
|
+
}, Al = /* @__PURE__ */ ((e) => (a) => e && a instanceof e)(typeof Uint8Array < "u" && Wt(Uint8Array)), Tl = (e, a) => {
|
|
4517
4517
|
const t = (e && e[yt]).call(e);
|
|
4518
4518
|
let n;
|
|
4519
4519
|
for (; (n = t.next()) && !n.done; ) {
|
|
@@ -4536,10 +4536,10 @@ const wl = (e, a, t, { allOwnKeys: n } = {}) => (qe(
|
|
|
4536
4536
|
}), Object.defineProperties(e, n);
|
|
4537
4537
|
}, Ol = (e) => {
|
|
4538
4538
|
yn(e, (a, t) => {
|
|
4539
|
-
if (
|
|
4539
|
+
if ($(e) && ["arguments", "caller", "callee"].indexOf(t) !== -1)
|
|
4540
4540
|
return !1;
|
|
4541
4541
|
const n = e[t];
|
|
4542
|
-
if (
|
|
4542
|
+
if ($(n)) {
|
|
4543
4543
|
if (a.enumerable = !1, "writable" in a) {
|
|
4544
4544
|
a.writable = !1;
|
|
4545
4545
|
return;
|
|
@@ -4559,7 +4559,7 @@ const wl = (e, a, t, { allOwnKeys: n } = {}) => (qe(
|
|
|
4559
4559
|
}, Rl = () => {
|
|
4560
4560
|
}, Bl = (e, a) => e != null && Number.isFinite(e = +e) ? e : a;
|
|
4561
4561
|
function Fl(e) {
|
|
4562
|
-
return !!(e &&
|
|
4562
|
+
return !!(e && $(e.append) && e[cn] === "FormData" && e[yt]);
|
|
4563
4563
|
}
|
|
4564
4564
|
const Ml = (e) => {
|
|
4565
4565
|
const a = new Array(10), t = (n, s) => {
|
|
@@ -4580,7 +4580,7 @@ const Ml = (e) => {
|
|
|
4580
4580
|
return n;
|
|
4581
4581
|
};
|
|
4582
4582
|
return t(e, 0);
|
|
4583
|
-
}, Ll = se("AsyncFunction"), jl = (e) => e && (xe(e) ||
|
|
4583
|
+
}, Ll = se("AsyncFunction"), jl = (e) => e && (xe(e) || $(e)) && $(e.then) && $(e.catch), fn = ((e, a) => e ? setImmediate : a ? ((t, n) => (ge.addEventListener(
|
|
4584
4584
|
"message",
|
|
4585
4585
|
({ source: s, data: i }) => {
|
|
4586
4586
|
s === ge && i === t && n.length && n.shift()();
|
|
@@ -4588,7 +4588,7 @@ const Ml = (e) => {
|
|
|
4588
4588
|
!1
|
|
4589
4589
|
), (s) => {
|
|
4590
4590
|
n.push(s), ge.postMessage(t, "*");
|
|
4591
|
-
}))(`axios@${Math.random()}`, []) : (t) => setTimeout(t))(typeof setImmediate == "function",
|
|
4591
|
+
}))(`axios@${Math.random()}`, []) : (t) => setTimeout(t))(typeof setImmediate == "function", $(ge.postMessage)), Ul = typeof queueMicrotask < "u" ? queueMicrotask.bind(ge) : typeof process < "u" && process.nextTick || fn, xl = (e) => e != null && $(e[yt]), f = {
|
|
4592
4592
|
isArray: Pe,
|
|
4593
4593
|
isArrayBuffer: dn,
|
|
4594
4594
|
isBuffer: Ue,
|
|
@@ -4611,7 +4611,7 @@ const Ml = (e) => {
|
|
|
4611
4611
|
isReactNative: rl,
|
|
4612
4612
|
isBlob: ll,
|
|
4613
4613
|
isRegExp: Pl,
|
|
4614
|
-
isFunction:
|
|
4614
|
+
isFunction: $,
|
|
4615
4615
|
isStream: dl,
|
|
4616
4616
|
isURLSearchParams: ml,
|
|
4617
4617
|
isTypedArray: Al,
|
|
@@ -4803,10 +4803,10 @@ function _a(e) {
|
|
|
4803
4803
|
return a[t];
|
|
4804
4804
|
});
|
|
4805
4805
|
}
|
|
4806
|
-
function
|
|
4806
|
+
function $t(e, a) {
|
|
4807
4807
|
this._pairs = [], e && pt(e, this, a);
|
|
4808
4808
|
}
|
|
4809
|
-
const bn =
|
|
4809
|
+
const bn = $t.prototype;
|
|
4810
4810
|
bn.append = function(e, a) {
|
|
4811
4811
|
this._pairs.push([e, a]);
|
|
4812
4812
|
};
|
|
@@ -4828,7 +4828,7 @@ function wn(e, a, t) {
|
|
|
4828
4828
|
serialize: t
|
|
4829
4829
|
} : t, i = s && s.serialize;
|
|
4830
4830
|
let o;
|
|
4831
|
-
if (i ? o = i(a, s) : o = f.isURLSearchParams(a) ? a.toString() : new
|
|
4831
|
+
if (i ? o = i(a, s) : o = f.isURLSearchParams(a) ? a.toString() : new $t(a, s).toString(n), o) {
|
|
4832
4832
|
const c = e.indexOf("#");
|
|
4833
4833
|
c !== -1 && (e = e.slice(0, c)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
|
|
4834
4834
|
}
|
|
@@ -4894,12 +4894,12 @@ const Zt = {
|
|
|
4894
4894
|
forcedJSONParsing: !0,
|
|
4895
4895
|
clarifyTimeoutError: !1,
|
|
4896
4896
|
legacyInterceptorReqResOrdering: !0
|
|
4897
|
-
}, Gl = typeof URLSearchParams < "u" ? URLSearchParams :
|
|
4897
|
+
}, Gl = typeof URLSearchParams < "u" ? URLSearchParams : $t, Hl = typeof FormData < "u" ? FormData : null, Wl = typeof Blob < "u" ? Blob : null, $l = {
|
|
4898
4898
|
isBrowser: !0,
|
|
4899
4899
|
classes: {
|
|
4900
4900
|
URLSearchParams: Gl,
|
|
4901
4901
|
FormData: Hl,
|
|
4902
|
-
Blob:
|
|
4902
|
+
Blob: Wl
|
|
4903
4903
|
},
|
|
4904
4904
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
4905
4905
|
}, Kt = typeof window < "u" && typeof document < "u", jt = typeof navigator == "object" && navigator || void 0, Zl = Kt && (!jt || ["ReactNative", "NativeScript", "NS"].indexOf(jt.product) < 0), Kl = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
@@ -4910,14 +4910,14 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Xl
|
|
|
4910
4910
|
hasStandardBrowserWebWorkerEnv: Kl,
|
|
4911
4911
|
navigator: jt,
|
|
4912
4912
|
origin: Xl
|
|
4913
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
4913
|
+
}, Symbol.toStringTag, { value: "Module" })), W = {
|
|
4914
4914
|
...Ql,
|
|
4915
|
-
|
|
4915
|
+
...$l
|
|
4916
4916
|
};
|
|
4917
4917
|
function Yl(e, a) {
|
|
4918
|
-
return pt(e, new
|
|
4918
|
+
return pt(e, new W.classes.URLSearchParams(), {
|
|
4919
4919
|
visitor: function(t, n, s, i) {
|
|
4920
|
-
return
|
|
4920
|
+
return W.isNode && f.isBuffer(t) ? (this.append(n, t.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
|
|
4921
4921
|
},
|
|
4922
4922
|
...a
|
|
4923
4923
|
});
|
|
@@ -5017,8 +5017,8 @@ const Je = {
|
|
|
5017
5017
|
maxContentLength: -1,
|
|
5018
5018
|
maxBodyLength: -1,
|
|
5019
5019
|
env: {
|
|
5020
|
-
FormData:
|
|
5021
|
-
Blob:
|
|
5020
|
+
FormData: W.classes.FormData,
|
|
5021
|
+
Blob: W.classes.Blob
|
|
5022
5022
|
},
|
|
5023
5023
|
validateStatus: function(e) {
|
|
5024
5024
|
return e >= 200 && e < 300;
|
|
@@ -5358,10 +5358,10 @@ const ot = (e, a, t = 3) => {
|
|
|
5358
5358
|
}),
|
|
5359
5359
|
a[1]
|
|
5360
5360
|
];
|
|
5361
|
-
}, Ta = (e) => (...a) => f.asap(() => e(...a)), yc =
|
|
5362
|
-
new URL(
|
|
5363
|
-
|
|
5364
|
-
) : () => !0, fc =
|
|
5361
|
+
}, Ta = (e) => (...a) => f.asap(() => e(...a)), yc = W.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, a) => (t) => (t = new URL(t, W.origin), e.protocol === t.protocol && e.host === t.host && (a || e.port === t.port)))(
|
|
5362
|
+
new URL(W.origin),
|
|
5363
|
+
W.navigator && /(msie|trident)/i.test(W.navigator.userAgent)
|
|
5364
|
+
) : () => !0, fc = W.hasStandardBrowserEnv ? (
|
|
5365
5365
|
// Standard browser envs support document.cookie
|
|
5366
5366
|
{
|
|
5367
5367
|
write(e, a, t, n, s, i, o) {
|
|
@@ -5484,7 +5484,7 @@ const An = (e) => {
|
|
|
5484
5484
|
(c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : "")
|
|
5485
5485
|
)
|
|
5486
5486
|
), f.isFormData(t)) {
|
|
5487
|
-
if (
|
|
5487
|
+
if (W.hasStandardBrowserEnv || W.hasStandardBrowserWebWorkerEnv)
|
|
5488
5488
|
o.setContentType(void 0);
|
|
5489
5489
|
else if (f.isFunction(t.getHeaders)) {
|
|
5490
5490
|
const y = t.getHeaders(), d = ["content-type", "content-length"];
|
|
@@ -5493,7 +5493,7 @@ const An = (e) => {
|
|
|
5493
5493
|
});
|
|
5494
5494
|
}
|
|
5495
5495
|
}
|
|
5496
|
-
if (
|
|
5496
|
+
if (W.hasStandardBrowserEnv && (n && f.isFunction(n) && (n = n(a)), n || n !== !1 && yc(a.url))) {
|
|
5497
5497
|
const y = s && i && fc.read(i);
|
|
5498
5498
|
y && o.set(s, y);
|
|
5499
5499
|
}
|
|
@@ -5556,7 +5556,7 @@ const An = (e) => {
|
|
|
5556
5556
|
v && (t(!k || k.type ? new Ve(null, e, v) : k), v.abort(), v = null);
|
|
5557
5557
|
}, n.cancelToken && n.cancelToken.subscribe(d), n.signal && (n.signal.aborted ? d() : n.signal.addEventListener("abort", d)));
|
|
5558
5558
|
const P = uc(n.url);
|
|
5559
|
-
if (P &&
|
|
5559
|
+
if (P && W.protocols.indexOf(P) === -1) {
|
|
5560
5560
|
t(
|
|
5561
5561
|
new T(
|
|
5562
5562
|
"Unsupported protocol " + P + ":",
|
|
@@ -5653,7 +5653,7 @@ const An = (e) => {
|
|
|
5653
5653
|
highWaterMark: 2
|
|
5654
5654
|
}
|
|
5655
5655
|
);
|
|
5656
|
-
}, Ia = 64 * 1024, { isFunction:
|
|
5656
|
+
}, Ia = 64 * 1024, { isFunction: We } = f, Sc = (({ Request: e, Response: a }) => ({
|
|
5657
5657
|
Request: e,
|
|
5658
5658
|
Response: a
|
|
5659
5659
|
}))(f.global), { ReadableStream: Pa, TextEncoder: Oa } = f.global, Na = (e, ...a) => {
|
|
@@ -5670,12 +5670,12 @@ const An = (e) => {
|
|
|
5670
5670
|
Sc,
|
|
5671
5671
|
e
|
|
5672
5672
|
);
|
|
5673
|
-
const { fetch: a, Request: t, Response: n } = e, s = a ?
|
|
5673
|
+
const { fetch: a, Request: t, Response: n } = e, s = a ? We(a) : typeof fetch == "function", i = We(t), o = We(n);
|
|
5674
5674
|
if (!s)
|
|
5675
5675
|
return !1;
|
|
5676
|
-
const c = s &&
|
|
5676
|
+
const c = s && We(Pa), y = s && (typeof Oa == "function" ? /* @__PURE__ */ ((w) => (v) => w.encode(v))(new Oa()) : async (w) => new Uint8Array(await new t(w).arrayBuffer())), d = i && c && Na(() => {
|
|
5677
5677
|
let w = !1;
|
|
5678
|
-
const v = new Pa(), _ = new t(
|
|
5678
|
+
const v = new Pa(), _ = new t(W.origin, {
|
|
5679
5679
|
body: v,
|
|
5680
5680
|
method: "POST",
|
|
5681
5681
|
get duplex() {
|
|
@@ -5704,7 +5704,7 @@ const An = (e) => {
|
|
|
5704
5704
|
if (f.isBlob(w))
|
|
5705
5705
|
return w.size;
|
|
5706
5706
|
if (f.isSpecCompliantForm(w))
|
|
5707
|
-
return (await new t(
|
|
5707
|
+
return (await new t(W.origin, {
|
|
5708
5708
|
method: "POST",
|
|
5709
5709
|
body: w
|
|
5710
5710
|
}).arrayBuffer()).byteLength;
|
|
@@ -6281,7 +6281,7 @@ x.formToJSON = (e) => vn(f.isHTMLForm(e) ? new FormData(e) : e);
|
|
|
6281
6281
|
x.getAdapter = En.getAdapter;
|
|
6282
6282
|
x.HttpStatusCode = Ut;
|
|
6283
6283
|
x.default = x;
|
|
6284
|
-
function
|
|
6284
|
+
function $e(e, a, t) {
|
|
6285
6285
|
if (!a || a <= 1)
|
|
6286
6286
|
return e;
|
|
6287
6287
|
const n = `https://${t ? "dev-apis" : "apis"}.golstats.com/${a}/`;
|
|
@@ -6565,7 +6565,7 @@ const jc = /* @__PURE__ */ Qt(Rc, [["render", Lc], ["__scopeId", "data-v-aacd775
|
|
|
6565
6565
|
for (const [n, s] of a)
|
|
6566
6566
|
t[n] = s;
|
|
6567
6567
|
return t;
|
|
6568
|
-
},
|
|
6568
|
+
}, Wc = /* @__PURE__ */ Hc(Gc, [["__scopeId", "data-v-5a242c28"]]), $c = (e, a) => {
|
|
6569
6569
|
const t = e.__vccOpts || e;
|
|
6570
6570
|
for (const [n, s] of a)
|
|
6571
6571
|
t[n] = s;
|
|
@@ -6617,7 +6617,7 @@ const jc = /* @__PURE__ */ Qt(Rc, [["render", Lc], ["__scopeId", "data-v-aacd775
|
|
|
6617
6617
|
_: 1
|
|
6618
6618
|
}));
|
|
6619
6619
|
}
|
|
6620
|
-
}, Qc = /* @__PURE__ */
|
|
6620
|
+
}, Qc = /* @__PURE__ */ $c(Xc, [["__scopeId", "data-v-956c7bd9"]]), Yc = { class: "modal-header" }, ed = {
|
|
6621
6621
|
key: 0,
|
|
6622
6622
|
width: "27",
|
|
6623
6623
|
src: "",
|
|
@@ -6688,7 +6688,7 @@ const jc = /* @__PURE__ */ Qt(Rc, [["render", Lc], ["__scopeId", "data-v-aacd775
|
|
|
6688
6688
|
};
|
|
6689
6689
|
function ie() {
|
|
6690
6690
|
x.post(
|
|
6691
|
-
|
|
6691
|
+
$e(
|
|
6692
6692
|
`https://xqkvd3q4q2.execute-api.us-east-2.amazonaws.com/prod/users/${t.user}/downloads/counter`,
|
|
6693
6693
|
t.provider,
|
|
6694
6694
|
t.isDevApis
|
|
@@ -6700,7 +6700,7 @@ const jc = /* @__PURE__ */ Qt(Rc, [["render", Lc], ["__scopeId", "data-v-aacd775
|
|
|
6700
6700
|
const ze = async () => {
|
|
6701
6701
|
if (_.value > 0) {
|
|
6702
6702
|
const E = await x.get(
|
|
6703
|
-
|
|
6703
|
+
$e(
|
|
6704
6704
|
`https://xqkvd3q4q2.execute-api.us-east-2.amazonaws.com/prod/users/${t.user}/downloads/counter`,
|
|
6705
6705
|
t.provider,
|
|
6706
6706
|
t.isDevApis
|
|
@@ -6725,7 +6725,7 @@ const jc = /* @__PURE__ */ Qt(Rc, [["render", Lc], ["__scopeId", "data-v-aacd775
|
|
|
6725
6725
|
};
|
|
6726
6726
|
try {
|
|
6727
6727
|
const j = await x.post(
|
|
6728
|
-
|
|
6728
|
+
$e(
|
|
6729
6729
|
"https://s8i5bvi7ej.execute-api.us-east-2.amazonaws.com/prod/minutesPlayed/teams/downloads",
|
|
6730
6730
|
t.provider,
|
|
6731
6731
|
t.isDevApis
|
|
@@ -6751,7 +6751,7 @@ const jc = /* @__PURE__ */ Qt(Rc, [["render", Lc], ["__scopeId", "data-v-aacd775
|
|
|
6751
6751
|
try {
|
|
6752
6752
|
w.value = [];
|
|
6753
6753
|
const E = await x.get(
|
|
6754
|
-
|
|
6754
|
+
$e(
|
|
6755
6755
|
`https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/minutesPlayed/teams/${t.team}/players/games/${t.game}`,
|
|
6756
6756
|
t.provider,
|
|
6757
6757
|
t.isDevApis
|
|
@@ -6894,7 +6894,7 @@ const jc = /* @__PURE__ */ Qt(Rc, [["render", Lc], ["__scopeId", "data-v-aacd775
|
|
|
6894
6894
|
ref: Ne,
|
|
6895
6895
|
message: "El video se ha descargado"
|
|
6896
6896
|
}, null, 512),
|
|
6897
|
-
z(vt(
|
|
6897
|
+
z(vt(Wc), {
|
|
6898
6898
|
ref_key: "limitedModal",
|
|
6899
6899
|
ref: g
|
|
6900
6900
|
}, null, 512),
|
|
@@ -7040,7 +7040,7 @@ function De(e, a, t = !1) {
|
|
|
7040
7040
|
}
|
|
7041
7041
|
return e;
|
|
7042
7042
|
}
|
|
7043
|
-
const Id = "_letter_1wk7q_37", Pd = "_live_1wk7q_47", Od = "_liveButon_1wk7q_52", Nd = "_dateHour_1wk7q_67", Rd = "_matchDate_1wk7q_78", Bd = "_chivasIcon_1wk7q_87", Fd = "_escudos_1wk7q_101", Md = "_homeTeam_1wk7q_109", Ld = "_btnPlayIcon_1wk7q_116", jd = "_div_1wk7q_123", Ud = "_score_1wk7q_128", xd = "_scoreNoButton_1wk7q_129", qd = "_containerTeams_1wk7q_145", Jd = "_matchResult_1wk7q_153", Vd = "_btnHightlights_1wk7q_165", zd = "_bootomHightlightsBlocked_1wk7q_174", Gd = "_bootomHightlights_1wk7q_174", Hd = "_headCard_1wk7q_220",
|
|
7043
|
+
const Id = "_letter_1wk7q_37", Pd = "_live_1wk7q_47", Od = "_liveButon_1wk7q_52", Nd = "_dateHour_1wk7q_67", Rd = "_matchDate_1wk7q_78", Bd = "_chivasIcon_1wk7q_87", Fd = "_escudos_1wk7q_101", Md = "_homeTeam_1wk7q_109", Ld = "_btnPlayIcon_1wk7q_116", jd = "_div_1wk7q_123", Ud = "_score_1wk7q_128", xd = "_scoreNoButton_1wk7q_129", qd = "_containerTeams_1wk7q_145", Jd = "_matchResult_1wk7q_153", Vd = "_btnHightlights_1wk7q_165", zd = "_bootomHightlightsBlocked_1wk7q_174", Gd = "_bootomHightlights_1wk7q_174", Hd = "_headCard_1wk7q_220", Wd = "_content_1wk7q_232", $d = "_vuesaxlinearsearchNormalIcon_1wk7q_239", Zd = "_searchField1_1wk7q_245", Kd = "_vuesaxlinearsearchNormalParent_1wk7q_251", Xd = "_searchField_1wk7q_245", Qd = "_union9Icon_1wk7q_278", Yd = "_playButton_1wk7q_291", e0 = "_content1_1wk7q_298", t0 = "_totalContainer_1wk7q_310", a0 = "_rowTable_1wk7q_320", n0 = "_icnPlayIcon_1wk7q_332", s0 = "_btnPlay_1wk7q_116", i0 = "_content3_1wk7q_352", o0 = "_totalContainer1_1wk7q_362", r0 = "_rowTable1_1wk7q_373", l0 = "_rowsContainer_1wk7q_385", c0 = "_tableContainer_1wk7q_397", d0 = "_matchCard_1wk7q_405", u0 = {
|
|
7044
7044
|
letter: Id,
|
|
7045
7045
|
live: Pd,
|
|
7046
7046
|
liveButon: Od,
|
|
@@ -7059,8 +7059,8 @@ const Id = "_letter_1wk7q_37", Pd = "_live_1wk7q_47", Od = "_liveButon_1wk7q_52"
|
|
|
7059
7059
|
bootomHightlightsBlocked: zd,
|
|
7060
7060
|
bootomHightlights: Gd,
|
|
7061
7061
|
headCard: Hd,
|
|
7062
|
-
content:
|
|
7063
|
-
vuesaxlinearsearchNormalIcon:
|
|
7062
|
+
content: Wd,
|
|
7063
|
+
vuesaxlinearsearchNormalIcon: $d,
|
|
7064
7064
|
searchField1: Zd,
|
|
7065
7065
|
vuesaxlinearsearchNormalParent: Kd,
|
|
7066
7066
|
searchField: Xd,
|
|
@@ -8408,8 +8408,8 @@ function G0(e, a, t, n, s, i) {
|
|
|
8408
8408
|
})
|
|
8409
8409
|
]);
|
|
8410
8410
|
}
|
|
8411
|
-
const H0 = /* @__PURE__ */ je(V0, [["render", G0], ["__scopeId", "data-v-0120fe4e"]]),
|
|
8412
|
-
async function
|
|
8411
|
+
const H0 = /* @__PURE__ */ je(V0, [["render", G0], ["__scopeId", "data-v-0120fe4e"]]), W0 = "https://dtcf4s9tapfr0.cloudfront.net";
|
|
8412
|
+
async function $0(e, a = {}, t = 3) {
|
|
8413
8413
|
let n;
|
|
8414
8414
|
for (let s = 0; s < t; s++)
|
|
8415
8415
|
try {
|
|
@@ -8422,17 +8422,17 @@ async function Z0(e, a = {}, t = 3) {
|
|
|
8422
8422
|
}
|
|
8423
8423
|
throw n;
|
|
8424
8424
|
}
|
|
8425
|
-
async function
|
|
8425
|
+
async function Z0(e = 0) {
|
|
8426
8426
|
if (e === 0)
|
|
8427
8427
|
return pe(Se);
|
|
8428
8428
|
try {
|
|
8429
|
-
const a = await
|
|
8429
|
+
const a = await $0(`${W0}/${e}/abbreviations/play_off_abbreviations.json`);
|
|
8430
8430
|
return pe(a);
|
|
8431
8431
|
} catch {
|
|
8432
8432
|
return pe(Se);
|
|
8433
8433
|
}
|
|
8434
8434
|
}
|
|
8435
|
-
const
|
|
8435
|
+
const K0 = {
|
|
8436
8436
|
components: {
|
|
8437
8437
|
GSCGeneral: go,
|
|
8438
8438
|
GSCLastGame: jr,
|
|
@@ -8469,7 +8469,7 @@ const X0 = {
|
|
|
8469
8469
|
const a = F(pe(Se));
|
|
8470
8470
|
return Bn("playOffAbbreviationsStructure", a), It(() => e.providerId, async (t) => {
|
|
8471
8471
|
try {
|
|
8472
|
-
a.value = await
|
|
8472
|
+
a.value = await Z0(t);
|
|
8473
8473
|
} catch {
|
|
8474
8474
|
a.value = pe(Se);
|
|
8475
8475
|
}
|
|
@@ -8601,7 +8601,7 @@ const X0 = {
|
|
|
8601
8601
|
}
|
|
8602
8602
|
}
|
|
8603
8603
|
};
|
|
8604
|
-
function
|
|
8604
|
+
function X0(e, a, t, n, s, i) {
|
|
8605
8605
|
const o = de("GSCGeneral"), c = de("GSCLastGame"), y = de("GSCMatchByMatch");
|
|
8606
8606
|
return h(), m("div", null, [
|
|
8607
8607
|
t.type == 0 ? (h(), ee(o, {
|
|
@@ -8656,7 +8656,7 @@ function Q0(e, a, t, n, s, i) {
|
|
|
8656
8656
|
}, null, 8, ["games", "matchs", "type", "tournament-type", "seasonid", "userid", "team", "dataplayer", "player", "season", "onActiveProcesses", "position", "isCup", "can-play-videos", "video-privileges-playing-as", "provider-id", "is-dev-apis", "onOpenmedia"])) : S("", !0)
|
|
8657
8657
|
]);
|
|
8658
8658
|
}
|
|
8659
|
-
const
|
|
8659
|
+
const Y0 = /* @__PURE__ */ je(K0, [["render", X0], ["__scopeId", "data-v-f4c19e46"]]);
|
|
8660
8660
|
export {
|
|
8661
|
-
|
|
8661
|
+
Y0 as GSCInfoGame
|
|
8662
8662
|
};
|
|
@@ -11,4 +11,4 @@
|
|
|
11
11
|
`);return i===-1?"":o.stack.slice(i+1)})();try{if(!a.stack)a.stack=s;else if(s){const i=s.indexOf(`
|
|
12
12
|
`),r=i===-1?-1:s.indexOf(`
|
|
13
13
|
`,i+1),l=r===-1?"":s.slice(r+1);String(a.stack).endsWith(l)||(a.stack+=`
|
|
14
|
-
`+s)}}catch{}}throw a}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=ae(this.defaults,n);const{transitional:a,paramsSerializer:o,headers:s}=n;a!==void 0&&We.assertOptions(a,{silentJSONParsing:U.transitional(U.boolean),forcedJSONParsing:U.transitional(U.boolean),clarifyTimeoutError:U.transitional(U.boolean),legacyInterceptorReqResOrdering:U.transitional(U.boolean)},!1),o!=null&&(h.isFunction(o)?n.paramsSerializer={serialize:o}:We.assertOptions(o,{encode:U.function,serialize:U.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),We.assertOptions(n,{baseUrl:U.spelling("baseURL"),withXsrfToken:U.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=s&&h.merge(s.common,s[n.method]);s&&h.forEach(["delete","get","head","post","put","patch","common"],C=>{delete s[C]}),n.headers=L.concat(i,s);const r=[];let l=!0;this.interceptors.request.forEach(function(C){if(typeof C.runWhen=="function"&&C.runWhen(n)===!1)return;l=l&&C.synchronous;const u=n.transitional||_t;u&&u.legacyInterceptorReqResOrdering?r.unshift(C.fulfilled,C.rejected):r.push(C.fulfilled,C.rejected)});const m=[];this.interceptors.response.forEach(function(C){m.push(C.fulfilled,C.rejected)});let c,d=0,y;if(!l){const C=[Qa.bind(this),void 0];for(C.unshift(...r),C.push(...m),y=C.length,c=Promise.resolve(n);d<y;)c=c.then(C[d++],C[d++]);return c}y=r.length;let p=n;for(;d<y;){const C=r[d++],u=r[d++];try{p=C(p)}catch(g){u.call(this,g);break}}try{c=Qa.call(this,p)}catch(C){return Promise.reject(C)}for(d=0,y=m.length;d<y;)c=c.then(m[d++],m[d++]);return c}getUri(e){e=ae(this.defaults,e);const n=xa(e.baseURL,e.url,e.allowAbsoluteUrls);return Ia(n,e.params,e.paramsSerializer)}};h.forEach(["delete","get","head","options"],function(e){ne.prototype[e]=function(n,a){return this.request(ae(a||{},{method:e,url:n,data:(a||{}).data}))}}),h.forEach(["post","put","patch"],function(e){function n(a){return function(o,s,i){return this.request(ae(i||{},{method:e,headers:a?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}ne.prototype[e]=n(),ne.prototype[e+"Form"]=n(!0)});let or=class nn{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(s){a=s});const o=this;this.promise.then(s=>{if(!o._listeners)return;let i=o._listeners.length;for(;i-- >0;)o._listeners[i](s);o._listeners=null}),this.promise.then=s=>{let i;const r=new Promise(l=>{o.subscribe(l),i=l}).then(s);return r.cancel=function(){o.unsubscribe(i)},r},n(function(s,i,r){o.reason||(o.reason=new _e(s,i,r),a(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const a=this._listeners.indexOf(n);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const n=new AbortController,a=o=>{n.abort(o)};return this.subscribe(a),n.signal.unsubscribe=()=>this.unsubscribe(a),n.signal}static source(){let n;return{token:new nn(function(a){n=a}),cancel:n}}};function sr(e){return function(n){return e.apply(null,n)}}function ir(e){return h.isObject(e)&&e.isAxiosError===!0}const Tt={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Tt).forEach(([e,n])=>{Tt[n]=e});function en(e){const n=new ne(e),a=ga(ne.prototype.request,n);return h.extend(a,ne.prototype,n,{allOwnKeys:!0}),h.extend(a,n,null,{allOwnKeys:!0}),a.create=function(o){return en(ae(e,o))},a}const V=en(be);V.Axios=ne,V.CanceledError=_e,V.CancelToken=or,V.isCancel=Fa,V.VERSION=Ya,V.toFormData=qe,V.AxiosError=w,V.Cancel=V.CanceledError,V.all=function(e){return Promise.all(e)},V.spread=sr,V.isAxiosError=ir,V.mergeConfig=ae,V.AxiosHeaders=L,V.formToJSON=e=>Oa(h.isHTMLForm(e)?new FormData(e):e),V.getAdapter=Xa.getAdapter,V.HttpStatusCode=Tt,V.default=V;function Ze(e,n,a){if(!n||n<=1)return e;const o=`https://${a?"dev-apis":"apis"}.golstats.com/${n}/`;let s=new URL(e).pathname;s=s.replace(/^\/(prod|qa)\//,"/");const i=s.replace(/^\//,"");return o+i}const Vt=(e,n)=>{const a=e.__vccOpts||e;for(const[o,s]of n)a[o]=s;return a},rr={name:"GSC-NotificationPush",props:{pendingProcesses:{type:Number,default:0}},data(){return{show:!1,timer:null}},methods:{showNotification(){this.show=!0,this.timer=setTimeout(()=>{this.show=!1},15e3)}},beforeUnmount(){this.timer&&clearTimeout(this.timer)}},lr={key:0,class:"notification-container"},cr={class:"notification-content"},dr={class:"notification-text"};function mr(e,n,a,o,s,i){return t.openBlock(),t.createBlock(t.Transition,{name:"slide-fade"},{default:t.withCtx(()=>[s.show?(t.openBlock(),t.createElementBlock("div",lr,[t.createElementVNode("div",cr,[n[3]||(n[3]=t.createElementVNode("div",{class:"notification-icon"},[t.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/playlist-icons/adv.png"})],-1)),t.createElementVNode("div",dr,[n[1]||(n[1]=t.createElementVNode("h4",null,"Descarga en proceso",-1)),t.createElementVNode("p",null,"Tienes "+t.toDisplayString(a.pendingProcesses)+" procesos de generación de videos pendientes",1)]),t.createElementVNode("button",{class:"close-button",onClick:n[0]||(n[0]=r=>s.show=!1)},[...n[2]||(n[2]=[t.createElementVNode("i",{class:"fas fa-times"},null,-1)])])]),n[4]||(n[4]=t.createElementVNode("div",{class:"progress-bar"},null,-1))])):t.createCommentVNode("",!0)]),_:1})}const hr=Vt(rr,[["render",mr],["__scopeId","data-v-aacd775f"]]),yr={class:"modal-header"},fr=t.defineComponent({__name:"GSC-ModalDownloadProcess",props:{playlistId:{type:String,default:""},user_id:{type:Number,default:0,required:!0},totalVideos:{type:Number,default:0,required:!0}},emits:["download-accepted"],setup(e,{expose:n,emit:a}){const o=t.ref(!1),s=t.ref(!1),i=t.ref("single"),r=()=>{o.value=!0,s.value=!1},l=()=>{i.value="single"},m=()=>{s.value||(o.value=!1,l())},c=()=>{o.value=!1,s.value=!1,l()};t.ref(null);const d=a,y=async()=>{d("download-accepted"),m()};return n({showModal:r,forceCloseModal:c}),(p,C)=>(t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(t.Transition,{name:"modal"},{default:t.withCtx(()=>[o.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"modal-overlay",onClick:m},[t.createElementVNode("div",{class:"modal-content downloading",onClick:C[0]||(C[0]=t.withModifiers(()=>{},["stop"]))},[t.createElementVNode("div",yr,[C[1]||(C[1]=t.createElementVNode("div",{class:"header-left"},[t.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icon-download-modal.png",alt:"Eliminar playlist",class:"icon-download"}),t.createElementVNode("span",null,"Descargar en proceso")],-1)),s.value?(t.openBlock(),t.createElementBlock("button",{key:0,class:"close-button",onClick:c},"×")):t.createCommentVNode("",!0)]),C[2]||(C[2]=t.createElementVNode("div",{class:"separator"},null,-1)),C[3]||(C[3]=t.createElementVNode("h3",{class:"modal-title"},"Ya se inició el proceso de descarga.",-1)),C[4]||(C[4]=t.createElementVNode("p",{class:"modal-message"}," Nota: Es importante mantener el navegador abierto y no cerrar sesion hasta que la descarga haya finalizado. ",-1)),C[5]||(C[5]=t.createElementVNode("div",{class:"separator"},null,-1)),t.createElementVNode("div",{class:"modal-buttons"},[t.createElementVNode("button",{class:"btn-download",onClick:y},"Aceptar")])])])):t.createCommentVNode("",!0)]),_:1})]))}}),pr=Vt(fr,[["__scopeId","data-v-e12ce538"]]),ur=t.defineComponent({__name:"GSC-ModalDownloadDuplicate",props:{playlistId:{type:String,default:""},user_id:{type:Number,default:0,required:!0}},emits:["cancelDownload","acceptDownload"],setup(e,{expose:n,emit:a}){const o=t.ref(!1),s=a,i=()=>{o.value=!1};n({showModal:()=>{o.value=!0}});const r=()=>{s("cancelDownload"),i()},l=()=>{s("acceptDownload"),i()};return(m,c)=>(t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(t.Transition,{name:"modal"},{default:t.withCtx(()=>[o.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"modal-overlay",onClick:i},[t.createElementVNode("div",{class:"modal-container",onClick:c[0]||(c[0]=t.withModifiers(()=>{},["stop"]))},[t.createElementVNode("div",{class:"modal-content"},[c[1]||(c[1]=t.createElementVNode("div",{class:"modal-header"},[t.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/playlist-icons/adv.png",alt:"Descargar duplicada playlist",class:"icon-duplicate"}),t.createElementVNode("span",null,"Descargar de nuevo")],-1)),c[2]||(c[2]=t.createElementVNode("div",{class:"separator"},null,-1)),c[3]||(c[3]=t.createElementVNode("p",{class:"modal-message"}," El video ya ha sido descargado. ¿Estás seguro que quieres descargarlo nuevamente? ",-1)),c[4]||(c[4]=t.createElementVNode("div",{class:"separator"},null,-1)),t.createElementVNode("div",{class:"modal-actions"},[t.createElementVNode("button",{class:"btn-cancel",onClick:r},"Cancelar"),t.createElementVNode("button",{class:"btn-acept",onClick:l},"Descargar")])])])])):t.createCommentVNode("",!0)]),_:1})]))}}),gr=(e,n)=>{const a=e.__vccOpts||e;for(const[o,s]of n)a[o]=s;return a},Cr=gr(ur,[["__scopeId","data-v-0f8e9640"]]),br=t.defineComponent({__name:"GSC-ModalDownloadLimited",props:{playlistId:{type:String,default:""},user_id:{type:Number,default:0,required:!0}},setup(e,{expose:n}){const a=t.ref(!1),o=e;t.computed(()=>o.playlistId!=""&&o.user_id>0);const s=()=>{a.value=!1};return n({showModal:()=>{a.value=!0}}),(i,r)=>(t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(t.Transition,{name:"modal"},{default:t.withCtx(()=>[a.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"modal-overlay",onClick:s},[t.createElementVNode("div",{class:"modal-container",onClick:r[0]||(r[0]=t.withModifiers(()=>{},["stop"]))},[t.createElementVNode("div",{class:"modal-content"},[r[1]||(r[1]=t.createElementVNode("div",{class:"modal-header"},[t.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/playlist-icons/adv.png",alt:"Eliminar playlist",class:"icon-limited"}),t.createElementVNode("span",null,"Limite de descargas")],-1)),r[2]||(r[2]=t.createElementVNode("div",{class:"separator"},null,-1)),r[3]||(r[3]=t.createElementVNode("p",{class:"modal-message"}," Has alcanzado el límite de descargas mensuales permitidas. Para cualquier duda, favor de contactar a tu asesor GolStats. ",-1)),r[4]||(r[4]=t.createElementVNode("div",{class:"separator"},null,-1)),t.createElementVNode("div",{class:"modal-actions"},[t.createElementVNode("button",{class:"btn-acept",onClick:s},"Aceptar")])])])])):t.createCommentVNode("",!0)]),_:1})]))}}),wr=(e,n)=>{const a=e.__vccOpts||e;for(const[o,s]of n)a[o]=s;return a},_r=wr(br,[["__scopeId","data-v-5a242c28"]]),Er=(e,n)=>{const a=e.__vccOpts||e;for(const[o,s]of n)a[o]=s;return a},kr={class:"modal-content"},Nr={class:"modal-text"},Br={__name:"GSC-ModalDownloadFinished",props:{message:{type:String,default:"Se ha iniciado la descarga"},zIndex:{type:Number,default:1}},setup(e,{expose:n}){const a=t.ref(!1);function o(){a.value=!0,setTimeout(()=>{s()},15e3)}function s(){a.value=!1}return n({show:o}),(i,r)=>(t.openBlock(),t.createBlock(t.Transition,{name:"slide-up"},{default:t.withCtx(()=>[a.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"modal-container",style:t.normalizeStyle({zIndex:e.zIndex})},[t.createElementVNode("div",kr,[r[0]||(r[0]=t.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/playlist-icons/downloadfinishedmonitor.png",alt:"Icono de descarga",class:"download-icon-2"},null,-1)),t.createElementVNode("span",Nr,t.toDisplayString(e.message),1),r[1]||(r[1]=t.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/playlist-icons/downloadfinisheddownalod.png",alt:"Icono de descarga",class:"download-icon"},null,-1))])],4)):t.createCommentVNode("",!0)]),_:1}))}},Dr=Er(Br,[["__scopeId","data-v-956c7bd9"]]),Sr={class:"modal-header"},Tr={key:0,width:"27",src:"",alt:"Eliminar playlist",class:"margin-top-10 margin-left-5"},Vr={key:1,width:"27",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-agregar@3x.png",alt:"Eliminar playlist",class:"margin-top-10 margin-left-5"},Ar={class:"modal-content"},Ir={class:"select-all"},Pr={class:"player-list-container"},Or={class:"player-list"},Rr=["onUpdate:modelValue"],zr=["src","alt"],Fr={class:"player-name"},Mr={class:"player-minutes"},Lr={class:"modal-footer"},jr={class:"selected-count"},xr={style:{"font-family":"Poppins-SemiBold","font-weight":"600"}},Ur={class:"button-container"},qr=["disabled"],Ke="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",$r={__name:"GSC-ModalDownloadMinutesPlayed",props:{isVisible:Boolean,game:Number,team:Number,season:Number,user:Number,provider:{type:Number,default:1},isDevApis:{type:Boolean,default:!1}},emits:["close","active-processes"],setup(e,{emit:n}){const a=e,o=n,s=t.ref(null),i=t.ref(0);let r=null;const l=t.ref(null),m=t.ref(null),c=t.ref(null),d=t.ref(""),y=t.ref(null),p=_=>{for(let B of _)i.value=B.contentRect.width},C=()=>{s.value&&!r&&(r=new ResizeObserver(p),r.observe(s.value),i.value=s.value.offsetWidth)};t.watch(()=>a.isVisible,_=>{_&&t.nextTick(()=>{C()})}),t.onMounted(()=>{a.isVisible&&(Ee(),k());const _=JSON.parse(localStorage.getItem("downloadQueue")||"[]");X.value=_,m.value&&(K.value=_.length)}),t.onUnmounted(()=>{r&&r.disconnect(),Object.values(Z.value).forEach(_=>clearInterval(_))});const u=t.ref([]),g=t.ref(!0),b=t.computed(()=>u.value.filter(_=>_.selected).length);function N(){u.value.forEach(_=>_.selected=g.value)}const k=()=>{document.body.style.overflow="hidden",document.body.style.paddingRight=`${window.innerWidth-document.documentElement.clientWidth}px`},D=()=>{document.body.style.overflow="",document.body.style.paddingRight=""};function S(){u.value.forEach(_=>_.selected=!0),g.value=!0,D(),o("close")}t.computed(()=>b.value===0);const I=t.ref(null),x=()=>{const{hash:_,process_id:B}=I.value;F(_,B),o("active-processes",!0),setTimeout(()=>{l.value.forceCloseModal(),S()},1e4)},O=()=>{},G=async(_="")=>{(_||d.value)&&(Qe(_||d.value),ke.value.show(),S(),d.value="",W())};function W(){V.post(Ze(`https://xqkvd3q4q2.execute-api.us-east-2.amazonaws.com/prod/users/${a.user}/downloads/counter`,a.provider,a.isDevApis),{user_id:a.user,type:1},{headers:{"Content-Type":"application/json",Authorization:Ke}}).catch(_=>console.error("Error al actualizar el contador de descargas:",_))}const Xe=async()=>{if(b.value>0){const _=await V.get(Ze(`https://xqkvd3q4q2.execute-api.us-east-2.amazonaws.com/prod/users/${a.user}/downloads/counter`,a.provider,a.isDevApis),{headers:{"Content-Type":"application/json",Authorization:Ke}});if(_.data&&_.data.count<_.data.limit){const B=u.value.filter(T=>T.selected),A={team_id:a.team,user_id:a.user,game_id:a.game,season_id:a.season,players:B.map(T=>({name:T.name,player_id:T.id}))};try{const T=await V.post(Ze("https://s8i5bvi7ej.execute-api.us-east-2.amazonaws.com/prod/minutesPlayed/teams/downloads",a.provider,a.isDevApis),A,{headers:{"Content-Type":"application/json",Authorization:Ke}});T.data.url?T.data.downloaded_by_user===1?(c.value.showModal(),d.value=T.data.url):T.data.downloaded_by_user===0&&await G(T.data.url):(I.value=T.data,l.value.showModal(),x(),W())}catch(T){console.error("Error al enviar los datos:",T)}}else S(),setTimeout(()=>{y.value.showModal()},200)}},Ee=async()=>{try{u.value=[];const _=await V.get(Ze(`https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/minutesPlayed/teams/${a.team}/players/games/${a.game}`,a.provider,a.isDevApis),{headers:{Authorization:Ke}});for(let B=0;B<_.data.players.length;B++){const A=_.data.players[B];u.value.push({id:A.player_id,name:A.name,minutes:A.minutes_played,image:A.photo,selected:!0})}}catch(_){console.error("Error al obtener los minutos jugados:",_)}};t.watch(()=>a.isVisible,_=>{_?(Ee(),t.nextTick(()=>{k()})):D()}),t.onUnmounted(()=>{D()});const K=t.ref(0),X=t.ref([]),Z=t.ref({}),ke=t.ref(null),F=(_,B)=>{const A=JSON.parse(localStorage.getItem("downloadQueue")||"[]");A.push({hash:_,processId:B}),localStorage.setItem("downloadQueue",JSON.stringify(A)),X.value=A,m.value&&(K.value=A.length)},Qe=_=>{const B=document.createElement("a");B.href=_,B.download="",document.body.appendChild(B),B.click(),document.body.removeChild(B)};return(_,B)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[(t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(t.Transition,{name:"modal"},{default:t.withCtx(()=>[e.isVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"modal-overlay",onClick:S},[t.createElementVNode("div",{class:"modal-container-minutes-played",ref_key:"modalRef",ref:s,onClick:B[1]||(B[1]=t.withModifiers(()=>{},["stop"]))},[t.createElementVNode("div",Sr,[t.createElementVNode("div",{class:t.normalizeClass(i.value>440?"title-section":"title-section-mobile")},[_.isEditing?(t.openBlock(),t.createElementBlock("img",Tr)):(t.openBlock(),t.createElementBlock("img",Vr)),B[2]||(B[2]=t.createElementVNode("span",null,"Descargar minutos jugados",-1))],2),t.createElementVNode("button",{class:"close-button",onClick:S},"×")]),t.createElementVNode("div",Ar,[t.createElementVNode("label",Ir,[t.withDirectives(t.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":B[0]||(B[0]=A=>g.value=A),onChange:N},null,544),[[t.vModelCheckbox,g.value]]),B[3]||(B[3]=t.createTextVNode(" Seleccionar todos los jugadores ",-1))]),t.createElementVNode("div",Pr,[B[4]||(B[4]=t.createElementVNode("div",{class:"player-header"},[t.createElementVNode("span",{class:"header-jugador"},"Jugador"),t.createElementVNode("span",{class:"header-minutos"},"Min. Jugados")],-1)),t.createElementVNode("div",Or,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.value,A=>(t.openBlock(),t.createElementBlock("div",{key:A.id,class:"player-item"},[t.withDirectives(t.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":T=>A.selected=T},null,8,Rr),[[t.vModelCheckbox,A.selected]]),t.createElementVNode("img",{src:A.image,alt:A.name,class:"player-image"},null,8,zr),t.createElementVNode("span",Fr,t.toDisplayString(A.name),1),t.createElementVNode("span",Mr,t.toDisplayString(A.minutes)+" min",1)]))),128))])])]),t.createElementVNode("div",Lr,[t.createElementVNode("p",jr,[B[5]||(B[5]=t.createTextVNode(" Tienes en total ",-1)),t.createElementVNode("span",xr,t.toDisplayString(b.value),1),B[6]||(B[6]=t.createTextVNode(" jugadores seleccionados. ",-1))]),t.createElementVNode("div",Ur,[t.createElementVNode("button",{class:"btn-cancel",onClick:S},"Cancelar"),t.createElementVNode("button",{class:t.normalizeClass(["btn-acept",{"btn-acept-disabled":b.value===0}]),onClick:Xe,disabled:b.value===0}," Descargar ",10,qr)])])],512)])):t.createCommentVNode("",!0)]),_:1})])),t.createVNode(hr,{ref_key:"notification",ref:m,"pending-processes":K.value},null,8,["pending-processes"]),t.createVNode(pr,{ref_key:"downloadModal",ref:l,onDownloadAccepted:S},null,512),t.createVNode(t.unref(Dr),{ref_key:"modaldownloadfinished",ref:ke,message:"El video se ha descargado"},null,512),t.createVNode(t.unref(_r),{ref_key:"limitedModal",ref:y},null,512),t.createVNode(t.unref(Cr),{ref_key:"duplicateModal",ref:c,onAcceptDownload:G,onCancelDownload:O},null,512)],64))}},Jr=Vt($r,[["__scopeId","data-v-5564f4b0"]]),Pd="",Od="",Rd="",Gr=(e,n)=>{const a=e.__vccOpts||e;for(const[o,s]of n)a[o]=s;return a},Hr={class:"modal-content"},Wr={class:"modal-text"},Zr={__name:"GSC-ModalDownloadFinished",props:{message:{type:String,default:"Se ha iniciado la descarga"},zIndex:{type:Number,default:1}},setup(e,{expose:n}){const a=t.ref(!1);function o(){a.value=!0,setTimeout(()=>{s()},15e3)}function s(){a.value=!1}return n({show:o}),(i,r)=>(t.openBlock(),t.createBlock(t.Transition,{name:"slide-up"},{default:t.withCtx(()=>[a.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"modal-container",style:t.normalizeStyle({zIndex:e.zIndex})},[t.createElementVNode("div",Hr,[r[0]||(r[0]=t.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/playlist-icons/downloadfinishedmonitor.png",alt:"Icono de descarga",class:"download-icon-2"},null,-1)),t.createElementVNode("span",Wr,t.toDisplayString(e.message),1),r[1]||(r[1]=t.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/playlist-icons/downloadfinisheddownalod.png",alt:"Icono de descarga",class:"download-icon"},null,-1))])],4)):t.createCommentVNode("",!0)]),_:1}))}},Kr=Gr(Zr,[["__scopeId","data-v-956c7bd9"]]),Xr=t.defineComponent({__name:"GSC-ModalDownloadLimited",props:{playlistId:{type:String,default:""},user_id:{type:Number,default:0,required:!0}},setup(e,{expose:n}){const a=t.ref(!1),o=e;t.computed(()=>o.playlistId!=""&&o.user_id>0);const s=()=>{a.value=!1};return n({showModal:()=>{a.value=!0}}),(i,r)=>(t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(t.Transition,{name:"modal"},{default:t.withCtx(()=>[a.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"modal-overlay",onClick:s},[t.createElementVNode("div",{class:"modal-container",onClick:r[0]||(r[0]=t.withModifiers(()=>{},["stop"]))},[t.createElementVNode("div",{class:"modal-content"},[r[1]||(r[1]=t.createElementVNode("div",{class:"modal-header"},[t.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/playlist-icons/adv.png",alt:"Eliminar playlist",class:"icon-limited"}),t.createElementVNode("span",null,"Limite de descargas")],-1)),r[2]||(r[2]=t.createElementVNode("div",{class:"separator"},null,-1)),r[3]||(r[3]=t.createElementVNode("p",{class:"modal-message"}," Has alcanzado el límite de descargas mensuales permitidas. Para cualquier duda, favor de contactar a tu asesor GolStats. ",-1)),r[4]||(r[4]=t.createElementVNode("div",{class:"separator"},null,-1)),t.createElementVNode("div",{class:"modal-actions"},[t.createElementVNode("button",{class:"btn-acept",onClick:s},"Aceptar")])])])])):t.createCommentVNode("",!0)]),_:1})]))}}),Qr=(e,n)=>{const a=e.__vccOpts||e;for(const[o,s]of n)a[o]=s;return a},Yr=Qr(Xr,[["__scopeId","data-v-5a242c28"]]),vr=/^https:\/\/[a-z0-9]+\.execute-api\.[a-z0-9-]+\.amazonaws\.com\/(prod|qa\d*|dev)\//,el=/^https:\/\/golstats-microservices\.s3[.-]us-west-2\.amazonaws\.com\//,tl="https://apis.golstats.com",al="https://dev-apis.golstats.com";function de(e,n,a=!1){if(!n||n===1)return e;const o=a?al:tl,s=e.match(vr);if(s){const r=e.replace(s[0],"");return`${o}/${n}/${r}`}const i=e.match(el);if(i){const r=e.replace(i[0],"");return`${o}/${n}/${r}`}return e}const nl={letter:"_letter_1wk7q_37",live:"_live_1wk7q_47",liveButon:"_liveButon_1wk7q_52",dateHour:"_dateHour_1wk7q_67",matchDate:"_matchDate_1wk7q_78",chivasIcon:"_chivasIcon_1wk7q_87",escudos:"_escudos_1wk7q_101",homeTeam:"_homeTeam_1wk7q_109",btnPlayIcon:"_btnPlayIcon_1wk7q_116",div:"_div_1wk7q_123",score:"_score_1wk7q_128",scoreNoButton:"_scoreNoButton_1wk7q_129",containerTeams:"_containerTeams_1wk7q_145",matchResult:"_matchResult_1wk7q_153",btnHightlights:"_btnHightlights_1wk7q_165",bootomHightlightsBlocked:"_bootomHightlightsBlocked_1wk7q_174",bootomHightlights:"_bootomHightlights_1wk7q_174",headCard:"_headCard_1wk7q_220",content:"_content_1wk7q_232",vuesaxlinearsearchNormalIcon:"_vuesaxlinearsearchNormalIcon_1wk7q_239",searchField1:"_searchField1_1wk7q_245",vuesaxlinearsearchNormalParent:"_vuesaxlinearsearchNormalParent_1wk7q_251",searchField:"_searchField_1wk7q_245",union9Icon:"_union9Icon_1wk7q_278",playButton:"_playButton_1wk7q_291",content1:"_content1_1wk7q_298",totalContainer:"_totalContainer_1wk7q_310",rowTable:"_rowTable_1wk7q_320",icnPlayIcon:"_icnPlayIcon_1wk7q_332",btnPlay:"_btnPlay_1wk7q_116",content3:"_content3_1wk7q_352",totalContainer1:"_totalContainer1_1wk7q_362",rowTable1:"_rowTable1_1wk7q_373",rowsContainer:"_rowsContainer_1wk7q_385",tableContainer:"_tableContainer_1wk7q_397",matchCard:"_matchCard_1wk7q_405"},ol={name:"SummaryMatchContainer",components:{GSCModalDownloadMinutesPlayed:Jr,GSCModalDownloadFinished:Kr,GSCModalDownloadDuplicate:Ds,GSCModalDownloadLimited:Yr},setup(){const e=t.ref(null),n=t.inject("playOffAbbreviationsStructure",t.ref(ee(re))),a=t.computed(()=>n.value.regularLeague),o=t.computed(()=>n.value.cup),s=t.computed(()=>n.value.cupLegacy),i=t.computed(()=>n.value.namesAndAbbByTournamentTypeAndMatchDayAbb);return{downloadModal:e,regularLeague:a,cup:o,cupLegacy:s,namesAndAbbByTournamentTypeAndMatchDayAbb:i}},props:{data:{type:Object,default:()=>{}},matchs:{type:Array,default:()=>[]},dataplayer:{type:Object,default:()=>({})},position:{type:Number,default:1},seasonid:{type:Number,default:0},userid:{type:Number,default:1426},team:{type:Number,default:0},player:{type:Number,default:0},type:{type:Number,default:1},season:{type:Number},isCup:{type:Boolean,default:!1},tournamentType:{type:Number,default:0},providerId:{type:Number,default:0},isDevApis:{type:Boolean,default:!1}},computed:{isInfoVisible(){return this.matchs[this.data.game_id]&&this.data.game_status!==4&&this.data.hasStats===1},matchDayName(){let e="";const n=this.data.matchday_abbreviation.replace("M",""),a=`JOR ${n}`;if([1,2].includes(this.tournamentType)||this.isCup)if(this.season===881)e=this.cupLegacy[n]||a;else{const o=this.namesAndAbbByTournamentTypeAndMatchDayAbb.get(this.tournamentType);if(o){const s=o.get(this.data.matchday_abbreviation);s&&(this.tournamentType!==2&&s.matchDayId<10?e=`JOR ${s.matchDayId}`:e=s.matchDayAbbreviation)}e==="FINAL"&&(e="F")}else e=this.regularLeague[this.data.matchday_abbreviation]||a;return e}},data(){return{isMinutesPlayedModalVisible:!1,teamSelected:0,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",gameSelected:0,urlDownload:""}},methods:{sendCountedIncrement(){ie.post(de(`https://xqkvd3q4q2.execute-api.us-east-2.amazonaws.com/prod/users/${this.userid}/downloads/counter`,this.providerId,this.isDevApis),{user_id:this.userid,type:1},{headers:{"Content-Type":"application/json",Authorization:this.token}}).catch(e=>console.error("Error al actualizar el contador de descargas:",e))},downloadDuplicate(e){const n=document.createElement("a");n.href=e||this.urlDownload,n.setAttribute("download",this.dataplayer.player_name+"-"+this.team+"-"+this.player+"-"+this.gameSelected+"-minutos-jugados.mp4"),document.body.appendChild(n),this.$refs.modaldownloadfinished.show(),n.click(),document.body.removeChild(n),this.urlDownload="",this.gameSelected=0,this.sendCountedIncrement()},async openModalMinutesPlayed(e){if(this.type===1){const n=await ie.get(de(`https://xqkvd3q4q2.execute-api.us-east-2.amazonaws.com/prod/users/${this.userid}/downloads/counter`,this.providerId,this.isDevApis),{headers:{"Content-Type":"application/json",Authorization:this.token}});if(n.data&&n.data.count<n.data.limit){const a={team_id:e.team_id||this.team,user_id:this.userid,game_id:e.game_id,season_id:this.seasonid,player:{name:this.dataplayer.player_name,player_id:this.player}};this.gameSelected=e.game_id,ie.post(de("https://s8i5bvi7ej.execute-api.us-east-2.amazonaws.com/prod/minutesPlayed/players/downloads",this.providerId,this.isDevApis),a,{headers:{"Content-Type":"application/json",Authorization:this.token}}).then(o=>{if(o.data.url)o.data.downloaded_by_user===1?(this.urlDownload=o.data.url,this.$refs.duplicateModal.showModal()):o.data.downloaded_by_user===0&&this.downloadDuplicate(o.data.url);else if(o.data.id){const s=JSON.parse(localStorage.getItem("downloadQueue")||"[]");s.push({hash:"player",processId:{process_id:o.data.id+a.game_id+this.team,id:o.data.id,team:this.team,player:this.player,game:a.game_id}}),localStorage.setItem("downloadQueue",JSON.stringify(s)),this.sendCountedIncrement(),this.$emit("active-processes",o.data.id)}}).catch(o=>{console.error("Error en la petición:",o)})}else setTimeout(()=>{this.$refs.limitedModal.showModal()},200)}else this.isMinutesPlayedModalVisible=!0,this.teamSelected=this.team,this.gameSelected=e.game_id},closeMinutesPlayedModal(){this.isMinutesPlayedModalVisible=!1},activeProcesses(e){this.$emit("active-processes",e)},onclickPlayVideos(e){if(!this.data.canPlayVideos)return;let n=[],a=[],o=0;const s=[56,57,59,60,326,213,214,215,216,583,584,122,123,124,125,585,586,128,129,130,131,133,327,587,588,136,137,138,139,589,590,142,143,144,145,146,147,485,486,487,488,489,490,491,492,10,27,597,598,538,539,599,600,541,542,601,602,545,546,603,604,548,549,561,562,100,563,564,103,104,105,106,107,108,565,566,111,567,568,114,115,116,117,118,119,4,88,5,34,402,459,460,461,233,403,456,457,458,236,404,453,454,455,240,405,450,451,452,243,408,447,448,449,283,409,444,445,446,285,410,441,442,443,290,411,438,439,440,292,412,435,436,437,297,414,415,416,417,244,418,419,420,421,401,581,582,331,506,530,579,580,334,507,531,577,578,344,508,532,575,576,424,509,533,573,574,341,529,534,571,572,340,528,535,569,570,427,527,536,348,349,350,465,352,353,354,466,14,52,15,53,218,219,220,221,496,497,498,499,500,501,502,503,217,504,505,521,522,543,33,209,208,517,206,207,26,325,16,51,463,151,154,156,591,592,159,162,163,429,165,593,594,168,171,172,430,174,595,596,177,180,181,431,467,358,361,363,366,369,370,469,372,376,378,379,470,381,385,387,388,471,607,608,210,212],i=[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],r=[14,52,15,53,300,301,308,309,310,311,304,305,306,307,260,261,312,265,266,267,268,313,314,43,324,323,478,479,480,481,474,475,476,477,40,26,325,16,51,462,463,151,154,156,591,592,159,162,163,429,165,593,594,168,171,172,430,174,595,596,177,180,181,431,467,358,361,363,366,369,370,469,372,376,378,379,470,381,385,387,388,471,607,608,262,263],l=[42,55,324,323,608,39,774,802,52,53,40,54],m=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39],c=[607,608,12,55,54,35,14,52,15,53,466,477];if(e.category!=-1){var d=[];e.type==2?e.position_id==1?e.category==0?e.relevant?d=l:d=r:d=e.category:e.category==0?e.relevant?d=i:d=s:d=e.category:e.type==3?e.category==0?d=m:d=e.category:e.category!=0?d=e.category:d=c,this.type===1?(n=this.player&&this.player!==0?[this.player]:[],a=this.position===1?this.player&&this.player!==0?[this.player]:[]:[],e.relevant&&(d=this.position==1?l:i)):(e.relevant&&(d=m),n=[],a=[],o=this.team);const y=[1,2,3];let p={seasonId:e.season_id,mainSectionType:1,playListType:this.type===1?2:3,categoryIds:d,gameIds:e.game_id?[e.game_id]:null,playerIds:n,goalkeeperIds:a,teamId:o,matchResult:e.matchResult?[data.matchResult]:y,playData:{},advancedFilter:{playListTitle:""}};e.category!==0&&(p.advancedFilter.mainCategoryId=e.category),this.$emit("openmedia",p)}},getText(e){return{title:e.hasStats===2||!this.matchs[this.data.game_id]&&e.game_status===1?"No tuvo actividad":"Partido en proceso",subtitle:e.hasStats===2||!this.matchs[this.data.game_id]&&e.game_status===1?"en este partido":"de captura"}},formatTime(e){const[n,a]=e.split(":"),o=+n%24;return(o%12||12)+":"+a+(o<12?" AM":" PM")}}},sl=["src"],il=[t.createElementVNode("path",{d:"M1.01561 8.6461C0.94175 8.60535 0.880014 8.54446 0.837058 8.47001C0.794103 8.39555 0.771558 8.31035 0.771853 8.22359V0.572325C0.771955 0.48586 0.794648 0.401039 0.837519 0.326879C0.88039 0.25272 0.941838 0.191993 1.01533 0.151155C1.08882 0.110316 1.17161 0.0908924 1.2549 0.0949482C1.33818 0.0990039 1.41885 0.126388 1.48833 0.174188L7.02253 4.00027C7.08574 4.04386 7.13758 4.10298 7.17344 4.17236C7.2093 4.24174 7.22806 4.31924 7.22806 4.39796C7.22806 4.47668 7.2093 4.55417 7.17344 4.62356C7.13758 4.69294 7.08574 4.75205 7.02253 4.79564L1.48833 8.62263C1.41896 8.67053 1.33835 8.69802 1.2551 8.70215C1.17185 8.70629 1.08908 8.68691 1.01561 8.6461Z",fill:"#CBEE6B"},null,-1)],rl=["src"],ll=[t.createElementVNode("img",{width:"9",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-descargar@3xgreen.png"},null,-1),t.createElementVNode("div",{style:{"margin-left":"5px"}},"Minutos jugados",-1)],cl=[t.createElementVNode("div",{style:{"margin-left":"5px"}},"Minutos jugados",-1)],dl=[t.createElementVNode("path",{d:"M0.454162 8.88724C0.391152 8.84552 0.338487 8.78319 0.301843 8.70698C0.265199 8.63076 0.245966 8.54354 0.246218 8.45472V0.622219C0.246305 0.533706 0.265663 0.446876 0.302236 0.37096C0.338808 0.295044 0.391227 0.232878 0.453921 0.191073C0.516615 0.149267 0.58724 0.129383 0.658289 0.133535C0.729338 0.137687 0.798156 0.165719 0.857426 0.214652L5.5785 4.13136C5.63242 4.17598 5.67665 4.2365 5.70723 4.30753C5.73782 4.37855 5.75383 4.45789 5.75383 4.53847C5.75383 4.61905 5.73782 4.69839 5.70723 4.76941C5.67665 4.84044 5.63242 4.90095 5.5785 4.94557L0.857426 8.86321C0.798247 8.91225 0.729482 8.94039 0.658464 8.94462C0.587446 8.94885 0.516836 8.92902 0.454162 8.88724Z",fill:"#CBEE6B"},null,-1)],ml=[t.createElementVNode("path",{d:"M0.454162 8.88724C0.391152 8.84552 0.338487 8.78319 0.301843 8.70698C0.265199 8.63076 0.245966 8.54354 0.246218 8.45472V0.622219C0.246305 0.533706 0.265663 0.446876 0.302236 0.37096C0.338808 0.295044 0.391227 0.232878 0.453921 0.191073C0.516615 0.149267 0.58724 0.129383 0.658289 0.133535C0.729338 0.137687 0.798156 0.165719 0.857426 0.214652L5.5785 4.13136C5.63242 4.17598 5.67665 4.2365 5.70723 4.30753C5.73782 4.37855 5.75383 4.45789 5.75383 4.53847C5.75383 4.61905 5.73782 4.69839 5.70723 4.76941C5.67665 4.84044 5.63242 4.90095 5.5785 4.94557L0.857426 8.86321C0.798247 8.91225 0.729482 8.94039 0.658464 8.94462C0.587446 8.94885 0.516836 8.92902 0.454162 8.88724Z",fill:"#CBEE6B"},null,-1)],hl=[t.createElementVNode("path",{d:"M0.454162 8.88724C0.391152 8.84552 0.338487 8.78319 0.301843 8.70698C0.265199 8.63076 0.245966 8.54354 0.246218 8.45472V0.622219C0.246305 0.533706 0.265663 0.446876 0.302236 0.37096C0.338808 0.295044 0.391227 0.232878 0.453921 0.191073C0.516615 0.149267 0.58724 0.129383 0.658289 0.133535C0.729338 0.137687 0.798156 0.165719 0.857426 0.214652L5.5785 4.13136C5.63242 4.17598 5.67665 4.2365 5.70723 4.30753C5.73782 4.37855 5.75383 4.45789 5.75383 4.53847C5.75383 4.61905 5.73782 4.69839 5.70723 4.76941C5.67665 4.84044 5.63242 4.90095 5.5785 4.94557L0.857426 8.86321C0.798247 8.91225 0.729482 8.94039 0.658464 8.94462C0.587446 8.94885 0.516836 8.92902 0.454162 8.88724Z",fill:"#CBEE6B"},null,-1)],yl=[t.createElementVNode("path",{d:"M0.454162 8.88724C0.391152 8.84552 0.338487 8.78319 0.301843 8.70698C0.265199 8.63076 0.245966 8.54354 0.246218 8.45472V0.622219C0.246305 0.533706 0.265663 0.446876 0.302236 0.37096C0.338808 0.295044 0.391227 0.232878 0.453921 0.191073C0.516615 0.149267 0.58724 0.129383 0.658289 0.133535C0.729338 0.137687 0.798156 0.165719 0.857426 0.214652L5.5785 4.13136C5.63242 4.17598 5.67665 4.2365 5.70723 4.30753C5.73782 4.37855 5.75383 4.45789 5.75383 4.53847C5.75383 4.61905 5.73782 4.69839 5.70723 4.76941C5.67665 4.84044 5.63242 4.90095 5.5785 4.94557L0.857426 8.86321C0.798247 8.91225 0.729482 8.94039 0.658464 8.94462C0.587446 8.94885 0.516836 8.92902 0.454162 8.88724Z",fill:"#CBEE6B"},null,-1)],fl=["onClick"],pl=[t.createElementVNode("path",{d:"M0.454162 8.88724C0.391152 8.84552 0.338487 8.78319 0.301843 8.70698C0.265199 8.63076 0.245966 8.54354 0.246218 8.45472V0.622219C0.246305 0.533706 0.265663 0.446876 0.302236 0.37096C0.338808 0.295044 0.391227 0.232878 0.453921 0.191073C0.516615 0.149267 0.58724 0.129383 0.658289 0.133535C0.729338 0.137687 0.798156 0.165719 0.857426 0.214652L5.5785 4.13136C5.63242 4.17598 5.67665 4.2365 5.70723 4.30753C5.73782 4.37855 5.75383 4.45789 5.75383 4.53847C5.75383 4.61905 5.73782 4.69839 5.70723 4.76941C5.67665 4.84044 5.63242 4.90095 5.5785 4.94557L0.857426 8.86321C0.798247 8.91225 0.729482 8.94039 0.658464 8.94462C0.587446 8.94885 0.516836 8.92902 0.454162 8.88724Z",fill:"#CBEE6B"},null,-1)],ul=["onClick"],gl=[t.createElementVNode("path",{d:"M0.454162 8.88724C0.391152 8.84552 0.338487 8.78319 0.301843 8.70698C0.265199 8.63076 0.245966 8.54354 0.246218 8.45472V0.622219C0.246305 0.533706 0.265663 0.446876 0.302236 0.37096C0.338808 0.295044 0.391227 0.232878 0.453921 0.191073C0.516615 0.149267 0.58724 0.129383 0.658289 0.133535C0.729338 0.137687 0.798156 0.165719 0.857426 0.214652L5.5785 4.13136C5.63242 4.17598 5.67665 4.2365 5.70723 4.30753C5.73782 4.37855 5.75383 4.45789 5.75383 4.53847C5.75383 4.61905 5.73782 4.69839 5.70723 4.76941C5.67665 4.84044 5.63242 4.90095 5.5785 4.94557L0.857426 8.86321C0.798247 8.91225 0.729482 8.94039 0.658464 8.94462C0.587446 8.94885 0.516836 8.92902 0.454162 8.88724Z",fill:"#CBEE6B"},null,-1)],Cl={key:1},bl={key:0},wl=t.createElementVNode("br",null,null,-1),_l=t.createElementVNode("br",null,null,-1);function El(e,n,a,o,s,i){const r=t.resolveComponent("GSCModalDownloadMinutesPlayed"),l=t.resolveComponent("GSCModalDownloadFinished"),m=t.resolveComponent("GSCModalDownloadDuplicate"),c=t.resolveComponent("GSCModalDownloadLimited");return a.data&&Object.keys(a.data).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.matchCard)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.tableContainer),id:"match-card"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.headCard),id:"card-head"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchDate)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.liveButon),id:"matchday"},[t.createElementVNode("b",{class:t.normalizeClass(e.$style.live)},t.toDisplayString(i.matchDayName),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.dateHour)},t.toDisplayString(new Date(a.data.date_time_utc).toLocaleDateString("es-ES",{weekday:"long",month:"long",day:"numeric"}).replace(",","")[0].toUpperCase()+new Date(a.data.date_time_utc).toLocaleDateString("es-ES",{weekday:"short",month:"short",day:"numeric"}).replace(",","").substring(1))+" | "+t.toDisplayString(i.formatTime(a.data.schedule)),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchResult)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerTeams)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.escudos)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.chivasIcon),alt:"",src:`https://golstatsimages.blob.core.windows.net/teams-80/${a.data.home_team}.png`},null,10,sl)],2)],2),a.data.game_status!=4&&a.data.hasStats?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.score),id:"match-score",onClick:n[0]||(n[0]=d=>i.onclickPlayVideos({category:a.data.hasStats==1&&a.data.game_status!=4?0:-1,season_id:a.seasonid,game_id:a.data.game_id,type:a.type==2?3:2,position_id:a.position,player_id:a.player,team_id:a.team,relevant:a.matchs[a.data.game_id]?!!a.matchs[a.data.game_id].has_relevans:!0}))},[t.withDirectives((t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.btnPlayIcon),width:"8",height:"9",viewBox:"0 0 8 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},il,2)),[[t.vShow,a.data.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div)},t.toDisplayString(a.data.score[0]),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div)},"-",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div)},t.toDisplayString(a.data.score[1]),3)],2)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.scoreNoButton),id:"match-score"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.div)},t.toDisplayString(a.data.score[0]),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div)},"-",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div)},t.toDisplayString(a.data.score[1]),3)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.escudos)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.chivasIcon),alt:"",src:`https://golstatsimages.blob.core.windows.net/teams-80/${a.data.visiting_team}.png`},null,10,rl)],2)],2)],2)],2),a.data.canPlayVideos?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.btnHightlights)},[a.matchs[a.data.game_id]?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.bootomHightlights),onClick:n[1]||(n[1]=d=>i.openModalMinutesPlayed(a.data))},ll,2)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.bootomHightlightsBlocked)},cl,2))],2)):t.createCommentVNode("",!0)],2),a.matchs[a.data.game_id]?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.rowsContainer),id:"rows-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.rowTable)},[a.type==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.content)},"Titular",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.totalContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.playButton)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.searchField)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.vuesaxlinearsearchNormalParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.searchField1)},"Por categoría",2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.content1)},[a.matchs[a.data.game_id]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(a.matchs[a.data.game_id].isTitular==1?"Si":"No"),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("0000")],64))],2)],2)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.content)},"Resultado:",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.totalContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.content1),style:{width:"auto"}},[a.matchs[a.data.game_id]&&a.matchs[a.data.game_id].result?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(a.matchs[a.data.game_id].result==1?"Ganado":a.matchs[a.data.game_id].result==2?"Perdido":"Empatado"),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("0000")],64))],2)],2)],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.rowTable1)},[a.type==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.content)},"Minutos jugados",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.totalContainer1)},[a.matchs[a.data.game_id]&&a.matchs[a.data.game_id].minutes>0?t.withDirectives((t.openBlock(),t.createElementBlock("button",{key:0,class:t.normalizeClass(e.$style.btnPlay),id:"btn-play",onClick:n[2]||(n[2]=d=>i.onclickPlayVideos({game_id:a.data.game_id,category:0,position_id:a.position,season_id:a.seasonid,player_id:a.player,team_id:a.team,type:a.type==0?3:2}))},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.icnPlayIcon),width:"6",height:"9",viewBox:"0 0 6 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},dl,2))],2)),[[t.vShow,a.data.canPlayVideos]]):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.content3)},[a.matchs[a.data.game_id]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(a.matchs[a.data.game_id].minutes),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("0000")],64))],2)],2)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.content)},"xG:",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.totalContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.content3)},[a.matchs[a.data.game_id]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(a.matchs[a.data.game_id].xg.toFixed(2)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("0000")],64))],2)],2)],64))],2),a.type==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.rowTable)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.content)},"Goles",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.totalContainer1)},[a.matchs[a.data.game_id]&&a.matchs[a.data.game_id].goals>0?t.withDirectives((t.openBlock(),t.createElementBlock("button",{key:0,class:t.normalizeClass(e.$style.btnPlay),id:"btn-play",onClick:n[3]||(n[3]=d=>i.onclickPlayVideos({game_id:a.data.game_id,category:a.type==0?[12,55]:a.position==1?[55]:[12],season_id:a.seasonid,position_id:a.position,player_id:a.player,team_id:a.team,type:a.type==0?3:2}))},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.icnPlayIcon),width:"6",height:"9",viewBox:"0 0 6 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ml,2))],2)),[[t.vShow,a.data.canPlayVideos]]):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.content3)},t.toDisplayString(a.matchs[a.data.game_id].goals),3)],2)],2)):t.createCommentVNode("",!0),a.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.rowTable1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.content)},"Tarjetas amarillas",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.totalContainer1)},[a.matchs[a.data.game_id]&&a.matchs[a.data.game_id].yellowcards>0?t.withDirectives((t.openBlock(),t.createElementBlock("button",{key:0,class:t.normalizeClass(e.$style.btnPlay),id:"btn-play",onClick:n[4]||(n[4]=d=>i.onclickPlayVideos({game_id:a.data.game_id,category:a.type==0?[14,52]:a.position==1?[52]:[14],season_id:a.seasonid,player_id:a.player,position_id:a.position,team_id:a.team,type:a.type==0?3:2}))},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.icnPlayIcon),width:"6",height:"9",viewBox:"0 0 6 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},hl,2))],2)),[[t.vShow,a.data.canPlayVideos]]):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.content3)},t.toDisplayString(a.matchs[a.data.game_id].yellowcards),3)],2)],2)):t.createCommentVNode("",!0),a.type==1?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(e.$style.rowTable)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.content)},"Tarjetas rojas",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.totalContainer1)},[a.matchs[a.data.game_id]&&a.matchs[a.data.game_id].redcards>0?t.withDirectives((t.openBlock(),t.createElementBlock("button",{key:0,class:t.normalizeClass(e.$style.btnPlay),id:"btn-play",onClick:n[5]||(n[5]=d=>i.onclickPlayVideos({game_id:a.data.game_id,category:a.type==0?[15,53]:a.position==1?[53]:[15],season_id:a.seasonid,player_id:a.player,position_id:a.position,team_id:a.team,type:a.type==0?3:2}))},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.icnPlayIcon),width:"6",height:"9",viewBox:"0 0 6 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},yl,2))],2)),[[t.vShow,a.data.canPlayVideos]]):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.content3)},t.toDisplayString(a.matchs[a.data.game_id].redcards),3)],2)],2)):t.createCommentVNode("",!0),a.matchs[a.data.game_id]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[a.type==1?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(a.matchs[a.data.game_id].extra_categories,(d,y)=>(t.openBlock(),t.createElementBlock("div",{key:y,class:t.normalizeClass(e.$style.rowTable1),style:t.normalizeStyle(y%2==0?"background: #172531":"background: #0d1d29")},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.content)},t.toDisplayString(d.category_name)+":",3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.totalContainer1)},[d.total>0&&d.category_name!="xG "?t.withDirectives((t.openBlock(),t.createElementBlock("button",{key:0,class:t.normalizeClass(e.$style.btnPlay),id:"btn-play",onClick:p=>i.onclickPlayVideos({game_id:a.data.game_id,category:d.categories,season_id:a.seasonid,player_id:a.player,position_id:a.position,team_id:a.team,type:a.type==0?3:2})},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.icnPlayIcon),width:"6",height:"9",viewBox:"0 0 6 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},pl,2))],10,fl)),[[t.vShow,a.data.canPlayVideos]]):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.content3)},[d.category_name=="xG "?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(d.total.toFixed(2)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(d.total),1)],64))],2)],2)],6))),128)):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(a.matchs[a.data.game_id].extra_categories,(d,y)=>(t.openBlock(),t.createElementBlock("div",{key:y,class:t.normalizeClass(e.$style.rowTable1),style:t.normalizeStyle(y%2==0?"background: #0d1d29":"background: #172531")},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.content)},t.toDisplayString(d.category_name)+":",3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.totalContainer1)},[d.total>0?t.withDirectives((t.openBlock(),t.createElementBlock("button",{key:0,class:t.normalizeClass(e.$style.btnPlay),id:"btn-play",onClick:p=>i.onclickPlayVideos({game_id:a.data.game_id,category:d.categories,season_id:a.seasonid,player_id:a.player,position_id:a.position,team_id:a.team,type:a.type==0?3:2})},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.icnPlayIcon),width:"6",height:"9",viewBox:"0 0 6 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},gl,2))],10,ul)),[[t.vShow,a.data.canPlayVideos]]):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.content3)},[d.category_name=="xG "?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(d.total.toFixed(2)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(d.total),1)],64))],2)],2)],6))),128))],64)):t.createCommentVNode("",!0)],2)):(t.openBlock(),t.createElementBlock("div",Cl,[a.data.hasStats!==1?(t.openBlock(),t.createElementBlock("div",bl,[a.data.game_status!==4?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.letter)},[t.createTextVNode(" No tuvo actividad "),wl,t.createTextVNode("en ese partido ")],2)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.letter)},[t.createTextVNode("Partido próximo "),_l,t.createTextVNode("a jugarse")],2))])):t.createCommentVNode("",!0)]))],2),t.createVNode(r,{isVisible:s.isMinutesPlayedModalVisible,onClose:i.closeMinutesPlayedModal,onActiveProcesses:i.activeProcesses,team:s.teamSelected,user:a.userid,season:a.seasonid,game:s.gameSelected,"provider-id":a.providerId,"is-dev-apis":a.isDevApis},null,8,["isVisible","onClose","onActiveProcesses","team","user","season","game","provider-id","is-dev-apis"]),t.createVNode(l,{ref:"modaldownloadfinished",message:"El video se ha descargado"},null,512),t.createVNode(m,{ref:"duplicateModal",onAcceptDownload:i.downloadDuplicate,onCancelDownload:e.hide},null,8,["onAcceptDownload","onCancelDownload"]),t.createVNode(c,{ref:"limitedModal"},null,512)],2)):t.createCommentVNode("",!0)}const kl=pe(ol,[["render",El],["__cssModules",{$style:nl}]]),Tm="",Vm="",Nl={name:"MatchByMatch",components:{SummaryMatchContainer:kl,GSCSlider:ks},props:{matchs:{type:Array,default:()=>[]},games:{type:Array,default:()=>[]},type:{type:Number,default:1},seasonid:{type:Number,default:0},userid:{type:Number,default:0},team:{type:Number,default:0},player:{type:Number,default:0},season:{type:Number},position:{type:Number,default:0},isCup:{type:Boolean,default:!1},canPlayVideos:{type:Boolean,default:!0},dataplayer:{type:Object,default:()=>({})},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])},tournamentType:{type:Number,default:0},providerId:{type:Number,default:0},isDevApis:{type:Boolean,default:!1}},data(){return{indexPc:[0,1,2,3,4,5],indexPcMedium:[0,1,2,3],indexTablet:[0,1],indexMovil:[0],updateC:0}},watch:{},computed:{gamesComputed(){return this.games?this.games.map(e=>{const n=e.home_team===this.team?1:2;return{...e,canPlayVideos:this.canPlayVideos&&this.videoPrivilegesPlayingAs.has(n)}}):[]}},methods:{openmedia(e){this.$emit("openmedia",e)},activeProcesses(e){this.$emit("active-processes",e)}}},Bl={class:"matchbymatch"};function Dl(e,n,a,o,s,i){const r=t.resolveComponent("SummaryMatchContainer"),l=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",Bl,[t.createVNode(l,{backgroundColor:"#172531",pxScroll:260,arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"none",arrowsContainerBgR:"none",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.gamesComputed,(m,c)=>(t.openBlock(),t.createElementBlock("div",{key:c,class:"matchbymatch-summary",style:t.normalizeStyle(c==0?"margin-left: 0px !important;":"")},[t.createVNode(r,{data:m,matchs:a.matchs,isCup:a.isCup,season:a.season,onActiveProcesses:i.activeProcesses,seasonid:a.seasonid,team:a.team,dataplayer:a.dataplayer,userid:a.userid,player:a.player,position:a.position,"tournament-type":a.tournamentType,"provider-id":a.providerId,"is-dev-apis":a.isDevApis,onOpenmedia:i.openmedia,type:a.type},null,8,["data","matchs","isCup","season","onActiveProcesses","seasonid","team","dataplayer","userid","player","position","tournament-type","provider-id","is-dev-apis","onOpenmedia","type"])],4))),128))]),_:1})])}const Sl=pe(Nl,[["render",Dl],["__scopeId","data-v-0120fe4e"]]),Tl="https://example-api.golstats.com/prod/playOffAbbreviationsStructure";async function Vl(e,n={},a=3){let o;for(let s=0;s<a;s++)try{const i=await fetch(e,n);if(!i.ok)throw new Error(`HTTP ${i.status}: ${i.statusText}`);return await i.json()}catch(i){o=i,s<a-1&&await new Promise(r=>setTimeout(r,1e3*(s+1)))}throw o}async function Al(e=0){if(e===0)return ee(re);try{const n=await Vl(`${Tl}/${e}`);return ee(n)}catch{return ee(re)}}const Im="",Il={components:{GSCGeneral:Wo,GSCLastGame:hs,GSCMatchByMatch:Sl},props:{data:{type:Object,required:()=>{}},type:{type:Number,required:0},canPlayVideos:{type:Boolean,default:!0},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])},providerId:{type:Number,default:0},isDevApis:{type:Boolean,default:!1}},setup(e){const n=t.ref(ee(re));return t.provide("playOffAbbreviationsStructure",n),t.watch(()=>e.providerId,async a=>{try{n.value=await Al(a)}catch{n.value=ee(re)}},{immediate:!0}),{playOffStructure:n}},watch:{data:{immediate:!0,handler:function(e,n){const a=!n||JSON.stringify(e)!==JSON.stringify(n);e&&a&&(this.resetData(),this.fillDataGeneral(e))}}},data(){return{seasonId:0,dataMatchByMatch:{},allGames:[],gamesByTeam:[],lastGame:[],lastGameInfo:[],dataSeason:[],update:0,seasonName:"",uniqueTeamIds:[],mainTeamId:null,secondaryTeamId:null,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{},methods:{activeProcesses(e){this.$emit("active-processes",e)},openmedia(e){this.$emit("openmedia",e)},resetData(){this.seasonId=0,this.dataMatchByMatch={},this.allGames=[],this.gamesByTeam=[],this.lastGame=[],this.lastGameInfo=[],this.dataSeason=[],this.seasonName=""},filterDuplicateGames(e,n){return e.filter(o=>o.team_id===this.mainTeamId?!(n.find(i=>i.matchday_id===o.matchday_id&&i.team_id!==this.mainTeamId)&&o.game_status===1):n.some(s=>s.game_id===o.game_id))},async fillDataGeneral(e){try{this.resetData();const a=new Set;var n="";e.type==1?n=de(`https://ikhibrrvce.execute-api.us-east-2.amazonaws.com/prod/details-per-game/seasons/${e.season}/players/${e.player}`,this.providerId,this.isDevApis):n=de(`https://ikhibrrvce.execute-api.us-east-2.amazonaws.com/prod/details-per-game/seasons/${e.season}/teams/${e.team}`,this.providerId,this.isDevApis);const o=de(`https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/${e.season}/`,this.providerId,this.isDevApis),s=ie.create({headers:{Authorization:`${this.token}`}});await ie.all([s.get(n),s.get(o)]).then(ie.spread((i,r)=>{var d;const l=new Map;if(i.data){for(let y=0;y<i.data.information_by_game.length;y++)if(e.type==1){const p=i.data.information_by_game[y];l.set(p.game_id,{hasStats:p.has_stats}),this.dataMatchByMatch[p.game_id]=[],this.dataMatchByMatch[p.game_id].game=p.game_id;const C=r.data.games.find(g=>g.game_id===p.game_id);this.dataMatchByMatch[p.game_id].date=C?C.date:null,this.dataMatchByMatch[p.game_id].isTitular=p.started_as_titular,this.dataMatchByMatch[p.game_id].minutes=p.minutes_played,this.dataMatchByMatch[p.game_id].team_id=p.team_id,a.add(p.team_id),this.dataMatchByMatch[p.game_id].has_relevans=p.has_relevants,this.dataMatchByMatch[p.game_id].goals=p.goals,this.dataMatchByMatch[p.game_id].yellowcards=p.yellow_cards,this.dataMatchByMatch[p.game_id].redcards=p.red_cards;let u=Object.keys(p.extra_categories[0])[0];this.dataMatchByMatch[p.game_id].extra_categories=p.extra_categories[0][u]}else{const p=i.data.information_by_game[y];l.set(p.game_id,{hasStats:p.has_stats}),this.dataMatchByMatch[p.game_id]=[],this.dataMatchByMatch[p.game_id].game=p.game_id,this.dataMatchByMatch[p.game_id].result=p.result,this.dataMatchByMatch[p.game_id].xg=p.xg,this.dataMatchByMatch[p.game_id].extra_categories=p.extra_categories}if(e.type==1){this.dataSeason.games_as_bench=i.data.season_information.games_as_bench,this.dataSeason.games_as_titular=i.data.season_information.games_as_titular,this.dataSeason.goals=i.data.season_information.goals,this.dataSeason.minutesPlayed=i.data.season_information.minutesPlayed,this.dataSeason.red_cards=i.data.season_information.red_cards,this.dataSeason.yellow_cards=i.data.season_information.yellow_cards;let y=Object.keys(i.data.season_information.extra_categories[0])[0];this.dataSeason.extra_categories=i.data.season_information.extra_categories[0][y]}else this.dataSeason.goals=i.data.season_information.goals,this.dataSeason.goals_received=i.data.season_information.goals_received,this.dataSeason.ranking=i.data.season_information.ranking,this.dataSeason.xg=i.data.season_information.xg,this.dataSeason.extra_categories=i.data.season_information.extra_categories}this.uniqueTeamIds=Array.from(a);const m=this.uniqueTeamIds.map(y=>{const p=r.data.games.filter(C=>{const u=this.dataMatchByMatch[C.game_id],g=C.home_team===y||C.visiting_team===y;return u&&g}).sort((C,u)=>new Date(u.date)-new Date(C.date))[0];return{teamId:y,lastGameDate:p?new Date(p.date):null}});if(e.type==1?(m.sort((y,p)=>p.lastGameDate-y.lastGameDate),this.mainTeamId=m[0].teamId,this.secondaryTeamId=(d=m[1])==null?void 0:d.teamId,this.gamesByTeam=r.data.games.reduce((y,p)=>{if(this.uniqueTeamIds.includes(p.home_team)||this.uniqueTeamIds.includes(p.visiting_team)){const C=l.get(p.game_id);p.hasStats=C?C.hasStats:null,p.home_team===this.secondaryTeamId||p.visiting_team===this.secondaryTeamId?p.team_id=this.secondaryTeamId:p.team_id=this.mainTeamId,y.push(p)}return y},[])):this.gamesByTeam=r.data.games.reduce((y,p)=>{if(p.home_team===i.data.team_id||p.visiting_team===i.data.team_id){const C=l.get(p.game_id);p.hasStats=C?C.hasStats:null,y.push(p)}return y},[]),this.uniqueTeamIds.length>1){this.gamesByTeam=this.gamesByTeam.filter(p=>p.home_team===this.mainTeamId||p.visiting_team===this.mainTeamId?!0:this.dataMatchByMatch[p.game_id]!==void 0);const y=this.gamesByTeam.filter(p=>this.dataMatchByMatch[p.game_id]&&this.dataMatchByMatch[p.game_id].team_id==this.secondaryTeamId?(p.team_id=this.dataMatchByMatch[p.game_id].team_id,!0):!1);this.uniqueTeamIds.length>1&&(this.gamesByTeam=this.filterDuplicateGames(this.gamesByTeam,y))}this.gamesByTeam=this.gamesByTeam.sort((y,p)=>y.date>p.date?1:p.date>y.date?-1:0);let c=0;for(let y=0;y<this.gamesByTeam.length;y++)this.dataMatchByMatch[this.gamesByTeam[y].game_id]&&(c=this.dataMatchByMatch[this.gamesByTeam[y].game_id]);this.lastGame=c,this.lastGameInfo=this.gamesByTeam.find(y=>y.game_id===c.game),this.seasonName="",this.update+=1}))}catch(a){throw new Error(a)}}}};function Pl(e,n,a,o,s,i){const r=t.resolveComponent("GSCGeneral"),l=t.resolveComponent("GSCLastGame"),m=t.resolveComponent("GSCMatchByMatch");return t.openBlock(),t.createElementBlock("div",null,[a.type==0?(t.openBlock(),t.createBlock(r,{season:a.data.season_name,match:s.dataSeason,seasonid:a.data.season,team:a.data.team,"tournament-type":a.data.tournamentType,player:a.data.player,type:a.data.type,position:a.data.position,key:s.update,"can-play-videos":a.canPlayVideos,"video-privileges-playing-as":a.videoPrivilegesPlayingAs,onOpenmedia:i.openmedia},null,8,["season","match","seasonid","team","tournament-type","player","type","position","can-play-videos","video-privileges-playing-as","onOpenmedia"])):t.createCommentVNode("",!0),a.type==1?(t.openBlock(),t.createBlock(l,{game:s.lastGameInfo,match:s.lastGame,type:a.data.type,"tournament-type":a.data.tournamentType,player:a.data.player,isCup:a.data.isCup,seasonid:a.data.season,team:a.data.team,position:a.data.position,key:s.update,"can-play-videos":a.canPlayVideos,"video-privileges-playing-as":a.videoPrivilegesPlayingAs,onOpenmedia:i.openmedia},null,8,["game","match","type","tournament-type","player","isCup","seasonid","team","position","can-play-videos","video-privileges-playing-as","onOpenmedia"])):t.createCommentVNode("",!0),a.type==2?(t.openBlock(),t.createBlock(m,{games:s.gamesByTeam,matchs:s.dataMatchByMatch,type:a.data.type,"tournament-type":a.data.tournamentType,seasonid:a.data.season,userid:a.data.user,team:a.data.team,dataplayer:a.data.dataplayer,player:a.data.player,season:a.data.season,onActiveProcesses:i.activeProcesses,position:a.data.position,isCup:a.data.isCup,key:s.update,"can-play-videos":a.canPlayVideos,"video-privileges-playing-as":a.videoPrivilegesPlayingAs,"provider-id":a.providerId,"is-dev-apis":a.isDevApis,onOpenmedia:i.openmedia},null,8,["games","matchs","type","tournament-type","seasonid","userid","team","dataplayer","player","season","onActiveProcesses","position","isCup","can-play-videos","video-privileges-playing-as","provider-id","is-dev-apis","onOpenmedia"])):t.createCommentVNode("",!0)])}const Ol=pe(Il,[["render",Pl],["__scopeId","data-v-f4c19e46"]]);Q.GSCInfoGame=Ol,Object.defineProperty(Q,Symbol.toStringTag,{value:"Module"})});
|
|
14
|
+
`+s)}}catch{}}throw a}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=ae(this.defaults,n);const{transitional:a,paramsSerializer:o,headers:s}=n;a!==void 0&&We.assertOptions(a,{silentJSONParsing:U.transitional(U.boolean),forcedJSONParsing:U.transitional(U.boolean),clarifyTimeoutError:U.transitional(U.boolean),legacyInterceptorReqResOrdering:U.transitional(U.boolean)},!1),o!=null&&(h.isFunction(o)?n.paramsSerializer={serialize:o}:We.assertOptions(o,{encode:U.function,serialize:U.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),We.assertOptions(n,{baseUrl:U.spelling("baseURL"),withXsrfToken:U.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=s&&h.merge(s.common,s[n.method]);s&&h.forEach(["delete","get","head","post","put","patch","common"],C=>{delete s[C]}),n.headers=L.concat(i,s);const r=[];let l=!0;this.interceptors.request.forEach(function(C){if(typeof C.runWhen=="function"&&C.runWhen(n)===!1)return;l=l&&C.synchronous;const u=n.transitional||_t;u&&u.legacyInterceptorReqResOrdering?r.unshift(C.fulfilled,C.rejected):r.push(C.fulfilled,C.rejected)});const m=[];this.interceptors.response.forEach(function(C){m.push(C.fulfilled,C.rejected)});let c,d=0,y;if(!l){const C=[Qa.bind(this),void 0];for(C.unshift(...r),C.push(...m),y=C.length,c=Promise.resolve(n);d<y;)c=c.then(C[d++],C[d++]);return c}y=r.length;let p=n;for(;d<y;){const C=r[d++],u=r[d++];try{p=C(p)}catch(g){u.call(this,g);break}}try{c=Qa.call(this,p)}catch(C){return Promise.reject(C)}for(d=0,y=m.length;d<y;)c=c.then(m[d++],m[d++]);return c}getUri(e){e=ae(this.defaults,e);const n=xa(e.baseURL,e.url,e.allowAbsoluteUrls);return Ia(n,e.params,e.paramsSerializer)}};h.forEach(["delete","get","head","options"],function(e){ne.prototype[e]=function(n,a){return this.request(ae(a||{},{method:e,url:n,data:(a||{}).data}))}}),h.forEach(["post","put","patch"],function(e){function n(a){return function(o,s,i){return this.request(ae(i||{},{method:e,headers:a?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}ne.prototype[e]=n(),ne.prototype[e+"Form"]=n(!0)});let or=class nn{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(s){a=s});const o=this;this.promise.then(s=>{if(!o._listeners)return;let i=o._listeners.length;for(;i-- >0;)o._listeners[i](s);o._listeners=null}),this.promise.then=s=>{let i;const r=new Promise(l=>{o.subscribe(l),i=l}).then(s);return r.cancel=function(){o.unsubscribe(i)},r},n(function(s,i,r){o.reason||(o.reason=new _e(s,i,r),a(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const a=this._listeners.indexOf(n);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const n=new AbortController,a=o=>{n.abort(o)};return this.subscribe(a),n.signal.unsubscribe=()=>this.unsubscribe(a),n.signal}static source(){let n;return{token:new nn(function(a){n=a}),cancel:n}}};function sr(e){return function(n){return e.apply(null,n)}}function ir(e){return h.isObject(e)&&e.isAxiosError===!0}const Tt={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Tt).forEach(([e,n])=>{Tt[n]=e});function en(e){const n=new ne(e),a=ga(ne.prototype.request,n);return h.extend(a,ne.prototype,n,{allOwnKeys:!0}),h.extend(a,n,null,{allOwnKeys:!0}),a.create=function(o){return en(ae(e,o))},a}const V=en(be);V.Axios=ne,V.CanceledError=_e,V.CancelToken=or,V.isCancel=Fa,V.VERSION=Ya,V.toFormData=qe,V.AxiosError=w,V.Cancel=V.CanceledError,V.all=function(e){return Promise.all(e)},V.spread=sr,V.isAxiosError=ir,V.mergeConfig=ae,V.AxiosHeaders=L,V.formToJSON=e=>Oa(h.isHTMLForm(e)?new FormData(e):e),V.getAdapter=Xa.getAdapter,V.HttpStatusCode=Tt,V.default=V;function Ze(e,n,a){if(!n||n<=1)return e;const o=`https://${a?"dev-apis":"apis"}.golstats.com/${n}/`;let s=new URL(e).pathname;s=s.replace(/^\/(prod|qa)\//,"/");const i=s.replace(/^\//,"");return o+i}const Vt=(e,n)=>{const a=e.__vccOpts||e;for(const[o,s]of n)a[o]=s;return a},rr={name:"GSC-NotificationPush",props:{pendingProcesses:{type:Number,default:0}},data(){return{show:!1,timer:null}},methods:{showNotification(){this.show=!0,this.timer=setTimeout(()=>{this.show=!1},15e3)}},beforeUnmount(){this.timer&&clearTimeout(this.timer)}},lr={key:0,class:"notification-container"},cr={class:"notification-content"},dr={class:"notification-text"};function mr(e,n,a,o,s,i){return t.openBlock(),t.createBlock(t.Transition,{name:"slide-fade"},{default:t.withCtx(()=>[s.show?(t.openBlock(),t.createElementBlock("div",lr,[t.createElementVNode("div",cr,[n[3]||(n[3]=t.createElementVNode("div",{class:"notification-icon"},[t.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/playlist-icons/adv.png"})],-1)),t.createElementVNode("div",dr,[n[1]||(n[1]=t.createElementVNode("h4",null,"Descarga en proceso",-1)),t.createElementVNode("p",null,"Tienes "+t.toDisplayString(a.pendingProcesses)+" procesos de generación de videos pendientes",1)]),t.createElementVNode("button",{class:"close-button",onClick:n[0]||(n[0]=r=>s.show=!1)},[...n[2]||(n[2]=[t.createElementVNode("i",{class:"fas fa-times"},null,-1)])])]),n[4]||(n[4]=t.createElementVNode("div",{class:"progress-bar"},null,-1))])):t.createCommentVNode("",!0)]),_:1})}const hr=Vt(rr,[["render",mr],["__scopeId","data-v-aacd775f"]]),yr={class:"modal-header"},fr=t.defineComponent({__name:"GSC-ModalDownloadProcess",props:{playlistId:{type:String,default:""},user_id:{type:Number,default:0,required:!0},totalVideos:{type:Number,default:0,required:!0}},emits:["download-accepted"],setup(e,{expose:n,emit:a}){const o=t.ref(!1),s=t.ref(!1),i=t.ref("single"),r=()=>{o.value=!0,s.value=!1},l=()=>{i.value="single"},m=()=>{s.value||(o.value=!1,l())},c=()=>{o.value=!1,s.value=!1,l()};t.ref(null);const d=a,y=async()=>{d("download-accepted"),m()};return n({showModal:r,forceCloseModal:c}),(p,C)=>(t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(t.Transition,{name:"modal"},{default:t.withCtx(()=>[o.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"modal-overlay",onClick:m},[t.createElementVNode("div",{class:"modal-content downloading",onClick:C[0]||(C[0]=t.withModifiers(()=>{},["stop"]))},[t.createElementVNode("div",yr,[C[1]||(C[1]=t.createElementVNode("div",{class:"header-left"},[t.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icon-download-modal.png",alt:"Eliminar playlist",class:"icon-download"}),t.createElementVNode("span",null,"Descargar en proceso")],-1)),s.value?(t.openBlock(),t.createElementBlock("button",{key:0,class:"close-button",onClick:c},"×")):t.createCommentVNode("",!0)]),C[2]||(C[2]=t.createElementVNode("div",{class:"separator"},null,-1)),C[3]||(C[3]=t.createElementVNode("h3",{class:"modal-title"},"Ya se inició el proceso de descarga.",-1)),C[4]||(C[4]=t.createElementVNode("p",{class:"modal-message"}," Nota: Es importante mantener el navegador abierto y no cerrar sesion hasta que la descarga haya finalizado. ",-1)),C[5]||(C[5]=t.createElementVNode("div",{class:"separator"},null,-1)),t.createElementVNode("div",{class:"modal-buttons"},[t.createElementVNode("button",{class:"btn-download",onClick:y},"Aceptar")])])])):t.createCommentVNode("",!0)]),_:1})]))}}),pr=Vt(fr,[["__scopeId","data-v-e12ce538"]]),ur=t.defineComponent({__name:"GSC-ModalDownloadDuplicate",props:{playlistId:{type:String,default:""},user_id:{type:Number,default:0,required:!0}},emits:["cancelDownload","acceptDownload"],setup(e,{expose:n,emit:a}){const o=t.ref(!1),s=a,i=()=>{o.value=!1};n({showModal:()=>{o.value=!0}});const r=()=>{s("cancelDownload"),i()},l=()=>{s("acceptDownload"),i()};return(m,c)=>(t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(t.Transition,{name:"modal"},{default:t.withCtx(()=>[o.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"modal-overlay",onClick:i},[t.createElementVNode("div",{class:"modal-container",onClick:c[0]||(c[0]=t.withModifiers(()=>{},["stop"]))},[t.createElementVNode("div",{class:"modal-content"},[c[1]||(c[1]=t.createElementVNode("div",{class:"modal-header"},[t.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/playlist-icons/adv.png",alt:"Descargar duplicada playlist",class:"icon-duplicate"}),t.createElementVNode("span",null,"Descargar de nuevo")],-1)),c[2]||(c[2]=t.createElementVNode("div",{class:"separator"},null,-1)),c[3]||(c[3]=t.createElementVNode("p",{class:"modal-message"}," El video ya ha sido descargado. ¿Estás seguro que quieres descargarlo nuevamente? ",-1)),c[4]||(c[4]=t.createElementVNode("div",{class:"separator"},null,-1)),t.createElementVNode("div",{class:"modal-actions"},[t.createElementVNode("button",{class:"btn-cancel",onClick:r},"Cancelar"),t.createElementVNode("button",{class:"btn-acept",onClick:l},"Descargar")])])])])):t.createCommentVNode("",!0)]),_:1})]))}}),gr=(e,n)=>{const a=e.__vccOpts||e;for(const[o,s]of n)a[o]=s;return a},Cr=gr(ur,[["__scopeId","data-v-0f8e9640"]]),br=t.defineComponent({__name:"GSC-ModalDownloadLimited",props:{playlistId:{type:String,default:""},user_id:{type:Number,default:0,required:!0}},setup(e,{expose:n}){const a=t.ref(!1),o=e;t.computed(()=>o.playlistId!=""&&o.user_id>0);const s=()=>{a.value=!1};return n({showModal:()=>{a.value=!0}}),(i,r)=>(t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(t.Transition,{name:"modal"},{default:t.withCtx(()=>[a.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"modal-overlay",onClick:s},[t.createElementVNode("div",{class:"modal-container",onClick:r[0]||(r[0]=t.withModifiers(()=>{},["stop"]))},[t.createElementVNode("div",{class:"modal-content"},[r[1]||(r[1]=t.createElementVNode("div",{class:"modal-header"},[t.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/playlist-icons/adv.png",alt:"Eliminar playlist",class:"icon-limited"}),t.createElementVNode("span",null,"Limite de descargas")],-1)),r[2]||(r[2]=t.createElementVNode("div",{class:"separator"},null,-1)),r[3]||(r[3]=t.createElementVNode("p",{class:"modal-message"}," Has alcanzado el límite de descargas mensuales permitidas. Para cualquier duda, favor de contactar a tu asesor GolStats. ",-1)),r[4]||(r[4]=t.createElementVNode("div",{class:"separator"},null,-1)),t.createElementVNode("div",{class:"modal-actions"},[t.createElementVNode("button",{class:"btn-acept",onClick:s},"Aceptar")])])])])):t.createCommentVNode("",!0)]),_:1})]))}}),wr=(e,n)=>{const a=e.__vccOpts||e;for(const[o,s]of n)a[o]=s;return a},_r=wr(br,[["__scopeId","data-v-5a242c28"]]),Er=(e,n)=>{const a=e.__vccOpts||e;for(const[o,s]of n)a[o]=s;return a},kr={class:"modal-content"},Nr={class:"modal-text"},Br={__name:"GSC-ModalDownloadFinished",props:{message:{type:String,default:"Se ha iniciado la descarga"},zIndex:{type:Number,default:1}},setup(e,{expose:n}){const a=t.ref(!1);function o(){a.value=!0,setTimeout(()=>{s()},15e3)}function s(){a.value=!1}return n({show:o}),(i,r)=>(t.openBlock(),t.createBlock(t.Transition,{name:"slide-up"},{default:t.withCtx(()=>[a.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"modal-container",style:t.normalizeStyle({zIndex:e.zIndex})},[t.createElementVNode("div",kr,[r[0]||(r[0]=t.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/playlist-icons/downloadfinishedmonitor.png",alt:"Icono de descarga",class:"download-icon-2"},null,-1)),t.createElementVNode("span",Nr,t.toDisplayString(e.message),1),r[1]||(r[1]=t.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/playlist-icons/downloadfinisheddownalod.png",alt:"Icono de descarga",class:"download-icon"},null,-1))])],4)):t.createCommentVNode("",!0)]),_:1}))}},Dr=Er(Br,[["__scopeId","data-v-956c7bd9"]]),Sr={class:"modal-header"},Tr={key:0,width:"27",src:"",alt:"Eliminar playlist",class:"margin-top-10 margin-left-5"},Vr={key:1,width:"27",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-agregar@3x.png",alt:"Eliminar playlist",class:"margin-top-10 margin-left-5"},Ar={class:"modal-content"},Ir={class:"select-all"},Pr={class:"player-list-container"},Or={class:"player-list"},Rr=["onUpdate:modelValue"],zr=["src","alt"],Fr={class:"player-name"},Mr={class:"player-minutes"},Lr={class:"modal-footer"},jr={class:"selected-count"},xr={style:{"font-family":"Poppins-SemiBold","font-weight":"600"}},Ur={class:"button-container"},qr=["disabled"],Ke="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",$r={__name:"GSC-ModalDownloadMinutesPlayed",props:{isVisible:Boolean,game:Number,team:Number,season:Number,user:Number,provider:{type:Number,default:1},isDevApis:{type:Boolean,default:!1}},emits:["close","active-processes"],setup(e,{emit:n}){const a=e,o=n,s=t.ref(null),i=t.ref(0);let r=null;const l=t.ref(null),m=t.ref(null),c=t.ref(null),d=t.ref(""),y=t.ref(null),p=_=>{for(let B of _)i.value=B.contentRect.width},C=()=>{s.value&&!r&&(r=new ResizeObserver(p),r.observe(s.value),i.value=s.value.offsetWidth)};t.watch(()=>a.isVisible,_=>{_&&t.nextTick(()=>{C()})}),t.onMounted(()=>{a.isVisible&&(Ee(),k());const _=JSON.parse(localStorage.getItem("downloadQueue")||"[]");X.value=_,m.value&&(K.value=_.length)}),t.onUnmounted(()=>{r&&r.disconnect(),Object.values(Z.value).forEach(_=>clearInterval(_))});const u=t.ref([]),g=t.ref(!0),b=t.computed(()=>u.value.filter(_=>_.selected).length);function N(){u.value.forEach(_=>_.selected=g.value)}const k=()=>{document.body.style.overflow="hidden",document.body.style.paddingRight=`${window.innerWidth-document.documentElement.clientWidth}px`},D=()=>{document.body.style.overflow="",document.body.style.paddingRight=""};function S(){u.value.forEach(_=>_.selected=!0),g.value=!0,D(),o("close")}t.computed(()=>b.value===0);const I=t.ref(null),x=()=>{const{hash:_,process_id:B}=I.value;F(_,B),o("active-processes",!0),setTimeout(()=>{l.value.forceCloseModal(),S()},1e4)},O=()=>{},G=async(_="")=>{(_||d.value)&&(Qe(_||d.value),ke.value.show(),S(),d.value="",W())};function W(){V.post(Ze(`https://xqkvd3q4q2.execute-api.us-east-2.amazonaws.com/prod/users/${a.user}/downloads/counter`,a.provider,a.isDevApis),{user_id:a.user,type:1},{headers:{"Content-Type":"application/json",Authorization:Ke}}).catch(_=>console.error("Error al actualizar el contador de descargas:",_))}const Xe=async()=>{if(b.value>0){const _=await V.get(Ze(`https://xqkvd3q4q2.execute-api.us-east-2.amazonaws.com/prod/users/${a.user}/downloads/counter`,a.provider,a.isDevApis),{headers:{"Content-Type":"application/json",Authorization:Ke}});if(_.data&&_.data.count<_.data.limit){const B=u.value.filter(T=>T.selected),A={team_id:a.team,user_id:a.user,game_id:a.game,season_id:a.season,players:B.map(T=>({name:T.name,player_id:T.id}))};try{const T=await V.post(Ze("https://s8i5bvi7ej.execute-api.us-east-2.amazonaws.com/prod/minutesPlayed/teams/downloads",a.provider,a.isDevApis),A,{headers:{"Content-Type":"application/json",Authorization:Ke}});T.data.url?T.data.downloaded_by_user===1?(c.value.showModal(),d.value=T.data.url):T.data.downloaded_by_user===0&&await G(T.data.url):(I.value=T.data,l.value.showModal(),x(),W())}catch(T){console.error("Error al enviar los datos:",T)}}else S(),setTimeout(()=>{y.value.showModal()},200)}},Ee=async()=>{try{u.value=[];const _=await V.get(Ze(`https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/minutesPlayed/teams/${a.team}/players/games/${a.game}`,a.provider,a.isDevApis),{headers:{Authorization:Ke}});for(let B=0;B<_.data.players.length;B++){const A=_.data.players[B];u.value.push({id:A.player_id,name:A.name,minutes:A.minutes_played,image:A.photo,selected:!0})}}catch(_){console.error("Error al obtener los minutos jugados:",_)}};t.watch(()=>a.isVisible,_=>{_?(Ee(),t.nextTick(()=>{k()})):D()}),t.onUnmounted(()=>{D()});const K=t.ref(0),X=t.ref([]),Z=t.ref({}),ke=t.ref(null),F=(_,B)=>{const A=JSON.parse(localStorage.getItem("downloadQueue")||"[]");A.push({hash:_,processId:B}),localStorage.setItem("downloadQueue",JSON.stringify(A)),X.value=A,m.value&&(K.value=A.length)},Qe=_=>{const B=document.createElement("a");B.href=_,B.download="",document.body.appendChild(B),B.click(),document.body.removeChild(B)};return(_,B)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[(t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(t.Transition,{name:"modal"},{default:t.withCtx(()=>[e.isVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"modal-overlay",onClick:S},[t.createElementVNode("div",{class:"modal-container-minutes-played",ref_key:"modalRef",ref:s,onClick:B[1]||(B[1]=t.withModifiers(()=>{},["stop"]))},[t.createElementVNode("div",Sr,[t.createElementVNode("div",{class:t.normalizeClass(i.value>440?"title-section":"title-section-mobile")},[_.isEditing?(t.openBlock(),t.createElementBlock("img",Tr)):(t.openBlock(),t.createElementBlock("img",Vr)),B[2]||(B[2]=t.createElementVNode("span",null,"Descargar minutos jugados",-1))],2),t.createElementVNode("button",{class:"close-button",onClick:S},"×")]),t.createElementVNode("div",Ar,[t.createElementVNode("label",Ir,[t.withDirectives(t.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":B[0]||(B[0]=A=>g.value=A),onChange:N},null,544),[[t.vModelCheckbox,g.value]]),B[3]||(B[3]=t.createTextVNode(" Seleccionar todos los jugadores ",-1))]),t.createElementVNode("div",Pr,[B[4]||(B[4]=t.createElementVNode("div",{class:"player-header"},[t.createElementVNode("span",{class:"header-jugador"},"Jugador"),t.createElementVNode("span",{class:"header-minutos"},"Min. Jugados")],-1)),t.createElementVNode("div",Or,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.value,A=>(t.openBlock(),t.createElementBlock("div",{key:A.id,class:"player-item"},[t.withDirectives(t.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":T=>A.selected=T},null,8,Rr),[[t.vModelCheckbox,A.selected]]),t.createElementVNode("img",{src:A.image,alt:A.name,class:"player-image"},null,8,zr),t.createElementVNode("span",Fr,t.toDisplayString(A.name),1),t.createElementVNode("span",Mr,t.toDisplayString(A.minutes)+" min",1)]))),128))])])]),t.createElementVNode("div",Lr,[t.createElementVNode("p",jr,[B[5]||(B[5]=t.createTextVNode(" Tienes en total ",-1)),t.createElementVNode("span",xr,t.toDisplayString(b.value),1),B[6]||(B[6]=t.createTextVNode(" jugadores seleccionados. ",-1))]),t.createElementVNode("div",Ur,[t.createElementVNode("button",{class:"btn-cancel",onClick:S},"Cancelar"),t.createElementVNode("button",{class:t.normalizeClass(["btn-acept",{"btn-acept-disabled":b.value===0}]),onClick:Xe,disabled:b.value===0}," Descargar ",10,qr)])])],512)])):t.createCommentVNode("",!0)]),_:1})])),t.createVNode(hr,{ref_key:"notification",ref:m,"pending-processes":K.value},null,8,["pending-processes"]),t.createVNode(pr,{ref_key:"downloadModal",ref:l,onDownloadAccepted:S},null,512),t.createVNode(t.unref(Dr),{ref_key:"modaldownloadfinished",ref:ke,message:"El video se ha descargado"},null,512),t.createVNode(t.unref(_r),{ref_key:"limitedModal",ref:y},null,512),t.createVNode(t.unref(Cr),{ref_key:"duplicateModal",ref:c,onAcceptDownload:G,onCancelDownload:O},null,512)],64))}},Jr=Vt($r,[["__scopeId","data-v-5564f4b0"]]),Pd="",Od="",Rd="",Gr=(e,n)=>{const a=e.__vccOpts||e;for(const[o,s]of n)a[o]=s;return a},Hr={class:"modal-content"},Wr={class:"modal-text"},Zr={__name:"GSC-ModalDownloadFinished",props:{message:{type:String,default:"Se ha iniciado la descarga"},zIndex:{type:Number,default:1}},setup(e,{expose:n}){const a=t.ref(!1);function o(){a.value=!0,setTimeout(()=>{s()},15e3)}function s(){a.value=!1}return n({show:o}),(i,r)=>(t.openBlock(),t.createBlock(t.Transition,{name:"slide-up"},{default:t.withCtx(()=>[a.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"modal-container",style:t.normalizeStyle({zIndex:e.zIndex})},[t.createElementVNode("div",Hr,[r[0]||(r[0]=t.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/playlist-icons/downloadfinishedmonitor.png",alt:"Icono de descarga",class:"download-icon-2"},null,-1)),t.createElementVNode("span",Wr,t.toDisplayString(e.message),1),r[1]||(r[1]=t.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/playlist-icons/downloadfinisheddownalod.png",alt:"Icono de descarga",class:"download-icon"},null,-1))])],4)):t.createCommentVNode("",!0)]),_:1}))}},Kr=Gr(Zr,[["__scopeId","data-v-956c7bd9"]]),Xr=t.defineComponent({__name:"GSC-ModalDownloadLimited",props:{playlistId:{type:String,default:""},user_id:{type:Number,default:0,required:!0}},setup(e,{expose:n}){const a=t.ref(!1),o=e;t.computed(()=>o.playlistId!=""&&o.user_id>0);const s=()=>{a.value=!1};return n({showModal:()=>{a.value=!0}}),(i,r)=>(t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(t.Transition,{name:"modal"},{default:t.withCtx(()=>[a.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"modal-overlay",onClick:s},[t.createElementVNode("div",{class:"modal-container",onClick:r[0]||(r[0]=t.withModifiers(()=>{},["stop"]))},[t.createElementVNode("div",{class:"modal-content"},[r[1]||(r[1]=t.createElementVNode("div",{class:"modal-header"},[t.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/playlist-icons/adv.png",alt:"Eliminar playlist",class:"icon-limited"}),t.createElementVNode("span",null,"Limite de descargas")],-1)),r[2]||(r[2]=t.createElementVNode("div",{class:"separator"},null,-1)),r[3]||(r[3]=t.createElementVNode("p",{class:"modal-message"}," Has alcanzado el límite de descargas mensuales permitidas. Para cualquier duda, favor de contactar a tu asesor GolStats. ",-1)),r[4]||(r[4]=t.createElementVNode("div",{class:"separator"},null,-1)),t.createElementVNode("div",{class:"modal-actions"},[t.createElementVNode("button",{class:"btn-acept",onClick:s},"Aceptar")])])])])):t.createCommentVNode("",!0)]),_:1})]))}}),Qr=(e,n)=>{const a=e.__vccOpts||e;for(const[o,s]of n)a[o]=s;return a},Yr=Qr(Xr,[["__scopeId","data-v-5a242c28"]]),vr=/^https:\/\/[a-z0-9]+\.execute-api\.[a-z0-9-]+\.amazonaws\.com\/(prod|qa\d*|dev)\//,el=/^https:\/\/golstats-microservices\.s3[.-]us-west-2\.amazonaws\.com\//,tl="https://apis.golstats.com",al="https://dev-apis.golstats.com";function de(e,n,a=!1){if(!n||n===1)return e;const o=a?al:tl,s=e.match(vr);if(s){const r=e.replace(s[0],"");return`${o}/${n}/${r}`}const i=e.match(el);if(i){const r=e.replace(i[0],"");return`${o}/${n}/${r}`}return e}const nl={letter:"_letter_1wk7q_37",live:"_live_1wk7q_47",liveButon:"_liveButon_1wk7q_52",dateHour:"_dateHour_1wk7q_67",matchDate:"_matchDate_1wk7q_78",chivasIcon:"_chivasIcon_1wk7q_87",escudos:"_escudos_1wk7q_101",homeTeam:"_homeTeam_1wk7q_109",btnPlayIcon:"_btnPlayIcon_1wk7q_116",div:"_div_1wk7q_123",score:"_score_1wk7q_128",scoreNoButton:"_scoreNoButton_1wk7q_129",containerTeams:"_containerTeams_1wk7q_145",matchResult:"_matchResult_1wk7q_153",btnHightlights:"_btnHightlights_1wk7q_165",bootomHightlightsBlocked:"_bootomHightlightsBlocked_1wk7q_174",bootomHightlights:"_bootomHightlights_1wk7q_174",headCard:"_headCard_1wk7q_220",content:"_content_1wk7q_232",vuesaxlinearsearchNormalIcon:"_vuesaxlinearsearchNormalIcon_1wk7q_239",searchField1:"_searchField1_1wk7q_245",vuesaxlinearsearchNormalParent:"_vuesaxlinearsearchNormalParent_1wk7q_251",searchField:"_searchField_1wk7q_245",union9Icon:"_union9Icon_1wk7q_278",playButton:"_playButton_1wk7q_291",content1:"_content1_1wk7q_298",totalContainer:"_totalContainer_1wk7q_310",rowTable:"_rowTable_1wk7q_320",icnPlayIcon:"_icnPlayIcon_1wk7q_332",btnPlay:"_btnPlay_1wk7q_116",content3:"_content3_1wk7q_352",totalContainer1:"_totalContainer1_1wk7q_362",rowTable1:"_rowTable1_1wk7q_373",rowsContainer:"_rowsContainer_1wk7q_385",tableContainer:"_tableContainer_1wk7q_397",matchCard:"_matchCard_1wk7q_405"},ol={name:"SummaryMatchContainer",components:{GSCModalDownloadMinutesPlayed:Jr,GSCModalDownloadFinished:Kr,GSCModalDownloadDuplicate:Ds,GSCModalDownloadLimited:Yr},setup(){const e=t.ref(null),n=t.inject("playOffAbbreviationsStructure",t.ref(ee(re))),a=t.computed(()=>n.value.regularLeague),o=t.computed(()=>n.value.cup),s=t.computed(()=>n.value.cupLegacy),i=t.computed(()=>n.value.namesAndAbbByTournamentTypeAndMatchDayAbb);return{downloadModal:e,regularLeague:a,cup:o,cupLegacy:s,namesAndAbbByTournamentTypeAndMatchDayAbb:i}},props:{data:{type:Object,default:()=>{}},matchs:{type:Array,default:()=>[]},dataplayer:{type:Object,default:()=>({})},position:{type:Number,default:1},seasonid:{type:Number,default:0},userid:{type:Number,default:1426},team:{type:Number,default:0},player:{type:Number,default:0},type:{type:Number,default:1},season:{type:Number},isCup:{type:Boolean,default:!1},tournamentType:{type:Number,default:0},providerId:{type:Number,default:0},isDevApis:{type:Boolean,default:!1}},computed:{isInfoVisible(){return this.matchs[this.data.game_id]&&this.data.game_status!==4&&this.data.hasStats===1},matchDayName(){let e="";const n=this.data.matchday_abbreviation.replace("M",""),a=`JOR ${n}`;if([1,2].includes(this.tournamentType)||this.isCup)if(this.season===881)e=this.cupLegacy[n]||a;else{const o=this.namesAndAbbByTournamentTypeAndMatchDayAbb.get(this.tournamentType);if(o){const s=o.get(this.data.matchday_abbreviation);s&&(this.tournamentType!==2&&s.matchDayId<10?e=`JOR ${s.matchDayId}`:e=s.matchDayAbbreviation)}e==="FINAL"&&(e="F")}else e=this.regularLeague[this.data.matchday_abbreviation]||a;return e}},data(){return{isMinutesPlayedModalVisible:!1,teamSelected:0,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",gameSelected:0,urlDownload:""}},methods:{sendCountedIncrement(){ie.post(de(`https://xqkvd3q4q2.execute-api.us-east-2.amazonaws.com/prod/users/${this.userid}/downloads/counter`,this.providerId,this.isDevApis),{user_id:this.userid,type:1},{headers:{"Content-Type":"application/json",Authorization:this.token}}).catch(e=>console.error("Error al actualizar el contador de descargas:",e))},downloadDuplicate(e){const n=document.createElement("a");n.href=e||this.urlDownload,n.setAttribute("download",this.dataplayer.player_name+"-"+this.team+"-"+this.player+"-"+this.gameSelected+"-minutos-jugados.mp4"),document.body.appendChild(n),this.$refs.modaldownloadfinished.show(),n.click(),document.body.removeChild(n),this.urlDownload="",this.gameSelected=0,this.sendCountedIncrement()},async openModalMinutesPlayed(e){if(this.type===1){const n=await ie.get(de(`https://xqkvd3q4q2.execute-api.us-east-2.amazonaws.com/prod/users/${this.userid}/downloads/counter`,this.providerId,this.isDevApis),{headers:{"Content-Type":"application/json",Authorization:this.token}});if(n.data&&n.data.count<n.data.limit){const a={team_id:e.team_id||this.team,user_id:this.userid,game_id:e.game_id,season_id:this.seasonid,player:{name:this.dataplayer.player_name,player_id:this.player}};this.gameSelected=e.game_id,ie.post(de("https://s8i5bvi7ej.execute-api.us-east-2.amazonaws.com/prod/minutesPlayed/players/downloads",this.providerId,this.isDevApis),a,{headers:{"Content-Type":"application/json",Authorization:this.token}}).then(o=>{if(o.data.url)o.data.downloaded_by_user===1?(this.urlDownload=o.data.url,this.$refs.duplicateModal.showModal()):o.data.downloaded_by_user===0&&this.downloadDuplicate(o.data.url);else if(o.data.id){const s=JSON.parse(localStorage.getItem("downloadQueue")||"[]");s.push({hash:"player",processId:{process_id:o.data.id+a.game_id+this.team,id:o.data.id,team:this.team,player:this.player,game:a.game_id}}),localStorage.setItem("downloadQueue",JSON.stringify(s)),this.sendCountedIncrement(),this.$emit("active-processes",o.data.id)}}).catch(o=>{console.error("Error en la petición:",o)})}else setTimeout(()=>{this.$refs.limitedModal.showModal()},200)}else this.isMinutesPlayedModalVisible=!0,this.teamSelected=this.team,this.gameSelected=e.game_id},closeMinutesPlayedModal(){this.isMinutesPlayedModalVisible=!1},activeProcesses(e){this.$emit("active-processes",e)},onclickPlayVideos(e){if(!this.data.canPlayVideos)return;let n=[],a=[],o=0;const s=[56,57,59,60,326,213,214,215,216,583,584,122,123,124,125,585,586,128,129,130,131,133,327,587,588,136,137,138,139,589,590,142,143,144,145,146,147,485,486,487,488,489,490,491,492,10,27,597,598,538,539,599,600,541,542,601,602,545,546,603,604,548,549,561,562,100,563,564,103,104,105,106,107,108,565,566,111,567,568,114,115,116,117,118,119,4,88,5,34,402,459,460,461,233,403,456,457,458,236,404,453,454,455,240,405,450,451,452,243,408,447,448,449,283,409,444,445,446,285,410,441,442,443,290,411,438,439,440,292,412,435,436,437,297,414,415,416,417,244,418,419,420,421,401,581,582,331,506,530,579,580,334,507,531,577,578,344,508,532,575,576,424,509,533,573,574,341,529,534,571,572,340,528,535,569,570,427,527,536,348,349,350,465,352,353,354,466,14,52,15,53,218,219,220,221,496,497,498,499,500,501,502,503,217,504,505,521,522,543,33,209,208,517,206,207,26,325,16,51,463,151,154,156,591,592,159,162,163,429,165,593,594,168,171,172,430,174,595,596,177,180,181,431,467,358,361,363,366,369,370,469,372,376,378,379,470,381,385,387,388,471,607,608,210,212],i=[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],r=[14,52,15,53,300,301,308,309,310,311,304,305,306,307,260,261,312,265,266,267,268,313,314,43,324,323,478,479,480,481,474,475,476,477,40,26,325,16,51,462,463,151,154,156,591,592,159,162,163,429,165,593,594,168,171,172,430,174,595,596,177,180,181,431,467,358,361,363,366,369,370,469,372,376,378,379,470,381,385,387,388,471,607,608,262,263],l=[42,55,324,323,608,39,774,802,52,53,40,54],m=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39],c=[607,608,12,55,54,35,14,52,15,53,466,477];if(e.category!=-1){var d=[];e.type==2?e.position_id==1?e.category==0?e.relevant?d=l:d=r:d=e.category:e.category==0?e.relevant?d=i:d=s:d=e.category:e.type==3?e.category==0?d=m:d=e.category:e.category!=0?d=e.category:d=c,this.type===1?(n=this.player&&this.player!==0?[this.player]:[],a=this.position===1?this.player&&this.player!==0?[this.player]:[]:[],e.relevant&&(d=this.position==1?l:i)):(e.relevant&&(d=m),n=[],a=[],o=this.team);const y=[1,2,3];let p={seasonId:e.season_id,mainSectionType:1,playListType:this.type===1?2:3,categoryIds:d,gameIds:e.game_id?[e.game_id]:null,playerIds:n,goalkeeperIds:a,teamId:o,matchResult:e.matchResult?[data.matchResult]:y,playData:{},advancedFilter:{playListTitle:""}};e.category!==0&&(p.advancedFilter.mainCategoryId=e.category),this.$emit("openmedia",p)}},getText(e){return{title:e.hasStats===2||!this.matchs[this.data.game_id]&&e.game_status===1?"No tuvo actividad":"Partido en proceso",subtitle:e.hasStats===2||!this.matchs[this.data.game_id]&&e.game_status===1?"en este partido":"de captura"}},formatTime(e){const[n,a]=e.split(":"),o=+n%24;return(o%12||12)+":"+a+(o<12?" AM":" PM")}}},sl=["src"],il=[t.createElementVNode("path",{d:"M1.01561 8.6461C0.94175 8.60535 0.880014 8.54446 0.837058 8.47001C0.794103 8.39555 0.771558 8.31035 0.771853 8.22359V0.572325C0.771955 0.48586 0.794648 0.401039 0.837519 0.326879C0.88039 0.25272 0.941838 0.191993 1.01533 0.151155C1.08882 0.110316 1.17161 0.0908924 1.2549 0.0949482C1.33818 0.0990039 1.41885 0.126388 1.48833 0.174188L7.02253 4.00027C7.08574 4.04386 7.13758 4.10298 7.17344 4.17236C7.2093 4.24174 7.22806 4.31924 7.22806 4.39796C7.22806 4.47668 7.2093 4.55417 7.17344 4.62356C7.13758 4.69294 7.08574 4.75205 7.02253 4.79564L1.48833 8.62263C1.41896 8.67053 1.33835 8.69802 1.2551 8.70215C1.17185 8.70629 1.08908 8.68691 1.01561 8.6461Z",fill:"#CBEE6B"},null,-1)],rl=["src"],ll=[t.createElementVNode("img",{width:"9",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-descargar@3xgreen.png"},null,-1),t.createElementVNode("div",{style:{"margin-left":"5px"}},"Minutos jugados",-1)],cl=[t.createElementVNode("div",{style:{"margin-left":"5px"}},"Minutos jugados",-1)],dl=[t.createElementVNode("path",{d:"M0.454162 8.88724C0.391152 8.84552 0.338487 8.78319 0.301843 8.70698C0.265199 8.63076 0.245966 8.54354 0.246218 8.45472V0.622219C0.246305 0.533706 0.265663 0.446876 0.302236 0.37096C0.338808 0.295044 0.391227 0.232878 0.453921 0.191073C0.516615 0.149267 0.58724 0.129383 0.658289 0.133535C0.729338 0.137687 0.798156 0.165719 0.857426 0.214652L5.5785 4.13136C5.63242 4.17598 5.67665 4.2365 5.70723 4.30753C5.73782 4.37855 5.75383 4.45789 5.75383 4.53847C5.75383 4.61905 5.73782 4.69839 5.70723 4.76941C5.67665 4.84044 5.63242 4.90095 5.5785 4.94557L0.857426 8.86321C0.798247 8.91225 0.729482 8.94039 0.658464 8.94462C0.587446 8.94885 0.516836 8.92902 0.454162 8.88724Z",fill:"#CBEE6B"},null,-1)],ml=[t.createElementVNode("path",{d:"M0.454162 8.88724C0.391152 8.84552 0.338487 8.78319 0.301843 8.70698C0.265199 8.63076 0.245966 8.54354 0.246218 8.45472V0.622219C0.246305 0.533706 0.265663 0.446876 0.302236 0.37096C0.338808 0.295044 0.391227 0.232878 0.453921 0.191073C0.516615 0.149267 0.58724 0.129383 0.658289 0.133535C0.729338 0.137687 0.798156 0.165719 0.857426 0.214652L5.5785 4.13136C5.63242 4.17598 5.67665 4.2365 5.70723 4.30753C5.73782 4.37855 5.75383 4.45789 5.75383 4.53847C5.75383 4.61905 5.73782 4.69839 5.70723 4.76941C5.67665 4.84044 5.63242 4.90095 5.5785 4.94557L0.857426 8.86321C0.798247 8.91225 0.729482 8.94039 0.658464 8.94462C0.587446 8.94885 0.516836 8.92902 0.454162 8.88724Z",fill:"#CBEE6B"},null,-1)],hl=[t.createElementVNode("path",{d:"M0.454162 8.88724C0.391152 8.84552 0.338487 8.78319 0.301843 8.70698C0.265199 8.63076 0.245966 8.54354 0.246218 8.45472V0.622219C0.246305 0.533706 0.265663 0.446876 0.302236 0.37096C0.338808 0.295044 0.391227 0.232878 0.453921 0.191073C0.516615 0.149267 0.58724 0.129383 0.658289 0.133535C0.729338 0.137687 0.798156 0.165719 0.857426 0.214652L5.5785 4.13136C5.63242 4.17598 5.67665 4.2365 5.70723 4.30753C5.73782 4.37855 5.75383 4.45789 5.75383 4.53847C5.75383 4.61905 5.73782 4.69839 5.70723 4.76941C5.67665 4.84044 5.63242 4.90095 5.5785 4.94557L0.857426 8.86321C0.798247 8.91225 0.729482 8.94039 0.658464 8.94462C0.587446 8.94885 0.516836 8.92902 0.454162 8.88724Z",fill:"#CBEE6B"},null,-1)],yl=[t.createElementVNode("path",{d:"M0.454162 8.88724C0.391152 8.84552 0.338487 8.78319 0.301843 8.70698C0.265199 8.63076 0.245966 8.54354 0.246218 8.45472V0.622219C0.246305 0.533706 0.265663 0.446876 0.302236 0.37096C0.338808 0.295044 0.391227 0.232878 0.453921 0.191073C0.516615 0.149267 0.58724 0.129383 0.658289 0.133535C0.729338 0.137687 0.798156 0.165719 0.857426 0.214652L5.5785 4.13136C5.63242 4.17598 5.67665 4.2365 5.70723 4.30753C5.73782 4.37855 5.75383 4.45789 5.75383 4.53847C5.75383 4.61905 5.73782 4.69839 5.70723 4.76941C5.67665 4.84044 5.63242 4.90095 5.5785 4.94557L0.857426 8.86321C0.798247 8.91225 0.729482 8.94039 0.658464 8.94462C0.587446 8.94885 0.516836 8.92902 0.454162 8.88724Z",fill:"#CBEE6B"},null,-1)],fl=["onClick"],pl=[t.createElementVNode("path",{d:"M0.454162 8.88724C0.391152 8.84552 0.338487 8.78319 0.301843 8.70698C0.265199 8.63076 0.245966 8.54354 0.246218 8.45472V0.622219C0.246305 0.533706 0.265663 0.446876 0.302236 0.37096C0.338808 0.295044 0.391227 0.232878 0.453921 0.191073C0.516615 0.149267 0.58724 0.129383 0.658289 0.133535C0.729338 0.137687 0.798156 0.165719 0.857426 0.214652L5.5785 4.13136C5.63242 4.17598 5.67665 4.2365 5.70723 4.30753C5.73782 4.37855 5.75383 4.45789 5.75383 4.53847C5.75383 4.61905 5.73782 4.69839 5.70723 4.76941C5.67665 4.84044 5.63242 4.90095 5.5785 4.94557L0.857426 8.86321C0.798247 8.91225 0.729482 8.94039 0.658464 8.94462C0.587446 8.94885 0.516836 8.92902 0.454162 8.88724Z",fill:"#CBEE6B"},null,-1)],ul=["onClick"],gl=[t.createElementVNode("path",{d:"M0.454162 8.88724C0.391152 8.84552 0.338487 8.78319 0.301843 8.70698C0.265199 8.63076 0.245966 8.54354 0.246218 8.45472V0.622219C0.246305 0.533706 0.265663 0.446876 0.302236 0.37096C0.338808 0.295044 0.391227 0.232878 0.453921 0.191073C0.516615 0.149267 0.58724 0.129383 0.658289 0.133535C0.729338 0.137687 0.798156 0.165719 0.857426 0.214652L5.5785 4.13136C5.63242 4.17598 5.67665 4.2365 5.70723 4.30753C5.73782 4.37855 5.75383 4.45789 5.75383 4.53847C5.75383 4.61905 5.73782 4.69839 5.70723 4.76941C5.67665 4.84044 5.63242 4.90095 5.5785 4.94557L0.857426 8.86321C0.798247 8.91225 0.729482 8.94039 0.658464 8.94462C0.587446 8.94885 0.516836 8.92902 0.454162 8.88724Z",fill:"#CBEE6B"},null,-1)],Cl={key:1},bl={key:0},wl=t.createElementVNode("br",null,null,-1),_l=t.createElementVNode("br",null,null,-1);function El(e,n,a,o,s,i){const r=t.resolveComponent("GSCModalDownloadMinutesPlayed"),l=t.resolveComponent("GSCModalDownloadFinished"),m=t.resolveComponent("GSCModalDownloadDuplicate"),c=t.resolveComponent("GSCModalDownloadLimited");return a.data&&Object.keys(a.data).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.matchCard)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.tableContainer),id:"match-card"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.headCard),id:"card-head"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchDate)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.liveButon),id:"matchday"},[t.createElementVNode("b",{class:t.normalizeClass(e.$style.live)},t.toDisplayString(i.matchDayName),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.dateHour)},t.toDisplayString(new Date(a.data.date_time_utc).toLocaleDateString("es-ES",{weekday:"long",month:"long",day:"numeric"}).replace(",","")[0].toUpperCase()+new Date(a.data.date_time_utc).toLocaleDateString("es-ES",{weekday:"short",month:"short",day:"numeric"}).replace(",","").substring(1))+" | "+t.toDisplayString(i.formatTime(a.data.schedule)),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchResult)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerTeams)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.escudos)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.chivasIcon),alt:"",src:`https://golstatsimages.blob.core.windows.net/teams-80/${a.data.home_team}.png`},null,10,sl)],2)],2),a.data.game_status!=4&&a.data.hasStats?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.score),id:"match-score",onClick:n[0]||(n[0]=d=>i.onclickPlayVideos({category:a.data.hasStats==1&&a.data.game_status!=4?0:-1,season_id:a.seasonid,game_id:a.data.game_id,type:a.type==2?3:2,position_id:a.position,player_id:a.player,team_id:a.team,relevant:a.matchs[a.data.game_id]?!!a.matchs[a.data.game_id].has_relevans:!0}))},[t.withDirectives((t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.btnPlayIcon),width:"8",height:"9",viewBox:"0 0 8 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},il,2)),[[t.vShow,a.data.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div)},t.toDisplayString(a.data.score[0]),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div)},"-",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div)},t.toDisplayString(a.data.score[1]),3)],2)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.scoreNoButton),id:"match-score"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.div)},t.toDisplayString(a.data.score[0]),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div)},"-",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div)},t.toDisplayString(a.data.score[1]),3)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.escudos)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.chivasIcon),alt:"",src:`https://golstatsimages.blob.core.windows.net/teams-80/${a.data.visiting_team}.png`},null,10,rl)],2)],2)],2)],2),a.data.canPlayVideos?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.btnHightlights)},[a.matchs[a.data.game_id]?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.bootomHightlights),onClick:n[1]||(n[1]=d=>i.openModalMinutesPlayed(a.data))},ll,2)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.bootomHightlightsBlocked)},cl,2))],2)):t.createCommentVNode("",!0)],2),a.matchs[a.data.game_id]?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.rowsContainer),id:"rows-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.rowTable)},[a.type==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.content)},"Titular",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.totalContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.playButton)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.searchField)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.vuesaxlinearsearchNormalParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.searchField1)},"Por categoría",2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.content1)},[a.matchs[a.data.game_id]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(a.matchs[a.data.game_id].isTitular==1?"Si":"No"),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("0000")],64))],2)],2)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.content)},"Resultado:",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.totalContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.content1),style:{width:"auto"}},[a.matchs[a.data.game_id]&&a.matchs[a.data.game_id].result?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(a.matchs[a.data.game_id].result==1?"Ganado":a.matchs[a.data.game_id].result==2?"Perdido":"Empatado"),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("0000")],64))],2)],2)],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.rowTable1)},[a.type==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.content)},"Minutos jugados",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.totalContainer1)},[a.matchs[a.data.game_id]&&a.matchs[a.data.game_id].minutes>0?t.withDirectives((t.openBlock(),t.createElementBlock("button",{key:0,class:t.normalizeClass(e.$style.btnPlay),id:"btn-play",onClick:n[2]||(n[2]=d=>i.onclickPlayVideos({game_id:a.data.game_id,category:0,position_id:a.position,season_id:a.seasonid,player_id:a.player,team_id:a.team,type:a.type==0?3:2}))},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.icnPlayIcon),width:"6",height:"9",viewBox:"0 0 6 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},dl,2))],2)),[[t.vShow,a.data.canPlayVideos]]):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.content3)},[a.matchs[a.data.game_id]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(a.matchs[a.data.game_id].minutes),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("0000")],64))],2)],2)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.content)},"xG:",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.totalContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.content3)},[a.matchs[a.data.game_id]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(a.matchs[a.data.game_id].xg.toFixed(2)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("0000")],64))],2)],2)],64))],2),a.type==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.rowTable)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.content)},"Goles",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.totalContainer1)},[a.matchs[a.data.game_id]&&a.matchs[a.data.game_id].goals>0?t.withDirectives((t.openBlock(),t.createElementBlock("button",{key:0,class:t.normalizeClass(e.$style.btnPlay),id:"btn-play",onClick:n[3]||(n[3]=d=>i.onclickPlayVideos({game_id:a.data.game_id,category:a.type==0?[12,55]:a.position==1?[55]:[12],season_id:a.seasonid,position_id:a.position,player_id:a.player,team_id:a.team,type:a.type==0?3:2}))},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.icnPlayIcon),width:"6",height:"9",viewBox:"0 0 6 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ml,2))],2)),[[t.vShow,a.data.canPlayVideos]]):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.content3)},t.toDisplayString(a.matchs[a.data.game_id].goals),3)],2)],2)):t.createCommentVNode("",!0),a.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.rowTable1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.content)},"Tarjetas amarillas",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.totalContainer1)},[a.matchs[a.data.game_id]&&a.matchs[a.data.game_id].yellowcards>0?t.withDirectives((t.openBlock(),t.createElementBlock("button",{key:0,class:t.normalizeClass(e.$style.btnPlay),id:"btn-play",onClick:n[4]||(n[4]=d=>i.onclickPlayVideos({game_id:a.data.game_id,category:a.type==0?[14,52]:a.position==1?[52]:[14],season_id:a.seasonid,player_id:a.player,position_id:a.position,team_id:a.team,type:a.type==0?3:2}))},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.icnPlayIcon),width:"6",height:"9",viewBox:"0 0 6 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},hl,2))],2)),[[t.vShow,a.data.canPlayVideos]]):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.content3)},t.toDisplayString(a.matchs[a.data.game_id].yellowcards),3)],2)],2)):t.createCommentVNode("",!0),a.type==1?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(e.$style.rowTable)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.content)},"Tarjetas rojas",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.totalContainer1)},[a.matchs[a.data.game_id]&&a.matchs[a.data.game_id].redcards>0?t.withDirectives((t.openBlock(),t.createElementBlock("button",{key:0,class:t.normalizeClass(e.$style.btnPlay),id:"btn-play",onClick:n[5]||(n[5]=d=>i.onclickPlayVideos({game_id:a.data.game_id,category:a.type==0?[15,53]:a.position==1?[53]:[15],season_id:a.seasonid,player_id:a.player,position_id:a.position,team_id:a.team,type:a.type==0?3:2}))},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.icnPlayIcon),width:"6",height:"9",viewBox:"0 0 6 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},yl,2))],2)),[[t.vShow,a.data.canPlayVideos]]):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.content3)},t.toDisplayString(a.matchs[a.data.game_id].redcards),3)],2)],2)):t.createCommentVNode("",!0),a.matchs[a.data.game_id]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[a.type==1?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(a.matchs[a.data.game_id].extra_categories,(d,y)=>(t.openBlock(),t.createElementBlock("div",{key:y,class:t.normalizeClass(e.$style.rowTable1),style:t.normalizeStyle(y%2==0?"background: #172531":"background: #0d1d29")},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.content)},t.toDisplayString(d.category_name)+":",3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.totalContainer1)},[d.total>0&&d.category_name!="xG "?t.withDirectives((t.openBlock(),t.createElementBlock("button",{key:0,class:t.normalizeClass(e.$style.btnPlay),id:"btn-play",onClick:p=>i.onclickPlayVideos({game_id:a.data.game_id,category:d.categories,season_id:a.seasonid,player_id:a.player,position_id:a.position,team_id:a.team,type:a.type==0?3:2})},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.icnPlayIcon),width:"6",height:"9",viewBox:"0 0 6 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},pl,2))],10,fl)),[[t.vShow,a.data.canPlayVideos]]):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.content3)},[d.category_name=="xG "?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(d.total.toFixed(2)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(d.total),1)],64))],2)],2)],6))),128)):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(a.matchs[a.data.game_id].extra_categories,(d,y)=>(t.openBlock(),t.createElementBlock("div",{key:y,class:t.normalizeClass(e.$style.rowTable1),style:t.normalizeStyle(y%2==0?"background: #0d1d29":"background: #172531")},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.content)},t.toDisplayString(d.category_name)+":",3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.totalContainer1)},[d.total>0?t.withDirectives((t.openBlock(),t.createElementBlock("button",{key:0,class:t.normalizeClass(e.$style.btnPlay),id:"btn-play",onClick:p=>i.onclickPlayVideos({game_id:a.data.game_id,category:d.categories,season_id:a.seasonid,player_id:a.player,position_id:a.position,team_id:a.team,type:a.type==0?3:2})},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.icnPlayIcon),width:"6",height:"9",viewBox:"0 0 6 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},gl,2))],10,ul)),[[t.vShow,a.data.canPlayVideos]]):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.content3)},[d.category_name=="xG "?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(d.total.toFixed(2)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(d.total),1)],64))],2)],2)],6))),128))],64)):t.createCommentVNode("",!0)],2)):(t.openBlock(),t.createElementBlock("div",Cl,[a.data.hasStats!==1?(t.openBlock(),t.createElementBlock("div",bl,[a.data.game_status!==4?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.letter)},[t.createTextVNode(" No tuvo actividad "),wl,t.createTextVNode("en ese partido ")],2)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.letter)},[t.createTextVNode("Partido próximo "),_l,t.createTextVNode("a jugarse")],2))])):t.createCommentVNode("",!0)]))],2),t.createVNode(r,{isVisible:s.isMinutesPlayedModalVisible,onClose:i.closeMinutesPlayedModal,onActiveProcesses:i.activeProcesses,team:s.teamSelected,user:a.userid,season:a.seasonid,game:s.gameSelected,"provider-id":a.providerId,"is-dev-apis":a.isDevApis},null,8,["isVisible","onClose","onActiveProcesses","team","user","season","game","provider-id","is-dev-apis"]),t.createVNode(l,{ref:"modaldownloadfinished",message:"El video se ha descargado"},null,512),t.createVNode(m,{ref:"duplicateModal",onAcceptDownload:i.downloadDuplicate,onCancelDownload:e.hide},null,8,["onAcceptDownload","onCancelDownload"]),t.createVNode(c,{ref:"limitedModal"},null,512)],2)):t.createCommentVNode("",!0)}const kl=pe(ol,[["render",El],["__cssModules",{$style:nl}]]),Tm="",Vm="",Nl={name:"MatchByMatch",components:{SummaryMatchContainer:kl,GSCSlider:ks},props:{matchs:{type:Array,default:()=>[]},games:{type:Array,default:()=>[]},type:{type:Number,default:1},seasonid:{type:Number,default:0},userid:{type:Number,default:0},team:{type:Number,default:0},player:{type:Number,default:0},season:{type:Number},position:{type:Number,default:0},isCup:{type:Boolean,default:!1},canPlayVideos:{type:Boolean,default:!0},dataplayer:{type:Object,default:()=>({})},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])},tournamentType:{type:Number,default:0},providerId:{type:Number,default:0},isDevApis:{type:Boolean,default:!1}},data(){return{indexPc:[0,1,2,3,4,5],indexPcMedium:[0,1,2,3],indexTablet:[0,1],indexMovil:[0],updateC:0}},watch:{},computed:{gamesComputed(){return this.games?this.games.map(e=>{const n=e.home_team===this.team?1:2;return{...e,canPlayVideos:this.canPlayVideos&&this.videoPrivilegesPlayingAs.has(n)}}):[]}},methods:{openmedia(e){this.$emit("openmedia",e)},activeProcesses(e){this.$emit("active-processes",e)}}},Bl={class:"matchbymatch"};function Dl(e,n,a,o,s,i){const r=t.resolveComponent("SummaryMatchContainer"),l=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",Bl,[t.createVNode(l,{backgroundColor:"#172531",pxScroll:260,arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"none",arrowsContainerBgR:"none",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.gamesComputed,(m,c)=>(t.openBlock(),t.createElementBlock("div",{key:c,class:"matchbymatch-summary",style:t.normalizeStyle(c==0?"margin-left: 0px !important;":"")},[t.createVNode(r,{data:m,matchs:a.matchs,isCup:a.isCup,season:a.season,onActiveProcesses:i.activeProcesses,seasonid:a.seasonid,team:a.team,dataplayer:a.dataplayer,userid:a.userid,player:a.player,position:a.position,"tournament-type":a.tournamentType,"provider-id":a.providerId,"is-dev-apis":a.isDevApis,onOpenmedia:i.openmedia,type:a.type},null,8,["data","matchs","isCup","season","onActiveProcesses","seasonid","team","dataplayer","userid","player","position","tournament-type","provider-id","is-dev-apis","onOpenmedia","type"])],4))),128))]),_:1})])}const Sl=pe(Nl,[["render",Dl],["__scopeId","data-v-0120fe4e"]]),Tl="https://dtcf4s9tapfr0.cloudfront.net";async function Vl(e,n={},a=3){let o;for(let s=0;s<a;s++)try{const i=await fetch(e,n);if(!i.ok)throw new Error(`HTTP ${i.status}: ${i.statusText}`);return await i.json()}catch(i){o=i,s<a-1&&await new Promise(r=>setTimeout(r,1e3*(s+1)))}throw o}async function Al(e=0){if(e===0)return ee(re);try{const n=await Vl(`${Tl}/${e}/abbreviations/play_off_abbreviations.json`);return ee(n)}catch{return ee(re)}}const Am="",Il={components:{GSCGeneral:Wo,GSCLastGame:hs,GSCMatchByMatch:Sl},props:{data:{type:Object,required:()=>{}},type:{type:Number,required:0},canPlayVideos:{type:Boolean,default:!0},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])},providerId:{type:Number,default:0},isDevApis:{type:Boolean,default:!1}},setup(e){const n=t.ref(ee(re));return t.provide("playOffAbbreviationsStructure",n),t.watch(()=>e.providerId,async a=>{try{n.value=await Al(a)}catch{n.value=ee(re)}},{immediate:!0}),{playOffStructure:n}},watch:{data:{immediate:!0,handler:function(e,n){const a=!n||JSON.stringify(e)!==JSON.stringify(n);e&&a&&(this.resetData(),this.fillDataGeneral(e))}}},data(){return{seasonId:0,dataMatchByMatch:{},allGames:[],gamesByTeam:[],lastGame:[],lastGameInfo:[],dataSeason:[],update:0,seasonName:"",uniqueTeamIds:[],mainTeamId:null,secondaryTeamId:null,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{},methods:{activeProcesses(e){this.$emit("active-processes",e)},openmedia(e){this.$emit("openmedia",e)},resetData(){this.seasonId=0,this.dataMatchByMatch={},this.allGames=[],this.gamesByTeam=[],this.lastGame=[],this.lastGameInfo=[],this.dataSeason=[],this.seasonName=""},filterDuplicateGames(e,n){return e.filter(o=>o.team_id===this.mainTeamId?!(n.find(i=>i.matchday_id===o.matchday_id&&i.team_id!==this.mainTeamId)&&o.game_status===1):n.some(s=>s.game_id===o.game_id))},async fillDataGeneral(e){try{this.resetData();const a=new Set;var n="";e.type==1?n=de(`https://ikhibrrvce.execute-api.us-east-2.amazonaws.com/prod/details-per-game/seasons/${e.season}/players/${e.player}`,this.providerId,this.isDevApis):n=de(`https://ikhibrrvce.execute-api.us-east-2.amazonaws.com/prod/details-per-game/seasons/${e.season}/teams/${e.team}`,this.providerId,this.isDevApis);const o=de(`https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/${e.season}/`,this.providerId,this.isDevApis),s=ie.create({headers:{Authorization:`${this.token}`}});await ie.all([s.get(n),s.get(o)]).then(ie.spread((i,r)=>{var d;const l=new Map;if(i.data){for(let y=0;y<i.data.information_by_game.length;y++)if(e.type==1){const p=i.data.information_by_game[y];l.set(p.game_id,{hasStats:p.has_stats}),this.dataMatchByMatch[p.game_id]=[],this.dataMatchByMatch[p.game_id].game=p.game_id;const C=r.data.games.find(g=>g.game_id===p.game_id);this.dataMatchByMatch[p.game_id].date=C?C.date:null,this.dataMatchByMatch[p.game_id].isTitular=p.started_as_titular,this.dataMatchByMatch[p.game_id].minutes=p.minutes_played,this.dataMatchByMatch[p.game_id].team_id=p.team_id,a.add(p.team_id),this.dataMatchByMatch[p.game_id].has_relevans=p.has_relevants,this.dataMatchByMatch[p.game_id].goals=p.goals,this.dataMatchByMatch[p.game_id].yellowcards=p.yellow_cards,this.dataMatchByMatch[p.game_id].redcards=p.red_cards;let u=Object.keys(p.extra_categories[0])[0];this.dataMatchByMatch[p.game_id].extra_categories=p.extra_categories[0][u]}else{const p=i.data.information_by_game[y];l.set(p.game_id,{hasStats:p.has_stats}),this.dataMatchByMatch[p.game_id]=[],this.dataMatchByMatch[p.game_id].game=p.game_id,this.dataMatchByMatch[p.game_id].result=p.result,this.dataMatchByMatch[p.game_id].xg=p.xg,this.dataMatchByMatch[p.game_id].extra_categories=p.extra_categories}if(e.type==1){this.dataSeason.games_as_bench=i.data.season_information.games_as_bench,this.dataSeason.games_as_titular=i.data.season_information.games_as_titular,this.dataSeason.goals=i.data.season_information.goals,this.dataSeason.minutesPlayed=i.data.season_information.minutesPlayed,this.dataSeason.red_cards=i.data.season_information.red_cards,this.dataSeason.yellow_cards=i.data.season_information.yellow_cards;let y=Object.keys(i.data.season_information.extra_categories[0])[0];this.dataSeason.extra_categories=i.data.season_information.extra_categories[0][y]}else this.dataSeason.goals=i.data.season_information.goals,this.dataSeason.goals_received=i.data.season_information.goals_received,this.dataSeason.ranking=i.data.season_information.ranking,this.dataSeason.xg=i.data.season_information.xg,this.dataSeason.extra_categories=i.data.season_information.extra_categories}this.uniqueTeamIds=Array.from(a);const m=this.uniqueTeamIds.map(y=>{const p=r.data.games.filter(C=>{const u=this.dataMatchByMatch[C.game_id],g=C.home_team===y||C.visiting_team===y;return u&&g}).sort((C,u)=>new Date(u.date)-new Date(C.date))[0];return{teamId:y,lastGameDate:p?new Date(p.date):null}});if(e.type==1?(m.sort((y,p)=>p.lastGameDate-y.lastGameDate),this.mainTeamId=m[0].teamId,this.secondaryTeamId=(d=m[1])==null?void 0:d.teamId,this.gamesByTeam=r.data.games.reduce((y,p)=>{if(this.uniqueTeamIds.includes(p.home_team)||this.uniqueTeamIds.includes(p.visiting_team)){const C=l.get(p.game_id);p.hasStats=C?C.hasStats:null,p.home_team===this.secondaryTeamId||p.visiting_team===this.secondaryTeamId?p.team_id=this.secondaryTeamId:p.team_id=this.mainTeamId,y.push(p)}return y},[])):this.gamesByTeam=r.data.games.reduce((y,p)=>{if(p.home_team===i.data.team_id||p.visiting_team===i.data.team_id){const C=l.get(p.game_id);p.hasStats=C?C.hasStats:null,y.push(p)}return y},[]),this.uniqueTeamIds.length>1){this.gamesByTeam=this.gamesByTeam.filter(p=>p.home_team===this.mainTeamId||p.visiting_team===this.mainTeamId?!0:this.dataMatchByMatch[p.game_id]!==void 0);const y=this.gamesByTeam.filter(p=>this.dataMatchByMatch[p.game_id]&&this.dataMatchByMatch[p.game_id].team_id==this.secondaryTeamId?(p.team_id=this.dataMatchByMatch[p.game_id].team_id,!0):!1);this.uniqueTeamIds.length>1&&(this.gamesByTeam=this.filterDuplicateGames(this.gamesByTeam,y))}this.gamesByTeam=this.gamesByTeam.sort((y,p)=>y.date>p.date?1:p.date>y.date?-1:0);let c=0;for(let y=0;y<this.gamesByTeam.length;y++)this.dataMatchByMatch[this.gamesByTeam[y].game_id]&&(c=this.dataMatchByMatch[this.gamesByTeam[y].game_id]);this.lastGame=c,this.lastGameInfo=this.gamesByTeam.find(y=>y.game_id===c.game),this.seasonName="",this.update+=1}))}catch(a){throw new Error(a)}}}};function Pl(e,n,a,o,s,i){const r=t.resolveComponent("GSCGeneral"),l=t.resolveComponent("GSCLastGame"),m=t.resolveComponent("GSCMatchByMatch");return t.openBlock(),t.createElementBlock("div",null,[a.type==0?(t.openBlock(),t.createBlock(r,{season:a.data.season_name,match:s.dataSeason,seasonid:a.data.season,team:a.data.team,"tournament-type":a.data.tournamentType,player:a.data.player,type:a.data.type,position:a.data.position,key:s.update,"can-play-videos":a.canPlayVideos,"video-privileges-playing-as":a.videoPrivilegesPlayingAs,onOpenmedia:i.openmedia},null,8,["season","match","seasonid","team","tournament-type","player","type","position","can-play-videos","video-privileges-playing-as","onOpenmedia"])):t.createCommentVNode("",!0),a.type==1?(t.openBlock(),t.createBlock(l,{game:s.lastGameInfo,match:s.lastGame,type:a.data.type,"tournament-type":a.data.tournamentType,player:a.data.player,isCup:a.data.isCup,seasonid:a.data.season,team:a.data.team,position:a.data.position,key:s.update,"can-play-videos":a.canPlayVideos,"video-privileges-playing-as":a.videoPrivilegesPlayingAs,onOpenmedia:i.openmedia},null,8,["game","match","type","tournament-type","player","isCup","seasonid","team","position","can-play-videos","video-privileges-playing-as","onOpenmedia"])):t.createCommentVNode("",!0),a.type==2?(t.openBlock(),t.createBlock(m,{games:s.gamesByTeam,matchs:s.dataMatchByMatch,type:a.data.type,"tournament-type":a.data.tournamentType,seasonid:a.data.season,userid:a.data.user,team:a.data.team,dataplayer:a.data.dataplayer,player:a.data.player,season:a.data.season,onActiveProcesses:i.activeProcesses,position:a.data.position,isCup:a.data.isCup,key:s.update,"can-play-videos":a.canPlayVideos,"video-privileges-playing-as":a.videoPrivilegesPlayingAs,"provider-id":a.providerId,"is-dev-apis":a.isDevApis,onOpenmedia:i.openmedia},null,8,["games","matchs","type","tournament-type","seasonid","userid","team","dataplayer","player","season","onActiveProcesses","position","isCup","can-play-videos","video-privileges-playing-as","provider-id","is-dev-apis","onOpenmedia"])):t.createCommentVNode("",!0)])}const Ol=pe(Il,[["render",Pl],["__scopeId","data-v-f4c19e46"]]);Q.GSCInfoGame=Ol,Object.defineProperty(Q,Symbol.toStringTag,{value:"Module"})});
|