@golstats/gsc-table-scrollable 1.0.18 → 1.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,19 +1,19 @@
1
- import { useCssVars as 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
- const o = e.__vccOpts || e;
4
- for (const [u, p] of d)
5
- o[u] = p;
6
- return o;
7
- }, ct = { key: 1 }, ut = {
1
+ import { useCssVars as vt, ref as m, computed as O, watch as F, createElementBlock as r, openBlock as a, normalizeClass as x, createElementVNode as t, createCommentVNode as S, normalizeStyle as B, Fragment as P, toDisplayString as g, pushScopeId as q, popScopeId as U, onMounted as ht, renderList as W, onBeforeUnmount as Lt, createVNode as rt, createBlock as dt, Transition as Mt, withCtx as $t, withDirectives as Bt, createTextVNode as V, vShow as Et, unref as ct, nextTick as Rt } from "vue";
2
+ const Tt = (s, f) => {
3
+ const l = s.__vccOpts || s;
4
+ for (const [v, C] of f)
5
+ l[v] = C;
6
+ return l;
7
+ }, Pt = { key: 1 }, It = {
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
- }, ht = ["fill"], ft = {
13
+ }, Ot = ["fill"], Dt = {
14
14
  key: 0,
15
15
  class: "checkbox__teams"
16
- }, vt = { class: "checkbox__teams__logo" }, pt = ["src"], _t = { class: "checkbox__teams__logo" }, gt = ["src"], bt = {
16
+ }, Vt = { class: "checkbox__teams__logo" }, Ft = ["src"], zt = { class: "checkbox__teams__logo" }, At = ["src"], jt = {
17
17
  __name: "GSC-Checkbox",
18
18
  props: {
19
19
  width: {
@@ -72,8 +72,8 @@ const rt = (e, d) => {
72
72
  type: String,
73
73
  default: "left",
74
74
  // values can be 'left', 'right', 'top', 'bottom'
75
- validator(e) {
76
- return ["left", "right", "top", "bottom"].includes(e);
75
+ validator(s) {
76
+ return ["left", "right", "top", "bottom"].includes(s);
77
77
  }
78
78
  },
79
79
  boxMarginTop: {
@@ -122,100 +122,100 @@ const rt = (e, d) => {
122
122
  }
123
123
  },
124
124
  emits: ["update:modelValue"],
125
- setup(e, { emit: d }) {
126
- const o = e;
127
- J((f) => ({
128
- "7bd9d47b": e.width,
129
- "34dc7ddc": e.height
125
+ setup(s, { emit: f }) {
126
+ const l = s;
127
+ vt((_) => ({
128
+ "7bd9d47b": s.width,
129
+ "34dc7ddc": s.height
130
130
  }));
131
- const u = m(!1), p = V(() => {
132
- const f = {
133
- color: o.boxValueColor,
134
- "font-family": o.fontFamily,
135
- height: o.boxWidthAndHeight,
136
- width: o.boxWidthAndHeight,
137
- minWidth: o.boxWidthAndHeight,
138
- "border-radius": o.boxBorderRadius,
139
- "margin-top": o.boxMarginTop
131
+ const v = m(!1), C = O(() => {
132
+ const _ = {
133
+ color: l.boxValueColor,
134
+ "font-family": l.fontFamily,
135
+ height: l.boxWidthAndHeight,
136
+ width: l.boxWidthAndHeight,
137
+ minWidth: l.boxWidthAndHeight,
138
+ "border-radius": l.boxBorderRadius,
139
+ "margin-top": l.boxMarginTop
140
140
  };
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
- "font-family": o.boxValueFontFamily,
144
- "font-size": o.boxValueFontSize,
145
- color: o.boxValueColor,
141
+ return v.value ? (_["background-color"] = l.boxBackgroundColor, _.border = `solid ${l.boxBorderWidth} ${l.boxBackgroundColor}`) : _.border = `solid ${l.boxBorderWidth} ${l.boxBorderColor}`, _;
142
+ }), h = O(() => ({
143
+ "font-family": l.boxValueFontFamily,
144
+ "font-size": l.boxValueFontSize,
145
+ color: l.boxValueColor,
146
146
  "line-height": 1
147
- })), y = V(() => {
148
- const f = {
149
- color: o.labelColor,
150
- "font-family": o.fontFamily,
151
- "font-size": o.labelFontSize,
152
- "white-space": o.labelWhiteSpace,
153
- "text-align": o.boxPosition === "top" || o.boxPosition === "bottom" ? "center" : o.boxPosition
147
+ })), L = O(() => {
148
+ const _ = {
149
+ color: l.labelColor,
150
+ "font-family": l.fontFamily,
151
+ "font-size": l.labelFontSize,
152
+ "white-space": l.labelWhiteSpace,
153
+ "text-align": l.boxPosition === "top" || l.boxPosition === "bottom" ? "center" : l.boxPosition
154
154
  };
155
- return (o.boxPosition === "left" || o.boxPosition === "right") && (f[`margin-${o.boxPosition}`] = o.isBoxOnly ? "0" : o.teamsIds ? "8px" : "10px"), f;
155
+ return (l.boxPosition === "left" || l.boxPosition === "right") && (_[`margin-${l.boxPosition}`] = l.isBoxOnly ? "0" : l.teamsIds ? "8px" : "10px"), _;
156
156
  });
157
157
  F(
158
- () => o.modelValue,
159
- (f) => {
160
- f !== u.value && (u.value = f);
158
+ () => l.modelValue,
159
+ (_) => {
160
+ _ !== v.value && (v.value = _);
161
161
  },
162
162
  { immediate: !0 }
163
163
  );
164
- function $() {
165
- o.avoidInteraction || !u.value && o.avoidToCheck || (u.value = !u.value, d("update:modelValue", u.value));
164
+ function E() {
165
+ l.avoidInteraction || !v.value && l.avoidToCheck || (v.value = !v.value, f("update:modelValue", v.value));
166
166
  }
167
- function B(f) {
168
- return `${{}.TEAM_LOGOS_URL || "https://golstatsimages.blob.core.windows.net/teams-80/"}${f}.png`;
167
+ function u(_) {
168
+ return `${{}.TEAM_LOGOS_URL || "https://golstatsimages.blob.core.windows.net/teams-80/"}${_}.png`;
169
169
  }
170
- return (f, M) => (l(), n("div", {
171
- class: _(["checkbox", `box-${e.boxPosition}`]),
172
- onClick: $
170
+ return (_, z) => (a(), r("div", {
171
+ class: x(["checkbox", `box-${s.boxPosition}`]),
172
+ onClick: E
173
173
  }, [
174
174
  t("div", {
175
175
  class: "checkbox__box",
176
- style: L(p.value)
176
+ style: B(C.value)
177
177
  }, [
178
- u.value ? (l(), n(I, { key: 0 }, [
179
- o.boxValue ? (l(), n("div", {
178
+ v.value ? (a(), r(P, { key: 0 }, [
179
+ l.boxValue ? (a(), r("div", {
180
180
  key: 0,
181
181
  class: "checkbox__box__value",
182
- style: L(h.value)
183
- }, c(e.boxValue), 5)) : (l(), n("div", ct, [
184
- (l(), n("svg", ut, [
182
+ style: B(h.value)
183
+ }, g(s.boxValue), 5)) : (a(), r("div", Pt, [
184
+ (a(), r("svg", It, [
185
185
  t("path", {
186
186
  d: "M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",
187
- fill: e.boxValueColor
188
- }, null, 8, ht)
187
+ fill: s.boxValueColor
188
+ }, null, 8, Ot)
189
189
  ]))
190
190
  ]))
191
191
  ], 64)) : S("", !0)
192
192
  ], 4),
193
- e.teamsIds && e.teamsIds.length ? (l(), n("div", ft, [
194
- t("div", vt, [
193
+ s.teamsIds && s.teamsIds.length ? (a(), r("div", Dt, [
194
+ t("div", Vt, [
195
195
  t("img", {
196
- src: B(e.teamsIds[0]),
196
+ src: u(s.teamsIds[0]),
197
197
  alt: ""
198
- }, null, 8, pt)
198
+ }, null, 8, Ft)
199
199
  ]),
200
- t("div", _t, [
200
+ t("div", zt, [
201
201
  t("img", {
202
- src: B(e.teamsIds[1]),
202
+ src: u(s.teamsIds[1]),
203
203
  alt: ""
204
- }, null, 8, gt)
204
+ }, null, 8, At)
205
205
  ])
206
206
  ])) : S("", !0),
207
207
  t("div", {
208
208
  class: "checkbox__label",
209
- style: L(y.value)
210
- }, c(e.label), 5)
209
+ style: B(L.value)
210
+ }, g(s.label), 5)
211
211
  ], 2));
212
212
  }
213
- }, mt = /* @__PURE__ */ rt(bt, [["__scopeId", "data-v-b6f124d8"]]), Ct = (e, d) => {
214
- const o = e.__vccOpts || e;
215
- for (const [u, p] of d)
216
- o[u] = p;
217
- return o;
218
- }, A = {
213
+ }, Wt = /* @__PURE__ */ Tt(jt, [["__scopeId", "data-v-b6f124d8"]]), Zt = (s, f) => {
214
+ const l = s.__vccOpts || s;
215
+ for (const [v, C] of f)
216
+ l[v] = C;
217
+ return l;
218
+ }, J = {
219
219
  props: {
220
220
  type: { type: Number, default: 0 },
221
221
  value: { type: Boolean, default: !1 },
@@ -252,8 +252,8 @@ const rt = (e, d) => {
252
252
  value: {
253
253
  deep: !0,
254
254
  immediate: !0,
255
- handler(e) {
256
- this.status = e;
255
+ handler(s) {
256
+ this.status = s;
257
257
  }
258
258
  }
259
259
  },
@@ -285,79 +285,102 @@ const rt = (e, d) => {
285
285
  }
286
286
  },
287
287
  methods: {
288
- btnClick(e) {
289
- this.$emit("click", e), this.typeOnOff && (this.status = !this.status, this.$emit("status", this.status));
288
+ btnClick(s) {
289
+ this.$emit("click", s), this.typeOnOff && (this.status = !this.status, this.$emit("status", this.status));
290
290
  }
291
291
  }
292
- }, q = () => {
293
- J((e) => ({
294
- "9d01acb4": e.height,
295
- "14e95081": e.borderWidthBtn,
296
- "38fec285": e.borderType,
297
- 34353510: e.borderColor,
298
- "20d20dc6": e.borderRadius,
299
- 17130967: e.width,
300
- "4ccb7d36": e.backgroundColor,
301
- "5d1e86a2": e.cursorType,
302
- ce65d4a2: e.fontSize,
303
- fe4ac47a: e.fontStyle,
304
- f98e44dc: e.fontFamily,
305
- "93b87770": e.marginLeftStat,
306
- c7f7beba: e.fontSizeStat
292
+ }, ut = () => {
293
+ vt((s) => ({
294
+ "9d01acb4": s.height,
295
+ "14e95081": s.borderWidthBtn,
296
+ "38fec285": s.borderType,
297
+ 34353510: s.borderColor,
298
+ "20d20dc6": s.borderRadius,
299
+ 17130967: s.width,
300
+ "4ccb7d36": s.backgroundColor,
301
+ "5d1e86a2": s.cursorType,
302
+ ce65d4a2: s.fontSize,
303
+ fe4ac47a: s.fontStyle,
304
+ f98e44dc: s.fontFamily,
305
+ "93b87770": s.marginLeftStat,
306
+ c7f7beba: s.fontSizeStat
307
307
  }));
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 = {
308
+ }, ft = J.setup;
309
+ J.setup = ft ? (s, f) => (ut(), ft(s, f)) : ut;
310
+ const Ht = (s) => (q("data-v-f3ee6b2b"), s = s(), U(), s), Gt = ["src"], Nt = {
311
311
  key: 1,
312
312
  class: "text"
313
- }, xt = ["src"], St = { class: "stats" }, Lt = /* @__PURE__ */ yt(() => /* @__PURE__ */ t("img", {
313
+ }, qt = ["src"], Ut = { class: "stats" }, Jt = /* @__PURE__ */ Ht(() => /* @__PURE__ */ t("img", {
314
314
  class: "iconstats",
315
315
  src: "https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"
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", {
316
+ }, null, -1)), Xt = { class: "numstats" }, Kt = { class: "leyend" };
317
+ function Qt(s, f, l, v, C, h) {
318
+ return a(), r("div", null, [
319
+ l.type == 0 ? (a(), r("div", {
320
320
  key: 0,
321
- class: _(["button", p.status && o.typeOnOff && "button-active"]),
322
- style: L([h.customStyle, p.status && o.typeOnOff && h.customActive]),
323
- onClick: d[0] || (d[0] = (...y) => h.btnClick && h.btnClick(...y))
321
+ class: x(["button", C.status && l.typeOnOff && "button-active"]),
322
+ style: B([h.customStyle, C.status && l.typeOnOff && h.customActive]),
323
+ onClick: f[0] || (f[0] = (...L) => h.btnClick && h.btnClick(...L))
324
324
  }, [
325
- o.icon && o.iconPosition.toLowerCase() === "left" ? (l(), n("img", {
325
+ l.icon && l.iconPosition.toLowerCase() === "left" ? (a(), r("img", {
326
326
  key: 0,
327
327
  class: "icon",
328
- style: L({ width: o.iconSize }),
329
- src: o.icon
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", {
328
+ style: B({ width: l.iconSize }),
329
+ src: l.icon
330
+ }, null, 12, Gt)) : S("", !0),
331
+ l.textValue ? (a(), r("div", Nt, g(l.textValue), 1)) : S("", !0),
332
+ l.icon && l.iconPosition.toLowerCase() === "right" ? (a(), r("img", {
333
333
  key: 2,
334
334
  class: "icon",
335
- style: L({ width: o.iconSize }),
336
- src: o.icon
337
- }, null, 12, xt)) : S("", !0)
335
+ style: B({ width: l.iconSize }),
336
+ src: l.icon
337
+ }, null, 12, qt)) : S("", !0)
338
338
  ], 6)) : S("", !0),
339
- o.type == 1 ? (l(), n("div", {
339
+ l.type == 1 ? (a(), r("div", {
340
340
  key: 1,
341
341
  class: "button-target",
342
- onClick: d[1] || (d[1] = (...y) => h.btnClick && h.btnClick(...y))
342
+ onClick: f[1] || (f[1] = (...L) => h.btnClick && h.btnClick(...L))
343
343
  }, [
344
- t("div", St, [
345
- Lt,
346
- t("div", $t, c(o.textStat), 1)
344
+ t("div", Ut, [
345
+ Jt,
346
+ t("div", Xt, g(l.textStat), 1)
347
347
  ]),
348
- t("div", Bt, c(o.textCategory), 1)
348
+ t("div", Kt, g(l.textCategory), 1)
349
349
  ])) : S("", !0)
350
350
  ]);
351
351
  }
352
- const Vt = /* @__PURE__ */ Ct(A, [["render", Mt], ["__scopeId", "data-v-f3ee6b2b"]]), Q = (e, d) => {
353
- const o = e.__vccOpts || e;
354
- for (const [u, p] of d)
355
- o[u] = p;
356
- return o;
357
- }, It = (e) => (z("data-v-d03b93c8"), e = e(), E(), e), Rt = {
352
+ const Yt = /* @__PURE__ */ Zt(J, [["render", Qt], ["__scopeId", "data-v-f3ee6b2b"]]), pt = (s, f) => {
353
+ const l = s.__vccOpts || s;
354
+ for (const [v, C] of f)
355
+ l[v] = C;
356
+ return l;
357
+ }, X = (s) => (q("data-v-df83603b"), s = s(), U(), s), te = {
358
358
  key: 0,
359
359
  class: "overlay"
360
- }, Tt = /* @__PURE__ */ It(() => /* @__PURE__ */ t("div", { class: "column-title-2" }, null, -1)), Ot = ["onClick"], Ft = {
360
+ }, ee = ["onClick"], oe = /* @__PURE__ */ X(() => /* @__PURE__ */ t("svg", {
361
+ width: "11",
362
+ height: "12",
363
+ viewBox: "0 0 11 12",
364
+ fill: "none",
365
+ xmlns: "http://www.w3.org/2000/svg"
366
+ }, [
367
+ /* @__PURE__ */ t("path", {
368
+ d: "M7.50558 0C6.78112 0 6.10558 0.475441 5.89478 1.14401L1.21987 1.14286C0.904267 1.14286 0.648438 1.39886 0.648438 1.71429C0.648438 2.02972 0.904267 2.28572 1.21987 2.28572L5.89478 2.28516C6.15083 2.98516 6.78112 3.42858 7.50558 3.42858C8.23004 3.42858 8.86678 2.98402 9.1273 2.28059L10.3627 2.28572C10.6783 2.28572 10.9342 2.02972 10.9342 1.71429C10.9342 1.39886 10.6783 1.14286 10.3627 1.14286H9.12244C8.8473 0.446287 8.23004 0 7.50558 0ZM7.50558 1.14286C7.82118 1.14286 8.07701 1.39886 8.07701 1.71429C8.07701 2.02972 7.82118 2.28572 7.50558 2.28572C7.18998 2.28572 6.93415 2.02972 6.93415 1.71429C6.93415 1.39886 7.18998 1.14286 7.50558 1.14286ZM4.07701 4.28572C3.32387 4.28572 2.69347 4.7543 2.4633 5.42971C2.38295 5.43485 1.21987 5.42856 1.21987 5.42856C0.904267 5.42856 0.648438 5.68456 0.648438 5.99999C0.648438 6.31542 0.904267 6.57142 1.21987 6.57142C1.21987 6.57142 2.39267 6.55942 2.46575 6.56685C2.69593 7.24228 3.32387 7.71428 4.07701 7.71428C4.80146 7.71428 5.42226 7.27028 5.69381 6.57314L10.3627 6.57142C10.6783 6.57142 10.9342 6.31542 10.9342 5.99999C10.9342 5.68456 10.6783 5.42856 10.3627 5.42856L5.69083 5.42348C5.44038 4.74174 4.80146 4.28572 4.07701 4.28572ZM4.07701 5.42856C4.39261 5.42856 4.64844 5.68456 4.64844 5.99999C4.64844 6.31542 4.39261 6.57142 4.07701 6.57142C3.76141 6.57142 3.50558 6.31542 3.50558 5.99999C3.50558 5.68456 3.76141 5.42856 4.07701 5.42856ZM7.50558 8.57142C6.78112 8.57142 6.11844 9.04857 5.89438 9.70857L1.21987 9.71428C0.904267 9.71428 0.648438 9.97028 0.648438 10.2857C0.648438 10.6011 0.904267 10.8571 1.21987 10.8571L5.88592 10.8577C6.12301 11.5349 6.78112 12 7.50558 12C8.23004 12 8.85467 11.5469 9.12987 10.8577L10.3627 10.8571C10.6783 10.8571 10.9342 10.6011 10.9342 10.2857C10.9342 9.97028 10.6783 9.71428 10.3627 9.71428L9.12467 9.71091C8.87798 9.03491 8.23004 8.57142 7.50558 8.57142ZM7.50558 9.71428C7.82118 9.71428 8.07701 9.97028 8.07701 10.2857C8.07701 10.6011 7.82118 10.8571 7.50558 10.8571C7.18998 10.8571 6.93415 10.6011 6.93415 10.2857C6.93415 9.97028 7.18998 9.71428 7.50558 9.71428Z",
369
+ fill: "white"
370
+ })
371
+ ], -1)), se = [
372
+ oe
373
+ ], le = { class: "name" }, ie = ["onClick"], ne = /* @__PURE__ */ X(() => /* @__PURE__ */ t("g", {
374
+ opacity: ".5",
375
+ stroke: "#fff",
376
+ "stroke-width": "1.677",
377
+ "stroke-linecap": "round",
378
+ "stroke-linejoin": "round"
379
+ }, [
380
+ /* @__PURE__ */ t("path", { d: "M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67" })
381
+ ], -1)), ae = [
382
+ ne
383
+ ], re = /* @__PURE__ */ X(() => /* @__PURE__ */ t("div", { class: "column-title-2" }, null, -1)), de = ["onClick"], ce = {
361
384
  __name: "ScrollColumns",
362
385
  props: {
363
386
  availablePlayers: {
@@ -369,71 +392,119 @@ const Vt = /* @__PURE__ */ Ct(A, [["render", Mt], ["__scopeId", "data-v-f3ee6b2b
369
392
  default: !1
370
393
  }
371
394
  },
372
- emits: ["expand", "open-media"],
373
- setup(e, { expose: d, emit: o }) {
374
- const u = e, p = m(null), h = m(null), y = m(0);
395
+ emits: ["expand", "open-media", "click-parameters", "sort"],
396
+ setup(s, { expose: f, emit: l }) {
397
+ const v = s, C = m(null), h = m(null), L = m(0);
375
398
  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
- let v = "";
382
- return y.value > 0 && document.querySelectorAll(".column-title-2").forEach((w) => {
383
- v += `${w.offsetWidth}px `;
399
+ const E = O(() => {
400
+ const d = v.availablePlayers[0];
401
+ return d ? d.stats : [];
402
+ }), u = O(() => {
403
+ const d = `repeat(${E.value.length}, max-content) 36px`;
404
+ let b = "";
405
+ return L.value > 0 && document.querySelectorAll(".column-title-2").forEach((y) => {
406
+ b += `${y.offsetWidth}px `;
384
407
  }), {
385
- "--grid-template-columns": b,
386
- "--grid-template-columns-totals": v || b
408
+ "--grid-template-columns": d,
409
+ "--grid-template-columns-totals": b || d
387
410
  };
388
411
  });
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;
412
+ function _() {
413
+ C.value = new ResizeObserver((d) => {
414
+ for (const b of d) {
415
+ const { width: p } = b.contentRect;
416
+ L.value = p;
394
417
  }
395
- }), p.value.observe(h.value);
418
+ }), C.value.observe(h.value);
396
419
  }
397
- function M(b, v) {
398
- const w = document.querySelectorAll(".scrollable-row-totals")[b + 1];
399
- w && (w.style.marginTop = `${v}px`);
420
+ function z(d, b) {
421
+ const y = document.querySelectorAll(".scrollable-row-totals")[d + 1];
422
+ y && (y.style.marginTop = `${b}px`);
400
423
  }
401
- function R({ player: b, stat: v }) {
402
- !v.total || v === "0%" || !v.seasons || !v.seasons.length || o("open-media", { ...b, stat: v });
424
+ function I({ player: d, stat: b }) {
425
+ !b.total || b === "0%" || !b.seasons || !b.seasons.length || l("open-media", { ...d, stat: b });
403
426
  }
404
- return K(() => {
405
- f();
406
- }), d({
407
- setMarginTopDetails: M
408
- }), (b, v) => (l(), n("div", {
427
+ function Z(d) {
428
+ !d || d === "no" || l("click-parameters", d);
429
+ }
430
+ function D(d) {
431
+ l("sort", d);
432
+ }
433
+ return ht(() => {
434
+ _();
435
+ }), f({
436
+ setMarginTopDetails: z
437
+ }), (d, b) => (a(), r("div", {
409
438
  class: "scroll-columns",
410
- style: L(B.value)
439
+ style: B(u.value)
411
440
  }, [
412
- e.isEditMode ? (l(), n("div", Rt)) : S("", !0),
441
+ s.isEditMode ? (a(), r("div", te)) : S("", !0),
413
442
  t("div", {
414
443
  ref_key: "titlesRow",
415
444
  ref: h,
416
445
  class: "scrollable-row-2"
417
446
  }, [
418
- (l(!0), n(I, null, O($.value, (C) => (l(), n("div", {
419
- key: `t-${C.category_id}`,
447
+ (a(!0), r(P, null, W(E.value, (p, y) => (a(), r("div", {
448
+ key: `t-${y}`,
420
449
  class: "column-title-2"
421
- }, c(C.name), 1))), 128)),
422
- Tt
450
+ }, [
451
+ p.parameters && p.parameters !== "no" ? (a(), r("div", {
452
+ key: 0,
453
+ class: "parameters",
454
+ role: "button",
455
+ onClick: (M) => Z(p.parameters)
456
+ }, se, 8, ee)) : S("", !0),
457
+ t("div", le, g(p.name), 1),
458
+ (a(), r("svg", {
459
+ width: "18",
460
+ height: "18",
461
+ viewBox: "0 0 18 18",
462
+ fill: "none",
463
+ xmlns: "http://www.w3.org/2000/svg",
464
+ onClick: (M) => D(p)
465
+ }, ae, 8, ie))
466
+ ]))), 128)),
467
+ re
423
468
  ], 512),
424
- (l(!0), n(I, null, O(e.availablePlayers, (C, w) => (l(), n("div", {
425
- key: `i-${C.id}`,
469
+ (a(!0), r(P, null, W(s.availablePlayers, (p, y) => (a(), r("div", {
470
+ key: `i-${p.id}`,
426
471
  class: "row scrollable-row-totals"
427
472
  }, [
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))
473
+ (a(!0), r(P, null, W(p.stats, (M) => (a(), r("div", {
474
+ key: M.category_id,
475
+ class: x(["row data-info", { odd: y % 2 !== 0, underline: !!M.total && M.total !== "0%" && M.seasons && M.seasons.length }])
476
+ }, [
477
+ t("span", {
478
+ onClick: (A) => I({ player: p, stat: M })
479
+ }, g(M.total), 9, de)
480
+ ], 2))), 128))
433
481
  ]))), 128))
434
482
  ], 4));
435
483
  }
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", {
484
+ }, ue = /* @__PURE__ */ pt(ce, [["__scopeId", "data-v-df83603b"]]), c = (s) => (q("data-v-4cd58a78"), s = s(), U(), s), fe = /* @__PURE__ */ c(() => /* @__PURE__ */ t("div", { class: "top-scroll-spacer" }, null, -1)), ve = { class: "table__static-column" }, he = { class: "static-title column-title restore" }, pe = /* @__PURE__ */ c(() => /* @__PURE__ */ t("div", { class: "titles-left" }, [
485
+ /* @__PURE__ */ t("div", { class: "title" }, "Ranking"),
486
+ /* @__PURE__ */ t("div", { class: "title" }, "Agregar a lista")
487
+ ], -1)), ge = /* @__PURE__ */ c(() => /* @__PURE__ */ t("svg", {
488
+ width: "16",
489
+ height: "16",
490
+ viewBox: "0 0 16 16",
491
+ fill: "none",
492
+ xmlns: "http://www.w3.org/2000/svg"
493
+ }, [
494
+ /* @__PURE__ */ t("g", {
495
+ opacity: ".6",
496
+ stroke: "#fff",
497
+ "stroke-width": "1.333",
498
+ "stroke-linecap": "round",
499
+ "stroke-linejoin": "round"
500
+ }, [
501
+ /* @__PURE__ */ t("path", { d: "M15.333 2.667v4h-4M.667 13.333v-4h4" }),
502
+ /* @__PURE__ */ t("path", { d: "M2.34 6a6 6 0 0 1 9.9-2.24l3.094 2.906M.667 9.333l3.093 2.906a6 6 0 0 0 9.9-2.24" })
503
+ ])
504
+ ], -1)), _e = /* @__PURE__ */ c(() => /* @__PURE__ */ t("div", null, "Restaurar orden", -1)), me = [
505
+ ge,
506
+ _e
507
+ ], Ce = ["id"], we = { class: "container" }, ke = { class: "details-row__info" }, be = { class: "details-row__info__personal" }, ye = { class: "bold" }, xe = { class: "bold" }, Se = { class: "bold" }, Le = { class: "bold" }, Me = { class: "details-row__info__games" }, $e = { class: "bold" }, Be = { class: "bold" }, Ee = ["onClick"], Re = /* @__PURE__ */ c(() => /* @__PURE__ */ t("div", null, "Ver gráfica", -1)), Te = /* @__PURE__ */ c(() => /* @__PURE__ */ t("svg", {
437
508
  width: "17",
438
509
  height: "16",
439
510
  viewBox: "0 0 17 16",
@@ -456,10 +527,10 @@ const Vt = /* @__PURE__ */ Ct(A, [["render", Mt], ["__scopeId", "data-v-f3ee6b2b
456
527
  })
457
528
  ])
458
529
  ])
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", {
530
+ ], -1)), Pe = [
531
+ Re,
532
+ Te
533
+ ], Ie = ["onClick"], Oe = /* @__PURE__ */ c(() => /* @__PURE__ */ t("div", null, "Eliminar de lista", -1)), De = /* @__PURE__ */ c(() => /* @__PURE__ */ t("svg", {
463
534
  width: "17",
464
535
  height: "15",
465
536
  viewBox: "0 0 20 18",
@@ -490,10 +561,10 @@ const Vt = /* @__PURE__ */ Ct(A, [["render", Mt], ["__scopeId", "data-v-f3ee6b2b
490
561
  "stroke-linecap": "round",
491
562
  "stroke-linejoin": "round"
492
563
  })
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", {
564
+ ], -1)), Ve = [
565
+ Oe,
566
+ De
567
+ ], Fe = ["onClick"], ze = /* @__PURE__ */ c(() => /* @__PURE__ */ t("div", null, "Agregar a lista", -1)), Ae = /* @__PURE__ */ c(() => /* @__PURE__ */ t("svg", {
497
568
  width: "20",
498
569
  height: "20",
499
570
  viewBox: "0 0 20 20",
@@ -524,69 +595,132 @@ const Vt = /* @__PURE__ */ Ct(A, [["render", Mt], ["__scopeId", "data-v-f3ee6b2b
524
595
  "stroke-linecap": "round",
525
596
  "stroke-linejoin": "round"
526
597
  })
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", {
598
+ ], -1)), je = [
599
+ ze,
600
+ Ae
601
+ ], We = ["onClick"], Ze = /* @__PURE__ */ c(() => /* @__PURE__ */ t("div", null, "Ver perfil", -1)), He = [
602
+ Ze
603
+ ], Ge = { class: "static-row__info-player" }, Ne = { class: "position" }, qe = ["onClick"], Ue = /* @__PURE__ */ c(() => /* @__PURE__ */ t("path", {
533
604
  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
605
  stroke: "white",
535
606
  "stroke-opacity": "0.5",
536
607
  "stroke-width": "1.5",
537
608
  "stroke-linecap": "round",
538
609
  "stroke-linejoin": "round"
539
- }, null, -1)), ve = /* @__PURE__ */ g(() => /* @__PURE__ */ t("path", {
610
+ }, null, -1)), Je = /* @__PURE__ */ c(() => /* @__PURE__ */ t("path", {
540
611
  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
612
  stroke: "white",
542
613
  "stroke-opacity": "0.5",
543
614
  "stroke-width": "1.5",
544
615
  "stroke-linecap": "round",
545
616
  "stroke-linejoin": "round"
546
- }, null, -1)), pe = /* @__PURE__ */ g(() => /* @__PURE__ */ t("path", {
617
+ }, null, -1)), Xe = /* @__PURE__ */ c(() => /* @__PURE__ */ t("path", {
547
618
  d: "M18.332 8.16663H13.332",
548
619
  stroke: "white",
549
620
  "stroke-opacity": "0.5",
550
621
  "stroke-width": "1.5",
551
622
  "stroke-linecap": "round",
552
623
  "stroke-linejoin": "round"
553
- }, null, -1)), _e = [
554
- fe,
555
- ve,
556
- pe
557
- ], ge = ["onClick"], be = /* @__PURE__ */ g(() => /* @__PURE__ */ t("path", {
624
+ }, null, -1)), Ke = [
625
+ Ue,
626
+ Je,
627
+ Xe
628
+ ], Qe = {
629
+ key: 1,
630
+ class: "add-to-list"
631
+ }, Ye = ["onClick"], to = /* @__PURE__ */ c(() => /* @__PURE__ */ t("path", {
558
632
  d: "M13.2016 17.2012V15.601C13.2016 14.7522 12.8645 13.9381 12.2643 13.3379C11.664 12.7377 10.85 12.4005 10.0012 12.4005H5.20047C4.35165 12.4005 3.5376 12.7377 2.9374 13.3379C2.33719 13.9381 2 14.7522 2 15.601V17.2012",
559
633
  stroke: "white",
560
634
  "stroke-opacity": "1",
561
635
  "stroke-width": "1.44023",
562
636
  "stroke-linecap": "round",
563
637
  "stroke-linejoin": "round"
564
- }, null, -1)), me = /* @__PURE__ */ g(() => /* @__PURE__ */ t("path", {
638
+ }, null, -1)), eo = /* @__PURE__ */ c(() => /* @__PURE__ */ t("path", {
565
639
  d: "M7.60086 9.19977C9.36843 9.19977 10.8013 7.76687 10.8013 5.9993C10.8013 4.23173 9.36843 2.79883 7.60086 2.79883C5.83329 2.79883 4.40039 4.23173 4.40039 5.9993C4.40039 7.76687 5.83329 9.19977 7.60086 9.19977Z",
566
640
  stroke: "white",
567
641
  "stroke-opacity": "1",
568
642
  "stroke-width": "1.44023",
569
643
  "stroke-linecap": "round",
570
644
  "stroke-linejoin": "round"
571
- }, null, -1)), Ce = /* @__PURE__ */ g(() => /* @__PURE__ */ t("path", {
645
+ }, null, -1)), oo = /* @__PURE__ */ c(() => /* @__PURE__ */ t("path", {
572
646
  d: "M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",
573
647
  stroke: "white",
574
648
  "stroke-opacity": "1",
575
649
  "stroke-width": "1.44023",
576
650
  "stroke-linecap": "round",
577
651
  "stroke-linejoin": "round"
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", {
652
+ }, null, -1)), so = [
653
+ to,
654
+ eo,
655
+ oo
656
+ ], lo = { class: "player-photo" }, io = ["src"], no = { class: "player-name" }, ao = { class: "arrow" }, ro = ["onClick"], co = /* @__PURE__ */ c(() => /* @__PURE__ */ t("path", {
583
657
  "fill-rule": "evenodd",
584
658
  "clip-rule": "evenodd",
585
659
  d: "M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",
586
660
  fill: "#D9D9D9"
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 = {
661
+ }, null, -1)), uo = [
662
+ co
663
+ ], fo = { class: "titles scrollable-row" }, vo = { class: "column-title" }, ho = /* @__PURE__ */ c(() => /* @__PURE__ */ t("div", null, " Equipo ", -1)), po = /* @__PURE__ */ c(() => /* @__PURE__ */ t("g", {
664
+ opacity: ".5",
665
+ stroke: "#fff",
666
+ "stroke-width": "1.677",
667
+ "stroke-linecap": "round",
668
+ "stroke-linejoin": "round"
669
+ }, [
670
+ /* @__PURE__ */ t("path", { d: "M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67" })
671
+ ], -1)), go = [
672
+ po
673
+ ], _o = { class: "column-title" }, mo = /* @__PURE__ */ c(() => /* @__PURE__ */ t("div", null, " Posición ", -1)), Co = /* @__PURE__ */ c(() => /* @__PURE__ */ t("g", {
674
+ opacity: ".5",
675
+ stroke: "#fff",
676
+ "stroke-width": "1.677",
677
+ "stroke-linecap": "round",
678
+ "stroke-linejoin": "round"
679
+ }, [
680
+ /* @__PURE__ */ t("path", { d: "M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67" })
681
+ ], -1)), wo = [
682
+ Co
683
+ ], ko = { class: "column-title" }, bo = /* @__PURE__ */ c(() => /* @__PURE__ */ t("div", null, " Edad ", -1)), yo = /* @__PURE__ */ c(() => /* @__PURE__ */ t("g", {
684
+ opacity: ".5",
685
+ stroke: "#fff",
686
+ "stroke-width": "1.677",
687
+ "stroke-linecap": "round",
688
+ "stroke-linejoin": "round"
689
+ }, [
690
+ /* @__PURE__ */ t("path", { d: "M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67" })
691
+ ], -1)), xo = [
692
+ yo
693
+ ], So = /* @__PURE__ */ c(() => /* @__PURE__ */ t("div", { class: "column-title" }, "País", -1)), Lo = { class: "column-title" }, Mo = /* @__PURE__ */ c(() => /* @__PURE__ */ t("div", null, " Partidos Jugados ", -1)), $o = /* @__PURE__ */ c(() => /* @__PURE__ */ t("g", {
694
+ opacity: ".5",
695
+ stroke: "#fff",
696
+ "stroke-width": "1.677",
697
+ "stroke-linecap": "round",
698
+ "stroke-linejoin": "round"
699
+ }, [
700
+ /* @__PURE__ */ t("path", { d: "M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67" })
701
+ ], -1)), Bo = [
702
+ $o
703
+ ], Eo = { class: "column-title" }, Ro = /* @__PURE__ */ c(() => /* @__PURE__ */ t("div", null, " Minutos Jugados ", -1)), To = /* @__PURE__ */ c(() => /* @__PURE__ */ t("g", {
704
+ opacity: ".5",
705
+ stroke: "#fff",
706
+ "stroke-width": "1.677",
707
+ "stroke-linecap": "round",
708
+ "stroke-linejoin": "round"
709
+ }, [
710
+ /* @__PURE__ */ t("path", { d: "M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67" })
711
+ ], -1)), Po = [
712
+ To
713
+ ], Io = { class: "column-title" }, Oo = /* @__PURE__ */ c(() => /* @__PURE__ */ t("div", null, " Liga ", -1)), Do = /* @__PURE__ */ c(() => /* @__PURE__ */ t("g", {
714
+ opacity: ".5",
715
+ stroke: "#fff",
716
+ "stroke-width": "1.677",
717
+ "stroke-linecap": "round",
718
+ "stroke-linejoin": "round"
719
+ }, [
720
+ /* @__PURE__ */ t("path", { d: "M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67" })
721
+ ], -1)), Vo = [
722
+ Do
723
+ ], Fo = /* @__PURE__ */ c(() => /* @__PURE__ */ t("div", { class: "column-title" }, "Videos", -1)), zo = { class: "team-logo" }, Ao = ["src"], jo = { class: "team-name data-info" }, Wo = ["src"], Zo = {
590
724
  __name: "GSC-TableScrollable",
591
725
  props: {
592
726
  players: {
@@ -604,6 +738,14 @@ const Vt = /* @__PURE__ */ Ct(A, [["render", Mt], ["__scopeId", "data-v-f3ee6b2b
604
738
  isTableFromList: {
605
739
  type: Boolean,
606
740
  default: !1
741
+ },
742
+ isGraphButtonVisible: {
743
+ type: Boolean,
744
+ default: !0
745
+ },
746
+ isAddToListButtonVisible: {
747
+ type: Boolean,
748
+ default: !0
607
749
  }
608
750
  },
609
751
  emits: [
@@ -611,61 +753,122 @@ const Vt = /* @__PURE__ */ Ct(A, [["render", Mt], ["__scopeId", "data-v-f3ee6b2b
611
753
  "view-profile",
612
754
  "add-to-list",
613
755
  "view-graph",
614
- "open-media"
756
+ "open-media",
757
+ "click-parameters"
615
758
  ],
616
- setup(e, { emit: d }) {
617
- const o = e;
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(() => ({
622
- "--width-details": `${B.value}px`,
623
- "--gap-static-row": `${v.value ? "8px" : "18px"}`,
624
- "--width-static-column": `${v.value ? "50%" : "256px"}`
625
- })), v = V(() => B.value < 600);
759
+ setup(s, { emit: f }) {
760
+ const l = s;
761
+ let v = null, C = null;
762
+ const h = m([]), L = m(null), E = m(null), u = m(null), _ = m(0), z = m(0), I = m(-1), Z = m(!1), D = m(null), d = m(null), b = m(null), p = m([]), y = m([
763
+ {
764
+ name: "team_abrev",
765
+ isDesc: !1,
766
+ isRoot: !0
767
+ },
768
+ {
769
+ name: "player_position",
770
+ isDesc: !1,
771
+ isRoot: !0
772
+ },
773
+ {
774
+ name: "player_age",
775
+ isDesc: !1,
776
+ isRoot: !0
777
+ },
778
+ {
779
+ name: "player_games",
780
+ isDesc: !1,
781
+ isRoot: !0
782
+ },
783
+ {
784
+ name: "player_min",
785
+ isDesc: !1,
786
+ isRoot: !0
787
+ },
788
+ {
789
+ name: "league_name",
790
+ isDesc: !1,
791
+ isRoot: !0
792
+ }
793
+ ]), M = m(0), A = m("922px"), K = O(() => ({
794
+ "--width-details": `${_.value}px`,
795
+ "--gap-static-row": `${N.value ? "8px" : "18px"}`,
796
+ "--width-static-column": `${N.value ? "50%" : "436px"}`
797
+ })), N = O(() => _.value < 600);
626
798
  F(
627
- () => o.players,
628
- (s) => {
629
- s && s.length && (h.value = s.map((a, i) => {
630
- const r = i + 1;
631
- return {
632
- ...a,
633
- position: r < 10 ? `0${r}` : `${r}`,
799
+ () => l.players,
800
+ (e) => {
801
+ e && e.length && (h.value = e.map((i, o) => {
802
+ const n = o + 1, w = {
803
+ ...i,
804
+ position: n < 10 ? `0${n}` : `${n}`,
634
805
  isSelected: !1,
635
806
  isExpanded: !1,
636
- isOdd: i % 2 !== 0,
637
- index: i
807
+ isOdd: o % 2 !== 0,
808
+ index: o
638
809
  };
639
- }));
810
+ return i.stats && i.stats.length && (w.stats = i.stats.map((k) => ({
811
+ ...k,
812
+ isDesc: !1,
813
+ isRoot: !1
814
+ }))), w.parameters && Object.entries(w.parameters).forEach(([k, $]) => {
815
+ const at = w.stats.find((St) => St.custom_category_id === Number(k));
816
+ at && (at.parameters = $);
817
+ }), w;
818
+ }), p.value = h.value.map((i) => ({
819
+ ...i
820
+ })));
640
821
  },
641
- { immediate: !0 }
822
+ { immediate: !0, deep: !0 }
642
823
  ), F(
643
- () => o.isEditMode,
644
- (s) => {
645
- s && h.value.forEach((a) => {
646
- a.isSelected = !1;
824
+ () => l.isEditMode,
825
+ (e) => {
826
+ e && h.value.forEach((i) => {
827
+ i.isSelected = !1;
647
828
  });
648
829
  }
649
830
  ), F(
650
- f,
651
- (s) => {
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);
831
+ () => b.value,
832
+ (e) => {
833
+ if (e) {
834
+ let i = [...p.value];
835
+ e.isRoot ? i.sort((o, n) => typeof o[e.name] == "string" ? e.isDesc ? o[e.name].localeCompare(n[e.name]) : o[e.name].localeCompare(n[e.name]) * -1 : e.isDesc ? n[e.name] - o[e.name] : o[e.name] - n[e.name]) : i.sort((o, n) => {
836
+ const w = o.stats.find(($) => $.name === e.name), k = n.stats.find(($) => $.name === e.name);
837
+ return typeof w.value == "string" ? e.isDesc ? w.total.localeCompare(k.total) : w.total.localeCompare(k.total) * -1 : e.isDesc ? k.total - w.total : w.total - k.total;
838
+ }), i.forEach((o, n) => {
839
+ o.isOdd = n % 2 !== 0;
840
+ }), p.value = i;
841
+ } else
842
+ p.value.sort((i, o) => i.index - o.index).forEach((i, o) => {
843
+ i.isOdd = o % 2 !== 0;
844
+ });
845
+ },
846
+ { immediate: !0, deep: !0 }
847
+ ), F(
848
+ z,
849
+ (e) => {
850
+ const o = document.querySelectorAll(".static-row")[I.value + 1];
851
+ o && (o.style.marginTop = `${e}px`), l.isGeneral ? gt(I.value, e) : E.value && E.value.setMarginTopDetails(I.value, e), e === 0 && D.value && ot(D.value);
654
852
  }
655
853
  );
656
- function C(s, a) {
657
- const r = document.querySelectorAll(".scrollable-row")[s + 2];
658
- r && (r.style.marginTop = `${a}px`);
854
+ function gt(e, i) {
855
+ const n = document.querySelectorAll(".scrollable-row")[e + 2];
856
+ n && (n.style.marginTop = `${i}px`);
857
+ }
858
+ function _t(e) {
859
+ f("click-parameters", e);
860
+ }
861
+ function R(e) {
862
+ e && (e.isDesc = !e.isDesc), b.value = e;
659
863
  }
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 = {
864
+ function Q(e) {
865
+ const i = e.player || e.objeto_player, o = i ? i.player_id || i.id || i.playerId : e.id || e.player_id, n = {
662
866
  isFeaturedPlayers: !1,
663
867
  mainSectionType: 1,
664
868
  playListType: 2,
665
869
  gameIds: null,
666
- playerIds: i ? [i] : [],
870
+ playerIds: o ? [o] : [],
667
871
  goalkeeperIds: [],
668
- teamId: r || 0,
669
872
  matchResult: [1, 2, 3],
670
873
  categorySingleName: "",
671
874
  isRivalSubject: !1,
@@ -678,28 +881,28 @@ const Vt = /* @__PURE__ */ Ct(A, [["render", Mt], ["__scopeId", "data-v-f3ee6b2b
678
881
  playListTitle: "Jugadas Relevantes"
679
882
  }
680
883
  };
681
- if (s.stat && s.stat.seasons && s.stat.seasons.length || s.seasons && s.seasons.length) {
682
- const P = [
683
- ...s.stat && s.stat.seasons && s.stat.seasons.length ? s.stat.seasons : s.seasons
884
+ if (e.stat && e.stat.parameters && (n.parameters = e.stat.parameters), e.stat && e.stat.seasons && e.stat.seasons.length || e.seasons && e.seasons.length) {
885
+ const w = [
886
+ ...e.stat && e.stat.seasons && e.stat.seasons.length ? e.stat.seasons : e.seasons
684
887
  ];
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);
888
+ w.sort((k, $) => k - $), n.seasonId = w.shift(), n.seasonsIds = w;
889
+ } else (e.season_id || e.seasonId) && (n.seasonId = e.season_id || e.seasonId);
890
+ e.stat ? e.stat.category_id && e.stat.category_id.length ? n.categoryIds = e.stat.category_id : e.stat.custom_category_id && (n.customCategoryIds = [e.stat.custom_category_id]) : n.categoryIds = Ct(e.player_position), f("open-media", n);
688
891
  }
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);
892
+ function mt() {
893
+ v = new ResizeObserver((e) => {
894
+ for (const i of e)
895
+ _.value = i.contentRect.width;
896
+ }), v.observe(L.value);
694
897
  }
695
- function W(s) {
696
- p = new ResizeObserver((a) => {
697
- for (const i of a)
698
- f.value = i.contentRect.height;
699
- }), p.observe(s);
898
+ function Y(e) {
899
+ C = new ResizeObserver((i) => {
900
+ for (const o of i)
901
+ z.value = o.contentRect.height;
902
+ }), C.observe(e);
700
903
  }
701
- function X(s) {
702
- return s === "POR" ? [39, 40, 52, 53, 54, 55, 323, 324, 608, 774, 802] : [
904
+ function Ct(e) {
905
+ return e === "POR" ? [39, 40, 52, 53, 54, 55, 323, 324, 608, 774, 802] : [
703
906
  10,
704
907
  12,
705
908
  14,
@@ -745,245 +948,405 @@ const Vt = /* @__PURE__ */ Ct(A, [["render", Mt], ["__scopeId", "data-v-f3ee6b2b
745
948
  488
746
949
  ];
747
950
  }
748
- function Y(s, a) {
749
- a.isSelected = s;
750
- const i = h.value.filter((r) => r.isSelected);
751
- d("change-selected-players", i);
951
+ function wt(e, i) {
952
+ i.isSelected = e;
953
+ const o = h.value.filter((n) => n.isSelected);
954
+ f("change-selected-players", o);
752
955
  }
753
- function tt(s) {
754
- d("view-profile", s);
956
+ function kt(e) {
957
+ f("view-profile", e);
755
958
  }
756
- function D(s) {
757
- d("delete-from-list", s);
959
+ function tt(e) {
960
+ f("delete-from-list", e);
758
961
  }
759
- function Z(s) {
760
- d("add-to-list", s);
962
+ function et(e) {
963
+ f("add-to-list", e);
761
964
  }
762
- function et(s) {
763
- d("show-graph", s);
965
+ function bt(e) {
966
+ f("show-graph", e);
764
967
  }
765
- function j(s) {
766
- if (s.isExpanded) {
767
- s.isExpanded = !1, R.value = null;
968
+ function ot(e) {
969
+ if (e.isExpanded) {
970
+ e.isExpanded = !1, D.value = null;
768
971
  return;
769
972
  }
770
- const a = h.value.find((x) => x.isExpanded);
771
- if (a && (a.isExpanded = !1), a) {
772
- R.value = s;
973
+ const i = h.value.find((k) => k.isExpanded);
974
+ if (i && (i.isExpanded = !1), i) {
975
+ D.value = e;
773
976
  return;
774
977
  }
775
- const r = document.querySelectorAll(".details-row")[s.index];
776
- M.value = s.index, W(r), s.isExpanded = !0;
978
+ const o = document.querySelectorAll(".details-row");
979
+ let n = -1;
980
+ o.forEach((k, $) => {
981
+ k.id === `dr-${e.id}` && (n = $);
982
+ });
983
+ const w = o[n];
984
+ I.value = n, Y(w), e.isExpanded = !0, h.value.forEach((k) => {
985
+ k.isExpanded = !1;
986
+ }), setTimeout(() => {
987
+ if (!Z.value) {
988
+ const $ = document.querySelectorAll(".details-row")[e.index];
989
+ I.value = e.index, Y($);
990
+ }
991
+ e.isExpanded = !Z.value;
992
+ }, 1);
777
993
  }
778
- return K(() => {
779
- k();
780
- }), (s, a) => (l(), n("div", {
781
- class: "table",
782
- ref_key: "tableSC",
783
- ref: y,
784
- style: L(b.value)
785
- }, [
786
- t("div", zt, [
787
- Et,
788
- (l(!0), n(I, null, O(h.value, (i) => (l(), n("div", {
789
- key: `s-${i.id}`,
790
- class: _(["row static-row", { odd: i.isOdd }])
994
+ let j = !1, H, G, st = function(e) {
995
+ j = !0, H = e.pageX - d.value.offsetLeft, G = d.value.scrollLeft;
996
+ }, lt = function(e) {
997
+ j = !0, H = e.pageX - u.value.offsetLeft, G = u.value.scrollLeft;
998
+ }, T = function() {
999
+ j = !1;
1000
+ };
1001
+ function it(e) {
1002
+ d.value && (d.value.scrollLeft = e.target.scrollLeft);
1003
+ }
1004
+ function nt(e) {
1005
+ u.value && (u.value.scrollLeft = e.target.scrollLeft);
1006
+ }
1007
+ function yt() {
1008
+ d.value && (d.value.addEventListener("mousemove", (e) => {
1009
+ if (!j)
1010
+ return;
1011
+ const o = e.pageX - d.value.offsetLeft - H, n = G - o;
1012
+ d.value.scrollLeft = n, u.value && (u.value.scrollLeft = n);
1013
+ }), d.value.addEventListener("mousedown", st, !1), d.value.addEventListener("mouseup", T, !1), d.value.addEventListener("mouseleave", T, !1), d.value.addEventListener("scroll", nt)), u.value && (u.value.addEventListener("mousemove", (e) => {
1014
+ if (!j)
1015
+ return;
1016
+ const o = e.pageX - u.value.offsetLeft - H, n = G - o;
1017
+ u.value.scrollLeft = n, d.value && (d.value.scrollLeft = n);
1018
+ }), u.value.addEventListener("mousedown", lt, !1), u.value.addEventListener("mouseup", T, !1), u.value.addEventListener("mouseleave", T, !1), u.value.addEventListener("scroll", it));
1019
+ }
1020
+ function xt() {
1021
+ l.isGeneral ? A.value = "922px" : Rt(() => {
1022
+ const e = document.querySelector(".scrollable-row-2");
1023
+ if (e) {
1024
+ const i = window.getComputedStyle(e), o = e.scrollWidth || parseInt(i.width);
1025
+ A.value = `${o}px`;
1026
+ } else if (h.value.length && h.value[0].stats) {
1027
+ const i = h.value[0].stats.length, o = 120;
1028
+ A.value = `${(i + 1) * o}px`;
1029
+ }
1030
+ });
1031
+ }
1032
+ return F(
1033
+ () => [l.players, l.isGeneral],
1034
+ () => {
1035
+ xt();
1036
+ },
1037
+ { immediate: !0 }
1038
+ ), ht(() => {
1039
+ mt(), yt();
1040
+ }), Lt(() => {
1041
+ v && v.disconnect(), C && C.disconnect(), d.value && (d.value.removeEventListener("mousemove", st, !1), d.value.removeEventListener("mouseup", T, !1), d.value.removeEventListener("mouseleave", T, !1), d.value.removeEventListener("scroll", nt)), u.value && (u.value.removeEventListener("mousemove", lt, !1), u.value.removeEventListener("mouseup", T, !1), u.value.removeEventListener("mouseleave", T, !1), u.value.removeEventListener("scroll", it));
1042
+ }), (e, i) => (a(), r(P, null, [
1043
+ t("div", {
1044
+ class: "top-scroll-container",
1045
+ style: B(K.value)
1046
+ }, [
1047
+ fe,
1048
+ t("div", {
1049
+ ref_key: "topScrollableColumns",
1050
+ ref: u,
1051
+ class: "top-scroll"
791
1052
  }, [
792
- H(it, null, {
793
- default: lt(() => [
794
- nt(t("div", {
795
- class: _(["details-row", { odd: i.isOdd }])
796
- }, [
797
- t("div", At, [
798
- t("div", Wt, [
799
- t("div", Dt, [
800
- t("div", null, [
801
- T("Equipo: "),
802
- t("span", Zt, c(i.team_name), 1)
803
- ]),
804
- t("div", null, [
805
- T("Edad: "),
806
- t("span", jt, c(i.player_age) + " Años", 1)
807
- ]),
808
- t("div", null, [
809
- T("Nacionalidad: "),
810
- t("span", Ht, c(i.player_country), 1)
1053
+ t("div", {
1054
+ class: "top-scroll-content",
1055
+ style: B({ width: A.value })
1056
+ }, null, 4)
1057
+ ], 512)
1058
+ ], 4),
1059
+ (a(), r("div", {
1060
+ class: "table",
1061
+ ref_key: "tableSC",
1062
+ ref: L,
1063
+ style: B(K.value),
1064
+ key: M.value
1065
+ }, [
1066
+ t("div", ve, [
1067
+ t("div", he, [
1068
+ pe,
1069
+ t("div", {
1070
+ role: "button",
1071
+ class: "restore-button",
1072
+ onClick: i[0] || (i[0] = (o) => R(null))
1073
+ }, me)
1074
+ ]),
1075
+ (a(!0), r(P, null, W(p.value, (o) => (a(), r("div", {
1076
+ key: `s-${o.id}`,
1077
+ class: x(["row static-row", { odd: o.isOdd }])
1078
+ }, [
1079
+ rt(Mt, null, {
1080
+ default: $t(() => [
1081
+ Bt(t("div", {
1082
+ id: `dr-${o.id}`,
1083
+ class: x(["details-row", { odd: o.isOdd }])
1084
+ }, [
1085
+ t("div", we, [
1086
+ t("div", ke, [
1087
+ t("div", be, [
1088
+ t("div", null, [
1089
+ V("Equipo: "),
1090
+ t("span", ye, g(o.team_name), 1)
1091
+ ]),
1092
+ t("div", null, [
1093
+ V("Edad: "),
1094
+ t("span", xe, g(o.player_age) + " Años", 1)
1095
+ ]),
1096
+ t("div", null, [
1097
+ V("Nacionalidad: "),
1098
+ t("span", Se, g(o.player_country), 1)
1099
+ ]),
1100
+ t("div", null, [
1101
+ V("Posición: "),
1102
+ t("span", Le, g(o.position_name), 1)
1103
+ ])
811
1104
  ]),
812
- t("div", null, [
813
- T("Posición: "),
814
- t("span", Nt, c(i.position_name), 1)
1105
+ t("div", Me, [
1106
+ t("div", null, [
1107
+ V("Partidos Jugados: "),
1108
+ t("span", $e, g(o.player_games), 1)
1109
+ ]),
1110
+ t("div", null, [
1111
+ V("Minutos Jugados: "),
1112
+ t("span", Be, g(o.player_min), 1)
1113
+ ])
815
1114
  ])
816
1115
  ]),
817
- t("div", Gt, [
818
- t("div", null, [
819
- T("Partidos Jugados: "),
820
- t("span", qt, c(i.player_games), 1)
821
- ]),
822
- t("div", null, [
823
- T("Minutos Jugados: "),
824
- t("span", Ut, c(i.player_min), 1)
825
- ])
826
- ])
827
- ]),
828
- t("div", {
829
- class: "details-row__buttons",
830
- style: L(v.value ? "margin-left: 0; gap: 8px;" : "")
831
- }, [
832
- t("div", {
833
- role: "button",
834
- class: "button",
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,
844
- role: "button",
845
- class: "button",
846
- onClick: (r) => Z(i)
847
- }, ne, 8, se)),
848
1116
  t("div", {
849
- role: "button",
850
- class: "button green",
851
- onClick: (r) => tt(i)
852
- }, re, 8, ae)
853
- ], 4)
1117
+ class: "details-row__buttons",
1118
+ style: B(N.value ? "margin-left: 0; gap: 8px;" : "")
1119
+ }, [
1120
+ s.isGraphButtonVisible ? (a(), r("div", {
1121
+ key: 0,
1122
+ role: "button",
1123
+ class: "button",
1124
+ onClick: (n) => bt(o)
1125
+ }, Pe, 8, Ee)) : S("", !0),
1126
+ s.isTableFromList ? (a(), r("div", {
1127
+ key: 1,
1128
+ role: "button",
1129
+ class: "button",
1130
+ onClick: (n) => tt(o)
1131
+ }, Ve, 8, Ie)) : s.isAddToListButtonVisible ? (a(), r("div", {
1132
+ key: 2,
1133
+ role: "button",
1134
+ class: "button",
1135
+ onClick: (n) => et(o)
1136
+ }, je, 8, Fe)) : S("", !0),
1137
+ t("div", {
1138
+ role: "button",
1139
+ class: "button green",
1140
+ onClick: (n) => kt(o)
1141
+ }, He, 8, We)
1142
+ ], 4)
1143
+ ])
1144
+ ], 10, Ce), [
1145
+ [Et, o.isExpanded]
854
1146
  ])
855
- ], 2), [
856
- [at, i.isExpanded]
857
- ])
858
- ]),
859
- _: 2
860
- }, 1024),
861
- e.isEditMode ? (l(), N(G(mt), {
862
- key: 0,
863
- fontFamily: "Poppins-Regular",
864
- labelFontSize: "14px",
865
- "model-value": i.isSelected,
866
- "onUpdate:modelValue": (r) => Y(r, i)
867
- }, null, 8, ["model-value", "onUpdate:modelValue"])) : S("", !0),
868
- t("div", ce, [
869
- t("div", ue, c(i.position), 1),
870
- e.isTableFromList ? (l(), n("svg", {
1147
+ ]),
1148
+ _: 2
1149
+ }, 1024),
1150
+ s.isEditMode ? (a(), dt(ct(Wt), {
871
1151
  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,
880
- width: "20",
881
- height: "20",
882
- viewBox: "0 0 20 20",
883
- fill: "none",
884
- xmlns: "http://www.w3.org/2000/svg",
885
- onClick: (r) => Z(i)
886
- }, ye, 8, ge)),
887
- t("div", we, [
888
- t("div", null, [
889
- t("img", {
890
- src: i.player_photo,
891
- alt: "player photo"
892
- }, null, 8, ke)
893
- ])
1152
+ fontFamily: "Poppins-Regular",
1153
+ labelFontSize: "14px",
1154
+ "model-value": o.isSelected,
1155
+ "onUpdate:modelValue": (n) => wt(n, o)
1156
+ }, null, 8, ["model-value", "onUpdate:modelValue"])) : S("", !0),
1157
+ t("div", Ge, [
1158
+ t("div", Ne, g(o.position), 1),
1159
+ s.isTableFromList ? (a(), r("svg", {
1160
+ key: 0,
1161
+ width: "20",
1162
+ height: "20",
1163
+ viewBox: "0 0 20 20",
1164
+ fill: "none",
1165
+ xmlns: "http://www.w3.org/2000/svg",
1166
+ onClick: (n) => tt(o)
1167
+ }, Ke, 8, qe)) : (a(), r("div", Qe, [
1168
+ (a(), r("svg", {
1169
+ width: "20",
1170
+ height: "20",
1171
+ viewBox: "0 0 20 20",
1172
+ fill: "none",
1173
+ xmlns: "http://www.w3.org/2000/svg",
1174
+ onClick: (n) => et(o)
1175
+ }, so, 8, Ye))
1176
+ ])),
1177
+ t("div", lo, [
1178
+ t("div", null, [
1179
+ t("img", {
1180
+ src: o.player_photo,
1181
+ alt: "player photo"
1182
+ }, null, 8, io)
1183
+ ])
1184
+ ]),
1185
+ t("div", no, g(o.player_name), 1)
894
1186
  ]),
895
- t("div", xe, c(i.player_name), 1)
896
- ]),
897
- t("div", Se, [
898
- (l(), n("svg", {
899
- class: _(["_arrowExpandIcon_6ak64_1115 _rotate_6ak64_5", { expanded: i.isExpanded }]),
900
- width: "12",
901
- height: "8",
902
- viewBox: "0 0 12 8",
903
- fill: "#D9D9D9",
904
- xmlns: "http://www.w3.org/2000/svg",
905
- onClick: (r) => j(i)
906
- }, Be, 10, Le))
907
- ])
908
- ], 2))), 128))
909
- ]),
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", {
914
- key: `i-${i.id}`,
915
- class: "row scrollable-row"
916
- }, [
917
- t("div", {
918
- class: _(["row team-info", { odd: i.isOdd }])
919
- }, [
920
- t("div", Ie, [
921
- t("img", {
922
- src: i.team_logo,
923
- alt: "team logo"
924
- }, null, 8, Re)
1187
+ t("div", ao, [
1188
+ (a(), r("svg", {
1189
+ class: x(["_arrowExpandIcon_6ak64_1115 _rotate_6ak64_5", { expanded: o.isExpanded }]),
1190
+ width: "12",
1191
+ height: "8",
1192
+ viewBox: "0 0 12 8",
1193
+ fill: "#D9D9D9",
1194
+ xmlns: "http://www.w3.org/2000/svg",
1195
+ onClick: (n) => ot(o)
1196
+ }, uo, 10, ro))
1197
+ ])
1198
+ ], 2))), 128))
1199
+ ]),
1200
+ t("div", {
1201
+ ref_key: "scrollableColumns",
1202
+ ref: d,
1203
+ class: "table__scrollable-columns"
1204
+ }, [
1205
+ s.isGeneral ? (a(), r(P, { key: 0 }, [
1206
+ t("div", fo, [
1207
+ t("div", vo, [
1208
+ ho,
1209
+ (a(), r("svg", {
1210
+ width: "18",
1211
+ height: "18",
1212
+ viewBox: "0 0 18 18",
1213
+ fill: "none",
1214
+ xmlns: "http://www.w3.org/2000/svg",
1215
+ onClick: i[1] || (i[1] = (o) => R(y.value[0]))
1216
+ }, go))
925
1217
  ]),
926
- t("div", Te, c(i.team_abrev), 1)
927
- ], 2),
928
- t("div", {
929
- class: _(["row data-info", { odd: i.isOdd }])
930
- }, c(i.player_position), 3),
931
- t("div", {
932
- class: _(["row data-info", { odd: i.isOdd }])
933
- }, c(i.player_age), 3),
934
- t("div", {
935
- class: _(["row data-info", { odd: i.isOdd }])
936
- }, [
937
- t("img", {
938
- src: i.player_country_flag,
939
- alt: "player country flag",
940
- class: "country-flag"
941
- }, null, 8, Oe)
942
- ], 2),
943
- t("div", {
944
- class: _(["row data-info", { odd: i.isOdd }])
945
- }, c(i.player_games), 3),
946
- t("div", {
947
- class: _(["row data-info", { odd: i.isOdd }])
948
- }, c(i.player_min), 3),
949
- t("div", {
950
- class: _(["row data-info", { odd: i.isOdd }])
951
- }, c(i.league_name), 3),
952
- t("div", {
953
- class: _(["row data-info", { odd: i.isOdd }])
1218
+ t("div", _o, [
1219
+ mo,
1220
+ (a(), r("svg", {
1221
+ width: "18",
1222
+ height: "18",
1223
+ viewBox: "0 0 18 18",
1224
+ fill: "none",
1225
+ xmlns: "http://www.w3.org/2000/svg",
1226
+ onClick: i[2] || (i[2] = (o) => R(y.value[1]))
1227
+ }, wo))
1228
+ ]),
1229
+ t("div", ko, [
1230
+ bo,
1231
+ (a(), r("svg", {
1232
+ width: "18",
1233
+ height: "18",
1234
+ viewBox: "0 0 18 18",
1235
+ fill: "none",
1236
+ xmlns: "http://www.w3.org/2000/svg",
1237
+ onClick: i[3] || (i[3] = (o) => R(y.value[2]))
1238
+ }, xo))
1239
+ ]),
1240
+ So,
1241
+ t("div", Lo, [
1242
+ Mo,
1243
+ (a(), r("svg", {
1244
+ width: "18",
1245
+ height: "18",
1246
+ viewBox: "0 0 18 18",
1247
+ fill: "none",
1248
+ xmlns: "http://www.w3.org/2000/svg",
1249
+ onClick: i[4] || (i[4] = (o) => R(y.value[3]))
1250
+ }, Bo))
1251
+ ]),
1252
+ t("div", Eo, [
1253
+ Ro,
1254
+ (a(), r("svg", {
1255
+ width: "18",
1256
+ height: "18",
1257
+ viewBox: "0 0 18 18",
1258
+ fill: "none",
1259
+ xmlns: "http://www.w3.org/2000/svg",
1260
+ onClick: i[5] || (i[5] = (o) => R(y.value[4]))
1261
+ }, Po))
1262
+ ]),
1263
+ t("div", Io, [
1264
+ Oo,
1265
+ (a(), r("svg", {
1266
+ width: "18",
1267
+ height: "18",
1268
+ viewBox: "0 0 18 18",
1269
+ fill: "none",
1270
+ xmlns: "http://www.w3.org/2000/svg",
1271
+ onClick: i[6] || (i[6] = (o) => R(y.value[5]))
1272
+ }, Vo))
1273
+ ]),
1274
+ Fo
1275
+ ]),
1276
+ (a(!0), r(P, null, W(p.value, (o) => (a(), r("div", {
1277
+ key: `i-${o.id}`,
1278
+ class: "row scrollable-row"
954
1279
  }, [
955
- H(G(Vt), {
956
- icon: "https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png",
957
- "icon-size": "19px",
958
- "icon-position": "left",
959
- width: "98px",
960
- height: "30px",
961
- "border-radius": "30px",
962
- "border-width": "1",
963
- "background-color": "#ffffff1a",
964
- "font-family": "Poppins-Regular",
965
- "border-color": "#55636e",
966
- "text-value": "Ver videos",
967
- "font-size": "10px",
968
- onClick: (r) => w(i)
969
- }, null, 8, ["onClick"])
970
- ], 2),
971
- t("div", {
972
- class: _(["row data-info", { odd: i.isOdd }])
973
- }, null, 2)
974
- ]))), 128))
975
- ], 64)) : (l(), N(Pt, {
976
- key: 1,
977
- ref_key: "scrollColumns",
978
- ref: $,
979
- "available-players": h.value,
980
- "is-edit-mode": e.isEditMode,
981
- onOpenMedia: w
982
- }, null, 8, ["available-players", "is-edit-mode"]))
983
- ])
984
- ], 4));
1280
+ t("div", {
1281
+ class: x(["row team-info", { odd: o.isOdd }])
1282
+ }, [
1283
+ t("div", zo, [
1284
+ t("img", {
1285
+ src: o.team_logo,
1286
+ alt: "team logo"
1287
+ }, null, 8, Ao)
1288
+ ]),
1289
+ t("div", jo, g(o.team_abrev), 1)
1290
+ ], 2),
1291
+ t("div", {
1292
+ class: x(["row data-info", { odd: o.isOdd }])
1293
+ }, g(o.player_position), 3),
1294
+ t("div", {
1295
+ class: x(["row data-info", { odd: o.isOdd }])
1296
+ }, g(o.player_age), 3),
1297
+ t("div", {
1298
+ class: x(["row data-info", { odd: o.isOdd }])
1299
+ }, [
1300
+ t("img", {
1301
+ src: o.player_country_flag,
1302
+ alt: "player country flag",
1303
+ class: "country-flag"
1304
+ }, null, 8, Wo)
1305
+ ], 2),
1306
+ t("div", {
1307
+ class: x(["row data-info", { odd: o.isOdd }])
1308
+ }, g(o.player_games), 3),
1309
+ t("div", {
1310
+ class: x(["row data-info", { odd: o.isOdd }])
1311
+ }, g(o.player_min), 3),
1312
+ t("div", {
1313
+ class: x(["row data-info", { odd: o.isOdd }])
1314
+ }, g(o.league_name), 3),
1315
+ t("div", {
1316
+ class: x(["row data-info", { odd: o.isOdd }])
1317
+ }, [
1318
+ rt(ct(Yt), {
1319
+ icon: "https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png",
1320
+ "icon-size": "19px",
1321
+ "icon-position": "left",
1322
+ width: "98px",
1323
+ height: "30px",
1324
+ "border-radius": "30px",
1325
+ "border-width": "1",
1326
+ "background-color": "#ffffff1a",
1327
+ "font-family": "Poppins-Regular",
1328
+ "border-color": "#55636e",
1329
+ "text-value": "Ver videos",
1330
+ "font-size": "10px",
1331
+ onClick: (n) => Q(o)
1332
+ }, null, 8, ["onClick"])
1333
+ ], 2)
1334
+ ]))), 128))
1335
+ ], 64)) : (a(), dt(ue, {
1336
+ key: 1,
1337
+ ref_key: "scrollColumns",
1338
+ ref: E,
1339
+ "available-players": p.value,
1340
+ "is-edit-mode": s.isEditMode,
1341
+ onOpenMedia: Q,
1342
+ onClickParameters: _t,
1343
+ onSort: R
1344
+ }, null, 8, ["available-players", "is-edit-mode"]))
1345
+ ], 512)
1346
+ ], 4))
1347
+ ], 64));
985
1348
  }
986
- }, ze = /* @__PURE__ */ Q(Fe, [["__scopeId", "data-v-378d650a"]]);
1349
+ }, Go = /* @__PURE__ */ pt(Zo, [["__scopeId", "data-v-4cd58a78"]]);
987
1350
  export {
988
- ze as GSCTableScrollable
1351
+ Go as GSCTableScrollable
989
1352
  };