@golstats/gsc-specific-plays 0.0.2 → 0.0.4
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-specific-plays.js +184 -180
- package/dist/gsc-specific-plays.umd.cjs +3 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -335,7 +335,7 @@ const ft = "/icons/icn-play.png", Zs = (e, t) => {
|
|
|
335
335
|
}, So = {
|
|
336
336
|
key: 1,
|
|
337
337
|
class: "gsc-selector-play-pc-title"
|
|
338
|
-
}, xo = { class: "gsc-selector-play-pc__filters-text" }, Fo = { class: "gsc-selector-play-pc-container" },
|
|
338
|
+
}, xo = { class: "gsc-selector-play-pc__filters-text" }, Fo = { class: "gsc-selector-play-pc-container" }, Ao = {
|
|
339
339
|
__name: "GSCSelectorPlayPC",
|
|
340
340
|
props: {
|
|
341
341
|
gamesByTeam: {
|
|
@@ -403,12 +403,12 @@ const ft = "/icons/icn-play.png", Zs = (e, t) => {
|
|
|
403
403
|
], -1))
|
|
404
404
|
], 4));
|
|
405
405
|
}
|
|
406
|
-
},
|
|
406
|
+
}, ko = /* @__PURE__ */ be(Ao, [["__scopeId", "data-v-7dd283c1"]]), Eo = (e, t) => {
|
|
407
407
|
const s = e.__vccOpts || e;
|
|
408
408
|
for (const [o, n] of t)
|
|
409
409
|
s[o] = n;
|
|
410
410
|
return s;
|
|
411
|
-
},
|
|
411
|
+
}, At = {
|
|
412
412
|
props: {
|
|
413
413
|
type: { type: Number, default: 0 },
|
|
414
414
|
value: { type: Boolean, default: !1 },
|
|
@@ -498,8 +498,8 @@ const ft = "/icons/icn-play.png", Zs = (e, t) => {
|
|
|
498
498
|
"93b87770": e.marginLeftStat,
|
|
499
499
|
c7f7beba: e.fontSizeStat
|
|
500
500
|
}));
|
|
501
|
-
}, Vt =
|
|
502
|
-
|
|
501
|
+
}, Vt = At.setup;
|
|
502
|
+
At.setup = Vt ? (e, t) => (Dt(), Vt(e, t)) : Dt;
|
|
503
503
|
const Po = (e) => (Ws("data-v-f3ee6b2b"), e = e(), qs(), e), To = ["src"], Bo = {
|
|
504
504
|
key: 1,
|
|
505
505
|
class: "text"
|
|
@@ -542,7 +542,7 @@ function $o(e, t, s, o, n, a) {
|
|
|
542
542
|
])) : P("", !0)
|
|
543
543
|
]);
|
|
544
544
|
}
|
|
545
|
-
const No = /* @__PURE__ */ Eo(
|
|
545
|
+
const No = /* @__PURE__ */ Eo(At, [["render", $o], ["__scopeId", "data-v-f3ee6b2b"]]), Ho = { class: "gsc-dropdown__main-container__item-selected" }, Uo = ["height", "width"], Do = ["stroke"], Vo = {
|
|
546
546
|
key: 1,
|
|
547
547
|
width: "8",
|
|
548
548
|
height: "4",
|
|
@@ -727,10 +727,10 @@ const No = /* @__PURE__ */ Eo(kt, [["render", $o], ["__scopeId", "data-v-f3ee6b2
|
|
|
727
727
|
(C, f) => {
|
|
728
728
|
if (!s.modelValue && (!s.onlyFirstTime || !f || !f.length) && C && C.length) {
|
|
729
729
|
if (s.defaultItemByProp) {
|
|
730
|
-
const
|
|
730
|
+
const _ = s.items.findIndex(
|
|
731
731
|
(b) => b[s.defaultItemByProp.propName] === s.defaultItemByProp.value
|
|
732
732
|
);
|
|
733
|
-
|
|
733
|
+
_ !== -1 ? (a.value = _, o.value = C[_]) : (a.value = 0, o.value = C[0]);
|
|
734
734
|
} else
|
|
735
735
|
o.value = C[s.defaultItemByIndex];
|
|
736
736
|
t("input", o.value);
|
|
@@ -741,7 +741,7 @@ const No = /* @__PURE__ */ Eo(kt, [["render", $o], ["__scopeId", "data-v-f3ee6b2
|
|
|
741
741
|
() => s.modelValue,
|
|
742
742
|
(C) => {
|
|
743
743
|
if (C) {
|
|
744
|
-
const f = s.items.findIndex((
|
|
744
|
+
const f = s.items.findIndex((_) => typeof C == "object" ? JSON.stringify(_) === JSON.stringify(C) : _ === C);
|
|
745
745
|
f !== -1 && (a.value = f, o.value = s.items[f], t("update:modelValue", o.value));
|
|
746
746
|
}
|
|
747
747
|
},
|
|
@@ -843,15 +843,15 @@ const No = /* @__PURE__ */ Eo(kt, [["render", $o], ["__scopeId", "data-v-f3ee6b2
|
|
|
843
843
|
class: "gsc-dropdown__items",
|
|
844
844
|
style: $({ "margin-top": `${s.borderWidth}px` })
|
|
845
845
|
}, [
|
|
846
|
-
(h(!0), g(V, null, xe(e.items, (
|
|
846
|
+
(h(!0), g(V, null, xe(e.items, (_, b) => (h(), g("div", null, [
|
|
847
847
|
ne((h(), g("div", {
|
|
848
848
|
class: G(["gsc-dropdown__items__item", { selected: b === a.value }]),
|
|
849
849
|
key: b,
|
|
850
|
-
onClick: (O) => S(
|
|
850
|
+
onClick: (O) => S(_, b)
|
|
851
851
|
}, [
|
|
852
|
-
bt(C.$slots, "availableItem", { item:
|
|
852
|
+
bt(C.$slots, "availableItem", { item: _ })
|
|
853
853
|
], 10, jo)), [
|
|
854
|
-
[he, !
|
|
854
|
+
[he, !_.isHidden]
|
|
855
855
|
])
|
|
856
856
|
]))), 256))
|
|
857
857
|
], 4),
|
|
@@ -881,7 +881,7 @@ const No = /* @__PURE__ */ Eo(kt, [["render", $o], ["__scopeId", "data-v-f3ee6b2
|
|
|
881
881
|
for (const [o, n] of t)
|
|
882
882
|
s[o] = n;
|
|
883
883
|
return s;
|
|
884
|
-
},
|
|
884
|
+
}, kt = {
|
|
885
885
|
name: "ScrollableContainer",
|
|
886
886
|
props: {
|
|
887
887
|
backgroundColor: { type: String, default: "#0D1D29" },
|
|
@@ -968,8 +968,8 @@ const No = /* @__PURE__ */ Eo(kt, [["render", $o], ["__scopeId", "data-v-f3ee6b2
|
|
|
968
968
|
66582163: e.arrowsContainerBgR,
|
|
969
969
|
e5900a2e: e.scrollColor
|
|
970
970
|
}));
|
|
971
|
-
}, Gt =
|
|
972
|
-
|
|
971
|
+
}, Gt = kt.setup;
|
|
972
|
+
kt.setup = Gt ? (e, t) => (zt(), Gt(e, t)) : zt;
|
|
973
973
|
const Jo = {
|
|
974
974
|
ref: "gscScrollableContainer",
|
|
975
975
|
class: "scrollable-container"
|
|
@@ -1028,7 +1028,7 @@ function on(e, t, s, o, n, a) {
|
|
|
1028
1028
|
], 2)) : P("", !0)
|
|
1029
1029
|
], 512);
|
|
1030
1030
|
}
|
|
1031
|
-
const nn = /* @__PURE__ */ Zo(
|
|
1031
|
+
const nn = /* @__PURE__ */ Zo(kt, [["render", on], ["__scopeId", "data-v-7d0811ac"]]), an = { class: "gsc-itemplaypc-play-number" }, rn = { class: "gsc-itemplaypc-play-info" }, ln = { class: "gsc-itemplaypc-play-infodata text-1" }, cn = { class: "gsc-itemplaypc-play-infodata text-2" }, dn = { class: "gsc-itemplaypc-play-infodata text-1" }, un = { key: 0 }, fn = {
|
|
1032
1032
|
__name: "CornerPlayMobile",
|
|
1033
1033
|
props: {
|
|
1034
1034
|
corner: {
|
|
@@ -1201,7 +1201,7 @@ const nn = /* @__PURE__ */ Zo(At, [["render", on], ["__scopeId", "data-v-7d0811a
|
|
|
1201
1201
|
])
|
|
1202
1202
|
]));
|
|
1203
1203
|
}
|
|
1204
|
-
}, _n = /* @__PURE__ */ be(wn, [["__scopeId", "data-v-7d965f0f"]]), Sn = ["x1", "y1", "x2", "y2", "marker-end"], xn = ["x", "y"], Fn = ["fill"],
|
|
1204
|
+
}, _n = /* @__PURE__ */ be(wn, [["__scopeId", "data-v-7d965f0f"]]), Sn = ["x1", "y1", "x2", "y2", "marker-end"], xn = ["x", "y"], Fn = ["fill"], An = ["stroke"], jt = 66 / 202, kn = {
|
|
1205
1205
|
__name: "HalfSoccerPlayerPosition",
|
|
1206
1206
|
props: {
|
|
1207
1207
|
playerPosition: {
|
|
@@ -1235,10 +1235,10 @@ const nn = /* @__PURE__ */ Zo(At, [["render", on], ["__scopeId", "data-v-7d0811a
|
|
|
1235
1235
|
return s.isAgainstCorner ? C.isTeamForAnalysis || (f = 1 - f) : C.isTeamForAnalysis && (f = 1 - f), f <= 0.8 ? f * 404 + 26 : null;
|
|
1236
1236
|
}
|
|
1237
1237
|
function F(C, f) {
|
|
1238
|
-
let
|
|
1239
|
-
s.isAgainstCorner ? C.isTeamForAnalysis && (
|
|
1238
|
+
let _ = C.x;
|
|
1239
|
+
s.isAgainstCorner ? C.isTeamForAnalysis && (_ = 1 - _) : C.isTeamForAnalysis || (_ = 1 - _);
|
|
1240
1240
|
const b = f - 15;
|
|
1241
|
-
return f !== null ?
|
|
1241
|
+
return f !== null ? _ * (446 + jt * b) + (104 - jt * b) - 12 : null;
|
|
1242
1242
|
}
|
|
1243
1243
|
return (C, f) => e.visibleTeamsIds.includes(e.playerPosition.teamId) ? (h(), g(V, { key: 0 }, [
|
|
1244
1244
|
f[2] || (f[2] = r("defs", null, [
|
|
@@ -1318,12 +1318,12 @@ const nn = /* @__PURE__ */ Zo(At, [["render", on], ["__scopeId", "data-v-7d0811a
|
|
|
1318
1318
|
dy: "1",
|
|
1319
1319
|
"font-size": "10",
|
|
1320
1320
|
stroke: a.value
|
|
1321
|
-
}, T(e.playerPosition.player.jersey), 9,
|
|
1321
|
+
}, T(e.playerPosition.player.jersey), 9, An)
|
|
1322
1322
|
])
|
|
1323
1323
|
], 8, xn)) : P("", !0)
|
|
1324
1324
|
], 64)) : P("", !0);
|
|
1325
1325
|
}
|
|
1326
|
-
}, En = /* @__PURE__ */ be(
|
|
1326
|
+
}, En = /* @__PURE__ */ be(kn, [["__scopeId", "data-v-d03899c6"]]), ls = 481, Pn = 606, cs = 210, Tn = cs * 2, Bn = 88, On = Pn - ls, Ln = On / cs, mt = 18;
|
|
1327
1327
|
function We(e) {
|
|
1328
1328
|
return e * Tn;
|
|
1329
1329
|
}
|
|
@@ -1630,11 +1630,11 @@ const Rn = ["x", "y"], In = ["font-size"], Mn = ["x", "y"], $n = ["font-size"],
|
|
|
1630
1630
|
o.value = F, n("changelateralidad", o.value);
|
|
1631
1631
|
}
|
|
1632
1632
|
const i = N(!1), l = N(0), d = N(0), p = N(null), y = I(() => s.arePositionPathsVisible ? s.playersPositionsByRange.reduce(
|
|
1633
|
-
(F, { playersPositions: C, finalPlayersPositions: f, areFirstPositions:
|
|
1633
|
+
(F, { playersPositions: C, finalPlayersPositions: f, areFirstPositions: _, areFinalPositions: b }) => (C.forEach((O, z) => {
|
|
1634
1634
|
F.push({
|
|
1635
1635
|
...O,
|
|
1636
1636
|
finalPlayerPosition: f[z],
|
|
1637
|
-
isFirstPosition:
|
|
1637
|
+
isFirstPosition: _,
|
|
1638
1638
|
isFinalPosition: b
|
|
1639
1639
|
});
|
|
1640
1640
|
}), F),
|
|
@@ -1827,7 +1827,7 @@ const bi = (e, t, s, { allOwnKeys: o } = {}) => ($e(t, (n, a) => {
|
|
|
1827
1827
|
for (; t-- > 0; )
|
|
1828
1828
|
s[t] = e[t];
|
|
1829
1829
|
return s;
|
|
1830
|
-
},
|
|
1830
|
+
}, Ai = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Et(Uint8Array)), ki = (e, t) => {
|
|
1831
1831
|
const o = (e && e[ot]).call(e);
|
|
1832
1832
|
let n;
|
|
1833
1833
|
for (; (n = o.next()) && !n.done; ) {
|
|
@@ -1928,7 +1928,7 @@ const $i = (e) => {
|
|
|
1928
1928
|
isFunction: Q,
|
|
1929
1929
|
isStream: fi,
|
|
1930
1930
|
isURLSearchParams: mi,
|
|
1931
|
-
isTypedArray:
|
|
1931
|
+
isTypedArray: Ai,
|
|
1932
1932
|
isFileList: ui,
|
|
1933
1933
|
forEach: $e,
|
|
1934
1934
|
merge: wt,
|
|
@@ -1941,7 +1941,7 @@ const $i = (e) => {
|
|
|
1941
1941
|
kindOfTest: ce,
|
|
1942
1942
|
endsWith: xi,
|
|
1943
1943
|
toArray: Fi,
|
|
1944
|
-
forEachEntry:
|
|
1944
|
+
forEachEntry: ki,
|
|
1945
1945
|
matchAll: Ei,
|
|
1946
1946
|
isHTMLForm: Pi,
|
|
1947
1947
|
hasOwnProperty: Wt,
|
|
@@ -2041,8 +2041,8 @@ function at(e, t, s) {
|
|
|
2041
2041
|
metaTokens: !0,
|
|
2042
2042
|
dots: !1,
|
|
2043
2043
|
indexes: !1
|
|
2044
|
-
}, !1, function(
|
|
2045
|
-
return !u.isUndefined(b[
|
|
2044
|
+
}, !1, function(_, b) {
|
|
2045
|
+
return !u.isUndefined(b[_]);
|
|
2046
2046
|
});
|
|
2047
2047
|
const o = s.metaTokens, n = s.visitor || y, a = s.dots, i = s.indexes, d = (s.Blob || typeof Blob < "u" && Blob) && u.isSpecCompliantForm(t);
|
|
2048
2048
|
if (!u.isFunction(n))
|
|
@@ -2057,39 +2057,39 @@ function at(e, t, s) {
|
|
|
2057
2057
|
throw new L("Blob is not supported. Use a Buffer instead.");
|
|
2058
2058
|
return u.isArrayBuffer(f) || u.isTypedArray(f) ? d && typeof Blob == "function" ? new Blob([f]) : Buffer.from(f) : f;
|
|
2059
2059
|
}
|
|
2060
|
-
function y(f,
|
|
2060
|
+
function y(f, _, b) {
|
|
2061
2061
|
let O = f;
|
|
2062
2062
|
if (f && !b && typeof f == "object") {
|
|
2063
|
-
if (u.endsWith(
|
|
2064
|
-
|
|
2065
|
-
else if (u.isArray(f) && zi(f) || (u.isFileList(f) || u.endsWith(
|
|
2066
|
-
return
|
|
2063
|
+
if (u.endsWith(_, "{}"))
|
|
2064
|
+
_ = o ? _ : _.slice(0, -2), f = JSON.stringify(f);
|
|
2065
|
+
else if (u.isArray(f) && zi(f) || (u.isFileList(f) || u.endsWith(_, "[]")) && (O = u.toArray(f)))
|
|
2066
|
+
return _ = bs(_), O.forEach(function(H, j) {
|
|
2067
2067
|
!(u.isUndefined(H) || H === null) && t.append(
|
|
2068
2068
|
// eslint-disable-next-line no-nested-ternary
|
|
2069
|
-
i === !0 ? qt([
|
|
2069
|
+
i === !0 ? qt([_], j, a) : i === null ? _ : _ + "[]",
|
|
2070
2070
|
p(H)
|
|
2071
2071
|
);
|
|
2072
2072
|
}), !1;
|
|
2073
2073
|
}
|
|
2074
|
-
return _t(f) ? !0 : (t.append(qt(b,
|
|
2074
|
+
return _t(f) ? !0 : (t.append(qt(b, _, a), p(f)), !1);
|
|
2075
2075
|
}
|
|
2076
2076
|
const S = [], F = Object.assign(Gi, {
|
|
2077
2077
|
defaultVisitor: y,
|
|
2078
2078
|
convertValue: p,
|
|
2079
2079
|
isVisitable: _t
|
|
2080
2080
|
});
|
|
2081
|
-
function C(f,
|
|
2081
|
+
function C(f, _) {
|
|
2082
2082
|
if (!u.isUndefined(f)) {
|
|
2083
2083
|
if (S.indexOf(f) !== -1)
|
|
2084
|
-
throw Error("Circular reference detected in " +
|
|
2084
|
+
throw Error("Circular reference detected in " + _.join("."));
|
|
2085
2085
|
S.push(f), u.forEach(f, function(O, z) {
|
|
2086
2086
|
(!(u.isUndefined(O) || O === null) && n.call(
|
|
2087
2087
|
t,
|
|
2088
2088
|
O,
|
|
2089
2089
|
u.isString(z) ? z.trim() : z,
|
|
2090
|
-
|
|
2090
|
+
_,
|
|
2091
2091
|
F
|
|
2092
|
-
)) === !0 && C(O,
|
|
2092
|
+
)) === !0 && C(O, _ ? _.concat(z) : [z]);
|
|
2093
2093
|
}), S.pop();
|
|
2094
2094
|
}
|
|
2095
2095
|
}
|
|
@@ -2553,7 +2553,7 @@ function Oe(e, t, s) {
|
|
|
2553
2553
|
u.inherits(Oe, L, {
|
|
2554
2554
|
__CANCEL__: !0
|
|
2555
2555
|
});
|
|
2556
|
-
function
|
|
2556
|
+
function As(e, t, s) {
|
|
2557
2557
|
const o = s.config.validateStatus;
|
|
2558
2558
|
!s.status || !o || o(s.status) ? e(s) : t(new L(
|
|
2559
2559
|
"Request failed with status code " + s.status,
|
|
@@ -2659,7 +2659,7 @@ function ya(e) {
|
|
|
2659
2659
|
function ha(e, t) {
|
|
2660
2660
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
2661
2661
|
}
|
|
2662
|
-
function
|
|
2662
|
+
function ks(e, t, s) {
|
|
2663
2663
|
let o = !ya(t);
|
|
2664
2664
|
return e && (o || s == !1) ? ha(e, t) : t;
|
|
2665
2665
|
}
|
|
@@ -2731,7 +2731,7 @@ function Fe(e, t) {
|
|
|
2731
2731
|
const Es = (e) => {
|
|
2732
2732
|
const t = Fe({}, e);
|
|
2733
2733
|
let { data: s, withXSRFToken: o, xsrfHeaderName: n, xsrfCookieName: a, headers: i, auth: l } = t;
|
|
2734
|
-
if (t.headers = i = ee.from(i), t.url = _s(
|
|
2734
|
+
if (t.headers = i = ee.from(i), t.url = _s(ks(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), l && i.set(
|
|
2735
2735
|
"Authorization",
|
|
2736
2736
|
"Basic " + btoa((l.username || "") + ":" + (l.password ? unescape(encodeURIComponent(l.password)) : ""))
|
|
2737
2737
|
), u.isFormData(s)) {
|
|
@@ -2755,7 +2755,7 @@ const Es = (e) => {
|
|
|
2755
2755
|
let a = n.data;
|
|
2756
2756
|
const i = ee.from(n.headers).normalize();
|
|
2757
2757
|
let { responseType: l, onUploadProgress: d, onDownloadProgress: p } = n, y, S, F, C, f;
|
|
2758
|
-
function
|
|
2758
|
+
function _() {
|
|
2759
2759
|
C && C(), f && f(), n.cancelToken && n.cancelToken.unsubscribe(y), n.signal && n.signal.removeEventListener("abort", y);
|
|
2760
2760
|
}
|
|
2761
2761
|
let b = new XMLHttpRequest();
|
|
@@ -2773,10 +2773,10 @@ const Es = (e) => {
|
|
|
2773
2773
|
config: e,
|
|
2774
2774
|
request: b
|
|
2775
2775
|
};
|
|
2776
|
-
|
|
2777
|
-
s(W),
|
|
2776
|
+
As(function(W) {
|
|
2777
|
+
s(W), _();
|
|
2778
2778
|
}, function(W) {
|
|
2779
|
-
o(W),
|
|
2779
|
+
o(W), _();
|
|
2780
2780
|
}, Z), b = null;
|
|
2781
2781
|
}
|
|
2782
2782
|
"onloadend" in b ? b.onloadend = O : b.onreadystatechange = function() {
|
|
@@ -2906,24 +2906,24 @@ const Es = (e) => {
|
|
|
2906
2906
|
const { fetch: t, Request: s, Response: o } = e, n = t ? Ze(t) : typeof fetch == "function", a = Ze(s), i = Ze(o);
|
|
2907
2907
|
if (!n)
|
|
2908
2908
|
return !1;
|
|
2909
|
-
const l = n && Ze(ss), d = n && (typeof os == "function" ? /* @__PURE__ */ ((f) => (
|
|
2909
|
+
const l = n && Ze(ss), d = n && (typeof os == "function" ? /* @__PURE__ */ ((f) => (_) => f.encode(_))(new os()) : async (f) => new Uint8Array(await new s(f).arrayBuffer())), p = a && l && ns(() => {
|
|
2910
2910
|
let f = !1;
|
|
2911
|
-
const
|
|
2911
|
+
const _ = new s(q.origin, {
|
|
2912
2912
|
body: new ss(),
|
|
2913
2913
|
method: "POST",
|
|
2914
2914
|
get duplex() {
|
|
2915
2915
|
return f = !0, "half";
|
|
2916
2916
|
}
|
|
2917
2917
|
}).headers.has("Content-Type");
|
|
2918
|
-
return f && !
|
|
2918
|
+
return f && !_;
|
|
2919
2919
|
}), y = i && l && ns(() => u.isReadableStream(new o("").body)), S = {
|
|
2920
2920
|
stream: y && ((f) => f.body)
|
|
2921
2921
|
};
|
|
2922
2922
|
n && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((f) => {
|
|
2923
|
-
!S[f] && (S[f] = (
|
|
2924
|
-
let O =
|
|
2923
|
+
!S[f] && (S[f] = (_, b) => {
|
|
2924
|
+
let O = _ && _[f];
|
|
2925
2925
|
if (O)
|
|
2926
|
-
return O.call(
|
|
2926
|
+
return O.call(_);
|
|
2927
2927
|
throw new L(`Response type '${f}' is not supported`, L.ERR_NOT_SUPPORT, b);
|
|
2928
2928
|
});
|
|
2929
2929
|
});
|
|
@@ -2941,13 +2941,13 @@ const Es = (e) => {
|
|
|
2941
2941
|
return f.byteLength;
|
|
2942
2942
|
if (u.isURLSearchParams(f) && (f = f + ""), u.isString(f))
|
|
2943
2943
|
return (await d(f)).byteLength;
|
|
2944
|
-
}, C = async (f,
|
|
2944
|
+
}, C = async (f, _) => {
|
|
2945
2945
|
const b = u.toFiniteNumber(f.getContentLength());
|
|
2946
|
-
return b ?? F(
|
|
2946
|
+
return b ?? F(_);
|
|
2947
2947
|
};
|
|
2948
2948
|
return async (f) => {
|
|
2949
2949
|
let {
|
|
2950
|
-
url:
|
|
2950
|
+
url: _,
|
|
2951
2951
|
method: b,
|
|
2952
2952
|
data: O,
|
|
2953
2953
|
signal: z,
|
|
@@ -2957,7 +2957,7 @@ const Es = (e) => {
|
|
|
2957
2957
|
onUploadProgress: K,
|
|
2958
2958
|
responseType: W,
|
|
2959
2959
|
headers: Le,
|
|
2960
|
-
withCredentials:
|
|
2960
|
+
withCredentials: Ae = "same-origin",
|
|
2961
2961
|
fetchOptions: He
|
|
2962
2962
|
} = Es(f), Ue = t || fetch;
|
|
2963
2963
|
W = W ? (W + "").toLowerCase() : "text";
|
|
@@ -2968,20 +2968,20 @@ const Es = (e) => {
|
|
|
2968
2968
|
let De;
|
|
2969
2969
|
try {
|
|
2970
2970
|
if (K && p && b !== "get" && b !== "head" && (De = await C(Le, O)) !== 0) {
|
|
2971
|
-
let ue = new s(
|
|
2971
|
+
let ue = new s(_, {
|
|
2972
2972
|
method: "POST",
|
|
2973
2973
|
body: O,
|
|
2974
2974
|
duplex: "half"
|
|
2975
2975
|
}), Ce;
|
|
2976
2976
|
if (u.isFormData(O) && (Ce = ue.headers.get("content-type")) && Le.setContentType(Ce), ue.body) {
|
|
2977
|
-
const [ye,
|
|
2977
|
+
const [ye, ke] = Kt(
|
|
2978
2978
|
De,
|
|
2979
2979
|
st(Yt(K))
|
|
2980
2980
|
);
|
|
2981
|
-
O = es(ue.body, ts, ye,
|
|
2981
|
+
O = es(ue.body, ts, ye, ke);
|
|
2982
2982
|
}
|
|
2983
2983
|
}
|
|
2984
|
-
u.isString(
|
|
2984
|
+
u.isString(Ae) || (Ae = Ae ? "include" : "omit");
|
|
2985
2985
|
const te = a && "credentials" in s.prototype, ie = {
|
|
2986
2986
|
...He,
|
|
2987
2987
|
signal: de,
|
|
@@ -2989,23 +2989,23 @@ const Es = (e) => {
|
|
|
2989
2989
|
headers: Le.normalize().toJSON(),
|
|
2990
2990
|
body: O,
|
|
2991
2991
|
duplex: "half",
|
|
2992
|
-
credentials: te ?
|
|
2992
|
+
credentials: te ? Ae : void 0
|
|
2993
2993
|
};
|
|
2994
|
-
E = a && new s(
|
|
2995
|
-
let ae = await (a ? Ue(E, He) : Ue(
|
|
2994
|
+
E = a && new s(_, ie);
|
|
2995
|
+
let ae = await (a ? Ue(E, He) : Ue(_, ie));
|
|
2996
2996
|
const Ve = y && (W === "stream" || W === "response");
|
|
2997
2997
|
if (y && (Z || Ve && J)) {
|
|
2998
2998
|
const ue = {};
|
|
2999
2999
|
["status", "statusText", "headers"].forEach((we) => {
|
|
3000
3000
|
ue[we] = ae[we];
|
|
3001
3001
|
});
|
|
3002
|
-
const Ce = u.toFiniteNumber(ae.headers.get("content-length")), [ye,
|
|
3002
|
+
const Ce = u.toFiniteNumber(ae.headers.get("content-length")), [ye, ke] = Z && Kt(
|
|
3003
3003
|
Ce,
|
|
3004
3004
|
st(Yt(Z), !0)
|
|
3005
3005
|
) || [];
|
|
3006
3006
|
ae = new o(
|
|
3007
3007
|
es(ae.body, ts, ye, () => {
|
|
3008
|
-
|
|
3008
|
+
ke && ke(), J && J();
|
|
3009
3009
|
}),
|
|
3010
3010
|
ue
|
|
3011
3011
|
);
|
|
@@ -3013,7 +3013,7 @@ const Es = (e) => {
|
|
|
3013
3013
|
W = W || "text";
|
|
3014
3014
|
let lt = await S[u.findKey(S, W) || "text"](ae, f);
|
|
3015
3015
|
return !Ve && J && J(), await new Promise((ue, Ce) => {
|
|
3016
|
-
|
|
3016
|
+
As(ue, Ce, {
|
|
3017
3017
|
data: lt,
|
|
3018
3018
|
headers: ee.from(ae.headers),
|
|
3019
3019
|
status: ae.status,
|
|
@@ -3060,8 +3060,8 @@ u.forEach(Bt, (e, t) => {
|
|
|
3060
3060
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
3061
3061
|
}
|
|
3062
3062
|
});
|
|
3063
|
-
const is = (e) => `- ${e}`,
|
|
3064
|
-
function
|
|
3063
|
+
const is = (e) => `- ${e}`, Aa = (e) => u.isFunction(e) || e === null || e === !1;
|
|
3064
|
+
function ka(e, t) {
|
|
3065
3065
|
e = u.isArray(e) ? e : [e];
|
|
3066
3066
|
const { length: s } = e;
|
|
3067
3067
|
let o, n;
|
|
@@ -3069,7 +3069,7 @@ function Aa(e, t) {
|
|
|
3069
3069
|
for (let i = 0; i < s; i++) {
|
|
3070
3070
|
o = e[i];
|
|
3071
3071
|
let l;
|
|
3072
|
-
if (n = o, !
|
|
3072
|
+
if (n = o, !Aa(o) && (n = Bt[(l = String(o)).toLowerCase()], n === void 0))
|
|
3073
3073
|
throw new L(`Unknown adapter '${l}'`);
|
|
3074
3074
|
if (n && (u.isFunction(n) || (n = n.get(t))))
|
|
3075
3075
|
break;
|
|
@@ -3094,7 +3094,7 @@ const Ts = {
|
|
|
3094
3094
|
* Resolve an adapter from a list of adapter names or functions.
|
|
3095
3095
|
* @type {Function}
|
|
3096
3096
|
*/
|
|
3097
|
-
getAdapter:
|
|
3097
|
+
getAdapter: ka,
|
|
3098
3098
|
/**
|
|
3099
3099
|
* Exposes all known adapters
|
|
3100
3100
|
* @type {Object<string, Function|Object>}
|
|
@@ -3232,12 +3232,12 @@ let Se = class {
|
|
|
3232
3232
|
), s.headers = ee.concat(i, a);
|
|
3233
3233
|
const l = [];
|
|
3234
3234
|
let d = !0;
|
|
3235
|
-
this.interceptors.request.forEach(function(
|
|
3236
|
-
typeof
|
|
3235
|
+
this.interceptors.request.forEach(function(_) {
|
|
3236
|
+
typeof _.runWhen == "function" && _.runWhen(s) === !1 || (d = d && _.synchronous, l.unshift(_.fulfilled, _.rejected));
|
|
3237
3237
|
});
|
|
3238
3238
|
const p = [];
|
|
3239
|
-
this.interceptors.response.forEach(function(
|
|
3240
|
-
p.push(
|
|
3239
|
+
this.interceptors.response.forEach(function(_) {
|
|
3240
|
+
p.push(_.fulfilled, _.rejected);
|
|
3241
3241
|
});
|
|
3242
3242
|
let y, S = 0, F;
|
|
3243
3243
|
if (!d) {
|
|
@@ -3249,11 +3249,11 @@ let Se = class {
|
|
|
3249
3249
|
F = l.length;
|
|
3250
3250
|
let C = s;
|
|
3251
3251
|
for (; S < F; ) {
|
|
3252
|
-
const f = l[S++],
|
|
3252
|
+
const f = l[S++], _ = l[S++];
|
|
3253
3253
|
try {
|
|
3254
3254
|
C = f(C);
|
|
3255
3255
|
} catch (b) {
|
|
3256
|
-
|
|
3256
|
+
_.call(this, b);
|
|
3257
3257
|
break;
|
|
3258
3258
|
}
|
|
3259
3259
|
}
|
|
@@ -3268,7 +3268,7 @@ let Se = class {
|
|
|
3268
3268
|
}
|
|
3269
3269
|
getUri(t) {
|
|
3270
3270
|
t = Fe(this.defaults, t);
|
|
3271
|
-
const s =
|
|
3271
|
+
const s = ks(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
3272
3272
|
return _s(s, t.params, t.paramsSerializer);
|
|
3273
3273
|
}
|
|
3274
3274
|
};
|
|
@@ -3586,7 +3586,7 @@ const Je = {
|
|
|
3586
3586
|
}, Sr = ["src"], xr = { class: "game-teams__team away" }, Fr = {
|
|
3587
3587
|
key: 0,
|
|
3588
3588
|
class: "team-logo"
|
|
3589
|
-
},
|
|
3589
|
+
}, Ar = ["src"], kr = { class: "specific-plays-field__play-buttons__container" }, Er = {
|
|
3590
3590
|
key: 1,
|
|
3591
3591
|
class: "specific-plays-radio-container-movil"
|
|
3592
3592
|
}, Pr = { class: "radio-container" }, Tr = { class: "radio-label" }, Br = ["src"], Or = { class: "radio-container" }, Lr = { class: "radio-label" }, Rr = ["src"], Ir = {
|
|
@@ -3819,12 +3819,12 @@ const Je = {
|
|
|
3819
3819
|
headers: {
|
|
3820
3820
|
Authorization: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"
|
|
3821
3821
|
}
|
|
3822
|
-
}, y = t, S = N(null), F = N("0"), C = N(["-1", "0"]), f = N(/* @__PURE__ */ new Map()),
|
|
3822
|
+
}, y = t, S = N(null), F = N("0"), C = N(["-1", "0"]), f = N(/* @__PURE__ */ new Map()), _ = N(!o.isTacticVisible), b = N(!1), O = N([]), z = N(!0), H = N(!0), j = N(!1), Z = N(!1), K = N(!0), W = N(/* @__PURE__ */ new Map()), Le = I(() => {
|
|
3823
3823
|
const m = [];
|
|
3824
3824
|
return E.value && (z.value && m.push(o.teamIdForAnalysis), H.value && m.push(
|
|
3825
3825
|
o.teamIdForAnalysis !== E.value.home_team ? E.value.home_team : E.value.visiting_team
|
|
3826
3826
|
)), m;
|
|
3827
|
-
}),
|
|
3827
|
+
}), Ae = I(() => o.widthContainer <= 768 ? "cont-data768" : "cont-data"), He = I(() => {
|
|
3828
3828
|
const m = o.widthContainer;
|
|
3829
3829
|
return m <= 768 ? "cont-collectors768" : m <= 900 ? "cont-collectors900" : "cont-collectors";
|
|
3830
3830
|
}), Ue = I(() => {
|
|
@@ -3838,13 +3838,13 @@ const Je = {
|
|
|
3838
3838
|
if (v && v.playConnections) {
|
|
3839
3839
|
lt(v);
|
|
3840
3840
|
const x = v.playConnections;
|
|
3841
|
-
let
|
|
3842
|
-
return x.relatedPlays &&
|
|
3841
|
+
let w = [x.mainPlay];
|
|
3842
|
+
return x.relatedPlays && w.push(...x.relatedPlays), w.sort((A, B) => A.touchOrder - B.touchOrder), w = w.filter((A) => {
|
|
3843
3843
|
let B = !0;
|
|
3844
|
-
return c ? !1 : (te.value ? B = !
|
|
3845
|
-
}),
|
|
3846
|
-
B > 0 && (
|
|
3847
|
-
}),
|
|
3844
|
+
return c ? !1 : (te.value ? B = !A.isTeamForAnalysis && A.y1 <= Xe || A.isTeamForAnalysis && A.y1 >= Xe : B = A.isTeamForAnalysis && A.y1 <= Xe || !A.isTeamForAnalysis && A.y1 >= Xe, c = !B, B);
|
|
3845
|
+
}), w.forEach((A, B) => {
|
|
3846
|
+
B > 0 && (A.previousPlayConnection = w[B - 1]), B === w.length - 1 && (A.isLastPlay = !0);
|
|
3847
|
+
}), w;
|
|
3848
3848
|
}
|
|
3849
3849
|
}
|
|
3850
3850
|
return [];
|
|
@@ -3875,10 +3875,10 @@ const Je = {
|
|
|
3875
3875
|
const m = Number(C.value[0]), c = Number(C.value[1]), v = [];
|
|
3876
3876
|
if (c !== m)
|
|
3877
3877
|
for (let x = m; x < c; x++) {
|
|
3878
|
-
const
|
|
3879
|
-
|
|
3880
|
-
playersPositions:
|
|
3881
|
-
finalPlayersPositions:
|
|
3878
|
+
const w = ie.value.get(x.toString()), A = ie.value.get((x + 1).toString());
|
|
3879
|
+
w && A && v.push({
|
|
3880
|
+
playersPositions: w,
|
|
3881
|
+
finalPlayersPositions: A,
|
|
3882
3882
|
areFirstPositions: x === m,
|
|
3883
3883
|
areFinalPositions: x === c - 1
|
|
3884
3884
|
});
|
|
@@ -3899,7 +3899,7 @@ const Je = {
|
|
|
3899
3899
|
me(
|
|
3900
3900
|
() => o.advancedFilters,
|
|
3901
3901
|
(m) => {
|
|
3902
|
-
|
|
3902
|
+
_.value = m.areConnectionsVisible, b.value = m.arePathsVisible;
|
|
3903
3903
|
const c = m.secondsBeforeAndAfter.toString(), v = m.secondsBefore.toString(), x = m.secondsAfter.toString();
|
|
3904
3904
|
ye.value.includes(c) && (F.value = c), ye.value.includes(v) && (C.value[0] = v), ye.value.includes(x) && (C.value[1] = x);
|
|
3905
3905
|
},
|
|
@@ -3924,12 +3924,12 @@ const Je = {
|
|
|
3924
3924
|
() => de.value,
|
|
3925
3925
|
(m, c) => {
|
|
3926
3926
|
if (m !== c && (F.value = "0", C.value = ["-1", "0"], E.value)) {
|
|
3927
|
-
E.value.corners.forEach((
|
|
3928
|
-
|
|
3929
|
-
}), E.value.cornersAgainstTeam.forEach((
|
|
3930
|
-
|
|
3927
|
+
E.value.corners.forEach((w) => {
|
|
3928
|
+
w.isSelected = !1;
|
|
3929
|
+
}), E.value.cornersAgainstTeam.forEach((w) => {
|
|
3930
|
+
w.isSelected = !1;
|
|
3931
3931
|
});
|
|
3932
|
-
const x = (o.isAgainstMode ? E.value.cornersAgainstTeam : E.value.corners).filter((
|
|
3932
|
+
const x = (o.isAgainstMode ? E.value.cornersAgainstTeam : E.value.corners).filter((w) => w.isVisible);
|
|
3933
3933
|
x.length > 0 && (x[0].isSelected = !0);
|
|
3934
3934
|
}
|
|
3935
3935
|
}
|
|
@@ -3945,10 +3945,10 @@ const Je = {
|
|
|
3945
3945
|
), me(
|
|
3946
3946
|
() => o.isTacticVisible,
|
|
3947
3947
|
(m) => {
|
|
3948
|
-
|
|
3948
|
+
_.value = !m;
|
|
3949
3949
|
}
|
|
3950
3950
|
);
|
|
3951
|
-
function
|
|
3951
|
+
function ke(m) {
|
|
3952
3952
|
y("changelateralidad", m);
|
|
3953
3953
|
}
|
|
3954
3954
|
function we() {
|
|
@@ -3968,45 +3968,49 @@ const Je = {
|
|
|
3968
3968
|
const v = o.isAgainstMode ? c.cornersAgainstTeam : c.corners;
|
|
3969
3969
|
if ((!o.filters.games.length || o.filters.games.includes(c.game_id)) && o.filters.playingAs.includes(c.playingAs) && (o.filters.isMoment || o.filters.final.includes(c.finalResult))) {
|
|
3970
3970
|
let x = 0;
|
|
3971
|
-
for (const
|
|
3972
|
-
if (
|
|
3973
|
-
|
|
3971
|
+
for (const w of v) {
|
|
3972
|
+
if (w.isSelected = !1, o.playIdForAnalysis && w.play_id === o.playIdForAnalysis) {
|
|
3973
|
+
w.isVisible = !0, w.isSelected = !0, x++;
|
|
3974
|
+
break;
|
|
3975
|
+
}
|
|
3976
|
+
if (o.filters.cornertype !== w.init_category_id) {
|
|
3977
|
+
w.isVisible = !1, w.isSelected = !1;
|
|
3974
3978
|
continue;
|
|
3975
3979
|
}
|
|
3976
3980
|
if (!o.filters.howWas.some(
|
|
3977
|
-
(
|
|
3981
|
+
(A) => w.relatedCategoriesIds.has(A)
|
|
3978
3982
|
)) {
|
|
3979
|
-
|
|
3983
|
+
w.isVisible = !1, w.isSelected = !1;
|
|
3980
3984
|
continue;
|
|
3981
3985
|
}
|
|
3982
|
-
if (!o.isAgainstMode && o.filters.players.length && !o.filters.players.includes(
|
|
3983
|
-
|
|
3986
|
+
if (!o.isAgainstMode && o.filters.players.length && !o.filters.players.includes(w.player_id)) {
|
|
3987
|
+
w.isVisible = !1, w.isSelected = !1;
|
|
3984
3988
|
continue;
|
|
3985
3989
|
}
|
|
3986
|
-
if (
|
|
3987
|
-
if (!o.filters.sections.includes(
|
|
3988
|
-
|
|
3990
|
+
if (w.playConnections) {
|
|
3991
|
+
if (!o.filters.sections.includes(w.playConnections.mainPlay.timeSection)) {
|
|
3992
|
+
w.isVisible = !1, w.isSelected = !1;
|
|
3989
3993
|
continue;
|
|
3990
3994
|
}
|
|
3991
3995
|
if (!o.filters.moment.includes(
|
|
3992
|
-
|
|
3996
|
+
w.playConnections.mainPlay.matchResultAtMomentOfPlay
|
|
3993
3997
|
)) {
|
|
3994
|
-
|
|
3998
|
+
w.isVisible = !1, w.isSelected = !1;
|
|
3995
3999
|
continue;
|
|
3996
4000
|
}
|
|
3997
|
-
const
|
|
3998
|
-
if (
|
|
3999
|
-
|
|
4001
|
+
const A = w.playConnections.mainPlay;
|
|
4002
|
+
if (A && !o.filters.isZoneFull && !o.filters.zona.includes(A.fieldSection)) {
|
|
4003
|
+
w.isVisible = !1, w.isSelected = !1;
|
|
4000
4004
|
continue;
|
|
4001
4005
|
}
|
|
4002
4006
|
}
|
|
4003
|
-
if (!o.filters.isWhatHappenedFull &&
|
|
4004
|
-
(
|
|
4007
|
+
if (!o.filters.isWhatHappenedFull && w.relatedCategoriesIds && !o.filters.whathappened.some(
|
|
4008
|
+
(A) => w.relatedCategoriesIds.has(A)
|
|
4005
4009
|
)) {
|
|
4006
|
-
|
|
4010
|
+
w.isVisible = !1, w.isSelected = !1;
|
|
4007
4011
|
continue;
|
|
4008
4012
|
}
|
|
4009
|
-
|
|
4013
|
+
w.isVisible = !0, x === 0 && (w.isSelected = !0), x++;
|
|
4010
4014
|
}
|
|
4011
4015
|
c.isVisible = x > 0, c.isVisible && !m ? (c.isSelected = !0, c.isExpanded = !0, m = !0) : c.isSelected = !1;
|
|
4012
4016
|
} else
|
|
@@ -4026,8 +4030,8 @@ const Je = {
|
|
|
4026
4030
|
return `${m}:${v < 10 ? "0" : ""}${v}.000`;
|
|
4027
4031
|
}
|
|
4028
4032
|
function ct(m, c, v, x) {
|
|
4029
|
-
m && m.forEach((
|
|
4030
|
-
|
|
4033
|
+
m && m.forEach((w) => {
|
|
4034
|
+
w.isHomeTeam = w.teamId === o.game.home_team, w.attackDirection = x.get(w.playId).mainPlay.attackDirection, w.player = c.get(w.playerId) || v.get(w.playerId);
|
|
4031
4035
|
});
|
|
4032
4036
|
}
|
|
4033
4037
|
function ze(m, c) {
|
|
@@ -4139,38 +4143,38 @@ const Je = {
|
|
|
4139
4143
|
);
|
|
4140
4144
|
if (!v.data && !m)
|
|
4141
4145
|
return It(o.game.regularSeasonId);
|
|
4142
|
-
const x = v.data,
|
|
4146
|
+
const x = v.data, w = {
|
|
4143
4147
|
corners: 0,
|
|
4144
4148
|
cornersAgainst: 0
|
|
4145
4149
|
};
|
|
4146
|
-
O.value = x.games ? x.games.reduce((
|
|
4147
|
-
if (o.isGameOnly && o.gameIdForAnalysis !== B.game_id && B.game_id !== o.game.id
|
|
4148
|
-
return
|
|
4150
|
+
O.value = x.games ? x.games.reduce((A, B) => {
|
|
4151
|
+
if (o.isGameOnly && o.gameIdForAnalysis !== B.game_id && B.game_id !== o.game.id)
|
|
4152
|
+
return A;
|
|
4149
4153
|
const re = {
|
|
4150
4154
|
againstTeam: [],
|
|
4151
4155
|
team: []
|
|
4152
|
-
},
|
|
4153
|
-
B.dateMillis = new Date(B.date_time_utc), B.isVisible = !0, B.playingAs = B.home_team === o.teamIdForAnalysis ? 1 : 2, B.finalResult =
|
|
4156
|
+
}, k = B.score[1] - B.score[0];
|
|
4157
|
+
B.dateMillis = new Date(B.date_time_utc), B.isVisible = !0, B.playingAs = B.home_team === o.teamIdForAnalysis ? 1 : 2, B.finalResult = k === 0 ? 3 : B.playingAs === 1 ? k > 0 ? 2 : 1 : k < 0 ? 2 : 1, B.corners.forEach((M) => {
|
|
4154
4158
|
const U = M.team_id === o.teamIdForAnalysis;
|
|
4155
4159
|
M.isAgainst = !U, (!o.playIdForAnalysis || o.playIdForAnalysis === M.play_id) && (U ? re.team.push(M) : re.againstTeam.push(M));
|
|
4156
4160
|
}), B.corners = re.team, B.cornersAgainstTeam = re.againstTeam;
|
|
4157
4161
|
const se = B.home_team === o.teamIdForAnalysis ? 1 : 2;
|
|
4158
|
-
|
|
4162
|
+
w.corners += B.corners.length, w.cornersAgainst += B.cornersAgainstTeam.length;
|
|
4159
4163
|
const R = {
|
|
4160
4164
|
...B,
|
|
4161
|
-
isSelected:
|
|
4165
|
+
isSelected: A.length === 0,
|
|
4162
4166
|
isExpanded: !1,
|
|
4163
4167
|
isTeamForAnalysisHomeTeam: B.home_team === o.teamIdForAnalysis,
|
|
4164
4168
|
canPlayVideos: o.canPlayVideos && o.videoPrivilegesPlayingAs.has(se)
|
|
4165
4169
|
};
|
|
4166
|
-
return
|
|
4167
|
-
}, []) : [], O.value = O.value.sort((
|
|
4168
|
-
|
|
4170
|
+
return A.push(R), A;
|
|
4171
|
+
}, []) : [], O.value = O.value.sort((A, B) => B.dateMillis - A.dateMillis), $t(), y("corners-filled", w), await Mt(), O.value.forEach((A) => {
|
|
4172
|
+
A.corners.concat(A.cornersAgainstTeam).forEach((B) => {
|
|
4169
4173
|
if (B.playConnections) {
|
|
4170
|
-
const [re,
|
|
4174
|
+
const [re, k] = B.moment_of_play.split(":"), [se, R] = k.split("."), M = Number(re) + 45 * B.playConnections.mainPlay.matchLapse;
|
|
4171
4175
|
B.isSelected = !1, B.orderValue = +`${M}${se}${R}`;
|
|
4172
4176
|
}
|
|
4173
|
-
}),
|
|
4177
|
+
}), A.corners = A.corners.sort((B, re) => B.orderValue - re.orderValue), A.cornersAgainstTeam = A.cornersAgainstTeam.sort((B, re) => B.orderValue - re.orderValue);
|
|
4174
4178
|
}), we();
|
|
4175
4179
|
} catch (c) {
|
|
4176
4180
|
throw new Error(c);
|
|
@@ -4202,63 +4206,63 @@ const Je = {
|
|
|
4202
4206
|
function Nt(m) {
|
|
4203
4207
|
const [c, v] = m.split(", ");
|
|
4204
4208
|
let x = "";
|
|
4205
|
-
const
|
|
4206
|
-
for (const
|
|
4207
|
-
if (x += ` ${
|
|
4209
|
+
const w = c.split(" ");
|
|
4210
|
+
for (const A of w)
|
|
4211
|
+
if (x += ` ${A}`, A.length > 3)
|
|
4208
4212
|
break;
|
|
4209
4213
|
return v && c ? `${v.trim().charAt(0)}.${x}` : "";
|
|
4210
4214
|
}
|
|
4211
4215
|
function Ht(m) {
|
|
4212
4216
|
let [c, v] = m.split(", ");
|
|
4213
|
-
v = v.trim();
|
|
4217
|
+
v = (v == null ? void 0 : v.trim()) || "";
|
|
4214
4218
|
let x = "";
|
|
4215
|
-
const
|
|
4216
|
-
for (const B of
|
|
4219
|
+
const w = c.split(" "), A = v.includes(" ") ? v.split(" ")[0] : v;
|
|
4220
|
+
for (const B of w)
|
|
4217
4221
|
if (x += ` ${B}`, B.length > 3)
|
|
4218
4222
|
break;
|
|
4219
|
-
return
|
|
4223
|
+
return A && c ? `${A} ${x}` : "";
|
|
4220
4224
|
}
|
|
4221
4225
|
async function Ds(m, c) {
|
|
4222
4226
|
try {
|
|
4223
4227
|
if (m && c && (!m.isSoccerFieldDataLoaded || !m.isSoccerFieldDataRivalLoaded)) {
|
|
4224
|
-
const v = /* @__PURE__ */ new Map(), x = /* @__PURE__ */ new Map(),
|
|
4225
|
-
Is(c.data), c.data.players && c.data.players.forEach((
|
|
4226
|
-
|
|
4227
|
-
}), c.data.rival_players && c.data.rival_players.forEach((
|
|
4228
|
-
|
|
4228
|
+
const v = /* @__PURE__ */ new Map(), x = /* @__PURE__ */ new Map(), w = /* @__PURE__ */ new Map();
|
|
4229
|
+
Is(c.data), c.data.players && c.data.players.forEach((k) => {
|
|
4230
|
+
k.shortName = Nt(k.name), k.firstNameAndFirstLastName = Ht(k.name), x.set(k.player_id, k);
|
|
4231
|
+
}), c.data.rival_players && c.data.rival_players.forEach((k) => {
|
|
4232
|
+
k.shortName = Nt(k.name), k.firstNameAndFirstLastName = Ht(k.name), w.set(k.player_id, k);
|
|
4229
4233
|
}), S.value = c.data.teams.find(
|
|
4230
|
-
(
|
|
4234
|
+
(k) => k.team_id === o.teamIdForAnalysis
|
|
4231
4235
|
), S.value && (S.value.rival = c.data.teams.find(
|
|
4232
|
-
(
|
|
4236
|
+
(k) => k.team_id !== o.teamIdForAnalysis
|
|
4233
4237
|
));
|
|
4234
|
-
const
|
|
4235
|
-
const R = se.reduce((ve, Ee, Ut) => (ve[a[Ut]] = Ee, ve.isHomeTeam = ve.teamId === m.home_team, ve), {}), M = R.playId === R.relatedPlayId, U =
|
|
4236
|
-
return R.player = x.get(R.playerId) ||
|
|
4238
|
+
const A = c.data.data.reduce((k, se) => {
|
|
4239
|
+
const R = se.reduce((ve, Ee, Ut) => (ve[a[Ut]] = Ee, ve.isHomeTeam = ve.teamId === m.home_team, ve), {}), M = R.playId === R.relatedPlayId, U = k.get(R.relatedPlayId), Y = R.momentOfPlay.split(":"), oe = Rs(Y);
|
|
4240
|
+
return R.player = x.get(R.playerId) || w.get(R.playerId), R.isTeamForAnalysis = R.teamId === o.teamIdForAnalysis, M && (R.attackDirection = f.value.get(
|
|
4237
4241
|
R.matchLapse
|
|
4238
|
-
), v.set(R.playId, oe)), U ? M ? U.mainPlay = R : U.relatedPlays.length < Wr && (U.relatedPlays.push(R), U.relatedPlays.length > 1 && U.relatedPlays.sort((ve, Ee) => ve.touchOrder - Ee.touchOrder)) :
|
|
4242
|
+
), v.set(R.playId, oe)), U ? M ? U.mainPlay = R : U.relatedPlays.length < Wr && (U.relatedPlays.push(R), U.relatedPlays.length > 1 && U.relatedPlays.sort((ve, Ee) => ve.touchOrder - Ee.touchOrder)) : k.set(R.playId, {
|
|
4239
4243
|
mainPlay: M ? R : null,
|
|
4240
4244
|
relatedPlays: M ? [] : [R]
|
|
4241
|
-
}),
|
|
4245
|
+
}), k;
|
|
4242
4246
|
}, /* @__PURE__ */ new Map()), B = c.data.field_positions.reduce(
|
|
4243
|
-
(
|
|
4247
|
+
(k, se) => {
|
|
4244
4248
|
const R = se.reduce((U, Y, oe) => (U[n[oe]] = Y, U), {});
|
|
4245
4249
|
R.isTeamForAnalysis = R.teamId === o.teamIdForAnalysis;
|
|
4246
|
-
const M =
|
|
4250
|
+
const M = k.get(R.playId);
|
|
4247
4251
|
if (M) {
|
|
4248
4252
|
const U = M.get(
|
|
4249
4253
|
R.momentOfPlay
|
|
4250
4254
|
);
|
|
4251
4255
|
U ? U.push(R) : M.set(R.momentOfPlay, [R]);
|
|
4252
4256
|
} else
|
|
4253
|
-
|
|
4257
|
+
k.set(
|
|
4254
4258
|
R.playId,
|
|
4255
4259
|
/* @__PURE__ */ new Map([[R.momentOfPlay, [R]]])
|
|
4256
4260
|
);
|
|
4257
|
-
return
|
|
4261
|
+
return k;
|
|
4258
4262
|
},
|
|
4259
4263
|
/* @__PURE__ */ new Map()
|
|
4260
4264
|
), re = Array.from(v.entries()).reduce(
|
|
4261
|
-
(
|
|
4265
|
+
(k, [se, R]) => {
|
|
4262
4266
|
const M = [], U = [];
|
|
4263
4267
|
let Y = null;
|
|
4264
4268
|
const oe = B.get(se);
|
|
@@ -4269,20 +4273,20 @@ const Je = {
|
|
|
4269
4273
|
});
|
|
4270
4274
|
const Ge = /* @__PURE__ */ new Map();
|
|
4271
4275
|
M.forEach((fe, ut) => {
|
|
4272
|
-
ct(fe, x,
|
|
4273
|
-
}), ct(Y, x,
|
|
4274
|
-
ct(fe, x,
|
|
4275
|
-
}),
|
|
4276
|
+
ct(fe, x, w, A), Ge.set(`${ut - M.length}`, fe);
|
|
4277
|
+
}), ct(Y, x, w, A), Ge.set("0", Y), U.forEach((fe, ut) => {
|
|
4278
|
+
ct(fe, x, w, A), Ge.set(`${ut + 1}`, fe);
|
|
4279
|
+
}), k.set(se, Ge);
|
|
4276
4280
|
}
|
|
4277
|
-
return
|
|
4281
|
+
return k;
|
|
4278
4282
|
},
|
|
4279
4283
|
/* @__PURE__ */ new Map()
|
|
4280
4284
|
);
|
|
4281
|
-
m[`${o.isAgainstMode ? "cornersAgainstTeam" : "corners"}`].forEach((
|
|
4282
|
-
const se =
|
|
4285
|
+
m[`${o.isAgainstMode ? "cornersAgainstTeam" : "corners"}`].forEach((k) => {
|
|
4286
|
+
const se = k.related_categories.split(",").reduce(
|
|
4283
4287
|
(M, U, Y) => {
|
|
4284
4288
|
const oe = Number(U);
|
|
4285
|
-
return Y === 1 && (
|
|
4289
|
+
return Y === 1 && (k.howWasCorner = oe), M.array.push(oe), M.sett.add(oe), M;
|
|
4286
4290
|
},
|
|
4287
4291
|
{
|
|
4288
4292
|
array: [],
|
|
@@ -4291,12 +4295,12 @@ const Je = {
|
|
|
4291
4295
|
);
|
|
4292
4296
|
for (const M of se.array) {
|
|
4293
4297
|
const U = l.get(M), Y = d.get(M);
|
|
4294
|
-
if (Y && (
|
|
4298
|
+
if (Y && (k.whatHappenedName = Y), U && (k.howWasCornerName = U), k.howWasCornerName && k.whatHappenedName)
|
|
4295
4299
|
break;
|
|
4296
4300
|
}
|
|
4297
|
-
|
|
4298
|
-
let R =
|
|
4299
|
-
R.startsWith("0") && (R = R.slice(1)),
|
|
4301
|
+
k.relatedCategoriesIds = se.sett, k.playConnections = A.get(k.play_id), k.fieldPositions = re.get(k.play_id), k.player = x.get(k.player_id) || w.get(k.player_id);
|
|
4302
|
+
let R = k.moment_of_play.split(".")[0];
|
|
4303
|
+
R.startsWith("0") && (R = R.slice(1)), k.formattedMomentOfPlay = R, k.momentOfPlayNumber = Number(R.replace(":", "."));
|
|
4300
4304
|
}), !o.isAgainstMode && !m.isSoccerFieldDataLoaded && (m.isSoccerFieldDataLoaded = !0), o.isAgainstMode && !m.isSoccerFieldDataRivalLoaded && (m.isSoccerFieldDataRivalLoaded = !0);
|
|
4301
4305
|
}
|
|
4302
4306
|
} catch (v) {
|
|
@@ -4304,7 +4308,7 @@ const Je = {
|
|
|
4304
4308
|
}
|
|
4305
4309
|
}
|
|
4306
4310
|
function dt(m) {
|
|
4307
|
-
const c = E.value[`${o.isAgainstMode ? "cornersAgainstTeam" : "corners"}`], v = {}, x = c.reduce((
|
|
4311
|
+
const c = E.value[`${o.isAgainstMode ? "cornersAgainstTeam" : "corners"}`], v = {}, x = c.reduce((w, A) => (A.isVisible && (w.add(A.play_id), A.isSelected && (v.playId = A.play_id)), w), /* @__PURE__ */ new Set());
|
|
4308
4312
|
y("open-media-player", {
|
|
4309
4313
|
seasonId: s,
|
|
4310
4314
|
mainSectionType: 1,
|
|
@@ -4363,12 +4367,12 @@ const Je = {
|
|
|
4363
4367
|
[he, !e.isFieldOnly]
|
|
4364
4368
|
]),
|
|
4365
4369
|
r("div", {
|
|
4366
|
-
class: G(
|
|
4370
|
+
class: G(Ae.value)
|
|
4367
4371
|
}, [
|
|
4368
4372
|
ne(r("div", {
|
|
4369
4373
|
class: G(He.value)
|
|
4370
4374
|
}, [
|
|
4371
|
-
e.widthContainer > 768 ? (h(), ge(
|
|
4375
|
+
e.widthContainer > 768 ? (h(), ge(ko, {
|
|
4372
4376
|
key: 0,
|
|
4373
4377
|
"is-against-mode": e.isAgainstMode,
|
|
4374
4378
|
"games-by-team": O.value,
|
|
@@ -4394,8 +4398,8 @@ const Je = {
|
|
|
4394
4398
|
ne(r("div", Wa, [
|
|
4395
4399
|
r("div", qa, [
|
|
4396
4400
|
Pe(le(pt), {
|
|
4397
|
-
modelValue:
|
|
4398
|
-
"onUpdate:modelValue": c[0] || (c[0] = (v) =>
|
|
4401
|
+
modelValue: _.value,
|
|
4402
|
+
"onUpdate:modelValue": c[0] || (c[0] = (v) => _.value = v),
|
|
4399
4403
|
label: "Mostrar conexiones",
|
|
4400
4404
|
fontFamily: "Poppins-Regular",
|
|
4401
4405
|
labelFontSize: e.widthContainer > 400 ? "13px" : "12px",
|
|
@@ -4668,11 +4672,11 @@ const Je = {
|
|
|
4668
4672
|
"players-positions-by-range": Ce.value,
|
|
4669
4673
|
"team-id-for-analysis": e.teamIdForAnalysis,
|
|
4670
4674
|
"selected-category": e.filters.cornertype,
|
|
4671
|
-
"are-connections-visible":
|
|
4675
|
+
"are-connections-visible": _.value,
|
|
4672
4676
|
"are-position-paths-visible": b.value,
|
|
4673
4677
|
"visible-teams-ids": Le.value,
|
|
4674
4678
|
"is-against-corner": te.value,
|
|
4675
|
-
onChangelateralidad:
|
|
4679
|
+
onChangelateralidad: ke
|
|
4676
4680
|
}, null, 8, ["width-container", "play-connections", "players-positions", "players-positions-by-range", "team-id-for-analysis", "selected-category", "are-connections-visible", "are-position-paths-visible", "visible-teams-ids", "is-against-corner"])
|
|
4677
4681
|
]),
|
|
4678
4682
|
r("div", br, [
|
|
@@ -4690,7 +4694,7 @@ const Je = {
|
|
|
4690
4694
|
r("img", {
|
|
4691
4695
|
src: ae.value.visiting_team_logo,
|
|
4692
4696
|
alt: ""
|
|
4693
|
-
}, null, 8,
|
|
4697
|
+
}, null, 8, Ar)
|
|
4694
4698
|
])),
|
|
4695
4699
|
c[32] || (c[32] = r("div", { class: "bullet" }, null, -1))
|
|
4696
4700
|
])
|
|
@@ -4701,7 +4705,7 @@ const Je = {
|
|
|
4701
4705
|
style: $(e.widthContainer <= 768 ? "gap:5px; flex-direction: column;" : "")
|
|
4702
4706
|
}, [
|
|
4703
4707
|
c[36] || (c[36] = r("div", { class: "specific-plays-field__play-buttons__text" }, "Visualizar video:", -1)),
|
|
4704
|
-
r("div",
|
|
4708
|
+
r("div", kr, [
|
|
4705
4709
|
E.value.video_types.includes(1) ? (h(), g("div", {
|
|
4706
4710
|
key: 0,
|
|
4707
4711
|
class: "specific-plays-field__play-buttons__button",
|
|
@@ -4843,7 +4847,7 @@ const Je = {
|
|
|
4843
4847
|
], 2)
|
|
4844
4848
|
], 64));
|
|
4845
4849
|
}
|
|
4846
|
-
}, pl = /* @__PURE__ */ be(qr, [["__scopeId", "data-v-
|
|
4850
|
+
}, pl = /* @__PURE__ */ be(qr, [["__scopeId", "data-v-24a5897f"]]);
|
|
4847
4851
|
export {
|
|
4848
4852
|
pl as GSCSpecificPlays
|
|
4849
4853
|
};
|