@golstats/gsc-relevant-data 1.0.5 → 1.0.8

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 (33) hide show
  1. package/dist/{CardBaseAllIndividual-BNOgnH6t-D0xjZkGw.js → CardBaseAllIndividual-CNB7K2M0-nej9DJ8x.js} +70 -70
  2. package/dist/CardGeneral-DyOdaEFZ-DVY9vI50.js +126 -0
  3. package/dist/{CardGeneralIndividual-BHjZ12n1-BvodKC3y.js → CardGeneralIndividual-DaONNIwT-WoYrg7O0.js} +85 -80
  4. package/dist/{CardGeneralTeams-ByBEp-8b-CbLocm8U.js → CardGeneralTeams-CCfSIg5--ycGF0WJl.js} +147 -143
  5. package/dist/{CardIndividual-BR1r5B5u-DqflCygx.js → CardIndividual-B5YHR_4X-DC-zfHLx.js} +44 -44
  6. package/dist/CardIndividual1vs1-DEBY4dbB-V3PJhhY7.js +108 -0
  7. package/dist/{CardIndividualAreas-qEYtV2XP-C97pNpBa.js → CardIndividualAreas-D9mHXjfS-DrA6YV1T.js} +56 -55
  8. package/dist/{CardIndividualCenters-DURH48kE-BAeLhbBk.js → CardIndividualCenters-DeGyy9wB-BftpRpCL.js} +50 -49
  9. package/dist/{CardIndividualDistance-BKeSbWJ9-B6Vj1YLa.js → CardIndividualDistance-jUf26hS9-BTaa0gSa.js} +31 -31
  10. package/dist/{CardIndividualFouls-BqWT8Bzx-D0EDbSJl.js → CardIndividualFouls-DF0AvPys-C61mrpb7.js} +27 -26
  11. package/dist/CardIndividualGoalParticipation-CGVwsTkf-BsIXMNqX.js +111 -0
  12. package/dist/{CardIndividualGoals-CBAA7DE3-Dco1VuBc.js → CardIndividualGoals-CjrXz7Zv-Cg_lAqNg.js} +54 -53
  13. package/dist/{CardIndividualGold-BBYsUCND-BhqSGl0q.js → CardIndividualGold-Cp8DsHVJ-nOXX6qdb.js} +31 -30
  14. package/dist/{CardIndividualNoGoalReceived-HaDOJruE-CKzigvOP.js → CardIndividualNoGoalReceived-BNjVlC0Z-BtnbjfPl.js} +56 -56
  15. package/dist/{CardIndividualPerformance-CEPnHtE9-Da4MXSxk.js → CardIndividualPerformance-kbuWBDcK-CWDHQrku.js} +34 -30
  16. package/dist/{CardIndividualSaves-BqBRjEt7-CJBgPvne.js → CardIndividualSaves-BTCuv2ld-BJ7OrOnW.js} +70 -66
  17. package/dist/{CardIndividualShotsOnGoal-X_3YzAE3-CbiYLtzD.js → CardIndividualShotsOnGoal-B6fysQZQ-2WTo5bAB.js} +58 -48
  18. package/dist/{CardIndividualStatistics-D769xisE-D2KNSIfX.js → CardIndividualStatistics-B7vL_L1s-BYMwjEJD.js} +38 -38
  19. package/dist/{CardPromTournament-DFGqM4we-C4dX0pKz.js → CardPromTournament-DMe6axFO-DWI8msi-.js} +23 -23
  20. package/dist/{CardSuccessfulPasses-CTjMzZAt-Bv_X927S.js → CardSuccessfulPasses-ByzEm7s3-DmSHr8yg.js} +12 -12
  21. package/dist/CardTheMostProductive-CDDFIo-I-LQ50NbB5.js +75 -0
  22. package/dist/CircleWithDotsBig-5eFuZwDk-n956nNzk.js +151 -0
  23. package/dist/{Shield-BjoeEr7g-C7yufXoK.js → Shield-0VkASyDI-Cm8rtKBS.js} +60 -55
  24. package/dist/gsc-relevant-data.css +1 -1
  25. package/dist/gsc-relevant-data.js +924 -893
  26. package/dist/gsc-relevant-data.umd.cjs +6 -6
  27. package/package.json +2 -2
  28. package/dist/CardGeneral-D2PYPb95-DycFnfDS.js +0 -116
  29. package/dist/CardIndividual1vs1-DPov_cGc-DtWs-qcq.js +0 -487
  30. package/dist/CardIndividualGoalParticipation-CRBepIcB-CBc1Wh03.js +0 -108
  31. package/dist/CardTheMostProductive-DzbDtzZn-Dewb8MoQ.js +0 -74
  32. package/dist/CircleWithDotsBig-DfppYko9-BYZNX7zX.js +0 -91
  33. /package/dist/{misc-BJvl3Yld-2p2XKW1m.js → misc-BbzSgyER-2p2XKW1m.js} +0 -0
