@golstats/gsc-table-scrollable 1.0.9 → 1.0.11

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,19 +1,19 @@
1
- import { useCssVars as tt, ref as C, computed as V, watch as F, createElementBlock as n, openBlock as l, normalizeClass as _, createElementVNode as t, createCommentVNode as x, normalizeStyle as S, Fragment as I, toDisplayString as f, pushScopeId as D, popScopeId as A, onMounted as et, renderList as E, onBeforeUnmount as ut, createVNode as J, createBlock as X, Transition as ft, withCtx as ht, withDirectives as vt, createTextVNode as T, vShow as pt, unref as K, createStaticVNode as gt } from "vue";
2
- const _t = (o, r) => {
1
+ import { useCssVars as se, ref as y, computed as I, watch as D, createElementBlock as n, openBlock as l, normalizeClass as m, createElementVNode as e, createCommentVNode as L, normalizeStyle as $, Fragment as R, toDisplayString as u, pushScopeId as W, popScopeId as j, onMounted as ie, renderList as P, onBeforeUnmount as ve, createVNode as Q, createBlock as Y, Transition as pe, withCtx as _e, withDirectives as ge, createTextVNode as E, vShow as me, unref as ee, createStaticVNode as Ce } from "vue";
2
+ const be = (o, d) => {
3
3
  const s = o.__vccOpts || o;
4
- for (const [c, p] of r)
5
- s[c] = p;
4
+ for (const [r, v] of d)
5
+ s[r] = v;
6
6
  return s;
7
- }, mt = { key: 1 }, bt = {
7
+ }, we = { key: 1 }, ye = {
8
8
  width: "10",
9
9
  height: "8",
10
10
  viewBox: "0 0 10 8",
11
11
  fill: "none",
12
12
  xmlns: "http://www.w3.org/2000/svg"
13
- }, Ct = ["fill"], yt = {
13
+ }, ke = ["fill"], xe = {
14
14
  key: 0,
15
15
  class: "checkbox__teams"
16
- }, wt = { class: "checkbox__teams__logo" }, kt = ["src"], xt = { class: "checkbox__teams__logo" }, St = ["src"], Lt = {
16
+ }, Se = { class: "checkbox__teams__logo" }, Le = ["src"], $e = { class: "checkbox__teams__logo" }, Me = ["src"], Be = {
17
17
  __name: "GSC-Checkbox",
18
18
  props: {
19
19
  width: {
@@ -122,14 +122,14 @@ const _t = (o, r) => {
122
122
  }
123
123
  },
124
124
  emits: ["update:modelValue"],
125
- setup(o, { emit: r }) {
125
+ setup(o, { emit: d }) {
126
126
  const s = o;
127
- tt((v) => ({
127
+ se((h) => ({
128
128
  "7bd9d47b": o.width,
129
129
  "34dc7ddc": o.height
130
130
  }));
131
- const c = C(!1), p = V(() => {
132
- const v = {
131
+ const r = y(!1), v = I(() => {
132
+ const h = {
133
133
  color: s.boxValueColor,
134
134
  "font-family": s.fontFamily,
135
135
  height: s.boxWidthAndHeight,
@@ -138,84 +138,84 @@ const _t = (o, r) => {
138
138
  "border-radius": s.boxBorderRadius,
139
139
  "margin-top": s.boxMarginTop
140
140
  };
141
- return c.value ? (v["background-color"] = s.boxBackgroundColor, v.border = `solid ${s.boxBorderWidth} ${s.boxBackgroundColor}`) : v.border = `solid ${s.boxBorderWidth} ${s.boxBorderColor}`, v;
142
- }), h = V(() => ({
141
+ return r.value ? (h["background-color"] = s.boxBackgroundColor, h.border = `solid ${s.boxBorderWidth} ${s.boxBackgroundColor}`) : h.border = `solid ${s.boxBorderWidth} ${s.boxBorderColor}`, h;
142
+ }), f = I(() => ({
143
143
  "font-family": s.boxValueFontFamily,
144
144
  "font-size": s.boxValueFontSize,
145
145
  color: s.boxValueColor,
146
146
  "line-height": 1
147
- })), y = V(() => {
148
- const v = {
147
+ })), k = I(() => {
148
+ const h = {
149
149
  color: s.labelColor,
150
150
  "font-family": s.fontFamily,
151
151
  "font-size": s.labelFontSize,
152
152
  "white-space": s.labelWhiteSpace,
153
153
  "text-align": s.boxPosition === "top" || s.boxPosition === "bottom" ? "center" : s.boxPosition
154
154
  };
155
- return (s.boxPosition === "left" || s.boxPosition === "right") && (v[`margin-${s.boxPosition}`] = s.isBoxOnly ? "0" : s.teamsIds ? "8px" : "10px"), v;
155
+ return (s.boxPosition === "left" || s.boxPosition === "right") && (h[`margin-${s.boxPosition}`] = s.isBoxOnly ? "0" : s.teamsIds ? "8px" : "10px"), h;
156
156
  });
157
- F(
157
+ D(
158
158
  () => s.modelValue,
159
- (v) => {
160
- v !== c.value && (c.value = v);
159
+ (h) => {
160
+ h !== r.value && (r.value = h);
161
161
  },
162
162
  { immediate: !0 }
163
163
  );
164
- function L() {
165
- s.avoidInteraction || !c.value && s.avoidToCheck || (c.value = !c.value, r("update:modelValue", c.value));
164
+ function M() {
165
+ s.avoidInteraction || !r.value && s.avoidToCheck || (r.value = !r.value, d("update:modelValue", r.value));
166
166
  }
167
- function $(v) {
168
- return `${{}.TEAM_LOGOS_URL || "https://golstatsimages.blob.core.windows.net/teams-80/"}${v}.png`;
167
+ function B(h) {
168
+ return `${{}.TEAM_LOGOS_URL || "https://golstatsimages.blob.core.windows.net/teams-80/"}${h}.png`;
169
169
  }
170
- return (v, M) => (l(), n("div", {
171
- class: _(["checkbox", `box-${o.boxPosition}`]),
172
- onClick: L
170
+ return (h, V) => (l(), n("div", {
171
+ class: m(["checkbox", `box-${o.boxPosition}`]),
172
+ onClick: M
173
173
  }, [
174
- t("div", {
174
+ e("div", {
175
175
  class: "checkbox__box",
176
- style: S(p.value)
176
+ style: $(v.value)
177
177
  }, [
178
- c.value ? (l(), n(I, { key: 0 }, [
178
+ r.value ? (l(), n(R, { key: 0 }, [
179
179
  s.boxValue ? (l(), n("div", {
180
180
  key: 0,
181
181
  class: "checkbox__box__value",
182
- style: S(h.value)
183
- }, f(o.boxValue), 5)) : (l(), n("div", mt, [
184
- (l(), n("svg", bt, [
185
- t("path", {
182
+ style: $(f.value)
183
+ }, u(o.boxValue), 5)) : (l(), n("div", we, [
184
+ (l(), n("svg", ye, [
185
+ e("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: o.boxValueColor
188
- }, null, 8, Ct)
188
+ }, null, 8, ke)
189
189
  ]))
190
190
  ]))
191
- ], 64)) : x("", !0)
191
+ ], 64)) : L("", !0)
192
192
  ], 4),
193
- o.teamsIds && o.teamsIds.length ? (l(), n("div", yt, [
194
- t("div", wt, [
195
- t("img", {
196
- src: $(o.teamsIds[0]),
193
+ o.teamsIds && o.teamsIds.length ? (l(), n("div", xe, [
194
+ e("div", Se, [
195
+ e("img", {
196
+ src: B(o.teamsIds[0]),
197
197
  alt: ""
198
- }, null, 8, kt)
198
+ }, null, 8, Le)
199
199
  ]),
200
- t("div", xt, [
201
- t("img", {
202
- src: $(o.teamsIds[1]),
200
+ e("div", $e, [
201
+ e("img", {
202
+ src: B(o.teamsIds[1]),
203
203
  alt: ""
204
- }, null, 8, St)
204
+ }, null, 8, Me)
205
205
  ])
206
- ])) : x("", !0),
207
- t("div", {
206
+ ])) : L("", !0),
207
+ e("div", {
208
208
  class: "checkbox__label",
209
- style: S(y.value)
210
- }, f(o.label), 5)
209
+ style: $(k.value)
210
+ }, u(o.label), 5)
211
211
  ], 2));
212
212
  }
213
- }, $t = /* @__PURE__ */ _t(Lt, [["__scopeId", "data-v-b6f124d8"]]), Bt = (o, r) => {
213
+ }, Ve = /* @__PURE__ */ be(Be, [["__scopeId", "data-v-b6f124d8"]]), Ie = (o, d) => {
214
214
  const s = o.__vccOpts || o;
215
- for (const [c, p] of r)
216
- s[c] = p;
215
+ for (const [r, v] of d)
216
+ s[r] = v;
217
217
  return s;
218
- }, W = {
218
+ }, H = {
219
219
  props: {
220
220
  type: { type: Number, default: 0 },
221
221
  value: { type: Boolean, default: !1 },
@@ -289,8 +289,8 @@ const _t = (o, r) => {
289
289
  this.$emit("click", o), this.typeOnOff && (this.status = !this.status, this.$emit("status", this.status));
290
290
  }
291
291
  }
292
- }, Q = () => {
293
- tt((o) => ({
292
+ }, te = () => {
293
+ se((o) => ({
294
294
  "9d01acb4": o.height,
295
295
  "14e95081": o.borderWidthBtn,
296
296
  "38fec285": o.borderType,
@@ -305,59 +305,72 @@ const _t = (o, r) => {
305
305
  "93b87770": o.marginLeftStat,
306
306
  c7f7beba: o.fontSizeStat
307
307
  }));
308
- }, Y = W.setup;
309
- W.setup = Y ? (o, r) => (Q(), Y(o, r)) : Q;
310
- const Mt = (o) => (D("data-v-f3ee6b2b"), o = o(), A(), o), Vt = ["src"], It = {
308
+ }, oe = H.setup;
309
+ H.setup = oe ? (o, d) => (te(), oe(o, d)) : te;
310
+ const Re = (o) => (W("data-v-f3ee6b2b"), o = o(), j(), o), Te = ["src"], Ee = {
311
311
  key: 1,
312
312
  class: "text"
313
- }, Rt = ["src"], Tt = { class: "stats" }, Et = /* @__PURE__ */ Mt(() => /* @__PURE__ */ t("img", {
313
+ }, Oe = ["src"], Pe = { class: "stats" }, Fe = /* @__PURE__ */ Re(() => /* @__PURE__ */ e("img", {
314
314
  class: "iconstats",
315
315
  src: "https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"
316
- }, null, -1)), Ot = { class: "numstats" }, Ft = { class: "leyend" };
317
- function Pt(o, r, s, c, p, h) {
316
+ }, null, -1)), ze = { class: "numstats" }, De = { class: "leyend" };
317
+ function Ze(o, d, s, r, v, f) {
318
318
  return l(), n("div", null, [
319
319
  s.type == 0 ? (l(), n("div", {
320
320
  key: 0,
321
- class: _(["button", p.status && s.typeOnOff && "button-active"]),
322
- style: S([h.customStyle, p.status && s.typeOnOff && h.customActive]),
323
- onClick: r[0] || (r[0] = (...y) => h.btnClick && h.btnClick(...y))
321
+ class: m(["button", v.status && s.typeOnOff && "button-active"]),
322
+ style: $([f.customStyle, v.status && s.typeOnOff && f.customActive]),
323
+ onClick: d[0] || (d[0] = (...k) => f.btnClick && f.btnClick(...k))
324
324
  }, [
325
325
  s.icon && s.iconPosition.toLowerCase() === "left" ? (l(), n("img", {
326
326
  key: 0,
327
327
  class: "icon",
328
- style: S({ width: s.iconSize }),
328
+ style: $({ width: s.iconSize }),
329
329
  src: s.icon
330
- }, null, 12, Vt)) : x("", !0),
331
- s.textValue ? (l(), n("div", It, f(s.textValue), 1)) : x("", !0),
330
+ }, null, 12, Te)) : L("", !0),
331
+ s.textValue ? (l(), n("div", Ee, u(s.textValue), 1)) : L("", !0),
332
332
  s.icon && s.iconPosition.toLowerCase() === "right" ? (l(), n("img", {
333
333
  key: 2,
334
334
  class: "icon",
335
- style: S({ width: s.iconSize }),
335
+ style: $({ width: s.iconSize }),
336
336
  src: s.icon
337
- }, null, 12, Rt)) : x("", !0)
338
- ], 6)) : x("", !0),
337
+ }, null, 12, Oe)) : L("", !0)
338
+ ], 6)) : L("", !0),
339
339
  s.type == 1 ? (l(), n("div", {
340
340
  key: 1,
341
341
  class: "button-target",
342
- onClick: r[1] || (r[1] = (...y) => h.btnClick && h.btnClick(...y))
342
+ onClick: d[1] || (d[1] = (...k) => f.btnClick && f.btnClick(...k))
343
343
  }, [
344
- t("div", Tt, [
345
- Et,
346
- t("div", Ot, f(s.textStat), 1)
344
+ e("div", Pe, [
345
+ Fe,
346
+ e("div", ze, u(s.textStat), 1)
347
347
  ]),
348
- t("div", Ft, f(s.textCategory), 1)
349
- ])) : x("", !0)
348
+ e("div", De, u(s.textCategory), 1)
349
+ ])) : L("", !0)
350
350
  ]);
351
351
  }
352
- const zt = /* @__PURE__ */ Bt(W, [["render", Pt], ["__scopeId", "data-v-f3ee6b2b"]]), ot = (o, r) => {
352
+ const Ae = /* @__PURE__ */ Ie(H, [["render", Ze], ["__scopeId", "data-v-f3ee6b2b"]]), le = (o, d) => {
353
353
  const s = o.__vccOpts || o;
354
- for (const [c, p] of r)
355
- s[c] = p;
354
+ for (const [r, v] of d)
355
+ s[r] = v;
356
356
  return s;
357
- }, Dt = (o) => (D("data-v-d03b93c8"), o = o(), A(), o), At = {
357
+ }, ne = (o) => (W("data-v-7023d006"), o = o(), j(), o), We = {
358
358
  key: 0,
359
359
  class: "overlay"
360
- }, Wt = /* @__PURE__ */ Dt(() => /* @__PURE__ */ t("div", { class: "column-title-2" }, null, -1)), Zt = ["onClick"], jt = {
360
+ }, je = { class: "name" }, He = ["onClick"], Ne = /* @__PURE__ */ ne(() => /* @__PURE__ */ e("svg", {
361
+ width: "11",
362
+ height: "12",
363
+ viewBox: "0 0 11 12",
364
+ fill: "none",
365
+ xmlns: "http://www.w3.org/2000/svg"
366
+ }, [
367
+ /* @__PURE__ */ e("path", {
368
+ d: "M7.50558 0C6.78112 0 6.10558 0.475441 5.89478 1.14401L1.21987 1.14286C0.904267 1.14286 0.648438 1.39886 0.648438 1.71429C0.648438 2.02972 0.904267 2.28572 1.21987 2.28572L5.89478 2.28516C6.15083 2.98516 6.78112 3.42858 7.50558 3.42858C8.23004 3.42858 8.86678 2.98402 9.1273 2.28059L10.3627 2.28572C10.6783 2.28572 10.9342 2.02972 10.9342 1.71429C10.9342 1.39886 10.6783 1.14286 10.3627 1.14286H9.12244C8.8473 0.446287 8.23004 0 7.50558 0ZM7.50558 1.14286C7.82118 1.14286 8.07701 1.39886 8.07701 1.71429C8.07701 2.02972 7.82118 2.28572 7.50558 2.28572C7.18998 2.28572 6.93415 2.02972 6.93415 1.71429C6.93415 1.39886 7.18998 1.14286 7.50558 1.14286ZM4.07701 4.28572C3.32387 4.28572 2.69347 4.7543 2.4633 5.42971C2.38295 5.43485 1.21987 5.42856 1.21987 5.42856C0.904267 5.42856 0.648438 5.68456 0.648438 5.99999C0.648438 6.31542 0.904267 6.57142 1.21987 6.57142C1.21987 6.57142 2.39267 6.55942 2.46575 6.56685C2.69593 7.24228 3.32387 7.71428 4.07701 7.71428C4.80146 7.71428 5.42226 7.27028 5.69381 6.57314L10.3627 6.57142C10.6783 6.57142 10.9342 6.31542 10.9342 5.99999C10.9342 5.68456 10.6783 5.42856 10.3627 5.42856L5.69083 5.42348C5.44038 4.74174 4.80146 4.28572 4.07701 4.28572ZM4.07701 5.42856C4.39261 5.42856 4.64844 5.68456 4.64844 5.99999C4.64844 6.31542 4.39261 6.57142 4.07701 6.57142C3.76141 6.57142 3.50558 6.31542 3.50558 5.99999C3.50558 5.68456 3.76141 5.42856 4.07701 5.42856ZM7.50558 8.57142C6.78112 8.57142 6.11844 9.04857 5.89438 9.70857L1.21987 9.71428C0.904267 9.71428 0.648438 9.97028 0.648438 10.2857C0.648438 10.6011 0.904267 10.8571 1.21987 10.8571L5.88592 10.8577C6.12301 11.5349 6.78112 12 7.50558 12C8.23004 12 8.85467 11.5469 9.12987 10.8577L10.3627 10.8571C10.6783 10.8571 10.9342 10.6011 10.9342 10.2857C10.9342 9.97028 10.6783 9.71428 10.3627 9.71428L9.12467 9.71091C8.87798 9.03491 8.23004 8.57142 7.50558 8.57142ZM7.50558 9.71428C7.82118 9.71428 8.07701 9.97028 8.07701 10.2857C8.07701 10.6011 7.82118 10.8571 7.50558 10.8571C7.18998 10.8571 6.93415 10.6011 6.93415 10.2857C6.93415 9.97028 7.18998 9.71428 7.50558 9.71428Z",
369
+ fill: "white"
370
+ })
371
+ ], -1)), Ge = [
372
+ Ne
373
+ ], Ue = /* @__PURE__ */ ne(() => /* @__PURE__ */ e("div", { class: "column-title-2" }, null, -1)), qe = ["onClick"], Je = {
361
374
  __name: "ScrollColumns",
362
375
  props: {
363
376
  availablePlayers: {
@@ -370,85 +383,96 @@ const zt = /* @__PURE__ */ Bt(W, [["render", Pt], ["__scopeId", "data-v-f3ee6b2b
370
383
  }
371
384
  },
372
385
  emits: ["expand", "open-media"],
373
- setup(o, { expose: r, emit: s }) {
374
- const c = o, p = C(null), h = C(null), y = C(0);
375
- C(!1);
376
- const L = V(() => {
377
- const a = c.availablePlayers[0];
378
- return a ? a.stats : [];
379
- }), $ = V(() => {
380
- const a = `repeat(${L.value.length}, max-content) 36px`;
381
- let g = "";
382
- return y.value > 0 && document.querySelectorAll(".column-title-2").forEach((B) => {
383
- g += `${B.offsetWidth}px `;
386
+ setup(o, { expose: d, emit: s }) {
387
+ const r = o, v = y(null), f = y(null), k = y(0);
388
+ y(!1);
389
+ const M = I(() => {
390
+ const p = r.availablePlayers[0];
391
+ return p ? p.stats : [];
392
+ }), B = I(() => {
393
+ const p = `repeat(${M.value.length}, max-content) 36px`;
394
+ let _ = "";
395
+ return k.value > 0 && document.querySelectorAll(".column-title-2").forEach((S) => {
396
+ _ += `${S.offsetWidth}px `;
384
397
  }), {
385
- "--grid-template-columns": a,
386
- "--grid-template-columns-totals": g || a
398
+ "--grid-template-columns": p,
399
+ "--grid-template-columns-totals": _ || p
387
400
  };
388
401
  });
389
- function v() {
390
- p.value = new ResizeObserver((a) => {
391
- for (const g of a) {
392
- const { width: b } = g.contentRect;
393
- y.value = b;
402
+ function h() {
403
+ v.value = new ResizeObserver((p) => {
404
+ for (const _ of p) {
405
+ const { width: b } = _.contentRect;
406
+ k.value = b;
394
407
  }
395
- }), p.value.observe(h.value);
408
+ }), v.value.observe(f.value);
409
+ }
410
+ function V(p, _) {
411
+ const S = document.querySelectorAll(".scrollable-row-totals")[p + 1];
412
+ S && (S.style.marginTop = `${_}px`);
396
413
  }
397
- function M(a, g) {
398
- const B = document.querySelectorAll(".scrollable-row-totals")[a + 1];
399
- B && (B.style.marginTop = `${g}px`);
414
+ function T({ player: p, stat: _ }) {
415
+ !_.total || _ === "0%" || !_.seasons || !_.seasons.length || s("open-media", { ...p, stat: _ });
400
416
  }
401
- function R({ player: a, stat: g }) {
402
- !g.total || g === "0%" || !g.seasons || !g.seasons.length || s("open-media", { ...a, stat: g });
417
+ function g(p) {
418
+ !p || p === "no" || s("click-parameters", p);
403
419
  }
404
- return et(() => {
405
- v();
406
- }), r({
407
- setMarginTopDetails: M
408
- }), (a, g) => (l(), n("div", {
420
+ return ie(() => {
421
+ h();
422
+ }), d({
423
+ setMarginTopDetails: V
424
+ }), (p, _) => (l(), n("div", {
409
425
  class: "scroll-columns",
410
- style: S($.value)
426
+ style: $(B.value)
411
427
  }, [
412
- o.isEditMode ? (l(), n("div", At)) : x("", !0),
413
- t("div", {
428
+ o.isEditMode ? (l(), n("div", We)) : L("", !0),
429
+ e("div", {
414
430
  ref_key: "titlesRow",
415
- ref: h,
431
+ ref: f,
416
432
  class: "scrollable-row-2"
417
433
  }, [
418
- (l(!0), n(I, null, E(L.value, (b) => (l(), n("div", {
419
- key: `t-${b.category_id}`,
434
+ (l(!0), n(R, null, P(M.value, (b, S) => (l(), n("div", {
435
+ key: `t-${S}`,
420
436
  class: "column-title-2"
421
- }, f(b.name), 1))), 128)),
422
- Wt
437
+ }, [
438
+ e("div", je, u(b.name), 1),
439
+ b.parameters && b.parameters !== "no" ? (l(), n("div", {
440
+ key: 0,
441
+ class: "parameters",
442
+ role: "button",
443
+ onClick: (x) => g(b.parameters)
444
+ }, Ge, 8, He)) : L("", !0)
445
+ ]))), 128)),
446
+ Ue
423
447
  ], 512),
424
- (l(!0), n(I, null, E(o.availablePlayers, (b, B) => (l(), n("div", {
448
+ (l(!0), n(R, null, P(o.availablePlayers, (b, S) => (l(), n("div", {
425
449
  key: `i-${b.id}`,
426
450
  class: "row scrollable-row-totals"
427
451
  }, [
428
- (l(!0), n(I, null, E(b.stats, (w) => (l(), n("div", {
429
- key: w.category_id,
430
- class: _(["row data-info", { odd: B % 2 !== 0, underline: !!w.total && w.total !== "0%" && w.seasons && w.seasons.length }]),
431
- onClick: (Z) => R({ player: b, stat: w })
432
- }, f(w.total), 11, Zt))), 128))
452
+ (l(!0), n(R, null, P(b.stats, (x) => (l(), n("div", {
453
+ key: x.category_id,
454
+ class: m(["row data-info", { odd: S % 2 !== 0, underline: !!x.total && x.total !== "0%" && x.seasons && x.seasons.length }]),
455
+ onClick: (N) => T({ player: b, stat: x })
456
+ }, u(x.total), 11, qe))), 128))
433
457
  ]))), 128))
434
458
  ], 4));
435
459
  }
436
- }, Ht = /* @__PURE__ */ ot(jt, [["__scopeId", "data-v-d03b93c8"]]), m = (o) => (D("data-v-ef3c543d"), o = o(), A(), o), Nt = { class: "table__static-column" }, Gt = /* @__PURE__ */ m(() => /* @__PURE__ */ t("div", { class: "static-title column-title" }, null, -1)), Ut = { class: "container" }, qt = { class: "details-row__info" }, Jt = { class: "details-row__info__personal" }, Xt = { class: "bold" }, Kt = { class: "bold" }, Qt = { class: "bold" }, Yt = { class: "bold" }, te = { class: "details-row__info__games" }, ee = { class: "bold" }, oe = { class: "bold" }, se = ["onClick"], ie = /* @__PURE__ */ m(() => /* @__PURE__ */ t("div", null, "Ver gráfica", -1)), le = /* @__PURE__ */ m(() => /* @__PURE__ */ t("svg", {
460
+ }, Xe = /* @__PURE__ */ le(Je, [["__scopeId", "data-v-7023d006"]]), C = (o) => (W("data-v-510e4abc"), o = o(), j(), o), Ke = { class: "table__static-column" }, Qe = /* @__PURE__ */ C(() => /* @__PURE__ */ e("div", { class: "static-title column-title" }, null, -1)), Ye = { class: "container" }, et = { class: "details-row__info" }, tt = { class: "details-row__info__personal" }, ot = { class: "bold" }, st = { class: "bold" }, it = { class: "bold" }, lt = { class: "bold" }, nt = { class: "details-row__info__games" }, at = { class: "bold" }, dt = { class: "bold" }, rt = ["onClick"], ct = /* @__PURE__ */ C(() => /* @__PURE__ */ e("div", null, "Ver gráfica", -1)), ut = /* @__PURE__ */ C(() => /* @__PURE__ */ e("svg", {
437
461
  width: "17",
438
462
  height: "16",
439
463
  viewBox: "0 0 17 16",
440
464
  fill: "none",
441
465
  xmlns: "http://www.w3.org/2000/svg"
442
466
  }, [
443
- /* @__PURE__ */ t("g", { "clip-path": "url(#clip0_3514_71971)" }, [
444
- /* @__PURE__ */ t("path", {
467
+ /* @__PURE__ */ e("g", { "clip-path": "url(#clip0_3514_71971)" }, [
468
+ /* @__PURE__ */ e("path", {
445
469
  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",
446
470
  fill: "white"
447
471
  })
448
472
  ]),
449
- /* @__PURE__ */ t("defs", null, [
450
- /* @__PURE__ */ t("clipPath", { id: "clip0_3514_71971" }, [
451
- /* @__PURE__ */ t("rect", {
473
+ /* @__PURE__ */ e("defs", null, [
474
+ /* @__PURE__ */ e("clipPath", { id: "clip0_3514_71971" }, [
475
+ /* @__PURE__ */ e("rect", {
452
476
  width: "16",
453
477
  height: "16",
454
478
  fill: "white",
@@ -456,17 +480,17 @@ const zt = /* @__PURE__ */ Bt(W, [["render", Pt], ["__scopeId", "data-v-f3ee6b2b
456
480
  })
457
481
  ])
458
482
  ])
459
- ], -1)), ne = [
460
- ie,
461
- le
462
- ], ae = ["onClick"], de = /* @__PURE__ */ m(() => /* @__PURE__ */ t("div", null, "Eliminar de lista", -1)), re = /* @__PURE__ */ m(() => /* @__PURE__ */ t("svg", {
483
+ ], -1)), ft = [
484
+ ct,
485
+ ut
486
+ ], ht = ["onClick"], vt = /* @__PURE__ */ C(() => /* @__PURE__ */ e("div", null, "Eliminar de lista", -1)), pt = /* @__PURE__ */ C(() => /* @__PURE__ */ e("svg", {
463
487
  width: "17",
464
488
  height: "15",
465
489
  viewBox: "0 0 20 18",
466
490
  fill: "none",
467
491
  xmlns: "http://www.w3.org/2000/svg"
468
492
  }, [
469
- /* @__PURE__ */ t("path", {
493
+ /* @__PURE__ */ e("path", {
470
494
  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",
471
495
  stroke: "white",
472
496
  "stroke-opacity": "0.5",
@@ -474,7 +498,7 @@ const zt = /* @__PURE__ */ Bt(W, [["render", Pt], ["__scopeId", "data-v-f3ee6b2b
474
498
  "stroke-linecap": "round",
475
499
  "stroke-linejoin": "round"
476
500
  }),
477
- /* @__PURE__ */ t("path", {
501
+ /* @__PURE__ */ e("path", {
478
502
  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",
479
503
  stroke: "white",
480
504
  "stroke-opacity": "0.5",
@@ -482,7 +506,7 @@ const zt = /* @__PURE__ */ Bt(W, [["render", Pt], ["__scopeId", "data-v-f3ee6b2b
482
506
  "stroke-linecap": "round",
483
507
  "stroke-linejoin": "round"
484
508
  }),
485
- /* @__PURE__ */ t("path", {
509
+ /* @__PURE__ */ e("path", {
486
510
  d: "M18.332 8.16663H13.332",
487
511
  stroke: "white",
488
512
  "stroke-opacity": "0.5",
@@ -490,17 +514,17 @@ const zt = /* @__PURE__ */ Bt(W, [["render", Pt], ["__scopeId", "data-v-f3ee6b2b
490
514
  "stroke-linecap": "round",
491
515
  "stroke-linejoin": "round"
492
516
  })
493
- ], -1)), ce = [
494
- de,
495
- re
496
- ], ue = ["onClick"], fe = /* @__PURE__ */ m(() => /* @__PURE__ */ t("div", null, "Agregar a lista", -1)), he = /* @__PURE__ */ m(() => /* @__PURE__ */ t("svg", {
517
+ ], -1)), _t = [
518
+ vt,
519
+ pt
520
+ ], gt = ["onClick"], mt = /* @__PURE__ */ C(() => /* @__PURE__ */ e("div", null, "Agregar a lista", -1)), Ct = /* @__PURE__ */ C(() => /* @__PURE__ */ e("svg", {
497
521
  width: "20",
498
522
  height: "20",
499
523
  viewBox: "0 0 20 20",
500
524
  fill: "none",
501
525
  xmlns: "http://www.w3.org/2000/svg"
502
526
  }, [
503
- /* @__PURE__ */ t("path", {
527
+ /* @__PURE__ */ e("path", {
504
528
  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",
505
529
  stroke: "white",
506
530
  "stroke-opacity": "1",
@@ -508,7 +532,7 @@ const zt = /* @__PURE__ */ Bt(W, [["render", Pt], ["__scopeId", "data-v-f3ee6b2b
508
532
  "stroke-linecap": "round",
509
533
  "stroke-linejoin": "round"
510
534
  }),
511
- /* @__PURE__ */ t("path", {
535
+ /* @__PURE__ */ e("path", {
512
536
  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",
513
537
  stroke: "white",
514
538
  "stroke-opacity": "1",
@@ -516,7 +540,7 @@ const zt = /* @__PURE__ */ Bt(W, [["render", Pt], ["__scopeId", "data-v-f3ee6b2b
516
540
  "stroke-linecap": "round",
517
541
  "stroke-linejoin": "round"
518
542
  }),
519
- /* @__PURE__ */ t("path", {
543
+ /* @__PURE__ */ e("path", {
520
544
  d: "M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",
521
545
  stroke: "white",
522
546
  "stroke-opacity": "1",
@@ -524,69 +548,69 @@ const zt = /* @__PURE__ */ Bt(W, [["render", Pt], ["__scopeId", "data-v-f3ee6b2b
524
548
  "stroke-linecap": "round",
525
549
  "stroke-linejoin": "round"
526
550
  })
527
- ], -1)), ve = [
528
- fe,
529
- he
530
- ], pe = ["onClick"], ge = /* @__PURE__ */ m(() => /* @__PURE__ */ t("div", null, "Ver perfil", -1)), _e = [
531
- ge
532
- ], me = { class: "static-row__info-player" }, be = { class: "position" }, Ce = ["onClick"], ye = /* @__PURE__ */ m(() => /* @__PURE__ */ t("path", {
551
+ ], -1)), bt = [
552
+ mt,
553
+ Ct
554
+ ], wt = ["onClick"], yt = /* @__PURE__ */ C(() => /* @__PURE__ */ e("div", null, "Ver perfil", -1)), kt = [
555
+ yt
556
+ ], xt = { class: "static-row__info-player" }, St = { class: "position" }, Lt = ["onClick"], $t = /* @__PURE__ */ C(() => /* @__PURE__ */ e("path", {
533
557
  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",
534
558
  stroke: "white",
535
559
  "stroke-opacity": "0.5",
536
560
  "stroke-width": "1.5",
537
561
  "stroke-linecap": "round",
538
562
  "stroke-linejoin": "round"
539
- }, null, -1)), we = /* @__PURE__ */ m(() => /* @__PURE__ */ t("path", {
563
+ }, null, -1)), Mt = /* @__PURE__ */ C(() => /* @__PURE__ */ e("path", {
540
564
  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",
541
565
  stroke: "white",
542
566
  "stroke-opacity": "0.5",
543
567
  "stroke-width": "1.5",
544
568
  "stroke-linecap": "round",
545
569
  "stroke-linejoin": "round"
546
- }, null, -1)), ke = /* @__PURE__ */ m(() => /* @__PURE__ */ t("path", {
570
+ }, null, -1)), Bt = /* @__PURE__ */ C(() => /* @__PURE__ */ e("path", {
547
571
  d: "M18.332 8.16663H13.332",
548
572
  stroke: "white",
549
573
  "stroke-opacity": "0.5",
550
574
  "stroke-width": "1.5",
551
575
  "stroke-linecap": "round",
552
576
  "stroke-linejoin": "round"
553
- }, null, -1)), xe = [
554
- ye,
555
- we,
556
- ke
557
- ], Se = ["onClick"], Le = /* @__PURE__ */ m(() => /* @__PURE__ */ t("path", {
577
+ }, null, -1)), Vt = [
578
+ $t,
579
+ Mt,
580
+ Bt
581
+ ], It = ["onClick"], Rt = /* @__PURE__ */ C(() => /* @__PURE__ */ e("path", {
558
582
  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",
559
583
  stroke: "white",
560
584
  "stroke-opacity": "1",
561
585
  "stroke-width": "1.44023",
562
586
  "stroke-linecap": "round",
563
587
  "stroke-linejoin": "round"
564
- }, null, -1)), $e = /* @__PURE__ */ m(() => /* @__PURE__ */ t("path", {
588
+ }, null, -1)), Tt = /* @__PURE__ */ C(() => /* @__PURE__ */ e("path", {
565
589
  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",
566
590
  stroke: "white",
567
591
  "stroke-opacity": "1",
568
592
  "stroke-width": "1.44023",
569
593
  "stroke-linecap": "round",
570
594
  "stroke-linejoin": "round"
571
- }, null, -1)), Be = /* @__PURE__ */ m(() => /* @__PURE__ */ t("path", {
595
+ }, null, -1)), Et = /* @__PURE__ */ C(() => /* @__PURE__ */ e("path", {
572
596
  d: "M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",
573
597
  stroke: "white",
574
598
  "stroke-opacity": "1",
575
599
  "stroke-width": "1.44023",
576
600
  "stroke-linecap": "round",
577
601
  "stroke-linejoin": "round"
578
- }, null, -1)), Me = [
579
- Le,
580
- $e,
581
- Be
582
- ], Ve = { class: "player-photo" }, Ie = ["src"], Re = { class: "player-name" }, Te = { class: "arrow" }, Ee = ["onClick"], Oe = /* @__PURE__ */ m(() => /* @__PURE__ */ t("path", {
602
+ }, null, -1)), Ot = [
603
+ Rt,
604
+ Tt,
605
+ Et
606
+ ], Pt = { class: "player-photo" }, Ft = ["src"], zt = { class: "player-name" }, Dt = { class: "arrow" }, Zt = ["onClick"], At = /* @__PURE__ */ C(() => /* @__PURE__ */ e("path", {
583
607
  "fill-rule": "evenodd",
584
608
  "clip-rule": "evenodd",
585
609
  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",
586
610
  fill: "#D9D9D9"
587
- }, null, -1)), Fe = [
588
- Oe
589
- ], Pe = /* @__PURE__ */ gt('<div class="titles scrollable-row" data-v-ef3c543d><div class="column-title" data-v-ef3c543d>Equipo</div><div class="column-title" data-v-ef3c543d>Posición</div><div class="column-title" data-v-ef3c543d>Edad</div><div class="column-title" data-v-ef3c543d>País</div><div class="column-title" data-v-ef3c543d>Partidos Jugados</div><div class="column-title" data-v-ef3c543d>Minutos Jugados</div><div class="column-title" data-v-ef3c543d>Liga</div><div class="column-title" data-v-ef3c543d>Videos</div><div class="column-title" data-v-ef3c543d></div></div>', 1), ze = { class: "team-logo" }, De = ["src"], Ae = { class: "team-name data-info" }, We = ["src"], Ze = {
611
+ }, null, -1)), Wt = [
612
+ At
613
+ ], jt = /* @__PURE__ */ Ce('<div class="titles scrollable-row" data-v-510e4abc><div class="column-title" data-v-510e4abc>Equipo</div><div class="column-title" data-v-510e4abc>Posición</div><div class="column-title" data-v-510e4abc>Edad</div><div class="column-title" data-v-510e4abc>País</div><div class="column-title" data-v-510e4abc>Partidos Jugados</div><div class="column-title" data-v-510e4abc>Minutos Jugados</div><div class="column-title" data-v-510e4abc>Liga</div><div class="column-title" data-v-510e4abc>Videos</div><div class="column-title" data-v-510e4abc></div></div>', 1), Ht = { class: "team-logo" }, Nt = ["src"], Gt = { class: "team-name data-info" }, Ut = ["src"], qt = {
590
614
  __name: "GSC-TableScrollable",
591
615
  props: {
592
616
  players: {
@@ -611,61 +635,68 @@ const zt = /* @__PURE__ */ Bt(W, [["render", Pt], ["__scopeId", "data-v-f3ee6b2b
611
635
  "view-profile",
612
636
  "add-to-list",
613
637
  "view-graph",
614
- "open-media"
638
+ "open-media",
639
+ "click-parameters"
615
640
  ],
616
- setup(o, { emit: r }) {
641
+ setup(o, { emit: d }) {
617
642
  const s = o;
618
- let c = null, p = null;
619
- const h = C([]), y = C(null), L = C(null), $ = C(0), v = C(0), M = C(-1);
620
- C(!1);
621
- const R = C(null), a = C(null), g = V(() => ({
622
- "--width-details": `${$.value}px`,
623
- "--gap-static-row": `${b.value ? "8px" : "18px"}`,
624
- "--width-static-column": `${b.value ? "50%" : "256px"}`
625
- })), b = V(() => $.value < 600);
626
- F(
643
+ let r = null, v = null;
644
+ const f = y([]), k = y(null), M = y(null), B = y(0), h = y(0), V = y(-1);
645
+ y(!1);
646
+ const T = y(null), g = y(null), p = I(() => ({
647
+ "--width-details": `${B.value}px`,
648
+ "--gap-static-row": `${_.value ? "8px" : "18px"}`,
649
+ "--width-static-column": `${_.value ? "50%" : "256px"}`
650
+ })), _ = I(() => B.value < 600);
651
+ D(
627
652
  () => s.players,
628
- (e) => {
629
- e && e.length && (h.value = e.map((d, i) => {
630
- const u = i + 1;
631
- return {
632
- ...d,
633
- position: u < 10 ? `0${u}` : `${u}`,
653
+ (t) => {
654
+ t && t.length && (f.value = t.map((a, i) => {
655
+ const c = i + 1, w = {
656
+ ...a,
657
+ position: c < 10 ? `0${c}` : `${c}`,
634
658
  isSelected: !1,
635
659
  isExpanded: !1,
636
660
  isOdd: i % 2 !== 0,
637
661
  index: i
638
662
  };
663
+ return w.parameters && Object.entries(w.parameters).forEach(([O, A]) => {
664
+ const z = w.stats.find((he) => he.custom_category_id === Number(O));
665
+ z && (z.parameters = A);
666
+ }), w;
639
667
  }));
640
668
  },
641
- { immediate: !0 }
642
- ), F(
669
+ { immediate: !0, deep: !0 }
670
+ ), D(
643
671
  () => s.isEditMode,
644
- (e) => {
645
- e && h.value.forEach((d) => {
646
- d.isSelected = !1;
672
+ (t) => {
673
+ t && f.value.forEach((a) => {
674
+ a.isSelected = !1;
647
675
  });
648
676
  }
649
- ), F(
650
- v,
651
- (e) => {
652
- const i = document.querySelectorAll(".static-row")[M.value + 1];
653
- i && (i.style.marginTop = `${e}px`), s.isGeneral ? B(M.value, e) : L.value && L.value.setMarginTopDetails(M.value, e), e === 0 && R.value && N(R.value);
677
+ ), D(
678
+ h,
679
+ (t) => {
680
+ const i = document.querySelectorAll(".static-row")[V.value + 1];
681
+ i && (i.style.marginTop = `${t}px`), s.isGeneral ? b(V.value, t) : M.value && M.value.setMarginTopDetails(V.value, t), t === 0 && T.value && q(T.value);
654
682
  }
655
683
  );
656
- function B(e, d) {
657
- const u = document.querySelectorAll(".scrollable-row")[e + 2];
658
- u && (u.style.marginTop = `${d}px`);
684
+ function b(t, a) {
685
+ const c = document.querySelectorAll(".scrollable-row")[t + 2];
686
+ c && (c.style.marginTop = `${a}px`);
687
+ }
688
+ function S(t) {
689
+ d("click-parameters", t);
659
690
  }
660
- function w(e) {
661
- const d = e.player || e.objeto_player, i = d ? d.player_id || d.id || d.playerId : e.id || e.player_id, u = d ? d.team_id || d.teamId : e.team_id || e.teamId, k = {
691
+ function x(t) {
692
+ const a = t.player || t.objeto_player, i = a ? a.player_id || a.id || a.playerId : t.id || t.player_id, c = a ? a.team_id || a.teamId : t.team_id || t.teamId, w = {
662
693
  isFeaturedPlayers: !1,
663
694
  mainSectionType: 1,
664
695
  playListType: 2,
665
696
  gameIds: null,
666
697
  playerIds: i ? [i] : [],
667
698
  goalkeeperIds: [],
668
- teamId: u || 0,
699
+ teamId: c || 0,
669
700
  matchResult: [1, 2, 3],
670
701
  categorySingleName: "",
671
702
  isRivalSubject: !1,
@@ -678,28 +709,28 @@ const zt = /* @__PURE__ */ Bt(W, [["render", Pt], ["__scopeId", "data-v-f3ee6b2b
678
709
  playListTitle: "Jugadas Relevantes"
679
710
  }
680
711
  };
681
- if (e.stat && e.stat.seasons && e.stat.seasons.length || e.seasons && e.seasons.length) {
682
- const z = [
683
- ...e.stat && e.stat.seasons && e.stat.seasons.length ? e.stat.seasons : e.seasons
712
+ if (t.stat && t.stat.seasons && t.stat.seasons.length || t.seasons && t.seasons.length) {
713
+ const O = [
714
+ ...t.stat && t.stat.seasons && t.stat.seasons.length ? t.stat.seasons : t.seasons
684
715
  ];
685
- z.sort((rt, ct) => rt - ct), k.seasonId = z.shift(), k.seasonsIds = z;
686
- } else (e.season_id || e.seasonId) && (k.seasonId = e.season_id || e.seasonId);
687
- e.stat ? e.stat.category_id ? k.categoryIds = e.stat.category_id : e.stat.custom_category_id && (k.customCategoryIds = [e.stat.custom_category_id]) : k.categoryIds = it(e.player_position), r("open-media", k);
716
+ O.sort((A, z) => A - z), w.seasonId = O.shift(), w.seasonsIds = O;
717
+ } else (t.season_id || t.seasonId) && (w.seasonId = t.season_id || t.seasonId);
718
+ t.stat ? t.stat.category_id ? w.categoryIds = t.stat.category_id : t.stat.custom_category_id && (w.customCategoryIds = [t.stat.custom_category_id]) : w.categoryIds = de(t.player_position), d("open-media", w);
688
719
  }
689
- function Z() {
690
- c = new ResizeObserver((e) => {
691
- for (const d of e)
692
- $.value = d.contentRect.width;
693
- }), c.observe(y.value);
720
+ function N() {
721
+ r = new ResizeObserver((t) => {
722
+ for (const a of t)
723
+ B.value = a.contentRect.width;
724
+ }), r.observe(k.value);
694
725
  }
695
- function st(e) {
696
- p = new ResizeObserver((d) => {
697
- for (const i of d)
698
- v.value = i.contentRect.height;
699
- }), p.observe(e);
726
+ function ae(t) {
727
+ v = new ResizeObserver((a) => {
728
+ for (const i of a)
729
+ h.value = i.contentRect.height;
730
+ }), v.observe(t);
700
731
  }
701
- function it(e) {
702
- return e === "POR" ? [39, 40, 52, 53, 54, 55, 323, 324, 608, 774, 802] : [
732
+ function de(t) {
733
+ return t === "POR" ? [39, 40, 52, 53, 54, 55, 323, 324, 608, 774, 802] : [
703
734
  10,
704
735
  12,
705
736
  14,
@@ -745,143 +776,143 @@ const zt = /* @__PURE__ */ Bt(W, [["render", Pt], ["__scopeId", "data-v-f3ee6b2b
745
776
  488
746
777
  ];
747
778
  }
748
- function lt(e, d) {
749
- d.isSelected = e;
750
- const i = h.value.filter((u) => u.isSelected);
751
- r("change-selected-players", i);
779
+ function re(t, a) {
780
+ a.isSelected = t;
781
+ const i = f.value.filter((c) => c.isSelected);
782
+ d("change-selected-players", i);
752
783
  }
753
- function nt(e) {
754
- r("view-profile", e);
784
+ function ce(t) {
785
+ d("view-profile", t);
755
786
  }
756
- function j(e) {
757
- r("delete-from-list", e);
787
+ function G(t) {
788
+ d("delete-from-list", t);
758
789
  }
759
- function H(e) {
760
- r("add-to-list", e);
790
+ function U(t) {
791
+ d("add-to-list", t);
761
792
  }
762
- function at(e) {
763
- r("show-graph", e);
793
+ function ue(t) {
794
+ d("show-graph", t);
764
795
  }
765
- function N(e) {
766
- if (e.isExpanded) {
767
- e.isExpanded = !1, R.value = null;
796
+ function q(t) {
797
+ if (t.isExpanded) {
798
+ t.isExpanded = !1, T.value = null;
768
799
  return;
769
800
  }
770
- const d = h.value.find((k) => k.isExpanded);
771
- if (d && (d.isExpanded = !1), d) {
772
- R.value = e;
801
+ const a = f.value.find((w) => w.isExpanded);
802
+ if (a && (a.isExpanded = !1), a) {
803
+ T.value = t;
773
804
  return;
774
805
  }
775
- const u = document.querySelectorAll(".details-row")[e.index];
776
- M.value = e.index, st(u), e.isExpanded = !0;
806
+ const c = document.querySelectorAll(".details-row")[t.index];
807
+ V.value = t.index, ae(c), t.isExpanded = !0;
777
808
  }
778
- let P = !1, G, U, q = function(e) {
779
- P = !0, G = e.pageX - a.value.offsetLeft, U = a.value.scrollLeft;
780
- }, O = function() {
781
- P = !1;
809
+ let Z = !1, J, X, K = function(t) {
810
+ Z = !0, J = t.pageX - g.value.offsetLeft, X = g.value.scrollLeft;
811
+ }, F = function() {
812
+ Z = !1;
782
813
  };
783
- function dt() {
784
- a.value && (a.value.addEventListener("mousemove", (e) => {
785
- if (!P)
814
+ function fe() {
815
+ g.value && (g.value.addEventListener("mousemove", (t) => {
816
+ if (!Z)
786
817
  return;
787
- const i = e.pageX - a.value.offsetLeft - G;
788
- a.value.scrollLeft = U - i;
789
- }), a.value.addEventListener("mousedown", q, !1), a.value.addEventListener("mouseup", O, !1), a.value.addEventListener("mouseleave", O, !1));
818
+ const i = t.pageX - g.value.offsetLeft - J;
819
+ g.value.scrollLeft = X - i;
820
+ }), g.value.addEventListener("mousedown", K, !1), g.value.addEventListener("mouseup", F, !1), g.value.addEventListener("mouseleave", F, !1));
790
821
  }
791
- return et(() => {
792
- Z(), dt();
793
- }), ut(() => {
794
- c && c.disconnect(), p && p.disconnect(), a.value && (a.value.removeEventListener("mousemove", q, !1), a.value.removeEventListener("mouseup", O, !1), a.value.removeEventListener("mouseleave", O, !1));
795
- }), (e, d) => (l(), n("div", {
822
+ return ie(() => {
823
+ N(), fe();
824
+ }), ve(() => {
825
+ r && r.disconnect(), v && v.disconnect(), g.value && (g.value.removeEventListener("mousemove", K, !1), g.value.removeEventListener("mouseup", F, !1), g.value.removeEventListener("mouseleave", F, !1));
826
+ }), (t, a) => (l(), n("div", {
796
827
  class: "table",
797
828
  ref_key: "tableSC",
798
- ref: y,
799
- style: S(g.value)
829
+ ref: k,
830
+ style: $(p.value)
800
831
  }, [
801
- t("div", Nt, [
802
- Gt,
803
- (l(!0), n(I, null, E(h.value, (i) => (l(), n("div", {
832
+ e("div", Ke, [
833
+ Qe,
834
+ (l(!0), n(R, null, P(f.value, (i) => (l(), n("div", {
804
835
  key: `s-${i.id}`,
805
- class: _(["row static-row", { odd: i.isOdd }])
836
+ class: m(["row static-row", { odd: i.isOdd }])
806
837
  }, [
807
- J(ft, null, {
808
- default: ht(() => [
809
- vt(t("div", {
810
- class: _(["details-row", { odd: i.isOdd }])
838
+ Q(pe, null, {
839
+ default: _e(() => [
840
+ ge(e("div", {
841
+ class: m(["details-row", { odd: i.isOdd }])
811
842
  }, [
812
- t("div", Ut, [
813
- t("div", qt, [
814
- t("div", Jt, [
815
- t("div", null, [
816
- T("Equipo: "),
817
- t("span", Xt, f(i.team_name), 1)
843
+ e("div", Ye, [
844
+ e("div", et, [
845
+ e("div", tt, [
846
+ e("div", null, [
847
+ E("Equipo: "),
848
+ e("span", ot, u(i.team_name), 1)
818
849
  ]),
819
- t("div", null, [
820
- T("Edad: "),
821
- t("span", Kt, f(i.player_age) + " Años", 1)
850
+ e("div", null, [
851
+ E("Edad: "),
852
+ e("span", st, u(i.player_age) + " Años", 1)
822
853
  ]),
823
- t("div", null, [
824
- T("Nacionalidad: "),
825
- t("span", Qt, f(i.player_country), 1)
854
+ e("div", null, [
855
+ E("Nacionalidad: "),
856
+ e("span", it, u(i.player_country), 1)
826
857
  ]),
827
- t("div", null, [
828
- T("Posición: "),
829
- t("span", Yt, f(i.position_name), 1)
858
+ e("div", null, [
859
+ E("Posición: "),
860
+ e("span", lt, u(i.position_name), 1)
830
861
  ])
831
862
  ]),
832
- t("div", te, [
833
- t("div", null, [
834
- T("Partidos Jugados: "),
835
- t("span", ee, f(i.player_games), 1)
863
+ e("div", nt, [
864
+ e("div", null, [
865
+ E("Partidos Jugados: "),
866
+ e("span", at, u(i.player_games), 1)
836
867
  ]),
837
- t("div", null, [
838
- T("Minutos Jugados: "),
839
- t("span", oe, f(i.player_min), 1)
868
+ e("div", null, [
869
+ E("Minutos Jugados: "),
870
+ e("span", dt, u(i.player_min), 1)
840
871
  ])
841
872
  ])
842
873
  ]),
843
- t("div", {
874
+ e("div", {
844
875
  class: "details-row__buttons",
845
- style: S(b.value ? "margin-left: 0; gap: 8px;" : "")
876
+ style: $(_.value ? "margin-left: 0; gap: 8px;" : "")
846
877
  }, [
847
- t("div", {
878
+ e("div", {
848
879
  role: "button",
849
880
  class: "button",
850
- onClick: (u) => at(i)
851
- }, ne, 8, se),
881
+ onClick: (c) => ue(i)
882
+ }, ft, 8, rt),
852
883
  o.isTableFromList ? (l(), n("div", {
853
884
  key: 0,
854
885
  role: "button",
855
886
  class: "button",
856
- onClick: (u) => j(i)
857
- }, ce, 8, ae)) : (l(), n("div", {
887
+ onClick: (c) => G(i)
888
+ }, _t, 8, ht)) : (l(), n("div", {
858
889
  key: 1,
859
890
  role: "button",
860
891
  class: "button",
861
- onClick: (u) => H(i)
862
- }, ve, 8, ue)),
863
- t("div", {
892
+ onClick: (c) => U(i)
893
+ }, bt, 8, gt)),
894
+ e("div", {
864
895
  role: "button",
865
896
  class: "button green",
866
- onClick: (u) => nt(i)
867
- }, _e, 8, pe)
897
+ onClick: (c) => ce(i)
898
+ }, kt, 8, wt)
868
899
  ], 4)
869
900
  ])
870
901
  ], 2), [
871
- [pt, i.isExpanded]
902
+ [me, i.isExpanded]
872
903
  ])
873
904
  ]),
874
905
  _: 2
875
906
  }, 1024),
876
- o.isEditMode ? (l(), X(K($t), {
907
+ o.isEditMode ? (l(), Y(ee(Ve), {
877
908
  key: 0,
878
909
  fontFamily: "Poppins-Regular",
879
910
  labelFontSize: "14px",
880
911
  "model-value": i.isSelected,
881
- "onUpdate:modelValue": (u) => lt(u, i)
882
- }, null, 8, ["model-value", "onUpdate:modelValue"])) : x("", !0),
883
- t("div", me, [
884
- t("div", be, f(i.position), 1),
912
+ "onUpdate:modelValue": (c) => re(c, i)
913
+ }, null, 8, ["model-value", "onUpdate:modelValue"])) : L("", !0),
914
+ e("div", xt, [
915
+ e("div", St, u(i.position), 1),
885
916
  o.isTableFromList ? (l(), n("svg", {
886
917
  key: 0,
887
918
  width: "20",
@@ -889,89 +920,89 @@ const zt = /* @__PURE__ */ Bt(W, [["render", Pt], ["__scopeId", "data-v-f3ee6b2b
889
920
  viewBox: "0 0 20 20",
890
921
  fill: "none",
891
922
  xmlns: "http://www.w3.org/2000/svg",
892
- onClick: (u) => j(i)
893
- }, xe, 8, Ce)) : (l(), n("svg", {
923
+ onClick: (c) => G(i)
924
+ }, Vt, 8, Lt)) : (l(), n("svg", {
894
925
  key: 1,
895
926
  width: "20",
896
927
  height: "20",
897
928
  viewBox: "0 0 20 20",
898
929
  fill: "none",
899
930
  xmlns: "http://www.w3.org/2000/svg",
900
- onClick: (u) => H(i)
901
- }, Me, 8, Se)),
902
- t("div", Ve, [
903
- t("div", null, [
904
- t("img", {
931
+ onClick: (c) => U(i)
932
+ }, Ot, 8, It)),
933
+ e("div", Pt, [
934
+ e("div", null, [
935
+ e("img", {
905
936
  src: i.player_photo,
906
937
  alt: "player photo"
907
- }, null, 8, Ie)
938
+ }, null, 8, Ft)
908
939
  ])
909
940
  ]),
910
- t("div", Re, f(i.player_name), 1)
941
+ e("div", zt, u(i.player_name), 1)
911
942
  ]),
912
- t("div", Te, [
943
+ e("div", Dt, [
913
944
  (l(), n("svg", {
914
- class: _(["_arrowExpandIcon_6ak64_1115 _rotate_6ak64_5", { expanded: i.isExpanded }]),
945
+ class: m(["_arrowExpandIcon_6ak64_1115 _rotate_6ak64_5", { expanded: i.isExpanded }]),
915
946
  width: "12",
916
947
  height: "8",
917
948
  viewBox: "0 0 12 8",
918
949
  fill: "#D9D9D9",
919
950
  xmlns: "http://www.w3.org/2000/svg",
920
- onClick: (u) => N(i)
921
- }, Fe, 10, Ee))
951
+ onClick: (c) => q(i)
952
+ }, Wt, 10, Zt))
922
953
  ])
923
954
  ], 2))), 128))
924
955
  ]),
925
- t("div", {
956
+ e("div", {
926
957
  ref_key: "scrollableColumns",
927
- ref: a,
958
+ ref: g,
928
959
  class: "table__scrollable-columns"
929
960
  }, [
930
- o.isGeneral ? (l(), n(I, { key: 0 }, [
931
- Pe,
932
- (l(!0), n(I, null, E(h.value, (i) => (l(), n("div", {
961
+ o.isGeneral ? (l(), n(R, { key: 0 }, [
962
+ jt,
963
+ (l(!0), n(R, null, P(f.value, (i) => (l(), n("div", {
933
964
  key: `i-${i.id}`,
934
965
  class: "row scrollable-row"
935
966
  }, [
936
- t("div", {
937
- class: _(["row team-info", { odd: i.isOdd }])
967
+ e("div", {
968
+ class: m(["row team-info", { odd: i.isOdd }])
938
969
  }, [
939
- t("div", ze, [
940
- t("img", {
970
+ e("div", Ht, [
971
+ e("img", {
941
972
  src: i.team_logo,
942
973
  alt: "team logo"
943
- }, null, 8, De)
974
+ }, null, 8, Nt)
944
975
  ]),
945
- t("div", Ae, f(i.team_abrev), 1)
976
+ e("div", Gt, u(i.team_abrev), 1)
946
977
  ], 2),
947
- t("div", {
948
- class: _(["row data-info", { odd: i.isOdd }])
949
- }, f(i.player_position), 3),
950
- t("div", {
951
- class: _(["row data-info", { odd: i.isOdd }])
952
- }, f(i.player_age), 3),
953
- t("div", {
954
- class: _(["row data-info", { odd: i.isOdd }])
978
+ e("div", {
979
+ class: m(["row data-info", { odd: i.isOdd }])
980
+ }, u(i.player_position), 3),
981
+ e("div", {
982
+ class: m(["row data-info", { odd: i.isOdd }])
983
+ }, u(i.player_age), 3),
984
+ e("div", {
985
+ class: m(["row data-info", { odd: i.isOdd }])
955
986
  }, [
956
- t("img", {
987
+ e("img", {
957
988
  src: i.player_country_flag,
958
989
  alt: "player country flag",
959
990
  class: "country-flag"
960
- }, null, 8, We)
991
+ }, null, 8, Ut)
961
992
  ], 2),
962
- t("div", {
963
- class: _(["row data-info", { odd: i.isOdd }])
964
- }, f(i.player_games), 3),
965
- t("div", {
966
- class: _(["row data-info", { odd: i.isOdd }])
967
- }, f(i.player_min), 3),
968
- t("div", {
969
- class: _(["row data-info", { odd: i.isOdd }])
970
- }, f(i.league_name), 3),
971
- t("div", {
972
- class: _(["row data-info", { odd: i.isOdd }])
993
+ e("div", {
994
+ class: m(["row data-info", { odd: i.isOdd }])
995
+ }, u(i.player_games), 3),
996
+ e("div", {
997
+ class: m(["row data-info", { odd: i.isOdd }])
998
+ }, u(i.player_min), 3),
999
+ e("div", {
1000
+ class: m(["row data-info", { odd: i.isOdd }])
1001
+ }, u(i.league_name), 3),
1002
+ e("div", {
1003
+ class: m(["row data-info", { odd: i.isOdd }])
973
1004
  }, [
974
- J(K(zt), {
1005
+ Q(ee(Ae), {
975
1006
  icon: "https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png",
976
1007
  "icon-size": "19px",
977
1008
  "icon-position": "left",
@@ -984,25 +1015,26 @@ const zt = /* @__PURE__ */ Bt(W, [["render", Pt], ["__scopeId", "data-v-f3ee6b2b
984
1015
  "border-color": "#55636e",
985
1016
  "text-value": "Ver videos",
986
1017
  "font-size": "10px",
987
- onClick: (u) => w(i)
1018
+ onClick: (c) => x(i)
988
1019
  }, null, 8, ["onClick"])
989
1020
  ], 2),
990
- t("div", {
991
- class: _(["row data-info", { odd: i.isOdd }])
1021
+ e("div", {
1022
+ class: m(["row data-info", { odd: i.isOdd }])
992
1023
  }, null, 2)
993
1024
  ]))), 128))
994
- ], 64)) : (l(), X(Ht, {
1025
+ ], 64)) : (l(), Y(Xe, {
995
1026
  key: 1,
996
1027
  ref_key: "scrollColumns",
997
- ref: L,
998
- "available-players": h.value,
1028
+ ref: M,
1029
+ "available-players": f.value,
999
1030
  "is-edit-mode": o.isEditMode,
1000
- onOpenMedia: w
1031
+ onOpenMedia: x,
1032
+ onClickParameters: S
1001
1033
  }, null, 8, ["available-players", "is-edit-mode"]))
1002
1034
  ], 512)
1003
1035
  ], 4));
1004
1036
  }
1005
- }, He = /* @__PURE__ */ ot(Ze, [["__scopeId", "data-v-ef3c543d"]]);
1037
+ }, Xt = /* @__PURE__ */ le(qt, [["__scopeId", "data-v-510e4abc"]]);
1006
1038
  export {
1007
- He as GSCTableScrollable
1039
+ Xt as GSCTableScrollable
1008
1040
  };