@golstats/gsc-players-and-teams-menu 1.0.13 → 1.0.14

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.
package/README.md CHANGED
@@ -1,15 +1,15 @@
1
-
2
- # thermometer-component
3
-
4
- ### Propiedades
5
- | Nombre de la propiedad | Descripción | Type | Default |
6
- | ------------- | ------------------------------ | ------ | ------ |
7
- | type | tipo de funcionalidad opciones ('teams', 'players') | string | "players" |
8
- | token | token por defecto para que consuma api | [String, undefined] | undefined |
9
- | componentWidth| Ancho del componente padre que habilita el responsivo | Number | 400 |
10
- ---
11
-
12
- ### Comandos
13
-
14
- - para correr el componente de manera local `npm run dev`
1
+
2
+ # thermometer-component
3
+
4
+ ### Propiedades
5
+ | Nombre de la propiedad | Descripción | Type | Default |
6
+ | ------------- | ------------------------------ | ------ | ------ |
7
+ | type | tipo de funcionalidad opciones ('teams', 'players') | string | "players" |
8
+ | token | token por defecto para que consuma api | [String, undefined] | undefined |
9
+ | componentWidth| Ancho del componente padre que habilita el responsivo | Number | 400 |
10
+ ---
11
+
12
+ ### Comandos
13
+
14
+ - para correr el componente de manera local `npm run dev`
15
15
  - para correr construir y publicar `npm run build` `npm publish`
@@ -1,5 +1,5 @@
1
- import { openBlock as s, createElementBlock as d, createElementVNode as r, normalizeClass as B, toDisplayString as v, normalizeStyle as u, ref as b, computed as F, onMounted as R, createVNode as T, unref as w, mergeProps as H, withCtx as z, createCommentVNode as S, watch as N, onBeforeMount as rt, renderSlot as L, Transition as at, withDirectives as lt, Fragment as O, renderList as P, vShow as nt, useCssVars as V, pushScopeId as A, popScopeId as D, createBlock as j, resolveComponent as pt, onUnmounted as ft, toRefs as yt } from "vue";
2
- const G = (e, o) => {
1
+ import { openBlock as s, createElementBlock as d, createElementVNode as r, normalizeClass as B, toDisplayString as v, normalizeStyle as p, ref as b, computed as F, onMounted as R, createVNode as T, unref as w, mergeProps as H, withCtx as z, createCommentVNode as S, watch as N, onBeforeMount as rt, renderSlot as L, Transition as at, withDirectives as lt, Fragment as O, renderList as P, vShow as nt, useCssVars as V, pushScopeId as A, popScopeId as E, createBlock as j, resolveComponent as pt, onUnmounted as ft, toRefs as yt } from "vue";
2
+ const M = (e, o) => {
3
3
  const t = e.__vccOpts || e;
4
4
  for (const [i, c] of o)
5
5
  t[i] = c;
@@ -55,7 +55,7 @@ const G = (e, o) => {
55
55
  r("div", _t, [
56
56
  r("div", {
57
57
  class: "player-card__flag-container",
58
- style: u({ "background-image": `url(${o.countryFlag})` })
58
+ style: p({ "background-image": `url(${o.countryFlag})` })
59
59
  }, null, 4)
60
60
  ])
61
61
  ])
@@ -66,7 +66,7 @@ const G = (e, o) => {
66
66
  ])
67
67
  ]));
68
68
  }
69
- }, Bt = /* @__PURE__ */ G(xt, [["__scopeId", "data-v-c0dbef4c"]]);
69
+ }, Bt = /* @__PURE__ */ M(xt, [["__scopeId", "data-v-c3f2f1a2"]]);
70
70
  const $t = { class: "team-card" }, It = ["src", "alt"], Tt = { class: "team-card__name" }, Ft = {
71
71
  __name: "GscTeamCard",
72
72
  props: {
@@ -87,7 +87,7 @@ const $t = { class: "team-card" }, It = ["src", "alt"], Tt = { class: "team-card
87
87
  return (o, t) => (s(), d("div", $t, [
88
88
  r("div", {
89
89
  class: "team-card__bg-image",
90
- style: u({ "background-image": `url(${e.logo})` })
90
+ style: p({ "background-image": `url(${e.logo})` })
91
91
  }, null, 4),
92
92
  r("img", {
93
93
  class: "team-card__image",
@@ -97,12 +97,12 @@ const $t = { class: "team-card" }, It = ["src", "alt"], Tt = { class: "team-card
97
97
  r("p", Tt, v(e.name), 1)
98
98
  ]));
99
99
  }
100
- }, zt = /* @__PURE__ */ G(Ft, [["__scopeId", "data-v-03b47b65"]]), Wt = (e, o) => {
100
+ }, zt = /* @__PURE__ */ M(Ft, [["__scopeId", "data-v-95d1f882"]]), Wt = (e, o) => {
101
101
  const t = e.__vccOpts || e;
102
102
  for (const [i, c] of o)
103
103
  t[i] = c;
104
104
  return t;
105
- }, M = {
105
+ }, G = {
106
106
  props: {
107
107
  type: { type: Number, default: 0 },
108
108
  value: { type: Boolean, default: !1 },
@@ -192,34 +192,34 @@ const $t = { class: "team-card" }, It = ["src", "alt"], Tt = { class: "team-card
192
192
  "47bf58db": e.marginLeftStat,
193
193
  cadc8414: e.fontSizeStat
194
194
  }));
195
- }, Y = M.setup;
196
- M.setup = Y ? (e, o) => (X(), Y(e, o)) : X;
197
- const Nt = (e) => (A("data-v-fb269a1e"), e = e(), D(), e), Ot = ["src"], Pt = {
195
+ }, Y = G.setup;
196
+ G.setup = Y ? (e, o) => (X(), Y(e, o)) : X;
197
+ const Nt = (e) => (A("data-v-fb269a1e"), e = e(), E(), e), Ot = ["src"], Pt = {
198
198
  key: 1,
199
199
  class: "text"
200
200
  }, Rt = ["src"], Lt = { class: "stats" }, Vt = /* @__PURE__ */ Nt(() => /* @__PURE__ */ r("img", {
201
201
  class: "iconstats",
202
202
  src: "https://az755631.vo.msecnd.net/todoelfut/playdes.png"
203
- }, null, -1)), At = { class: "numstats" }, Dt = { class: "leyend" };
204
- function Et(e, o, t, i, c, n) {
203
+ }, null, -1)), At = { class: "numstats" }, Et = { class: "leyend" };
204
+ function Dt(e, o, t, i, c, n) {
205
205
  return s(), d("div", null, [
206
206
  t.type == 0 ? (s(), d("div", {
207
207
  key: 0,
208
208
  class: B(["button", c.status && t.typeOnOff && "button-active"]),
209
- style: u([n.customStyle, c.status && t.typeOnOff && n.customActive]),
209
+ style: p([n.customStyle, c.status && t.typeOnOff && n.customActive]),
210
210
  onClick: o[0] || (o[0] = (...l) => n.btnClick && n.btnClick(...l))
211
211
  }, [
212
212
  t.icon && t.iconPosition.toLowerCase() === "left" ? (s(), d("img", {
213
213
  key: 0,
214
214
  class: "icon",
215
- style: u({ width: t.iconSize }),
215
+ style: p({ width: t.iconSize }),
216
216
  src: t.icon
217
217
  }, null, 12, Ot)) : S("", !0),
218
218
  t.textValue ? (s(), d("div", Pt, v(t.textValue), 1)) : S("", !0),
219
219
  t.icon && t.iconPosition.toLowerCase() === "right" ? (s(), d("img", {
220
220
  key: 2,
221
221
  class: "icon",
222
- style: u({ width: t.iconSize }),
222
+ style: p({ width: t.iconSize }),
223
223
  src: t.icon
224
224
  }, null, 12, Rt)) : S("", !0)
225
225
  ], 6)) : S("", !0),
@@ -232,11 +232,11 @@ function Et(e, o, t, i, c, n) {
232
232
  Vt,
233
233
  r("div", At, v(t.textStat), 1)
234
234
  ]),
235
- r("div", Dt, v(t.textCategory), 1)
235
+ r("div", Et, v(t.textCategory), 1)
236
236
  ])) : S("", !0)
237
237
  ]);
238
238
  }
