@golstats/gsc-landing 1.0.6 → 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.
- package/dist/FilterConditions-b867bbd5-_G_vA0Pm.js +240 -0
- package/dist/FilterField-1d2fb579-C1_TSEIn.js +781 -0
- package/dist/FilterSubcategories-50e9e978-5TzVV7IU.js +43 -0
- package/dist/arrow-expand.svg +3 -0
- package/dist/back-arrow.svg +3 -0
- package/dist/back-arrow1.svg +3 -0
- package/dist/back-arrow2.svg +3 -0
- package/dist/back-arrow3.svg +3 -0
- package/dist/back-arrow4.svg +3 -0
- package/dist/backarrow.svg +3 -0
- package/dist/cancha-3d.png +0 -0
- package/dist/cancha-3d@2.png +0 -0
- package/dist/css/fonts.css +4 -4
- package/dist/fonts/BebasNeue-Bold.otf +0 -0
- package/dist/fonts/BebasNeue-Book.otf +0 -0
- package/dist/fonts/BebasNeue-Light.otf +0 -0
- package/dist/fonts/BebasNeue-Regular.otf +0 -0
- package/dist/goal-icn.svg +14 -0
- package/dist/goal-icn1.svg +14 -0
- package/dist/goal-icn2.svg +14 -0
- package/dist/group-483271.svg +14 -0
- package/dist/gsc-checkbox-9572f28d-OEktJZP_.js +206 -0
- package/dist/gsc-landing.js +3 -13160
- package/dist/gsc-landing.umd.cjs +288 -12
- package/dist/icn-arrow-expand.svg +3 -0
- package/dist/icn-expand-arrow.svg +3 -0
- package/dist/icn-expand-arrow1.svg +3 -0
- package/dist/icn-filter.svg +12 -0
- package/dist/icn-filter1.svg +12 -0
- package/dist/icn-filter2.svg +12 -0
- package/dist/icn-golstats.png +0 -0
- package/dist/img-away-team1@2x.png +0 -0
- package/dist/img-away-team2@2x.png +0 -0
- package/dist/img-away-team3@2x.png +0 -0
- package/dist/img-away-team4@2x.png +0 -0
- package/dist/img-away-team@2x.png +0 -0
- package/dist/img-home-team1@2x.png +0 -0
- package/dist/img-home-team2@2x.png +0 -0
- package/dist/img-home-team3@2x.png +0 -0
- package/dist/img-home-team4@2x.png +0 -0
- package/dist/img-home-team@2x.png +0 -0
- package/dist/imghometeam@2x.png +0 -0
- package/dist/index-H-2dNVfw.js +92844 -0
- package/dist/line-white.png +0 -0
- package/dist/line.png +0 -0
- package/dist/next-arrow.svg +3 -0
- package/dist/next-arrow1.svg +3 -0
- package/dist/next-arrow2.svg +3 -0
- package/dist/next-arrow3.svg +3 -0
- package/dist/next-arrow4.svg +3 -0
- package/dist/next-arrow5.svg +3 -0
- package/dist/nextarrow.svg +3 -0
- package/dist/style.css +1 -1
- package/dist/vector.svg +3 -0
- package/package.json +8 -6
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
import { useCssVars as E, computed as n, openBlock as s, createElementBlock as o, normalizeStyle as $, createElementVNode as a, createVNode as g, unref as f, Fragment as u, renderList as _, normalizeClass as v, toDisplayString as b, pushScopeId as V, popScopeId as H } from "vue";
|
|
2
|
+
import { L as m } from "./gsc-checkbox-9572f28d-OEktJZP_.js";
|
|
3
|
+
import { q as L } from "./index-H-2dNVfw.js";
|
|
4
|
+
const r = (i) => (V("data-v-209a8861"), i = i(), H(), i), R = { class: "details__header" }, T = /* @__PURE__ */ r(() => /* @__PURE__ */ a("div", { class: "details__header__title" }, "Jugando como", -1)), W = { class: "details__header__checkbox" }, I = { class: "details__body" }, q = { class: "details__body__playing-as" }, z = ["onClick"], F = { class: "details__header" }, N = /* @__PURE__ */ r(() => /* @__PURE__ */ a("div", { class: "details__header__title" }, "En: (Elige el lapso de tiempo)", -1)), U = { class: "details__header__checkbox" }, j = { class: "details__body" }, D = /* @__PURE__ */ r(() => /* @__PURE__ */ a("div", { class: "details__body__title" }, "1er tiempo", -1)), J = { class: "details__body__game-section" }, O = ["onClick"], w = { class: "details__body" }, G = /* @__PURE__ */ r(() => /* @__PURE__ */ a("div", { class: "details__body__title" }, "2do tiempo", -1)), K = { class: "details__body__game-section" }, M = ["onClick"], P = {
|
|
5
|
+
__name: "FilterConditions",
|
|
6
|
+
props: {
|
|
7
|
+
conditions: {
|
|
8
|
+
type: Object,
|
|
9
|
+
default: () => ({
|
|
10
|
+
playingAs: [
|
|
11
|
+
{
|
|
12
|
+
name: "Local",
|
|
13
|
+
value: 1,
|
|
14
|
+
isSelected: !0
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
name: "Visitante",
|
|
18
|
+
value: 2,
|
|
19
|
+
isSelected: !0
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
gameSections: [
|
|
23
|
+
{
|
|
24
|
+
text: "0-15",
|
|
25
|
+
value: 1,
|
|
26
|
+
isSelected: !0
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
text: "16-30",
|
|
30
|
+
value: 2,
|
|
31
|
+
isSelected: !0
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
text: "31-45",
|
|
35
|
+
value: 3,
|
|
36
|
+
isSelected: !0
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
text: "46-60",
|
|
40
|
+
value: 4,
|
|
41
|
+
isSelected: !0
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
text: "61-75",
|
|
45
|
+
value: 5,
|
|
46
|
+
isSelected: !0
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
text: "76-90",
|
|
50
|
+
value: 6,
|
|
51
|
+
isSelected: !0
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
})
|
|
55
|
+
},
|
|
56
|
+
playingAs: {
|
|
57
|
+
type: Array,
|
|
58
|
+
default: () => [
|
|
59
|
+
{
|
|
60
|
+
name: "Local",
|
|
61
|
+
isSelected: !0
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
name: "Visitante",
|
|
65
|
+
isSelected: !0
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
gameSections: {
|
|
70
|
+
type: Array,
|
|
71
|
+
default: () => [
|
|
72
|
+
{
|
|
73
|
+
text: "0-15",
|
|
74
|
+
value: 1,
|
|
75
|
+
isSelected: !0
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
text: "16-30",
|
|
79
|
+
value: 2,
|
|
80
|
+
isSelected: !0
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
text: "31-45",
|
|
84
|
+
value: 3,
|
|
85
|
+
isSelected: !0
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
text: "46-60",
|
|
89
|
+
value: 4,
|
|
90
|
+
isSelected: !0
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
text: "61-75",
|
|
94
|
+
value: 5,
|
|
95
|
+
isSelected: !0
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
text: "76-90",
|
|
99
|
+
value: 6,
|
|
100
|
+
isSelected: !0
|
|
101
|
+
}
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
buttonsBackgroundColor: {
|
|
105
|
+
type: String,
|
|
106
|
+
default: "rgba(255, 255, 255, 0)"
|
|
107
|
+
},
|
|
108
|
+
buttonsBackgroundColorActive: {
|
|
109
|
+
type: String,
|
|
110
|
+
default: "rgba(203, 238, 107, 0.05)"
|
|
111
|
+
},
|
|
112
|
+
buttonsTextColor: {
|
|
113
|
+
type: String,
|
|
114
|
+
default: "rgba(255, 255, 255, 0.8)"
|
|
115
|
+
},
|
|
116
|
+
buttonsTextColorActive: {
|
|
117
|
+
type: String,
|
|
118
|
+
default: "rgba(255, 255, 255, 1)"
|
|
119
|
+
},
|
|
120
|
+
buttonsBorderColor: {
|
|
121
|
+
type: String,
|
|
122
|
+
default: "#8ea2ab"
|
|
123
|
+
},
|
|
124
|
+
buttonsBorderColorActive: {
|
|
125
|
+
type: String,
|
|
126
|
+
default: "#cbee6b"
|
|
127
|
+
},
|
|
128
|
+
buttonsBorderWidth: {
|
|
129
|
+
type: String,
|
|
130
|
+
default: "0.8px"
|
|
131
|
+
},
|
|
132
|
+
buttonsBorderWidthActive: {
|
|
133
|
+
type: String,
|
|
134
|
+
default: "1px"
|
|
135
|
+
},
|
|
136
|
+
buttonsBorderRadius: {
|
|
137
|
+
type: String,
|
|
138
|
+
default: "4px"
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
setup(i) {
|
|
142
|
+
E((e) => ({
|
|
143
|
+
"6828708b": i.buttonsBackgroundColor,
|
|
144
|
+
"717ea86c": i.buttonsTextColor,
|
|
145
|
+
"321a49b0": i.buttonsBorderWidth,
|
|
146
|
+
"31034b4d": i.buttonsBorderColor,
|
|
147
|
+
dca9f11e: i.buttonsBackgroundColorActive,
|
|
148
|
+
"90d3dadc": i.buttonsTextColorActive,
|
|
149
|
+
"305cb0d6": i.buttonsBorderWidthActive,
|
|
150
|
+
"18196e9a": i.buttonsBorderColorActive
|
|
151
|
+
}));
|
|
152
|
+
const d = i, x = n(() => d.conditions.playingAs.every((e) => e.isSelected)), C = n(() => d.conditions.gameSections.every((e) => e.isSelected)), S = n(() => d.conditions.gameSections.reduce(
|
|
153
|
+
(e, t) => (t.value <= 3 ? e.firstHalf.push(t) : e.secondHalf.push(t), e),
|
|
154
|
+
{
|
|
155
|
+
firstHalf: [],
|
|
156
|
+
secondHalf: []
|
|
157
|
+
}
|
|
158
|
+
)), h = n(() => ({
|
|
159
|
+
"--border-radius-first-button": `${d.buttonsBorderRadius} 0 0 ${d.buttonsBorderRadius}`,
|
|
160
|
+
"--border-radius-last-button": `0 ${d.buttonsBorderRadius} ${d.buttonsBorderRadius} 0`
|
|
161
|
+
}));
|
|
162
|
+
function B(e) {
|
|
163
|
+
e ? d.conditions.playingAs.forEach((t) => {
|
|
164
|
+
t.isSelected = !0;
|
|
165
|
+
}) : d.conditions.playingAs.forEach((t, l) => {
|
|
166
|
+
t.isSelected = l === 0;
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
function k(e) {
|
|
170
|
+
d.conditions.playingAs.filter((t) => t.isSelected).length === 1 && e.isSelected || (e.isSelected = !e.isSelected);
|
|
171
|
+
}
|
|
172
|
+
function p(e) {
|
|
173
|
+
d.conditions.gameSections.filter((t) => t.isSelected).length === 1 && e.isSelected || (e.isSelected = !e.isSelected);
|
|
174
|
+
}
|
|
175
|
+
function A(e) {
|
|
176
|
+
e ? d.conditions.gameSections.forEach((t) => {
|
|
177
|
+
t.isSelected = !0;
|
|
178
|
+
}) : d.conditions.gameSections.forEach((t, l) => {
|
|
179
|
+
t.isSelected = l === 0;
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
return (e, t) => (s(), o("div", {
|
|
183
|
+
class: "details",
|
|
184
|
+
style: $(h.value)
|
|
185
|
+
}, [
|
|
186
|
+
a("div", R, [
|
|
187
|
+
T,
|
|
188
|
+
a("div", W, [
|
|
189
|
+
g(f(m), {
|
|
190
|
+
label: "Todos",
|
|
191
|
+
"model-value": x.value,
|
|
192
|
+
"onUpdate:modelValue": B
|
|
193
|
+
}, null, 8, ["model-value"])
|
|
194
|
+
])
|
|
195
|
+
]),
|
|
196
|
+
a("div", I, [
|
|
197
|
+
a("div", q, [
|
|
198
|
+
(s(!0), o(u, null, _(i.conditions.playingAs, (l, c) => (s(), o("div", {
|
|
199
|
+
key: `pa${c}`,
|
|
200
|
+
class: v(["details__body__button", { active: l.isSelected }]),
|
|
201
|
+
onClick: (y) => k(l)
|
|
202
|
+
}, b(l.name), 11, z))), 128))
|
|
203
|
+
])
|
|
204
|
+
]),
|
|
205
|
+
a("div", F, [
|
|
206
|
+
N,
|
|
207
|
+
a("div", U, [
|
|
208
|
+
g(f(m), {
|
|
209
|
+
label: "Todos",
|
|
210
|
+
"model-value": C.value,
|
|
211
|
+
"onUpdate:modelValue": A
|
|
212
|
+
}, null, 8, ["model-value"])
|
|
213
|
+
])
|
|
214
|
+
]),
|
|
215
|
+
a("div", j, [
|
|
216
|
+
D,
|
|
217
|
+
a("div", J, [
|
|
218
|
+
(s(!0), o(u, null, _(S.value.firstHalf, (l, c) => (s(), o("div", {
|
|
219
|
+
key: `pa${c}`,
|
|
220
|
+
class: v(["details__body__button", { active: l.isSelected }]),
|
|
221
|
+
onClick: (y) => p(l)
|
|
222
|
+
}, b(l.text), 11, O))), 128))
|
|
223
|
+
])
|
|
224
|
+
]),
|
|
225
|
+
a("div", w, [
|
|
226
|
+
G,
|
|
227
|
+
a("div", K, [
|
|
228
|
+
(s(!0), o(u, null, _(S.value.secondHalf, (l, c) => (s(), o("div", {
|
|
229
|
+
key: `pa${c}`,
|
|
230
|
+
class: v(["details__body__button", { active: l.isSelected }]),
|
|
231
|
+
onClick: (y) => p(l)
|
|
232
|
+
}, b(l.text), 11, M))), 128))
|
|
233
|
+
])
|
|
234
|
+
])
|
|
235
|
+
], 4));
|
|
236
|
+
}
|
|
237
|
+
}, Y = /* @__PURE__ */ L(P, [["__scopeId", "data-v-209a8861"]]);
|
|
238
|
+
export {
|
|
239
|
+
Y as default
|
|
240
|
+
};
|