@golstats/lilini-player-detection 1.0.30 → 1.0.32
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 +31 -31
- package/dist/{FilterConditions-55d68355-CZT9AAk8.js → FilterConditions-55d68355-ZhqbxnS0.js} +1 -1
- package/dist/{FilterConditions-55d68355-g8Y16HQC-CShC2Pwe.js → FilterConditions-55d68355-g8Y16HQC-z-hU6X69.js} +1 -1
- package/dist/{FilterField-59a73e38-CIb0_NTi-C38Qwtaw.js → FilterField-59a73e38-CIb0_NTi-C1CQK5J8.js} +1 -1
- package/dist/{FilterField-59a73e38-CVwSHJUh.js → FilterField-59a73e38-CQh-Hx0E.js} +1 -1
- package/dist/{FilterSubcategories-a9b32cc9-Bb3g52Z6-DME7L4xB.js → FilterSubcategories-a9b32cc9-Bb3g52Z6-cL13muob.js} +1 -1
- package/dist/{FilterSubcategories-a9b32cc9-B-X2zfSE.js → FilterSubcategories-a9b32cc9-xuNUNIAa.js} +1 -1
- package/dist/css/fonts.css +112 -112
- package/dist/{index-DdB63h2c.js → index-Cpv9HV_3.js} +738 -718
- package/dist/lilini-player-detection.css +1 -1
- package/dist/lilini-player-detection.es.js +1 -1
- package/dist/lilini-player-detection.umd.js +6 -6
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useCssVars as Pe, ref as S, resolveComponent as aa, createElementBlock as v, openBlock as m, createCommentVNode as E, createElementVNode as n, renderSlot as ft, normalizeStyle as ee, Fragment as Q, renderList as ue, toDisplayString as T, createVNode as k, withCtx as ye, onMounted as Je, onUnmounted as na, normalizeClass as se, computed as I, createBlock as Se, Teleport as rs, Transition as tt, withModifiers as
|
|
1
|
+
import { useCssVars as Pe, ref as S, resolveComponent as aa, createElementBlock as v, openBlock as m, createCommentVNode as E, createElementVNode as n, renderSlot as ft, normalizeStyle as ee, Fragment as Q, renderList as ue, toDisplayString as T, createVNode as k, withCtx as ye, onMounted as Je, onUnmounted as na, normalizeClass as se, computed as I, createBlock as Se, Teleport as rs, Transition as tt, withModifiers as qe, unref as M, watch as ae, onBeforeMount as Ln, withDirectives as fe, vShow as _e, pushScopeId as Ce, popScopeId as xe, mergeProps as Me, createTextVNode as De, defineComponent as Vc, normalizeProps as ca, guardReactiveProps as pa, defineAsyncComponent as ei, KeepAlive as Nc, resolveDynamicComponent as Gi, createStaticVNode as Rt, vModelRadio as ta, nextTick as ns, vModelCheckbox as Zi, vModelDynamic as yh, vModelText as ii, reactive as vh, onBeforeUnmount as gh } from "vue";
|
|
2
2
|
function bh(e) {
|
|
3
3
|
const t = S({ width: 0, height: 0 });
|
|
4
4
|
function a() {
|
|
@@ -525,11 +525,11 @@ const Dh = /* @__PURE__ */ Rh(Vn, [["render", Nh], ["__scopeId", "data-v-8a86dfa
|
|
|
525
525
|
]
|
|
526
526
|
};
|
|
527
527
|
for (A.push(H); x.categories.length > 0; ) {
|
|
528
|
-
const
|
|
528
|
+
const B = x.categories.shift(), oe = {
|
|
529
529
|
isOdd: N,
|
|
530
530
|
tds: [
|
|
531
531
|
{
|
|
532
|
-
text:
|
|
532
|
+
text: B,
|
|
533
533
|
classes: ["play-type-cell", N ? "odd" : "even"]
|
|
534
534
|
}
|
|
535
535
|
]
|
|
@@ -563,7 +563,7 @@ const Dh = /* @__PURE__ */ Rh(Vn, [["render", Nh], ["__scopeId", "data-v-8a86dfa
|
|
|
563
563
|
n("div", {
|
|
564
564
|
ref: "modalContent",
|
|
565
565
|
class: "modal-content",
|
|
566
|
-
onClick: p[0] || (p[0] =
|
|
566
|
+
onClick: p[0] || (p[0] = qe(() => {
|
|
567
567
|
}, ["stop"]))
|
|
568
568
|
}, [
|
|
569
569
|
n("div", {
|
|
@@ -591,7 +591,7 @@ const Dh = /* @__PURE__ */ Rh(Vn, [["render", Nh], ["__scopeId", "data-v-8a86dfa
|
|
|
591
591
|
])),
|
|
592
592
|
n("div", jh, [
|
|
593
593
|
n("div", Uh, [
|
|
594
|
-
k(
|
|
594
|
+
k(M(Dh), {
|
|
595
595
|
type: 2,
|
|
596
596
|
buttons: u.value,
|
|
597
597
|
"font-family": "Poppins-Medium",
|
|
@@ -1134,7 +1134,7 @@ const nm = /* @__PURE__ */ Kh(Nn, [["render", rm], ["__scopeId", "data-v-f3ee6b2
|
|
|
1134
1134
|
]))), 256))
|
|
1135
1135
|
], 4),
|
|
1136
1136
|
e.isFooterVisible ? (m(), v("div", mm, [
|
|
1137
|
-
k(
|
|
1137
|
+
k(M(nm), {
|
|
1138
1138
|
"text-value": "Listo",
|
|
1139
1139
|
"border-color": "#cbee6b",
|
|
1140
1140
|
"font-size": "12px",
|
|
@@ -1332,7 +1332,7 @@ const nm = /* @__PURE__ */ Kh(Nn, [["render", rm], ["__scopeId", "data-v-f3ee6b2
|
|
|
1332
1332
|
}, [
|
|
1333
1333
|
n("div", {
|
|
1334
1334
|
class: "modal-content",
|
|
1335
|
-
onClick: D[0] || (D[0] =
|
|
1335
|
+
onClick: D[0] || (D[0] = qe(() => {
|
|
1336
1336
|
}, ["stop"]))
|
|
1337
1337
|
}, [
|
|
1338
1338
|
D[5] || (D[5] = n("div", { class: "modal-header" }, [
|
|
@@ -1381,7 +1381,7 @@ const nm = /* @__PURE__ */ Kh(Nn, [["render", rm], ["__scopeId", "data-v-f3ee6b2
|
|
|
1381
1381
|
])
|
|
1382
1382
|
]),
|
|
1383
1383
|
n("div", bm, [
|
|
1384
|
-
k(
|
|
1384
|
+
k(M(pr), Me(M(cr), {
|
|
1385
1385
|
"model-value": l.value,
|
|
1386
1386
|
items: r.value,
|
|
1387
1387
|
width: "100%",
|
|
@@ -1441,9 +1441,9 @@ const nm = /* @__PURE__ */ Kh(Nn, [["render", rm], ["__scopeId", "data-v-f3ee6b2
|
|
|
1441
1441
|
k(tt, null, {
|
|
1442
1442
|
default: ye(() => [
|
|
1443
1443
|
l.value && l.value.id ? (m(), v("div", Fm, [
|
|
1444
|
-
(m(), Se(
|
|
1444
|
+
(m(), Se(M(pr), Me({
|
|
1445
1445
|
key: `t${h.value}`
|
|
1446
|
-
},
|
|
1446
|
+
}, M(cr), {
|
|
1447
1447
|
"model-value": u.value,
|
|
1448
1448
|
items: l.value.teams,
|
|
1449
1449
|
width: "100%",
|
|
@@ -1506,9 +1506,9 @@ const nm = /* @__PURE__ */ Kh(Nn, [["render", rm], ["__scopeId", "data-v-f3ee6b2
|
|
|
1506
1506
|
k(tt, null, {
|
|
1507
1507
|
default: ye(() => [
|
|
1508
1508
|
u.value && u.value.team_id ? (m(), v("div", Im, [
|
|
1509
|
-
(m(), Se(
|
|
1509
|
+
(m(), Se(M(pr), Me({
|
|
1510
1510
|
key: `p${f.value}`
|
|
1511
|
-
},
|
|
1511
|
+
}, M(cr), {
|
|
1512
1512
|
"model-value": d.value,
|
|
1513
1513
|
items: u.value.players,
|
|
1514
1514
|
width: "100%",
|
|
@@ -1660,7 +1660,7 @@ const nm = /* @__PURE__ */ Kh(Nn, [["render", rm], ["__scopeId", "data-v-f3ee6b2
|
|
|
1660
1660
|
})
|
|
1661
1661
|
])) : E("", !0);
|
|
1662
1662
|
}
|
|
1663
|
-
}, Qm = /* @__PURE__ */ ia(Xm, [["__scopeId", "data-v-
|
|
1663
|
+
}, Qm = /* @__PURE__ */ ia(Xm, [["__scopeId", "data-v-013016a1"]]);
|
|
1664
1664
|
function e0() {
|
|
1665
1665
|
return {
|
|
1666
1666
|
backgroundColor: "#2e3b46",
|
|
@@ -3800,7 +3800,7 @@ const {
|
|
|
3800
3800
|
key: _.id,
|
|
3801
3801
|
class: "productivity__checkbox"
|
|
3802
3802
|
}, [
|
|
3803
|
-
k(
|
|
3803
|
+
k(M(Le), {
|
|
3804
3804
|
label: _.name,
|
|
3805
3805
|
fontFamily: e.fontFamily,
|
|
3806
3806
|
"model-value": _.isSelected,
|
|
@@ -3830,7 +3830,7 @@ const {
|
|
|
3830
3830
|
key: _.id,
|
|
3831
3831
|
class: "productivity__checkbox"
|
|
3832
3832
|
}, [
|
|
3833
|
-
k(
|
|
3833
|
+
k(M(Le), {
|
|
3834
3834
|
label: _.name,
|
|
3835
3835
|
fontFamily: e.fontFamily,
|
|
3836
3836
|
"model-value": _.isSelected,
|
|
@@ -3865,7 +3865,7 @@ const {
|
|
|
3865
3865
|
key: _.id,
|
|
3866
3866
|
class: "productivity__checkbox"
|
|
3867
3867
|
}, [
|
|
3868
|
-
k(
|
|
3868
|
+
k(M(Le), {
|
|
3869
3869
|
label: _.name,
|
|
3870
3870
|
fontFamily: e.fontFamily,
|
|
3871
3871
|
"model-value": _.isSelected,
|
|
@@ -3899,7 +3899,7 @@ const {
|
|
|
3899
3899
|
key: _.id,
|
|
3900
3900
|
class: "productivity__checkbox"
|
|
3901
3901
|
}, [
|
|
3902
|
-
k(
|
|
3902
|
+
k(M(Le), {
|
|
3903
3903
|
label: _.name,
|
|
3904
3904
|
fontFamily: e.fontFamily,
|
|
3905
3905
|
"model-value": _.isSelected,
|
|
@@ -3930,7 +3930,7 @@ const {
|
|
|
3930
3930
|
n("div", gy, [
|
|
3931
3931
|
by,
|
|
3932
3932
|
n("div", null, [
|
|
3933
|
-
k(
|
|
3933
|
+
k(M(Le), {
|
|
3934
3934
|
"model-value": r.value.areFoulsCommittedSelected,
|
|
3935
3935
|
"avoid-interaction": r.value.areFoulsCommittedSelected,
|
|
3936
3936
|
"is-box-only": "",
|
|
@@ -3938,7 +3938,7 @@ const {
|
|
|
3938
3938
|
}, null, 8, ["model-value", "avoid-interaction"])
|
|
3939
3939
|
]),
|
|
3940
3940
|
n("div", null, [
|
|
3941
|
-
k(
|
|
3941
|
+
k(M(Le), {
|
|
3942
3942
|
"model-value": !r.value.areFoulsCommittedSelected,
|
|
3943
3943
|
"avoid-interaction": !r.value.areFoulsCommittedSelected,
|
|
3944
3944
|
"is-box-only": "",
|
|
@@ -3949,7 +3949,7 @@ const {
|
|
|
3949
3949
|
n("div", _y, [
|
|
3950
3950
|
wy,
|
|
3951
3951
|
n("div", null, [
|
|
3952
|
-
k(
|
|
3952
|
+
k(M(Le), {
|
|
3953
3953
|
"model-value": r.value.areYellowCardsSelected,
|
|
3954
3954
|
"avoid-interaction": r.value.areYellowCardsSelected,
|
|
3955
3955
|
"is-box-only": "",
|
|
@@ -3957,7 +3957,7 @@ const {
|
|
|
3957
3957
|
}, null, 8, ["model-value", "avoid-interaction"])
|
|
3958
3958
|
]),
|
|
3959
3959
|
n("div", null, [
|
|
3960
|
-
k(
|
|
3960
|
+
k(M(Le), {
|
|
3961
3961
|
"model-value": !r.value.areYellowCardsSelected,
|
|
3962
3962
|
"avoid-interaction": !r.value.areYellowCardsSelected,
|
|
3963
3963
|
"is-box-only": "",
|
|
@@ -3968,7 +3968,7 @@ const {
|
|
|
3968
3968
|
n("div", Sy, [
|
|
3969
3969
|
Cy,
|
|
3970
3970
|
n("div", null, [
|
|
3971
|
-
k(
|
|
3971
|
+
k(M(Le), {
|
|
3972
3972
|
"model-value": r.value.areRedCardsSelected,
|
|
3973
3973
|
"avoid-interaction": r.value.areRedCardsSelected,
|
|
3974
3974
|
"is-box-only": "",
|
|
@@ -3976,7 +3976,7 @@ const {
|
|
|
3976
3976
|
}, null, 8, ["model-value", "avoid-interaction"])
|
|
3977
3977
|
]),
|
|
3978
3978
|
n("div", null, [
|
|
3979
|
-
k(
|
|
3979
|
+
k(M(Le), {
|
|
3980
3980
|
"model-value": !r.value.areRedCardsSelected,
|
|
3981
3981
|
"avoid-interaction": !r.value.areRedCardsSelected,
|
|
3982
3982
|
"is-box-only": "",
|
|
@@ -4164,7 +4164,7 @@ const {
|
|
|
4164
4164
|
fe(n("div", Ey, [
|
|
4165
4165
|
Ty,
|
|
4166
4166
|
n("div", Fy, [
|
|
4167
|
-
k(
|
|
4167
|
+
k(M(Le), {
|
|
4168
4168
|
label: "Todos",
|
|
4169
4169
|
fontFamily: e.fontFamily,
|
|
4170
4170
|
"model-value": s.value,
|
|
@@ -4188,7 +4188,7 @@ const {
|
|
|
4188
4188
|
n("div", Oy, [
|
|
4189
4189
|
By,
|
|
4190
4190
|
n("div", My, [
|
|
4191
|
-
k(
|
|
4191
|
+
k(M(Le), {
|
|
4192
4192
|
label: "Todos",
|
|
4193
4193
|
fontFamily: e.fontFamily,
|
|
4194
4194
|
"model-value": o.value,
|
|
@@ -4329,7 +4329,7 @@ const {
|
|
|
4329
4329
|
k(p1, { height: "200px" }, {
|
|
4330
4330
|
default: ye(() => [
|
|
4331
4331
|
e.isOneTournamentOnly ? E("", !0) : (m(), v("div", rv, [
|
|
4332
|
-
k(
|
|
4332
|
+
k(M(Le), {
|
|
4333
4333
|
"model-value": i.value,
|
|
4334
4334
|
label: "Todas las ligas",
|
|
4335
4335
|
fontFamily: e.fontFamily,
|
|
@@ -4341,7 +4341,7 @@ const {
|
|
|
4341
4341
|
key: d.id || d._id,
|
|
4342
4342
|
class: "tournaments__tournament"
|
|
4343
4343
|
}, [
|
|
4344
|
-
k(
|
|
4344
|
+
k(M(Le), {
|
|
4345
4345
|
"model-value": d.isSelected,
|
|
4346
4346
|
label: d.name,
|
|
4347
4347
|
fontFamily: e.fontFamily,
|
|
@@ -4441,13 +4441,13 @@ const {
|
|
|
4441
4441
|
}, [
|
|
4442
4442
|
k(p1, { height: e.height }, {
|
|
4443
4443
|
default: ye(() => [
|
|
4444
|
-
e.type ===
|
|
4444
|
+
e.type === M(j).PLAYS_TYPES ? (m(), v("div", dv, " Elige un tipo de jugada para filtrar: ")) : E("", !0),
|
|
4445
4445
|
(m(!0), v(Q, null, ue(e.categories, (l, u) => (m(), v("div", {
|
|
4446
4446
|
key: `k${u}`,
|
|
4447
4447
|
class: "plays-golstats__item",
|
|
4448
4448
|
onClick: (d) => s(l)
|
|
4449
4449
|
}, [
|
|
4450
|
-
e.type ===
|
|
4450
|
+
e.type === M(j).GOLSTATS ? (m(), v("div", cv, T(l.value), 1)) : E("", !0),
|
|
4451
4451
|
n("div", pv, T(l.name), 1),
|
|
4452
4452
|
n("div", fv, [
|
|
4453
4453
|
fe((m(), v("svg", hv, [
|
|
@@ -5044,7 +5044,7 @@ const Ov = /* @__PURE__ */ Sv(Hn, [["render", Rv], ["__scopeId", "data-v-f3ee6b2
|
|
|
5044
5044
|
]))), 256))
|
|
5045
5045
|
], 4),
|
|
5046
5046
|
e.isFooterVisible ? (m(), v("div", Dv, [
|
|
5047
|
-
k(
|
|
5047
|
+
k(M(Ov), {
|
|
5048
5048
|
"text-value": "Listo",
|
|
5049
5049
|
"border-color": "#cbee6b",
|
|
5050
5050
|
"font-size": "12px",
|
|
@@ -5164,7 +5164,7 @@ const Ov = /* @__PURE__ */ Sv(Hn, [["render", Rv], ["__scopeId", "data-v-f3ee6b2
|
|
|
5164
5164
|
zv,
|
|
5165
5165
|
n("div", Hv, [
|
|
5166
5166
|
n("div", Wv, [
|
|
5167
|
-
k(
|
|
5167
|
+
k(M(dd), {
|
|
5168
5168
|
value: l.value.minutesPlayed,
|
|
5169
5169
|
type: "text",
|
|
5170
5170
|
inputmode: "numeric",
|
|
@@ -5176,7 +5176,7 @@ const Ov = /* @__PURE__ */ Sv(Hn, [["render", Rv], ["__scopeId", "data-v-f3ee6b2
|
|
|
5176
5176
|
}, null, 8, ["value"])
|
|
5177
5177
|
]),
|
|
5178
5178
|
n("div", qv, [
|
|
5179
|
-
k(
|
|
5179
|
+
k(M(Le), {
|
|
5180
5180
|
modelValue: s.value,
|
|
5181
5181
|
label: "Indistinto",
|
|
5182
5182
|
fontFamily: e.fontFamily,
|
|
@@ -5189,7 +5189,7 @@ const Ov = /* @__PURE__ */ Sv(Hn, [["render", Rv], ["__scopeId", "data-v-f3ee6b2
|
|
|
5189
5189
|
Zv,
|
|
5190
5190
|
n("div", Yv, [
|
|
5191
5191
|
n("div", Jv, [
|
|
5192
|
-
k(
|
|
5192
|
+
k(M(dd), {
|
|
5193
5193
|
value: l.value.percentMinutesPlayed,
|
|
5194
5194
|
"input-type": "number",
|
|
5195
5195
|
"border-radius": "4px",
|
|
@@ -5200,7 +5200,7 @@ const Ov = /* @__PURE__ */ Sv(Hn, [["render", Rv], ["__scopeId", "data-v-f3ee6b2
|
|
|
5200
5200
|
}, null, 8, ["value"])
|
|
5201
5201
|
]),
|
|
5202
5202
|
n("div", Kv, [
|
|
5203
|
-
k(
|
|
5203
|
+
k(M(Le), {
|
|
5204
5204
|
modelValue: o.value,
|
|
5205
5205
|
label: "Indistinto",
|
|
5206
5206
|
fontFamily: e.fontFamily,
|
|
@@ -5212,7 +5212,7 @@ const Ov = /* @__PURE__ */ Sv(Hn, [["render", Rv], ["__scopeId", "data-v-f3ee6b2
|
|
|
5212
5212
|
Xv,
|
|
5213
5213
|
Qv,
|
|
5214
5214
|
n("div", eg, [
|
|
5215
|
-
k(
|
|
5215
|
+
k(M(ea), Me(M(Ua), {
|
|
5216
5216
|
items: e.universeFilters.lastMonths,
|
|
5217
5217
|
"model-value": l.value.lastMonths,
|
|
5218
5218
|
onInput: g
|
|
@@ -5413,7 +5413,7 @@ const Ov = /* @__PURE__ */ Sv(Hn, [["render", Rv], ["__scopeId", "data-v-f3ee6b2
|
|
|
5413
5413
|
function yg(e, t, a, i, s, o) {
|
|
5414
5414
|
return m(), v("div", {
|
|
5415
5415
|
class: se([a.baseClassName, s.rangeMarginValue === 0 ? "zero-ranage-margin" : ""]),
|
|
5416
|
-
onMousewheel: t[10] || (t[10] =
|
|
5416
|
+
onMousewheel: t[10] || (t[10] = qe((...r) => o.onMouseWheel && o.onMouseWheel(...r), ["prevent", "stop"]))
|
|
5417
5417
|
}, [
|
|
5418
5418
|
n("div", sg, [
|
|
5419
5419
|
n("div", {
|
|
@@ -5428,7 +5428,7 @@ function yg(e, t, a, i, s, o) {
|
|
|
5428
5428
|
max: o.maximum,
|
|
5429
5429
|
step: a.step,
|
|
5430
5430
|
value: s.valueMin,
|
|
5431
|
-
onInput: t[1] || (t[1] =
|
|
5431
|
+
onInput: t[1] || (t[1] = qe((...r) => o.onInputMinChange && o.onInputMinChange(...r), ["stop", "prevent"]))
|
|
5432
5432
|
}, null, 40, rg),
|
|
5433
5433
|
n("div", {
|
|
5434
5434
|
class: "thumb thumb-left",
|
|
@@ -5456,7 +5456,7 @@ function yg(e, t, a, i, s, o) {
|
|
|
5456
5456
|
max: o.maximum,
|
|
5457
5457
|
step: a.step,
|
|
5458
5458
|
value: s.valueMax,
|
|
5459
|
-
onInput: t[6] || (t[6] =
|
|
5459
|
+
onInput: t[6] || (t[6] = qe((...r) => o.onInputMaxChange && o.onInputMaxChange(...r), ["stop", "prevent"]))
|
|
5460
5460
|
}, null, 40, ug),
|
|
5461
5461
|
n("div", {
|
|
5462
5462
|
class: "thumb thumb-right",
|
|
@@ -5745,7 +5745,7 @@ const h1 = /* @__PURE__ */ f1(Wn, [["render", Sg]]), Cg = { class: "template-dis
|
|
|
5745
5745
|
i.value.minValue = o.minValue, i.value.maxValue = o.maxValue;
|
|
5746
5746
|
}
|
|
5747
5747
|
return (o, r) => (m(), v("div", Cg, [
|
|
5748
|
-
k(
|
|
5748
|
+
k(M(h1), {
|
|
5749
5749
|
"border-width": "0",
|
|
5750
5750
|
"background-color": "#0D1D29",
|
|
5751
5751
|
height: "30px",
|
|
@@ -5798,7 +5798,7 @@ const h1 = /* @__PURE__ */ f1(Wn, [["render", Sg]]), Cg = { class: "template-dis
|
|
|
5798
5798
|
n("div", Tg, [
|
|
5799
5799
|
Fg,
|
|
5800
5800
|
n("div", $g, [
|
|
5801
|
-
k(
|
|
5801
|
+
k(M(Le), {
|
|
5802
5802
|
modelValue: i.value,
|
|
5803
5803
|
label: "Todos",
|
|
5804
5804
|
"box-position": "right",
|
|
@@ -5812,7 +5812,7 @@ const h1 = /* @__PURE__ */ f1(Wn, [["render", Sg]]), Cg = { class: "template-dis
|
|
|
5812
5812
|
key: d,
|
|
5813
5813
|
class: "template-games__game"
|
|
5814
5814
|
}, [
|
|
5815
|
-
k(
|
|
5815
|
+
k(M(Le), {
|
|
5816
5816
|
modelValue: u.isSelected,
|
|
5817
5817
|
"onUpdate:modelValue": (h) => u.isSelected = h,
|
|
5818
5818
|
label: u.label,
|
|
@@ -8924,19 +8924,19 @@ function Qe(e, t) {
|
|
|
8924
8924
|
if (t.length < e)
|
|
8925
8925
|
throw new TypeError(e + " argument" + (e > 1 ? "s" : "") + " required, but only " + t.length + " present");
|
|
8926
8926
|
}
|
|
8927
|
-
function
|
|
8927
|
+
function He(e) {
|
|
8928
8928
|
Qe(1, arguments);
|
|
8929
8929
|
var t = Object.prototype.toString.call(e);
|
|
8930
8930
|
return e instanceof Date || Go(e) === "object" && t === "[object Date]" ? new Date(e.getTime()) : typeof e == "number" || t === "[object Number]" ? new Date(e) : ((typeof e == "string" || t === "[object String]") && typeof console < "u" && (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"), console.warn(new Error().stack)), /* @__PURE__ */ new Date(NaN));
|
|
8931
8931
|
}
|
|
8932
8932
|
function E4(e, t) {
|
|
8933
8933
|
Qe(2, arguments);
|
|
8934
|
-
var a =
|
|
8934
|
+
var a = He(e), i = sa(t);
|
|
8935
8935
|
return isNaN(i) ? /* @__PURE__ */ new Date(NaN) : (i && a.setDate(a.getDate() + i), a);
|
|
8936
8936
|
}
|
|
8937
8937
|
function T4(e, t) {
|
|
8938
8938
|
Qe(2, arguments);
|
|
8939
|
-
var a =
|
|
8939
|
+
var a = He(e), i = sa(t);
|
|
8940
8940
|
if (isNaN(i))
|
|
8941
8941
|
return /* @__PURE__ */ new Date(NaN);
|
|
8942
8942
|
if (!i)
|
|
@@ -8949,7 +8949,7 @@ function T4(e, t) {
|
|
|
8949
8949
|
function Fi(e, t) {
|
|
8950
8950
|
if (Qe(2, arguments), !t || Go(t) !== "object")
|
|
8951
8951
|
return /* @__PURE__ */ new Date(NaN);
|
|
8952
|
-
var a = t.years ? sa(t.years) : 0, i = t.months ? sa(t.months) : 0, s = t.weeks ? sa(t.weeks) : 0, o = t.days ? sa(t.days) : 0, r = t.hours ? sa(t.hours) : 0, l = t.minutes ? sa(t.minutes) : 0, u = t.seconds ? sa(t.seconds) : 0, d =
|
|
8952
|
+
var a = t.years ? sa(t.years) : 0, i = t.months ? sa(t.months) : 0, s = t.weeks ? sa(t.weeks) : 0, o = t.days ? sa(t.days) : 0, r = t.hours ? sa(t.hours) : 0, l = t.minutes ? sa(t.minutes) : 0, u = t.seconds ? sa(t.seconds) : 0, d = He(e), h = i || a ? T4(d, i + a * 12) : d, f = o || s ? E4(h, o + s * 7) : h, g = l + r * 60, p = u + g * 60, y = p * 1e3, c = new Date(f.getTime() + y);
|
|
8953
8953
|
return c;
|
|
8954
8954
|
}
|
|
8955
8955
|
function Bd(e) {
|
|
@@ -8958,7 +8958,7 @@ function Bd(e) {
|
|
|
8958
8958
|
}
|
|
8959
8959
|
function Md(e) {
|
|
8960
8960
|
Qe(1, arguments);
|
|
8961
|
-
var t =
|
|
8961
|
+
var t = He(e);
|
|
8962
8962
|
return t.setHours(0, 0, 0, 0), t;
|
|
8963
8963
|
}
|
|
8964
8964
|
var F4 = 864e5;
|
|
@@ -8969,18 +8969,18 @@ function $4(e, t) {
|
|
|
8969
8969
|
}
|
|
8970
8970
|
function ti(e, t) {
|
|
8971
8971
|
Qe(2, arguments);
|
|
8972
|
-
var a =
|
|
8972
|
+
var a = He(e), i = He(t), s = a.getTime() - i.getTime();
|
|
8973
8973
|
return s < 0 ? -1 : s > 0 ? 1 : s;
|
|
8974
8974
|
}
|
|
8975
8975
|
var A4 = 6e4, R4 = 36e5;
|
|
8976
8976
|
function O4(e, t) {
|
|
8977
8977
|
Qe(2, arguments);
|
|
8978
|
-
var a =
|
|
8978
|
+
var a = He(e), i = He(t), s = a.getFullYear() - i.getFullYear(), o = a.getMonth() - i.getMonth();
|
|
8979
8979
|
return s * 12 + o;
|
|
8980
8980
|
}
|
|
8981
8981
|
function B4(e, t) {
|
|
8982
8982
|
Qe(2, arguments);
|
|
8983
|
-
var a =
|
|
8983
|
+
var a = He(e), i = He(t);
|
|
8984
8984
|
return a.getFullYear() - i.getFullYear();
|
|
8985
8985
|
}
|
|
8986
8986
|
function Pd(e, t) {
|
|
@@ -8989,13 +8989,13 @@ function Pd(e, t) {
|
|
|
8989
8989
|
}
|
|
8990
8990
|
function M4(e, t) {
|
|
8991
8991
|
Qe(2, arguments);
|
|
8992
|
-
var a =
|
|
8992
|
+
var a = He(e), i = He(t), s = Pd(a, i), o = Math.abs($4(a, i));
|
|
8993
8993
|
a.setDate(a.getDate() - s * o);
|
|
8994
8994
|
var r = +(Pd(a, i) === -s), l = s * (o - r);
|
|
8995
8995
|
return l === 0 ? 0 : l;
|
|
8996
8996
|
}
|
|
8997
8997
|
function el(e, t) {
|
|
8998
|
-
return Qe(2, arguments),
|
|
8998
|
+
return Qe(2, arguments), He(e).getTime() - He(t).getTime();
|
|
8999
8999
|
}
|
|
9000
9000
|
var P4 = {
|
|
9001
9001
|
ceil: Math.ceil,
|
|
@@ -9021,28 +9021,28 @@ function V4(e, t, a) {
|
|
|
9021
9021
|
}
|
|
9022
9022
|
function N4(e) {
|
|
9023
9023
|
Qe(1, arguments);
|
|
9024
|
-
var t =
|
|
9024
|
+
var t = He(e);
|
|
9025
9025
|
return t.setHours(23, 59, 59, 999), t;
|
|
9026
9026
|
}
|
|
9027
9027
|
function D4(e) {
|
|
9028
9028
|
Qe(1, arguments);
|
|
9029
|
-
var t =
|
|
9029
|
+
var t = He(e), a = t.getMonth();
|
|
9030
9030
|
return t.setFullYear(t.getFullYear(), a + 1, 0), t.setHours(23, 59, 59, 999), t;
|
|
9031
9031
|
}
|
|
9032
9032
|
function j4(e) {
|
|
9033
9033
|
Qe(1, arguments);
|
|
9034
|
-
var t =
|
|
9034
|
+
var t = He(e);
|
|
9035
9035
|
return N4(t).getTime() === D4(t).getTime();
|
|
9036
9036
|
}
|
|
9037
9037
|
function U4(e, t) {
|
|
9038
9038
|
Qe(2, arguments);
|
|
9039
|
-
var a =
|
|
9039
|
+
var a = He(e), i = He(t), s = ti(a, i), o = Math.abs(O4(a, i)), r;
|
|
9040
9040
|
if (o < 1)
|
|
9041
9041
|
r = 0;
|
|
9042
9042
|
else {
|
|
9043
9043
|
a.getMonth() === 1 && a.getDate() > 27 && a.setDate(30), a.setMonth(a.getMonth() - s * o);
|
|
9044
9044
|
var l = ti(a, i) === -s;
|
|
9045
|
-
j4(
|
|
9045
|
+
j4(He(e)) && o === 1 && ti(e, i) === 1 && (l = !1), r = s * (o - Number(l));
|
|
9046
9046
|
}
|
|
9047
9047
|
return r === 0 ? 0 : r;
|
|
9048
9048
|
}
|
|
@@ -9053,17 +9053,17 @@ function z4(e, t, a) {
|
|
|
9053
9053
|
}
|
|
9054
9054
|
function H4(e, t) {
|
|
9055
9055
|
Qe(2, arguments);
|
|
9056
|
-
var a =
|
|
9056
|
+
var a = He(e), i = He(t), s = ti(a, i), o = Math.abs(B4(a, i));
|
|
9057
9057
|
a.setFullYear(1584), i.setFullYear(1584);
|
|
9058
9058
|
var r = ti(a, i) === -s, l = s * (o - Number(r));
|
|
9059
9059
|
return l === 0 ? 0 : l;
|
|
9060
9060
|
}
|
|
9061
9061
|
function W4(e) {
|
|
9062
|
-
return Qe(1, arguments),
|
|
9062
|
+
return Qe(1, arguments), He(e).getFullYear();
|
|
9063
9063
|
}
|
|
9064
9064
|
function q4(e) {
|
|
9065
9065
|
Qe(1, arguments);
|
|
9066
|
-
var t =
|
|
9066
|
+
var t = He(e.start), a = He(e.end);
|
|
9067
9067
|
if (isNaN(t.getTime()))
|
|
9068
9068
|
throw new RangeError("Start Date is invalid");
|
|
9069
9069
|
if (isNaN(a.getTime()))
|
|
@@ -9192,27 +9192,27 @@ const G4 = /* @__PURE__ */ new Set([1]), Z4 = {
|
|
|
9192
9192
|
r.value.availableYears[r.value.availableYears.length - 1]
|
|
9193
9193
|
), y = S(0), c = I(() => {
|
|
9194
9194
|
const F = r.value.nationalities ? [...r.value.nationalities] : [];
|
|
9195
|
-
i.isSeleccion && F.forEach((
|
|
9196
|
-
|
|
9195
|
+
i.isSeleccion && F.forEach((B) => {
|
|
9196
|
+
B.isSelected = B.id === 138;
|
|
9197
9197
|
});
|
|
9198
9198
|
const H = F[0];
|
|
9199
9199
|
return (!H || H.id !== 0) && F.unshift(s), F;
|
|
9200
9200
|
}), b = I(() => {
|
|
9201
9201
|
let F = (i.filter && i.filter.positions ? i.filter.positions : r.value.positions) ? [...r.value.positions] : [];
|
|
9202
9202
|
const H = F[0];
|
|
9203
|
-
return (!H || H.id !== 0) && F.unshift(o), F.sort((
|
|
9203
|
+
return (!H || H.id !== 0) && F.unshift(o), F.sort((B, oe) => B.id - oe.id), F;
|
|
9204
9204
|
}), w = I(() => i.season && i.season.tournamentId && G4.has(i.season.tournamentId) || i.filters && i.filters.isEligibilitySwitchVisible);
|
|
9205
9205
|
ae(
|
|
9206
9206
|
c,
|
|
9207
9207
|
(F) => {
|
|
9208
|
-
const H = F.reduce((
|
|
9208
|
+
const H = F.reduce((B, oe, ce) => (ce !== 0 && oe.isSelected && B++, B), 0);
|
|
9209
9209
|
H === c.value.length - 1 && (F[0].isSelected = !0), F[0] && F[0].isSelected ? f.value = "Todas las nacionalidades" : f.value = `${H} seleccionadas`, O();
|
|
9210
9210
|
},
|
|
9211
9211
|
{ immediate: !0, deep: !0 }
|
|
9212
9212
|
), ae(
|
|
9213
9213
|
b,
|
|
9214
9214
|
(F) => {
|
|
9215
|
-
const H = F.reduce((
|
|
9215
|
+
const H = F.reduce((B, oe, ce) => (ce !== 0 && oe.isSelected && B++, B), 0);
|
|
9216
9216
|
H === b.value.length - 1 && (F[0].isSelected = !0), F[0] && F[0].isSelected ? g.value = "Todas las posiciones" : g.value = `${H} seleccionadas`, O();
|
|
9217
9217
|
},
|
|
9218
9218
|
{ immediate: !0, deep: !0 }
|
|
@@ -9221,7 +9221,7 @@ const G4 = /* @__PURE__ */ new Set([1]), Z4 = {
|
|
|
9221
9221
|
(F) => {
|
|
9222
9222
|
if (F && F.availableYears) {
|
|
9223
9223
|
const H = !Number.isNaN(Number(F.selectedYear));
|
|
9224
|
-
r.value = F, u.value = r.value.selectedYear && H ? 1 : 0, p.value = H ? r.value.selectedYear : r.value.availableYears[0], d.value.min = r.value.minAge, d.value.max = r.value.maxAge, o.isSelected = F.positions.every((
|
|
9224
|
+
r.value = F, u.value = r.value.selectedYear && H ? 1 : 0, p.value = H ? r.value.selectedYear : r.value.availableYears[0], d.value.min = r.value.minAge, d.value.max = r.value.maxAge, o.isSelected = F.positions.every((B) => B.isSelected), O();
|
|
9225
9225
|
}
|
|
9226
9226
|
},
|
|
9227
9227
|
{ immediate: !0, deep: !0 }
|
|
@@ -9240,8 +9240,8 @@ const G4 = /* @__PURE__ */ new Set([1]), Z4 = {
|
|
|
9240
9240
|
async function _(F) {
|
|
9241
9241
|
try {
|
|
9242
9242
|
if (F && F.id) {
|
|
9243
|
-
const H = /* @__PURE__ */ new Set(),
|
|
9244
|
-
|
|
9243
|
+
const H = /* @__PURE__ */ new Set(), B = await V(F.id), oe = /* @__PURE__ */ new Date(), ce = [], Oe = /* @__PURE__ */ new Map(), Ve = /* @__PURE__ */ new Map();
|
|
9244
|
+
B.forEach(($) => {
|
|
9245
9245
|
const W = new Date($.dob), re = W4(W), te = q4({
|
|
9246
9246
|
start: W,
|
|
9247
9247
|
end: oe
|
|
@@ -9263,17 +9263,17 @@ const G4 = /* @__PURE__ */ new Set([1]), Z4 = {
|
|
|
9263
9263
|
}
|
|
9264
9264
|
function A(F = null) {
|
|
9265
9265
|
const H = !F || F === ga.All;
|
|
9266
|
-
(H || F === ga.NATIONALITY) && c.value.forEach((
|
|
9267
|
-
|
|
9268
|
-
}), (H || F === ga.ELIGIBILITY) && (r.value.isEligibilitySelected = !1), (H || F === ga.POSITION) && b.value.forEach((
|
|
9269
|
-
|
|
9266
|
+
(H || F === ga.NATIONALITY) && c.value.forEach((B) => {
|
|
9267
|
+
B.isSelected = !0;
|
|
9268
|
+
}), (H || F === ga.ELIGIBILITY) && (r.value.isEligibilitySelected = !1), (H || F === ga.POSITION) && b.value.forEach((B) => {
|
|
9269
|
+
B.isSelected = !0;
|
|
9270
9270
|
}), (H || F === ga.AGE_RANGE) && (d.value.min = r.value.minAge, d.value.max = r.value.maxAge, u.value = 0), (H || F === ga.YEAR) && (p.value = i.isScouting ? r.value.availableYears[r.value.availableYears.length - 1] : r.value.availableYears[0], u.value = 0), O();
|
|
9271
9271
|
}
|
|
9272
9272
|
async function V(F) {
|
|
9273
9273
|
try {
|
|
9274
9274
|
const H = {
|
|
9275
9275
|
Authorization: localStorage.getItem("user_token") || i.token
|
|
9276
|
-
},
|
|
9276
|
+
}, B = {}.API_PLAYERS_BY_SEASONS ? {}.API_PLAYERS_BY_SEASONS : mb, oe = await Pi.get(B + F, { headers: H });
|
|
9277
9277
|
return oe.data ? oe.data.players : [];
|
|
9278
9278
|
} catch (H) {
|
|
9279
9279
|
return Promise.reject(H);
|
|
@@ -9286,10 +9286,10 @@ const G4 = /* @__PURE__ */ new Set([1]), Z4 = {
|
|
|
9286
9286
|
d.value.min = F.minValue, d.value.max = F.maxValue, O();
|
|
9287
9287
|
}
|
|
9288
9288
|
function z(F, H) {
|
|
9289
|
-
H.id === 0 ? c.value.forEach((
|
|
9290
|
-
|
|
9289
|
+
H.id === 0 ? c.value.forEach((B) => {
|
|
9290
|
+
B.isSelected = F;
|
|
9291
9291
|
}) : (H.isSelected = F, c.value[0].isSelected = c.value.every(
|
|
9292
|
-
(
|
|
9292
|
+
(B, oe) => oe === 0 ? !0 : B.isSelected
|
|
9293
9293
|
));
|
|
9294
9294
|
}
|
|
9295
9295
|
function O() {
|
|
@@ -9298,14 +9298,14 @@ const G4 = /* @__PURE__ */ new Set([1]), Z4 = {
|
|
|
9298
9298
|
min: r.value.minAge,
|
|
9299
9299
|
max: r.value.maxAge
|
|
9300
9300
|
}) : H.year = p.value, r.value.isEligibilitySelected ? H.eligibility = [...r.value.eligibility] : H.nationalities = c.value.reduce(
|
|
9301
|
-
(
|
|
9301
|
+
(B, oe, ce) => (ce !== 0 && B.push({ ...oe }), B),
|
|
9302
9302
|
[]
|
|
9303
|
-
), H.positions = b.value.reduce((
|
|
9303
|
+
), H.positions = b.value.reduce((B, oe, ce) => (ce !== 0 && B.push({ ...oe }), B), []), a("update:filters", H);
|
|
9304
9304
|
}
|
|
9305
9305
|
function D(F, H) {
|
|
9306
|
-
H.id === 0 ? b.value.forEach((
|
|
9307
|
-
|
|
9308
|
-
}) : (H.isSelected = F, b.value[0].isSelected = b.value.every((
|
|
9306
|
+
H.id === 0 ? b.value.forEach((B) => {
|
|
9307
|
+
B.isSelected = F;
|
|
9308
|
+
}) : (H.isSelected = F, b.value[0].isSelected = b.value.every((B, oe) => oe === 0 ? !0 : B.isSelected));
|
|
9309
9309
|
}
|
|
9310
9310
|
function x(F) {
|
|
9311
9311
|
p.value = F, i.filters && (i.filters.selectedYear = F), O();
|
|
@@ -9323,7 +9323,7 @@ const G4 = /* @__PURE__ */ new Set([1]), Z4 = {
|
|
|
9323
9323
|
}, null, 8, ["selected-button-index", "buttons"])
|
|
9324
9324
|
]),
|
|
9325
9325
|
fe(n("div", X4, [
|
|
9326
|
-
k(
|
|
9326
|
+
k(M(h1), {
|
|
9327
9327
|
"border-width": "0",
|
|
9328
9328
|
"background-color": "#0D1D29",
|
|
9329
9329
|
height: "30px",
|
|
@@ -9343,15 +9343,15 @@ const G4 = /* @__PURE__ */ new Set([1]), Z4 = {
|
|
|
9343
9343
|
]),
|
|
9344
9344
|
fe(n("div", Q4, [
|
|
9345
9345
|
eb,
|
|
9346
|
-
k(
|
|
9346
|
+
k(M(ea), Me({ "model-value": p.value }, h.value, {
|
|
9347
9347
|
items: r.value.availableYears,
|
|
9348
9348
|
onInput: x
|
|
9349
9349
|
}), {
|
|
9350
|
-
default: ye(({ selectedItem:
|
|
9351
|
-
n("div", tb, T(
|
|
9350
|
+
default: ye(({ selectedItem: B }) => [
|
|
9351
|
+
n("div", tb, T(B), 1)
|
|
9352
9352
|
]),
|
|
9353
|
-
availableItem: ye(({ item:
|
|
9354
|
-
n("div", null, T(
|
|
9353
|
+
availableItem: ye(({ item: B }) => [
|
|
9354
|
+
n("div", null, T(B), 1)
|
|
9355
9355
|
]),
|
|
9356
9356
|
_: 1
|
|
9357
9357
|
}, 16, ["model-value", "items"])
|
|
@@ -9365,26 +9365,26 @@ const G4 = /* @__PURE__ */ new Set([1]), Z4 = {
|
|
|
9365
9365
|
sb,
|
|
9366
9366
|
k(Xi, {
|
|
9367
9367
|
modelValue: r.value.isEligibilitySelected,
|
|
9368
|
-
"onUpdate:modelValue": H[0] || (H[0] = (
|
|
9368
|
+
"onUpdate:modelValue": H[0] || (H[0] = (B) => r.value.isEligibilitySelected = B)
|
|
9369
9369
|
}, null, 8, ["modelValue"]),
|
|
9370
9370
|
rb
|
|
9371
9371
|
])) : E("", !0),
|
|
9372
9372
|
n("div", nb, [
|
|
9373
9373
|
r.value.isEligibilitySelected ? (m(), v(Q, { key: 1 }, [
|
|
9374
9374
|
ub,
|
|
9375
|
-
k(
|
|
9375
|
+
k(M(ea), Me(h.value, {
|
|
9376
9376
|
"is-multiple-option": "",
|
|
9377
9377
|
items: r.value.eligibility,
|
|
9378
9378
|
"is-disabled": ""
|
|
9379
9379
|
}), {
|
|
9380
|
-
default: ye(({ selectedItem:
|
|
9381
|
-
n("div", cb, T(
|
|
9380
|
+
default: ye(({ selectedItem: B }) => [
|
|
9381
|
+
n("div", cb, T(B.name), 1)
|
|
9382
9382
|
]),
|
|
9383
|
-
availableItem: ye(({ item:
|
|
9383
|
+
availableItem: ye(({ item: B }) => [
|
|
9384
9384
|
n("div", null, [
|
|
9385
|
-
k(
|
|
9386
|
-
"model-value":
|
|
9387
|
-
label:
|
|
9385
|
+
k(M(Le), {
|
|
9386
|
+
"model-value": B.isSelected,
|
|
9387
|
+
label: B.name,
|
|
9388
9388
|
fontFamily: e.fontFamily,
|
|
9389
9389
|
width: "100%",
|
|
9390
9390
|
"avoid-interaction": ""
|
|
@@ -9395,21 +9395,21 @@ const G4 = /* @__PURE__ */ new Set([1]), Z4 = {
|
|
|
9395
9395
|
}, 16, ["items"])
|
|
9396
9396
|
], 64)) : (m(), v(Q, { key: 0 }, [
|
|
9397
9397
|
lb,
|
|
9398
|
-
k(
|
|
9398
|
+
k(M(ea), Me(h.value, {
|
|
9399
9399
|
"is-multiple-option": "",
|
|
9400
9400
|
items: c.value
|
|
9401
9401
|
}), {
|
|
9402
9402
|
default: ye(() => [
|
|
9403
9403
|
n("div", db, T(f.value), 1)
|
|
9404
9404
|
]),
|
|
9405
|
-
availableItem: ye(({ item:
|
|
9405
|
+
availableItem: ye(({ item: B }) => [
|
|
9406
9406
|
n("div", null, [
|
|
9407
|
-
k(
|
|
9408
|
-
"model-value":
|
|
9409
|
-
label:
|
|
9407
|
+
k(M(Le), {
|
|
9408
|
+
"model-value": B.isSelected,
|
|
9409
|
+
label: B.name,
|
|
9410
9410
|
fontFamily: e.fontFamily,
|
|
9411
9411
|
width: "100%",
|
|
9412
|
-
"onUpdate:modelValue": (oe) => z(oe,
|
|
9412
|
+
"onUpdate:modelValue": (oe) => z(oe, B)
|
|
9413
9413
|
}, null, 8, ["model-value", "label", "fontFamily", "onUpdate:modelValue"])
|
|
9414
9414
|
])
|
|
9415
9415
|
]),
|
|
@@ -9419,7 +9419,7 @@ const G4 = /* @__PURE__ */ new Set([1]), Z4 = {
|
|
|
9419
9419
|
]),
|
|
9420
9420
|
n("div", pb, [
|
|
9421
9421
|
fb,
|
|
9422
|
-
k(
|
|
9422
|
+
k(M(ea), Me(h.value, {
|
|
9423
9423
|
"is-multiple-option": "",
|
|
9424
9424
|
items: b.value
|
|
9425
9425
|
}), {
|
|
@@ -9432,14 +9432,14 @@ const G4 = /* @__PURE__ */ new Set([1]), Z4 = {
|
|
|
9432
9432
|
], 64))
|
|
9433
9433
|
])
|
|
9434
9434
|
]),
|
|
9435
|
-
availableItem: ye(({ item:
|
|
9435
|
+
availableItem: ye(({ item: B }) => [
|
|
9436
9436
|
n("div", null, [
|
|
9437
|
-
k(
|
|
9438
|
-
"model-value":
|
|
9439
|
-
label: e.isFemale ?
|
|
9437
|
+
k(M(Le), {
|
|
9438
|
+
"model-value": B.isSelected,
|
|
9439
|
+
label: e.isFemale ? B.name.replace("Portero", "Portera").replace("Delantero", "Delantera").replace("Volante defensivo", "Volante defensiva").replace("Volante ofensivo", "Volante ofensiva") : B.name,
|
|
9440
9440
|
fontFamily: e.fontFamily,
|
|
9441
9441
|
width: "100%",
|
|
9442
|
-
"onUpdate:modelValue": (oe) => D(oe,
|
|
9442
|
+
"onUpdate:modelValue": (oe) => D(oe, B)
|
|
9443
9443
|
}, null, 8, ["model-value", "label", "fontFamily", "onUpdate:modelValue"])
|
|
9444
9444
|
])
|
|
9445
9445
|
]),
|
|
@@ -9507,7 +9507,7 @@ const G4 = /* @__PURE__ */ new Set([1]), Z4 = {
|
|
|
9507
9507
|
key: c.id,
|
|
9508
9508
|
class: "plays__checkbox"
|
|
9509
9509
|
}, [
|
|
9510
|
-
k(
|
|
9510
|
+
k(M(Le), {
|
|
9511
9511
|
label: c.name,
|
|
9512
9512
|
fontFamily: e.fontFamily,
|
|
9513
9513
|
labelFontSize: "13px",
|
|
@@ -9543,7 +9543,7 @@ const G4 = /* @__PURE__ */ new Set([1]), Z4 = {
|
|
|
9543
9543
|
key: c.id,
|
|
9544
9544
|
class: "plays__checkbox"
|
|
9545
9545
|
}, [
|
|
9546
|
-
k(
|
|
9546
|
+
k(M(Le), {
|
|
9547
9547
|
label: c.name,
|
|
9548
9548
|
fontFamily: e.fontFamily,
|
|
9549
9549
|
labelFontSize: "13px",
|
|
@@ -9577,7 +9577,7 @@ const G4 = /* @__PURE__ */ new Set([1]), Z4 = {
|
|
|
9577
9577
|
key: c.id,
|
|
9578
9578
|
class: "plays__checkbox"
|
|
9579
9579
|
}, [
|
|
9580
|
-
k(
|
|
9580
|
+
k(M(Le), {
|
|
9581
9581
|
label: c.name,
|
|
9582
9582
|
fontFamily: e.fontFamily,
|
|
9583
9583
|
labelFontSize: "13px",
|
|
@@ -9611,7 +9611,7 @@ const G4 = /* @__PURE__ */ new Set([1]), Z4 = {
|
|
|
9611
9611
|
key: c.id,
|
|
9612
9612
|
class: "plays__checkbox"
|
|
9613
9613
|
}, [
|
|
9614
|
-
k(
|
|
9614
|
+
k(M(Le), {
|
|
9615
9615
|
label: c.name,
|
|
9616
9616
|
fontFamily: e.fontFamily,
|
|
9617
9617
|
labelFontSize: "13px",
|
|
@@ -9652,7 +9652,7 @@ const G4 = /* @__PURE__ */ new Set([1]), Z4 = {
|
|
|
9652
9652
|
key: l,
|
|
9653
9653
|
class: "template-results__result"
|
|
9654
9654
|
}, [
|
|
9655
|
-
k(
|
|
9655
|
+
k(M(Le), {
|
|
9656
9656
|
modelValue: r.isSelected,
|
|
9657
9657
|
"onUpdate:modelValue": (u) => r.isSelected = u,
|
|
9658
9658
|
label: r.name,
|
|
@@ -9800,7 +9800,7 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
9800
9800
|
t("input", i);
|
|
9801
9801
|
}
|
|
9802
9802
|
return (i, s) => (m(), v("div", Ub, [
|
|
9803
|
-
k(
|
|
9803
|
+
k(M(ea), Me(M(Ua), {
|
|
9804
9804
|
"is-list-same-width": e.isListSameWidth,
|
|
9805
9805
|
items: e.items,
|
|
9806
9806
|
onInput: a
|
|
@@ -9832,7 +9832,7 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
9832
9832
|
t("input", i);
|
|
9833
9833
|
}
|
|
9834
9834
|
return (i, s) => (m(), v("div", Wb, [
|
|
9835
|
-
k(
|
|
9835
|
+
k(M(ea), Me(M(Ua), {
|
|
9836
9836
|
items: e.items,
|
|
9837
9837
|
onInput: a
|
|
9838
9838
|
}), {
|
|
@@ -9989,7 +9989,7 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
9989
9989
|
t("input", i);
|
|
9990
9990
|
}
|
|
9991
9991
|
return (i, s) => (m(), v("div", A6, [
|
|
9992
|
-
k(
|
|
9992
|
+
k(M(ea), Me(M(Ua), {
|
|
9993
9993
|
items: e.items,
|
|
9994
9994
|
onInput: a
|
|
9995
9995
|
}), {
|
|
@@ -10029,11 +10029,11 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
10029
10029
|
},
|
|
10030
10030
|
setup(e) {
|
|
10031
10031
|
const t = e, a = ei(
|
|
10032
|
-
() => import("./FilterSubcategories-a9b32cc9-
|
|
10032
|
+
() => import("./FilterSubcategories-a9b32cc9-xuNUNIAa.js")
|
|
10033
10033
|
), i = ei(
|
|
10034
|
-
() => import("./FilterConditions-55d68355-
|
|
10034
|
+
() => import("./FilterConditions-55d68355-ZhqbxnS0.js")
|
|
10035
10035
|
), s = ei(
|
|
10036
|
-
() => import("./FilterField-59a73e38-
|
|
10036
|
+
() => import("./FilterField-59a73e38-CQh-Hx0E.js")
|
|
10037
10037
|
), o = [
|
|
10038
10038
|
{
|
|
10039
10039
|
name: "Sub categorías",
|
|
@@ -10627,8 +10627,8 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
10627
10627
|
t("loading-data");
|
|
10628
10628
|
let te = re;
|
|
10629
10629
|
try {
|
|
10630
|
-
te || (te = {}.API_CALENDAR_GAMES_BY_SEASON || a.gamesUrl, $.forEach((ne,
|
|
10631
|
-
te += `${
|
|
10630
|
+
te || (te = {}.API_CALENDAR_GAMES_BY_SEASON || a.gamesUrl, $.forEach((ne, P) => {
|
|
10631
|
+
te += `${P === 0 ? "" : "&"}seasons=${ne}`;
|
|
10632
10632
|
}));
|
|
10633
10633
|
const pe = {
|
|
10634
10634
|
Authorization: br() || a.token
|
|
@@ -10674,41 +10674,41 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
10674
10674
|
}), me.set(ne.team_id, ne), me), /* @__PURE__ */ new Map());
|
|
10675
10675
|
p.value = f.value.arrayTeams[0], f.value.mapGames = /* @__PURE__ */ new Map(), f.value.mapGamesByTeam = /* @__PURE__ */ new Map();
|
|
10676
10676
|
const ge = Array.from(
|
|
10677
|
-
W.reduce((me, ne) => (ne.games.forEach((
|
|
10678
|
-
if (
|
|
10679
|
-
(!f.value.maxGameId ||
|
|
10680
|
-
let de =
|
|
10681
|
-
const
|
|
10682
|
-
ne.season_type === 0 ? g.value.tournament_type === 1 && (
|
|
10683
|
-
id:
|
|
10684
|
-
date:
|
|
10685
|
-
dateTimeMillis: new Date(
|
|
10686
|
-
homeTeam: f.value.mapTeams.get(
|
|
10687
|
-
awayTeam: f.value.mapTeams.get(
|
|
10688
|
-
roundAbbreviation:
|
|
10689
|
-
roundName:
|
|
10690
|
-
score:
|
|
10677
|
+
W.reduce((me, ne) => (ne.games.forEach((P) => {
|
|
10678
|
+
if (P.game_status === 1 && P.has_video) {
|
|
10679
|
+
(!f.value.maxGameId || P.game_id > f.value.maxGameId) && (f.value.maxGameId = P.game_id);
|
|
10680
|
+
let de = P.matchday_abbreviation.replace("M", "J"), C = P.matchday_abbreviation.replace("M", "Jornada ");
|
|
10681
|
+
const L = P.matchday_abbreviation.replace("M", "");
|
|
10682
|
+
ne.season_type === 0 ? g.value.tournament_type === 1 && (P.seasonId === 881 ? (de = jb[L] || de, C = Db[L] || C) : (de = Ld[P.matchday_abbreviation] ? P.matchday_abbreviation : de, C = Ld[P.matchday_abbreviation] || C, de === "FINAL" && (de = "F"))) : ne.season_type === 1 ? (de = Nb[P.matchday_abbreviation], C = de) : (de = P.matchday_abbreviation.replace("PO", "R"), C = "Repechaje"), P.roundAbbreviation = de, P.roundName = C, f.value.mapGames.set(P.game_id, {
|
|
10683
|
+
id: P.game_id,
|
|
10684
|
+
date: P.date,
|
|
10685
|
+
dateTimeMillis: new Date(P.date_time_utc).valueOf(),
|
|
10686
|
+
homeTeam: f.value.mapTeams.get(P.home_team),
|
|
10687
|
+
awayTeam: f.value.mapTeams.get(P.visiting_team),
|
|
10688
|
+
roundAbbreviation: P.roundAbbreviation,
|
|
10689
|
+
roundName: P.roundName,
|
|
10690
|
+
score: P.score,
|
|
10691
10691
|
// 1 = local wins, 2 = away wins, 3 = tied
|
|
10692
|
-
gameResult:
|
|
10692
|
+
gameResult: P.score[0] > P.score[1] ? 1 : P.score[0] < P.score[1] ? 2 : 3,
|
|
10693
10693
|
seasonId: ne.season_id
|
|
10694
10694
|
});
|
|
10695
|
-
const he = me.get(
|
|
10696
|
-
|
|
10695
|
+
const he = me.get(P.roundAbbreviation);
|
|
10696
|
+
P.numberDateTimeMillis = new Date(P.date_time_utc).getTime(), P.homeTeam = pe.get(P.home_team), P.awayTeam = pe.get(P.visiting_team);
|
|
10697
10697
|
const jt = f.value.mapGamesByTeam.get(
|
|
10698
|
-
|
|
10698
|
+
P.home_team
|
|
10699
10699
|
), At = f.value.mapGamesByTeam.get(
|
|
10700
|
-
|
|
10700
|
+
P.visiting_team
|
|
10701
10701
|
);
|
|
10702
|
-
jt ? jt.push(
|
|
10703
|
-
stringMatchDayAbbreviation:
|
|
10704
|
-
stringMatchDayName:
|
|
10705
|
-
arrayGames: [
|
|
10702
|
+
jt ? jt.push(P) : f.value.mapGamesByTeam.set(P.home_team, [P]), At ? At.push(P) : f.value.mapGamesByTeam.set(P.visiting_team, [P]), he ? he.arrayGames.push(P) : me.set(P.roundAbbreviation, {
|
|
10703
|
+
stringMatchDayAbbreviation: P.roundAbbreviation,
|
|
10704
|
+
stringMatchDayName: P.roundName,
|
|
10705
|
+
arrayGames: [P]
|
|
10706
10706
|
});
|
|
10707
10707
|
}
|
|
10708
10708
|
}), me), /* @__PURE__ */ new Map()).values()
|
|
10709
10709
|
);
|
|
10710
10710
|
ge.reverse(), ge.forEach((me) => {
|
|
10711
|
-
me.arrayGames.sort((ne,
|
|
10711
|
+
me.arrayGames.sort((ne, P) => ne.numberDateTimeMillis - P.numberDateTimeMillis);
|
|
10712
10712
|
}), f.value.arrayMatchDays = ge, y.value = ge[0] || {};
|
|
10713
10713
|
} catch (W) {
|
|
10714
10714
|
throw new Error(W);
|
|
@@ -10736,27 +10736,27 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
10736
10736
|
async function O() {
|
|
10737
10737
|
try {
|
|
10738
10738
|
let $ = [];
|
|
10739
|
-
c.value.isEmpty ? ($ = await
|
|
10739
|
+
c.value.isEmpty ? ($ = await B(), b.value = {
|
|
10740
10740
|
...$
|
|
10741
10741
|
}) : $ = b.value;
|
|
10742
10742
|
const W = [];
|
|
10743
10743
|
if ($ && $.length) {
|
|
10744
10744
|
c.value = $.reduce(
|
|
10745
|
-
(ne,
|
|
10746
|
-
if (
|
|
10745
|
+
(ne, P) => {
|
|
10746
|
+
if (P.group_id !== "g-55") {
|
|
10747
10747
|
const de = {
|
|
10748
|
-
idAux:
|
|
10748
|
+
idAux: P.group_id,
|
|
10749
10749
|
ids: [
|
|
10750
|
-
...
|
|
10751
|
-
...
|
|
10750
|
+
...P.ids ? P.ids : [],
|
|
10751
|
+
...P.rival_Ids ? P.rival_Ids : []
|
|
10752
10752
|
],
|
|
10753
|
-
type:
|
|
10754
|
-
name:
|
|
10755
|
-
coordinatePoint:
|
|
10756
|
-
requiresRivalTransform: o.includes(
|
|
10753
|
+
type: P.type,
|
|
10754
|
+
name: P.name,
|
|
10755
|
+
coordinatePoint: P.coordinate_point,
|
|
10756
|
+
requiresRivalTransform: o.includes(P.group_id)
|
|
10757
10757
|
};
|
|
10758
|
-
de.idsAux = [...de.ids], de.subcategoryGroups =
|
|
10759
|
-
|
|
10758
|
+
de.idsAux = [...de.ids], de.subcategoryGroups = P.group_id === "g-12" ? [] : D(
|
|
10759
|
+
P,
|
|
10760
10760
|
0,
|
|
10761
10761
|
/* @__PURE__ */ new Map(),
|
|
10762
10762
|
!1,
|
|
@@ -10775,18 +10775,18 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
10775
10775
|
}
|
|
10776
10776
|
);
|
|
10777
10777
|
const re = /* @__PURE__ */ new Map(), te = "Resumen", pe = "Todas sus jugadas", ge = c.value.player.reduce(
|
|
10778
|
-
(ne,
|
|
10779
|
-
const de = x(
|
|
10778
|
+
(ne, P) => {
|
|
10779
|
+
const de = x(P);
|
|
10780
10780
|
return de.forEach((C) => {
|
|
10781
|
-
re.set(C,
|
|
10781
|
+
re.set(C, P.name);
|
|
10782
10782
|
}), ne.push(...de), ne;
|
|
10783
10783
|
},
|
|
10784
10784
|
[]
|
|
10785
10785
|
), me = c.value.goalkeeper.reduce(
|
|
10786
|
-
(ne,
|
|
10787
|
-
const de = x(
|
|
10786
|
+
(ne, P) => {
|
|
10787
|
+
const de = x(P);
|
|
10788
10788
|
return de.forEach((C) => {
|
|
10789
|
-
re.set(C,
|
|
10789
|
+
re.set(C, P.name);
|
|
10790
10790
|
}), ne.push(...de), ne;
|
|
10791
10791
|
},
|
|
10792
10792
|
[]
|
|
@@ -10833,7 +10833,7 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
10833
10833
|
let me = re.get(W);
|
|
10834
10834
|
const ne = te ? `${$.id_category}_r` : $.id_category;
|
|
10835
10835
|
$.id_category && ge.push($.id_category);
|
|
10836
|
-
let
|
|
10836
|
+
let P = {
|
|
10837
10837
|
ids: [ne],
|
|
10838
10838
|
groupId: $.group_id,
|
|
10839
10839
|
level: W,
|
|
@@ -10844,28 +10844,28 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
10844
10844
|
[$.category_father]: [ne]
|
|
10845
10845
|
}
|
|
10846
10846
|
};
|
|
10847
|
-
if (W > 0 && W === 1 && (
|
|
10847
|
+
if (W > 0 && W === 1 && (P.id = $.id_category), me && W !== 0) {
|
|
10848
10848
|
const de = $.group_id.charAt($.group_id.length - 1), C = me.find(
|
|
10849
|
-
(
|
|
10849
|
+
(L) => L.groupId.endsWith(de)
|
|
10850
10850
|
);
|
|
10851
|
-
C && !s.includes(
|
|
10852
|
-
|
|
10853
|
-
(he) => he.groupId ===
|
|
10854
|
-
) ||
|
|
10855
|
-
}), C.idsByFatherCategory[$.category_father] ? C.idsByFatherCategory[$.category_father].push(ne) : C.idsByFatherCategory[$.category_father] = [ne]) : (
|
|
10856
|
-
|
|
10857
|
-
(he) => he.groupId ===
|
|
10858
|
-
) ||
|
|
10859
|
-
}), me.push(
|
|
10851
|
+
C && !s.includes(P.groupId) ? (P = C, C.ids.push(ne), C.fatherCategories.push(pe), C.fatherCategories.forEach((L) => {
|
|
10852
|
+
L.childCategories ? L.childCategories.find(
|
|
10853
|
+
(he) => he.groupId === P.groupId
|
|
10854
|
+
) || L.childCategories.push(P) : L.childCategories = [P];
|
|
10855
|
+
}), C.idsByFatherCategory[$.category_father] ? C.idsByFatherCategory[$.category_father].push(ne) : C.idsByFatherCategory[$.category_father] = [ne]) : (P.fatherCategories.forEach((L) => {
|
|
10856
|
+
L.childCategories ? L.childCategories.find(
|
|
10857
|
+
(he) => he.groupId === P.groupId
|
|
10858
|
+
) || L.childCategories.push(P) : L.childCategories = [P];
|
|
10859
|
+
}), me.push(P));
|
|
10860
10860
|
} else
|
|
10861
|
-
W !== 0 && (pe.childCategories ? pe.childCategories.push(
|
|
10861
|
+
W !== 0 && (pe.childCategories ? pe.childCategories.push(P) : pe.childCategories = [P], me = [P], re.set(W, me));
|
|
10862
10862
|
if ($.categories && $.categories.length ? $.categories.forEach((de) => {
|
|
10863
10863
|
D(
|
|
10864
10864
|
de,
|
|
10865
10865
|
W + 1,
|
|
10866
10866
|
re,
|
|
10867
10867
|
te,
|
|
10868
|
-
|
|
10868
|
+
P,
|
|
10869
10869
|
ge
|
|
10870
10870
|
);
|
|
10871
10871
|
}) : $.rival_categories && $.rival_categories.length && $.rival_categories.forEach((de) => {
|
|
@@ -10874,7 +10874,7 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
10874
10874
|
W + 1,
|
|
10875
10875
|
re,
|
|
10876
10876
|
!0,
|
|
10877
|
-
|
|
10877
|
+
P,
|
|
10878
10878
|
ge
|
|
10879
10879
|
);
|
|
10880
10880
|
}), W === 0)
|
|
@@ -10897,8 +10897,8 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
10897
10897
|
}
|
|
10898
10898
|
function F($, W = [], re = { total: [], toRemove: [] }) {
|
|
10899
10899
|
$.isSelected ? $.childCategories ? $.childCategories.forEach((te) => {
|
|
10900
|
-
const pe = W ? Object.entries($.idsByFatherCategory).reduce((ge, [me, ne]) => (W.includes(Number(me)) && ne.forEach((
|
|
10901
|
-
typeof
|
|
10900
|
+
const pe = W ? Object.entries($.idsByFatherCategory).reduce((ge, [me, ne]) => (W.includes(Number(me)) && ne.forEach((P) => {
|
|
10901
|
+
typeof P == "string" && P.endsWith("_r") ? ge.push(Number(P.split("_")[0])) : ge.push(P);
|
|
10902
10902
|
}), ge), []) : [$.id];
|
|
10903
10903
|
F(te, pe, re);
|
|
10904
10904
|
}) : W ? Object.entries($.idsByFatherCategory).forEach(([te, pe]) => {
|
|
@@ -10930,7 +10930,7 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
10930
10930
|
return Promise.reject(W);
|
|
10931
10931
|
}
|
|
10932
10932
|
}
|
|
10933
|
-
async function
|
|
10933
|
+
async function B() {
|
|
10934
10934
|
try {
|
|
10935
10935
|
const $ = {
|
|
10936
10936
|
Authorization: localStorage.getItem("user_token") || "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"
|
|
@@ -11064,7 +11064,7 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
11064
11064
|
})
|
|
11065
11065
|
}, T(r.value), 5),
|
|
11066
11066
|
n("div", A7, [
|
|
11067
|
-
k(
|
|
11067
|
+
k(M(Le), {
|
|
11068
11068
|
"model-value": s.value,
|
|
11069
11069
|
label: "Seleccionar todos",
|
|
11070
11070
|
"onUpdate:modelValue": p
|
|
@@ -11101,7 +11101,7 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
11101
11101
|
])
|
|
11102
11102
|
]),
|
|
11103
11103
|
n("div", z7, [
|
|
11104
|
-
k(
|
|
11104
|
+
k(M(Le), {
|
|
11105
11105
|
modelValue: w.isSelected,
|
|
11106
11106
|
"onUpdate:modelValue": (_) => w.isSelected = _,
|
|
11107
11107
|
"avoid-interaction": l.value === 1 && w.isSelected
|
|
@@ -11404,7 +11404,7 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
11404
11404
|
style: ee(e.widthContainer <= 440 ? "font-size: 12px;" : "#2e3b46")
|
|
11405
11405
|
}, " Todas las zonas ", 4),
|
|
11406
11406
|
n("div", c9, [
|
|
11407
|
-
k(
|
|
11407
|
+
k(M(Le), {
|
|
11408
11408
|
label: "",
|
|
11409
11409
|
fontFamily: "Poppins-Regular",
|
|
11410
11410
|
labelFontSize: "11px",
|
|
@@ -11966,7 +11966,7 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
11966
11966
|
onResetFilters: g
|
|
11967
11967
|
}), (p, y) => (m(), v("div", c_, [
|
|
11968
11968
|
n("div", p_, [
|
|
11969
|
-
k(
|
|
11969
|
+
k(M(Le), {
|
|
11970
11970
|
label: "Todos",
|
|
11971
11971
|
"model-value": r.value,
|
|
11972
11972
|
"box-position": "right",
|
|
@@ -11980,7 +11980,7 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
11980
11980
|
}, [
|
|
11981
11981
|
c.child ? (m(), v("div", h_, [
|
|
11982
11982
|
n("div", m_, [
|
|
11983
|
-
k(
|
|
11983
|
+
k(M(Le), {
|
|
11984
11984
|
"model-value": c.isSelected,
|
|
11985
11985
|
label: e.isFemale ? c.text.replace("Ganados por portero rival", "Ganados por portera rival").replace("Ganados por jugador rival", "Ganados por jugadora rival") : c.text,
|
|
11986
11986
|
"avoid-interaction": l.value && c.isSelected,
|
|
@@ -11991,7 +11991,7 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
11991
11991
|
key: `c${_}`,
|
|
11992
11992
|
class: "what-happened__filters__filter__composed__child"
|
|
11993
11993
|
}, [
|
|
11994
|
-
k(
|
|
11994
|
+
k(M(Le), {
|
|
11995
11995
|
"model-value": w.isSelected,
|
|
11996
11996
|
label: e.isFemale ? w.text.replace("Ganados por portero rival", "Ganados por portera rival").replace("Ganados por jugador rival", "Ganados por jugadora rival") : w.text,
|
|
11997
11997
|
"avoid-interaction": l.value && w.isSelected,
|
|
@@ -11999,7 +11999,7 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
11999
11999
|
}, null, 8, ["model-value", "label", "avoid-interaction", "onUpdate:modelValue"])
|
|
12000
12000
|
]))), 128))
|
|
12001
12001
|
])) : (m(), v("div", y_, [
|
|
12002
|
-
k(
|
|
12002
|
+
k(M(Le), {
|
|
12003
12003
|
"model-value": c.isSelected,
|
|
12004
12004
|
label: e.isFemale ? c.text.replace("Ganados por portero rival", "Ganados por portera rival").replace("Ganados por jugador rival", "Ganados por jugadora rival") : c.text,
|
|
12005
12005
|
"avoid-interaction": l.value && c.isSelected,
|
|
@@ -12115,7 +12115,7 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
12115
12115
|
key: f,
|
|
12116
12116
|
class: "template-results__result"
|
|
12117
12117
|
}, [
|
|
12118
|
-
k(
|
|
12118
|
+
k(M(Le), {
|
|
12119
12119
|
modelValue: h.isSelected,
|
|
12120
12120
|
"onUpdate:modelValue": (g) => h.isSelected = g,
|
|
12121
12121
|
label: h.name,
|
|
@@ -12127,7 +12127,7 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
12127
12127
|
key: f,
|
|
12128
12128
|
class: "template-results__result"
|
|
12129
12129
|
}, [
|
|
12130
|
-
k(
|
|
12130
|
+
k(M(Le), {
|
|
12131
12131
|
modelValue: h.isSelected,
|
|
12132
12132
|
"onUpdate:modelValue": (g) => h.isSelected = g,
|
|
12133
12133
|
label: h.name,
|
|
@@ -12510,23 +12510,23 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
12510
12510
|
"--text-color": i.textColor
|
|
12511
12511
|
})), y = I(() => {
|
|
12512
12512
|
const C = [];
|
|
12513
|
-
return Array.isArray(i.productivityCategories) ? i.productivityCategories.forEach((
|
|
12514
|
-
C.push(
|
|
12515
|
-
}) : i.productivityCategories && Object.values(i.productivityCategories).forEach((
|
|
12516
|
-
|
|
12513
|
+
return Array.isArray(i.productivityCategories) ? i.productivityCategories.forEach((L) => {
|
|
12514
|
+
C.push(L);
|
|
12515
|
+
}) : i.productivityCategories && Object.values(i.productivityCategories).forEach((L) => {
|
|
12516
|
+
L.categories && L.categories.forEach((he) => {
|
|
12517
12517
|
C.push(he);
|
|
12518
12518
|
});
|
|
12519
12519
|
}), C;
|
|
12520
12520
|
}), c = I(() => {
|
|
12521
12521
|
const C = [];
|
|
12522
|
-
return i.playsCategories && Object.values(i.playsCategories).forEach((
|
|
12523
|
-
|
|
12522
|
+
return i.playsCategories && Object.values(i.playsCategories).forEach((L) => {
|
|
12523
|
+
L.categories && L.categories.forEach((he) => {
|
|
12524
12524
|
C.push(he);
|
|
12525
12525
|
});
|
|
12526
12526
|
}), C;
|
|
12527
12527
|
}), b = I(() => {
|
|
12528
12528
|
const C = y.value.filter(
|
|
12529
|
-
(
|
|
12529
|
+
(L) => L.isSelected
|
|
12530
12530
|
);
|
|
12531
12531
|
return V(C), i.filterType === j.PRODUCTIVITY && a("change-categories-selected", C.length), C.length;
|
|
12532
12532
|
}), w = I(() => !i.isForTemplateForm && b.value >= i.productivityMaxCategories), _ = I(() => !i.isForTemplateForm && b.value <= i.productivityMinCategories), A = I(() => i.isPlayingAsHidden ? i.gameSections : i.playingAs.concat(i.gameSections));
|
|
@@ -12540,8 +12540,8 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
12540
12540
|
() => A.value,
|
|
12541
12541
|
(C) => {
|
|
12542
12542
|
if (i.filterType === j.DETAILS) {
|
|
12543
|
-
const
|
|
12544
|
-
a("change-filters-selected",
|
|
12543
|
+
const L = C.filter((he) => he.isSelected);
|
|
12544
|
+
a("change-filters-selected", L.length);
|
|
12545
12545
|
}
|
|
12546
12546
|
},
|
|
12547
12547
|
{ immediate: !0, deep: !0 }
|
|
@@ -12549,8 +12549,8 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
12549
12549
|
() => i.playsGolstatsCategories,
|
|
12550
12550
|
(C) => {
|
|
12551
12551
|
if (i.filterType === j.PLAYS_TYPES || i.filterType === j.GOLSTATS) {
|
|
12552
|
-
const
|
|
12553
|
-
a("change-filters-selected",
|
|
12552
|
+
const L = C.filter((he) => he.isSelected);
|
|
12553
|
+
a("change-filters-selected", L.length);
|
|
12554
12554
|
}
|
|
12555
12555
|
},
|
|
12556
12556
|
{ immediate: !0 }
|
|
@@ -12562,7 +12562,7 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
12562
12562
|
), ae(
|
|
12563
12563
|
c,
|
|
12564
12564
|
() => {
|
|
12565
|
-
i.filterType === j.PLAYS &&
|
|
12565
|
+
i.filterType === j.PLAYS && B();
|
|
12566
12566
|
},
|
|
12567
12567
|
{ immediate: !0, deep: !0 }
|
|
12568
12568
|
), ae(
|
|
@@ -12574,14 +12574,14 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
12574
12574
|
), ae(
|
|
12575
12575
|
() => i.resultsFilters,
|
|
12576
12576
|
(C) => {
|
|
12577
|
-
i.filterType === j.RESULTS && a("change-filters-selected", C.results.filter((
|
|
12577
|
+
i.filterType === j.RESULTS && a("change-filters-selected", C.results.filter((L) => L.isSelected).length);
|
|
12578
12578
|
},
|
|
12579
12579
|
{ immediate: !0, deep: !0 }
|
|
12580
12580
|
);
|
|
12581
12581
|
function V(C) {
|
|
12582
12582
|
setTimeout(() => {
|
|
12583
|
-
C.sort((
|
|
12584
|
-
|
|
12583
|
+
C.sort((L, he) => L.priority - he.priority), C.forEach((L, he) => {
|
|
12584
|
+
L.priority = he + 1;
|
|
12585
12585
|
});
|
|
12586
12586
|
}, 10);
|
|
12587
12587
|
}
|
|
@@ -12589,31 +12589,31 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
12589
12589
|
N(C);
|
|
12590
12590
|
}
|
|
12591
12591
|
function N(C = null) {
|
|
12592
|
-
i.filterType === j.PRODUCTIVITY ? y.value.forEach((
|
|
12593
|
-
|
|
12594
|
-
}) : i.filterType === j.PLAYS ? (c.value.forEach((
|
|
12595
|
-
|
|
12596
|
-
}), o.value = !0) : i.filterType === j.FIELD ? a("change-field-areas", [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]) : i.filterType === j.DETAILS ? (i.playingAs.forEach((
|
|
12597
|
-
|
|
12598
|
-
}), i.gameSections.forEach((
|
|
12599
|
-
|
|
12600
|
-
})) : i.filterType === j.TOURNAMENTS ? (i.tournaments.forEach((
|
|
12601
|
-
i.isOneTournamentOnly ?
|
|
12602
|
-
}), a("change-filters-selected", 0)) : i.filterType === j.PLAYS_TYPES ? i.playsGolstatsCategories.forEach((
|
|
12603
|
-
|
|
12604
|
-
}) : i.filterType === j.GOLSTATS ? i.playsGolstatsCategories.forEach((
|
|
12605
|
-
|
|
12592
|
+
i.filterType === j.PRODUCTIVITY ? y.value.forEach((L) => {
|
|
12593
|
+
L.isSelected = L.isDefault || !1;
|
|
12594
|
+
}) : i.filterType === j.PLAYS ? (c.value.forEach((L) => {
|
|
12595
|
+
L.isSelected = !0;
|
|
12596
|
+
}), o.value = !0) : i.filterType === j.FIELD ? a("change-field-areas", [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]) : i.filterType === j.DETAILS ? (i.playingAs.forEach((L) => {
|
|
12597
|
+
L.isSelected = !0;
|
|
12598
|
+
}), i.gameSections.forEach((L) => {
|
|
12599
|
+
L.isSelected = !0;
|
|
12600
|
+
})) : i.filterType === j.TOURNAMENTS ? (i.tournaments.forEach((L, he) => {
|
|
12601
|
+
i.isOneTournamentOnly ? L.isSelected = he === 0 : L.isSelected = !0;
|
|
12602
|
+
}), a("change-filters-selected", 0)) : i.filterType === j.PLAYS_TYPES ? i.playsGolstatsCategories.forEach((L) => {
|
|
12603
|
+
L.isSelected = !0;
|
|
12604
|
+
}) : i.filterType === j.GOLSTATS ? i.playsGolstatsCategories.forEach((L) => {
|
|
12605
|
+
L.isSelected = !1;
|
|
12606
12606
|
}) : i.filterType === j.UNIVERSE ? u.value && u.value.resetFilters() : i.filterType === j.PERSONAL_DATA ? (s.value && s.value.onClearFilters(C || ga.All), a("change-personal-data-filters", {})) : i.filterType === j.DISTANCE ? a("update:filters", {
|
|
12607
12607
|
minValue: i.distanceFilters.minLimit,
|
|
12608
12608
|
maxValue: i.distanceFilters.maxLimit
|
|
12609
12609
|
}) : i.filterType === j.RESULTS ? a("update:filters", {
|
|
12610
|
-
results: i.resultsFilters.results.map((
|
|
12611
|
-
}) : i.filterType === j.RESULTS_BY_TIME ? g.value && g.value.removeFilters() : i.filterType === j.GAMES ? i.gamesFilters.forEach((
|
|
12612
|
-
|
|
12613
|
-
}) : i.filterType === j.TAKEN_CORNERS ? d.value.clearFilters() : i.filterType === j.HOW_WAS_CORNER ? (i.howWasCornerFilters.left.forEach((
|
|
12614
|
-
|
|
12615
|
-
}), i.howWasCornerFilters.right.forEach((
|
|
12616
|
-
|
|
12610
|
+
results: i.resultsFilters.results.map((L) => (L.isSelected = !0, L))
|
|
12611
|
+
}) : i.filterType === j.RESULTS_BY_TIME ? g.value && g.value.removeFilters() : i.filterType === j.GAMES ? i.gamesFilters.forEach((L) => {
|
|
12612
|
+
L.isSelected = !0;
|
|
12613
|
+
}) : i.filterType === j.TAKEN_CORNERS ? d.value.clearFilters() : i.filterType === j.HOW_WAS_CORNER ? (i.howWasCornerFilters.left.forEach((L) => {
|
|
12614
|
+
L.isSelected = !0;
|
|
12615
|
+
}), i.howWasCornerFilters.right.forEach((L) => {
|
|
12616
|
+
L.isSelected = !0;
|
|
12617
12617
|
})) : i.filterType === j.ZONE ? h.value && h.value.clearFilters() : i.filterType === j.WHAT_HAPPENED && f.value && f.value.onResetFilters();
|
|
12618
12618
|
}
|
|
12619
12619
|
function z(C) {
|
|
@@ -12632,36 +12632,36 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
12632
12632
|
a("change-filters-selected", C);
|
|
12633
12633
|
}
|
|
12634
12634
|
function H(C) {
|
|
12635
|
-
i.filterType === j.PRODUCTIVITY ? y.value.forEach((
|
|
12636
|
-
|
|
12637
|
-
}) : (o.value = C, i.playsCategories.offensive.categories.forEach((
|
|
12638
|
-
|
|
12639
|
-
}), i.playsCategories.defensive.categories.forEach((
|
|
12640
|
-
|
|
12641
|
-
}), i.playsCategories.possession.categories.forEach((
|
|
12642
|
-
|
|
12643
|
-
}), i.playsCategories.offenses.categories.forEach((
|
|
12644
|
-
|
|
12635
|
+
i.filterType === j.PRODUCTIVITY ? y.value.forEach((L) => {
|
|
12636
|
+
L.isSelected = C;
|
|
12637
|
+
}) : (o.value = C, i.playsCategories.offensive.categories.forEach((L) => {
|
|
12638
|
+
L.isSelected = C;
|
|
12639
|
+
}), i.playsCategories.defensive.categories.forEach((L) => {
|
|
12640
|
+
L.isSelected = C;
|
|
12641
|
+
}), i.playsCategories.possession.categories.forEach((L) => {
|
|
12642
|
+
L.isSelected = C;
|
|
12643
|
+
}), i.playsCategories.offenses.categories.forEach((L) => {
|
|
12644
|
+
L.isSelected = C;
|
|
12645
12645
|
}));
|
|
12646
12646
|
}
|
|
12647
|
-
function
|
|
12647
|
+
function B() {
|
|
12648
12648
|
let C = 0;
|
|
12649
|
-
const
|
|
12649
|
+
const L = {
|
|
12650
12650
|
playsCategories: c.value.filter((he) => he.isSelected)
|
|
12651
12651
|
};
|
|
12652
|
-
o.value =
|
|
12652
|
+
o.value = L.playsCategories.length === c.value.length, C = L.playsCategories.length, Object.values(l.value).forEach((he) => {
|
|
12653
12653
|
he && C++;
|
|
12654
|
-
}), a("change-filters-selected", C), a("update:filters",
|
|
12654
|
+
}), a("change-filters-selected", C), a("update:filters", L);
|
|
12655
12655
|
}
|
|
12656
12656
|
function oe() {
|
|
12657
12657
|
let C = 0;
|
|
12658
|
-
const
|
|
12658
|
+
const L = {
|
|
12659
12659
|
productivityFilters: y.value.filter((he) => he.isSelected),
|
|
12660
12660
|
offensesConditions: l.value
|
|
12661
12661
|
};
|
|
12662
|
-
C =
|
|
12662
|
+
C = L.productivityFilters.length, Object.values(l.value).forEach((he) => {
|
|
12663
12663
|
he && C++;
|
|
12664
|
-
}), a("change-filters-selected", C), a("update:filters",
|
|
12664
|
+
}), a("change-filters-selected", C), a("update:filters", L);
|
|
12665
12665
|
}
|
|
12666
12666
|
function ce(C) {
|
|
12667
12667
|
a("click-parameters", C);
|
|
@@ -12698,30 +12698,30 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
12698
12698
|
i.filterType === j.RESULTS && a("update:filters", C);
|
|
12699
12699
|
}
|
|
12700
12700
|
function ne(C) {
|
|
12701
|
-
i.filterType === j.GAMES && (a("update:filters", C), a("change-filters-selected", C.filter((
|
|
12701
|
+
i.filterType === j.GAMES && (a("update:filters", C), a("change-filters-selected", C.filter((L) => L.isSelected).length));
|
|
12702
12702
|
}
|
|
12703
|
-
function
|
|
12703
|
+
function P(C) {
|
|
12704
12704
|
r.value.statisticType = C;
|
|
12705
12705
|
}
|
|
12706
12706
|
const de = I(() => i.filterType === j.PLAYS ? c.value.length : i.filterType === j.PRODUCTIVITY ? y.value.length : i.filterType === j.FIELD ? 16 : i.filterType === j.UNIVERSE ? 6 : i.filterType === j.DETAILS ? 8 : i.filterType === j.RESULTS || i.filterType === j.RESULTS_BY_TIME ? 3 : i.filterType === j.GAMES ? i.gamesFilters.length : 0);
|
|
12707
12707
|
return a("total-filters", de), t({
|
|
12708
12708
|
clearFilters: R
|
|
12709
|
-
}), (C,
|
|
12709
|
+
}), (C, L) => (m(), v("div", {
|
|
12710
12710
|
class: "templates",
|
|
12711
12711
|
style: ee(p.value)
|
|
12712
12712
|
}, [
|
|
12713
|
-
e.filterType ===
|
|
12713
|
+
e.filterType === M(j).PRODUCTIVITY || e.filterType === M(j).PLAYS ? (m(), v("div", {
|
|
12714
12714
|
key: 0,
|
|
12715
12715
|
class: se(e.isExpansionMode ? "productivity__header__expansion" : "productivity__header")
|
|
12716
12716
|
}, [
|
|
12717
|
-
e.filterType ===
|
|
12717
|
+
e.filterType === M(j).PRODUCTIVITY ? (m(), v("div", F_, [
|
|
12718
12718
|
e.productivityText ? (m(), v("div", $_, T(e.productivityText), 1)) : e.isFromTemplates ? (m(), v("div", A_, [
|
|
12719
12719
|
De(" Elige tipo de jugadas: "),
|
|
12720
12720
|
n("span", null, "mínimo " + T(e.productivityMinCategories) + " categorías y máximo " + T(e.productivityMaxCategories), 1)
|
|
12721
12721
|
])) : e.isForTemplateForm ? (m(), v("div", R_, "Tipo de participación")) : (m(), v("div", O_, "Selecciona hasta 5 categorias en orden de importancia"))
|
|
12722
12722
|
])) : E("", !0),
|
|
12723
|
-
e.filterType ===
|
|
12724
|
-
k(
|
|
12723
|
+
e.filterType === M(j).PLAYS || e.isForTemplateForm ? (m(), v("div", B_, [
|
|
12724
|
+
k(M(Le), {
|
|
12725
12725
|
label: e.isForTemplateForm ? "Seleccionar todas" : "Todos los tipos de jugadas",
|
|
12726
12726
|
"box-position": e.isForTemplateForm ? "right" : "left",
|
|
12727
12727
|
fontFamily: "Poppins-Regular",
|
|
@@ -12733,13 +12733,13 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
12733
12733
|
])) : E("", !0)
|
|
12734
12734
|
], 2)) : E("", !0),
|
|
12735
12735
|
n("div", M_, [
|
|
12736
|
-
e.filterType ===
|
|
12736
|
+
e.filterType === M(j).PLAYS ? (m(), v("div", P_, [
|
|
12737
12737
|
k(Mb, {
|
|
12738
12738
|
"plays-categories": e.playsCategories,
|
|
12739
12739
|
"is-expansion-mode": e.isExpansionMode
|
|
12740
12740
|
}, null, 8, ["plays-categories", "is-expansion-mode"])
|
|
12741
12741
|
])) : E("", !0),
|
|
12742
|
-
e.filterType ===
|
|
12742
|
+
e.filterType === M(j).PRODUCTIVITY ? (m(), v("div", L_, [
|
|
12743
12743
|
k(ky, {
|
|
12744
12744
|
"productivity-categories": e.productivityCategories,
|
|
12745
12745
|
"number-of-categories-selected": b.value,
|
|
@@ -12754,14 +12754,14 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
12754
12754
|
onClickParameters: ce
|
|
12755
12755
|
}, null, 8, ["productivity-categories", "number-of-categories-selected", "are-max-categories-reached", "are-min-categories-reached", "is-expansion-mode", "is-from-templates", "is-for-template-form", "are-productivity-buttons-visible", "are-offenses-conditions-visible"])
|
|
12756
12756
|
])) : E("", !0),
|
|
12757
|
-
e.filterType ===
|
|
12758
|
-
k(
|
|
12757
|
+
e.filterType === M(j).FIELD ? (m(), v("div", I_, [
|
|
12758
|
+
k(M(N5), Me(e.fieldComponentProps, {
|
|
12759
12759
|
"background-color": e.backgroundColor,
|
|
12760
12760
|
value: e.fieldAreas,
|
|
12761
12761
|
"onUpdate:modelValue": D
|
|
12762
12762
|
}), null, 16, ["background-color", "value"])
|
|
12763
12763
|
])) : E("", !0),
|
|
12764
|
-
e.filterType ===
|
|
12764
|
+
e.filterType === M(j).DETAILS ? (m(), v("div", V_, [
|
|
12765
12765
|
k(av, {
|
|
12766
12766
|
"is-playing-as-hidden": e.isPlayingAsHidden,
|
|
12767
12767
|
"playing-as": e.playingAs,
|
|
@@ -12769,10 +12769,10 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
12769
12769
|
"font-gamily": e.fontFamily,
|
|
12770
12770
|
"is-statistic-type-visible": e.isStatisticTypeVisible,
|
|
12771
12771
|
"statistic-type": e.statisticType,
|
|
12772
|
-
onChangeStatisticType:
|
|
12772
|
+
onChangeStatisticType: P
|
|
12773
12773
|
}, null, 8, ["is-playing-as-hidden", "playing-as", "game-sections", "font-gamily", "is-statistic-type-visible", "statistic-type"])
|
|
12774
12774
|
])) : E("", !0),
|
|
12775
|
-
e.filterType ===
|
|
12775
|
+
e.filterType === M(j).PERSONAL_DATA ? (m(), v("div", N_, [
|
|
12776
12776
|
k(vb, {
|
|
12777
12777
|
"is-female": e.isFemale,
|
|
12778
12778
|
ref_key: "templatePersonalData",
|
|
@@ -12786,7 +12786,7 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
12786
12786
|
"onUpdate:filters": W
|
|
12787
12787
|
}, null, 8, ["is-female", "personal-data-filters", "season", "is-seleccion", "is-scouting", "token", "filters"])
|
|
12788
12788
|
])) : E("", !0),
|
|
12789
|
-
e.filterType ===
|
|
12789
|
+
e.filterType === M(j).TOURNAMENTS ? (m(), v("div", D_, [
|
|
12790
12790
|
k(lv, {
|
|
12791
12791
|
tournaments: e.tournaments,
|
|
12792
12792
|
"is-one-tournament-only": e.isOneTournamentOnly,
|
|
@@ -12795,7 +12795,7 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
12795
12795
|
"onUpdate:filters": re
|
|
12796
12796
|
}, null, 8, ["tournaments", "is-one-tournament-only", "default-tournament-id"])
|
|
12797
12797
|
])) : E("", !0),
|
|
12798
|
-
e.filterType ===
|
|
12798
|
+
e.filterType === M(j).PLAYS_TYPES ? (m(), v("div", j_, [
|
|
12799
12799
|
k(rd, {
|
|
12800
12800
|
height: e.modalHeight,
|
|
12801
12801
|
type: e.filterType,
|
|
@@ -12803,7 +12803,7 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
12803
12803
|
"onUpdate:filters": te
|
|
12804
12804
|
}, null, 8, ["height", "type", "categories"])
|
|
12805
12805
|
])) : E("", !0),
|
|
12806
|
-
e.filterType ===
|
|
12806
|
+
e.filterType === M(j).GOLSTATS ? (m(), v("div", U_, [
|
|
12807
12807
|
k(rd, {
|
|
12808
12808
|
height: e.modalHeight,
|
|
12809
12809
|
type: e.filterType,
|
|
@@ -12812,7 +12812,7 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
12812
12812
|
"onUpdate:filters": te
|
|
12813
12813
|
}, null, 8, ["height", "type", "categories"])
|
|
12814
12814
|
])) : E("", !0),
|
|
12815
|
-
e.filterType ===
|
|
12815
|
+
e.filterType === M(j).UNIVERSE ? (m(), v("div", z_, [
|
|
12816
12816
|
k(ig, {
|
|
12817
12817
|
ref_key: "templateUniverse",
|
|
12818
12818
|
ref: u,
|
|
@@ -12821,13 +12821,13 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
12821
12821
|
"onUpdate:universeFilters": O
|
|
12822
12822
|
}, null, 8, ["universe-filters", "default-month-index"])
|
|
12823
12823
|
])) : E("", !0),
|
|
12824
|
-
e.filterType ===
|
|
12824
|
+
e.filterType === M(j).DISTANCE ? (m(), v("div", H_, [
|
|
12825
12825
|
k(xg, {
|
|
12826
12826
|
distance: e.distanceFilters,
|
|
12827
12827
|
"onUpdate:distanceFilters": ge
|
|
12828
12828
|
}, null, 8, ["distance"])
|
|
12829
12829
|
])) : E("", !0),
|
|
12830
|
-
e.filterType ===
|
|
12830
|
+
e.filterType === M(j).RESULTS ? (m(), v("div", W_, [
|
|
12831
12831
|
k(Ib, {
|
|
12832
12832
|
ref_key: "templateResults",
|
|
12833
12833
|
ref: g,
|
|
@@ -12835,7 +12835,7 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
12835
12835
|
"onUpdate:resultsFilters": me
|
|
12836
12836
|
}, null, 8, ["results-filters"])
|
|
12837
12837
|
])) : E("", !0),
|
|
12838
|
-
e.filterType ===
|
|
12838
|
+
e.filterType === M(j).RESULTS_BY_TIME ? (m(), v("div", q_, [
|
|
12839
12839
|
k(T_, {
|
|
12840
12840
|
ref_key: "templateResults",
|
|
12841
12841
|
ref: g,
|
|
@@ -12844,13 +12844,13 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
12844
12844
|
"onUpdate:filters": $
|
|
12845
12845
|
}, null, 8, ["results-filters"])
|
|
12846
12846
|
])) : E("", !0),
|
|
12847
|
-
e.filterType ===
|
|
12847
|
+
e.filterType === M(j).GAMES ? (m(), v("div", G_, [
|
|
12848
12848
|
k(Rg, {
|
|
12849
12849
|
"games-filters": e.gamesFilters,
|
|
12850
12850
|
"onUpdate:gamesFilters": ne
|
|
12851
12851
|
}, null, 8, ["games-filters"])
|
|
12852
12852
|
])) : E("", !0),
|
|
12853
|
-
e.filterType ===
|
|
12853
|
+
e.filterType === M(j).TAKEN_CORNERS ? (m(), v("div", Z_, [
|
|
12854
12854
|
k(W7, {
|
|
12855
12855
|
"is-female": e.isFemale,
|
|
12856
12856
|
ref_key: "templateTakenCorners",
|
|
@@ -12861,10 +12861,10 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
12861
12861
|
"onUpdate:filters": $
|
|
12862
12862
|
}, null, 8, ["is-female", "taken-corners-filters", "is-expansion-mode"])
|
|
12863
12863
|
])) : E("", !0),
|
|
12864
|
-
e.filterType ===
|
|
12864
|
+
e.filterType === M(j).VIDEOS ? (m(), v("div", Y_, [
|
|
12865
12865
|
k(T7, { token: e.token }, null, 8, ["token"])
|
|
12866
12866
|
])) : E("", !0),
|
|
12867
|
-
e.filterType ===
|
|
12867
|
+
e.filterType === M(j).HOW_WAS_CORNER ? (m(), v("div", J_, [
|
|
12868
12868
|
k(n9, {
|
|
12869
12869
|
"how-was-corner-filters": e.howWasCornerFilters,
|
|
12870
12870
|
"is-expansion-mode": e.isExpansionMode,
|
|
@@ -12872,7 +12872,7 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
12872
12872
|
"onUpdate:filters": $
|
|
12873
12873
|
}, null, 8, ["how-was-corner-filters", "is-expansion-mode"])
|
|
12874
12874
|
])) : E("", !0),
|
|
12875
|
-
e.filterType ===
|
|
12875
|
+
e.filterType === M(j).ZONE ? (m(), v("div", K_, [
|
|
12876
12876
|
k(u_, {
|
|
12877
12877
|
ref_key: "templateZone",
|
|
12878
12878
|
ref: h,
|
|
@@ -12881,7 +12881,7 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
12881
12881
|
"onUpdate:filters": $
|
|
12882
12882
|
}, null, 8, ["zone-filters"])
|
|
12883
12883
|
])) : E("", !0),
|
|
12884
|
-
e.filterType ===
|
|
12884
|
+
e.filterType === M(j).WHAT_HAPPENED ? (m(), v("div", X_, [
|
|
12885
12885
|
k(g_, {
|
|
12886
12886
|
"is-female": e.isFemale,
|
|
12887
12887
|
ref_key: "templateWhatHappened",
|
|
@@ -12893,7 +12893,7 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
12893
12893
|
])) : E("", !0)
|
|
12894
12894
|
]),
|
|
12895
12895
|
e.isFooterVisible ? (m(), v("div", Q_, [
|
|
12896
|
-
e.isFooterCancelOnly ? (m(), Se(
|
|
12896
|
+
e.isFooterCancelOnly ? (m(), Se(M(mo), {
|
|
12897
12897
|
key: 0,
|
|
12898
12898
|
"text-value": "Cancelar",
|
|
12899
12899
|
"font-size": "12px",
|
|
@@ -12906,14 +12906,14 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
12906
12906
|
onClick: Ve
|
|
12907
12907
|
})) : (m(), v(Q, { key: 1 }, [
|
|
12908
12908
|
n("div", ew, [
|
|
12909
|
-
e.isForTemplateForm ? (m(), Se(
|
|
12909
|
+
e.isForTemplateForm ? (m(), Se(M(mo), {
|
|
12910
12910
|
key: 0,
|
|
12911
12911
|
"text-value": "Cancelar",
|
|
12912
12912
|
"font-size": "12px",
|
|
12913
12913
|
"font-color": "rgba(255,255,255,0.7)",
|
|
12914
12914
|
"text-decoration": "underline",
|
|
12915
12915
|
onClick: Ve
|
|
12916
|
-
})) : (m(), Se(
|
|
12916
|
+
})) : (m(), Se(M(mo), {
|
|
12917
12917
|
key: 1,
|
|
12918
12918
|
"text-value": "Quitar filtros",
|
|
12919
12919
|
"font-size": "12px",
|
|
@@ -12923,7 +12923,7 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
12923
12923
|
}))
|
|
12924
12924
|
]),
|
|
12925
12925
|
n("div", tw, [
|
|
12926
|
-
k(
|
|
12926
|
+
k(M(mo), {
|
|
12927
12927
|
"text-value": "Listo",
|
|
12928
12928
|
"font-size": "12px",
|
|
12929
12929
|
height: "22px",
|
|
@@ -14660,7 +14660,7 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
14660
14660
|
borderRadius: "12px",
|
|
14661
14661
|
filterType: j.WHAT_HAPPENED,
|
|
14662
14662
|
isFooterVisible: !0
|
|
14663
|
-
}, N = S(!1), z = S(!1), O = S(0), D = S(0), x = S({}), F = S(null), H = S(null),
|
|
14663
|
+
}, N = S(!1), z = S(!1), O = S(0), D = S(0), x = S({}), F = S(null), H = S(null), B = S("Universo"), oe = I(() => i.isForTemplateForm ? "0" : "unset"), ce = I(() => i.filterType === j.UNIVERSE && i.showUniverseTime ? B.value : i.buttonFilterProps && i.buttonFilterProps.text ? i.buttonFilterProps.text : i.menuButtonText || te()), Oe = I(() => i.isFromTemplates ? j.RESULTS : i.filterType), Ve = I(() => i.expansionPanelText || te()), $ = S(null);
|
|
14664
14664
|
ae(
|
|
14665
14665
|
() => i.filterType,
|
|
14666
14666
|
(C) => {
|
|
@@ -14695,13 +14695,13 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
14695
14695
|
isStatisticTypeVisible: i.filters ? i.filters.isStatisticTypeVisible : Wt.isStatisticTypeVisible
|
|
14696
14696
|
};
|
|
14697
14697
|
else if (C === j.TOURNAMENTS) {
|
|
14698
|
-
const
|
|
14699
|
-
i.isOneTournamentOnly &&
|
|
14698
|
+
const L = i.filters || dS;
|
|
14699
|
+
i.isOneTournamentOnly && L.forEach((he) => {
|
|
14700
14700
|
he.isSelected = he.id === i.defaultTournamentId;
|
|
14701
14701
|
}), x.value = {
|
|
14702
14702
|
...u,
|
|
14703
14703
|
...i.templateProps,
|
|
14704
|
-
tournaments:
|
|
14704
|
+
tournaments: L
|
|
14705
14705
|
};
|
|
14706
14706
|
} else
|
|
14707
14707
|
C === j.PERSONAL_DATA ? x.value = {
|
|
@@ -14796,8 +14796,8 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
14796
14796
|
};
|
|
14797
14797
|
else if (i.filterType === j.TOURNAMENTS) {
|
|
14798
14798
|
const C = i.filters;
|
|
14799
|
-
i.isOneTournamentOnly && C.forEach((
|
|
14800
|
-
|
|
14799
|
+
i.isOneTournamentOnly && C.forEach((L) => {
|
|
14800
|
+
L.isSelected = L.id === i.defaultTournamentId;
|
|
14801
14801
|
}), x.value = {
|
|
14802
14802
|
...u,
|
|
14803
14803
|
...i.templateProps,
|
|
@@ -14915,13 +14915,13 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
14915
14915
|
x.value.fieldAreas = C, O.value = C.length, ne(C);
|
|
14916
14916
|
}
|
|
14917
14917
|
function me(C) {
|
|
14918
|
-
let
|
|
14919
|
-
C.value && C.value.statistics && (C.value.minutesPlayed &&
|
|
14918
|
+
let L = 0;
|
|
14919
|
+
C.value && C.value.statistics && (C.value.minutesPlayed && L++, C.value.percentMinutesPlayed && L++, C.value.lastMonths && L++, C.value.statistics.totals && L++, C.value.statistics.averagePerGame && L++, C.value.statistics.averagePerMinute && L++), i.showUniverseTime && (B.value = `Durante los últimos ${C.value.lastMonths} meses`), x.value.universe = C.value, O.value = L, ne(C.value);
|
|
14920
14920
|
}
|
|
14921
14921
|
function ne(C) {
|
|
14922
14922
|
$.value = C, a("update:filters", C);
|
|
14923
14923
|
}
|
|
14924
|
-
function
|
|
14924
|
+
function P(C) {
|
|
14925
14925
|
D.value = C;
|
|
14926
14926
|
}
|
|
14927
14927
|
function de(C = null) {
|
|
@@ -14929,11 +14929,11 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
14929
14929
|
}
|
|
14930
14930
|
return t({
|
|
14931
14931
|
clearFilters: de
|
|
14932
|
-
}), (C,
|
|
14932
|
+
}), (C, L) => (m(), v("div", fS, [
|
|
14933
14933
|
e.isExpansionPanel ? (m(), v("div", hS, [
|
|
14934
|
-
k(
|
|
14934
|
+
k(M(sS), Me(e.expansionPanelProps, {
|
|
14935
14935
|
modelValue: z.value,
|
|
14936
|
-
"onUpdate:modelValue":
|
|
14936
|
+
"onUpdate:modelValue": L[0] || (L[0] = (he) => z.value = he),
|
|
14937
14937
|
text: Ve.value,
|
|
14938
14938
|
"text-color": "rgba(255,255,255,.7)",
|
|
14939
14939
|
icon: "/" + i.filterType + "-icon.png"
|
|
@@ -14963,7 +14963,7 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
14963
14963
|
onChangeUniverseFilters: me,
|
|
14964
14964
|
onApply: re,
|
|
14965
14965
|
"onUpdate:filters": ne,
|
|
14966
|
-
onTotalFilters:
|
|
14966
|
+
onTotalFilters: P,
|
|
14967
14967
|
onClickParameters: pe
|
|
14968
14968
|
}), null, 16, ["season", "is-female", "is-seleccion", "is-one-tournament-only", "is-from-templates", "is-for-template-form", "default-tournament-id", "productivity-max-categories", "productivity-min-categories", "universe-default-month-index", "are-productivity-buttons-visible", "productivity-text", "are-offenses-conditions-visible"])
|
|
14969
14969
|
])
|
|
@@ -14971,9 +14971,9 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
14971
14971
|
_: 1
|
|
14972
14972
|
}, 16, ["modelValue", "text", "icon"])
|
|
14973
14973
|
])) : (m(), v("div", yS, [
|
|
14974
|
-
k(
|
|
14974
|
+
k(M(sw), {
|
|
14975
14975
|
modelValue: N.value,
|
|
14976
|
-
"onUpdate:modelValue":
|
|
14976
|
+
"onUpdate:modelValue": L[1] || (L[1] = (he) => N.value = he),
|
|
14977
14977
|
width: e.width,
|
|
14978
14978
|
"left-menu": oe.value,
|
|
14979
14979
|
"menu-margin-top": 18
|
|
@@ -15011,7 +15011,7 @@ const Ub = { class: "dropdown" }, zb = { class: "selected-item" }, Hb = {
|
|
|
15011
15011
|
onChangeFiltersSelected: W,
|
|
15012
15012
|
onChangeUniverseFilters: me,
|
|
15013
15013
|
"onUpdate:filters": ne,
|
|
15014
|
-
onTotalFilters:
|
|
15014
|
+
onTotalFilters: P,
|
|
15015
15015
|
onApply: re,
|
|
15016
15016
|
onClickParameters: pe
|
|
15017
15017
|
}), null, 16, ["season", "is-female", "is-scouting", "is-seleccion", "is-one-tournament-only", "default-tournament-id", "is-from-templates", "is-for-template-form", "productivity-max-categories", "productivity-min-categories", "universe-default-month-index", "are-productivity-buttons-visible", "productivity-text", "are-offenses-conditions-visible"])
|
|
@@ -15549,7 +15549,7 @@ const FS = (e) => (Ce("data-v-ac1dd45f"), e = e(), xe(), e), $S = { class: "drop
|
|
|
15549
15549
|
}
|
|
15550
15550
|
return (l, u) => (m(), v("div", $S, [
|
|
15551
15551
|
e.isLabelVisible ? (m(), v("div", AS, "Posición")) : E("", !0),
|
|
15552
|
-
k(
|
|
15552
|
+
k(M(ea), Me(s.value, {
|
|
15553
15553
|
items: o.value,
|
|
15554
15554
|
"model-value": i.value,
|
|
15555
15555
|
"onUpdate:modelValue": r
|
|
@@ -15619,7 +15619,7 @@ const FS = (e) => (Ce("data-v-ac1dd45f"), e = e(), xe(), e), $S = { class: "drop
|
|
|
15619
15619
|
}
|
|
15620
15620
|
return (r, l) => (m(), v("div", VS, [
|
|
15621
15621
|
e.isLabelVisible ? (m(), v("div", NS, "Año")) : E("", !0),
|
|
15622
|
-
k(
|
|
15622
|
+
k(M(ea), Me({ "model-value": e.selectedYear }, i.value, {
|
|
15623
15623
|
items: s.value,
|
|
15624
15624
|
"onUpdate:modelValue": o
|
|
15625
15625
|
}), {
|
|
@@ -19520,14 +19520,14 @@ const {
|
|
|
19520
19520
|
user_id: parseInt(i.userId),
|
|
19521
19521
|
name: s.value,
|
|
19522
19522
|
variables: r.value
|
|
19523
|
-
},
|
|
19523
|
+
}, B = await F.post(
|
|
19524
19524
|
`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${i.userId}/in-followed`,
|
|
19525
19525
|
H
|
|
19526
19526
|
);
|
|
19527
|
-
|
|
19527
|
+
B.data && (a("createList", {
|
|
19528
19528
|
nombre: s.value,
|
|
19529
19529
|
variables: r.value,
|
|
19530
|
-
id:
|
|
19530
|
+
id: B.data.data.id
|
|
19531
19531
|
}), a("listCreated"), s.value = "", r.value = [], o.value = "", l.value = !1, a("close"));
|
|
19532
19532
|
}
|
|
19533
19533
|
} catch (F) {
|
|
@@ -19599,7 +19599,7 @@ const {
|
|
|
19599
19599
|
]))) : (m(), v("button", {
|
|
19600
19600
|
key: 1,
|
|
19601
19601
|
class: se(["modal-dropdown-arrow", { "arrow-up": l.value }]),
|
|
19602
|
-
onMousedown:
|
|
19602
|
+
onMousedown: qe(y, ["prevent"])
|
|
19603
19603
|
}, x[5] || (x[5] = [
|
|
19604
19604
|
n("svg", {
|
|
19605
19605
|
width: "12",
|
|
@@ -19629,7 +19629,7 @@ const {
|
|
|
19629
19629
|
type: "checkbox",
|
|
19630
19630
|
value: F,
|
|
19631
19631
|
"onUpdate:modelValue": x[2] || (x[2] = (H) => r.value = H),
|
|
19632
|
-
onClick: x[3] || (x[3] =
|
|
19632
|
+
onClick: x[3] || (x[3] = qe(() => {
|
|
19633
19633
|
}, ["stop"]))
|
|
19634
19634
|
}, null, 8, TE), [
|
|
19635
19635
|
[Zi, r.value]
|
|
@@ -19641,7 +19641,7 @@ const {
|
|
|
19641
19641
|
n("div", $E, [
|
|
19642
19642
|
n("button", {
|
|
19643
19643
|
class: "modal-listo-btn",
|
|
19644
|
-
onMousedown:
|
|
19644
|
+
onMousedown: qe(V, ["prevent"])
|
|
19645
19645
|
}, "Listo", 32)
|
|
19646
19646
|
])
|
|
19647
19647
|
])) : E("", !0),
|
|
@@ -19924,7 +19924,7 @@ const {
|
|
|
19924
19924
|
t("list-created");
|
|
19925
19925
|
}
|
|
19926
19926
|
return (A, V) => (m(), v(Q, null, [
|
|
19927
|
-
r.value ? (m(), Se(
|
|
19927
|
+
r.value ? (m(), Se(M(PE), {
|
|
19928
19928
|
key: 0,
|
|
19929
19929
|
token: e.token,
|
|
19930
19930
|
"user-id": e.userId,
|
|
@@ -19954,7 +19954,7 @@ const {
|
|
|
19954
19954
|
k(tt, null, {
|
|
19955
19955
|
default: ye(() => [
|
|
19956
19956
|
R.showTooltip ? (m(), v("div", NE, [
|
|
19957
|
-
k(
|
|
19957
|
+
k(M(Nx), {
|
|
19958
19958
|
token: e.token,
|
|
19959
19959
|
"user-id": e.userId,
|
|
19960
19960
|
lists: e.lists,
|
|
@@ -19975,7 +19975,7 @@ const {
|
|
|
19975
19975
|
class: "available-player__checkbox",
|
|
19976
19976
|
onClick: (N) => p(d.value.length === i.value && !R.isSelectedGraphic)
|
|
19977
19977
|
}, [
|
|
19978
|
-
k(
|
|
19978
|
+
k(M(QS), {
|
|
19979
19979
|
"model-value": R.isSelectedGraphic,
|
|
19980
19980
|
"avoid-interaction": d.value.length === i.value && !R.isSelectedGraphic,
|
|
19981
19981
|
"onUpdate:modelValue": (N) => f(N, R)
|
|
@@ -20492,7 +20492,7 @@ const {
|
|
|
20492
20492
|
key: _.id,
|
|
20493
20493
|
class: "productivity__checkbox"
|
|
20494
20494
|
}, [
|
|
20495
|
-
k(
|
|
20495
|
+
k(M(Ie), {
|
|
20496
20496
|
label: _.name,
|
|
20497
20497
|
fontFamily: e.fontFamily,
|
|
20498
20498
|
"model-value": _.isSelected,
|
|
@@ -20522,7 +20522,7 @@ const {
|
|
|
20522
20522
|
key: _.id,
|
|
20523
20523
|
class: "productivity__checkbox"
|
|
20524
20524
|
}, [
|
|
20525
|
-
k(
|
|
20525
|
+
k(M(Ie), {
|
|
20526
20526
|
label: _.name,
|
|
20527
20527
|
fontFamily: e.fontFamily,
|
|
20528
20528
|
"model-value": _.isSelected,
|
|
@@ -20557,7 +20557,7 @@ const {
|
|
|
20557
20557
|
key: _.id,
|
|
20558
20558
|
class: "productivity__checkbox"
|
|
20559
20559
|
}, [
|
|
20560
|
-
k(
|
|
20560
|
+
k(M(Ie), {
|
|
20561
20561
|
label: _.name,
|
|
20562
20562
|
fontFamily: e.fontFamily,
|
|
20563
20563
|
"model-value": _.isSelected,
|
|
@@ -20591,7 +20591,7 @@ const {
|
|
|
20591
20591
|
key: _.id,
|
|
20592
20592
|
class: "productivity__checkbox"
|
|
20593
20593
|
}, [
|
|
20594
|
-
k(
|
|
20594
|
+
k(M(Ie), {
|
|
20595
20595
|
label: _.name,
|
|
20596
20596
|
fontFamily: e.fontFamily,
|
|
20597
20597
|
"model-value": _.isSelected,
|
|
@@ -20622,7 +20622,7 @@ const {
|
|
|
20622
20622
|
n("div", hF, [
|
|
20623
20623
|
mF,
|
|
20624
20624
|
n("div", null, [
|
|
20625
|
-
k(
|
|
20625
|
+
k(M(Ie), {
|
|
20626
20626
|
"model-value": r.value.areFoulsCommittedSelected,
|
|
20627
20627
|
"avoid-interaction": r.value.areFoulsCommittedSelected,
|
|
20628
20628
|
"is-box-only": "",
|
|
@@ -20630,7 +20630,7 @@ const {
|
|
|
20630
20630
|
}, null, 8, ["model-value", "avoid-interaction"])
|
|
20631
20631
|
]),
|
|
20632
20632
|
n("div", null, [
|
|
20633
|
-
k(
|
|
20633
|
+
k(M(Ie), {
|
|
20634
20634
|
"model-value": !r.value.areFoulsCommittedSelected,
|
|
20635
20635
|
"avoid-interaction": !r.value.areFoulsCommittedSelected,
|
|
20636
20636
|
"is-box-only": "",
|
|
@@ -20641,7 +20641,7 @@ const {
|
|
|
20641
20641
|
n("div", yF, [
|
|
20642
20642
|
vF,
|
|
20643
20643
|
n("div", null, [
|
|
20644
|
-
k(
|
|
20644
|
+
k(M(Ie), {
|
|
20645
20645
|
"model-value": r.value.areYellowCardsSelected,
|
|
20646
20646
|
"avoid-interaction": r.value.areYellowCardsSelected,
|
|
20647
20647
|
"is-box-only": "",
|
|
@@ -20649,7 +20649,7 @@ const {
|
|
|
20649
20649
|
}, null, 8, ["model-value", "avoid-interaction"])
|
|
20650
20650
|
]),
|
|
20651
20651
|
n("div", null, [
|
|
20652
|
-
k(
|
|
20652
|
+
k(M(Ie), {
|
|
20653
20653
|
"model-value": !r.value.areYellowCardsSelected,
|
|
20654
20654
|
"avoid-interaction": !r.value.areYellowCardsSelected,
|
|
20655
20655
|
"is-box-only": "",
|
|
@@ -20660,7 +20660,7 @@ const {
|
|
|
20660
20660
|
n("div", gF, [
|
|
20661
20661
|
bF,
|
|
20662
20662
|
n("div", null, [
|
|
20663
|
-
k(
|
|
20663
|
+
k(M(Ie), {
|
|
20664
20664
|
"model-value": r.value.areRedCardsSelected,
|
|
20665
20665
|
"avoid-interaction": r.value.areRedCardsSelected,
|
|
20666
20666
|
"is-box-only": "",
|
|
@@ -20668,7 +20668,7 @@ const {
|
|
|
20668
20668
|
}, null, 8, ["model-value", "avoid-interaction"])
|
|
20669
20669
|
]),
|
|
20670
20670
|
n("div", null, [
|
|
20671
|
-
k(
|
|
20671
|
+
k(M(Ie), {
|
|
20672
20672
|
"model-value": !r.value.areRedCardsSelected,
|
|
20673
20673
|
"avoid-interaction": !r.value.areRedCardsSelected,
|
|
20674
20674
|
"is-box-only": "",
|
|
@@ -20856,7 +20856,7 @@ const {
|
|
|
20856
20856
|
fe(n("div", SF, [
|
|
20857
20857
|
CF,
|
|
20858
20858
|
n("div", xF, [
|
|
20859
|
-
k(
|
|
20859
|
+
k(M(Ie), {
|
|
20860
20860
|
label: "Todos",
|
|
20861
20861
|
fontFamily: e.fontFamily,
|
|
20862
20862
|
"model-value": s.value,
|
|
@@ -20880,7 +20880,7 @@ const {
|
|
|
20880
20880
|
n("div", FF, [
|
|
20881
20881
|
$F,
|
|
20882
20882
|
n("div", AF, [
|
|
20883
|
-
k(
|
|
20883
|
+
k(M(Ie), {
|
|
20884
20884
|
label: "Todos",
|
|
20885
20885
|
fontFamily: e.fontFamily,
|
|
20886
20886
|
"model-value": o.value,
|
|
@@ -21021,7 +21021,7 @@ const {
|
|
|
21021
21021
|
k(Vp, { height: "200px" }, {
|
|
21022
21022
|
default: ye(() => [
|
|
21023
21023
|
e.isOneTournamentOnly ? E("", !0) : (m(), v("div", a$, [
|
|
21024
|
-
k(
|
|
21024
|
+
k(M(Ie), {
|
|
21025
21025
|
"model-value": i.value,
|
|
21026
21026
|
label: "Todas las ligas",
|
|
21027
21027
|
fontFamily: e.fontFamily,
|
|
@@ -21033,7 +21033,7 @@ const {
|
|
|
21033
21033
|
key: d.id || d._id,
|
|
21034
21034
|
class: "tournaments__tournament"
|
|
21035
21035
|
}, [
|
|
21036
|
-
k(
|
|
21036
|
+
k(M(Ie), {
|
|
21037
21037
|
"model-value": d.isSelected,
|
|
21038
21038
|
label: d.name,
|
|
21039
21039
|
fontFamily: e.fontFamily,
|
|
@@ -21133,13 +21133,13 @@ const {
|
|
|
21133
21133
|
}, [
|
|
21134
21134
|
k(Vp, { height: e.height }, {
|
|
21135
21135
|
default: ye(() => [
|
|
21136
|
-
e.type ===
|
|
21136
|
+
e.type === M(U).PLAYS_TYPES ? (m(), v("div", s$, " Elige un tipo de jugada para filtrar: ")) : E("", !0),
|
|
21137
21137
|
(m(!0), v(Q, null, ue(e.categories, (l, u) => (m(), v("div", {
|
|
21138
21138
|
key: `k${u}`,
|
|
21139
21139
|
class: "plays-golstats__item",
|
|
21140
21140
|
onClick: (d) => s(l)
|
|
21141
21141
|
}, [
|
|
21142
|
-
e.type ===
|
|
21142
|
+
e.type === M(U).GOLSTATS ? (m(), v("div", n$, T(l.value), 1)) : E("", !0),
|
|
21143
21143
|
n("div", l$, T(l.name), 1),
|
|
21144
21144
|
n("div", d$, [
|
|
21145
21145
|
fe((m(), v("svg", u$, [
|
|
@@ -21736,7 +21736,7 @@ const F$ = /* @__PURE__ */ g$(cl, [["render", T$], ["__scopeId", "data-v-f3ee6b2
|
|
|
21736
21736
|
]))), 256))
|
|
21737
21737
|
], 4),
|
|
21738
21738
|
e.isFooterVisible ? (m(), v("div", L$, [
|
|
21739
|
-
k(
|
|
21739
|
+
k(M(F$), {
|
|
21740
21740
|
"text-value": "Listo",
|
|
21741
21741
|
"border-color": "#cbee6b",
|
|
21742
21742
|
"font-size": "12px",
|
|
@@ -21856,7 +21856,7 @@ const F$ = /* @__PURE__ */ g$(cl, [["render", T$], ["__scopeId", "data-v-f3ee6b2
|
|
|
21856
21856
|
N$,
|
|
21857
21857
|
n("div", D$, [
|
|
21858
21858
|
n("div", j$, [
|
|
21859
|
-
k(
|
|
21859
|
+
k(M(gu), {
|
|
21860
21860
|
value: l.value.minutesPlayed,
|
|
21861
21861
|
type: "text",
|
|
21862
21862
|
inputmode: "numeric",
|
|
@@ -21868,7 +21868,7 @@ const F$ = /* @__PURE__ */ g$(cl, [["render", T$], ["__scopeId", "data-v-f3ee6b2
|
|
|
21868
21868
|
}, null, 8, ["value"])
|
|
21869
21869
|
]),
|
|
21870
21870
|
n("div", U$, [
|
|
21871
|
-
k(
|
|
21871
|
+
k(M(Ie), {
|
|
21872
21872
|
modelValue: s.value,
|
|
21873
21873
|
label: "Indistinto",
|
|
21874
21874
|
fontFamily: e.fontFamily,
|
|
@@ -21881,7 +21881,7 @@ const F$ = /* @__PURE__ */ g$(cl, [["render", T$], ["__scopeId", "data-v-f3ee6b2
|
|
|
21881
21881
|
H$,
|
|
21882
21882
|
n("div", W$, [
|
|
21883
21883
|
n("div", q$, [
|
|
21884
|
-
k(
|
|
21884
|
+
k(M(gu), {
|
|
21885
21885
|
value: l.value.percentMinutesPlayed,
|
|
21886
21886
|
"input-type": "number",
|
|
21887
21887
|
"border-radius": "4px",
|
|
@@ -21892,7 +21892,7 @@ const F$ = /* @__PURE__ */ g$(cl, [["render", T$], ["__scopeId", "data-v-f3ee6b2
|
|
|
21892
21892
|
}, null, 8, ["value"])
|
|
21893
21893
|
]),
|
|
21894
21894
|
n("div", G$, [
|
|
21895
|
-
k(
|
|
21895
|
+
k(M(Ie), {
|
|
21896
21896
|
modelValue: o.value,
|
|
21897
21897
|
label: "Indistinto",
|
|
21898
21898
|
fontFamily: e.fontFamily,
|
|
@@ -21904,7 +21904,7 @@ const F$ = /* @__PURE__ */ g$(cl, [["render", T$], ["__scopeId", "data-v-f3ee6b2
|
|
|
21904
21904
|
Z$,
|
|
21905
21905
|
Y$,
|
|
21906
21906
|
n("div", J$, [
|
|
21907
|
-
k(
|
|
21907
|
+
k(M(ua), Me(M(oo), {
|
|
21908
21908
|
items: e.universeFilters.lastMonths,
|
|
21909
21909
|
"model-value": l.value.lastMonths,
|
|
21910
21910
|
onInput: g
|
|
@@ -22105,7 +22105,7 @@ const F$ = /* @__PURE__ */ g$(cl, [["render", T$], ["__scopeId", "data-v-f3ee6b2
|
|
|
22105
22105
|
function pA(e, t, a, i, s, o) {
|
|
22106
22106
|
return m(), v("div", {
|
|
22107
22107
|
class: se([a.baseClassName, s.rangeMarginValue === 0 ? "zero-ranage-margin" : ""]),
|
|
22108
|
-
onMousewheel: t[10] || (t[10] =
|
|
22108
|
+
onMousewheel: t[10] || (t[10] = qe((...r) => o.onMouseWheel && o.onMouseWheel(...r), ["prevent", "stop"]))
|
|
22109
22109
|
}, [
|
|
22110
22110
|
n("div", tA, [
|
|
22111
22111
|
n("div", {
|
|
@@ -22120,7 +22120,7 @@ function pA(e, t, a, i, s, o) {
|
|
|
22120
22120
|
max: o.maximum,
|
|
22121
22121
|
step: a.step,
|
|
22122
22122
|
value: s.valueMin,
|
|
22123
|
-
onInput: t[1] || (t[1] =
|
|
22123
|
+
onInput: t[1] || (t[1] = qe((...r) => o.onInputMinChange && o.onInputMinChange(...r), ["stop", "prevent"]))
|
|
22124
22124
|
}, null, 40, aA),
|
|
22125
22125
|
n("div", {
|
|
22126
22126
|
class: "thumb thumb-left",
|
|
@@ -22148,7 +22148,7 @@ function pA(e, t, a, i, s, o) {
|
|
|
22148
22148
|
max: o.maximum,
|
|
22149
22149
|
step: a.step,
|
|
22150
22150
|
value: s.valueMax,
|
|
22151
|
-
onInput: t[6] || (t[6] =
|
|
22151
|
+
onInput: t[6] || (t[6] = qe((...r) => o.onInputMaxChange && o.onInputMaxChange(...r), ["stop", "prevent"]))
|
|
22152
22152
|
}, null, 40, rA),
|
|
22153
22153
|
n("div", {
|
|
22154
22154
|
class: "thumb thumb-right",
|
|
@@ -22437,7 +22437,7 @@ const Dp = /* @__PURE__ */ Np(pl, [["render", gA]]), bA = { class: "template-dis
|
|
|
22437
22437
|
i.value.minValue = o.minValue, i.value.maxValue = o.maxValue;
|
|
22438
22438
|
}
|
|
22439
22439
|
return (o, r) => (m(), v("div", bA, [
|
|
22440
|
-
k(
|
|
22440
|
+
k(M(Dp), {
|
|
22441
22441
|
"border-width": "0",
|
|
22442
22442
|
"background-color": "#0D1D29",
|
|
22443
22443
|
height: "30px",
|
|
@@ -22490,7 +22490,7 @@ const Dp = /* @__PURE__ */ Np(pl, [["render", gA]]), bA = { class: "template-dis
|
|
|
22490
22490
|
n("div", CA, [
|
|
22491
22491
|
xA,
|
|
22492
22492
|
n("div", kA, [
|
|
22493
|
-
k(
|
|
22493
|
+
k(M(Ie), {
|
|
22494
22494
|
modelValue: i.value,
|
|
22495
22495
|
label: "Todos",
|
|
22496
22496
|
"box-position": "right",
|
|
@@ -22504,7 +22504,7 @@ const Dp = /* @__PURE__ */ Np(pl, [["render", gA]]), bA = { class: "template-dis
|
|
|
22504
22504
|
key: d,
|
|
22505
22505
|
class: "template-games__game"
|
|
22506
22506
|
}, [
|
|
22507
|
-
k(
|
|
22507
|
+
k(M(Ie), {
|
|
22508
22508
|
modelValue: u.isSelected,
|
|
22509
22509
|
"onUpdate:modelValue": (h) => u.isSelected = h,
|
|
22510
22510
|
label: u.label,
|
|
@@ -25616,19 +25616,19 @@ function et(e, t) {
|
|
|
25616
25616
|
if (t.length < e)
|
|
25617
25617
|
throw new TypeError(e + " argument" + (e > 1 ? "s" : "") + " required, but only " + t.length + " present");
|
|
25618
25618
|
}
|
|
25619
|
-
function
|
|
25619
|
+
function We(e) {
|
|
25620
25620
|
et(1, arguments);
|
|
25621
25621
|
var t = Object.prototype.toString.call(e);
|
|
25622
25622
|
return e instanceof Date || ts(e) === "object" && t === "[object Date]" ? new Date(e.getTime()) : typeof e == "number" || t === "[object Number]" ? new Date(e) : ((typeof e == "string" || t === "[object String]") && typeof console < "u" && (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"), console.warn(new Error().stack)), /* @__PURE__ */ new Date(NaN));
|
|
25623
25623
|
}
|
|
25624
25624
|
function SB(e, t) {
|
|
25625
25625
|
et(2, arguments);
|
|
25626
|
-
var a =
|
|
25626
|
+
var a = We(e), i = ra(t);
|
|
25627
25627
|
return isNaN(i) ? /* @__PURE__ */ new Date(NaN) : (i && a.setDate(a.getDate() + i), a);
|
|
25628
25628
|
}
|
|
25629
25629
|
function CB(e, t) {
|
|
25630
25630
|
et(2, arguments);
|
|
25631
|
-
var a =
|
|
25631
|
+
var a = We(e), i = ra(t);
|
|
25632
25632
|
if (isNaN(i))
|
|
25633
25633
|
return /* @__PURE__ */ new Date(NaN);
|
|
25634
25634
|
if (!i)
|
|
@@ -25641,7 +25641,7 @@ function CB(e, t) {
|
|
|
25641
25641
|
function Oi(e, t) {
|
|
25642
25642
|
if (et(2, arguments), !t || ts(t) !== "object")
|
|
25643
25643
|
return /* @__PURE__ */ new Date(NaN);
|
|
25644
|
-
var a = t.years ? ra(t.years) : 0, i = t.months ? ra(t.months) : 0, s = t.weeks ? ra(t.weeks) : 0, o = t.days ? ra(t.days) : 0, r = t.hours ? ra(t.hours) : 0, l = t.minutes ? ra(t.minutes) : 0, u = t.seconds ? ra(t.seconds) : 0, d =
|
|
25644
|
+
var a = t.years ? ra(t.years) : 0, i = t.months ? ra(t.months) : 0, s = t.weeks ? ra(t.weeks) : 0, o = t.days ? ra(t.days) : 0, r = t.hours ? ra(t.hours) : 0, l = t.minutes ? ra(t.minutes) : 0, u = t.seconds ? ra(t.seconds) : 0, d = We(e), h = i || a ? CB(d, i + a * 12) : d, f = o || s ? SB(h, o + s * 7) : h, g = l + r * 60, p = u + g * 60, y = p * 1e3, c = new Date(f.getTime() + y);
|
|
25645
25645
|
return c;
|
|
25646
25646
|
}
|
|
25647
25647
|
function Uu(e) {
|
|
@@ -25650,7 +25650,7 @@ function Uu(e) {
|
|
|
25650
25650
|
}
|
|
25651
25651
|
function zu(e) {
|
|
25652
25652
|
et(1, arguments);
|
|
25653
|
-
var t =
|
|
25653
|
+
var t = We(e);
|
|
25654
25654
|
return t.setHours(0, 0, 0, 0), t;
|
|
25655
25655
|
}
|
|
25656
25656
|
var xB = 864e5;
|
|
@@ -25661,18 +25661,18 @@ function kB(e, t) {
|
|
|
25661
25661
|
}
|
|
25662
25662
|
function ai(e, t) {
|
|
25663
25663
|
et(2, arguments);
|
|
25664
|
-
var a =
|
|
25664
|
+
var a = We(e), i = We(t), s = a.getTime() - i.getTime();
|
|
25665
25665
|
return s < 0 ? -1 : s > 0 ? 1 : s;
|
|
25666
25666
|
}
|
|
25667
25667
|
var EB = 6e4, TB = 36e5;
|
|
25668
25668
|
function FB(e, t) {
|
|
25669
25669
|
et(2, arguments);
|
|
25670
|
-
var a =
|
|
25670
|
+
var a = We(e), i = We(t), s = a.getFullYear() - i.getFullYear(), o = a.getMonth() - i.getMonth();
|
|
25671
25671
|
return s * 12 + o;
|
|
25672
25672
|
}
|
|
25673
25673
|
function $B(e, t) {
|
|
25674
25674
|
et(2, arguments);
|
|
25675
|
-
var a =
|
|
25675
|
+
var a = We(e), i = We(t);
|
|
25676
25676
|
return a.getFullYear() - i.getFullYear();
|
|
25677
25677
|
}
|
|
25678
25678
|
function Hu(e, t) {
|
|
@@ -25681,13 +25681,13 @@ function Hu(e, t) {
|
|
|
25681
25681
|
}
|
|
25682
25682
|
function AB(e, t) {
|
|
25683
25683
|
et(2, arguments);
|
|
25684
|
-
var a =
|
|
25684
|
+
var a = We(e), i = We(t), s = Hu(a, i), o = Math.abs(kB(a, i));
|
|
25685
25685
|
a.setDate(a.getDate() - s * o);
|
|
25686
25686
|
var r = +(Hu(a, i) === -s), l = s * (o - r);
|
|
25687
25687
|
return l === 0 ? 0 : l;
|
|
25688
25688
|
}
|
|
25689
25689
|
function wl(e, t) {
|
|
25690
|
-
return et(2, arguments),
|
|
25690
|
+
return et(2, arguments), We(e).getTime() - We(t).getTime();
|
|
25691
25691
|
}
|
|
25692
25692
|
var RB = {
|
|
25693
25693
|
ceil: Math.ceil,
|
|
@@ -25713,28 +25713,28 @@ function MB(e, t, a) {
|
|
|
25713
25713
|
}
|
|
25714
25714
|
function PB(e) {
|
|
25715
25715
|
et(1, arguments);
|
|
25716
|
-
var t =
|
|
25716
|
+
var t = We(e);
|
|
25717
25717
|
return t.setHours(23, 59, 59, 999), t;
|
|
25718
25718
|
}
|
|
25719
25719
|
function LB(e) {
|
|
25720
25720
|
et(1, arguments);
|
|
25721
|
-
var t =
|
|
25721
|
+
var t = We(e), a = t.getMonth();
|
|
25722
25722
|
return t.setFullYear(t.getFullYear(), a + 1, 0), t.setHours(23, 59, 59, 999), t;
|
|
25723
25723
|
}
|
|
25724
25724
|
function IB(e) {
|
|
25725
25725
|
et(1, arguments);
|
|
25726
|
-
var t =
|
|
25726
|
+
var t = We(e);
|
|
25727
25727
|
return PB(t).getTime() === LB(t).getTime();
|
|
25728
25728
|
}
|
|
25729
25729
|
function VB(e, t) {
|
|
25730
25730
|
et(2, arguments);
|
|
25731
|
-
var a =
|
|
25731
|
+
var a = We(e), i = We(t), s = ai(a, i), o = Math.abs(FB(a, i)), r;
|
|
25732
25732
|
if (o < 1)
|
|
25733
25733
|
r = 0;
|
|
25734
25734
|
else {
|
|
25735
25735
|
a.getMonth() === 1 && a.getDate() > 27 && a.setDate(30), a.setMonth(a.getMonth() - s * o);
|
|
25736
25736
|
var l = ai(a, i) === -s;
|
|
25737
|
-
IB(
|
|
25737
|
+
IB(We(e)) && o === 1 && ai(e, i) === 1 && (l = !1), r = s * (o - Number(l));
|
|
25738
25738
|
}
|
|
25739
25739
|
return r === 0 ? 0 : r;
|
|
25740
25740
|
}
|
|
@@ -25745,17 +25745,17 @@ function NB(e, t, a) {
|
|
|
25745
25745
|
}
|
|
25746
25746
|
function DB(e, t) {
|
|
25747
25747
|
et(2, arguments);
|
|
25748
|
-
var a =
|
|
25748
|
+
var a = We(e), i = We(t), s = ai(a, i), o = Math.abs($B(a, i));
|
|
25749
25749
|
a.setFullYear(1584), i.setFullYear(1584);
|
|
25750
25750
|
var r = ai(a, i) === -s, l = s * (o - Number(r));
|
|
25751
25751
|
return l === 0 ? 0 : l;
|
|
25752
25752
|
}
|
|
25753
25753
|
function jB(e) {
|
|
25754
|
-
return et(1, arguments),
|
|
25754
|
+
return et(1, arguments), We(e).getFullYear();
|
|
25755
25755
|
}
|
|
25756
25756
|
function UB(e) {
|
|
25757
25757
|
et(1, arguments);
|
|
25758
|
-
var t =
|
|
25758
|
+
var t = We(e.start), a = We(e.end);
|
|
25759
25759
|
if (isNaN(t.getTime()))
|
|
25760
25760
|
throw new RangeError("Start Date is invalid");
|
|
25761
25761
|
if (isNaN(a.getTime()))
|
|
@@ -25883,27 +25883,27 @@ const zB = /* @__PURE__ */ new Set([1]), HB = {
|
|
|
25883
25883
|
r.value.availableYears[r.value.availableYears.length - 1]
|
|
25884
25884
|
), y = S(0), c = I(() => {
|
|
25885
25885
|
const F = r.value.nationalities ? [...r.value.nationalities] : [];
|
|
25886
|
-
i.isSeleccion && F.forEach((
|
|
25887
|
-
|
|
25886
|
+
i.isSeleccion && F.forEach((B) => {
|
|
25887
|
+
B.isSelected = B.id === 138;
|
|
25888
25888
|
});
|
|
25889
25889
|
const H = F[0];
|
|
25890
25890
|
return (!H || H.id !== 0) && F.unshift(s), F;
|
|
25891
25891
|
}), b = I(() => {
|
|
25892
25892
|
let F = (i.filter && i.filter.positions ? i.filter.positions : r.value.positions) ? [...r.value.positions] : [];
|
|
25893
25893
|
const H = F[0];
|
|
25894
|
-
return (!H || H.id !== 0) && F.unshift(o), F.sort((
|
|
25894
|
+
return (!H || H.id !== 0) && F.unshift(o), F.sort((B, oe) => B.id - oe.id), F;
|
|
25895
25895
|
}), w = I(() => i.season && i.season.tournamentId && zB.has(i.season.tournamentId) || i.filters && i.filters.isEligibilitySwitchVisible);
|
|
25896
25896
|
ae(
|
|
25897
25897
|
c,
|
|
25898
25898
|
(F) => {
|
|
25899
|
-
const H = F.reduce((
|
|
25899
|
+
const H = F.reduce((B, oe, ce) => (ce !== 0 && oe.isSelected && B++, B), 0);
|
|
25900
25900
|
H === c.value.length - 1 && (F[0].isSelected = !0), F[0] && F[0].isSelected ? f.value = "Todas las nacionalidades" : f.value = `${H} seleccionadas`, O();
|
|
25901
25901
|
},
|
|
25902
25902
|
{ immediate: !0, deep: !0 }
|
|
25903
25903
|
), ae(
|
|
25904
25904
|
b,
|
|
25905
25905
|
(F) => {
|
|
25906
|
-
const H = F.reduce((
|
|
25906
|
+
const H = F.reduce((B, oe, ce) => (ce !== 0 && oe.isSelected && B++, B), 0);
|
|
25907
25907
|
H === b.value.length - 1 && (F[0].isSelected = !0), F[0] && F[0].isSelected ? g.value = "Todas las posiciones" : g.value = `${H} seleccionadas`, O();
|
|
25908
25908
|
},
|
|
25909
25909
|
{ immediate: !0, deep: !0 }
|
|
@@ -25912,7 +25912,7 @@ const zB = /* @__PURE__ */ new Set([1]), HB = {
|
|
|
25912
25912
|
(F) => {
|
|
25913
25913
|
if (F && F.availableYears) {
|
|
25914
25914
|
const H = !Number.isNaN(Number(F.selectedYear));
|
|
25915
|
-
r.value = F, u.value = r.value.selectedYear && H ? 1 : 0, p.value = H ? r.value.selectedYear : r.value.availableYears[0], d.value.min = r.value.minAge, d.value.max = r.value.maxAge, o.isSelected = F.positions.every((
|
|
25915
|
+
r.value = F, u.value = r.value.selectedYear && H ? 1 : 0, p.value = H ? r.value.selectedYear : r.value.availableYears[0], d.value.min = r.value.minAge, d.value.max = r.value.maxAge, o.isSelected = F.positions.every((B) => B.isSelected), O();
|
|
25916
25916
|
}
|
|
25917
25917
|
},
|
|
25918
25918
|
{ immediate: !0, deep: !0 }
|
|
@@ -25931,8 +25931,8 @@ const zB = /* @__PURE__ */ new Set([1]), HB = {
|
|
|
25931
25931
|
async function _(F) {
|
|
25932
25932
|
try {
|
|
25933
25933
|
if (F && F.id) {
|
|
25934
|
-
const H = /* @__PURE__ */ new Set(),
|
|
25935
|
-
|
|
25934
|
+
const H = /* @__PURE__ */ new Set(), B = await V(F.id), oe = /* @__PURE__ */ new Date(), ce = [], Oe = /* @__PURE__ */ new Map(), Ve = /* @__PURE__ */ new Map();
|
|
25935
|
+
B.forEach(($) => {
|
|
25936
25936
|
const W = new Date($.dob), re = jB(W), te = UB({
|
|
25937
25937
|
start: W,
|
|
25938
25938
|
end: oe
|
|
@@ -25954,17 +25954,17 @@ const zB = /* @__PURE__ */ new Set([1]), HB = {
|
|
|
25954
25954
|
}
|
|
25955
25955
|
function A(F = null) {
|
|
25956
25956
|
const H = !F || F === ba.All;
|
|
25957
|
-
(H || F === ba.NATIONALITY) && c.value.forEach((
|
|
25958
|
-
|
|
25959
|
-
}), (H || F === ba.ELIGIBILITY) && (r.value.isEligibilitySelected = !1), (H || F === ba.POSITION) && b.value.forEach((
|
|
25960
|
-
|
|
25957
|
+
(H || F === ba.NATIONALITY) && c.value.forEach((B) => {
|
|
25958
|
+
B.isSelected = !0;
|
|
25959
|
+
}), (H || F === ba.ELIGIBILITY) && (r.value.isEligibilitySelected = !1), (H || F === ba.POSITION) && b.value.forEach((B) => {
|
|
25960
|
+
B.isSelected = !0;
|
|
25961
25961
|
}), (H || F === ba.AGE_RANGE) && (d.value.min = r.value.minAge, d.value.max = r.value.maxAge, u.value = 0), (H || F === ba.YEAR) && (p.value = i.isScouting ? r.value.availableYears[r.value.availableYears.length - 1] : r.value.availableYears[0], u.value = 0), O();
|
|
25962
25962
|
}
|
|
25963
25963
|
async function V(F) {
|
|
25964
25964
|
try {
|
|
25965
25965
|
const H = {
|
|
25966
25966
|
Authorization: localStorage.getItem("user_token") || i.token
|
|
25967
|
-
},
|
|
25967
|
+
}, B = {}.API_PLAYERS_BY_SEASONS ? {}.API_PLAYERS_BY_SEASONS : cM, oe = await Li.get(B + F, { headers: H });
|
|
25968
25968
|
return oe.data ? oe.data.players : [];
|
|
25969
25969
|
} catch (H) {
|
|
25970
25970
|
return Promise.reject(H);
|
|
@@ -25977,10 +25977,10 @@ const zB = /* @__PURE__ */ new Set([1]), HB = {
|
|
|
25977
25977
|
d.value.min = F.minValue, d.value.max = F.maxValue, O();
|
|
25978
25978
|
}
|
|
25979
25979
|
function z(F, H) {
|
|
25980
|
-
H.id === 0 ? c.value.forEach((
|
|
25981
|
-
|
|
25980
|
+
H.id === 0 ? c.value.forEach((B) => {
|
|
25981
|
+
B.isSelected = F;
|
|
25982
25982
|
}) : (H.isSelected = F, c.value[0].isSelected = c.value.every(
|
|
25983
|
-
(
|
|
25983
|
+
(B, oe) => oe === 0 ? !0 : B.isSelected
|
|
25984
25984
|
));
|
|
25985
25985
|
}
|
|
25986
25986
|
function O() {
|
|
@@ -25989,14 +25989,14 @@ const zB = /* @__PURE__ */ new Set([1]), HB = {
|
|
|
25989
25989
|
min: r.value.minAge,
|
|
25990
25990
|
max: r.value.maxAge
|
|
25991
25991
|
}) : H.year = p.value, r.value.isEligibilitySelected ? H.eligibility = [...r.value.eligibility] : H.nationalities = c.value.reduce(
|
|
25992
|
-
(
|
|
25992
|
+
(B, oe, ce) => (ce !== 0 && B.push({ ...oe }), B),
|
|
25993
25993
|
[]
|
|
25994
|
-
), H.positions = b.value.reduce((
|
|
25994
|
+
), H.positions = b.value.reduce((B, oe, ce) => (ce !== 0 && B.push({ ...oe }), B), []), a("update:filters", H);
|
|
25995
25995
|
}
|
|
25996
25996
|
function D(F, H) {
|
|
25997
|
-
H.id === 0 ? b.value.forEach((
|
|
25998
|
-
|
|
25999
|
-
}) : (H.isSelected = F, b.value[0].isSelected = b.value.every((
|
|
25997
|
+
H.id === 0 ? b.value.forEach((B) => {
|
|
25998
|
+
B.isSelected = F;
|
|
25999
|
+
}) : (H.isSelected = F, b.value[0].isSelected = b.value.every((B, oe) => oe === 0 ? !0 : B.isSelected));
|
|
26000
26000
|
}
|
|
26001
26001
|
function x(F) {
|
|
26002
26002
|
p.value = F, i.filters && (i.filters.selectedYear = F), O();
|
|
@@ -26014,7 +26014,7 @@ const zB = /* @__PURE__ */ new Set([1]), HB = {
|
|
|
26014
26014
|
}, null, 8, ["selected-button-index", "buttons"])
|
|
26015
26015
|
]),
|
|
26016
26016
|
fe(n("div", ZB, [
|
|
26017
|
-
k(
|
|
26017
|
+
k(M(Dp), {
|
|
26018
26018
|
"border-width": "0",
|
|
26019
26019
|
"background-color": "#0D1D29",
|
|
26020
26020
|
height: "30px",
|
|
@@ -26034,15 +26034,15 @@ const zB = /* @__PURE__ */ new Set([1]), HB = {
|
|
|
26034
26034
|
]),
|
|
26035
26035
|
fe(n("div", YB, [
|
|
26036
26036
|
JB,
|
|
26037
|
-
k(
|
|
26037
|
+
k(M(ua), Me({ "model-value": p.value }, h.value, {
|
|
26038
26038
|
items: r.value.availableYears,
|
|
26039
26039
|
onInput: x
|
|
26040
26040
|
}), {
|
|
26041
|
-
default: ye(({ selectedItem:
|
|
26042
|
-
n("div", KB, T(
|
|
26041
|
+
default: ye(({ selectedItem: B }) => [
|
|
26042
|
+
n("div", KB, T(B), 1)
|
|
26043
26043
|
]),
|
|
26044
|
-
availableItem: ye(({ item:
|
|
26045
|
-
n("div", null, T(
|
|
26044
|
+
availableItem: ye(({ item: B }) => [
|
|
26045
|
+
n("div", null, T(B), 1)
|
|
26046
26046
|
]),
|
|
26047
26047
|
_: 1
|
|
26048
26048
|
}, 16, ["model-value", "items"])
|
|
@@ -26056,26 +26056,26 @@ const zB = /* @__PURE__ */ new Set([1]), HB = {
|
|
|
26056
26056
|
tM,
|
|
26057
26057
|
k(ro, {
|
|
26058
26058
|
modelValue: r.value.isEligibilitySelected,
|
|
26059
|
-
"onUpdate:modelValue": H[0] || (H[0] = (
|
|
26059
|
+
"onUpdate:modelValue": H[0] || (H[0] = (B) => r.value.isEligibilitySelected = B)
|
|
26060
26060
|
}, null, 8, ["modelValue"]),
|
|
26061
26061
|
aM
|
|
26062
26062
|
])) : E("", !0),
|
|
26063
26063
|
n("div", iM, [
|
|
26064
26064
|
r.value.isEligibilitySelected ? (m(), v(Q, { key: 1 }, [
|
|
26065
26065
|
rM,
|
|
26066
|
-
k(
|
|
26066
|
+
k(M(ua), Me(h.value, {
|
|
26067
26067
|
"is-multiple-option": "",
|
|
26068
26068
|
items: r.value.eligibility,
|
|
26069
26069
|
"is-disabled": ""
|
|
26070
26070
|
}), {
|
|
26071
|
-
default: ye(({ selectedItem:
|
|
26072
|
-
n("div", nM, T(
|
|
26071
|
+
default: ye(({ selectedItem: B }) => [
|
|
26072
|
+
n("div", nM, T(B.name), 1)
|
|
26073
26073
|
]),
|
|
26074
|
-
availableItem: ye(({ item:
|
|
26074
|
+
availableItem: ye(({ item: B }) => [
|
|
26075
26075
|
n("div", null, [
|
|
26076
|
-
k(
|
|
26077
|
-
"model-value":
|
|
26078
|
-
label:
|
|
26076
|
+
k(M(Ie), {
|
|
26077
|
+
"model-value": B.isSelected,
|
|
26078
|
+
label: B.name,
|
|
26079
26079
|
fontFamily: e.fontFamily,
|
|
26080
26080
|
width: "100%",
|
|
26081
26081
|
"avoid-interaction": ""
|
|
@@ -26086,21 +26086,21 @@ const zB = /* @__PURE__ */ new Set([1]), HB = {
|
|
|
26086
26086
|
}, 16, ["items"])
|
|
26087
26087
|
], 64)) : (m(), v(Q, { key: 0 }, [
|
|
26088
26088
|
oM,
|
|
26089
|
-
k(
|
|
26089
|
+
k(M(ua), Me(h.value, {
|
|
26090
26090
|
"is-multiple-option": "",
|
|
26091
26091
|
items: c.value
|
|
26092
26092
|
}), {
|
|
26093
26093
|
default: ye(() => [
|
|
26094
26094
|
n("div", sM, T(f.value), 1)
|
|
26095
26095
|
]),
|
|
26096
|
-
availableItem: ye(({ item:
|
|
26096
|
+
availableItem: ye(({ item: B }) => [
|
|
26097
26097
|
n("div", null, [
|
|
26098
|
-
k(
|
|
26099
|
-
"model-value":
|
|
26100
|
-
label:
|
|
26098
|
+
k(M(Ie), {
|
|
26099
|
+
"model-value": B.isSelected,
|
|
26100
|
+
label: B.name,
|
|
26101
26101
|
fontFamily: e.fontFamily,
|
|
26102
26102
|
width: "100%",
|
|
26103
|
-
"onUpdate:modelValue": (oe) => z(oe,
|
|
26103
|
+
"onUpdate:modelValue": (oe) => z(oe, B)
|
|
26104
26104
|
}, null, 8, ["model-value", "label", "fontFamily", "onUpdate:modelValue"])
|
|
26105
26105
|
])
|
|
26106
26106
|
]),
|
|
@@ -26110,7 +26110,7 @@ const zB = /* @__PURE__ */ new Set([1]), HB = {
|
|
|
26110
26110
|
]),
|
|
26111
26111
|
n("div", lM, [
|
|
26112
26112
|
dM,
|
|
26113
|
-
k(
|
|
26113
|
+
k(M(ua), Me(h.value, {
|
|
26114
26114
|
"is-multiple-option": "",
|
|
26115
26115
|
items: b.value
|
|
26116
26116
|
}), {
|
|
@@ -26123,14 +26123,14 @@ const zB = /* @__PURE__ */ new Set([1]), HB = {
|
|
|
26123
26123
|
], 64))
|
|
26124
26124
|
])
|
|
26125
26125
|
]),
|
|
26126
|
-
availableItem: ye(({ item:
|
|
26126
|
+
availableItem: ye(({ item: B }) => [
|
|
26127
26127
|
n("div", null, [
|
|
26128
|
-
k(
|
|
26129
|
-
"model-value":
|
|
26130
|
-
label: e.isFemale ?
|
|
26128
|
+
k(M(Ie), {
|
|
26129
|
+
"model-value": B.isSelected,
|
|
26130
|
+
label: e.isFemale ? B.name.replace("Portero", "Portera").replace("Delantero", "Delantera").replace("Volante defensivo", "Volante defensiva").replace("Volante ofensivo", "Volante ofensiva") : B.name,
|
|
26131
26131
|
fontFamily: e.fontFamily,
|
|
26132
26132
|
width: "100%",
|
|
26133
|
-
"onUpdate:modelValue": (oe) => D(oe,
|
|
26133
|
+
"onUpdate:modelValue": (oe) => D(oe, B)
|
|
26134
26134
|
}, null, 8, ["model-value", "label", "fontFamily", "onUpdate:modelValue"])
|
|
26135
26135
|
])
|
|
26136
26136
|
]),
|
|
@@ -26198,7 +26198,7 @@ const zB = /* @__PURE__ */ new Set([1]), HB = {
|
|
|
26198
26198
|
key: c.id,
|
|
26199
26199
|
class: "plays__checkbox"
|
|
26200
26200
|
}, [
|
|
26201
|
-
k(
|
|
26201
|
+
k(M(Ie), {
|
|
26202
26202
|
label: c.name,
|
|
26203
26203
|
fontFamily: e.fontFamily,
|
|
26204
26204
|
labelFontSize: "13px",
|
|
@@ -26234,7 +26234,7 @@ const zB = /* @__PURE__ */ new Set([1]), HB = {
|
|
|
26234
26234
|
key: c.id,
|
|
26235
26235
|
class: "plays__checkbox"
|
|
26236
26236
|
}, [
|
|
26237
|
-
k(
|
|
26237
|
+
k(M(Ie), {
|
|
26238
26238
|
label: c.name,
|
|
26239
26239
|
fontFamily: e.fontFamily,
|
|
26240
26240
|
labelFontSize: "13px",
|
|
@@ -26268,7 +26268,7 @@ const zB = /* @__PURE__ */ new Set([1]), HB = {
|
|
|
26268
26268
|
key: c.id,
|
|
26269
26269
|
class: "plays__checkbox"
|
|
26270
26270
|
}, [
|
|
26271
|
-
k(
|
|
26271
|
+
k(M(Ie), {
|
|
26272
26272
|
label: c.name,
|
|
26273
26273
|
fontFamily: e.fontFamily,
|
|
26274
26274
|
labelFontSize: "13px",
|
|
@@ -26302,7 +26302,7 @@ const zB = /* @__PURE__ */ new Set([1]), HB = {
|
|
|
26302
26302
|
key: c.id,
|
|
26303
26303
|
class: "plays__checkbox"
|
|
26304
26304
|
}, [
|
|
26305
|
-
k(
|
|
26305
|
+
k(M(Ie), {
|
|
26306
26306
|
label: c.name,
|
|
26307
26307
|
fontFamily: e.fontFamily,
|
|
26308
26308
|
labelFontSize: "13px",
|
|
@@ -26343,7 +26343,7 @@ const zB = /* @__PURE__ */ new Set([1]), HB = {
|
|
|
26343
26343
|
key: l,
|
|
26344
26344
|
class: "template-results__result"
|
|
26345
26345
|
}, [
|
|
26346
|
-
k(
|
|
26346
|
+
k(M(Ie), {
|
|
26347
26347
|
modelValue: r.isSelected,
|
|
26348
26348
|
"onUpdate:modelValue": (u) => r.isSelected = u,
|
|
26349
26349
|
label: r.name,
|
|
@@ -26491,7 +26491,7 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
26491
26491
|
t("input", i);
|
|
26492
26492
|
}
|
|
26493
26493
|
return (i, s) => (m(), v("div", VM, [
|
|
26494
|
-
k(
|
|
26494
|
+
k(M(ua), Me(M(oo), {
|
|
26495
26495
|
"is-list-same-width": e.isListSameWidth,
|
|
26496
26496
|
items: e.items,
|
|
26497
26497
|
onInput: a
|
|
@@ -26523,7 +26523,7 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
26523
26523
|
t("input", i);
|
|
26524
26524
|
}
|
|
26525
26525
|
return (i, s) => (m(), v("div", jM, [
|
|
26526
|
-
k(
|
|
26526
|
+
k(M(ua), Me(M(oo), {
|
|
26527
26527
|
items: e.items,
|
|
26528
26528
|
onInput: a
|
|
26529
26529
|
}), {
|
|
@@ -26680,7 +26680,7 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
26680
26680
|
t("input", i);
|
|
26681
26681
|
}
|
|
26682
26682
|
return (i, s) => (m(), v("div", EP, [
|
|
26683
|
-
k(
|
|
26683
|
+
k(M(ua), Me(M(oo), {
|
|
26684
26684
|
items: e.items,
|
|
26685
26685
|
onInput: a
|
|
26686
26686
|
}), {
|
|
@@ -26720,11 +26720,11 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
26720
26720
|
},
|
|
26721
26721
|
setup(e) {
|
|
26722
26722
|
const t = e, a = ei(
|
|
26723
|
-
() => import("./FilterSubcategories-a9b32cc9-Bb3g52Z6-
|
|
26723
|
+
() => import("./FilterSubcategories-a9b32cc9-Bb3g52Z6-cL13muob.js")
|
|
26724
26724
|
), i = ei(
|
|
26725
|
-
() => import("./FilterConditions-55d68355-g8Y16HQC-
|
|
26725
|
+
() => import("./FilterConditions-55d68355-g8Y16HQC-z-hU6X69.js")
|
|
26726
26726
|
), s = ei(
|
|
26727
|
-
() => import("./FilterField-59a73e38-CIb0_NTi-
|
|
26727
|
+
() => import("./FilterField-59a73e38-CIb0_NTi-C1CQK5J8.js")
|
|
26728
26728
|
), o = [
|
|
26729
26729
|
{
|
|
26730
26730
|
name: "Sub categorías",
|
|
@@ -27318,8 +27318,8 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
27318
27318
|
t("loading-data");
|
|
27319
27319
|
let te = re;
|
|
27320
27320
|
try {
|
|
27321
|
-
te || (te = {}.API_CALENDAR_GAMES_BY_SEASON || a.gamesUrl, $.forEach((ne,
|
|
27322
|
-
te += `${
|
|
27321
|
+
te || (te = {}.API_CALENDAR_GAMES_BY_SEASON || a.gamesUrl, $.forEach((ne, P) => {
|
|
27322
|
+
te += `${P === 0 ? "" : "&"}seasons=${ne}`;
|
|
27323
27323
|
}));
|
|
27324
27324
|
const pe = {
|
|
27325
27325
|
Authorization: Rr() || a.token
|
|
@@ -27365,41 +27365,41 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
27365
27365
|
}), me.set(ne.team_id, ne), me), /* @__PURE__ */ new Map());
|
|
27366
27366
|
p.value = f.value.arrayTeams[0], f.value.mapGames = /* @__PURE__ */ new Map(), f.value.mapGamesByTeam = /* @__PURE__ */ new Map();
|
|
27367
27367
|
const ge = Array.from(
|
|
27368
|
-
W.reduce((me, ne) => (ne.games.forEach((
|
|
27369
|
-
if (
|
|
27370
|
-
(!f.value.maxGameId ||
|
|
27371
|
-
let de =
|
|
27372
|
-
const
|
|
27373
|
-
ne.season_type === 0 ? g.value.tournament_type === 1 && (
|
|
27374
|
-
id:
|
|
27375
|
-
date:
|
|
27376
|
-
dateTimeMillis: new Date(
|
|
27377
|
-
homeTeam: f.value.mapTeams.get(
|
|
27378
|
-
awayTeam: f.value.mapTeams.get(
|
|
27379
|
-
roundAbbreviation:
|
|
27380
|
-
roundName:
|
|
27381
|
-
score:
|
|
27368
|
+
W.reduce((me, ne) => (ne.games.forEach((P) => {
|
|
27369
|
+
if (P.game_status === 1 && P.has_video) {
|
|
27370
|
+
(!f.value.maxGameId || P.game_id > f.value.maxGameId) && (f.value.maxGameId = P.game_id);
|
|
27371
|
+
let de = P.matchday_abbreviation.replace("M", "J"), C = P.matchday_abbreviation.replace("M", "Jornada ");
|
|
27372
|
+
const L = P.matchday_abbreviation.replace("M", "");
|
|
27373
|
+
ne.season_type === 0 ? g.value.tournament_type === 1 && (P.seasonId === 881 ? (de = IM[L] || de, C = LM[L] || C) : (de = Wu[P.matchday_abbreviation] ? P.matchday_abbreviation : de, C = Wu[P.matchday_abbreviation] || C, de === "FINAL" && (de = "F"))) : ne.season_type === 1 ? (de = PM[P.matchday_abbreviation], C = de) : (de = P.matchday_abbreviation.replace("PO", "R"), C = "Repechaje"), P.roundAbbreviation = de, P.roundName = C, f.value.mapGames.set(P.game_id, {
|
|
27374
|
+
id: P.game_id,
|
|
27375
|
+
date: P.date,
|
|
27376
|
+
dateTimeMillis: new Date(P.date_time_utc).valueOf(),
|
|
27377
|
+
homeTeam: f.value.mapTeams.get(P.home_team),
|
|
27378
|
+
awayTeam: f.value.mapTeams.get(P.visiting_team),
|
|
27379
|
+
roundAbbreviation: P.roundAbbreviation,
|
|
27380
|
+
roundName: P.roundName,
|
|
27381
|
+
score: P.score,
|
|
27382
27382
|
// 1 = local wins, 2 = away wins, 3 = tied
|
|
27383
|
-
gameResult:
|
|
27383
|
+
gameResult: P.score[0] > P.score[1] ? 1 : P.score[0] < P.score[1] ? 2 : 3,
|
|
27384
27384
|
seasonId: ne.season_id
|
|
27385
27385
|
});
|
|
27386
|
-
const he = me.get(
|
|
27387
|
-
|
|
27386
|
+
const he = me.get(P.roundAbbreviation);
|
|
27387
|
+
P.numberDateTimeMillis = new Date(P.date_time_utc).getTime(), P.homeTeam = pe.get(P.home_team), P.awayTeam = pe.get(P.visiting_team);
|
|
27388
27388
|
const jt = f.value.mapGamesByTeam.get(
|
|
27389
|
-
|
|
27389
|
+
P.home_team
|
|
27390
27390
|
), At = f.value.mapGamesByTeam.get(
|
|
27391
|
-
|
|
27391
|
+
P.visiting_team
|
|
27392
27392
|
);
|
|
27393
|
-
jt ? jt.push(
|
|
27394
|
-
stringMatchDayAbbreviation:
|
|
27395
|
-
stringMatchDayName:
|
|
27396
|
-
arrayGames: [
|
|
27393
|
+
jt ? jt.push(P) : f.value.mapGamesByTeam.set(P.home_team, [P]), At ? At.push(P) : f.value.mapGamesByTeam.set(P.visiting_team, [P]), he ? he.arrayGames.push(P) : me.set(P.roundAbbreviation, {
|
|
27394
|
+
stringMatchDayAbbreviation: P.roundAbbreviation,
|
|
27395
|
+
stringMatchDayName: P.roundName,
|
|
27396
|
+
arrayGames: [P]
|
|
27397
27397
|
});
|
|
27398
27398
|
}
|
|
27399
27399
|
}), me), /* @__PURE__ */ new Map()).values()
|
|
27400
27400
|
);
|
|
27401
27401
|
ge.reverse(), ge.forEach((me) => {
|
|
27402
|
-
me.arrayGames.sort((ne,
|
|
27402
|
+
me.arrayGames.sort((ne, P) => ne.numberDateTimeMillis - P.numberDateTimeMillis);
|
|
27403
27403
|
}), f.value.arrayMatchDays = ge, y.value = ge[0] || {};
|
|
27404
27404
|
} catch (W) {
|
|
27405
27405
|
throw new Error(W);
|
|
@@ -27427,27 +27427,27 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
27427
27427
|
async function O() {
|
|
27428
27428
|
try {
|
|
27429
27429
|
let $ = [];
|
|
27430
|
-
c.value.isEmpty ? ($ = await
|
|
27430
|
+
c.value.isEmpty ? ($ = await B(), b.value = {
|
|
27431
27431
|
...$
|
|
27432
27432
|
}) : $ = b.value;
|
|
27433
27433
|
const W = [];
|
|
27434
27434
|
if ($ && $.length) {
|
|
27435
27435
|
c.value = $.reduce(
|
|
27436
|
-
(ne,
|
|
27437
|
-
if (
|
|
27436
|
+
(ne, P) => {
|
|
27437
|
+
if (P.group_id !== "g-55") {
|
|
27438
27438
|
const de = {
|
|
27439
|
-
idAux:
|
|
27439
|
+
idAux: P.group_id,
|
|
27440
27440
|
ids: [
|
|
27441
|
-
...
|
|
27442
|
-
...
|
|
27441
|
+
...P.ids ? P.ids : [],
|
|
27442
|
+
...P.rival_Ids ? P.rival_Ids : []
|
|
27443
27443
|
],
|
|
27444
|
-
type:
|
|
27445
|
-
name:
|
|
27446
|
-
coordinatePoint:
|
|
27447
|
-
requiresRivalTransform: o.includes(
|
|
27444
|
+
type: P.type,
|
|
27445
|
+
name: P.name,
|
|
27446
|
+
coordinatePoint: P.coordinate_point,
|
|
27447
|
+
requiresRivalTransform: o.includes(P.group_id)
|
|
27448
27448
|
};
|
|
27449
|
-
de.idsAux = [...de.ids], de.subcategoryGroups =
|
|
27450
|
-
|
|
27449
|
+
de.idsAux = [...de.ids], de.subcategoryGroups = P.group_id === "g-12" ? [] : D(
|
|
27450
|
+
P,
|
|
27451
27451
|
0,
|
|
27452
27452
|
/* @__PURE__ */ new Map(),
|
|
27453
27453
|
!1,
|
|
@@ -27466,18 +27466,18 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
27466
27466
|
}
|
|
27467
27467
|
);
|
|
27468
27468
|
const re = /* @__PURE__ */ new Map(), te = "Resumen", pe = "Todas sus jugadas", ge = c.value.player.reduce(
|
|
27469
|
-
(ne,
|
|
27470
|
-
const de = x(
|
|
27469
|
+
(ne, P) => {
|
|
27470
|
+
const de = x(P);
|
|
27471
27471
|
return de.forEach((C) => {
|
|
27472
|
-
re.set(C,
|
|
27472
|
+
re.set(C, P.name);
|
|
27473
27473
|
}), ne.push(...de), ne;
|
|
27474
27474
|
},
|
|
27475
27475
|
[]
|
|
27476
27476
|
), me = c.value.goalkeeper.reduce(
|
|
27477
|
-
(ne,
|
|
27478
|
-
const de = x(
|
|
27477
|
+
(ne, P) => {
|
|
27478
|
+
const de = x(P);
|
|
27479
27479
|
return de.forEach((C) => {
|
|
27480
|
-
re.set(C,
|
|
27480
|
+
re.set(C, P.name);
|
|
27481
27481
|
}), ne.push(...de), ne;
|
|
27482
27482
|
},
|
|
27483
27483
|
[]
|
|
@@ -27524,7 +27524,7 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
27524
27524
|
let me = re.get(W);
|
|
27525
27525
|
const ne = te ? `${$.id_category}_r` : $.id_category;
|
|
27526
27526
|
$.id_category && ge.push($.id_category);
|
|
27527
|
-
let
|
|
27527
|
+
let P = {
|
|
27528
27528
|
ids: [ne],
|
|
27529
27529
|
groupId: $.group_id,
|
|
27530
27530
|
level: W,
|
|
@@ -27535,28 +27535,28 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
27535
27535
|
[$.category_father]: [ne]
|
|
27536
27536
|
}
|
|
27537
27537
|
};
|
|
27538
|
-
if (W > 0 && W === 1 && (
|
|
27538
|
+
if (W > 0 && W === 1 && (P.id = $.id_category), me && W !== 0) {
|
|
27539
27539
|
const de = $.group_id.charAt($.group_id.length - 1), C = me.find(
|
|
27540
|
-
(
|
|
27540
|
+
(L) => L.groupId.endsWith(de)
|
|
27541
27541
|
);
|
|
27542
|
-
C && !s.includes(
|
|
27543
|
-
|
|
27544
|
-
(he) => he.groupId ===
|
|
27545
|
-
) ||
|
|
27546
|
-
}), C.idsByFatherCategory[$.category_father] ? C.idsByFatherCategory[$.category_father].push(ne) : C.idsByFatherCategory[$.category_father] = [ne]) : (
|
|
27547
|
-
|
|
27548
|
-
(he) => he.groupId ===
|
|
27549
|
-
) ||
|
|
27550
|
-
}), me.push(
|
|
27542
|
+
C && !s.includes(P.groupId) ? (P = C, C.ids.push(ne), C.fatherCategories.push(pe), C.fatherCategories.forEach((L) => {
|
|
27543
|
+
L.childCategories ? L.childCategories.find(
|
|
27544
|
+
(he) => he.groupId === P.groupId
|
|
27545
|
+
) || L.childCategories.push(P) : L.childCategories = [P];
|
|
27546
|
+
}), C.idsByFatherCategory[$.category_father] ? C.idsByFatherCategory[$.category_father].push(ne) : C.idsByFatherCategory[$.category_father] = [ne]) : (P.fatherCategories.forEach((L) => {
|
|
27547
|
+
L.childCategories ? L.childCategories.find(
|
|
27548
|
+
(he) => he.groupId === P.groupId
|
|
27549
|
+
) || L.childCategories.push(P) : L.childCategories = [P];
|
|
27550
|
+
}), me.push(P));
|
|
27551
27551
|
} else
|
|
27552
|
-
W !== 0 && (pe.childCategories ? pe.childCategories.push(
|
|
27552
|
+
W !== 0 && (pe.childCategories ? pe.childCategories.push(P) : pe.childCategories = [P], me = [P], re.set(W, me));
|
|
27553
27553
|
if ($.categories && $.categories.length ? $.categories.forEach((de) => {
|
|
27554
27554
|
D(
|
|
27555
27555
|
de,
|
|
27556
27556
|
W + 1,
|
|
27557
27557
|
re,
|
|
27558
27558
|
te,
|
|
27559
|
-
|
|
27559
|
+
P,
|
|
27560
27560
|
ge
|
|
27561
27561
|
);
|
|
27562
27562
|
}) : $.rival_categories && $.rival_categories.length && $.rival_categories.forEach((de) => {
|
|
@@ -27565,7 +27565,7 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
27565
27565
|
W + 1,
|
|
27566
27566
|
re,
|
|
27567
27567
|
!0,
|
|
27568
|
-
|
|
27568
|
+
P,
|
|
27569
27569
|
ge
|
|
27570
27570
|
);
|
|
27571
27571
|
}), W === 0)
|
|
@@ -27588,8 +27588,8 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
27588
27588
|
}
|
|
27589
27589
|
function F($, W = [], re = { total: [], toRemove: [] }) {
|
|
27590
27590
|
$.isSelected ? $.childCategories ? $.childCategories.forEach((te) => {
|
|
27591
|
-
const pe = W ? Object.entries($.idsByFatherCategory).reduce((ge, [me, ne]) => (W.includes(Number(me)) && ne.forEach((
|
|
27592
|
-
typeof
|
|
27591
|
+
const pe = W ? Object.entries($.idsByFatherCategory).reduce((ge, [me, ne]) => (W.includes(Number(me)) && ne.forEach((P) => {
|
|
27592
|
+
typeof P == "string" && P.endsWith("_r") ? ge.push(Number(P.split("_")[0])) : ge.push(P);
|
|
27593
27593
|
}), ge), []) : [$.id];
|
|
27594
27594
|
F(te, pe, re);
|
|
27595
27595
|
}) : W ? Object.entries($.idsByFatherCategory).forEach(([te, pe]) => {
|
|
@@ -27621,7 +27621,7 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
27621
27621
|
return Promise.reject(W);
|
|
27622
27622
|
}
|
|
27623
27623
|
}
|
|
27624
|
-
async function
|
|
27624
|
+
async function B() {
|
|
27625
27625
|
try {
|
|
27626
27626
|
const $ = {
|
|
27627
27627
|
Authorization: localStorage.getItem("user_token") || "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"
|
|
@@ -27755,7 +27755,7 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
27755
27755
|
})
|
|
27756
27756
|
}, T(r.value), 5),
|
|
27757
27757
|
n("div", EI, [
|
|
27758
|
-
k(
|
|
27758
|
+
k(M(Ie), {
|
|
27759
27759
|
"model-value": s.value,
|
|
27760
27760
|
label: "Seleccionar todos",
|
|
27761
27761
|
"onUpdate:modelValue": p
|
|
@@ -27792,7 +27792,7 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
27792
27792
|
])
|
|
27793
27793
|
]),
|
|
27794
27794
|
n("div", NI, [
|
|
27795
|
-
k(
|
|
27795
|
+
k(M(Ie), {
|
|
27796
27796
|
modelValue: w.isSelected,
|
|
27797
27797
|
"onUpdate:modelValue": (_) => w.isSelected = _,
|
|
27798
27798
|
"avoid-interaction": l.value === 1 && w.isSelected
|
|
@@ -28095,7 +28095,7 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
28095
28095
|
style: ee(e.widthContainer <= 440 ? "font-size: 12px;" : "#2e3b46")
|
|
28096
28096
|
}, " Todas las zonas ", 4),
|
|
28097
28097
|
n("div", nV, [
|
|
28098
|
-
k(
|
|
28098
|
+
k(M(Ie), {
|
|
28099
28099
|
label: "",
|
|
28100
28100
|
fontFamily: "Poppins-Regular",
|
|
28101
28101
|
labelFontSize: "11px",
|
|
@@ -28657,7 +28657,7 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
28657
28657
|
onResetFilters: g
|
|
28658
28658
|
}), (p, y) => (m(), v("div", nN, [
|
|
28659
28659
|
n("div", lN, [
|
|
28660
|
-
k(
|
|
28660
|
+
k(M(Ie), {
|
|
28661
28661
|
label: "Todos",
|
|
28662
28662
|
"model-value": r.value,
|
|
28663
28663
|
"box-position": "right",
|
|
@@ -28671,7 +28671,7 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
28671
28671
|
}, [
|
|
28672
28672
|
c.child ? (m(), v("div", uN, [
|
|
28673
28673
|
n("div", cN, [
|
|
28674
|
-
k(
|
|
28674
|
+
k(M(Ie), {
|
|
28675
28675
|
"model-value": c.isSelected,
|
|
28676
28676
|
label: e.isFemale ? c.text.replace("Ganados por portero rival", "Ganados por portera rival").replace("Ganados por jugador rival", "Ganados por jugadora rival") : c.text,
|
|
28677
28677
|
"avoid-interaction": l.value && c.isSelected,
|
|
@@ -28682,7 +28682,7 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
28682
28682
|
key: `c${_}`,
|
|
28683
28683
|
class: "what-happened__filters__filter__composed__child"
|
|
28684
28684
|
}, [
|
|
28685
|
-
k(
|
|
28685
|
+
k(M(Ie), {
|
|
28686
28686
|
"model-value": w.isSelected,
|
|
28687
28687
|
label: e.isFemale ? w.text.replace("Ganados por portero rival", "Ganados por portera rival").replace("Ganados por jugador rival", "Ganados por jugadora rival") : w.text,
|
|
28688
28688
|
"avoid-interaction": l.value && w.isSelected,
|
|
@@ -28690,7 +28690,7 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
28690
28690
|
}, null, 8, ["model-value", "label", "avoid-interaction", "onUpdate:modelValue"])
|
|
28691
28691
|
]))), 128))
|
|
28692
28692
|
])) : (m(), v("div", pN, [
|
|
28693
|
-
k(
|
|
28693
|
+
k(M(Ie), {
|
|
28694
28694
|
"model-value": c.isSelected,
|
|
28695
28695
|
label: e.isFemale ? c.text.replace("Ganados por portero rival", "Ganados por portera rival").replace("Ganados por jugador rival", "Ganados por jugadora rival") : c.text,
|
|
28696
28696
|
"avoid-interaction": l.value && c.isSelected,
|
|
@@ -28806,7 +28806,7 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
28806
28806
|
key: f,
|
|
28807
28807
|
class: "template-results__result"
|
|
28808
28808
|
}, [
|
|
28809
|
-
k(
|
|
28809
|
+
k(M(Ie), {
|
|
28810
28810
|
modelValue: h.isSelected,
|
|
28811
28811
|
"onUpdate:modelValue": (g) => h.isSelected = g,
|
|
28812
28812
|
label: h.name,
|
|
@@ -28818,7 +28818,7 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
28818
28818
|
key: f,
|
|
28819
28819
|
class: "template-results__result"
|
|
28820
28820
|
}, [
|
|
28821
|
-
k(
|
|
28821
|
+
k(M(Ie), {
|
|
28822
28822
|
modelValue: h.isSelected,
|
|
28823
28823
|
"onUpdate:modelValue": (g) => h.isSelected = g,
|
|
28824
28824
|
label: h.name,
|
|
@@ -29201,23 +29201,23 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
29201
29201
|
"--text-color": i.textColor
|
|
29202
29202
|
})), y = I(() => {
|
|
29203
29203
|
const C = [];
|
|
29204
|
-
return Array.isArray(i.productivityCategories) ? i.productivityCategories.forEach((
|
|
29205
|
-
C.push(
|
|
29206
|
-
}) : i.productivityCategories && Object.values(i.productivityCategories).forEach((
|
|
29207
|
-
|
|
29204
|
+
return Array.isArray(i.productivityCategories) ? i.productivityCategories.forEach((L) => {
|
|
29205
|
+
C.push(L);
|
|
29206
|
+
}) : i.productivityCategories && Object.values(i.productivityCategories).forEach((L) => {
|
|
29207
|
+
L.categories && L.categories.forEach((he) => {
|
|
29208
29208
|
C.push(he);
|
|
29209
29209
|
});
|
|
29210
29210
|
}), C;
|
|
29211
29211
|
}), c = I(() => {
|
|
29212
29212
|
const C = [];
|
|
29213
|
-
return i.playsCategories && Object.values(i.playsCategories).forEach((
|
|
29214
|
-
|
|
29213
|
+
return i.playsCategories && Object.values(i.playsCategories).forEach((L) => {
|
|
29214
|
+
L.categories && L.categories.forEach((he) => {
|
|
29215
29215
|
C.push(he);
|
|
29216
29216
|
});
|
|
29217
29217
|
}), C;
|
|
29218
29218
|
}), b = I(() => {
|
|
29219
29219
|
const C = y.value.filter(
|
|
29220
|
-
(
|
|
29220
|
+
(L) => L.isSelected
|
|
29221
29221
|
);
|
|
29222
29222
|
return V(C), i.filterType === U.PRODUCTIVITY && a("change-categories-selected", C.length), C.length;
|
|
29223
29223
|
}), w = I(() => !i.isForTemplateForm && b.value >= i.productivityMaxCategories), _ = I(() => !i.isForTemplateForm && b.value <= i.productivityMinCategories), A = I(() => i.isPlayingAsHidden ? i.gameSections : i.playingAs.concat(i.gameSections));
|
|
@@ -29231,8 +29231,8 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
29231
29231
|
() => A.value,
|
|
29232
29232
|
(C) => {
|
|
29233
29233
|
if (i.filterType === U.DETAILS) {
|
|
29234
|
-
const
|
|
29235
|
-
a("change-filters-selected",
|
|
29234
|
+
const L = C.filter((he) => he.isSelected);
|
|
29235
|
+
a("change-filters-selected", L.length);
|
|
29236
29236
|
}
|
|
29237
29237
|
},
|
|
29238
29238
|
{ immediate: !0, deep: !0 }
|
|
@@ -29240,8 +29240,8 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
29240
29240
|
() => i.playsGolstatsCategories,
|
|
29241
29241
|
(C) => {
|
|
29242
29242
|
if (i.filterType === U.PLAYS_TYPES || i.filterType === U.GOLSTATS) {
|
|
29243
|
-
const
|
|
29244
|
-
a("change-filters-selected",
|
|
29243
|
+
const L = C.filter((he) => he.isSelected);
|
|
29244
|
+
a("change-filters-selected", L.length);
|
|
29245
29245
|
}
|
|
29246
29246
|
},
|
|
29247
29247
|
{ immediate: !0 }
|
|
@@ -29253,7 +29253,7 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
29253
29253
|
), ae(
|
|
29254
29254
|
c,
|
|
29255
29255
|
() => {
|
|
29256
|
-
i.filterType === U.PLAYS &&
|
|
29256
|
+
i.filterType === U.PLAYS && B();
|
|
29257
29257
|
},
|
|
29258
29258
|
{ immediate: !0, deep: !0 }
|
|
29259
29259
|
), ae(
|
|
@@ -29265,14 +29265,14 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
29265
29265
|
), ae(
|
|
29266
29266
|
() => i.resultsFilters,
|
|
29267
29267
|
(C) => {
|
|
29268
|
-
i.filterType === U.RESULTS && a("change-filters-selected", C.results.filter((
|
|
29268
|
+
i.filterType === U.RESULTS && a("change-filters-selected", C.results.filter((L) => L.isSelected).length);
|
|
29269
29269
|
},
|
|
29270
29270
|
{ immediate: !0, deep: !0 }
|
|
29271
29271
|
);
|
|
29272
29272
|
function V(C) {
|
|
29273
29273
|
setTimeout(() => {
|
|
29274
|
-
C.sort((
|
|
29275
|
-
|
|
29274
|
+
C.sort((L, he) => L.priority - he.priority), C.forEach((L, he) => {
|
|
29275
|
+
L.priority = he + 1;
|
|
29276
29276
|
});
|
|
29277
29277
|
}, 10);
|
|
29278
29278
|
}
|
|
@@ -29280,31 +29280,31 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
29280
29280
|
N(C);
|
|
29281
29281
|
}
|
|
29282
29282
|
function N(C = null) {
|
|
29283
|
-
i.filterType === U.PRODUCTIVITY ? y.value.forEach((
|
|
29284
|
-
|
|
29285
|
-
}) : i.filterType === U.PLAYS ? (c.value.forEach((
|
|
29286
|
-
|
|
29287
|
-
}), o.value = !0) : i.filterType === U.FIELD ? a("change-field-areas", [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]) : i.filterType === U.DETAILS ? (i.playingAs.forEach((
|
|
29288
|
-
|
|
29289
|
-
}), i.gameSections.forEach((
|
|
29290
|
-
|
|
29291
|
-
})) : i.filterType === U.TOURNAMENTS ? (i.tournaments.forEach((
|
|
29292
|
-
i.isOneTournamentOnly ?
|
|
29293
|
-
}), a("change-filters-selected", 0)) : i.filterType === U.PLAYS_TYPES ? i.playsGolstatsCategories.forEach((
|
|
29294
|
-
|
|
29295
|
-
}) : i.filterType === U.GOLSTATS ? i.playsGolstatsCategories.forEach((
|
|
29296
|
-
|
|
29283
|
+
i.filterType === U.PRODUCTIVITY ? y.value.forEach((L) => {
|
|
29284
|
+
L.isSelected = L.isDefault || !1;
|
|
29285
|
+
}) : i.filterType === U.PLAYS ? (c.value.forEach((L) => {
|
|
29286
|
+
L.isSelected = !0;
|
|
29287
|
+
}), o.value = !0) : i.filterType === U.FIELD ? a("change-field-areas", [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]) : i.filterType === U.DETAILS ? (i.playingAs.forEach((L) => {
|
|
29288
|
+
L.isSelected = !0;
|
|
29289
|
+
}), i.gameSections.forEach((L) => {
|
|
29290
|
+
L.isSelected = !0;
|
|
29291
|
+
})) : i.filterType === U.TOURNAMENTS ? (i.tournaments.forEach((L, he) => {
|
|
29292
|
+
i.isOneTournamentOnly ? L.isSelected = he === 0 : L.isSelected = !0;
|
|
29293
|
+
}), a("change-filters-selected", 0)) : i.filterType === U.PLAYS_TYPES ? i.playsGolstatsCategories.forEach((L) => {
|
|
29294
|
+
L.isSelected = !0;
|
|
29295
|
+
}) : i.filterType === U.GOLSTATS ? i.playsGolstatsCategories.forEach((L) => {
|
|
29296
|
+
L.isSelected = !1;
|
|
29297
29297
|
}) : i.filterType === U.UNIVERSE ? u.value && u.value.resetFilters() : i.filterType === U.PERSONAL_DATA ? (s.value && s.value.onClearFilters(C || ba.All), a("change-personal-data-filters", {})) : i.filterType === U.DISTANCE ? a("update:filters", {
|
|
29298
29298
|
minValue: i.distanceFilters.minLimit,
|
|
29299
29299
|
maxValue: i.distanceFilters.maxLimit
|
|
29300
29300
|
}) : i.filterType === U.RESULTS ? a("update:filters", {
|
|
29301
|
-
results: i.resultsFilters.results.map((
|
|
29302
|
-
}) : i.filterType === U.RESULTS_BY_TIME ? g.value && g.value.removeFilters() : i.filterType === U.GAMES ? i.gamesFilters.forEach((
|
|
29303
|
-
|
|
29304
|
-
}) : i.filterType === U.TAKEN_CORNERS ? d.value.clearFilters() : i.filterType === U.HOW_WAS_CORNER ? (i.howWasCornerFilters.left.forEach((
|
|
29305
|
-
|
|
29306
|
-
}), i.howWasCornerFilters.right.forEach((
|
|
29307
|
-
|
|
29301
|
+
results: i.resultsFilters.results.map((L) => (L.isSelected = !0, L))
|
|
29302
|
+
}) : i.filterType === U.RESULTS_BY_TIME ? g.value && g.value.removeFilters() : i.filterType === U.GAMES ? i.gamesFilters.forEach((L) => {
|
|
29303
|
+
L.isSelected = !0;
|
|
29304
|
+
}) : i.filterType === U.TAKEN_CORNERS ? d.value.clearFilters() : i.filterType === U.HOW_WAS_CORNER ? (i.howWasCornerFilters.left.forEach((L) => {
|
|
29305
|
+
L.isSelected = !0;
|
|
29306
|
+
}), i.howWasCornerFilters.right.forEach((L) => {
|
|
29307
|
+
L.isSelected = !0;
|
|
29308
29308
|
})) : i.filterType === U.ZONE ? h.value && h.value.clearFilters() : i.filterType === U.WHAT_HAPPENED && f.value && f.value.onResetFilters();
|
|
29309
29309
|
}
|
|
29310
29310
|
function z(C) {
|
|
@@ -29323,36 +29323,36 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
29323
29323
|
a("change-filters-selected", C);
|
|
29324
29324
|
}
|
|
29325
29325
|
function H(C) {
|
|
29326
|
-
i.filterType === U.PRODUCTIVITY ? y.value.forEach((
|
|
29327
|
-
|
|
29328
|
-
}) : (o.value = C, i.playsCategories.offensive.categories.forEach((
|
|
29329
|
-
|
|
29330
|
-
}), i.playsCategories.defensive.categories.forEach((
|
|
29331
|
-
|
|
29332
|
-
}), i.playsCategories.possession.categories.forEach((
|
|
29333
|
-
|
|
29334
|
-
}), i.playsCategories.offenses.categories.forEach((
|
|
29335
|
-
|
|
29326
|
+
i.filterType === U.PRODUCTIVITY ? y.value.forEach((L) => {
|
|
29327
|
+
L.isSelected = C;
|
|
29328
|
+
}) : (o.value = C, i.playsCategories.offensive.categories.forEach((L) => {
|
|
29329
|
+
L.isSelected = C;
|
|
29330
|
+
}), i.playsCategories.defensive.categories.forEach((L) => {
|
|
29331
|
+
L.isSelected = C;
|
|
29332
|
+
}), i.playsCategories.possession.categories.forEach((L) => {
|
|
29333
|
+
L.isSelected = C;
|
|
29334
|
+
}), i.playsCategories.offenses.categories.forEach((L) => {
|
|
29335
|
+
L.isSelected = C;
|
|
29336
29336
|
}));
|
|
29337
29337
|
}
|
|
29338
|
-
function
|
|
29338
|
+
function B() {
|
|
29339
29339
|
let C = 0;
|
|
29340
|
-
const
|
|
29340
|
+
const L = {
|
|
29341
29341
|
playsCategories: c.value.filter((he) => he.isSelected)
|
|
29342
29342
|
};
|
|
29343
|
-
o.value =
|
|
29343
|
+
o.value = L.playsCategories.length === c.value.length, C = L.playsCategories.length, Object.values(l.value).forEach((he) => {
|
|
29344
29344
|
he && C++;
|
|
29345
|
-
}), a("change-filters-selected", C), a("update:filters",
|
|
29345
|
+
}), a("change-filters-selected", C), a("update:filters", L);
|
|
29346
29346
|
}
|
|
29347
29347
|
function oe() {
|
|
29348
29348
|
let C = 0;
|
|
29349
|
-
const
|
|
29349
|
+
const L = {
|
|
29350
29350
|
productivityFilters: y.value.filter((he) => he.isSelected),
|
|
29351
29351
|
offensesConditions: l.value
|
|
29352
29352
|
};
|
|
29353
|
-
C =
|
|
29353
|
+
C = L.productivityFilters.length, Object.values(l.value).forEach((he) => {
|
|
29354
29354
|
he && C++;
|
|
29355
|
-
}), a("change-filters-selected", C), a("update:filters",
|
|
29355
|
+
}), a("change-filters-selected", C), a("update:filters", L);
|
|
29356
29356
|
}
|
|
29357
29357
|
function ce(C) {
|
|
29358
29358
|
a("click-parameters", C);
|
|
@@ -29389,30 +29389,30 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
29389
29389
|
i.filterType === U.RESULTS && a("update:filters", C);
|
|
29390
29390
|
}
|
|
29391
29391
|
function ne(C) {
|
|
29392
|
-
i.filterType === U.GAMES && (a("update:filters", C), a("change-filters-selected", C.filter((
|
|
29392
|
+
i.filterType === U.GAMES && (a("update:filters", C), a("change-filters-selected", C.filter((L) => L.isSelected).length));
|
|
29393
29393
|
}
|
|
29394
|
-
function
|
|
29394
|
+
function P(C) {
|
|
29395
29395
|
r.value.statisticType = C;
|
|
29396
29396
|
}
|
|
29397
29397
|
const de = I(() => i.filterType === U.PLAYS ? c.value.length : i.filterType === U.PRODUCTIVITY ? y.value.length : i.filterType === U.FIELD ? 16 : i.filterType === U.UNIVERSE ? 6 : i.filterType === U.DETAILS ? 8 : i.filterType === U.RESULTS || i.filterType === U.RESULTS_BY_TIME ? 3 : i.filterType === U.GAMES ? i.gamesFilters.length : 0);
|
|
29398
29398
|
return a("total-filters", de), t({
|
|
29399
29399
|
clearFilters: R
|
|
29400
|
-
}), (C,
|
|
29400
|
+
}), (C, L) => (m(), v("div", {
|
|
29401
29401
|
class: "templates",
|
|
29402
29402
|
style: ee(p.value)
|
|
29403
29403
|
}, [
|
|
29404
|
-
e.filterType ===
|
|
29404
|
+
e.filterType === M(U).PRODUCTIVITY || e.filterType === M(U).PLAYS ? (m(), v("div", {
|
|
29405
29405
|
key: 0,
|
|
29406
29406
|
class: se(e.isExpansionMode ? "productivity__header__expansion" : "productivity__header")
|
|
29407
29407
|
}, [
|
|
29408
|
-
e.filterType ===
|
|
29408
|
+
e.filterType === M(U).PRODUCTIVITY ? (m(), v("div", xN, [
|
|
29409
29409
|
e.productivityText ? (m(), v("div", kN, T(e.productivityText), 1)) : e.isFromTemplates ? (m(), v("div", EN, [
|
|
29410
29410
|
De(" Elige tipo de jugadas: "),
|
|
29411
29411
|
n("span", null, "mínimo " + T(e.productivityMinCategories) + " categorías y máximo " + T(e.productivityMaxCategories), 1)
|
|
29412
29412
|
])) : e.isForTemplateForm ? (m(), v("div", TN, "Tipo de participación")) : (m(), v("div", FN, "Selecciona hasta 5 categorias en orden de importancia"))
|
|
29413
29413
|
])) : E("", !0),
|
|
29414
|
-
e.filterType ===
|
|
29415
|
-
k(
|
|
29414
|
+
e.filterType === M(U).PLAYS || e.isForTemplateForm ? (m(), v("div", $N, [
|
|
29415
|
+
k(M(Ie), {
|
|
29416
29416
|
label: e.isForTemplateForm ? "Seleccionar todas" : "Todos los tipos de jugadas",
|
|
29417
29417
|
"box-position": e.isForTemplateForm ? "right" : "left",
|
|
29418
29418
|
fontFamily: "Poppins-Regular",
|
|
@@ -29424,13 +29424,13 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
29424
29424
|
])) : E("", !0)
|
|
29425
29425
|
], 2)) : E("", !0),
|
|
29426
29426
|
n("div", AN, [
|
|
29427
|
-
e.filterType ===
|
|
29427
|
+
e.filterType === M(U).PLAYS ? (m(), v("div", RN, [
|
|
29428
29428
|
k(AM, {
|
|
29429
29429
|
"plays-categories": e.playsCategories,
|
|
29430
29430
|
"is-expansion-mode": e.isExpansionMode
|
|
29431
29431
|
}, null, 8, ["plays-categories", "is-expansion-mode"])
|
|
29432
29432
|
])) : E("", !0),
|
|
29433
|
-
e.filterType ===
|
|
29433
|
+
e.filterType === M(U).PRODUCTIVITY ? (m(), v("div", ON, [
|
|
29434
29434
|
k(wF, {
|
|
29435
29435
|
"productivity-categories": e.productivityCategories,
|
|
29436
29436
|
"number-of-categories-selected": b.value,
|
|
@@ -29445,14 +29445,14 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
29445
29445
|
onClickParameters: ce
|
|
29446
29446
|
}, null, 8, ["productivity-categories", "number-of-categories-selected", "are-max-categories-reached", "are-min-categories-reached", "is-expansion-mode", "is-from-templates", "is-for-template-form", "are-productivity-buttons-visible", "are-offenses-conditions-visible"])
|
|
29447
29447
|
])) : E("", !0),
|
|
29448
|
-
e.filterType ===
|
|
29449
|
-
k(
|
|
29448
|
+
e.filterType === M(U).FIELD ? (m(), v("div", BN, [
|
|
29449
|
+
k(M(PR), Me(e.fieldComponentProps, {
|
|
29450
29450
|
"background-color": e.backgroundColor,
|
|
29451
29451
|
value: e.fieldAreas,
|
|
29452
29452
|
"onUpdate:modelValue": D
|
|
29453
29453
|
}), null, 16, ["background-color", "value"])
|
|
29454
29454
|
])) : E("", !0),
|
|
29455
|
-
e.filterType ===
|
|
29455
|
+
e.filterType === M(U).DETAILS ? (m(), v("div", MN, [
|
|
29456
29456
|
k(XF, {
|
|
29457
29457
|
"is-playing-as-hidden": e.isPlayingAsHidden,
|
|
29458
29458
|
"playing-as": e.playingAs,
|
|
@@ -29460,10 +29460,10 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
29460
29460
|
"font-gamily": e.fontFamily,
|
|
29461
29461
|
"is-statistic-type-visible": e.isStatisticTypeVisible,
|
|
29462
29462
|
"statistic-type": e.statisticType,
|
|
29463
|
-
onChangeStatisticType:
|
|
29463
|
+
onChangeStatisticType: P
|
|
29464
29464
|
}, null, 8, ["is-playing-as-hidden", "playing-as", "game-sections", "font-gamily", "is-statistic-type-visible", "statistic-type"])
|
|
29465
29465
|
])) : E("", !0),
|
|
29466
|
-
e.filterType ===
|
|
29466
|
+
e.filterType === M(U).PERSONAL_DATA ? (m(), v("div", PN, [
|
|
29467
29467
|
k(fM, {
|
|
29468
29468
|
"is-female": e.isFemale,
|
|
29469
29469
|
ref_key: "templatePersonalData",
|
|
@@ -29477,7 +29477,7 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
29477
29477
|
"onUpdate:filters": W
|
|
29478
29478
|
}, null, 8, ["is-female", "personal-data-filters", "season", "is-seleccion", "is-scouting", "token", "filters"])
|
|
29479
29479
|
])) : E("", !0),
|
|
29480
|
-
e.filterType ===
|
|
29480
|
+
e.filterType === M(U).TOURNAMENTS ? (m(), v("div", LN, [
|
|
29481
29481
|
k(o$, {
|
|
29482
29482
|
tournaments: e.tournaments,
|
|
29483
29483
|
"is-one-tournament-only": e.isOneTournamentOnly,
|
|
@@ -29486,7 +29486,7 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
29486
29486
|
"onUpdate:filters": re
|
|
29487
29487
|
}, null, 8, ["tournaments", "is-one-tournament-only", "default-tournament-id"])
|
|
29488
29488
|
])) : E("", !0),
|
|
29489
|
-
e.filterType ===
|
|
29489
|
+
e.filterType === M(U).PLAYS_TYPES ? (m(), v("div", IN, [
|
|
29490
29490
|
k(mu, {
|
|
29491
29491
|
height: e.modalHeight,
|
|
29492
29492
|
type: e.filterType,
|
|
@@ -29494,7 +29494,7 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
29494
29494
|
"onUpdate:filters": te
|
|
29495
29495
|
}, null, 8, ["height", "type", "categories"])
|
|
29496
29496
|
])) : E("", !0),
|
|
29497
|
-
e.filterType ===
|
|
29497
|
+
e.filterType === M(U).GOLSTATS ? (m(), v("div", VN, [
|
|
29498
29498
|
k(mu, {
|
|
29499
29499
|
height: e.modalHeight,
|
|
29500
29500
|
type: e.filterType,
|
|
@@ -29503,7 +29503,7 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
29503
29503
|
"onUpdate:filters": te
|
|
29504
29504
|
}, null, 8, ["height", "type", "categories"])
|
|
29505
29505
|
])) : E("", !0),
|
|
29506
|
-
e.filterType ===
|
|
29506
|
+
e.filterType === M(U).UNIVERSE ? (m(), v("div", NN, [
|
|
29507
29507
|
k(Q$, {
|
|
29508
29508
|
ref_key: "templateUniverse",
|
|
29509
29509
|
ref: u,
|
|
@@ -29512,13 +29512,13 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
29512
29512
|
"onUpdate:universeFilters": O
|
|
29513
29513
|
}, null, 8, ["universe-filters", "default-month-index"])
|
|
29514
29514
|
])) : E("", !0),
|
|
29515
|
-
e.filterType ===
|
|
29515
|
+
e.filterType === M(U).DISTANCE ? (m(), v("div", DN, [
|
|
29516
29516
|
k(_A, {
|
|
29517
29517
|
distance: e.distanceFilters,
|
|
29518
29518
|
"onUpdate:distanceFilters": ge
|
|
29519
29519
|
}, null, 8, ["distance"])
|
|
29520
29520
|
])) : E("", !0),
|
|
29521
|
-
e.filterType ===
|
|
29521
|
+
e.filterType === M(U).RESULTS ? (m(), v("div", jN, [
|
|
29522
29522
|
k(BM, {
|
|
29523
29523
|
ref_key: "templateResults",
|
|
29524
29524
|
ref: g,
|
|
@@ -29526,7 +29526,7 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
29526
29526
|
"onUpdate:resultsFilters": me
|
|
29527
29527
|
}, null, 8, ["results-filters"])
|
|
29528
29528
|
])) : E("", !0),
|
|
29529
|
-
e.filterType ===
|
|
29529
|
+
e.filterType === M(U).RESULTS_BY_TIME ? (m(), v("div", UN, [
|
|
29530
29530
|
k(CN, {
|
|
29531
29531
|
ref_key: "templateResults",
|
|
29532
29532
|
ref: g,
|
|
@@ -29535,13 +29535,13 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
29535
29535
|
"onUpdate:filters": $
|
|
29536
29536
|
}, null, 8, ["results-filters"])
|
|
29537
29537
|
])) : E("", !0),
|
|
29538
|
-
e.filterType ===
|
|
29538
|
+
e.filterType === M(U).GAMES ? (m(), v("div", zN, [
|
|
29539
29539
|
k(TA, {
|
|
29540
29540
|
"games-filters": e.gamesFilters,
|
|
29541
29541
|
"onUpdate:gamesFilters": ne
|
|
29542
29542
|
}, null, 8, ["games-filters"])
|
|
29543
29543
|
])) : E("", !0),
|
|
29544
|
-
e.filterType ===
|
|
29544
|
+
e.filterType === M(U).TAKEN_CORNERS ? (m(), v("div", HN, [
|
|
29545
29545
|
k(jI, {
|
|
29546
29546
|
"is-female": e.isFemale,
|
|
29547
29547
|
ref_key: "templateTakenCorners",
|
|
@@ -29552,10 +29552,10 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
29552
29552
|
"onUpdate:filters": $
|
|
29553
29553
|
}, null, 8, ["is-female", "taken-corners-filters", "is-expansion-mode"])
|
|
29554
29554
|
])) : E("", !0),
|
|
29555
|
-
e.filterType ===
|
|
29555
|
+
e.filterType === M(U).VIDEOS ? (m(), v("div", WN, [
|
|
29556
29556
|
k(CI, { token: e.token }, null, 8, ["token"])
|
|
29557
29557
|
])) : E("", !0),
|
|
29558
|
-
e.filterType ===
|
|
29558
|
+
e.filterType === M(U).HOW_WAS_CORNER ? (m(), v("div", qN, [
|
|
29559
29559
|
k(iV, {
|
|
29560
29560
|
"how-was-corner-filters": e.howWasCornerFilters,
|
|
29561
29561
|
"is-expansion-mode": e.isExpansionMode,
|
|
@@ -29563,7 +29563,7 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
29563
29563
|
"onUpdate:filters": $
|
|
29564
29564
|
}, null, 8, ["how-was-corner-filters", "is-expansion-mode"])
|
|
29565
29565
|
])) : E("", !0),
|
|
29566
|
-
e.filterType ===
|
|
29566
|
+
e.filterType === M(U).ZONE ? (m(), v("div", GN, [
|
|
29567
29567
|
k(rN, {
|
|
29568
29568
|
ref_key: "templateZone",
|
|
29569
29569
|
ref: h,
|
|
@@ -29572,7 +29572,7 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
29572
29572
|
"onUpdate:filters": $
|
|
29573
29573
|
}, null, 8, ["zone-filters"])
|
|
29574
29574
|
])) : E("", !0),
|
|
29575
|
-
e.filterType ===
|
|
29575
|
+
e.filterType === M(U).WHAT_HAPPENED ? (m(), v("div", ZN, [
|
|
29576
29576
|
k(hN, {
|
|
29577
29577
|
"is-female": e.isFemale,
|
|
29578
29578
|
ref_key: "templateWhatHappened",
|
|
@@ -29584,7 +29584,7 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
29584
29584
|
])) : E("", !0)
|
|
29585
29585
|
]),
|
|
29586
29586
|
e.isFooterVisible ? (m(), v("div", YN, [
|
|
29587
|
-
e.isFooterCancelOnly ? (m(), Se(
|
|
29587
|
+
e.isFooterCancelOnly ? (m(), Se(M(vo), {
|
|
29588
29588
|
key: 0,
|
|
29589
29589
|
"text-value": "Cancelar",
|
|
29590
29590
|
"font-size": "12px",
|
|
@@ -29597,14 +29597,14 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
29597
29597
|
onClick: Ve
|
|
29598
29598
|
})) : (m(), v(Q, { key: 1 }, [
|
|
29599
29599
|
n("div", JN, [
|
|
29600
|
-
e.isForTemplateForm ? (m(), Se(
|
|
29600
|
+
e.isForTemplateForm ? (m(), Se(M(vo), {
|
|
29601
29601
|
key: 0,
|
|
29602
29602
|
"text-value": "Cancelar",
|
|
29603
29603
|
"font-size": "12px",
|
|
29604
29604
|
"font-color": "rgba(255,255,255,0.7)",
|
|
29605
29605
|
"text-decoration": "underline",
|
|
29606
29606
|
onClick: Ve
|
|
29607
|
-
})) : (m(), Se(
|
|
29607
|
+
})) : (m(), Se(M(vo), {
|
|
29608
29608
|
key: 1,
|
|
29609
29609
|
"text-value": "Quitar filtros",
|
|
29610
29610
|
"font-size": "12px",
|
|
@@ -29614,7 +29614,7 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
29614
29614
|
}))
|
|
29615
29615
|
]),
|
|
29616
29616
|
n("div", KN, [
|
|
29617
|
-
k(
|
|
29617
|
+
k(M(vo), {
|
|
29618
29618
|
"text-value": "Listo",
|
|
29619
29619
|
"font-size": "12px",
|
|
29620
29620
|
height: "22px",
|
|
@@ -31351,7 +31351,7 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
31351
31351
|
borderRadius: "12px",
|
|
31352
31352
|
filterType: U.WHAT_HAPPENED,
|
|
31353
31353
|
isFooterVisible: !0
|
|
31354
|
-
}, N = S(!1), z = S(!1), O = S(0), D = S(0), x = S({}), F = S(null), H = S(null),
|
|
31354
|
+
}, N = S(!1), z = S(!1), O = S(0), D = S(0), x = S({}), F = S(null), H = S(null), B = S("Universo"), oe = I(() => i.isForTemplateForm ? "0" : "unset"), ce = I(() => i.filterType === U.UNIVERSE && i.showUniverseTime ? B.value : i.buttonFilterProps && i.buttonFilterProps.text ? i.buttonFilterProps.text : i.menuButtonText || te()), Oe = I(() => i.isFromTemplates ? U.RESULTS : i.filterType), Ve = I(() => i.expansionPanelText || te()), $ = S(null);
|
|
31355
31355
|
ae(
|
|
31356
31356
|
() => i.filterType,
|
|
31357
31357
|
(C) => {
|
|
@@ -31386,13 +31386,13 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
31386
31386
|
isStatisticTypeVisible: i.filters ? i.filters.isStatisticTypeVisible : Jt.isStatisticTypeVisible
|
|
31387
31387
|
};
|
|
31388
31388
|
else if (C === U.TOURNAMENTS) {
|
|
31389
|
-
const
|
|
31390
|
-
i.isOneTournamentOnly &&
|
|
31389
|
+
const L = i.filters || sj;
|
|
31390
|
+
i.isOneTournamentOnly && L.forEach((he) => {
|
|
31391
31391
|
he.isSelected = he.id === i.defaultTournamentId;
|
|
31392
31392
|
}), x.value = {
|
|
31393
31393
|
...u,
|
|
31394
31394
|
...i.templateProps,
|
|
31395
|
-
tournaments:
|
|
31395
|
+
tournaments: L
|
|
31396
31396
|
};
|
|
31397
31397
|
} else
|
|
31398
31398
|
C === U.PERSONAL_DATA ? x.value = {
|
|
@@ -31487,8 +31487,8 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
31487
31487
|
};
|
|
31488
31488
|
else if (i.filterType === U.TOURNAMENTS) {
|
|
31489
31489
|
const C = i.filters;
|
|
31490
|
-
i.isOneTournamentOnly && C.forEach((
|
|
31491
|
-
|
|
31490
|
+
i.isOneTournamentOnly && C.forEach((L) => {
|
|
31491
|
+
L.isSelected = L.id === i.defaultTournamentId;
|
|
31492
31492
|
}), x.value = {
|
|
31493
31493
|
...u,
|
|
31494
31494
|
...i.templateProps,
|
|
@@ -31606,13 +31606,13 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
31606
31606
|
x.value.fieldAreas = C, O.value = C.length, ne(C);
|
|
31607
31607
|
}
|
|
31608
31608
|
function me(C) {
|
|
31609
|
-
let
|
|
31610
|
-
C.value && C.value.statistics && (C.value.minutesPlayed &&
|
|
31609
|
+
let L = 0;
|
|
31610
|
+
C.value && C.value.statistics && (C.value.minutesPlayed && L++, C.value.percentMinutesPlayed && L++, C.value.lastMonths && L++, C.value.statistics.totals && L++, C.value.statistics.averagePerGame && L++, C.value.statistics.averagePerMinute && L++), i.showUniverseTime && (B.value = `Durante los últimos ${C.value.lastMonths} meses`), x.value.universe = C.value, O.value = L, ne(C.value);
|
|
31611
31611
|
}
|
|
31612
31612
|
function ne(C) {
|
|
31613
31613
|
$.value = C, a("update:filters", C);
|
|
31614
31614
|
}
|
|
31615
|
-
function
|
|
31615
|
+
function P(C) {
|
|
31616
31616
|
D.value = C;
|
|
31617
31617
|
}
|
|
31618
31618
|
function de(C = null) {
|
|
@@ -31620,11 +31620,11 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
31620
31620
|
}
|
|
31621
31621
|
return t({
|
|
31622
31622
|
clearFilters: de
|
|
31623
|
-
}), (C,
|
|
31623
|
+
}), (C, L) => (m(), v("div", dj, [
|
|
31624
31624
|
e.isExpansionPanel ? (m(), v("div", uj, [
|
|
31625
|
-
k(
|
|
31625
|
+
k(M(tj), Me(e.expansionPanelProps, {
|
|
31626
31626
|
modelValue: z.value,
|
|
31627
|
-
"onUpdate:modelValue":
|
|
31627
|
+
"onUpdate:modelValue": L[0] || (L[0] = (he) => z.value = he),
|
|
31628
31628
|
text: Ve.value,
|
|
31629
31629
|
"text-color": "rgba(255,255,255,.7)",
|
|
31630
31630
|
icon: "/" + i.filterType + "-icon.png"
|
|
@@ -31654,7 +31654,7 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
31654
31654
|
onChangeUniverseFilters: me,
|
|
31655
31655
|
onApply: re,
|
|
31656
31656
|
"onUpdate:filters": ne,
|
|
31657
|
-
onTotalFilters:
|
|
31657
|
+
onTotalFilters: P,
|
|
31658
31658
|
onClickParameters: pe
|
|
31659
31659
|
}), null, 16, ["season", "is-female", "is-seleccion", "is-one-tournament-only", "is-from-templates", "is-for-template-form", "default-tournament-id", "productivity-max-categories", "productivity-min-categories", "universe-default-month-index", "are-productivity-buttons-visible", "productivity-text", "are-offenses-conditions-visible"])
|
|
31660
31660
|
])
|
|
@@ -31662,9 +31662,9 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
31662
31662
|
_: 1
|
|
31663
31663
|
}, 16, ["modelValue", "text", "icon"])
|
|
31664
31664
|
])) : (m(), v("div", pj, [
|
|
31665
|
-
k(
|
|
31665
|
+
k(M(tD), {
|
|
31666
31666
|
modelValue: N.value,
|
|
31667
|
-
"onUpdate:modelValue":
|
|
31667
|
+
"onUpdate:modelValue": L[1] || (L[1] = (he) => N.value = he),
|
|
31668
31668
|
width: e.width,
|
|
31669
31669
|
"left-menu": oe.value,
|
|
31670
31670
|
"menu-margin-top": 18
|
|
@@ -31702,7 +31702,7 @@ const VM = { class: "dropdown" }, NM = { class: "selected-item" }, DM = {
|
|
|
31702
31702
|
onChangeFiltersSelected: W,
|
|
31703
31703
|
onChangeUniverseFilters: me,
|
|
31704
31704
|
"onUpdate:filters": ne,
|
|
31705
|
-
onTotalFilters:
|
|
31705
|
+
onTotalFilters: P,
|
|
31706
31706
|
onApply: re,
|
|
31707
31707
|
onClickParameters: pe
|
|
31708
31708
|
}), null, 16, ["season", "is-female", "is-scouting", "is-seleccion", "is-one-tournament-only", "default-tournament-id", "is-from-templates", "is-for-template-form", "productivity-max-categories", "productivity-min-categories", "universe-default-month-index", "are-productivity-buttons-visible", "productivity-text", "are-offenses-conditions-visible"])
|
|
@@ -32061,7 +32061,7 @@ const hj = {
|
|
|
32061
32061
|
if (!R.max || !R.data)
|
|
32062
32062
|
return;
|
|
32063
32063
|
if (V) {
|
|
32064
|
-
const O = /* @__PURE__ */ new Map(), D = Object.entries(R.data).reduce((x, [F, H],
|
|
32064
|
+
const O = /* @__PURE__ */ new Map(), D = Object.entries(R.data).reduce((x, [F, H], B) => {
|
|
32065
32065
|
const oe = {
|
|
32066
32066
|
playerId: F,
|
|
32067
32067
|
categoriesByName: /* @__PURE__ */ new Map()
|
|
@@ -32069,14 +32069,14 @@ const hj = {
|
|
|
32069
32069
|
return H.forEach((ce) => {
|
|
32070
32070
|
const Oe = oe.categoriesByName.get(ce[1]), Ve = O.get(ce[1]);
|
|
32071
32071
|
if (Oe) {
|
|
32072
|
-
if (Oe.categoriesIds.push(ce[0]), Oe.categoriesIds.sort(), Oe.totals.push(ce[2]),
|
|
32072
|
+
if (Oe.categoriesIds.push(ce[0]), Oe.categoriesIds.sort(), Oe.totals.push(ce[2]), B === 0 && Ve) {
|
|
32073
32073
|
const $ = R.max.find((W) => W[0] === ce[0]);
|
|
32074
32074
|
$ && (Ve.categoriesIds.push(ce[0]), Ve.categoriesIds.sort(), Ve.max.push($[1]));
|
|
32075
32075
|
}
|
|
32076
32076
|
} else if (oe.categoriesByName.set(ce[1], {
|
|
32077
32077
|
categoriesIds: [ce[0]],
|
|
32078
32078
|
totals: [ce[2]]
|
|
32079
|
-
}),
|
|
32079
|
+
}), B === 0) {
|
|
32080
32080
|
const $ = R.max.find((W) => W[0] === ce[0]);
|
|
32081
32081
|
$ && O.set(ce[1], {
|
|
32082
32082
|
categoriesIds: [ce[0]],
|
|
@@ -32087,11 +32087,11 @@ const hj = {
|
|
|
32087
32087
|
}, []);
|
|
32088
32088
|
R.data = D.reduce((x, F) => {
|
|
32089
32089
|
const H = [];
|
|
32090
|
-
return F.categoriesByName.forEach((
|
|
32090
|
+
return F.categoriesByName.forEach((B, oe) => {
|
|
32091
32091
|
H.push([
|
|
32092
|
-
Array.from(
|
|
32092
|
+
Array.from(B.categoriesIds).reduce((ce, Oe) => `${ce}-${Oe}`, ""),
|
|
32093
32093
|
oe,
|
|
32094
|
-
|
|
32094
|
+
B.totals.reduce((ce, Oe) => ce + Oe, 0)
|
|
32095
32095
|
]);
|
|
32096
32096
|
}), x[F.playerId] = H, x;
|
|
32097
32097
|
}, {}), R.max = O.values().map((x) => [
|
|
@@ -32105,17 +32105,17 @@ const hj = {
|
|
|
32105
32105
|
O.objeto_player ? O.objeto_player.player_id : O.id || O.player_id
|
|
32106
32106
|
);
|
|
32107
32107
|
O.statsGraph = [], D && (O.statsGraph = D.map((x, F) => {
|
|
32108
|
-
const H = Number(N.get(x[0])),
|
|
32108
|
+
const H = Number(N.get(x[0])), B = x[2], oe = F + 1;
|
|
32109
32109
|
return r.value.length < D.length && r.value.push({
|
|
32110
32110
|
position: oe,
|
|
32111
32111
|
name: x[1]
|
|
32112
32112
|
}), {
|
|
32113
32113
|
position: oe,
|
|
32114
32114
|
name: x[1],
|
|
32115
|
-
playerStat:
|
|
32115
|
+
playerStat: B,
|
|
32116
32116
|
leagueMax: H,
|
|
32117
32117
|
id: x[0],
|
|
32118
|
-
playerPercentage: H ? Math.floor(
|
|
32118
|
+
playerPercentage: H ? Math.floor(B / H * 100) : B,
|
|
32119
32119
|
isVisible: !0
|
|
32120
32120
|
};
|
|
32121
32121
|
}));
|
|
@@ -32136,7 +32136,7 @@ const hj = {
|
|
|
32136
32136
|
e.hasHeader ? (m(), v("div", hj, T(e.title), 1)) : E("", !0),
|
|
32137
32137
|
n("div", mj, [
|
|
32138
32138
|
n("div", yj, [
|
|
32139
|
-
e.dynamicCategories ? (m(), Se(
|
|
32139
|
+
e.dynamicCategories ? (m(), Se(M(Yu), {
|
|
32140
32140
|
key: 0,
|
|
32141
32141
|
"button-filter-props": {
|
|
32142
32142
|
backgroundColor: "#2e3b46",
|
|
@@ -32153,7 +32153,7 @@ const hj = {
|
|
|
32153
32153
|
},
|
|
32154
32154
|
"show-badge-on-filter-full": !1,
|
|
32155
32155
|
filters: e.dynamicCategories,
|
|
32156
|
-
"filter-type":
|
|
32156
|
+
"filter-type": M(U).PRODUCTIVITY,
|
|
32157
32157
|
"is-for-template-form": !1,
|
|
32158
32158
|
"productivity-max-categories": 12,
|
|
32159
32159
|
"productivity-min-categories": 3,
|
|
@@ -32164,7 +32164,7 @@ const hj = {
|
|
|
32164
32164
|
"productivity-text": "Modificar las jugadas que se ven en la gráfica spider",
|
|
32165
32165
|
"onUpdate:filters": w,
|
|
32166
32166
|
onClickParameters: _
|
|
32167
|
-
}, null, 8, ["button-filter-props", "filters", "filter-type"])) : e.customCategories ? (m(), Se(
|
|
32167
|
+
}, null, 8, ["button-filter-props", "filters", "filter-type"])) : e.customCategories ? (m(), Se(M(Yu), {
|
|
32168
32168
|
key: 1,
|
|
32169
32169
|
"button-filter-props": {
|
|
32170
32170
|
backgroundColor: "#2e3b46",
|
|
@@ -32181,7 +32181,7 @@ const hj = {
|
|
|
32181
32181
|
},
|
|
32182
32182
|
"show-badge-on-filter-full": !1,
|
|
32183
32183
|
filters: e.customCategories,
|
|
32184
|
-
"filter-type":
|
|
32184
|
+
"filter-type": M(U).PRODUCTIVITY,
|
|
32185
32185
|
"is-for-template-form": !1,
|
|
32186
32186
|
"productivity-max-categories": 12,
|
|
32187
32187
|
"productivity-min-categories": 3,
|
|
@@ -32388,7 +32388,7 @@ function Tj(e, t, a, i, s, o) {
|
|
|
32388
32388
|
"display-mode": a.displayMode
|
|
32389
32389
|
}]),
|
|
32390
32390
|
onMouseenter: (u) => s.isDragging && o.handleDragSelect(o.getSectionIndex(r, l)),
|
|
32391
|
-
onMousedown:
|
|
32391
|
+
onMousedown: qe((u) => !a.displayMode && o.toggleSection(o.getSectionIndex(r, l)), ["prevent"])
|
|
32392
32392
|
}, null, 42, xj)), 64))
|
|
32393
32393
|
])), 64))
|
|
32394
32394
|
], 32),
|
|
@@ -32793,7 +32793,7 @@ function Xj(e, t, a, i, s, o) {
|
|
|
32793
32793
|
"display-mode": a.displayMode
|
|
32794
32794
|
}]),
|
|
32795
32795
|
onMouseenter: (u) => s.isDragging && o.handleDragSelect(r, l),
|
|
32796
|
-
onMousedown:
|
|
32796
|
+
onMousedown: qe((u) => !a.displayMode && o.toggleSection(r, l), ["prevent"])
|
|
32797
32797
|
}, null, 42, Jj)), 64))
|
|
32798
32798
|
], 64))), 64))
|
|
32799
32799
|
], 32),
|
|
@@ -32928,7 +32928,7 @@ const ic = /* @__PURE__ */ qa(El, [["render", Xj], ["__scopeId", "data-v-7ae64b4
|
|
|
32928
32928
|
n("div", {
|
|
32929
32929
|
ref: "modalContent",
|
|
32930
32930
|
class: "modal-content",
|
|
32931
|
-
onClick: R[6] || (R[6] =
|
|
32931
|
+
onClick: R[6] || (R[6] = qe(() => {
|
|
32932
32932
|
}, ["stop"]))
|
|
32933
32933
|
}, [
|
|
32934
32934
|
n("div", Qj, [
|
|
@@ -33174,41 +33174,41 @@ const ic = /* @__PURE__ */ qa(El, [["render", Xj], ["__scopeId", "data-v-7ae64b4
|
|
|
33174
33174
|
setup(e, { expose: t, emit: a }) {
|
|
33175
33175
|
const i = e, s = S([]), o = S([]), r = S([]), l = S([]), u = S(!1), d = S(0), h = I(() => ({
|
|
33176
33176
|
"--grid-template-columns": i.customVariablesOnly ? "1fr" : "repeat(2, 1fr)"
|
|
33177
|
-
})), f = I(() => r.value.map((
|
|
33178
|
-
const oe = { ...
|
|
33177
|
+
})), f = I(() => r.value.map((B) => {
|
|
33178
|
+
const oe = { ...B };
|
|
33179
33179
|
return delete oe.isExpanded, oe;
|
|
33180
33180
|
}));
|
|
33181
|
-
function g(
|
|
33181
|
+
function g(B) {
|
|
33182
33182
|
const oe = /* @__PURE__ */ new Date();
|
|
33183
|
-
let ce = oe.getFullYear() -
|
|
33184
|
-
const Oe = oe.getMonth() -
|
|
33185
|
-
return (Oe < 0 || Oe === 0 && oe.getDate() <
|
|
33183
|
+
let ce = oe.getFullYear() - B.getFullYear();
|
|
33184
|
+
const Oe = oe.getMonth() - B.getMonth();
|
|
33185
|
+
return (Oe < 0 || Oe === 0 && oe.getDate() < B.getDate()) && ce--, ce;
|
|
33186
33186
|
}
|
|
33187
33187
|
const p = I(() => {
|
|
33188
|
-
const
|
|
33189
|
-
return `https://a3tmmmjdaj.execute-api.us-east-2.amazonaws.com/prod/v2/users/${i.userId}/variables${
|
|
33188
|
+
const B = i.positionIds && i.positionIds.length > 0 ? i.positionIds.reduce((oe, ce) => `${oe}${oe === "?" ? "" : "&"}p=${ce}`, "?") : "";
|
|
33189
|
+
return `https://a3tmmmjdaj.execute-api.us-east-2.amazonaws.com/prod/v2/users/${i.userId}/variables${B}`;
|
|
33190
33190
|
});
|
|
33191
33191
|
ae(
|
|
33192
33192
|
p,
|
|
33193
|
-
(
|
|
33194
|
-
|
|
33193
|
+
(B, oe) => {
|
|
33194
|
+
B && B !== oe && (i.customVariables && i.customVariables.length ? l.value = i.customVariables.map((ce) => ({
|
|
33195
33195
|
...ce,
|
|
33196
33196
|
isSelected: !0
|
|
33197
|
-
})) : y(
|
|
33197
|
+
})) : y(B));
|
|
33198
33198
|
},
|
|
33199
33199
|
{ immediate: !0 }
|
|
33200
33200
|
), ae(
|
|
33201
33201
|
() => i.isEditMode,
|
|
33202
|
-
(
|
|
33203
|
-
|
|
33202
|
+
(B) => {
|
|
33203
|
+
B && s.value.forEach((oe) => {
|
|
33204
33204
|
oe.isSelected = !1;
|
|
33205
33205
|
});
|
|
33206
33206
|
}
|
|
33207
33207
|
);
|
|
33208
|
-
async function y(
|
|
33208
|
+
async function y(B) {
|
|
33209
33209
|
try {
|
|
33210
33210
|
const oe = await (await fetch(
|
|
33211
|
-
|
|
33211
|
+
B,
|
|
33212
33212
|
{
|
|
33213
33213
|
method: "GET",
|
|
33214
33214
|
headers: {
|
|
@@ -33225,19 +33225,19 @@ const ic = /* @__PURE__ */ qa(El, [["render", Xj], ["__scopeId", "data-v-7ae64b4
|
|
|
33225
33225
|
console.error("Error fetching user variables:", oe);
|
|
33226
33226
|
}
|
|
33227
33227
|
}
|
|
33228
|
-
function c(
|
|
33229
|
-
r.value =
|
|
33228
|
+
function c(B) {
|
|
33229
|
+
r.value = B;
|
|
33230
33230
|
}
|
|
33231
|
-
function b(
|
|
33232
|
-
const [oe, ce] =
|
|
33231
|
+
function b(B) {
|
|
33232
|
+
const [oe, ce] = B.split(","), Oe = oe.split(" ");
|
|
33233
33233
|
let Ve = "";
|
|
33234
33234
|
for (const $ of Oe)
|
|
33235
33235
|
if (Ve += ` ${$}`, $.length > 3)
|
|
33236
33236
|
break;
|
|
33237
33237
|
return ce && oe ? `${ce.trim()} ${Ve}` : "";
|
|
33238
33238
|
}
|
|
33239
|
-
function w(
|
|
33240
|
-
s.value =
|
|
33239
|
+
function w(B) {
|
|
33240
|
+
s.value = B.map((oe, ce) => {
|
|
33241
33241
|
const Oe = ce + 1;
|
|
33242
33242
|
return {
|
|
33243
33243
|
...oe,
|
|
@@ -33255,36 +33255,36 @@ const ic = /* @__PURE__ */ qa(El, [["render", Xj], ["__scopeId", "data-v-7ae64b4
|
|
|
33255
33255
|
...oe
|
|
33256
33256
|
})), d.value += 1;
|
|
33257
33257
|
}
|
|
33258
|
-
function _(
|
|
33258
|
+
function _(B) {
|
|
33259
33259
|
s.value.forEach((ce) => {
|
|
33260
33260
|
ce.isNew = !1;
|
|
33261
33261
|
});
|
|
33262
|
-
const oe = s.value.find((ce) => ce.id &&
|
|
33262
|
+
const oe = s.value.find((ce) => ce.id && B.id && ce.id === B.id || ce.objeto_player && ce.objeto_player.player_id === B.player_id || ce.player_id && B.player_id && ce.player_id === B.player_id || ce.id && B.player_id && ce.id === B.player_id || ce.player_id && B.id && ce.player_id === B.id);
|
|
33263
33263
|
setTimeout(() => {
|
|
33264
|
-
oe || (
|
|
33264
|
+
oe || (B.name = b(B.name), B.isNew = !0, s.value.unshift(B));
|
|
33265
33265
|
}, 500);
|
|
33266
33266
|
}
|
|
33267
|
-
function A(
|
|
33268
|
-
u.value =
|
|
33267
|
+
function A(B) {
|
|
33268
|
+
u.value = B, B && (document.body.style.overflow = "hidden", document.html.style.overflow = "hidden");
|
|
33269
33269
|
}
|
|
33270
|
-
function V(
|
|
33271
|
-
a("view-profile",
|
|
33270
|
+
function V(B) {
|
|
33271
|
+
a("view-profile", B);
|
|
33272
33272
|
}
|
|
33273
|
-
function R(
|
|
33274
|
-
a("add-player",
|
|
33273
|
+
function R(B) {
|
|
33274
|
+
a("add-player", B);
|
|
33275
33275
|
}
|
|
33276
|
-
function N(
|
|
33277
|
-
a("delete-player",
|
|
33276
|
+
function N(B) {
|
|
33277
|
+
a("delete-player", B);
|
|
33278
33278
|
}
|
|
33279
33279
|
function z() {
|
|
33280
33280
|
a("list-created");
|
|
33281
33281
|
}
|
|
33282
33282
|
const O = S(!1), D = S(null);
|
|
33283
|
-
function x(
|
|
33284
|
-
D.value =
|
|
33283
|
+
function x(B) {
|
|
33284
|
+
D.value = B, O.value = !0;
|
|
33285
33285
|
}
|
|
33286
|
-
function F(
|
|
33287
|
-
O.value =
|
|
33286
|
+
function F(B) {
|
|
33287
|
+
O.value = B;
|
|
33288
33288
|
}
|
|
33289
33289
|
function H() {
|
|
33290
33290
|
u.value = !1, document.body.style.overflow = "auto", document.html.style.overflow = "auto";
|
|
@@ -33292,7 +33292,7 @@ const ic = /* @__PURE__ */ qa(El, [["render", Xj], ["__scopeId", "data-v-7ae64b4
|
|
|
33292
33292
|
return t({
|
|
33293
33293
|
setPlayers: w,
|
|
33294
33294
|
addPlayer: _
|
|
33295
|
-
}), (
|
|
33295
|
+
}), (B, oe) => (m(), v(Q, null, [
|
|
33296
33296
|
(m(), Se(rs, { to: "body" }, [
|
|
33297
33297
|
k(tt, null, {
|
|
33298
33298
|
default: ye(() => [
|
|
@@ -33456,7 +33456,7 @@ const Ni = /* @__PURE__ */ GU(JU), KU = { class: "graph-view" }, XU = {
|
|
|
33456
33456
|
i("playerAdded");
|
|
33457
33457
|
}
|
|
33458
33458
|
return (r, l) => (m(), v("div", KU, [
|
|
33459
|
-
k(
|
|
33459
|
+
k(M(qU), {
|
|
33460
33460
|
ref_key: "tableAndRadar",
|
|
33461
33461
|
ref: a,
|
|
33462
33462
|
"user-id": e.userId,
|
|
@@ -33649,7 +33649,7 @@ function sz(e, t, a, i, s, o) {
|
|
|
33649
33649
|
"display-mode": a.displayMode
|
|
33650
33650
|
}]),
|
|
33651
33651
|
onMouseenter: (u) => s.isDragging && o.handleDragSelect(o.getSectionIndex(r, l)),
|
|
33652
|
-
onMousedown:
|
|
33652
|
+
onMousedown: qe((u) => !a.displayMode && o.toggleSection(o.getSectionIndex(r, l)), ["prevent"])
|
|
33653
33653
|
}, null, 42, az)), 64))
|
|
33654
33654
|
])), 64))
|
|
33655
33655
|
], 32),
|
|
@@ -33852,7 +33852,7 @@ function pz(e, t, a, i, s, o) {
|
|
|
33852
33852
|
"display-mode": a.displayMode
|
|
33853
33853
|
}]),
|
|
33854
33854
|
onMouseenter: (u) => s.isDragging && o.handleDragSelect(r, l),
|
|
33855
|
-
onMousedown:
|
|
33855
|
+
onMousedown: qe((u) => !a.displayMode && o.toggleSection(r, l), ["prevent"])
|
|
33856
33856
|
}, null, 42, cz)), 64))
|
|
33857
33857
|
], 64))), 64))
|
|
33858
33858
|
], 32),
|
|
@@ -34194,7 +34194,7 @@ const vf = /* @__PURE__ */ Tl(hz, [["render", Nz], ["__scopeId", "data-v-834c012
|
|
|
34194
34194
|
]))
|
|
34195
34195
|
], 512));
|
|
34196
34196
|
}
|
|
34197
|
-
}, Zz = /* @__PURE__ */ ia(Gz, [["__scopeId", "data-v-
|
|
34197
|
+
}, Zz = /* @__PURE__ */ ia(Gz, [["__scopeId", "data-v-934f3c1b"]]), Yz = { class: "modal-overlay" }, Jz = {
|
|
34198
34198
|
key: 0,
|
|
34199
34199
|
class: "modal-content"
|
|
34200
34200
|
}, Kz = { class: "modal-select-container" }, Xz = { class: "modal-input-wrapper" }, Qz = ["disabled"], eH = {
|
|
@@ -34245,7 +34245,10 @@ const vf = /* @__PURE__ */ Tl(hz, [["render", Nz], ["__scopeId", "data-v-834c012
|
|
|
34245
34245
|
const H = await ze.create({ headers: { Authorization: `${i.token}` } }).get(
|
|
34246
34246
|
`https://a3tmmmjdaj.execute-api.us-east-2.amazonaws.com/prod/v2/users/${i.userId}/variables`
|
|
34247
34247
|
);
|
|
34248
|
-
d.value = H.data.data
|
|
34248
|
+
d.value = H.data.data.map((B) => ({
|
|
34249
|
+
...B,
|
|
34250
|
+
checked: B.checked || !1
|
|
34251
|
+
}));
|
|
34249
34252
|
} catch (F) {
|
|
34250
34253
|
f.value = ((x = (D = F.response) == null ? void 0 : D.data) == null ? void 0 : x.message) || "Error al obtener las variables", console.error("Error fetching variables:", F);
|
|
34251
34254
|
} finally {
|
|
@@ -34257,26 +34260,27 @@ const vf = /* @__PURE__ */ Tl(hz, [["render", Nz], ["__scopeId", "data-v-834c012
|
|
|
34257
34260
|
const D = o.value.toLowerCase().trim();
|
|
34258
34261
|
return D ? d.value.filter((x) => x.name.toLowerCase().includes(D)) : d.value;
|
|
34259
34262
|
});
|
|
34263
|
+
ae(
|
|
34264
|
+
d,
|
|
34265
|
+
(D) => {
|
|
34266
|
+
r.value = D.filter((x) => x.checked);
|
|
34267
|
+
},
|
|
34268
|
+
{ immediate: !0 }
|
|
34269
|
+
);
|
|
34260
34270
|
function b() {
|
|
34261
34271
|
l.value = !0;
|
|
34262
34272
|
}
|
|
34263
34273
|
function w() {
|
|
34264
|
-
l.value = !
|
|
34274
|
+
l.value = !l.value;
|
|
34265
34275
|
}
|
|
34266
34276
|
function _() {
|
|
34267
|
-
|
|
34268
|
-
l.value = !1, o.value = "";
|
|
34269
|
-
}, 200);
|
|
34277
|
+
l.value = !0;
|
|
34270
34278
|
}
|
|
34271
34279
|
function A() {
|
|
34272
|
-
o.value = ""
|
|
34280
|
+
o.value = "";
|
|
34273
34281
|
}
|
|
34274
34282
|
function V() {
|
|
34275
|
-
|
|
34276
|
-
const D = d.value.find((x) => x.name === o.value);
|
|
34277
|
-
D && !r.value.some((x) => x.custom_id === D.custom_id) && (r.value.push(D), o.value = "");
|
|
34278
|
-
}
|
|
34279
|
-
l.value = !0;
|
|
34283
|
+
o.value = "", l.value = !1;
|
|
34280
34284
|
}
|
|
34281
34285
|
async function R() {
|
|
34282
34286
|
var D, x;
|
|
@@ -34286,14 +34290,14 @@ const vf = /* @__PURE__ */ Tl(hz, [["render", Nz], ["__scopeId", "data-v-834c012
|
|
|
34286
34290
|
user_id: parseInt(i.userId),
|
|
34287
34291
|
name: s.value,
|
|
34288
34292
|
variables: r.value
|
|
34289
|
-
},
|
|
34293
|
+
}, B = await F.post(
|
|
34290
34294
|
`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${i.userId}/in-followed`,
|
|
34291
34295
|
H
|
|
34292
34296
|
);
|
|
34293
|
-
|
|
34297
|
+
B.data && (a("createList", {
|
|
34294
34298
|
nombre: s.value,
|
|
34295
34299
|
variables: r.value,
|
|
34296
|
-
id:
|
|
34300
|
+
id: B.data.data.id
|
|
34297
34301
|
}), a("listCreated"), s.value = "", r.value = [], o.value = "", l.value = !1, a("close"));
|
|
34298
34302
|
}
|
|
34299
34303
|
} catch (F) {
|
|
@@ -34321,7 +34325,7 @@ const vf = /* @__PURE__ */ Tl(hz, [["render", Nz], ["__scopeId", "data-v-834c012
|
|
|
34321
34325
|
class: "modal-close",
|
|
34322
34326
|
onClick: N
|
|
34323
34327
|
}, "×"),
|
|
34324
|
-
x[
|
|
34328
|
+
x[7] || (x[7] = n("div", { class: "modal-title" }, [
|
|
34325
34329
|
n("svg", {
|
|
34326
34330
|
width: "23",
|
|
34327
34331
|
height: "16",
|
|
@@ -34354,19 +34358,35 @@ const vf = /* @__PURE__ */ Tl(hz, [["render", Nz], ["__scopeId", "data-v-834c012
|
|
|
34354
34358
|
type: "text",
|
|
34355
34359
|
placeholder: "Selecciona las variables que quieres que se vean",
|
|
34356
34360
|
onFocus: b,
|
|
34357
|
-
onBlur:
|
|
34358
|
-
onInput:
|
|
34361
|
+
onBlur: A,
|
|
34362
|
+
onInput: _,
|
|
34359
34363
|
disabled: h.value
|
|
34360
34364
|
}, null, 40, Qz), [
|
|
34361
34365
|
[ii, o.value]
|
|
34362
34366
|
]),
|
|
34363
34367
|
h.value ? (m(), v("div", eH, x[4] || (x[4] = [
|
|
34364
34368
|
n("div", { class: "loading-spinner" }, null, -1)
|
|
34365
|
-
]))) : (m(), v("
|
|
34369
|
+
]))) : (m(), v("div", {
|
|
34366
34370
|
key: 1,
|
|
34367
|
-
class: "modal-
|
|
34368
|
-
|
|
34369
|
-
},
|
|
34371
|
+
class: se(["modal-select-arrow", { "arrow-up": l.value }]),
|
|
34372
|
+
onClick: w
|
|
34373
|
+
}, x[5] || (x[5] = [
|
|
34374
|
+
n("svg", {
|
|
34375
|
+
width: "12",
|
|
34376
|
+
height: "7",
|
|
34377
|
+
viewBox: "0 0 12 7",
|
|
34378
|
+
fill: "none",
|
|
34379
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
34380
|
+
}, [
|
|
34381
|
+
n("path", {
|
|
34382
|
+
d: "M1 6L6 1L11 6",
|
|
34383
|
+
stroke: "#8EA2AB",
|
|
34384
|
+
"stroke-width": "1.5",
|
|
34385
|
+
"stroke-linecap": "round",
|
|
34386
|
+
"stroke-linejoin": "round"
|
|
34387
|
+
})
|
|
34388
|
+
], -1)
|
|
34389
|
+
]), 2))
|
|
34370
34390
|
]),
|
|
34371
34391
|
l.value && !h.value && !f.value ? (m(), v("div", tH, [
|
|
34372
34392
|
c.value.length === 0 ? (m(), v("div", aH, " No se encontraron variables ")) : (m(), v("div", iH, [
|
|
@@ -34379,7 +34399,7 @@ const vf = /* @__PURE__ */ Tl(hz, [["render", Nz], ["__scopeId", "data-v-834c012
|
|
|
34379
34399
|
type: "checkbox",
|
|
34380
34400
|
value: F,
|
|
34381
34401
|
"onUpdate:modelValue": x[2] || (x[2] = (H) => r.value = H),
|
|
34382
|
-
onClick: x[3] || (x[3] =
|
|
34402
|
+
onClick: x[3] || (x[3] = qe(() => {
|
|
34383
34403
|
}, ["stop"]))
|
|
34384
34404
|
}, null, 8, sH), [
|
|
34385
34405
|
[Zi, r.value]
|
|
@@ -34391,17 +34411,17 @@ const vf = /* @__PURE__ */ Tl(hz, [["render", Nz], ["__scopeId", "data-v-834c012
|
|
|
34391
34411
|
n("div", nH, [
|
|
34392
34412
|
n("button", {
|
|
34393
34413
|
class: "modal-listo-btn",
|
|
34394
|
-
onMousedown:
|
|
34414
|
+
onMousedown: qe(V, ["prevent"])
|
|
34395
34415
|
}, "Listo", 32)
|
|
34396
34416
|
])
|
|
34397
34417
|
])) : E("", !0),
|
|
34398
34418
|
f.value ? (m(), v("div", lH, [
|
|
34399
|
-
x[
|
|
34419
|
+
x[6] || (x[6] = n("span", { class: "error-icon" }, "!", -1)),
|
|
34400
34420
|
De(" " + T(f.value), 1)
|
|
34401
34421
|
])) : E("", !0)
|
|
34402
34422
|
]),
|
|
34403
34423
|
g.value ? (m(), v("div", dH, " Ya existe una lista con este nombre, utiliza otro para poder continuar. ")) : E("", !0),
|
|
34404
|
-
x[
|
|
34424
|
+
x[8] || (x[8] = n("div", { class: "modal-divider" }, null, -1)),
|
|
34405
34425
|
n("div", uH, [
|
|
34406
34426
|
n("button", {
|
|
34407
34427
|
class: "modal-cancel",
|
|
@@ -34419,7 +34439,7 @@ const vf = /* @__PURE__ */ Tl(hz, [["render", Nz], ["__scopeId", "data-v-834c012
|
|
|
34419
34439
|
})
|
|
34420
34440
|
]));
|
|
34421
34441
|
}
|
|
34422
|
-
}, fH = /* @__PURE__ */ ia(pH, [["__scopeId", "data-v-
|
|
34442
|
+
}, fH = /* @__PURE__ */ ia(pH, [["__scopeId", "data-v-a48ee35c"]]), hH = { class: "player-card" }, mH = { class: "player-card__image" }, yH = {
|
|
34423
34443
|
key: 0,
|
|
34424
34444
|
class: "checkbox-container"
|
|
34425
34445
|
}, vH = ["checked"], gH = ["src"], bH = { class: "player-card__right-data" }, _H = { class: "player-card__age" }, wH = { class: "player-card__flag" }, SH = { class: "player-card__details" }, CH = { class: "player-card__name" }, xH = { class: "player-card__position" }, kH = {
|
|
@@ -34561,10 +34581,10 @@ const vf = /* @__PURE__ */ Tl(hz, [["render", Nz], ["__scopeId", "data-v-834c012
|
|
|
34561
34581
|
Je(async () => {
|
|
34562
34582
|
try {
|
|
34563
34583
|
s.value = a.stats.map((z) => {
|
|
34564
|
-
var H,
|
|
34565
|
-
const O = z[0], D = z[2], x = ((
|
|
34584
|
+
var H, B;
|
|
34585
|
+
const O = z[0], D = z[2], x = ((B = (H = a.max) == null ? void 0 : H.find(
|
|
34566
34586
|
(oe) => oe[0] === O || oe[0] === parseInt(O) || oe[0].toString() === O.toString()
|
|
34567
|
-
)) == null ? void 0 :
|
|
34587
|
+
)) == null ? void 0 : B[1]) || 0, F = x > 0 ? D / x * 100 : 0;
|
|
34568
34588
|
return {
|
|
34569
34589
|
name: z[1].replace(/\([^)]*\)/g, "").trim().toLowerCase().replace(/^\w/, (oe) => oe.toUpperCase()),
|
|
34570
34590
|
value: D,
|
|
@@ -34643,7 +34663,7 @@ const vf = /* @__PURE__ */ Tl(hz, [["render", Nz], ["__scopeId", "data-v-834c012
|
|
|
34643
34663
|
class: "player-checkbox",
|
|
34644
34664
|
checked: e.isSelected,
|
|
34645
34665
|
onChange: O[0] || (O[0] = (D) => z.$emit("toggleSelection")),
|
|
34646
|
-
onClick: O[1] || (O[1] =
|
|
34666
|
+
onClick: O[1] || (O[1] = qe(() => {
|
|
34647
34667
|
}, ["stop"]))
|
|
34648
34668
|
}, null, 40, vH)
|
|
34649
34669
|
])) : E("", !0),
|
|
@@ -34672,7 +34692,7 @@ const vf = /* @__PURE__ */ Tl(hz, [["render", Nz], ["__scopeId", "data-v-834c012
|
|
|
34672
34692
|
e.deleteActive ? E("", !0) : (m(), v("div", kH, [
|
|
34673
34693
|
n("button", {
|
|
34674
34694
|
class: "action-button add-button",
|
|
34675
|
-
onClick:
|
|
34695
|
+
onClick: qe(c, ["stop"])
|
|
34676
34696
|
}, O[5] || (O[5] = [
|
|
34677
34697
|
Rt(' Agregar a Lista <span class="button-icon" data-v-f8b80628><svg width="19" height="18" viewBox="0 0 19 18" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-f8b80628><path d="M12.8345 16.4999V14.8333C12.8345 13.9492 12.4833 13.1014 11.8582 12.4763C11.2331 11.8512 10.3852 11.5 9.5012 11.5H4.50126C3.61722 11.5 2.76938 11.8512 2.14427 12.4763C1.51915 13.1014 1.16797 13.9492 1.16797 14.8333V16.4999" stroke="white" stroke-opacity="0.5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-v-f8b80628></path><path d="M7.00126 8.16658C8.84219 8.16658 10.3346 6.67422 10.3346 4.83329C10.3346 2.99237 8.84219 1.5 7.00126 1.5C5.16033 1.5 3.66797 2.99237 3.66797 4.83329C3.66797 6.67422 5.16033 8.16658 7.00126 8.16658Z" stroke="white" stroke-opacity="0.5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-v-f8b80628></path><path d="M15.332 5.66602V10.666M17.832 8.16598H12.832" stroke="white" stroke-opacity="0.5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-v-f8b80628></path></svg></span>', 2)
|
|
34678
34698
|
])),
|
|
@@ -34698,7 +34718,7 @@ const vf = /* @__PURE__ */ Tl(hz, [["render", Nz], ["__scopeId", "data-v-834c012
|
|
|
34698
34718
|
e.deleteActive ? E("", !0) : (m(), v("button", {
|
|
34699
34719
|
key: 1,
|
|
34700
34720
|
class: "action-button profile-button",
|
|
34701
|
-
onClick: O[2] || (O[2] =
|
|
34721
|
+
onClick: O[2] || (O[2] = qe((D) => z.$emit("showProfile", {
|
|
34702
34722
|
player_id: a.player_id,
|
|
34703
34723
|
season_id: e.player.season_id,
|
|
34704
34724
|
team_id: e.player.team_id,
|
|
@@ -34753,7 +34773,7 @@ const vf = /* @__PURE__ */ Tl(hz, [["render", Nz], ["__scopeId", "data-v-834c012
|
|
|
34753
34773
|
]))), 128))
|
|
34754
34774
|
], 2)
|
|
34755
34775
|
]),
|
|
34756
|
-
k(
|
|
34776
|
+
k(M(vf), {
|
|
34757
34777
|
isVisible: o.value,
|
|
34758
34778
|
"onUpdate:isVisible": O[3] || (O[3] = (D) => o.value = D),
|
|
34759
34779
|
onClose: y,
|
|
@@ -34893,7 +34913,7 @@ const vf = /* @__PURE__ */ Tl(hz, [["render", Nz], ["__scopeId", "data-v-834c012
|
|
|
34893
34913
|
n("div", { class: "loading-spinner" }, null, -1),
|
|
34894
34914
|
n("span", null, "Cargando jugadores...", -1)
|
|
34895
34915
|
]))),
|
|
34896
|
-
r.value ? (m(), Se(
|
|
34916
|
+
r.value ? (m(), Se(M(vf), {
|
|
34897
34917
|
key: 2,
|
|
34898
34918
|
isVisible: r.value,
|
|
34899
34919
|
"onUpdate:isVisible": b[0] || (b[0] = (w) => r.value = w),
|
|
@@ -39060,14 +39080,14 @@ const {
|
|
|
39060
39080
|
user_id: parseInt(i.userId),
|
|
39061
39081
|
name: s.value,
|
|
39062
39082
|
variables: r.value
|
|
39063
|
-
},
|
|
39083
|
+
}, B = await F.post(
|
|
39064
39084
|
`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${i.userId}/in-followed`,
|
|
39065
39085
|
H
|
|
39066
39086
|
);
|
|
39067
|
-
|
|
39087
|
+
B.data && (a("createList", {
|
|
39068
39088
|
nombre: s.value,
|
|
39069
39089
|
variables: r.value,
|
|
39070
|
-
id:
|
|
39090
|
+
id: B.data.data.id
|
|
39071
39091
|
}), a("listCreated"), s.value = "", r.value = [], o.value = "", l.value = !1, a("close"));
|
|
39072
39092
|
}
|
|
39073
39093
|
} catch (F) {
|
|
@@ -39139,7 +39159,7 @@ const {
|
|
|
39139
39159
|
]))) : (m(), v("button", {
|
|
39140
39160
|
key: 1,
|
|
39141
39161
|
class: se(["modal-dropdown-arrow", { "arrow-up": l.value }]),
|
|
39142
|
-
onMousedown:
|
|
39162
|
+
onMousedown: qe(y, ["prevent"])
|
|
39143
39163
|
}, x[5] || (x[5] = [
|
|
39144
39164
|
n("svg", {
|
|
39145
39165
|
width: "12",
|
|
@@ -39169,7 +39189,7 @@ const {
|
|
|
39169
39189
|
type: "checkbox",
|
|
39170
39190
|
value: F,
|
|
39171
39191
|
"onUpdate:modelValue": x[2] || (x[2] = (H) => r.value = H),
|
|
39172
|
-
onClick: x[3] || (x[3] =
|
|
39192
|
+
onClick: x[3] || (x[3] = qe(() => {
|
|
39173
39193
|
}, ["stop"]))
|
|
39174
39194
|
}, null, 8, GZ), [
|
|
39175
39195
|
[Zi, r.value]
|
|
@@ -39181,7 +39201,7 @@ const {
|
|
|
39181
39201
|
n("div", YZ, [
|
|
39182
39202
|
n("button", {
|
|
39183
39203
|
class: "modal-listo-btn",
|
|
39184
|
-
onMousedown:
|
|
39204
|
+
onMousedown: qe(V, ["prevent"])
|
|
39185
39205
|
}, "Listo", 32)
|
|
39186
39206
|
])
|
|
39187
39207
|
])) : E("", !0),
|
|
@@ -39634,7 +39654,7 @@ const {
|
|
|
39634
39654
|
} else (ie.season_id || ie.seasonId) && (Be.seasonId = ie.season_id || ie.seasonId);
|
|
39635
39655
|
ie.stat ? ie.stat.category_id && ie.stat.category_id.length ? Be.categoryIds = ie.stat.category_id : ie.stat.custom_category_id && (Be.customCategoryIds = [ie.stat.custom_category_id]) : Be.categoryIds = ce(ie.player_position), t("open-media", Be);
|
|
39636
39656
|
}
|
|
39637
|
-
function
|
|
39657
|
+
function B() {
|
|
39638
39658
|
i = new ResizeObserver((ie) => {
|
|
39639
39659
|
for (const ve of ie)
|
|
39640
39660
|
d.value = ve.contentRect.width;
|
|
@@ -39738,7 +39758,7 @@ const {
|
|
|
39738
39758
|
}
|
|
39739
39759
|
let pe = !1, ge, me, ne = function(ie) {
|
|
39740
39760
|
pe = !0, ge = ie.pageX - y.value.offsetLeft, me = y.value.scrollLeft;
|
|
39741
|
-
},
|
|
39761
|
+
}, P = function(ie) {
|
|
39742
39762
|
pe = !0, ge = ie.pageX - u.value.offsetLeft, me = u.value.scrollLeft;
|
|
39743
39763
|
}, de = function() {
|
|
39744
39764
|
pe = !1;
|
|
@@ -39746,7 +39766,7 @@ const {
|
|
|
39746
39766
|
function C(ie) {
|
|
39747
39767
|
y.value && (y.value.scrollLeft = ie.target.scrollLeft);
|
|
39748
39768
|
}
|
|
39749
|
-
function
|
|
39769
|
+
function L(ie) {
|
|
39750
39770
|
u.value && (u.value.scrollLeft = ie.target.scrollLeft);
|
|
39751
39771
|
}
|
|
39752
39772
|
function he() {
|
|
@@ -39755,12 +39775,12 @@ const {
|
|
|
39755
39775
|
return;
|
|
39756
39776
|
const ve = ie.pageX - y.value.offsetLeft - ge, le = me - ve;
|
|
39757
39777
|
y.value.scrollLeft = le, u.value && (u.value.scrollLeft = le);
|
|
39758
|
-
}), y.value.addEventListener("mousedown", ne, !1), y.value.addEventListener("mouseup", de, !1), y.value.addEventListener("mouseleave", de, !1), y.value.addEventListener("scroll",
|
|
39778
|
+
}), y.value.addEventListener("mousedown", ne, !1), y.value.addEventListener("mouseup", de, !1), y.value.addEventListener("mouseleave", de, !1), y.value.addEventListener("scroll", L)), u.value && (u.value.addEventListener("mousemove", (ie) => {
|
|
39759
39779
|
if (!pe)
|
|
39760
39780
|
return;
|
|
39761
39781
|
const ve = ie.pageX - u.value.offsetLeft - ge, le = me - ve;
|
|
39762
39782
|
u.value.scrollLeft = le, y.value && (y.value.scrollLeft = le);
|
|
39763
|
-
}), u.value.addEventListener("mousedown",
|
|
39783
|
+
}), u.value.addEventListener("mousedown", P, !1), u.value.addEventListener("mouseup", de, !1), u.value.addEventListener("mouseleave", de, !1), u.value.addEventListener("scroll", C));
|
|
39764
39784
|
}
|
|
39765
39785
|
function jt() {
|
|
39766
39786
|
a.isGeneral ? A.value = "922px" : ns(() => {
|
|
@@ -39827,11 +39847,11 @@ const {
|
|
|
39827
39847
|
t("list-created");
|
|
39828
39848
|
}
|
|
39829
39849
|
return Je(() => {
|
|
39830
|
-
|
|
39850
|
+
B(), he();
|
|
39831
39851
|
}), gh(() => {
|
|
39832
|
-
i && i.disconnect(), s && s.disconnect(), y.value && (y.value.removeEventListener("mousemove", ne, !1), y.value.removeEventListener("mouseup", de, !1), y.value.removeEventListener("mouseleave", de, !1), y.value.removeEventListener("scroll",
|
|
39852
|
+
i && i.disconnect(), s && s.disconnect(), y.value && (y.value.removeEventListener("mousemove", ne, !1), y.value.removeEventListener("mouseup", de, !1), y.value.removeEventListener("mouseleave", de, !1), y.value.removeEventListener("scroll", L)), u.value && (u.value.removeEventListener("mousemove", P, !1), u.value.removeEventListener("mouseup", de, !1), u.value.removeEventListener("mouseleave", de, !1), u.value.removeEventListener("scroll", C));
|
|
39833
39853
|
}), (ie, ve) => (m(), v(Q, null, [
|
|
39834
|
-
V.value ? (m(), Se(
|
|
39854
|
+
V.value ? (m(), Se(M(tY), {
|
|
39835
39855
|
key: 0,
|
|
39836
39856
|
token: e.token,
|
|
39837
39857
|
"user-id": e.userId,
|
|
@@ -39945,7 +39965,7 @@ const {
|
|
|
39945
39965
|
]),
|
|
39946
39966
|
_: 2
|
|
39947
39967
|
}, 1024),
|
|
39948
|
-
e.isEditMode ? (m(), Se(
|
|
39968
|
+
e.isEditMode ? (m(), Se(M(JH), {
|
|
39949
39969
|
key: 0,
|
|
39950
39970
|
fontFamily: "Poppins-Regular",
|
|
39951
39971
|
labelFontSize: "14px",
|
|
@@ -39964,7 +39984,7 @@ const {
|
|
|
39964
39984
|
onClick: (Be) => $(le)
|
|
39965
39985
|
}, UY, 8, VY))
|
|
39966
39986
|
])) : (m(), v("div", zY, [
|
|
39967
|
-
le.showTooltip ? (m(), Se(
|
|
39987
|
+
le.showTooltip ? (m(), Se(M(sG), {
|
|
39968
39988
|
key: 0,
|
|
39969
39989
|
token: e.token,
|
|
39970
39990
|
"user-id": e.userId,
|
|
@@ -40125,7 +40145,7 @@ const {
|
|
|
40125
40145
|
n("div", {
|
|
40126
40146
|
class: se(["row data-info", { odd: le.isOdd }])
|
|
40127
40147
|
}, [
|
|
40128
|
-
k(
|
|
40148
|
+
k(M(nW), {
|
|
40129
40149
|
icon: "https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png",
|
|
40130
40150
|
"icon-size": "19px",
|
|
40131
40151
|
"icon-position": "left",
|
|
@@ -40450,7 +40470,7 @@ const {
|
|
|
40450
40470
|
a("open-media", f);
|
|
40451
40471
|
}
|
|
40452
40472
|
const d = (f) => {
|
|
40453
|
-
var g, p, y;
|
|
40473
|
+
var g, p, y, c;
|
|
40454
40474
|
return {
|
|
40455
40475
|
objeto_player: f,
|
|
40456
40476
|
player_photo: f.photo,
|
|
@@ -40458,7 +40478,7 @@ const {
|
|
|
40458
40478
|
player_id: f.player_id,
|
|
40459
40479
|
player_age: r(f.dob),
|
|
40460
40480
|
team_name: f.team_name || ((g = i.playerAddtionalData[f.player_id]) == null ? void 0 : g.team_name) || "-",
|
|
40461
|
-
team_id: f.team_id,
|
|
40481
|
+
team_id: ((p = i.playerAddtionalData[f.player_id]) == null ? void 0 : p.team_id) || 0,
|
|
40462
40482
|
team_logo: "https://golstatsimages.blob.core.windows.net/teams-80/" + f.team_id + ".png",
|
|
40463
40483
|
position_name: Dc.get(f.position_id) || "",
|
|
40464
40484
|
player_games: f.games_played || 0,
|
|
@@ -40466,23 +40486,23 @@ const {
|
|
|
40466
40486
|
player_position: f.position_id,
|
|
40467
40487
|
player_country: PJ[`${f.nationality_id}`] || f.nationality,
|
|
40468
40488
|
player_country_flag: "https://golstatsimages.blob.core.windows.net/flags/" + f.nationality_id + ".jpg",
|
|
40469
|
-
league_name: (
|
|
40489
|
+
league_name: (y = i.playerAddtionalData[f.player_id]) == null ? void 0 : y.tournament_name,
|
|
40470
40490
|
seasons: [],
|
|
40471
|
-
season_id: ((
|
|
40472
|
-
stats: i.typeProductivity === 2 ? f.stats.map((
|
|
40473
|
-
category_id:
|
|
40474
|
-
custom_category_id:
|
|
40475
|
-
name:
|
|
40476
|
-
parameters:
|
|
40477
|
-
total:
|
|
40478
|
-
seasons:
|
|
40479
|
-
})) : f.internal_stats.map((
|
|
40480
|
-
category_id:
|
|
40481
|
-
custom_category_id:
|
|
40482
|
-
name:
|
|
40483
|
-
parameters:
|
|
40484
|
-
total:
|
|
40485
|
-
seasons:
|
|
40491
|
+
season_id: ((c = i.playerAddtionalData[f.player_id]) == null ? void 0 : c.season_id) || 0,
|
|
40492
|
+
stats: i.typeProductivity === 2 ? f.stats.map((b) => ({
|
|
40493
|
+
category_id: b[4],
|
|
40494
|
+
custom_category_id: b[0],
|
|
40495
|
+
name: b[1].replace(/\([^)]*\)/g, "").trim().toLowerCase().replace(/^\w/, (w) => w.toUpperCase()),
|
|
40496
|
+
parameters: b.parameters,
|
|
40497
|
+
total: b[2],
|
|
40498
|
+
seasons: b[3]
|
|
40499
|
+
})) : f.internal_stats.map((b) => ({
|
|
40500
|
+
category_id: b[4],
|
|
40501
|
+
custom_category_id: b[0],
|
|
40502
|
+
name: b[1].replace(/\([^)]*\)/g, "").trim().toLowerCase().replace(/^\w/, (w) => w.toUpperCase()),
|
|
40503
|
+
parameters: b.parameters,
|
|
40504
|
+
total: b[2],
|
|
40505
|
+
seasons: b[3]
|
|
40486
40506
|
}))
|
|
40487
40507
|
};
|
|
40488
40508
|
}, h = I(() => i.playersScouting ? [...Object.values(i.playersScouting)].map((p) => {
|
|
@@ -40502,7 +40522,7 @@ const {
|
|
|
40502
40522
|
},
|
|
40503
40523
|
{ deep: !0, immediate: !0 }
|
|
40504
40524
|
), (f, g) => (m(), v("div", LJ, [
|
|
40505
|
-
(m(), Se(
|
|
40525
|
+
(m(), Se(M(MJ), {
|
|
40506
40526
|
key: JSON.stringify(e.playersScouting),
|
|
40507
40527
|
players: h.value,
|
|
40508
40528
|
"is-general": !1,
|
|
@@ -40519,7 +40539,7 @@ const {
|
|
|
40519
40539
|
}, null, 8, ["players", "lists", "token", "user-id"]))
|
|
40520
40540
|
]));
|
|
40521
40541
|
}
|
|
40522
|
-
}, VJ = /* @__PURE__ */ ia(IJ, [["__scopeId", "data-v-
|
|
40542
|
+
}, VJ = /* @__PURE__ */ ia(IJ, [["__scopeId", "data-v-03fc321d"]]), NJ = { class: "title" }, DJ = ["disabled"], jJ = {
|
|
40523
40543
|
key: 0,
|
|
40524
40544
|
class: "loading-spinner"
|
|
40525
40545
|
}, UJ = { key: 1 }, zJ = { key: 2 }, HJ = { class: "settings-row" }, WJ = { class: "switch-track" }, qJ = { class: "selector-container" }, GJ = {
|
|
@@ -40638,7 +40658,7 @@ const {
|
|
|
40638
40658
|
function H(be) {
|
|
40639
40659
|
F("open-media", be);
|
|
40640
40660
|
}
|
|
40641
|
-
function
|
|
40661
|
+
function B() {
|
|
40642
40662
|
x.value = !1;
|
|
40643
40663
|
}
|
|
40644
40664
|
function oe() {
|
|
@@ -40748,10 +40768,10 @@ const {
|
|
|
40748
40768
|
pe.value = !1;
|
|
40749
40769
|
}
|
|
40750
40770
|
}
|
|
40751
|
-
function
|
|
40771
|
+
function P() {
|
|
40752
40772
|
y.value = !y.value, N.value = !0;
|
|
40753
40773
|
}
|
|
40754
|
-
const de = S(null), C = S(!1),
|
|
40774
|
+
const de = S(null), C = S(!1), L = S(
|
|
40755
40775
|
"Modificar la importancia del tipo de jugada en forma jerárquica, para encontrar a los futbolistas más productivos de acuerdo a las mismas."
|
|
40756
40776
|
), he = () => {
|
|
40757
40777
|
de.value && (C.value = de.value.offsetWidth < 1200);
|
|
@@ -40811,7 +40831,7 @@ const {
|
|
|
40811
40831
|
k(Jh, {
|
|
40812
40832
|
token: e.token,
|
|
40813
40833
|
"is-visible": x.value,
|
|
40814
|
-
onClose:
|
|
40834
|
+
onClose: B
|
|
40815
40835
|
}, null, 8, ["token", "is-visible"]),
|
|
40816
40836
|
k(Ym, {
|
|
40817
40837
|
ref_key: "modalAddPlayer",
|
|
@@ -40844,15 +40864,15 @@ const {
|
|
|
40844
40864
|
n("div", {
|
|
40845
40865
|
class: se(["selector-container", { "mobile-layout": C.value }])
|
|
40846
40866
|
}, [
|
|
40847
|
-
k(
|
|
40867
|
+
k(M(IS), { onChangePosition: Ve })
|
|
40848
40868
|
], 2),
|
|
40849
40869
|
n("div", {
|
|
40850
40870
|
class: se(["selector-container", { "mobile-layout": C.value }])
|
|
40851
40871
|
}, [
|
|
40852
|
-
k(
|
|
40872
|
+
k(M(US), {
|
|
40853
40873
|
"dropdown-props": p,
|
|
40854
|
-
years: (Ge =
|
|
40855
|
-
"selected-year":
|
|
40874
|
+
years: (Ge = M(Aa)) == null ? void 0 : Ge.availableYears,
|
|
40875
|
+
"selected-year": M(Aa).selectedYear || "Sin límite",
|
|
40856
40876
|
"selected-item-prefix": "A partir del",
|
|
40857
40877
|
onChangeYear: W
|
|
40858
40878
|
}, null, 8, ["years", "selected-year"])
|
|
@@ -40860,9 +40880,9 @@ const {
|
|
|
40860
40880
|
n("div", {
|
|
40861
40881
|
class: se(["selector-container", { "mobile-layout": C.value }])
|
|
40862
40882
|
}, [
|
|
40863
|
-
k(
|
|
40883
|
+
k(M(_r), Me({
|
|
40864
40884
|
"button-filter-props": f.value,
|
|
40865
|
-
"filter-type":
|
|
40885
|
+
"filter-type": M(j).UNIVERSE,
|
|
40866
40886
|
"show-badge-on-filter-full": !1,
|
|
40867
40887
|
filters: b.value
|
|
40868
40888
|
}, w, {
|
|
@@ -40874,13 +40894,13 @@ const {
|
|
|
40874
40894
|
n("div", {
|
|
40875
40895
|
class: se(["selector-container", { "mobile-layout": C.value }])
|
|
40876
40896
|
}, [
|
|
40877
|
-
At.value && At.value.length > 0 ? (m(), Se(
|
|
40897
|
+
At.value && At.value.length > 0 ? (m(), Se(M(_r), {
|
|
40878
40898
|
key: 0,
|
|
40879
40899
|
style: { "margin-left": "-4px" },
|
|
40880
40900
|
width: "99.7%",
|
|
40881
40901
|
"button-filter-props": h.value,
|
|
40882
40902
|
"is-one-tournament-only": !1,
|
|
40883
|
-
"filter-type":
|
|
40903
|
+
"filter-type": M(j).TOURNAMENTS,
|
|
40884
40904
|
"show-badge-on-filter-full": !0,
|
|
40885
40905
|
filters: At.value,
|
|
40886
40906
|
"onUpdate:filters": te
|
|
@@ -40906,7 +40926,7 @@ const {
|
|
|
40906
40926
|
}, "Metodología profesor Lillini", 2),
|
|
40907
40927
|
n("div", {
|
|
40908
40928
|
class: "toggle-container",
|
|
40909
|
-
onClick:
|
|
40929
|
+
onClick: P
|
|
40910
40930
|
}, [
|
|
40911
40931
|
n("div", WJ, [
|
|
40912
40932
|
n("div", {
|
|
@@ -40919,7 +40939,7 @@ const {
|
|
|
40919
40939
|
}, "Variables Dinámicas", 2),
|
|
40920
40940
|
n("div", qJ, [
|
|
40921
40941
|
y.value ? (m(), v(Q, { key: 0 }, [
|
|
40922
|
-
(m(), Se(
|
|
40942
|
+
(m(), Se(M(_r), {
|
|
40923
40943
|
key: 0,
|
|
40924
40944
|
"button-filter-props": {
|
|
40925
40945
|
backgroundColor: "#2e3b46",
|
|
@@ -40936,14 +40956,14 @@ const {
|
|
|
40936
40956
|
},
|
|
40937
40957
|
"show-badge-on-filter-full": !1,
|
|
40938
40958
|
filters: g.value,
|
|
40939
|
-
"filter-type":
|
|
40959
|
+
"filter-type": M(j).PRODUCTIVITY,
|
|
40940
40960
|
"is-for-template-form": !1,
|
|
40941
40961
|
"productivity-max-categories": 5,
|
|
40942
40962
|
"productivity-min-categories": 0,
|
|
40943
40963
|
width: "99.7%",
|
|
40944
40964
|
"template-props": { width: "650px", maxWidth: "650px" },
|
|
40945
40965
|
"are-productivity-buttons-visible": !1,
|
|
40946
|
-
"productivity-text":
|
|
40966
|
+
"productivity-text": L.value,
|
|
40947
40967
|
"onUpdate:filters": $
|
|
40948
40968
|
}, null, 8, ["filters", "filter-type", "productivity-text"]))
|
|
40949
40969
|
], 64)) : (m(), v("div", GJ, [
|