@golstats/gsc-relevant-data 1.0.5 → 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/{CardBaseAllIndividual-BNOgnH6t-D0xjZkGw.js → CardBaseAllIndividual-Din4dnnE-ClvswX2H.js} +13 -12
- package/dist/CardGeneral-70CyP1c9-DzGLKPLW.js +127 -0
- package/dist/{CardGeneralIndividual-BHjZ12n1-BvodKC3y.js → CardGeneralIndividual-CFAG9SL3-Cm2WMulY.js} +83 -77
- package/dist/{CardGeneralTeams-ByBEp-8b-CbLocm8U.js → CardGeneralTeams-C1b59sT7-DKIH3pKd.js} +151 -146
- package/dist/{CardIndividual-BR1r5B5u-DqflCygx.js → CardIndividual-BVJEvLuq-DNLGRnJn.js} +38 -37
- package/dist/CardIndividual1vs1-BEIdhWs1-CmX-Dpme.js +109 -0
- package/dist/{CardIndividualAreas-qEYtV2XP-C97pNpBa.js → CardIndividualAreas-T43vItFr-GlwzP3pQ.js} +22 -21
- package/dist/{CardIndividualCenters-DURH48kE-BAeLhbBk.js → CardIndividualCenters-fZNKbbXo-CvIgTyZn.js} +121 -120
- package/dist/{CardIndividualDistance-BKeSbWJ9-B6Vj1YLa.js → CardIndividualDistance-CcU2Vbnx-DlR0hivB.js} +32 -31
- package/dist/{CardIndividualFouls-BqWT8Bzx-D0EDbSJl.js → CardIndividualFouls-BYcKqeFK-BGZfrm52.js} +111 -110
- package/dist/CardIndividualGoalParticipation-yPoWp2QU-DpNpWdqc.js +112 -0
- package/dist/{CardIndividualGoals-CBAA7DE3-Dco1VuBc.js → CardIndividualGoals-C69mSV2s-CBAHkKBm.js} +181 -180
- package/dist/{CardIndividualGold-BBYsUCND-BhqSGl0q.js → CardIndividualGold-BxCrvpoF-BEc0OJ86.js} +28 -26
- package/dist/{CardIndividualNoGoalReceived-HaDOJruE-CKzigvOP.js → CardIndividualNoGoalReceived-CqVz1A2y-Bkyl-TxG.js} +56 -55
- package/dist/CardIndividualPerformance-JjUTmJQy-8qdezjEh.js +104 -0
- package/dist/{CardIndividualSaves-BqBRjEt7-CJBgPvne.js → CardIndividualSaves-DEvTL6Uw-_tm_oIfl.js} +70 -65
- package/dist/{CardIndividualShotsOnGoal-X_3YzAE3-CbiYLtzD.js → CardIndividualShotsOnGoal-BxwPL-4b-8RHeYE0k.js} +55 -54
- package/dist/{CardIndividualStatistics-D769xisE-D2KNSIfX.js → CardIndividualStatistics-DQRVwOUb-Cq_TJCc_.js} +35 -34
- package/dist/{CardPromTournament-DFGqM4we-C4dX0pKz.js → CardPromTournament-HcWvduRV-BAoQc2Cb.js} +28 -27
- package/dist/{CardSuccessfulPasses-CTjMzZAt-Bv_X927S.js → CardSuccessfulPasses-D9ZpWlLr-u3HOsral.js} +16 -15
- package/dist/CardTheMostProductive-CNNFBK3--DOPfJcMr.js +76 -0
- package/dist/{CircleWithDotsBig-DfppYko9-BYZNX7zX.js → CircleWithDotsBig-DOPQy89I-Cv_-f5J6.js} +1 -1
- package/dist/{Shield-BjoeEr7g-C7yufXoK.js → Shield-COMdrYaO-CAc0Epy_.js} +60 -55
- package/dist/gsc-relevant-data.css +1 -1
- package/dist/gsc-relevant-data.js +2 -4918
- package/dist/gsc-relevant-data.umd.cjs +6 -6
- package/dist/index-Cb9m7Z8V.js +4933 -0
- package/dist/misc-CMAhmOsp-CuP1bOXh.js +163 -0
- package/package.json +2 -2
- package/dist/CardGeneral-D2PYPb95-DycFnfDS.js +0 -116
- package/dist/CardIndividual1vs1-DPov_cGc-DtWs-qcq.js +0 -487
- package/dist/CardIndividualGoalParticipation-CRBepIcB-CBc1Wh03.js +0 -108
- package/dist/CardIndividualPerformance-CEPnHtE9-Da4MXSxk.js +0 -99
- package/dist/CardTheMostProductive-DzbDtzZn-Dewb8MoQ.js +0 -74
- package/dist/misc-BJvl3Yld-2p2XKW1m.js +0 -168
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { computed as l, openBlock as i, createElementBlock as d, normalizeClass as c, normalizeStyle as u, createCommentVNode as s, createElementVNode as n, renderSlot as p, pushScopeId as g, popScopeId as y } from "vue";
|
|
2
|
+
import { h as b } from "./index-Cb9m7Z8V.js";
|
|
3
|
+
const f = (e) => (g("data-v-2ba19cd1"), e = e(), y(), e), h = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "card-base__background-image"
|
|
6
|
+
}, m = ["src"], v = {
|
|
7
|
+
key: 1,
|
|
8
|
+
class: "card-base__background-overlay"
|
|
9
|
+
}, _ = { class: "card-base__slot" }, k = {
|
|
10
|
+
key: 2,
|
|
11
|
+
class: "card-base__play"
|
|
12
|
+
}, w = /* @__PURE__ */ f(() => /* @__PURE__ */ n("svg", {
|
|
13
|
+
width: "60",
|
|
14
|
+
height: "60",
|
|
15
|
+
viewBox: "0 0 60 60",
|
|
16
|
+
fill: "none",
|
|
17
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
18
|
+
}, [
|
|
19
|
+
/* @__PURE__ */ n("circle", {
|
|
20
|
+
cx: "30",
|
|
21
|
+
cy: "30",
|
|
22
|
+
r: "30",
|
|
23
|
+
fill: "#0E1E2A",
|
|
24
|
+
"fill-opacity": ".96"
|
|
25
|
+
}),
|
|
26
|
+
/* @__PURE__ */ n("circle", {
|
|
27
|
+
cx: "30",
|
|
28
|
+
cy: "30",
|
|
29
|
+
r: "26.6",
|
|
30
|
+
stroke: "#757575",
|
|
31
|
+
"stroke-width": ".8"
|
|
32
|
+
}),
|
|
33
|
+
/* @__PURE__ */ n("path", {
|
|
34
|
+
d: "M25.49 39.862a1.058 1.058 0 0 1-.359-.43 1.396 1.396 0 0 1-.131-.6V20.165a1.4 1.4 0 0 1 .132-.599c.087-.18.21-.329.358-.429a.777.777 0 0 1 .483-.137c.167.01.33.077.47.194l11.143 9.333c.127.107.232.25.304.42.072.17.11.358.11.55 0 .193-.038.382-.11.55-.072.17-.177.314-.304.42l-11.143 9.337a.808.808 0 0 1-.47.194.776.776 0 0 1-.482-.137z",
|
|
35
|
+
fill: "#CBEE6B"
|
|
36
|
+
})
|
|
37
|
+
], -1)), S = [
|
|
38
|
+
w
|
|
39
|
+
], C = {
|
|
40
|
+
__name: "CardBase",
|
|
41
|
+
props: {
|
|
42
|
+
height: {
|
|
43
|
+
type: String,
|
|
44
|
+
default: "445px"
|
|
45
|
+
},
|
|
46
|
+
width: {
|
|
47
|
+
type: String,
|
|
48
|
+
default: "319px"
|
|
49
|
+
},
|
|
50
|
+
backgroundOverlayColor: {
|
|
51
|
+
type: String,
|
|
52
|
+
default: "#000000"
|
|
53
|
+
},
|
|
54
|
+
backgroundOverlayOpacity: {
|
|
55
|
+
type: String,
|
|
56
|
+
default: "0.8"
|
|
57
|
+
},
|
|
58
|
+
backgroundImageSrc: {
|
|
59
|
+
type: String,
|
|
60
|
+
default: ""
|
|
61
|
+
},
|
|
62
|
+
overflow: {
|
|
63
|
+
type: String,
|
|
64
|
+
default: "visible"
|
|
65
|
+
},
|
|
66
|
+
borderRadius: {
|
|
67
|
+
type: String,
|
|
68
|
+
default: "15px"
|
|
69
|
+
},
|
|
70
|
+
isPlayButtonVisible: {
|
|
71
|
+
type: Boolean,
|
|
72
|
+
default: !0
|
|
73
|
+
},
|
|
74
|
+
goldCardType: {
|
|
75
|
+
type: Number,
|
|
76
|
+
default: 0
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
setup(e) {
|
|
80
|
+
const t = e, a = l(() => ({
|
|
81
|
+
"--height": t.height,
|
|
82
|
+
"--width": t.width,
|
|
83
|
+
"--background-overlay-color": t.backgroundOverlayColor,
|
|
84
|
+
"--overflow": t.overflow,
|
|
85
|
+
"--border-radius": t.borderRadius,
|
|
86
|
+
"--background-overlay-opacity": t.backgroundOverlayOpacity,
|
|
87
|
+
"--background-gold-size": `${t.width} ${t.height}`
|
|
88
|
+
})), o = l(() => {
|
|
89
|
+
const r = [];
|
|
90
|
+
return t.goldCardType && (t.goldCardType === 1 ? r.push("gold-card-1") : t.goldCardType === 2 && r.push("gold-card-2")), r;
|
|
91
|
+
});
|
|
92
|
+
return (r, x) => (i(), d("div", {
|
|
93
|
+
class: c(["card-base", o.value]),
|
|
94
|
+
style: u(a.value)
|
|
95
|
+
}, [
|
|
96
|
+
e.goldCardType ? s("", !0) : (i(), d("div", h, [
|
|
97
|
+
e.backgroundImageSrc ? (i(), d("img", {
|
|
98
|
+
key: 0,
|
|
99
|
+
src: e.backgroundImageSrc,
|
|
100
|
+
alt: ""
|
|
101
|
+
}, null, 8, m)) : s("", !0)
|
|
102
|
+
])),
|
|
103
|
+
e.goldCardType ? s("", !0) : (i(), d("div", v)),
|
|
104
|
+
n("div", _, [
|
|
105
|
+
p(r.$slots, "default", {}, void 0, !0)
|
|
106
|
+
]),
|
|
107
|
+
e.isPlayButtonVisible ? (i(), d("div", k, S)) : s("", !0)
|
|
108
|
+
], 6));
|
|
109
|
+
}
|
|
110
|
+
}, E = /* @__PURE__ */ b(C, [["__scopeId", "data-v-2ba19cd1"]]);
|
|
111
|
+
function I(e = "") {
|
|
112
|
+
const t = e.split("");
|
|
113
|
+
let a = 1;
|
|
114
|
+
return t.reduce((o, r) => (r === "*" ? (a % 2 === 0 ? o += "</span>" : o += '<span class="text-bold">', a++) : o += r, o), "");
|
|
115
|
+
}
|
|
116
|
+
function O({ data: e, descriptionType: t }) {
|
|
117
|
+
switch (t) {
|
|
118
|
+
case 1:
|
|
119
|
+
return e.finish_first_person_description;
|
|
120
|
+
case 2:
|
|
121
|
+
return e.first_person_description;
|
|
122
|
+
case 3:
|
|
123
|
+
return e.finish_third_person_description;
|
|
124
|
+
case 4:
|
|
125
|
+
return e.third_person_description;
|
|
126
|
+
case 5:
|
|
127
|
+
return e.finish_description;
|
|
128
|
+
case 6:
|
|
129
|
+
return e.description;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
function T(e) {
|
|
133
|
+
return `https://az755631.vo.msecnd.net/teams-80/${e}.png`;
|
|
134
|
+
}
|
|
135
|
+
function $(e) {
|
|
136
|
+
return `https://az755631.vo.msecnd.net/players-profile/${e}.png`;
|
|
137
|
+
}
|
|
138
|
+
function V(e) {
|
|
139
|
+
return `https://golstatsimages.blob.core.windows.net/images-library/${e}`;
|
|
140
|
+
}
|
|
141
|
+
function N(e) {
|
|
142
|
+
if (e.includes("*")) {
|
|
143
|
+
let t = "";
|
|
144
|
+
const a = e.match(/\*(.*?)\*/);
|
|
145
|
+
return a && (t = a[1]), {
|
|
146
|
+
title: t.trim(),
|
|
147
|
+
subtitle: e.replace(/\*(.*?)\*/, "").trim()
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
return {
|
|
151
|
+
title: e,
|
|
152
|
+
subtitle: ""
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
export {
|
|
156
|
+
V as $,
|
|
157
|
+
N as A,
|
|
158
|
+
T as E,
|
|
159
|
+
E as I,
|
|
160
|
+
$ as O,
|
|
161
|
+
I as P,
|
|
162
|
+
O as z
|
|
163
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@golstats/gsc-relevant-data",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"format": "prettier --write src/"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@golstats/gsc-data-cards": "^1.0.
|
|
24
|
+
"@golstats/gsc-data-cards": "^1.0.4",
|
|
25
25
|
"@golstats/gsc-season-select": "^1.0.8",
|
|
26
26
|
"@golstats/gsc-slider": "^1.0.5",
|
|
27
27
|
"@golstats/gsc-switch-component": "^1.0.14",
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { computed as u, openBlock as t, createElementBlock as r, normalizeStyle as y, createBlock as S, mergeProps as w, withCtx as I, renderSlot as x, createCommentVNode as d, createElementVNode as l, toDisplayString as g, Fragment as F, renderList as L, pushScopeId as T, popScopeId as A } from "vue";
|
|
2
|
-
import { h as C, E as m, I as E, T as B } from "./misc-BJvl3Yld-2p2XKW1m.js";
|
|
3
|
-
const v = (a) => (T("data-v-d5d56ba6"), a = a(), A(), a), H = {
|
|
4
|
-
key: 0,
|
|
5
|
-
class: "card-general__content__player-img"
|
|
6
|
-
}, M = ["src"], N = {
|
|
7
|
-
key: 1,
|
|
8
|
-
class: "card-general__content__team-img"
|
|
9
|
-
}, O = ["src"], V = /* @__PURE__ */ v(() => /* @__PURE__ */ l("div", { class: "card-general__content__body" }, null, -1)), $ = { class: "card-general__content__footer" }, j = { class: "card-general__content__footer__header" }, z = { class: "card-general__content__footer__header__team-logo" }, D = ["src"], P = { class: "card-general__content__footer__header__title" }, q = {
|
|
10
|
-
key: 0,
|
|
11
|
-
class: "card-general__content__footer__header__total"
|
|
12
|
-
}, G = { class: "card-general__content__footer__body" }, J = ["innerHTML"], K = {
|
|
13
|
-
key: 0,
|
|
14
|
-
class: "card-general__content__footer__body__sections"
|
|
15
|
-
}, Q = { class: "section__total" }, R = /* @__PURE__ */ v(() => /* @__PURE__ */ l("div", { class: "section__text" }, "PASES", -1)), U = {
|
|
16
|
-
__name: "CardGeneral",
|
|
17
|
-
props: {
|
|
18
|
-
height: {
|
|
19
|
-
type: String,
|
|
20
|
-
default: "500px"
|
|
21
|
-
},
|
|
22
|
-
width: {
|
|
23
|
-
type: String,
|
|
24
|
-
default: "319px"
|
|
25
|
-
},
|
|
26
|
-
data: {
|
|
27
|
-
type: Object,
|
|
28
|
-
default: () => null
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
setup(a) {
|
|
32
|
-
const e = a, p = u(() => ({
|
|
33
|
-
"--height": e.height,
|
|
34
|
-
"--width": e.width,
|
|
35
|
-
"--player-in-action-height": "410px",
|
|
36
|
-
"--footer-background-color": e.data.thumbnails.colors.background_color || "#000000",
|
|
37
|
-
"--text-color": e.data.thumbnails.colors.font_color || "#FFFFFF"
|
|
38
|
-
})), h = u(() => !e.data || !e.data.thumbnails ? null : {
|
|
39
|
-
backgroundOverlayColor: (e.data.thumbnails.colors.background_color || "#000000").trim(),
|
|
40
|
-
backgroundImageSrc: e.data.is_player ? m(e.data.thumbnails.images.background_player_in_action[0]) : m(e.data.thumbnails.images.background_team)
|
|
41
|
-
}), b = u(() => e.data ? E(e.data.description) : ""), n = u(() => {
|
|
42
|
-
if (!e.data) return null;
|
|
43
|
-
let _ = e.data.team_logo, c = e.data.sections;
|
|
44
|
-
_ && (_ = _.replace("-80", "-150")), c && (c = c.sort((o, s) => o[0] - s[0]));
|
|
45
|
-
let i = 0;
|
|
46
|
-
return c = c.reduce((o, [s, f], k) => (k % 4 === 0 && (o.push([]), i++), o[i - 1].push([s, f]), o), []).reverse().reduce((o, s) => (o.push(...s), o), []), {
|
|
47
|
-
playerInAction: e.data.thumbnails.images && e.data.thumbnails.images.player_in_action ? m(e.data.thumbnails.images.player_in_action[0]) : "",
|
|
48
|
-
teamLogoSrc: _ || "",
|
|
49
|
-
sections: c || []
|
|
50
|
-
};
|
|
51
|
-
});
|
|
52
|
-
return (_, c) => (t(), r("div", {
|
|
53
|
-
class: "card-general",
|
|
54
|
-
style: y(p.value)
|
|
55
|
-
}, [
|
|
56
|
-
h.value ? (t(), S(B, w({ key: 0 }, h.value, { width: a.width }), {
|
|
57
|
-
default: I(() => [
|
|
58
|
-
x(_.$slots, "default", {}, () => [
|
|
59
|
-
n.value ? (t(), r("div", {
|
|
60
|
-
key: 0,
|
|
61
|
-
style: y(p.value),
|
|
62
|
-
class: "card-general__content"
|
|
63
|
-
}, [
|
|
64
|
-
a.data.is_player ? (t(), r("div", H, [
|
|
65
|
-
n.value.playerInAction ? (t(), r("img", {
|
|
66
|
-
key: 0,
|
|
67
|
-
src: n.value.playerInAction,
|
|
68
|
-
alt: "player"
|
|
69
|
-
}, null, 8, M)) : d("", !0)
|
|
70
|
-
])) : (t(), r("div", N, [
|
|
71
|
-
n.value.teamLogoSrc ? (t(), r("img", {
|
|
72
|
-
key: 0,
|
|
73
|
-
src: n.value.teamLogoSrc,
|
|
74
|
-
alt: "team"
|
|
75
|
-
}, null, 8, O)) : d("", !0)
|
|
76
|
-
])),
|
|
77
|
-
V,
|
|
78
|
-
l("div", $, [
|
|
79
|
-
l("div", j, [
|
|
80
|
-
l("div", z, [
|
|
81
|
-
a.data.team_logo ? (t(), r("img", {
|
|
82
|
-
key: 0,
|
|
83
|
-
src: a.data.team_logo,
|
|
84
|
-
alt: ""
|
|
85
|
-
}, null, 8, D)) : d("", !0)
|
|
86
|
-
]),
|
|
87
|
-
l("div", P, g(a.data.title), 1),
|
|
88
|
-
a.data.footer && a.data.footer.show_total ? (t(), r("div", q, g(a.data.total), 1)) : d("", !0)
|
|
89
|
-
]),
|
|
90
|
-
l("div", G, [
|
|
91
|
-
l("div", {
|
|
92
|
-
class: "card-general__content__footer__body__description",
|
|
93
|
-
innerHTML: b.value
|
|
94
|
-
}, null, 8, J),
|
|
95
|
-
n.value.sections && n.value.sections.length ? (t(), r("div", K, [
|
|
96
|
-
(t(!0), r(F, null, L(n.value.sections, ([i, o]) => (t(), r("div", {
|
|
97
|
-
key: i,
|
|
98
|
-
class: "section"
|
|
99
|
-
}, [
|
|
100
|
-
l("div", Q, g(o), 1),
|
|
101
|
-
R
|
|
102
|
-
]))), 128))
|
|
103
|
-
])) : d("", !0)
|
|
104
|
-
])
|
|
105
|
-
])
|
|
106
|
-
], 4)) : d("", !0)
|
|
107
|
-
], !0)
|
|
108
|
-
]),
|
|
109
|
-
_: 3
|
|
110
|
-
}, 16, ["width"])) : d("", !0)
|
|
111
|
-
], 4));
|
|
112
|
-
}
|
|
113
|
-
}, X = /* @__PURE__ */ C(U, [["__scopeId", "data-v-d5d56ba6"]]);
|
|
114
|
-
export {
|
|
115
|
-
X as default
|
|
116
|
-
};
|