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