@golstats/lilini-player-detection 1.0.84 → 1.0.86
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-878c591f-DT1vI4LK.js → FilterConditions-a9fea334-DdAPVHSP.js} +1 -1
- package/dist/{FilterConditions-cd420512-Cmbk-WAZ-B5xISTZU.js → FilterConditions-cd420512-Cmbk-WAZ-DceCafl2.js} +1 -1
- package/dist/{FilterField-1080df22-B-0DqP1h.js → FilterField-069a3208-CvSoQxCC.js} +1 -1
- package/dist/{FilterField-a29b1541-DctB4Acx-mYngq4tI.js → FilterField-a29b1541-DctB4Acx-CAENsfGY.js} +1 -1
- package/dist/{FilterSubcategories-ae203274-BWtlJvRT.js → FilterSubcategories-113560ae-D1qJOMJA.js} +1 -1
- package/dist/{FilterSubcategories-1f65c851-C6ySBQJ6-tmdWrzWD.js → FilterSubcategories-1f65c851-C6ySBQJ6-Big9Ajba.js} +1 -1
- package/dist/{index-CaHG1blu.js → index-BWCmBpAB.js} +508 -491
- package/dist/lilini-player-detection.css +1 -1
- package/dist/lilini-player-detection.es.js +1 -1
- package/dist/lilini-player-detection.umd.js +25 -25
- package/package.json +2 -2
|
@@ -1211,12 +1211,12 @@ const z2 = /* @__PURE__ */ F2(tl, [["render", j2], ["__scopeId", "data-v-f3ee6b2
|
|
|
1211
1211
|
}, b5 = ["stroke"], x5 = ["stroke"], S5 = ["fill"], w5 = { class: "available-item" }, C5 = {
|
|
1212
1212
|
key: 0,
|
|
1213
1213
|
class: "available-template__selected"
|
|
1214
|
-
}, k5 = { class: "modal-footer" }, T5 = "https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments", _5 = {
|
|
1214
|
+
}, k5 = { class: "modal-footer" }, T5 = "https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/v2/gs3/tournaments", _5 = {
|
|
1215
1215
|
__name: "ModalAddPlayer",
|
|
1216
1216
|
props: {
|
|
1217
1217
|
apiUrl: {
|
|
1218
1218
|
type: String,
|
|
1219
|
-
default: "https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments?lillini=true"
|
|
1219
|
+
default: "https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/v2/gs3/tournaments?lillini=true"
|
|
1220
1220
|
},
|
|
1221
1221
|
token: {
|
|
1222
1222
|
type: String,
|
|
@@ -1260,7 +1260,11 @@ const z2 = /* @__PURE__ */ F2(tl, [["render", j2], ["__scopeId", "data-v-f3ee6b2
|
|
|
1260
1260
|
}
|
|
1261
1261
|
async function f() {
|
|
1262
1262
|
try {
|
|
1263
|
-
const I = i.isFemaleMode ? "https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments" : i.apiUrl || T5, k = await (await fetch(I
|
|
1263
|
+
const I = i.isFemaleMode ? "https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/v2/gs3/tournaments" : i.apiUrl || T5, k = await (await fetch(I, {
|
|
1264
|
+
headers: {
|
|
1265
|
+
Authorization: i.token
|
|
1266
|
+
}
|
|
1267
|
+
})).json();
|
|
1264
1268
|
return k ? k.reduce((O, L) => {
|
|
1265
1269
|
if (i.isFemaleMode && !L.tournament.is_female)
|
|
1266
1270
|
return O;
|
|
@@ -1615,7 +1619,7 @@ const z2 = /* @__PURE__ */ F2(tl, [["render", j2], ["__scopeId", "data-v-f3ee6b2
|
|
|
1615
1619
|
})
|
|
1616
1620
|
]));
|
|
1617
1621
|
}
|
|
1618
|
-
}, E5 = /* @__PURE__ */ Vt(_5, [["__scopeId", "data-v-
|
|
1622
|
+
}, E5 = /* @__PURE__ */ Vt(_5, [["__scopeId", "data-v-f8cde251"]]), F5 = {
|
|
1619
1623
|
key: 0,
|
|
1620
1624
|
class: "modal-overlay"
|
|
1621
1625
|
}, O5 = { class: "modal-content" }, P5 = {
|
|
@@ -2951,9 +2955,9 @@ const O1 = (e) => {
|
|
|
2951
2955
|
const ne = O && O.unsubscribe && (() => {
|
|
2952
2956
|
O.unsubscribe();
|
|
2953
2957
|
});
|
|
2954
|
-
let
|
|
2958
|
+
let D;
|
|
2955
2959
|
try {
|
|
2956
|
-
if (V && d && b !== "get" && b !== "head" && (
|
|
2960
|
+
if (V && d && b !== "get" && b !== "head" && (D = await f(F, S)) !== 0) {
|
|
2957
2961
|
let Q = new t(c, {
|
|
2958
2962
|
method: "POST",
|
|
2959
2963
|
body: S,
|
|
@@ -2961,7 +2965,7 @@ const O1 = (e) => {
|
|
|
2961
2965
|
}), me;
|
|
2962
2966
|
if (q.isFormData(S) && (me = Q.headers.get("content-type")) && F.setContentType(me), Q.body) {
|
|
2963
2967
|
const [ye, ge] = md(
|
|
2964
|
-
|
|
2968
|
+
D,
|
|
2965
2969
|
ss(hd(V))
|
|
2966
2970
|
);
|
|
2967
2971
|
S = yd(Q.body, gd, ye, ge);
|
|
@@ -4410,46 +4414,54 @@ const {
|
|
|
4410
4414
|
},
|
|
4411
4415
|
emits: ["change-filters-selected", "update:filters"],
|
|
4412
4416
|
setup(e, { emit: a }) {
|
|
4413
|
-
const t = e, i = w(!1), s = w([]), r = A(() => o.value.filter((
|
|
4417
|
+
const t = e, i = w(!1), s = w([]), r = A(() => o.value.filter((p) => p.isSelected).length), o = A(() => t.tournamentsUrl ? s.value : t.tournaments);
|
|
4418
|
+
async function l() {
|
|
4419
|
+
if (t.tournamentsUrl)
|
|
4420
|
+
try {
|
|
4421
|
+
const p = await (await fetch(t.tournamentsUrl, {
|
|
4422
|
+
headers: {
|
|
4423
|
+
Authorization: t.token
|
|
4424
|
+
}
|
|
4425
|
+
})).json();
|
|
4426
|
+
s.value = p.map((h) => ({
|
|
4427
|
+
...h.tournament,
|
|
4428
|
+
seasons: h.seasons,
|
|
4429
|
+
isSelected: !0
|
|
4430
|
+
}));
|
|
4431
|
+
} catch (p) {
|
|
4432
|
+
console.error("Error fetching tournaments:", p);
|
|
4433
|
+
}
|
|
4434
|
+
}
|
|
4414
4435
|
$(
|
|
4415
4436
|
() => t.tournamentsUrl,
|
|
4416
|
-
|
|
4417
|
-
|
|
4418
|
-
try {
|
|
4419
|
-
const p = await (await fetch(d, {
|
|
4420
|
-
headers: {
|
|
4421
|
-
Authorization: t.token
|
|
4422
|
-
}
|
|
4423
|
-
})).json();
|
|
4424
|
-
s.value = p.map((h) => ({
|
|
4425
|
-
...h.tournament,
|
|
4426
|
-
seasons: h.seasons,
|
|
4427
|
-
isSelected: !0
|
|
4428
|
-
}));
|
|
4429
|
-
} catch (p) {
|
|
4430
|
-
console.error("Error fetching tournaments:", p);
|
|
4431
|
-
}
|
|
4437
|
+
() => {
|
|
4438
|
+
l();
|
|
4432
4439
|
},
|
|
4433
4440
|
{ immediate: !0 }
|
|
4441
|
+
), $(
|
|
4442
|
+
() => t.token,
|
|
4443
|
+
() => {
|
|
4444
|
+
l();
|
|
4445
|
+
}
|
|
4434
4446
|
), $(
|
|
4435
4447
|
() => o.value,
|
|
4436
|
-
(
|
|
4437
|
-
const
|
|
4438
|
-
i.value =
|
|
4448
|
+
(p) => {
|
|
4449
|
+
const h = p.filter((g) => g.isSelected);
|
|
4450
|
+
i.value = h.length === p.length, a("change-filters-selected", h.length), a("update:filters", o.value);
|
|
4439
4451
|
},
|
|
4440
4452
|
{ immediate: !0, deep: !0 }
|
|
4441
4453
|
);
|
|
4442
|
-
function
|
|
4443
|
-
o.value.forEach((
|
|
4444
|
-
|
|
4454
|
+
function u(p) {
|
|
4455
|
+
o.value.forEach((h, g) => {
|
|
4456
|
+
h.isSelected = p || (g !== 0 ? p : !0);
|
|
4445
4457
|
});
|
|
4446
4458
|
}
|
|
4447
|
-
function
|
|
4448
|
-
t.isOneTournamentOnly && t.tournaments.forEach((
|
|
4449
|
-
|
|
4450
|
-
}),
|
|
4459
|
+
function d(p, h) {
|
|
4460
|
+
t.isOneTournamentOnly && t.tournaments.forEach((g) => {
|
|
4461
|
+
g.isSelected = !1;
|
|
4462
|
+
}), h.isSelected = p;
|
|
4451
4463
|
}
|
|
4452
|
-
return (
|
|
4464
|
+
return (p, h) => (m(), y("div", Rh, [
|
|
4453
4465
|
C(yi, { height: "200px" }, {
|
|
4454
4466
|
default: be(() => [
|
|
4455
4467
|
e.isOneTournamentOnly ? T("", !0) : (m(), y("div", jh, [
|
|
@@ -4458,20 +4470,20 @@ const {
|
|
|
4458
4470
|
label: "Todas las ligas",
|
|
4459
4471
|
fontFamily: e.fontFamily,
|
|
4460
4472
|
width: "100%",
|
|
4461
|
-
"onUpdate:modelValue":
|
|
4473
|
+
"onUpdate:modelValue": u
|
|
4462
4474
|
}, null, 8, ["model-value", "fontFamily"])
|
|
4463
4475
|
])),
|
|
4464
|
-
(m(!0), y(K, null, ce(o.value, (
|
|
4465
|
-
key:
|
|
4476
|
+
(m(!0), y(K, null, ce(o.value, (g) => (m(), y("div", {
|
|
4477
|
+
key: g.id || g._id,
|
|
4466
4478
|
class: "tournaments__tournament"
|
|
4467
4479
|
}, [
|
|
4468
4480
|
C(M(ze), {
|
|
4469
|
-
"model-value":
|
|
4470
|
-
label:
|
|
4481
|
+
"model-value": g.isSelected,
|
|
4482
|
+
label: g.name,
|
|
4471
4483
|
fontFamily: e.fontFamily,
|
|
4472
4484
|
width: "100%",
|
|
4473
|
-
"avoid-interaction": r.value === 1 &&
|
|
4474
|
-
"onUpdate:modelValue": (
|
|
4485
|
+
"avoid-interaction": r.value === 1 && g.isSelected,
|
|
4486
|
+
"onUpdate:modelValue": (f) => d(f, g)
|
|
4475
4487
|
}, null, 8, ["model-value", "label", "fontFamily", "avoid-interaction", "onUpdate:modelValue"])
|
|
4476
4488
|
]))), 128))
|
|
4477
4489
|
]),
|
|
@@ -4479,7 +4491,7 @@ const {
|
|
|
4479
4491
|
})
|
|
4480
4492
|
]));
|
|
4481
4493
|
}
|
|
4482
|
-
}, Dh = /* @__PURE__ */ Ne(zh, [["__scopeId", "data-v-
|
|
4494
|
+
}, Dh = /* @__PURE__ */ Ne(zh, [["__scopeId", "data-v-9bc0787d"]]), B = {
|
|
4483
4495
|
PLAYS: "plays",
|
|
4484
4496
|
PRODUCTIVITY: "productivity",
|
|
4485
4497
|
FIELD: "field",
|
|
@@ -9335,14 +9347,14 @@ const Ey = /* @__PURE__ */ new Set([1]), Fy = {
|
|
|
9335
9347
|
$(
|
|
9336
9348
|
c,
|
|
9337
9349
|
(k) => {
|
|
9338
|
-
const O = k.reduce((L, ne,
|
|
9350
|
+
const O = k.reduce((L, ne, D) => (D !== 0 && ne.isSelected && L++, L), 0);
|
|
9339
9351
|
O === c.value.length - 1 && (k[0].isSelected = !0), k[0] && k[0].isSelected ? h.value = "Todas las nacionalidades" : h.value = `${O} seleccionadas`, F();
|
|
9340
9352
|
},
|
|
9341
9353
|
{ immediate: !0, deep: !0 }
|
|
9342
9354
|
), $(
|
|
9343
9355
|
b,
|
|
9344
9356
|
(k) => {
|
|
9345
|
-
const O = k.reduce((L, ne,
|
|
9357
|
+
const O = k.reduce((L, ne, D) => (D !== 0 && ne.isSelected && L++, L), 0);
|
|
9346
9358
|
O === b.value.length - 1 && (k[0].isSelected = !0), k[0] && k[0].isSelected ? g.value = "Todas las posiciones" : g.value = `${O} seleccionadas`, F();
|
|
9347
9359
|
},
|
|
9348
9360
|
{ immediate: !0, deep: !0 }
|
|
@@ -9370,7 +9382,7 @@ const Ey = /* @__PURE__ */ new Set([1]), Fy = {
|
|
|
9370
9382
|
async function x(k) {
|
|
9371
9383
|
try {
|
|
9372
9384
|
if (k && k.id) {
|
|
9373
|
-
const O = /* @__PURE__ */ new Set(), L = await G(k.id), ne = /* @__PURE__ */ new Date(),
|
|
9385
|
+
const O = /* @__PURE__ */ new Set(), L = await G(k.id), ne = /* @__PURE__ */ new Date(), D = [], pe = /* @__PURE__ */ new Map(), ve = /* @__PURE__ */ new Map();
|
|
9374
9386
|
L.forEach((_) => {
|
|
9375
9387
|
const Y = new Date(_.dob), le = Ty(Y), Q = _y({
|
|
9376
9388
|
start: Y,
|
|
@@ -9384,8 +9396,8 @@ const Ey = /* @__PURE__ */ new Set([1]), Fy = {
|
|
|
9384
9396
|
id: _.position_id,
|
|
9385
9397
|
isSelected: !0,
|
|
9386
9398
|
name: sy[`${_.position_id}`]
|
|
9387
|
-
}), O.add(le),
|
|
9388
|
-
}), o.value.minAge = Math.min(...
|
|
9399
|
+
}), O.add(le), D.push(Q.years);
|
|
9400
|
+
}), o.value.minAge = Math.min(...D), o.value.maxAge = Math.max(...D), o.value.availableYears = [...O].sort((_, Y) => Y - _), f.value = o.value.availableYears[0], o.value.nationalities = [...pe.values()], o.value.positions = [...ve.values()], d.value.min = o.value.minAge, d.value.max = o.value.maxAge;
|
|
9389
9401
|
}
|
|
9390
9402
|
} catch (O) {
|
|
9391
9403
|
throw new Error(O);
|
|
@@ -9428,9 +9440,9 @@ const Ey = /* @__PURE__ */ new Set([1]), Fy = {
|
|
|
9428
9440
|
min: o.value.minAge,
|
|
9429
9441
|
max: o.value.maxAge
|
|
9430
9442
|
}) : O.year = f.value, o.value.isEligibilitySelected ? O.eligibility = [...o.value.eligibility] : O.nationalities = c.value.reduce(
|
|
9431
|
-
(L, ne,
|
|
9443
|
+
(L, ne, D) => (D !== 0 && L.push({ ...ne }), L),
|
|
9432
9444
|
[]
|
|
9433
|
-
), O.positions = b.value.reduce((L, ne,
|
|
9445
|
+
), O.positions = b.value.reduce((L, ne, D) => (D !== 0 && L.push({ ...ne }), L), []), t("update:filters", O);
|
|
9434
9446
|
}
|
|
9435
9447
|
function I(k, O) {
|
|
9436
9448
|
O.id === 0 ? b.value.forEach((L) => {
|
|
@@ -10159,11 +10171,11 @@ const w6 = { class: "dropdown" }, C6 = { class: "selected-item" }, k6 = {
|
|
|
10159
10171
|
},
|
|
10160
10172
|
setup(e) {
|
|
10161
10173
|
const a = e, t = di(
|
|
10162
|
-
() => import("./FilterSubcategories-
|
|
10174
|
+
() => import("./FilterSubcategories-113560ae-D1qJOMJA.js")
|
|
10163
10175
|
), i = di(
|
|
10164
|
-
() => import("./FilterConditions-
|
|
10176
|
+
() => import("./FilterConditions-a9fea334-DdAPVHSP.js")
|
|
10165
10177
|
), s = di(
|
|
10166
|
-
() => import("./FilterField-
|
|
10178
|
+
() => import("./FilterField-069a3208-CvSoQxCC.js")
|
|
10167
10179
|
), r = [
|
|
10168
10180
|
{
|
|
10169
10181
|
name: "Sub categorías",
|
|
@@ -10807,9 +10819,9 @@ const w6 = { class: "dropdown" }, C6 = { class: "selected-item" }, k6 = {
|
|
|
10807
10819
|
Y.reduce((ge, ue) => (ue.games.forEach((R) => {
|
|
10808
10820
|
if (R.game_status === 1 && R.has_video) {
|
|
10809
10821
|
(!h.value.maxGameId || R.game_id > h.value.maxGameId) && (h.value.maxGameId = R.game_id);
|
|
10810
|
-
let fe = R.matchday_abbreviation.replace("M", "J"),
|
|
10822
|
+
let fe = R.matchday_abbreviation.replace("M", "J"), N = R.matchday_abbreviation.replace("M", "Jornada ");
|
|
10811
10823
|
const oe = R.matchday_abbreviation.replace("M", "");
|
|
10812
|
-
ue.season_type === 0 ? g.value.tournament_type === 1 && (R.seasonId === 881 ? (fe = S6[oe] || fe,
|
|
10824
|
+
ue.season_type === 0 ? g.value.tournament_type === 1 && (R.seasonId === 881 ? (fe = S6[oe] || fe, N = x6[oe] || N) : (fe = eu[R.matchday_abbreviation] ? R.matchday_abbreviation : fe, N = eu[R.matchday_abbreviation] || N, fe === "FINAL" && (fe = "F"))) : ue.season_type === 1 ? (fe = b6[R.matchday_abbreviation], N = fe) : (fe = R.matchday_abbreviation.replace("PO", "R"), N = "Repechaje"), R.roundAbbreviation = fe, R.roundName = N, h.value.mapGames.set(R.game_id, {
|
|
10813
10825
|
id: R.game_id,
|
|
10814
10826
|
date: R.date,
|
|
10815
10827
|
dateTimeMillis: new Date(R.date_time_utc).valueOf(),
|
|
@@ -10907,16 +10919,16 @@ const w6 = { class: "dropdown" }, C6 = { class: "selected-item" }, k6 = {
|
|
|
10907
10919
|
const le = /* @__PURE__ */ new Map(), Q = "Resumen", me = "Todas sus jugadas", ye = c.value.player.reduce(
|
|
10908
10920
|
(ue, R) => {
|
|
10909
10921
|
const fe = P(R);
|
|
10910
|
-
return fe.forEach((
|
|
10911
|
-
le.set(
|
|
10922
|
+
return fe.forEach((N) => {
|
|
10923
|
+
le.set(N, R.name);
|
|
10912
10924
|
}), ue.push(...fe), ue;
|
|
10913
10925
|
},
|
|
10914
10926
|
[]
|
|
10915
10927
|
), ge = c.value.goalkeeper.reduce(
|
|
10916
10928
|
(ue, R) => {
|
|
10917
10929
|
const fe = P(R);
|
|
10918
|
-
return fe.forEach((
|
|
10919
|
-
le.set(
|
|
10930
|
+
return fe.forEach((N) => {
|
|
10931
|
+
le.set(N, R.name);
|
|
10920
10932
|
}), ue.push(...fe), ue;
|
|
10921
10933
|
},
|
|
10922
10934
|
[]
|
|
@@ -10975,14 +10987,14 @@ const w6 = { class: "dropdown" }, C6 = { class: "selected-item" }, k6 = {
|
|
|
10975
10987
|
}
|
|
10976
10988
|
};
|
|
10977
10989
|
if (Y > 0 && Y === 1 && (R.id = _.id_category), ge && Y !== 0) {
|
|
10978
|
-
const fe = _.group_id.charAt(_.group_id.length - 1),
|
|
10990
|
+
const fe = _.group_id.charAt(_.group_id.length - 1), N = ge.find(
|
|
10979
10991
|
(oe) => oe.groupId.endsWith(fe)
|
|
10980
10992
|
);
|
|
10981
|
-
|
|
10993
|
+
N && !s.includes(R.groupId) ? (R = N, N.ids.push(ue), N.fatherCategories.push(me), N.fatherCategories.forEach((oe) => {
|
|
10982
10994
|
oe.childCategories ? oe.childCategories.find(
|
|
10983
10995
|
(Te) => Te.groupId === R.groupId
|
|
10984
10996
|
) || oe.childCategories.push(R) : oe.childCategories = [R];
|
|
10985
|
-
}),
|
|
10997
|
+
}), N.idsByFatherCategory[_.category_father] ? N.idsByFatherCategory[_.category_father].push(ue) : N.idsByFatherCategory[_.category_father] = [ue]) : (R.fatherCategories.forEach((oe) => {
|
|
10986
10998
|
oe.childCategories ? oe.childCategories.find(
|
|
10987
10999
|
(Te) => Te.groupId === R.groupId
|
|
10988
11000
|
) || oe.childCategories.push(R) : oe.childCategories = [R];
|
|
@@ -11076,7 +11088,7 @@ const w6 = { class: "dropdown" }, C6 = { class: "selected-item" }, k6 = {
|
|
|
11076
11088
|
function ne(_) {
|
|
11077
11089
|
p.value = _;
|
|
11078
11090
|
}
|
|
11079
|
-
function
|
|
11091
|
+
function D(_) {
|
|
11080
11092
|
g.value = _, h.value = _.seasons[0];
|
|
11081
11093
|
}
|
|
11082
11094
|
function pe(_) {
|
|
@@ -11100,7 +11112,7 @@ const w6 = { class: "dropdown" }, C6 = { class: "selected-item" }, k6 = {
|
|
|
11100
11112
|
(m(), ke(or(p.value.componentName), {
|
|
11101
11113
|
tournaments: d.value,
|
|
11102
11114
|
"advanced-filter-categories": c.value,
|
|
11103
|
-
"onUpdate:tournament":
|
|
11115
|
+
"onUpdate:tournament": D,
|
|
11104
11116
|
"onUpdate:season": pe,
|
|
11105
11117
|
"onUpdate:team": ve
|
|
11106
11118
|
}, null, 40, ["tournaments", "advanced-filter-categories"]))
|
|
@@ -13219,23 +13231,23 @@ const w6 = { class: "dropdown" }, C6 = { class: "selected-item" }, k6 = {
|
|
|
13219
13231
|
"--text-color": i.textColor
|
|
13220
13232
|
})), c = A(() => {
|
|
13221
13233
|
const z = [];
|
|
13222
|
-
return Array.isArray(i.productivityCategories) ? i.productivityCategories.forEach((
|
|
13223
|
-
z.push(
|
|
13224
|
-
}) : i.productivityCategories && Object.values(i.productivityCategories).forEach((
|
|
13225
|
-
|
|
13234
|
+
return Array.isArray(i.productivityCategories) ? i.productivityCategories.forEach((H) => {
|
|
13235
|
+
z.push(H);
|
|
13236
|
+
}) : i.productivityCategories && Object.values(i.productivityCategories).forEach((H) => {
|
|
13237
|
+
H.categories && H.categories.forEach((Se) => {
|
|
13226
13238
|
z.push(Se);
|
|
13227
13239
|
});
|
|
13228
13240
|
}), z;
|
|
13229
13241
|
}), b = A(() => {
|
|
13230
13242
|
const z = [];
|
|
13231
|
-
return i.playsCategories && Object.values(i.playsCategories).forEach((
|
|
13232
|
-
|
|
13243
|
+
return i.playsCategories && Object.values(i.playsCategories).forEach((H) => {
|
|
13244
|
+
H.categories && H.categories.forEach((Se) => {
|
|
13233
13245
|
z.push(Se);
|
|
13234
13246
|
});
|
|
13235
13247
|
}), z;
|
|
13236
13248
|
}), S = A(() => {
|
|
13237
13249
|
const z = c.value.filter(
|
|
13238
|
-
(
|
|
13250
|
+
(H) => H.isSelected
|
|
13239
13251
|
);
|
|
13240
13252
|
return U(z), i.filterType === B.PRODUCTIVITY && t("change-categories-selected", z.length), z.length;
|
|
13241
13253
|
}), x = A(() => !i.isForTemplateForm && S.value >= i.productivityMaxCategories), X = A(() => !i.isForTemplateForm && S.value <= i.productivityMinCategories), G = A(() => i.isPlayingAsHidden ? i.gameSections : i.playingAs.concat(i.gameSections));
|
|
@@ -13249,8 +13261,8 @@ const w6 = { class: "dropdown" }, C6 = { class: "selected-item" }, k6 = {
|
|
|
13249
13261
|
() => G.value,
|
|
13250
13262
|
(z) => {
|
|
13251
13263
|
if (i.filterType === B.DETAILS) {
|
|
13252
|
-
const
|
|
13253
|
-
t("change-filters-selected",
|
|
13264
|
+
const H = z.filter((Se) => Se.isSelected);
|
|
13265
|
+
t("change-filters-selected", H.length);
|
|
13254
13266
|
}
|
|
13255
13267
|
},
|
|
13256
13268
|
{ immediate: !0, deep: !0 }
|
|
@@ -13258,8 +13270,8 @@ const w6 = { class: "dropdown" }, C6 = { class: "selected-item" }, k6 = {
|
|
|
13258
13270
|
() => i.playsGolstatsCategories,
|
|
13259
13271
|
(z) => {
|
|
13260
13272
|
if (i.filterType === B.PLAYS_TYPES || i.filterType === B.GOLSTATS) {
|
|
13261
|
-
const
|
|
13262
|
-
t("change-filters-selected",
|
|
13273
|
+
const H = z.filter((Se) => Se.isSelected);
|
|
13274
|
+
t("change-filters-selected", H.length);
|
|
13263
13275
|
}
|
|
13264
13276
|
},
|
|
13265
13277
|
{ immediate: !0 }
|
|
@@ -13283,14 +13295,14 @@ const w6 = { class: "dropdown" }, C6 = { class: "selected-item" }, k6 = {
|
|
|
13283
13295
|
), $(
|
|
13284
13296
|
() => i.resultsFilters,
|
|
13285
13297
|
(z) => {
|
|
13286
|
-
i.filterType === B.RESULTS && t("change-filters-selected", z.results.filter((
|
|
13298
|
+
i.filterType === B.RESULTS && t("change-filters-selected", z.results.filter((H) => H.isSelected).length);
|
|
13287
13299
|
},
|
|
13288
13300
|
{ immediate: !0, deep: !0 }
|
|
13289
13301
|
);
|
|
13290
13302
|
function U(z) {
|
|
13291
13303
|
setTimeout(() => {
|
|
13292
|
-
z.sort((
|
|
13293
|
-
|
|
13304
|
+
z.sort((H, Se) => H.priority - Se.priority), z.forEach((H, Se) => {
|
|
13305
|
+
H.priority = Se + 1;
|
|
13294
13306
|
});
|
|
13295
13307
|
}, 10);
|
|
13296
13308
|
}
|
|
@@ -13298,33 +13310,33 @@ const w6 = { class: "dropdown" }, C6 = { class: "selected-item" }, k6 = {
|
|
|
13298
13310
|
Z(z);
|
|
13299
13311
|
}
|
|
13300
13312
|
function Z(z = null) {
|
|
13301
|
-
i.filterType === B.PRODUCTIVITY ? c.value.forEach((
|
|
13302
|
-
|
|
13303
|
-
}) : i.filterType === B.PLAYS ? (b.value.forEach((
|
|
13304
|
-
|
|
13305
|
-
}), o.value = !0) : i.filterType === B.FIELD ? t("change-field-areas", [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]) : i.filterType === B.DETAILS ? (i.playingAs.forEach((
|
|
13306
|
-
|
|
13307
|
-
}), i.gameSections.forEach((
|
|
13308
|
-
|
|
13309
|
-
})) : i.filterType === B.TOURNAMENTS ? (i.tournaments.forEach((
|
|
13310
|
-
i.isOneTournamentOnly ?
|
|
13311
|
-
}), t("change-filters-selected", 0)) : i.filterType === B.PLAYS_TYPES ? i.playsGolstatsCategories.forEach((
|
|
13312
|
-
|
|
13313
|
-
}) : i.filterType === B.GOLSTATS ? i.playsGolstatsCategories.forEach((
|
|
13314
|
-
|
|
13313
|
+
i.filterType === B.PRODUCTIVITY ? c.value.forEach((H) => {
|
|
13314
|
+
H.isSelected = H.isDefault || !1;
|
|
13315
|
+
}) : i.filterType === B.PLAYS ? (b.value.forEach((H) => {
|
|
13316
|
+
H.isSelected = !0;
|
|
13317
|
+
}), o.value = !0) : i.filterType === B.FIELD ? t("change-field-areas", [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]) : i.filterType === B.DETAILS ? (i.playingAs.forEach((H) => {
|
|
13318
|
+
H.isSelected = !0;
|
|
13319
|
+
}), i.gameSections.forEach((H) => {
|
|
13320
|
+
H.isSelected = !0;
|
|
13321
|
+
})) : i.filterType === B.TOURNAMENTS ? (i.tournaments.forEach((H, Se) => {
|
|
13322
|
+
i.isOneTournamentOnly ? H.isSelected = Se === 0 : H.isSelected = !0;
|
|
13323
|
+
}), t("change-filters-selected", 0)) : i.filterType === B.PLAYS_TYPES ? i.playsGolstatsCategories.forEach((H) => {
|
|
13324
|
+
H.isSelected = !0;
|
|
13325
|
+
}) : i.filterType === B.GOLSTATS ? i.playsGolstatsCategories.forEach((H) => {
|
|
13326
|
+
H.isSelected = !1;
|
|
13315
13327
|
}) : i.filterType === B.UNIVERSE ? d.value && d.value.resetFilters() : i.filterType === B.PERSONAL_DATA ? (r.value && r.value.onClearFilters(z || Fa.All), t("change-personal-data-filters", {})) : i.filterType === B.DISTANCE ? t("update:filters", {
|
|
13316
13328
|
minValue: i.distanceFilters.minLimit,
|
|
13317
13329
|
maxValue: i.distanceFilters.maxLimit
|
|
13318
13330
|
}) : i.filterType === B.RESULTS ? t("update:filters", {
|
|
13319
|
-
results: i.resultsFilters.results.map((
|
|
13320
|
-
}) : i.filterType === B.RESULTS_BY_TIME ? f.value && f.value.removeFilters() : i.filterType === B.GAMES ? i.gamesFilters.forEach((
|
|
13321
|
-
|
|
13322
|
-
}) : i.filterType === B.TAKEN_CORNERS ? p.value.clearFilters() : i.filterType === B.HOW_WAS_CORNER ? (i.howWasCornerFilters.left.forEach((
|
|
13323
|
-
|
|
13324
|
-
}), i.howWasCornerFilters.right.forEach((
|
|
13325
|
-
|
|
13326
|
-
})) : i.filterType === B.ZONE ? h.value && h.value.clearFilters() : i.filterType === B.WHAT_HAPPENED ? g.value && g.value.onResetFilters() : i.filterType === B.NATIONALITIES ? i.nationalities.forEach((
|
|
13327
|
-
|
|
13331
|
+
results: i.resultsFilters.results.map((H) => (H.isSelected = !0, H))
|
|
13332
|
+
}) : i.filterType === B.RESULTS_BY_TIME ? f.value && f.value.removeFilters() : i.filterType === B.GAMES ? i.gamesFilters.forEach((H) => {
|
|
13333
|
+
H.isSelected = !0;
|
|
13334
|
+
}) : i.filterType === B.TAKEN_CORNERS ? p.value.clearFilters() : i.filterType === B.HOW_WAS_CORNER ? (i.howWasCornerFilters.left.forEach((H) => {
|
|
13335
|
+
H.isSelected = !0;
|
|
13336
|
+
}), i.howWasCornerFilters.right.forEach((H) => {
|
|
13337
|
+
H.isSelected = !0;
|
|
13338
|
+
})) : i.filterType === B.ZONE ? h.value && h.value.clearFilters() : i.filterType === B.WHAT_HAPPENED ? g.value && g.value.onResetFilters() : i.filterType === B.NATIONALITIES ? i.nationalities.forEach((H) => {
|
|
13339
|
+
H.isSelected = !0;
|
|
13328
13340
|
}) : i.filterType === B.TEAMS && s.value && s.value.clearSelectedTeams();
|
|
13329
13341
|
}
|
|
13330
13342
|
function F(z) {
|
|
@@ -13340,38 +13352,38 @@ const w6 = { class: "dropdown" }, C6 = { class: "selected-item" }, k6 = {
|
|
|
13340
13352
|
t("change-filters-selected", z);
|
|
13341
13353
|
}
|
|
13342
13354
|
function O(z) {
|
|
13343
|
-
i.filterType === B.PRODUCTIVITY ? c.value.forEach((
|
|
13344
|
-
|
|
13345
|
-
}) : (o.value = z, i.playsCategories.offensive.categories.forEach((
|
|
13346
|
-
|
|
13347
|
-
}), i.playsCategories.defensive.categories.forEach((
|
|
13348
|
-
|
|
13349
|
-
}), i.playsCategories.possession.categories.forEach((
|
|
13350
|
-
|
|
13351
|
-
}), i.playsCategories.offenses.categories.forEach((
|
|
13352
|
-
|
|
13355
|
+
i.filterType === B.PRODUCTIVITY ? c.value.forEach((H) => {
|
|
13356
|
+
H.isSelected = z;
|
|
13357
|
+
}) : (o.value = z, i.playsCategories.offensive.categories.forEach((H) => {
|
|
13358
|
+
H.isSelected = z;
|
|
13359
|
+
}), i.playsCategories.defensive.categories.forEach((H) => {
|
|
13360
|
+
H.isSelected = z;
|
|
13361
|
+
}), i.playsCategories.possession.categories.forEach((H) => {
|
|
13362
|
+
H.isSelected = z;
|
|
13363
|
+
}), i.playsCategories.offenses.categories.forEach((H) => {
|
|
13364
|
+
H.isSelected = z;
|
|
13353
13365
|
}));
|
|
13354
13366
|
}
|
|
13355
13367
|
function L() {
|
|
13356
13368
|
let z = 0;
|
|
13357
|
-
const
|
|
13369
|
+
const H = {
|
|
13358
13370
|
playsCategories: b.value.filter((Se) => Se.isSelected)
|
|
13359
13371
|
};
|
|
13360
|
-
o.value =
|
|
13372
|
+
o.value = H.playsCategories.length === b.value.length, z = H.playsCategories.length, Object.values(u.value).forEach((Se) => {
|
|
13361
13373
|
Se && z++;
|
|
13362
|
-
}), t("change-filters-selected", z), t("update:filters",
|
|
13374
|
+
}), t("change-filters-selected", z), t("update:filters", H);
|
|
13363
13375
|
}
|
|
13364
13376
|
function ne() {
|
|
13365
13377
|
let z = 0;
|
|
13366
|
-
const
|
|
13378
|
+
const H = {
|
|
13367
13379
|
productivityFilters: c.value.filter((Se) => Se.isSelected),
|
|
13368
13380
|
offensesConditions: u.value
|
|
13369
13381
|
};
|
|
13370
|
-
z =
|
|
13382
|
+
z = H.productivityFilters.length, Object.values(u.value).forEach((Se) => {
|
|
13371
13383
|
Se && z++;
|
|
13372
|
-
}), t("change-filters-selected", z), t("update:filters",
|
|
13384
|
+
}), t("change-filters-selected", z), t("update:filters", H);
|
|
13373
13385
|
}
|
|
13374
|
-
function
|
|
13386
|
+
function D(z) {
|
|
13375
13387
|
t("click-parameters", z);
|
|
13376
13388
|
}
|
|
13377
13389
|
function pe() {
|
|
@@ -13414,7 +13426,7 @@ const w6 = { class: "dropdown" }, C6 = { class: "selected-item" }, k6 = {
|
|
|
13414
13426
|
function fe(z) {
|
|
13415
13427
|
(i.filterType === B.PLAYS_TYPES || i.filterType === B.GOLSTATS) && t("update:filters", z);
|
|
13416
13428
|
}
|
|
13417
|
-
function
|
|
13429
|
+
function N(z) {
|
|
13418
13430
|
i.filterType === B.PRODUCTIVITY && (u.value = z, ne());
|
|
13419
13431
|
}
|
|
13420
13432
|
function oe(z) {
|
|
@@ -13424,7 +13436,7 @@ const w6 = { class: "dropdown" }, C6 = { class: "selected-item" }, k6 = {
|
|
|
13424
13436
|
i.filterType === B.RESULTS && t("update:filters", z);
|
|
13425
13437
|
}
|
|
13426
13438
|
function ut(z) {
|
|
13427
|
-
i.filterType === B.GAMES && (t("update:filters", z), t("change-filters-selected", z.filter((
|
|
13439
|
+
i.filterType === B.GAMES && (t("update:filters", z), t("change-filters-selected", z.filter((H) => H.isSelected).length));
|
|
13428
13440
|
}
|
|
13429
13441
|
function xt(z) {
|
|
13430
13442
|
l.value.statisticType = z;
|
|
@@ -13440,7 +13452,7 @@ const w6 = { class: "dropdown" }, C6 = { class: "selected-item" }, k6 = {
|
|
|
13440
13452
|
return a({
|
|
13441
13453
|
clearFilters: V,
|
|
13442
13454
|
clearSelectedTeams: j
|
|
13443
|
-
}), (z,
|
|
13455
|
+
}), (z, H) => (m(), y("div", {
|
|
13444
13456
|
class: "templates",
|
|
13445
13457
|
style: W(v.value)
|
|
13446
13458
|
}, [
|
|
@@ -13484,8 +13496,8 @@ const w6 = { class: "dropdown" }, C6 = { class: "selected-item" }, k6 = {
|
|
|
13484
13496
|
"is-for-template-form": e.isForTemplateForm,
|
|
13485
13497
|
"are-productivity-buttons-visible": e.areProductivityButtonsVisible,
|
|
13486
13498
|
"are-offenses-conditions-visible": e.areOffensesConditionsVisible,
|
|
13487
|
-
"onUpdate:offensesConditions":
|
|
13488
|
-
onClickParameters:
|
|
13499
|
+
"onUpdate:offensesConditions": N,
|
|
13500
|
+
onClickParameters: D
|
|
13489
13501
|
}, null, 8, ["productivity-categories", "number-of-categories-selected", "are-max-categories-reached", "are-min-categories-reached", "is-expansion-mode", "is-from-templates", "is-for-template-form", "are-productivity-buttons-visible", "are-offenses-conditions-visible"])
|
|
13490
13502
|
])) : T("", !0),
|
|
13491
13503
|
e.filterType === M(B).FIELD ? (m(), y("div", GS, [
|
|
@@ -15358,7 +15370,7 @@ const w6 = { class: "dropdown" }, C6 = { class: "selected-item" }, k6 = {
|
|
|
15358
15370
|
setup(e, { expose: a, emit: t }) {
|
|
15359
15371
|
const i = e;
|
|
15360
15372
|
je((j) => ({
|
|
15361
|
-
"
|
|
15373
|
+
"6a3beb06": e.width
|
|
15362
15374
|
}));
|
|
15363
15375
|
const s = {
|
|
15364
15376
|
width: "604px",
|
|
@@ -15524,32 +15536,32 @@ const w6 = { class: "dropdown" }, C6 = { class: "selected-item" }, k6 = {
|
|
|
15524
15536
|
}, P = {
|
|
15525
15537
|
filterType: B.POSSESSION_VISUALISATIONS,
|
|
15526
15538
|
isFooterVisible: !0
|
|
15527
|
-
}, k = w(!1), O = w(!1), L = w(0), ne = w(0),
|
|
15539
|
+
}, k = w(!1), O = w(!1), L = w(0), ne = w(0), D = w({}), pe = w(null), ve = w(null), _ = w("Universo"), Y = w(""), le = w(""), Q = A(() => i.isForTemplateForm ? "0" : "unset"), me = A(() => i.isFromTemplates ? B.RESULTS : i.filterType), ye = w(null);
|
|
15528
15540
|
$(
|
|
15529
15541
|
() => i.filterType,
|
|
15530
15542
|
(j) => {
|
|
15531
15543
|
if (j === B.PRODUCTIVITY)
|
|
15532
|
-
|
|
15544
|
+
D.value = {
|
|
15533
15545
|
...s,
|
|
15534
15546
|
...i.templateProps,
|
|
15535
15547
|
productivityCategories: i.filters || yC
|
|
15536
15548
|
};
|
|
15537
15549
|
else if (j === B.PLAYS)
|
|
15538
|
-
|
|
15550
|
+
D.value = {
|
|
15539
15551
|
...r,
|
|
15540
15552
|
...i.templateProps,
|
|
15541
15553
|
fontFamily: i.buttonFilterProps ? i.buttonFilterProps.textFontFamily : "sans-serif",
|
|
15542
15554
|
playsCategories: i.filters || gC
|
|
15543
15555
|
};
|
|
15544
15556
|
else if (j === B.FIELD)
|
|
15545
|
-
|
|
15557
|
+
D.value = {
|
|
15546
15558
|
...o,
|
|
15547
15559
|
...i.templateProps,
|
|
15548
15560
|
fieldComponentProps: i.fieldComponentProps,
|
|
15549
15561
|
fieldAreas: i.filters || []
|
|
15550
15562
|
};
|
|
15551
15563
|
else if (j === B.DETAILS)
|
|
15552
|
-
|
|
15564
|
+
D.value = {
|
|
15553
15565
|
...l,
|
|
15554
15566
|
...i.templateProps,
|
|
15555
15567
|
isPlayingAsHidden: i.filters ? i.filters.isPlayingAsHidden : $t.isPlayingAsHidden,
|
|
@@ -15560,77 +15572,77 @@ const w6 = { class: "dropdown" }, C6 = { class: "selected-item" }, k6 = {
|
|
|
15560
15572
|
};
|
|
15561
15573
|
else if (j === B.TOURNAMENTS) {
|
|
15562
15574
|
const z = i.filters || bC;
|
|
15563
|
-
i.isOneTournamentOnly && z.forEach((
|
|
15564
|
-
|
|
15565
|
-
}),
|
|
15575
|
+
i.isOneTournamentOnly && z.forEach((H) => {
|
|
15576
|
+
H.isSelected = H.id === i.defaultTournamentId;
|
|
15577
|
+
}), D.value = {
|
|
15566
15578
|
...u,
|
|
15567
15579
|
...i.templateProps,
|
|
15568
15580
|
token: i.token,
|
|
15569
15581
|
tournaments: z
|
|
15570
15582
|
};
|
|
15571
15583
|
} else
|
|
15572
|
-
j === B.TEAMS ?
|
|
15584
|
+
j === B.TEAMS ? D.value = {
|
|
15573
15585
|
...d,
|
|
15574
15586
|
...i.templateProps,
|
|
15575
15587
|
seasonsIds: i.filters || []
|
|
15576
|
-
} : j === B.PERSONAL_DATA ?
|
|
15588
|
+
} : j === B.PERSONAL_DATA ? D.value = {
|
|
15577
15589
|
...f,
|
|
15578
15590
|
...i.templateProps,
|
|
15579
15591
|
token: i.token,
|
|
15580
15592
|
awaitForFilters: i.awaitForFilters,
|
|
15581
15593
|
personalDataFilters: i.filters
|
|
15582
|
-
} : j === B.PLAYS_TYPES ?
|
|
15594
|
+
} : j === B.PLAYS_TYPES ? D.value = {
|
|
15583
15595
|
...v,
|
|
15584
15596
|
...i.templateProps,
|
|
15585
15597
|
playsGolstatsCategories: i.filters || xC
|
|
15586
|
-
} : j === B.GOLSTATS ?
|
|
15598
|
+
} : j === B.GOLSTATS ? D.value = {
|
|
15587
15599
|
...c,
|
|
15588
15600
|
...i.templateProps,
|
|
15589
15601
|
playsGolstatsCategories: i.filters || SC
|
|
15590
|
-
} : j === B.UNIVERSE ?
|
|
15602
|
+
} : j === B.UNIVERSE ? D.value = {
|
|
15591
15603
|
...b,
|
|
15592
15604
|
...i.templateProps,
|
|
15593
15605
|
universeFilters: i.filters || ff
|
|
15594
|
-
} : j === B.DISTANCE ?
|
|
15606
|
+
} : j === B.DISTANCE ? D.value = {
|
|
15595
15607
|
...S,
|
|
15596
15608
|
...i.templateProps,
|
|
15597
15609
|
distanceFilters: i.filters || wC
|
|
15598
|
-
} : j === B.RESULTS ?
|
|
15610
|
+
} : j === B.RESULTS ? D.value = {
|
|
15599
15611
|
...x,
|
|
15600
15612
|
...i.templateProps,
|
|
15601
15613
|
resultsFilters: i.filters || iu
|
|
15602
|
-
} : j === B.RESULTS_BY_TIME ?
|
|
15614
|
+
} : j === B.RESULTS_BY_TIME ? D.value = {
|
|
15603
15615
|
...X,
|
|
15604
15616
|
...i.templateProps,
|
|
15605
15617
|
resultsByTimeFilters: i.filters || vn
|
|
15606
|
-
} : j === B.GAMES ?
|
|
15618
|
+
} : j === B.GAMES ? D.value = {
|
|
15607
15619
|
...U,
|
|
15608
15620
|
...i.templateProps,
|
|
15609
15621
|
gamesFilters: i.filters || []
|
|
15610
|
-
} : j === B.VIDEOS ?
|
|
15622
|
+
} : j === B.VIDEOS ? D.value = {
|
|
15611
15623
|
...G,
|
|
15612
15624
|
...i.templateProps,
|
|
15613
15625
|
token: i.token
|
|
15614
|
-
} : j === B.TAKEN_CORNERS ?
|
|
15626
|
+
} : j === B.TAKEN_CORNERS ? D.value = {
|
|
15615
15627
|
...V,
|
|
15616
15628
|
...i.templateProps,
|
|
15617
15629
|
takenCornersFilters: i.filters || []
|
|
15618
|
-
} : j === B.HOW_WAS_CORNER ?
|
|
15630
|
+
} : j === B.HOW_WAS_CORNER ? D.value = {
|
|
15619
15631
|
...Z,
|
|
15620
15632
|
...i.templateProps,
|
|
15621
15633
|
howWasCornerFilters: i.filters || mn
|
|
15622
|
-
} : j === B.ZONE ?
|
|
15634
|
+
} : j === B.ZONE ? D.value = {
|
|
15623
15635
|
...F,
|
|
15624
15636
|
...i.templateProps,
|
|
15625
15637
|
zoneFilters: i.filters || [...qi]
|
|
15626
|
-
} : j === B.WHAT_HAPPENED ?
|
|
15638
|
+
} : j === B.WHAT_HAPPENED ? D.value = {
|
|
15627
15639
|
...I,
|
|
15628
15640
|
...i.templateProps,
|
|
15629
15641
|
whatHappenedFilters: i.filters || [...hn]
|
|
15630
|
-
} : j === B.POSSESSION_VISUALISATIONS ?
|
|
15642
|
+
} : j === B.POSSESSION_VISUALISATIONS ? D.value = {
|
|
15631
15643
|
...P,
|
|
15632
15644
|
...i.templateProps
|
|
15633
|
-
} : j === B.POSITIONS ?
|
|
15645
|
+
} : j === B.POSITIONS ? D.value = {
|
|
15634
15646
|
...p,
|
|
15635
15647
|
...i.templateProps,
|
|
15636
15648
|
positions: i.filters || [
|
|
@@ -15644,11 +15656,11 @@ const w6 = { class: "dropdown" }, C6 = { class: "selected-item" }, k6 = {
|
|
|
15644
15656
|
{ isSelected: !0, id: 8, name: "Volante ofensivo" },
|
|
15645
15657
|
{ isSelected: !0, id: 9, name: "Delantero" }
|
|
15646
15658
|
]
|
|
15647
|
-
} : j === B.YEARS ?
|
|
15659
|
+
} : j === B.YEARS ? D.value = {
|
|
15648
15660
|
...h,
|
|
15649
15661
|
...i.templateProps,
|
|
15650
|
-
years: i.filters || Array.from({ length: 30 }, (z,
|
|
15651
|
-
} : j === B.NATIONALITIES && (
|
|
15662
|
+
years: i.filters || Array.from({ length: 30 }, (z, H) => 1981 + H).sort((z, H) => H - z)
|
|
15663
|
+
} : j === B.NATIONALITIES && (D.value = {
|
|
15652
15664
|
...g,
|
|
15653
15665
|
...i.templateProps,
|
|
15654
15666
|
nationalities: i.filters || [
|
|
@@ -15668,33 +15680,38 @@ const w6 = { class: "dropdown" }, C6 = { class: "selected-item" }, k6 = {
|
|
|
15668
15680
|
{ isSelected: !0, id: 166, name: "Peruana" }
|
|
15669
15681
|
]
|
|
15670
15682
|
});
|
|
15671
|
-
|
|
15683
|
+
D.value.isExpansionMode = i.isExpansionPanel, i.isExpansionPanel && (D.value.width = "100%", D.value.maxWidth = "100%"), ge();
|
|
15672
15684
|
},
|
|
15673
15685
|
{ immediate: !0 }
|
|
15686
|
+
), $(
|
|
15687
|
+
() => i.token,
|
|
15688
|
+
(j) => {
|
|
15689
|
+
D.value && "token" in D.value && (D.value.token = j);
|
|
15690
|
+
}
|
|
15674
15691
|
), $(
|
|
15675
15692
|
() => i.filters,
|
|
15676
15693
|
() => {
|
|
15677
15694
|
if (i.filterType === B.PRODUCTIVITY)
|
|
15678
|
-
|
|
15695
|
+
D.value = {
|
|
15679
15696
|
...s,
|
|
15680
15697
|
...i.templateProps,
|
|
15681
15698
|
productivityCategories: i.filters
|
|
15682
15699
|
};
|
|
15683
15700
|
else if (i.filterType === B.PLAYS)
|
|
15684
|
-
|
|
15701
|
+
D.value = {
|
|
15685
15702
|
...r,
|
|
15686
15703
|
...i.templateProps,
|
|
15687
15704
|
playsCategories: i.filters
|
|
15688
15705
|
};
|
|
15689
15706
|
else if (i.filterType === B.FIELD)
|
|
15690
|
-
|
|
15707
|
+
D.value = {
|
|
15691
15708
|
...o,
|
|
15692
15709
|
...i.templateProps,
|
|
15693
15710
|
fieldComponentProps: i.fieldComponentProps,
|
|
15694
15711
|
fieldAreas: i.filters
|
|
15695
15712
|
};
|
|
15696
15713
|
else if (i.filterType === B.DETAILS)
|
|
15697
|
-
|
|
15714
|
+
D.value = {
|
|
15698
15715
|
...l,
|
|
15699
15716
|
...i.templateProps,
|
|
15700
15717
|
isPlayingAsHidden: i.filters ? i.filters.isPlayingAsHidden : $t.isPlayingAsHidden,
|
|
@@ -15707,75 +15724,75 @@ const w6 = { class: "dropdown" }, C6 = { class: "selected-item" }, k6 = {
|
|
|
15707
15724
|
const j = i.filters;
|
|
15708
15725
|
i.isOneTournamentOnly && j.forEach((z) => {
|
|
15709
15726
|
z.isSelected = z.id === i.defaultTournamentId;
|
|
15710
|
-
}),
|
|
15727
|
+
}), D.value = {
|
|
15711
15728
|
...u,
|
|
15712
15729
|
...i.templateProps,
|
|
15713
15730
|
token: i.token,
|
|
15714
15731
|
tournaments: j
|
|
15715
15732
|
};
|
|
15716
15733
|
} else
|
|
15717
|
-
i.filterType === B.TEAMS ?
|
|
15734
|
+
i.filterType === B.TEAMS ? D.value = {
|
|
15718
15735
|
...d,
|
|
15719
15736
|
...i.templateProps,
|
|
15720
15737
|
seasonsIds: i.filters || []
|
|
15721
|
-
} : i.filterType === B.PERSONAL_DATA ?
|
|
15738
|
+
} : i.filterType === B.PERSONAL_DATA ? D.value = {
|
|
15722
15739
|
...f,
|
|
15723
15740
|
...i.templateProps,
|
|
15724
15741
|
token: i.token,
|
|
15725
15742
|
awaitForFilters: i.awaitForFilters,
|
|
15726
15743
|
personalDataFilters: i.filters
|
|
15727
|
-
} : i.filterType === B.PLAYS_TYPES ?
|
|
15744
|
+
} : i.filterType === B.PLAYS_TYPES ? D.value = {
|
|
15728
15745
|
...v,
|
|
15729
15746
|
...i.templateProps,
|
|
15730
15747
|
playsGolstatsCategories: i.filters
|
|
15731
|
-
} : i.filterType === B.GOLSTATS ?
|
|
15748
|
+
} : i.filterType === B.GOLSTATS ? D.value = {
|
|
15732
15749
|
...c,
|
|
15733
15750
|
...i.templateProps,
|
|
15734
15751
|
playsGolstatsCategories: i.filters
|
|
15735
|
-
} : i.filterType === B.UNIVERSE ?
|
|
15752
|
+
} : i.filterType === B.UNIVERSE ? D.value = {
|
|
15736
15753
|
...b,
|
|
15737
15754
|
...i.templateProps,
|
|
15738
15755
|
universeFilters: i.filters
|
|
15739
|
-
} : i.filterType === B.DISTANCE ?
|
|
15756
|
+
} : i.filterType === B.DISTANCE ? D.value = {
|
|
15740
15757
|
...S,
|
|
15741
15758
|
...i.templateProps,
|
|
15742
15759
|
distanceFilters: i.filters
|
|
15743
|
-
} : i.filterType === B.RESULTS ?
|
|
15760
|
+
} : i.filterType === B.RESULTS ? D.value = {
|
|
15744
15761
|
...x,
|
|
15745
15762
|
...i.templateProps,
|
|
15746
15763
|
resultsFilters: i.filters || iu
|
|
15747
|
-
} : i.filterType === B.RESULTS_BY_TIME ?
|
|
15764
|
+
} : i.filterType === B.RESULTS_BY_TIME ? D.value = {
|
|
15748
15765
|
...X,
|
|
15749
15766
|
...i.templateProps,
|
|
15750
15767
|
resultsByTimeFilters: i.filters || vn
|
|
15751
|
-
} : i.filterType === B.GAMES ?
|
|
15768
|
+
} : i.filterType === B.GAMES ? D.value = {
|
|
15752
15769
|
...U,
|
|
15753
15770
|
...i.templateProps,
|
|
15754
15771
|
gamesFilters: i.filters
|
|
15755
|
-
} : i.filterType === B.VIDEOS ?
|
|
15772
|
+
} : i.filterType === B.VIDEOS ? D.value = {
|
|
15756
15773
|
...G,
|
|
15757
15774
|
...i.templateProps,
|
|
15758
15775
|
token: i.token
|
|
15759
|
-
} : i.filterType === B.TAKEN_CORNERS ?
|
|
15776
|
+
} : i.filterType === B.TAKEN_CORNERS ? D.value = {
|
|
15760
15777
|
...V,
|
|
15761
15778
|
...i.templateProps,
|
|
15762
15779
|
takenCornersFilters: i.filters || []
|
|
15763
|
-
} : i.filterType === B.HOW_WAS_CORNER ?
|
|
15780
|
+
} : i.filterType === B.HOW_WAS_CORNER ? D.value = {
|
|
15764
15781
|
...Z,
|
|
15765
15782
|
...i.templateProps,
|
|
15766
15783
|
howWasCornerFilters: i.filters || mn
|
|
15767
|
-
} : i.filterType === B.ZONE ?
|
|
15784
|
+
} : i.filterType === B.ZONE ? D.value = {
|
|
15768
15785
|
...F,
|
|
15769
15786
|
...i.templateProps,
|
|
15770
15787
|
zoneFilters: i.filters || [...qi]
|
|
15771
|
-
} : i.filterType === B.WHAT_HAPPENED ?
|
|
15788
|
+
} : i.filterType === B.WHAT_HAPPENED ? D.value = {
|
|
15772
15789
|
...I,
|
|
15773
15790
|
...i.templateProps,
|
|
15774
15791
|
whatHappenedFilters: i.filters || [...hn]
|
|
15775
|
-
} : i.filterType === B.POSSESSION_VISUALISATIONS ?
|
|
15792
|
+
} : i.filterType === B.POSSESSION_VISUALISATIONS ? D.value = {
|
|
15776
15793
|
...P,
|
|
15777
15794
|
...i.templateProps
|
|
15778
|
-
} : i.filterType === B.POSITIONS ?
|
|
15795
|
+
} : i.filterType === B.POSITIONS ? D.value = {
|
|
15779
15796
|
...p,
|
|
15780
15797
|
...i.templateProps,
|
|
15781
15798
|
positions: i.filters || [
|
|
@@ -15789,11 +15806,11 @@ const w6 = { class: "dropdown" }, C6 = { class: "selected-item" }, k6 = {
|
|
|
15789
15806
|
{ isSelected: !0, id: 8, name: "Volante ofensivo" },
|
|
15790
15807
|
{ isSelected: !0, id: 9, name: "Delantero" }
|
|
15791
15808
|
]
|
|
15792
|
-
} : i.filterType === B.YEARS ?
|
|
15809
|
+
} : i.filterType === B.YEARS ? D.value = {
|
|
15793
15810
|
...h,
|
|
15794
15811
|
...i.templateProps,
|
|
15795
15812
|
years: i.filters || Array.from({ length: 30 }, (j, z) => 1981 + z).sort((j, z) => z - j)
|
|
15796
|
-
} : i.filterType === B.NATIONALITIES && (
|
|
15813
|
+
} : i.filterType === B.NATIONALITIES && (D.value = {
|
|
15797
15814
|
...g,
|
|
15798
15815
|
...i.templateProps,
|
|
15799
15816
|
nationalities: i.filters || [
|
|
@@ -15813,7 +15830,7 @@ const w6 = { class: "dropdown" }, C6 = { class: "selected-item" }, k6 = {
|
|
|
15813
15830
|
{ isSelected: !0, id: 166, name: "Peruana" }
|
|
15814
15831
|
]
|
|
15815
15832
|
});
|
|
15816
|
-
|
|
15833
|
+
D.value.isExpansionMode = i.isExpansionPanel, i.isExpansionPanel && (D.value.width = "100%", D.value.maxWidth = "100%");
|
|
15817
15834
|
}
|
|
15818
15835
|
), $(k, (j) => {
|
|
15819
15836
|
j || t("close", ye.value);
|
|
@@ -15867,10 +15884,10 @@ const w6 = { class: "dropdown" }, C6 = { class: "selected-item" }, k6 = {
|
|
|
15867
15884
|
if (i.filterType === B.WHAT_HAPPENED)
|
|
15868
15885
|
return "¿Qué sucedió?";
|
|
15869
15886
|
if (i.filterType === B.POSITIONS) {
|
|
15870
|
-
const j = ye.value ? ye.value.find((
|
|
15887
|
+
const j = ye.value ? ye.value.find((H) => H.id === 0) : null;
|
|
15871
15888
|
if (j && j.isSelected)
|
|
15872
15889
|
return j.name;
|
|
15873
|
-
const z = ye.value ? ye.value.filter((
|
|
15890
|
+
const z = ye.value ? ye.value.filter((H) => H.isSelected && H.id !== 0) : [];
|
|
15874
15891
|
return z.length === 1 ? z[0].name : `${z.length} nacionalidades`;
|
|
15875
15892
|
} else {
|
|
15876
15893
|
if (i.filterType === B.YEARS)
|
|
@@ -15881,15 +15898,15 @@ const w6 = { class: "dropdown" }, C6 = { class: "selected-item" }, k6 = {
|
|
|
15881
15898
|
}
|
|
15882
15899
|
}
|
|
15883
15900
|
}
|
|
15884
|
-
function
|
|
15901
|
+
function N(j) {
|
|
15885
15902
|
t("click-parameters", j);
|
|
15886
15903
|
}
|
|
15887
15904
|
function oe(j) {
|
|
15888
|
-
|
|
15905
|
+
D.value.fieldAreas = j, L.value = j.length, ut(j);
|
|
15889
15906
|
}
|
|
15890
15907
|
function Te(j) {
|
|
15891
15908
|
let z = 0;
|
|
15892
|
-
j.value && j.value.statistics && (j.value.minutesPlayed && z++, j.value.percentMinutesPlayed && z++, j.value.lastMonths && z++, j.value.statistics.totals && z++, j.value.statistics.averagePerGame && z++, j.value.statistics.averagePerMinute && z++), i.showUniverseTime && (_.value = `Durante los últimos ${j.value.lastMonths} meses`),
|
|
15909
|
+
j.value && j.value.statistics && (j.value.minutesPlayed && z++, j.value.percentMinutesPlayed && z++, j.value.lastMonths && z++, j.value.statistics.totals && z++, j.value.statistics.averagePerGame && z++, j.value.statistics.averagePerMinute && z++), i.showUniverseTime && (_.value = `Durante los últimos ${j.value.lastMonths} meses`), D.value.universe = j.value, L.value = z, ut(j.value);
|
|
15893
15910
|
}
|
|
15894
15911
|
function ut(j) {
|
|
15895
15912
|
ye.value = j, ge(), t("update:filters", j);
|
|
@@ -15910,7 +15927,7 @@ const w6 = { class: "dropdown" }, C6 = { class: "selected-item" }, k6 = {
|
|
|
15910
15927
|
e.isExpansionPanel ? (m(), y("div", kC, [
|
|
15911
15928
|
C(M(vC), Re(e.expansionPanelProps, {
|
|
15912
15929
|
modelValue: O.value,
|
|
15913
|
-
"onUpdate:modelValue": z[0] || (z[0] = (
|
|
15930
|
+
"onUpdate:modelValue": z[0] || (z[0] = (H) => O.value = H),
|
|
15914
15931
|
text: le.value,
|
|
15915
15932
|
"text-color": "rgba(255,255,255,.7)",
|
|
15916
15933
|
icon: "/" + i.filterType + "-icon.png"
|
|
@@ -15920,7 +15937,7 @@ const w6 = { class: "dropdown" }, C6 = { class: "selected-item" }, k6 = {
|
|
|
15920
15937
|
C(au, Re({
|
|
15921
15938
|
ref_key: "filterTemplateExpansionPanel",
|
|
15922
15939
|
ref: ve
|
|
15923
|
-
},
|
|
15940
|
+
}, D.value, {
|
|
15924
15941
|
season: e.season,
|
|
15925
15942
|
"is-female": e.isFemale,
|
|
15926
15943
|
"is-expansion-mode": !0,
|
|
@@ -15950,7 +15967,7 @@ const w6 = { class: "dropdown" }, C6 = { class: "selected-item" }, k6 = {
|
|
|
15950
15967
|
onApply: R,
|
|
15951
15968
|
"onUpdate:filters": ut,
|
|
15952
15969
|
onTotalFilters: xt,
|
|
15953
|
-
onClickParameters:
|
|
15970
|
+
onClickParameters: N
|
|
15954
15971
|
}), null, 16, ["season", "is-female", "is-seleccion", "is-one-tournament-only", "is-from-templates", "is-for-template-form", "default-tournament-id", "productivity-max-categories", "productivity-min-categories", "universe-default-month-index", "are-productivity-buttons-visible", "productivity-text", "are-offenses-conditions-visible", "is-eligibility-visible", "tournaments-url", "dropdown-props", "filter-type", "excluded-teams-ids", "is-header-visible", "is-first-team-selected", "is-cancel-button-visible"])
|
|
15955
15972
|
])
|
|
15956
15973
|
]),
|
|
@@ -15959,7 +15976,7 @@ const w6 = { class: "dropdown" }, C6 = { class: "selected-item" }, k6 = {
|
|
|
15959
15976
|
])) : (m(), y("div", _C, [
|
|
15960
15977
|
C(M(vw), {
|
|
15961
15978
|
modelValue: k.value,
|
|
15962
|
-
"onUpdate:modelValue": z[1] || (z[1] = (
|
|
15979
|
+
"onUpdate:modelValue": z[1] || (z[1] = (H) => k.value = H),
|
|
15963
15980
|
width: e.width,
|
|
15964
15981
|
"left-menu": Q.value,
|
|
15965
15982
|
"menu-margin-top": 18
|
|
@@ -15978,7 +15995,7 @@ const w6 = { class: "dropdown" }, C6 = { class: "selected-item" }, k6 = {
|
|
|
15978
15995
|
C(au, Re({
|
|
15979
15996
|
ref_key: "filterTemplateMenu",
|
|
15980
15997
|
ref: pe
|
|
15981
|
-
},
|
|
15998
|
+
}, D.value, {
|
|
15982
15999
|
season: e.season,
|
|
15983
16000
|
"is-female": e.isFemale,
|
|
15984
16001
|
"is-scouting": e.isScouting,
|
|
@@ -16008,7 +16025,7 @@ const w6 = { class: "dropdown" }, C6 = { class: "selected-item" }, k6 = {
|
|
|
16008
16025
|
"onUpdate:filters": ut,
|
|
16009
16026
|
onTotalFilters: xt,
|
|
16010
16027
|
onApply: R,
|
|
16011
|
-
onClickParameters:
|
|
16028
|
+
onClickParameters: N
|
|
16012
16029
|
}), null, 16, ["season", "is-female", "is-scouting", "is-seleccion", "is-one-tournament-only", "default-tournament-id", "is-from-templates", "is-for-template-form", "productivity-max-categories", "productivity-min-categories", "universe-default-month-index", "are-productivity-buttons-visible", "productivity-text", "are-offenses-conditions-visible", "is-eligibility-visible", "tournaments-url", "dropdown-props", "filter-type", "excluded-teams-ids", "is-header-visible", "is-first-team-selected", "is-cancel-button-visible"])
|
|
16013
16030
|
]),
|
|
16014
16031
|
_: 1
|
|
@@ -16016,7 +16033,7 @@ const w6 = { class: "dropdown" }, C6 = { class: "selected-item" }, k6 = {
|
|
|
16016
16033
|
]))
|
|
16017
16034
|
]));
|
|
16018
16035
|
}
|
|
16019
|
-
}, Hi = /* @__PURE__ */ Ne(EC, [["__scopeId", "data-v-
|
|
16036
|
+
}, Hi = /* @__PURE__ */ Ne(EC, [["__scopeId", "data-v-b9b9d2f4"]]), ru = {
|
|
16020
16037
|
offensive: {
|
|
16021
16038
|
title: "Ofensivo",
|
|
16022
16039
|
categories: [
|
|
@@ -20604,14 +20621,14 @@ const {
|
|
|
20604
20621
|
variables: o.value
|
|
20605
20622
|
};
|
|
20606
20623
|
console.log("Lo que se guarda es:");
|
|
20607
|
-
const
|
|
20624
|
+
const D = await L.post(
|
|
20608
20625
|
`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${i.userId}/in-followed`,
|
|
20609
20626
|
ne
|
|
20610
20627
|
);
|
|
20611
|
-
|
|
20628
|
+
D.data && (t("createList", {
|
|
20612
20629
|
nombre: s.value,
|
|
20613
20630
|
variables: o.value,
|
|
20614
|
-
id:
|
|
20631
|
+
id: D.data.data.id
|
|
20615
20632
|
}), t("listCreated"), s.value = "", o.value = [], r.value = "", l.value = !1, t("close"));
|
|
20616
20633
|
}
|
|
20617
20634
|
} catch (L) {
|
|
@@ -27056,14 +27073,14 @@ const tI = /* @__PURE__ */ new Set([1]), aI = {
|
|
|
27056
27073
|
$(
|
|
27057
27074
|
c,
|
|
27058
27075
|
(k) => {
|
|
27059
|
-
const O = k.reduce((L, ne,
|
|
27076
|
+
const O = k.reduce((L, ne, D) => (D !== 0 && ne.isSelected && L++, L), 0);
|
|
27060
27077
|
O === c.value.length - 1 && (k[0].isSelected = !0), k[0] && k[0].isSelected ? h.value = "Todas las nacionalidades" : h.value = `${O} seleccionadas`, F();
|
|
27061
27078
|
},
|
|
27062
27079
|
{ immediate: !0, deep: !0 }
|
|
27063
27080
|
), $(
|
|
27064
27081
|
b,
|
|
27065
27082
|
(k) => {
|
|
27066
|
-
const O = k.reduce((L, ne,
|
|
27083
|
+
const O = k.reduce((L, ne, D) => (D !== 0 && ne.isSelected && L++, L), 0);
|
|
27067
27084
|
O === b.value.length - 1 && (k[0].isSelected = !0), k[0] && k[0].isSelected ? g.value = "Todas las posiciones" : g.value = `${O} seleccionadas`, F();
|
|
27068
27085
|
},
|
|
27069
27086
|
{ immediate: !0, deep: !0 }
|
|
@@ -27091,7 +27108,7 @@ const tI = /* @__PURE__ */ new Set([1]), aI = {
|
|
|
27091
27108
|
async function x(k) {
|
|
27092
27109
|
try {
|
|
27093
27110
|
if (k && k.id) {
|
|
27094
|
-
const O = /* @__PURE__ */ new Set(), L = await G(k.id), ne = /* @__PURE__ */ new Date(),
|
|
27111
|
+
const O = /* @__PURE__ */ new Set(), L = await G(k.id), ne = /* @__PURE__ */ new Date(), D = [], pe = /* @__PURE__ */ new Map(), ve = /* @__PURE__ */ new Map();
|
|
27095
27112
|
L.forEach((_) => {
|
|
27096
27113
|
const Y = new Date(_.dob), le = $B(Y), Q = eI({
|
|
27097
27114
|
start: Y,
|
|
@@ -27105,8 +27122,8 @@ const tI = /* @__PURE__ */ new Set([1]), aI = {
|
|
|
27105
27122
|
id: _.position_id,
|
|
27106
27123
|
isSelected: !0,
|
|
27107
27124
|
name: AB[`${_.position_id}`]
|
|
27108
|
-
}), O.add(le),
|
|
27109
|
-
}), o.value.minAge = Math.min(...
|
|
27125
|
+
}), O.add(le), D.push(Q.years);
|
|
27126
|
+
}), o.value.minAge = Math.min(...D), o.value.maxAge = Math.max(...D), o.value.availableYears = [...O].sort((_, Y) => Y - _), f.value = o.value.availableYears[0], o.value.nationalities = [...pe.values()], o.value.positions = [...ve.values()], d.value.min = o.value.minAge, d.value.max = o.value.maxAge;
|
|
27110
27127
|
}
|
|
27111
27128
|
} catch (O) {
|
|
27112
27129
|
throw new Error(O);
|
|
@@ -27149,9 +27166,9 @@ const tI = /* @__PURE__ */ new Set([1]), aI = {
|
|
|
27149
27166
|
min: o.value.minAge,
|
|
27150
27167
|
max: o.value.maxAge
|
|
27151
27168
|
}) : O.year = f.value, o.value.isEligibilitySelected ? O.eligibility = [...o.value.eligibility] : O.nationalities = c.value.reduce(
|
|
27152
|
-
(L, ne,
|
|
27169
|
+
(L, ne, D) => (D !== 0 && L.push({ ...ne }), L),
|
|
27153
27170
|
[]
|
|
27154
|
-
), O.positions = b.value.reduce((L, ne,
|
|
27171
|
+
), O.positions = b.value.reduce((L, ne, D) => (D !== 0 && L.push({ ...ne }), L), []), t("update:filters", O);
|
|
27155
27172
|
}
|
|
27156
27173
|
function I(k, O) {
|
|
27157
27174
|
O.id === 0 ? b.value.forEach((L) => {
|
|
@@ -27880,11 +27897,11 @@ const qI = { class: "dropdown" }, QI = { class: "selected-item" }, KI = {
|
|
|
27880
27897
|
},
|
|
27881
27898
|
setup(e) {
|
|
27882
27899
|
const a = e, t = di(
|
|
27883
|
-
() => import("./FilterSubcategories-1f65c851-C6ySBQJ6-
|
|
27900
|
+
() => import("./FilterSubcategories-1f65c851-C6ySBQJ6-Big9Ajba.js")
|
|
27884
27901
|
), i = di(
|
|
27885
|
-
() => import("./FilterConditions-cd420512-Cmbk-WAZ-
|
|
27902
|
+
() => import("./FilterConditions-cd420512-Cmbk-WAZ-DceCafl2.js")
|
|
27886
27903
|
), s = di(
|
|
27887
|
-
() => import("./FilterField-a29b1541-DctB4Acx-
|
|
27904
|
+
() => import("./FilterField-a29b1541-DctB4Acx-CAENsfGY.js")
|
|
27888
27905
|
), r = [
|
|
27889
27906
|
{
|
|
27890
27907
|
name: "Sub categorías",
|
|
@@ -28528,9 +28545,9 @@ const qI = { class: "dropdown" }, QI = { class: "selected-item" }, KI = {
|
|
|
28528
28545
|
Y.reduce((ge, ue) => (ue.games.forEach((R) => {
|
|
28529
28546
|
if (R.game_status === 1 && R.has_video) {
|
|
28530
28547
|
(!h.value.maxGameId || R.game_id > h.value.maxGameId) && (h.value.maxGameId = R.game_id);
|
|
28531
|
-
let fe = R.matchday_abbreviation.replace("M", "J"),
|
|
28548
|
+
let fe = R.matchday_abbreviation.replace("M", "J"), N = R.matchday_abbreviation.replace("M", "Jornada ");
|
|
28532
28549
|
const oe = R.matchday_abbreviation.replace("M", "");
|
|
28533
|
-
ue.season_type === 0 ? g.value.tournament_type === 1 && (R.seasonId === 881 ? (fe = YI[oe] || fe,
|
|
28550
|
+
ue.season_type === 0 ? g.value.tournament_type === 1 && (R.seasonId === 881 ? (fe = YI[oe] || fe, N = UI[oe] || N) : (fe = fc[R.matchday_abbreviation] ? R.matchday_abbreviation : fe, N = fc[R.matchday_abbreviation] || N, fe === "FINAL" && (fe = "F"))) : ue.season_type === 1 ? (fe = WI[R.matchday_abbreviation], N = fe) : (fe = R.matchday_abbreviation.replace("PO", "R"), N = "Repechaje"), R.roundAbbreviation = fe, R.roundName = N, h.value.mapGames.set(R.game_id, {
|
|
28534
28551
|
id: R.game_id,
|
|
28535
28552
|
date: R.date,
|
|
28536
28553
|
dateTimeMillis: new Date(R.date_time_utc).valueOf(),
|
|
@@ -28628,16 +28645,16 @@ const qI = { class: "dropdown" }, QI = { class: "selected-item" }, KI = {
|
|
|
28628
28645
|
const le = /* @__PURE__ */ new Map(), Q = "Resumen", me = "Todas sus jugadas", ye = c.value.player.reduce(
|
|
28629
28646
|
(ue, R) => {
|
|
28630
28647
|
const fe = P(R);
|
|
28631
|
-
return fe.forEach((
|
|
28632
|
-
le.set(
|
|
28648
|
+
return fe.forEach((N) => {
|
|
28649
|
+
le.set(N, R.name);
|
|
28633
28650
|
}), ue.push(...fe), ue;
|
|
28634
28651
|
},
|
|
28635
28652
|
[]
|
|
28636
28653
|
), ge = c.value.goalkeeper.reduce(
|
|
28637
28654
|
(ue, R) => {
|
|
28638
28655
|
const fe = P(R);
|
|
28639
|
-
return fe.forEach((
|
|
28640
|
-
le.set(
|
|
28656
|
+
return fe.forEach((N) => {
|
|
28657
|
+
le.set(N, R.name);
|
|
28641
28658
|
}), ue.push(...fe), ue;
|
|
28642
28659
|
},
|
|
28643
28660
|
[]
|
|
@@ -28696,14 +28713,14 @@ const qI = { class: "dropdown" }, QI = { class: "selected-item" }, KI = {
|
|
|
28696
28713
|
}
|
|
28697
28714
|
};
|
|
28698
28715
|
if (Y > 0 && Y === 1 && (R.id = _.id_category), ge && Y !== 0) {
|
|
28699
|
-
const fe = _.group_id.charAt(_.group_id.length - 1),
|
|
28716
|
+
const fe = _.group_id.charAt(_.group_id.length - 1), N = ge.find(
|
|
28700
28717
|
(oe) => oe.groupId.endsWith(fe)
|
|
28701
28718
|
);
|
|
28702
|
-
|
|
28719
|
+
N && !s.includes(R.groupId) ? (R = N, N.ids.push(ue), N.fatherCategories.push(me), N.fatherCategories.forEach((oe) => {
|
|
28703
28720
|
oe.childCategories ? oe.childCategories.find(
|
|
28704
28721
|
(Te) => Te.groupId === R.groupId
|
|
28705
28722
|
) || oe.childCategories.push(R) : oe.childCategories = [R];
|
|
28706
|
-
}),
|
|
28723
|
+
}), N.idsByFatherCategory[_.category_father] ? N.idsByFatherCategory[_.category_father].push(ue) : N.idsByFatherCategory[_.category_father] = [ue]) : (R.fatherCategories.forEach((oe) => {
|
|
28707
28724
|
oe.childCategories ? oe.childCategories.find(
|
|
28708
28725
|
(Te) => Te.groupId === R.groupId
|
|
28709
28726
|
) || oe.childCategories.push(R) : oe.childCategories = [R];
|
|
@@ -28797,7 +28814,7 @@ const qI = { class: "dropdown" }, QI = { class: "selected-item" }, KI = {
|
|
|
28797
28814
|
function ne(_) {
|
|
28798
28815
|
p.value = _;
|
|
28799
28816
|
}
|
|
28800
|
-
function
|
|
28817
|
+
function D(_) {
|
|
28801
28818
|
g.value = _, h.value = _.seasons[0];
|
|
28802
28819
|
}
|
|
28803
28820
|
function pe(_) {
|
|
@@ -28821,7 +28838,7 @@ const qI = { class: "dropdown" }, QI = { class: "selected-item" }, KI = {
|
|
|
28821
28838
|
(m(), ke(or(p.value.componentName), {
|
|
28822
28839
|
tournaments: d.value,
|
|
28823
28840
|
"advanced-filter-categories": c.value,
|
|
28824
|
-
"onUpdate:tournament":
|
|
28841
|
+
"onUpdate:tournament": D,
|
|
28825
28842
|
"onUpdate:season": pe,
|
|
28826
28843
|
"onUpdate:team": ve
|
|
28827
28844
|
}, null, 40, ["tournaments", "advanced-filter-categories"]))
|
|
@@ -30360,55 +30377,55 @@ const qI = { class: "dropdown" }, QI = { class: "selected-item" }, KI = {
|
|
|
30360
30377
|
"--footer-border-width": i.footerBorderWidth,
|
|
30361
30378
|
"--text-color": i.textColor
|
|
30362
30379
|
})), v = A(() => {
|
|
30363
|
-
const
|
|
30380
|
+
const N = [];
|
|
30364
30381
|
return Array.isArray(i.productivityCategories) ? i.productivityCategories.forEach((oe) => {
|
|
30365
|
-
|
|
30382
|
+
N.push(oe);
|
|
30366
30383
|
}) : i.productivityCategories && Object.values(i.productivityCategories).forEach((oe) => {
|
|
30367
30384
|
oe.categories && oe.categories.forEach((Te) => {
|
|
30368
|
-
|
|
30385
|
+
N.push(Te);
|
|
30369
30386
|
});
|
|
30370
|
-
}),
|
|
30387
|
+
}), N;
|
|
30371
30388
|
}), c = A(() => {
|
|
30372
|
-
const
|
|
30389
|
+
const N = [];
|
|
30373
30390
|
return i.playsCategories && Object.values(i.playsCategories).forEach((oe) => {
|
|
30374
30391
|
oe.categories && oe.categories.forEach((Te) => {
|
|
30375
|
-
|
|
30392
|
+
N.push(Te);
|
|
30376
30393
|
});
|
|
30377
|
-
}),
|
|
30394
|
+
}), N;
|
|
30378
30395
|
}), b = A(() => {
|
|
30379
|
-
const
|
|
30396
|
+
const N = v.value.filter(
|
|
30380
30397
|
(oe) => oe.isSelected
|
|
30381
30398
|
);
|
|
30382
|
-
return G(
|
|
30399
|
+
return G(N), i.filterType === J.PRODUCTIVITY && t("change-categories-selected", N.length), N.length;
|
|
30383
30400
|
}), S = A(() => !i.isForTemplateForm && b.value >= i.productivityMaxCategories), x = A(() => !i.isForTemplateForm && b.value <= i.productivityMinCategories), X = A(() => i.isPlayingAsHidden ? i.gameSections : i.playingAs.concat(i.gameSections));
|
|
30384
30401
|
$(
|
|
30385
30402
|
o,
|
|
30386
|
-
(
|
|
30387
|
-
i.filterType === J.DETAILS && t("update:filters",
|
|
30403
|
+
(N) => {
|
|
30404
|
+
i.filterType === J.DETAILS && t("update:filters", N);
|
|
30388
30405
|
},
|
|
30389
30406
|
{ immediate: !0, deep: !0 }
|
|
30390
30407
|
), $(
|
|
30391
30408
|
() => X.value,
|
|
30392
|
-
(
|
|
30409
|
+
(N) => {
|
|
30393
30410
|
if (i.filterType === J.DETAILS) {
|
|
30394
|
-
const oe =
|
|
30411
|
+
const oe = N.filter((Te) => Te.isSelected);
|
|
30395
30412
|
t("change-filters-selected", oe.length);
|
|
30396
30413
|
}
|
|
30397
30414
|
},
|
|
30398
30415
|
{ immediate: !0, deep: !0 }
|
|
30399
30416
|
), $(
|
|
30400
30417
|
() => i.playsGolstatsCategories,
|
|
30401
|
-
(
|
|
30418
|
+
(N) => {
|
|
30402
30419
|
if (i.filterType === J.PLAYS_TYPES || i.filterType === J.GOLSTATS) {
|
|
30403
|
-
const oe =
|
|
30420
|
+
const oe = N.filter((Te) => Te.isSelected);
|
|
30404
30421
|
t("change-filters-selected", oe.length);
|
|
30405
30422
|
}
|
|
30406
30423
|
},
|
|
30407
30424
|
{ immediate: !0 }
|
|
30408
30425
|
), $(
|
|
30409
30426
|
() => i.fieldAreas,
|
|
30410
|
-
(
|
|
30411
|
-
i.filterType === J.FIELD && t("change-filters-selected",
|
|
30427
|
+
(N) => {
|
|
30428
|
+
i.filterType === J.FIELD && t("change-filters-selected", N.length);
|
|
30412
30429
|
}
|
|
30413
30430
|
), $(
|
|
30414
30431
|
c,
|
|
@@ -30424,22 +30441,22 @@ const qI = { class: "dropdown" }, QI = { class: "selected-item" }, KI = {
|
|
|
30424
30441
|
{ immediate: !0, deep: !0 }
|
|
30425
30442
|
), $(
|
|
30426
30443
|
() => i.resultsFilters,
|
|
30427
|
-
(
|
|
30428
|
-
i.filterType === J.RESULTS && t("change-filters-selected",
|
|
30444
|
+
(N) => {
|
|
30445
|
+
i.filterType === J.RESULTS && t("change-filters-selected", N.results.filter((oe) => oe.isSelected).length);
|
|
30429
30446
|
},
|
|
30430
30447
|
{ immediate: !0, deep: !0 }
|
|
30431
30448
|
);
|
|
30432
|
-
function G(
|
|
30449
|
+
function G(N) {
|
|
30433
30450
|
setTimeout(() => {
|
|
30434
|
-
|
|
30451
|
+
N.sort((oe, Te) => oe.priority - Te.priority), N.forEach((oe, Te) => {
|
|
30435
30452
|
oe.priority = Te + 1;
|
|
30436
30453
|
});
|
|
30437
30454
|
}, 10);
|
|
30438
30455
|
}
|
|
30439
|
-
function U(
|
|
30440
|
-
V(
|
|
30456
|
+
function U(N = null) {
|
|
30457
|
+
V(N);
|
|
30441
30458
|
}
|
|
30442
|
-
function V(
|
|
30459
|
+
function V(N = null) {
|
|
30443
30460
|
i.filterType === J.PRODUCTIVITY ? v.value.forEach((oe) => {
|
|
30444
30461
|
oe.isSelected = oe.isDefault || !1;
|
|
30445
30462
|
}) : i.filterType === J.PLAYS ? (c.value.forEach((oe) => {
|
|
@@ -30454,7 +30471,7 @@ const qI = { class: "dropdown" }, QI = { class: "selected-item" }, KI = {
|
|
|
30454
30471
|
oe.isSelected = !0;
|
|
30455
30472
|
}) : i.filterType === J.GOLSTATS ? i.playsGolstatsCategories.forEach((oe) => {
|
|
30456
30473
|
oe.isSelected = !1;
|
|
30457
|
-
}) : i.filterType === J.UNIVERSE ? u.value && u.value.resetFilters() : i.filterType === J.PERSONAL_DATA ? (s.value && s.value.onClearFilters(
|
|
30474
|
+
}) : i.filterType === J.UNIVERSE ? u.value && u.value.resetFilters() : i.filterType === J.PERSONAL_DATA ? (s.value && s.value.onClearFilters(N || Oa.All), t("change-personal-data-filters", {})) : i.filterType === J.DISTANCE ? t("update:filters", {
|
|
30458
30475
|
minValue: i.distanceFilters.minLimit,
|
|
30459
30476
|
maxValue: i.distanceFilters.maxLimit
|
|
30460
30477
|
}) : i.filterType === J.RESULTS ? t("update:filters", {
|
|
@@ -30467,97 +30484,97 @@ const qI = { class: "dropdown" }, QI = { class: "selected-item" }, KI = {
|
|
|
30467
30484
|
oe.isSelected = !0;
|
|
30468
30485
|
})) : i.filterType === J.ZONE ? p.value && p.value.clearFilters() : i.filterType === J.WHAT_HAPPENED && h.value && h.value.onResetFilters();
|
|
30469
30486
|
}
|
|
30470
|
-
function Z(
|
|
30471
|
-
i.filterType === J.TOURNAMENTS && t("change-filters-selected",
|
|
30487
|
+
function Z(N) {
|
|
30488
|
+
i.filterType === J.TOURNAMENTS && t("change-filters-selected", N);
|
|
30472
30489
|
}
|
|
30473
|
-
function F(
|
|
30474
|
-
i.filterType === J.UNIVERSE && t("change-universe-filters",
|
|
30490
|
+
function F(N) {
|
|
30491
|
+
i.filterType === J.UNIVERSE && t("change-universe-filters", N);
|
|
30475
30492
|
}
|
|
30476
|
-
function I(
|
|
30477
|
-
i.filterType === J.FIELD && t("change-field-areas",
|
|
30493
|
+
function I(N) {
|
|
30494
|
+
i.filterType === J.FIELD && t("change-field-areas", N);
|
|
30478
30495
|
}
|
|
30479
|
-
function P(
|
|
30480
|
-
i.filterType === J.GOLSTATS && t("change-filters-selected",
|
|
30496
|
+
function P(N) {
|
|
30497
|
+
i.filterType === J.GOLSTATS && t("change-filters-selected", N);
|
|
30481
30498
|
}
|
|
30482
|
-
function k(
|
|
30483
|
-
t("change-filters-selected",
|
|
30499
|
+
function k(N) {
|
|
30500
|
+
t("change-filters-selected", N);
|
|
30484
30501
|
}
|
|
30485
|
-
function O(
|
|
30502
|
+
function O(N) {
|
|
30486
30503
|
i.filterType === J.PRODUCTIVITY ? v.value.forEach((oe) => {
|
|
30487
|
-
oe.isSelected =
|
|
30488
|
-
}) : (r.value =
|
|
30489
|
-
oe.isSelected =
|
|
30504
|
+
oe.isSelected = N;
|
|
30505
|
+
}) : (r.value = N, i.playsCategories.offensive.categories.forEach((oe) => {
|
|
30506
|
+
oe.isSelected = N;
|
|
30490
30507
|
}), i.playsCategories.defensive.categories.forEach((oe) => {
|
|
30491
|
-
oe.isSelected =
|
|
30508
|
+
oe.isSelected = N;
|
|
30492
30509
|
}), i.playsCategories.possession.categories.forEach((oe) => {
|
|
30493
|
-
oe.isSelected =
|
|
30510
|
+
oe.isSelected = N;
|
|
30494
30511
|
}), i.playsCategories.offenses.categories.forEach((oe) => {
|
|
30495
|
-
oe.isSelected =
|
|
30512
|
+
oe.isSelected = N;
|
|
30496
30513
|
}));
|
|
30497
30514
|
}
|
|
30498
30515
|
function L() {
|
|
30499
|
-
let
|
|
30516
|
+
let N = 0;
|
|
30500
30517
|
const oe = {
|
|
30501
30518
|
playsCategories: c.value.filter((Te) => Te.isSelected)
|
|
30502
30519
|
};
|
|
30503
|
-
r.value = oe.playsCategories.length === c.value.length,
|
|
30504
|
-
Te &&
|
|
30505
|
-
}), t("change-filters-selected",
|
|
30520
|
+
r.value = oe.playsCategories.length === c.value.length, N = oe.playsCategories.length, Object.values(l.value).forEach((Te) => {
|
|
30521
|
+
Te && N++;
|
|
30522
|
+
}), t("change-filters-selected", N), t("update:filters", oe);
|
|
30506
30523
|
}
|
|
30507
30524
|
function ne() {
|
|
30508
|
-
let
|
|
30525
|
+
let N = 0;
|
|
30509
30526
|
const oe = {
|
|
30510
30527
|
productivityFilters: v.value.filter((Te) => Te.isSelected),
|
|
30511
30528
|
offensesConditions: l.value
|
|
30512
30529
|
};
|
|
30513
|
-
|
|
30514
|
-
Te &&
|
|
30515
|
-
}), t("change-filters-selected",
|
|
30530
|
+
N = oe.productivityFilters.length, Object.values(l.value).forEach((Te) => {
|
|
30531
|
+
Te && N++;
|
|
30532
|
+
}), t("change-filters-selected", N), t("update:filters", oe);
|
|
30516
30533
|
}
|
|
30517
|
-
function
|
|
30518
|
-
t("click-parameters",
|
|
30534
|
+
function D(N) {
|
|
30535
|
+
t("click-parameters", N);
|
|
30519
30536
|
}
|
|
30520
30537
|
function pe() {
|
|
30521
30538
|
t("apply");
|
|
30522
30539
|
}
|
|
30523
30540
|
function ve() {
|
|
30524
|
-
(i.filterType === J.PLAYS_TYPES || i.filterType === J.GOLSTATS) && i.playsGolstatsCategories && i.playsGolstatsCategories.forEach((
|
|
30525
|
-
|
|
30526
|
-
}), i.filterType === J.PRODUCTIVITY && v.value.forEach((
|
|
30527
|
-
|
|
30541
|
+
(i.filterType === J.PLAYS_TYPES || i.filterType === J.GOLSTATS) && i.playsGolstatsCategories && i.playsGolstatsCategories.forEach((N) => {
|
|
30542
|
+
N.isSelected = !1;
|
|
30543
|
+
}), i.filterType === J.PRODUCTIVITY && v.value.forEach((N) => {
|
|
30544
|
+
N.isSelected = !1;
|
|
30528
30545
|
}), t("apply");
|
|
30529
30546
|
}
|
|
30530
|
-
function _(
|
|
30531
|
-
t("update:filters",
|
|
30547
|
+
function _(N) {
|
|
30548
|
+
t("update:filters", N);
|
|
30532
30549
|
}
|
|
30533
|
-
function Y(
|
|
30534
|
-
i.filterType === J.PERSONAL_DATA && t("update:filters",
|
|
30550
|
+
function Y(N) {
|
|
30551
|
+
i.filterType === J.PERSONAL_DATA && t("update:filters", N);
|
|
30535
30552
|
}
|
|
30536
|
-
function le(
|
|
30537
|
-
i.filterType === J.TOURNAMENTS && t("update:filters",
|
|
30553
|
+
function le(N) {
|
|
30554
|
+
i.filterType === J.TOURNAMENTS && t("update:filters", N);
|
|
30538
30555
|
}
|
|
30539
|
-
function Q(
|
|
30540
|
-
(i.filterType === J.PLAYS_TYPES || i.filterType === J.GOLSTATS) && t("update:filters",
|
|
30556
|
+
function Q(N) {
|
|
30557
|
+
(i.filterType === J.PLAYS_TYPES || i.filterType === J.GOLSTATS) && t("update:filters", N);
|
|
30541
30558
|
}
|
|
30542
|
-
function me(
|
|
30543
|
-
i.filterType === J.PRODUCTIVITY && (l.value =
|
|
30559
|
+
function me(N) {
|
|
30560
|
+
i.filterType === J.PRODUCTIVITY && (l.value = N, ne());
|
|
30544
30561
|
}
|
|
30545
|
-
function ye(
|
|
30546
|
-
i.filterType === J.DISTANCE && t("update:filters",
|
|
30562
|
+
function ye(N) {
|
|
30563
|
+
i.filterType === J.DISTANCE && t("update:filters", N);
|
|
30547
30564
|
}
|
|
30548
|
-
function ge(
|
|
30549
|
-
i.filterType === J.RESULTS && t("update:filters",
|
|
30565
|
+
function ge(N) {
|
|
30566
|
+
i.filterType === J.RESULTS && t("update:filters", N);
|
|
30550
30567
|
}
|
|
30551
|
-
function ue(
|
|
30552
|
-
i.filterType === J.GAMES && (t("update:filters",
|
|
30568
|
+
function ue(N) {
|
|
30569
|
+
i.filterType === J.GAMES && (t("update:filters", N), t("change-filters-selected", N.filter((oe) => oe.isSelected).length));
|
|
30553
30570
|
}
|
|
30554
|
-
function R(
|
|
30555
|
-
o.value.statisticType =
|
|
30571
|
+
function R(N) {
|
|
30572
|
+
o.value.statisticType = N;
|
|
30556
30573
|
}
|
|
30557
30574
|
const fe = A(() => i.filterType === J.PLAYS ? c.value.length : i.filterType === J.PRODUCTIVITY ? v.value.length : i.filterType === J.FIELD ? 16 : i.filterType === J.UNIVERSE ? 6 : i.filterType === J.DETAILS ? 8 : i.filterType === J.RESULTS || i.filterType === J.RESULTS_BY_TIME ? 3 : i.filterType === J.GAMES ? i.gamesFilters.length : 0);
|
|
30558
30575
|
return t("total-filters", fe), a({
|
|
30559
30576
|
clearFilters: U
|
|
30560
|
-
}), (
|
|
30577
|
+
}), (N, oe) => (m(), y("div", {
|
|
30561
30578
|
class: "templates",
|
|
30562
30579
|
style: W(f.value)
|
|
30563
30580
|
}, [
|
|
@@ -30602,7 +30619,7 @@ const qI = { class: "dropdown" }, QI = { class: "selected-item" }, KI = {
|
|
|
30602
30619
|
"are-productivity-buttons-visible": e.areProductivityButtonsVisible,
|
|
30603
30620
|
"are-offenses-conditions-visible": e.areOffensesConditionsVisible,
|
|
30604
30621
|
"onUpdate:offensesConditions": me,
|
|
30605
|
-
onClickParameters:
|
|
30622
|
+
onClickParameters: D
|
|
30606
30623
|
}, null, 8, ["productivity-categories", "number-of-categories-selected", "are-max-categories-reached", "are-min-categories-reached", "is-expansion-mode", "is-from-templates", "is-for-template-form", "are-productivity-buttons-visible", "are-offenses-conditions-visible"])
|
|
30607
30624
|
])) : T("", !0),
|
|
30608
30625
|
e.filterType === M(J).FIELD ? (m(), y("div", JN, [
|
|
@@ -32375,7 +32392,7 @@ const qI = { class: "dropdown" }, QI = { class: "selected-item" }, KI = {
|
|
|
32375
32392
|
emits: ["update:filters", "apply", "close", "click-parameters"],
|
|
32376
32393
|
setup(e, { expose: a, emit: t }) {
|
|
32377
32394
|
const i = e;
|
|
32378
|
-
je((
|
|
32395
|
+
je((N) => ({
|
|
32379
32396
|
"24235e69": e.width
|
|
32380
32397
|
}));
|
|
32381
32398
|
const s = {
|
|
@@ -32511,31 +32528,31 @@ const qI = { class: "dropdown" }, QI = { class: "selected-item" }, KI = {
|
|
|
32511
32528
|
borderRadius: "12px",
|
|
32512
32529
|
filterType: J.WHAT_HAPPENED,
|
|
32513
32530
|
isFooterVisible: !0
|
|
32514
|
-
}, V = w(!1), Z = w(!1), F = w(0), I = w(0), P = w({}), k = w(null), O = w(null), L = w("Universo"), ne = A(() => i.isForTemplateForm ? "0" : "unset"),
|
|
32531
|
+
}, V = w(!1), Z = w(!1), F = w(0), I = w(0), P = w({}), k = w(null), O = w(null), L = w("Universo"), ne = A(() => i.isForTemplateForm ? "0" : "unset"), D = A(() => i.filterType === J.UNIVERSE && i.showUniverseTime ? L.value : i.buttonFilterProps && i.buttonFilterProps.text ? i.buttonFilterProps.text : i.menuButtonText || Q()), pe = A(() => i.isFromTemplates ? J.RESULTS : i.filterType), ve = A(() => i.expansionPanelText || Q()), _ = w(null);
|
|
32515
32532
|
$(
|
|
32516
32533
|
() => i.filterType,
|
|
32517
|
-
(
|
|
32518
|
-
if (
|
|
32534
|
+
(N) => {
|
|
32535
|
+
if (N === J.PRODUCTIVITY)
|
|
32519
32536
|
P.value = {
|
|
32520
32537
|
...s,
|
|
32521
32538
|
...i.templateProps,
|
|
32522
32539
|
productivityCategories: i.filters || mV
|
|
32523
32540
|
};
|
|
32524
|
-
else if (
|
|
32541
|
+
else if (N === J.PLAYS)
|
|
32525
32542
|
P.value = {
|
|
32526
32543
|
...r,
|
|
32527
32544
|
...i.templateProps,
|
|
32528
32545
|
fontFamily: i.buttonFilterProps ? i.buttonFilterProps.textFontFamily : "sans-serif",
|
|
32529
32546
|
playsCategories: i.filters || hV
|
|
32530
32547
|
};
|
|
32531
|
-
else if (
|
|
32548
|
+
else if (N === J.FIELD)
|
|
32532
32549
|
P.value = {
|
|
32533
32550
|
...o,
|
|
32534
32551
|
...i.templateProps,
|
|
32535
32552
|
fieldComponentProps: i.fieldComponentProps,
|
|
32536
32553
|
fieldAreas: i.filters || []
|
|
32537
32554
|
};
|
|
32538
|
-
else if (
|
|
32555
|
+
else if (N === J.DETAILS)
|
|
32539
32556
|
P.value = {
|
|
32540
32557
|
...l,
|
|
32541
32558
|
...i.templateProps,
|
|
@@ -32545,7 +32562,7 @@ const qI = { class: "dropdown" }, QI = { class: "selected-item" }, KI = {
|
|
|
32545
32562
|
statisticType: i.filters ? i.filters.statisticType : ra.statisticType,
|
|
32546
32563
|
isStatisticTypeVisible: i.filters ? i.filters.isStatisticTypeVisible : ra.isStatisticTypeVisible
|
|
32547
32564
|
};
|
|
32548
|
-
else if (
|
|
32565
|
+
else if (N === J.TOURNAMENTS) {
|
|
32549
32566
|
const oe = i.filters || yV;
|
|
32550
32567
|
i.isOneTournamentOnly && oe.forEach((Te) => {
|
|
32551
32568
|
Te.isSelected = Te.id === i.defaultTournamentId;
|
|
@@ -32555,57 +32572,57 @@ const qI = { class: "dropdown" }, QI = { class: "selected-item" }, KI = {
|
|
|
32555
32572
|
tournaments: oe
|
|
32556
32573
|
};
|
|
32557
32574
|
} else
|
|
32558
|
-
|
|
32575
|
+
N === J.PERSONAL_DATA ? P.value = {
|
|
32559
32576
|
...d,
|
|
32560
32577
|
...i.templateProps,
|
|
32561
32578
|
token: i.token,
|
|
32562
32579
|
awaitForFilters: i.awaitForFilters,
|
|
32563
32580
|
personalDataFilters: i.filters
|
|
32564
|
-
} :
|
|
32581
|
+
} : N === J.PLAYS_TYPES ? P.value = {
|
|
32565
32582
|
...p,
|
|
32566
32583
|
...i.templateProps,
|
|
32567
32584
|
playsGolstatsCategories: i.filters || gV
|
|
32568
|
-
} :
|
|
32585
|
+
} : N === J.GOLSTATS ? P.value = {
|
|
32569
32586
|
...h,
|
|
32570
32587
|
...i.templateProps,
|
|
32571
32588
|
playsGolstatsCategories: i.filters || bV
|
|
32572
|
-
} :
|
|
32589
|
+
} : N === J.UNIVERSE ? P.value = {
|
|
32573
32590
|
...g,
|
|
32574
32591
|
...i.templateProps,
|
|
32575
32592
|
universeFilters: i.filters || vV
|
|
32576
|
-
} :
|
|
32593
|
+
} : N === J.DISTANCE ? P.value = {
|
|
32577
32594
|
...f,
|
|
32578
32595
|
...i.templateProps,
|
|
32579
32596
|
distanceFilters: i.filters || xV
|
|
32580
|
-
} :
|
|
32597
|
+
} : N === J.RESULTS ? P.value = {
|
|
32581
32598
|
...v,
|
|
32582
32599
|
...i.templateProps,
|
|
32583
32600
|
resultsFilters: i.filters || hc
|
|
32584
|
-
} :
|
|
32601
|
+
} : N === J.RESULTS_BY_TIME ? P.value = {
|
|
32585
32602
|
...c,
|
|
32586
32603
|
...i.templateProps,
|
|
32587
32604
|
resultsByTimeFilters: i.filters || zn
|
|
32588
|
-
} :
|
|
32605
|
+
} : N === J.GAMES ? P.value = {
|
|
32589
32606
|
...S,
|
|
32590
32607
|
...i.templateProps,
|
|
32591
32608
|
gamesFilters: i.filters || []
|
|
32592
|
-
} :
|
|
32609
|
+
} : N === J.VIDEOS ? P.value = {
|
|
32593
32610
|
...b,
|
|
32594
32611
|
...i.templateProps,
|
|
32595
32612
|
token: i.token
|
|
32596
|
-
} :
|
|
32613
|
+
} : N === J.TAKEN_CORNERS ? P.value = {
|
|
32597
32614
|
...x,
|
|
32598
32615
|
...i.templateProps,
|
|
32599
32616
|
takenCornersFilters: i.filters || []
|
|
32600
|
-
} :
|
|
32617
|
+
} : N === J.HOW_WAS_CORNER ? P.value = {
|
|
32601
32618
|
...X,
|
|
32602
32619
|
...i.templateProps,
|
|
32603
32620
|
howWasCornerFilters: i.filters || Rn
|
|
32604
|
-
} :
|
|
32621
|
+
} : N === J.ZONE ? P.value = {
|
|
32605
32622
|
...G,
|
|
32606
32623
|
...i.templateProps,
|
|
32607
32624
|
zoneFilters: i.filters || [...Qi]
|
|
32608
|
-
} :
|
|
32625
|
+
} : N === J.WHAT_HAPPENED && (P.value = {
|
|
32609
32626
|
...U,
|
|
32610
32627
|
...i.templateProps,
|
|
32611
32628
|
whatHappenedFilters: i.filters || [...jn]
|
|
@@ -32646,13 +32663,13 @@ const qI = { class: "dropdown" }, QI = { class: "selected-item" }, KI = {
|
|
|
32646
32663
|
isStatisticVisible: i.filters ? i.filters.isStatisticVisible : ra.isStatisticVisible
|
|
32647
32664
|
};
|
|
32648
32665
|
else if (i.filterType === J.TOURNAMENTS) {
|
|
32649
|
-
const
|
|
32650
|
-
i.isOneTournamentOnly &&
|
|
32666
|
+
const N = i.filters;
|
|
32667
|
+
i.isOneTournamentOnly && N.forEach((oe) => {
|
|
32651
32668
|
oe.isSelected = oe.id === i.defaultTournamentId;
|
|
32652
32669
|
}), P.value = {
|
|
32653
32670
|
...u,
|
|
32654
32671
|
...i.templateProps,
|
|
32655
|
-
tournaments:
|
|
32672
|
+
tournaments: N
|
|
32656
32673
|
};
|
|
32657
32674
|
} else
|
|
32658
32675
|
i.filterType === J.PERSONAL_DATA ? P.value = {
|
|
@@ -32712,13 +32729,13 @@ const qI = { class: "dropdown" }, QI = { class: "selected-item" }, KI = {
|
|
|
32712
32729
|
});
|
|
32713
32730
|
P.value.isExpansionMode = i.isExpansionPanel, i.isExpansionPanel && (P.value.width = "100%", P.value.maxWidth = "100%");
|
|
32714
32731
|
}
|
|
32715
|
-
), $(V, (
|
|
32716
|
-
|
|
32717
|
-
}), $(Z, (
|
|
32718
|
-
|
|
32732
|
+
), $(V, (N) => {
|
|
32733
|
+
N || t("close", _.value);
|
|
32734
|
+
}), $(Z, (N) => {
|
|
32735
|
+
N || t("close", _.value);
|
|
32719
32736
|
});
|
|
32720
|
-
function Y(
|
|
32721
|
-
F.value =
|
|
32737
|
+
function Y(N) {
|
|
32738
|
+
F.value = N;
|
|
32722
32739
|
}
|
|
32723
32740
|
function le() {
|
|
32724
32741
|
i.isExpansionPanel ? Z.value = !1 : V.value = !1, t("apply", _.value);
|
|
@@ -32759,28 +32776,28 @@ const qI = { class: "dropdown" }, QI = { class: "selected-item" }, KI = {
|
|
|
32759
32776
|
if (i.filterType === J.WHAT_HAPPENED)
|
|
32760
32777
|
return "¿Qué sucedió?";
|
|
32761
32778
|
}
|
|
32762
|
-
function me(
|
|
32763
|
-
t("click-parameters",
|
|
32779
|
+
function me(N) {
|
|
32780
|
+
t("click-parameters", N);
|
|
32764
32781
|
}
|
|
32765
|
-
function ye(
|
|
32766
|
-
P.value.fieldAreas =
|
|
32782
|
+
function ye(N) {
|
|
32783
|
+
P.value.fieldAreas = N, F.value = N.length, ue(N);
|
|
32767
32784
|
}
|
|
32768
|
-
function ge(
|
|
32785
|
+
function ge(N) {
|
|
32769
32786
|
let oe = 0;
|
|
32770
|
-
|
|
32787
|
+
N.value && N.value.statistics && (N.value.minutesPlayed && oe++, N.value.percentMinutesPlayed && oe++, N.value.lastMonths && oe++, N.value.statistics.totals && oe++, N.value.statistics.averagePerGame && oe++, N.value.statistics.averagePerMinute && oe++), i.showUniverseTime && (L.value = `Durante los últimos ${N.value.lastMonths} meses`), P.value.universe = N.value, F.value = oe, ue(N.value);
|
|
32771
32788
|
}
|
|
32772
|
-
function ue(
|
|
32773
|
-
_.value =
|
|
32789
|
+
function ue(N) {
|
|
32790
|
+
_.value = N, t("update:filters", N);
|
|
32774
32791
|
}
|
|
32775
|
-
function R(
|
|
32776
|
-
I.value =
|
|
32792
|
+
function R(N) {
|
|
32793
|
+
I.value = N;
|
|
32777
32794
|
}
|
|
32778
|
-
function fe(
|
|
32779
|
-
k.value && k.value.clearFilters(
|
|
32795
|
+
function fe(N = null) {
|
|
32796
|
+
k.value && k.value.clearFilters(N), O.value && O.value.clearFilters(N);
|
|
32780
32797
|
}
|
|
32781
32798
|
return a({
|
|
32782
32799
|
clearFilters: fe
|
|
32783
|
-
}), (
|
|
32800
|
+
}), (N, oe) => (m(), y("div", SV, [
|
|
32784
32801
|
e.isExpansionPanel ? (m(), y("div", wV, [
|
|
32785
32802
|
C(M(pV), Re(e.expansionPanelProps, {
|
|
32786
32803
|
modelValue: Z.value,
|
|
@@ -32831,7 +32848,7 @@ const qI = { class: "dropdown" }, QI = { class: "selected-item" }, KI = {
|
|
|
32831
32848
|
}, {
|
|
32832
32849
|
trigger: be(() => [
|
|
32833
32850
|
C(tV, Re(e.buttonFilterProps, {
|
|
32834
|
-
text:
|
|
32851
|
+
text: D.value,
|
|
32835
32852
|
"show-badge-on-filter-full": e.showBadgeOnFilterFull,
|
|
32836
32853
|
"info-value": F.value,
|
|
32837
32854
|
"filters-total": I.value.value,
|
|
@@ -33251,7 +33268,7 @@ const _V = {
|
|
|
33251
33268
|
if (!V.max || !V.data)
|
|
33252
33269
|
return;
|
|
33253
33270
|
if (t.applyAdditionalData && dp.emit("set-additional-data", V.additional_data), U) {
|
|
33254
|
-
const I = /* @__PURE__ */ new Map(), P = Object.entries(V.data).reduce((O, [L, ne],
|
|
33271
|
+
const I = /* @__PURE__ */ new Map(), P = Object.entries(V.data).reduce((O, [L, ne], D) => {
|
|
33255
33272
|
const pe = {
|
|
33256
33273
|
playerId: L,
|
|
33257
33274
|
categoriesByName: /* @__PURE__ */ new Map()
|
|
@@ -33259,7 +33276,7 @@ const _V = {
|
|
|
33259
33276
|
return ne.forEach((ve) => {
|
|
33260
33277
|
const _ = pe.categoriesByName.get(ve[1]), Y = I.get(ve[1]);
|
|
33261
33278
|
if (_) {
|
|
33262
|
-
if (_.categoriesIds.push(ve[0]), _.categoriesIds.sort(), _.totals.push(ve[2]),
|
|
33279
|
+
if (_.categoriesIds.push(ve[0]), _.categoriesIds.sort(), _.totals.push(ve[2]), D === 0 && Y) {
|
|
33263
33280
|
const le = V.max.find((Q) => Q[0] === ve[0]);
|
|
33264
33281
|
le && (Y.categoriesIds.push(ve[0]), Y.categoriesIds.sort(), Y.max.push(le[1]));
|
|
33265
33282
|
}
|
|
@@ -33267,7 +33284,7 @@ const _V = {
|
|
|
33267
33284
|
categoriesIds: [ve[0]],
|
|
33268
33285
|
totals: [ve[2]],
|
|
33269
33286
|
abbreviation: ve[6] || ve[5] || ve[1]
|
|
33270
|
-
}),
|
|
33287
|
+
}), D === 0) {
|
|
33271
33288
|
const le = V.max.find((Q) => Q[0] === ve[0]);
|
|
33272
33289
|
le && I.set(ve[1], {
|
|
33273
33290
|
categoriesIds: [ve[0]],
|
|
@@ -33278,12 +33295,12 @@ const _V = {
|
|
|
33278
33295
|
}, []);
|
|
33279
33296
|
V.data = P.reduce((O, L) => {
|
|
33280
33297
|
const ne = [];
|
|
33281
|
-
return L.categoriesByName.forEach((
|
|
33298
|
+
return L.categoriesByName.forEach((D, pe) => {
|
|
33282
33299
|
ne.push([
|
|
33283
|
-
Array.from(
|
|
33300
|
+
Array.from(D.categoriesIds).reduce((ve, _) => `${ve}-${_}`, ""),
|
|
33284
33301
|
pe,
|
|
33285
|
-
|
|
33286
|
-
|
|
33302
|
+
D.totals.reduce((ve, _) => ve + _, 0),
|
|
33303
|
+
D.abbreviation
|
|
33287
33304
|
]);
|
|
33288
33305
|
}), O[L.playerId] = ne, O;
|
|
33289
33306
|
}, {});
|
|
@@ -33299,13 +33316,13 @@ const _V = {
|
|
|
33299
33316
|
I.objeto_player ? I.objeto_player.player_id : I.id || I.player_id
|
|
33300
33317
|
);
|
|
33301
33318
|
I.statsGraph = [], P && (I.statsGraph = P.map((k, O) => {
|
|
33302
|
-
const L = Number(Z.get(k[0])), ne = k[2],
|
|
33319
|
+
const L = Number(Z.get(k[0])), ne = k[2], D = O + 1;
|
|
33303
33320
|
return o.value.length < P.length && o.value.push({
|
|
33304
|
-
position:
|
|
33321
|
+
position: D,
|
|
33305
33322
|
abbreviation: k[3],
|
|
33306
33323
|
name: k[1]
|
|
33307
33324
|
}), {
|
|
33308
|
-
position:
|
|
33325
|
+
position: D,
|
|
33309
33326
|
name: k[1],
|
|
33310
33327
|
abbreviation: k[3],
|
|
33311
33328
|
playerStat: ne,
|
|
@@ -34472,41 +34489,41 @@ const kc = /* @__PURE__ */ ai(Gl, [["render", uG], ["__scopeId", "data-v-7ae64b4
|
|
|
34472
34489
|
setup(e, { expose: a, emit: t }) {
|
|
34473
34490
|
const i = e, s = w([]), r = w([]), o = w([]), l = w([]), u = w(!1), d = w(0), p = A(() => ({
|
|
34474
34491
|
"--grid-template-columns": i.dynamicVariablesOnly || i.customVariablesOnly ? "1fr" : "repeat(2, 1fr)"
|
|
34475
|
-
})), h = A(() => o.value.map((
|
|
34476
|
-
const pe = { ...
|
|
34492
|
+
})), h = A(() => o.value.map((D) => {
|
|
34493
|
+
const pe = { ...D };
|
|
34477
34494
|
return delete pe.isExpanded, pe;
|
|
34478
34495
|
}));
|
|
34479
|
-
function g(
|
|
34496
|
+
function g(D) {
|
|
34480
34497
|
const pe = /* @__PURE__ */ new Date();
|
|
34481
|
-
let ve = pe.getFullYear() -
|
|
34482
|
-
const _ = pe.getMonth() -
|
|
34483
|
-
return (_ < 0 || _ === 0 && pe.getDate() <
|
|
34498
|
+
let ve = pe.getFullYear() - D.getFullYear();
|
|
34499
|
+
const _ = pe.getMonth() - D.getMonth();
|
|
34500
|
+
return (_ < 0 || _ === 0 && pe.getDate() < D.getDate()) && ve--, ve;
|
|
34484
34501
|
}
|
|
34485
34502
|
const f = A(() => {
|
|
34486
|
-
const
|
|
34487
|
-
return `https://a3tmmmjdaj.execute-api.us-east-2.amazonaws.com/prod/v2/users/${i.userId}/variables${
|
|
34503
|
+
const D = i.positionIds && i.positionIds.length > 0 ? i.positionIds.reduce((pe, ve) => `${pe}${pe === "?" ? "" : "&"}p=${ve}`, "?") : "";
|
|
34504
|
+
return `https://a3tmmmjdaj.execute-api.us-east-2.amazonaws.com/prod/v2/users/${i.userId}/variables${D}`;
|
|
34488
34505
|
});
|
|
34489
34506
|
$(
|
|
34490
34507
|
f,
|
|
34491
|
-
(
|
|
34492
|
-
|
|
34508
|
+
(D, pe) => {
|
|
34509
|
+
D && D !== pe && (i.customVariables && i.customVariables.length ? l.value = i.customVariables.map((ve) => ({
|
|
34493
34510
|
...ve,
|
|
34494
34511
|
isSelected: !0
|
|
34495
|
-
})) : v(
|
|
34512
|
+
})) : v(D));
|
|
34496
34513
|
},
|
|
34497
34514
|
{ immediate: !0 }
|
|
34498
34515
|
), $(
|
|
34499
34516
|
() => i.isEditMode,
|
|
34500
|
-
(
|
|
34501
|
-
|
|
34517
|
+
(D) => {
|
|
34518
|
+
D && s.value.forEach((pe) => {
|
|
34502
34519
|
pe.isSelected = !1;
|
|
34503
34520
|
});
|
|
34504
34521
|
}
|
|
34505
34522
|
);
|
|
34506
|
-
async function v(
|
|
34523
|
+
async function v(D) {
|
|
34507
34524
|
try {
|
|
34508
34525
|
const pe = await (await fetch(
|
|
34509
|
-
|
|
34526
|
+
D,
|
|
34510
34527
|
{
|
|
34511
34528
|
method: "GET",
|
|
34512
34529
|
headers: {
|
|
@@ -34523,22 +34540,22 @@ const kc = /* @__PURE__ */ ai(Gl, [["render", uG], ["__scopeId", "data-v-7ae64b4
|
|
|
34523
34540
|
console.error("Error fetching user variables:", pe);
|
|
34524
34541
|
}
|
|
34525
34542
|
}
|
|
34526
|
-
function c(
|
|
34527
|
-
o.value =
|
|
34543
|
+
function c(D) {
|
|
34544
|
+
o.value = D;
|
|
34528
34545
|
}
|
|
34529
|
-
function b(
|
|
34530
|
-
const [pe, ve] =
|
|
34546
|
+
function b(D) {
|
|
34547
|
+
const [pe, ve] = D.split(","), _ = pe.split(" ");
|
|
34531
34548
|
let Y = "";
|
|
34532
34549
|
for (const le of _)
|
|
34533
34550
|
if (Y += ` ${le}`, le.length > 3)
|
|
34534
34551
|
break;
|
|
34535
34552
|
return ve && pe ? `${ve.trim()} ${Y}` : "";
|
|
34536
34553
|
}
|
|
34537
|
-
function S(
|
|
34538
|
-
return i.isFemaleMode ? qG.get(
|
|
34554
|
+
function S(D) {
|
|
34555
|
+
return i.isFemaleMode ? qG.get(D) : YG.get(D);
|
|
34539
34556
|
}
|
|
34540
|
-
function x(
|
|
34541
|
-
s.value =
|
|
34557
|
+
function x(D) {
|
|
34558
|
+
s.value = D.map((pe, ve) => {
|
|
34542
34559
|
const _ = ve + 1;
|
|
34543
34560
|
return pe.position && (typeof pe.position == "string" ? pe.position_name = pe.position : typeof pe.position == "number" && (pe.position_id = pe.position)), {
|
|
34544
34561
|
...pe,
|
|
@@ -34556,39 +34573,39 @@ const kc = /* @__PURE__ */ ai(Gl, [["render", uG], ["__scopeId", "data-v-7ae64b4
|
|
|
34556
34573
|
...pe
|
|
34557
34574
|
})), d.value += 1;
|
|
34558
34575
|
}
|
|
34559
|
-
function X(
|
|
34576
|
+
function X(D) {
|
|
34560
34577
|
s.value.forEach((ve) => {
|
|
34561
34578
|
ve.isNew = !1;
|
|
34562
34579
|
});
|
|
34563
|
-
const pe = s.value.find((ve) => ve.id &&
|
|
34580
|
+
const pe = s.value.find((ve) => ve.id && D.id && ve.id === D.id || ve.objeto_player && ve.objeto_player.player_id === D.player_id || ve.player_id && D.player_id && ve.player_id === D.player_id || ve.id && D.player_id && ve.id === D.player_id || ve.player_id && D.id && ve.player_id === D.id);
|
|
34564
34581
|
setTimeout(() => {
|
|
34565
|
-
pe || (
|
|
34582
|
+
pe || (D.name = b(D.name), D.isNew = !0, s.value.unshift(D));
|
|
34566
34583
|
}, 500);
|
|
34567
34584
|
}
|
|
34568
|
-
function G(
|
|
34569
|
-
u.value =
|
|
34585
|
+
function G(D) {
|
|
34586
|
+
u.value = D, D && (document.body.style.overflow = "hidden", document.html.style.overflow = "hidden");
|
|
34570
34587
|
}
|
|
34571
34588
|
function U() {
|
|
34572
34589
|
t("click-add-player");
|
|
34573
34590
|
}
|
|
34574
|
-
function V(
|
|
34575
|
-
t("view-profile",
|
|
34591
|
+
function V(D) {
|
|
34592
|
+
t("view-profile", D);
|
|
34576
34593
|
}
|
|
34577
|
-
function Z(
|
|
34578
|
-
t("add-player",
|
|
34594
|
+
function Z(D) {
|
|
34595
|
+
t("add-player", D);
|
|
34579
34596
|
}
|
|
34580
|
-
function F(
|
|
34581
|
-
t("delete-player",
|
|
34597
|
+
function F(D) {
|
|
34598
|
+
t("delete-player", D);
|
|
34582
34599
|
}
|
|
34583
34600
|
function I() {
|
|
34584
34601
|
t("list-created");
|
|
34585
34602
|
}
|
|
34586
34603
|
const P = w(!1), k = w(null);
|
|
34587
|
-
function O(
|
|
34588
|
-
k.value =
|
|
34604
|
+
function O(D) {
|
|
34605
|
+
k.value = D, P.value = !0;
|
|
34589
34606
|
}
|
|
34590
|
-
function L(
|
|
34591
|
-
P.value =
|
|
34607
|
+
function L(D) {
|
|
34608
|
+
P.value = D;
|
|
34592
34609
|
}
|
|
34593
34610
|
function ne() {
|
|
34594
34611
|
u.value = !1, document.body.style.overflow = "auto", document.html.style.overflow = "auto";
|
|
@@ -34596,7 +34613,7 @@ const kc = /* @__PURE__ */ ai(Gl, [["render", uG], ["__scopeId", "data-v-7ae64b4
|
|
|
34596
34613
|
return a({
|
|
34597
34614
|
setPlayers: x,
|
|
34598
34615
|
addPlayer: X
|
|
34599
|
-
}), (
|
|
34616
|
+
}), (D, pe) => (m(), y(K, null, [
|
|
34600
34617
|
(m(), ke(ws, { to: "body" }, [
|
|
34601
34618
|
C(it, null, {
|
|
34602
34619
|
default: be(() => [
|
|
@@ -40537,14 +40554,14 @@ const {
|
|
|
40537
40554
|
variables: o.value
|
|
40538
40555
|
};
|
|
40539
40556
|
console.log("Lo que se guarda es:");
|
|
40540
|
-
const
|
|
40557
|
+
const D = await L.post(
|
|
40541
40558
|
`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${i.userId}/in-followed`,
|
|
40542
40559
|
ne
|
|
40543
40560
|
);
|
|
40544
|
-
|
|
40561
|
+
D.data && (t("createList", {
|
|
40545
40562
|
nombre: s.value,
|
|
40546
40563
|
variables: o.value,
|
|
40547
|
-
id:
|
|
40564
|
+
id: D.data.data.id
|
|
40548
40565
|
}), t("listCreated"), s.value = "", o.value = [], r.value = "", l.value = !1, t("close"));
|
|
40549
40566
|
}
|
|
40550
40567
|
} catch (L) {
|
|
@@ -41016,14 +41033,14 @@ const {
|
|
|
41016
41033
|
$(
|
|
41017
41034
|
() => t.players,
|
|
41018
41035
|
(j) => {
|
|
41019
|
-
j && j.length && (r.value = j.map((z,
|
|
41020
|
-
const Se =
|
|
41036
|
+
j && j.length && (r.value = j.map((z, H) => {
|
|
41037
|
+
const Se = H + 1, Ue = {
|
|
41021
41038
|
...z,
|
|
41022
41039
|
position: Se < 10 ? `0${Se}` : `${Se}`,
|
|
41023
41040
|
isSelected: !1,
|
|
41024
41041
|
isExpanded: !1,
|
|
41025
|
-
isOdd:
|
|
41026
|
-
index:
|
|
41042
|
+
isOdd: H % 2 !== 0,
|
|
41043
|
+
index: H
|
|
41027
41044
|
};
|
|
41028
41045
|
return z.stats && z.stats.length && (Ue.stats = z.stats.map((at) => ({
|
|
41029
41046
|
...at,
|
|
@@ -41050,15 +41067,15 @@ const {
|
|
|
41050
41067
|
(j) => {
|
|
41051
41068
|
if (j) {
|
|
41052
41069
|
let z = [...b.value];
|
|
41053
|
-
j.isRoot ? z.sort((
|
|
41054
|
-
const Ue =
|
|
41070
|
+
j.isRoot ? z.sort((H, Se) => typeof H[j.name] == "string" ? j.isDesc ? H[j.name].localeCompare(Se[j.name]) : H[j.name].localeCompare(Se[j.name]) * -1 : j.isDesc ? Se[j.name] - H[j.name] : H[j.name] - Se[j.name]) : z.sort((H, Se) => {
|
|
41071
|
+
const Ue = H.stats.find((St) => St.name === j.name), at = Se.stats.find((St) => St.name === j.name);
|
|
41055
41072
|
return typeof Ue.value == "string" ? j.isDesc ? Ue.total.localeCompare(at.total) : Ue.total.localeCompare(at.total) * -1 : j.isDesc ? at.total - Ue.total : Ue.total - at.total;
|
|
41056
|
-
}), z.forEach((
|
|
41057
|
-
|
|
41073
|
+
}), z.forEach((H, Se) => {
|
|
41074
|
+
H.isOdd = Se % 2 !== 0;
|
|
41058
41075
|
}), b.value = z;
|
|
41059
41076
|
} else
|
|
41060
|
-
b.value.sort((z,
|
|
41061
|
-
z.isOdd =
|
|
41077
|
+
b.value.sort((z, H) => z.index - H.index).forEach((z, H) => {
|
|
41078
|
+
z.isOdd = H % 2 !== 0;
|
|
41062
41079
|
});
|
|
41063
41080
|
},
|
|
41064
41081
|
{ immediate: !0, deep: !0 }
|
|
@@ -41070,8 +41087,8 @@ const {
|
|
|
41070
41087
|
}
|
|
41071
41088
|
);
|
|
41072
41089
|
function I(j, z) {
|
|
41073
|
-
const
|
|
41074
|
-
|
|
41090
|
+
const H = document.querySelectorAll(".scrollable-row")[j + 2];
|
|
41091
|
+
H && (H.style.marginTop = `${z}px`);
|
|
41075
41092
|
}
|
|
41076
41093
|
function P(j) {
|
|
41077
41094
|
a("click-parameters", j);
|
|
@@ -41080,12 +41097,12 @@ const {
|
|
|
41080
41097
|
j && (j.isDesc = !j.isDesc), c.value = j;
|
|
41081
41098
|
}
|
|
41082
41099
|
function O(j) {
|
|
41083
|
-
const z = j.player || j.objeto_player,
|
|
41100
|
+
const z = j.player || j.objeto_player, H = z ? z.player_id || z.id || z.playerId : j.id || j.player_id, Se = {
|
|
41084
41101
|
isFeaturedPlayers: !1,
|
|
41085
41102
|
mainSectionType: 1,
|
|
41086
41103
|
playListType: 2,
|
|
41087
41104
|
gameIds: null,
|
|
41088
|
-
playerIds:
|
|
41105
|
+
playerIds: H ? [H] : [],
|
|
41089
41106
|
goalkeeperIds: [],
|
|
41090
41107
|
matchResult: [1, 2, 3],
|
|
41091
41108
|
categorySingleName: "",
|
|
@@ -41105,7 +41122,7 @@ const {
|
|
|
41105
41122
|
];
|
|
41106
41123
|
Ue.sort((at, St) => at - St), Se.seasonId = Ue.shift(), Se.seasonsIds = Ue;
|
|
41107
41124
|
} else (j.season_id || j.seasonId) && (Se.seasonId = j.season_id || j.seasonId);
|
|
41108
|
-
j.stat ? j.stat.category_id && j.stat.category_id.length ? Se.categoryIds = j.stat.category_id : j.stat.custom_category_id && (Se.customCategoryIds = [j.stat.custom_category_id]) : Se.categoryIds =
|
|
41125
|
+
j.stat ? j.stat.category_id && j.stat.category_id.length ? Se.categoryIds = j.stat.category_id : j.stat.custom_category_id && (Se.customCategoryIds = [j.stat.custom_category_id]) : Se.categoryIds = D(j.player_position), a("open-media", Se);
|
|
41109
41126
|
}
|
|
41110
41127
|
function L() {
|
|
41111
41128
|
i = new ResizeObserver((j) => {
|
|
@@ -41115,11 +41132,11 @@ const {
|
|
|
41115
41132
|
}
|
|
41116
41133
|
function ne(j) {
|
|
41117
41134
|
s = new ResizeObserver((z) => {
|
|
41118
|
-
for (const
|
|
41119
|
-
p.value =
|
|
41135
|
+
for (const H of z)
|
|
41136
|
+
p.value = H.contentRect.height;
|
|
41120
41137
|
}), s.observe(j);
|
|
41121
41138
|
}
|
|
41122
|
-
function
|
|
41139
|
+
function D(j) {
|
|
41123
41140
|
return j === "POR" ? [39, 40, 52, 53, 54, 55, 323, 324, 608, 774, 802] : [
|
|
41124
41141
|
10,
|
|
41125
41142
|
12,
|
|
@@ -41168,8 +41185,8 @@ const {
|
|
|
41168
41185
|
}
|
|
41169
41186
|
function pe(j, z) {
|
|
41170
41187
|
z.isSelected = j;
|
|
41171
|
-
const
|
|
41172
|
-
a("change-selected-players",
|
|
41188
|
+
const H = r.value.filter((Se) => Se.isSelected);
|
|
41189
|
+
a("change-selected-players", H);
|
|
41173
41190
|
}
|
|
41174
41191
|
function ve(j) {
|
|
41175
41192
|
a("view-profile", j);
|
|
@@ -41193,12 +41210,12 @@ const {
|
|
|
41193
41210
|
f.value = j;
|
|
41194
41211
|
return;
|
|
41195
41212
|
}
|
|
41196
|
-
const
|
|
41213
|
+
const H = document.querySelectorAll(".details-row");
|
|
41197
41214
|
let Se = -1;
|
|
41198
|
-
|
|
41215
|
+
H.forEach((at, St) => {
|
|
41199
41216
|
at.id === `dr-${j.id}` && (Se = St);
|
|
41200
41217
|
});
|
|
41201
|
-
const Ue =
|
|
41218
|
+
const Ue = H[Se];
|
|
41202
41219
|
h.value = Se, ne(Ue), j.isExpanded = !0, r.value.forEach((at) => {
|
|
41203
41220
|
at.isExpanded = !1;
|
|
41204
41221
|
}), setTimeout(() => {
|
|
@@ -41216,7 +41233,7 @@ const {
|
|
|
41216
41233
|
}, fe = function() {
|
|
41217
41234
|
me = !1;
|
|
41218
41235
|
};
|
|
41219
|
-
function
|
|
41236
|
+
function N(j) {
|
|
41220
41237
|
v.value && (v.value.scrollLeft = j.target.scrollLeft);
|
|
41221
41238
|
}
|
|
41222
41239
|
function oe(j) {
|
|
@@ -41226,24 +41243,24 @@ const {
|
|
|
41226
41243
|
v.value && (v.value.addEventListener("mousemove", (j) => {
|
|
41227
41244
|
if (!me)
|
|
41228
41245
|
return;
|
|
41229
|
-
const z = j.pageX - v.value.offsetLeft - ye,
|
|
41230
|
-
v.value.scrollLeft =
|
|
41246
|
+
const z = j.pageX - v.value.offsetLeft - ye, H = ge - z;
|
|
41247
|
+
v.value.scrollLeft = H, u.value && (u.value.scrollLeft = H);
|
|
41231
41248
|
}), v.value.addEventListener("mousedown", ue, !1), v.value.addEventListener("mouseup", fe, !1), v.value.addEventListener("mouseleave", fe, !1), v.value.addEventListener("scroll", oe)), u.value && (u.value.addEventListener("mousemove", (j) => {
|
|
41232
41249
|
if (!me)
|
|
41233
41250
|
return;
|
|
41234
|
-
const z = j.pageX - u.value.offsetLeft - ye,
|
|
41235
|
-
u.value.scrollLeft =
|
|
41236
|
-
}), u.value.addEventListener("mousedown", R, !1), u.value.addEventListener("mouseup", fe, !1), u.value.addEventListener("mouseleave", fe, !1), u.value.addEventListener("scroll",
|
|
41251
|
+
const z = j.pageX - u.value.offsetLeft - ye, H = ge - z;
|
|
41252
|
+
u.value.scrollLeft = H, v.value && (v.value.scrollLeft = H);
|
|
41253
|
+
}), u.value.addEventListener("mousedown", R, !1), u.value.addEventListener("mouseup", fe, !1), u.value.addEventListener("mouseleave", fe, !1), u.value.addEventListener("scroll", N));
|
|
41237
41254
|
}
|
|
41238
41255
|
function ut() {
|
|
41239
41256
|
t.isGeneral ? X.value = "922px" : $i(() => {
|
|
41240
41257
|
const j = document.querySelector(".scrollable-row-2");
|
|
41241
41258
|
if (j) {
|
|
41242
|
-
const z = window.getComputedStyle(j),
|
|
41243
|
-
X.value = `${
|
|
41259
|
+
const z = window.getComputedStyle(j), H = j.scrollWidth || parseInt(z.width);
|
|
41260
|
+
X.value = `${H}px`;
|
|
41244
41261
|
} else if (r.value.length && r.value[0].stats) {
|
|
41245
|
-
const z = r.value[0].stats.length,
|
|
41246
|
-
X.value = `${(z + 1) *
|
|
41262
|
+
const z = r.value[0].stats.length, H = 120;
|
|
41263
|
+
X.value = `${(z + 1) * H}px`;
|
|
41247
41264
|
}
|
|
41248
41265
|
});
|
|
41249
41266
|
}
|
|
@@ -41276,7 +41293,7 @@ const {
|
|
|
41276
41293
|
//
|
|
41277
41294
|
team_id: V.value.team_id
|
|
41278
41295
|
//
|
|
41279
|
-
},
|
|
41296
|
+
}, H = {
|
|
41280
41297
|
user_id: t.userId,
|
|
41281
41298
|
id: j.id,
|
|
41282
41299
|
players: [z]
|
|
@@ -41289,7 +41306,7 @@ const {
|
|
|
41289
41306
|
"Content-Type": "application/json",
|
|
41290
41307
|
Authorization: t.token
|
|
41291
41308
|
},
|
|
41292
|
-
body: JSON.stringify(
|
|
41309
|
+
body: JSON.stringify(H)
|
|
41293
41310
|
}
|
|
41294
41311
|
), a("list-created");
|
|
41295
41312
|
} catch (z) {
|
|
@@ -41302,13 +41319,13 @@ const {
|
|
|
41302
41319
|
return Ye(() => {
|
|
41303
41320
|
L(), Te();
|
|
41304
41321
|
}), Y0(() => {
|
|
41305
|
-
i && i.disconnect(), s && s.disconnect(), v.value && (v.value.removeEventListener("mousemove", ue, !1), v.value.removeEventListener("mouseup", fe, !1), v.value.removeEventListener("mouseleave", fe, !1), v.value.removeEventListener("scroll", oe)), u.value && (u.value.removeEventListener("mousemove", R, !1), u.value.removeEventListener("mouseup", fe, !1), u.value.removeEventListener("mouseleave", fe, !1), u.value.removeEventListener("scroll",
|
|
41322
|
+
i && i.disconnect(), s && s.disconnect(), v.value && (v.value.removeEventListener("mousemove", ue, !1), v.value.removeEventListener("mouseup", fe, !1), v.value.removeEventListener("mouseleave", fe, !1), v.value.removeEventListener("scroll", oe)), u.value && (u.value.removeEventListener("mousemove", R, !1), u.value.removeEventListener("mouseup", fe, !1), u.value.removeEventListener("mouseleave", fe, !1), u.value.removeEventListener("scroll", N));
|
|
41306
41323
|
}), (j, z) => (m(), y(K, null, [
|
|
41307
41324
|
G.value ? (m(), ke(M(hq), {
|
|
41308
41325
|
key: 0,
|
|
41309
41326
|
token: e.token,
|
|
41310
41327
|
"user-id": e.userId,
|
|
41311
|
-
onClose: z[0] || (z[0] = (
|
|
41328
|
+
onClose: z[0] || (z[0] = (H) => G.value = !1),
|
|
41312
41329
|
onCreateList: _a
|
|
41313
41330
|
}, null, 8, ["token", "user-id"])) : T("", !0),
|
|
41314
41331
|
n("div", {
|
|
@@ -41350,7 +41367,7 @@ const {
|
|
|
41350
41367
|
n("div", {
|
|
41351
41368
|
role: "button",
|
|
41352
41369
|
class: "restore-button",
|
|
41353
|
-
onClick: z[1] || (z[1] = (
|
|
41370
|
+
onClick: z[1] || (z[1] = (H) => k(null))
|
|
41354
41371
|
}, [
|
|
41355
41372
|
xq,
|
|
41356
41373
|
n("div", {
|
|
@@ -41358,45 +41375,45 @@ const {
|
|
|
41358
41375
|
}, "Restaurar orden", 4)
|
|
41359
41376
|
])
|
|
41360
41377
|
]),
|
|
41361
|
-
(m(!0), y(K, null, ce(b.value, (
|
|
41362
|
-
key: `s-${
|
|
41363
|
-
class: de(["row static-row", { odd:
|
|
41378
|
+
(m(!0), y(K, null, ce(b.value, (H) => (m(), y("div", {
|
|
41379
|
+
key: `s-${H.id}`,
|
|
41380
|
+
class: de(["row static-row", { odd: H.isOdd }]),
|
|
41364
41381
|
style: W(F.value ? "width: auto" : "")
|
|
41365
41382
|
}, [
|
|
41366
41383
|
C(it, null, {
|
|
41367
41384
|
default: be(() => [
|
|
41368
41385
|
he(n("div", {
|
|
41369
|
-
id: `dr-${
|
|
41370
|
-
class: de(["details-row", { odd:
|
|
41386
|
+
id: `dr-${H.id}`,
|
|
41387
|
+
class: de(["details-row", { odd: H.isOdd }])
|
|
41371
41388
|
}, [
|
|
41372
41389
|
n("div", wq, [
|
|
41373
41390
|
n("div", Cq, [
|
|
41374
41391
|
n("div", kq, [
|
|
41375
41392
|
n("div", null, [
|
|
41376
41393
|
Ie("Equipo: "),
|
|
41377
|
-
n("span", Tq, E(
|
|
41394
|
+
n("span", Tq, E(H.team_name), 1)
|
|
41378
41395
|
]),
|
|
41379
41396
|
n("div", null, [
|
|
41380
41397
|
Ie("Edad: "),
|
|
41381
|
-
n("span", _q, E(
|
|
41398
|
+
n("span", _q, E(H.player_age) + " Años", 1)
|
|
41382
41399
|
]),
|
|
41383
41400
|
n("div", null, [
|
|
41384
41401
|
Ie("Nacionalidad: "),
|
|
41385
|
-
n("span", Eq, E(
|
|
41402
|
+
n("span", Eq, E(H.player_country), 1)
|
|
41386
41403
|
]),
|
|
41387
41404
|
n("div", null, [
|
|
41388
41405
|
Ie("Posición: "),
|
|
41389
|
-
n("span", Fq, E(
|
|
41406
|
+
n("span", Fq, E(H.position_name), 1)
|
|
41390
41407
|
])
|
|
41391
41408
|
]),
|
|
41392
41409
|
n("div", Oq, [
|
|
41393
41410
|
n("div", null, [
|
|
41394
41411
|
Ie("Partidos Jugados: "),
|
|
41395
|
-
n("span", Pq, E(
|
|
41412
|
+
n("span", Pq, E(H.player_games), 1)
|
|
41396
41413
|
]),
|
|
41397
41414
|
n("div", null, [
|
|
41398
41415
|
Ie("Minutos Jugados: "),
|
|
41399
|
-
n("span", Lq, E(
|
|
41416
|
+
n("span", Lq, E(H.player_min), 1)
|
|
41400
41417
|
])
|
|
41401
41418
|
])
|
|
41402
41419
|
]),
|
|
@@ -41408,28 +41425,28 @@ const {
|
|
|
41408
41425
|
key: 0,
|
|
41409
41426
|
role: "button",
|
|
41410
41427
|
class: "button",
|
|
41411
|
-
onClick: (Se) => le(
|
|
41428
|
+
onClick: (Se) => le(H)
|
|
41412
41429
|
}, Iq, 8, Mq)) : T("", !0),
|
|
41413
41430
|
e.isTableFromList ? (m(), y("div", {
|
|
41414
41431
|
key: 1,
|
|
41415
41432
|
role: "button",
|
|
41416
41433
|
class: "button",
|
|
41417
|
-
onClick: (Se) => _(
|
|
41434
|
+
onClick: (Se) => _(H)
|
|
41418
41435
|
}, Dq, 8, Rq)) : e.isAddToListButtonVisible ? (m(), y("div", {
|
|
41419
41436
|
key: 2,
|
|
41420
41437
|
role: "button",
|
|
41421
41438
|
class: "button",
|
|
41422
|
-
onClick: (Se) => Y(
|
|
41439
|
+
onClick: (Se) => Y(H)
|
|
41423
41440
|
}, Gq, 8, Nq)) : T("", !0),
|
|
41424
41441
|
n("div", {
|
|
41425
41442
|
role: "button",
|
|
41426
41443
|
class: "button green",
|
|
41427
|
-
onClick: (Se) => ve(
|
|
41444
|
+
onClick: (Se) => ve(H)
|
|
41428
41445
|
}, Xq, 8, Zq)
|
|
41429
41446
|
], 4)
|
|
41430
41447
|
])
|
|
41431
41448
|
], 10, Sq), [
|
|
41432
|
-
[we,
|
|
41449
|
+
[we, H.isExpanded]
|
|
41433
41450
|
])
|
|
41434
41451
|
]),
|
|
41435
41452
|
_: 2
|
|
@@ -41438,14 +41455,14 @@ const {
|
|
|
41438
41455
|
key: 0,
|
|
41439
41456
|
fontFamily: "Poppins-Regular",
|
|
41440
41457
|
labelFontSize: "14px",
|
|
41441
|
-
"model-value":
|
|
41442
|
-
"onUpdate:modelValue": (Se) => pe(Se,
|
|
41458
|
+
"model-value": H.isSelected,
|
|
41459
|
+
"onUpdate:modelValue": (Se) => pe(Se, H)
|
|
41443
41460
|
}, null, 8, ["model-value", "onUpdate:modelValue"])) : T("", !0),
|
|
41444
41461
|
n("div", Wq, [
|
|
41445
41462
|
n("div", {
|
|
41446
41463
|
class: "position",
|
|
41447
41464
|
style: W(F.value ? "width:20px;" : "")
|
|
41448
|
-
}, E(
|
|
41465
|
+
}, E(H.position), 5),
|
|
41449
41466
|
e.isTableFromList ? (m(), y("div", {
|
|
41450
41467
|
key: 0,
|
|
41451
41468
|
class: "add-to-list-container",
|
|
@@ -41457,21 +41474,21 @@ const {
|
|
|
41457
41474
|
viewBox: "0 0 20 20",
|
|
41458
41475
|
fill: "none",
|
|
41459
41476
|
xmlns: "http://www.w3.org/2000/svg",
|
|
41460
|
-
onClick: (Se) => _(
|
|
41477
|
+
onClick: (Se) => _(H)
|
|
41461
41478
|
}, Kq, 8, Uq))
|
|
41462
41479
|
], 4)) : e.isAddToListPlayerVisible ? (m(), y("div", {
|
|
41463
41480
|
key: 1,
|
|
41464
41481
|
class: "add-to-list",
|
|
41465
41482
|
style: W(F.value ? "width:20px;" : "")
|
|
41466
41483
|
}, [
|
|
41467
|
-
|
|
41484
|
+
H.showTooltip ? (m(), ke(M(xU), {
|
|
41468
41485
|
key: 0,
|
|
41469
41486
|
token: e.token,
|
|
41470
41487
|
"user-id": e.userId,
|
|
41471
41488
|
lists: e.lists,
|
|
41472
41489
|
isModalOpen: U.value,
|
|
41473
|
-
"selected-player":
|
|
41474
|
-
onClose: (Se) =>
|
|
41490
|
+
"selected-player": H.objeto_player,
|
|
41491
|
+
onClose: (Se) => H.showTooltip = !1,
|
|
41475
41492
|
onCreateNewList: xt,
|
|
41476
41493
|
onPlayerAdded: Ea
|
|
41477
41494
|
}, null, 8, ["token", "user-id", "lists", "isModalOpen", "selected-player", "onClose"])) : T("", !0),
|
|
@@ -41481,28 +41498,28 @@ const {
|
|
|
41481
41498
|
viewBox: "0 0 20 20",
|
|
41482
41499
|
fill: "none",
|
|
41483
41500
|
xmlns: "http://www.w3.org/2000/svg",
|
|
41484
|
-
onClick: (Se) => Y(
|
|
41501
|
+
onClick: (Se) => Y(H)
|
|
41485
41502
|
}, iQ, 8, $q))
|
|
41486
41503
|
], 4)) : T("", !0),
|
|
41487
41504
|
n("div", rQ, [
|
|
41488
41505
|
n("div", null, [
|
|
41489
41506
|
n("img", {
|
|
41490
|
-
src:
|
|
41507
|
+
src: H.player_photo,
|
|
41491
41508
|
alt: "player photo"
|
|
41492
41509
|
}, null, 8, sQ)
|
|
41493
41510
|
])
|
|
41494
41511
|
]),
|
|
41495
|
-
n("div", oQ, E(
|
|
41512
|
+
n("div", oQ, E(H.player_name), 1)
|
|
41496
41513
|
]),
|
|
41497
41514
|
n("div", nQ, [
|
|
41498
41515
|
(m(), y("svg", {
|
|
41499
|
-
class: de(["_arrowExpandIcon_6ak64_1115 _rotate_6ak64_5", { expanded:
|
|
41516
|
+
class: de(["_arrowExpandIcon_6ak64_1115 _rotate_6ak64_5", { expanded: H.isExpanded }]),
|
|
41500
41517
|
width: "12",
|
|
41501
41518
|
height: "8",
|
|
41502
41519
|
viewBox: "0 0 12 8",
|
|
41503
41520
|
fill: "#D9D9D9",
|
|
41504
41521
|
xmlns: "http://www.w3.org/2000/svg",
|
|
41505
|
-
onClick: (Se) => Q(
|
|
41522
|
+
onClick: (Se) => Q(H)
|
|
41506
41523
|
}, uQ, 10, lQ))
|
|
41507
41524
|
])
|
|
41508
41525
|
], 6))), 128))
|
|
@@ -41522,7 +41539,7 @@ const {
|
|
|
41522
41539
|
viewBox: "0 0 18 18",
|
|
41523
41540
|
fill: "none",
|
|
41524
41541
|
xmlns: "http://www.w3.org/2000/svg",
|
|
41525
|
-
onClick: z[2] || (z[2] = (
|
|
41542
|
+
onClick: z[2] || (z[2] = (H) => k(S.value[0]))
|
|
41526
41543
|
}, hQ))
|
|
41527
41544
|
]),
|
|
41528
41545
|
n("div", vQ, [
|
|
@@ -41533,7 +41550,7 @@ const {
|
|
|
41533
41550
|
viewBox: "0 0 18 18",
|
|
41534
41551
|
fill: "none",
|
|
41535
41552
|
xmlns: "http://www.w3.org/2000/svg",
|
|
41536
|
-
onClick: z[3] || (z[3] = (
|
|
41553
|
+
onClick: z[3] || (z[3] = (H) => k(S.value[1]))
|
|
41537
41554
|
}, bQ))
|
|
41538
41555
|
]),
|
|
41539
41556
|
n("div", xQ, [
|
|
@@ -41544,7 +41561,7 @@ const {
|
|
|
41544
41561
|
viewBox: "0 0 18 18",
|
|
41545
41562
|
fill: "none",
|
|
41546
41563
|
xmlns: "http://www.w3.org/2000/svg",
|
|
41547
|
-
onClick: z[4] || (z[4] = (
|
|
41564
|
+
onClick: z[4] || (z[4] = (H) => k(S.value[2]))
|
|
41548
41565
|
}, CQ))
|
|
41549
41566
|
]),
|
|
41550
41567
|
kQ,
|
|
@@ -41556,7 +41573,7 @@ const {
|
|
|
41556
41573
|
viewBox: "0 0 18 18",
|
|
41557
41574
|
fill: "none",
|
|
41558
41575
|
xmlns: "http://www.w3.org/2000/svg",
|
|
41559
|
-
onClick: z[5] || (z[5] = (
|
|
41576
|
+
onClick: z[5] || (z[5] = (H) => k(S.value[3]))
|
|
41560
41577
|
}, FQ))
|
|
41561
41578
|
]),
|
|
41562
41579
|
n("div", OQ, [
|
|
@@ -41567,7 +41584,7 @@ const {
|
|
|
41567
41584
|
viewBox: "0 0 18 18",
|
|
41568
41585
|
fill: "none",
|
|
41569
41586
|
xmlns: "http://www.w3.org/2000/svg",
|
|
41570
|
-
onClick: z[6] || (z[6] = (
|
|
41587
|
+
onClick: z[6] || (z[6] = (H) => k(S.value[4]))
|
|
41571
41588
|
}, MQ))
|
|
41572
41589
|
]),
|
|
41573
41590
|
n("div", AQ, [
|
|
@@ -41578,52 +41595,52 @@ const {
|
|
|
41578
41595
|
viewBox: "0 0 18 18",
|
|
41579
41596
|
fill: "none",
|
|
41580
41597
|
xmlns: "http://www.w3.org/2000/svg",
|
|
41581
|
-
onClick: z[7] || (z[7] = (
|
|
41598
|
+
onClick: z[7] || (z[7] = (H) => k(S.value[5]))
|
|
41582
41599
|
}, RQ))
|
|
41583
41600
|
]),
|
|
41584
41601
|
jQ
|
|
41585
41602
|
]),
|
|
41586
|
-
(m(!0), y(K, null, ce(b.value, (
|
|
41587
|
-
key: `i-${
|
|
41603
|
+
(m(!0), y(K, null, ce(b.value, (H) => (m(), y("div", {
|
|
41604
|
+
key: `i-${H.id}`,
|
|
41588
41605
|
class: "row scrollable-row"
|
|
41589
41606
|
}, [
|
|
41590
41607
|
n("div", {
|
|
41591
|
-
class: de(["row team-info", { odd:
|
|
41608
|
+
class: de(["row team-info", { odd: H.isOdd }])
|
|
41592
41609
|
}, [
|
|
41593
41610
|
n("div", zQ, [
|
|
41594
41611
|
n("img", {
|
|
41595
|
-
src:
|
|
41612
|
+
src: H.team_logo,
|
|
41596
41613
|
alt: "team logo"
|
|
41597
41614
|
}, null, 8, DQ)
|
|
41598
41615
|
]),
|
|
41599
|
-
n("div", NQ, E(
|
|
41616
|
+
n("div", NQ, E(H.team_abrev), 1)
|
|
41600
41617
|
], 2),
|
|
41601
41618
|
n("div", {
|
|
41602
|
-
class: de(["row data-info", { odd:
|
|
41603
|
-
}, E(
|
|
41619
|
+
class: de(["row data-info", { odd: H.isOdd }])
|
|
41620
|
+
}, E(H.player_position), 3),
|
|
41604
41621
|
n("div", {
|
|
41605
|
-
class: de(["row data-info", { odd:
|
|
41606
|
-
}, E(
|
|
41622
|
+
class: de(["row data-info", { odd: H.isOdd }])
|
|
41623
|
+
}, E(H.player_age), 3),
|
|
41607
41624
|
n("div", {
|
|
41608
|
-
class: de(["row data-info", { odd:
|
|
41625
|
+
class: de(["row data-info", { odd: H.isOdd }])
|
|
41609
41626
|
}, [
|
|
41610
41627
|
n("img", {
|
|
41611
|
-
src:
|
|
41628
|
+
src: H.player_country_flag,
|
|
41612
41629
|
alt: "player country flag",
|
|
41613
41630
|
class: "country-flag"
|
|
41614
41631
|
}, null, 8, HQ)
|
|
41615
41632
|
], 2),
|
|
41616
41633
|
n("div", {
|
|
41617
|
-
class: de(["row data-info", { odd:
|
|
41618
|
-
}, E(
|
|
41634
|
+
class: de(["row data-info", { odd: H.isOdd }])
|
|
41635
|
+
}, E(H.player_games), 3),
|
|
41619
41636
|
n("div", {
|
|
41620
|
-
class: de(["row data-info", { odd:
|
|
41621
|
-
}, E(
|
|
41637
|
+
class: de(["row data-info", { odd: H.isOdd }])
|
|
41638
|
+
}, E(H.player_min), 3),
|
|
41622
41639
|
n("div", {
|
|
41623
|
-
class: de(["row data-info", { odd:
|
|
41624
|
-
}, E(
|
|
41640
|
+
class: de(["row data-info", { odd: H.isOdd }])
|
|
41641
|
+
}, E(H.league_name), 3),
|
|
41625
41642
|
n("div", {
|
|
41626
|
-
class: de(["row data-info", { odd:
|
|
41643
|
+
class: de(["row data-info", { odd: H.isOdd }])
|
|
41627
41644
|
}, [
|
|
41628
41645
|
C(M(CX), {
|
|
41629
41646
|
icon: "https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png",
|
|
@@ -41638,7 +41655,7 @@ const {
|
|
|
41638
41655
|
"border-color": "#55636e",
|
|
41639
41656
|
"text-value": "Ver videos",
|
|
41640
41657
|
"font-size": "10px",
|
|
41641
|
-
onClick: (Se) => O(
|
|
41658
|
+
onClick: (Se) => O(H)
|
|
41642
41659
|
}, null, 8, ["onClick"])
|
|
41643
41660
|
], 2)
|
|
41644
41661
|
]))), 128))
|
|
@@ -42244,7 +42261,7 @@ const {
|
|
|
42244
42261
|
}
|
|
42245
42262
|
}, F = w(null), I = w(2008);
|
|
42246
42263
|
w("Sin límite");
|
|
42247
|
-
const P = w(null), k = w(null), O = w(null), L = w([]), ne = w(!1),
|
|
42264
|
+
const P = w(null), k = w(null), O = w(null), L = w([]), ne = w(!1), D = w(null), pe = w(null), ve = w([]), _ = w(!1), Y = w([]), le = a;
|
|
42248
42265
|
function Q(xe) {
|
|
42249
42266
|
le("open-media", xe);
|
|
42250
42267
|
}
|
|
@@ -42280,11 +42297,11 @@ const {
|
|
|
42280
42297
|
}
|
|
42281
42298
|
async function fe(xe) {
|
|
42282
42299
|
var Xe, Rt, pa;
|
|
42283
|
-
if (
|
|
42300
|
+
if (D.value || (D.value = []), D.value.some((ma) => ma.player_id === xe.player_id))
|
|
42284
42301
|
o.value.showModal();
|
|
42285
42302
|
else
|
|
42286
42303
|
try {
|
|
42287
|
-
const ma = [xe.player_id, ...
|
|
42304
|
+
const ma = [xe.player_id, ...D.value.map((qt) => qt.player_id)], Ri = await Ge.create({ headers: { Authorization: `${t.token}` } }).post(
|
|
42288
42305
|
// 'https://1km387uzk3.execute-api.us-east-2.amazonaws.com/qa/players/stats',
|
|
42289
42306
|
"https://1km387uzk3.execute-api.us-east-2.amazonaws.com/qa2/players/stats",
|
|
42290
42307
|
{
|
|
@@ -42302,12 +42319,12 @@ const {
|
|
|
42302
42319
|
const qt = (pa = Ri.data.additional_data) == null ? void 0 : pa[xe.player_id];
|
|
42303
42320
|
qt && (xe.season_id = qt.season_id, xe.team_id = qt.team_id);
|
|
42304
42321
|
}
|
|
42305
|
-
Ki.emit("add-player", { ...xe }),
|
|
42322
|
+
Ki.emit("add-player", { ...xe }), D.value = [xe, ...D.value];
|
|
42306
42323
|
} catch (ma) {
|
|
42307
42324
|
console.error("Error al obtener stats de jugadores:", ma), o.value.showModal();
|
|
42308
42325
|
}
|
|
42309
42326
|
}
|
|
42310
|
-
function
|
|
42327
|
+
function N(xe) {
|
|
42311
42328
|
u.value = xe.positionIds, ne.value = !0, F.value = xe, l.value = JSON.parse(JSON.stringify((xe == null ? void 0 : xe.categories) || {}));
|
|
42312
42329
|
}
|
|
42313
42330
|
function oe(xe) {
|
|
@@ -42330,11 +42347,11 @@ const {
|
|
|
42330
42347
|
function Ea(xe) {
|
|
42331
42348
|
Se.value = xe, ne.value = !0;
|
|
42332
42349
|
}
|
|
42333
|
-
const j = w(!1), z = w(null),
|
|
42350
|
+
const j = w(!1), z = w(null), H = w(!0), Se = w([]);
|
|
42334
42351
|
$(
|
|
42335
42352
|
[() => U.value, () => G.value, () => L.value.length],
|
|
42336
42353
|
([xe, Ce, Xe]) => {
|
|
42337
|
-
|
|
42354
|
+
H.value && (Ce && (xe != null && xe.productivityFilters) && Xe || !Ce && Xe) && (Ue(!0), H.value = !1);
|
|
42338
42355
|
},
|
|
42339
42356
|
{ immediate: !0 }
|
|
42340
42357
|
), $(
|
|
@@ -42352,8 +42369,8 @@ const {
|
|
|
42352
42369
|
async function Ue(xe = !1) {
|
|
42353
42370
|
var Ce, Xe, Rt, pa, ma, Eo, Ri, oi, qt, ad;
|
|
42354
42371
|
try {
|
|
42355
|
-
if (j.value = !0, z.value = null,
|
|
42356
|
-
|
|
42372
|
+
if (j.value = !0, z.value = null, D.value = null, pe.value = null, t.isFemaleMode && L.value.some((ct) => ct.is_female !== 1) || L.value.length === 0) {
|
|
42373
|
+
D.value = [], j.value = !1;
|
|
42357
42374
|
return;
|
|
42358
42375
|
}
|
|
42359
42376
|
if (G.value && !((Ce = U.value) != null && Ce.productivityFilters))
|
|
@@ -42390,7 +42407,7 @@ const {
|
|
|
42390
42407
|
// 'https://1km387uzk3.execute-api.us-east-2.amazonaws.com/qa/players/productivity',
|
|
42391
42408
|
X0
|
|
42392
42409
|
);
|
|
42393
|
-
!ni.data.players || ni.data.players.length === 0 ?
|
|
42410
|
+
!ni.data.players || ni.data.players.length === 0 ? D.value = [] : D.value = ni.data.players.map((ct) => ({
|
|
42394
42411
|
...ct
|
|
42395
42412
|
})), setTimeout(() => {
|
|
42396
42413
|
Ki.emit(
|
|
@@ -42451,7 +42468,7 @@ const {
|
|
|
42451
42468
|
dt.value = xe, xe === "graph" && setTimeout(() => {
|
|
42452
42469
|
Ki.emit(
|
|
42453
42470
|
"set-players",
|
|
42454
|
-
|
|
42471
|
+
D.value.map((Ce) => ({
|
|
42455
42472
|
...Ce
|
|
42456
42473
|
}))
|
|
42457
42474
|
);
|
|
@@ -42534,7 +42551,7 @@ const {
|
|
|
42534
42551
|
C(M(WC), {
|
|
42535
42552
|
"default-position-name": x.value ? "Todas las posiciones" : "",
|
|
42536
42553
|
"is-female-mode": x.value,
|
|
42537
|
-
onChangePosition:
|
|
42554
|
+
onChangePosition: N
|
|
42538
42555
|
}, null, 8, ["default-position-name", "is-female-mode"])
|
|
42539
42556
|
], 2),
|
|
42540
42557
|
n("div", {
|
|
@@ -42880,7 +42897,7 @@ const {
|
|
|
42880
42897
|
], 6)
|
|
42881
42898
|
]),
|
|
42882
42899
|
n("div", PK, [
|
|
42883
|
-
|
|
42900
|
+
D.value && D.value.length === 0 ? (m(), y("div", LK, [...Ce[20] || (Ce[20] = [
|
|
42884
42901
|
n("div", { class: "no-results-content" }, [
|
|
42885
42902
|
n("h3", { class: "no-results-title" }, "No existen resultados"),
|
|
42886
42903
|
n("p", { class: "no-results-description" }, [
|
|
@@ -42891,12 +42908,12 @@ const {
|
|
|
42891
42908
|
Ie(" filtros que has seleccionado. ")
|
|
42892
42909
|
])
|
|
42893
42910
|
], -1)
|
|
42894
|
-
])])) :
|
|
42911
|
+
])])) : D.value && D.value.length > 0 ? (m(), ke(or(dt.value === "graph" ? hZ : dt.value === "grid" ? tX : XQ), {
|
|
42895
42912
|
key: 1,
|
|
42896
42913
|
"dynamic-categories": l.value,
|
|
42897
42914
|
"user-id": e.userId,
|
|
42898
42915
|
"type-productivity": G.value ? 1 : 2,
|
|
42899
|
-
"players-scouting":
|
|
42916
|
+
"players-scouting": D.value,
|
|
42900
42917
|
max: pe.value,
|
|
42901
42918
|
"user-type": e.userType,
|
|
42902
42919
|
"is-scouting": e.isScouting,
|
|
@@ -42917,7 +42934,7 @@ const {
|
|
|
42917
42934
|
}, null, 40, ["dynamic-categories", "user-id", "type-productivity", "players-scouting", "max", "user-type", "is-scouting", "is-add-to-list-visible", "component-width", "table-header-mobile", "token", "lists", "is-add-player-visible", "position-ids", "universe-filter", "is-female-mode", "unselected-teams-ids"])) : T("", !0)
|
|
42918
42935
|
])
|
|
42919
42936
|
], 4),
|
|
42920
|
-
|
|
42937
|
+
D.value && D.value.length > 0 ? (m(), y("div", MK, [
|
|
42921
42938
|
n("div", {
|
|
42922
42939
|
role: "button",
|
|
42923
42940
|
class: "button-add-player",
|