oraculo-ui 0.2.56 → 0.2.57
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/index.cjs.js +3 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +688 -666
- package/dist/index.es.js.map +1 -1
- package/dist/interfaces/oraculo/InterfaceKambi.d.ts +3 -3
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as t, jsxs as h, Fragment as te } from "react/jsx-runtime";
|
|
2
2
|
import { Link as ht, Box as le, useMediaQuery as Je, IconButton as Qe, Typography as bt, Stack as Re, Container as Bt } from "@mui/material";
|
|
3
|
-
import ve, { useState as ee, useEffect as re, useRef as Z, forwardRef as Lt, useImperativeHandle as Rt, useCallback as Pe, createContext as Pt, useContext as Ft, useMemo as de, useLayoutEffect as
|
|
3
|
+
import ve, { useState as ee, useEffect as re, useRef as Z, forwardRef as Lt, useImperativeHandle as Rt, useCallback as Pe, createContext as Pt, useContext as Ft, useMemo as de, useLayoutEffect as Ut } from "react";
|
|
4
4
|
import X from "@mui/material/Skeleton";
|
|
5
|
-
import { Splide as zt, SplideSlide as
|
|
5
|
+
import { Splide as zt, SplideSlide as qt } from "@splidejs/react-splide";
|
|
6
6
|
import z from "@mui/material/Box";
|
|
7
7
|
import he from "@mui/material/Typography";
|
|
8
8
|
import Q from "@mui/material/Stack";
|
|
@@ -26,23 +26,23 @@ function ae({
|
|
|
26
26
|
size: f,
|
|
27
27
|
fullWidth: g = !1,
|
|
28
28
|
fullHeight: m = !1,
|
|
29
|
-
className:
|
|
30
|
-
ariaLabel:
|
|
29
|
+
className: d = "",
|
|
30
|
+
ariaLabel: u,
|
|
31
31
|
leftIcon: b,
|
|
32
32
|
rightIcon: x,
|
|
33
33
|
iconOnly: v
|
|
34
34
|
}) {
|
|
35
|
-
const
|
|
35
|
+
const S = !!e && e !== !0, _ = (!!b ? 1 : 0) + (!!x ? 1 : 0) == 1, C = v != null ? v : _ && !S, O = [
|
|
36
36
|
"orc-btn",
|
|
37
37
|
c === "secondary" ? "orc-btn--secondary" : c === "tertiary" ? "orc-btn--tertiary" : "orc-btn--primary",
|
|
38
38
|
f ? `orc-btn--${f}` : "",
|
|
39
39
|
g ? "orc-btn--full" : "",
|
|
40
40
|
m ? "orc-btn--fullHeight" : "",
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
].filter(Boolean).join(" "),
|
|
41
|
+
C ? "orc-btn--iconOnly" : "",
|
|
42
|
+
d
|
|
43
|
+
].filter(Boolean).join(" "), w = /* @__PURE__ */ h(te, { children: [
|
|
44
44
|
b && /* @__PURE__ */ t("span", { className: "orc-btn__icon", children: b }),
|
|
45
|
-
|
|
45
|
+
!C && /* @__PURE__ */ t("span", { className: "orc-btn__label", children: e }),
|
|
46
46
|
x && /* @__PURE__ */ t("span", { className: "orc-btn__icon", children: x })
|
|
47
47
|
] }), L = l ? !0 : void 0;
|
|
48
48
|
return n ? /* @__PURE__ */ t(
|
|
@@ -51,12 +51,12 @@ function ae({
|
|
|
51
51
|
href: n,
|
|
52
52
|
target: o,
|
|
53
53
|
rel: i,
|
|
54
|
-
"aria-label":
|
|
54
|
+
"aria-label": u,
|
|
55
55
|
"aria-disabled": L,
|
|
56
56
|
tabIndex: L ? -1 : void 0,
|
|
57
|
-
className:
|
|
57
|
+
className: O,
|
|
58
58
|
onClick: L ? (R) => R.preventDefault() : a,
|
|
59
|
-
children:
|
|
59
|
+
children: w
|
|
60
60
|
}
|
|
61
61
|
) : /* @__PURE__ */ t(
|
|
62
62
|
"button",
|
|
@@ -64,9 +64,9 @@ function ae({
|
|
|
64
64
|
type: s,
|
|
65
65
|
onClick: a,
|
|
66
66
|
disabled: !!L,
|
|
67
|
-
"aria-label":
|
|
68
|
-
className:
|
|
69
|
-
children:
|
|
67
|
+
"aria-label": u,
|
|
68
|
+
className: O,
|
|
69
|
+
children: w
|
|
70
70
|
}
|
|
71
71
|
);
|
|
72
72
|
}
|
|
@@ -118,7 +118,7 @@ const yt = ({
|
|
|
118
118
|
"--dot-progress-ms": `${i}ms`
|
|
119
119
|
} : void 0,
|
|
120
120
|
onClick: () => {
|
|
121
|
-
m && c((
|
|
121
|
+
m && c((d) => d + 1), n == null || n(g);
|
|
122
122
|
}
|
|
123
123
|
},
|
|
124
124
|
m ? `a-${g}-${l}` : `i-${g}`
|
|
@@ -483,12 +483,12 @@ function Ca({
|
|
|
483
483
|
}) {
|
|
484
484
|
const s = (n == null ? void 0 : n.base) === "D8D8D8" && (n == null ? void 0 : n.sleeve) === "D8D8D8" || (n == null ? void 0 : n.base) === "585858" && (n == null ? void 0 : n.sleeve) === "585858", l = (v) => v ? v.startsWith("#") ? v : `#${v}` : null;
|
|
485
485
|
if (e === "TENNIS" && i == "" || e === "BASKETBALL" && (n == null || s)) {
|
|
486
|
-
const
|
|
487
|
-
return /* @__PURE__ */ t("div", { className: `${_e.polo} ${o != null ? o : ""}`, children: /* @__PURE__ */ t("img", { src:
|
|
486
|
+
const S = `https://d28gilnhu2bcbp.cloudfront.net/landing/${e === "BASKETBALL" ? "basketball" : "tennis"}_default.png`;
|
|
487
|
+
return /* @__PURE__ */ t("div", { className: `${_e.polo} ${o != null ? o : ""}`, children: /* @__PURE__ */ t("img", { src: S, className: _e.flagImage }) });
|
|
488
488
|
}
|
|
489
489
|
if (e === "TENNIS")
|
|
490
490
|
return /* @__PURE__ */ t("div", { className: `${_e.polo} ${o != null ? o : ""}`, children: /* @__PURE__ */ t("img", { src: `https://img.sportradar.com/ls/crest/big/${i}.png`, className: _e.flagImage }) });
|
|
491
|
-
const c = l(n.base) || "#FFFFFF", f = l(n.sleeve) || c, g = l(n.stripes), m = l(n.sleevelong),
|
|
491
|
+
const c = l(n.base) || "#FFFFFF", f = l(n.sleeve) || c, g = l(n.stripes), m = l(n.sleevelong), d = l(n.trim) || f, u = at[e] || at.FOOTBALL, b = u[a] || u.men, x = b.pathsComponent;
|
|
492
492
|
return /* @__PURE__ */ h("div", { className: `${_e.polo} ${o != null ? o : ""}`, children: [
|
|
493
493
|
/* @__PURE__ */ t("div", { className: _e.svgWrapper, children: /* @__PURE__ */ t("svg", { viewBox: "0 0 656 656", "aria-hidden": !0, children: /* @__PURE__ */ t(
|
|
494
494
|
x,
|
|
@@ -497,7 +497,7 @@ function Ca({
|
|
|
497
497
|
sleeve: f,
|
|
498
498
|
stripes: g,
|
|
499
499
|
sleevelong: m,
|
|
500
|
-
trim:
|
|
500
|
+
trim: d
|
|
501
501
|
}
|
|
502
502
|
) }) }),
|
|
503
503
|
/* @__PURE__ */ t(
|
|
@@ -539,9 +539,9 @@ function ka(e, a, {
|
|
|
539
539
|
const f = (g) => {
|
|
540
540
|
const m = a.current;
|
|
541
541
|
if (!m || !m.go) return;
|
|
542
|
-
const { deltaX:
|
|
543
|
-
if (Math.abs(
|
|
544
|
-
g.preventDefault(), s.current +=
|
|
542
|
+
const { deltaX: d, deltaY: u } = g;
|
|
543
|
+
if (Math.abs(d) <= Math.abs(u)) return;
|
|
544
|
+
g.preventDefault(), s.current += d;
|
|
545
545
|
const b = Date.now();
|
|
546
546
|
if (b - l.current < i || Math.abs(s.current) < o) return;
|
|
547
547
|
const x = s.current > 0 ? ">" : "<";
|
|
@@ -557,7 +557,7 @@ const Na = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", $a = "ora
|
|
|
557
557
|
right: $a,
|
|
558
558
|
left: Aa,
|
|
559
559
|
svg: Ma
|
|
560
|
-
}, Ba = zt, La =
|
|
560
|
+
}, Ba = zt, La = qt, xe = Lt(
|
|
561
561
|
({
|
|
562
562
|
items: e = [],
|
|
563
563
|
renderItem: a,
|
|
@@ -570,27 +570,27 @@ const Na = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", $a = "ora
|
|
|
570
570
|
useIndexAsKey: f = !1,
|
|
571
571
|
enableHorizontalWheel: g = !0,
|
|
572
572
|
showRightGradient: m = !1
|
|
573
|
-
},
|
|
574
|
-
const
|
|
575
|
-
ka(b,
|
|
573
|
+
}, d) => {
|
|
574
|
+
const u = Z(null), b = Z(null), x = Z(e.length), v = Z(null), S = Z(null), M = Z("user");
|
|
575
|
+
ka(b, u, {
|
|
576
576
|
enabled: g
|
|
577
|
-
}), Rt(
|
|
577
|
+
}), Rt(d, () => ({
|
|
578
578
|
next: () => {
|
|
579
|
-
var
|
|
580
|
-
return (
|
|
579
|
+
var $;
|
|
580
|
+
return ($ = u.current) == null ? void 0 : $.go(">");
|
|
581
581
|
},
|
|
582
582
|
prev: () => {
|
|
583
|
-
var
|
|
584
|
-
return (
|
|
583
|
+
var $;
|
|
584
|
+
return ($ = u.current) == null ? void 0 : $.go("<");
|
|
585
585
|
},
|
|
586
|
-
go: (
|
|
586
|
+
go: ($) => {
|
|
587
587
|
var y;
|
|
588
|
-
return (y =
|
|
588
|
+
return (y = u.current) == null ? void 0 : y.go($);
|
|
589
589
|
}
|
|
590
590
|
}));
|
|
591
|
-
const
|
|
591
|
+
const E = ($) => {
|
|
592
592
|
var G;
|
|
593
|
-
const y =
|
|
593
|
+
const y = $.Components.Slides, I = $.Components.Controller, F = $.root.querySelector(".splide__track"), B = (G = F == null ? void 0 : F.clientWidth) != null ? G : 0, P = I.getIndex(), W = y.getLength();
|
|
594
594
|
let V = 0, H = P;
|
|
595
595
|
for (let D = P; D < W; D++) {
|
|
596
596
|
const K = y.getAt(D);
|
|
@@ -598,70 +598,70 @@ const Na = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", $a = "ora
|
|
|
598
598
|
H = D;
|
|
599
599
|
}
|
|
600
600
|
return { visibleStart: P, visibleEnd: H };
|
|
601
|
-
}, _ = (
|
|
602
|
-
const y =
|
|
603
|
-
return !y || !
|
|
604
|
-
},
|
|
601
|
+
}, _ = ($) => {
|
|
602
|
+
const y = $.root.querySelector(".splide__track"), I = $.root.querySelector(".splide__list");
|
|
603
|
+
return !y || !I ? !1 : I.scrollWidth > y.clientWidth + 1;
|
|
604
|
+
}, C = Z(!1), O = Pe(($) => {
|
|
605
605
|
var G, D;
|
|
606
|
-
if (
|
|
607
|
-
const
|
|
608
|
-
if (M.current = "user", !_(
|
|
606
|
+
if (C.current) return;
|
|
607
|
+
const I = $.Components.Slides.getLength(), F = M.current;
|
|
608
|
+
if (M.current = "user", !_($)) {
|
|
609
609
|
c == null || c({
|
|
610
610
|
index: 0,
|
|
611
611
|
isStart: !0,
|
|
612
612
|
isEnd: !0,
|
|
613
|
-
total:
|
|
613
|
+
total: I,
|
|
614
614
|
visibleStart: 0,
|
|
615
|
-
visibleEnd:
|
|
615
|
+
visibleEnd: I - 1,
|
|
616
616
|
source: F
|
|
617
617
|
});
|
|
618
618
|
return;
|
|
619
619
|
}
|
|
620
|
-
const { visibleStart: B, visibleEnd: P } =
|
|
621
|
-
m && ((G = v.current) == null || G.style.setProperty("--gradient-opacity", W ? "0" : "1"), (D =
|
|
622
|
-
const H =
|
|
620
|
+
const { visibleStart: B, visibleEnd: P } = E($), W = B === 0, V = P === I - 1;
|
|
621
|
+
m && ((G = v.current) == null || G.style.setProperty("--gradient-opacity", W ? "0" : "1"), (D = S.current) == null || D.style.setProperty("--gradient-opacity", V ? "0" : "1"));
|
|
622
|
+
const H = $.Components.Controller.getIndex();
|
|
623
623
|
c == null || c({
|
|
624
624
|
index: H,
|
|
625
625
|
isStart: W,
|
|
626
626
|
isEnd: V,
|
|
627
|
-
total:
|
|
627
|
+
total: I,
|
|
628
628
|
visibleStart: B,
|
|
629
629
|
visibleEnd: P,
|
|
630
630
|
source: F
|
|
631
631
|
});
|
|
632
632
|
}, [c]);
|
|
633
633
|
ve.useEffect(() => {
|
|
634
|
-
var
|
|
635
|
-
const
|
|
636
|
-
if (
|
|
634
|
+
var I;
|
|
635
|
+
const $ = (I = u.current) == null ? void 0 : I.splide;
|
|
636
|
+
if (!$) return;
|
|
637
637
|
const y = x.current !== e.length;
|
|
638
638
|
x.current = e.length, y && requestAnimationFrame(() => {
|
|
639
|
-
|
|
639
|
+
C.current = !0;
|
|
640
640
|
try {
|
|
641
|
-
|
|
641
|
+
$.refresh();
|
|
642
642
|
} finally {
|
|
643
|
-
|
|
643
|
+
C.current = !1;
|
|
644
644
|
}
|
|
645
|
-
M.current = "resize",
|
|
645
|
+
M.current = "resize", O($);
|
|
646
646
|
});
|
|
647
|
-
}, [e.length,
|
|
648
|
-
const
|
|
647
|
+
}, [e.length, O]);
|
|
648
|
+
const w = Pe(() => {
|
|
649
649
|
var y;
|
|
650
|
-
const
|
|
651
|
-
if (
|
|
652
|
-
|
|
650
|
+
const $ = (y = u.current) == null ? void 0 : y.splide;
|
|
651
|
+
if ($) {
|
|
652
|
+
C.current = !0;
|
|
653
653
|
try {
|
|
654
|
-
|
|
654
|
+
$.go(0, !1);
|
|
655
655
|
} finally {
|
|
656
|
-
|
|
656
|
+
C.current = !1;
|
|
657
657
|
}
|
|
658
|
-
M.current = "resize",
|
|
658
|
+
M.current = "resize", O($);
|
|
659
659
|
}
|
|
660
|
-
}, [
|
|
661
|
-
(
|
|
662
|
-
M.current = "mounted",
|
|
660
|
+
}, [O]), L = Pe(
|
|
661
|
+
($) => {
|
|
662
|
+
M.current = "mounted", O($);
|
|
663
663
|
},
|
|
664
|
-
[
|
|
664
|
+
[O]
|
|
665
665
|
), R = {
|
|
666
666
|
type: "slide",
|
|
667
667
|
trimSpace: !1,
|
|
@@ -687,14 +687,14 @@ const Na = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", $a = "ora
|
|
|
687
687
|
/* @__PURE__ */ t(
|
|
688
688
|
Ba,
|
|
689
689
|
{
|
|
690
|
-
ref:
|
|
690
|
+
ref: u,
|
|
691
691
|
options: R,
|
|
692
|
-
onMove:
|
|
692
|
+
onMove: O,
|
|
693
693
|
onMounted: L,
|
|
694
|
-
onResize:
|
|
695
|
-
children: e.map((
|
|
696
|
-
var
|
|
697
|
-
return /* @__PURE__ */ t(La, { children: a(
|
|
694
|
+
onResize: w,
|
|
695
|
+
children: e.map(($, y) => {
|
|
696
|
+
var I;
|
|
697
|
+
return /* @__PURE__ */ t(La, { children: a($, y) }, f ? y : (I = $.id) != null ? I : y);
|
|
698
698
|
})
|
|
699
699
|
}
|
|
700
700
|
),
|
|
@@ -727,7 +727,7 @@ const Na = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", $a = "ora
|
|
|
727
727
|
/* @__PURE__ */ t(
|
|
728
728
|
"div",
|
|
729
729
|
{
|
|
730
|
-
ref:
|
|
730
|
+
ref: S,
|
|
731
731
|
className: `${ke.gradientOverlay} ${ke.right}`,
|
|
732
732
|
style: { "--gradient-opacity": "1" },
|
|
733
733
|
children: /* @__PURE__ */ h(
|
|
@@ -851,15 +851,15 @@ function Ra({
|
|
|
851
851
|
md: { w: 186, h: 264, r: 22.6, font: 64 }
|
|
852
852
|
}
|
|
853
853
|
}) {
|
|
854
|
-
var
|
|
855
|
-
const s = (v,
|
|
856
|
-
var M,
|
|
854
|
+
var d, u, b, x;
|
|
855
|
+
const s = (v, S) => {
|
|
856
|
+
var M, E, _, C;
|
|
857
857
|
return {
|
|
858
|
-
xs: (
|
|
859
|
-
md: (
|
|
858
|
+
xs: (E = (M = i.xs) == null ? void 0 : M[v]) != null ? E : S,
|
|
859
|
+
md: (C = (_ = i.md) == null ? void 0 : _[v]) != null ? C : S
|
|
860
860
|
};
|
|
861
861
|
}, l = s("w", 186), c = s("h", 264), f = s("r", 22.6), g = s("font", 64), m = {
|
|
862
|
-
xs: Math.round(((
|
|
862
|
+
xs: Math.round(((u = (d = i.xs) == null ? void 0 : d.font) != null ? u : 64) * 0.28),
|
|
863
863
|
md: Math.round(((x = (b = i.md) == null ? void 0 : b.font) != null ? x : 64) * 0.28)
|
|
864
864
|
};
|
|
865
865
|
return /* @__PURE__ */ h(
|
|
@@ -1129,7 +1129,7 @@ const nt = ({
|
|
|
1129
1129
|
}
|
|
1130
1130
|
),
|
|
1131
1131
|
(o ? Array.from({ length: 4 }) : f).map((g, m) => {
|
|
1132
|
-
var
|
|
1132
|
+
var d, u;
|
|
1133
1133
|
return /* @__PURE__ */ t(
|
|
1134
1134
|
z,
|
|
1135
1135
|
{
|
|
@@ -1142,7 +1142,7 @@ const nt = ({
|
|
|
1142
1142
|
children: o ? /* @__PURE__ */ t(je, {}) : /* @__PURE__ */ t(
|
|
1143
1143
|
Fe,
|
|
1144
1144
|
{
|
|
1145
|
-
imageUrl: `https://olimpo.bet${(
|
|
1145
|
+
imageUrl: `https://olimpo.bet${(u = (d = g.background) != null ? d : g.imageUrl) != null ? u : ""}`,
|
|
1146
1146
|
size: "sm",
|
|
1147
1147
|
fillParent: !0,
|
|
1148
1148
|
onClick: () => n == null ? void 0 : n(g, m + 1)
|
|
@@ -1173,7 +1173,7 @@ const nt = ({
|
|
|
1173
1173
|
gridAutoFlow: "column"
|
|
1174
1174
|
},
|
|
1175
1175
|
children: (o ? Array.from({ length: i }) : e).map((c, f) => {
|
|
1176
|
-
var g, m,
|
|
1176
|
+
var g, m, d;
|
|
1177
1177
|
return /* @__PURE__ */ t(
|
|
1178
1178
|
z,
|
|
1179
1179
|
{
|
|
@@ -1188,7 +1188,7 @@ const nt = ({
|
|
|
1188
1188
|
}
|
|
1189
1189
|
)
|
|
1190
1190
|
},
|
|
1191
|
-
o ? `sk-${f}` : (
|
|
1191
|
+
o ? `sk-${f}` : (d = c.id) != null ? d : f
|
|
1192
1192
|
);
|
|
1193
1193
|
})
|
|
1194
1194
|
}
|
|
@@ -1204,7 +1204,7 @@ const nt = ({
|
|
|
1204
1204
|
className: c = "",
|
|
1205
1205
|
variant: f = "small"
|
|
1206
1206
|
}) => {
|
|
1207
|
-
const g = a ? a.slice(0, 2) : "", m = a ? a.slice(2) : "",
|
|
1207
|
+
const g = a ? a.slice(0, 2) : "", m = a ? a.slice(2) : "", d = f === "large";
|
|
1208
1208
|
return /* @__PURE__ */ h(
|
|
1209
1209
|
z,
|
|
1210
1210
|
{
|
|
@@ -1214,7 +1214,7 @@ const nt = ({
|
|
|
1214
1214
|
width: "100%",
|
|
1215
1215
|
maxWidth: {
|
|
1216
1216
|
xs: 328,
|
|
1217
|
-
md:
|
|
1217
|
+
md: d ? 618 : 456
|
|
1218
1218
|
},
|
|
1219
1219
|
mx: "auto"
|
|
1220
1220
|
},
|
|
@@ -1227,7 +1227,7 @@ const nt = ({
|
|
|
1227
1227
|
width: "100%",
|
|
1228
1228
|
aspectRatio: {
|
|
1229
1229
|
xs: "328 / 188",
|
|
1230
|
-
md:
|
|
1230
|
+
md: d ? "618 / 346" : "456 / 272"
|
|
1231
1231
|
},
|
|
1232
1232
|
borderRadius: "14px",
|
|
1233
1233
|
overflow: "hidden"
|
|
@@ -1388,18 +1388,18 @@ const nt = ({
|
|
|
1388
1388
|
/* @__PURE__ */ t("p", { className: "orc-co-caption", children: e }),
|
|
1389
1389
|
/* @__PURE__ */ t(ae, { onClick: n, variant: "primary", size: "md", children: a })
|
|
1390
1390
|
] })
|
|
1391
|
-
] }), Fa = "oraculo__OraculoEventCombinadasCard-module__card___ulQeY",
|
|
1391
|
+
] }), Fa = "oraculo__OraculoEventCombinadasCard-module__card___ulQeY", Ua = "oraculo__OraculoEventCombinadasCard-module__combinadas___Gxrld", za = "oraculo__OraculoEventCombinadasCard-module__combinadasScroll___47cZl", qa = "oraculo__OraculoEventCombinadasCard-module__apuestaItem___YnYMy", Da = "oraculo__OraculoEventCombinadasCard-module__lineContainer___G5rbU", Wa = "oraculo__OraculoEventCombinadasCard-module__circle___eehm-", Va = "oraculo__OraculoEventCombinadasCard-module__line___Eb2pK", Ha = "oraculo__OraculoEventCombinadasCard-module__apuestaText___b5s7S", Ga = "oraculo__OraculoEventCombinadasCard-module__cuotaTotal___Lohvu", fe = {
|
|
1392
1392
|
card: Fa,
|
|
1393
|
-
combinadas:
|
|
1393
|
+
combinadas: Ua,
|
|
1394
1394
|
combinadasScroll: za,
|
|
1395
|
-
apuestaItem:
|
|
1395
|
+
apuestaItem: qa,
|
|
1396
1396
|
lineContainer: Da,
|
|
1397
1397
|
circle: Wa,
|
|
1398
1398
|
line: Va,
|
|
1399
1399
|
apuestaText: Ha,
|
|
1400
1400
|
cuotaTotal: Ga
|
|
1401
1401
|
};
|
|
1402
|
-
function
|
|
1402
|
+
function qe(e, a) {
|
|
1403
1403
|
const n = Array.isArray(a) ? a : [a];
|
|
1404
1404
|
sessionStorage.setItem("landingOutcomes", JSON.stringify(n)), window.location.href = e;
|
|
1405
1405
|
}
|
|
@@ -1437,63 +1437,63 @@ function Ja({ coupon: e }) {
|
|
|
1437
1437
|
const a = se(), n = ce();
|
|
1438
1438
|
function o(m) {
|
|
1439
1439
|
var b, x;
|
|
1440
|
-
const
|
|
1440
|
+
const d = [], u = Array.from(
|
|
1441
1441
|
new Map(
|
|
1442
1442
|
((b = m == null ? void 0 : m.events) != null ? b : []).filter(Boolean).map((v) => [v.id, v])
|
|
1443
1443
|
).values()
|
|
1444
1444
|
);
|
|
1445
|
-
return
|
|
1445
|
+
return u.forEach((v) => {
|
|
1446
1446
|
var _;
|
|
1447
|
-
const
|
|
1448
|
-
|
|
1449
|
-
var R,
|
|
1450
|
-
if (!((R =
|
|
1451
|
-
const
|
|
1452
|
-
if (!
|
|
1453
|
-
let
|
|
1454
|
-
const L =
|
|
1455
|
-
["Más de", "Mas de", "Over"].includes(
|
|
1456
|
-
id:
|
|
1457
|
-
value:
|
|
1458
|
-
label: (F = (
|
|
1459
|
-
odds: (B =
|
|
1460
|
-
position: (P =
|
|
1447
|
+
const S = (_ = v.betoffers) != null ? _ : [], M = v.homeName, E = v.awayName;
|
|
1448
|
+
S.forEach((C) => {
|
|
1449
|
+
var R, $, y, I, F, B, P;
|
|
1450
|
+
if (!((R = C == null ? void 0 : C.outcomes) != null && R.length)) return;
|
|
1451
|
+
const O = C.outcomes[0];
|
|
1452
|
+
if (!O) return;
|
|
1453
|
+
let w = "";
|
|
1454
|
+
const L = O != null && O.line ? O.line / 1e3 : "";
|
|
1455
|
+
["Más de", "Mas de", "Over"].includes(O.label) ? (w = `Más de ${L}`, O.participant && (w = `${O.participant} - ${w}`)) : ["Menos de", "Menos", "Under"].includes(O.label) ? (w = `Menos de ${L}`, O.participant && (w = `${O.participant} - ${w}`)) : ["Sí", "No"].includes(O.label) ? (w = O.label, O.participant && (w = `${O.participant} - ${w}`)) : ["1X", "12", "X2"].includes(O.label) ? (O.label === "1X" && (w = `${M} o Empate`), O.label === "12" && (w = `${M} o ${E}`), O.label === "X2" && (w = `${E} o Empate`)) : (w = (y = ($ = O.participant) != null ? $ : O.label) != null ? y : "", L !== "" && w === O.label && (w = `${O.label} ${L}`)), d.push({
|
|
1456
|
+
id: O.id,
|
|
1457
|
+
value: w,
|
|
1458
|
+
label: (F = (I = C.criterion) == null ? void 0 : I.label) != null ? F : "",
|
|
1459
|
+
odds: (B = O.odds) != null ? B : 0,
|
|
1460
|
+
position: (P = O.position) != null ? P : 0,
|
|
1461
1461
|
eventId: v.id
|
|
1462
1462
|
});
|
|
1463
1463
|
});
|
|
1464
1464
|
}), {
|
|
1465
|
-
outcomes:
|
|
1465
|
+
outcomes: d.sort((v, S) => v.position - S.position),
|
|
1466
1466
|
total: Number((x = m == null ? void 0 : m.combinadoTotal) != null ? x : 0).toLocaleString("en-US", {
|
|
1467
1467
|
minimumFractionDigits: 2,
|
|
1468
1468
|
maximumFractionDigits: 2
|
|
1469
1469
|
}),
|
|
1470
|
-
events:
|
|
1470
|
+
events: u
|
|
1471
1471
|
};
|
|
1472
1472
|
}
|
|
1473
1473
|
function i(m) {
|
|
1474
1474
|
if (!m || !Array.isArray(m.events) || m.events.length === 0)
|
|
1475
1475
|
return "/deportes#home";
|
|
1476
|
-
const
|
|
1477
|
-
if (
|
|
1478
|
-
return `/deportes#event/${
|
|
1479
|
-
const
|
|
1480
|
-
if (
|
|
1481
|
-
const x =
|
|
1476
|
+
const d = m.events;
|
|
1477
|
+
if (d.length === 1)
|
|
1478
|
+
return `/deportes#event/${d[0].id}`;
|
|
1479
|
+
const u = d[0].groupId;
|
|
1480
|
+
if (d.every((x) => x.groupId === u)) {
|
|
1481
|
+
const x = d[0].path;
|
|
1482
1482
|
if (Array.isArray(x) && x.length > 0)
|
|
1483
|
-
return `/deportes#sports-hub/${x.map((
|
|
1483
|
+
return `/deportes#sports-hub/${x.map((S) => S.termKey).filter(Boolean).join("/")}`;
|
|
1484
1484
|
}
|
|
1485
1485
|
return "/deportes#home";
|
|
1486
1486
|
}
|
|
1487
|
-
const s = (m,
|
|
1488
|
-
const
|
|
1487
|
+
const s = (m, d) => {
|
|
1488
|
+
const u = Array.isArray(m) ? m : [m], b = Array.from(
|
|
1489
1489
|
new Set(
|
|
1490
|
-
l.outcomes.map((
|
|
1491
|
-
var
|
|
1492
|
-
const M = f.get(Number(
|
|
1493
|
-
return (
|
|
1490
|
+
l.outcomes.map((S) => {
|
|
1491
|
+
var E;
|
|
1492
|
+
const M = f.get(Number(S.eventId));
|
|
1493
|
+
return (E = M == null ? void 0 : M.name) != null ? E : "";
|
|
1494
1494
|
})
|
|
1495
1495
|
)
|
|
1496
|
-
).filter(Boolean), x = b.length > 0 ? b.join(" + ") : JSON.stringify(
|
|
1496
|
+
).filter(Boolean), x = b.length > 0 ? b.join(" + ") : JSON.stringify(u), v = d ? `${x} - Cuota: ${d}` : x;
|
|
1497
1497
|
a({
|
|
1498
1498
|
element: "evento_semana_outcome",
|
|
1499
1499
|
label: `Landing: ${n} - OraculoEventCombinadasCard - Click: ${v}`,
|
|
@@ -1504,16 +1504,16 @@ function Ja({ coupon: e }) {
|
|
|
1504
1504
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1505
1505
|
},
|
|
1506
1506
|
tags: { section: "OraculoEventCombinadasCard", outcomes: v }
|
|
1507
|
-
}),
|
|
1507
|
+
}), qe(i(e), m);
|
|
1508
1508
|
};
|
|
1509
1509
|
if (!((g = e == null ? void 0 : e.events) != null && g.length)) return null;
|
|
1510
|
-
const l = o(e), c = l.outcomes.reduce((m,
|
|
1510
|
+
const l = o(e), c = l.outcomes.reduce((m, d) => (m[d.eventId] || (m[d.eventId] = []), m[d.eventId].push(d), m), {}), f = new Map(
|
|
1511
1511
|
l.events.map((m) => [m.id, m])
|
|
1512
1512
|
);
|
|
1513
1513
|
return /* @__PURE__ */ h("div", { className: fe.card, children: [
|
|
1514
|
-
/* @__PURE__ */ t("div", { className: fe.combinadas, children: /* @__PURE__ */ t("div", { className: fe.combinadasScroll, children: /* @__PURE__ */ t(Q, { direction: "column", spacing: 1.5, useFlexGap: !0, children: Object.entries(c).reverse().map(([m,
|
|
1515
|
-
const
|
|
1516
|
-
return
|
|
1514
|
+
/* @__PURE__ */ t("div", { className: fe.combinadas, children: /* @__PURE__ */ t("div", { className: fe.combinadasScroll, children: /* @__PURE__ */ t(Q, { direction: "column", spacing: 1.5, useFlexGap: !0, children: Object.entries(c).reverse().map(([m, d]) => {
|
|
1515
|
+
const u = f.get(Number(m));
|
|
1516
|
+
return u ? /* @__PURE__ */ h(
|
|
1517
1517
|
Q,
|
|
1518
1518
|
{
|
|
1519
1519
|
direction: "column",
|
|
@@ -1523,7 +1523,7 @@ function Ja({ coupon: e }) {
|
|
|
1523
1523
|
/* @__PURE__ */ t(
|
|
1524
1524
|
ye,
|
|
1525
1525
|
{
|
|
1526
|
-
title:
|
|
1526
|
+
title: u.name,
|
|
1527
1527
|
iconUrl: "/assets/img/home/Combinadas/pelota.png",
|
|
1528
1528
|
size: "xs"
|
|
1529
1529
|
}
|
|
@@ -1535,10 +1535,10 @@ function Ja({ coupon: e }) {
|
|
|
1535
1535
|
src: "/assets/img/home/Combinadas/line.png"
|
|
1536
1536
|
}
|
|
1537
1537
|
),
|
|
1538
|
-
|
|
1538
|
+
d.map((b, x) => /* @__PURE__ */ h("div", { className: fe.apuestaItem, children: [
|
|
1539
1539
|
/* @__PURE__ */ h("div", { className: fe.lineContainer, children: [
|
|
1540
1540
|
/* @__PURE__ */ t("div", { className: fe.circle }),
|
|
1541
|
-
x <
|
|
1541
|
+
x < d.length - 1 && /* @__PURE__ */ t("div", { className: fe.line })
|
|
1542
1542
|
] }),
|
|
1543
1543
|
/* @__PURE__ */ h("div", { className: fe.apuestaText, children: [
|
|
1544
1544
|
/* @__PURE__ */ t("strong", { children: b.value }),
|
|
@@ -1603,13 +1603,13 @@ function rt({
|
|
|
1603
1603
|
size: f,
|
|
1604
1604
|
fullWidth: g = !1,
|
|
1605
1605
|
fullHeight: m = !1,
|
|
1606
|
-
className:
|
|
1607
|
-
ariaLabel:
|
|
1606
|
+
className: d = "",
|
|
1607
|
+
ariaLabel: u,
|
|
1608
1608
|
leftIcon: b,
|
|
1609
1609
|
rightIcon: x,
|
|
1610
1610
|
iconOnly: v
|
|
1611
1611
|
}) {
|
|
1612
|
-
const
|
|
1612
|
+
const S = !!e && e !== !0, _ = (!!b ? 1 : 0) + (!!x ? 1 : 0) == 1, C = v != null ? v : _ && !S, O = [
|
|
1613
1613
|
ge["orc-btn"],
|
|
1614
1614
|
// base
|
|
1615
1615
|
ge[`orc-btn--${c}`],
|
|
@@ -1618,11 +1618,11 @@ function rt({
|
|
|
1618
1618
|
// sm / md / lg
|
|
1619
1619
|
g ? ge["orc-btn--full"] : "",
|
|
1620
1620
|
m ? ge["orc-btn--fullHeight"] : "",
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
].filter(Boolean).join(" "),
|
|
1621
|
+
C ? ge["orc-btn--iconOnly"] : "",
|
|
1622
|
+
d
|
|
1623
|
+
].filter(Boolean).join(" "), w = /* @__PURE__ */ h(te, { children: [
|
|
1624
1624
|
b && /* @__PURE__ */ t("span", { className: ge["orc-btn__icon"], children: b }),
|
|
1625
|
-
|
|
1625
|
+
!C && /* @__PURE__ */ t("span", { className: ge["orc-btn__label"], children: e }),
|
|
1626
1626
|
x && /* @__PURE__ */ t("span", { className: ge["orc-btn__icon"], children: x })
|
|
1627
1627
|
] }), L = l ? !0 : void 0;
|
|
1628
1628
|
return n ? /* @__PURE__ */ t(
|
|
@@ -1631,12 +1631,12 @@ function rt({
|
|
|
1631
1631
|
href: n,
|
|
1632
1632
|
target: o,
|
|
1633
1633
|
rel: i,
|
|
1634
|
-
"aria-label":
|
|
1634
|
+
"aria-label": u,
|
|
1635
1635
|
"aria-disabled": L,
|
|
1636
1636
|
tabIndex: L ? -1 : void 0,
|
|
1637
|
-
className:
|
|
1637
|
+
className: O,
|
|
1638
1638
|
onClick: L ? (R) => R.preventDefault() : a,
|
|
1639
|
-
children:
|
|
1639
|
+
children: w
|
|
1640
1640
|
}
|
|
1641
1641
|
) : /* @__PURE__ */ t(
|
|
1642
1642
|
"button",
|
|
@@ -1644,13 +1644,13 @@ function rt({
|
|
|
1644
1644
|
type: s,
|
|
1645
1645
|
onClick: a,
|
|
1646
1646
|
disabled: !!L,
|
|
1647
|
-
"aria-label":
|
|
1648
|
-
className:
|
|
1649
|
-
children:
|
|
1647
|
+
"aria-label": u,
|
|
1648
|
+
className: O,
|
|
1649
|
+
children: w
|
|
1650
1650
|
}
|
|
1651
1651
|
);
|
|
1652
1652
|
}
|
|
1653
|
-
const Xa = "oraculo__OraculoTennisScoreboard-module__tennisContainer___I3KST", Qa = "oraculo__OraculoTennisScoreboard-module__tennisTable___haqoS", Ya = "oraculo__OraculoTennisScoreboard-module__tennisTableRow___IbIkR", en = "oraculo__OraculoTennisScoreboard-module__colName___mNrno", tn = "oraculo__OraculoTennisScoreboard-module__colHeader___e3Eis", an = "oraculo__OraculoTennisScoreboard-module__serveDot___hn2Zf", nn = "oraculo__OraculoTennisScoreboard-module__activeServe___SMoyr", on = "oraculo__OraculoTennisScoreboard-module__cellPlayerNameHome___pUZjS", rn = "oraculo__OraculoTennisScoreboard-module__cellPlayerNameAway___jf9sp", ln = "oraculo__OraculoTennisScoreboard-module__playerName___OKXca", sn = "oraculo__OraculoTennisScoreboard-module__cellStat___QhEvN", cn = "oraculo__OraculoTennisScoreboard-module__active___5OX1k", dn = "oraculo__OraculoTennisScoreboard-module__border___Xzw2j", un = "oraculo__OraculoTennisScoreboard-module__hasDivider___Dv65A", mn = "oraculo__OraculoTennisScoreboard-module__colDot___euain", pn = "oraculo__OraculoTennisScoreboard-module__dotWrapper___k0gUr", fn = "oraculo__OraculoTennisScoreboard-module__cellDotHome___Y7hCS", gn = "oraculo__OraculoTennisScoreboard-module__cellDotAway___9Ugqr", hn = "oraculo__OraculoTennisScoreboard-module__cellHome___J2681", bn = "oraculo__OraculoTennisScoreboard-module__cellAway___yJ34F",
|
|
1653
|
+
const Xa = "oraculo__OraculoTennisScoreboard-module__tennisContainer___I3KST", Qa = "oraculo__OraculoTennisScoreboard-module__tennisTable___haqoS", Ya = "oraculo__OraculoTennisScoreboard-module__tennisTableRow___IbIkR", en = "oraculo__OraculoTennisScoreboard-module__colName___mNrno", tn = "oraculo__OraculoTennisScoreboard-module__colHeader___e3Eis", an = "oraculo__OraculoTennisScoreboard-module__serveDot___hn2Zf", nn = "oraculo__OraculoTennisScoreboard-module__activeServe___SMoyr", on = "oraculo__OraculoTennisScoreboard-module__cellPlayerNameHome___pUZjS", rn = "oraculo__OraculoTennisScoreboard-module__cellPlayerNameAway___jf9sp", ln = "oraculo__OraculoTennisScoreboard-module__playerName___OKXca", sn = "oraculo__OraculoTennisScoreboard-module__cellStat___QhEvN", cn = "oraculo__OraculoTennisScoreboard-module__active___5OX1k", dn = "oraculo__OraculoTennisScoreboard-module__border___Xzw2j", un = "oraculo__OraculoTennisScoreboard-module__hasDivider___Dv65A", mn = "oraculo__OraculoTennisScoreboard-module__colDot___euain", pn = "oraculo__OraculoTennisScoreboard-module__dotWrapper___k0gUr", fn = "oraculo__OraculoTennisScoreboard-module__cellDotHome___Y7hCS", gn = "oraculo__OraculoTennisScoreboard-module__cellDotAway___9Ugqr", hn = "oraculo__OraculoTennisScoreboard-module__cellHome___J2681", bn = "oraculo__OraculoTennisScoreboard-module__cellAway___yJ34F", q = {
|
|
1654
1654
|
tennisContainer: Xa,
|
|
1655
1655
|
tennisTable: Qa,
|
|
1656
1656
|
tennisTableRow: Ya,
|
|
@@ -1682,43 +1682,43 @@ function _n({
|
|
|
1682
1682
|
homeServe: l = !0
|
|
1683
1683
|
}) {
|
|
1684
1684
|
const c = n.reduce(
|
|
1685
|
-
(M,
|
|
1685
|
+
(M, E, _) => E >= 0 ? _ : M,
|
|
1686
1686
|
0
|
|
1687
1687
|
);
|
|
1688
1688
|
let f = 0, g = 0;
|
|
1689
|
-
n.forEach((M,
|
|
1690
|
-
var
|
|
1691
|
-
const _ = (
|
|
1692
|
-
|
|
1689
|
+
n.forEach((M, E) => {
|
|
1690
|
+
var C;
|
|
1691
|
+
const _ = (C = o[E]) != null ? C : -1;
|
|
1692
|
+
E !== c && M >= 0 && _ >= 0 && (M > _ && f++, _ > M && g++);
|
|
1693
1693
|
});
|
|
1694
|
-
const m = n[c] >= 0 ? n[c] : 0,
|
|
1694
|
+
const m = n[c] >= 0 ? n[c] : 0, d = o[c] >= 0 ? o[c] : 0, u = (M) => {
|
|
1695
1695
|
if (typeof M == "number") return M;
|
|
1696
|
-
const
|
|
1697
|
-
return
|
|
1698
|
-
}, b =
|
|
1699
|
-
let v = !1,
|
|
1700
|
-
return f !== g ? (v = f > g,
|
|
1696
|
+
const E = String(M).trim().toUpperCase();
|
|
1697
|
+
return E === "A" || E === "ADV" ? 50 : parseInt(E, 10) || 0;
|
|
1698
|
+
}, b = u(i), x = u(s);
|
|
1699
|
+
let v = !1, S = !1;
|
|
1700
|
+
return f !== g ? (v = f > g, S = g > f) : m !== d ? (v = m > d, S = d > m) : b !== x && (v = b > x, S = x > b), /* @__PURE__ */ t("div", { className: q.tennisContainer, children: /* @__PURE__ */ h("table", { className: q.tennisTable, children: [
|
|
1701
1701
|
/* @__PURE__ */ t("thead", { children: /* @__PURE__ */ h("tr", { style: { height: "18px" }, children: [
|
|
1702
|
-
/* @__PURE__ */ t("th", { className:
|
|
1703
|
-
/* @__PURE__ */ t("th", { className:
|
|
1704
|
-
/* @__PURE__ */ t("th", { className:
|
|
1705
|
-
/* @__PURE__ */ t("th", { className: `${
|
|
1706
|
-
/* @__PURE__ */ t("th", { className:
|
|
1702
|
+
/* @__PURE__ */ t("th", { className: q.colDot }),
|
|
1703
|
+
/* @__PURE__ */ t("th", { className: q.colName }),
|
|
1704
|
+
/* @__PURE__ */ t("th", { className: q.colHeader, children: "SETS" }),
|
|
1705
|
+
/* @__PURE__ */ t("th", { className: `${q.colHeader} ${q.border}`, style: { width: "62px" }, children: "JUEGOS" }),
|
|
1706
|
+
/* @__PURE__ */ t("th", { className: q.colHeader, children: "PTS" })
|
|
1707
1707
|
] }) }),
|
|
1708
1708
|
/* @__PURE__ */ h("tbody", { children: [
|
|
1709
|
-
/* @__PURE__ */ h("tr", { className:
|
|
1710
|
-
/* @__PURE__ */ t("td", { className:
|
|
1711
|
-
/* @__PURE__ */ t("td", { className: `${
|
|
1712
|
-
/* @__PURE__ */ t("td", { className: `${
|
|
1713
|
-
/* @__PURE__ */ t("td", { className: `${
|
|
1714
|
-
/* @__PURE__ */ t("td", { className: `${
|
|
1709
|
+
/* @__PURE__ */ h("tr", { className: q.tennisTableRow, children: [
|
|
1710
|
+
/* @__PURE__ */ t("td", { className: q.cellDotHome, children: /* @__PURE__ */ t("div", { className: q.dotWrapper, children: /* @__PURE__ */ t("span", { className: `${q.serveDot} ${l ? q.activeServe : ""}` }) }) }),
|
|
1711
|
+
/* @__PURE__ */ t("td", { className: `${q.cellPlayerNameHome} ${q.hasDivider}`, children: /* @__PURE__ */ t("span", { className: q.playerName, children: e }) }),
|
|
1712
|
+
/* @__PURE__ */ t("td", { className: `${q.cellStat} ${q.cellHome} ${q.hasDivider} ${v ? q.active : ""}`, children: f }),
|
|
1713
|
+
/* @__PURE__ */ t("td", { className: `${q.cellStat} ${q.cellHome} ${q.hasDivider} ${q.border} ${v ? q.active : ""}`, children: m }),
|
|
1714
|
+
/* @__PURE__ */ t("td", { className: `${q.cellStat} ${q.cellHome} ${q.hasDivider} ${v ? q.active : ""}`, children: i })
|
|
1715
1715
|
] }),
|
|
1716
|
-
/* @__PURE__ */ h("tr", { className:
|
|
1717
|
-
/* @__PURE__ */ t("td", { className:
|
|
1718
|
-
/* @__PURE__ */ t("td", { className:
|
|
1719
|
-
/* @__PURE__ */ t("td", { className: `${
|
|
1720
|
-
/* @__PURE__ */ t("td", { className: `${
|
|
1721
|
-
/* @__PURE__ */ t("td", { className: `${
|
|
1716
|
+
/* @__PURE__ */ h("tr", { className: q.tennisTableRow, children: [
|
|
1717
|
+
/* @__PURE__ */ t("td", { className: q.cellDotAway, children: /* @__PURE__ */ t("div", { className: q.dotWrapper, children: /* @__PURE__ */ t("span", { className: `${q.serveDot} ${l ? "" : q.activeServe}` }) }) }),
|
|
1718
|
+
/* @__PURE__ */ t("td", { className: q.cellPlayerNameAway, children: /* @__PURE__ */ t("span", { className: q.playerName, children: a }) }),
|
|
1719
|
+
/* @__PURE__ */ t("td", { className: `${q.cellStat} ${q.cellAway} ${S ? q.active : ""}`, children: g }),
|
|
1720
|
+
/* @__PURE__ */ t("td", { className: `${q.cellStat} ${q.cellAway} ${q.border} ${S ? q.active : ""}`, children: d }),
|
|
1721
|
+
/* @__PURE__ */ t("td", { className: `${q.cellStat} ${q.cellAway} ${S ? q.active : ""}`, children: s })
|
|
1722
1722
|
] })
|
|
1723
1723
|
] })
|
|
1724
1724
|
] }) });
|
|
@@ -1761,11 +1761,11 @@ const vn = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", yn = "
|
|
|
1761
1761
|
return e ? (a = On[e]) != null ? a : e : "";
|
|
1762
1762
|
};
|
|
1763
1763
|
function In({ event: e, liveData: a, betOffers: n, jersey: o }) {
|
|
1764
|
-
var
|
|
1765
|
-
const i = ((
|
|
1766
|
-
(
|
|
1767
|
-
var
|
|
1768
|
-
return ((
|
|
1764
|
+
var u, b, x, v, S, M, E, _, C, O, w, L, R, $, y, I, F, B, P, W, V, H, G, D, K, Y, r, p, T, A;
|
|
1765
|
+
const i = ((u = e == null ? void 0 : e.sport) == null ? void 0 : u.toUpperCase()) === "TENNIS", s = ((b = e == null ? void 0 : e.sport) == null ? void 0 : b.toUpperCase()) === "BASKETBALL", l = ((x = e == null ? void 0 : e.sport) == null ? void 0 : x.toUpperCase()) === "FOOTBALL", c = n == null ? void 0 : n.find(
|
|
1766
|
+
(k) => {
|
|
1767
|
+
var N;
|
|
1768
|
+
return ((N = k.betOfferType) == null ? void 0 : N.id) === 2;
|
|
1769
1769
|
}
|
|
1770
1770
|
), f = {
|
|
1771
1771
|
englishLabel: "",
|
|
@@ -1777,23 +1777,23 @@ function In({ event: e, liveData: a, betOffers: n, jersey: o }) {
|
|
|
1777
1777
|
status: "INACTIVE",
|
|
1778
1778
|
cashOutStatus: "SUSPENDED"
|
|
1779
1779
|
}, g = () => {
|
|
1780
|
-
var
|
|
1781
|
-
return `${((ne = (J = (
|
|
1780
|
+
var U, J, ne;
|
|
1781
|
+
return `${((ne = (J = (U = a == null ? void 0 : a.statistics) == null ? void 0 : U.sets) == null ? void 0 : J.home) != null ? ne : []).reduce((oe, j, ie) => j >= 0 ? ie : oe, 0) + 1}ºset`;
|
|
1782
1782
|
}, m = [
|
|
1783
1783
|
{ ...f, id: -1, label: "1", odds: void 0 },
|
|
1784
1784
|
{ ...f, id: -2, label: "X", odds: void 0 },
|
|
1785
1785
|
{ ...f, id: -3, label: "2", odds: void 0 }
|
|
1786
|
-
],
|
|
1786
|
+
], d = (v = o == null ? void 0 : o.gender) != null ? v : "men";
|
|
1787
1787
|
return /* @__PURE__ */ t("div", { className: `${Ie.cardWrapper} ${i ? Ie.cardWrapperTennis : ""}`, children: /* @__PURE__ */ h(Q, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1788
1788
|
/* @__PURE__ */ h(Q, { direction: "column", spacing: i ? 1 : 1.5, useFlexGap: !0, children: [
|
|
1789
1789
|
/* @__PURE__ */ t(
|
|
1790
1790
|
oa,
|
|
1791
1791
|
{
|
|
1792
|
-
title: (
|
|
1792
|
+
title: (E = (M = (S = e == null ? void 0 : e.path) == null ? void 0 : S[0]) == null ? void 0 : M.name) != null ? E : "",
|
|
1793
1793
|
subtitle: (_ = e == null ? void 0 : e.group) != null ? _ : "",
|
|
1794
1794
|
live: !0,
|
|
1795
|
-
time: i ? g() : ((
|
|
1796
|
-
extra: s ? st((
|
|
1795
|
+
time: i ? g() : ((C = a == null ? void 0 : a.matchClock) == null ? void 0 : C.minute) != null ? `${a.matchClock.minute}'` : "",
|
|
1796
|
+
extra: s ? st((O = a == null ? void 0 : a.matchClock) == null ? void 0 : O.periodId) : ""
|
|
1797
1797
|
}
|
|
1798
1798
|
),
|
|
1799
1799
|
/* @__PURE__ */ t("div", { children: i ? /* @__PURE__ */ t(
|
|
@@ -1801,39 +1801,39 @@ function In({ event: e, liveData: a, betOffers: n, jersey: o }) {
|
|
|
1801
1801
|
{
|
|
1802
1802
|
homeName: e == null ? void 0 : e.homeName,
|
|
1803
1803
|
awayName: e == null ? void 0 : e.awayName,
|
|
1804
|
-
homeSets: (R = (L = (
|
|
1805
|
-
awaySets: (
|
|
1804
|
+
homeSets: (R = (L = (w = a == null ? void 0 : a.statistics) == null ? void 0 : w.sets) == null ? void 0 : L.home) != null ? R : [],
|
|
1805
|
+
awaySets: (I = (y = ($ = a == null ? void 0 : a.statistics) == null ? void 0 : $.sets) == null ? void 0 : y.away) != null ? I : [],
|
|
1806
1806
|
homePoints: (B = (F = a == null ? void 0 : a.score) == null ? void 0 : F.home) != null ? B : "0",
|
|
1807
1807
|
awayPoints: (W = (P = a == null ? void 0 : a.score) == null ? void 0 : P.away) != null ? W : "0",
|
|
1808
1808
|
homeServe: (G = (H = (V = a == null ? void 0 : a.statistics) == null ? void 0 : V.sets) == null ? void 0 : H.homeServe) != null ? G : !0
|
|
1809
1809
|
}
|
|
1810
1810
|
) : /* @__PURE__ */ h(me, { spacing: 1.5, columns: "1fr auto 1fr", children: [
|
|
1811
|
-
/* @__PURE__ */ t(ze, { name: e == null ? void 0 : e.homeName, sport: e.sport, gender:
|
|
1811
|
+
/* @__PURE__ */ t(ze, { name: e == null ? void 0 : e.homeName, sport: e.sport, gender: d, jersey: De(o, "home"), flag: (D = o == null ? void 0 : o.homeFlag) != null ? D : "" }),
|
|
1812
1812
|
/* @__PURE__ */ t(St, { size: s ? "basketball" : "normal", text: ((Y = (K = a == null ? void 0 : a.score) == null ? void 0 : K.home) != null ? Y : 0) + ":" + ((p = (r = a == null ? void 0 : a.score) == null ? void 0 : r.away) != null ? p : 0), name: l ? st((T = a == null ? void 0 : a.matchClock) == null ? void 0 : T.periodId) : "" }),
|
|
1813
|
-
/* @__PURE__ */ t(ze, { name: e == null ? void 0 : e.awayName, sport: e.sport, gender:
|
|
1813
|
+
/* @__PURE__ */ t(ze, { name: e == null ? void 0 : e.awayName, sport: e.sport, gender: d, jersey: De(o, "away"), flag: (A = o == null ? void 0 : o.awayFlag) != null ? A : "" })
|
|
1814
1814
|
] }) })
|
|
1815
1815
|
] }),
|
|
1816
1816
|
/* @__PURE__ */ t(Q, { direction: "column", spacing: 0.5, useFlexGap: !0, children: (() => {
|
|
1817
1817
|
var oe;
|
|
1818
|
-
const
|
|
1818
|
+
const k = (oe = c == null ? void 0 : c.outcomes) != null ? oe : m, N = { OT_ONE: 1, OT_CROSS: 2, OT_TWO: 3 }, U = [...k].sort((j, ie) => {
|
|
1819
1819
|
var Oe, $e;
|
|
1820
1820
|
if (j.displayOrder !== void 0 && ie.displayOrder !== void 0)
|
|
1821
1821
|
return j.displayOrder - ie.displayOrder;
|
|
1822
|
-
const Se = j.type && (Oe =
|
|
1822
|
+
const Se = j.type && (Oe = N[j.type]) != null ? Oe : 99, we = ie.type && ($e = N[ie.type]) != null ? $e : 99;
|
|
1823
1823
|
return Se - we;
|
|
1824
1824
|
}), J = (j) => {
|
|
1825
1825
|
var ie, Se, we, Oe;
|
|
1826
|
-
return i ||
|
|
1826
|
+
return i || U.length === 2 ? j.type === "OT_ONE" ? "1" : j.type === "OT_TWO" ? "2" : (Se = (ie = j.label) == null ? void 0 : ie.toUpperCase()) != null ? Se : "" : (Oe = (we = j.label) == null ? void 0 : we.toUpperCase()) != null ? Oe : "";
|
|
1827
1827
|
};
|
|
1828
1828
|
return /* @__PURE__ */ t(te, { children: s || i ? /* @__PURE__ */ h(te, { children: [
|
|
1829
1829
|
/* @__PURE__ */ t(me, { spacing: 1, columns: "1fr", children: /* @__PURE__ */ t(Ke, { text: "Ganador del partido" }) }),
|
|
1830
|
-
/* @__PURE__ */ t(me, { spacing: 2, children:
|
|
1830
|
+
/* @__PURE__ */ t(me, { spacing: 2, children: U.slice(0, 2).map((j, ie) => /* @__PURE__ */ t(
|
|
1831
1831
|
rt,
|
|
1832
1832
|
{
|
|
1833
1833
|
variant: "primary",
|
|
1834
1834
|
disabled: j.odds === void 0 || (c == null ? void 0 : c.cashOutStatus) === "SUSPENDED",
|
|
1835
1835
|
onClick: () => {
|
|
1836
|
-
|
|
1836
|
+
qe(
|
|
1837
1837
|
"/deportes#event/live/" + e.id,
|
|
1838
1838
|
j.id
|
|
1839
1839
|
);
|
|
@@ -1859,20 +1859,20 @@ function In({ event: e, liveData: a, betOffers: n, jersey: o }) {
|
|
|
1859
1859
|
j.id || ie
|
|
1860
1860
|
)) })
|
|
1861
1861
|
] }) : /* @__PURE__ */ h(te, { children: [
|
|
1862
|
-
/* @__PURE__ */ t(me, { spacing: 1, children:
|
|
1862
|
+
/* @__PURE__ */ t(me, { spacing: 1, children: U.map((j, ie) => /* @__PURE__ */ t(
|
|
1863
1863
|
Ke,
|
|
1864
1864
|
{
|
|
1865
1865
|
text: J(j)
|
|
1866
1866
|
},
|
|
1867
1867
|
j.id || ie
|
|
1868
1868
|
)) }),
|
|
1869
|
-
/* @__PURE__ */ t(me, { spacing: 2, children:
|
|
1869
|
+
/* @__PURE__ */ t(me, { spacing: 2, children: U.map((j, ie) => /* @__PURE__ */ t(
|
|
1870
1870
|
rt,
|
|
1871
1871
|
{
|
|
1872
1872
|
variant: "primary",
|
|
1873
1873
|
disabled: j.odds === void 0 || (c == null ? void 0 : c.cashOutStatus) === "SUSPENDED",
|
|
1874
1874
|
onClick: () => {
|
|
1875
|
-
|
|
1875
|
+
qe(
|
|
1876
1876
|
"/deportes#event/live/" + e.id,
|
|
1877
1877
|
j.id
|
|
1878
1878
|
);
|
|
@@ -1901,24 +1901,46 @@ const kn = "oraculo__OraculoEventSemanaCard-module__cardContainer___4JuDe", Nn =
|
|
|
1901
1901
|
function Mn({ event: e, jersey: a }) {
|
|
1902
1902
|
var c, f, g, m;
|
|
1903
1903
|
const n = se(), o = ce();
|
|
1904
|
-
function i(
|
|
1905
|
-
const
|
|
1906
|
-
let
|
|
1907
|
-
return
|
|
1904
|
+
function i(d) {
|
|
1905
|
+
const u = new Date(d), b = u.toLocaleDateString("es-ES", { weekday: "short" }).toUpperCase(), x = u.getDate().toString().padStart(2, "0"), v = (u.getMonth() + 1).toString().padStart(2, "0");
|
|
1906
|
+
let S = u.toLocaleTimeString("es-PE", { hour: "numeric", minute: "2-digit", hour12: !0 }).toUpperCase();
|
|
1907
|
+
return S = S.replace(/\./g, "").replace(/A\s*M/i, "AM").replace(/P\s*M/i, "PM"), `${b} ${x}/${v} | ${S}`;
|
|
1908
1908
|
}
|
|
1909
|
-
const s = (
|
|
1910
|
-
|
|
1911
|
-
|
|
1909
|
+
const s = (d) => {
|
|
1910
|
+
var E, _, C, O, w, L, R, $;
|
|
1911
|
+
const u = `/deportes#event/${e.id}`, b = `${e.homeName} vs ${e.awayName}`, x = d.odds ? (d.odds / 1e3).toFixed(2) : "", v = x ? `${b} - Cuota: ${x}` : b, S = (E = e == null ? void 0 : e.outcome) == null ? void 0 : E[0], M = new CustomEvent("ORACULO_WEEKLY_OUTCOME_SELECTED", {
|
|
1912
|
+
cancelable: !0,
|
|
1913
|
+
detail: {
|
|
1914
|
+
eventId: e.id,
|
|
1915
|
+
eventName: e.name,
|
|
1916
|
+
homeName: e.homeName,
|
|
1917
|
+
awayName: e.awayName,
|
|
1918
|
+
start: e.start,
|
|
1919
|
+
sport: e.sport,
|
|
1920
|
+
league: e.group,
|
|
1921
|
+
leagueId: e.groupId,
|
|
1922
|
+
country: (C = (_ = e.path) == null ? void 0 : _[1]) == null ? void 0 : C.name,
|
|
1923
|
+
outcomeId: d.id,
|
|
1924
|
+
outcomeLabel: d.label,
|
|
1925
|
+
outcomeType: d.type,
|
|
1926
|
+
odds: d.odds,
|
|
1927
|
+
betOfferId: (O = d.betOfferId) != null ? O : S == null ? void 0 : S.id,
|
|
1928
|
+
criterionId: (w = S == null ? void 0 : S.criterion) == null ? void 0 : w.id,
|
|
1929
|
+
market: ($ = (L = S == null ? void 0 : S.criterion) == null ? void 0 : L.label) != null ? $ : (R = S == null ? void 0 : S.betOfferType) == null ? void 0 : R.name,
|
|
1930
|
+
destination: u
|
|
1931
|
+
}
|
|
1932
|
+
});
|
|
1933
|
+
document.dispatchEvent(M) && (n({
|
|
1912
1934
|
element: "evento_semana_outcome",
|
|
1913
1935
|
label: `Landing: ${o} - OraculoEventSemanaCard - Click: ${v}`,
|
|
1914
|
-
target:
|
|
1936
|
+
target: u,
|
|
1915
1937
|
event_type: "click",
|
|
1916
1938
|
module_id: 301,
|
|
1917
1939
|
metadata: {
|
|
1918
1940
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1919
1941
|
},
|
|
1920
1942
|
tags: { section: "OraculoEventSemanaCard", outcomes: v }
|
|
1921
|
-
}),
|
|
1943
|
+
}), qe(u, d.id));
|
|
1922
1944
|
}, l = (c = a == null ? void 0 : a.gender) != null ? c : "men";
|
|
1923
1945
|
return /* @__PURE__ */ h("div", { className: Te.cardContainer, children: [
|
|
1924
1946
|
/* @__PURE__ */ t(xt, { title: (f = e == null ? void 0 : e.group) != null ? f : "" }),
|
|
@@ -1932,34 +1954,34 @@ function Mn({ event: e, jersey: a }) {
|
|
|
1932
1954
|
/* @__PURE__ */ t(Cn, { text: i(e.start) })
|
|
1933
1955
|
] }),
|
|
1934
1956
|
/* @__PURE__ */ t(Q, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: (() => {
|
|
1935
|
-
var
|
|
1936
|
-
const
|
|
1957
|
+
var S, M, E;
|
|
1958
|
+
const d = (E = (M = (S = e == null ? void 0 : e.outcome) == null ? void 0 : S[0]) == null ? void 0 : M.outcomes) != null ? E : [], u = (e == null ? void 0 : e.sport) === "TENNIS", b = { OT_ONE: 1, OT_CROSS: 2, OT_TWO: 3 }, x = [...d].sort((_, C) => {
|
|
1937
1959
|
var L, R;
|
|
1938
|
-
if (_.displayOrder !== void 0 &&
|
|
1939
|
-
return _.displayOrder -
|
|
1940
|
-
const
|
|
1941
|
-
return
|
|
1960
|
+
if (_.displayOrder !== void 0 && C.displayOrder !== void 0)
|
|
1961
|
+
return _.displayOrder - C.displayOrder;
|
|
1962
|
+
const O = _.type && (L = b[_.type]) != null ? L : 99, w = C.type && (R = b[C.type]) != null ? R : 99;
|
|
1963
|
+
return O - w;
|
|
1942
1964
|
}), v = (_) => {
|
|
1943
|
-
var
|
|
1944
|
-
return
|
|
1965
|
+
var C, O, w, L;
|
|
1966
|
+
return u || x.length === 2 ? _.type === "OT_ONE" ? "1" : _.type === "OT_TWO" ? "2" : (O = (C = _.label) == null ? void 0 : C.toUpperCase()) != null ? O : "" : (L = (w = _.label) == null ? void 0 : w.toUpperCase()) != null ? L : "";
|
|
1945
1967
|
};
|
|
1946
1968
|
return /* @__PURE__ */ h(te, { children: [
|
|
1947
|
-
/* @__PURE__ */ t(me, { spacing: 1, children: x.map((_,
|
|
1969
|
+
/* @__PURE__ */ t(me, { spacing: 1, children: x.map((_, C) => /* @__PURE__ */ t(
|
|
1948
1970
|
Ke,
|
|
1949
1971
|
{
|
|
1950
1972
|
text: v(_)
|
|
1951
1973
|
},
|
|
1952
|
-
_.id ||
|
|
1974
|
+
_.id || C
|
|
1953
1975
|
)) }),
|
|
1954
|
-
/* @__PURE__ */ t("div", { className: Te.jugadas, children: /* @__PURE__ */ t(me, { spacing: 1, children: x.map((_,
|
|
1976
|
+
/* @__PURE__ */ t("div", { className: Te.jugadas, children: /* @__PURE__ */ t(me, { spacing: 1, children: x.map((_, C) => /* @__PURE__ */ t(
|
|
1955
1977
|
ae,
|
|
1956
1978
|
{
|
|
1957
1979
|
variant: "primary",
|
|
1958
1980
|
fullHeight: !0,
|
|
1959
|
-
onClick: () => s(_
|
|
1981
|
+
onClick: () => s(_),
|
|
1960
1982
|
children: (_.odds / 1e3).toFixed(2)
|
|
1961
1983
|
},
|
|
1962
|
-
_.id ||
|
|
1984
|
+
_.id || C
|
|
1963
1985
|
)) }) })
|
|
1964
1986
|
] });
|
|
1965
1987
|
})() })
|
|
@@ -1987,61 +2009,61 @@ function Ln({
|
|
|
1987
2009
|
className: s = "",
|
|
1988
2010
|
paddingMobile: l = "24px"
|
|
1989
2011
|
}) {
|
|
1990
|
-
var
|
|
1991
|
-
const c = Z(null), [f, g] = ee({ isStart: !0, isEnd: !1 }), m = se(),
|
|
1992
|
-
var
|
|
2012
|
+
var O;
|
|
2013
|
+
const c = Z(null), [f, g] = ee({ isStart: !0, isEnd: !1 }), m = se(), d = ce(), u = pe(), b = !e || e.length === 0, x = () => {
|
|
2014
|
+
var w;
|
|
1993
2015
|
m({
|
|
1994
2016
|
element: "destacados_carousel_prev",
|
|
1995
|
-
label: `${
|
|
2017
|
+
label: `${d} - OraculoSeccionDestacados - Anterior`,
|
|
1996
2018
|
target: "carousel",
|
|
1997
2019
|
event_type: "click",
|
|
1998
|
-
module_id:
|
|
2020
|
+
module_id: u,
|
|
1999
2021
|
metadata: {
|
|
2000
2022
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2001
2023
|
},
|
|
2002
2024
|
tags: { section: "OraculoSeccionDestacados" }
|
|
2003
|
-
}), (
|
|
2025
|
+
}), (w = c.current) == null || w.prev();
|
|
2004
2026
|
}, v = () => {
|
|
2005
|
-
var
|
|
2027
|
+
var w;
|
|
2006
2028
|
m({
|
|
2007
2029
|
element: "destacados_carousel_next",
|
|
2008
|
-
label: `${
|
|
2030
|
+
label: `${d} - OraculoSeccionDestacados - Siguiente`,
|
|
2009
2031
|
target: "carousel",
|
|
2010
2032
|
event_type: "click",
|
|
2011
|
-
module_id:
|
|
2033
|
+
module_id: u,
|
|
2012
2034
|
metadata: {
|
|
2013
2035
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2014
2036
|
},
|
|
2015
2037
|
tags: { section: "OraculoSeccionDestacados" }
|
|
2016
|
-
}), (
|
|
2017
|
-
},
|
|
2038
|
+
}), (w = c.current) == null || w.next();
|
|
2039
|
+
}, S = () => {
|
|
2018
2040
|
m({
|
|
2019
2041
|
element: "destacados_view_more",
|
|
2020
|
-
label: `${
|
|
2042
|
+
label: `${d} - OraculoSeccionDestacados - Ver más`,
|
|
2021
2043
|
target: "https://www.olimpo.bet/promociones",
|
|
2022
2044
|
event_type: "click",
|
|
2023
|
-
module_id:
|
|
2045
|
+
module_id: u,
|
|
2024
2046
|
metadata: {
|
|
2025
2047
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2026
2048
|
},
|
|
2027
2049
|
tags: { section: "OraculoSeccionDestacados" }
|
|
2028
2050
|
}), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/promociones");
|
|
2029
|
-
}, M = s || void 0,
|
|
2051
|
+
}, M = s || void 0, E = Ne("(max-width:950px)"), _ = (O = e == null ? void 0 : e.length) != null ? O : 0;
|
|
2030
2052
|
re(() => {
|
|
2031
2053
|
if (_ === 0) {
|
|
2032
2054
|
g({ isStart: !0, isEnd: !0 });
|
|
2033
2055
|
return;
|
|
2034
2056
|
}
|
|
2035
2057
|
g({ isStart: !0, isEnd: !1 });
|
|
2036
|
-
}, [_,
|
|
2037
|
-
const
|
|
2038
|
-
const L =
|
|
2058
|
+
}, [_, E, l]);
|
|
2059
|
+
const C = (w) => {
|
|
2060
|
+
const L = w.promotion, R = L ? `https://www.olimpo.bet/promociones/${encodeURIComponent(L)}` : "";
|
|
2039
2061
|
if (m({
|
|
2040
2062
|
element: "destacados_card",
|
|
2041
|
-
label: `${
|
|
2063
|
+
label: `${d} - OraculoSeccionDestacados - Click: ${L || w.title}`,
|
|
2042
2064
|
target: R || "custom_item_action",
|
|
2043
2065
|
event_type: "click",
|
|
2044
|
-
module_id:
|
|
2066
|
+
module_id: u,
|
|
2045
2067
|
metadata: {
|
|
2046
2068
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2047
2069
|
},
|
|
@@ -2050,7 +2072,7 @@ function Ln({
|
|
|
2050
2072
|
promotion: String(L || "")
|
|
2051
2073
|
}
|
|
2052
2074
|
}), i) {
|
|
2053
|
-
i(
|
|
2075
|
+
i(w);
|
|
2054
2076
|
return;
|
|
2055
2077
|
}
|
|
2056
2078
|
R && typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(R);
|
|
@@ -2066,8 +2088,8 @@ function Ln({
|
|
|
2066
2088
|
columnGap: 12,
|
|
2067
2089
|
rowGap: 8,
|
|
2068
2090
|
marginBottom: 16,
|
|
2069
|
-
paddingLeft:
|
|
2070
|
-
paddingRight:
|
|
2091
|
+
paddingLeft: E ? l : 0,
|
|
2092
|
+
paddingRight: E ? l : 0
|
|
2071
2093
|
},
|
|
2072
2094
|
children: [
|
|
2073
2095
|
/* @__PURE__ */ t(ye, { title: a, iconUrl: n, size: "md" }),
|
|
@@ -2095,7 +2117,7 @@ function Ln({
|
|
|
2095
2117
|
}
|
|
2096
2118
|
)
|
|
2097
2119
|
] }),
|
|
2098
|
-
/* @__PURE__ */ t(ae, { variant: "secondary", onClick:
|
|
2120
|
+
/* @__PURE__ */ t(ae, { variant: "secondary", onClick: S, children: "Ver más" })
|
|
2099
2121
|
]
|
|
2100
2122
|
}
|
|
2101
2123
|
),
|
|
@@ -2107,13 +2129,13 @@ function Ln({
|
|
|
2107
2129
|
perPage: void 0,
|
|
2108
2130
|
gap: "16px",
|
|
2109
2131
|
enableHorizontalWheel: !0,
|
|
2110
|
-
showRightGradient: !
|
|
2132
|
+
showRightGradient: !E,
|
|
2111
2133
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
2112
2134
|
breakpoints: {
|
|
2113
2135
|
768: { perPage: 2, focus: "start", padding: { left: l, right: l } },
|
|
2114
2136
|
1024: { perPage: 2.5, focus: "start", padding: { left: "24px", right: "24px" } }
|
|
2115
2137
|
},
|
|
2116
|
-
renderItem: (
|
|
2138
|
+
renderItem: (w) => {
|
|
2117
2139
|
const L = typeof window != "undefined" && window.innerWidth < 768 ? "80px" : "137px";
|
|
2118
2140
|
return b ? /* @__PURE__ */ t("div", { style: { width: "100%" }, children: /* @__PURE__ */ t(
|
|
2119
2141
|
X,
|
|
@@ -2129,19 +2151,19 @@ function Ln({
|
|
|
2129
2151
|
}
|
|
2130
2152
|
}
|
|
2131
2153
|
}
|
|
2132
|
-
) },
|
|
2154
|
+
) }, w.title) : /* @__PURE__ */ t(
|
|
2133
2155
|
"div",
|
|
2134
2156
|
{
|
|
2135
2157
|
style: {
|
|
2136
2158
|
textAlign: "center",
|
|
2137
2159
|
cursor: "pointer"
|
|
2138
2160
|
},
|
|
2139
|
-
onClick: () =>
|
|
2161
|
+
onClick: () => C(w),
|
|
2140
2162
|
children: /* @__PURE__ */ t(
|
|
2141
2163
|
"img",
|
|
2142
2164
|
{
|
|
2143
|
-
src: `https://olimpo.bet${
|
|
2144
|
-
alt:
|
|
2165
|
+
src: `https://olimpo.bet${w.image !== "" ? w.image : w.summary_image}`,
|
|
2166
|
+
alt: w.title,
|
|
2145
2167
|
style: {
|
|
2146
2168
|
width: "100%",
|
|
2147
2169
|
height: L,
|
|
@@ -2152,19 +2174,19 @@ function Ln({
|
|
|
2152
2174
|
}
|
|
2153
2175
|
)
|
|
2154
2176
|
},
|
|
2155
|
-
`${
|
|
2177
|
+
`${w.title}-${w.image}`
|
|
2156
2178
|
);
|
|
2157
2179
|
},
|
|
2158
|
-
onMove: ({ isStart:
|
|
2159
|
-
g({ isStart:
|
|
2180
|
+
onMove: ({ isStart: w, isEnd: L, source: R }) => {
|
|
2181
|
+
g({ isStart: w, isEnd: L }), R === "user" && m({
|
|
2160
2182
|
element: "destacados_carousel_slide",
|
|
2161
|
-
label: `${
|
|
2183
|
+
label: `${d} - OraculoSeccionDestacados - Slide Carousel`,
|
|
2162
2184
|
target: "carousel",
|
|
2163
2185
|
event_type: "slide",
|
|
2164
|
-
module_id:
|
|
2186
|
+
module_id: u,
|
|
2165
2187
|
metadata: {
|
|
2166
2188
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
2167
|
-
isStart:
|
|
2189
|
+
isStart: w,
|
|
2168
2190
|
isEnd: L
|
|
2169
2191
|
},
|
|
2170
2192
|
tags: { section: "OraculoSeccionDestacados" }
|
|
@@ -2174,10 +2196,10 @@ function Ln({
|
|
|
2174
2196
|
)
|
|
2175
2197
|
] });
|
|
2176
2198
|
}
|
|
2177
|
-
const
|
|
2199
|
+
const Ue = "__ORACULO_EXTRAS__";
|
|
2178
2200
|
function Ct() {
|
|
2179
2201
|
const e = globalThis;
|
|
2180
|
-
return e[
|
|
2202
|
+
return e[Ue] || (e[Ue] = {}), e[Ue];
|
|
2181
2203
|
}
|
|
2182
2204
|
function Rn(e) {
|
|
2183
2205
|
Ct().extras = e;
|
|
@@ -2187,7 +2209,7 @@ function ue(e) {
|
|
|
2187
2209
|
return (a = Ct().extras) == null ? void 0 : a[e];
|
|
2188
2210
|
}
|
|
2189
2211
|
function Pn() {
|
|
2190
|
-
delete globalThis[
|
|
2212
|
+
delete globalThis[Ue];
|
|
2191
2213
|
}
|
|
2192
2214
|
function Fn({
|
|
2193
2215
|
items: e,
|
|
@@ -2196,33 +2218,33 @@ function Fn({
|
|
|
2196
2218
|
onCardClick: o
|
|
2197
2219
|
}) {
|
|
2198
2220
|
const i = se(), s = ce(), l = pe(), c = de(
|
|
2199
|
-
() => (e != null ? e : []).map((
|
|
2221
|
+
() => (e != null ? e : []).map((d, u) => {
|
|
2200
2222
|
var b;
|
|
2201
2223
|
return {
|
|
2202
|
-
...
|
|
2203
|
-
orden: (b =
|
|
2204
|
-
_originalIndex:
|
|
2224
|
+
...d,
|
|
2225
|
+
orden: (b = d.orden) != null ? b : u + 1,
|
|
2226
|
+
_originalIndex: u
|
|
2205
2227
|
};
|
|
2206
|
-
}).sort((
|
|
2228
|
+
}).sort((d, u) => d.orden != null && u.orden != null ? d.orden - u.orden : d._originalIndex - u._originalIndex),
|
|
2207
2229
|
[e]
|
|
2208
|
-
), f = !e || e.length === 0, g = f ? Array.from({ length: 6 }) : c.slice(0, 6), m = (
|
|
2230
|
+
), f = !e || e.length === 0, g = f ? Array.from({ length: 6 }) : c.slice(0, 6), m = (d) => {
|
|
2209
2231
|
i({
|
|
2210
2232
|
element: "top_juegos_card",
|
|
2211
|
-
label: `${s} - OraculoSeccionTopJuegos - Open game: ${String(
|
|
2212
|
-
target: String(
|
|
2233
|
+
label: `${s} - OraculoSeccionTopJuegos - Open game: ${String(d.machine || "unknown")}`,
|
|
2234
|
+
target: String(d.machine || "unknown"),
|
|
2213
2235
|
event_type: "click",
|
|
2214
2236
|
module_id: l,
|
|
2215
2237
|
metadata: {
|
|
2216
2238
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2217
2239
|
},
|
|
2218
2240
|
tags: {
|
|
2219
|
-
game_name: String(
|
|
2241
|
+
game_name: String(d.machine || "unknown"),
|
|
2220
2242
|
section: "OraculoSeccionTopJuegos"
|
|
2221
2243
|
}
|
|
2222
2244
|
});
|
|
2223
|
-
const
|
|
2224
|
-
|
|
2225
|
-
b == null || b(
|
|
2245
|
+
const u = ue("showIframe"), b = ue("loadMachine");
|
|
2246
|
+
u == null || u(), requestAnimationFrame(() => {
|
|
2247
|
+
b == null || b(d, !1, "CASINO");
|
|
2226
2248
|
});
|
|
2227
2249
|
};
|
|
2228
2250
|
return /* @__PURE__ */ t("section", { style: { width: "100%" }, children: /* @__PURE__ */ h(Q, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
@@ -2240,27 +2262,27 @@ function Fn({
|
|
|
2240
2262
|
justifyItems: "center",
|
|
2241
2263
|
width: "100%"
|
|
2242
2264
|
},
|
|
2243
|
-
children: g.map((
|
|
2265
|
+
children: g.map((d, u) => {
|
|
2244
2266
|
var b, x;
|
|
2245
2267
|
return /* @__PURE__ */ t(
|
|
2246
2268
|
Ra,
|
|
2247
2269
|
{
|
|
2248
|
-
imageUrl: f ? "" :
|
|
2249
|
-
orden: f ?
|
|
2270
|
+
imageUrl: f ? "" : d.background ? `https://olimpo.bet${d.background}` : `https://olimpo.bet${(b = d.logo) != null ? b : ""}`,
|
|
2271
|
+
orden: f ? u + 1 : d.orden,
|
|
2250
2272
|
loading: f,
|
|
2251
2273
|
onClick: f ? void 0 : () => {
|
|
2252
|
-
o == null || o(
|
|
2274
|
+
o == null || o(d), m(d);
|
|
2253
2275
|
}
|
|
2254
2276
|
},
|
|
2255
|
-
f ? `sk-${
|
|
2277
|
+
f ? `sk-${u}` : (x = d.machine) != null ? x : `${u}`
|
|
2256
2278
|
);
|
|
2257
2279
|
})
|
|
2258
2280
|
}
|
|
2259
2281
|
)
|
|
2260
2282
|
] }) });
|
|
2261
2283
|
}
|
|
2262
|
-
const
|
|
2263
|
-
var n, o, i, s, l, c, f, g, m,
|
|
2284
|
+
const Un = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking", zn = 8, qn = 80, Dn = (e, a) => {
|
|
2285
|
+
var n, o, i, s, l, c, f, g, m, d, u, b, x, v;
|
|
2264
2286
|
return {
|
|
2265
2287
|
orden: Number(a),
|
|
2266
2288
|
machine: String(
|
|
@@ -2274,8 +2296,8 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2274
2296
|
external_id: (f = e.external_id) != null ? f : "",
|
|
2275
2297
|
type: (g = e.game_type) != null ? g : "",
|
|
2276
2298
|
tags: (m = e.tags) != null ? m : "",
|
|
2277
|
-
lobby_tag: (
|
|
2278
|
-
background: (
|
|
2299
|
+
lobby_tag: (d = e.lobby_tag) != null ? d : null,
|
|
2300
|
+
background: (u = e.background) != null ? u : "",
|
|
2279
2301
|
rtp: (b = e.rtp) != null ? b : null,
|
|
2280
2302
|
demo_allowed: (x = e.demo_allowed) != null ? x : !1,
|
|
2281
2303
|
gaming_session_required: (v = e.gaming_session_required) != null ? v : !1
|
|
@@ -2298,7 +2320,7 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2298
2320
|
const a = Vn(), n = new URLSearchParams({
|
|
2299
2321
|
userId: String(a),
|
|
2300
2322
|
productType: e
|
|
2301
|
-
}), o = `${
|
|
2323
|
+
}), o = `${Un}?${n.toString()}`, i = await fetch(o);
|
|
2302
2324
|
if (!i.ok)
|
|
2303
2325
|
throw new Error(
|
|
2304
2326
|
`No se pudo obtener el ranking. HTTP ${i.status} ${i.statusText}`
|
|
@@ -2311,19 +2333,19 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2311
2333
|
const l = () => {
|
|
2312
2334
|
s || n() || (s = setTimeout(() => {
|
|
2313
2335
|
s = null, n() || a(o.filter(Boolean));
|
|
2314
|
-
},
|
|
2336
|
+
}, qn));
|
|
2315
2337
|
}, c = async () => {
|
|
2316
2338
|
for (; i < e.length; ) {
|
|
2317
2339
|
if (n()) return;
|
|
2318
2340
|
const g = i++, m = e[g];
|
|
2319
2341
|
try {
|
|
2320
|
-
const
|
|
2321
|
-
if (!
|
|
2342
|
+
const d = await fetch(`https://api.mktolimpo.com/api/machine/${m}`);
|
|
2343
|
+
if (!d.ok)
|
|
2322
2344
|
throw new Error(`No se pudo obtener machine ${m}`);
|
|
2323
|
-
const
|
|
2324
|
-
o[g] = Dn(
|
|
2325
|
-
} catch (
|
|
2326
|
-
console.error(`[usePersonalizeGameItems] error al obtener machine ${m}:`,
|
|
2345
|
+
const u = await d.json();
|
|
2346
|
+
o[g] = Dn(u, g), l();
|
|
2347
|
+
} catch (d) {
|
|
2348
|
+
console.error(`[usePersonalizeGameItems] error al obtener machine ${m}:`, d);
|
|
2327
2349
|
}
|
|
2328
2350
|
}
|
|
2329
2351
|
}, f = Array.from(
|
|
@@ -2390,16 +2412,16 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2390
2412
|
className: c,
|
|
2391
2413
|
isPersonalize: f = !1
|
|
2392
2414
|
}) => {
|
|
2393
|
-
const g = se(), m = ce(),
|
|
2415
|
+
const g = se(), m = ce(), d = pe(), u = Xn(f), { resolvedItems: b, loading: x } = Kn(
|
|
2394
2416
|
e,
|
|
2395
|
-
|
|
2396
|
-
), v =
|
|
2417
|
+
u
|
|
2418
|
+
), v = u ? b : Array.isArray(e) ? e : [], S = u ? x : !Array.isArray(e) || e.length === 0, M = (_) => {
|
|
2397
2419
|
g({
|
|
2398
2420
|
element: "live_casino_card",
|
|
2399
|
-
label: `${m} - OraculoSeccionCasinoEnVivo${
|
|
2421
|
+
label: `${m} - OraculoSeccionCasinoEnVivo${u ? " - personalize" : ""} - Open game: ${String(_.machine || "unknown")}`,
|
|
2400
2422
|
target: String(_.machine || "unknown"),
|
|
2401
2423
|
event_type: "click",
|
|
2402
|
-
module_id:
|
|
2424
|
+
module_id: d,
|
|
2403
2425
|
metadata: {
|
|
2404
2426
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2405
2427
|
},
|
|
@@ -2409,8 +2431,8 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2409
2431
|
section: "OraculoSeccionCasinoEnVivo"
|
|
2410
2432
|
}
|
|
2411
2433
|
});
|
|
2412
|
-
const
|
|
2413
|
-
if (!
|
|
2434
|
+
const C = ue("showIframe"), O = ue("loadMachine");
|
|
2435
|
+
if (!O) {
|
|
2414
2436
|
if (i) {
|
|
2415
2437
|
i(_);
|
|
2416
2438
|
return;
|
|
@@ -2421,16 +2443,16 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2421
2443
|
);
|
|
2422
2444
|
return;
|
|
2423
2445
|
}
|
|
2424
|
-
|
|
2425
|
-
|
|
2446
|
+
C == null || C(), typeof window != "undefined" && window.scrollTo({ top: 0, behavior: "smooth" }), requestAnimationFrame(() => {
|
|
2447
|
+
O == null || O(_, !1, "casino_en_vivo");
|
|
2426
2448
|
});
|
|
2427
|
-
},
|
|
2449
|
+
}, E = () => {
|
|
2428
2450
|
g({
|
|
2429
2451
|
element: "casino_en_vivo_view_more",
|
|
2430
|
-
label: `${m} - OraculoSeccionCasinoEnVivo${
|
|
2452
|
+
label: `${m} - OraculoSeccionCasinoEnVivo${u ? " - personalize" : ""} - Ver más`,
|
|
2431
2453
|
target: "https://www.olimpo.bet/casino-en-vivo",
|
|
2432
2454
|
event_type: "click",
|
|
2433
|
-
module_id:
|
|
2455
|
+
module_id: d,
|
|
2434
2456
|
metadata: {
|
|
2435
2457
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2436
2458
|
},
|
|
@@ -2524,7 +2546,7 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2524
2546
|
{
|
|
2525
2547
|
variant: "primary",
|
|
2526
2548
|
size: "md",
|
|
2527
|
-
onClick:
|
|
2549
|
+
onClick: E,
|
|
2528
2550
|
children: "Ver más"
|
|
2529
2551
|
}
|
|
2530
2552
|
) })
|
|
@@ -2540,18 +2562,18 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2540
2562
|
py: { xs: 3, md: 0 },
|
|
2541
2563
|
alignItems: "center"
|
|
2542
2564
|
},
|
|
2543
|
-
children:
|
|
2544
|
-
var
|
|
2565
|
+
children: S ? Array.from({ length: 3 }).map((_, C) => /* @__PURE__ */ t(nt, { loading: !0, logo: "" }, `sk-${C}`)) : (v != null ? v : []).slice(0, 3).map((_, C) => {
|
|
2566
|
+
var O;
|
|
2545
2567
|
return /* @__PURE__ */ t(
|
|
2546
2568
|
nt,
|
|
2547
2569
|
{
|
|
2548
|
-
logo: `https://olimpo.bet${_.background ? _.background : (
|
|
2570
|
+
logo: `https://olimpo.bet${_.background ? _.background : (O = _.logo) != null ? O : ""}`,
|
|
2549
2571
|
provider: _.provider,
|
|
2550
2572
|
providerName: _.web_name,
|
|
2551
2573
|
machine: _.machine,
|
|
2552
2574
|
onClick: () => M(_)
|
|
2553
2575
|
},
|
|
2554
|
-
Jn(_,
|
|
2576
|
+
Jn(_, C)
|
|
2555
2577
|
);
|
|
2556
2578
|
})
|
|
2557
2579
|
}
|
|
@@ -2561,7 +2583,7 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2561
2583
|
{
|
|
2562
2584
|
variant: "primary",
|
|
2563
2585
|
size: "lg",
|
|
2564
|
-
onClick:
|
|
2586
|
+
onClick: E,
|
|
2565
2587
|
children: "Ver más"
|
|
2566
2588
|
}
|
|
2567
2589
|
) })
|
|
@@ -2623,11 +2645,11 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2623
2645
|
gridSize: l = 1,
|
|
2624
2646
|
isPersonalize: c = !1
|
|
2625
2647
|
}) => {
|
|
2626
|
-
const f = se(), g = ce(), m = pe(),
|
|
2648
|
+
const f = se(), g = ce(), m = pe(), d = Z(null), [u, b] = ee({ isStart: !0, isEnd: !1 }), x = Yn(c), { resolvedItems: v, loading: S } = Zn(
|
|
2627
2649
|
e,
|
|
2628
2650
|
x
|
|
2629
|
-
), M = x ? v : Array.isArray(e) ? e : [],
|
|
2630
|
-
var
|
|
2651
|
+
), M = x ? v : Array.isArray(e) ? e : [], E = () => {
|
|
2652
|
+
var $;
|
|
2631
2653
|
f({
|
|
2632
2654
|
element: "casino_prev",
|
|
2633
2655
|
label: `${g} - OraculoSeccionCasino ${c ? " - personalize" : ""} - Anterior`,
|
|
@@ -2638,9 +2660,9 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2638
2660
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2639
2661
|
},
|
|
2640
2662
|
tags: { section: "OraculoSeccionCasino" }
|
|
2641
|
-
}), (
|
|
2663
|
+
}), ($ = d.current) == null || $.prev();
|
|
2642
2664
|
}, _ = () => {
|
|
2643
|
-
var
|
|
2665
|
+
var $;
|
|
2644
2666
|
f({
|
|
2645
2667
|
element: "casino_next",
|
|
2646
2668
|
label: `${g} - OraculoSeccionCasino ${c ? " - personalize" : ""} - Siguiente`,
|
|
@@ -2651,8 +2673,8 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2651
2673
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2652
2674
|
},
|
|
2653
2675
|
tags: { section: "OraculoSeccionCasino" }
|
|
2654
|
-
}), (
|
|
2655
|
-
},
|
|
2676
|
+
}), ($ = d.current) == null || $.next();
|
|
2677
|
+
}, C = () => {
|
|
2656
2678
|
if (f({
|
|
2657
2679
|
element: "casino_view_more",
|
|
2658
2680
|
label: `${g} - OraculoSeccionCasino ${c ? " - personalize" : ""} - Ver más`,
|
|
@@ -2668,13 +2690,13 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2668
2690
|
return;
|
|
2669
2691
|
}
|
|
2670
2692
|
typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/casino");
|
|
2671
|
-
},
|
|
2672
|
-
const
|
|
2693
|
+
}, O = ($ = !0, y = 4) => {
|
|
2694
|
+
const I = (B) => Array.from({ length: B }, (P, W) => ({
|
|
2673
2695
|
id: `sk-${B}-${W}`,
|
|
2674
2696
|
imageUrl: ""
|
|
2675
2697
|
})), F = [];
|
|
2676
|
-
return
|
|
2677
|
-
},
|
|
2698
|
+
return $ && F.push({ id: "mosaic-loading", kind: "mosaic", items: I(5) }), F.push({ id: "grid-loading", kind: "grid", items: I(y) }), F;
|
|
2699
|
+
}, w = x ? S : !Array.isArray(e) || e.length === 0, L = Je("(max-width:950px)"), R = w ? O(s, l) : eo(M, s, l);
|
|
2678
2700
|
return /* @__PURE__ */ t("section", { children: /* @__PURE__ */ h(Q, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
2679
2701
|
/* @__PURE__ */ h(
|
|
2680
2702
|
z,
|
|
@@ -2700,8 +2722,8 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2700
2722
|
variant: "secondary",
|
|
2701
2723
|
iconOnly: !0,
|
|
2702
2724
|
leftIcon: /* @__PURE__ */ t(_t, {}),
|
|
2703
|
-
onClick:
|
|
2704
|
-
disabled:
|
|
2725
|
+
onClick: E,
|
|
2726
|
+
disabled: u.isStart
|
|
2705
2727
|
}
|
|
2706
2728
|
),
|
|
2707
2729
|
/* @__PURE__ */ t(
|
|
@@ -2712,18 +2734,18 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2712
2734
|
iconOnly: !0,
|
|
2713
2735
|
rightIcon: /* @__PURE__ */ t(vt, {}),
|
|
2714
2736
|
onClick: _,
|
|
2715
|
-
disabled:
|
|
2737
|
+
disabled: u.isEnd
|
|
2716
2738
|
}
|
|
2717
2739
|
)
|
|
2718
2740
|
] }),
|
|
2719
|
-
/* @__PURE__ */ t(z, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(ae, { variant: "secondary", onClick:
|
|
2741
|
+
/* @__PURE__ */ t(z, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(ae, { variant: "secondary", onClick: C, children: "Ver más" }) })
|
|
2720
2742
|
]
|
|
2721
2743
|
}
|
|
2722
2744
|
),
|
|
2723
2745
|
/* @__PURE__ */ t(
|
|
2724
2746
|
xe,
|
|
2725
2747
|
{
|
|
2726
|
-
ref:
|
|
2748
|
+
ref: d,
|
|
2727
2749
|
items: R,
|
|
2728
2750
|
perPage: void 0,
|
|
2729
2751
|
gap: "16px",
|
|
@@ -2747,38 +2769,38 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2747
2769
|
padding: { left: "24px", right: "24px" }
|
|
2748
2770
|
}
|
|
2749
2771
|
},
|
|
2750
|
-
renderItem: (
|
|
2772
|
+
renderItem: ($) => /* @__PURE__ */ t("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ t(
|
|
2751
2773
|
wt,
|
|
2752
2774
|
{
|
|
2753
|
-
items:
|
|
2754
|
-
layout:
|
|
2755
|
-
loading:
|
|
2775
|
+
items: $.items,
|
|
2776
|
+
layout: $.kind === "mosaic" ? "mosaic" : "grid",
|
|
2777
|
+
loading: w,
|
|
2756
2778
|
onClick: (y) => {
|
|
2757
|
-
if (
|
|
2758
|
-
const
|
|
2779
|
+
if (w) return;
|
|
2780
|
+
const I = M.find(
|
|
2759
2781
|
(P, W) => String(kt(P, W)) === String(y.id)
|
|
2760
2782
|
);
|
|
2761
|
-
if (!
|
|
2762
|
-
o == null || o(
|
|
2783
|
+
if (!I) return;
|
|
2784
|
+
o == null || o(I), f({
|
|
2763
2785
|
element: "casino_game_card",
|
|
2764
|
-
label: `${g} - OraculoSeccionCasino ${c ? " - personalize" : ""} - Game: ${String(
|
|
2765
|
-
target: String(
|
|
2786
|
+
label: `${g} - OraculoSeccionCasino ${c ? " - personalize" : ""} - Game: ${String(I.machine || "unknown")}`,
|
|
2787
|
+
target: String(I.machine || "unknown"),
|
|
2766
2788
|
event_type: "click",
|
|
2767
2789
|
module_id: m,
|
|
2768
2790
|
metadata: {
|
|
2769
2791
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2770
2792
|
},
|
|
2771
2793
|
tags: {
|
|
2772
|
-
game_name: String(
|
|
2794
|
+
game_name: String(I.machine || "unknown"),
|
|
2773
2795
|
section: a || "Casino"
|
|
2774
2796
|
}
|
|
2775
2797
|
});
|
|
2776
2798
|
const F = ue("showIframe"), B = ue("loadMachine");
|
|
2777
|
-
F == null || F(), B == null || B(
|
|
2799
|
+
F == null || F(), B == null || B(I, !1, "CASINO");
|
|
2778
2800
|
}
|
|
2779
2801
|
}
|
|
2780
2802
|
) }),
|
|
2781
|
-
onMove: ({ isStart:
|
|
2803
|
+
onMove: ({ isStart: $, isEnd: y }) => b({ isStart: $, isEnd: y })
|
|
2782
2804
|
}
|
|
2783
2805
|
)
|
|
2784
2806
|
] }) });
|
|
@@ -2848,14 +2870,14 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2848
2870
|
gridSize: l = 1,
|
|
2849
2871
|
isPersonalize: c = !1
|
|
2850
2872
|
}) => {
|
|
2851
|
-
const f = Z(null), [g, m] = ee({ isStart: !0, isEnd: !1 }),
|
|
2873
|
+
const f = Z(null), [g, m] = ee({ isStart: !0, isEnd: !1 }), d = se(), u = ce(), b = pe(), x = ao(c), { resolvedItems: v, loading: S } = jn(
|
|
2852
2874
|
e,
|
|
2853
2875
|
x
|
|
2854
|
-
), M = x ? v : Array.isArray(e) ? e : [],
|
|
2876
|
+
), M = x ? v : Array.isArray(e) ? e : [], E = () => {
|
|
2855
2877
|
var R;
|
|
2856
|
-
|
|
2878
|
+
d({
|
|
2857
2879
|
element: "virtuales_prev",
|
|
2858
|
-
label: `${
|
|
2880
|
+
label: `${u} - OraculoSeccionVirtuales${x ? " - personalize" : ""} - Anterior`,
|
|
2859
2881
|
target: "prev",
|
|
2860
2882
|
event_type: "click",
|
|
2861
2883
|
module_id: b,
|
|
@@ -2866,9 +2888,9 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2866
2888
|
}), (R = f.current) == null || R.prev();
|
|
2867
2889
|
}, _ = () => {
|
|
2868
2890
|
var R;
|
|
2869
|
-
|
|
2891
|
+
d({
|
|
2870
2892
|
element: "virtuales_next",
|
|
2871
|
-
label: `${
|
|
2893
|
+
label: `${u} - OraculoSeccionVirtuales${x ? " - personalize" : ""} - Siguiente`,
|
|
2872
2894
|
target: "next",
|
|
2873
2895
|
event_type: "click",
|
|
2874
2896
|
module_id: b,
|
|
@@ -2877,10 +2899,10 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2877
2899
|
},
|
|
2878
2900
|
tags: { section: "OraculoSeccionVirtuales" }
|
|
2879
2901
|
}), (R = f.current) == null || R.next();
|
|
2880
|
-
},
|
|
2881
|
-
if (
|
|
2902
|
+
}, C = () => {
|
|
2903
|
+
if (d({
|
|
2882
2904
|
element: "virtuales_view_more",
|
|
2883
|
-
label: `${
|
|
2905
|
+
label: `${u} - OraculoSeccionVirtuales${x ? " - personalize" : ""} - Ver más`,
|
|
2884
2906
|
target: "https://www.olimpo.bet/juegos-virtuales",
|
|
2885
2907
|
event_type: "click",
|
|
2886
2908
|
module_id: b,
|
|
@@ -2893,7 +2915,7 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2893
2915
|
return;
|
|
2894
2916
|
}
|
|
2895
2917
|
typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/juegos-virtuales");
|
|
2896
|
-
},
|
|
2918
|
+
}, O = x ? S : !Array.isArray(e) || e.length === 0, w = Ne("(max-width:950px)"), L = O ? oo(s, l) : no(M, s, l);
|
|
2897
2919
|
return /* @__PURE__ */ t("section", { children: /* @__PURE__ */ h(Q, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
2898
2920
|
/* @__PURE__ */ h(
|
|
2899
2921
|
z,
|
|
@@ -2919,7 +2941,7 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2919
2941
|
variant: "secondary",
|
|
2920
2942
|
iconOnly: !0,
|
|
2921
2943
|
leftIcon: /* @__PURE__ */ t(_t, {}),
|
|
2922
|
-
onClick:
|
|
2944
|
+
onClick: E,
|
|
2923
2945
|
disabled: g.isStart
|
|
2924
2946
|
}
|
|
2925
2947
|
),
|
|
@@ -2935,7 +2957,7 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2935
2957
|
}
|
|
2936
2958
|
)
|
|
2937
2959
|
] }),
|
|
2938
|
-
/* @__PURE__ */ t(z, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(ae, { variant: "secondary", onClick:
|
|
2960
|
+
/* @__PURE__ */ t(z, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(ae, { variant: "secondary", onClick: C, children: "Ver más" }) })
|
|
2939
2961
|
]
|
|
2940
2962
|
}
|
|
2941
2963
|
),
|
|
@@ -2964,29 +2986,29 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2964
2986
|
}
|
|
2965
2987
|
},
|
|
2966
2988
|
enableHorizontalWheel: !0,
|
|
2967
|
-
showRightGradient: !
|
|
2989
|
+
showRightGradient: !w,
|
|
2968
2990
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
2969
2991
|
renderItem: (R) => /* @__PURE__ */ t("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ t(
|
|
2970
2992
|
wt,
|
|
2971
2993
|
{
|
|
2972
2994
|
items: R.items,
|
|
2973
2995
|
layout: R.kind === "mosaic" ? "mosaic" : "grid",
|
|
2974
|
-
loading:
|
|
2975
|
-
onClick: (
|
|
2976
|
-
if (
|
|
2996
|
+
loading: O,
|
|
2997
|
+
onClick: ($) => {
|
|
2998
|
+
if (O) return;
|
|
2977
2999
|
const y = M.find(
|
|
2978
|
-
(B, P) => String(Nt(B, P)) === String(
|
|
3000
|
+
(B, P) => String(Nt(B, P)) === String($.id)
|
|
2979
3001
|
);
|
|
2980
3002
|
if (!y) {
|
|
2981
3003
|
console.warn(
|
|
2982
3004
|
"[virtuales] no se encontró game para id:",
|
|
2983
|
-
|
|
3005
|
+
$.id
|
|
2984
3006
|
);
|
|
2985
3007
|
return;
|
|
2986
3008
|
}
|
|
2987
|
-
o == null || o(y),
|
|
3009
|
+
o == null || o(y), d({
|
|
2988
3010
|
element: "virtuales_game_card",
|
|
2989
|
-
label: `${
|
|
3011
|
+
label: `${u} - OraculoSeccionVirtuales${x ? " - personalize" : ""} - Game: ${String(y.machine || "unknown")}`,
|
|
2990
3012
|
target: String(y.machine || "unknown"),
|
|
2991
3013
|
event_type: "click",
|
|
2992
3014
|
module_id: b,
|
|
@@ -2998,8 +3020,8 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2998
3020
|
section: a || "Virtuales"
|
|
2999
3021
|
}
|
|
3000
3022
|
});
|
|
3001
|
-
const
|
|
3002
|
-
|
|
3023
|
+
const I = ue("showIframe"), F = ue("loadMachine");
|
|
3024
|
+
I == null || I(), F == null || F(
|
|
3003
3025
|
y,
|
|
3004
3026
|
!1,
|
|
3005
3027
|
x ? "VIRTUALES_PERSONALIZE" : "VIRTUALES"
|
|
@@ -3007,7 +3029,7 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
3007
3029
|
}
|
|
3008
3030
|
}
|
|
3009
3031
|
) }),
|
|
3010
|
-
onMove: ({ isStart: R, isEnd:
|
|
3032
|
+
onMove: ({ isStart: R, isEnd: $ }) => m({ isStart: R, isEnd: $ })
|
|
3011
3033
|
}
|
|
3012
3034
|
)
|
|
3013
3035
|
] }) });
|
|
@@ -3049,33 +3071,33 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
3049
3071
|
items: n,
|
|
3050
3072
|
backgroundImageUrl: o
|
|
3051
3073
|
}) => {
|
|
3052
|
-
const i = se(), s = ce(), l = Ne("(max-width: 767px)"), c = n.length > 1, f = Z(null), g = Z(null), m = Z(!1),
|
|
3074
|
+
const i = se(), s = ce(), l = Ne("(max-width: 767px)"), c = n.length > 1, f = Z(null), g = Z(null), m = Z(!1), d = Z(!1), [u, b] = ee(0), [x, v] = ee({ isStart: !0, isEnd: !1 });
|
|
3053
3075
|
re(() => {
|
|
3054
3076
|
const y = setTimeout(() => {
|
|
3055
3077
|
m.current = !0;
|
|
3056
3078
|
}, 500);
|
|
3057
3079
|
return () => clearTimeout(y);
|
|
3058
3080
|
}, []);
|
|
3059
|
-
const
|
|
3081
|
+
const S = Z(x);
|
|
3060
3082
|
re(() => {
|
|
3061
|
-
|
|
3083
|
+
S.current = x;
|
|
3062
3084
|
}, [x]);
|
|
3063
|
-
const M = Z(!1),
|
|
3085
|
+
const M = Z(!1), E = Z(null), _ = n == null ? void 0 : n[u], C = de(
|
|
3064
3086
|
() => {
|
|
3065
|
-
var y,
|
|
3066
|
-
return (
|
|
3087
|
+
var y, I;
|
|
3088
|
+
return (I = (y = _ == null ? void 0 : _.backgroundImageUrl) != null ? y : o) != null ? I : "";
|
|
3067
3089
|
},
|
|
3068
3090
|
[_, o]
|
|
3069
|
-
),
|
|
3091
|
+
), O = io(C), w = !n || n.length === 0, L = (y, I) => {
|
|
3070
3092
|
i({
|
|
3071
3093
|
element: "welcome_banner_button",
|
|
3072
|
-
label: `OraculoSeccionBonoBienvenida - Banner button click: ${y.title || "OraculoSeccionBonoBienvenida - Banner " + (
|
|
3094
|
+
label: `OraculoSeccionBonoBienvenida - Banner button click: ${y.title || "OraculoSeccionBonoBienvenida - Banner " + (I + 1)}`,
|
|
3073
3095
|
target: "action",
|
|
3074
3096
|
event_type: "click",
|
|
3075
3097
|
module_id: 301,
|
|
3076
3098
|
metadata: {
|
|
3077
3099
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
3078
|
-
banner_position:
|
|
3100
|
+
banner_position: I + 1,
|
|
3079
3101
|
banner_total: (n == null ? void 0 : n.length) || 0
|
|
3080
3102
|
},
|
|
3081
3103
|
tags: {
|
|
@@ -3085,14 +3107,14 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
3085
3107
|
}), y.onButtonClick && y.onButtonClick();
|
|
3086
3108
|
}, R = (y) => {
|
|
3087
3109
|
if (!m.current) return;
|
|
3088
|
-
if (
|
|
3089
|
-
|
|
3110
|
+
if (d.current) {
|
|
3111
|
+
d.current = !1;
|
|
3090
3112
|
return;
|
|
3091
3113
|
}
|
|
3092
|
-
const
|
|
3114
|
+
const I = n == null ? void 0 : n[y];
|
|
3093
3115
|
i({
|
|
3094
3116
|
element: "welcome_banner_carousel",
|
|
3095
|
-
label: `Landing: ${s} - OraculoSeccionBonoBienvenida - Banner view: ${(
|
|
3117
|
+
label: `Landing: ${s} - OraculoSeccionBonoBienvenida - Banner view: ${(I == null ? void 0 : I.title) || "OraculoSeccionBonoBienvenida - Banner " + (y + 1)}`,
|
|
3096
3118
|
target: "no_url",
|
|
3097
3119
|
event_type: "view",
|
|
3098
3120
|
module_id: 301,
|
|
@@ -3104,31 +3126,31 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
3104
3126
|
},
|
|
3105
3127
|
tags: {
|
|
3106
3128
|
banner_position: String(y + 1),
|
|
3107
|
-
banner_title: (
|
|
3129
|
+
banner_title: (I == null ? void 0 : I.title) || "no_title"
|
|
3108
3130
|
}
|
|
3109
3131
|
});
|
|
3110
3132
|
};
|
|
3111
3133
|
re(() => {
|
|
3112
3134
|
const y = g.current;
|
|
3113
3135
|
if (!y) return;
|
|
3114
|
-
const
|
|
3136
|
+
const I = 6, F = 380, B = (P) => {
|
|
3115
3137
|
var G, D;
|
|
3116
|
-
if (
|
|
3138
|
+
if (w || P.ctrlKey || M.current) return;
|
|
3117
3139
|
const W = P.deltaX, V = P.deltaY;
|
|
3118
|
-
if (Math.abs(W) <= Math.abs(V) || Math.abs(W) <
|
|
3140
|
+
if (Math.abs(W) <= Math.abs(V) || Math.abs(W) < I) return;
|
|
3119
3141
|
const H = W > 0;
|
|
3120
|
-
H &&
|
|
3142
|
+
H && S.current.isEnd || !H && S.current.isStart || (P.preventDefault(), M.current = !0, H ? (G = f.current) == null || G.next() : (D = f.current) == null || D.prev(), E.current && window.clearTimeout(E.current), E.current = window.setTimeout(() => {
|
|
3121
3143
|
M.current = !1;
|
|
3122
3144
|
}, F));
|
|
3123
3145
|
};
|
|
3124
3146
|
return y.addEventListener("wheel", B, { passive: !1 }), () => {
|
|
3125
|
-
y.removeEventListener("wheel", B),
|
|
3147
|
+
y.removeEventListener("wheel", B), E.current && window.clearTimeout(E.current);
|
|
3126
3148
|
};
|
|
3127
|
-
}, [
|
|
3128
|
-
const
|
|
3149
|
+
}, [w]);
|
|
3150
|
+
const $ = (y, I, F) => {
|
|
3129
3151
|
var W, V;
|
|
3130
3152
|
const B = (W = y.headline) != null ? W : e, P = (V = y.headline2) != null ? V : a;
|
|
3131
|
-
return
|
|
3153
|
+
return I ? /* @__PURE__ */ h(
|
|
3132
3154
|
z,
|
|
3133
3155
|
{
|
|
3134
3156
|
sx: {
|
|
@@ -3187,7 +3209,7 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
3187
3209
|
) })
|
|
3188
3210
|
] });
|
|
3189
3211
|
};
|
|
3190
|
-
return /* @__PURE__ */ h(z, { component: "section", sx:
|
|
3212
|
+
return /* @__PURE__ */ h(z, { component: "section", sx: O, children: [
|
|
3191
3213
|
/* @__PURE__ */ t("div", { ref: g, style: { width: "100%" }, children: /* @__PURE__ */ t(
|
|
3192
3214
|
xe,
|
|
3193
3215
|
{
|
|
@@ -3205,9 +3227,9 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
3205
3227
|
// arrows: false,
|
|
3206
3228
|
// drag: true,
|
|
3207
3229
|
},
|
|
3208
|
-
renderItem: (y,
|
|
3209
|
-
onMove: ({ index: y, isStart:
|
|
3210
|
-
b(y), typeof
|
|
3230
|
+
renderItem: (y, I) => /* @__PURE__ */ t(z, { sx: { width: "100%" }, children: $(y, !l, I) }),
|
|
3231
|
+
onMove: ({ index: y, isStart: I, isEnd: F, source: B }) => {
|
|
3232
|
+
b(y), typeof I == "boolean" && typeof F == "boolean" && v({ isStart: I, isEnd: F }), B === "user" && R(y);
|
|
3211
3233
|
}
|
|
3212
3234
|
}
|
|
3213
3235
|
) }),
|
|
@@ -3215,9 +3237,9 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
3215
3237
|
yt,
|
|
3216
3238
|
{
|
|
3217
3239
|
total: n.length,
|
|
3218
|
-
active:
|
|
3240
|
+
active: u,
|
|
3219
3241
|
onSelect: (y) => {
|
|
3220
|
-
var
|
|
3242
|
+
var I;
|
|
3221
3243
|
i({
|
|
3222
3244
|
element: "welcome_banner_dots",
|
|
3223
3245
|
label: `Landing: ${s} - OraculoSeccionBonoBienvenida - Dot navigation: Banner ${y + 1}`,
|
|
@@ -3232,7 +3254,7 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
3232
3254
|
tags: {
|
|
3233
3255
|
navigation_type: "dot_click"
|
|
3234
3256
|
}
|
|
3235
|
-
}), b(y), (
|
|
3257
|
+
}), b(y), (I = f.current) == null || I.go(y);
|
|
3236
3258
|
}
|
|
3237
3259
|
}
|
|
3238
3260
|
) })
|
|
@@ -3247,14 +3269,14 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
3247
3269
|
}) => {
|
|
3248
3270
|
const l = Z(null), c = Z(null), f = se(), g = ce(), m = pe();
|
|
3249
3271
|
if (!n) return null;
|
|
3250
|
-
const
|
|
3272
|
+
const d = async () => {
|
|
3251
3273
|
let v = s;
|
|
3252
3274
|
if ((!(v != null && v.user) || !(v != null && v.session)) && typeof window != "undefined")
|
|
3253
3275
|
try {
|
|
3254
|
-
const
|
|
3255
|
-
|
|
3256
|
-
} catch (
|
|
3257
|
-
console.error("[getMarketPlaceUrl] Error parsing localStorage user",
|
|
3276
|
+
const S = localStorage.getItem("user");
|
|
3277
|
+
S && (v = JSON.parse(S));
|
|
3278
|
+
} catch (S) {
|
|
3279
|
+
console.error("[getMarketPlaceUrl] Error parsing localStorage user", S);
|
|
3258
3280
|
}
|
|
3259
3281
|
if (!(v != null && v.user) || !(v != null && v.session))
|
|
3260
3282
|
return console.warn("User data missing"), null;
|
|
@@ -3270,38 +3292,38 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
3270
3292
|
tags: { section: "OraculoSeccionClubOlimpo" }
|
|
3271
3293
|
});
|
|
3272
3294
|
try {
|
|
3273
|
-
const
|
|
3295
|
+
const S = {
|
|
3274
3296
|
idUsuario: "PE" + v.user,
|
|
3275
3297
|
session_id: v.session,
|
|
3276
3298
|
pagina: "home"
|
|
3277
|
-
},
|
|
3299
|
+
}, E = await fetch("https://apipe.mktolimpo.com/api/pm/token", {
|
|
3278
3300
|
method: "POST",
|
|
3279
3301
|
headers: {
|
|
3280
3302
|
"Content-Type": "application/json"
|
|
3281
3303
|
},
|
|
3282
|
-
body: JSON.stringify(
|
|
3304
|
+
body: JSON.stringify(S)
|
|
3283
3305
|
});
|
|
3284
|
-
if (
|
|
3285
|
-
const _ = await
|
|
3306
|
+
if (E.ok) {
|
|
3307
|
+
const _ = await E.json();
|
|
3286
3308
|
return _ == null ? void 0 : _.url;
|
|
3287
3309
|
}
|
|
3288
3310
|
return null;
|
|
3289
|
-
} catch (
|
|
3290
|
-
return console.error("[getMarketPlaceUrl]",
|
|
3311
|
+
} catch (S) {
|
|
3312
|
+
return console.error("[getMarketPlaceUrl]", S), null;
|
|
3291
3313
|
}
|
|
3292
|
-
},
|
|
3293
|
-
const v = await
|
|
3314
|
+
}, u = async () => {
|
|
3315
|
+
const v = await d();
|
|
3294
3316
|
v ? window.location.href = v : typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/conoce-club-olimpo");
|
|
3295
3317
|
}, b = Array.isArray(n) ? n[o] : n;
|
|
3296
|
-
|
|
3318
|
+
Ut(() => {
|
|
3297
3319
|
if (!l.current || !c.current || typeof ResizeObserver == "undefined") return;
|
|
3298
|
-
const v = l.current,
|
|
3320
|
+
const v = l.current, S = c.current, M = () => {
|
|
3299
3321
|
v.style.setProperty(
|
|
3300
3322
|
"--orc-co-bottomH",
|
|
3301
|
-
`${
|
|
3323
|
+
`${S.offsetHeight + 16}px`
|
|
3302
3324
|
);
|
|
3303
|
-
},
|
|
3304
|
-
return
|
|
3325
|
+
}, E = new ResizeObserver(M);
|
|
3326
|
+
return E.observe(S), M(), () => E.disconnect();
|
|
3305
3327
|
}, []);
|
|
3306
3328
|
const x = [
|
|
3307
3329
|
"orc-co-wrap",
|
|
@@ -3318,7 +3340,7 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
3318
3340
|
Pa,
|
|
3319
3341
|
{
|
|
3320
3342
|
text: b.text,
|
|
3321
|
-
onClick:
|
|
3343
|
+
onClick: u,
|
|
3322
3344
|
imgAlt: b.imgAlt,
|
|
3323
3345
|
buttonLabel: b.buttonLabel,
|
|
3324
3346
|
imgSrcMobile: b.imgMobile,
|
|
@@ -3340,16 +3362,16 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
3340
3362
|
};
|
|
3341
3363
|
function po(e, a, n) {
|
|
3342
3364
|
return n ? n.map((o) => {
|
|
3343
|
-
var m,
|
|
3344
|
-
const i = o.prePackCouponRows.flatMap((
|
|
3345
|
-
for (const
|
|
3346
|
-
if (!s.has(
|
|
3347
|
-
const b =
|
|
3348
|
-
b.length && ((
|
|
3365
|
+
var m, d;
|
|
3366
|
+
const i = o.prePackCouponRows.flatMap((u) => mo(u).map((b) => ({ eventId: u.eventId, outcomeId: b }))), s = new Set(i.map((u) => u.eventId)), l = new Set(i.map((u) => u.outcomeId)), c = new Map(i.map((u, b) => [u.outcomeId, b])), f = {};
|
|
3367
|
+
for (const u of a) {
|
|
3368
|
+
if (!s.has(u.eventId)) continue;
|
|
3369
|
+
const b = u.outcomes.filter((x) => l.has(x.id)).map((x) => ({ ...x, position: c.get(x.id) }));
|
|
3370
|
+
b.length && ((d = f[m = u.eventId]) != null || (f[m] = []), f[u.eventId].push({ ...u, outcomes: b }));
|
|
3349
3371
|
}
|
|
3350
|
-
const g = e.filter((
|
|
3372
|
+
const g = e.filter((u) => s.has(u.id)).map((u) => {
|
|
3351
3373
|
var b;
|
|
3352
|
-
return { ...
|
|
3374
|
+
return { ...u, betoffers: (b = f[u.id]) != null ? b : [] };
|
|
3353
3375
|
});
|
|
3354
3376
|
return {
|
|
3355
3377
|
couponId: o.id,
|
|
@@ -3376,8 +3398,8 @@ function ho({
|
|
|
3376
3398
|
onViewMore: o,
|
|
3377
3399
|
className: i = ""
|
|
3378
3400
|
}) {
|
|
3379
|
-
const s = se(), l = ce(), c = pe(), f = Z(null), [g, m] = ee({ isStart: !0, isEnd: !1 }), [
|
|
3380
|
-
var
|
|
3401
|
+
const s = se(), l = ce(), c = pe(), f = Z(null), [g, m] = ee({ isStart: !0, isEnd: !1 }), [d, u] = ee([]), b = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group/prepackcoupon.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764284658793&prePackCouponTags=CUSTOM", x = () => {
|
|
3402
|
+
var O;
|
|
3381
3403
|
s({
|
|
3382
3404
|
element: "evento_combinadas_prev",
|
|
3383
3405
|
label: `${l} - OraculoSeccionEventoCombinadas - Click: Anterior`,
|
|
@@ -3387,9 +3409,9 @@ function ho({
|
|
|
3387
3409
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
3388
3410
|
},
|
|
3389
3411
|
tags: { section: "OraculoSeccionEventoCombinadas" }
|
|
3390
|
-
}), (
|
|
3412
|
+
}), (O = f.current) == null || O.prev();
|
|
3391
3413
|
}, v = () => {
|
|
3392
|
-
var
|
|
3414
|
+
var O;
|
|
3393
3415
|
s({
|
|
3394
3416
|
element: "evento_combinadas_next",
|
|
3395
3417
|
label: `${l} - OraculoSeccionEventoCombinadas - Click: Siguiente`,
|
|
@@ -3399,8 +3421,8 @@ function ho({
|
|
|
3399
3421
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
3400
3422
|
},
|
|
3401
3423
|
tags: { section: "OraculoSeccionEventoCombinadas" }
|
|
3402
|
-
}), (
|
|
3403
|
-
},
|
|
3424
|
+
}), (O = f.current) == null || O.next();
|
|
3425
|
+
}, S = () => {
|
|
3404
3426
|
s({
|
|
3405
3427
|
element: "evento_combinadas_ver_mas",
|
|
3406
3428
|
label: `${l} - OraculoSeccionEventoCombinadas - Click: Ver más`,
|
|
@@ -3411,25 +3433,25 @@ function ho({
|
|
|
3411
3433
|
},
|
|
3412
3434
|
tags: { section: "OraculoSeccionEventoCombinadas" }
|
|
3413
3435
|
}), Ka();
|
|
3414
|
-
}, M = de(() =>
|
|
3415
|
-
async function
|
|
3416
|
-
var
|
|
3436
|
+
}, M = de(() => d.filter((O) => O.combinadoTotal !== null), [d]);
|
|
3437
|
+
async function E() {
|
|
3438
|
+
var O, w, L, R;
|
|
3417
3439
|
try {
|
|
3418
|
-
const y = await (await fetch(b)).json(),
|
|
3419
|
-
if (!
|
|
3440
|
+
const y = await (await fetch(b)).json(), I = (R = (L = (w = (O = y == null ? void 0 : y.group) == null ? void 0 : O.groups) == null ? void 0 : w.map((W) => W.id)) == null ? void 0 : L.filter(Boolean)) == null ? void 0 : R.join(",");
|
|
3441
|
+
if (!I) {
|
|
3420
3442
|
console.error("Could not extract group ID");
|
|
3421
3443
|
return;
|
|
3422
3444
|
}
|
|
3423
|
-
const F = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${
|
|
3424
|
-
|
|
3425
|
-
} catch (
|
|
3426
|
-
console.error("loadDataEventSpecial error:",
|
|
3445
|
+
const F = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${I}.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764283566783&prePackCouponTags=CUSTOM`, P = await (await fetch(F)).json();
|
|
3446
|
+
u(po(P.events, P.betOffers, P.prePackCoupons));
|
|
3447
|
+
} catch ($) {
|
|
3448
|
+
console.error("loadDataEventSpecial error:", $);
|
|
3427
3449
|
}
|
|
3428
3450
|
}
|
|
3429
3451
|
re(() => {
|
|
3430
|
-
|
|
3452
|
+
E();
|
|
3431
3453
|
}, []);
|
|
3432
|
-
const _ = i || void 0,
|
|
3454
|
+
const _ = i || void 0, C = Ne("(max-width:950px)");
|
|
3433
3455
|
return M.length === 0 ? null : /* @__PURE__ */ t("section", { className: _, style: {
|
|
3434
3456
|
// paddingLeft: 16,
|
|
3435
3457
|
// paddingRight: 16,
|
|
@@ -3463,7 +3485,7 @@ function ho({
|
|
|
3463
3485
|
}
|
|
3464
3486
|
)
|
|
3465
3487
|
] }),
|
|
3466
|
-
/* @__PURE__ */ t(ae, { variant: "secondary", onClick:
|
|
3488
|
+
/* @__PURE__ */ t(ae, { variant: "secondary", onClick: S, children: "Ver más" })
|
|
3467
3489
|
] })
|
|
3468
3490
|
] }) }),
|
|
3469
3491
|
/* @__PURE__ */ t(
|
|
@@ -3476,12 +3498,12 @@ function ho({
|
|
|
3476
3498
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
3477
3499
|
useIndexAsKey: !0,
|
|
3478
3500
|
enableHorizontalWheel: !0,
|
|
3479
|
-
showRightGradient:
|
|
3501
|
+
showRightGradient: !C,
|
|
3480
3502
|
breakpoints: {
|
|
3481
3503
|
768: { perPage: 1.2, gap: "12px", padding: { left: "24px", right: "24px" } }
|
|
3482
3504
|
},
|
|
3483
|
-
renderItem: (
|
|
3484
|
-
onMove: ({ isStart:
|
|
3505
|
+
renderItem: (O) => /* @__PURE__ */ t(go, { coupon: O }),
|
|
3506
|
+
onMove: ({ isStart: O, isEnd: w }) => m({ isStart: O, isEnd: w })
|
|
3485
3507
|
}
|
|
3486
3508
|
)
|
|
3487
3509
|
] }) });
|
|
@@ -3540,46 +3562,46 @@ function $t({
|
|
|
3540
3562
|
return re(() => {
|
|
3541
3563
|
if (!(!e || e.length === 0))
|
|
3542
3564
|
return g.current && clearTimeout(g.current), g.current = setTimeout(() => {
|
|
3543
|
-
var
|
|
3544
|
-
const
|
|
3545
|
-
let v = b,
|
|
3565
|
+
var C, O;
|
|
3566
|
+
const d = (C = a.start) != null ? C : 0, u = (O = a.end) != null ? O : 7, b = Math.max(0, d - o), x = Math.min(e.length - 1, u + o);
|
|
3567
|
+
let v = b, S = x;
|
|
3546
3568
|
const M = m.current;
|
|
3547
|
-
M && (b > M.end && (v = M.end + 1), x < M.start && (
|
|
3548
|
-
const
|
|
3549
|
-
if (
|
|
3550
|
-
|
|
3569
|
+
M && (b > M.end && (v = M.end + 1), x < M.start && (S = M.start - 1)), m.current = { start: b, end: x };
|
|
3570
|
+
const E = e.slice(v, S + 1).map((w) => w == null ? void 0 : w.id).filter((w) => !!w).filter((w) => !c.current.has(w)).filter((w) => !(w in s));
|
|
3571
|
+
if (E.length === 0) return;
|
|
3572
|
+
E.forEach((w) => c.current.add(w));
|
|
3551
3573
|
const _ = ++f.current;
|
|
3552
3574
|
(async () => {
|
|
3553
3575
|
try {
|
|
3554
|
-
const
|
|
3576
|
+
const w = await n(E);
|
|
3555
3577
|
if (_ !== f.current) {
|
|
3556
|
-
|
|
3578
|
+
E.forEach((R) => c.current.delete(R));
|
|
3557
3579
|
return;
|
|
3558
3580
|
}
|
|
3559
|
-
if (!(
|
|
3560
|
-
|
|
3581
|
+
if (!(w != null && w.events)) {
|
|
3582
|
+
E.forEach(
|
|
3561
3583
|
(R) => c.current.delete(R)
|
|
3562
3584
|
);
|
|
3563
3585
|
return;
|
|
3564
3586
|
}
|
|
3565
3587
|
l((R) => {
|
|
3566
|
-
const
|
|
3567
|
-
for (const [y,
|
|
3588
|
+
const $ = { ...R };
|
|
3589
|
+
for (const [y, I] of Object.entries(w.events)) {
|
|
3568
3590
|
const F = Number(y);
|
|
3569
|
-
|
|
3591
|
+
$[F] || ($[F] = I);
|
|
3570
3592
|
}
|
|
3571
|
-
return
|
|
3593
|
+
return $;
|
|
3572
3594
|
});
|
|
3573
3595
|
const L = new Set(
|
|
3574
|
-
Object.keys(
|
|
3596
|
+
Object.keys(w.events).map(Number)
|
|
3575
3597
|
);
|
|
3576
|
-
|
|
3598
|
+
E.forEach((R) => {
|
|
3577
3599
|
c.current.delete(R);
|
|
3578
3600
|
});
|
|
3579
|
-
} catch (
|
|
3580
|
-
|
|
3601
|
+
} catch (w) {
|
|
3602
|
+
E.forEach(
|
|
3581
3603
|
(L) => c.current.delete(L)
|
|
3582
|
-
), console.error("Jersey fetch error",
|
|
3604
|
+
), console.error("Jersey fetch error", w);
|
|
3583
3605
|
}
|
|
3584
3606
|
})();
|
|
3585
3607
|
}, i), () => {
|
|
@@ -3610,39 +3632,39 @@ function Oo({
|
|
|
3610
3632
|
{ sport: "football", url: "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football/all/all/all/in-play.json?channel_id=3&channel_id=3&client_id=200&client_id=200&competitionId=undefined&lang=es_PE&lang=es_PE&market=PE&market=PE&useCombined=true&useCombinedLive=true" },
|
|
3611
3633
|
{ sport: "basketball", url: "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/basketball/all/all/all/in-play.json?channel_id=3&channel_id=3&client_id=200&client_id=200&competitionId=undefined&lang=es_PE&lang=es_PE&market=PE&market=PE&useCombined=true&useCombinedLive=true" },
|
|
3612
3634
|
{ sport: "tennis", url: "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/tennis/all/all/all/in-play.json?channel_id=3&channel_id=3&client_id=200&client_id=200&competitionId=undefined&lang=es_PE&lang=es_PE&market=PE&market=PE&useCombined=true&useCombinedLive=true" }
|
|
3613
|
-
], l = Z(null), [c, f] = ee({ isStart: !0, isEnd: !1 }), [g, m] = ee(null), [
|
|
3635
|
+
], l = Z(null), [c, f] = ee({ isStart: !0, isEnd: !1 }), [g, m] = ee(null), [d, u] = ee({ start: null, end: null }), [b, x] = ee(null), v = Z(!1), S = se(), M = ce(), E = pe(), _ = Z(/* @__PURE__ */ new Map()), C = () => {
|
|
3614
3636
|
var B;
|
|
3615
|
-
|
|
3637
|
+
S({
|
|
3616
3638
|
element: "evento_en_vivo_prev",
|
|
3617
3639
|
label: `${M} - OraculoSeccionEventoEnVivo - Anterior`,
|
|
3618
3640
|
target: "prev",
|
|
3619
3641
|
event_type: "click",
|
|
3620
|
-
module_id:
|
|
3642
|
+
module_id: E,
|
|
3621
3643
|
metadata: {
|
|
3622
3644
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
3623
3645
|
},
|
|
3624
3646
|
tags: { section: "OraculoSeccionEventoEnVivo" }
|
|
3625
3647
|
}), (B = l.current) == null || B.prev();
|
|
3626
|
-
},
|
|
3648
|
+
}, O = () => {
|
|
3627
3649
|
var B;
|
|
3628
|
-
|
|
3650
|
+
S({
|
|
3629
3651
|
element: "evento_en_vivo_next",
|
|
3630
3652
|
label: `${M} - OraculoSeccionEventoEnVivo - Siguiente`,
|
|
3631
3653
|
target: "next",
|
|
3632
3654
|
event_type: "click",
|
|
3633
|
-
module_id:
|
|
3655
|
+
module_id: E,
|
|
3634
3656
|
metadata: {
|
|
3635
3657
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
3636
3658
|
},
|
|
3637
3659
|
tags: { section: "OraculoSeccionEventoEnVivo" }
|
|
3638
3660
|
}), (B = l.current) == null || B.next();
|
|
3639
|
-
},
|
|
3640
|
-
|
|
3661
|
+
}, w = () => {
|
|
3662
|
+
S({
|
|
3641
3663
|
element: "evento_en_vivo_view_more",
|
|
3642
3664
|
label: `${M} - OraculoSeccionEventoEnVivo - Ver más`,
|
|
3643
3665
|
target: "ver_mas",
|
|
3644
3666
|
event_type: "click",
|
|
3645
|
-
module_id:
|
|
3667
|
+
module_id: E,
|
|
3646
3668
|
metadata: {
|
|
3647
3669
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
3648
3670
|
},
|
|
@@ -3685,8 +3707,8 @@ function Oo({
|
|
|
3685
3707
|
basketball: 1,
|
|
3686
3708
|
tennis: 0
|
|
3687
3709
|
}, H = W.sort((G, D) => {
|
|
3688
|
-
var
|
|
3689
|
-
const K = (
|
|
3710
|
+
var k, N;
|
|
3711
|
+
const K = (k = V[G._sportGroup]) != null ? k : 1 / 0, Y = (N = V[D._sportGroup]) != null ? N : 1 / 0;
|
|
3690
3712
|
if (K !== Y)
|
|
3691
3713
|
return K - Y;
|
|
3692
3714
|
const r = _.current.get(String(G.event.id)), p = _.current.get(String(D.event.id));
|
|
@@ -3705,14 +3727,14 @@ function Oo({
|
|
|
3705
3727
|
const { jerseys: R } = $t({
|
|
3706
3728
|
events: (g == null ? void 0 : g.map((B) => B.event)) || [],
|
|
3707
3729
|
// extract actual event objects
|
|
3708
|
-
visibleRange:
|
|
3730
|
+
visibleRange: d,
|
|
3709
3731
|
fetchJerseys: Ot,
|
|
3710
3732
|
buffer: 3,
|
|
3711
3733
|
// same as your previous BUFFER
|
|
3712
3734
|
debounceMs: 300
|
|
3713
3735
|
// same as your previous debouncedVisibleRange
|
|
3714
|
-
}),
|
|
3715
|
-
return !y && g.length === 0 ? null : /* @__PURE__ */ t("section", { className:
|
|
3736
|
+
}), $ = i || void 0, y = g === null, I = de(() => y ? Array(4).fill({}) : (g == null ? void 0 : g.slice(0, 50)) || [], [y, g]), F = Ne("(max-width:950px)");
|
|
3737
|
+
return !y && g.length === 0 ? null : /* @__PURE__ */ t("section", { className: $, style: {
|
|
3716
3738
|
// paddingLeft: 16,
|
|
3717
3739
|
// paddingRight: 16,
|
|
3718
3740
|
width: "100%",
|
|
@@ -3729,7 +3751,7 @@ function Oo({
|
|
|
3729
3751
|
variant: "secondary",
|
|
3730
3752
|
iconOnly: !0,
|
|
3731
3753
|
leftIcon: /* @__PURE__ */ t(Ve, {}),
|
|
3732
|
-
onClick:
|
|
3754
|
+
onClick: C,
|
|
3733
3755
|
disabled: c.isStart
|
|
3734
3756
|
}
|
|
3735
3757
|
),
|
|
@@ -3740,19 +3762,19 @@ function Oo({
|
|
|
3740
3762
|
variant: "secondary",
|
|
3741
3763
|
iconOnly: !0,
|
|
3742
3764
|
rightIcon: /* @__PURE__ */ t(He, {}),
|
|
3743
|
-
onClick:
|
|
3765
|
+
onClick: O,
|
|
3744
3766
|
disabled: c.isEnd
|
|
3745
3767
|
}
|
|
3746
3768
|
)
|
|
3747
3769
|
] }),
|
|
3748
|
-
/* @__PURE__ */ t(ae, { variant: "secondary", onClick:
|
|
3770
|
+
/* @__PURE__ */ t(ae, { variant: "secondary", onClick: w, children: "Ver más" })
|
|
3749
3771
|
] })
|
|
3750
3772
|
] }) }),
|
|
3751
3773
|
/* @__PURE__ */ t(
|
|
3752
3774
|
xe,
|
|
3753
3775
|
{
|
|
3754
3776
|
ref: l,
|
|
3755
|
-
items:
|
|
3777
|
+
items: I,
|
|
3756
3778
|
perPage: void 0,
|
|
3757
3779
|
showRightGradient: !F,
|
|
3758
3780
|
enableHorizontalWheel: !0,
|
|
@@ -3777,7 +3799,7 @@ function Oo({
|
|
|
3777
3799
|
onMove: ({ isStart: B, isEnd: P, visibleStart: W, visibleEnd: V }) => {
|
|
3778
3800
|
f(
|
|
3779
3801
|
(H) => H.isStart === B && H.isEnd === P ? H : { isStart: B, isEnd: P }
|
|
3780
|
-
),
|
|
3802
|
+
), u({ start: W, end: V });
|
|
3781
3803
|
}
|
|
3782
3804
|
}
|
|
3783
3805
|
)
|
|
@@ -3863,7 +3885,7 @@ function Lo({
|
|
|
3863
3885
|
{ englishName: "Football", termPath: "football", limit: 5 },
|
|
3864
3886
|
{ englishName: "Basketball", termPath: "basketball", limit: 2 },
|
|
3865
3887
|
{ englishName: "Tennis", termPath: "tennis", limit: 2 }
|
|
3866
|
-
], g = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE", m = Z(null), [
|
|
3888
|
+
], g = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE", m = Z(null), [d, u] = ee({ isStart: !0, isEnd: !1 }), [b, x] = ee(null), [v, S] = ee({ start: null, end: null }), M = "channel_id=1&client_id=200&competitionId=undefined&lang=es_PE&market=PE&useCombined=true", E = () => {
|
|
3867
3889
|
s({
|
|
3868
3890
|
element: "evento_semana_view_more",
|
|
3869
3891
|
label: `${l} - OraculoSeccionEventoSemana - Ver más`,
|
|
@@ -3878,7 +3900,7 @@ function Lo({
|
|
|
3878
3900
|
};
|
|
3879
3901
|
async function _(y) {
|
|
3880
3902
|
var B, P, W;
|
|
3881
|
-
let
|
|
3903
|
+
let I = [], F = [];
|
|
3882
3904
|
try {
|
|
3883
3905
|
const V = await fetch(
|
|
3884
3906
|
"https://api.mktolimpo.com/api/kambi/eventos/orden",
|
|
@@ -3886,7 +3908,7 @@ function Lo({
|
|
|
3886
3908
|
);
|
|
3887
3909
|
if (V.ok) {
|
|
3888
3910
|
const H = await V.json();
|
|
3889
|
-
|
|
3911
|
+
I = ((B = H == null ? void 0 : H.data) == null ? void 0 : B.group_ids) || [], F = ((P = H == null ? void 0 : H.data) == null ? void 0 : P.event_ids) || [];
|
|
3890
3912
|
}
|
|
3891
3913
|
} catch (V) {
|
|
3892
3914
|
V.name !== "AbortError" && console.warn("Order API not available, using default group order");
|
|
@@ -3898,12 +3920,12 @@ function Lo({
|
|
|
3898
3920
|
console.error("Sport groups structure invalid");
|
|
3899
3921
|
return;
|
|
3900
3922
|
}
|
|
3901
|
-
const D =
|
|
3923
|
+
const D = I.length > 0 ? new Map(I.map((Y, r) => [String(Y), r])) : null, K = [];
|
|
3902
3924
|
for (const Y of f) {
|
|
3903
3925
|
const r = G.find(
|
|
3904
|
-
(
|
|
3905
|
-
var
|
|
3906
|
-
return ((
|
|
3926
|
+
(N) => {
|
|
3927
|
+
var U;
|
|
3928
|
+
return ((U = N.englishName) == null ? void 0 : U.toLowerCase()) === Y.englishName.toLowerCase();
|
|
3907
3929
|
}
|
|
3908
3930
|
);
|
|
3909
3931
|
if (!r || !Array.isArray(r.groups)) {
|
|
@@ -3911,26 +3933,26 @@ function Lo({
|
|
|
3911
3933
|
continue;
|
|
3912
3934
|
}
|
|
3913
3935
|
let p = [...r.groups];
|
|
3914
|
-
D && p.sort((
|
|
3915
|
-
const J = D.get(String(
|
|
3936
|
+
D && p.sort((N, U) => {
|
|
3937
|
+
const J = D.get(String(N.id)), ne = D.get(String(U.id));
|
|
3916
3938
|
return (J !== void 0 ? J : 1 / 0) - (ne !== void 0 ? ne : 1 / 0);
|
|
3917
3939
|
});
|
|
3918
|
-
const T = p.slice(0, Y.limit),
|
|
3919
|
-
const
|
|
3920
|
-
if (
|
|
3921
|
-
const J =
|
|
3922
|
-
return `${
|
|
3940
|
+
const T = p.slice(0, Y.limit), A = (N) => {
|
|
3941
|
+
const U = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/${Y.termPath}`;
|
|
3942
|
+
if (N.groups && N.groups.length > 0) {
|
|
3943
|
+
const J = N.groups[0];
|
|
3944
|
+
return `${U}/${N.termKey}/${J.termKey}/all/matches.json?${M}`;
|
|
3923
3945
|
}
|
|
3924
|
-
return `${
|
|
3925
|
-
},
|
|
3926
|
-
K.push(...
|
|
3946
|
+
return `${U}/${N.termKey}/all/all/matches.json?${M}`;
|
|
3947
|
+
}, k = T.map(A);
|
|
3948
|
+
K.push(...k);
|
|
3927
3949
|
}
|
|
3928
|
-
|
|
3950
|
+
C(K, F, y);
|
|
3929
3951
|
} catch (V) {
|
|
3930
3952
|
console.error("Error in fetching week events:", V);
|
|
3931
3953
|
}
|
|
3932
3954
|
}
|
|
3933
|
-
async function
|
|
3955
|
+
async function C(y, I, F) {
|
|
3934
3956
|
try {
|
|
3935
3957
|
const B = await $o(y, 2, F);
|
|
3936
3958
|
let P = [], W = [];
|
|
@@ -3941,9 +3963,9 @@ function Lo({
|
|
|
3941
3963
|
});
|
|
3942
3964
|
const V = Bo(P, W), H = Ao(Mo(V));
|
|
3943
3965
|
let G = H;
|
|
3944
|
-
if (
|
|
3966
|
+
if (I.length > 0) {
|
|
3945
3967
|
const D = new Map(
|
|
3946
|
-
|
|
3968
|
+
I.map((K, Y) => [
|
|
3947
3969
|
String(K),
|
|
3948
3970
|
Y
|
|
3949
3971
|
])
|
|
@@ -3966,7 +3988,7 @@ function Lo({
|
|
|
3966
3988
|
y.abort();
|
|
3967
3989
|
};
|
|
3968
3990
|
}, [e]);
|
|
3969
|
-
const
|
|
3991
|
+
const O = i || void 0, w = {
|
|
3970
3992
|
paddingLeft: 0,
|
|
3971
3993
|
width: "100%",
|
|
3972
3994
|
boxSizing: "border-box"
|
|
@@ -3976,8 +3998,8 @@ function Lo({
|
|
|
3976
3998
|
fetchJerseys: Ot,
|
|
3977
3999
|
buffer: 2,
|
|
3978
4000
|
debounceMs: 250
|
|
3979
|
-
}), R = b === null,
|
|
3980
|
-
return !R && b.length === 0 ? null : /* @__PURE__ */ t("section", { className:
|
|
4001
|
+
}), R = b === null, $ = Ne("(max-width:950px)");
|
|
4002
|
+
return !R && b.length === 0 ? null : /* @__PURE__ */ t("section", { className: O, style: w, children: /* @__PURE__ */ h("div", { className: `${Be.wrapper} ${Be.padding}`, children: [
|
|
3981
4003
|
/* @__PURE__ */ t("div", { className: Be.container, children: /* @__PURE__ */ h(Q, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
3982
4004
|
/* @__PURE__ */ t(ye, { title: "Eventos de la semana" }),
|
|
3983
4005
|
/* @__PURE__ */ t("div", { className: Be.buttonWrapper, children: /* @__PURE__ */ t(
|
|
@@ -3987,7 +4009,7 @@ function Lo({
|
|
|
3987
4009
|
size: "lg",
|
|
3988
4010
|
fullWidth: !0,
|
|
3989
4011
|
onClick: () => {
|
|
3990
|
-
|
|
4012
|
+
E();
|
|
3991
4013
|
},
|
|
3992
4014
|
children: "Ver más"
|
|
3993
4015
|
}
|
|
@@ -4001,7 +4023,7 @@ function Lo({
|
|
|
4001
4023
|
perPage: 3.5,
|
|
4002
4024
|
gap: "16px",
|
|
4003
4025
|
enableHorizontalWheel: !0,
|
|
4004
|
-
showRightGradient:
|
|
4026
|
+
showRightGradient: !$,
|
|
4005
4027
|
options: { autoWidth: !0, trimSpace: !0 },
|
|
4006
4028
|
breakpoints: {
|
|
4007
4029
|
1024: {
|
|
@@ -4012,11 +4034,11 @@ function Lo({
|
|
|
4012
4034
|
}
|
|
4013
4035
|
},
|
|
4014
4036
|
renderItem: (y) => {
|
|
4015
|
-
const
|
|
4037
|
+
const I = y.id, F = I in L ? L[I] : void 0;
|
|
4016
4038
|
return R ? /* @__PURE__ */ t(We, { children: /* @__PURE__ */ t(Io, {}) }) : /* @__PURE__ */ t(We, { children: /* @__PURE__ */ t(No, { event: y, jersey: F }) });
|
|
4017
4039
|
},
|
|
4018
|
-
onMove: ({ isStart: y, isEnd:
|
|
4019
|
-
|
|
4040
|
+
onMove: ({ isStart: y, isEnd: I, visibleStart: F, visibleEnd: B, source: P }) => {
|
|
4041
|
+
u({ isStart: y, isEnd: I }), S({
|
|
4020
4042
|
start: F,
|
|
4021
4043
|
end: B
|
|
4022
4044
|
}), P === "user" && s({
|
|
@@ -4030,7 +4052,7 @@ function Lo({
|
|
|
4030
4052
|
visibleStart: F,
|
|
4031
4053
|
visibleEnd: B,
|
|
4032
4054
|
isStart: y,
|
|
4033
|
-
isEnd:
|
|
4055
|
+
isEnd: I
|
|
4034
4056
|
},
|
|
4035
4057
|
tags: { section: "OraculoSeccionEventoSemana" }
|
|
4036
4058
|
});
|
|
@@ -4059,27 +4081,27 @@ const Ro = -300, Po = (e) => /[zZ]|[+-]\d{2}:\d{2}$/.test(e), pt = (e) => {
|
|
|
4059
4081
|
Number(c)
|
|
4060
4082
|
);
|
|
4061
4083
|
}, Fo = (e, a) => {
|
|
4062
|
-
var c, f, g, m,
|
|
4063
|
-
const n = (g = (f = (c = e == null ? void 0 : e.fields) != null ? c : e == null ? void 0 : e.parameters) != null ? f : e == null ? void 0 : e.extraFields) != null ? g : [], o = (
|
|
4084
|
+
var c, f, g, m, d, u, b, x, v;
|
|
4085
|
+
const n = (g = (f = (c = e == null ? void 0 : e.fields) != null ? c : e == null ? void 0 : e.parameters) != null ? f : e == null ? void 0 : e.extraFields) != null ? g : [], o = (u = (d = e == null ? void 0 : e.startAt) != null ? d : (m = n.find((S) => (S == null ? void 0 : S.name) === "startAt")) == null ? void 0 : m.value) != null ? u : null, i = (v = (x = e == null ? void 0 : e.endAt) != null ? x : (b = n.find((S) => (S == null ? void 0 : S.name) === "endAt")) == null ? void 0 : b.value) != null ? v : null, s = pt(o), l = pt(i);
|
|
4064
4086
|
return !(s != null && a < s || l != null && a >= l);
|
|
4065
4087
|
};
|
|
4066
|
-
function
|
|
4088
|
+
function Uo({
|
|
4067
4089
|
backgrounds: e,
|
|
4068
4090
|
items: a,
|
|
4069
4091
|
hideItems: n,
|
|
4070
4092
|
user: o = null
|
|
4071
4093
|
}) {
|
|
4072
4094
|
var Y;
|
|
4073
|
-
const [i, s] = ee(0), l = se(), c = ce(), f = pe(), g = Z(null), m = Z(!1),
|
|
4074
|
-
var
|
|
4075
|
-
const
|
|
4076
|
-
return
|
|
4077
|
-
}).map(({ item: p }) => p),
|
|
4095
|
+
const [i, s] = ee(0), l = se(), c = ce(), f = pe(), g = Z(null), m = Z(!1), d = Z(!1), [u, b] = ee(() => Date.now()), x = ue("setDepositActionGlobal"), v = ue("setAbrirLiveActionGlobal"), S = ue("openLoginWithRedirect"), M = (r) => [...r != null ? r : []].map((p, T) => ({ item: p, index: T })).sort((p, T) => {
|
|
4096
|
+
var N, U;
|
|
4097
|
+
const A = (N = p.item.order) != null ? N : Number.MAX_SAFE_INTEGER, k = (U = T.item.order) != null ? U : Number.MAX_SAFE_INTEGER;
|
|
4098
|
+
return A - k || p.index - T.index;
|
|
4099
|
+
}).map(({ item: p }) => p), E = de(() => M(a), [a]), _ = de(() => {
|
|
4078
4100
|
const r = (e != null ? e : []).filter(
|
|
4079
|
-
(p) => Fo(p,
|
|
4101
|
+
(p) => Fo(p, u)
|
|
4080
4102
|
);
|
|
4081
4103
|
return M(r);
|
|
4082
|
-
}, [e,
|
|
4104
|
+
}, [e, u]), C = _.length || 1, O = !_ || _.length === 0, w = !O && _.length > 1, L = !n && E.length > 0;
|
|
4083
4105
|
Je("(max-width:950px)");
|
|
4084
4106
|
const R = "#B5B5B5";
|
|
4085
4107
|
re(() => {
|
|
@@ -4088,7 +4110,7 @@ function qo({
|
|
|
4088
4110
|
}, 3e4);
|
|
4089
4111
|
return () => window.clearInterval(r);
|
|
4090
4112
|
}, []);
|
|
4091
|
-
const
|
|
4113
|
+
const $ = {
|
|
4092
4114
|
position: "absolute",
|
|
4093
4115
|
top: "50%",
|
|
4094
4116
|
transform: "translateY(-50%)",
|
|
@@ -4128,10 +4150,10 @@ function qo({
|
|
|
4128
4150
|
}, 500);
|
|
4129
4151
|
return () => clearTimeout(r);
|
|
4130
4152
|
}, []);
|
|
4131
|
-
const
|
|
4132
|
-
var
|
|
4133
|
-
const
|
|
4134
|
-
if (
|
|
4153
|
+
const I = (r, p, T) => {
|
|
4154
|
+
var U, J;
|
|
4155
|
+
const A = !!p.idFunction, k = !!p.href;
|
|
4156
|
+
if (A)
|
|
4135
4157
|
switch (r.preventDefault(), r.stopPropagation(), p.idFunction) {
|
|
4136
4158
|
case "deposito":
|
|
4137
4159
|
x == null || x(!0);
|
|
@@ -4142,14 +4164,14 @@ function qo({
|
|
|
4142
4164
|
default:
|
|
4143
4165
|
return;
|
|
4144
4166
|
}
|
|
4145
|
-
if (!
|
|
4167
|
+
if (!k) {
|
|
4146
4168
|
r.preventDefault(), r.stopPropagation();
|
|
4147
4169
|
return;
|
|
4148
4170
|
}
|
|
4149
|
-
const
|
|
4171
|
+
const N = ((J = (U = p.href) == null ? void 0 : U.split("/").pop()) == null ? void 0 : J.split(".")[0]) || p.label || p.id || `banner_${T + 1}`;
|
|
4150
4172
|
l({
|
|
4151
4173
|
element: "banner_carousel",
|
|
4152
|
-
label: `${c} - OraculoSeccionBanners - Banner click: ${
|
|
4174
|
+
label: `${c} - OraculoSeccionBanners - Banner click: ${N}`,
|
|
4153
4175
|
target: p.href || "no_url",
|
|
4154
4176
|
event_type: "click",
|
|
4155
4177
|
module_id: f,
|
|
@@ -4180,7 +4202,7 @@ function qo({
|
|
|
4180
4202
|
item_label: r.label || "no_label"
|
|
4181
4203
|
}
|
|
4182
4204
|
}), !o && r.label == "MISIONES") {
|
|
4183
|
-
|
|
4205
|
+
S == null || S((p = r.href) != null ? p : "");
|
|
4184
4206
|
return;
|
|
4185
4207
|
}
|
|
4186
4208
|
if (r.onClick) {
|
|
@@ -4188,12 +4210,12 @@ function qo({
|
|
|
4188
4210
|
return;
|
|
4189
4211
|
}
|
|
4190
4212
|
r.href && typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(r.href);
|
|
4191
|
-
}, B = 5e3, P = Z(null), W = !
|
|
4213
|
+
}, B = 5e3, P = Z(null), W = !O && ((Y = _ == null ? void 0 : _.length) != null ? Y : 0) > 1, V = () => {
|
|
4192
4214
|
P.current != null && (window.clearTimeout(P.current), P.current = null);
|
|
4193
4215
|
}, H = () => {
|
|
4194
4216
|
V(), W && (P.current = window.setTimeout(() => {
|
|
4195
4217
|
var r;
|
|
4196
|
-
|
|
4218
|
+
d.current = !0, (r = g.current) == null || r.next();
|
|
4197
4219
|
}, B));
|
|
4198
4220
|
};
|
|
4199
4221
|
re(() => (H(), () => V()), [W, B]);
|
|
@@ -4204,20 +4226,20 @@ function qo({
|
|
|
4204
4226
|
var p;
|
|
4205
4227
|
r.preventDefault(), r.stopPropagation(), V(), (p = g.current) == null || p.next();
|
|
4206
4228
|
}, K = (r) => {
|
|
4207
|
-
var
|
|
4208
|
-
const p = (r %
|
|
4229
|
+
var A, k, N, U;
|
|
4230
|
+
const p = (r % C + C) % C;
|
|
4209
4231
|
if (!m.current) return;
|
|
4210
|
-
const T = (
|
|
4232
|
+
const T = (A = _ == null ? void 0 : _[p]) != null && A.href ? ((N = (k = _[p].href) == null ? void 0 : k.split("/").pop()) == null ? void 0 : N.split(".")[0]) || `banner_${p + 1}` : `banner_${p + 1}`;
|
|
4211
4233
|
l({
|
|
4212
4234
|
element: "banner_carousel",
|
|
4213
4235
|
label: `${c} - OraculoSeccionBanners - Banner view: Slide ${p + 1} - ${T}`,
|
|
4214
|
-
target: ((
|
|
4236
|
+
target: ((U = _ == null ? void 0 : _[p]) == null ? void 0 : U.href) || "no_url",
|
|
4215
4237
|
event_type: "view",
|
|
4216
4238
|
module_id: f,
|
|
4217
4239
|
metadata: {
|
|
4218
4240
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
4219
4241
|
slide_index: p + 1,
|
|
4220
|
-
total_slides:
|
|
4242
|
+
total_slides: C,
|
|
4221
4243
|
interaction_type: "manual_slide"
|
|
4222
4244
|
},
|
|
4223
4245
|
tags: { banner_position: String(p + 1) }
|
|
@@ -4267,29 +4289,29 @@ function qo({
|
|
|
4267
4289
|
enableHorizontalWheel: !0,
|
|
4268
4290
|
options: y,
|
|
4269
4291
|
onMove: ({ index: r, source: p }) => {
|
|
4270
|
-
const T = (r %
|
|
4292
|
+
const T = (r % C + C) % C;
|
|
4271
4293
|
s(T);
|
|
4272
|
-
const
|
|
4273
|
-
|
|
4294
|
+
const A = d.current;
|
|
4295
|
+
d.current = !1, p === "user" && (H(), A || K(r));
|
|
4274
4296
|
},
|
|
4275
4297
|
renderItem: (r, p) => {
|
|
4276
|
-
var
|
|
4277
|
-
const T = !!r.idFunction,
|
|
4298
|
+
var U, J, ne;
|
|
4299
|
+
const T = !!r.idFunction, A = !!r.href, k = A && !T, N = T || A;
|
|
4278
4300
|
return /* @__PURE__ */ h(
|
|
4279
4301
|
le,
|
|
4280
4302
|
{
|
|
4281
|
-
component:
|
|
4282
|
-
href:
|
|
4283
|
-
target:
|
|
4284
|
-
rel:
|
|
4285
|
-
onClick: (oe) =>
|
|
4303
|
+
component: k ? "a" : "div",
|
|
4304
|
+
href: k ? r.href : void 0,
|
|
4305
|
+
target: k ? (U = r.target) != null ? U : "_self" : void 0,
|
|
4306
|
+
rel: k && r.target === "_blank" ? "noopener noreferrer" : void 0,
|
|
4307
|
+
onClick: (oe) => I(oe, r, p),
|
|
4286
4308
|
sx: {
|
|
4287
4309
|
position: "relative",
|
|
4288
4310
|
width: "100%",
|
|
4289
4311
|
height: "100%",
|
|
4290
4312
|
display: "block",
|
|
4291
4313
|
textDecoration: "none",
|
|
4292
|
-
cursor:
|
|
4314
|
+
cursor: N ? "pointer" : "default"
|
|
4293
4315
|
},
|
|
4294
4316
|
children: [
|
|
4295
4317
|
/* @__PURE__ */ h(le, { component: "picture", sx: { position: "absolute", inset: 0, lineHeight: 0 }, children: [
|
|
@@ -4339,14 +4361,14 @@ function qo({
|
|
|
4339
4361
|
)
|
|
4340
4362
|
}
|
|
4341
4363
|
),
|
|
4342
|
-
|
|
4364
|
+
w && /* @__PURE__ */ h(te, { children: [
|
|
4343
4365
|
/* @__PURE__ */ t(
|
|
4344
4366
|
Qe,
|
|
4345
4367
|
{
|
|
4346
4368
|
"aria-label": "Anterior",
|
|
4347
4369
|
onClick: G,
|
|
4348
4370
|
sx: {
|
|
4349
|
-
|
|
4371
|
+
...$,
|
|
4350
4372
|
left: "120px",
|
|
4351
4373
|
"@media (max-width:1024px)": { left: 24 },
|
|
4352
4374
|
"@media (max-width:786px)": { display: "none" }
|
|
@@ -4360,7 +4382,7 @@ function qo({
|
|
|
4360
4382
|
"aria-label": "Siguiente",
|
|
4361
4383
|
onClick: D,
|
|
4362
4384
|
sx: {
|
|
4363
|
-
|
|
4385
|
+
...$,
|
|
4364
4386
|
right: "120px",
|
|
4365
4387
|
"@media (max-width:1024px)": { right: 24 },
|
|
4366
4388
|
"@media (max-width:786px)": { display: "none" }
|
|
@@ -4384,11 +4406,11 @@ function qo({
|
|
|
4384
4406
|
children: /* @__PURE__ */ t(
|
|
4385
4407
|
yt,
|
|
4386
4408
|
{
|
|
4387
|
-
total:
|
|
4409
|
+
total: C,
|
|
4388
4410
|
active: i,
|
|
4389
4411
|
durationMs: B
|
|
4390
4412
|
},
|
|
4391
|
-
`${i}-${
|
|
4413
|
+
`${i}-${C}`
|
|
4392
4414
|
)
|
|
4393
4415
|
}
|
|
4394
4416
|
)
|
|
@@ -4413,7 +4435,7 @@ function qo({
|
|
|
4413
4435
|
boxShadow: "0 10px 24px rgba(0,0,0,.35)",
|
|
4414
4436
|
zIndex: 3
|
|
4415
4437
|
},
|
|
4416
|
-
children:
|
|
4438
|
+
children: E == null ? void 0 : E.map((r) => /* @__PURE__ */ h(
|
|
4417
4439
|
le,
|
|
4418
4440
|
{
|
|
4419
4441
|
sx: {
|
|
@@ -4540,7 +4562,7 @@ const zo = [
|
|
|
4540
4562
|
{ src: "https://d28gilnhu2bcbp.cloudfront.net/landing/niubiz.svg", alt: "Niubiz" },
|
|
4541
4563
|
{ src: "https://d28gilnhu2bcbp.cloudfront.net/landing/bbva.png", alt: "BBVA" }
|
|
4542
4564
|
];
|
|
4543
|
-
function
|
|
4565
|
+
function qo({
|
|
4544
4566
|
title: e = "Medios de pago",
|
|
4545
4567
|
items: a = zo
|
|
4546
4568
|
}) {
|
|
@@ -4636,8 +4658,8 @@ const Do = {
|
|
|
4636
4658
|
OraculoSeccionVirtuales: ro,
|
|
4637
4659
|
OraculoSeccionClubOlimpo: so,
|
|
4638
4660
|
OraculoSeccionBonoBienvenida: lo,
|
|
4639
|
-
OraculoSeccionBanners:
|
|
4640
|
-
OraculoSeccionMediosPago:
|
|
4661
|
+
OraculoSeccionBanners: Uo,
|
|
4662
|
+
OraculoSeccionMediosPago: qo,
|
|
4641
4663
|
OraculoSeccionEventoEnVivo: Oo,
|
|
4642
4664
|
OraculoSeccionEventoSemana: Lo,
|
|
4643
4665
|
OraculoSeccionEventoCombinadas: ho
|
|
@@ -6092,33 +6114,33 @@ const gt = [
|
|
|
6092
6114
|
}) => {
|
|
6093
6115
|
const c = de(() => Go(i), [i]), f = s || c.loader, [g, m] = ee(
|
|
6094
6116
|
() => e ? [] : Ae(Le)
|
|
6095
|
-
), [
|
|
6117
|
+
), [d, u] = ee(!1), [b, x] = ee({}), [v, S] = ee({}), [M, E] = ee({}), _ = Je("(min-width:1024px)"), C = de(
|
|
6096
6118
|
() => Ae(Le),
|
|
6097
6119
|
[]
|
|
6098
|
-
),
|
|
6120
|
+
), O = (r) => C.find(
|
|
6099
6121
|
(p) => p.id === r.id || p.componentKey === r.componentKey
|
|
6100
|
-
),
|
|
6122
|
+
), w = (r) => Array.isArray(r) ? r.map((p) => Number(p)).filter((p) => !Number.isNaN(p)) : [], L = de(() => {
|
|
6101
6123
|
const r = c.user;
|
|
6102
|
-
return
|
|
6124
|
+
return w(r == null ? void 0 : r.groups);
|
|
6103
6125
|
}, [c]), R = (r) => {
|
|
6104
6126
|
const p = r.manualScalarFields;
|
|
6105
6127
|
if (!Array.isArray(p)) return [];
|
|
6106
6128
|
const T = p.find(
|
|
6107
|
-
(
|
|
6129
|
+
(N) => String((N == null ? void 0 : N.name) || "").trim().toLowerCase() === "groups"
|
|
6108
6130
|
);
|
|
6109
6131
|
if (!T) return [];
|
|
6110
|
-
const
|
|
6111
|
-
if (
|
|
6112
|
-
if (Array.isArray(
|
|
6113
|
-
return
|
|
6114
|
-
const
|
|
6115
|
-
return
|
|
6116
|
-
},
|
|
6132
|
+
const A = T.value;
|
|
6133
|
+
if (A == null) return [];
|
|
6134
|
+
if (Array.isArray(A))
|
|
6135
|
+
return A.map((N) => Number(String(N).trim())).filter((N) => !Number.isNaN(N));
|
|
6136
|
+
const k = String(A).trim();
|
|
6137
|
+
return k ? k.split(",").map((N) => Number(N.trim())).filter((N) => !Number.isNaN(N)) : [];
|
|
6138
|
+
}, $ = (r, p) => {
|
|
6117
6139
|
const T = R(r);
|
|
6118
6140
|
if (T.length === 0) return !0;
|
|
6119
6141
|
if (!Array.isArray(p) || p.length === 0) return !1;
|
|
6120
|
-
const
|
|
6121
|
-
return T.some((
|
|
6142
|
+
const A = new Set(p);
|
|
6143
|
+
return T.some((k) => A.has(k));
|
|
6122
6144
|
};
|
|
6123
6145
|
re(() => {
|
|
6124
6146
|
if (e) return;
|
|
@@ -6126,10 +6148,10 @@ const gt = [
|
|
|
6126
6148
|
console.warn("[landing] sin db -> fallback json"), m(Ae(Le));
|
|
6127
6149
|
return;
|
|
6128
6150
|
}
|
|
6129
|
-
const r = (T,
|
|
6130
|
-
console.warn("[landing] FALLBACK:", T,
|
|
6151
|
+
const r = (T, A) => {
|
|
6152
|
+
console.warn("[landing] FALLBACK:", T, A != null ? A : ""), m(Ae(Le)), u(!1);
|
|
6131
6153
|
};
|
|
6132
|
-
|
|
6154
|
+
u(!0);
|
|
6133
6155
|
const p = Gt(
|
|
6134
6156
|
Zt(o, "landings", a),
|
|
6135
6157
|
(T) => {
|
|
@@ -6138,16 +6160,16 @@ const gt = [
|
|
|
6138
6160
|
r(`doc landings/${a} no existe`);
|
|
6139
6161
|
return;
|
|
6140
6162
|
}
|
|
6141
|
-
const
|
|
6142
|
-
if (!
|
|
6143
|
-
r("JSON inválido o sin secciones normalizables",
|
|
6163
|
+
const A = T.data(), k = Ae(A);
|
|
6164
|
+
if (!k.length) {
|
|
6165
|
+
r("JSON inválido o sin secciones normalizables", A);
|
|
6144
6166
|
return;
|
|
6145
6167
|
}
|
|
6146
|
-
console.log("[landing] Firestore OK (json grande):",
|
|
6147
|
-
} catch (
|
|
6148
|
-
r("error procesando snapshot",
|
|
6168
|
+
console.log("[landing] Firestore OK (json grande):", A), m(k);
|
|
6169
|
+
} catch (A) {
|
|
6170
|
+
r("error procesando snapshot", A);
|
|
6149
6171
|
} finally {
|
|
6150
|
-
|
|
6172
|
+
u(!1);
|
|
6151
6173
|
}
|
|
6152
6174
|
},
|
|
6153
6175
|
(T) => {
|
|
@@ -6167,79 +6189,79 @@ const gt = [
|
|
|
6167
6189
|
};
|
|
6168
6190
|
const p = (r.apiUrl || "").trim();
|
|
6169
6191
|
if (!p) return;
|
|
6170
|
-
const T = r.apiMethod || "GET",
|
|
6171
|
-
let
|
|
6192
|
+
const T = r.apiMethod || "GET", A = r.apiParams || [];
|
|
6193
|
+
let k = p, N, U;
|
|
6172
6194
|
if (T === "GET") {
|
|
6173
6195
|
const ne = new URL(
|
|
6174
6196
|
p,
|
|
6175
6197
|
typeof window == "undefined" ? "http://localhost" : window.location.origin
|
|
6176
6198
|
);
|
|
6177
|
-
for (const oe of
|
|
6199
|
+
for (const oe of A)
|
|
6178
6200
|
oe.key && ne.searchParams.append(oe.key, oe.value);
|
|
6179
|
-
|
|
6201
|
+
k = ne.toString();
|
|
6180
6202
|
} else {
|
|
6181
6203
|
const ne = new URLSearchParams();
|
|
6182
|
-
for (const oe of
|
|
6204
|
+
for (const oe of A)
|
|
6183
6205
|
oe.key && ne.append(oe.key, oe.value);
|
|
6184
|
-
|
|
6206
|
+
N = ne.toString(), U = {
|
|
6185
6207
|
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
|
|
6186
6208
|
};
|
|
6187
6209
|
}
|
|
6188
|
-
const J = await fetch(
|
|
6210
|
+
const J = await fetch(k, {
|
|
6189
6211
|
method: T,
|
|
6190
|
-
headers:
|
|
6191
|
-
body:
|
|
6212
|
+
headers: U,
|
|
6213
|
+
body: N
|
|
6192
6214
|
});
|
|
6193
|
-
if (!J.ok) throw new ft(J.status,
|
|
6215
|
+
if (!J.ok) throw new ft(J.status, k, J.statusText);
|
|
6194
6216
|
return J.json();
|
|
6195
|
-
},
|
|
6217
|
+
}, I = de(
|
|
6196
6218
|
() => e ? e.slice() : g.slice(),
|
|
6197
6219
|
[e, g]
|
|
6198
6220
|
), F = ve.useRef(/* @__PURE__ */ new Set());
|
|
6199
6221
|
re(() => {
|
|
6200
|
-
const r =
|
|
6222
|
+
const r = I.map((p) => ({ s: p, url: (p.apiUrl || "").trim() })).filter(({ url: p }) => !!p);
|
|
6201
6223
|
if (r.length)
|
|
6202
6224
|
for (const { s: p, url: T } of r) {
|
|
6203
|
-
const
|
|
6204
|
-
F.current.has(
|
|
6225
|
+
const A = `${p.id}|${T}`;
|
|
6226
|
+
F.current.has(A) || (F.current.add(A), S((k) => ({ ...k, [p.id]: !0 })), E((k) => ({ ...k, [p.id]: "" })), (async () => {
|
|
6205
6227
|
try {
|
|
6206
|
-
const
|
|
6207
|
-
x((
|
|
6208
|
-
} catch (
|
|
6209
|
-
let
|
|
6210
|
-
|
|
6228
|
+
const k = await y(p);
|
|
6229
|
+
x((N) => ({ ...N, [p.id]: k }));
|
|
6230
|
+
} catch (k) {
|
|
6231
|
+
let N = "Error desconocido";
|
|
6232
|
+
k instanceof ft ? N = `Error HTTP ${k.status} (${k.statusText}) en ${k.url}` : k instanceof SyntaxError ? N = "Respuesta no es JSON válido" : k instanceof TypeError ? N = "Fallo de red / CORS / conexión" : typeof k == "string" && (N = k.toString()), E((U) => ({ ...U, [p.id]: N }));
|
|
6211
6233
|
} finally {
|
|
6212
|
-
|
|
6234
|
+
S((k) => ({ ...k, [p.id]: !1 }));
|
|
6213
6235
|
}
|
|
6214
6236
|
})());
|
|
6215
6237
|
}
|
|
6216
|
-
}, [
|
|
6238
|
+
}, [I]);
|
|
6217
6239
|
const B = de(
|
|
6218
|
-
() =>
|
|
6219
|
-
[
|
|
6240
|
+
() => I.filter((r) => r.visible).filter((r) => $(r, L)).sort((r, p) => r.order - p.order),
|
|
6241
|
+
[I, L]
|
|
6220
6242
|
), P = (r) => Array.isArray(r) ? r.map((p) => {
|
|
6221
6243
|
const T = {};
|
|
6222
|
-
for (const
|
|
6223
|
-
const
|
|
6224
|
-
if (
|
|
6225
|
-
const
|
|
6226
|
-
if (
|
|
6227
|
-
const
|
|
6228
|
-
Number.isNaN(
|
|
6244
|
+
for (const A of p.fields || []) {
|
|
6245
|
+
const k = (A.type || "string").toLowerCase();
|
|
6246
|
+
if (k === "number") {
|
|
6247
|
+
const N = String(A.value || "").trim();
|
|
6248
|
+
if (N !== "") {
|
|
6249
|
+
const U = Number(N);
|
|
6250
|
+
Number.isNaN(U) || (T[A.name] = U);
|
|
6229
6251
|
}
|
|
6230
|
-
} else if (
|
|
6231
|
-
T[
|
|
6232
|
-
else if (
|
|
6233
|
-
const
|
|
6234
|
-
if (
|
|
6252
|
+
} else if (k === "boolean")
|
|
6253
|
+
T[A.name] = String(A.value).toLowerCase() === "true";
|
|
6254
|
+
else if (k === "function") {
|
|
6255
|
+
const N = String(A.value || "").trim();
|
|
6256
|
+
if (N)
|
|
6235
6257
|
try {
|
|
6236
|
-
const
|
|
6237
|
-
T[
|
|
6238
|
-
} catch (
|
|
6239
|
-
console.error(`❌ Error creando función en item '${
|
|
6258
|
+
const U = new Function(N);
|
|
6259
|
+
T[A.name] = U;
|
|
6260
|
+
} catch (U) {
|
|
6261
|
+
console.error(`❌ Error creando función en item '${A.name}':`, U);
|
|
6240
6262
|
}
|
|
6241
6263
|
} else
|
|
6242
|
-
T[
|
|
6264
|
+
T[A.name] = A.value;
|
|
6243
6265
|
}
|
|
6244
6266
|
return T;
|
|
6245
6267
|
}) : [], W = (r) => {
|
|
@@ -6247,73 +6269,73 @@ const gt = [
|
|
|
6247
6269
|
if (!Array.isArray(r)) return p;
|
|
6248
6270
|
for (const T of r) {
|
|
6249
6271
|
if (!T.name) continue;
|
|
6250
|
-
const
|
|
6251
|
-
if (
|
|
6252
|
-
const
|
|
6253
|
-
if (
|
|
6254
|
-
const
|
|
6255
|
-
Number.isNaN(
|
|
6272
|
+
const A = (T.type || "string").toLowerCase();
|
|
6273
|
+
if (A === "number") {
|
|
6274
|
+
const k = String(T.value || "").trim();
|
|
6275
|
+
if (k !== "") {
|
|
6276
|
+
const N = Number(k);
|
|
6277
|
+
Number.isNaN(N) || (p[T.name] = N);
|
|
6256
6278
|
}
|
|
6257
|
-
} else if (
|
|
6279
|
+
} else if (A === "boolean")
|
|
6258
6280
|
p[T.name] = String(T.value).toLowerCase() === "true";
|
|
6259
|
-
else if (
|
|
6260
|
-
const
|
|
6261
|
-
if (
|
|
6281
|
+
else if (A === "function") {
|
|
6282
|
+
const k = String(T.value || "").trim();
|
|
6283
|
+
if (k)
|
|
6262
6284
|
try {
|
|
6263
|
-
const
|
|
6264
|
-
p[T.name] =
|
|
6265
|
-
} catch (
|
|
6266
|
-
console.error(`❌ Error creando función en item '${T.name}':`,
|
|
6285
|
+
const N = new Function(k);
|
|
6286
|
+
p[T.name] = N;
|
|
6287
|
+
} catch (N) {
|
|
6288
|
+
console.error(`❌ Error creando función en item '${T.name}':`, N);
|
|
6267
6289
|
}
|
|
6268
6290
|
} else
|
|
6269
6291
|
p[T.name] = T.value;
|
|
6270
6292
|
}
|
|
6271
6293
|
return p;
|
|
6272
|
-
}, V = (r, p, T,
|
|
6273
|
-
const
|
|
6294
|
+
}, V = (r, p, T, A) => {
|
|
6295
|
+
const k = T ? { ...T } : {}, N = (A || "items").trim() || "items";
|
|
6274
6296
|
if (p)
|
|
6275
|
-
return
|
|
6276
|
-
const
|
|
6277
|
-
if (Array.isArray(
|
|
6278
|
-
return
|
|
6279
|
-
if (
|
|
6280
|
-
const J =
|
|
6281
|
-
return Array.isArray(J.lobby) ? (
|
|
6297
|
+
return k[N] = p.arr || [], k;
|
|
6298
|
+
const U = r;
|
|
6299
|
+
if (Array.isArray(U))
|
|
6300
|
+
return k[N] = U, k;
|
|
6301
|
+
if (U && typeof U == "object") {
|
|
6302
|
+
const J = U;
|
|
6303
|
+
return Array.isArray(J.lobby) ? (k[N] = J.lobby, k) : Array.isArray(J.items) ? (k[N] = J.items, k) : (k[N] = U, k);
|
|
6282
6304
|
}
|
|
6283
|
-
return
|
|
6305
|
+
return k[N] = [], k;
|
|
6284
6306
|
}, H = (r) => {
|
|
6285
|
-
var
|
|
6286
|
-
const p = !!((
|
|
6287
|
-
let
|
|
6288
|
-
const
|
|
6307
|
+
var N;
|
|
6308
|
+
const p = !!((N = r.apiUrl) != null && N.trim()), T = p ? b[r.id] : void 0;
|
|
6309
|
+
let A = r.props ? { ...r.props } : {};
|
|
6310
|
+
const k = W(r.manualScalarFields);
|
|
6289
6311
|
if (gt.includes(r.componentKey))
|
|
6290
|
-
return { items: T, ...
|
|
6291
|
-
if (
|
|
6292
|
-
|
|
6312
|
+
return { items: T, ...A, ...k };
|
|
6313
|
+
if (A = { ...A, ...k }, p)
|
|
6314
|
+
A = V(T, null, A);
|
|
6293
6315
|
else if (r.dataMode === "manual") {
|
|
6294
|
-
const
|
|
6295
|
-
if (
|
|
6316
|
+
const U = P(r.manualItems);
|
|
6317
|
+
if (A = V(
|
|
6296
6318
|
null,
|
|
6297
|
-
{ arr:
|
|
6298
|
-
|
|
6319
|
+
{ arr: U, variableName: r.variableName },
|
|
6320
|
+
A,
|
|
6299
6321
|
r.variableName
|
|
6300
6322
|
), r.variableName2 && r.manualItems2) {
|
|
6301
6323
|
const J = P(r.manualItems2), ne = (r.variableName2 || "items2").trim() || "items2";
|
|
6302
|
-
|
|
6324
|
+
A[ne] = J;
|
|
6303
6325
|
}
|
|
6304
6326
|
}
|
|
6305
|
-
return
|
|
6327
|
+
return A;
|
|
6306
6328
|
}, G = (r) => {
|
|
6307
6329
|
const p = r.props ? { ...r.props } : {};
|
|
6308
6330
|
try {
|
|
6309
6331
|
Object.assign(p, W(r.manualScalarFields));
|
|
6310
|
-
} catch (
|
|
6311
|
-
console.error("❌ Error armando scalars vacíos:", r,
|
|
6332
|
+
} catch (A) {
|
|
6333
|
+
console.error("❌ Error armando scalars vacíos:", r, A);
|
|
6312
6334
|
}
|
|
6313
6335
|
const T = (r.variableName || "items").trim() || "items";
|
|
6314
6336
|
if (typeof p[T] == "undefined" && (p[T] = []), r.variableName2) {
|
|
6315
|
-
const
|
|
6316
|
-
typeof p[
|
|
6337
|
+
const A = (r.variableName2 || "items2").trim() || "items2";
|
|
6338
|
+
typeof p[A] == "undefined" && (p[A] = []);
|
|
6317
6339
|
}
|
|
6318
6340
|
return p;
|
|
6319
6341
|
}, D = (r) => {
|
|
@@ -6321,14 +6343,14 @@ const gt = [
|
|
|
6321
6343
|
return H(r);
|
|
6322
6344
|
} catch (p) {
|
|
6323
6345
|
console.error("🔥 ERROR EN buildCompProps:", r, p);
|
|
6324
|
-
const T =
|
|
6346
|
+
const T = O(r);
|
|
6325
6347
|
if (T && T !== r)
|
|
6326
6348
|
try {
|
|
6327
6349
|
return console.warn(
|
|
6328
6350
|
`[landing] usando fallback local para sección ${r.title} (${r.componentKey})`
|
|
6329
6351
|
), H(T);
|
|
6330
|
-
} catch (
|
|
6331
|
-
console.error("🔥 ERROR EN fallback buildCompProps:", T,
|
|
6352
|
+
} catch (A) {
|
|
6353
|
+
console.error("🔥 ERROR EN fallback buildCompProps:", T, A);
|
|
6332
6354
|
}
|
|
6333
6355
|
return G(r);
|
|
6334
6356
|
}
|
|
@@ -6338,7 +6360,7 @@ const gt = [
|
|
|
6338
6360
|
component: "bg-yellow-100 text-yellow-800"
|
|
6339
6361
|
}[p]}`, children: T }, r), Y = (r) => {
|
|
6340
6362
|
var $e;
|
|
6341
|
-
const p = r.componentKey, T = Ho[p],
|
|
6363
|
+
const p = r.componentKey, T = Ho[p], k = (/* @__PURE__ */ new Set([
|
|
6342
6364
|
"OraculoSeccionBanners",
|
|
6343
6365
|
"OraculoSeccionBonoBienvenida",
|
|
6344
6366
|
"OraculoSeccionCasinoEnVivo",
|
|
@@ -6351,13 +6373,13 @@ const gt = [
|
|
|
6351
6373
|
"OraculoSeccionDestacados",
|
|
6352
6374
|
"OraculoSeccionCasino"
|
|
6353
6375
|
]
|
|
6354
|
-
])).has(r.componentKey),
|
|
6376
|
+
])).has(r.componentKey), N = _ ? 120 : 24, U = (_ ? 8 : 5) * 8, J = r.componentKey === "OraculoSeccionCasinoEnVivo", ne = {
|
|
6355
6377
|
width: "100%",
|
|
6356
6378
|
boxSizing: "border-box",
|
|
6357
|
-
...
|
|
6379
|
+
...k ? {} : { paddingLeft: N, paddingRight: N },
|
|
6358
6380
|
...J ? {
|
|
6359
|
-
marginTop: -
|
|
6360
|
-
marginBottom: -
|
|
6381
|
+
marginTop: -U,
|
|
6382
|
+
marginBottom: -U
|
|
6361
6383
|
} : {}
|
|
6362
6384
|
};
|
|
6363
6385
|
if (!T)
|
|
@@ -6376,7 +6398,7 @@ const gt = [
|
|
|
6376
6398
|
`Cargando datos desde ${r.apiUrl}...`
|
|
6377
6399
|
);
|
|
6378
6400
|
if (Se && !j) {
|
|
6379
|
-
const Me =
|
|
6401
|
+
const Me = O(r);
|
|
6380
6402
|
if (Me && Me.dataMode === "manual")
|
|
6381
6403
|
try {
|
|
6382
6404
|
const Ge = D(Me);
|
|
@@ -6410,7 +6432,7 @@ const gt = [
|
|
|
6410
6432
|
r.id
|
|
6411
6433
|
) });
|
|
6412
6434
|
};
|
|
6413
|
-
return
|
|
6435
|
+
return d && !e && g.length === 0 ? f ? /* @__PURE__ */ t(f, {}) : /* @__PURE__ */ t("div", { children: "Cargando..." }) : !d && !e && g.length === 0 ? /* @__PURE__ */ t("div", { className: "text-xs text-gray-500", children: "Sin secciones (Firestore)" }) : /* @__PURE__ */ t(At, { children: /* @__PURE__ */ t(Tt, { docId: a, moduleId: n, children: /* @__PURE__ */ t(
|
|
6414
6436
|
Bt,
|
|
6415
6437
|
{
|
|
6416
6438
|
className: "oli-font",
|
|
@@ -6457,7 +6479,7 @@ export {
|
|
|
6457
6479
|
nt as OraculoLiveCasinoCard,
|
|
6458
6480
|
Ye as OraculoLogoMediosPago,
|
|
6459
6481
|
mr as OraculoPageLandingPreview,
|
|
6460
|
-
|
|
6482
|
+
Uo as OraculoSeccionBanners,
|
|
6461
6483
|
lo as OraculoSeccionBonoBienvenida,
|
|
6462
6484
|
to as OraculoSeccionCasino,
|
|
6463
6485
|
Qn as OraculoSeccionCasinoEnVivo,
|
|
@@ -6466,7 +6488,7 @@ export {
|
|
|
6466
6488
|
ho as OraculoSeccionEventoCombinadas,
|
|
6467
6489
|
Oo as OraculoSeccionEventoEnVivo,
|
|
6468
6490
|
Lo as OraculoSeccionEventoSemana,
|
|
6469
|
-
|
|
6491
|
+
qo as OraculoSeccionMediosPago,
|
|
6470
6492
|
Fn as OraculoSeccionTopJuegos,
|
|
6471
6493
|
ro as OraculoSeccionVirtuales,
|
|
6472
6494
|
ur as OraculoSectionHost,
|