@golstats/gsc-landing 1.0.191 → 1.0.193

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 (30) hide show
  1. package/README.md +2 -2
  2. package/dist/CardBaseAllIndividual-DW2NMKgR-HgCTNwsl.js +325 -0
  3. package/dist/CardGeneral-Ck1sE8Nk-nYRMD1Jp.js +116 -0
  4. package/dist/CardGeneralIndividual-KAcHT3zU-v50O2Zlq.js +283 -0
  5. package/dist/CardGeneralTeams-CwKmM2ip-1ajycpU3.js +654 -0
  6. package/dist/CardIndividual-OuxjYR6m-BJwKI5HZ.js +517 -0
  7. package/dist/CardIndividual1vs1-C6nQbFeh-DfQyFZf0.js +487 -0
  8. package/dist/CardIndividualAreas-DGRNgB7W-BXnQ-9tF.js +503 -0
  9. package/dist/CardIndividualCenters-0K7CYu6z-C1If3cnK.js +543 -0
  10. package/dist/CardIndividualDistance-DPP7-JWN-CiCspi8H.js +95 -0
  11. package/dist/CardIndividualFouls-CbvYRQjI-CVZKAmd3.js +668 -0
  12. package/dist/CardIndividualGoalParticipation-DBwh-Kcv-DIgeIQTB.js +108 -0
  13. package/dist/CardIndividualGoals-no1WpbpS-DaNagxNS.js +733 -0
  14. package/dist/CardIndividualGold-CkAyS4hx-DXmFVXpp.js +112 -0
  15. package/dist/CardIndividualNoGoalReceived-Bg-pQ5GI-7vmSeaL6.js +194 -0
  16. package/dist/CardIndividualPerformance-BZJ8PBWe-1n4ucmaO.js +99 -0
  17. package/dist/CardIndividualSaves-DboDAV9z-DW3t5zbf.js +241 -0
  18. package/dist/CardIndividualShotsOnGoal-Czqe0JAs-DQ1fY0Cd.js +169 -0
  19. package/dist/CardIndividualStatistics-Chw1TBSy-EkmKWR9X.js +219 -0
  20. package/dist/CardPromTournament-BbjTP9KD-CWu7JvYP.js +113 -0
  21. package/dist/CardSuccessfulPasses-UsTNXLy8-Creea-3D.js +426 -0
  22. package/dist/CardTheMostProductive-BGExgYBM-twyrFU3-.js +74 -0
  23. package/dist/CircleWithDotsBig-EzIr2wuY-TMr2eIat.js +91 -0
  24. package/dist/Shield-Dnuj3Yd--DAk7-Zio.js +150 -0
  25. package/dist/TimeSvg-Cxp_p6OH-cZfI6hDf.js +95 -0
  26. package/dist/gsc-landing.js +30847 -20928
  27. package/dist/gsc-landing.umd.cjs +65 -45
  28. package/dist/misc-CeQ5H5LP-DeaiNpCH.js +168 -0
  29. package/dist/style.css +1 -1
  30. package/package.json +53 -51
