@golstats/gsc-table-scrollable 1.0.7 → 1.0.9
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
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
for (const [c, p] of
|
|
5
|
-
|
|
6
|
-
return
|
|
7
|
-
},
|
|
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) => {
|
|
3
|
+
const s = o.__vccOpts || o;
|
|
4
|
+
for (const [c, p] of r)
|
|
5
|
+
s[c] = p;
|
|
6
|
+
return s;
|
|
7
|
+
}, mt = { key: 1 }, bt = {
|
|
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
|
-
},
|
|
13
|
+
}, Ct = ["fill"], yt = {
|
|
14
14
|
key: 0,
|
|
15
15
|
class: "checkbox__teams"
|
|
16
|
-
},
|
|
16
|
+
}, wt = { class: "checkbox__teams__logo" }, kt = ["src"], xt = { class: "checkbox__teams__logo" }, St = ["src"], Lt = {
|
|
17
17
|
__name: "GSC-Checkbox",
|
|
18
18
|
props: {
|
|
19
19
|
width: {
|
|
@@ -72,8 +72,8 @@ const dt = (e, d) => {
|
|
|
72
72
|
type: String,
|
|
73
73
|
default: "left",
|
|
74
74
|
// values can be 'left', 'right', 'top', 'bottom'
|
|
75
|
-
validator(
|
|
76
|
-
return ["left", "right", "top", "bottom"].includes(
|
|
75
|
+
validator(o) {
|
|
76
|
+
return ["left", "right", "top", "bottom"].includes(o);
|
|
77
77
|
}
|
|
78
78
|
},
|
|
79
79
|
boxMarginTop: {
|
|
@@ -122,99 +122,99 @@ const dt = (e, d) => {
|
|
|
122
122
|
}
|
|
123
123
|
},
|
|
124
124
|
emits: ["update:modelValue"],
|
|
125
|
-
setup(
|
|
126
|
-
const
|
|
127
|
-
|
|
128
|
-
"7bd9d47b":
|
|
129
|
-
"34dc7ddc":
|
|
125
|
+
setup(o, { emit: r }) {
|
|
126
|
+
const s = o;
|
|
127
|
+
tt((v) => ({
|
|
128
|
+
"7bd9d47b": o.width,
|
|
129
|
+
"34dc7ddc": o.height
|
|
130
130
|
}));
|
|
131
|
-
const c =
|
|
132
|
-
const
|
|
133
|
-
color:
|
|
134
|
-
"font-family":
|
|
135
|
-
height:
|
|
136
|
-
width:
|
|
137
|
-
minWidth:
|
|
138
|
-
"border-radius":
|
|
139
|
-
"margin-top":
|
|
131
|
+
const c = C(!1), p = V(() => {
|
|
132
|
+
const v = {
|
|
133
|
+
color: s.boxValueColor,
|
|
134
|
+
"font-family": s.fontFamily,
|
|
135
|
+
height: s.boxWidthAndHeight,
|
|
136
|
+
width: s.boxWidthAndHeight,
|
|
137
|
+
minWidth: s.boxWidthAndHeight,
|
|
138
|
+
"border-radius": s.boxBorderRadius,
|
|
139
|
+
"margin-top": s.boxMarginTop
|
|
140
140
|
};
|
|
141
|
-
return c.value ? (
|
|
142
|
-
}),
|
|
143
|
-
"font-family":
|
|
144
|
-
"font-size":
|
|
145
|
-
color:
|
|
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(() => ({
|
|
143
|
+
"font-family": s.boxValueFontFamily,
|
|
144
|
+
"font-size": s.boxValueFontSize,
|
|
145
|
+
color: s.boxValueColor,
|
|
146
146
|
"line-height": 1
|
|
147
|
-
})), y =
|
|
148
|
-
const
|
|
149
|
-
color:
|
|
150
|
-
"font-family":
|
|
151
|
-
"font-size":
|
|
152
|
-
"white-space":
|
|
153
|
-
"text-align":
|
|
147
|
+
})), y = V(() => {
|
|
148
|
+
const v = {
|
|
149
|
+
color: s.labelColor,
|
|
150
|
+
"font-family": s.fontFamily,
|
|
151
|
+
"font-size": s.labelFontSize,
|
|
152
|
+
"white-space": s.labelWhiteSpace,
|
|
153
|
+
"text-align": s.boxPosition === "top" || s.boxPosition === "bottom" ? "center" : s.boxPosition
|
|
154
154
|
};
|
|
155
|
-
return (
|
|
155
|
+
return (s.boxPosition === "left" || s.boxPosition === "right") && (v[`margin-${s.boxPosition}`] = s.isBoxOnly ? "0" : s.teamsIds ? "8px" : "10px"), v;
|
|
156
156
|
});
|
|
157
|
-
|
|
158
|
-
() =>
|
|
159
|
-
(
|
|
160
|
-
|
|
157
|
+
F(
|
|
158
|
+
() => s.modelValue,
|
|
159
|
+
(v) => {
|
|
160
|
+
v !== c.value && (c.value = v);
|
|
161
161
|
},
|
|
162
162
|
{ immediate: !0 }
|
|
163
163
|
);
|
|
164
|
-
function
|
|
165
|
-
|
|
164
|
+
function L() {
|
|
165
|
+
s.avoidInteraction || !c.value && s.avoidToCheck || (c.value = !c.value, r("update:modelValue", c.value));
|
|
166
166
|
}
|
|
167
|
-
function
|
|
168
|
-
return `${{}.TEAM_LOGOS_URL || "https://golstatsimages.blob.core.windows.net/teams-80/"}${
|
|
167
|
+
function $(v) {
|
|
168
|
+
return `${{}.TEAM_LOGOS_URL || "https://golstatsimages.blob.core.windows.net/teams-80/"}${v}.png`;
|
|
169
169
|
}
|
|
170
|
-
return (
|
|
171
|
-
class: _(["checkbox", `box-${
|
|
172
|
-
onClick:
|
|
170
|
+
return (v, M) => (l(), n("div", {
|
|
171
|
+
class: _(["checkbox", `box-${o.boxPosition}`]),
|
|
172
|
+
onClick: L
|
|
173
173
|
}, [
|
|
174
174
|
t("div", {
|
|
175
175
|
class: "checkbox__box",
|
|
176
|
-
style:
|
|
176
|
+
style: S(p.value)
|
|
177
177
|
}, [
|
|
178
|
-
c.value ? (l(),
|
|
179
|
-
|
|
178
|
+
c.value ? (l(), n(I, { key: 0 }, [
|
|
179
|
+
s.boxValue ? (l(), n("div", {
|
|
180
180
|
key: 0,
|
|
181
181
|
class: "checkbox__box__value",
|
|
182
|
-
style:
|
|
183
|
-
},
|
|
184
|
-
(l(),
|
|
182
|
+
style: S(h.value)
|
|
183
|
+
}, f(o.boxValue), 5)) : (l(), n("div", mt, [
|
|
184
|
+
(l(), n("svg", bt, [
|
|
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
|
-
fill:
|
|
188
|
-
}, null, 8,
|
|
187
|
+
fill: o.boxValueColor
|
|
188
|
+
}, null, 8, Ct)
|
|
189
189
|
]))
|
|
190
190
|
]))
|
|
191
|
-
], 64)) :
|
|
191
|
+
], 64)) : x("", !0)
|
|
192
192
|
], 4),
|
|
193
|
-
|
|
194
|
-
t("div",
|
|
193
|
+
o.teamsIds && o.teamsIds.length ? (l(), n("div", yt, [
|
|
194
|
+
t("div", wt, [
|
|
195
195
|
t("img", {
|
|
196
|
-
src:
|
|
196
|
+
src: $(o.teamsIds[0]),
|
|
197
197
|
alt: ""
|
|
198
|
-
}, null, 8,
|
|
198
|
+
}, null, 8, kt)
|
|
199
199
|
]),
|
|
200
|
-
t("div",
|
|
200
|
+
t("div", xt, [
|
|
201
201
|
t("img", {
|
|
202
|
-
src:
|
|
202
|
+
src: $(o.teamsIds[1]),
|
|
203
203
|
alt: ""
|
|
204
|
-
}, null, 8,
|
|
204
|
+
}, null, 8, St)
|
|
205
205
|
])
|
|
206
|
-
])) :
|
|
206
|
+
])) : x("", !0),
|
|
207
207
|
t("div", {
|
|
208
208
|
class: "checkbox__label",
|
|
209
|
-
style:
|
|
210
|
-
},
|
|
209
|
+
style: S(y.value)
|
|
210
|
+
}, f(o.label), 5)
|
|
211
211
|
], 2));
|
|
212
212
|
}
|
|
213
|
-
},
|
|
214
|
-
const
|
|
215
|
-
for (const [c, p] of
|
|
216
|
-
|
|
217
|
-
return
|
|
213
|
+
}, $t = /* @__PURE__ */ _t(Lt, [["__scopeId", "data-v-b6f124d8"]]), Bt = (o, r) => {
|
|
214
|
+
const s = o.__vccOpts || o;
|
|
215
|
+
for (const [c, p] of r)
|
|
216
|
+
s[c] = p;
|
|
217
|
+
return s;
|
|
218
218
|
}, W = {
|
|
219
219
|
props: {
|
|
220
220
|
type: { type: Number, default: 0 },
|
|
@@ -252,8 +252,8 @@ const dt = (e, d) => {
|
|
|
252
252
|
value: {
|
|
253
253
|
deep: !0,
|
|
254
254
|
immediate: !0,
|
|
255
|
-
handler(
|
|
256
|
-
this.status =
|
|
255
|
+
handler(o) {
|
|
256
|
+
this.status = o;
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
259
|
},
|
|
@@ -285,79 +285,79 @@ const dt = (e, d) => {
|
|
|
285
285
|
}
|
|
286
286
|
},
|
|
287
287
|
methods: {
|
|
288
|
-
btnClick(
|
|
289
|
-
this.$emit("click",
|
|
288
|
+
btnClick(o) {
|
|
289
|
+
this.$emit("click", o), this.typeOnOff && (this.status = !this.status, this.$emit("status", this.status));
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
|
-
},
|
|
293
|
-
|
|
294
|
-
"9d01acb4":
|
|
295
|
-
"14e95081":
|
|
296
|
-
"38fec285":
|
|
297
|
-
34353510:
|
|
298
|
-
"20d20dc6":
|
|
299
|
-
17130967:
|
|
300
|
-
"4ccb7d36":
|
|
301
|
-
"5d1e86a2":
|
|
302
|
-
ce65d4a2:
|
|
303
|
-
fe4ac47a:
|
|
304
|
-
f98e44dc:
|
|
305
|
-
"93b87770":
|
|
306
|
-
c7f7beba:
|
|
292
|
+
}, Q = () => {
|
|
293
|
+
tt((o) => ({
|
|
294
|
+
"9d01acb4": o.height,
|
|
295
|
+
"14e95081": o.borderWidthBtn,
|
|
296
|
+
"38fec285": o.borderType,
|
|
297
|
+
34353510: o.borderColor,
|
|
298
|
+
"20d20dc6": o.borderRadius,
|
|
299
|
+
17130967: o.width,
|
|
300
|
+
"4ccb7d36": o.backgroundColor,
|
|
301
|
+
"5d1e86a2": o.cursorType,
|
|
302
|
+
ce65d4a2: o.fontSize,
|
|
303
|
+
fe4ac47a: o.fontStyle,
|
|
304
|
+
f98e44dc: o.fontFamily,
|
|
305
|
+
"93b87770": o.marginLeftStat,
|
|
306
|
+
c7f7beba: o.fontSizeStat
|
|
307
307
|
}));
|
|
308
|
-
},
|
|
309
|
-
W.setup =
|
|
310
|
-
const
|
|
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 = {
|
|
311
311
|
key: 1,
|
|
312
312
|
class: "text"
|
|
313
|
-
},
|
|
313
|
+
}, Rt = ["src"], Tt = { class: "stats" }, Et = /* @__PURE__ */ Mt(() => /* @__PURE__ */ t("img", {
|
|
314
314
|
class: "iconstats",
|
|
315
315
|
src: "https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"
|
|
316
|
-
}, null, -1)),
|
|
317
|
-
function
|
|
318
|
-
return l(),
|
|
319
|
-
|
|
316
|
+
}, null, -1)), Ot = { class: "numstats" }, Ft = { class: "leyend" };
|
|
317
|
+
function Pt(o, r, s, c, p, h) {
|
|
318
|
+
return l(), n("div", null, [
|
|
319
|
+
s.type == 0 ? (l(), n("div", {
|
|
320
320
|
key: 0,
|
|
321
|
-
class: _(["button", p.status &&
|
|
322
|
-
style:
|
|
323
|
-
onClick:
|
|
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))
|
|
324
324
|
}, [
|
|
325
|
-
|
|
325
|
+
s.icon && s.iconPosition.toLowerCase() === "left" ? (l(), n("img", {
|
|
326
326
|
key: 0,
|
|
327
327
|
class: "icon",
|
|
328
|
-
style:
|
|
329
|
-
src:
|
|
330
|
-
}, null, 12,
|
|
331
|
-
|
|
332
|
-
|
|
328
|
+
style: S({ width: s.iconSize }),
|
|
329
|
+
src: s.icon
|
|
330
|
+
}, null, 12, Vt)) : x("", !0),
|
|
331
|
+
s.textValue ? (l(), n("div", It, f(s.textValue), 1)) : x("", !0),
|
|
332
|
+
s.icon && s.iconPosition.toLowerCase() === "right" ? (l(), n("img", {
|
|
333
333
|
key: 2,
|
|
334
334
|
class: "icon",
|
|
335
|
-
style:
|
|
336
|
-
src:
|
|
337
|
-
}, null, 12,
|
|
338
|
-
], 6)) :
|
|
339
|
-
|
|
335
|
+
style: S({ width: s.iconSize }),
|
|
336
|
+
src: s.icon
|
|
337
|
+
}, null, 12, Rt)) : x("", !0)
|
|
338
|
+
], 6)) : x("", !0),
|
|
339
|
+
s.type == 1 ? (l(), n("div", {
|
|
340
340
|
key: 1,
|
|
341
341
|
class: "button-target",
|
|
342
|
-
onClick:
|
|
342
|
+
onClick: r[1] || (r[1] = (...y) => h.btnClick && h.btnClick(...y))
|
|
343
343
|
}, [
|
|
344
|
-
t("div",
|
|
345
|
-
|
|
346
|
-
t("div",
|
|
344
|
+
t("div", Tt, [
|
|
345
|
+
Et,
|
|
346
|
+
t("div", Ot, f(s.textStat), 1)
|
|
347
347
|
]),
|
|
348
|
-
t("div",
|
|
349
|
-
])) :
|
|
348
|
+
t("div", Ft, f(s.textCategory), 1)
|
|
349
|
+
])) : x("", !0)
|
|
350
350
|
]);
|
|
351
351
|
}
|
|
352
|
-
const
|
|
353
|
-
const
|
|
354
|
-
for (const [c, p] of
|
|
355
|
-
|
|
356
|
-
return
|
|
357
|
-
},
|
|
352
|
+
const zt = /* @__PURE__ */ Bt(W, [["render", Pt], ["__scopeId", "data-v-f3ee6b2b"]]), ot = (o, r) => {
|
|
353
|
+
const s = o.__vccOpts || o;
|
|
354
|
+
for (const [c, p] of r)
|
|
355
|
+
s[c] = p;
|
|
356
|
+
return s;
|
|
357
|
+
}, Dt = (o) => (D("data-v-d03b93c8"), o = o(), A(), o), At = {
|
|
358
358
|
key: 0,
|
|
359
359
|
class: "overlay"
|
|
360
|
-
},
|
|
360
|
+
}, Wt = /* @__PURE__ */ Dt(() => /* @__PURE__ */ t("div", { class: "column-title-2" }, null, -1)), Zt = ["onClick"], jt = {
|
|
361
361
|
__name: "ScrollColumns",
|
|
362
362
|
props: {
|
|
363
363
|
availablePlayers: {
|
|
@@ -370,70 +370,70 @@ const It = /* @__PURE__ */ mt(W, [["render", Bt], ["__scopeId", "data-v-f3ee6b2b
|
|
|
370
370
|
}
|
|
371
371
|
},
|
|
372
372
|
emits: ["expand", "open-media"],
|
|
373
|
-
setup(
|
|
374
|
-
const c =
|
|
375
|
-
|
|
376
|
-
const
|
|
377
|
-
const
|
|
378
|
-
return
|
|
379
|
-
}),
|
|
380
|
-
const
|
|
381
|
-
let
|
|
382
|
-
return y.value > 0 && document.querySelectorAll(".column-title-2").forEach((
|
|
383
|
-
|
|
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 `;
|
|
384
384
|
}), {
|
|
385
|
-
"--grid-template-columns":
|
|
386
|
-
"--grid-template-columns-totals":
|
|
385
|
+
"--grid-template-columns": a,
|
|
386
|
+
"--grid-template-columns-totals": g || a
|
|
387
387
|
};
|
|
388
388
|
});
|
|
389
|
-
function
|
|
390
|
-
p.value = new ResizeObserver((
|
|
391
|
-
for (const
|
|
392
|
-
const { width:
|
|
393
|
-
y.value =
|
|
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;
|
|
394
394
|
}
|
|
395
|
-
}), p.value.observe(
|
|
395
|
+
}), p.value.observe(h.value);
|
|
396
396
|
}
|
|
397
|
-
function
|
|
398
|
-
const
|
|
399
|
-
|
|
397
|
+
function M(a, g) {
|
|
398
|
+
const B = document.querySelectorAll(".scrollable-row-totals")[a + 1];
|
|
399
|
+
B && (B.style.marginTop = `${g}px`);
|
|
400
400
|
}
|
|
401
|
-
function
|
|
402
|
-
!
|
|
401
|
+
function R({ player: a, stat: g }) {
|
|
402
|
+
!g.total || g === "0%" || !g.seasons || !g.seasons.length || s("open-media", { ...a, stat: g });
|
|
403
403
|
}
|
|
404
|
-
return
|
|
405
|
-
|
|
406
|
-
}),
|
|
407
|
-
setMarginTopDetails:
|
|
408
|
-
}), (
|
|
404
|
+
return et(() => {
|
|
405
|
+
v();
|
|
406
|
+
}), r({
|
|
407
|
+
setMarginTopDetails: M
|
|
408
|
+
}), (a, g) => (l(), n("div", {
|
|
409
409
|
class: "scroll-columns",
|
|
410
|
-
style:
|
|
410
|
+
style: S($.value)
|
|
411
411
|
}, [
|
|
412
|
-
|
|
412
|
+
o.isEditMode ? (l(), n("div", At)) : x("", !0),
|
|
413
413
|
t("div", {
|
|
414
414
|
ref_key: "titlesRow",
|
|
415
|
-
ref:
|
|
415
|
+
ref: h,
|
|
416
416
|
class: "scrollable-row-2"
|
|
417
417
|
}, [
|
|
418
|
-
(l(!0),
|
|
419
|
-
key: `t-${
|
|
418
|
+
(l(!0), n(I, null, E(L.value, (b) => (l(), n("div", {
|
|
419
|
+
key: `t-${b.category_id}`,
|
|
420
420
|
class: "column-title-2"
|
|
421
|
-
},
|
|
422
|
-
|
|
421
|
+
}, f(b.name), 1))), 128)),
|
|
422
|
+
Wt
|
|
423
423
|
], 512),
|
|
424
|
-
(l(!0),
|
|
425
|
-
key: `i-${
|
|
424
|
+
(l(!0), n(I, null, E(o.availablePlayers, (b, B) => (l(), n("div", {
|
|
425
|
+
key: `i-${b.id}`,
|
|
426
426
|
class: "row scrollable-row-totals"
|
|
427
427
|
}, [
|
|
428
|
-
(l(!0),
|
|
428
|
+
(l(!0), n(I, null, E(b.stats, (w) => (l(), n("div", {
|
|
429
429
|
key: w.category_id,
|
|
430
|
-
class: _(["row data-info", { odd:
|
|
431
|
-
onClick: (
|
|
432
|
-
},
|
|
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))
|
|
433
433
|
]))), 128))
|
|
434
434
|
], 4));
|
|
435
435
|
}
|
|
436
|
-
},
|
|
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", {
|
|
437
437
|
width: "17",
|
|
438
438
|
height: "16",
|
|
439
439
|
viewBox: "0 0 17 16",
|
|
@@ -456,10 +456,10 @@ const It = /* @__PURE__ */ mt(W, [["render", Bt], ["__scopeId", "data-v-f3ee6b2b
|
|
|
456
456
|
})
|
|
457
457
|
])
|
|
458
458
|
])
|
|
459
|
-
], -1)),
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
],
|
|
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", {
|
|
463
463
|
width: "17",
|
|
464
464
|
height: "15",
|
|
465
465
|
viewBox: "0 0 20 18",
|
|
@@ -490,44 +490,103 @@ const It = /* @__PURE__ */ mt(W, [["render", Bt], ["__scopeId", "data-v-f3ee6b2b
|
|
|
490
490
|
"stroke-linecap": "round",
|
|
491
491
|
"stroke-linejoin": "round"
|
|
492
492
|
})
|
|
493
|
-
], -1)),
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
],
|
|
497
|
-
|
|
498
|
-
|
|
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", {
|
|
497
|
+
width: "20",
|
|
498
|
+
height: "20",
|
|
499
|
+
viewBox: "0 0 20 20",
|
|
500
|
+
fill: "none",
|
|
501
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
502
|
+
}, [
|
|
503
|
+
/* @__PURE__ */ t("path", {
|
|
504
|
+
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
|
+
stroke: "white",
|
|
506
|
+
"stroke-opacity": "1",
|
|
507
|
+
"stroke-width": "1.44023",
|
|
508
|
+
"stroke-linecap": "round",
|
|
509
|
+
"stroke-linejoin": "round"
|
|
510
|
+
}),
|
|
511
|
+
/* @__PURE__ */ t("path", {
|
|
512
|
+
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
|
+
stroke: "white",
|
|
514
|
+
"stroke-opacity": "1",
|
|
515
|
+
"stroke-width": "1.44023",
|
|
516
|
+
"stroke-linecap": "round",
|
|
517
|
+
"stroke-linejoin": "round"
|
|
518
|
+
}),
|
|
519
|
+
/* @__PURE__ */ t("path", {
|
|
520
|
+
d: "M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",
|
|
521
|
+
stroke: "white",
|
|
522
|
+
"stroke-opacity": "1",
|
|
523
|
+
"stroke-width": "1.44023",
|
|
524
|
+
"stroke-linecap": "round",
|
|
525
|
+
"stroke-linejoin": "round"
|
|
526
|
+
})
|
|
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", {
|
|
533
|
+
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
|
+
stroke: "white",
|
|
535
|
+
"stroke-opacity": "0.5",
|
|
536
|
+
"stroke-width": "1.5",
|
|
537
|
+
"stroke-linecap": "round",
|
|
538
|
+
"stroke-linejoin": "round"
|
|
539
|
+
}, null, -1)), we = /* @__PURE__ */ m(() => /* @__PURE__ */ t("path", {
|
|
540
|
+
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
|
+
stroke: "white",
|
|
542
|
+
"stroke-opacity": "0.5",
|
|
543
|
+
"stroke-width": "1.5",
|
|
544
|
+
"stroke-linecap": "round",
|
|
545
|
+
"stroke-linejoin": "round"
|
|
546
|
+
}, null, -1)), ke = /* @__PURE__ */ m(() => /* @__PURE__ */ t("path", {
|
|
547
|
+
d: "M18.332 8.16663H13.332",
|
|
548
|
+
stroke: "white",
|
|
549
|
+
"stroke-opacity": "0.5",
|
|
550
|
+
"stroke-width": "1.5",
|
|
551
|
+
"stroke-linecap": "round",
|
|
552
|
+
"stroke-linejoin": "round"
|
|
553
|
+
}, null, -1)), xe = [
|
|
554
|
+
ye,
|
|
555
|
+
we,
|
|
556
|
+
ke
|
|
557
|
+
], Se = ["onClick"], Le = /* @__PURE__ */ m(() => /* @__PURE__ */ t("path", {
|
|
499
558
|
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",
|
|
500
559
|
stroke: "white",
|
|
501
560
|
"stroke-opacity": "1",
|
|
502
561
|
"stroke-width": "1.44023",
|
|
503
562
|
"stroke-linecap": "round",
|
|
504
563
|
"stroke-linejoin": "round"
|
|
505
|
-
}, null, -1)),
|
|
564
|
+
}, null, -1)), $e = /* @__PURE__ */ m(() => /* @__PURE__ */ t("path", {
|
|
506
565
|
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",
|
|
507
566
|
stroke: "white",
|
|
508
567
|
"stroke-opacity": "1",
|
|
509
568
|
"stroke-width": "1.44023",
|
|
510
569
|
"stroke-linecap": "round",
|
|
511
570
|
"stroke-linejoin": "round"
|
|
512
|
-
}, null, -1)),
|
|
571
|
+
}, null, -1)), Be = /* @__PURE__ */ m(() => /* @__PURE__ */ t("path", {
|
|
513
572
|
d: "M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",
|
|
514
573
|
stroke: "white",
|
|
515
574
|
"stroke-opacity": "1",
|
|
516
575
|
"stroke-width": "1.44023",
|
|
517
576
|
"stroke-linecap": "round",
|
|
518
577
|
"stroke-linejoin": "round"
|
|
519
|
-
}, null, -1)),
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
],
|
|
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", {
|
|
524
583
|
"fill-rule": "evenodd",
|
|
525
584
|
"clip-rule": "evenodd",
|
|
526
585
|
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",
|
|
527
586
|
fill: "#D9D9D9"
|
|
528
|
-
}, null, -1)),
|
|
529
|
-
|
|
530
|
-
],
|
|
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 = {
|
|
531
590
|
__name: "GSC-TableScrollable",
|
|
532
591
|
props: {
|
|
533
592
|
players: {
|
|
@@ -541,6 +600,10 @@ const It = /* @__PURE__ */ mt(W, [["render", Bt], ["__scopeId", "data-v-f3ee6b2b
|
|
|
541
600
|
isEditMode: {
|
|
542
601
|
type: Boolean,
|
|
543
602
|
default: !1
|
|
603
|
+
},
|
|
604
|
+
isTableFromList: {
|
|
605
|
+
type: Boolean,
|
|
606
|
+
default: !1
|
|
544
607
|
}
|
|
545
608
|
},
|
|
546
609
|
emits: [
|
|
@@ -550,23 +613,23 @@ const It = /* @__PURE__ */ mt(W, [["render", Bt], ["__scopeId", "data-v-f3ee6b2b
|
|
|
550
613
|
"view-graph",
|
|
551
614
|
"open-media"
|
|
552
615
|
],
|
|
553
|
-
setup(
|
|
554
|
-
const
|
|
616
|
+
setup(o, { emit: r }) {
|
|
617
|
+
const s = o;
|
|
555
618
|
let c = null, p = null;
|
|
556
|
-
const
|
|
557
|
-
|
|
558
|
-
const
|
|
559
|
-
"--width-details": `${
|
|
560
|
-
"--gap-static-row": `${
|
|
561
|
-
"--width-static-column": `${
|
|
562
|
-
})),
|
|
563
|
-
|
|
564
|
-
() =>
|
|
565
|
-
(
|
|
566
|
-
|
|
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(
|
|
627
|
+
() => s.players,
|
|
628
|
+
(e) => {
|
|
629
|
+
e && e.length && (h.value = e.map((d, i) => {
|
|
567
630
|
const u = i + 1;
|
|
568
631
|
return {
|
|
569
|
-
...
|
|
632
|
+
...d,
|
|
570
633
|
position: u < 10 ? `0${u}` : `${u}`,
|
|
571
634
|
isSelected: !1,
|
|
572
635
|
isExpanded: !1,
|
|
@@ -576,26 +639,26 @@ const It = /* @__PURE__ */ mt(W, [["render", Bt], ["__scopeId", "data-v-f3ee6b2b
|
|
|
576
639
|
}));
|
|
577
640
|
},
|
|
578
641
|
{ immediate: !0 }
|
|
579
|
-
),
|
|
580
|
-
() =>
|
|
581
|
-
(
|
|
582
|
-
|
|
583
|
-
|
|
642
|
+
), F(
|
|
643
|
+
() => s.isEditMode,
|
|
644
|
+
(e) => {
|
|
645
|
+
e && h.value.forEach((d) => {
|
|
646
|
+
d.isSelected = !1;
|
|
584
647
|
});
|
|
585
648
|
}
|
|
586
|
-
),
|
|
587
|
-
|
|
588
|
-
(
|
|
589
|
-
const i = document.querySelectorAll(".static-row")[
|
|
590
|
-
i && (i.style.marginTop = `${
|
|
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);
|
|
591
654
|
}
|
|
592
655
|
);
|
|
593
|
-
function
|
|
594
|
-
const u = document.querySelectorAll(".scrollable-row")[
|
|
595
|
-
u && (u.style.marginTop = `${
|
|
656
|
+
function B(e, d) {
|
|
657
|
+
const u = document.querySelectorAll(".scrollable-row")[e + 2];
|
|
658
|
+
u && (u.style.marginTop = `${d}px`);
|
|
596
659
|
}
|
|
597
|
-
function
|
|
598
|
-
const
|
|
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 = {
|
|
599
662
|
isFeaturedPlayers: !1,
|
|
600
663
|
mainSectionType: 1,
|
|
601
664
|
playListType: 2,
|
|
@@ -615,28 +678,28 @@ const It = /* @__PURE__ */ mt(W, [["render", Bt], ["__scopeId", "data-v-f3ee6b2b
|
|
|
615
678
|
playListTitle: "Jugadas Relevantes"
|
|
616
679
|
}
|
|
617
680
|
};
|
|
618
|
-
if (
|
|
619
|
-
const
|
|
620
|
-
...
|
|
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
|
|
621
684
|
];
|
|
622
|
-
|
|
623
|
-
} else (
|
|
624
|
-
|
|
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);
|
|
625
688
|
}
|
|
626
|
-
function
|
|
627
|
-
c = new ResizeObserver((
|
|
628
|
-
for (const
|
|
629
|
-
|
|
689
|
+
function Z() {
|
|
690
|
+
c = new ResizeObserver((e) => {
|
|
691
|
+
for (const d of e)
|
|
692
|
+
$.value = d.contentRect.width;
|
|
630
693
|
}), c.observe(y.value);
|
|
631
694
|
}
|
|
632
|
-
function
|
|
633
|
-
p = new ResizeObserver((
|
|
634
|
-
for (const i of
|
|
635
|
-
|
|
636
|
-
}), p.observe(
|
|
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);
|
|
637
700
|
}
|
|
638
|
-
function
|
|
639
|
-
return
|
|
701
|
+
function it(e) {
|
|
702
|
+
return e === "POR" ? [39, 40, 52, 53, 54, 55, 323, 324, 608, 774, 802] : [
|
|
640
703
|
10,
|
|
641
704
|
12,
|
|
642
705
|
14,
|
|
@@ -682,174 +745,211 @@ const It = /* @__PURE__ */ mt(W, [["render", Bt], ["__scopeId", "data-v-f3ee6b2b
|
|
|
682
745
|
488
|
|
683
746
|
];
|
|
684
747
|
}
|
|
685
|
-
function
|
|
686
|
-
|
|
687
|
-
const i =
|
|
688
|
-
|
|
748
|
+
function lt(e, d) {
|
|
749
|
+
d.isSelected = e;
|
|
750
|
+
const i = h.value.filter((u) => u.isSelected);
|
|
751
|
+
r("change-selected-players", i);
|
|
752
|
+
}
|
|
753
|
+
function nt(e) {
|
|
754
|
+
r("view-profile", e);
|
|
689
755
|
}
|
|
690
|
-
function
|
|
691
|
-
|
|
756
|
+
function j(e) {
|
|
757
|
+
r("delete-from-list", e);
|
|
692
758
|
}
|
|
693
|
-
function
|
|
694
|
-
|
|
759
|
+
function H(e) {
|
|
760
|
+
r("add-to-list", e);
|
|
695
761
|
}
|
|
696
|
-
function
|
|
697
|
-
|
|
762
|
+
function at(e) {
|
|
763
|
+
r("show-graph", e);
|
|
698
764
|
}
|
|
699
|
-
function
|
|
700
|
-
if (
|
|
701
|
-
|
|
765
|
+
function N(e) {
|
|
766
|
+
if (e.isExpanded) {
|
|
767
|
+
e.isExpanded = !1, R.value = null;
|
|
702
768
|
return;
|
|
703
769
|
}
|
|
704
|
-
const
|
|
705
|
-
if (
|
|
706
|
-
|
|
770
|
+
const d = h.value.find((k) => k.isExpanded);
|
|
771
|
+
if (d && (d.isExpanded = !1), d) {
|
|
772
|
+
R.value = e;
|
|
707
773
|
return;
|
|
708
774
|
}
|
|
709
|
-
const u = document.querySelectorAll(".details-row")[
|
|
710
|
-
|
|
775
|
+
const u = document.querySelectorAll(".details-row")[e.index];
|
|
776
|
+
M.value = e.index, st(u), e.isExpanded = !0;
|
|
711
777
|
}
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
}
|
|
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;
|
|
782
|
+
};
|
|
783
|
+
function dt() {
|
|
784
|
+
a.value && (a.value.addEventListener("mousemove", (e) => {
|
|
785
|
+
if (!P)
|
|
786
|
+
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));
|
|
790
|
+
}
|
|
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", {
|
|
715
796
|
class: "table",
|
|
716
797
|
ref_key: "tableSC",
|
|
717
798
|
ref: y,
|
|
718
|
-
style:
|
|
799
|
+
style: S(g.value)
|
|
719
800
|
}, [
|
|
720
|
-
t("div",
|
|
721
|
-
|
|
722
|
-
(l(!0),
|
|
801
|
+
t("div", Nt, [
|
|
802
|
+
Gt,
|
|
803
|
+
(l(!0), n(I, null, E(h.value, (i) => (l(), n("div", {
|
|
723
804
|
key: `s-${i.id}`,
|
|
724
805
|
class: _(["row static-row", { odd: i.isOdd }])
|
|
725
806
|
}, [
|
|
726
|
-
|
|
727
|
-
default:
|
|
728
|
-
|
|
807
|
+
J(ft, null, {
|
|
808
|
+
default: ht(() => [
|
|
809
|
+
vt(t("div", {
|
|
729
810
|
class: _(["details-row", { odd: i.isOdd }])
|
|
730
811
|
}, [
|
|
731
|
-
t("div",
|
|
732
|
-
t("div",
|
|
733
|
-
t("div",
|
|
812
|
+
t("div", Ut, [
|
|
813
|
+
t("div", qt, [
|
|
814
|
+
t("div", Jt, [
|
|
734
815
|
t("div", null, [
|
|
735
|
-
|
|
736
|
-
t("span",
|
|
816
|
+
T("Equipo: "),
|
|
817
|
+
t("span", Xt, f(i.team_name), 1)
|
|
737
818
|
]),
|
|
738
819
|
t("div", null, [
|
|
739
|
-
|
|
740
|
-
t("span",
|
|
820
|
+
T("Edad: "),
|
|
821
|
+
t("span", Kt, f(i.player_age) + " Años", 1)
|
|
741
822
|
]),
|
|
742
823
|
t("div", null, [
|
|
743
|
-
|
|
744
|
-
t("span",
|
|
824
|
+
T("Nacionalidad: "),
|
|
825
|
+
t("span", Qt, f(i.player_country), 1)
|
|
745
826
|
]),
|
|
746
827
|
t("div", null, [
|
|
747
|
-
|
|
748
|
-
t("span",
|
|
828
|
+
T("Posición: "),
|
|
829
|
+
t("span", Yt, f(i.position_name), 1)
|
|
749
830
|
])
|
|
750
831
|
]),
|
|
751
|
-
t("div",
|
|
832
|
+
t("div", te, [
|
|
752
833
|
t("div", null, [
|
|
753
|
-
|
|
754
|
-
t("span",
|
|
834
|
+
T("Partidos Jugados: "),
|
|
835
|
+
t("span", ee, f(i.player_games), 1)
|
|
755
836
|
]),
|
|
756
837
|
t("div", null, [
|
|
757
|
-
|
|
758
|
-
t("span",
|
|
838
|
+
T("Minutos Jugados: "),
|
|
839
|
+
t("span", oe, f(i.player_min), 1)
|
|
759
840
|
])
|
|
760
841
|
])
|
|
761
842
|
]),
|
|
762
843
|
t("div", {
|
|
763
844
|
class: "details-row__buttons",
|
|
764
|
-
style:
|
|
845
|
+
style: S(b.value ? "margin-left: 0; gap: 8px;" : "")
|
|
765
846
|
}, [
|
|
766
847
|
t("div", {
|
|
767
848
|
role: "button",
|
|
768
849
|
class: "button",
|
|
769
|
-
onClick: (u) =>
|
|
770
|
-
},
|
|
771
|
-
|
|
850
|
+
onClick: (u) => at(i)
|
|
851
|
+
}, ne, 8, se),
|
|
852
|
+
o.isTableFromList ? (l(), n("div", {
|
|
853
|
+
key: 0,
|
|
854
|
+
role: "button",
|
|
855
|
+
class: "button",
|
|
856
|
+
onClick: (u) => j(i)
|
|
857
|
+
}, ce, 8, ae)) : (l(), n("div", {
|
|
858
|
+
key: 1,
|
|
772
859
|
role: "button",
|
|
773
860
|
class: "button",
|
|
774
|
-
onClick: (u) =>
|
|
775
|
-
},
|
|
861
|
+
onClick: (u) => H(i)
|
|
862
|
+
}, ve, 8, ue)),
|
|
776
863
|
t("div", {
|
|
777
864
|
role: "button",
|
|
778
865
|
class: "button green",
|
|
779
|
-
onClick: (u) =>
|
|
780
|
-
},
|
|
866
|
+
onClick: (u) => nt(i)
|
|
867
|
+
}, _e, 8, pe)
|
|
781
868
|
], 4)
|
|
782
869
|
])
|
|
783
870
|
], 2), [
|
|
784
|
-
[
|
|
871
|
+
[pt, i.isExpanded]
|
|
785
872
|
])
|
|
786
873
|
]),
|
|
787
874
|
_: 2
|
|
788
875
|
}, 1024),
|
|
789
|
-
|
|
876
|
+
o.isEditMode ? (l(), X(K($t), {
|
|
790
877
|
key: 0,
|
|
791
878
|
fontFamily: "Poppins-Regular",
|
|
792
879
|
labelFontSize: "14px",
|
|
793
880
|
"model-value": i.isSelected,
|
|
794
|
-
"onUpdate:modelValue": (u) =>
|
|
795
|
-
}, null, 8, ["model-value", "onUpdate:modelValue"])) :
|
|
796
|
-
t("div",
|
|
797
|
-
t("div",
|
|
798
|
-
(l(),
|
|
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),
|
|
885
|
+
o.isTableFromList ? (l(), n("svg", {
|
|
886
|
+
key: 0,
|
|
799
887
|
width: "20",
|
|
800
888
|
height: "20",
|
|
801
889
|
viewBox: "0 0 20 20",
|
|
802
890
|
fill: "none",
|
|
803
891
|
xmlns: "http://www.w3.org/2000/svg",
|
|
804
|
-
onClick: (u) =>
|
|
805
|
-
},
|
|
806
|
-
|
|
892
|
+
onClick: (u) => j(i)
|
|
893
|
+
}, xe, 8, Ce)) : (l(), n("svg", {
|
|
894
|
+
key: 1,
|
|
895
|
+
width: "20",
|
|
896
|
+
height: "20",
|
|
897
|
+
viewBox: "0 0 20 20",
|
|
898
|
+
fill: "none",
|
|
899
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
900
|
+
onClick: (u) => H(i)
|
|
901
|
+
}, Me, 8, Se)),
|
|
902
|
+
t("div", Ve, [
|
|
807
903
|
t("div", null, [
|
|
808
904
|
t("img", {
|
|
809
905
|
src: i.player_photo,
|
|
810
906
|
alt: "player photo"
|
|
811
|
-
}, null, 8,
|
|
907
|
+
}, null, 8, Ie)
|
|
812
908
|
])
|
|
813
909
|
]),
|
|
814
|
-
t("div",
|
|
910
|
+
t("div", Re, f(i.player_name), 1)
|
|
815
911
|
]),
|
|
816
|
-
t("div",
|
|
817
|
-
(l(),
|
|
912
|
+
t("div", Te, [
|
|
913
|
+
(l(), n("svg", {
|
|
818
914
|
class: _(["_arrowExpandIcon_6ak64_1115 _rotate_6ak64_5", { expanded: i.isExpanded }]),
|
|
819
915
|
width: "12",
|
|
820
916
|
height: "8",
|
|
821
917
|
viewBox: "0 0 12 8",
|
|
822
918
|
fill: "#D9D9D9",
|
|
823
919
|
xmlns: "http://www.w3.org/2000/svg",
|
|
824
|
-
onClick: (u) =>
|
|
825
|
-
},
|
|
920
|
+
onClick: (u) => N(i)
|
|
921
|
+
}, Fe, 10, Ee))
|
|
826
922
|
])
|
|
827
923
|
], 2))), 128))
|
|
828
924
|
]),
|
|
829
|
-
t("div",
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
925
|
+
t("div", {
|
|
926
|
+
ref_key: "scrollableColumns",
|
|
927
|
+
ref: a,
|
|
928
|
+
class: "table__scrollable-columns"
|
|
929
|
+
}, [
|
|
930
|
+
o.isGeneral ? (l(), n(I, { key: 0 }, [
|
|
931
|
+
Pe,
|
|
932
|
+
(l(!0), n(I, null, E(h.value, (i) => (l(), n("div", {
|
|
833
933
|
key: `i-${i.id}`,
|
|
834
934
|
class: "row scrollable-row"
|
|
835
935
|
}, [
|
|
836
936
|
t("div", {
|
|
837
937
|
class: _(["row team-info", { odd: i.isOdd }])
|
|
838
938
|
}, [
|
|
839
|
-
t("div",
|
|
939
|
+
t("div", ze, [
|
|
840
940
|
t("img", {
|
|
841
941
|
src: i.team_logo,
|
|
842
942
|
alt: "team logo"
|
|
843
|
-
}, null, 8,
|
|
943
|
+
}, null, 8, De)
|
|
844
944
|
]),
|
|
845
|
-
t("div",
|
|
945
|
+
t("div", Ae, f(i.team_abrev), 1)
|
|
846
946
|
], 2),
|
|
847
947
|
t("div", {
|
|
848
948
|
class: _(["row data-info", { odd: i.isOdd }])
|
|
849
|
-
},
|
|
949
|
+
}, f(i.player_position), 3),
|
|
850
950
|
t("div", {
|
|
851
951
|
class: _(["row data-info", { odd: i.isOdd }])
|
|
852
|
-
},
|
|
952
|
+
}, f(i.player_age), 3),
|
|
853
953
|
t("div", {
|
|
854
954
|
class: _(["row data-info", { odd: i.isOdd }])
|
|
855
955
|
}, [
|
|
@@ -857,21 +957,21 @@ const It = /* @__PURE__ */ mt(W, [["render", Bt], ["__scopeId", "data-v-f3ee6b2b
|
|
|
857
957
|
src: i.player_country_flag,
|
|
858
958
|
alt: "player country flag",
|
|
859
959
|
class: "country-flag"
|
|
860
|
-
}, null, 8,
|
|
960
|
+
}, null, 8, We)
|
|
861
961
|
], 2),
|
|
862
962
|
t("div", {
|
|
863
963
|
class: _(["row data-info", { odd: i.isOdd }])
|
|
864
|
-
},
|
|
964
|
+
}, f(i.player_games), 3),
|
|
865
965
|
t("div", {
|
|
866
966
|
class: _(["row data-info", { odd: i.isOdd }])
|
|
867
|
-
},
|
|
967
|
+
}, f(i.player_min), 3),
|
|
868
968
|
t("div", {
|
|
869
969
|
class: _(["row data-info", { odd: i.isOdd }])
|
|
870
|
-
},
|
|
970
|
+
}, f(i.league_name), 3),
|
|
871
971
|
t("div", {
|
|
872
972
|
class: _(["row data-info", { odd: i.isOdd }])
|
|
873
973
|
}, [
|
|
874
|
-
|
|
974
|
+
J(K(zt), {
|
|
875
975
|
icon: "https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png",
|
|
876
976
|
"icon-size": "19px",
|
|
877
977
|
"icon-position": "left",
|
|
@@ -884,25 +984,25 @@ const It = /* @__PURE__ */ mt(W, [["render", Bt], ["__scopeId", "data-v-f3ee6b2b
|
|
|
884
984
|
"border-color": "#55636e",
|
|
885
985
|
"text-value": "Ver videos",
|
|
886
986
|
"font-size": "10px",
|
|
887
|
-
onClick: (u) =>
|
|
987
|
+
onClick: (u) => w(i)
|
|
888
988
|
}, null, 8, ["onClick"])
|
|
889
989
|
], 2),
|
|
890
990
|
t("div", {
|
|
891
991
|
class: _(["row data-info", { odd: i.isOdd }])
|
|
892
992
|
}, null, 2)
|
|
893
993
|
]))), 128))
|
|
894
|
-
], 64)) : (l(),
|
|
994
|
+
], 64)) : (l(), X(Ht, {
|
|
895
995
|
key: 1,
|
|
896
996
|
ref_key: "scrollColumns",
|
|
897
|
-
ref:
|
|
898
|
-
"available-players":
|
|
899
|
-
"is-edit-mode":
|
|
900
|
-
onOpenMedia:
|
|
997
|
+
ref: L,
|
|
998
|
+
"available-players": h.value,
|
|
999
|
+
"is-edit-mode": o.isEditMode,
|
|
1000
|
+
onOpenMedia: w
|
|
901
1001
|
}, null, 8, ["available-players", "is-edit-mode"]))
|
|
902
|
-
])
|
|
1002
|
+
], 512)
|
|
903
1003
|
], 4));
|
|
904
1004
|
}
|
|
905
|
-
},
|
|
1005
|
+
}, He = /* @__PURE__ */ ot(Ze, [["__scopeId", "data-v-ef3c543d"]]);
|
|
906
1006
|
export {
|
|
907
|
-
|
|
1007
|
+
He as GSCTableScrollable
|
|
908
1008
|
};
|