@golstats/gsc-table-scrollable 1.0.14 → 1.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { useCssVars as at, ref as g, computed as O, watch as V, createElementBlock as r, openBlock as l, normalizeClass as y, createElementVNode as t, createCommentVNode as L, normalizeStyle as B, Fragment as T, toDisplayString as h, pushScopeId as W, popScopeId as H, onMounted as rt, renderList as z, onBeforeUnmount as Ct, createVNode as ot, createBlock as st, Transition as kt, withCtx as wt, withDirectives as bt, createTextVNode as D, vShow as yt, unref as it } from "vue";
1
+ import { useCssVars as at, ref as g, computed as I, watch as D, createElementBlock as a, openBlock as n, normalizeClass as y, createElementVNode as t, createCommentVNode as S, normalizeStyle as B, Fragment as O, toDisplayString as h, pushScopeId as W, popScopeId as H, onMounted as rt, renderList as z, onBeforeUnmount as Ct, createVNode as ot, createBlock as st, Transition as kt, withCtx as wt, withDirectives as bt, createTextVNode as F, vShow as yt, unref as it } from "vue";
2
2
  const xt = (s, u) => {
3
3
  const i = s.__vccOpts || s;
4
4
  for (const [f, _] of u)
@@ -13,7 +13,7 @@ const xt = (s, u) => {
13
13
  }, Lt = ["fill"], $t = {
14
14
  key: 0,
15
15
  class: "checkbox__teams"
16
- }, Bt = { class: "checkbox__teams__logo" }, Rt = ["src"], Et = { class: "checkbox__teams__logo" }, Pt = ["src"], It = {
16
+ }, Bt = { class: "checkbox__teams__logo" }, Rt = ["src"], Et = { class: "checkbox__teams__logo" }, Pt = ["src"], Tt = {
17
17
  __name: "GSC-Checkbox",
18
18
  props: {
19
19
  width: {
@@ -128,7 +128,7 @@ const xt = (s, u) => {
128
128
  "7bd9d47b": s.width,
129
129
  "34dc7ddc": s.height
130
130
  }));
131
- const f = g(!1), _ = O(() => {
131
+ const f = g(!1), _ = I(() => {
132
132
  const p = {
133
133
  color: i.boxValueColor,
134
134
  "font-family": i.fontFamily,
@@ -139,12 +139,12 @@ const xt = (s, u) => {
139
139
  "margin-top": i.boxMarginTop
140
140
  };
141
141
  return f.value ? (p["background-color"] = i.boxBackgroundColor, p.border = `solid ${i.boxBorderWidth} ${i.boxBackgroundColor}`) : p.border = `solid ${i.boxBorderWidth} ${i.boxBorderColor}`, p;
142
- }), m = O(() => ({
142
+ }), m = I(() => ({
143
143
  "font-family": i.boxValueFontFamily,
144
144
  "font-size": i.boxValueFontSize,
145
145
  color: i.boxValueColor,
146
146
  "line-height": 1
147
- })), S = O(() => {
147
+ })), M = I(() => {
148
148
  const p = {
149
149
  color: i.labelColor,
150
150
  "font-family": i.fontFamily,
@@ -154,7 +154,7 @@ const xt = (s, u) => {
154
154
  };
155
155
  return (i.boxPosition === "left" || i.boxPosition === "right") && (p[`margin-${i.boxPosition}`] = i.isBoxOnly ? "0" : i.teamsIds ? "8px" : "10px"), p;
156
156
  });
157
- V(
157
+ D(
158
158
  () => i.modelValue,
159
159
  (p) => {
160
160
  p !== f.value && (f.value = p);
@@ -167,7 +167,7 @@ const xt = (s, u) => {
167
167
  function E(p) {
168
168
  return `${{}.TEAM_LOGOS_URL || "https://golstatsimages.blob.core.windows.net/teams-80/"}${p}.png`;
169
169
  }
170
- return (p, I) => (l(), r("div", {
170
+ return (p, T) => (n(), a("div", {
171
171
  class: y(["checkbox", `box-${s.boxPosition}`]),
172
172
  onClick: R
173
173
  }, [
@@ -175,22 +175,22 @@ const xt = (s, u) => {
175
175
  class: "checkbox__box",
176
176
  style: B(_.value)
177
177
  }, [
178
- f.value ? (l(), r(T, { key: 0 }, [
179
- i.boxValue ? (l(), r("div", {
178
+ f.value ? (n(), a(O, { key: 0 }, [
179
+ i.boxValue ? (n(), a("div", {
180
180
  key: 0,
181
181
  class: "checkbox__box__value",
182
182
  style: B(m.value)
183
- }, h(s.boxValue), 5)) : (l(), r("div", St, [
184
- (l(), r("svg", Mt, [
183
+ }, h(s.boxValue), 5)) : (n(), a("div", St, [
184
+ (n(), a("svg", Mt, [
185
185
  t("path", {
186
186
  d: "M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",
187
187
  fill: s.boxValueColor
188
188
  }, null, 8, Lt)
189
189
  ]))
190
190
  ]))
191
- ], 64)) : L("", !0)
191
+ ], 64)) : S("", !0)
192
192
  ], 4),
193
- s.teamsIds && s.teamsIds.length ? (l(), r("div", $t, [
193
+ s.teamsIds && s.teamsIds.length ? (n(), a("div", $t, [
194
194
  t("div", Bt, [
195
195
  t("img", {
196
196
  src: E(s.teamsIds[0]),
@@ -203,14 +203,14 @@ const xt = (s, u) => {
203
203
  alt: ""
204
204
  }, null, 8, Pt)
205
205
  ])
206
- ])) : L("", !0),
206
+ ])) : S("", !0),
207
207
  t("div", {
208
208
  class: "checkbox__label",
209
- style: B(S.value)
209
+ style: B(M.value)
210
210
  }, h(s.label), 5)
211
211
  ], 2));
212
212
  }
213
- }, Ot = /* @__PURE__ */ xt(It, [["__scopeId", "data-v-b6f124d8"]]), Tt = (s, u) => {
213
+ }, It = /* @__PURE__ */ xt(Tt, [["__scopeId", "data-v-b6f124d8"]]), Ot = (s, u) => {
214
214
  const i = s.__vccOpts || s;
215
215
  for (const [f, _] of u)
216
216
  i[f] = _;
@@ -289,7 +289,7 @@ const xt = (s, u) => {
289
289
  this.$emit("click", s), this.typeOnOff && (this.status = !this.status, this.$emit("status", this.status));
290
290
  }
291
291
  }
292
- }, nt = () => {
292
+ }, lt = () => {
293
293
  at((s) => ({
294
294
  "9d01acb4": s.height,
295
295
  "14e95081": s.borderWidthBtn,
@@ -305,51 +305,51 @@ const xt = (s, u) => {
305
305
  "93b87770": s.marginLeftStat,
306
306
  c7f7beba: s.fontSizeStat
307
307
  }));
308
- }, lt = N.setup;
309
- N.setup = lt ? (s, u) => (nt(), lt(s, u)) : nt;
310
- const Ft = (s) => (W("data-v-f3ee6b2b"), s = s(), H(), s), Dt = ["src"], Vt = {
308
+ }, nt = N.setup;
309
+ N.setup = nt ? (s, u) => (lt(), nt(s, u)) : lt;
310
+ const Vt = (s) => (W("data-v-f3ee6b2b"), s = s(), H(), s), Ft = ["src"], Dt = {
311
311
  key: 1,
312
312
  class: "text"
313
- }, zt = ["src"], jt = { class: "stats" }, At = /* @__PURE__ */ Ft(() => /* @__PURE__ */ t("img", {
313
+ }, zt = ["src"], At = { class: "stats" }, jt = /* @__PURE__ */ Vt(() => /* @__PURE__ */ t("img", {
314
314
  class: "iconstats",
315
315
  src: "https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"
316
316
  }, null, -1)), Zt = { class: "numstats" }, Wt = { class: "leyend" };
317
317
  function Ht(s, u, i, f, _, m) {
318
- return l(), r("div", null, [
319
- i.type == 0 ? (l(), r("div", {
318
+ return n(), a("div", null, [
319
+ i.type == 0 ? (n(), a("div", {
320
320
  key: 0,
321
321
  class: y(["button", _.status && i.typeOnOff && "button-active"]),
322
322
  style: B([m.customStyle, _.status && i.typeOnOff && m.customActive]),
323
- onClick: u[0] || (u[0] = (...S) => m.btnClick && m.btnClick(...S))
323
+ onClick: u[0] || (u[0] = (...M) => m.btnClick && m.btnClick(...M))
324
324
  }, [
325
- i.icon && i.iconPosition.toLowerCase() === "left" ? (l(), r("img", {
325
+ i.icon && i.iconPosition.toLowerCase() === "left" ? (n(), a("img", {
326
326
  key: 0,
327
327
  class: "icon",
328
328
  style: B({ width: i.iconSize }),
329
329
  src: i.icon
330
- }, null, 12, Dt)) : L("", !0),
331
- i.textValue ? (l(), r("div", Vt, h(i.textValue), 1)) : L("", !0),
332
- i.icon && i.iconPosition.toLowerCase() === "right" ? (l(), r("img", {
330
+ }, null, 12, Ft)) : S("", !0),
331
+ i.textValue ? (n(), a("div", Dt, h(i.textValue), 1)) : S("", !0),
332
+ i.icon && i.iconPosition.toLowerCase() === "right" ? (n(), a("img", {
333
333
  key: 2,
334
334
  class: "icon",
335
335
  style: B({ width: i.iconSize }),
336
336
  src: i.icon
337
- }, null, 12, zt)) : L("", !0)
338
- ], 6)) : L("", !0),
339
- i.type == 1 ? (l(), r("div", {
337
+ }, null, 12, zt)) : S("", !0)
338
+ ], 6)) : S("", !0),
339
+ i.type == 1 ? (n(), a("div", {
340
340
  key: 1,
341
341
  class: "button-target",
342
- onClick: u[1] || (u[1] = (...S) => m.btnClick && m.btnClick(...S))
342
+ onClick: u[1] || (u[1] = (...M) => m.btnClick && m.btnClick(...M))
343
343
  }, [
344
- t("div", jt, [
345
- At,
344
+ t("div", At, [
345
+ jt,
346
346
  t("div", Zt, h(i.textStat), 1)
347
347
  ]),
348
348
  t("div", Wt, h(i.textCategory), 1)
349
- ])) : L("", !0)
349
+ ])) : S("", !0)
350
350
  ]);
351
351
  }
352
- const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b"]]), dt = (s, u) => {
352
+ const Nt = /* @__PURE__ */ Ot(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b"]]), dt = (s, u) => {
353
353
  const i = s.__vccOpts || s;
354
354
  for (const [f, _] of u)
355
355
  i[f] = _;
@@ -394,16 +394,16 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
394
394
  },
395
395
  emits: ["expand", "open-media", "click-parameters", "sort"],
396
396
  setup(s, { expose: u, emit: i }) {
397
- const f = s, _ = g(null), m = g(null), S = g(0);
397
+ const f = s, _ = g(null), m = g(null), M = g(0);
398
398
  g(!1);
399
- const R = O(() => {
399
+ const R = I(() => {
400
400
  const c = f.availablePlayers[0];
401
401
  return c ? c.stats : [];
402
- }), E = O(() => {
402
+ }), E = I(() => {
403
403
  const c = `repeat(${R.value.length}, max-content) 36px`;
404
404
  let v = "";
405
- return S.value > 0 && document.querySelectorAll(".column-title-2").forEach((M) => {
406
- v += `${M.offsetWidth}px `;
405
+ return M.value > 0 && document.querySelectorAll(".column-title-2").forEach((L) => {
406
+ v += `${L.offsetWidth}px `;
407
407
  }), {
408
408
  "--grid-template-columns": c,
409
409
  "--grid-template-columns-totals": v || c
@@ -413,75 +413,78 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
413
413
  _.value = new ResizeObserver((c) => {
414
414
  for (const v of c) {
415
415
  const { width: w } = v.contentRect;
416
- S.value = w;
416
+ M.value = w;
417
417
  }
418
418
  }), _.value.observe(m.value);
419
419
  }
420
- function I(c, v) {
421
- const M = document.querySelectorAll(".scrollable-row-totals")[c + 1];
422
- M && (M.style.marginTop = `${v}px`);
420
+ function T(c, v) {
421
+ const L = document.querySelectorAll(".scrollable-row-totals")[c + 1];
422
+ L && (L.style.marginTop = `${v}px`);
423
423
  }
424
- function F({ player: c, stat: v }) {
424
+ function V({ player: c, stat: v }) {
425
425
  !v.total || v === "0%" || !v.seasons || !v.seasons.length || i("open-media", { ...c, stat: v });
426
426
  }
427
427
  function k(c) {
428
428
  !c || c === "no" || i("click-parameters", c);
429
429
  }
430
- function j(c) {
430
+ function A(c) {
431
431
  i("sort", c);
432
432
  }
433
433
  return rt(() => {
434
434
  p();
435
435
  }), u({
436
- setMarginTopDetails: I
437
- }), (c, v) => (l(), r("div", {
436
+ setMarginTopDetails: T
437
+ }), (c, v) => (n(), a("div", {
438
438
  class: "scroll-columns",
439
439
  style: B(E.value)
440
440
  }, [
441
- s.isEditMode ? (l(), r("div", Gt)) : L("", !0),
441
+ s.isEditMode ? (n(), a("div", Gt)) : S("", !0),
442
442
  t("div", {
443
443
  ref_key: "titlesRow",
444
444
  ref: m,
445
445
  class: "scrollable-row-2"
446
446
  }, [
447
- (l(!0), r(T, null, z(R.value, (w, M) => (l(), r("div", {
448
- key: `t-${M}`,
447
+ (n(!0), a(O, null, z(R.value, (w, L) => (n(), a("div", {
448
+ key: `t-${L}`,
449
449
  class: "column-title-2"
450
450
  }, [
451
- w.parameters && w.parameters !== "no" ? (l(), r("div", {
451
+ w.parameters && w.parameters !== "no" ? (n(), a("div", {
452
452
  key: 0,
453
453
  class: "parameters",
454
454
  role: "button",
455
455
  onClick: (x) => k(w.parameters)
456
- }, Jt, 8, Ut)) : L("", !0),
456
+ }, Jt, 8, Ut)) : S("", !0),
457
457
  t("div", Xt, h(w.name), 1),
458
- (l(), r("svg", {
458
+ (n(), a("svg", {
459
459
  width: "18",
460
460
  height: "18",
461
461
  viewBox: "0 0 18 18",
462
462
  fill: "none",
463
463
  xmlns: "http://www.w3.org/2000/svg",
464
- onClick: (x) => j(w)
464
+ onClick: (x) => A(w)
465
465
  }, Yt, 8, Kt))
466
466
  ]))), 128)),
467
467
  te
468
468
  ], 512),
469
- (l(!0), r(T, null, z(s.availablePlayers, (w, M) => (l(), r("div", {
469
+ (n(!0), a(O, null, z(s.availablePlayers, (w, L) => (n(), a("div", {
470
470
  key: `i-${w.id}`,
471
471
  class: "row scrollable-row-totals"
472
472
  }, [
473
- (l(!0), r(T, null, z(w.stats, (x) => (l(), r("div", {
473
+ (n(!0), a(O, null, z(w.stats, (x) => (n(), a("div", {
474
474
  key: x.category_id,
475
- class: y(["row data-info", { odd: M % 2 !== 0, underline: !!x.total && x.total !== "0%" && x.seasons && x.seasons.length }])
475
+ class: y(["row data-info", { odd: L % 2 !== 0, underline: !!x.total && x.total !== "0%" && x.seasons && x.seasons.length }])
476
476
  }, [
477
477
  t("span", {
478
- onClick: (U) => F({ player: w, stat: x })
478
+ onClick: (U) => V({ player: w, stat: x })
479
479
  }, h(x.total), 9, ee)
480
480
  ], 2))), 128))
481
481
  ]))), 128))
482
482
  ], 4));
483
483
  }
484
- }, se = /* @__PURE__ */ dt(oe, [["__scopeId", "data-v-df83603b"]]), d = (s) => (W("data-v-14d97ca7"), s = s(), H(), s), ie = { class: "table__static-column" }, ne = { class: "static-title column-title restore" }, le = /* @__PURE__ */ d(() => /* @__PURE__ */ t("svg", {
484
+ }, se = /* @__PURE__ */ dt(oe, [["__scopeId", "data-v-df83603b"]]), d = (s) => (W("data-v-c0606edc"), s = s(), H(), s), ie = { class: "table__static-column" }, le = { class: "static-title column-title restore" }, ne = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", { class: "titles-left" }, [
485
+ /* @__PURE__ */ t("div", { class: "title" }, "Ranking"),
486
+ /* @__PURE__ */ t("div", { class: "title" }, "Agregar a lista")
487
+ ], -1)), ae = /* @__PURE__ */ d(() => /* @__PURE__ */ t("svg", {
485
488
  width: "16",
486
489
  height: "16",
487
490
  viewBox: "0 0 16 16",
@@ -498,10 +501,10 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
498
501
  /* @__PURE__ */ t("path", { d: "M15.333 2.667v4h-4M.667 13.333v-4h4" }),
499
502
  /* @__PURE__ */ t("path", { d: "M2.34 6a6 6 0 0 1 9.9-2.24l3.094 2.906M.667 9.333l3.093 2.906a6 6 0 0 0 9.9-2.24" })
500
503
  ])
501
- ], -1)), ae = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", null, "Restaurar orden", -1)), re = [
502
- le,
503
- ae
504
- ], de = ["id"], ce = { class: "container" }, ue = { class: "details-row__info" }, fe = { class: "details-row__info__personal" }, he = { class: "bold" }, ve = { class: "bold" }, pe = { class: "bold" }, _e = { class: "bold" }, ge = { class: "details-row__info__games" }, me = { class: "bold" }, Ce = { class: "bold" }, ke = ["onClick"], we = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", null, "Ver gráfica", -1)), be = /* @__PURE__ */ d(() => /* @__PURE__ */ t("svg", {
504
+ ], -1)), re = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", null, "Restaurar orden", -1)), de = [
505
+ ae,
506
+ re
507
+ ], ce = ["id"], ue = { class: "container" }, fe = { class: "details-row__info" }, he = { class: "details-row__info__personal" }, ve = { class: "bold" }, pe = { class: "bold" }, _e = { class: "bold" }, ge = { class: "bold" }, me = { class: "details-row__info__games" }, Ce = { class: "bold" }, ke = { class: "bold" }, we = ["onClick"], be = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", null, "Ver gráfica", -1)), ye = /* @__PURE__ */ d(() => /* @__PURE__ */ t("svg", {
505
508
  width: "17",
506
509
  height: "16",
507
510
  viewBox: "0 0 17 16",
@@ -524,10 +527,10 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
524
527
  })
525
528
  ])
526
529
  ])
527
- ], -1)), ye = [
528
- we,
529
- be
530
- ], xe = ["onClick"], Se = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", null, "Eliminar de lista", -1)), Me = /* @__PURE__ */ d(() => /* @__PURE__ */ t("svg", {
530
+ ], -1)), xe = [
531
+ be,
532
+ ye
533
+ ], Se = ["onClick"], Me = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", null, "Eliminar de lista", -1)), Le = /* @__PURE__ */ d(() => /* @__PURE__ */ t("svg", {
531
534
  width: "17",
532
535
  height: "15",
533
536
  viewBox: "0 0 20 18",
@@ -558,10 +561,10 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
558
561
  "stroke-linecap": "round",
559
562
  "stroke-linejoin": "round"
560
563
  })
561
- ], -1)), Le = [
562
- Se,
563
- Me
564
- ], $e = ["onClick"], Be = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", null, "Agregar a lista", -1)), Re = /* @__PURE__ */ d(() => /* @__PURE__ */ t("svg", {
564
+ ], -1)), $e = [
565
+ Me,
566
+ Le
567
+ ], Be = ["onClick"], Re = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", null, "Agregar a lista", -1)), Ee = /* @__PURE__ */ d(() => /* @__PURE__ */ t("svg", {
565
568
  width: "20",
566
569
  height: "20",
567
570
  viewBox: "0 0 20 20",
@@ -592,19 +595,19 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
592
595
  "stroke-linecap": "round",
593
596
  "stroke-linejoin": "round"
594
597
  })
595
- ], -1)), Ee = [
596
- Be,
597
- Re
598
- ], Pe = ["onClick"], Ie = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", null, "Ver perfil", -1)), Oe = [
598
+ ], -1)), Pe = [
599
+ Re,
600
+ Ee
601
+ ], Te = ["onClick"], Ie = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", null, "Ver perfil", -1)), Oe = [
599
602
  Ie
600
- ], Te = { class: "static-row__info-player" }, Fe = { class: "position" }, De = ["onClick"], Ve = /* @__PURE__ */ d(() => /* @__PURE__ */ t("path", {
603
+ ], Ve = { class: "static-row__info-player" }, Fe = { class: "position" }, De = ["onClick"], ze = /* @__PURE__ */ d(() => /* @__PURE__ */ t("path", {
601
604
  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",
602
605
  stroke: "white",
603
606
  "stroke-opacity": "0.5",
604
607
  "stroke-width": "1.5",
605
608
  "stroke-linecap": "round",
606
609
  "stroke-linejoin": "round"
607
- }, null, -1)), ze = /* @__PURE__ */ d(() => /* @__PURE__ */ t("path", {
610
+ }, null, -1)), Ae = /* @__PURE__ */ d(() => /* @__PURE__ */ t("path", {
608
611
  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",
609
612
  stroke: "white",
610
613
  "stroke-opacity": "0.5",
@@ -618,43 +621,46 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
618
621
  "stroke-width": "1.5",
619
622
  "stroke-linecap": "round",
620
623
  "stroke-linejoin": "round"
621
- }, null, -1)), Ae = [
622
- Ve,
624
+ }, null, -1)), Ze = [
623
625
  ze,
626
+ Ae,
624
627
  je
625
- ], Ze = ["onClick"], We = /* @__PURE__ */ d(() => /* @__PURE__ */ t("path", {
628
+ ], We = {
629
+ key: 1,
630
+ class: "add-to-list"
631
+ }, He = ["onClick"], Ne = /* @__PURE__ */ d(() => /* @__PURE__ */ t("path", {
626
632
  d: "M13.2016 17.2012V15.601C13.2016 14.7522 12.8645 13.9381 12.2643 13.3379C11.664 12.7377 10.85 12.4005 10.0012 12.4005H5.20047C4.35165 12.4005 3.5376 12.7377 2.9374 13.3379C2.33719 13.9381 2 14.7522 2 15.601V17.2012",
627
633
  stroke: "white",
628
634
  "stroke-opacity": "1",
629
635
  "stroke-width": "1.44023",
630
636
  "stroke-linecap": "round",
631
637
  "stroke-linejoin": "round"
632
- }, null, -1)), He = /* @__PURE__ */ d(() => /* @__PURE__ */ t("path", {
638
+ }, null, -1)), Ge = /* @__PURE__ */ d(() => /* @__PURE__ */ t("path", {
633
639
  d: "M7.60086 9.19977C9.36843 9.19977 10.8013 7.76687 10.8013 5.9993C10.8013 4.23173 9.36843 2.79883 7.60086 2.79883C5.83329 2.79883 4.40039 4.23173 4.40039 5.9993C4.40039 7.76687 5.83329 9.19977 7.60086 9.19977Z",
634
640
  stroke: "white",
635
641
  "stroke-opacity": "1",
636
642
  "stroke-width": "1.44023",
637
643
  "stroke-linecap": "round",
638
644
  "stroke-linejoin": "round"
639
- }, null, -1)), Ne = /* @__PURE__ */ d(() => /* @__PURE__ */ t("path", {
645
+ }, null, -1)), Ue = /* @__PURE__ */ d(() => /* @__PURE__ */ t("path", {
640
646
  d: "M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",
641
647
  stroke: "white",
642
648
  "stroke-opacity": "1",
643
649
  "stroke-width": "1.44023",
644
650
  "stroke-linecap": "round",
645
651
  "stroke-linejoin": "round"
646
- }, null, -1)), Ge = [
647
- We,
648
- He,
649
- Ne
650
- ], Ue = { class: "player-photo" }, qe = ["src"], Je = { class: "player-name" }, Xe = { class: "arrow" }, Ke = ["onClick"], Qe = /* @__PURE__ */ d(() => /* @__PURE__ */ t("path", {
652
+ }, null, -1)), qe = [
653
+ Ne,
654
+ Ge,
655
+ Ue
656
+ ], Je = { class: "player-photo" }, Xe = ["src"], Ke = { class: "player-name" }, Qe = { class: "arrow" }, Ye = ["onClick"], to = /* @__PURE__ */ d(() => /* @__PURE__ */ t("path", {
651
657
  "fill-rule": "evenodd",
652
658
  "clip-rule": "evenodd",
653
659
  d: "M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",
654
660
  fill: "#D9D9D9"
655
- }, null, -1)), Ye = [
656
- Qe
657
- ], to = { class: "titles scrollable-row" }, eo = { class: "column-title" }, oo = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", null, " Equipo ", -1)), so = /* @__PURE__ */ d(() => /* @__PURE__ */ t("g", {
661
+ }, null, -1)), eo = [
662
+ to
663
+ ], oo = { class: "titles scrollable-row" }, so = { class: "column-title" }, io = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", null, " Equipo ", -1)), lo = /* @__PURE__ */ d(() => /* @__PURE__ */ t("g", {
658
664
  opacity: ".5",
659
665
  stroke: "#fff",
660
666
  "stroke-width": "1.677",
@@ -662,9 +668,9 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
662
668
  "stroke-linejoin": "round"
663
669
  }, [
664
670
  /* @__PURE__ */ t("path", { d: "M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67" })
665
- ], -1)), io = [
666
- so
667
- ], no = { class: "column-title" }, lo = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", null, " Posición ", -1)), ao = /* @__PURE__ */ d(() => /* @__PURE__ */ t("g", {
671
+ ], -1)), no = [
672
+ lo
673
+ ], ao = { class: "column-title" }, ro = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", null, " Posición ", -1)), co = /* @__PURE__ */ d(() => /* @__PURE__ */ t("g", {
668
674
  opacity: ".5",
669
675
  stroke: "#fff",
670
676
  "stroke-width": "1.677",
@@ -672,9 +678,9 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
672
678
  "stroke-linejoin": "round"
673
679
  }, [
674
680
  /* @__PURE__ */ t("path", { d: "M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67" })
675
- ], -1)), ro = [
676
- ao
677
- ], co = { class: "column-title" }, uo = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", null, " Edad ", -1)), fo = /* @__PURE__ */ d(() => /* @__PURE__ */ t("g", {
681
+ ], -1)), uo = [
682
+ co
683
+ ], fo = { class: "column-title" }, ho = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", null, " Edad ", -1)), vo = /* @__PURE__ */ d(() => /* @__PURE__ */ t("g", {
678
684
  opacity: ".5",
679
685
  stroke: "#fff",
680
686
  "stroke-width": "1.677",
@@ -682,9 +688,9 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
682
688
  "stroke-linejoin": "round"
683
689
  }, [
684
690
  /* @__PURE__ */ t("path", { d: "M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67" })
685
- ], -1)), ho = [
686
- fo
687
- ], vo = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", { class: "column-title" }, "País", -1)), po = { class: "column-title" }, _o = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", null, " Partidos Jugados ", -1)), go = /* @__PURE__ */ d(() => /* @__PURE__ */ t("g", {
691
+ ], -1)), po = [
692
+ vo
693
+ ], _o = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", { class: "column-title" }, "País", -1)), go = { class: "column-title" }, mo = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", null, " Partidos Jugados ", -1)), Co = /* @__PURE__ */ d(() => /* @__PURE__ */ t("g", {
688
694
  opacity: ".5",
689
695
  stroke: "#fff",
690
696
  "stroke-width": "1.677",
@@ -692,9 +698,9 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
692
698
  "stroke-linejoin": "round"
693
699
  }, [
694
700
  /* @__PURE__ */ t("path", { d: "M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67" })
695
- ], -1)), mo = [
696
- go
697
- ], Co = { class: "column-title" }, ko = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", null, " Minutos Jugados ", -1)), wo = /* @__PURE__ */ d(() => /* @__PURE__ */ t("g", {
701
+ ], -1)), ko = [
702
+ Co
703
+ ], wo = { class: "column-title" }, bo = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", null, " Minutos Jugados ", -1)), yo = /* @__PURE__ */ d(() => /* @__PURE__ */ t("g", {
698
704
  opacity: ".5",
