@golstats/gsc-relevant-data 1.0.24 → 1.0.26

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.
Files changed (38) hide show
  1. package/README.md +2 -2
  2. package/dist/CardBase-UGUm5LIO-Bu-WCWmh.js +181 -0
  3. package/dist/{CardBaseAllIndividual-MZU9YVGl-Ccdyzbia.js → CardBaseAllIndividual-DhP1rAtE-3OsmwH3m.js} +22 -16
  4. package/dist/CardGeneral-BAXvz3FB-s6i9znzb.js +714 -0
  5. package/dist/{CardGeneralIndividual-Cr4vkSx7-C9xW-93k.js → CardGeneralIndividual-NPTnNZWV-eB61nP2F.js} +122 -95
  6. package/dist/{CardGeneralTeams-Dbs9m7rY-CPCN5iDs.js → CardGeneralTeams-x8ACH3cM-Dx-c_2vg.js} +64 -60
  7. package/dist/{CardIndividual-BWKDE_dT-cZPllZOH.js → CardIndividual-CLC_hCxp-M6QT2umS.js} +68 -63
  8. package/dist/CardIndividual1vs1-DlXYcpqn-C9hYWxqa.js +119 -0
  9. package/dist/{CardIndividualAreas-B0ER1yDk-C3AlZTDb.js → CardIndividualAreas-DwGZNBiK-B5twxsqV.js} +32 -26
  10. package/dist/{CardIndividualCenters-Ds8JCDfK-CmjMn0ss.js → CardIndividualCenters-Dy9Y7EuU-CGcnKDIJ.js} +91 -85
  11. package/dist/{CardIndividualDistance-DybnqaN1-NSicRzHl.js → CardIndividualDistance-CZO9z3_W-DitMBi_w.js} +42 -34
  12. package/dist/{CardIndividualFouls-BSZw6Irw-yjfxAhwv.js → CardIndividualFouls-CQQKqTt0-Ctl63Cnv.js} +47 -41
  13. package/dist/{CardIndividualGoalParticipation-D0jx0mKO-B4CXxUDu.js → CardIndividualGoalParticipation-zk-n5xHy-BbM0v4R8.js} +38 -33
  14. package/dist/{CardIndividualGoals-k1HYTdnr-C9bj-1GK.js → CardIndividualGoals-D8Q-nDDh-BCpvjxIp.js} +397 -247
  15. package/dist/{CardIndividualGold-BoE9YjMT-CUSj67G4.js → CardIndividualGold-C2_0uQav-B3BOejd6.js} +45 -39
  16. package/dist/{CardIndividualNoGoalReceived-T1szlu3u-DQODbu5L.js → CardIndividualNoGoalReceived-d4YI1ubq-DetMFo_a.js} +72 -64
  17. package/dist/CardIndividualPerformance-8cTQkdKa-CpPy72XR.js +113 -0
  18. package/dist/{CardIndividualSaves-rWMesrlG-BTh7BI_B.js → CardIndividualSaves-D3klW0a0-C_6hBq8X.js} +47 -43
  19. package/dist/{CardIndividualShotsOnGoal-DCl0FEKe-D17cDF13.js → CardIndividualShotsOnGoal-CfSvMHck-BKXUSCTg.js} +57 -51
  20. package/dist/{CardIndividualStatistics-D5JBvozg-DOwkeFii.js → CardIndividualStatistics-dcv2daDu-271LyA8G.js} +36 -30
  21. package/dist/CardPromTournament-Bt_4pp95-C_RYLTRi.js +145 -0
  22. package/dist/{CardSuccessfulPasses-BdWMHjtx-Bd8oiIrM.js → CardSuccessfulPasses-DKUaTTnU-CVQUgEG3.js} +32 -26
  23. package/dist/CardTheMostProductive-CjEvn9nI-C8Ix4rse.js +87 -0
  24. package/dist/PlayerProfileCircle-DkJ-ww6U-x-_45FA-.js +41 -0
  25. package/dist/{Shield-DPZx9qP3-XUDWlDy-.js → Shield-SDusqLx5-B-AmrceB.js} +3 -3
  26. package/dist/css/fonts.css +127 -127
  27. package/dist/gsc-relevant-data.css +1 -1
  28. package/dist/gsc-relevant-data.js +1 -1
  29. package/dist/gsc-relevant-data.umd.cjs +6 -6
  30. package/dist/{index-RB58BB1V.js → index-bzUYfkcp.js} +868 -929
  31. package/package.json +42 -42
  32. package/dist/CardBase-D3YCZX4b-H7J2wucJ.js +0 -127
  33. package/dist/CardGeneral-C9IYdx36-DubrPvUf.js +0 -686
  34. package/dist/CardIndividual1vs1-fcFN4SBW-DWBgSh5A.js +0 -113
  35. package/dist/CardIndividualPerformance-BZmpXMyI-CNK3pZOF.js +0 -108
  36. package/dist/CardPromTournament-DaUtBS2s-CtjgZjKi.js +0 -141
  37. package/dist/CardTheMostProductive-DTnPP64--nwISKj2O.js +0 -81
  38. package/dist/CircleWithDotsBig-DD6iMX6w-Cj0D4_bB.js +0 -151
