@golstats/gsc-table-scrollable 1.0.9 → 1.0.10
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 +1 @@
|
|
|
1
|
-
.checkbox[data-v-b6f124d8]{width:var(--7bd9d47b);height:var(--34dc7ddc);display:flex;justify-content:flex-start;align-items:flex-start;cursor:pointer}.checkbox__teams[data-v-b6f124d8]{margin-left:6px;display:flex}.checkbox__teams__logo[data-v-b6f124d8]{height:22px;width:22px;display:flex;justify-content:center;align-items:center;border-radius:50%;border:solid .5px #cbee6b;background-color:#0d1d29}.checkbox__teams__logo[data-v-b6f124d8]:first-child{transform:translate(8px)}.checkbox__teams__logo>img[data-v-b6f124d8]{height:18px;width:18px}.checkbox.box-right[data-v-b6f124d8]{flex-direction:row-reverse;justify-content:flex-end}.checkbox.box-top[data-v-b6f124d8]{flex-direction:column;justify-content:flex-start;align-items:center}.checkbox.box-bottom[data-v-b6f124d8]{flex-direction:column-reverse;justify-content:flex-end;align-items:center}.checkbox__box[data-v-b6f124d8]{display:flex;justify-content:center;align-items:center}.checkbox__label[data-v-b6f124d8]{margin:.3em 0;width:var(--7bd9d47b)}.button[data-v-f3ee6b2b],.button-active[data-v-f3ee6b2b]{display:inline-flex;justify-content:center;align-content:center;align-items:center;overflow:none;cursor:pointer!important}.button-target[data-v-f3ee6b2b]{display:inline-block;overflow:hidden;height:var(--9d01acb4);border-width:var(--14e95081)!important;border-style:var(--38fec285)!important;border-color:var(--34353510)!important;border-radius:var(--20d20dc6)!important;width:var(--17130967);background-color:var(--4ccb7d36);justify-content:center;align-content:center;align-items:center;overflow:none;cursor:pointer!important;cursor:var(--5d1e86a2)!important;font-size:var(--ce65d4a2)!important;font-style:var(--fe4ac47a)!important;font-family:var(--f98e44dc)!important}.stats[data-v-f3ee6b2b]{display:inline-flex;width:100%;padding-top:5px;justify-content:left;align-items:center;align-content:center;height:60%}.iconstats[data-v-f3ee6b2b]{width:14px;height:14px;margin-left:var(--93b87770)}.numstats[data-v-f3ee6b2b]{font-family:Poppins-SemiBold;color:#fff;font-size:var(--c7f7beba);margin-left:7px}.leyend[data-v-f3ee6b2b]{display:inline-flex;justify-content:center;align-items:center;align-content:center;font-family:Poppins-Regular;color:#a0a3a5;width:100%;height:15%}.text[data-v-f3ee6b2b],.icon[data-v-f3ee6b2b]{padding:0 4px}.arrow[data-v-
|
|
1
|
+
.checkbox[data-v-b6f124d8]{width:var(--7bd9d47b);height:var(--34dc7ddc);display:flex;justify-content:flex-start;align-items:flex-start;cursor:pointer}.checkbox__teams[data-v-b6f124d8]{margin-left:6px;display:flex}.checkbox__teams__logo[data-v-b6f124d8]{height:22px;width:22px;display:flex;justify-content:center;align-items:center;border-radius:50%;border:solid .5px #cbee6b;background-color:#0d1d29}.checkbox__teams__logo[data-v-b6f124d8]:first-child{transform:translate(8px)}.checkbox__teams__logo>img[data-v-b6f124d8]{height:18px;width:18px}.checkbox.box-right[data-v-b6f124d8]{flex-direction:row-reverse;justify-content:flex-end}.checkbox.box-top[data-v-b6f124d8]{flex-direction:column;justify-content:flex-start;align-items:center}.checkbox.box-bottom[data-v-b6f124d8]{flex-direction:column-reverse;justify-content:flex-end;align-items:center}.checkbox__box[data-v-b6f124d8]{display:flex;justify-content:center;align-items:center}.checkbox__label[data-v-b6f124d8]{margin:.3em 0;width:var(--7bd9d47b)}.button[data-v-f3ee6b2b],.button-active[data-v-f3ee6b2b]{display:inline-flex;justify-content:center;align-content:center;align-items:center;overflow:none;cursor:pointer!important}.button-target[data-v-f3ee6b2b]{display:inline-block;overflow:hidden;height:var(--9d01acb4);border-width:var(--14e95081)!important;border-style:var(--38fec285)!important;border-color:var(--34353510)!important;border-radius:var(--20d20dc6)!important;width:var(--17130967);background-color:var(--4ccb7d36);justify-content:center;align-content:center;align-items:center;overflow:none;cursor:pointer!important;cursor:var(--5d1e86a2)!important;font-size:var(--ce65d4a2)!important;font-style:var(--fe4ac47a)!important;font-family:var(--f98e44dc)!important}.stats[data-v-f3ee6b2b]{display:inline-flex;width:100%;padding-top:5px;justify-content:left;align-items:center;align-content:center;height:60%}.iconstats[data-v-f3ee6b2b]{width:14px;height:14px;margin-left:var(--93b87770)}.numstats[data-v-f3ee6b2b]{font-family:Poppins-SemiBold;color:#fff;font-size:var(--c7f7beba);margin-left:7px}.leyend[data-v-f3ee6b2b]{display:inline-flex;justify-content:center;align-items:center;align-content:center;font-family:Poppins-Regular;color:#a0a3a5;width:100%;height:15%}.text[data-v-f3ee6b2b],.icon[data-v-f3ee6b2b]{padding:0 4px}.arrow[data-v-9949c723]{cursor:pointer}.expanded[data-v-9949c723]{transform:rotate(180deg)}.scrollable-row-2[data-v-9949c723]{display:grid;grid-template-columns:var(--grid-template-columns);width:fit-content}.scrollable-row-totals[data-v-9949c723]{display:grid;grid-template-columns:var(--grid-template-columns-totals);width:fit-content;transition:all .3s ease}.titles[data-v-9949c723]{width:100%}.column-title-2[data-v-9949c723]{height:70px;width:fit-content;display:flex;justify-content:center;align-items:center;background-color:#1e3142;border-bottom:solid 1px rgba(255,255,255,.1);font-family:Poppins-Medium,sans-serif;font-size:12px;font-weight:500;font-stretch:normal;font-style:normal;line-height:1.67;letter-spacing:.2px;text-align:center;color:#f4f4f4;padding:0 17px}.row[data-v-9949c723]{height:72px;border-bottom:solid 1px rgba(255,255,255,.1);background-color:#111d28}.row.odd[data-v-9949c723]{background-color:#172531}.scroll-columns[data-v-9949c723]{display:flex;flex-direction:column;position:relative}.overlay[data-v-9949c723]{position:absolute;top:71px;left:0;right:0;bottom:0;background-color:#0009;z-index:1}.underline[data-v-9949c723]{text-decoration:underline;cursor:pointer}.data-info[data-v-9949c723]{display:flex;justify-content:center;align-items:center;font-family:Poppins-Medium,sans-serif;font-size:12px;font-weight:500;font-stretch:normal;font-style:normal;line-height:1.67;letter-spacing:.2px;text-align:left;color:#f4f4f4}.data-info>svg[data-v-9949c723]{cursor:pointer}.button[data-v-4899f6dd]{display:flex;flex-direction:row;justify-content:center;align-items:center;gap:8px;padding:2px 18px;border-radius:50px;border:solid 1px rgba(255,255,255,.2);background-color:#ffffff1a;cursor:pointer;font-family:Poppins-Medium,sans-serif;font-size:10px;font-weight:500;font-stretch:normal;font-style:normal;line-height:2.4;letter-spacing:normal;text-align:left;color:#fff}.button.green[data-v-4899f6dd]{border:solid 1px #cbee6b}svg[data-v-4899f6dd]{cursor:pointer}.arrow[data-v-4899f6dd]{cursor:pointer;transition:ease .3s;min-width:12px;align-self:center}.expanded[data-v-4899f6dd]{transform:rotate(180deg)}.country-flag[data-v-4899f6dd]{width:14px;height:auto}.team-info[data-v-4899f6dd]{display:flex;justify-content:center;align-items:center;gap:12px}.team-info>.team-logo[data-v-4899f6dd]{width:25px;height:25px}.team-info>.team-logo>img[data-v-4899f6dd]{width:25px;height:25px}.underline[data-v-4899f6dd]{text-decoration:underline}.data-info[data-v-4899f6dd]{display:flex;justify-content:center;align-items:center;font-family:Poppins-Medium,sans-serif;font-size:12px;font-weight:500;font-stretch:normal;font-style:normal;line-height:1.67;letter-spacing:.2px;text-align:left;color:#f4f4f4}.scrollable-row[data-v-4899f6dd]{display:grid;grid-template-columns:104px 100px 100px 100px 100px 100px 104px 114px 100px;transition:ease .3s}.titles[data-v-4899f6dd]{width:100%}.row[data-v-4899f6dd]{height:72px;border-bottom:solid 1px rgba(255,255,255,.1);background-color:#111d28}.row.odd[data-v-4899f6dd]{background-color:#172531}.column-title[data-v-4899f6dd]{height:70px;display:flex;justify-content:center;align-items:center;background-color:#1e3142;border-bottom:solid 1px rgba(255,255,255,.1);font-family:Poppins-Medium,sans-serif;font-size:12px;font-weight:500;font-stretch:normal;font-style:normal;line-height:1.67;letter-spacing:.2px;text-align:center;color:#f4f4f4}.details-row[data-v-4899f6dd]{width:var(--width-details);position:absolute;top:72px;left:0;z-index:1;background-color:#111d28;border-bottom:solid 1px rgba(255,255,255,.1)}.details-row>.container[data-v-4899f6dd]{width:calc(var(--width-details));padding:16px 0;display:flex;align-items:flex-start;justify-content:center;flex-wrap:wrap}.details-row>.container>div[data-v-4899f6dd]{margin-bottom:24px}.details-row__info[data-v-4899f6dd]{display:flex;align-items:flex-start;font-family:Poppins-Regular,sans-serif;font-weight:500;font-size:12px;color:#fff}.details-row__info>div[data-v-4899f6dd]{margin:0 40px}.details-row__info span.bold[data-v-4899f6dd]{font-family:Poppins-Medium,sans-serif}.details-row__buttons[data-v-4899f6dd]{display:flex;align-items:center;gap:16px;margin-left:40px}.details-row.odd[data-v-4899f6dd]{background-color:#172531}.static-row[data-v-4899f6dd]{display:grid;grid-template-columns:1fr min-content;column-gap:12px;padding-left:12px;position:relative;transition:all .3s ease}.static-row__info-player[data-v-4899f6dd]{display:flex;justify-content:flex-start;align-items:center;gap:var(--gap-static-row);overflow:hidden}.static-row__info-player>.position[data-v-4899f6dd]{font-family:Montserrat-SemiBold,sans-serif;font-size:12px;font-weight:600;font-stretch:normal;font-style:normal;line-height:1.67;letter-spacing:.2px;text-align:left;color:#f4f4f4}.static-row__info-player>.player-name[data-v-4899f6dd]{font-family:Poppins-Medium,sans-serif;font-size:12px;font-weight:500;font-stretch:normal;font-style:normal;line-height:1.67;letter-spacing:.2px;text-align:left;color:#f4f4f4;white-space:nowrap;overflow:hidden;flex-shrink:2}.player-photo[data-v-4899f6dd]{width:32px;height:32px;border-radius:50%;background-color:#fff}.player-photo>div[data-v-4899f6dd]{width:32px;height:32px;overflow:hidden;background-color:#fff;display:flex;justify-content:center;align-items:flex-start;border-radius:50%}.player-photo>div>img[data-v-4899f6dd]{width:auto;height:40px}.table[data-v-4899f6dd]{width:100%;height:fit-content;display:flex;justify-content:flex-start;align-items:flex-start}.table__static-column[data-v-4899f6dd]{width:var(--width-static-column);min-width:var(--width-static-column);background-color:#1e3142}.table__scrollable-columns[data-v-4899f6dd]{width:100%;overflow-x:scroll}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useCssVars as tt, ref as
|
|
1
|
+
import { useCssVars as tt, ref as b, computed as V, watch as F, createElementBlock as n, openBlock as l, normalizeClass as _, createElementVNode as t, createCommentVNode as S, normalizeStyle as L, 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
2
|
const _t = (o, r) => {
|
|
3
3
|
const s = o.__vccOpts || o;
|
|
4
4
|
for (const [c, p] of r)
|
|
@@ -128,7 +128,7 @@ const _t = (o, r) => {
|
|
|
128
128
|
"7bd9d47b": o.width,
|
|
129
129
|
"34dc7ddc": o.height
|
|
130
130
|
}));
|
|
131
|
-
const c =
|
|
131
|
+
const c = b(!1), p = V(() => {
|
|
132
132
|
const v = {
|
|
133
133
|
color: s.boxValueColor,
|
|
134
134
|
"font-family": s.fontFamily,
|
|
@@ -161,25 +161,25 @@ const _t = (o, r) => {
|
|
|
161
161
|
},
|
|
162
162
|
{ immediate: !0 }
|
|
163
163
|
);
|
|
164
|
-
function
|
|
164
|
+
function $() {
|
|
165
165
|
s.avoidInteraction || !c.value && s.avoidToCheck || (c.value = !c.value, r("update:modelValue", c.value));
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function B(v) {
|
|
168
168
|
return `${{}.TEAM_LOGOS_URL || "https://golstatsimages.blob.core.windows.net/teams-80/"}${v}.png`;
|
|
169
169
|
}
|
|
170
170
|
return (v, M) => (l(), n("div", {
|
|
171
171
|
class: _(["checkbox", `box-${o.boxPosition}`]),
|
|
172
|
-
onClick:
|
|
172
|
+
onClick: $
|
|
173
173
|
}, [
|
|
174
174
|
t("div", {
|
|
175
175
|
class: "checkbox__box",
|
|
176
|
-
style:
|
|
176
|
+
style: L(p.value)
|
|
177
177
|
}, [
|
|
178
178
|
c.value ? (l(), n(I, { key: 0 }, [
|
|
179
179
|
s.boxValue ? (l(), n("div", {
|
|
180
180
|
key: 0,
|
|
181
181
|
class: "checkbox__box__value",
|
|
182
|
-
style:
|
|
182
|
+
style: L(h.value)
|
|
183
183
|
}, f(o.boxValue), 5)) : (l(), n("div", mt, [
|
|
184
184
|
(l(), n("svg", bt, [
|
|
185
185
|
t("path", {
|
|
@@ -188,25 +188,25 @@ const _t = (o, r) => {
|
|
|
188
188
|
}, null, 8, Ct)
|
|
189
189
|
]))
|
|
190
190
|
]))
|
|
191
|
-
], 64)) :
|
|
191
|
+
], 64)) : S("", !0)
|
|
192
192
|
], 4),
|
|
193
193
|
o.teamsIds && o.teamsIds.length ? (l(), n("div", yt, [
|
|
194
194
|
t("div", wt, [
|
|
195
195
|
t("img", {
|
|
196
|
-
src:
|
|
196
|
+
src: B(o.teamsIds[0]),
|
|
197
197
|
alt: ""
|
|
198
198
|
}, null, 8, kt)
|
|
199
199
|
]),
|
|
200
200
|
t("div", xt, [
|
|
201
201
|
t("img", {
|
|
202
|
-
src:
|
|
202
|
+
src: B(o.teamsIds[1]),
|
|
203
203
|
alt: ""
|
|
204
204
|
}, null, 8, St)
|
|
205
205
|
])
|
|
206
|
-
])) :
|
|
206
|
+
])) : S("", !0),
|
|
207
207
|
t("div", {
|
|
208
208
|
class: "checkbox__label",
|
|
209
|
-
style:
|
|
209
|
+
style: L(y.value)
|
|
210
210
|
}, f(o.label), 5)
|
|
211
211
|
], 2));
|
|
212
212
|
}
|
|
@@ -319,23 +319,23 @@ function Pt(o, r, s, c, p, h) {
|
|
|
319
319
|
s.type == 0 ? (l(), n("div", {
|
|
320
320
|
key: 0,
|
|
321
321
|
class: _(["button", p.status && s.typeOnOff && "button-active"]),
|
|
322
|
-
style:
|
|
322
|
+
style: L([h.customStyle, p.status && s.typeOnOff && h.customActive]),
|
|
323
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:
|
|
328
|
+
style: L({ width: s.iconSize }),
|
|
329
329
|
src: s.icon
|
|
330
|
-
}, null, 12, Vt)) :
|
|
331
|
-
s.textValue ? (l(), n("div", It, f(s.textValue), 1)) :
|
|
330
|
+
}, null, 12, Vt)) : S("", !0),
|
|
331
|
+
s.textValue ? (l(), n("div", It, f(s.textValue), 1)) : S("", !0),
|
|
332
332
|
s.icon && s.iconPosition.toLowerCase() === "right" ? (l(), n("img", {
|
|
333
333
|
key: 2,
|
|
334
334
|
class: "icon",
|
|
335
|
-
style:
|
|
335
|
+
style: L({ width: s.iconSize }),
|
|
336
336
|
src: s.icon
|
|
337
|
-
}, null, 12, Rt)) :
|
|
338
|
-
], 6)) :
|
|
337
|
+
}, null, 12, Rt)) : S("", !0)
|
|
338
|
+
], 6)) : S("", !0),
|
|
339
339
|
s.type == 1 ? (l(), n("div", {
|
|
340
340
|
key: 1,
|
|
341
341
|
class: "button-target",
|
|
@@ -346,7 +346,7 @@ function Pt(o, r, s, c, p, h) {
|
|
|
346
346
|
t("div", Ot, f(s.textStat), 1)
|
|
347
347
|
]),
|
|
348
348
|
t("div", Ft, f(s.textCategory), 1)
|
|
349
|
-
])) :
|
|
349
|
+
])) : S("", !0)
|
|
350
350
|
]);
|
|
351
351
|
}
|
|
352
352
|
const zt = /* @__PURE__ */ Bt(W, [["render", Pt], ["__scopeId", "data-v-f3ee6b2b"]]), ot = (o, r) => {
|
|
@@ -354,7 +354,7 @@ const zt = /* @__PURE__ */ Bt(W, [["render", Pt], ["__scopeId", "data-v-f3ee6b2b
|
|
|
354
354
|
for (const [c, p] of r)
|
|
355
355
|
s[c] = p;
|
|
356
356
|
return s;
|
|
357
|
-
}, Dt = (o) => (D("data-v-
|
|
357
|
+
}, Dt = (o) => (D("data-v-9949c723"), 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 = {
|
|
@@ -371,16 +371,16 @@ const zt = /* @__PURE__ */ Bt(W, [["render", Pt], ["__scopeId", "data-v-f3ee6b2b
|
|
|
371
371
|
},
|
|
372
372
|
emits: ["expand", "open-media"],
|
|
373
373
|
setup(o, { expose: r, emit: s }) {
|
|
374
|
-
const c = o, p =
|
|
375
|
-
|
|
376
|
-
const
|
|
374
|
+
const c = o, p = b(null), h = b(null), y = b(0);
|
|
375
|
+
b(!1);
|
|
376
|
+
const $ = V(() => {
|
|
377
377
|
const a = c.availablePlayers[0];
|
|
378
378
|
return a ? a.stats : [];
|
|
379
|
-
}),
|
|
380
|
-
const a = `repeat(${
|
|
379
|
+
}), B = V(() => {
|
|
380
|
+
const a = `repeat(${$.value.length}, max-content) 36px`;
|
|
381
381
|
let g = "";
|
|
382
|
-
return y.value > 0 && document.querySelectorAll(".column-title-2").forEach((
|
|
383
|
-
g += `${
|
|
382
|
+
return y.value > 0 && document.querySelectorAll(".column-title-2").forEach((w) => {
|
|
383
|
+
g += `${w.offsetWidth}px `;
|
|
384
384
|
}), {
|
|
385
385
|
"--grid-template-columns": a,
|
|
386
386
|
"--grid-template-columns-totals": g || a
|
|
@@ -389,14 +389,14 @@ const zt = /* @__PURE__ */ Bt(W, [["render", Pt], ["__scopeId", "data-v-f3ee6b2b
|
|
|
389
389
|
function v() {
|
|
390
390
|
p.value = new ResizeObserver((a) => {
|
|
391
391
|
for (const g of a) {
|
|
392
|
-
const { width:
|
|
393
|
-
y.value =
|
|
392
|
+
const { width: C } = g.contentRect;
|
|
393
|
+
y.value = C;
|
|
394
394
|
}
|
|
395
395
|
}), p.value.observe(h.value);
|
|
396
396
|
}
|
|
397
397
|
function M(a, g) {
|
|
398
|
-
const
|
|
399
|
-
|
|
398
|
+
const w = document.querySelectorAll(".scrollable-row-totals")[a + 1];
|
|
399
|
+
w && (w.style.marginTop = `${g}px`);
|
|
400
400
|
}
|
|
401
401
|
function R({ player: a, stat: g }) {
|
|
402
402
|
!g.total || g === "0%" || !g.seasons || !g.seasons.length || s("open-media", { ...a, stat: g });
|
|
@@ -407,33 +407,33 @@ const zt = /* @__PURE__ */ Bt(W, [["render", Pt], ["__scopeId", "data-v-f3ee6b2b
|
|
|
407
407
|
setMarginTopDetails: M
|
|
408
408
|
}), (a, g) => (l(), n("div", {
|
|
409
409
|
class: "scroll-columns",
|
|
410
|
-
style:
|
|
410
|
+
style: L(B.value)
|
|
411
411
|
}, [
|
|
412
|
-
o.isEditMode ? (l(), n("div", At)) :
|
|
412
|
+
o.isEditMode ? (l(), n("div", At)) : S("", !0),
|
|
413
413
|
t("div", {
|
|
414
414
|
ref_key: "titlesRow",
|
|
415
415
|
ref: h,
|
|
416
416
|
class: "scrollable-row-2"
|
|
417
417
|
}, [
|
|
418
|
-
(l(!0), n(I, null, E(
|
|
419
|
-
key: `t-${
|
|
418
|
+
(l(!0), n(I, null, E($.value, (C, w) => (l(), n("div", {
|
|
419
|
+
key: `t-${w}`,
|
|
420
420
|
class: "column-title-2"
|
|
421
|
-
}, f(
|
|
421
|
+
}, f(C.name), 1))), 128)),
|
|
422
422
|
Wt
|
|
423
423
|
], 512),
|
|
424
|
-
(l(!0), n(I, null, E(o.availablePlayers, (
|
|
425
|
-
key: `i-${
|
|
424
|
+
(l(!0), n(I, null, E(o.availablePlayers, (C, w) => (l(), n("div", {
|
|
425
|
+
key: `i-${C.id}`,
|
|
426
426
|
class: "row scrollable-row-totals"
|
|
427
427
|
}, [
|
|
428
|
-
(l(!0), n(I, null, E(
|
|
429
|
-
key:
|
|
430
|
-
class: _(["row data-info", { odd:
|
|
431
|
-
onClick: (Z) => R({ player:
|
|
432
|
-
}, f(
|
|
428
|
+
(l(!0), n(I, null, E(C.stats, (k) => (l(), n("div", {
|
|
429
|
+
key: k.category_id,
|
|
430
|
+
class: _(["row data-info", { odd: w % 2 !== 0, underline: !!k.total && k.total !== "0%" && k.seasons && k.seasons.length }]),
|
|
431
|
+
onClick: (Z) => R({ player: C, stat: k })
|
|
432
|
+
}, f(k.total), 11, Zt))), 128))
|
|
433
433
|
]))), 128))
|
|
434
434
|
], 4));
|
|
435
435
|
}
|
|
436
|
-
}, Ht = /* @__PURE__ */ ot(jt, [["__scopeId", "data-v-
|
|
436
|
+
}, Ht = /* @__PURE__ */ ot(jt, [["__scopeId", "data-v-9949c723"]]), m = (o) => (D("data-v-4899f6dd"), 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",
|
|
@@ -586,7 +586,7 @@ const zt = /* @__PURE__ */ Bt(W, [["render", Pt], ["__scopeId", "data-v-f3ee6b2b
|
|
|
586
586
|
fill: "#D9D9D9"
|
|
587
587
|
}, null, -1)), Fe = [
|
|
588
588
|
Oe
|
|
589
|
-
], Pe = /* @__PURE__ */ gt('<div class="titles scrollable-row" data-v-
|
|
589
|
+
], Pe = /* @__PURE__ */ gt('<div class="titles scrollable-row" data-v-4899f6dd><div class="column-title" data-v-4899f6dd>Equipo</div><div class="column-title" data-v-4899f6dd>Posición</div><div class="column-title" data-v-4899f6dd>Edad</div><div class="column-title" data-v-4899f6dd>País</div><div class="column-title" data-v-4899f6dd>Partidos Jugados</div><div class="column-title" data-v-4899f6dd>Minutos Jugados</div><div class="column-title" data-v-4899f6dd>Liga</div><div class="column-title" data-v-4899f6dd>Videos</div><div class="column-title" data-v-4899f6dd></div></div>', 1), ze = { class: "team-logo" }, De = ["src"], Ae = { class: "team-name data-info" }, We = ["src"], Ze = {
|
|
590
590
|
__name: "GSC-TableScrollable",
|
|
591
591
|
props: {
|
|
592
592
|
players: {
|
|
@@ -616,13 +616,13 @@ const zt = /* @__PURE__ */ Bt(W, [["render", Pt], ["__scopeId", "data-v-f3ee6b2b
|
|
|
616
616
|
setup(o, { emit: r }) {
|
|
617
617
|
const s = o;
|
|
618
618
|
let c = null, p = null;
|
|
619
|
-
const h =
|
|
620
|
-
|
|
621
|
-
const R =
|
|
622
|
-
"--width-details": `${
|
|
623
|
-
"--gap-static-row": `${
|
|
624
|
-
"--width-static-column": `${
|
|
625
|
-
})),
|
|
619
|
+
const h = b([]), y = b(null), $ = b(null), B = b(0), v = b(0), M = b(-1);
|
|
620
|
+
b(!1);
|
|
621
|
+
const R = b(null), a = b(null), g = V(() => ({
|
|
622
|
+
"--width-details": `${B.value}px`,
|
|
623
|
+
"--gap-static-row": `${C.value ? "8px" : "18px"}`,
|
|
624
|
+
"--width-static-column": `${C.value ? "50%" : "256px"}`
|
|
625
|
+
})), C = V(() => B.value < 600);
|
|
626
626
|
F(
|
|
627
627
|
() => s.players,
|
|
628
628
|
(e) => {
|
|
@@ -650,15 +650,15 @@ const zt = /* @__PURE__ */ Bt(W, [["render", Pt], ["__scopeId", "data-v-f3ee6b2b
|
|
|
650
650
|
v,
|
|
651
651
|
(e) => {
|
|
652
652
|
const i = document.querySelectorAll(".static-row")[M.value + 1];
|
|
653
|
-
i && (i.style.marginTop = `${e}px`), s.isGeneral ?
|
|
653
|
+
i && (i.style.marginTop = `${e}px`), s.isGeneral ? w(M.value, e) : $.value && $.value.setMarginTopDetails(M.value, e), e === 0 && R.value && N(R.value);
|
|
654
654
|
}
|
|
655
655
|
);
|
|
656
|
-
function
|
|
656
|
+
function w(e, d) {
|
|
657
657
|
const u = document.querySelectorAll(".scrollable-row")[e + 2];
|
|
658
658
|
u && (u.style.marginTop = `${d}px`);
|
|
659
659
|
}
|
|
660
|
-
function
|
|
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,
|
|
660
|
+
function k(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, x = {
|
|
662
662
|
isFeaturedPlayers: !1,
|
|
663
663
|
mainSectionType: 1,
|
|
664
664
|
playListType: 2,
|
|
@@ -682,14 +682,14 @@ const zt = /* @__PURE__ */ Bt(W, [["render", Pt], ["__scopeId", "data-v-f3ee6b2b
|
|
|
682
682
|
const z = [
|
|
683
683
|
...e.stat && e.stat.seasons && e.stat.seasons.length ? e.stat.seasons : e.seasons
|
|
684
684
|
];
|
|
685
|
-
z.sort((rt, ct) => rt - ct),
|
|
686
|
-
} else (e.season_id || e.seasonId) && (
|
|
687
|
-
e.stat ? e.stat.category_id ?
|
|
685
|
+
z.sort((rt, ct) => rt - ct), x.seasonId = z.shift(), x.seasonsIds = z;
|
|
686
|
+
} else (e.season_id || e.seasonId) && (x.seasonId = e.season_id || e.seasonId);
|
|
687
|
+
e.stat ? e.stat.category_id ? x.categoryIds = e.stat.category_id : e.stat.custom_category_id && (x.customCategoryIds = [e.stat.custom_category_id]) : x.categoryIds = it(e.player_position), r("open-media", x);
|
|
688
688
|
}
|
|
689
689
|
function Z() {
|
|
690
690
|
c = new ResizeObserver((e) => {
|
|
691
691
|
for (const d of e)
|
|
692
|
-
|
|
692
|
+
B.value = d.contentRect.width;
|
|
693
693
|
}), c.observe(y.value);
|
|
694
694
|
}
|
|
695
695
|
function st(e) {
|
|
@@ -767,7 +767,7 @@ const zt = /* @__PURE__ */ Bt(W, [["render", Pt], ["__scopeId", "data-v-f3ee6b2b
|
|
|
767
767
|
e.isExpanded = !1, R.value = null;
|
|
768
768
|
return;
|
|
769
769
|
}
|
|
770
|
-
const d = h.value.find((
|
|
770
|
+
const d = h.value.find((x) => x.isExpanded);
|
|
771
771
|
if (d && (d.isExpanded = !1), d) {
|
|
772
772
|
R.value = e;
|
|
773
773
|
return;
|
|
@@ -796,7 +796,7 @@ const zt = /* @__PURE__ */ Bt(W, [["render", Pt], ["__scopeId", "data-v-f3ee6b2b
|
|
|
796
796
|
class: "table",
|
|
797
797
|
ref_key: "tableSC",
|
|
798
798
|
ref: y,
|
|
799
|
-
style:
|
|
799
|
+
style: L(g.value)
|
|
800
800
|
}, [
|
|
801
801
|
t("div", Nt, [
|
|
802
802
|
Gt,
|
|
@@ -842,7 +842,7 @@ const zt = /* @__PURE__ */ Bt(W, [["render", Pt], ["__scopeId", "data-v-f3ee6b2b
|
|
|
842
842
|
]),
|
|
843
843
|
t("div", {
|
|
844
844
|
class: "details-row__buttons",
|
|
845
|
-
style:
|
|
845
|
+
style: L(C.value ? "margin-left: 0; gap: 8px;" : "")
|
|
846
846
|
}, [
|
|
847
847
|
t("div", {
|
|
848
848
|
role: "button",
|
|
@@ -879,7 +879,7 @@ const zt = /* @__PURE__ */ Bt(W, [["render", Pt], ["__scopeId", "data-v-f3ee6b2b
|
|
|
879
879
|
labelFontSize: "14px",
|
|
880
880
|
"model-value": i.isSelected,
|
|
881
881
|
"onUpdate:modelValue": (u) => lt(u, i)
|
|
882
|
-
}, null, 8, ["model-value", "onUpdate:modelValue"])) :
|
|
882
|
+
}, null, 8, ["model-value", "onUpdate:modelValue"])) : S("", !0),
|
|
883
883
|
t("div", me, [
|
|
884
884
|
t("div", be, f(i.position), 1),
|
|
885
885
|
o.isTableFromList ? (l(), n("svg", {
|
|
@@ -984,7 +984,7 @@ const zt = /* @__PURE__ */ Bt(W, [["render", Pt], ["__scopeId", "data-v-f3ee6b2b
|
|
|
984
984
|
"border-color": "#55636e",
|
|
985
985
|
"text-value": "Ver videos",
|
|
986
986
|
"font-size": "10px",
|
|
987
|
-
onClick: (u) =>
|
|
987
|
+
onClick: (u) => k(i)
|
|
988
988
|
}, null, 8, ["onClick"])
|
|
989
989
|
], 2),
|
|
990
990
|
t("div", {
|
|
@@ -994,15 +994,15 @@ const zt = /* @__PURE__ */ Bt(W, [["render", Pt], ["__scopeId", "data-v-f3ee6b2b
|
|
|
994
994
|
], 64)) : (l(), X(Ht, {
|
|
995
995
|
key: 1,
|
|
996
996
|
ref_key: "scrollColumns",
|
|
997
|
-
ref:
|
|
997
|
+
ref: $,
|
|
998
998
|
"available-players": h.value,
|
|
999
999
|
"is-edit-mode": o.isEditMode,
|
|
1000
|
-
onOpenMedia:
|
|
1000
|
+
onOpenMedia: k
|
|
1001
1001
|
}, null, 8, ["available-players", "is-edit-mode"]))
|
|
1002
1002
|
], 512)
|
|
1003
1003
|
], 4));
|
|
1004
1004
|
}
|
|
1005
|
-
}, He = /* @__PURE__ */ ot(Ze, [["__scopeId", "data-v-
|
|
1005
|
+
}, He = /* @__PURE__ */ ot(Ze, [["__scopeId", "data-v-4899f6dd"]]);
|
|
1006
1006
|
export {
|
|
1007
1007
|
He as GSCTableScrollable
|
|
1008
1008
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(w,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(w=typeof globalThis<"u"?globalThis:w||self,e(w.GSCTableScrollable={},w.Vue))})(this,function(w,e){"use strict";const P=(o,a)=>{const l=o.__vccOpts||o;for(const[r,f]of a)l[r]=f;return l},A={key:1},W={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},j=["fill"],Z={key:0,class:"checkbox__teams"},H={class:"checkbox__teams__logo"},G=["src"],U={class:"checkbox__teams__logo"},q=["src"],v={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelWhiteSpace:{type:String,default:"normal"},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(o){return["left","right","top","bottom"].includes(o)}},boxMarginTop:{type:String,default:"0.2em"},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1},avoidToCheck:{type:Boolean,default:!1},isBoxOnly:{type:Boolean,default:!1},teamsIds:{type:Array,default:()=>null}},emits:["update:modelValue"],setup(o,{emit:a}){const l=o;e.useCssVars(m=>({"7bd9d47b":o.width,"34dc7ddc":o.height}));const r=e.ref(!1),f=e.computed(()=>{const m={color:l.boxValueColor,"font-family":l.fontFamily,height:l.boxWidthAndHeight,width:l.boxWidthAndHeight,minWidth:l.boxWidthAndHeight,"border-radius":l.boxBorderRadius,"margin-top":l.boxMarginTop};return r.value?(m["background-color"]=l.boxBackgroundColor,m.border=`solid ${l.boxBorderWidth} ${l.boxBackgroundColor}`):m.border=`solid ${l.boxBorderWidth} ${l.boxBorderColor}`,m}),c=e.computed(()=>({"font-family":l.boxValueFontFamily,"font-size":l.boxValueFontSize,color:l.boxValueColor,"line-height":1})),g=e.computed(()=>{const m={color:l.labelColor,"font-family":l.fontFamily,"font-size":l.labelFontSize,"white-space":l.labelWhiteSpace,"text-align":l.boxPosition==="top"||l.boxPosition==="bottom"?"center":l.boxPosition};return(l.boxPosition==="left"||l.boxPosition==="right")&&(m[`margin-${l.boxPosition}`]=l.isBoxOnly?"0":l.teamsIds?"8px":"10px"),m});e.watch(()=>l.modelValue,m=>{m!==r.value&&(r.value=m)},{immediate:!0});function b(){l.avoidInteraction||!r.value&&l.avoidToCheck||(r.value=!r.value,a("update:modelValue",r.value))}function y(m){return`${{}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/"}${m}.png`}return(m,E)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["checkbox",`box-${o.boxPosition}`]),onClick:b},[e.createElementVNode("div",{class:"checkbox__box",style:e.normalizeStyle(f.value)},[r.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[l.boxValue?(e.openBlock(),e.createElementBlock("div",{key:0,class:"checkbox__box__value",style:e.normalizeStyle(c.value)},e.toDisplayString(o.boxValue),5)):(e.openBlock(),e.createElementBlock("div",A,[(e.openBlock(),e.createElementBlock("svg",W,[e.createElementVNode("path",{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",fill:o.boxValueColor},null,8,j)]))]))],64)):e.createCommentVNode("",!0)],4),o.teamsIds&&o.teamsIds.length?(e.openBlock(),e.createElementBlock("div",Z,[e.createElementVNode("div",H,[e.createElementVNode("img",{src:y(o.teamsIds[0]),alt:""},null,8,G)]),e.createElementVNode("div",U,[e.createElementVNode("img",{src:y(o.teamsIds[1]),alt:""},null,8,q)])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"checkbox__label",style:e.normalizeStyle(g.value)},e.toDisplayString(o.label),5)],2))}},J=P(v,[["__scopeId","data-v-b6f124d8"]]),X=(o,a)=>{const l=o.__vccOpts||o;for(const[r,f]of a)l[r]=f;return l},V={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(o){this.status=o}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(o){this.$emit("click",o),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},L=()=>{e.useCssVars(o=>({"9d01acb4":o.height,"14e95081":o.borderWidthBtn,"38fec285":o.borderType,34353510:o.borderColor,"20d20dc6":o.borderRadius,17130967:o.width,"4ccb7d36":o.backgroundColor,"5d1e86a2":o.cursorType,ce65d4a2:o.fontSize,fe4ac47a:o.fontStyle,f98e44dc:o.fontFamily,"93b87770":o.marginLeftStat,c7f7beba:o.fontSizeStat}))},z=V.setup;V.setup=z?(o,a)=>(L(),z(o,a)):L;const K=o=>(e.pushScopeId("data-v-f3ee6b2b"),o=o(),e.popScopeId(),o),Q=["src"],Y={key:1,class:"text"},ee=["src"],te={class:"stats"},oe=K(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),le={class:"numstats"},se={class:"leyend"};function ne(o,a,l,r,f,c){return e.openBlock(),e.createElementBlock("div",null,[l.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button",f.status&&l.typeOnOff&&"button-active"]),style:e.normalizeStyle([c.customStyle,f.status&&l.typeOnOff&&c.customActive]),onClick:a[0]||(a[0]=(...g)=>c.btnClick&&c.btnClick(...g))},[l.icon&&l.iconPosition.toLowerCase()==="left"?(e.openBlock(),e.createElementBlock("img",{key:0,class:"icon",style:e.normalizeStyle({width:l.iconSize}),src:l.icon},null,12,Q)):e.createCommentVNode("",!0),l.textValue?(e.openBlock(),e.createElementBlock("div",Y,e.toDisplayString(l.textValue),1)):e.createCommentVNode("",!0),l.icon&&l.iconPosition.toLowerCase()==="right"?(e.openBlock(),e.createElementBlock("img",{key:2,class:"icon",style:e.normalizeStyle({width:l.iconSize}),src:l.icon},null,12,ee)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),l.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...g)=>c.btnClick&&c.btnClick(...g))},[e.createElementVNode("div",te,[oe,e.createElementVNode("div",le,e.toDisplayString(l.textStat),1)]),e.createElementVNode("div",se,e.toDisplayString(l.textCategory),1)])):e.createCommentVNode("",!0)])}const ie=X(V,[["render",ne],["__scopeId","data-v-f3ee6b2b"]]),$=(o,a)=>{const l=o.__vccOpts||o;for(const[r,f]of a)l[r]=f;return l},ae=o=>(e.pushScopeId("data-v-d03b93c8"),o=o(),e.popScopeId(),o),re={key:0,class:"overlay"},de=ae(()=>e.createElementVNode("div",{class:"column-title-2"},null,-1)),ce=["onClick"],me=$({__name:"ScrollColumns",props:{availablePlayers:{type:Array,default:()=>[]},isEditMode:{type:Boolean,default:!1}},emits:["expand","open-media"],setup(o,{expose:a,emit:l}){const r=o,f=e.ref(null),c=e.ref(null),g=e.ref(0);e.ref(!1);const b=e.computed(()=>{const n=r.availablePlayers[0];return n?n.stats:[]}),y=e.computed(()=>{const n=`repeat(${b.value.length}, max-content) 36px`;let h="";return g.value>0&&document.querySelectorAll(".column-title-2").forEach(C=>{h+=`${C.offsetWidth}px `}),{"--grid-template-columns":n,"--grid-template-columns-totals":h||n}});function m(){f.value=new ResizeObserver(n=>{for(const h of n){const{width:_}=h.contentRect;g.value=_}}),f.value.observe(c.value)}function E(n,h){const C=document.querySelectorAll(".scrollable-row-totals")[n+1];C&&(C.style.marginTop=`${h}px`)}function S({player:n,stat:h}){!h.total||h==="0%"||!h.seasons||!h.seasons.length||l("open-media",{...n,stat:h})}return e.onMounted(()=>{m()}),a({setMarginTopDetails:E}),(n,h)=>(e.openBlock(),e.createElementBlock("div",{class:"scroll-columns",style:e.normalizeStyle(y.value)},[o.isEditMode?(e.openBlock(),e.createElementBlock("div",re)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"titlesRow",ref:c,class:"scrollable-row-2"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,_=>(e.openBlock(),e.createElementBlock("div",{key:`t-${_.category_id}`,class:"column-title-2"},e.toDisplayString(_.name),1))),128)),de],512),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.availablePlayers,(_,C)=>(e.openBlock(),e.createElementBlock("div",{key:`i-${_.id}`,class:"row scrollable-row-totals"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.stats,k=>(e.openBlock(),e.createElementBlock("div",{key:k.category_id,class:e.normalizeClass(["row data-info",{odd:C%2!==0,underline:!!k.total&&k.total!=="0%"&&k.seasons&&k.seasons.length}]),onClick:T=>S({player:_,stat:k})},e.toDisplayString(k.total),11,ce))),128))]))),128))],4))}},[["__scopeId","data-v-d03b93c8"]]),p=o=>(e.pushScopeId("data-v-ef3c543d"),o=o(),e.popScopeId(),o),fe={class:"table__static-column"},pe=p(()=>e.createElementVNode("div",{class:"static-title column-title"},null,-1)),he={class:"container"},_e={class:"details-row__info"},ge={class:"details-row__info__personal"},ke={class:"bold"},ue={class:"bold"},be={class:"bold"},ye={class:"bold"},Ce={class:"details-row__info__games"},we={class:"bold"},Ee={class:"bold"},Se=["onClick"],xe=[p(()=>e.createElementVNode("div",null,"Ver gráfica",-1)),p(()=>e.createElementVNode("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("g",{"clip-path":"url(#clip0_3514_71971)"},[e.createElementVNode("path",{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",fill:"white"})]),e.createElementVNode("defs",null,[e.createElementVNode("clipPath",{id:"clip0_3514_71971"},[e.createElementVNode("rect",{width:"16",height:"16",fill:"white",transform:"translate(0.5)"})])])],-1))],Ve=["onClick"],Be=[p(()=>e.createElementVNode("div",null,"Eliminar de lista",-1)),p(()=>e.createElementVNode("svg",{width:"17",height:"15",viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{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",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{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",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M18.332 8.16663H13.332",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1))],Ne=["onClick"],Le=[p(()=>e.createElementVNode("div",null,"Agregar a lista",-1)),p(()=>e.createElementVNode("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{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",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{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",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"})],-1))],ze=["onClick"],$e=[p(()=>e.createElementVNode("div",null,"Ver perfil",-1))],Te={class:"static-row__info-player"},Ie={class:"position"},Me=["onClick"],De=[p(()=>e.createElementVNode("path",{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",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),p(()=>e.createElementVNode("path",{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",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),p(()=>e.createElementVNode("path",{d:"M18.332 8.16663H13.332",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1))],Fe=["onClick"],Re=[p(()=>e.createElementVNode("path",{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",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),p(()=>e.createElementVNode("path",{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",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),p(()=>e.createElementVNode("path",{d:"M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1))],Oe={class:"player-photo"},Pe=["src"],Ae={class:"player-name"},We={class:"arrow"},je=["onClick"],Ze=[p(()=>e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",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",fill:"#D9D9D9"},null,-1))],He=e.createStaticVNode('<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),Ge={class:"team-logo"},Ue=["src"],qe={class:"team-name data-info"},ve=["src"],Je=$({__name:"GSC-TableScrollable",props:{players:{type:Array,default:()=>[]},isGeneral:{type:Boolean,default:!0},isEditMode:{type:Boolean,default:!1},isTableFromList:{type:Boolean,default:!1}},emits:["change-selected-players","view-profile","add-to-list","view-graph","open-media"],setup(o,{emit:a}){const l=o;let r=null,f=null;const c=e.ref([]),g=e.ref(null),b=e.ref(null),y=e.ref(0),m=e.ref(0),E=e.ref(-1);e.ref(!1);const S=e.ref(null),n=e.ref(null),h=e.computed(()=>({"--width-details":`${y.value}px`,"--gap-static-row":`${_.value?"8px":"18px"}`,"--width-static-column":`${_.value?"50%":"256px"}`})),_=e.computed(()=>y.value<600);e.watch(()=>l.players,t=>{t&&t.length&&(c.value=t.map((i,s)=>{const d=s+1;return{...i,position:d<10?`0${d}`:`${d}`,isSelected:!1,isExpanded:!1,isOdd:s%2!==0,index:s}}))},{immediate:!0}),e.watch(()=>l.isEditMode,t=>{t&&c.value.forEach(i=>{i.isSelected=!1})}),e.watch(m,t=>{const s=document.querySelectorAll(".static-row")[E.value+1];s&&(s.style.marginTop=`${t}px`),l.isGeneral?C(E.value,t):b.value&&b.value.setMarginTopDetails(E.value,t),t===0&&S.value&&D(S.value)});function C(t,i){const d=document.querySelectorAll(".scrollable-row")[t+2];d&&(d.style.marginTop=`${i}px`)}function k(t){const i=t.player||t.objeto_player,s=i?i.player_id||i.id||i.playerId:t.id||t.player_id,d=i?i.team_id||i.teamId:t.team_id||t.teamId,u={isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:s?[s]:[],goalkeeperIds:[],teamId:d||0,matchResult:[1,2,3],categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:"Jugadas Relevantes"}};if(t.stat&&t.stat.seasons&&t.stat.seasons.length||t.seasons&&t.seasons.length){const N=[...t.stat&&t.stat.seasons&&t.stat.seasons.length?t.stat.seasons:t.seasons];N.sort((ot,lt)=>ot-lt),u.seasonId=N.shift(),u.seasonsIds=N}else(t.season_id||t.seasonId)&&(u.seasonId=t.season_id||t.seasonId);t.stat?t.stat.category_id?u.categoryIds=t.stat.category_id:t.stat.custom_category_id&&(u.customCategoryIds=[t.stat.custom_category_id]):u.categoryIds=Ke(t.player_position),a("open-media",u)}function T(){r=new ResizeObserver(t=>{for(const i of t)y.value=i.contentRect.width}),r.observe(g.value)}function Xe(t){f=new ResizeObserver(i=>{for(const s of i)m.value=s.contentRect.height}),f.observe(t)}function Ke(t){return t==="POR"?[39,40,52,53,54,55,323,324,608,774,802]:[10,12,14,15,27,35,61,217,257,466,519,607,702,730,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,211,232,235,239,242,282,284,289,291,296,485,486,487,488]}function Qe(t,i){i.isSelected=t;const s=c.value.filter(d=>d.isSelected);a("change-selected-players",s)}function Ye(t){a("view-profile",t)}function I(t){a("delete-from-list",t)}function M(t){a("add-to-list",t)}function et(t){a("show-graph",t)}function D(t){if(t.isExpanded){t.isExpanded=!1,S.value=null;return}const i=c.value.find(u=>u.isExpanded);if(i&&(i.isExpanded=!1),i){S.value=t;return}const d=document.querySelectorAll(".details-row")[t.index];E.value=t.index,Xe(d),t.isExpanded=!0}let B=!1,F,R,O=function(t){B=!0,F=t.pageX-n.value.offsetLeft,R=n.value.scrollLeft},x=function(){B=!1};function tt(){n.value&&(n.value.addEventListener("mousemove",t=>{if(!B)return;const s=t.pageX-n.value.offsetLeft-F;n.value.scrollLeft=R-s}),n.value.addEventListener("mousedown",O,!1),n.value.addEventListener("mouseup",x,!1),n.value.addEventListener("mouseleave",x,!1))}return e.onMounted(()=>{T(),tt()}),e.onBeforeUnmount(()=>{r&&r.disconnect(),f&&f.disconnect(),n.value&&(n.value.removeEventListener("mousemove",O,!1),n.value.removeEventListener("mouseup",x,!1),n.value.removeEventListener("mouseleave",x,!1))}),(t,i)=>(e.openBlock(),e.createElementBlock("div",{class:"table",ref_key:"tableSC",ref:g,style:e.normalizeStyle(h.value)},[e.createElementVNode("div",fe,[pe,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,s=>(e.openBlock(),e.createElementBlock("div",{key:`s-${s.id}`,class:e.normalizeClass(["row static-row",{odd:s.isOdd}])},[e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["details-row",{odd:s.isOdd}])},[e.createElementVNode("div",he,[e.createElementVNode("div",_e,[e.createElementVNode("div",ge,[e.createElementVNode("div",null,[e.createTextVNode("Equipo: "),e.createElementVNode("span",ke,e.toDisplayString(s.team_name),1)]),e.createElementVNode("div",null,[e.createTextVNode("Edad: "),e.createElementVNode("span",ue,e.toDisplayString(s.player_age)+" Años",1)]),e.createElementVNode("div",null,[e.createTextVNode("Nacionalidad: "),e.createElementVNode("span",be,e.toDisplayString(s.player_country),1)]),e.createElementVNode("div",null,[e.createTextVNode("Posición: "),e.createElementVNode("span",ye,e.toDisplayString(s.position_name),1)])]),e.createElementVNode("div",Ce,[e.createElementVNode("div",null,[e.createTextVNode("Partidos Jugados: "),e.createElementVNode("span",we,e.toDisplayString(s.player_games),1)]),e.createElementVNode("div",null,[e.createTextVNode("Minutos Jugados: "),e.createElementVNode("span",Ee,e.toDisplayString(s.player_min),1)])])]),e.createElementVNode("div",{class:"details-row__buttons",style:e.normalizeStyle(_.value?"margin-left: 0; gap: 8px;":"")},[e.createElementVNode("div",{role:"button",class:"button",onClick:d=>et(s)},xe,8,Se),o.isTableFromList?(e.openBlock(),e.createElementBlock("div",{key:0,role:"button",class:"button",onClick:d=>I(s)},Be,8,Ve)):(e.openBlock(),e.createElementBlock("div",{key:1,role:"button",class:"button",onClick:d=>M(s)},Le,8,Ne)),e.createElementVNode("div",{role:"button",class:"button green",onClick:d=>Ye(s)},$e,8,ze)],4)])],2),[[e.vShow,s.isExpanded]])]),_:2},1024),o.isEditMode?(e.openBlock(),e.createBlock(e.unref(J),{key:0,fontFamily:"Poppins-Regular",labelFontSize:"14px","model-value":s.isSelected,"onUpdate:modelValue":d=>Qe(d,s)},null,8,["model-value","onUpdate:modelValue"])):e.createCommentVNode("",!0),e.createElementVNode("div",Te,[e.createElementVNode("div",Ie,e.toDisplayString(s.position),1),o.isTableFromList?(e.openBlock(),e.createElementBlock("svg",{key:0,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:d=>I(s)},De,8,Me)):(e.openBlock(),e.createElementBlock("svg",{key:1,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:d=>M(s)},Re,8,Fe)),e.createElementVNode("div",Oe,[e.createElementVNode("div",null,[e.createElementVNode("img",{src:s.player_photo,alt:"player photo"},null,8,Pe)])]),e.createElementVNode("div",Ae,e.toDisplayString(s.player_name),1)]),e.createElementVNode("div",We,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["_arrowExpandIcon_6ak64_1115 _rotate_6ak64_5",{expanded:s.isExpanded}]),width:"12",height:"8",viewBox:"0 0 12 8",fill:"#D9D9D9",xmlns:"http://www.w3.org/2000/svg",onClick:d=>D(s)},Ze,10,je))])],2))),128))]),e.createElementVNode("div",{ref_key:"scrollableColumns",ref:n,class:"table__scrollable-columns"},[o.isGeneral?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[He,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,s=>(e.openBlock(),e.createElementBlock("div",{key:`i-${s.id}`,class:"row scrollable-row"},[e.createElementVNode("div",{class:e.normalizeClass(["row team-info",{odd:s.isOdd}])},[e.createElementVNode("div",Ge,[e.createElementVNode("img",{src:s.team_logo,alt:"team logo"},null,8,Ue)]),e.createElementVNode("div",qe,e.toDisplayString(s.team_abrev),1)],2),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:s.isOdd}])},e.toDisplayString(s.player_position),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:s.isOdd}])},e.toDisplayString(s.player_age),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:s.isOdd}])},[e.createElementVNode("img",{src:s.player_country_flag,alt:"player country flag",class:"country-flag"},null,8,ve)],2),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:s.isOdd}])},e.toDisplayString(s.player_games),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:s.isOdd}])},e.toDisplayString(s.player_min),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:s.isOdd}])},e.toDisplayString(s.league_name),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:s.isOdd}])},[e.createVNode(e.unref(ie),{icon:"https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png","icon-size":"19px","icon-position":"left",width:"98px",height:"30px","border-radius":"30px","border-width":"1","background-color":"#ffffff1a","font-family":"Poppins-Regular","border-color":"#55636e","text-value":"Ver videos","font-size":"10px",onClick:d=>k(s)},null,8,["onClick"])],2),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:s.isOdd}])},null,2)]))),128))],64)):(e.openBlock(),e.createBlock(me,{key:1,ref_key:"scrollColumns",ref:b,"available-players":c.value,"is-edit-mode":o.isEditMode,onOpenMedia:k},null,8,["available-players","is-edit-mode"]))],512)],4))}},[["__scopeId","data-v-ef3c543d"]]);w.GSCTableScrollable=Je,Object.defineProperty(w,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(w,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(w=typeof globalThis<"u"?globalThis:w||self,e(w.GSCTableScrollable={},w.Vue))})(this,function(w,e){"use strict";const P=(o,a)=>{const l=o.__vccOpts||o;for(const[d,f]of a)l[d]=f;return l},A={key:1},W={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},j=["fill"],Z={key:0,class:"checkbox__teams"},H={class:"checkbox__teams__logo"},G=["src"],U={class:"checkbox__teams__logo"},q=["src"],v={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelWhiteSpace:{type:String,default:"normal"},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(o){return["left","right","top","bottom"].includes(o)}},boxMarginTop:{type:String,default:"0.2em"},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1},avoidToCheck:{type:Boolean,default:!1},isBoxOnly:{type:Boolean,default:!1},teamsIds:{type:Array,default:()=>null}},emits:["update:modelValue"],setup(o,{emit:a}){const l=o;e.useCssVars(m=>({"7bd9d47b":o.width,"34dc7ddc":o.height}));const d=e.ref(!1),f=e.computed(()=>{const m={color:l.boxValueColor,"font-family":l.fontFamily,height:l.boxWidthAndHeight,width:l.boxWidthAndHeight,minWidth:l.boxWidthAndHeight,"border-radius":l.boxBorderRadius,"margin-top":l.boxMarginTop};return d.value?(m["background-color"]=l.boxBackgroundColor,m.border=`solid ${l.boxBorderWidth} ${l.boxBackgroundColor}`):m.border=`solid ${l.boxBorderWidth} ${l.boxBorderColor}`,m}),c=e.computed(()=>({"font-family":l.boxValueFontFamily,"font-size":l.boxValueFontSize,color:l.boxValueColor,"line-height":1})),g=e.computed(()=>{const m={color:l.labelColor,"font-family":l.fontFamily,"font-size":l.labelFontSize,"white-space":l.labelWhiteSpace,"text-align":l.boxPosition==="top"||l.boxPosition==="bottom"?"center":l.boxPosition};return(l.boxPosition==="left"||l.boxPosition==="right")&&(m[`margin-${l.boxPosition}`]=l.isBoxOnly?"0":l.teamsIds?"8px":"10px"),m});e.watch(()=>l.modelValue,m=>{m!==d.value&&(d.value=m)},{immediate:!0});function y(){l.avoidInteraction||!d.value&&l.avoidToCheck||(d.value=!d.value,a("update:modelValue",d.value))}function C(m){return`${{}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/"}${m}.png`}return(m,E)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["checkbox",`box-${o.boxPosition}`]),onClick:y},[e.createElementVNode("div",{class:"checkbox__box",style:e.normalizeStyle(f.value)},[d.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[l.boxValue?(e.openBlock(),e.createElementBlock("div",{key:0,class:"checkbox__box__value",style:e.normalizeStyle(c.value)},e.toDisplayString(o.boxValue),5)):(e.openBlock(),e.createElementBlock("div",A,[(e.openBlock(),e.createElementBlock("svg",W,[e.createElementVNode("path",{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",fill:o.boxValueColor},null,8,j)]))]))],64)):e.createCommentVNode("",!0)],4),o.teamsIds&&o.teamsIds.length?(e.openBlock(),e.createElementBlock("div",Z,[e.createElementVNode("div",H,[e.createElementVNode("img",{src:C(o.teamsIds[0]),alt:""},null,8,G)]),e.createElementVNode("div",U,[e.createElementVNode("img",{src:C(o.teamsIds[1]),alt:""},null,8,q)])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"checkbox__label",style:e.normalizeStyle(g.value)},e.toDisplayString(o.label),5)],2))}},J=P(v,[["__scopeId","data-v-b6f124d8"]]),X=(o,a)=>{const l=o.__vccOpts||o;for(const[d,f]of a)l[d]=f;return l},V={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(o){this.status=o}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(o){this.$emit("click",o),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},L=()=>{e.useCssVars(o=>({"9d01acb4":o.height,"14e95081":o.borderWidthBtn,"38fec285":o.borderType,34353510:o.borderColor,"20d20dc6":o.borderRadius,17130967:o.width,"4ccb7d36":o.backgroundColor,"5d1e86a2":o.cursorType,ce65d4a2:o.fontSize,fe4ac47a:o.fontStyle,f98e44dc:o.fontFamily,"93b87770":o.marginLeftStat,c7f7beba:o.fontSizeStat}))},z=V.setup;V.setup=z?(o,a)=>(L(),z(o,a)):L;const K=o=>(e.pushScopeId("data-v-f3ee6b2b"),o=o(),e.popScopeId(),o),Q=["src"],Y={key:1,class:"text"},ee=["src"],te={class:"stats"},oe=K(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),le={class:"numstats"},se={class:"leyend"};function ne(o,a,l,d,f,c){return e.openBlock(),e.createElementBlock("div",null,[l.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button",f.status&&l.typeOnOff&&"button-active"]),style:e.normalizeStyle([c.customStyle,f.status&&l.typeOnOff&&c.customActive]),onClick:a[0]||(a[0]=(...g)=>c.btnClick&&c.btnClick(...g))},[l.icon&&l.iconPosition.toLowerCase()==="left"?(e.openBlock(),e.createElementBlock("img",{key:0,class:"icon",style:e.normalizeStyle({width:l.iconSize}),src:l.icon},null,12,Q)):e.createCommentVNode("",!0),l.textValue?(e.openBlock(),e.createElementBlock("div",Y,e.toDisplayString(l.textValue),1)):e.createCommentVNode("",!0),l.icon&&l.iconPosition.toLowerCase()==="right"?(e.openBlock(),e.createElementBlock("img",{key:2,class:"icon",style:e.normalizeStyle({width:l.iconSize}),src:l.icon},null,12,ee)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),l.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...g)=>c.btnClick&&c.btnClick(...g))},[e.createElementVNode("div",te,[oe,e.createElementVNode("div",le,e.toDisplayString(l.textStat),1)]),e.createElementVNode("div",se,e.toDisplayString(l.textCategory),1)])):e.createCommentVNode("",!0)])}const ie=X(V,[["render",ne],["__scopeId","data-v-f3ee6b2b"]]),$=(o,a)=>{const l=o.__vccOpts||o;for(const[d,f]of a)l[d]=f;return l},ae=o=>(e.pushScopeId("data-v-9949c723"),o=o(),e.popScopeId(),o),de={key:0,class:"overlay"},re=ae(()=>e.createElementVNode("div",{class:"column-title-2"},null,-1)),ce=["onClick"],me=$({__name:"ScrollColumns",props:{availablePlayers:{type:Array,default:()=>[]},isEditMode:{type:Boolean,default:!1}},emits:["expand","open-media"],setup(o,{expose:a,emit:l}){const d=o,f=e.ref(null),c=e.ref(null),g=e.ref(0);e.ref(!1);const y=e.computed(()=>{const n=d.availablePlayers[0];return n?n.stats:[]}),C=e.computed(()=>{const n=`repeat(${y.value.length}, max-content) 36px`;let h="";return g.value>0&&document.querySelectorAll(".column-title-2").forEach(k=>{h+=`${k.offsetWidth}px `}),{"--grid-template-columns":n,"--grid-template-columns-totals":h||n}});function m(){f.value=new ResizeObserver(n=>{for(const h of n){const{width:_}=h.contentRect;g.value=_}}),f.value.observe(c.value)}function E(n,h){const k=document.querySelectorAll(".scrollable-row-totals")[n+1];k&&(k.style.marginTop=`${h}px`)}function S({player:n,stat:h}){!h.total||h==="0%"||!h.seasons||!h.seasons.length||l("open-media",{...n,stat:h})}return e.onMounted(()=>{m()}),a({setMarginTopDetails:E}),(n,h)=>(e.openBlock(),e.createElementBlock("div",{class:"scroll-columns",style:e.normalizeStyle(C.value)},[o.isEditMode?(e.openBlock(),e.createElementBlock("div",de)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"titlesRow",ref:c,class:"scrollable-row-2"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(_,k)=>(e.openBlock(),e.createElementBlock("div",{key:`t-${k}`,class:"column-title-2"},e.toDisplayString(_.name),1))),128)),re],512),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.availablePlayers,(_,k)=>(e.openBlock(),e.createElementBlock("div",{key:`i-${_.id}`,class:"row scrollable-row-totals"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.stats,u=>(e.openBlock(),e.createElementBlock("div",{key:u.category_id,class:e.normalizeClass(["row data-info",{odd:k%2!==0,underline:!!u.total&&u.total!=="0%"&&u.seasons&&u.seasons.length}]),onClick:T=>S({player:_,stat:u})},e.toDisplayString(u.total),11,ce))),128))]))),128))],4))}},[["__scopeId","data-v-9949c723"]]),p=o=>(e.pushScopeId("data-v-4899f6dd"),o=o(),e.popScopeId(),o),fe={class:"table__static-column"},pe=p(()=>e.createElementVNode("div",{class:"static-title column-title"},null,-1)),he={class:"container"},_e={class:"details-row__info"},ge={class:"details-row__info__personal"},ke={class:"bold"},ue={class:"bold"},be={class:"bold"},ye={class:"bold"},Ce={class:"details-row__info__games"},we={class:"bold"},Ee={class:"bold"},Se=["onClick"],xe=[p(()=>e.createElementVNode("div",null,"Ver gráfica",-1)),p(()=>e.createElementVNode("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("g",{"clip-path":"url(#clip0_3514_71971)"},[e.createElementVNode("path",{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",fill:"white"})]),e.createElementVNode("defs",null,[e.createElementVNode("clipPath",{id:"clip0_3514_71971"},[e.createElementVNode("rect",{width:"16",height:"16",fill:"white",transform:"translate(0.5)"})])])],-1))],Ve=["onClick"],Be=[p(()=>e.createElementVNode("div",null,"Eliminar de lista",-1)),p(()=>e.createElementVNode("svg",{width:"17",height:"15",viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{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",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{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",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M18.332 8.16663H13.332",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1))],Ne=["onClick"],Le=[p(()=>e.createElementVNode("div",null,"Agregar a lista",-1)),p(()=>e.createElementVNode("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{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",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{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",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"})],-1))],ze=["onClick"],$e=[p(()=>e.createElementVNode("div",null,"Ver perfil",-1))],Te={class:"static-row__info-player"},Ie={class:"position"},Me=["onClick"],De=[p(()=>e.createElementVNode("path",{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",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),p(()=>e.createElementVNode("path",{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",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),p(()=>e.createElementVNode("path",{d:"M18.332 8.16663H13.332",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1))],Fe=["onClick"],Re=[p(()=>e.createElementVNode("path",{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",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),p(()=>e.createElementVNode("path",{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",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),p(()=>e.createElementVNode("path",{d:"M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1))],Oe={class:"player-photo"},Pe=["src"],Ae={class:"player-name"},We={class:"arrow"},je=["onClick"],Ze=[p(()=>e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",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",fill:"#D9D9D9"},null,-1))],He=e.createStaticVNode('<div class="titles scrollable-row" data-v-4899f6dd><div class="column-title" data-v-4899f6dd>Equipo</div><div class="column-title" data-v-4899f6dd>Posición</div><div class="column-title" data-v-4899f6dd>Edad</div><div class="column-title" data-v-4899f6dd>País</div><div class="column-title" data-v-4899f6dd>Partidos Jugados</div><div class="column-title" data-v-4899f6dd>Minutos Jugados</div><div class="column-title" data-v-4899f6dd>Liga</div><div class="column-title" data-v-4899f6dd>Videos</div><div class="column-title" data-v-4899f6dd></div></div>',1),Ge={class:"team-logo"},Ue=["src"],qe={class:"team-name data-info"},ve=["src"],Je=$({__name:"GSC-TableScrollable",props:{players:{type:Array,default:()=>[]},isGeneral:{type:Boolean,default:!0},isEditMode:{type:Boolean,default:!1},isTableFromList:{type:Boolean,default:!1}},emits:["change-selected-players","view-profile","add-to-list","view-graph","open-media"],setup(o,{emit:a}){const l=o;let d=null,f=null;const c=e.ref([]),g=e.ref(null),y=e.ref(null),C=e.ref(0),m=e.ref(0),E=e.ref(-1);e.ref(!1);const S=e.ref(null),n=e.ref(null),h=e.computed(()=>({"--width-details":`${C.value}px`,"--gap-static-row":`${_.value?"8px":"18px"}`,"--width-static-column":`${_.value?"50%":"256px"}`})),_=e.computed(()=>C.value<600);e.watch(()=>l.players,t=>{t&&t.length&&(c.value=t.map((i,s)=>{const r=s+1;return{...i,position:r<10?`0${r}`:`${r}`,isSelected:!1,isExpanded:!1,isOdd:s%2!==0,index:s}}))},{immediate:!0}),e.watch(()=>l.isEditMode,t=>{t&&c.value.forEach(i=>{i.isSelected=!1})}),e.watch(m,t=>{const s=document.querySelectorAll(".static-row")[E.value+1];s&&(s.style.marginTop=`${t}px`),l.isGeneral?k(E.value,t):y.value&&y.value.setMarginTopDetails(E.value,t),t===0&&S.value&&D(S.value)});function k(t,i){const r=document.querySelectorAll(".scrollable-row")[t+2];r&&(r.style.marginTop=`${i}px`)}function u(t){const i=t.player||t.objeto_player,s=i?i.player_id||i.id||i.playerId:t.id||t.player_id,r=i?i.team_id||i.teamId:t.team_id||t.teamId,b={isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:s?[s]:[],goalkeeperIds:[],teamId:r||0,matchResult:[1,2,3],categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:"Jugadas Relevantes"}};if(t.stat&&t.stat.seasons&&t.stat.seasons.length||t.seasons&&t.seasons.length){const N=[...t.stat&&t.stat.seasons&&t.stat.seasons.length?t.stat.seasons:t.seasons];N.sort((ot,lt)=>ot-lt),b.seasonId=N.shift(),b.seasonsIds=N}else(t.season_id||t.seasonId)&&(b.seasonId=t.season_id||t.seasonId);t.stat?t.stat.category_id?b.categoryIds=t.stat.category_id:t.stat.custom_category_id&&(b.customCategoryIds=[t.stat.custom_category_id]):b.categoryIds=Ke(t.player_position),a("open-media",b)}function T(){d=new ResizeObserver(t=>{for(const i of t)C.value=i.contentRect.width}),d.observe(g.value)}function Xe(t){f=new ResizeObserver(i=>{for(const s of i)m.value=s.contentRect.height}),f.observe(t)}function Ke(t){return t==="POR"?[39,40,52,53,54,55,323,324,608,774,802]:[10,12,14,15,27,35,61,217,257,466,519,607,702,730,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,211,232,235,239,242,282,284,289,291,296,485,486,487,488]}function Qe(t,i){i.isSelected=t;const s=c.value.filter(r=>r.isSelected);a("change-selected-players",s)}function Ye(t){a("view-profile",t)}function I(t){a("delete-from-list",t)}function M(t){a("add-to-list",t)}function et(t){a("show-graph",t)}function D(t){if(t.isExpanded){t.isExpanded=!1,S.value=null;return}const i=c.value.find(b=>b.isExpanded);if(i&&(i.isExpanded=!1),i){S.value=t;return}const r=document.querySelectorAll(".details-row")[t.index];E.value=t.index,Xe(r),t.isExpanded=!0}let B=!1,F,R,O=function(t){B=!0,F=t.pageX-n.value.offsetLeft,R=n.value.scrollLeft},x=function(){B=!1};function tt(){n.value&&(n.value.addEventListener("mousemove",t=>{if(!B)return;const s=t.pageX-n.value.offsetLeft-F;n.value.scrollLeft=R-s}),n.value.addEventListener("mousedown",O,!1),n.value.addEventListener("mouseup",x,!1),n.value.addEventListener("mouseleave",x,!1))}return e.onMounted(()=>{T(),tt()}),e.onBeforeUnmount(()=>{d&&d.disconnect(),f&&f.disconnect(),n.value&&(n.value.removeEventListener("mousemove",O,!1),n.value.removeEventListener("mouseup",x,!1),n.value.removeEventListener("mouseleave",x,!1))}),(t,i)=>(e.openBlock(),e.createElementBlock("div",{class:"table",ref_key:"tableSC",ref:g,style:e.normalizeStyle(h.value)},[e.createElementVNode("div",fe,[pe,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,s=>(e.openBlock(),e.createElementBlock("div",{key:`s-${s.id}`,class:e.normalizeClass(["row static-row",{odd:s.isOdd}])},[e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["details-row",{odd:s.isOdd}])},[e.createElementVNode("div",he,[e.createElementVNode("div",_e,[e.createElementVNode("div",ge,[e.createElementVNode("div",null,[e.createTextVNode("Equipo: "),e.createElementVNode("span",ke,e.toDisplayString(s.team_name),1)]),e.createElementVNode("div",null,[e.createTextVNode("Edad: "),e.createElementVNode("span",ue,e.toDisplayString(s.player_age)+" Años",1)]),e.createElementVNode("div",null,[e.createTextVNode("Nacionalidad: "),e.createElementVNode("span",be,e.toDisplayString(s.player_country),1)]),e.createElementVNode("div",null,[e.createTextVNode("Posición: "),e.createElementVNode("span",ye,e.toDisplayString(s.position_name),1)])]),e.createElementVNode("div",Ce,[e.createElementVNode("div",null,[e.createTextVNode("Partidos Jugados: "),e.createElementVNode("span",we,e.toDisplayString(s.player_games),1)]),e.createElementVNode("div",null,[e.createTextVNode("Minutos Jugados: "),e.createElementVNode("span",Ee,e.toDisplayString(s.player_min),1)])])]),e.createElementVNode("div",{class:"details-row__buttons",style:e.normalizeStyle(_.value?"margin-left: 0; gap: 8px;":"")},[e.createElementVNode("div",{role:"button",class:"button",onClick:r=>et(s)},xe,8,Se),o.isTableFromList?(e.openBlock(),e.createElementBlock("div",{key:0,role:"button",class:"button",onClick:r=>I(s)},Be,8,Ve)):(e.openBlock(),e.createElementBlock("div",{key:1,role:"button",class:"button",onClick:r=>M(s)},Le,8,Ne)),e.createElementVNode("div",{role:"button",class:"button green",onClick:r=>Ye(s)},$e,8,ze)],4)])],2),[[e.vShow,s.isExpanded]])]),_:2},1024),o.isEditMode?(e.openBlock(),e.createBlock(e.unref(J),{key:0,fontFamily:"Poppins-Regular",labelFontSize:"14px","model-value":s.isSelected,"onUpdate:modelValue":r=>Qe(r,s)},null,8,["model-value","onUpdate:modelValue"])):e.createCommentVNode("",!0),e.createElementVNode("div",Te,[e.createElementVNode("div",Ie,e.toDisplayString(s.position),1),o.isTableFromList?(e.openBlock(),e.createElementBlock("svg",{key:0,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:r=>I(s)},De,8,Me)):(e.openBlock(),e.createElementBlock("svg",{key:1,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:r=>M(s)},Re,8,Fe)),e.createElementVNode("div",Oe,[e.createElementVNode("div",null,[e.createElementVNode("img",{src:s.player_photo,alt:"player photo"},null,8,Pe)])]),e.createElementVNode("div",Ae,e.toDisplayString(s.player_name),1)]),e.createElementVNode("div",We,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["_arrowExpandIcon_6ak64_1115 _rotate_6ak64_5",{expanded:s.isExpanded}]),width:"12",height:"8",viewBox:"0 0 12 8",fill:"#D9D9D9",xmlns:"http://www.w3.org/2000/svg",onClick:r=>D(s)},Ze,10,je))])],2))),128))]),e.createElementVNode("div",{ref_key:"scrollableColumns",ref:n,class:"table__scrollable-columns"},[o.isGeneral?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[He,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,s=>(e.openBlock(),e.createElementBlock("div",{key:`i-${s.id}`,class:"row scrollable-row"},[e.createElementVNode("div",{class:e.normalizeClass(["row team-info",{odd:s.isOdd}])},[e.createElementVNode("div",Ge,[e.createElementVNode("img",{src:s.team_logo,alt:"team logo"},null,8,Ue)]),e.createElementVNode("div",qe,e.toDisplayString(s.team_abrev),1)],2),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:s.isOdd}])},e.toDisplayString(s.player_position),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:s.isOdd}])},e.toDisplayString(s.player_age),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:s.isOdd}])},[e.createElementVNode("img",{src:s.player_country_flag,alt:"player country flag",class:"country-flag"},null,8,ve)],2),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:s.isOdd}])},e.toDisplayString(s.player_games),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:s.isOdd}])},e.toDisplayString(s.player_min),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:s.isOdd}])},e.toDisplayString(s.league_name),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:s.isOdd}])},[e.createVNode(e.unref(ie),{icon:"https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png","icon-size":"19px","icon-position":"left",width:"98px",height:"30px","border-radius":"30px","border-width":"1","background-color":"#ffffff1a","font-family":"Poppins-Regular","border-color":"#55636e","text-value":"Ver videos","font-size":"10px",onClick:r=>u(s)},null,8,["onClick"])],2),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:s.isOdd}])},null,2)]))),128))],64)):(e.openBlock(),e.createBlock(me,{key:1,ref_key:"scrollColumns",ref:y,"available-players":c.value,"is-edit-mode":o.isEditMode,onOpenMedia:u},null,8,["available-players","is-edit-mode"]))],512)],4))}},[["__scopeId","data-v-4899f6dd"]]);w.GSCTableScrollable=Je,Object.defineProperty(w,Symbol.toStringTag,{value:"Module"})});
|