699
705
  stroke: "#fff",
700
706
  "stroke-width": "1.677",
@@ -702,9 +708,9 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
702
708
  "stroke-linejoin": "round"
703
709
  }, [
704
710
  /* @__PURE__ */ t("path", { d: "M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67" })
705
- ], -1)), bo = [
706
- wo
707
- ], yo = { class: "column-title" }, xo = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", null, " Liga ", -1)), So = /* @__PURE__ */ d(() => /* @__PURE__ */ t("g", {
711
+ ], -1)), xo = [
712
+ yo
713
+ ], So = { class: "column-title" }, Mo = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", null, " Liga ", -1)), Lo = /* @__PURE__ */ d(() => /* @__PURE__ */ t("g", {
708
714
  opacity: ".5",
709
715
  stroke: "#fff",
710
716
  "stroke-width": "1.677",
@@ -712,9 +718,9 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
712
718
  "stroke-linejoin": "round"
713
719
  }, [
714
720
  /* @__PURE__ */ t("path", { d: "M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67" })
715
- ], -1)), Mo = [
716
- So
717
- ], Lo = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", { class: "column-title" }, "Videos", -1)), $o = { class: "team-logo" }, Bo = ["src"], Ro = { class: "team-name data-info" }, Eo = ["src"], Po = {
721
+ ], -1)), $o = [
722
+ Lo
723
+ ], Bo = /* @__PURE__ */ d(() => /* @__PURE__ */ t("div", { class: "column-title" }, "Videos", -1)), Ro = { class: "team-logo" }, Eo = ["src"], Po = { class: "team-name data-info" }, To = ["src"], Io = {
718
724
  __name: "GSC-TableScrollable",
719
725
  props: {
720
726
  players: {
@@ -732,6 +738,14 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
732
738
  isTableFromList: {
733
739
  type: Boolean,
734
740
  default: !1
741
+ },
742
+ isGraphButtonVisible: {
743
+ type: Boolean,
744
+ default: !0
745
+ },
746
+ isAddToListButtonVisible: {
747
+ type: Boolean,
748
+ default: !0
735
749
  }
736
750
  },
737
751
  emits: [
@@ -745,9 +759,9 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
745
759
  setup(s, { emit: u }) {
746
760
  const i = s;
747
761
  let f = null, _ = null;
748
- const m = g([]), S = g(null), R = g(null), E = g(0), p = g(0), I = g(-1);
762
+ const m = g([]), M = g(null), R = g(null), E = g(0), p = g(0), T = g(-1);
749
763
  g(!1);
750
- const F = g(null), k = g(null), j = g(null), c = g([]), v = g([
764
+ const V = g(null), k = g(null), A = g(null), c = g([]), v = g([
751
765
  {
752
766
  name: "team_abrev",
753
767
  isDesc: !1,
@@ -778,24 +792,24 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
778
792
  isDesc: !1,
779
793
  isRoot: !0
780
794
  }
781
- ]), w = g(0), M = O(() => ({
795
+ ]), w = g(0), L = I(() => ({
782
796
  "--width-details": `${E.value}px`,
783
797
  "--gap-static-row": `${x.value ? "8px" : "18px"}`,
784
- "--width-static-column": `${x.value ? "50%" : "256px"}`
785
- })), x = O(() => E.value < 600);
786
- V(
798
+ "--width-static-column": `${x.value ? "50%" : "436px"}`
799
+ })), x = I(() => E.value < 600);
800
+ D(
787
801
  () => i.players,
788
802
  (e) => {
789
- e && e.length && (m.value = e.map((n, o) => {
790
- const a = o + 1, C = {
791
- ...n,
792
- position: a < 10 ? `0${a}` : `${a}`,
803
+ e && e.length && (m.value = e.map((l, o) => {
804
+ const r = o + 1, C = {
805
+ ...l,
806
+ position: r < 10 ? `0${r}` : `${r}`,
793
807
  isSelected: !1,
794
808
  isExpanded: !1,
795
809
  isOdd: o % 2 !== 0,
796
810
  index: o
797
811
  };
798
- return n.stats && n.stats.length && (C.stats = n.stats.map((b) => ({
812
+ return l.stats && l.stats.length && (C.stats = l.stats.map((b) => ({
799
813
  ...b,
800
814
  isDesc: !1,
801
815
  isRoot: !1
@@ -803,54 +817,54 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
803
817
  const et = C.stats.find((mt) => mt.custom_category_id === Number(b));
804
818
  et && (et.parameters = $);
805
819
  }), C;
806
- }), c.value = m.value.map((n) => ({
807
- ...n
820
+ }), c.value = m.value.map((l) => ({
821
+ ...l
808
822
  })));
809
823
  },
810
824
  { immediate: !0, deep: !0 }
811
- ), V(
825
+ ), D(
812
826
  () => i.isEditMode,
813
827
  (e) => {
814
- e && m.value.forEach((n) => {
815
- n.isSelected = !1;
828
+ e && m.value.forEach((l) => {
829
+ l.isSelected = !1;
816
830
  });
817
831
  }
818
- ), V(
819
- () => j.value,
832
+ ), D(
833
+ () => A.value,
820
834
  (e) => {
821
835
  if (e) {
822
- let n = [...c.value];
823
- e.isRoot ? n.sort((o, a) => typeof o[e.name] == "string" ? e.isDesc ? o[e.name].localeCompare(a[e.name]) : o[e.name].localeCompare(a[e.name]) * -1 : e.isDesc ? a[e.name] - o[e.name] : o[e.name] - a[e.name]) : n.sort((o, a) => {
824
- const C = o.stats.find(($) => $.name === e.name), b = a.stats.find(($) => $.name === e.name);
836
+ let l = [...c.value];
837
+ e.isRoot ? l.sort((o, r) => typeof o[e.name] == "string" ? e.isDesc ? o[e.name].localeCompare(r[e.name]) : o[e.name].localeCompare(r[e.name]) * -1 : e.isDesc ? r[e.name] - o[e.name] : o[e.name] - r[e.name]) : l.sort((o, r) => {
838
+ const C = o.stats.find(($) => $.name === e.name), b = r.stats.find(($) => $.name === e.name);
825
839
  return typeof C.value == "string" ? e.isDesc ? C.total.localeCompare(b.total) : C.total.localeCompare(b.total) * -1 : e.isDesc ? b.total - C.total : C.total - b.total;
826
- }), n.forEach((o, a) => {
827
- o.isOdd = a % 2 !== 0;
828
- }), c.value = n;
840
+ }), l.forEach((o, r) => {
841
+ o.isOdd = r % 2 !== 0;
842
+ }), c.value = l;
829
843
  } else
830
- c.value.sort((n, o) => n.index - o.index).forEach((n, o) => {
831
- n.isOdd = o % 2 !== 0;
844
+ c.value.sort((l, o) => l.index - o.index).forEach((l, o) => {
845
+ l.isOdd = o % 2 !== 0;
832
846
  });
833
847
  },
834
848
  { immediate: !0, deep: !0 }
835
- ), V(
849
+ ), D(
836
850
  p,
837
851
  (e) => {
838
- const o = document.querySelectorAll(".static-row")[I.value + 1];
839
- o && (o.style.marginTop = `${e}px`), i.isGeneral ? U(I.value, e) : R.value && R.value.setMarginTopDetails(I.value, e), e === 0 && F.value && K(F.value);
852
+ const o = document.querySelectorAll(".static-row")[T.value + 1];
853
+ o && (o.style.marginTop = `${e}px`), i.isGeneral ? U(T.value, e) : R.value && R.value.setMarginTopDetails(T.value, e), e === 0 && V.value && K(V.value);
840
854
  }
841
855
  );
842
- function U(e, n) {
843
- const a = document.querySelectorAll(".scrollable-row")[e + 2];
844
- a && (a.style.marginTop = `${n}px`);
856
+ function U(e, l) {
857
+ const r = document.querySelectorAll(".scrollable-row")[e + 2];
858
+ r && (r.style.marginTop = `${l}px`);
845
859
  }
846
860
  function ct(e) {
847
861
  u("click-parameters", e);
848
862
  }
849
863
  function P(e) {
850
- e && (e.isDesc = !e.isDesc), j.value = e;
864
+ e && (e.isDesc = !e.isDesc), A.value = e;
851
865
  }
852
866
  function q(e) {
853
- const n = e.player || e.objeto_player, o = n ? n.player_id || n.id || n.playerId : e.id || e.player_id, a = {
867
+ const l = e.player || e.objeto_player, o = l ? l.player_id || l.id || l.playerId : e.id || e.player_id, r = {
854
868
  isFeaturedPlayers: !1,
855
869
  mainSectionType: 1,
856
870
  playListType: 2,
@@ -869,23 +883,23 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
869
883
  playListTitle: "Jugadas Relevantes"
870
884
  }
871
885
  };
872
- if (e.stat && e.stat.parameters && (a.parameters = e.stat.parameters), e.stat && e.stat.seasons && e.stat.seasons.length || e.seasons && e.seasons.length) {
886
+ if (e.stat && e.stat.parameters && (r.parameters = e.stat.parameters), e.stat && e.stat.seasons && e.stat.seasons.length || e.seasons && e.seasons.length) {
873
887
  const C = [
874
888
  ...e.stat && e.stat.seasons && e.stat.seasons.length ? e.stat.seasons : e.seasons
875
889
  ];
876
- C.sort((b, $) => b - $), a.seasonId = C.shift(), a.seasonsIds = C;
877
- } else (e.season_id || e.seasonId) && (a.seasonId = e.season_id || e.seasonId);
878
- e.stat ? e.stat.category_id && e.stat.category_id.length ? a.categoryIds = e.stat.category_id : e.stat.custom_category_id && (a.customCategoryIds = [e.stat.custom_category_id]) : a.categoryIds = ht(e.player_position), u("open-media", a);
890
+ C.sort((b, $) => b - $), r.seasonId = C.shift(), r.seasonsIds = C;
891
+ } else (e.season_id || e.seasonId) && (r.seasonId = e.season_id || e.seasonId);
892
+ e.stat ? e.stat.category_id && e.stat.category_id.length ? r.categoryIds = e.stat.category_id : e.stat.custom_category_id && (r.customCategoryIds = [e.stat.custom_category_id]) : r.categoryIds = ht(e.player_position), u("open-media", r);
879
893
  }
880
894
  function ut() {
881
895
  f = new ResizeObserver((e) => {
882
- for (const n of e)
883
- E.value = n.contentRect.width;
884
- }), f.observe(S.value);
896
+ for (const l of e)
897
+ E.value = l.contentRect.width;
898
+ }), f.observe(M.value);
885
899
  }
886
900
  function ft(e) {
887
- _ = new ResizeObserver((n) => {
888
- for (const o of n)
901
+ _ = new ResizeObserver((l) => {
902
+ for (const o of l)
889
903
  p.value = o.contentRect.height;
890
904
  }), _.observe(e);
891
905
  }
@@ -936,9 +950,9 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
936
950
  488
937
951
  ];
938
952
  }
939
- function vt(e, n) {
940
- n.isSelected = e;
941
- const o = m.value.filter((a) => a.isSelected);
953
+ function vt(e, l) {
954
+ l.isSelected = e;
955
+ const o = m.value.filter((r) => r.isSelected);
942
956
  u("change-selected-players", o);
943
957
  }
944
958
  function pt(e) {
@@ -955,25 +969,25 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
955
969
  }
956
970
  function K(e) {
957
971
  if (e.isExpanded) {
958
- e.isExpanded = !1, F.value = null;
972
+ e.isExpanded = !1, V.value = null;
959
973
  return;
960
974
  }
961
- const n = m.value.find((b) => b.isExpanded);
962
- if (n && (n.isExpanded = !1), n) {
963
- F.value = e;
975
+ const l = m.value.find((b) => b.isExpanded);
976
+ if (l && (l.isExpanded = !1), l) {
977
+ V.value = e;
964
978
  return;
965
979
  }
966
980
  const o = document.querySelectorAll(".details-row");
967
- let a = -1;
981
+ let r = -1;
968
982
  o.forEach((b, $) => {
969
- b.id === `dr-${e.id}` && (a = $);
983
+ b.id === `dr-${e.id}` && (r = $);
970
984
  });
971
- const C = o[a];
972
- I.value = a, ft(C), e.isExpanded = !0;
985
+ const C = o[r];
986
+ T.value = r, ft(C), e.isExpanded = !0;
973
987
  }
974
988
  let Z = !1, Q, Y, tt = function(e) {
975
989
  Z = !0, Q = e.pageX - k.value.offsetLeft, Y = k.value.scrollLeft;
976
- }, A = function() {
990
+ }, j = function() {
977
991
  Z = !1;
978
992
  };
979
993
  function gt() {
@@ -982,28 +996,29 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
982
996
  return;
983
997
  const o = e.pageX - k.value.offsetLeft - Q;
984
998
  k.value.scrollLeft = Y - o;
985
- }), k.value.addEventListener("mousedown", tt, !1), k.value.addEventListener("mouseup", A, !1), k.value.addEventListener("mouseleave", A, !1));
999
+ }), k.value.addEventListener("mousedown", tt, !1), k.value.addEventListener("mouseup", j, !1), k.value.addEventListener("mouseleave", j, !1));
986
1000
  }
987
1001
  return rt(() => {
988
1002
  ut(), gt();
989
1003
  }), Ct(() => {
990
- f && f.disconnect(), _ && _.disconnect(), k.value && (k.value.removeEventListener("mousemove", tt, !1), k.value.removeEventListener("mouseup", A, !1), k.value.removeEventListener("mouseleave", A, !1));
991
- }), (e, n) => (l(), r("div", {
1004
+ f && f.disconnect(), _ && _.disconnect(), k.value && (k.value.removeEventListener("mousemove", tt, !1), k.value.removeEventListener("mouseup", j, !1), k.value.removeEventListener("mouseleave", j, !1));
1005
+ }), (e, l) => (n(), a("div", {
992
1006
  class: "table",
993
1007
  ref_key: "tableSC",
994
- ref: S,
995
- style: B(M.value),
1008
+ ref: M,
1009
+ style: B(L.value),
996
1010
  key: w.value
997
1011
  }, [
998
1012
  t("div", ie, [
999
- t("div", ne, [
1013
+ t("div", le, [
1014
+ ne,
1000
1015
  t("div", {
1001
1016
  role: "button",
1002
1017
  class: "restore-button",
1003
- onClick: n[0] || (n[0] = (o) => P(null))
1004
- }, re)
1018
+ onClick: l[0] || (l[0] = (o) => P(null))
1019
+ }, de)
1005
1020
  ]),
1006
- (l(!0), r(T, null, z(c.value, (o) => (l(), r("div", {
1021
+ (n(!0), a(O, null, z(c.value, (o) => (n(), a("div", {
1007
1022
  key: `s-${o.id}`,
1008
1023
  class: y(["row static-row", { odd: o.isOdd }])
1009
1024
  }, [
@@ -1013,34 +1028,34 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
1013
1028
  id: `dr-${o.id}`,
1014
1029
  class: y(["details-row", { odd: o.isOdd }])
1015
1030
  }, [
1016
- t("div", ce, [
1017
- t("div", ue, [
1018
- t("div", fe, [
1031
+ t("div", ue, [
1032
+ t("div", fe, [
1033
+ t("div", he, [
1019
1034
  t("div", null, [
1020
- D("Equipo: "),
1021
- t("span", he, h(o.team_name), 1)
1035
+ F("Equipo: "),
1036
+ t("span", ve, h(o.team_name), 1)
1022
1037
  ]),
1023
1038
  t("div", null, [
1024
- D("Edad: "),
1025
- t("span", ve, h(o.player_age) + " Años", 1)
1039
+ F("Edad: "),
1040
+ t("span", pe, h(o.player_age) + " Años", 1)
1026
1041
  ]),
1027
1042
  t("div", null, [
1028
- D("Nacionalidad: "),
1029
- t("span", pe, h(o.player_country), 1)
1043
+ F("Nacionalidad: "),
1044
+ t("span", _e, h(o.player_country), 1)
1030
1045
  ]),
1031
1046
  t("div", null, [
1032
- D("Posición: "),
1033
- t("span", _e, h(o.position_name), 1)
1047
+ F("Posición: "),
1048
+ t("span", ge, h(o.position_name), 1)
1034
1049
  ])
1035
1050
  ]),
1036
- t("div", ge, [
1051
+ t("div", me, [
1037
1052
  t("div", null, [
1038
- D("Partidos Jugados: "),
1039
- t("span", me, h(o.player_games), 1)
1053
+ F("Partidos Jugados: "),
1054
+ t("span", Ce, h(o.player_games), 1)
1040
1055
  ]),
1041
1056
  t("div", null, [
1042
- D("Minutos Jugados: "),
1043
- t("span", Ce, h(o.player_min), 1)
1057
+ F("Minutos Jugados: "),
1058
+ t("span", ke, h(o.player_min), 1)
1044
1059
  ])
1045
1060
  ])
1046
1061
  ]),
@@ -1048,81 +1063,83 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
1048
1063
  class: "details-row__buttons",
1049
1064
  style: B(x.value ? "margin-left: 0; gap: 8px;" : "")
1050
1065
  }, [
1051
- t("div", {
1052
- role: "button",
1053
- class: "button",
1054
- onClick: (a) => _t(o)
1055
- }, ye, 8, ke),
1056
- s.isTableFromList ? (l(), r("div", {
1066
+ s.isGraphButtonVisible ? (n(), a("div", {
1057
1067
  key: 0,
1058
1068
  role: "button",
1059
1069
  class: "button",
1060
- onClick: (a) => J(o)
1061
- }, Le, 8, xe)) : (l(), r("div", {
1070
+ onClick: (r) => _t(o)
1071
+ }, xe, 8, we)) : S("", !0),
1072
+ s.isTableFromList ? (n(), a("div", {
1062
1073
  key: 1,
1063
1074
  role: "button",
1064
1075
  class: "button",
1065
- onClick: (a) => X(o)
1066
- }, Ee, 8, $e)),
1076
+ onClick: (r) => J(o)
1077
+ }, $e, 8, Se)) : s.isAddToListButtonVisible ? (n(), a("div", {
1078
+ key: 2,
1079
+ role: "button",
1080
+ class: "button",
1081
+ onClick: (r) => X(o)
1082
+ }, Pe, 8, Be)) : S("", !0),
1067
1083
  t("div", {
1068
1084
  role: "button",
1069
1085
  class: "button green",
1070
- onClick: (a) => pt(o)
1071
- }, Oe, 8, Pe)
1086
+ onClick: (r) => pt(o)
1087
+ }, Oe, 8, Te)
1072
1088
  ], 4)
1073
1089
  ])
1074
- ], 10, de), [
1090
+ ], 10, ce), [
1075
1091
  [yt, o.isExpanded]
1076
1092
  ])
1077
1093
  ]),
1078
1094
  _: 2
1079
1095
  }, 1024),
1080
- s.isEditMode ? (l(), st(it(Ot), {
1096
+ s.isEditMode ? (n(), st(it(It), {
1081
1097
  key: 0,
1082
1098
  fontFamily: "Poppins-Regular",
1083
1099
  labelFontSize: "14px",
1084
1100
  "model-value": o.isSelected,
1085
- "onUpdate:modelValue": (a) => vt(a, o)
1086
- }, null, 8, ["model-value", "onUpdate:modelValue"])) : L("", !0),
1087
- t("div", Te, [
1101
+ "onUpdate:modelValue": (r) => vt(r, o)
1102
+ }, null, 8, ["model-value", "onUpdate:modelValue"])) : S("", !0),
1103
+ t("div", Ve, [
1088
1104
  t("div", Fe, h(o.position), 1),
1089
- s.isTableFromList ? (l(), r("svg", {
1105
+ s.isTableFromList ? (n(), a("svg", {
1090
1106
  key: 0,
1091
1107
  width: "20",
1092
1108
  height: "20",
1093
1109
  viewBox: "0 0 20 20",
1094
1110
  fill: "none",
1095
1111
  xmlns: "http://www.w3.org/2000/svg",
1096
- onClick: (a) => J(o)
1097
- }, Ae, 8, De)) : (l(), r("svg", {
1098
- key: 1,
1099
- width: "20",
1100
- height: "20",
1101
- viewBox: "0 0 20 20",
1102
- fill: "none",
1103
- xmlns: "http://www.w3.org/2000/svg",
1104
- onClick: (a) => X(o)
1105
- }, Ge, 8, Ze)),
1106
- t("div", Ue, [
1112
+ onClick: (r) => J(o)
1113
+ }, Ze, 8, De)) : (n(), a("div", We, [
1114
+ (n(), a("svg", {
1115
+ width: "20",
1116
+ height: "20",
1117
+ viewBox: "0 0 20 20",
1118
+ fill: "none",
1119
+ xmlns: "http://www.w3.org/2000/svg",
1120
+ onClick: (r) => X(o)
1121
+ }, qe, 8, He))
1122
+ ])),
1123
+ t("div", Je, [
1107
1124
  t("div", null, [
1108
1125
  t("img", {
1109
1126
  src: o.player_photo,
1110
1127
  alt: "player photo"
1111
- }, null, 8, qe)
1128
+ }, null, 8, Xe)
1112
1129
  ])
1113
1130
  ]),
1114
- t("div", Je, h(o.player_name), 1)
1131
+ t("div", Ke, h(o.player_name), 1)
1115
1132
  ]),
1116
- t("div", Xe, [
1117
- (l(), r("svg", {
1133
+ t("div", Qe, [
1134
+ (n(), a("svg", {
1118
1135
  class: y(["_arrowExpandIcon_6ak64_1115 _rotate_6ak64_5", { expanded: o.isExpanded }]),
1119
1136
  width: "12",
1120
1137
  height: "8",
1121
1138
  viewBox: "0 0 12 8",
1122
1139
  fill: "#D9D9D9",
1123
1140
  xmlns: "http://www.w3.org/2000/svg",
1124
- onClick: (a) => K(o)
1125
- }, Ye, 10, Ke))
1141
+ onClick: (r) => K(o)
1142
+ }, eo, 10, Ye))
1126
1143
  ])
1127
1144
  ], 2))), 128))
1128
1145
  ]),
@@ -1131,91 +1148,91 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
1131
1148
  ref: k,
1132
1149
  class: "table__scrollable-columns"
1133
1150
  }, [
1134
- s.isGeneral ? (l(), r(T, { key: 0 }, [
1135
- t("div", to, [
1136
- t("div", eo, [
1137
- oo,
1138
- (l(), r("svg", {
1151
+ s.isGeneral ? (n(), a(O, { key: 0 }, [
1152
+ t("div", oo, [
1153
+ t("div", so, [
1154
+ io,
1155
+ (n(), a("svg", {
1139
1156
  width: "18",
1140
1157
  height: "18",
1141
1158
  viewBox: "0 0 18 18",
1142
1159
  fill: "none",
1143
1160
  xmlns: "http://www.w3.org/2000/svg",
1144
- onClick: n[1] || (n[1] = (o) => P(v.value[0]))
1145
- }, io))
1161
+ onClick: l[1] || (l[1] = (o) => P(v.value[0]))
1162
+ }, no))
1146
1163
  ]),
1147
- t("div", no, [
1148
- lo,
1149
- (l(), r("svg", {
1164
+ t("div", ao, [
1165
+ ro,
1166
+ (n(), a("svg", {
1150
1167
  width: "18",
1151
1168
  height: "18",
1152
1169
  viewBox: "0 0 18 18",
1153
1170
  fill: "none",
1154
1171
  xmlns: "http://www.w3.org/2000/svg",
1155
- onClick: n[2] || (n[2] = (o) => P(v.value[1]))
1156
- }, ro))
1172
+ onClick: l[2] || (l[2] = (o) => P(v.value[1]))
1173
+ }, uo))
1157
1174
  ]),
1158
- t("div", co, [
1159
- uo,
1160
- (l(), r("svg", {
1175
+ t("div", fo, [
1176
+ ho,
1177
+ (n(), a("svg", {
1161
1178
  width: "18",
1162
1179
  height: "18",
1163
1180
  viewBox: "0 0 18 18",
1164
1181
  fill: "none",
1165
1182
  xmlns: "http://www.w3.org/2000/svg",
1166
- onClick: n[3] || (n[3] = (o) => P(v.value[2]))
1167
- }, ho))
1183
+ onClick: l[3] || (l[3] = (o) => P(v.value[2]))
1184
+ }, po))
1168
1185
  ]),
1169
- vo,
1170
- t("div", po, [
1171
- _o,
1172
- (l(), r("svg", {
1186
+ _o,
1187
+ t("div", go, [
1188
+ mo,
1189
+ (n(), a("svg", {
1173
1190
  width: "18",
1174
1191
  height: "18",
1175
1192
  viewBox: "0 0 18 18",
1176
1193
  fill: "none",
1177
1194
  xmlns: "http://www.w3.org/2000/svg",
1178
- onClick: n[4] || (n[4] = (o) => P(v.value[3]))
1179
- }, mo))
1195
+ onClick: l[4] || (l[4] = (o) => P(v.value[3]))
1196
+ }, ko))
1180
1197
  ]),
1181
- t("div", Co, [
1182
- ko,
1183
- (l(), r("svg", {
1198
+ t("div", wo, [
1199
+ bo,
1200
+ (n(), a("svg", {
1184
1201
  width: "18",
1185
1202
  height: "18",
1186
1203
  viewBox: "0 0 18 18",
1187
1204
  fill: "none",
1188
1205
  xmlns: "http://www.w3.org/2000/svg",
1189
- onClick: n[5] || (n[5] = (o) => P(v.value[4]))
1190
- }, bo))
1206
+ onClick: l[5] || (l[5] = (o) => P(v.value[4]))
1207
+ }, xo))
1191
1208
  ]),
1192
- t("div", yo, [
1193
- xo,
1194
- (l(), r("svg", {
1209
+ t("div", So, [
1210
+ Mo,
1211
+ (n(), a("svg", {
1195
1212
  width: "18",
1196
1213
  height: "18",
1197
1214
  viewBox: "0 0 18 18",
1198
1215
  fill: "none",
1199
1216
  xmlns: "http://www.w3.org/2000/svg",
1200
- onClick: n[6] || (n[6] = (o) => P(v.value[5]))
1201
- }, Mo))
1217
+ onClick: l[6] || (l[6] = (o) => P(v.value[5]))
1218
+ }, $o))
1202
1219
  ]),
1203
- Lo
1220
+ Bo
1204
1221
  ]),
1205
- (l(!0), r(T, null, z(c.value, (o) => (l(), r("div", {
1222
+ (n(!0), a(O, null, z(c.value, (o) => (n(), a("div", {
1206
1223
  key: `i-${o.id}`,
1207
1224
  class: "row scrollable-row"
1208
1225
  }, [
1209
1226
  t("div", {
1210
1227
  class: y(["row team-info", { odd: o.isOdd }])
1211
1228
  }, [
1212
- t("div", $o, [
1229
+ t("div", Ro, [
1213
1230
  t("img", {
1214
1231
  src: o.team_logo,
1215
1232
  alt: "team logo"
1216
- }, null, 8, Bo)
1233
+ }, null, 8, Eo)
1217
1234
  ]),
1218
- t("div", Ro, h(o.team_abrev), 1)
1235
+ t("div", Po, h(o.team_abrev), 1)
1219
1236
  ], 2),
1220
1237
  t("div", {
1221
1238
  class: y(["row data-info", { odd: o.isOdd }])
@@ -1230,7 +1247,7 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
1230
1247
  src: o.player_country_flag,
1231
1248
  alt: "player country flag",
1232
1249
  class: "country-flag"
1233
- }, null, 8, Eo)
1250
+ }, null, 8, To)
1234
1251
  ], 2),
1235
1252
  t("div", {
1236
1253
  class: y(["row data-info", { odd: o.isOdd }])
@@ -1257,11 +1274,11 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
1257
1274
  "border-color": "#55636e",
1258
1275
  "text-value": "Ver videos",
1259
1276
  "font-size": "10px",
1260
- onClick: (a) => q(o)
1277
+ onClick: (r) => q(o)
1261
1278
  }, null, 8, ["onClick"])
1262
1279
  ], 2)
1263
1280
  ]))), 128))
1264
- ], 64)) : (l(), st(se, {
1281
+ ], 64)) : (n(), st(se, {
1265
1282
  key: 1,
1266
1283
  ref_key: "scrollColumns",
1267
1284
  ref: R,
@@ -1274,7 +1291,7 @@ const Nt = /* @__PURE__ */ Tt(N, [["render", Ht], ["__scopeId", "data-v-f3ee6b2b
1274
1291
  ], 512)
1275
1292
  ], 4));
1276
1293
  }
1277
- }, Oo = /* @__PURE__ */ dt(Po, [["__scopeId", "data-v-14d97ca7"]]);
1294
+ }, Vo = /* @__PURE__ */ dt(Io, [["__scopeId", "data-v-c0606edc"]]);
1278
1295
  export {
1279
- Oo as GSCTableScrollable
1296
+ Vo as GSCTableScrollable
1280
1297
  };