oraculo-ui 0.2.29 → 0.2.30
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 +4 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.es.js +328 -328
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -3,17 +3,17 @@ import { Link as it, Box as ee, useMediaQuery as De, IconButton as Ke, Typograph
|
|
|
3
3
|
import fe, { useState as X, useEffect as Q, useRef as V, forwardRef as Tt, useImperativeHandle as kt, useCallback as Ce, createContext as Nt, useContext as $t, useMemo as re, useLayoutEffect as Mt } from "react";
|
|
4
4
|
import j from "@mui/material/Skeleton";
|
|
5
5
|
import { Splide as Bt, SplideSlide as At } from "@splidejs/react-splide";
|
|
6
|
-
import
|
|
6
|
+
import P from "@mui/material/Box";
|
|
7
7
|
import ue from "@mui/material/Typography";
|
|
8
8
|
import H from "@mui/material/Stack";
|
|
9
9
|
import { useCaptureInteraction as ae } from "@olimpo/capture-client";
|
|
10
|
-
import { ChevronLeftRounded as Ae, ChevronRightRounded as
|
|
10
|
+
import { ChevronLeftRounded as Ae, ChevronRightRounded as Re } from "@mui/icons-material";
|
|
11
11
|
import xe from "@mui/material/useMediaQuery";
|
|
12
12
|
import lt from "@mui/icons-material/ChevronLeftRounded";
|
|
13
13
|
import ct from "@mui/icons-material/ChevronRightRounded";
|
|
14
|
-
import { useTheme as
|
|
15
|
-
import
|
|
16
|
-
import { onSnapshot as
|
|
14
|
+
import { useTheme as Rt, createTheme as Lt, ThemeProvider as Ft } from "@mui/material/styles";
|
|
15
|
+
import qt from "@mui/material/CssBaseline";
|
|
16
|
+
import { onSnapshot as zt, doc as Pt } from "firebase/firestore";
|
|
17
17
|
function Y({
|
|
18
18
|
children: e,
|
|
19
19
|
onClick: a,
|
|
@@ -32,19 +32,19 @@ function Y({
|
|
|
32
32
|
rightIcon: v,
|
|
33
33
|
iconOnly: S
|
|
34
34
|
}) {
|
|
35
|
-
const x = !!e && e !== !0, $ = (!!f ? 1 : 0) + (!!v ? 1 : 0) == 1,
|
|
35
|
+
const x = !!e && e !== !0, $ = (!!f ? 1 : 0) + (!!v ? 1 : 0) == 1, q = S != null ? S : $ && !x, _ = [
|
|
36
36
|
"orc-btn",
|
|
37
37
|
c === "secondary" ? "orc-btn--secondary" : c === "tertiary" ? "orc-btn--tertiary" : "orc-btn--primary",
|
|
38
38
|
p ? `orc-btn--${p}` : "",
|
|
39
39
|
h ? "orc-btn--full" : "",
|
|
40
40
|
u ? "orc-btn--fullHeight" : "",
|
|
41
|
-
|
|
41
|
+
q ? "orc-btn--iconOnly" : "",
|
|
42
42
|
m
|
|
43
43
|
].filter(Boolean).join(" "), N = /* @__PURE__ */ y(pe, { children: [
|
|
44
44
|
f && /* @__PURE__ */ t("span", { className: "orc-btn__icon", children: f }),
|
|
45
|
-
!
|
|
45
|
+
!q && /* @__PURE__ */ t("span", { className: "orc-btn__label", children: e }),
|
|
46
46
|
v && /* @__PURE__ */ t("span", { className: "orc-btn__icon", children: v })
|
|
47
|
-
] }),
|
|
47
|
+
] }), z = s ? !0 : void 0;
|
|
48
48
|
return n ? /* @__PURE__ */ t(
|
|
49
49
|
it,
|
|
50
50
|
{
|
|
@@ -52,10 +52,10 @@ function Y({
|
|
|
52
52
|
target: o,
|
|
53
53
|
rel: r,
|
|
54
54
|
"aria-label": d,
|
|
55
|
-
"aria-disabled":
|
|
56
|
-
tabIndex:
|
|
55
|
+
"aria-disabled": z,
|
|
56
|
+
tabIndex: z ? -1 : void 0,
|
|
57
57
|
className: _,
|
|
58
|
-
onClick:
|
|
58
|
+
onClick: z ? (D) => D.preventDefault() : a,
|
|
59
59
|
children: N
|
|
60
60
|
}
|
|
61
61
|
) : /* @__PURE__ */ t(
|
|
@@ -63,7 +63,7 @@ function Y({
|
|
|
63
63
|
{
|
|
64
64
|
type: i,
|
|
65
65
|
onClick: a,
|
|
66
|
-
disabled: !!
|
|
66
|
+
disabled: !!z,
|
|
67
67
|
"aria-label": d,
|
|
68
68
|
className: _,
|
|
69
69
|
children: N
|
|
@@ -178,7 +178,7 @@ function Ze({ src: e, alt: a }) {
|
|
|
178
178
|
}
|
|
179
179
|
);
|
|
180
180
|
}
|
|
181
|
-
const Dt = "oraculo__OraculoEventTitle-module__contenedor___rg1vw", Ut = "oraculo__OraculoEventTitle-module__flexGroup___jMLFO", Vt = "oraculo__OraculoEventTitle-module__subtitle___TmHna",
|
|
181
|
+
const Dt = "oraculo__OraculoEventTitle-module__contenedor___rg1vw", Ut = "oraculo__OraculoEventTitle-module__flexGroup___jMLFO", Vt = "oraculo__OraculoEventTitle-module__subtitle___TmHna", Fe = {
|
|
182
182
|
contenedor: Dt,
|
|
183
183
|
flexGroup: Ut,
|
|
184
184
|
subtitle: Vt
|
|
@@ -187,7 +187,7 @@ function Wt({ title: e, subtitle: a }) {
|
|
|
187
187
|
return /* @__PURE__ */ y(
|
|
188
188
|
"div",
|
|
189
189
|
{
|
|
190
|
-
className:
|
|
190
|
+
className: Fe.contenedor,
|
|
191
191
|
children: [
|
|
192
192
|
/* @__PURE__ */ t(
|
|
193
193
|
"span",
|
|
@@ -203,14 +203,14 @@ function Wt({ title: e, subtitle: a }) {
|
|
|
203
203
|
a && /* @__PURE__ */ y(
|
|
204
204
|
"div",
|
|
205
205
|
{
|
|
206
|
-
className:
|
|
206
|
+
className: Fe.flexGroup,
|
|
207
207
|
children: [
|
|
208
208
|
/* @__PURE__ */ y("svg", { width: "4", height: "4", viewBox: "0 0 5 5", xmlns: "http://www.w3.org/2000/svg", style: { flexShrink: 0 }, children: [
|
|
209
209
|
" ",
|
|
210
210
|
/* @__PURE__ */ t("circle", { cx: "2.5", cy: "2.5", r: "2.5", fill: "white" }),
|
|
211
211
|
" "
|
|
212
212
|
] }),
|
|
213
|
-
/* @__PURE__ */ t("span", { className:
|
|
213
|
+
/* @__PURE__ */ t("span", { className: Fe.subtitle, children: a }),
|
|
214
214
|
/* @__PURE__ */ t("div", {})
|
|
215
215
|
]
|
|
216
216
|
}
|
|
@@ -442,21 +442,21 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
|
|
|
442
442
|
}));
|
|
443
443
|
const C = (O) => {
|
|
444
444
|
var K;
|
|
445
|
-
const b = O.Components.Slides, E = O.Components.Controller,
|
|
445
|
+
const b = O.Components.Slides, E = O.Components.Controller, L = O.root.querySelector(".splide__track"), B = (K = L == null ? void 0 : L.clientWidth) != null ? K : 0, A = E.getIndex(), U = b.getLength();
|
|
446
446
|
let W = 0, G = A;
|
|
447
447
|
for (let w = A; w < U; w++) {
|
|
448
|
-
const
|
|
449
|
-
if (!
|
|
448
|
+
const R = b.getAt(w);
|
|
449
|
+
if (!R || (W += R.slide.offsetWidth, W > B)) break;
|
|
450
450
|
G = w;
|
|
451
451
|
}
|
|
452
452
|
return { visibleStart: A, visibleEnd: G };
|
|
453
453
|
}, $ = (O) => {
|
|
454
454
|
const b = O.root.querySelector(".splide__track"), E = O.root.querySelector(".splide__list");
|
|
455
455
|
return !b || !E ? !1 : E.scrollWidth > b.clientWidth + 1;
|
|
456
|
-
},
|
|
456
|
+
}, q = V(!1), _ = Ce((O) => {
|
|
457
457
|
var K, w;
|
|
458
|
-
if (
|
|
459
|
-
const E = O.Components.Slides.getLength(),
|
|
458
|
+
if (q.current) return;
|
|
459
|
+
const E = O.Components.Slides.getLength(), L = g.current;
|
|
460
460
|
if (g.current = "user", !$(O)) {
|
|
461
461
|
c == null || c({
|
|
462
462
|
index: 0,
|
|
@@ -465,7 +465,7 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
|
|
|
465
465
|
total: E,
|
|
466
466
|
visibleStart: 0,
|
|
467
467
|
visibleEnd: E - 1,
|
|
468
|
-
source:
|
|
468
|
+
source: L
|
|
469
469
|
});
|
|
470
470
|
return;
|
|
471
471
|
}
|
|
@@ -479,7 +479,7 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
|
|
|
479
479
|
total: E,
|
|
480
480
|
visibleStart: B,
|
|
481
481
|
visibleEnd: A,
|
|
482
|
-
source:
|
|
482
|
+
source: L
|
|
483
483
|
});
|
|
484
484
|
}, [c]);
|
|
485
485
|
fe.useEffect(() => {
|
|
@@ -488,11 +488,11 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
|
|
|
488
488
|
if (!O) return;
|
|
489
489
|
const b = v.current !== e.length;
|
|
490
490
|
v.current = e.length, b && requestAnimationFrame(() => {
|
|
491
|
-
|
|
491
|
+
q.current = !0;
|
|
492
492
|
try {
|
|
493
493
|
O.refresh();
|
|
494
494
|
} finally {
|
|
495
|
-
|
|
495
|
+
q.current = !1;
|
|
496
496
|
}
|
|
497
497
|
g.current = "resize", _(O);
|
|
498
498
|
});
|
|
@@ -501,15 +501,15 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
|
|
|
501
501
|
var b;
|
|
502
502
|
const O = (b = d.current) == null ? void 0 : b.splide;
|
|
503
503
|
if (O) {
|
|
504
|
-
|
|
504
|
+
q.current = !0;
|
|
505
505
|
try {
|
|
506
506
|
O.go(0, !1);
|
|
507
507
|
} finally {
|
|
508
|
-
|
|
508
|
+
q.current = !1;
|
|
509
509
|
}
|
|
510
510
|
g.current = "resize", _(O);
|
|
511
511
|
}
|
|
512
|
-
}, [_]),
|
|
512
|
+
}, [_]), z = Ce(
|
|
513
513
|
(O) => {
|
|
514
514
|
g.current = "mounted", _(O);
|
|
515
515
|
},
|
|
@@ -542,7 +542,7 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
|
|
|
542
542
|
ref: d,
|
|
543
543
|
options: D,
|
|
544
544
|
onMove: _,
|
|
545
|
-
onMounted:
|
|
545
|
+
onMounted: z,
|
|
546
546
|
onResize: N,
|
|
547
547
|
children: e.map((O, b) => {
|
|
548
548
|
var E;
|
|
@@ -616,7 +616,7 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
|
|
|
616
616
|
c.stopPropagation(), a == null || a();
|
|
617
617
|
}, s = o ? { width: "100%", height: "100%" } : { width: `${r.w}px`, height: `${r.h}px` };
|
|
618
618
|
return /* @__PURE__ */ y(
|
|
619
|
-
|
|
619
|
+
P,
|
|
620
620
|
{
|
|
621
621
|
onClick: a,
|
|
622
622
|
role: "button",
|
|
@@ -658,7 +658,7 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
|
|
|
658
658
|
}
|
|
659
659
|
),
|
|
660
660
|
/* @__PURE__ */ t(
|
|
661
|
-
|
|
661
|
+
P,
|
|
662
662
|
{
|
|
663
663
|
className: "oraculo-game-card-overlay",
|
|
664
664
|
sx: {
|
|
@@ -673,7 +673,7 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
|
|
|
673
673
|
}
|
|
674
674
|
),
|
|
675
675
|
/* @__PURE__ */ t(
|
|
676
|
-
|
|
676
|
+
P,
|
|
677
677
|
{
|
|
678
678
|
className: "oraculo-game-card-btn",
|
|
679
679
|
sx: {
|
|
@@ -705,17 +705,17 @@ function xa({
|
|
|
705
705
|
}) {
|
|
706
706
|
var m, d, f, v;
|
|
707
707
|
const i = (S, x) => {
|
|
708
|
-
var g, C, $,
|
|
708
|
+
var g, C, $, q;
|
|
709
709
|
return {
|
|
710
710
|
xs: (C = (g = r.xs) == null ? void 0 : g[S]) != null ? C : x,
|
|
711
|
-
md: (
|
|
711
|
+
md: (q = ($ = r.md) == null ? void 0 : $[S]) != null ? q : x
|
|
712
712
|
};
|
|
713
713
|
}, s = i("w", 186), c = i("h", 264), p = i("r", 22.6), h = i("font", 64), u = {
|
|
714
714
|
xs: Math.round(((d = (m = r.xs) == null ? void 0 : m.font) != null ? d : 64) * 0.28),
|
|
715
715
|
md: Math.round(((v = (f = r.md) == null ? void 0 : f.font) != null ? v : 64) * 0.28)
|
|
716
716
|
};
|
|
717
717
|
return /* @__PURE__ */ y(
|
|
718
|
-
|
|
718
|
+
P,
|
|
719
719
|
{
|
|
720
720
|
sx: {
|
|
721
721
|
position: "relative",
|
|
@@ -742,7 +742,7 @@ function xa({
|
|
|
742
742
|
},
|
|
743
743
|
children: [
|
|
744
744
|
/* @__PURE__ */ t(
|
|
745
|
-
|
|
745
|
+
P,
|
|
746
746
|
{
|
|
747
747
|
sx: {
|
|
748
748
|
position: "absolute",
|
|
@@ -776,7 +776,7 @@ function xa({
|
|
|
776
776
|
}
|
|
777
777
|
),
|
|
778
778
|
/* @__PURE__ */ t(
|
|
779
|
-
|
|
779
|
+
P,
|
|
780
780
|
{
|
|
781
781
|
component: "span",
|
|
782
782
|
sx: {
|
|
@@ -813,7 +813,7 @@ const wa = ({
|
|
|
813
813
|
}) => {
|
|
814
814
|
var i;
|
|
815
815
|
return /* @__PURE__ */ y(
|
|
816
|
-
|
|
816
|
+
P,
|
|
817
817
|
{
|
|
818
818
|
onClick: r,
|
|
819
819
|
sx: {
|
|
@@ -837,7 +837,7 @@ const wa = ({
|
|
|
837
837
|
},
|
|
838
838
|
children: [
|
|
839
839
|
/* @__PURE__ */ t(
|
|
840
|
-
|
|
840
|
+
P,
|
|
841
841
|
{
|
|
842
842
|
component: "img",
|
|
843
843
|
src: e,
|
|
@@ -853,7 +853,7 @@ const wa = ({
|
|
|
853
853
|
}
|
|
854
854
|
),
|
|
855
855
|
/* @__PURE__ */ t(
|
|
856
|
-
|
|
856
|
+
P,
|
|
857
857
|
{
|
|
858
858
|
className: "orc-live-provider-label",
|
|
859
859
|
sx: {
|
|
@@ -883,7 +883,7 @@ const wa = ({
|
|
|
883
883
|
]
|
|
884
884
|
}
|
|
885
885
|
);
|
|
886
|
-
},
|
|
886
|
+
}, qe = 12, ze = ({ r: e = 16 }) => /* @__PURE__ */ t(P, { sx: { width: "100%", height: "100%", borderRadius: e, overflow: "hidden" }, children: /* @__PURE__ */ t(
|
|
887
887
|
j,
|
|
888
888
|
{
|
|
889
889
|
variant: "rectangular",
|
|
@@ -909,7 +909,7 @@ const wa = ({
|
|
|
909
909
|
if (a === "mosaic") {
|
|
910
910
|
const c = e[0], p = e.slice(1, 5);
|
|
911
911
|
return /* @__PURE__ */ y(
|
|
912
|
-
|
|
912
|
+
P,
|
|
913
913
|
{
|
|
914
914
|
sx: {
|
|
915
915
|
display: "grid",
|
|
@@ -926,14 +926,14 @@ const wa = ({
|
|
|
926
926
|
xs: "104px",
|
|
927
927
|
md: "152px"
|
|
928
928
|
},
|
|
929
|
-
columnGap: `${
|
|
930
|
-
rowGap: `${
|
|
929
|
+
columnGap: `${qe}px`,
|
|
930
|
+
rowGap: `${qe}px`,
|
|
931
931
|
alignItems: "stretch",
|
|
932
932
|
justifyItems: "stretch"
|
|
933
933
|
},
|
|
934
934
|
children: [
|
|
935
935
|
/* @__PURE__ */ t(
|
|
936
|
-
|
|
936
|
+
P,
|
|
937
937
|
{
|
|
938
938
|
sx: {
|
|
939
939
|
width: { xs: 184, md: 280 },
|
|
@@ -942,7 +942,7 @@ const wa = ({
|
|
|
942
942
|
overflow: "hidden",
|
|
943
943
|
borderRadius: 2
|
|
944
944
|
},
|
|
945
|
-
children: o ? /* @__PURE__ */ t(
|
|
945
|
+
children: o ? /* @__PURE__ */ t(ze, {}) : c && /* @__PURE__ */ t(
|
|
946
946
|
Te,
|
|
947
947
|
{
|
|
948
948
|
imageUrl: `https://olimpo.bet${(s = (i = c.background) != null ? i : c.imageUrl) != null ? s : ""}`,
|
|
@@ -956,7 +956,7 @@ const wa = ({
|
|
|
956
956
|
(o ? Array.from({ length: 4 }) : p).map((h, u) => {
|
|
957
957
|
var m, d;
|
|
958
958
|
return /* @__PURE__ */ t(
|
|
959
|
-
|
|
959
|
+
P,
|
|
960
960
|
{
|
|
961
961
|
sx: {
|
|
962
962
|
width: { xs: 104, md: 152 },
|
|
@@ -964,7 +964,7 @@ const wa = ({
|
|
|
964
964
|
overflow: "hidden",
|
|
965
965
|
borderRadius: 2
|
|
966
966
|
},
|
|
967
|
-
children: o ? /* @__PURE__ */ t(
|
|
967
|
+
children: o ? /* @__PURE__ */ t(ze, {}) : /* @__PURE__ */ t(
|
|
968
968
|
Te,
|
|
969
969
|
{
|
|
970
970
|
imageUrl: `https://olimpo.bet${(d = (m = h.background) != null ? m : h.imageUrl) != null ? d : ""}`,
|
|
@@ -982,7 +982,7 @@ const wa = ({
|
|
|
982
982
|
);
|
|
983
983
|
}
|
|
984
984
|
return /* @__PURE__ */ t(
|
|
985
|
-
|
|
985
|
+
P,
|
|
986
986
|
{
|
|
987
987
|
sx: {
|
|
988
988
|
display: "grid",
|
|
@@ -994,16 +994,16 @@ const wa = ({
|
|
|
994
994
|
xs: "repeat(2, 112px)",
|
|
995
995
|
md: "repeat(2, 168px)"
|
|
996
996
|
},
|
|
997
|
-
gap: `${
|
|
997
|
+
gap: `${qe}px`,
|
|
998
998
|
gridAutoFlow: "column"
|
|
999
999
|
},
|
|
1000
1000
|
children: (o ? Array.from({ length: r }) : e).map((c, p) => {
|
|
1001
1001
|
var h, u, m;
|
|
1002
1002
|
return /* @__PURE__ */ t(
|
|
1003
|
-
|
|
1003
|
+
P,
|
|
1004
1004
|
{
|
|
1005
1005
|
sx: { overflow: "hidden", borderRadius: 2 },
|
|
1006
|
-
children: o ? /* @__PURE__ */ t(
|
|
1006
|
+
children: o ? /* @__PURE__ */ t(ze, {}) : /* @__PURE__ */ t(
|
|
1007
1007
|
Te,
|
|
1008
1008
|
{
|
|
1009
1009
|
imageUrl: `https://olimpo.bet${(u = (h = c.background) != null ? h : c.imageUrl) != null ? u : ""}`,
|
|
@@ -1031,7 +1031,7 @@ const wa = ({
|
|
|
1031
1031
|
}) => {
|
|
1032
1032
|
const h = a ? a.slice(0, 2) : "", u = a ? a.slice(2) : "", m = p === "large";
|
|
1033
1033
|
return /* @__PURE__ */ y(
|
|
1034
|
-
|
|
1034
|
+
P,
|
|
1035
1035
|
{
|
|
1036
1036
|
className: c,
|
|
1037
1037
|
sx: {
|
|
@@ -1045,7 +1045,7 @@ const wa = ({
|
|
|
1045
1045
|
},
|
|
1046
1046
|
children: [
|
|
1047
1047
|
i && /* @__PURE__ */ t(
|
|
1048
|
-
|
|
1048
|
+
P,
|
|
1049
1049
|
{
|
|
1050
1050
|
sx: {
|
|
1051
1051
|
position: "relative",
|
|
@@ -1058,7 +1058,7 @@ const wa = ({
|
|
|
1058
1058
|
overflow: "hidden"
|
|
1059
1059
|
},
|
|
1060
1060
|
children: /* @__PURE__ */ t(
|
|
1061
|
-
|
|
1061
|
+
P,
|
|
1062
1062
|
{
|
|
1063
1063
|
component: "img",
|
|
1064
1064
|
src: i,
|
|
@@ -1078,7 +1078,7 @@ const wa = ({
|
|
|
1078
1078
|
}
|
|
1079
1079
|
),
|
|
1080
1080
|
/* @__PURE__ */ t(
|
|
1081
|
-
|
|
1081
|
+
P,
|
|
1082
1082
|
{
|
|
1083
1083
|
sx: {
|
|
1084
1084
|
position: "absolute",
|
|
@@ -1092,7 +1092,7 @@ const wa = ({
|
|
|
1092
1092
|
pr: { xs: "14%", lg: "15%" }
|
|
1093
1093
|
},
|
|
1094
1094
|
children: /* @__PURE__ */ y(
|
|
1095
|
-
|
|
1095
|
+
P,
|
|
1096
1096
|
{
|
|
1097
1097
|
sx: {
|
|
1098
1098
|
maxWidth: "60%",
|
|
@@ -1113,7 +1113,7 @@ const wa = ({
|
|
|
1113
1113
|
}
|
|
1114
1114
|
),
|
|
1115
1115
|
a && /* @__PURE__ */ y(
|
|
1116
|
-
|
|
1116
|
+
P,
|
|
1117
1117
|
{
|
|
1118
1118
|
component: "p",
|
|
1119
1119
|
sx: {
|
|
@@ -1131,7 +1131,7 @@ const wa = ({
|
|
|
1131
1131
|
},
|
|
1132
1132
|
children: [
|
|
1133
1133
|
/* @__PURE__ */ t(
|
|
1134
|
-
|
|
1134
|
+
P,
|
|
1135
1135
|
{
|
|
1136
1136
|
component: "span",
|
|
1137
1137
|
sx: { fontSize: { xs: 35, md: 48 }, mr: 0.5 },
|
|
@@ -1139,7 +1139,7 @@ const wa = ({
|
|
|
1139
1139
|
}
|
|
1140
1140
|
),
|
|
1141
1141
|
/* @__PURE__ */ t(
|
|
1142
|
-
|
|
1142
|
+
P,
|
|
1143
1143
|
{
|
|
1144
1144
|
component: "span",
|
|
1145
1145
|
sx: { fontSize: { xs: 52, md: 77 } },
|
|
@@ -1234,7 +1234,7 @@ function Ba() {
|
|
|
1234
1234
|
function Aa() {
|
|
1235
1235
|
window.location.href = "/deportes#sports-hub/football";
|
|
1236
1236
|
}
|
|
1237
|
-
function
|
|
1237
|
+
function Ra() {
|
|
1238
1238
|
window.location.href = "/deportes#specials";
|
|
1239
1239
|
}
|
|
1240
1240
|
async function gt(e) {
|
|
@@ -1257,7 +1257,7 @@ const ht = Nt(void 0), bt = ({ children: e, docId: a, moduleId: n }) => {
|
|
|
1257
1257
|
throw new Error("useDocContext debe usarse dentro de DocIdProvider");
|
|
1258
1258
|
return e;
|
|
1259
1259
|
}, ne = () => vt().docId, le = () => vt().moduleId;
|
|
1260
|
-
function
|
|
1260
|
+
function La({ coupon: e }) {
|
|
1261
1261
|
var h;
|
|
1262
1262
|
const a = ae(), n = ne();
|
|
1263
1263
|
function o(u) {
|
|
@@ -1270,17 +1270,17 @@ function Ra({ coupon: e }) {
|
|
|
1270
1270
|
return d.forEach((S) => {
|
|
1271
1271
|
var $;
|
|
1272
1272
|
const x = ($ = S.betoffers) != null ? $ : [], g = S.homeName, C = S.awayName;
|
|
1273
|
-
x.forEach((
|
|
1274
|
-
var D, O, b, E,
|
|
1275
|
-
if (!((D =
|
|
1276
|
-
const _ =
|
|
1273
|
+
x.forEach((q) => {
|
|
1274
|
+
var D, O, b, E, L, B, A;
|
|
1275
|
+
if (!((D = q == null ? void 0 : q.outcomes) != null && D.length)) return;
|
|
1276
|
+
const _ = q.outcomes[0];
|
|
1277
1277
|
if (!_) return;
|
|
1278
1278
|
let N = "";
|
|
1279
|
-
const
|
|
1280
|
-
["Más de", "Mas de", "Over"].includes(_.label) ? (N = `Más de ${
|
|
1279
|
+
const z = _ != null && _.line ? _.line / 1e3 : "";
|
|
1280
|
+
["Más de", "Mas de", "Over"].includes(_.label) ? (N = `Más de ${z}`, _.participant && (N = `${_.participant} - ${N}`)) : ["Menos de", "Menos", "Under"].includes(_.label) ? (N = `Menos de ${z}`, _.participant && (N = `${_.participant} - ${N}`)) : ["Sí", "No"].includes(_.label) ? (N = _.label, _.participant && (N = `${_.participant} - ${N}`)) : ["1X", "12", "X2"].includes(_.label) ? (_.label === "1X" && (N = `${g} o Empate`), _.label === "12" && (N = `${g} o ${C}`), _.label === "X2" && (N = `${C} o Empate`)) : (N = (b = (O = _.participant) != null ? O : _.label) != null ? b : "", z !== "" && N === _.label && (N = `${_.label} ${z}`)), m.push({
|
|
1281
1281
|
id: _.id,
|
|
1282
1282
|
value: N,
|
|
1283
|
-
label: (
|
|
1283
|
+
label: (L = (E = q.criterion) == null ? void 0 : E.label) != null ? L : "",
|
|
1284
1284
|
odds: (B = _.odds) != null ? B : 0,
|
|
1285
1285
|
position: (A = _.position) != null ? A : 0,
|
|
1286
1286
|
eventId: S.id
|
|
@@ -1416,7 +1416,7 @@ const de = {
|
|
|
1416
1416
|
"orc-btn--full": "oraculo__OraculoButtonBet-module__orc-btn--full___z-Myo",
|
|
1417
1417
|
"orc-btn--fullHeight": "oraculo__OraculoButtonBet-module__orc-btn--fullHeight___pCxq1"
|
|
1418
1418
|
};
|
|
1419
|
-
function
|
|
1419
|
+
function Fa({
|
|
1420
1420
|
children: e,
|
|
1421
1421
|
onClick: a,
|
|
1422
1422
|
href: n,
|
|
@@ -1434,7 +1434,7 @@ function Pa({
|
|
|
1434
1434
|
rightIcon: v,
|
|
1435
1435
|
iconOnly: S
|
|
1436
1436
|
}) {
|
|
1437
|
-
const x = !!e && e !== !0, $ = (!!f ? 1 : 0) + (!!v ? 1 : 0) == 1,
|
|
1437
|
+
const x = !!e && e !== !0, $ = (!!f ? 1 : 0) + (!!v ? 1 : 0) == 1, q = S != null ? S : $ && !x, _ = [
|
|
1438
1438
|
de["orc-btn"],
|
|
1439
1439
|
// base
|
|
1440
1440
|
de[`orc-btn--${c}`],
|
|
@@ -1443,13 +1443,13 @@ function Pa({
|
|
|
1443
1443
|
// sm / md / lg
|
|
1444
1444
|
h ? de["orc-btn--full"] : "",
|
|
1445
1445
|
u ? de["orc-btn--fullHeight"] : "",
|
|
1446
|
-
|
|
1446
|
+
q ? de["orc-btn--iconOnly"] : "",
|
|
1447
1447
|
m
|
|
1448
1448
|
].filter(Boolean).join(" "), N = /* @__PURE__ */ y(pe, { children: [
|
|
1449
1449
|
f && /* @__PURE__ */ t("span", { className: de["orc-btn__icon"], children: f }),
|
|
1450
|
-
!
|
|
1450
|
+
!q && /* @__PURE__ */ t("span", { className: de["orc-btn__label"], children: e }),
|
|
1451
1451
|
v && /* @__PURE__ */ t("span", { className: de["orc-btn__icon"], children: v })
|
|
1452
|
-
] }),
|
|
1452
|
+
] }), z = s ? !0 : void 0;
|
|
1453
1453
|
return n ? /* @__PURE__ */ t(
|
|
1454
1454
|
it,
|
|
1455
1455
|
{
|
|
@@ -1457,10 +1457,10 @@ function Pa({
|
|
|
1457
1457
|
target: o,
|
|
1458
1458
|
rel: r,
|
|
1459
1459
|
"aria-label": d,
|
|
1460
|
-
"aria-disabled":
|
|
1461
|
-
tabIndex:
|
|
1460
|
+
"aria-disabled": z,
|
|
1461
|
+
tabIndex: z ? -1 : void 0,
|
|
1462
1462
|
className: _,
|
|
1463
|
-
onClick:
|
|
1463
|
+
onClick: z ? (D) => D.preventDefault() : a,
|
|
1464
1464
|
children: N
|
|
1465
1465
|
}
|
|
1466
1466
|
) : /* @__PURE__ */ t(
|
|
@@ -1468,17 +1468,17 @@ function Pa({
|
|
|
1468
1468
|
{
|
|
1469
1469
|
type: i,
|
|
1470
1470
|
onClick: a,
|
|
1471
|
-
disabled: !!
|
|
1471
|
+
disabled: !!z,
|
|
1472
1472
|
"aria-label": d,
|
|
1473
1473
|
className: _,
|
|
1474
1474
|
children: N
|
|
1475
1475
|
}
|
|
1476
1476
|
);
|
|
1477
1477
|
}
|
|
1478
|
-
const
|
|
1479
|
-
cardWrapper:
|
|
1480
|
-
customButtonLabel:
|
|
1481
|
-
customButtonDisabled:
|
|
1478
|
+
const qa = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", za = "oraculo__OraculoEventEnVivoCard-module__customButtonLabel___QRhk7", Pa = "oraculo__OraculoEventEnVivoCard-module__customButtonDisabled___jwioF", ke = {
|
|
1479
|
+
cardWrapper: qa,
|
|
1480
|
+
customButtonLabel: za,
|
|
1481
|
+
customButtonDisabled: Pa
|
|
1482
1482
|
}, Xe = {
|
|
1483
1483
|
base: "FFFFFF",
|
|
1484
1484
|
sleeve: "FFFFFF",
|
|
@@ -1540,7 +1540,7 @@ function Da({ event: e, liveData: a, betOffers: n, jersey: o }) {
|
|
|
1540
1540
|
] }),
|
|
1541
1541
|
/* @__PURE__ */ y(H, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1542
1542
|
/* @__PURE__ */ t(me, { spacing: 1, children: ((x = r == null ? void 0 : r.outcomes) != null ? x : s).map((C, $) => /* @__PURE__ */ t(ut, { text: C.label.toUpperCase() }, $)) }),
|
|
1543
|
-
/* @__PURE__ */ t(me, { spacing: 2, children: ((g = r == null ? void 0 : r.outcomes) != null ? g : s).map((C, $) => /* @__PURE__ */ t(
|
|
1543
|
+
/* @__PURE__ */ t(me, { spacing: 2, children: ((g = r == null ? void 0 : r.outcomes) != null ? g : s).map((C, $) => /* @__PURE__ */ t(Fa, { variant: "primary", disabled: C.odds == null || (r == null ? void 0 : r.cashOutStatus) == "SUSPENDED", onClick: () => {
|
|
1544
1544
|
Ue("/deportes#event/live/" + e.id, C.id);
|
|
1545
1545
|
}, className: ke.customButtonDisabled, children: /* @__PURE__ */ t("span", { className: ke.customButtonLabel, children: C.odds === void 0 ? "" : (C.odds / 1e3).toFixed(2) }) }, $)) })
|
|
1546
1546
|
] })
|
|
@@ -1608,7 +1608,7 @@ function Ja({
|
|
|
1608
1608
|
className: r = "",
|
|
1609
1609
|
paddingMobile: i = "16px"
|
|
1610
1610
|
}) {
|
|
1611
|
-
var
|
|
1611
|
+
var q;
|
|
1612
1612
|
const s = V(null), [c, p] = X({ isStart: !0, isEnd: !1 }), h = ae(), u = ne(), m = le(), d = !e || e.length === 0, f = () => {
|
|
1613
1613
|
var _;
|
|
1614
1614
|
h({
|
|
@@ -1649,11 +1649,11 @@ function Ja({
|
|
|
1649
1649
|
}), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/promociones");
|
|
1650
1650
|
}, x = (_) => {
|
|
1651
1651
|
if (!_) return;
|
|
1652
|
-
const
|
|
1652
|
+
const z = `https://www.olimpo.bet/promociones/${encodeURIComponent(_)}`;
|
|
1653
1653
|
h({
|
|
1654
1654
|
element: "destacados_card",
|
|
1655
1655
|
label: `${u} - OraculoSeccionDestacados - Click: ${String(_)}`,
|
|
1656
|
-
target:
|
|
1656
|
+
target: z,
|
|
1657
1657
|
event_type: "click",
|
|
1658
1658
|
module_id: m,
|
|
1659
1659
|
metadata: {
|
|
@@ -1663,8 +1663,8 @@ function Ja({
|
|
|
1663
1663
|
section: "OraculoSeccionDestacados",
|
|
1664
1664
|
promotion: String(_)
|
|
1665
1665
|
}
|
|
1666
|
-
}), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(
|
|
1667
|
-
}, g = r || void 0, C = xe("(max-width:950px)"), $ = (
|
|
1666
|
+
}), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(z);
|
|
1667
|
+
}, g = r || void 0, C = xe("(max-width:950px)"), $ = (q = e == null ? void 0 : e.length) != null ? q : 0;
|
|
1668
1668
|
return Q(() => {
|
|
1669
1669
|
if ($ === 0) {
|
|
1670
1670
|
p({ isStart: !0, isEnd: !0 });
|
|
@@ -1705,7 +1705,7 @@ function Ja({
|
|
|
1705
1705
|
ariaLabel: "Siguiente",
|
|
1706
1706
|
variant: "secondary",
|
|
1707
1707
|
iconOnly: !0,
|
|
1708
|
-
rightIcon: /* @__PURE__ */ t(
|
|
1708
|
+
rightIcon: /* @__PURE__ */ t(Re, {}),
|
|
1709
1709
|
onClick: v,
|
|
1710
1710
|
disabled: c.isEnd || d
|
|
1711
1711
|
}
|
|
@@ -1754,8 +1754,8 @@ function Ja({
|
|
|
1754
1754
|
},
|
|
1755
1755
|
`${_.title}-${_.image}`
|
|
1756
1756
|
),
|
|
1757
|
-
onMove: ({ isStart: _, isEnd: N, source:
|
|
1758
|
-
p({ isStart: _, isEnd: N }),
|
|
1757
|
+
onMove: ({ isStart: _, isEnd: N, source: z }) => {
|
|
1758
|
+
p({ isStart: _, isEnd: N }), z === "user" && h({
|
|
1759
1759
|
element: "destacados_carousel_slide",
|
|
1760
1760
|
label: `${u} - OraculoSeccionDestacados - Slide Carousel`,
|
|
1761
1761
|
target: "carousel",
|
|
@@ -1827,7 +1827,7 @@ function Qa({
|
|
|
1827
1827
|
return /* @__PURE__ */ t("section", { style: { width: "100%" }, children: /* @__PURE__ */ y(H, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
1828
1828
|
/* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
|
|
1829
1829
|
/* @__PURE__ */ t(
|
|
1830
|
-
|
|
1830
|
+
P,
|
|
1831
1831
|
{
|
|
1832
1832
|
sx: {
|
|
1833
1833
|
display: "grid",
|
|
@@ -1932,8 +1932,8 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1932
1932
|
const $ = await fetch(`https://api.mktolimpo.com/api/machine/${g}`);
|
|
1933
1933
|
if (!$.ok)
|
|
1934
1934
|
throw new Error(`No se pudo obtener machine ${g}`);
|
|
1935
|
-
const
|
|
1936
|
-
return tn(
|
|
1935
|
+
const q = await $.json();
|
|
1936
|
+
return tn(q, C);
|
|
1937
1937
|
})
|
|
1938
1938
|
);
|
|
1939
1939
|
if (c) return;
|
|
@@ -1943,8 +1943,8 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1943
1943
|
const C = S.find(($) => $.machine === g.itemId);
|
|
1944
1944
|
return C ? { ...C, score: g.score } : null;
|
|
1945
1945
|
}).filter(Boolean).sort((g, C) => {
|
|
1946
|
-
var $,
|
|
1947
|
-
return (($ = C.score) != null ? $ : 0) - ((
|
|
1946
|
+
var $, q;
|
|
1947
|
+
return (($ = C.score) != null ? $ : 0) - ((q = g.score) != null ? q : 0);
|
|
1948
1948
|
});
|
|
1949
1949
|
r(x);
|
|
1950
1950
|
} catch (h) {
|
|
@@ -2031,7 +2031,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2031
2031
|
}), typeof globalThis != "undefined" && globalThis.location && (s ? s() : globalThis.location.assign("https://www.olimpo.bet/casino-en-vivo"));
|
|
2032
2032
|
};
|
|
2033
2033
|
return /* @__PURE__ */ y(
|
|
2034
|
-
|
|
2034
|
+
P,
|
|
2035
2035
|
{
|
|
2036
2036
|
className: c,
|
|
2037
2037
|
sx: {
|
|
@@ -2041,7 +2041,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2041
2041
|
},
|
|
2042
2042
|
children: [
|
|
2043
2043
|
/* @__PURE__ */ t(
|
|
2044
|
-
|
|
2044
|
+
P,
|
|
2045
2045
|
{
|
|
2046
2046
|
sx: {
|
|
2047
2047
|
position: "absolute",
|
|
@@ -2069,7 +2069,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2069
2069
|
}
|
|
2070
2070
|
),
|
|
2071
2071
|
/* @__PURE__ */ y(
|
|
2072
|
-
|
|
2072
|
+
P,
|
|
2073
2073
|
{
|
|
2074
2074
|
sx: {
|
|
2075
2075
|
position: "relative",
|
|
@@ -2112,7 +2112,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2112
2112
|
children: n
|
|
2113
2113
|
}
|
|
2114
2114
|
),
|
|
2115
|
-
/* @__PURE__ */ t(
|
|
2115
|
+
/* @__PURE__ */ t(P, { sx: { display: { xs: "none", md: "block" } }, children: /* @__PURE__ */ t(
|
|
2116
2116
|
Y,
|
|
2117
2117
|
{
|
|
2118
2118
|
variant: "primary",
|
|
@@ -2123,7 +2123,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2123
2123
|
) })
|
|
2124
2124
|
] }),
|
|
2125
2125
|
/* @__PURE__ */ t(
|
|
2126
|
-
|
|
2126
|
+
P,
|
|
2127
2127
|
{
|
|
2128
2128
|
sx: {
|
|
2129
2129
|
display: "flex",
|
|
@@ -2149,7 +2149,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2149
2149
|
})
|
|
2150
2150
|
}
|
|
2151
2151
|
),
|
|
2152
|
-
/* @__PURE__ */ t(
|
|
2152
|
+
/* @__PURE__ */ t(P, { sx: { display: { xs: "block", md: "none" } }, children: /* @__PURE__ */ t(
|
|
2153
2153
|
Y,
|
|
2154
2154
|
{
|
|
2155
2155
|
variant: "primary",
|
|
@@ -2245,7 +2245,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2245
2245
|
},
|
|
2246
2246
|
tags: { section: "OraculoSeccionCasino" }
|
|
2247
2247
|
}), (O = m.current) == null || O.next();
|
|
2248
|
-
},
|
|
2248
|
+
}, q = () => {
|
|
2249
2249
|
if (p({
|
|
2250
2250
|
element: "casino_view_more",
|
|
2251
2251
|
label: `${h} - OraculoSeccionCasino ${c ? " - personalize" : ""} - Ver más`,
|
|
@@ -2265,12 +2265,12 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2265
2265
|
const E = (B) => Array.from({ length: B }, (A, U) => ({
|
|
2266
2266
|
id: `sk-${B}-${U}`,
|
|
2267
2267
|
imageUrl: ""
|
|
2268
|
-
})),
|
|
2269
|
-
return O &&
|
|
2270
|
-
}, N = v ? x : !Array.isArray(e) || e.length === 0,
|
|
2268
|
+
})), L = [];
|
|
2269
|
+
return O && L.push({ id: "mosaic-loading", kind: "mosaic", items: E(5) }), L.push({ id: "grid-loading", kind: "grid", items: E(b) }), L;
|
|
2270
|
+
}, N = v ? x : !Array.isArray(e) || e.length === 0, z = De("(max-width:950px)"), D = N ? _(i, s) : pn(g, i, s);
|
|
2271
2271
|
return /* @__PURE__ */ t("section", { children: /* @__PURE__ */ y(H, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
2272
2272
|
/* @__PURE__ */ y(
|
|
2273
|
-
|
|
2273
|
+
P,
|
|
2274
2274
|
{
|
|
2275
2275
|
sx: {
|
|
2276
2276
|
display: "grid",
|
|
@@ -2285,7 +2285,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2285
2285
|
},
|
|
2286
2286
|
children: [
|
|
2287
2287
|
/* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
|
|
2288
|
-
/* @__PURE__ */ y(
|
|
2288
|
+
/* @__PURE__ */ y(P, { sx: { display: "flex", gap: 1, justifyContent: "flex-end" }, children: [
|
|
2289
2289
|
/* @__PURE__ */ t(
|
|
2290
2290
|
Y,
|
|
2291
2291
|
{
|
|
@@ -2309,7 +2309,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2309
2309
|
}
|
|
2310
2310
|
)
|
|
2311
2311
|
] }),
|
|
2312
|
-
/* @__PURE__ */ t(
|
|
2312
|
+
/* @__PURE__ */ t(P, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(Y, { variant: "secondary", onClick: q, children: "Ver más" }) })
|
|
2313
2313
|
]
|
|
2314
2314
|
}
|
|
2315
2315
|
),
|
|
@@ -2322,7 +2322,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2322
2322
|
gap: "16px",
|
|
2323
2323
|
enableHorizontalWheel: !0,
|
|
2324
2324
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
2325
|
-
showRightGradient: !
|
|
2325
|
+
showRightGradient: !z,
|
|
2326
2326
|
breakpoints: {
|
|
2327
2327
|
400: {
|
|
2328
2328
|
gap: "4px",
|
|
@@ -2366,8 +2366,8 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2366
2366
|
section: a || "Casino"
|
|
2367
2367
|
}
|
|
2368
2368
|
});
|
|
2369
|
-
const
|
|
2370
|
-
|
|
2369
|
+
const L = se("showIframe"), B = se("loadMachine");
|
|
2370
|
+
L == null || L(), B == null || B(E, !1, "CASINO");
|
|
2371
2371
|
}
|
|
2372
2372
|
}
|
|
2373
2373
|
) }),
|
|
@@ -2470,7 +2470,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2470
2470
|
},
|
|
2471
2471
|
tags: { section: "OraculoSeccionVirtuales" }
|
|
2472
2472
|
}), (D = p.current) == null || D.next();
|
|
2473
|
-
},
|
|
2473
|
+
}, q = () => {
|
|
2474
2474
|
if (m({
|
|
2475
2475
|
element: "virtuales_view_more",
|
|
2476
2476
|
label: `${d} - OraculoSeccionVirtuales${v ? " - personalize" : ""} - Ver más`,
|
|
@@ -2486,10 +2486,10 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2486
2486
|
return;
|
|
2487
2487
|
}
|
|
2488
2488
|
typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/juegos-virtuales");
|
|
2489
|
-
}, _ = v ? x : !Array.isArray(e) || e.length === 0, N = xe("(max-width:950px)"),
|
|
2489
|
+
}, _ = v ? x : !Array.isArray(e) || e.length === 0, N = xe("(max-width:950px)"), z = _ ? bn(i, s) : hn(g, i, s);
|
|
2490
2490
|
return /* @__PURE__ */ t("section", { children: /* @__PURE__ */ y(H, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
2491
2491
|
/* @__PURE__ */ y(
|
|
2492
|
-
|
|
2492
|
+
P,
|
|
2493
2493
|
{
|
|
2494
2494
|
sx: {
|
|
2495
2495
|
display: "grid",
|
|
@@ -2504,7 +2504,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2504
2504
|
},
|
|
2505
2505
|
children: [
|
|
2506
2506
|
/* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
|
|
2507
|
-
/* @__PURE__ */ y(
|
|
2507
|
+
/* @__PURE__ */ y(P, { sx: { display: "flex", gap: 1, justifyContent: "flex-end" }, children: [
|
|
2508
2508
|
/* @__PURE__ */ t(
|
|
2509
2509
|
Y,
|
|
2510
2510
|
{
|
|
@@ -2528,7 +2528,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2528
2528
|
}
|
|
2529
2529
|
)
|
|
2530
2530
|
] }),
|
|
2531
|
-
/* @__PURE__ */ t(
|
|
2531
|
+
/* @__PURE__ */ t(P, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(Y, { variant: "secondary", onClick: q, children: "Ver más" }) })
|
|
2532
2532
|
]
|
|
2533
2533
|
}
|
|
2534
2534
|
),
|
|
@@ -2536,7 +2536,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2536
2536
|
he,
|
|
2537
2537
|
{
|
|
2538
2538
|
ref: p,
|
|
2539
|
-
items:
|
|
2539
|
+
items: z,
|
|
2540
2540
|
perPage: void 0,
|
|
2541
2541
|
gap: "16px",
|
|
2542
2542
|
breakpoints: {
|
|
@@ -2591,8 +2591,8 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2591
2591
|
section: a || "Virtuales"
|
|
2592
2592
|
}
|
|
2593
2593
|
});
|
|
2594
|
-
const E = se("showIframe"),
|
|
2595
|
-
E == null || E(),
|
|
2594
|
+
const E = se("showIframe"), L = se("loadMachine");
|
|
2595
|
+
E == null || E(), L == null || L(
|
|
2596
2596
|
b,
|
|
2597
2597
|
!1,
|
|
2598
2598
|
v ? "VIRTUALES_PERSONALIZE" : "VIRTUALES"
|
|
@@ -2653,13 +2653,13 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2653
2653
|
Q(() => {
|
|
2654
2654
|
x.current = v;
|
|
2655
2655
|
}, [v]);
|
|
2656
|
-
const g = V(!1), C = V(null), $ = n == null ? void 0 : n[d],
|
|
2656
|
+
const g = V(!1), C = V(null), $ = n == null ? void 0 : n[d], q = re(
|
|
2657
2657
|
() => {
|
|
2658
2658
|
var b, E;
|
|
2659
2659
|
return (E = (b = $ == null ? void 0 : $.backgroundImageUrl) != null ? b : o) != null ? E : "";
|
|
2660
2660
|
},
|
|
2661
2661
|
[$, o]
|
|
2662
|
-
), _ = _n(
|
|
2662
|
+
), _ = _n(q), N = !n || n.length === 0, z = (b, E) => {
|
|
2663
2663
|
r({
|
|
2664
2664
|
element: "welcome_banner_button",
|
|
2665
2665
|
label: `OraculoSeccionBonoBienvenida - Banner button click: ${b.title || "OraculoSeccionBonoBienvenida - Banner " + (E + 1)}`,
|
|
@@ -2704,7 +2704,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2704
2704
|
Q(() => {
|
|
2705
2705
|
const b = h.current;
|
|
2706
2706
|
if (!b) return;
|
|
2707
|
-
const E = 6,
|
|
2707
|
+
const E = 6, L = 380, B = (A) => {
|
|
2708
2708
|
var K, w;
|
|
2709
2709
|
if (N || A.ctrlKey || g.current) return;
|
|
2710
2710
|
const U = A.deltaX, W = A.deltaY;
|
|
@@ -2712,17 +2712,17 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2712
2712
|
const G = U > 0;
|
|
2713
2713
|
G && x.current.isEnd || !G && x.current.isStart || (A.preventDefault(), g.current = !0, G ? (K = p.current) == null || K.next() : (w = p.current) == null || w.prev(), C.current && window.clearTimeout(C.current), C.current = window.setTimeout(() => {
|
|
2714
2714
|
g.current = !1;
|
|
2715
|
-
},
|
|
2715
|
+
}, L));
|
|
2716
2716
|
};
|
|
2717
2717
|
return b.addEventListener("wheel", B, { passive: !1 }), () => {
|
|
2718
2718
|
b.removeEventListener("wheel", B), C.current && window.clearTimeout(C.current);
|
|
2719
2719
|
};
|
|
2720
2720
|
}, [N]);
|
|
2721
|
-
const O = (b, E,
|
|
2721
|
+
const O = (b, E, L) => {
|
|
2722
2722
|
var U, W;
|
|
2723
2723
|
const B = (U = b.headline) != null ? U : e, A = (W = b.headline2) != null ? W : a;
|
|
2724
2724
|
return E ? /* @__PURE__ */ y(
|
|
2725
|
-
|
|
2725
|
+
P,
|
|
2726
2726
|
{
|
|
2727
2727
|
sx: {
|
|
2728
2728
|
maxWidth: 1200,
|
|
@@ -2735,7 +2735,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2735
2735
|
},
|
|
2736
2736
|
children: [
|
|
2737
2737
|
(B || A) && /* @__PURE__ */ t(
|
|
2738
|
-
|
|
2738
|
+
P,
|
|
2739
2739
|
{
|
|
2740
2740
|
sx: {
|
|
2741
2741
|
display: "flex",
|
|
@@ -2743,7 +2743,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2743
2743
|
justifyContent: "flex-start",
|
|
2744
2744
|
minHeight: "100%"
|
|
2745
2745
|
},
|
|
2746
|
-
children: /* @__PURE__ */ y(
|
|
2746
|
+
children: /* @__PURE__ */ y(P, { sx: { ...Qe, textAlign: "left", mb: 0 }, children: [
|
|
2747
2747
|
B && /* @__PURE__ */ t(ue, { component: "span", sx: et, children: B }),
|
|
2748
2748
|
A && /* @__PURE__ */ y(pe, { children: [
|
|
2749
2749
|
/* @__PURE__ */ t("br", {}),
|
|
@@ -2752,35 +2752,35 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2752
2752
|
] })
|
|
2753
2753
|
}
|
|
2754
2754
|
),
|
|
2755
|
-
/* @__PURE__ */ t(
|
|
2755
|
+
/* @__PURE__ */ t(P, { sx: { display: "flex", justifyContent: "center", alignItems: "center" }, children: /* @__PURE__ */ t(P, { sx: { width: "100%", maxWidth: 600, mx: "auto" }, children: /* @__PURE__ */ t(
|
|
2756
2756
|
Je,
|
|
2757
2757
|
{
|
|
2758
2758
|
...b,
|
|
2759
|
-
onButtonClick: () =>
|
|
2759
|
+
onButtonClick: () => z(b, L),
|
|
2760
2760
|
variant: "large"
|
|
2761
2761
|
}
|
|
2762
2762
|
) }) })
|
|
2763
2763
|
]
|
|
2764
2764
|
}
|
|
2765
|
-
) : /* @__PURE__ */ y(
|
|
2766
|
-
(B || A) && /* @__PURE__ */ y(
|
|
2765
|
+
) : /* @__PURE__ */ y(P, { sx: { textAlign: "center" }, children: [
|
|
2766
|
+
(B || A) && /* @__PURE__ */ y(P, { sx: Qe, children: [
|
|
2767
2767
|
B && /* @__PURE__ */ t(ue, { component: "span", sx: et, children: B }),
|
|
2768
2768
|
A && /* @__PURE__ */ y(pe, { children: [
|
|
2769
2769
|
/* @__PURE__ */ t("br", {}),
|
|
2770
2770
|
/* @__PURE__ */ t(ue, { component: "span", sx: tt, children: A })
|
|
2771
2771
|
] })
|
|
2772
2772
|
] }),
|
|
2773
|
-
/* @__PURE__ */ t(
|
|
2773
|
+
/* @__PURE__ */ t(P, { sx: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(
|
|
2774
2774
|
Je,
|
|
2775
2775
|
{
|
|
2776
2776
|
...b,
|
|
2777
|
-
onButtonClick: () =>
|
|
2777
|
+
onButtonClick: () => z(b, L),
|
|
2778
2778
|
variant: "small"
|
|
2779
2779
|
}
|
|
2780
2780
|
) })
|
|
2781
2781
|
] });
|
|
2782
2782
|
};
|
|
2783
|
-
return /* @__PURE__ */ y(
|
|
2783
|
+
return /* @__PURE__ */ y(P, { component: "section", sx: _, children: [
|
|
2784
2784
|
/* @__PURE__ */ t("div", { ref: h, style: { width: "100%" }, children: /* @__PURE__ */ t(
|
|
2785
2785
|
he,
|
|
2786
2786
|
{
|
|
@@ -2798,13 +2798,13 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2798
2798
|
// arrows: false,
|
|
2799
2799
|
// drag: true,
|
|
2800
2800
|
},
|
|
2801
|
-
renderItem: (b, E) => /* @__PURE__ */ t(
|
|
2802
|
-
onMove: ({ index: b, isStart: E, isEnd:
|
|
2803
|
-
f(b), typeof E == "boolean" && typeof
|
|
2801
|
+
renderItem: (b, E) => /* @__PURE__ */ t(P, { sx: { width: "100%" }, children: O(b, !s, E) }),
|
|
2802
|
+
onMove: ({ index: b, isStart: E, isEnd: L, source: B }) => {
|
|
2803
|
+
f(b), typeof E == "boolean" && typeof L == "boolean" && S({ isStart: E, isEnd: L }), B === "user" && D(b);
|
|
2804
2804
|
}
|
|
2805
2805
|
}
|
|
2806
2806
|
) }),
|
|
2807
|
-
c && /* @__PURE__ */ t(
|
|
2807
|
+
c && /* @__PURE__ */ t(P, { sx: { mt: 2, display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(
|
|
2808
2808
|
dt,
|
|
2809
2809
|
{
|
|
2810
2810
|
total: n.length,
|
|
@@ -2961,11 +2961,11 @@ function On(e) {
|
|
|
2961
2961
|
}
|
|
2962
2962
|
return Math.floor(a * 100) / 100;
|
|
2963
2963
|
}
|
|
2964
|
-
const Cn = fe.memo(
|
|
2964
|
+
const Cn = fe.memo(La);
|
|
2965
2965
|
function Tn({
|
|
2966
2966
|
items: e,
|
|
2967
2967
|
title: a = "Combinadas del Olimpo",
|
|
2968
|
-
iconUrl: n = "https://
|
|
2968
|
+
iconUrl: n = "https://d28gilnhu2bcbp.cloudfront.net/landing/rayoIcon.svg",
|
|
2969
2969
|
onViewMore: o,
|
|
2970
2970
|
className: r = ""
|
|
2971
2971
|
}) {
|
|
@@ -3003,17 +3003,17 @@ function Tn({
|
|
|
3003
3003
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
3004
3004
|
},
|
|
3005
3005
|
tags: { section: "OraculoSeccionEventoCombinadas" }
|
|
3006
|
-
}),
|
|
3006
|
+
}), Ra();
|
|
3007
3007
|
}, g = re(() => m.filter((_) => _.combinadoTotal !== null), [m]);
|
|
3008
3008
|
async function C() {
|
|
3009
|
-
var _, N,
|
|
3009
|
+
var _, N, z, D;
|
|
3010
3010
|
try {
|
|
3011
|
-
const b = await (await fetch(f)).json(), E = (D = (
|
|
3011
|
+
const b = await (await fetch(f)).json(), E = (D = (z = (N = (_ = b == null ? void 0 : b.group) == null ? void 0 : _.groups) == null ? void 0 : N.map((U) => U.id)) == null ? void 0 : z.filter(Boolean)) == null ? void 0 : D.join(",");
|
|
3012
3012
|
if (!E) {
|
|
3013
3013
|
console.error("Could not extract group ID");
|
|
3014
3014
|
return;
|
|
3015
3015
|
}
|
|
3016
|
-
const
|
|
3016
|
+
const L = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${E}.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764283566783&prePackCouponTags=CUSTOM`, A = await (await fetch(L)).json();
|
|
3017
3017
|
d(En(A.events, A.betOffers, A.prePackCoupons));
|
|
3018
3018
|
} catch (O) {
|
|
3019
3019
|
console.error("loadDataEventSpecial error:", O);
|
|
@@ -3022,7 +3022,7 @@ function Tn({
|
|
|
3022
3022
|
Q(() => {
|
|
3023
3023
|
C();
|
|
3024
3024
|
}, []);
|
|
3025
|
-
const $ = r || void 0,
|
|
3025
|
+
const $ = r || void 0, q = xe("(max-width:950px)");
|
|
3026
3026
|
return g.length === 0 ? null : /* @__PURE__ */ t("section", { className: $, style: {
|
|
3027
3027
|
// paddingLeft: 16,
|
|
3028
3028
|
// paddingRight: 16,
|
|
@@ -3050,7 +3050,7 @@ function Tn({
|
|
|
3050
3050
|
ariaLabel: "Siguiente",
|
|
3051
3051
|
variant: "secondary",
|
|
3052
3052
|
iconOnly: !0,
|
|
3053
|
-
rightIcon: /* @__PURE__ */ t(
|
|
3053
|
+
rightIcon: /* @__PURE__ */ t(Re, {}),
|
|
3054
3054
|
onClick: S,
|
|
3055
3055
|
disabled: h.isEnd
|
|
3056
3056
|
}
|
|
@@ -3069,7 +3069,7 @@ function Tn({
|
|
|
3069
3069
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
3070
3070
|
useIndexAsKey: !0,
|
|
3071
3071
|
enableHorizontalWheel: !0,
|
|
3072
|
-
showRightGradient: !
|
|
3072
|
+
showRightGradient: !q,
|
|
3073
3073
|
breakpoints: {
|
|
3074
3074
|
768: { perPage: 1.2, gap: "12px", padding: { left: "24px", right: "24px" } }
|
|
3075
3075
|
},
|
|
@@ -3133,8 +3133,8 @@ function St({
|
|
|
3133
3133
|
return Q(() => {
|
|
3134
3134
|
if (!(!e || e.length === 0))
|
|
3135
3135
|
return h.current && clearTimeout(h.current), h.current = setTimeout(() => {
|
|
3136
|
-
var
|
|
3137
|
-
const m = (
|
|
3136
|
+
var q, _;
|
|
3137
|
+
const m = (q = a.start) != null ? q : 0, d = (_ = a.end) != null ? _ : 7, f = Math.max(0, m - o), v = Math.min(e.length - 1, d + o);
|
|
3138
3138
|
let S = f, x = v;
|
|
3139
3139
|
const g = u.current;
|
|
3140
3140
|
g && (f > g.end && (S = g.end + 1), v < g.start && (x = g.start - 1)), u.current = { start: f, end: v };
|
|
@@ -3158,12 +3158,12 @@ function St({
|
|
|
3158
3158
|
s((D) => {
|
|
3159
3159
|
const O = { ...D };
|
|
3160
3160
|
for (const [b, E] of Object.entries(N.events)) {
|
|
3161
|
-
const
|
|
3162
|
-
O[
|
|
3161
|
+
const L = Number(b);
|
|
3162
|
+
O[L] || (O[L] = E);
|
|
3163
3163
|
}
|
|
3164
3164
|
return O;
|
|
3165
3165
|
});
|
|
3166
|
-
const
|
|
3166
|
+
const z = new Set(
|
|
3167
3167
|
Object.keys(N.events).map(Number)
|
|
3168
3168
|
);
|
|
3169
3169
|
C.forEach((D) => {
|
|
@@ -3171,7 +3171,7 @@ function St({
|
|
|
3171
3171
|
});
|
|
3172
3172
|
} catch (N) {
|
|
3173
3173
|
C.forEach(
|
|
3174
|
-
(
|
|
3174
|
+
(z) => c.current.delete(z)
|
|
3175
3175
|
), console.error("Jersey fetch error", N);
|
|
3176
3176
|
}
|
|
3177
3177
|
})();
|
|
@@ -3192,15 +3192,15 @@ const An = (e) => {
|
|
|
3192
3192
|
const r = typeof ((s = n == null ? void 0 : n.event) == null ? void 0 : s.group) == "string" ? n.event.group.toLowerCase() : "";
|
|
3193
3193
|
return !a.some((c) => r.includes(c));
|
|
3194
3194
|
});
|
|
3195
|
-
},
|
|
3196
|
-
function
|
|
3195
|
+
}, Rn = fe.memo(Da);
|
|
3196
|
+
function Ln({
|
|
3197
3197
|
items: e,
|
|
3198
3198
|
title: a = "En vivo",
|
|
3199
3199
|
iconUrl: n = "https://stg-www.contodobet.com/static/img/landing/EventoEnVivo/icon.svg",
|
|
3200
3200
|
onViewMore: o,
|
|
3201
3201
|
className: r = ""
|
|
3202
3202
|
}) {
|
|
3203
|
-
const i = "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", s = V(null), [c, p] = X({ isStart: !0, isEnd: !1 }), [h, u] = X(null), [m, d] = X({ start: null, end: null }), [f, v] = X(null), S = V(!1), x = ae(), g = ne(), C = le(), $ = V(/* @__PURE__ */ new Map()),
|
|
3203
|
+
const i = "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", s = V(null), [c, p] = X({ isStart: !0, isEnd: !1 }), [h, u] = X(null), [m, d] = X({ start: null, end: null }), [f, v] = X(null), S = V(!1), x = ae(), g = ne(), C = le(), $ = V(/* @__PURE__ */ new Map()), q = () => {
|
|
3204
3204
|
var B;
|
|
3205
3205
|
x({
|
|
3206
3206
|
element: "evento_en_vivo_prev",
|
|
@@ -3238,14 +3238,14 @@ function Rn({
|
|
|
3238
3238
|
},
|
|
3239
3239
|
tags: { section: "OraculoSeccionEventoEnVivo" }
|
|
3240
3240
|
}), Ba();
|
|
3241
|
-
},
|
|
3241
|
+
}, z = Ce(async () => {
|
|
3242
3242
|
var B;
|
|
3243
3243
|
try {
|
|
3244
3244
|
if (!S.current) {
|
|
3245
3245
|
S.current = !0;
|
|
3246
3246
|
try {
|
|
3247
|
-
const K = await (await fetch("https://api.mktolimpo.com/api/kambi/eventos/orden")).json(), w = ((B = K == null ? void 0 : K.data) == null ? void 0 : B.event_ids) || [],
|
|
3248
|
-
w.forEach((Z, l) =>
|
|
3247
|
+
const K = await (await fetch("https://api.mktolimpo.com/api/kambi/eventos/orden")).json(), w = ((B = K == null ? void 0 : K.data) == null ? void 0 : B.event_ids) || [], R = /* @__PURE__ */ new Map();
|
|
3248
|
+
w.forEach((Z, l) => R.set(String(Z), l)), $.current = R;
|
|
3249
3249
|
} catch (G) {
|
|
3250
3250
|
console.error("Order fetch failed, using default sorting", G);
|
|
3251
3251
|
}
|
|
@@ -3257,8 +3257,8 @@ function Rn({
|
|
|
3257
3257
|
u(W);
|
|
3258
3258
|
else {
|
|
3259
3259
|
const G = [...W].sort((K, w) => {
|
|
3260
|
-
const
|
|
3261
|
-
return (
|
|
3260
|
+
const R = $.current.get(String(K.event.id)), Z = $.current.get(String(w.event.id));
|
|
3261
|
+
return (R !== void 0 ? R : 1 / 0) - (Z !== void 0 ? Z : 1 / 0);
|
|
3262
3262
|
});
|
|
3263
3263
|
u(G);
|
|
3264
3264
|
}
|
|
@@ -3267,10 +3267,10 @@ function Rn({
|
|
|
3267
3267
|
}
|
|
3268
3268
|
}, []);
|
|
3269
3269
|
Q(() => {
|
|
3270
|
-
|
|
3271
|
-
const B = setInterval(
|
|
3270
|
+
z();
|
|
3271
|
+
const B = setInterval(z, 2e4);
|
|
3272
3272
|
return () => clearInterval(B);
|
|
3273
|
-
}, [
|
|
3273
|
+
}, [z]);
|
|
3274
3274
|
const { jerseys: D } = St({
|
|
3275
3275
|
events: (h == null ? void 0 : h.map((B) => B.event)) || [],
|
|
3276
3276
|
// extract actual event objects
|
|
@@ -3280,7 +3280,7 @@ function Rn({
|
|
|
3280
3280
|
// same as your previous BUFFER
|
|
3281
3281
|
debounceMs: 300
|
|
3282
3282
|
// same as your previous debouncedVisibleRange
|
|
3283
|
-
}), O = r || void 0, b = h === null, E = re(() => b ? Array(4).fill({}) : (h == null ? void 0 : h.slice(0, 20)) || [], [b, h]),
|
|
3283
|
+
}), O = r || void 0, b = h === null, E = re(() => b ? Array(4).fill({}) : (h == null ? void 0 : h.slice(0, 20)) || [], [b, h]), L = xe("(max-width:950px)");
|
|
3284
3284
|
return !b && h.length === 0 ? null : /* @__PURE__ */ t("section", { className: O, style: {
|
|
3285
3285
|
// paddingLeft: 16,
|
|
3286
3286
|
// paddingRight: 16,
|
|
@@ -3298,7 +3298,7 @@ function Rn({
|
|
|
3298
3298
|
variant: "secondary",
|
|
3299
3299
|
iconOnly: !0,
|
|
3300
3300
|
leftIcon: /* @__PURE__ */ t(Ae, {}),
|
|
3301
|
-
onClick:
|
|
3301
|
+
onClick: q,
|
|
3302
3302
|
disabled: c.isStart
|
|
3303
3303
|
}
|
|
3304
3304
|
),
|
|
@@ -3308,7 +3308,7 @@ function Rn({
|
|
|
3308
3308
|
ariaLabel: "Siguiente",
|
|
3309
3309
|
variant: "secondary",
|
|
3310
3310
|
iconOnly: !0,
|
|
3311
|
-
rightIcon: /* @__PURE__ */ t(
|
|
3311
|
+
rightIcon: /* @__PURE__ */ t(Re, {}),
|
|
3312
3312
|
onClick: _,
|
|
3313
3313
|
disabled: c.isEnd
|
|
3314
3314
|
}
|
|
@@ -3323,7 +3323,7 @@ function Rn({
|
|
|
3323
3323
|
ref: s,
|
|
3324
3324
|
items: E,
|
|
3325
3325
|
perPage: void 0,
|
|
3326
|
-
showRightGradient: !
|
|
3326
|
+
showRightGradient: !L,
|
|
3327
3327
|
enableHorizontalWheel: !0,
|
|
3328
3328
|
gap: "16px",
|
|
3329
3329
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
@@ -3336,7 +3336,7 @@ function Rn({
|
|
|
3336
3336
|
var W;
|
|
3337
3337
|
const A = ((W = B.event) == null ? void 0 : W.id) || B.eventId, U = A in D ? D[A] : void 0;
|
|
3338
3338
|
return b ? /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(kn, {}) }) : /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(
|
|
3339
|
-
|
|
3339
|
+
Rn,
|
|
3340
3340
|
{
|
|
3341
3341
|
...B,
|
|
3342
3342
|
jersey: U
|
|
@@ -3352,7 +3352,7 @@ function Rn({
|
|
|
3352
3352
|
)
|
|
3353
3353
|
] }) });
|
|
3354
3354
|
}
|
|
3355
|
-
function
|
|
3355
|
+
function Fn() {
|
|
3356
3356
|
return /* @__PURE__ */ y("div", { className: be.cardContainer, children: [
|
|
3357
3357
|
/* @__PURE__ */ t(mt, { title: "" }),
|
|
3358
3358
|
/* @__PURE__ */ t("div", { className: be.cardBackground, children: /* @__PURE__ */ y(H, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
@@ -3380,10 +3380,10 @@ function Pn() {
|
|
|
3380
3380
|
] }) })
|
|
3381
3381
|
] });
|
|
3382
3382
|
}
|
|
3383
|
-
const
|
|
3384
|
-
wrapper:
|
|
3385
|
-
container:
|
|
3386
|
-
buttonWrapper:
|
|
3383
|
+
const qn = "oraculo__OraculoSeccionEventoSemana-module__wrapper___eqVq-", zn = "oraculo__OraculoSeccionEventoSemana-module__container___5yFQs", Pn = "oraculo__OraculoSeccionEventoSemana-module__buttonWrapper___-6IDT", Dn = "oraculo__OraculoSeccionEventoSemana-module__padding___vfUcV", Ie = {
|
|
3384
|
+
wrapper: qn,
|
|
3385
|
+
container: zn,
|
|
3386
|
+
buttonWrapper: Pn,
|
|
3387
3387
|
padding: Dn
|
|
3388
3388
|
}, Un = fe.memo(Za);
|
|
3389
3389
|
async function Vn(e, a = 2, n) {
|
|
@@ -3442,7 +3442,7 @@ function Hn({
|
|
|
3442
3442
|
}), Aa();
|
|
3443
3443
|
};
|
|
3444
3444
|
async function C(O) {
|
|
3445
|
-
var
|
|
3445
|
+
var L, B;
|
|
3446
3446
|
let b = [], E = [];
|
|
3447
3447
|
try {
|
|
3448
3448
|
const A = await fetch(
|
|
@@ -3451,7 +3451,7 @@ function Hn({
|
|
|
3451
3451
|
);
|
|
3452
3452
|
if (A.ok) {
|
|
3453
3453
|
const U = await A.json();
|
|
3454
|
-
b = ((
|
|
3454
|
+
b = ((L = U == null ? void 0 : U.data) == null ? void 0 : L.group_ids) || [], E = ((B = U == null ? void 0 : U.data) == null ? void 0 : B.event_ids) || [];
|
|
3455
3455
|
}
|
|
3456
3456
|
} catch (A) {
|
|
3457
3457
|
A.name !== "AbortError" && console.warn("Order API not available, using default group order");
|
|
@@ -3475,7 +3475,7 @@ function Hn({
|
|
|
3475
3475
|
return k !== void 0 && M !== void 0 ? k - M : k !== void 0 ? -1 : M !== void 0 ? 1 : 0;
|
|
3476
3476
|
});
|
|
3477
3477
|
}
|
|
3478
|
-
const w = G.slice(0, 5),
|
|
3478
|
+
const w = G.slice(0, 5), R = (l) => {
|
|
3479
3479
|
const I = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football";
|
|
3480
3480
|
if (l.groups && l.groups.length > 0) {
|
|
3481
3481
|
const T = l.groups[0];
|
|
@@ -3486,7 +3486,7 @@ function Hn({
|
|
|
3486
3486
|
return [
|
|
3487
3487
|
`${I}/${l.termKey}/all/all/matches.json?${x}`
|
|
3488
3488
|
];
|
|
3489
|
-
}, Z = w.flatMap(
|
|
3489
|
+
}, Z = w.flatMap(R);
|
|
3490
3490
|
$(Z, E, O);
|
|
3491
3491
|
} catch (A) {
|
|
3492
3492
|
console.error(A);
|
|
@@ -3494,9 +3494,9 @@ function Hn({
|
|
|
3494
3494
|
}
|
|
3495
3495
|
async function $(O, b, E) {
|
|
3496
3496
|
try {
|
|
3497
|
-
const
|
|
3497
|
+
const L = await Vn(O, 2, E);
|
|
3498
3498
|
let B = [], A = [];
|
|
3499
|
-
|
|
3499
|
+
L.forEach((K) => {
|
|
3500
3500
|
K.events && (B.push(...K.events.map((w) => w.event)), A.push(
|
|
3501
3501
|
...K.events.flatMap((w) => w.betOffers || [])
|
|
3502
3502
|
));
|
|
@@ -3505,20 +3505,20 @@ function Hn({
|
|
|
3505
3505
|
let G = W;
|
|
3506
3506
|
if (b.length > 0) {
|
|
3507
3507
|
const K = new Map(
|
|
3508
|
-
b.map((w,
|
|
3508
|
+
b.map((w, R) => [
|
|
3509
3509
|
String(w),
|
|
3510
|
-
|
|
3510
|
+
R
|
|
3511
3511
|
])
|
|
3512
3512
|
);
|
|
3513
|
-
G = [...W].sort((w,
|
|
3514
|
-
const Z = K.get(String(w.id)), l = K.get(String(
|
|
3513
|
+
G = [...W].sort((w, R) => {
|
|
3514
|
+
const Z = K.get(String(w.id)), l = K.get(String(R.id));
|
|
3515
3515
|
return Z !== void 0 && l !== void 0 ? Z - l : Z !== void 0 ? -1 : l !== void 0 ? 1 : 0;
|
|
3516
3516
|
});
|
|
3517
3517
|
}
|
|
3518
3518
|
if (E.aborted) return;
|
|
3519
3519
|
f(G);
|
|
3520
|
-
} catch (
|
|
3521
|
-
console.error("Error loading events:",
|
|
3520
|
+
} catch (L) {
|
|
3521
|
+
console.error("Error loading events:", L);
|
|
3522
3522
|
}
|
|
3523
3523
|
}
|
|
3524
3524
|
Q(() => {
|
|
@@ -3528,7 +3528,7 @@ function Hn({
|
|
|
3528
3528
|
O.abort();
|
|
3529
3529
|
};
|
|
3530
3530
|
}, [e]);
|
|
3531
|
-
const
|
|
3531
|
+
const q = r || void 0, _ = {
|
|
3532
3532
|
paddingLeft: 0,
|
|
3533
3533
|
width: "100%",
|
|
3534
3534
|
boxSizing: "border-box"
|
|
@@ -3538,8 +3538,8 @@ function Hn({
|
|
|
3538
3538
|
fetchJerseys: gt,
|
|
3539
3539
|
buffer: 2,
|
|
3540
3540
|
debounceMs: 250
|
|
3541
|
-
}),
|
|
3542
|
-
return !
|
|
3541
|
+
}), z = d === null, D = xe("(max-width:950px)");
|
|
3542
|
+
return !z && d.length === 0 ? null : /* @__PURE__ */ t("section", { className: q, style: _, children: /* @__PURE__ */ y("div", { className: `${Ie.wrapper} ${Ie.padding}`, children: [
|
|
3543
3543
|
/* @__PURE__ */ t("div", { className: Ie.container, children: /* @__PURE__ */ y(H, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
3544
3544
|
/* @__PURE__ */ t(ge, { title: "Eventos de la semana" }),
|
|
3545
3545
|
/* @__PURE__ */ t("div", { className: Ie.buttonWrapper, children: /* @__PURE__ */ t(
|
|
@@ -3559,7 +3559,7 @@ function Hn({
|
|
|
3559
3559
|
he,
|
|
3560
3560
|
{
|
|
3561
3561
|
ref: h,
|
|
3562
|
-
items:
|
|
3562
|
+
items: z ? Array(6).fill({}) : d.slice(0, 20),
|
|
3563
3563
|
perPage: 3.5,
|
|
3564
3564
|
gap: "16px",
|
|
3565
3565
|
enableHorizontalWheel: !0,
|
|
@@ -3575,12 +3575,12 @@ function Hn({
|
|
|
3575
3575
|
},
|
|
3576
3576
|
renderItem: (O) => {
|
|
3577
3577
|
const b = O.id, E = b in N ? N[b] : void 0;
|
|
3578
|
-
return
|
|
3578
|
+
return z ? /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Fn, {}) }) : /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Un, { event: O, jersey: E }) });
|
|
3579
3579
|
},
|
|
3580
|
-
onMove: ({ isStart: O, isEnd: b, visibleStart: E, visibleEnd:
|
|
3580
|
+
onMove: ({ isStart: O, isEnd: b, visibleStart: E, visibleEnd: L, source: B }) => {
|
|
3581
3581
|
m({ isStart: O, isEnd: b }), S({
|
|
3582
3582
|
start: E,
|
|
3583
|
-
end:
|
|
3583
|
+
end: L
|
|
3584
3584
|
}), B === "user" && i({
|
|
3585
3585
|
element: "evento_semana_carousel_slide",
|
|
3586
3586
|
label: `${s} - OraculoSeccionEventoSemana - Slide Carousel`,
|
|
@@ -3590,7 +3590,7 @@ function Hn({
|
|
|
3590
3590
|
metadata: {
|
|
3591
3591
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
3592
3592
|
visibleStart: E,
|
|
3593
|
-
visibleEnd:
|
|
3593
|
+
visibleEnd: L,
|
|
3594
3594
|
isStart: O,
|
|
3595
3595
|
isEnd: b
|
|
3596
3596
|
},
|
|
@@ -3631,16 +3631,16 @@ function Xn({
|
|
|
3631
3631
|
hideItems: n
|
|
3632
3632
|
}) {
|
|
3633
3633
|
var K;
|
|
3634
|
-
const [o, r] = X(0), i = ae(), s = ne(), c = le(), p = V(null), h = V(!1), u = V(!1), [m, d] = X(() => Date.now()), f = se("setDepositActionGlobal"), v = (w) => [...w != null ? w : []].map((
|
|
3634
|
+
const [o, r] = X(0), i = ae(), s = ne(), c = le(), p = V(null), h = V(!1), u = V(!1), [m, d] = X(() => Date.now()), f = se("setDepositActionGlobal"), v = (w) => [...w != null ? w : []].map((R, Z) => ({ item: R, index: Z })).sort((R, Z) => {
|
|
3635
3635
|
var T, k;
|
|
3636
|
-
const l = (T =
|
|
3637
|
-
return l - I ||
|
|
3638
|
-
}).map(({ item:
|
|
3636
|
+
const l = (T = R.item.order) != null ? T : Number.MAX_SAFE_INTEGER, I = (k = Z.item.order) != null ? k : Number.MAX_SAFE_INTEGER;
|
|
3637
|
+
return l - I || R.index - Z.index;
|
|
3638
|
+
}).map(({ item: R }) => R), S = re(() => v(a), [a]), x = re(() => {
|
|
3639
3639
|
const w = (e != null ? e : []).filter(
|
|
3640
|
-
(
|
|
3640
|
+
(R) => Jn(R, m)
|
|
3641
3641
|
);
|
|
3642
3642
|
return v(w);
|
|
3643
|
-
}, [e, m]), g = x.length || 1, C = !x || x.length === 0, $ = !C && x.length > 1,
|
|
3643
|
+
}, [e, m]), g = x.length || 1, C = !x || x.length === 0, $ = !C && x.length > 1, q = !n && S.length > 0;
|
|
3644
3644
|
De("(max-width:950px)");
|
|
3645
3645
|
const _ = "#B5B5B5";
|
|
3646
3646
|
Q(() => {
|
|
@@ -3672,7 +3672,7 @@ function Xn({
|
|
|
3672
3672
|
backgroundColor: "transparent",
|
|
3673
3673
|
cursor: "default"
|
|
3674
3674
|
}
|
|
3675
|
-
},
|
|
3675
|
+
}, z = re(
|
|
3676
3676
|
() => ({
|
|
3677
3677
|
type: "loop",
|
|
3678
3678
|
perMove: 1,
|
|
@@ -3689,11 +3689,11 @@ function Xn({
|
|
|
3689
3689
|
}, 500);
|
|
3690
3690
|
return () => clearTimeout(w);
|
|
3691
3691
|
}, []);
|
|
3692
|
-
const D = (w,
|
|
3692
|
+
const D = (w, R, Z) => {
|
|
3693
3693
|
var k, M;
|
|
3694
|
-
const l = !!
|
|
3694
|
+
const l = !!R.idFunction, I = !!R.href;
|
|
3695
3695
|
if (l)
|
|
3696
|
-
switch (w.preventDefault(), w.stopPropagation(),
|
|
3696
|
+
switch (w.preventDefault(), w.stopPropagation(), R.idFunction) {
|
|
3697
3697
|
case "deposito":
|
|
3698
3698
|
f == null || f(!0);
|
|
3699
3699
|
return;
|
|
@@ -3704,11 +3704,11 @@ function Xn({
|
|
|
3704
3704
|
w.preventDefault(), w.stopPropagation();
|
|
3705
3705
|
return;
|
|
3706
3706
|
}
|
|
3707
|
-
const T = ((M = (k =
|
|
3707
|
+
const T = ((M = (k = R.href) == null ? void 0 : k.split("/").pop()) == null ? void 0 : M.split(".")[0]) || R.label || R.id || `banner_${Z + 1}`;
|
|
3708
3708
|
i({
|
|
3709
3709
|
element: "banner_carousel",
|
|
3710
3710
|
label: `${s} - OraculoSeccionBanners - Banner click: ${T}`,
|
|
3711
|
-
target:
|
|
3711
|
+
target: R.href || "no_url",
|
|
3712
3712
|
event_type: "click",
|
|
3713
3713
|
module_id: c,
|
|
3714
3714
|
metadata: {
|
|
@@ -3719,7 +3719,7 @@ function Xn({
|
|
|
3719
3719
|
tags: {
|
|
3720
3720
|
banner_type: "carousel",
|
|
3721
3721
|
banner_target: "_self",
|
|
3722
|
-
banner_url:
|
|
3722
|
+
banner_url: R.href || "no_url"
|
|
3723
3723
|
}
|
|
3724
3724
|
});
|
|
3725
3725
|
}, O = (w) => {
|
|
@@ -3741,39 +3741,39 @@ function Xn({
|
|
|
3741
3741
|
return;
|
|
3742
3742
|
}
|
|
3743
3743
|
w.href && typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(w.href);
|
|
3744
|
-
}, b = 5e3, E = V(null),
|
|
3744
|
+
}, b = 5e3, E = V(null), L = !C && ((K = x == null ? void 0 : x.length) != null ? K : 0) > 1, B = () => {
|
|
3745
3745
|
E.current != null && (window.clearTimeout(E.current), E.current = null);
|
|
3746
3746
|
}, A = () => {
|
|
3747
|
-
B(),
|
|
3747
|
+
B(), L && (E.current = window.setTimeout(() => {
|
|
3748
3748
|
var w;
|
|
3749
3749
|
u.current = !0, (w = p.current) == null || w.next();
|
|
3750
3750
|
}, b));
|
|
3751
3751
|
};
|
|
3752
|
-
Q(() => (A(), () => B()), [
|
|
3752
|
+
Q(() => (A(), () => B()), [L, b]);
|
|
3753
3753
|
const U = (w) => {
|
|
3754
|
-
var
|
|
3755
|
-
w.preventDefault(), w.stopPropagation(), B(), (
|
|
3754
|
+
var R;
|
|
3755
|
+
w.preventDefault(), w.stopPropagation(), B(), (R = p.current) == null || R.prev();
|
|
3756
3756
|
}, W = (w) => {
|
|
3757
|
-
var
|
|
3758
|
-
w.preventDefault(), w.stopPropagation(), B(), (
|
|
3757
|
+
var R;
|
|
3758
|
+
w.preventDefault(), w.stopPropagation(), B(), (R = p.current) == null || R.next();
|
|
3759
3759
|
}, G = (w) => {
|
|
3760
3760
|
var l, I, T, k;
|
|
3761
|
-
const
|
|
3761
|
+
const R = (w % g + g) % g;
|
|
3762
3762
|
if (!h.current) return;
|
|
3763
|
-
const Z = (l = x == null ? void 0 : x[
|
|
3763
|
+
const Z = (l = x == null ? void 0 : x[R]) != null && l.href ? ((T = (I = x[R].href) == null ? void 0 : I.split("/").pop()) == null ? void 0 : T.split(".")[0]) || `banner_${R + 1}` : `banner_${R + 1}`;
|
|
3764
3764
|
i({
|
|
3765
3765
|
element: "banner_carousel",
|
|
3766
|
-
label: `${s} - OraculoSeccionBanners - Banner view: Slide ${
|
|
3767
|
-
target: ((k = x == null ? void 0 : x[
|
|
3766
|
+
label: `${s} - OraculoSeccionBanners - Banner view: Slide ${R + 1} - ${Z}`,
|
|
3767
|
+
target: ((k = x == null ? void 0 : x[R]) == null ? void 0 : k.href) || "no_url",
|
|
3768
3768
|
event_type: "view",
|
|
3769
3769
|
module_id: c,
|
|
3770
3770
|
metadata: {
|
|
3771
3771
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
3772
|
-
slide_index:
|
|
3772
|
+
slide_index: R + 1,
|
|
3773
3773
|
total_slides: g,
|
|
3774
3774
|
interaction_type: "manual_slide"
|
|
3775
3775
|
},
|
|
3776
|
-
tags: { banner_position: String(
|
|
3776
|
+
tags: { banner_position: String(R + 1) }
|
|
3777
3777
|
});
|
|
3778
3778
|
};
|
|
3779
3779
|
return /* @__PURE__ */ y(
|
|
@@ -3783,7 +3783,7 @@ function Xn({
|
|
|
3783
3783
|
sx: {
|
|
3784
3784
|
position: "relative",
|
|
3785
3785
|
overflow: "visible",
|
|
3786
|
-
pb:
|
|
3786
|
+
pb: q ? { xs: "40px", sm: 0 } : 0
|
|
3787
3787
|
},
|
|
3788
3788
|
children: [
|
|
3789
3789
|
/* @__PURE__ */ y(
|
|
@@ -3818,15 +3818,15 @@ function Xn({
|
|
|
3818
3818
|
perPage: 1,
|
|
3819
3819
|
gap: "0px",
|
|
3820
3820
|
enableHorizontalWheel: !0,
|
|
3821
|
-
options:
|
|
3822
|
-
onMove: ({ index: w, source:
|
|
3821
|
+
options: z,
|
|
3822
|
+
onMove: ({ index: w, source: R }) => {
|
|
3823
3823
|
const Z = (w % g + g) % g;
|
|
3824
3824
|
r(Z);
|
|
3825
3825
|
const l = u.current;
|
|
3826
|
-
u.current = !1,
|
|
3826
|
+
u.current = !1, R === "user" && (A(), l || G(w));
|
|
3827
3827
|
},
|
|
3828
|
-
renderItem: (w,
|
|
3829
|
-
var k, M,
|
|
3828
|
+
renderItem: (w, R) => {
|
|
3829
|
+
var k, M, F;
|
|
3830
3830
|
const Z = !!w.idFunction, l = !!w.href, I = l && !Z, T = Z || l;
|
|
3831
3831
|
return /* @__PURE__ */ y(
|
|
3832
3832
|
ee,
|
|
@@ -3835,7 +3835,7 @@ function Xn({
|
|
|
3835
3835
|
href: I ? w.href : void 0,
|
|
3836
3836
|
target: I ? (k = w.target) != null ? k : "_self" : void 0,
|
|
3837
3837
|
rel: I && w.target === "_blank" ? "noopener noreferrer" : void 0,
|
|
3838
|
-
onClick: (J) => D(J, w,
|
|
3838
|
+
onClick: (J) => D(J, w, R),
|
|
3839
3839
|
sx: {
|
|
3840
3840
|
position: "relative",
|
|
3841
3841
|
width: "100%",
|
|
@@ -3852,7 +3852,7 @@ function Xn({
|
|
|
3852
3852
|
ee,
|
|
3853
3853
|
{
|
|
3854
3854
|
component: "img",
|
|
3855
|
-
src: (
|
|
3855
|
+
src: (F = (M = w.fallbackSrc) != null ? M : w.desktopSrc) != null ? F : "",
|
|
3856
3856
|
alt: "",
|
|
3857
3857
|
"aria-hidden": !0,
|
|
3858
3858
|
loading: "lazy",
|
|
@@ -3918,7 +3918,7 @@ function Xn({
|
|
|
3918
3918
|
"@media (max-width:1024px)": { right: 24 },
|
|
3919
3919
|
"@media (max-width:786px)": { display: "none" }
|
|
3920
3920
|
},
|
|
3921
|
-
children: /* @__PURE__ */ t(
|
|
3921
|
+
children: /* @__PURE__ */ t(Re, {})
|
|
3922
3922
|
}
|
|
3923
3923
|
)
|
|
3924
3924
|
] }),
|
|
@@ -3948,7 +3948,7 @@ function Xn({
|
|
|
3948
3948
|
]
|
|
3949
3949
|
}
|
|
3950
3950
|
),
|
|
3951
|
-
|
|
3951
|
+
q && /* @__PURE__ */ t(
|
|
3952
3952
|
ee,
|
|
3953
3953
|
{
|
|
3954
3954
|
sx: {
|
|
@@ -4084,14 +4084,14 @@ function Xn({
|
|
|
4084
4084
|
);
|
|
4085
4085
|
}
|
|
4086
4086
|
const Yn = [
|
|
4087
|
-
{ src: "https://
|
|
4088
|
-
{ src: "https://
|
|
4089
|
-
{ src: "https://
|
|
4090
|
-
{ src: "https://
|
|
4091
|
-
{ src: "https://
|
|
4092
|
-
{ src: "https://
|
|
4093
|
-
{ src: "https://
|
|
4094
|
-
{ src: "https://
|
|
4087
|
+
{ src: "https://d28gilnhu2bcbp.cloudfront.net/landing/IBK.svg", alt: "Interbank" },
|
|
4088
|
+
{ src: "https://d28gilnhu2bcbp.cloudfront.net/landing/Yape.svg", alt: "Yape" },
|
|
4089
|
+
{ src: "https://d28gilnhu2bcbp.cloudfront.net/landing/BCP.png", alt: "BCP" },
|
|
4090
|
+
{ src: "https://d28gilnhu2bcbp.cloudfront.net/landing/pagoEfectivo.png", alt: "PagoEfectivo" },
|
|
4091
|
+
{ src: "https://d28gilnhu2bcbp.cloudfront.net/landing/tupay.svg", alt: "Tupay" },
|
|
4092
|
+
{ src: "https://d28gilnhu2bcbp.cloudfront.net/landing/monnet.svg", alt: "Monnet" },
|
|
4093
|
+
{ src: "https://d28gilnhu2bcbp.cloudfront.net/landing/niubiz.svg", alt: "Niubiz" },
|
|
4094
|
+
{ src: "https://d28gilnhu2bcbp.cloudfront.net/landing/bbva.png", alt: "BBVA" }
|
|
4095
4095
|
];
|
|
4096
4096
|
function Qn({
|
|
4097
4097
|
title: e = "Medios de pago",
|
|
@@ -4156,8 +4156,8 @@ function Qn({
|
|
|
4156
4156
|
function It({
|
|
4157
4157
|
children: e
|
|
4158
4158
|
}) {
|
|
4159
|
-
const a =
|
|
4160
|
-
() =>
|
|
4159
|
+
const a = Rt(), n = fe.useMemo(
|
|
4160
|
+
() => Lt(a, {
|
|
4161
4161
|
typography: { fontFamily: "var(--orc-font)" },
|
|
4162
4162
|
components: {
|
|
4163
4163
|
MuiTypography: {
|
|
@@ -4169,8 +4169,8 @@ function It({
|
|
|
4169
4169
|
}),
|
|
4170
4170
|
[a]
|
|
4171
4171
|
);
|
|
4172
|
-
return /* @__PURE__ */ y(
|
|
4173
|
-
/* @__PURE__ */ t(
|
|
4172
|
+
return /* @__PURE__ */ y(Ft, { theme: n, children: [
|
|
4173
|
+
/* @__PURE__ */ t(qt, {}),
|
|
4174
4174
|
e
|
|
4175
4175
|
] });
|
|
4176
4176
|
}
|
|
@@ -4191,10 +4191,10 @@ const eo = {
|
|
|
4191
4191
|
OraculoSeccionBonoBienvenida: yn,
|
|
4192
4192
|
OraculoSeccionBanners: Xn,
|
|
4193
4193
|
OraculoSeccionMediosPago: Qn,
|
|
4194
|
-
OraculoSeccionEventoEnVivo:
|
|
4194
|
+
OraculoSeccionEventoEnVivo: Ln,
|
|
4195
4195
|
OraculoSeccionEventoSemana: Hn,
|
|
4196
4196
|
OraculoSeccionEventoCombinadas: Tn
|
|
4197
|
-
},
|
|
4197
|
+
}, Pe = {
|
|
4198
4198
|
sections: [
|
|
4199
4199
|
{
|
|
4200
4200
|
title: "Banners",
|
|
@@ -4232,7 +4232,7 @@ const eo = {
|
|
|
4232
4232
|
name: "iconHover",
|
|
4233
4233
|
isImage: !0,
|
|
4234
4234
|
required: !1,
|
|
4235
|
-
value: "https://
|
|
4235
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1773756376881-icon1.png",
|
|
4236
4236
|
type: "string",
|
|
4237
4237
|
id: "8a5752de-6d6e-4ba7-b4a3-e001534d43a6",
|
|
4238
4238
|
maxSizeMB: 0.5
|
|
@@ -4290,7 +4290,7 @@ const eo = {
|
|
|
4290
4290
|
type: "string",
|
|
4291
4291
|
id: "42be2203-7dbf-418e-9181-9a2c022076ac",
|
|
4292
4292
|
maxSizeMB: 0.5,
|
|
4293
|
-
value: "https://
|
|
4293
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1773756386124-icon2.png"
|
|
4294
4294
|
},
|
|
4295
4295
|
{
|
|
4296
4296
|
value: "https://www.olimpo.bet/deportes#sports/a-z",
|
|
@@ -4333,13 +4333,13 @@ const eo = {
|
|
|
4333
4333
|
type: "string",
|
|
4334
4334
|
id: "6ede5815-7336-40fa-99f2-57ac6cb938cd",
|
|
4335
4335
|
maxSizeMB: 0.2,
|
|
4336
|
-
value: "https://
|
|
4336
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1765981473501-icon3.svg",
|
|
4337
4337
|
required: !0,
|
|
4338
4338
|
isImage: !0,
|
|
4339
4339
|
name: "icon"
|
|
4340
4340
|
},
|
|
4341
4341
|
{
|
|
4342
|
-
value: "https://
|
|
4342
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1773756400282-icon3.png",
|
|
4343
4343
|
id: "49c3a94a-dbb3-4a0a-9b03-cf04bcb2266f",
|
|
4344
4344
|
maxSizeMB: 0.5,
|
|
4345
4345
|
type: "string",
|
|
@@ -4397,7 +4397,7 @@ const eo = {
|
|
|
4397
4397
|
type: "string",
|
|
4398
4398
|
maxSizeMB: 0.5,
|
|
4399
4399
|
id: "aac10c8d-7aac-4051-82ed-a88706a6f6dc",
|
|
4400
|
-
value: "https://
|
|
4400
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1773756409593-icon.png",
|
|
4401
4401
|
required: !1,
|
|
4402
4402
|
isImage: !0,
|
|
4403
4403
|
name: "iconHover"
|
|
@@ -4448,7 +4448,7 @@ const eo = {
|
|
|
4448
4448
|
fields: [
|
|
4449
4449
|
{
|
|
4450
4450
|
validateDimensions: !1,
|
|
4451
|
-
value: "https://
|
|
4451
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1773204037917-comercial-misiones.webp",
|
|
4452
4452
|
id: "eea41214-3c26-41e9-a908-d87327147396",
|
|
4453
4453
|
name: "desktopSrc",
|
|
4454
4454
|
isImage: !0,
|
|
@@ -4476,7 +4476,7 @@ const eo = {
|
|
|
4476
4476
|
name: "fallbackSrc",
|
|
4477
4477
|
isImage: !0,
|
|
4478
4478
|
validateDimensions: !1,
|
|
4479
|
-
value: "https://
|
|
4479
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1773204045973-comercial-misiones.webp",
|
|
4480
4480
|
id: "2616b944-7cd1-4919-bc56-38ddb1a3093b"
|
|
4481
4481
|
},
|
|
4482
4482
|
{
|
|
@@ -4528,7 +4528,7 @@ const eo = {
|
|
|
4528
4528
|
name: "desktopSrc",
|
|
4529
4529
|
isImage: !0,
|
|
4530
4530
|
validateDimensions: !1,
|
|
4531
|
-
value: "https://
|
|
4531
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1773204060818-captacion-nuevahome.png",
|
|
4532
4532
|
id: "1ebab59e-f706-4795-81cb-7accfc9f33d7",
|
|
4533
4533
|
required: !1,
|
|
4534
4534
|
dimensions: "1440x400",
|
|
@@ -4537,7 +4537,7 @@ const eo = {
|
|
|
4537
4537
|
},
|
|
4538
4538
|
{
|
|
4539
4539
|
id: "bdebd1b0-d633-4b9e-9247-8e769cdc5b3b",
|
|
4540
|
-
value: "https://
|
|
4540
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1774473125247-captacion-nuevahomemobile4.png",
|
|
4541
4541
|
validateDimensions: !1,
|
|
4542
4542
|
isImage: !0,
|
|
4543
4543
|
name: "mobileSrc",
|
|
@@ -4548,7 +4548,7 @@ const eo = {
|
|
|
4548
4548
|
},
|
|
4549
4549
|
{
|
|
4550
4550
|
validateDimensions: !1,
|
|
4551
|
-
value: "https://
|
|
4551
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1773204124958-captacion-nuevahome.png",
|
|
4552
4552
|
id: "4bc20da7-b769-43dd-ba2e-ee9261ec73d7",
|
|
4553
4553
|
name: "fallbackSrc",
|
|
4554
4554
|
isImage: !0,
|
|
@@ -4597,7 +4597,7 @@ const eo = {
|
|
|
4597
4597
|
{
|
|
4598
4598
|
id: "28a44fd4-2f36-491e-a026-d797891eb420",
|
|
4599
4599
|
validateDimensions: !1,
|
|
4600
|
-
value: "https://
|
|
4600
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1770307101474-ftd_web_asesorlu.jpg",
|
|
4601
4601
|
isImage: !0,
|
|
4602
4602
|
name: "desktopSrc",
|
|
4603
4603
|
type: "string",
|
|
@@ -4611,7 +4611,7 @@ const eo = {
|
|
|
4611
4611
|
required: !1,
|
|
4612
4612
|
dimensions: "1080x840",
|
|
4613
4613
|
validateDimensions: !1,
|
|
4614
|
-
value: "https://
|
|
4614
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1770307108379-ftd_mobile_asesorlu.jpg",
|
|
4615
4615
|
id: "9ddef07e-6c33-44c6-a9de-3045bcce0a64",
|
|
4616
4616
|
name: "mobileSrc",
|
|
4617
4617
|
isImage: !0
|
|
@@ -4623,7 +4623,7 @@ const eo = {
|
|
|
4623
4623
|
type: "string",
|
|
4624
4624
|
name: "fallbackSrc",
|
|
4625
4625
|
isImage: !0,
|
|
4626
|
-
value: "https://
|
|
4626
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1770307112560-ftd_web_asesorlu.jpg",
|
|
4627
4627
|
validateDimensions: !1,
|
|
4628
4628
|
id: "9043d645-9494-4bb8-9706-e740a3c4aecb"
|
|
4629
4629
|
},
|
|
@@ -4669,7 +4669,7 @@ const eo = {
|
|
|
4669
4669
|
type: "string",
|
|
4670
4670
|
dimensions: "1440x400",
|
|
4671
4671
|
required: !1,
|
|
4672
|
-
value: "https://
|
|
4672
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1773203978730-nuevahomedesktop_asesorpersonalizado.jpg",
|
|
4673
4673
|
validateDimensions: !1,
|
|
4674
4674
|
id: "0a19727d-a6bd-4f3b-83b6-dc40be8f6790",
|
|
4675
4675
|
name: "desktopSrc",
|
|
@@ -4680,7 +4680,7 @@ const eo = {
|
|
|
4680
4680
|
type: "string",
|
|
4681
4681
|
dimensions: "1080x840",
|
|
4682
4682
|
required: !1,
|
|
4683
|
-
value: "https://
|
|
4683
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1772833893358-nueva-home-mobile_asesorlcas.jpg",
|
|
4684
4684
|
validateDimensions: !1,
|
|
4685
4685
|
id: "3ca28d62-53c0-4269-8ecf-ddbbe493db56",
|
|
4686
4686
|
name: "mobileSrc",
|
|
@@ -4694,7 +4694,7 @@ const eo = {
|
|
|
4694
4694
|
name: "fallbackSrc",
|
|
4695
4695
|
isImage: !0,
|
|
4696
4696
|
validateDimensions: !1,
|
|
4697
|
-
value: "https://
|
|
4697
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1773203997327-nuevahomedesktop_asesorpersonalizado.jpg",
|
|
4698
4698
|
id: "241c4be2-2f91-4c92-a0ef-d2013941a7de"
|
|
4699
4699
|
},
|
|
4700
4700
|
{
|
|
@@ -4740,7 +4740,7 @@ const eo = {
|
|
|
4740
4740
|
required: !1,
|
|
4741
4741
|
dimensions: "1440x400",
|
|
4742
4742
|
validateDimensions: !1,
|
|
4743
|
-
value: "https://
|
|
4743
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1773778766147-bannerweb_nuevomerch1920x460.png",
|
|
4744
4744
|
id: "1e4be1ce-774b-48ff-89db-f6148d1ce4a8",
|
|
4745
4745
|
name: "desktopSrc",
|
|
4746
4746
|
isImage: !0
|
|
@@ -4753,7 +4753,7 @@ const eo = {
|
|
|
4753
4753
|
name: "mobileSrc",
|
|
4754
4754
|
isImage: !0,
|
|
4755
4755
|
validateDimensions: !1,
|
|
4756
|
-
value: "https://
|
|
4756
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1773778933662-bannermobile_nuevomerch1080x840.png",
|
|
4757
4757
|
id: "05b790ea-cba0-4592-868a-b5e4cde116c3"
|
|
4758
4758
|
},
|
|
4759
4759
|
{
|
|
@@ -4761,7 +4761,7 @@ const eo = {
|
|
|
4761
4761
|
type: "string",
|
|
4762
4762
|
dimensions: "1440x400",
|
|
4763
4763
|
required: !1,
|
|
4764
|
-
value: "https://
|
|
4764
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1773778926345-bannerweb_nuevomerch1920x460.png",
|
|
4765
4765
|
validateDimensions: !1,
|
|
4766
4766
|
id: "b1ee5a81-f713-4b7c-882c-41088776fe09",
|
|
4767
4767
|
name: "fallbackSrc",
|
|
@@ -4812,20 +4812,20 @@ const eo = {
|
|
|
4812
4812
|
type: "string",
|
|
4813
4813
|
id: "35672057-20b1-48f6-b57e-8177c7ffb50c",
|
|
4814
4814
|
maxSizeMB: 2,
|
|
4815
|
-
value: "https://
|
|
4815
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1773931330007-sorteoiphonebannerhomedesktop_1920x460.png"
|
|
4816
4816
|
},
|
|
4817
4817
|
{
|
|
4818
4818
|
type: "string",
|
|
4819
4819
|
id: "dfe3c031-0577-499e-95f4-2a47363710c7",
|
|
4820
4820
|
maxSizeMB: 2,
|
|
4821
|
-
value: "https://
|
|
4821
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1773931336253-sorteoiphonebannerhomemobile_1080x840.png",
|
|
4822
4822
|
required: !1,
|
|
4823
4823
|
isImage: !0,
|
|
4824
4824
|
dimensions: "1080x840",
|
|
4825
4825
|
name: "mobileSrc"
|
|
4826
4826
|
},
|
|
4827
4827
|
{
|
|
4828
|
-
value: "https://
|
|
4828
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1773931341960-sorteoiphonebannerhomedesktop_1920x460.png",
|
|
4829
4829
|
type: "string",
|
|
4830
4830
|
maxSizeMB: 2,
|
|
4831
4831
|
id: "aac633b9-d6d3-45be-b93a-1aa73e486ed6",
|
|
@@ -5011,7 +5011,7 @@ const eo = {
|
|
|
5011
5011
|
dimensions: "40x40",
|
|
5012
5012
|
isImage: !0,
|
|
5013
5013
|
required: !1,
|
|
5014
|
-
value: "https://
|
|
5014
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1765894618836-frame181009.svg",
|
|
5015
5015
|
id: "95cd1489-206c-4a72-b4bd-b65161089f73",
|
|
5016
5016
|
maxSizeMB: 0.2,
|
|
5017
5017
|
type: "string"
|
|
@@ -5064,7 +5064,7 @@ const eo = {
|
|
|
5064
5064
|
id: "db4b6355-ed6c-4265-ad78-d8fffb660997",
|
|
5065
5065
|
maxSizeMB: 0.2,
|
|
5066
5066
|
type: "string",
|
|
5067
|
-
value: "https://
|
|
5067
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1771339214517-dotrecordinglightred.gif"
|
|
5068
5068
|
},
|
|
5069
5069
|
{
|
|
5070
5070
|
id: "a16ab6c6-321c-4ebe-bd36-a85ad49edf3e",
|
|
@@ -5280,7 +5280,7 @@ const eo = {
|
|
|
5280
5280
|
type: "string",
|
|
5281
5281
|
id: "2aa55855-0865-4cf1-a1ee-e52db864c6b4",
|
|
5282
5282
|
maxSizeMB: 2,
|
|
5283
|
-
value: "https://
|
|
5283
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1771942936688-fondo3.1.webp",
|
|
5284
5284
|
isImage: !0,
|
|
5285
5285
|
required: !1,
|
|
5286
5286
|
name: "backgroundDesktopUrl"
|
|
@@ -5384,7 +5384,7 @@ const eo = {
|
|
|
5384
5384
|
name: "iconUrl",
|
|
5385
5385
|
required: !0,
|
|
5386
5386
|
isImage: !0,
|
|
5387
|
-
value: "https://
|
|
5387
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1770307302930-top.webp",
|
|
5388
5388
|
type: "string",
|
|
5389
5389
|
id: "1960df1d-b07e-4461-b55f-39834ac30d8e",
|
|
5390
5390
|
maxSizeMB: 0.2
|
|
@@ -5451,7 +5451,7 @@ const eo = {
|
|
|
5451
5451
|
name: "iconUrl",
|
|
5452
5452
|
required: !0,
|
|
5453
5453
|
isImage: !0,
|
|
5454
|
-
value: "https://
|
|
5454
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1770307276612-lonuevo.webp",
|
|
5455
5455
|
id: "8f0dadc8-ff0f-4074-870f-2bbcd9f38cab",
|
|
5456
5456
|
maxSizeMB: 0.2,
|
|
5457
5457
|
type: "string"
|
|
@@ -5509,7 +5509,7 @@ const eo = {
|
|
|
5509
5509
|
name: "imgMobile",
|
|
5510
5510
|
required: !0,
|
|
5511
5511
|
isImage: !0,
|
|
5512
|
-
value: "https://
|
|
5512
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1770307329736-clubolimpo-mobile.webp",
|
|
5513
5513
|
type: "string",
|
|
5514
5514
|
maxSizeMB: 2,
|
|
5515
5515
|
id: "259ffa74-7e4f-48e6-90da-4837f2c37fe9"
|
|
@@ -5518,7 +5518,7 @@ const eo = {
|
|
|
5518
5518
|
type: "string",
|
|
5519
5519
|
id: "e7812141-42d8-419f-9d15-b8711139e980",
|
|
5520
5520
|
maxSizeMB: 2,
|
|
5521
|
-
value: "https://
|
|
5521
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1770307339455-clubolimpo.webp",
|
|
5522
5522
|
isImage: !0,
|
|
5523
5523
|
required: !1,
|
|
5524
5524
|
name: "imgDesktopBg"
|
|
@@ -5637,27 +5637,27 @@ const rt = [
|
|
|
5637
5637
|
loader: i,
|
|
5638
5638
|
disableWrapper: s = !1
|
|
5639
5639
|
}) => {
|
|
5640
|
-
const c = re(() => oo(r), [r]), p = i || c.loader, [h, u] = X([]), [m, d] = X(!1), [f, v] = X({}), [S, x] = X({}), [g, C] = X({}), $ = De("(min-width:1024px)"),
|
|
5641
|
-
() => Ee(
|
|
5640
|
+
const c = re(() => oo(r), [r]), p = i || c.loader, [h, u] = X([]), [m, d] = X(!1), [f, v] = X({}), [S, x] = X({}), [g, C] = X({}), $ = De("(min-width:1024px)"), q = re(
|
|
5641
|
+
() => Ee(Pe),
|
|
5642
5642
|
[]
|
|
5643
|
-
), _ = (l) =>
|
|
5643
|
+
), _ = (l) => q.find(
|
|
5644
5644
|
(I) => I.id === l.id || I.componentKey === l.componentKey
|
|
5645
|
-
), N = (l) => Array.isArray(l) ? l.map((I) => Number(I)).filter((I) => !Number.isNaN(I)) : [],
|
|
5645
|
+
), N = (l) => Array.isArray(l) ? l.map((I) => Number(I)).filter((I) => !Number.isNaN(I)) : [], z = re(() => {
|
|
5646
5646
|
const l = c.user;
|
|
5647
5647
|
return N(l == null ? void 0 : l.groups);
|
|
5648
5648
|
}, [c]), D = (l) => {
|
|
5649
5649
|
const I = l.manualScalarFields;
|
|
5650
5650
|
if (!Array.isArray(I)) return [];
|
|
5651
5651
|
const T = I.find(
|
|
5652
|
-
(
|
|
5652
|
+
(F) => String((F == null ? void 0 : F.name) || "").trim().toLowerCase() === "groups"
|
|
5653
5653
|
);
|
|
5654
5654
|
if (!T) return [];
|
|
5655
5655
|
const k = T.value;
|
|
5656
5656
|
if (k == null) return [];
|
|
5657
5657
|
if (Array.isArray(k))
|
|
5658
|
-
return k.map((
|
|
5658
|
+
return k.map((F) => Number(String(F).trim())).filter((F) => !Number.isNaN(F));
|
|
5659
5659
|
const M = String(k).trim();
|
|
5660
|
-
return M ? M.split(",").map((
|
|
5660
|
+
return M ? M.split(",").map((F) => Number(F.trim())).filter((F) => !Number.isNaN(F)) : [];
|
|
5661
5661
|
}, O = (l, I) => {
|
|
5662
5662
|
const T = D(l);
|
|
5663
5663
|
if (T.length === 0) return !0;
|
|
@@ -5668,15 +5668,15 @@ const rt = [
|
|
|
5668
5668
|
Q(() => {
|
|
5669
5669
|
if (e) return;
|
|
5670
5670
|
if (!o) {
|
|
5671
|
-
console.warn("[landing] sin db -> fallback json"), u(Ee(
|
|
5671
|
+
console.warn("[landing] sin db -> fallback json"), u(Ee(Pe));
|
|
5672
5672
|
return;
|
|
5673
5673
|
}
|
|
5674
5674
|
const l = (T, k) => {
|
|
5675
|
-
console.warn("[landing] FALLBACK:", T, k != null ? k : ""), u(Ee(
|
|
5675
|
+
console.warn("[landing] FALLBACK:", T, k != null ? k : ""), u(Ee(Pe)), d(!1);
|
|
5676
5676
|
};
|
|
5677
5677
|
d(!0);
|
|
5678
|
-
const I =
|
|
5679
|
-
|
|
5678
|
+
const I = zt(
|
|
5679
|
+
Pt(o, "landings", a),
|
|
5680
5680
|
(T) => {
|
|
5681
5681
|
try {
|
|
5682
5682
|
if (!T.exists()) {
|
|
@@ -5713,7 +5713,7 @@ const rt = [
|
|
|
5713
5713
|
const I = (l.apiUrl || "").trim();
|
|
5714
5714
|
if (!I) return;
|
|
5715
5715
|
const T = l.apiMethod || "GET", k = l.apiParams || [];
|
|
5716
|
-
let M = I,
|
|
5716
|
+
let M = I, F, J;
|
|
5717
5717
|
if (T === "GET") {
|
|
5718
5718
|
const ie = new URL(
|
|
5719
5719
|
I,
|
|
@@ -5726,33 +5726,33 @@ const rt = [
|
|
|
5726
5726
|
const ie = new URLSearchParams();
|
|
5727
5727
|
for (const oe of k)
|
|
5728
5728
|
oe.key && ie.append(oe.key, oe.value);
|
|
5729
|
-
|
|
5729
|
+
F = ie.toString(), J = {
|
|
5730
5730
|
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
|
|
5731
5731
|
};
|
|
5732
5732
|
}
|
|
5733
5733
|
const te = await fetch(M, {
|
|
5734
5734
|
method: T,
|
|
5735
5735
|
headers: J,
|
|
5736
|
-
body:
|
|
5736
|
+
body: F
|
|
5737
5737
|
});
|
|
5738
5738
|
if (!te.ok) throw new ot(te.status, M, te.statusText);
|
|
5739
5739
|
return te.json();
|
|
5740
5740
|
}, E = re(
|
|
5741
5741
|
() => e ? e.slice() : h.slice(),
|
|
5742
5742
|
[e, h]
|
|
5743
|
-
),
|
|
5743
|
+
), L = fe.useRef(/* @__PURE__ */ new Set());
|
|
5744
5744
|
Q(() => {
|
|
5745
5745
|
const l = E.map((I) => ({ s: I, url: (I.apiUrl || "").trim() })).filter(({ url: I }) => !!I);
|
|
5746
5746
|
if (l.length)
|
|
5747
5747
|
for (const { s: I, url: T } of l) {
|
|
5748
5748
|
const k = `${I.id}|${T}`;
|
|
5749
|
-
|
|
5749
|
+
L.current.has(k) || (L.current.add(k), x((M) => ({ ...M, [I.id]: !0 })), C((M) => ({ ...M, [I.id]: "" })), (async () => {
|
|
5750
5750
|
try {
|
|
5751
5751
|
const M = await b(I);
|
|
5752
|
-
v((
|
|
5752
|
+
v((F) => ({ ...F, [I.id]: M }));
|
|
5753
5753
|
} catch (M) {
|
|
5754
|
-
let
|
|
5755
|
-
M instanceof ot ?
|
|
5754
|
+
let F = "Error desconocido";
|
|
5755
|
+
M instanceof ot ? F = `Error HTTP ${M.status} (${M.statusText}) en ${M.url}` : M instanceof SyntaxError ? F = "Respuesta no es JSON válido" : M instanceof TypeError ? F = "Fallo de red / CORS / conexión" : typeof M == "string" && (F = M.toString()), C((J) => ({ ...J, [I.id]: F }));
|
|
5756
5756
|
} finally {
|
|
5757
5757
|
x((M) => ({ ...M, [I.id]: !1 }));
|
|
5758
5758
|
}
|
|
@@ -5760,25 +5760,25 @@ const rt = [
|
|
|
5760
5760
|
}
|
|
5761
5761
|
}, [E]);
|
|
5762
5762
|
const B = re(
|
|
5763
|
-
() => E.filter((l) => l.visible).filter((l) => O(l,
|
|
5764
|
-
[E,
|
|
5763
|
+
() => E.filter((l) => l.visible).filter((l) => O(l, z)).sort((l, I) => l.order - I.order),
|
|
5764
|
+
[E, z]
|
|
5765
5765
|
), A = (l) => Array.isArray(l) ? l.map((I) => {
|
|
5766
5766
|
const T = {};
|
|
5767
5767
|
for (const k of I.fields || []) {
|
|
5768
5768
|
const M = (k.type || "string").toLowerCase();
|
|
5769
5769
|
if (M === "number") {
|
|
5770
|
-
const
|
|
5771
|
-
if (
|
|
5772
|
-
const J = Number(
|
|
5770
|
+
const F = String(k.value || "").trim();
|
|
5771
|
+
if (F !== "") {
|
|
5772
|
+
const J = Number(F);
|
|
5773
5773
|
Number.isNaN(J) || (T[k.name] = J);
|
|
5774
5774
|
}
|
|
5775
5775
|
} else if (M === "boolean")
|
|
5776
5776
|
T[k.name] = String(k.value).toLowerCase() === "true";
|
|
5777
5777
|
else if (M === "function") {
|
|
5778
|
-
const
|
|
5779
|
-
if (
|
|
5778
|
+
const F = String(k.value || "").trim();
|
|
5779
|
+
if (F)
|
|
5780
5780
|
try {
|
|
5781
|
-
const J = new Function(
|
|
5781
|
+
const J = new Function(F);
|
|
5782
5782
|
T[k.name] = J;
|
|
5783
5783
|
} catch (J) {
|
|
5784
5784
|
console.error(`❌ Error creando función en item '${k.name}':`, J);
|
|
@@ -5796,8 +5796,8 @@ const rt = [
|
|
|
5796
5796
|
if (k === "number") {
|
|
5797
5797
|
const M = String(T.value || "").trim();
|
|
5798
5798
|
if (M !== "") {
|
|
5799
|
-
const
|
|
5800
|
-
Number.isNaN(
|
|
5799
|
+
const F = Number(M);
|
|
5800
|
+
Number.isNaN(F) || (I[T.name] = F);
|
|
5801
5801
|
}
|
|
5802
5802
|
} else if (k === "boolean")
|
|
5803
5803
|
I[T.name] = String(T.value).toLowerCase() === "true";
|
|
@@ -5805,30 +5805,30 @@ const rt = [
|
|
|
5805
5805
|
const M = String(T.value || "").trim();
|
|
5806
5806
|
if (M)
|
|
5807
5807
|
try {
|
|
5808
|
-
const
|
|
5809
|
-
I[T.name] =
|
|
5810
|
-
} catch (
|
|
5811
|
-
console.error(`❌ Error creando función en item '${T.name}':`,
|
|
5808
|
+
const F = new Function(M);
|
|
5809
|
+
I[T.name] = F;
|
|
5810
|
+
} catch (F) {
|
|
5811
|
+
console.error(`❌ Error creando función en item '${T.name}':`, F);
|
|
5812
5812
|
}
|
|
5813
5813
|
} else
|
|
5814
5814
|
I[T.name] = T.value;
|
|
5815
5815
|
}
|
|
5816
5816
|
return I;
|
|
5817
5817
|
}, W = (l, I, T, k) => {
|
|
5818
|
-
const M = T ? { ...T } : {},
|
|
5818
|
+
const M = T ? { ...T } : {}, F = (k || "items").trim() || "items";
|
|
5819
5819
|
if (I)
|
|
5820
|
-
return M[
|
|
5820
|
+
return M[F] = I.arr || [], M;
|
|
5821
5821
|
const J = l;
|
|
5822
5822
|
if (Array.isArray(J))
|
|
5823
|
-
return M[
|
|
5823
|
+
return M[F] = J, M;
|
|
5824
5824
|
if (J && typeof J == "object") {
|
|
5825
5825
|
const te = J;
|
|
5826
|
-
return Array.isArray(te.lobby) ? (M[
|
|
5826
|
+
return Array.isArray(te.lobby) ? (M[F] = te.lobby, M) : Array.isArray(te.items) ? (M[F] = te.items, M) : (M[F] = J, M);
|
|
5827
5827
|
}
|
|
5828
|
-
return M[
|
|
5828
|
+
return M[F] = [], M;
|
|
5829
5829
|
}, G = (l) => {
|
|
5830
|
-
var
|
|
5831
|
-
const I = !!((
|
|
5830
|
+
var F;
|
|
5831
|
+
const I = !!((F = l.apiUrl) != null && F.trim()), T = I ? f[l.id] : void 0;
|
|
5832
5832
|
let k = l.props ? { ...l.props } : {};
|
|
5833
5833
|
const M = U(l.manualScalarFields);
|
|
5834
5834
|
if (rt.includes(l.componentKey))
|
|
@@ -5877,7 +5877,7 @@ const rt = [
|
|
|
5877
5877
|
}
|
|
5878
5878
|
return K(l);
|
|
5879
5879
|
}
|
|
5880
|
-
},
|
|
5880
|
+
}, R = (l, I, T) => /* @__PURE__ */ t("div", { className: `mx-4 p-4 rounded ${{
|
|
5881
5881
|
loading: "bg-blue-100 text-blue-800",
|
|
5882
5882
|
error: "bg-red-100 text-red-800",
|
|
5883
5883
|
component: "bg-yellow-100 text-yellow-800"
|
|
@@ -5896,17 +5896,17 @@ const rt = [
|
|
|
5896
5896
|
"OraculoSeccionDestacados",
|
|
5897
5897
|
"OraculoSeccionCasino"
|
|
5898
5898
|
]
|
|
5899
|
-
])).has(l.componentKey),
|
|
5899
|
+
])).has(l.componentKey), F = $ ? 120 : 24, J = ($ ? 8 : 5) * 8, te = l.componentKey === "OraculoSeccionCasinoEnVivo", ie = {
|
|
5900
5900
|
width: "100%",
|
|
5901
5901
|
boxSizing: "border-box",
|
|
5902
|
-
...M ? {} : { paddingLeft:
|
|
5902
|
+
...M ? {} : { paddingLeft: F, paddingRight: F },
|
|
5903
5903
|
...te ? {
|
|
5904
5904
|
marginTop: -J,
|
|
5905
5905
|
marginBottom: -J
|
|
5906
5906
|
} : {}
|
|
5907
5907
|
};
|
|
5908
5908
|
if (!T)
|
|
5909
|
-
return console.warn(`No hay componente registrado para "${I}"`),
|
|
5909
|
+
return console.warn(`No hay componente registrado para "${I}"`), R(
|
|
5910
5910
|
l.id,
|
|
5911
5911
|
"component",
|
|
5912
5912
|
`Componente "${I}" no encontrado`
|
|
@@ -5914,7 +5914,7 @@ const rt = [
|
|
|
5914
5914
|
const oe = !!((He = l.apiUrl) != null && He.trim()), We = oe ? f[l.id] : void 0, Et = oe ? !!S[l.id] : !1, Ge = oe ? g[l.id] : "";
|
|
5915
5915
|
if (oe) {
|
|
5916
5916
|
if (Et && !We)
|
|
5917
|
-
return
|
|
5917
|
+
return R(
|
|
5918
5918
|
l.id,
|
|
5919
5919
|
"loading",
|
|
5920
5920
|
`Cargando datos desde ${l.apiUrl}...`
|
|
@@ -5923,16 +5923,16 @@ const rt = [
|
|
|
5923
5923
|
const we = _(l);
|
|
5924
5924
|
if (we && we.dataMode === "manual")
|
|
5925
5925
|
try {
|
|
5926
|
-
const
|
|
5927
|
-
return /* @__PURE__ */ t("div", { style: ie, className: "oraculo-section-wrapper", children: /* @__PURE__ */ t(T, { ...
|
|
5928
|
-
} catch (
|
|
5926
|
+
const Le = w(we);
|
|
5927
|
+
return /* @__PURE__ */ t("div", { style: ie, className: "oraculo-section-wrapper", children: /* @__PURE__ */ t(T, { ...Le }) }, l.id);
|
|
5928
|
+
} catch (Le) {
|
|
5929
5929
|
console.error(
|
|
5930
5930
|
"🔥 ERROR renderizando fallback manual de sección:",
|
|
5931
5931
|
we,
|
|
5932
|
-
|
|
5932
|
+
Le
|
|
5933
5933
|
);
|
|
5934
5934
|
}
|
|
5935
|
-
return
|
|
5935
|
+
return R(
|
|
5936
5936
|
l.id,
|
|
5937
5937
|
"error",
|
|
5938
5938
|
`Error cargando ${l.apiUrl}: ${Ge}`
|
|
@@ -5983,7 +5983,7 @@ export {
|
|
|
5983
5983
|
he as OraculoCarousel,
|
|
5984
5984
|
dt as OraculoCarouselDots,
|
|
5985
5985
|
Sa as OraculoClubOlimpoVisual,
|
|
5986
|
-
|
|
5986
|
+
La as OraculoEventCombinadasCard,
|
|
5987
5987
|
Da as OraculoEventEnVivoCard,
|
|
5988
5988
|
Ht as OraculoEventHeader,
|
|
5989
5989
|
ut as OraculoEventLabel,
|
|
@@ -6007,7 +6007,7 @@ export {
|
|
|
6007
6007
|
xn as OraculoSeccionClubOlimpo,
|
|
6008
6008
|
Ja as OraculoSeccionDestacados,
|
|
6009
6009
|
Tn as OraculoSeccionEventoCombinadas,
|
|
6010
|
-
|
|
6010
|
+
Ln as OraculoSeccionEventoEnVivo,
|
|
6011
6011
|
Hn as OraculoSeccionEventoSemana,
|
|
6012
6012
|
Qn as OraculoSeccionMediosPago,
|
|
6013
6013
|
Qa as OraculoSeccionTopJuegos,
|