@golstats/gsc-table-scrollable 0.0.1 → 1.0.0

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 J, ref as m, computed as V, watch as P, createElementBlock as a, openBlock as l, normalizeClass as h, createElementVNode as t, createCommentVNode as k, normalizeStyle as L, Fragment as R, toDisplayString as r, pushScopeId as z, popScopeId as D, onMounted as K, renderList as I, createVNode as H, createBlock as j, Transition as et, withCtx as ot, withDirectives as st, createTextVNode as M, vShow as it, unref as G, createStaticVNode as lt } from "vue";
2
+ const at = (e, d) => {
3
+ const o = e.__vccOpts || e;
4
+ for (const [c, p] of d)
5
+ o[c] = p;
6
+ return o;
7
+ }, nt = { key: 1 }, dt = {
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
+ }, rt = ["fill"], ct = {
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
+ }, ut = { class: "checkbox__teams__logo" }, ft = ["src"], vt = { class: "checkbox__teams__logo" }, ht = ["src"], pt = {
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,99 +122,99 @@ 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
+ J((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), 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
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 = V(() => ({
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 = 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
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
+ P(
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 S() {
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 w(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: S
173
173
  }, [
174
- l("div", {
174
+ t("div", {
175
175
  class: "checkbox__box",
176
- style: C(f.value)
176
+ style: L(p.value)
177
177
  }, [
178
- d.value ? (i(), s(B, { key: 0 }, [
179
- e.boxValue ? (i(), s("div", {
178
+ c.value ? (l(), a(R, { 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", nt, [
184
+ (l(), a("svg", dt, [
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, rt)
189
189
  ]))
190
190
  ]))
191
- ], 64)) : S("", !0)
191
+ ], 64)) : k("", !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", ct, [
194
+ t("div", ut, [
195
+ t("img", {
196
+ src: w(e.teamsIds[0]),
197
197
  alt: ""
198
- }, null, 8, at)
198
+ }, null, 8, ft)
199
199
  ]),
200
- l("div", nt, [
201
- l("img", {
202
- src: k(t.teamsIds[1]),
200
+ t("div", vt, [
201
+ t("img", {
202
+ src: w(e.teamsIds[1]),
203
203
  alt: ""
204
- }, null, 8, dt)
204
+ }, null, 8, ht)
205
205
  ])
206
- ])) : S("", !0),
207
- l("div", {
206
+ ])) : k("", !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;
213
+ }, _t = /* @__PURE__ */ at(pt, [["__scopeId", "data-v-b6f124d8"]]), bt = (e, d) => {
214
+ const o = e.__vccOpts || e;
215
+ for (const [c, p] of d)
216
+ o[c] = p;
217
+ return o;
218
218
  }, W = {
219
219
  props: {
220
220
  type: { type: Number, default: 0 },
@@ -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,86 @@ 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
+ }, 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
307
307
  }));
308
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 = {
309
+ W.setup = U ? (e, d) => (q(), U(e, d)) : q;
310
+ const gt = (e) => (z("data-v-f3ee6b2b"), e = e(), D(), e), mt = ["src"], yt = {
311
311
  key: 1,
312
312
  class: "text"
313
- }, ht = ["src"], bt = { class: "stats" }, gt = /* @__PURE__ */ ft(() => /* @__PURE__ */ l("img", {
313
+ }, Ct = ["src"], wt = { class: "stats" }, xt = /* @__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)), kt = { class: "numstats" }, St = { class: "leyend" };
317
+ function Lt(e, d, o, c, p, 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", p.status && o.typeOnOff && "button-active"]),
322
+ style: L([u.customStyle, p.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, mt)) : k("", !0),
331
+ o.textValue ? (l(), a("div", yt, r(o.textValue), 1)) : k("", !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, Ct)) : k("", !0)
338
+ ], 6)) : k("", !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", wt, [
345
+ xt,
346
+ t("div", kt, r(o.textStat), 1)
347
347
  ]),
348
- l("div", _t, n(e.textCategory), 1)
349
- ])) : S("", !0)
348
+ t("div", St, r(o.textCategory), 1)
349
+ ])) : k("", !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 $t = /* @__PURE__ */ bt(W, [["render", Lt], ["__scopeId", "data-v-f3ee6b2b"]]), Q = (e, d) => {
353
+ const o = e.__vccOpts || e;
354
+ for (const [c, p] of d)
355
+ o[c] = p;
356
+ return o;
357
+ }, X = (e) => (z("data-v-95767312"), e = e(), D(), 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", {
360
+ }, Vt = /* @__PURE__ */ X(() => /* @__PURE__ */ t("div", { class: "column-title-2" }, null, -1)), Rt = ["onClick"], Mt = ["onClick"], Ot = /* @__PURE__ */ X(() => /* @__PURE__ */ t("path", {
361
361
  "fill-rule": "evenodd",
362
362
  "clip-rule": "evenodd",
363
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
364
  fill: "#D9D9D9"
365
- }, null, -1)), kt = [
366
- Ct
367
- ], $t = {
365
+ }, null, -1)), It = [
366
+ Ot
367
+ ], Tt = {
368
368
  __name: "ScrollColumns",
369
369
  props: {
370
370
  availablePlayers: {
@@ -376,88 +376,179 @@ const E = /* @__PURE__ */ ut(W, [["render", yt], ["__scopeId", "data-v-f3ee6b2b"
376
376
  default: !1
377
377
  }
378
378
  },
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 `;
379
+ emits: ["expand", "open-media"],
380
+ setup(e, { expose: d, emit: o }) {
381
+ const c = e, p = m(null), u = m(null), y = m(0), S = m(!1), w = V(() => {
382
+ const _ = c.availablePlayers[0];
383
+ return _ ? _.stats : [];
384
+ }), f = V(() => {
385
+ const _ = `repeat(${w.value.length}, max-content) 36px`;
386
+ let g = "";
387
+ return y.value > 0 && document.querySelectorAll(".column-title-2").forEach((x) => {
388
+ g += `${x.offsetWidth}px `;
389
389
  }), {
390
- "--grid-template-columns": v,
391
- "--grid-template-columns-totals": y || v
390
+ "--grid-template-columns": _,
391
+ "--grid-template-columns-totals": g || _
392
392
  };
393
393
  });
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;
394
+ function $() {
395
+ p.value = new ResizeObserver((_) => {
396
+ for (const g of _) {
397
+ const { width: b } = g.contentRect;
398
+ y.value = b;
399
399
  }
400
- }), f.value.observe(r.value);
400
+ }), p.value.observe(u.value);
401
401
  }
402
- function O(v) {
403
- console.log("onClickExpand", v), e("expand", v);
402
+ function O(_) {
403
+ S.value = !S.value, o("expand", _);
404
404
  }
405
- function D(v, y) {
406
- const x = document.querySelectorAll(".scrollable-row-totals")[v + 1];
407
- x && (x.style.marginTop = `${y}px`);
405
+ function F(_, g) {
406
+ const x = document.querySelectorAll(".scrollable-row-totals")[_ + 1];
407
+ x && (x.style.marginTop = `${g}px`);
408
408
  }
409
- return G(() => {
410
- c();
411
- }), u({
412
- setMarginTopDetails: D
413
- }), (v, y) => (i(), s("div", {
409
+ function T({ player: _, stat: g }) {
410
+ o("open-media", { ..._, stat: g });
411
+ }
412
+ return K(() => {
413
+ $();
414
+ }), d({
415
+ setMarginTopDetails: F
416
+ }), (_, g) => (l(), a("div", {
414
417
  class: "scroll-columns",
415
- style: C(k.value)
418
+ style: L(f.value)
416
419
  }, [
417
- t.isEditMode ? (i(), s("div", xt)) : S("", !0),
418
- l("div", {
420
+ e.isEditMode ? (l(), a("div", Bt)) : k("", !0),
421
+ t("div", {
419
422
  ref_key: "titlesRow",
420
- ref: r,
423
+ ref: u,
421
424
  class: "scrollable-row-2"
422
425
  }, [
423
- (i(!0), s(B, null, V(w.value, (g) => (i(), s("div", {
424
- key: `t-${g.category_id}`,
426
+ (l(!0), a(R, null, I(w.value, (b) => (l(), a("div", {
427
+ key: `t-${b.category_id}`,
425
428
  class: "column-title-2"
426
- }, n(g.name), 1))), 128)),
427
- St
429
+ }, r(b.name), 1))), 128)),
430
+ Vt
428
431
  ], 512),
429
- (i(!0), s(B, null, V(t.availablePlayers, (g, x) => (i(), s("div", {
430
- key: `i-${g.id}`,
432
+ (l(!0), a(R, null, I(e.availablePlayers, (b, x) => (l(), a("div", {
433
+ key: `i-${b.id}`,
431
434
  class: "row scrollable-row-totals"
432
435
  }, [
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", {
436
+ (l(!0), a(R, null, I(b.stats, (B) => (l(), a("div", {
437
+ key: B.category_id,
438
+ class: h(["row data-info", { odd: x % 2 !== 0, underline: !!B.total }]),
439
+ onClick: (A) => T({ player: b, stat: B })
440
+ }, r(B.total), 11, Rt))), 128)),
441
+ t("div", {
438
442
  class: h(["row data-info", { odd: x % 2 !== 0 }])
439
443
  }, [
440
- (i(), s("svg", {
441
- onClick: ($) => O(g),
442
- class: "_arrowExpandIcon_6ak64_1115 _rotate_6ak64_5",
444
+ (l(), a("svg", {
445
+ class: h([{ expanded: b.isExpanded }, "_arrowExpandIcon_6ak64_1115 _rotate_6ak64_5 arrow"]),
446
+ onClick: (B) => O(b),
443
447
  width: "12",
444
448
  height: "8",
445
449
  viewBox: "0 0 12 8",
446
450
  fill: "#D9D9D9",
447
451
  xmlns: "http://www.w3.org/2000/svg"
448
- }, kt, 8, wt))
452
+ }, It, 10, Mt))
449
453
  ], 2)
450
454
  ]))), 128))
451
455
  ], 4));
452
456
  }
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", {
457
+ }, Pt = /* @__PURE__ */ Q(Tt, [["__scopeId", "data-v-95767312"]]), C = (e) => (z("data-v-dbafbc83"), e = e(), D(), e), Ft = { class: "table__static-column" }, Et = /* @__PURE__ */ C(() => /* @__PURE__ */ t("div", { class: "static-title column-title" }, null, -1)), zt = { class: "container" }, Dt = { class: "details-row__info" }, Wt = { class: "details-row__info__personal" }, At = { class: "bold" }, Zt = { class: "bold" }, Nt = { class: "bold" }, Ht = { class: "bold" }, jt = { class: "details-row__info__games" }, Gt = { class: "bold" }, qt = { class: "bold" }, Ut = { class: "details-row__buttons" }, Jt = ["onClick"], Kt = /* @__PURE__ */ C(() => /* @__PURE__ */ t("div", null, "Ver gráfica", -1)), Qt = /* @__PURE__ */ C(() => /* @__PURE__ */ t("svg", {
458
+ width: "17",
459
+ height: "16",
460
+ viewBox: "0 0 17 16",
461
+ fill: "none",
462
+ xmlns: "http://www.w3.org/2000/svg"
463
+ }, [
464
+ /* @__PURE__ */ t("g", { "clip-path": "url(#clip0_3514_71971)" }, [
465
+ /* @__PURE__ */ t("path", {
466
+ 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",
467
+ fill: "white"
468
+ })
469
+ ]),
470
+ /* @__PURE__ */ t("defs", null, [
471
+ /* @__PURE__ */ t("clipPath", { id: "clip0_3514_71971" }, [
472
+ /* @__PURE__ */ t("rect", {
473
+ width: "16",
474
+ height: "16",
475
+ fill: "white",
476
+ transform: "translate(0.5)"
477
+ })
478
+ ])
479
+ ])
480
+ ], -1)), Xt = [
481
+ Kt,
482
+ Qt
483
+ ], Yt = ["onClick"], te = /* @__PURE__ */ C(() => /* @__PURE__ */ t("div", null, "Agregar a lista", -1)), ee = /* @__PURE__ */ C(() => /* @__PURE__ */ t("svg", {
484
+ width: "20",
485
+ height: "20",
486
+ viewBox: "0 0 20 20",
487
+ fill: "none",
488
+ xmlns: "http://www.w3.org/2000/svg"
489
+ }, [
490
+ /* @__PURE__ */ t("path", {
491
+ 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",
492
+ stroke: "white",
493
+ "stroke-opacity": "1",
494
+ "stroke-width": "1.44023",
495
+ "stroke-linecap": "round",
496
+ "stroke-linejoin": "round"
497
+ }),
498
+ /* @__PURE__ */ t("path", {
499
+ 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",
500
+ stroke: "white",
501
+ "stroke-opacity": "1",
502
+ "stroke-width": "1.44023",
503
+ "stroke-linecap": "round",
504
+ "stroke-linejoin": "round"
505
+ }),
506
+ /* @__PURE__ */ t("path", {
507
+ d: "M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",
508
+ stroke: "white",
509
+ "stroke-opacity": "1",
510
+ "stroke-width": "1.44023",
511
+ "stroke-linecap": "round",
512
+ "stroke-linejoin": "round"
513
+ })
514
+ ], -1)), oe = [
515
+ te,
516
+ ee
517
+ ], se = ["onClick"], ie = /* @__PURE__ */ C(() => /* @__PURE__ */ t("div", null, "Ver perfil", -1)), le = [
518
+ ie
519
+ ], ae = { class: "static-row__info-player" }, ne = { class: "position" }, de = ["onClick"], re = /* @__PURE__ */ C(() => /* @__PURE__ */ t("path", {
520
+ 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",
521
+ stroke: "white",
522
+ "stroke-opacity": "1",
523
+ "stroke-width": "1.44023",
524
+ "stroke-linecap": "round",
525
+ "stroke-linejoin": "round"
526
+ }, null, -1)), ce = /* @__PURE__ */ C(() => /* @__PURE__ */ t("path", {
527
+ 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",
528
+ stroke: "white",
529
+ "stroke-opacity": "1",
530
+ "stroke-width": "1.44023",
531
+ "stroke-linecap": "round",
532
+ "stroke-linejoin": "round"
533
+ }, null, -1)), ue = /* @__PURE__ */ C(() => /* @__PURE__ */ t("path", {
534
+ d: "M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",
535
+ stroke: "white",
536
+ "stroke-opacity": "1",
537
+ "stroke-width": "1.44023",
538
+ "stroke-linecap": "round",
539
+ "stroke-linejoin": "round"
540
+ }, null, -1)), fe = [
541
+ re,
542
+ ce,
543
+ ue
544
+ ], ve = { class: "player-photo" }, he = ["src"], pe = { class: "player-name" }, _e = { class: "arrow" }, be = ["onClick"], ge = /* @__PURE__ */ C(() => /* @__PURE__ */ t("path", {
454
545
  "fill-rule": "evenodd",
455
546
  "clip-rule": "evenodd",
456
547
  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
548
  fill: "#D9D9D9"
458
- }, null, -1)), Yt = [
459
- Xt
460
- ], te = {
549
+ }, null, -1)), me = [
550
+ ge
551
+ ], ye = { class: "table__scrollable-columns" }, Ce = /* @__PURE__ */ lt('<div class="titles scrollable-row" data-v-dbafbc83><div class="column-title" data-v-dbafbc83>Equipo</div><div class="column-title" data-v-dbafbc83>Posición</div><div class="column-title" data-v-dbafbc83>Edad</div><div class="column-title" data-v-dbafbc83>País</div><div class="column-title" data-v-dbafbc83>Partidos Jugados</div><div class="column-title" data-v-dbafbc83>Minutos Jugados</div><div class="column-title" data-v-dbafbc83>Liga</div><div class="column-title" data-v-dbafbc83>Videos</div><div class="column-title" data-v-dbafbc83></div></div>', 1), we = { class: "team-logo" }, xe = ["src"], ke = { class: "team-name data-info" }, Se = ["src"], Le = {
461
552
  __name: "GSC-TableScrollable",
462
553
  props: {
463
554
  players: {
@@ -473,238 +564,324 @@ const E = /* @__PURE__ */ ut(W, [["render", yt], ["__scopeId", "data-v-f3ee6b2b"
473
564
  default: !1
474
565
  }
475
566
  },
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,
490
- position: p < 10 ? `0${p}` : `${p}`,
567
+ emits: [
568
+ "change-selected-players",
569
+ "view-profile",
570
+ "add-to-list",
571
+ "view-graph",
572
+ "open-media"
573
+ ],
574
+ setup(e, { emit: d }) {
575
+ const o = e;
576
+ let c = null, p = null;
577
+ const u = m([]), y = m(null), S = m(null), w = m(0), f = m(0), $ = m(-1), O = m(!1), F = V(() => ({
578
+ "--width-details": `${w.value}px`,
579
+ "--gap-static-row": `${T.value ? "8px" : "18px"}`,
580
+ "--width-static-column": `${T.value ? "50%" : "256px"}`
581
+ })), T = V(() => w.value < 600);
582
+ P(
583
+ () => o.players,
584
+ (i) => {
585
+ i && i.length && (u.value = i.map((n, s) => {
586
+ const v = s + 1;
587
+ return {
588
+ ...n,
589
+ position: v < 10 ? `0${v}` : `${v}`,
491
590
  isSelected: !1,
492
591
  isExpanded: !1,
493
- isOdd: o % 2 !== 0,
494
- index: o
592
+ isOdd: s % 2 !== 0,
593
+ index: s
495
594
  };
496
595
  }));
497
596
  },
498
597
  { immediate: !0 }
499
- ), T(
500
- () => e.isEditMode,
501
- (a) => {
502
- a && r.value.forEach((b) => {
503
- b.isSelected = !1;
598
+ ), P(
599
+ () => o.isEditMode,
600
+ (i) => {
601
+ i && u.value.forEach((n) => {
602
+ n.isSelected = !1;
504
603
  });
505
604
  }
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);
605
+ ), P(
606
+ f,
607
+ (i) => {
608
+ const s = document.querySelectorAll(".static-row")[$.value + 1];
609
+ s && (s.style.marginTop = `${i}px`), o.isGeneral ? _($.value, i) : S.value && S.value.setMarginTopDetails($.value, i);
511
610
  }
512
611
  );
513
- function v(a) {
514
- console.log("onClickVideos", a);
612
+ function _(i, n) {
613
+ const v = document.querySelectorAll(".scrollable-row")[i + 2];
614
+ v && (v.style.marginTop = `${n}px`);
515
615
  }
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);
616
+ function g(i) {
617
+ const n = i.player, s = n ? n.player_id || n.id || n.playerId : i.id || i.player_id, v = n ? n.team_id || n.teamId : i.team_id || i.teamId, E = {
618
+ seasonId: i.season_id,
619
+ // seasons: player.seasons,
620
+ isFeaturedPlayers: !1,
621
+ mainSectionType: 1,
622
+ playListType: 2,
623
+ gameIds: null,
624
+ playerIds: s ? [s] : [],
625
+ goalkeeperIds: [],
626
+ teamId: v || 0,
627
+ matchResult: [1, 2, 3],
628
+ categorySingleName: "",
629
+ isRivalSubject: !1,
630
+ avoidCategorySingleName: !1,
631
+ currentPlayIndex: 0,
632
+ playData: null,
633
+ lastClashedGameId: null,
634
+ tournamentsLastClashes: null,
635
+ advancedFilter: {
636
+ playListTitle: "Jugadas Relevantes"
637
+ }
638
+ };
639
+ i.stat ? E.customCategoryIds = [i.stat.category_id] : E.categoryIds = B(i.player_position), d("open-media", E);
521
640
  }
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);
641
+ function b() {
642
+ c = new ResizeObserver((i) => {
643
+ for (const n of i)
644
+ w.value = n.contentRect.width;
645
+ }), c.observe(y.value);
527
646
  }
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);
647
+ function x(i) {
648
+ p = new ResizeObserver((n) => {
649
+ for (const s of n)
650
+ f.value = s.contentRect.height;
651
+ }), p.observe(i);
532
652
  }
533
- function $(a) {
534
- console.log("onCilckViewProfile", a);
653
+ function B(i) {
654
+ return i === "POR" ? [39, 40, 52, 53, 54, 55, 323, 324, 608, 774, 802] : [
655
+ 10,
656
+ 12,
657
+ 14,
658
+ 15,
659
+ 27,
660
+ 35,
661
+ 61,
662
+ 217,
663
+ 257,
664
+ 466,
665
+ 519,
666
+ 607,
667
+ 702,
668
+ 730,
669
+ 98,
670
+ 101,
671
+ 109,
672
+ 112,
673
+ 121,
674
+ 122,
675
+ 127,
676
+ 128,
677
+ 135,
678
+ 136,
679
+ 141,
680
+ 142,
681
+ 161,
682
+ 170,
683
+ 179,
684
+ 211,
685
+ 232,
686
+ 235,
687
+ 239,
688
+ 242,
689
+ 282,
690
+ 284,
691
+ 289,
692
+ 291,
693
+ 296,
694
+ 485,
695
+ 486,
696
+ 487,
697
+ 488
698
+ ];
535
699
  }
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;
700
+ function A(i, n) {
701
+ n.isSelected = i;
702
+ const s = u.value.filter((v) => v.isSelected);
703
+ d("change-selected-players", s);
547
704
  }
548
- return G(() => {
549
- y();
550
- }), (a, b) => (i(), s("div", {
705
+ function Y(i) {
706
+ d("view-profile", i);
707
+ }
708
+ function Z(i) {
709
+ d("add-to-list", i);
710
+ }
711
+ function tt(i) {
712
+ d("view-graph", i);
713
+ }
714
+ function N(i) {
715
+ O.value = i.isExpanded, u.value.forEach((n) => {
716
+ n.isExpanded = !1;
717
+ }), setTimeout(() => {
718
+ if (!O.value) {
719
+ const s = document.querySelectorAll(".details-row")[i.index];
720
+ $.value = i.index, x(s);
721
+ }
722
+ i.isExpanded = !O.value;
723
+ }, 200);
724
+ }
725
+ return K(() => {
726
+ b();
727
+ }), (i, n) => (l(), a("div", {
551
728
  class: "table",
552
729
  ref_key: "tableSC",
553
- ref: m,
554
- style: C(D.value)
730
+ ref: y,
731
+ style: L(F.value)
555
732
  }, [
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 }])
733
+ t("div", Ft, [
734
+ Et,
735
+ (l(!0), a(R, null, I(u.value, (s) => (l(), a("div", {
736
+ key: `s-${s.id}`,
737
+ class: h(["row static-row", { odd: s.isOdd }])
561
738
  }, [
562
- R(j, null, {
563
- default: K(() => [
564
- Q(l("div", {
565
- class: h(["details-row", { odd: o.isOdd }])
739
+ H(et, null, {
740
+ default: ot(() => [
741
+ st(t("div", {
742
+ class: h(["details-row", { odd: s.isOdd }])
566
743
  }, [
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)
744
+ t("div", zt, [
745
+ t("div", Dt, [
746
+ t("div", Wt, [
747
+ t("div", null, [
748
+ M("Equipo: "),
749
+ t("span", At, r(s.team_name), 1)
573
750
  ]),
574
- l("div", null, [
575
- z("Edad: "),
576
- l("span", Et, n(o.player_age) + " Años", 1)
751
+ t("div", null, [
752
+ M("Edad: "),
753
+ t("span", Zt, r(s.player_age) + " Años", 1)
577
754
  ]),
578
- l("div", null, [
579
- z("Nacionalidad: "),
580
- l("span", Tt, n(o.player_country), 1)
755
+ t("div", null, [
756
+ M("Nacionalidad: "),
757
+ t("span", Nt, r(s.player_country), 1)
581
758
  ]),
582
- l("div", null, [
583
- z("Posición: "),
584
- l("span", Dt, n(o.position_name), 1)
759
+ t("div", null, [
760
+ M("Posición: "),
761
+ t("span", Ht, r(s.position_name), 1)
585
762
  ])
586
763
  ]),
587
- l("div", It, [
588
- l("div", null, [
589
- z("Partidos Jugados: "),
590
- l("span", Lt, n(o.player_games), 1)
764
+ t("div", jt, [
765
+ t("div", null, [
766
+ M("Partidos Jugados: "),
767
+ t("span", Gt, r(s.player_games), 1)
591
768
  ]),
592
- l("div", null, [
593
- z("Minutos Jugados: "),
594
- l("span", Wt, n(o.player_min), 1)
769
+ t("div", null, [
770
+ M("Minutos Jugados: "),
771
+ t("span", qt, r(s.player_min), 1)
595
772
  ])
596
773
  ])
597
774
  ]),
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"])
775
+ t("div", Ut, [
776
+ t("div", {
777
+ role: "button",
778
+ class: "button",
779
+ onClick: (v) => tt(s)
780
+ }, Xt, 8, Jt),
781
+ t("div", {
782
+ role: "button",
783
+ class: "button",
784
+ onClick: (v) => Z(s)
785
+ }, oe, 8, Yt),
786
+ t("div", {
787
+ role: "button",
788
+ class: "button green",
789
+ onClick: (v) => Y(s)
790
+ }, le, 8, se)
637
791
  ])
638
792
  ])
639
793
  ], 2), [
640
- [X, o.isExpanded]
794
+ [it, s.isExpanded]
641
795
  ])
642
796
  ]),
643
797
  _: 2
644
798
  }, 1024),
645
- t.isEditMode ? (i(), M(F(ct), {
799
+ e.isEditMode ? (l(), j(G(_t), {
646
800
  key: 0,
647
801
  fontFamily: "Poppins-Regular",
648
802
  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)
803
+ "model-value": s.isSelected,
804
+ "onUpdate:modelValue": (v) => A(v, s)
805
+ }, null, 8, ["model-value", "onUpdate:modelValue"])) : k("", !0),
806
+ t("div", ae, [
807
+ t("div", ne, r(s.position), 1),
808
+ (l(), a("svg", {
809
+ width: "20",
810
+ height: "20",
811
+ viewBox: "0 0 20 20",
812
+ fill: "none",
813
+ xmlns: "http://www.w3.org/2000/svg",
814
+ onClick: (v) => Z(s)
815
+ }, fe, 8, de)),
816
+ t("div", ve, [
817
+ t("div", null, [
818
+ t("img", {
819
+ src: s.player_photo,
820
+ alt: "player photo"
821
+ }, null, 8, he)
822
+ ])
823
+ ]),
824
+ t("div", pe, r(s.player_name), 1)
658
825
  ]),
659
- l("div", qt, n(o.player_name), 1)
826
+ t("div", _e, [
827
+ (l(), a("svg", {
828
+ class: h(["_arrowExpandIcon_6ak64_1115 _rotate_6ak64_5", { expanded: s.isExpanded }]),
829
+ width: "12",
830
+ height: "8",
831
+ viewBox: "0 0 12 8",
832
+ fill: "#D9D9D9",
833
+ xmlns: "http://www.w3.org/2000/svg",
834
+ onClick: (v) => N(s)
835
+ }, me, 10, be))
836
+ ])
660
837
  ], 2))), 128))
661
838
  ]),
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}`,
839
+ t("div", ye, [
840
+ e.isGeneral ? (l(), a(R, { key: 0 }, [
841
+ Ce,
842
+ (l(!0), a(R, null, I(u.value, (s) => (l(), a("div", {
843
+ key: `i-${s.id}`,
667
844
  class: "row scrollable-row"
668
845
  }, [
669
- l("div", {
670
- class: h(["row team-info", { odd: o.isOdd }])
846
+ t("div", {
847
+ class: h(["row team-info", { odd: s.isOdd }])
671
848
  }, [
672
- l("div", Jt, [
673
- l("img", {
674
- src: o.team_logo,
849
+ t("div", we, [
850
+ t("img", {
851
+ src: s.team_logo,
675
852
  alt: "team logo"
676
- }, null, 8, Zt)
853
+ }, null, 8, xe)
677
854
  ]),
678
- l("div", jt, n(o.team_abrev), 1)
855
+ t("div", ke, r(s.team_abrev), 1)
679
856
  ], 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 }])
857
+ t("div", {
858
+ class: h(["row data-info", { odd: s.isOdd }])
859
+ }, r(s.player_position), 3),
860
+ t("div", {
861
+ class: h(["row data-info", { odd: s.isOdd }])
862
+ }, r(s.player_age), 3),
863
+ t("div", {
864
+ class: h(["row data-info", { odd: s.isOdd }])
688
865
  }, [
689
- l("img", {
690
- src: o.player_country_flag,
866
+ t("img", {
867
+ src: s.player_country_flag,
691
868
  alt: "player country flag",
692
869
  class: "country-flag"
693
- }, null, 8, Kt)
870
+ }, null, 8, Se)
694
871
  ], 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 }])
872
+ t("div", {
873
+ class: h(["row data-info", { odd: s.isOdd }])
874
+ }, r(s.player_games), 3),
875
+ t("div", {
876
+ class: h(["row data-info", { odd: s.isOdd }])
877
+ }, r(s.player_min), 3),
878
+ t("div", {
879
+ class: h(["row data-info", { odd: s.isOdd }])
880
+ }, r(s.league_name), 3),
881
+ t("div", {
882
+ class: h(["row data-info", { odd: s.isOdd }])
706
883
  }, [
707
- R(F(E), {
884
+ H(G($t), {
708
885
  icon: "https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png",
709
886
  "icon-size": "13px",
710
887
  "icon-position": "left",
@@ -717,35 +894,26 @@ const E = /* @__PURE__ */ ut(W, [["render", yt], ["__scopeId", "data-v-f3ee6b2b"
717
894
  "border-color": "#55636e",
718
895
  "text-value": "Ver videos",
719
896
  "font-size": "10px",
720
- onClick: (p) => v(o)
897
+ onClick: (v) => g(s)
721
898
  }, null, 8, ["onClick"])
722
899
  ], 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)
900
+ t("div", {
901
+ class: h(["row data-info", { odd: s.isOdd }])
902
+ }, null, 2)
736
903
  ]))), 128))
737
- ], 64)) : (i(), M(Bt, {
904
+ ], 64)) : (l(), j(Pt, {
738
905
  key: 1,
739
906
  ref_key: "scrollColumns",
740
- ref: w,
741
- "available-players": r.value,
742
- "is-edit-mode": t.isEditMode,
743
- onExpand: A
907
+ ref: S,
908
+ "available-players": u.value,
909
+ "is-edit-mode": e.isEditMode,
910
+ onOnpenMedia: g,
911
+ onExpand: N
744
912
  }, null, 8, ["available-players", "is-edit-mode"]))
745
913
  ])
746
914
  ], 4));
747
915
  }
748
- }, oe = /* @__PURE__ */ H(te, [["__scopeId", "data-v-f240471a"]]);
916
+ }, Be = /* @__PURE__ */ Q(Le, [["__scopeId", "data-v-dbafbc83"]]);
749
917
  export {
750
- oe as GSCTableScrollable
918
+ Be as GSCTableScrollable
751
919
  };