@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
@@ -1,15 +1,14 @@
1
- import { ref as x, computed as n, openBlock as c, createElementBlock as p, createVNode as g, mergeProps as w, withCtx as F, createElementVNode as d, normalizeClass as S, normalizeStyle as C, toDisplayString as _ } from "vue";
2
- import { d as I } from "./CardBaseAllIndividual-MZU9YVGl-CP107tbU.js";
3
- import { N } from "./Shield-DPZx9qP3-BCn1KwjE.js";
4
- import { B as T, R as B, V as H, H as V, j as $ } from "./index-C-oaQYT0.js";
5
- import { b as k } from "./CardBase-D3YCZX4b-DGnwZ1-j.js";
6
- const z = { class: "gold-card" }, D = { class: "gold-card__body__title" }, E = {
1
+ import { ref as b, computed as d, openBlock as c, createElementBlock as p, createVNode as g, mergeProps as w, withCtx as F, createElementVNode as n, normalizeClass as S, normalizeStyle as C, toDisplayString as _ } from "vue";
2
+ import { d as I } from "./CardBaseAllIndividual-D-OnB5nZ-BPn0LvNB.js";
3
+ import { N as z } from "./Shield-CqzYJKHt-OiFc4OPF.js";
4
+ import { m as N, P as T, A as $, E, z as V, V as k } from "./CardBase-Cdma--ld-BufA9Fxb.js";
5
+ const A = { class: "gold-card" }, B = { class: "gold-card__body__title" }, D = {
7
6
  key: 0,
8
7
  class: "gold-card__body__shield"
9
- }, L = {
8
+ }, H = {
10
9
  key: 1,
11
10
  class: "gold-card__body__player-photo"
12
- }, j = ["src"], G = { class: "gold-card__body__sub-title" }, P = {
11
+ }, L = ["src"], P = { class: "gold-card__body__sub-title" }, G = {
13
12
  __name: "CardIndividualGold",
14
13
  props: {
15
14
  height: {
@@ -31,10 +30,14 @@ const z = { class: "gold-card" }, D = { class: "gold-card__body__title" }, E = {
31
30
  showVideos: {
32
31
  type: Boolean,
33
32
  default: !0
33
+ },
34
+ idAux: {
35
+ type: String,
36
+ default: ""
34
37
  }
35
38
  },
36
- setup(u) {
37
- const t = u, h = /* @__PURE__ */ new Set([
39
+ setup(s) {
40
+ const t = s, h = /* @__PURE__ */ new Set([
38
41
  "85-i",
39
42
  "91-i",
40
43
  "97-i",
@@ -53,55 +56,58 @@ const z = { class: "gold-card" }, D = { class: "gold-card__body__title" }, E = {
53
56
  "175-i",
54
57
  "179-i",
55
58
  "185-i"
56
- ]), y = x({
59
+ ]), y = b({
57
60
  width: "50px",
58
61
  height: "50px",
59
62
  bottom: "34px",
60
63
  right: "-8px",
61
64
  innerImageWidth: "39px",
62
65
  innerImageHeight: "39px"
63
- }), i = n(() => h.has(t.data.id) ? 1 : 2), v = n(() => ({
66
+ }), o = d(() => h.has(t.data.id) ? 1 : 2), v = d(() => ({
64
67
  height: t.height,
65
68
  width: t.width,
66
69
  footerHeight: "137px",
67
- teamLogoUrl: i.value === 2 ? `https://golstatsimages.blob.core.windows.net/tournaments-cards/${t.data.tournament_id}.png` : "",
70
+ teamLogoUrl: o.value === 2 ? `https://golstatsimages.blob.core.windows.net/tournaments-cards/${t.data.tournament_id}.png` : "",
68
71
  footerBodyData: {
69
- description: T(B({ data: t.data, descriptionType: t.descriptionType })),
72
+ description: T($({ data: t.data, descriptionType: t.descriptionType })),
70
73
  total: t.data.footer.show_percentage ? t.data.percentage : t.data.total,
71
74
  textColor: (t.data.thumbnails.colors.font_color_description || "#FFFFFF").trim(),
72
75
  totalTextColor: (t.data.thumbnails.colors.font_color_stats || "#FFFFFF").trim(),
73
76
  totalCircleColor: (t.data.thumbnails.colors.data_color || "#000000").trim(),
74
77
  isTotalPercentage: t.data.footer.show_percentage
75
78
  },
76
- goldCardType: i.value
77
- })), e = n(() => {
78
- var a, o, l, r;
79
- const { title: s, subtitle: b } = H(t.data.title), m = !!((r = (l = (o = (a = t.data) == null ? void 0 : a.thumbnails) == null ? void 0 : o.images) == null ? void 0 : l.player_in_action) != null && r[0]);
79
+ goldCardType: o.value
80
+ })), e = d(() => {
81
+ var a, i, l, r;
82
+ const { title: u, subtitle: x } = E(t.data.title), m = !!((r = (l = (i = (a = t.data) == null ? void 0 : a.thumbnails) == null ? void 0 : i.images) == null ? void 0 : l.player_in_action) != null && r[0]);
80
83
  return {
81
- title: s,
82
- subtitle: b,
83
- innerImageSrc: m ? V(t.data.thumbnails.images.player_in_action[0]) : $(t.data.player_id || ""),
84
+ title: u,
85
+ subtitle: x,
86
+ innerImageSrc: m ? V(t.data.thumbnails.images.player_in_action[0]) : k(t.data.player_id || ""),
84
87
  tournamentLogoSrc: `https://az755631.vo.msecnd.net/todoelfut/${t.data.tournament_id}.png`,
85
88
  translate: m ? "0 38px" : "0 21px"
86
89
  };
87
- }), f = n(() => {
88
- var a, o, l, r;
89
- const s = !!((r = (l = (o = (a = t.data) == null ? void 0 : a.thumbnails) == null ? void 0 : o.images) == null ? void 0 : l.player_in_action) != null && r[0]);
90
+ }), f = d(() => {
91
+ var a, i, l, r;
92
+ const u = !!((r = (l = (i = (a = t.data) == null ? void 0 : a.thumbnails) == null ? void 0 : i.images) == null ? void 0 : l.player_in_action) != null && r[0]);
90
93
  return {
91
- "--max-width-title": i.value === 2 ? "220px" : "100%",
92
- "--player-image-width": s ? "230px" : "180px"
94
+ "--max-width-title": o.value === 2 ? "220px" : "100%",
95
+ "--player-image-width": u ? "230px" : "180px"
93
96
  };
94
97
  });
95
- return (a, o) => (c(), p("div", z, [
96
- g(I, w(v.value, { "show-videos": u.showVideos }), {
98
+ return (a, i) => (c(), p("div", A, [
99
+ g(I, w(v.value, {
100
+ "show-videos": s.showVideos,
101
+ "id-aux": s.idAux
102
+ }), {
97
103
  body: F(() => [
98
- d("div", {
99
- class: S(["gold-card__body", { "type-2": i.value === 2 }]),
104
+ n("div", {
105
+ class: S(["gold-card__body", { "type-2": o.value === 2 }]),
100
106
  style: C(f.value)
101
107
  }, [
102
- d("div", D, _(e.value.title), 1),
103
- i.value === 1 ? (c(), p("div", E, [
104
- g(N, {
108
+ n("div", B, _(e.value.title), 1),
109
+ o.value === 1 ? (c(), p("div", D, [
110
+ g(z, {
105
111
  "team-logo-src": e.value.tournamentLogoSrc,
106
112
  width: 131,
107
113
  "team-logo-circle-props": y.value,
@@ -109,20 +115,20 @@ const z = { class: "gold-card" }, D = { class: "gold-card__body__title" }, E = {
109
115
  "inner-image-translate": e.value.translate,
110
116
  "inner-image-src": e.value.innerImageSrc
111
117
  }, null, 8, ["team-logo-src", "team-logo-circle-props", "inner-image-translate", "inner-image-src"])
112
- ])) : (c(), p("div", L, [
113
- d("img", {
118
+ ])) : (c(), p("div", H, [
119
+ n("img", {
114
120
  src: e.value.innerImageSrc,
115
121
  alt: ""
116
- }, null, 8, j)
122
+ }, null, 8, L)
117
123
  ])),
118
- d("div", G, _(e.value.subtitle), 1)
124
+ n("div", P, _(e.value.subtitle), 1)
119
125
  ], 6)
120
126
  ]),
121
127
  _: 1
122
- }, 16, ["show-videos"])
128
+ }, 16, ["show-videos", "id-aux"])
123
129
  ]));
124
130
  }
125
- }, W = /* @__PURE__ */ k(P, [["__scopeId", "data-v-e7552207"]]);
131
+ }, W = /* @__PURE__ */ N(G, [["__scopeId", "data-v-d08e403c"]]);
126
132
  export {
127
133
  W as default
128
134
  };
@@ -1,19 +1,17 @@
1
- import { computed as C, openBlock as t, createElementBlock as e, normalizeStyle as w, createVNode as v, mergeProps as k, withCtx as M, createElementVNode as o, toDisplayString as g, createCommentVNode as s, unref as u, normalizeProps as Z, guardReactiveProps as P, createBlock as V } from "vue";
2
- import { d as x } from "./CardBaseAllIndividual-MZU9YVGl-CP107tbU.js";
3
- import { $ as S, H, B, R as $, j as N } from "./index-C-oaQYT0.js";
4
- import { b as R } from "./CardBase-D3YCZX4b-DGnwZ1-j.js";
5
- import { G as T } from "./CircleWithDotsBig-DD6iMX6w-DjUWhXAM.js";
6
- import { a as j } from "./TimeSvg-B3vSNjgQ-BbQ6V9Cu.js";
7
- const G = { class: "no-goal__body" }, U = { class: "no-goal__body__title-sub" }, z = { class: "no-goal__body__title-sub__title" }, E = {
1
+ import { computed as C, openBlock as t, createElementBlock as e, normalizeStyle as w, createVNode as v, mergeProps as k, withCtx as M, createElementVNode as o, toDisplayString as g, createCommentVNode as s, unref as c, normalizeProps as Z, guardReactiveProps as x, createBlock as P } from "vue";
2
+ import { d as V, B as S } from "./CardBaseAllIndividual-D-OnB5nZ-BPn0LvNB.js";
3
+ import { m as H, O as B, z, P as N, A as T, V as U } from "./CardBase-Cdma--ld-BufA9Fxb.js";
4
+ import { a as O } from "./TimeSvg-B3vSNjgQ-BbQ6V9Cu.js";
5
+ const A = { class: "no-goal__body" }, E = { class: "no-goal__body__title-sub" }, I = { class: "no-goal__body__title-sub__title" }, R = {
8
6
  key: 0,
9
7
  class: "no-goal__body__title-sub__sub"
10
- }, I = { class: "no-goal__body__data" }, D = {
8
+ }, $ = { class: "no-goal__body__data" }, j = {
11
9
  key: 0,
12
10
  class: "time-svg"
13
- }, O = {
11
+ }, D = {
14
12
  key: 1,
15
13
  class: "player-img"
16
- }, q = ["src"], A = {
14
+ }, G = ["src"], q = {
17
15
  key: 3,
18
16
  class: "no-goal-svg"
19
17
  }, J = {
@@ -22,7 +20,7 @@ const G = { class: "no-goal__body" }, U = { class: "no-goal__body__title-sub" },
22
20
  viewBox: "0 0 47 46",
23
21
  fill: "none",
24
22
  xmlns: "http://www.w3.org/2000/svg"
25
- }, K = { "clip-path": "url(#clip0_153_11805)" }, Q = ["fill"], W = ["fill"], X = ["fill"], Y = ["fill"], l1 = ["fill"], o1 = ["fill"], a1 = ["fill"], t1 = ["fill"], e1 = ["fill"], i1 = ["fill"], C1 = ["fill"], r1 = ["fill"], n1 = ["fill"], d1 = { id: "clip0_153_11805" }, s1 = ["fill"], u1 = {
23
+ }, K = { "clip-path": "url(#clip0_153_11805)" }, Q = ["fill"], W = ["fill"], X = ["fill"], Y = ["fill"], l1 = ["fill"], o1 = ["fill"], a1 = ["fill"], t1 = ["fill"], e1 = ["fill"], i1 = ["fill"], C1 = ["fill"], r1 = ["fill"], n1 = ["fill"], d1 = { id: "clip0_153_11805" }, u1 = ["fill"], s1 = {
26
24
  __name: "CardIndividualNoGoalReceived",
27
25
  props: {
28
26
  height: {
@@ -44,13 +42,17 @@ const G = { class: "no-goal__body" }, U = { class: "no-goal__body__title-sub" },
44
42
  showVideos: {
45
43
  type: Boolean,
46
44
  default: !0
45
+ },
46
+ idAux: {
47
+ type: String,
48
+ default: ""
47
49
  }
48
50
  },
49
- setup(c) {
50
- const l = c, L = /* @__PURE__ */ new Set([
51
+ setup(r) {
52
+ const l = r, L = /* @__PURE__ */ new Set([
51
53
  "64-i",
52
54
  "29-e"
53
- ]), r = /* @__PURE__ */ new Set([
55
+ ]), n = /* @__PURE__ */ new Set([
54
56
  "65-i",
55
57
  "30-e"
56
58
  ]), b = /* @__PURE__ */ new Set([
@@ -61,24 +63,24 @@ const G = { class: "no-goal__body" }, U = { class: "no-goal__body__title-sub" },
61
63
  "31-e",
62
64
  "32-e"
63
65
  ]), y = C(() => {
64
- var n, d, p, m, h, f, _;
66
+ var d, u, p, h, m, f, _;
65
67
  return {
66
68
  height: l.height,
67
69
  width: l.width,
68
70
  footerHeight: "120px",
69
71
  playerPhotoPositionTop: "24px",
70
- teamLogoUrl: S(l.data.team_id || ""),
72
+ teamLogoUrl: B(l.data.team_id || ""),
71
73
  cardColor: (l.data.thumbnails.colors.background_color || "#000000").trim(),
72
- backgroundImageSrc: H((m = (p = (d = (n = l.data) == null ? void 0 : n.thumbnails) == null ? void 0 : d.images) == null ? void 0 : p.background_player_in_action) != null && m[0] ? l.data.thumbnails.images.background_player_in_action[0] : (_ = (f = (h = l.data) == null ? void 0 : h.thumbnails) == null ? void 0 : f.images) != null && _.background_team ? l.data.thumbnails.images.background_team : ""),
74
+ backgroundImageSrc: z((h = (p = (u = (d = l.data) == null ? void 0 : d.thumbnails) == null ? void 0 : u.images) == null ? void 0 : p.background_player_in_action) != null && h[0] ? l.data.thumbnails.images.background_player_in_action[0] : (_ = (f = (m = l.data) == null ? void 0 : m.thumbnails) == null ? void 0 : f.images) != null && _.background_team ? l.data.thumbnails.images.background_team : ""),
73
75
  footerBodyData: {
74
- description: B($({ data: l.data, descriptionType: l.descriptionType })),
76
+ description: N(T({ data: l.data, descriptionType: l.descriptionType })),
75
77
  textColor: (l.data.thumbnails.colors.font_color_description || "#FFFFFF").trim()
76
78
  }
77
79
  };
78
80
  }), a = C(() => ({
79
81
  title: "sin gol recibido",
80
- subtitle: L.has(i.value) ? "primeros tiempos" : r.has(r) ? "segundos tiempos" : "",
81
- playerPhotoUrl: N(l.data.player_id || ""),
82
+ subtitle: L.has(i.value) ? "primeros tiempos" : n.has(n) ? "segundos tiempos" : "",
83
+ playerPhotoUrl: U(l.data.player_id || ""),
82
84
  iconColor: (l.data.thumbnails.colors.icon_color || l.data.thumbnails.colors.graphic_color || "#FFFFFF").trim(),
83
85
  total: l.data.total,
84
86
  totalCircleColor: (l.data.thumbnails.colors.data_color || "#cbee6b").trim(),
@@ -92,33 +94,36 @@ const G = { class: "no-goal__body" }, U = { class: "no-goal__body__title-sub" },
92
94
  "--title-color": (l.data.thumbnails.colors.font_color_header || "#FFFFFF").trim(),
93
95
  "--data-color": (l.data.thumbnails.colors.background_color || "#000000").trim()
94
96
  }));
95
- return (n, d) => (t(), e("div", {
97
+ return (d, u) => (t(), e("div", {
96
98
  class: "no-goal",
97
99
  style: w(F.value)
98
100
  }, [
99
- v(x, k(y.value, { "show-videos": c.showVideos }), {
101
+ v(V, k(y.value, {
102
+ "show-videos": r.showVideos,
103
+ "id-aux": r.idAux
104
+ }), {
100
105
  body: M(() => [
101
- o("div", G, [
102
- o("div", U, [
103
- o("div", z, g(a.value.title), 1),
104
- a.value.subtitle ? (t(), e("div", E, g(a.value.subtitle), 1)) : s("", !0)
106
+ o("div", A, [
107
+ o("div", E, [
108
+ o("div", I, g(a.value.title), 1),
109
+ a.value.subtitle ? (t(), e("div", R, g(a.value.subtitle), 1)) : s("", !0)
105
110
  ]),
106
- o("div", I, [
107
- u(b).has(i.value) ? s("", !0) : (t(), e("div", D, [
108
- v(j, Z(P(a.value.timeSvgProps)), null, 16)
111
+ o("div", $, [
112
+ c(b).has(i.value) ? s("", !0) : (t(), e("div", j, [
113
+ v(O, Z(x(a.value.timeSvgProps)), null, 16)
109
114
  ])),
110
- a.value.playerPhotoUrl ? (t(), e("div", O, [
115
+ a.value.playerPhotoUrl ? (t(), e("div", D, [
111
116
  o("div", null, [
112
117
  o("img", {
113
118
  src: a.value.playerPhotoUrl,
114
119
  alt: "player"
115
- }, null, 8, q)
120
+ }, null, 8, G)
116
121
  ])
117
122
  ])) : s("", !0),
118
- u(L).has(i.value) || u(r).has(i.value) ? (t(), V(T, {
123
+ c(L).has(i.value) || c(n).has(i.value) ? (t(), P(S, {
119
124
  key: 2,
120
125
  value: l.data.percentage
121
- }, null, 8, ["value"])) : (t(), e("div", A, [
126
+ }, null, 8, ["value"])) : (t(), e("div", q, [
122
127
  (t(), e("svg", J, [
123
128
  o("g", K, [
124
129
  o("path", {
@@ -181,7 +186,7 @@ const G = { class: "no-goal__body" }, U = { class: "no-goal__body__title-sub" },
181
186
  height: "44.6446",
182
187
  fill: a.value.iconColor,
183
188
  transform: "translate(0.504883 0.677734)"
184
- }, null, 8, s1)
189
+ }, null, 8, u1)
185
190
  ])
186
191
  ])
187
192
  ]))
@@ -190,10 +195,10 @@ const G = { class: "no-goal__body" }, U = { class: "no-goal__body__title-sub" },
190
195
  ])
191
196
  ]),
192
197
  _: 1
193
- }, 16, ["show-videos"])
198
+ }, 16, ["show-videos", "id-aux"])
194
199
  ], 4));
195
200
  }
196
- }, _1 = /* @__PURE__ */ R(u1, [["__scopeId", "data-v-d5b51167"]]);
201
+ }, m1 = /* @__PURE__ */ H(s1, [["__scopeId", "data-v-2a96628a"]]);
197
202
  export {
198
- _1 as default
203
+ m1 as default
199
204
  };
@@ -0,0 +1,113 @@
1
+ import { computed as i, openBlock as h, createElementBlock as v, normalizeStyle as y, createVNode as c, mergeProps as F, withCtx as g, createElementVNode as o, toDisplayString as n, pushScopeId as x, popScopeId as S } from "vue";
2
+ import { d as C, B as m } from "./CardBaseAllIndividual-D-OnB5nZ-BPn0LvNB.js";
3
+ import { m as w, V as T, z as k, P as B, A as N, E as V } from "./CardBase-Cdma--ld-BufA9Fxb.js";
4
+ const P = (e) => (x("data-v-6260a2ea"), e = e(), S(), e), A = { class: "performance__body" }, E = { class: "performance__body__title-sub" }, I = { class: "performance__body__title-sub__title" }, $ = { class: "performance__body__title-sub__sub" }, z = { class: "performance__body__data" }, O = { class: "performance__body__data__total-season" }, D = { class: "performance__body__data__total-season__season" }, j = /* @__PURE__ */ P(() => /* @__PURE__ */ o("span", { class: "arrow" }, "→", -1)), H = { class: "performance__body__data__total-season" }, U = { class: "performance__body__data__total-season__season" }, q = {
5
+ __name: "CardIndividualPerformance",
6
+ props: {
7
+ height: {
8
+ type: String,
9
+ default: "445px"
10
+ },
11
+ width: {
12
+ type: String,
13
+ default: "319px"
14
+ },
15
+ data: {
16
+ type: Object,
17
+ default: () => null
18
+ },
19
+ descriptionType: {
20
+ type: Number,
21
+ default: 4
22
+ },
23
+ showVideos: {
24
+ type: Boolean,
25
+ default: !0
26
+ },
27
+ idAux: {
28
+ type: String,
29
+ default: ""
30
+ }
31
+ },
32
+ setup(e) {
33
+ const a = e, b = i(() => {
34
+ var l, r, s, d, u, _, p;
35
+ return {
36
+ height: a.height,
37
+ width: a.width,
38
+ footerHeight: "fit-content",
39
+ playerPhotoPositionTop: "24px",
40
+ playerPhotoUrl: T(a.data.player_id || ""),
41
+ cardColor: (a.data.thumbnails.colors.background_color || "#000000").trim(),
42
+ backgroundImageSrc: k((d = (s = (r = (l = a.data) == null ? void 0 : l.thumbnails) == null ? void 0 : r.images) == null ? void 0 : s.background_player_in_action) != null && d[0] ? a.data.thumbnails.images.background_player_in_action[0] : (p = (_ = (u = a.data) == null ? void 0 : u.thumbnails) == null ? void 0 : _.images) != null && p.background_team ? a.data.thumbnails.images.background_team : ""),
43
+ textColor: (a.data.thumbnails.colors.text_color_description || "#FFFFFF").trim(),
44
+ footerBodyData: {
45
+ description: B(N({ data: a.data, descriptionType: a.descriptionType })),
46
+ total: a.data.total,
47
+ textColor: (a.data.thumbnails.colors.font_color_description || "#FFFFFF").trim()
48
+ }
49
+ };
50
+ }), t = i(() => {
51
+ const { title: l, subtitle: r } = V(a.data.title), [s, d] = a.data.totals;
52
+ return {
53
+ title: l,
54
+ subtitle: r,
55
+ pastSeasonName: d.season,
56
+ currentSeasonName: s.season,
57
+ pastSeasonTotal: d.total,
58
+ currentSeasonTotal: s.total,
59
+ textColor: (a.data.thumbnails.colors.font_color_description || "#FFFFFF").trim(),
60
+ circleOneColor: (a.data.thumbnails.colors.data_color_2 || "#000000").trim(),
61
+ circleTwoColor: (a.data.thumbnails.colors.data_color || "#000000").trim()
62
+ };
63
+ });
64
+ i(() => a.data.id);
65
+ const f = i(() => ({
66
+ "--data-color": a.data.thumbnails.colors.background_color_cards || "#000000",
67
+ "--title-color": (a.data.thumbnails.colors.font_color_header || "#FFFFFF").trim()
68
+ }));
69
+ return (l, r) => (h(), v("div", {
70
+ class: "performance",
71
+ style: y(f.value)
72
+ }, [
73
+ c(C, F(b.value, {
74
+ "show-videos": e.showVideos,
75
+ "id-aux": e.idAux
76
+ }), {
77
+ body: g(() => [
78
+ o("div", A, [
79
+ o("div", E, [
80
+ o("div", I, n(t.value.title), 1),
81
+ o("div", $, n(t.value.subtitle), 1)
82
+ ]),
83
+ o("div", z, [
84
+ o("div", O, [
85
+ c(m, {
86
+ value: t.value.pastSeasonTotal,
87
+ suffix: "",
88
+ "text-color": t.value.textColor,
89
+ color: t.value.circleOneColor
90
+ }, null, 8, ["value", "text-color", "color"]),
91
+ o("div", D, n(t.value.pastSeasonName), 1)
92
+ ]),
93
+ j,
94
+ o("div", H, [
95
+ c(m, {
96
+ value: t.value.currentSeasonTotal,
97
+ suffix: "",
98
+ "text-color": t.value.textColor,
99
+ color: t.value.circleTwoColor
100
+ }, null, 8, ["value", "text-color", "color"]),
101
+ o("div", U, n(t.value.currentSeasonName), 1)
102
+ ])
103
+ ])
104
+ ])
105
+ ]),
106
+ _: 1
107
+ }, 16, ["show-videos", "id-aux"])
108
+ ], 4));
109
+ }
110
+ }, J = /* @__PURE__ */ w(q, [["__scopeId", "data-v-6260a2ea"]]);
111
+ export {
112
+ J as default
113
+ };
@@ -1,8 +1,7 @@
1
- import { useCssVars as y, computed as h, openBlock as l, createElementBlock as s, normalizeStyle as F, createBlock as M, mergeProps as S, withCtx as C, createElementVNode as e, toDisplayString as p, createCommentVNode as n, createVNode as B, pushScopeId as j, popScopeId as A } from "vue";
2
- import { d as $ } from "./CardBaseAllIndividual-MZU9YVGl-CP107tbU.js";
3
- import { b as x } from "./CardBase-D3YCZX4b-DGnwZ1-j.js";
4
- import { j as T, $ as V, H as z, B as D, R as I } from "./index-C-oaQYT0.js";
5
- const m = {
1
+ import { useCssVars as y, computed as h, openBlock as l, createElementBlock as s, normalizeStyle as F, createBlock as M, mergeProps as S, withCtx as A, createElementVNode as e, toDisplayString as p, createCommentVNode as n, createVNode as C, pushScopeId as B, popScopeId as V } from "vue";
2
+ import { d as j } from "./CardBaseAllIndividual-D-OnB5nZ-BPn0LvNB.js";
3
+ import { m as x, V as z, O as T, z as D, P as I, A as N } from "./CardBase-Cdma--ld-BufA9Fxb.js";
4
+ const f = {
6
5
  props: {
7
6
  position: {
8
7
  type: String,
@@ -19,31 +18,31 @@ const m = {
19
18
  }
20
19
  }, w = () => {
21
20
  y((o) => ({
22
- "53cdc2ca": o.color
21
+ "6fa1ffec": o.color
23
22
  }));
24
- }, _ = m.setup;
25
- m.setup = _ ? (o, t) => (w(), _(o, t)) : w;
26
- const r = (o) => (j("data-v-d2968adb"), o = o(), A(), o), N = { class: "saves-element-container" }, E = { class: "saves-element-box" }, H = {
23
+ }, _ = f.setup;
24
+ f.setup = _ ? (o, t) => (w(), _(o, t)) : w;
25
+ const r = (o) => (B("data-v-f0ac71da"), o = o(), V(), o), E = { class: "saves-element-container" }, O = { class: "saves-element-box" }, P = {
27
26
  key: 0,
28
27
  class: "small-box"
29
- }, q = {
28
+ }, $ = {
30
29
  key: 0,
31
30
  width: "28",
32
31
  height: "31",
33
32
  viewBox: "0 0 28 31",
34
33
  fill: "none",
35
34
  xmlns: "http://www.w3.org/2000/svg"
36
- }, J = /* @__PURE__ */ r(() => /* @__PURE__ */ e("path", {
35
+ }, q = /* @__PURE__ */ r(() => /* @__PURE__ */ e("path", {
37
36
  d: "M10.23.878h7.482",
38
37
  stroke: "#fff",
39
38
  "stroke-width": "1.746",
40
39
  "stroke-linecap": "round"
41
- }, null, -1)), P = /* @__PURE__ */ r(() => /* @__PURE__ */ e("circle", {
40
+ }, null, -1)), H = /* @__PURE__ */ r(() => /* @__PURE__ */ e("circle", {
42
41
  cx: "13.972",
43
42
  cy: "17.089",
44
43
  fill: "#DE2531",
45
44
  r: "12.47"
46
- }, null, -1)), R = /* @__PURE__ */ r(() => /* @__PURE__ */ e("path", {
45
+ }, null, -1)), J = /* @__PURE__ */ r(() => /* @__PURE__ */ e("path", {
47
46
  d: "M26.442 17.09a12.47 12.47 0 0 0-12.47-12.47v12.47h12.47z",
48
47
  fill: "#fff"
49
48
  }, null, -1)), U = /* @__PURE__ */ r(() => /* @__PURE__ */ e("circle", {
@@ -55,28 +54,28 @@ const r = (o) => (j("data-v-d2968adb"), o = o(), A(), o), N = { class: "saves-el
55
54
  "stroke-linejoin": "round",
56
55
  r: "12.47"
57
56
  }, null, -1)), L = [
57
+ q,
58
+ H,
58
59
  J,
59
- P,
60
- R,
61
60
  U
62
- ], O = {
61
+ ], G = {
63
62
  key: 1,
64
63
  width: "28",
65
64
  height: "31",
66
65
  viewBox: "0 0 28 31",
67
66
  fill: "none",
68
67
  xmlns: "http://www.w3.org/2000/svg"
69
- }, G = /* @__PURE__ */ r(() => /* @__PURE__ */ e("path", {
68
+ }, K = /* @__PURE__ */ r(() => /* @__PURE__ */ e("path", {
70
69
  d: "M10.23.878h7.482",
71
70
  stroke: "#fff",
72
71
  "stroke-width": "1.746",
73
72
  "stroke-linecap": "round"
74
- }, null, -1)), K = /* @__PURE__ */ r(() => /* @__PURE__ */ e("circle", {
73
+ }, null, -1)), Q = /* @__PURE__ */ r(() => /* @__PURE__ */ e("circle", {
75
74
  cx: "13.972",
76
75
  cy: "17.089",
77
76
  fill: "#DE2531",
78
77
  r: "12.47"
79
- }, null, -1)), Q = /* @__PURE__ */ r(() => /* @__PURE__ */ e("path", {
78
+ }, null, -1)), R = /* @__PURE__ */ r(() => /* @__PURE__ */ e("path", {
80
79
  d: "M1.502 17.09a12.47 12.47 0 0 0 12.47 12.47V17.09H1.502z",
81
80
  fill: "#fff"
82
81
  }, null, -1)), W = /* @__PURE__ */ r(() => /* @__PURE__ */ e("circle", {
@@ -88,9 +87,9 @@ const r = (o) => (j("data-v-d2968adb"), o = o(), A(), o), N = { class: "saves-el
88
87
  "stroke-linejoin": "round",
89
88
  r: "12.47"
90
89
  }, null, -1)), X = [
91
- G,
92
90
  K,
93
91
  Q,
92
+ R,
94
93
  W
95
94
  ], Y = { class: "inner-boxes-container" }, Z = { class: "inner-box icon" }, tt = {
96
95
  width: "48",
@@ -100,11 +99,11 @@ const r = (o) => (j("data-v-d2968adb"), o = o(), A(), o), N = { class: "saves-el
100
99
  xmlns: "http://www.w3.org/2000/svg"
101
100
  }, et = ["stroke"], ot = ["stroke"], at = ["stroke"], lt = ["stroke"], rt = /* @__PURE__ */ r(() => /* @__PURE__ */ e("div", { class: "inner-box arrow" }, "→", -1)), it = { class: "inner-box stat" };
102
101
  function st(o, t, a, u, d, i) {
103
- return l(), s("div", N, [
104
- e("div", E, [
105
- a.position === "first" || a.position === "second" ? (l(), s("div", H, [
106
- a.position == "first" ? (l(), s("svg", q, L)) : n("", !0),
107
- a.position == "second" ? (l(), s("svg", O, X)) : n("", !0)
102
+ return l(), s("div", E, [
103
+ e("div", O, [
104
+ a.position === "first" || a.position === "second" ? (l(), s("div", P, [
105
+ a.position == "first" ? (l(), s("svg", $, L)) : n("", !0),
106
+ a.position == "second" ? (l(), s("svg", G, X)) : n("", !0)
108
107
  ])) : n("", !0),
109
108
  e("div", Y, [
110
109
  e("div", Z, [
@@ -149,13 +148,13 @@ function st(o, t, a, u, d, i) {
149
148
  ])
150
149
  ]);
151
150
  }
152
- const nt = /* @__PURE__ */ x(m, [["render", st], ["__scopeId", "data-v-d2968adb"]]), dt = { class: "card-general__body" }, ct = { class: "text-container-saves" }, ut = {
151
+ const nt = /* @__PURE__ */ x(f, [["render", st], ["__scopeId", "data-v-f0ac71da"]]), dt = { class: "card-general__body" }, ct = { class: "text-container-saves" }, ut = {
153
152
  key: 0,
154
153
  class: "title-saves"
155
154
  }, ht = {
156
155
  key: 1,
157
156
  class: "subtitle-saves"
158
- }, pt = { class: "saves-box" }, mt = {
157
+ }, pt = { class: "saves-box" }, ft = {
159
158
  __name: "CardIndividualSaves",
160
159
  props: {
161
160
  height: {
@@ -177,34 +176,38 @@ const nt = /* @__PURE__ */ x(m, [["render", st], ["__scopeId", "data-v-d2968adb"
177
176
  showVideos: {
178
177
  type: Boolean,
179
178
  default: !0
179
+ },
180
+ idAux: {
181
+ type: String,
182
+ default: ""
180
183
  }
181
184
  },
182
185
  setup(o) {
183
186
  y((i) => ({
184
- "78c5e482": (t.data.subtitle, "100%"),
185
- "2fd2ac5d": t.data.thumbnails.colors.font_color_header,
186
- "5ebee68a": t.data.subtitle ? "100%" : "78%"
187
+ "6d41b7bb": (t.data.subtitle, "100%"),
188
+ "024e6944": t.data.thumbnails.colors.font_color_header,
189
+ "1c4f4831": t.data.subtitle ? "100%" : "78%"
187
190
  }));
188
191
  const t = o, a = h(() => ({
189
192
  "--height": t.height,
190
193
  "--width": t.width,
191
194
  "--footer-background-color": t.data.thumbnails.colors.background_color_cards || "#000000"
192
195
  })), u = h(() => {
193
- var i, c, k, f, b, v, g;
196
+ var i, c, m, k, g, v, b;
194
197
  return {
195
198
  height: t.height,
196
199
  width: t.width,
197
200
  footerHeight: "137px",
198
- playerPhotoUrl: T(t.data.player_id || ""),
199
- teamLogoUrl: V(t.data.team_id || "") || "",
201
+ playerPhotoUrl: z(t.data.player_id || ""),
202
+ teamLogoUrl: T(t.data.team_id || "") || "",
200
203
  cardColor: t.data.thumbnails.colors.background_color || "#000000",
201
- backgroundImageSrc: z(
202
- (f = (k = (c = (i = t.data) == null ? void 0 : i.thumbnails) == null ? void 0 : c.images) == null ? void 0 : k.background_player_in_action) != null && f[0] ? t.data.thumbnails.images.background_player_in_action[0] : (g = (v = (b = t.data) == null ? void 0 : b.thumbnails) == null ? void 0 : v.images) != null && g.background_team ? t.data.thumbnails.images.background_team : ""
204
+ backgroundImageSrc: D(
205
+ (k = (m = (c = (i = t.data) == null ? void 0 : i.thumbnails) == null ? void 0 : c.images) == null ? void 0 : m.background_player_in_action) != null && k[0] ? t.data.thumbnails.images.background_player_in_action[0] : (b = (v = (g = t.data) == null ? void 0 : g.thumbnails) == null ? void 0 : v.images) != null && b.background_team ? t.data.thumbnails.images.background_team : ""
203
206
  ),
204
207
  textColor: t.data.thumbnails.colors.font_color_description || "#FFFFFF",
205
208
  footerBodyData: {
206
209
  textColor: t.data.thumbnails.colors.font_color_stats || "#FFFFFF",
207
- description: D(I({ data: t.data, descriptionType: t.descriptionType })),
210
+ description: I(N({ data: t.data, descriptionType: t.descriptionType })),
208
211
  total: t.data.total,
209
212
  totalTextColor: t.data.thumbnails.colors.font_color_stats || "#FFFFFF",
210
213
  totalCircleColor: t.data.thumbnails.colors.background_color || "#000000",
@@ -224,18 +227,19 @@ const nt = /* @__PURE__ */ x(m, [["render", st], ["__scopeId", "data-v-d2968adb"
224
227
  class: "card-general",
225
228
  style: F(a.value)
226
229
  }, [
227
- u.value ? (l(), M($, S({ key: 0 }, u.value, {
230
+ u.value ? (l(), M(j, S({ key: 0 }, u.value, {
228
231
  width: o.width,
229
- "show-videos": o.showVideos
232
+ "show-videos": o.showVideos,
233
+ "id-aux": o.idAux
230
234
  }), {
231
- body: C(() => [
235
+ body: A(() => [
232
236
  e("div", dt, [
233
237
  e("div", ct, [
234
238
  d.value.title ? (l(), s("h2", ut, p(d.value.title), 1)) : n("", !0),
235
239
  d.value.subtitle ? (l(), s("p", ht, p(d.value.subtitle), 1)) : n("", !0)
236
240
  ]),
237
241
  e("div", pt, [
238
- B(nt, {
242
+ C(nt, {
239
243
  color: t.data.thumbnails.colors.graphic_color,
240
244
  position: o.data.header.show_icon == 1 ? o.data.header.icon : "",
241
245
  stat: o.data.total
@@ -244,10 +248,10 @@ const nt = /* @__PURE__ */ x(m, [["render", st], ["__scopeId", "data-v-d2968adb"
244
248
  ])
245
249
  ]),
246
250
  _: 1
247
- }, 16, ["width", "show-videos"])) : n("", !0)
251
+ }, 16, ["width", "show-videos", "id-aux"])) : n("", !0)
248
252
  ], 4));
249
253
  }
250
- }, gt = /* @__PURE__ */ x(mt, [["__scopeId", "data-v-2d70eb14"]]);
254
+ }, vt = /* @__PURE__ */ x(ft, [["__scopeId", "data-v-8c4a83ed"]]);
251
255
  export {
252
- gt as default
256
+ vt as default
253
257
  };