@golstats/gsc-players-tracking 1.0.73 → 1.0.74

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.
@@ -1,4 +1,4 @@
1
- import { ref as T, watch as q, computed as O, createElementBlock as p, onMounted as tt, onBeforeMount as yi, openBlock as u, normalizeStyle as M, createElementVNode as l, createVNode as F, renderSlot as ct, normalizeClass as b, Transition as dt, withCtx as xe, withDirectives as ne, createCommentVNode as S, Fragment as A, renderList as re, vShow as Fe, unref as R, useCssVars as Be, toDisplayString as x, pushScopeId as Ve, popScopeId as Re, mergeProps as Ie, resolveComponent as Oe, onUnmounted as Bt, createBlock as Te, defineComponent as Vs, normalizeProps as wa, guardReactiveProps as Ca, defineAsyncComponent as di, KeepAlive as Wl, resolveDynamicComponent as gi, withModifiers as Ne, vModelText as Mt, createTextVNode as ue, createStaticVNode as Qt, vModelCheckbox as ps, vModelSelect as _g, vModelRadio as At, onBeforeUnmount as Sg, Teleport as wg, nextTick as es, vModelDynamic as d5, inject as Ai, reactive as Oo, h as Fs, provide as oi, cloneVNode as Up } from "vue";
1
+ import { ref as T, watch as G, computed as O, createElementBlock as p, onMounted as tt, onBeforeMount as yi, openBlock as u, normalizeStyle as M, createElementVNode as l, createVNode as F, renderSlot as ct, normalizeClass as b, Transition as dt, withCtx as xe, withDirectives as ne, createCommentVNode as S, Fragment as A, renderList as re, vShow as Fe, unref as R, useCssVars as Be, toDisplayString as x, pushScopeId as Ve, popScopeId as Re, mergeProps as Ie, resolveComponent as Oe, onUnmounted as Bt, createBlock as Te, defineComponent as Vs, normalizeProps as wa, guardReactiveProps as Ca, defineAsyncComponent as di, KeepAlive as Wl, resolveDynamicComponent as gi, withModifiers as Ne, vModelText as Mt, createTextVNode as ue, createStaticVNode as Qt, vModelCheckbox as ps, vModelSelect as _g, vModelRadio as At, onBeforeUnmount as Sg, Teleport as wg, nextTick as es, vModelDynamic as d5, inject as Ai, reactive as Oo, h as Fs, provide as oi, cloneVNode as Up } from "vue";
2
2
  const c5 = (e, a) => {
3
3
  const t = e.__vccOpts || e;
4
4
  for (const [i, s] of a)
@@ -318,7 +318,7 @@ const _5 = /* @__PURE__ */ c5(Iu, [["render", b5], ["__scopeId", "data-v-f3ee6b2
318
318
  emits: ["input", "click-ready", "update:modelValue"],
319
319
  setup(e, { emit: a }) {
320
320
  const t = e, i = T({}), s = T(null), o = T(t.isMultipleOption ? -1 : 0), r = T(!1);
321
- q(
321
+ G(
322
322
  () => t.items,
323
323
  (f, g) => {
324
324
  if (!t.modelValue && (!t.onlyFirstTime || !g || !g.length) && f && f.length) {
@@ -333,7 +333,7 @@ const _5 = /* @__PURE__ */ c5(Iu, [["render", b5], ["__scopeId", "data-v-f3ee6b2
333
333
  }
334
334
  },
335
335
  { immediate: !0 }
336
- ), q(
336
+ ), G(
337
337
  () => t.modelValue,
338
338
  (f) => {
339
339
  if (f) {
@@ -791,7 +791,7 @@ const N5 = /* @__PURE__ */ $5(Ou, [["render", L5], ["__scopeId", "data-v-f3ee6b2
791
791
  emits: ["input", "click-ready", "update:modelValue"],
792
792
  setup(e, { emit: a }) {
793
793
  const t = e, i = T({}), s = T(null), o = T(t.isMultipleOption ? -1 : 0), r = T(!1);
794
- q(
794
+ G(
795
795
  () => t.items,
796
796
  (f, g) => {
797
797
  if (!t.modelValue && (!t.onlyFirstTime || !g || !g.length) && f && f.length) {
@@ -806,7 +806,7 @@ const N5 = /* @__PURE__ */ $5(Ou, [["render", L5], ["__scopeId", "data-v-f3ee6b2
806
806
  }
807
807
  },
808
808
  { immediate: !0 }
809
- ), q(
809
+ ), G(
810
810
  () => t.modelValue,
811
811
  (f) => {
812
812
  if (f) {
@@ -1075,23 +1075,28 @@ const N5 = /* @__PURE__ */ $5(Ou, [["render", L5], ["__scopeId", "data-v-f3ee6b2
1075
1075
  const y = t.isFemaleMode ? r.value.filter((_) => _.is_female) : r.value;
1076
1076
  return y.find((_) => _.seasonsIds.has(t.currentSeasonId)) || y[0];
1077
1077
  }), c = O(() => t.isFemaleMode ? r.value.filter((y) => y.is_female) : t.areFemaleVisible ? s.value : s.value.filter((y) => !y.is_female));
1078
- q(
1078
+ G(
1079
1079
  () => t.isClubesActive,
1080
1080
  () => {
1081
1081
  d();
1082
1082
  },
1083
1083
  { immediate: !0 }
1084
- ), q(
1084
+ ), G(
1085
1085
  () => t.routeName,
1086
1086
  () => {
1087
1087
  d();
1088
1088
  },
1089
1089
  { immediate: !0 }
1090
- ), q(
1090
+ ), G(
1091
1091
  () => t.apiUrl,
1092
1092
  () => {
1093
1093
  m();
1094
1094
  }
1095
+ ), G(
1096
+ () => t.token,
1097
+ () => {
1098
+ m();
1099
+ }
1095
1100
  );
1096
1101
  function d() {
1097
1102
  s.value.forEach((y) => {
@@ -1175,7 +1180,7 @@ const N5 = /* @__PURE__ */ $5(Ou, [["render", L5], ["__scopeId", "data-v-f3ee6b2
1175
1180
  }, 16, ["list-height", "model-value", "items"])
1176
1181
  ], 4));
1177
1182
  }
1178
- }, a6 = /* @__PURE__ */ Z5(t6, [["__scopeId", "data-v-4ba6e84c"]]);
1183
+ }, a6 = /* @__PURE__ */ Z5(t6, [["__scopeId", "data-v-0d72b2d7"]]);
1179
1184
  function i6(e) {
1180
1185
  const a = T({ width: 0, height: 0 });
1181
1186
  function t() {
@@ -2965,7 +2970,7 @@ const r8 = /* @__PURE__ */ xa(Nu, [["render", o8], ["__scopeId", "data-v-906c50c
2965
2970
  };
2966
2971
  return (t.boxPosition === "left" || t.boxPosition === "right") && (d[`margin-${t.boxPosition}`] = t.isBoxOnly ? "0" : t.teamsIds ? "8px" : "10px"), d;
2967
2972
  });
2968
- q(
2973
+ G(
2969
2974
  () => t.modelValue,
2970
2975
  (d) => {
2971
2976
  d !== i.value && (i.value = d);
@@ -5044,7 +5049,7 @@ const {
5044
5049
  emits: ["selectList", "close", "createNewList", "playerAdded"],
5045
5050
  setup(e, { emit: a }) {
5046
5051
  const t = e, i = T(null), s = T(!0), o = T(!1), r = a;
5047
- q(
5052
+ G(
5048
5053
  () => t.isModalOpen,
5049
5054
  (v) => {
5050
5055
  s.value = !v;
@@ -7458,7 +7463,7 @@ const {
7458
7463
  "--gap-static-row": `${j.value ? "8px" : "18px"}`,
7459
7464
  "--width-static-column": `${j.value ? "65%" : "436px"}`
7460
7465
  })), j = O(() => d.value < 600);
7461
- q(
7466
+ G(
7462
7467
  () => t.players,
7463
7468
  (k) => {
7464
7469
  k && k.length && (o.value = k.map((z, W) => {
@@ -7483,14 +7488,14 @@ const {
7483
7488
  })));
7484
7489
  },
7485
7490
  { immediate: !0, deep: !0 }
7486
- ), q(
7491
+ ), G(
7487
7492
  () => t.isEditMode,
7488
7493
  (k) => {
7489
7494
  k && o.value.forEach((z) => {
7490
7495
  z.isSelected = !1;
7491
7496
  });
7492
7497
  }
7493
- ), q(
7498
+ ), G(
7494
7499
  () => y.value,
7495
7500
  (k) => {
7496
7501
  if (k) {
@@ -7507,11 +7512,11 @@ const {
7507
7512
  });
7508
7513
  },
7509
7514
  { immediate: !0, deep: !0 }
7510
- ), q(
7515
+ ), G(
7511
7516
  m,
7512
7517
  (k) => {
7513
7518
  const z = document.querySelectorAll(".static-row")[h.value + 1];
7514
- z && (z.style.marginTop = `${k}px`), t.isGeneral ? he(h.value, k) : n.value && n.value.setMarginTopDetails(h.value, k), k === 0 && f.value && G(f.value);
7519
+ z && (z.style.marginTop = `${k}px`), t.isGeneral ? he(h.value, k) : n.value && n.value.setMarginTopDetails(h.value, k), k === 0 && f.value && q(f.value);
7515
7520
  }
7516
7521
  );
7517
7522
  function he(k, z) {
@@ -7628,7 +7633,7 @@ const {
7628
7633
  function te(k) {
7629
7634
  a("show-graph", k);
7630
7635
  }
7631
- function G(k) {
7636
+ function q(k) {
7632
7637
  if (k.isExpanded) {
7633
7638
  k.isExpanded = !1, f.value = null;
7634
7639
  return;
@@ -7692,7 +7697,7 @@ const {
7692
7697
  }
7693
7698
  });
7694
7699
  }
7695
- q(
7700
+ G(
7696
7701
  () => [t.players, t.isGeneral],
7697
7702
  () => {
7698
7703
  ze();
@@ -7947,7 +7952,7 @@ const {
7947
7952
  viewBox: "0 0 12 8",
7948
7953
  fill: "#D9D9D9",
7949
7954
  xmlns: "http://www.w3.org/2000/svg",
7950
- onClick: ($e) => G(W)
7955
+ onClick: ($e) => q(W)
7951
7956
  }, mC, 10, fC))
7952
7957
  ])
7953
7958
  ], 6))), 128))
@@ -8703,7 +8708,7 @@ const XC = /* @__PURE__ */ xa(ZC, [["render", KC], ["__scopeId", "data-v-4639840
8703
8708
  };
8704
8709
  return (t.boxPosition === "left" || t.boxPosition === "right") && (d[`margin-${t.boxPosition}`] = t.isBoxOnly ? "0" : t.teamsIds ? "8px" : "10px"), d;
8705
8710
  });
8706
- q(
8711
+ G(
8707
8712
  () => t.modelValue,
8708
8713
  (d) => {
8709
8714
  d !== i.value && (i.value = d);
@@ -10504,7 +10509,7 @@ const {
10504
10509
  emits: ["selectList", "close", "createNewList", "playerAdded"],
10505
10510
  setup(e, { emit: a }) {
10506
10511
  const t = e, i = T(null), s = T(!0), o = T(!1), r = a;
10507
- q(
10512
+ G(
10508
10513
  () => t.isModalOpen,
10509
10514
  (v) => {
10510
10515
  s.value = !v;
@@ -12810,7 +12815,7 @@ const gv = /* @__PURE__ */ HF(JF), fs = (e, a) => {
12810
12815
  const J = s.value.filter((X) => X.isSelectedGraphic);
12811
12816
  return a("change-selected-players", J), J;
12812
12817
  }), h = O(() => t.componentWidth < 450 ? t.isRankingVisible && t.isAddToListVisible ? "20px 20px 25px min-content 1fr min-content min-content" : !t.isRankingVisible && !t.isAddToListVisible ? "min-content 1fr min-content min-content" : t.isRankingVisible && !t.isAddToListVisible || !t.isRankingVisible && t.isAddToListVisible ? "20px 25px min-content 1fr min-content min-content" : "20px 20px 20px min-content 1fr min-content min-content" : t.isRankingVisible && t.isAddToListVisible ? "50px 60px 50px min-content 1fr min-content min-content" : !t.isRankingVisible && !t.isAddToListVisible ? "min-content 1fr min-content min-content" : t.isRankingVisible && !t.isAddToListVisible ? "50px 50px min-content 1fr min-content min-content" : !t.isRankingVisible && t.isAddToListVisible ? "60px 50px min-content 1fr min-content min-content" : "50px 60px 50px min-content 1fr min-content min-content");
12813
- q(
12818
+ G(
12814
12819
  () => t.players,
12815
12820
  (J) => {
12816
12821
  if (J)
@@ -13236,7 +13241,7 @@ const gv = /* @__PURE__ */ HF(JF), fs = (e, a) => {
13236
13241
  };
13237
13242
  return (t.boxPosition === "left" || t.boxPosition === "right") && (d[`margin-${t.boxPosition}`] = t.isBoxOnly ? "0" : t.teamsIds ? "8px" : "10px"), d;
13238
13243
  });
13239
- q(
13244
+ G(
13240
13245
  () => t.modelValue,
13241
13246
  (d) => {
13242
13247
  d !== i.value && (i.value = d);
@@ -13455,13 +13460,13 @@ const gv = /* @__PURE__ */ HF(JF), fs = (e, a) => {
13455
13460
  var _;
13456
13461
  return (_ = t.productivityCategories) == null ? void 0 : _.possession.categories.reduce((w, C) => (C.isSelected && w++, w), 0);
13457
13462
  }), v = O(() => t.isFromTemplates || t.isForTemplateForm);
13458
- q(
13463
+ G(
13459
13464
  () => t.productivityCategories,
13460
13465
  (_) => {
13461
13466
  _.offensesConditions && (r.value.areYellowCardsSelected = _.offensesConditions.areYellowCardsSelected, r.value.areRedCardsSelected = _.offensesConditions.areRedCardsSelected, r.value.areFoulsCommittedSelected = _.offensesConditions.areFoulsCommittedSelected);
13462
13467
  },
13463
13468
  { deep: !0, immediate: !0 }
13464
- ), q(
13469
+ ), G(
13465
13470
  r,
13466
13471
  (_) => {
13467
13472
  a("update:offensesConditions", _);
@@ -13803,7 +13808,7 @@ const gv = /* @__PURE__ */ HF(JF), fs = (e, a) => {
13803
13808
  "42275f9c": e.buttonsBorderColorActive
13804
13809
  }));
13805
13810
  const i = T("");
13806
- q(
13811
+ G(
13807
13812
  () => t.statisticType,
13808
13813
  (v) => {
13809
13814
  i.value = v;
@@ -13811,7 +13816,7 @@ const gv = /* @__PURE__ */ HF(JF), fs = (e, a) => {
13811
13816
  {
13812
13817
  immediate: !0
13813
13818
  }
13814
- ), q(
13819
+ ), G(
13815
13820
  () => i.value,
13816
13821
  (v) => {
13817
13822
  t.statisticType = v, a("change-statistic-type", v);
@@ -13997,7 +14002,7 @@ const gv = /* @__PURE__ */ HF(JF), fs = (e, a) => {
13997
14002
  emits: ["change-filters-selected", "update:filters"],
13998
14003
  setup(e, { emit: a }) {
13999
14004
  const t = e, i = T(!1), s = O(() => t.tournaments.filter((n) => n.isSelected).length);
14000
- q(
14005
+ G(
14001
14006
  () => t.tournaments,
14002
14007
  (n) => {
14003
14008
  const c = n.filter((d) => d.isSelected);
@@ -14112,7 +14117,7 @@ const gv = /* @__PURE__ */ HF(JF), fs = (e, a) => {
14112
14117
  "--svg-width": `${t.svgWidth}px`,
14113
14118
  "--svg-height": `${t.svgHeight}px`
14114
14119
  }));
14115
- q(
14120
+ G(
14116
14121
  () => t.categories,
14117
14122
  (o) => {
14118
14123
  const r = o.filter((n) => n.isSelected);
@@ -14600,7 +14605,7 @@ const zE = /* @__PURE__ */ EE(t1, [["render", NE], ["__scopeId", "data-v-f3ee6b2
14600
14605
  emits: ["input", "click-ready", "update:modelValue"],
14601
14606
  setup(e, { emit: a }) {
14602
14607
  const t = e, i = T({}), s = T(null), o = T(t.isMultipleOption ? -1 : 0), r = T(!1);
14603
- q(
14608
+ G(
14604
14609
  () => t.items,
14605
14610
  (f, g) => {
14606
14611
  if (!t.modelValue && (!t.onlyFirstTime || !g || !g.length) && f && f.length) {
@@ -14615,7 +14620,7 @@ const zE = /* @__PURE__ */ EE(t1, [["render", NE], ["__scopeId", "data-v-f3ee6b2
14615
14620
  }
14616
14621
  },
14617
14622
  { immediate: !0 }
14618
- ), q(
14623
+ ), G(
14619
14624
  () => t.modelValue,
14620
14625
  (f) => {
14621
14626
  if (f) {
@@ -14801,7 +14806,7 @@ const zE = /* @__PURE__ */ EE(t1, [["render", NE], ["__scopeId", "data-v-f3ee6b2
14801
14806
  emits: ["update:universeFilters"],
14802
14807
  setup(e, { expose: a, emit: t }) {
14803
14808
  const i = e, s = T(!1), o = T(!1), r = T(!1), n = T({ statistics: {} });
14804
- q(
14809
+ G(
14805
14810
  () => i.universeFilters,
14806
14811
  (f) => {
14807
14812
  n.value = {
@@ -14811,7 +14816,7 @@ const zE = /* @__PURE__ */ EE(t1, [["render", NE], ["__scopeId", "data-v-f3ee6b2
14811
14816
  };
14812
14817
  },
14813
14818
  { deep: !0, immediate: !0 }
14814
- ), q(
14819
+ ), G(
14815
14820
  () => n,
14816
14821
  (f) => {
14817
14822
  s.value = !f.value.minutesPlayed || Number(f.value.minutesPlayed) === 0, o.value = !f.value.percentMinutesPlayed || Number(f.value.percentMinutesPlayed) === 0, r.value = !f.value.lastMonths || Number(f.value.lastMonths) === 0, t("update:universeFilters", f);
@@ -15416,7 +15421,7 @@ const _v = /* @__PURE__ */ bv(a1, [["render", EA]]), AA = { class: "template-dis
15416
15421
  minLimit: 0,
15417
15422
  maxLimit: 0
15418
15423
  });
15419
- q(
15424
+ G(
15420
15425
  () => i.value,
15421
15426
  (o) => {
15422
15427
  a("update:distanceFilters", o);
@@ -15424,7 +15429,7 @@ const _v = /* @__PURE__ */ bv(a1, [["render", EA]]), AA = { class: "template-dis
15424
15429
  {
15425
15430
  deep: !0
15426
15431
  }
15427
- ), q(
15432
+ ), G(
15428
15433
  () => t.distance,
15429
15434
  (o) => {
15430
15435
  i.value.minValue = o.minValue, i.value.maxValue = o.maxValue, i.value.minLimit = o.minLimit, i.value.maxLimit = o.maxLimit;
@@ -15464,13 +15469,13 @@ const _v = /* @__PURE__ */ bv(a1, [["render", EA]]), AA = { class: "template-dis
15464
15469
  emits: ["update:gamesFilters"],
15465
15470
  setup(e, { emit: a }) {
15466
15471
  const t = e, i = T(!1), s = O(() => t.gamesFilters.filter((r) => r.isSelected).length);
15467
- q(
15472
+ G(
15468
15473
  () => t.gamesFilters,
15469
15474
  (r) => {
15470
15475
  a("update:gamesFilters", r);
15471
15476
  },
15472
15477
  { deep: !0 }
15473
- ), q(
15478
+ ), G(
15474
15479
  s,
15475
15480
  (r) => {
15476
15481
  i.value = r === t.gamesFilters.length, a("update:gamesFilters", t.gamesFilters);
@@ -15945,7 +15950,7 @@ const rI = /* @__PURE__ */ YA(s1, [["render", oI], ["__scopeId", "data-v-f3ee6b2
15945
15950
  };
15946
15951
  return (t.boxPosition === "left" || t.boxPosition === "right") && (d[`margin-${t.boxPosition}`] = t.isBoxOnly ? "0" : t.teamsIds ? "8px" : "10px"), d;
15947
15952
  });
15948
- q(
15953
+ G(
15949
15954
  () => t.modelValue,
15950
15955
  (d) => {
15951
15956
  d !== i.value && (i.value = d);
@@ -16593,12 +16598,12 @@ const qI = /* @__PURE__ */ vI(o1, [["render", GI], ["__scopeId", "data-v-b85699b
16593
16598
  const i = T(t.selectedButtonIndex), s = O(() => ({
16594
16599
  "--grid-template-columns": `repeat(${t.buttons.length}, 1fr)`
16595
16600
  }));
16596
- q(
16601
+ G(
16597
16602
  () => t.selectedButtonIndex,
16598
16603
  (r) => {
16599
16604
  i.value = r;
16600
16605
  }
16601
- ), q(i, (r, n) => {
16606
+ ), G(i, (r, n) => {
16602
16607
  r !== n && a("change", { index: r, button: t.buttons[r] });
16603
16608
  });
16604
16609
  function o(r) {
@@ -18792,7 +18797,7 @@ const tR = /* @__PURE__ */ new Set([1]), aR = {
18792
18797
  emits: ["update:modelValue"],
18793
18798
  setup(e, { emit: a }) {
18794
18799
  const t = e, i = T(null);
18795
- q(
18800
+ G(
18796
18801
  () => t.modelValue,
18797
18802
  () => {
18798
18803
  s();
@@ -18891,21 +18896,21 @@ const tR = /* @__PURE__ */ new Set([1]), aR = {
18891
18896
  const I = E[0];
18892
18897
  return (!I || I.id !== 0) && E.unshift(o), E.sort((V, L) => V.id - L.id), E;
18893
18898
  }), w = O(() => i.season && i.season.tournamentId && tR.has(i.season.tournamentId) || i.filters && i.filters.isEligibilitySwitchVisible);
18894
- q(
18899
+ G(
18895
18900
  y,
18896
18901
  (E) => {
18897
18902
  const I = E.reduce((V, L, ce) => (ce !== 0 && L.isSelected && V++, V), 0);
18898
18903
  I === y.value.length - 1 && (E[0].isSelected = !0), E[0] && E[0].isSelected ? h.value = "Todas las nacionalidades" : h.value = `${I} seleccionadas`, j();
18899
18904
  },
18900
18905
  { immediate: !0, deep: !0 }
18901
- ), q(
18906
+ ), G(
18902
18907
  _,
18903
18908
  (E) => {
18904
18909
  const I = E.reduce((V, L, ce) => (ce !== 0 && L.isSelected && V++, V), 0);
18905
18910
  I === _.value.length - 1 && (E[0].isSelected = !0), E[0] && E[0].isSelected ? v.value = "Todas las posiciones" : v.value = `${I} seleccionadas`, j();
18906
18911
  },
18907
18912
  { immediate: !0, deep: !0 }
18908
- ), q(
18913
+ ), G(
18909
18914
  () => i.filters,
18910
18915
  (E) => {
18911
18916
  if (E && E.availableYears) {
@@ -18914,12 +18919,12 @@ const tR = /* @__PURE__ */ new Set([1]), aR = {
18914
18919
  }
18915
18920
  },
18916
18921
  { immediate: !0, deep: !0 }
18917
- ), q(
18922
+ ), G(
18918
18923
  () => r.value.isEligibilitySelected,
18919
18924
  () => {
18920
18925
  j();
18921
18926
  }
18922
- ), q(
18927
+ ), G(
18923
18928
  () => i.season,
18924
18929
  (E) => {
18925
18930
  E && E.id !== g.value && !i.awaitForFilters && (g.value = E.id, C(E));
@@ -18931,7 +18936,7 @@ const tR = /* @__PURE__ */ new Set([1]), aR = {
18931
18936
  if (E && E.id) {
18932
18937
  const I = /* @__PURE__ */ new Set(), V = await Q(E.id), L = /* @__PURE__ */ new Date(), ce = [], ke = /* @__PURE__ */ new Map(), Ae = /* @__PURE__ */ new Map();
18933
18938
  V.forEach((P) => {
18934
- const H = new Date(P.dob), te = QV(H), G = eR({
18939
+ const H = new Date(P.dob), te = QV(H), q = eR({
18935
18940
  start: H,
18936
18941
  end: L
18937
18942
  });
@@ -18943,7 +18948,7 @@ const tR = /* @__PURE__ */ new Set([1]), aR = {
18943
18948
  id: P.position_id,
18944
18949
  isSelected: !0,
18945
18950
  name: OV[`${P.position_id}`]
18946
- }), I.add(te), ce.push(G.years);
18951
+ }), I.add(te), ce.push(q.years);
18947
18952
  }), r.value.minAge = Math.min(...ce), r.value.maxAge = Math.max(...ce), r.value.availableYears = [...I].sort((P, H) => H - P), f.value = r.value.availableYears[0], r.value.nationalities = [...ke.values()], r.value.positions = [...Ae.values()], d.value.min = r.value.minAge, d.value.max = r.value.maxAge;
18948
18953
  }
18949
18954
  } catch (I) {
@@ -19327,7 +19332,7 @@ const tR = /* @__PURE__ */ new Set([1]), aR = {
19327
19332
  emits: ["update:resultsFilters"],
19328
19333
  setup(e, { emit: a }) {
19329
19334
  const t = e, i = O(() => t.resultsFilters.results.filter((s) => s.isSelected).length);
19330
- return q(
19335
+ return G(
19331
19336
  () => t.resultsFilters,
19332
19337
  (s) => {
19333
19338
  a("update:resultsFilters", s);
@@ -19718,11 +19723,11 @@ const YR = { class: "dropdown" }, KR = { class: "selected-item" }, XR = {
19718
19723
  },
19719
19724
  setup(e) {
19720
19725
  const a = e, t = di(
19721
- () => import("./FilterSubcategories-1f65c851-CWnk_SkS-DUUkFcIv-CAqqLmR4.js")
19726
+ () => import("./FilterSubcategories-1f65c851-CWnk_SkS-DUUkFcIv-DXfZ_Zyg.js")
19722
19727
  ), i = di(
19723
- () => import("./FilterConditions-cd420512-DCSDH7YW-B8jHT8XQ-D8uaRZpL.js")
19728
+ () => import("./FilterConditions-cd420512-DCSDH7YW-B8jHT8XQ-zK5DCiJs.js")
19724
19729
  ), s = di(
19725
- () => import("./FilterField-a29b1541-CU71K4BQ-BkW7jQ6c-C-pQ_GXE.js")
19730
+ () => import("./FilterField-a29b1541-CU71K4BQ-BkW7jQ6c-8Fng90Xx.js")
19726
19731
  ), o = [
19727
19732
  {
19728
19733
  name: "Sub categorías",
@@ -20281,11 +20286,11 @@ const YR = { class: "dropdown" }, KR = { class: "selected-item" }, XR = {
20281
20286
  }), _ = T([]);
20282
20287
  T({});
20283
20288
  const w = T(null);
20284
- q(h, (P) => {
20289
+ G(h, (P) => {
20285
20290
  v.value.numberSeasonSelectedIndex = v.value.seasons.findIndex(
20286
20291
  (H) => H.id === P.id
20287
20292
  ), P.arrayMatchDays ? (g.value = P.arrayMatchDays[0] || {}, f.value = P.arrayTeams[0] || {}) : (J(P), X(P));
20288
- }), q(f, () => {
20293
+ }), G(f, () => {
20289
20294
  setTimeout(() => {
20290
20295
  h.value.mapPlayersByTeam && (!f.value.arrayPlayers || !f.value.arrayPlayers.length) && (f.value.arrayPlayers = h.value.mapPlayersByTeam.get(
20291
20296
  f.value.team_id
@@ -20304,9 +20309,9 @@ const YR = { class: "dropdown" }, KR = { class: "selected-item" }, XR = {
20304
20309
  const P = {
20305
20310
  Authorization: zd() || t.token
20306
20311
  }, H = {}.API_TOURNAMENTS || t.tournamentsUrl, te = await Ao.get(H, { headers: P });
20307
- return te.data ? te.data.map((G) => ({
20308
- ...G.tournament,
20309
- seasons: G.seasons
20312
+ return te.data ? te.data.map((q) => ({
20313
+ ...q.tournament,
20314
+ seasons: q.seasons
20310
20315
  })) : [];
20311
20316
  } catch (P) {
20312
20317
  return Promise.reject(P);
@@ -20314,20 +20319,20 @@ const YR = { class: "dropdown" }, KR = { class: "selected-item" }, XR = {
20314
20319
  }
20315
20320
  async function Q(P, H, te = "") {
20316
20321
  a("loading-data");
20317
- let G = te;
20322
+ let q = te;
20318
20323
  try {
20319
- G || (G = {}.API_CALENDAR_GAMES_BY_SEASON || t.gamesUrl, P.forEach((ie, $) => {
20320
- G += `${$ === 0 ? "" : "&"}seasons=${ie}`;
20324
+ q || (q = {}.API_CALENDAR_GAMES_BY_SEASON || t.gamesUrl, P.forEach((ie, $) => {
20325
+ q += `${$ === 0 ? "" : "&"}seasons=${ie}`;
20321
20326
  }));
20322
20327
  const ae = {
20323
20328
  Authorization: zd() || t.token
20324
20329
  }, {
20325
20330
  data: { data: Pe, teams: ee }
20326
- } = await Ao.get(G, { headers: ae });
20331
+ } = await Ao.get(q, { headers: ae });
20327
20332
  return { seasonsAndGames: Pe, seasonsAndTeams: ee };
20328
20333
  } catch (ae) {
20329
20334
  if (H > 0)
20330
- return Q(P, H - 1, G);
20335
+ return Q(P, H - 1, q);
20331
20336
  throw new Error(ae);
20332
20337
  } finally {
20333
20338
  a("loading-data");
@@ -20337,8 +20342,8 @@ const YR = { class: "dropdown" }, KR = { class: "selected-item" }, XR = {
20337
20342
  try {
20338
20343
  const H = {
20339
20344
  Authorization: zd() || t.token
20340
- }, te = ` ${{}.API_PLAYERS_BY_SEASON || t.playersUrl}${P.seasonId}`, G = await Ao.get(te, { headers: H });
20341
- return G.data ? G.data.players : [];
20345
+ }, te = ` ${{}.API_PLAYERS_BY_SEASON || t.playersUrl}${P.seasonId}`, q = await Ao.get(te, { headers: H });
20346
+ return q.data ? q.data.players : [];
20342
20347
  } catch (H) {
20343
20348
  return Promise.reject(H);
20344
20349
  }
@@ -20351,11 +20356,11 @@ const YR = { class: "dropdown" }, KR = { class: "selected-item" }, XR = {
20351
20356
  ...P.related_seasons.map((ee) => ee.id)
20352
20357
  ],
20353
20358
  3
20354
- ), G = te.find(
20359
+ ), q = te.find(
20355
20360
  (ee) => ee._id === P.id
20356
20361
  );
20357
20362
  h.value.arrayTeams = [], h.value.mapTeams = /* @__PURE__ */ new Map();
20358
- const ae = G.teams.reduce((ee, ie) => (h.value.arrayTeams.push(ie), h.value.mapTeams.set(ie.team_id, {
20363
+ const ae = q.teams.reduce((ee, ie) => (h.value.arrayTeams.push(ie), h.value.mapTeams.set(ie.team_id, {
20359
20364
  name: ie.colloquial_name,
20360
20365
  acronym: ie.acronym,
20361
20366
  logo: ie.logo,
@@ -20406,17 +20411,17 @@ const YR = { class: "dropdown" }, KR = { class: "selected-item" }, XR = {
20406
20411
  async function X(P) {
20407
20412
  try {
20408
20413
  const H = await I(P.id);
20409
- h.value.mapPlayers = /* @__PURE__ */ new Map(), h.value.mapPlayersByTeam = H.reduce((te, G) => {
20410
- h.value.mapPlayers.set(G.player_id, {
20411
- id: G.player_id,
20412
- name: G.player_name,
20413
- shortName: G.shortName,
20414
- photo: G.player_photo,
20415
- teamId: G.team_id,
20416
- positionId: G.position_id
20414
+ h.value.mapPlayers = /* @__PURE__ */ new Map(), h.value.mapPlayersByTeam = H.reduce((te, q) => {
20415
+ h.value.mapPlayers.set(q.player_id, {
20416
+ id: q.player_id,
20417
+ name: q.player_name,
20418
+ shortName: q.shortName,
20419
+ photo: q.player_photo,
20420
+ teamId: q.team_id,
20421
+ positionId: q.position_id
20417
20422
  });
20418
- const ae = te.get(G.team_id);
20419
- return ae ? ae.push(G) : te.set(G.team_id, [G]), te;
20423
+ const ae = te.get(q.team_id);
20424
+ return ae ? ae.push(q) : te.set(q.team_id, [q]), te;
20420
20425
  }, /* @__PURE__ */ new Map());
20421
20426
  } catch (H) {
20422
20427
  throw new Error(H);
@@ -20463,7 +20468,7 @@ const YR = { class: "dropdown" }, KR = { class: "selected-item" }, XR = {
20463
20468
  isEmpty: !1
20464
20469
  }
20465
20470
  );
20466
- const te = /* @__PURE__ */ new Map(), G = "Resumen", ae = "Todas sus jugadas", Pe = y.value.player.reduce(
20471
+ const te = /* @__PURE__ */ new Map(), q = "Resumen", ae = "Todas sus jugadas", Pe = y.value.player.reduce(
20467
20472
  (ie, $) => {
20468
20473
  const se = Z($);
20469
20474
  return se.forEach((U) => {
@@ -20481,16 +20486,16 @@ const YR = { class: "dropdown" }, KR = { class: "selected-item" }, XR = {
20481
20486
  []
20482
20487
  );
20483
20488
  y.value.games.unshift({
20484
- name: G,
20489
+ name: q,
20485
20490
  arrayCategoriesIds: r.games,
20486
20491
  booleanIsBestPlays: !0
20487
20492
  }), y.value.team.unshift({
20488
- name: G,
20493
+ name: q,
20489
20494
  arrayCategoriesIds: r.team,
20490
20495
  booleanIsBestPlays: !0
20491
20496
  }), y.value.player.unshift(
20492
20497
  {
20493
- name: G,
20498
+ name: q,
20494
20499
  arrayCategoriesIds: r.player.regular,
20495
20500
  booleanIsBestPlays: !0
20496
20501
  },
@@ -20501,7 +20506,7 @@ const YR = { class: "dropdown" }, KR = { class: "selected-item" }, XR = {
20501
20506
  }
20502
20507
  ), y.value.goalkeeper.unshift(
20503
20508
  {
20504
- name: G,
20509
+ name: q,
20505
20510
  arrayCategoriesIds: r.player.goalkeeper,
20506
20511
  booleanIsBestPlays: !0
20507
20512
  },
@@ -20516,11 +20521,11 @@ const YR = { class: "dropdown" }, KR = { class: "selected-item" }, XR = {
20516
20521
  throw new Error(P);
20517
20522
  }
20518
20523
  }
20519
- function he(P, H = 0, te = /* @__PURE__ */ new Map(), G = !1, ae = {}, Pe = []) {
20524
+ function he(P, H = 0, te = /* @__PURE__ */ new Map(), q = !1, ae = {}, Pe = []) {
20520
20525
  if (!P.group_id)
20521
20526
  return;
20522
20527
  let ee = te.get(H);
20523
- const ie = G ? `${P.id_category}_r` : P.id_category;
20528
+ const ie = q ? `${P.id_category}_r` : P.id_category;
20524
20529
  P.id_category && Pe.push(P.id_category);
20525
20530
  let $ = {
20526
20531
  ids: [ie],
@@ -20553,7 +20558,7 @@ const YR = { class: "dropdown" }, KR = { class: "selected-item" }, XR = {
20553
20558
  se,
20554
20559
  H + 1,
20555
20560
  te,
20556
- G,
20561
+ q,
20557
20562
  $,
20558
20563
  Pe
20559
20564
  );
@@ -20574,32 +20579,32 @@ const YR = { class: "dropdown" }, KR = { class: "selected-item" }, XR = {
20574
20579
  if (H.booleanIsBestPlays)
20575
20580
  return H.arrayCategoriesIds;
20576
20581
  const te = { total: [], toRemove: [] };
20577
- if (H.subcategoryGroups && H.subcategoryGroups.length ? H.subcategoryGroups[0].forEach((G) => {
20578
- E(G, null, te);
20579
- }) : (H.ids && te.total.push(...H.ids), H.rival_ids && H.rival_ids.forEach((G) => {
20580
- te.total.push(`${G}_r`);
20581
- })), te.total = te.total.reduce((G, ae) => (te.toRemove.includes(ae) || G.push(ae), G), []), !P) {
20582
- const G = H.name.toLowerCase().includes("recibid");
20583
- w.value.isRivalSubject = G, w.value.avoidCategorySingleName = G, w.value.coordinatePoint = H.coordinatePoint, w.value.requiresRivalTransform = H.requiresRivalTransform;
20582
+ if (H.subcategoryGroups && H.subcategoryGroups.length ? H.subcategoryGroups[0].forEach((q) => {
20583
+ E(q, null, te);
20584
+ }) : (H.ids && te.total.push(...H.ids), H.rival_ids && H.rival_ids.forEach((q) => {
20585
+ te.total.push(`${q}_r`);
20586
+ })), te.total = te.total.reduce((q, ae) => (te.toRemove.includes(ae) || q.push(ae), q), []), !P) {
20587
+ const q = H.name.toLowerCase().includes("recibid");
20588
+ w.value.isRivalSubject = q, w.value.avoidCategorySingleName = q, w.value.coordinatePoint = H.coordinatePoint, w.value.requiresRivalTransform = H.requiresRivalTransform;
20584
20589
  }
20585
20590
  return te.total;
20586
20591
  }
20587
20592
  function E(P, H = [], te = { total: [], toRemove: [] }) {
20588
- P.isSelected ? P.childCategories ? P.childCategories.forEach((G) => {
20593
+ P.isSelected ? P.childCategories ? P.childCategories.forEach((q) => {
20589
20594
  const ae = H ? Object.entries(P.idsByFatherCategory).reduce((Pe, [ee, ie]) => (H.includes(Number(ee)) && ie.forEach(($) => {
20590
20595
  typeof $ == "string" && $.endsWith("_r") ? Pe.push(Number($.split("_")[0])) : Pe.push($);
20591
20596
  }), Pe), []) : [P.id];
20592
- E(G, ae, te);
20593
- }) : H ? Object.entries(P.idsByFatherCategory).forEach(([G, ae]) => {
20594
- H.includes(Number(G)) && ae.forEach((Pe) => {
20597
+ E(q, ae, te);
20598
+ }) : H ? Object.entries(P.idsByFatherCategory).forEach(([q, ae]) => {
20599
+ H.includes(Number(q)) && ae.forEach((Pe) => {
20595
20600
  te.total.push(Pe);
20596
20601
  });
20597
- }) : P.level === 1 ? Object.entries(P.idsByFatherCategory).forEach(([G, ae]) => {
20602
+ }) : P.level === 1 ? Object.entries(P.idsByFatherCategory).forEach(([q, ae]) => {
20598
20603
  ae.forEach((Pe) => {
20599
20604
  te.total.push(Pe);
20600
20605
  });
20601
- }) : te.total.push(P.id) : P.childCategories || P.ids.forEach((G) => {
20602
- te.toRemove.push(G);
20606
+ }) : te.total.push(P.id) : P.childCategories || P.ids.forEach((q) => {
20607
+ te.toRemove.push(q);
20603
20608
  });
20604
20609
  }
20605
20610
  async function I(P) {
@@ -20608,12 +20613,12 @@ const YR = { class: "dropdown" }, KR = { class: "selected-item" }, XR = {
20608
20613
  seasonId: P
20609
20614
  });
20610
20615
  return H.forEach((te) => {
20611
- const [G, ae] = te.player_name.split(","), Pe = G.split(" ");
20616
+ const [q, ae] = te.player_name.split(","), Pe = q.split(" ");
20612
20617
  let ee = "";
20613
20618
  for (const ie of Pe)
20614
20619
  if (ee += ` ${ie}`, ie.length > 3)
20615
20620
  break;
20616
- te.shortName = ae && G ? `${ae.trim().charAt(0)}.${ee}` : "";
20621
+ te.shortName = ae && q ? `${ae.trim().charAt(0)}.${ee}` : "";
20617
20622
  }), H;
20618
20623
  } catch (H) {
20619
20624
  return Promise.reject(H);
@@ -20652,7 +20657,7 @@ const YR = { class: "dropdown" }, KR = { class: "selected-item" }, XR = {
20652
20657
  text: te.name,
20653
20658
  "is-active": m.value.componentName === te.componentName,
20654
20659
  tournaments: d.value,
20655
- onClick: (G) => L(te)
20660
+ onClick: (q) => L(te)
20656
20661
  }), null, 16, ["text", "is-active", "tournaments", "onClick"]))), 128))
20657
20662
  ]),
20658
20663
  l("div", IL, [
@@ -20697,7 +20702,7 @@ const YR = { class: "dropdown" }, KR = { class: "selected-item" }, XR = {
20697
20702
  emits: ["change-filters-selected", "update:filters"],
20698
20703
  setup(e, { expose: a, emit: t }) {
20699
20704
  const i = e, s = T(!1), o = T([]), r = O(() => i.isExpansionMode ? "Cobradores filtrados:" : "Cobradores con los filtros seleccionados"), n = O(() => o.value.reduce((y, _) => _.isSelected ? y + 1 : y, 0));
20700
- q(
20705
+ G(
20701
20706
  () => i.takenCornersFilters,
20702
20707
  (y) => {
20703
20708
  o.value = y.map((_) => {
@@ -20706,7 +20711,7 @@ const YR = { class: "dropdown" }, KR = { class: "selected-item" }, XR = {
20706
20711
  });
20707
20712
  },
20708
20713
  { immediate: !0, deep: !0 }
20709
- ), q(
20714
+ ), G(
20710
20715
  n,
20711
20716
  (y) => {
20712
20717
  s.value = y === o.value.length, t("change-filters-selected", y), t("update:filters", o.value);
@@ -20878,12 +20883,12 @@ const YR = { class: "dropdown" }, KR = { class: "selected-item" }, XR = {
20878
20883
  emits: ["update:filters", "change-filters-selected"],
20879
20884
  setup(e, { emit: a }) {
20880
20885
  const t = e, i = T("left"), s = O(() => t.howWasCornerFilters[t.howWasCornerFilters.cornerType]), o = O(() => s.value.filter((n) => n.isSelected).length);
20881
- q(
20886
+ G(
20882
20887
  () => i.value,
20883
20888
  (n) => {
20884
20889
  t.howWasCornerFilters.cornerType = n;
20885
20890
  }
20886
- ), q(
20891
+ ), G(
20887
20892
  () => t.howWasCornerFilters,
20888
20893
  (n) => {
20889
20894
  a(
@@ -21055,15 +21060,15 @@ const YR = { class: "dropdown" }, KR = { class: "selected-item" }, XR = {
21055
21060
  emits: ["update:filters", "change-filters-selected"],
21056
21061
  setup(e, { expose: a, emit: t }) {
21057
21062
  const i = e, s = T(!0), o = T([]), r = O(() => (/* @__PURE__ */ new Date()).getTime());
21058
- q(o, (m) => {
21063
+ G(o, (m) => {
21059
21064
  s.value = m.length === 35;
21060
- }), q(
21065
+ }), G(
21061
21066
  () => i.zoneFilters,
21062
21067
  (m) => {
21063
21068
  o.value = m;
21064
21069
  },
21065
21070
  { immediate: !0, deep: !0 }
21066
- ), q(
21071
+ ), G(
21067
21072
  () => o.value,
21068
21073
  (m) => {
21069
21074
  t("update:filters", m), t("change-filters-selected", m.length);
@@ -21614,7 +21619,7 @@ const YR = { class: "dropdown" }, KR = { class: "selected-item" }, XR = {
21614
21619
  const i = e, s = O(() => i.whatHappenedFilters.reduce((f, g) => (g.child ? g.child.forEach((y) => {
21615
21620
  y.isSelected && f++;
21616
21621
  }) : g.isSelected && f++, f), 0)), o = O(() => i.whatHappenedFilters.reduce((f, g) => (g.child ? f += g.child.length : f++, f), 0)), r = O(() => s.value === o.value), n = O(() => s.value === 1);
21617
- q(
21622
+ G(
21618
21623
  () => i.whatHappenedFilters,
21619
21624
  (f) => {
21620
21625
  t("change-filters-selected", s.value), t("update:filters", f);
@@ -21759,7 +21764,7 @@ const YR = { class: "dropdown" }, KR = { class: "selected-item" }, XR = {
21759
21764
  const c = s.value.isMoment ? s.value.results.moment.filter((d) => d.isSelected).length : s.value.results.final.filter((d) => d.isSelected).length;
21760
21765
  return t("change-filters-selected", c), c;
21761
21766
  }), r = O(() => s.value.isMoment ? "Resultado al momento del cobro" : "Resultado al final del partido");
21762
- q(
21767
+ G(
21763
21768
  () => i.resultsFilters,
21764
21769
  (c) => {
21765
21770
  s.value === null && (s.value = { ...c });
@@ -21768,7 +21773,7 @@ const YR = { class: "dropdown" }, KR = { class: "selected-item" }, XR = {
21768
21773
  deep: !0,
21769
21774
  immediate: !0
21770
21775
  }
21771
- ), q(
21776
+ ), G(
21772
21777
  s,
21773
21778
  (c) => {
21774
21779
  t("update:filters", c);
@@ -22219,13 +22224,13 @@ const YR = { class: "dropdown" }, KR = { class: "selected-item" }, XR = {
22219
22224
  );
22220
22225
  return Q(U), i.filterType === oe.PRODUCTIVITY && t("change-categories-selected", U.length), U.length;
22221
22226
  }), w = O(() => !i.isForTemplateForm && _.value >= i.productivityMaxCategories), C = O(() => !i.isForTemplateForm && _.value <= i.productivityMinCategories), D = O(() => i.isPlayingAsHidden ? i.gameSections : i.playingAs.concat(i.gameSections));
22222
- q(
22227
+ G(
22223
22228
  r,
22224
22229
  (U) => {
22225
22230
  i.filterType === oe.DETAILS && t("update:filters", U);
22226
22231
  },
22227
22232
  { immediate: !0, deep: !0 }
22228
- ), q(
22233
+ ), G(
22229
22234
  () => D.value,
22230
22235
  (U) => {
22231
22236
  if (i.filterType === oe.DETAILS) {
@@ -22234,7 +22239,7 @@ const YR = { class: "dropdown" }, KR = { class: "selected-item" }, XR = {
22234
22239
  }
22235
22240
  },
22236
22241
  { immediate: !0, deep: !0 }
22237
- ), q(
22242
+ ), G(
22238
22243
  () => i.playsGolstatsCategories,
22239
22244
  (U) => {
22240
22245
  if (i.filterType === oe.PLAYS_TYPES || i.filterType === oe.GOLSTATS) {
@@ -22243,24 +22248,24 @@ const YR = { class: "dropdown" }, KR = { class: "selected-item" }, XR = {
22243
22248
  }
22244
22249
  },
22245
22250
  { immediate: !0 }
22246
- ), q(
22251
+ ), G(
22247
22252
  () => i.fieldAreas,
22248
22253
  (U) => {
22249
22254
  i.filterType === oe.FIELD && t("change-filters-selected", U.length);
22250
22255
  }
22251
- ), q(
22256
+ ), G(
22252
22257
  y,
22253
22258
  () => {
22254
22259
  i.filterType === oe.PLAYS && V();
22255
22260
  },
22256
22261
  { immediate: !0, deep: !0 }
22257
- ), q(
22262
+ ), G(
22258
22263
  g,
22259
22264
  () => {
22260
22265
  i.filterType === oe.PRODUCTIVITY && L();
22261
22266
  },
22262
22267
  { immediate: !0, deep: !0 }
22263
- ), q(
22268
+ ), G(
22264
22269
  () => i.resultsFilters,
22265
22270
  (U) => {
22266
22271
  i.filterType === oe.RESULTS && t("change-filters-selected", U.results.filter((le) => le.isSelected).length);
@@ -22374,7 +22379,7 @@ const YR = { class: "dropdown" }, KR = { class: "selected-item" }, XR = {
22374
22379
  function te(U) {
22375
22380
  i.filterType === oe.TOURNAMENTS && t("update:filters", U);
22376
22381
  }
22377
- function G(U) {
22382
+ function q(U) {
22378
22383
  (i.filterType === oe.PLAYS_TYPES || i.filterType === oe.GOLSTATS) && t("update:filters", U);
22379
22384
  }
22380
22385
  function ae(U) {
@@ -22489,7 +22494,7 @@ const YR = { class: "dropdown" }, KR = { class: "selected-item" }, XR = {
22489
22494
  height: e.modalHeight,
22490
22495
  type: e.filterType,
22491
22496
  categories: e.playsGolstatsCategories,
22492
- "onUpdate:filters": G
22497
+ "onUpdate:filters": q
22493
22498
  }, null, 8, ["height", "type", "categories"])
22494
22499
  ])) : S("", !0),
22495
22500
  e.filterType === R(oe).GOLSTATS ? (u(), p("div", Yz, [
@@ -22498,7 +22503,7 @@ const YR = { class: "dropdown" }, KR = { class: "selected-item" }, XR = {
22498
22503
  type: e.filterType,
22499
22504
  categories: e.playsGolstatsCategories,
22500
22505
  onChangeFiltersSelected: Z,
22501
- "onUpdate:filters": G
22506
+ "onUpdate:filters": q
22502
22507
  }, null, 8, ["height", "type", "categories"])
22503
22508
  ])) : S("", !0),
22504
22509
  e.filterType === R(oe).UNIVERSE ? (u(), p("div", Kz, [
@@ -22682,7 +22687,7 @@ const YR = { class: "dropdown" }, KR = { class: "selected-item" }, XR = {
22682
22687
  }
22683
22688
  return f;
22684
22689
  }), c = O(() => s.value ? t.zIndexOpen : 1);
22685
- q(
22690
+ G(
22686
22691
  () => t.modelValue,
22687
22692
  (f) => {
22688
22693
  f !== s.value && (s.value = f);
@@ -22690,7 +22695,7 @@ const YR = { class: "dropdown" }, KR = { class: "selected-item" }, XR = {
22690
22695
  {
22691
22696
  immediate: !0
22692
22697
  }
22693
- ), q(s, (f) => {
22698
+ ), G(s, (f) => {
22694
22699
  f || setTimeout(() => {
22695
22700
  r.value["--translate-x"] = "0px";
22696
22701
  }, 500);
@@ -23270,7 +23275,7 @@ const YR = { class: "dropdown" }, KR = { class: "selected-item" }, XR = {
23270
23275
  "--separator-width": t.separatorWidth,
23271
23276
  "--separator-color": t.separatorColor
23272
23277
  }));
23273
- q(
23278
+ G(
23274
23279
  () => t.modelValue,
23275
23280
  (r) => {
23276
23281
  i.value = r;
@@ -24349,8 +24354,8 @@ const YR = { class: "dropdown" }, KR = { class: "selected-item" }, XR = {
24349
24354
  borderRadius: "12px",
24350
24355
  filterType: oe.WHAT_HAPPENED,
24351
24356
  isFooterVisible: !0
24352
- }, J = T(!1), X = T(!1), j = T(0), he = T(0), Z = T({}), E = T(null), I = T(null), V = T("Universo"), L = O(() => i.isForTemplateForm ? "0" : "unset"), ce = O(() => i.filterType === oe.UNIVERSE && i.showUniverseTime ? V.value : i.buttonFilterProps && i.buttonFilterProps.text ? i.buttonFilterProps.text : i.menuButtonText || G()), ke = O(() => i.isFromTemplates ? oe.RESULTS : i.filterType), Ae = O(() => i.expansionPanelText || G()), P = T(null);
24353
- q(
24357
+ }, J = T(!1), X = T(!1), j = T(0), he = T(0), Z = T({}), E = T(null), I = T(null), V = T("Universo"), L = O(() => i.isForTemplateForm ? "0" : "unset"), ce = O(() => i.filterType === oe.UNIVERSE && i.showUniverseTime ? V.value : i.buttonFilterProps && i.buttonFilterProps.text ? i.buttonFilterProps.text : i.menuButtonText || q()), ke = O(() => i.isFromTemplates ? oe.RESULTS : i.filterType), Ae = O(() => i.expansionPanelText || q()), P = T(null);
24358
+ G(
24354
24359
  () => i.filterType,
24355
24360
  (U) => {
24356
24361
  if (U === oe.PRODUCTIVITY)
@@ -24451,7 +24456,7 @@ const YR = { class: "dropdown" }, KR = { class: "selected-item" }, XR = {
24451
24456
  Z.value.isExpansionMode = i.isExpansionPanel, i.isExpansionPanel && (Z.value.width = "100%", Z.value.maxWidth = "100%");
24452
24457
  },
24453
24458
  { immediate: !0 }
24454
- ), q(
24459
+ ), G(
24455
24460
  () => i.filters,
24456
24461
  () => {
24457
24462
  if (i.filterType === oe.PRODUCTIVITY)
@@ -24550,9 +24555,9 @@ const YR = { class: "dropdown" }, KR = { class: "selected-item" }, XR = {
24550
24555
  });
24551
24556
  Z.value.isExpansionMode = i.isExpansionPanel, i.isExpansionPanel && (Z.value.width = "100%", Z.value.maxWidth = "100%");
24552
24557
  }
24553
- ), q(J, (U) => {
24558
+ ), G(J, (U) => {
24554
24559
  U || t("close", P.value);
24555
- }), q(X, (U) => {
24560
+ }), G(X, (U) => {
24556
24561
  U || t("close", P.value);
24557
24562
  });
24558
24563
  function H(U) {
@@ -24561,7 +24566,7 @@ const YR = { class: "dropdown" }, KR = { class: "selected-item" }, XR = {
24561
24566
  function te() {
24562
24567
  i.isExpansionPanel ? X.value = !1 : J.value = !1, t("apply", P.value);
24563
24568
  }
24564
- function G() {
24569
+ function q() {
24565
24570
  if (i.filterType === oe.PRODUCTIVITY)
24566
24571
  return i.isFromTemplates ? "Tipos de jugadas" : "Características de juego";
24567
24572
  if (i.filterType === oe.PLAYS)
@@ -25015,7 +25020,7 @@ const kj = {
25015
25020
  }
25016
25021
  }
25017
25022
  }));
25018
- q(() => t.players, (N) => {
25023
+ G(() => t.players, (N) => {
25019
25024
  if (N && N.length) {
25020
25025
  const J = o.value.length !== N.length;
25021
25026
  let X = !1;
@@ -25032,7 +25037,7 @@ const kj = {
25032
25037
  })), _());
25033
25038
  } else
25034
25039
  r.value = [];
25035
- }, { immediate: !0 }), q(
25040
+ }, { immediate: !0 }), G(
25036
25041
  () => t.pppValues,
25037
25042
  () => {
25038
25043
  _();
@@ -25110,18 +25115,18 @@ const kj = {
25110
25115
  const H = Ae.categoriesByName.get(P[1]), te = Z.get(P[1]);
25111
25116
  if (H) {
25112
25117
  if (H.categoriesIds.push(P[0]), H.categoriesIds.sort(), H.totals.push(P[2]), ke === 0 && te) {
25113
- const G = X.max.find((ae) => ae[0] === P[0]);
25114
- G && (te.categoriesIds.push(P[0]), te.categoriesIds.sort(), te.max.push(G[1]));
25118
+ const q = X.max.find((ae) => ae[0] === P[0]);
25119
+ q && (te.categoriesIds.push(P[0]), te.categoriesIds.sort(), te.max.push(q[1]));
25115
25120
  }
25116
25121
  } else if (Ae.categoriesByName.set(P[1], {
25117
25122
  categoriesIds: [P[0]],
25118
25123
  totals: [P[2]],
25119
25124
  abbreviation: P[6] || P[5] || P[1]
25120
25125
  }), ke === 0) {
25121
- const G = X.max.find((ae) => ae[0] === P[0]);
25122
- G && Z.set(P[1], {
25126
+ const q = X.max.find((ae) => ae[0] === P[0]);
25127
+ q && Z.set(P[1], {
25123
25128
  categoriesIds: [P[0]],
25124
- max: [G[1]]
25129
+ max: [q[1]]
25125
25130
  });
25126
25131
  }
25127
25132
  }), V.push(Ae), V;
@@ -25935,7 +25940,7 @@ const Xh = /* @__PURE__ */ fs(y1, [["render", cU], ["__scopeId", "data-v-7ae64b4
25935
25940
  })), h = () => {
25936
25941
  t("update:modelValue", !0);
25937
25942
  };
25938
- q(() => i.modelValue, (Q) => {
25943
+ G(() => i.modelValue, (Q) => {
25939
25944
  Q ? (v(), document.body.classList.add("modal-open")) : document.body.classList.remove("modal-open");
25940
25945
  });
25941
25946
  function v() {
@@ -26340,7 +26345,7 @@ const Xh = /* @__PURE__ */ fs(y1, [["render", cU], ["__scopeId", "data-v-7ae64b4
26340
26345
  const ce = i.positionIds && i.positionIds.length > 0 ? i.positionIds.reduce((ke, Ae) => `${ke}${ke === "?" ? "" : "&"}p=${Ae}`, "?") : "";
26341
26346
  return `https://a3tmmmjdaj.execute-api.us-east-2.amazonaws.com/prod/v2/users/${i.userId}/variables${ce}`;
26342
26347
  });
26343
- q(
26348
+ G(
26344
26349
  f,
26345
26350
  (ce, ke) => {
26346
26351
  ce && ce !== ke && (i.customVariables && i.customVariables.length ? n.value = i.customVariables.map((Ae) => ({
@@ -26349,7 +26354,7 @@ const Xh = /* @__PURE__ */ fs(y1, [["render", cU], ["__scopeId", "data-v-7ae64b4
26349
26354
  })) : g(ce));
26350
26355
  },
26351
26356
  { immediate: !0 }
26352
- ), q(
26357
+ ), G(
26353
26358
  () => i.isEditMode,
26354
26359
  (ce) => {
26355
26360
  ce && s.value.forEach((ke) => {
@@ -26662,13 +26667,13 @@ const tm = /* @__PURE__ */ dW(pW), fW = { class: "graph-view" }, hW = {
26662
26667
  emits: ["delete-from-list", "showProfile"],
26663
26668
  setup(e, { emit: a }) {
26664
26669
  const t = e, i = a, s = T(null), o = T(0), r = O(() => (n(), t.list ? t.list.variables : null));
26665
- q(
26670
+ G(
26666
26671
  () => s.value,
26667
26672
  (m) => {
26668
26673
  m && t.players && m.setPlayers(t.players);
26669
26674
  },
26670
26675
  { immediate: !0 }
26671
- ), q(
26676
+ ), G(
26672
26677
  () => t.players.length,
26673
26678
  (m, h) => {
26674
26679
  s.value && m !== h && s.value.setPlayers(t.players);
@@ -27949,17 +27954,17 @@ const f3 = (e) => {
27949
27954
  let ce;
27950
27955
  try {
27951
27956
  if (J && d && _ !== "get" && _ !== "head" && (ce = await f(j, w)) !== 0) {
27952
- let G = new t(y, {
27957
+ let q = new t(y, {
27953
27958
  method: "POST",
27954
27959
  body: w,
27955
27960
  duplex: "half"
27956
27961
  }), ae;
27957
- if (pe.isFormData(w) && (ae = G.headers.get("content-type")) && j.setContentType(ae), G.body) {
27962
+ if (pe.isFormData(w) && (ae = q.headers.get("content-type")) && j.setContentType(ae), q.body) {
27958
27963
  const [Pe, ee] = lm(
27959
27964
  ce,
27960
27965
  Pl(nm(J))
27961
27966
  );
27962
- w = cm(G.body, um, Pe, ee);
27967
+ w = cm(q.body, um, Pe, ee);
27963
27968
  }
27964
27969
  }
27965
27970
  pe.isString(he) || (he = he ? "include" : "omit");
@@ -27976,9 +27981,9 @@ const f3 = (e) => {
27976
27981
  let P = await (o ? E(V, Z) : E(y, Ae));
27977
27982
  const H = m && (X === "stream" || X === "response");
27978
27983
  if (m && (N || H && L)) {
27979
- const G = {};
27984
+ const q = {};
27980
27985
  ["status", "statusText", "headers"].forEach((ie) => {
27981
- G[ie] = P[ie];
27986
+ q[ie] = P[ie];
27982
27987
  });
27983
27988
  const ae = pe.toFiniteNumber(P.headers.get("content-length")), [Pe, ee] = N && lm(
27984
27989
  ae,
@@ -27988,13 +27993,13 @@ const f3 = (e) => {
27988
27993
  cm(P.body, um, Pe, () => {
27989
27994
  ee && ee(), L && L();
27990
27995
  }),
27991
- G
27996
+ q
27992
27997
  );
27993
27998
  }
27994
27999
  X = X || "text";
27995
28000
  let te = await h[pe.findKey(h, X) || "text"](P, g);
27996
- return !H && L && L(), await new Promise((G, ae) => {
27997
- u3(G, ae, {
28001
+ return !H && L && L(), await new Promise((q, ae) => {
28002
+ u3(q, ae, {
27998
28003
  data: te,
27999
28004
  headers: ca.from(P.headers),
28000
28005
  status: P.status,
@@ -28876,7 +28881,7 @@ const {
28876
28881
  };
28877
28882
  return (t.boxPosition === "left" || t.boxPosition === "right") && (d[`margin-${t.boxPosition}`] = t.isBoxOnly ? "0" : t.teamsIds ? "8px" : "10px"), d;
28878
28883
  });
28879
- q(
28884
+ G(
28880
28885
  () => t.modelValue,
28881
28886
  (d) => {
28882
28887
  d !== i.value && (i.value = d);
@@ -29095,13 +29100,13 @@ const {
29095
29100
  var _;
29096
29101
  return (_ = t.productivityCategories) == null ? void 0 : _.possession.categories.reduce((w, C) => (C.isSelected && w++, w), 0);
29097
29102
  }), v = O(() => t.isFromTemplates || t.isForTemplateForm);
29098
- q(
29103
+ G(
29099
29104
  () => t.productivityCategories,
29100
29105
  (_) => {
29101
29106
  _.offensesConditions && (r.value.areYellowCardsSelected = _.offensesConditions.areYellowCardsSelected, r.value.areRedCardsSelected = _.offensesConditions.areRedCardsSelected, r.value.areFoulsCommittedSelected = _.offensesConditions.areFoulsCommittedSelected);
29102
29107
  },
29103
29108
  { deep: !0, immediate: !0 }
29104
- ), q(
29109
+ ), G(
29105
29110
  r,
29106
29111
  (_) => {
29107
29112
  a("update:offensesConditions", _);
@@ -29443,7 +29448,7 @@ const {
29443
29448
  "42275f9c": e.buttonsBorderColorActive
29444
29449
  }));
29445
29450
  const i = T("");
29446
- q(
29451
+ G(
29447
29452
  () => t.statisticType,
29448
29453
  (v) => {
29449
29454
  i.value = v;
@@ -29451,7 +29456,7 @@ const {
29451
29456
  {
29452
29457
  immediate: !0
29453
29458
  }
29454
- ), q(
29459
+ ), G(
29455
29460
  () => i.value,
29456
29461
  (v) => {
29457
29462
  t.statisticType = v, a("change-statistic-type", v);
@@ -29645,7 +29650,7 @@ const {
29645
29650
  emits: ["change-filters-selected", "update:filters"],
29646
29651
  setup(e, { emit: a }) {
29647
29652
  const t = e, i = T(!1), s = T([]), o = O(() => r.value.filter((d) => d.isSelected).length), r = O(() => t.tournamentsUrl ? s.value : t.tournaments);
29648
- q(
29653
+ G(
29649
29654
  () => t.tournamentsUrl,
29650
29655
  async (d) => {
29651
29656
  if (d)
@@ -29665,7 +29670,7 @@ const {
29665
29670
  }
29666
29671
  },
29667
29672
  { immediate: !0 }
29668
- ), q(
29673
+ ), G(
29669
29674
  () => r.value,
29670
29675
  (d) => {
29671
29676
  const m = d.filter((h) => h.isSelected);
@@ -29784,7 +29789,7 @@ const {
29784
29789
  "--svg-width": `${t.svgWidth}px`,
29785
29790
  "--svg-height": `${t.svgHeight}px`
29786
29791
  }));
29787
- q(
29792
+ G(
29788
29793
  () => t.categories,
29789
29794
  (o) => {
29790
29795
  const r = o.filter((n) => n.isSelected);
@@ -30272,7 +30277,7 @@ const Gq = /* @__PURE__ */ Mq(w1, [["render", Hq], ["__scopeId", "data-v-f3ee6b2
30272
30277
  emits: ["input", "click-ready", "update:modelValue"],
30273
30278
  setup(e, { emit: a }) {
30274
30279
  const t = e, i = T({}), s = T(null), o = T(t.isMultipleOption ? -1 : 0), r = T(!1);
30275
- q(
30280
+ G(
30276
30281
  () => t.items,
30277
30282
  (f, g) => {
30278
30283
  if (!t.modelValue && (!t.onlyFirstTime || !g || !g.length) && f && f.length) {
@@ -30287,7 +30292,7 @@ const Gq = /* @__PURE__ */ Mq(w1, [["render", Hq], ["__scopeId", "data-v-f3ee6b2
30287
30292
  }
30288
30293
  },
30289
30294
  { immediate: !0 }
30290
- ), q(
30295
+ ), G(
30291
30296
  () => t.modelValue,
30292
30297
  (f) => {
30293
30298
  if (f) {
@@ -30490,7 +30495,7 @@ const Gq = /* @__PURE__ */ Mq(w1, [["render", Hq], ["__scopeId", "data-v-f3ee6b2
30490
30495
  emits: ["update:universeFilters"],
30491
30496
  setup(e, { expose: a, emit: t }) {
30492
30497
  const i = e, s = T(!1), o = T(!1), r = T(!1), n = T({ statistics: {} });
30493
- q(
30498
+ G(
30494
30499
  () => i.universeFilters,
30495
30500
  (h) => {
30496
30501
  n.value = {
@@ -30504,7 +30509,7 @@ const Gq = /* @__PURE__ */ Mq(w1, [["render", Hq], ["__scopeId", "data-v-f3ee6b2
30504
30509
  };
30505
30510
  },
30506
30511
  { deep: !0, immediate: !0 }
30507
- ), q(
30512
+ ), G(
30508
30513
  () => n,
30509
30514
  (h) => {
30510
30515
  s.value = !h.value.minutesPlayed || Number(h.value.minutesPlayed) === 0, o.value = !h.value.percentMinutesPlayed || Number(h.value.percentMinutesPlayed) === 0, r.value = !h.value.lastMonths || Number(h.value.lastMonths) === 0, t("update:universeFilters", h);
@@ -31091,7 +31096,7 @@ const _3 = /* @__PURE__ */ b3(C1, [["render", LJ]]), NJ = { class: "template-dis
31091
31096
  minLimit: 0,
31092
31097
  maxLimit: 0
31093
31098
  });
31094
- q(
31099
+ G(
31095
31100
  () => i.value,
31096
31101
  (o) => {
31097
31102
  a("update:distanceFilters", o);
@@ -31099,7 +31104,7 @@ const _3 = /* @__PURE__ */ b3(C1, [["render", LJ]]), NJ = { class: "template-dis
31099
31104
  {
31100
31105
  deep: !0
31101
31106
  }
31102
- ), q(
31107
+ ), G(
31103
31108
  () => t.distance,
31104
31109
  (o) => {
31105
31110
  i.value.minValue = o.minValue, i.value.maxValue = o.maxValue, i.value.minLimit = o.minLimit, i.value.maxLimit = o.maxLimit;
@@ -31139,7 +31144,7 @@ const _3 = /* @__PURE__ */ b3(C1, [["render", LJ]]), NJ = { class: "template-dis
31139
31144
  emits: ["update:gamesFilters"],
31140
31145
  setup(e, { emit: a }) {
31141
31146
  const t = e, i = T(!1), s = O(() => t.gamesFilters.filter((r) => r.isSelected).length);
31142
- q(
31147
+ G(
31143
31148
  s,
31144
31149
  (r) => {
31145
31150
  i.value = r === t.gamesFilters.length, a("update:gamesFilters", t.gamesFilters);
@@ -31614,7 +31619,7 @@ const hZ = /* @__PURE__ */ sZ(T1, [["render", fZ], ["__scopeId", "data-v-f3ee6b2
31614
31619
  };
31615
31620
  return (t.boxPosition === "left" || t.boxPosition === "right") && (d[`margin-${t.boxPosition}`] = t.isBoxOnly ? "0" : t.teamsIds ? "8px" : "10px"), d;
31616
31621
  });
31617
- q(
31622
+ G(
31618
31623
  () => t.modelValue,
31619
31624
  (d) => {
31620
31625
  d !== i.value && (i.value = d);
@@ -32262,12 +32267,12 @@ const tY = /* @__PURE__ */ kZ(k1, [["render", eY], ["__scopeId", "data-v-b85699b
32262
32267
  const i = T(t.selectedButtonIndex), s = O(() => ({
32263
32268
  "--grid-template-columns": `repeat(${t.buttons.length}, 1fr)`
32264
32269
  }));
32265
- q(
32270
+ G(
32266
32271
  () => t.selectedButtonIndex,
32267
32272
  (r) => {
32268
32273
  i.value = r;
32269
32274
  }
32270
- ), q(i, (r, n) => {
32275
+ ), G(i, (r, n) => {
32271
32276
  r !== n && a("change", { index: r, button: t.buttons[r] });
32272
32277
  });
32273
32278
  function o(r) {
@@ -34462,7 +34467,7 @@ const dX = /* @__PURE__ */ new Set([1]), cX = {
34462
34467
  emits: ["update:modelValue"],
34463
34468
  setup(e, { emit: a }) {
34464
34469
  const t = e, i = T(null);
34465
- q(
34470
+ G(
34466
34471
  () => t.modelValue,
34467
34472
  () => {
34468
34473
  s();
@@ -34565,21 +34570,21 @@ const dX = /* @__PURE__ */ new Set([1]), cX = {
34565
34570
  const I = E[0];
34566
34571
  return (!I || I.id !== 0) && E.unshift(o), E.sort((V, L) => V.id - L.id), E;
34567
34572
  }), w = O(() => i.isEligibilityVisible ? i.season && i.season.tournamentId && dX.has(i.season.tournamentId) || i.filters && i.filters.isEligibilitySwitchVisible : !1);
34568
- q(
34573
+ G(
34569
34574
  y,
34570
34575
  (E) => {
34571
34576
  const I = E.reduce((V, L, ce) => (ce !== 0 && L.isSelected && V++, V), 0);
34572
34577
  I === y.value.length - 1 && (E[0].isSelected = !0), E[0] && E[0].isSelected ? h.value = "Todas las nacionalidades" : h.value = `${I} seleccionadas`, j();
34573
34578
  },
34574
34579
  { immediate: !0, deep: !0 }
34575
- ), q(
34580
+ ), G(
34576
34581
  _,
34577
34582
  (E) => {
34578
34583
  const I = E.reduce((V, L, ce) => (ce !== 0 && L.isSelected && V++, V), 0);
34579
34584
  I === _.value.length - 1 && (E[0].isSelected = !0), E[0] && E[0].isSelected ? v.value = "Todas las posiciones" : v.value = `${I} seleccionadas`, j();
34580
34585
  },
34581
34586
  { immediate: !0, deep: !0 }
34582
- ), q(
34587
+ ), G(
34583
34588
  () => i.filters,
34584
34589
  (E) => {
34585
34590
  if (E && E.availableYears) {
@@ -34588,12 +34593,12 @@ const dX = /* @__PURE__ */ new Set([1]), cX = {
34588
34593
  }
34589
34594
  },
34590
34595
  { immediate: !0, deep: !0 }
34591
- ), q(
34596
+ ), G(
34592
34597
  () => r.value.isEligibilitySelected,
34593
34598
  () => {
34594
34599
  j();
34595
34600
  }
34596
- ), q(
34601
+ ), G(
34597
34602
  () => i.season,
34598
34603
  (E) => {
34599
34604
  E && E.id !== g.value && !i.awaitForFilters && (g.value = E.id, C(E));
@@ -34605,7 +34610,7 @@ const dX = /* @__PURE__ */ new Set([1]), cX = {
34605
34610
  if (E && E.id) {
34606
34611
  const I = /* @__PURE__ */ new Set(), V = await Q(E.id), L = /* @__PURE__ */ new Date(), ce = [], ke = /* @__PURE__ */ new Map(), Ae = /* @__PURE__ */ new Map();
34607
34612
  V.forEach((P) => {
34608
- const H = new Date(P.dob), te = lX(H), G = nX({
34613
+ const H = new Date(P.dob), te = lX(H), q = nX({
34609
34614
  start: H,
34610
34615
  end: L
34611
34616
  });
@@ -34617,7 +34622,7 @@ const dX = /* @__PURE__ */ new Set([1]), cX = {
34617
34622
  id: P.position_id,
34618
34623
  isSelected: !0,
34619
34624
  name: DK[`${P.position_id}`]
34620
- }), I.add(te), ce.push(G.years);
34625
+ }), I.add(te), ce.push(q.years);
34621
34626
  }), r.value.minAge = Math.min(...ce), r.value.maxAge = Math.max(...ce), r.value.availableYears = [...I].sort((P, H) => H - P), f.value = r.value.availableYears[0], r.value.nationalities = [...ke.values()], r.value.positions = [...Ae.values()], d.value.min = r.value.minAge, d.value.max = r.value.maxAge;
34622
34627
  }
34623
34628
  } catch (I) {
@@ -35001,7 +35006,7 @@ const dX = /* @__PURE__ */ new Set([1]), cX = {
35001
35006
  emits: ["update:resultsFilters"],
35002
35007
  setup(e, { emit: a }) {
35003
35008
  const t = e, i = O(() => t.resultsFilters.results.filter((s) => s.isSelected).length);
35004
- return q(
35009
+ return G(
35005
35010
  () => t.resultsFilters,
35006
35011
  (s) => {
35007
35012
  a("update:resultsFilters", s);
@@ -35392,11 +35397,11 @@ const sQ = { class: "dropdown" }, oQ = { class: "selected-item" }, rQ = {
35392
35397
  },
35393
35398
  setup(e) {
35394
35399
  const a = e, t = di(
35395
- () => import("./FilterSubcategories-a1b6596a-BCGSg5P1-D-S0NL9p.js")
35400
+ () => import("./FilterSubcategories-a1b6596a-BCGSg5P1-Dbnksnkv.js")
35396
35401
  ), i = di(
35397
- () => import("./FilterConditions-99cc2b67-CxpU9dUs-D4KRlEn5.js")
35402
+ () => import("./FilterConditions-99cc2b67-CxpU9dUs-yKOzC37Q.js")
35398
35403
  ), s = di(
35399
- () => import("./FilterField-8a93d757-u_-hP-2A-Cm5XIqLJ.js")
35404
+ () => import("./FilterField-8a93d757-u_-hP-2A-Dc-X-JMd.js")
35400
35405
  ), o = [
35401
35406
  {
35402
35407
  name: "Sub categorías",
@@ -35955,11 +35960,11 @@ const sQ = { class: "dropdown" }, oQ = { class: "selected-item" }, rQ = {
35955
35960
  }), _ = T([]);
35956
35961
  T({});
35957
35962
  const w = T(null);
35958
- q(h, (P) => {
35963
+ G(h, (P) => {
35959
35964
  v.value.numberSeasonSelectedIndex = v.value.seasons.findIndex(
35960
35965
  (H) => H.id === P.id
35961
35966
  ), P.arrayMatchDays ? (g.value = P.arrayMatchDays[0] || {}, f.value = P.arrayTeams[0] || {}) : (J(P), X(P));
35962
- }), q(f, () => {
35967
+ }), G(f, () => {
35963
35968
  setTimeout(() => {
35964
35969
  h.value.mapPlayersByTeam && (!f.value.arrayPlayers || !f.value.arrayPlayers.length) && (f.value.arrayPlayers = h.value.mapPlayersByTeam.get(
35965
35970
  f.value.team_id
@@ -35978,9 +35983,9 @@ const sQ = { class: "dropdown" }, oQ = { class: "selected-item" }, rQ = {
35978
35983
  const P = {
35979
35984
  Authorization: Jd() || t.token
35980
35985
  }, H = {}.API_TOURNAMENTS || t.tournamentsUrl, te = await Io.get(H, { headers: P });
35981
- return te.data ? te.data.map((G) => ({
35982
- ...G.tournament,
35983
- seasons: G.seasons
35986
+ return te.data ? te.data.map((q) => ({
35987
+ ...q.tournament,
35988
+ seasons: q.seasons
35984
35989
  })) : [];
35985
35990
  } catch (P) {
35986
35991
  return Promise.reject(P);
@@ -35988,20 +35993,20 @@ const sQ = { class: "dropdown" }, oQ = { class: "selected-item" }, rQ = {
35988
35993
  }
35989
35994
  async function Q(P, H, te = "") {
35990
35995
  a("loading-data");
35991
- let G = te;
35996
+ let q = te;
35992
35997
  try {
35993
- G || (G = {}.API_CALENDAR_GAMES_BY_SEASON || t.gamesUrl, P.forEach((ie, $) => {
35994
- G += `${$ === 0 ? "" : "&"}seasons=${ie}`;
35998
+ q || (q = {}.API_CALENDAR_GAMES_BY_SEASON || t.gamesUrl, P.forEach((ie, $) => {
35999
+ q += `${$ === 0 ? "" : "&"}seasons=${ie}`;
35995
36000
  }));
35996
36001
  const ae = {
35997
36002
  Authorization: Jd() || t.token
35998
36003
  }, {
35999
36004
  data: { data: Pe, teams: ee }
36000
- } = await Io.get(G, { headers: ae });
36005
+ } = await Io.get(q, { headers: ae });
36001
36006
  return { seasonsAndGames: Pe, seasonsAndTeams: ee };
36002
36007
  } catch (ae) {
36003
36008
  if (H > 0)
36004
- return Q(P, H - 1, G);
36009
+ return Q(P, H - 1, q);
36005
36010
  throw new Error(ae);
36006
36011
  } finally {
36007
36012
  a("loading-data");
@@ -36011,8 +36016,8 @@ const sQ = { class: "dropdown" }, oQ = { class: "selected-item" }, rQ = {
36011
36016
  try {
36012
36017
  const H = {
36013
36018
  Authorization: Jd() || t.token
36014
- }, te = ` ${{}.API_PLAYERS_BY_SEASON || t.playersUrl}${P.seasonId}`, G = await Io.get(te, { headers: H });
36015
- return G.data ? G.data.players : [];
36019
+ }, te = ` ${{}.API_PLAYERS_BY_SEASON || t.playersUrl}${P.seasonId}`, q = await Io.get(te, { headers: H });
36020
+ return q.data ? q.data.players : [];
36016
36021
  } catch (H) {
36017
36022
  return Promise.reject(H);
36018
36023
  }
@@ -36025,11 +36030,11 @@ const sQ = { class: "dropdown" }, oQ = { class: "selected-item" }, rQ = {
36025
36030
  ...P.related_seasons.map((ee) => ee.id)
36026
36031
  ],
36027
36032
  3
36028
- ), G = te.find(
36033
+ ), q = te.find(
36029
36034
  (ee) => ee._id === P.id
36030
36035
  );
36031
36036
  h.value.arrayTeams = [], h.value.mapTeams = /* @__PURE__ */ new Map();
36032
- const ae = G.teams.reduce((ee, ie) => (h.value.arrayTeams.push(ie), h.value.mapTeams.set(ie.team_id, {
36037
+ const ae = q.teams.reduce((ee, ie) => (h.value.arrayTeams.push(ie), h.value.mapTeams.set(ie.team_id, {
36033
36038
  name: ie.colloquial_name,
36034
36039
  acronym: ie.acronym,
36035
36040
  logo: ie.logo,
@@ -36080,17 +36085,17 @@ const sQ = { class: "dropdown" }, oQ = { class: "selected-item" }, rQ = {
36080
36085
  async function X(P) {
36081
36086
  try {
36082
36087
  const H = await I(P.id);
36083
- h.value.mapPlayers = /* @__PURE__ */ new Map(), h.value.mapPlayersByTeam = H.reduce((te, G) => {
36084
- h.value.mapPlayers.set(G.player_id, {
36085
- id: G.player_id,
36086
- name: G.player_name,
36087
- shortName: G.shortName,
36088
- photo: G.player_photo,
36089
- teamId: G.team_id,
36090
- positionId: G.position_id
36088
+ h.value.mapPlayers = /* @__PURE__ */ new Map(), h.value.mapPlayersByTeam = H.reduce((te, q) => {
36089
+ h.value.mapPlayers.set(q.player_id, {
36090
+ id: q.player_id,
36091
+ name: q.player_name,
36092
+ shortName: q.shortName,
36093
+ photo: q.player_photo,
36094
+ teamId: q.team_id,
36095
+ positionId: q.position_id
36091
36096
  });
36092
- const ae = te.get(G.team_id);
36093
- return ae ? ae.push(G) : te.set(G.team_id, [G]), te;
36097
+ const ae = te.get(q.team_id);
36098
+ return ae ? ae.push(q) : te.set(q.team_id, [q]), te;
36094
36099
  }, /* @__PURE__ */ new Map());
36095
36100
  } catch (H) {
36096
36101
  throw new Error(H);
@@ -36137,7 +36142,7 @@ const sQ = { class: "dropdown" }, oQ = { class: "selected-item" }, rQ = {
36137
36142
  isEmpty: !1
36138
36143
  }
36139
36144
  );
36140
- const te = /* @__PURE__ */ new Map(), G = "Resumen", ae = "Todas sus jugadas", Pe = y.value.player.reduce(
36145
+ const te = /* @__PURE__ */ new Map(), q = "Resumen", ae = "Todas sus jugadas", Pe = y.value.player.reduce(
36141
36146
  (ie, $) => {
36142
36147
  const se = Z($);
36143
36148
  return se.forEach((U) => {
@@ -36155,16 +36160,16 @@ const sQ = { class: "dropdown" }, oQ = { class: "selected-item" }, rQ = {
36155
36160
  []
36156
36161
  );
36157
36162
  y.value.games.unshift({
36158
- name: G,
36163
+ name: q,
36159
36164
  arrayCategoriesIds: r.games,
36160
36165
  booleanIsBestPlays: !0
36161
36166
  }), y.value.team.unshift({
36162
- name: G,
36167
+ name: q,
36163
36168
  arrayCategoriesIds: r.team,
36164
36169
  booleanIsBestPlays: !0
36165
36170
  }), y.value.player.unshift(
36166
36171
  {
36167
- name: G,
36172
+ name: q,
36168
36173
  arrayCategoriesIds: r.player.regular,
36169
36174
  booleanIsBestPlays: !0
36170
36175
  },
@@ -36175,7 +36180,7 @@ const sQ = { class: "dropdown" }, oQ = { class: "selected-item" }, rQ = {
36175
36180
  }
36176
36181
  ), y.value.goalkeeper.unshift(
36177
36182
  {
36178
- name: G,
36183
+ name: q,
36179
36184
  arrayCategoriesIds: r.player.goalkeeper,
36180
36185
  booleanIsBestPlays: !0
36181
36186
  },
@@ -36190,11 +36195,11 @@ const sQ = { class: "dropdown" }, oQ = { class: "selected-item" }, rQ = {
36190
36195
  throw new Error(P);
36191
36196
  }
36192
36197
  }
36193
- function he(P, H = 0, te = /* @__PURE__ */ new Map(), G = !1, ae = {}, Pe = []) {
36198
+ function he(P, H = 0, te = /* @__PURE__ */ new Map(), q = !1, ae = {}, Pe = []) {
36194
36199
  if (!P.group_id)
36195
36200
  return;
36196
36201
  let ee = te.get(H);
36197
- const ie = G ? `${P.id_category}_r` : P.id_category;
36202
+ const ie = q ? `${P.id_category}_r` : P.id_category;
36198
36203
  P.id_category && Pe.push(P.id_category);
36199
36204
  let $ = {
36200
36205
  ids: [ie],
@@ -36227,7 +36232,7 @@ const sQ = { class: "dropdown" }, oQ = { class: "selected-item" }, rQ = {
36227
36232
  se,
36228
36233
  H + 1,
36229
36234
  te,
36230
- G,
36235
+ q,
36231
36236
  $,
36232
36237
  Pe
36233
36238
  );
@@ -36248,32 +36253,32 @@ const sQ = { class: "dropdown" }, oQ = { class: "selected-item" }, rQ = {
36248
36253
  if (H.booleanIsBestPlays)
36249
36254
  return H.arrayCategoriesIds;
36250
36255
  const te = { total: [], toRemove: [] };
36251
- if (H.subcategoryGroups && H.subcategoryGroups.length ? H.subcategoryGroups[0].forEach((G) => {
36252
- E(G, null, te);
36253
- }) : (H.ids && te.total.push(...H.ids), H.rival_ids && H.rival_ids.forEach((G) => {
36254
- te.total.push(`${G}_r`);
36255
- })), te.total = te.total.reduce((G, ae) => (te.toRemove.includes(ae) || G.push(ae), G), []), !P) {
36256
- const G = H.name.toLowerCase().includes("recibid");
36257
- w.value.isRivalSubject = G, w.value.avoidCategorySingleName = G, w.value.coordinatePoint = H.coordinatePoint, w.value.requiresRivalTransform = H.requiresRivalTransform;
36256
+ if (H.subcategoryGroups && H.subcategoryGroups.length ? H.subcategoryGroups[0].forEach((q) => {
36257
+ E(q, null, te);
36258
+ }) : (H.ids && te.total.push(...H.ids), H.rival_ids && H.rival_ids.forEach((q) => {
36259
+ te.total.push(`${q}_r`);
36260
+ })), te.total = te.total.reduce((q, ae) => (te.toRemove.includes(ae) || q.push(ae), q), []), !P) {
36261
+ const q = H.name.toLowerCase().includes("recibid");
36262
+ w.value.isRivalSubject = q, w.value.avoidCategorySingleName = q, w.value.coordinatePoint = H.coordinatePoint, w.value.requiresRivalTransform = H.requiresRivalTransform;
36258
36263
  }
36259
36264
  return te.total;
36260
36265
  }
36261
36266
  function E(P, H = [], te = { total: [], toRemove: [] }) {
36262
- P.isSelected ? P.childCategories ? P.childCategories.forEach((G) => {
36267
+ P.isSelected ? P.childCategories ? P.childCategories.forEach((q) => {
36263
36268
  const ae = H ? Object.entries(P.idsByFatherCategory).reduce((Pe, [ee, ie]) => (H.includes(Number(ee)) && ie.forEach(($) => {
36264
36269
  typeof $ == "string" && $.endsWith("_r") ? Pe.push(Number($.split("_")[0])) : Pe.push($);
36265
36270
  }), Pe), []) : [P.id];
36266
- E(G, ae, te);
36267
- }) : H ? Object.entries(P.idsByFatherCategory).forEach(([G, ae]) => {
36268
- H.includes(Number(G)) && ae.forEach((Pe) => {
36271
+ E(q, ae, te);
36272
+ }) : H ? Object.entries(P.idsByFatherCategory).forEach(([q, ae]) => {
36273
+ H.includes(Number(q)) && ae.forEach((Pe) => {
36269
36274
  te.total.push(Pe);
36270
36275
  });
36271
- }) : P.level === 1 ? Object.entries(P.idsByFatherCategory).forEach(([G, ae]) => {
36276
+ }) : P.level === 1 ? Object.entries(P.idsByFatherCategory).forEach(([q, ae]) => {
36272
36277
  ae.forEach((Pe) => {
36273
36278
  te.total.push(Pe);
36274
36279
  });
36275
- }) : te.total.push(P.id) : P.childCategories || P.ids.forEach((G) => {
36276
- te.toRemove.push(G);
36280
+ }) : te.total.push(P.id) : P.childCategories || P.ids.forEach((q) => {
36281
+ te.toRemove.push(q);
36277
36282
  });
36278
36283
  }
36279
36284
  async function I(P) {
@@ -36282,12 +36287,12 @@ const sQ = { class: "dropdown" }, oQ = { class: "selected-item" }, rQ = {
36282
36287
  seasonId: P
36283
36288
  });
36284
36289
  return H.forEach((te) => {
36285
- const [G, ae] = te.player_name.split(","), Pe = G.split(" ");
36290
+ const [q, ae] = te.player_name.split(","), Pe = q.split(" ");
36286
36291
  let ee = "";
36287
36292
  for (const ie of Pe)
36288
36293
  if (ee += ` ${ie}`, ie.length > 3)
36289
36294
  break;
36290
- te.shortName = ae && G ? `${ae.trim().charAt(0)}.${ee}` : "";
36295
+ te.shortName = ae && q ? `${ae.trim().charAt(0)}.${ee}` : "";
36291
36296
  }), H;
36292
36297
  } catch (H) {
36293
36298
  return Promise.reject(H);
@@ -36326,7 +36331,7 @@ const sQ = { class: "dropdown" }, oQ = { class: "selected-item" }, rQ = {
36326
36331
  text: te.name,
36327
36332
  "is-active": m.value.componentName === te.componentName,
36328
36333
  tournaments: d.value,
36329
- onClick: (G) => L(te)
36334
+ onClick: (q) => L(te)
36330
36335
  }), null, 16, ["text", "is-active", "tournaments", "onClick"]))), 128))
36331
36336
  ]),
36332
36337
  l("div", zte, [
@@ -36371,7 +36376,7 @@ const sQ = { class: "dropdown" }, oQ = { class: "selected-item" }, rQ = {
36371
36376
  emits: ["change-filters-selected", "update:filters"],
36372
36377
  setup(e, { expose: a, emit: t }) {
36373
36378
  const i = e, s = T(!1), o = T([]), r = O(() => i.isExpansionMode ? "Cobradores filtrados:" : "Cobradores con los filtros seleccionados"), n = O(() => o.value.reduce((y, _) => _.isSelected ? y + 1 : y, 0));
36374
- q(
36379
+ G(
36375
36380
  () => i.takenCornersFilters,
36376
36381
  (y) => {
36377
36382
  o.value = y.map((_) => {
@@ -36380,7 +36385,7 @@ const sQ = { class: "dropdown" }, oQ = { class: "selected-item" }, rQ = {
36380
36385
  });
36381
36386
  },
36382
36387
  { immediate: !0, deep: !0 }
36383
- ), q(
36388
+ ), G(
36384
36389
  n,
36385
36390
  (y) => {
36386
36391
  s.value = y === o.value.length, t("change-filters-selected", y), t("update:filters", o.value);
@@ -36552,12 +36557,12 @@ const sQ = { class: "dropdown" }, oQ = { class: "selected-item" }, rQ = {
36552
36557
  emits: ["update:filters", "change-filters-selected"],
36553
36558
  setup(e, { emit: a }) {
36554
36559
  const t = e, i = T("left"), s = O(() => t.howWasCornerFilters[t.howWasCornerFilters.cornerType]), o = O(() => s.value.filter((n) => n.isSelected).length);
36555
- q(
36560
+ G(
36556
36561
  () => i.value,
36557
36562
  (n) => {
36558
36563
  t.howWasCornerFilters.cornerType = n;
36559
36564
  }
36560
- ), q(
36565
+ ), G(
36561
36566
  () => t.howWasCornerFilters,
36562
36567
  (n) => {
36563
36568
  a(
@@ -36729,15 +36734,15 @@ const sQ = { class: "dropdown" }, oQ = { class: "selected-item" }, rQ = {
36729
36734
  emits: ["update:filters", "change-filters-selected"],
36730
36735
  setup(e, { expose: a, emit: t }) {
36731
36736
  const i = e, s = T(!0), o = T([]), r = O(() => (/* @__PURE__ */ new Date()).getTime());
36732
- q(o, (m) => {
36737
+ G(o, (m) => {
36733
36738
  s.value = m.length === 35;
36734
- }), q(
36739
+ }), G(
36735
36740
  () => i.zoneFilters,
36736
36741
  (m) => {
36737
36742
  o.value = m;
36738
36743
  },
36739
36744
  { immediate: !0, deep: !0 }
36740
- ), q(
36745
+ ), G(
36741
36746
  () => o.value,
36742
36747
  (m) => {
36743
36748
  t("update:filters", m), t("change-filters-selected", m.length);
@@ -37288,7 +37293,7 @@ const sQ = { class: "dropdown" }, oQ = { class: "selected-item" }, rQ = {
37288
37293
  const i = e, s = O(() => i.whatHappenedFilters.reduce((f, g) => (g.child ? g.child.forEach((y) => {
37289
37294
  y.isSelected && f++;
37290
37295
  }) : g.isSelected && f++, f), 0)), o = O(() => i.whatHappenedFilters.reduce((f, g) => (g.child ? f += g.child.length : f++, f), 0)), r = O(() => s.value === o.value), n = O(() => s.value === 1);
37291
- q(
37296
+ G(
37292
37297
  () => i.whatHappenedFilters,
37293
37298
  (f) => {
37294
37299
  t("change-filters-selected", s.value), t("update:filters", f);
@@ -37433,7 +37438,7 @@ const sQ = { class: "dropdown" }, oQ = { class: "selected-item" }, rQ = {
37433
37438
  const c = s.value.isMoment ? s.value.results.moment.filter((d) => d.isSelected).length : s.value.results.final.filter((d) => d.isSelected).length;
37434
37439
  return t("change-filters-selected", c), c;
37435
37440
  }), r = O(() => s.value.isMoment ? "Resultado al momento del cobro" : "Resultado al final del partido");
37436
- q(
37441
+ G(
37437
37442
  () => i.resultsFilters,
37438
37443
  (c) => {
37439
37444
  s.value === null && (s.value = { ...c });
@@ -37442,7 +37447,7 @@ const sQ = { class: "dropdown" }, oQ = { class: "selected-item" }, rQ = {
37442
37447
  deep: !0,
37443
37448
  immediate: !0
37444
37449
  }
37445
- ), q(
37450
+ ), G(
37446
37451
  s,
37447
37452
  (c) => {
37448
37453
  t("update:filters", c);
@@ -37569,7 +37574,7 @@ const sQ = { class: "dropdown" }, oQ = { class: "selected-item" }, rQ = {
37569
37574
  const c = n[0];
37570
37575
  return (!c || c.id !== 0) && n.unshift(i), n.sort((d, m) => d.id - m.id), n;
37571
37576
  });
37572
- q(
37577
+ G(
37573
37578
  o,
37574
37579
  (n) => {
37575
37580
  const c = n.filter((d) => d.isSelected);
@@ -37644,7 +37649,7 @@ const sQ = { class: "dropdown" }, oQ = { class: "selected-item" }, rQ = {
37644
37649
  const d = n.find((v) => v.id === 138), m = n.find((v) => v.id === 0), h = n.filter((v) => v.id !== 138);
37645
37650
  return h.sort((v, f) => v.name.localeCompare(f.name)), d && (c = [d, ...h]), m || (c = [i, ...c]), c;
37646
37651
  });
37647
- q(
37652
+ G(
37648
37653
  o,
37649
37654
  (n) => {
37650
37655
  const c = n.filter((m) => m.isSelected);
@@ -37705,7 +37710,7 @@ const sQ = { class: "dropdown" }, oQ = { class: "selected-item" }, rQ = {
37705
37710
  const i = e;
37706
37711
  T(!1);
37707
37712
  const s = T([]);
37708
- O(() => s.value.filter((d) => d.isSelected).length), q(
37713
+ O(() => s.value.filter((d) => d.isSelected).length), G(
37709
37714
  () => i.seasonsIds,
37710
37715
  async (d) => {
37711
37716
  if (d)
@@ -37716,7 +37721,7 @@ const sQ = { class: "dropdown" }, oQ = { class: "selected-item" }, rQ = {
37716
37721
  }
37717
37722
  },
37718
37723
  { immediate: !0 }
37719
- ), q(
37724
+ ), G(
37720
37725
  () => s.value,
37721
37726
  (d) => {
37722
37727
  const m = d.filter((h) => h.isSelected);
@@ -38240,13 +38245,13 @@ const sQ = { class: "dropdown" }, oQ = { class: "selected-item" }, rQ = {
38240
38245
  );
38241
38246
  return N(B), i.filterType === K.PRODUCTIVITY && t("change-categories-selected", B.length), B.length;
38242
38247
  }), C = O(() => !i.isForTemplateForm && w.value >= i.productivityMaxCategories), D = O(() => !i.isForTemplateForm && w.value <= i.productivityMinCategories), Q = O(() => i.isPlayingAsHidden ? i.gameSections : i.playingAs.concat(i.gameSections));
38243
- q(
38248
+ G(
38244
38249
  n,
38245
38250
  (B) => {
38246
38251
  i.filterType === K.DETAILS && t("update:filters", B);
38247
38252
  },
38248
38253
  { immediate: !0, deep: !0 }
38249
- ), q(
38254
+ ), G(
38250
38255
  () => Q.value,
38251
38256
  (B) => {
38252
38257
  if (i.filterType === K.DETAILS) {
@@ -38255,7 +38260,7 @@ const sQ = { class: "dropdown" }, oQ = { class: "selected-item" }, rQ = {
38255
38260
  }
38256
38261
  },
38257
38262
  { immediate: !0, deep: !0 }
38258
- ), q(
38263
+ ), G(
38259
38264
  () => i.playsGolstatsCategories,
38260
38265
  (B) => {
38261
38266
  if (i.filterType === K.PLAYS_TYPES || i.filterType === K.GOLSTATS) {
@@ -38264,24 +38269,24 @@ const sQ = { class: "dropdown" }, oQ = { class: "selected-item" }, rQ = {
38264
38269
  }
38265
38270
  },
38266
38271
  { immediate: !0 }
38267
- ), q(
38272
+ ), G(
38268
38273
  () => i.fieldAreas,
38269
38274
  (B) => {
38270
38275
  i.filterType === K.FIELD && t("change-filters-selected", B.length);
38271
38276
  }
38272
- ), q(
38277
+ ), G(
38273
38278
  _,
38274
38279
  () => {
38275
38280
  i.filterType === K.PLAYS && V();
38276
38281
  },
38277
38282
  { immediate: !0, deep: !0 }
38278
- ), q(
38283
+ ), G(
38279
38284
  y,
38280
38285
  () => {
38281
38286
  i.filterType === K.PRODUCTIVITY && L();
38282
38287
  },
38283
38288
  { immediate: !0, deep: !0 }
38284
- ), q(
38289
+ ), G(
38285
38290
  () => i.resultsFilters,
38286
38291
  (B) => {
38287
38292
  i.filterType === K.RESULTS && t("change-filters-selected", B.results.filter((k) => k.isSelected).length);
@@ -38394,7 +38399,7 @@ const sQ = { class: "dropdown" }, oQ = { class: "selected-item" }, rQ = {
38394
38399
  function te(B) {
38395
38400
  i.filterType === K.YEARS && t("update:filters", B);
38396
38401
  }
38397
- function G(B) {
38402
+ function q(B) {
38398
38403
  i.filterType === K.NATIONALITIES && t("update:filters", B);
38399
38404
  }
38400
38405
  function ae(B) {
@@ -38645,7 +38650,7 @@ const sQ = { class: "dropdown" }, oQ = { class: "selected-item" }, rQ = {
38645
38650
  e.filterType === R(K).NATIONALITIES ? (u(), p("div", Vse, [
38646
38651
  F(Kie, {
38647
38652
  nationalities: e.nationalities,
38648
- onChangeNationality: G
38653
+ onChangeNationality: q
38649
38654
  }, null, 8, ["nationalities"])
38650
38655
  ])) : S("", !0)
38651
38656
  ]),
@@ -38750,7 +38755,7 @@ const sQ = { class: "dropdown" }, oQ = { class: "selected-item" }, rQ = {
38750
38755
  }
38751
38756
  return f;
38752
38757
  }), c = O(() => s.value ? t.zIndexOpen : 1);
38753
- q(
38758
+ G(
38754
38759
  () => t.modelValue,
38755
38760
  (f) => {
38756
38761
  f !== s.value && (s.value = f);
@@ -38758,7 +38763,7 @@ const sQ = { class: "dropdown" }, oQ = { class: "selected-item" }, rQ = {
38758
38763
  {
38759
38764
  immediate: !0
38760
38765
  }
38761
- ), q(s, (f) => {
38766
+ ), G(s, (f) => {
38762
38767
  f || setTimeout(() => {
38763
38768
  r.value["--translate-x"] = "0px";
38764
38769
  }, 500);
@@ -39338,7 +39343,7 @@ const sQ = { class: "dropdown" }, oQ = { class: "selected-item" }, rQ = {
39338
39343
  "--separator-width": t.separatorWidth,
39339
39344
  "--separator-color": t.separatorColor
39340
39345
  }));
39341
- q(
39346
+ G(
39342
39347
  () => t.modelValue,
39343
39348
  (r) => {
39344
39349
  i.value = r;
@@ -40478,8 +40483,8 @@ const sQ = { class: "dropdown" }, oQ = { class: "selected-item" }, rQ = {
40478
40483
  borderRadius: "12px",
40479
40484
  filterType: K.WHAT_HAPPENED,
40480
40485
  isFooterVisible: !0
40481
- }, Z = T(!1), E = T(!1), I = T(0), V = T(0), L = T({}), ce = T(null), ke = T(null), Ae = T("Universo"), P = T(""), H = T(""), te = O(() => i.isForTemplateForm ? "0" : "unset"), G = O(() => i.isFromTemplates ? K.RESULTS : i.filterType), ae = T(null);
40482
- q(
40486
+ }, Z = T(!1), E = T(!1), I = T(0), V = T(0), L = T({}), ce = T(null), ke = T(null), Ae = T("Universo"), P = T(""), H = T(""), te = O(() => i.isForTemplateForm ? "0" : "unset"), q = O(() => i.isFromTemplates ? K.RESULTS : i.filterType), ae = T(null);
40487
+ G(
40483
40488
  () => i.filterType,
40484
40489
  (de) => {
40485
40490
  if (de === K.PRODUCTIVITY)
@@ -40621,7 +40626,7 @@ const sQ = { class: "dropdown" }, oQ = { class: "selected-item" }, rQ = {
40621
40626
  L.value.isExpansionMode = i.isExpansionPanel, i.isExpansionPanel && (L.value.width = "100%", L.value.maxWidth = "100%"), Pe();
40622
40627
  },
40623
40628
  { immediate: !0 }
40624
- ), q(
40629
+ ), G(
40625
40630
  () => i.filters,
40626
40631
  () => {
40627
40632
  if (i.filterType === K.PRODUCTIVITY)
@@ -40761,9 +40766,9 @@ const sQ = { class: "dropdown" }, oQ = { class: "selected-item" }, rQ = {
40761
40766
  });
40762
40767
  L.value.isExpansionMode = i.isExpansionPanel, i.isExpansionPanel && (L.value.width = "100%", L.value.maxWidth = "100%");
40763
40768
  }
40764
- ), q(Z, (de) => {
40769
+ ), G(Z, (de) => {
40765
40770
  de || t("close", ae.value);
40766
- }), q(E, (de) => {
40771
+ }), G(E, (de) => {
40767
40772
  de || t("close", ae.value);
40768
40773
  });
40769
40774
  function Pe() {
@@ -40908,7 +40913,7 @@ const sQ = { class: "dropdown" }, oQ = { class: "selected-item" }, rQ = {
40908
40913
  "info-value": I.value,
40909
40914
  "filters-total": V.value.value,
40910
40915
  "is-active": Z.value,
40911
- "icon-type": G.value
40916
+ "icon-type": q.value
40912
40917
  }), null, 16, ["text", "show-badge-on-filter-full", "info-value", "filters-total", "is-active", "icon-type"])
40913
40918
  ]),
40914
40919
  menu: xe(() => [
@@ -41001,7 +41006,7 @@ const sQ = { class: "dropdown" }, oQ = { class: "selected-item" }, rQ = {
41001
41006
  const d = c[0];
41002
41007
  return (!d || d.id !== 0) && c.unshift(i), c.sort((m, h) => m.id - h.id), c;
41003
41008
  });
41004
- q(
41009
+ G(
41005
41010
  r,
41006
41011
  (c) => {
41007
41012
  const d = c.filter((m) => m.isSelected);
@@ -41636,7 +41641,7 @@ const mre = (e) => (Ve("data-v-6ca764b8"), e = e(), Re(), e), yre = { class: "dr
41636
41641
  d[m] = t.dropdownProps[m];
41637
41642
  }), d;
41638
41643
  }), n = O(() => t.isFemaleMode ? s : i);
41639
- q(
41644
+ G(
41640
41645
  n,
41641
41646
  (d) => {
41642
41647
  if (t.defaultPositionName) {
@@ -42083,7 +42088,7 @@ const Dre = /* @__PURE__ */ Are(M1, [["render", zre], ["__scopeId", "data-v-f3ee
42083
42088
  emits: ["input", "click-ready", "update:modelValue"],
42084
42089
  setup(e, { emit: a }) {
42085
42090
  const t = e, i = T({}), s = T(null), o = T(t.isMultipleOption ? -1 : 0), r = T(!1);
42086
- q(
42091
+ G(
42087
42092
  () => t.items,
42088
42093
  (f, g) => {
42089
42094
  if (!t.modelValue && (!t.onlyFirstTime || !g || !g.length) && f && f.length) {
@@ -42098,7 +42103,7 @@ const Dre = /* @__PURE__ */ Are(M1, [["render", zre], ["__scopeId", "data-v-f3ee
42098
42103
  }
42099
42104
  },
42100
42105
  { immediate: !0 }
42101
- ), q(
42106
+ ), G(
42102
42107
  () => t.modelValue,
42103
42108
  (f) => {
42104
42109
  if (f) {
@@ -42352,12 +42357,12 @@ const Dre = /* @__PURE__ */ Are(M1, [["render", zre], ["__scopeId", "data-v-f3ee
42352
42357
  V(), window.addEventListener("resize", Z);
42353
42358
  }), Bt(() => {
42354
42359
  window.removeEventListener("resize", Z), j(!1);
42355
- }), q(
42360
+ }), G(
42356
42361
  () => e.isVisible,
42357
42362
  (ee) => {
42358
42363
  ee ? (s.value = 1, setTimeout(X, 0), j(!0)) : (s.value = 1, j(!1));
42359
42364
  }
42360
- ), q(
42365
+ ), G(
42361
42366
  () => s.value,
42362
42367
  (ee) => {
42363
42368
  ee === 2 && setTimeout(() => {
@@ -42454,7 +42459,7 @@ const Dre = /* @__PURE__ */ Are(M1, [["render", zre], ["__scopeId", "data-v-f3ee
42454
42459
  console.error("Error al procesar la búsqueda:", Me), g.value = !1;
42455
42460
  }
42456
42461
  }
42457
- }, G = (ee) => {
42462
+ }, q = (ee) => {
42458
42463
  y.value.has(ee) ? y.value.delete(ee) : y.value.add(ee);
42459
42464
  }, ae = (ee) => {
42460
42465
  if (!ee) return "-";
@@ -42490,7 +42495,7 @@ const Dre = /* @__PURE__ */ Are(M1, [["render", zre], ["__scopeId", "data-v-f3ee
42490
42495
  onFiltersPersonalData: Ae,
42491
42496
  isSearchButtonActive: C,
42492
42497
  handleSearch: te,
42493
- handlePlayerSelection: G,
42498
+ handlePlayerSelection: q,
42494
42499
  selectedPlayers: y,
42495
42500
  hasSearched: D,
42496
42501
  searchQuery: Q,
@@ -42885,7 +42890,7 @@ const Vle = /* @__PURE__ */ xa(Yre, [["render", Ole], ["__scopeId", "data-v-aa77
42885
42890
  window.addEventListener("resize", h), y();
42886
42891
  }), Bt(() => {
42887
42892
  window.removeEventListener("resize", h), d(!1);
42888
- }), q(
42893
+ }), G(
42889
42894
  () => e.isVisible,
42890
42895
  (_) => {
42891
42896
  _ ? (setTimeout(c, 0), d(!0), t.value.name = e.listData.name, r.value.title = e.listData.name, t.value.id = e.listData.template, r.value.templateId = e.listData.template, i.value = o.value.findIndex((w) => w.id === r.value.templateId)) : d(!1);
@@ -43161,7 +43166,7 @@ const Hle = /* @__PURE__ */ xa(Rle, [["render", Wle], ["__scopeId", "data-v-d536
43161
43166
  P(), se(), window.addEventListener("resize", ce);
43162
43167
  }), Bt(() => {
43163
43168
  window.removeEventListener("resize", ce), V(!1);
43164
- }), q(
43169
+ }), G(
43165
43170
  () => e.isVisible,
43166
43171
  (k) => {
43167
43172
  k ? (setTimeout(I, 0), V(!0), setTimeout(() => {
@@ -43171,7 +43176,7 @@ const Hle = /* @__PURE__ */ xa(Rle, [["render", Wle], ["__scopeId", "data-v-d536
43171
43176
  );
43172
43177
  const H = O(() => e.isFemaleMode ? d.value : c.value), te = O(() => ({
43173
43178
  ...t.value
43174
- })), G = O(() => {
43179
+ })), q = O(() => {
43175
43180
  const k = e.tournaments && e.tournaments.length > 0 ? e.tournaments.map((z) => ({
43176
43181
  ...z
43177
43182
  })) : Ro;
@@ -43341,7 +43346,7 @@ const Hle = /* @__PURE__ */ xa(Rle, [["render", Wle], ["__scopeId", "data-v-d536
43341
43346
  const $e = z.split(" ")[0];
43342
43347
  return `${W[0]}. ${$e}`;
43343
43348
  };
43344
- q(o, (k) => {
43349
+ G(o, (k) => {
43345
43350
  k === 2 && (J.value = !1, N.value = !0, Q.value = null);
43346
43351
  });
43347
43352
  const ze = O(() => {
@@ -43408,7 +43413,7 @@ const Hle = /* @__PURE__ */ xa(Rle, [["render", Wle], ["__scopeId", "data-v-d536
43408
43413
  filtersTypes: K,
43409
43414
  onFiltersTournamentsTops: ae,
43410
43415
  tournamentsToFilter: Ro,
43411
- availableTournaments: G,
43416
+ availableTournaments: q,
43412
43417
  onFiltersPersonalData: Pe,
43413
43418
  isSearchButtonActive: N,
43414
43419
  handleSearch: U,
@@ -46750,17 +46755,17 @@ const mb = (e) => {
46750
46755
  let ce;
46751
46756
  try {
46752
46757
  if (J && d && _ !== "get" && _ !== "head" && (ce = await f(j, w)) !== 0) {
46753
- let G = new t(y, {
46758
+ let q = new t(y, {
46754
46759
  method: "POST",
46755
46760
  body: w,
46756
46761
  duplex: "half"
46757
46762
  }), ae;
46758
- if (fe.isFormData(w) && (ae = G.headers.get("content-type")) && j.setContentType(ae), G.body) {
46763
+ if (fe.isFormData(w) && (ae = q.headers.get("content-type")) && j.setContentType(ae), q.body) {
46759
46764
  const [Pe, ee] = dy(
46760
46765
  ce,
46761
46766
  Ol(cy(J))
46762
46767
  );
46763
- w = py(G.body, fy, Pe, ee);
46768
+ w = py(q.body, fy, Pe, ee);
46764
46769
  }
46765
46770
  }
46766
46771
  fe.isString(he) || (he = he ? "include" : "omit");
@@ -46777,9 +46782,9 @@ const mb = (e) => {
46777
46782
  let P = await (o ? E(V, Z) : E(y, Ae));
46778
46783
  const H = m && (X === "stream" || X === "response");
46779
46784
  if (m && (N || H && L)) {
46780
- const G = {};
46785
+ const q = {};
46781
46786
  ["status", "statusText", "headers"].forEach((ie) => {
46782
- G[ie] = P[ie];
46787
+ q[ie] = P[ie];
46783
46788
  });
46784
46789
  const ae = fe.toFiniteNumber(P.headers.get("content-length")), [Pe, ee] = N && dy(
46785
46790
  ae,
@@ -46789,13 +46794,13 @@ const mb = (e) => {
46789
46794
  py(P.body, fy, Pe, () => {
46790
46795
  ee && ee(), L && L();
46791
46796
  }),
46792
- G
46797
+ q
46793
46798
  );
46794
46799
  }
46795
46800
  X = X || "text";
46796
46801
  let te = await h[fe.findKey(h, X) || "text"](P, g);
46797
- return !H && L && L(), await new Promise((G, ae) => {
46798
- fb(G, ae, {
46802
+ return !H && L && L(), await new Promise((q, ae) => {
46803
+ fb(q, ae, {
46799
46804
  data: te,
46800
46805
  headers: $a.from(P.headers),
46801
46806
  status: P.status,
@@ -47655,7 +47660,7 @@ const E1e = /* @__PURE__ */ _1e(W1, [["render", $1e], ["__scopeId", "data-v-f3ee
47655
47660
  emits: ["input", "click-ready", "update:modelValue"],
47656
47661
  setup(e, { emit: a }) {
47657
47662
  const t = e, i = T({}), s = T(null), o = T(t.isMultipleOption ? -1 : 0), r = T(!1);
47658
- q(
47663
+ G(
47659
47664
  () => t.items,
47660
47665
  (f, g) => {
47661
47666
  if (!t.modelValue && (!t.onlyFirstTime || !g || !g.length) && f && f.length) {
@@ -47670,7 +47675,7 @@ const E1e = /* @__PURE__ */ _1e(W1, [["render", $1e], ["__scopeId", "data-v-f3ee
47670
47675
  }
47671
47676
  },
47672
47677
  { immediate: !0 }
47673
- ), q(
47678
+ ), G(
47674
47679
  () => t.modelValue,
47675
47680
  (f) => {
47676
47681
  if (f) {
@@ -48171,7 +48176,7 @@ const X1e = /* @__PURE__ */ j1e(H1, [["render", K1e], ["__scopeId", "data-v-f3ee
48171
48176
  emits: ["input", "click-ready", "update:modelValue"],
48172
48177
  setup(e, { emit: a }) {
48173
48178
  const t = e, i = T({}), s = T(null), o = T(t.isMultipleOption ? -1 : 0), r = T(!1);
48174
- q(
48179
+ G(
48175
48180
  () => t.items,
48176
48181
  (f, g) => {
48177
48182
  if (!t.modelValue && (!t.onlyFirstTime || !g || !g.length) && f && f.length) {
@@ -48186,7 +48191,7 @@ const X1e = /* @__PURE__ */ j1e(H1, [["render", K1e], ["__scopeId", "data-v-f3ee
48186
48191
  }
48187
48192
  },
48188
48193
  { immediate: !0 }
48189
- ), q(
48194
+ ), G(
48190
48195
  () => t.modelValue,
48191
48196
  (f) => {
48192
48197
  if (f) {
@@ -48455,23 +48460,28 @@ const X1e = /* @__PURE__ */ j1e(H1, [["render", K1e], ["__scopeId", "data-v-f3ee
48455
48460
  const y = t.isFemaleMode ? r.value.filter((_) => _.is_female) : r.value;
48456
48461
  return y.find((_) => _.seasonsIds.has(t.currentSeasonId)) || y[0];
48457
48462
  }), c = O(() => t.isFemaleMode ? r.value.filter((y) => y.is_female) : t.areFemaleVisible ? s.value : s.value.filter((y) => !y.is_female));
48458
- q(
48463
+ G(
48459
48464
  () => t.isClubesActive,
48460
48465
  () => {
48461
48466
  d();
48462
48467
  },
48463
48468
  { immediate: !0 }
48464
- ), q(
48469
+ ), G(
48465
48470
  () => t.routeName,
48466
48471
  () => {
48467
48472
  d();
48468
48473
  },
48469
48474
  { immediate: !0 }
48470
- ), q(
48475
+ ), G(
48471
48476
  () => t.apiUrl,
48472
48477
  () => {
48473
48478
  m();
48474
48479
  }
48480
+ ), G(
48481
+ () => t.token,
48482
+ () => {
48483
+ m();
48484
+ }
48475
48485
  );
48476
48486
  function d() {
48477
48487
  s.value.forEach((y) => {
@@ -48555,7 +48565,7 @@ const X1e = /* @__PURE__ */ j1e(H1, [["render", K1e], ["__scopeId", "data-v-f3ee
48555
48565
  }, 16, ["list-height", "model-value", "items"])
48556
48566
  ], 4));
48557
48567
  }
48558
- }, Sb = /* @__PURE__ */ npe(hpe, [["__scopeId", "data-v-4ba6e84c"]]);
48568
+ }, Sb = /* @__PURE__ */ npe(hpe, [["__scopeId", "data-v-0d72b2d7"]]);
48559
48569
  function _a(e) {
48560
48570
  const a = T({ width: 0, height: 0 });
48561
48571
  function t() {
@@ -50055,7 +50065,7 @@ const g0e = {
50055
50065
  emits: ["update:modelValue"],
50056
50066
  setup(e, { emit: a }) {
50057
50067
  const t = e, i = T(null);
50058
- q(
50068
+ G(
50059
50069
  () => t.modelValue,
50060
50070
  () => {
50061
50071
  s();
@@ -51703,7 +51713,7 @@ var eve = Vs({
51703
51713
  d.pauseAutoplayOnHover && V.value || ee();
51704
51714
  }, d.autoplay));
51705
51715
  }
51706
- function G() {
51716
+ function q() {
51707
51717
  w && (clearInterval(w), w = null), te();
51708
51718
  }
51709
51719
  const ae = T(!1);
@@ -51734,7 +51744,7 @@ var eve = Vs({
51734
51744
  currentSlideIndex: v.value,
51735
51745
  prevSlideIndex: f.value,
51736
51746
  slidesCount: c.value
51737
- }), ae.value = !1, G();
51747
+ }), ae.value = !1, q();
51738
51748
  }, d.transition));
51739
51749
  }
51740
51750
  function ee() {
@@ -51761,13 +51771,13 @@ var eve = Vs({
51761
51771
  };
51762
51772
  });
51763
51773
  function le() {
51764
- D(), Q(), j(), X(), G();
51774
+ D(), Q(), j(), X(), q();
51765
51775
  }
51766
51776
  Object.keys(zy).forEach((B) => {
51767
- ["modelValue"].includes(B) || q(() => e[B], le);
51768
- }), q(() => e.modelValue, (B) => {
51777
+ ["modelValue"].includes(B) || G(() => e[B], le);
51778
+ }), G(() => e.modelValue, (B) => {
51769
51779
  B !== v.value && Pe(Number(B));
51770
- }), q(c, j), t("before-init"), D();
51780
+ }), G(c, j), t("before-init"), D();
51771
51781
  const Me = {
51772
51782
  config: d,
51773
51783
  slidesCount: c,
@@ -52018,17 +52028,17 @@ const ive = (e, a) => {
52018
52028
  cfb58986: e.secondarySlidesOpacity
52019
52029
  }));
52020
52030
  const s = T(null), o = T({}), r = T(0), n = T(!1);
52021
- q(
52031
+ G(
52022
52032
  s,
52023
52033
  (y) => {
52024
52034
  y && n.value ? (n.value = !1, c(i.items)) : y && y.slideTo && y.slideTo(r.value);
52025
52035
  },
52026
52036
  { deep: !0 }
52027
- ), q(() => i.currentItemIndex, (y) => {
52037
+ ), G(() => i.currentItemIndex, (y) => {
52028
52038
  r.value !== y && v(y);
52029
- }), q(() => i.defaultItemByIndex, (y) => {
52039
+ }), G(() => i.defaultItemByIndex, (y) => {
52030
52040
  r.value !== y && v(y);
52031
- }), q(
52041
+ }), G(
52032
52042
  () => i.items,
52033
52043
  (y) => {
52034
52044
  s.value ? c(y) : n.value = !0;
@@ -54121,7 +54131,7 @@ const rp = /* @__PURE__ */ o3e(op, [["render", f3e], ["__scopeId", "data-v-8a86d
54121
54131
  };
54122
54132
  return (t.boxPosition === "left" || t.boxPosition === "right") && (d[`margin-${t.boxPosition}`] = t.isBoxOnly ? "0" : t.teamsIds ? "8px" : "10px"), d;
54123
54133
  });
54124
- q(
54134
+ G(
54125
54135
  () => t.modelValue,
54126
54136
  (d) => {
54127
54137
  d !== i.value && (i.value = d);
@@ -54340,13 +54350,13 @@ const rp = /* @__PURE__ */ o3e(op, [["render", f3e], ["__scopeId", "data-v-8a86d
54340
54350
  var _;
54341
54351
  return (_ = t.productivityCategories) == null ? void 0 : _.possession.categories.reduce((w, C) => (C.isSelected && w++, w), 0);
54342
54352
  }), v = O(() => t.isFromTemplates || t.isForTemplateForm);
54343
- q(
54353
+ G(
54344
54354
  () => t.productivityCategories,
54345
54355
  (_) => {
54346
54356
  _.offensesConditions && (r.value.areYellowCardsSelected = _.offensesConditions.areYellowCardsSelected, r.value.areRedCardsSelected = _.offensesConditions.areRedCardsSelected, r.value.areFoulsCommittedSelected = _.offensesConditions.areFoulsCommittedSelected);
54347
54357
  },
54348
54358
  { deep: !0, immediate: !0 }
54349
- ), q(
54359
+ ), G(
54350
54360
  r,
54351
54361
  (_) => {
54352
54362
  a("update:offensesConditions", _);
@@ -54688,7 +54698,7 @@ const rp = /* @__PURE__ */ o3e(op, [["render", f3e], ["__scopeId", "data-v-8a86d
54688
54698
  "42275f9c": e.buttonsBorderColorActive
54689
54699
  }));
54690
54700
  const i = T("");
54691
- q(
54701
+ G(
54692
54702
  () => t.statisticType,
54693
54703
  (v) => {
54694
54704
  i.value = v;
@@ -54696,7 +54706,7 @@ const rp = /* @__PURE__ */ o3e(op, [["render", f3e], ["__scopeId", "data-v-8a86d
54696
54706
  {
54697
54707
  immediate: !0
54698
54708
  }
54699
- ), q(
54709
+ ), G(
54700
54710
  () => i.value,
54701
54711
  (v) => {
54702
54712
  t.statisticType = v, a("change-statistic-type", v);
@@ -54890,7 +54900,7 @@ const rp = /* @__PURE__ */ o3e(op, [["render", f3e], ["__scopeId", "data-v-8a86d
54890
54900
  emits: ["change-filters-selected", "update:filters"],
54891
54901
  setup(e, { emit: a }) {
54892
54902
  const t = e, i = T(!1), s = T([]), o = O(() => r.value.filter((d) => d.isSelected).length), r = O(() => t.tournamentsUrl ? s.value : t.tournaments);
54893
- q(
54903
+ G(
54894
54904
  () => t.tournamentsUrl,
54895
54905
  async (d) => {
54896
54906
  if (d)
@@ -54910,7 +54920,7 @@ const rp = /* @__PURE__ */ o3e(op, [["render", f3e], ["__scopeId", "data-v-8a86d
54910
54920
  }
54911
54921
  },
54912
54922
  { immediate: !0 }
54913
- ), q(
54923
+ ), G(
54914
54924
  () => r.value,
54915
54925
  (d) => {
54916
54926
  const m = d.filter((h) => h.isSelected);
@@ -55030,7 +55040,7 @@ const rp = /* @__PURE__ */ o3e(op, [["render", f3e], ["__scopeId", "data-v-8a86d
55030
55040
  "--svg-width": `${t.svgWidth}px`,
55031
55041
  "--svg-height": `${t.svgHeight}px`
55032
55042
  }));
55033
- q(
55043
+ G(
55034
55044
  () => t.categories,
55035
55045
  (o) => {
55036
55046
  const r = o.filter((n) => n.isSelected);
@@ -55518,7 +55528,7 @@ const m4e = /* @__PURE__ */ o4e(np, [["render", h4e], ["__scopeId", "data-v-f3ee
55518
55528
  emits: ["input", "click-ready", "update:modelValue"],
55519
55529
  setup(e, { emit: a }) {
55520
55530
  const t = e, i = T({}), s = T(null), o = T(t.isMultipleOption ? -1 : 0), r = T(!1);
55521
- q(
55531
+ G(
55522
55532
  () => t.items,
55523
55533
  (f, g) => {
55524
55534
  if (!t.modelValue && (!t.onlyFirstTime || !g || !g.length) && f && f.length) {
@@ -55533,7 +55543,7 @@ const m4e = /* @__PURE__ */ o4e(np, [["render", h4e], ["__scopeId", "data-v-f3ee
55533
55543
  }
55534
55544
  },
55535
55545
  { immediate: !0 }
55536
- ), q(
55546
+ ), G(
55537
55547
  () => t.modelValue,
55538
55548
  (f) => {
55539
55549
  if (f) {
@@ -55736,7 +55746,7 @@ const m4e = /* @__PURE__ */ o4e(np, [["render", h4e], ["__scopeId", "data-v-f3ee
55736
55746
  emits: ["update:universeFilters"],
55737
55747
  setup(e, { expose: a, emit: t }) {
55738
55748
  const i = e, s = T(!1), o = T(!1), r = T(!1), n = T({ statistics: {} });
55739
- q(
55749
+ G(
55740
55750
  () => i.universeFilters,
55741
55751
  (h) => {
55742
55752
  n.value = {
@@ -55750,7 +55760,7 @@ const m4e = /* @__PURE__ */ o4e(np, [["render", h4e], ["__scopeId", "data-v-f3ee
55750
55760
  };
55751
55761
  },
55752
55762
  { deep: !0, immediate: !0 }
55753
- ), q(
55763
+ ), G(
55754
55764
  () => n,
55755
55765
  (h) => {
55756
55766
  s.value = !h.value.minutesPlayed || Number(h.value.minutesPlayed) === 0, o.value = !h.value.percentMinutesPlayed || Number(h.value.percentMinutesPlayed) === 0, r.value = !h.value.lastMonths || Number(h.value.lastMonths) === 0, t("update:universeFilters", h);
@@ -56337,7 +56347,7 @@ const Pb = /* @__PURE__ */ Fb(dp, [["render", l5e]]), n5e = { class: "template-d
56337
56347
  minLimit: 0,
56338
56348
  maxLimit: 0
56339
56349
  });
56340
- q(
56350
+ G(
56341
56351
  () => i.value,
56342
56352
  (o) => {
56343
56353
  a("update:distanceFilters", o);
@@ -56345,7 +56355,7 @@ const Pb = /* @__PURE__ */ Fb(dp, [["render", l5e]]), n5e = { class: "template-d
56345
56355
  {
56346
56356
  deep: !0
56347
56357
  }
56348
- ), q(
56358
+ ), G(
56349
56359
  () => t.distance,
56350
56360
  (o) => {
56351
56361
  i.value.minValue = o.minValue, i.value.maxValue = o.maxValue, i.value.minLimit = o.minLimit, i.value.maxLimit = o.maxLimit;
@@ -56385,7 +56395,7 @@ const Pb = /* @__PURE__ */ Fb(dp, [["render", l5e]]), n5e = { class: "template-d
56385
56395
  emits: ["update:gamesFilters"],
56386
56396
  setup(e, { emit: a }) {
56387
56397
  const t = e, i = T(!1), s = O(() => t.gamesFilters.filter((r) => r.isSelected).length);
56388
- q(
56398
+ G(
56389
56399
  s,
56390
56400
  (r) => {
56391
56401
  i.value = r === t.gamesFilters.length, a("update:gamesFilters", t.gamesFilters);
@@ -56860,7 +56870,7 @@ const B5e = /* @__PURE__ */ F5e(up, [["render", M5e], ["__scopeId", "data-v-f3ee
56860
56870
  };
56861
56871
  return (t.boxPosition === "left" || t.boxPosition === "right") && (d[`margin-${t.boxPosition}`] = t.isBoxOnly ? "0" : t.teamsIds ? "8px" : "10px"), d;
56862
56872
  });
56863
- q(
56873
+ G(
56864
56874
  () => t.modelValue,
56865
56875
  (d) => {
56866
56876
  d !== i.value && (i.value = d);
@@ -57508,12 +57518,12 @@ const x6e = /* @__PURE__ */ Z5e(pp, [["render", C6e], ["__scopeId", "data-v-b856
57508
57518
  const i = T(t.selectedButtonIndex), s = O(() => ({
57509
57519
  "--grid-template-columns": `repeat(${t.buttons.length}, 1fr)`
57510
57520
  }));
57511
- q(
57521
+ G(
57512
57522
  () => t.selectedButtonIndex,
57513
57523
  (r) => {
57514
57524
  i.value = r;
57515
57525
  }
57516
- ), q(i, (r, n) => {
57526
+ ), G(i, (r, n) => {
57517
57527
  r !== n && a("change", { index: r, button: t.buttons[r] });
57518
57528
  });
57519
57529
  function o(r) {
@@ -59748,7 +59758,7 @@ const I8e = {
59748
59758
  emits: ["update:modelValue"],
59749
59759
  setup(e, { emit: a }) {
59750
59760
  const t = e, i = T(null);
59751
- q(
59761
+ G(
59752
59762
  () => t.modelValue,
59753
59763
  () => {
59754
59764
  s();
@@ -59851,21 +59861,21 @@ const I8e = {
59851
59861
  const I = E[0];
59852
59862
  return (!I || I.id !== 0) && E.unshift(o), E.sort((V, L) => V.id - L.id), E;
59853
59863
  }), w = O(() => i.isEligibilityVisible ? i.season && i.season.tournamentId && s4.has(i.season.tournamentId) || i.filters && i.filters.isEligibilitySwitchVisible : !1);
59854
- q(
59864
+ G(
59855
59865
  y,
59856
59866
  (E) => {
59857
59867
  const I = E.reduce((V, L, ce) => (ce !== 0 && L.isSelected && V++, V), 0);
59858
59868
  I === y.value.length - 1 && (E[0].isSelected = !0), E[0] && E[0].isSelected ? h.value = "Todas las nacionalidades" : h.value = `${I} seleccionadas`, j();
59859
59869
  },
59860
59870
  { immediate: !0, deep: !0 }
59861
- ), q(
59871
+ ), G(
59862
59872
  _,
59863
59873
  (E) => {
59864
59874
  const I = E.reduce((V, L, ce) => (ce !== 0 && L.isSelected && V++, V), 0);
59865
59875
  I === _.value.length - 1 && (E[0].isSelected = !0), E[0] && E[0].isSelected ? v.value = "Todas las posiciones" : v.value = `${I} seleccionadas`, j();
59866
59876
  },
59867
59877
  { immediate: !0, deep: !0 }
59868
- ), q(
59878
+ ), G(
59869
59879
  () => i.filters,
59870
59880
  (E) => {
59871
59881
  if (E && E.availableYears) {
@@ -59874,12 +59884,12 @@ const I8e = {
59874
59884
  }
59875
59885
  },
59876
59886
  { immediate: !0, deep: !0 }
59877
- ), q(
59887
+ ), G(
59878
59888
  () => r.value.isEligibilitySelected,
59879
59889
  () => {
59880
59890
  j();
59881
59891
  }
59882
- ), q(
59892
+ ), G(
59883
59893
  () => i.season,
59884
59894
  (E) => {
59885
59895
  E && E.id !== g.value && !i.awaitForFilters && (g.value = E.id, C(E));
@@ -59891,7 +59901,7 @@ const I8e = {
59891
59901
  if (E && E.id) {
59892
59902
  const I = /* @__PURE__ */ new Set(), V = await Q(E.id), L = /* @__PURE__ */ new Date(), ce = [], ke = /* @__PURE__ */ new Map(), Ae = /* @__PURE__ */ new Map();
59893
59903
  V.forEach((P) => {
59894
- const H = new Date(P.dob), te = a4(H), G = i4({
59904
+ const H = new Date(P.dob), te = a4(H), q = i4({
59895
59905
  start: H,
59896
59906
  end: L
59897
59907
  });
@@ -59903,7 +59913,7 @@ const I8e = {
59903
59913
  id: P.position_id,
59904
59914
  isSelected: !0,
59905
59915
  name: t4[`${P.position_id}`]
59906
- }), I.add(te), ce.push(G.years);
59916
+ }), I.add(te), ce.push(q.years);
59907
59917
  }), r.value.minAge = Math.min(...ce), r.value.maxAge = Math.max(...ce), r.value.availableYears = [...I].sort((P, H) => H - P), f.value = r.value.availableYears[0], r.value.nationalities = [...ke.values()], r.value.positions = [...Ae.values()], d.value.min = r.value.minAge, d.value.max = r.value.maxAge;
59908
59918
  }
59909
59919
  } catch (I) {
@@ -60287,7 +60297,7 @@ const I8e = {
60287
60297
  emits: ["update:resultsFilters"],
60288
60298
  setup(e, { emit: a }) {
60289
60299
  const t = e, i = O(() => t.resultsFilters.results.filter((s) => s.isSelected).length);
60290
- return q(
60300
+ return G(
60291
60301
  () => t.resultsFilters,
60292
60302
  (s) => {
60293
60303
  a("update:resultsFilters", s);
@@ -60678,11 +60688,11 @@ const k9e = { class: "dropdown" }, F9e = { class: "selected-item" }, P9e = {
60678
60688
  },
60679
60689
  setup(e) {
60680
60690
  const a = e, t = di(
60681
- () => import("./FilterSubcategories-107c6930-92e89256-DyPEZ4Dz.js")
60691
+ () => import("./FilterSubcategories-107c6930-7947188a-nKUQV25u.js")
60682
60692
  ), i = di(
60683
- () => import("./FilterConditions-3d93eab5-247cc8e8-C37ZOGNN.js")
60693
+ () => import("./FilterConditions-3d93eab5-19d9e20d-BxRSwmaB.js")
60684
60694
  ), s = di(
60685
- () => import("./FilterField-1e367942-47353f89-CXYKHHbZ.js")
60695
+ () => import("./FilterField-1e367942-74bb9c10-CbShQ6qZ.js")
60686
60696
  ), o = [
60687
60697
  {
60688
60698
  name: "Sub categorías",
@@ -61241,11 +61251,11 @@ const k9e = { class: "dropdown" }, F9e = { class: "selected-item" }, P9e = {
61241
61251
  }), _ = T([]);
61242
61252
  T({});
61243
61253
  const w = T(null);
61244
- q(h, (P) => {
61254
+ G(h, (P) => {
61245
61255
  v.value.numberSeasonSelectedIndex = v.value.seasons.findIndex(
61246
61256
  (H) => H.id === P.id
61247
61257
  ), P.arrayMatchDays ? (g.value = P.arrayMatchDays[0] || {}, f.value = P.arrayTeams[0] || {}) : (J(P), X(P));
61248
- }), q(f, () => {
61258
+ }), G(f, () => {
61249
61259
  setTimeout(() => {
61250
61260
  h.value.mapPlayersByTeam && (!f.value.arrayPlayers || !f.value.arrayPlayers.length) && (f.value.arrayPlayers = h.value.mapPlayersByTeam.get(
61251
61261
  f.value.team_id
@@ -61264,9 +61274,9 @@ const k9e = { class: "dropdown" }, F9e = { class: "selected-item" }, P9e = {
61264
61274
  const P = {
61265
61275
  Authorization: tc() || t.token
61266
61276
  }, H = {}.API_TOURNAMENTS || t.tournamentsUrl, te = await Wi.get(H, { headers: P });
61267
- return te.data ? te.data.map((G) => ({
61268
- ...G.tournament,
61269
- seasons: G.seasons
61277
+ return te.data ? te.data.map((q) => ({
61278
+ ...q.tournament,
61279
+ seasons: q.seasons
61270
61280
  })) : [];
61271
61281
  } catch (P) {
61272
61282
  return Promise.reject(P);
@@ -61274,20 +61284,20 @@ const k9e = { class: "dropdown" }, F9e = { class: "selected-item" }, P9e = {
61274
61284
  }
61275
61285
  async function Q(P, H, te = "") {
61276
61286
  a("loading-data");
61277
- let G = te;
61287
+ let q = te;
61278
61288
  try {
61279
- G || (G = {}.API_CALENDAR_GAMES_BY_SEASON || t.gamesUrl, P.forEach((ie, $) => {
61280
- G += `${$ === 0 ? "" : "&"}seasons=${ie}`;
61289
+ q || (q = {}.API_CALENDAR_GAMES_BY_SEASON || t.gamesUrl, P.forEach((ie, $) => {
61290
+ q += `${$ === 0 ? "" : "&"}seasons=${ie}`;
61281
61291
  }));
61282
61292
  const ae = {
61283
61293
  Authorization: tc() || t.token
61284
61294
  }, {
61285
61295
  data: { data: Pe, teams: ee }
61286
- } = await Wi.get(G, { headers: ae });
61296
+ } = await Wi.get(q, { headers: ae });
61287
61297
  return { seasonsAndGames: Pe, seasonsAndTeams: ee };
61288
61298
  } catch (ae) {
61289
61299
  if (H > 0)
61290
- return Q(P, H - 1, G);
61300
+ return Q(P, H - 1, q);
61291
61301
  throw new Error(ae);
61292
61302
  } finally {
61293
61303
  a("loading-data");
@@ -61297,8 +61307,8 @@ const k9e = { class: "dropdown" }, F9e = { class: "selected-item" }, P9e = {
61297
61307
  try {
61298
61308
  const H = {
61299
61309
  Authorization: tc() || t.token
61300
- }, te = ` ${{}.API_PLAYERS_BY_SEASON || t.playersUrl}${P.seasonId}`, G = await Wi.get(te, { headers: H });
61301
- return G.data ? G.data.players : [];
61310
+ }, te = ` ${{}.API_PLAYERS_BY_SEASON || t.playersUrl}${P.seasonId}`, q = await Wi.get(te, { headers: H });
61311
+ return q.data ? q.data.players : [];
61302
61312
  } catch (H) {
61303
61313
  return Promise.reject(H);
61304
61314
  }
@@ -61311,11 +61321,11 @@ const k9e = { class: "dropdown" }, F9e = { class: "selected-item" }, P9e = {
61311
61321
  ...P.related_seasons.map((ee) => ee.id)
61312
61322
  ],
61313
61323
  3
61314
- ), G = te.find(
61324
+ ), q = te.find(
61315
61325
  (ee) => ee._id === P.id
61316
61326
  );
61317
61327
  h.value.arrayTeams = [], h.value.mapTeams = /* @__PURE__ */ new Map();
61318
- const ae = G.teams.reduce((ee, ie) => (h.value.arrayTeams.push(ie), h.value.mapTeams.set(ie.team_id, {
61328
+ const ae = q.teams.reduce((ee, ie) => (h.value.arrayTeams.push(ie), h.value.mapTeams.set(ie.team_id, {
61319
61329
  name: ie.colloquial_name,
61320
61330
  acronym: ie.acronym,
61321
61331
  logo: ie.logo,
@@ -61366,17 +61376,17 @@ const k9e = { class: "dropdown" }, F9e = { class: "selected-item" }, P9e = {
61366
61376
  async function X(P) {
61367
61377
  try {
61368
61378
  const H = await I(P.id);
61369
- h.value.mapPlayers = /* @__PURE__ */ new Map(), h.value.mapPlayersByTeam = H.reduce((te, G) => {
61370
- h.value.mapPlayers.set(G.player_id, {
61371
- id: G.player_id,
61372
- name: G.player_name,
61373
- shortName: G.shortName,
61374
- photo: G.player_photo,
61375
- teamId: G.team_id,
61376
- positionId: G.position_id
61379
+ h.value.mapPlayers = /* @__PURE__ */ new Map(), h.value.mapPlayersByTeam = H.reduce((te, q) => {
61380
+ h.value.mapPlayers.set(q.player_id, {
61381
+ id: q.player_id,
61382
+ name: q.player_name,
61383
+ shortName: q.shortName,
61384
+ photo: q.player_photo,
61385
+ teamId: q.team_id,
61386
+ positionId: q.position_id
61377
61387
  });
61378
- const ae = te.get(G.team_id);
61379
- return ae ? ae.push(G) : te.set(G.team_id, [G]), te;
61388
+ const ae = te.get(q.team_id);
61389
+ return ae ? ae.push(q) : te.set(q.team_id, [q]), te;
61380
61390
  }, /* @__PURE__ */ new Map());
61381
61391
  } catch (H) {
61382
61392
  throw new Error(H);
@@ -61423,7 +61433,7 @@ const k9e = { class: "dropdown" }, F9e = { class: "selected-item" }, P9e = {
61423
61433
  isEmpty: !1
61424
61434
  }
61425
61435
  );
61426
- const te = /* @__PURE__ */ new Map(), G = "Resumen", ae = "Todas sus jugadas", Pe = y.value.player.reduce(
61436
+ const te = /* @__PURE__ */ new Map(), q = "Resumen", ae = "Todas sus jugadas", Pe = y.value.player.reduce(
61427
61437
  (ie, $) => {
61428
61438
  const se = Z($);
61429
61439
  return se.forEach((U) => {
@@ -61441,16 +61451,16 @@ const k9e = { class: "dropdown" }, F9e = { class: "selected-item" }, P9e = {
61441
61451
  []
61442
61452
  );
61443
61453
  y.value.games.unshift({
61444
- name: G,
61454
+ name: q,
61445
61455
  arrayCategoriesIds: r.games,
61446
61456
  booleanIsBestPlays: !0
61447
61457
  }), y.value.team.unshift({
61448
- name: G,
61458
+ name: q,
61449
61459
  arrayCategoriesIds: r.team,
61450
61460
  booleanIsBestPlays: !0
61451
61461
  }), y.value.player.unshift(
61452
61462
  {
61453
- name: G,
61463
+ name: q,
61454
61464
  arrayCategoriesIds: r.player.regular,
61455
61465
  booleanIsBestPlays: !0
61456
61466
  },
@@ -61461,7 +61471,7 @@ const k9e = { class: "dropdown" }, F9e = { class: "selected-item" }, P9e = {
61461
61471
  }
61462
61472
  ), y.value.goalkeeper.unshift(
61463
61473
  {
61464
- name: G,
61474
+ name: q,
61465
61475
  arrayCategoriesIds: r.player.goalkeeper,
61466
61476
  booleanIsBestPlays: !0
61467
61477
  },
@@ -61476,11 +61486,11 @@ const k9e = { class: "dropdown" }, F9e = { class: "selected-item" }, P9e = {
61476
61486
  throw new Error(P);
61477
61487
  }
61478
61488
  }
61479
- function he(P, H = 0, te = /* @__PURE__ */ new Map(), G = !1, ae = {}, Pe = []) {
61489
+ function he(P, H = 0, te = /* @__PURE__ */ new Map(), q = !1, ae = {}, Pe = []) {
61480
61490
  if (!P.group_id)
61481
61491
  return;
61482
61492
  let ee = te.get(H);
61483
- const ie = G ? `${P.id_category}_r` : P.id_category;
61493
+ const ie = q ? `${P.id_category}_r` : P.id_category;
61484
61494
  P.id_category && Pe.push(P.id_category);
61485
61495
  let $ = {
61486
61496
  ids: [ie],
@@ -61513,7 +61523,7 @@ const k9e = { class: "dropdown" }, F9e = { class: "selected-item" }, P9e = {
61513
61523
  se,
61514
61524
  H + 1,
61515
61525
  te,
61516
- G,
61526
+ q,
61517
61527
  $,
61518
61528
  Pe
61519
61529
  );
@@ -61534,32 +61544,32 @@ const k9e = { class: "dropdown" }, F9e = { class: "selected-item" }, P9e = {
61534
61544
  if (H.booleanIsBestPlays)
61535
61545
  return H.arrayCategoriesIds;
61536
61546
  const te = { total: [], toRemove: [] };
61537
- if (H.subcategoryGroups && H.subcategoryGroups.length ? H.subcategoryGroups[0].forEach((G) => {
61538
- E(G, null, te);
61539
- }) : (H.ids && te.total.push(...H.ids), H.rival_ids && H.rival_ids.forEach((G) => {
61540
- te.total.push(`${G}_r`);
61541
- })), te.total = te.total.reduce((G, ae) => (te.toRemove.includes(ae) || G.push(ae), G), []), !P) {
61542
- const G = H.name.toLowerCase().includes("recibid");
61543
- w.value.isRivalSubject = G, w.value.avoidCategorySingleName = G, w.value.coordinatePoint = H.coordinatePoint, w.value.requiresRivalTransform = H.requiresRivalTransform;
61547
+ if (H.subcategoryGroups && H.subcategoryGroups.length ? H.subcategoryGroups[0].forEach((q) => {
61548
+ E(q, null, te);
61549
+ }) : (H.ids && te.total.push(...H.ids), H.rival_ids && H.rival_ids.forEach((q) => {
61550
+ te.total.push(`${q}_r`);
61551
+ })), te.total = te.total.reduce((q, ae) => (te.toRemove.includes(ae) || q.push(ae), q), []), !P) {
61552
+ const q = H.name.toLowerCase().includes("recibid");
61553
+ w.value.isRivalSubject = q, w.value.avoidCategorySingleName = q, w.value.coordinatePoint = H.coordinatePoint, w.value.requiresRivalTransform = H.requiresRivalTransform;
61544
61554
  }
61545
61555
  return te.total;
61546
61556
  }
61547
61557
  function E(P, H = [], te = { total: [], toRemove: [] }) {
61548
- P.isSelected ? P.childCategories ? P.childCategories.forEach((G) => {
61558
+ P.isSelected ? P.childCategories ? P.childCategories.forEach((q) => {
61549
61559
  const ae = H ? Object.entries(P.idsByFatherCategory).reduce((Pe, [ee, ie]) => (H.includes(Number(ee)) && ie.forEach(($) => {
61550
61560
  typeof $ == "string" && $.endsWith("_r") ? Pe.push(Number($.split("_")[0])) : Pe.push($);
61551
61561
  }), Pe), []) : [P.id];
61552
- E(G, ae, te);
61553
- }) : H ? Object.entries(P.idsByFatherCategory).forEach(([G, ae]) => {
61554
- H.includes(Number(G)) && ae.forEach((Pe) => {
61562
+ E(q, ae, te);
61563
+ }) : H ? Object.entries(P.idsByFatherCategory).forEach(([q, ae]) => {
61564
+ H.includes(Number(q)) && ae.forEach((Pe) => {
61555
61565
  te.total.push(Pe);
61556
61566
  });
61557
- }) : P.level === 1 ? Object.entries(P.idsByFatherCategory).forEach(([G, ae]) => {
61567
+ }) : P.level === 1 ? Object.entries(P.idsByFatherCategory).forEach(([q, ae]) => {
61558
61568
  ae.forEach((Pe) => {
61559
61569
  te.total.push(Pe);
61560
61570
  });
61561
- }) : te.total.push(P.id) : P.childCategories || P.ids.forEach((G) => {
61562
- te.toRemove.push(G);
61571
+ }) : te.total.push(P.id) : P.childCategories || P.ids.forEach((q) => {
61572
+ te.toRemove.push(q);
61563
61573
  });
61564
61574
  }
61565
61575
  async function I(P) {
@@ -61568,12 +61578,12 @@ const k9e = { class: "dropdown" }, F9e = { class: "selected-item" }, P9e = {
61568
61578
  seasonId: P
61569
61579
  });
61570
61580
  return H.forEach((te) => {
61571
- const [G, ae] = te.player_name.split(","), Pe = G.split(" ");
61581
+ const [q, ae] = te.player_name.split(","), Pe = q.split(" ");
61572
61582
  let ee = "";
61573
61583
  for (const ie of Pe)
61574
61584
  if (ee += ` ${ie}`, ie.length > 3)
61575
61585
  break;
61576
- te.shortName = ae && G ? `${ae.trim().charAt(0)}.${ee}` : "";
61586
+ te.shortName = ae && q ? `${ae.trim().charAt(0)}.${ee}` : "";
61577
61587
  }), H;
61578
61588
  } catch (H) {
61579
61589
  return Promise.reject(H);
@@ -61612,7 +61622,7 @@ const k9e = { class: "dropdown" }, F9e = { class: "selected-item" }, P9e = {
61612
61622
  text: te.name,
61613
61623
  "is-active": m.value.componentName === te.componentName,
61614
61624
  tournaments: d.value,
61615
- onClick: (G) => L(te)
61625
+ onClick: (q) => L(te)
61616
61626
  }), null, 16, ["text", "is-active", "tournaments", "onClick"]))), 128))
61617
61627
  ]),
61618
61628
  l("div", nwe, [
@@ -61657,7 +61667,7 @@ const k9e = { class: "dropdown" }, F9e = { class: "selected-item" }, P9e = {
61657
61667
  emits: ["change-filters-selected", "update:filters"],
61658
61668
  setup(e, { expose: a, emit: t }) {
61659
61669
  const i = e, s = T(!1), o = T([]), r = O(() => i.isExpansionMode ? "Cobradores filtrados:" : "Cobradores con los filtros seleccionados"), n = O(() => o.value.reduce((y, _) => _.isSelected ? y + 1 : y, 0));
61660
- q(
61670
+ G(
61661
61671
  () => i.takenCornersFilters,
61662
61672
  (y) => {
61663
61673
  o.value = y.map((_) => {
@@ -61666,7 +61676,7 @@ const k9e = { class: "dropdown" }, F9e = { class: "selected-item" }, P9e = {
61666
61676
  });
61667
61677
  },
61668
61678
  { immediate: !0, deep: !0 }
61669
- ), q(
61679
+ ), G(
61670
61680
  n,
61671
61681
  (y) => {
61672
61682
  s.value = y === o.value.length, t("change-filters-selected", y), t("update:filters", o.value);
@@ -61838,12 +61848,12 @@ const k9e = { class: "dropdown" }, F9e = { class: "selected-item" }, P9e = {
61838
61848
  emits: ["update:filters", "change-filters-selected"],
61839
61849
  setup(e, { emit: a }) {
61840
61850
  const t = e, i = T("left"), s = O(() => t.howWasCornerFilters[t.howWasCornerFilters.cornerType]), o = O(() => s.value.filter((n) => n.isSelected).length);
61841
- q(
61851
+ G(
61842
61852
  () => i.value,
61843
61853
  (n) => {
61844
61854
  t.howWasCornerFilters.cornerType = n;
61845
61855
  }
61846
- ), q(
61856
+ ), G(
61847
61857
  () => t.howWasCornerFilters,
61848
61858
  (n) => {
61849
61859
  a(
@@ -62015,15 +62025,15 @@ const k9e = { class: "dropdown" }, F9e = { class: "selected-item" }, P9e = {
62015
62025
  emits: ["update:filters", "change-filters-selected"],
62016
62026
  setup(e, { expose: a, emit: t }) {
62017
62027
  const i = e, s = T(!0), o = T([]), r = O(() => (/* @__PURE__ */ new Date()).getTime());
62018
- q(o, (m) => {
62028
+ G(o, (m) => {
62019
62029
  s.value = m.length === 35;
62020
- }), q(
62030
+ }), G(
62021
62031
  () => i.zoneFilters,
62022
62032
  (m) => {
62023
62033
  o.value = m;
62024
62034
  },
62025
62035
  { immediate: !0, deep: !0 }
62026
- ), q(
62036
+ ), G(
62027
62037
  () => o.value,
62028
62038
  (m) => {
62029
62039
  t("update:filters", m), t("change-filters-selected", m.length);
@@ -62574,7 +62584,7 @@ const k9e = { class: "dropdown" }, F9e = { class: "selected-item" }, P9e = {
62574
62584
  const i = e, s = O(() => i.whatHappenedFilters.reduce((f, g) => (g.child ? g.child.forEach((y) => {
62575
62585
  y.isSelected && f++;
62576
62586
  }) : g.isSelected && f++, f), 0)), o = O(() => i.whatHappenedFilters.reduce((f, g) => (g.child ? f += g.child.length : f++, f), 0)), r = O(() => s.value === o.value), n = O(() => s.value === 1);
62577
- q(
62587
+ G(
62578
62588
  () => i.whatHappenedFilters,
62579
62589
  (f) => {
62580
62590
  t("change-filters-selected", s.value), t("update:filters", f);
@@ -62719,7 +62729,7 @@ const k9e = { class: "dropdown" }, F9e = { class: "selected-item" }, P9e = {
62719
62729
  const c = s.value.isMoment ? s.value.results.moment.filter((d) => d.isSelected).length : s.value.results.final.filter((d) => d.isSelected).length;
62720
62730
  return t("change-filters-selected", c), c;
62721
62731
  }), r = O(() => s.value.isMoment ? "Resultado al momento del cobro" : "Resultado al final del partido");
62722
- q(
62732
+ G(
62723
62733
  () => i.resultsFilters,
62724
62734
  (c) => {
62725
62735
  s.value === null && (s.value = { ...c });
@@ -62728,7 +62738,7 @@ const k9e = { class: "dropdown" }, F9e = { class: "selected-item" }, P9e = {
62728
62738
  deep: !0,
62729
62739
  immediate: !0
62730
62740
  }
62731
- ), q(
62741
+ ), G(
62732
62742
  s,
62733
62743
  (c) => {
62734
62744
  t("update:filters", c);
@@ -62855,7 +62865,7 @@ const k9e = { class: "dropdown" }, F9e = { class: "selected-item" }, P9e = {
62855
62865
  const c = n[0];
62856
62866
  return (!c || c.id !== 0) && n.unshift(i), n.sort((d, m) => d.id - m.id), n;
62857
62867
  });
62858
- q(
62868
+ G(
62859
62869
  o,
62860
62870
  (n) => {
62861
62871
  const c = n.filter((d) => d.isSelected);
@@ -62930,7 +62940,7 @@ const k9e = { class: "dropdown" }, F9e = { class: "selected-item" }, P9e = {
62930
62940
  const d = n.find((v) => v.id === 138), m = n.find((v) => v.id === 0), h = n.filter((v) => v.id !== 138);
62931
62941
  return h.sort((v, f) => v.name.localeCompare(f.name)), d && (c = [d, ...h]), m || (c = [i, ...c]), c;
62932
62942
  });
62933
- q(
62943
+ G(
62934
62944
  o,
62935
62945
  (n) => {
62936
62946
  const c = n.filter((m) => m.isSelected);
@@ -62991,7 +63001,7 @@ const k9e = { class: "dropdown" }, F9e = { class: "selected-item" }, P9e = {
62991
63001
  const i = e;
62992
63002
  T(!1);
62993
63003
  const s = T([]);
62994
- O(() => s.value.filter((d) => d.isSelected).length), q(
63004
+ O(() => s.value.filter((d) => d.isSelected).length), G(
62995
63005
  () => i.seasonsIds,
62996
63006
  async (d) => {
62997
63007
  if (d)
@@ -63002,7 +63012,7 @@ const k9e = { class: "dropdown" }, F9e = { class: "selected-item" }, P9e = {
63002
63012
  }
63003
63013
  },
63004
63014
  { immediate: !0 }
63005
- ), q(
63015
+ ), G(
63006
63016
  () => s.value,
63007
63017
  (d) => {
63008
63018
  const m = d.filter((h) => h.isSelected);
@@ -63526,13 +63536,13 @@ const k9e = { class: "dropdown" }, F9e = { class: "selected-item" }, P9e = {
63526
63536
  );
63527
63537
  return N(B), i.filterType === Y.PRODUCTIVITY && t("change-categories-selected", B.length), B.length;
63528
63538
  }), C = O(() => !i.isForTemplateForm && w.value >= i.productivityMaxCategories), D = O(() => !i.isForTemplateForm && w.value <= i.productivityMinCategories), Q = O(() => i.isPlayingAsHidden ? i.gameSections : i.playingAs.concat(i.gameSections));
63529
- q(
63539
+ G(
63530
63540
  n,
63531
63541
  (B) => {
63532
63542
  i.filterType === Y.DETAILS && t("update:filters", B);
63533
63543
  },
63534
63544
  { immediate: !0, deep: !0 }
63535
- ), q(
63545
+ ), G(
63536
63546
  () => Q.value,
63537
63547
  (B) => {
63538
63548
  if (i.filterType === Y.DETAILS) {
@@ -63541,7 +63551,7 @@ const k9e = { class: "dropdown" }, F9e = { class: "selected-item" }, P9e = {
63541
63551
  }
63542
63552
  },
63543
63553
  { immediate: !0, deep: !0 }
63544
- ), q(
63554
+ ), G(
63545
63555
  () => i.playsGolstatsCategories,
63546
63556
  (B) => {
63547
63557
  if (i.filterType === Y.PLAYS_TYPES || i.filterType === Y.GOLSTATS) {
@@ -63550,24 +63560,24 @@ const k9e = { class: "dropdown" }, F9e = { class: "selected-item" }, P9e = {
63550
63560
  }
63551
63561
  },
63552
63562
  { immediate: !0 }
63553
- ), q(
63563
+ ), G(
63554
63564
  () => i.fieldAreas,
63555
63565
  (B) => {
63556
63566
  i.filterType === Y.FIELD && t("change-filters-selected", B.length);
63557
63567
  }
63558
- ), q(
63568
+ ), G(
63559
63569
  _,
63560
63570
  () => {
63561
63571
  i.filterType === Y.PLAYS && V();
63562
63572
  },
63563
63573
  { immediate: !0, deep: !0 }
63564
- ), q(
63574
+ ), G(
63565
63575
  y,
63566
63576
  () => {
63567
63577
  i.filterType === Y.PRODUCTIVITY && L();
63568
63578
  },
63569
63579
  { immediate: !0, deep: !0 }
63570
- ), q(
63580
+ ), G(
63571
63581
  () => i.resultsFilters,
63572
63582
  (B) => {
63573
63583
  i.filterType === Y.RESULTS && t("change-filters-selected", B.results.filter((k) => k.isSelected).length);
@@ -63680,7 +63690,7 @@ const k9e = { class: "dropdown" }, F9e = { class: "selected-item" }, P9e = {
63680
63690
  function te(B) {
63681
63691
  i.filterType === Y.YEARS && t("update:filters", B);
63682
63692
  }
63683
- function G(B) {
63693
+ function q(B) {
63684
63694
  i.filterType === Y.NATIONALITIES && t("update:filters", B);
63685
63695
  }
63686
63696
  function ae(B) {
@@ -63931,7 +63941,7 @@ const k9e = { class: "dropdown" }, F9e = { class: "selected-item" }, P9e = {
63931
63941
  e.filterType === R(Y).NATIONALITIES ? (u(), p("div", aTe, [
63932
63942
  F(bxe, {
63933
63943
  nationalities: e.nationalities,
63934
- onChangeNationality: G
63944
+ onChangeNationality: q
63935
63945
  }, null, 8, ["nationalities"])
63936
63946
  ])) : S("", !0)
63937
63947
  ]),
@@ -64030,7 +64040,7 @@ const k9e = { class: "dropdown" }, F9e = { class: "selected-item" }, P9e = {
64030
64040
  left: t.leftMenu,
64031
64041
  width: t.menuWidth
64032
64042
  }), c = O(() => s.value ? t.zIndexOpen : 1);
64033
- q(
64043
+ G(
64034
64044
  () => t.modelValue,
64035
64045
  (f) => {
64036
64046
  f !== s.value && (s.value = f);
@@ -64038,7 +64048,7 @@ const k9e = { class: "dropdown" }, F9e = { class: "selected-item" }, P9e = {
64038
64048
  {
64039
64049
  immediate: !0
64040
64050
  }
64041
- ), q(s, async (f) => {
64051
+ ), G(s, async (f) => {
64042
64052
  var g;
64043
64053
  if (f) {
64044
64054
  await es();
@@ -64632,7 +64642,7 @@ const k9e = { class: "dropdown" }, F9e = { class: "selected-item" }, P9e = {
64632
64642
  "--separator-width": t.separatorWidth,
64633
64643
  "--separator-color": t.separatorColor
64634
64644
  }));
64635
- q(
64645
+ G(
64636
64646
  () => t.modelValue,
64637
64647
  (r) => {
64638
64648
  i.value = r;
@@ -65772,8 +65782,8 @@ const k9e = { class: "dropdown" }, F9e = { class: "selected-item" }, P9e = {
65772
65782
  borderRadius: "12px",
65773
65783
  filterType: Y.WHAT_HAPPENED,
65774
65784
  isFooterVisible: !0
65775
- }, Z = T(!1), E = T(!1), I = T(0), V = T(0), L = T({}), ce = T(null), ke = T(null), Ae = T("Universo"), P = T(""), H = T(""), te = O(() => i.isForTemplateForm ? "0" : "unset"), G = O(() => i.isFromTemplates ? Y.RESULTS : i.filterType), ae = T(null);
65776
- q(
65785
+ }, Z = T(!1), E = T(!1), I = T(0), V = T(0), L = T({}), ce = T(null), ke = T(null), Ae = T("Universo"), P = T(""), H = T(""), te = O(() => i.isForTemplateForm ? "0" : "unset"), q = O(() => i.isFromTemplates ? Y.RESULTS : i.filterType), ae = T(null);
65786
+ G(
65777
65787
  () => i.filterType,
65778
65788
  (de) => {
65779
65789
  if (de === Y.PRODUCTIVITY)
@@ -65915,7 +65925,7 @@ const k9e = { class: "dropdown" }, F9e = { class: "selected-item" }, P9e = {
65915
65925
  L.value.isExpansionMode = i.isExpansionPanel, i.isExpansionPanel && (L.value.width = "100%", L.value.maxWidth = "100%"), Pe();
65916
65926
  },
65917
65927
  { immediate: !0 }
65918
- ), q(
65928
+ ), G(
65919
65929
  () => i.filters,
65920
65930
  () => {
65921
65931
  if (i.filterType === Y.PRODUCTIVITY)
@@ -66055,9 +66065,9 @@ const k9e = { class: "dropdown" }, F9e = { class: "selected-item" }, P9e = {
66055
66065
  });
66056
66066
  L.value.isExpansionMode = i.isExpansionPanel, i.isExpansionPanel && (L.value.width = "100%", L.value.maxWidth = "100%");
66057
66067
  }
66058
- ), q(Z, (de) => {
66068
+ ), G(Z, (de) => {
66059
66069
  de || t("close", ae.value);
66060
- }), q(E, (de) => {
66070
+ }), G(E, (de) => {
66061
66071
  de || t("close", ae.value);
66062
66072
  });
66063
66073
  function Pe() {
@@ -66202,7 +66212,7 @@ const k9e = { class: "dropdown" }, F9e = { class: "selected-item" }, P9e = {
66202
66212
  "info-value": I.value,
66203
66213
  "filters-total": V.value.value,
66204
66214
  "is-active": Z.value,
66205
- "icon-type": G.value
66215
+ "icon-type": q.value
66206
66216
  }), null, 16, ["text", "show-badge-on-filter-full", "info-value", "filters-total", "is-active", "icon-type"])
66207
66217
  ]),
66208
66218
  menu: xe(() => [
@@ -66295,7 +66305,7 @@ const k9e = { class: "dropdown" }, F9e = { class: "selected-item" }, P9e = {
66295
66305
  const d = c[0];
66296
66306
  return (!d || d.id !== 0) && c.unshift(i), c.sort((m, h) => m.id - h.id), c;
66297
66307
  });
66298
- q(
66308
+ G(
66299
66309
  r,
66300
66310
  (c) => {
66301
66311
  const d = c.filter((m) => m.isSelected);
@@ -66511,7 +66521,7 @@ const kke = { class: "dropdown-years" }, Fke = {
66511
66521
  c[d] = t.dropdownProps[d];
66512
66522
  }), c;
66513
66523
  });
66514
- q(
66524
+ G(
66515
66525
  () => t.teamId,
66516
66526
  (c) => {
66517
66527
  c && n();
@@ -66841,6 +66851,9 @@ const Nl = "/group-427321501.svg", u4 = "/shape.svg", jke = "_filtersContainer_b
66841
66851
  }
66842
66852
  },
66843
66853
  watch: {
66854
+ async token() {
66855
+ await this.fetchTournamentsForSelection();
66856
+ },
66844
66857
  async seasonActive() {
66845
66858
  if (this.seasonActive != 0) {
66846
66859
  this.teams = [];
@@ -71336,12 +71349,12 @@ const y$e = /* @__PURE__ */ It(Cp, [["render", m$e], ["__scopeId", "data-v-a5833
71336
71349
  }
71337
71350
  }
71338
71351
  };
71339
- q(
71352
+ G(
71340
71353
  () => e.isVisible,
71341
71354
  (y) => {
71342
71355
  d(y), y && e.userId && f();
71343
71356
  }
71344
- ), q(
71357
+ ), G(
71345
71358
  () => e.userId,
71346
71359
  (y) => {
71347
71360
  y && e.isVisible && f();
@@ -71663,12 +71676,12 @@ const Z$e = /* @__PURE__ */ It(g$e, [["render", J$e], ["__scopeId", "data-v-67ca
71663
71676
  window.addEventListener("resize", c);
71664
71677
  }), Bt(() => {
71665
71678
  window.removeEventListener("resize", c), r(!1);
71666
- }), q(
71679
+ }), G(
71667
71680
  () => e.isVisible,
71668
71681
  (h) => {
71669
71682
  h ? (setTimeout(o, 0), r(!0)) : r(!1);
71670
71683
  }
71671
- ), q(() => e.listData, (h) => {
71684
+ ), G(() => e.listData, (h) => {
71672
71685
  h && (h.name && (i.value.title = h.name), h.template && (i.value.templateId = Number(h.template)));
71673
71686
  }, { immediate: !0 }), {
71674
71687
  modalContent: t,
@@ -71993,7 +72006,7 @@ const nEe = /* @__PURE__ */ It(Y$e, [["render", lEe], ["__scopeId", "data-v-0dd4
71993
72006
  };
71994
72007
  return (t.boxPosition === "left" || t.boxPosition === "right") && (d[`margin-${t.boxPosition}`] = t.isBoxOnly ? "0" : t.teamsIds ? "8px" : "10px"), d;
71995
72008
  });
71996
- q(
72009
+ G(
71997
72010
  () => t.modelValue,
71998
72011
  (d) => {
71999
72012
  d !== i.value && (i.value = d);
@@ -74064,7 +74077,7 @@ const bIe = (e, a) => {
74064
74077
  emits: ["selectList", "close", "createNewList", "playerAdded"],
74065
74078
  setup(e, { emit: a }) {
74066
74079
  const t = e, i = T(null), s = T(!0), o = T(!1), r = a;
74067
- q(
74080
+ G(
74068
74081
  () => t.isModalOpen,
74069
74082
  (v) => {
74070
74083
  s.value = !v;
@@ -76471,7 +76484,7 @@ const oVe = (e, a) => {
76471
76484
  "--gap-static-row": `${j.value ? "8px" : "18px"}`,
76472
76485
  "--width-static-column": `${j.value ? "65%" : "436px"}`
76473
76486
  })), j = O(() => d.value < 600);
76474
- q(
76487
+ G(
76475
76488
  () => t.players,
76476
76489
  (k) => {
76477
76490
  k && k.length && (o.value = k.map((z, W) => {
@@ -76496,14 +76509,14 @@ const oVe = (e, a) => {
76496
76509
  })));
76497
76510
  },
76498
76511
  { immediate: !0, deep: !0 }
76499
- ), q(
76512
+ ), G(
76500
76513
  () => t.isEditMode,
76501
76514
  (k) => {
76502
76515
  k && o.value.forEach((z) => {
76503
76516
  z.isSelected = !1;
76504
76517
  });
76505
76518
  }
76506
- ), q(
76519
+ ), G(
76507
76520
  () => y.value,
76508
76521
  (k) => {
76509
76522
  if (k) {
@@ -76520,11 +76533,11 @@ const oVe = (e, a) => {
76520
76533
  });
76521
76534
  },
76522
76535
  { immediate: !0, deep: !0 }
76523
- ), q(
76536
+ ), G(
76524
76537
  m,
76525
76538
  (k) => {
76526
76539
  const z = document.querySelectorAll(".static-row")[h.value + 1];
76527
- z && (z.style.marginTop = `${k}px`), t.isGeneral ? he(h.value, k) : n.value && n.value.setMarginTopDetails(h.value, k), k === 0 && f.value && G(f.value);
76540
+ z && (z.style.marginTop = `${k}px`), t.isGeneral ? he(h.value, k) : n.value && n.value.setMarginTopDetails(h.value, k), k === 0 && f.value && q(f.value);
76528
76541
  }
76529
76542
  );
76530
76543
  function he(k, z) {
@@ -76642,7 +76655,7 @@ const oVe = (e, a) => {
76642
76655
  function te(k) {
76643
76656
  a("show-graph", k);
76644
76657
  }
76645
- function G(k) {
76658
+ function q(k) {
76646
76659
  if (k.isExpanded) {
76647
76660
  k.isExpanded = !1, f.value = null;
76648
76661
  return;
@@ -76706,7 +76719,7 @@ const oVe = (e, a) => {
76706
76719
  }
76707
76720
  });
76708
76721
  }
76709
- q(
76722
+ G(
76710
76723
  () => [t.players, t.isGeneral],
76711
76724
  () => {
76712
76725
  ze();
@@ -76961,7 +76974,7 @@ const oVe = (e, a) => {
76961
76974
  viewBox: "0 0 12 8",
76962
76975
  fill: "#D9D9D9",
76963
76976
  xmlns: "http://www.w3.org/2000/svg",
76964
- onClick: ($e) => G(W)
76977
+ onClick: ($e) => q(W)
76965
76978
  }, vRe, 10, yRe))
76966
76979
  ])
76967
76980
  ], 6))), 128))
@@ -81351,6 +81364,9 @@ const rWe = /* @__PURE__ */ It(zp, [["render", oWe], ["__scopeId", "data-v-c8b0c
81351
81364
  }
81352
81365
  },
81353
81366
  watch: {
81367
+ async token() {
81368
+ await this.fetchTournamentsForSelection();
81369
+ },
81354
81370
  async seasonActive() {
81355
81371
  if (this.seasonActive != 0) {
81356
81372
  this.teams = [];
@@ -86410,6 +86426,11 @@ const $Ge = {
86410
86426
  },
86411
86427
  created() {
86412
86428
  },
86429
+ watch: {
86430
+ async token() {
86431
+ await this.fetchTournamentsForSelection();
86432
+ }
86433
+ },
86413
86434
  async mounted() {
86414
86435
  try {
86415
86436
  await this.fetchTournamentsForSelection(), await this.fillPersonalDataFilters(), this.isSearchActive = !0, !this.hasTemplates || this.hidePersonalizableVariables ? (this.selectedRadioOption = "Info general", delete this.filtersObject.template_id, this.showVariables = !1, this.checkSearchButton()) : await new Promise((e) => {
@@ -86896,7 +86917,7 @@ const $Ge = {
86896
86917
  });
86897
86918
  }
86898
86919
  }
86899
- }, ci = (e) => (Ve("data-v-43017e2c"), e = e(), Re(), e), VGe = {
86920
+ }, ci = (e) => (Ve("data-v-16d1665e"), e = e(), Re(), e), VGe = {
86900
86921
  ref: "myDivRefTopsBestPlay",
86901
86922
  class: "tops-best-play"
86902
86923
  }, RGe = { class: "overlay-loading" }, MGe = /* @__PURE__ */ ci(() => /* @__PURE__ */ l("div", { class: "overlay-loading__spinner" }, [
@@ -87349,7 +87370,7 @@ function dqe(e, a, t, i, s, o) {
87349
87370
  ], 512)
87350
87371
  ], 64);
87351
87372
  }
87352
- const cqe = /* @__PURE__ */ It(OGe, [["render", dqe], ["__scopeId", "data-v-43017e2c"]]), uqe = {
87373
+ const cqe = /* @__PURE__ */ It(OGe, [["render", dqe], ["__scopeId", "data-v-16d1665e"]]), uqe = {
87353
87374
  name: "SwitchTopsType",
87354
87375
  components: {
87355
87376
  TopsFull: u$e,
@@ -87602,7 +87623,7 @@ const fqe = /* @__PURE__ */ It(uqe, [["render", pqe]]), hqe = { class: "elegible
87602
87623
  }, null, 8, ["user-id", "team-id", "hide-personalizable-variables", "is-female-mode", "token"])
87603
87624
  ]));
87604
87625
  }
87605
- }), bg = /* @__PURE__ */ Jo(mqe, [["__scopeId", "data-v-433d86de"]]), yqe = (e) => (Ve("data-v-fb7f69ad"), e = e(), Re(), e), gqe = /* @__PURE__ */ yqe(() => /* @__PURE__ */ l("h2", { class: "title" }, "Seguimiento jugadores", -1)), vqe = { class: "" }, bqe = { class: "" }, _qe = { class: "tabs" }, Sqe = {
87626
+ }), bg = /* @__PURE__ */ Jo(mqe, [["__scopeId", "data-v-433d86de"]]), yqe = (e) => (Ve("data-v-995c9739"), e = e(), Re(), e), gqe = /* @__PURE__ */ yqe(() => /* @__PURE__ */ l("h2", { class: "title" }, "Seguimiento jugadores", -1)), vqe = { class: "" }, bqe = { class: "" }, _qe = { class: "tabs" }, Sqe = {
87606
87627
  __name: "PlayersTrackingMain",
87607
87628
  props: {
87608
87629
  tournamentsApiUrl: {
@@ -87677,18 +87698,23 @@ const fqe = /* @__PURE__ */ It(uqe, [["render", pqe]]), hqe = { class: "elegible
87677
87698
  color: "white",
87678
87699
  arrowColor: "#CBEE6B"
87679
87700
  }, s = t.userType === "seleccion" ? ["Detección de jugadores", "Listas de seguimiento", "Última convocatoria"] : ["Detección de jugadores", "Listas de seguimiento"], o = T("Detección de jugadores"), r = T({ width: 0 }), n = T(null), c = T(0), d = T(0), m = T([]), h = T([]), v = T(!1), f = T(!1), g = T({}), y = T([]), _ = T({}), w = T({});
87680
- q(
87701
+ G(
87681
87702
  () => t.tournamentId,
87682
87703
  ($) => {
87683
87704
  $ && Q();
87684
87705
  },
87685
87706
  { immediate: !0 }
87686
- ), q(
87707
+ ), G(
87687
87708
  () => t.teamId,
87688
87709
  async ($) => {
87689
87710
  $ && (await D(), await Q());
87690
87711
  },
87691
87712
  { immediate: !0 }
87713
+ ), G(
87714
+ () => t.token,
87715
+ async () => {
87716
+ t.teamId && (await D(), await Q());
87717
+ }
87692
87718
  );
87693
87719
  const C = ($) => {
87694
87720
  o.value = $;
@@ -87831,7 +87857,7 @@ const fqe = /* @__PURE__ */ It(uqe, [["render", pqe]]), hqe = { class: "elegible
87831
87857
  function te($) {
87832
87858
  a("tops-loaded", $);
87833
87859
  }
87834
- async function G() {
87860
+ async function q() {
87835
87861
  if (g.value.friendlyGames && g.value.friendlyGames.length > 0)
87836
87862
  try {
87837
87863
  const se = await (await fetch(
@@ -87849,14 +87875,14 @@ const fqe = /* @__PURE__ */ It(uqe, [["render", pqe]]), hqe = { class: "elegible
87849
87875
  }
87850
87876
  }
87851
87877
  function ae($) {
87852
- w.value = $, G();
87878
+ w.value = $, q();
87853
87879
  }
87854
87880
  async function Pe($) {
87855
87881
  const se = $.name.toLowerCase();
87856
87882
  $.isFriendly = se.includes("friend"), $.isFriendly && !$.friendlyGames && ($.friendlyGames = $.seasons.reduce(
87857
87883
  (U, le) => (le.games && (U = [...U, ...le.games]), U),
87858
87884
  []
87859
- )), g.value = $, g.value.friendlyGames ? (w.value = g.value.friendlyGames[0], await G()) : N();
87885
+ )), g.value = $, g.value.friendlyGames ? (w.value = g.value.friendlyGames[0], await q()) : N();
87860
87886
  }
87861
87887
  function ee($) {
87862
87888
  _.value = $;
@@ -87968,7 +87994,7 @@ const fqe = /* @__PURE__ */ It(uqe, [["render", pqe]]), hqe = { class: "elegible
87968
87994
  ], 2)
87969
87995
  ], 512));
87970
87996
  }
87971
- }, mZe = /* @__PURE__ */ Jo(Sqe, [["__scopeId", "data-v-fb7f69ad"]]);
87997
+ }, mZe = /* @__PURE__ */ Jo(Sqe, [["__scopeId", "data-v-995c9739"]]);
87972
87998
  export {
87973
87999
  qI as E,
87974
88000
  rt as G,