@golstats/gsc-landing 1.0.214 → 1.0.215

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 (32) hide show
  1. package/README.md +2 -2
  2. package/dist/{CardBase-Cdma--ld-BufA9Fxb.js → CardBase-ChDCLySs-BnJ37O3_.js} +11 -11
  3. package/dist/{CardBaseAllIndividual-D-OnB5nZ-BPn0LvNB.js → CardBaseAllIndividual-CX7X5hP3-DeBDJbUf.js} +1 -1
  4. package/dist/CardGeneral-BOFU3ewp-vla0R6ar.js +714 -0
  5. package/dist/{CardGeneralIndividual-D0egQpIm-CAQh25pC.js → CardGeneralIndividual-uQTtFW4U-BkHnaPPD.js} +169 -146
  6. package/dist/{CardGeneralTeams-C7jWZSZP-7UMUvMn-.js → CardGeneralTeams-BP3La-Ld-Xyq_L5uX.js} +4 -4
  7. package/dist/{CardIndividual-5844PHsB-ByyQBoNQ.js → CardIndividual-DMMRmSi2-BqN7gmFv.js} +30 -30
  8. package/dist/{CardIndividual1vs1-CQexwdAS-IO9xzI4J.js → CardIndividual1vs1-Bv8b5IIG-Ch9qSDIz.js} +7 -7
  9. package/dist/{CardIndividualAreas-C7_BsHLB-DxObq7Ml.js → CardIndividualAreas-CvTLzhDe-CxZqYbA3.js} +2 -2
  10. package/dist/{CardIndividualCenters-DV5tDLfV-C1ay0coc.js → CardIndividualCenters-CrYHyQxu-cIdiMvOc.js} +2 -2
  11. package/dist/{CardIndividualDistance-zl4VOolG-C3tuZVGO.js → CardIndividualDistance-CWDDIJ83-wq3ChNSO.js} +38 -36
  12. package/dist/{CardIndividualFouls-CvSJn7oh-HOx9vQ1u.js → CardIndividualFouls-BOBPG76o-Cr7zPQ-k.js} +2 -2
  13. package/dist/{CardIndividualGoalParticipation-CpyCN4pK-CMqtEPao.js → CardIndividualGoalParticipation-BDxpFsvg-Bxe8LNLj.js} +2 -2
  14. package/dist/{CardIndividualGoals-yml-5LMF-C_GyUhBk.js → CardIndividualGoals-DVDdbBfi-3pxFdVek.js} +2 -2
  15. package/dist/{CardIndividualGold-BN6tctB5-G6ym5byu.js → CardIndividualGold-CLwqSmhY-DQxNX96O.js} +3 -3
  16. package/dist/{CardIndividualNoGoalReceived-ICCs2ZM5-B1MQrZPF.js → CardIndividualNoGoalReceived-BdnMEYLP-BmH2Q3hB.js} +2 -2
  17. package/dist/{CardIndividualPerformance-B8vQAqkl-BYR02_RY.js → CardIndividualPerformance-9Cgxb8AH-CKHPoagm.js} +2 -2
  18. package/dist/{CardIndividualSaves-BwuZ8ftn-QqesnmR7.js → CardIndividualSaves-DxroAo6u-DjwSYz7p.js} +16 -16
  19. package/dist/{CardIndividualShotsOnGoal-BJME2mbD-BdBASKyS.js → CardIndividualShotsOnGoal-DJkETXaD-DC6DZtaf.js} +2 -2
  20. package/dist/{CardIndividualStatistics-By5s6JAO-Rv4-QyLp.js → CardIndividualStatistics-Bci82FbX-_u70bydD.js} +2 -2
  21. package/dist/CardPromTournament-DBsGq2Rt-BiIeMZAU.js +145 -0
  22. package/dist/{CardSuccessfulPasses-CnfMp77U-rRVe9D87.js → CardSuccessfulPasses-38zySsbp-CjINypSW.js} +4 -4
  23. package/dist/{CardTheMostProductive-BXTUS6yD-DyZgvFkv.js → CardTheMostProductive-B1UOywJ1-CDybX3LK.js} +3 -3
  24. package/dist/PlayerProfileCircle-Dfaw_14p-WaOYxU8Q.js +41 -0
  25. package/dist/{Shield-CqzYJKHt-OiFc4OPF.js → Shield-T4ZGXEnI-Csqj5bz2.js} +1 -1
  26. package/dist/gsc-landing.js +1 -1
  27. package/dist/gsc-landing.umd.cjs +49 -49
  28. package/dist/{index-CidNks_N.js → index-Clf4kqRY.js} +94 -94
  29. package/dist/style.css +1 -1
  30. package/package.json +53 -53
  31. package/dist/CardGeneral-Bw1wA3nD-DCftAsKf.js +0 -690
  32. package/dist/CardPromTournament-gihiLtUr-DUepGBni.js +0 -145
@@ -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-ChDCLySs-BnJ37O3_.js";
3
+ import { N as L } from "./Shield-T4ZGXEnI-Csqj5bz2.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
+ "64859abb": r.data.thumbnails.colors.background_color,
37
+ "54ded51f": ((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, b, f, 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 = (f = (b = (n = e.data) == null ? void 0 : n.thumbnails) == null ? void 0 : b.images) == null ? void 0 : f.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-89889da1"]]);
143
+ export {
144
+ te as default
145
+ };