@golstats/gsc-table-scrollable 1.0.7 → 1.0.8
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-d03b93c8]{cursor:pointer}.expanded[data-v-d03b93c8]{transform:rotate(180deg)}.scrollable-row-2[data-v-d03b93c8]{display:grid;grid-template-columns:var(--grid-template-columns);width:fit-content}.scrollable-row-totals[data-v-d03b93c8]{display:grid;grid-template-columns:var(--grid-template-columns-totals);width:fit-content;transition:all .3s ease}.titles[data-v-d03b93c8]{width:100%}.column-title-2[data-v-d03b93c8]{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-d03b93c8]{height:72px;border-bottom:solid 1px rgba(255,255,255,.1);background-color:#111d28}.row.odd[data-v-d03b93c8]{background-color:#172531}.scroll-columns[data-v-d03b93c8]{display:flex;flex-direction:column;position:relative}.overlay[data-v-d03b93c8]{position:absolute;top:71px;left:0;right:0;bottom:0;background-color:#0009;z-index:1}.underline[data-v-d03b93c8]{text-decoration:underline;cursor:pointer}.data-info[data-v-d03b93c8]{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-d03b93c8]{cursor:pointer}.button[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-d03b93c8]{cursor:pointer}.expanded[data-v-d03b93c8]{transform:rotate(180deg)}.scrollable-row-2[data-v-d03b93c8]{display:grid;grid-template-columns:var(--grid-template-columns);width:fit-content}.scrollable-row-totals[data-v-d03b93c8]{display:grid;grid-template-columns:var(--grid-template-columns-totals);width:fit-content;transition:all .3s ease}.titles[data-v-d03b93c8]{width:100%}.column-title-2[data-v-d03b93c8]{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-d03b93c8]{height:72px;border-bottom:solid 1px rgba(255,255,255,.1);background-color:#111d28}.row.odd[data-v-d03b93c8]{background-color:#172531}.scroll-columns[data-v-d03b93c8]{display:flex;flex-direction:column;position:relative}.overlay[data-v-d03b93c8]{position:absolute;top:71px;left:0;right:0;bottom:0;background-color:#0009;z-index:1}.underline[data-v-d03b93c8]{text-decoration:underline;cursor:pointer}.data-info[data-v-d03b93c8]{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-d03b93c8]{cursor:pointer}.button[data-v-378d650a]{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-378d650a]{border:solid 1px #cbee6b}svg[data-v-378d650a]{cursor:pointer}.arrow[data-v-378d650a]{cursor:pointer;transition:ease .3s;min-width:12px;align-self:center}.expanded[data-v-378d650a]{transform:rotate(180deg)}.country-flag[data-v-378d650a]{width:14px;height:auto}.team-info[data-v-378d650a]{display:flex;justify-content:center;align-items:center;gap:12px}.team-info>.team-logo[data-v-378d650a]{width:25px;height:25px}.team-info>.team-logo>img[data-v-378d650a]{width:25px;height:25px}.underline[data-v-378d650a]{text-decoration:underline}.data-info[data-v-378d650a]{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-378d650a]{display:grid;grid-template-columns:104px 100px 100px 100px 100px 100px 104px 114px 100px;transition:ease .3s}.titles[data-v-378d650a]{width:100%}.row[data-v-378d650a]{height:72px;border-bottom:solid 1px rgba(255,255,255,.1);background-color:#111d28}.row.odd[data-v-378d650a]{background-color:#172531}.column-title[data-v-378d650a]{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-378d650a]{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-378d650a]{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-378d650a]{margin-bottom:24px}.details-row__info[data-v-378d650a]{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-378d650a]{margin:0 40px}.details-row__info span.bold[data-v-378d650a]{font-family:Poppins-Medium,sans-serif}.details-row__buttons[data-v-378d650a]{display:flex;align-items:center;gap:16px;margin-left:40px}.details-row.odd[data-v-378d650a]{background-color:#172531}.static-row[data-v-378d650a]{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-378d650a]{display:flex;justify-content:flex-start;align-items:center;gap:var(--gap-static-row);overflow:hidden}.static-row__info-player>.position[data-v-378d650a]{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-378d650a]{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-378d650a]{width:32px;height:32px;border-radius:50%;background-color:#fff}.player-photo>div[data-v-378d650a]{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-378d650a]{width:auto;height:40px}.table[data-v-378d650a]{width:100%;height:fit-content;display:flex;justify-content:flex-start;align-items:flex-start}.table__static-column[data-v-378d650a]{width:var(--width-static-column);min-width:var(--width-static-column);background-color:#1e3142}.table__scrollable-columns[data-v-378d650a]{width:100%;overflow-x:scroll}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
const
|
|
1
|
+
import { useCssVars as J, ref as m, 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 c, pushScopeId as z, popScopeId as E, onMounted as K, renderList as O, createVNode as H, createBlock as N, Transition as it, withCtx as lt, withDirectives as nt, createTextVNode as T, vShow as at, unref as G, createStaticVNode as dt } from "vue";
|
|
2
|
+
const rt = (e, d) => {
|
|
3
3
|
const o = e.__vccOpts || e;
|
|
4
|
-
for (const [
|
|
5
|
-
o[
|
|
4
|
+
for (const [u, p] of d)
|
|
5
|
+
o[u] = p;
|
|
6
6
|
return o;
|
|
7
|
-
},
|
|
7
|
+
}, ct = { key: 1 }, ut = {
|
|
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
|
+
}, ht = ["fill"], ft = {
|
|
14
14
|
key: 0,
|
|
15
15
|
class: "checkbox__teams"
|
|
16
|
-
},
|
|
16
|
+
}, vt = { class: "checkbox__teams__logo" }, pt = ["src"], _t = { class: "checkbox__teams__logo" }, gt = ["src"], bt = {
|
|
17
17
|
__name: "GSC-Checkbox",
|
|
18
18
|
props: {
|
|
19
19
|
width: {
|
|
@@ -124,12 +124,12 @@ const dt = (e, d) => {
|
|
|
124
124
|
emits: ["update:modelValue"],
|
|
125
125
|
setup(e, { emit: d }) {
|
|
126
126
|
const o = e;
|
|
127
|
-
|
|
127
|
+
J((f) => ({
|
|
128
128
|
"7bd9d47b": e.width,
|
|
129
129
|
"34dc7ddc": e.height
|
|
130
130
|
}));
|
|
131
|
-
const
|
|
132
|
-
const
|
|
131
|
+
const u = m(!1), p = V(() => {
|
|
132
|
+
const f = {
|
|
133
133
|
color: o.boxValueColor,
|
|
134
134
|
"font-family": o.fontFamily,
|
|
135
135
|
height: o.boxWidthAndHeight,
|
|
@@ -138,36 +138,36 @@ const dt = (e, d) => {
|
|
|
138
138
|
"border-radius": o.boxBorderRadius,
|
|
139
139
|
"margin-top": o.boxMarginTop
|
|
140
140
|
};
|
|
141
|
-
return
|
|
142
|
-
}),
|
|
141
|
+
return u.value ? (f["background-color"] = o.boxBackgroundColor, f.border = `solid ${o.boxBorderWidth} ${o.boxBackgroundColor}`) : f.border = `solid ${o.boxBorderWidth} ${o.boxBorderColor}`, f;
|
|
142
|
+
}), h = V(() => ({
|
|
143
143
|
"font-family": o.boxValueFontFamily,
|
|
144
144
|
"font-size": o.boxValueFontSize,
|
|
145
145
|
color: o.boxValueColor,
|
|
146
146
|
"line-height": 1
|
|
147
|
-
})), y =
|
|
148
|
-
const
|
|
147
|
+
})), y = V(() => {
|
|
148
|
+
const f = {
|
|
149
149
|
color: o.labelColor,
|
|
150
150
|
"font-family": o.fontFamily,
|
|
151
151
|
"font-size": o.labelFontSize,
|
|
152
152
|
"white-space": o.labelWhiteSpace,
|
|
153
153
|
"text-align": o.boxPosition === "top" || o.boxPosition === "bottom" ? "center" : o.boxPosition
|
|
154
154
|
};
|
|
155
|
-
return (o.boxPosition === "left" || o.boxPosition === "right") && (
|
|
155
|
+
return (o.boxPosition === "left" || o.boxPosition === "right") && (f[`margin-${o.boxPosition}`] = o.isBoxOnly ? "0" : o.teamsIds ? "8px" : "10px"), f;
|
|
156
156
|
});
|
|
157
|
-
|
|
157
|
+
F(
|
|
158
158
|
() => o.modelValue,
|
|
159
|
-
(
|
|
160
|
-
|
|
159
|
+
(f) => {
|
|
160
|
+
f !== u.value && (u.value = f);
|
|
161
161
|
},
|
|
162
162
|
{ immediate: !0 }
|
|
163
163
|
);
|
|
164
164
|
function $() {
|
|
165
|
-
o.avoidInteraction || !
|
|
165
|
+
o.avoidInteraction || !u.value && o.avoidToCheck || (u.value = !u.value, d("update:modelValue", u.value));
|
|
166
166
|
}
|
|
167
|
-
function B(
|
|
168
|
-
return `${{}.TEAM_LOGOS_URL || "https://golstatsimages.blob.core.windows.net/teams-80/"}${
|
|
167
|
+
function B(f) {
|
|
168
|
+
return `${{}.TEAM_LOGOS_URL || "https://golstatsimages.blob.core.windows.net/teams-80/"}${f}.png`;
|
|
169
169
|
}
|
|
170
|
-
return (
|
|
170
|
+
return (f, M) => (l(), n("div", {
|
|
171
171
|
class: _(["checkbox", `box-${e.boxPosition}`]),
|
|
172
172
|
onClick: $
|
|
173
173
|
}, [
|
|
@@ -175,47 +175,47 @@ const dt = (e, d) => {
|
|
|
175
175
|
class: "checkbox__box",
|
|
176
176
|
style: L(p.value)
|
|
177
177
|
}, [
|
|
178
|
-
|
|
179
|
-
o.boxValue ? (l(),
|
|
178
|
+
u.value ? (l(), n(I, { key: 0 }, [
|
|
179
|
+
o.boxValue ? (l(), n("div", {
|
|
180
180
|
key: 0,
|
|
181
181
|
class: "checkbox__box__value",
|
|
182
|
-
style: L(
|
|
183
|
-
},
|
|
184
|
-
(l(),
|
|
182
|
+
style: L(h.value)
|
|
183
|
+
}, c(e.boxValue), 5)) : (l(), n("div", ct, [
|
|
184
|
+
(l(), n("svg", ut, [
|
|
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: e.boxValueColor
|
|
188
|
-
}, null, 8,
|
|
188
|
+
}, null, 8, ht)
|
|
189
189
|
]))
|
|
190
190
|
]))
|
|
191
191
|
], 64)) : S("", !0)
|
|
192
192
|
], 4),
|
|
193
|
-
e.teamsIds && e.teamsIds.length ? (l(),
|
|
194
|
-
t("div",
|
|
193
|
+
e.teamsIds && e.teamsIds.length ? (l(), n("div", ft, [
|
|
194
|
+
t("div", vt, [
|
|
195
195
|
t("img", {
|
|
196
196
|
src: B(e.teamsIds[0]),
|
|
197
197
|
alt: ""
|
|
198
|
-
}, null, 8,
|
|
198
|
+
}, null, 8, pt)
|
|
199
199
|
]),
|
|
200
|
-
t("div",
|
|
200
|
+
t("div", _t, [
|
|
201
201
|
t("img", {
|
|
202
202
|
src: B(e.teamsIds[1]),
|
|
203
203
|
alt: ""
|
|
204
|
-
}, null, 8,
|
|
204
|
+
}, null, 8, gt)
|
|
205
205
|
])
|
|
206
206
|
])) : S("", !0),
|
|
207
207
|
t("div", {
|
|
208
208
|
class: "checkbox__label",
|
|
209
209
|
style: L(y.value)
|
|
210
|
-
},
|
|
210
|
+
}, c(e.label), 5)
|
|
211
211
|
], 2));
|
|
212
212
|
}
|
|
213
|
-
},
|
|
213
|
+
}, mt = /* @__PURE__ */ rt(bt, [["__scopeId", "data-v-b6f124d8"]]), Ct = (e, d) => {
|
|
214
214
|
const o = e.__vccOpts || e;
|
|
215
|
-
for (const [
|
|
216
|
-
o[
|
|
215
|
+
for (const [u, p] of d)
|
|
216
|
+
o[u] = p;
|
|
217
217
|
return o;
|
|
218
|
-
},
|
|
218
|
+
}, A = {
|
|
219
219
|
props: {
|
|
220
220
|
type: { type: Number, default: 0 },
|
|
221
221
|
value: { type: Boolean, default: !1 },
|
|
@@ -289,8 +289,8 @@ const dt = (e, d) => {
|
|
|
289
289
|
this.$emit("click", e), this.typeOnOff && (this.status = !this.status, this.$emit("status", this.status));
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
|
-
},
|
|
293
|
-
|
|
292
|
+
}, q = () => {
|
|
293
|
+
J((e) => ({
|
|
294
294
|
"9d01acb4": e.height,
|
|
295
295
|
"14e95081": e.borderWidthBtn,
|
|
296
296
|
"38fec285": e.borderType,
|
|
@@ -305,59 +305,59 @@ const dt = (e, d) => {
|
|
|
305
305
|
"93b87770": e.marginLeftStat,
|
|
306
306
|
c7f7beba: e.fontSizeStat
|
|
307
307
|
}));
|
|
308
|
-
},
|
|
309
|
-
|
|
310
|
-
const yt = (e) => (z("data-v-f3ee6b2b"), e = e(), E(), e),
|
|
308
|
+
}, U = A.setup;
|
|
309
|
+
A.setup = U ? (e, d) => (q(), U(e, d)) : q;
|
|
310
|
+
const yt = (e) => (z("data-v-f3ee6b2b"), e = e(), E(), e), wt = ["src"], kt = {
|
|
311
311
|
key: 1,
|
|
312
312
|
class: "text"
|
|
313
|
-
},
|
|
313
|
+
}, xt = ["src"], St = { class: "stats" }, Lt = /* @__PURE__ */ yt(() => /* @__PURE__ */ t("img", {
|
|
314
314
|
class: "iconstats",
|
|
315
315
|
src: "https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"
|
|
316
|
-
}, null, -1)),
|
|
317
|
-
function
|
|
318
|
-
return l(),
|
|
319
|
-
o.type == 0 ? (l(),
|
|
316
|
+
}, null, -1)), $t = { class: "numstats" }, Bt = { class: "leyend" };
|
|
317
|
+
function Mt(e, d, o, u, p, h) {
|
|
318
|
+
return l(), n("div", null, [
|
|
319
|
+
o.type == 0 ? (l(), n("div", {
|
|
320
320
|
key: 0,
|
|
321
321
|
class: _(["button", p.status && o.typeOnOff && "button-active"]),
|
|
322
|
-
style: L([
|
|
323
|
-
onClick: d[0] || (d[0] = (...y) =>
|
|
322
|
+
style: L([h.customStyle, p.status && o.typeOnOff && h.customActive]),
|
|
323
|
+
onClick: d[0] || (d[0] = (...y) => h.btnClick && h.btnClick(...y))
|
|
324
324
|
}, [
|
|
325
|
-
o.icon && o.iconPosition.toLowerCase() === "left" ? (l(),
|
|
325
|
+
o.icon && o.iconPosition.toLowerCase() === "left" ? (l(), n("img", {
|
|
326
326
|
key: 0,
|
|
327
327
|
class: "icon",
|
|
328
328
|
style: L({ width: o.iconSize }),
|
|
329
329
|
src: o.icon
|
|
330
|
-
}, null, 12,
|
|
331
|
-
o.textValue ? (l(),
|
|
332
|
-
o.icon && o.iconPosition.toLowerCase() === "right" ? (l(),
|
|
330
|
+
}, null, 12, wt)) : S("", !0),
|
|
331
|
+
o.textValue ? (l(), n("div", kt, c(o.textValue), 1)) : S("", !0),
|
|
332
|
+
o.icon && o.iconPosition.toLowerCase() === "right" ? (l(), n("img", {
|
|
333
333
|
key: 2,
|
|
334
334
|
class: "icon",
|
|
335
335
|
style: L({ width: o.iconSize }),
|
|
336
336
|
src: o.icon
|
|
337
|
-
}, null, 12,
|
|
337
|
+
}, null, 12, xt)) : S("", !0)
|
|
338
338
|
], 6)) : S("", !0),
|
|
339
|
-
o.type == 1 ? (l(),
|
|
339
|
+
o.type == 1 ? (l(), n("div", {
|
|
340
340
|
key: 1,
|
|
341
341
|
class: "button-target",
|
|
342
|
-
onClick: d[1] || (d[1] = (...y) =>
|
|
342
|
+
onClick: d[1] || (d[1] = (...y) => h.btnClick && h.btnClick(...y))
|
|
343
343
|
}, [
|
|
344
|
-
t("div",
|
|
345
|
-
|
|
346
|
-
t("div",
|
|
344
|
+
t("div", St, [
|
|
345
|
+
Lt,
|
|
346
|
+
t("div", $t, c(o.textStat), 1)
|
|
347
347
|
]),
|
|
348
|
-
t("div",
|
|
348
|
+
t("div", Bt, c(o.textCategory), 1)
|
|
349
349
|
])) : S("", !0)
|
|
350
350
|
]);
|
|
351
351
|
}
|
|
352
|
-
const
|
|
352
|
+
const Vt = /* @__PURE__ */ Ct(A, [["render", Mt], ["__scopeId", "data-v-f3ee6b2b"]]), Q = (e, d) => {
|
|
353
353
|
const o = e.__vccOpts || e;
|
|
354
|
-
for (const [
|
|
355
|
-
o[
|
|
354
|
+
for (const [u, p] of d)
|
|
355
|
+
o[u] = p;
|
|
356
356
|
return o;
|
|
357
|
-
},
|
|
357
|
+
}, It = (e) => (z("data-v-d03b93c8"), e = e(), E(), e), Rt = {
|
|
358
358
|
key: 0,
|
|
359
359
|
class: "overlay"
|
|
360
|
-
},
|
|
360
|
+
}, Tt = /* @__PURE__ */ It(() => /* @__PURE__ */ t("div", { class: "column-title-2" }, null, -1)), Ot = ["onClick"], Ft = {
|
|
361
361
|
__name: "ScrollColumns",
|
|
362
362
|
props: {
|
|
363
363
|
availablePlayers: {
|
|
@@ -371,69 +371,69 @@ const It = /* @__PURE__ */ mt(W, [["render", Bt], ["__scopeId", "data-v-f3ee6b2b
|
|
|
371
371
|
},
|
|
372
372
|
emits: ["expand", "open-media"],
|
|
373
373
|
setup(e, { expose: d, emit: o }) {
|
|
374
|
-
const
|
|
375
|
-
|
|
376
|
-
const $ =
|
|
377
|
-
const
|
|
378
|
-
return
|
|
379
|
-
}), B =
|
|
380
|
-
const
|
|
374
|
+
const u = e, p = m(null), h = m(null), y = m(0);
|
|
375
|
+
m(!1);
|
|
376
|
+
const $ = V(() => {
|
|
377
|
+
const b = u.availablePlayers[0];
|
|
378
|
+
return b ? b.stats : [];
|
|
379
|
+
}), B = V(() => {
|
|
380
|
+
const b = `repeat(${$.value.length}, max-content) 36px`;
|
|
381
381
|
let v = "";
|
|
382
|
-
return y.value > 0 && document.querySelectorAll(".column-title-2").forEach((
|
|
383
|
-
v += `${
|
|
382
|
+
return y.value > 0 && document.querySelectorAll(".column-title-2").forEach((w) => {
|
|
383
|
+
v += `${w.offsetWidth}px `;
|
|
384
384
|
}), {
|
|
385
|
-
"--grid-template-columns":
|
|
386
|
-
"--grid-template-columns-totals": v ||
|
|
385
|
+
"--grid-template-columns": b,
|
|
386
|
+
"--grid-template-columns-totals": v || b
|
|
387
387
|
};
|
|
388
388
|
});
|
|
389
|
-
function
|
|
390
|
-
p.value = new ResizeObserver((
|
|
391
|
-
for (const v of
|
|
392
|
-
const { width:
|
|
393
|
-
y.value =
|
|
389
|
+
function f() {
|
|
390
|
+
p.value = new ResizeObserver((b) => {
|
|
391
|
+
for (const v of b) {
|
|
392
|
+
const { width: C } = v.contentRect;
|
|
393
|
+
y.value = C;
|
|
394
394
|
}
|
|
395
|
-
}), p.value.observe(
|
|
395
|
+
}), p.value.observe(h.value);
|
|
396
396
|
}
|
|
397
|
-
function
|
|
398
|
-
const
|
|
399
|
-
|
|
397
|
+
function M(b, v) {
|
|
398
|
+
const w = document.querySelectorAll(".scrollable-row-totals")[b + 1];
|
|
399
|
+
w && (w.style.marginTop = `${v}px`);
|
|
400
400
|
}
|
|
401
|
-
function
|
|
402
|
-
!v.total || v === "0%" || !v.seasons || !v.seasons.length || o("open-media", { ...
|
|
401
|
+
function R({ player: b, stat: v }) {
|
|
402
|
+
!v.total || v === "0%" || !v.seasons || !v.seasons.length || o("open-media", { ...b, stat: v });
|
|
403
403
|
}
|
|
404
|
-
return
|
|
405
|
-
|
|
404
|
+
return K(() => {
|
|
405
|
+
f();
|
|
406
406
|
}), d({
|
|
407
|
-
setMarginTopDetails:
|
|
408
|
-
}), (
|
|
407
|
+
setMarginTopDetails: M
|
|
408
|
+
}), (b, v) => (l(), n("div", {
|
|
409
409
|
class: "scroll-columns",
|
|
410
410
|
style: L(B.value)
|
|
411
411
|
}, [
|
|
412
|
-
e.isEditMode ? (l(),
|
|
412
|
+
e.isEditMode ? (l(), n("div", Rt)) : S("", !0),
|
|
413
413
|
t("div", {
|
|
414
414
|
ref_key: "titlesRow",
|
|
415
|
-
ref:
|
|
415
|
+
ref: h,
|
|
416
416
|
class: "scrollable-row-2"
|
|
417
417
|
}, [
|
|
418
|
-
(l(!0),
|
|
419
|
-
key: `t-${
|
|
418
|
+
(l(!0), n(I, null, O($.value, (C) => (l(), n("div", {
|
|
419
|
+
key: `t-${C.category_id}`,
|
|
420
420
|
class: "column-title-2"
|
|
421
|
-
},
|
|
422
|
-
|
|
421
|
+
}, c(C.name), 1))), 128)),
|
|
422
|
+
Tt
|
|
423
423
|
], 512),
|
|
424
|
-
(l(!0),
|
|
425
|
-
key: `i-${
|
|
424
|
+
(l(!0), n(I, null, O(e.availablePlayers, (C, w) => (l(), n("div", {
|
|
425
|
+
key: `i-${C.id}`,
|
|
426
426
|
class: "row scrollable-row-totals"
|
|
427
427
|
}, [
|
|
428
|
-
(l(!0),
|
|
429
|
-
key:
|
|
430
|
-
class: _(["row data-info", { odd:
|
|
431
|
-
onClick: (
|
|
432
|
-
},
|
|
428
|
+
(l(!0), n(I, null, O(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: (W) => R({ player: C, stat: k })
|
|
432
|
+
}, c(k.total), 11, Ot))), 128))
|
|
433
433
|
]))), 128))
|
|
434
434
|
], 4));
|
|
435
435
|
}
|
|
436
|
-
}, Pt = /* @__PURE__ */
|
|
436
|
+
}, Pt = /* @__PURE__ */ Q(Ft, [["__scopeId", "data-v-d03b93c8"]]), g = (e) => (z("data-v-378d650a"), e = e(), E(), e), zt = { class: "table__static-column" }, Et = /* @__PURE__ */ g(() => /* @__PURE__ */ t("div", { class: "static-title column-title" }, null, -1)), At = { class: "container" }, Wt = { class: "details-row__info" }, Dt = { class: "details-row__info__personal" }, Zt = { class: "bold" }, jt = { class: "bold" }, Ht = { class: "bold" }, Nt = { class: "bold" }, Gt = { class: "details-row__info__games" }, qt = { class: "bold" }, Ut = { class: "bold" }, Jt = ["onClick"], Kt = /* @__PURE__ */ g(() => /* @__PURE__ */ t("div", null, "Ver gráfica", -1)), Qt = /* @__PURE__ */ g(() => /* @__PURE__ */ t("svg", {
|
|
437
437
|
width: "17",
|
|
438
438
|
height: "16",
|
|
439
439
|
viewBox: "0 0 17 16",
|
|
@@ -456,10 +456,10 @@ const It = /* @__PURE__ */ mt(W, [["render", Bt], ["__scopeId", "data-v-f3ee6b2b
|
|
|
456
456
|
})
|
|
457
457
|
])
|
|
458
458
|
])
|
|
459
|
-
], -1)),
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
],
|
|
459
|
+
], -1)), Xt = [
|
|
460
|
+
Kt,
|
|
461
|
+
Qt
|
|
462
|
+
], Yt = ["onClick"], te = /* @__PURE__ */ g(() => /* @__PURE__ */ t("div", null, "Eliminar de lista", -1)), ee = /* @__PURE__ */ g(() => /* @__PURE__ */ t("svg", {
|
|
463
463
|
width: "17",
|
|
464
464
|
height: "15",
|
|
465
465
|
viewBox: "0 0 20 18",
|
|
@@ -490,44 +490,103 @@ const It = /* @__PURE__ */ mt(W, [["render", Bt], ["__scopeId", "data-v-f3ee6b2b
|
|
|
490
490
|
"stroke-linecap": "round",
|
|
491
491
|
"stroke-linejoin": "round"
|
|
492
492
|
})
|
|
493
|
-
], -1)),
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
],
|
|
497
|
-
|
|
498
|
-
|
|
493
|
+
], -1)), oe = [
|
|
494
|
+
te,
|
|
495
|
+
ee
|
|
496
|
+
], se = ["onClick"], ie = /* @__PURE__ */ g(() => /* @__PURE__ */ t("div", null, "Agregar a lista", -1)), le = /* @__PURE__ */ g(() => /* @__PURE__ */ t("svg", {
|
|
497
|
+
width: "20",
|
|
498
|
+
height: "20",
|
|
499
|
+
viewBox: "0 0 20 20",
|
|
500
|
+
fill: "none",
|
|
501
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
502
|
+
}, [
|
|
503
|
+
/* @__PURE__ */ t("path", {
|
|
504
|
+
d: "M13.2016 17.2012V15.601C13.2016 14.7522 12.8645 13.9381 12.2643 13.3379C11.664 12.7377 10.85 12.4005 10.0012 12.4005H5.20047C4.35165 12.4005 3.5376 12.7377 2.9374 13.3379C2.33719 13.9381 2 14.7522 2 15.601V17.2012",
|
|
505
|
+
stroke: "white",
|
|
506
|
+
"stroke-opacity": "1",
|
|
507
|
+
"stroke-width": "1.44023",
|
|
508
|
+
"stroke-linecap": "round",
|
|
509
|
+
"stroke-linejoin": "round"
|
|
510
|
+
}),
|
|
511
|
+
/* @__PURE__ */ t("path", {
|
|
512
|
+
d: "M7.60086 9.19977C9.36843 9.19977 10.8013 7.76687 10.8013 5.9993C10.8013 4.23173 9.36843 2.79883 7.60086 2.79883C5.83329 2.79883 4.40039 4.23173 4.40039 5.9993C4.40039 7.76687 5.83329 9.19977 7.60086 9.19977Z",
|
|
513
|
+
stroke: "white",
|
|
514
|
+
"stroke-opacity": "1",
|
|
515
|
+
"stroke-width": "1.44023",
|
|
516
|
+
"stroke-linecap": "round",
|
|
517
|
+
"stroke-linejoin": "round"
|
|
518
|
+
}),
|
|
519
|
+
/* @__PURE__ */ t("path", {
|
|
520
|
+
d: "M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",
|
|
521
|
+
stroke: "white",
|
|
522
|
+
"stroke-opacity": "1",
|
|
523
|
+
"stroke-width": "1.44023",
|
|
524
|
+
"stroke-linecap": "round",
|
|
525
|
+
"stroke-linejoin": "round"
|
|
526
|
+
})
|
|
527
|
+
], -1)), ne = [
|
|
528
|
+
ie,
|
|
529
|
+
le
|
|
530
|
+
], ae = ["onClick"], de = /* @__PURE__ */ g(() => /* @__PURE__ */ t("div", null, "Ver perfil", -1)), re = [
|
|
531
|
+
de
|
|
532
|
+
], ce = { class: "static-row__info-player" }, ue = { class: "position" }, he = ["onClick"], fe = /* @__PURE__ */ g(() => /* @__PURE__ */ t("path", {
|
|
533
|
+
d: "M13.3345 16.5001V14.8334C13.3345 13.9494 12.9833 13.1015 12.3582 12.4764C11.7331 11.8513 10.8852 11.5001 10.0012 11.5001H5.00126C4.11722 11.5001 3.26938 11.8513 2.64427 12.4764C2.01915 13.1015 1.66797 13.9494 1.66797 14.8334V16.5001",
|
|
534
|
+
stroke: "white",
|
|
535
|
+
"stroke-opacity": "0.5",
|
|
536
|
+
"stroke-width": "1.5",
|
|
537
|
+
"stroke-linecap": "round",
|
|
538
|
+
"stroke-linejoin": "round"
|
|
539
|
+
}, null, -1)), ve = /* @__PURE__ */ g(() => /* @__PURE__ */ t("path", {
|
|
540
|
+
d: "M7.50126 8.16658C9.34219 8.16658 10.8346 6.67422 10.8346 4.83329C10.8346 2.99237 9.34219 1.5 7.50126 1.5C5.66033 1.5 4.16797 2.99237 4.16797 4.83329C4.16797 6.67422 5.66033 8.16658 7.50126 8.16658Z",
|
|
541
|
+
stroke: "white",
|
|
542
|
+
"stroke-opacity": "0.5",
|
|
543
|
+
"stroke-width": "1.5",
|
|
544
|
+
"stroke-linecap": "round",
|
|
545
|
+
"stroke-linejoin": "round"
|
|
546
|
+
}, null, -1)), pe = /* @__PURE__ */ g(() => /* @__PURE__ */ t("path", {
|
|
547
|
+
d: "M18.332 8.16663H13.332",
|
|
548
|
+
stroke: "white",
|
|
549
|
+
"stroke-opacity": "0.5",
|
|
550
|
+
"stroke-width": "1.5",
|
|
551
|
+
"stroke-linecap": "round",
|
|
552
|
+
"stroke-linejoin": "round"
|
|
553
|
+
}, null, -1)), _e = [
|
|
554
|
+
fe,
|
|
555
|
+
ve,
|
|
556
|
+
pe
|
|
557
|
+
], ge = ["onClick"], be = /* @__PURE__ */ g(() => /* @__PURE__ */ t("path", {
|
|
499
558
|
d: "M13.2016 17.2012V15.601C13.2016 14.7522 12.8645 13.9381 12.2643 13.3379C11.664 12.7377 10.85 12.4005 10.0012 12.4005H5.20047C4.35165 12.4005 3.5376 12.7377 2.9374 13.3379C2.33719 13.9381 2 14.7522 2 15.601V17.2012",
|
|
500
559
|
stroke: "white",
|
|
501
560
|
"stroke-opacity": "1",
|
|
502
561
|
"stroke-width": "1.44023",
|
|
503
562
|
"stroke-linecap": "round",
|
|
504
563
|
"stroke-linejoin": "round"
|
|
505
|
-
}, null, -1)),
|
|
564
|
+
}, null, -1)), me = /* @__PURE__ */ g(() => /* @__PURE__ */ t("path", {
|
|
506
565
|
d: "M7.60086 9.19977C9.36843 9.19977 10.8013 7.76687 10.8013 5.9993C10.8013 4.23173 9.36843 2.79883 7.60086 2.79883C5.83329 2.79883 4.40039 4.23173 4.40039 5.9993C4.40039 7.76687 5.83329 9.19977 7.60086 9.19977Z",
|
|
507
566
|
stroke: "white",
|
|
508
567
|
"stroke-opacity": "1",
|
|
509
568
|
"stroke-width": "1.44023",
|
|
510
569
|
"stroke-linecap": "round",
|
|
511
570
|
"stroke-linejoin": "round"
|
|
512
|
-
}, null, -1)),
|
|
571
|
+
}, null, -1)), Ce = /* @__PURE__ */ g(() => /* @__PURE__ */ t("path", {
|
|
513
572
|
d: "M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",
|
|
514
573
|
stroke: "white",
|
|
515
574
|
"stroke-opacity": "1",
|
|
516
575
|
"stroke-width": "1.44023",
|
|
517
576
|
"stroke-linecap": "round",
|
|
518
577
|
"stroke-linejoin": "round"
|
|
519
|
-
}, null, -1)),
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
],
|
|
578
|
+
}, null, -1)), ye = [
|
|
579
|
+
be,
|
|
580
|
+
me,
|
|
581
|
+
Ce
|
|
582
|
+
], we = { class: "player-photo" }, ke = ["src"], xe = { class: "player-name" }, Se = { class: "arrow" }, Le = ["onClick"], $e = /* @__PURE__ */ g(() => /* @__PURE__ */ t("path", {
|
|
524
583
|
"fill-rule": "evenodd",
|
|
525
584
|
"clip-rule": "evenodd",
|
|
526
585
|
d: "M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",
|
|
527
586
|
fill: "#D9D9D9"
|
|
528
|
-
}, null, -1)),
|
|
529
|
-
|
|
530
|
-
],
|
|
587
|
+
}, null, -1)), Be = [
|
|
588
|
+
$e
|
|
589
|
+
], Me = { class: "table__scrollable-columns" }, Ve = /* @__PURE__ */ dt('<div class="titles scrollable-row" data-v-378d650a><div class="column-title" data-v-378d650a>Equipo</div><div class="column-title" data-v-378d650a>Posición</div><div class="column-title" data-v-378d650a>Edad</div><div class="column-title" data-v-378d650a>País</div><div class="column-title" data-v-378d650a>Partidos Jugados</div><div class="column-title" data-v-378d650a>Minutos Jugados</div><div class="column-title" data-v-378d650a>Liga</div><div class="column-title" data-v-378d650a>Videos</div><div class="column-title" data-v-378d650a></div></div>', 1), Ie = { class: "team-logo" }, Re = ["src"], Te = { class: "team-name data-info" }, Oe = ["src"], Fe = {
|
|
531
590
|
__name: "GSC-TableScrollable",
|
|
532
591
|
props: {
|
|
533
592
|
players: {
|
|
@@ -541,6 +600,10 @@ const It = /* @__PURE__ */ mt(W, [["render", Bt], ["__scopeId", "data-v-f3ee6b2b
|
|
|
541
600
|
isEditMode: {
|
|
542
601
|
type: Boolean,
|
|
543
602
|
default: !1
|
|
603
|
+
},
|
|
604
|
+
isTableFromList: {
|
|
605
|
+
type: Boolean,
|
|
606
|
+
default: !1
|
|
544
607
|
}
|
|
545
608
|
},
|
|
546
609
|
emits: [
|
|
@@ -552,22 +615,22 @@ const It = /* @__PURE__ */ mt(W, [["render", Bt], ["__scopeId", "data-v-f3ee6b2b
|
|
|
552
615
|
],
|
|
553
616
|
setup(e, { emit: d }) {
|
|
554
617
|
const o = e;
|
|
555
|
-
let
|
|
556
|
-
const
|
|
557
|
-
|
|
558
|
-
const
|
|
618
|
+
let u = null, p = null;
|
|
619
|
+
const h = m([]), y = m(null), $ = m(null), B = m(0), f = m(0), M = m(-1);
|
|
620
|
+
m(!1);
|
|
621
|
+
const R = m(null), b = V(() => ({
|
|
559
622
|
"--width-details": `${B.value}px`,
|
|
560
623
|
"--gap-static-row": `${v.value ? "8px" : "18px"}`,
|
|
561
624
|
"--width-static-column": `${v.value ? "50%" : "256px"}`
|
|
562
|
-
})), v =
|
|
563
|
-
|
|
625
|
+
})), v = V(() => B.value < 600);
|
|
626
|
+
F(
|
|
564
627
|
() => o.players,
|
|
565
628
|
(s) => {
|
|
566
|
-
s && s.length && (
|
|
567
|
-
const
|
|
629
|
+
s && s.length && (h.value = s.map((a, i) => {
|
|
630
|
+
const r = i + 1;
|
|
568
631
|
return {
|
|
569
|
-
...
|
|
570
|
-
position:
|
|
632
|
+
...a,
|
|
633
|
+
position: r < 10 ? `0${r}` : `${r}`,
|
|
571
634
|
isSelected: !1,
|
|
572
635
|
isExpanded: !1,
|
|
573
636
|
isOdd: i % 2 !== 0,
|
|
@@ -576,33 +639,33 @@ const It = /* @__PURE__ */ mt(W, [["render", Bt], ["__scopeId", "data-v-f3ee6b2b
|
|
|
576
639
|
}));
|
|
577
640
|
},
|
|
578
641
|
{ immediate: !0 }
|
|
579
|
-
),
|
|
642
|
+
), F(
|
|
580
643
|
() => o.isEditMode,
|
|
581
644
|
(s) => {
|
|
582
|
-
s &&
|
|
583
|
-
|
|
645
|
+
s && h.value.forEach((a) => {
|
|
646
|
+
a.isSelected = !1;
|
|
584
647
|
});
|
|
585
648
|
}
|
|
586
|
-
),
|
|
587
|
-
|
|
649
|
+
), F(
|
|
650
|
+
f,
|
|
588
651
|
(s) => {
|
|
589
|
-
const i = document.querySelectorAll(".static-row")[
|
|
590
|
-
i && (i.style.marginTop = `${s}px`), o.isGeneral ?
|
|
652
|
+
const i = document.querySelectorAll(".static-row")[M.value + 1];
|
|
653
|
+
i && (i.style.marginTop = `${s}px`), o.isGeneral ? C(M.value, s) : $.value && $.value.setMarginTopDetails(M.value, s), s === 0 && R.value && j(R.value);
|
|
591
654
|
}
|
|
592
655
|
);
|
|
593
|
-
function
|
|
594
|
-
const
|
|
595
|
-
|
|
656
|
+
function C(s, a) {
|
|
657
|
+
const r = document.querySelectorAll(".scrollable-row")[s + 2];
|
|
658
|
+
r && (r.style.marginTop = `${a}px`);
|
|
596
659
|
}
|
|
597
|
-
function
|
|
598
|
-
const
|
|
660
|
+
function w(s) {
|
|
661
|
+
const a = s.player || s.objeto_player, i = a ? a.player_id || a.id || a.playerId : s.id || s.player_id, r = a ? a.team_id || a.teamId : s.team_id || s.teamId, x = {
|
|
599
662
|
isFeaturedPlayers: !1,
|
|
600
663
|
mainSectionType: 1,
|
|
601
664
|
playListType: 2,
|
|
602
665
|
gameIds: null,
|
|
603
666
|
playerIds: i ? [i] : [],
|
|
604
667
|
goalkeeperIds: [],
|
|
605
|
-
teamId:
|
|
668
|
+
teamId: r || 0,
|
|
606
669
|
matchResult: [1, 2, 3],
|
|
607
670
|
categorySingleName: "",
|
|
608
671
|
isRivalSubject: !1,
|
|
@@ -616,26 +679,26 @@ const It = /* @__PURE__ */ mt(W, [["render", Bt], ["__scopeId", "data-v-f3ee6b2b
|
|
|
616
679
|
}
|
|
617
680
|
};
|
|
618
681
|
if (s.stat && s.stat.seasons && s.stat.seasons.length || s.seasons && s.seasons.length) {
|
|
619
|
-
const
|
|
682
|
+
const P = [
|
|
620
683
|
...s.stat && s.stat.seasons && s.stat.seasons.length ? s.stat.seasons : s.seasons
|
|
621
684
|
];
|
|
622
|
-
|
|
623
|
-
} else (s.season_id || s.seasonId) && (
|
|
624
|
-
s.stat ? s.stat.category_id ?
|
|
685
|
+
P.sort((ot, st) => ot - st), x.seasonId = P.shift(), x.seasonsIds = P;
|
|
686
|
+
} else (s.season_id || s.seasonId) && (x.seasonId = s.season_id || s.seasonId);
|
|
687
|
+
s.stat ? s.stat.category_id ? x.categoryIds = s.stat.category_id : s.stat.custom_category_id && (x.customCategoryIds = [s.stat.custom_category_id]) : x.categoryIds = X(s.player_position), d("open-media", x);
|
|
625
688
|
}
|
|
626
|
-
function
|
|
627
|
-
|
|
628
|
-
for (const
|
|
629
|
-
B.value =
|
|
630
|
-
}),
|
|
689
|
+
function k() {
|
|
690
|
+
u = new ResizeObserver((s) => {
|
|
691
|
+
for (const a of s)
|
|
692
|
+
B.value = a.contentRect.width;
|
|
693
|
+
}), u.observe(y.value);
|
|
631
694
|
}
|
|
632
|
-
function
|
|
633
|
-
p = new ResizeObserver((
|
|
634
|
-
for (const i of
|
|
635
|
-
|
|
695
|
+
function W(s) {
|
|
696
|
+
p = new ResizeObserver((a) => {
|
|
697
|
+
for (const i of a)
|
|
698
|
+
f.value = i.contentRect.height;
|
|
636
699
|
}), p.observe(s);
|
|
637
700
|
}
|
|
638
|
-
function
|
|
701
|
+
function X(s) {
|
|
639
702
|
return s === "POR" ? [39, 40, 52, 53, 54, 55, 323, 324, 608, 774, 802] : [
|
|
640
703
|
10,
|
|
641
704
|
12,
|
|
@@ -682,80 +745,83 @@ const It = /* @__PURE__ */ mt(W, [["render", Bt], ["__scopeId", "data-v-f3ee6b2b
|
|
|
682
745
|
488
|
|
683
746
|
];
|
|
684
747
|
}
|
|
685
|
-
function
|
|
686
|
-
|
|
687
|
-
const i =
|
|
748
|
+
function Y(s, a) {
|
|
749
|
+
a.isSelected = s;
|
|
750
|
+
const i = h.value.filter((r) => r.isSelected);
|
|
688
751
|
d("change-selected-players", i);
|
|
689
752
|
}
|
|
690
|
-
function
|
|
753
|
+
function tt(s) {
|
|
691
754
|
d("view-profile", s);
|
|
692
755
|
}
|
|
693
|
-
function
|
|
756
|
+
function D(s) {
|
|
694
757
|
d("delete-from-list", s);
|
|
695
758
|
}
|
|
696
|
-
function
|
|
759
|
+
function Z(s) {
|
|
760
|
+
d("add-to-list", s);
|
|
761
|
+
}
|
|
762
|
+
function et(s) {
|
|
697
763
|
d("show-graph", s);
|
|
698
764
|
}
|
|
699
|
-
function
|
|
765
|
+
function j(s) {
|
|
700
766
|
if (s.isExpanded) {
|
|
701
|
-
s.isExpanded = !1,
|
|
767
|
+
s.isExpanded = !1, R.value = null;
|
|
702
768
|
return;
|
|
703
769
|
}
|
|
704
|
-
const
|
|
705
|
-
if (
|
|
706
|
-
|
|
770
|
+
const a = h.value.find((x) => x.isExpanded);
|
|
771
|
+
if (a && (a.isExpanded = !1), a) {
|
|
772
|
+
R.value = s;
|
|
707
773
|
return;
|
|
708
774
|
}
|
|
709
|
-
const
|
|
710
|
-
|
|
775
|
+
const r = document.querySelectorAll(".details-row")[s.index];
|
|
776
|
+
M.value = s.index, W(r), s.isExpanded = !0;
|
|
711
777
|
}
|
|
712
|
-
return
|
|
713
|
-
|
|
714
|
-
}), (s,
|
|
778
|
+
return K(() => {
|
|
779
|
+
k();
|
|
780
|
+
}), (s, a) => (l(), n("div", {
|
|
715
781
|
class: "table",
|
|
716
782
|
ref_key: "tableSC",
|
|
717
783
|
ref: y,
|
|
718
|
-
style: L(
|
|
784
|
+
style: L(b.value)
|
|
719
785
|
}, [
|
|
720
|
-
t("div",
|
|
721
|
-
|
|
722
|
-
(l(!0),
|
|
786
|
+
t("div", zt, [
|
|
787
|
+
Et,
|
|
788
|
+
(l(!0), n(I, null, O(h.value, (i) => (l(), n("div", {
|
|
723
789
|
key: `s-${i.id}`,
|
|
724
790
|
class: _(["row static-row", { odd: i.isOdd }])
|
|
725
791
|
}, [
|
|
726
|
-
|
|
727
|
-
default:
|
|
728
|
-
|
|
792
|
+
H(it, null, {
|
|
793
|
+
default: lt(() => [
|
|
794
|
+
nt(t("div", {
|
|
729
795
|
class: _(["details-row", { odd: i.isOdd }])
|
|
730
796
|
}, [
|
|
731
|
-
t("div",
|
|
797
|
+
t("div", At, [
|
|
732
798
|
t("div", Wt, [
|
|
733
799
|
t("div", Dt, [
|
|
734
800
|
t("div", null, [
|
|
735
|
-
|
|
736
|
-
t("span",
|
|
801
|
+
T("Equipo: "),
|
|
802
|
+
t("span", Zt, c(i.team_name), 1)
|
|
737
803
|
]),
|
|
738
804
|
t("div", null, [
|
|
739
|
-
|
|
740
|
-
t("span",
|
|
805
|
+
T("Edad: "),
|
|
806
|
+
t("span", jt, c(i.player_age) + " Años", 1)
|
|
741
807
|
]),
|
|
742
808
|
t("div", null, [
|
|
743
|
-
|
|
744
|
-
t("span",
|
|
809
|
+
T("Nacionalidad: "),
|
|
810
|
+
t("span", Ht, c(i.player_country), 1)
|
|
745
811
|
]),
|
|
746
812
|
t("div", null, [
|
|
747
|
-
|
|
748
|
-
t("span",
|
|
813
|
+
T("Posición: "),
|
|
814
|
+
t("span", Nt, c(i.position_name), 1)
|
|
749
815
|
])
|
|
750
816
|
]),
|
|
751
|
-
t("div",
|
|
817
|
+
t("div", Gt, [
|
|
752
818
|
t("div", null, [
|
|
753
|
-
|
|
754
|
-
t("span",
|
|
819
|
+
T("Partidos Jugados: "),
|
|
820
|
+
t("span", qt, c(i.player_games), 1)
|
|
755
821
|
]),
|
|
756
822
|
t("div", null, [
|
|
757
|
-
|
|
758
|
-
t("span",
|
|
823
|
+
T("Minutos Jugados: "),
|
|
824
|
+
t("span", Ut, c(i.player_min), 1)
|
|
759
825
|
])
|
|
760
826
|
])
|
|
761
827
|
]),
|
|
@@ -766,18 +832,24 @@ const It = /* @__PURE__ */ mt(W, [["render", Bt], ["__scopeId", "data-v-f3ee6b2b
|
|
|
766
832
|
t("div", {
|
|
767
833
|
role: "button",
|
|
768
834
|
class: "button",
|
|
769
|
-
onClick: (
|
|
770
|
-
},
|
|
771
|
-
|
|
835
|
+
onClick: (r) => et(i)
|
|
836
|
+
}, Xt, 8, Jt),
|
|
837
|
+
e.isTableFromList ? (l(), n("div", {
|
|
838
|
+
key: 0,
|
|
839
|
+
role: "button",
|
|
840
|
+
class: "button",
|
|
841
|
+
onClick: (r) => D(i)
|
|
842
|
+
}, oe, 8, Yt)) : (l(), n("div", {
|
|
843
|
+
key: 1,
|
|
772
844
|
role: "button",
|
|
773
845
|
class: "button",
|
|
774
|
-
onClick: (
|
|
775
|
-
},
|
|
846
|
+
onClick: (r) => Z(i)
|
|
847
|
+
}, ne, 8, se)),
|
|
776
848
|
t("div", {
|
|
777
849
|
role: "button",
|
|
778
850
|
class: "button green",
|
|
779
|
-
onClick: (
|
|
780
|
-
},
|
|
851
|
+
onClick: (r) => tt(i)
|
|
852
|
+
}, re, 8, ae)
|
|
781
853
|
], 4)
|
|
782
854
|
])
|
|
783
855
|
], 2), [
|
|
@@ -786,70 +858,79 @@ const It = /* @__PURE__ */ mt(W, [["render", Bt], ["__scopeId", "data-v-f3ee6b2b
|
|
|
786
858
|
]),
|
|
787
859
|
_: 2
|
|
788
860
|
}, 1024),
|
|
789
|
-
e.isEditMode ? (l(),
|
|
861
|
+
e.isEditMode ? (l(), N(G(mt), {
|
|
790
862
|
key: 0,
|
|
791
863
|
fontFamily: "Poppins-Regular",
|
|
792
864
|
labelFontSize: "14px",
|
|
793
865
|
"model-value": i.isSelected,
|
|
794
|
-
"onUpdate:modelValue": (
|
|
866
|
+
"onUpdate:modelValue": (r) => Y(r, i)
|
|
795
867
|
}, null, 8, ["model-value", "onUpdate:modelValue"])) : S("", !0),
|
|
796
|
-
t("div",
|
|
797
|
-
t("div",
|
|
798
|
-
(l(),
|
|
868
|
+
t("div", ce, [
|
|
869
|
+
t("div", ue, c(i.position), 1),
|
|
870
|
+
e.isTableFromList ? (l(), n("svg", {
|
|
871
|
+
key: 0,
|
|
872
|
+
width: "20",
|
|
873
|
+
height: "20",
|
|
874
|
+
viewBox: "0 0 20 20",
|
|
875
|
+
fill: "none",
|
|
876
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
877
|
+
onClick: (r) => D(i)
|
|
878
|
+
}, _e, 8, he)) : (l(), n("svg", {
|
|
879
|
+
key: 1,
|
|
799
880
|
width: "20",
|
|
800
881
|
height: "20",
|
|
801
882
|
viewBox: "0 0 20 20",
|
|
802
883
|
fill: "none",
|
|
803
884
|
xmlns: "http://www.w3.org/2000/svg",
|
|
804
|
-
onClick: (
|
|
805
|
-
},
|
|
806
|
-
t("div",
|
|
885
|
+
onClick: (r) => Z(i)
|
|
886
|
+
}, ye, 8, ge)),
|
|
887
|
+
t("div", we, [
|
|
807
888
|
t("div", null, [
|
|
808
889
|
t("img", {
|
|
809
890
|
src: i.player_photo,
|
|
810
891
|
alt: "player photo"
|
|
811
|
-
}, null, 8,
|
|
892
|
+
}, null, 8, ke)
|
|
812
893
|
])
|
|
813
894
|
]),
|
|
814
|
-
t("div",
|
|
895
|
+
t("div", xe, c(i.player_name), 1)
|
|
815
896
|
]),
|
|
816
|
-
t("div",
|
|
817
|
-
(l(),
|
|
897
|
+
t("div", Se, [
|
|
898
|
+
(l(), n("svg", {
|
|
818
899
|
class: _(["_arrowExpandIcon_6ak64_1115 _rotate_6ak64_5", { expanded: i.isExpanded }]),
|
|
819
900
|
width: "12",
|
|
820
901
|
height: "8",
|
|
821
902
|
viewBox: "0 0 12 8",
|
|
822
903
|
fill: "#D9D9D9",
|
|
823
904
|
xmlns: "http://www.w3.org/2000/svg",
|
|
824
|
-
onClick: (
|
|
825
|
-
},
|
|
905
|
+
onClick: (r) => j(i)
|
|
906
|
+
}, Be, 10, Le))
|
|
826
907
|
])
|
|
827
908
|
], 2))), 128))
|
|
828
909
|
]),
|
|
829
|
-
t("div",
|
|
830
|
-
e.isGeneral ? (l(),
|
|
831
|
-
|
|
832
|
-
(l(!0),
|
|
910
|
+
t("div", Me, [
|
|
911
|
+
e.isGeneral ? (l(), n(I, { key: 0 }, [
|
|
912
|
+
Ve,
|
|
913
|
+
(l(!0), n(I, null, O(h.value, (i) => (l(), n("div", {
|
|
833
914
|
key: `i-${i.id}`,
|
|
834
915
|
class: "row scrollable-row"
|
|
835
916
|
}, [
|
|
836
917
|
t("div", {
|
|
837
918
|
class: _(["row team-info", { odd: i.isOdd }])
|
|
838
919
|
}, [
|
|
839
|
-
t("div",
|
|
920
|
+
t("div", Ie, [
|
|
840
921
|
t("img", {
|
|
841
922
|
src: i.team_logo,
|
|
842
923
|
alt: "team logo"
|
|
843
|
-
}, null, 8,
|
|
924
|
+
}, null, 8, Re)
|
|
844
925
|
]),
|
|
845
|
-
t("div",
|
|
926
|
+
t("div", Te, c(i.team_abrev), 1)
|
|
846
927
|
], 2),
|
|
847
928
|
t("div", {
|
|
848
929
|
class: _(["row data-info", { odd: i.isOdd }])
|
|
849
|
-
},
|
|
930
|
+
}, c(i.player_position), 3),
|
|
850
931
|
t("div", {
|
|
851
932
|
class: _(["row data-info", { odd: i.isOdd }])
|
|
852
|
-
},
|
|
933
|
+
}, c(i.player_age), 3),
|
|
853
934
|
t("div", {
|
|
854
935
|
class: _(["row data-info", { odd: i.isOdd }])
|
|
855
936
|
}, [
|
|
@@ -857,21 +938,21 @@ const It = /* @__PURE__ */ mt(W, [["render", Bt], ["__scopeId", "data-v-f3ee6b2b
|
|
|
857
938
|
src: i.player_country_flag,
|
|
858
939
|
alt: "player country flag",
|
|
859
940
|
class: "country-flag"
|
|
860
|
-
}, null, 8,
|
|
941
|
+
}, null, 8, Oe)
|
|
861
942
|
], 2),
|
|
862
943
|
t("div", {
|
|
863
944
|
class: _(["row data-info", { odd: i.isOdd }])
|
|
864
|
-
},
|
|
945
|
+
}, c(i.player_games), 3),
|
|
865
946
|
t("div", {
|
|
866
947
|
class: _(["row data-info", { odd: i.isOdd }])
|
|
867
|
-
},
|
|
948
|
+
}, c(i.player_min), 3),
|
|
868
949
|
t("div", {
|
|
869
950
|
class: _(["row data-info", { odd: i.isOdd }])
|
|
870
|
-
},
|
|
951
|
+
}, c(i.league_name), 3),
|
|
871
952
|
t("div", {
|
|
872
953
|
class: _(["row data-info", { odd: i.isOdd }])
|
|
873
954
|
}, [
|
|
874
|
-
|
|
955
|
+
H(G(Vt), {
|
|
875
956
|
icon: "https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png",
|
|
876
957
|
"icon-size": "19px",
|
|
877
958
|
"icon-position": "left",
|
|
@@ -884,25 +965,25 @@ const It = /* @__PURE__ */ mt(W, [["render", Bt], ["__scopeId", "data-v-f3ee6b2b
|
|
|
884
965
|
"border-color": "#55636e",
|
|
885
966
|
"text-value": "Ver videos",
|
|
886
967
|
"font-size": "10px",
|
|
887
|
-
onClick: (
|
|
968
|
+
onClick: (r) => w(i)
|
|
888
969
|
}, null, 8, ["onClick"])
|
|
889
970
|
], 2),
|
|
890
971
|
t("div", {
|
|
891
972
|
class: _(["row data-info", { odd: i.isOdd }])
|
|
892
973
|
}, null, 2)
|
|
893
974
|
]))), 128))
|
|
894
|
-
], 64)) : (l(),
|
|
975
|
+
], 64)) : (l(), N(Pt, {
|
|
895
976
|
key: 1,
|
|
896
977
|
ref_key: "scrollColumns",
|
|
897
978
|
ref: $,
|
|
898
|
-
"available-players":
|
|
979
|
+
"available-players": h.value,
|
|
899
980
|
"is-edit-mode": e.isEditMode,
|
|
900
|
-
onOpenMedia:
|
|
981
|
+
onOpenMedia: w
|
|
901
982
|
}, null, 8, ["available-players", "is-edit-mode"]))
|
|
902
983
|
])
|
|
903
984
|
], 4));
|
|
904
985
|
}
|
|
905
|
-
},
|
|
986
|
+
}, ze = /* @__PURE__ */ Q(Fe, [["__scopeId", "data-v-378d650a"]]);
|
|
906
987
|
export {
|
|
907
|
-
|
|
988
|
+
ze as GSCTableScrollable
|
|
908
989
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(S,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(S=typeof globalThis<"u"?globalThis:S||self,e(S.GSCTableScrollable={},S.Vue))})(this,function(S,e){"use strict";const T=(t,a)=>{const o=t.__vccOpts||t;for(const[i,p]of a)o[i]=p;return o},F={key:1},R={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},D=["fill"],M={key:0,class:"checkbox__teams"},O={class:"checkbox__teams__logo"},P=["src"],W={class:"checkbox__teams__logo"},A=["src"],Z={__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(t){return["left","right","top","bottom"].includes(t)}},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(t,{emit:a}){const o=t;e.useCssVars(c=>({"7bd9d47b":t.width,"34dc7ddc":t.height}));const i=e.ref(!1),p=e.computed(()=>{const c={color:o.boxValueColor,"font-family":o.fontFamily,height:o.boxWidthAndHeight,width:o.boxWidthAndHeight,minWidth:o.boxWidthAndHeight,"border-radius":o.boxBorderRadius,"margin-top":o.boxMarginTop};return i.value?(c["background-color"]=o.boxBackgroundColor,c.border=`solid ${o.boxBorderWidth} ${o.boxBackgroundColor}`):c.border=`solid ${o.boxBorderWidth} ${o.boxBorderColor}`,c}),r=e.computed(()=>({"font-family":o.boxValueFontFamily,"font-size":o.boxValueFontSize,color:o.boxValueColor,"line-height":1})),g=e.computed(()=>{const c={color:o.labelColor,"font-family":o.fontFamily,"font-size":o.labelFontSize,"white-space":o.labelWhiteSpace,"text-align":o.boxPosition==="top"||o.boxPosition==="bottom"?"center":o.boxPosition};return(o.boxPosition==="left"||o.boxPosition==="right")&&(c[`margin-${o.boxPosition}`]=o.isBoxOnly?"0":o.teamsIds?"8px":"10px"),c});e.watch(()=>o.modelValue,c=>{c!==i.value&&(i.value=c)},{immediate:!0});function C(){o.avoidInteraction||!i.value&&o.avoidToCheck||(i.value=!i.value,a("update:modelValue",i.value))}function u(c){return`${{}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/"}${c}.png`}return(c,x)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["checkbox",`box-${t.boxPosition}`]),onClick:C},[e.createElementVNode("div",{class:"checkbox__box",style:e.normalizeStyle(p.value)},[i.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.boxValue?(e.openBlock(),e.createElementBlock("div",{key:0,class:"checkbox__box__value",style:e.normalizeStyle(r.value)},e.toDisplayString(t.boxValue),5)):(e.openBlock(),e.createElementBlock("div",F,[(e.openBlock(),e.createElementBlock("svg",R,[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:t.boxValueColor},null,8,D)]))]))],64)):e.createCommentVNode("",!0)],4),t.teamsIds&&t.teamsIds.length?(e.openBlock(),e.createElementBlock("div",M,[e.createElementVNode("div",O,[e.createElementVNode("img",{src:u(t.teamsIds[0]),alt:""},null,8,P)]),e.createElementVNode("div",W,[e.createElementVNode("img",{src:u(t.teamsIds[1]),alt:""},null,8,A)])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"checkbox__label",style:e.normalizeStyle(g.value)},e.toDisplayString(t.label),5)],2))}},j=T(Z,[["__scopeId","data-v-b6f124d8"]]),G=(t,a)=>{const o=t.__vccOpts||t;for(const[i,p]of a)o[i]=p;return o},E={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(t){this.status=t}}},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(t){this.$emit("click",t),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},B=()=>{e.useCssVars(t=>({"9d01acb4":t.height,"14e95081":t.borderWidthBtn,"38fec285":t.borderType,34353510:t.borderColor,"20d20dc6":t.borderRadius,17130967:t.width,"4ccb7d36":t.backgroundColor,"5d1e86a2":t.cursorType,ce65d4a2:t.fontSize,fe4ac47a:t.fontStyle,f98e44dc:t.fontFamily,"93b87770":t.marginLeftStat,c7f7beba:t.fontSizeStat}))},N=E.setup;E.setup=N?(t,a)=>(B(),N(t,a)):B;const H=t=>(e.pushScopeId("data-v-f3ee6b2b"),t=t(),e.popScopeId(),t),q=["src"],U={key:1,class:"text"},J=["src"],K={class:"stats"},Q=H(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),X={class:"numstats"},Y={class:"leyend"};function v(t,a,o,i,p,r){return e.openBlock(),e.createElementBlock("div",null,[o.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button",p.status&&o.typeOnOff&&"button-active"]),style:e.normalizeStyle([r.customStyle,p.status&&o.typeOnOff&&r.customActive]),onClick:a[0]||(a[0]=(...g)=>r.btnClick&&r.btnClick(...g))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(e.openBlock(),e.createElementBlock("img",{key:0,class:"icon",style:e.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,q)):e.createCommentVNode("",!0),o.textValue?(e.openBlock(),e.createElementBlock("div",U,e.toDisplayString(o.textValue),1)):e.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(e.openBlock(),e.createElementBlock("img",{key:2,class:"icon",style:e.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,J)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),o.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...g)=>r.btnClick&&r.btnClick(...g))},[e.createElementVNode("div",K,[Q,e.createElementVNode("div",X,e.toDisplayString(o.textStat),1)]),e.createElementVNode("div",Y,e.toDisplayString(o.textCategory),1)])):e.createCommentVNode("",!0)])}const ee=G(E,[["render",v],["__scopeId","data-v-f3ee6b2b"]]),L=(t,a)=>{const o=t.__vccOpts||t;for(const[i,p]of a)o[i]=p;return o},te=t=>(e.pushScopeId("data-v-d03b93c8"),t=t(),e.popScopeId(),t),oe={key:0,class:"overlay"},le=te(()=>e.createElementVNode("div",{class:"column-title-2"},null,-1)),se=["onClick"],ne=L({__name:"ScrollColumns",props:{availablePlayers:{type:Array,default:()=>[]},isEditMode:{type:Boolean,default:!1}},emits:["expand","open-media"],setup(t,{expose:a,emit:o}){const i=t,p=e.ref(null),r=e.ref(null),g=e.ref(0);e.ref(!1);const C=e.computed(()=>{const f=i.availablePlayers[0];return f?f.stats:[]}),u=e.computed(()=>{const f=`repeat(${C.value.length}, max-content) 36px`;let m="";return g.value>0&&document.querySelectorAll(".column-title-2").forEach(b=>{m+=`${b.offsetWidth}px `}),{"--grid-template-columns":f,"--grid-template-columns-totals":m||f}});function c(){p.value=new ResizeObserver(f=>{for(const m of f){const{width:h}=m.contentRect;g.value=h}}),p.value.observe(r.value)}function x(f,m){const b=document.querySelectorAll(".scrollable-row-totals")[f+1];b&&(b.style.marginTop=`${m}px`)}function w({player:f,stat:m}){!m.total||m==="0%"||!m.seasons||!m.seasons.length||o("open-media",{...f,stat:m})}return e.onMounted(()=>{c()}),a({setMarginTopDetails:x}),(f,m)=>(e.openBlock(),e.createElementBlock("div",{class:"scroll-columns",style:e.normalizeStyle(u.value)},[t.isEditMode?(e.openBlock(),e.createElementBlock("div",oe)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"titlesRow",ref:r,class:"scrollable-row-2"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,h=>(e.openBlock(),e.createElementBlock("div",{key:`t-${h.category_id}`,class:"column-title-2"},e.toDisplayString(h.name),1))),128)),le],512),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.availablePlayers,(h,b)=>(e.openBlock(),e.createElementBlock("div",{key:`i-${h.id}`,class:"row scrollable-row-totals"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.stats,y=>(e.openBlock(),e.createElementBlock("div",{key:y.category_id,class:e.normalizeClass(["row data-info",{odd:b%2!==0,underline:!!y.total&&y.total!=="0%"&&y.seasons&&y.seasons.length}]),onClick:z=>w({player:h,stat:y})},e.toDisplayString(y.total),11,se))),128))]))),128))],4))}},[["__scopeId","data-v-d03b93c8"]]),_=t=>(e.pushScopeId("data-v-15b6d3a3"),t=t(),e.popScopeId(),t),ae={class:"table__static-column"},ie=_(()=>e.createElementVNode("div",{class:"static-title column-title"},null,-1)),de={class:"container"},re={class:"details-row__info"},ce={class:"details-row__info__personal"},me={class:"bold"},pe={class:"bold"},fe={class:"bold"},he={class:"bold"},ge={class:"details-row__info__games"},_e={class:"bold"},be={class:"bold"},ye=["onClick"],ke=[_(()=>e.createElementVNode("div",null,"Ver gráfica",-1)),_(()=>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))],Ce=["onClick"],ue=[_(()=>e.createElementVNode("div",null,"Eliminar de lista",-1)),_(()=>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))],Se=["onClick"],xe=[_(()=>e.createElementVNode("div",null,"Ver perfil",-1))],we={class:"static-row__info-player"},Ee={class:"position"},Ve=["onClick"],Be=[_(()=>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)),_(()=>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)),_(()=>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))],Ne={class:"player-photo"},Le=["src"],ze={class:"player-name"},$e={class:"arrow"},Ie=["onClick"],Te=[_(()=>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))],Fe={class:"table__scrollable-columns"},Re=e.createStaticVNode('<div class="titles scrollable-row" data-v-15b6d3a3><div class="column-title" data-v-15b6d3a3>Equipo</div><div class="column-title" data-v-15b6d3a3>Posición</div><div class="column-title" data-v-15b6d3a3>Edad</div><div class="column-title" data-v-15b6d3a3>País</div><div class="column-title" data-v-15b6d3a3>Partidos Jugados</div><div class="column-title" data-v-15b6d3a3>Minutos Jugados</div><div class="column-title" data-v-15b6d3a3>Liga</div><div class="column-title" data-v-15b6d3a3>Videos</div><div class="column-title" data-v-15b6d3a3></div></div>',1),De={class:"team-logo"},Me=["src"],Oe={class:"team-name data-info"},Pe=["src"],We=L({__name:"GSC-TableScrollable",props:{players:{type:Array,default:()=>[]},isGeneral:{type:Boolean,default:!0},isEditMode:{type:Boolean,default:!1}},emits:["change-selected-players","view-profile","add-to-list","view-graph","open-media"],setup(t,{emit:a}){const o=t;let i=null,p=null;const r=e.ref([]),g=e.ref(null),C=e.ref(null),u=e.ref(0),c=e.ref(0),x=e.ref(-1);e.ref(!1);const w=e.ref(null),f=e.computed(()=>({"--width-details":`${u.value}px`,"--gap-static-row":`${m.value?"8px":"18px"}`,"--width-static-column":`${m.value?"50%":"256px"}`})),m=e.computed(()=>u.value<600);e.watch(()=>o.players,l=>{l&&l.length&&(r.value=l.map((n,s)=>{const d=s+1;return{...n,position:d<10?`0${d}`:`${d}`,isSelected:!1,isExpanded:!1,isOdd:s%2!==0,index:s}}))},{immediate:!0}),e.watch(()=>o.isEditMode,l=>{l&&r.value.forEach(n=>{n.isSelected=!1})}),e.watch(c,l=>{const s=document.querySelectorAll(".static-row")[x.value+1];s&&(s.style.marginTop=`${l}px`),o.isGeneral?h(x.value,l):C.value&&C.value.setMarginTopDetails(x.value,l),l===0&&w.value&&I(w.value)});function h(l,n){const d=document.querySelectorAll(".scrollable-row")[l+2];d&&(d.style.marginTop=`${n}px`)}function b(l){const n=l.player||l.objeto_player,s=n?n.player_id||n.id||n.playerId:l.id||l.player_id,d=n?n.team_id||n.teamId:l.team_id||l.teamId,k={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(l.stat&&l.stat.seasons&&l.stat.seasons.length||l.seasons&&l.seasons.length){const V=[...l.stat&&l.stat.seasons&&l.stat.seasons.length?l.stat.seasons:l.seasons];V.sort((He,qe)=>He-qe),k.seasonId=V.shift(),k.seasonsIds=V}else(l.season_id||l.seasonId)&&(k.seasonId=l.season_id||l.seasonId);l.stat?l.stat.category_id?k.categoryIds=l.stat.category_id:l.stat.custom_category_id&&(k.customCategoryIds=[l.stat.custom_category_id]):k.categoryIds=Ae(l.player_position),a("open-media",k)}function y(){i=new ResizeObserver(l=>{for(const n of l)u.value=n.contentRect.width}),i.observe(g.value)}function z(l){p=new ResizeObserver(n=>{for(const s of n)c.value=s.contentRect.height}),p.observe(l)}function Ae(l){return l==="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 Ze(l,n){n.isSelected=l;const s=r.value.filter(d=>d.isSelected);a("change-selected-players",s)}function je(l){a("view-profile",l)}function $(l){a("delete-from-list",l)}function Ge(l){a("show-graph",l)}function I(l){if(l.isExpanded){l.isExpanded=!1,w.value=null;return}const n=r.value.find(k=>k.isExpanded);if(n&&(n.isExpanded=!1),n){w.value=l;return}const d=document.querySelectorAll(".details-row")[l.index];x.value=l.index,z(d),l.isExpanded=!0}return e.onMounted(()=>{y()}),(l,n)=>(e.openBlock(),e.createElementBlock("div",{class:"table",ref_key:"tableSC",ref:g,style:e.normalizeStyle(f.value)},[e.createElementVNode("div",ae,[ie,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.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",de,[e.createElementVNode("div",re,[e.createElementVNode("div",ce,[e.createElementVNode("div",null,[e.createTextVNode("Equipo: "),e.createElementVNode("span",me,e.toDisplayString(s.team_name),1)]),e.createElementVNode("div",null,[e.createTextVNode("Edad: "),e.createElementVNode("span",pe,e.toDisplayString(s.player_age)+" Años",1)]),e.createElementVNode("div",null,[e.createTextVNode("Nacionalidad: "),e.createElementVNode("span",fe,e.toDisplayString(s.player_country),1)]),e.createElementVNode("div",null,[e.createTextVNode("Posición: "),e.createElementVNode("span",he,e.toDisplayString(s.position_name),1)])]),e.createElementVNode("div",ge,[e.createElementVNode("div",null,[e.createTextVNode("Partidos Jugados: "),e.createElementVNode("span",_e,e.toDisplayString(s.player_games),1)]),e.createElementVNode("div",null,[e.createTextVNode("Minutos Jugados: "),e.createElementVNode("span",be,e.toDisplayString(s.player_min),1)])])]),e.createElementVNode("div",{class:"details-row__buttons",style:e.normalizeStyle(m.value?"margin-left: 0; gap: 8px;":"")},[e.createElementVNode("div",{role:"button",class:"button",onClick:d=>Ge(s)},ke,8,ye),e.createElementVNode("div",{role:"button",class:"button",onClick:d=>$(s)},ue,8,Ce),e.createElementVNode("div",{role:"button",class:"button green",onClick:d=>je(s)},xe,8,Se)],4)])],2),[[e.vShow,s.isExpanded]])]),_:2},1024),t.isEditMode?(e.openBlock(),e.createBlock(e.unref(j),{key:0,fontFamily:"Poppins-Regular",labelFontSize:"14px","model-value":s.isSelected,"onUpdate:modelValue":d=>Ze(d,s)},null,8,["model-value","onUpdate:modelValue"])):e.createCommentVNode("",!0),e.createElementVNode("div",we,[e.createElementVNode("div",Ee,e.toDisplayString(s.position),1),(e.openBlock(),e.createElementBlock("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:d=>$(s)},Be,8,Ve)),e.createElementVNode("div",Ne,[e.createElementVNode("div",null,[e.createElementVNode("img",{src:s.player_photo,alt:"player photo"},null,8,Le)])]),e.createElementVNode("div",ze,e.toDisplayString(s.player_name),1)]),e.createElementVNode("div",$e,[(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=>I(s)},Te,10,Ie))])],2))),128))]),e.createElementVNode("div",Fe,[t.isGeneral?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[Re,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.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",De,[e.createElementVNode("img",{src:s.team_logo,alt:"team logo"},null,8,Me)]),e.createElementVNode("div",Oe,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,Pe)],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(ee),{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=>b(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(ne,{key:1,ref_key:"scrollColumns",ref:C,"available-players":r.value,"is-edit-mode":t.isEditMode,onOpenMedia:b},null,8,["available-players","is-edit-mode"]))])],4))}},[["__scopeId","data-v-15b6d3a3"]]);S.GSCTableScrollable=We,Object.defineProperty(S,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 M=(t,i)=>{const o=t.__vccOpts||t;for(const[d,p]of i)o[d]=p;return o},F={key:1},R={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},D=["fill"],O={key:0,class:"checkbox__teams"},P={class:"checkbox__teams__logo"},A=["src"],W={class:"checkbox__teams__logo"},j=["src"],Z={__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(t){return["left","right","top","bottom"].includes(t)}},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(t,{emit:i}){const o=t;e.useCssVars(c=>({"7bd9d47b":t.width,"34dc7ddc":t.height}));const d=e.ref(!1),p=e.computed(()=>{const c={color:o.boxValueColor,"font-family":o.fontFamily,height:o.boxWidthAndHeight,width:o.boxWidthAndHeight,minWidth:o.boxWidthAndHeight,"border-radius":o.boxBorderRadius,"margin-top":o.boxMarginTop};return d.value?(c["background-color"]=o.boxBackgroundColor,c.border=`solid ${o.boxBorderWidth} ${o.boxBackgroundColor}`):c.border=`solid ${o.boxBorderWidth} ${o.boxBorderColor}`,c}),r=e.computed(()=>({"font-family":o.boxValueFontFamily,"font-size":o.boxValueFontSize,color:o.boxValueColor,"line-height":1})),g=e.computed(()=>{const c={color:o.labelColor,"font-family":o.fontFamily,"font-size":o.labelFontSize,"white-space":o.labelWhiteSpace,"text-align":o.boxPosition==="top"||o.boxPosition==="bottom"?"center":o.boxPosition};return(o.boxPosition==="left"||o.boxPosition==="right")&&(c[`margin-${o.boxPosition}`]=o.isBoxOnly?"0":o.teamsIds?"8px":"10px"),c});e.watch(()=>o.modelValue,c=>{c!==d.value&&(d.value=c)},{immediate:!0});function C(){o.avoidInteraction||!d.value&&o.avoidToCheck||(d.value=!d.value,i("update:modelValue",d.value))}function u(c){return`${{}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/"}${c}.png`}return(c,S)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["checkbox",`box-${t.boxPosition}`]),onClick:C},[e.createElementVNode("div",{class:"checkbox__box",style:e.normalizeStyle(p.value)},[d.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.boxValue?(e.openBlock(),e.createElementBlock("div",{key:0,class:"checkbox__box__value",style:e.normalizeStyle(r.value)},e.toDisplayString(t.boxValue),5)):(e.openBlock(),e.createElementBlock("div",F,[(e.openBlock(),e.createElementBlock("svg",R,[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:t.boxValueColor},null,8,D)]))]))],64)):e.createCommentVNode("",!0)],4),t.teamsIds&&t.teamsIds.length?(e.openBlock(),e.createElementBlock("div",O,[e.createElementVNode("div",P,[e.createElementVNode("img",{src:u(t.teamsIds[0]),alt:""},null,8,A)]),e.createElementVNode("div",W,[e.createElementVNode("img",{src:u(t.teamsIds[1]),alt:""},null,8,j)])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"checkbox__label",style:e.normalizeStyle(g.value)},e.toDisplayString(t.label),5)],2))}},H=M(Z,[["__scopeId","data-v-b6f124d8"]]),G=(t,i)=>{const o=t.__vccOpts||t;for(const[d,p]of i)o[d]=p;return o},E={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(t){this.status=t}}},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(t){this.$emit("click",t),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},B=()=>{e.useCssVars(t=>({"9d01acb4":t.height,"14e95081":t.borderWidthBtn,"38fec285":t.borderType,34353510:t.borderColor,"20d20dc6":t.borderRadius,17130967:t.width,"4ccb7d36":t.backgroundColor,"5d1e86a2":t.cursorType,ce65d4a2:t.fontSize,fe4ac47a:t.fontStyle,f98e44dc:t.fontFamily,"93b87770":t.marginLeftStat,c7f7beba:t.fontSizeStat}))},N=E.setup;E.setup=N?(t,i)=>(B(),N(t,i)):B;const q=t=>(e.pushScopeId("data-v-f3ee6b2b"),t=t(),e.popScopeId(),t),U=["src"],J={key:1,class:"text"},K=["src"],Q={class:"stats"},X=q(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),Y={class:"numstats"},v={class:"leyend"};function ee(t,i,o,d,p,r){return e.openBlock(),e.createElementBlock("div",null,[o.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button",p.status&&o.typeOnOff&&"button-active"]),style:e.normalizeStyle([r.customStyle,p.status&&o.typeOnOff&&r.customActive]),onClick:i[0]||(i[0]=(...g)=>r.btnClick&&r.btnClick(...g))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(e.openBlock(),e.createElementBlock("img",{key:0,class:"icon",style:e.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,U)):e.createCommentVNode("",!0),o.textValue?(e.openBlock(),e.createElementBlock("div",J,e.toDisplayString(o.textValue),1)):e.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(e.openBlock(),e.createElementBlock("img",{key:2,class:"icon",style:e.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,K)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),o.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:i[1]||(i[1]=(...g)=>r.btnClick&&r.btnClick(...g))},[e.createElementVNode("div",Q,[X,e.createElementVNode("div",Y,e.toDisplayString(o.textStat),1)]),e.createElementVNode("div",v,e.toDisplayString(o.textCategory),1)])):e.createCommentVNode("",!0)])}const te=G(E,[["render",ee],["__scopeId","data-v-f3ee6b2b"]]),L=(t,i)=>{const o=t.__vccOpts||t;for(const[d,p]of i)o[d]=p;return o},oe=t=>(e.pushScopeId("data-v-d03b93c8"),t=t(),e.popScopeId(),t),le={key:0,class:"overlay"},se=oe(()=>e.createElementVNode("div",{class:"column-title-2"},null,-1)),ne=["onClick"],ie=L({__name:"ScrollColumns",props:{availablePlayers:{type:Array,default:()=>[]},isEditMode:{type:Boolean,default:!1}},emits:["expand","open-media"],setup(t,{expose:i,emit:o}){const d=t,p=e.ref(null),r=e.ref(null),g=e.ref(0);e.ref(!1);const C=e.computed(()=>{const f=d.availablePlayers[0];return f?f.stats:[]}),u=e.computed(()=>{const f=`repeat(${C.value.length}, max-content) 36px`;let m="";return g.value>0&&document.querySelectorAll(".column-title-2").forEach(k=>{m+=`${k.offsetWidth}px `}),{"--grid-template-columns":f,"--grid-template-columns-totals":m||f}});function c(){p.value=new ResizeObserver(f=>{for(const m of f){const{width:_}=m.contentRect;g.value=_}}),p.value.observe(r.value)}function S(f,m){const k=document.querySelectorAll(".scrollable-row-totals")[f+1];k&&(k.style.marginTop=`${m}px`)}function x({player:f,stat:m}){!m.total||m==="0%"||!m.seasons||!m.seasons.length||o("open-media",{...f,stat:m})}return e.onMounted(()=>{c()}),i({setMarginTopDetails:S}),(f,m)=>(e.openBlock(),e.createElementBlock("div",{class:"scroll-columns",style:e.normalizeStyle(u.value)},[t.isEditMode?(e.openBlock(),e.createElementBlock("div",le)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"titlesRow",ref:r,class:"scrollable-row-2"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,_=>(e.openBlock(),e.createElementBlock("div",{key:`t-${_.category_id}`,class:"column-title-2"},e.toDisplayString(_.name),1))),128)),se],512),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.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,b=>(e.openBlock(),e.createElementBlock("div",{key:b.category_id,class:e.normalizeClass(["row data-info",{odd:k%2!==0,underline:!!b.total&&b.total!=="0%"&&b.seasons&&b.seasons.length}]),onClick:z=>x({player:_,stat:b})},e.toDisplayString(b.total),11,ne))),128))]))),128))],4))}},[["__scopeId","data-v-d03b93c8"]]),h=t=>(e.pushScopeId("data-v-378d650a"),t=t(),e.popScopeId(),t),ae={class:"table__static-column"},de=h(()=>e.createElementVNode("div",{class:"static-title column-title"},null,-1)),re={class:"container"},ce={class:"details-row__info"},me={class:"details-row__info__personal"},pe={class:"bold"},he={class:"bold"},fe={class:"bold"},_e={class:"bold"},ge={class:"details-row__info__games"},ke={class:"bold"},be={class:"bold"},ye=["onClick"],Ce=[h(()=>e.createElementVNode("div",null,"Ver gráfica",-1)),h(()=>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))],ue=["onClick"],we=[h(()=>e.createElementVNode("div",null,"Eliminar de lista",-1)),h(()=>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))],Se=["onClick"],xe=[h(()=>e.createElementVNode("div",null,"Agregar a lista",-1)),h(()=>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))],Ee=["onClick"],Ve=[h(()=>e.createElementVNode("div",null,"Ver perfil",-1))],Be={class:"static-row__info-player"},Ne={class:"position"},Le=["onClick"],ze=[h(()=>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)),h(()=>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)),h(()=>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))],$e=["onClick"],Te=[h(()=>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)),h(()=>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)),h(()=>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))],Ie={class:"player-photo"},Me=["src"],Fe={class:"player-name"},Re={class:"arrow"},De=["onClick"],Oe=[h(()=>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))],Pe={class:"table__scrollable-columns"},Ae=e.createStaticVNode('<div class="titles scrollable-row" data-v-378d650a><div class="column-title" data-v-378d650a>Equipo</div><div class="column-title" data-v-378d650a>Posición</div><div class="column-title" data-v-378d650a>Edad</div><div class="column-title" data-v-378d650a>País</div><div class="column-title" data-v-378d650a>Partidos Jugados</div><div class="column-title" data-v-378d650a>Minutos Jugados</div><div class="column-title" data-v-378d650a>Liga</div><div class="column-title" data-v-378d650a>Videos</div><div class="column-title" data-v-378d650a></div></div>',1),We={class:"team-logo"},je=["src"],Ze={class:"team-name data-info"},He=["src"],Ge=L({__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(t,{emit:i}){const o=t;let d=null,p=null;const r=e.ref([]),g=e.ref(null),C=e.ref(null),u=e.ref(0),c=e.ref(0),S=e.ref(-1);e.ref(!1);const x=e.ref(null),f=e.computed(()=>({"--width-details":`${u.value}px`,"--gap-static-row":`${m.value?"8px":"18px"}`,"--width-static-column":`${m.value?"50%":"256px"}`})),m=e.computed(()=>u.value<600);e.watch(()=>o.players,l=>{l&&l.length&&(r.value=l.map((n,s)=>{const a=s+1;return{...n,position:a<10?`0${a}`:`${a}`,isSelected:!1,isExpanded:!1,isOdd:s%2!==0,index:s}}))},{immediate:!0}),e.watch(()=>o.isEditMode,l=>{l&&r.value.forEach(n=>{n.isSelected=!1})}),e.watch(c,l=>{const s=document.querySelectorAll(".static-row")[S.value+1];s&&(s.style.marginTop=`${l}px`),o.isGeneral?_(S.value,l):C.value&&C.value.setMarginTopDetails(S.value,l),l===0&&x.value&&I(x.value)});function _(l,n){const a=document.querySelectorAll(".scrollable-row")[l+2];a&&(a.style.marginTop=`${n}px`)}function k(l){const n=l.player||l.objeto_player,s=n?n.player_id||n.id||n.playerId:l.id||l.player_id,a=n?n.team_id||n.teamId:l.team_id||l.teamId,y={isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:s?[s]:[],goalkeeperIds:[],teamId:a||0,matchResult:[1,2,3],categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:"Jugadas Relevantes"}};if(l.stat&&l.stat.seasons&&l.stat.seasons.length||l.seasons&&l.seasons.length){const V=[...l.stat&&l.stat.seasons&&l.stat.seasons.length?l.stat.seasons:l.seasons];V.sort((Qe,Xe)=>Qe-Xe),y.seasonId=V.shift(),y.seasonsIds=V}else(l.season_id||l.seasonId)&&(y.seasonId=l.season_id||l.seasonId);l.stat?l.stat.category_id?y.categoryIds=l.stat.category_id:l.stat.custom_category_id&&(y.customCategoryIds=[l.stat.custom_category_id]):y.categoryIds=qe(l.player_position),i("open-media",y)}function b(){d=new ResizeObserver(l=>{for(const n of l)u.value=n.contentRect.width}),d.observe(g.value)}function z(l){p=new ResizeObserver(n=>{for(const s of n)c.value=s.contentRect.height}),p.observe(l)}function qe(l){return l==="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 Ue(l,n){n.isSelected=l;const s=r.value.filter(a=>a.isSelected);i("change-selected-players",s)}function Je(l){i("view-profile",l)}function $(l){i("delete-from-list",l)}function T(l){i("add-to-list",l)}function Ke(l){i("show-graph",l)}function I(l){if(l.isExpanded){l.isExpanded=!1,x.value=null;return}const n=r.value.find(y=>y.isExpanded);if(n&&(n.isExpanded=!1),n){x.value=l;return}const a=document.querySelectorAll(".details-row")[l.index];S.value=l.index,z(a),l.isExpanded=!0}return e.onMounted(()=>{b()}),(l,n)=>(e.openBlock(),e.createElementBlock("div",{class:"table",ref_key:"tableSC",ref:g,style:e.normalizeStyle(f.value)},[e.createElementVNode("div",ae,[de,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.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",re,[e.createElementVNode("div",ce,[e.createElementVNode("div",me,[e.createElementVNode("div",null,[e.createTextVNode("Equipo: "),e.createElementVNode("span",pe,e.toDisplayString(s.team_name),1)]),e.createElementVNode("div",null,[e.createTextVNode("Edad: "),e.createElementVNode("span",he,e.toDisplayString(s.player_age)+" Años",1)]),e.createElementVNode("div",null,[e.createTextVNode("Nacionalidad: "),e.createElementVNode("span",fe,e.toDisplayString(s.player_country),1)]),e.createElementVNode("div",null,[e.createTextVNode("Posición: "),e.createElementVNode("span",_e,e.toDisplayString(s.position_name),1)])]),e.createElementVNode("div",ge,[e.createElementVNode("div",null,[e.createTextVNode("Partidos Jugados: "),e.createElementVNode("span",ke,e.toDisplayString(s.player_games),1)]),e.createElementVNode("div",null,[e.createTextVNode("Minutos Jugados: "),e.createElementVNode("span",be,e.toDisplayString(s.player_min),1)])])]),e.createElementVNode("div",{class:"details-row__buttons",style:e.normalizeStyle(m.value?"margin-left: 0; gap: 8px;":"")},[e.createElementVNode("div",{role:"button",class:"button",onClick:a=>Ke(s)},Ce,8,ye),t.isTableFromList?(e.openBlock(),e.createElementBlock("div",{key:0,role:"button",class:"button",onClick:a=>$(s)},we,8,ue)):(e.openBlock(),e.createElementBlock("div",{key:1,role:"button",class:"button",onClick:a=>T(s)},xe,8,Se)),e.createElementVNode("div",{role:"button",class:"button green",onClick:a=>Je(s)},Ve,8,Ee)],4)])],2),[[e.vShow,s.isExpanded]])]),_:2},1024),t.isEditMode?(e.openBlock(),e.createBlock(e.unref(H),{key:0,fontFamily:"Poppins-Regular",labelFontSize:"14px","model-value":s.isSelected,"onUpdate:modelValue":a=>Ue(a,s)},null,8,["model-value","onUpdate:modelValue"])):e.createCommentVNode("",!0),e.createElementVNode("div",Be,[e.createElementVNode("div",Ne,e.toDisplayString(s.position),1),t.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:a=>$(s)},ze,8,Le)):(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:a=>T(s)},Te,8,$e)),e.createElementVNode("div",Ie,[e.createElementVNode("div",null,[e.createElementVNode("img",{src:s.player_photo,alt:"player photo"},null,8,Me)])]),e.createElementVNode("div",Fe,e.toDisplayString(s.player_name),1)]),e.createElementVNode("div",Re,[(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:a=>I(s)},Oe,10,De))])],2))),128))]),e.createElementVNode("div",Pe,[t.isGeneral?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[Ae,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.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",We,[e.createElementVNode("img",{src:s.team_logo,alt:"team logo"},null,8,je)]),e.createElementVNode("div",Ze,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,He)],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(te),{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:a=>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(ie,{key:1,ref_key:"scrollColumns",ref:C,"available-players":r.value,"is-edit-mode":t.isEditMode,onOpenMedia:k},null,8,["available-players","is-edit-mode"]))])],4))}},[["__scopeId","data-v-378d650a"]]);w.GSCTableScrollable=Ge,Object.defineProperty(w,Symbol.toStringTag,{value:"Module"})});
|