@golstats/gsc-players-tracking 1.0.42 → 1.0.43

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.
@@ -2359,7 +2359,7 @@ const sc = /* @__PURE__ */ Fl(bh, [["render", Uh], ["__scopeId", "data-v-834c012
2359
2359
  stats: a.stats
2360
2360
  }), ["stop"]))
2361
2361
  }, h[6] || (h[6] = [
2362
- at(' Gráfica <span class="button-icon" data-v-a34a3611><svg fill="none" height="16" viewBox="0 0 17 16" width="17" xmlns="http://www.w3.org/2000/svg" data-v-a34a3611><g clip-path="url(#clip0_3514_71971)" data-v-a34a3611><path d="M16.3338 6.02932L8.65108 0.447539C8.56099 0.38207 8.43896 0.38207 8.34886 0.447539C8.34292 0.451852 1.97661 5.07726 0.6663 6.02926C0.498706 6.09269 0.445831 6.30248 0.563113 6.43788L3.48277 15.4238C3.51717 15.5297 3.61589 15.6014 3.72727 15.6014H13.2635C13.3911 15.6014 13.484 15.5258 13.5172 15.4238L16.4368 6.43788C16.5544 6.3022 16.501 6.09269 16.3338 6.02932ZM13.1818 14.792L12.2937 13.5604C12.4178 13.3198 12.4262 13.0472 12.3402 12.813L13.4007 8.12035C13.7342 7.97885 13.9718 7.64673 13.9682 7.25316L15.8203 6.67173L13.1818 14.792ZM1.18005 6.67273L2.54311 7.10316C2.52677 7.60485 2.90696 8.01919 3.39221 8.06116L5.37836 11.3233C5.0798 11.6827 5.09336 12.2096 5.41452 12.5533L3.8173 14.7894L1.18005 6.67273ZM7.02283 11.9909C7.03952 11.7764 6.98346 11.5718 6.86936 11.4011L8.47839 9.14851L10.8495 12.4367C10.7173 12.5536 10.6187 12.7075 10.5697 12.8821L7.02283 11.9909ZM7.62217 4.78338C7.74714 5.00898 7.96299 5.17704 8.22033 5.23844V8.35679L4.40411 7.15166C4.40767 6.95926 4.35377 6.77813 4.25196 6.6232L7.62217 4.78338ZM12.2474 6.77016C12.151 6.92429 12.0998 7.10551 12.1071 7.29851L8.73449 8.35735V5.21526C8.94317 5.14495 9.11883 5.00291 9.23183 4.8182L12.2474 6.77016ZM4.25277 7.64307L8.06249 8.84613L6.47533 11.0681C6.26327 10.973 6.02383 10.9611 5.80383 11.0334L3.92524 7.94795C4.05761 7.87432 4.17008 7.76935 4.25277 7.64307ZM11.9237 12.3234C11.7375 12.2181 11.526 12.1827 11.3228 12.214L8.8943 8.84613L12.2678 7.78701C12.4038 7.98623 12.6151 8.12979 12.8607 8.17698L11.9237 12.3234ZM12.648 6.41704L9.36721 4.29329C9.35074 3.90045 9.09089 3.57073 8.73449 3.45063V1.14366L15.6674 6.18076L13.8211 6.76041C13.5672 6.3651 13.0654 6.22463 12.648 6.41704ZM8.22033 3.42748C7.83383 3.5197 7.54105 3.8527 7.50917 4.25923L3.8238 6.27107C3.42227 6.10782 2.95152 6.24232 2.70096 6.61379L1.33164 6.18138L8.22033 1.17648V3.42748ZM5.85711 12.8183C6.22189 12.9143 6.61096 12.7823 6.84071 12.4753L10.5778 13.4143C10.7578 13.9855 11.4215 14.2369 11.9331 13.9395L12.7607 15.0872H4.23642L5.85711 12.8183Z" fill="white" data-v-a34a3611></path></g><defs data-v-a34a3611><clipPath id="clip0_3514_71971" data-v-a34a3611><rect fill="white" height="16" transform="translate(0.5)" width="16" data-v-a34a3611></rect></clipPath></defs></svg></span>', 2)
2362
+ at(' Gráfica <span class="button-icon" data-v-2baeacbf><svg fill="none" height="16" viewBox="0 0 17 16" width="17" xmlns="http://www.w3.org/2000/svg" data-v-2baeacbf><g clip-path="url(#clip0_3514_71971)" data-v-2baeacbf><path d="M16.3338 6.02932L8.65108 0.447539C8.56099 0.38207 8.43896 0.38207 8.34886 0.447539C8.34292 0.451852 1.97661 5.07726 0.6663 6.02926C0.498706 6.09269 0.445831 6.30248 0.563113 6.43788L3.48277 15.4238C3.51717 15.5297 3.61589 15.6014 3.72727 15.6014H13.2635C13.3911 15.6014 13.484 15.5258 13.5172 15.4238L16.4368 6.43788C16.5544 6.3022 16.501 6.09269 16.3338 6.02932ZM13.1818 14.792L12.2937 13.5604C12.4178 13.3198 12.4262 13.0472 12.3402 12.813L13.4007 8.12035C13.7342 7.97885 13.9718 7.64673 13.9682 7.25316L15.8203 6.67173L13.1818 14.792ZM1.18005 6.67273L2.54311 7.10316C2.52677 7.60485 2.90696 8.01919 3.39221 8.06116L5.37836 11.3233C5.0798 11.6827 5.09336 12.2096 5.41452 12.5533L3.8173 14.7894L1.18005 6.67273ZM7.02283 11.9909C7.03952 11.7764 6.98346 11.5718 6.86936 11.4011L8.47839 9.14851L10.8495 12.4367C10.7173 12.5536 10.6187 12.7075 10.5697 12.8821L7.02283 11.9909ZM7.62217 4.78338C7.74714 5.00898 7.96299 5.17704 8.22033 5.23844V8.35679L4.40411 7.15166C4.40767 6.95926 4.35377 6.77813 4.25196 6.6232L7.62217 4.78338ZM12.2474 6.77016C12.151 6.92429 12.0998 7.10551 12.1071 7.29851L8.73449 8.35735V5.21526C8.94317 5.14495 9.11883 5.00291 9.23183 4.8182L12.2474 6.77016ZM4.25277 7.64307L8.06249 8.84613L6.47533 11.0681C6.26327 10.973 6.02383 10.9611 5.80383 11.0334L3.92524 7.94795C4.05761 7.87432 4.17008 7.76935 4.25277 7.64307ZM11.9237 12.3234C11.7375 12.2181 11.526 12.1827 11.3228 12.214L8.8943 8.84613L12.2678 7.78701C12.4038 7.98623 12.6151 8.12979 12.8607 8.17698L11.9237 12.3234ZM12.648 6.41704L9.36721 4.29329C9.35074 3.90045 9.09089 3.57073 8.73449 3.45063V1.14366L15.6674 6.18076L13.8211 6.76041C13.5672 6.3651 13.0654 6.22463 12.648 6.41704ZM8.22033 3.42748C7.83383 3.5197 7.54105 3.8527 7.50917 4.25923L3.8238 6.27107C3.42227 6.10782 2.95152 6.24232 2.70096 6.61379L1.33164 6.18138L8.22033 1.17648V3.42748ZM5.85711 12.8183C6.22189 12.9143 6.61096 12.7823 6.84071 12.4753L10.5778 13.4143C10.7578 13.9855 11.4215 14.2369 11.9331 13.9395L12.7607 15.0872H4.23642L5.85711 12.8183Z" fill="white" data-v-2baeacbf></path></g><defs data-v-2baeacbf><clipPath id="clip0_3514_71971" data-v-2baeacbf><rect fill="white" height="16" transform="translate(0.5)" width="16" data-v-2baeacbf></rect></clipPath></defs></svg></span>', 2)
2363
2363
  ])),
2364
2364
  o("button", {
2365
2365
  class: "action-button delete-button",
@@ -2369,7 +2369,7 @@ const sc = /* @__PURE__ */ Fl(bh, [["render", Uh], ["__scopeId", "data-v-834c012
2369
2369
  position: a.position
2370
2370
  }), ["stop"]))
2371
2371
  }, h[7] || (h[7] = [
2372
- at(' Eliminar <span class="button-icon" data-v-a34a3611><svg width="17" height="15" viewBox="0 0 20 18" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-a34a3611><path d="M13.3345 16.5001V14.8334C13.3345 13.9494 12.9833 13.1015 12.3582 12.4764C11.7331 11.8513 10.8852 11.5001 10.0012 11.5001H5.00126C4.11722 11.5001 3.26938 11.8513 2.64427 12.4764C2.01915 13.1015 1.66797 13.9494 1.66797 14.8334V16.5001" stroke="white" stroke-opacity="0.5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-v-a34a3611></path><path d="M7.50126 8.16658C9.34219 8.16658 10.8346 6.67422 10.8346 4.83329C10.8346 2.99237 9.34219 1.5 7.50126 1.5C5.66033 1.5 4.16797 2.99237 4.16797 4.83329C4.16797 6.67422 5.66033 8.16658 7.50126 8.16658Z" stroke="white" stroke-opacity="0.5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-v-a34a3611></path><path d="M18.332 8.16663H13.332" stroke="white" stroke-opacity="0.5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-v-a34a3611></path></svg></span>', 2)
2372
+ at(' Eliminar <span class="button-icon" data-v-2baeacbf><svg width="17" height="15" viewBox="0 0 20 18" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-2baeacbf><path d="M13.3345 16.5001V14.8334C13.3345 13.9494 12.9833 13.1015 12.3582 12.4764C11.7331 11.8513 10.8852 11.5001 10.0012 11.5001H5.00126C4.11722 11.5001 3.26938 11.8513 2.64427 12.4764C2.01915 13.1015 1.66797 13.9494 1.66797 14.8334V16.5001" stroke="white" stroke-opacity="0.5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-v-2baeacbf></path><path d="M7.50126 8.16658C9.34219 8.16658 10.8346 6.67422 10.8346 4.83329C10.8346 2.99237 9.34219 1.5 7.50126 1.5C5.66033 1.5 4.16797 2.99237 4.16797 4.83329C4.16797 6.67422 5.66033 8.16658 7.50126 8.16658Z" stroke="white" stroke-opacity="0.5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-v-2baeacbf></path><path d="M18.332 8.16663H13.332" stroke="white" stroke-opacity="0.5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-v-2baeacbf></path></svg></span>', 2)
2373
2373
  ]))
2374
2374
  ])),
2375
2375
  e.deleteActive ? S("", !0) : (n(), d("button", {
@@ -2438,7 +2438,7 @@ const sc = /* @__PURE__ */ Fl(bh, [["render", Uh], ["__scopeId", "data-v-834c012
2438
2438
  }, null, 8, ["isVisible", "parameters"])
2439
2439
  ], 64));
2440
2440
  }
2441
- }, uy = /* @__PURE__ */ Et(cy, [["__scopeId", "data-v-a34a3611"]]), Al = {
2441
+ }, uy = /* @__PURE__ */ Et(cy, [["__scopeId", "data-v-2baeacbf"]]), Al = {
2442
2442
  name: "GridView",
2443
2443
  components: {
2444
2444
  GscPlayerCard: uy
@@ -2645,7 +2645,7 @@ const sc = /* @__PURE__ */ Fl(bh, [["render", Uh], ["__scopeId", "data-v-834c012
2645
2645
  }
2646
2646
  }, cr = () => {
2647
2647
  fe((e) => ({
2648
- e0ff4f4c: e.cardGap + "px"
2648
+ d428e65e: e.cardGap + "px"
2649
2649
  }));
2650
2650
  }, ur = Al.setup;
2651
2651
  Al.setup = ur ? (e, a) => (cr(), ur(e, a)) : cr;
@@ -2739,7 +2739,7 @@ function _y(e, a, t, i, s, l) {
2739
2739
  ], 2)
2740
2740
  ]);
2741
2741
  }
2742
- const Sy = /* @__PURE__ */ Et(Al, [["render", _y], ["__scopeId", "data-v-03f77a98"]]), wy = (e, a) => {
2742
+ const Sy = /* @__PURE__ */ Et(Al, [["render", _y], ["__scopeId", "data-v-f6994525"]]), wy = (e, a) => {
2743
2743
  const t = e.__vccOpts || e;
2744
2744
  for (const [i, s] of a)
2745
2745
  t[i] = s;
@@ -3094,7 +3094,7 @@ const Wy = /* @__PURE__ */ My(Il, [["render", jy], ["__scopeId", "data-v-f3ee6b2
3094
3094
  for (const [i, s] of a)
3095
3095
  t[i] = s;
3096
3096
  return t;
3097
- }, oc = (e) => (ve("data-v-943c6e4b"), e = e(), be(), e), Uy = {
3097
+ }, oc = (e) => (ve("data-v-16177785"), e = e(), be(), e), Uy = {
3098
3098
  key: 0,
3099
3099
  class: "overlay"
3100
3100
  }, Gy = { class: "name" }, Hy = ["onClick"], Jy = /* @__PURE__ */ oc(() => /* @__PURE__ */ o("svg", {
@@ -3197,7 +3197,7 @@ const Wy = /* @__PURE__ */ My(Il, [["render", jy], ["__scopeId", "data-v-f3ee6b2
3197
3197
  ]))), 128))
3198
3198
  ], 4));
3199
3199
  }
