@golstats/gsc-table-scrollable 0.0.1 → 1.0.0
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 [
|
|
5
|
-
|
|
6
|
-
return
|
|
7
|
-
},
|
|
1
|
+
import { useCssVars as J, ref as m, computed as V, watch as P, createElementBlock as a, openBlock as l, normalizeClass as h, createElementVNode as t, createCommentVNode as k, normalizeStyle as L, Fragment as R, toDisplayString as r, pushScopeId as z, popScopeId as D, onMounted as K, renderList as I, createVNode as H, createBlock as j, Transition as et, withCtx as ot, withDirectives as st, createTextVNode as M, vShow as it, unref as G, createStaticVNode as lt } from "vue";
|
|
2
|
+
const at = (e, d) => {
|
|
3
|
+
const o = e.__vccOpts || e;
|
|
4
|
+
for (const [c, p] of d)
|
|
5
|
+
o[c] = p;
|
|
6
|
+
return o;
|
|
7
|
+
}, nt = { key: 1 }, dt = {
|
|
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
|
+
}, rt = ["fill"], ct = {
|
|
14
14
|
key: 0,
|
|
15
15
|
class: "checkbox__teams"
|
|
16
|
-
},
|
|
16
|
+
}, ut = { class: "checkbox__teams__logo" }, ft = ["src"], vt = { class: "checkbox__teams__logo" }, ht = ["src"], pt = {
|
|
17
17
|
__name: "GSC-Checkbox",
|
|
18
18
|
props: {
|
|
19
19
|
width: {
|
|
@@ -72,8 +72,8 @@ const tt = (t, u) => {
|
|
|
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(e) {
|
|
76
|
+
return ["left", "right", "top", "bottom"].includes(e);
|
|
77
77
|
}
|
|
78
78
|
},
|
|
79
79
|
boxMarginTop: {
|
|
@@ -122,99 +122,99 @@ const tt = (t, u) => {
|
|
|
122
122
|
}
|
|
123
123
|
},
|
|
124
124
|
emits: ["update:modelValue"],
|
|
125
|
-
setup(
|
|
126
|
-
const
|
|
127
|
-
|
|
128
|
-
"7bd9d47b":
|
|
129
|
-
"34dc7ddc":
|
|
125
|
+
setup(e, { emit: d }) {
|
|
126
|
+
const o = e;
|
|
127
|
+
J((f) => ({
|
|
128
|
+
"7bd9d47b": e.width,
|
|
129
|
+
"34dc7ddc": e.height
|
|
130
130
|
}));
|
|
131
|
-
const
|
|
132
|
-
const
|
|
133
|
-
color:
|
|
134
|
-
"font-family":
|
|
135
|
-
height:
|
|
136
|
-
width:
|
|
137
|
-
minWidth:
|
|
138
|
-
"border-radius":
|
|
139
|
-
"margin-top":
|
|
131
|
+
const c = m(!1), p = V(() => {
|
|
132
|
+
const f = {
|
|
133
|
+
color: o.boxValueColor,
|
|
134
|
+
"font-family": o.fontFamily,
|
|
135
|
+
height: o.boxWidthAndHeight,
|
|
136
|
+
width: o.boxWidthAndHeight,
|
|
137
|
+
minWidth: o.boxWidthAndHeight,
|
|
138
|
+
"border-radius": o.boxBorderRadius,
|
|
139
|
+
"margin-top": o.boxMarginTop
|
|
140
140
|
};
|
|
141
|
-
return
|
|
142
|
-
}),
|
|
143
|
-
"font-family":
|
|
144
|
-
"font-size":
|
|
145
|
-
color:
|
|
141
|
+
return c.value ? (f["background-color"] = o.boxBackgroundColor, f.border = `solid ${o.boxBorderWidth} ${o.boxBackgroundColor}`) : f.border = `solid ${o.boxBorderWidth} ${o.boxBorderColor}`, f;
|
|
142
|
+
}), u = V(() => ({
|
|
143
|
+
"font-family": o.boxValueFontFamily,
|
|
144
|
+
"font-size": o.boxValueFontSize,
|
|
145
|
+
color: o.boxValueColor,
|
|
146
146
|
"line-height": 1
|
|
147
|
-
})),
|
|
148
|
-
const
|
|
149
|
-
color:
|
|
150
|
-
"font-family":
|
|
151
|
-
"font-size":
|
|
152
|
-
"white-space":
|
|
153
|
-
"text-align":
|
|
147
|
+
})), y = V(() => {
|
|
148
|
+
const f = {
|
|
149
|
+
color: o.labelColor,
|
|
150
|
+
"font-family": o.fontFamily,
|
|
151
|
+
"font-size": o.labelFontSize,
|
|
152
|
+
"white-space": o.labelWhiteSpace,
|
|
153
|
+
"text-align": o.boxPosition === "top" || o.boxPosition === "bottom" ? "center" : o.boxPosition
|
|
154
154
|
};
|
|
155
|
-
return (
|
|
155
|
+
return (o.boxPosition === "left" || o.boxPosition === "right") && (f[`margin-${o.boxPosition}`] = o.isBoxOnly ? "0" : o.teamsIds ? "8px" : "10px"), f;
|
|
156
156
|
});
|
|
157
|
-
|
|
158
|
-
() =>
|
|
159
|
-
(
|
|
160
|
-
|
|
157
|
+
P(
|
|
158
|
+
() => o.modelValue,
|
|
159
|
+
(f) => {
|
|
160
|
+
f !== c.value && (c.value = f);
|
|
161
161
|
},
|
|
162
162
|
{ immediate: !0 }
|
|
163
163
|
);
|
|
164
|
-
function
|
|
165
|
-
|
|
164
|
+
function S() {
|
|
165
|
+
o.avoidInteraction || !c.value && o.avoidToCheck || (c.value = !c.value, d("update:modelValue", c.value));
|
|
166
166
|
}
|
|
167
|
-
function
|
|
168
|
-
return `${{}.TEAM_LOGOS_URL || "https://golstatsimages.blob.core.windows.net/teams-80/"}${
|
|
167
|
+
function w(f) {
|
|
168
|
+
return `${{}.TEAM_LOGOS_URL || "https://golstatsimages.blob.core.windows.net/teams-80/"}${f}.png`;
|
|
169
169
|
}
|
|
170
|
-
return (
|
|
171
|
-
class: h(["checkbox", `box-${
|
|
172
|
-
onClick:
|
|
170
|
+
return (f, $) => (l(), a("div", {
|
|
171
|
+
class: h(["checkbox", `box-${e.boxPosition}`]),
|
|
172
|
+
onClick: S
|
|
173
173
|
}, [
|
|
174
|
-
|
|
174
|
+
t("div", {
|
|
175
175
|
class: "checkbox__box",
|
|
176
|
-
style:
|
|
176
|
+
style: L(p.value)
|
|
177
177
|
}, [
|
|
178
|
-
|
|
179
|
-
|
|
178
|
+
c.value ? (l(), a(R, { key: 0 }, [
|
|
179
|
+
o.boxValue ? (l(), a("div", {
|
|
180
180
|
key: 0,
|
|
181
181
|
class: "checkbox__box__value",
|
|
182
|
-
style:
|
|
183
|
-
},
|
|
184
|
-
(
|
|
185
|
-
|
|
182
|
+
style: L(u.value)
|
|
183
|
+
}, r(e.boxValue), 5)) : (l(), a("div", nt, [
|
|
184
|
+
(l(), a("svg", dt, [
|
|
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: e.boxValueColor
|
|
188
|
+
}, null, 8, rt)
|
|
189
189
|
]))
|
|
190
190
|
]))
|
|
191
|
-
], 64)) :
|
|
191
|
+
], 64)) : k("", !0)
|
|
192
192
|
], 4),
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
src:
|
|
193
|
+
e.teamsIds && e.teamsIds.length ? (l(), a("div", ct, [
|
|
194
|
+
t("div", ut, [
|
|
195
|
+
t("img", {
|
|
196
|
+
src: w(e.teamsIds[0]),
|
|
197
197
|
alt: ""
|
|
198
|
-
}, null, 8,
|
|
198
|
+
}, null, 8, ft)
|
|
199
199
|
]),
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
src:
|
|
200
|
+
t("div", vt, [
|
|
201
|
+
t("img", {
|
|
202
|
+
src: w(e.teamsIds[1]),
|
|
203
203
|
alt: ""
|
|
204
|
-
}, null, 8,
|
|
204
|
+
}, null, 8, ht)
|
|
205
205
|
])
|
|
206
|
-
])) :
|
|
207
|
-
|
|
206
|
+
])) : k("", !0),
|
|
207
|
+
t("div", {
|
|
208
208
|
class: "checkbox__label",
|
|
209
|
-
style:
|
|
210
|
-
},
|
|
209
|
+
style: L(y.value)
|
|
210
|
+
}, r(e.label), 5)
|
|
211
211
|
], 2));
|
|
212
212
|
}
|
|
213
|
-
},
|
|
214
|
-
const
|
|
215
|
-
for (const [
|
|
216
|
-
|
|
217
|
-
return
|
|
213
|
+
}, _t = /* @__PURE__ */ at(pt, [["__scopeId", "data-v-b6f124d8"]]), bt = (e, d) => {
|
|
214
|
+
const o = e.__vccOpts || e;
|
|
215
|
+
for (const [c, p] of d)
|
|
216
|
+
o[c] = p;
|
|
217
|
+
return o;
|
|
218
218
|
}, W = {
|
|
219
219
|
props: {
|
|
220
220
|
type: { type: Number, default: 0 },
|
|
@@ -252,8 +252,8 @@ const tt = (t, u) => {
|
|
|
252
252
|
value: {
|
|
253
253
|
deep: !0,
|
|
254
254
|
immediate: !0,
|
|
255
|
-
handler(
|
|
256
|
-
this.status =
|
|
255
|
+
handler(e) {
|
|
256
|
+
this.status = e;
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
259
|
},
|
|
@@ -285,86 +285,86 @@ const tt = (t, u) => {
|
|
|
285
285
|
}
|
|
286
286
|
},
|
|
287
287
|
methods: {
|
|
288
|
-
btnClick(
|
|
289
|
-
this.$emit("click",
|
|
288
|
+
btnClick(e) {
|
|
289
|
+
this.$emit("click", e), 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
|
+
J((e) => ({
|
|
294
|
+
"9d01acb4": e.height,
|
|
295
|
+
"14e95081": e.borderWidthBtn,
|
|
296
|
+
"38fec285": e.borderType,
|
|
297
|
+
34353510: e.borderColor,
|
|
298
|
+
"20d20dc6": e.borderRadius,
|
|
299
|
+
17130967: e.width,
|
|
300
|
+
"4ccb7d36": e.backgroundColor,
|
|
301
|
+
"5d1e86a2": e.cursorType,
|
|
302
|
+
ce65d4a2: e.fontSize,
|
|
303
|
+
fe4ac47a: e.fontStyle,
|
|
304
|
+
f98e44dc: e.fontFamily,
|
|
305
|
+
"93b87770": e.marginLeftStat,
|
|
306
|
+
c7f7beba: e.fontSizeStat
|
|
307
307
|
}));
|
|
308
308
|
}, U = W.setup;
|
|
309
|
-
W.setup = U ? (
|
|
310
|
-
const
|
|
309
|
+
W.setup = U ? (e, d) => (q(), U(e, d)) : q;
|
|
310
|
+
const gt = (e) => (z("data-v-f3ee6b2b"), e = e(), D(), e), mt = ["src"], yt = {
|
|
311
311
|
key: 1,
|
|
312
312
|
class: "text"
|
|
313
|
-
},
|
|
313
|
+
}, Ct = ["src"], wt = { class: "stats" }, xt = /* @__PURE__ */ gt(() => /* @__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
|
|
319
|
-
|
|
316
|
+
}, null, -1)), kt = { class: "numstats" }, St = { class: "leyend" };
|
|
317
|
+
function Lt(e, d, o, c, p, u) {
|
|
318
|
+
return l(), a("div", null, [
|
|
319
|
+
o.type == 0 ? (l(), a("div", {
|
|
320
320
|
key: 0,
|
|
321
|
-
class: h(["button",
|
|
322
|
-
style:
|
|
323
|
-
onClick:
|
|
321
|
+
class: h(["button", p.status && o.typeOnOff && "button-active"]),
|
|
322
|
+
style: L([u.customStyle, p.status && o.typeOnOff && u.customActive]),
|
|
323
|
+
onClick: d[0] || (d[0] = (...y) => u.btnClick && u.btnClick(...y))
|
|
324
324
|
}, [
|
|
325
|
-
|
|
325
|
+
o.icon && o.iconPosition.toLowerCase() === "left" ? (l(), a("img", {
|
|
326
326
|
key: 0,
|
|
327
327
|
class: "icon",
|
|
328
|
-
style:
|
|
329
|
-
src:
|
|
330
|
-
}, null, 12,
|
|
331
|
-
|
|
332
|
-
|
|
328
|
+
style: L({ width: o.iconSize }),
|
|
329
|
+
src: o.icon
|
|
330
|
+
}, null, 12, mt)) : k("", !0),
|
|
331
|
+
o.textValue ? (l(), a("div", yt, r(o.textValue), 1)) : k("", !0),
|
|
332
|
+
o.icon && o.iconPosition.toLowerCase() === "right" ? (l(), a("img", {
|
|
333
333
|
key: 2,
|
|
334
334
|
class: "icon",
|
|
335
|
-
style:
|
|
336
|
-
src:
|
|
337
|
-
}, null, 12,
|
|
338
|
-
], 6)) :
|
|
339
|
-
|
|
335
|
+
style: L({ width: o.iconSize }),
|
|
336
|
+
src: o.icon
|
|
337
|
+
}, null, 12, Ct)) : k("", !0)
|
|
338
|
+
], 6)) : k("", !0),
|
|
339
|
+
o.type == 1 ? (l(), a("div", {
|
|
340
340
|
key: 1,
|
|
341
341
|
class: "button-target",
|
|
342
|
-
onClick:
|
|
342
|
+
onClick: d[1] || (d[1] = (...y) => u.btnClick && u.btnClick(...y))
|
|
343
343
|
}, [
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
344
|
+
t("div", wt, [
|
|
345
|
+
xt,
|
|
346
|
+
t("div", kt, r(o.textStat), 1)
|
|
347
347
|
]),
|
|
348
|
-
|
|
349
|
-
])) :
|
|
348
|
+
t("div", St, r(o.textCategory), 1)
|
|
349
|
+
])) : k("", !0)
|
|
350
350
|
]);
|
|
351
351
|
}
|
|
352
|
-
const
|
|
353
|
-
const
|
|
354
|
-
for (const [
|
|
355
|
-
|
|
356
|
-
return
|
|
357
|
-
},
|
|
352
|
+
const $t = /* @__PURE__ */ bt(W, [["render", Lt], ["__scopeId", "data-v-f3ee6b2b"]]), Q = (e, d) => {
|
|
353
|
+
const o = e.__vccOpts || e;
|
|
354
|
+
for (const [c, p] of d)
|
|
355
|
+
o[c] = p;
|
|
356
|
+
return o;
|
|
357
|
+
}, X = (e) => (z("data-v-95767312"), e = e(), D(), e), Bt = {
|
|
358
358
|
key: 0,
|
|
359
359
|
class: "overlay"
|
|
360
|
-
},
|
|
360
|
+
}, Vt = /* @__PURE__ */ X(() => /* @__PURE__ */ t("div", { class: "column-title-2" }, null, -1)), Rt = ["onClick"], Mt = ["onClick"], Ot = /* @__PURE__ */ X(() => /* @__PURE__ */ t("path", {
|
|
361
361
|
"fill-rule": "evenodd",
|
|
362
362
|
"clip-rule": "evenodd",
|
|
363
363
|
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",
|
|
364
364
|
fill: "#D9D9D9"
|
|
365
|
-
}, null, -1)),
|
|
366
|
-
|
|
367
|
-
],
|
|
365
|
+
}, null, -1)), It = [
|
|
366
|
+
Ot
|
|
367
|
+
], Tt = {
|
|
368
368
|
__name: "ScrollColumns",
|
|
369
369
|
props: {
|
|
370
370
|
availablePlayers: {
|
|
@@ -376,88 +376,179 @@ const E = /* @__PURE__ */ ut(W, [["render", yt], ["__scopeId", "data-v-f3ee6b2b"
|
|
|
376
376
|
default: !1
|
|
377
377
|
}
|
|
378
378
|
},
|
|
379
|
-
emits: ["expand"],
|
|
380
|
-
setup(
|
|
381
|
-
const
|
|
382
|
-
const
|
|
383
|
-
return
|
|
384
|
-
}),
|
|
385
|
-
const
|
|
386
|
-
let
|
|
387
|
-
return
|
|
388
|
-
|
|
379
|
+
emits: ["expand", "open-media"],
|
|
380
|
+
setup(e, { expose: d, emit: o }) {
|
|
381
|
+
const c = e, p = m(null), u = m(null), y = m(0), S = m(!1), w = V(() => {
|
|
382
|
+
const _ = c.availablePlayers[0];
|
|
383
|
+
return _ ? _.stats : [];
|
|
384
|
+
}), f = V(() => {
|
|
385
|
+
const _ = `repeat(${w.value.length}, max-content) 36px`;
|
|
386
|
+
let g = "";
|
|
387
|
+
return y.value > 0 && document.querySelectorAll(".column-title-2").forEach((x) => {
|
|
388
|
+
g += `${x.offsetWidth}px `;
|
|
389
389
|
}), {
|
|
390
|
-
"--grid-template-columns":
|
|
391
|
-
"--grid-template-columns-totals":
|
|
390
|
+
"--grid-template-columns": _,
|
|
391
|
+
"--grid-template-columns-totals": g || _
|
|
392
392
|
};
|
|
393
393
|
});
|
|
394
|
-
function
|
|
395
|
-
|
|
396
|
-
for (const
|
|
397
|
-
const { width:
|
|
398
|
-
|
|
394
|
+
function $() {
|
|
395
|
+
p.value = new ResizeObserver((_) => {
|
|
396
|
+
for (const g of _) {
|
|
397
|
+
const { width: b } = g.contentRect;
|
|
398
|
+
y.value = b;
|
|
399
399
|
}
|
|
400
|
-
}),
|
|
400
|
+
}), p.value.observe(u.value);
|
|
401
401
|
}
|
|
402
|
-
function O(
|
|
403
|
-
|
|
402
|
+
function O(_) {
|
|
403
|
+
S.value = !S.value, o("expand", _);
|
|
404
404
|
}
|
|
405
|
-
function
|
|
406
|
-
const x = document.querySelectorAll(".scrollable-row-totals")[
|
|
407
|
-
x && (x.style.marginTop = `${
|
|
405
|
+
function F(_, g) {
|
|
406
|
+
const x = document.querySelectorAll(".scrollable-row-totals")[_ + 1];
|
|
407
|
+
x && (x.style.marginTop = `${g}px`);
|
|
408
408
|
}
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
|
|
409
|
+
function T({ player: _, stat: g }) {
|
|
410
|
+
o("open-media", { ..._, stat: g });
|
|
411
|
+
}
|
|
412
|
+
return K(() => {
|
|
413
|
+
$();
|
|
414
|
+
}), d({
|
|
415
|
+
setMarginTopDetails: F
|
|
416
|
+
}), (_, g) => (l(), a("div", {
|
|
414
417
|
class: "scroll-columns",
|
|
415
|
-
style:
|
|
418
|
+
style: L(f.value)
|
|
416
419
|
}, [
|
|
417
|
-
|
|
418
|
-
|
|
420
|
+
e.isEditMode ? (l(), a("div", Bt)) : k("", !0),
|
|
421
|
+
t("div", {
|
|
419
422
|
ref_key: "titlesRow",
|
|
420
|
-
ref:
|
|
423
|
+
ref: u,
|
|
421
424
|
class: "scrollable-row-2"
|
|
422
425
|
}, [
|
|
423
|
-
(
|
|
424
|
-
key: `t-${
|
|
426
|
+
(l(!0), a(R, null, I(w.value, (b) => (l(), a("div", {
|
|
427
|
+
key: `t-${b.category_id}`,
|
|
425
428
|
class: "column-title-2"
|
|
426
|
-
},
|
|
427
|
-
|
|
429
|
+
}, r(b.name), 1))), 128)),
|
|
430
|
+
Vt
|
|
428
431
|
], 512),
|
|
429
|
-
(
|
|
430
|
-
key: `i-${
|
|
432
|
+
(l(!0), a(R, null, I(e.availablePlayers, (b, x) => (l(), a("div", {
|
|
433
|
+
key: `i-${b.id}`,
|
|
431
434
|
class: "row scrollable-row-totals"
|
|
432
435
|
}, [
|
|
433
|
-
(
|
|
434
|
-
key:
|
|
435
|
-
class: h(["row data-info
|
|
436
|
-
|
|
437
|
-
|
|
436
|
+
(l(!0), a(R, null, I(b.stats, (B) => (l(), a("div", {
|
|
437
|
+
key: B.category_id,
|
|
438
|
+
class: h(["row data-info", { odd: x % 2 !== 0, underline: !!B.total }]),
|
|
439
|
+
onClick: (A) => T({ player: b, stat: B })
|
|
440
|
+
}, r(B.total), 11, Rt))), 128)),
|
|
441
|
+
t("div", {
|
|
438
442
|
class: h(["row data-info", { odd: x % 2 !== 0 }])
|
|
439
443
|
}, [
|
|
440
|
-
(
|
|
441
|
-
|
|
442
|
-
|
|
444
|
+
(l(), a("svg", {
|
|
445
|
+
class: h([{ expanded: b.isExpanded }, "_arrowExpandIcon_6ak64_1115 _rotate_6ak64_5 arrow"]),
|
|
446
|
+
onClick: (B) => O(b),
|
|
443
447
|
width: "12",
|
|
444
448
|
height: "8",
|
|
445
449
|
viewBox: "0 0 12 8",
|
|
446
450
|
fill: "#D9D9D9",
|
|
447
451
|
xmlns: "http://www.w3.org/2000/svg"
|
|
448
|
-
},
|
|
452
|
+
}, It, 10, Mt))
|
|
449
453
|
], 2)
|
|
450
454
|
]))), 128))
|
|
451
455
|
], 4));
|
|
452
456
|
}
|
|
453
|
-
},
|
|
457
|
+
}, Pt = /* @__PURE__ */ Q(Tt, [["__scopeId", "data-v-95767312"]]), C = (e) => (z("data-v-dbafbc83"), e = e(), D(), e), Ft = { class: "table__static-column" }, Et = /* @__PURE__ */ C(() => /* @__PURE__ */ t("div", { class: "static-title column-title" }, null, -1)), zt = { class: "container" }, Dt = { class: "details-row__info" }, Wt = { class: "details-row__info__personal" }, At = { class: "bold" }, Zt = { class: "bold" }, Nt = { class: "bold" }, Ht = { class: "bold" }, jt = { class: "details-row__info__games" }, Gt = { class: "bold" }, qt = { class: "bold" }, Ut = { class: "details-row__buttons" }, Jt = ["onClick"], Kt = /* @__PURE__ */ C(() => /* @__PURE__ */ t("div", null, "Ver gráfica", -1)), Qt = /* @__PURE__ */ C(() => /* @__PURE__ */ t("svg", {
|
|
458
|
+
width: "17",
|
|
459
|
+
height: "16",
|
|
460
|
+
viewBox: "0 0 17 16",
|
|
461
|
+
fill: "none",
|
|
462
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
463
|
+
}, [
|
|
464
|
+
/* @__PURE__ */ t("g", { "clip-path": "url(#clip0_3514_71971)" }, [
|
|
465
|
+
/* @__PURE__ */ t("path", {
|
|
466
|
+
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",
|
|
467
|
+
fill: "white"
|
|
468
|
+
})
|
|
469
|
+
]),
|
|
470
|
+
/* @__PURE__ */ t("defs", null, [
|
|
471
|
+
/* @__PURE__ */ t("clipPath", { id: "clip0_3514_71971" }, [
|
|
472
|
+
/* @__PURE__ */ t("rect", {
|
|
473
|
+
width: "16",
|
|
474
|
+
height: "16",
|
|
475
|
+
fill: "white",
|
|
476
|
+
transform: "translate(0.5)"
|
|
477
|
+
})
|
|
478
|
+
])
|
|
479
|
+
])
|
|
480
|
+
], -1)), Xt = [
|
|
481
|
+
Kt,
|
|
482
|
+
Qt
|
|
483
|
+
], Yt = ["onClick"], te = /* @__PURE__ */ C(() => /* @__PURE__ */ t("div", null, "Agregar a lista", -1)), ee = /* @__PURE__ */ C(() => /* @__PURE__ */ t("svg", {
|
|
484
|
+
width: "20",
|
|
485
|
+
height: "20",
|
|
486
|
+
viewBox: "0 0 20 20",
|
|
487
|
+
fill: "none",
|
|
488
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
489
|
+
}, [
|
|
490
|
+
/* @__PURE__ */ t("path", {
|
|
491
|
+
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",
|
|
492
|
+
stroke: "white",
|
|
493
|
+
"stroke-opacity": "1",
|
|
494
|
+
"stroke-width": "1.44023",
|
|
495
|
+
"stroke-linecap": "round",
|
|
496
|
+
"stroke-linejoin": "round"
|
|
497
|
+
}),
|
|
498
|
+
/* @__PURE__ */ t("path", {
|
|
499
|
+
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",
|
|
500
|
+
stroke: "white",
|
|
501
|
+
"stroke-opacity": "1",
|
|
502
|
+
"stroke-width": "1.44023",
|
|
503
|
+
"stroke-linecap": "round",
|
|
504
|
+
"stroke-linejoin": "round"
|
|
505
|
+
}),
|
|
506
|
+
/* @__PURE__ */ t("path", {
|
|
507
|
+
d: "M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",
|
|
508
|
+
stroke: "white",
|
|
509
|
+
"stroke-opacity": "1",
|
|
510
|
+
"stroke-width": "1.44023",
|
|
511
|
+
"stroke-linecap": "round",
|
|
512
|
+
"stroke-linejoin": "round"
|
|
513
|
+
})
|
|
514
|
+
], -1)), oe = [
|
|
515
|
+
te,
|
|
516
|
+
ee
|
|
517
|
+
], se = ["onClick"], ie = /* @__PURE__ */ C(() => /* @__PURE__ */ t("div", null, "Ver perfil", -1)), le = [
|
|
518
|
+
ie
|
|
519
|
+
], ae = { class: "static-row__info-player" }, ne = { class: "position" }, de = ["onClick"], re = /* @__PURE__ */ C(() => /* @__PURE__ */ t("path", {
|
|
520
|
+
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",
|
|
521
|
+
stroke: "white",
|
|
522
|
+
"stroke-opacity": "1",
|
|
523
|
+
"stroke-width": "1.44023",
|
|
524
|
+
"stroke-linecap": "round",
|
|
525
|
+
"stroke-linejoin": "round"
|
|
526
|
+
}, null, -1)), ce = /* @__PURE__ */ C(() => /* @__PURE__ */ t("path", {
|
|
527
|
+
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",
|
|
528
|
+
stroke: "white",
|
|
529
|
+
"stroke-opacity": "1",
|
|
530
|
+
"stroke-width": "1.44023",
|
|
531
|
+
"stroke-linecap": "round",
|
|
532
|
+
"stroke-linejoin": "round"
|
|
533
|
+
}, null, -1)), ue = /* @__PURE__ */ C(() => /* @__PURE__ */ t("path", {
|
|
534
|
+
d: "M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",
|
|
535
|
+
stroke: "white",
|
|
536
|
+
"stroke-opacity": "1",
|
|
537
|
+
"stroke-width": "1.44023",
|
|
538
|
+
"stroke-linecap": "round",
|
|
539
|
+
"stroke-linejoin": "round"
|
|
540
|
+
}, null, -1)), fe = [
|
|
541
|
+
re,
|
|
542
|
+
ce,
|
|
543
|
+
ue
|
|
544
|
+
], ve = { class: "player-photo" }, he = ["src"], pe = { class: "player-name" }, _e = { class: "arrow" }, be = ["onClick"], ge = /* @__PURE__ */ C(() => /* @__PURE__ */ t("path", {
|
|
454
545
|
"fill-rule": "evenodd",
|
|
455
546
|
"clip-rule": "evenodd",
|
|
456
547
|
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",
|
|
457
548
|
fill: "#D9D9D9"
|
|
458
|
-
}, null, -1)),
|
|
459
|
-
|
|
460
|
-
],
|
|
549
|
+
}, null, -1)), me = [
|
|
550
|
+
ge
|
|
551
|
+
], ye = { class: "table__scrollable-columns" }, Ce = /* @__PURE__ */ lt('<div class="titles scrollable-row" data-v-dbafbc83><div class="column-title" data-v-dbafbc83>Equipo</div><div class="column-title" data-v-dbafbc83>Posición</div><div class="column-title" data-v-dbafbc83>Edad</div><div class="column-title" data-v-dbafbc83>País</div><div class="column-title" data-v-dbafbc83>Partidos Jugados</div><div class="column-title" data-v-dbafbc83>Minutos Jugados</div><div class="column-title" data-v-dbafbc83>Liga</div><div class="column-title" data-v-dbafbc83>Videos</div><div class="column-title" data-v-dbafbc83></div></div>', 1), we = { class: "team-logo" }, xe = ["src"], ke = { class: "team-name data-info" }, Se = ["src"], Le = {
|
|
461
552
|
__name: "GSC-TableScrollable",
|
|
462
553
|
props: {
|
|
463
554
|
players: {
|
|
@@ -473,238 +564,324 @@ const E = /* @__PURE__ */ ut(W, [["render", yt], ["__scopeId", "data-v-f3ee6b2b"
|
|
|
473
564
|
default: !1
|
|
474
565
|
}
|
|
475
566
|
},
|
|
476
|
-
emits: [
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
567
|
+
emits: [
|
|
568
|
+
"change-selected-players",
|
|
569
|
+
"view-profile",
|
|
570
|
+
"add-to-list",
|
|
571
|
+
"view-graph",
|
|
572
|
+
"open-media"
|
|
573
|
+
],
|
|
574
|
+
setup(e, { emit: d }) {
|
|
575
|
+
const o = e;
|
|
576
|
+
let c = null, p = null;
|
|
577
|
+
const u = m([]), y = m(null), S = m(null), w = m(0), f = m(0), $ = m(-1), O = m(!1), F = V(() => ({
|
|
578
|
+
"--width-details": `${w.value}px`,
|
|
579
|
+
"--gap-static-row": `${T.value ? "8px" : "18px"}`,
|
|
580
|
+
"--width-static-column": `${T.value ? "50%" : "256px"}`
|
|
581
|
+
})), T = V(() => w.value < 600);
|
|
582
|
+
P(
|
|
583
|
+
() => o.players,
|
|
584
|
+
(i) => {
|
|
585
|
+
i && i.length && (u.value = i.map((n, s) => {
|
|
586
|
+
const v = s + 1;
|
|
587
|
+
return {
|
|
588
|
+
...n,
|
|
589
|
+
position: v < 10 ? `0${v}` : `${v}`,
|
|
491
590
|
isSelected: !1,
|
|
492
591
|
isExpanded: !1,
|
|
493
|
-
isOdd:
|
|
494
|
-
index:
|
|
592
|
+
isOdd: s % 2 !== 0,
|
|
593
|
+
index: s
|
|
495
594
|
};
|
|
496
595
|
}));
|
|
497
596
|
},
|
|
498
597
|
{ immediate: !0 }
|
|
499
|
-
),
|
|
500
|
-
() =>
|
|
501
|
-
(
|
|
502
|
-
|
|
503
|
-
|
|
598
|
+
), P(
|
|
599
|
+
() => o.isEditMode,
|
|
600
|
+
(i) => {
|
|
601
|
+
i && u.value.forEach((n) => {
|
|
602
|
+
n.isSelected = !1;
|
|
504
603
|
});
|
|
505
604
|
}
|
|
506
|
-
),
|
|
507
|
-
|
|
508
|
-
(
|
|
509
|
-
const
|
|
510
|
-
|
|
605
|
+
), P(
|
|
606
|
+
f,
|
|
607
|
+
(i) => {
|
|
608
|
+
const s = document.querySelectorAll(".static-row")[$.value + 1];
|
|
609
|
+
s && (s.style.marginTop = `${i}px`), o.isGeneral ? _($.value, i) : S.value && S.value.setMarginTopDetails($.value, i);
|
|
511
610
|
}
|
|
512
611
|
);
|
|
513
|
-
function
|
|
514
|
-
|
|
612
|
+
function _(i, n) {
|
|
613
|
+
const v = document.querySelectorAll(".scrollable-row")[i + 2];
|
|
614
|
+
v && (v.style.marginTop = `${n}px`);
|
|
515
615
|
}
|
|
516
|
-
function
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
616
|
+
function g(i) {
|
|
617
|
+
const n = i.player, s = n ? n.player_id || n.id || n.playerId : i.id || i.player_id, v = n ? n.team_id || n.teamId : i.team_id || i.teamId, E = {
|
|
618
|
+
seasonId: i.season_id,
|
|
619
|
+
// seasons: player.seasons,
|
|
620
|
+
isFeaturedPlayers: !1,
|
|
621
|
+
mainSectionType: 1,
|
|
622
|
+
playListType: 2,
|
|
623
|
+
gameIds: null,
|
|
624
|
+
playerIds: s ? [s] : [],
|
|
625
|
+
goalkeeperIds: [],
|
|
626
|
+
teamId: v || 0,
|
|
627
|
+
matchResult: [1, 2, 3],
|
|
628
|
+
categorySingleName: "",
|
|
629
|
+
isRivalSubject: !1,
|
|
630
|
+
avoidCategorySingleName: !1,
|
|
631
|
+
currentPlayIndex: 0,
|
|
632
|
+
playData: null,
|
|
633
|
+
lastClashedGameId: null,
|
|
634
|
+
tournamentsLastClashes: null,
|
|
635
|
+
advancedFilter: {
|
|
636
|
+
playListTitle: "Jugadas Relevantes"
|
|
637
|
+
}
|
|
638
|
+
};
|
|
639
|
+
i.stat ? E.customCategoryIds = [i.stat.category_id] : E.categoryIds = B(i.player_position), d("open-media", E);
|
|
521
640
|
}
|
|
522
|
-
function
|
|
523
|
-
|
|
524
|
-
for (const
|
|
525
|
-
|
|
526
|
-
}),
|
|
641
|
+
function b() {
|
|
642
|
+
c = new ResizeObserver((i) => {
|
|
643
|
+
for (const n of i)
|
|
644
|
+
w.value = n.contentRect.width;
|
|
645
|
+
}), c.observe(y.value);
|
|
527
646
|
}
|
|
528
|
-
function x(
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
647
|
+
function x(i) {
|
|
648
|
+
p = new ResizeObserver((n) => {
|
|
649
|
+
for (const s of n)
|
|
650
|
+
f.value = s.contentRect.height;
|
|
651
|
+
}), p.observe(i);
|
|
532
652
|
}
|
|
533
|
-
function
|
|
534
|
-
|
|
653
|
+
function B(i) {
|
|
654
|
+
return i === "POR" ? [39, 40, 52, 53, 54, 55, 323, 324, 608, 774, 802] : [
|
|
655
|
+
10,
|
|
656
|
+
12,
|
|
657
|
+
14,
|
|
658
|
+
15,
|
|
659
|
+
27,
|
|
660
|
+
35,
|
|
661
|
+
61,
|
|
662
|
+
217,
|
|
663
|
+
257,
|
|
664
|
+
466,
|
|
665
|
+
519,
|
|
666
|
+
607,
|
|
667
|
+
702,
|
|
668
|
+
730,
|
|
669
|
+
98,
|
|
670
|
+
101,
|
|
671
|
+
109,
|
|
672
|
+
112,
|
|
673
|
+
121,
|
|
674
|
+
122,
|
|
675
|
+
127,
|
|
676
|
+
128,
|
|
677
|
+
135,
|
|
678
|
+
136,
|
|
679
|
+
141,
|
|
680
|
+
142,
|
|
681
|
+
161,
|
|
682
|
+
170,
|
|
683
|
+
179,
|
|
684
|
+
211,
|
|
685
|
+
232,
|
|
686
|
+
235,
|
|
687
|
+
239,
|
|
688
|
+
242,
|
|
689
|
+
282,
|
|
690
|
+
284,
|
|
691
|
+
289,
|
|
692
|
+
291,
|
|
693
|
+
296,
|
|
694
|
+
485,
|
|
695
|
+
486,
|
|
696
|
+
487,
|
|
697
|
+
488
|
|
698
|
+
];
|
|
535
699
|
}
|
|
536
|
-
function A(
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
}), !b) {
|
|
541
|
-
const o = document.querySelectorAll(".details-row");
|
|
542
|
-
console.log("detailsRows", o);
|
|
543
|
-
const p = o[a.index];
|
|
544
|
-
console.log("playerDetailRow", p), O.value = a.index, p && g(p);
|
|
545
|
-
}
|
|
546
|
-
a.isExpanded = !b;
|
|
700
|
+
function A(i, n) {
|
|
701
|
+
n.isSelected = i;
|
|
702
|
+
const s = u.value.filter((v) => v.isSelected);
|
|
703
|
+
d("change-selected-players", s);
|
|
547
704
|
}
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
}
|
|
705
|
+
function Y(i) {
|
|
706
|
+
d("view-profile", i);
|
|
707
|
+
}
|
|
708
|
+
function Z(i) {
|
|
709
|
+
d("add-to-list", i);
|
|
710
|
+
}
|
|
711
|
+
function tt(i) {
|
|
712
|
+
d("view-graph", i);
|
|
713
|
+
}
|
|
714
|
+
function N(i) {
|
|
715
|
+
O.value = i.isExpanded, u.value.forEach((n) => {
|
|
716
|
+
n.isExpanded = !1;
|
|
717
|
+
}), setTimeout(() => {
|
|
718
|
+
if (!O.value) {
|
|
719
|
+
const s = document.querySelectorAll(".details-row")[i.index];
|
|
720
|
+
$.value = i.index, x(s);
|
|
721
|
+
}
|
|
722
|
+
i.isExpanded = !O.value;
|
|
723
|
+
}, 200);
|
|
724
|
+
}
|
|
725
|
+
return K(() => {
|
|
726
|
+
b();
|
|
727
|
+
}), (i, n) => (l(), a("div", {
|
|
551
728
|
class: "table",
|
|
552
729
|
ref_key: "tableSC",
|
|
553
|
-
ref:
|
|
554
|
-
style:
|
|
730
|
+
ref: y,
|
|
731
|
+
style: L(F.value)
|
|
555
732
|
}, [
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
(
|
|
559
|
-
key: `s-${
|
|
560
|
-
class: h(["row static-row", { odd:
|
|
733
|
+
t("div", Ft, [
|
|
734
|
+
Et,
|
|
735
|
+
(l(!0), a(R, null, I(u.value, (s) => (l(), a("div", {
|
|
736
|
+
key: `s-${s.id}`,
|
|
737
|
+
class: h(["row static-row", { odd: s.isOdd }])
|
|
561
738
|
}, [
|
|
562
|
-
|
|
563
|
-
default:
|
|
564
|
-
|
|
565
|
-
class: h(["details-row", { odd:
|
|
739
|
+
H(et, null, {
|
|
740
|
+
default: ot(() => [
|
|
741
|
+
st(t("div", {
|
|
742
|
+
class: h(["details-row", { odd: s.isOdd }])
|
|
566
743
|
}, [
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
744
|
+
t("div", zt, [
|
|
745
|
+
t("div", Dt, [
|
|
746
|
+
t("div", Wt, [
|
|
747
|
+
t("div", null, [
|
|
748
|
+
M("Equipo: "),
|
|
749
|
+
t("span", At, r(s.team_name), 1)
|
|
573
750
|
]),
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
751
|
+
t("div", null, [
|
|
752
|
+
M("Edad: "),
|
|
753
|
+
t("span", Zt, r(s.player_age) + " Años", 1)
|
|
577
754
|
]),
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
755
|
+
t("div", null, [
|
|
756
|
+
M("Nacionalidad: "),
|
|
757
|
+
t("span", Nt, r(s.player_country), 1)
|
|
581
758
|
]),
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
759
|
+
t("div", null, [
|
|
760
|
+
M("Posición: "),
|
|
761
|
+
t("span", Ht, r(s.position_name), 1)
|
|
585
762
|
])
|
|
586
763
|
]),
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
764
|
+
t("div", jt, [
|
|
765
|
+
t("div", null, [
|
|
766
|
+
M("Partidos Jugados: "),
|
|
767
|
+
t("span", Gt, r(s.player_games), 1)
|
|
591
768
|
]),
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
769
|
+
t("div", null, [
|
|
770
|
+
M("Minutos Jugados: "),
|
|
771
|
+
t("span", qt, r(s.player_min), 1)
|
|
595
772
|
])
|
|
596
773
|
])
|
|
597
774
|
]),
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
width: "88px",
|
|
615
|
-
height: "30px",
|
|
616
|
-
"border-radius": "30px",
|
|
617
|
-
"border-width": 1,
|
|
618
|
-
"background-color": "#ffffff1a",
|
|
619
|
-
"font-family": "Poppins-Semibold",
|
|
620
|
-
"border-color": "gray",
|
|
621
|
-
"text-value": "Agregar a lista",
|
|
622
|
-
"font-size": "10px",
|
|
623
|
-
onClick: (p) => $(o)
|
|
624
|
-
}, null, 8, ["onClick"]),
|
|
625
|
-
R(F(E), {
|
|
626
|
-
width: "88px",
|
|
627
|
-
height: "30px",
|
|
628
|
-
"border-radius": "30px",
|
|
629
|
-
"border-width": 1,
|
|
630
|
-
"background-color": "#ffffff1a",
|
|
631
|
-
"font-family": "Poppins-Semibold",
|
|
632
|
-
"border-color": "#cbee6b",
|
|
633
|
-
"text-value": "Ver perfil",
|
|
634
|
-
"font-size": "10px",
|
|
635
|
-
onClick: (p) => $(o)
|
|
636
|
-
}, null, 8, ["onClick"])
|
|
775
|
+
t("div", Ut, [
|
|
776
|
+
t("div", {
|
|
777
|
+
role: "button",
|
|
778
|
+
class: "button",
|
|
779
|
+
onClick: (v) => tt(s)
|
|
780
|
+
}, Xt, 8, Jt),
|
|
781
|
+
t("div", {
|
|
782
|
+
role: "button",
|
|
783
|
+
class: "button",
|
|
784
|
+
onClick: (v) => Z(s)
|
|
785
|
+
}, oe, 8, Yt),
|
|
786
|
+
t("div", {
|
|
787
|
+
role: "button",
|
|
788
|
+
class: "button green",
|
|
789
|
+
onClick: (v) => Y(s)
|
|
790
|
+
}, le, 8, se)
|
|
637
791
|
])
|
|
638
792
|
])
|
|
639
793
|
], 2), [
|
|
640
|
-
[
|
|
794
|
+
[it, s.isExpanded]
|
|
641
795
|
])
|
|
642
796
|
]),
|
|
643
797
|
_: 2
|
|
644
798
|
}, 1024),
|
|
645
|
-
|
|
799
|
+
e.isEditMode ? (l(), j(G(_t), {
|
|
646
800
|
key: 0,
|
|
647
801
|
fontFamily: "Poppins-Regular",
|
|
648
802
|
labelFontSize: "14px",
|
|
649
|
-
"model-value":
|
|
650
|
-
"onUpdate:modelValue": (
|
|
651
|
-
}, null, 8, ["model-value", "onUpdate:modelValue"])) :
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
l("
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
803
|
+
"model-value": s.isSelected,
|
|
804
|
+
"onUpdate:modelValue": (v) => A(v, s)
|
|
805
|
+
}, null, 8, ["model-value", "onUpdate:modelValue"])) : k("", !0),
|
|
806
|
+
t("div", ae, [
|
|
807
|
+
t("div", ne, r(s.position), 1),
|
|
808
|
+
(l(), a("svg", {
|
|
809
|
+
width: "20",
|
|
810
|
+
height: "20",
|
|
811
|
+
viewBox: "0 0 20 20",
|
|
812
|
+
fill: "none",
|
|
813
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
814
|
+
onClick: (v) => Z(s)
|
|
815
|
+
}, fe, 8, de)),
|
|
816
|
+
t("div", ve, [
|
|
817
|
+
t("div", null, [
|
|
818
|
+
t("img", {
|
|
819
|
+
src: s.player_photo,
|
|
820
|
+
alt: "player photo"
|
|
821
|
+
}, null, 8, he)
|
|
822
|
+
])
|
|
823
|
+
]),
|
|
824
|
+
t("div", pe, r(s.player_name), 1)
|
|
658
825
|
]),
|
|
659
|
-
|
|
826
|
+
t("div", _e, [
|
|
827
|
+
(l(), a("svg", {
|
|
828
|
+
class: h(["_arrowExpandIcon_6ak64_1115 _rotate_6ak64_5", { expanded: s.isExpanded }]),
|
|
829
|
+
width: "12",
|
|
830
|
+
height: "8",
|
|
831
|
+
viewBox: "0 0 12 8",
|
|
832
|
+
fill: "#D9D9D9",
|
|
833
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
834
|
+
onClick: (v) => N(s)
|
|
835
|
+
}, me, 10, be))
|
|
836
|
+
])
|
|
660
837
|
], 2))), 128))
|
|
661
838
|
]),
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
(
|
|
666
|
-
key: `i-${
|
|
839
|
+
t("div", ye, [
|
|
840
|
+
e.isGeneral ? (l(), a(R, { key: 0 }, [
|
|
841
|
+
Ce,
|
|
842
|
+
(l(!0), a(R, null, I(u.value, (s) => (l(), a("div", {
|
|
843
|
+
key: `i-${s.id}`,
|
|
667
844
|
class: "row scrollable-row"
|
|
668
845
|
}, [
|
|
669
|
-
|
|
670
|
-
class: h(["row team-info", { odd:
|
|
846
|
+
t("div", {
|
|
847
|
+
class: h(["row team-info", { odd: s.isOdd }])
|
|
671
848
|
}, [
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
src:
|
|
849
|
+
t("div", we, [
|
|
850
|
+
t("img", {
|
|
851
|
+
src: s.team_logo,
|
|
675
852
|
alt: "team logo"
|
|
676
|
-
}, null, 8,
|
|
853
|
+
}, null, 8, xe)
|
|
677
854
|
]),
|
|
678
|
-
|
|
855
|
+
t("div", ke, r(s.team_abrev), 1)
|
|
679
856
|
], 2),
|
|
680
|
-
|
|
681
|
-
class: h(["row data-info", { odd:
|
|
682
|
-
},
|
|
683
|
-
|
|
684
|
-
class: h(["row data-info", { odd:
|
|
685
|
-
},
|
|
686
|
-
|
|
687
|
-
class: h(["row data-info", { odd:
|
|
857
|
+
t("div", {
|
|
858
|
+
class: h(["row data-info", { odd: s.isOdd }])
|
|
859
|
+
}, r(s.player_position), 3),
|
|
860
|
+
t("div", {
|
|
861
|
+
class: h(["row data-info", { odd: s.isOdd }])
|
|
862
|
+
}, r(s.player_age), 3),
|
|
863
|
+
t("div", {
|
|
864
|
+
class: h(["row data-info", { odd: s.isOdd }])
|
|
688
865
|
}, [
|
|
689
|
-
|
|
690
|
-
src:
|
|
866
|
+
t("img", {
|
|
867
|
+
src: s.player_country_flag,
|
|
691
868
|
alt: "player country flag",
|
|
692
869
|
class: "country-flag"
|
|
693
|
-
}, null, 8,
|
|
870
|
+
}, null, 8, Se)
|
|
694
871
|
], 2),
|
|
695
|
-
|
|
696
|
-
class: h(["row data-info", { odd:
|
|
697
|
-
},
|
|
698
|
-
|
|
699
|
-
class: h(["row data-info", { odd:
|
|
700
|
-
},
|
|
701
|
-
|
|
702
|
-
class: h(["row data-info", { odd:
|
|
703
|
-
},
|
|
704
|
-
|
|
705
|
-
class: h(["row data-info", { odd:
|
|
872
|
+
t("div", {
|
|
873
|
+
class: h(["row data-info", { odd: s.isOdd }])
|
|
874
|
+
}, r(s.player_games), 3),
|
|
875
|
+
t("div", {
|
|
876
|
+
class: h(["row data-info", { odd: s.isOdd }])
|
|
877
|
+
}, r(s.player_min), 3),
|
|
878
|
+
t("div", {
|
|
879
|
+
class: h(["row data-info", { odd: s.isOdd }])
|
|
880
|
+
}, r(s.league_name), 3),
|
|
881
|
+
t("div", {
|
|
882
|
+
class: h(["row data-info", { odd: s.isOdd }])
|
|
706
883
|
}, [
|
|
707
|
-
|
|
884
|
+
H(G($t), {
|
|
708
885
|
icon: "https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png",
|
|
709
886
|
"icon-size": "13px",
|
|
710
887
|
"icon-position": "left",
|
|
@@ -717,35 +894,26 @@ const E = /* @__PURE__ */ ut(W, [["render", yt], ["__scopeId", "data-v-f3ee6b2b"
|
|
|
717
894
|
"border-color": "#55636e",
|
|
718
895
|
"text-value": "Ver videos",
|
|
719
896
|
"font-size": "10px",
|
|
720
|
-
onClick: (
|
|
897
|
+
onClick: (v) => g(s)
|
|
721
898
|
}, null, 8, ["onClick"])
|
|
722
899
|
], 2),
|
|
723
|
-
|
|
724
|
-
class: h(["row data-info", { odd:
|
|
725
|
-
},
|
|
726
|
-
(i(), s("svg", {
|
|
727
|
-
onClick: (p) => A(o),
|
|
728
|
-
class: "_arrowExpandIcon_6ak64_1115 _rotate_6ak64_5",
|
|
729
|
-
width: "12",
|
|
730
|
-
height: "8",
|
|
731
|
-
viewBox: "0 0 12 8",
|
|
732
|
-
fill: "#D9D9D9",
|
|
733
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
734
|
-
}, Yt, 8, Qt))
|
|
735
|
-
], 2)
|
|
900
|
+
t("div", {
|
|
901
|
+
class: h(["row data-info", { odd: s.isOdd }])
|
|
902
|
+
}, null, 2)
|
|
736
903
|
]))), 128))
|
|
737
|
-
], 64)) : (
|
|
904
|
+
], 64)) : (l(), j(Pt, {
|
|
738
905
|
key: 1,
|
|
739
906
|
ref_key: "scrollColumns",
|
|
740
|
-
ref:
|
|
741
|
-
"available-players":
|
|
742
|
-
"is-edit-mode":
|
|
743
|
-
|
|
907
|
+
ref: S,
|
|
908
|
+
"available-players": u.value,
|
|
909
|
+
"is-edit-mode": e.isEditMode,
|
|
910
|
+
onOnpenMedia: g,
|
|
911
|
+
onExpand: N
|
|
744
912
|
}, null, 8, ["available-players", "is-edit-mode"]))
|
|
745
913
|
])
|
|
746
914
|
], 4));
|
|
747
915
|
}
|
|
748
|
-
},
|
|
916
|
+
}, Be = /* @__PURE__ */ Q(Le, [["__scopeId", "data-v-dbafbc83"]]);
|
|
749
917
|
export {
|
|
750
|
-
|
|
918
|
+
Be as GSCTableScrollable
|
|
751
919
|
};
|