@golstats/gsc-filters 1.0.90 → 1.0.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{FilterConditions-48e537fd.js → FilterConditions-5a39ac12.js} +1 -1
- package/dist/{FilterField-9815030b.js → FilterField-2ed32f3b.js} +1 -1
- package/dist/{FilterSubcategories-b9d3a147.js → FilterSubcategories-b3171d1a.js} +1 -1
- package/dist/gsc-filters.js +1 -1
- package/dist/gsc-filters.umd.cjs +5 -5
- package/dist/{index-ed034e8a.js → index-f2964ad8.js} +358 -358
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -373,40 +373,40 @@ const it = (e) => (me("data-v-cde7de0b"), e = e(), he(), e), ia = {
|
|
|
373
373
|
"--gap-defensive-possession": t.isForTemplateForm ? "32px" : "0",
|
|
374
374
|
"--width-block": t.isForTemplateForm ? "unset" : "100%"
|
|
375
375
|
})), c = M(() => {
|
|
376
|
-
var
|
|
377
|
-
return (
|
|
376
|
+
var b;
|
|
377
|
+
return (b = t.productivityCategories) == null ? void 0 : b.offensive.categories.reduce((E, k) => (k.isSelected && E++, E), 0);
|
|
378
378
|
}), m = M(() => {
|
|
379
|
-
var
|
|
380
|
-
return (
|
|
379
|
+
var b;
|
|
380
|
+
return (b = t.productivityCategories) == null ? void 0 : b.defensive.categories.reduce((E, k) => (k.isSelected && E++, E), 0);
|
|
381
381
|
}), u = M(() => {
|
|
382
|
-
var
|
|
383
|
-
return (
|
|
384
|
-
}),
|
|
382
|
+
var b;
|
|
383
|
+
return (b = t.productivityCategories) == null ? void 0 : b.possession.categories.reduce((E, k) => (k.isSelected && E++, E), 0);
|
|
384
|
+
}), g = M(() => t.isFromTemplates || t.isForTemplateForm);
|
|
385
385
|
L(
|
|
386
386
|
() => t.productivityCategories,
|
|
387
|
-
(
|
|
388
|
-
|
|
387
|
+
(b) => {
|
|
388
|
+
b.offensesConditions && (l.value.areYellowCardsSelected = b.offensesConditions.areYellowCardsSelected, l.value.areRedCardsSelected = b.offensesConditions.areRedCardsSelected, l.value.areFoulsCommittedSelected = b.offensesConditions.areFoulsCommittedSelected);
|
|
389
389
|
},
|
|
390
390
|
{ deep: !0, immediate: !0 }
|
|
391
391
|
), L(
|
|
392
392
|
l,
|
|
393
|
-
(
|
|
394
|
-
s("update:offensesConditions",
|
|
393
|
+
(b) => {
|
|
394
|
+
s("update:offensesConditions", b);
|
|
395
395
|
},
|
|
396
396
|
{ deep: !0, immediate: !0 }
|
|
397
397
|
);
|
|
398
|
-
function y(
|
|
399
|
-
E.isSelected =
|
|
398
|
+
function y(b, E) {
|
|
399
|
+
E.isSelected = b, setTimeout(() => {
|
|
400
400
|
E.priority = t.numberOfCategoriesSelected;
|
|
401
401
|
}, 10);
|
|
402
402
|
}
|
|
403
|
-
function _(
|
|
404
|
-
s("click-parameters",
|
|
403
|
+
function _(b) {
|
|
404
|
+
s("click-parameters", b);
|
|
405
405
|
}
|
|
406
|
-
function v(
|
|
407
|
-
|
|
406
|
+
function v(b) {
|
|
407
|
+
b === "offensive" ? i.value = !i.value : b === "defensive" ? n.value = !n.value : b === "possession" && (a.value = !a.value);
|
|
408
408
|
}
|
|
409
|
-
return (
|
|
409
|
+
return (b, E) => (p(), f("div", {
|
|
410
410
|
class: ue(["productivity", { "is-array": r.value }])
|
|
411
411
|
}, [
|
|
412
412
|
o("div", {
|
|
@@ -423,7 +423,7 @@ const it = (e) => (me("data-v-cde7de0b"), e = e(), he(), e), ia = {
|
|
|
423
423
|
"model-value": k.isSelected,
|
|
424
424
|
"avoid-interaction": e.areMinCategoriesReached && k.isSelected,
|
|
425
425
|
"avoid-to-check": e.areMaxCategoriesReached,
|
|
426
|
-
"box-value":
|
|
426
|
+
"box-value": g.value ? null : k.priority || 0,
|
|
427
427
|
"onUpdate:modelValue": (H) => y(H, k)
|
|
428
428
|
}, null, 8, ["label", "fontFamily", "model-value", "avoid-interaction", "avoid-to-check", "box-value", "onUpdate:modelValue"])
|
|
429
429
|
]))), 128)) : (p(), f(z, { key: 1 }, [
|
|
@@ -453,7 +453,7 @@ const it = (e) => (me("data-v-cde7de0b"), e = e(), he(), e), ia = {
|
|
|
453
453
|
"model-value": k.isSelected,
|
|
454
454
|
"avoid-to-check": e.areMaxCategoriesReached,
|
|
455
455
|
"avoid-interaction": e.areMinCategoriesReached && k.isSelected,
|
|
456
|
-
"box-value":
|
|
456
|
+
"box-value": g.value ? null : k.priority || 0,
|
|
457
457
|
"onUpdate:modelValue": (H) => y(H, k)
|
|
458
458
|
}, null, 8, ["label", "fontFamily", "model-value", "avoid-to-check", "avoid-interaction", "box-value", "onUpdate:modelValue"])
|
|
459
459
|
]))), 128))
|
|
@@ -488,7 +488,7 @@ const it = (e) => (me("data-v-cde7de0b"), e = e(), he(), e), ia = {
|
|
|
488
488
|
"model-value": k.isSelected,
|
|
489
489
|
"avoid-to-check": e.areMaxCategoriesReached,
|
|
490
490
|
"avoid-interaction": e.areMinCategoriesReached && k.isSelected,
|
|
491
|
-
"box-value":
|
|
491
|
+
"box-value": g.value ? null : k.priority || 0,
|
|
492
492
|
"onUpdate:modelValue": (H) => y(H, k)
|
|
493
493
|
}, null, 8, ["label", "fontFamily", "model-value", "avoid-to-check", "avoid-interaction", "box-value", "onUpdate:modelValue"])
|
|
494
494
|
]))), 128))
|
|
@@ -522,7 +522,7 @@ const it = (e) => (me("data-v-cde7de0b"), e = e(), he(), e), ia = {
|
|
|
522
522
|
"model-value": k.isSelected,
|
|
523
523
|
"avoid-to-check": e.areMaxCategoriesReached,
|
|
524
524
|
"avoid-interaction": e.areMinCategoriesReached && k.isSelected,
|
|
525
|
-
"box-value":
|
|
525
|
+
"box-value": g.value ? null : k.priority || 0,
|
|
526
526
|
"onUpdate:modelValue": (H) => y(H, k)
|
|
527
527
|
}, null, 8, ["label", "fontFamily", "model-value", "avoid-to-check", "avoid-interaction", "box-value", "onUpdate:modelValue"]),
|
|
528
528
|
k.parameters && e.areProductivityButtonsVisible ? (p(), f("div", {
|
|
@@ -539,7 +539,7 @@ const it = (e) => (me("data-v-cde7de0b"), e = e(), he(), e), ia = {
|
|
|
539
539
|
])) : P("", !0)
|
|
540
540
|
], 64))
|
|
541
541
|
], 4),
|
|
542
|
-
!
|
|
542
|
+
!g.value && e.productivityCategories.offensesConditions && e.areOffensesConditionsVisible ? (p(), f("div", Sa, [
|
|
543
543
|
o("div", Ca, [
|
|
544
544
|
xa,
|
|
545
545
|
o("div", wa, [
|
|
@@ -720,7 +720,7 @@ const De = (e) => (me("data-v-feb56031"), e = e(), he(), e), Ma = { class: "deta
|
|
|
720
720
|
emits: ["change-statistic-type"],
|
|
721
721
|
setup(e, { emit: s }) {
|
|
722
722
|
const t = e;
|
|
723
|
-
we((
|
|
723
|
+
we((g) => ({
|
|
724
724
|
"91d1a498": e.buttonsBackgroundColor,
|
|
725
725
|
"562e8f56": e.buttonsTextColor,
|
|
726
726
|
63400359: e.buttonsBorderWidth,
|
|
@@ -733,20 +733,20 @@ const De = (e) => (me("data-v-feb56031"), e = e(), he(), e), Ma = { class: "deta
|
|
|
733
733
|
const i = T("");
|
|
734
734
|
L(
|
|
735
735
|
() => t.statisticType,
|
|
736
|
-
(
|
|
737
|
-
i.value =
|
|
736
|
+
(g) => {
|
|
737
|
+
i.value = g;
|
|
738
738
|
},
|
|
739
739
|
{
|
|
740
740
|
immediate: !0
|
|
741
741
|
}
|
|
742
742
|
), L(
|
|
743
743
|
() => i.value,
|
|
744
|
-
(
|
|
745
|
-
t.statisticType =
|
|
744
|
+
(g) => {
|
|
745
|
+
t.statisticType = g, s("change-statistic-type", g);
|
|
746
746
|
}
|
|
747
747
|
);
|
|
748
|
-
const n = M(() => t.playingAs.every((
|
|
749
|
-
(
|
|
748
|
+
const n = M(() => t.playingAs.every((g) => g.isSelected)), a = M(() => t.gameSections.every((g) => g.isSelected)), l = M(() => t.gameSections.reduce(
|
|
749
|
+
(g, y) => (y.value <= 3 ? g.firstHalf.push(y) : g.secondHalf.push(y), g),
|
|
750
750
|
{
|
|
751
751
|
firstHalf: [],
|
|
752
752
|
secondHalf: []
|
|
@@ -755,27 +755,27 @@ const De = (e) => (me("data-v-feb56031"), e = e(), he(), e), Ma = { class: "deta
|
|
|
755
755
|
"--border-radius-first-button": `${t.buttonsBorderRadius} 0 0 ${t.buttonsBorderRadius}`,
|
|
756
756
|
"--border-radius-last-button": `0 ${t.buttonsBorderRadius} ${t.buttonsBorderRadius} 0`
|
|
757
757
|
}));
|
|
758
|
-
function d(
|
|
759
|
-
|
|
758
|
+
function d(g) {
|
|
759
|
+
g ? t.playingAs.forEach((y) => {
|
|
760
760
|
y.isSelected = !0;
|
|
761
761
|
}) : t.playingAs.forEach((y, _) => {
|
|
762
762
|
y.isSelected = _ === 0;
|
|
763
763
|
});
|
|
764
764
|
}
|
|
765
|
-
function c(
|
|
766
|
-
t.playingAs.filter((y) => y.isSelected).length === 1 &&
|
|
765
|
+
function c(g) {
|
|
766
|
+
t.playingAs.filter((y) => y.isSelected).length === 1 && g.isSelected || (g.isSelected = !g.isSelected);
|
|
767
767
|
}
|
|
768
|
-
function m(
|
|
769
|
-
t.gameSections.filter((y) => y.isSelected).length === 1 &&
|
|
768
|
+
function m(g) {
|
|
769
|
+
t.gameSections.filter((y) => y.isSelected).length === 1 && g.isSelected || (g.isSelected = !g.isSelected);
|
|
770
770
|
}
|
|
771
|
-
function u(
|
|
772
|
-
|
|
771
|
+
function u(g) {
|
|
772
|
+
g ? t.gameSections.forEach((y) => {
|
|
773
773
|
y.isSelected = !0;
|
|
774
774
|
}) : t.gameSections.forEach((y, _) => {
|
|
775
775
|
y.isSelected = _ === 0;
|
|
776
776
|
});
|
|
777
777
|
}
|
|
778
|
-
return (
|
|
778
|
+
return (g, y) => (p(), f("div", {
|
|
779
779
|
class: "details",
|
|
780
780
|
style: W(r.value)
|
|
781
781
|
}, [
|
|
@@ -797,7 +797,7 @@ const De = (e) => (me("data-v-feb56031"), e = e(), he(), e), Ma = { class: "deta
|
|
|
797
797
|
(p(!0), f(z, null, te(t.playingAs, (_, v) => (p(), f("div", {
|
|
798
798
|
key: `pa${v}`,
|
|
799
799
|
class: ue(["details__body__button", { active: _.isSelected }]),
|
|
800
|
-
onClick: (
|
|
800
|
+
onClick: (b) => c(_)
|
|
801
801
|
}, B(_.name), 11, Na))), 128))
|
|
802
802
|
])
|
|
803
803
|
], 512), [
|
|
@@ -820,7 +820,7 @@ const De = (e) => (me("data-v-feb56031"), e = e(), he(), e), Ma = { class: "deta
|
|
|
820
820
|
(p(!0), f(z, null, te(l.value.firstHalf, (_, v) => (p(), f("div", {
|
|
821
821
|
key: `pa${v}`,
|
|
822
822
|
class: ue(["details__body__button", { active: _.isSelected }]),
|
|
823
|
-
onClick: (
|
|
823
|
+
onClick: (b) => m(_)
|
|
824
824
|
}, B(_.text), 11, Ga))), 128))
|
|
825
825
|
])
|
|
826
826
|
]),
|
|
@@ -830,7 +830,7 @@ const De = (e) => (me("data-v-feb56031"), e = e(), he(), e), Ma = { class: "deta
|
|
|
830
830
|
(p(!0), f(z, null, te(l.value.secondHalf, (_, v) => (p(), f("div", {
|
|
831
831
|
key: `pa${v}`,
|
|
832
832
|
class: ue(["details__body__button", { active: _.isSelected }]),
|
|
833
|
-
onClick: (
|
|
833
|
+
onClick: (b) => m(_)
|
|
834
834
|
}, B(_.text), 11, Ja))), 128))
|
|
835
835
|
])
|
|
836
836
|
]),
|
|
@@ -945,9 +945,9 @@ const mo = { class: "tournaments" }, ho = {
|
|
|
945
945
|
Authorization: t.token
|
|
946
946
|
}
|
|
947
947
|
})).json();
|
|
948
|
-
n.value = u.map((
|
|
949
|
-
...
|
|
950
|
-
seasons:
|
|
948
|
+
n.value = u.map((g, y) => ({
|
|
949
|
+
...g.tournament,
|
|
950
|
+
seasons: g.seasons,
|
|
951
951
|
isSelected: !0
|
|
952
952
|
}));
|
|
953
953
|
} catch (m) {
|
|
@@ -995,7 +995,7 @@ const mo = { class: "tournaments" }, ho = {
|
|
|
995
995
|
fontFamily: e.fontFamily,
|
|
996
996
|
width: "100%",
|
|
997
997
|
"avoid-interaction": a.value === 1 && u.isSelected,
|
|
998
|
-
"onUpdate:modelValue": (
|
|
998
|
+
"onUpdate:modelValue": (g) => d(g, u)
|
|
999
999
|
}, null, 8, ["model-value", "label", "fontFamily", "avoid-interaction", "onUpdate:modelValue"])
|
|
1000
1000
|
]))), 128))
|
|
1001
1001
|
]),
|
|
@@ -1568,7 +1568,7 @@ const zo = /* @__PURE__ */ Io(si, [["render", Uo], ["__scopeId", "data-v-f3ee6b2
|
|
|
1568
1568
|
if (!t.modelValue && (!t.onlyFirstTime || !_ || !_.length) && y && y.length) {
|
|
1569
1569
|
if (t.defaultItemByProp) {
|
|
1570
1570
|
const v = t.items.findIndex(
|
|
1571
|
-
(
|
|
1571
|
+
(b) => b[t.defaultItemByProp.propName] === t.defaultItemByProp.value
|
|
1572
1572
|
);
|
|
1573
1573
|
v !== -1 ? (a.value = v, i.value = y[v]) : (a.value = 0, i.value = y[0]);
|
|
1574
1574
|
} else
|
|
@@ -1628,7 +1628,7 @@ const zo = /* @__PURE__ */ Io(si, [["render", Uo], ["__scopeId", "data-v-f3ee6b2
|
|
|
1628
1628
|
function u(y, _) {
|
|
1629
1629
|
t.isMultipleOption ? a.value = -1 : (a.value = _, l.value = !1), i.value = y, s("input", i.value), s("update:modelValue", i.value);
|
|
1630
1630
|
}
|
|
1631
|
-
function
|
|
1631
|
+
function g() {
|
|
1632
1632
|
l.value = !1, s("click-ready");
|
|
1633
1633
|
}
|
|
1634
1634
|
return ei(() => {
|
|
@@ -1683,11 +1683,11 @@ const zo = /* @__PURE__ */ Io(si, [["render", Uo], ["__scopeId", "data-v-f3ee6b2
|
|
|
1683
1683
|
class: "gsc-dropdown__items",
|
|
1684
1684
|
style: W({ "margin-top": `${t.borderWidth}px` })
|
|
1685
1685
|
}, [
|
|
1686
|
-
(p(!0), f(z, null, te(e.items, (v,
|
|
1686
|
+
(p(!0), f(z, null, te(e.items, (v, b) => (p(), f("div", null, [
|
|
1687
1687
|
J((p(), f("div", {
|
|
1688
|
-
class: ue(["gsc-dropdown__items__item", { selected:
|
|
1689
|
-
key:
|
|
1690
|
-
onClick: (E) => u(v,
|
|
1688
|
+
class: ue(["gsc-dropdown__items__item", { selected: b === a.value }]),
|
|
1689
|
+
key: b,
|
|
1690
|
+
onClick: (E) => u(v, b)
|
|
1691
1691
|
}, [
|
|
1692
1692
|
tt(y.$slots, "availableItem", { item: v })
|
|
1693
1693
|
], 10, Zo)), [
|
|
@@ -1704,7 +1704,7 @@ const zo = /* @__PURE__ */ Io(si, [["render", Uo], ["__scopeId", "data-v-f3ee6b2
|
|
|
1704
1704
|
height: "22px",
|
|
1705
1705
|
"border-radius": "62px",
|
|
1706
1706
|
"border-width": 0.8,
|
|
1707
|
-
onClick:
|
|
1707
|
+
onClick: g
|
|
1708
1708
|
})
|
|
1709
1709
|
])) : P("", !0)
|
|
1710
1710
|
])
|
|
@@ -1817,13 +1817,13 @@ const Ze = (e) => (me("data-v-915d5e00"), e = e(), he(), e), Ko = { class: "univ
|
|
|
1817
1817
|
}
|
|
1818
1818
|
return s({
|
|
1819
1819
|
resetFilters: c
|
|
1820
|
-
}), (u,
|
|
1820
|
+
}), (u, g) => (p(), f("div", Ko, [
|
|
1821
1821
|
Xo,
|
|
1822
1822
|
o("div", Qo, [
|
|
1823
1823
|
o("div", en, [
|
|
1824
1824
|
o("div", tn, [
|
|
1825
1825
|
J(o("input", {
|
|
1826
|
-
"onUpdate:modelValue":
|
|
1826
|
+
"onUpdate:modelValue": g[0] || (g[0] = (y) => r.value.statisticsRadios = y),
|
|
1827
1827
|
type: "radio",
|
|
1828
1828
|
id: "total",
|
|
1829
1829
|
value: "total",
|
|
@@ -1837,7 +1837,7 @@ const Ze = (e) => (me("data-v-915d5e00"), e = e(), he(), e), Ko = { class: "univ
|
|
|
1837
1837
|
o("div", an, [
|
|
1838
1838
|
o("div", on, [
|
|
1839
1839
|
J(o("input", {
|
|
1840
|
-
"onUpdate:modelValue":
|
|
1840
|
+
"onUpdate:modelValue": g[1] || (g[1] = (y) => r.value.statisticsRadios = y),
|
|
1841
1841
|
type: "radio",
|
|
1842
1842
|
id: "every",
|
|
1843
1843
|
value: "every90",
|
|
@@ -3882,8 +3882,8 @@ function Pt(e, s, t) {
|
|
|
3882
3882
|
metaTokens: !0,
|
|
3883
3883
|
dots: !1,
|
|
3884
3884
|
indexes: !1
|
|
3885
|
-
}, !1, function(v,
|
|
3886
|
-
return !C.isUndefined(
|
|
3885
|
+
}, !1, function(v, b) {
|
|
3886
|
+
return !C.isUndefined(b[v]);
|
|
3887
3887
|
});
|
|
3888
3888
|
const i = t.metaTokens, n = t.visitor || m, a = t.dots, l = t.indexes, d = (t.Blob || typeof Blob < "u" && Blob) && C.isSpecCompliantForm(s);
|
|
3889
3889
|
if (!C.isFunction(n))
|
|
@@ -3897,9 +3897,9 @@ function Pt(e, s, t) {
|
|
|
3897
3897
|
throw new q("Blob is not supported. Use a Buffer instead.");
|
|
3898
3898
|
return C.isArrayBuffer(_) || C.isTypedArray(_) ? d && typeof Blob == "function" ? new Blob([_]) : Buffer.from(_) : _;
|
|
3899
3899
|
}
|
|
3900
|
-
function m(_, v,
|
|
3900
|
+
function m(_, v, b) {
|
|
3901
3901
|
let E = _;
|
|
3902
|
-
if (_ && !
|
|
3902
|
+
if (_ && !b && typeof _ == "object") {
|
|
3903
3903
|
if (C.endsWith(v, "{}"))
|
|
3904
3904
|
v = i ? v : v.slice(0, -2), _ = JSON.stringify(_);
|
|
3905
3905
|
else if (C.isArray(_) && Wr(_) || (C.isFileList(_) || C.endsWith(v, "[]")) && (E = C.toArray(_)))
|
|
@@ -3911,9 +3911,9 @@ function Pt(e, s, t) {
|
|
|
3911
3911
|
);
|
|
3912
3912
|
}), !1;
|
|
3913
3913
|
}
|
|
3914
|
-
return Yt(_) ? !0 : (s.append(Ii(
|
|
3914
|
+
return Yt(_) ? !0 : (s.append(Ii(b, v, a), c(_)), !1);
|
|
3915
3915
|
}
|
|
3916
|
-
const u = [],
|
|
3916
|
+
const u = [], g = Object.assign(Hr, {
|
|
3917
3917
|
defaultVisitor: m,
|
|
3918
3918
|
convertValue: c,
|
|
3919
3919
|
isVisitable: Yt
|
|
@@ -3928,7 +3928,7 @@ function Pt(e, s, t) {
|
|
|
3928
3928
|
E,
|
|
3929
3929
|
C.isString(k) ? k.trim() : k,
|
|
3930
3930
|
v,
|
|
3931
|
-
|
|
3931
|
+
g
|
|
3932
3932
|
)) === !0 && y(E, v ? v.concat(k) : [k]);
|
|
3933
3933
|
}), u.pop();
|
|
3934
3934
|
}
|
|
@@ -4415,13 +4415,13 @@ function pd(e, s) {
|
|
|
4415
4415
|
return s = s !== void 0 ? s : 1e3, function(d) {
|
|
4416
4416
|
const c = Date.now(), m = i[a];
|
|
4417
4417
|
l || (l = c), t[n] = d, i[n] = c;
|
|
4418
|
-
let u = a,
|
|
4418
|
+
let u = a, g = 0;
|
|
4419
4419
|
for (; u !== n; )
|
|
4420
|
-
|
|
4420
|
+
g += t[u++], u = u % e;
|
|
4421
4421
|
if (n = (n + 1) % e, n === a && (a = (a + 1) % e), c - l < s)
|
|
4422
4422
|
return;
|
|
4423
4423
|
const y = m && c - m;
|
|
4424
|
-
return y ? Math.round(
|
|
4424
|
+
return y ? Math.round(g * 1e3 / y) : void 0;
|
|
4425
4425
|
};
|
|
4426
4426
|
}
|
|
4427
4427
|
function fd(e, s) {
|
|
@@ -4506,15 +4506,15 @@ const Li = (e) => e instanceof Ae ? { ...e } : e;
|
|
|
4506
4506
|
function qe(e, s) {
|
|
4507
4507
|
s = s || {};
|
|
4508
4508
|
const t = {};
|
|
4509
|
-
function i(c, m, u,
|
|
4510
|
-
return C.isPlainObject(c) && C.isPlainObject(m) ? C.merge.call({ caseless:
|
|
4509
|
+
function i(c, m, u, g) {
|
|
4510
|
+
return C.isPlainObject(c) && C.isPlainObject(m) ? C.merge.call({ caseless: g }, c, m) : C.isPlainObject(m) ? C.merge({}, m) : C.isArray(m) ? m.slice() : m;
|
|
4511
4511
|
}
|
|
4512
|
-
function n(c, m, u,
|
|
4512
|
+
function n(c, m, u, g) {
|
|
4513
4513
|
if (C.isUndefined(m)) {
|
|
4514
4514
|
if (!C.isUndefined(c))
|
|
4515
|
-
return i(void 0, c, u,
|
|
4515
|
+
return i(void 0, c, u, g);
|
|
4516
4516
|
} else
|
|
4517
|
-
return i(c, m, u,
|
|
4517
|
+
return i(c, m, u, g);
|
|
4518
4518
|
}
|
|
4519
4519
|
function a(c, m) {
|
|
4520
4520
|
if (!C.isUndefined(m))
|
|
@@ -4565,8 +4565,8 @@ function qe(e, s) {
|
|
|
4565
4565
|
headers: (c, m, u) => n(Li(c), Li(m), u, !0)
|
|
4566
4566
|
};
|
|
4567
4567
|
return C.forEach(Object.keys(Object.assign({}, e, s)), function(m) {
|
|
4568
|
-
const u = d[m] || n,
|
|
4569
|
-
C.isUndefined(
|
|
4568
|
+
const u = d[m] || n, g = u(e[m], s[m], m);
|
|
4569
|
+
C.isUndefined(g) && u !== r || (t[m] = g);
|
|
4570
4570
|
}), t;
|
|
4571
4571
|
}
|
|
4572
4572
|
const Cs = (e) => {
|
|
@@ -4595,57 +4595,57 @@ const Cs = (e) => {
|
|
|
4595
4595
|
const n = Cs(e);
|
|
4596
4596
|
let a = n.data;
|
|
4597
4597
|
const l = Ae.from(n.headers).normalize();
|
|
4598
|
-
let { responseType: r, onUploadProgress: d, onDownloadProgress: c } = n, m, u,
|
|
4598
|
+
let { responseType: r, onUploadProgress: d, onDownloadProgress: c } = n, m, u, g, y, _;
|
|
4599
4599
|
function v() {
|
|
4600
4600
|
y && y(), _ && _(), n.cancelToken && n.cancelToken.unsubscribe(m), n.signal && n.signal.removeEventListener("abort", m);
|
|
4601
4601
|
}
|
|
4602
|
-
let
|
|
4603
|
-
|
|
4602
|
+
let b = new XMLHttpRequest();
|
|
4603
|
+
b.open(n.method.toUpperCase(), n.url, !0), b.timeout = n.timeout;
|
|
4604
4604
|
function E() {
|
|
4605
|
-
if (!
|
|
4605
|
+
if (!b)
|
|
4606
4606
|
return;
|
|
4607
4607
|
const H = Ae.from(
|
|
4608
|
-
"getAllResponseHeaders" in
|
|
4608
|
+
"getAllResponseHeaders" in b && b.getAllResponseHeaders()
|
|
4609
4609
|
), ne = {
|
|
4610
|
-
data: !r || r === "text" || r === "json" ?
|
|
4611
|
-
status:
|
|
4612
|
-
statusText:
|
|
4610
|
+
data: !r || r === "text" || r === "json" ? b.responseText : b.response,
|
|
4611
|
+
status: b.status,
|
|
4612
|
+
statusText: b.statusText,
|
|
4613
4613
|
headers: H,
|
|
4614
4614
|
config: e,
|
|
4615
|
-
request:
|
|
4615
|
+
request: b
|
|
4616
4616
|
};
|
|
4617
4617
|
bs(function(_e) {
|
|
4618
4618
|
t(_e), v();
|
|
4619
4619
|
}, function(_e) {
|
|
4620
4620
|
i(_e), v();
|
|
4621
|
-
}, ne),
|
|
4622
|
-
}
|
|
4623
|
-
"onloadend" in
|
|
4624
|
-
!
|
|
4625
|
-
},
|
|
4626
|
-
|
|
4627
|
-
},
|
|
4628
|
-
i(new q("Network Error", q.ERR_NETWORK, e,
|
|
4629
|
-
},
|
|
4621
|
+
}, ne), b = null;
|
|
4622
|
+
}
|
|
4623
|
+
"onloadend" in b ? b.onloadend = E : b.onreadystatechange = function() {
|
|
4624
|
+
!b || b.readyState !== 4 || b.status === 0 && !(b.responseURL && b.responseURL.indexOf("file:") === 0) || setTimeout(E);
|
|
4625
|
+
}, b.onabort = function() {
|
|
4626
|
+
b && (i(new q("Request aborted", q.ECONNABORTED, e, b)), b = null);
|
|
4627
|
+
}, b.onerror = function() {
|
|
4628
|
+
i(new q("Network Error", q.ERR_NETWORK, e, b)), b = null;
|
|
4629
|
+
}, b.ontimeout = function() {
|
|
4630
4630
|
let le = n.timeout ? "timeout of " + n.timeout + "ms exceeded" : "timeout exceeded";
|
|
4631
4631
|
const ne = n.transitional || ys;
|
|
4632
4632
|
n.timeoutErrorMessage && (le = n.timeoutErrorMessage), i(new q(
|
|
4633
4633
|
le,
|
|
4634
4634
|
ne.clarifyTimeoutError ? q.ETIMEDOUT : q.ECONNABORTED,
|
|
4635
4635
|
e,
|
|
4636
|
-
|
|
4637
|
-
)),
|
|
4638
|
-
}, a === void 0 && l.setContentType(null), "setRequestHeader" in
|
|
4639
|
-
|
|
4640
|
-
}), C.isUndefined(n.withCredentials) || (
|
|
4641
|
-
|
|
4636
|
+
b
|
|
4637
|
+
)), b = null;
|
|
4638
|
+
}, a === void 0 && l.setContentType(null), "setRequestHeader" in b && C.forEach(l.toJSON(), function(le, ne) {
|
|
4639
|
+
b.setRequestHeader(ne, le);
|
|
4640
|
+
}), C.isUndefined(n.withCredentials) || (b.withCredentials = !!n.withCredentials), r && r !== "json" && (b.responseType = n.responseType), c && ([g, _] = St(c, !0), b.addEventListener("progress", g)), d && b.upload && ([u, y] = St(d), b.upload.addEventListener("progress", u), b.upload.addEventListener("loadend", y)), (n.cancelToken || n.signal) && (m = (H) => {
|
|
4641
|
+
b && (i(!H || H.type ? new at(null, e, b) : H), b.abort(), b = null);
|
|
4642
4642
|
}, n.cancelToken && n.cancelToken.subscribe(m), n.signal && (n.signal.aborted ? m() : n.signal.addEventListener("abort", m)));
|
|
4643
4643
|
const k = ud(n.url);
|
|
4644
4644
|
if (k && be.protocols.indexOf(k) === -1) {
|
|
4645
4645
|
i(new q("Unsupported protocol " + k + ":", q.ERR_BAD_REQUEST, e));
|
|
4646
4646
|
return;
|
|
4647
4647
|
}
|
|
4648
|
-
|
|
4648
|
+
b.send(a || null);
|
|
4649
4649
|
});
|
|
4650
4650
|
}, bd = (e, s) => {
|
|
4651
4651
|
const { length: t } = e = e ? e.filter(Boolean) : [];
|
|
@@ -4713,8 +4713,8 @@ const Cs = (e) => {
|
|
|
4713
4713
|
}
|
|
4714
4714
|
let u = m.byteLength;
|
|
4715
4715
|
if (t) {
|
|
4716
|
-
let
|
|
4717
|
-
t(
|
|
4716
|
+
let g = a += u;
|
|
4717
|
+
t(g);
|
|
4718
4718
|
}
|
|
4719
4719
|
d.enqueue(new Uint8Array(m));
|
|
4720
4720
|
} catch (c) {
|
|
@@ -4783,16 +4783,16 @@ const Fd = async (e) => {
|
|
|
4783
4783
|
responseType: c,
|
|
4784
4784
|
headers: m,
|
|
4785
4785
|
withCredentials: u = "same-origin",
|
|
4786
|
-
fetchOptions:
|
|
4786
|
+
fetchOptions: g
|
|
4787
4787
|
} = Cs(e);
|
|
4788
4788
|
c = c ? (c + "").toLowerCase() : "text";
|
|
4789
4789
|
let y = Sd([n, a && a.toAbortSignal()], l), _;
|
|
4790
4790
|
const v = y && y.unsubscribe && (() => {
|
|
4791
4791
|
y.unsubscribe();
|
|
4792
4792
|
});
|
|
4793
|
-
let
|
|
4793
|
+
let b;
|
|
4794
4794
|
try {
|
|
4795
|
-
if (d && kd && t !== "get" && t !== "head" && (
|
|
4795
|
+
if (d && kd && t !== "get" && t !== "head" && (b = await Ed(m, i)) !== 0) {
|
|
4796
4796
|
let ne = new Request(s, {
|
|
4797
4797
|
method: "POST",
|
|
4798
4798
|
body: i,
|
|
@@ -4800,7 +4800,7 @@ const Fd = async (e) => {
|
|
|
4800
4800
|
}), ve;
|
|
4801
4801
|
if (C.isFormData(i) && (ve = ne.headers.get("content-type")) && m.setContentType(ve), ne.body) {
|
|
4802
4802
|
const [_e, fe] = Oi(
|
|
4803
|
-
|
|
4803
|
+
b,
|
|
4804
4804
|
St(Vi(d))
|
|
4805
4805
|
);
|
|
4806
4806
|
i = Ni(ne.body, Di, _e, fe);
|
|
@@ -4809,7 +4809,7 @@ const Fd = async (e) => {
|
|
|
4809
4809
|
C.isString(u) || (u = u ? "include" : "omit");
|
|
4810
4810
|
const E = "credentials" in Request.prototype;
|
|
4811
4811
|
_ = new Request(s, {
|
|
4812
|
-
...
|
|
4812
|
+
...g,
|
|
4813
4813
|
signal: y,
|
|
4814
4814
|
method: t.toUpperCase(),
|
|
4815
4815
|
headers: m.normalize().toJSON(),
|
|
@@ -5038,21 +5038,21 @@ class xt {
|
|
|
5038
5038
|
this.interceptors.response.forEach(function(v) {
|
|
5039
5039
|
c.push(v.fulfilled, v.rejected);
|
|
5040
5040
|
});
|
|
5041
|
-
let m, u = 0,
|
|
5041
|
+
let m, u = 0, g;
|
|
5042
5042
|
if (!d) {
|
|
5043
5043
|
const _ = [zi.bind(this), void 0];
|
|
5044
|
-
for (_.unshift.apply(_, r), _.push.apply(_, c),
|
|
5044
|
+
for (_.unshift.apply(_, r), _.push.apply(_, c), g = _.length, m = Promise.resolve(t); u < g; )
|
|
5045
5045
|
m = m.then(_[u++], _[u++]);
|
|
5046
5046
|
return m;
|
|
5047
5047
|
}
|
|
5048
|
-
|
|
5048
|
+
g = r.length;
|
|
5049
5049
|
let y = t;
|
|
5050
|
-
for (u = 0; u <
|
|
5050
|
+
for (u = 0; u < g; ) {
|
|
5051
5051
|
const _ = r[u++], v = r[u++];
|
|
5052
5052
|
try {
|
|
5053
5053
|
y = _(y);
|
|
5054
|
-
} catch (
|
|
5055
|
-
v.call(this,
|
|
5054
|
+
} catch (b) {
|
|
5055
|
+
v.call(this, b);
|
|
5056
5056
|
break;
|
|
5057
5057
|
}
|
|
5058
5058
|
}
|
|
@@ -5061,7 +5061,7 @@ class xt {
|
|
|
5061
5061
|
} catch (_) {
|
|
5062
5062
|
return Promise.reject(_);
|
|
5063
5063
|
}
|
|
5064
|
-
for (u = 0,
|
|
5064
|
+
for (u = 0, g = c.length; u < g; )
|
|
5065
5065
|
m = m.then(c[u++], c[u++]);
|
|
5066
5066
|
return m;
|
|
5067
5067
|
}
|
|
@@ -5604,7 +5604,7 @@ function Vd(e, s) {
|
|
|
5604
5604
|
function rt(e, s) {
|
|
5605
5605
|
if (ce(2, arguments), !s || wt(s) !== "object")
|
|
5606
5606
|
return /* @__PURE__ */ new Date(NaN);
|
|
5607
|
-
var t = s.years ? Ve(s.years) : 0, i = s.months ? Ve(s.months) : 0, n = s.weeks ? Ve(s.weeks) : 0, a = s.days ? Ve(s.days) : 0, l = s.hours ? Ve(s.hours) : 0, r = s.minutes ? Ve(s.minutes) : 0, d = s.seconds ? Ve(s.seconds) : 0, c = oe(e), m = i || t ? Vd(c, i + t * 12) : c, u = a || n ? Od(m, a + n * 7) : m,
|
|
5607
|
+
var t = s.years ? Ve(s.years) : 0, i = s.months ? Ve(s.months) : 0, n = s.weeks ? Ve(s.weeks) : 0, a = s.days ? Ve(s.days) : 0, l = s.hours ? Ve(s.hours) : 0, r = s.minutes ? Ve(s.minutes) : 0, d = s.seconds ? Ve(s.seconds) : 0, c = oe(e), m = i || t ? Vd(c, i + t * 12) : c, u = a || n ? Od(m, a + n * 7) : m, g = r + l * 60, y = d + g * 60, _ = y * 1e3, v = new Date(u.getTime() + _);
|
|
5608
5608
|
return v;
|
|
5609
5609
|
}
|
|
5610
5610
|
function Hi(e) {
|
|
@@ -5764,7 +5764,7 @@ async function C2(e = [], s = "") {
|
|
|
5764
5764
|
const i = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Date(), a = [], l = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), d = await Promise.all(t);
|
|
5765
5765
|
for (const c of d)
|
|
5766
5766
|
for (const m of c) {
|
|
5767
|
-
const u = new Date(m.dob),
|
|
5767
|
+
const u = new Date(m.dob), g = As(u), y = Ps({
|
|
5768
5768
|
start: u,
|
|
5769
5769
|
end: n
|
|
5770
5770
|
});
|
|
@@ -5776,7 +5776,7 @@ async function C2(e = [], s = "") {
|
|
|
5776
5776
|
id: m.position_id,
|
|
5777
5777
|
isSelected: !0,
|
|
5778
5778
|
name: $s[`${m.position_id}`]
|
|
5779
|
-
}), i.add(
|
|
5779
|
+
}), i.add(g), a.push(y.years);
|
|
5780
5780
|
}
|
|
5781
5781
|
return ze.minAge = Math.min(...a), ze.maxAge = Math.max(...a), ze.availableYears = [...i].sort((c, m) => m - c), ze.nationalities = [...l.values()], ze.positions = [...r.values()], ze.isEligibilitySwitchVisible = e.some(
|
|
5782
5782
|
(c) => Is.has(c.tournamentId)
|
|
@@ -5888,7 +5888,7 @@ const Je = (e) => (me("data-v-cfc8bb98"), e = e(), he(), e), ac = { class: "pers
|
|
|
5888
5888
|
}, l = T({ ...bt }), r = T(["Por edad", "Por año"]), d = T(0), c = T({
|
|
5889
5889
|
min: bt.minAge,
|
|
5890
5890
|
max: bt.maxAge
|
|
5891
|
-
}), m = T(Le), u = T(""),
|
|
5891
|
+
}), m = T(Le), u = T(""), g = T(""), y = T(
|
|
5892
5892
|
l.value.availableYears[l.value.availableYears.length - 1]
|
|
5893
5893
|
), _ = T(0), v = M(() => {
|
|
5894
5894
|
const R = l.value.nationalities ? [...l.value.nationalities] : [];
|
|
@@ -5897,7 +5897,7 @@ const Je = (e) => (me("data-v-cfc8bb98"), e = e(), he(), e), ac = { class: "pers
|
|
|
5897
5897
|
});
|
|
5898
5898
|
const N = R[0];
|
|
5899
5899
|
return (!N || N.id !== 0) && R.unshift(n), R;
|
|
5900
|
-
}),
|
|
5900
|
+
}), b = M(() => {
|
|
5901
5901
|
let N = (i.filter && i.filter.positions ? i.filter.positions : l.value.positions) ? [...l.value.positions] : [];
|
|
5902
5902
|
const w = N[0];
|
|
5903
5903
|
return (!w || w.id !== 0) && N.unshift(a), N.sort((ee, re) => ee.id - re.id), N;
|
|
@@ -5910,10 +5910,10 @@ const Je = (e) => (me("data-v-cfc8bb98"), e = e(), he(), e), ac = { class: "pers
|
|
|
5910
5910
|
},
|
|
5911
5911
|
{ immediate: !0, deep: !0 }
|
|
5912
5912
|
), L(
|
|
5913
|
-
|
|
5913
|
+
b,
|
|
5914
5914
|
(R) => {
|
|
5915
5915
|
const N = R.reduce((w, ee, re) => (re !== 0 && ee.isSelected && w++, w), 0);
|
|
5916
|
-
N ===
|
|
5916
|
+
N === b.value.length - 1 && (R[0].isSelected = !0), R[0] && R[0].isSelected ? g.value = "Todas las posiciones" : g.value = `${N} seleccionadas`, fe();
|
|
5917
5917
|
},
|
|
5918
5918
|
{ immediate: !0, deep: !0 }
|
|
5919
5919
|
), L(
|
|
@@ -5942,8 +5942,8 @@ const Je = (e) => (me("data-v-cfc8bb98"), e = e(), he(), e), ac = { class: "pers
|
|
|
5942
5942
|
if (R && R.id) {
|
|
5943
5943
|
const N = /* @__PURE__ */ new Set(), w = await le(R.id), ee = /* @__PURE__ */ new Date(), re = [], Ie = /* @__PURE__ */ new Map(), $e = /* @__PURE__ */ new Map();
|
|
5944
5944
|
w.forEach((F) => {
|
|
5945
|
-
const
|
|
5946
|
-
start:
|
|
5945
|
+
const V = new Date(F.dob), U = As(V), O = Ps({
|
|
5946
|
+
start: V,
|
|
5947
5947
|
end: ee
|
|
5948
5948
|
});
|
|
5949
5949
|
Ie.has(F.nationality_id) || Ie.set(F.nationality_id, {
|
|
@@ -5954,8 +5954,8 @@ const Je = (e) => (me("data-v-cfc8bb98"), e = e(), he(), e), ac = { class: "pers
|
|
|
5954
5954
|
id: F.position_id,
|
|
5955
5955
|
isSelected: !0,
|
|
5956
5956
|
name: $s[`${F.position_id}`]
|
|
5957
|
-
}), N.add(U), re.push(
|
|
5958
|
-
}), l.value.minAge = Math.min(...re), l.value.maxAge = Math.max(...re), l.value.availableYears = [...N].sort((F,
|
|
5957
|
+
}), N.add(U), re.push(O.years);
|
|
5958
|
+
}), l.value.minAge = Math.min(...re), l.value.maxAge = Math.max(...re), l.value.availableYears = [...N].sort((F, V) => V - F), y.value = l.value.availableYears[0], l.value.nationalities = [...Ie.values()], l.value.positions = [...$e.values()], c.value.min = l.value.minAge, c.value.max = l.value.maxAge;
|
|
5959
5959
|
}
|
|
5960
5960
|
} catch (N) {
|
|
5961
5961
|
throw new Error(N);
|
|
@@ -5965,7 +5965,7 @@ const Je = (e) => (me("data-v-cfc8bb98"), e = e(), he(), e), ac = { class: "pers
|
|
|
5965
5965
|
const N = !R || R === We.All;
|
|
5966
5966
|
(N || R === We.NATIONALITY) && v.value.forEach((w) => {
|
|
5967
5967
|
w.isSelected = !0;
|
|
5968
|
-
}), (N || R === We.ELIGIBILITY) && (l.value.isEligibilitySelected = !1), (N || R === We.POSITION) &&
|
|
5968
|
+
}), (N || R === We.ELIGIBILITY) && (l.value.isEligibilitySelected = !1), (N || R === We.POSITION) && b.value.forEach((w) => {
|
|
5969
5969
|
w.isSelected = !0;
|
|
5970
5970
|
}), (N || R === We.AGE_RANGE) && (c.value.min = l.value.minAge, c.value.max = l.value.maxAge, d.value = 0), (N || R === We.YEAR) && (y.value = i.isScouting ? l.value.availableYears[l.value.availableYears.length - 1] : l.value.availableYears[0], d.value = 0), fe();
|
|
5971
5971
|
}
|
|
@@ -6000,12 +6000,12 @@ const Je = (e) => (me("data-v-cfc8bb98"), e = e(), he(), e), ac = { class: "pers
|
|
|
6000
6000
|
}) : N.year = y.value, l.value.isEligibilitySelected ? N.eligibility = [...l.value.eligibility] : N.nationalities = v.value.reduce(
|
|
6001
6001
|
(w, ee, re) => (re !== 0 && w.push({ ...ee }), w),
|
|
6002
6002
|
[]
|
|
6003
|
-
), N.positions =
|
|
6003
|
+
), N.positions = b.value.reduce((w, ee, re) => (re !== 0 && w.push({ ...ee }), w), []), t("update:filters", N);
|
|
6004
6004
|
}
|
|
6005
6005
|
function ge(R, N) {
|
|
6006
|
-
N.id === 0 ?
|
|
6006
|
+
N.id === 0 ? b.value.forEach((w) => {
|
|
6007
6007
|
w.isSelected = R;
|
|
6008
|
-
}) : (N.isSelected = R,
|
|
6008
|
+
}) : (N.isSelected = R, b.value[0].isSelected = b.value.every((w, ee) => ee === 0 ? !0 : w.isSelected));
|
|
6009
6009
|
}
|
|
6010
6010
|
function Ee(R) {
|
|
6011
6011
|
y.value = R, i.filters && (i.filters.selectedYear = R), fe();
|
|
@@ -6121,14 +6121,14 @@ const Je = (e) => (me("data-v-cfc8bb98"), e = e(), he(), e), ac = { class: "pers
|
|
|
6121
6121
|
Cc,
|
|
6122
6122
|
x(I(Fe), ye(m.value, {
|
|
6123
6123
|
"is-multiple-option": "",
|
|
6124
|
-
items:
|
|
6124
|
+
items: b.value
|
|
6125
6125
|
}), {
|
|
6126
6126
|
default: X(() => [
|
|
6127
6127
|
o("div", xc, [
|
|
6128
6128
|
e.isFemale ? (p(), f(z, { key: 0 }, [
|
|
6129
|
-
et(B(
|
|
6129
|
+
et(B(g.value.replace("Portero", "Portera").replace("Delantero", "Delantera").replace("Volante defensivo", "Volante defensiva").replace("Volante ofensivo", "Volante ofensiva")), 1)
|
|
6130
6130
|
], 64)) : (p(), f(z, { key: 1 }, [
|
|
6131
|
-
et(B(
|
|
6131
|
+
et(B(g.value), 1)
|
|
6132
6132
|
], 64))
|
|
6133
6133
|
])
|
|
6134
6134
|
]),
|
|
@@ -6177,7 +6177,7 @@ const Fc = { class: "plays" }, Ec = { class: "plays__body__offensive" }, $c = {
|
|
|
6177
6177
|
function u(y, _) {
|
|
6178
6178
|
_.isSelected = y;
|
|
6179
6179
|
}
|
|
6180
|
-
function
|
|
6180
|
+
function g(y) {
|
|
6181
6181
|
y === "offensive" ? t.value = !t.value : y === "defensive" ? i.value = !i.value : y === "possession" ? n.value = !n.value : y === "offenses" && (a.value = !a.value);
|
|
6182
6182
|
}
|
|
6183
6183
|
return (y, _) => (p(), f("div", Fc, [
|
|
@@ -6189,14 +6189,14 @@ const Fc = { class: "plays" }, Ec = { class: "plays__body__offensive" }, $c = {
|
|
|
6189
6189
|
o("div", $c, [
|
|
6190
6190
|
o("div", {
|
|
6191
6191
|
class: "plays__body__title__info",
|
|
6192
|
-
onClick: _[0] || (_[0] = (v) =>
|
|
6192
|
+
onClick: _[0] || (_[0] = (v) => g("offensive"))
|
|
6193
6193
|
}, [
|
|
6194
6194
|
o("span", null, B(e.playsCategories.offensive.title), 1),
|
|
6195
6195
|
o("span", Ac, "(" + B(r.value) + ")", 1)
|
|
6196
6196
|
]),
|
|
6197
6197
|
o("div", {
|
|
6198
6198
|
class: "plays__body__title__expand-button",
|
|
6199
|
-
onClick: _[1] || (_[1] = (v) =>
|
|
6199
|
+
onClick: _[1] || (_[1] = (v) => g("offensive"))
|
|
6200
6200
|
}, [
|
|
6201
6201
|
J(x(He, { "is-expanded": t.value }, null, 8, ["is-expanded"]), [
|
|
6202
6202
|
[se, e.isExpansionMode]
|
|
@@ -6214,7 +6214,7 @@ const Fc = { class: "plays" }, Ec = { class: "plays__body__offensive" }, $c = {
|
|
|
6214
6214
|
labelFontSize: "13px",
|
|
6215
6215
|
"model-value": v.isSelected,
|
|
6216
6216
|
"box-value": v.priority || 0,
|
|
6217
|
-
"onUpdate:modelValue": (
|
|
6217
|
+
"onUpdate:modelValue": (b) => u(b, v)
|
|
6218
6218
|
}, null, 8, ["label", "fontFamily", "model-value", "box-value", "onUpdate:modelValue"])
|
|
6219
6219
|
]))), 128))
|
|
6220
6220
|
], 512), [
|
|
@@ -6225,14 +6225,14 @@ const Fc = { class: "plays" }, Ec = { class: "plays__body__offensive" }, $c = {
|
|
|
6225
6225
|
o("div", Bc, [
|
|
6226
6226
|
o("div", {
|
|
6227
6227
|
class: "plays__body__title__info",
|
|
6228
|
-
onClick: _[2] || (_[2] = (v) =>
|
|
6228
|
+
onClick: _[2] || (_[2] = (v) => g("defensive"))
|
|
6229
6229
|
}, [
|
|
6230
6230
|
o("span", null, B(e.playsCategories.defensive.title), 1),
|
|
6231
6231
|
o("span", Mc, "(" + B(d.value) + ")", 1)
|
|
6232
6232
|
]),
|
|
6233
6233
|
o("div", {
|
|
6234
6234
|
class: "plays__body__title__expand-button",
|
|
6235
|
-
onClick: _[3] || (_[3] = (v) =>
|
|
6235
|
+
onClick: _[3] || (_[3] = (v) => g("defensive"))
|
|
6236
6236
|
}, [
|
|
6237
6237
|
J(x(He, { "is-expanded": i.value }, null, 8, ["is-expanded"]), [
|
|
6238
6238
|
[se, e.isExpansionMode]
|
|
@@ -6250,7 +6250,7 @@ const Fc = { class: "plays" }, Ec = { class: "plays__body__offensive" }, $c = {
|
|
|
6250
6250
|
labelFontSize: "13px",
|
|
6251
6251
|
"model-value": v.isSelected,
|
|
6252
6252
|
"box-value": v.priority || 0,
|
|
6253
|
-
"onUpdate:modelValue": (
|
|
6253
|
+
"onUpdate:modelValue": (b) => u(b, v)
|
|
6254
6254
|
}, null, 8, ["label", "fontFamily", "model-value", "box-value", "onUpdate:modelValue"])
|
|
6255
6255
|
]))), 128))
|
|
6256
6256
|
], 512), [
|
|
@@ -6259,14 +6259,14 @@ const Fc = { class: "plays" }, Ec = { class: "plays__body__offensive" }, $c = {
|
|
|
6259
6259
|
o("div", Oc, [
|
|
6260
6260
|
o("div", {
|
|
6261
6261
|
class: "plays__body__title__info",
|
|
6262
|
-
onClick: _[4] || (_[4] = (v) =>
|
|
6262
|
+
onClick: _[4] || (_[4] = (v) => g("possession"))
|
|
6263
6263
|
}, [
|
|
6264
6264
|
o("span", null, B(e.playsCategories.possession.title), 1),
|
|
6265
6265
|
o("span", Vc, "(" + B(c.value) + ")", 1)
|
|
6266
6266
|
]),
|
|
6267
6267
|
o("div", {
|
|
6268
6268
|
class: "plays__body__title__expand-button",
|
|
6269
|
-
onClick: _[5] || (_[5] = (v) =>
|
|
6269
|
+
onClick: _[5] || (_[5] = (v) => g("possession"))
|
|
6270
6270
|
}, [
|
|
6271
6271
|
J(x(He, { "is-expanded": n.value }, null, 8, ["is-expanded"]), [
|
|
6272
6272
|
[se, e.isExpansionMode]
|
|
@@ -6284,7 +6284,7 @@ const Fc = { class: "plays" }, Ec = { class: "plays__body__offensive" }, $c = {
|
|
|
6284
6284
|
labelFontSize: "13px",
|
|
6285
6285
|
"model-value": v.isSelected,
|
|
6286
6286
|
"box-value": v.priority || 0,
|
|
6287
|
-
"onUpdate:modelValue": (
|
|
6287
|
+
"onUpdate:modelValue": (b) => u(b, v)
|
|
6288
6288
|
}, null, 8, ["label", "fontFamily", "model-value", "box-value", "onUpdate:modelValue"])
|
|
6289
6289
|
]))), 128))
|
|
6290
6290
|
], 512), [
|
|
@@ -6293,14 +6293,14 @@ const Fc = { class: "plays" }, Ec = { class: "plays__body__offensive" }, $c = {
|
|
|
6293
6293
|
o("div", Nc, [
|
|
6294
6294
|
o("div", {
|
|
6295
6295
|
class: "plays__body__title__info",
|
|
6296
|
-
onClick: _[6] || (_[6] = (v) =>
|
|
6296
|
+
onClick: _[6] || (_[6] = (v) => g("offenses"))
|
|
6297
6297
|
}, [
|
|
6298
6298
|
o("span", null, B(e.playsCategories.offenses.title), 1),
|
|
6299
6299
|
o("span", Dc, "(" + B(m.value) + ")", 1)
|
|
6300
6300
|
]),
|
|
6301
6301
|
o("div", {
|
|
6302
6302
|
class: "plays__body__title__expand-button",
|
|
6303
|
-
onClick: _[7] || (_[7] = (v) =>
|
|
6303
|
+
onClick: _[7] || (_[7] = (v) => g("offenses"))
|
|
6304
6304
|
}, [
|
|
6305
6305
|
J(x(He, { "is-expanded": a.value }, null, 8, ["is-expanded"]), [
|
|
6306
6306
|
[se, e.isExpansionMode]
|
|
@@ -6318,7 +6318,7 @@ const Fc = { class: "plays" }, Ec = { class: "plays__body__offensive" }, $c = {
|
|
|
6318
6318
|
labelFontSize: "13px",
|
|
6319
6319
|
"model-value": v.isSelected,
|
|
6320
6320
|
"box-value": v.priority || 0,
|
|
6321
|
-
"onUpdate:modelValue": (
|
|
6321
|
+
"onUpdate:modelValue": (b) => u(b, v)
|
|
6322
6322
|
}, null, 8, ["label", "fontFamily", "model-value", "box-value", "onUpdate:modelValue"])
|
|
6323
6323
|
]))), 128))
|
|
6324
6324
|
], 512), [
|
|
@@ -6627,7 +6627,7 @@ const Ot = (e) => (me("data-v-b63e9c84"), e = e(), he(), e), bu = { class: "cont
|
|
|
6627
6627
|
function m(u) {
|
|
6628
6628
|
l.value = u;
|
|
6629
6629
|
}
|
|
6630
|
-
return (u,
|
|
6630
|
+
return (u, g) => (p(), f(z, null, [
|
|
6631
6631
|
o("div", bu, [
|
|
6632
6632
|
o("div", Su, [
|
|
6633
6633
|
o("div", Cu, [
|
|
@@ -6736,11 +6736,11 @@ const Zu = { class: "advanced-filters" }, Ju = { class: "advanced-filters__butto
|
|
|
6736
6736
|
},
|
|
6737
6737
|
setup(e) {
|
|
6738
6738
|
const s = e, t = Lt(
|
|
6739
|
-
() => import("./FilterSubcategories-
|
|
6739
|
+
() => import("./FilterSubcategories-b3171d1a.js")
|
|
6740
6740
|
), i = Lt(
|
|
6741
|
-
() => import("./FilterConditions-
|
|
6741
|
+
() => import("./FilterConditions-5a39ac12.js")
|
|
6742
6742
|
), n = Lt(
|
|
6743
|
-
() => import("./FilterField-
|
|
6743
|
+
() => import("./FilterField-2ed32f3b.js")
|
|
6744
6744
|
), a = [
|
|
6745
6745
|
{
|
|
6746
6746
|
name: "Sub categorías",
|
|
@@ -6764,7 +6764,7 @@ const Zu = { class: "advanced-filters" }, Ju = { class: "advanced-filters__butto
|
|
|
6764
6764
|
key: u.name,
|
|
6765
6765
|
role: "button",
|
|
6766
6766
|
class: ue(["advanced-filters__buttons__button", { active: l.value.name === u.name }]),
|
|
6767
|
-
onClick: (
|
|
6767
|
+
onClick: (g) => d(u)
|
|
6768
6768
|
}, B(u.name), 11, Ku)), 64))
|
|
6769
6769
|
]),
|
|
6770
6770
|
o("div", Xu, [
|
|
@@ -6815,7 +6815,7 @@ const Ke = (e) => (me("data-v-575b26b5"), e = e(), he(), e), e1 = { class: "cont
|
|
|
6815
6815
|
}, n = T(null), a = T(null);
|
|
6816
6816
|
T(null);
|
|
6817
6817
|
const l = T(null), r = T(null), d = T(null), c = T(null), m = T(!0), u = M(() => d.value ? d.value.position_id === 1 ? t.advancedFilterCategories.goalkeeper : t.advancedFilterCategories.player : []);
|
|
6818
|
-
function
|
|
6818
|
+
function g(k) {
|
|
6819
6819
|
n.value = k, s("update:tournament", k);
|
|
6820
6820
|
}
|
|
6821
6821
|
function y(k) {
|
|
@@ -6827,7 +6827,7 @@ const Ke = (e) => (me("data-v-575b26b5"), e = e(), he(), e), e1 = { class: "cont
|
|
|
6827
6827
|
function v(k) {
|
|
6828
6828
|
d.value = k;
|
|
6829
6829
|
}
|
|
6830
|
-
function
|
|
6830
|
+
function b(k) {
|
|
6831
6831
|
l.value = k;
|
|
6832
6832
|
}
|
|
6833
6833
|
function E(k) {
|
|
@@ -6842,7 +6842,7 @@ const Ke = (e) => (me("data-v-575b26b5"), e = e(), he(), e), e1 = { class: "cont
|
|
|
6842
6842
|
x(Ce, {
|
|
6843
6843
|
items: e.tournaments,
|
|
6844
6844
|
itemTextKey: "name",
|
|
6845
|
-
onInput:
|
|
6845
|
+
onInput: g
|
|
6846
6846
|
}, null, 8, ["items"])
|
|
6847
6847
|
])
|
|
6848
6848
|
])
|
|
@@ -6887,7 +6887,7 @@ const Ke = (e) => (me("data-v-575b26b5"), e = e(), he(), e), e1 = { class: "cont
|
|
|
6887
6887
|
a.value && a.value.mapGamesByTeam && r.value ? (p(), f("div", g1, [
|
|
6888
6888
|
x(Rt, {
|
|
6889
6889
|
items: a.value.mapGamesByTeam.get(r.value.team_id),
|
|
6890
|
-
onInput:
|
|
6890
|
+
onInput: b
|
|
6891
6891
|
}, null, 8, ["items"])
|
|
6892
6892
|
])) : P("", !0)
|
|
6893
6893
|
])
|
|
@@ -6960,22 +6960,22 @@ const ot = (e) => (me("data-v-6d73d5e6"), e = e(), he(), e), P1 = { class: "cont
|
|
|
6960
6960
|
}, n = T(null), a = T(null);
|
|
6961
6961
|
T(null);
|
|
6962
6962
|
const l = T(null), r = T(null), d = T(null), c = T(!0), m = M(() => t.advancedFilterCategories.team);
|
|
6963
|
-
function u(
|
|
6964
|
-
n.value =
|
|
6963
|
+
function u(b) {
|
|
6964
|
+
n.value = b, s("update:tournament", b);
|
|
6965
6965
|
}
|
|
6966
|
-
function b
|
|
6967
|
-
a.value =
|
|
6966
|
+
function g(b) {
|
|
6967
|
+
a.value = b, s("update:season", b);
|
|
6968
6968
|
}
|
|
6969
|
-
function y(
|
|
6970
|
-
r.value =
|
|
6969
|
+
function y(b) {
|
|
6970
|
+
r.value = b, s("update:team", b);
|
|
6971
6971
|
}
|
|
6972
|
-
function _(
|
|
6973
|
-
l.value =
|
|
6972
|
+
function _(b) {
|
|
6973
|
+
l.value = b;
|
|
6974
6974
|
}
|
|
6975
|
-
function v(
|
|
6976
|
-
d.value =
|
|
6975
|
+
function v(b) {
|
|
6976
|
+
d.value = b;
|
|
6977
6977
|
}
|
|
6978
|
-
return (
|
|
6978
|
+
return (b, E) => (p(), f(z, null, [
|
|
6979
6979
|
o("div", P1, [
|
|
6980
6980
|
o("div", I1, [
|
|
6981
6981
|
o("div", B1, [
|
|
@@ -6996,7 +6996,7 @@ const ot = (e) => (me("data-v-6d73d5e6"), e = e(), he(), e), P1 = { class: "cont
|
|
|
6996
6996
|
x(Ce, {
|
|
6997
6997
|
items: n.value.seasons,
|
|
6998
6998
|
itemTextKey: "name",
|
|
6999
|
-
onInput:
|
|
6999
|
+
onInput: g
|
|
7000
7000
|
}, null, 8, ["items"])
|
|
7001
7001
|
])) : P("", !0)
|
|
7002
7002
|
]),
|
|
@@ -7091,22 +7091,22 @@ const nt = (e) => (me("data-v-6e904db8"), e = e(), he(), e), ap = { class: "cont
|
|
|
7091
7091
|
borderColor: "#CBEE6B",
|
|
7092
7092
|
fontColor: "#132634"
|
|
7093
7093
|
}, n = T(null), a = T(null), l = T(null), r = T(null), d = T(null), c = T(!0), m = M(() => t.advancedFilterCategories.games);
|
|
7094
|
-
function u(
|
|
7095
|
-
n.value =
|
|
7094
|
+
function u(b) {
|
|
7095
|
+
n.value = b, s("update:tournament", b);
|
|
7096
7096
|
}
|
|
7097
|
-
function b
|
|
7098
|
-
a.value =
|
|
7097
|
+
function g(b) {
|
|
7098
|
+
a.value = b, s("update:season", b);
|
|
7099
7099
|
}
|
|
7100
|
-
function y(
|
|
7101
|
-
l.value =
|
|
7100
|
+
function y(b) {
|
|
7101
|
+
l.value = b;
|
|
7102
7102
|
}
|
|
7103
|
-
function _(
|
|
7104
|
-
r.value =
|
|
7103
|
+
function _(b) {
|
|
7104
|
+
r.value = b;
|
|
7105
7105
|
}
|
|
7106
|
-
function v(
|
|
7107
|
-
d.value =
|
|
7106
|
+
function v(b) {
|
|
7107
|
+
d.value = b;
|
|
7108
7108
|
}
|
|
7109
|
-
return (
|
|
7109
|
+
return (b, E) => (p(), f(z, null, [
|
|
7110
7110
|
o("div", ap, [
|
|
7111
7111
|
o("div", op, [
|
|
7112
7112
|
o("div", np, [
|
|
@@ -7127,7 +7127,7 @@ const nt = (e) => (me("data-v-6e904db8"), e = e(), he(), e), ap = { class: "cont
|
|
|
7127
7127
|
x(Ce, {
|
|
7128
7128
|
items: n.value.seasons,
|
|
7129
7129
|
itemTextKey: "name",
|
|
7130
|
-
onInput:
|
|
7130
|
+
onInput: g
|
|
7131
7131
|
}, null, 8, ["items"])
|
|
7132
7132
|
])) : P("", !0)
|
|
7133
7133
|
]),
|
|
@@ -7294,18 +7294,18 @@ const Pp = { class: "template-videos" }, Ip = { class: "template-videos__header"
|
|
|
7294
7294
|
name: "Partido",
|
|
7295
7295
|
componentName: "VideosGame"
|
|
7296
7296
|
}
|
|
7297
|
-
]), c = T([]), m = T(d.value[0]), u = T({}),
|
|
7297
|
+
]), c = T([]), m = T(d.value[0]), u = T({}), g = T({}), y = T({}), _ = T({}), v = T({
|
|
7298
7298
|
games: [],
|
|
7299
7299
|
player: [],
|
|
7300
7300
|
team: [],
|
|
7301
7301
|
goalkeeper: [],
|
|
7302
7302
|
isEmpty: !0
|
|
7303
|
-
}),
|
|
7303
|
+
}), b = T([]);
|
|
7304
7304
|
T({});
|
|
7305
7305
|
const E = T(null);
|
|
7306
7306
|
L(u, (F) => {
|
|
7307
|
-
|
|
7308
|
-
(
|
|
7307
|
+
g.value.numberSeasonSelectedIndex = g.value.seasons.findIndex(
|
|
7308
|
+
(V) => V.id === F.id
|
|
7309
7309
|
), F.arrayMatchDays ? (_.value = F.arrayMatchDays[0] || {}, y.value = F.arrayTeams[0] || {}) : (ve(F), _e(F));
|
|
7310
7310
|
}), L(y, () => {
|
|
7311
7311
|
setTimeout(() => {
|
|
@@ -7325,31 +7325,31 @@ const Pp = { class: "template-videos" }, Ip = { class: "template-videos__header"
|
|
|
7325
7325
|
try {
|
|
7326
7326
|
const F = {
|
|
7327
7327
|
Authorization: zt() || t.token
|
|
7328
|
-
},
|
|
7329
|
-
return U.data ? U.data.map((
|
|
7330
|
-
...
|
|
7331
|
-
seasons:
|
|
7328
|
+
}, V = {}.API_TOURNAMENTS || t.tournamentsUrl, U = await Ge.get(V, { headers: F });
|
|
7329
|
+
return U.data ? U.data.map((O) => ({
|
|
7330
|
+
...O.tournament,
|
|
7331
|
+
seasons: O.seasons
|
|
7332
7332
|
})) : [];
|
|
7333
7333
|
} catch (F) {
|
|
7334
7334
|
return Promise.reject(F);
|
|
7335
7335
|
}
|
|
7336
7336
|
}
|
|
7337
|
-
async function le(F,
|
|
7337
|
+
async function le(F, V, U = "") {
|
|
7338
7338
|
s("loading-data");
|
|
7339
|
-
let
|
|
7339
|
+
let O = U;
|
|
7340
7340
|
try {
|
|
7341
|
-
|
|
7342
|
-
|
|
7341
|
+
O || (O = {}.API_CALENDAR_GAMES_BY_SEASON || t.gamesUrl, F.forEach((Y, $) => {
|
|
7342
|
+
O += `${$ === 0 ? "" : "&"}seasons=${Y}`;
|
|
7343
7343
|
}));
|
|
7344
7344
|
const G = {
|
|
7345
7345
|
Authorization: zt() || t.token
|
|
7346
7346
|
}, {
|
|
7347
7347
|
data: { data: ie, teams: Q }
|
|
7348
|
-
} = await Ge.get(
|
|
7348
|
+
} = await Ge.get(O, { headers: G });
|
|
7349
7349
|
return { seasonsAndGames: ie, seasonsAndTeams: Q };
|
|
7350
7350
|
} catch (G) {
|
|
7351
|
-
if (
|
|
7352
|
-
return le(F,
|
|
7351
|
+
if (V > 0)
|
|
7352
|
+
return le(F, V - 1, O);
|
|
7353
7353
|
throw new Error(G);
|
|
7354
7354
|
} finally {
|
|
7355
7355
|
s("loading-data");
|
|
@@ -7357,27 +7357,27 @@ const Pp = { class: "template-videos" }, Ip = { class: "template-videos__header"
|
|
|
7357
7357
|
}
|
|
7358
7358
|
async function ne(F) {
|
|
7359
7359
|
try {
|
|
7360
|
-
const
|
|
7360
|
+
const V = {
|
|
7361
7361
|
Authorization: zt() || t.token
|
|
7362
|
-
},
|
|
7362
|
+
}, O = ` ${{}.API_PLAYERS_BY_SEASON || t.playersUrl}${F.seasonId}`, G = await Ge.get(O, { headers: V });
|
|
7363
7363
|
return G.data ? G.data.players : [];
|
|
7364
|
-
} catch (
|
|
7365
|
-
return Promise.reject(
|
|
7364
|
+
} catch (V) {
|
|
7365
|
+
return Promise.reject(V);
|
|
7366
7366
|
}
|
|
7367
7367
|
}
|
|
7368
7368
|
async function ve(F) {
|
|
7369
7369
|
try {
|
|
7370
|
-
const { seasonsAndGames:
|
|
7370
|
+
const { seasonsAndGames: V, seasonsAndTeams: U } = await le(
|
|
7371
7371
|
[
|
|
7372
7372
|
F.id,
|
|
7373
7373
|
...F.related_seasons.map((Q) => Q.id)
|
|
7374
7374
|
],
|
|
7375
7375
|
3
|
|
7376
|
-
),
|
|
7376
|
+
), O = U.find(
|
|
7377
7377
|
(Q) => Q._id === F.id
|
|
7378
7378
|
);
|
|
7379
7379
|
u.value.arrayTeams = [], u.value.mapTeams = /* @__PURE__ */ new Map();
|
|
7380
|
-
const G =
|
|
7380
|
+
const G = O.teams.reduce((Q, Y) => (u.value.arrayTeams.push(Y), u.value.mapTeams.set(Y.team_id, {
|
|
7381
7381
|
name: Y.colloquial_name,
|
|
7382
7382
|
acronym: Y.acronym,
|
|
7383
7383
|
logo: Y.logo,
|
|
@@ -7385,12 +7385,12 @@ const Pp = { class: "template-videos" }, Ip = { class: "template-videos__header"
|
|
|
7385
7385
|
}), Q.set(Y.team_id, Y), Q), /* @__PURE__ */ new Map());
|
|
7386
7386
|
y.value = u.value.arrayTeams[0], u.value.mapGames = /* @__PURE__ */ new Map(), u.value.mapGamesByTeam = /* @__PURE__ */ new Map();
|
|
7387
7387
|
const ie = Array.from(
|
|
7388
|
-
|
|
7388
|
+
V.reduce((Q, Y) => (Y.games.forEach(($) => {
|
|
7389
7389
|
if ($.game_status === 1 && $.has_video) {
|
|
7390
7390
|
(!u.value.maxGameId || $.game_id > u.value.maxGameId) && (u.value.maxGameId = $.game_id);
|
|
7391
7391
|
let j = $.matchday_abbreviation.replace("M", "J"), ae = $.matchday_abbreviation.replace("M", "Jornada ");
|
|
7392
7392
|
const de = $.matchday_abbreviation.replace("M", "");
|
|
7393
|
-
Y.season_type === 0 ?
|
|
7393
|
+
Y.season_type === 0 ? g.value.tournament_type === 1 && ($.seasonId === 881 ? (j = Jc[de] || j, ae = Zc[de] || ae) : (j = qi[$.matchday_abbreviation] ? $.matchday_abbreviation : j, ae = qi[$.matchday_abbreviation] || ae, j === "FINAL" && (j = "F"))) : Y.season_type === 1 ? (j = qc[$.matchday_abbreviation], ae = j) : (j = $.matchday_abbreviation.replace("PO", "R"), ae = "Repechaje"), $.roundAbbreviation = j, $.roundName = ae, u.value.mapGames.set($.game_id, {
|
|
7394
7394
|
id: $.game_id,
|
|
7395
7395
|
date: $.date,
|
|
7396
7396
|
dateTimeMillis: new Date($.date_time_utc).valueOf(),
|
|
@@ -7421,36 +7421,36 @@ const Pp = { class: "template-videos" }, Ip = { class: "template-videos__header"
|
|
|
7421
7421
|
ie.reverse(), ie.forEach((Q) => {
|
|
7422
7422
|
Q.arrayGames.sort((Y, $) => Y.numberDateTimeMillis - $.numberDateTimeMillis);
|
|
7423
7423
|
}), u.value.arrayMatchDays = ie, _.value = ie[0] || {};
|
|
7424
|
-
} catch (
|
|
7425
|
-
throw new Error(
|
|
7424
|
+
} catch (V) {
|
|
7425
|
+
throw new Error(V);
|
|
7426
7426
|
}
|
|
7427
7427
|
}
|
|
7428
7428
|
async function _e(F) {
|
|
7429
7429
|
try {
|
|
7430
|
-
const
|
|
7431
|
-
u.value.mapPlayers = /* @__PURE__ */ new Map(), u.value.mapPlayersByTeam =
|
|
7432
|
-
u.value.mapPlayers.set(
|
|
7433
|
-
id:
|
|
7434
|
-
name:
|
|
7435
|
-
shortName:
|
|
7436
|
-
photo:
|
|
7437
|
-
teamId:
|
|
7438
|
-
positionId:
|
|
7430
|
+
const V = await N(F.id);
|
|
7431
|
+
u.value.mapPlayers = /* @__PURE__ */ new Map(), u.value.mapPlayersByTeam = V.reduce((U, O) => {
|
|
7432
|
+
u.value.mapPlayers.set(O.player_id, {
|
|
7433
|
+
id: O.player_id,
|
|
7434
|
+
name: O.player_name,
|
|
7435
|
+
shortName: O.shortName,
|
|
7436
|
+
photo: O.player_photo,
|
|
7437
|
+
teamId: O.team_id,
|
|
7438
|
+
positionId: O.position_id
|
|
7439
7439
|
});
|
|
7440
|
-
const G = U.get(
|
|
7441
|
-
return G ? G.push(
|
|
7440
|
+
const G = U.get(O.team_id);
|
|
7441
|
+
return G ? G.push(O) : U.set(O.team_id, [O]), U;
|
|
7442
7442
|
}, /* @__PURE__ */ new Map());
|
|
7443
|
-
} catch (
|
|
7444
|
-
throw new Error(
|
|
7443
|
+
} catch (V) {
|
|
7444
|
+
throw new Error(V);
|
|
7445
7445
|
}
|
|
7446
7446
|
}
|
|
7447
7447
|
async function fe() {
|
|
7448
7448
|
try {
|
|
7449
7449
|
let F = [];
|
|
7450
|
-
v.value.isEmpty ? (F = await w(),
|
|
7450
|
+
v.value.isEmpty ? (F = await w(), b.value = {
|
|
7451
7451
|
...F
|
|
7452
|
-
}) : F =
|
|
7453
|
-
const
|
|
7452
|
+
}) : F = b.value;
|
|
7453
|
+
const V = [];
|
|
7454
7454
|
if (F && F.length) {
|
|
7455
7455
|
v.value = F.reduce(
|
|
7456
7456
|
(Y, $) => {
|
|
@@ -7473,7 +7473,7 @@ const Pp = { class: "template-videos" }, Ip = { class: "template-videos__header"
|
|
|
7473
7473
|
!1,
|
|
7474
7474
|
{},
|
|
7475
7475
|
j.idsAux
|
|
7476
|
-
),
|
|
7476
|
+
), V.push(j), j.type.includes(r.player) && Y.player.push(j), j.type.includes(r.team) && (j.idAux !== "g-2" && Y.games.push(j), Y.team.push(j)), j.type.includes(r.goalkeeper) && Y.goalkeeper.push(j);
|
|
7477
7477
|
}
|
|
7478
7478
|
return Y;
|
|
7479
7479
|
},
|
|
@@ -7485,7 +7485,7 @@ const Pp = { class: "template-videos" }, Ip = { class: "template-videos__header"
|
|
|
7485
7485
|
isEmpty: !1
|
|
7486
7486
|
}
|
|
7487
7487
|
);
|
|
7488
|
-
const U = /* @__PURE__ */ new Map(),
|
|
7488
|
+
const U = /* @__PURE__ */ new Map(), O = "Resumen", G = "Todas sus jugadas", ie = v.value.player.reduce(
|
|
7489
7489
|
(Y, $) => {
|
|
7490
7490
|
const j = Ee($);
|
|
7491
7491
|
return j.forEach((ae) => {
|
|
@@ -7503,16 +7503,16 @@ const Pp = { class: "template-videos" }, Ip = { class: "template-videos__header"
|
|
|
7503
7503
|
[]
|
|
7504
7504
|
);
|
|
7505
7505
|
v.value.games.unshift({
|
|
7506
|
-
name:
|
|
7506
|
+
name: O,
|
|
7507
7507
|
arrayCategoriesIds: l.games,
|
|
7508
7508
|
booleanIsBestPlays: !0
|
|
7509
7509
|
}), v.value.team.unshift({
|
|
7510
|
-
name:
|
|
7510
|
+
name: O,
|
|
7511
7511
|
arrayCategoriesIds: l.team,
|
|
7512
7512
|
booleanIsBestPlays: !0
|
|
7513
7513
|
}), v.value.player.unshift(
|
|
7514
7514
|
{
|
|
7515
|
-
name:
|
|
7515
|
+
name: O,
|
|
7516
7516
|
arrayCategoriesIds: l.player.regular,
|
|
7517
7517
|
booleanIsBestPlays: !0
|
|
7518
7518
|
},
|
|
@@ -7523,7 +7523,7 @@ const Pp = { class: "template-videos" }, Ip = { class: "template-videos__header"
|
|
|
7523
7523
|
}
|
|
7524
7524
|
), v.value.goalkeeper.unshift(
|
|
7525
7525
|
{
|
|
7526
|
-
name:
|
|
7526
|
+
name: O,
|
|
7527
7527
|
arrayCategoriesIds: l.player.goalkeeper,
|
|
7528
7528
|
booleanIsBestPlays: !0
|
|
7529
7529
|
},
|
|
@@ -7538,24 +7538,24 @@ const Pp = { class: "template-videos" }, Ip = { class: "template-videos__header"
|
|
|
7538
7538
|
throw new Error(F);
|
|
7539
7539
|
}
|
|
7540
7540
|
}
|
|
7541
|
-
function ge(F,
|
|
7541
|
+
function ge(F, V = 0, U = /* @__PURE__ */ new Map(), O = !1, G = {}, ie = []) {
|
|
7542
7542
|
if (!F.group_id)
|
|
7543
7543
|
return;
|
|
7544
|
-
let Q = U.get(
|
|
7545
|
-
const Y =
|
|
7544
|
+
let Q = U.get(V);
|
|
7545
|
+
const Y = O ? `${F.id_category}_r` : F.id_category;
|
|
7546
7546
|
F.id_category && ie.push(F.id_category);
|
|
7547
7547
|
let $ = {
|
|
7548
7548
|
ids: [Y],
|
|
7549
7549
|
groupId: F.group_id,
|
|
7550
|
-
level:
|
|
7550
|
+
level: V,
|
|
7551
7551
|
name: F.name,
|
|
7552
7552
|
isSelected: !0,
|
|
7553
|
-
fatherCategories:
|
|
7553
|
+
fatherCategories: V > 0 ? [G] : [],
|
|
7554
7554
|
idsByFatherCategory: {
|
|
7555
7555
|
[F.category_father]: [Y]
|
|
7556
7556
|
}
|
|
7557
7557
|
};
|
|
7558
|
-
if (
|
|
7558
|
+
if (V > 0 && V === 1 && ($.id = F.id_category), Q && V !== 0) {
|
|
7559
7559
|
const j = F.group_id.charAt(F.group_id.length - 1), ae = Q.find(
|
|
7560
7560
|
(de) => de.groupId.endsWith(j)
|
|
7561
7561
|
);
|
|
@@ -7569,76 +7569,76 @@ const Pp = { class: "template-videos" }, Ip = { class: "template-videos__header"
|
|
|
7569
7569
|
) || de.childCategories.push($) : de.childCategories = [$];
|
|
7570
7570
|
}), Q.push($));
|
|
7571
7571
|
} else
|
|
7572
|
-
|
|
7572
|
+
V !== 0 && (G.childCategories ? G.childCategories.push($) : G.childCategories = [$], Q = [$], U.set(V, Q));
|
|
7573
7573
|
if (F.categories && F.categories.length ? F.categories.forEach((j) => {
|
|
7574
7574
|
ge(
|
|
7575
7575
|
j,
|
|
7576
|
-
|
|
7576
|
+
V + 1,
|
|
7577
7577
|
U,
|
|
7578
|
-
|
|
7578
|
+
O,
|
|
7579
7579
|
$,
|
|
7580
7580
|
ie
|
|
7581
7581
|
);
|
|
7582
7582
|
}) : F.rival_categories && F.rival_categories.length && F.rival_categories.forEach((j) => {
|
|
7583
7583
|
ge(
|
|
7584
7584
|
j,
|
|
7585
|
-
|
|
7585
|
+
V + 1,
|
|
7586
7586
|
U,
|
|
7587
7587
|
!0,
|
|
7588
7588
|
$,
|
|
7589
7589
|
ie
|
|
7590
7590
|
);
|
|
7591
|
-
}),
|
|
7591
|
+
}), V === 0)
|
|
7592
7592
|
return Array.from(U.values());
|
|
7593
7593
|
}
|
|
7594
7594
|
function Ee(F) {
|
|
7595
|
-
const
|
|
7596
|
-
if (
|
|
7597
|
-
return
|
|
7595
|
+
const V = F || F;
|
|
7596
|
+
if (V.booleanIsBestPlays)
|
|
7597
|
+
return V.arrayCategoriesIds;
|
|
7598
7598
|
const U = { total: [], toRemove: [] };
|
|
7599
|
-
if (
|
|
7599
|
+
if (V.subcategoryGroups && V.subcategoryGroups.length ? V.subcategoryGroups[0].forEach((G) => {
|
|
7600
7600
|
R(G, null, U);
|
|
7601
|
-
}) : (
|
|
7602
|
-
U.total.push(`${
|
|
7603
|
-
})), U.total = U.total.reduce((
|
|
7604
|
-
const G =
|
|
7605
|
-
E.value.isRivalSubject = G, E.value.avoidCategorySingleName = G, E.value.coordinatePoint =
|
|
7601
|
+
}) : (V.ids && U.total.push(...V.ids), V.rival_ids && V.rival_ids.forEach((O) => {
|
|
7602
|
+
U.total.push(`${O}_r`);
|
|
7603
|
+
})), U.total = U.total.reduce((O, G) => (U.toRemove.includes(G) || O.push(G), O), []), !F) {
|
|
7604
|
+
const G = V.name.toLowerCase().includes("recibid");
|
|
7605
|
+
E.value.isRivalSubject = G, E.value.avoidCategorySingleName = G, E.value.coordinatePoint = V.coordinatePoint, E.value.requiresRivalTransform = V.requiresRivalTransform;
|
|
7606
7606
|
}
|
|
7607
7607
|
return U.total;
|
|
7608
7608
|
}
|
|
7609
|
-
function R(F,
|
|
7610
|
-
F.isSelected ? F.childCategories ? F.childCategories.forEach((
|
|
7611
|
-
const G =
|
|
7609
|
+
function R(F, V = [], U = { total: [], toRemove: [] }) {
|
|
7610
|
+
F.isSelected ? F.childCategories ? F.childCategories.forEach((O) => {
|
|
7611
|
+
const G = V ? Object.entries(F.idsByFatherCategory).reduce((ie, [Q, Y]) => (V.includes(Number(Q)) && Y.forEach(($) => {
|
|
7612
7612
|
typeof $ == "string" && $.endsWith("_r") ? ie.push(Number($.split("_")[0])) : ie.push($);
|
|
7613
7613
|
}), ie), []) : [F.id];
|
|
7614
|
-
R(
|
|
7615
|
-
}) :
|
|
7616
|
-
|
|
7614
|
+
R(O, G, U);
|
|
7615
|
+
}) : V ? Object.entries(F.idsByFatherCategory).forEach(([O, G]) => {
|
|
7616
|
+
V.includes(Number(O)) && G.forEach((ie) => {
|
|
7617
7617
|
U.total.push(ie);
|
|
7618
7618
|
});
|
|
7619
|
-
}) : F.level === 1 ? Object.entries(F.idsByFatherCategory).forEach(([
|
|
7619
|
+
}) : F.level === 1 ? Object.entries(F.idsByFatherCategory).forEach(([O, G]) => {
|
|
7620
7620
|
G.forEach((ie) => {
|
|
7621
7621
|
U.total.push(ie);
|
|
7622
7622
|
});
|
|
7623
|
-
}) : U.total.push(F.id) : F.childCategories || F.ids.forEach((
|
|
7624
|
-
U.toRemove.push(
|
|
7623
|
+
}) : U.total.push(F.id) : F.childCategories || F.ids.forEach((O) => {
|
|
7624
|
+
U.toRemove.push(O);
|
|
7625
7625
|
});
|
|
7626
7626
|
}
|
|
7627
7627
|
async function N(F) {
|
|
7628
7628
|
try {
|
|
7629
|
-
const
|
|
7629
|
+
const V = await ne({
|
|
7630
7630
|
seasonId: F
|
|
7631
7631
|
});
|
|
7632
|
-
return
|
|
7633
|
-
const [
|
|
7632
|
+
return V.forEach((U) => {
|
|
7633
|
+
const [O, G] = U.player_name.split(","), ie = O.split(" ");
|
|
7634
7634
|
let Q = "";
|
|
7635
7635
|
for (const Y of ie)
|
|
7636
7636
|
if (Q += ` ${Y}`, Y.length > 3)
|
|
7637
7637
|
break;
|
|
7638
|
-
U.shortName = G &&
|
|
7639
|
-
}),
|
|
7640
|
-
} catch (
|
|
7641
|
-
return Promise.reject(
|
|
7638
|
+
U.shortName = G && O ? `${G.trim().charAt(0)}.${Q}` : "";
|
|
7639
|
+
}), V;
|
|
7640
|
+
} catch (V) {
|
|
7641
|
+
return Promise.reject(V);
|
|
7642
7642
|
}
|
|
7643
7643
|
}
|
|
7644
7644
|
async function w() {
|
|
@@ -7658,7 +7658,7 @@ const Pp = { class: "template-videos" }, Ip = { class: "template-videos__header"
|
|
|
7658
7658
|
m.value = F;
|
|
7659
7659
|
}
|
|
7660
7660
|
function re(F) {
|
|
7661
|
-
|
|
7661
|
+
g.value = F, u.value = F.seasons[0];
|
|
7662
7662
|
}
|
|
7663
7663
|
function Ie(F) {
|
|
7664
7664
|
u.value = F;
|
|
@@ -7666,7 +7666,7 @@ const Pp = { class: "template-videos" }, Ip = { class: "template-videos__header"
|
|
|
7666
7666
|
function $e(F) {
|
|
7667
7667
|
y.value = F;
|
|
7668
7668
|
}
|
|
7669
|
-
return k(), fe(), (F,
|
|
7669
|
+
return k(), fe(), (F, V) => (p(), f("div", Pp, [
|
|
7670
7670
|
o("div", Ip, [
|
|
7671
7671
|
(p(!0), f(z, null, te(d.value, (U) => (p(), ke(mt, ye({
|
|
7672
7672
|
key: U.name
|
|
@@ -7674,7 +7674,7 @@ const Pp = { class: "template-videos" }, Ip = { class: "template-videos__header"
|
|
|
7674
7674
|
text: U.name,
|
|
7675
7675
|
"is-active": m.value.componentName === U.componentName,
|
|
7676
7676
|
tournaments: c.value,
|
|
7677
|
-
onClick: (
|
|
7677
|
+
onClick: (O) => ee(U)
|
|
7678
7678
|
}), null, 16, ["text", "is-active", "tournaments", "onClick"]))), 128))
|
|
7679
7679
|
]),
|
|
7680
7680
|
o("div", Bp, [
|
|
@@ -7719,13 +7719,13 @@ const Vp = { class: "template-taken-corners" }, Lp = { class: "template-taken-co
|
|
|
7719
7719
|
},
|
|
7720
7720
|
emits: ["change-filters-selected", "update:filters"],
|
|
7721
7721
|
setup(e, { expose: s, emit: t }) {
|
|
7722
|
-
const i = e, n = T(!1), a = T([]), l = M(() => i.isExpansionMode ? "Cobradores filtrados:" : "Cobradores con los filtros seleccionados"), r = M(() => a.value.reduce((v,
|
|
7722
|
+
const i = e, n = T(!1), a = T([]), l = M(() => i.isExpansionMode ? "Cobradores filtrados:" : "Cobradores con los filtros seleccionados"), r = M(() => a.value.reduce((v, b) => b.isSelected ? v + 1 : v, 0));
|
|
7723
7723
|
L(
|
|
7724
7724
|
() => i.takenCornersFilters,
|
|
7725
7725
|
(v) => {
|
|
7726
|
-
a.value = v.map((
|
|
7727
|
-
const E = { ...
|
|
7728
|
-
return (
|
|
7726
|
+
a.value = v.map((b) => {
|
|
7727
|
+
const E = { ...b };
|
|
7728
|
+
return (b.isSelected === void 0 || b.isSelected === null) && (E.isSelected = !0), E;
|
|
7729
7729
|
});
|
|
7730
7730
|
},
|
|
7731
7731
|
{ immediate: !0, deep: !0 }
|
|
@@ -7743,20 +7743,20 @@ const Vp = { class: "template-taken-corners" }, Lp = { class: "template-taken-co
|
|
|
7743
7743
|
return `https://golstatsimages.blob.core.windows.net/players-profile/${v}.png`;
|
|
7744
7744
|
}
|
|
7745
7745
|
function m(v) {
|
|
7746
|
-
let
|
|
7747
|
-
return v.split(" ").reduce((k, H) => (
|
|
7746
|
+
let b = !1;
|
|
7747
|
+
return v.split(" ").reduce((k, H) => (b || (H.length > 3 ? (k = H, b = !0) : k += `${H} `), k), "").trim();
|
|
7748
7748
|
}
|
|
7749
7749
|
function u(v) {
|
|
7750
7750
|
return `${m(v.last_name)}, ${v.first_name.trim()}`;
|
|
7751
7751
|
}
|
|
7752
|
-
function
|
|
7752
|
+
function g(v) {
|
|
7753
7753
|
return i.isFemale ? Zi.get(v.positions[0]).replace("Portero", "Portera").replace("Delantero", "Delantera").replace("Volante defensivo", "Volante defensiva").replace("Volante ofensivo", "Volante ofensiva") : Zi.get(v.positions[0]);
|
|
7754
7754
|
}
|
|
7755
7755
|
function y(v) {
|
|
7756
|
-
v ? a.value.forEach((
|
|
7757
|
-
|
|
7758
|
-
}) : a.value.forEach((
|
|
7759
|
-
|
|
7756
|
+
v ? a.value.forEach((b) => {
|
|
7757
|
+
b.isSelected = !0;
|
|
7758
|
+
}) : a.value.forEach((b, E) => {
|
|
7759
|
+
b.isSelected = E === 0;
|
|
7760
7760
|
});
|
|
7761
7761
|
}
|
|
7762
7762
|
function _() {
|
|
@@ -7766,7 +7766,7 @@ const Vp = { class: "template-taken-corners" }, Lp = { class: "template-taken-co
|
|
|
7766
7766
|
}
|
|
7767
7767
|
return s({
|
|
7768
7768
|
clearFilters: _
|
|
7769
|
-
}), (v,
|
|
7769
|
+
}), (v, b) => (p(), f("div", Vp, [
|
|
7770
7770
|
o("div", Lp, [
|
|
7771
7771
|
o("div", {
|
|
7772
7772
|
class: "template-taken-corners__header__text",
|
|
@@ -7809,7 +7809,7 @@ const Vp = { class: "template-taken-corners" }, Lp = { class: "template-taken-co
|
|
|
7809
7809
|
alt: "country flag"
|
|
7810
7810
|
}, null, 8, Jp)
|
|
7811
7811
|
]),
|
|
7812
|
-
o("div", Kp, B(
|
|
7812
|
+
o("div", Kp, B(g(E)), 1)
|
|
7813
7813
|
])
|
|
7814
7814
|
]),
|
|
7815
7815
|
o("div", Xp, [
|
|
@@ -8132,7 +8132,7 @@ const Ue = (e) => (me("data-v-378bf7e2"), e = e(), he(), e), _f = { class: "temp
|
|
|
8132
8132
|
o("div", Cf, [
|
|
8133
8133
|
(p(), f("svg", xf, [
|
|
8134
8134
|
o("rect", {
|
|
8135
|
-
onClick: u[0] || (u[0] = (
|
|
8135
|
+
onClick: u[0] || (u[0] = (g) => d(1)),
|
|
8136
8136
|
class: "sector-field",
|
|
8137
8137
|
x: "0.347042",
|
|
8138
8138
|
y: "0.347042",
|
|
@@ -8144,7 +8144,7 @@ const Ue = (e) => (me("data-v-378bf7e2"), e = e(), he(), e), _f = { class: "temp
|
|
|
8144
8144
|
fill: a.value.includes(1) ? "#FFFF0030" : "#2e3b46"
|
|
8145
8145
|
}, null, 8, wf),
|
|
8146
8146
|
o("rect", {
|
|
8147
|
-
onClick: u[1] || (u[1] = (
|
|
8147
|
+
onClick: u[1] || (u[1] = (g) => d(9)),
|
|
8148
8148
|
class: "sector-field",
|
|
8149
8149
|
x: "288.347",
|
|
8150
8150
|
y: "0.347042",
|
|
@@ -8156,7 +8156,7 @@ const Ue = (e) => (me("data-v-378bf7e2"), e = e(), he(), e), _f = { class: "temp
|
|
|
8156
8156
|
fill: a.value.includes(9) ? "#FFFF0030" : "#2e3b46"
|
|
8157
8157
|
}, null, 8, Tf),
|
|
8158
8158
|
o("rect", {
|
|
8159
|
-
onClick: u[2] || (u[2] = (
|
|
8159
|
+
onClick: u[2] || (u[2] = (g) => d(17)),
|
|
8160
8160
|
class: "sector-field",
|
|
8161
8161
|
x: "0.347042",
|
|
8162
8162
|
y: "44.347",
|
|
@@ -8168,7 +8168,7 @@ const Ue = (e) => (me("data-v-378bf7e2"), e = e(), he(), e), _f = { class: "temp
|
|
|
8168
8168
|
fill: a.value.includes(17) ? "#FFFF0030" : "#2e3b46"
|
|
8169
8169
|
}, null, 8, kf),
|
|
8170
8170
|
o("rect", {
|
|
8171
|
-
onClick: u[3] || (u[3] = (
|
|
8171
|
+
onClick: u[3] || (u[3] = (g) => d(25)),
|
|
8172
8172
|
class: "sector-field",
|
|
8173
8173
|
x: "288.347",
|
|
8174
8174
|
y: "44.347",
|
|
@@ -8180,7 +8180,7 @@ const Ue = (e) => (me("data-v-378bf7e2"), e = e(), he(), e), _f = { class: "temp
|
|
|
8180
8180
|
fill: a.value.includes(25) ? "#FFFF0030" : "#2e3b46"
|
|
8181
8181
|
}, null, 8, Ff),
|
|
8182
8182
|
o("rect", {
|
|
8183
|
-
onClick: u[4] || (u[4] = (
|
|
8183
|
+
onClick: u[4] || (u[4] = (g) => d(26)),
|
|
8184
8184
|
class: "sector-field",
|
|
8185
8185
|
x: "0.347042",
|
|
8186
8186
|
y: "88.347",
|
|
@@ -8192,7 +8192,7 @@ const Ue = (e) => (me("data-v-378bf7e2"), e = e(), he(), e), _f = { class: "temp
|
|
|
8192
8192
|
fill: a.value.includes(26) ? "#FFFF0030" : "#2e3b46"
|
|
8193
8193
|
}, null, 8, Ef),
|
|
8194
8194
|
o("rect", {
|
|
8195
|
-
onClick: u[5] || (u[5] = (
|
|
8195
|
+
onClick: u[5] || (u[5] = (g) => d(27)),
|
|
8196
8196
|
class: "sector-field",
|
|
8197
8197
|
x: "91.347",
|
|
8198
8198
|
y: "88.347",
|
|
@@ -8204,7 +8204,7 @@ const Ue = (e) => (me("data-v-378bf7e2"), e = e(), he(), e), _f = { class: "temp
|
|
|
8204
8204
|
fill: a.value.includes(27) ? "#FFFF0030" : "#2e3b46"
|
|
8205
8205
|
}, null, 8, $f),
|
|
8206
8206
|
o("rect", {
|
|
8207
|
-
onClick: u[6] || (u[6] = (
|
|
8207
|
+
onClick: u[6] || (u[6] = (g) => d(28)),
|
|
8208
8208
|
class: "sector-field",
|
|
8209
8209
|
x: "157.015",
|
|
8210
8210
|
y: "88.347",
|
|
@@ -8216,7 +8216,7 @@ const Ue = (e) => (me("data-v-378bf7e2"), e = e(), he(), e), _f = { class: "temp
|
|
|
8216
8216
|
fill: a.value.includes(28) ? "#FFFF0030" : "#2e3b46"
|
|
8217
8217
|
}, null, 8, Af),
|
|
8218
8218
|
o("rect", {
|
|
8219
|
-
onClick: u[7] || (u[7] = (
|
|
8219
|
+
onClick: u[7] || (u[7] = (g) => d(29)),
|
|
8220
8220
|
class: "sector-field",
|
|
8221
8221
|
x: "222.679",
|
|
8222
8222
|
y: "88.347",
|
|
@@ -8228,7 +8228,7 @@ const Ue = (e) => (me("data-v-378bf7e2"), e = e(), he(), e), _f = { class: "temp
|
|
|
8228
8228
|
fill: a.value.includes(29) ? "#FFFF0030" : "#2e3b46"
|
|
8229
8229
|
}, null, 8, Pf),
|
|
8230
8230
|
o("rect", {
|
|
8231
|
-
onClick: u[8] || (u[8] = (
|
|
8231
|
+
onClick: u[8] || (u[8] = (g) => d(30)),
|
|
8232
8232
|
class: "sector-field",
|
|
8233
8233
|
x: "288.347",
|
|
8234
8234
|
y: "88.347",
|
|
@@ -8240,7 +8240,7 @@ const Ue = (e) => (me("data-v-378bf7e2"), e = e(), he(), e), _f = { class: "temp
|
|
|
8240
8240
|
fill: a.value.includes(30) ? "#FFFF0030" : "#2e3b46"
|
|
8241
8241
|
}, null, 8, If),
|
|
8242
8242
|
o("rect", {
|
|
8243
|
-
onClick: u[9] || (u[9] = (
|
|
8243
|
+
onClick: u[9] || (u[9] = (g) => d(31)),
|
|
8244
8244
|
class: "sector-field",
|
|
8245
8245
|
x: "0.347042",
|
|
8246
8246
|
y: "132.347",
|
|
@@ -8252,7 +8252,7 @@ const Ue = (e) => (me("data-v-378bf7e2"), e = e(), he(), e), _f = { class: "temp
|
|
|
8252
8252
|
fill: a.value.includes(31) ? "#FFFF0030" : "#2e3b46"
|
|
8253
8253
|
}, null, 8, Bf),
|
|
8254
8254
|
o("rect", {
|
|
8255
|
-
onClick: u[10] || (u[10] = (
|
|
8255
|
+
onClick: u[10] || (u[10] = (g) => d(32)),
|
|
8256
8256
|
class: "sector-field",
|
|
8257
8257
|
x: "91.347",
|
|
8258
8258
|
y: "132.347",
|
|
@@ -8264,7 +8264,7 @@ const Ue = (e) => (me("data-v-378bf7e2"), e = e(), he(), e), _f = { class: "temp
|
|
|
8264
8264
|
fill: a.value.includes(32) ? "#FFFF0030" : "#2e3b46"
|
|
8265
8265
|
}, null, 8, Mf),
|
|
8266
8266
|
o("rect", {
|
|
8267
|
-
onClick: u[11] || (u[11] = (
|
|
8267
|
+
onClick: u[11] || (u[11] = (g) => d(33)),
|
|
8268
8268
|
class: "sector-field",
|
|
8269
8269
|
x: "157.015",
|
|
8270
8270
|
y: "132.347",
|
|
@@ -8276,7 +8276,7 @@ const Ue = (e) => (me("data-v-378bf7e2"), e = e(), he(), e), _f = { class: "temp
|
|
|
8276
8276
|
fill: a.value.includes(33) ? "#FFFF0030" : "#2e3b46"
|
|
8277
8277
|
}, null, 8, Rf),
|
|
8278
8278
|
o("rect", {
|
|
8279
|
-
onClick: u[12] || (u[12] = (
|
|
8279
|
+
onClick: u[12] || (u[12] = (g) => d(34)),
|
|
8280
8280
|
class: "sector-field",
|
|
8281
8281
|
x: "222.679",
|
|
8282
8282
|
y: "132.347",
|
|
@@ -8288,7 +8288,7 @@ const Ue = (e) => (me("data-v-378bf7e2"), e = e(), he(), e), _f = { class: "temp
|
|
|
8288
8288
|
fill: a.value.includes(34) ? "#FFFF0030" : "#2e3b46"
|
|
8289
8289
|
}, null, 8, Of),
|
|
8290
8290
|
o("rect", {
|
|
8291
|
-
onClick: u[13] || (u[13] = (
|
|
8291
|
+
onClick: u[13] || (u[13] = (g) => d(35)),
|
|
8292
8292
|
class: "sector-field",
|
|
8293
8293
|
x: "288.347",
|
|
8294
8294
|
y: "132.347",
|
|
@@ -8300,7 +8300,7 @@ const Ue = (e) => (me("data-v-378bf7e2"), e = e(), he(), e), _f = { class: "temp
|
|
|
8300
8300
|
fill: a.value.includes(35) ? "#FFFF0030" : "#2e3b46"
|
|
8301
8301
|
}, null, 8, Vf),
|
|
8302
8302
|
o("rect", {
|
|
8303
|
-
onClick: u[14] || (u[14] = (
|
|
8303
|
+
onClick: u[14] || (u[14] = (g) => d(2)),
|
|
8304
8304
|
class: "sector-field",
|
|
8305
8305
|
x: "91.347",
|
|
8306
8306
|
y: "0.347042",
|
|
@@ -8312,7 +8312,7 @@ const Ue = (e) => (me("data-v-378bf7e2"), e = e(), he(), e), _f = { class: "temp
|
|
|
8312
8312
|
fill: a.value.includes(2) ? "#FFFF0030" : "#2e3b46"
|
|
8313
8313
|
}, null, 8, Lf),
|
|
8314
8314
|
o("rect", {
|
|
8315
|
-
onClick: u[15] || (u[15] = (
|
|
8315
|
+
onClick: u[15] || (u[15] = (g) => d(3)),
|
|
8316
8316
|
class: "sector-field",
|
|
8317
8317
|
x: "114.347",
|
|
8318
8318
|
y: "0.347042",
|
|
@@ -8324,7 +8324,7 @@ const Ue = (e) => (me("data-v-378bf7e2"), e = e(), he(), e), _f = { class: "temp
|
|
|
8324
8324
|
fill: a.value.includes(3) ? "#FFFF0030" : "#2e3b46"
|
|
8325
8325
|
}, null, 8, Nf),
|
|
8326
8326
|
o("rect", {
|
|
8327
|
-
onClick: u[16] || (u[16] = (
|
|
8327
|
+
onClick: u[16] || (u[16] = (g) => d(4)),
|
|
8328
8328
|
class: "sector-field",
|
|
8329
8329
|
x: "137.347",
|
|
8330
8330
|
y: "0.347042",
|
|
@@ -8336,7 +8336,7 @@ const Ue = (e) => (me("data-v-378bf7e2"), e = e(), he(), e), _f = { class: "temp
|
|
|
8336
8336
|
fill: a.value.includes(4) ? "#FFFF0030" : "#2e3b46"
|
|
8337
8337
|
}, null, 8, Df),
|
|
8338
8338
|
o("rect", {
|
|
8339
|
-
onClick: u[17] || (u[17] = (
|
|
8339
|
+
onClick: u[17] || (u[17] = (g) => d(5)),
|
|
8340
8340
|
class: "sector-field",
|
|
8341
8341
|
x: "172.347",
|
|
8342
8342
|
y: "0.347042",
|
|
@@ -8348,7 +8348,7 @@ const Ue = (e) => (me("data-v-378bf7e2"), e = e(), he(), e), _f = { class: "temp
|
|
|
8348
8348
|
fill: a.value.includes(5) ? "#FFFF0030" : "#2e3b46"
|
|
8349
8349
|
}, null, 8, Uf),
|
|
8350
8350
|
o("rect", {
|
|
8351
|
-
onClick: u[18] || (u[18] = (
|
|
8351
|
+
onClick: u[18] || (u[18] = (g) => d(6)),
|
|
8352
8352
|
class: "sector-field",
|
|
8353
8353
|
x: "207.347",
|
|
8354
8354
|
y: "0.347042",
|
|
@@ -8360,7 +8360,7 @@ const Ue = (e) => (me("data-v-378bf7e2"), e = e(), he(), e), _f = { class: "temp
|
|
|
8360
8360
|
fill: a.value.includes(6) ? "#FFFF0030" : "#2e3b46"
|
|
8361
8361
|
}, null, 8, zf),
|
|
8362
8362
|
o("rect", {
|
|
8363
|
-
onClick: u[19] || (u[19] = (
|
|
8363
|
+
onClick: u[19] || (u[19] = (g) => d(7)),
|
|
8364
8364
|
class: "sector-field",
|
|
8365
8365
|
x: "242.347",
|
|
8366
8366
|
y: "0.347042",
|
|
@@ -8372,7 +8372,7 @@ const Ue = (e) => (me("data-v-378bf7e2"), e = e(), he(), e), _f = { class: "temp
|
|
|
8372
8372
|
fill: a.value.includes(7) ? "#FFFF0030" : "#2e3b46"
|
|
8373
8373
|
}, null, 8, Wf),
|
|
8374
8374
|
o("rect", {
|
|
8375
|
-
onClick: u[20] || (u[20] = (
|
|
8375
|
+
onClick: u[20] || (u[20] = (g) => d(8)),
|
|
8376
8376
|
class: "sector-field",
|
|
8377
8377
|
x: "265.347",
|
|
8378
8378
|
y: "0.347042",
|
|
@@ -8384,7 +8384,7 @@ const Ue = (e) => (me("data-v-378bf7e2"), e = e(), he(), e), _f = { class: "temp
|
|
|
8384
8384
|
fill: a.value.includes(8) ? "#FFFF0030" : "#2e3b46"
|
|
8385
8385
|
}, null, 8, Hf),
|
|
8386
8386
|
o("rect", {
|
|
8387
|
-
onClick: u[21] || (u[21] = (
|
|
8387
|
+
onClick: u[21] || (u[21] = (g) => d(10)),
|
|
8388
8388
|
class: "sector-field",
|
|
8389
8389
|
x: "91.347",
|
|
8390
8390
|
y: "29.6804",
|
|
@@ -8396,7 +8396,7 @@ const Ue = (e) => (me("data-v-378bf7e2"), e = e(), he(), e), _f = { class: "temp
|
|
|
8396
8396
|
fill: a.value.includes(10) ? "#FFFF0030" : "#2e3b46"
|
|
8397
8397
|
}, null, 8, Yf),
|
|
8398
8398
|
o("rect", {
|
|
8399
|
-
onClick: u[22] || (u[22] = (
|
|
8399
|
+
onClick: u[22] || (u[22] = (g) => d(11)),
|
|
8400
8400
|
class: "sector-field",
|
|
8401
8401
|
x: "114.347",
|
|
8402
8402
|
y: "29.6804",
|
|
@@ -8408,7 +8408,7 @@ const Ue = (e) => (me("data-v-378bf7e2"), e = e(), he(), e), _f = { class: "temp
|
|
|
8408
8408
|
fill: a.value.includes(11) ? "#FFFF0030" : "#2e3b46"
|
|
8409
8409
|
}, null, 8, Gf),
|
|
8410
8410
|
o("rect", {
|
|
8411
|
-
onClick: u[23] || (u[23] = (
|
|
8411
|
+
onClick: u[23] || (u[23] = (g) => d(12)),
|
|
8412
8412
|
class: "sector-field",
|
|
8413
8413
|
x: "137.347",
|
|
8414
8414
|
y: "29.6804",
|
|
@@ -8420,7 +8420,7 @@ const Ue = (e) => (me("data-v-378bf7e2"), e = e(), he(), e), _f = { class: "temp
|
|
|
8420
8420
|
fill: a.value.includes(12) ? "#FFFF0030" : "#2e3b46"
|
|
8421
8421
|
}, null, 8, jf),
|
|
8422
8422
|
o("rect", {
|
|
8423
|
-
onClick: u[24] || (u[24] = (
|
|
8423
|
+
onClick: u[24] || (u[24] = (g) => d(13)),
|
|
8424
8424
|
class: "sector-field",
|
|
8425
8425
|
x: "172.347",
|
|
8426
8426
|
y: "29.6804",
|
|
@@ -8432,7 +8432,7 @@ const Ue = (e) => (me("data-v-378bf7e2"), e = e(), he(), e), _f = { class: "temp
|
|
|
8432
8432
|
fill: a.value.includes(13) ? "#FFFF0030" : "#2e3b46"
|
|
8433
8433
|
}, null, 8, qf),
|
|
8434
8434
|
o("rect", {
|
|
8435
|
-
onClick: u[25] || (u[25] = (
|
|
8435
|
+
onClick: u[25] || (u[25] = (g) => d(14)),
|
|
8436
8436
|
class: "sector-field",
|
|
8437
8437
|
x: "207.347",
|
|
8438
8438
|
y: "29.6804",
|
|
@@ -8444,7 +8444,7 @@ const Ue = (e) => (me("data-v-378bf7e2"), e = e(), he(), e), _f = { class: "temp
|
|
|
8444
8444
|
fill: a.value.includes(14) ? "#FFFF0030" : "#2e3b46"
|
|
8445
8445
|
}, null, 8, Zf),
|
|
8446
8446
|
o("rect", {
|
|
8447
|
-
onClick: u[26] || (u[26] = (
|
|
8447
|
+
onClick: u[26] || (u[26] = (g) => d(15)),
|
|
8448
8448
|
class: "sector-field",
|
|
8449
8449
|
x: "242.347",
|
|
8450
8450
|
y: "29.6804",
|
|
@@ -8456,7 +8456,7 @@ const Ue = (e) => (me("data-v-378bf7e2"), e = e(), he(), e), _f = { class: "temp
|
|
|
8456
8456
|
fill: a.value.includes(15) ? "#FFFF0030" : "#2e3b46"
|
|
8457
8457
|
}, null, 8, Jf),
|
|
8458
8458
|
o("rect", {
|
|
8459
|
-
onClick: u[27] || (u[27] = (
|
|
8459
|
+
onClick: u[27] || (u[27] = (g) => d(16)),
|
|
8460
8460
|
class: "sector-field",
|
|
8461
8461
|
x: "265.347",
|
|
8462
8462
|
y: "29.6804",
|
|
@@ -8468,7 +8468,7 @@ const Ue = (e) => (me("data-v-378bf7e2"), e = e(), he(), e), _f = { class: "temp
|
|
|
8468
8468
|
fill: a.value.includes(16) ? "#FFFF0030" : "#2e3b46"
|
|
8469
8469
|
}, null, 8, Kf),
|
|
8470
8470
|
o("rect", {
|
|
8471
|
-
onClick: u[28] || (u[28] = (
|
|
8471
|
+
onClick: u[28] || (u[28] = (g) => d(18)),
|
|
8472
8472
|
class: "sector-field",
|
|
8473
8473
|
x: "91.347",
|
|
8474
8474
|
y: "59.0137",
|
|
@@ -8480,7 +8480,7 @@ const Ue = (e) => (me("data-v-378bf7e2"), e = e(), he(), e), _f = { class: "temp
|
|
|
8480
8480
|
fill: a.value.includes(18) ? "#FFFF0030" : "#2e3b46"
|
|
8481
8481
|
}, null, 8, Xf),
|
|
8482
8482
|
o("rect", {
|
|
8483
|
-
onClick: u[29] || (u[29] = (
|
|
8483
|
+
onClick: u[29] || (u[29] = (g) => d(19)),
|
|
8484
8484
|
class: "sector-field",
|
|
8485
8485
|
x: "114.347",
|
|
8486
8486
|
y: "59.0137",
|
|
@@ -8492,7 +8492,7 @@ const Ue = (e) => (me("data-v-378bf7e2"), e = e(), he(), e), _f = { class: "temp
|
|
|
8492
8492
|
fill: a.value.includes(19) ? "#FFFF0030" : "#2e3b46"
|
|
8493
8493
|
}, null, 8, Qf),
|
|
8494
8494
|
o("rect", {
|
|
8495
|
-
onClick: u[30] || (u[30] = (
|
|
8495
|
+
onClick: u[30] || (u[30] = (g) => d(20)),
|
|
8496
8496
|
class: "sector-field",
|
|
8497
8497
|
x: "137.347",
|
|
8498
8498
|
y: "59.0137",
|
|
@@ -8504,7 +8504,7 @@ const Ue = (e) => (me("data-v-378bf7e2"), e = e(), he(), e), _f = { class: "temp
|
|
|
8504
8504
|
fill: a.value.includes(20) ? "#FFFF0030" : "#2e3b46"
|
|
8505
8505
|
}, null, 8, em),
|
|
8506
8506
|
o("rect", {
|
|
8507
|
-
onClick: u[31] || (u[31] = (
|
|
8507
|
+
onClick: u[31] || (u[31] = (g) => d(21)),
|
|
8508
8508
|
class: "sector-field",
|
|
8509
8509
|
x: "172.347",
|
|
8510
8510
|
y: "59.0137",
|
|
@@ -8516,7 +8516,7 @@ const Ue = (e) => (me("data-v-378bf7e2"), e = e(), he(), e), _f = { class: "temp
|
|
|
8516
8516
|
fill: a.value.includes(21) ? "#FFFF0030" : "#2e3b46"
|
|
8517
8517
|
}, null, 8, tm),
|
|
8518
8518
|
o("rect", {
|
|
8519
|
-
onClick: u[32] || (u[32] = (
|
|
8519
|
+
onClick: u[32] || (u[32] = (g) => d(22)),
|
|
8520
8520
|
class: "sector-field",
|
|
8521
8521
|
x: "207.347",
|
|
8522
8522
|
y: "59.0137",
|
|
@@ -8528,7 +8528,7 @@ const Ue = (e) => (me("data-v-378bf7e2"), e = e(), he(), e), _f = { class: "temp
|
|
|
8528
8528
|
fill: a.value.includes(22) ? "#FFFF0030" : "#2e3b46"
|
|
8529
8529
|
}, null, 8, im),
|
|
8530
8530
|
o("rect", {
|
|
8531
|
-
onClick: u[33] || (u[33] = (
|
|
8531
|
+
onClick: u[33] || (u[33] = (g) => d(23)),
|
|
8532
8532
|
class: "sector-field",
|
|
8533
8533
|
x: "242.347",
|
|
8534
8534
|
y: "59.0137",
|
|
@@ -8540,7 +8540,7 @@ const Ue = (e) => (me("data-v-378bf7e2"), e = e(), he(), e), _f = { class: "temp
|
|
|
8540
8540
|
fill: a.value.includes(23) ? "#FFFF0030" : "#2e3b46"
|
|
8541
8541
|
}, null, 8, sm),
|
|
8542
8542
|
o("rect", {
|
|
8543
|
-
onClick: u[34] || (u[34] = (
|
|
8543
|
+
onClick: u[34] || (u[34] = (g) => d(24)),
|
|
8544
8544
|
class: "sector-field",
|
|
8545
8545
|
x: "265.347",
|
|
8546
8546
|
y: "59.0137",
|
|
@@ -8665,12 +8665,12 @@ const Sm = { class: "what-happened" }, Cm = { class: "what-happened__all" }, xm
|
|
|
8665
8665
|
});
|
|
8666
8666
|
}
|
|
8667
8667
|
function m(y, _, v) {
|
|
8668
|
-
v.isSelected = y, _.isSelected = _.child.every((
|
|
8668
|
+
v.isSelected = y, _.isSelected = _.child.every((b) => b.isSelected);
|
|
8669
8669
|
}
|
|
8670
8670
|
function u(y, _) {
|
|
8671
8671
|
_.isSelected = y;
|
|
8672
8672
|
}
|
|
8673
|
-
function
|
|
8673
|
+
function g() {
|
|
8674
8674
|
i.whatHappenedFilters.forEach((y) => {
|
|
8675
8675
|
y.child ? y.child.forEach((_) => {
|
|
8676
8676
|
_.isSelected = !0;
|
|
@@ -8678,7 +8678,7 @@ const Sm = { class: "what-happened" }, Cm = { class: "what-happened__all" }, xm
|
|
|
8678
8678
|
});
|
|
8679
8679
|
}
|
|
8680
8680
|
return s({
|
|
8681
|
-
onResetFilters:
|
|
8681
|
+
onResetFilters: g
|
|
8682
8682
|
}), (y, _) => (p(), f("div", Sm, [
|
|
8683
8683
|
o("div", Cm, [
|
|
8684
8684
|
x(I(Z), {
|
|
@@ -8689,8 +8689,8 @@ const Sm = { class: "what-happened" }, Cm = { class: "what-happened__all" }, xm
|
|
|
8689
8689
|
}, null, 8, ["model-value"])
|
|
8690
8690
|
]),
|
|
8691
8691
|
o("div", xm, [
|
|
8692
|
-
(p(!0), f(z, null, te(e.whatHappenedFilters, (v,
|
|
8693
|
-
key:
|
|
8692
|
+
(p(!0), f(z, null, te(e.whatHappenedFilters, (v, b) => (p(), f("div", {
|
|
8693
|
+
key: b,
|
|
8694
8694
|
class: "what-happened__filters__filter"
|
|
8695
8695
|
}, [
|
|
8696
8696
|
v.child ? (p(), f("div", wm, [
|
|
@@ -8833,7 +8833,7 @@ const Ms = (e) => (me("data-v-ee3b28d3"), e = e(), he(), e), $m = { class: "temp
|
|
|
8833
8833
|
}, [
|
|
8834
8834
|
x(I(Z), {
|
|
8835
8835
|
modelValue: m.isSelected,
|
|
8836
|
-
"onUpdate:modelValue": (
|
|
8836
|
+
"onUpdate:modelValue": (g) => m.isSelected = g,
|
|
8837
8837
|
label: m.name,
|
|
8838
8838
|
"avoid-interaction": a.value === 1 && m.isSelected
|
|
8839
8839
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "avoid-interaction"])
|
|
@@ -8845,7 +8845,7 @@ const Ms = (e) => (me("data-v-ee3b28d3"), e = e(), he(), e), $m = { class: "temp
|
|
|
8845
8845
|
}, [
|
|
8846
8846
|
x(I(Z), {
|
|
8847
8847
|
modelValue: m.isSelected,
|
|
8848
|
-
"onUpdate:modelValue": (
|
|
8848
|
+
"onUpdate:modelValue": (g) => m.isSelected = g,
|
|
8849
8849
|
label: m.name,
|
|
8850
8850
|
"avoid-interaction": a.value === 1 && m.isSelected
|
|
8851
8851
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "avoid-interaction"])
|
|
@@ -8994,9 +8994,9 @@ const Lm = { class: "years" }, Nm = ["onClick"], Dm = {
|
|
|
8994
8994
|
name: "Todas las nacionalidades",
|
|
8995
8995
|
isSelected: !1
|
|
8996
8996
|
}, n = T(""), a = M(() => {
|
|
8997
|
-
let r = t.nationalities && t.nationalities.length ? [...t.nationalities] : [];
|
|
8998
|
-
const
|
|
8999
|
-
return (
|
|
8997
|
+
let r = t.nationalities && t.nationalities.length ? [...t.nationalities] : [], d = [];
|
|
8998
|
+
const c = r.find((g) => g.id === 138), m = r.find((g) => g.id === 0), u = r.filter((g) => g.id !== 138);
|
|
8999
|
+
return u.sort((g, y) => g.name.localeCompare(y.name)), c && (d = [c, ...u]), m || (d = [i, ...d]), d;
|
|
9000
9000
|
});
|
|
9001
9001
|
L(
|
|
9002
9002
|
a,
|
|
@@ -9449,7 +9449,7 @@ const Gm = {
|
|
|
9449
9449
|
areYellowCardsSelected: !1,
|
|
9450
9450
|
areRedCardsSelected: !1,
|
|
9451
9451
|
areFoulsCommittedSelected: !1
|
|
9452
|
-
}), d = T(null), c = T(null), m = T(null), u = T(null),
|
|
9452
|
+
}), d = T(null), c = T(null), m = T(null), u = T(null), g = T(null), y = M(() => ({
|
|
9453
9453
|
"--width": i.width,
|
|
9454
9454
|
"--max-width": i.maxWidth,
|
|
9455
9455
|
"--background-color": i.backgroundColor,
|
|
@@ -9477,12 +9477,12 @@ const Gm = {
|
|
|
9477
9477
|
A.push(D);
|
|
9478
9478
|
});
|
|
9479
9479
|
}), A;
|
|
9480
|
-
}),
|
|
9480
|
+
}), b = M(() => {
|
|
9481
9481
|
const A = _.value.filter(
|
|
9482
9482
|
(S) => S.isSelected
|
|
9483
9483
|
);
|
|
9484
9484
|
return le(A), i.filterType === h.PRODUCTIVITY && t("change-categories-selected", A.length), A.length;
|
|
9485
|
-
}), E = M(() => !i.isForTemplateForm &&
|
|
9485
|
+
}), E = M(() => !i.isForTemplateForm && b.value >= i.productivityMaxCategories), k = M(() => !i.isForTemplateForm && b.value <= i.productivityMinCategories), H = M(() => i.isPlayingAsHidden ? i.gameSections : i.playingAs.concat(i.gameSections));
|
|
9486
9486
|
L(
|
|
9487
9487
|
l,
|
|
9488
9488
|
(A) => {
|
|
@@ -9561,7 +9561,7 @@ const Gm = {
|
|
|
9561
9561
|
maxValue: i.distanceFilters.maxLimit
|
|
9562
9562
|
}) : i.filterType === h.RESULTS ? t("update:filters", {
|
|
9563
9563
|
results: i.resultsFilters.results.map((S) => (S.isSelected = !0, S))
|
|
9564
|
-
}) : i.filterType === h.RESULTS_BY_TIME ?
|
|
9564
|
+
}) : i.filterType === h.RESULTS_BY_TIME ? g.value && g.value.removeFilters() : i.filterType === h.GAMES ? i.gamesFilters.forEach((S) => {
|
|
9565
9565
|
S.isSelected = !0;
|
|
9566
9566
|
}) : i.filterType === h.TAKEN_CORNERS ? c.value.clearFilters() : i.filterType === h.HOW_WAS_CORNER ? (i.howWasCornerFilters.left.forEach((S) => {
|
|
9567
9567
|
S.isSelected = !0;
|
|
@@ -9634,13 +9634,13 @@ const Gm = {
|
|
|
9634
9634
|
function F(A) {
|
|
9635
9635
|
t("update:filters", A);
|
|
9636
9636
|
}
|
|
9637
|
-
function
|
|
9637
|
+
function V(A) {
|
|
9638
9638
|
i.filterType === h.POSITIONS && t("update:filters", A);
|
|
9639
9639
|
}
|
|
9640
9640
|
function U(A) {
|
|
9641
9641
|
i.filterType === h.YEARS && t("update:filters", A);
|
|
9642
9642
|
}
|
|
9643
|
-
function
|
|
9643
|
+
function O(A) {
|
|
9644
9644
|
i.filterType === h.NATIONALITIES && t("update:filters", A);
|
|
9645
9645
|
}
|
|
9646
9646
|
function G(A) {
|
|
@@ -9706,7 +9706,7 @@ const Gm = {
|
|
|
9706
9706
|
e.filterType === I(h).PRODUCTIVITY ? (p(), f("div", eh, [
|
|
9707
9707
|
x(Ba, {
|
|
9708
9708
|
"productivity-categories": e.productivityCategories,
|
|
9709
|
-
"number-of-categories-selected":
|
|
9709
|
+
"number-of-categories-selected": b.value,
|
|
9710
9710
|
"are-max-categories-reached": E.value,
|
|
9711
9711
|
"are-min-categories-reached": k.value,
|
|
9712
9712
|
"is-expansion-mode": e.isExpansionMode,
|
|
@@ -9797,7 +9797,7 @@ const Gm = {
|
|
|
9797
9797
|
e.filterType === I(h).RESULTS ? (p(), f("div", dh, [
|
|
9798
9798
|
x(Gc, {
|
|
9799
9799
|
ref_key: "templateResults",
|
|
9800
|
-
ref:
|
|
9800
|
+
ref: g,
|
|
9801
9801
|
"results-filters": e.resultsFilters,
|
|
9802
9802
|
"onUpdate:resultsFilters": j
|
|
9803
9803
|
}, null, 8, ["results-filters"])
|
|
@@ -9805,7 +9805,7 @@ const Gm = {
|
|
|
9805
9805
|
e.filterType === I(h).RESULTS_BY_TIME ? (p(), f("div", ch, [
|
|
9806
9806
|
x(Vm, {
|
|
9807
9807
|
ref_key: "templateResults",
|
|
9808
|
-
ref:
|
|
9808
|
+
ref: g,
|
|
9809
9809
|
"results-filters": e.resultsByTimeFilters,
|
|
9810
9810
|
onChangeFiltersSelected: R,
|
|
9811
9811
|
"onUpdate:filters": F
|
|
@@ -9861,7 +9861,7 @@ const Gm = {
|
|
|
9861
9861
|
e.filterType === I(h).POSITIONS ? (p(), f("div", yh, [
|
|
9862
9862
|
x(Wm, {
|
|
9863
9863
|
positions: e.positions,
|
|
9864
|
-
onChangePositions:
|
|
9864
|
+
onChangePositions: V
|
|
9865
9865
|
}, null, 8, ["positions"])
|
|
9866
9866
|
])) : P("", !0),
|
|
9867
9867
|
e.filterType === I(h).YEARS ? (p(), f("div", _h, [
|
|
@@ -9873,7 +9873,7 @@ const Gm = {
|
|
|
9873
9873
|
e.filterType === I(h).NATIONALITIES ? (p(), f("div", gh, [
|
|
9874
9874
|
x(Ym, {
|
|
9875
9875
|
nationalities: e.nationalities,
|
|
9876
|
-
onChangeNationality:
|
|
9876
|
+
onChangeNationality: O
|
|
9877
9877
|
}, null, 8, ["nationalities"])
|
|
9878
9878
|
])) : P("", !0)
|
|
9879
9879
|
]),
|
|
@@ -9992,7 +9992,7 @@ const Gm = {
|
|
|
9992
9992
|
}, 500);
|
|
9993
9993
|
});
|
|
9994
9994
|
function c(y) {
|
|
9995
|
-
const _ = window.innerWidth, v = y.boundingClientRect.x,
|
|
9995
|
+
const _ = window.innerWidth, v = y.boundingClientRect.x, b = y.boundingClientRect.x + y.boundingClientRect.width, E = v <= 0 ? Math.abs(v) + 4 : b >= _ ? _ - (b + 10) : 0;
|
|
9996
9996
|
l.value["--translate-x"] = `${E}px`;
|
|
9997
9997
|
}
|
|
9998
9998
|
function m() {
|
|
@@ -10003,7 +10003,7 @@ const Gm = {
|
|
|
10003
10003
|
function u() {
|
|
10004
10004
|
n.value = !n.value, s("update:modelValue", n.value);
|
|
10005
10005
|
}
|
|
10006
|
-
function
|
|
10006
|
+
function g() {
|
|
10007
10007
|
n.value = !1, s("update:modelValue", n.value);
|
|
10008
10008
|
}
|
|
10009
10009
|
return ei(() => {
|
|
@@ -10014,7 +10014,7 @@ const Gm = {
|
|
|
10014
10014
|
n.value ? (p(), f("div", {
|
|
10015
10015
|
key: 0,
|
|
10016
10016
|
id: "menu-overlay",
|
|
10017
|
-
onClick:
|
|
10017
|
+
onClick: g
|
|
10018
10018
|
})) : P("", !0),
|
|
10019
10019
|
o("div", {
|
|
10020
10020
|
class: "menu-container",
|
|
@@ -10332,7 +10332,7 @@ const Xe = (e) => (me("data-v-2504d135"), e = e(), he(), e), Fh = {
|
|
|
10332
10332
|
h.PLAYS,
|
|
10333
10333
|
h.RESULTS,
|
|
10334
10334
|
h.RESULTS_BY_TIME
|
|
10335
|
-
].includes(s.iconType)), a = M(() => [h.FIELD, h.GAMES].includes(s.iconType)), l = M(() => [h.DETAILS, h.UNIVERSE].includes(s.iconType)), r = M(() => [h.PERSONAL_DATA].includes(s.iconType)), d = M(() => [h.PRODUCTIVITY].includes(s.iconType)), c = M(() => [h.HOW_WAS_CORNER].includes(s.iconType)), m = M(() => [h.TAKEN_CORNERS].includes(s.iconType)), u = M(() => [h.ZONE].includes(s.iconType)),
|
|
10335
|
+
].includes(s.iconType)), a = M(() => [h.FIELD, h.GAMES].includes(s.iconType)), l = M(() => [h.DETAILS, h.UNIVERSE].includes(s.iconType)), r = M(() => [h.PERSONAL_DATA].includes(s.iconType)), d = M(() => [h.PRODUCTIVITY].includes(s.iconType)), c = M(() => [h.HOW_WAS_CORNER].includes(s.iconType)), m = M(() => [h.TAKEN_CORNERS].includes(s.iconType)), u = M(() => [h.ZONE].includes(s.iconType)), g = M(() => [h.WHAT_HAPPENED].includes(s.iconType));
|
|
10336
10336
|
return (y, _) => (p(), f("div", {
|
|
10337
10337
|
class: "button",
|
|
10338
10338
|
style: W(t.value)
|
|
@@ -10429,7 +10429,7 @@ const Xe = (e) => (me("data-v-2504d135"), e = e(), he(), e), Fh = {
|
|
|
10429
10429
|
m.value ? (p(), f("svg", jh, Zh)) : P("", !0),
|
|
10430
10430
|
c.value ? (p(), f("svg", Jh, Xh)) : P("", !0),
|
|
10431
10431
|
u.value ? (p(), f("svg", Qh, a0)) : P("", !0),
|
|
10432
|
-
|
|
10432
|
+
g.value ? (p(), f("svg", o0, l0)) : P("", !0)
|
|
10433
10433
|
])) : P("", !0),
|
|
10434
10434
|
o("div", r0, B(e.text), 1),
|
|
10435
10435
|
e.showBadge ? (p(), f(z, { key: 1 }, [
|
|
@@ -11545,7 +11545,7 @@ const M0 = { class: "filters" }, R0 = {
|
|
|
11545
11545
|
setup(e, { expose: s, emit: t }) {
|
|
11546
11546
|
const i = e;
|
|
11547
11547
|
we((S) => ({
|
|
11548
|
-
"
|
|
11548
|
+
"0e9e6232": e.width
|
|
11549
11549
|
}));
|
|
11550
11550
|
const n = {
|
|
11551
11551
|
width: "604px",
|
|
@@ -11604,7 +11604,7 @@ const M0 = { class: "filters" }, R0 = {
|
|
|
11604
11604
|
borderRadius: "12px",
|
|
11605
11605
|
filterType: h.NATIONALITIES,
|
|
11606
11606
|
isFooterVisible: !0
|
|
11607
|
-
},
|
|
11607
|
+
}, g = {
|
|
11608
11608
|
width: "310px",
|
|
11609
11609
|
maxWidth: "310px",
|
|
11610
11610
|
backgroundColor: "#2E3B46",
|
|
@@ -11636,7 +11636,7 @@ const M0 = { class: "filters" }, R0 = {
|
|
|
11636
11636
|
borderRadius: "12px",
|
|
11637
11637
|
filterType: h.UNIVERSE,
|
|
11638
11638
|
isFooterVisible: !0
|
|
11639
|
-
},
|
|
11639
|
+
}, b = {
|
|
11640
11640
|
width: "310px",
|
|
11641
11641
|
maxWidth: "310px",
|
|
11642
11642
|
backgroundColor: "#2E3B46",
|
|
@@ -11701,7 +11701,7 @@ const M0 = { class: "filters" }, R0 = {
|
|
|
11701
11701
|
borderRadius: "12px",
|
|
11702
11702
|
filterType: h.WHAT_HAPPENED,
|
|
11703
11703
|
isFooterVisible: !0
|
|
11704
|
-
}, ge = T(!1), Ee = T(!1), R = T(0), N = T(0), w = T({}), ee = T(null), re = T(null), Ie = T("Universo"), $e = T(""), F = T(""),
|
|
11704
|
+
}, ge = T(!1), Ee = T(!1), R = T(0), N = T(0), w = T({}), ee = T(null), re = T(null), Ie = T("Universo"), $e = T(""), F = T(""), V = M(() => i.isForTemplateForm ? "0" : "unset"), U = M(() => i.isFromTemplates ? h.RESULTS : i.filterType), O = T(null);
|
|
11705
11705
|
L(
|
|
11706
11706
|
() => i.filterType,
|
|
11707
11707
|
(S) => {
|
|
@@ -11746,7 +11746,7 @@ const M0 = { class: "filters" }, R0 = {
|
|
|
11746
11746
|
};
|
|
11747
11747
|
} else
|
|
11748
11748
|
S === h.PERSONAL_DATA ? w.value = {
|
|
11749
|
-
...
|
|
11749
|
+
...g,
|
|
11750
11750
|
...i.templateProps,
|
|
11751
11751
|
token: i.token,
|
|
11752
11752
|
awaitForFilters: i.awaitForFilters,
|
|
@@ -11764,7 +11764,7 @@ const M0 = { class: "filters" }, R0 = {
|
|
|
11764
11764
|
...i.templateProps,
|
|
11765
11765
|
universeFilters: i.filters || $0
|
|
11766
11766
|
} : S === h.DISTANCE ? w.value = {
|
|
11767
|
-
...
|
|
11767
|
+
...b,
|
|
11768
11768
|
...i.templateProps,
|
|
11769
11769
|
distanceFilters: i.filters || B0
|
|
11770
11770
|
} : S === h.RESULTS ? w.value = {
|
|
@@ -11883,7 +11883,7 @@ const M0 = { class: "filters" }, R0 = {
|
|
|
11883
11883
|
};
|
|
11884
11884
|
} else
|
|
11885
11885
|
i.filterType === h.PERSONAL_DATA ? w.value = {
|
|
11886
|
-
...
|
|
11886
|
+
...g,
|
|
11887
11887
|
...i.templateProps,
|
|
11888
11888
|
token: i.token,
|
|
11889
11889
|
awaitForFilters: i.awaitForFilters,
|
|
@@ -11901,7 +11901,7 @@ const M0 = { class: "filters" }, R0 = {
|
|
|
11901
11901
|
...i.templateProps,
|
|
11902
11902
|
universeFilters: i.filters
|
|
11903
11903
|
} : i.filterType === h.DISTANCE ? w.value = {
|
|
11904
|
-
...
|
|
11904
|
+
...b,
|
|
11905
11905
|
...i.templateProps,
|
|
11906
11906
|
distanceFilters: i.filters
|
|
11907
11907
|
} : i.filterType === h.RESULTS ? w.value = {
|
|
@@ -11977,9 +11977,9 @@ const M0 = { class: "filters" }, R0 = {
|
|
|
11977
11977
|
w.value.isExpansionMode = i.isExpansionPanel, i.isExpansionPanel && (w.value.width = "100%", w.value.maxWidth = "100%");
|
|
11978
11978
|
}
|
|
11979
11979
|
), L(ge, (S) => {
|
|
11980
|
-
S || t("close",
|
|
11980
|
+
S || t("close", O.value);
|
|
11981
11981
|
}), L(Ee, (S) => {
|
|
11982
|
-
S || t("close",
|
|
11982
|
+
S || t("close", O.value);
|
|
11983
11983
|
});
|
|
11984
11984
|
function G() {
|
|
11985
11985
|
$e.value = i.filterType === h.UNIVERSE && i.showUniverseTime ? Ie.value : i.buttonFilterProps && i.buttonFilterProps.text ? i.buttonFilterProps.text : i.menuButtonText || Y(), F.value = i.expansionPanelText || Y();
|
|
@@ -11988,7 +11988,7 @@ const M0 = { class: "filters" }, R0 = {
|
|
|
11988
11988
|
R.value = S;
|
|
11989
11989
|
}
|
|
11990
11990
|
function Q() {
|
|
11991
|
-
i.isExpansionPanel ? Ee.value = !1 : ge.value = !1, t("apply",
|
|
11991
|
+
i.isExpansionPanel ? Ee.value = !1 : ge.value = !1, t("apply", O.value);
|
|
11992
11992
|
}
|
|
11993
11993
|
function Y() {
|
|
11994
11994
|
if (i.filterType === h.PRODUCTIVITY)
|
|
@@ -12008,7 +12008,7 @@ const M0 = { class: "filters" }, R0 = {
|
|
|
12008
12008
|
if (i.filterType === h.GOLSTATS)
|
|
12009
12009
|
return "Filtros Golstats";
|
|
12010
12010
|
if (i.filterType === h.UNIVERSE)
|
|
12011
|
-
return
|
|
12011
|
+
return `Estadísticas ${O.value && O.value.statisticsRadios === "total" ? "totales" : "cada 90 min"}`;
|
|
12012
12012
|
if (i.filterType === h.DISTANCE)
|
|
12013
12013
|
return "Distancia";
|
|
12014
12014
|
if ([h.RESULTS, h.RESULTS_BY_TIME].includes(i.filterType))
|
|
@@ -12026,17 +12026,17 @@ const M0 = { class: "filters" }, R0 = {
|
|
|
12026
12026
|
if (i.filterType === h.WHAT_HAPPENED)
|
|
12027
12027
|
return "¿Qué sucedió?";
|
|
12028
12028
|
if (i.filterType === h.POSITIONS) {
|
|
12029
|
-
const S =
|
|
12029
|
+
const S = O.value ? O.value.find((Se) => Se.id === 0) : null;
|
|
12030
12030
|
if (S && S.isSelected)
|
|
12031
12031
|
return S.name;
|
|
12032
|
-
const D =
|
|
12033
|
-
return D.length === 1 ? D[0].name : `${D.length}
|
|
12032
|
+
const D = O.value ? O.value.filter((Se) => Se.isSelected && Se.id !== 0) : [];
|
|
12033
|
+
return D.length === 1 ? D[0].name : `${D.length} nacionalidades`;
|
|
12034
12034
|
} else {
|
|
12035
12035
|
if (i.filterType === h.YEARS)
|
|
12036
|
-
return `Año ${
|
|
12036
|
+
return `Año ${O.value || i.selectedYear}`;
|
|
12037
12037
|
if (i.filterType === h.NATIONALITIES) {
|
|
12038
|
-
const S =
|
|
12039
|
-
return i.filters.length === S ? "Todas las nacionalidades" : `${S}
|
|
12038
|
+
const S = O.value ? O.value.length : i.filters.length;
|
|
12039
|
+
return i.filters.length === S ? "Todas las nacionalidades" : S === 1 ? O.value[0].name : `${S} nacionalidades`;
|
|
12040
12040
|
}
|
|
12041
12041
|
}
|
|
12042
12042
|
}
|
|
@@ -12051,7 +12051,7 @@ const M0 = { class: "filters" }, R0 = {
|
|
|
12051
12051
|
S.value && S.value.statistics && (S.value.minutesPlayed && D++, S.value.percentMinutesPlayed && D++, S.value.lastMonths && D++, S.value.statistics.totals && D++, S.value.statistics.averagePerGame && D++, S.value.statistics.averagePerMinute && D++), i.showUniverseTime && (Ie.value = `Durante los últimos ${S.value.lastMonths} meses`), w.value.universe = S.value, R.value = D, de(S.value);
|
|
12052
12052
|
}
|
|
12053
12053
|
function de(S) {
|
|
12054
|
-
|
|
12054
|
+
O.value = S, G(), t("update:filters", S);
|
|
12055
12055
|
}
|
|
12056
12056
|
function Re(S) {
|
|
12057
12057
|
N.value = S;
|
|
@@ -12111,7 +12111,7 @@ const M0 = { class: "filters" }, R0 = {
|
|
|
12111
12111
|
modelValue: ge.value,
|
|
12112
12112
|
"onUpdate:modelValue": D[1] || (D[1] = (Se) => ge.value = Se),
|
|
12113
12113
|
width: e.width,
|
|
12114
|
-
"left-menu":
|
|
12114
|
+
"left-menu": V.value,
|
|
12115
12115
|
"menu-margin-top": 18
|
|
12116
12116
|
}, {
|
|
12117
12117
|
trigger: X(() => [
|
|
@@ -12161,7 +12161,7 @@ const M0 = { class: "filters" }, R0 = {
|
|
|
12161
12161
|
]))
|
|
12162
12162
|
]));
|
|
12163
12163
|
}
|
|
12164
|
-
}, x2 = /* @__PURE__ */ K(L0, [["__scopeId", "data-v-
|
|
12164
|
+
}, x2 = /* @__PURE__ */ K(L0, [["__scopeId", "data-v-b83992e9"]]);
|
|
12165
12165
|
const N0 = { class: "dropdown__position" }, D0 = {
|
|
12166
12166
|
key: 0,
|
|
12167
12167
|
class: "label"
|