@golstats/gsc-landing 1.0.213 → 1.0.214

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 (34) hide show
  1. package/README.md +2 -2
  2. package/dist/CardBase-Cdma--ld-BufA9Fxb.js +181 -0
  3. package/dist/{CardBaseAllIndividual-MZU9YVGl-CP107tbU.js → CardBaseAllIndividual-D-OnB5nZ-BPn0LvNB.js} +22 -16
  4. package/dist/{CardGeneral-C9IYdx36-DpuRuCM2.js → CardGeneral-Bw1wA3nD-DCftAsKf.js} +62 -58
  5. package/dist/{CardGeneralIndividual-Cr4vkSx7-CJJdrLMj.js → CardGeneralIndividual-D0egQpIm-CAQh25pC.js} +116 -112
  6. package/dist/{CardGeneralTeams-Dbs9m7rY-DkjTHx_b.js → CardGeneralTeams-C7jWZSZP-7UMUvMn-.js} +64 -60
  7. package/dist/{CardIndividual-BWKDE_dT-DBY7KxMm.js → CardIndividual-5844PHsB-ByyQBoNQ.js} +75 -70
  8. package/dist/CardIndividual1vs1-CQexwdAS-IO9xzI4J.js +119 -0
  9. package/dist/{CardIndividualAreas-B0ER1yDk-BXA3kkP-.js → CardIndividualAreas-C7_BsHLB-DxObq7Ml.js} +32 -26
  10. package/dist/{CardIndividualCenters-Ds8JCDfK-BDqdw3CH.js → CardIndividualCenters-DV5tDLfV-C1ay0coc.js} +91 -85
  11. package/dist/{CardIndividualDistance-DybnqaN1-pWNr0r-3.js → CardIndividualDistance-zl4VOolG-C3tuZVGO.js} +36 -30
  12. package/dist/{CardIndividualFouls-BSZw6Irw-DHoHyyuo.js → CardIndividualFouls-CvSJn7oh-HOx9vQ1u.js} +47 -41
  13. package/dist/{CardIndividualGoalParticipation-D0jx0mKO-CmyYljBx.js → CardIndividualGoalParticipation-CpyCN4pK-CMqtEPao.js} +38 -33
  14. package/dist/{CardIndividualGoals-k1HYTdnr-DwdImXmD.js → CardIndividualGoals-yml-5LMF-C_GyUhBk.js} +397 -247
  15. package/dist/{CardIndividualGold-BoE9YjMT-BTGXOE5O.js → CardIndividualGold-BN6tctB5-G6ym5byu.js} +45 -39
  16. package/dist/{CardIndividualNoGoalReceived-T1szlu3u-BsDem5g0.js → CardIndividualNoGoalReceived-ICCs2ZM5-B1MQrZPF.js} +42 -37
  17. package/dist/CardIndividualPerformance-B8vQAqkl-BYR02_RY.js +113 -0
  18. package/dist/{CardIndividualSaves-rWMesrlG-DthInp2-.js → CardIndividualSaves-BwuZ8ftn-QqesnmR7.js} +47 -43
  19. package/dist/{CardIndividualShotsOnGoal-DCl0FEKe-D1LFguJT.js → CardIndividualShotsOnGoal-BJME2mbD-BdBASKyS.js} +57 -51
  20. package/dist/{CardIndividualStatistics-D5JBvozg-0Gq27kWI.js → CardIndividualStatistics-By5s6JAO-Rv4-QyLp.js} +36 -30
  21. package/dist/{CardPromTournament-DaUtBS2s-DYPh6beM.js → CardPromTournament-gihiLtUr-DUepGBni.js} +48 -44
  22. package/dist/{CardSuccessfulPasses-BdWMHjtx-C7yqLEWL.js → CardSuccessfulPasses-CnfMp77U-rRVe9D87.js} +32 -26
  23. package/dist/CardTheMostProductive-BXTUS6yD-DyZgvFkv.js +87 -0
  24. package/dist/{Shield-DPZx9qP3-BCn1KwjE.js → Shield-CqzYJKHt-OiFc4OPF.js} +3 -3
  25. package/dist/gsc-landing.js +1 -1
  26. package/dist/gsc-landing.umd.cjs +54 -54
  27. package/dist/{index-C-oaQYT0.js → index-CidNks_N.js} +5190 -5251
  28. package/dist/style.css +1 -1
  29. package/package.json +53 -53
  30. package/dist/CardBase-D3YCZX4b-DGnwZ1-j.js +0 -127
  31. package/dist/CardIndividual1vs1-fcFN4SBW-0yRvkJ62.js +0 -113
  32. package/dist/CardIndividualPerformance-BZmpXMyI-Cn3RFU3S.js +0 -108
  33. package/dist/CardTheMostProductive-DTnPP64--C47kK7xA.js +0 -81
  34. package/dist/CircleWithDotsBig-DD6iMX6w-DjUWhXAM.js +0 -151
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,181 @@
1
+ import { computed as l, openBlock as n, createElementBlock as s, normalizeClass as u, normalizeStyle as p, createCommentVNode as c, createElementVNode as d, renderSlot as g, pushScopeId as y, popScopeId as f } from "vue";
2
+ import { O as h } from "./index-CidNks_N.js";
3
+ function $(t = "") {
4
+ const e = t.split("");
5
+ let r = 1;
6
+ return e.reduce((a, o) => (o === "*" ? (r % 2 === 0 ? a += "</span>" : a += '<span class="text-bold">', r++) : a += o, a), "");
7
+ }
8
+ function z({ data: t, descriptionType: e }) {
9
+ switch (e) {
10
+ case 1:
11
+ return t.finish_first_person_description;
12
+ case 2:
13
+ return t.first_person_description;
14
+ case 3:
15
+ return t.finish_third_person_description;
16
+ case 4:
17
+ return t.third_person_description;
18
+ case 5:
19
+ return t.finish_description;
20
+ case 6:
21
+ return t.description;
22
+ }
23
+ }
24
+ function E(t) {
25
+ return `https://az755631.vo.msecnd.net/teams-80/${t}.png`;
26
+ }
27
+ function T(t) {
28
+ return `https://az755631.vo.msecnd.net/players-profile/${t}.png`;
29
+ }
30
+ function I(t) {
31
+ return `https://golstatsimages.blob.core.windows.net/images-library/${t}`;
32
+ }
33
+ function A(t) {
34
+ if (t.includes("*")) {
35
+ let e = "";
36
+ const r = t.match(/\*(.*?)\*/);
37
+ return r && (e = r[1]), {
38
+ title: e.trim(),
39
+ subtitle: t.replace(/\*(.*?)\*/, "").trim()
40
+ };
41
+ }
42
+ return {
43
+ title: t,
44
+ subtitle: ""
45
+ };
46
+ }
47
+ const b = (t, e) => {
48
+ const r = t.__vccOpts || t;
49
+ for (const [a, o] of e)
50
+ r[a] = o;
51
+ return r;
52
+ }, m = (t) => (y("data-v-949a4643"), t = t(), f(), t), v = {
53
+ key: 0,
54
+ class: "card-base__background-image"
55
+ }, _ = ["src"], k = {
56
+ key: 1,
57
+ class: "card-base__background-overlay"
58
+ }, w = { class: "card-base__slot" }, S = /* @__PURE__ */ m(() => /* @__PURE__ */ d("svg", {
59
+ width: "60",
60
+ height: "60",
61
+ viewBox: "0 0 60 60",
62
+ fill: "none",
63
+ xmlns: "http://www.w3.org/2000/svg"
64
+ }, [
65
+ /* @__PURE__ */ d("circle", {
66
+ cx: "30",
67
+ cy: "30",
68
+ r: "30",
69
+ fill: "#0E1E2A",
70
+ "fill-opacity": ".96"
71
+ }),
72
+ /* @__PURE__ */ d("circle", {
73
+ cx: "30",
74
+ cy: "30",
75
+ r: "26.6",
76
+ stroke: "#757575",
77
+ "stroke-width": ".8"
78
+ }),
79
+ /* @__PURE__ */ d("path", {
80
+ 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",
81
+ fill: "#CBEE6B"
82
+ })
83
+ ], -1)), C = [
84
+ S
85
+ ], x = {
86
+ __name: "CardBase",
87
+ props: {
88
+ height: {
89
+ type: String,
90
+ default: "445px"
91
+ },
92
+ width: {
93
+ type: String,
94
+ default: "319px"
95
+ },
96
+ backgroundOverlayColor: {
97
+ type: String,
98
+ default: "#000000"
99
+ },
100
+ backgroundOverlayOpacity: {
101
+ type: String,
102
+ default: "0.8"
103
+ },
104
+ backgroundImageSrc: {
105
+ type: String,
106
+ default: ""
107
+ },
108
+ overflow: {
109
+ type: String,
110
+ default: "visible"
111
+ },
112
+ borderRadius: {
113
+ type: String,
114
+ default: "15px"
115
+ },
116
+ isPlayButtonVisible: {
117
+ type: Boolean,
118
+ default: !0
119
+ },
120
+ goldCardType: {
121
+ type: Number,
122
+ default: 0
123
+ },
124
+ showVideos: {
125
+ type: Boolean,
126
+ default: !0
127
+ },
128
+ idAux: {
129
+ type: String,
130
+ default: ""
131
+ }
132
+ },
133
+ setup(t) {
134
+ const e = t, r = l(() => ({
135
+ "--height": e.height,
136
+ "--width": e.width,
137
+ "--background-overlay-color": e.backgroundOverlayColor,
138
+ "--overflow": e.overflow,
139
+ "--border-radius": e.borderRadius,
140
+ "--background-overlay-opacity": e.backgroundOverlayOpacity,
141
+ "--background-gold-size": `${e.width} ${e.height}`
142
+ })), a = l(() => {
143
+ const i = [];
144
+ return e.goldCardType && (e.goldCardType === 1 ? i.push("gold-card-1") : e.goldCardType === 2 && i.push("gold-card-2")), i;
145
+ });
146
+ function o() {
147
+ h.emit(e.idAux);
148
+ }
149
+ return (i, B) => (n(), s("div", {
150
+ class: u(["card-base", a.value]),
151
+ style: p(r.value)
152
+ }, [
153
+ t.goldCardType ? c("", !0) : (n(), s("div", v, [
154
+ t.backgroundImageSrc ? (n(), s("img", {
155
+ key: 0,
156
+ src: t.backgroundImageSrc,
157
+ alt: ""
158
+ }, null, 8, _)) : c("", !0)
159
+ ])),
160
+ t.goldCardType ? c("", !0) : (n(), s("div", k)),
161
+ d("div", w, [
162
+ g(i.$slots, "default", {}, void 0, !0)
163
+ ]),
164
+ t.isPlayButtonVisible && t.showVideos ? (n(), s("div", {
165
+ key: 2,
166
+ class: "card-base__play",
167
+ onClick: o
168
+ }, C)) : c("", !0)
169
+ ], 6));
170
+ }
171
+ }, N = /* @__PURE__ */ b(x, [["__scopeId", "data-v-949a4643"]]);
172
+ export {
173
+ N as $,
174
+ z as A,
175
+ A as E,
176
+ E as O,
177
+ $ as P,
178
+ T as V,
179
+ b as m,
180
+ I as z
181
+ };
@@ -1,6 +1,6 @@
1
- import { computed as i, openBlock as o, createElementBlock as a, normalizeStyle as p, createBlock as B, mergeProps as H, withCtx as w, renderSlot as D, createElementVNode as r, createCommentVNode as l, normalizeClass as T, toDisplayString as n, Fragment as b, createVNode as m } from "vue";
2
- import { b as S, E as P } from "./CardBase-D3YCZX4b-DGnwZ1-j.js";
3
- const L = { class: "circle__total" }, $ = { class: "total" }, z = { class: "suffix" }, N = ["width", "height", "viewBox"], U = ["stroke"], I = ["stroke"], M = ["stop-color"], V = ["stop-color"], E = {
1
+ import { computed as i, openBlock as o, createElementBlock as a, normalizeStyle as p, createElementVNode as r, toDisplayString as n, createBlock as B, mergeProps as H, withCtx as w, renderSlot as D, createCommentVNode as l, normalizeClass as T, Fragment as m, createVNode as b } from "vue";
2
+ import { m as k, $ as P } from "./CardBase-Cdma--ld-BufA9Fxb.js";
3
+ const $ = { class: "circle__total" }, L = { class: "total" }, z = { class: "suffix" }, N = ["width", "height", "viewBox"], U = ["stroke"], A = ["stroke"], I = ["stop-color"], M = ["stop-color"], V = {
4
4
  __name: "CircleWithDots",
5
5
  props: {
6
6
  height: {
@@ -48,8 +48,8 @@ const L = { class: "circle__total" }, $ = { class: "total" }, z = { class: "suff
48
48
  class: "circle",
49
49
  style: p(s.value)
50
50
  }, [
51
- r("div", L, [
52
- r("span", $, n(e.value), 1),
51
+ r("div", $, [
52
+ r("span", L, n(e.value), 1),
53
53
  r("span", z, n(e.suffix), 1)
54
54
  ]),
55
55
  (o(), a("svg", {
@@ -72,7 +72,7 @@ const L = { class: "circle__total" }, $ = { class: "total" }, z = { class: "suff
72
72
  "stroke-width": "0.380952",
73
73
  "stroke-linecap": "round",
74
74
  "stroke-dasharray": "0 0.19 2.61 0 0.19 2.61"
75
- }, null, 8, I),
75
+ }, null, 8, A),
76
76
  r("defs", null, [
77
77
  r("linearGradient", {
78
78
  id: f,
@@ -82,20 +82,20 @@ const L = { class: "circle__total" }, $ = { class: "total" }, z = { class: "suff
82
82
  y2: "66",
83
83
  gradientUnits: "userSpaceOnUse"
84
84
  }, [
85
- r("stop", { "stop-color": e.color }, null, 8, M),
85
+ r("stop", { "stop-color": e.color }, null, 8, I),
86
86
  r("stop", {
87
87
  offset: "1",
88
88
  "stop-color": e.color
89
- }, null, 8, V)
89
+ }, null, 8, M)
90
90
  ])
91
91
  ])
92
92
  ], 8, N))
93
93
  ], 4));
