@golstats/gsc-next-rivals 1.0.4 → 1.0.6
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/gsc-next-rivals.es.js +174 -186
- package/dist/gsc-next-rivals.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { createElementBlock as d, openBlock as
|
|
2
|
-
const
|
|
1
|
+
import { createElementBlock as d, openBlock as l, createElementVNode as r, normalizeStyle as v, toDisplayString as b, ref as g, watch as T, computed as N, onMounted as E, onBeforeMount as X, createVNode as z, renderSlot as O, normalizeClass as F, Transition as Y, withCtx as $, withDirectives as V, createCommentVNode as _, Fragment as J, renderList as M, vShow as P, unref as j, useCssVars as q, pushScopeId as A, popScopeId as G, onUnmounted as K, mergeProps as Q, createBlock as tt } from "vue";
|
|
2
|
+
const H = (e, o) => {
|
|
3
3
|
const t = e.__vccOpts || e;
|
|
4
|
-
for (const [
|
|
5
|
-
t[
|
|
4
|
+
for (const [i, c] of o)
|
|
5
|
+
t[i] = c;
|
|
6
6
|
return t;
|
|
7
|
-
},
|
|
7
|
+
}, et = ["src", "alt"], ot = { class: "team-card__name" }, it = {
|
|
8
8
|
__name: "GscTeamCard",
|
|
9
9
|
props: {
|
|
10
10
|
logo: {
|
|
@@ -25,33 +25,33 @@ const A = (e, i) => {
|
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
emits: ["click-rival"],
|
|
28
|
-
setup(e, { emit:
|
|
28
|
+
setup(e, { emit: o }) {
|
|
29
29
|
const t = e;
|
|
30
|
-
function
|
|
31
|
-
|
|
30
|
+
function i() {
|
|
31
|
+
o("click-rival", t.rival);
|
|
32
32
|
}
|
|
33
|
-
return (c,
|
|
33
|
+
return (c, n) => (l(), d("div", {
|
|
34
34
|
class: "team-card",
|
|
35
|
-
onClick:
|
|
35
|
+
onClick: i
|
|
36
36
|
}, [
|
|
37
|
-
|
|
37
|
+
r("div", {
|
|
38
38
|
class: "team-card__bg-image",
|
|
39
|
-
style:
|
|
39
|
+
style: v({ "background-image": `url(${e.logo})` })
|
|
40
40
|
}, null, 4),
|
|
41
|
-
|
|
41
|
+
r("img", {
|
|
42
42
|
class: "team-card__image",
|
|
43
43
|
src: e.logo,
|
|
44
44
|
alt: e.name
|
|
45
|
-
}, null, 8,
|
|
46
|
-
|
|
45
|
+
}, null, 8, et),
|
|
46
|
+
r("p", ot, b(e.name), 1)
|
|
47
47
|
]));
|
|
48
48
|
}
|
|
49
|
-
},
|
|
49
|
+
}, rt = /* @__PURE__ */ H(it, [["__scopeId", "data-v-8f13b2f7"]]), at = (e, o) => {
|
|
50
50
|
const t = e.__vccOpts || e;
|
|
51
|
-
for (const [
|
|
52
|
-
t[
|
|
51
|
+
for (const [i, c] of o)
|
|
52
|
+
t[i] = c;
|
|
53
53
|
return t;
|
|
54
|
-
},
|
|
54
|
+
}, R = {
|
|
55
55
|
props: {
|
|
56
56
|
type: { type: Number, default: 0 },
|
|
57
57
|
value: { type: Boolean, default: !1 },
|
|
@@ -125,8 +125,8 @@ const A = (e, i) => {
|
|
|
125
125
|
this.$emit("click", e), this.typeOnOff && (this.status = !this.status, this.$emit("status", this.status));
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
|
-
},
|
|
129
|
-
|
|
128
|
+
}, L = () => {
|
|
129
|
+
q((e) => ({
|
|
130
130
|
"9d01acb4": e.height,
|
|
131
131
|
"14e95081": e.borderWidthBtn,
|
|
132
132
|
"38fec285": e.borderType,
|
|
@@ -141,61 +141,54 @@ const A = (e, i) => {
|
|
|
141
141
|
"93b87770": e.marginLeftStat,
|
|
142
142
|
c7f7beba: e.fontSizeStat
|
|
143
143
|
}));
|
|
144
|
-
},
|
|
145
|
-
|
|
146
|
-
const
|
|
144
|
+
}, D = R.setup;
|
|
145
|
+
R.setup = D ? (e, o) => (L(), D(e, o)) : L;
|
|
146
|
+
const lt = (e) => (A("data-v-f3ee6b2b"), e = e(), G(), e), nt = ["src"], st = {
|
|
147
147
|
key: 1,
|
|
148
148
|
class: "text"
|
|
149
|
-
},
|
|
149
|
+
}, dt = ["src"], ut = { class: "stats" }, ct = /* @__PURE__ */ lt(() => /* @__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
|
|
155
|
-
t.type == 0 ? (
|
|
152
|
+
}, null, -1)), pt = { class: "numstats" }, ft = { class: "leyend" };
|
|
153
|
+
function mt(e, o, t, i, c, n) {
|
|
154
|
+
return l(), d("div", null, [
|
|
155
|
+
t.type == 0 ? (l(), d("div", {
|
|
156
156
|
key: 0,
|
|
157
|
-
class:
|
|
158
|
-
style:
|
|
159
|
-
onClick:
|
|
157
|
+
class: F(["button", c.status && t.typeOnOff && "button-active"]),
|
|
158
|
+
style: v([n.customStyle, c.status && t.typeOnOff && n.customActive]),
|
|
159
|
+
onClick: o[0] || (o[0] = (...u) => n.btnClick && n.btnClick(...u))
|
|
160
160
|
}, [
|
|
161
|
-
t.icon && t.iconPosition.toLowerCase() === "left" ? (
|
|
161
|
+
t.icon && t.iconPosition.toLowerCase() === "left" ? (l(), d("img", {
|
|
162
162
|
key: 0,
|
|
163
163
|
class: "icon",
|
|
164
|
-
style:
|
|
164
|
+
style: v({ width: t.iconSize }),
|
|
165
165
|
src: t.icon
|
|
166
|
-
}, null, 12,
|
|
167
|
-
t.textValue ? (
|
|
168
|
-
t.icon && t.iconPosition.toLowerCase() === "right" ? (
|
|
166
|
+
}, null, 12, nt)) : _("", !0),
|
|
167
|
+
t.textValue ? (l(), d("div", st, b(t.textValue), 1)) : _("", !0),
|
|
168
|
+
t.icon && t.iconPosition.toLowerCase() === "right" ? (l(), d("img", {
|
|
169
169
|
key: 2,
|
|
170
170
|
class: "icon",
|
|
171
|
-
style:
|
|
171
|
+
style: v({ width: t.iconSize }),
|
|
172
172
|
src: t.icon
|
|
173
|
-
}, null, 12,
|
|
174
|
-
], 6)) :
|
|
175
|
-
t.type == 1 ? (
|
|
173
|
+
}, null, 12, dt)) : _("", !0)
|
|
174
|
+
], 6)) : _("", !0),
|
|
175
|
+
t.type == 1 ? (l(), d("div", {
|
|
176
176
|
key: 1,
|
|
177
177
|
class: "button-target",
|
|
178
|
-
onClick:
|
|
178
|
+
onClick: o[1] || (o[1] = (...u) => n.btnClick && n.btnClick(...u))
|
|
179
179
|
}, [
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
180
|
+
r("div", ut, [
|
|
181
|
+
ct,
|
|
182
|
+
r("div", pt, b(t.textStat), 1)
|
|
183
183
|
]),
|
|
184
|
-
|
|
185
|
-
])) :
|
|
184
|
+
r("div", ft, b(t.textCategory), 1)
|
|
185
|
+
])) : _("", !0)
|
|
186
186
|
]);
|
|
187
187
|
}
|
|
188
|
-
const
|
|
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
|
-
}, ht = ["fill"], vt = { class: "gsc-dropdown__items-container" }, bt = ["onClick"], St = {
|
|
188
|
+
const gt = /* @__PURE__ */ at(R, [["render", mt], ["__scopeId", "data-v-f3ee6b2b"]]), yt = { class: "gsc-dropdown__main-container__item-selected" }, ht = ["height", "width"], vt = ["stroke"], bt = { class: "gsc-dropdown__items-container" }, St = ["onClick"], Ct = {
|
|
196
189
|
key: 0,
|
|
197
190
|
class: "gsc-dropdown__items-footer"
|
|
198
|
-
},
|
|
191
|
+
}, _t = {
|
|
199
192
|
__name: "GSC-Dropdown",
|
|
200
193
|
props: {
|
|
201
194
|
modelValue: {
|
|
@@ -264,7 +257,7 @@ const pt = /* @__PURE__ */ ot($, [["render", ct], ["__scopeId", "data-v-f3ee6b2b
|
|
|
264
257
|
defaultItemByProp: {
|
|
265
258
|
type: Object,
|
|
266
259
|
default: null,
|
|
267
|
-
validator: (e) => ["propName", "value"].every((
|
|
260
|
+
validator: (e) => ["propName", "value"].every((o) => o in e)
|
|
268
261
|
},
|
|
269
262
|
listBackgroundColor: {
|
|
270
263
|
type: String,
|
|
@@ -353,44 +346,37 @@ const pt = /* @__PURE__ */ ot($, [["render", ct], ["__scopeId", "data-v-f3ee6b2b
|
|
|
353
346
|
onlyFirstTime: {
|
|
354
347
|
type: Boolean,
|
|
355
348
|
default: !1
|
|
356
|
-
},
|
|
357
|
-
iconType: {
|
|
358
|
-
type: Number,
|
|
359
|
-
default: 1,
|
|
360
|
-
validator: function(e) {
|
|
361
|
-
return [1, 2].includes(e);
|
|
362
|
-
}
|
|
363
349
|
}
|
|
364
350
|
},
|
|
365
351
|
emits: ["input", "click-ready", "update:modelValue"],
|
|
366
|
-
setup(e, { emit:
|
|
367
|
-
const t = e,
|
|
368
|
-
|
|
352
|
+
setup(e, { emit: o }) {
|
|
353
|
+
const t = e, i = g({}), c = g(null), n = g(t.isMultipleOption ? -1 : 0), u = g(!1);
|
|
354
|
+
T(
|
|
369
355
|
() => t.items,
|
|
370
|
-
(a,
|
|
371
|
-
if (!t.modelValue && (!t.onlyFirstTime || !
|
|
356
|
+
(a, m) => {
|
|
357
|
+
if (!t.modelValue && (!t.onlyFirstTime || !m || !m.length) && a && a.length) {
|
|
372
358
|
if (t.defaultItemByProp) {
|
|
373
|
-
const
|
|
374
|
-
(
|
|
359
|
+
const p = t.items.findIndex(
|
|
360
|
+
(h) => h[t.defaultItemByProp.propName] === t.defaultItemByProp.value
|
|
375
361
|
);
|
|
376
|
-
|
|
362
|
+
p !== -1 ? (n.value = p, i.value = a[p]) : (n.value = 0, i.value = a[0]);
|
|
377
363
|
} else
|
|
378
|
-
|
|
379
|
-
|
|
364
|
+
i.value = a[t.defaultItemByIndex];
|
|
365
|
+
o("input", i.value);
|
|
380
366
|
}
|
|
381
367
|
},
|
|
382
368
|
{ immediate: !0 }
|
|
383
|
-
),
|
|
369
|
+
), T(
|
|
384
370
|
() => t.modelValue,
|
|
385
371
|
(a) => {
|
|
386
372
|
if (a) {
|
|
387
|
-
const
|
|
388
|
-
|
|
373
|
+
const m = t.items.findIndex((p) => typeof a == "object" ? JSON.stringify(p) === JSON.stringify(a) : p === a);
|
|
374
|
+
m !== -1 && (n.value = m, i.value = t.items[m], o("update:modelValue", i.value));
|
|
389
375
|
}
|
|
390
376
|
},
|
|
391
377
|
{ immediate: !0 }
|
|
392
378
|
);
|
|
393
|
-
const
|
|
379
|
+
const y = N(() => ({
|
|
394
380
|
height: t.height,
|
|
395
381
|
width: t.width,
|
|
396
382
|
backgroundColor: t.backgroundColor,
|
|
@@ -418,88 +404,80 @@ const pt = /* @__PURE__ */ ot($, [["render", ct], ["__scopeId", "data-v-f3ee6b2b
|
|
|
418
404
|
"--dropdown-opacity": t.isDisabled ? "0.5" : "1",
|
|
419
405
|
"--dropdown-cursor": t.isDisabled ? "not-allowed" : "pointer",
|
|
420
406
|
"--dropdown-font-size": t.fontSize ? t.fontSize : "14px"
|
|
421
|
-
})),
|
|
407
|
+
})), S = N(() => ({
|
|
422
408
|
height: `${t.arrowHeight}px`,
|
|
423
409
|
width: `${t.arrowWidth}px`
|
|
424
410
|
}));
|
|
425
|
-
function
|
|
411
|
+
function k() {
|
|
426
412
|
t.isDisabled || (u.value = !u.value);
|
|
427
413
|
}
|
|
428
|
-
function
|
|
414
|
+
function w(a) {
|
|
429
415
|
c.value && !c.value.contains(a.target) && (u.value = !1);
|
|
430
416
|
}
|
|
431
|
-
function
|
|
432
|
-
t.isMultipleOption ?
|
|
417
|
+
function x(a, m) {
|
|
418
|
+
t.isMultipleOption ? n.value = -1 : (n.value = m, u.value = !1), i.value = a, o("input", i.value), o("update:modelValue", i.value);
|
|
433
419
|
}
|
|
434
|
-
function
|
|
435
|
-
u.value = !1,
|
|
420
|
+
function B() {
|
|
421
|
+
u.value = !1, o("click-ready");
|
|
436
422
|
}
|
|
437
|
-
return
|
|
438
|
-
document.addEventListener("click",
|
|
439
|
-
}),
|
|
440
|
-
document.removeEventListener("click",
|
|
441
|
-
}), (a,
|
|
423
|
+
return E(() => {
|
|
424
|
+
document.addEventListener("click", w);
|
|
425
|
+
}), X(() => {
|
|
426
|
+
document.removeEventListener("click", w);
|
|
427
|
+
}), (a, m) => (l(), d("div", {
|
|
442
428
|
ref_key: "dropDown",
|
|
443
429
|
ref: c,
|
|
444
430
|
class: "gsc-dropdown",
|
|
445
|
-
style:
|
|
431
|
+
style: v(y.value)
|
|
446
432
|
}, [
|
|
447
|
-
|
|
433
|
+
r("div", {
|
|
448
434
|
class: "gsc-dropdown__main-container",
|
|
449
|
-
style:
|
|
450
|
-
onClick:
|
|
435
|
+
style: v({ "padding-right": `${e.arrowWidth + 8}px` }),
|
|
436
|
+
onClick: k
|
|
451
437
|
}, [
|
|
452
|
-
|
|
453
|
-
|
|
438
|
+
r("div", yt, [
|
|
439
|
+
O(a.$slots, "default", { selectedItem: i.value })
|
|
454
440
|
]),
|
|
455
|
-
|
|
456
|
-
class:
|
|
457
|
-
style:
|
|
441
|
+
r("div", {
|
|
442
|
+
class: F(["gsc-dropdown__main-container__icon", { "rotated-180": u.value }]),
|
|
443
|
+
style: v(S.value)
|
|
458
444
|
}, [
|
|
459
|
-
|
|
460
|
-
key: 0,
|
|
445
|
+
(l(), d("svg", {
|
|
461
446
|
height: e.arrowHeight,
|
|
462
447
|
width: e.arrowWidth,
|
|
463
448
|
viewBox: "0 0 24 24",
|
|
464
449
|
fill: "none",
|
|
465
450
|
xmlns: "http://www.w3.org/2000/svg"
|
|
466
451
|
}, [
|
|
467
|
-
|
|
452
|
+
r("path", {
|
|
468
453
|
d: "M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",
|
|
469
454
|
stroke: e.arrowColor
|
|
470
|
-
}, null, 8,
|
|
471
|
-
], 8,
|
|
472
|
-
l("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, ht)
|
|
478
|
-
]))
|
|
455
|
+
}, null, 8, vt)
|
|
456
|
+
], 8, ht))
|
|
479
457
|
], 6)
|
|
480
458
|
], 4),
|
|
481
|
-
|
|
482
|
-
default:
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
459
|
+
z(Y, null, {
|
|
460
|
+
default: $(() => [
|
|
461
|
+
V(r("div", bt, [
|
|
462
|
+
r("div", null, [
|
|
463
|
+
r("div", {
|
|
486
464
|
class: "gsc-dropdown__items",
|
|
487
|
-
style:
|
|
465
|
+
style: v({ "margin-top": `${t.borderWidth}px` })
|
|
488
466
|
}, [
|
|
489
|
-
(
|
|
490
|
-
|
|
491
|
-
class:
|
|
492
|
-
key:
|
|
493
|
-
onClick: (
|
|
467
|
+
(l(!0), d(J, null, M(e.items, (p, h) => (l(), d("div", null, [
|
|
468
|
+
V((l(), d("div", {
|
|
469
|
+
class: F(["gsc-dropdown__items__item", { selected: h === n.value }]),
|
|
470
|
+
key: h,
|
|
471
|
+
onClick: (s) => x(p, h)
|
|
494
472
|
}, [
|
|
495
|
-
|
|
496
|
-
], 10,
|
|
497
|
-
[
|
|
473
|
+
O(a.$slots, "availableItem", { item: p })
|
|
474
|
+
], 10, St)), [
|
|
475
|
+
[P, !p.isHidden]
|
|
498
476
|
])
|
|
499
477
|
]))), 256))
|
|
500
478
|
], 4),
|
|
501
|
-
e.isFooterVisible ? (
|
|
502
|
-
|
|
479
|
+
e.isFooterVisible ? (l(), d("div", Ct, [
|
|
480
|
+
z(j(gt), {
|
|
503
481
|
"text-value": "Listo",
|
|
504
482
|
"border-color": "#cbee6b",
|
|
505
483
|
"font-size": "12px",
|
|
@@ -507,25 +485,30 @@ const pt = /* @__PURE__ */ ot($, [["render", ct], ["__scopeId", "data-v-f3ee6b2b
|
|
|
507
485
|
height: "22px",
|
|
508
486
|
"border-radius": "62px",
|
|
509
487
|
"border-width": 0.8,
|
|
510
|
-
onClick:
|
|
488
|
+
onClick: B
|
|
511
489
|
})
|
|
512
|
-
])) :
|
|
490
|
+
])) : _("", !0)
|
|
513
491
|
])
|
|
514
492
|
], 512), [
|
|
515
|
-
[
|
|
493
|
+
[P, u.value]
|
|
516
494
|
])
|
|
517
495
|
]),
|
|
518
496
|
_: 3
|
|
519
497
|
})
|
|
520
498
|
], 4));
|
|
521
499
|
}
|
|
522
|
-
},
|
|
500
|
+
}, U = (e) => (A("data-v-f1326d5c"), e = e(), G(), e), wt = { class: "header" }, kt = /* @__PURE__ */ U(() => /* @__PURE__ */ r("h2", null, "Próximos rivales", -1)), xt = { class: "" }, Bt = {
|
|
523
501
|
key: 0,
|
|
524
502
|
class: "rivals-grid"
|
|
525
503
|
}, It = {
|
|
526
504
|
key: 1,
|
|
527
505
|
class: "no-rivals-text-container"
|
|
528
506
|
}, Tt = { class: "no-rivals" }, Nt = {
|
|
507
|
+
key: 2,
|
|
508
|
+
class: "no-rivals-text-container"
|
|
509
|
+
}, zt = /* @__PURE__ */ U(() => /* @__PURE__ */ r("h2", { class: "no-rivals" }, "Cargando...", -1)), Ft = [
|
|
510
|
+
zt
|
|
511
|
+
], $t = {
|
|
529
512
|
__name: "NextRivals",
|
|
530
513
|
props: {
|
|
531
514
|
teamId: {
|
|
@@ -594,23 +577,28 @@ const pt = /* @__PURE__ */ ot($, [["render", ct], ["__scopeId", "data-v-f3ee6b2b
|
|
|
594
577
|
arrowColor: {
|
|
595
578
|
type: String,
|
|
596
579
|
default: "#CBEE6B"
|
|
580
|
+
},
|
|
581
|
+
areFemaleTeamsVisible: {
|
|
582
|
+
type: Boolean,
|
|
583
|
+
default: !0
|
|
597
584
|
}
|
|
598
585
|
},
|
|
599
586
|
emits: ["click-rival"],
|
|
600
|
-
setup(e, { emit:
|
|
601
|
-
const t = e,
|
|
602
|
-
|
|
587
|
+
setup(e, { emit: o }) {
|
|
588
|
+
const t = e, i = g(null), c = g("rivals-grid"), n = g([]), u = g([]), y = g({}), S = g(!0);
|
|
589
|
+
T(
|
|
603
590
|
() => t.teamId,
|
|
604
|
-
(
|
|
605
|
-
|
|
591
|
+
(s) => {
|
|
592
|
+
s && (S.value = !0, w());
|
|
606
593
|
},
|
|
607
594
|
{
|
|
608
595
|
immediate: !0
|
|
609
596
|
}
|
|
610
597
|
);
|
|
611
|
-
|
|
598
|
+
const k = N(() => t.areFemaleTeamsVisible ? u.value : u.value.filter((s) => !s.is_female));
|
|
599
|
+
async function w() {
|
|
612
600
|
try {
|
|
613
|
-
const
|
|
601
|
+
const C = await (await fetch(
|
|
614
602
|
`https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/related-teams/${t.teamId}`,
|
|
615
603
|
{
|
|
616
604
|
method: "GET",
|
|
@@ -619,19 +607,19 @@ const pt = /* @__PURE__ */ ot($, [["render", ct], ["__scopeId", "data-v-f3ee6b2b
|
|
|
619
607
|
}
|
|
620
608
|
}
|
|
621
609
|
)).json();
|
|
622
|
-
u.value =
|
|
623
|
-
const
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
}),
|
|
627
|
-
} catch (
|
|
628
|
-
console.error(
|
|
610
|
+
u.value = C;
|
|
611
|
+
const f = C.map((I) => x(I.team_id)), W = await Promise.all(f);
|
|
612
|
+
u.value.forEach((I, Z) => {
|
|
613
|
+
I.rivals = W[Z];
|
|
614
|
+
}), y.value = u.value[0] || {}, S.value = !1;
|
|
615
|
+
} catch (s) {
|
|
616
|
+
console.error(s), S.value = !1;
|
|
629
617
|
}
|
|
630
618
|
}
|
|
631
|
-
async function
|
|
619
|
+
async function x(s) {
|
|
632
620
|
try {
|
|
633
621
|
return (await (await fetch(
|
|
634
|
-
`https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/next-rivals/teams/${
|
|
622
|
+
`https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/next-rivals/teams/${s}`,
|
|
635
623
|
{
|
|
636
624
|
method: "GET",
|
|
637
625
|
headers: {
|
|
@@ -639,63 +627,63 @@ const pt = /* @__PURE__ */ ot($, [["render", ct], ["__scopeId", "data-v-f3ee6b2b
|
|
|
639
627
|
}
|
|
640
628
|
}
|
|
641
629
|
)).json()).rivals || [];
|
|
642
|
-
} catch (
|
|
643
|
-
console.error(
|
|
630
|
+
} catch (C) {
|
|
631
|
+
console.error(C);
|
|
644
632
|
}
|
|
645
633
|
}
|
|
646
|
-
function
|
|
647
|
-
|
|
634
|
+
function B() {
|
|
635
|
+
i.value && (c.value = "rivals-grid");
|
|
648
636
|
}
|
|
649
|
-
function
|
|
650
|
-
|
|
637
|
+
function a(s) {
|
|
638
|
+
o("click-rival", s);
|
|
651
639
|
}
|
|
652
|
-
function
|
|
653
|
-
|
|
640
|
+
function m(s) {
|
|
641
|
+
y.value = s, n.value = s.rivals || [];
|
|
654
642
|
}
|
|
655
|
-
function
|
|
656
|
-
|
|
643
|
+
function p(s) {
|
|
644
|
+
y.value = s, n.value = s.rivals || [];
|
|
657
645
|
}
|
|
658
|
-
const
|
|
659
|
-
return
|
|
660
|
-
|
|
661
|
-
}),
|
|
662
|
-
|
|
663
|
-
}), (
|
|
646
|
+
const h = new ResizeObserver(B);
|
|
647
|
+
return E(() => {
|
|
648
|
+
i.value && h.observe(i.value);
|
|
649
|
+
}), K(() => {
|
|
650
|
+
h.disconnect();
|
|
651
|
+
}), (s, C) => (l(), d("div", {
|
|
664
652
|
class: "next-rivals",
|
|
665
653
|
ref_key: "containerRef",
|
|
666
|
-
ref:
|
|
654
|
+
ref: i
|
|
667
655
|
}, [
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
"model-value":
|
|
672
|
-
items:
|
|
673
|
-
onInput:
|
|
674
|
-
"onUpdate:modelValue":
|
|
656
|
+
r("div", wt, [
|
|
657
|
+
kt,
|
|
658
|
+
z(j(_t), Q(t, {
|
|
659
|
+
"model-value": y.value,
|
|
660
|
+
items: k.value,
|
|
661
|
+
onInput: m,
|
|
662
|
+
"onUpdate:modelValue": p
|
|
675
663
|
}), {
|
|
676
|
-
default:
|
|
677
|
-
|
|
664
|
+
default: $(({ selectedItem: f }) => [
|
|
665
|
+
r("div", xt, b(f.team_name), 1)
|
|
678
666
|
]),
|
|
679
|
-
availableItem:
|
|
680
|
-
|
|
667
|
+
availableItem: $(({ item: f }) => [
|
|
668
|
+
r("div", null, b(f.team_name), 1)
|
|
681
669
|
]),
|
|
682
670
|
_: 1
|
|
683
671
|
}, 16, ["model-value", "items"])
|
|
684
672
|
]),
|
|
685
|
-
|
|
686
|
-
(
|
|
687
|
-
key:
|
|
688
|
-
logo: `https://golstatsimages.blob.core.windows.net/teams-80/${
|
|
689
|
-
name:
|
|
690
|
-
rival:
|
|
691
|
-
onClickRival: (
|
|
673
|
+
y.value.rivals && y.value.rivals.length ? (l(), d("div", Bt, [
|
|
674
|
+
(l(!0), d(J, null, M(n.value, (f) => (l(), tt(rt, {
|
|
675
|
+
key: f.team_id,
|
|
676
|
+
logo: `https://golstatsimages.blob.core.windows.net/teams-80/${f.team_id}.png`,
|
|
677
|
+
name: f.team_name,
|
|
678
|
+
rival: f,
|
|
679
|
+
onClickRival: (W) => a(f)
|
|
692
680
|
}, null, 8, ["logo", "name", "rival", "onClickRival"]))), 128))
|
|
693
|
-
])) : (
|
|
694
|
-
|
|
681
|
+
])) : S.value ? (l(), d("div", Nt, Ft)) : (l(), d("div", It, [
|
|
682
|
+
r("h2", Tt, b(y.value.team_name) + " no tiene partidos programados por el momento", 1)
|
|
695
683
|
]))
|
|
696
684
|
], 512));
|
|
697
685
|
}
|
|
698
|
-
},
|
|
686
|
+
}, Wt = /* @__PURE__ */ H($t, [["__scopeId", "data-v-f1326d5c"]]);
|
|
699
687
|
export {
|
|
700
|
-
|
|
688
|
+
Wt as GSCNextRivals
|
|
701
689
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(u,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(u=typeof globalThis<"u"?globalThis:u||self,t(u.GSCNextRivals={},u.Vue))})(this,function(u,t){"use strict";const B=(o,r)=>{const e=o.__vccOpts||o;for(const[i,s]of r)e[i]=s;return e},N=["src","alt"],I={class:"team-card__name"},V=B({__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 i(){r("click-rival",e.rival)}return(s,n)=>(t.openBlock(),t.createElementBlock("div",{class:"team-card",onClick:i},[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,N),t.createElementVNode("p",I,t.toDisplayString(o.name),1)]))}},[["__scopeId","data-v-8f13b2f7"]]),E=(o,r)=>{const e=o.__vccOpts||o;for(const[i,s]of r)e[i]=s;return e},y={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))}}},_=()=>{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}))},x=y.setup;y.setup=x?(o,r)=>(_(),x(o,r)):_;const z=o=>(t.pushScopeId("data-v-f3ee6b2b"),o=o(),t.popScopeId(),o),T=["src"],v={key:1,class:"text"},$=["src"],F={class:"stats"},R=z(()=>t.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),W={class:"numstats"},O={class:"leyend"};function D(o,r,e,i,s,n){return t.openBlock(),t.createElementBlock("div",null,[e.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",s.status&&e.typeOnOff&&"button-active"]),style:t.normalizeStyle([n.customStyle,s.status&&e.typeOnOff&&n.customActive]),onClick:r[0]||(r[0]=(...d)=>n.btnClick&&n.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,T)):t.createCommentVNode("",!0),e.textValue?(t.openBlock(),t.createElementBlock("div",v,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,$)):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]=(...d)=>n.btnClick&&n.btnClick(...d))},[t.createElementVNode("div",F,[R,t.createElementVNode("div",W,t.toDisplayString(e.textStat),1)]),t.createElementVNode("div",O,t.toDisplayString(e.textCategory),1)])):t.createCommentVNode("",!0)])}const L=E(y,[["render",D],["__scopeId","data-v-f3ee6b2b"]]),P={class:"gsc-dropdown__main-container__item-selected"},M=["height","width"],j=["stroke"],J={key:1,width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},A=["fill"],G={class:"gsc-dropdown__items-container"},U=["onClick"],Z={key:0,class:"gsc-dropdown__items-footer"},H={__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},iconType:{type:Number,default:1,validator:function(o){return[1,2].includes(o)}}},emits:["input","click-ready","update:modelValue"],setup(o,{emit:r}){const e=o,i=t.ref({}),s=t.ref(null),n=t.ref(e.isMultipleOption?-1:0),d=t.ref(!1);t.watch(()=>e.items,(a,p)=>{if(!e.modelValue&&(!e.onlyFirstTime||!p||!p.length)&&a&&a.length){if(e.defaultItemByProp){const l=e.items.findIndex(m=>m[e.defaultItemByProp.propName]===e.defaultItemByProp.value);l!==-1?(n.value=l,i.value=a[l]):(n.value=0,i.value=a[0])}else i.value=a[e.defaultItemByIndex];r("input",i.value)}},{immediate:!0}),t.watch(()=>e.modelValue,a=>{if(a){const p=e.items.findIndex(l=>typeof a=="object"?JSON.stringify(l)===JSON.stringify(a):l===a);p!==-1&&(n.value=p,i.value=e.items[p],r("update:modelValue",i.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"})),h=t.computed(()=>({height:`${e.arrowHeight}px`,width:`${e.arrowWidth}px`}));function S(){e.isDisabled||(d.value=!d.value)}function g(a){s.value&&!s.value.contains(a.target)&&(d.value=!1)}function b(a,p){e.isMultipleOption?n.value=-1:(n.value=p,d.value=!1),i.value=a,r("input",i.value),r("update:modelValue",i.value)}function k(){d.value=!1,r("click-ready")}return t.onMounted(()=>{document.addEventListener("click",g)}),t.onBeforeMount(()=>{document.removeEventListener("click",g)}),(a,p)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:s,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:S},[t.createElementVNode("div",P,[t.renderSlot(a.$slots,"default",{selectedItem:i.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":d.value}]),style:t.normalizeStyle(h.value)},[o.iconType===1?(t.openBlock(),t.createElementBlock("svg",{key:0,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,j)],8,M)):(t.openBlock(),t.createElementBlock("svg",J,[t.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,A)]))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",G,[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,(l,m)=>(t.openBlock(),t.createElementBlock("div",null,[t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:m===n.value}]),key:m,onClick:c=>b(l,m)},[t.renderSlot(a.$slots,"availableItem",{item:l})],10,U)),[[t.vShow,!l.isHidden]])]))),256))],4),o.isFooterVisible?(t.openBlock(),t.createElementBlock("div",Z,[t.createVNode(t.unref(L),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:k})])):t.createCommentVNode("",!0)])],512),[[t.vShow,d.value]])]),_:3})],4))}},X=o=>(t.pushScopeId("data-v-41c274d8"),o=o(),t.popScopeId(),o),Y={class:"header"},q=X(()=>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=B({__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"}},emits:["click-rival"],setup(o,{emit:r}){const e=o,i=t.ref(null),s=t.ref("rivals-grid"),n=t.ref([]),d=t.ref([]),f=t.ref({});t.watch(()=>e.teamId,l=>{l&&h()},{immediate:!0});async function h(){try{const m=await(await fetch(`https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/related-teams/${e.teamId}`,{method:"GET",headers:{Authorization:e.token}})).json();d.value=m;const c=m.map(w=>S(w.team_id)),C=await Promise.all(c);console.log("responses",C),d.value.forEach((w,lt)=>{w.rivals=C[lt]}),f.value=d.value[0],console.log("relatedTeams.value",d.value)}catch(l){console.error(l)}}async function S(l){try{return(await(await fetch(`https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/next-rivals/teams/${l}`,{method:"GET",headers:{Authorization:e.token}})).json()).rivals||[]}catch(m){console.error(m)}}function g(){i.value&&(s.value="rivals-grid")}function b(l){r("click-rival",l)}function k(l){console.log("onInputValue",l),f.value=l,n.value=l.rivals}function a(l){console.log("onUpdateValue",l),f.value=l,n.value=l.rivals}const p=new ResizeObserver(g);return t.onMounted(()=>{i.value&&p.observe(i.value)}),t.onUnmounted(()=>{p.disconnect()}),(l,m)=>(t.openBlock(),t.createElementBlock("div",{class:"next-rivals",ref_key:"containerRef",ref:i},[t.createElementVNode("div",Y,[q,t.createVNode(t.unref(H),t.mergeProps(e,{"model-value":f.value,items:d.value,onInput:k,"onUpdate:modelValue":a}),{default:t.withCtx(({selectedItem:c})=>[t.createElementVNode("div",K,t.toDisplayString(c.team_name),1)]),availableItem:t.withCtx(({item:c})=>[t.createElementVNode("div",null,t.toDisplayString(c.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(n.value,c=>(t.openBlock(),t.createBlock(V,{key:c.team_id,logo:`https://golstatsimages.blob.core.windows.net/teams-80/${c.team_id}.png`,name:c.team_name,rival:c,onClickRival:C=>b(c)},null,8,["logo","name","rival","onClickRival"]))),128))])):(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-41c274d8"]]);u.GSCNextRivals=ot,Object.defineProperty(u,Symbol.toStringTag,{value:"Module"})});
|
|
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"})});
|
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-f1326d5c]{border-radius:8px;padding:20px;color:#fff}.header[data-v-f1326d5c]{display:flex;justify-content:space-between;align-items:center}h2[data-v-f1326d5c]{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-f1326d5c]{font-size:19px}}@media (max-width: 389px){h2[data-v-f1326d5c]{width:100%}}.rivals-grid[data-v-f1326d5c]{margin-top:20px;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:20px;justify-content:center}.rival-card[data-v-f1326d5c]{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-f1326d5c]:hover{transform:translateY(-2px)}.rival-logo[data-v-f1326d5c]{width:80px;height:80px;object-fit:contain}.rival-name[data-v-f1326d5c]{font-size:1.1rem;font-weight:500}.no-rivals-text-container[data-v-f1326d5c]{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-f1326d5c]{opacity:.7;font-family:Poppins-Light;font-size:11px;letter-spacing:.2px;text-align:center;color:#fff}
|