@golstats/gsc-next-rivals 1.0.6 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/css/fonts.css +127 -127
- package/dist/gsc-next-rivals.es.js +169 -138
- package/dist/gsc-next-rivals.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
# gsc-next-rivals
|
|
2
|
-
Seccion de selecciones para mostrar proximo rivales a jugar
|
|
1
|
+
# gsc-next-rivals
|
|
2
|
+
Seccion de selecciones para mostrar proximo rivales a jugar
|
package/dist/css/fonts.css
CHANGED
|
@@ -1,127 +1,127 @@
|
|
|
1
|
-
@font-face {
|
|
2
|
-
font-family: 'Poppins-Black';
|
|
3
|
-
src: url('/fonts/Poppins-Black.otf') format('opentype');
|
|
4
|
-
}
|
|
5
|
-
@font-face {
|
|
6
|
-
font-family: 'Poppins-BlackItalic';
|
|
7
|
-
src: url('/fonts/Poppins-BlackItalic.otf') format('opentype');
|
|
8
|
-
}
|
|
9
|
-
@font-face {
|
|
10
|
-
font-family: 'Poppins-Bold';
|
|
11
|
-
src: url('/fonts/Poppins-Bold.otf') format('opentype');
|
|
12
|
-
}
|
|
13
|
-
@font-face {
|
|
14
|
-
font-family: 'Poppins-BoldItalic';
|
|
15
|
-
src: url('/fonts/Poppins-BoldItalic.otf') format('opentype');
|
|
16
|
-
}
|
|
17
|
-
@font-face {
|
|
18
|
-
font-family: 'Poppins-ExtraBold';
|
|
19
|
-
src: url('/fonts/Poppins-ExtraBold.otf') format('opentype');
|
|
20
|
-
}
|
|
21
|
-
@font-face {
|
|
22
|
-
font-family: 'Poppins-ExtraBoldItalic';
|
|
23
|
-
src: url('/fonts/Poppins-ExtraBoldItalic.otf') format('opentype');
|
|
24
|
-
}
|
|
25
|
-
@font-face {
|
|
26
|
-
font-family: 'Poppins-ExtraLight';
|
|
27
|
-
src: url('/fonts/Poppins-ExtraLight.otf') format('opentype');
|
|
28
|
-
}
|
|
29
|
-
@font-face {
|
|
30
|
-
font-family: 'Poppins-ExtraLightItalic';
|
|
31
|
-
src: url('/fonts/Poppins-ExtraLightItalic.otf') format('opentype');
|
|
32
|
-
}
|
|
33
|
-
@font-face {
|
|
34
|
-
font-family: 'Poppins-Italic';
|
|
35
|
-
src: url('/fonts/Poppins-Italic.otf') format('opentype');
|
|
36
|
-
}
|
|
37
|
-
@font-face {
|
|
38
|
-
font-family: 'Poppins-Light';
|
|
39
|
-
src: url('/fonts/Poppins-Light.otf') format('opentype');
|
|
40
|
-
}
|
|
41
|
-
@font-face {
|
|
42
|
-
font-family: 'Poppins-LightItalic';
|
|
43
|
-
src: url('/fonts/Poppins-LightItalic.otf') format('opentype');
|
|
44
|
-
}
|
|
45
|
-
@font-face {
|
|
46
|
-
font-family: 'Poppins-MediumItalic';
|
|
47
|
-
src: url('/fonts/Poppins-MediumItalic.otf') format('opentype');
|
|
48
|
-
}
|
|
49
|
-
@font-face {
|
|
50
|
-
font-family: 'Poppins-Medium';
|
|
51
|
-
src: url('/fonts/Poppins-Medium.otf') format('opentype');
|
|
52
|
-
}
|
|
53
|
-
@font-face {
|
|
54
|
-
font-family: 'Poppins-Regular';
|
|
55
|
-
src: url('/fonts/Poppins-Regular.otf') format('opentype');
|
|
56
|
-
}
|
|
57
|
-
@font-face {
|
|
58
|
-
font-family: 'Poppins-SemiBold';
|
|
59
|
-
src: url('/fonts/Poppins-SemiBold.otf') format('opentype');
|
|
60
|
-
}
|
|
61
|
-
@font-face {
|
|
62
|
-
font-family: 'Poppins-SemiBoldItalic';
|
|
63
|
-
src: url('/fonts/Poppins-SemiBoldItalic.otf') format('opentype');
|
|
64
|
-
}
|
|
65
|
-
@font-face {
|
|
66
|
-
font-family: 'Poppins-ThinItalic';
|
|
67
|
-
src: url('/fonts/Poppins-ThinItalic.otf') format('opentype');
|
|
68
|
-
}
|
|
69
|
-
@font-face {
|
|
70
|
-
font-family: 'Poppins-Thin';
|
|
71
|
-
src: url('/fonts/Poppins-Thin.otf') format('opentype');
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
@font-face {
|
|
75
|
-
font-family: 'Montserrat-SemiBold';
|
|
76
|
-
src: url('/fonts/Montserrat-SemiBold.otf') format('opentype');
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
@font-face {
|
|
80
|
-
font-family: 'Oswald-Bold';
|
|
81
|
-
src: url('/fonts/Oswald-Bold.ttf') format('truetype');
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
@font-face {
|
|
85
|
-
font-family: 'Oswald-Regular';
|
|
86
|
-
src: url('/fonts/Oswald-Regular.ttf') format('truetype');
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
@font-face {
|
|
90
|
-
font-family: 'Oswald-SemiBold';
|
|
91
|
-
src: url('/fonts/Oswald-SemiBold.ttf') format('truetype');
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
@font-face {
|
|
95
|
-
font-family: 'Oswald-Medium';
|
|
96
|
-
src: url('/fonts/Oswald-Medium.ttf') format('truetype');
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
@font-face {
|
|
100
|
-
font-family: 'BebasNeueBold';
|
|
101
|
-
src: url('/fonts/BebasNeue-Bold.woff2') format('woff2');
|
|
102
|
-
/* También puedes proporcionar otros formatos de fuente como woff, ttf, etc., para una mejor compatibilidad entre navegadores */
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
@font-face {
|
|
106
|
-
font-family: 'BebasNeueBook';
|
|
107
|
-
src: url('/fonts/BebasNeue-Book.woff2') format('woff2');
|
|
108
|
-
/* También puedes proporcionar otros formatos de fuente como woff, ttf, etc., para una mejor compatibilidad entre navegadores */
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
@font-face {
|
|
112
|
-
font-family: 'BebasNeueLight';
|
|
113
|
-
src: url('/fonts/BebasNeue-Light.woff2') format('woff2');
|
|
114
|
-
/* También puedes proporcionar otros formatos de fuente como woff, ttf, etc., para una mejor compatibilidad entre navegadores */
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
@font-face {
|
|
118
|
-
font-family: 'BebasNeueRegular';
|
|
119
|
-
src: url('/fonts/BebasNeue-Regular.woff2') format('woff2');
|
|
120
|
-
/* También puedes proporcionar otros formatos de fuente como woff, ttf, etc., para una mejor compatibilidad entre navegadores */
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
@font-face {
|
|
124
|
-
font-family: 'BebasNeueThin';
|
|
125
|
-
src: url('/fonts/BebasNeue-Thin.woff2') format('woff2');
|
|
126
|
-
/* También puedes proporcionar otros formatos de fuente como woff, ttf, etc., para una mejor compatibilidad entre navegadores */
|
|
127
|
-
}
|
|
1
|
+
@font-face {
|
|
2
|
+
font-family: 'Poppins-Black';
|
|
3
|
+
src: url('/fonts/Poppins-Black.otf') format('opentype');
|
|
4
|
+
}
|
|
5
|
+
@font-face {
|
|
6
|
+
font-family: 'Poppins-BlackItalic';
|
|
7
|
+
src: url('/fonts/Poppins-BlackItalic.otf') format('opentype');
|
|
8
|
+
}
|
|
9
|
+
@font-face {
|
|
10
|
+
font-family: 'Poppins-Bold';
|
|
11
|
+
src: url('/fonts/Poppins-Bold.otf') format('opentype');
|
|
12
|
+
}
|
|
13
|
+
@font-face {
|
|
14
|
+
font-family: 'Poppins-BoldItalic';
|
|
15
|
+
src: url('/fonts/Poppins-BoldItalic.otf') format('opentype');
|
|
16
|
+
}
|
|
17
|
+
@font-face {
|
|
18
|
+
font-family: 'Poppins-ExtraBold';
|
|
19
|
+
src: url('/fonts/Poppins-ExtraBold.otf') format('opentype');
|
|
20
|
+
}
|
|
21
|
+
@font-face {
|
|
22
|
+
font-family: 'Poppins-ExtraBoldItalic';
|
|
23
|
+
src: url('/fonts/Poppins-ExtraBoldItalic.otf') format('opentype');
|
|
24
|
+
}
|
|
25
|
+
@font-face {
|
|
26
|
+
font-family: 'Poppins-ExtraLight';
|
|
27
|
+
src: url('/fonts/Poppins-ExtraLight.otf') format('opentype');
|
|
28
|
+
}
|
|
29
|
+
@font-face {
|
|
30
|
+
font-family: 'Poppins-ExtraLightItalic';
|
|
31
|
+
src: url('/fonts/Poppins-ExtraLightItalic.otf') format('opentype');
|
|
32
|
+
}
|
|
33
|
+
@font-face {
|
|
34
|
+
font-family: 'Poppins-Italic';
|
|
35
|
+
src: url('/fonts/Poppins-Italic.otf') format('opentype');
|
|
36
|
+
}
|
|
37
|
+
@font-face {
|
|
38
|
+
font-family: 'Poppins-Light';
|
|
39
|
+
src: url('/fonts/Poppins-Light.otf') format('opentype');
|
|
40
|
+
}
|
|
41
|
+
@font-face {
|
|
42
|
+
font-family: 'Poppins-LightItalic';
|
|
43
|
+
src: url('/fonts/Poppins-LightItalic.otf') format('opentype');
|
|
44
|
+
}
|
|
45
|
+
@font-face {
|
|
46
|
+
font-family: 'Poppins-MediumItalic';
|
|
47
|
+
src: url('/fonts/Poppins-MediumItalic.otf') format('opentype');
|
|
48
|
+
}
|
|
49
|
+
@font-face {
|
|
50
|
+
font-family: 'Poppins-Medium';
|
|
51
|
+
src: url('/fonts/Poppins-Medium.otf') format('opentype');
|
|
52
|
+
}
|
|
53
|
+
@font-face {
|
|
54
|
+
font-family: 'Poppins-Regular';
|
|
55
|
+
src: url('/fonts/Poppins-Regular.otf') format('opentype');
|
|
56
|
+
}
|
|
57
|
+
@font-face {
|
|
58
|
+
font-family: 'Poppins-SemiBold';
|
|
59
|
+
src: url('/fonts/Poppins-SemiBold.otf') format('opentype');
|
|
60
|
+
}
|
|
61
|
+
@font-face {
|
|
62
|
+
font-family: 'Poppins-SemiBoldItalic';
|
|
63
|
+
src: url('/fonts/Poppins-SemiBoldItalic.otf') format('opentype');
|
|
64
|
+
}
|
|
65
|
+
@font-face {
|
|
66
|
+
font-family: 'Poppins-ThinItalic';
|
|
67
|
+
src: url('/fonts/Poppins-ThinItalic.otf') format('opentype');
|
|
68
|
+
}
|
|
69
|
+
@font-face {
|
|
70
|
+
font-family: 'Poppins-Thin';
|
|
71
|
+
src: url('/fonts/Poppins-Thin.otf') format('opentype');
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@font-face {
|
|
75
|
+
font-family: 'Montserrat-SemiBold';
|
|
76
|
+
src: url('/fonts/Montserrat-SemiBold.otf') format('opentype');
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@font-face {
|
|
80
|
+
font-family: 'Oswald-Bold';
|
|
81
|
+
src: url('/fonts/Oswald-Bold.ttf') format('truetype');
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@font-face {
|
|
85
|
+
font-family: 'Oswald-Regular';
|
|
86
|
+
src: url('/fonts/Oswald-Regular.ttf') format('truetype');
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@font-face {
|
|
90
|
+
font-family: 'Oswald-SemiBold';
|
|
91
|
+
src: url('/fonts/Oswald-SemiBold.ttf') format('truetype');
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
@font-face {
|
|
95
|
+
font-family: 'Oswald-Medium';
|
|
96
|
+
src: url('/fonts/Oswald-Medium.ttf') format('truetype');
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
@font-face {
|
|
100
|
+
font-family: 'BebasNeueBold';
|
|
101
|
+
src: url('/fonts/BebasNeue-Bold.woff2') format('woff2');
|
|
102
|
+
/* También puedes proporcionar otros formatos de fuente como woff, ttf, etc., para una mejor compatibilidad entre navegadores */
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@font-face {
|
|
106
|
+
font-family: 'BebasNeueBook';
|
|
107
|
+
src: url('/fonts/BebasNeue-Book.woff2') format('woff2');
|
|
108
|
+
/* También puedes proporcionar otros formatos de fuente como woff, ttf, etc., para una mejor compatibilidad entre navegadores */
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
@font-face {
|
|
112
|
+
font-family: 'BebasNeueLight';
|
|
113
|
+
src: url('/fonts/BebasNeue-Light.woff2') format('woff2');
|
|
114
|
+
/* También puedes proporcionar otros formatos de fuente como woff, ttf, etc., para una mejor compatibilidad entre navegadores */
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@font-face {
|
|
118
|
+
font-family: 'BebasNeueRegular';
|
|
119
|
+
src: url('/fonts/BebasNeue-Regular.woff2') format('woff2');
|
|
120
|
+
/* También puedes proporcionar otros formatos de fuente como woff, ttf, etc., para una mejor compatibilidad entre navegadores */
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
@font-face {
|
|
124
|
+
font-family: 'BebasNeueThin';
|
|
125
|
+
src: url('/fonts/BebasNeue-Thin.woff2') format('woff2');
|
|
126
|
+
/* También puedes proporcionar otros formatos de fuente como woff, ttf, etc., para una mejor compatibilidad entre navegadores */
|
|
127
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const
|
|
1
|
+
import { openBlock as l, createElementBlock as s, createElementVNode as r, normalizeStyle as v, toDisplayString as b, ref as g, watch as z, computed as x, onMounted as M, onBeforeMount as q, renderSlot as V, normalizeClass as F, createVNode as R, Transition as K, withCtx as W, withDirectives as L, Fragment as E, renderList as J, vShow as P, unref as U, createCommentVNode as w, useCssVars as Q, pushScopeId as j, popScopeId as Z, onUnmounted as tt, mergeProps as et, createBlock as ot } from "vue";
|
|
2
|
+
const G = (e, o) => {
|
|
3
3
|
const t = e.__vccOpts || e;
|
|
4
4
|
for (const [i, c] of o)
|
|
5
5
|
t[i] = c;
|
|
6
6
|
return t;
|
|
7
|
-
},
|
|
7
|
+
}, it = ["src", "alt"], rt = { class: "team-card__name" }, at = {
|
|
8
8
|
__name: "GscTeamCard",
|
|
9
9
|
props: {
|
|
10
10
|
logo: {
|
|
@@ -30,7 +30,7 @@ const H = (e, o) => {
|
|
|
30
30
|
function i() {
|
|
31
31
|
o("click-rival", t.rival);
|
|
32
32
|
}
|
|
33
|
-
return (c,
|
|
33
|
+
return (c, d) => (l(), s("div", {
|
|
34
34
|
class: "team-card",
|
|
35
35
|
onClick: i
|
|
36
36
|
}, [
|
|
@@ -42,16 +42,16 @@ const H = (e, o) => {
|
|
|
42
42
|
class: "team-card__image",
|
|
43
43
|
src: e.logo,
|
|
44
44
|
alt: e.name
|
|
45
|
-
}, null, 8,
|
|
46
|
-
r("p",
|
|
45
|
+
}, null, 8, it),
|
|
46
|
+
r("p", rt, b(e.name), 1)
|
|
47
47
|
]));
|
|
48
48
|
}
|
|
49
|
-
},
|
|
49
|
+
}, lt = /* @__PURE__ */ G(at, [["__scopeId", "data-v-8f13b2f7"]]), nt = (e, o) => {
|
|
50
50
|
const t = e.__vccOpts || e;
|
|
51
51
|
for (const [i, c] of o)
|
|
52
52
|
t[i] = c;
|
|
53
53
|
return t;
|
|
54
|
-
},
|
|
54
|
+
}, O = {
|
|
55
55
|
props: {
|
|
56
56
|
type: { type: Number, default: 0 },
|
|
57
57
|
value: { type: Boolean, default: !1 },
|
|
@@ -125,8 +125,8 @@ const H = (e, o) => {
|
|
|
125
125
|
this.$emit("click", e), this.typeOnOff && (this.status = !this.status, this.$emit("status", this.status));
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
|
-
},
|
|
129
|
-
|
|
128
|
+
}, D = () => {
|
|
129
|
+
Q((e) => ({
|
|
130
130
|
"9d01acb4": e.height,
|
|
131
131
|
"14e95081": e.borderWidthBtn,
|
|
132
132
|
"38fec285": e.borderType,
|
|
@@ -141,54 +141,61 @@ const H = (e, o) => {
|
|
|
141
141
|
"93b87770": e.marginLeftStat,
|
|
142
142
|
c7f7beba: e.fontSizeStat
|
|
143
143
|
}));
|
|
144
|
-
},
|
|
145
|
-
|
|
146
|
-
const
|
|
144
|
+
}, A = O.setup;
|
|
145
|
+
O.setup = A ? (e, o) => (D(), A(e, o)) : D;
|
|
146
|
+
const st = (e) => (j("data-v-f3ee6b2b"), e = e(), Z(), e), dt = ["src"], ut = {
|
|
147
147
|
key: 1,
|
|
148
148
|
class: "text"
|
|
149
|
-
},
|
|
149
|
+
}, ct = ["src"], pt = { class: "stats" }, ft = /* @__PURE__ */ st(() => /* @__PURE__ */ r("img", {
|
|
150
150
|
class: "iconstats",
|
|
151
151
|
src: "https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"
|
|
152
|
-
}, null, -1)),
|
|
153
|
-
function
|
|
154
|
-
return l(),
|
|
155
|
-
t.type == 0 ? (l(),
|
|
152
|
+
}, null, -1)), mt = { class: "numstats" }, gt = { class: "leyend" };
|
|
153
|
+
function yt(e, o, t, i, c, d) {
|
|
154
|
+
return l(), s("div", null, [
|
|
155
|
+
t.type == 0 ? (l(), s("div", {
|
|
156
156
|
key: 0,
|
|
157
157
|
class: F(["button", c.status && t.typeOnOff && "button-active"]),
|
|
158
|
-
style: v([
|
|
159
|
-
onClick: o[0] || (o[0] = (...u) =>
|
|
158
|
+
style: v([d.customStyle, c.status && t.typeOnOff && d.customActive]),
|
|
159
|
+
onClick: o[0] || (o[0] = (...u) => d.btnClick && d.btnClick(...u))
|
|
160
160
|
}, [
|
|
161
|
-
t.icon && t.iconPosition.toLowerCase() === "left" ? (l(),
|
|
161
|
+
t.icon && t.iconPosition.toLowerCase() === "left" ? (l(), s("img", {
|
|
162
162
|
key: 0,
|
|
163
163
|
class: "icon",
|
|
164
164
|
style: v({ width: t.iconSize }),
|
|
165
165
|
src: t.icon
|
|
166
|
-
}, null, 12,
|
|
167
|
-
t.textValue ? (l(),
|
|
168
|
-
t.icon && t.iconPosition.toLowerCase() === "right" ? (l(),
|
|
166
|
+
}, null, 12, dt)) : w("", !0),
|
|
167
|
+
t.textValue ? (l(), s("div", ut, b(t.textValue), 1)) : w("", !0),
|
|
168
|
+
t.icon && t.iconPosition.toLowerCase() === "right" ? (l(), s("img", {
|
|
169
169
|
key: 2,
|
|
170
170
|
class: "icon",
|
|
171
171
|
style: v({ width: t.iconSize }),
|
|
172
172
|
src: t.icon
|
|
173
|
-
}, null, 12,
|
|
174
|
-
], 6)) :
|
|
175
|
-
t.type == 1 ? (l(),
|
|
173
|
+
}, null, 12, ct)) : w("", !0)
|
|
174
|
+
], 6)) : w("", !0),
|
|
175
|
+
t.type == 1 ? (l(), s("div", {
|
|
176
176
|
key: 1,
|
|
177
177
|
class: "button-target",
|
|
178
|
-
onClick: o[1] || (o[1] = (...u) =>
|
|
178
|
+
onClick: o[1] || (o[1] = (...u) => d.btnClick && d.btnClick(...u))
|
|
179
179
|
}, [
|
|
180
|
-
r("div",
|
|
181
|
-
|
|
182
|
-
r("div",
|
|
180
|
+
r("div", pt, [
|
|
181
|
+
ft,
|
|
182
|
+
r("div", mt, b(t.textStat), 1)
|
|
183
183
|
]),
|
|
184
|
-
r("div",
|
|
185
|
-
])) :
|
|
184
|
+
r("div", gt, b(t.textCategory), 1)
|
|
185
|
+
])) : w("", !0)
|
|
186
186
|
]);
|
|
187
187
|
}
|
|
188
|
-
const
|
|
188
|
+
const vt = /* @__PURE__ */ nt(O, [["render", yt], ["__scopeId", "data-v-f3ee6b2b"]]), ht = { class: "gsc-dropdown__main-container__item-selected" }, bt = ["height", "width"], St = ["stroke"], Ct = {
|
|
189
|
+
key: 1,
|
|
190
|
+
width: "8",
|
|
191
|
+
height: "4",
|
|
192
|
+
viewBox: "0 0 8 4",
|
|
193
|
+
fill: "none",
|
|
194
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
195
|
+
}, wt = ["fill"], kt = { class: "gsc-dropdown__items-container" }, _t = ["onClick"], xt = {
|
|
189
196
|
key: 0,
|
|
190
197
|
class: "gsc-dropdown__items-footer"
|
|
191
|
-
},
|
|
198
|
+
}, Bt = {
|
|
192
199
|
__name: "GSC-Dropdown",
|
|
193
200
|
props: {
|
|
194
201
|
modelValue: {
|
|
@@ -346,37 +353,44 @@ const gt = /* @__PURE__ */ at(R, [["render", mt], ["__scopeId", "data-v-f3ee6b2b
|
|
|
346
353
|
onlyFirstTime: {
|
|
347
354
|
type: Boolean,
|
|
348
355
|
default: !1
|
|
356
|
+
},
|
|
357
|
+
iconType: {
|
|
358
|
+
type: Number,
|
|
359
|
+
default: 1,
|
|
360
|
+
validator: function(e) {
|
|
361
|
+
return [1, 2].includes(e);
|
|
362
|
+
}
|
|
349
363
|
}
|
|
350
364
|
},
|
|
351
365
|
emits: ["input", "click-ready", "update:modelValue"],
|
|
352
366
|
setup(e, { emit: o }) {
|
|
353
|
-
const t = e, i = g({}), c = g(null),
|
|
354
|
-
|
|
367
|
+
const t = e, i = g({}), c = g(null), d = g(t.isMultipleOption ? -1 : 0), u = g(!1);
|
|
368
|
+
z(
|
|
355
369
|
() => t.items,
|
|
356
|
-
(
|
|
357
|
-
if (!t.modelValue && (!t.onlyFirstTime || !m || !m.length) &&
|
|
370
|
+
(n, m) => {
|
|
371
|
+
if (!t.modelValue && (!t.onlyFirstTime || !m || !m.length) && n && n.length) {
|
|
358
372
|
if (t.defaultItemByProp) {
|
|
359
|
-
const
|
|
373
|
+
const f = t.items.findIndex(
|
|
360
374
|
(h) => h[t.defaultItemByProp.propName] === t.defaultItemByProp.value
|
|
361
375
|
);
|
|
362
|
-
|
|
376
|
+
f !== -1 ? (d.value = f, i.value = n[f]) : (d.value = 0, i.value = n[0]);
|
|
363
377
|
} else
|
|
364
|
-
i.value =
|
|
378
|
+
i.value = n[t.defaultItemByIndex];
|
|
365
379
|
o("input", i.value);
|
|
366
380
|
}
|
|
367
381
|
},
|
|
368
382
|
{ immediate: !0 }
|
|
369
|
-
),
|
|
383
|
+
), z(
|
|
370
384
|
() => t.modelValue,
|
|
371
|
-
(
|
|
372
|
-
if (
|
|
373
|
-
const m = t.items.findIndex((
|
|
374
|
-
m !== -1 && (
|
|
385
|
+
(n) => {
|
|
386
|
+
if (n) {
|
|
387
|
+
const m = t.items.findIndex((f) => typeof n == "object" ? JSON.stringify(f) === JSON.stringify(n) : f === n);
|
|
388
|
+
m !== -1 && (d.value = m, i.value = t.items[m], o("update:modelValue", i.value));
|
|
375
389
|
}
|
|
376
390
|
},
|
|
377
391
|
{ immediate: !0 }
|
|
378
392
|
);
|
|
379
|
-
const y =
|
|
393
|
+
const y = x(() => ({
|
|
380
394
|
height: t.height,
|
|
381
395
|
width: t.width,
|
|
382
396
|
backgroundColor: t.backgroundColor,
|
|
@@ -404,27 +418,27 @@ const gt = /* @__PURE__ */ at(R, [["render", mt], ["__scopeId", "data-v-f3ee6b2b
|
|
|
404
418
|
"--dropdown-opacity": t.isDisabled ? "0.5" : "1",
|
|
405
419
|
"--dropdown-cursor": t.isDisabled ? "not-allowed" : "pointer",
|
|
406
420
|
"--dropdown-font-size": t.fontSize ? t.fontSize : "14px"
|
|
407
|
-
})), S =
|
|
421
|
+
})), S = x(() => ({
|
|
408
422
|
height: `${t.arrowHeight}px`,
|
|
409
423
|
width: `${t.arrowWidth}px`
|
|
410
424
|
}));
|
|
411
|
-
function
|
|
425
|
+
function C() {
|
|
412
426
|
t.isDisabled || (u.value = !u.value);
|
|
413
427
|
}
|
|
414
|
-
function
|
|
415
|
-
c.value && !c.value.contains(
|
|
428
|
+
function _(n) {
|
|
429
|
+
c.value && !c.value.contains(n.target) && (u.value = !1);
|
|
416
430
|
}
|
|
417
|
-
function
|
|
418
|
-
t.isMultipleOption ?
|
|
431
|
+
function B(n, m) {
|
|
432
|
+
t.isMultipleOption ? d.value = -1 : (d.value = m, u.value = !1), i.value = n, o("input", i.value), o("update:modelValue", i.value);
|
|
419
433
|
}
|
|
420
|
-
function
|
|
434
|
+
function I() {
|
|
421
435
|
u.value = !1, o("click-ready");
|
|
422
436
|
}
|
|
423
|
-
return
|
|
424
|
-
document.addEventListener("click",
|
|
425
|
-
}),
|
|
426
|
-
document.removeEventListener("click",
|
|
427
|
-
}), (
|
|
437
|
+
return M(() => {
|
|
438
|
+
document.addEventListener("click", _);
|
|
439
|
+
}), q(() => {
|
|
440
|
+
document.removeEventListener("click", _);
|
|
441
|
+
}), (n, m) => (l(), s("div", {
|
|
428
442
|
ref_key: "dropDown",
|
|
429
443
|
ref: c,
|
|
430
444
|
class: "gsc-dropdown",
|
|
@@ -433,16 +447,17 @@ const gt = /* @__PURE__ */ at(R, [["render", mt], ["__scopeId", "data-v-f3ee6b2b
|
|
|
433
447
|
r("div", {
|
|
434
448
|
class: "gsc-dropdown__main-container",
|
|
435
449
|
style: v({ "padding-right": `${e.arrowWidth + 8}px` }),
|
|
436
|
-
onClick:
|
|
450
|
+
onClick: C
|
|
437
451
|
}, [
|
|
438
|
-
r("div",
|
|
439
|
-
|
|
452
|
+
r("div", ht, [
|
|
453
|
+
V(n.$slots, "default", { selectedItem: i.value })
|
|
440
454
|
]),
|
|
441
455
|
r("div", {
|
|
442
456
|
class: F(["gsc-dropdown__main-container__icon", { "rotated-180": u.value }]),
|
|
443
457
|
style: v(S.value)
|
|
444
458
|
}, [
|
|
445
|
-
(l(),
|
|
459
|
+
e.iconType === 1 ? (l(), s("svg", {
|
|
460
|
+
key: 0,
|
|
446
461
|
height: e.arrowHeight,
|
|
447
462
|
width: e.arrowWidth,
|
|
448
463
|
viewBox: "0 0 24 24",
|
|
@@ -452,32 +467,39 @@ const gt = /* @__PURE__ */ at(R, [["render", mt], ["__scopeId", "data-v-f3ee6b2b
|
|
|
452
467
|
r("path", {
|
|
453
468
|
d: "M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",
|
|
454
469
|
stroke: e.arrowColor
|
|
455
|
-
}, null, 8,
|
|
456
|
-
], 8,
|
|
470
|
+
}, null, 8, St)
|
|
471
|
+
], 8, bt)) : (l(), s("svg", Ct, [
|
|
472
|
+
r("path", {
|
|
473
|
+
"fill-rule": "evenodd",
|
|
474
|
+
"clip-rule": "evenodd",
|
|
475
|
+
d: "M4 2.62045L6.86193 0.167368C7.12228 -0.0557892 7.54439 -0.0557892 7.80474 0.167368C8.06509 0.390524 8.06509 0.752333 7.80474 0.97549L4.4714 3.83263C4.21105 4.05579 3.78895 4.05579 3.5286 3.83263L0.195262 0.97549C-0.0650874 0.752333 -0.0650874 0.390524 0.195262 0.167368C0.455612 -0.0557892 0.877722 -0.0557892 1.13807 0.167368L4 2.62045Z",
|
|
476
|
+
fill: e.arrowColor
|
|
477
|
+
}, null, 8, wt)
|
|
478
|
+
]))
|
|
457
479
|
], 6)
|
|
458
480
|
], 4),
|
|
459
|
-
|
|
460
|
-
default:
|
|
461
|
-
|
|
481
|
+
R(K, null, {
|
|
482
|
+
default: W(() => [
|
|
483
|
+
L(r("div", kt, [
|
|
462
484
|
r("div", null, [
|
|
463
485
|
r("div", {
|
|
464
486
|
class: "gsc-dropdown__items",
|
|
465
487
|
style: v({ "margin-top": `${t.borderWidth}px` })
|
|
466
488
|
}, [
|
|
467
|
-
(l(!0),
|
|
468
|
-
|
|
469
|
-
class: F(["gsc-dropdown__items__item", { selected: h ===
|
|
489
|
+
(l(!0), s(E, null, J(e.items, (f, h) => (l(), s("div", null, [
|
|
490
|
+
L((l(), s("div", {
|
|
491
|
+
class: F(["gsc-dropdown__items__item", { selected: h === d.value }]),
|
|
470
492
|
key: h,
|
|
471
|
-
onClick: (
|
|
493
|
+
onClick: (T) => B(f, h)
|
|
472
494
|
}, [
|
|
473
|
-
|
|
474
|
-
], 10,
|
|
475
|
-
[P, !
|
|
495
|
+
V(n.$slots, "availableItem", { item: f })
|
|
496
|
+
], 10, _t)), [
|
|
497
|
+
[P, !f.isHidden]
|
|
476
498
|
])
|
|
477
499
|
]))), 256))
|
|
478
500
|
], 4),
|
|
479
|
-
e.isFooterVisible ? (l(),
|
|
480
|
-
|
|
501
|
+
e.isFooterVisible ? (l(), s("div", xt, [
|
|
502
|
+
R(U(vt), {
|
|
481
503
|
"text-value": "Listo",
|
|
482
504
|
"border-color": "#cbee6b",
|
|
483
505
|
"font-size": "12px",
|
|
@@ -485,9 +507,9 @@ const gt = /* @__PURE__ */ at(R, [["render", mt], ["__scopeId", "data-v-f3ee6b2b
|
|
|
485
507
|
height: "22px",
|
|
486
508
|
"border-radius": "62px",
|
|
487
509
|
"border-width": 0.8,
|
|
488
|
-
onClick:
|
|
510
|
+
onClick: I
|
|
489
511
|
})
|
|
490
|
-
])) :
|
|
512
|
+
])) : w("", !0)
|
|
491
513
|
])
|
|
492
514
|
], 512), [
|
|
493
515
|
[P, u.value]
|
|
@@ -497,18 +519,18 @@ const gt = /* @__PURE__ */ at(R, [["render", mt], ["__scopeId", "data-v-f3ee6b2b
|
|
|
497
519
|
})
|
|
498
520
|
], 4));
|
|
499
521
|
}
|
|
500
|
-
},
|
|
522
|
+
}, H = (e) => (j("data-v-7455bc9e"), e = e(), Z(), e), It = { class: "header" }, Tt = /* @__PURE__ */ H(() => /* @__PURE__ */ r("h2", null, "Próximos rivales", -1)), $t = { class: "" }, Nt = {
|
|
501
523
|
key: 0,
|
|
502
524
|
class: "rivals-grid"
|
|
503
|
-
},
|
|
525
|
+
}, zt = {
|
|
504
526
|
key: 1,
|
|
505
527
|
class: "no-rivals-text-container"
|
|
506
|
-
},
|
|
528
|
+
}, Ft = { class: "no-rivals" }, Rt = {
|
|
507
529
|
key: 2,
|
|
508
530
|
class: "no-rivals-text-container"
|
|
509
|
-
},
|
|
510
|
-
|
|
511
|
-
],
|
|
531
|
+
}, Wt = /* @__PURE__ */ H(() => /* @__PURE__ */ r("h2", { class: "no-rivals" }, "Cargando...", -1)), Ot = [
|
|
532
|
+
Wt
|
|
533
|
+
], Vt = {
|
|
512
534
|
__name: "NextRivals",
|
|
513
535
|
props: {
|
|
514
536
|
teamId: {
|
|
@@ -581,25 +603,33 @@ const gt = /* @__PURE__ */ at(R, [["render", mt], ["__scopeId", "data-v-f3ee6b2b
|
|
|
581
603
|
areFemaleTeamsVisible: {
|
|
582
604
|
type: Boolean,
|
|
583
605
|
default: !0
|
|
606
|
+
},
|
|
607
|
+
provider: {
|
|
608
|
+
type: Number,
|
|
609
|
+
default: 1
|
|
610
|
+
},
|
|
611
|
+
isDevApis: {
|
|
612
|
+
type: Boolean,
|
|
613
|
+
default: !1
|
|
584
614
|
}
|
|
585
615
|
},
|
|
586
616
|
emits: ["click-rival"],
|
|
587
617
|
setup(e, { emit: o }) {
|
|
588
|
-
const t = e, i = g(null), c = g("rivals-grid"),
|
|
589
|
-
|
|
618
|
+
const t = e, i = g(null), c = g("rivals-grid"), d = g([]), u = g([]), y = g({}), S = g(!0), C = x(() => !t.provider || t.provider <= 1 ? null : `https://${t.isDevApis ? "dev-apis.golstats.com" : "apis.golstats.com"}/${t.provider}`);
|
|
619
|
+
z(
|
|
590
620
|
() => t.teamId,
|
|
591
|
-
(
|
|
592
|
-
|
|
621
|
+
(a) => {
|
|
622
|
+
a && (S.value = !0, B());
|
|
593
623
|
},
|
|
594
624
|
{
|
|
595
625
|
immediate: !0
|
|
596
626
|
}
|
|
597
627
|
);
|
|
598
|
-
const
|
|
599
|
-
async function
|
|
628
|
+
const _ = x(() => t.areFemaleTeamsVisible ? u.value : u.value.filter((a) => !a.is_female));
|
|
629
|
+
async function B() {
|
|
600
630
|
try {
|
|
601
|
-
const C = await (await fetch(
|
|
602
|
-
|
|
631
|
+
const a = C.value ? `${C.value}/related-teams/${t.teamId}` : `https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/related-teams/${t.teamId}`, p = await (await fetch(
|
|
632
|
+
a,
|
|
603
633
|
{
|
|
604
634
|
method: "GET",
|
|
605
635
|
headers: {
|
|
@@ -607,19 +637,20 @@ const gt = /* @__PURE__ */ at(R, [["render", mt], ["__scopeId", "data-v-f3ee6b2b
|
|
|
607
637
|
}
|
|
608
638
|
}
|
|
609
639
|
)).json();
|
|
610
|
-
u.value =
|
|
611
|
-
const
|
|
612
|
-
u.value.forEach((
|
|
613
|
-
|
|
640
|
+
u.value = p;
|
|
641
|
+
const $ = p.map((N) => I(N.team_id)), X = await Promise.all($);
|
|
642
|
+
u.value.forEach((N, Y) => {
|
|
643
|
+
N.rivals = X[Y];
|
|
614
644
|
}), y.value = u.value[0] || {}, S.value = !1;
|
|
615
|
-
} catch (
|
|
616
|
-
console.error(
|
|
645
|
+
} catch (a) {
|
|
646
|
+
console.error(a), S.value = !1;
|
|
617
647
|
}
|
|
618
648
|
}
|
|
619
|
-
async function
|
|
649
|
+
async function I(a) {
|
|
620
650
|
try {
|
|
651
|
+
const k = C.value ? `${C.value}/next-rivals/teams/${a}` : `https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/next-rivals/teams/${a}`;
|
|
621
652
|
return (await (await fetch(
|
|
622
|
-
|
|
653
|
+
k,
|
|
623
654
|
{
|
|
624
655
|
method: "GET",
|
|
625
656
|
headers: {
|
|
@@ -627,63 +658,63 @@ const gt = /* @__PURE__ */ at(R, [["render", mt], ["__scopeId", "data-v-f3ee6b2b
|
|
|
627
658
|
}
|
|
628
659
|
}
|
|
629
660
|
)).json()).rivals || [];
|
|
630
|
-
} catch (
|
|
631
|
-
console.error(
|
|
661
|
+
} catch (k) {
|
|
662
|
+
console.error(k);
|
|
632
663
|
}
|
|
633
664
|
}
|
|
634
|
-
function
|
|
665
|
+
function n() {
|
|
635
666
|
i.value && (c.value = "rivals-grid");
|
|
636
667
|
}
|
|
637
|
-
function a
|
|
638
|
-
o("click-rival",
|
|
668
|
+
function m(a) {
|
|
669
|
+
o("click-rival", a);
|
|
639
670
|
}
|
|
640
|
-
function
|
|
641
|
-
y.value =
|
|
671
|
+
function f(a) {
|
|
672
|
+
y.value = a, d.value = a.rivals || [];
|
|
642
673
|
}
|
|
643
|
-
function
|
|
644
|
-
y.value =
|
|
674
|
+
function h(a) {
|
|
675
|
+
y.value = a, d.value = a.rivals || [];
|
|
645
676
|
}
|
|
646
|
-
const
|
|
647
|
-
return
|
|
648
|
-
i.value &&
|
|
649
|
-
}),
|
|
650
|
-
|
|
651
|
-
}), (
|
|
677
|
+
const T = new ResizeObserver(n);
|
|
678
|
+
return M(() => {
|
|
679
|
+
i.value && T.observe(i.value);
|
|
680
|
+
}), tt(() => {
|
|
681
|
+
T.disconnect();
|
|
682
|
+
}), (a, k) => (l(), s("div", {
|
|
652
683
|
class: "next-rivals",
|
|
653
684
|
ref_key: "containerRef",
|
|
654
685
|
ref: i
|
|
655
686
|
}, [
|
|
656
|
-
r("div",
|
|
657
|
-
|
|
658
|
-
|
|
687
|
+
r("div", It, [
|
|
688
|
+
Tt,
|
|
689
|
+
R(U(Bt), et(t, {
|
|
659
690
|
"model-value": y.value,
|
|
660
|
-
items:
|
|
661
|
-
onInput:
|
|
662
|
-
"onUpdate:modelValue":
|
|
691
|
+
items: _.value,
|
|
692
|
+
onInput: f,
|
|
693
|
+
"onUpdate:modelValue": h
|
|
663
694
|
}), {
|
|
664
|
-
default:
|
|
665
|
-
r("div",
|
|
695
|
+
default: W(({ selectedItem: p }) => [
|
|
696
|
+
r("div", $t, b(p.team_name), 1)
|
|
666
697
|
]),
|
|
667
|
-
availableItem:
|
|
668
|
-
r("div", null, b(
|
|
698
|
+
availableItem: W(({ item: p }) => [
|
|
699
|
+
r("div", null, b(p.team_name), 1)
|
|
669
700
|
]),
|
|
670
701
|
_: 1
|
|
671
702
|
}, 16, ["model-value", "items"])
|
|
672
703
|
]),
|
|
673
|
-
y.value.rivals && y.value.rivals.length ? (l(),
|
|
674
|
-
(l(!0),
|
|
675
|
-
key:
|
|
676
|
-
logo: `https://golstatsimages.blob.core.windows.net/teams-80/${
|
|
677
|
-
name:
|
|
678
|
-
rival:
|
|
679
|
-
onClickRival: (
|
|
704
|
+
y.value.rivals && y.value.rivals.length ? (l(), s("div", Nt, [
|
|
705
|
+
(l(!0), s(E, null, J(d.value, (p) => (l(), ot(lt, {
|
|
706
|
+
key: p.team_id,
|
|
707
|
+
logo: `https://golstatsimages.blob.core.windows.net/teams-80/${p.team_id}.png`,
|
|
708
|
+
name: p.team_name,
|
|
709
|
+
rival: p,
|
|
710
|
+
onClickRival: ($) => m(p)
|
|
680
711
|
}, null, 8, ["logo", "name", "rival", "onClickRival"]))), 128))
|
|
681
|
-
])) : S.value ? (l(),
|
|
682
|
-
r("h2",
|
|
712
|
+
])) : S.value ? (l(), s("div", Rt, Ot)) : (l(), s("div", zt, [
|
|
713
|
+
r("h2", Ft, b(y.value.team_name) + " no tiene partidos programados por el momento", 1)
|
|
683
714
|
]))
|
|
684
715
|
], 512));
|
|
685
716
|
}
|
|
686
|
-
},
|
|
717
|
+
}, Pt = /* @__PURE__ */ G(Vt, [["__scopeId", "data-v-7455bc9e"]]);
|
|
687
718
|
export {
|
|
688
|
-
|
|
719
|
+
Pt as GSCNextRivals
|
|
689
720
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(g,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(g=typeof globalThis<"u"?globalThis:g||self,t(g.GSCNextRivals={},g.Vue))})(this,function(g,t){"use strict";const w=(o,r)=>{const e=o.__vccOpts||o;for(const[l,d]of r)e[l]=d;return e},E=["src","alt"],z={class:"team-card__name"},T=w({__name:"GscTeamCard",props:{logo:{type:String,default:""},name:{type:String,default:""},url:{type:String,default:""},rival:{type:Object,default:()=>({})}},emits:["click-rival"],setup(o,{emit:r}){const e=o;function l(){r("click-rival",e.rival)}return(d,a)=>(t.openBlock(),t.createElementBlock("div",{class:"team-card",onClick: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,E),t.createElementVNode("p",z,t.toDisplayString(o.name),1)]))}},[["__scopeId","data-v-8f13b2f7"]]),v=(o,r)=>{const e=o.__vccOpts||o;for(const[l,d]of r)e[l]=d;return e},S={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(o){this.status=o}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(o){this.$emit("click",o),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},x=()=>{t.useCssVars(o=>({"9d01acb4":o.height,"14e95081":o.borderWidthBtn,"38fec285":o.borderType,34353510:o.borderColor,"20d20dc6":o.borderRadius,17130967:o.width,"4ccb7d36":o.backgroundColor,"5d1e86a2":o.cursorType,ce65d4a2:o.fontSize,fe4ac47a:o.fontStyle,f98e44dc:o.fontFamily,"93b87770":o.marginLeftStat,c7f7beba:o.fontSizeStat}))},N=S.setup;S.setup=N?(o,r)=>(x(),N(o,r)):x;const F=o=>(t.pushScopeId("data-v-f3ee6b2b"),o=o(),t.popScopeId(),o),$=["src"],R={key:1,class:"text"},W=["src"],O={class:"stats"},D=F(()=>t.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),P={class:"numstats"},L={class:"leyend"};function M(o,r,e,l,d,a){return t.openBlock(),t.createElementBlock("div",null,[e.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",d.status&&e.typeOnOff&&"button-active"]),style:t.normalizeStyle([a.customStyle,d.status&&e.typeOnOff&&a.customActive]),onClick:r[0]||(r[0]=(...s)=>a.btnClick&&a.btnClick(...s))},[e.icon&&e.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:e.iconSize}),src:e.icon},null,12,$)):t.createCommentVNode("",!0),e.textValue?(t.openBlock(),t.createElementBlock("div",R,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,W)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),e.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:r[1]||(r[1]=(...s)=>a.btnClick&&a.btnClick(...s))},[t.createElementVNode("div",O,[D,t.createElementVNode("div",P,t.toDisplayString(e.textStat),1)]),t.createElementVNode("div",L,t.toDisplayString(e.textCategory),1)])):t.createCommentVNode("",!0)])}const j=v(S,[["render",M],["__scopeId","data-v-f3ee6b2b"]]),J={class:"gsc-dropdown__main-container__item-selected"},A=["height","width"],G=["stroke"],H={class:"gsc-dropdown__items-container"},U=["onClick"],Z={key:0,class:"gsc-dropdown__items-footer"},X={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(o){return["solid","dotted","dashed"].includes(o)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:o=>["propName","value"].every(r=>r in o)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listMarginTop:{type:String,default:"0"},listContainerPadding:{type:String,default:"0"},listItemPadding:{type:String,default:"10px 12px"},listItemMargin:{type:String,default:"0"},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},listItemBorderRadius:{type:String,default:"0"},listAlignment:{type:String,default:"left"},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(o,{emit:r}){const e=o,l=t.ref({}),d=t.ref(null),a=t.ref(e.isMultipleOption?-1:0),s=t.ref(!1);t.watch(()=>e.items,(i,m)=>{if(!e.modelValue&&(!e.onlyFirstTime||!m||!m.length)&&i&&i.length){if(e.defaultItemByProp){const c=e.items.findIndex(u=>u[e.defaultItemByProp.propName]===e.defaultItemByProp.value);c!==-1?(a.value=c,l.value=i[c]):(a.value=0,l.value=i[0])}else l.value=i[e.defaultItemByIndex];r("input",l.value)}},{immediate:!0}),t.watch(()=>e.modelValue,i=>{if(i){const m=e.items.findIndex(c=>typeof i=="object"?JSON.stringify(c)===JSON.stringify(i):c===i);m!==-1&&(a.value=m,l.value=e.items[m],r("update:modelValue",l.value))}},{immediate:!0});const f=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-container-padding":e.listContainerPadding,"--list-item-padding":e.listItemPadding,"--list-item-margin":e.listItemMargin,"--list-background-color":e.listBackgroundColor,"--list-height":e.listHeight,"--list-item-border-radius":e.listItemBorderRadius,"--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`,"--list-margin-top":e.listMarginTop,"--list-left":e.listAlignment==="left"?"0":"auto","--list-right":e.listAlignment==="right"?"0":"auto","--footer-border":`${e.footerBorderWidth}px solid ${e.footerBorderColor}`,"--dropdown-opacity":e.isDisabled?"0.5":"1","--dropdown-cursor":e.isDisabled?"not-allowed":"pointer","--dropdown-font-size":e.fontSize?e.fontSize:"14px"})),y=t.computed(()=>({height:`${e.arrowHeight}px`,width:`${e.arrowWidth}px`}));function k(){e.isDisabled||(s.value=!s.value)}function b(i){d.value&&!d.value.contains(i.target)&&(s.value=!1)}function C(i,m){e.isMultipleOption?a.value=-1:(a.value=m,s.value=!1),l.value=i,r("input",l.value),r("update:modelValue",l.value)}function B(){s.value=!1,r("click-ready")}return t.onMounted(()=>{document.addEventListener("click",b)}),t.onBeforeMount(()=>{document.removeEventListener("click",b)}),(i,m)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:d,class:"gsc-dropdown",style:t.normalizeStyle(f.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${o.arrowWidth+8}px`}),onClick:k},[t.createElementVNode("div",J,[t.renderSlot(i.$slots,"default",{selectedItem:l.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":s.value}]),style:t.normalizeStyle(y.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,G)],8,A))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",H,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${e.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.items,(c,u)=>(t.openBlock(),t.createElementBlock("div",null,[t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:u===a.value}]),key:u,onClick:n=>C(c,u)},[t.renderSlot(i.$slots,"availableItem",{item:c})],10,U)),[[t.vShow,!c.isHidden]])]))),256))],4),o.isFooterVisible?(t.openBlock(),t.createElementBlock("div",Z,[t.createVNode(t.unref(j),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:B})])):t.createCommentVNode("",!0)])],512),[[t.vShow,s.value]])]),_:3})],4))}},I=o=>(t.pushScopeId("data-v-f1326d5c"),o=o(),t.popScopeId(),o),Y={class:"header"},q=I(()=>t.createElementVNode("h2",null,"Próximos rivales",-1)),K={class:""},Q={key:0,class:"rivals-grid"},tt={key:1,class:"no-rivals-text-container"},et={class:"no-rivals"},ot={key:2,class:"no-rivals-text-container"},rt=[I(()=>t.createElementVNode("h2",{class:"no-rivals"},"Cargando...",-1))],lt=w({__name:"NextRivals",props:{teamId:{type:Number,default:392},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},fontFamily:{type:String,default:"Poppins-Light"},logosUrl:{type:String,default:"https://golstatsimages.blob.core.windows.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"},areFemaleTeamsVisible:{type:Boolean,default:!0}},emits:["click-rival"],setup(o,{emit:r}){const e=o,l=t.ref(null),d=t.ref("rivals-grid"),a=t.ref([]),s=t.ref([]),f=t.ref({}),y=t.ref(!0);t.watch(()=>e.teamId,n=>{n&&(y.value=!0,b())},{immediate:!0});const k=t.computed(()=>e.areFemaleTeamsVisible?s.value:s.value.filter(n=>!n.is_female));async function b(){try{const h=await(await fetch(`https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/related-teams/${e.teamId}`,{method:"GET",headers:{Authorization:e.token}})).json();s.value=h;const p=h.map(_=>C(_.team_id)),V=await Promise.all(p);s.value.forEach((_,it)=>{_.rivals=V[it]}),f.value=s.value[0]||{},y.value=!1}catch(n){console.error(n),y.value=!1}}async function C(n){try{return(await(await fetch(`https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/next-rivals/teams/${n}`,{method:"GET",headers:{Authorization:e.token}})).json()).rivals||[]}catch(h){console.error(h)}}function B(){l.value&&(d.value="rivals-grid")}function i(n){r("click-rival",n)}function m(n){f.value=n,a.value=n.rivals||[]}function c(n){f.value=n,a.value=n.rivals||[]}const u=new ResizeObserver(B);return t.onMounted(()=>{l.value&&u.observe(l.value)}),t.onUnmounted(()=>{u.disconnect()}),(n,h)=>(t.openBlock(),t.createElementBlock("div",{class:"next-rivals",ref_key:"containerRef",ref:l},[t.createElementVNode("div",Y,[q,t.createVNode(t.unref(X),t.mergeProps(e,{"model-value":f.value,items:k.value,onInput:m,"onUpdate:modelValue":c}),{default:t.withCtx(({selectedItem:p})=>[t.createElementVNode("div",K,t.toDisplayString(p.team_name),1)]),availableItem:t.withCtx(({item:p})=>[t.createElementVNode("div",null,t.toDisplayString(p.team_name),1)]),_:1},16,["model-value","items"])]),f.value.rivals&&f.value.rivals.length?(t.openBlock(),t.createElementBlock("div",Q,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,p=>(t.openBlock(),t.createBlock(T,{key:p.team_id,logo:`https://golstatsimages.blob.core.windows.net/teams-80/${p.team_id}.png`,name:p.team_name,rival:p,onClickRival:V=>i(p)},null,8,["logo","name","rival","onClickRival"]))),128))])):y.value?(t.openBlock(),t.createElementBlock("div",ot,rt)):(t.openBlock(),t.createElementBlock("div",tt,[t.createElementVNode("h2",et,t.toDisplayString(f.value.team_name)+" no tiene partidos programados por el momento",1)]))],512))}},[["__scopeId","data-v-f1326d5c"]]);g.GSCNextRivals=lt,Object.defineProperty(g,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(u,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(u=typeof globalThis<"u"?globalThis:u||self,e(u.GSCNextRivals={},u.Vue))})(this,function(u,e){"use strict";const N=(o,l)=>{const t=o.__vccOpts||o;for(const[r,d]of l)t[r]=d;return t},v=["src","alt"],z={class:"team-card__name"},T=N({__name:"GscTeamCard",props:{logo:{type:String,default:""},name:{type:String,default:""},url:{type:String,default:""},rival:{type:Object,default:()=>({})}},emits:["click-rival"],setup(o,{emit:l}){const t=o;function r(){l("click-rival",t.rival)}return(d,n)=>(e.openBlock(),e.createElementBlock("div",{class:"team-card",onClick:r},[e.createElementVNode("div",{class:"team-card__bg-image",style:e.normalizeStyle({"background-image":`url(${o.logo})`})},null,4),e.createElementVNode("img",{class:"team-card__image",src:o.logo,alt:o.name},null,8,v),e.createElementVNode("p",z,e.toDisplayString(o.name),1)]))}},[["__scopeId","data-v-8f13b2f7"]]),$=(o,l)=>{const t=o.__vccOpts||o;for(const[r,d]of l)t[r]=d;return t},k={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(o){this.status=o}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(o){this.$emit("click",o),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},I=()=>{e.useCssVars(o=>({"9d01acb4":o.height,"14e95081":o.borderWidthBtn,"38fec285":o.borderType,34353510:o.borderColor,"20d20dc6":o.borderRadius,17130967:o.width,"4ccb7d36":o.backgroundColor,"5d1e86a2":o.cursorType,ce65d4a2:o.fontSize,fe4ac47a:o.fontStyle,f98e44dc:o.fontFamily,"93b87770":o.marginLeftStat,c7f7beba:o.fontSizeStat}))},V=k.setup;k.setup=V?(o,l)=>(I(),V(o,l)):I;const F=o=>(e.pushScopeId("data-v-f3ee6b2b"),o=o(),e.popScopeId(),o),R=["src"],W={key:1,class:"text"},O=["src"],D={class:"stats"},L=F(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),P={class:"numstats"},M={class:"leyend"};function j(o,l,t,r,d,n){return e.openBlock(),e.createElementBlock("div",null,[t.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button",d.status&&t.typeOnOff&&"button-active"]),style:e.normalizeStyle([n.customStyle,d.status&&t.typeOnOff&&n.customActive]),onClick:l[0]||(l[0]=(...s)=>n.btnClick&&n.btnClick(...s))},[t.icon&&t.iconPosition.toLowerCase()==="left"?(e.openBlock(),e.createElementBlock("img",{key:0,class:"icon",style:e.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,R)):e.createCommentVNode("",!0),t.textValue?(e.openBlock(),e.createElementBlock("div",W,e.toDisplayString(t.textValue),1)):e.createCommentVNode("",!0),t.icon&&t.iconPosition.toLowerCase()==="right"?(e.openBlock(),e.createElementBlock("img",{key:2,class:"icon",style:e.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,O)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),t.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:l[1]||(l[1]=(...s)=>n.btnClick&&n.btnClick(...s))},[e.createElementVNode("div",D,[L,e.createElementVNode("div",P,e.toDisplayString(t.textStat),1)]),e.createElementVNode("div",M,e.toDisplayString(t.textCategory),1)])):e.createCommentVNode("",!0)])}const A=$(k,[["render",j],["__scopeId","data-v-f3ee6b2b"]]),J={class:"gsc-dropdown__main-container__item-selected"},U=["height","width"],G=["stroke"],Z={key:1,width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},H=["fill"],X={class:"gsc-dropdown__items-container"},Y=["onClick"],q={key:0,class:"gsc-dropdown__items-footer"},K={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(o){return["solid","dotted","dashed"].includes(o)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:o=>["propName","value"].every(l=>l in o)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listMarginTop:{type:String,default:"0"},listContainerPadding:{type:String,default:"0"},listItemPadding:{type:String,default:"10px 12px"},listItemMargin:{type:String,default:"0"},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},listItemBorderRadius:{type:String,default:"0"},listAlignment:{type:String,default:"left"},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1},iconType:{type:Number,default:1,validator:function(o){return[1,2].includes(o)}}},emits:["input","click-ready","update:modelValue"],setup(o,{emit:l}){const t=o,r=e.ref({}),d=e.ref(null),n=e.ref(t.isMultipleOption?-1:0),s=e.ref(!1);e.watch(()=>t.items,(a,m)=>{if(!t.modelValue&&(!t.onlyFirstTime||!m||!m.length)&&a&&a.length){if(t.defaultItemByProp){const p=t.items.findIndex(g=>g[t.defaultItemByProp.propName]===t.defaultItemByProp.value);p!==-1?(n.value=p,r.value=a[p]):(n.value=0,r.value=a[0])}else r.value=a[t.defaultItemByIndex];l("input",r.value)}},{immediate:!0}),e.watch(()=>t.modelValue,a=>{if(a){const m=t.items.findIndex(p=>typeof a=="object"?JSON.stringify(p)===JSON.stringify(a):p===a);m!==-1&&(n.value=m,r.value=t.items[m],l("update:modelValue",r.value))}},{immediate:!0});const f=e.computed(()=>({height:t.height,width:t.width,backgroundColor:t.backgroundColor,borderRadius:`${t.borderRadius}px`,border:`${t.borderType} ${t.borderWidth}px ${t.borderColor}`,color:t.color,"--hover-background-color":t.hoverBackgroundColor,"--list-container-padding":t.listContainerPadding,"--list-item-padding":t.listItemPadding,"--list-item-margin":t.listItemMargin,"--list-background-color":t.listBackgroundColor,"--list-height":t.listHeight,"--list-item-border-radius":t.listItemBorderRadius,"--list-item-selected-color":t.listItemSelectedColor,"--list-item-selected-background-color":t.listItemSelectedBackgroundColor,"--list-item-color":t.listItemColor,"--list-border-radius":`${t.listBorderRadius}`,"--list-border-color":t.listBorderColor,"--list-width":t.isListSameWidth?t.width:"fit-content","--list-border-width":`${t.listBorderWidth}px`,"--list-margin-top":t.listMarginTop,"--list-left":t.listAlignment==="left"?"0":"auto","--list-right":t.listAlignment==="right"?"0":"auto","--footer-border":`${t.footerBorderWidth}px solid ${t.footerBorderColor}`,"--dropdown-opacity":t.isDisabled?"0.5":"1","--dropdown-cursor":t.isDisabled?"not-allowed":"pointer","--dropdown-font-size":t.fontSize?t.fontSize:"14px"})),y=e.computed(()=>({height:`${t.arrowHeight}px`,width:`${t.arrowWidth}px`}));function h(){t.isDisabled||(s.value=!s.value)}function S(a){d.value&&!d.value.contains(a.target)&&(s.value=!1)}function C(a,m){t.isMultipleOption?n.value=-1:(n.value=m,s.value=!1),r.value=a,l("input",r.value),l("update:modelValue",r.value)}function B(){s.value=!1,l("click-ready")}return e.onMounted(()=>{document.addEventListener("click",S)}),e.onBeforeMount(()=>{document.removeEventListener("click",S)}),(a,m)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"dropDown",ref:d,class:"gsc-dropdown",style:e.normalizeStyle(f.value)},[e.createElementVNode("div",{class:"gsc-dropdown__main-container",style:e.normalizeStyle({"padding-right":`${o.arrowWidth+8}px`}),onClick:h},[e.createElementVNode("div",J,[e.renderSlot(a.$slots,"default",{selectedItem:r.value})]),e.createElementVNode("div",{class:e.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":s.value}]),style:e.normalizeStyle(y.value)},[o.iconType===1?(e.openBlock(),e.createElementBlock("svg",{key:0,height:o.arrowHeight,width:o.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.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,G)],8,U)):(e.openBlock(),e.createElementBlock("svg",Z,[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 2.62045L6.86193 0.167368C7.12228 -0.0557892 7.54439 -0.0557892 7.80474 0.167368C8.06509 0.390524 8.06509 0.752333 7.80474 0.97549L4.4714 3.83263C4.21105 4.05579 3.78895 4.05579 3.5286 3.83263L0.195262 0.97549C-0.0650874 0.752333 -0.0650874 0.390524 0.195262 0.167368C0.455612 -0.0557892 0.877722 -0.0557892 1.13807 0.167368L4 2.62045Z",fill:o.arrowColor},null,8,H)]))],6)],4),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",X,[e.createElementVNode("div",null,[e.createElementVNode("div",{class:"gsc-dropdown__items",style:e.normalizeStyle({"margin-top":`${t.borderWidth}px`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,(p,g)=>(e.openBlock(),e.createElementBlock("div",null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["gsc-dropdown__items__item",{selected:g===n.value}]),key:g,onClick:w=>C(p,g)},[e.renderSlot(a.$slots,"availableItem",{item:p})],10,Y)),[[e.vShow,!p.isHidden]])]))),256))],4),o.isFooterVisible?(e.openBlock(),e.createElementBlock("div",q,[e.createVNode(e.unref(A),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:B})])):e.createCommentVNode("",!0)])],512),[[e.vShow,s.value]])]),_:3})],4))}},E=o=>(e.pushScopeId("data-v-7455bc9e"),o=o(),e.popScopeId(),o),Q={class:"header"},ee=E(()=>e.createElementVNode("h2",null,"Próximos rivales",-1)),te={class:""},oe={key:0,class:"rivals-grid"},le={key:1,class:"no-rivals-text-container"},re={class:"no-rivals"},ie={key:2,class:"no-rivals-text-container"},ae=[E(()=>e.createElementVNode("h2",{class:"no-rivals"},"Cargando...",-1))],ne=N({__name:"NextRivals",props:{teamId:{type:Number,default:392},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},fontFamily:{type:String,default:"Poppins-Light"},logosUrl:{type:String,default:"https://golstatsimages.blob.core.windows.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"},areFemaleTeamsVisible:{type:Boolean,default:!0},provider:{type:Number,default:1},isDevApis:{type:Boolean,default:!1}},emits:["click-rival"],setup(o,{emit:l}){const t=o,r=e.ref(null),d=e.ref("rivals-grid"),n=e.ref([]),s=e.ref([]),f=e.ref({}),y=e.ref(!0),h=e.computed(()=>!t.provider||t.provider<=1?null:`https://${t.isDevApis?"dev-apis.golstats.com":"apis.golstats.com"}/${t.provider}`);e.watch(()=>t.teamId,i=>{i&&(y.value=!0,C())},{immediate:!0});const S=e.computed(()=>t.areFemaleTeamsVisible?s.value:s.value.filter(i=>!i.is_female));async function C(){try{const i=h.value?`${h.value}/related-teams/${t.teamId}`:`https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/related-teams/${t.teamId}`,c=await(await fetch(i,{method:"GET",headers:{Authorization:t.token}})).json();s.value=c;const _=c.map(x=>B(x.team_id)),se=await Promise.all(_);s.value.forEach((x,de)=>{x.rivals=se[de]}),f.value=s.value[0]||{},y.value=!1}catch(i){console.error(i),y.value=!1}}async function B(i){try{const b=h.value?`${h.value}/next-rivals/teams/${i}`:`https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/next-rivals/teams/${i}`;return(await(await fetch(b,{method:"GET",headers:{Authorization:t.token}})).json()).rivals||[]}catch(b){console.error(b)}}function a(){r.value&&(d.value="rivals-grid")}function m(i){l("click-rival",i)}function p(i){f.value=i,n.value=i.rivals||[]}function g(i){f.value=i,n.value=i.rivals||[]}const w=new ResizeObserver(a);return e.onMounted(()=>{r.value&&w.observe(r.value)}),e.onUnmounted(()=>{w.disconnect()}),(i,b)=>(e.openBlock(),e.createElementBlock("div",{class:"next-rivals",ref_key:"containerRef",ref:r},[e.createElementVNode("div",Q,[ee,e.createVNode(e.unref(K),e.mergeProps(t,{"model-value":f.value,items:S.value,onInput:p,"onUpdate:modelValue":g}),{default:e.withCtx(({selectedItem:c})=>[e.createElementVNode("div",te,e.toDisplayString(c.team_name),1)]),availableItem:e.withCtx(({item:c})=>[e.createElementVNode("div",null,e.toDisplayString(c.team_name),1)]),_:1},16,["model-value","items"])]),f.value.rivals&&f.value.rivals.length?(e.openBlock(),e.createElementBlock("div",oe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,c=>(e.openBlock(),e.createBlock(T,{key:c.team_id,logo:`https://golstatsimages.blob.core.windows.net/teams-80/${c.team_id}.png`,name:c.team_name,rival:c,onClickRival:_=>m(c)},null,8,["logo","name","rival","onClickRival"]))),128))])):y.value?(e.openBlock(),e.createElementBlock("div",ie,ae)):(e.openBlock(),e.createElementBlock("div",le,[e.createElementVNode("h2",re,e.toDisplayString(f.value.team_name)+" no tiene partidos programados por el momento",1)]))],512))}},[["__scopeId","data-v-7455bc9e"]]);u.GSCNextRivals=ne,Object.defineProperty(u,Symbol.toStringTag,{value:"Module"})});
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.team-card[data-v-8f13b2f7]{width:100%;cursor:pointer;height:8.5rem;background:linear-gradient(180deg,#183143,#18314300);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-8f13b2f7]{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-8f13b2f7]{color:#fff;text-align:center;font-size:.75rem;margin:0;font-family:inherit;font-weight:400;line-height:.9375rem}.team-card__image[data-v-8f13b2f7]{width:4.75rem;height:76;margin-bottom:1.125rem}.team-card[data-v-8f13b2f7]:hover{opacity:.6}.button[data-v-f3ee6b2b],.button-active[data-v-f3ee6b2b]{display:inline-flex;justify-content:center;align-content:center;align-items:center;overflow:none;cursor:pointer!important}.button-target[data-v-f3ee6b2b]{display:inline-block;overflow:hidden;height:var(--9d01acb4);border-width:var(--14e95081)!important;border-style:var(--38fec285)!important;border-color:var(--34353510)!important;border-radius:var(--20d20dc6)!important;width:var(--17130967);background-color:var(--4ccb7d36);justify-content:center;align-content:center;align-items:center;overflow:none;cursor:pointer!important;cursor:var(--5d1e86a2)!important;font-size:var(--ce65d4a2)!important;font-style:var(--fe4ac47a)!important;font-family:var(--f98e44dc)!important}.stats[data-v-f3ee6b2b]{display:inline-flex;width:100%;padding-top:5px;justify-content:left;align-items:center;align-content:center;height:60%}.iconstats[data-v-f3ee6b2b]{width:14px;height:14px;margin-left:var(--93b87770)}.numstats[data-v-f3ee6b2b]{font-family:Poppins-SemiBold;color:#fff;font-size:var(--c7f7beba);margin-left:7px}.leyend[data-v-f3ee6b2b]{display:inline-flex;justify-content:center;align-items:center;align-content:center;font-family:Poppins-Regular;color:#a0a3a5;width:100%;height:15%}.text[data-v-f3ee6b2b],.icon[data-v-f3ee6b2b]{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;font-size:var(--dropdown-font-size);cursor:var(--dropdown-cursor);opacity:var(--dropdown-opacity)}.gsc-dropdown__main-container{height:100%;width:100%;display:flex;align-items:center}.gsc-dropdown__main-container__icon{position:absolute;right:6px;transition:transform .3s ease}.gsc-dropdown__main-container__item-selected{width:100%;padding:0 .5em}.gsc-dropdown__items-container{background-color:var(--list-background-color);border-radius:var(--list-border-radius);border:var(--list-border-width) solid var(--list-border-color);margin-top:var(--list-margin-top);display:block;position:absolute;left:var(--list-left);right:var(--list-right);width:var(--list-width);padding:var(--list-container-padding);box-shadow:0 8px 16px #0003;z-index:300}.gsc-dropdown__items-container>div{width:100%;height:fit-content;display:flex;flex-direction:column}.gsc-dropdown__items{max-height:var(--list-height);height:fit-content;width:var(--list-width);overflow:auto}.gsc-dropdown__items__item{white-space:nowrap;color:var(--list-item-color);padding:var(--list-item-padding);margin:var(--list-item-margin);border-radius:var(--list-item-border-radius)!important;text-decoration:none;display:block}.gsc-dropdown__items__item.selected{color:var(--list-item-selected-color);background-color:var(--list-item-selected-background-color)}.gsc-dropdown__items__item:not(.selected):hover{cursor:pointer;background-color:var(--hover-background-color)}.gsc-dropdown__items__item:first-child{border-top-left-radius:var(--list-border-radius);border-top-right-radius:var(--list-border-radius)}.gsc-dropdown__items-footer{height:50px;width:100%;display:flex;justify-content:center;align-items:center;border-top:var(--footer-border)}::-webkit-scrollbar{width:3px}::-webkit-scrollbar-track{border-radius:2.5px}::-webkit-scrollbar-thumb{background:#92929d;width:3px}::-webkit-scrollbar-thumb:hover{background:#92929d}@font-face{font-family:Poppins-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")}@font-face{font-family:Oswald-Bold;src:url(/fonts/Oswald-Bold.ttf) format("truetype")}@font-face{font-family:Oswald-Regular;src:url(/fonts/Oswald-Regular.ttf) format("truetype")}@font-face{font-family:Oswald-SemiBold;src:url(/fonts/Oswald-SemiBold.ttf) format("truetype")}@font-face{font-family:Oswald-Medium;src:url(/fonts/Oswald-Medium.ttf) format("truetype")}@font-face{font-family:BebasNeueBold;src:url(/fonts/BebasNeue-Bold.woff2) format("woff2")}@font-face{font-family:BebasNeueBook;src:url(/fonts/BebasNeue-Book.woff2) format("woff2")}@font-face{font-family:BebasNeueLight;src:url(/fonts/BebasNeue-Light.woff2) format("woff2")}@font-face{font-family:BebasNeueRegular;src:url(/fonts/BebasNeue-Regular.woff2) format("woff2")}@font-face{font-family:BebasNeueThin;src:url(/fonts/BebasNeue-Thin.woff2) format("woff2")}.next-rivals[data-v-
|
|
1
|
+
.team-card[data-v-8f13b2f7]{width:100%;cursor:pointer;height:8.5rem;background:linear-gradient(180deg,#183143,#18314300);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-8f13b2f7]{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-8f13b2f7]{color:#fff;text-align:center;font-size:.75rem;margin:0;font-family:inherit;font-weight:400;line-height:.9375rem}.team-card__image[data-v-8f13b2f7]{width:4.75rem;height:76;margin-bottom:1.125rem}.team-card[data-v-8f13b2f7]:hover{opacity:.6}.button[data-v-f3ee6b2b],.button-active[data-v-f3ee6b2b]{display:inline-flex;justify-content:center;align-content:center;align-items:center;overflow:none;cursor:pointer!important}.button-target[data-v-f3ee6b2b]{display:inline-block;overflow:hidden;height:var(--9d01acb4);border-width:var(--14e95081)!important;border-style:var(--38fec285)!important;border-color:var(--34353510)!important;border-radius:var(--20d20dc6)!important;width:var(--17130967);background-color:var(--4ccb7d36);justify-content:center;align-content:center;align-items:center;overflow:none;cursor:pointer!important;cursor:var(--5d1e86a2)!important;font-size:var(--ce65d4a2)!important;font-style:var(--fe4ac47a)!important;font-family:var(--f98e44dc)!important}.stats[data-v-f3ee6b2b]{display:inline-flex;width:100%;padding-top:5px;justify-content:left;align-items:center;align-content:center;height:60%}.iconstats[data-v-f3ee6b2b]{width:14px;height:14px;margin-left:var(--93b87770)}.numstats[data-v-f3ee6b2b]{font-family:Poppins-SemiBold;color:#fff;font-size:var(--c7f7beba);margin-left:7px}.leyend[data-v-f3ee6b2b]{display:inline-flex;justify-content:center;align-items:center;align-content:center;font-family:Poppins-Regular;color:#a0a3a5;width:100%;height:15%}.text[data-v-f3ee6b2b],.icon[data-v-f3ee6b2b]{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;font-size:var(--dropdown-font-size);cursor:var(--dropdown-cursor);opacity:var(--dropdown-opacity)}.gsc-dropdown__main-container{height:100%;width:100%;display:flex;align-items:center}.gsc-dropdown__main-container__icon{position:absolute;right:6px;transition:transform .3s ease}.gsc-dropdown__main-container__item-selected{width:100%;padding:0 .5em}.gsc-dropdown__items-container{background-color:var(--list-background-color);border-radius:var(--list-border-radius);border:var(--list-border-width) solid var(--list-border-color);margin-top:var(--list-margin-top);display:block;position:absolute;left:var(--list-left);right:var(--list-right);width:var(--list-width);padding:var(--list-container-padding);box-shadow:0 8px 16px #0003;z-index:300}.gsc-dropdown__items-container>div{width:100%;height:fit-content;display:flex;flex-direction:column}.gsc-dropdown__items{max-height:var(--list-height);height:fit-content;width:var(--list-width);overflow:auto}.gsc-dropdown__items__item{white-space:nowrap;color:var(--list-item-color);padding:var(--list-item-padding);margin:var(--list-item-margin);border-radius:var(--list-item-border-radius)!important;text-decoration:none;display:block}.gsc-dropdown__items__item.selected{color:var(--list-item-selected-color);background-color:var(--list-item-selected-background-color)}.gsc-dropdown__items__item:not(.selected):hover{cursor:pointer;background-color:var(--hover-background-color)}.gsc-dropdown__items__item:first-child{border-top-left-radius:var(--list-border-radius);border-top-right-radius:var(--list-border-radius)}.gsc-dropdown__items-footer{height:50px;width:100%;display:flex;justify-content:center;align-items:center;border-top:var(--footer-border)}::-webkit-scrollbar{width:3px}::-webkit-scrollbar-track{border-radius:2.5px}::-webkit-scrollbar-thumb{background:#92929d;width:3px}::-webkit-scrollbar-thumb:hover{background:#92929d}@font-face{font-family:Poppins-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")}@font-face{font-family:Oswald-Bold;src:url(/fonts/Oswald-Bold.ttf) format("truetype")}@font-face{font-family:Oswald-Regular;src:url(/fonts/Oswald-Regular.ttf) format("truetype")}@font-face{font-family:Oswald-SemiBold;src:url(/fonts/Oswald-SemiBold.ttf) format("truetype")}@font-face{font-family:Oswald-Medium;src:url(/fonts/Oswald-Medium.ttf) format("truetype")}@font-face{font-family:BebasNeueBold;src:url(/fonts/BebasNeue-Bold.woff2) format("woff2")}@font-face{font-family:BebasNeueBook;src:url(/fonts/BebasNeue-Book.woff2) format("woff2")}@font-face{font-family:BebasNeueLight;src:url(/fonts/BebasNeue-Light.woff2) format("woff2")}@font-face{font-family:BebasNeueRegular;src:url(/fonts/BebasNeue-Regular.woff2) format("woff2")}@font-face{font-family:BebasNeueThin;src:url(/fonts/BebasNeue-Thin.woff2) format("woff2")}.next-rivals[data-v-7455bc9e]{border-radius:8px;padding:20px;color:#fff}.header[data-v-7455bc9e]{display:flex;justify-content:space-between;align-items:center}h2[data-v-7455bc9e]{font-family:Poppins-Medium;font-size:22px;font-weight:500;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;text-align:left;color:#fff}@media (max-width: 600px){h2[data-v-7455bc9e]{font-size:19px}}@media (max-width: 389px){h2[data-v-7455bc9e]{width:100%}}.rivals-grid[data-v-7455bc9e]{margin-top:20px;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:20px;justify-content:center}.rival-card[data-v-7455bc9e]{background-color:#0003;border-radius:8px;padding:20px;display:flex;flex-direction:column;align-items:center;gap:12px;transition:transform .2s;width:100%;min-width:150px;max-width:200px;margin:0 auto}.rival-card[data-v-7455bc9e]:hover{transform:translateY(-2px)}.rival-logo[data-v-7455bc9e]{width:80px;height:80px;object-fit:contain}.rival-name[data-v-7455bc9e]{font-size:1.1rem;font-weight:500}.no-rivals-text-container[data-v-7455bc9e]{height:319px;align-self:stretch;display:flex;flex-direction:row;justify-content:center;align-items:center;gap:10px;padding:10px;border-radius:9px;border:dashed 1px rgba(255,255,255,.2)}.no-rivals[data-v-7455bc9e]{opacity:.7;font-family:Poppins-Light;font-size:11px;letter-spacing:.2px;text-align:center;color:#fff}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@golstats/gsc-next-rivals",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@eslint/js": "^9.20.0",
|
|
30
|
+
"@playwright/test": "^1.59.1",
|
|
30
31
|
"@vitejs/plugin-vue": "^5.2.1",
|
|
31
32
|
"@vue/eslint-config-prettier": "^10.2.0",
|
|
32
33
|
"eslint": "^9.20.1",
|