@golstats/gsc-table-scrollable 0.0.1 → 1.0.1

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