@@ -1,18 +1,6 @@
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-BJvl3Yld-2p2XKW1m.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 = {
1
+ import { computed as i, openBlock as o, createElementBlock as a, normalizeStyle as p, 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 m } from "vue";
2
+ import { h as b, T as H } from "./misc-BbzSgyER-2p2XKW1m.js";
3
+ const w = { class: "circle__total" }, P = { class: "total" }, T = { class: "suffix" }, $ = ["width", "height", "viewBox"], L = ["stroke"], N = ["stroke"], z = ["stop-color"], U = ["stop-color"], I = {
16
4
  __name: "CircleWithDots",
17
5
  props: {
18
6
  height: {
@@ -55,14 +43,14 @@ const T = (e) => (H("data-v-8506632e"), e = e(), P(), e), L = { class: "circle__
55
43
  "--value-font-size": `${t.valueFontSize}px`,
56
44
  "--suffix-font-size": `${t.suffixFontSize}px`,
57
45
  "--color": t.textColor
58
- }));
59
- return (p, y) => (o(), a("div", {
46
+ })), c = `linear-gradient-${Date.now()}`;
47
+ return (y, d) => (o(), a("div", {
60
48
  class: "circle",
61
- style: f(n.value)
49
+ style: p(n.value)
62
50
  }, [
63
- r("div", L, [
64
- r("span", $, s(e.value), 1),
65
- r("span", N, s(e.suffix), 1)
51
+ r("div", w, [
52
+ r("span", P, s(e.value), 1),
53
+ r("span", T, s(e.suffix), 1)
66
54
  ]),
67
55
  (o(), a("svg", {
68
56
  width: n.value["--width"],
@@ -72,60 +60,72 @@ const T = (e) => (H("data-v-8506632e"), e = e(), P(), e), L = { class: "circle__
72
60
  fill: "none",
73
61
  xmlns: "http://www.w3.org/2000/svg"
74
62
  }, [
75
- I,
63
+ r("path", {
64
+ 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",
65
+ stroke: `url(#${c})`,
66
+ "stroke-width": "3.14",
67
+ "stroke-linecap": "round"
68
+ }, null, 8, L),
76
69
  r("path", {
77
70
  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
71
  stroke: e.color,
79
72
  "stroke-width": "0.380952",
80
73
  "stroke-linecap": "round",
81
74
  "stroke-dasharray": "0 0.19 2.61 0 0.19 2.61"
82
- }, null, 8, U),
75
+ }, null, 8, N),
83
76
  r("defs", null, [
84
- r("linearGradient", M, [
85
- r("stop", { "stop-color": e.color }, null, 8, O),
77
+ r("linearGradient", {
78
+ id: c,
79
+ x1: "34.5",
80
+ y1: "2",
81
+ x2: "34.5",
82
+ y2: "66",
83
+ gradientUnits: "userSpaceOnUse"
84
+ }, [
85
+ r("stop", { "stop-color": e.color }, null, 8, z),
86
86
  r("stop", {
87
87
  offset: "1",
88
88
  "stop-color": e.color
89
- }, null, 8, V)
89
+ }, null, 8, U)
90
90
  ])
91
91
  ])
92
- ], 8, z))
92
+ ], 8, $))
93
93
  ], 4));
