@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
|
|
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"],
|
|
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), _ =
|
|
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 =
|
|
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
|
-
})),
|
|
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
|
-
|
|
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,
|
|
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 ? (
|
|
179
|
-
i.boxValue ? (
|
|
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)) : (
|
|
184
|
-
(
|
|
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)) :
|
|
191
|
+
], 64)) : S("", !0)
|
|
192
192
|
], 4),
|
|
193
|
-
s.teamsIds && s.teamsIds.length ? (
|
|
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
|
-
])) :
|
|
206
|
+
])) : S("", !0),
|
|
207
207
|
t("div", {
|
|
208
208
|
class: "checkbox__label",
|
|
209
|
-
style: B(
|
|
209
|
+
style: B(M.value)
|
|
210
210
|
}, h(s.label), 5)
|
|
211
211
|
], 2));
|
|
212
212
|
}
|
|
213
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
309
|
-
N.setup =
|
|
310
|
-
const
|
|
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"],
|
|
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
|
|
319
|
-
i.type == 0 ? (
|
|
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] = (...
|
|
323
|
+
onClick: u[0] || (u[0] = (...M) => m.btnClick && m.btnClick(...M))
|
|
324
324
|
}, [
|
|
325
|
-
i.icon && i.iconPosition.toLowerCase() === "left" ? (
|
|
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,
|
|
331
|
-
i.textValue ? (
|
|
332
|
-
i.icon && i.iconPosition.toLowerCase() === "right" ? (
|
|
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)) :
|
|
338
|
-
], 6)) :
|
|
339
|
-
i.type == 1 ? (
|
|
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] = (...
|
|
342
|
+
onClick: u[1] || (u[1] = (...M) => m.btnClick && m.btnClick(...M))
|
|
343
343
|
}, [
|
|
344
|
-
t("div",
|
|
345
|
-
|
|
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
|
-
])) :
|
|
349
|
+
])) : S("", !0)
|
|
350
350
|
]);
|
|
351
351
|
}
|
|
352
|
-
const Nt = /* @__PURE__ */
|
|
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),
|
|
397
|
+
const f = s, _ = g(null), m = g(null), M = g(0);
|
|
398
398
|
g(!1);
|
|
399
|
-
const R =
|
|
399
|
+
const R = I(() => {
|
|
400
400
|
const c = f.availablePlayers[0];
|
|
401
401
|
return c ? c.stats : [];
|
|
402
|
-
}), E =
|
|
402
|
+
}), E = I(() => {
|
|
403
403
|
const c = `repeat(${R.value.length}, max-content) 36px`;
|
|
404
404
|
let v = "";
|
|
405
|
-
return
|
|
406
|
-
v += `${
|
|
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
|
-
|
|
416
|
+
M.value = w;
|
|
417
417
|
}
|
|
418
418
|
}), _.value.observe(m.value);
|
|
419
419
|
}
|
|
420
|
-
function
|
|
421
|
-
const
|
|
422
|
-
|
|
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
|
|
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
|
|
430
|
+
function A(c) {
|
|
431
431
|
i("sort", c);
|
|
432
432
|
}
|
|
433
433
|
return rt(() => {
|
|
434
434
|
p();
|
|
435
435
|
}), u({
|
|
436
|
-
setMarginTopDetails:
|
|
437
|
-
}), (c, v) => (
|
|
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 ? (
|
|
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
|
-
(
|
|
448
|
-
key: `t-${
|
|
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" ? (
|
|
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)) :
|
|
456
|
+
}, Jt, 8, Ut)) : S("", !0),
|
|
457
457
|
t("div", Xt, h(w.name), 1),
|
|
458
|
-
(
|
|
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) =>
|
|
464
|
+
onClick: (x) => A(w)
|
|
465
465
|
}, Yt, 8, Kt))
|
|
466
466
|
]))), 128)),
|
|
467
467
|
te
|
|
468
468
|
], 512),
|
|
469
|
-
(
|
|
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
|
-
(
|
|
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:
|
|
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) =>
|
|
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-
|
|
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)),
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
],
|
|
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)),
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
],
|
|
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)),
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
],
|
|
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)),
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
],
|
|
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
|
-
],
|
|
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)),
|
|
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)),
|
|
622
|
-
Ve,
|
|
624
|
+
}, null, -1)), Ze = [
|
|
623
625
|
ze,
|
|
626
|
+
Ae,
|
|
624
627
|
je
|
|
625
|
-
],
|
|
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)),
|
|
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)),
|
|
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)),
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
],
|
|
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)),
|
|
656
|
-
|
|
657
|
-
],
|
|
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)),
|
|
666
|
-
|
|
667
|
-
],
|
|
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)),
|
|
676
|
-
|
|
677
|
-
],
|
|
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)),
|
|
686
|
-
|
|
687
|
-
],
|
|
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)),
|
|
696
|
-
|
|
697
|
-
],
|
|
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)),
|
|
706
|
-
|
|
707
|
-
],
|
|
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)),
|
|
716
|
-
|
|
717
|
-
],
|
|
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([]),
|
|
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
|
|
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),
|
|
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%" : "
|
|
785
|
-
})), x =
|
|
786
|
-
|
|
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((
|
|
790
|
-
const
|
|
791
|
-
...
|
|
792
|
-
position:
|
|
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
|
|
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((
|
|
807
|
-
...
|
|
820
|
+
}), c.value = m.value.map((l) => ({
|
|
821
|
+
...l
|
|
808
822
|
})));
|
|
809
823
|
},
|
|
810
824
|
{ immediate: !0, deep: !0 }
|
|
811
|
-
),
|
|
825
|
+
), D(
|
|
812
826
|
() => i.isEditMode,
|
|
813
827
|
(e) => {
|
|
814
|
-
e && m.value.forEach((
|
|
815
|
-
|
|
828
|
+
e && m.value.forEach((l) => {
|
|
829
|
+
l.isSelected = !1;
|
|
816
830
|
});
|
|
817
831
|
}
|
|
818
|
-
),
|
|
819
|
-
() =>
|
|
832
|
+
), D(
|
|
833
|
+
() => A.value,
|
|
820
834
|
(e) => {
|
|
821
835
|
if (e) {
|
|
822
|
-
let
|
|
823
|
-
e.isRoot ?
|
|
824
|
-
const C = o.stats.find(($) => $.name === e.name), b =
|
|
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
|
-
}),
|
|
827
|
-
o.isOdd =
|
|
828
|
-
}), c.value =
|
|
840
|
+
}), l.forEach((o, r) => {
|
|
841
|
+
o.isOdd = r % 2 !== 0;
|
|
842
|
+
}), c.value = l;
|
|
829
843
|
} else
|
|
830
|
-
c.value.sort((
|
|
831
|
-
|
|
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
|
-
),
|
|
849
|
+
), D(
|
|
836
850
|
p,
|
|
837
851
|
(e) => {
|
|
838
|
-
const o = document.querySelectorAll(".static-row")[
|
|
839
|
-
o && (o.style.marginTop = `${e}px`), i.isGeneral ? U(
|
|
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,
|
|
843
|
-
const
|
|
844
|
-
|
|
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),
|
|
864
|
+
e && (e.isDesc = !e.isDesc), A.value = e;
|
|
851
865
|
}
|
|
852
866
|
function q(e) {
|
|
853
|
-
const
|
|
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 && (
|
|
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 - $),
|
|
877
|
-
} else (e.season_id || e.seasonId) && (
|
|
878
|
-
e.stat ? e.stat.category_id && e.stat.category_id.length ?
|
|
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
|
|
883
|
-
E.value =
|
|
884
|
-
}), f.observe(
|
|
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((
|
|
888
|
-
for (const o of
|
|
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,
|
|
940
|
-
|
|
941
|
-
const o = m.value.filter((
|
|
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,
|
|
972
|
+
e.isExpanded = !1, V.value = null;
|
|
959
973
|
return;
|
|
960
974
|
}
|
|
961
|
-
const
|
|
962
|
-
if (
|
|
963
|
-
|
|
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
|
|
981
|
+
let r = -1;
|
|
968
982
|
o.forEach((b, $) => {
|
|
969
|
-
b.id === `dr-${e.id}` && (
|
|
983
|
+
b.id === `dr-${e.id}` && (r = $);
|
|
970
984
|
});
|
|
971
|
-
const C = o[
|
|
972
|
-
|
|
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
|
-
},
|
|
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",
|
|
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",
|
|
991
|
-
}), (e,
|
|
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:
|
|
995
|
-
style: B(
|
|
1008
|
+
ref: M,
|
|
1009
|
+
style: B(L.value),
|
|
996
1010
|
key: w.value
|
|
997
1011
|
}, [
|
|
998
1012
|
t("div", ie, [
|
|
999
|
-
t("div",
|
|
1013
|
+
t("div", le, [
|
|
1014
|
+
ne,
|
|
1000
1015
|
t("div", {
|
|
1001
1016
|
role: "button",
|
|
1002
1017
|
class: "restore-button",
|
|
1003
|
-
onClick:
|
|
1004
|
-
},
|
|
1018
|
+
onClick: l[0] || (l[0] = (o) => P(null))
|
|
1019
|
+
}, de)
|
|
1005
1020
|
]),
|
|
1006
|
-
(
|
|
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",
|
|
1017
|
-
t("div",
|
|
1018
|
-
t("div",
|
|
1031
|
+
t("div", ue, [
|
|
1032
|
+
t("div", fe, [
|
|
1033
|
+
t("div", he, [
|
|
1019
1034
|
t("div", null, [
|
|
1020
|
-
|
|
1021
|
-
t("span",
|
|
1035
|
+
F("Equipo: "),
|
|
1036
|
+
t("span", ve, h(o.team_name), 1)
|
|
1022
1037
|
]),
|
|
1023
1038
|
t("div", null, [
|
|
1024
|
-
|
|
1025
|
-
t("span",
|
|
1039
|
+
F("Edad: "),
|
|
1040
|
+
t("span", pe, h(o.player_age) + " Años", 1)
|
|
1026
1041
|
]),
|
|
1027
1042
|
t("div", null, [
|
|
1028
|
-
|
|
1029
|
-
t("span",
|
|
1043
|
+
F("Nacionalidad: "),
|
|
1044
|
+
t("span", _e, h(o.player_country), 1)
|
|
1030
1045
|
]),
|
|
1031
1046
|
t("div", null, [
|
|
1032
|
-
|
|
1033
|
-
t("span",
|
|
1047
|
+
F("Posición: "),
|
|
1048
|
+
t("span", ge, h(o.position_name), 1)
|
|
1034
1049
|
])
|
|
1035
1050
|
]),
|
|
1036
|
-
t("div",
|
|
1051
|
+
t("div", me, [
|
|
1037
1052
|
t("div", null, [
|
|
1038
|
-
|
|
1039
|
-
t("span",
|
|
1053
|
+
F("Partidos Jugados: "),
|
|
1054
|
+
t("span", Ce, h(o.player_games), 1)
|
|
1040
1055
|
]),
|
|
1041
1056
|
t("div", null, [
|
|
1042
|
-
|
|
1043
|
-
t("span",
|
|
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
|
-
|
|
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: (
|
|
1061
|
-
},
|
|
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: (
|
|
1066
|
-
},
|
|
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: (
|
|
1071
|
-
}, Oe, 8,
|
|
1086
|
+
onClick: (r) => pt(o)
|
|
1087
|
+
}, Oe, 8, Te)
|
|
1072
1088
|
], 4)
|
|
1073
1089
|
])
|
|
1074
|
-
], 10,
|
|
1090
|
+
], 10, ce), [
|
|
1075
1091
|
[yt, o.isExpanded]
|
|
1076
1092
|
])
|
|
1077
1093
|
]),
|
|
1078
1094
|
_: 2
|
|
1079
1095
|
}, 1024),
|
|
1080
|
-
s.isEditMode ? (
|
|
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": (
|
|
1086
|
-
}, null, 8, ["model-value", "onUpdate:modelValue"])) :
|
|
1087
|
-
t("div",
|
|
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 ? (
|
|
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: (
|
|
1097
|
-
},
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
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,
|
|
1128
|
+
}, null, 8, Xe)
|
|
1112
1129
|
])
|
|
1113
1130
|
]),
|
|
1114
|
-
t("div",
|
|
1131
|
+
t("div", Ke, h(o.player_name), 1)
|
|
1115
1132
|
]),
|
|
1116
|
-
t("div",
|
|
1117
|
-
(
|
|
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: (
|
|
1125
|
-
},
|
|
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 ? (
|
|
1135
|
-
t("div",
|
|
1136
|
-
t("div",
|
|
1137
|
-
|
|
1138
|
-
(
|
|
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:
|
|
1145
|
-
},
|
|
1161
|
+
onClick: l[1] || (l[1] = (o) => P(v.value[0]))
|
|
1162
|
+
}, no))
|
|
1146
1163
|
]),
|
|
1147
|
-
t("div",
|
|
1148
|
-
|
|
1149
|
-
(
|
|
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:
|
|
1156
|
-
},
|
|
1172
|
+
onClick: l[2] || (l[2] = (o) => P(v.value[1]))
|
|
1173
|
+
}, uo))
|
|
1157
1174
|
]),
|
|
1158
|
-
t("div",
|
|
1159
|
-
|
|
1160
|
-
(
|
|
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:
|
|
1167
|
-
},
|
|
1183
|
+
onClick: l[3] || (l[3] = (o) => P(v.value[2]))
|
|
1184
|
+
}, po))
|
|
1168
1185
|
]),
|
|
1169
|
-
|
|
1170
|
-
t("div",
|
|
1171
|
-
|
|
1172
|
-
(
|
|
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:
|
|
1179
|
-
},
|
|
1195
|
+
onClick: l[4] || (l[4] = (o) => P(v.value[3]))
|
|
1196
|
+
}, ko))
|
|
1180
1197
|
]),
|
|
1181
|
-
t("div",
|
|
1182
|
-
|
|
1183
|
-
(
|
|
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:
|
|
1190
|
-
},
|
|
1206
|
+
onClick: l[5] || (l[5] = (o) => P(v.value[4]))
|
|
1207
|
+
}, xo))
|
|
1191
1208
|
]),
|
|
1192
|
-
t("div",
|
|
1193
|
-
|
|
1194
|
-
(
|
|
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:
|
|
1201
|
-
},
|
|
1217
|
+
onClick: l[6] || (l[6] = (o) => P(v.value[5]))
|
|
1218
|
+
}, $o))
|
|
1202
1219
|
]),
|
|
1203
|
-
|
|
1220
|
+
Bo
|
|
1204
1221
|
]),
|
|
1205
|
-
(
|
|
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",
|
|
1229
|
+
t("div", Ro, [
|
|
1213
1230
|
t("img", {
|
|
1214
1231
|
src: o.team_logo,
|
|
1215
1232
|
alt: "team logo"
|
|
1216
|
-
}, null, 8,
|
|
1233
|
+
}, null, 8, Eo)
|
|
1217
1234
|
]),
|
|
1218
|
-
t("div",
|
|
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,
|
|
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: (
|
|
1277
|
+
onClick: (r) => q(o)
|
|
1261
1278
|
}, null, 8, ["onClick"])
|
|
1262
1279
|
], 2)
|
|
1263
1280
|
]))), 128))
|
|
1264
|
-
], 64)) : (
|
|
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
|
-
},
|
|
1294
|
+
}, Vo = /* @__PURE__ */ dt(Io, [["__scopeId", "data-v-c0606edc"]]);
|
|
1278
1295
|
export {
|
|
1279
|
-
|
|
1296
|
+
Vo as GSCTableScrollable
|
|
1280
1297
|
};
|