@golstats/gsc-game-data 1.0.85 → 1.0.86

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.
@@ -0,0 +1,191 @@
1
+ import { useCssVars as E, computed as r, openBlock as s, createElementBlock as i, normalizeStyle as V, createElementVNode as d, createVNode as y, unref as g, Fragment as u, renderList as _, normalizeClass as b, toDisplayString as v, pushScopeId as $, popScopeId as H } from "vue";
2
+ import { s as T, j as m } from "./index-97338b15.js";
3
+ const n = (o) => ($("data-v-80d9c265"), o = o(), H(), o), R = { class: "details__header" }, W = /* @__PURE__ */ n(() => /* @__PURE__ */ d("div", { class: "details__header__title" }, "Jugando como", -1)), I = { class: "details__header__checkbox" }, j = { class: "details__body" }, z = { class: "details__body__playing-as" }, F = ["onClick"], L = { class: "details__header" }, N = /* @__PURE__ */ n(() => /* @__PURE__ */ d("div", { class: "details__header__title" }, "En: (Elige el lapso de tiempo)", -1)), U = { class: "details__header__checkbox" }, D = { class: "details__body" }, J = /* @__PURE__ */ n(() => /* @__PURE__ */ d("div", { class: "details__body__title" }, "1er tiempo", -1)), q = { class: "details__body__game-section" }, w = ["onClick"], G = { class: "details__body" }, K = /* @__PURE__ */ n(() => /* @__PURE__ */ d("div", { class: "details__body__title" }, "2do tiempo", -1)), M = { class: "details__body__game-section" }, O = ["onClick"], Q = {
4
+ __name: "FilterConditions",
5
+ props: {
6
+ playingAs: {
7
+ type: Array,
8
+ default: () => [
9
+ {
10
+ name: "Local",
11
+ isSelected: !0
12
+ },
13
+ {
14
+ name: "Visitante",
15
+ isSelected: !0
16
+ }
17
+ ]
18
+ },
19
+ gameSections: {
20
+ type: Array,
21
+ default: () => [
22
+ {
23
+ text: "0-15",
24
+ value: 1,
25
+ isSelected: !0
26
+ },
27
+ {
28
+ text: "16-30",
29
+ value: 2,
30
+ isSelected: !0
31
+ },
32
+ {
33
+ text: "31-45",
34
+ value: 3,
35
+ isSelected: !0
36
+ },
37
+ {
38
+ text: "46-60",
39
+ value: 4,
40
+ isSelected: !0
41
+ },
42
+ {
43
+ text: "61-75",
44
+ value: 5,
45
+ isSelected: !0
46
+ },
47
+ {
48
+ text: "76-90",
49
+ value: 6,
50
+ isSelected: !0
51
+ }
52
+ ]
53
+ },
54
+ buttonsBackgroundColor: {
55
+ type: String,
56
+ default: "rgba(255, 255, 255, 0)"
57
+ },
58
+ buttonsBackgroundColorActive: {
59
+ type: String,
60
+ default: "rgba(203, 238, 107, 0.05)"
61
+ },
62
+ buttonsTextColor: {
63
+ type: String,
64
+ default: "rgba(255, 255, 255, 0.8)"
65
+ },
66
+ buttonsTextColorActive: {
67
+ type: String,
68
+ default: "rgba(255, 255, 255, 1)"
69
+ },
70
+ buttonsBorderColor: {
71
+ type: String,
72
+ default: "#8ea2ab"
73
+ },
74
+ buttonsBorderColorActive: {
75
+ type: String,
76
+ default: "#cbee6b"
77
+ },
78
+ buttonsBorderWidth: {
79
+ type: String,
80
+ default: "0.8px"
81
+ },
82
+ buttonsBorderWidthActive: {
83
+ type: String,
84
+ default: "1px"
85
+ },
86
+ buttonsBorderRadius: {
87
+ type: String,
88
+ default: "4px"
89
+ }
90
+ },
91
+ setup(o) {
92
+ const l = o;
93
+ E((e) => ({
94
+ "49cba245": o.buttonsBackgroundColor,
95
+ "52f02da6": o.buttonsTextColor,
96
+ "7d3f686a": o.buttonsBorderWidth,
97
+ "7c286a07": o.buttonsBorderColor,
98
+ "24a6f4aa": o.buttonsBackgroundColorActive,
99
+ cd8d7768: o.buttonsTextColorActive,
100
+ "35fa5c10": o.buttonsBorderWidthActive,
101
+ "0cde1826": o.buttonsBorderColorActive
102
+ }));
103
+ const h = r(() => l.playingAs.every((e) => e.isSelected)), C = r(() => l.gameSections.every((e) => e.isSelected)), p = r(() => l.gameSections.reduce(
104
+ (e, t) => (t.value <= 3 ? e.firstHalf.push(t) : e.secondHalf.push(t), e),
105
+ {
106
+ firstHalf: [],
107
+ secondHalf: []
108
+ }
109
+ )), B = r(() => ({
110
+ "--border-radius-first-button": `${l.buttonsBorderRadius} 0 0 ${l.buttonsBorderRadius}`,
111
+ "--border-radius-last-button": `0 ${l.buttonsBorderRadius} ${l.buttonsBorderRadius} 0`
112
+ }));
113
+ function x(e) {
114
+ e ? l.playingAs.forEach((t) => {
115
+ t.isSelected = !0;
116
+ }) : l.playingAs.forEach((t, a) => {
117
+ t.isSelected = a === 0;
118
+ });
119
+ }
120
+ function k(e) {
121
+ l.playingAs.filter((t) => t.isSelected).length === 1 && e.isSelected || (e.isSelected = !e.isSelected);
122
+ }
123
+ function S(e) {
124
+ l.gameSections.filter((t) => t.isSelected).length === 1 && e.isSelected || (e.isSelected = !e.isSelected);
125
+ }
126
+ function A(e) {
127
+ e ? l.gameSections.forEach((t) => {
128
+ t.isSelected = !0;
129
+ }) : l.gameSections.forEach((t, a) => {
130
+ t.isSelected = a === 0;
131
+ });
132
+ }
133
+ return (e, t) => (s(), i("div", {
134
+ class: "details",
135
+ style: V(B.value)
136
+ }, [
137
+ d("div", R, [
138
+ W,
139
+ d("div", I, [
140
+ y(g(m), {
141
+ label: "Todos",
142
+ "model-value": h.value,
143
+ "onUpdate:modelValue": x
144
+ }, null, 8, ["model-value"])
145
+ ])
146
+ ]),
147
+ d("div", j, [
148
+ d("div", z, [
149
+ (s(!0), i(u, null, _(l.playingAs, (a, c) => (s(), i("div", {
150
+ key: `pa${c}`,
151
+ class: b(["details__body__button", { active: a.isSelected }]),
152
+ onClick: (f) => k(a)
153
+ }, v(a.name), 11, F))), 128))
154
+ ])
155
+ ]),
156
+ d("div", L, [
157
+ N,
158
+ d("div", U, [
159
+ y(g(m), {
160
+ label: "Todos",
161
+ "model-value": C.value,
162
+ "onUpdate:modelValue": A
163
+ }, null, 8, ["model-value"])
164
+ ])
165
+ ]),
166
+ d("div", D, [
167
+ J,
168
+ d("div", q, [
169
+ (s(!0), i(u, null, _(p.value.firstHalf, (a, c) => (s(), i("div", {
170
+ key: `pa${c}`,
171
+ class: b(["details__body__button", { active: a.isSelected }]),
172
+ onClick: (f) => S(a)
173
+ }, v(a.text), 11, w))), 128))
174
+ ])
175
+ ]),
176
+ d("div", G, [
177
+ K,
178
+ d("div", M, [
179
+ (s(!0), i(u, null, _(p.value.secondHalf, (a, c) => (s(), i("div", {
180
+ key: `pa${c}`,
181
+ class: b(["details__body__button", { active: a.isSelected }]),
182
+ onClick: (f) => S(a)
183
+ }, v(a.text), 11, O))), 128))
184
+ ])
185
+ ])
186
+ ], 4));
187
+ }
188
+ }, X = /* @__PURE__ */ T(Q, [["__scopeId", "data-v-80d9c265"]]);
189
+ export {
190
+ X as default
191
+ };
@@ -0,0 +1,21 @@
1
+ import { ref as l, openBlock as r, createElementBlock as n, createVNode as c, unref as d } from "vue";
2
+ import { s, a as u } from "./index-97338b15.js";
3
+ const f = { class: "filter-field" }, i = {
4
+ __name: "FilterField",
5
+ setup(m) {
6
+ const a = l(Array.from({ length: 16 }, (t, e) => e + 1));
7
+ function o() {
8
+ }
9
+ return (t, e) => (r(), n("div", f, [
10
+ c(d(u), {
11
+ width: "100%",
12
+ "background-color": "#2E3B46",
13
+ value: a.value,
14
+ "onUpdate:modelValue": o
15
+ }, null, 8, ["value"])
16
+ ]));
17
+ }
18
+ }, _ = /* @__PURE__ */ s(i, [["__scopeId", "data-v-8103c3e1"]]);
19
+ export {
20
+ _ as default
21
+ };
@@ -0,0 +1,42 @@
1
+ import { openBlock as r, createElementBlock as a, Fragment as t, renderList as s, createVNode as d, createBlock as i, unref as n } from "vue";
2
+ import { s as u, j as y } from "./index-97338b15.js";
3
+ const b = { class: "subcategory-group" }, g = {
4
+ __name: "SubcategoryGroup",
5
+ props: {
6
+ subcategoryGroup: {
7
+ type: Array,
8
+ default: () => []
9
+ }
10
+ },
11
+ setup(o) {
12
+ return (l, c) => (r(), a("div", b, [
13
+ (r(!0), a(t, null, s(o.subcategoryGroup, (e) => (r(), i(n(y), {
14
+ key: e.id,
15
+ modelValue: e.isSelected,
16
+ "onUpdate:modelValue": (p) => e.isSelected = p,
17
+ label: e.name
18
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "label"]))), 128))
19
+ ]));
20
+ }
21
+ }, m = /* @__PURE__ */ u(g, [["__scopeId", "data-v-ae6f3d72"]]), f = { class: "filter-subcategories" }, _ = {
22
+ __name: "FilterSubcategories",
23
+ props: {
24
+ subcategoryGroups: {
25
+ type: Array,
26
+ default: () => []
27
+ }
28
+ },
29
+ setup(o) {
30
+ return (l, c) => (r(), a("div", f, [
31
+ (r(!0), a(t, null, s(o.subcategoryGroups, (e) => (r(), a("div", {
32
+ key: e.id,
33
+ class: "filter-subcategories__group"
34
+ }, [
35
+ d(m, { subcategoryGroup: e }, null, 8, ["subcategoryGroup"])
36
+ ]))), 128))
37
+ ]));
38
+ }
39
+ }, k = /* @__PURE__ */ u(_, [["__scopeId", "data-v-5edaefc2"]]);
40
+ export {
41
+ k as default
42
+ };