@golstats/gsc-relevant-data 1.0.0
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.
- package/README.md +2 -0
- package/dist/CardBaseAllIndividual-CpLwmpxV-Bc8VFXza.js +317 -0
- package/dist/CardGeneral-D0BMiBmL-C0rR-Nqy.js +117 -0
- package/dist/CardGeneralIndividual-f2u4-O5z-C8qSk2ZP.js +283 -0
- package/dist/CardGeneralTeams-BugMltuL-jAVCLYwc.js +654 -0
- package/dist/CardIndividual-Djao6vh9-DiEv-R-x.js +517 -0
- package/dist/CardIndividual1vs1-DxmYXrZt-VWRE1Jnn.js +487 -0
- package/dist/CardIndividualAreas-DCEyaPFO-CV19-ED0.js +503 -0
- package/dist/CardIndividualCenters-CZ6R6CQC-BbZdDIG4.js +543 -0
- package/dist/CardIndividualDistance-BtzJn6DO-B9DmMKmb.js +92 -0
- package/dist/CardIndividualFouls-DA2uUpkN-G063fivP.js +668 -0
- package/dist/CardIndividualGoalParticipation-C6N8YWZ7-BBDvF9qE.js +108 -0
- package/dist/CardIndividualGoals-BWKYR75U-CaM_xOCF.js +733 -0
- package/dist/CardIndividualGold-C_yvirGi-DYjhrhjN.js +85 -0
- package/dist/CardIndividualNoGoalReceived-DPpo0vXy-DIYbziTw.js +194 -0
- package/dist/CardIndividualPerformance-DY4TUCAR-Bjd3FXFD.js +99 -0
- package/dist/CardIndividualSaves-BletFHHX-CGXOSbuq.js +241 -0
- package/dist/CardIndividualShotsOnGoal-0P73K_EQ-CfLpL58V.js +169 -0
- package/dist/CardIndividualStatistics-DVWc9DiK-BgvfrAmo.js +219 -0
- package/dist/CardPromTournament-eMFIArta-BcFoywcp.js +113 -0
- package/dist/CardTheMostProductive-C7hYUshr-LYtT-N3v.js +67 -0
- package/dist/CircleWithDotsBig-Cgc7uMsq-BSImM12y.js +91 -0
- package/dist/Shield-0GBj95uW-D49zz1Xd.js +135 -0
- package/dist/TimeSvg-Cxp_p6OH-cZfI6hDf.js +95 -0
- package/dist/css/fonts.css +145 -0
- package/dist/favicon.ico +0 -0
- package/dist/fonts/BebasNeue-Bold.otf +0 -0
- package/dist/fonts/BebasNeue-Bold.ttf +0 -0
- package/dist/fonts/BebasNeue-Bold.woff2 +0 -0
- package/dist/fonts/BebasNeue-Book.otf +0 -0
- package/dist/fonts/BebasNeue-Book.ttf +0 -0
- package/dist/fonts/BebasNeue-Book.woff2 +0 -0
- package/dist/fonts/BebasNeue-Light.otf +0 -0
- package/dist/fonts/BebasNeue-Light.ttf +0 -0
- package/dist/fonts/BebasNeue-Light.woff2 +0 -0
- package/dist/fonts/BebasNeue-Regular.otf +0 -0
- package/dist/fonts/BebasNeue-Regular.ttf +0 -0
- package/dist/fonts/BebasNeue-Regular.woff2 +0 -0
- package/dist/fonts/BebasNeue-Thin.otf +0 -0
- package/dist/fonts/BebasNeue-Thin.ttf +0 -0
- package/dist/fonts/BebasNeue-Thin.woff2 +0 -0
- package/dist/fonts/Inter_18pt-Black.ttf +0 -0
- package/dist/fonts/Inter_18pt-BlackItalic.ttf +0 -0
- package/dist/fonts/Inter_18pt-Bold.ttf +0 -0
- package/dist/fonts/Inter_18pt-BoldItalic.ttf +0 -0
- package/dist/fonts/Inter_18pt-ExtraBold.ttf +0 -0
- package/dist/fonts/Inter_18pt-ExtraBoldItalic.ttf +0 -0
- package/dist/fonts/Inter_18pt-ExtraLight.ttf +0 -0
- package/dist/fonts/Inter_18pt-ExtraLightItalic.ttf +0 -0
- package/dist/fonts/Inter_18pt-Italic.ttf +0 -0
- package/dist/fonts/Inter_18pt-Light.ttf +0 -0
- package/dist/fonts/Inter_18pt-LightItalic.ttf +0 -0
- package/dist/fonts/Inter_18pt-Medium.ttf +0 -0
- package/dist/fonts/Inter_18pt-MediumItalic.ttf +0 -0
- package/dist/fonts/Inter_18pt-Regular.ttf +0 -0
- package/dist/fonts/Inter_18pt-SemiBold.ttf +0 -0
- package/dist/fonts/Inter_18pt-SemiBoldItalic.ttf +0 -0
- package/dist/fonts/Inter_18pt-Thin.ttf +0 -0
- package/dist/fonts/Inter_18pt-ThinItalic.ttf +0 -0
- package/dist/fonts/Inter_24pt-Black.ttf +0 -0
- package/dist/fonts/Inter_24pt-BlackItalic.ttf +0 -0
- package/dist/fonts/Inter_24pt-Bold.ttf +0 -0
- package/dist/fonts/Inter_24pt-BoldItalic.ttf +0 -0
- package/dist/fonts/Inter_24pt-ExtraBold.ttf +0 -0
- package/dist/fonts/Inter_24pt-ExtraBoldItalic.ttf +0 -0
- package/dist/fonts/Inter_24pt-ExtraLight.ttf +0 -0
- package/dist/fonts/Inter_24pt-ExtraLightItalic.ttf +0 -0
- package/dist/fonts/Inter_24pt-Italic.ttf +0 -0
- package/dist/fonts/Inter_24pt-Light.ttf +0 -0
- package/dist/fonts/Inter_24pt-LightItalic.ttf +0 -0
- package/dist/fonts/Inter_24pt-Medium.ttf +0 -0
- package/dist/fonts/Inter_24pt-MediumItalic.ttf +0 -0
- package/dist/fonts/Inter_24pt-Regular.ttf +0 -0
- package/dist/fonts/Inter_24pt-SemiBold.ttf +0 -0
- package/dist/fonts/Inter_24pt-SemiBoldItalic.ttf +0 -0
- package/dist/fonts/Inter_24pt-Thin.ttf +0 -0
- package/dist/fonts/Inter_24pt-ThinItalic.ttf +0 -0
- package/dist/fonts/Inter_28pt-Black.ttf +0 -0
- package/dist/fonts/Inter_28pt-BlackItalic.ttf +0 -0
- package/dist/fonts/Inter_28pt-Bold.ttf +0 -0
- package/dist/fonts/Inter_28pt-BoldItalic.ttf +0 -0
- package/dist/fonts/Inter_28pt-ExtraBold.ttf +0 -0
- package/dist/fonts/Inter_28pt-ExtraBoldItalic.ttf +0 -0
- package/dist/fonts/Inter_28pt-ExtraLight.ttf +0 -0
- package/dist/fonts/Inter_28pt-ExtraLightItalic.ttf +0 -0
- package/dist/fonts/Inter_28pt-Italic.ttf +0 -0
- package/dist/fonts/Inter_28pt-Light.ttf +0 -0
- package/dist/fonts/Inter_28pt-LightItalic.ttf +0 -0
- package/dist/fonts/Inter_28pt-Medium.ttf +0 -0
- package/dist/fonts/Inter_28pt-MediumItalic.ttf +0 -0
- package/dist/fonts/Inter_28pt-Regular.ttf +0 -0
- package/dist/fonts/Inter_28pt-SemiBold.ttf +0 -0
- package/dist/fonts/Inter_28pt-SemiBoldItalic.ttf +0 -0
- package/dist/fonts/Inter_28pt-Thin.ttf +0 -0
- package/dist/fonts/Inter_28pt-ThinItalic.ttf +0 -0
- package/dist/fonts/Montserrat-Black.otf +0 -0
- package/dist/fonts/Montserrat-BlackItalic.otf +0 -0
- package/dist/fonts/Montserrat-Bold.otf +0 -0
- package/dist/fonts/Montserrat-BoldItalic.otf +0 -0
- package/dist/fonts/Montserrat-ExtraBold.otf +0 -0
- package/dist/fonts/Montserrat-ExtraBoldItalic.otf +0 -0
- package/dist/fonts/Montserrat-ExtraLight.otf +0 -0
- package/dist/fonts/Montserrat-ExtraLightItalic.otf +0 -0
- package/dist/fonts/Montserrat-Italic.otf +0 -0
- package/dist/fonts/Montserrat-Light.otf +0 -0
- package/dist/fonts/Montserrat-LightItalic.otf +0 -0
- package/dist/fonts/Montserrat-Medium.otf +0 -0
- package/dist/fonts/Montserrat-MediumItalic.otf +0 -0
- package/dist/fonts/Montserrat-Regular.otf +0 -0
- package/dist/fonts/Montserrat-SemiBold.otf +0 -0
- package/dist/fonts/Montserrat-SemiBoldItalic.otf +0 -0
- package/dist/fonts/Montserrat-Thin.otf +0 -0
- package/dist/fonts/Montserrat-ThinItalic.otf +0 -0
- package/dist/fonts/Oswald-Bold.ttf +0 -0
- package/dist/fonts/Oswald-ExtraLight.ttf +0 -0
- package/dist/fonts/Oswald-Light.ttf +0 -0
- package/dist/fonts/Oswald-Medium.ttf +0 -0
- package/dist/fonts/Oswald-Regular.ttf +0 -0
- package/dist/fonts/Oswald-SemiBold.ttf +0 -0
- package/dist/fonts/Poppins-Black.otf +0 -0
- package/dist/fonts/Poppins-BlackItalic.otf +0 -0
- package/dist/fonts/Poppins-Bold.otf +0 -0
- package/dist/fonts/Poppins-BoldItalic.otf +0 -0
- package/dist/fonts/Poppins-ExtraBold.otf +0 -0
- package/dist/fonts/Poppins-ExtraBoldItalic.otf +0 -0
- package/dist/fonts/Poppins-ExtraLight.otf +0 -0
- package/dist/fonts/Poppins-ExtraLightItalic.otf +0 -0
- package/dist/fonts/Poppins-Italic.otf +0 -0
- package/dist/fonts/Poppins-Light.otf +0 -0
- package/dist/fonts/Poppins-LightItalic.otf +0 -0
- package/dist/fonts/Poppins-Medium.otf +0 -0
- package/dist/fonts/Poppins-MediumItalic.otf +0 -0
- package/dist/fonts/Poppins-Regular.otf +0 -0
- package/dist/fonts/Poppins-SemiBold.otf +0 -0
- package/dist/fonts/Poppins-SemiBoldItalic.otf +0 -0
- package/dist/fonts/Poppins-Thin.otf +0 -0
- package/dist/fonts/Poppins-ThinItalic.otf +0 -0
- package/dist/gsc-relevant-data.css +1 -0
- package/dist/gsc-relevant-data.js +4849 -0
- package/dist/gsc-relevant-data.umd.cjs +6 -0
- package/dist/images/centers/cancha-centros-01.svg +31 -0
- package/dist/images/centers/cancha-centros-02.svg +31 -0
- package/dist/images/centers/cancha-centros-03.svg +31 -0
- package/dist/images/centers/icn-cronometro.svg +6 -0
- package/dist/images/fouls/cancha-faltas-recibidas-01.svg +33 -0
- package/dist/images/fouls/cancha-faltas-recibidas-02.svg +33 -0
- package/dist/images/fouls/cancha-faltas-recibidas-03.svg +33 -0
- package/dist/images/fouls/icn-faltas@3x.svg +13 -0
- package/dist/images/generals/azul1.jpg +0 -0
- package/dist/images/generals/background-player-in-action.jpg +0 -0
- package/dist/images/generals/background.png +0 -0
- package/dist/images/generals/bajdf.jpg +0 -0
- package/dist/images/generals/beltran1.jpg +0 -0
- package/dist/images/generals/brune1.jpeg +0 -0
- package/dist/images/generals/canales1.jpeg +0 -0
- package/dist/images/generals/fernadob1.jpeg +0 -0
- package/dist/images/generals/gig1.jpg +0 -0
- package/dist/images/generals/gigante1.jpg +0 -0
- package/dist/images/generals/icn-arquitecto@3x.png +0 -0
- package/dist/images/generals/icn-drible@3x.png +0 -0
- package/dist/images/generals/icn-drible@3xazul.png +0 -0
- package/dist/images/generals/icn-rudo@3x.png +0 -0
- package/dist/images/generals/kraken1.jpg +0 -0
- package/dist/images/generals/mazaplayer1.jpeg +0 -0
- package/dist/images/generals/player-in-action.png +0 -0
- package/dist/images/generals/player@3x.png +0 -0
- package/dist/images/generals/player@3x2.png +0 -0
- package/dist/images/generals/player@3x3.png +0 -0
- package/dist/images/generals/player@3x4.png +0 -0
- package/dist/images/generals/player@3x5.png +0 -0
- package/dist/images/generals/player@3x6.png +0 -0
- package/dist/images/generals/player@3x7.png +0 -0
- package/dist/images/generals/rocha2.jpg +0 -0
- package/dist/images/generals/saves1.jpeg +0 -0
- package/dist/images/generals/saves2.png +0 -0
- package/dist/images/generals/torofer1.jpg +0 -0
- package/dist/images/shield/player@2x.png +0 -0
- package/dist/misc-DLvOYaKK-DfIF8CUY.js +161 -0
- package/package.json +42 -0
package/README.md
ADDED
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
import { computed as n, openBlock as o, createElementBlock as a, normalizeStyle as f, createBlock as b, mergeProps as F, withCtx as k, renderSlot as v, createElementVNode as r, createCommentVNode as l, toDisplayString as s, Fragment as C, createVNode as x, pushScopeId as S, popScopeId as B } from "vue";
|
|
2
|
+
import { h as m, T as H } from "./misc-DLvOYaKK-DfIF8CUY.js";
|
|
3
|
+
const P = (e) => (S("data-v-8506632e"), e = e(), B(), e), w = { class: "circle__total" }, T = { class: "total" }, L = { class: "suffix" }, $ = ["width", "height", "viewBox"], N = /* @__PURE__ */ P(() => /* @__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)), I = ["stroke"], U = {
|
|
9
|
+
id: "paint0_linear_2182_6770",
|
|
10
|
+
x1: "34.5",
|
|
11
|
+
y1: "2",
|
|
12
|
+
x2: "34.5",
|
|
13
|
+
y2: "66",
|
|
14
|
+
gradientUnits: "userSpaceOnUse"
|
|
15
|
+
}, z = ["stop-color"], M = ["stop-color"], O = {
|
|
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 = n(() => `0 0 ${t.width} ${t.height}`), i = n(() => ({
|
|
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, d) => (o(), a("div", {
|
|
60
|
+
class: "circle",
|
|
61
|
+
style: f(i.value)
|
|
62
|
+
}, [
|
|
63
|
+
r("div", w, [
|
|
64
|
+
r("span", T, s(e.value), 1),
|
|
65
|
+
r("span", L, s(e.suffix), 1)
|
|
66
|
+
]),
|
|
67
|
+
(o(), a("svg", {
|
|
68
|
+
width: i.value["--width"],
|
|
69
|
+
height: i.value["--height"],
|
|
70
|
+
viewBox: u.value,
|
|
71
|
+
preserveAspectRatio: "xMidYMid meet",
|
|
72
|
+
fill: "none",
|
|
73
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
74
|
+
}, [
|
|
75
|
+
N,
|
|
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, I),
|
|
83
|
+
r("defs", null, [
|
|
84
|
+
r("linearGradient", U, [
|
|
85
|
+
r("stop", { "stop-color": e.color }, null, 8, z),
|
|
86
|
+
r("stop", {
|
|
87
|
+
offset: "1",
|
|
88
|
+
"stop-color": e.color
|
|
89
|
+
}, null, 8, M)
|
|
90
|
+
])
|
|
91
|
+
])
|
|
92
|
+
], 8, $))
|
|
93
|
+
], 4));
|
|
94
|
+
}
|
|
95
|
+
}, D = /* @__PURE__ */ m(O, [["__scopeId", "data-v-8506632e"]]), V = {
|
|
96
|
+
key: 0,
|
|
97
|
+
class: "card-base-individual__content__player-img"
|
|
98
|
+
}, A = ["src"], E = {
|
|
99
|
+
key: 1,
|
|
100
|
+
class: "card-base-individual__content__team-logo"
|
|
101
|
+
}, R = ["src"], j = { class: "card-base-individual__content__footer" }, Z = {
|
|
102
|
+
key: 0,
|
|
103
|
+
class: "card-base-individual__content__footer__header"
|
|
104
|
+
}, G = {
|
|
105
|
+
key: 0,
|
|
106
|
+
class: "card-base-individual__content__footer__header__title-and-sub ts"
|
|
107
|
+
}, W = {
|
|
108
|
+
key: 0,
|
|
109
|
+
class: "card-base-individual__content__footer__header__title"
|
|
110
|
+
}, Y = {
|
|
111
|
+
key: 1,
|
|
112
|
+
class: "card-base-individual__content__footer__header__subtitle"
|
|
113
|
+
}, q = {
|
|
114
|
+
key: 0,
|
|
115
|
+
class: "th"
|
|
116
|
+
}, J = {
|
|
117
|
+
key: 1,
|
|
118
|
+
class: "total th"
|
|
119
|
+
}, K = {
|
|
120
|
+
key: 1,
|
|
121
|
+
class: "card-base-individual__content__footer__body"
|
|
122
|
+
}, Q = ["innerHTML"], X = {
|
|
123
|
+
key: 0,
|
|
124
|
+
class: "total-b"
|
|
125
|
+
}, tt = {
|
|
126
|
+
key: 1,
|
|
127
|
+
class: "total total-b"
|
|
128
|
+
}, et = { class: "card-base-individual__content__body" }, ot = {
|
|
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 = n(() => {
|
|
219
|
+
var d, c, y, h;
|
|
220
|
+
const _ = t.footerBodyData && t.footerBodyData.description && t.footerBodyData.total, g = 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-padding": t.footerPadding,
|
|
230
|
+
"--total-color": ((y = t.footerBodyData) == null ? void 0 : y.totalTextColor) || ((h = t.footerHeaderData) == null ? void 0 : h.totalTextColor) || "#FFFFFF",
|
|
231
|
+
"--description-text-align": _ || t.footerHeaderData ? "left" : "center",
|
|
232
|
+
"--footer-body-template-columns": _ ? "1fr min-content" : "1fr",
|
|
233
|
+
"--footer-header-template-columns": g ? t.footerHeaderData.isTotalLeft ? "min-content 1fr" : "1fr min-content" : "1fr",
|
|
234
|
+
"--footer-header-grid-areas": g ? t.footerHeaderData.isTotalLeft ? '"th ts"' : '"ts th"' : '"ts"',
|
|
235
|
+
"--player-photo-position-top": t.playerPhotoPositionTop,
|
|
236
|
+
"--player-photo-position-left": t.playerPhotoPositionLeft,
|
|
237
|
+
"--player-photo-position-right": t.playerPhotoPositionRight,
|
|
238
|
+
"--player-photo-height": t.playerPhotoHeight
|
|
239
|
+
};
|
|
240
|
+
}), i = n(() => ({
|
|
241
|
+
backgroundOverlayColor: t.cardColor,
|
|
242
|
+
backgroundImageSrc: t.backgroundImageSrc,
|
|
243
|
+
isPlayButtonVisible: !0,
|
|
244
|
+
goldCardType: t.goldCardType
|
|
245
|
+
})), p = n(() => ({}));
|
|
246
|
+
return n(() => t.footerBodyData.total ? t.footerBodyData.isTotalPercentage ? `${t.footerBodyData.total}%` : t.footerBodyData.total : ""), (d, c) => (o(), a("div", {
|
|
247
|
+
class: "card-base-individual",
|
|
248
|
+
style: f(u.value)
|
|
249
|
+
}, [
|
|
250
|
+
i.value ? (o(), b(H, F({ key: 0 }, i.value, { width: e.width }), {
|
|
251
|
+
default: k(() => [
|
|
252
|
+
v(d.$slots, "default", {}, () => [
|
|
253
|
+
p.value ? (o(), a("div", {
|
|
254
|
+
key: 0,
|
|
255
|
+
style: f(u.value),
|
|
256
|
+
class: "card-base-individual__content"
|
|
257
|
+
}, [
|
|
258
|
+
e.playerPhotoUrl ? (o(), a("div", V, [
|
|
259
|
+
r("div", null, [
|
|
260
|
+
r("img", {
|
|
261
|
+
src: e.playerPhotoUrl,
|
|
262
|
+
alt: "player"
|
|
263
|
+
}, null, 8, A)
|
|
264
|
+
])
|
|
265
|
+
])) : l("", !0),
|
|
266
|
+
e.teamLogoUrl ? (o(), a("div", E, [
|
|
267
|
+
r("img", {
|
|
268
|
+
src: e.teamLogoUrl,
|
|
269
|
+
alt: "team"
|
|
270
|
+
}, null, 8, R)
|
|
271
|
+
])) : l("", !0),
|
|
272
|
+
r("div", j, [
|
|
273
|
+
e.footerHeaderData ? (o(), a("div", Z, [
|
|
274
|
+
e.footerHeaderData.title ? (o(), a("div", G, [
|
|
275
|
+
e.footerHeaderData.title ? (o(), a("div", W, s(e.footerHeaderData.title), 1)) : l("", !0),
|
|
276
|
+
e.footerHeaderData.title ? (o(), a("div", Y, s(e.footerHeaderData.subtitle), 1)) : l("", !0)
|
|
277
|
+
])) : l("", !0),
|
|
278
|
+
e.footerHeaderData.total ? (o(), a(C, { key: 1 }, [
|
|
279
|
+
e.footerHeaderData.isTotalPercentage ? (o(), a("div", q, [
|
|
280
|
+
x(D, {
|
|
281
|
+
value: e.footerHeaderData.total,
|
|
282
|
+
"text-color": e.footerBodyData.totalTextColor,
|
|
283
|
+
color: e.footerBodyData.totalCircleColor
|
|
284
|
+
}, null, 8, ["value", "text-color", "color"])
|
|
285
|
+
])) : (o(), a("div", J, s(e.footerHeaderData.total), 1))
|
|
286
|
+
], 64)) : l("", !0)
|
|
287
|
+
])) : l("", !0),
|
|
288
|
+
e.footerBodyData ? (o(), a("div", K, [
|
|
289
|
+
r("div", {
|
|
290
|
+
class: "card-base-individual__content__footer__body__description",
|
|
291
|
+
innerHTML: e.footerBodyData.description
|
|
292
|
+
}, null, 8, Q),
|
|
293
|
+
e.footerBodyData.total ? (o(), a(C, { key: 0 }, [
|
|
294
|
+
e.footerBodyData.isTotalPercentage ? (o(), a("div", X, [
|
|
295
|
+
x(D, {
|
|
296
|
+
value: e.footerBodyData.total,
|
|
297
|
+
"text-color": e.footerBodyData.totalTextColor,
|
|
298
|
+
color: e.footerBodyData.totalCircleColor
|
|
299
|
+
}, null, 8, ["value", "text-color", "color"])
|
|
300
|
+
])) : (o(), a("div", tt, s(e.footerBodyData.total), 1))
|
|
301
|
+
], 64)) : l("", !0)
|
|
302
|
+
])) : l("", !0)
|
|
303
|
+
]),
|
|
304
|
+
r("div", et, [
|
|
305
|
+
v(d.$slots, "body", {}, void 0, !0)
|
|
306
|
+
])
|
|
307
|
+
], 4)) : l("", !0)
|
|
308
|
+
], !0)
|
|
309
|
+
]),
|
|
310
|
+
_: 3
|
|
311
|
+
}, 16, ["width"])) : l("", !0)
|
|
312
|
+
], 4));
|
|
313
|
+
}
|
|
314
|
+
}, lt = /* @__PURE__ */ m(ot, [["__scopeId", "data-v-a9540c1e"]]);
|
|
315
|
+
export {
|
|
316
|
+
lt as l
|
|
317
|
+
};
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { computed as g, openBlock as t, createElementBlock as o, normalizeStyle as y, createBlock as w, mergeProps as x, withCtx as I, renderSlot as F, createCommentVNode as d, createElementVNode as l, toDisplayString as m, Fragment as L, renderList as A, pushScopeId as T, popScopeId as z } from "vue";
|
|
2
|
+
import { h as C, z as p, I as $, T as B } from "./misc-DLvOYaKK-DfIF8CUY.js";
|
|
3
|
+
const b = (a) => (T("data-v-8bdab7fa"), a = a(), z(), a), E = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "card-general__content__player-img"
|
|
6
|
+
}, H = ["src"], M = {
|
|
7
|
+
key: 1,
|
|
8
|
+
class: "card-general__content__team-img"
|
|
9
|
+
}, N = ["src"], O = /* @__PURE__ */ b(() => /* @__PURE__ */ l("div", { class: "card-general__content__body" }, null, -1)), V = { class: "card-general__content__footer" }, j = { class: "card-general__content__footer__header" }, D = { class: "card-general__content__footer__header__team-logo" }, P = ["src"], q = { class: "card-general__content__footer__header__title" }, G = {
|
|
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__ */ b(() => /* @__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
|
+
},
|
|
31
|
+
setup(a) {
|
|
32
|
+
const e = a, h = g(() => ({
|
|
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
|
+
})), v = g(() => !e.data || !e.data.thumbnails ? null : {
|
|
39
|
+
backgroundOverlayColor: (e.data.thumbnails.colors.background_color || "#000000").trim(),
|
|
40
|
+
backgroundImageSrc: e.data.is_player ? p(e.data.thumbnails.images.background_player_in_action[0]) : p(e.data.thumbnails.images.background_team)
|
|
41
|
+
}), f = g(() => e.data ? $(e.data.description) : ""), r = g(() => {
|
|
42
|
+
if (!e.data) return null;
|
|
43
|
+
let s = e.data.team_logo, c = e.data.sections;
|
|
44
|
+
s && (s = s.replace("-80", "-150")), c && (c = c.sort((n, _) => n[0] - _[0]));
|
|
45
|
+
let i = 0;
|
|
46
|
+
const u = c.reduce((n, [_, k], S) => (S % 4 === 0 && (n.push([]), i++), n[i - 1].push([_, k]), n), []);
|
|
47
|
+
return c = u.reverse().reduce((n, _) => (n.push(..._), n), []), console.log("sectionsAux", u), {
|
|
48
|
+
playerInAction: e.data.thumbnails.images && e.data.thumbnails.images.player_in_action ? p(e.data.thumbnails.images.player_in_action[0]) : "",
|
|
49
|
+
teamLogoSrc: s || "",
|
|
50
|
+
sections: c || []
|
|
51
|
+
};
|
|
52
|
+
});
|
|
53
|
+
return (s, c) => (t(), o("div", {
|
|
54
|
+
class: "card-general",
|
|
55
|
+
style: y(h.value)
|
|
56
|
+
}, [
|
|
57
|
+
v.value ? (t(), w(B, x({ key: 0 }, v.value, { width: a.width }), {
|
|
58
|
+
default: I(() => [
|
|
59
|
+
F(s.$slots, "default", {}, () => [
|
|
60
|
+
r.value ? (t(), o("div", {
|
|
61
|
+
key: 0,
|
|
62
|
+
style: y(h.value),
|
|
63
|
+
class: "card-general__content"
|
|
64
|
+
}, [
|
|
65
|
+
a.data.is_player ? (t(), o("div", E, [
|
|
66
|
+
r.value.playerInAction ? (t(), o("img", {
|
|
67
|
+
key: 0,
|
|
68
|
+
src: r.value.playerInAction,
|
|
69
|
+
alt: "player"
|
|
70
|
+
}, null, 8, H)) : d("", !0)
|
|
71
|
+
])) : (t(), o("div", M, [
|
|
72
|
+
r.value.teamLogoSrc ? (t(), o("img", {
|
|
73
|
+
key: 0,
|
|
74
|
+
src: r.value.teamLogoSrc,
|
|
75
|
+
alt: "team"
|
|
76
|
+
}, null, 8, N)) : d("", !0)
|
|
77
|
+
])),
|
|
78
|
+
O,
|
|
79
|
+
l("div", V, [
|
|
80
|
+
l("div", j, [
|
|
81
|
+
l("div", D, [
|
|
82
|
+
a.data.team_logo ? (t(), o("img", {
|
|
83
|
+
key: 0,
|
|
84
|
+
src: a.data.team_logo,
|
|
85
|
+
alt: ""
|
|
86
|
+
}, null, 8, P)) : d("", !0)
|
|
87
|
+
]),
|
|
88
|
+
l("div", q, m(a.data.title), 1),
|
|
89
|
+
a.data.footer && a.data.footer.show_total ? (t(), o("div", G, m(a.data.total), 1)) : d("", !0)
|
|
90
|
+
]),
|
|
91
|
+
l("div", J, [
|
|
92
|
+
l("div", {
|
|
93
|
+
class: "card-general__content__footer__body__description",
|
|
94
|
+
innerHTML: f.value
|
|
95
|
+
}, null, 8, K),
|
|
96
|
+
r.value.sections && r.value.sections.length ? (t(), o("div", Q, [
|
|
97
|
+
(t(!0), o(L, null, A(r.value.sections, ([i, u]) => (t(), o("div", {
|
|
98
|
+
key: i,
|
|
99
|
+
class: "section"
|
|
100
|
+
}, [
|
|
101
|
+
l("div", R, m(u), 1),
|
|
102
|
+
U
|
|
103
|
+
]))), 128))
|
|
104
|
+
])) : d("", !0)
|
|
105
|
+
])
|
|
106
|
+
])
|
|
107
|
+
], 4)) : d("", !0)
|
|
108
|
+
], !0)
|
|
109
|
+
]),
|
|
110
|
+
_: 3
|
|
111
|
+
}, 16, ["width"])) : d("", !0)
|
|
112
|
+
], 4));
|
|
113
|
+
}
|
|
114
|
+
}, Y = /* @__PURE__ */ C(W, [["__scopeId", "data-v-8bdab7fa"]]);
|
|
115
|
+
export {
|
|
116
|
+
Y as default
|
|
117
|
+
};
|