package/README.md CHANGED
@@ -1,2 +1,2 @@
1
- # landing-component
2
- Componente de la pagina principal de Golstats 3.0
1
+ # landing-component
2
+ Componente de la pagina principal de Golstats 3.0
@@ -0,0 +1,325 @@
1
+ import { computed as i, openBlock as o, createElementBlock as a, normalizeStyle as f, createBlock as F, mergeProps as k, withCtx as S, renderSlot as v, createElementVNode as r, createCommentVNode as l, normalizeClass as B, toDisplayString as s, Fragment as x, createVNode as D, pushScopeId as H, popScopeId as P } from "vue";
2
+ import { h as b, T as w } from "./misc-CeQ5H5LP-DeaiNpCH.js";
3
+ const T = (e) => (H("data-v-8506632e"), e = e(), P(), e), L = { class: "circle__total" }, $ = { class: "total" }, N = { class: "suffix" }, z = ["width", "height", "viewBox"], I = /* @__PURE__ */ T(() => /* @__PURE__ */ r("path", {
4
+ d: "M34.5 2C38.7023 2 42.8635 2.8277 46.7459 4.43586C50.6283 6.04401 54.1559 8.40111 57.1274 11.3726C60.0989 14.3441 62.456 17.8717 64.0641 21.7541C65.6723 25.6366 66.5 29.7977 66.5 34C66.5 38.2023 65.6723 42.3635 64.0641 46.2459C62.456 50.1283 60.0989 53.6559 57.1274 56.6274C54.1559 59.5989 50.6283 61.956 46.7459 63.5641C42.8634 65.1723 38.7023 66 34.5 66C30.2977 66 26.1365 65.1723 22.2541 63.5641C18.3717 61.956 14.844 59.5989 11.8726 56.6274C8.9011 53.6559 6.544 50.1283 4.93585 46.2459C3.3277 42.3634 2.5 38.2023 2.5 34C2.5 29.7977 3.32771 25.6365 4.93586 21.7541C6.54401 17.8717 8.90112 14.344 11.8726 11.3726C14.8441 8.4011 18.3717 6.044 22.2541 4.43585C26.1366 2.8277 30.2977 2 34.5 2L34.5 2Z",
5
+ stroke: "url(#paint0_linear_2182_6770)",
6
+ "stroke-width": "3.14",
7
+ "stroke-linecap": "round"
8
+ }, null, -1)), U = ["stroke"], M = {
9
+ id: "paint0_linear_2182_6770",
10
+ x1: "34.5",
11
+ y1: "2",
12
+ x2: "34.5",
13
+ y2: "66",
14
+ gradientUnits: "userSpaceOnUse"
15
+ }, O = ["stop-color"], V = ["stop-color"], A = {
16
+ __name: "CircleWithDots",
17
+ props: {
18
+ height: {
19
+ type: Number,
20
+ default: 68
21
+ },
22
+ width: {
23
+ type: Number,
24
+ default: 69
25
+ },
26
+ color: {
27
+ type: String,
28
+ default: "#4E8AF2"
29
+ },
30
+ textColor: {
31
+ type: String,
32
+ default: "#fff"
33
+ },
34
+ value: {
35
+ type: [Number, String],
36
+ default: 0
37
+ },
38
+ suffix: {
39
+ type: String,
40
+ default: "%"
41
+ },
42
+ valueFontSize: {
43
+ type: Number,
44
+ default: 21.3
45
+ },
46
+ suffixFontSize: {
47
+ type: Number,
48
+ default: 10.1
49
+ }
50
+ },
51
+ setup(e) {
52
+ const t = e, u = i(() => `0 0 ${t.width} ${t.height}`), n = i(() => ({
53
+ "--width": `${t.width}px`,
54
+ "--height": `${t.height}px`,
55
+ "--value-font-size": `${t.valueFontSize}px`,
56
+ "--suffix-font-size": `${t.suffixFontSize}px`,
57
+ "--color": t.textColor
58
+ }));
59
+ return (p, y) => (o(), a("div", {
60
+ class: "circle",
61
+ style: f(n.value)
62
+ }, [
63
+ r("div", L, [
64
+ r("span", $, s(e.value), 1),
65
+ r("span", N, s(e.suffix), 1)
66
+ ]),
67
+ (o(), a("svg", {
68
+ width: n.value["--width"],
69
+ height: n.value["--height"],
70
+ viewBox: u.value,
71
+ preserveAspectRatio: "xMidYMid meet",
72
+ fill: "none",
73
+ xmlns: "http://www.w3.org/2000/svg"
74
+ }, [
75
+ I,
76
+ r("path", {
77
+ d: "M34.4996 6.63965C38.0926 6.63965 41.6504 7.34734 44.9699 8.72231C48.2893 10.0973 51.3055 12.1126 53.8461 14.6532C56.3867 17.1938 58.402 20.21 59.777 23.5294C61.152 26.8489 61.8597 30.4067 61.8596 33.9997C61.8596 37.5926 61.152 41.1504 59.777 44.4699C58.402 47.7893 56.3867 50.8055 53.8461 53.3461C51.3055 55.8867 48.2893 57.902 44.9699 59.277C41.6504 60.652 38.0926 61.3597 34.4996 61.3596C30.9067 61.3596 27.3489 60.652 24.0294 59.277C20.71 57.902 17.6938 55.8867 15.1532 53.3461C12.6126 50.8055 10.5973 47.7893 9.2223 44.4699C7.84733 41.1504 7.13965 37.5926 7.13965 33.9996C7.13965 30.4067 7.84734 26.8489 9.22231 23.5294C10.5973 20.2099 12.6126 17.1938 15.1532 14.6532C17.6938 12.1126 20.71 10.0973 24.0294 8.7223C27.3489 7.34733 30.9067 6.63965 34.4997 6.63965L34.4996 6.63965Z",
78
+ stroke: e.color,
79
+ "stroke-width": "0.380952",
80
+ "stroke-linecap": "round",
81
+ "stroke-dasharray": "0 0.19 2.61 0 0.19 2.61"
82
+ }, null, 8, U),
83
+ r("defs", null, [
84
+ r("linearGradient", M, [
85
+ r("stop", { "stop-color": e.color }, null, 8, O),
86
+ r("stop", {
87
+ offset: "1",
88
+ "stop-color": e.color
89
+ }, null, 8, V)
90
+ ])
91
+ ])
92
+ ], 8, z))
93
+ ], 4));
94
+ }
95
+ }, m = /* @__PURE__ */ b(A, [["__scopeId", "data-v-8506632e"]]), E = {
96
+ key: 0,
97
+ class: "card-base-individual__content__player-img"
98
+ }, R = ["src"], j = {
99
+ key: 1,
100
+ class: "card-base-individual__content__team-logo"
101
+ }, Z = ["src"], G = {
102
+ key: 0,
103
+ class: "card-base-individual__content__footer__header"
104
+ }, W = {
105
+ key: 0,
106
+ class: "card-base-individual__content__footer__header__title-and-sub ts"
107
+ }, Y = {
108
+ key: 0,
109
+ class: "card-base-individual__content__footer__header__title"
110
+ }, q = {
111
+ key: 1,
112
+ class: "card-base-individual__content__footer__header__subtitle"
113
+ }, J = {
114
+ key: 0,
115
+ class: "th"
116
+ }, K = {
117
+ key: 1,
118
+ class: "total th"
119
+ }, Q = {
120
+ key: 1,
121
+ class: "card-base-individual__content__footer__body"
122
+ }, X = ["innerHTML"], tt = {
123
+ key: 0,
124
+ class: "total-b"
125
+ }, et = {
126
+ key: 1,
127
+ class: "total total-b"
128
+ }, ot = { class: "card-base-individual__content__body" }, at = {
129
+ __name: "CardBaseAllIndividual",
130
+ props: {
131
+ height: {
132
+ type: String,
133
+ default: "445px"
134
+ },
135
+ width: {
136
+ type: String,
137
+ default: "319px"
138
+ },
139
+ footerHeaderData: {
140
+ type: Object,
141
+ /*
142
+ * {
143
+ * title: string,
144
+ * subtitle: string,
145
+ * total: [string, number],
146
+ * isTotalLeft: boolean,
147
+ * isTotalPercentage: boolean,
148
+ * textColor: string,
149
+ * }
150
+ * */
151
+ default: () => null
152
+ },
153
+ footerBodyData: {
154
+ type: Object,
155
+ /*
156
+ * {
157
+ * description: string,
158
+ * total: string,
159
+ * isTotalPercentage: boolean,
160
+ * isTotalLeft: boolean,
161
+ * totalTextColor: string,
162
+ * totalCircleColor: string,
163
+ * textColor: string,
164
+ * }
165
+ * */
166
+ default: () => null
167
+ },
168
+ footerHeight: {
169
+ type: String,
170
+ default: "137px"
171
+ },
172
+ footerPadding: {
173
+ type: String,
174
+ default: "24px 24px 40px 24px"
175
+ },
176
+ playerPhotoUrl: {
177
+ type: String,
178
+ default: ""
179
+ },
180
+ playerPhotoPositionTop: {
181
+ type: String,
182
+ default: "34px"
183
+ },
184
+ playerPhotoPositionLeft: {
185
+ type: String,
186
+ default: "unset"
187
+ },
188
+ playerPhotoPositionRight: {
189
+ type: String,
190
+ default: "unset"
191
+ },
192
+ playerPhotoHeight: {
193
+ type: String,
194
+ default: "54px"
195
+ },
196
+ teamLogoUrl: {
197
+ type: String,
198
+ default: ""
199
+ },
200
+ backgroundImageSrc: {
201
+ type: String,
202
+ default: ""
203
+ },
204
+ cardColor: {
205
+ type: String,
206
+ default: "#000000"
207
+ },
208
+ textColor: {
209
+ type: String,
210
+ default: "#FFFFFF"
211
+ },
212
+ goldCardType: {
213
+ type: Number,
214
+ default: 0
215
+ }
216
+ },
217
+ setup(e) {
218
+ const t = e, u = i(() => {
219
+ var d, c, h, _;
220
+ const g = t.footerBodyData && t.footerBodyData.description && t.footerBodyData.total, C = t.footerHeaderData && t.footerHeaderData.title && t.footerHeaderData.total;
221
+ return {
222
+ "--height": t.height,
223
+ "--width": t.width,
224
+ "--footer-background-color": t.cardColor || "#000000",
225
+ "--text-color": t.textColor || "#FFFFFF",
226
+ "--footer-body-text-color": ((d = t.footerBodyData) == null ? void 0 : d.textColor) || "#FFFFFF",
227
+ "--footer-header-text-color": ((c = t.footerHeaderData) == null ? void 0 : c.textColor) || "#FFFFFF",
228
+ "--footer-height": t.footerHeight,
229
+ "--footer-width": t.goldCardType ? "263px" : "auto",
230
+ "--footer-padding": t.footerPadding,
231
+ "--total-color": ((h = t.footerBodyData) == null ? void 0 : h.totalTextColor) || ((_ = t.footerHeaderData) == null ? void 0 : _.totalTextColor) || "#FFFFFF",
232
+ "--description-text-align": g || t.footerHeaderData ? "left" : "center",
233
+ "--footer-body-template-columns": g ? "1fr min-content" : "1fr",
234
+ "--footer-header-template-columns": C ? t.footerHeaderData.isTotalLeft ? "min-content 1fr" : "1fr min-content" : "1fr",
235
+ "--footer-header-grid-areas": C ? t.footerHeaderData.isTotalLeft ? '"th ts"' : '"ts th"' : '"ts"',
236
+ "--player-photo-position-top": t.playerPhotoPositionTop,
237
+ "--player-photo-position-left": t.playerPhotoPositionLeft,
238
+ "--player-photo-position-right": t.playerPhotoPositionRight,
239
+ "--player-photo-height": t.playerPhotoHeight
240
+ };
241
+ }), n = i(() => ({
242
+ backgroundOverlayColor: t.cardColor,
243
+ backgroundImageSrc: t.backgroundImageSrc,
244
+ isPlayButtonVisible: !0,
245
+ goldCardType: t.goldCardType
246
+ })), p = i(() => ({}));
247
+ i(() => t.footerBodyData.total ? t.footerBodyData.isTotalPercentage ? `${t.footerBodyData.total}%` : t.footerBodyData.total : "");
248
+ const y = i(() => {
249
+ const d = [];
250
+ return t.goldCardType && (t.goldCardType === 1 ? d.push("gold-card-1") : t.goldCardType === 2 && d.push("gold-card-2")), d;
251
+ });
252
+ return (d, c) => (o(), a("div", {
253
+ class: "card-base-individual",
254
+ style: f(u.value)
255
+ }, [
256
+ n.value ? (o(), F(w, k({ key: 0 }, n.value, { width: e.width }), {
257
+ default: S(() => [
258
+ v(d.$slots, "default", {}, () => [
259
+ p.value ? (o(), a("div", {
260
+ key: 0,
261
+ style: f(u.value),
262
+ class: "card-base-individual__content"
263
+ }, [
264
+ e.playerPhotoUrl ? (o(), a("div", E, [
265
+ r("div", null, [
266
+ r("img", {
267
+ src: e.playerPhotoUrl,
268
+ alt: "player"
269
+ }, null, 8, R)
270
+ ])
271
+ ])) : l("", !0),
272
+ e.teamLogoUrl ? (o(), a("div", j, [
273
+ r("img", {
274
+ src: e.teamLogoUrl,
275
+ alt: "team"
276
+ }, null, 8, Z)
277
+ ])) : l("", !0),
278
+ r("div", {
279
+ class: B(["card-base-individual__content__footer", y.value])
280
+ }, [
281
+ e.footerHeaderData ? (o(), a("div", G, [
282
+ e.footerHeaderData.title ? (o(), a("div", W, [
283
+ e.footerHeaderData.title ? (o(), a("div", Y, s(e.footerHeaderData.title), 1)) : l("", !0),
284
+ e.footerHeaderData.title ? (o(), a("div", q, s(e.footerHeaderData.subtitle), 1)) : l("", !0)
285
+ ])) : l("", !0),
286
+ e.footerHeaderData.total ? (o(), a(x, { key: 1 }, [
287
+ e.footerHeaderData.isTotalPercentage ? (o(), a("div", J, [
288
+ D(m, {
289
+ value: e.footerHeaderData.total,
290
+ "text-color": e.footerBodyData.totalTextColor,
291
+ color: e.footerBodyData.totalCircleColor
292
+ }, null, 8, ["value", "text-color", "color"])
293
+ ])) : (o(), a("div", K, s(e.footerHeaderData.total), 1))
294
+ ], 64)) : l("", !0)
295
+ ])) : l("", !0),
296
+ e.footerBodyData ? (o(), a("div", Q, [
297
+ r("div", {
298
+ class: "card-base-individual__content__footer__body__description",
299
+ innerHTML: e.footerBodyData.description
300
+ }, null, 8, X),
301
+ e.footerBodyData.total ? (o(), a(x, { key: 0 }, [
302
+ e.footerBodyData.isTotalPercentage ? (o(), a("div", tt, [
303
+ D(m, {
304
+ value: e.footerBodyData.total,
305
+ "text-color": e.footerBodyData.totalTextColor,
306
+ color: e.footerBodyData.totalCircleColor
307
+ }, null, 8, ["value", "text-color", "color"])
308
+ ])) : (o(), a("div", et, s(e.footerBodyData.total), 1))
309
+ ], 64)) : l("", !0)
310
+ ])) : l("", !0)
311
+ ], 2),
312
+ r("div", ot, [
313
+ v(d.$slots, "body", {}, void 0, !0)
314
+ ])
315
+ ], 4)) : l("", !0)
316
+ ], !0)
317
+ ]),
318
+ _: 3
319
+ }, 16, ["width"])) : l("", !0)
320
+ ], 4));
321
+ }
322
+ }, dt = /* @__PURE__ */ b(at, [["__scopeId", "data-v-f78ea34f"]]);
323
+ export {
324
+ dt as d
325
+ };
@@ -0,0 +1,116 @@
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-CeQ5H5LP-DeaiNpCH.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
+ };