94
94
  }
95
- }, m = /* @__PURE__ */ b(A, [["__scopeId", "data-v-8506632e"]]), E = {
95
+ }, D = /* @__PURE__ */ b(I, [["__scopeId", "data-v-b9adcb76"]]), M = {
96
96
  key: 0,
97
97
  class: "card-base-individual__content__player-img"
98
- }, R = ["src"], j = {
98
+ }, O = ["src"], V = {
99
99
  key: 1,
100
100
  class: "card-base-individual__content__team-logo"
101
- }, Z = ["src"], G = {
101
+ }, A = ["src"], E = {
102
102
  key: 0,
103
103
  class: "card-base-individual__content__footer__header"
104
- }, W = {
104
+ }, R = {
105
105
  key: 0,
106
106
  class: "card-base-individual__content__footer__header__title-and-sub ts"
107
- }, Y = {
107
+ }, j = {
108
108
  key: 0,
109
109
  class: "card-base-individual__content__footer__header__title"
110
- }, q = {
110
+ }, Z = {
111
111
  key: 1,
112
112
  class: "card-base-individual__content__footer__header__subtitle"
113
- }, J = {
113
+ }, G = {
114
114
  key: 0,
115
115
  class: "th"
116
- }, K = {
116
+ }, W = {
117
117
  key: 1,
118
118
  class: "total th"
119
- }, Q = {
119
+ }, Y = {
120
120
  key: 1,
121
121
  class: "card-base-individual__content__footer__body"
122
- }, X = ["innerHTML"], tt = {
122
+ }, q = ["innerHTML"], J = {
123
123
  key: 0,
124
124
  class: "total-b"
125
- }, et = {
125
+ }, K = {
126
126
  key: 1,
127
127
  class: "total total-b"
128
- }, ot = { class: "card-base-individual__content__body" }, at = {
128
+ }, Q = { class: "card-base-individual__content__body" }, X = {
129
129
  __name: "CardBaseAllIndividual",
130
130
  props: {
131
131
  height: {
@@ -216,21 +216,21 @@ const T = (e) => (H("data-v-8506632e"), e = e(), P(), e), L = { class: "circle__
216
216
  },
217
217
  setup(e) {
218
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;
219
+ var d, f, h, g;
220
+ const _ = t.footerBodyData && t.footerBodyData.description && t.footerBodyData.total, C = t.footerHeaderData && t.footerHeaderData.title && t.footerHeaderData.total;
221
221
  return {
222
222
  "--height": t.height,
223
223
  "--width": t.width,
224
224
  "--footer-background-color": t.cardColor || "#000000",
225
225
  "--text-color": t.textColor || "#FFFFFF",
226
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",
227
+ "--footer-header-text-color": ((f = t.footerHeaderData) == null ? void 0 : f.textColor) || "#FFFFFF",
228
228
  "--footer-height": t.footerHeight,
229
229
  "--footer-width": t.goldCardType ? "263px" : "auto",
230
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",
231
+ "--total-color": ((h = t.footerBodyData) == null ? void 0 : h.totalTextColor) || ((g = t.footerHeaderData) == null ? void 0 : g.totalTextColor) || "#FFFFFF",
232
+ "--description-text-align": _ || t.footerHeaderData ? "left" : "center",
233
+ "--footer-body-template-columns": _ ? "1fr min-content" : "1fr",
234
234
  "--footer-header-template-columns": C ? t.footerHeaderData.isTotalLeft ? "min-content 1fr" : "1fr min-content" : "1fr",
235
235
  "--footer-header-grid-areas": C ? t.footerHeaderData.isTotalLeft ? '"th ts"' : '"ts th"' : '"ts"',
236
236
  "--player-photo-position-top": t.playerPhotoPositionTop,
@@ -243,73 +243,73 @@ const T = (e) => (H("data-v-8506632e"), e = e(), P(), e), L = { class: "circle__
243
243
  backgroundImageSrc: t.backgroundImageSrc,
244
244
  isPlayButtonVisible: !0,
245
245
  goldCardType: t.goldCardType
246
- })), p = i(() => ({}));
246
+ })), c = i(() => ({}));
247
247
  i(() => t.footerBodyData.total ? t.footerBodyData.isTotalPercentage ? `${t.footerBodyData.total}%` : t.footerBodyData.total : "");