3200
- }, Xy = /* @__PURE__ */ lc(Ky, [["__scopeId", "data-v-943c6e4b"]]), it = (e) => (ve("data-v-d89df432"), e = e(), be(), e), Qy = { class: "table__static-column" }, em = /* @__PURE__ */ it(() => /* @__PURE__ */ o("div", { class: "static-title column-title" }, null, -1)), tm = { class: "container" }, am = { class: "details-row__info" }, im = { class: "details-row__info__personal" }, sm = { class: "bold" }, lm = { class: "bold" }, om = { class: "bold" }, rm = { class: "bold" }, nm = { class: "details-row__info__games" }, dm = { class: "bold" }, cm = { class: "bold" }, um = ["onClick"], pm = /* @__PURE__ */ it(() => /* @__PURE__ */ o("div", null, "Ver gráfica", -1)), hm = /* @__PURE__ */ it(() => /* @__PURE__ */ o("svg", {
3200
+ }, Xy = /* @__PURE__ */ lc(Ky, [["__scopeId", "data-v-16177785"]]), it = (e) => (ve("data-v-bfcf1c28"), e = e(), be(), e), Qy = { class: "table__static-column" }, em = /* @__PURE__ */ it(() => /* @__PURE__ */ o("div", { class: "static-title column-title" }, null, -1)), tm = { class: "container" }, am = { class: "details-row__info" }, im = { class: "details-row__info__personal" }, sm = { class: "bold" }, lm = { class: "bold" }, om = { class: "bold" }, rm = { class: "bold" }, nm = { class: "details-row__info__games" }, dm = { class: "bold" }, cm = { class: "bold" }, um = ["onClick"], pm = /* @__PURE__ */ it(() => /* @__PURE__ */ o("div", null, "Ver gráfica", -1)), hm = /* @__PURE__ */ it(() => /* @__PURE__ */ o("svg", {
3201
3201
  width: "17",
3202
3202
  height: "16",
3203
3203
  viewBox: "0 0 17 16",
@@ -3350,7 +3350,7 @@ const Wy = /* @__PURE__ */ My(Il, [["render", jy], ["__scopeId", "data-v-f3ee6b2
3350
3350
  fill: "#D9D9D9"
3351
3351
  }, null, -1)), Um = [
3352
3352
  Wm
3353
- ], Gm = /* @__PURE__ */ at('<div class="titles scrollable-row" data-v-d89df432><div class="column-title" data-v-d89df432>Equipo</div><div class="column-title" data-v-d89df432>Posición</div><div class="column-title" data-v-d89df432>Edad</div><div class="column-title" data-v-d89df432>País</div><div class="column-title" data-v-d89df432>Partidos Jugados</div><div class="column-title" data-v-d89df432>Minutos Jugados</div><div class="column-title" data-v-d89df432>Liga</div><div class="column-title" data-v-d89df432>Videos</div><div class="column-title" data-v-d89df432></div></div>', 1), Hm = { class: "team-logo" }, Jm = ["src"], qm = { class: "team-name data-info" }, Zm = ["src"], Ym = {
3353
+ ], Gm = /* @__PURE__ */ at('<div class="titles scrollable-row" data-v-bfcf1c28><div class="column-title" data-v-bfcf1c28>Equipo</div><div class="column-title" data-v-bfcf1c28>Posición</div><div class="column-title" data-v-bfcf1c28>Edad</div><div class="column-title" data-v-bfcf1c28>País</div><div class="column-title" data-v-bfcf1c28>Partidos Jugados</div><div class="column-title" data-v-bfcf1c28>Minutos Jugados</div><div class="column-title" data-v-bfcf1c28>Liga</div><div class="column-title" data-v-bfcf1c28>Videos</div><div class="column-title" data-v-bfcf1c28></div></div>', 1), Hm = { class: "team-logo" }, Jm = ["src"], qm = { class: "team-name data-info" }, Zm = ["src"], Ym = {
3354
3354
  __name: "GSC-TableScrollable",
3355
3355
  props: {
3356
3356
  players: {
@@ -3392,18 +3392,18 @@ const Wy = /* @__PURE__ */ My(Il, [["render", jy], ["__scopeId", "data-v-f3ee6b2
3392
3392
  () => t.players,
3393
3393
  (O) => {
3394
3394
  O && O.length && (l.value = O.map((F, P) => {
3395
- const j = P + 1, V = {
3395
+ const N = P + 1, B = {
3396
3396
  ...F,
3397
- position: j < 10 ? `0${j}` : `${j}`,
3397
+ position: N < 10 ? `0${N}` : `${N}`,
3398
3398
  isSelected: !1,
3399
3399
  isExpanded: !1,
3400
3400
  isOdd: P % 2 !== 0,
3401
3401
  index: P
3402
3402
  };
3403
- return V.parameters && Object.entries(V.parameters).forEach(([ee, W]) => {
3404
- const oe = V.stats.find((X) => X.custom_category_id === Number(ee));
3403
+ return B.parameters && Object.entries(B.parameters).forEach(([ee, W]) => {
3404
+ const oe = B.stats.find((X) => X.custom_category_id === Number(ee));
3405
3405
  oe && (oe.parameters = W);
3406
- }), V;
3406
+ }), B;
3407
3407
  }));
3408
3408
  },
3409
3409
  { immediate: !0, deep: !0 }
@@ -3429,14 +3429,13 @@ const Wy = /* @__PURE__ */ My(Il, [["render", jy], ["__scopeId", "data-v-f3ee6b2
3429
3429
  a("click-parameters", O);
3430
3430
  }
3431
3431
  function C(O) {
3432
- const F = O.player || O.objeto_player, P = F ? F.player_id || F.id || F.playerId : O.id || O.player_id, j = F ? F.team_id || F.teamId : O.team_id || O.teamId, V = {
3432
+ const F = O.player || O.objeto_player, P = F ? F.player_id || F.id || F.playerId : O.id || O.player_id, N = {
3433
3433
  isFeaturedPlayers: !1,
3434
3434
  mainSectionType: 1,
3435
3435
  playListType: 2,
3436
3436
  gameIds: null,
3437
3437
  playerIds: P ? [P] : [],
3438
3438
  goalkeeperIds: [],
3439
- teamId: j || 0,
3440
3439
  matchResult: [1, 2, 3],
3441
3440
  categorySingleName: "",
3442
3441
  isRivalSubject: !1,
@@ -3449,13 +3448,13 @@ const Wy = /* @__PURE__ */ My(Il, [["render", jy], ["__scopeId", "data-v-f3ee6b2
3449
3448
  playListTitle: "Jugadas Relevantes"
3450
3449
  }
3451
3450
  };
3452
- if (O.stat && O.stat.parameters && (V.parameters = O.stat.parameters), O.stat && O.stat.seasons && O.stat.seasons.length || O.seasons && O.seasons.length) {
3453
- const ee = [
3451
+ if (O.stat && O.stat.parameters && (N.parameters = O.stat.parameters), O.stat && O.stat.seasons && O.stat.seasons.length || O.seasons && O.seasons.length) {
3452
+ const B = [
3454
3453
  ...O.stat && O.stat.seasons && O.stat.seasons.length ? O.stat.seasons : O.seasons
3455
3454
  ];
3456
- ee.sort((W, oe) => W - oe), V.seasonId = ee.shift(), V.seasonsIds = ee;
3457
- } else (O.season_id || O.seasonId) && (V.seasonId = O.season_id || O.seasonId);
3458
- O.stat ? O.stat.category_id ? V.categoryIds = O.stat.category_id : O.stat.custom_category_id && (V.customCategoryIds = [O.stat.custom_category_id]) : V.categoryIds = he(O.player_position), a("open-media", V);
3455
+ B.sort((ee, W) => ee - W), N.seasonId = B.shift(), N.seasonsIds = B;
3456
+ } else (O.season_id || O.seasonId) && (N.seasonId = O.season_id || O.seasonId);
3457
+ O.stat ? O.stat.category_id && O.stat.category_id.length ? N.categoryIds = O.stat.category_id : O.stat.custom_category_id && (N.customCategoryIds = [O.stat.custom_category_id]) : N.categoryIds = he(O.player_position), a("open-media", N);
3459
3458
  }
3460
3459
  function $() {
3461
3460
  i = new ResizeObserver((O) => {
@@ -3518,7 +3517,7 @@ const Wy = /* @__PURE__ */ My(Il, [["render", jy], ["__scopeId", "data-v-f3ee6b2
3518
3517
  }
3519
3518
  function H(O, F) {
3520
3519
  F.isSelected = O;
3521
- const P = l.value.filter((j) => j.isSelected);
3520
+ const P = l.value.filter((N) => N.isSelected);
3522
3521
  a("change-selected-players", P);
3523
3522
  }
3524
3523
  function de(O) {
@@ -3538,7 +3537,7 @@ const Wy = /* @__PURE__ */ My(Il, [["render", jy], ["__scopeId", "data-v-f3ee6b2
3538
3537
  O.isExpanded = !1, m.value = null;
3539
3538
  return;
3540
3539
  }
3541
- const F = l.value.find((j) => j.isExpanded);
3540
+ const F = l.value.find((N) => N.isExpanded);
3542
3541
  if (F && (F.isExpanded = !1), F) {
3543
3542
  m.value = O;
3544
3543
  return;
@@ -3546,14 +3545,14 @@ const Wy = /* @__PURE__ */ My(Il, [["render", jy], ["__scopeId", "data-v-f3ee6b2
3546
3545
  const P = document.querySelectorAll(".details-row")[O.index];
3547
3546
  b.value = O.index, se(P), O.isExpanded = !0;
3548
3547
  }
3549
- let N = !1, K, G, pe = function(O) {
3550
- N = !0, K = O.pageX - g.value.offsetLeft, G = g.value.scrollLeft;
3548
+ let z = !1, K, G, pe = function(O) {
3549
+ z = !0, K = O.pageX - g.value.offsetLeft, G = g.value.scrollLeft;
3551
3550
  }, Se = function() {
3552
- N = !1;
3551
+ z = !1;
3553
3552
  };
3554
3553
  function Ie() {
3555
3554
  g.value && (g.value.addEventListener("mousemove", (O) => {
3556
- if (!N)
3555
+ if (!z)
3557
3556
  return;
3558
3557
  const F = O.pageX - g.value.offsetLeft - K;
3559
3558
  g.value.scrollLeft = G - F;
@@ -3618,23 +3617,23 @@ const Wy = /* @__PURE__ */ My(Il, [["render", jy], ["__scopeId", "data-v-f3ee6b2
3618
3617
  o("div", {
3619
3618
  role: "button",
3620
3619
  class: "button",
3621
- onClick: (j) => _e(P)
3620
+ onClick: (N) => _e(P)
3622
3621
  }, ym, 8, um),
3623
3622
  e.isTableFromList ? (n(), d("div", {
3624
3623
  key: 0,
3625
3624
  role: "button",
3626
3625
  class: "button",
3627
- onClick: (j) => me(P)
3626
+ onClick: (N) => me(P)
3628
3627
  }, vm, 8, mm)) : (n(), d("div", {
3629
3628
  key: 1,
3630
3629
  role: "button",
3631
3630
  class: "button",
3632
- onClick: (j) => ye(P)
3631
+ onClick: (N) => ye(P)
3633
3632
  }, wm, 8, bm)),
3634
3633
  o("div", {
3635
3634
  role: "button",
3636
3635
  class: "button green",
3637
- onClick: (j) => de(P)
3636
+ onClick: (N) => de(P)
3638
3637
  }, Tm, 8, Cm)
3639
3638
  ], 4)
3640
3639
  ])
@@ -3649,7 +3648,7 @@ const Wy = /* @__PURE__ */ My(Il, [["render", jy], ["__scopeId", "data-v-f3ee6b2
3649
3648
  fontFamily: "Poppins-Regular",
3650
3649
  labelFontSize: "14px",
3651
3650
  "model-value": P.isSelected,
3652
- "onUpdate:modelValue": (j) => H(j, P)
3651
+ "onUpdate:modelValue": (N) => H(N, P)
3653
3652
  }, null, 8, ["model-value", "onUpdate:modelValue"])) : S("", !0),
3654
3653
  o("div", Pm, [
3655
3654
  o("div", Fm, w(P.position), 1),
@@ -3660,7 +3659,7 @@ const Wy = /* @__PURE__ */ My(Il, [["render", jy], ["__scopeId", "data-v-f3ee6b2
3660
3659
  viewBox: "0 0 20 20",
3661
3660
  fill: "none",
3662
3661
  xmlns: "http://www.w3.org/2000/svg",
3663
- onClick: (j) => me(P)
3662
+ onClick: (N) => me(P)
3664
3663
  }, Em, 8, km)) : (n(), d("svg", {
3665
3664
  key: 1,
3666
3665
  width: "20",
@@ -3668,7 +3667,7 @@ const Wy = /* @__PURE__ */ My(Il, [["render", jy], ["__scopeId", "data-v-f3ee6b2
3668
3667
  viewBox: "0 0 20 20",
3669
3668
  fill: "none",
3670
3669
  xmlns: "http://www.w3.org/2000/svg",
3671
- onClick: (j) => ye(P)
3670
+ onClick: (N) => ye(P)
3672
3671
  }, Rm, 8, Mm)),
3673
3672
  o("div", Om, [
3674
3673
  o("div", null, [
@@ -3688,7 +3687,7 @@ const Wy = /* @__PURE__ */ My(Il, [["render", jy], ["__scopeId", "data-v-f3ee6b2
3688
3687
  viewBox: "0 0 12 8",
3689
3688
  fill: "#D9D9D9",
3690
3689
  xmlns: "http://www.w3.org/2000/svg",
3691
- onClick: (j) => Q(P)
3690
+ onClick: (N) => Q(P)
3692
3691
  }, Um, 10, jm))
3693
3692
  ])
3694
3693
  ], 2))), 128))
@@ -3755,7 +3754,7 @@ const Wy = /* @__PURE__ */ My(Il, [["render", jy], ["__scopeId", "data-v-f3ee6b2
3755
3754
  "border-color": "#55636e",
3756
3755
  "text-value": "Ver videos",
3757
3756
  "font-size": "10px",
3758
- onClick: (j) => C(P)
3757
+ onClick: (N) => C(P)
3759
3758
  }, null, 8, ["onClick"])
3760
3759
  ], 2),
3761
3760
  o("div", {
@@ -3774,7 +3773,7 @@ const Wy = /* @__PURE__ */ My(Il, [["render", jy], ["__scopeId", "data-v-f3ee6b2
3774
3773
  ], 512)
3775
3774
  ], 4));
3776
3775
  }
3777
- }, Km = /* @__PURE__ */ lc(Ym, [["__scopeId", "data-v-d89df432"]]), Ws = {
3776
+ }, Km = /* @__PURE__ */ lc(Ym, [["__scopeId", "data-v-bfcf1c28"]]), Ws = {
3778
3777
  3: "Albanesa",
3779
3778
  4: "Argelina",
3780
3779
  6: "Andorrano",
@@ -4197,7 +4196,7 @@ function ef(e, a, t, i, s, l) {
4197
4196
  ])
4198
4197
  ], 64);
4199
4198
  }
4200
- const tf = /* @__PURE__ */ Et(Xm, [["render", ef], ["__scopeId", "data-v-be19430e"]]);
4199
+ const tf = /* @__PURE__ */ Et(Xm, [["render", ef], ["__scopeId", "data-v-b865218d"]]);
4201
4200
  function rc(e, a) {
4202
4201
  return function() {
4203
4202
  return e.apply(a, arguments);
@@ -7042,7 +7041,7 @@ const {
7042
7041
  })
7043
7042
  ]));
7044
7043
  }
7045
- }, dg = /* @__PURE__ */ Ve(ng, [["__scopeId", "data-v-f2d7cddf"]]), D = {
7044
+ }, dg = /* @__PURE__ */ Ve(ng, [["__scopeId", "data-v-f2d7cddf"]]), j = {
7046
7045
  PLAYS: "plays",
7047
7046
  PRODUCTIVITY: "productivity",
7048
7047
  FIELD: "field",
@@ -7105,7 +7104,7 @@ const {
7105
7104
  emits: ["change-filters-selected", "update:filters"],
7106
7105
  setup(e, { emit: a }) {
7107
7106
  const t = e, i = L(() => ({
7108
- "--grid-template-columns": t.type === D.PLAYS_TYPES ? "1fr min-content" : "min-content 1fr min-content",
7107
+ "--grid-template-columns": t.type === j.PLAYS_TYPES ? "1fr min-content" : "min-content 1fr min-content",
7109
7108
  "--svg-width": `${t.svgWidth}px`,
7110
7109
  "--svg-height": `${t.svgHeight}px`
7111
7110
  }));
@@ -7120,7 +7119,7 @@ const {
7120
7119
  function s(l) {
7121
7120
  l.isSelected || (t.categories.forEach((r) => {
7122
7121
  r.isSelected = !1;
7123
- }), l.isSelected = !0, t.type === D.GOLSTATS && a("change-filters-selected", l.value));
7122
+ }), l.isSelected = !0, t.type === j.GOLSTATS && a("change-filters-selected", l.value));
7124
7123
  }
7125
7124
  return (l, r) => (n(), d("div", {
7126
7125
  class: "plays-golstats",
@@ -7128,13 +7127,13 @@ const {
7128
7127
  }, [
7129
7128
  T(Ic, { height: e.height }, {
7130
7129
  default: ne(() => [
7131
- e.type === R(D).PLAYS_TYPES ? (n(), d("div", cg, " Elige un tipo de jugada para filtrar: ")) : S("", !0),
7130
+ e.type === R(j).PLAYS_TYPES ? (n(), d("div", cg, " Elige un tipo de jugada para filtrar: ")) : S("", !0),
7132
7131
  (n(!0), d(A, null, ae(e.categories, (c, u) => (n(), d("div", {
7133
7132
  key: `k${u}`,
7134
7133
  class: "plays-golstats__item",
7135
7134
  onClick: (h) => s(c)
7136
7135
  }, [
7137
- e.type === R(D).GOLSTATS ? (n(), d("div", pg, w(c.value), 1)) : S("", !0),
7136
+ e.type === R(j).GOLSTATS ? (n(), d("div", pg, w(c.value), 1)) : S("", !0),
7138
7137
  o("div", hg, w(c.name), 1),
7139
7138
  o("div", yg, [
7140
7139
  le((n(), d("svg", mg, [
@@ -11864,37 +11863,37 @@ const J5 = /* @__PURE__ */ new Set([1]), q5 = {
11864
11863
  }), b = x(si), m = x(""), g = x(""), p = x(
11865
11864
  r.value.availableYears[r.value.availableYears.length - 1]
11866
11865
  ), v = x(0), y = L(() => {
11867
- const N = r.value.nationalities ? [...r.value.nationalities] : [];
11868
- i.isSeleccion && N.forEach((G) => {
11866
+ const z = r.value.nationalities ? [...r.value.nationalities] : [];
11867
+ i.isSeleccion && z.forEach((G) => {
11869
11868
  G.isSelected = G.id === 138;
11870
11869
  });
11871
- const K = N[0];
11872
- return (!K || K.id !== 0) && N.unshift(s), N;
11870
+ const K = z[0];
11871
+ return (!K || K.id !== 0) && z.unshift(s), z;
11873
11872
  }), _ = L(() => {
11874
- let N = (i.filter && i.filter.positions ? i.filter.positions : r.value.positions) ? [...r.value.positions] : [];
11875
- const K = N[0];
11876
- return (!K || K.id !== 0) && N.unshift(l), N.sort((G, pe) => G.id - pe.id), N;
11873
+ let z = (i.filter && i.filter.positions ? i.filter.positions : r.value.positions) ? [...r.value.positions] : [];
11874
+ const K = z[0];
11875
+ return (!K || K.id !== 0) && z.unshift(l), z.sort((G, pe) => G.id - pe.id), z;
11877
11876
  }), C = L(() => i.season && i.season.tournamentId && J5.has(i.season.tournamentId) || i.filters && i.filters.isEligibilitySwitchVisible);
11878
11877
  U(
11879
11878
  y,
11880
- (N) => {
11881
- const K = N.reduce((G, pe, Se) => (Se !== 0 && pe.isSelected && G++, G), 0);
11882
- K === y.value.length - 1 && (N[0].isSelected = !0), N[0] && N[0].isSelected ? m.value = "Todas las nacionalidades" : m.value = `${K} seleccionadas`, ye();
11879
+ (z) => {
11880
+ const K = z.reduce((G, pe, Se) => (Se !== 0 && pe.isSelected && G++, G), 0);
11881
+ K === y.value.length - 1 && (z[0].isSelected = !0), z[0] && z[0].isSelected ? m.value = "Todas las nacionalidades" : m.value = `${K} seleccionadas`, ye();
11883
11882
  },
11884
11883
  { immediate: !0, deep: !0 }
11885
11884
  ), U(
11886
11885
  _,
11887
- (N) => {
11888
- const K = N.reduce((G, pe, Se) => (Se !== 0 && pe.isSelected && G++, G), 0);
11889
- K === _.value.length - 1 && (N[0].isSelected = !0), N[0] && N[0].isSelected ? g.value = "Todas las posiciones" : g.value = `${K} seleccionadas`, ye();
11886
+ (z) => {
11887
+ const K = z.reduce((G, pe, Se) => (Se !== 0 && pe.isSelected && G++, G), 0);
11888
+ K === _.value.length - 1 && (z[0].isSelected = !0), z[0] && z[0].isSelected ? g.value = "Todas las posiciones" : g.value = `${K} seleccionadas`, ye();
11890
11889
  },
11891
11890
  { immediate: !0, deep: !0 }
11892
11891
  ), U(
11893
11892
  () => i.filters,
11894
- (N) => {
11895
- if (N && N.availableYears) {
11896
- const K = !Number.isNaN(Number(N.selectedYear));
11897
- r.value = N, u.value = r.value.selectedYear && K ? 1 : 0, p.value = K ? r.value.selectedYear : r.value.availableYears[0], h.value.min = r.value.minAge, h.value.max = r.value.maxAge, l.isSelected = N.positions.every((G) => G.isSelected), ye();
11893
+ (z) => {
11894
+ if (z && z.availableYears) {
11895
+ const K = !Number.isNaN(Number(z.selectedYear));
11896
+ r.value = z, u.value = r.value.selectedYear && K ? 1 : 0, p.value = K ? r.value.selectedYear : r.value.availableYears[0], h.value.min = r.value.minAge, h.value.max = r.value.maxAge, l.isSelected = z.positions.every((G) => G.isSelected), ye();
11898
11897
  }
11899
11898
  },
11900
11899
  { immediate: !0, deep: !0 }
@@ -11905,17 +11904,17 @@ const J5 = /* @__PURE__ */ new Set([1]), q5 = {
11905
11904
  }
11906
11905
  ), U(
11907
11906
  () => i.season,
11908
- (N) => {
11909
- N && N.id !== v.value && !i.awaitForFilters && (v.value = N.id, $(N));
11907
+ (z) => {
11908
+ z && z.id !== v.value && !i.awaitForFilters && (v.value = z.id, $(z));
11910
11909
  },
11911
11910
  { immediate: !0, deep: !1 }
11912
11911
  );
11913
- async function $(N) {
11912
+ async function $(z) {
11914
11913
  try {
11915
- if (N && N.id) {
11916
- const K = /* @__PURE__ */ new Set(), G = await he(N.id), pe = /* @__PURE__ */ new Date(), Se = [], Ie = /* @__PURE__ */ new Map(), O = /* @__PURE__ */ new Map();
11914
+ if (z && z.id) {
11915
+ const K = /* @__PURE__ */ new Set(), G = await he(z.id), pe = /* @__PURE__ */ new Date(), Se = [], Ie = /* @__PURE__ */ new Map(), O = /* @__PURE__ */ new Map();
11917
11916
  G.forEach((F) => {
11918
- const P = new Date(F.dob), j = G5(P), V = H5({
11917
+ const P = new Date(F.dob), N = G5(P), B = H5({
11919
11918
  start: P,
11920
11919
  end: pe
11921
11920
  });
@@ -11927,47 +11926,47 @@ const J5 = /* @__PURE__ */ new Set([1]), q5 = {
11927
11926
  id: F.position_id,
11928
11927
  isSelected: !0,
11929
11928
  name: T5[`${F.position_id}`]
11930
- }), K.add(j), Se.push(V.years);
11929
+ }), K.add(N), Se.push(B.years);
11931
11930
  }), r.value.minAge = Math.min(...Se), r.value.maxAge = Math.max(...Se), r.value.availableYears = [...K].sort((F, P) => P - F), p.value = r.value.availableYears[0], r.value.nationalities = [...Ie.values()], r.value.positions = [...O.values()], h.value.min = r.value.minAge, h.value.max = r.value.maxAge;
11932
11931
  }
11933
11932
  } catch (K) {
11934
11933
  throw new Error(K);
11935
11934
  }
11936
11935
  }
11937
- function se(N = null) {
11938
- const K = !N || N === Ke.All;
11939
- (K || N === Ke.NATIONALITY) && y.value.forEach((G) => {
11936
+ function se(z = null) {
11937
+ const K = !z || z === Ke.All;
11938
+ (K || z === Ke.NATIONALITY) && y.value.forEach((G) => {
11940
11939
  G.isSelected = !0;
11941
- }), (K || N === Ke.ELIGIBILITY) && (r.value.isEligibilitySelected = !1), (K || N === Ke.POSITION) && _.value.forEach((G) => {
11940
+ }), (K || z === Ke.ELIGIBILITY) && (r.value.isEligibilitySelected = !1), (K || z === Ke.POSITION) && _.value.forEach((G) => {
11942
11941
  G.isSelected = !0;
11943
- }), (K || N === Ke.AGE_RANGE) && (h.value.min = r.value.minAge, h.value.max = r.value.maxAge, u.value = 0), (K || N === Ke.YEAR) && (p.value = i.isScouting ? r.value.availableYears[r.value.availableYears.length - 1] : r.value.availableYears[0], u.value = 0), ye();
11942
+ }), (K || z === Ke.AGE_RANGE) && (h.value.min = r.value.minAge, h.value.max = r.value.maxAge, u.value = 0), (K || z === Ke.YEAR) && (p.value = i.isScouting ? r.value.availableYears[r.value.availableYears.length - 1] : r.value.availableYears[0], u.value = 0), ye();
11944
11943
  }
11945
- async function he(N) {
11944
+ async function he(z) {
11946
11945
  try {
11947
11946
  const K = {
11948
11947
  Authorization: localStorage.getItem("user_token") || i.token
11949
- }, G = {}.API_PLAYERS_BY_SEASONS ? {}.API_PLAYERS_BY_SEASONS : m6, pe = await Ha.get(G + N, { headers: K });
11948
+ }, G = {}.API_PLAYERS_BY_SEASONS ? {}.API_PLAYERS_BY_SEASONS : m6, pe = await Ha.get(G + z, { headers: K });
11950
11949
  return pe.data ? pe.data.players : [];
11951
11950
  } catch (K) {
11952
11951
  return Promise.reject(K);
11953
11952
  }
11954
11953
  }
11955
- function H(N) {
11956
- u.value = N.index, i.filters && i.filters.availableYears && N.index === 0 && (i.filters.selectedYear = "Sin límite");
11954
+ function H(z) {
11955
+ u.value = z.index, i.filters && i.filters.availableYears && z.index === 0 && (i.filters.selectedYear = "Sin límite");
11957
11956
  }
11958
- function de(N) {
11959
- h.value.min = N.minValue, h.value.max = N.maxValue, ye();
11957
+ function de(z) {
11958
+ h.value.min = z.minValue, h.value.max = z.maxValue, ye();
11960
11959
  }
11961
- function me(N, K) {
11960
+ function me(z, K) {
11962
11961
  K.id === 0 ? y.value.forEach((G) => {
11963
- G.isSelected = N;
11964
- }) : (K.isSelected = N, y.value[0].isSelected = y.value.every(
11962
+ G.isSelected = z;
11963
+ }) : (K.isSelected = z, y.value[0].isSelected = y.value.every(
11965
11964
  (G, pe) => pe === 0 ? !0 : G.isSelected
11966
11965
  ));
11967
11966
  }
11968
11967
  function ye() {
11969
- const N = u.value === 0, K = {};
11970
- N ? (K.ageByRange = h.value, K.ageLimits = {
11968
+ const z = u.value === 0, K = {};
11969
+ z ? (K.ageByRange = h.value, K.ageLimits = {
11971
11970
  min: r.value.minAge,
11972
11971
  max: r.value.maxAge
11973
11972
  }) : K.year = p.value, r.value.isEligibilitySelected ? K.eligibility = [...r.value.eligibility] : K.nationalities = y.value.reduce(
@@ -11975,17 +11974,17 @@ const J5 = /* @__PURE__ */ new Set([1]), q5 = {
11975
11974
  []
11976
11975
  ), K.positions = _.value.reduce((G, pe, Se) => (Se !== 0 && G.push({ ...pe }), G), []), t("update:filters", K);
11977
11976
  }
11978
- function _e(N, K) {
11977
+ function _e(z, K) {
11979
11978
  K.id === 0 ? _.value.forEach((G) => {
11980
- G.isSelected = N;
11981
- }) : (K.isSelected = N, _.value[0].isSelected = _.value.every((G, pe) => pe === 0 ? !0 : G.isSelected));
11979
+ G.isSelected = z;
11980
+ }) : (K.isSelected = z, _.value[0].isSelected = _.value.every((G, pe) => pe === 0 ? !0 : G.isSelected));
11982
11981
  }
11983
- function Q(N) {
11984
- p.value = N, i.filters && (i.filters.selectedYear = N), ye();
11982
+ function Q(z) {
11983
+ p.value = z, i.filters && (i.filters.selectedYear = z), ye();
11985
11984
  }
11986
11985
  return a({
11987
11986
  onClearFilters: se
11988
- }), (N, K) => (n(), d("div", Z5, [
11987
+ }), (z, K) => (n(), d("div", Z5, [
11989
11988
  o("div", Y5, [
11990
11989
  o("div", K5, [
11991
11990
  T(Uv, {
@@ -12702,11 +12701,11 @@ const j6 = { class: "dropdown" }, W6 = { class: "selected-item" }, U6 = {
12702
12701
  },
12703
12702
  setup(e) {
12704
12703
  const a = e, t = va(
12705
- () => import("./FilterSubcategories-500fb769-JHRiqM2O-CVstnAU6.js")
12704
+ () => import("./FilterSubcategories-500fb769-DC-66V2z-DyMcZP1w.js")
12706
12705
  ), i = va(
12707
- () => import("./FilterConditions-9f3e95e9-CHJyW4ku-Cz-OYDiR.js")
12706
+ () => import("./FilterConditions-9f3e95e9-DnVzygiz-Cn_ZA7sK.js")
12708
12707
  ), s = va(
12709
- () => import("./FilterField-356ac22f-Dcy0KpPM-PJd_gGAe.js")
12708
+ () => import("./FilterField-356ac22f-CmqQpb1Q-CWI5DL0T.js")
12710
12709
  ), l = [
12711
12710
  {
12712
12711
  name: "Sub categorías",
@@ -13287,31 +13286,31 @@ const j6 = { class: "dropdown" }, W6 = { class: "selected-item" }, U6 = {
13287
13286
  try {
13288
13287
  const F = {
13289
13288
  Authorization: Bs() || t.token
13290
- }, P = {}.API_TOURNAMENTS || t.tournamentsUrl, j = await Ha.get(P, { headers: F });
13291
- return j.data ? j.data.map((V) => ({
13292
- ...V.tournament,
13293
- seasons: V.seasons
13289
+ }, P = {}.API_TOURNAMENTS || t.tournamentsUrl, N = await Ha.get(P, { headers: F });
13290
+ return N.data ? N.data.map((B) => ({
13291
+ ...B.tournament,
13292
+ seasons: B.seasons
13294
13293
  })) : [];
13295
13294
  } catch (F) {
13296
13295
  return Promise.reject(F);
13297
13296
  }
13298
13297
  }
13299
- async function he(F, P, j = "") {
13298
+ async function he(F, P, N = "") {
13300
13299
  a("loading-data");
13301
- let V = j;
13300
+ let B = N;
13302
13301
  try {
13303
- V || (V = {}.API_CALENDAR_GAMES_BY_SEASON || t.gamesUrl, F.forEach((X, M) => {
13304
- V += `${M === 0 ? "" : "&"}seasons=${X}`;
13302
+ B || (B = {}.API_CALENDAR_GAMES_BY_SEASON || t.gamesUrl, F.forEach((X, M) => {
13303
+ B += `${M === 0 ? "" : "&"}seasons=${X}`;
13305
13304
  }));
13306
13305
  const ee = {
13307
13306
  Authorization: Bs() || t.token
13308
13307
  }, {
13309
13308
  data: { data: W, teams: oe }
13310
- } = await Ha.get(V, { headers: ee });
13309
+ } = await Ha.get(B, { headers: ee });
13311
13310
  return { seasonsAndGames: W, seasonsAndTeams: oe };
13312
13311
  } catch (ee) {
13313
13312
  if (P > 0)
13314
- return he(F, P - 1, V);
13313
+ return he(F, P - 1, B);
13315
13314
  throw new Error(ee);
13316
13315
  } finally {
13317
13316
  a("loading-data");
@@ -13321,25 +13320,25 @@ const j6 = { class: "dropdown" }, W6 = { class: "selected-item" }, U6 = {
13321
13320
  try {
13322
13321
  const P = {
13323
13322
  Authorization: Bs() || t.token
13324
- }, j = ` ${{}.API_PLAYERS_BY_SEASON || t.playersUrl}${F.seasonId}`, V = await Ha.get(j, { headers: P });
13325
- return V.data ? V.data.players : [];
13323
+ }, N = ` ${{}.API_PLAYERS_BY_SEASON || t.playersUrl}${F.seasonId}`, B = await Ha.get(N, { headers: P });
13324
+ return B.data ? B.data.players : [];
13326
13325
  } catch (P) {
13327
13326
  return Promise.reject(P);
13328
13327
  }
13329
13328
  }
13330
13329
  async function de(F) {
13331
13330
  try {
13332
- const { seasonsAndGames: P, seasonsAndTeams: j } = await he(
13331
+ const { seasonsAndGames: P, seasonsAndTeams: N } = await he(
13333
13332
  [
13334
13333
  F.id,
13335
13334
  ...F.related_seasons.map((oe) => oe.id)
13336
13335
  ],
13337
13336
  3
13338
- ), V = j.find(
13337
+ ), B = N.find(
13339
13338
  (oe) => oe._id === F.id
13340
13339
  );
13341
13340
  m.value.arrayTeams = [], m.value.mapTeams = /* @__PURE__ */ new Map();
13342
- const ee = V.teams.reduce((oe, X) => (m.value.arrayTeams.push(X), m.value.mapTeams.set(X.team_id, {
13341
+ const ee = B.teams.reduce((oe, X) => (m.value.arrayTeams.push(X), m.value.mapTeams.set(X.team_id, {
13343
13342
  name: X.colloquial_name,
13344
13343
  acronym: X.acronym,
13345
13344
  logo: X.logo,
@@ -13351,8 +13350,8 @@ const j6 = { class: "dropdown" }, W6 = { class: "selected-item" }, U6 = {
13351
13350
  if (M.game_status === 1 && M.has_video) {
13352
13351
  (!m.value.maxGameId || M.game_id > m.value.maxGameId) && (m.value.maxGameId = M.game_id);
13353
13352
  let E = M.matchday_abbreviation.replace("M", "J"), k = M.matchday_abbreviation.replace("M", "Jornada ");
13354
- const B = M.matchday_abbreviation.replace("M", "");
13355
- X.season_type === 0 ? g.value.tournament_type === 1 && (M.seasonId === 881 ? (E = D6[B] || E, k = z6[B] || k) : (E = ln[M.matchday_abbreviation] ? M.matchday_abbreviation : E, k = ln[M.matchday_abbreviation] || k, E === "FINAL" && (E = "F"))) : X.season_type === 1 ? (E = N6[M.matchday_abbreviation], k = E) : (E = M.matchday_abbreviation.replace("PO", "R"), k = "Repechaje"), M.roundAbbreviation = E, M.roundName = k, m.value.mapGames.set(M.game_id, {
13353
+ const V = M.matchday_abbreviation.replace("M", "");
13354
+ X.season_type === 0 ? g.value.tournament_type === 1 && (M.seasonId === 881 ? (E = D6[V] || E, k = z6[V] || k) : (E = ln[M.matchday_abbreviation] ? M.matchday_abbreviation : E, k = ln[M.matchday_abbreviation] || k, E === "FINAL" && (E = "F"))) : X.season_type === 1 ? (E = N6[M.matchday_abbreviation], k = E) : (E = M.matchday_abbreviation.replace("PO", "R"), k = "Repechaje"), M.roundAbbreviation = E, M.roundName = k, m.value.mapGames.set(M.game_id, {
13356
13355
  id: M.game_id,
13357
13356
  date: M.date,
13358
13357
  dateTimeMillis: new Date(M.date_time_utc).valueOf(),
@@ -13390,17 +13389,17 @@ const j6 = { class: "dropdown" }, W6 = { class: "selected-item" }, U6 = {
13390
13389
  async function me(F) {
13391
13390
  try {
13392
13391
  const P = await K(F.id);
13393
- m.value.mapPlayers = /* @__PURE__ */ new Map(), m.value.mapPlayersByTeam = P.reduce((j, V) => {
13394
- m.value.mapPlayers.set(V.player_id, {
13395
- id: V.player_id,
13396
- name: V.player_name,
13397
- shortName: V.shortName,
13398
- photo: V.player_photo,
13399
- teamId: V.team_id,
13400
- positionId: V.position_id
13392
+ m.value.mapPlayers = /* @__PURE__ */ new Map(), m.value.mapPlayersByTeam = P.reduce((N, B) => {
13393
+ m.value.mapPlayers.set(B.player_id, {
13394
+ id: B.player_id,
13395
+ name: B.player_name,
13396
+ shortName: B.shortName,
13397
+ photo: B.player_photo,
13398
+ teamId: B.team_id,
13399
+ positionId: B.position_id
13401
13400
  });
13402
- const ee = j.get(V.team_id);
13403
- return ee ? ee.push(V) : j.set(V.team_id, [V]), j;
13401
+ const ee = N.get(B.team_id);
13402
+ return ee ? ee.push(B) : N.set(B.team_id, [B]), N;
13404
13403
  }, /* @__PURE__ */ new Map());
13405
13404
  } catch (P) {
13406
13405
  throw new Error(P);
@@ -13447,11 +13446,11 @@ const j6 = { class: "dropdown" }, W6 = { class: "selected-item" }, U6 = {
13447
13446
  isEmpty: !1
13448
13447
  }
13449
13448
  );
13450
- const j = /* @__PURE__ */ new Map(), V = "Resumen", ee = "Todas sus jugadas", W = y.value.player.reduce(
13449
+ const N = /* @__PURE__ */ new Map(), B = "Resumen", ee = "Todas sus jugadas", W = y.value.player.reduce(
13451
13450
  (X, M) => {
13452
13451
  const E = Q(M);
13453
13452
  return E.forEach((k) => {
13454
- j.set(k, M.name);
13453
+ N.set(k, M.name);
13455
13454
  }), X.push(...E), X;
13456
13455
  },
13457
13456
  []
@@ -13459,22 +13458,22 @@ const j6 = { class: "dropdown" }, W6 = { class: "selected-item" }, U6 = {
13459
13458
  (X, M) => {
13460
13459
  const E = Q(M);
13461
13460
  return E.forEach((k) => {
13462
- j.set(k, M.name);
13461
+ N.set(k, M.name);
13463
13462
  }), X.push(...E), X;
13464
13463
  },
13465
13464
  []
13466
13465
  );
13467
13466
  y.value.games.unshift({
13468
- name: V,
13467
+ name: B,
13469
13468
  arrayCategoriesIds: r.games,
13470
13469
  booleanIsBestPlays: !0
13471
13470
  }), y.value.team.unshift({
13472
- name: V,
13471
+ name: B,
13473
13472
  arrayCategoriesIds: r.team,
13474
13473
  booleanIsBestPlays: !0
13475
13474
  }), y.value.player.unshift(
13476
13475
  {
13477
- name: V,
13476
+ name: B,
13478
13477
  arrayCategoriesIds: r.player.regular,
13479
13478
  booleanIsBestPlays: !0
13480
13479
  },
@@ -13485,7 +13484,7 @@ const j6 = { class: "dropdown" }, W6 = { class: "selected-item" }, U6 = {
13485
13484
  }
13486
13485
  ), y.value.goalkeeper.unshift(
13487
13486
  {
13488
- name: V,
13487
+ name: B,
13489
13488
  arrayCategoriesIds: r.player.goalkeeper,
13490
13489
  booleanIsBestPlays: !0
13491
13490
  },
@@ -13500,11 +13499,11 @@ const j6 = { class: "dropdown" }, W6 = { class: "selected-item" }, U6 = {
13500
13499
  throw new Error(F);
13501
13500
  }
13502
13501
  }
13503
- function _e(F, P = 0, j = /* @__PURE__ */ new Map(), V = !1, ee = {}, W = []) {
13502
+ function _e(F, P = 0, N = /* @__PURE__ */ new Map(), B = !1, ee = {}, W = []) {
13504
13503
  if (!F.group_id)
13505
13504
  return;
13506
- let oe = j.get(P);
13507
- const X = V ? `${F.id_category}_r` : F.id_category;
13505
+ let oe = N.get(P);
13506
+ const X = B ? `${F.id_category}_r` : F.id_category;
13508
13507
  F.id_category && W.push(F.id_category);
13509
13508
  let M = {
13510
13509
  ids: [X],
@@ -13519,25 +13518,25 @@ const j6 = { class: "dropdown" }, W6 = { class: "selected-item" }, U6 = {
13519
13518
  };
13520
13519
  if (P > 0 && P === 1 && (M.id = F.id_category), oe && P !== 0) {
13521
13520
  const E = F.group_id.charAt(F.group_id.length - 1), k = oe.find(
13522
- (B) => B.groupId.endsWith(E)
13521
+ (V) => V.groupId.endsWith(E)
13523
13522
  );
13524
- k && !s.includes(M.groupId) ? (M = k, k.ids.push(X), k.fatherCategories.push(ee), k.fatherCategories.forEach((B) => {
13525
- B.childCategories ? B.childCategories.find(
13523
+ k && !s.includes(M.groupId) ? (M = k, k.ids.push(X), k.fatherCategories.push(ee), k.fatherCategories.forEach((V) => {
13524
+ V.childCategories ? V.childCategories.find(
13526
13525
  (re) => re.groupId === M.groupId
13527
- ) || B.childCategories.push(M) : B.childCategories = [M];
13528
- }), k.idsByFatherCategory[F.category_father] ? k.idsByFatherCategory[F.category_father].push(X) : k.idsByFatherCategory[F.category_father] = [X]) : (M.fatherCategories.forEach((B) => {
13529
- B.childCategories ? B.childCategories.find(
13526
+ ) || V.childCategories.push(M) : V.childCategories = [M];
13527
+ }), k.idsByFatherCategory[F.category_father] ? k.idsByFatherCategory[F.category_father].push(X) : k.idsByFatherCategory[F.category_father] = [X]) : (M.fatherCategories.forEach((V) => {
13528
+ V.childCategories ? V.childCategories.find(
13530
13529
  (re) => re.groupId === M.groupId
13531
- ) || B.childCategories.push(M) : B.childCategories = [M];
13530
+ ) || V.childCategories.push(M) : V.childCategories = [M];
13532
13531
  }), oe.push(M));
13533
13532
  } else
13534
- P !== 0 && (ee.childCategories ? ee.childCategories.push(M) : ee.childCategories = [M], oe = [M], j.set(P, oe));
13533
+ P !== 0 && (ee.childCategories ? ee.childCategories.push(M) : ee.childCategories = [M], oe = [M], N.set(P, oe));
13535
13534
  if (F.categories && F.categories.length ? F.categories.forEach((E) => {
13536
13535
  _e(
13537
13536
  E,
13538
13537
  P + 1,
13539
- j,
13540
- V,
13538
+ N,
13539
+ B,
13541
13540
  M,
13542
13541
  W
13543
13542
  );
@@ -13545,45 +13544,45 @@ const j6 = { class: "dropdown" }, W6 = { class: "selected-item" }, U6 = {
13545
13544
  _e(
13546
13545
  E,
13547
13546
  P + 1,
13548
- j,
13547
+ N,
13549
13548
  !0,
13550
13549
  M,
13551
13550
  W
13552
13551
  );
13553
13552
  }), P === 0)
13554
- return Array.from(j.values());
13553
+ return Array.from(N.values());
13555
13554
  }
13556
13555
  function Q(F) {
13557
13556
  const P = F || F;
13558
13557
  if (P.booleanIsBestPlays)
13559
13558
  return P.arrayCategoriesIds;
13560
- const j = { total: [], toRemove: [] };
13561
- if (P.subcategoryGroups && P.subcategoryGroups.length ? P.subcategoryGroups[0].forEach((V) => {
13562
- N(V, null, j);
13563
- }) : (P.ids && j.total.push(...P.ids), P.rival_ids && P.rival_ids.forEach((V) => {
13564
- j.total.push(`${V}_r`);
13565
- })), j.total = j.total.reduce((V, ee) => (j.toRemove.includes(ee) || V.push(ee), V), []), !F) {
13566
- const V = P.name.toLowerCase().includes("recibid");
13567
- C.value.isRivalSubject = V, C.value.avoidCategorySingleName = V, C.value.coordinatePoint = P.coordinatePoint, C.value.requiresRivalTransform = P.requiresRivalTransform;
13568
- }
13569
- return j.total;
13570
- }
13571
- function N(F, P = [], j = { total: [], toRemove: [] }) {
13572
- F.isSelected ? F.childCategories ? F.childCategories.forEach((V) => {
13559
+ const N = { total: [], toRemove: [] };
13560
+ if (P.subcategoryGroups && P.subcategoryGroups.length ? P.subcategoryGroups[0].forEach((B) => {
13561
+ z(B, null, N);
13562
+ }) : (P.ids && N.total.push(...P.ids), P.rival_ids && P.rival_ids.forEach((B) => {
13563
+ N.total.push(`${B}_r`);
13564
+ })), N.total = N.total.reduce((B, ee) => (N.toRemove.includes(ee) || B.push(ee), B), []), !F) {
13565
+ const B = P.name.toLowerCase().includes("recibid");
13566
+ C.value.isRivalSubject = B, C.value.avoidCategorySingleName = B, C.value.coordinatePoint = P.coordinatePoint, C.value.requiresRivalTransform = P.requiresRivalTransform;
13567
+ }
13568
+ return N.total;
13569
+ }
13570
+ function z(F, P = [], N = { total: [], toRemove: [] }) {
13571
+ F.isSelected ? F.childCategories ? F.childCategories.forEach((B) => {
13573
13572
  const ee = P ? Object.entries(F.idsByFatherCategory).reduce((W, [oe, X]) => (P.includes(Number(oe)) && X.forEach((M) => {
13574
13573
  typeof M == "string" && M.endsWith("_r") ? W.push(Number(M.split("_")[0])) : W.push(M);
13575
13574
  }), W), []) : [F.id];
13576
- N(V, ee, j);
13577
- }) : P ? Object.entries(F.idsByFatherCategory).forEach(([V, ee]) => {
13578
- P.includes(Number(V)) && ee.forEach((W) => {
13579
- j.total.push(W);
13575
+ z(B, ee, N);
13576
+ }) : P ? Object.entries(F.idsByFatherCategory).forEach(([B, ee]) => {
13577
+ P.includes(Number(B)) && ee.forEach((W) => {
13578
+ N.total.push(W);
13580
13579
  });
13581
- }) : F.level === 1 ? Object.entries(F.idsByFatherCategory).forEach(([V, ee]) => {
13580
+ }) : F.level === 1 ? Object.entries(F.idsByFatherCategory).forEach(([B, ee]) => {
13582
13581
  ee.forEach((W) => {
13583
- j.total.push(W);
13582
+ N.total.push(W);
13584
13583
  });
13585
- }) : j.total.push(F.id) : F.childCategories || F.ids.forEach((V) => {
13586
- j.toRemove.push(V);
13584
+ }) : N.total.push(F.id) : F.childCategories || F.ids.forEach((B) => {
13585
+ N.toRemove.push(B);
13587
13586
  });
13588
13587
  }
13589
13588
  async function K(F) {
@@ -13591,13 +13590,13 @@ const j6 = { class: "dropdown" }, W6 = { class: "selected-item" }, U6 = {
13591
13590
  const P = await H({
13592
13591
  seasonId: F
13593
13592
  });
13594
- return P.forEach((j) => {
13595
- const [V, ee] = j.player_name.split(","), W = V.split(" ");
13593
+ return P.forEach((N) => {
13594
+ const [B, ee] = N.player_name.split(","), W = B.split(" ");
13596
13595
  let oe = "";
13597
13596
  for (const X of W)
13598
13597
  if (oe += ` ${X}`, X.length > 3)
13599
13598
  break;
13600
- j.shortName = ee && V ? `${ee.trim().charAt(0)}.${oe}` : "";
13599
+ N.shortName = ee && B ? `${ee.trim().charAt(0)}.${oe}` : "";
13601
13600
  }), P;
13602
13601
  } catch (P) {
13603
13602
  return Promise.reject(P);
@@ -13630,13 +13629,13 @@ const j6 = { class: "dropdown" }, W6 = { class: "selected-item" }, U6 = {
13630
13629
  }
13631
13630
  return $(), ye(), (F, P) => (n(), d("div", w8, [
13632
13631
  o("div", C8, [
13633
- (n(!0), d(A, null, ae(u.value, (j) => (n(), ie(ri, ge({
13634
- key: j.name
13632
+ (n(!0), d(A, null, ae(u.value, (N) => (n(), ie(ri, ge({
13633
+ key: N.name
13635
13634
  }, i, {
13636
- text: j.name,
13637
- "is-active": b.value.componentName === j.componentName,
13635
+ text: N.name,
13636
+ "is-active": b.value.componentName === N.componentName,
13638
13637
  tournaments: h.value,
13639
- onClick: (V) => pe(j)
13638
+ onClick: (B) => pe(N)
13640
13639
  }), null, 16, ["text", "is-active", "tournaments", "onClick"]))), 128))
13641
13640
  ]),
13642
13641
  o("div", x8, [
@@ -15161,82 +15160,82 @@ const j6 = { class: "dropdown" }, W6 = { class: "selected-item" }, U6 = {
15161
15160
  "--border-color": i.borderColor,
15162
15161
  "--border-width": i.borderWidth,
15163
15162
  "--box-shadow": i.boxShadow,
15164
- "--padding": i.filterType !== D.VIDEOS ? i.isExpansionMode ? "10px 0" : i.padding : "0",
15163
+ "--padding": i.filterType !== j.VIDEOS ? i.isExpansionMode ? "10px 0" : i.padding : "0",
15165
15164
  "--footer-border-color": i.footerBorderColor,
15166
15165
  "--footer-border-width": i.footerBorderWidth,
15167
15166
  "--text-color": i.textColor
15168
15167
  })), v = L(() => {
15169
15168
  const k = [];
15170
- return i.productivityCategories && Object.values(i.productivityCategories).forEach((B) => {
15171
- B.categories && B.categories.forEach((re) => {
15169
+ return i.productivityCategories && Object.values(i.productivityCategories).forEach((V) => {
15170
+ V.categories && V.categories.forEach((re) => {
15172
15171
  k.push(re);
15173
15172
  });
15174
15173
  }), k;
15175
15174
  }), y = L(() => {
15176
15175
  const k = [];
15177
- return i.playsCategories && Object.values(i.playsCategories).forEach((B) => {
15178
- B.categories && B.categories.forEach((re) => {
15176
+ return i.playsCategories && Object.values(i.playsCategories).forEach((V) => {
15177
+ V.categories && V.categories.forEach((re) => {
15179
15178
  k.push(re);
15180
15179
  });
15181
15180
  }), k;
15182
15181
  }), _ = L(() => {
15183
15182
  const k = v.value.filter(
15184
- (B) => B.isSelected
15183
+ (V) => V.isSelected
15185
15184
  );
15186
- return he(k), i.filterType === D.PRODUCTIVITY && t("change-categories-selected", k.length), k.length;
15185
+ return he(k), i.filterType === j.PRODUCTIVITY && t("change-categories-selected", k.length), k.length;
15187
15186
  }), C = L(() => !i.isForTemplateForm && _.value >= i.productivityMaxCategories), $ = L(() => !i.isForTemplateForm && _.value <= i.productivityMinCategories), se = L(() => i.isPlayingAsHidden ? i.gameSections : i.playingAs.concat(i.gameSections));
15188
15187
  U(
15189
15188
  r,
15190
15189
  (k) => {
15191
- i.filterType === D.DETAILS && t("update:filters", k);
15190
+ i.filterType === j.DETAILS && t("update:filters", k);
15192
15191
  },
15193
15192
  { immediate: !0, deep: !0 }
15194
15193
  ), U(
15195
15194
  () => se.value,
15196
15195
  (k) => {
15197
- if (i.filterType === D.DETAILS) {
15198
- const B = k.filter((re) => re.isSelected);
15199
- t("change-filters-selected", B.length);
15196
+ if (i.filterType === j.DETAILS) {
15197
+ const V = k.filter((re) => re.isSelected);
15198
+ t("change-filters-selected", V.length);
15200
15199
  }
15201
15200
  },
15202
15201
  { immediate: !0, deep: !0 }
15203
15202
  ), U(
15204
15203
  () => i.playsGolstatsCategories,
15205
15204
  (k) => {
15206
- if (i.filterType === D.PLAYS_TYPES || i.filterType === D.GOLSTATS) {
15207
- const B = k.filter((re) => re.isSelected);
15208
- t("change-filters-selected", B.length);
15205
+ if (i.filterType === j.PLAYS_TYPES || i.filterType === j.GOLSTATS) {
15206
+ const V = k.filter((re) => re.isSelected);
15207
+ t("change-filters-selected", V.length);
15209
15208
  }
15210
15209
  },
15211
15210
  { immediate: !0 }
15212
15211
  ), U(
15213
15212
  () => i.fieldAreas,
15214
15213
  (k) => {
15215
- i.filterType === D.FIELD && t("change-filters-selected", k.length);
15214
+ i.filterType === j.FIELD && t("change-filters-selected", k.length);
15216
15215
  }
15217
15216
  ), U(
15218
15217
  y,
15219
15218
  () => {
15220
- i.filterType === D.PLAYS && G();
15219
+ i.filterType === j.PLAYS && G();
15221
15220
  },
15222
15221
  { immediate: !0, deep: !0 }
15223
15222
  ), U(
15224
15223
  v,
15225
15224
  () => {
15226
- i.filterType === D.PRODUCTIVITY && pe();
15225
+ i.filterType === j.PRODUCTIVITY && pe();
15227
15226
  },
15228
15227
  { immediate: !0, deep: !0 }
15229
15228
  ), U(
15230
15229
  () => i.resultsFilters,
15231
15230
  (k) => {
15232
- i.filterType === D.RESULTS && t("change-filters-selected", k.results.filter((B) => B.isSelected).length);
15231
+ i.filterType === j.RESULTS && t("change-filters-selected", k.results.filter((V) => V.isSelected).length);
15233
15232
  },
15234
15233
  { immediate: !0, deep: !0 }
15235
15234
  );
15236
15235
  function he(k) {
15237
15236
  setTimeout(() => {
15238
- k.sort((B, re) => B.priority - re.priority), k.forEach((B, re) => {
15239
- B.priority = re + 1;
15237
+ k.sort((V, re) => V.priority - re.priority), k.forEach((V, re) => {
15238
+ V.priority = re + 1;
15240
15239
  });
15241
15240
  }, 10);
15242
15241
  }
@@ -15244,79 +15243,79 @@ const j6 = { class: "dropdown" }, W6 = { class: "selected-item" }, U6 = {
15244
15243
  de(k);
15245
15244
  }
15246
15245
  function de(k = null) {
15247
- i.filterType === D.PRODUCTIVITY ? v.value.forEach((B) => {
15248
- B.isSelected = !1;
15249
- }) : i.filterType === D.PLAYS ? (y.value.forEach((B) => {
15250
- B.isSelected = !0;
15251
- }), l.value = !0) : i.filterType === D.FIELD ? t("change-field-areas", [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]) : i.filterType === D.DETAILS ? (i.playingAs.forEach((B) => {
15252
- B.isSelected = !0;
15253
- }), i.gameSections.forEach((B) => {
15254
- B.isSelected = !0;
15255
- })) : i.filterType === D.TOURNAMENTS ? (i.tournaments.forEach((B, re) => {
15256
- i.isOneTournamentOnly ? B.isSelected = re === 0 : B.isSelected = !0;
15257
- }), t("change-filters-selected", 0)) : i.filterType === D.PLAYS_TYPES ? i.playsGolstatsCategories.forEach((B) => {
15258
- B.isSelected = !0;
15259
- }) : i.filterType === D.GOLSTATS ? i.playsGolstatsCategories.forEach((B) => {
15260
- B.isSelected = !1;
15261
- }) : i.filterType === D.UNIVERSE ? u.value && u.value.resetFilters() : i.filterType === D.PERSONAL_DATA ? (s.value && s.value.onClearFilters(k || Ke.All), t("change-personal-data-filters", {})) : i.filterType === D.DISTANCE ? t("update:filters", {
15246
+ i.filterType === j.PRODUCTIVITY ? v.value.forEach((V) => {
15247
+ V.isSelected = !1;
15248
+ }) : i.filterType === j.PLAYS ? (y.value.forEach((V) => {
15249
+ V.isSelected = !0;
15250
+ }), l.value = !0) : i.filterType === j.FIELD ? t("change-field-areas", [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]) : i.filterType === j.DETAILS ? (i.playingAs.forEach((V) => {
15251
+ V.isSelected = !0;
15252
+ }), i.gameSections.forEach((V) => {
15253
+ V.isSelected = !0;
15254
+ })) : i.filterType === j.TOURNAMENTS ? (i.tournaments.forEach((V, re) => {
15255
+ i.isOneTournamentOnly ? V.isSelected = re === 0 : V.isSelected = !0;
15256
+ }), t("change-filters-selected", 0)) : i.filterType === j.PLAYS_TYPES ? i.playsGolstatsCategories.forEach((V) => {
15257
+ V.isSelected = !0;
15258
+ }) : i.filterType === j.GOLSTATS ? i.playsGolstatsCategories.forEach((V) => {
15259
+ V.isSelected = !1;
15260
+ }) : i.filterType === j.UNIVERSE ? u.value && u.value.resetFilters() : i.filterType === j.PERSONAL_DATA ? (s.value && s.value.onClearFilters(k || Ke.All), t("change-personal-data-filters", {})) : i.filterType === j.DISTANCE ? t("update:filters", {
15262
15261
  minValue: i.distanceFilters.minLimit,
15263
15262
  maxValue: i.distanceFilters.maxLimit
15264
- }) : i.filterType === D.RESULTS ? t("update:filters", {
15265
- results: i.resultsFilters.results.map((B) => (B.isSelected = !0, B))
15266
- }) : i.filterType === D.RESULTS_BY_TIME ? g.value && g.value.removeFilters() : i.filterType === D.GAMES ? i.gamesFilters.forEach((B) => {
15267
- B.isSelected = !0;
15268
- }) : i.filterType === D.TAKEN_CORNERS ? h.value.clearFilters() : i.filterType === D.HOW_WAS_CORNER ? (i.howWasCornerFilters.left.forEach((B) => {
15269
- B.isSelected = !0;
15270
- }), i.howWasCornerFilters.right.forEach((B) => {
15271
- B.isSelected = !0;
15272
- })) : i.filterType === D.ZONE ? b.value && b.value.clearFilters() : i.filterType === D.WHAT_HAPPENED && m.value && m.value.onResetFilters();
15263
+ }) : i.filterType === j.RESULTS ? t("update:filters", {
15264
+ results: i.resultsFilters.results.map((V) => (V.isSelected = !0, V))
15265
+ }) : i.filterType === j.RESULTS_BY_TIME ? g.value && g.value.removeFilters() : i.filterType === j.GAMES ? i.gamesFilters.forEach((V) => {
15266
+ V.isSelected = !0;
15267
+ }) : i.filterType === j.TAKEN_CORNERS ? h.value.clearFilters() : i.filterType === j.HOW_WAS_CORNER ? (i.howWasCornerFilters.left.forEach((V) => {
15268
+ V.isSelected = !0;
15269
+ }), i.howWasCornerFilters.right.forEach((V) => {
15270
+ V.isSelected = !0;
15271
+ })) : i.filterType === j.ZONE ? b.value && b.value.clearFilters() : i.filterType === j.WHAT_HAPPENED && m.value && m.value.onResetFilters();
15273
15272
  }
15274
15273
  function me(k) {
15275
- i.filterType === D.TOURNAMENTS && t("change-filters-selected", k);
15274
+ i.filterType === j.TOURNAMENTS && t("change-filters-selected", k);
15276
15275
  }
15277
15276
  function ye(k) {
15278
- i.filterType === D.UNIVERSE && t("change-universe-filters", k);
15277
+ i.filterType === j.UNIVERSE && t("change-universe-filters", k);
15279
15278
  }
15280
15279
  function _e(k) {
15281
- i.filterType === D.FIELD && t("change-field-areas", k);
15280
+ i.filterType === j.FIELD && t("change-field-areas", k);
15282
15281
  }
15283
15282
  function Q(k) {
15284
- i.filterType === D.GOLSTATS && t("change-filters-selected", k);
15283
+ i.filterType === j.GOLSTATS && t("change-filters-selected", k);
15285
15284
  }
15286
- function N(k) {
15285
+ function z(k) {
15287
15286
  t("change-filters-selected", k);
15288
15287
  }
15289
15288
  function K(k) {
15290
- i.filterType === D.PRODUCTIVITY ? v.value.forEach((B) => {
15291
- B.isSelected = k;
15292
- }) : (l.value = k, i.playsCategories.offensive.categories.forEach((B) => {
15293
- B.isSelected = k;
15294
- }), i.playsCategories.defensive.categories.forEach((B) => {
15295
- B.isSelected = k;
15296
- }), i.playsCategories.possession.categories.forEach((B) => {
15297
- B.isSelected = k;
15298
- }), i.playsCategories.offenses.categories.forEach((B) => {
15299
- B.isSelected = k;
15289
+ i.filterType === j.PRODUCTIVITY ? v.value.forEach((V) => {
15290
+ V.isSelected = k;
15291
+ }) : (l.value = k, i.playsCategories.offensive.categories.forEach((V) => {
15292
+ V.isSelected = k;
15293
+ }), i.playsCategories.defensive.categories.forEach((V) => {
15294
+ V.isSelected = k;
15295
+ }), i.playsCategories.possession.categories.forEach((V) => {
15296
+ V.isSelected = k;
15297
+ }), i.playsCategories.offenses.categories.forEach((V) => {
15298
+ V.isSelected = k;
15300
15299
  }));
15301
15300
  }
15302
15301
  function G() {
15303
15302
  let k = 0;
15304
- const B = {
15303
+ const V = {
15305
15304
  playsCategories: y.value.filter((re) => re.isSelected)
15306
15305
  };
15307
- l.value = B.playsCategories.length === y.value.length, k = B.playsCategories.length, Object.values(c.value).forEach((re) => {
15306
+ l.value = V.playsCategories.length === y.value.length, k = V.playsCategories.length, Object.values(c.value).forEach((re) => {
15308
15307
  re && k++;
15309
- }), t("change-filters-selected", k), t("update:filters", B);
15308
+ }), t("change-filters-selected", k), t("update:filters", V);
15310
15309
  }
15311
15310
  function pe() {
15312
15311
  let k = 0;
15313
- const B = {
15312
+ const V = {
15314
15313
  productivityFilters: v.value.filter((re) => re.isSelected),
15315
15314
  offensesConditions: c.value
15316
15315
  };
15317
- k = B.productivityFilters.length, Object.values(c.value).forEach((re) => {
15316
+ k = V.productivityFilters.length, Object.values(c.value).forEach((re) => {
15318
15317
  re && k++;
15319
- }), t("change-filters-selected", k), t("update:filters", B);
15318
+ }), t("change-filters-selected", k), t("update:filters", V);
15320
15319
  }
15321
15320
  function Se(k) {
15322
15321
  t("click-parameters", k);
@@ -15325,9 +15324,9 @@ const j6 = { class: "dropdown" }, W6 = { class: "selected-item" }, U6 = {
15325
15324
  t("apply");
15326
15325
  }
15327
15326
  function O() {
15328
- (i.filterType === D.PLAYS_TYPES || i.filterType === D.GOLSTATS) && i.playsGolstatsCategories && i.playsGolstatsCategories.forEach((k) => {
15327
+ (i.filterType === j.PLAYS_TYPES || i.filterType === j.GOLSTATS) && i.playsGolstatsCategories && i.playsGolstatsCategories.forEach((k) => {
15329
15328
  k.isSelected = !1;
15330
- }), i.filterType === D.PRODUCTIVITY && v.value.forEach((k) => {
15329
+ }), i.filterType === j.PRODUCTIVITY && v.value.forEach((k) => {
15331
15330
  k.isSelected = !1;
15332
15331
  }), t("apply");
15333
15332
  }
@@ -15335,47 +15334,47 @@ const j6 = { class: "dropdown" }, W6 = { class: "selected-item" }, U6 = {
15335
15334
  t("update:filters", k);
15336
15335
  }
15337
15336
  function P(k) {
15338
- i.filterType === D.PERSONAL_DATA && t("update:filters", k);
15337
+ i.filterType === j.PERSONAL_DATA && t("update:filters", k);
15339
15338
  }
15340
- function j(k) {
15341
- i.filterType === D.TOURNAMENTS && t("update:filters", k);
15339
+ function N(k) {
15340
+ i.filterType === j.TOURNAMENTS && t("update:filters", k);
15342
15341
  }
15343
- function V(k) {
15344
- (i.filterType === D.PLAYS_TYPES || i.filterType === D.GOLSTATS) && t("update:filters", k);
15342
+ function B(k) {
15343
+ (i.filterType === j.PLAYS_TYPES || i.filterType === j.GOLSTATS) && t("update:filters", k);
15345
15344
  }
15346
15345
  function ee(k) {
15347
- i.filterType === D.PRODUCTIVITY && (c.value = k, pe());
15346
+ i.filterType === j.PRODUCTIVITY && (c.value = k, pe());
15348
15347
  }
15349
15348
  function W(k) {
15350
- i.filterType === D.DISTANCE && t("update:filters", k);
15349
+ i.filterType === j.DISTANCE && t("update:filters", k);
15351
15350
  }
15352
15351
  function oe(k) {
15353
- i.filterType === D.RESULTS && t("update:filters", k);
15352
+ i.filterType === j.RESULTS && t("update:filters", k);
15354
15353
  }
15355
15354
  function X(k) {
15356
- i.filterType === D.GAMES && (t("update:filters", k), t("change-filters-selected", k.filter((B) => B.isSelected).length));
15355
+ i.filterType === j.GAMES && (t("update:filters", k), t("change-filters-selected", k.filter((V) => V.isSelected).length));
15357
15356
  }
15358
15357
  function M(k) {
15359
15358
  r.value.statisticType = k;
15360
15359
  }
15361
- const E = L(() => i.filterType === D.PLAYS ? y.value.length : i.filterType === D.PRODUCTIVITY ? v.value.length : i.filterType === D.FIELD ? 16 : i.filterType === D.UNIVERSE ? 6 : i.filterType === D.DETAILS ? 8 : i.filterType === D.RESULTS || i.filterType === D.RESULTS_BY_TIME ? 3 : i.filterType === D.GAMES ? i.gamesFilters.length : 0);
15360
+ const E = L(() => i.filterType === j.PLAYS ? y.value.length : i.filterType === j.PRODUCTIVITY ? v.value.length : i.filterType === j.FIELD ? 16 : i.filterType === j.UNIVERSE ? 6 : i.filterType === j.DETAILS ? 8 : i.filterType === j.RESULTS || i.filterType === j.RESULTS_BY_TIME ? 3 : i.filterType === j.GAMES ? i.gamesFilters.length : 0);
15362
15361
  return t("total-filters", E), a({
15363
15362
  clearFilters: H
15364
- }), (k, B) => (n(), d("div", {
15363
+ }), (k, V) => (n(), d("div", {
15365
15364
  class: "templates",
15366
15365
  style: I(p.value)
15367
15366
  }, [
15368
- e.filterType === R(D).PRODUCTIVITY || e.filterType === R(D).PLAYS ? (n(), d("div", {
15367
+ e.filterType === R(j).PRODUCTIVITY || e.filterType === R(j).PLAYS ? (n(), d("div", {
15369
15368
  key: 0,
15370
15369
  class: f(e.isExpansionMode ? "productivity__header__expansion" : "productivity__header")
15371
15370
  }, [
15372
- e.filterType === R(D).PRODUCTIVITY ? (n(), d("div", $7, [
15371
+ e.filterType === R(j).PRODUCTIVITY ? (n(), d("div", $7, [
15373
15372
  e.isFromTemplates ? (n(), d("div", A7, [
15374
15373
  te(" Elige tipo de jugadas: "),
15375
15374
  I7
15376
15375
  ])) : e.isForTemplateForm ? (n(), d("div", E7, "Tipo de participación")) : (n(), d("div", M7, "Selecciona hasta 5 categorias en orden de importancia"))
15377
15376
  ])) : S("", !0),
15378
- e.filterType === R(D).PLAYS || e.isForTemplateForm ? (n(), d("div", V7, [
15377
+ e.filterType === R(j).PLAYS || e.isForTemplateForm ? (n(), d("div", V7, [
15379
15378
  T(R($e), {
15380
15379
  label: e.isForTemplateForm ? "Seleccionar todas" : "Todos los tipos de jugadas",
15381
15380
  "box-position": e.isForTemplateForm ? "right" : "left",
@@ -15388,13 +15387,13 @@ const j6 = { class: "dropdown" }, W6 = { class: "selected-item" }, U6 = {
15388
15387
  ])) : S("", !0)
15389
15388
  ], 2)) : S("", !0),
15390
15389
  o("div", B7, [
15391
- e.filterType === R(D).PLAYS ? (n(), d("div", L7, [
15390
+ e.filterType === R(j).PLAYS ? (n(), d("div", L7, [
15392
15391
  T(V6, {
15393
15392
  "plays-categories": e.playsCategories,
15394
15393
  "is-expansion-mode": e.isExpansionMode
15395
15394
  }, null, 8, ["plays-categories", "is-expansion-mode"])
15396
15395
  ])) : S("", !0),
15397
- e.filterType === R(D).PRODUCTIVITY ? (n(), d("div", R7, [
15396
+ e.filterType === R(j).PRODUCTIVITY ? (n(), d("div", R7, [
15398
15397
  T(P2, {
15399
15398
  "productivity-categories": e.productivityCategories,
15400
15399
  "number-of-categories-selected": _.value,
@@ -15407,14 +15406,14 @@ const j6 = { class: "dropdown" }, W6 = { class: "selected-item" }, U6 = {
15407
15406
  onClickParameters: Se
15408
15407
  }, null, 8, ["productivity-categories", "number-of-categories-selected", "are-max-categories-reached", "are-min-categories-reached", "is-expansion-mode", "is-from-templates", "is-for-template-form"])
15409
15408
  ])) : S("", !0),
15410
- e.filterType === R(D).FIELD ? (n(), d("div", O7, [
15409
+ e.filterType === R(j).FIELD ? (n(), d("div", O7, [
15411
15410
  T(R(zv), ge(e.fieldComponentProps, {
15412
15411
  "background-color": e.backgroundColor,
15413
15412
  value: e.fieldAreas,
15414
15413
  "onUpdate:modelValue": _e
15415
15414
  }), null, 16, ["background-color", "value"])
15416
15415
  ])) : S("", !0),
15417
- e.filterType === R(D).DETAILS ? (n(), d("div", N7, [
15416
+ e.filterType === R(j).DETAILS ? (n(), d("div", N7, [
15418
15417
  T(ig, {
15419
15418
  "is-playing-as-hidden": e.isPlayingAsHidden,
15420
15419
  "playing-as": e.playingAs,
@@ -15425,7 +15424,7 @@ const j6 = { class: "dropdown" }, W6 = { class: "selected-item" }, U6 = {
15425
15424
  onChangeStatisticType: M
15426
15425
  }, null, 8, ["is-playing-as-hidden", "playing-as", "game-sections", "font-gamily", "is-statistic-type-visible", "statistic-type"])
15427
15426
  ])) : S("", !0),
15428
- e.filterType === R(D).PERSONAL_DATA ? (n(), d("div", z7, [
15427
+ e.filterType === R(j).PERSONAL_DATA ? (n(), d("div", z7, [
15429
15428
  T(g6, {
15430
15429
  "is-female": e.isFemale,
15431
15430
  ref_key: "templatePersonalData",
@@ -15439,33 +15438,33 @@ const j6 = { class: "dropdown" }, W6 = { class: "selected-item" }, U6 = {
15439
15438
  "onUpdate:filters": P
15440
15439
  }, null, 8, ["is-female", "personal-data-filters", "season", "is-seleccion", "is-scouting", "token", "filters"])
15441
15440
  ])) : S("", !0),
15442
- e.filterType === R(D).TOURNAMENTS ? (n(), d("div", D7, [
15441
+ e.filterType === R(j).TOURNAMENTS ? (n(), d("div", D7, [
15443
15442
  T(dg, {
15444
15443
  tournaments: e.tournaments,
15445
15444
  "is-one-tournament-only": e.isOneTournamentOnly,
15446
15445
  "default-tournament-id": e.defaultTournamentId,
15447
15446
  onChangeFiltersSelected: me,
15448
- "onUpdate:filters": j
15447
+ "onUpdate:filters": N
15449
15448
  }, null, 8, ["tournaments", "is-one-tournament-only", "default-tournament-id"])
15450
15449
  ])) : S("", !0),
15451
- e.filterType === R(D).PLAYS_TYPES ? (n(), d("div", j7, [
15450
+ e.filterType === R(j).PLAYS_TYPES ? (n(), d("div", j7, [
15452
15451
  T(Fr, {
15453
15452
  height: e.modalHeight,
15454
15453
  type: e.filterType,
15455
15454
  categories: e.playsGolstatsCategories,
15456
- "onUpdate:filters": V
15455
+ "onUpdate:filters": B
15457
15456
  }, null, 8, ["height", "type", "categories"])
15458
15457
  ])) : S("", !0),
15459
- e.filterType === R(D).GOLSTATS ? (n(), d("div", W7, [
15458
+ e.filterType === R(j).GOLSTATS ? (n(), d("div", W7, [
15460
15459
  T(Fr, {
15461
15460
  height: e.modalHeight,
15462
15461
  type: e.filterType,
15463
15462
  categories: e.playsGolstatsCategories,
15464
15463
  onChangeFiltersSelected: Q,
15465
- "onUpdate:filters": V
15464
+ "onUpdate:filters": B
15466
15465
  }, null, 8, ["height", "type", "categories"])
15467
15466
  ])) : S("", !0),
15468
- e.filterType === R(D).UNIVERSE ? (n(), d("div", U7, [
15467
+ e.filterType === R(j).UNIVERSE ? (n(), d("div", U7, [
15469
15468
  T(s3, {
15470
15469
  ref_key: "templateUniverse",
15471
15470
  ref: u,
@@ -15473,13 +15472,13 @@ const j6 = { class: "dropdown" }, W6 = { class: "selected-item" }, U6 = {
15473
15472
  "onUpdate:universeFilters": ye
15474
15473
  }, null, 8, ["universe-filters"])
15475
15474
  ])) : S("", !0),
15476
- e.filterType === R(D).DISTANCE ? (n(), d("div", G7, [
15475
+ e.filterType === R(j).DISTANCE ? (n(), d("div", G7, [
15477
15476
  T(T3, {
15478
15477
  distance: e.distanceFilters,
15479
15478
  "onUpdate:distanceFilters": W
15480
15479
  }, null, 8, ["distance"])
15481
15480
  ])) : S("", !0),
15482
- e.filterType === R(D).RESULTS ? (n(), d("div", H7, [
15481
+ e.filterType === R(j).RESULTS ? (n(), d("div", H7, [
15483
15482
  T(R6, {
15484
15483
  ref_key: "templateResults",
15485
15484
  ref: g,
@@ -15487,59 +15486,59 @@ const j6 = { class: "dropdown" }, W6 = { class: "selected-item" }, U6 = {
15487
15486
  "onUpdate:resultsFilters": oe
15488
15487
  }, null, 8, ["results-filters"])
15489
15488
  ])) : S("", !0),
15490
- e.filterType === R(D).RESULTS_BY_TIME ? (n(), d("div", J7, [
15489
+ e.filterType === R(j).RESULTS_BY_TIME ? (n(), d("div", J7, [
15491
15490
  T(F7, {
15492
15491
  ref_key: "templateResults",
15493
15492
  ref: g,
15494
15493
  "results-filters": e.resultsByTimeFilters,
15495
- onChangeFiltersSelected: N,
15494
+ onChangeFiltersSelected: z,
15496
15495
  "onUpdate:filters": F
15497
15496
  }, null, 8, ["results-filters"])
15498
15497
  ])) : S("", !0),
15499
- e.filterType === R(D).GAMES ? (n(), d("div", q7, [
15498
+ e.filterType === R(j).GAMES ? (n(), d("div", q7, [
15500
15499
  T(E3, {
15501
15500
  "games-filters": e.gamesFilters,
15502
15501
  "onUpdate:gamesFilters": X
15503
15502
  }, null, 8, ["games-filters"])
15504
15503
  ])) : S("", !0),
15505
- e.filterType === R(D).TAKEN_CORNERS ? (n(), d("div", Z7, [
15504
+ e.filterType === R(j).TAKEN_CORNERS ? (n(), d("div", Z7, [
15506
15505
  T(G8, {
15507
15506
  "is-female": e.isFemale,
15508
15507
  ref_key: "templateTakenCorners",
15509
15508
  ref: h,
15510
15509
  "taken-corners-filters": e.takenCornersFilters,
15511
15510
  "is-expansion-mode": e.isExpansionMode,
15512
- onChangeFiltersSelected: N,
15511
+ onChangeFiltersSelected: z,
15513
15512
  "onUpdate:filters": F
15514
15513
  }, null, 8, ["is-female", "taken-corners-filters", "is-expansion-mode"])
15515
15514
  ])) : S("", !0),
15516
- e.filterType === R(D).VIDEOS ? (n(), d("div", Y7, [
15515
+ e.filterType === R(j).VIDEOS ? (n(), d("div", Y7, [
15517
15516
  T(F8, { token: e.token }, null, 8, ["token"])
15518
15517
  ])) : S("", !0),
15519
- e.filterType === R(D).HOW_WAS_CORNER ? (n(), d("div", K7, [
15518
+ e.filterType === R(j).HOW_WAS_CORNER ? (n(), d("div", K7, [
15520
15519
  T(r9, {
15521
15520
  "how-was-corner-filters": e.howWasCornerFilters,
15522
15521
  "is-expansion-mode": e.isExpansionMode,
15523
- onChangeFiltersSelected: N,
15522
+ onChangeFiltersSelected: z,
15524
15523
  "onUpdate:filters": F
15525
15524
  }, null, 8, ["how-was-corner-filters", "is-expansion-mode"])
15526
15525
  ])) : S("", !0),
15527
- e.filterType === R(D).ZONE ? (n(), d("div", X7, [
15526
+ e.filterType === R(j).ZONE ? (n(), d("div", X7, [
15528
15527
  T(c7, {
15529
15528
  ref_key: "templateZone",
15530
15529
  ref: b,
15531
15530
  "zone-filters": e.zoneFilters,
15532
- onChangeFiltersSelected: N,
15531
+ onChangeFiltersSelected: z,
15533
15532
  "onUpdate:filters": F
15534
15533
  }, null, 8, ["zone-filters"])
15535
15534
  ])) : S("", !0),
15536
- e.filterType === R(D).WHAT_HAPPENED ? (n(), d("div", Q7, [
15535
+ e.filterType === R(j).WHAT_HAPPENED ? (n(), d("div", Q7, [
15537
15536
  T(v7, {
15538
15537
  "is-female": e.isFemale,
15539
15538
  ref_key: "templateWhatHappened",
15540
15539
  ref: m,
15541
15540
  "what-happened-filters": e.whatHappenedFilters,
15542
- onChangeFiltersSelected: N,
15541
+ onChangeFiltersSelected: z,
15543
15542
  "onUpdate:filters": F
15544
15543
  }, null, 8, ["is-female", "what-happened-filters"])
15545
15544
  ])) : S("", !0)
@@ -15992,13 +15991,13 @@ const j6 = { class: "dropdown" }, W6 = { class: "selected-item" }, U6 = {
15992
15991
  "--info-height": a.infoHeight,
15993
15992
  "--info-width": a.infoWidth
15994
15993
  })), s = L(() => [
15995
- D.PLAYS_TYPES,
15996
- D.GOLSTATS,
15997
- D.TOURNAMENTS,
15998
- D.PLAYS,
15999
- D.RESULTS,
16000
- D.RESULTS_BY_TIME
16001
- ].includes(a.iconType)), l = L(() => [D.FIELD, D.GAMES].includes(a.iconType)), r = L(() => [D.DETAILS, D.UNIVERSE].includes(a.iconType)), c = L(() => [D.PERSONAL_DATA].includes(a.iconType)), u = L(() => [D.PRODUCTIVITY].includes(a.iconType)), h = L(() => [D.HOW_WAS_CORNER].includes(a.iconType)), b = L(() => [D.TAKEN_CORNERS].includes(a.iconType)), m = L(() => [D.ZONE].includes(a.iconType)), g = L(() => [D.WHAT_HAPPENED].includes(a.iconType));
15994
+ j.PLAYS_TYPES,
15995
+ j.GOLSTATS,
15996
+ j.TOURNAMENTS,
15997
+ j.PLAYS,
15998
+ j.RESULTS,
15999
+ j.RESULTS_BY_TIME
16000
+ ].includes(a.iconType)), l = L(() => [j.FIELD, j.GAMES].includes(a.iconType)), r = L(() => [j.DETAILS, j.UNIVERSE].includes(a.iconType)), c = L(() => [j.PERSONAL_DATA].includes(a.iconType)), u = L(() => [j.PRODUCTIVITY].includes(a.iconType)), h = L(() => [j.HOW_WAS_CORNER].includes(a.iconType)), b = L(() => [j.TAKEN_CORNERS].includes(a.iconType)), m = L(() => [j.ZONE].includes(a.iconType)), g = L(() => [j.WHAT_HAPPENED].includes(a.iconType));
16002
16001
  return (p, v) => (n(), d("div", {
16003
16002
  class: "button",
16004
16003
  style: I(t.value)
@@ -17164,7 +17163,7 @@ const j6 = { class: "dropdown" }, W6 = { class: "selected-item" }, U6 = {
17164
17163
  maxWidth: "604px",
17165
17164
  backgroundColor: "#2E3B46",
17166
17165
  borderRadius: "12px",
17167
- filterType: D.PRODUCTIVITY,
17166
+ filterType: j.PRODUCTIVITY,
17168
17167
  isFooterVisible: !0
17169
17168
  }, l = {
17170
17169
  width: "604px",
@@ -17172,35 +17171,35 @@ const j6 = { class: "dropdown" }, W6 = { class: "selected-item" }, U6 = {
17172
17171
  padding: "0 20px 10px 20px",
17173
17172
  backgroundColor: "#2E3B46",
17174
17173
  borderRadius: "12px",
17175
- filterType: D.PLAYS,
17174
+ filterType: j.PLAYS,
17176
17175
  isFooterVisible: !0
17177
17176
  }, r = {
17178
17177
  width: "fit-content",
17179
17178
  maxWidth: "608px",
17180
17179
  backgroundColor: "#2E3B46",
17181
17180
  borderRadius: "12px",
17182
- filterType: D.FIELD,
17181
+ filterType: j.FIELD,
17183
17182
  isFooterVisible: !0
17184
17183
  }, c = {
17185
17184
  width: "320px",
17186
17185
  maxWidth: "320px",
17187
17186
  backgroundColor: "#2E3B46",
17188
17187
  borderRadius: "12px",
17189
- filterType: D.DETAILS,
17188
+ filterType: j.DETAILS,
17190
17189
  isFooterVisible: !0
17191
17190
  }, u = {
17192
17191
  width: "246px",
17193
17192
  maxWidth: "246px",
17194
17193
  backgroundColor: "#2E3B46",
17195
17194
  borderRadius: "12px",
17196
- filterType: D.TOURNAMENTS,
17195
+ filterType: j.TOURNAMENTS,
17197
17196
  isFooterVisible: !0
17198
17197
  }, h = {
17199
17198
  width: "310px",
17200
17199
  maxWidth: "310px",
17201
17200
  backgroundColor: "#2E3B46",
17202
17201
  borderRadius: "12px",
17203
- filterType: D.PERSONAL_DATA,
17202
+ filterType: j.PERSONAL_DATA,
17204
17203
  isFooterVisible: !0
17205
17204
  }, b = {
17206
17205
  width: "310px",
@@ -17208,7 +17207,7 @@ const j6 = { class: "dropdown" }, W6 = { class: "selected-item" }, U6 = {
17208
17207
  maxWidth: "310px",
17209
17208
  backgroundColor: "#2E3B46",
17210
17209
  borderRadius: "12px",
17211
- filterType: D.PLAYS_TYPES,
17210
+ filterType: j.PLAYS_TYPES,
17212
17211
  isFooterVisible: !0,
17213
17212
  isFooterCancelOnly: !0
17214
17213
  }, m = {
@@ -17217,7 +17216,7 @@ const j6 = { class: "dropdown" }, W6 = { class: "selected-item" }, U6 = {
17217
17216
  maxWidth: "380px",
17218
17217
  backgroundColor: "#2E3B46",
17219
17218
  borderRadius: "12px",
17220
- filterType: D.GOLSTATS,
17219
+ filterType: j.GOLSTATS,
17221
17220
  isFooterVisible: !0,
17222
17221
  isFooterCancelOnly: !0
17223
17222
  }, g = {
@@ -17225,21 +17224,21 @@ const j6 = { class: "dropdown" }, W6 = { class: "selected-item" }, U6 = {
17225
17224
  maxWidth: "310px",
17226
17225
  backgroundColor: "#2E3B46",
17227
17226
  borderRadius: "12px",
17228
- filterType: D.UNIVERSE,
17227
+ filterType: j.UNIVERSE,
17229
17228
  isFooterVisible: !0
17230
17229
  }, p = {
17231
17230
  width: "310px",
17232
17231
  maxWidth: "310px",
17233
17232
  backgroundColor: "#2E3B46",
17234
17233
  borderRadius: "12px",
17235
- filterType: D.DISTANCE,
17234
+ filterType: j.DISTANCE,
17236
17235
  isFooterVisible: !0
17237
17236
  }, v = {
17238
17237
  width: "250px",
17239
17238
  maxWidth: "250px",
17240
17239
  backgroundColor: "#2E3B46",
17241
17240
  borderRadius: "12px",
17242
- filterType: D.RESULTS,
17241
+ filterType: j.RESULTS,
17243
17242
  padding: "0",
17244
17243
  isFooterVisible: !0
17245
17244
  }, y = {
@@ -17247,7 +17246,7 @@ const j6 = { class: "dropdown" }, W6 = { class: "selected-item" }, U6 = {
17247
17246
  maxWidth: "250px",
17248
17247
  backgroundColor: "#2E3B46",
17249
17248
  borderRadius: "12px",
17250
- filterType: D.RESULTS_BY_TIME,
17249
+ filterType: j.RESULTS_BY_TIME,
17251
17250
  padding: "0",
17252
17251
  isFooterVisible: !0
17253
17252
  }, _ = {
@@ -17255,68 +17254,68 @@ const j6 = { class: "dropdown" }, W6 = { class: "selected-item" }, U6 = {
17255
17254
  maxWidth: "380px",
17256
17255
  backgroundColor: "#2E3B46",
17257
17256
  borderRadius: "12px",
17258
- filterType: D.VIDEOS,
17257
+ filterType: j.VIDEOS,
17259
17258
  isFooterVisible: !1
17260
17259
  }, C = {
17261
17260
  width: "300px",
17262
17261
  maxWidth: "300px",
17263
17262
  backgroundColor: "#2E3B46",
17264
17263
  borderRadius: "12px",
17265
- filterType: D.GAMES,
17264
+ filterType: j.GAMES,
17266
17265
  isFooterVisible: !0
17267
17266
  }, $ = {
17268
17267
  width: "520px",
17269
17268
  maxWidth: "520px",
17270
17269
  backgroundColor: "#2E3B46",
17271
17270
  borderRadius: "12px",
17272
- filterType: D.TAKEN_CORNERS,
17271
+ filterType: j.TAKEN_CORNERS,
17273
17272
  isFooterVisible: !0
17274
17273
  }, se = {
17275
17274
  width: "670px",
17276
17275
  maxWidth: "670px",
17277
17276
  backgroundColor: "#2E3B46",
17278
17277
  borderRadius: "12px",
17279
- filterType: D.HOW_WAS_CORNER,
17278
+ filterType: j.HOW_WAS_CORNER,
17280
17279
  isFooterVisible: !0
17281
17280
  }, he = {
17282
17281
  width: "426px",
17283
17282
  maxWidth: "426px",
17284
17283
  backgroundColor: "#2E3B46",
17285
17284
  borderRadius: "12px",
17286
- filterType: D.ZONE,
17285
+ filterType: j.ZONE,
17287
17286
  isFooterVisible: !0
17288
17287
  }, H = {
17289
17288
  width: "285px",
17290
17289
  maxWidth: "285px",
17291
17290
  backgroundColor: "#2E3B46",
17292
17291
  borderRadius: "12px",
17293
- filterType: D.WHAT_HAPPENED,
17292
+ filterType: j.WHAT_HAPPENED,
17294
17293
  isFooterVisible: !0
17295
- }, de = x(!1), me = x(!1), ye = x(0), _e = x(0), Q = x({}), N = x(null), K = x(null), G = L(() => i.isForTemplateForm ? "0" : "unset"), pe = L(() => i.buttonFilterProps && i.buttonFilterProps.text ? i.buttonFilterProps.text : i.menuButtonText || j()), Se = L(() => i.isFromTemplates ? D.RESULTS : i.filterType), Ie = L(() => i.expansionPanelText || j()), O = x(null);
17294
+ }, de = x(!1), me = x(!1), ye = x(0), _e = x(0), Q = x({}), z = x(null), K = x(null), G = L(() => i.isForTemplateForm ? "0" : "unset"), pe = L(() => i.buttonFilterProps && i.buttonFilterProps.text ? i.buttonFilterProps.text : i.menuButtonText || N()), Se = L(() => i.isFromTemplates ? j.RESULTS : i.filterType), Ie = L(() => i.expansionPanelText || N()), O = x(null);
17296
17295
  U(
17297
17296
  () => i.filterType,
17298
17297
  (E) => {
17299
- if (E === D.PRODUCTIVITY)
17298
+ if (E === j.PRODUCTIVITY)
17300
17299
  Q.value = {
17301
17300
  ...s,
17302
17301
  ...i.templateProps,
17303
17302
  productivityCategories: i.filters || rw
17304
17303
  };
17305
- else if (E === D.PLAYS)
17304
+ else if (E === j.PLAYS)
17306
17305
  Q.value = {
17307
17306
  ...l,
17308
17307
  ...i.templateProps,
17309
17308
  fontFamily: i.buttonFilterProps ? i.buttonFilterProps.textFontFamily : "sans-serif",
17310
17309
  playsCategories: i.filters || nw
17311
17310
  };
17312
- else if (E === D.FIELD)
17311
+ else if (E === j.FIELD)
17313
17312
  Q.value = {
17314
17313
  ...r,
17315
17314
  ...i.templateProps,
17316
17315
  fieldComponentProps: i.fieldComponentProps,
17317
17316
  fieldAreas: i.filters || []
17318
17317
  };
17319
- else if (E === D.DETAILS)
17318
+ else if (E === j.DETAILS)
17320
17319
  Q.value = {
17321
17320
  ...c,
17322
17321
  ...i.templateProps,
@@ -17326,67 +17325,67 @@ const j6 = { class: "dropdown" }, W6 = { class: "selected-item" }, U6 = {
17326
17325
  statisticType: i.filters ? i.filters.statisticType : Pt.statisticType,
17327
17326
  isStatisticTypeVisible: i.filters ? i.filters.isStatisticTypeVisible : Pt.isStatisticTypeVisible
17328
17327
  };
17329
- else if (E === D.TOURNAMENTS) {
17328
+ else if (E === j.TOURNAMENTS) {
17330
17329
  const k = i.filters || cw;
17331
- i.isOneTournamentOnly && k.forEach((B) => {
17332
- B.isSelected = B.id === i.defaultTournamentId;
17330
+ i.isOneTournamentOnly && k.forEach((V) => {
17331
+ V.isSelected = V.id === i.defaultTournamentId;
17333
17332
  }), Q.value = {
17334
17333
  ...u,
17335
17334
  ...i.templateProps,
17336
17335
  tournaments: k
17337
17336
  };
17338
17337
  } else
17339
- E === D.PERSONAL_DATA ? Q.value = {
17338
+ E === j.PERSONAL_DATA ? Q.value = {
17340
17339
  ...h,
17341
17340
  ...i.templateProps,
17342
17341
  token: i.token,
17343
17342
  awaitForFilters: i.awaitForFilters,
17344
17343
  personalDataFilters: i.filters
17345
- } : E === D.PLAYS_TYPES ? Q.value = {
17344
+ } : E === j.PLAYS_TYPES ? Q.value = {
17346
17345
  ...b,
17347
17346
  ...i.templateProps,
17348
17347
  playsGolstatsCategories: i.filters || uw
17349
- } : E === D.GOLSTATS ? Q.value = {
17348
+ } : E === j.GOLSTATS ? Q.value = {
17350
17349
  ...m,
17351
17350
  ...i.templateProps,
17352
17351
  playsGolstatsCategories: i.filters || pw
17353
- } : E === D.UNIVERSE ? Q.value = {
17352
+ } : E === j.UNIVERSE ? Q.value = {
17354
17353
  ...g,
17355
17354
  ...i.templateProps,
17356
17355
  universeFilters: i.filters || dw
17357
- } : E === D.DISTANCE ? Q.value = {
17356
+ } : E === j.DISTANCE ? Q.value = {
17358
17357
  ...p,
17359
17358
  ...i.templateProps,
17360
17359
  distanceFilters: i.filters || hw
17361
- } : E === D.RESULTS ? Q.value = {
17360
+ } : E === j.RESULTS ? Q.value = {
17362
17361
  ...v,
17363
17362
  ...i.templateProps,
17364
17363
  resultsFilters: i.filters || nn
17365
- } : E === D.RESULTS_BY_TIME ? Q.value = {
17364
+ } : E === j.RESULTS_BY_TIME ? Q.value = {
17366
17365
  ...y,
17367
17366
  ...i.templateProps,
17368
17367
  resultsByTimeFilters: i.filters || sl
17369
- } : E === D.GAMES ? Q.value = {
17368
+ } : E === j.GAMES ? Q.value = {
17370
17369
  ...C,
17371
17370
  ...i.templateProps,
17372
17371
  gamesFilters: i.filters || []
17373
- } : E === D.VIDEOS ? Q.value = {
17372
+ } : E === j.VIDEOS ? Q.value = {
17374
17373
  ..._,
17375
17374
  ...i.templateProps,
17376
17375
  token: i.token
17377
- } : E === D.TAKEN_CORNERS ? Q.value = {
17376
+ } : E === j.TAKEN_CORNERS ? Q.value = {
17378
17377
  ...$,
17379
17378
  ...i.templateProps,
17380
17379
  takenCornersFilters: i.filters || []
17381
- } : E === D.HOW_WAS_CORNER ? Q.value = {
17380
+ } : E === j.HOW_WAS_CORNER ? Q.value = {
17382
17381
  ...se,
17383
17382
  ...i.templateProps,
17384
17383
  howWasCornerFilters: i.filters || al
17385
- } : E === D.ZONE ? Q.value = {
17384
+ } : E === j.ZONE ? Q.value = {
17386
17385
  ...he,
17387
17386
  ...i.templateProps,
17388
17387
  zoneFilters: i.filters || [...qa]
17389
- } : E === D.WHAT_HAPPENED && (Q.value = {
17388
+ } : E === j.WHAT_HAPPENED && (Q.value = {
17390
17389
  ...H,
17391
17390
  ...i.templateProps,
17392
17391
  whatHappenedFilters: i.filters || [...il]
@@ -17397,26 +17396,26 @@ const j6 = { class: "dropdown" }, W6 = { class: "selected-item" }, U6 = {
17397
17396
  ), U(
17398
17397
  () => i.filters,
17399
17398
  () => {
17400
- if (i.filterType === D.PRODUCTIVITY)
17399
+ if (i.filterType === j.PRODUCTIVITY)
17401
17400
  Q.value = {
17402
17401
  ...s,
17403
17402
  ...i.templateProps,
17404
17403
  productivityCategories: i.filters
17405
17404
  };
17406
- else if (i.filterType === D.PLAYS)
17405
+ else if (i.filterType === j.PLAYS)
17407
17406
  Q.value = {
17408
17407
  ...l,
17409
17408
  ...i.templateProps,
17410
17409
  playsCategories: i.filters
17411
17410
  };
17412
- else if (i.filterType === D.FIELD)
17411
+ else if (i.filterType === j.FIELD)
17413
17412
  Q.value = {
17414
17413
  ...r,
17415
17414
  ...i.templateProps,
17416
17415
  fieldComponentProps: i.fieldComponentProps,
17417
17416
  fieldAreas: i.filters
17418
17417
  };
17419
- else if (i.filterType === D.DETAILS)
17418
+ else if (i.filterType === j.DETAILS)
17420
17419
  Q.value = {
17421
17420
  ...c,
17422
17421
  ...i.templateProps,
@@ -17426,7 +17425,7 @@ const j6 = { class: "dropdown" }, W6 = { class: "selected-item" }, U6 = {
17426
17425
  statisticType: i.filters ? i.filters.statisticType : Pt.statisticType,
17427
17426
  isStatisticVisible: i.filters ? i.filters.isStatisticVisible : Pt.isStatisticVisible
17428
17427
  };
17429
- else if (i.filterType === D.TOURNAMENTS) {
17428
+ else if (i.filterType === j.TOURNAMENTS) {
17430
17429
  const E = i.filters;
17431
17430
  i.isOneTournamentOnly && E.forEach((k) => {
17432
17431
  k.isSelected = k.id === i.defaultTournamentId;
@@ -17436,57 +17435,57 @@ const j6 = { class: "dropdown" }, W6 = { class: "selected-item" }, U6 = {
17436
17435
  tournaments: E
17437
17436
  };
17438
17437
  } else
17439
- i.filterType === D.PERSONAL_DATA ? Q.value = {
17438
+ i.filterType === j.PERSONAL_DATA ? Q.value = {
17440
17439
  ...h,
17441
17440
  ...i.templateProps,
17442
17441
  token: i.token,
17443
17442
  awaitForFilters: i.awaitForFilters,
17444
17443
  personalDataFilters: i.filters
17445
- } : i.filterType === D.PLAYS_TYPES ? Q.value = {
17444
+ } : i.filterType === j.PLAYS_TYPES ? Q.value = {
17446
17445
  ...b,
17447
17446
  ...i.templateProps,
17448
17447
  playsGolstatsCategories: i.filters
17449
- } : i.filterType === D.GOLSTATS ? Q.value = {
17448
+ } : i.filterType === j.GOLSTATS ? Q.value = {
17450
17449
  ...m,
17451
17450
  ...i.templateProps,
17452
17451
  playsGolstatsCategories: i.filters
17453
- } : i.filterType === D.UNIVERSE ? Q.value = {
17452
+ } : i.filterType === j.UNIVERSE ? Q.value = {
17454
17453
  ...g,
17455
17454
  ...i.templateProps,
17456
17455
  universeFilters: i.filters
17457
- } : i.filterType === D.DISTANCE ? Q.value = {
17456
+ } : i.filterType === j.DISTANCE ? Q.value = {
17458
17457
  ...p,
17459
17458
  ...i.templateProps,
17460
17459
  distanceFilters: i.filters
17461
- } : i.filterType === D.RESULTS ? Q.value = {
17460
+ } : i.filterType === j.RESULTS ? Q.value = {
17462
17461
  ...v,
17463
17462
  ...i.templateProps,
17464
17463
  resultsFilters: i.filters || nn
17465
- } : i.filterType === D.RESULTS_BY_TIME ? Q.value = {
17464
+ } : i.filterType === j.RESULTS_BY_TIME ? Q.value = {
17466
17465
  ...y,
17467
17466
  ...i.templateProps,
17468
17467
  resultsByTimeFilters: i.filters || sl
17469
- } : i.filterType === D.GAMES ? Q.value = {
17468
+ } : i.filterType === j.GAMES ? Q.value = {
17470
17469
  ...C,
17471
17470
  ...i.templateProps,
17472
17471
  gamesFilters: i.filters
17473
- } : i.filterType === D.VIDEOS ? Q.value = {
17472
+ } : i.filterType === j.VIDEOS ? Q.value = {
17474
17473
  ..._,
17475
17474
  ...i.templateProps,
17476
17475
  token: i.token
17477
- } : i.filterType === D.TAKEN_CORNERS ? Q.value = {
17476
+ } : i.filterType === j.TAKEN_CORNERS ? Q.value = {
17478
17477
  ...$,
17479
17478
  ...i.templateProps,
17480
17479
  takenCornersFilters: i.filters || []
17481
- } : i.filterType === D.HOW_WAS_CORNER ? Q.value = {
17480
+ } : i.filterType === j.HOW_WAS_CORNER ? Q.value = {
17482
17481
  ...se,
17483
17482
  ...i.templateProps,
17484
17483
  howWasCornerFilters: i.filters || al
17485
- } : i.filterType === D.ZONE ? Q.value = {
17484
+ } : i.filterType === j.ZONE ? Q.value = {
17486
17485
  ...he,
17487
17486
  ...i.templateProps,
17488
17487
  zoneFilters: i.filters || [...qa]
17489
- } : i.filterType === D.WHAT_HAPPENED && (Q.value = {
17488
+ } : i.filterType === j.WHAT_HAPPENED && (Q.value = {
17490
17489
  ...H,
17491
17490
  ...i.templateProps,
17492
17491
  whatHappenedFilters: i.filters || [...il]
@@ -17504,43 +17503,43 @@ const j6 = { class: "dropdown" }, W6 = { class: "selected-item" }, U6 = {
17504
17503
  function P() {
17505
17504
  i.isExpansionPanel ? me.value = !1 : de.value = !1, t("apply", O.value);
17506
17505
  }
17507
- function j() {
17508
- if (i.filterType === D.PRODUCTIVITY)
17506
+ function N() {
17507
+ if (i.filterType === j.PRODUCTIVITY)
17509
17508
  return i.isFromTemplates ? "Tipos de jugadas" : "Características de juego";
17510
- if (i.filterType === D.PLAYS)
17509
+ if (i.filterType === j.PLAYS)
17511
17510
  return "Jugada(s)";
17512
- if (i.filterType === D.FIELD)
17511
+ if (i.filterType === j.FIELD)
17513
17512
  return "Zona de cancha";
17514
- if (i.filterType === D.DETAILS)
17513
+ if (i.filterType === j.DETAILS)
17515
17514
  return "Detalles";
17516
- if (i.filterType === D.TOURNAMENTS)
17515
+ if (i.filterType === j.TOURNAMENTS)
17517
17516
  return "Ligas";
17518
- if (i.filterType === D.PERSONAL_DATA)
17517
+ if (i.filterType === j.PERSONAL_DATA)
17519
17518
  return "Datos personales";
17520
- if (i.filterType === D.PLAYS_TYPES)
17519
+ if (i.filterType === j.PLAYS_TYPES)
17521
17520
  return "Tipos de jugada";
17522
- if (i.filterType === D.GOLSTATS)
17521
+ if (i.filterType === j.GOLSTATS)
17523
17522
  return "Filtros Golstats";
17524
- if (i.filterType === D.UNIVERSE)
17523
+ if (i.filterType === j.UNIVERSE)
17525
17524
  return "Universo";
17526
- if (i.filterType === D.DISTANCE)
17525
+ if (i.filterType === j.DISTANCE)
17527
17526
  return "Distancia";
17528
- if ([D.RESULTS, D.RESULTS_BY_TIME].includes(i.filterType))
17527
+ if ([j.RESULTS, j.RESULTS_BY_TIME].includes(i.filterType))
17529
17528
  return "Resultados";
17530
- if (i.filterType === D.GAMES)
17529
+ if (i.filterType === j.GAMES)
17531
17530
  return "Partidos";
17532
- if (i.filterType === D.VIDEOS)
17531
+ if (i.filterType === j.VIDEOS)
17533
17532
  return "Videos";
17534
- if (i.filterType === D.TAKEN_CORNERS)
17533
+ if (i.filterType === j.TAKEN_CORNERS)
17535
17534
  return "¿Quién cobró?";
17536
- if (i.filterType === D.HOW_WAS_CORNER)
17535
+ if (i.filterType === j.HOW_WAS_CORNER)
17537
17536
  return "¿Cómo fue cobrado?";
17538
- if (i.filterType === D.ZONE)
17537
+ if (i.filterType === j.ZONE)
17539
17538
  return "Zona";
17540
- if (i.filterType === D.WHAT_HAPPENED)
17539
+ if (i.filterType === j.WHAT_HAPPENED)
17541
17540
  return "¿Qué sucedió?";
17542
17541
  }
17543
- function V(E) {
17542
+ function B(E) {
17544
17543
  t("click-parameters", E);
17545
17544
  }
17546
17545
  function ee(E) {
@@ -17557,7 +17556,7 @@ const j6 = { class: "dropdown" }, W6 = { class: "selected-item" }, U6 = {
17557
17556
  _e.value = E;
17558
17557
  }
17559
17558
  function M(E = null) {
17560
- N.value && N.value.clearFilters(E), K.value && K.value.clearFilters(E);
17559
+ z.value && z.value.clearFilters(E), K.value && K.value.clearFilters(E);
17561
17560
  }
17562
17561
  return a({
17563
17562
  clearFilters: M
@@ -17565,7 +17564,7 @@ const j6 = { class: "dropdown" }, W6 = { class: "selected-item" }, U6 = {
17565
17564
  e.isExpansionPanel ? (n(), d("div", mw, [
17566
17565
  T(R(ow), ge(e.expansionPanelProps, {
17567
17566
  modelValue: me.value,
17568
- "onUpdate:modelValue": k[0] || (k[0] = (B) => me.value = B),
17567
+ "onUpdate:modelValue": k[0] || (k[0] = (V) => me.value = V),
17569
17568
  text: Ie.value,
17570
17569
  "text-color": "rgba(255,255,255,.7)",
17571
17570
  icon: "/" + i.filterType + "-icon.png"
@@ -17592,7 +17591,7 @@ const j6 = { class: "dropdown" }, W6 = { class: "selected-item" }, U6 = {
17592
17591
  onApply: P,
17593
17592
  "onUpdate:filters": oe,
17594
17593
  onTotalFilters: X,
17595
- onClickParameters: V
17594
+ onClickParameters: B
17596
17595
  }), null, 16, ["season", "is-female", "is-seleccion", "is-one-tournament-only", "is-from-templates", "is-for-template-form", "default-tournament-id", "productivity-max-categories", "productivity-min-categories"])
17597
17596
  ])
17598
17597
  ]),
@@ -17601,7 +17600,7 @@ const j6 = { class: "dropdown" }, W6 = { class: "selected-item" }, U6 = {
17601
17600
  ])) : (n(), d("div", gw, [
17602
17601
  T(R(oS), {
17603
17602
  modelValue: de.value,
17604
- "onUpdate:modelValue": k[1] || (k[1] = (B) => de.value = B),
17603
+ "onUpdate:modelValue": k[1] || (k[1] = (V) => de.value = V),
17605
17604
  width: e.width,
17606
17605
  "left-menu": G.value,
17607
17606
  "menu-margin-top": 18
@@ -17629,7 +17628,7 @@ const j6 = { class: "dropdown" }, W6 = { class: "selected-item" }, U6 = {
17629
17628
  "productivity-max-categories": e.productivityMaxCategories,
17630
17629
  "productivity-min-categories": e.productivityMinCategories,
17631
17630
  ref_key: "filterTemplateMenu",
17632
- ref: N,
17631
+ ref: z,
17633
17632
  onChangeFieldAreas: ee,
17634
17633
  onChangeCategoriesSelected: F,
17635
17634
  onChangeFiltersSelected: F,
@@ -17637,7 +17636,7 @@ const j6 = { class: "dropdown" }, W6 = { class: "selected-item" }, U6 = {
17637
17636
  "onUpdate:filters": oe,
17638
17637
  onTotalFilters: X,
17639
17638
  onApply: P,
17640
- onClickParameters: V
17639
+ onClickParameters: B
17641
17640
  }), null, 16, ["season", "is-female", "is-scouting", "is-seleccion", "is-one-tournament-only", "default-tournament-id", "is-from-templates", "is-for-template-form", "productivity-max-categories", "productivity-min-categories"])
17642
17641
  ]),
17643
17642
  _: 1
@@ -18192,17 +18191,17 @@ const $w = /* @__PURE__ */ bw(Yl, [["render", kw], ["__scopeId", "data-v-f3ee6b2
18192
18191
  personalData: []
18193
18192
  }), y = x(null), _ = x(!0), C = x(!1), $ = x(""), se = x(0), he = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE", H = () => {
18194
18193
  i.value && (c.value = i.value.offsetWidth);
18195
- }, de = (V) => {
18196
- document.body.style.overflow = V ? "hidden" : "auto";
18194
+ }, de = (B) => {
18195
+ document.body.style.overflow = B ? "hidden" : "auto";
18197
18196
  }, me = x(null), ye = () => {
18198
18197
  H(), e.isVisible && de(!0);
18199
18198
  }, _e = () => {
18200
18199
  s.value = 1, r.value = {
18201
18200
  title: "",
18202
18201
  position: ""
18203
- }, me.value && (me.value.clearFilters(Ke.ALL), me.value.clearFilters(Ke.AGE_RANGE), me.value.clearFilters(Ke.YEAR), me.value.clearFilters(Ke.NATIONALITY), me.value.clearFilters(Ke.POSITION)), Ei.forEach((V) => {
18204
- V.isSelected = V.name === "Liga MX", V.seasons.forEach((ee) => {
18205
- ee.isSelected = V.name === "Liga MX";
18202
+ }, me.value && (me.value.clearFilters(Ke.ALL), me.value.clearFilters(Ke.AGE_RANGE), me.value.clearFilters(Ke.YEAR), me.value.clearFilters(Ke.NATIONALITY), me.value.clearFilters(Ke.POSITION)), Ei.forEach((B) => {
18203
+ B.isSelected = B.name === "Liga MX", B.seasons.forEach((ee) => {
18204
+ ee.isSelected = B.name === "Liga MX";
18206
18205
  });
18207
18206
  }), p.value.clear(), se.value++, $.value = "", C.value = !1, _.value = !0, y.value = null, m.value = [], a("close");
18208
18207
  }, Q = () => {
@@ -18211,30 +18210,30 @@ const $w = /* @__PURE__ */ bw(Yl, [["render", kw], ["__scopeId", "data-v-f3ee6b2
18211
18210
  return;
18212
18211
  s.value = 2;
18213
18212
  }
18214
- }, N = async () => {
18213
+ }, z = async () => {
18215
18214
  try {
18216
18215
  h.value = !0;
18217
- const V = await Ae.create({ headers: { Authorization: `${he}` } }).get(`https://a3tmmmjdaj.execute-api.us-east-2.amazonaws.com/prod/teams/${e.userTeamId}/templates?general=1`);
18218
- b.value = V.data.data, b.value.unshift({ id: 0, name: "Selecciona un template para tu lista..." });
18219
- } catch (V) {
18220
- console.error("Error al cargar templates:", V);
18216
+ const B = await Ae.create({ headers: { Authorization: `${he}` } }).get(`https://a3tmmmjdaj.execute-api.us-east-2.amazonaws.com/prod/teams/${e.userTeamId}/templates?general=1`);
18217
+ b.value = B.data.data, b.value.unshift({ id: 0, name: "Selecciona un template para tu lista..." });
18218
+ } catch (B) {
18219
+ console.error("Error al cargar templates:", B);
18221
18220
  } finally {
18222
18221
  h.value = !1;
18223
18222
  }
18224
18223
  };
18225
18224
  Le(() => {
18226
- N(), window.addEventListener("resize", ye);
18225
+ z(), window.addEventListener("resize", ye);
18227
18226
  }), It(() => {
18228
18227
  window.removeEventListener("resize", ye), de(!1);
18229
18228
  }), U(
18230
18229
  () => e.isVisible,
18231
- (V) => {
18232
- V ? (s.value = 1, setTimeout(H, 0), de(!0)) : (s.value = 1, de(!1));
18230
+ (B) => {
18231
+ B ? (s.value = 1, setTimeout(H, 0), de(!0)) : (s.value = 1, de(!1));
18233
18232
  }
18234
18233
  ), U(
18235
18234
  () => s.value,
18236
- (V) => {
18237
- V === 2 && setTimeout(() => {
18235
+ (B) => {
18236
+ B === 2 && setTimeout(() => {
18238
18237
  _.value = !0, y.value = null, O();
18239
18238
  }, 100);
18240
18239
  }
@@ -18242,21 +18241,21 @@ const $w = /* @__PURE__ */ bw(Yl, [["render", kw], ["__scopeId", "data-v-f3ee6b2
18242
18241
  const K = L(() => ({
18243
18242
  ...t.value
18244
18243
  })), G = L(() => {
18245
- const V = r.value.title.toLowerCase(), ee = e.listExistingNames.includes(V);
18244
+ const B = r.value.title.toLowerCase(), ee = e.listExistingNames.includes(B);
18246
18245
  return l.value = ee, r.value.title.length >= 3 && !ee;
18247
- }), pe = async (V) => {
18248
- v.value.tournaments = V, Ie();
18249
- }, Se = async (V) => {
18250
- v.value.personalData = V, Ie();
18246
+ }), pe = async (B) => {
18247
+ v.value.tournaments = B, Ie();
18248
+ }, Se = async (B) => {
18249
+ v.value.personalData = B, Ie();
18251
18250
  }, Ie = () => {
18252
18251
  if (!y.value) {
18253
18252
  _.value = !0;
18254
18253
  return;
18255
18254
  }
18256
- const V = JSON.stringify(v.value) !== JSON.stringify(y.value);
18257
- _.value = V;
18255
+ const B = JSON.stringify(v.value) !== JSON.stringify(y.value);
18256
+ _.value = B;
18258
18257
  }, O = async () => {
18259
- var V, ee, W, oe, X, M;
18258
+ var B, ee, W, oe, X, M;
18260
18259
  if (_.value) {
18261
18260
  C.value = !0;
18262
18261
  try {
@@ -18265,7 +18264,7 @@ const $w = /* @__PURE__ */ bw(Yl, [["render", kw], ["__scopeId", "data-v-f3ee6b2
18265
18264
  const k = E.seasons[0];
18266
18265
  g.value = !0, m.value = [];
18267
18266
  try {
18268
- let B = [...(await Ae.create({ headers: { Authorization: `${he}` } }).get(
18267
+ let V = [...(await Ae.create({ headers: { Authorization: `${he}` } }).get(
18269
18268
  `https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/players/seasons/${k.id}`
18270
18269
  )).data.players.map((re) => {
18271
18270
  var Me;
@@ -18292,28 +18291,28 @@ const $w = /* @__PURE__ */ bw(Yl, [["render", kw], ["__scopeId", "data-v-f3ee6b2
18292
18291
  isSelected: p.value.has(re.player_id)
18293
18292
  };
18294
18293
  })];
18295
- if ((V = v.value.personalData) != null && V.ageByRange && (B = B.filter((re) => {
18294
+ if ((B = v.value.personalData) != null && B.ageByRange && (V = V.filter((re) => {
18296
18295
  const Me = parseInt(re.age);
18297
18296
  return !isNaN(Me) && Me >= v.value.personalData.ageByRange.min && Me <= v.value.personalData.ageByRange.max;
18298
18297
  })), (ee = v.value.personalData) != null && ee.year) {
18299
18298
  const re = v.value.personalData.year;
18300
- B = B.filter((Me) => Me.dob ? parseInt(Me.dob.substring(0, 4)) === re : !1);
18299
+ V = V.filter((Me) => Me.dob ? parseInt(Me.dob.substring(0, 4)) === re : !1);
18301
18300
  }
18302
18301
  if (((oe = (W = v.value.personalData) == null ? void 0 : W.nationalities) == null ? void 0 : oe.length) > 0) {
18303
18302
  const re = v.value.personalData.nationalities.filter((Me) => Me.isSelected).map((Me) => Me.id);
18304
- re.length > 0 && (B = B.filter(
18303
+ re.length > 0 && (V = V.filter(
18305
18304
  (Me) => re.includes(Me.nationality_id)
18306
18305
  ));
18307
18306
  }
18308
18307
  if (((M = (X = v.value.personalData) == null ? void 0 : X.positions) == null ? void 0 : M.length) > 0) {
18309
18308
  const re = v.value.personalData.positions.filter((Me) => Me.isSelected).map((Me) => Me.id);
18310
- re.length > 0 && (B = B.filter(
18309
+ re.length > 0 && (V = V.filter(
18311
18310
  (Me) => re.includes(Me.position_id)
18312
18311
  ));
18313
18312
  }
18314
- m.value = B, y.value = JSON.parse(JSON.stringify(v.value)), _.value = !1;
18315
- } catch (B) {
18316
- console.error("Error al obtener jugadores:", B), m.value = [];
18313
+ m.value = V, y.value = JSON.parse(JSON.stringify(v.value)), _.value = !1;
18314
+ } catch (V) {
18315
+ console.error("Error al obtener jugadores:", V), m.value = [];
18317
18316
  } finally {
18318
18317
  g.value = !1;
18319
18318
  }
@@ -18322,19 +18321,19 @@ const $w = /* @__PURE__ */ bw(Yl, [["render", kw], ["__scopeId", "data-v-f3ee6b2
18322
18321
  console.error("Error al procesar la búsqueda:", E), g.value = !1;
18323
18322
  }
18324
18323
  }
18325
- }, F = (V) => {
18326
- p.value.has(V) ? p.value.delete(V) : p.value.add(V);
18327
- }, P = (V) => {
18328
- if (!V) return "-";
18329
- const [ee, W] = V.split(",").map((X) => X.trim());
18330
- if (!W) return V;
18324
+ }, F = (B) => {
18325
+ p.value.has(B) ? p.value.delete(B) : p.value.add(B);
18326
+ }, P = (B) => {
18327
+ if (!B) return "-";
18328
+ const [ee, W] = B.split(",").map((X) => X.trim());
18329
+ if (!W) return B;
18331
18330
  const oe = ee.split(" ")[0];
18332
18331
  return `${W[0]}. ${oe}`;
18333
- }, j = L(() => {
18332
+ }, N = L(() => {
18334
18333
  if (!$.value) return m.value;
18335
- const V = $.value.toLowerCase().trim();
18334
+ const B = $.value.toLowerCase().trim();
18336
18335
  return m.value.filter(
18337
- (ee) => ee.name_full.toLowerCase().includes(V)
18336
+ (ee) => ee.name_full.toLowerCase().includes(B)
18338
18337
  );
18339
18338
  });
18340
18339
  return {
@@ -18348,7 +18347,7 @@ const $w = /* @__PURE__ */ bw(Yl, [["render", kw], ["__scopeId", "data-v-f3ee6b2
18348
18347
  closeModal: _e,
18349
18348
  handleNext: Q,
18350
18349
  filterButtonProps: K,
18351
- filtersTypes: D,
18350
+ filtersTypes: j,
18352
18351
  onFiltersTournamentsTops: pe,
18353
18352
  tournamentsToFilter: Ei,
18354
18353
  onFiltersPersonalData: Se,
@@ -18361,18 +18360,18 @@ const $w = /* @__PURE__ */ bw(Yl, [["render", kw], ["__scopeId", "data-v-f3ee6b2
18361
18360
  selectedPlayers: p,
18362
18361
  hasSearched: C,
18363
18362
  searchQuery: $,
18364
- filteredPlayers: j,
18363
+ filteredPlayers: N,
18365
18364
  clearSearch: () => {
18366
18365
  $.value = "";
18367
18366
  },
18368
18367
  handleCreatePlaylist: async () => {
18369
18368
  try {
18370
- const V = b.value.find(
18369
+ const B = b.value.find(
18371
18370
  (oe) => oe.id === r.value.position
18372
18371
  ), ee = {
18373
18372
  user_id: e.userId,
18374
18373
  name: r.value.title,
18375
- template: V,
18374
+ template: B,
18376
18375
  // Ahora enviamos el objeto completo del template
18377
18376
  players: p.value.size > 0 ? Array.from(p.value).map((oe) => {
18378
18377
  const X = m.value.find((M) => M.id === oe);
@@ -18396,15 +18395,15 @@ const $w = /* @__PURE__ */ bw(Yl, [["render", kw], ["__scopeId", "data-v-f3ee6b2
18396
18395
  ee
18397
18396
  );
18398
18397
  (W.status === 200 || W.status === 201) && (a("playlist-created", W.data), _e());
18399
- } catch (V) {
18400
- console.error("Error al crear la playlist:", V);
18398
+ } catch (B) {
18399
+ console.error("Error al crear la playlist:", B);
18401
18400
  }
18402
18401
  },
18403
18402
  filterKey: se,
18404
18403
  personalDataFilter: me,
18405
18404
  isValidPlaylistName: G,
18406
- onInputTemplate: (V) => {
18407
- r.value.position = V.id;
18405
+ onInputTemplate: (B) => {
18406
+ r.value.position = B.id;
18408
18407
  }
18409
18408
  };
18410
18409
  }
@@ -18666,7 +18665,7 @@ function SC(e, a, t, i, s, l) {
18666
18665
  _: 1
18667
18666
  });
18668
18667
  }
18669
- const wC = /* @__PURE__ */ Et(Ow, [["render", SC], ["__scopeId", "data-v-d56a30a5"]]), CC = {
18668
+ const wC = /* @__PURE__ */ Et(Ow, [["render", SC], ["__scopeId", "data-v-9f366e45"]]), CC = {
18670
18669
  name: "ModalCreatePlayList",
18671
18670
  components: {
18672
18671
  GSCDropdown: nu
@@ -18890,7 +18889,7 @@ function EC(e, a, t, i, s, l) {
18890
18889
  _: 1
18891
18890
  });
18892
18891
  }
18893
- const MC = /* @__PURE__ */ Et(CC, [["render", EC], ["__scopeId", "data-v-b20b2a58"]]), VC = {
18892
+ const MC = /* @__PURE__ */ Et(CC, [["render", EC], ["__scopeId", "data-v-b18b3b3c"]]), VC = {
18894
18893
  name: "ModalCreatePlayList",
18895
18894
  components: {
18896
18895
  GSCFilters: ou
@@ -18954,8 +18953,8 @@ const MC = /* @__PURE__ */ Et(CC, [["render", EC], ["__scopeId", "data-v-b20b2a5
18954
18953
  title: "",
18955
18954
  position: ""
18956
18955
  }, de.value && (de.value.clearFilters(Ke.ALL), de.value.clearFilters(Ke.AGE_RANGE), de.value.clearFilters(Ke.YEAR), de.value.clearFilters(Ke.NATIONALITY), de.value.clearFilters(Ke.POSITION)), Ei.forEach((P) => {
18957
- P.isSelected = P.name === "Liga MX", P.seasons.forEach((j) => {
18958
- j.isSelected = P.name === "Liga MX";
18956
+ P.isSelected = P.name === "Liga MX", P.seasons.forEach((N) => {
18957
+ N.isSelected = P.name === "Liga MX";
18959
18958
  });
18960
18959
  }), g.value.clear(), $.value++, C.value = "", _.value = !1, y.value = !0, v.value = null, b.value = [], a("close");
18961
18960
  }, _e = () => {
@@ -18987,7 +18986,7 @@ const MC = /* @__PURE__ */ Et(CC, [["render", EC], ["__scopeId", "data-v-b20b2a5
18987
18986
  }, 100)) : H(!1);
18988
18987
  }
18989
18988
  );
18990
- const N = L(() => ({
18989
+ const z = L(() => ({
18991
18990
  ...t.value
18992
18991
  })), K = async (P) => {
18993
18992
  p.value.tournaments = P, pe();
@@ -19001,7 +19000,7 @@ const MC = /* @__PURE__ */ Et(CC, [["render", EC], ["__scopeId", "data-v-b20b2a5
19001
19000
  const P = JSON.stringify(p.value) !== JSON.stringify(v.value);
19002
19001
  y.value = P;
19003
19002
  }, Se = async () => {
19004
- var P, j, V, ee, W, oe;
19003
+ var P, N, B, ee, W, oe;
19005
19004
  if (y.value) {
19006
19005
  _.value = !0;
19007
19006
  try {
@@ -19013,7 +19012,7 @@ const MC = /* @__PURE__ */ Et(CC, [["render", EC], ["__scopeId", "data-v-b20b2a5
19013
19012
  let E = [...(await Ae.create({ headers: { Authorization: `${se}` } }).get(
19014
19013
  `https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/players/seasons/${M.id}`
19015
19014
  )).data.players.map((k) => {
19016
- var B;
19015
+ var V;
19017
19016
  return {
19018
19017
  id: k.player_id,
19019
19018
  name: O(k.player_name),
@@ -19031,29 +19030,29 @@ const MC = /* @__PURE__ */ Et(CC, [["render", EC], ["__scopeId", "data-v-b20b2a5
19031
19030
  team_id: k.team_id,
19032
19031
  team: {
19033
19032
  logo: `https://golstatsimages.blob.core.windows.net/teams-80/${k.team_id}.png`,
19034
- shortName: ((B = k.team) == null ? void 0 : B.shortName) || "-",
19033
+ shortName: ((V = k.team) == null ? void 0 : V.shortName) || "-",
19035
19034
  tournament: X.name || "No especificada"
19036
19035
  },
19037
19036
  isSelected: g.value.has(k.player_id)
19038
19037
  };
19039
19038
  })];
19040
19039
  if ((P = p.value.personalData) != null && P.ageByRange && (E = E.filter((k) => {
19041
- const B = parseInt(k.age);
19042
- return !isNaN(B) && B >= p.value.personalData.ageByRange.min && B <= p.value.personalData.ageByRange.max;
19043
- })), (j = p.value.personalData) != null && j.year) {
19040
+ const V = parseInt(k.age);
19041
+ return !isNaN(V) && V >= p.value.personalData.ageByRange.min && V <= p.value.personalData.ageByRange.max;
19042
+ })), (N = p.value.personalData) != null && N.year) {
19044
19043
  const k = p.value.personalData.year;
19045
- E = E.filter((B) => B.dob ? parseInt(B.dob.substring(0, 4)) === k : !1);
19044
+ E = E.filter((V) => V.dob ? parseInt(V.dob.substring(0, 4)) === k : !1);
19046
19045
  }
19047
- if (((ee = (V = p.value.personalData) == null ? void 0 : V.nationalities) == null ? void 0 : ee.length) > 0) {
19048
- const k = p.value.personalData.nationalities.filter((B) => B.isSelected).map((B) => B.id);
19046
+ if (((ee = (B = p.value.personalData) == null ? void 0 : B.nationalities) == null ? void 0 : ee.length) > 0) {
19047
+ const k = p.value.personalData.nationalities.filter((V) => V.isSelected).map((V) => V.id);
19049
19048
  k.length > 0 && (E = E.filter(
19050
- (B) => k.includes(B.nationality_id)
19049
+ (V) => k.includes(V.nationality_id)
19051
19050
  ));
19052
19051
  }
19053
19052
  if (((oe = (W = p.value.personalData) == null ? void 0 : W.positions) == null ? void 0 : oe.length) > 0) {
19054
- const k = p.value.personalData.positions.filter((B) => B.isSelected).map((B) => B.id);
19053
+ const k = p.value.personalData.positions.filter((V) => V.isSelected).map((V) => V.id);
19055
19054
  k.length > 0 && (E = E.filter(
19056
- (B) => k.includes(B.position_id)
19055
+ (V) => k.includes(V.position_id)
19057
19056
  ));
19058
19057
  }
19059
19058
  b.value = E, v.value = JSON.parse(JSON.stringify(p.value)), y.value = !1;
@@ -19071,10 +19070,10 @@ const MC = /* @__PURE__ */ Et(CC, [["render", EC], ["__scopeId", "data-v-b20b2a5
19071
19070
  g.value.has(P) ? g.value.delete(P) : g.value.add(P);
19072
19071
  }, O = (P) => {
19073
19072
  if (!P) return "-";
19074
- const [j, V] = P.split(",").map((W) => W.trim());
19075
- if (!V) return P;
19076
- const ee = j.split(" ")[0];
19077
- return `${V[0]}. ${ee}`;
19073
+ const [N, B] = P.split(",").map((W) => W.trim());
19074
+ if (!B) return P;
19075
+ const ee = N.split(" ")[0];
19076
+ return `${B[0]}. ${ee}`;
19078
19077
  };
19079
19078
  U(s, (P) => {
19080
19079
  P === 2 && (_.value = !1, y.value = !0, v.value = null);
@@ -19083,7 +19082,7 @@ const MC = /* @__PURE__ */ Et(CC, [["render", EC], ["__scopeId", "data-v-b20b2a5
19083
19082
  if (!C.value) return b.value;
19084
19083
  const P = C.value.toLowerCase().trim();
19085
19084
  return b.value.filter(
19086
- (j) => j.name_full.toLowerCase().includes(P)
19085
+ (N) => N.name_full.toLowerCase().includes(P)
19087
19086
  );
19088
19087
  });
19089
19088
  return {
@@ -19095,8 +19094,8 @@ const MC = /* @__PURE__ */ Et(CC, [["render", EC], ["__scopeId", "data-v-b20b2a5
19095
19094
  templates: h,
19096
19095
  closeModal: ye,
19097
19096
  handleNext: _e,
19098
- filterButtonProps: N,
19099
- filtersTypes: D,
19097
+ filterButtonProps: z,
19098
+ filtersTypes: j,
19100
19099
  onFiltersTournamentsTops: K,
19101
19100
  tournamentsToFilter: Ei,
19102
19101
  onFiltersPersonalData: G,
@@ -19118,10 +19117,10 @@ const MC = /* @__PURE__ */ Et(CC, [["render", EC], ["__scopeId", "data-v-b20b2a5
19118
19117
  const P = {
19119
19118
  user_id: e.userId,
19120
19119
  id: e.listId,
19121
- players: Array.from(g.value).map((V) => {
19122
- const ee = b.value.find((W) => W.id === V);
19120
+ players: Array.from(g.value).map((B) => {
19121
+ const ee = b.value.find((W) => W.id === B);
19123
19122
  return {
19124
- player_id: V,
19123
+ player_id: B,
19125
19124
  name: ee.name_full,
19126
19125
  position: ee.position_id,
19127
19126
  dob: ee.dob,
@@ -19132,13 +19131,13 @@ const MC = /* @__PURE__ */ Et(CC, [["render", EC], ["__scopeId", "data-v-b20b2a5
19132
19131
  is_female: ee.is_female
19133
19132
  };
19134
19133
  })
19135
- }, j = await Ae.create({
19134
+ }, N = await Ae.create({
19136
19135
  headers: { Authorization: `${se}` }
19137
19136
  }).put(
19138
19137
  `https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${e.userId}/in-followed/${e.listId}/players`,
19139
19138
  P
19140
19139
  );
19141
- (j.status === 200 || j.status === 201) && (a("playlist-created", j.data), ye());
19140
+ (N.status === 200 || N.status === 201) && (a("playlist-created", N.data), ye());
19142
19141
  } catch (P) {
19143
19142
  console.error("Error al agregar jugadores a la lista:", P);
19144
19143
  }
@@ -19389,7 +19388,7 @@ function mx(e, a, t, i, s, l) {
19389
19388
  _: 1
19390
19389
  });
19391
19390
  }
19392
- const fx = /* @__PURE__ */ Et(VC, [["render", mx], ["__scopeId", "data-v-7f09e1c8"]]), gx = {
19391
+ const fx = /* @__PURE__ */ Et(VC, [["render", mx], ["__scopeId", "data-v-fd2550f7"]]), gx = {
19393
19392
  name: "ModalDeleteLista",
19394
19393
  data() {
19395
19394
  return {
@@ -19420,7 +19419,7 @@ function wx(e, a, t, i, s, l) {
19420
19419
  }, ["stop"]))
19421
19420
  }, [
19422
19421
  o("div", _x, [
19423
- a[3] || (a[3] = at('<div class="modal-header" data-v-8403b57a><img src="http://golstatsimages.blob.core.windows.net/playlist-icons/icon-delete-modal.png" alt="Eliminar playlist" class="icon-trash" data-v-8403b57a><span data-v-8403b57a>Eliminar Lista</span></div><div class="separator" data-v-8403b57a></div><p class="modal-message" data-v-8403b57a> ¿Estás seguro que deseas eliminar<br data-v-8403b57a> esta lista? Si lo haces no hay manera<br data-v-8403b57a> de recuperala. </p><div class="separator" data-v-8403b57a></div>', 4)),
19422
+ a[3] || (a[3] = at('<div class="modal-header" data-v-74c67ee0><img src="http://golstatsimages.blob.core.windows.net/playlist-icons/icon-delete-modal.png" alt="Eliminar playlist" class="icon-trash" data-v-74c67ee0><span data-v-74c67ee0>Eliminar Lista</span></div><div class="separator" data-v-74c67ee0></div><p class="modal-message" data-v-74c67ee0> ¿Estás seguro que deseas eliminar<br data-v-74c67ee0> esta lista? Si lo haces no hay manera<br data-v-74c67ee0> de recuperala. </p><div class="separator" data-v-74c67ee0></div>', 4)),
19424
19423
  o("div", Sx, [
19425
19424
  o("button", {
19426
19425
  class: "btn-cancel",
@@ -19436,7 +19435,7 @@ function wx(e, a, t, i, s, l) {
19436
19435
  ])
19437
19436
  ])) : S("", !0);
19438
19437
  }
19439
- const Cx = /* @__PURE__ */ Et(gx, [["render", wx], ["__scopeId", "data-v-8403b57a"]]), xx = {
19438
+ const Cx = /* @__PURE__ */ Et(gx, [["render", wx], ["__scopeId", "data-v-74c67ee0"]]), xx = {
19440
19439
  name: "ModalDeletePlayers",
19441
19440
  data() {
19442
19441
  return {
@@ -19470,7 +19469,7 @@ function kx(e, a, t, i, s, l) {
19470
19469
  }, ["stop"]))
19471
19470
  }, [
19472
19471
  o("div", Px, [
19473
- a[4] || (a[4] = at('<div class="modal-header" data-v-3d60eaf1><img src="http://golstatsimages.blob.core.windows.net/playlist-icons/icon-delete-modal.png" alt="Eliminar jugadores" class="icon-trash" data-v-3d60eaf1><span data-v-3d60eaf1>Eliminar jugadores</span></div><div class="separator" data-v-3d60eaf1></div><p class="modal-message" data-v-3d60eaf1> ¿Estás seguro que deseas eliminar a<br data-v-3d60eaf1> estos jugadores de la lista? </p><div class="separator" data-v-3d60eaf1></div>', 4)),
19472
+ a[4] || (a[4] = at('<div class="modal-header" data-v-44fad697><img src="http://golstatsimages.blob.core.windows.net/playlist-icons/icon-delete-modal.png" alt="Eliminar jugadores" class="icon-trash" data-v-44fad697><span data-v-44fad697>Eliminar jugadores</span></div><div class="separator" data-v-44fad697></div><p class="modal-message" data-v-44fad697> ¿Estás seguro que deseas eliminar a<br data-v-44fad697> estos jugadores de la lista? </p><div class="separator" data-v-44fad697></div>', 4)),
19474
19473
  o("div", Fx, [
19475
19474
  o("button", {
19476
19475
  class: "btn-cancel",
@@ -19486,7 +19485,7 @@ function kx(e, a, t, i, s, l) {
19486
19485
  ])
19487
19486
  ])) : S("", !0);
19488
19487
  }
19489
- const $x = /* @__PURE__ */ Et(xx, [["render", kx], ["__scopeId", "data-v-3d60eaf1"]]), Ax = {
19488
+ const $x = /* @__PURE__ */ Et(xx, [["render", kx], ["__scopeId", "data-v-44fad697"]]), Ax = {
19490
19489
  name: "ModalDeletePlayers",
19491
19490
  props: {
19492
19491
  modelValue: {
@@ -19511,7 +19510,7 @@ function Bx(e, a, t, i, s, l) {
19511
19510
  }, [
19512
19511
  o("div", Ex, [
19513
19512
  o("div", Mx, [
19514
- a[3] || (a[3] = at('<div class="modal-header" data-v-e9a8dd88><img src="http://golstatsimages.blob.core.windows.net/playlist-icons/icon-delete-modal.png" alt="Eliminar jugadores" class="icon-trash" data-v-e9a8dd88><span data-v-e9a8dd88>Eliminar jugadores</span></div><div class="separator" data-v-e9a8dd88></div><p class="modal-message" data-v-e9a8dd88> ¿Estás seguro que deseas eliminar a<br data-v-e9a8dd88> estos jugadores de la lista? </p><div class="separator" data-v-e9a8dd88></div>', 4)),
19513
+ a[3] || (a[3] = at('<div class="modal-header" data-v-f93914a4><img src="http://golstatsimages.blob.core.windows.net/playlist-icons/icon-delete-modal.png" alt="Eliminar jugadores" class="icon-trash" data-v-f93914a4><span data-v-f93914a4>Eliminar jugadores</span></div><div class="separator" data-v-f93914a4></div><p class="modal-message" data-v-f93914a4> ¿Estás seguro que deseas eliminar a<br data-v-f93914a4> estos jugadores de la lista? </p><div class="separator" data-v-f93914a4></div>', 4)),
19515
19514
  o("div", Vx, [
19516
19515
  o("button", {
19517
19516
  class: "btn-cancel",
@@ -19527,7 +19526,7 @@ function Bx(e, a, t, i, s, l) {
19527
19526
  ])
19528
19527
  ])) : S("", !0);
19529
19528
  }
19530
- const Lx = /* @__PURE__ */ Et(Ax, [["render", Bx], ["__scopeId", "data-v-e9a8dd88"]]);
19529
+ const Lx = /* @__PURE__ */ Et(Ax, [["render", Bx], ["__scopeId", "data-v-f93914a4"]]);
19531
19530
  function Rx(e) {
19532
19531
  const a = x({ width: 0, height: 0 });
19533
19532
  function t() {
@@ -20078,33 +20077,33 @@ const Kl = {
20078
20077
  }
20079
20078
  }, un = () => {
20080
20079
  fe((e) => ({
20081
- "33c672ea": e.smallMobileCompact ? "12px" : "14px",
20082
- "05a39a64": (e.isMobileLayout, "8px"),
20083
- fb2c4d18: e.isMobileLayout ? "0" : "8px",
20084
- "7246918f": e.smallMobileCompact ? "0 5px" : "0 24px",
20085
- "1a74e062": e.smallMobileCompact ? "24px" : "32px",
20086
- e7f442a4: e.smallMobileCompact ? "4px" : "24px",
20087
- "24425a1a": e.smallMobileCompact ? "16px" : "20px",
20088
- "10ab09a2": e.smallMobileCompact ? "32px" : "40px",
20089
- e6c2d1d4: e.smallMobileCompact ? "128px" : "160px",
20090
- 78940972: e.isMobileLayout ? "13px" : "14px",
20091
- "7a79e4f0": e.smallMobileCompact ? "5px" : "12px",
20092
- "2883cdd8": e.smallMobileCompact ? "4px" : "0px",
20093
- a1b34e8c: e.searchCompact ? e.isMobileLayout ? e.smallMobileCompact ? "calc(100% - 46px)" : "calc(100% - 44px)" : "88%" : "93%",
20094
- "55a1659a": e.isMobileLayout ? "-10px -15px -15px -15px" : "-15px -15px",
20095
- "2619a92c": e.tooltipY + "px",
20096
- f9c4af68: e.searchCompact ? e.searchCloseCompact ? e.isMobileLayout ? e.smallMobileCompact ? "2%" : "1%" : "2.5%" : "5%" : "1%",
20097
- "6b5780fa": e.isMobileLayout ? "0" : "16px",
20098
- d2a2d31a: e.isMobileLayout ? "-12px 0px 8px 0px" : "-15px -15px 15px -15px",
20099
- "8060d3dc": e.isMobileLayout ? "7px" : "16px",
20100
- "623ae98c": (e.smallMobileCompact, "column"),
20101
- "23f28218": e.isMobileLayout ? "100%" : "150px",
20102
- "56bf7d2a": e.smallMobileCompact ? "10px" : "12px",
20103
- "38c0dc6a": e.isMobileLayout ? "center" : "right",
20104
- "6b22c5ee": e.isMobileLayout ? "0" : "32px",
20105
- "6b012278": e.isMobileLayout ? "0" : "48px",
20106
- "99127e84": e.isMobileLayout && !e.smallMobileCompact ? "flex" : "none",
20107
- "7deb0950": e.isMobileLayout ? "auto" : "32px"
20080
+ "84dcfc6a": e.smallMobileCompact ? "12px" : "14px",
20081
+ "65d0b3f6": (e.isMobileLayout, "8px"),
20082
+ c6034d56: e.isMobileLayout ? "0" : "8px",
20083
+ d141e9e4: e.smallMobileCompact ? "0 5px" : "0 24px",
20084
+ "7c909eb0": e.smallMobileCompact ? "24px" : "32px",
20085
+ "251cefad": e.smallMobileCompact ? "4px" : "24px",
20086
+ "77a9e1d4": e.smallMobileCompact ? "16px" : "20px",
20087
+ fd14ebe0: e.smallMobileCompact ? "32px" : "40px",
20088
+ "603d1c92": e.smallMobileCompact ? "128px" : "160px",
20089
+ "7e55a2a8": e.isMobileLayout ? "13px" : "14px",
20090
+ "1390f5ef": e.smallMobileCompact ? "5px" : "12px",
20091
+ "7d116c35": e.smallMobileCompact ? "4px" : "0px",
20092
+ e84a710e: e.searchCompact ? e.isMobileLayout ? e.smallMobileCompact ? "calc(100% - 46px)" : "calc(100% - 44px)" : "88%" : "93%",
20093
+ "10b38d54": e.isMobileLayout ? "-10px -15px -15px -15px" : "-15px -15px",
20094
+ "450771e9": e.tooltipY + "px",
20095
+ b4da6c26: e.searchCompact ? e.searchCloseCompact ? e.isMobileLayout ? e.smallMobileCompact ? "2%" : "1%" : "2.5%" : "5%" : "1%",
20096
+ "024fbbc2": e.isMobileLayout ? "0" : "16px",
20097
+ "5c2242f2": e.isMobileLayout ? "-12px 0px 8px 0px" : "-15px -15px 15px -15px",
20098
+ "324602de": e.isMobileLayout ? "7px" : "16px",
20099
+ "3f9cc026": (e.smallMobileCompact, "column"),
20100
+ f147f89a: e.isMobileLayout ? "100%" : "150px",
20101
+ "3eeae7ea": e.smallMobileCompact ? "10px" : "12px",
20102
+ "7cb6a2ca": e.isMobileLayout ? "center" : "right",
20103
+ "026a1948": e.isMobileLayout ? "0" : "32px",
20104
+ "027aeb03": e.isMobileLayout ? "0" : "48px",
20105
+ "127b4786": e.isMobileLayout && !e.smallMobileCompact ? "flex" : "none",
20106
+ "388ab0b1": e.isMobileLayout ? "auto" : "32px"
20108
20107
  }));
20109
20108
  }, pn = Kl.setup;
20110
20109
  Kl.setup = pn ? (e, a) => (un(), pn(e, a)) : un;
@@ -20473,7 +20472,7 @@ function VT(e, a, t, i, s, l) {
20473
20472
  class: "tooltip-item",
20474
20473
  onClick: (v) => l.editarLista(p)
20475
20474
  }, a[19] || (a[19] = [
20476
- at('<svg width="16" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-b8c722c0><g clip-path="url(#clip0_3214_107704)" data-v-b8c722c0><path d="M8.25 3H3C2.60218 3 2.22064 3.15804 1.93934 3.43934C1.65804 3.72064 1.5 4.10218 1.5 4.5V15C1.5 15.3978 1.65804 15.7794 1.93934 16.0607C2.22064 16.342 2.60218 16.5 3 16.5H13.5C13.8978 16.5 14.2794 16.342 14.5607 16.0607C14.842 15.7794 15 15.3978 15 15V9.75" stroke="#CBEE6B" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-v-b8c722c0></path><path d="M13.875 1.87493C14.1734 1.57656 14.578 1.40894 15 1.40894C15.422 1.40894 15.8266 1.57656 16.125 1.87493C16.4234 2.17329 16.591 2.57797 16.591 2.99993C16.591 3.42188 16.4234 3.82656 16.125 4.12493L9 11.2499L6 11.9999L6.75 8.99993L13.875 1.87493Z" stroke="#CBEE6B" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-v-b8c722c0></path></g><defs data-v-b8c722c0><clipPath id="clip0_3214_107704" data-v-b8c722c0><rect width="18" height="18" fill="#CBEE6B" data-v-b8c722c0></rect></clipPath></defs></svg> Editar lista ', 2)
20475
+ at('<svg width="16" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-11021c59><g clip-path="url(#clip0_3214_107704)" data-v-11021c59><path d="M8.25 3H3C2.60218 3 2.22064 3.15804 1.93934 3.43934C1.65804 3.72064 1.5 4.10218 1.5 4.5V15C1.5 15.3978 1.65804 15.7794 1.93934 16.0607C2.22064 16.342 2.60218 16.5 3 16.5H13.5C13.8978 16.5 14.2794 16.342 14.5607 16.0607C14.842 15.7794 15 15.3978 15 15V9.75" stroke="#CBEE6B" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-v-11021c59></path><path d="M13.875 1.87493C14.1734 1.57656 14.578 1.40894 15 1.40894C15.422 1.40894 15.8266 1.57656 16.125 1.87493C16.4234 2.17329 16.591 2.57797 16.591 2.99993C16.591 3.42188 16.4234 3.82656 16.125 4.12493L9 11.2499L6 11.9999L6.75 8.99993L13.875 1.87493Z" stroke="#CBEE6B" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-v-11021c59></path></g><defs data-v-11021c59><clipPath id="clip0_3214_107704" data-v-11021c59><rect width="18" height="18" fill="#CBEE6B" data-v-11021c59></rect></clipPath></defs></svg> Editar lista ', 2)
20477
20476
  ]), 8, xT),
20478
20477
  o("div", {
20479
20478
  class: "tooltip-item",
@@ -20549,7 +20548,7 @@ function VT(e, a, t, i, s, l) {
20549
20548
  class: "tooltip-item",
20550
20549
  onClick: (v) => l.compararListas(p)
20551
20550
  }, a[22] || (a[22] = [
20552
- at('<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-b8c722c0><g clip-path="url(#clip0_2936_393289)" data-v-b8c722c0><mask id="mask0_2936_393289" style="mask-type:luminance;" maskUnits="userSpaceOnUse" x="0" y="0" width="18" height="18" data-v-b8c722c0><path d="M0 0H18V18H0V0Z" fill="#CBEE6B" data-v-b8c722c0></path></mask><g mask="url(#mask0_2936_393289)" data-v-b8c722c0><path fill-rule="evenodd" clip-rule="evenodd" d="M4.5 1.28571C2.7248 1.28571 1.28571 2.7248 1.28571 4.5V13.5C1.28571 15.2752 2.7248 16.7143 4.5 16.7143H13.5C15.2752 16.7143 16.7143 15.2752 16.7143 13.5V4.5C16.7143 2.7248 15.2752 1.28571 13.5 1.28571H4.5ZM0 4.5C0 2.01471 2.01471 0 4.5 0H13.5C15.9853 0 18 2.01471 18 4.5V13.5C18 15.9853 15.9853 18 13.5 18H4.5C2.01471 18 0 15.9853 0 13.5V4.5Z" fill="#CBEE6B" data-v-b8c722c0></path><path fill-rule="evenodd" clip-rule="evenodd" d="M10.9285 4.5C11.2835 4.5 11.5714 4.78782 11.5714 5.14286V11.3051L13.0453 9.83115C13.2964 9.58009 13.7035 9.58009 13.9546 9.83115C14.2055 10.0822 14.2055 10.4892 13.9546 10.7403L11.3831 13.3118C11.1992 13.4956 10.9227 13.5505 10.6825 13.451C10.4423 13.3515 10.2856 13.1171 10.2856 12.8571V5.14286C10.2856 4.78782 10.5735 4.5 10.9285 4.5Z" fill="#CBEE6B" data-v-b8c722c0></path><path fill-rule="evenodd" clip-rule="evenodd" d="M7.31723 4.54895C7.55745 4.64845 7.71408 4.88287 7.71408 5.14288V12.8572C7.71408 13.2121 7.42626 13.5 7.07122 13.5C6.71619 13.5 6.42837 13.2121 6.42837 12.8572V6.69487L4.95436 8.16887C4.70331 8.41993 4.29628 8.41993 4.04523 8.16887C3.79417 7.91782 3.79417 7.51079 4.04523 7.25974L6.61666 4.68831C6.80052 4.50445 7.07701 4.44945 7.31723 4.54895Z" fill="#CBEE6B" data-v-b8c722c0></path></g></g><defs data-v-b8c722c0><clipPath id="clip0_2936_393289" data-v-b8c722c0><rect width="18" height="18" fill="#CBEE6B" data-v-b8c722c0></rect></clipPath></defs></svg> Comparar ', 2)
20551
+ at('<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-11021c59><g clip-path="url(#clip0_2936_393289)" data-v-11021c59><mask id="mask0_2936_393289" style="mask-type:luminance;" maskUnits="userSpaceOnUse" x="0" y="0" width="18" height="18" data-v-11021c59><path d="M0 0H18V18H0V0Z" fill="#CBEE6B" data-v-11021c59></path></mask><g mask="url(#mask0_2936_393289)" data-v-11021c59><path fill-rule="evenodd" clip-rule="evenodd" d="M4.5 1.28571C2.7248 1.28571 1.28571 2.7248 1.28571 4.5V13.5C1.28571 15.2752 2.7248 16.7143 4.5 16.7143H13.5C15.2752 16.7143 16.7143 15.2752 16.7143 13.5V4.5C16.7143 2.7248 15.2752 1.28571 13.5 1.28571H4.5ZM0 4.5C0 2.01471 2.01471 0 4.5 0H13.5C15.9853 0 18 2.01471 18 4.5V13.5C18 15.9853 15.9853 18 13.5 18H4.5C2.01471 18 0 15.9853 0 13.5V4.5Z" fill="#CBEE6B" data-v-11021c59></path><path fill-rule="evenodd" clip-rule="evenodd" d="M10.9285 4.5C11.2835 4.5 11.5714 4.78782 11.5714 5.14286V11.3051L13.0453 9.83115C13.2964 9.58009 13.7035 9.58009 13.9546 9.83115C14.2055 10.0822 14.2055 10.4892 13.9546 10.7403L11.3831 13.3118C11.1992 13.4956 10.9227 13.5505 10.6825 13.451C10.4423 13.3515 10.2856 13.1171 10.2856 12.8571V5.14286C10.2856 4.78782 10.5735 4.5 10.9285 4.5Z" fill="#CBEE6B" data-v-11021c59></path><path fill-rule="evenodd" clip-rule="evenodd" d="M7.31723 4.54895C7.55745 4.64845 7.71408 4.88287 7.71408 5.14288V12.8572C7.71408 13.2121 7.42626 13.5 7.07122 13.5C6.71619 13.5 6.42837 13.2121 6.42837 12.8572V6.69487L4.95436 8.16887C4.70331 8.41993 4.29628 8.41993 4.04523 8.16887C3.79417 7.91782 3.79417 7.51079 4.04523 7.25974L6.61666 4.68831C6.80052 4.50445 7.07701 4.44945 7.31723 4.54895Z" fill="#CBEE6B" data-v-11021c59></path></g></g><defs data-v-11021c59><clipPath id="clip0_2936_393289" data-v-11021c59><rect width="18" height="18" fill="#CBEE6B" data-v-11021c59></rect></clipPath></defs></svg> Comparar ', 2)
20553
20552
  ]), 8, FT),
20554
20553
  o("div", {
20555
20554
  class: "tooltip-item delete",
@@ -20627,7 +20626,7 @@ function VT(e, a, t, i, s, l) {
20627
20626
  ])
20628
20627
  ], 512);
20629
20628
  }
20630
- const BT = /* @__PURE__ */ Et(Kl, [["render", VT], ["__scopeId", "data-v-b8c722c0"]]), LT = { class: "ultima-convocatoria" }, RT = {
20629
+ const BT = /* @__PURE__ */ Et(Kl, [["render", VT], ["__scopeId", "data-v-11021c59"]]), LT = { class: "ultima-convocatoria" }, RT = {
20631
20630
  __name: "EnSeguimiento",
20632
20631
  props: {
20633
20632
  userId: {
@@ -26695,14 +26694,14 @@ var YB = ei({
26695
26694
  })));
26696
26695
  }
26697
26696
  Le(() => {
26698
- wl(() => me()), setTimeout(() => me(), 1e3), he(), j(), window.addEventListener("resize", de, { passive: !0 }), t("init");
26697
+ wl(() => me()), setTimeout(() => me(), 1e3), he(), N(), window.addEventListener("resize", de, { passive: !0 }), t("init");
26699
26698
  }), It(() => {
26700
26699
  $ && clearTimeout($), C && clearInterval(C), window.removeEventListener("resize", de, {
26701
26700
  passive: !0
26702
26701
  });
26703
26702
  });
26704
26703
  let _e = !1;
26705
- const Q = { x: 0, y: 0 }, N = { x: 0, y: 0 }, K = Ja({ x: 0, y: 0 }), G = x(!1), pe = x(!1), Se = () => {
26704
+ const Q = { x: 0, y: 0 }, z = { x: 0, y: 0 }, K = Ja({ x: 0, y: 0 }), G = x(!1), pe = x(!1), Se = () => {
26706
26705
  G.value = !0;
26707
26706
  }, Ie = () => {
26708
26707
  G.value = !1;
@@ -26711,8 +26710,8 @@ var YB = ei({
26711
26710
  ["INPUT", "TEXTAREA", "SELECT"].includes(we.target.tagName) || (_e = we.type === "touchstart", _e || we.preventDefault(), !(!_e && we.button !== 0 || ee.value) && (Q.x = _e ? we.touches[0].clientX : we.clientX, Q.y = _e ? we.touches[0].clientY : we.clientY, document.addEventListener(_e ? "touchmove" : "mousemove", F, !0), document.addEventListener(_e ? "touchend" : "mouseup", P, !0)));
26712
26711
  }
26713
26712
  const F = JB((we) => {
26714
- pe.value = !0, N.x = _e ? we.touches[0].clientX : we.clientX, N.y = _e ? we.touches[0].clientY : we.clientY;
26715
- const Ze = N.x - Q.x, Je = N.y - Q.y;
26713
+ pe.value = !0, z.x = _e ? we.touches[0].clientX : we.clientX, z.y = _e ? we.touches[0].clientY : we.clientY;
26714
+ const Ze = z.x - Q.x, Je = z.y - Q.y;
26716
26715
  K.y = Je, K.x = Ze;
26717
26716
  }, h.throttle);
26718
26717
  function P() {
@@ -26725,13 +26724,13 @@ var YB = ei({
26725
26724
  }
26726
26725
  W(g.value - Je), K.x = 0, K.y = 0, pe.value = !1, document.removeEventListener(_e ? "touchmove" : "mousemove", F, !0), document.removeEventListener(_e ? "touchend" : "mouseup", P, !0);
26727
26726
  }
26728
- function j() {
26727
+ function N() {
26729
26728
  !h.autoplay || h.autoplay <= 0 || (C = setInterval(() => {
26730
26729
  h.pauseAutoplayOnHover && G.value || oe();
26731
26730
  }, h.autoplay));
26732
26731
  }
26733
- function V() {
26734
- C && (clearInterval(C), C = null), j();
26732
+ function B() {
26733
+ C && (clearInterval(C), C = null), N();
26735
26734
  }
26736
26735
  const ee = x(!1);
26737
26736
  function W(we) {
@@ -26761,7 +26760,7 @@ var YB = ei({
26761
26760
  currentSlideIndex: g.value,
26762
26761
  prevSlideIndex: p.value,
26763
26762
  slidesCount: u.value
26764
- }), ee.value = !1, V();
26763
+ }), ee.value = !1, B();
26765
26764
  }, h.transition));
26766
26765
  }
26767
26766
  function oe() {
@@ -26787,11 +26786,11 @@ var YB = ei({
26787
26786
  width: "100%"
26788
26787
  };
26789
26788
  });
26790
- function B() {
26791
- se(), he(), ye(), me(), V();
26789
+ function V() {
26790
+ se(), he(), ye(), me(), B();
26792
26791
  }
26793
26792
  Object.keys(Hn).forEach((we) => {
26794
- ["modelValue"].includes(we) || U(() => e[we], B);
26793
+ ["modelValue"].includes(we) || U(() => e[we], V);
26795
26794
  }), U(() => e.modelValue, (we) => {
26796
26795
  we !== g.value && W(Number(we));
26797
26796
  }), U(u, ye), t("before-init"), se();
@@ -26812,7 +26811,7 @@ var YB = ei({
26812
26811
  updateSlidesData: ye,
26813
26812
  updateSlideWidth: me,
26814
26813
  initDefaultConfigs: se,
26815
- restartCarousel: B,
26814
+ restartCarousel: V,
26816
26815
  slideTo: W,
26817
26816
  next: oe,
26818
26817
  prev: X,
@@ -29905,7 +29904,7 @@ const So = /* @__PURE__ */ tR(_o, [["render", dR], ["__scopeId", "data-v-8a86dfa
29905
29904
  })
29906
29905
  ]));
29907
29906
  }
29908
- }, DO = /* @__PURE__ */ Ee(zO, [["__scopeId", "data-v-f2d7cddf"]]), z = {
29907
+ }, DO = /* @__PURE__ */ Ee(zO, [["__scopeId", "data-v-f2d7cddf"]]), D = {
29909
29908
  PLAYS: "plays",
29910
29909
  PRODUCTIVITY: "productivity",
29911
29910
  FIELD: "field",
@@ -29968,7 +29967,7 @@ const So = /* @__PURE__ */ tR(_o, [["render", dR], ["__scopeId", "data-v-8a86dfa
29968
29967
  emits: ["change-filters-selected", "update:filters"],
29969
29968
  setup(e, { emit: a }) {
29970
29969
  const t = e, i = L(() => ({
29971
- "--grid-template-columns": t.type === z.PLAYS_TYPES ? "1fr min-content" : "min-content 1fr min-content",
29970
+ "--grid-template-columns": t.type === D.PLAYS_TYPES ? "1fr min-content" : "min-content 1fr min-content",
29972
29971
  "--svg-width": `${t.svgWidth}px`,
29973
29972
  "--svg-height": `${t.svgHeight}px`
29974
29973
  }));
@@ -29983,7 +29982,7 @@ const So = /* @__PURE__ */ tR(_o, [["render", dR], ["__scopeId", "data-v-8a86dfa
29983
29982
  function s(l) {
29984
29983
  l.isSelected || (t.categories.forEach((r) => {
29985
29984
  r.isSelected = !1;
29986
- }), l.isSelected = !0, t.type === z.GOLSTATS && a("change-filters-selected", l.value));
29985
+ }), l.isSelected = !0, t.type === D.GOLSTATS && a("change-filters-selected", l.value));
29987
29986
  }
29988
29987
  return (l, r) => (n(), d("div", {
29989
29988
  class: "plays-golstats",
@@ -29991,13 +29990,13 @@ const So = /* @__PURE__ */ tR(_o, [["render", dR], ["__scopeId", "data-v-8a86dfa
29991
29990
  }, [
29992
29991
  T(Nu, { height: e.height }, {
29993
29992
  default: ne(() => [
29994
- e.type === R(z).PLAYS_TYPES ? (n(), d("div", jO, " Elige un tipo de jugada para filtrar: ")) : S("", !0),
29993
+ e.type === R(D).PLAYS_TYPES ? (n(), d("div", jO, " Elige un tipo de jugada para filtrar: ")) : S("", !0),
29995
29994
  (n(!0), d(A, null, ae(e.categories, (c, u) => (n(), d("div", {
29996
29995
  key: `k${u}`,
29997
29996
  class: "plays-golstats__item",
29998
29997
  onClick: (h) => s(c)
29999
29998
  }, [
30000
- e.type === R(z).GOLSTATS ? (n(), d("div", UO, w(c.value), 1)) : S("", !0),
29999
+ e.type === R(D).GOLSTATS ? (n(), d("div", UO, w(c.value), 1)) : S("", !0),
30001
30000
  o("div", GO, w(c.name), 1),
30002
30001
  o("div", HO, [
30003
30002
  le((n(), d("svg", JO, [
@@ -34768,37 +34767,37 @@ const xW = {
34768
34767
  }), b = x(Jt), m = x(""), g = x(""), p = x(
34769
34768
  r.value.availableYears[r.value.availableYears.length - 1]
34770
34769
  ), v = x(0), y = L(() => {
34771
- const N = r.value.nationalities ? [...r.value.nationalities] : [];
34772
- i.isSeleccion && N.forEach((G) => {
34770
+ const z = r.value.nationalities ? [...r.value.nationalities] : [];
34771
+ i.isSeleccion && z.forEach((G) => {
34773
34772
  G.isSelected = G.id === 138;
34774
34773
  });
34775
- const K = N[0];
34776
- return (!K || K.id !== 0) && N.unshift(s), N;
34774
+ const K = z[0];
34775
+ return (!K || K.id !== 0) && z.unshift(s), z;
34777
34776
  }), _ = L(() => {
34778
- let N = (i.filter && i.filter.positions ? i.filter.positions : r.value.positions) ? [...r.value.positions] : [];
34779
- const K = N[0];
34780
- return (!K || K.id !== 0) && N.unshift(l), N.sort((G, pe) => G.id - pe.id), N;
34777
+ let z = (i.filter && i.filter.positions ? i.filter.positions : r.value.positions) ? [...r.value.positions] : [];
34778
+ const K = z[0];
34779
+ return (!K || K.id !== 0) && z.unshift(l), z.sort((G, pe) => G.id - pe.id), z;
34781
34780
  }), C = L(() => i.season && i.season.tournamentId && m1.has(i.season.tournamentId) || i.filters && i.filters.isEligibilitySwitchVisible);
34782
34781
  U(
34783
34782
  y,
34784
- (N) => {
34785
- const K = N.reduce((G, pe, Se) => (Se !== 0 && pe.isSelected && G++, G), 0);
34786
- K === y.value.length - 1 && (N[0].isSelected = !0), N[0] && N[0].isSelected ? m.value = "Todas las nacionalidades" : m.value = `${K} seleccionadas`, ye();
34783
+ (z) => {
34784
+ const K = z.reduce((G, pe, Se) => (Se !== 0 && pe.isSelected && G++, G), 0);
34785
+ K === y.value.length - 1 && (z[0].isSelected = !0), z[0] && z[0].isSelected ? m.value = "Todas las nacionalidades" : m.value = `${K} seleccionadas`, ye();
34787
34786
  },
34788
34787
  { immediate: !0, deep: !0 }
34789
34788
  ), U(
34790
34789
  _,
34791
- (N) => {
34792
- const K = N.reduce((G, pe, Se) => (Se !== 0 && pe.isSelected && G++, G), 0);
34793
- K === _.value.length - 1 && (N[0].isSelected = !0), N[0] && N[0].isSelected ? g.value = "Todas las posiciones" : g.value = `${K} seleccionadas`, ye();
34790
+ (z) => {
34791
+ const K = z.reduce((G, pe, Se) => (Se !== 0 && pe.isSelected && G++, G), 0);
34792
+ K === _.value.length - 1 && (z[0].isSelected = !0), z[0] && z[0].isSelected ? g.value = "Todas las posiciones" : g.value = `${K} seleccionadas`, ye();
34794
34793
  },
34795
34794
  { immediate: !0, deep: !0 }
34796
34795
  ), U(
34797
34796
  () => i.filters,
34798
- (N) => {
34799
- if (N && N.availableYears) {
34800
- const K = !Number.isNaN(Number(N.selectedYear));
34801
- r.value = N, u.value = r.value.selectedYear && K ? 1 : 0, p.value = K ? r.value.selectedYear : r.value.availableYears[0], h.value.min = r.value.minAge, h.value.max = r.value.maxAge, l.isSelected = N.positions.every((G) => G.isSelected), ye();
34797
+ (z) => {
34798
+ if (z && z.availableYears) {
34799
+ const K = !Number.isNaN(Number(z.selectedYear));
34800
+ r.value = z, u.value = r.value.selectedYear && K ? 1 : 0, p.value = K ? r.value.selectedYear : r.value.availableYears[0], h.value.min = r.value.minAge, h.value.max = r.value.maxAge, l.isSelected = z.positions.every((G) => G.isSelected), ye();
34802
34801
  }
34803
34802
  },
34804
34803
  { immediate: !0, deep: !0 }
@@ -34809,17 +34808,17 @@ const xW = {
34809
34808
  }
34810
34809
  ), U(
34811
34810
  () => i.season,
34812
- (N) => {
34813
- N && N.id !== v.value && !i.awaitForFilters && (v.value = N.id, $(N));
34811
+ (z) => {
34812
+ z && z.id !== v.value && !i.awaitForFilters && (v.value = z.id, $(z));
34814
34813
  },
34815
34814
  { immediate: !0, deep: !1 }
34816
34815
  );
34817
- async function $(N) {
34816
+ async function $(z) {
34818
34817
  try {
34819
- if (N && N.id) {
34820
- const K = /* @__PURE__ */ new Set(), G = await he(N.id), pe = /* @__PURE__ */ new Date(), Se = [], Ie = /* @__PURE__ */ new Map(), O = /* @__PURE__ */ new Map();
34818
+ if (z && z.id) {
34819
+ const K = /* @__PURE__ */ new Set(), G = await he(z.id), pe = /* @__PURE__ */ new Date(), Se = [], Ie = /* @__PURE__ */ new Map(), O = /* @__PURE__ */ new Map();
34821
34820
  G.forEach((F) => {
34822
- const P = new Date(F.dob), j = h1(P), V = y1({
34821
+ const P = new Date(F.dob), N = h1(P), B = y1({
34823
34822
  start: P,
34824
34823
  end: pe
34825
34824
  });
@@ -34831,47 +34830,47 @@ const xW = {
34831
34830
  id: F.position_id,
34832
34831
  isSelected: !0,
34833
34832
  name: p1[`${F.position_id}`]
34834
- }), K.add(j), Se.push(V.years);
34833
+ }), K.add(N), Se.push(B.years);
34835
34834
  }), r.value.minAge = Math.min(...Se), r.value.maxAge = Math.max(...Se), r.value.availableYears = [...K].sort((F, P) => P - F), p.value = r.value.availableYears[0], r.value.nationalities = [...Ie.values()], r.value.positions = [...O.values()], h.value.min = r.value.minAge, h.value.max = r.value.maxAge;
34836
34835
  }
34837
34836
  } catch (K) {
34838
34837
  throw new Error(K);
34839
34838
  }
34840
34839
  }
34841
- function se(N = null) {
34842
- const K = !N || N === Fe.All;
34843
- (K || N === Fe.NATIONALITY) && y.value.forEach((G) => {
34840
+ function se(z = null) {
34841
+ const K = !z || z === Fe.All;
34842
+ (K || z === Fe.NATIONALITY) && y.value.forEach((G) => {
34844
34843
  G.isSelected = !0;
34845
- }), (K || N === Fe.ELIGIBILITY) && (r.value.isEligibilitySelected = !1), (K || N === Fe.POSITION) && _.value.forEach((G) => {
34844
+ }), (K || z === Fe.ELIGIBILITY) && (r.value.isEligibilitySelected = !1), (K || z === Fe.POSITION) && _.value.forEach((G) => {
34846
34845
  G.isSelected = !0;
34847
- }), (K || N === Fe.AGE_RANGE) && (h.value.min = r.value.minAge, h.value.max = r.value.maxAge, u.value = 0), (K || N === Fe.YEAR) && (p.value = i.isScouting ? r.value.availableYears[r.value.availableYears.length - 1] : r.value.availableYears[0], u.value = 0), ye();
34846
+ }), (K || z === Fe.AGE_RANGE) && (h.value.min = r.value.minAge, h.value.max = r.value.maxAge, u.value = 0), (K || z === Fe.YEAR) && (p.value = i.isScouting ? r.value.availableYears[r.value.availableYears.length - 1] : r.value.availableYears[0], u.value = 0), ye();
34848
34847
  }
34849
- async function he(N) {
34848
+ async function he(z) {
34850
34849
  try {
34851
34850
  const K = {
34852
34851
  Authorization: localStorage.getItem("user_token") || i.token
34853
- }, G = {}.API_PLAYERS_BY_SEASONS ? {}.API_PLAYERS_BY_SEASONS : GW, pe = await sa.get(G + N, { headers: K });
34852
+ }, G = {}.API_PLAYERS_BY_SEASONS ? {}.API_PLAYERS_BY_SEASONS : GW, pe = await sa.get(G + z, { headers: K });
34854
34853
  return pe.data ? pe.data.players : [];
34855
34854
  } catch (K) {
34856
34855
  return Promise.reject(K);
34857
34856
  }
34858
34857
  }
34859
- function H(N) {
34860
- u.value = N.index, i.filters && i.filters.availableYears && N.index === 0 && (i.filters.selectedYear = "Sin límite");
34858
+ function H(z) {
34859
+ u.value = z.index, i.filters && i.filters.availableYears && z.index === 0 && (i.filters.selectedYear = "Sin límite");
34861
34860
  }
34862
- function de(N) {
34863
- h.value.min = N.minValue, h.value.max = N.maxValue, ye();
34861
+ function de(z) {
34862
+ h.value.min = z.minValue, h.value.max = z.maxValue, ye();
34864
34863
  }
34865
- function me(N, K) {
34864
+ function me(z, K) {
34866
34865
  K.id === 0 ? y.value.forEach((G) => {
34867
- G.isSelected = N;
34868
- }) : (K.isSelected = N, y.value[0].isSelected = y.value.every(
34866
+ G.isSelected = z;
34867
+ }) : (K.isSelected = z, y.value[0].isSelected = y.value.every(
34869
34868
  (G, pe) => pe === 0 ? !0 : G.isSelected
34870
34869
  ));
34871
34870
  }
34872
34871
  function ye() {
34873
- const N = u.value === 0, K = {};
34874
- N ? (K.ageByRange = h.value, K.ageLimits = {
34872
+ const z = u.value === 0, K = {};
34873
+ z ? (K.ageByRange = h.value, K.ageLimits = {
34875
34874
  min: r.value.minAge,
34876
34875
  max: r.value.maxAge
34877
34876
  }) : K.year = p.value, r.value.isEligibilitySelected ? K.eligibility = [...r.value.eligibility] : K.nationalities = y.value.reduce(
@@ -34879,17 +34878,17 @@ const xW = {
34879
34878
  []
34880
34879
  ), K.positions = _.value.reduce((G, pe, Se) => (Se !== 0 && G.push({ ...pe }), G), []), t("update:filters", K);
34881
34880
  }
34882
- function _e(N, K) {
34881
+ function _e(z, K) {
34883
34882
  K.id === 0 ? _.value.forEach((G) => {
34884
- G.isSelected = N;
34885
- }) : (K.isSelected = N, _.value[0].isSelected = _.value.every((G, pe) => pe === 0 ? !0 : G.isSelected));
34883
+ G.isSelected = z;
34884
+ }) : (K.isSelected = z, _.value[0].isSelected = _.value.every((G, pe) => pe === 0 ? !0 : G.isSelected));
34886
34885
  }
34887
- function Q(N) {
34888
- p.value = N, i.filters && (i.filters.selectedYear = N), ye();
34886
+ function Q(z) {
34887
+ p.value = z, i.filters && (i.filters.selectedYear = z), ye();
34889
34888
  }
34890
34889
  return a({
34891
34890
  onClearFilters: se
34892
- }), (N, K) => (n(), d("div", TW, [
34891
+ }), (z, K) => (n(), d("div", TW, [
34893
34892
  o("div", PW, [
34894
34893
  o("div", FW, [
34895
34894
  T(wD, {
@@ -35606,11 +35605,11 @@ const vU = { class: "dropdown" }, bU = { class: "selected-item" }, _U = {
35606
35605
  },
35607
35606
  setup(e) {
35608
35607
  const a = e, t = va(
35609
- () => import("./FilterSubcategories-500fb769-a98eb58d-DTiaABN3.js")
35608
+ () => import("./FilterSubcategories-500fb769-342a9fbc-CRk9IKio.js")
35610
35609
  ), i = va(
35611
- () => import("./FilterConditions-9f3e95e9-f6cafb1d-DEtA8Cth.js")
35610
+ () => import("./FilterConditions-9f3e95e9-36d26def-B5FlAfrS.js")
35612
35611
  ), s = va(
35613
- () => import("./FilterField-356ac22f-c256b754-p2mzQhwP.js")
35612
+ () => import("./FilterField-356ac22f-1372084a-D9eyuWH_.js")
35614
35613
  ), l = [
35615
35614
  {
35616
35615
  name: "Sub categorías",
@@ -36191,31 +36190,31 @@ const vU = { class: "dropdown" }, bU = { class: "selected-item" }, _U = {
36191
36190
  try {
36192
36191
  const F = {
36193
36192
  Authorization: js() || t.token
36194
- }, P = {}.API_TOURNAMENTS || t.tournamentsUrl, j = await sa.get(P, { headers: F });
36195
- return j.data ? j.data.map((V) => ({
36196
- ...V.tournament,
36197
- seasons: V.seasons
36193
+ }, P = {}.API_TOURNAMENTS || t.tournamentsUrl, N = await sa.get(P, { headers: F });
36194
+ return N.data ? N.data.map((B) => ({
36195
+ ...B.tournament,
36196
+ seasons: B.seasons
36198
36197
  })) : [];
36199
36198
  } catch (F) {
36200
36199
  return Promise.reject(F);
36201
36200
  }
36202
36201
  }
36203
- async function he(F, P, j = "") {
36202
+ async function he(F, P, N = "") {
36204
36203
  a("loading-data");
36205
- let V = j;
36204
+ let B = N;
36206
36205
  try {
36207
- V || (V = {}.API_CALENDAR_GAMES_BY_SEASON || t.gamesUrl, F.forEach((X, M) => {
36208
- V += `${M === 0 ? "" : "&"}seasons=${X}`;
36206
+ B || (B = {}.API_CALENDAR_GAMES_BY_SEASON || t.gamesUrl, F.forEach((X, M) => {
36207
+ B += `${M === 0 ? "" : "&"}seasons=${X}`;
36209
36208
  }));
36210
36209
  const ee = {
36211
36210
  Authorization: js() || t.token
36212
36211
  }, {
36213
36212
  data: { data: W, teams: oe }
36214
- } = await sa.get(V, { headers: ee });
36213
+ } = await sa.get(B, { headers: ee });
36215
36214
  return { seasonsAndGames: W, seasonsAndTeams: oe };
36216
36215
  } catch (ee) {
36217
36216
  if (P > 0)
36218
- return he(F, P - 1, V);
36217
+ return he(F, P - 1, B);
36219
36218
  throw new Error(ee);
36220
36219
  } finally {
36221
36220
  a("loading-data");
@@ -36225,25 +36224,25 @@ const vU = { class: "dropdown" }, bU = { class: "selected-item" }, _U = {
36225
36224
  try {
36226
36225
  const P = {
36227
36226
  Authorization: js() || t.token
36228
- }, j = ` ${{}.API_PLAYERS_BY_SEASON || t.playersUrl}${F.seasonId}`, V = await sa.get(j, { headers: P });
36229
- return V.data ? V.data.players : [];
36227
+ }, N = ` ${{}.API_PLAYERS_BY_SEASON || t.playersUrl}${F.seasonId}`, B = await sa.get(N, { headers: P });
36228
+ return B.data ? B.data.players : [];
36230
36229
  } catch (P) {
36231
36230
  return Promise.reject(P);
36232
36231
  }
36233
36232
  }
36234
36233
  async function de(F) {
36235
36234
  try {
36236
- const { seasonsAndGames: P, seasonsAndTeams: j } = await he(
36235
+ const { seasonsAndGames: P, seasonsAndTeams: N } = await he(
36237
36236
  [
36238
36237
  F.id,
36239
36238
  ...F.related_seasons.map((oe) => oe.id)
36240
36239
  ],
36241
36240
  3
36242
- ), V = j.find(
36241
+ ), B = N.find(
36243
36242
  (oe) => oe._id === F.id
36244
36243
  );
36245
36244
  m.value.arrayTeams = [], m.value.mapTeams = /* @__PURE__ */ new Map();
36246
- const ee = V.teams.reduce((oe, X) => (m.value.arrayTeams.push(X), m.value.mapTeams.set(X.team_id, {
36245
+ const ee = B.teams.reduce((oe, X) => (m.value.arrayTeams.push(X), m.value.mapTeams.set(X.team_id, {
36247
36246
  name: X.colloquial_name,
36248
36247
  acronym: X.acronym,
36249
36248
  logo: X.logo,
@@ -36255,8 +36254,8 @@ const vU = { class: "dropdown" }, bU = { class: "selected-item" }, _U = {
36255
36254
  if (M.game_status === 1 && M.has_video) {
36256
36255
  (!m.value.maxGameId || M.game_id > m.value.maxGameId) && (m.value.maxGameId = M.game_id);
36257
36256
  let E = M.matchday_abbreviation.replace("M", "J"), k = M.matchday_abbreviation.replace("M", "Jornada ");
36258
- const B = M.matchday_abbreviation.replace("M", "");
36259
- X.season_type === 0 ? g.value.tournament_type === 1 && (M.seasonId === 881 ? (E = gU[B] || E, k = fU[B] || k) : (E = Id[M.matchday_abbreviation] ? M.matchday_abbreviation : E, k = Id[M.matchday_abbreviation] || k, E === "FINAL" && (E = "F"))) : X.season_type === 1 ? (E = mU[M.matchday_abbreviation], k = E) : (E = M.matchday_abbreviation.replace("PO", "R"), k = "Repechaje"), M.roundAbbreviation = E, M.roundName = k, m.value.mapGames.set(M.game_id, {
36257
+ const V = M.matchday_abbreviation.replace("M", "");
36258
+ X.season_type === 0 ? g.value.tournament_type === 1 && (M.seasonId === 881 ? (E = gU[V] || E, k = fU[V] || k) : (E = Id[M.matchday_abbreviation] ? M.matchday_abbreviation : E, k = Id[M.matchday_abbreviation] || k, E === "FINAL" && (E = "F"))) : X.season_type === 1 ? (E = mU[M.matchday_abbreviation], k = E) : (E = M.matchday_abbreviation.replace("PO", "R"), k = "Repechaje"), M.roundAbbreviation = E, M.roundName = k, m.value.mapGames.set(M.game_id, {
36260
36259
  id: M.game_id,
36261
36260
  date: M.date,
36262
36261
  dateTimeMillis: new Date(M.date_time_utc).valueOf(),
@@ -36294,17 +36293,17 @@ const vU = { class: "dropdown" }, bU = { class: "selected-item" }, _U = {
36294
36293
  async function me(F) {
36295
36294
  try {
36296
36295
  const P = await K(F.id);
36297
- m.value.mapPlayers = /* @__PURE__ */ new Map(), m.value.mapPlayersByTeam = P.reduce((j, V) => {
36298
- m.value.mapPlayers.set(V.player_id, {
36299
- id: V.player_id,
36300
- name: V.player_name,
36301
- shortName: V.shortName,
36302
- photo: V.player_photo,
36303
- teamId: V.team_id,
36304
- positionId: V.position_id
36296
+ m.value.mapPlayers = /* @__PURE__ */ new Map(), m.value.mapPlayersByTeam = P.reduce((N, B) => {
36297
+ m.value.mapPlayers.set(B.player_id, {
36298
+ id: B.player_id,
36299
+ name: B.player_name,
36300
+ shortName: B.shortName,
36301
+ photo: B.player_photo,
36302
+ teamId: B.team_id,
36303
+ positionId: B.position_id
36305
36304
  });
36306
- const ee = j.get(V.team_id);
36307
- return ee ? ee.push(V) : j.set(V.team_id, [V]), j;
36305
+ const ee = N.get(B.team_id);
36306
+ return ee ? ee.push(B) : N.set(B.team_id, [B]), N;
36308
36307
  }, /* @__PURE__ */ new Map());
36309
36308
  } catch (P) {
36310
36309
  throw new Error(P);
@@ -36351,11 +36350,11 @@ const vU = { class: "dropdown" }, bU = { class: "selected-item" }, _U = {
36351
36350
  isEmpty: !1
36352
36351
  }
36353
36352
  );
36354
- const j = /* @__PURE__ */ new Map(), V = "Resumen", ee = "Todas sus jugadas", W = y.value.player.reduce(
36353
+ const N = /* @__PURE__ */ new Map(), B = "Resumen", ee = "Todas sus jugadas", W = y.value.player.reduce(
36355
36354
  (X, M) => {
36356
36355
  const E = Q(M);
36357
36356
  return E.forEach((k) => {
36358
- j.set(k, M.name);
36357
+ N.set(k, M.name);
36359
36358
  }), X.push(...E), X;
36360
36359
  },
36361
36360
  []
@@ -36363,22 +36362,22 @@ const vU = { class: "dropdown" }, bU = { class: "selected-item" }, _U = {
36363
36362
  (X, M) => {
36364
36363
  const E = Q(M);
36365
36364
  return E.forEach((k) => {
36366
- j.set(k, M.name);
36365
+ N.set(k, M.name);
36367
36366
  }), X.push(...E), X;
36368
36367
  },
36369
36368
  []
36370
36369
  );
36371
36370
  y.value.games.unshift({
36372
- name: V,
36371
+ name: B,
36373
36372
  arrayCategoriesIds: r.games,
36374
36373
  booleanIsBestPlays: !0
36375
36374
  }), y.value.team.unshift({
36376
- name: V,
36375
+ name: B,
36377
36376
  arrayCategoriesIds: r.team,
36378
36377
  booleanIsBestPlays: !0
36379
36378
  }), y.value.player.unshift(
36380
36379
  {
36381
- name: V,
36380
+ name: B,
36382
36381
  arrayCategoriesIds: r.player.regular,
36383
36382
  booleanIsBestPlays: !0
36384
36383
  },
@@ -36389,7 +36388,7 @@ const vU = { class: "dropdown" }, bU = { class: "selected-item" }, _U = {
36389
36388
  }
36390
36389
  ), y.value.goalkeeper.unshift(
36391
36390
  {
36392
- name: V,
36391
+ name: B,
36393
36392
  arrayCategoriesIds: r.player.goalkeeper,
36394
36393
  booleanIsBestPlays: !0
36395
36394
  },
@@ -36404,11 +36403,11 @@ const vU = { class: "dropdown" }, bU = { class: "selected-item" }, _U = {
36404
36403
  throw new Error(F);
36405
36404
  }
36406
36405
  }
36407
- function _e(F, P = 0, j = /* @__PURE__ */ new Map(), V = !1, ee = {}, W = []) {
36406
+ function _e(F, P = 0, N = /* @__PURE__ */ new Map(), B = !1, ee = {}, W = []) {
36408
36407
  if (!F.group_id)
36409
36408
  return;
36410
- let oe = j.get(P);
36411
- const X = V ? `${F.id_category}_r` : F.id_category;
36409
+ let oe = N.get(P);
36410
+ const X = B ? `${F.id_category}_r` : F.id_category;
36412
36411
  F.id_category && W.push(F.id_category);
36413
36412
  let M = {
36414
36413
  ids: [X],
@@ -36423,25 +36422,25 @@ const vU = { class: "dropdown" }, bU = { class: "selected-item" }, _U = {
36423
36422
  };
36424
36423
  if (P > 0 && P === 1 && (M.id = F.id_category), oe && P !== 0) {
36425
36424
  const E = F.group_id.charAt(F.group_id.length - 1), k = oe.find(
36426
- (B) => B.groupId.endsWith(E)
36425
+ (V) => V.groupId.endsWith(E)
36427
36426
  );
36428
- k && !s.includes(M.groupId) ? (M = k, k.ids.push(X), k.fatherCategories.push(ee), k.fatherCategories.forEach((B) => {
36429
- B.childCategories ? B.childCategories.find(
36427
+ k && !s.includes(M.groupId) ? (M = k, k.ids.push(X), k.fatherCategories.push(ee), k.fatherCategories.forEach((V) => {
36428
+ V.childCategories ? V.childCategories.find(
36430
36429
  (re) => re.groupId === M.groupId
36431
- ) || B.childCategories.push(M) : B.childCategories = [M];
36432
- }), k.idsByFatherCategory[F.category_father] ? k.idsByFatherCategory[F.category_father].push(X) : k.idsByFatherCategory[F.category_father] = [X]) : (M.fatherCategories.forEach((B) => {
36433
- B.childCategories ? B.childCategories.find(
36430
+ ) || V.childCategories.push(M) : V.childCategories = [M];
36431
+ }), k.idsByFatherCategory[F.category_father] ? k.idsByFatherCategory[F.category_father].push(X) : k.idsByFatherCategory[F.category_father] = [X]) : (M.fatherCategories.forEach((V) => {
36432
+ V.childCategories ? V.childCategories.find(
36434
36433
  (re) => re.groupId === M.groupId
36435
- ) || B.childCategories.push(M) : B.childCategories = [M];
36434
+ ) || V.childCategories.push(M) : V.childCategories = [M];
36436
36435
  }), oe.push(M));
36437
36436
  } else
36438
- P !== 0 && (ee.childCategories ? ee.childCategories.push(M) : ee.childCategories = [M], oe = [M], j.set(P, oe));
36437
+ P !== 0 && (ee.childCategories ? ee.childCategories.push(M) : ee.childCategories = [M], oe = [M], N.set(P, oe));
36439
36438
  if (F.categories && F.categories.length ? F.categories.forEach((E) => {
36440
36439
  _e(
36441
36440
  E,
36442
36441
  P + 1,
36443
- j,
36444
- V,
36442
+ N,
36443
+ B,
36445
36444
  M,
36446
36445
  W
36447
36446
  );
@@ -36449,45 +36448,45 @@ const vU = { class: "dropdown" }, bU = { class: "selected-item" }, _U = {
36449
36448
  _e(
36450
36449
  E,
36451
36450
  P + 1,
36452
- j,
36451
+ N,
36453
36452
  !0,
36454
36453
  M,
36455
36454
  W
36456
36455
  );
36457
36456
  }), P === 0)
36458
- return Array.from(j.values());
36457
+ return Array.from(N.values());
36459
36458
  }
36460
36459
  function Q(F) {
36461
36460
  const P = F || F;
36462
36461
  if (P.booleanIsBestPlays)
36463
36462
  return P.arrayCategoriesIds;
36464
- const j = { total: [], toRemove: [] };
36465
- if (P.subcategoryGroups && P.subcategoryGroups.length ? P.subcategoryGroups[0].forEach((V) => {
36466
- N(V, null, j);
36467
- }) : (P.ids && j.total.push(...P.ids), P.rival_ids && P.rival_ids.forEach((V) => {
36468
- j.total.push(`${V}_r`);
36469
- })), j.total = j.total.reduce((V, ee) => (j.toRemove.includes(ee) || V.push(ee), V), []), !F) {
36470
- const V = P.name.toLowerCase().includes("recibid");
36471
- C.value.isRivalSubject = V, C.value.avoidCategorySingleName = V, C.value.coordinatePoint = P.coordinatePoint, C.value.requiresRivalTransform = P.requiresRivalTransform;
36472
- }
36473
- return j.total;
36474
- }
36475
- function N(F, P = [], j = { total: [], toRemove: [] }) {
36476
- F.isSelected ? F.childCategories ? F.childCategories.forEach((V) => {
36463
+ const N = { total: [], toRemove: [] };
36464
+ if (P.subcategoryGroups && P.subcategoryGroups.length ? P.subcategoryGroups[0].forEach((B) => {
36465
+ z(B, null, N);
36466
+ }) : (P.ids && N.total.push(...P.ids), P.rival_ids && P.rival_ids.forEach((B) => {
36467
+ N.total.push(`${B}_r`);
36468
+ })), N.total = N.total.reduce((B, ee) => (N.toRemove.includes(ee) || B.push(ee), B), []), !F) {
36469
+ const B = P.name.toLowerCase().includes("recibid");
36470
+ C.value.isRivalSubject = B, C.value.avoidCategorySingleName = B, C.value.coordinatePoint = P.coordinatePoint, C.value.requiresRivalTransform = P.requiresRivalTransform;
36471
+ }
36472
+ return N.total;
36473
+ }
36474
+ function z(F, P = [], N = { total: [], toRemove: [] }) {
36475
+ F.isSelected ? F.childCategories ? F.childCategories.forEach((B) => {
36477
36476
  const ee = P ? Object.entries(F.idsByFatherCategory).reduce((W, [oe, X]) => (P.includes(Number(oe)) && X.forEach((M) => {
36478
36477
  typeof M == "string" && M.endsWith("_r") ? W.push(Number(M.split("_")[0])) : W.push(M);
36479
36478
  }), W), []) : [F.id];
36480
- N(V, ee, j);
36481
- }) : P ? Object.entries(F.idsByFatherCategory).forEach(([V, ee]) => {
36482
- P.includes(Number(V)) && ee.forEach((W) => {
36483
- j.total.push(W);
36479
+ z(B, ee, N);
36480
+ }) : P ? Object.entries(F.idsByFatherCategory).forEach(([B, ee]) => {
36481
+ P.includes(Number(B)) && ee.forEach((W) => {
36482
+ N.total.push(W);
36484
36483
  });
36485
- }) : F.level === 1 ? Object.entries(F.idsByFatherCategory).forEach(([V, ee]) => {
36484
+ }) : F.level === 1 ? Object.entries(F.idsByFatherCategory).forEach(([B, ee]) => {
36486
36485
  ee.forEach((W) => {
36487
- j.total.push(W);
36486
+ N.total.push(W);
36488
36487
  });
36489
- }) : j.total.push(F.id) : F.childCategories || F.ids.forEach((V) => {
36490
- j.toRemove.push(V);
36488
+ }) : N.total.push(F.id) : F.childCategories || F.ids.forEach((B) => {
36489
+ N.toRemove.push(B);
36491
36490
  });
36492
36491
  }
36493
36492
  async function K(F) {
@@ -36495,13 +36494,13 @@ const vU = { class: "dropdown" }, bU = { class: "selected-item" }, _U = {
36495
36494
  const P = await H({
36496
36495
  seasonId: F
36497
36496
  });
36498
- return P.forEach((j) => {
36499
- const [V, ee] = j.player_name.split(","), W = V.split(" ");
36497
+ return P.forEach((N) => {
36498
+ const [B, ee] = N.player_name.split(","), W = B.split(" ");
36500
36499
  let oe = "";
36501
36500
  for (const X of W)
36502
36501
  if (oe += ` ${X}`, X.length > 3)
36503
36502
  break;
36504
- j.shortName = ee && V ? `${ee.trim().charAt(0)}.${oe}` : "";
36503
+ N.shortName = ee && B ? `${ee.trim().charAt(0)}.${oe}` : "";
36505
36504
  }), P;
36506
36505
  } catch (P) {
36507
36506
  return Promise.reject(P);
@@ -36534,13 +36533,13 @@ const vU = { class: "dropdown" }, bU = { class: "selected-item" }, _U = {
36534
36533
  }
36535
36534
  return $(), ye(), (F, P) => (n(), d("div", XH, [
36536
36535
  o("div", QH, [
36537
- (n(!0), d(A, null, ae(u.value, (j) => (n(), ie(ui, ge({
36538
- key: j.name
36536
+ (n(!0), d(A, null, ae(u.value, (N) => (n(), ie(ui, ge({
36537
+ key: N.name
36539
36538
  }, i, {
36540
- text: j.name,
36541
- "is-active": b.value.componentName === j.componentName,
36539
+ text: N.name,
36540
+ "is-active": b.value.componentName === N.componentName,
36542
36541
  tournaments: h.value,
36543
- onClick: (V) => pe(j)
36542
+ onClick: (B) => pe(N)
36544
36543
  }), null, 16, ["text", "is-active", "tournaments", "onClick"]))), 128))
36545
36544
  ]),
36546
36545
  o("div", eJ, [
@@ -38065,82 +38064,82 @@ const vU = { class: "dropdown" }, bU = { class: "selected-item" }, _U = {
38065
38064
  "--border-color": i.borderColor,
38066
38065
  "--border-width": i.borderWidth,
38067
38066
  "--box-shadow": i.boxShadow,
38068
- "--padding": i.filterType !== z.VIDEOS ? i.isExpansionMode ? "10px 0" : i.padding : "0",
38067
+ "--padding": i.filterType !== D.VIDEOS ? i.isExpansionMode ? "10px 0" : i.padding : "0",
38069
38068
  "--footer-border-color": i.footerBorderColor,
38070
38069
  "--footer-border-width": i.footerBorderWidth,
38071
38070
  "--text-color": i.textColor
38072
38071
  })), v = L(() => {
38073
38072
  const k = [];
38074
- return i.productivityCategories && Object.values(i.productivityCategories).forEach((B) => {
38075
- B.categories && B.categories.forEach((re) => {
38073
+ return i.productivityCategories && Object.values(i.productivityCategories).forEach((V) => {
38074
+ V.categories && V.categories.forEach((re) => {
38076
38075
  k.push(re);
38077
38076
  });
38078
38077
  }), k;
38079
38078
  }), y = L(() => {
38080
38079
  const k = [];
38081
- return i.playsCategories && Object.values(i.playsCategories).forEach((B) => {
38082
- B.categories && B.categories.forEach((re) => {
38080
+ return i.playsCategories && Object.values(i.playsCategories).forEach((V) => {
38081
+ V.categories && V.categories.forEach((re) => {
38083
38082
  k.push(re);
38084
38083
  });
38085
38084
  }), k;
38086
38085
  }), _ = L(() => {
38087
38086
  const k = v.value.filter(
38088
- (B) => B.isSelected
38087
+ (V) => V.isSelected
38089
38088
  );
38090
- return he(k), i.filterType === z.PRODUCTIVITY && t("change-categories-selected", k.length), k.length;
38089
+ return he(k), i.filterType === D.PRODUCTIVITY && t("change-categories-selected", k.length), k.length;
38091
38090
  }), C = L(() => !i.isForTemplateForm && _.value >= i.productivityMaxCategories), $ = L(() => !i.isForTemplateForm && _.value <= i.productivityMinCategories), se = L(() => i.isPlayingAsHidden ? i.gameSections : i.playingAs.concat(i.gameSections));
38092
38091
  U(
38093
38092
  r,
38094
38093
  (k) => {
38095
- i.filterType === z.DETAILS && t("update:filters", k);
38094
+ i.filterType === D.DETAILS && t("update:filters", k);
38096
38095
  },
38097
38096
  { immediate: !0, deep: !0 }
38098
38097
  ), U(
38099
38098
  () => se.value,
38100
38099
  (k) => {
38101
- if (i.filterType === z.DETAILS) {
38102
- const B = k.filter((re) => re.isSelected);
38103
- t("change-filters-selected", B.length);
38100
+ if (i.filterType === D.DETAILS) {
38101
+ const V = k.filter((re) => re.isSelected);
38102
+ t("change-filters-selected", V.length);
38104
38103
  }
38105
38104
  },
38106
38105
  { immediate: !0, deep: !0 }
38107
38106
  ), U(
38108
38107
  () => i.playsGolstatsCategories,
38109
38108
  (k) => {
38110
- if (i.filterType === z.PLAYS_TYPES || i.filterType === z.GOLSTATS) {
38111
- const B = k.filter((re) => re.isSelected);
38112
- t("change-filters-selected", B.length);
38109
+ if (i.filterType === D.PLAYS_TYPES || i.filterType === D.GOLSTATS) {
38110
+ const V = k.filter((re) => re.isSelected);
38111
+ t("change-filters-selected", V.length);
38113
38112
  }
38114
38113
  },
38115
38114
  { immediate: !0 }
38116
38115
  ), U(
38117
38116
  () => i.fieldAreas,
38118
38117
  (k) => {
38119
- i.filterType === z.FIELD && t("change-filters-selected", k.length);
38118
+ i.filterType === D.FIELD && t("change-filters-selected", k.length);
38120
38119
  }
38121
38120
  ), U(
38122
38121
  y,
38123
38122
  () => {
38124
- i.filterType === z.PLAYS && G();
38123
+ i.filterType === D.PLAYS && G();
38125
38124
  },
38126
38125
  { immediate: !0, deep: !0 }
38127
38126
  ), U(
38128
38127
  v,
38129
38128
  () => {
38130
- i.filterType === z.PRODUCTIVITY && pe();
38129
+ i.filterType === D.PRODUCTIVITY && pe();
38131
38130
  },
38132
38131
  { immediate: !0, deep: !0 }
38133
38132
  ), U(
38134
38133
  () => i.resultsFilters,
38135
38134
  (k) => {
38136
- i.filterType === z.RESULTS && t("change-filters-selected", k.results.filter((B) => B.isSelected).length);
38135
+ i.filterType === D.RESULTS && t("change-filters-selected", k.results.filter((V) => V.isSelected).length);
38137
38136
  },
38138
38137
  { immediate: !0, deep: !0 }
38139
38138
  );
38140
38139
  function he(k) {
38141
38140
  setTimeout(() => {
38142
- k.sort((B, re) => B.priority - re.priority), k.forEach((B, re) => {
38143
- B.priority = re + 1;
38141
+ k.sort((V, re) => V.priority - re.priority), k.forEach((V, re) => {
38142
+ V.priority = re + 1;
38144
38143
  });
38145
38144
  }, 10);
38146
38145
  }
@@ -38148,79 +38147,79 @@ const vU = { class: "dropdown" }, bU = { class: "selected-item" }, _U = {
38148
38147
  de(k);
38149
38148
  }
38150
38149
  function de(k = null) {
38151
- i.filterType === z.PRODUCTIVITY ? v.value.forEach((B) => {
38152
- B.isSelected = !1;
38153
- }) : i.filterType === z.PLAYS ? (y.value.forEach((B) => {
38154
- B.isSelected = !0;
38155
- }), l.value = !0) : i.filterType === z.FIELD ? t("change-field-areas", [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]) : i.filterType === z.DETAILS ? (i.playingAs.forEach((B) => {
38156
- B.isSelected = !0;
38157
- }), i.gameSections.forEach((B) => {
38158
- B.isSelected = !0;
38159
- })) : i.filterType === z.TOURNAMENTS ? (i.tournaments.forEach((B, re) => {
38160
- i.isOneTournamentOnly ? B.isSelected = re === 0 : B.isSelected = !0;
38161
- }), t("change-filters-selected", 0)) : i.filterType === z.PLAYS_TYPES ? i.playsGolstatsCategories.forEach((B) => {
38162
- B.isSelected = !0;
38163
- }) : i.filterType === z.GOLSTATS ? i.playsGolstatsCategories.forEach((B) => {
38164
- B.isSelected = !1;
38165
- }) : i.filterType === z.UNIVERSE ? u.value && u.value.resetFilters() : i.filterType === z.PERSONAL_DATA ? (s.value && s.value.onClearFilters(k || Fe.All), t("change-personal-data-filters", {})) : i.filterType === z.DISTANCE ? t("update:filters", {
38150
+ i.filterType === D.PRODUCTIVITY ? v.value.forEach((V) => {
38151
+ V.isSelected = !1;
38152
+ }) : i.filterType === D.PLAYS ? (y.value.forEach((V) => {
38153
+ V.isSelected = !0;
38154
+ }), l.value = !0) : i.filterType === D.FIELD ? t("change-field-areas", [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]) : i.filterType === D.DETAILS ? (i.playingAs.forEach((V) => {
38155
+ V.isSelected = !0;
38156
+ }), i.gameSections.forEach((V) => {
38157
+ V.isSelected = !0;
38158
+ })) : i.filterType === D.TOURNAMENTS ? (i.tournaments.forEach((V, re) => {
38159
+ i.isOneTournamentOnly ? V.isSelected = re === 0 : V.isSelected = !0;
38160
+ }), t("change-filters-selected", 0)) : i.filterType === D.PLAYS_TYPES ? i.playsGolstatsCategories.forEach((V) => {
38161
+ V.isSelected = !0;
38162
+ }) : i.filterType === D.GOLSTATS ? i.playsGolstatsCategories.forEach((V) => {
38163
+ V.isSelected = !1;
38164
+ }) : i.filterType === D.UNIVERSE ? u.value && u.value.resetFilters() : i.filterType === D.PERSONAL_DATA ? (s.value && s.value.onClearFilters(k || Fe.All), t("change-personal-data-filters", {})) : i.filterType === D.DISTANCE ? t("update:filters", {
38166
38165
  minValue: i.distanceFilters.minLimit,
38167
38166
  maxValue: i.distanceFilters.maxLimit
38168
- }) : i.filterType === z.RESULTS ? t("update:filters", {
38169
- results: i.resultsFilters.results.map((B) => (B.isSelected = !0, B))
38170
- }) : i.filterType === z.RESULTS_BY_TIME ? g.value && g.value.removeFilters() : i.filterType === z.GAMES ? i.gamesFilters.forEach((B) => {
38171
- B.isSelected = !0;
38172
- }) : i.filterType === z.TAKEN_CORNERS ? h.value.clearFilters() : i.filterType === z.HOW_WAS_CORNER ? (i.howWasCornerFilters.left.forEach((B) => {
38173
- B.isSelected = !0;
38174
- }), i.howWasCornerFilters.right.forEach((B) => {
38175
- B.isSelected = !0;
38176
- })) : i.filterType === z.ZONE ? b.value && b.value.clearFilters() : i.filterType === z.WHAT_HAPPENED && m.value && m.value.onResetFilters();
38167
+ }) : i.filterType === D.RESULTS ? t("update:filters", {
38168
+ results: i.resultsFilters.results.map((V) => (V.isSelected = !0, V))
38169
+ }) : i.filterType === D.RESULTS_BY_TIME ? g.value && g.value.removeFilters() : i.filterType === D.GAMES ? i.gamesFilters.forEach((V) => {
38170
+ V.isSelected = !0;
38171
+ }) : i.filterType === D.TAKEN_CORNERS ? h.value.clearFilters() : i.filterType === D.HOW_WAS_CORNER ? (i.howWasCornerFilters.left.forEach((V) => {
38172
+ V.isSelected = !0;
38173
+ }), i.howWasCornerFilters.right.forEach((V) => {
38174
+ V.isSelected = !0;
38175
+ })) : i.filterType === D.ZONE ? b.value && b.value.clearFilters() : i.filterType === D.WHAT_HAPPENED && m.value && m.value.onResetFilters();
38177
38176
  }
38178
38177
  function me(k) {
38179
- i.filterType === z.TOURNAMENTS && t("change-filters-selected", k);
38178
+ i.filterType === D.TOURNAMENTS && t("change-filters-selected", k);
38180
38179
  }
38181
38180
  function ye(k) {
38182
- i.filterType === z.UNIVERSE && t("change-universe-filters", k);
38181
+ i.filterType === D.UNIVERSE && t("change-universe-filters", k);
38183
38182
  }
38184
38183
  function _e(k) {
38185
- i.filterType === z.FIELD && t("change-field-areas", k);
38184
+ i.filterType === D.FIELD && t("change-field-areas", k);
38186
38185
  }
38187
38186
  function Q(k) {
38188
- i.filterType === z.GOLSTATS && t("change-filters-selected", k);
38187
+ i.filterType === D.GOLSTATS && t("change-filters-selected", k);
38189
38188
  }
38190
- function N(k) {
38189
+ function z(k) {
38191
38190
  t("change-filters-selected", k);
38192
38191
  }
38193
38192
  function K(k) {
38194
- i.filterType === z.PRODUCTIVITY ? v.value.forEach((B) => {
38195
- B.isSelected = k;
38196
- }) : (l.value = k, i.playsCategories.offensive.categories.forEach((B) => {
38197
- B.isSelected = k;
38198
- }), i.playsCategories.defensive.categories.forEach((B) => {
38199
- B.isSelected = k;
38200
- }), i.playsCategories.possession.categories.forEach((B) => {
38201
- B.isSelected = k;
38202
- }), i.playsCategories.offenses.categories.forEach((B) => {
38203
- B.isSelected = k;
38193
+ i.filterType === D.PRODUCTIVITY ? v.value.forEach((V) => {
38194
+ V.isSelected = k;
38195
+ }) : (l.value = k, i.playsCategories.offensive.categories.forEach((V) => {
38196
+ V.isSelected = k;
38197
+ }), i.playsCategories.defensive.categories.forEach((V) => {
38198
+ V.isSelected = k;
38199
+ }), i.playsCategories.possession.categories.forEach((V) => {
38200
+ V.isSelected = k;
38201
+ }), i.playsCategories.offenses.categories.forEach((V) => {
38202
+ V.isSelected = k;
38204
38203
  }));
38205
38204
  }
38206
38205
  function G() {
38207
38206
  let k = 0;
38208
- const B = {
38207
+ const V = {
38209
38208
  playsCategories: y.value.filter((re) => re.isSelected)
38210
38209
  };
38211
- l.value = B.playsCategories.length === y.value.length, k = B.playsCategories.length, Object.values(c.value).forEach((re) => {
38210
+ l.value = V.playsCategories.length === y.value.length, k = V.playsCategories.length, Object.values(c.value).forEach((re) => {
38212
38211
  re && k++;
38213
- }), t("change-filters-selected", k), t("update:filters", B);
38212
+ }), t("change-filters-selected", k), t("update:filters", V);
38214
38213
  }
38215
38214
  function pe() {
38216
38215
  let k = 0;
38217
- const B = {
38216
+ const V = {
38218
38217
  productivityFilters: v.value.filter((re) => re.isSelected),
38219
38218
  offensesConditions: c.value
38220
38219
  };
38221
- k = B.productivityFilters.length, Object.values(c.value).forEach((re) => {
38220
+ k = V.productivityFilters.length, Object.values(c.value).forEach((re) => {
38222
38221
  re && k++;
38223
- }), t("change-filters-selected", k), t("update:filters", B);
38222
+ }), t("change-filters-selected", k), t("update:filters", V);
38224
38223
  }
38225
38224
  function Se(k) {
38226
38225
  t("click-parameters", k);
@@ -38229,9 +38228,9 @@ const vU = { class: "dropdown" }, bU = { class: "selected-item" }, _U = {
38229
38228
  t("apply");
38230
38229
  }
38231
38230
  function O() {
38232
- (i.filterType === z.PLAYS_TYPES || i.filterType === z.GOLSTATS) && i.playsGolstatsCategories && i.playsGolstatsCategories.forEach((k) => {
38231
+ (i.filterType === D.PLAYS_TYPES || i.filterType === D.GOLSTATS) && i.playsGolstatsCategories && i.playsGolstatsCategories.forEach((k) => {
38233
38232
  k.isSelected = !1;
38234
- }), i.filterType === z.PRODUCTIVITY && v.value.forEach((k) => {
38233
+ }), i.filterType === D.PRODUCTIVITY && v.value.forEach((k) => {
38235
38234
  k.isSelected = !1;
38236
38235
  }), t("apply");
38237
38236
  }
@@ -38239,47 +38238,47 @@ const vU = { class: "dropdown" }, bU = { class: "selected-item" }, _U = {
38239
38238
  t("update:filters", k);
38240
38239
  }
38241
38240
  function P(k) {
38242
- i.filterType === z.PERSONAL_DATA && t("update:filters", k);
38241
+ i.filterType === D.PERSONAL_DATA && t("update:filters", k);
38243
38242
  }
38244
- function j(k) {
38245
- i.filterType === z.TOURNAMENTS && t("update:filters", k);
38243
+ function N(k) {
38244
+ i.filterType === D.TOURNAMENTS && t("update:filters", k);
38246
38245
  }
38247
- function V(k) {
38248
- (i.filterType === z.PLAYS_TYPES || i.filterType === z.GOLSTATS) && t("update:filters", k);
38246
+ function B(k) {
38247
+ (i.filterType === D.PLAYS_TYPES || i.filterType === D.GOLSTATS) && t("update:filters", k);
38249
38248
  }
38250
38249
  function ee(k) {
38251
- i.filterType === z.PRODUCTIVITY && (c.value = k, pe());
38250
+ i.filterType === D.PRODUCTIVITY && (c.value = k, pe());
38252
38251
  }
38253
38252
  function W(k) {
38254
- i.filterType === z.DISTANCE && t("update:filters", k);
38253
+ i.filterType === D.DISTANCE && t("update:filters", k);
38255
38254
  }
38256
38255
  function oe(k) {
38257
- i.filterType === z.RESULTS && t("update:filters", k);
38256
+ i.filterType === D.RESULTS && t("update:filters", k);
38258
38257
  }
38259
38258
  function X(k) {
38260
- i.filterType === z.GAMES && (t("update:filters", k), t("change-filters-selected", k.filter((B) => B.isSelected).length));
38259
+ i.filterType === D.GAMES && (t("update:filters", k), t("change-filters-selected", k.filter((V) => V.isSelected).length));
38261
38260
  }
38262
38261
  function M(k) {
38263
38262
  r.value.statisticType = k;
38264
38263
  }
38265
- const E = L(() => i.filterType === z.PLAYS ? y.value.length : i.filterType === z.PRODUCTIVITY ? v.value.length : i.filterType === z.FIELD ? 16 : i.filterType === z.UNIVERSE ? 6 : i.filterType === z.DETAILS ? 8 : i.filterType === z.RESULTS || i.filterType === z.RESULTS_BY_TIME ? 3 : i.filterType === z.GAMES ? i.gamesFilters.length : 0);
38264
+ const E = L(() => i.filterType === D.PLAYS ? y.value.length : i.filterType === D.PRODUCTIVITY ? v.value.length : i.filterType === D.FIELD ? 16 : i.filterType === D.UNIVERSE ? 6 : i.filterType === D.DETAILS ? 8 : i.filterType === D.RESULTS || i.filterType === D.RESULTS_BY_TIME ? 3 : i.filterType === D.GAMES ? i.gamesFilters.length : 0);
38266
38265
  return t("total-filters", E), a({
38267
38266
  clearFilters: H
38268
- }), (k, B) => (n(), d("div", {
38267
+ }), (k, V) => (n(), d("div", {
38269
38268
  class: "templates",
38270
38269
  style: I(p.value)
38271
38270
  }, [
38272
- e.filterType === R(z).PRODUCTIVITY || e.filterType === R(z).PLAYS ? (n(), d("div", {
38271
+ e.filterType === R(D).PRODUCTIVITY || e.filterType === R(D).PLAYS ? (n(), d("div", {
38273
38272
  key: 0,
38274
38273
  class: f(e.isExpansionMode ? "productivity__header__expansion" : "productivity__header")
38275
38274
  }, [
38276
- e.filterType === R(z).PRODUCTIVITY ? (n(), d("div", lZ, [
38275
+ e.filterType === R(D).PRODUCTIVITY ? (n(), d("div", lZ, [
38277
38276
  e.isFromTemplates ? (n(), d("div", oZ, [
38278
38277
  te(" Elige tipo de jugadas: "),
38279
38278
  rZ
38280
38279
  ])) : e.isForTemplateForm ? (n(), d("div", nZ, "Tipo de participación")) : (n(), d("div", dZ, "Selecciona hasta 5 categorias en orden de importancia"))
38281
38280
  ])) : S("", !0),
38282
- e.filterType === R(z).PLAYS || e.isForTemplateForm ? (n(), d("div", cZ, [
38281
+ e.filterType === R(D).PLAYS || e.isForTemplateForm ? (n(), d("div", cZ, [
38283
38282
  T(R(ke), {
38284
38283
  label: e.isForTemplateForm ? "Seleccionar todas" : "Todos los tipos de jugadas",
38285
38284
  "box-position": e.isForTemplateForm ? "right" : "left",
@@ -38292,13 +38291,13 @@ const vU = { class: "dropdown" }, bU = { class: "selected-item" }, _U = {
38292
38291
  ])) : S("", !0)
38293
38292
  ], 2)) : S("", !0),
38294
38293
  o("div", uZ, [
38295
- e.filterType === R(z).PLAYS ? (n(), d("div", pZ, [
38294
+ e.filterType === R(D).PLAYS ? (n(), d("div", pZ, [
38296
38295
  T(cU, {
38297
38296
  "plays-categories": e.playsCategories,
38298
38297
  "is-expansion-mode": e.isExpansionMode
38299
38298
  }, null, 8, ["plays-categories", "is-expansion-mode"])
38300
38299
  ])) : S("", !0),
38301
- e.filterType === R(z).PRODUCTIVITY ? (n(), d("div", hZ, [
38300
+ e.filterType === R(D).PRODUCTIVITY ? (n(), d("div", hZ, [
38302
38301
  T(sO, {
38303
38302
  "productivity-categories": e.productivityCategories,
38304
38303
  "number-of-categories-selected": _.value,
@@ -38311,14 +38310,14 @@ const vU = { class: "dropdown" }, bU = { class: "selected-item" }, _U = {
38311
38310
  onClickParameters: Se
38312
38311
  }, null, 8, ["productivity-categories", "number-of-categories-selected", "are-max-categories-reached", "are-min-categories-reached", "is-expansion-mode", "is-from-templates", "is-for-template-form"])
38313
38312
  ])) : S("", !0),
38314
- e.filterType === R(z).FIELD ? (n(), d("div", yZ, [
38313
+ e.filterType === R(D).FIELD ? (n(), d("div", yZ, [
38315
38314
  T(R(vD), ge(e.fieldComponentProps, {
38316
38315
  "background-color": e.backgroundColor,
38317
38316
  value: e.fieldAreas,
38318
38317
  "onUpdate:modelValue": _e
38319
38318
  }), null, 16, ["background-color", "value"])
38320
38319
  ])) : S("", !0),
38321
- e.filterType === R(z).DETAILS ? (n(), d("div", mZ, [
38320
+ e.filterType === R(D).DETAILS ? (n(), d("div", mZ, [
38322
38321
  T(BO, {
38323
38322
  "is-playing-as-hidden": e.isPlayingAsHidden,
38324
38323
  "playing-as": e.playingAs,
@@ -38329,7 +38328,7 @@ const vU = { class: "dropdown" }, bU = { class: "selected-item" }, _U = {
38329
38328
  onChangeStatisticType: M
38330
38329
  }, null, 8, ["is-playing-as-hidden", "playing-as", "game-sections", "font-gamily", "is-statistic-type-visible", "statistic-type"])
38331
38330
  ])) : S("", !0),
38332
- e.filterType === R(z).PERSONAL_DATA ? (n(), d("div", fZ, [
38331
+ e.filterType === R(D).PERSONAL_DATA ? (n(), d("div", fZ, [
38333
38332
  T(JW, {
38334
38333
  "is-female": e.isFemale,
38335
38334
  ref_key: "templatePersonalData",
@@ -38343,33 +38342,33 @@ const vU = { class: "dropdown" }, bU = { class: "selected-item" }, _U = {
38343
38342
  "onUpdate:filters": P
38344
38343
  }, null, 8, ["is-female", "personal-data-filters", "season", "is-seleccion", "is-scouting", "token", "filters"])
38345
38344
  ])) : S("", !0),
38346
- e.filterType === R(z).TOURNAMENTS ? (n(), d("div", gZ, [
38345
+ e.filterType === R(D).TOURNAMENTS ? (n(), d("div", gZ, [
38347
38346
  T(DO, {
38348
38347
  tournaments: e.tournaments,
38349
38348
  "is-one-tournament-only": e.isOneTournamentOnly,
38350
38349
  "default-tournament-id": e.defaultTournamentId,
38351
38350
  onChangeFiltersSelected: me,
38352
- "onUpdate:filters": j
38351
+ "onUpdate:filters": N
38353
38352
  }, null, 8, ["tournaments", "is-one-tournament-only", "default-tournament-id"])
38354
38353
  ])) : S("", !0),
38355
- e.filterType === R(z).PLAYS_TYPES ? (n(), d("div", vZ, [
38354
+ e.filterType === R(D).PLAYS_TYPES ? (n(), d("div", vZ, [
38356
38355
  T(ed, {
38357
38356
  height: e.modalHeight,
38358
38357
  type: e.filterType,
38359
38358
  categories: e.playsGolstatsCategories,
38360
- "onUpdate:filters": V
38359
+ "onUpdate:filters": B
38361
38360
  }, null, 8, ["height", "type", "categories"])
38362
38361
  ])) : S("", !0),
38363
- e.filterType === R(z).GOLSTATS ? (n(), d("div", bZ, [
38362
+ e.filterType === R(D).GOLSTATS ? (n(), d("div", bZ, [
38364
38363
  T(ed, {
38365
38364
  height: e.modalHeight,
38366
38365
  type: e.filterType,
38367
38366
  categories: e.playsGolstatsCategories,
38368
38367
  onChangeFiltersSelected: Q,
38369
- "onUpdate:filters": V
38368
+ "onUpdate:filters": B
38370
38369
  }, null, 8, ["height", "type", "categories"])
38371
38370
  ])) : S("", !0),
38372
- e.filterType === R(z).UNIVERSE ? (n(), d("div", _Z, [
38371
+ e.filterType === R(D).UNIVERSE ? (n(), d("div", _Z, [
38373
38372
  T(LN, {
38374
38373
  ref_key: "templateUniverse",
38375
38374
  ref: u,
@@ -38377,13 +38376,13 @@ const vU = { class: "dropdown" }, bU = { class: "selected-item" }, _U = {
38377
38376
  "onUpdate:universeFilters": ye
38378
38377
  }, null, 8, ["universe-filters"])
38379
38378
  ])) : S("", !0),
38380
- e.filterType === R(z).DISTANCE ? (n(), d("div", SZ, [
38379
+ e.filterType === R(D).DISTANCE ? (n(), d("div", SZ, [
38381
38380
  T(iz, {
38382
38381
  distance: e.distanceFilters,
38383
38382
  "onUpdate:distanceFilters": W
38384
38383
  }, null, 8, ["distance"])
38385
38384
  ])) : S("", !0),
38386
- e.filterType === R(z).RESULTS ? (n(), d("div", wZ, [
38385
+ e.filterType === R(D).RESULTS ? (n(), d("div", wZ, [
38387
38386
  T(hU, {
38388
38387
  ref_key: "templateResults",
38389
38388
  ref: g,
@@ -38391,59 +38390,59 @@ const vU = { class: "dropdown" }, bU = { class: "selected-item" }, _U = {
38391
38390
  "onUpdate:resultsFilters": oe
38392
38391
  }, null, 8, ["results-filters"])
38393
38392
  ])) : S("", !0),
38394
- e.filterType === R(z).RESULTS_BY_TIME ? (n(), d("div", CZ, [
38393
+ e.filterType === R(D).RESULTS_BY_TIME ? (n(), d("div", CZ, [
38395
38394
  T(iZ, {
38396
38395
  ref_key: "templateResults",
38397
38396
  ref: g,
38398
38397
  "results-filters": e.resultsByTimeFilters,
38399
- onChangeFiltersSelected: N,
38398
+ onChangeFiltersSelected: z,
38400
38399
  "onUpdate:filters": F
38401
38400
  }, null, 8, ["results-filters"])
38402
38401
  ])) : S("", !0),
38403
- e.filterType === R(z).GAMES ? (n(), d("div", xZ, [
38402
+ e.filterType === R(D).GAMES ? (n(), d("div", xZ, [
38404
38403
  T(cz, {
38405
38404
  "games-filters": e.gamesFilters,
38406
38405
  "onUpdate:gamesFilters": X
38407
38406
  }, null, 8, ["games-filters"])
38408
38407
  ])) : S("", !0),
38409
- e.filterType === R(z).TAKEN_CORNERS ? (n(), d("div", TZ, [
38408
+ e.filterType === R(D).TAKEN_CORNERS ? (n(), d("div", TZ, [
38410
38409
  T(SJ, {
38411
38410
  "is-female": e.isFemale,
38412
38411
  ref_key: "templateTakenCorners",
38413
38412
  ref: h,
38414
38413
  "taken-corners-filters": e.takenCornersFilters,
38415
38414
  "is-expansion-mode": e.isExpansionMode,
38416
- onChangeFiltersSelected: N,
38415
+ onChangeFiltersSelected: z,
38417
38416
  "onUpdate:filters": F
38418
38417
  }, null, 8, ["is-female", "taken-corners-filters", "is-expansion-mode"])
38419
38418
  ])) : S("", !0),
38420
- e.filterType === R(z).VIDEOS ? (n(), d("div", PZ, [
38419
+ e.filterType === R(D).VIDEOS ? (n(), d("div", PZ, [
38421
38420
  T(iJ, { token: e.token }, null, 8, ["token"])
38422
38421
  ])) : S("", !0),
38423
- e.filterType === R(z).HOW_WAS_CORNER ? (n(), d("div", FZ, [
38422
+ e.filterType === R(D).HOW_WAS_CORNER ? (n(), d("div", FZ, [
38424
38423
  T(RJ, {
38425
38424
  "how-was-corner-filters": e.howWasCornerFilters,
38426
38425
  "is-expansion-mode": e.isExpansionMode,
38427
- onChangeFiltersSelected: N,
38426
+ onChangeFiltersSelected: z,
38428
38427
  "onUpdate:filters": F
38429
38428
  }, null, 8, ["how-was-corner-filters", "is-expansion-mode"])
38430
38429
  ])) : S("", !0),
38431
- e.filterType === R(z).ZONE ? (n(), d("div", kZ, [
38430
+ e.filterType === R(D).ZONE ? (n(), d("div", kZ, [
38432
38431
  T(zq, {
38433
38432
  ref_key: "templateZone",
38434
38433
  ref: b,
38435
38434
  "zone-filters": e.zoneFilters,
38436
- onChangeFiltersSelected: N,
38435
+ onChangeFiltersSelected: z,
38437
38436
  "onUpdate:filters": F
38438
38437
  }, null, 8, ["zone-filters"])
38439
38438
  ])) : S("", !0),
38440
- e.filterType === R(z).WHAT_HAPPENED ? (n(), d("div", $Z, [
38439
+ e.filterType === R(D).WHAT_HAPPENED ? (n(), d("div", $Z, [
38441
38440
  T(qq, {
38442
38441
  "is-female": e.isFemale,
38443
38442
  ref_key: "templateWhatHappened",
38444
38443
  ref: m,
38445
38444
  "what-happened-filters": e.whatHappenedFilters,
38446
- onChangeFiltersSelected: N,
38445
+ onChangeFiltersSelected: z,
38447
38446
  "onUpdate:filters": F
38448
38447
  }, null, 8, ["is-female", "what-happened-filters"])
38449
38448
  ])) : S("", !0)
@@ -38896,13 +38895,13 @@ const vU = { class: "dropdown" }, bU = { class: "selected-item" }, _U = {
38896
38895
  "--info-height": a.infoHeight,
38897
38896
  "--info-width": a.infoWidth
38898
38897
  })), s = L(() => [
38899
- z.PLAYS_TYPES,
38900
- z.GOLSTATS,
38901
- z.TOURNAMENTS,
38902
- z.PLAYS,
38903
- z.RESULTS,
38904
- z.RESULTS_BY_TIME
38905
- ].includes(a.iconType)), l = L(() => [z.FIELD, z.GAMES].includes(a.iconType)), r = L(() => [z.DETAILS, z.UNIVERSE].includes(a.iconType)), c = L(() => [z.PERSONAL_DATA].includes(a.iconType)), u = L(() => [z.PRODUCTIVITY].includes(a.iconType)), h = L(() => [z.HOW_WAS_CORNER].includes(a.iconType)), b = L(() => [z.TAKEN_CORNERS].includes(a.iconType)), m = L(() => [z.ZONE].includes(a.iconType)), g = L(() => [z.WHAT_HAPPENED].includes(a.iconType));
38898
+ D.PLAYS_TYPES,
38899
+ D.GOLSTATS,
38900
+ D.TOURNAMENTS,
38901
+ D.PLAYS,
38902
+ D.RESULTS,
38903
+ D.RESULTS_BY_TIME
38904
+ ].includes(a.iconType)), l = L(() => [D.FIELD, D.GAMES].includes(a.iconType)), r = L(() => [D.DETAILS, D.UNIVERSE].includes(a.iconType)), c = L(() => [D.PERSONAL_DATA].includes(a.iconType)), u = L(() => [D.PRODUCTIVITY].includes(a.iconType)), h = L(() => [D.HOW_WAS_CORNER].includes(a.iconType)), b = L(() => [D.TAKEN_CORNERS].includes(a.iconType)), m = L(() => [D.ZONE].includes(a.iconType)), g = L(() => [D.WHAT_HAPPENED].includes(a.iconType));
38906
38905
  return (p, v) => (n(), d("div", {
38907
38906
  class: "button",
38908
38907
  style: I(t.value)
@@ -40068,7 +40067,7 @@ const vU = { class: "dropdown" }, bU = { class: "selected-item" }, _U = {
40068
40067
  maxWidth: "604px",
40069
40068
  backgroundColor: "#2E3B46",
40070
40069
  borderRadius: "12px",
40071
- filterType: z.PRODUCTIVITY,
40070
+ filterType: D.PRODUCTIVITY,
40072
40071
  isFooterVisible: !0
40073
40072
  }, l = {
40074
40073
  width: "604px",
@@ -40076,35 +40075,35 @@ const vU = { class: "dropdown" }, bU = { class: "selected-item" }, _U = {
40076
40075
  padding: "0 20px 10px 20px",
40077
40076
  backgroundColor: "#2E3B46",
40078
40077
  borderRadius: "12px",
40079
- filterType: z.PLAYS,
40078
+ filterType: D.PLAYS,
40080
40079
  isFooterVisible: !0
40081
40080
  }, r = {
40082
40081
  width: "fit-content",
40083
40082
  maxWidth: "608px",
40084
40083
  backgroundColor: "#2E3B46",
40085
40084
  borderRadius: "12px",
40086
- filterType: z.FIELD,
40085
+ filterType: D.FIELD,
40087
40086
  isFooterVisible: !0
40088
40087
  }, c = {
40089
40088
  width: "320px",
40090
40089
  maxWidth: "320px",
40091
40090
  backgroundColor: "#2E3B46",
40092
40091
  borderRadius: "12px",
40093
- filterType: z.DETAILS,
40092
+ filterType: D.DETAILS,
40094
40093
  isFooterVisible: !0
40095
40094
  }, u = {
40096
40095
  width: "246px",
40097
40096
  maxWidth: "246px",
40098
40097
  backgroundColor: "#2E3B46",
40099
40098
  borderRadius: "12px",
40100
- filterType: z.TOURNAMENTS,
40099
+ filterType: D.TOURNAMENTS,
40101
40100
  isFooterVisible: !0
40102
40101
  }, h = {
40103
40102
  width: "310px",
40104
40103
  maxWidth: "310px",
40105
40104
  backgroundColor: "#2E3B46",
40106
40105
  borderRadius: "12px",
40107
- filterType: z.PERSONAL_DATA,
40106
+ filterType: D.PERSONAL_DATA,
40108
40107
  isFooterVisible: !0
40109
40108
  }, b = {
40110
40109
  width: "310px",
@@ -40112,7 +40111,7 @@ const vU = { class: "dropdown" }, bU = { class: "selected-item" }, _U = {
40112
40111
  maxWidth: "310px",
40113
40112
  backgroundColor: "#2E3B46",
40114
40113
  borderRadius: "12px",
40115
- filterType: z.PLAYS_TYPES,
40114
+ filterType: D.PLAYS_TYPES,
40116
40115
  isFooterVisible: !0,
40117
40116
  isFooterCancelOnly: !0
40118
40117
  }, m = {
@@ -40121,7 +40120,7 @@ const vU = { class: "dropdown" }, bU = { class: "selected-item" }, _U = {
40121
40120
  maxWidth: "380px",
40122
40121
  backgroundColor: "#2E3B46",
40123
40122
  borderRadius: "12px",
40124
- filterType: z.GOLSTATS,
40123
+ filterType: D.GOLSTATS,
40125
40124
  isFooterVisible: !0,
40126
40125
  isFooterCancelOnly: !0
40127
40126
  }, g = {
@@ -40129,21 +40128,21 @@ const vU = { class: "dropdown" }, bU = { class: "selected-item" }, _U = {
40129
40128
  maxWidth: "310px",
40130
40129
  backgroundColor: "#2E3B46",
40131
40130
  borderRadius: "12px",
40132
- filterType: z.UNIVERSE,
40131
+ filterType: D.UNIVERSE,
40133
40132
  isFooterVisible: !0
40134
40133
  }, p = {
40135
40134
  width: "310px",
40136
40135
  maxWidth: "310px",
40137
40136
  backgroundColor: "#2E3B46",
40138
40137
  borderRadius: "12px",
40139
- filterType: z.DISTANCE,
40138
+ filterType: D.DISTANCE,
40140
40139
  isFooterVisible: !0
40141
40140
  }, v = {
40142
40141
  width: "250px",
40143
40142
  maxWidth: "250px",
40144
40143
  backgroundColor: "#2E3B46",
40145
40144
  borderRadius: "12px",
40146
- filterType: z.RESULTS,
40145
+ filterType: D.RESULTS,
40147
40146
  padding: "0",
40148
40147
  isFooterVisible: !0
40149
40148
  }, y = {
@@ -40151,7 +40150,7 @@ const vU = { class: "dropdown" }, bU = { class: "selected-item" }, _U = {
40151
40150
  maxWidth: "250px",
40152
40151
  backgroundColor: "#2E3B46",
40153
40152
  borderRadius: "12px",
40154
- filterType: z.RESULTS_BY_TIME,
40153
+ filterType: D.RESULTS_BY_TIME,
40155
40154
  padding: "0",
40156
40155
  isFooterVisible: !0
40157
40156
  }, _ = {
@@ -40159,68 +40158,68 @@ const vU = { class: "dropdown" }, bU = { class: "selected-item" }, _U = {
40159
40158
  maxWidth: "380px",
40160
40159
  backgroundColor: "#2E3B46",
40161
40160
  borderRadius: "12px",
40162
- filterType: z.VIDEOS,
40161
+ filterType: D.VIDEOS,
40163
40162
  isFooterVisible: !1
40164
40163
  }, C = {
40165
40164
  width: "300px",
40166
40165
  maxWidth: "300px",
40167
40166
  backgroundColor: "#2E3B46",
40168
40167
  borderRadius: "12px",
40169
- filterType: z.GAMES,
40168
+ filterType: D.GAMES,
40170
40169
  isFooterVisible: !0
40171
40170
  }, $ = {
40172
40171
  width: "520px",
40173
40172
  maxWidth: "520px",
40174
40173
  backgroundColor: "#2E3B46",
40175
40174
  borderRadius: "12px",
40176
- filterType: z.TAKEN_CORNERS,
40175
+ filterType: D.TAKEN_CORNERS,
40177
40176
  isFooterVisible: !0
40178
40177
  }, se = {
40179
40178
  width: "670px",
40180
40179
  maxWidth: "670px",
40181
40180
  backgroundColor: "#2E3B46",
40182
40181
  borderRadius: "12px",
40183
- filterType: z.HOW_WAS_CORNER,
40182
+ filterType: D.HOW_WAS_CORNER,
40184
40183
  isFooterVisible: !0
40185
40184
  }, he = {
40186
40185
  width: "426px",
40187
40186
  maxWidth: "426px",
40188
40187
  backgroundColor: "#2E3B46",
40189
40188
  borderRadius: "12px",
40190
- filterType: z.ZONE,
40189
+ filterType: D.ZONE,
40191
40190
  isFooterVisible: !0
40192
40191
  }, H = {
40193
40192
  width: "285px",
40194
40193
  maxWidth: "285px",
40195
40194
  backgroundColor: "#2E3B46",
40196
40195
  borderRadius: "12px",
40197
- filterType: z.WHAT_HAPPENED,
40196
+ filterType: D.WHAT_HAPPENED,
40198
40197
  isFooterVisible: !0
40199
- }, de = x(!1), me = x(!1), ye = x(0), _e = x(0), Q = x({}), N = x(null), K = x(null), G = L(() => i.isForTemplateForm ? "0" : "unset"), pe = L(() => i.buttonFilterProps && i.buttonFilterProps.text ? i.buttonFilterProps.text : i.menuButtonText || j()), Se = L(() => i.isFromTemplates ? z.RESULTS : i.filterType), Ie = L(() => i.expansionPanelText || j()), O = x(null);
40198
+ }, de = x(!1), me = x(!1), ye = x(0), _e = x(0), Q = x({}), z = x(null), K = x(null), G = L(() => i.isForTemplateForm ? "0" : "unset"), pe = L(() => i.buttonFilterProps && i.buttonFilterProps.text ? i.buttonFilterProps.text : i.menuButtonText || N()), Se = L(() => i.isFromTemplates ? D.RESULTS : i.filterType), Ie = L(() => i.expansionPanelText || N()), O = x(null);
40200
40199
  U(
40201
40200
  () => i.filterType,
40202
40201
  (E) => {
40203
- if (E === z.PRODUCTIVITY)
40202
+ if (E === D.PRODUCTIVITY)
40204
40203
  Q.value = {
40205
40204
  ...s,
40206
40205
  ...i.templateProps,
40207
40206
  productivityCategories: i.filters || RY
40208
40207
  };
40209
- else if (E === z.PLAYS)
40208
+ else if (E === D.PLAYS)
40210
40209
  Q.value = {
40211
40210
  ...l,
40212
40211
  ...i.templateProps,
40213
40212
  fontFamily: i.buttonFilterProps ? i.buttonFilterProps.textFontFamily : "sans-serif",
40214
40213
  playsCategories: i.filters || OY
40215
40214
  };
40216
- else if (E === z.FIELD)
40215
+ else if (E === D.FIELD)
40217
40216
  Q.value = {
40218
40217
  ...r,
40219
40218
  ...i.templateProps,
40220
40219
  fieldComponentProps: i.fieldComponentProps,
40221
40220
  fieldAreas: i.filters || []
40222
40221
  };
40223
- else if (E === z.DETAILS)
40222
+ else if (E === D.DETAILS)
40224
40223
  Q.value = {
40225
40224
  ...c,
40226
40225
  ...i.templateProps,
@@ -40230,67 +40229,67 @@ const vU = { class: "dropdown" }, bU = { class: "selected-item" }, _U = {
40230
40229
  statisticType: i.filters ? i.filters.statisticType : $t.statisticType,
40231
40230
  isStatisticTypeVisible: i.filters ? i.filters.isStatisticTypeVisible : $t.isStatisticTypeVisible
40232
40231
  };
40233
- else if (E === z.TOURNAMENTS) {
40232
+ else if (E === D.TOURNAMENTS) {
40234
40233
  const k = i.filters || zY;
40235
- i.isOneTournamentOnly && k.forEach((B) => {
40236
- B.isSelected = B.id === i.defaultTournamentId;
40234
+ i.isOneTournamentOnly && k.forEach((V) => {
40235
+ V.isSelected = V.id === i.defaultTournamentId;
40237
40236
  }), Q.value = {
40238
40237
  ...u,
40239
40238
  ...i.templateProps,
40240
40239
  tournaments: k
40241
40240
  };
40242
40241
  } else
40243
- E === z.PERSONAL_DATA ? Q.value = {
40242
+ E === D.PERSONAL_DATA ? Q.value = {
40244
40243
  ...h,
40245
40244
  ...i.templateProps,
40246
40245
  token: i.token,
40247
40246
  awaitForFilters: i.awaitForFilters,
40248
40247
  personalDataFilters: i.filters
40249
- } : E === z.PLAYS_TYPES ? Q.value = {
40248
+ } : E === D.PLAYS_TYPES ? Q.value = {
40250
40249
  ...b,
40251
40250
  ...i.templateProps,
40252
40251
  playsGolstatsCategories: i.filters || DY
40253
- } : E === z.GOLSTATS ? Q.value = {
40252
+ } : E === D.GOLSTATS ? Q.value = {
40254
40253
  ...m,
40255
40254
  ...i.templateProps,
40256
40255
  playsGolstatsCategories: i.filters || jY
40257
- } : E === z.UNIVERSE ? Q.value = {
40256
+ } : E === D.UNIVERSE ? Q.value = {
40258
40257
  ...g,
40259
40258
  ...i.templateProps,
40260
40259
  universeFilters: i.filters || NY
40261
- } : E === z.DISTANCE ? Q.value = {
40260
+ } : E === D.DISTANCE ? Q.value = {
40262
40261
  ...p,
40263
40262
  ...i.templateProps,
40264
40263
  distanceFilters: i.filters || WY
40265
- } : E === z.RESULTS ? Q.value = {
40264
+ } : E === D.RESULTS ? Q.value = {
40266
40265
  ...v,
40267
40266
  ...i.templateProps,
40268
40267
  resultsFilters: i.filters || Vd
40269
- } : E === z.RESULTS_BY_TIME ? Q.value = {
40268
+ } : E === D.RESULTS_BY_TIME ? Q.value = {
40270
40269
  ...y,
40271
40270
  ...i.templateProps,
40272
40271
  resultsByTimeFilters: i.filters || Sl
40273
- } : E === z.GAMES ? Q.value = {
40272
+ } : E === D.GAMES ? Q.value = {
40274
40273
  ...C,
40275
40274
  ...i.templateProps,
40276
40275
  gamesFilters: i.filters || []
40277
- } : E === z.VIDEOS ? Q.value = {
40276
+ } : E === D.VIDEOS ? Q.value = {
40278
40277
  ..._,
40279
40278
  ...i.templateProps,
40280
40279
  token: i.token
40281
- } : E === z.TAKEN_CORNERS ? Q.value = {
40280
+ } : E === D.TAKEN_CORNERS ? Q.value = {
40282
40281
  ...$,
40283
40282
  ...i.templateProps,
40284
40283
  takenCornersFilters: i.filters || []
40285
- } : E === z.HOW_WAS_CORNER ? Q.value = {
40284
+ } : E === D.HOW_WAS_CORNER ? Q.value = {
40286
40285
  ...se,
40287
40286
  ...i.templateProps,
40288
40287
  howWasCornerFilters: i.filters || bl
40289
- } : E === z.ZONE ? Q.value = {
40288
+ } : E === D.ZONE ? Q.value = {
40290
40289
  ...he,
40291
40290
  ...i.templateProps,
40292
40291
  zoneFilters: i.filters || [...Za]
40293
- } : E === z.WHAT_HAPPENED && (Q.value = {
40292
+ } : E === D.WHAT_HAPPENED && (Q.value = {
40294
40293
  ...H,
40295
40294
  ...i.templateProps,
40296
40295
  whatHappenedFilters: i.filters || [..._l]
@@ -40301,26 +40300,26 @@ const vU = { class: "dropdown" }, bU = { class: "selected-item" }, _U = {
40301
40300
  ), U(
40302
40301
  () => i.filters,
40303
40302
  () => {
40304
- if (i.filterType === z.PRODUCTIVITY)
40303
+ if (i.filterType === D.PRODUCTIVITY)
40305
40304
  Q.value = {
40306
40305
  ...s,
40307
40306
  ...i.templateProps,
40308
40307
  productivityCategories: i.filters
40309
40308
  };
40310
- else if (i.filterType === z.PLAYS)
40309
+ else if (i.filterType === D.PLAYS)
40311
40310
  Q.value = {
40312
40311
  ...l,
40313
40312
  ...i.templateProps,
40314
40313
  playsCategories: i.filters
40315
40314
  };
40316
- else if (i.filterType === z.FIELD)
40315
+ else if (i.filterType === D.FIELD)
40317
40316
  Q.value = {
40318
40317
  ...r,
40319
40318
  ...i.templateProps,
40320
40319
  fieldComponentProps: i.fieldComponentProps,
40321
40320
  fieldAreas: i.filters
40322
40321
  };
40323
- else if (i.filterType === z.DETAILS)
40322
+ else if (i.filterType === D.DETAILS)
40324
40323
  Q.value = {
40325
40324
  ...c,
40326
40325
  ...i.templateProps,
@@ -40330,7 +40329,7 @@ const vU = { class: "dropdown" }, bU = { class: "selected-item" }, _U = {
40330
40329
  statisticType: i.filters ? i.filters.statisticType : $t.statisticType,
40331
40330
  isStatisticVisible: i.filters ? i.filters.isStatisticVisible : $t.isStatisticVisible
40332
40331
  };
40333
- else if (i.filterType === z.TOURNAMENTS) {
40332
+ else if (i.filterType === D.TOURNAMENTS) {
40334
40333
  const E = i.filters;
40335
40334
  i.isOneTournamentOnly && E.forEach((k) => {
40336
40335
  k.isSelected = k.id === i.defaultTournamentId;
@@ -40340,57 +40339,57 @@ const vU = { class: "dropdown" }, bU = { class: "selected-item" }, _U = {
40340
40339
  tournaments: E
40341
40340
  };
40342
40341
  } else
40343
- i.filterType === z.PERSONAL_DATA ? Q.value = {
40342
+ i.filterType === D.PERSONAL_DATA ? Q.value = {
40344
40343
  ...h,
40345
40344
  ...i.templateProps,
40346
40345
  token: i.token,
40347
40346
  awaitForFilters: i.awaitForFilters,
40348
40347
  personalDataFilters: i.filters
40349
- } : i.filterType === z.PLAYS_TYPES ? Q.value = {
40348
+ } : i.filterType === D.PLAYS_TYPES ? Q.value = {
40350
40349
  ...b,
40351
40350
  ...i.templateProps,
40352
40351
  playsGolstatsCategories: i.filters
40353
- } : i.filterType === z.GOLSTATS ? Q.value = {
40352
+ } : i.filterType === D.GOLSTATS ? Q.value = {
40354
40353
  ...m,
40355
40354
  ...i.templateProps,
40356
40355
  playsGolstatsCategories: i.filters
40357
- } : i.filterType === z.UNIVERSE ? Q.value = {
40356
+ } : i.filterType === D.UNIVERSE ? Q.value = {
40358
40357
  ...g,
40359
40358
  ...i.templateProps,
40360
40359
  universeFilters: i.filters
40361
- } : i.filterType === z.DISTANCE ? Q.value = {
40360
+ } : i.filterType === D.DISTANCE ? Q.value = {
40362
40361
  ...p,
40363
40362
  ...i.templateProps,
40364
40363
  distanceFilters: i.filters
40365
- } : i.filterType === z.RESULTS ? Q.value = {
40364
+ } : i.filterType === D.RESULTS ? Q.value = {
40366
40365
  ...v,
40367
40366
  ...i.templateProps,
40368
40367
  resultsFilters: i.filters || Vd
40369
- } : i.filterType === z.RESULTS_BY_TIME ? Q.value = {
40368
+ } : i.filterType === D.RESULTS_BY_TIME ? Q.value = {
40370
40369
  ...y,
40371
40370
  ...i.templateProps,
40372
40371
  resultsByTimeFilters: i.filters || Sl
40373
- } : i.filterType === z.GAMES ? Q.value = {
40372
+ } : i.filterType === D.GAMES ? Q.value = {
40374
40373
  ...C,
40375
40374
  ...i.templateProps,
40376
40375
  gamesFilters: i.filters
40377
- } : i.filterType === z.VIDEOS ? Q.value = {
40376
+ } : i.filterType === D.VIDEOS ? Q.value = {
40378
40377
  ..._,
40379
40378
  ...i.templateProps,
40380
40379
  token: i.token
40381
- } : i.filterType === z.TAKEN_CORNERS ? Q.value = {
40380
+ } : i.filterType === D.TAKEN_CORNERS ? Q.value = {
40382
40381
  ...$,
40383
40382
  ...i.templateProps,
40384
40383
  takenCornersFilters: i.filters || []
40385
- } : i.filterType === z.HOW_WAS_CORNER ? Q.value = {
40384
+ } : i.filterType === D.HOW_WAS_CORNER ? Q.value = {
40386
40385
  ...se,
40387
40386
  ...i.templateProps,
40388
40387
  howWasCornerFilters: i.filters || bl
40389
- } : i.filterType === z.ZONE ? Q.value = {
40388
+ } : i.filterType === D.ZONE ? Q.value = {
40390
40389
  ...he,
40391
40390
  ...i.templateProps,
40392
40391
  zoneFilters: i.filters || [...Za]
40393
- } : i.filterType === z.WHAT_HAPPENED && (Q.value = {
40392
+ } : i.filterType === D.WHAT_HAPPENED && (Q.value = {
40394
40393
  ...H,
40395
40394
  ...i.templateProps,
40396
40395
  whatHappenedFilters: i.filters || [..._l]
@@ -40408,43 +40407,43 @@ const vU = { class: "dropdown" }, bU = { class: "selected-item" }, _U = {
40408
40407
  function P() {
40409
40408
  i.isExpansionPanel ? me.value = !1 : de.value = !1, t("apply", O.value);
40410
40409
  }
40411
- function j() {
40412
- if (i.filterType === z.PRODUCTIVITY)
40410
+ function N() {
40411
+ if (i.filterType === D.PRODUCTIVITY)
40413
40412
  return i.isFromTemplates ? "Tipos de jugadas" : "Características de juego";
40414
- if (i.filterType === z.PLAYS)
40413
+ if (i.filterType === D.PLAYS)
40415
40414
  return "Jugada(s)";
40416
- if (i.filterType === z.FIELD)
40415
+ if (i.filterType === D.FIELD)
40417
40416
  return "Zona de cancha";
40418
- if (i.filterType === z.DETAILS)
40417
+ if (i.filterType === D.DETAILS)
40419
40418
  return "Detalles";
40420
- if (i.filterType === z.TOURNAMENTS)
40419
+ if (i.filterType === D.TOURNAMENTS)
40421
40420
  return "Ligas";
40422
- if (i.filterType === z.PERSONAL_DATA)
40421
+ if (i.filterType === D.PERSONAL_DATA)
40423
40422
  return "Datos personales";
40424
- if (i.filterType === z.PLAYS_TYPES)
40423
+ if (i.filterType === D.PLAYS_TYPES)
40425
40424
  return "Tipos de jugada";
40426
- if (i.filterType === z.GOLSTATS)
40425
+ if (i.filterType === D.GOLSTATS)
40427
40426
  return "Filtros Golstats";
40428
- if (i.filterType === z.UNIVERSE)
40427
+ if (i.filterType === D.UNIVERSE)
40429
40428
  return "Universo";
40430
- if (i.filterType === z.DISTANCE)
40429
+ if (i.filterType === D.DISTANCE)
40431
40430
  return "Distancia";
40432
- if ([z.RESULTS, z.RESULTS_BY_TIME].includes(i.filterType))
40431
+ if ([D.RESULTS, D.RESULTS_BY_TIME].includes(i.filterType))
40433
40432
  return "Resultados";
40434
- if (i.filterType === z.GAMES)
40433
+ if (i.filterType === D.GAMES)
40435
40434
  return "Partidos";
40436
- if (i.filterType === z.VIDEOS)
40435
+ if (i.filterType === D.VIDEOS)
40437
40436
  return "Videos";
40438
- if (i.filterType === z.TAKEN_CORNERS)
40437
+ if (i.filterType === D.TAKEN_CORNERS)
40439
40438
  return "¿Quién cobró?";
40440
- if (i.filterType === z.HOW_WAS_CORNER)
40439
+ if (i.filterType === D.HOW_WAS_CORNER)
40441
40440
  return "¿Cómo fue cobrado?";
40442
- if (i.filterType === z.ZONE)
40441
+ if (i.filterType === D.ZONE)
40443
40442
  return "Zona";
40444
- if (i.filterType === z.WHAT_HAPPENED)
40443
+ if (i.filterType === D.WHAT_HAPPENED)
40445
40444
  return "¿Qué sucedió?";
40446
40445
  }
40447
- function V(E) {
40446
+ function B(E) {
40448
40447
  t("click-parameters", E);
40449
40448
  }
40450
40449
  function ee(E) {
@@ -40461,7 +40460,7 @@ const vU = { class: "dropdown" }, bU = { class: "selected-item" }, _U = {
40461
40460
  _e.value = E;
40462
40461
  }
40463
40462
  function M(E = null) {
40464
- N.value && N.value.clearFilters(E), K.value && K.value.clearFilters(E);
40463
+ z.value && z.value.clearFilters(E), K.value && K.value.clearFilters(E);
40465
40464
  }
40466
40465
  return a({
40467
40466
  clearFilters: M
@@ -40469,7 +40468,7 @@ const vU = { class: "dropdown" }, bU = { class: "selected-item" }, _U = {
40469
40468
  e.isExpansionPanel ? (n(), d("div", GY, [
40470
40469
  T(R(LY), ge(e.expansionPanelProps, {
40471
40470
  modelValue: me.value,
40472
- "onUpdate:modelValue": k[0] || (k[0] = (B) => me.value = B),
40471
+ "onUpdate:modelValue": k[0] || (k[0] = (V) => me.value = V),
40473
40472
  text: Ie.value,
40474
40473
  "text-color": "rgba(255,255,255,.7)",
40475
40474
  icon: "/" + i.filterType + "-icon.png"
@@ -40496,7 +40495,7 @@ const vU = { class: "dropdown" }, bU = { class: "selected-item" }, _U = {
40496
40495
  onApply: P,
40497
40496
  "onUpdate:filters": oe,
40498
40497
  onTotalFilters: X,
40499
- onClickParameters: V
40498
+ onClickParameters: B
40500
40499
  }), null, 16, ["season", "is-female", "is-seleccion", "is-one-tournament-only", "is-from-templates", "is-for-template-form", "default-tournament-id", "productivity-max-categories", "productivity-min-categories"])
40501
40500
  ])
40502
40501
  ]),
@@ -40505,7 +40504,7 @@ const vU = { class: "dropdown" }, bU = { class: "selected-item" }, _U = {
40505
40504
  ])) : (n(), d("div", JY, [
40506
40505
  T(R(LZ), {
40507
40506
  modelValue: de.value,
40508
- "onUpdate:modelValue": k[1] || (k[1] = (B) => de.value = B),
40507
+ "onUpdate:modelValue": k[1] || (k[1] = (V) => de.value = V),
40509
40508
  width: e.width,
40510
40509
  "left-menu": G.value,
40511
40510
  "menu-margin-top": 18
@@ -40533,7 +40532,7 @@ const vU = { class: "dropdown" }, bU = { class: "selected-item" }, _U = {
40533
40532
  "productivity-max-categories": e.productivityMaxCategories,
40534
40533
  "productivity-min-categories": e.productivityMinCategories,
40535
40534
  ref_key: "filterTemplateMenu",
40536
- ref: N,
40535
+ ref: z,
40537
40536
  onChangeFieldAreas: ee,
40538
40537
  onChangeCategoriesSelected: F,
40539
40538
  onChangeFiltersSelected: F,
@@ -40541,7 +40540,7 @@ const vU = { class: "dropdown" }, bU = { class: "selected-item" }, _U = {
40541
40540
  "onUpdate:filters": oe,
40542
40541
  onTotalFilters: X,
40543
40542
  onApply: P,
40544
- onClickParameters: V
40543
+ onClickParameters: B
40545
40544
  }), null, 16, ["season", "is-female", "is-scouting", "is-seleccion", "is-one-tournament-only", "default-tournament-id", "is-from-templates", "is-for-template-form", "productivity-max-categories", "productivity-min-categories"])
40546
40545
  ]),
40547
40546
  _: 1
@@ -42555,7 +42554,7 @@ const Ui = "/group-427321501.svg", S1 = "/shape.svg", pK = "_filtersContainer_b9
42555
42554
  seasonBytournament: [],
42556
42555
  seasonActive: 0,
42557
42556
  updateFilterTeamsScouting: 0,
42558
- filtersTypes: z,
42557
+ filtersTypes: D,
42559
42558
  token: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",
42560
42559
  fVnationalities: /* @__PURE__ */ new Set(),
42561
42560
  fVzone: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16],
@@ -46804,7 +46803,7 @@ const Xee = /* @__PURE__ */ jee(jo, [["render", Kee], ["__scopeId", "data-v-f3ee
46804
46803
  for (const [i, s] of a)
46805
46804
  t[i] = s;
46806
46805
  return t;
46807
- }, C1 = (e) => (ve("data-v-943c6e4b"), e = e(), be(), e), Qee = {
46806
+ }, C1 = (e) => (ve("data-v-16177785"), e = e(), be(), e), Qee = {
46808
46807
  key: 0,
46809
46808
  class: "overlay"
46810
46809
  }, ete = { class: "name" }, tte = ["onClick"], ate = /* @__PURE__ */ C1(() => /* @__PURE__ */ o("svg", {
@@ -46907,7 +46906,7 @@ const Xee = /* @__PURE__ */ jee(jo, [["render", Kee], ["__scopeId", "data-v-f3ee
46907
46906
  ]))), 128))
46908
46907
  ], 4));
46909
46908
  }
46910
- }, rte = /* @__PURE__ */ w1(ote, [["__scopeId", "data-v-943c6e4b"]]), st = (e) => (ve("data-v-d89df432"), e = e(), be(), e), nte = { class: "table__static-column" }, dte = /* @__PURE__ */ st(() => /* @__PURE__ */ o("div", { class: "static-title column-title" }, null, -1)), cte = { class: "container" }, ute = { class: "details-row__info" }, pte = { class: "details-row__info__personal" }, hte = { class: "bold" }, yte = { class: "bold" }, mte = { class: "bold" }, fte = { class: "bold" }, gte = { class: "details-row__info__games" }, vte = { class: "bold" }, bte = { class: "bold" }, _te = ["onClick"], Ste = /* @__PURE__ */ st(() => /* @__PURE__ */ o("div", null, "Ver gráfica", -1)), wte = /* @__PURE__ */ st(() => /* @__PURE__ */ o("svg", {
46909
+ }, rte = /* @__PURE__ */ w1(ote, [["__scopeId", "data-v-16177785"]]), st = (e) => (ve("data-v-bfcf1c28"), e = e(), be(), e), nte = { class: "table__static-column" }, dte = /* @__PURE__ */ st(() => /* @__PURE__ */ o("div", { class: "static-title column-title" }, null, -1)), cte = { class: "container" }, ute = { class: "details-row__info" }, pte = { class: "details-row__info__personal" }, hte = { class: "bold" }, yte = { class: "bold" }, mte = { class: "bold" }, fte = { class: "bold" }, gte = { class: "details-row__info__games" }, vte = { class: "bold" }, bte = { class: "bold" }, _te = ["onClick"], Ste = /* @__PURE__ */ st(() => /* @__PURE__ */ o("div", null, "Ver gráfica", -1)), wte = /* @__PURE__ */ st(() => /* @__PURE__ */ o("svg", {
46911
46910
  width: "17",
46912
46911
  height: "16",
46913
46912
  viewBox: "0 0 17 16",
@@ -47060,7 +47059,7 @@ const Xee = /* @__PURE__ */ jee(jo, [["render", Kee], ["__scopeId", "data-v-f3ee
47060
47059
  fill: "#D9D9D9"
47061
47060
  }, null, -1)), Qte = [
47062
47061
  Xte
47063
- ], eae = /* @__PURE__ */ at('<div class="titles scrollable-row" data-v-d89df432><div class="column-title" data-v-d89df432>Equipo</div><div class="column-title" data-v-d89df432>Posición</div><div class="column-title" data-v-d89df432>Edad</div><div class="column-title" data-v-d89df432>País</div><div class="column-title" data-v-d89df432>Partidos Jugados</div><div class="column-title" data-v-d89df432>Minutos Jugados</div><div class="column-title" data-v-d89df432>Liga</div><div class="column-title" data-v-d89df432>Videos</div><div class="column-title" data-v-d89df432></div></div>', 1), tae = { class: "team-logo" }, aae = ["src"], iae = { class: "team-name data-info" }, sae = ["src"], lae = {
47062
+ ], eae = /* @__PURE__ */ at('<div class="titles scrollable-row" data-v-bfcf1c28><div class="column-title" data-v-bfcf1c28>Equipo</div><div class="column-title" data-v-bfcf1c28>Posición</div><div class="column-title" data-v-bfcf1c28>Edad</div><div class="column-title" data-v-bfcf1c28>País</div><div class="column-title" data-v-bfcf1c28>Partidos Jugados</div><div class="column-title" data-v-bfcf1c28>Minutos Jugados</div><div class="column-title" data-v-bfcf1c28>Liga</div><div class="column-title" data-v-bfcf1c28>Videos</div><div class="column-title" data-v-bfcf1c28></div></div>', 1), tae = { class: "team-logo" }, aae = ["src"], iae = { class: "team-name data-info" }, sae = ["src"], lae = {
47064
47063
  __name: "GSC-TableScrollable",
47065
47064
  props: {
47066
47065
  players: {
@@ -47102,18 +47101,18 @@ const Xee = /* @__PURE__ */ jee(jo, [["render", Kee], ["__scopeId", "data-v-f3ee
47102
47101
  () => t.players,
47103
47102
  (O) => {
47104
47103
  O && O.length && (l.value = O.map((F, P) => {
47105
- const j = P + 1, V = {
47104
+ const N = P + 1, B = {
47106
47105
  ...F,
47107
- position: j < 10 ? `0${j}` : `${j}`,
47106
+ position: N < 10 ? `0${N}` : `${N}`,
47108
47107
  isSelected: !1,
47109
47108
  isExpanded: !1,
47110
47109
  isOdd: P % 2 !== 0,
47111
47110
  index: P
47112
47111
  };
47113
- return V.parameters && Object.entries(V.parameters).forEach(([ee, W]) => {
47114
- const oe = V.stats.find((X) => X.custom_category_id === Number(ee));
47112
+ return B.parameters && Object.entries(B.parameters).forEach(([ee, W]) => {
47113
+ const oe = B.stats.find((X) => X.custom_category_id === Number(ee));
47115
47114
  oe && (oe.parameters = W);
47116
- }), V;
47115
+ }), B;
47117
47116
  }));
47118
47117
  },
47119
47118
  { immediate: !0, deep: !0 }
@@ -47139,14 +47138,13 @@ const Xee = /* @__PURE__ */ jee(jo, [["render", Kee], ["__scopeId", "data-v-f3ee
47139
47138
  a("click-parameters", O);
47140
47139
  }
47141
47140
  function C(O) {
47142
- const F = O.player || O.objeto_player, P = F ? F.player_id || F.id || F.playerId : O.id || O.player_id, j = F ? F.team_id || F.teamId : O.team_id || O.teamId, V = {
47141
+ const F = O.player || O.objeto_player, P = F ? F.player_id || F.id || F.playerId : O.id || O.player_id, N = {
47143
47142
  isFeaturedPlayers: !1,
47144
47143
  mainSectionType: 1,
47145
47144
  playListType: 2,
47146
47145
  gameIds: null,
47147
47146
  playerIds: P ? [P] : [],
47148
47147
  goalkeeperIds: [],
47149
- teamId: j || 0,
47150
47148
  matchResult: [1, 2, 3],
47151
47149
  categorySingleName: "",
47152
47150
  isRivalSubject: !1,
@@ -47159,14 +47157,14 @@ const Xee = /* @__PURE__ */ jee(jo, [["render", Kee], ["__scopeId", "data-v-f3ee
47159
47157
  playListTitle: "Jugadas Relevantes"
47160
47158
  }
47161
47159
  };
47162
- if (O.stat && O.stat.parameters && (V.parameters = O.stat.parameters), O.stat && O.stat.seasons && O.stat.seasons.length || O.seasons && O.seasons.length) {
47163
- const ee = [
47160
+ if (O.stat && O.stat.parameters && (N.parameters = O.stat.parameters), O.stat && O.stat.seasons && O.stat.seasons.length || O.seasons && O.seasons.length) {
47161
+ const B = [
47164
47162
  ...O.stat && O.stat.seasons && O.stat.seasons.length ? O.stat.seasons : O.seasons
47165
47163
  ];
47166
- ee.sort((W, oe) => W - oe), V.seasonId = ee.shift(), V.seasonsIds = ee;
47164
+ B.sort((ee, W) => ee - W), N.seasonId = B.shift(), N.seasonsIds = B;
47167
47165
  } else
47168
- (O.season_id || O.seasonId) && (V.seasonId = O.season_id || O.seasonId);
47169
- O.stat ? O.stat.category_id ? V.categoryIds = O.stat.category_id : O.stat.custom_category_id && (V.customCategoryIds = [O.stat.custom_category_id]) : V.categoryIds = he(O.player_position), a("open-media", V);
47166
+ (O.season_id || O.seasonId) && (N.seasonId = O.season_id || O.seasonId);
47167
+ O.stat ? O.stat.category_id && O.stat.category_id.length ? N.categoryIds = O.stat.category_id : O.stat.custom_category_id && (N.customCategoryIds = [O.stat.custom_category_id]) : N.categoryIds = he(O.player_position), a("open-media", N);
47170
47168
  }
47171
47169
  function $() {
47172
47170
  i = new ResizeObserver((O) => {
@@ -47229,7 +47227,7 @@ const Xee = /* @__PURE__ */ jee(jo, [["render", Kee], ["__scopeId", "data-v-f3ee
47229
47227
  }
47230
47228
  function H(O, F) {
47231
47229
  F.isSelected = O;
47232
- const P = l.value.filter((j) => j.isSelected);
47230
+ const P = l.value.filter((N) => N.isSelected);
47233
47231
  a("change-selected-players", P);
47234
47232
  }
47235
47233
  function de(O) {
@@ -47249,7 +47247,7 @@ const Xee = /* @__PURE__ */ jee(jo, [["render", Kee], ["__scopeId", "data-v-f3ee
47249
47247
  O.isExpanded = !1, m.value = null;
47250
47248
  return;
47251
47249
  }
47252
- const F = l.value.find((j) => j.isExpanded);
47250
+ const F = l.value.find((N) => N.isExpanded);
47253
47251
  if (F && (F.isExpanded = !1), F) {
47254
47252
  m.value = O;
47255
47253
  return;
@@ -47257,14 +47255,14 @@ const Xee = /* @__PURE__ */ jee(jo, [["render", Kee], ["__scopeId", "data-v-f3ee
47257
47255
  const P = document.querySelectorAll(".details-row")[O.index];
47258
47256
  b.value = O.index, se(P), O.isExpanded = !0;
47259
47257
  }
47260
- let N = !1, K, G, pe = function(O) {
47261
- N = !0, K = O.pageX - g.value.offsetLeft, G = g.value.scrollLeft;
47258
+ let z = !1, K, G, pe = function(O) {
47259
+ z = !0, K = O.pageX - g.value.offsetLeft, G = g.value.scrollLeft;
47262
47260
  }, Se = function() {
47263
- N = !1;
47261
+ z = !1;
47264
47262
  };
47265
47263
  function Ie() {
47266
47264
  g.value && (g.value.addEventListener("mousemove", (O) => {
47267
- if (!N)
47265
+ if (!z)
47268
47266
  return;
47269
47267
  const F = O.pageX - g.value.offsetLeft - K;
47270
47268
  g.value.scrollLeft = G - F;
@@ -47329,23 +47327,23 @@ const Xee = /* @__PURE__ */ jee(jo, [["render", Kee], ["__scopeId", "data-v-f3ee
47329
47327
  o("div", {
47330
47328
  role: "button",
47331
47329
  class: "button",
47332
- onClick: (j) => _e(P)
47330
+ onClick: (N) => _e(P)
47333
47331
  }, Cte, 8, _te),
47334
47332
  e.isTableFromList ? (n(), d("div", {
47335
47333
  key: 0,
47336
47334
  role: "button",
47337
47335
  class: "button",
47338
- onClick: (j) => me(P)
47336
+ onClick: (N) => me(P)
47339
47337
  }, Fte, 8, xte)) : (n(), d("div", {
47340
47338
  key: 1,
47341
47339
  role: "button",
47342
47340
  class: "button",
47343
- onClick: (j) => ye(P)
47341
+ onClick: (N) => ye(P)
47344
47342
  }, Ite, 8, kte)),
47345
47343
  o("div", {
47346
47344
  role: "button",
47347
47345
  class: "button green",
47348
- onClick: (j) => de(P)
47346
+ onClick: (N) => de(P)
47349
47347
  }, Vte, 8, Ete)
47350
47348
  ], 4)
47351
47349
  ])
@@ -47360,7 +47358,7 @@ const Xee = /* @__PURE__ */ jee(jo, [["render", Kee], ["__scopeId", "data-v-f3ee
47360
47358
  fontFamily: "Poppins-Regular",
47361
47359
  labelFontSize: "14px",
47362
47360
  "model-value": P.isSelected,
47363
- "onUpdate:modelValue": (j) => H(j, P)
47361
+ "onUpdate:modelValue": (N) => H(N, P)
47364
47362
  }, null, 8, ["model-value", "onUpdate:modelValue"])) : S("", !0),
47365
47363
  o("div", Bte, [
47366
47364
  o("div", Lte, w(P.position), 1),
@@ -47371,7 +47369,7 @@ const Xee = /* @__PURE__ */ jee(jo, [["render", Kee], ["__scopeId", "data-v-f3ee
47371
47369
  viewBox: "0 0 20 20",
47372
47370
  fill: "none",
47373
47371
  xmlns: "http://www.w3.org/2000/svg",
47374
- onClick: (j) => me(P)
47372
+ onClick: (N) => me(P)
47375
47373
  }, Dte, 8, Rte)) : (n(), d("svg", {
47376
47374
  key: 1,
47377
47375
  width: "20",
@@ -47379,7 +47377,7 @@ const Xee = /* @__PURE__ */ jee(jo, [["render", Kee], ["__scopeId", "data-v-f3ee
47379
47377
  viewBox: "0 0 20 20",
47380
47378
  fill: "none",
47381
47379
  xmlns: "http://www.w3.org/2000/svg",
47382
- onClick: (j) => ye(P)
47380
+ onClick: (N) => ye(P)
47383
47381
  }, Hte, 8, jte)),
47384
47382
  o("div", Jte, [
47385
47383
  o("div", null, [
@@ -47399,7 +47397,7 @@ const Xee = /* @__PURE__ */ jee(jo, [["render", Kee], ["__scopeId", "data-v-f3ee
47399
47397
  viewBox: "0 0 12 8",
47400
47398
  fill: "#D9D9D9",
47401
47399
  xmlns: "http://www.w3.org/2000/svg",
47402
- onClick: (j) => Q(P)
47400
+ onClick: (N) => Q(P)
47403
47401
  }, Qte, 10, Kte))
47404
47402
  ])
47405
47403
  ], 2))), 128))
@@ -47466,7 +47464,7 @@ const Xee = /* @__PURE__ */ jee(jo, [["render", Kee], ["__scopeId", "data-v-f3ee
47466
47464
  "border-color": "#55636e",
47467
47465
  "text-value": "Ver videos",
47468
47466
  "font-size": "10px",
47469
- onClick: (j) => C(P)
47467
+ onClick: (N) => C(P)
47470
47468
  }, null, 8, ["onClick"])
47471
47469
  ], 2),
47472
47470
  o("div", {
@@ -47485,7 +47483,7 @@ const Xee = /* @__PURE__ */ jee(jo, [["render", Kee], ["__scopeId", "data-v-f3ee
47485
47483
  ], 512)
47486
47484
  ], 4));
47487
47485
  }
47488
- }, oae = /* @__PURE__ */ w1(lae, [["__scopeId", "data-v-d89df432"]]), Wo = (e, a) => {
47486
+ }, oae = /* @__PURE__ */ w1(lae, [["__scopeId", "data-v-bfcf1c28"]]), Wo = (e, a) => {
47489
47487
  const t = e.__vccOpts || e;
47490
47488
  for (const [i, s] of a)
47491
47489
  t[i] = s;
@@ -53239,7 +53237,7 @@ const mce = /* @__PURE__ */ qe(Yo, [["render", yce], ["__scopeId", "data-v-01e14
53239
53237
  seasonBytournament: [],
53240
53238
  seasonActive: 0,
53241
53239
  updateFilterTeamsScouting: 0,
53242
- filtersTypes: z,
53240
+ filtersTypes: D,
53243
53241
  personalDataFilters: _a,
53244
53242
  token: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",
53245
53243
  fVnationalities: /* @__PURE__ */ new Set(),
@@ -56929,7 +56927,7 @@ const O1e = {
56929
56927
  ],
56930
56928
  tokenFree: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",
56931
56929
  fVzone: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16],
56932
- filtersTypes: z,
56930
+ filtersTypes: D,
56933
56931
  personalDataFilters: _a,
56934
56932
  personalDataSubFiltersTypes: Fe,
56935
56933
  tournamentsToFilter: $ee,
@@ -58360,21 +58358,21 @@ const wpe = /* @__PURE__ */ qe(_pe, [["render", Spe]]), Cpe = { class: "elegible
58360
58358
  })
58361
58359
  ], [oe, X] = await Promise.all(W), M = await oe.json(), E = await X.json();
58362
58360
  M.forEach((k) => {
58363
- k.seasonsIds = new Set(k.seasons.map((B) => B.id)), k.availableTournaments = k.seasonsIds ? E.reduce((B, re) => {
58361
+ k.seasonsIds = new Set(k.seasons.map((V) => V.id)), k.availableTournaments = k.seasonsIds ? E.reduce((V, re) => {
58364
58362
  if (re.seasons.some(
58365
58363
  (mt) => k.seasonsIds.has(mt.id)
58366
58364
  )) {
58367
58365
  const mt = re.seasons.filter(
58368
58366
  (pi) => k.seasonsIds.has(pi.id)
58369
58367
  );
58370
- B.push({
58368
+ V.push({
58371
58369
  ...re.tournament,
58372
58370
  seasonsIds: k.seasonsIds,
58373
58371
  seasons: mt,
58374
58372
  teamId: k.team_id
58375
58373
  });
58376
58374
  }
58377
- return B;
58375
+ return V;
58378
58376
  }, []) : [];
58379
58377
  }), y.value = M.filter((k) => k.availableTournaments.length > 0), _.value = y.value[0];
58380
58378
  } catch (W) {
@@ -58455,7 +58453,7 @@ const wpe = /* @__PURE__ */ qe(_pe, [["render", Spe]]), Cpe = { class: "elegible
58455
58453
  default:
58456
58454
  return Qd;
58457
58455
  }
58458
- }), N = L(() => p.value || g.value ? "100%" : "179px"), K = (W) => {
58456
+ }), z = L(() => p.value || g.value ? "100%" : "179px"), K = (W) => {
58459
58457
  a("openmedia", W);
58460
58458
  }, G = (W) => {
58461
58459
  a("showGraph", W);
@@ -58474,10 +58472,10 @@ const wpe = /* @__PURE__ */ qe(_pe, [["render", Spe]]), Cpe = { class: "elegible
58474
58472
  function P(W) {
58475
58473
  a("tops-loaded", W);
58476
58474
  }
58477
- const j = (W) => {
58475
+ const N = (W) => {
58478
58476
  v.value = W, he();
58479
58477
  };
58480
- function V(W) {
58478
+ function B(W) {
58481
58479
  _.value = W;
58482
58480
  }
58483
58481
  function ee(W) {
@@ -58502,7 +58500,7 @@ const wpe = /* @__PURE__ */ qe(_pe, [["render", Spe]]), Cpe = { class: "elegible
58502
58500
  T(R(U1), ge(i, {
58503
58501
  "model-value": _.value,
58504
58502
  items: y.value,
58505
- onInput: V,
58503
+ onInput: B,
58506
58504
  "onUpdate:modelValue": ee
58507
58505
  }), {
58508
58506
  default: ne(({ selectedItem: X }) => [
@@ -58520,8 +58518,8 @@ const wpe = /* @__PURE__ */ qe(_pe, [["render", Spe]]), Cpe = { class: "elegible
58520
58518
  _.value && _.value.availableTournaments && _.value.availableTournaments.length ? (n(), ie(R(vp), {
58521
58519
  key: 0,
58522
58520
  items: _.value.availableTournaments,
58523
- width: N.value,
58524
- onInput: j
58521
+ width: z.value,
58522
+ onInput: N
58525
58523
  }, null, 8, ["items", "width"])) : S("", !0)
58526
58524
  ], 2)
58527
58525
  ], 64)) : S("", !0)