@@ -0,0 +1,145 @@
1
+ import { useCssVars as V, computed as d, ref as B, openBlock as u, createElementBlock as m, normalizeStyle as i, createBlock as A, mergeProps as R, withCtx as S, createElementVNode as a, toDisplayString as c, createVNode as D, unref as T, Fragment as M, renderList as N, normalizeClass as $, createCommentVNode as E } from "vue";
2
+ import { m as F, z as p, $ as z, A as H } from "./CardBase-UGUm5LIO-Bu-WCWmh.js";
3
+ import { N as L } from "./Shield-SDusqLx5-B-AmrceB.js";
4
+ const W = { class: "card-content" }, j = { class: "content-wrapper" }, q = { class: "main-content" }, G = { class: "title-separator" }, J = { class: "footer-text" }, K = ["innerHTML"], Q = { class: "seasons-sidebar" }, U = { class: "seasons-list" }, X = "1px 54px", Y = {
5
+ __name: "CardPromTournament",
6
+ props: {
7
+ height: {
8
+ type: String,
9
+ default: "568px"
10
+ },
11
+ width: {
12
+ type: String,
13
+ default: "319px"
14
+ },
15
+ showVideos: {
16
+ type: Boolean,
17
+ default: !0
18
+ },
19
+ idAux: {
20
+ type: String,
21
+ default: ""
22
+ },
23
+ data: {
24
+ type: Object,
25
+ default: () => null
26
+ },
27
+ descriptionType: {
28
+ type: Number,
29
+ default: 0
30
+ }
31
+ },
32
+ setup(r) {
33
+ V((l) => {
34
+ var t;
35
+ return {
36
+ d9678364: r.data.thumbnails.colors.background_color,
37
+ "04caf132": ((t = e.data) == null ? void 0 : t.thumbnails.colors.font_color_stats) || "#4CAF50"
38
+ };
39
+ });
40
+ const e = r, O = d(() => ({
41
+ "--height": e.height,
42
+ "--width": e.width,
43
+ "--footer-background-color": e.data.thumbnails.colors.background_color || "#000000"
44
+ })), P = B({
45
+ width: "50px",
46
+ height: "50px",
47
+ bottom: "34px",
48
+ right: "-8px",
49
+ innerImageWidth: "39px",
50
+ innerImageHeight: "39px"
51
+ }), h = d(() => {
52
+ var l, t, o, n;
53
+ return !e.data || !e.data.thumbnails ? null : {
54
+ backgroundOverlayColor: e.data.thumbnails.colors.background_color || "#000000",
55
+ backgroundImageSrc: (n = (o = (t = (l = e.data) == null ? void 0 : l.thumbnails) == null ? void 0 : t.images) == null ? void 0 : o.background_player_in_action) != null && n[0] ? p(e.data.thumbnails.images.background_player_in_action[0]) : p(e.data.thumbnails.images.background_team),
56
+ isPlayButtonVisible: e.showVideos
57
+ };
58
+ }), g = d(() => {
59
+ var l, t, o;
60
+ if (!((l = e.data) != null && l.title)) return { mainTitle: "", sidebarTitle: "PROMEDIO POR PARTIDO" };
61
+ const n = e.data.title.split("*").filter(Boolean);
62
+ return {
63
+ mainTitle: ((t = n[0]) == null ? void 0 : t.trim()) || "",
64
+ sidebarTitle: ((o = n[1]) == null ? void 0 : o.trim()) || "PROMEDIO POR PARTIDO"
65
+ };
66
+ }), C = d(() => {
67
+ var l;
68
+ return (l = e.data) != null && l.averages ? Math.max(...e.data.averages.map((t) => parseFloat(t.average))) : 0;
69
+ });
70
+ return (l, t) => (u(), m("div", {
71
+ class: "card-general",
72
+ style: i(O.value)
73
+ }, [
74
+ h.value ? (u(), A(z, R({ key: 0 }, h.value, {
75
+ width: r.width,
76
+ "show-videos": r.showVideos,
77
+ "id-aux": r.idAux
78
+ }), {
79
+ default: S(() => {
80
+ var o, n, f, b, v, _, y, w;
81
+ return [
82
+ a("div", W, [
83
+ a("div", j, [
84
+ a("div", q, [
85
+ a("h1", {
86
+ class: "main-title",
87
+ style: i({ color: ((o = e.data) == null ? void 0 : o.thumbnails.colors.font_color_header) || "white" })
88
+ }, c(g.value.mainTitle), 5),
89
+ a("div", G, [
90
+ D(L, {
91
+ "team-logo-src": "https://golstatsimages.blob.core.windows.net/teams-80/" + e.data.team_id + ".png",
92
+ width: 105,
93
+ color: e.data.thumbnails.colors.graphic_color,
94
+ "inner-image-src": (v = (b = (f = (n = e.data) == null ? void 0 : n.thumbnails) == null ? void 0 : f.images) == null ? void 0 : b.background_player_in_action) != null && v[0] ? T(p)(e.data.thumbnails.images.player_in_action[0]) : "https://golstatsimages.blob.core.windows.net/players-profile/" + e.data.player_id + ".png",
95
+ "team-logo-circle-props": P.value,
96
+ "inner-image-translate": X
97
+ }, null, 8, ["team-logo-src", "color", "inner-image-src", "team-logo-circle-props"])
98
+ ]),
99
+ a("div", J, [
100
+ a("p", {
101
+ innerHTML: T(H)({ data: e.data, descriptionType: e.descriptionType }).replace(/\*([^*]+)\*/g, "<span style='font-family: Poppins-Bold; font-weight: 700;'>$1</span>"),
102
+ class: "card-description",
103
+ style: i({ color: ((_ = e.data) == null ? void 0 : _.thumbnails.colors.font_color_description) || "white" })
104
+ }, null, 12, K)
105
+ ])
106
+ ]),
107
+ a("div", Q, [
108
+ a("div", {
109
+ class: "sidebar-header",
110
+ style: i({ color: ((y = e.data) == null ? void 0 : y.thumbnails.colors.font_color_description) || "white" })
111
+ }, c(g.value.sidebarTitle), 5),
112
+ a("div", U, [
113
+ (u(!0), m(M, null, N((w = e.data) == null ? void 0 : w.averages, (s, I) => {
114
+ var x, k;
115
+ return u(), m("div", {
116
+ key: I,
117
+ class: $(["season-row", {
118
+ highlighted: s.highlighted,
119
+ "max-value": parseFloat(s.average) === C.value
120
+ }])
121
+ }, [
122
+ a("div", {
123
+ class: "season-value-box",
124
+ style: i({ color: ((x = e.data) == null ? void 0 : x.thumbnails.colors.font_color_stats) || "white" })
125
+ }, c(s.average), 5),
126
+ a("div", {
127
+ class: "season-label",
128
+ style: i({ color: ((k = e.data) == null ? void 0 : k.thumbnails.colors.font_color_stats) || "white" })
129
+ }, c(s.season), 5)
130
+ ], 2);
131
+ }), 128))
132
+ ])
133
+ ])
134
+ ])
135
+ ])
136
+ ];
137
+ }),
138
+ _: 1
139
+ }, 16, ["width", "show-videos", "id-aux"])) : E("", !0)
140
+ ], 4));
141
+ }
142
+ }, te = /* @__PURE__ */ F(Y, [["__scopeId", "data-v-8c746128"]]);
143
+ export {
144
+ te as default
145
+ };