248
248
  const y = i(() => {
249
249
  const d = [];
250
250
  return t.goldCardType && (t.goldCardType === 1 ? d.push("gold-card-1") : t.goldCardType === 2 && d.push("gold-card-2")), d;
251
251
  });
252
- return (d, c) => (o(), a("div", {
252
+ return (d, f) => (o(), a("div", {
253
253
  class: "card-base-individual",
254
- style: f(u.value)
254
+ style: p(u.value)
255
255
  }, [
256
- n.value ? (o(), F(w, k({ key: 0 }, n.value, { width: e.width }), {
256
+ n.value ? (o(), F(H, k({ key: 0 }, n.value, { width: e.width }), {
257
257
  default: S(() => [
258
258
  v(d.$slots, "default", {}, () => [
259
- p.value ? (o(), a("div", {
259
+ c.value ? (o(), a("div", {
260
260
  key: 0,
261
- style: f(u.value),
261
+ style: p(u.value),
262
262
  class: "card-base-individual__content"
263
263
  }, [
264
- e.playerPhotoUrl ? (o(), a("div", E, [
264
+ e.playerPhotoUrl ? (o(), a("div", M, [
265
265
  r("div", null, [
266
266
  r("img", {
267
267
  src: e.playerPhotoUrl,
268
268
  alt: "player"
269
- }, null, 8, R)
269
+ }, null, 8, O)
270
270
  ])
271
271
  ])) : l("", !0),
272
- e.teamLogoUrl ? (o(), a("div", j, [
272
+ e.teamLogoUrl ? (o(), a("div", V, [
273
273
  r("img", {
274
274
  src: e.teamLogoUrl,
275
275
  alt: "team"
276
- }, null, 8, Z)
276
+ }, null, 8, A)
277
277
  ])) : l("", !0),
278
278
  r("div", {
279
279
  class: B(["card-base-individual__content__footer", y.value])
280
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)
281
+ e.footerHeaderData ? (o(), a("div", E, [
282
+ e.footerHeaderData.title ? (o(), a("div", R, [
283
+ e.footerHeaderData.title ? (o(), a("div", j, s(e.footerHeaderData.title), 1)) : l("", !0),
284
+ e.footerHeaderData.title ? (o(), a("div", Z, s(e.footerHeaderData.subtitle), 1)) : l("", !0)
285
285
  ])) : l("", !0),
286
286
  e.footerHeaderData.total ? (o(), a(x, { key: 1 }, [
287
- e.footerHeaderData.isTotalPercentage ? (o(), a("div", J, [
288
- D(m, {
287
+ e.footerHeaderData.isTotalPercentage ? (o(), a("div", G, [
288
+ m(D, {
289
289
  value: e.footerHeaderData.total,
290
290
  "text-color": e.footerBodyData.totalTextColor,
291
291
  color: e.footerBodyData.totalCircleColor
292
292
  }, null, 8, ["value", "text-color", "color"])
293
- ])) : (o(), a("div", K, s(e.footerHeaderData.total), 1))
293
+ ])) : (o(), a("div", W, s(e.footerHeaderData.total), 1))
294
294
  ], 64)) : l("", !0)
295
295
  ])) : l("", !0),
296
- e.footerBodyData ? (o(), a("div", Q, [
296
+ e.footerBodyData ? (o(), a("div", Y, [
297
297
  r("div", {
298
298
  class: "card-base-individual__content__footer__body__description",
299
299
  innerHTML: e.footerBodyData.description
300
- }, null, 8, X),
300
+ }, null, 8, q),
301
301
  e.footerBodyData.total ? (o(), a(x, { key: 0 }, [
302
- e.footerBodyData.isTotalPercentage ? (o(), a("div", tt, [
303
- D(m, {
302
+ e.footerBodyData.isTotalPercentage ? (o(), a("div", J, [
303
+ m(D, {
304
304
  value: e.footerBodyData.total,
305
305
  "text-color": e.footerBodyData.totalTextColor,
306
306
  color: e.footerBodyData.totalCircleColor
307
307
  }, null, 8, ["value", "text-color", "color"])
308
- ])) : (o(), a("div", et, s(e.footerBodyData.total), 1))
308
+ ])) : (o(), a("div", K, s(e.footerBodyData.total), 1))
309
309
  ], 64)) : l("", !0)
310
310
  ])) : l("", !0)
311
311
  ], 2),
312
- r("div", ot, [
312
+ r("div", Q, [
313
313
  v(d.$slots, "body", {}, void 0, !0)
314
314
  ])
315
315
  ], 4)) : l("", !0)
@@ -319,7 +319,7 @@ const T = (e) => (H("data-v-8506632e"), e = e(), P(), e), L = { class: "circle__
319
319
  }, 16, ["width"])) : l("", !0)
320
320
  ], 4));
321
321
  }
322
- }, dt = /* @__PURE__ */ b(at, [["__scopeId", "data-v-9df4bb95"]]);
322
+ }, ot = /* @__PURE__ */ b(X, [["__scopeId", "data-v-c8248477"]]);
323
323
  export {
324
- dt as d
324
+ ot as o
325
325
  };
@@ -0,0 +1,126 @@
1
+ import { computed as u, openBlock as e, createElementBlock as o, normalizeStyle as y, createBlock as k, mergeProps as S, withCtx as x, renderSlot as w, createCommentVNode as i, createElementVNode as l, toDisplayString as m, Fragment as I, renderList as C, pushScopeId as L, popScopeId as T } from "vue";
2
+ import { h as O, E as g, I as A, O as E, T as N } from "./misc-BbzSgyER-2p2XKW1m.js";
3
+ const F = (a) => (L("data-v-4e37e48c"), a = a(), T(), a), $ = {
4
+ key: 0,
5
+ class: "card-general__content__player-img"
6
+ }, B = ["src"], H = {
7
+ key: 1,
8
+ class: "card-general__content__team-img"
9
+ }, M = ["src"], V = /* @__PURE__ */ F(() => /* @__PURE__ */ l("div", { class: "card-general__content__body" }, null, -1)), j = { class: "card-general__content__footer" }, z = { class: "card-general__content__footer__header" }, G = { class: "card-general__content__footer__header__team-logo" }, P = ["src"], q = { class: "card-general__content__footer__header__title" }, D = {
10
+ key: 0,
11
+ class: "card-general__content__footer__header__total"
12
+ }, J = { class: "card-general__content__footer__body" }, K = ["innerHTML"], Q = {
13
+ key: 0,
14
+ class: "card-general__content__footer__body__sections"
15
+ }, R = { class: "section__total" }, U = /* @__PURE__ */ F(() => /* @__PURE__ */ l("div", { class: "section__text" }, "PASES", -1)), W = {
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
+ descriptionType: {
31
+ type: Number,
32
+ default: 4
33
+ }
34
+ },
35
+ setup(a) {
36
+ const t = a, p = u(() => ({
37
+ "--height": t.height,
38
+ "--width": t.width,
39
+ "--player-in-action-height": "410px",
40
+ "--footer-background-color": (t.data.thumbnails.colors.background_color || "#000000").trim(),
41
+ "--text-color": (t.data.thumbnails.colors.font_color_description || "#FFFFFF").trim(),
42
+ "--title-color": (t.data.thumbnails.colors.font_color_header || "#FFFFFF").trim(),
43
+ "--total-color": (t.data.thumbnails.colors.font_color_stats || "#FFFFFF").trim(),
44
+ "--border": `1px dashed ${t.data.thumbnails.colors.graphic_color || "#000000"}`
45
+ })), h = u(() => !t.data || !t.data.thumbnails ? null : {
46
+ backgroundOverlayColor: (t.data.thumbnails.colors.background_color || "#000000").trim(),
47
+ backgroundImageSrc: t.data.is_player && t.data.thumbnails.images.background_player_in_action[0] ? g(t.data.thumbnails.images.background_player_in_action[0]) : g(t.data.thumbnails.images.background_team),
48
+ titleColor: (t.data.thumbnails.colors.font_color_header || "#FFFFFF").trim(),
49
+ textColor: (t.data.thumbnails.colors.font_color_description || "#FFFFFF").trim(),
50
+ totalColor: (t.data.thumbnails.colors.font_color_stats || "#FFFFFF").trim()
51
+ }), v = u(() => t.data ? A(E({ data: t.data, descriptionType: t.descriptionType })) : ""), n = u(() => {
52
+ if (!t.data) return null;
53
+ let s = t.data.team_logo, c = t.data.sections;
54
+ s && (s = s.replace("-80", "-150")), c && (c = c.sort((r, d) => r[0] - d[0]));
55
+ let _ = 0;
56
+ return c = c.reduce((r, [d, b], f) => (f % 4 === 0 && (r.push([]), _++), r[_ - 1].push([d, b]), r), []).reverse().reduce((r, d) => (r.push(...d), r), []), {
57
+ playerInAction: t.data.thumbnails.images && t.data.thumbnails.images.player_in_action ? g(t.data.thumbnails.images.player_in_action[0]) : "",
58
+ teamLogoSrc: s || "",
59
+ sections: c || []
60
+ };
61
+ });
62
+ return (s, c) => (e(), o("div", {
63
+ class: "card-general",
64
+ style: y(p.value)
65
+ }, [
66
+ h.value ? (e(), k(N, S({ key: 0 }, h.value, { width: a.width }), {
67
+ default: x(() => [
68
+ w(s.$slots, "default", {}, () => [
69
+ n.value ? (e(), o("div", {
70
+ key: 0,
71
+ style: y(p.value),
72
+ class: "card-general__content"
73
+ }, [
74
+ a.data.is_player ? (e(), o("div", $, [
75
+ n.value.playerInAction ? (e(), o("img", {
76
+ key: 0,
77
+ src: n.value.playerInAction,
78
+ alt: "player"
79
+ }, null, 8, B)) : i("", !0)
80
+ ])) : (e(), o("div", H, [
81
+ n.value.teamLogoSrc ? (e(), o("img", {
82
+ key: 0,
83
+ src: n.value.teamLogoSrc,
84
+ alt: "team"
85
+ }, null, 8, M)) : i("", !0)
86
+ ])),
87
+ V,
88
+ l("div", j, [
89
+ l("div", z, [
90
+ l("div", G, [
91
+ a.data.team_logo ? (e(), o("img", {
92
+ key: 0,
93
+ src: a.data.team_logo,
94
+ alt: ""
95
+ }, null, 8, P)) : i("", !0)
96
+ ]),
97
+ l("div", q, m(a.data.title), 1),
98
+ a.data.footer && a.data.footer.show_total ? (e(), o("div", D, m(a.data.total), 1)) : i("", !0)
99
+ ]),
100
+ l("div", J, [
101
+ l("div", {
102
+ class: "card-general__content__footer__body__description",
103
+ innerHTML: v.value
104
+ }, null, 8, K),
105
+ n.value.sections && n.value.sections.length ? (e(), o("div", Q, [
106
+ (e(!0), o(I, null, C(n.value.sections, ([_, r]) => (e(), o("div", {
107
+ key: _,
108
+ class: "section"
109
+ }, [
110
+ l("div", R, m(r), 1),
111
+ U
112
+ ]))), 128))
113
+ ])) : i("", !0)
114
+ ])
115
+ ])
116
+ ], 4)) : i("", !0)
117
+ ], !0)
118
+ ]),
119
+ _: 3
120
+ }, 16, ["width"])) : i("", !0)
121
+ ], 4));
122
+ }
123
+ }, Z = /* @__PURE__ */ O(W, [["__scopeId", "data-v-4e37e48c"]]);
124
+ export {
125
+ Z as default
126
+ };