239
- const Ht = /* @__PURE__ */ Wt(M, [["render", Et], ["__scopeId", "data-v-fb269a1e"]]), jt = { class: "gsc-dropdown__main-container__item-selected" }, Gt = ["height", "width"], Mt = ["stroke"], Jt = { class: "gsc-dropdown__items-container" }, Ut = ["onClick"], Zt = {
239
+ const Ht = /* @__PURE__ */ Wt(G, [["render", Dt], ["__scopeId", "data-v-fb269a1e"]]), jt = { class: "gsc-dropdown__main-container__item-selected" }, Mt = ["height", "width"], Gt = ["stroke"], Jt = { class: "gsc-dropdown__items-container" }, Ut = ["onClick"], Zt = {
240
240
  key: 0,
241
241
  class: "gsc-dropdown__items-footer"
242
242
  }, qt = {
@@ -387,10 +387,10 @@ const Ht = /* @__PURE__ */ Wt(M, [["render", Et], ["__scopeId", "data-v-fb269a1e
387
387
  (a, m) => {
388
388
  if (!t.modelValue && (!t.onlyFirstTime || !m || !m.length) && a && a.length) {
389
389
  if (t.defaultItemByProp) {
390
- const f = t.items.findIndex(
390
+ const y = t.items.findIndex(
391
391
  (k) => k[t.defaultItemByProp.propName] === t.defaultItemByProp.value
392
392
  );
393
- f !== -1 ? (n.value = f, i.value = a[f]) : (n.value = 0, i.value = a[0]);
393
+ y !== -1 ? (n.value = y, i.value = a[y]) : (n.value = 0, i.value = a[0]);
394
394
  } else
395
395
  i.value = a[t.defaultItemByIndex];
396
396
  o("input", i.value);
@@ -401,7 +401,7 @@ const Ht = /* @__PURE__ */ Wt(M, [["render", Et], ["__scopeId", "data-v-fb269a1e
401
401
  () => t.modelValue,
402
402
  (a) => {
403
403
  if (a) {
404
- const m = t.items.findIndex((f) => typeof a == "object" ? JSON.stringify(f) === JSON.stringify(a) : f === a);
404
+ const m = t.items.findIndex((y) => typeof a == "object" ? JSON.stringify(y) === JSON.stringify(a) : y === a);
405
405
  m !== -1 && (n.value = m, i.value = t.items[m], o("update:modelValue", i.value));
406
406
  }
407
407
  },
@@ -439,7 +439,7 @@ const Ht = /* @__PURE__ */ Wt(M, [["render", Et], ["__scopeId", "data-v-fb269a1e
439
439
  function x(a) {
440
440
  c.value && !c.value.contains(a.target) && (l.value = !1);
441
441
  }
442
- function p(a, m) {
442
+ function f(a, m) {
443
443
  t.isMultipleOption ? n.value = -1 : (n.value = m, l.value = !1), i.value = a, o("input", i.value), o("update:modelValue", i.value);
444
444
  }
445
445
  function g() {
@@ -453,11 +453,11 @@ const Ht = /* @__PURE__ */ Wt(M, [["render", Et], ["__scopeId", "data-v-fb269a1e
453
453
  ref_key: "dropDown",
454
454
  ref: c,
455
455
  class: "gsc-dropdown",
456
- style: u(h.value)
456
+ style: p(h.value)
457
457
  }, [
458
458
  r("div", {
459
459
  class: "gsc-dropdown__main-container",
460
- style: u({ "padding-right": `${e.arrowWidth + 8}px` }),
460
+ style: p({ "padding-right": `${e.arrowWidth + 8}px` }),
461
461
  onClick: $
462
462
  }, [
463
463
  r("div", jt, [
@@ -465,7 +465,7 @@ const Ht = /* @__PURE__ */ Wt(M, [["render", Et], ["__scopeId", "data-v-fb269a1e
465
465
  ]),
466
466
  r("div", {
467
467
  class: B(["gsc-dropdown__main-container__icon", { "rotated-180": l.value }]),
468
- style: u(C.value)
468
+ style: p(C.value)
469
469
  }, [
470
470
  (s(), d("svg", {
471
471
  height: e.arrowHeight,
@@ -477,8 +477,8 @@ const Ht = /* @__PURE__ */ Wt(M, [["render", Et], ["__scopeId", "data-v-fb269a1e
477
477
  r("path", {
478
478
  d: "M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",
479
479
  stroke: e.arrowColor
480
- }, null, 8, Mt)
481
- ], 8, Gt))
480
+ }, null, 8, Gt)
481
+ ], 8, Mt))
482
482
  ], 6)
483
483
  ], 4),
484
484
  T(at, null, {
@@ -487,14 +487,14 @@ const Ht = /* @__PURE__ */ Wt(M, [["render", Et], ["__scopeId", "data-v-fb269a1e
487
487
  r("div", null, [
488
488
  r("div", {
489
489
  class: "gsc-dropdown__items",
490
- style: u({ "margin-top": `${t.borderWidth}px` })
490
+ style: p({ "margin-top": `${t.borderWidth}px` })
491
491
  }, [
492
- (s(!0), d(O, null, P(e.items, (f, k) => (s(), d("div", {
492
+ (s(!0), d(O, null, P(e.items, (y, k) => (s(), d("div", {
493
493
  class: B(["gsc-dropdown__items__item", { selected: k === n.value }]),
494
494
  key: k,
495
- onClick: (W) => p(f, k)
495
+ onClick: (W) => f(y, k)
496
496
  }, [
497
- L(a.$slots, "availableItem", { item: f })
497
+ L(a.$slots, "availableItem", { item: y })
498
498
  ], 10, Ut))), 128))
499
499
  ], 4),
500
500
  e.isFooterVisible ? (s(), d("div", Zt, [
@@ -610,49 +610,49 @@ const Ht = /* @__PURE__ */ Wt(M, [["render", Et], ["__scopeId", "data-v-fb269a1e
610
610
  emits: ["input"],
611
611
  setup(e, { emit: o }) {
612
612
  const t = e, i = b([]), c = F(() => {
613
- const p = {};
614
- return t.fontFamily && (p["font-family"] = `${t.fontFamily}`), p;
613
+ const f = {};
614
+ return t.fontFamily && (f["font-family"] = `${t.fontFamily}`), f;
615
615
  }), n = F(() => i.value.find(
616
- (p) => p.seasonsIds.has(t.currentSeasonId)
616
+ (f) => f.seasonsIds.has(t.currentSeasonId)
617
617
  ) || i.value[0]);
618
618
  async function l() {
619
619
  try {
620
620
  if (t.items && t.items.length)
621
621
  i.value = [...t.items];
622
622
  else if (t.apiUrl) {
623
- const p = await C();
624
- i.value = p.map((g) => ({
623
+ const f = await C();
624
+ i.value = f.map((g) => ({
625
625
  ...g.tournament,
626
626
  seasons: g.seasons,
627
627
  seasonsIds: g.seasons.reduce((a, m) => (a.add(m.id), a), /* @__PURE__ */ new Set())
628
628
  })).sort((g, a) => g.order - a.order);
629
629
  }
630
- } catch (p) {
631
- throw new Error(p);
630
+ } catch (f) {
631
+ throw new Error(f);
632
632
  }
633
633
  }
634
- function h(p) {
635
- const g = new XMLHttpRequest(), a = `${t.logosUrl}${p}.${t.logoFileType}`;
634
+ function h(f) {
635
+ const g = new XMLHttpRequest(), a = `${t.logosUrl}${f}.${t.logoFileType}`;
636
636
  return g.open("HEAD", a, !1), g.send(), g.status !== 404;
637
637
  }
638
638
  async function C() {
639
639
  try {
640
640
  return (await fetch(t.apiUrl)).json();
641
- } catch (p) {
642
- return Promise.reject(p);
641
+ } catch (f) {
642
+ return Promise.reject(f);
643
643
  }
644
644
  }
645
- function $(p) {
646
- o("input", p);
645
+ function $(f) {
646
+ o("input", f);
647
647
  }
648
- function x(p) {
649
- o("input", p);
648
+ function x(f) {
649
+ o("input", f);
650
650
  }
651
651
  return R(() => {
652
652
  l();
653
- }), (p, g) => (s(), d("div", {
653
+ }), (f, g) => (s(), d("div", {
654
654
  class: "tournament-select",
655
- style: u(c.value)
655
+ style: p(c.value)
656
656
  }, [
657
657
  T(w(qt), H(t, {
658
658
  "model-value": n.value,
@@ -776,7 +776,7 @@ const Ht = /* @__PURE__ */ Wt(M, [["render", Et], ["__scopeId", "data-v-fb269a1e
776
776
  }));
777
777
  }, Q = J.setup;
778
778
  J.setup = Q ? (e, o) => (K(), Q(e, o)) : K;
779
- const re = (e) => (A("data-v-fb269a1e"), e = e(), D(), e), ae = ["src"], le = {
779
+ const re = (e) => (A("data-v-fb269a1e"), e = e(), E(), e), ae = ["src"], le = {
780
780
  key: 1,
781
781
  class: "text"
782
782
  }, ne = ["src"], se = { class: "stats" }, de = /* @__PURE__ */ re(() => /* @__PURE__ */ r("img", {
@@ -788,20 +788,20 @@ function pe(e, o, t, i, c, n) {
788
788
  t.type == 0 ? (s(), d("div", {
789
789
  key: 0,
790
790
  class: B(["button", c.status && t.typeOnOff && "button-active"]),
791
- style: u([n.customStyle, c.status && t.typeOnOff && n.customActive]),
791
+ style: p([n.customStyle, c.status && t.typeOnOff && n.customActive]),
792
792
  onClick: o[0] || (o[0] = (...l) => n.btnClick && n.btnClick(...l))
793
793
  }, [
794
794
  t.icon && t.iconPosition.toLowerCase() === "left" ? (s(), d("img", {
795
795
  key: 0,
796
796
  class: "icon",
797
- style: u({ width: t.iconSize }),
797
+ style: p({ width: t.iconSize }),
798
798
  src: t.icon
799
799
  }, null, 12, ae)) : S("", !0),
800
800
  t.textValue ? (s(), d("div", le, v(t.textValue), 1)) : S("", !0),
801
801
  t.icon && t.iconPosition.toLowerCase() === "right" ? (s(), d("img", {
802
802
  key: 2,
803
803
  class: "icon",
804
- style: u({ width: t.iconSize }),
804
+ style: p({ width: t.iconSize }),
805
805
  src: t.icon
806
806
  }, null, 12, ne)) : S("", !0)
807
807
  ], 6)) : S("", !0),
@@ -969,10 +969,10 @@ const fe = /* @__PURE__ */ ie(J, [["render", pe], ["__scopeId", "data-v-fb269a1e
969
969
  (a, m) => {
970
970
  if (!t.modelValue && (!t.onlyFirstTime || !m || !m.length) && a && a.length) {
971
971
  if (t.defaultItemByProp) {
972
- const f = t.items.findIndex(
972
+ const y = t.items.findIndex(
973
973
  (k) => k[t.defaultItemByProp.propName] === t.defaultItemByProp.value
974
974
  );
975
- f !== -1 ? (n.value = f, i.value = a[f]) : (n.value = 0, i.value = a[0]);
975
+ y !== -1 ? (n.value = y, i.value = a[y]) : (n.value = 0, i.value = a[0]);
976
976
  } else
977
977
  i.value = a[t.defaultItemByIndex];
978
978
  o("input", i.value);
@@ -983,7 +983,7 @@ const fe = /* @__PURE__ */ ie(J, [["render", pe], ["__scopeId", "data-v-fb269a1e
983
983
  () => t.modelValue,
984
984
  (a) => {
985
985
  if (a) {
986
- const m = t.items.findIndex((f) => typeof a == "object" ? JSON.stringify(f) === JSON.stringify(a) : f === a);
986
+ const m = t.items.findIndex((y) => typeof a == "object" ? JSON.stringify(y) === JSON.stringify(a) : y === a);
987
987
  m !== -1 && (n.value = m, i.value = t.items[m], o("update:modelValue", i.value));
988
988
  }
989
989
  },
@@ -1021,7 +1021,7 @@ const fe = /* @__PURE__ */ ie(J, [["render", pe], ["__scopeId", "data-v-fb269a1e
1021
1021
  function x(a) {
1022
1022
  c.value && !c.value.contains(a.target) && (l.value = !1);
1023
1023
  }
1024
- function p(a, m) {
1024
+ function f(a, m) {
1025
1025
  t.isMultipleOption ? n.value = -1 : (n.value = m, l.value = !1), i.value = a, o("input", i.value), o("update:modelValue", i.value);
1026
1026
  }
1027
1027
  function g() {
@@ -1035,11 +1035,11 @@ const fe = /* @__PURE__ */ ie(J, [["render", pe], ["__scopeId", "data-v-fb269a1e
1035
1035
  ref_key: "dropDown",
1036
1036
  ref: c,
1037
1037
  class: "gsc-dropdown",
1038
- style: u(h.value)
1038
+ style: p(h.value)
1039
1039
  }, [
1040
1040
  r("div", {
1041
1041
  class: "gsc-dropdown__main-container",
1042
- style: u({ "padding-right": `${e.arrowWidth + 8}px` }),
1042
+ style: p({ "padding-right": `${e.arrowWidth + 8}px` }),
1043
1043
  onClick: $
1044
1044
  }, [
1045
1045
  r("div", ye, [
@@ -1047,7 +1047,7 @@ const fe = /* @__PURE__ */ ie(J, [["render", pe], ["__scopeId", "data-v-fb269a1e
1047
1047
  ]),
1048
1048
  r("div", {
1049
1049
  class: B(["gsc-dropdown__main-container__icon", { "rotated-180": l.value }]),
1050
- style: u(C.value)
1050
+ style: p(C.value)
1051
1051
  }, [
1052
1052
  (s(), d("svg", {
1053
1053
  height: e.arrowHeight,
@@ -1069,14 +1069,14 @@ const fe = /* @__PURE__ */ ie(J, [["render", pe], ["__scopeId", "data-v-fb269a1e
1069
1069
  r("div", null, [
1070
1070
  r("div", {
1071
1071
  class: "gsc-dropdown__items",
1072
- style: u({ "margin-top": `${t.borderWidth}px` })
1072
+ style: p({ "margin-top": `${t.borderWidth}px` })
1073
1073
  }, [
1074
- (s(!0), d(O, null, P(e.items, (f, k) => (s(), d("div", {
1074
+ (s(!0), d(O, null, P(e.items, (y, k) => (s(), d("div", {
1075
1075
  class: B(["gsc-dropdown__items__item", { selected: k === n.value }]),
1076
1076
  key: k,
1077
- onClick: (W) => p(f, k)
1077
+ onClick: (W) => f(y, k)
1078
1078
  }, [
1079
- L(a.$slots, "availableItem", { item: f })
1079
+ L(a.$slots, "availableItem", { item: y })
1080
1080
  ], 10, ve))), 128))
1081
1081
  ], 4),
1082
1082
  e.isFooterVisible ? (s(), d("div", be, [
@@ -1247,7 +1247,7 @@ const fe = /* @__PURE__ */ ie(J, [["render", pe], ["__scopeId", "data-v-fb269a1e
1247
1247
  }));
1248
1248
  }, et = U.setup;
1249
1249
  U.setup = et ? (e, o) => (tt(), et(e, o)) : tt;
1250
- const $e = (e) => (A("data-v-fb269a1e"), e = e(), D(), e), Ie = ["src"], Te = {
1250
+ const $e = (e) => (A("data-v-fb269a1e"), e = e(), E(), e), Ie = ["src"], Te = {
1251
1251
  key: 1,
1252
1252
  class: "text"
1253
1253
  }, Fe = ["src"], ze = { class: "stats" }, We = /* @__PURE__ */ $e(() => /* @__PURE__ */ r("img", {
@@ -1259,20 +1259,20 @@ function Pe(e, o, t, i, c, n) {
1259
1259
  t.type == 0 ? (s(), d("div", {
1260
1260
  key: 0,
1261
1261
  class: B(["button", c.status && t.typeOnOff && "button-active"]),
1262
- style: u([n.customStyle, c.status && t.typeOnOff && n.customActive]),
1262
+ style: p([n.customStyle, c.status && t.typeOnOff && n.customActive]),
1263
1263
  onClick: o[0] || (o[0] = (...l) => n.btnClick && n.btnClick(...l))
1264
1264
  }, [
1265
1265
  t.icon && t.iconPosition.toLowerCase() === "left" ? (s(), d("img", {
1266
1266
  key: 0,
1267
1267
  class: "icon",
1268
- style: u({ width: t.iconSize }),
1268
+ style: p({ width: t.iconSize }),
1269
1269
  src: t.icon
1270
1270
  }, null, 12, Ie)) : S("", !0),
1271
1271
  t.textValue ? (s(), d("div", Te, v(t.textValue), 1)) : S("", !0),
1272
1272
  t.icon && t.iconPosition.toLowerCase() === "right" ? (s(), d("img", {
1273
1273
  key: 2,
1274
1274
  class: "icon",
1275
- style: u({ width: t.iconSize }),
1275
+ style: p({ width: t.iconSize }),
1276
1276
  src: t.icon
1277
1277
  }, null, 12, Fe)) : S("", !0)
1278
1278
  ], 6)) : S("", !0),
@@ -1432,19 +1432,19 @@ const Ve = {
1432
1432
  id: "panelteams",
1433
1433
  class: "gsc-filterperteam__panel-teams",
1434
1434
  ref: "panel"
1435
- }, Ae = { class: "gsc-filterperteam__panel-teams__cont-teams" }, De = ["onClick"], Ee = ["src", "alt", "title"];
1435
+ }, Ae = { class: "gsc-filterperteam__panel-teams__cont-teams" }, Ee = ["onClick"], De = ["src", "alt", "title"];
1436
1436
  function He(e, o, t, i, c, n) {
1437
1437
  const l = pt("GSCButton");
1438
1438
  return s(), d("div", {
1439
1439
  class: "gsc-filterperteam",
1440
1440
  ref: "container",
1441
- style: u(n.customStyleContain)
1441
+ style: p(n.customStyleContain)
1442
1442
  }, [
1443
1443
  r("div", Ve, [
1444
1444
  r("div", Ae, [
1445
1445
  t.hiddenButtonAll ? S("", !0) : (s(), d("div", {
1446
1446
  key: 0,
1447
- style: u(n.customStyleTeam),
1447
+ style: p(n.customStyleTeam),
1448
1448
  class: B(["gsc-filterperteam__panel-teams__cont-teams__button-all", this.teamselect !== 0 ? "--disabled" : ""])
1449
1449
  }, [
1450
1450
  T(l, {
@@ -1463,7 +1463,7 @@ function He(e, o, t, i, c, n) {
1463
1463
  ], 6)),
1464
1464
  (s(!0), d(O, null, P(t.data, (h, C) => (s(), d("div", {
1465
1465
  key: C,
1466
- style: u(n.customStyleTeam),
1466
+ style: p(n.customStyleTeam),
1467
1467
  class: B([h.id == c.teamselect ? "colorselect" : "", "gsc-filterperteam__panel-teams__cont-teams__btn-team hover-team"]),
1468
1468
  onClick: ($) => n.btnTeamClick(h.id)
1469
1469
  }, [
@@ -1471,13 +1471,13 @@ function He(e, o, t, i, c, n) {
1471
1471
  src: h.logo,
1472
1472
  alt: h.name,
1473
1473
  title: h.name
1474
- }, null, 8, Ee)
1475
- ], 14, De))), 128))
1474
+ }, null, 8, De)
1475
+ ], 14, Ee))), 128))
1476
1476
  ])
1477
1477
  ], 512)
1478
1478
  ], 4);
1479
1479
  }
1480
- const je = /* @__PURE__ */ Le(Z, [["render", He], ["__scopeId", "data-v-ab79352d"]]), Ge = /* @__PURE__ */ new Map([
1480
+ const je = /* @__PURE__ */ Le(Z, [["render", He], ["__scopeId", "data-v-ab79352d"]]), Me = /* @__PURE__ */ new Map([
1481
1481
  [1, "Portero"],
1482
1482
  [2, "Defensa Central"],
1483
1483
  [3, "Lateral por izquierda"],
@@ -1489,7 +1489,7 @@ const je = /* @__PURE__ */ Le(Z, [["render", He], ["__scopeId", "data-v-ab79352d
1489
1489
  [9, "Delantero "],
1490
1490
  [10, "Desconocida"]
1491
1491
  ]), st = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";
1492
- async function Me({ seasonId: e, token: o }) {
1492
+ async function Ge({ seasonId: e, token: o }) {
1493
1493
  try {
1494
1494
  const t = `https://yjeig444bb.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e}`;
1495
1495
  return (await fetch(t, { headers: {
@@ -1521,7 +1521,7 @@ function Ue(e) {
1521
1521
  window.removeEventListener("resize", t);
1522
1522
  }), { elementSize: o };
1523
1523
  }
1524
- const Ze = (e) => (A("data-v-345202a6"), e = e(), D(), e), qe = { class: "gs-menu-playersteams__header" }, Xe = { class: "gs-menu-playersteams__title" }, Ye = { class: "gs-menu-playersteams__controllers" }, Ke = { class: "gs-menu-playersteams__controllers-item" }, Qe = { class: "gs-menu-playersteams__controllers-item" }, to = {
1524
+ const Ze = (e) => (A("data-v-a496fbb5"), e = e(), E(), e), qe = { class: "gs-menu-playersteams__header" }, Xe = { class: "gs-menu-playersteams__title" }, Ye = { class: "gs-menu-playersteams__controllers" }, Ke = { class: "gs-menu-playersteams__controllers-item" }, Qe = { class: "gs-menu-playersteams__controllers-item" }, to = {
1525
1525
  key: 0,
1526
1526
  class: "gs-menu-playersteams__container"
1527
1527
  }, eo = /* @__PURE__ */ Ze(() => /* @__PURE__ */ r("hr", { class: "gs-menu-playersteams__spacer" }, null, -1)), oo = { class: "gs-menu-playersteams__subtitle" }, io = { class: "gs-menu-playersteams__players-container" }, ro = {
@@ -1563,25 +1563,25 @@ const Ze = (e) => (A("data-v-345202a6"), e = e(), D(), e), qe = { class: "gs-men
1563
1563
  },
1564
1564
  emits: ["clickTeam", "clickPlayer", "change-season-id"],
1565
1565
  setup(e, { emit: o }) {
1566
- const t = e, i = b([]), c = b([]), n = b([]), l = b(null), h = b(null), C = b({}), $ = b(t.defaultSection), x = b({ seasons: [] }), p = b("playersTeamRef"), { elementSize: g } = Ue(p);
1567
- function a(y) {
1568
- x.value.id !== y.id && (x.value = y, n.value = y.seasons);
1566
+ const t = e, i = b([]), c = b([]), n = b([]), l = b(null), h = b(null), C = b({}), $ = b(t.defaultSection), x = b({ seasons: [] }), f = b("playersTeamRef"), { elementSize: g } = Ue(f);
1567
+ function a(u) {
1568
+ x.value.id !== u.id && (x.value = u, n.value = u.seasons);
1569
1569
  }
1570
- function m(y) {
1571
- l.value !== y.id && (l.value = y.id, o("change-season-id", y.id));
1570
+ function m(u) {
1571
+ l.value !== u.id && (l.value = u.id, o("change-season-id", u.id));
1572
1572
  }
1573
- const { type: f, token: k } = yt(t);
1574
- async function W(y) {
1573
+ const { type: y, token: k } = yt(t);
1574
+ async function W(u) {
1575
1575
  try {
1576
- (l.value === null || l.value === "") && (l.value = t.currentSeasonId), C.value = i.value.find((_) => _.team_id === y), h.value = y;
1576
+ (l.value === null || l.value === "") && (l.value = t.currentSeasonId), C.value = i.value.find((_) => _.team_id === u), h.value = u;
1577
1577
  const I = await Je({
1578
1578
  seasonId: l.value,
1579
- teamId: y,
1579
+ teamId: u,
1580
1580
  token: k.value
1581
1581
  });
1582
1582
  c.value = I[0].players.map((_) => ({
1583
1583
  ..._,
1584
- position: Ge.get(_.position_id),
1584
+ position: Me.get(_.position_id),
1585
1585
  countryFlag: _.nationality_photo,
1586
1586
  isImgFullWidth: !1
1587
1587
  }));
@@ -1589,10 +1589,10 @@ const Ze = (e) => (A("data-v-345202a6"), e = e(), D(), e), qe = { class: "gs-men
1589
1589
  console.error(I);
1590
1590
  }
1591
1591
  }
1592
- async function q(y) {
1592
+ async function q(u) {
1593
1593
  try {
1594
- const I = await Me({
1595
- seasonId: y,
1594
+ const I = await Ge({
1595
+ seasonId: u,
1596
1596
  token: k.value
1597
1597
  });
1598
1598
  i.value = I.teams.map((_) => ({
@@ -1604,34 +1604,34 @@ const Ze = (e) => (A("data-v-345202a6"), e = e(), D(), e), qe = { class: "gs-men
1604
1604
  console.error(I);
1605
1605
  }
1606
1606
  }
1607
- N(() => l.value, async (y) => {
1608
- y !== null && y !== "" && (t.defaultSection === 2 && t.teamId !== 0 || $.value === 2 ? (await q(y), i.value.length > 0 && (i.value.find((_) => _.team_id === t.teamId) ? h.value = t.teamId : h.value = i.value[0].id), await W(h.value)) : await q(y));
1607
+ N(() => l.value, async (u) => {
1608
+ u !== null && u !== "" && (t.defaultSection === 2 && h.value !== 0 || $.value === 2 ? (await q(u), console.log("SECCIÓN MENÚ JUGADORES---SEASON", u), console.log("TEAMS", i.value), console.log("SELECTED TEAM", h.value), i.value.length > 0 && (i.value.find((_) => _.team_id === h.value) || (h.value = i.value[0].id)), await W(h.value)) : await q(u));
1609
1609
  }, {
1610
1610
  immediate: !0
1611
1611
  }), R(() => {
1612
1612
  h.value = t.teamId;
1613
1613
  });
1614
- function dt(y) {
1615
- f.value === "teams" ? o("clickTeam", { teamId: y, seasonId: l.value }) : f.value === "players" && (W(y), $.value = 2);
1614
+ function dt(u) {
1615
+ y.value === "teams" ? o("clickTeam", { teamId: u, seasonId: l.value }) : y.value === "players" && (W(u), $.value = 2);
1616
1616
  }
1617
- function ct(y) {
1618
- o("clickPlayer", { playerId: y, teamId: h.value, seasonId: l.value });
1617
+ function ct(u) {
1618
+ o("clickPlayer", { playerId: u, teamId: h.value, seasonId: l.value });
1619
1619
  }
1620
- return (y, I) => (s(), d("section", {
1620
+ return (u, I) => (s(), d("section", {
1621
1621
  ref_key: "playersTeamRef",
1622
- ref: p,
1623
- style: u(w(g).width < 500 ? "padding: 0;" : "padding: 0 20px;"),
1622
+ ref: f,
1623
+ style: p(w(g).width < 500 ? "padding: 0;" : "padding: 0 20px;"),
1624
1624
  class: B(["gs-menu-playersteams", w(g).width < 500 ? "break-point-3" : ""])
1625
1625
  }, [
1626
1626
  r("div", qe, [
1627
- r("h1", Xe, v(w(f) === "players" ? "Jugadores" : "Equipos"), 1),
1627
+ r("h1", Xe, v(w(y) === "players" ? "Jugadores" : "Equipos"), 1),
1628
1628
  r("div", Ye, [
1629
1629
  r("div", Ke, [
1630
1630
  T(w(oe), {
1631
1631
  "current-season-id": e.currentSeasonId,
1632
1632
  width: w(g).width < 500 ? "100%" : "",
1633
1633
  onInput: a,
1634
- style: u(w(g).width < 500 ? "" : "margin-right: 15px")
1634
+ style: p(w(g).width < 500 ? "" : "margin-right: 15px")
1635
1635
  }, null, 8, ["current-season-id", "width", "style"])
1636
1636
  ]),
1637
1637
  r("div", Qe, [
@@ -1644,7 +1644,7 @@ const Ze = (e) => (A("data-v-345202a6"), e = e(), D(), e), qe = { class: "gs-men
1644
1644
  ])
1645
1645
  ])
1646
1646
  ]),
1647
- w(f) === "players" && $.value === 2 ? (s(), d("div", to, [
1647
+ w(y) === "players" && $.value === 2 ? (s(), d("div", to, [
1648
1648
  T(w(je), {
1649
1649
  hiddenButtonAll: "",
1650
1650
  data: i.value,
@@ -1655,18 +1655,18 @@ const Ze = (e) => (A("data-v-345202a6"), e = e(), D(), e), qe = { class: "gs-men
1655
1655
  eo,
1656
1656
  r("div", oo, v(C.value.name), 1),
1657
1657
  r("div", io, [
1658
- (s(!0), d(O, null, P(c.value, (_, E) => (s(), j(Bt, H({ key: E }, _, {
1658
+ (s(!0), d(O, null, P(c.value, (_, D) => (s(), j(Bt, H({ key: D }, _, {
1659
1659
  onClick: (ut) => ct(_.player_id)
1660
1660
  }), null, 16, ["onClick"]))), 128))
1661
1661
  ])
1662
1662
  ])) : (s(), d("div", ro, [
1663
- (s(!0), d(O, null, P(i.value, (_, E) => (s(), j(zt, H({ key: E }, _, {
1663
+ (s(!0), d(O, null, P(i.value, (_, D) => (s(), j(zt, H({ key: D }, _, {
1664
1664
  onClick: (ut) => dt(_.id)
1665
1665
  }), null, 16, ["onClick"]))), 128))
1666
1666
  ]))
1667
1667
  ], 6));
1668
1668
  }
1669
- }, no = /* @__PURE__ */ G(ao, [["__scopeId", "data-v-345202a6"]]);
1669
+ }, no = /* @__PURE__ */ M(ao, [["__scopeId", "data-v-a496fbb5"]]);
1670
1670
  export {
1671
1671
  no as GSCPlayersAndTeamsMenu
1672
1672
  };
@@ -1 +1 @@
1
- (function(_,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(_=typeof globalThis<"u"?globalThis:_||self,t(_.GSCPlayersAndTeamsMenu={},_.Vue))})(this,function(_,t){"use strict";const ze="",Te="",Fe="",We="",B=(o,r)=>{const e=o.__vccOpts||o;for(const[a,s]of r)e[a]=s;return e},L={class:"player-card"},A={class:"player-card__image"},M=["src"],j={class:"player-card__number"},H={class:"player-card__right-data"},G={class:"player-card__age"},J={class:"player-card__flag"},U={class:"player-card__details"},Z={class:"player-card__name"},q={class:"player-card__position"},X=B({__name:"GscPlayerCard",props:{countryFlag:{type:String,default:""},jersey:{type:Number,default:0},age:{type:Number,default:18},nationality:{type:String,default:"-"},name:{type:String,default:"-"},position:{type:String,default:"-"},photo:{type:String,default:""},isImgFullWidth:{type:Boolean,default:!1}},setup(o){const r=o;return(e,a)=>(t.openBlock(),t.createElementBlock("div",L,[t.createElementVNode("div",A,[t.createElementVNode("img",{class:t.normalizeClass(["player-card__photo",{"full-width":o.isImgFullWidth}]),src:o.photo,alt:"Player Image"},null,10,M),t.createElementVNode("div",j,t.toDisplayString(o.jersey),1),t.createElementVNode("div",H,[t.createElementVNode("div",G,t.toDisplayString(o.age)+" años",1),t.createElementVNode("div",J,[t.createElementVNode("div",{class:"player-card__flag-container",style:t.normalizeStyle({"background-image":`url(${r.countryFlag})`})},null,4)])])]),t.createElementVNode("div",U,[t.createElementVNode("p",Z,t.toDisplayString(o.name),1),t.createElementVNode("p",q,t.toDisplayString(o.position),1)])]))}},[["__scopeId","data-v-c0dbef4c"]]),De="",Y={class:"team-card"},K=["src","alt"],Q={class:"team-card__name"},v=B({__name:"GscTeamCard",props:{logo:{type:String,default:""},name:{type:String,default:""},url:{type:String,default:""}},setup(o){return(r,e)=>(t.openBlock(),t.createElementBlock("div",Y,[t.createElementVNode("div",{class:"team-card__bg-image",style:t.normalizeStyle({"background-image":`url(${o.logo})`})},null,4),t.createElementVNode("img",{class:"team-card__image",src:o.logo,alt:o.name},null,8,K),t.createElementVNode("p",Q,t.toDisplayString(o.name),1)]))}},[["__scopeId","data-v-03b47b65"]]),tt=(o,r)=>{const e=o.__vccOpts||o;for(const[a,s]of r)e[a]=s;return e},w={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(o){this.status=o}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(o){this.$emit("click",o),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},E=()=>{t.useCssVars(o=>({"1c960139":o.height,b2f635d8:o.borderWidthBtn,"06e99898":o.borderType,"55555c76":o.borderColor,"23b6d320":o.borderRadius,"22c97374":o.width,"22bb09fa":o.backgroundColor,c148da7c:o.cursorType,cce756fc:o.fontSize,cff98d60:o.fontStyle,"5123b3a5":o.fontFamily,"47bf58db":o.marginLeftStat,cadc8414:o.fontSizeStat}))},I=w.setup;w.setup=I?(o,r)=>(E(),I(o,r)):E;const et=o=>(t.pushScopeId("data-v-fb269a1e"),o=o(),t.popScopeId(),o),ot=["src"],rt={key:1,class:"text"},at=["src"],lt={class:"stats"},nt=et(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),it={class:"numstats"},st={class:"leyend"};function dt(o,r,e,a,s,i){return t.openBlock(),t.createElementBlock("div",null,[e.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",s.status&&e.typeOnOff&&"button-active"]),style:t.normalizeStyle([i.customStyle,s.status&&e.typeOnOff&&i.customActive]),onClick:r[0]||(r[0]=(...n)=>i.btnClick&&i.btnClick(...n))},[e.icon&&e.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:e.iconSize}),src:e.icon},null,12,ot)):t.createCommentVNode("",!0),e.textValue?(t.openBlock(),t.createElementBlock("div",rt,t.toDisplayString(e.textValue),1)):t.createCommentVNode("",!0),e.icon&&e.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:e.iconSize}),src:e.icon},null,12,at)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),e.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:r[1]||(r[1]=(...n)=>i.btnClick&&i.btnClick(...n))},[t.createElementVNode("div",lt,[nt,t.createElementVNode("div",it,t.toDisplayString(e.textStat),1)]),t.createElementVNode("div",st,t.toDisplayString(e.textCategory),1)])):t.createCommentVNode("",!0)])}const ct=tt(w,[["render",dt],["__scopeId","data-v-fb269a1e"]]),pt={class:"gsc-dropdown__main-container__item-selected"},mt=["height","width"],ut=["stroke"],ft={class:"gsc-dropdown__items-container"},yt=["onClick"],ht={key:0,class:"gsc-dropdown__items-footer"},gt={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(o){return["solid","dotted","dashed"].includes(o)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:o=>["propName","value"].every(r=>r in o)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(o,{emit:r}){const e=o,a=t.ref({}),s=t.ref(null),i=t.ref(e.isMultipleOption?-1:0),n=t.ref(!1);t.watch(()=>e.items,(l,m)=>{if(!e.modelValue&&(!e.onlyFirstTime||!m||!m.length)&&l&&l.length){if(e.defaultItemByProp){const c=e.items.findIndex(g=>g[e.defaultItemByProp.propName]===e.defaultItemByProp.value);c!==-1?(i.value=c,a.value=l[c]):(i.value=0,a.value=l[0])}else a.value=l[e.defaultItemByIndex];r("input",a.value)}},{immediate:!0}),t.watch(()=>e.modelValue,l=>{if(l){const m=e.items.findIndex(c=>typeof l=="object"?JSON.stringify(c)===JSON.stringify(l):c===l);m!==-1&&(i.value=m,a.value=e.items[m],r("update:modelValue",a.value))}},{immediate:!0});const u=t.computed(()=>({height:e.height,width:e.width,backgroundColor:e.backgroundColor,borderRadius:`${e.borderRadius}px`,border:`${e.borderType} ${e.borderWidth}px ${e.borderColor}`,color:e.color,"--hover-background-color":e.hoverBackgroundColor,"--list-item-padding":e.listItemPadding,"--list-background-color":e.listBackgroundColor,"--list-height":e.listHeight,"--list-item-selected-color":e.listItemSelectedColor,"--list-item-selected-background-color":e.listItemSelectedBackgroundColor,"--list-item-color":e.listItemColor,"--list-border-radius":`${e.listBorderRadius}`,"--list-border-color":e.listBorderColor,"--list-width":e.isListSameWidth?e.width:"fit-content","--list-border-width":`${e.listBorderWidth}px`,"--footer-border":`${e.footerBorderWidth}px solid ${e.footerBorderColor}`,"--dropdown-opacity":e.isDisabled?"0.5":"1","--dropdown-cursor":e.isDisabled?"not-allowed":"pointer","--dropdown-font-size":e.fontSize?e.fontSize:"14px"})),h=t.computed(()=>({height:`${e.arrowHeight}px`,width:`${e.arrowWidth}px`}));function b(){e.isDisabled||(n.value=!n.value)}function S(l){s.value&&!s.value.contains(l.target)&&(n.value=!1)}function d(l,m){e.isMultipleOption?i.value=-1:(i.value=m,n.value=!1),a.value=l,r("input",a.value),r("update:modelValue",a.value)}function f(){n.value=!1,r("click-ready")}return t.onMounted(()=>{document.addEventListener("click",S)}),t.onBeforeMount(()=>{document.removeEventListener("click",S)}),(l,m)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:s,class:"gsc-dropdown",style:t.normalizeStyle(u.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${o.arrowWidth+8}px`}),onClick:b},[t.createElementVNode("div",pt,[t.renderSlot(l.$slots,"default",{selectedItem:a.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":n.value}]),style:t.normalizeStyle(h.value)},[(t.openBlock(),t.createElementBlock("svg",{height:o.arrowHeight,width:o.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:o.arrowColor},null,8,ut)],8,mt))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",ft,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${e.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.items,(c,g)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:g===i.value}]),key:g,onClick:C=>d(c,g)},[t.renderSlot(l.$slots,"availableItem",{item:c})],10,yt))),128))],4),o.isFooterVisible?(t.openBlock(),t.createElementBlock("div",ht,[t.createVNode(t.unref(ct),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:f})])):t.createCommentVNode("",!0)])],512),[[t.vShow,n.value]])]),_:3})],4))}},St=(o,r)=>{const e=o.__vccOpts||o;for(const[a,s]of r)e[a]=s;return e},bt={class:"tournament-select__selected-tournament"},kt={class:"tournament-select__selected-tournament__logo"},_t=["src"],Ct={class:"tournament-select__selected-tournament__name"},Bt={__name:"GSCTournamentSelect",props:{apiUrl:{type:String,default:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments"},fontFamily:{type:String,default:"Poppins-Light"},logosUrl:{type:String,default:"https://az755631.vo.msecnd.net/todoelfut/"},logoFileType:{type:String,default:"png"},height:{type:String,default:"40px"},width:{type:String,default:"179px"},borderRadius:{type:Number,default:8},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(o){return["solid","dotted","dashed"].includes(o)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},backgroundColor:{type:String,default:"#0d1d29"},color:{type:String,default:"white"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:o=>["propName","value"].every(r=>r in o)},currentSeasonId:{type:Number,default:0}},emits:["input"],setup(o,{emit:r}){const e=o,a=t.ref([]),s=t.computed(()=>{const d={};return e.fontFamily&&(d["font-family"]=`${e.fontFamily}`),d}),i=t.computed(()=>a.value.find(d=>d.seasonsIds.has(e.currentSeasonId))||a.value[0]);async function n(){try{if(e.items&&e.items.length)a.value=[...e.items];else if(e.apiUrl){const d=await h();a.value=d.map(f=>({...f.tournament,seasons:f.seasons,seasonsIds:f.seasons.reduce((l,m)=>(l.add(m.id),l),new Set)})).sort((f,l)=>f.order-l.order)}}catch(d){throw new Error(d)}}function u(d){const f=new XMLHttpRequest,l=`${e.logosUrl}${d}.${e.logoFileType}`;return f.open("HEAD",l,!1),f.send(),f.status!==404}async function h(){try{return(await fetch(e.apiUrl)).json()}catch(d){return Promise.reject(d)}}function b(d){r("input",d)}function S(d){r("input",d)}return t.onMounted(()=>{n()}),(d,f)=>(t.openBlock(),t.createElementBlock("div",{class:"tournament-select",style:t.normalizeStyle(s.value)},[t.createVNode(t.unref(gt),t.mergeProps(e,{"model-value":i.value,items:a.value,onInput:b,"onUpdate:modelValue":S}),{default:t.withCtx(({selectedItem:l})=>[t.createElementVNode("div",bt,[t.createElementVNode("div",kt,[u(l.id)?(t.openBlock(),t.createElementBlock("img",{key:0,src:`${e.logosUrl}${l.id}.${e.logoFileType}`,alt:""},null,8,_t)):t.createCommentVNode("",!0)]),t.createElementVNode("div",Ct,t.toDisplayString(l.name),1)])]),availableItem:t.withCtx(({item:l})=>[t.createElementVNode("div",null,t.toDisplayString(l.name),1)]),_:1},16,["model-value","items"])],4))}},wt=St(Bt,[["__scopeId","data-v-355af272"]]),xt=(o,r)=>{const e=o.__vccOpts||o;for(const[a,s]of r)e[a]=s;return e},x={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(o){this.status=o}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(o){this.$emit("click",o),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},z=()=>{t.useCssVars(o=>({"1c960139":o.height,b2f635d8:o.borderWidthBtn,"06e99898":o.borderType,"55555c76":o.borderColor,"23b6d320":o.borderRadius,"22c97374":o.width,"22bb09fa":o.backgroundColor,c148da7c:o.cursorType,cce756fc:o.fontSize,cff98d60:o.fontStyle,"5123b3a5":o.fontFamily,"47bf58db":o.marginLeftStat,cadc8414:o.fontSizeStat}))},T=x.setup;x.setup=T?(o,r)=>(z(),T(o,r)):z;const Nt=o=>(t.pushScopeId("data-v-fb269a1e"),o=o(),t.popScopeId(),o),$t=["src"],Vt={key:1,class:"text"},Et=["src"],It={class:"stats"},zt=Nt(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),Tt={class:"numstats"},Ft={class:"leyend"};function Wt(o,r,e,a,s,i){return t.openBlock(),t.createElementBlock("div",null,[e.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",s.status&&e.typeOnOff&&"button-active"]),style:t.normalizeStyle([i.customStyle,s.status&&e.typeOnOff&&i.customActive]),onClick:r[0]||(r[0]=(...n)=>i.btnClick&&i.btnClick(...n))},[e.icon&&e.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:e.iconSize}),src:e.icon},null,12,$t)):t.createCommentVNode("",!0),e.textValue?(t.openBlock(),t.createElementBlock("div",Vt,t.toDisplayString(e.textValue),1)):t.createCommentVNode("",!0),e.icon&&e.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:e.iconSize}),src:e.icon},null,12,Et)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),e.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:r[1]||(r[1]=(...n)=>i.btnClick&&i.btnClick(...n))},[t.createElementVNode("div",It,[zt,t.createElementVNode("div",Tt,t.toDisplayString(e.textStat),1)]),t.createElementVNode("div",Ft,t.toDisplayString(e.textCategory),1)])):t.createCommentVNode("",!0)])}const Ot=xt(x,[["render",Wt],["__scopeId","data-v-fb269a1e"]]),Dt={class:"gsc-dropdown__main-container__item-selected"},Pt=["height","width"],Rt=["stroke"],Lt={class:"gsc-dropdown__items-container"},At=["onClick"],Mt={key:0,class:"gsc-dropdown__items-footer"},jt={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(o){return["solid","dotted","dashed"].includes(o)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:o=>["propName","value"].every(r=>r in o)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(o,{emit:r}){const e=o,a=t.ref({}),s=t.ref(null),i=t.ref(e.isMultipleOption?-1:0),n=t.ref(!1);t.watch(()=>e.items,(l,m)=>{if(!e.modelValue&&(!e.onlyFirstTime||!m||!m.length)&&l&&l.length){if(e.defaultItemByProp){const c=e.items.findIndex(g=>g[e.defaultItemByProp.propName]===e.defaultItemByProp.value);c!==-1?(i.value=c,a.value=l[c]):(i.value=0,a.value=l[0])}else a.value=l[e.defaultItemByIndex];r("input",a.value)}},{immediate:!0}),t.watch(()=>e.modelValue,l=>{if(l){const m=e.items.findIndex(c=>typeof l=="object"?JSON.stringify(c)===JSON.stringify(l):c===l);m!==-1&&(i.value=m,a.value=e.items[m],r("update:modelValue",a.value))}},{immediate:!0});const u=t.computed(()=>({height:e.height,width:e.width,backgroundColor:e.backgroundColor,borderRadius:`${e.borderRadius}px`,border:`${e.borderType} ${e.borderWidth}px ${e.borderColor}`,color:e.color,"--hover-background-color":e.hoverBackgroundColor,"--list-item-padding":e.listItemPadding,"--list-background-color":e.listBackgroundColor,"--list-height":e.listHeight,"--list-item-selected-color":e.listItemSelectedColor,"--list-item-selected-background-color":e.listItemSelectedBackgroundColor,"--list-item-color":e.listItemColor,"--list-border-radius":`${e.listBorderRadius}`,"--list-border-color":e.listBorderColor,"--list-width":e.isListSameWidth?e.width:"fit-content","--list-border-width":`${e.listBorderWidth}px`,"--footer-border":`${e.footerBorderWidth}px solid ${e.footerBorderColor}`,"--dropdown-opacity":e.isDisabled?"0.5":"1","--dropdown-cursor":e.isDisabled?"not-allowed":"pointer","--dropdown-font-size":e.fontSize?e.fontSize:"14px"})),h=t.computed(()=>({height:`${e.arrowHeight}px`,width:`${e.arrowWidth}px`}));function b(){e.isDisabled||(n.value=!n.value)}function S(l){s.value&&!s.value.contains(l.target)&&(n.value=!1)}function d(l,m){e.isMultipleOption?i.value=-1:(i.value=m,n.value=!1),a.value=l,r("input",a.value),r("update:modelValue",a.value)}function f(){n.value=!1,r("click-ready")}return t.onMounted(()=>{document.addEventListener("click",S)}),t.onBeforeMount(()=>{document.removeEventListener("click",S)}),(l,m)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:s,class:"gsc-dropdown",style:t.normalizeStyle(u.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${o.arrowWidth+8}px`}),onClick:b},[t.createElementVNode("div",Dt,[t.renderSlot(l.$slots,"default",{selectedItem:a.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":n.value}]),style:t.normalizeStyle(h.value)},[(t.openBlock(),t.createElementBlock("svg",{height:o.arrowHeight,width:o.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:o.arrowColor},null,8,Rt)],8,Pt))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",Lt,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${e.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.items,(c,g)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:g===i.value}]),key:g,onClick:C=>d(c,g)},[t.renderSlot(l.$slots,"availableItem",{item:c})],10,At))),128))],4),o.isFooterVisible?(t.openBlock(),t.createElementBlock("div",Mt,[t.createVNode(t.unref(Ot),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:f})])):t.createCommentVNode("",!0)])],512),[[t.vShow,n.value]])]),_:3})],4))}},Ht=(o,r)=>{const e=o.__vccOpts||o;for(const[a,s]of r)e[a]=s;return e},Gt={class:"season-name"},Jt={class:"items-list-season"},Ut={__name:"GSC-SeasonSelect",props:{seasons:{type:Array,default:()=>[]},currentSeasonId:{type:Number,default:0}},emits:["input"],setup(o,{emit:r}){const e=o,a=t.computed(()=>e.seasons.find(n=>n.id===e.currentSeasonId));function s(n){r("input",n)}function i(n){r("input",n)}return(n,u)=>(t.openBlock(),t.createBlock(t.unref(jt),{items:o.seasons,"model-value":a.value,height:"40px",width:"179px","background-color":"#0d1d29",color:"white","border-color":"rgba(255, 255, 255, 0.2)","font-family":"Poppins-Regular","border-radius":8,onInput:i,"onUpdate:modelValue":s},{default:t.withCtx(({selectedItem:h})=>[t.createElementVNode("div",Gt,[t.createElementVNode("span",null,t.toDisplayString(h.name),1)])]),availableItem:t.withCtx(({item:h})=>[t.createElementVNode("span",Jt,t.toDisplayString(h.name),1)]),_:1},8,["items","model-value"]))}},Zt=Ht(Ut,[["__scopeId","data-v-3a11087d"]]),qt=(o,r)=>{const e=o.__vccOpts||o;for(const[a,s]of r)e[a]=s;return e},N={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(o){this.status=o}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(o){this.$emit("click",o),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},F=()=>{t.useCssVars(o=>({"1c960139":o.height,b2f635d8:o.borderWidthBtn,"06e99898":o.borderType,"55555c76":o.borderColor,"23b6d320":o.borderRadius,"22c97374":o.width,"22bb09fa":o.backgroundColor,c148da7c:o.cursorType,cce756fc:o.fontSize,cff98d60:o.fontStyle,"5123b3a5":o.fontFamily,"47bf58db":o.marginLeftStat,cadc8414:o.fontSizeStat}))},W=N.setup;N.setup=W?(o,r)=>(F(),W(o,r)):F;const Xt=o=>(t.pushScopeId("data-v-fb269a1e"),o=o(),t.popScopeId(),o),Yt=["src"],Kt={key:1,class:"text"},Qt=["src"],vt={class:"stats"},te=Xt(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),ee={class:"numstats"},oe={class:"leyend"};function re(o,r,e,a,s,i){return t.openBlock(),t.createElementBlock("div",null,[e.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",s.status&&e.typeOnOff&&"button-active"]),style:t.normalizeStyle([i.customStyle,s.status&&e.typeOnOff&&i.customActive]),onClick:r[0]||(r[0]=(...n)=>i.btnClick&&i.btnClick(...n))},[e.icon&&e.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:e.iconSize}),src:e.icon},null,12,Yt)):t.createCommentVNode("",!0),e.textValue?(t.openBlock(),t.createElementBlock("div",Kt,t.toDisplayString(e.textValue),1)):t.createCommentVNode("",!0),e.icon&&e.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:e.iconSize}),src:e.icon},null,12,Qt)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),e.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:r[1]||(r[1]=(...n)=>i.btnClick&&i.btnClick(...n))},[t.createElementVNode("div",vt,[te,t.createElementVNode("div",ee,t.toDisplayString(e.textStat),1)]),t.createElementVNode("div",oe,t.toDisplayString(e.textCategory),1)])):t.createCommentVNode("",!0)])}const ae=qt(N,[["render",re],["__scopeId","data-v-fb269a1e"]]),le=(o,r)=>{const e=o.__vccOpts||o;for(const[a,s]of r)e[a]=s;return e},$={components:{GSCButton:ae},props:{hiddenButtonAll:{type:Boolean,default:!1},teamId:{type:Number,default:0},height:{type:String,default:"71px"},backgroundColor:{type:String,default:"#0d1d29"},containBorderType:{type:String,default:"solid"},containBorderWidth:{type:Number,default:0},containBorderColor:{type:String,default:""},componentontainBorderRadius:{type:String,default:"0px"},teamBorderType:{type:String,default:"solid"},teamBorderWidth:{type:Number,default:1},teamBorderColor:{type:String,default:"#566068"},teamBorderRadius:{type:String,default:"43px"},teamHeight:{type:String,default:"43px"},teamWidth:{type:String,default:"43px"},data:{type:Array,default:()=>[]}},data(){return{teamselect:this.teamId,scrollBar:!1}},watch:{teamId:{handler:function(o){this.teamselect=o},immediate:!0}},computed:{centerTextCustom(){return this.hiddenButtonAll&&!this.scrollBar?"center":"left"},marginCustom(){return this.hiddenButtonAll?"0px":"12px"},customStyleContain(){return{height:this.height,backgroundColor:this.backgroundColor,borderRadius:this.containBorderRadius,border:`${this.containBorderType} ${this.containBorderWidth}px ${this.containBorderColor}`}},customStyleTeam(){return{height:this.teamHeight,width:this.teamWidth,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.teamBorderType} ${this.teamBorderWidth}px ${this.teamBorderColor}`}}},methods:{checkIfElementHasScroll(){const o=this.$refs.container.querySelector("#panelteams");o.scrollWidth>o.clientWidth?this.scrollBar=!0:this.scrollBar=!1},btnTeamClick(o){this.$emit("clickTeam",o),this.teamselect=o},click(){this.$emit("clickAll",0),this.teamselect=0}},mounted(){this.checkIfElementHasScroll(),window.addEventListener("resize",this.checkIfElementHasScroll)},beforeUnmount(){window.removeEventListener("resize",this.checkIfElementHasScroll)}},O=()=>{t.useCssVars(o=>({"132156c0":o.centerTextCustom,"096d3ecc":o.marginCustom}))},D=$.setup;$.setup=D?(o,r)=>(O(),D(o,r)):O;const ne={id:"panelteams",class:"gsc-filterperteam__panel-teams",ref:"panel"},ie={class:"gsc-filterperteam__panel-teams__cont-teams"},se=["onClick"],de=["src","alt","title"];function ce(o,r,e,a,s,i){const n=t.resolveComponent("GSCButton");return t.openBlock(),t.createElementBlock("div",{class:"gsc-filterperteam",ref:"container",style:t.normalizeStyle(i.customStyleContain)},[t.createElementVNode("div",ne,[t.createElementVNode("div",ie,[e.hiddenButtonAll?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(i.customStyleTeam),class:t.normalizeClass(["gsc-filterperteam__panel-teams__cont-teams__button-all",this.teamselect!==0?"--disabled":""])},[t.createVNode(n,{"text-value":"Todos",width:"76px",height:"28px","font-family":"Poppins-Light","font-size":"13px","border-color":"#cbee6b","border-type":"solid","border-width":"1","background-color":"#2A3641","border-radius":"64px",onClick:i.click},null,8,["onClick"])],6)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.data,(u,h)=>(t.openBlock(),t.createElementBlock("div",{key:h,style:t.normalizeStyle(i.customStyleTeam),class:t.normalizeClass([u.id==s.teamselect?"colorselect":"","gsc-filterperteam__panel-teams__cont-teams__btn-team hover-team"]),onClick:b=>i.btnTeamClick(u.id)},[t.createElementVNode("img",{src:u.logo,alt:u.name,title:u.name},null,8,de)],14,se))),128))])],512)],4)}const pe=le($,[["render",ce],["__scopeId","data-v-ab79352d"]]),me=new Map([[1,"Portero"],[2,"Defensa Central"],[3,"Lateral por izquierda"],[4,"Lateral por derecha"],[5,"Volante por izquierda"],[6,"Volante por derecha"],[7,"Volante defensivo"],[8,"Volante ofensivo"],[9,"Delantero "],[10,"Desconocida"]]),P="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";async function ue({seasonId:o,token:r}){try{const e=`https://yjeig444bb.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${o}`;return(await fetch(e,{headers:{Authorization:r||P}})).json()}catch(e){return Promise.reject(e)}}async function fe({seasonId:o,teamId:r,token:e}){try{const a=`https://pa3kubpuhg.execute-api.us-west-2.amazonaws.com/prod/playersByTeamAndSeason/${o}/${r}`;return(await fetch(a,{headers:{Authorization:e||P}})).json()}catch(a){return Promise.reject(a)}}function ye(o){const r=t.ref({width:0,height:0});function e(){const a=o.value.getBoundingClientRect();r.value.width=a.width,r.value.height=a.height}return t.onMounted(()=>{e(),window.addEventListener("resize",e)}),t.onUnmounted(()=>{window.removeEventListener("resize",e)}),{elementSize:r}}const Re="",he=o=>(t.pushScopeId("data-v-345202a6"),o=o(),t.popScopeId(),o),ge={class:"gs-menu-playersteams__header"},Se={class:"gs-menu-playersteams__title"},be={class:"gs-menu-playersteams__controllers"},ke={class:"gs-menu-playersteams__controllers-item"},_e={class:"gs-menu-playersteams__controllers-item"},Ce={key:0,class:"gs-menu-playersteams__container"},Be=he(()=>t.createElementVNode("hr",{class:"gs-menu-playersteams__spacer"},null,-1)),we={class:"gs-menu-playersteams__subtitle"},xe={class:"gs-menu-playersteams__players-container"},Ne={key:1,class:"gs-menu-playersteams__teams-container"},$e=B({__name:"GSCPlayersAndTeamsMenu",props:{type:{type:String,default:"players",validator(o){return["teams","players"].includes(o)}},token:{type:[String,void 0],default:void 0},componentWidth:{type:Number,default:499,validator(o){return o>0}},currentSeasonId:{type:Number,default:0},teamId:{type:Number,default:0},defaultSection:{type:Number,default:1}},emits:["clickTeam","clickPlayer","change-season-id"],setup(o,{emit:r}){const e=o,a=t.ref([]),s=t.ref([]),i=t.ref([]),n=t.ref(null),u=t.ref(null),h=t.ref({}),b=t.ref(e.defaultSection),S=t.ref({seasons:[]}),d=t.ref("playersTeamRef"),{elementSize:f}=ye(d);function l(p){S.value.id!==p.id&&(S.value=p,i.value=p.seasons)}function m(p){n.value!==p.id&&(n.value=p.id,r("change-season-id",p.id))}const{type:c,token:g}=t.toRefs(e);async function C(p){try{(n.value===null||n.value==="")&&(n.value=e.currentSeasonId),h.value=a.value.find(y=>y.team_id===p),u.value=p;const k=await fe({seasonId:n.value,teamId:p,token:g.value});s.value=k[0].players.map(y=>({...y,position:me.get(y.position_id),countryFlag:y.nationality_photo,isImgFullWidth:!1}))}catch(k){console.error(k)}}async function R(p){try{const k=await ue({seasonId:p,token:g.value});a.value=k.teams.map(y=>({...y,id:y.team_id,name:y.team_name}))}catch(k){console.error(k)}}t.watch(()=>n.value,async p=>{p!==null&&p!==""&&(e.defaultSection===2&&e.teamId!==0||b.value===2?(await R(p),a.value.length>0&&(a.value.find(y=>y.team_id===e.teamId)?u.value=e.teamId:u.value=a.value[0].id),await C(u.value)):await R(p))},{immediate:!0}),t.onMounted(()=>{u.value=e.teamId});function Ve(p){c.value==="teams"?r("clickTeam",{teamId:p,seasonId:n.value}):c.value==="players"&&(C(p),b.value=2)}function Ee(p){r("clickPlayer",{playerId:p,teamId:u.value,seasonId:n.value})}return(p,k)=>(t.openBlock(),t.createElementBlock("section",{ref_key:"playersTeamRef",ref:d,style:t.normalizeStyle(t.unref(f).width<500?"padding: 0;":"padding: 0 20px;"),class:t.normalizeClass(["gs-menu-playersteams",t.unref(f).width<500?"break-point-3":""])},[t.createElementVNode("div",ge,[t.createElementVNode("h1",Se,t.toDisplayString(t.unref(c)==="players"?"Jugadores":"Equipos"),1),t.createElementVNode("div",be,[t.createElementVNode("div",ke,[t.createVNode(t.unref(wt),{"current-season-id":o.currentSeasonId,width:t.unref(f).width<500?"100%":"",onInput:l,style:t.normalizeStyle(t.unref(f).width<500?"":"margin-right: 15px")},null,8,["current-season-id","width","style"])]),t.createElementVNode("div",_e,[t.createVNode(t.unref(Zt),{"current-season-id":o.currentSeasonId,width:t.unref(f).width<500?"100%":"",seasons:S.value.seasons,onInput:m},null,8,["current-season-id","width","seasons"])])])]),t.unref(c)==="players"&&b.value===2?(t.openBlock(),t.createElementBlock("div",Ce,[t.createVNode(t.unref(pe),{hiddenButtonAll:"",data:a.value,"team-id":u.value,style:{"background-color":"transparent"},onClickTeam:C},null,8,["data","team-id"]),Be,t.createElementVNode("div",we,t.toDisplayString(h.value.name),1),t.createElementVNode("div",xe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value,(y,V)=>(t.openBlock(),t.createBlock(X,t.mergeProps({key:V},y,{onClick:Ie=>Ee(y.player_id)}),null,16,["onClick"]))),128))])])):(t.openBlock(),t.createElementBlock("div",Ne,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,(y,V)=>(t.openBlock(),t.createBlock(v,t.mergeProps({key:V},y,{onClick:Ie=>Ve(y.id)}),null,16,["onClick"]))),128))]))],6))}},[["__scopeId","data-v-345202a6"]]);_.GSCPlayersAndTeamsMenu=$e,Object.defineProperty(_,Symbol.toStringTag,{value:"Module"})});
1
+ (function(_,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(_=typeof globalThis<"u"?globalThis:_||self,t(_.GSCPlayersAndTeamsMenu={},_.Vue))})(this,function(_,t){"use strict";const ze="",Te="",Fe="",We="",B=(o,r)=>{const e=o.__vccOpts||o;for(const[a,s]of r)e[a]=s;return e},L={class:"player-card"},A={class:"player-card__image"},M=["src"],j={class:"player-card__number"},H={class:"player-card__right-data"},G={class:"player-card__age"},J={class:"player-card__flag"},U={class:"player-card__details"},Z={class:"player-card__name"},q={class:"player-card__position"},X=B({__name:"GscPlayerCard",props:{countryFlag:{type:String,default:""},jersey:{type:Number,default:0},age:{type:Number,default:18},nationality:{type:String,default:"-"},name:{type:String,default:"-"},position:{type:String,default:"-"},photo:{type:String,default:""},isImgFullWidth:{type:Boolean,default:!1}},setup(o){const r=o;return(e,a)=>(t.openBlock(),t.createElementBlock("div",L,[t.createElementVNode("div",A,[t.createElementVNode("img",{class:t.normalizeClass(["player-card__photo",{"full-width":o.isImgFullWidth}]),src:o.photo,alt:"Player Image"},null,10,M),t.createElementVNode("div",j,t.toDisplayString(o.jersey),1),t.createElementVNode("div",H,[t.createElementVNode("div",G,t.toDisplayString(o.age)+" años",1),t.createElementVNode("div",J,[t.createElementVNode("div",{class:"player-card__flag-container",style:t.normalizeStyle({"background-image":`url(${r.countryFlag})`})},null,4)])])]),t.createElementVNode("div",U,[t.createElementVNode("p",Z,t.toDisplayString(o.name),1),t.createElementVNode("p",q,t.toDisplayString(o.position),1)])]))}},[["__scopeId","data-v-c3f2f1a2"]]),De="",Y={class:"team-card"},K=["src","alt"],Q={class:"team-card__name"},v=B({__name:"GscTeamCard",props:{logo:{type:String,default:""},name:{type:String,default:""},url:{type:String,default:""}},setup(o){return(r,e)=>(t.openBlock(),t.createElementBlock("div",Y,[t.createElementVNode("div",{class:"team-card__bg-image",style:t.normalizeStyle({"background-image":`url(${o.logo})`})},null,4),t.createElementVNode("img",{class:"team-card__image",src:o.logo,alt:o.name},null,8,K),t.createElementVNode("p",Q,t.toDisplayString(o.name),1)]))}},[["__scopeId","data-v-95d1f882"]]),tt=(o,r)=>{const e=o.__vccOpts||o;for(const[a,s]of r)e[a]=s;return e},w={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(o){this.status=o}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(o){this.$emit("click",o),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},V=()=>{t.useCssVars(o=>({"1c960139":o.height,b2f635d8:o.borderWidthBtn,"06e99898":o.borderType,"55555c76":o.borderColor,"23b6d320":o.borderRadius,"22c97374":o.width,"22bb09fa":o.backgroundColor,c148da7c:o.cursorType,cce756fc:o.fontSize,cff98d60:o.fontStyle,"5123b3a5":o.fontFamily,"47bf58db":o.marginLeftStat,cadc8414:o.fontSizeStat}))},I=w.setup;w.setup=I?(o,r)=>(V(),I(o,r)):V;const et=o=>(t.pushScopeId("data-v-fb269a1e"),o=o(),t.popScopeId(),o),ot=["src"],rt={key:1,class:"text"},at=["src"],lt={class:"stats"},nt=et(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),it={class:"numstats"},st={class:"leyend"};function dt(o,r,e,a,s,i){return t.openBlock(),t.createElementBlock("div",null,[e.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",s.status&&e.typeOnOff&&"button-active"]),style:t.normalizeStyle([i.customStyle,s.status&&e.typeOnOff&&i.customActive]),onClick:r[0]||(r[0]=(...n)=>i.btnClick&&i.btnClick(...n))},[e.icon&&e.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:e.iconSize}),src:e.icon},null,12,ot)):t.createCommentVNode("",!0),e.textValue?(t.openBlock(),t.createElementBlock("div",rt,t.toDisplayString(e.textValue),1)):t.createCommentVNode("",!0),e.icon&&e.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:e.iconSize}),src:e.icon},null,12,at)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),e.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:r[1]||(r[1]=(...n)=>i.btnClick&&i.btnClick(...n))},[t.createElementVNode("div",lt,[nt,t.createElementVNode("div",it,t.toDisplayString(e.textStat),1)]),t.createElementVNode("div",st,t.toDisplayString(e.textCategory),1)])):t.createCommentVNode("",!0)])}const ct=tt(w,[["render",dt],["__scopeId","data-v-fb269a1e"]]),pt={class:"gsc-dropdown__main-container__item-selected"},mt=["height","width"],ut=["stroke"],ft={class:"gsc-dropdown__items-container"},yt=["onClick"],ht={key:0,class:"gsc-dropdown__items-footer"},gt={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(o){return["solid","dotted","dashed"].includes(o)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:o=>["propName","value"].every(r=>r in o)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(o,{emit:r}){const e=o,a=t.ref({}),s=t.ref(null),i=t.ref(e.isMultipleOption?-1:0),n=t.ref(!1);t.watch(()=>e.items,(l,m)=>{if(!e.modelValue&&(!e.onlyFirstTime||!m||!m.length)&&l&&l.length){if(e.defaultItemByProp){const p=e.items.findIndex(g=>g[e.defaultItemByProp.propName]===e.defaultItemByProp.value);p!==-1?(i.value=p,a.value=l[p]):(i.value=0,a.value=l[0])}else a.value=l[e.defaultItemByIndex];r("input",a.value)}},{immediate:!0}),t.watch(()=>e.modelValue,l=>{if(l){const m=e.items.findIndex(p=>typeof l=="object"?JSON.stringify(p)===JSON.stringify(l):p===l);m!==-1&&(i.value=m,a.value=e.items[m],r("update:modelValue",a.value))}},{immediate:!0});const u=t.computed(()=>({height:e.height,width:e.width,backgroundColor:e.backgroundColor,borderRadius:`${e.borderRadius}px`,border:`${e.borderType} ${e.borderWidth}px ${e.borderColor}`,color:e.color,"--hover-background-color":e.hoverBackgroundColor,"--list-item-padding":e.listItemPadding,"--list-background-color":e.listBackgroundColor,"--list-height":e.listHeight,"--list-item-selected-color":e.listItemSelectedColor,"--list-item-selected-background-color":e.listItemSelectedBackgroundColor,"--list-item-color":e.listItemColor,"--list-border-radius":`${e.listBorderRadius}`,"--list-border-color":e.listBorderColor,"--list-width":e.isListSameWidth?e.width:"fit-content","--list-border-width":`${e.listBorderWidth}px`,"--footer-border":`${e.footerBorderWidth}px solid ${e.footerBorderColor}`,"--dropdown-opacity":e.isDisabled?"0.5":"1","--dropdown-cursor":e.isDisabled?"not-allowed":"pointer","--dropdown-font-size":e.fontSize?e.fontSize:"14px"})),h=t.computed(()=>({height:`${e.arrowHeight}px`,width:`${e.arrowWidth}px`}));function b(){e.isDisabled||(n.value=!n.value)}function S(l){s.value&&!s.value.contains(l.target)&&(n.value=!1)}function c(l,m){e.isMultipleOption?i.value=-1:(i.value=m,n.value=!1),a.value=l,r("input",a.value),r("update:modelValue",a.value)}function f(){n.value=!1,r("click-ready")}return t.onMounted(()=>{document.addEventListener("click",S)}),t.onBeforeMount(()=>{document.removeEventListener("click",S)}),(l,m)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:s,class:"gsc-dropdown",style:t.normalizeStyle(u.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${o.arrowWidth+8}px`}),onClick:b},[t.createElementVNode("div",pt,[t.renderSlot(l.$slots,"default",{selectedItem:a.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":n.value}]),style:t.normalizeStyle(h.value)},[(t.openBlock(),t.createElementBlock("svg",{height:o.arrowHeight,width:o.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:o.arrowColor},null,8,ut)],8,mt))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",ft,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${e.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.items,(p,g)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:g===i.value}]),key:g,onClick:C=>c(p,g)},[t.renderSlot(l.$slots,"availableItem",{item:p})],10,yt))),128))],4),o.isFooterVisible?(t.openBlock(),t.createElementBlock("div",ht,[t.createVNode(t.unref(ct),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:f})])):t.createCommentVNode("",!0)])],512),[[t.vShow,n.value]])]),_:3})],4))}},St=(o,r)=>{const e=o.__vccOpts||o;for(const[a,s]of r)e[a]=s;return e},bt={class:"tournament-select__selected-tournament"},kt={class:"tournament-select__selected-tournament__logo"},_t=["src"],Ct={class:"tournament-select__selected-tournament__name"},Bt={__name:"GSCTournamentSelect",props:{apiUrl:{type:String,default:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments"},fontFamily:{type:String,default:"Poppins-Light"},logosUrl:{type:String,default:"https://az755631.vo.msecnd.net/todoelfut/"},logoFileType:{type:String,default:"png"},height:{type:String,default:"40px"},width:{type:String,default:"179px"},borderRadius:{type:Number,default:8},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(o){return["solid","dotted","dashed"].includes(o)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},backgroundColor:{type:String,default:"#0d1d29"},color:{type:String,default:"white"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:o=>["propName","value"].every(r=>r in o)},currentSeasonId:{type:Number,default:0}},emits:["input"],setup(o,{emit:r}){const e=o,a=t.ref([]),s=t.computed(()=>{const c={};return e.fontFamily&&(c["font-family"]=`${e.fontFamily}`),c}),i=t.computed(()=>a.value.find(c=>c.seasonsIds.has(e.currentSeasonId))||a.value[0]);async function n(){try{if(e.items&&e.items.length)a.value=[...e.items];else if(e.apiUrl){const c=await h();a.value=c.map(f=>({...f.tournament,seasons:f.seasons,seasonsIds:f.seasons.reduce((l,m)=>(l.add(m.id),l),new Set)})).sort((f,l)=>f.order-l.order)}}catch(c){throw new Error(c)}}function u(c){const f=new XMLHttpRequest,l=`${e.logosUrl}${c}.${e.logoFileType}`;return f.open("HEAD",l,!1),f.send(),f.status!==404}async function h(){try{return(await fetch(e.apiUrl)).json()}catch(c){return Promise.reject(c)}}function b(c){r("input",c)}function S(c){r("input",c)}return t.onMounted(()=>{n()}),(c,f)=>(t.openBlock(),t.createElementBlock("div",{class:"tournament-select",style:t.normalizeStyle(s.value)},[t.createVNode(t.unref(gt),t.mergeProps(e,{"model-value":i.value,items:a.value,onInput:b,"onUpdate:modelValue":S}),{default:t.withCtx(({selectedItem:l})=>[t.createElementVNode("div",bt,[t.createElementVNode("div",kt,[u(l.id)?(t.openBlock(),t.createElementBlock("img",{key:0,src:`${e.logosUrl}${l.id}.${e.logoFileType}`,alt:""},null,8,_t)):t.createCommentVNode("",!0)]),t.createElementVNode("div",Ct,t.toDisplayString(l.name),1)])]),availableItem:t.withCtx(({item:l})=>[t.createElementVNode("div",null,t.toDisplayString(l.name),1)]),_:1},16,["model-value","items"])],4))}},wt=St(Bt,[["__scopeId","data-v-355af272"]]),xt=(o,r)=>{const e=o.__vccOpts||o;for(const[a,s]of r)e[a]=s;return e},x={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(o){this.status=o}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(o){this.$emit("click",o),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},z=()=>{t.useCssVars(o=>({"1c960139":o.height,b2f635d8:o.borderWidthBtn,"06e99898":o.borderType,"55555c76":o.borderColor,"23b6d320":o.borderRadius,"22c97374":o.width,"22bb09fa":o.backgroundColor,c148da7c:o.cursorType,cce756fc:o.fontSize,cff98d60:o.fontStyle,"5123b3a5":o.fontFamily,"47bf58db":o.marginLeftStat,cadc8414:o.fontSizeStat}))},T=x.setup;x.setup=T?(o,r)=>(z(),T(o,r)):z;const Nt=o=>(t.pushScopeId("data-v-fb269a1e"),o=o(),t.popScopeId(),o),Et=["src"],$t={key:1,class:"text"},Vt=["src"],It={class:"stats"},zt=Nt(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),Tt={class:"numstats"},Ft={class:"leyend"};function Wt(o,r,e,a,s,i){return t.openBlock(),t.createElementBlock("div",null,[e.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",s.status&&e.typeOnOff&&"button-active"]),style:t.normalizeStyle([i.customStyle,s.status&&e.typeOnOff&&i.customActive]),onClick:r[0]||(r[0]=(...n)=>i.btnClick&&i.btnClick(...n))},[e.icon&&e.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:e.iconSize}),src:e.icon},null,12,Et)):t.createCommentVNode("",!0),e.textValue?(t.openBlock(),t.createElementBlock("div",$t,t.toDisplayString(e.textValue),1)):t.createCommentVNode("",!0),e.icon&&e.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:e.iconSize}),src:e.icon},null,12,Vt)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),e.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:r[1]||(r[1]=(...n)=>i.btnClick&&i.btnClick(...n))},[t.createElementVNode("div",It,[zt,t.createElementVNode("div",Tt,t.toDisplayString(e.textStat),1)]),t.createElementVNode("div",Ft,t.toDisplayString(e.textCategory),1)])):t.createCommentVNode("",!0)])}const Ot=xt(x,[["render",Wt],["__scopeId","data-v-fb269a1e"]]),Dt={class:"gsc-dropdown__main-container__item-selected"},Pt=["height","width"],Rt=["stroke"],Lt={class:"gsc-dropdown__items-container"},At=["onClick"],Mt={key:0,class:"gsc-dropdown__items-footer"},jt={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(o){return["solid","dotted","dashed"].includes(o)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:o=>["propName","value"].every(r=>r in o)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(o,{emit:r}){const e=o,a=t.ref({}),s=t.ref(null),i=t.ref(e.isMultipleOption?-1:0),n=t.ref(!1);t.watch(()=>e.items,(l,m)=>{if(!e.modelValue&&(!e.onlyFirstTime||!m||!m.length)&&l&&l.length){if(e.defaultItemByProp){const p=e.items.findIndex(g=>g[e.defaultItemByProp.propName]===e.defaultItemByProp.value);p!==-1?(i.value=p,a.value=l[p]):(i.value=0,a.value=l[0])}else a.value=l[e.defaultItemByIndex];r("input",a.value)}},{immediate:!0}),t.watch(()=>e.modelValue,l=>{if(l){const m=e.items.findIndex(p=>typeof l=="object"?JSON.stringify(p)===JSON.stringify(l):p===l);m!==-1&&(i.value=m,a.value=e.items[m],r("update:modelValue",a.value))}},{immediate:!0});const u=t.computed(()=>({height:e.height,width:e.width,backgroundColor:e.backgroundColor,borderRadius:`${e.borderRadius}px`,border:`${e.borderType} ${e.borderWidth}px ${e.borderColor}`,color:e.color,"--hover-background-color":e.hoverBackgroundColor,"--list-item-padding":e.listItemPadding,"--list-background-color":e.listBackgroundColor,"--list-height":e.listHeight,"--list-item-selected-color":e.listItemSelectedColor,"--list-item-selected-background-color":e.listItemSelectedBackgroundColor,"--list-item-color":e.listItemColor,"--list-border-radius":`${e.listBorderRadius}`,"--list-border-color":e.listBorderColor,"--list-width":e.isListSameWidth?e.width:"fit-content","--list-border-width":`${e.listBorderWidth}px`,"--footer-border":`${e.footerBorderWidth}px solid ${e.footerBorderColor}`,"--dropdown-opacity":e.isDisabled?"0.5":"1","--dropdown-cursor":e.isDisabled?"not-allowed":"pointer","--dropdown-font-size":e.fontSize?e.fontSize:"14px"})),h=t.computed(()=>({height:`${e.arrowHeight}px`,width:`${e.arrowWidth}px`}));function b(){e.isDisabled||(n.value=!n.value)}function S(l){s.value&&!s.value.contains(l.target)&&(n.value=!1)}function c(l,m){e.isMultipleOption?i.value=-1:(i.value=m,n.value=!1),a.value=l,r("input",a.value),r("update:modelValue",a.value)}function f(){n.value=!1,r("click-ready")}return t.onMounted(()=>{document.addEventListener("click",S)}),t.onBeforeMount(()=>{document.removeEventListener("click",S)}),(l,m)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:s,class:"gsc-dropdown",style:t.normalizeStyle(u.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${o.arrowWidth+8}px`}),onClick:b},[t.createElementVNode("div",Dt,[t.renderSlot(l.$slots,"default",{selectedItem:a.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":n.value}]),style:t.normalizeStyle(h.value)},[(t.openBlock(),t.createElementBlock("svg",{height:o.arrowHeight,width:o.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:o.arrowColor},null,8,Rt)],8,Pt))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",Lt,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${e.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.items,(p,g)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:g===i.value}]),key:g,onClick:C=>c(p,g)},[t.renderSlot(l.$slots,"availableItem",{item:p})],10,At))),128))],4),o.isFooterVisible?(t.openBlock(),t.createElementBlock("div",Mt,[t.createVNode(t.unref(Ot),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:f})])):t.createCommentVNode("",!0)])],512),[[t.vShow,n.value]])]),_:3})],4))}},Ht=(o,r)=>{const e=o.__vccOpts||o;for(const[a,s]of r)e[a]=s;return e},Gt={class:"season-name"},Jt={class:"items-list-season"},Ut={__name:"GSC-SeasonSelect",props:{seasons:{type:Array,default:()=>[]},currentSeasonId:{type:Number,default:0}},emits:["input"],setup(o,{emit:r}){const e=o,a=t.computed(()=>e.seasons.find(n=>n.id===e.currentSeasonId));function s(n){r("input",n)}function i(n){r("input",n)}return(n,u)=>(t.openBlock(),t.createBlock(t.unref(jt),{items:o.seasons,"model-value":a.value,height:"40px",width:"179px","background-color":"#0d1d29",color:"white","border-color":"rgba(255, 255, 255, 0.2)","font-family":"Poppins-Regular","border-radius":8,onInput:i,"onUpdate:modelValue":s},{default:t.withCtx(({selectedItem:h})=>[t.createElementVNode("div",Gt,[t.createElementVNode("span",null,t.toDisplayString(h.name),1)])]),availableItem:t.withCtx(({item:h})=>[t.createElementVNode("span",Jt,t.toDisplayString(h.name),1)]),_:1},8,["items","model-value"]))}},Zt=Ht(Ut,[["__scopeId","data-v-3a11087d"]]),qt=(o,r)=>{const e=o.__vccOpts||o;for(const[a,s]of r)e[a]=s;return e},N={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(o){this.status=o}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(o){this.$emit("click",o),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},F=()=>{t.useCssVars(o=>({"1c960139":o.height,b2f635d8:o.borderWidthBtn,"06e99898":o.borderType,"55555c76":o.borderColor,"23b6d320":o.borderRadius,"22c97374":o.width,"22bb09fa":o.backgroundColor,c148da7c:o.cursorType,cce756fc:o.fontSize,cff98d60:o.fontStyle,"5123b3a5":o.fontFamily,"47bf58db":o.marginLeftStat,cadc8414:o.fontSizeStat}))},W=N.setup;N.setup=W?(o,r)=>(F(),W(o,r)):F;const Xt=o=>(t.pushScopeId("data-v-fb269a1e"),o=o(),t.popScopeId(),o),Yt=["src"],Kt={key:1,class:"text"},Qt=["src"],vt={class:"stats"},te=Xt(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),ee={class:"numstats"},oe={class:"leyend"};function re(o,r,e,a,s,i){return t.openBlock(),t.createElementBlock("div",null,[e.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",s.status&&e.typeOnOff&&"button-active"]),style:t.normalizeStyle([i.customStyle,s.status&&e.typeOnOff&&i.customActive]),onClick:r[0]||(r[0]=(...n)=>i.btnClick&&i.btnClick(...n))},[e.icon&&e.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:e.iconSize}),src:e.icon},null,12,Yt)):t.createCommentVNode("",!0),e.textValue?(t.openBlock(),t.createElementBlock("div",Kt,t.toDisplayString(e.textValue),1)):t.createCommentVNode("",!0),e.icon&&e.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:e.iconSize}),src:e.icon},null,12,Qt)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),e.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:r[1]||(r[1]=(...n)=>i.btnClick&&i.btnClick(...n))},[t.createElementVNode("div",vt,[te,t.createElementVNode("div",ee,t.toDisplayString(e.textStat),1)]),t.createElementVNode("div",oe,t.toDisplayString(e.textCategory),1)])):t.createCommentVNode("",!0)])}const ae=qt(N,[["render",re],["__scopeId","data-v-fb269a1e"]]),le=(o,r)=>{const e=o.__vccOpts||o;for(const[a,s]of r)e[a]=s;return e},E={components:{GSCButton:ae},props:{hiddenButtonAll:{type:Boolean,default:!1},teamId:{type:Number,default:0},height:{type:String,default:"71px"},backgroundColor:{type:String,default:"#0d1d29"},containBorderType:{type:String,default:"solid"},containBorderWidth:{type:Number,default:0},containBorderColor:{type:String,default:""},componentontainBorderRadius:{type:String,default:"0px"},teamBorderType:{type:String,default:"solid"},teamBorderWidth:{type:Number,default:1},teamBorderColor:{type:String,default:"#566068"},teamBorderRadius:{type:String,default:"43px"},teamHeight:{type:String,default:"43px"},teamWidth:{type:String,default:"43px"},data:{type:Array,default:()=>[]}},data(){return{teamselect:this.teamId,scrollBar:!1}},watch:{teamId:{handler:function(o){this.teamselect=o},immediate:!0}},computed:{centerTextCustom(){return this.hiddenButtonAll&&!this.scrollBar?"center":"left"},marginCustom(){return this.hiddenButtonAll?"0px":"12px"},customStyleContain(){return{height:this.height,backgroundColor:this.backgroundColor,borderRadius:this.containBorderRadius,border:`${this.containBorderType} ${this.containBorderWidth}px ${this.containBorderColor}`}},customStyleTeam(){return{height:this.teamHeight,width:this.teamWidth,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.teamBorderType} ${this.teamBorderWidth}px ${this.teamBorderColor}`}}},methods:{checkIfElementHasScroll(){const o=this.$refs.container.querySelector("#panelteams");o.scrollWidth>o.clientWidth?this.scrollBar=!0:this.scrollBar=!1},btnTeamClick(o){this.$emit("clickTeam",o),this.teamselect=o},click(){this.$emit("clickAll",0),this.teamselect=0}},mounted(){this.checkIfElementHasScroll(),window.addEventListener("resize",this.checkIfElementHasScroll)},beforeUnmount(){window.removeEventListener("resize",this.checkIfElementHasScroll)}},O=()=>{t.useCssVars(o=>({"132156c0":o.centerTextCustom,"096d3ecc":o.marginCustom}))},D=E.setup;E.setup=D?(o,r)=>(O(),D(o,r)):O;const ne={id:"panelteams",class:"gsc-filterperteam__panel-teams",ref:"panel"},ie={class:"gsc-filterperteam__panel-teams__cont-teams"},se=["onClick"],de=["src","alt","title"];function ce(o,r,e,a,s,i){const n=t.resolveComponent("GSCButton");return t.openBlock(),t.createElementBlock("div",{class:"gsc-filterperteam",ref:"container",style:t.normalizeStyle(i.customStyleContain)},[t.createElementVNode("div",ne,[t.createElementVNode("div",ie,[e.hiddenButtonAll?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(i.customStyleTeam),class:t.normalizeClass(["gsc-filterperteam__panel-teams__cont-teams__button-all",this.teamselect!==0?"--disabled":""])},[t.createVNode(n,{"text-value":"Todos",width:"76px",height:"28px","font-family":"Poppins-Light","font-size":"13px","border-color":"#cbee6b","border-type":"solid","border-width":"1","background-color":"#2A3641","border-radius":"64px",onClick:i.click},null,8,["onClick"])],6)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.data,(u,h)=>(t.openBlock(),t.createElementBlock("div",{key:h,style:t.normalizeStyle(i.customStyleTeam),class:t.normalizeClass([u.id==s.teamselect?"colorselect":"","gsc-filterperteam__panel-teams__cont-teams__btn-team hover-team"]),onClick:b=>i.btnTeamClick(u.id)},[t.createElementVNode("img",{src:u.logo,alt:u.name,title:u.name},null,8,de)],14,se))),128))])],512)],4)}const pe=le(E,[["render",ce],["__scopeId","data-v-ab79352d"]]),me=new Map([[1,"Portero"],[2,"Defensa Central"],[3,"Lateral por izquierda"],[4,"Lateral por derecha"],[5,"Volante por izquierda"],[6,"Volante por derecha"],[7,"Volante defensivo"],[8,"Volante ofensivo"],[9,"Delantero "],[10,"Desconocida"]]),P="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";async function ue({seasonId:o,token:r}){try{const e=`https://yjeig444bb.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${o}`;return(await fetch(e,{headers:{Authorization:r||P}})).json()}catch(e){return Promise.reject(e)}}async function fe({seasonId:o,teamId:r,token:e}){try{const a=`https://pa3kubpuhg.execute-api.us-west-2.amazonaws.com/prod/playersByTeamAndSeason/${o}/${r}`;return(await fetch(a,{headers:{Authorization:e||P}})).json()}catch(a){return Promise.reject(a)}}function ye(o){const r=t.ref({width:0,height:0});function e(){const a=o.value.getBoundingClientRect();r.value.width=a.width,r.value.height=a.height}return t.onMounted(()=>{e(),window.addEventListener("resize",e)}),t.onUnmounted(()=>{window.removeEventListener("resize",e)}),{elementSize:r}}const Re="",he=o=>(t.pushScopeId("data-v-a496fbb5"),o=o(),t.popScopeId(),o),ge={class:"gs-menu-playersteams__header"},Se={class:"gs-menu-playersteams__title"},be={class:"gs-menu-playersteams__controllers"},ke={class:"gs-menu-playersteams__controllers-item"},_e={class:"gs-menu-playersteams__controllers-item"},Ce={key:0,class:"gs-menu-playersteams__container"},Be=he(()=>t.createElementVNode("hr",{class:"gs-menu-playersteams__spacer"},null,-1)),we={class:"gs-menu-playersteams__subtitle"},xe={class:"gs-menu-playersteams__players-container"},Ne={key:1,class:"gs-menu-playersteams__teams-container"},Ee=B({__name:"GSCPlayersAndTeamsMenu",props:{type:{type:String,default:"players",validator(o){return["teams","players"].includes(o)}},token:{type:[String,void 0],default:void 0},componentWidth:{type:Number,default:499,validator(o){return o>0}},currentSeasonId:{type:Number,default:0},teamId:{type:Number,default:0},defaultSection:{type:Number,default:1}},emits:["clickTeam","clickPlayer","change-season-id"],setup(o,{emit:r}){const e=o,a=t.ref([]),s=t.ref([]),i=t.ref([]),n=t.ref(null),u=t.ref(null),h=t.ref({}),b=t.ref(e.defaultSection),S=t.ref({seasons:[]}),c=t.ref("playersTeamRef"),{elementSize:f}=ye(c);function l(d){S.value.id!==d.id&&(S.value=d,i.value=d.seasons)}function m(d){n.value!==d.id&&(n.value=d.id,r("change-season-id",d.id))}const{type:p,token:g}=t.toRefs(e);async function C(d){try{(n.value===null||n.value==="")&&(n.value=e.currentSeasonId),h.value=a.value.find(y=>y.team_id===d),u.value=d;const k=await fe({seasonId:n.value,teamId:d,token:g.value});s.value=k[0].players.map(y=>({...y,position:me.get(y.position_id),countryFlag:y.nationality_photo,isImgFullWidth:!1}))}catch(k){console.error(k)}}async function R(d){try{const k=await ue({seasonId:d,token:g.value});a.value=k.teams.map(y=>({...y,id:y.team_id,name:y.team_name}))}catch(k){console.error(k)}}t.watch(()=>n.value,async d=>{d!==null&&d!==""&&(e.defaultSection===2&&u.value!==0||b.value===2?(await R(d),console.log("SECCIÓN MENÚ JUGADORES---SEASON",d),console.log("TEAMS",a.value),console.log("SELECTED TEAM",u.value),a.value.length>0&&(a.value.find(y=>y.team_id===u.value)||(u.value=a.value[0].id)),await C(u.value)):await R(d))},{immediate:!0}),t.onMounted(()=>{u.value=e.teamId});function $e(d){p.value==="teams"?r("clickTeam",{teamId:d,seasonId:n.value}):p.value==="players"&&(C(d),b.value=2)}function Ve(d){r("clickPlayer",{playerId:d,teamId:u.value,seasonId:n.value})}return(d,k)=>(t.openBlock(),t.createElementBlock("section",{ref_key:"playersTeamRef",ref:c,style:t.normalizeStyle(t.unref(f).width<500?"padding: 0;":"padding: 0 20px;"),class:t.normalizeClass(["gs-menu-playersteams",t.unref(f).width<500?"break-point-3":""])},[t.createElementVNode("div",ge,[t.createElementVNode("h1",Se,t.toDisplayString(t.unref(p)==="players"?"Jugadores":"Equipos"),1),t.createElementVNode("div",be,[t.createElementVNode("div",ke,[t.createVNode(t.unref(wt),{"current-season-id":o.currentSeasonId,width:t.unref(f).width<500?"100%":"",onInput:l,style:t.normalizeStyle(t.unref(f).width<500?"":"margin-right: 15px")},null,8,["current-season-id","width","style"])]),t.createElementVNode("div",_e,[t.createVNode(t.unref(Zt),{"current-season-id":o.currentSeasonId,width:t.unref(f).width<500?"100%":"",seasons:S.value.seasons,onInput:m},null,8,["current-season-id","width","seasons"])])])]),t.unref(p)==="players"&&b.value===2?(t.openBlock(),t.createElementBlock("div",Ce,[t.createVNode(t.unref(pe),{hiddenButtonAll:"",data:a.value,"team-id":u.value,style:{"background-color":"transparent"},onClickTeam:C},null,8,["data","team-id"]),Be,t.createElementVNode("div",we,t.toDisplayString(h.value.name),1),t.createElementVNode("div",xe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value,(y,$)=>(t.openBlock(),t.createBlock(X,t.mergeProps({key:$},y,{onClick:Ie=>Ve(y.player_id)}),null,16,["onClick"]))),128))])])):(t.openBlock(),t.createElementBlock("div",Ne,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,(y,$)=>(t.openBlock(),t.createBlock(v,t.mergeProps({key:$},y,{onClick:Ie=>$e(y.id)}),null,16,["onClick"]))),128))]))],6))}},[["__scopeId","data-v-a496fbb5"]]);_.GSCPlayersAndTeamsMenu=Ee,Object.defineProperty(_,Symbol.toStringTag,{value:"Module"})});
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- @font-face{font-family:Poppins-Light;src:url(/fonts/Poppins-Light.otf) format("opentype")}@font-face{font-family:Poppins-Regular;src:url(/fonts/Poppins-Regular.otf) format("opentype")}.tournament-select__selected-tournament[data-v-355af272]{height:100%;width:100%;display:flex;align-items:center}.tournament-select__selected-tournament__logo[data-v-355af272]{width:26px;margin-right:7px;display:flex;align-items:center}.tournament-select__selected-tournament__logo>img[data-v-355af272]{width:26px}.tournament-select__selected-tournament__name[data-v-355af272]{white-space:nowrap;width:60%;text-overflow:ellipsis;overflow:hidden}.v-enter-active,.v-leave-active{transition:opacity .5s ease}.v-enter-from,.v-leave-to{opacity:0}.rotated-180{transform:rotate(180deg)}.gsc-dropdown{position:relative;display:inline-block;font-size:var(--dropdown-font-size);cursor:var(--dropdown-cursor);opacity:var(--dropdown-opacity)}.gsc-dropdown__main-container{height:100%;width:100%;display:flex;align-items:center}.gsc-dropdown__main-container__icon{position:absolute;right:6px;transition:transform .3s ease}.gsc-dropdown__main-container__item-selected{width:100%;padding:0 .5em}.gsc-dropdown__items-container{background-color:var(--list-background-color);border-radius:var(--list-border-radius);border:var(--list-border-width) solid var(--list-border-color);display:block;position:absolute;width:var(--list-width);box-shadow:0 8px 16px #0003;z-index:300}.gsc-dropdown__items-container>div{width:100%;height:fit-content;display:flex;flex-direction:column}.gsc-dropdown__items{max-height:var(--list-height);height:fit-content;width:var(--list-width);overflow:auto}.gsc-dropdown__items__item{white-space:nowrap;color:var(--list-item-color);padding:var(--list-item-padding);text-decoration:none;display:block}.gsc-dropdown__items__item.selected{color:var(--list-item-selected-color);background-color:var(--list-item-selected-background-color)}.gsc-dropdown__items__item:not(.selected):hover{cursor:pointer;background-color:var(--hover-background-color)}.gsc-dropdown__items__item:first-child{border-top-left-radius:var(--list-border-radius);border-top-right-radius:var(--list-border-radius)}.gsc-dropdown__items-footer{height:50px;width:100%;display:flex;justify-content:center;align-items:center;border-top:var(--footer-border)}::-webkit-scrollbar{width:3px}::-webkit-scrollbar-track{border-radius:2.5px}::-webkit-scrollbar-thumb{background:#92929d;width:3px}::-webkit-scrollbar-thumb:hover{background:#92929d}@font-face{font-family:Poppins-Light;src:url(/fonts/Poppins-Light.otf) format("opentype")}@font-face{font-family:Poppins-Regular;src:url(/fonts/Poppins-Regular.otf) format("opentype")}.season-name[data-v-3a11087d]{white-space:nowrap;width:100%;text-overflow:ellipsis;overflow:hidden;font-family:Poppins-Light}.items-list-season[data-v-3a11087d]{font-family:Poppins-Light;z-index:400}@font-face{font-family:Poppins-Black;src:url(/fonts/Poppins-Black.otf) format("opentype")}@font-face{font-family:Poppins-BlackItalic;src:url(/fonts/Poppins-BlackItalic.otf) format("opentype")}@font-face{font-family:Poppins-Bold;src:url(/fonts/Poppins-Bold.otf) format("opentype")}@font-face{font-family:Poppins-BoldItalic;src:url(/fonts/Poppins-BoldItalic.otf) format("opentype")}@font-face{font-family:Poppins-ExtraBold;src:url(/fonts/Poppins-ExtraBold.otf) format("opentype")}@font-face{font-family:Poppins-ExtraBoldItalic;src:url(/fonts/Poppins-ExtraBoldItalic.otf) format("opentype")}@font-face{font-family:Poppins-ExtraLight;src:url(/fonts/Poppins-ExtraLight.otf) format("opentype")}@font-face{font-family:Poppins-ExtraLightItalic;src:url(/fonts/Poppins-ExtraLightItalic.otf) format("opentype")}@font-face{font-family:Poppins-Italic;src:url(/fonts/Poppins-Italic.otf) format("opentype")}@font-face{font-family:Poppins-Light;src:url(/fonts/Poppins-Light.otf) format("opentype")}@font-face{font-family:Poppins-LightItalic;src:url(/fonts/Poppins-LightItalic.otf) format("opentype")}@font-face{font-family:Poppins-MediumItalic;src:url(/fonts/Poppins-MediumItalic.otf) format("opentype")}@font-face{font-family:Poppins-Medium;src:url(/fonts/Poppins-Medium.otf) format("opentype")}@font-face{font-family:Poppins-Regular;src:url(/fonts/Poppins-Regular.otf) format("opentype")}@font-face{font-family:Poppins-SemiBold;src:url(/fonts/Poppins-SemiBold.otf) format("opentype")}@font-face{font-family:Poppins-SemiBoldItalic;src:url(/fonts/Poppins-SemiBoldItalic.otf) format("opentype")}@font-face{font-family:Poppins-ThinItalic;src:url(/fonts/Poppins-ThinItalic.otf) format("opentype")}@font-face{font-family:Poppins-Thin;src:url(/fonts/Poppins-Thin.otf) format("opentype")}@font-face{font-family:Montserrat-SemiBold;src:url(/fonts/Montserrat-SemiBold.otf) format("opentype")}.button[data-v-fb269a1e],.button-active[data-v-fb269a1e]{display:inline-flex;justify-content:center;align-content:center;align-items:center;overflow:none;cursor:pointer!important}.button-target[data-v-fb269a1e]{display:inline-block;overflow:hidden;height:var(--1c960139);border-width:var(--b2f635d8)!important;border-style:var(--06e99898)!important;border-color:var(--55555c76)!important;border-radius:var(--23b6d320)!important;width:var(--22c97374);background-color:var(--22bb09fa);justify-content:center;align-content:center;align-items:center;overflow:none;cursor:pointer!important;cursor:var(--c148da7c)!important;font-size:var(--cce756fc)!important;font-style:var(--cff98d60)!important;font-family:var(--5123b3a5)!important}.stats[data-v-fb269a1e]{display:inline-flex;width:100%;padding-top:5px;justify-content:left;align-items:center;align-content:center;height:60%}.iconstats[data-v-fb269a1e]{width:14px;height:14px;margin-left:var(--47bf58db)}.numstats[data-v-fb269a1e]{font-family:Poppins-SemiBold;color:#fff;font-size:var(--cadc8414);margin-left:7px}.leyend[data-v-fb269a1e]{display:inline-flex;justify-content:center;align-items:center;align-content:center;font-family:Poppins-Regular;color:#a0a3a5;width:100%;height:15%}.text[data-v-fb269a1e],.icon[data-v-fb269a1e]{padding:0 4px}.colorselect[data-v-ab79352d]{border-color:#cbee6b!important;cursor:default!important}.hover-team[data-v-ab79352d]:hover{cursor:pointer;background:rgba(255,255,255,.2)!important}.gsc-filterperteam[data-v-ab79352d]{width:100%;display:inline-flex;justify-content:left;align-content:center;align-items:center}.gsc-filterperteam__panel-teams[data-v-ab79352d]{width:100%;height:fit-content;overflow-x:auto;overflow-y:hidden;white-space:nowrap;margin-left:14px;margin-right:14px;display:inline-flex;justify-content:var(--132156c0);align-content:center;align-items:center}.gsc-filterperteam__panel-teams__cont-teams[data-v-ab79352d]{min-width:fit-content;display:inline-flex;justify-content:var(--132156c0);align-content:center;align-items:center;height:fit-content;padding-top:2px;padding-bottom:10px}.gsc-filterperteam__panel-teams__cont-teams__button-all[data-v-ab79352d]{width:78px!important;height:fit-content;display:inline-flex;justify-content:center;align-content:center;align-items:center;border:0px!important}.gsc-filterperteam__panel-teams__cont-teams__btn-team[data-v-ab79352d]{display:inline-flex;justify-content:center;align-content:center;align-items:center;border:solid 2px #f0f0ee;border-radius:65px;margin-left:12px;border-style:solid;border-width:.5px}.gsc-filterperteam__panel-teams__cont-teams__btn-team img[data-v-ab79352d]{width:69%}.gsc-filterperteam__panel-teams__cont-teams__btn-team[data-v-ab79352d]:first-child{margin-left:var(--096d3ecc)}[data-v-ab79352d]::-webkit-scrollbar{height:4px}[data-v-ab79352d]::-webkit-scrollbar-track{border-radius:10px}[data-v-ab79352d]::-webkit-scrollbar-thumb{background:#cbee6b;border-radius:10px}[data-v-ab79352d]::-webkit-scrollbar-thumb:hover{background:#cbee6b}.gsc-filterperteam .--disabled .button{border:none!important}.player-card[data-v-c0dbef4c]{width:100%;max-width:220px;background:#122735;font-family:Poppins-Regular;border-radius:.25rem;cursor:pointer}.player-card__details[data-v-c0dbef4c]{border-radius:0rem 0rem .25rem .25rem;border:.0625rem solid #193346;background:#193346;width:100%;height:3.5625rem;display:flex;flex-flow:column;align-items:center;justify-content:center}.player-card__name[data-v-c0dbef4c],.player-card__position[data-v-c0dbef4c]{font-family:inherit;text-align:center;font-style:normal;line-height:normal;margin:0}.player-card__name[data-v-c0dbef4c],.player-card__position[data-v-c0dbef4c]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;width:90%}.player-card__name[data-v-c0dbef4c]{color:#fff;font-size:.8125rem;font-weight:500;margin-bottom:.3125rem}.player-card__position[data-v-c0dbef4c]{color:#8ea2ab;font-size:.75rem;font-weight:400}.player-card__image[data-v-c0dbef4c]{width:100%;height:12.125rem;max-height:177px;display:grid;grid-template-columns:3fr 1fr;justify-items:center;position:relative}.player-card__photo-container[data-v-c0dbef4c]{display:flex;justify-content:center}.player-card__photo[data-v-c0dbef4c]{position:absolute;bottom:0;width:140px;z-index:1;transform:translateX(-50%,-50%)}.player-card__photo.full-width[data-v-c0dbef4c]{width:100%}.player-card__right-data[data-v-c0dbef4c]{padding:.6875rem .4375rem 0rem 0;justify-self:flex-end;position:absolute;right:0}.player-card__flag[data-v-c0dbef4c]{text-align:end}.player-card__flag-container[data-v-c0dbef4c]{width:22px;height:22px;border-radius:50%;background-repeat:no-repeat;background-size:cover;background-position:center;right:8px;position:absolute}.player-card__age[data-v-c0dbef4c]{padding-bottom:.25rem;color:#8ea2ab;font-family:inherit;font-size:.625rem;font-style:normal;font-weight:600;letter-spacing:.1px}.player-card__number[data-v-c0dbef4c]{padding:.625rem 0 0;color:#273a47;font-family:BebasNeue-Regular;font-size:5.625rem;font-style:normal;font-weight:400;line-height:.7;position:absolute;left:0}.player-card[data-v-c0dbef4c]:hover{opacity:.6}.team-card[data-v-03b47b65]{width:100%;cursor:pointer;height:8.5rem;background:linear-gradient(180deg,#183143 0%,rgba(24,49,67,0) 100%);background:#193646;font-family:Poppins-Regular;font-style:normal;border-radius:.25rem;display:flex;align-items:center;flex-flow:column;justify-content:center;position:relative;overflow:hidden}.team-card__bg-image[data-v-03b47b65]{display:block;position:absolute;left:-50%;top:0;width:100%;height:100%;opacity:.04;background-repeat:no-repeat;background-position:0 50%;background-size:cover}.team-card__name[data-v-03b47b65]{color:#fff;text-align:center;font-size:.75rem;margin:0;font-family:inherit;font-weight:400;line-height:.9375rem}.team-card__image[data-v-03b47b65]{width:4.75rem;height:76;margin-bottom:1.125rem}.team-card[data-v-03b47b65]:hover{opacity:.6}*[data-v-345202a6],*[data-v-345202a6]:after,*[data-v-345202a6]:before{box-sizing:border-box}.gs-menu-playersteams[data-v-345202a6]{background:#0d1d29;width:100%;font-family:Poppins-Regular;padding:0 20px}.gs-menu-playersteams__players-container[data-v-345202a6]{display:grid;grid-template-columns:repeat(auto-fit,minmax(196px,1fr));justify-items:center;column-gap:.875rem;row-gap:4.1875rem}.gs-menu-playersteams.break-point-3 .gs-menu-playersteams__players-container[data-v-345202a6]{grid-template-columns:repeat(auto-fit,minmax(177px,1fr))}.gs-menu-playersteams__teams-container[data-v-345202a6]{display:grid;grid-template-columns:repeat(auto-fit,minmax(10.125rem,1fr));justify-items:center;column-gap:1rem;row-gap:1rem}.gs-menu-playersteams.break-point-3 .gs-menu-playersteams__teams-container[data-v-345202a6]{padding:20px;grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}.gs-menu-playersteams.break-point-3 .gs-menu-playersteams__title[data-v-345202a6],.gs-menu-playersteams.break-point-3 .gs-menu-playersteams__subtitle[data-v-345202a6]{padding-left:1rem}.gs-menu-playersteams.break-point-3 .gs-menu-playersteams__controllers[data-v-345202a6]{margin:auto;gap:10px;min-width:300px;width:100%;justify-content:center}.gs-menu-playersteams.break-point-3 .gs-menu-playersteams__controllers-item[data-v-345202a6]{width:44%}.gs-menu-playersteams__header[data-v-345202a6]{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:20px;margin-bottom:21px}.gs-menu-playersteams__controllers[data-v-345202a6]{display:flex;grid-template-columns:41% 39%;gap:15px;align-items:center;width:43%;justify-content:end;min-width:360px}.gs-menu-playersteams__spacer[data-v-345202a6]{padding:0 1.5625rem;border-color:#3d3d49;width:calc(100% - 3.125rem)}.gs-menu-playersteams__title[data-v-345202a6]{color:#fff;font-family:inherit;font-size:1.375rem;font-style:normal;font-weight:500;padding-left:0rem;line-height:normal;margin:0}.gs-menu-playersteams__subtitle[data-v-345202a6]{color:#fff;font-family:inherit;font-size:1.25rem;font-style:normal;font-weight:500;line-height:normal;padding-left:0rem;margin:1.5rem 0 2.3rem;text-align:left}.gs-menu-playersteams__container[data-v-345202a6]{background-color:#26323c66;border-radius:.5rem;filter:drop-shadow(0rem .25rem 1.25rem rgba(0,0,0,.25));width:100%;flex-shrink:0;padding:.75rem 1.375rem 13.75rem}.gs-menu-playersteams.break-point-3 .gs-menu-playersteams__container[data-v-345202a6]{padding:20px 10px}.gs-menu-playersteams__controllers[data-v-345202a6]{z-index:100}
1
+ @font-face{font-family:Poppins-Light;src:url(/fonts/Poppins-Light.otf) format("opentype")}@font-face{font-family:Poppins-Regular;src:url(/fonts/Poppins-Regular.otf) format("opentype")}.tournament-select__selected-tournament[data-v-355af272]{height:100%;width:100%;display:flex;align-items:center}.tournament-select__selected-tournament__logo[data-v-355af272]{width:26px;margin-right:7px;display:flex;align-items:center}.tournament-select__selected-tournament__logo>img[data-v-355af272]{width:26px}.tournament-select__selected-tournament__name[data-v-355af272]{white-space:nowrap;width:60%;text-overflow:ellipsis;overflow:hidden}.v-enter-active,.v-leave-active{transition:opacity .5s ease}.v-enter-from,.v-leave-to{opacity:0}.rotated-180{transform:rotate(180deg)}.gsc-dropdown{position:relative;display:inline-block;font-size:var(--dropdown-font-size);cursor:var(--dropdown-cursor);opacity:var(--dropdown-opacity)}.gsc-dropdown__main-container{height:100%;width:100%;display:flex;align-items:center}.gsc-dropdown__main-container__icon{position:absolute;right:6px;transition:transform .3s ease}.gsc-dropdown__main-container__item-selected{width:100%;padding:0 .5em}.gsc-dropdown__items-container{background-color:var(--list-background-color);border-radius:var(--list-border-radius);border:var(--list-border-width) solid var(--list-border-color);display:block;position:absolute;width:var(--list-width);box-shadow:0 8px 16px #0003;z-index:300}.gsc-dropdown__items-container>div{width:100%;height:fit-content;display:flex;flex-direction:column}.gsc-dropdown__items{max-height:var(--list-height);height:fit-content;width:var(--list-width);overflow:auto}.gsc-dropdown__items__item{white-space:nowrap;color:var(--list-item-color);padding:var(--list-item-padding);text-decoration:none;display:block}.gsc-dropdown__items__item.selected{color:var(--list-item-selected-color);background-color:var(--list-item-selected-background-color)}.gsc-dropdown__items__item:not(.selected):hover{cursor:pointer;background-color:var(--hover-background-color)}.gsc-dropdown__items__item:first-child{border-top-left-radius:var(--list-border-radius);border-top-right-radius:var(--list-border-radius)}.gsc-dropdown__items-footer{height:50px;width:100%;display:flex;justify-content:center;align-items:center;border-top:var(--footer-border)}::-webkit-scrollbar{width:3px}::-webkit-scrollbar-track{border-radius:2.5px}::-webkit-scrollbar-thumb{background:#92929d;width:3px}::-webkit-scrollbar-thumb:hover{background:#92929d}@font-face{font-family:Poppins-Light;src:url(/fonts/Poppins-Light.otf) format("opentype")}@font-face{font-family:Poppins-Regular;src:url(/fonts/Poppins-Regular.otf) format("opentype")}.season-name[data-v-3a11087d]{white-space:nowrap;width:100%;text-overflow:ellipsis;overflow:hidden;font-family:Poppins-Light}.items-list-season[data-v-3a11087d]{font-family:Poppins-Light;z-index:400}@font-face{font-family:Poppins-Black;src:url(/fonts/Poppins-Black.otf) format("opentype")}@font-face{font-family:Poppins-BlackItalic;src:url(/fonts/Poppins-BlackItalic.otf) format("opentype")}@font-face{font-family:Poppins-Bold;src:url(/fonts/Poppins-Bold.otf) format("opentype")}@font-face{font-family:Poppins-BoldItalic;src:url(/fonts/Poppins-BoldItalic.otf) format("opentype")}@font-face{font-family:Poppins-ExtraBold;src:url(/fonts/Poppins-ExtraBold.otf) format("opentype")}@font-face{font-family:Poppins-ExtraBoldItalic;src:url(/fonts/Poppins-ExtraBoldItalic.otf) format("opentype")}@font-face{font-family:Poppins-ExtraLight;src:url(/fonts/Poppins-ExtraLight.otf) format("opentype")}@font-face{font-family:Poppins-ExtraLightItalic;src:url(/fonts/Poppins-ExtraLightItalic.otf) format("opentype")}@font-face{font-family:Poppins-Italic;src:url(/fonts/Poppins-Italic.otf) format("opentype")}@font-face{font-family:Poppins-Light;src:url(/fonts/Poppins-Light.otf) format("opentype")}@font-face{font-family:Poppins-LightItalic;src:url(/fonts/Poppins-LightItalic.otf) format("opentype")}@font-face{font-family:Poppins-MediumItalic;src:url(/fonts/Poppins-MediumItalic.otf) format("opentype")}@font-face{font-family:Poppins-Medium;src:url(/fonts/Poppins-Medium.otf) format("opentype")}@font-face{font-family:Poppins-Regular;src:url(/fonts/Poppins-Regular.otf) format("opentype")}@font-face{font-family:Poppins-SemiBold;src:url(/fonts/Poppins-SemiBold.otf) format("opentype")}@font-face{font-family:Poppins-SemiBoldItalic;src:url(/fonts/Poppins-SemiBoldItalic.otf) format("opentype")}@font-face{font-family:Poppins-ThinItalic;src:url(/fonts/Poppins-ThinItalic.otf) format("opentype")}@font-face{font-family:Poppins-Thin;src:url(/fonts/Poppins-Thin.otf) format("opentype")}@font-face{font-family:Montserrat-SemiBold;src:url(/fonts/Montserrat-SemiBold.otf) format("opentype")}.button[data-v-fb269a1e],.button-active[data-v-fb269a1e]{display:inline-flex;justify-content:center;align-content:center;align-items:center;overflow:none;cursor:pointer!important}.button-target[data-v-fb269a1e]{display:inline-block;overflow:hidden;height:var(--1c960139);border-width:var(--b2f635d8)!important;border-style:var(--06e99898)!important;border-color:var(--55555c76)!important;border-radius:var(--23b6d320)!important;width:var(--22c97374);background-color:var(--22bb09fa);justify-content:center;align-content:center;align-items:center;overflow:none;cursor:pointer!important;cursor:var(--c148da7c)!important;font-size:var(--cce756fc)!important;font-style:var(--cff98d60)!important;font-family:var(--5123b3a5)!important}.stats[data-v-fb269a1e]{display:inline-flex;width:100%;padding-top:5px;justify-content:left;align-items:center;align-content:center;height:60%}.iconstats[data-v-fb269a1e]{width:14px;height:14px;margin-left:var(--47bf58db)}.numstats[data-v-fb269a1e]{font-family:Poppins-SemiBold;color:#fff;font-size:var(--cadc8414);margin-left:7px}.leyend[data-v-fb269a1e]{display:inline-flex;justify-content:center;align-items:center;align-content:center;font-family:Poppins-Regular;color:#a0a3a5;width:100%;height:15%}.text[data-v-fb269a1e],.icon[data-v-fb269a1e]{padding:0 4px}.colorselect[data-v-ab79352d]{border-color:#cbee6b!important;cursor:default!important}.hover-team[data-v-ab79352d]:hover{cursor:pointer;background:rgba(255,255,255,.2)!important}.gsc-filterperteam[data-v-ab79352d]{width:100%;display:inline-flex;justify-content:left;align-content:center;align-items:center}.gsc-filterperteam__panel-teams[data-v-ab79352d]{width:100%;height:fit-content;overflow-x:auto;overflow-y:hidden;white-space:nowrap;margin-left:14px;margin-right:14px;display:inline-flex;justify-content:var(--132156c0);align-content:center;align-items:center}.gsc-filterperteam__panel-teams__cont-teams[data-v-ab79352d]{min-width:fit-content;display:inline-flex;justify-content:var(--132156c0);align-content:center;align-items:center;height:fit-content;padding-top:2px;padding-bottom:10px}.gsc-filterperteam__panel-teams__cont-teams__button-all[data-v-ab79352d]{width:78px!important;height:fit-content;display:inline-flex;justify-content:center;align-content:center;align-items:center;border:0px!important}.gsc-filterperteam__panel-teams__cont-teams__btn-team[data-v-ab79352d]{display:inline-flex;justify-content:center;align-content:center;align-items:center;border:solid 2px #f0f0ee;border-radius:65px;margin-left:12px;border-style:solid;border-width:.5px}.gsc-filterperteam__panel-teams__cont-teams__btn-team img[data-v-ab79352d]{width:69%}.gsc-filterperteam__panel-teams__cont-teams__btn-team[data-v-ab79352d]:first-child{margin-left:var(--096d3ecc)}[data-v-ab79352d]::-webkit-scrollbar{height:4px}[data-v-ab79352d]::-webkit-scrollbar-track{border-radius:10px}[data-v-ab79352d]::-webkit-scrollbar-thumb{background:#cbee6b;border-radius:10px}[data-v-ab79352d]::-webkit-scrollbar-thumb:hover{background:#cbee6b}.gsc-filterperteam .--disabled .button{border:none!important}.player-card[data-v-c3f2f1a2]{width:100%;max-width:220px;background:#122735;font-family:Poppins-Regular;border-radius:.25rem;cursor:pointer}.player-card__details[data-v-c3f2f1a2]{border-radius:0rem 0rem .25rem .25rem;border:.0625rem solid #193346;background:#193346;width:100%;height:3.5625rem;display:flex;flex-flow:column;align-items:center;justify-content:center}.player-card__name[data-v-c3f2f1a2],.player-card__position[data-v-c3f2f1a2]{font-family:inherit;text-align:center;font-style:normal;line-height:normal;margin:0}.player-card__name[data-v-c3f2f1a2],.player-card__position[data-v-c3f2f1a2]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;width:90%}.player-card__name[data-v-c3f2f1a2]{color:#fff;font-size:.8125rem;font-weight:500;margin-bottom:.3125rem}.player-card__position[data-v-c3f2f1a2]{color:#8ea2ab;font-size:.75rem;font-weight:400}.player-card__image[data-v-c3f2f1a2]{width:100%;height:12.125rem;max-height:177px;display:grid;grid-template-columns:3fr 1fr;justify-items:center;position:relative}.player-card__photo-container[data-v-c3f2f1a2]{display:flex;justify-content:center}.player-card__photo[data-v-c3f2f1a2]{position:absolute;bottom:0;width:140px;z-index:1;transform:translateX(-50%,-50%)}.player-card__photo.full-width[data-v-c3f2f1a2]{width:100%}.player-card__right-data[data-v-c3f2f1a2]{padding:.6875rem .4375rem 0rem 0;justify-self:flex-end;position:absolute;right:0}.player-card__flag[data-v-c3f2f1a2]{text-align:end}.player-card__flag-container[data-v-c3f2f1a2]{width:22px;height:22px;border-radius:50%;background-repeat:no-repeat;background-size:cover;background-position:center;right:8px;position:absolute}.player-card__age[data-v-c3f2f1a2]{padding-bottom:.25rem;color:#8ea2ab;font-family:inherit;font-size:.625rem;font-style:normal;font-weight:600;letter-spacing:.1px}.player-card__number[data-v-c3f2f1a2]{padding:.625rem 0 0;color:#273a47;font-family:BebasNeue-Regular;font-size:5.625rem;font-style:normal;font-weight:400;line-height:.7;position:absolute;left:0}.player-card[data-v-c3f2f1a2]:hover{opacity:.6}.team-card[data-v-95d1f882]{width:100%;cursor:pointer;height:8.5rem;background:linear-gradient(180deg,#183143 0%,rgba(24,49,67,0) 100%);background:#193646;font-family:Poppins-Regular;font-style:normal;border-radius:.25rem;display:flex;align-items:center;flex-flow:column;justify-content:center;position:relative;overflow:hidden}.team-card__bg-image[data-v-95d1f882]{display:block;position:absolute;left:-50%;top:0;width:100%;height:100%;opacity:.04;background-repeat:no-repeat;background-position:0 50%;background-size:cover}.team-card__name[data-v-95d1f882]{color:#fff;text-align:center;font-size:.75rem;margin:0;font-family:inherit;font-weight:400;line-height:.9375rem}.team-card__image[data-v-95d1f882]{width:4.75rem;height:76;margin-bottom:1.125rem}.team-card[data-v-95d1f882]:hover{opacity:.6}*[data-v-a496fbb5],*[data-v-a496fbb5]:after,*[data-v-a496fbb5]:before{box-sizing:border-box}.gs-menu-playersteams[data-v-a496fbb5]{background:#0d1d29;width:100%;font-family:Poppins-Regular;padding:0 20px}.gs-menu-playersteams__players-container[data-v-a496fbb5]{display:grid;grid-template-columns:repeat(auto-fit,minmax(196px,1fr));justify-items:center;column-gap:.875rem;row-gap:4.1875rem}.gs-menu-playersteams.break-point-3 .gs-menu-playersteams__players-container[data-v-a496fbb5]{grid-template-columns:repeat(auto-fit,minmax(177px,1fr))}.gs-menu-playersteams__teams-container[data-v-a496fbb5]{display:grid;grid-template-columns:repeat(auto-fit,minmax(10.125rem,1fr));justify-items:center;column-gap:1rem;row-gap:1rem}.gs-menu-playersteams.break-point-3 .gs-menu-playersteams__teams-container[data-v-a496fbb5]{padding:20px;grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}.gs-menu-playersteams.break-point-3 .gs-menu-playersteams__title[data-v-a496fbb5],.gs-menu-playersteams.break-point-3 .gs-menu-playersteams__subtitle[data-v-a496fbb5]{padding-left:1rem}.gs-menu-playersteams.break-point-3 .gs-menu-playersteams__controllers[data-v-a496fbb5]{margin:auto;gap:10px;min-width:300px;width:100%;justify-content:center}.gs-menu-playersteams.break-point-3 .gs-menu-playersteams__controllers-item[data-v-a496fbb5]{width:44%}.gs-menu-playersteams__header[data-v-a496fbb5]{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:20px;margin-bottom:21px}.gs-menu-playersteams__controllers[data-v-a496fbb5]{display:flex;grid-template-columns:41% 39%;gap:15px;align-items:center;width:43%;justify-content:end;min-width:360px}.gs-menu-playersteams__spacer[data-v-a496fbb5]{padding:0 1.5625rem;border-color:#3d3d49;width:calc(100% - 3.125rem)}.gs-menu-playersteams__title[data-v-a496fbb5]{color:#fff;font-family:inherit;font-size:1.375rem;font-style:normal;font-weight:500;padding-left:0rem;line-height:normal;margin:0}.gs-menu-playersteams__subtitle[data-v-a496fbb5]{color:#fff;font-family:inherit;font-size:1.25rem;font-style:normal;font-weight:500;line-height:normal;padding-left:0rem;margin:1.5rem 0 2.3rem;text-align:left}.gs-menu-playersteams__container[data-v-a496fbb5]{background-color:#26323c66;border-radius:.5rem;filter:drop-shadow(0rem .25rem 1.25rem rgba(0,0,0,.25));width:100%;flex-shrink:0;padding:.75rem 1.375rem 13.75rem}.gs-menu-playersteams.break-point-3 .gs-menu-playersteams__container[data-v-a496fbb5]{padding:20px 10px}.gs-menu-playersteams__controllers[data-v-a496fbb5]{z-index:100}
package/package.json CHANGED
@@ -1,40 +1,40 @@
1
- {
2
- "name": "@golstats/gsc-players-and-teams-menu",
3
- "version": "1.0.13",
4
- "private": false,
5
- "type": "module",
6
- "files": [
7
- "dist"
8
- ],
9
- "main": "./dist/gsc-players-and-teams-menu.umd.cjs",
10
- "module": "./dist/gsc-players-and-teams-menu.js",
11
- "exports": {
12
- ".": {
13
- "import": "./dist/gsc-players-and-teams-menu.js",
14
- "require": "./dist/gsc-players-and-teams-menu.umd.cjs"
15
- }
16
- },
17
- "scripts": {
18
- "dev": "vite",
19
- "build": "vite build",
20
- "preview": "vite preview",
21
- "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore",
22
- "format": "prettier --write src/"
23
- },
24
- "dependencies": {
25
- "@golstats/gsc-filterperteam": "^1.0.16",
26
- "@golstats/gsc-season-select": "^1.0.7",
27
- "@golstats/gsc-tournament-select": "^1.0.7",
28
- "vue": "3.3.4"
29
- },
30
- "devDependencies": {
31
- "@rushstack/eslint-patch": "^1.3.2",
32
- "@vitejs/plugin-vue": "^4.3.1",
33
- "@vue/eslint-config-prettier": "^8.0.0",
34
- "eslint": "^8.46.0",
35
- "eslint-plugin-vue": "^9.16.1",
36
- "prettier": "^3.0.0",
37
- "sass": "^1.68.0",
38
- "vite": "^4.4.9"
39
- }
40
- }
1
+ {
2
+ "name": "@golstats/gsc-players-and-teams-menu",
3
+ "version": "1.0.14",
4
+ "private": false,
5
+ "type": "module",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "main": "./dist/gsc-players-and-teams-menu.umd.cjs",
10
+ "module": "./dist/gsc-players-and-teams-menu.js",
11
+ "exports": {
12
+ ".": {
13
+ "import": "./dist/gsc-players-and-teams-menu.js",
14
+ "require": "./dist/gsc-players-and-teams-menu.umd.cjs"
15
+ }
16
+ },
17
+ "scripts": {
18
+ "dev": "vite",
19
+ "build": "vite build",
20
+ "preview": "vite preview",
21
+ "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore",
22
+ "format": "prettier --write src/"
23
+ },
24
+ "dependencies": {
25
+ "@golstats/gsc-filterperteam": "^1.0.16",
26
+ "@golstats/gsc-season-select": "^1.0.7",
27
+ "@golstats/gsc-tournament-select": "^1.0.7",
28
+ "vue": "3.3.4"
29
+ },
30
+ "devDependencies": {
31
+ "@rushstack/eslint-patch": "^1.3.2",
32
+ "@vitejs/plugin-vue": "^4.3.1",
33
+ "@vue/eslint-config-prettier": "^8.0.0",
34
+ "eslint": "^8.46.0",
35
+ "eslint-plugin-vue": "^9.16.1",
36
+ "prettier": "^3.0.0",
37
+ "sass": "^1.68.0",
38
+ "vite": "^4.4.9"
39
+ }
40
+ }