94
94
  }
95
- }, k = /* @__PURE__ */ S(E, [["__scopeId", "data-v-b9adcb76"]]), O = {
95
+ }, S = /* @__PURE__ */ k(V, [["__scopeId", "data-v-b9adcb76"]]), O = {
96
96
  key: 0,
97
97
  class: "card-base-individual__content__player-img"
98
- }, A = ["src"], R = {
98
+ }, E = ["src"], R = {
99
99
  key: 1,
100
100
  class: "card-base-individual__content__team-logo"
101
101
  }, j = ["src"], Z = {
@@ -223,6 +223,10 @@ const L = { class: "circle__total" }, $ = { class: "total" }, z = { class: "suff
223
223
  showVideos: {
224
224
  type: Boolean,
225
225
  default: !0
226
+ },
227
+ idAux: {
228
+ type: String,
229
+ default: ""
226
230
  }
227
231
  },
228
232
  setup(e) {
@@ -255,6 +259,7 @@ const L = { class: "circle__total" }, $ = { class: "total" }, z = { class: "suff
255
259
  backgroundOverlayColor: t.cardColor,
256
260
  backgroundImageSrc: t.backgroundImageSrc,
257
261
  isPlayButtonVisible: t.showVideos,
262
+ idAux: t.idAux,
258
263
  goldCardType: t.goldCardType
259
264
  })), f = i(() => ({}));
