@golstats/gsc-players-and-teams-menu 1.0.2 → 1.0.3
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/dist/fonts/BebasNeue-Bold.otf +0 -0
- package/dist/fonts/BebasNeue-Bold.ttf +0 -0
- package/dist/fonts/BebasNeue-Bold.woff2 +0 -0
- package/dist/fonts/BebasNeue-Book.otf +0 -0
- package/dist/fonts/BebasNeue-Book.ttf +0 -0
- package/dist/fonts/BebasNeue-Book.woff2 +0 -0
- package/dist/fonts/BebasNeue-Light.otf +0 -0
- package/dist/fonts/BebasNeue-Light.ttf +0 -0
- package/dist/fonts/BebasNeue-Light.woff2 +0 -0
- package/dist/fonts/BebasNeue-Regular.otf +0 -0
- package/dist/fonts/BebasNeue-Regular.ttf +0 -0
- package/dist/fonts/BebasNeue-Regular.woff2 +0 -0
- package/dist/fonts/BebasNeue-Thin.otf +0 -0
- package/dist/fonts/BebasNeue-Thin.ttf +0 -0
- package/dist/fonts/BebasNeue-Thin.woff2 +0 -0
- package/dist/gsc-players-and-teams-menu.js +127 -127
- package/dist/gsc-players-and-teams-menu.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -4,7 +4,7 @@ const V = (e, o) => {
|
|
|
4
4
|
for (const [r, a] of o)
|
|
5
5
|
t[r] = a;
|
|
6
6
|
return t;
|
|
7
|
-
}, ot = { class: "player-card" }, rt = { class: "player-card__image" }, it = ["src"], at = { class: "player-card__number" }, lt = { class: "player-card__right-data" }, st = { class: "player-card__age" }, nt = { class: "player-card__flag" }, dt =
|
|
7
|
+
}, ot = { class: "player-card" }, rt = { class: "player-card__image" }, it = ["src"], at = { class: "player-card__number" }, lt = { class: "player-card__right-data" }, st = { class: "player-card__age" }, nt = { class: "player-card__flag" }, dt = { class: "player-card__details" }, ct = { class: "player-card__name" }, ut = { class: "player-card__position" }, pt = {
|
|
8
8
|
__name: "GscPlayerCard",
|
|
9
9
|
props: {
|
|
10
10
|
countryFlag: {
|
|
@@ -41,7 +41,8 @@ const V = (e, o) => {
|
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
setup(e) {
|
|
44
|
-
|
|
44
|
+
const o = e;
|
|
45
|
+
return (t, r) => (s(), n("div", ot, [
|
|
45
46
|
i("div", rt, [
|
|
46
47
|
i("img", {
|
|
47
48
|
class: k(["player-card__photo", { "full-width": e.isImgFullWidth }]),
|
|
@@ -52,22 +53,21 @@ const V = (e, o) => {
|
|
|
52
53
|
i("div", lt, [
|
|
53
54
|
i("div", st, g(e.age) + " años", 1),
|
|
54
55
|
i("div", nt, [
|
|
55
|
-
i("
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}, null, 8, dt)
|
|
56
|
+
i("div", {
|
|
57
|
+
class: "player-card__flag-container",
|
|
58
|
+
style: c({ "background-image": `url(${o.countryFlag})` })
|
|
59
|
+
}, null, 4)
|
|
60
60
|
])
|
|
61
61
|
])
|
|
62
62
|
]),
|
|
63
|
-
i("div",
|
|
64
|
-
i("p",
|
|
65
|
-
i("p",
|
|
63
|
+
i("div", dt, [
|
|
64
|
+
i("p", ct, g(e.name), 1),
|
|
65
|
+
i("p", ut, g(e.position), 1)
|
|
66
66
|
])
|
|
67
67
|
]));
|
|
68
68
|
}
|
|
69
|
-
}, yt = /* @__PURE__ */ V(
|
|
70
|
-
const
|
|
69
|
+
}, yt = /* @__PURE__ */ V(pt, [["__scopeId", "data-v-b63201df"]]);
|
|
70
|
+
const ft = { class: "team-card" }, mt = ["src", "alt"], ht = { class: "team-card__name" }, gt = {
|
|
71
71
|
__name: "GscTeamCard",
|
|
72
72
|
props: {
|
|
73
73
|
logo: {
|
|
@@ -84,7 +84,7 @@ const mt = { class: "team-card" }, ht = ["src", "alt"], gt = { class: "team-card
|
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
86
|
setup(e) {
|
|
87
|
-
return (o, t) => (s(), n("div",
|
|
87
|
+
return (o, t) => (s(), n("div", ft, [
|
|
88
88
|
i("div", {
|
|
89
89
|
class: "team-card__bg-image",
|
|
90
90
|
style: c({ "background-image": `url(${e.logo})` })
|
|
@@ -93,16 +93,16 @@ const mt = { class: "team-card" }, ht = ["src", "alt"], gt = { class: "team-card
|
|
|
93
93
|
class: "team-card__image",
|
|
94
94
|
src: e.logo,
|
|
95
95
|
alt: e.name
|
|
96
|
-
}, null, 8,
|
|
97
|
-
i("p",
|
|
96
|
+
}, null, 8, mt),
|
|
97
|
+
i("p", ht, g(e.name), 1)
|
|
98
98
|
]));
|
|
99
99
|
}
|
|
100
|
-
},
|
|
100
|
+
}, vt = /* @__PURE__ */ V(gt, [["__scopeId", "data-v-49fe26bd"]]), _t = (e, o) => {
|
|
101
101
|
const t = e.__vccOpts || e;
|
|
102
102
|
for (const [r, a] of o)
|
|
103
103
|
t[r] = a;
|
|
104
104
|
return t;
|
|
105
|
-
},
|
|
105
|
+
}, bt = {
|
|
106
106
|
props: {
|
|
107
107
|
value: { type: Boolean, default: !1 },
|
|
108
108
|
textValue: String,
|
|
@@ -170,11 +170,11 @@ const mt = { class: "team-card" }, ht = ["src", "alt"], gt = { class: "team-card
|
|
|
170
170
|
this.$emit("click", e), this.typeOnOff && (this.status = !this.status, this.$emit("status", this.status));
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
|
-
},
|
|
173
|
+
}, St = ["src"], Ct = {
|
|
174
174
|
key: 1,
|
|
175
175
|
class: "text"
|
|
176
|
-
},
|
|
177
|
-
function
|
|
176
|
+
}, kt = ["src"];
|
|
177
|
+
function wt(e, o, t, r, a, l) {
|
|
178
178
|
return s(), n("div", {
|
|
179
179
|
class: k(["button", a.status && t.typeOnOff && "button-active"]),
|
|
180
180
|
style: c([l.customStyle, a.status && t.typeOnOff && l.customActive]),
|
|
@@ -185,20 +185,20 @@ function Bt(e, o, t, r, a, l) {
|
|
|
185
185
|
class: "icon",
|
|
186
186
|
style: c({ width: t.iconSize }),
|
|
187
187
|
src: t.icon
|
|
188
|
-
}, null, 12,
|
|
189
|
-
t.textValue ? (s(), n("div",
|
|
188
|
+
}, null, 12, St)) : _("", !0),
|
|
189
|
+
t.textValue ? (s(), n("div", Ct, g(t.textValue), 1)) : _("", !0),
|
|
190
190
|
t.icon && t.iconPosition.toLowerCase() === "right" ? (s(), n("img", {
|
|
191
191
|
key: 2,
|
|
192
192
|
class: "icon",
|
|
193
193
|
style: c({ width: t.iconSize }),
|
|
194
194
|
src: t.icon
|
|
195
|
-
}, null, 12,
|
|
195
|
+
}, null, 12, kt)) : _("", !0)
|
|
196
196
|
], 6);
|
|
197
197
|
}
|
|
198
|
-
const
|
|
198
|
+
const Bt = /* @__PURE__ */ _t(bt, [["render", wt], ["__scopeId", "data-v-1bfd444b"]]), xt = { class: "gsc-dropdown__main-container__item-selected" }, $t = ["height", "width"], It = ["stroke"], Ft = { class: "gsc-dropdown__items-container" }, Tt = ["onClick"], Wt = {
|
|
199
199
|
key: 0,
|
|
200
200
|
class: "gsc-dropdown__items-footer"
|
|
201
|
-
},
|
|
201
|
+
}, Ot = {
|
|
202
202
|
__name: "GSC-Dropdown",
|
|
203
203
|
props: {
|
|
204
204
|
height: {
|
|
@@ -330,10 +330,10 @@ const xt = /* @__PURE__ */ bt(St, [["render", Bt], ["__scopeId", "data-v-1bfd444
|
|
|
330
330
|
(d) => {
|
|
331
331
|
if (d.items && d.items.length) {
|
|
332
332
|
if (t.defaultItemByProp) {
|
|
333
|
-
const
|
|
333
|
+
const y = t.items.findIndex(
|
|
334
334
|
(b) => b[t.defaultItemByProp.propName] === t.defaultItemByProp.value
|
|
335
335
|
);
|
|
336
|
-
|
|
336
|
+
y !== -1 ? (a.value = y, r.value = d.items[y]) : (a.value = 0, r.value = d.items[0]);
|
|
337
337
|
} else
|
|
338
338
|
r.value = d.items[t.defaultItemByIndex];
|
|
339
339
|
o("input", r.value);
|
|
@@ -367,13 +367,13 @@ const xt = /* @__PURE__ */ bt(St, [["render", Bt], ["__scopeId", "data-v-1bfd444
|
|
|
367
367
|
function C() {
|
|
368
368
|
l.value = !l.value;
|
|
369
369
|
}
|
|
370
|
-
function u(d,
|
|
371
|
-
t.isMultipleOption ? a.value = -1 : (a.value =
|
|
370
|
+
function u(d, y) {
|
|
371
|
+
t.isMultipleOption ? a.value = -1 : (a.value = y, l.value = !1), r.value = d, o("input", r.value);
|
|
372
372
|
}
|
|
373
373
|
function v() {
|
|
374
374
|
l.value = !1, o("click-ready");
|
|
375
375
|
}
|
|
376
|
-
return (d,
|
|
376
|
+
return (d, y) => (s(), n("div", {
|
|
377
377
|
class: "gsc-dropdown",
|
|
378
378
|
style: c(p.value)
|
|
379
379
|
}, [
|
|
@@ -382,7 +382,7 @@ const xt = /* @__PURE__ */ bt(St, [["render", Bt], ["__scopeId", "data-v-1bfd444
|
|
|
382
382
|
style: c({ "padding-right": `${e.arrowWidth + 8}px` }),
|
|
383
383
|
onClick: C
|
|
384
384
|
}, [
|
|
385
|
-
i("div",
|
|
385
|
+
i("div", xt, [
|
|
386
386
|
O(d.$slots, "default", { selectedItem: r.value })
|
|
387
387
|
]),
|
|
388
388
|
i("div", {
|
|
@@ -399,13 +399,13 @@ const xt = /* @__PURE__ */ bt(St, [["render", Bt], ["__scopeId", "data-v-1bfd444
|
|
|
399
399
|
i("path", {
|
|
400
400
|
d: "M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",
|
|
401
401
|
stroke: e.arrowColor
|
|
402
|
-
}, null, 8,
|
|
403
|
-
], 8,
|
|
402
|
+
}, null, 8, It)
|
|
403
|
+
], 8, $t))
|
|
404
404
|
], 6)
|
|
405
405
|
], 4),
|
|
406
406
|
x(M, null, {
|
|
407
407
|
default: F(() => [
|
|
408
|
-
j(i("div",
|
|
408
|
+
j(i("div", Ft, [
|
|
409
409
|
i("div", null, [
|
|
410
410
|
i("div", {
|
|
411
411
|
class: "gsc-dropdown__items",
|
|
@@ -417,10 +417,10 @@ const xt = /* @__PURE__ */ bt(St, [["render", Bt], ["__scopeId", "data-v-1bfd444
|
|
|
417
417
|
onClick: (N) => u(b, w)
|
|
418
418
|
}, [
|
|
419
419
|
O(d.$slots, "availableItem", { item: b })
|
|
420
|
-
], 10,
|
|
420
|
+
], 10, Tt))), 128))
|
|
421
421
|
], 4),
|
|
422
|
-
e.isFooterVisible ? (s(), n("div",
|
|
423
|
-
x(B(
|
|
422
|
+
e.isFooterVisible ? (s(), n("div", Wt, [
|
|
423
|
+
x(B(Bt), {
|
|
424
424
|
"text-value": "Listo",
|
|
425
425
|
"border-color": "#cbee6b",
|
|
426
426
|
"font-size": "12px",
|
|
@@ -440,12 +440,12 @@ const xt = /* @__PURE__ */ bt(St, [["render", Bt], ["__scopeId", "data-v-1bfd444
|
|
|
440
440
|
})
|
|
441
441
|
], 4));
|
|
442
442
|
}
|
|
443
|
-
},
|
|
443
|
+
}, Nt = (e, o) => {
|
|
444
444
|
const t = e.__vccOpts || e;
|
|
445
445
|
for (const [r, a] of o)
|
|
446
446
|
t[r] = a;
|
|
447
447
|
return t;
|
|
448
|
-
},
|
|
448
|
+
}, Pt = { class: "tournament-select__selected-tournament" }, zt = { class: "tournament-select__selected-tournament__logo" }, Rt = ["src"], At = { class: "tournament-select__selected-tournament__name" }, Vt = {
|
|
449
449
|
__name: "GSCTournamentSelect",
|
|
450
450
|
props: {
|
|
451
451
|
apiUrl: {
|
|
@@ -566,20 +566,20 @@ const xt = /* @__PURE__ */ bt(St, [["render", Bt], ["__scopeId", "data-v-1bfd444
|
|
|
566
566
|
class: "tournament-select",
|
|
567
567
|
style: c(a.value)
|
|
568
568
|
}, [
|
|
569
|
-
x(B(
|
|
569
|
+
x(B(Ot), z(t, {
|
|
570
570
|
items: r.value,
|
|
571
571
|
onInput: C
|
|
572
572
|
}), {
|
|
573
573
|
default: F(({ selectedItem: d }) => [
|
|
574
|
-
i("div",
|
|
575
|
-
i("div",
|
|
574
|
+
i("div", Pt, [
|
|
575
|
+
i("div", zt, [
|
|
576
576
|
p(d.id) ? (s(), n("img", {
|
|
577
577
|
key: 0,
|
|
578
578
|
src: `${t.logosUrl}${d.id}.${t.logoFileType}`,
|
|
579
579
|
alt: ""
|
|
580
|
-
}, null, 8,
|
|
580
|
+
}, null, 8, Rt)) : _("", !0)
|
|
581
581
|
]),
|
|
582
|
-
i("div",
|
|
582
|
+
i("div", At, g(d.name), 1)
|
|
583
583
|
])
|
|
584
584
|
]),
|
|
585
585
|
availableItem: F(({ item: d }) => [
|
|
@@ -589,12 +589,12 @@ const xt = /* @__PURE__ */ bt(St, [["render", Bt], ["__scopeId", "data-v-1bfd444
|
|
|
589
589
|
}, 16, ["items"])
|
|
590
590
|
], 4));
|
|
591
591
|
}
|
|
592
|
-
},
|
|
592
|
+
}, Lt = /* @__PURE__ */ Nt(Vt, [["__scopeId", "data-v-ed37b8ef"]]), Dt = (e, o) => {
|
|
593
593
|
const t = e.__vccOpts || e;
|
|
594
594
|
for (const [r, a] of o)
|
|
595
595
|
t[r] = a;
|
|
596
596
|
return t;
|
|
597
|
-
},
|
|
597
|
+
}, Ht = {
|
|
598
598
|
props: {
|
|
599
599
|
value: { type: Boolean, default: !1 },
|
|
600
600
|
textValue: String,
|
|
@@ -662,11 +662,11 @@ const xt = /* @__PURE__ */ bt(St, [["render", Bt], ["__scopeId", "data-v-1bfd444
|
|
|
662
662
|
this.$emit("click", e), this.typeOnOff && (this.status = !this.status, this.$emit("status", this.status));
|
|
663
663
|
}
|
|
664
664
|
}
|
|
665
|
-
},
|
|
665
|
+
}, Et = ["src"], Mt = {
|
|
666
666
|
key: 1,
|
|
667
667
|
class: "text"
|
|
668
|
-
},
|
|
669
|
-
function
|
|
668
|
+
}, jt = ["src"];
|
|
669
|
+
function Gt(e, o, t, r, a, l) {
|
|
670
670
|
return s(), n("div", {
|
|
671
671
|
class: k(["button", a.status && t.typeOnOff && "button-active"]),
|
|
672
672
|
style: c([l.customStyle, a.status && t.typeOnOff && l.customActive]),
|
|
@@ -677,20 +677,20 @@ function Jt(e, o, t, r, a, l) {
|
|
|
677
677
|
class: "icon",
|
|
678
678
|
style: c({ width: t.iconSize }),
|
|
679
679
|
src: t.icon
|
|
680
|
-
}, null, 12,
|
|
681
|
-
t.textValue ? (s(), n("div",
|
|
680
|
+
}, null, 12, Et)) : _("", !0),
|
|
681
|
+
t.textValue ? (s(), n("div", Mt, g(t.textValue), 1)) : _("", !0),
|
|
682
682
|
t.icon && t.iconPosition.toLowerCase() === "right" ? (s(), n("img", {
|
|
683
683
|
key: 2,
|
|
684
684
|
class: "icon",
|
|
685
685
|
style: c({ width: t.iconSize }),
|
|
686
686
|
src: t.icon
|
|
687
|
-
}, null, 12,
|
|
687
|
+
}, null, 12, jt)) : _("", !0)
|
|
688
688
|
], 6);
|
|
689
689
|
}
|
|
690
|
-
const
|
|
690
|
+
const Jt = /* @__PURE__ */ Dt(Ht, [["render", Gt], ["__scopeId", "data-v-1bfd444b"]]), Ut = { class: "gsc-dropdown__main-container__item-selected" }, Zt = ["height", "width"], qt = ["stroke"], Xt = { class: "gsc-dropdown__items-container" }, Yt = ["onClick"], Kt = {
|
|
691
691
|
key: 0,
|
|
692
692
|
class: "gsc-dropdown__items-footer"
|
|
693
|
-
},
|
|
693
|
+
}, Qt = {
|
|
694
694
|
__name: "GSC-Dropdown",
|
|
695
695
|
props: {
|
|
696
696
|
height: {
|
|
@@ -822,10 +822,10 @@ const Ut = /* @__PURE__ */ Ht(Et, [["render", Jt], ["__scopeId", "data-v-1bfd444
|
|
|
822
822
|
(d) => {
|
|
823
823
|
if (d.items && d.items.length) {
|
|
824
824
|
if (t.defaultItemByProp) {
|
|
825
|
-
const
|
|
825
|
+
const y = t.items.findIndex(
|
|
826
826
|
(b) => b[t.defaultItemByProp.propName] === t.defaultItemByProp.value
|
|
827
827
|
);
|
|
828
|
-
|
|
828
|
+
y !== -1 ? (a.value = y, r.value = d.items[y]) : (a.value = 0, r.value = d.items[0]);
|
|
829
829
|
} else
|
|
830
830
|
r.value = d.items[t.defaultItemByIndex];
|
|
831
831
|
o("input", r.value);
|
|
@@ -859,13 +859,13 @@ const Ut = /* @__PURE__ */ Ht(Et, [["render", Jt], ["__scopeId", "data-v-1bfd444
|
|
|
859
859
|
function C() {
|
|
860
860
|
l.value = !l.value;
|
|
861
861
|
}
|
|
862
|
-
function u(d,
|
|
863
|
-
t.isMultipleOption ? a.value = -1 : (a.value =
|
|
862
|
+
function u(d, y) {
|
|
863
|
+
t.isMultipleOption ? a.value = -1 : (a.value = y, l.value = !1), r.value = d, o("input", r.value);
|
|
864
864
|
}
|
|
865
865
|
function v() {
|
|
866
866
|
l.value = !1, o("click-ready");
|
|
867
867
|
}
|
|
868
|
-
return (d,
|
|
868
|
+
return (d, y) => (s(), n("div", {
|
|
869
869
|
class: "gsc-dropdown",
|
|
870
870
|
style: c(p.value)
|
|
871
871
|
}, [
|
|
@@ -874,7 +874,7 @@ const Ut = /* @__PURE__ */ Ht(Et, [["render", Jt], ["__scopeId", "data-v-1bfd444
|
|
|
874
874
|
style: c({ "padding-right": `${e.arrowWidth + 8}px` }),
|
|
875
875
|
onClick: C
|
|
876
876
|
}, [
|
|
877
|
-
i("div",
|
|
877
|
+
i("div", Ut, [
|
|
878
878
|
O(d.$slots, "default", { selectedItem: r.value })
|
|
879
879
|
]),
|
|
880
880
|
i("div", {
|
|
@@ -891,13 +891,13 @@ const Ut = /* @__PURE__ */ Ht(Et, [["render", Jt], ["__scopeId", "data-v-1bfd444
|
|
|
891
891
|
i("path", {
|
|
892
892
|
d: "M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",
|
|
893
893
|
stroke: e.arrowColor
|
|
894
|
-
}, null, 8,
|
|
895
|
-
], 8,
|
|
894
|
+
}, null, 8, qt)
|
|
895
|
+
], 8, Zt))
|
|
896
896
|
], 6)
|
|
897
897
|
], 4),
|
|
898
898
|
x(M, null, {
|
|
899
899
|
default: F(() => [
|
|
900
|
-
j(i("div",
|
|
900
|
+
j(i("div", Xt, [
|
|
901
901
|
i("div", null, [
|
|
902
902
|
i("div", {
|
|
903
903
|
class: "gsc-dropdown__items",
|
|
@@ -909,10 +909,10 @@ const Ut = /* @__PURE__ */ Ht(Et, [["render", Jt], ["__scopeId", "data-v-1bfd444
|
|
|
909
909
|
onClick: (N) => u(b, w)
|
|
910
910
|
}, [
|
|
911
911
|
O(d.$slots, "availableItem", { item: b })
|
|
912
|
-
], 10,
|
|
912
|
+
], 10, Yt))), 128))
|
|
913
913
|
], 4),
|
|
914
|
-
e.isFooterVisible ? (s(), n("div",
|
|
915
|
-
x(B(
|
|
914
|
+
e.isFooterVisible ? (s(), n("div", Kt, [
|
|
915
|
+
x(B(Jt), {
|
|
916
916
|
"text-value": "Listo",
|
|
917
917
|
"border-color": "#cbee6b",
|
|
918
918
|
"font-size": "12px",
|
|
@@ -932,12 +932,12 @@ const Ut = /* @__PURE__ */ Ht(Et, [["render", Jt], ["__scopeId", "data-v-1bfd444
|
|
|
932
932
|
})
|
|
933
933
|
], 4));
|
|
934
934
|
}
|
|
935
|
-
},
|
|
935
|
+
}, te = (e, o) => {
|
|
936
936
|
const t = e.__vccOpts || e;
|
|
937
937
|
for (const [r, a] of o)
|
|
938
938
|
t[r] = a;
|
|
939
939
|
return t;
|
|
940
|
-
},
|
|
940
|
+
}, ee = { class: "season-name" }, oe = {
|
|
941
941
|
__name: "GSC-Season-Select",
|
|
942
942
|
props: {
|
|
943
943
|
seasons: {
|
|
@@ -950,7 +950,7 @@ const Ut = /* @__PURE__ */ Ht(Et, [["render", Jt], ["__scopeId", "data-v-1bfd444
|
|
|
950
950
|
function t(r) {
|
|
951
951
|
o("input", r);
|
|
952
952
|
}
|
|
953
|
-
return (r, a) => (s(), R(B(
|
|
953
|
+
return (r, a) => (s(), R(B(Qt), {
|
|
954
954
|
items: e.seasons,
|
|
955
955
|
height: "40px",
|
|
956
956
|
width: "179px",
|
|
@@ -962,7 +962,7 @@ const Ut = /* @__PURE__ */ Ht(Et, [["render", Jt], ["__scopeId", "data-v-1bfd444
|
|
|
962
962
|
onInput: t
|
|
963
963
|
}, {
|
|
964
964
|
default: F(({ selectedItem: l }) => [
|
|
965
|
-
i("div",
|
|
965
|
+
i("div", ee, [
|
|
966
966
|
i("span", null, g(l.name), 1)
|
|
967
967
|
])
|
|
968
968
|
]),
|
|
@@ -972,12 +972,12 @@ const Ut = /* @__PURE__ */ Ht(Et, [["render", Jt], ["__scopeId", "data-v-1bfd444
|
|
|
972
972
|
_: 1
|
|
973
973
|
}, 8, ["items"]));
|
|
974
974
|
}
|
|
975
|
-
},
|
|
975
|
+
}, re = /* @__PURE__ */ te(oe, [["__scopeId", "data-v-ffcf8231"]]), ie = (e, o) => {
|
|
976
976
|
const t = e.__vccOpts || e;
|
|
977
977
|
for (const [r, a] of o)
|
|
978
978
|
t[r] = a;
|
|
979
979
|
return t;
|
|
980
|
-
},
|
|
980
|
+
}, ae = {
|
|
981
981
|
props: {
|
|
982
982
|
textValue: String,
|
|
983
983
|
icon: String,
|
|
@@ -1035,11 +1035,11 @@ const Ut = /* @__PURE__ */ Ht(Et, [["render", Jt], ["__scopeId", "data-v-1bfd444
|
|
|
1035
1035
|
this.$emit("click", e), this.typeOnOff && (this.status = !this.status, this.$emit("status", this.status));
|
|
1036
1036
|
}
|
|
1037
1037
|
}
|
|
1038
|
-
},
|
|
1038
|
+
}, le = ["src"], se = {
|
|
1039
1039
|
key: 1,
|
|
1040
1040
|
class: "text"
|
|
1041
|
-
},
|
|
1042
|
-
function
|
|
1041
|
+
}, ne = ["src"];
|
|
1042
|
+
function de(e, o, t, r, a, l) {
|
|
1043
1043
|
return s(), n("div", {
|
|
1044
1044
|
class: k(["button", a.status && t.typeOnOff && "button-active"]),
|
|
1045
1045
|
style: c([l.customStyle, a.status && t.typeOnOff && l.customActive]),
|
|
@@ -1050,24 +1050,24 @@ function ce(e, o, t, r, a, l) {
|
|
|
1050
1050
|
class: "icon",
|
|
1051
1051
|
style: c({ width: t.iconSize }),
|
|
1052
1052
|
src: t.icon
|
|
1053
|
-
}, null, 12,
|
|
1054
|
-
t.textValue ? (s(), n("div",
|
|
1053
|
+
}, null, 12, le)) : _("", !0),
|
|
1054
|
+
t.textValue ? (s(), n("div", se, g(t.textValue), 1)) : _("", !0),
|
|
1055
1055
|
t.icon && t.iconPosition.toLowerCase() === "right" ? (s(), n("img", {
|
|
1056
1056
|
key: 2,
|
|
1057
1057
|
class: "icon",
|
|
1058
1058
|
style: c({ width: t.iconSize }),
|
|
1059
1059
|
src: t.icon
|
|
1060
|
-
}, null, 12,
|
|
1060
|
+
}, null, 12, ne)) : _("", !0)
|
|
1061
1061
|
], 6);
|
|
1062
1062
|
}
|
|
1063
|
-
const
|
|
1063
|
+
const ce = /* @__PURE__ */ ie(ae, [["render", de], ["__scopeId", "data-v-b2da5db3"]]), ue = (e, o) => {
|
|
1064
1064
|
const t = e.__vccOpts || e;
|
|
1065
1065
|
for (const [r, a] of o)
|
|
1066
1066
|
t[r] = a;
|
|
1067
1067
|
return t;
|
|
1068
1068
|
}, L = {
|
|
1069
1069
|
components: {
|
|
1070
|
-
GSCButton:
|
|
1070
|
+
GSCButton: ce
|
|
1071
1071
|
},
|
|
1072
1072
|
props: {
|
|
1073
1073
|
hiddenButtonAll: {
|
|
@@ -1182,24 +1182,24 @@ const ue = /* @__PURE__ */ ae(le, [["render", ce], ["__scopeId", "data-v-b2da5db
|
|
|
1182
1182
|
}
|
|
1183
1183
|
}, H = () => {
|
|
1184
1184
|
Y((e) => ({
|
|
1185
|
-
"
|
|
1186
|
-
"
|
|
1185
|
+
"57af7782": e.centerTextCustom,
|
|
1186
|
+
"8066786a": e.marginCustom
|
|
1187
1187
|
}));
|
|
1188
1188
|
}, E = L.setup;
|
|
1189
1189
|
L.setup = E ? (e, o) => (H(), E(e, o)) : H;
|
|
1190
|
-
const
|
|
1190
|
+
const pe = {
|
|
1191
1191
|
id: "panelteams",
|
|
1192
1192
|
class: "gsc-filterperteam__panel-teams",
|
|
1193
1193
|
ref: "panel"
|
|
1194
|
-
}, ye = { class: "gsc-filterperteam__panel-teams__cont-teams" },
|
|
1195
|
-
function
|
|
1194
|
+
}, ye = { class: "gsc-filterperteam__panel-teams__cont-teams" }, fe = ["onClick"], me = ["src", "alt", "title"];
|
|
1195
|
+
function he(e, o, t, r, a, l) {
|
|
1196
1196
|
const p = K("GSCButton");
|
|
1197
1197
|
return s(), n("div", {
|
|
1198
1198
|
class: "gsc-filterperteam",
|
|
1199
1199
|
ref: "container",
|
|
1200
1200
|
style: c(l.customStyleContain)
|
|
1201
1201
|
}, [
|
|
1202
|
-
i("div",
|
|
1202
|
+
i("div", pe, [
|
|
1203
1203
|
i("div", ye, [
|
|
1204
1204
|
t.hiddenButtonAll ? _("", !0) : (s(), n("div", {
|
|
1205
1205
|
key: 0,
|
|
@@ -1207,7 +1207,7 @@ function ge(e, o, t, r, a, l) {
|
|
|
1207
1207
|
class: "gsc-filterperteam__panel-teams__cont-teams__button-all"
|
|
1208
1208
|
}, [
|
|
1209
1209
|
x(p, {
|
|
1210
|
-
"text-value": "
|
|
1210
|
+
"text-value": "Todos",
|
|
1211
1211
|
width: "76px",
|
|
1212
1212
|
height: "28px",
|
|
1213
1213
|
"font-family": "Poppins-Medium",
|
|
@@ -1230,13 +1230,13 @@ function ge(e, o, t, r, a, l) {
|
|
|
1230
1230
|
src: m.logo,
|
|
1231
1231
|
alt: m.name,
|
|
1232
1232
|
title: m.name
|
|
1233
|
-
}, null, 8,
|
|
1234
|
-
], 14,
|
|
1233
|
+
}, null, 8, me)
|
|
1234
|
+
], 14, fe))), 128))
|
|
1235
1235
|
])
|
|
1236
1236
|
], 512)
|
|
1237
1237
|
], 4);
|
|
1238
1238
|
}
|
|
1239
|
-
const
|
|
1239
|
+
const ge = /* @__PURE__ */ ue(L, [["render", he], ["__scopeId", "data-v-19c45673"]]), ve = /* @__PURE__ */ new Map([
|
|
1240
1240
|
[1, "Portero"],
|
|
1241
1241
|
[2, "Defensa Central"],
|
|
1242
1242
|
[3, "Lateral por izquierda"],
|
|
@@ -1248,7 +1248,7 @@ const ve = /* @__PURE__ */ pe(L, [["render", ge], ["__scopeId", "data-v-78518bfe
|
|
|
1248
1248
|
[9, "Delantero "],
|
|
1249
1249
|
[10, "Desconocida"]
|
|
1250
1250
|
]), J = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";
|
|
1251
|
-
async function
|
|
1251
|
+
async function _e({ seasonId: e, token: o }) {
|
|
1252
1252
|
try {
|
|
1253
1253
|
const t = `https://yjeig444bb.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e}`;
|
|
1254
1254
|
return (await fetch(t, { headers: {
|
|
@@ -1258,7 +1258,7 @@ async function be({ seasonId: e, token: o }) {
|
|
|
1258
1258
|
return Promise.reject(t);
|
|
1259
1259
|
}
|
|
1260
1260
|
}
|
|
1261
|
-
async function
|
|
1261
|
+
async function be({ seasonId: e, teamId: o, token: t }) {
|
|
1262
1262
|
try {
|
|
1263
1263
|
const r = `https://pa3kubpuhg.execute-api.us-west-2.amazonaws.com/prod/playersByTeamAndSeason/${e}/${o}`;
|
|
1264
1264
|
return (await fetch(r, { headers: {
|
|
@@ -1268,13 +1268,13 @@ async function Se({ seasonId: e, teamId: o, token: t }) {
|
|
|
1268
1268
|
return Promise.reject(r);
|
|
1269
1269
|
}
|
|
1270
1270
|
}
|
|
1271
|
-
const
|
|
1271
|
+
const Se = (e) => (tt("data-v-833338f3"), e = e(), et(), e), Ce = { class: "gs-menu-playersteams__header" }, ke = { class: "gs-menu-playersteams__title" }, we = { class: "gs-menu-playersteams__controllers" }, Be = {
|
|
1272
1272
|
key: 0,
|
|
1273
1273
|
class: "gs-menu-playersteams__container"
|
|
1274
|
-
},
|
|
1274
|
+
}, xe = /* @__PURE__ */ Se(() => /* @__PURE__ */ i("hr", { class: "gs-menu-playersteams__spacer" }, null, -1)), $e = { class: "gs-menu-playersteams__subtitle" }, Ie = { class: "gs-menu-playersteams__players-container" }, Fe = {
|
|
1275
1275
|
key: 1,
|
|
1276
1276
|
class: "gs-menu-playersteams__teams-container"
|
|
1277
|
-
},
|
|
1277
|
+
}, Te = {
|
|
1278
1278
|
__name: "GSCPlayersAndTeamsMenu",
|
|
1279
1279
|
props: {
|
|
1280
1280
|
type: {
|
|
@@ -1298,74 +1298,74 @@ const Ce = (e) => (tt("data-v-159fc5ec"), e = e(), et(), e), ke = { class: "gs-m
|
|
|
1298
1298
|
},
|
|
1299
1299
|
emits: ["clickTeam", "clickPlayer"],
|
|
1300
1300
|
setup(e, { emit: o }) {
|
|
1301
|
-
const t = e, r = h([]), a = h([]), l = h([]), p = h(null), m = h(null), C = h({}), u = h(1), v = (
|
|
1302
|
-
l.value =
|
|
1303
|
-
}, d = (
|
|
1304
|
-
p.value =
|
|
1305
|
-
}, { type:
|
|
1306
|
-
async function D(
|
|
1301
|
+
const t = e, r = h([]), a = h([]), l = h([]), p = h(null), m = h(null), C = h({}), u = h(1), v = (f) => {
|
|
1302
|
+
l.value = f.seasons;
|
|
1303
|
+
}, d = (f) => {
|
|
1304
|
+
p.value = f.id;
|
|
1305
|
+
}, { type: y, token: b, componentWidth: w } = Q(t), N = I(() => w.value < 500 ? "break-point-3" : "");
|
|
1306
|
+
async function D(f) {
|
|
1307
1307
|
try {
|
|
1308
|
-
C.value = r.value.find((S) => S.team_id ===
|
|
1309
|
-
const $ = await
|
|
1310
|
-
a.value = $[0].players.map((S) => ({ ...S, position:
|
|
1308
|
+
C.value = r.value.find((S) => S.team_id === f), m.value = f;
|
|
1309
|
+
const $ = await be({ seasonId: p.value, teamId: f, token: b.value });
|
|
1310
|
+
a.value = $[0].players.map((S) => ({ ...S, position: ve.get(S.position_id), countryFlag: S.nationality_photo, isImgFullWidth: !1 }));
|
|
1311
1311
|
} catch ($) {
|
|
1312
1312
|
console.error($);
|
|
1313
1313
|
}
|
|
1314
1314
|
}
|
|
1315
1315
|
A(async () => {
|
|
1316
1316
|
try {
|
|
1317
|
-
const
|
|
1318
|
-
r.value =
|
|
1319
|
-
} catch (
|
|
1320
|
-
console.error(
|
|
1317
|
+
const f = await _e({ seasonId: p.value, token: b.value });
|
|
1318
|
+
r.value = f.teams.map(($) => ({ ...$, id: $.team_id, name: $.team_name }));
|
|
1319
|
+
} catch (f) {
|
|
1320
|
+
console.error(f);
|
|
1321
1321
|
}
|
|
1322
1322
|
}, [p]);
|
|
1323
|
-
function U(
|
|
1324
|
-
|
|
1323
|
+
function U(f) {
|
|
1324
|
+
y.value === "teams" ? o("clickTeam", { teamId: f, seasonId: p.value }) : y.value === "players" && (D(f), u.value = 2);
|
|
1325
1325
|
}
|
|
1326
|
-
function Z(
|
|
1327
|
-
o("clickPlayer", { playerId:
|
|
1326
|
+
function Z(f) {
|
|
1327
|
+
o("clickPlayer", { playerId: f, teamId: m.value, seasonId: p.value });
|
|
1328
1328
|
}
|
|
1329
|
-
return (
|
|
1329
|
+
return (f, $) => (s(), n("section", {
|
|
1330
1330
|
class: k(["gs-menu-playersteams", N.value])
|
|
1331
1331
|
}, [
|
|
1332
|
-
i("div",
|
|
1333
|
-
i("h1",
|
|
1334
|
-
i("div",
|
|
1335
|
-
x(B(
|
|
1332
|
+
i("div", Ce, [
|
|
1333
|
+
i("h1", ke, g(B(y) === "players" ? "Jugadores" : "Equipos"), 1),
|
|
1334
|
+
i("div", we, [
|
|
1335
|
+
x(B(Lt), {
|
|
1336
1336
|
onInput: v,
|
|
1337
1337
|
style: { "margin-right": "15px" }
|
|
1338
1338
|
}),
|
|
1339
1339
|
i("div", null, [
|
|
1340
|
-
x(B(
|
|
1340
|
+
x(B(re), {
|
|
1341
1341
|
items: l.value,
|
|
1342
1342
|
onInput: d
|
|
1343
1343
|
}, null, 8, ["items"])
|
|
1344
1344
|
])
|
|
1345
1345
|
])
|
|
1346
1346
|
]),
|
|
1347
|
-
B(
|
|
1348
|
-
x(B(
|
|
1347
|
+
B(y) === "players" && u.value === 2 ? (s(), n("div", Be, [
|
|
1348
|
+
x(B(ge), {
|
|
1349
1349
|
hiddenButtonAll: "",
|
|
1350
1350
|
data: r.value,
|
|
1351
1351
|
style: { "background-color": "transparent" },
|
|
1352
1352
|
onClickTeam: D
|
|
1353
1353
|
}, null, 8, ["data"]),
|
|
1354
|
-
|
|
1355
|
-
i("div",
|
|
1356
|
-
i("div",
|
|
1354
|
+
xe,
|
|
1355
|
+
i("div", $e, g(C.value.name), 1),
|
|
1356
|
+
i("div", Ie, [
|
|
1357
1357
|
(s(!0), n(T, null, W(a.value, (S, P) => (s(), R(yt, z({ key: P }, S, {
|
|
1358
1358
|
onClick: (q) => Z(S.player_id)
|
|
1359
1359
|
}), null, 16, ["onClick"]))), 128))
|
|
1360
1360
|
])
|
|
1361
|
-
])) : (s(), n("div",
|
|
1362
|
-
(s(!0), n(T, null, W(r.value, (S, P) => (s(), R(
|
|
1361
|
+
])) : (s(), n("div", Fe, [
|
|
1362
|
+
(s(!0), n(T, null, W(r.value, (S, P) => (s(), R(vt, z({ key: P }, S, {
|
|
1363
1363
|
onClick: (q) => U(S.id)
|
|
1364
1364
|
}), null, 16, ["onClick"]))), 128))
|
|
1365
1365
|
]))
|
|
1366
1366
|
], 2));
|
|
1367
1367
|
}
|
|
1368
|
-
},
|
|
1368
|
+
}, Oe = /* @__PURE__ */ V(Te, [["__scopeId", "data-v-833338f3"]]);
|
|
1369
1369
|
export {
|
|
1370
|
-
|
|
1370
|
+
Oe as GSCPlayersAndTeamsMenu
|
|
1371
1371
|
};
|
|
@@ -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 ie="",ae="",ne="",se="",b=(o,r)=>{const e=o.__vccOpts||o;for(const[l,i]of r)e[l]=i;return e},E={class:"player-card"},V={class:"player-card__image"},I=["src"],z={class:"player-card__number"},F={class:"player-card__right-data"},T={class:"player-card__age"},W={class:"player-card__flag"},P=["src"],O={class:"player-card__details"},D={class:"player-card__name"},R={class:"player-card__position"},A=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){return(r,e)=>(t.openBlock(),t.createElementBlock("div",E,[t.createElementVNode("div",V,[t.createElementVNode("img",{class:t.normalizeClass(["player-card__photo",{"full-width":o.isImgFullWidth}]),src:o.photo,alt:"Player Image"},null,10,I),t.createElementVNode("div",z,t.toDisplayString(o.jersey),1),t.createElementVNode("div",F,[t.createElementVNode("div",T,t.toDisplayString(o.age)+" años",1),t.createElementVNode("div",W,[t.createElementVNode("img",{width:"20",src:o.countryFlag,alt:"country flag"},null,8,P)])])]),t.createElementVNode("div",O,[t.createElementVNode("p",D,t.toDisplayString(o.name),1),t.createElementVNode("p",R,t.toDisplayString(o.position),1)])]))}},[["__scopeId","data-v-1f2af5ec"]]),ce="",L={class:"team-card"},H=["src","alt"],M={class:"team-card__name"},j=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",L,[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,H),t.createElementVNode("p",M,t.toDisplayString(o.name),1)]))}},[["__scopeId","data-v-2fa8679a"]]),G=(o,r)=>{const e=o.__vccOpts||o;for(const[l,i]of r)e[l]=i;return e},J={props:{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"},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},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}},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))}}},U=["src"],Z={key:1,class:"text"},q=["src"];function X(o,r,e,l,i,a){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["button",i.status&&e.typeOnOff&&"button-active"]),style:t.normalizeStyle([a.customStyle,i.status&&e.typeOnOff&&a.customActive]),onClick:r[0]||(r[0]=(...d)=>a.btnClick&&a.btnClick(...d))},[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,U)):t.createCommentVNode("",!0),e.textValue?(t.openBlock(),t.createElementBlock("div",Z,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,q)):t.createCommentVNode("",!0)],6)}const Y=G(J,[["render",X],["__scopeId","data-v-1bfd444b"]]),K={class:"gsc-dropdown__main-container__item-selected"},Q=["height","width"],v=["stroke"],tt={class:"gsc-dropdown__items-container"},et=["onClick"],ot={key:0,class:"gsc-dropdown__items-footer"},rt={__name:"GSC-Dropdown",props:{height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},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}},emits:["input","click-ready"],setup(o,{emit:r}){const e=o,l=t.ref({}),i=t.ref(e.isMultipleOption?-1:0),a=t.ref(!1);t.watch(e,n=>{if(n.items&&n.items.length){if(e.defaultItemByProp){const c=e.items.findIndex(y=>y[e.defaultItemByProp.propName]===e.defaultItemByProp.value);c!==-1?(i.value=c,l.value=n.items[c]):(i.value=0,l.value=n.items[0])}else l.value=n.items[e.defaultItemByIndex];r("input",l.value)}},{immediate:!0});const d=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}`})),m=t.computed(()=>({height:`${e.arrowHeight}px`,width:`${e.arrowWidth}px`}));function h(){a.value=!a.value}function s(n,c){e.isMultipleOption?i.value=-1:(i.value=c,a.value=!1),l.value=n,r("input",l.value)}function u(){a.value=!1,r("click-ready")}return(n,c)=>(t.openBlock(),t.createElementBlock("div",{class:"gsc-dropdown",style:t.normalizeStyle(d.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${o.arrowWidth+8}px`}),onClick:h},[t.createElementVNode("div",K,[t.renderSlot(n.$slots,"default",{selectedItem:l.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":a.value}]),style:t.normalizeStyle(m.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,v)],8,Q))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",tt,[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,(y,g)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:g===i.value}]),key:g,onClick:C=>s(y,g)},[t.renderSlot(n.$slots,"availableItem",{item:y})],10,et))),128))],4),o.isFooterVisible?(t.openBlock(),t.createElementBlock("div",ot,[t.createVNode(t.unref(Y),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:u})])):t.createCommentVNode("",!0)])],512),[[t.vShow,a.value]])]),_:3})],4))}},lt=(o,r)=>{const e=o.__vccOpts||o;for(const[l,i]of r)e[l]=i;return e},it={class:"tournament-select__selected-tournament"},at={class:"tournament-select__selected-tournament__logo"},nt=["src"],st={class:"tournament-select__selected-tournament__name"},dt={__name:"GSCTournamentSelect",props:{apiUrl:{type:String,default:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments"},fontFamily:{type:String,default:"sans-serif"},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)}},emits:["input"],setup(o,{emit:r}){const e=o,l=t.ref([]),i=t.computed(()=>{const s={};return e.fontFamily&&(s["font-family"]=`${e.fontFamily}`),s});async function a(){try{if(e.items&&e.items.length)l.value=[...e.items];else if(e.apiUrl){const s=await m();l.value=s.map(u=>({...u.tournament,seasons:u.seasons}))}}catch(s){throw new Error(s)}}function d(s){const u=new XMLHttpRequest,n=`${e.logosUrl}${s}.${e.logoFileType}`;return u.open("HEAD",n,!1),u.send(),u.status!==404}async function m(){try{return(await fetch(e.apiUrl)).json()}catch(s){return Promise.reject(s)}}function h(s){r("input",s)}return t.onMounted(()=>{a()}),(s,u)=>(t.openBlock(),t.createElementBlock("div",{class:"tournament-select",style:t.normalizeStyle(i.value)},[t.createVNode(t.unref(rt),t.mergeProps(e,{items:l.value,onInput:h}),{default:t.withCtx(({selectedItem:n})=>[t.createElementVNode("div",it,[t.createElementVNode("div",at,[d(n.id)?(t.openBlock(),t.createElementBlock("img",{key:0,src:`${e.logosUrl}${n.id}.${e.logoFileType}`,alt:""},null,8,nt)):t.createCommentVNode("",!0)]),t.createElementVNode("div",st,t.toDisplayString(n.name),1)])]),availableItem:t.withCtx(({item:n})=>[t.createElementVNode("div",null,t.toDisplayString(n.name),1)]),_:1},16,["items"])],4))}},ct=lt(dt,[["__scopeId","data-v-ed37b8ef"]]),pt=(o,r)=>{const e=o.__vccOpts||o;for(const[l,i]of r)e[l]=i;return e},mt={props:{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"},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},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}},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))}}},ut=["src"],yt={key:1,class:"text"},ft=["src"];function ht(o,r,e,l,i,a){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["button",i.status&&e.typeOnOff&&"button-active"]),style:t.normalizeStyle([a.customStyle,i.status&&e.typeOnOff&&a.customActive]),onClick:r[0]||(r[0]=(...d)=>a.btnClick&&a.btnClick(...d))},[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,ut)):t.createCommentVNode("",!0),e.textValue?(t.openBlock(),t.createElementBlock("div",yt,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,ft)):t.createCommentVNode("",!0)],6)}const gt=pt(mt,[["render",ht],["__scopeId","data-v-1bfd444b"]]),St={class:"gsc-dropdown__main-container__item-selected"},_t=["height","width"],bt=["stroke"],kt={class:"gsc-dropdown__items-container"},Ct=["onClick"],Bt={key:0,class:"gsc-dropdown__items-footer"},wt={__name:"GSC-Dropdown",props:{height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},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}},emits:["input","click-ready"],setup(o,{emit:r}){const e=o,l=t.ref({}),i=t.ref(e.isMultipleOption?-1:0),a=t.ref(!1);t.watch(e,n=>{if(n.items&&n.items.length){if(e.defaultItemByProp){const c=e.items.findIndex(y=>y[e.defaultItemByProp.propName]===e.defaultItemByProp.value);c!==-1?(i.value=c,l.value=n.items[c]):(i.value=0,l.value=n.items[0])}else l.value=n.items[e.defaultItemByIndex];r("input",l.value)}},{immediate:!0});const d=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}`})),m=t.computed(()=>({height:`${e.arrowHeight}px`,width:`${e.arrowWidth}px`}));function h(){a.value=!a.value}function s(n,c){e.isMultipleOption?i.value=-1:(i.value=c,a.value=!1),l.value=n,r("input",l.value)}function u(){a.value=!1,r("click-ready")}return(n,c)=>(t.openBlock(),t.createElementBlock("div",{class:"gsc-dropdown",style:t.normalizeStyle(d.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${o.arrowWidth+8}px`}),onClick:h},[t.createElementVNode("div",St,[t.renderSlot(n.$slots,"default",{selectedItem:l.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":a.value}]),style:t.normalizeStyle(m.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,bt)],8,_t))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",kt,[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,(y,g)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:g===i.value}]),key:g,onClick:C=>s(y,g)},[t.renderSlot(n.$slots,"availableItem",{item:y})],10,Ct))),128))],4),o.isFooterVisible?(t.openBlock(),t.createElementBlock("div",Bt,[t.createVNode(t.unref(gt),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:u})])):t.createCommentVNode("",!0)])],512),[[t.vShow,a.value]])]),_:3})],4))}},xt=(o,r)=>{const e=o.__vccOpts||o;for(const[l,i]of r)e[l]=i;return e},$t={class:"season-name"},Nt={__name:"GSC-Season-Select",props:{seasons:{type:Array,default:()=>[]}},emits:["input"],setup(o,{emit:r}){function e(l){r("input",l)}return(l,i)=>(t.openBlock(),t.createBlock(t.unref(wt),{items:o.seasons,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:e},{default:t.withCtx(({selectedItem:a})=>[t.createElementVNode("div",$t,[t.createElementVNode("span",null,t.toDisplayString(a.name),1)])]),availableItem:t.withCtx(({item:a})=>[t.createElementVNode("span",null,t.toDisplayString(a.name),1)]),_:1},8,["items"]))}},Et=xt(Nt,[["__scopeId","data-v-ffcf8231"]]),Vt=(o,r)=>{const e=o.__vccOpts||o;for(const[l,i]of r)e[l]=i;return e},It={props:{textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{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},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}},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))}}},zt=["src"],Ft={key:1,class:"text"},Tt=["src"];function Wt(o,r,e,l,i,a){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["button",i.status&&e.typeOnOff&&"button-active"]),style:t.normalizeStyle([a.customStyle,i.status&&e.typeOnOff&&a.customActive]),onClick:r[0]||(r[0]=(...d)=>a.btnClick&&a.btnClick(...d))},[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,zt)):t.createCommentVNode("",!0),e.textValue?(t.openBlock(),t.createElementBlock("div",Ft,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,Tt)):t.createCommentVNode("",!0)],6)}const Pt=Vt(It,[["render",Wt],["__scopeId","data-v-b2da5db3"]]),Ot=(o,r)=>{const e=o.__vccOpts||o;for(const[l,i]of r)e[l]=i;return e},k={components:{GSCButton:Pt},props:{hiddenButtonAll:{type:Boolean,default:!1},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:0,scrollBar:!1}},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)},beforeDestroy(){window.removeEventListener("resize",this.checkIfElementHasScroll)}},w=()=>{t.useCssVars(o=>({"0851cb4f":o.centerTextCustom,"3f7452db":o.marginCustom}))},x=k.setup;k.setup=x?(o,r)=>(w(),x(o,r)):w;const Dt={id:"panelteams",class:"gsc-filterperteam__panel-teams",ref:"panel"},Rt={class:"gsc-filterperteam__panel-teams__cont-teams"},At=["onClick"],Lt=["src","alt","title"];function Ht(o,r,e,l,i,a){const d=t.resolveComponent("GSCButton");return t.openBlock(),t.createElementBlock("div",{class:"gsc-filterperteam",ref:"container",style:t.normalizeStyle(a.customStyleContain)},[t.createElementVNode("div",Dt,[t.createElementVNode("div",Rt,[e.hiddenButtonAll?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(a.customStyleTeam),class:"gsc-filterperteam__panel-teams__cont-teams__button-all"},[t.createVNode(d,{"text-value":"Todo",width:"76px",height:"28px","font-family":"Poppins-Medium","font-size":"13px","border-color":"#cbee6b","border-type":"solid","border-width":"1","background-color":"#2A3641","border-radius":"64px",onClick:a.click},null,8,["onClick"])],4)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.data,(m,h)=>(t.openBlock(),t.createElementBlock("div",{key:h,style:t.normalizeStyle(a.customStyleTeam),class:t.normalizeClass([m.id==i.teamselect?"colorselect":"","gsc-filterperteam__panel-teams__cont-teams__btn-team hover-team"]),onClick:s=>a.btnTeamClick(m.id)},[t.createElementVNode("img",{src:m.logo,alt:m.name,title:m.name},null,8,Lt)],14,At))),128))])],512)],4)}const Mt=Ot(k,[["render",Ht],["__scopeId","data-v-78518bfe"]]),jt=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"]]),$="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";async function Gt({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||$}})).json()}catch(e){return Promise.reject(e)}}async function Jt({seasonId:o,teamId:r,token:e}){try{const l=`https://pa3kubpuhg.execute-api.us-west-2.amazonaws.com/prod/playersByTeamAndSeason/${o}/${r}`;return(await fetch(l,{headers:{Authorization:e||$}})).json()}catch(l){return Promise.reject(l)}}const me="",Ut=o=>(t.pushScopeId("data-v-159fc5ec"),o=o(),t.popScopeId(),o),Zt={class:"gs-menu-playersteams__header"},qt={class:"gs-menu-playersteams__title"},Xt={class:"gs-menu-playersteams__controllers"},Yt={key:0,class:"gs-menu-playersteams__container"},Kt=Ut(()=>t.createElementVNode("hr",{class:"gs-menu-playersteams__spacer"},null,-1)),Qt={class:"gs-menu-playersteams__subtitle"},vt={class:"gs-menu-playersteams__players-container"},te={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}}},emits:["clickTeam","clickPlayer"],setup(o,{emit:r}){const e=o,l=t.ref([]),i=t.ref([]),a=t.ref([]),d=t.ref(null),m=t.ref(null),h=t.ref({}),s=t.ref(1),u=p=>{a.value=p.seasons},n=p=>{d.value=p.id},{type:c,token:y,componentWidth:g}=t.toRefs(e),C=t.computed(()=>g.value<500?"break-point-3":"");async function N(p){try{h.value=l.value.find(f=>f.team_id===p),m.value=p;const S=await Jt({seasonId:d.value,teamId:p,token:y.value});i.value=S[0].players.map(f=>({...f,position:jt.get(f.position_id),countryFlag:f.nationality_photo,isImgFullWidth:!1}))}catch(S){console.error(S)}}t.watch(async()=>{try{const p=await Gt({seasonId:d.value,token:y.value});l.value=p.teams.map(S=>({...S,id:S.team_id,name:S.team_name}))}catch(p){console.error(p)}},[d]);function oe(p){c.value==="teams"?r("clickTeam",{teamId:p,seasonId:d.value}):c.value==="players"&&(N(p),s.value=2)}function re(p){r("clickPlayer",{playerId:p,teamId:m.value,seasonId:d.value})}return(p,S)=>(t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass(["gs-menu-playersteams",C.value])},[t.createElementVNode("div",Zt,[t.createElementVNode("h1",qt,t.toDisplayString(t.unref(c)==="players"?"Jugadores":"Equipos"),1),t.createElementVNode("div",Xt,[t.createVNode(t.unref(ct),{onInput:u,style:{"margin-right":"15px"}}),t.createElementVNode("div",null,[t.createVNode(t.unref(Et),{items:a.value,onInput:n},null,8,["items"])])])]),t.unref(c)==="players"&&s.value===2?(t.openBlock(),t.createElementBlock("div",Yt,[t.createVNode(t.unref(Mt),{hiddenButtonAll:"",data:l.value,style:{"background-color":"transparent"},onClickTeam:N},null,8,["data"]),Kt,t.createElementVNode("div",Qt,t.toDisplayString(h.value.name),1),t.createElementVNode("div",vt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.value,(f,B)=>(t.openBlock(),t.createBlock(A,t.mergeProps({key:B},f,{onClick:le=>re(f.player_id)}),null,16,["onClick"]))),128))])])):(t.openBlock(),t.createElementBlock("div",te,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.value,(f,B)=>(t.openBlock(),t.createBlock(j,t.mergeProps({key:B},f,{onClick:le=>oe(f.id)}),null,16,["onClick"]))),128))]))],2))}},[["__scopeId","data-v-159fc5ec"]]);_.GSCPlayersAndTeamsMenu=ee,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 le="",ie="",ae="",ne="",b=(o,r)=>{const e=o.__vccOpts||o;for(const[l,i]of r)e[l]=i;return e},E={class:"player-card"},V={class:"player-card__image"},I=["src"],z={class:"player-card__number"},F={class:"player-card__right-data"},T={class:"player-card__age"},W={class:"player-card__flag"},P={class:"player-card__details"},O={class:"player-card__name"},D={class:"player-card__position"},R=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,l)=>(t.openBlock(),t.createElementBlock("div",E,[t.createElementVNode("div",V,[t.createElementVNode("img",{class:t.normalizeClass(["player-card__photo",{"full-width":o.isImgFullWidth}]),src:o.photo,alt:"Player Image"},null,10,I),t.createElementVNode("div",z,t.toDisplayString(o.jersey),1),t.createElementVNode("div",F,[t.createElementVNode("div",T,t.toDisplayString(o.age)+" años",1),t.createElementVNode("div",W,[t.createElementVNode("div",{class:"player-card__flag-container",style:t.normalizeStyle({"background-image":`url(${r.countryFlag})`})},null,4)])])]),t.createElementVNode("div",P,[t.createElementVNode("p",O,t.toDisplayString(o.name),1),t.createElementVNode("p",D,t.toDisplayString(o.position),1)])]))}},[["__scopeId","data-v-b63201df"]]),de="",A={class:"team-card"},L=["src","alt"],H={class:"team-card__name"},M=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",A,[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,L),t.createElementVNode("p",H,t.toDisplayString(o.name),1)]))}},[["__scopeId","data-v-49fe26bd"]]),j=(o,r)=>{const e=o.__vccOpts||o;for(const[l,i]of r)e[l]=i;return e},G={props:{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"},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},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}},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))}}},J=["src"],U={key:1,class:"text"},Z=["src"];function q(o,r,e,l,i,a){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["button",i.status&&e.typeOnOff&&"button-active"]),style:t.normalizeStyle([a.customStyle,i.status&&e.typeOnOff&&a.customActive]),onClick:r[0]||(r[0]=(...d)=>a.btnClick&&a.btnClick(...d))},[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,J)):t.createCommentVNode("",!0),e.textValue?(t.openBlock(),t.createElementBlock("div",U,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,Z)):t.createCommentVNode("",!0)],6)}const X=j(G,[["render",q],["__scopeId","data-v-1bfd444b"]]),Y={class:"gsc-dropdown__main-container__item-selected"},K=["height","width"],Q=["stroke"],v={class:"gsc-dropdown__items-container"},tt=["onClick"],et={key:0,class:"gsc-dropdown__items-footer"},ot={__name:"GSC-Dropdown",props:{height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},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}},emits:["input","click-ready"],setup(o,{emit:r}){const e=o,l=t.ref({}),i=t.ref(e.isMultipleOption?-1:0),a=t.ref(!1);t.watch(e,n=>{if(n.items&&n.items.length){if(e.defaultItemByProp){const c=e.items.findIndex(y=>y[e.defaultItemByProp.propName]===e.defaultItemByProp.value);c!==-1?(i.value=c,l.value=n.items[c]):(i.value=0,l.value=n.items[0])}else l.value=n.items[e.defaultItemByIndex];r("input",l.value)}},{immediate:!0});const d=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}`})),m=t.computed(()=>({height:`${e.arrowHeight}px`,width:`${e.arrowWidth}px`}));function h(){a.value=!a.value}function s(n,c){e.isMultipleOption?i.value=-1:(i.value=c,a.value=!1),l.value=n,r("input",l.value)}function u(){a.value=!1,r("click-ready")}return(n,c)=>(t.openBlock(),t.createElementBlock("div",{class:"gsc-dropdown",style:t.normalizeStyle(d.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${o.arrowWidth+8}px`}),onClick:h},[t.createElementVNode("div",Y,[t.renderSlot(n.$slots,"default",{selectedItem:l.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":a.value}]),style:t.normalizeStyle(m.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,Q)],8,K))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",v,[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,(y,g)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:g===i.value}]),key:g,onClick:C=>s(y,g)},[t.renderSlot(n.$slots,"availableItem",{item:y})],10,tt))),128))],4),o.isFooterVisible?(t.openBlock(),t.createElementBlock("div",et,[t.createVNode(t.unref(X),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:u})])):t.createCommentVNode("",!0)])],512),[[t.vShow,a.value]])]),_:3})],4))}},rt=(o,r)=>{const e=o.__vccOpts||o;for(const[l,i]of r)e[l]=i;return e},lt={class:"tournament-select__selected-tournament"},it={class:"tournament-select__selected-tournament__logo"},at=["src"],nt={class:"tournament-select__selected-tournament__name"},st={__name:"GSCTournamentSelect",props:{apiUrl:{type:String,default:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments"},fontFamily:{type:String,default:"sans-serif"},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)}},emits:["input"],setup(o,{emit:r}){const e=o,l=t.ref([]),i=t.computed(()=>{const s={};return e.fontFamily&&(s["font-family"]=`${e.fontFamily}`),s});async function a(){try{if(e.items&&e.items.length)l.value=[...e.items];else if(e.apiUrl){const s=await m();l.value=s.map(u=>({...u.tournament,seasons:u.seasons}))}}catch(s){throw new Error(s)}}function d(s){const u=new XMLHttpRequest,n=`${e.logosUrl}${s}.${e.logoFileType}`;return u.open("HEAD",n,!1),u.send(),u.status!==404}async function m(){try{return(await fetch(e.apiUrl)).json()}catch(s){return Promise.reject(s)}}function h(s){r("input",s)}return t.onMounted(()=>{a()}),(s,u)=>(t.openBlock(),t.createElementBlock("div",{class:"tournament-select",style:t.normalizeStyle(i.value)},[t.createVNode(t.unref(ot),t.mergeProps(e,{items:l.value,onInput:h}),{default:t.withCtx(({selectedItem:n})=>[t.createElementVNode("div",lt,[t.createElementVNode("div",it,[d(n.id)?(t.openBlock(),t.createElementBlock("img",{key:0,src:`${e.logosUrl}${n.id}.${e.logoFileType}`,alt:""},null,8,at)):t.createCommentVNode("",!0)]),t.createElementVNode("div",nt,t.toDisplayString(n.name),1)])]),availableItem:t.withCtx(({item:n})=>[t.createElementVNode("div",null,t.toDisplayString(n.name),1)]),_:1},16,["items"])],4))}},dt=rt(st,[["__scopeId","data-v-ed37b8ef"]]),ct=(o,r)=>{const e=o.__vccOpts||o;for(const[l,i]of r)e[l]=i;return e},pt={props:{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"},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},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}},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))}}},mt=["src"],ut={key:1,class:"text"},yt=["src"];function ft(o,r,e,l,i,a){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["button",i.status&&e.typeOnOff&&"button-active"]),style:t.normalizeStyle([a.customStyle,i.status&&e.typeOnOff&&a.customActive]),onClick:r[0]||(r[0]=(...d)=>a.btnClick&&a.btnClick(...d))},[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,mt)):t.createCommentVNode("",!0),e.textValue?(t.openBlock(),t.createElementBlock("div",ut,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,yt)):t.createCommentVNode("",!0)],6)}const ht=ct(pt,[["render",ft],["__scopeId","data-v-1bfd444b"]]),gt={class:"gsc-dropdown__main-container__item-selected"},St=["height","width"],_t=["stroke"],bt={class:"gsc-dropdown__items-container"},kt=["onClick"],Ct={key:0,class:"gsc-dropdown__items-footer"},Bt={__name:"GSC-Dropdown",props:{height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},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}},emits:["input","click-ready"],setup(o,{emit:r}){const e=o,l=t.ref({}),i=t.ref(e.isMultipleOption?-1:0),a=t.ref(!1);t.watch(e,n=>{if(n.items&&n.items.length){if(e.defaultItemByProp){const c=e.items.findIndex(y=>y[e.defaultItemByProp.propName]===e.defaultItemByProp.value);c!==-1?(i.value=c,l.value=n.items[c]):(i.value=0,l.value=n.items[0])}else l.value=n.items[e.defaultItemByIndex];r("input",l.value)}},{immediate:!0});const d=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}`})),m=t.computed(()=>({height:`${e.arrowHeight}px`,width:`${e.arrowWidth}px`}));function h(){a.value=!a.value}function s(n,c){e.isMultipleOption?i.value=-1:(i.value=c,a.value=!1),l.value=n,r("input",l.value)}function u(){a.value=!1,r("click-ready")}return(n,c)=>(t.openBlock(),t.createElementBlock("div",{class:"gsc-dropdown",style:t.normalizeStyle(d.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${o.arrowWidth+8}px`}),onClick:h},[t.createElementVNode("div",gt,[t.renderSlot(n.$slots,"default",{selectedItem:l.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":a.value}]),style:t.normalizeStyle(m.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,_t)],8,St))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",bt,[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,(y,g)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:g===i.value}]),key:g,onClick:C=>s(y,g)},[t.renderSlot(n.$slots,"availableItem",{item:y})],10,kt))),128))],4),o.isFooterVisible?(t.openBlock(),t.createElementBlock("div",Ct,[t.createVNode(t.unref(ht),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:u})])):t.createCommentVNode("",!0)])],512),[[t.vShow,a.value]])]),_:3})],4))}},wt=(o,r)=>{const e=o.__vccOpts||o;for(const[l,i]of r)e[l]=i;return e},xt={class:"season-name"},$t={__name:"GSC-Season-Select",props:{seasons:{type:Array,default:()=>[]}},emits:["input"],setup(o,{emit:r}){function e(l){r("input",l)}return(l,i)=>(t.openBlock(),t.createBlock(t.unref(Bt),{items:o.seasons,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:e},{default:t.withCtx(({selectedItem:a})=>[t.createElementVNode("div",xt,[t.createElementVNode("span",null,t.toDisplayString(a.name),1)])]),availableItem:t.withCtx(({item:a})=>[t.createElementVNode("span",null,t.toDisplayString(a.name),1)]),_:1},8,["items"]))}},Nt=wt($t,[["__scopeId","data-v-ffcf8231"]]),Et=(o,r)=>{const e=o.__vccOpts||o;for(const[l,i]of r)e[l]=i;return e},Vt={props:{textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{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},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}},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))}}},It=["src"],zt={key:1,class:"text"},Ft=["src"];function Tt(o,r,e,l,i,a){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["button",i.status&&e.typeOnOff&&"button-active"]),style:t.normalizeStyle([a.customStyle,i.status&&e.typeOnOff&&a.customActive]),onClick:r[0]||(r[0]=(...d)=>a.btnClick&&a.btnClick(...d))},[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,It)):t.createCommentVNode("",!0),e.textValue?(t.openBlock(),t.createElementBlock("div",zt,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,Ft)):t.createCommentVNode("",!0)],6)}const Wt=Et(Vt,[["render",Tt],["__scopeId","data-v-b2da5db3"]]),Pt=(o,r)=>{const e=o.__vccOpts||o;for(const[l,i]of r)e[l]=i;return e},k={components:{GSCButton:Wt},props:{hiddenButtonAll:{type:Boolean,default:!1},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:0,scrollBar:!1}},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)},beforeDestroy(){window.removeEventListener("resize",this.checkIfElementHasScroll)}},w=()=>{t.useCssVars(o=>({"57af7782":o.centerTextCustom,"8066786a":o.marginCustom}))},x=k.setup;k.setup=x?(o,r)=>(w(),x(o,r)):w;const Ot={id:"panelteams",class:"gsc-filterperteam__panel-teams",ref:"panel"},Dt={class:"gsc-filterperteam__panel-teams__cont-teams"},Rt=["onClick"],At=["src","alt","title"];function Lt(o,r,e,l,i,a){const d=t.resolveComponent("GSCButton");return t.openBlock(),t.createElementBlock("div",{class:"gsc-filterperteam",ref:"container",style:t.normalizeStyle(a.customStyleContain)},[t.createElementVNode("div",Ot,[t.createElementVNode("div",Dt,[e.hiddenButtonAll?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(a.customStyleTeam),class:"gsc-filterperteam__panel-teams__cont-teams__button-all"},[t.createVNode(d,{"text-value":"Todos",width:"76px",height:"28px","font-family":"Poppins-Medium","font-size":"13px","border-color":"#cbee6b","border-type":"solid","border-width":"1","background-color":"#2A3641","border-radius":"64px",onClick:a.click},null,8,["onClick"])],4)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.data,(m,h)=>(t.openBlock(),t.createElementBlock("div",{key:h,style:t.normalizeStyle(a.customStyleTeam),class:t.normalizeClass([m.id==i.teamselect?"colorselect":"","gsc-filterperteam__panel-teams__cont-teams__btn-team hover-team"]),onClick:s=>a.btnTeamClick(m.id)},[t.createElementVNode("img",{src:m.logo,alt:m.name,title:m.name},null,8,At)],14,Rt))),128))])],512)],4)}const Ht=Pt(k,[["render",Lt],["__scopeId","data-v-19c45673"]]),Mt=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"]]),$="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";async function jt({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||$}})).json()}catch(e){return Promise.reject(e)}}async function Gt({seasonId:o,teamId:r,token:e}){try{const l=`https://pa3kubpuhg.execute-api.us-west-2.amazonaws.com/prod/playersByTeamAndSeason/${o}/${r}`;return(await fetch(l,{headers:{Authorization:e||$}})).json()}catch(l){return Promise.reject(l)}}const pe="",Jt=o=>(t.pushScopeId("data-v-833338f3"),o=o(),t.popScopeId(),o),Ut={class:"gs-menu-playersteams__header"},Zt={class:"gs-menu-playersteams__title"},qt={class:"gs-menu-playersteams__controllers"},Xt={key:0,class:"gs-menu-playersteams__container"},Yt=Jt(()=>t.createElementVNode("hr",{class:"gs-menu-playersteams__spacer"},null,-1)),Kt={class:"gs-menu-playersteams__subtitle"},Qt={class:"gs-menu-playersteams__players-container"},vt={key:1,class:"gs-menu-playersteams__teams-container"},te=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}}},emits:["clickTeam","clickPlayer"],setup(o,{emit:r}){const e=o,l=t.ref([]),i=t.ref([]),a=t.ref([]),d=t.ref(null),m=t.ref(null),h=t.ref({}),s=t.ref(1),u=p=>{a.value=p.seasons},n=p=>{d.value=p.id},{type:c,token:y,componentWidth:g}=t.toRefs(e),C=t.computed(()=>g.value<500?"break-point-3":"");async function N(p){try{h.value=l.value.find(f=>f.team_id===p),m.value=p;const S=await Gt({seasonId:d.value,teamId:p,token:y.value});i.value=S[0].players.map(f=>({...f,position:Mt.get(f.position_id),countryFlag:f.nationality_photo,isImgFullWidth:!1}))}catch(S){console.error(S)}}t.watch(async()=>{try{const p=await jt({seasonId:d.value,token:y.value});l.value=p.teams.map(S=>({...S,id:S.team_id,name:S.team_name}))}catch(p){console.error(p)}},[d]);function ee(p){c.value==="teams"?r("clickTeam",{teamId:p,seasonId:d.value}):c.value==="players"&&(N(p),s.value=2)}function oe(p){r("clickPlayer",{playerId:p,teamId:m.value,seasonId:d.value})}return(p,S)=>(t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass(["gs-menu-playersteams",C.value])},[t.createElementVNode("div",Ut,[t.createElementVNode("h1",Zt,t.toDisplayString(t.unref(c)==="players"?"Jugadores":"Equipos"),1),t.createElementVNode("div",qt,[t.createVNode(t.unref(dt),{onInput:u,style:{"margin-right":"15px"}}),t.createElementVNode("div",null,[t.createVNode(t.unref(Nt),{items:a.value,onInput:n},null,8,["items"])])])]),t.unref(c)==="players"&&s.value===2?(t.openBlock(),t.createElementBlock("div",Xt,[t.createVNode(t.unref(Ht),{hiddenButtonAll:"",data:l.value,style:{"background-color":"transparent"},onClickTeam:N},null,8,["data"]),Yt,t.createElementVNode("div",Kt,t.toDisplayString(h.value.name),1),t.createElementVNode("div",Qt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.value,(f,B)=>(t.openBlock(),t.createBlock(R,t.mergeProps({key:B},f,{onClick:re=>oe(f.player_id)}),null,16,["onClick"]))),128))])])):(t.openBlock(),t.createElementBlock("div",vt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.value,(f,B)=>(t.openBlock(),t.createBlock(M,t.mergeProps({key:B},f,{onClick:re=>ee(f.id)}),null,16,["onClick"]))),128))]))],2))}},[["__scopeId","data-v-833338f3"]]);_.GSCPlayersAndTeamsMenu=te,Object.defineProperty(_,Symbol.toStringTag,{value:"Module"})});
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.tournament-select__selected-tournament[data-v-ed37b8ef]{height:100%;width:100%;display:flex;align-items:center}.tournament-select__selected-tournament__logo[data-v-ed37b8ef]{width:26px;margin-right:7px;display:flex;align-items:center}.tournament-select__selected-tournament__logo>img[data-v-ed37b8ef]{width:26px}.tournament-select__selected-tournament__name[data-v-ed37b8ef]{white-space:nowrap;width:60%;text-overflow:ellipsis;overflow:hidden}.button[data-v-1bfd444b],.button-active[data-v-1bfd444b]{display:inline-flex;justify-content:center;align-content:center;align-items:center;overflow:none;cursor:pointer!important}.text[data-v-1bfd444b],.icon[data-v-1bfd444b]{padding:0 4px}.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;cursor:pointer}.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:1}.gsc-dropdown__items-container>div{width:100%;height:fit-content;display:flex;flex-direction:column}.gsc-dropdown__items{height:var(--list-height);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}.season-name[data-v-ffcf8231]{white-space:nowrap;width:100%;text-overflow:ellipsis;overflow:hidden}@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-b2da5db3],.button-active[data-v-b2da5db3]{display:inline-flex;justify-content:center;align-content:center;align-items:center;overflow:none;cursor:pointer!important}.text[data-v-b2da5db3],.icon[data-v-b2da5db3]{padding:0 4px}.colorselect[data-v-78518bfe]{background:#cbee6b!important;cursor:default!important}.hover-team[data-v-78518bfe]:hover{cursor:pointer;background:rgba(255,255,255,.2)!important}.gsc-filterperteam[data-v-78518bfe]{width:100%;display:inline-flex;justify-content:left;align-content:center;align-items:center}.gsc-filterperteam__panel-teams[data-v-78518bfe]{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(--0851cb4f);align-content:center;align-items:center}.gsc-filterperteam__panel-teams__cont-teams[data-v-78518bfe]{min-width:fit-content;display:inline-flex;justify-content:var(--0851cb4f);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-78518bfe]{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-78518bfe]{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-78518bfe]{width:69%}.gsc-filterperteam__panel-teams__cont-teams__btn-team[data-v-78518bfe]:first-child{margin-left:var(--3f7452db)}[data-v-78518bfe]::-webkit-scrollbar{height:4px}[data-v-78518bfe]::-webkit-scrollbar-track{border-radius:10px}[data-v-78518bfe]::-webkit-scrollbar-thumb{background:#cbee6b;border-radius:10px}[data-v-78518bfe]::-webkit-scrollbar-thumb:hover{background:#cbee6b}.player-card[data-v-1f2af5ec]{width:100%;max-width:220px;background:#122735;font-family:Poppins,sans-serif;border-radius:.25rem}.player-card__details[data-v-1f2af5ec]{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-1f2af5ec],.player-card__position[data-v-1f2af5ec]{font-family:inherit;text-align:center;font-style:normal;line-height:normal;margin:0}.player-card__name[data-v-1f2af5ec],.player-card__position[data-v-1f2af5ec]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;width:90%}.player-card__name[data-v-1f2af5ec]{color:#fff;font-size:.8125rem;font-weight:500;margin-bottom:.3125rem}.player-card__position[data-v-1f2af5ec]{color:#8ea2ab;font-size:.75rem;font-weight:400}.player-card__image[data-v-1f2af5ec]{width:100%;height:12.125rem;display:grid;grid-template-columns:3fr 1fr;justify-items:center;position:relative}.player-card__photo-container[data-v-1f2af5ec]{display:flex;justify-content:center}.player-card__photo[data-v-1f2af5ec]{position:absolute;bottom:0;width:50%;transform:translateX(-50%,-50%)}.player-card__photo.full-width[data-v-1f2af5ec]{width:100%}.player-card__right-data[data-v-1f2af5ec]{padding:.6875rem .4375rem 0rem 0;justify-self:flex-end}.player-card__flag[data-v-1f2af5ec]{text-align:end}.player-card__age[data-v-1f2af5ec]{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-1f2af5ec]{padding:.625rem 0 0;color:#273a47;font-family:Bebas Neue,sans-serif;font-size:5.625rem;font-style:normal;font-weight:400;line-height:.7}.team-card[data-v-2fa8679a]{width:100%;cursor:pointer;height:8.5rem;background:linear-gradient(180deg,#183143 0%,rgba(24,49,67,0) 100%);background:#193646;font-family:Poppins,sans-serif;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-2fa8679a]{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-2fa8679a]{color:#fff;text-align:center;font-size:.75rem;margin:0;font-family:inherit;font-weight:400;line-height:.9375rem}.team-card__image[data-v-2fa8679a]{width:4.75rem;height:76;margin-bottom:1.125rem}*[data-v-159fc5ec],*[data-v-159fc5ec]:after,*[data-v-159fc5ec]:before{box-sizing:border-box}.gs-menu-playersteams[data-v-159fc5ec]{background:#0D1D29;width:100%;font-family:Poppins,sans-serif}.gs-menu-playersteams__players-container[data-v-159fc5ec]{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-159fc5ec]{grid-template-columns:repeat(auto-fit,minmax(177px,1fr))}.gs-menu-playersteams__teams-container[data-v-159fc5ec]{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-159fc5ec]{padding:30px;grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}.gs-menu-playersteams__header[data-v-159fc5ec]{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:20px;margin-bottom:21px}.gs-menu-playersteams__controllers[data-v-159fc5ec]{display:flex;grid-template-columns:41% 39%;gap:15px;align-items:center;width:43%;justify-content:end;min-width:360px}.gs-menu-playersteams.break-point-3 .gs-menu-playersteams__controllers[data-v-159fc5ec]{margin:auto}.gs-menu-playersteams__spacer[data-v-159fc5ec]{padding:0 1.5625rem;border-color:#3d3d49;width:calc(100% - 3.125rem)}.gs-menu-playersteams__title[data-v-159fc5ec]{color:#fff;font-family:inherit;font-size:1.375rem;font-style:normal;font-weight:500;padding-left:2rem;line-height:normal;margin:0;width:50%}.gs-menu-playersteams__subtitle[data-v-159fc5ec]{color:#fff;font-family:inherit;font-size:1.25rem;font-style:normal;font-weight:500;line-height:normal;padding-left:2rem;margin:1.5rem 0 2.3rem;text-align:left}.gs-menu-playersteams__container[data-v-159fc5ec]{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-159fc5ec]{padding:20px 10px}.gs-menu-playersteams__controllers[data-v-159fc5ec]{z-index:100}
|
|
1
|
+
.tournament-select__selected-tournament[data-v-ed37b8ef]{height:100%;width:100%;display:flex;align-items:center}.tournament-select__selected-tournament__logo[data-v-ed37b8ef]{width:26px;margin-right:7px;display:flex;align-items:center}.tournament-select__selected-tournament__logo>img[data-v-ed37b8ef]{width:26px}.tournament-select__selected-tournament__name[data-v-ed37b8ef]{white-space:nowrap;width:60%;text-overflow:ellipsis;overflow:hidden}.button[data-v-1bfd444b],.button-active[data-v-1bfd444b]{display:inline-flex;justify-content:center;align-content:center;align-items:center;overflow:none;cursor:pointer!important}.text[data-v-1bfd444b],.icon[data-v-1bfd444b]{padding:0 4px}.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;cursor:pointer}.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:1}.gsc-dropdown__items-container>div{width:100%;height:fit-content;display:flex;flex-direction:column}.gsc-dropdown__items{height:var(--list-height);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}.season-name[data-v-ffcf8231]{white-space:nowrap;width:100%;text-overflow:ellipsis;overflow:hidden}@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-b2da5db3],.button-active[data-v-b2da5db3]{display:inline-flex;justify-content:center;align-content:center;align-items:center;overflow:none;cursor:pointer!important}.text[data-v-b2da5db3],.icon[data-v-b2da5db3]{padding:0 4px}.colorselect[data-v-19c45673]{border-color:#cbee6b!important;cursor:default!important}.hover-team[data-v-19c45673]:hover{cursor:pointer;background:rgba(255,255,255,.2)!important}.gsc-filterperteam[data-v-19c45673]{width:100%;display:inline-flex;justify-content:left;align-content:center;align-items:center}.gsc-filterperteam__panel-teams[data-v-19c45673]{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(--57af7782);align-content:center;align-items:center}.gsc-filterperteam__panel-teams__cont-teams[data-v-19c45673]{min-width:fit-content;display:inline-flex;justify-content:var(--57af7782);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-19c45673]{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-19c45673]{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-19c45673]{width:69%}.gsc-filterperteam__panel-teams__cont-teams__btn-team[data-v-19c45673]:first-child{margin-left:var(--8066786a)}[data-v-19c45673]::-webkit-scrollbar{height:4px}[data-v-19c45673]::-webkit-scrollbar-track{border-radius:10px}[data-v-19c45673]::-webkit-scrollbar-thumb{background:#cbee6b;border-radius:10px}[data-v-19c45673]::-webkit-scrollbar-thumb:hover{background:#cbee6b}.player-card[data-v-b63201df]{width:100%;max-width:220px;background:#122735;font-family:Poppins-Regular;border-radius:.25rem}.player-card__details[data-v-b63201df]{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-b63201df],.player-card__position[data-v-b63201df]{font-family:inherit;text-align:center;font-style:normal;line-height:normal;margin:0}.player-card__name[data-v-b63201df],.player-card__position[data-v-b63201df]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;width:90%}.player-card__name[data-v-b63201df]{color:#fff;font-size:.8125rem;font-weight:500;margin-bottom:.3125rem}.player-card__position[data-v-b63201df]{color:#8ea2ab;font-size:.75rem;font-weight:400}.player-card__image[data-v-b63201df]{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-b63201df]{display:flex;justify-content:center}.player-card__photo[data-v-b63201df]{position:absolute;bottom:0;width:140px;z-index:1;transform:translateX(-50%,-50%)}.player-card__photo.full-width[data-v-b63201df]{width:100%}.player-card__right-data[data-v-b63201df]{padding:.6875rem .4375rem 0rem 0;justify-self:flex-end;position:absolute;right:0}.player-card__flag[data-v-b63201df]{text-align:end}.player-card__flag-container[data-v-b63201df]{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-b63201df]{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-b63201df]{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}.team-card[data-v-49fe26bd]{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-49fe26bd]{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-49fe26bd]{color:#fff;text-align:center;font-size:.75rem;margin:0;font-family:inherit;font-weight:400;line-height:.9375rem}.team-card__image[data-v-49fe26bd]{width:4.75rem;height:76;margin-bottom:1.125rem}*[data-v-833338f3],*[data-v-833338f3]:after,*[data-v-833338f3]:before{box-sizing:border-box}.gs-menu-playersteams[data-v-833338f3]{background:#0D1D29;width:100%;font-family:Poppins-Regular}.gs-menu-playersteams__players-container[data-v-833338f3]{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-833338f3]{grid-template-columns:repeat(auto-fit,minmax(177px,1fr))}.gs-menu-playersteams__teams-container[data-v-833338f3]{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-833338f3]{padding:30px;grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}.gs-menu-playersteams__header[data-v-833338f3]{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:20px;margin-bottom:21px}.gs-menu-playersteams__controllers[data-v-833338f3]{display:flex;grid-template-columns:41% 39%;gap:15px;align-items:center;width:43%;justify-content:end;min-width:360px}.gs-menu-playersteams.break-point-3 .gs-menu-playersteams__controllers[data-v-833338f3]{margin:auto}.gs-menu-playersteams__spacer[data-v-833338f3]{padding:0 1.5625rem;border-color:#3d3d49;width:calc(100% - 3.125rem)}.gs-menu-playersteams__title[data-v-833338f3]{color:#fff;font-family:inherit;font-size:1.375rem;font-style:normal;font-weight:500;padding-left:2rem;line-height:normal;margin:0;width:50%}.gs-menu-playersteams__subtitle[data-v-833338f3]{color:#fff;font-family:inherit;font-size:1.25rem;font-style:normal;font-weight:500;line-height:normal;padding-left:2rem;margin:1.5rem 0 2.3rem;text-align:left}.gs-menu-playersteams__container[data-v-833338f3]{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-833338f3]{padding:20px 10px}.gs-menu-playersteams__controllers[data-v-833338f3]{z-index:100}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@golstats/gsc-players-and-teams-menu",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"format": "prettier --write src/"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@golstats/gsc-filterperteam": "^1.0.
|
|
25
|
+
"@golstats/gsc-filterperteam": "^1.0.13",
|
|
26
26
|
"@golstats/gsc-season-select": "^1.0.0",
|
|
27
27
|
"@golstats/gsc-tournament-select": "^1.0.0",
|
|
28
28
|
"vue": "^3.3.4"
|