@golstats/lilini-player-detection 1.0.4 → 1.0.5
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/{FilterConditions-2f036bc8-CISEPQKr-CX7502yR.js → FilterConditions-2f036bc8-CISEPQKr-DaJrVfMy.js} +1 -1
- package/dist/{FilterConditions-2f036bc8-D40XYlAh.js → FilterConditions-2f036bc8-DKiQkPcg.js} +1 -1
- package/dist/{FilterField-bce31e05-BZk_kqhH-wJ76e198.js → FilterField-bce31e05-BZk_kqhH-aqlzonU5.js} +1 -1
- package/dist/{FilterField-bce31e05-Bolt_54X.js → FilterField-bce31e05-CAA20k7V.js} +1 -1
- package/dist/{FilterSubcategories-1761e851-fcBS87fc.js → FilterSubcategories-1761e851-BMrD4oKg.js} +1 -1
- package/dist/{FilterSubcategories-1761e851-BxjGCJHT-C1fno22s.js → FilterSubcategories-1761e851-BxjGCJHT-CIU7uqt_.js} +1 -1
- package/dist/{index-D48wP_Jg.js → index-ciwNk-T0.js} +187 -199
- package/dist/lilini-player-detection.css +1 -1
- package/dist/lilini-player-detection.es.js +1 -1
- package/dist/lilini-player-detection.umd.js +8 -8
- package/package.json +1 -1
|
@@ -1714,8 +1714,8 @@ const Id = /* @__PURE__ */ xd(To, [["render", Rd], ["__scopeId", "data-v-f3ee6b2
|
|
|
1714
1714
|
async (K) => {
|
|
1715
1715
|
try {
|
|
1716
1716
|
K && K && !r.value.length && await b();
|
|
1717
|
-
} catch (
|
|
1718
|
-
console.error("Error",
|
|
1717
|
+
} catch (te) {
|
|
1718
|
+
console.error("Error", te);
|
|
1719
1719
|
}
|
|
1720
1720
|
},
|
|
1721
1721
|
{
|
|
@@ -1724,15 +1724,15 @@ const Id = /* @__PURE__ */ xd(To, [["render", Rd], ["__scopeId", "data-v-f3ee6b2
|
|
|
1724
1724
|
);
|
|
1725
1725
|
async function b() {
|
|
1726
1726
|
try {
|
|
1727
|
-
r.value = await h(), r.value.sort((K,
|
|
1727
|
+
r.value = await h(), r.value.sort((K, te) => K.order - te.order);
|
|
1728
1728
|
} catch (K) {
|
|
1729
1729
|
console.error("Error", K);
|
|
1730
1730
|
}
|
|
1731
1731
|
}
|
|
1732
1732
|
async function h() {
|
|
1733
1733
|
try {
|
|
1734
|
-
const
|
|
1735
|
-
return
|
|
1734
|
+
const te = await (await fetch(i.apiUrl || Su)).json();
|
|
1735
|
+
return te ? te.map((B) => ({
|
|
1736
1736
|
...B.tournament,
|
|
1737
1737
|
seasons: B.seasons
|
|
1738
1738
|
})) : [];
|
|
@@ -1748,19 +1748,19 @@ const Id = /* @__PURE__ */ xd(To, [["render", Rd], ["__scopeId", "data-v-f3ee6b2
|
|
|
1748
1748
|
}
|
|
1749
1749
|
async function g({ seasonId: K }) {
|
|
1750
1750
|
try {
|
|
1751
|
-
const
|
|
1752
|
-
return (await fetch(
|
|
1751
|
+
const te = `https://yjeig444bb.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${K}`;
|
|
1752
|
+
return (await fetch(te, {
|
|
1753
1753
|
headers: {
|
|
1754
1754
|
Authorization: i.token
|
|
1755
1755
|
}
|
|
1756
1756
|
})).json();
|
|
1757
|
-
} catch (
|
|
1758
|
-
return Promise.reject(
|
|
1757
|
+
} catch (te) {
|
|
1758
|
+
return Promise.reject(te);
|
|
1759
1759
|
}
|
|
1760
1760
|
}
|
|
1761
|
-
async function _({ seasonId: K, teamId:
|
|
1761
|
+
async function _({ seasonId: K, teamId: te }) {
|
|
1762
1762
|
try {
|
|
1763
|
-
const B = `https://pa3kubpuhg.execute-api.us-west-2.amazonaws.com/prod/playersByTeamAndSeason/${K}/${
|
|
1763
|
+
const B = `https://pa3kubpuhg.execute-api.us-west-2.amazonaws.com/prod/playersByTeamAndSeason/${K}/${te}`;
|
|
1764
1764
|
return (await fetch(B, {
|
|
1765
1765
|
headers: {
|
|
1766
1766
|
Authorization: i.token
|
|
@@ -1773,34 +1773,34 @@ const Id = /* @__PURE__ */ xd(To, [["render", Rd], ["__scopeId", "data-v-f3ee6b2
|
|
|
1773
1773
|
async function A(K) {
|
|
1774
1774
|
try {
|
|
1775
1775
|
if (K && K.id) {
|
|
1776
|
-
const
|
|
1777
|
-
n.value.teams =
|
|
1776
|
+
const te = await g({ seasonId: K.seasons[0].id });
|
|
1777
|
+
n.value.teams = te.teams.map((B) => ({
|
|
1778
1778
|
...B,
|
|
1779
|
-
seasonId:
|
|
1779
|
+
seasonId: te.season_id
|
|
1780
1780
|
}));
|
|
1781
1781
|
}
|
|
1782
|
-
} catch (
|
|
1783
|
-
console.error("Error",
|
|
1782
|
+
} catch (te) {
|
|
1783
|
+
console.error("Error", te);
|
|
1784
1784
|
}
|
|
1785
1785
|
}
|
|
1786
|
-
async function
|
|
1786
|
+
async function ae(K) {
|
|
1787
1787
|
try {
|
|
1788
1788
|
if (K && K.team_id) {
|
|
1789
|
-
const
|
|
1789
|
+
const te = await _({
|
|
1790
1790
|
seasonId: K.seasonId,
|
|
1791
1791
|
teamId: K.team_id
|
|
1792
1792
|
});
|
|
1793
|
-
K.players =
|
|
1793
|
+
K.players = te[0].players;
|
|
1794
1794
|
}
|
|
1795
|
-
} catch (
|
|
1796
|
-
console.error("Error",
|
|
1795
|
+
} catch (te) {
|
|
1796
|
+
console.error("Error", te);
|
|
1797
1797
|
}
|
|
1798
1798
|
}
|
|
1799
1799
|
async function Q(K) {
|
|
1800
1800
|
K.id && K.id !== n.value.id && (n.value = K, f.value = {}, v.value += 1, n.value.teams || await A(n.value));
|
|
1801
1801
|
}
|
|
1802
1802
|
async function J(K) {
|
|
1803
|
-
K.team_id && K.team_id !== f.value.team_id && (f.value = K, c.value = {}, m.value += 1, f.value.players || await
|
|
1803
|
+
K.team_id && K.team_id !== f.value.team_id && (f.value = K, c.value = {}, m.value += 1, f.value.players || await ae(f.value));
|
|
1804
1804
|
}
|
|
1805
1805
|
async function ie(K) {
|
|
1806
1806
|
K.player_id && K.player_id !== c.value.player_id && (c.value = K);
|
|
@@ -1808,20 +1808,20 @@ const Id = /* @__PURE__ */ xd(To, [["render", Rd], ["__scopeId", "data-v-f3ee6b2
|
|
|
1808
1808
|
function re() {
|
|
1809
1809
|
c.value && c.value.player_id && (c.value.position_name || (c.value.position_name = jd.get(c.value.position_id)), l("add-player", c.value), d());
|
|
1810
1810
|
}
|
|
1811
|
-
return a({ showModal: y }), (K,
|
|
1811
|
+
return a({ showModal: y }), (K, te) => (u(), ve(ur, { to: "body" }, [
|
|
1812
1812
|
C(He, { name: "modal" }, {
|
|
1813
1813
|
default: de(() => [
|
|
1814
1814
|
s.value ? (u(), p("div", {
|
|
1815
1815
|
key: 0,
|
|
1816
1816
|
class: "modal-overlay",
|
|
1817
|
-
onClick:
|
|
1817
|
+
onClick: te[1] || (te[1] = (B) => d(!0))
|
|
1818
1818
|
}, [
|
|
1819
1819
|
o("div", {
|
|
1820
1820
|
class: "modal-content",
|
|
1821
|
-
onClick:
|
|
1821
|
+
onClick: te[0] || (te[0] = Ve(() => {
|
|
1822
1822
|
}, ["stop"]))
|
|
1823
1823
|
}, [
|
|
1824
|
-
|
|
1824
|
+
te[5] || (te[5] = o("div", { class: "modal-header" }, [
|
|
1825
1825
|
o("svg", {
|
|
1826
1826
|
width: "20",
|
|
1827
1827
|
height: "20",
|
|
@@ -1856,7 +1856,7 @@ const Id = /* @__PURE__ */ xd(To, [["render", Rd], ["__scopeId", "data-v-f3ee6b2
|
|
|
1856
1856
|
]),
|
|
1857
1857
|
o("div", null, " Agregar jugador ")
|
|
1858
1858
|
], -1)),
|
|
1859
|
-
|
|
1859
|
+
te[6] || (te[6] = o("div", { class: "separator" }, null, -1)),
|
|
1860
1860
|
o("div", Hd, [
|
|
1861
1861
|
o("div", Wd, [
|
|
1862
1862
|
o("div", null, [
|
|
@@ -1905,7 +1905,7 @@ const Id = /* @__PURE__ */ xd(To, [["render", Rd], ["__scopeId", "data-v-f3ee6b2
|
|
|
1905
1905
|
availableItem: de(({ item: B }) => [
|
|
1906
1906
|
o("div", eu, [
|
|
1907
1907
|
o("div", null, x(B.name), 1),
|
|
1908
|
-
n.value.id === B.id ? (u(), p("div", tu,
|
|
1908
|
+
n.value.id === B.id ? (u(), p("div", tu, te[2] || (te[2] = [
|
|
1909
1909
|
o("svg", {
|
|
1910
1910
|
width: "13",
|
|
1911
1911
|
height: "9",
|
|
@@ -1967,7 +1967,7 @@ const Id = /* @__PURE__ */ xd(To, [["render", Rd], ["__scopeId", "data-v-f3ee6b2
|
|
|
1967
1967
|
availableItem: de(({ item: B }) => [
|
|
1968
1968
|
o("div", du, [
|
|
1969
1969
|
o("div", null, x(B.colloquial_name), 1),
|
|
1970
|
-
f.value.team_id === B.team_id ? (u(), p("div", uu,
|
|
1970
|
+
f.value.team_id === B.team_id ? (u(), p("div", uu, te[3] || (te[3] = [
|
|
1971
1971
|
o("svg", {
|
|
1972
1972
|
width: "13",
|
|
1973
1973
|
height: "9",
|
|
@@ -2032,7 +2032,7 @@ const Id = /* @__PURE__ */ xd(To, [["render", Rd], ["__scopeId", "data-v-f3ee6b2
|
|
|
2032
2032
|
availableItem: de(({ item: B }) => [
|
|
2033
2033
|
o("div", gu, [
|
|
2034
2034
|
o("div", null, x(B.name), 1),
|
|
2035
|
-
c.value && c.value.player_id === B.player_id ? (u(), p("div", bu,
|
|
2035
|
+
c.value && c.value.player_id === B.player_id ? (u(), p("div", bu, te[4] || (te[4] = [
|
|
2036
2036
|
o("svg", {
|
|
2037
2037
|
width: "13",
|
|
2038
2038
|
height: "9",
|
|
@@ -2055,7 +2055,7 @@ const Id = /* @__PURE__ */ xd(To, [["render", Rd], ["__scopeId", "data-v-f3ee6b2
|
|
|
2055
2055
|
_: 1
|
|
2056
2056
|
})
|
|
2057
2057
|
]),
|
|
2058
|
-
|
|
2058
|
+
te[7] || (te[7] = o("div", { class: "separator" }, null, -1)),
|
|
2059
2059
|
o("div", _u, [
|
|
2060
2060
|
o("div", {
|
|
2061
2061
|
role: "button",
|
|
@@ -2489,11 +2489,11 @@ function fi(e, a, t) {
|
|
|
2489
2489
|
if (U.endsWith(d, "{}"))
|
|
2490
2490
|
d = i ? d : d.slice(0, -2), y = JSON.stringify(y);
|
|
2491
2491
|
else if (U.isArray(y) && yc(y) || (U.isFileList(y) || U.endsWith(d, "[]")) && (_ = U.toArray(y)))
|
|
2492
|
-
return d = xr(d), _.forEach(function(
|
|
2493
|
-
!(U.isUndefined(
|
|
2492
|
+
return d = xr(d), _.forEach(function(ae, Q) {
|
|
2493
|
+
!(U.isUndefined(ae) || ae === null) && a.append(
|
|
2494
2494
|
// eslint-disable-next-line no-nested-ternary
|
|
2495
2495
|
r === !0 ? ks([d], Q, s) : r === null ? d : d + "[]",
|
|
2496
|
-
c(
|
|
2496
|
+
c(ae)
|
|
2497
2497
|
);
|
|
2498
2498
|
}), !1;
|
|
2499
2499
|
}
|
|
@@ -3186,13 +3186,13 @@ const Br = (e) => {
|
|
|
3186
3186
|
function _() {
|
|
3187
3187
|
if (!g)
|
|
3188
3188
|
return;
|
|
3189
|
-
const
|
|
3189
|
+
const ae = Ye.from(
|
|
3190
3190
|
"getAllResponseHeaders" in g && g.getAllResponseHeaders()
|
|
3191
3191
|
), J = {
|
|
3192
3192
|
data: !n || n === "text" || n === "json" ? g.responseText : g.response,
|
|
3193
3193
|
status: g.status,
|
|
3194
3194
|
statusText: g.statusText,
|
|
3195
|
-
headers:
|
|
3195
|
+
headers: ae,
|
|
3196
3196
|
config: e,
|
|
3197
3197
|
request: g
|
|
3198
3198
|
};
|
|
@@ -3219,8 +3219,8 @@ const Br = (e) => {
|
|
|
3219
3219
|
)), g = null;
|
|
3220
3220
|
}, s === void 0 && r.setContentType(null), "setRequestHeader" in g && U.forEach(r.toJSON(), function(Q, J) {
|
|
3221
3221
|
g.setRequestHeader(J, Q);
|
|
3222
|
-
}), U.isUndefined(l.withCredentials) || (g.withCredentials = !!l.withCredentials), n && n !== "json" && (g.responseType = l.responseType), c && ([b, y] = Qa(c, !0), g.addEventListener("progress", b)), f && g.upload && ([m, h] = Qa(f), g.upload.addEventListener("progress", m), g.upload.addEventListener("loadend", h)), (l.cancelToken || l.signal) && (v = (
|
|
3223
|
-
g && (i(!
|
|
3222
|
+
}), U.isUndefined(l.withCredentials) || (g.withCredentials = !!l.withCredentials), n && n !== "json" && (g.responseType = l.responseType), c && ([b, y] = Qa(c, !0), g.addEventListener("progress", b)), f && g.upload && ([m, h] = Qa(f), g.upload.addEventListener("progress", m), g.upload.addEventListener("loadend", h)), (l.cancelToken || l.signal) && (v = (ae) => {
|
|
3223
|
+
g && (i(!ae || ae.type ? new Xt(null, e, g) : ae), g.abort(), g = null);
|
|
3224
3224
|
}, l.cancelToken && l.cancelToken.subscribe(v), l.signal && (l.signal.aborted ? v() : l.signal.addEventListener("abort", v)));
|
|
3225
3225
|
const A = Lc(l.url);
|
|
3226
3226
|
if (A && Ne.protocols.indexOf(A) === -1) {
|
|
@@ -3400,11 +3400,11 @@ const Xc = async (e) => {
|
|
|
3400
3400
|
credentials: _ ? m : void 0
|
|
3401
3401
|
});
|
|
3402
3402
|
let A = await fetch(y);
|
|
3403
|
-
const
|
|
3404
|
-
if (eo && (n ||
|
|
3403
|
+
const ae = eo && (c === "stream" || c === "response");
|
|
3404
|
+
if (eo && (n || ae && d)) {
|
|
3405
3405
|
const J = {};
|
|
3406
|
-
["status", "statusText", "headers"].forEach((
|
|
3407
|
-
J[
|
|
3406
|
+
["status", "statusText", "headers"].forEach((te) => {
|
|
3407
|
+
J[te] = A[te];
|
|
3408
3408
|
});
|
|
3409
3409
|
const ie = U.toFiniteNumber(A.headers.get("content-length")), [re, K] = n && As(
|
|
3410
3410
|
ie,
|
|
@@ -3419,7 +3419,7 @@ const Xc = async (e) => {
|
|
|
3419
3419
|
}
|
|
3420
3420
|
c = c || "text";
|
|
3421
3421
|
let Q = await ei[U.findKey(ei, c) || "text"](A, e);
|
|
3422
|
-
return !
|
|
3422
|
+
return !ae && d && d(), await new Promise((J, ie) => {
|
|
3423
3423
|
$r(J, ie, {
|
|
3424
3424
|
data: Q,
|
|
3425
3425
|
headers: Ye.from(A.headers),
|
|
@@ -8404,7 +8404,7 @@ const ln = (e) => {
|
|
|
8404
8404
|
return;
|
|
8405
8405
|
const A = Xe.from(
|
|
8406
8406
|
"getAllResponseHeaders" in d && d.getAllResponseHeaders()
|
|
8407
|
-
),
|
|
8407
|
+
), ae = {
|
|
8408
8408
|
data: !r || r === "text" || r === "json" ? d.responseText : d.response,
|
|
8409
8409
|
status: d.status,
|
|
8410
8410
|
statusText: d.statusText,
|
|
@@ -8416,7 +8416,7 @@ const ln = (e) => {
|
|
|
8416
8416
|
a(Q), y();
|
|
8417
8417
|
}, function(Q) {
|
|
8418
8418
|
t(Q), y();
|
|
8419
|
-
},
|
|
8419
|
+
}, ae), d = null;
|
|
8420
8420
|
}
|
|
8421
8421
|
"onloadend" in d ? d.onloadend = g : d.onreadystatechange = function() {
|
|
8422
8422
|
!d || d.readyState !== 4 || d.status === 0 && !(d.responseURL && d.responseURL.indexOf("file:") === 0) || setTimeout(g);
|
|
@@ -8426,15 +8426,15 @@ const ln = (e) => {
|
|
|
8426
8426
|
t(new he("Network Error", he.ERR_NETWORK, e, d)), d = null;
|
|
8427
8427
|
}, d.ontimeout = function() {
|
|
8428
8428
|
let A = i.timeout ? "timeout of " + i.timeout + "ms exceeded" : "timeout exceeded";
|
|
8429
|
-
const
|
|
8429
|
+
const ae = i.transitional || en;
|
|
8430
8430
|
i.timeoutErrorMessage && (A = i.timeoutErrorMessage), t(new he(
|
|
8431
8431
|
A,
|
|
8432
|
-
|
|
8432
|
+
ae.clarifyTimeoutError ? he.ETIMEDOUT : he.ECONNABORTED,
|
|
8433
8433
|
e,
|
|
8434
8434
|
d
|
|
8435
8435
|
)), d = null;
|
|
8436
|
-
}, l === void 0 && s.setContentType(null), "setRequestHeader" in d && j.forEach(s.toJSON(), function(A,
|
|
8437
|
-
d.setRequestHeader(
|
|
8436
|
+
}, l === void 0 && s.setContentType(null), "setRequestHeader" in d && j.forEach(s.toJSON(), function(A, ae) {
|
|
8437
|
+
d.setRequestHeader(ae, A);
|
|
8438
8438
|
}), j.isUndefined(i.withCredentials) || (d.withCredentials = !!i.withCredentials), r && r !== "json" && (d.responseType = i.responseType), f && ([m, h] = ti(f, !0), d.addEventListener("progress", m)), n && d.upload && ([v, b] = ti(n), d.upload.addEventListener("progress", v), d.upload.addEventListener("loadend", b)), (i.cancelToken || i.signal) && (c = (A) => {
|
|
8439
8439
|
d && (t(!A || A.type ? new aa(null, e, d) : A), d.abort(), d = null);
|
|
8440
8440
|
}, i.cancelToken && i.cancelToken.subscribe(c), i.signal && (i.signal.aborted ? c() : i.signal.addEventListener("abort", c)));
|
|
@@ -8613,11 +8613,11 @@ const jm = async (e) => {
|
|
|
8613
8613
|
credentials: _ ? m : void 0
|
|
8614
8614
|
});
|
|
8615
8615
|
let A = await fetch(y);
|
|
8616
|
-
const
|
|
8617
|
-
if (lo && (n ||
|
|
8616
|
+
const ae = lo && (c === "stream" || c === "response");
|
|
8617
|
+
if (lo && (n || ae && d)) {
|
|
8618
8618
|
const J = {};
|
|
8619
|
-
["status", "statusText", "headers"].forEach((
|
|
8620
|
-
J[
|
|
8619
|
+
["status", "statusText", "headers"].forEach((te) => {
|
|
8620
|
+
J[te] = A[te];
|
|
8621
8621
|
});
|
|
8622
8622
|
const ie = j.toFiniteNumber(A.headers.get("content-length")), [re, K] = n && al(
|
|
8623
8623
|
ie,
|
|
@@ -8632,7 +8632,7 @@ const jm = async (e) => {
|
|
|
8632
8632
|
}
|
|
8633
8633
|
c = c || "text";
|
|
8634
8634
|
let Q = await ai[j.findKey(ai, c) || "text"](A, e);
|
|
8635
|
-
return !
|
|
8635
|
+
return !ae && d && d(), await new Promise((J, ie) => {
|
|
8636
8636
|
on(J, ie, {
|
|
8637
8637
|
data: Q,
|
|
8638
8638
|
headers: Xe.from(A.headers),
|
|
@@ -9711,7 +9711,7 @@ const Ch = /* @__PURE__ */ new Set([1]), wh = {
|
|
|
9711
9711
|
throw new Error(G);
|
|
9712
9712
|
}
|
|
9713
9713
|
}
|
|
9714
|
-
function
|
|
9714
|
+
function ae($ = null) {
|
|
9715
9715
|
const G = !$ || $ === Tt.All;
|
|
9716
9716
|
(G || $ === Tt.NATIONALITY) && d.value.forEach((z) => {
|
|
9717
9717
|
z.isSelected = !0;
|
|
@@ -9752,7 +9752,7 @@ const Ch = /* @__PURE__ */ new Set([1]), wh = {
|
|
|
9752
9752
|
[]
|
|
9753
9753
|
), G.positions = g.value.reduce((z, ne, fe) => (fe !== 0 && z.push({ ...ne }), z), []), t("update:filters", G);
|
|
9754
9754
|
}
|
|
9755
|
-
function
|
|
9755
|
+
function te($, G) {
|
|
9756
9756
|
G.id === 0 ? g.value.forEach((z) => {
|
|
9757
9757
|
z.isSelected = $;
|
|
9758
9758
|
}) : (G.isSelected = $, g.value[0].isSelected = g.value.every((z, ne) => ne === 0 ? !0 : z.isSelected));
|
|
@@ -9761,7 +9761,7 @@ const Ch = /* @__PURE__ */ new Set([1]), wh = {
|
|
|
9761
9761
|
h.value = $, i.filters && (i.filters.selectedYear = $), K();
|
|
9762
9762
|
}
|
|
9763
9763
|
return a({
|
|
9764
|
-
onClearFilters:
|
|
9764
|
+
onClearFilters: ae
|
|
9765
9765
|
}), ($, G) => (u(), p("div", xh, [
|
|
9766
9766
|
o("div", kh, [
|
|
9767
9767
|
o("div", Fh, [
|
|
@@ -9889,7 +9889,7 @@ const Ch = /* @__PURE__ */ new Set([1]), wh = {
|
|
|
9889
9889
|
label: e.isFemale ? z.name.replace("Portero", "Portera").replace("Delantero", "Delantera").replace("Volante defensivo", "Volante defensiva").replace("Volante ofensivo", "Volante ofensiva") : z.name,
|
|
9890
9890
|
fontFamily: e.fontFamily,
|
|
9891
9891
|
width: "100%",
|
|
9892
|
-
"onUpdate:modelValue": (ne) =>
|
|
9892
|
+
"onUpdate:modelValue": (ne) => te(ne, z)
|
|
9893
9893
|
}, null, 8, ["model-value", "label", "fontFamily", "onUpdate:modelValue"])
|
|
9894
9894
|
])
|
|
9895
9895
|
]),
|
|
@@ -10479,11 +10479,11 @@ const v3 = { class: "dropdown" }, g3 = { class: "selected-item" }, b3 = {
|
|
|
10479
10479
|
},
|
|
10480
10480
|
setup(e) {
|
|
10481
10481
|
const a = e, t = qt(
|
|
10482
|
-
() => import("./FilterSubcategories-1761e851-
|
|
10482
|
+
() => import("./FilterSubcategories-1761e851-BMrD4oKg.js")
|
|
10483
10483
|
), i = qt(
|
|
10484
|
-
() => import("./FilterConditions-2f036bc8-
|
|
10484
|
+
() => import("./FilterConditions-2f036bc8-DKiQkPcg.js")
|
|
10485
10485
|
), l = qt(
|
|
10486
|
-
() => import("./FilterField-bce31e05-
|
|
10486
|
+
() => import("./FilterField-bce31e05-CAA20k7V.js")
|
|
10487
10487
|
), s = [
|
|
10488
10488
|
{
|
|
10489
10489
|
name: "Sub categorías",
|
|
@@ -10575,7 +10575,7 @@ const v3 = { class: "dropdown" }, g3 = { class: "selected-item" }, b3 = {
|
|
|
10575
10575
|
function _(A) {
|
|
10576
10576
|
c.value = A;
|
|
10577
10577
|
}
|
|
10578
|
-
return (A,
|
|
10578
|
+
return (A, ae) => (u(), p(X, null, [
|
|
10579
10579
|
o("div", _y, [
|
|
10580
10580
|
o("div", Sy, [
|
|
10581
10581
|
o("div", Cy, [
|
|
@@ -10651,7 +10651,7 @@ const v3 = { class: "dropdown" }, g3 = { class: "selected-item" }, b3 = {
|
|
|
10651
10651
|
o("div", Gy, [
|
|
10652
10652
|
C($a, {
|
|
10653
10653
|
modelValue: v.value,
|
|
10654
|
-
"onUpdate:modelValue":
|
|
10654
|
+
"onUpdate:modelValue": ae[0] || (ae[0] = (Q) => v.value = Q)
|
|
10655
10655
|
}, null, 8, ["modelValue"])
|
|
10656
10656
|
])
|
|
10657
10657
|
])
|
|
@@ -11055,12 +11055,12 @@ const v3 = { class: "dropdown" }, g3 = { class: "selected-item" }, b3 = {
|
|
|
11055
11055
|
});
|
|
11056
11056
|
async function A() {
|
|
11057
11057
|
try {
|
|
11058
|
-
c.value = await
|
|
11058
|
+
c.value = await ae();
|
|
11059
11059
|
} catch (k) {
|
|
11060
11060
|
throw new Error(k);
|
|
11061
11061
|
}
|
|
11062
11062
|
}
|
|
11063
|
-
async function
|
|
11063
|
+
async function ae() {
|
|
11064
11064
|
try {
|
|
11065
11065
|
const k = {
|
|
11066
11066
|
Authorization: ji() || t.token
|
|
@@ -11205,7 +11205,7 @@ const v3 = { class: "dropdown" }, g3 = { class: "selected-item" }, b3 = {
|
|
|
11205
11205
|
coordinatePoint: E.coordinate_point,
|
|
11206
11206
|
requiresRivalTransform: s.includes(E.group_id)
|
|
11207
11207
|
};
|
|
11208
|
-
T.idsAux = [...T.ids], T.subcategoryGroups = E.group_id === "g-12" ? [] :
|
|
11208
|
+
T.idsAux = [...T.ids], T.subcategoryGroups = E.group_id === "g-12" ? [] : te(
|
|
11209
11209
|
E,
|
|
11210
11210
|
0,
|
|
11211
11211
|
/* @__PURE__ */ new Map(),
|
|
@@ -11277,7 +11277,7 @@ const v3 = { class: "dropdown" }, g3 = { class: "selected-item" }, b3 = {
|
|
|
11277
11277
|
throw new Error(k);
|
|
11278
11278
|
}
|
|
11279
11279
|
}
|
|
11280
|
-
function
|
|
11280
|
+
function te(k, D = 0, ee = /* @__PURE__ */ new Map(), W = !1, I = {}, Z = []) {
|
|
11281
11281
|
if (!k.group_id)
|
|
11282
11282
|
return;
|
|
11283
11283
|
let V = ee.get(D);
|
|
@@ -11310,7 +11310,7 @@ const v3 = { class: "dropdown" }, g3 = { class: "selected-item" }, b3 = {
|
|
|
11310
11310
|
} else
|
|
11311
11311
|
D !== 0 && (I.childCategories ? I.childCategories.push(E) : I.childCategories = [E], V = [E], ee.set(D, V));
|
|
11312
11312
|
if (k.categories && k.categories.length ? k.categories.forEach((T) => {
|
|
11313
|
-
|
|
11313
|
+
te(
|
|
11314
11314
|
T,
|
|
11315
11315
|
D + 1,
|
|
11316
11316
|
ee,
|
|
@@ -11319,7 +11319,7 @@ const v3 = { class: "dropdown" }, g3 = { class: "selected-item" }, b3 = {
|
|
|
11319
11319
|
Z
|
|
11320
11320
|
);
|
|
11321
11321
|
}) : k.rival_categories && k.rival_categories.length && k.rival_categories.forEach((T) => {
|
|
11322
|
-
|
|
11322
|
+
te(
|
|
11323
11323
|
T,
|
|
11324
11324
|
D + 1,
|
|
11325
11325
|
ee,
|
|
@@ -12445,7 +12445,7 @@ const v3 = { class: "dropdown" }, g3 = { class: "selected-item" }, b3 = {
|
|
|
12445
12445
|
"model-value": _.isSelected,
|
|
12446
12446
|
label: e.isFemale ? _.text.replace("Ganados por portero rival", "Ganados por portera rival").replace("Ganados por jugador rival", "Ganados por jugadora rival") : _.text,
|
|
12447
12447
|
"avoid-interaction": n.value && _.isSelected,
|
|
12448
|
-
"onUpdate:modelValue": (
|
|
12448
|
+
"onUpdate:modelValue": (ae) => v(ae, d, _)
|
|
12449
12449
|
}, null, 8, ["model-value", "label", "avoid-interaction", "onUpdate:modelValue"])
|
|
12450
12450
|
]))), 128))
|
|
12451
12451
|
])) : (u(), p("div", Wg, [
|
|
@@ -12977,7 +12977,7 @@ const v3 = { class: "dropdown" }, g3 = { class: "selected-item" }, b3 = {
|
|
|
12977
12977
|
(O) => O.isSelected
|
|
12978
12978
|
);
|
|
12979
12979
|
return Q(w), i.filterType === P.PRODUCTIVITY && t("change-categories-selected", w.length), w.length;
|
|
12980
|
-
}), _ = R(() => !i.isForTemplateForm && g.value >= i.productivityMaxCategories), A = R(() => !i.isForTemplateForm && g.value <= i.productivityMinCategories),
|
|
12980
|
+
}), _ = R(() => !i.isForTemplateForm && g.value >= i.productivityMaxCategories), A = R(() => !i.isForTemplateForm && g.value <= i.productivityMinCategories), ae = R(() => i.isPlayingAsHidden ? i.gameSections : i.playingAs.concat(i.gameSections));
|
|
12981
12981
|
Y(
|
|
12982
12982
|
r,
|
|
12983
12983
|
(w) => {
|
|
@@ -12985,7 +12985,7 @@ const v3 = { class: "dropdown" }, g3 = { class: "selected-item" }, b3 = {
|
|
|
12985
12985
|
},
|
|
12986
12986
|
{ immediate: !0, deep: !0 }
|
|
12987
12987
|
), Y(
|
|
12988
|
-
() =>
|
|
12988
|
+
() => ae.value,
|
|
12989
12989
|
(w) => {
|
|
12990
12990
|
if (i.filterType === P.DETAILS) {
|
|
12991
12991
|
const O = w.filter((ue) => ue.isSelected);
|
|
@@ -13070,7 +13070,7 @@ const v3 = { class: "dropdown" }, g3 = { class: "selected-item" }, b3 = {
|
|
|
13070
13070
|
function K(w) {
|
|
13071
13071
|
i.filterType === P.UNIVERSE && t("change-universe-filters", w);
|
|
13072
13072
|
}
|
|
13073
|
-
function
|
|
13073
|
+
function te(w) {
|
|
13074
13074
|
i.filterType === P.FIELD && t("change-field-areas", w);
|
|
13075
13075
|
}
|
|
13076
13076
|
function B(w) {
|
|
@@ -13206,7 +13206,7 @@ const v3 = { class: "dropdown" }, g3 = { class: "selected-item" }, b3 = {
|
|
|
13206
13206
|
C(M(h0), Fe(e.fieldComponentProps, {
|
|
13207
13207
|
"background-color": e.backgroundColor,
|
|
13208
13208
|
value: e.fieldAreas,
|
|
13209
|
-
"onUpdate:modelValue":
|
|
13209
|
+
"onUpdate:modelValue": te
|
|
13210
13210
|
}), null, 16, ["background-color", "value"])
|
|
13211
13211
|
])) : F("", !0),
|
|
13212
13212
|
e.filterType === M(P).DETAILS ? (u(), p("div", f4, [
|
|
@@ -15083,7 +15083,7 @@ const v3 = { class: "dropdown" }, g3 = { class: "selected-item" }, b3 = {
|
|
|
15083
15083
|
borderRadius: "12px",
|
|
15084
15084
|
filterType: P.TAKEN_CORNERS,
|
|
15085
15085
|
isFooterVisible: !0
|
|
15086
|
-
},
|
|
15086
|
+
}, ae = {
|
|
15087
15087
|
width: "670px",
|
|
15088
15088
|
maxWidth: "670px",
|
|
15089
15089
|
backgroundColor: "#2E3B46",
|
|
@@ -15104,7 +15104,7 @@ const v3 = { class: "dropdown" }, g3 = { class: "selected-item" }, b3 = {
|
|
|
15104
15104
|
borderRadius: "12px",
|
|
15105
15105
|
filterType: P.WHAT_HAPPENED,
|
|
15106
15106
|
isFooterVisible: !0
|
|
15107
|
-
}, ie = S(!1), re = S(!1), K = S(0),
|
|
15107
|
+
}, ie = S(!1), re = S(!1), K = S(0), te = S(0), B = S({}), $ = S(null), G = S(null), z = R(() => i.isForTemplateForm ? "0" : "unset"), ne = R(() => i.buttonFilterProps && i.buttonFilterProps.text ? i.buttonFilterProps.text : i.menuButtonText || ee()), fe = R(() => i.isFromTemplates ? P.RESULTS : i.filterType), $e = R(() => i.expansionPanelText || ee()), Ce = S(null);
|
|
15108
15108
|
Y(
|
|
15109
15109
|
() => i.filterType,
|
|
15110
15110
|
(T) => {
|
|
@@ -15191,7 +15191,7 @@ const v3 = { class: "dropdown" }, g3 = { class: "selected-item" }, b3 = {
|
|
|
15191
15191
|
...i.templateProps,
|
|
15192
15192
|
takenCornersFilters: i.filters || []
|
|
15193
15193
|
} : T === P.HOW_WAS_CORNER ? B.value = {
|
|
15194
|
-
...
|
|
15194
|
+
...ae,
|
|
15195
15195
|
...i.templateProps,
|
|
15196
15196
|
howWasCornerFilters: i.filters || uo
|
|
15197
15197
|
} : T === P.ZONE ? B.value = {
|
|
@@ -15291,7 +15291,7 @@ const v3 = { class: "dropdown" }, g3 = { class: "selected-item" }, b3 = {
|
|
|
15291
15291
|
...i.templateProps,
|
|
15292
15292
|
takenCornersFilters: i.filters || []
|
|
15293
15293
|
} : i.filterType === P.HOW_WAS_CORNER ? B.value = {
|
|
15294
|
-
...
|
|
15294
|
+
...ae,
|
|
15295
15295
|
...i.templateProps,
|
|
15296
15296
|
howWasCornerFilters: i.filters || uo
|
|
15297
15297
|
} : i.filterType === P.ZONE ? B.value = {
|
|
@@ -15366,7 +15366,7 @@ const v3 = { class: "dropdown" }, g3 = { class: "selected-item" }, b3 = {
|
|
|
15366
15366
|
Ce.value = T, t("update:filters", T);
|
|
15367
15367
|
}
|
|
15368
15368
|
function N(T) {
|
|
15369
|
-
|
|
15369
|
+
te.value = T;
|
|
15370
15370
|
}
|
|
15371
15371
|
function E(T = null) {
|
|
15372
15372
|
$.value && $.value.clearFilters(T), G.value && G.value.clearFilters(T);
|
|
@@ -15427,7 +15427,7 @@ const v3 = { class: "dropdown" }, g3 = { class: "selected-item" }, b3 = {
|
|
|
15427
15427
|
text: ne.value,
|
|
15428
15428
|
"show-badge-on-filter-full": e.showBadgeOnFilterFull,
|
|
15429
15429
|
"info-value": K.value,
|
|
15430
|
-
"filters-total":
|
|
15430
|
+
"filters-total": te.value.value,
|
|
15431
15431
|
"is-active": ie.value,
|
|
15432
15432
|
"icon-type": fe.value
|
|
15433
15433
|
}), null, 16, ["text", "show-badge-on-filter-full", "info-value", "filters-total", "is-active", "icon-type"])
|
|
@@ -21033,7 +21033,7 @@ const Pn = (e) => {
|
|
|
21033
21033
|
return;
|
|
21034
21034
|
const A = Qe.from(
|
|
21035
21035
|
"getAllResponseHeaders" in d && d.getAllResponseHeaders()
|
|
21036
|
-
),
|
|
21036
|
+
), ae = {
|
|
21037
21037
|
data: !r || r === "text" || r === "json" ? d.responseText : d.response,
|
|
21038
21038
|
status: d.status,
|
|
21039
21039
|
statusText: d.statusText,
|
|
@@ -21045,7 +21045,7 @@ const Pn = (e) => {
|
|
|
21045
21045
|
a(Q), y();
|
|
21046
21046
|
}, function(Q) {
|
|
21047
21047
|
t(Q), y();
|
|
21048
|
-
},
|
|
21048
|
+
}, ae), d = null;
|
|
21049
21049
|
}
|
|
21050
21050
|
"onloadend" in d ? d.onloadend = g : d.onreadystatechange = function() {
|
|
21051
21051
|
!d || d.readyState !== 4 || d.status === 0 && !(d.responseURL && d.responseURL.indexOf("file:") === 0) || setTimeout(g);
|
|
@@ -21055,15 +21055,15 @@ const Pn = (e) => {
|
|
|
21055
21055
|
t(new ye("Network Error", ye.ERR_NETWORK, e, d)), d = null;
|
|
21056
21056
|
}, d.ontimeout = function() {
|
|
21057
21057
|
let A = i.timeout ? "timeout of " + i.timeout + "ms exceeded" : "timeout exceeded";
|
|
21058
|
-
const
|
|
21058
|
+
const ae = i.transitional || Mn;
|
|
21059
21059
|
i.timeoutErrorMessage && (A = i.timeoutErrorMessage), t(new ye(
|
|
21060
21060
|
A,
|
|
21061
|
-
|
|
21061
|
+
ae.clarifyTimeoutError ? ye.ETIMEDOUT : ye.ECONNABORTED,
|
|
21062
21062
|
e,
|
|
21063
21063
|
d
|
|
21064
21064
|
)), d = null;
|
|
21065
|
-
}, l === void 0 && s.setContentType(null), "setRequestHeader" in d && H.forEach(s.toJSON(), function(A,
|
|
21066
|
-
d.setRequestHeader(
|
|
21065
|
+
}, l === void 0 && s.setContentType(null), "setRequestHeader" in d && H.forEach(s.toJSON(), function(A, ae) {
|
|
21066
|
+
d.setRequestHeader(ae, A);
|
|
21067
21067
|
}), H.isUndefined(i.withCredentials) || (d.withCredentials = !!i.withCredentials), r && r !== "json" && (d.responseType = i.responseType), f && ([m, h] = si(f, !0), d.addEventListener("progress", m)), n && d.upload && ([v, b] = si(n), d.upload.addEventListener("progress", v), d.upload.addEventListener("loadend", b)), (i.cancelToken || i.signal) && (c = (A) => {
|
|
21068
21068
|
d && (t(!A || A.type ? new na(null, e, d) : A), d.abort(), d = null);
|
|
21069
21069
|
}, i.cancelToken && i.cancelToken.subscribe(c), i.signal && (i.signal.aborted ? c() : i.signal.addEventListener("abort", c)));
|
|
@@ -21242,11 +21242,11 @@ const zC = async (e) => {
|
|
|
21242
21242
|
credentials: _ ? m : void 0
|
|
21243
21243
|
});
|
|
21244
21244
|
let A = await fetch(y);
|
|
21245
|
-
const
|
|
21246
|
-
if (vo && (n ||
|
|
21245
|
+
const ae = vo && (c === "stream" || c === "response");
|
|
21246
|
+
if (vo && (n || ae && d)) {
|
|
21247
21247
|
const J = {};
|
|
21248
|
-
["status", "statusText", "headers"].forEach((
|
|
21249
|
-
J[
|
|
21248
|
+
["status", "statusText", "headers"].forEach((te) => {
|
|
21249
|
+
J[te] = A[te];
|
|
21250
21250
|
});
|
|
21251
21251
|
const ie = H.toFiniteNumber(A.headers.get("content-length")), [re, K] = n && Nl(
|
|
21252
21252
|
ie,
|
|
@@ -21261,7 +21261,7 @@ const zC = async (e) => {
|
|
|
21261
21261
|
}
|
|
21262
21262
|
c = c || "text";
|
|
21263
21263
|
let Q = await li[H.findKey(li, c) || "text"](A, e);
|
|
21264
|
-
return !
|
|
21264
|
+
return !ae && d && d(), await new Promise((J, ie) => {
|
|
21265
21265
|
In(J, ie, {
|
|
21266
21266
|
data: Q,
|
|
21267
21267
|
headers: Qe.from(A.headers),
|
|
@@ -22339,7 +22339,7 @@ const _w = /* @__PURE__ */ new Set([1]), Sw = {
|
|
|
22339
22339
|
throw new Error(G);
|
|
22340
22340
|
}
|
|
22341
22341
|
}
|
|
22342
|
-
function
|
|
22342
|
+
function ae($ = null) {
|
|
22343
22343
|
const G = !$ || $ === At.All;
|
|
22344
22344
|
(G || $ === At.NATIONALITY) && d.value.forEach((z) => {
|
|
22345
22345
|
z.isSelected = !0;
|
|
@@ -22380,7 +22380,7 @@ const _w = /* @__PURE__ */ new Set([1]), Sw = {
|
|
|
22380
22380
|
[]
|
|
22381
22381
|
), G.positions = g.value.reduce((z, ne, fe) => (fe !== 0 && z.push({ ...ne }), z), []), t("update:filters", G);
|
|
22382
22382
|
}
|
|
22383
|
-
function
|
|
22383
|
+
function te($, G) {
|
|
22384
22384
|
G.id === 0 ? g.value.forEach((z) => {
|
|
22385
22385
|
z.isSelected = $;
|
|
22386
22386
|
}) : (G.isSelected = $, g.value[0].isSelected = g.value.every((z, ne) => ne === 0 ? !0 : z.isSelected));
|
|
@@ -22389,7 +22389,7 @@ const _w = /* @__PURE__ */ new Set([1]), Sw = {
|
|
|
22389
22389
|
h.value = $, i.filters && (i.filters.selectedYear = $), K();
|
|
22390
22390
|
}
|
|
22391
22391
|
return a({
|
|
22392
|
-
onClearFilters:
|
|
22392
|
+
onClearFilters: ae
|
|
22393
22393
|
}), ($, G) => (u(), p("div", Cw, [
|
|
22394
22394
|
o("div", ww, [
|
|
22395
22395
|
o("div", xw, [
|
|
@@ -22517,7 +22517,7 @@ const _w = /* @__PURE__ */ new Set([1]), Sw = {
|
|
|
22517
22517
|
label: e.isFemale ? z.name.replace("Portero", "Portera").replace("Delantero", "Delantera").replace("Volante defensivo", "Volante defensiva").replace("Volante ofensivo", "Volante ofensiva") : z.name,
|
|
22518
22518
|
fontFamily: e.fontFamily,
|
|
22519
22519
|
width: "100%",
|
|
22520
|
-
"onUpdate:modelValue": (ne) =>
|
|
22520
|
+
"onUpdate:modelValue": (ne) => te(ne, z)
|
|
22521
22521
|
}, null, 8, ["model-value", "label", "fontFamily", "onUpdate:modelValue"])
|
|
22522
22522
|
])
|
|
22523
22523
|
]),
|
|
@@ -23107,11 +23107,11 @@ const hx = { class: "dropdown" }, yx = { class: "selected-item" }, vx = {
|
|
|
23107
23107
|
},
|
|
23108
23108
|
setup(e) {
|
|
23109
23109
|
const a = e, t = qt(
|
|
23110
|
-
() => import("./FilterSubcategories-1761e851-BxjGCJHT-
|
|
23110
|
+
() => import("./FilterSubcategories-1761e851-BxjGCJHT-CIU7uqt_.js")
|
|
23111
23111
|
), i = qt(
|
|
23112
|
-
() => import("./FilterConditions-2f036bc8-CISEPQKr-
|
|
23112
|
+
() => import("./FilterConditions-2f036bc8-CISEPQKr-DaJrVfMy.js")
|
|
23113
23113
|
), l = qt(
|
|
23114
|
-
() => import("./FilterField-bce31e05-BZk_kqhH-
|
|
23114
|
+
() => import("./FilterField-bce31e05-BZk_kqhH-aqlzonU5.js")
|
|
23115
23115
|
), s = [
|
|
23116
23116
|
{
|
|
23117
23117
|
name: "Sub categorías",
|
|
@@ -23203,7 +23203,7 @@ const hx = { class: "dropdown" }, yx = { class: "selected-item" }, vx = {
|
|
|
23203
23203
|
function _(A) {
|
|
23204
23204
|
c.value = A;
|
|
23205
23205
|
}
|
|
23206
|
-
return (A,
|
|
23206
|
+
return (A, ae) => (u(), p(X, null, [
|
|
23207
23207
|
o("div", gk, [
|
|
23208
23208
|
o("div", bk, [
|
|
23209
23209
|
o("div", _k, [
|
|
@@ -23279,7 +23279,7 @@ const hx = { class: "dropdown" }, yx = { class: "selected-item" }, vx = {
|
|
|
23279
23279
|
o("div", Hk, [
|
|
23280
23280
|
C(Ia, {
|
|
23281
23281
|
modelValue: v.value,
|
|
23282
|
-
"onUpdate:modelValue":
|
|
23282
|
+
"onUpdate:modelValue": ae[0] || (ae[0] = (Q) => v.value = Q)
|
|
23283
23283
|
}, null, 8, ["modelValue"])
|
|
23284
23284
|
])
|
|
23285
23285
|
])
|
|
@@ -23683,12 +23683,12 @@ const hx = { class: "dropdown" }, yx = { class: "selected-item" }, vx = {
|
|
|
23683
23683
|
});
|
|
23684
23684
|
async function A() {
|
|
23685
23685
|
try {
|
|
23686
|
-
c.value = await
|
|
23686
|
+
c.value = await ae();
|
|
23687
23687
|
} catch (k) {
|
|
23688
23688
|
throw new Error(k);
|
|
23689
23689
|
}
|
|
23690
23690
|
}
|
|
23691
|
-
async function
|
|
23691
|
+
async function ae() {
|
|
23692
23692
|
try {
|
|
23693
23693
|
const k = {
|
|
23694
23694
|
Authorization: Zi() || t.token
|
|
@@ -23833,7 +23833,7 @@ const hx = { class: "dropdown" }, yx = { class: "selected-item" }, vx = {
|
|
|
23833
23833
|
coordinatePoint: E.coordinate_point,
|
|
23834
23834
|
requiresRivalTransform: s.includes(E.group_id)
|
|
23835
23835
|
};
|
|
23836
|
-
T.idsAux = [...T.ids], T.subcategoryGroups = E.group_id === "g-12" ? [] :
|
|
23836
|
+
T.idsAux = [...T.ids], T.subcategoryGroups = E.group_id === "g-12" ? [] : te(
|
|
23837
23837
|
E,
|
|
23838
23838
|
0,
|
|
23839
23839
|
/* @__PURE__ */ new Map(),
|
|
@@ -23905,7 +23905,7 @@ const hx = { class: "dropdown" }, yx = { class: "selected-item" }, vx = {
|
|
|
23905
23905
|
throw new Error(k);
|
|
23906
23906
|
}
|
|
23907
23907
|
}
|
|
23908
|
-
function
|
|
23908
|
+
function te(k, D = 0, ee = /* @__PURE__ */ new Map(), W = !1, I = {}, Z = []) {
|
|
23909
23909
|
if (!k.group_id)
|
|
23910
23910
|
return;
|
|
23911
23911
|
let V = ee.get(D);
|
|
@@ -23938,7 +23938,7 @@ const hx = { class: "dropdown" }, yx = { class: "selected-item" }, vx = {
|
|
|
23938
23938
|
} else
|
|
23939
23939
|
D !== 0 && (I.childCategories ? I.childCategories.push(E) : I.childCategories = [E], V = [E], ee.set(D, V));
|
|
23940
23940
|
if (k.categories && k.categories.length ? k.categories.forEach((T) => {
|
|
23941
|
-
|
|
23941
|
+
te(
|
|
23942
23942
|
T,
|
|
23943
23943
|
D + 1,
|
|
23944
23944
|
ee,
|
|
@@ -23947,7 +23947,7 @@ const hx = { class: "dropdown" }, yx = { class: "selected-item" }, vx = {
|
|
|
23947
23947
|
Z
|
|
23948
23948
|
);
|
|
23949
23949
|
}) : k.rival_categories && k.rival_categories.length && k.rival_categories.forEach((T) => {
|
|
23950
|
-
|
|
23950
|
+
te(
|
|
23951
23951
|
T,
|
|
23952
23952
|
D + 1,
|
|
23953
23953
|
ee,
|
|
@@ -25073,7 +25073,7 @@ const hx = { class: "dropdown" }, yx = { class: "selected-item" }, vx = {
|
|
|
25073
25073
|
"model-value": _.isSelected,
|
|
25074
25074
|
label: e.isFemale ? _.text.replace("Ganados por portero rival", "Ganados por portera rival").replace("Ganados por jugador rival", "Ganados por jugadora rival") : _.text,
|
|
25075
25075
|
"avoid-interaction": n.value && _.isSelected,
|
|
25076
|
-
"onUpdate:modelValue": (
|
|
25076
|
+
"onUpdate:modelValue": (ae) => v(ae, d, _)
|
|
25077
25077
|
}, null, 8, ["model-value", "label", "avoid-interaction", "onUpdate:modelValue"])
|
|
25078
25078
|
]))), 128))
|
|
25079
25079
|
])) : (u(), p("div", jT, [
|
|
@@ -25605,7 +25605,7 @@ const hx = { class: "dropdown" }, yx = { class: "selected-item" }, vx = {
|
|
|
25605
25605
|
(O) => O.isSelected
|
|
25606
25606
|
);
|
|
25607
25607
|
return Q(w), i.filterType === L.PRODUCTIVITY && t("change-categories-selected", w.length), w.length;
|
|
25608
|
-
}), _ = R(() => !i.isForTemplateForm && g.value >= i.productivityMaxCategories), A = R(() => !i.isForTemplateForm && g.value <= i.productivityMinCategories),
|
|
25608
|
+
}), _ = R(() => !i.isForTemplateForm && g.value >= i.productivityMaxCategories), A = R(() => !i.isForTemplateForm && g.value <= i.productivityMinCategories), ae = R(() => i.isPlayingAsHidden ? i.gameSections : i.playingAs.concat(i.gameSections));
|
|
25609
25609
|
Y(
|
|
25610
25610
|
r,
|
|
25611
25611
|
(w) => {
|
|
@@ -25613,7 +25613,7 @@ const hx = { class: "dropdown" }, yx = { class: "selected-item" }, vx = {
|
|
|
25613
25613
|
},
|
|
25614
25614
|
{ immediate: !0, deep: !0 }
|
|
25615
25615
|
), Y(
|
|
25616
|
-
() =>
|
|
25616
|
+
() => ae.value,
|
|
25617
25617
|
(w) => {
|
|
25618
25618
|
if (i.filterType === L.DETAILS) {
|
|
25619
25619
|
const O = w.filter((ue) => ue.isSelected);
|
|
@@ -25698,7 +25698,7 @@ const hx = { class: "dropdown" }, yx = { class: "selected-item" }, vx = {
|
|
|
25698
25698
|
function K(w) {
|
|
25699
25699
|
i.filterType === L.UNIVERSE && t("change-universe-filters", w);
|
|
25700
25700
|
}
|
|
25701
|
-
function
|
|
25701
|
+
function te(w) {
|
|
25702
25702
|
i.filterType === L.FIELD && t("change-field-areas", w);
|
|
25703
25703
|
}
|
|
25704
25704
|
function B(w) {
|
|
@@ -25834,7 +25834,7 @@ const hx = { class: "dropdown" }, yx = { class: "selected-item" }, vx = {
|
|
|
25834
25834
|
C(M(mS), Fe(e.fieldComponentProps, {
|
|
25835
25835
|
"background-color": e.backgroundColor,
|
|
25836
25836
|
value: e.fieldAreas,
|
|
25837
|
-
"onUpdate:modelValue":
|
|
25837
|
+
"onUpdate:modelValue": te
|
|
25838
25838
|
}), null, 16, ["background-color", "value"])
|
|
25839
25839
|
])) : F("", !0),
|
|
25840
25840
|
e.filterType === M(L).DETAILS ? (u(), p("div", cA, [
|
|
@@ -27711,7 +27711,7 @@ const hx = { class: "dropdown" }, yx = { class: "selected-item" }, vx = {
|
|
|
27711
27711
|
borderRadius: "12px",
|
|
27712
27712
|
filterType: L.TAKEN_CORNERS,
|
|
27713
27713
|
isFooterVisible: !0
|
|
27714
|
-
},
|
|
27714
|
+
}, ae = {
|
|
27715
27715
|
width: "670px",
|
|
27716
27716
|
maxWidth: "670px",
|
|
27717
27717
|
backgroundColor: "#2E3B46",
|
|
@@ -27732,7 +27732,7 @@ const hx = { class: "dropdown" }, yx = { class: "selected-item" }, vx = {
|
|
|
27732
27732
|
borderRadius: "12px",
|
|
27733
27733
|
filterType: L.WHAT_HAPPENED,
|
|
27734
27734
|
isFooterVisible: !0
|
|
27735
|
-
}, ie = S(!1), re = S(!1), K = S(0),
|
|
27735
|
+
}, ie = S(!1), re = S(!1), K = S(0), te = S(0), B = S({}), $ = S(null), G = S(null), z = R(() => i.isForTemplateForm ? "0" : "unset"), ne = R(() => i.buttonFilterProps && i.buttonFilterProps.text ? i.buttonFilterProps.text : i.menuButtonText || ee()), fe = R(() => i.isFromTemplates ? L.RESULTS : i.filterType), $e = R(() => i.expansionPanelText || ee()), Ce = S(null);
|
|
27736
27736
|
Y(
|
|
27737
27737
|
() => i.filterType,
|
|
27738
27738
|
(T) => {
|
|
@@ -27819,7 +27819,7 @@ const hx = { class: "dropdown" }, yx = { class: "selected-item" }, vx = {
|
|
|
27819
27819
|
...i.templateProps,
|
|
27820
27820
|
takenCornersFilters: i.filters || []
|
|
27821
27821
|
} : T === L.HOW_WAS_CORNER ? B.value = {
|
|
27822
|
-
...
|
|
27822
|
+
...ae,
|
|
27823
27823
|
...i.templateProps,
|
|
27824
27824
|
howWasCornerFilters: i.filters || _o
|
|
27825
27825
|
} : T === L.ZONE ? B.value = {
|
|
@@ -27919,7 +27919,7 @@ const hx = { class: "dropdown" }, yx = { class: "selected-item" }, vx = {
|
|
|
27919
27919
|
...i.templateProps,
|
|
27920
27920
|
takenCornersFilters: i.filters || []
|
|
27921
27921
|
} : i.filterType === L.HOW_WAS_CORNER ? B.value = {
|
|
27922
|
-
...
|
|
27922
|
+
...ae,
|
|
27923
27923
|
...i.templateProps,
|
|
27924
27924
|
howWasCornerFilters: i.filters || _o
|
|
27925
27925
|
} : i.filterType === L.ZONE ? B.value = {
|
|
@@ -27994,7 +27994,7 @@ const hx = { class: "dropdown" }, yx = { class: "selected-item" }, vx = {
|
|
|
27994
27994
|
Ce.value = T, t("update:filters", T);
|
|
27995
27995
|
}
|
|
27996
27996
|
function N(T) {
|
|
27997
|
-
|
|
27997
|
+
te.value = T;
|
|
27998
27998
|
}
|
|
27999
27999
|
function E(T = null) {
|
|
28000
28000
|
$.value && $.value.clearFilters(T), G.value && G.value.clearFilters(T);
|
|
@@ -28055,7 +28055,7 @@ const hx = { class: "dropdown" }, yx = { class: "selected-item" }, vx = {
|
|
|
28055
28055
|
text: ne.value,
|
|
28056
28056
|
"show-badge-on-filter-full": e.showBadgeOnFilterFull,
|
|
28057
28057
|
"info-value": K.value,
|
|
28058
|
-
"filters-total":
|
|
28058
|
+
"filters-total": te.value.value,
|
|
28059
28059
|
"is-active": ie.value,
|
|
28060
28060
|
"icon-type": fe.value
|
|
28061
28061
|
}), null, 16, ["text", "show-badge-on-filter-full", "info-value", "filters-total", "is-active", "icon-type"])
|
|
@@ -28199,8 +28199,8 @@ const G$ = { class: "graph-spider__title" }, q$ = { class: "graph-spider__conten
|
|
|
28199
28199
|
name: g.name || g.short_name || g.player_name,
|
|
28200
28200
|
data: g.statsGraph ? g.statsGraph.reduce((_, A) => {
|
|
28201
28201
|
if (A.isVisible) {
|
|
28202
|
-
const
|
|
28203
|
-
_.push(
|
|
28202
|
+
const ae = typeof A.playerPercentage == "string" && A.playerPercentage.includes("%") ? parseInt(A.playerPercentage.replace("%", "")) : A.playerPercentage;
|
|
28203
|
+
_.push(ae > 100 ? 100 : ae);
|
|
28204
28204
|
}
|
|
28205
28205
|
return _;
|
|
28206
28206
|
}, []) : []
|
|
@@ -28354,10 +28354,10 @@ const G$ = { class: "graph-spider__title" }, q$ = { class: "graph-spider__conten
|
|
|
28354
28354
|
fontSize: "12px"
|
|
28355
28355
|
},
|
|
28356
28356
|
custom: function({ series: d, seriesIndex: g, dataPointIndex: _, w: A }) {
|
|
28357
|
-
const
|
|
28357
|
+
const ae = d[g];
|
|
28358
28358
|
return `
|
|
28359
28359
|
<div class="custom-tooltip-apexchart">
|
|
28360
|
-
<div class="__title">${Number.isNaN(
|
|
28360
|
+
<div class="__title">${Number.isNaN(ae[_]) ? "N/A" : `${Math.floor(ae[_])}%`}</div>
|
|
28361
28361
|
</div>
|
|
28362
28362
|
`;
|
|
28363
28363
|
}
|
|
@@ -28392,12 +28392,12 @@ const G$ = { class: "graph-spider__title" }, q$ = { class: "graph-spider__conten
|
|
|
28392
28392
|
}
|
|
28393
28393
|
if (!A.template && !A.categories)
|
|
28394
28394
|
return;
|
|
28395
|
-
const
|
|
28395
|
+
const ae = JSON.stringify(A), Q = await (await fetch(_, {
|
|
28396
28396
|
method: "PUT",
|
|
28397
28397
|
headers: {
|
|
28398
28398
|
Authorization: a.token
|
|
28399
28399
|
},
|
|
28400
|
-
body:
|
|
28400
|
+
body: ae
|
|
28401
28401
|
})).json();
|
|
28402
28402
|
h(Q, !!i.value);
|
|
28403
28403
|
} catch (g) {
|
|
@@ -28409,7 +28409,7 @@ const G$ = { class: "graph-spider__title" }, q$ = { class: "graph-spider__conten
|
|
|
28409
28409
|
if (!_.max || !_.data)
|
|
28410
28410
|
return;
|
|
28411
28411
|
if (g) {
|
|
28412
|
-
const Q = /* @__PURE__ */ new Map(), J = Object.entries(_.data).reduce((ie, [re, K],
|
|
28412
|
+
const Q = /* @__PURE__ */ new Map(), J = Object.entries(_.data).reduce((ie, [re, K], te) => {
|
|
28413
28413
|
const B = {
|
|
28414
28414
|
playerId: re,
|
|
28415
28415
|
categoriesByName: /* @__PURE__ */ new Map()
|
|
@@ -28417,14 +28417,14 @@ const G$ = { class: "graph-spider__title" }, q$ = { class: "graph-spider__conten
|
|
|
28417
28417
|
return K.forEach(($) => {
|
|
28418
28418
|
const G = B.categoriesByName.get($[1]), z = Q.get($[1]);
|
|
28419
28419
|
if (G) {
|
|
28420
|
-
if (G.categoriesIds.push($[0]), G.categoriesIds.sort(), G.totals.push($[2]),
|
|
28420
|
+
if (G.categoriesIds.push($[0]), G.categoriesIds.sort(), G.totals.push($[2]), te === 0 && z) {
|
|
28421
28421
|
const ne = _.max.find((fe) => fe[0] === $[0]);
|
|
28422
28422
|
ne && (z.categoriesIds.push($[0]), z.categoriesIds.sort(), z.max.push(ne[1]));
|
|
28423
28423
|
}
|
|
28424
28424
|
} else if (B.categoriesByName.set($[1], {
|
|
28425
28425
|
categoriesIds: [$[0]],
|
|
28426
28426
|
totals: [$[2]]
|
|
28427
|
-
}),
|
|
28427
|
+
}), te === 0) {
|
|
28428
28428
|
const ne = _.max.find((fe) => fe[0] === $[0]);
|
|
28429
28429
|
ne && Q.set($[1], {
|
|
28430
28430
|
categoriesIds: [$[0]],
|
|
@@ -28435,11 +28435,11 @@ const G$ = { class: "graph-spider__title" }, q$ = { class: "graph-spider__conten
|
|
|
28435
28435
|
}, []);
|
|
28436
28436
|
_.data = J.reduce((ie, re) => {
|
|
28437
28437
|
const K = [];
|
|
28438
|
-
return re.categoriesByName.forEach((
|
|
28438
|
+
return re.categoriesByName.forEach((te, B) => {
|
|
28439
28439
|
K.push([
|
|
28440
|
-
Array.from(
|
|
28440
|
+
Array.from(te.categoriesIds).reduce(($, G) => `${$}-${G}`, ""),
|
|
28441
28441
|
B,
|
|
28442
|
-
|
|
28442
|
+
te.totals.reduce(($, G) => $ + G, 0)
|
|
28443
28443
|
]);
|
|
28444
28444
|
}), ie[re.playerId] = K, ie;
|
|
28445
28445
|
}, {}), _.max = Q.values().map((ie) => [
|
|
@@ -28447,23 +28447,23 @@ const G$ = { class: "graph-spider__title" }, q$ = { class: "graph-spider__conten
|
|
|
28447
28447
|
ie.max.reduce((re, K) => re + K, 0)
|
|
28448
28448
|
]);
|
|
28449
28449
|
}
|
|
28450
|
-
const A = _.max.reduce((Q, [J, ie]) => (Q.set(J, ie), Q), /* @__PURE__ */ new Map()),
|
|
28450
|
+
const A = _.max.reduce((Q, [J, ie]) => (Q.set(J, ie), Q), /* @__PURE__ */ new Map()), ae = Object.entries(_.data).reduce((Q, [J, ie]) => (Q.set(Number(J), ie), Q), /* @__PURE__ */ new Map());
|
|
28451
28451
|
s.value = [], l.value.forEach((Q) => {
|
|
28452
|
-
const J =
|
|
28452
|
+
const J = ae.get(
|
|
28453
28453
|
Q.objeto_player ? Q.objeto_player.player_id : Q.id || Q.player_id
|
|
28454
28454
|
);
|
|
28455
28455
|
Q.statsGraph = [], J && (Q.statsGraph = J.map((ie, re) => {
|
|
28456
|
-
const K = Number(A.get(ie[0])),
|
|
28456
|
+
const K = Number(A.get(ie[0])), te = ie[2], B = re + 1;
|
|
28457
28457
|
return s.value.length < J.length && s.value.push({
|
|
28458
28458
|
position: B,
|
|
28459
28459
|
name: ie[1]
|
|
28460
28460
|
}), {
|
|
28461
28461
|
position: B,
|
|
28462
28462
|
name: ie[1],
|
|
28463
|
-
playerStat:
|
|
28463
|
+
playerStat: te,
|
|
28464
28464
|
leagueMax: K,
|
|
28465
28465
|
id: ie[0],
|
|
28466
|
-
playerPercentage: K ? Math.floor(
|
|
28466
|
+
playerPercentage: K ? Math.floor(te / K * 100) : te,
|
|
28467
28467
|
isVisible: !0
|
|
28468
28468
|
};
|
|
28469
28469
|
}));
|
|
@@ -28608,11 +28608,11 @@ const G$ = { class: "graph-spider__title" }, q$ = { class: "graph-spider__conten
|
|
|
28608
28608
|
}
|
|
28609
28609
|
function b(d) {
|
|
28610
28610
|
const [g, _] = d.split(","), A = g.split(" ");
|
|
28611
|
-
let
|
|
28611
|
+
let ae = "";
|
|
28612
28612
|
for (const Q of A)
|
|
28613
|
-
if (
|
|
28613
|
+
if (ae += ` ${Q}`, Q.length > 3)
|
|
28614
28614
|
break;
|
|
28615
|
-
return _ && g ? `${_.trim()} ${
|
|
28615
|
+
return _ && g ? `${_.trim()} ${ae}` : "";
|
|
28616
28616
|
}
|
|
28617
28617
|
function h(d) {
|
|
28618
28618
|
s.value.forEach((g) => {
|
|
@@ -29542,7 +29542,7 @@ const xM = /* @__PURE__ */ us(ps, [["render", wM], ["__scopeId", "data-v-389c50f
|
|
|
29542
29542
|
}, EM = { class: "modal-overlay" }, TM = { class: "modal-container" }, AM = { class: "modal-content" }, $M = { class: "modal-header" }, MM = { class: "fields-container" }, BM = { class: "field-section" }, RM = { class: "field-section" }, IM = { class: "distance-section" }, OM = { class: "distance-info" }, PM = { class: "info-row" }, LM = { class: "info-value" }, VM = { class: "info-row" }, NM = { class: "info-value" }, DM = { class: "info-row" }, UM = { class: "info-value" }, zM = { class: "distance-section" }, jM = { class: "distance-info" }, HM = { class: "info-row" }, WM = { class: "info-value" }, GM = { class: "info-row" }, qM = { class: "info-value" }, YM = { class: "info-row" }, ZM = { class: "info-value" };
|
|
29543
29543
|
function JM(e, a, t, i, l, s) {
|
|
29544
29544
|
var r, n, f, c, v, m, b, h, y, d, g, _;
|
|
29545
|
-
const A = pt("FieldGolStatsTemplates"),
|
|
29545
|
+
const A = pt("FieldGolStatsTemplates"), ae = pt("FieldTemplatesElement");
|
|
29546
29546
|
return t.isVisible ? (u(), p("div", FM, [
|
|
29547
29547
|
o("div", EM, [
|
|
29548
29548
|
o("div", TM, [
|
|
@@ -29566,7 +29566,7 @@ function JM(e, a, t, i, l, s) {
|
|
|
29566
29566
|
]),
|
|
29567
29567
|
o("div", MM, [
|
|
29568
29568
|
o("div", BM, [
|
|
29569
|
-
s.isArrayOfArrays((r = t.parameters) == null ? void 0 : r.origin_zones) ? (u(), ve(
|
|
29569
|
+
s.isArrayOfArrays((r = t.parameters) == null ? void 0 : r.origin_zones) ? (u(), ve(ae, {
|
|
29570
29570
|
key: 1,
|
|
29571
29571
|
"user-id": 24254,
|
|
29572
29572
|
"display-mode": !0,
|
|
@@ -29579,7 +29579,7 @@ function JM(e, a, t, i, l, s) {
|
|
|
29579
29579
|
}, null, 8, ["initial-sections"]))
|
|
29580
29580
|
]),
|
|
29581
29581
|
o("div", RM, [
|
|
29582
|
-
s.isArrayOfArrays((c = t.parameters) == null ? void 0 : c.destiny_zones) ? (u(), ve(
|
|
29582
|
+
s.isArrayOfArrays((c = t.parameters) == null ? void 0 : c.destiny_zones) ? (u(), ve(ae, {
|
|
29583
29583
|
key: 1,
|
|
29584
29584
|
"user-id": 24254,
|
|
29585
29585
|
"display-mode": !0,
|
|
@@ -29860,9 +29860,9 @@ const Hn = /* @__PURE__ */ us(kM, [["render", JM], ["__scopeId", "data-v-834c012
|
|
|
29860
29860
|
},
|
|
29861
29861
|
emits: ["close", "createList", "listCreated"],
|
|
29862
29862
|
setup(e, { emit: a }) {
|
|
29863
|
-
const t = a, i = e, l = S(""), s = S(""), r = S([]), n = S(!0), f = S(!1), c = S([]), v = S([]), m = S(!1), b = S(null), h = R(() => i.lists.some((
|
|
29863
|
+
const t = a, i = e, l = S(""), s = S(""), r = S([]), n = S(!0), f = S(!1), c = S([]), v = S([]), m = S(!1), b = S(null), h = R(() => i.lists.some((te) => te.name.toLowerCase() === l.value.toLowerCase().trim())), y = R(() => l.value.trim() !== "" && r.value.length > 0 && !h.value);
|
|
29864
29864
|
async function d() {
|
|
29865
|
-
var
|
|
29865
|
+
var te, B;
|
|
29866
29866
|
try {
|
|
29867
29867
|
m.value = !0;
|
|
29868
29868
|
const G = await Re.create({ headers: { Authorization: `${i.token}` } }).get(
|
|
@@ -29870,26 +29870,26 @@ const Hn = /* @__PURE__ */ us(kM, [["render", JM], ["__scopeId", "data-v-834c012
|
|
|
29870
29870
|
);
|
|
29871
29871
|
v.value = G.data.data;
|
|
29872
29872
|
} catch ($) {
|
|
29873
|
-
b.value = ((B = (
|
|
29873
|
+
b.value = ((B = (te = $.response) == null ? void 0 : te.data) == null ? void 0 : B.message) || "Error al obtener las variables", console.error("Error fetching variables:", $);
|
|
29874
29874
|
} finally {
|
|
29875
29875
|
m.value = !1;
|
|
29876
29876
|
}
|
|
29877
29877
|
}
|
|
29878
29878
|
const g = R(() => s.value ? v.value.filter(
|
|
29879
|
-
(
|
|
29879
|
+
(te) => te.name.toLowerCase().includes(s.value.toLowerCase()) && !r.value.some((B) => B.custom_id === te.custom_id)
|
|
29880
29880
|
) : v.value.filter(
|
|
29881
|
-
(
|
|
29881
|
+
(te) => !r.value.some((B) => B.custom_id === te.custom_id)
|
|
29882
29882
|
));
|
|
29883
29883
|
function _() {
|
|
29884
29884
|
if (s.value) {
|
|
29885
|
-
const
|
|
29886
|
-
|
|
29885
|
+
const te = v.value.find((B) => B.name === s.value);
|
|
29886
|
+
te && !r.value.some((B) => B.custom_id === te.custom_id) && (r.value.push(te), s.value = "", n.value = !1);
|
|
29887
29887
|
}
|
|
29888
29888
|
}
|
|
29889
29889
|
function A() {
|
|
29890
29890
|
n.value = !0, c.value = [...r.value];
|
|
29891
29891
|
}
|
|
29892
|
-
function
|
|
29892
|
+
function ae() {
|
|
29893
29893
|
setTimeout(() => {
|
|
29894
29894
|
n.value = !1;
|
|
29895
29895
|
}, 100);
|
|
@@ -29898,7 +29898,7 @@ const Hn = /* @__PURE__ */ us(kM, [["render", JM], ["__scopeId", "data-v-834c012
|
|
|
29898
29898
|
r.value = [...c.value], s.value = "", n.value = !1;
|
|
29899
29899
|
}
|
|
29900
29900
|
async function J() {
|
|
29901
|
-
var
|
|
29901
|
+
var te, B;
|
|
29902
29902
|
try {
|
|
29903
29903
|
if (l.value && r.value.length) {
|
|
29904
29904
|
const $ = Re.create({ headers: { Authorization: `${i.token}` } }), G = {
|
|
@@ -29912,7 +29912,7 @@ const Hn = /* @__PURE__ */ us(kM, [["render", JM], ["__scopeId", "data-v-834c012
|
|
|
29912
29912
|
)).data && (t("createList", { nombre: l.value, variables: r.value }), t("listCreated"), l.value = "", r.value = [], s.value = "", n.value = !1, t("close"));
|
|
29913
29913
|
}
|
|
29914
29914
|
} catch ($) {
|
|
29915
|
-
console.error("Error creating list:", $), b.value = ((B = (
|
|
29915
|
+
console.error("Error creating list:", $), b.value = ((B = (te = $.response) == null ? void 0 : te.data) == null ? void 0 : B.message) || "Error al crear la lista";
|
|
29916
29916
|
}
|
|
29917
29917
|
}
|
|
29918
29918
|
function ie() {
|
|
@@ -29928,7 +29928,7 @@ const Hn = /* @__PURE__ */ us(kM, [["render", JM], ["__scopeId", "data-v-834c012
|
|
|
29928
29928
|
f.value = !0, n.value = !1, re(), await d();
|
|
29929
29929
|
}), ka(() => {
|
|
29930
29930
|
K();
|
|
29931
|
-
}), (
|
|
29931
|
+
}), (te, B) => (u(), p("div", lB, [
|
|
29932
29932
|
C(He, { name: "slide-up" }, {
|
|
29933
29933
|
default: de(() => [
|
|
29934
29934
|
f.value ? (u(), p("div", rB, [
|
|
@@ -29969,7 +29969,7 @@ const Hn = /* @__PURE__ */ us(kM, [["render", JM], ["__scopeId", "data-v-834c012
|
|
|
29969
29969
|
type: "text",
|
|
29970
29970
|
placeholder: "Selecciona las variables que quieres que se vean",
|
|
29971
29971
|
onFocus: B[2] || (B[2] = ($) => n.value = !0),
|
|
29972
|
-
onBlur:
|
|
29972
|
+
onBlur: ae,
|
|
29973
29973
|
onInput: A,
|
|
29974
29974
|
disabled: m.value
|
|
29975
29975
|
}, null, 40, uB), [
|
|
@@ -30175,8 +30175,8 @@ const Hn = /* @__PURE__ */ us(kM, [["render", JM], ["__scopeId", "data-v-834c012
|
|
|
30175
30175
|
je(async () => {
|
|
30176
30176
|
try {
|
|
30177
30177
|
console.log("ESTADISTICAS DEL JUGADOR: ", t.stats), console.log("ESTADISTICAS MAXIMAS STATS: ", t.max), l.value = t.stats.map((Q) => {
|
|
30178
|
-
var
|
|
30179
|
-
const J = Q[0], ie = Q[2], re = ((B = (
|
|
30178
|
+
var te, B;
|
|
30179
|
+
const J = Q[0], ie = Q[2], re = ((B = (te = t.max) == null ? void 0 : te.find(
|
|
30180
30180
|
($) => $[0] === J || $[0] === parseInt(J) || $[0].toString() === J.toString()
|
|
30181
30181
|
)) == null ? void 0 : B[1]) || 0, K = re > 0 ? ie / re * 100 : 0;
|
|
30182
30182
|
return {
|
|
@@ -30211,7 +30211,7 @@ const Hn = /* @__PURE__ */ us(kM, [["render", JM], ["__scopeId", "data-v-834c012
|
|
|
30211
30211
|
function A(Q) {
|
|
30212
30212
|
console.log("COIMPOENNTE POADRE, gscPLAYERDcARD", Q);
|
|
30213
30213
|
}
|
|
30214
|
-
function
|
|
30214
|
+
function ae() {
|
|
30215
30215
|
i("playerAdded");
|
|
30216
30216
|
}
|
|
30217
30217
|
return (Q, J) => (u(), p(X, null, [
|
|
@@ -30271,7 +30271,7 @@ const Hn = /* @__PURE__ */ us(kM, [["render", JM], ["__scopeId", "data-v-834c012
|
|
|
30271
30271
|
onSelectList: A,
|
|
30272
30272
|
onCreateNewList: g,
|
|
30273
30273
|
onClose: d,
|
|
30274
|
-
onPlayerAdded:
|
|
30274
|
+
onPlayerAdded: ae
|
|
30275
30275
|
}, null, 8, ["lists", "isModalOpen", "token", "user-id", "selected-player"])
|
|
30276
30276
|
], 2)) : F("", !0)
|
|
30277
30277
|
])),
|
|
@@ -30344,7 +30344,7 @@ const Hn = /* @__PURE__ */ us(kM, [["render", JM], ["__scopeId", "data-v-834c012
|
|
|
30344
30344
|
token: e.token,
|
|
30345
30345
|
lists: e.lists,
|
|
30346
30346
|
"user-id": e.userId,
|
|
30347
|
-
onListCreated:
|
|
30347
|
+
onListCreated: ae,
|
|
30348
30348
|
onClose: J[4] || (J[4] = (ie) => r.value = !1),
|
|
30349
30349
|
onCreateList: _
|
|
30350
30350
|
}, null, 8, ["token", "lists", "user-id"])) : F("", !0)
|
|
@@ -30428,8 +30428,8 @@ const Hn = /* @__PURE__ */ us(kM, [["render", JM], ["__scopeId", "data-v-834c012
|
|
|
30428
30428
|
}
|
|
30429
30429
|
function b(d) {
|
|
30430
30430
|
const g = d.target.closest(".add-to-list-tooltip"), _ = d.target.closest(".add-button"), A = d.target.closest(".modal-overlay") || d.target.closest(".modal-content");
|
|
30431
|
-
!g && !_ && !A && Object.keys(s).forEach((
|
|
30432
|
-
s[
|
|
30431
|
+
!g && !_ && !A && Object.keys(s).forEach((ae) => {
|
|
30432
|
+
s[ae] = !1;
|
|
30433
30433
|
});
|
|
30434
30434
|
}
|
|
30435
30435
|
function h() {
|
|
@@ -30957,7 +30957,7 @@ const gR = /* @__PURE__ */ nR(fs, [["render", vR], ["__scopeId", "data-v-f3ee6b2
|
|
|
30957
30957
|
class: oe(["row data-info", { odd: _ % 2 !== 0, underline: !!A.total && A.total !== "0%" && A.seasons && A.seasons.length }])
|
|
30958
30958
|
}, [
|
|
30959
30959
|
o("span", {
|
|
30960
|
-
onClick: (
|
|
30960
|
+
onClick: (ae) => m({ player: g, stat: A })
|
|
30961
30961
|
}, x(A.total), 9, TR)
|
|
30962
30962
|
], 2))), 128))
|
|
30963
30963
|
]))), 128))
|
|
@@ -31324,10 +31324,10 @@ const gR = /* @__PURE__ */ nR(fs, [["render", vR], ["__scopeId", "data-v-f3ee6b2
|
|
|
31324
31324
|
c,
|
|
31325
31325
|
(I) => {
|
|
31326
31326
|
const Z = document.querySelectorAll(".static-row")[v.value + 1];
|
|
31327
|
-
Z && (Z.style.marginTop = `${I}px`), t.isGeneral ?
|
|
31327
|
+
Z && (Z.style.marginTop = `${I}px`), t.isGeneral ? ae(v.value, I) : n.value && n.value.setMarginTopDetails(v.value, I), I === 0 && m.value && fe(m.value);
|
|
31328
31328
|
}
|
|
31329
31329
|
);
|
|
31330
|
-
function
|
|
31330
|
+
function ae(I, Z) {
|
|
31331
31331
|
const V = document.querySelectorAll(".scrollable-row")[I + 2];
|
|
31332
31332
|
V && (V.style.marginTop = `${Z}px`);
|
|
31333
31333
|
}
|
|
@@ -31363,7 +31363,7 @@ const gR = /* @__PURE__ */ nR(fs, [["render", vR], ["__scopeId", "data-v-f3ee6b2
|
|
|
31363
31363
|
];
|
|
31364
31364
|
E.sort((T, w) => T - w), N.seasonId = E.shift(), N.seasonsIds = E;
|
|
31365
31365
|
} else (I.season_id || I.seasonId) && (N.seasonId = I.season_id || I.seasonId);
|
|
31366
|
-
I.stat ? I.stat.category_id && I.stat.category_id.length ? N.categoryIds = I.stat.category_id : I.stat.custom_category_id && (N.customCategoryIds = [I.stat.custom_category_id]) : N.categoryIds =
|
|
31366
|
+
I.stat ? I.stat.category_id && I.stat.category_id.length ? N.categoryIds = I.stat.category_id : I.stat.custom_category_id && (N.customCategoryIds = [I.stat.custom_category_id]) : N.categoryIds = te(I.player_position), a("open-media", N);
|
|
31367
31367
|
}
|
|
31368
31368
|
function re() {
|
|
31369
31369
|
i = new ResizeObserver((I) => {
|
|
@@ -31377,7 +31377,7 @@ const gR = /* @__PURE__ */ nR(fs, [["render", vR], ["__scopeId", "data-v-f3ee6b2
|
|
|
31377
31377
|
c.value = V.contentRect.height;
|
|
31378
31378
|
}), l.observe(I);
|
|
31379
31379
|
}
|
|
31380
|
-
function
|
|
31380
|
+
function te(I) {
|
|
31381
31381
|
return I === "POR" ? [39, 40, 52, 53, 54, 55, 323, 324, 608, 774, 802] : [
|
|
31382
31382
|
10,
|
|
31383
31383
|
12,
|
|
@@ -32053,28 +32053,16 @@ const gR = /* @__PURE__ */ nR(fs, [["render", vR], ["__scopeId", "data-v-f3ee6b2
|
|
|
32053
32053
|
player_games: ((n = a.playerAddtionalData[s.player_id]) == null ? void 0 : n.games_played) || 0,
|
|
32054
32054
|
player_min: ((f = a.playerAddtionalData[s.player_id]) == null ? void 0 : f.minutes) || 0,
|
|
32055
32055
|
league_name: (c = a.playerAddtionalData[s.player_id]) == null ? void 0 : c.tournament_name,
|
|
32056
|
-
seasons: [
|
|
32057
|
-
...new Set(
|
|
32058
|
-
a.categories.map(
|
|
32059
|
-
(m) => {
|
|
32060
|
-
var b, h;
|
|
32061
|
-
return ((h = (b = a.playerStats[s.player_id]) == null ? void 0 : b[m.id_variable]) == null ? void 0 : h.season) || [];
|
|
32062
|
-
}
|
|
32063
|
-
).flat()
|
|
32064
|
-
)
|
|
32065
|
-
].filter((m) => m && m !== 0),
|
|
32056
|
+
seasons: [],
|
|
32066
32057
|
season_id: ((v = a.playerAddtionalData[s.player_id]) == null ? void 0 : v.season_id) || 0,
|
|
32067
|
-
stats:
|
|
32068
|
-
|
|
32069
|
-
|
|
32070
|
-
|
|
32071
|
-
|
|
32072
|
-
|
|
32073
|
-
|
|
32074
|
-
|
|
32075
|
-
seasons: ((te = (A = a.playerStats[s.player_id]) == null ? void 0 : A[m.id_variable]) == null ? void 0 : te.season) || null
|
|
32076
|
-
};
|
|
32077
|
-
})
|
|
32058
|
+
stats: s.stats.map((m) => ({
|
|
32059
|
+
category_id: m[0],
|
|
32060
|
+
custom_category_id: m[0],
|
|
32061
|
+
name: m[1].replace(/\([^)]*\)/g, "").trim().toLowerCase().replace(/^\w/, (b) => b.toUpperCase()),
|
|
32062
|
+
parameters: m.parameters,
|
|
32063
|
+
total: m[2],
|
|
32064
|
+
seasons: m[3]
|
|
32065
|
+
}))
|
|
32078
32066
|
};
|
|
32079
32067
|
}, l = R(() => a.playersScouting ? Object.values(a.playersScouting).map((s) => i(s)) : []);
|
|
32080
32068
|
return (s, r) => (u(), p("div", dO, [
|
|
@@ -32082,11 +32070,11 @@ const gR = /* @__PURE__ */ nR(fs, [["render", vR], ["__scopeId", "data-v-f3ee6b2
|
|
|
32082
32070
|
players: l.value,
|
|
32083
32071
|
"is-general": !1,
|
|
32084
32072
|
"is-edit-mode": !1,
|
|
32085
|
-
"is-table-from-list": !
|
|
32073
|
+
"is-table-from-list": !1
|
|
32086
32074
|
}, null, 8, ["players"])
|
|
32087
32075
|
]));
|
|
32088
32076
|
}
|
|
32089
|
-
}, cO = /* @__PURE__ */ ft(uO, [["__scopeId", "data-v-
|
|
32077
|
+
}, cO = /* @__PURE__ */ ft(uO, [["__scopeId", "data-v-49b6ec7e"]]), pO = { class: "title" }, fO = ["disabled"], mO = {
|
|
32090
32078
|
key: 0,
|
|
32091
32079
|
class: "loading-spinner"
|
|
32092
32080
|
}, hO = { key: 1 }, yO = { key: 2 }, vO = { class: "settings-row" }, gO = { class: "switch-track" }, bO = { class: "selector-container" }, _O = {
|
|
@@ -32184,11 +32172,11 @@ const gR = /* @__PURE__ */ nR(fs, [["render", vR], ["__scopeId", "data-v-f3ee6b2
|
|
|
32184
32172
|
title: "Elige el área o zona de cancha",
|
|
32185
32173
|
titleFontSize: "13px"
|
|
32186
32174
|
}
|
|
32187
|
-
}, d = S(null), g = S(null), _ = S(null), A = S(null),
|
|
32175
|
+
}, d = S(null), g = S(null), _ = S(null), A = S(null), ae = S(!1), Q = S(null), J = S(null), ie = S([]), re = S(!1);
|
|
32188
32176
|
function K() {
|
|
32189
32177
|
re.value = !1;
|
|
32190
32178
|
}
|
|
32191
|
-
function
|
|
32179
|
+
function te() {
|
|
32192
32180
|
re.value = !0;
|
|
32193
32181
|
}
|
|
32194
32182
|
function B() {
|
|
@@ -32200,19 +32188,19 @@ const gR = /* @__PURE__ */ nR(fs, [["render", vR], ["__scopeId", "data-v-f3ee6b2
|
|
|
32200
32188
|
) ? (r.value.showModal(), console.log("El jugador ya existe en la lista:", _e)) : (Q.value = [_e, ...Q.value], console.log("Jugador agregado exitosamente:", _e));
|
|
32201
32189
|
}
|
|
32202
32190
|
function G(_e) {
|
|
32203
|
-
console.log("position: ", _e), n.value = _e.positionIds,
|
|
32191
|
+
console.log("position: ", _e), n.value = _e.positionIds, ae.value = !0, d.value = _e;
|
|
32204
32192
|
}
|
|
32205
32193
|
function z(_e) {
|
|
32206
|
-
console.log("filters: ---------------------------------------------------------------> ", _e), console.log("filters structure:", JSON.stringify(_e, null, 2)), b.value = _e,
|
|
32194
|
+
console.log("filters: ---------------------------------------------------------------> ", _e), console.log("filters structure:", JSON.stringify(_e, null, 2)), b.value = _e, ae.value = !0;
|
|
32207
32195
|
}
|
|
32208
32196
|
function ne(_e) {
|
|
32209
|
-
g.value = _e,
|
|
32197
|
+
g.value = _e, ae.value = !0;
|
|
32210
32198
|
}
|
|
32211
32199
|
function fe(_e) {
|
|
32212
|
-
_.value = _e,
|
|
32200
|
+
_.value = _e, ae.value = !0;
|
|
32213
32201
|
}
|
|
32214
32202
|
function $e(_e) {
|
|
32215
|
-
console.log("IS selected", _e), A.value = _e,
|
|
32203
|
+
console.log("IS selected", _e), A.value = _e, ae.value = !0;
|
|
32216
32204
|
}
|
|
32217
32205
|
const Ce = S(!1), k = S(null);
|
|
32218
32206
|
async function D() {
|
|
@@ -32250,7 +32238,7 @@ const gR = /* @__PURE__ */ nR(fs, [["render", vR], ["__scopeId", "data-v-f3ee6b2
|
|
|
32250
32238
|
console.log("Respuesta del servidor:", La.data), Q.value = La.data.players, J.value = {
|
|
32251
32239
|
max: La.data.max,
|
|
32252
32240
|
internal_max: La.data.internal_max
|
|
32253
|
-
},
|
|
32241
|
+
}, ae.value = !1;
|
|
32254
32242
|
} catch (Pa) {
|
|
32255
32243
|
console.error("Error en la búsqueda:", Pa), k.value = Pa.message || "Error al realizar la búsqueda";
|
|
32256
32244
|
} finally {
|
|
@@ -32258,7 +32246,7 @@ const gR = /* @__PURE__ */ nR(fs, [["render", vR], ["__scopeId", "data-v-f3ee6b2
|
|
|
32258
32246
|
}
|
|
32259
32247
|
}
|
|
32260
32248
|
function ee() {
|
|
32261
|
-
m.value = !m.value,
|
|
32249
|
+
m.value = !m.value, ae.value = !0;
|
|
32262
32250
|
}
|
|
32263
32251
|
const W = S(null), I = S(!1), Z = () => {
|
|
32264
32252
|
W.value && (I.value = W.value.offsetWidth < 1200);
|
|
@@ -32368,12 +32356,12 @@ const gR = /* @__PURE__ */ nR(fs, [["render", vR], ["__scopeId", "data-v-f3ee6b2
|
|
|
32368
32356
|
], 2),
|
|
32369
32357
|
o("button", {
|
|
32370
32358
|
class: oe(["search-button", {
|
|
32371
|
-
active:
|
|
32359
|
+
active: ae.value,
|
|
32372
32360
|
loading: Ce.value,
|
|
32373
32361
|
error: k.value
|
|
32374
32362
|
}]),
|
|
32375
32363
|
onClick: D,
|
|
32376
|
-
disabled: Ce.value || !
|
|
32364
|
+
disabled: Ce.value || !ae.value
|
|
32377
32365
|
}, [
|
|
32378
32366
|
Ce.value ? (u(), p("span", mO)) : k.value ? (u(), p("span", hO, "Error")) : (u(), p("span", yO, "Buscar"))
|
|
32379
32367
|
], 10, fO)
|
|
@@ -32428,7 +32416,7 @@ const gR = /* @__PURE__ */ nR(fs, [["render", vR], ["__scopeId", "data-v-f3ee6b2
|
|
|
32428
32416
|
], 64)) : (u(), p("div", _O, [
|
|
32429
32417
|
o("button", {
|
|
32430
32418
|
class: "criterio-btn",
|
|
32431
|
-
onClick:
|
|
32419
|
+
onClick: te
|
|
32432
32420
|
}, Se[3] || (Se[3] = [
|
|
32433
32421
|
ce(" Ver criterio pesos "),
|
|
32434
32422
|
o("span", { class: "eye-icon" }, [
|