260
265
  i(() => t.footerBodyData.total ? t.footerBodyData.isTotalPercentage ? `${t.footerBodyData.total}%` : t.footerBodyData.total : "");
@@ -279,7 +284,7 @@ const L = { class: "circle__total" }, $ = { class: "total" }, z = { class: "suff
279
284
  r("img", {
280
285
  src: e.playerPhotoUrl,
281
286
  alt: "player"
282
- }, null, 8, A)
287
+ }, null, 8, E)
283
288
  ])
284
289
  ])) : l("", !0),
285
290
  e.teamLogoUrl ? (o(), a("div", R, [
@@ -299,9 +304,9 @@ const L = { class: "circle__total" }, $ = { class: "total" }, z = { class: "suff
299
304
  ])) : l("", !0),
300
305
  e.footerHeaderData.title && !e.footerHeaderData.areTitleSubtitleSameLine ? (o(), a("div", q, n(e.footerHeaderData.subtitle), 1)) : l("", !0)
301
306
  ])) : l("", !0),
302
- e.footerHeaderData.total ? (o(), a(b, { key: 1 }, [
307
+ e.footerHeaderData.total ? (o(), a(m, { key: 1 }, [
303
308
  e.footerHeaderData.isTotalPercentage ? (o(), a("div", J, [
304
- m(k, {
309
+ b(S, {
305
310
  value: e.footerHeaderData.total,
306
311
  "text-color": e.footerBodyData.totalTextColor,
307
312
  color: e.footerBodyData.totalCircleColor
@@ -314,9 +319,9 @@ const L = { class: "circle__total" }, $ = { class: "total" }, z = { class: "suff
314
319
  class: "card-base-individual__content__footer__body__description",
315
320
  innerHTML: e.footerBodyData.description
316
321
  }, null, 8, X),
317
- e.footerBodyData.total ? (o(), a(b, { key: 0 }, [
322
+ e.footerBodyData.total ? (o(), a(m, { key: 0 }, [
318
323
  e.footerBodyData.isTotalPercentage ? (o(), a("div", tt, [
319
- m(k, {
324
+ b(S, {
320
325
  value: e.footerBodyData.total,
321
326
  "text-color": e.footerBodyData.totalTextColor,
322
327
  color: e.footerBodyData.totalCircleColor
@@ -335,7 +340,8 @@ const L = { class: "circle__total" }, $ = { class: "total" }, z = { class: "suff
335
340
  }, 16, ["width"])) : l("", !0)
336
341
  ], 4));
337
342
  }
338
- }, dt = /* @__PURE__ */ S(at, [["__scopeId", "data-v-1133b425"]]);
343
+ }, dt = /* @__PURE__ */ k(at, [["__scopeId", "data-v-f5d6a13d"]]);
339
344
  export {
345
+ S as B,
340
346
  dt as d
341
347
  };