@golstats/lilini-player-detection 1.0.83 → 1.0.85

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