oraculo-ui 0.2.6 → 0.2.8
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.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as t, jsxs as p, Fragment as ae } from "react/jsx-runtime";
|
|
2
|
-
import { Link as
|
|
2
|
+
import { Link as Xe, Box as X, useMediaQuery as Ye, IconButton as Pe, Typography as Qe, Stack as ye, Container as gt } from "@mui/material";
|
|
3
3
|
import ue, { useState as H, useEffect as J, useRef as W, forwardRef as ht, useImperativeHandle as bt, useCallback as xe, useContext as vt, createContext as _t, useMemo as te, useLayoutEffect as yt } from "react";
|
|
4
4
|
import G from "@mui/material/Skeleton";
|
|
5
5
|
import { Splide as xt, SplideSlide as wt } from "@splidejs/react-splide";
|
|
@@ -9,8 +9,8 @@ import j from "@mui/material/Stack";
|
|
|
9
9
|
import { useCaptureInteraction as Q } from "@olimpo/capture-client";
|
|
10
10
|
import { ChevronLeftRounded as Te, ChevronRightRounded as ke } from "@mui/icons-material";
|
|
11
11
|
import be from "@mui/material/useMediaQuery";
|
|
12
|
-
import
|
|
13
|
-
import
|
|
12
|
+
import et from "@mui/icons-material/ChevronLeftRounded";
|
|
13
|
+
import tt from "@mui/icons-material/ChevronRightRounded";
|
|
14
14
|
import { useTheme as St, createTheme as Ct, ThemeProvider as Ot } from "@mui/material/styles";
|
|
15
15
|
import Et from "@mui/material/CssBaseline";
|
|
16
16
|
import { onSnapshot as It, doc as Tt } from "firebase/firestore";
|
|
@@ -22,51 +22,51 @@ function K({
|
|
|
22
22
|
rel: i,
|
|
23
23
|
type: l = "button",
|
|
24
24
|
disabled: s = !1,
|
|
25
|
-
variant:
|
|
26
|
-
size:
|
|
25
|
+
variant: u = "primary",
|
|
26
|
+
size: b,
|
|
27
27
|
fullWidth: h = !1,
|
|
28
28
|
fullHeight: r = !1,
|
|
29
|
-
className:
|
|
30
|
-
ariaLabel:
|
|
29
|
+
className: c = "",
|
|
30
|
+
ariaLabel: m,
|
|
31
31
|
leftIcon: f,
|
|
32
32
|
rightIcon: _,
|
|
33
|
-
iconOnly:
|
|
33
|
+
iconOnly: T
|
|
34
34
|
}) {
|
|
35
|
-
const
|
|
35
|
+
const C = !!e && e !== !0, A = (!!f ? 1 : 0) + (!!_ ? 1 : 0) == 1, L = T != null ? T : A && !C, M = [
|
|
36
36
|
"orc-btn",
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
u === "secondary" ? "orc-btn--secondary" : u === "tertiary" ? "orc-btn--tertiary" : "orc-btn--primary",
|
|
38
|
+
b ? `orc-btn--${b}` : "",
|
|
39
39
|
h ? "orc-btn--full" : "",
|
|
40
40
|
r ? "orc-btn--fullHeight" : "",
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
].filter(Boolean).join(" "),
|
|
41
|
+
L ? "orc-btn--iconOnly" : "",
|
|
42
|
+
c
|
|
43
|
+
].filter(Boolean).join(" "), F = /* @__PURE__ */ p(ae, { children: [
|
|
44
44
|
f && /* @__PURE__ */ t("span", { className: "orc-btn__icon", children: f }),
|
|
45
|
-
!
|
|
45
|
+
!L && /* @__PURE__ */ t("span", { className: "orc-btn__label", children: e }),
|
|
46
46
|
_ && /* @__PURE__ */ t("span", { className: "orc-btn__icon", children: _ })
|
|
47
|
-
] }),
|
|
47
|
+
] }), w = s ? !0 : void 0;
|
|
48
48
|
return n ? /* @__PURE__ */ t(
|
|
49
|
-
|
|
49
|
+
Xe,
|
|
50
50
|
{
|
|
51
51
|
href: n,
|
|
52
52
|
target: o,
|
|
53
53
|
rel: i,
|
|
54
|
-
"aria-label":
|
|
55
|
-
"aria-disabled":
|
|
56
|
-
tabIndex:
|
|
57
|
-
className:
|
|
58
|
-
onClick:
|
|
59
|
-
children:
|
|
54
|
+
"aria-label": m,
|
|
55
|
+
"aria-disabled": w,
|
|
56
|
+
tabIndex: w ? -1 : void 0,
|
|
57
|
+
className: M,
|
|
58
|
+
onClick: w ? (N) => N.preventDefault() : a,
|
|
59
|
+
children: F
|
|
60
60
|
}
|
|
61
61
|
) : /* @__PURE__ */ t(
|
|
62
62
|
"button",
|
|
63
63
|
{
|
|
64
64
|
type: l,
|
|
65
65
|
onClick: a,
|
|
66
|
-
disabled: !!
|
|
67
|
-
"aria-label":
|
|
68
|
-
className:
|
|
69
|
-
children:
|
|
66
|
+
disabled: !!w,
|
|
67
|
+
"aria-label": m,
|
|
68
|
+
className: M,
|
|
69
|
+
children: F
|
|
70
70
|
}
|
|
71
71
|
);
|
|
72
72
|
}
|
|
@@ -93,7 +93,7 @@ function se({
|
|
|
93
93
|
/* @__PURE__ */ t("h2", { className: "orc-section-title__title", children: e })
|
|
94
94
|
] });
|
|
95
95
|
}
|
|
96
|
-
const
|
|
96
|
+
const at = ({
|
|
97
97
|
total: e,
|
|
98
98
|
active: a,
|
|
99
99
|
onSelect: n,
|
|
@@ -101,10 +101,10 @@ const tt = ({
|
|
|
101
101
|
durationMs: i = 5e3
|
|
102
102
|
}) => {
|
|
103
103
|
if (e <= 1) return null;
|
|
104
|
-
const l = ["orc-dots", o].filter(Boolean).join(" "), [s,
|
|
104
|
+
const l = ["orc-dots", o].filter(Boolean).join(" "), [s, u] = H(0);
|
|
105
105
|
return J(() => {
|
|
106
|
-
|
|
107
|
-
}, [a, i]), /* @__PURE__ */ t("div", { className: l, role: "tablist", "aria-label": "Carousel pagination", children: Array.from({ length: e }).map((
|
|
106
|
+
u((b) => b + 1);
|
|
107
|
+
}, [a, i]), /* @__PURE__ */ t("div", { className: l, role: "tablist", "aria-label": "Carousel pagination", children: Array.from({ length: e }).map((b, h) => {
|
|
108
108
|
const r = h === a;
|
|
109
109
|
return /* @__PURE__ */ t("span", { className: "orc-dots__cell", children: /* @__PURE__ */ t(
|
|
110
110
|
"button",
|
|
@@ -118,7 +118,7 @@ const tt = ({
|
|
|
118
118
|
"--dot-progress-ms": `${i}ms`
|
|
119
119
|
} : void 0,
|
|
120
120
|
onClick: () => {
|
|
121
|
-
r &&
|
|
121
|
+
r && u((c) => c + 1), n == null || n(h);
|
|
122
122
|
}
|
|
123
123
|
},
|
|
124
124
|
r ? `a-${h}-${s}` : `i-${h}`
|
|
@@ -147,7 +147,7 @@ function re({
|
|
|
147
147
|
}
|
|
148
148
|
);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function Ue({ src: e, alt: a }) {
|
|
151
151
|
return /* @__PURE__ */ t(
|
|
152
152
|
X,
|
|
153
153
|
{
|
|
@@ -266,13 +266,13 @@ function At({ title: e, subtitle: a, live: n = !1, time: o = "" }) {
|
|
|
266
266
|
const Rt = "oraculo__OraculoEventLabel-module__label___c64Xw", Ft = {
|
|
267
267
|
label: Rt
|
|
268
268
|
};
|
|
269
|
-
function
|
|
269
|
+
function nt({ text: e }) {
|
|
270
270
|
return /* @__PURE__ */ t("span", { className: Ft.label, children: e });
|
|
271
271
|
}
|
|
272
272
|
const zt = "oraculo__OraculoEventLeague-module__container___rdk4F", Pt = {
|
|
273
273
|
container: zt
|
|
274
274
|
};
|
|
275
|
-
function
|
|
275
|
+
function ot({ title: e }) {
|
|
276
276
|
return /* @__PURE__ */ t("div", { className: Pt.container, children: e.toUpperCase() });
|
|
277
277
|
}
|
|
278
278
|
const Ut = "oraculo__OraculoEventScore-module__scoreWrapper___fWwEr", qt = "oraculo__OraculoEventScore-module__name___r4uL6", Vt = "oraculo__OraculoEventScore-module__score___Xl03M", Dt = "oraculo__OraculoEventScore-module__normal___cCNFz", Wt = "oraculo__OraculoEventScore-module__small___fVt8E", fe = {
|
|
@@ -282,7 +282,7 @@ const Ut = "oraculo__OraculoEventScore-module__scoreWrapper___fWwEr", qt = "orac
|
|
|
282
282
|
normal: Dt,
|
|
283
283
|
small: Wt
|
|
284
284
|
};
|
|
285
|
-
function
|
|
285
|
+
function it({ text: e, name: a, size: n = "normal" }) {
|
|
286
286
|
return /* @__PURE__ */ p(
|
|
287
287
|
"div",
|
|
288
288
|
{
|
|
@@ -386,21 +386,21 @@ function aa(e, a, {
|
|
|
386
386
|
const l = W(0), s = W(0);
|
|
387
387
|
J(() => {
|
|
388
388
|
if (!n) return;
|
|
389
|
-
const
|
|
390
|
-
if (!
|
|
391
|
-
const
|
|
389
|
+
const u = e.current;
|
|
390
|
+
if (!u) return;
|
|
391
|
+
const b = (h) => {
|
|
392
392
|
const r = a.current;
|
|
393
393
|
if (!r || !r.go) return;
|
|
394
|
-
const { deltaX:
|
|
395
|
-
if (Math.abs(
|
|
396
|
-
h.preventDefault(), l.current +=
|
|
394
|
+
const { deltaX: c, deltaY: m } = h;
|
|
395
|
+
if (Math.abs(c) <= Math.abs(m)) return;
|
|
396
|
+
h.preventDefault(), l.current += c;
|
|
397
397
|
const f = Date.now();
|
|
398
398
|
if (f - s.current < i || Math.abs(l.current) < o) return;
|
|
399
399
|
const _ = l.current > 0 ? ">" : "<";
|
|
400
400
|
l.current = 0, s.current = f, r.go(_);
|
|
401
401
|
};
|
|
402
|
-
return
|
|
403
|
-
|
|
402
|
+
return u.addEventListener("wheel", b, { passive: !1 }), () => {
|
|
403
|
+
u.removeEventListener("wheel", b), l.current = 0;
|
|
404
404
|
};
|
|
405
405
|
}, [n, o, i, e, a]);
|
|
406
406
|
}
|
|
@@ -418,86 +418,86 @@ const na = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", oa = "ora
|
|
|
418
418
|
breakpoints: i,
|
|
419
419
|
options: l = {},
|
|
420
420
|
className: s = "",
|
|
421
|
-
onMove:
|
|
422
|
-
useIndexAsKey:
|
|
421
|
+
onMove: u,
|
|
422
|
+
useIndexAsKey: b = !1,
|
|
423
423
|
enableHorizontalWheel: h = !0,
|
|
424
424
|
showRightGradient: r = !1
|
|
425
|
-
},
|
|
426
|
-
const
|
|
427
|
-
aa(f,
|
|
425
|
+
}, c) => {
|
|
426
|
+
const m = W(null), f = W(null), _ = W(e.length), T = W(null), C = W(null);
|
|
427
|
+
aa(f, m, {
|
|
428
428
|
enabled: h
|
|
429
|
-
}), bt(
|
|
429
|
+
}), bt(c, () => ({
|
|
430
430
|
next: () => {
|
|
431
|
-
var
|
|
432
|
-
return (
|
|
431
|
+
var w;
|
|
432
|
+
return (w = m.current) == null ? void 0 : w.go(">");
|
|
433
433
|
},
|
|
434
434
|
prev: () => {
|
|
435
|
-
var
|
|
436
|
-
return (
|
|
435
|
+
var w;
|
|
436
|
+
return (w = m.current) == null ? void 0 : w.go("<");
|
|
437
437
|
},
|
|
438
|
-
go: (
|
|
439
|
-
var
|
|
440
|
-
return (
|
|
438
|
+
go: (w) => {
|
|
439
|
+
var N;
|
|
440
|
+
return (N = m.current) == null ? void 0 : N.go(w);
|
|
441
441
|
}
|
|
442
442
|
}));
|
|
443
|
-
const
|
|
444
|
-
var
|
|
445
|
-
const
|
|
446
|
-
let
|
|
447
|
-
for (let
|
|
448
|
-
const
|
|
449
|
-
if (!
|
|
450
|
-
|
|
443
|
+
const I = (w) => {
|
|
444
|
+
var $;
|
|
445
|
+
const N = w.Components.Slides, P = w.Components.Controller, E = w.root.querySelector(".splide__track"), O = ($ = E == null ? void 0 : E.clientWidth) != null ? $ : 0, R = P.getIndex(), q = N.getLength();
|
|
446
|
+
let g = 0, z = R;
|
|
447
|
+
for (let d = R; d < q; d++) {
|
|
448
|
+
const y = N.getAt(d);
|
|
449
|
+
if (!y || (g += y.slide.offsetWidth, g > O)) break;
|
|
450
|
+
z = d;
|
|
451
451
|
}
|
|
452
|
-
return { visibleStart:
|
|
453
|
-
},
|
|
454
|
-
const
|
|
455
|
-
return !
|
|
456
|
-
},
|
|
457
|
-
var
|
|
458
|
-
const
|
|
459
|
-
if (
|
|
460
|
-
|
|
452
|
+
return { visibleStart: R, visibleEnd: z };
|
|
453
|
+
}, k = (w) => {
|
|
454
|
+
const N = w.root.querySelector(".splide__track"), P = w.root.querySelector(".splide__list");
|
|
455
|
+
return !N || !P ? !1 : P.scrollWidth > N.clientWidth + 1;
|
|
456
|
+
}, A = xe((w) => {
|
|
457
|
+
var z, $;
|
|
458
|
+
const P = w.Components.Slides.getLength();
|
|
459
|
+
if (!k(w)) {
|
|
460
|
+
u == null || u({
|
|
461
461
|
index: 0,
|
|
462
462
|
isStart: !0,
|
|
463
463
|
isEnd: !0,
|
|
464
|
-
total:
|
|
464
|
+
total: P,
|
|
465
465
|
visibleStart: 0,
|
|
466
|
-
visibleEnd:
|
|
466
|
+
visibleEnd: P - 1
|
|
467
467
|
});
|
|
468
468
|
return;
|
|
469
469
|
}
|
|
470
|
-
const { visibleStart:
|
|
471
|
-
r && ((
|
|
472
|
-
const
|
|
473
|
-
|
|
474
|
-
index:
|
|
475
|
-
isStart:
|
|
470
|
+
const { visibleStart: E, visibleEnd: O } = I(w), R = E === 0, q = O === P - 1;
|
|
471
|
+
r && ((z = T.current) == null || z.style.setProperty("--gradient-opacity", R ? "0" : "1"), ($ = C.current) == null || $.style.setProperty("--gradient-opacity", q ? "0" : "1"));
|
|
472
|
+
const g = w.Components.Controller.getIndex();
|
|
473
|
+
u == null || u({
|
|
474
|
+
index: g,
|
|
475
|
+
isStart: R,
|
|
476
476
|
isEnd: q,
|
|
477
|
-
total:
|
|
478
|
-
visibleStart:
|
|
479
|
-
visibleEnd:
|
|
477
|
+
total: P,
|
|
478
|
+
visibleStart: E,
|
|
479
|
+
visibleEnd: O
|
|
480
480
|
});
|
|
481
|
-
}, [
|
|
481
|
+
}, [u]);
|
|
482
482
|
ue.useEffect(() => {
|
|
483
|
-
var
|
|
484
|
-
const
|
|
485
|
-
if (!
|
|
486
|
-
const
|
|
487
|
-
_.current = e.length,
|
|
488
|
-
|
|
483
|
+
var P;
|
|
484
|
+
const w = (P = m.current) == null ? void 0 : P.splide;
|
|
485
|
+
if (!w) return;
|
|
486
|
+
const N = _.current !== e.length;
|
|
487
|
+
_.current = e.length, N && requestAnimationFrame(() => {
|
|
488
|
+
w.refresh(), A(w);
|
|
489
489
|
});
|
|
490
|
-
}, [e.length,
|
|
491
|
-
const
|
|
492
|
-
var
|
|
493
|
-
const
|
|
494
|
-
|
|
495
|
-
}, [
|
|
496
|
-
(
|
|
497
|
-
|
|
490
|
+
}, [e.length, A]);
|
|
491
|
+
const L = xe(() => {
|
|
492
|
+
var N;
|
|
493
|
+
const w = (N = m.current) == null ? void 0 : N.splide;
|
|
494
|
+
w && (w.go(0, !1), A(w));
|
|
495
|
+
}, [A]), M = xe(
|
|
496
|
+
(w) => {
|
|
497
|
+
A(w);
|
|
498
498
|
},
|
|
499
|
-
[
|
|
500
|
-
),
|
|
499
|
+
[A]
|
|
500
|
+
), F = {
|
|
501
501
|
type: "slide",
|
|
502
502
|
trimSpace: !1,
|
|
503
503
|
drag: !0,
|
|
@@ -522,14 +522,14 @@ const na = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", oa = "ora
|
|
|
522
522
|
/* @__PURE__ */ t(
|
|
523
523
|
la,
|
|
524
524
|
{
|
|
525
|
-
ref:
|
|
526
|
-
options:
|
|
527
|
-
onMove:
|
|
528
|
-
onMounted:
|
|
529
|
-
onResize:
|
|
530
|
-
children: e.map((
|
|
531
|
-
var
|
|
532
|
-
return /* @__PURE__ */ t(sa, { children: a(
|
|
525
|
+
ref: m,
|
|
526
|
+
options: F,
|
|
527
|
+
onMove: A,
|
|
528
|
+
onMounted: M,
|
|
529
|
+
onResize: L,
|
|
530
|
+
children: e.map((w, N) => {
|
|
531
|
+
var P;
|
|
532
|
+
return /* @__PURE__ */ t(sa, { children: a(w, N) }, b ? N : (P = w.id) != null ? P : N);
|
|
533
533
|
})
|
|
534
534
|
}
|
|
535
535
|
),
|
|
@@ -537,7 +537,7 @@ const na = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", oa = "ora
|
|
|
537
537
|
/* @__PURE__ */ t(
|
|
538
538
|
"div",
|
|
539
539
|
{
|
|
540
|
-
ref:
|
|
540
|
+
ref: T,
|
|
541
541
|
className: `${he.gradientOverlay} ${he.left}`,
|
|
542
542
|
style: { "--gradient-opacity": "0" },
|
|
543
543
|
children: /* @__PURE__ */ p(
|
|
@@ -562,7 +562,7 @@ const na = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", oa = "ora
|
|
|
562
562
|
/* @__PURE__ */ t(
|
|
563
563
|
"div",
|
|
564
564
|
{
|
|
565
|
-
ref:
|
|
565
|
+
ref: C,
|
|
566
566
|
className: `${he.gradientOverlay} ${he.right}`,
|
|
567
567
|
style: { "--gradient-opacity": "1" },
|
|
568
568
|
children: /* @__PURE__ */ p(
|
|
@@ -595,8 +595,8 @@ const na = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", oa = "ora
|
|
|
595
595
|
size: n = "sm",
|
|
596
596
|
fillParent: o = !1
|
|
597
597
|
}) => {
|
|
598
|
-
const i = n === "lg" ? { w: 280, h: 352 } : { w: 152, h: 168 }, l = (
|
|
599
|
-
|
|
598
|
+
const i = n === "lg" ? { w: 280, h: 352 } : { w: 152, h: 168 }, l = (u) => {
|
|
599
|
+
u.stopPropagation(), a == null || a();
|
|
600
600
|
}, s = o ? { width: "100%", height: "100%" } : { width: `${i.w}px`, height: `${i.h}px` };
|
|
601
601
|
return /* @__PURE__ */ p(
|
|
602
602
|
U,
|
|
@@ -686,15 +686,15 @@ function ca({
|
|
|
686
686
|
md: { w: 186, h: 264, r: 22.6, font: 64 }
|
|
687
687
|
}
|
|
688
688
|
}) {
|
|
689
|
-
var
|
|
690
|
-
const l = (
|
|
691
|
-
var
|
|
689
|
+
var c, m, f, _;
|
|
690
|
+
const l = (T, C) => {
|
|
691
|
+
var I, k, A, L;
|
|
692
692
|
return {
|
|
693
|
-
xs: (
|
|
694
|
-
md: (
|
|
693
|
+
xs: (k = (I = i.xs) == null ? void 0 : I[T]) != null ? k : C,
|
|
694
|
+
md: (L = (A = i.md) == null ? void 0 : A[T]) != null ? L : C
|
|
695
695
|
};
|
|
696
|
-
}, s = l("w", 186),
|
|
697
|
-
xs: Math.round(((
|
|
696
|
+
}, s = l("w", 186), u = l("h", 264), b = l("r", 22.6), h = l("font", 64), r = {
|
|
697
|
+
xs: Math.round(((m = (c = i.xs) == null ? void 0 : c.font) != null ? m : 64) * 0.28),
|
|
698
698
|
md: Math.round(((_ = (f = i.md) == null ? void 0 : f.font) != null ? _ : 64) * 0.28)
|
|
699
699
|
};
|
|
700
700
|
return /* @__PURE__ */ p(
|
|
@@ -705,10 +705,10 @@ function ca({
|
|
|
705
705
|
width: "100%",
|
|
706
706
|
maxWidth: { xs: `${s.xs}px`, md: `${s.md}px` },
|
|
707
707
|
aspectRatio: {
|
|
708
|
-
xs: `${s.xs}/${
|
|
709
|
-
md: `${s.md}/${
|
|
708
|
+
xs: `${s.xs}/${u.xs}`,
|
|
709
|
+
md: `${s.md}/${u.md}`
|
|
710
710
|
},
|
|
711
|
-
borderRadius: { xs: `${
|
|
711
|
+
borderRadius: { xs: `${b.xs}px`, md: `${b.md}px` },
|
|
712
712
|
boxSizing: "border-box",
|
|
713
713
|
overflow: "visible",
|
|
714
714
|
pb: { xs: `${r.xs}px`, md: `${r.md}px` },
|
|
@@ -881,7 +881,7 @@ const da = ({
|
|
|
881
881
|
}
|
|
882
882
|
}
|
|
883
883
|
}
|
|
884
|
-
) }),
|
|
884
|
+
) }), rt = ({
|
|
885
885
|
items: e,
|
|
886
886
|
layout: a = "grid",
|
|
887
887
|
onClick: n,
|
|
@@ -890,7 +890,7 @@ const da = ({
|
|
|
890
890
|
}) => {
|
|
891
891
|
var l, s;
|
|
892
892
|
if (a === "mosaic") {
|
|
893
|
-
const
|
|
893
|
+
const u = e[0], b = e.slice(1, 5);
|
|
894
894
|
return /* @__PURE__ */ p(
|
|
895
895
|
U,
|
|
896
896
|
{
|
|
@@ -925,19 +925,19 @@ const da = ({
|
|
|
925
925
|
overflow: "hidden",
|
|
926
926
|
borderRadius: 2
|
|
927
927
|
},
|
|
928
|
-
children: o ? /* @__PURE__ */ t(Me, {}) :
|
|
928
|
+
children: o ? /* @__PURE__ */ t(Me, {}) : u && /* @__PURE__ */ t(
|
|
929
929
|
we,
|
|
930
930
|
{
|
|
931
|
-
imageUrl: `https://olimpo.bet${(s = (l =
|
|
931
|
+
imageUrl: `https://olimpo.bet${(s = (l = u.background) != null ? l : u.imageUrl) != null ? s : ""}`,
|
|
932
932
|
size: "lg",
|
|
933
933
|
fillParent: !0,
|
|
934
|
-
onClick: () => n == null ? void 0 : n(
|
|
934
|
+
onClick: () => n == null ? void 0 : n(u, 0)
|
|
935
935
|
}
|
|
936
936
|
)
|
|
937
937
|
}
|
|
938
938
|
),
|
|
939
|
-
(o ? Array.from({ length: 4 }) :
|
|
940
|
-
var
|
|
939
|
+
(o ? Array.from({ length: 4 }) : b).map((h, r) => {
|
|
940
|
+
var c, m;
|
|
941
941
|
return /* @__PURE__ */ t(
|
|
942
942
|
U,
|
|
943
943
|
{
|
|
@@ -950,7 +950,7 @@ const da = ({
|
|
|
950
950
|
children: o ? /* @__PURE__ */ t(Me, {}) : /* @__PURE__ */ t(
|
|
951
951
|
we,
|
|
952
952
|
{
|
|
953
|
-
imageUrl: `https://olimpo.bet${(
|
|
953
|
+
imageUrl: `https://olimpo.bet${(m = (c = h.background) != null ? c : h.imageUrl) != null ? m : ""}`,
|
|
954
954
|
size: "sm",
|
|
955
955
|
fillParent: !0,
|
|
956
956
|
onClick: () => n == null ? void 0 : n(h, r + 1)
|
|
@@ -980,8 +980,8 @@ const da = ({
|
|
|
980
980
|
gap: `${Ne}px`,
|
|
981
981
|
gridAutoFlow: "column"
|
|
982
982
|
},
|
|
983
|
-
children: (o ? Array.from({ length: i }) : e).map((
|
|
984
|
-
var h, r,
|
|
983
|
+
children: (o ? Array.from({ length: i }) : e).map((u, b) => {
|
|
984
|
+
var h, r, c;
|
|
985
985
|
return /* @__PURE__ */ t(
|
|
986
986
|
U,
|
|
987
987
|
{
|
|
@@ -989,19 +989,19 @@ const da = ({
|
|
|
989
989
|
children: o ? /* @__PURE__ */ t(Me, {}) : /* @__PURE__ */ t(
|
|
990
990
|
we,
|
|
991
991
|
{
|
|
992
|
-
imageUrl: `https://olimpo.bet${(r = (h =
|
|
992
|
+
imageUrl: `https://olimpo.bet${(r = (h = u.background) != null ? h : u.imageUrl) != null ? r : ""}`,
|
|
993
993
|
size: "sm",
|
|
994
994
|
fillParent: !0,
|
|
995
|
-
onClick: () => n == null ? void 0 : n(
|
|
995
|
+
onClick: () => n == null ? void 0 : n(u, b)
|
|
996
996
|
}
|
|
997
997
|
)
|
|
998
998
|
},
|
|
999
|
-
o ? `sk-${
|
|
999
|
+
o ? `sk-${b}` : (c = u.id) != null ? c : b
|
|
1000
1000
|
);
|
|
1001
1001
|
})
|
|
1002
1002
|
}
|
|
1003
1003
|
);
|
|
1004
|
-
},
|
|
1004
|
+
}, qe = ({
|
|
1005
1005
|
title: e,
|
|
1006
1006
|
amount: a,
|
|
1007
1007
|
subtitle: n,
|
|
@@ -1009,20 +1009,20 @@ const da = ({
|
|
|
1009
1009
|
onButtonClick: i,
|
|
1010
1010
|
backgroundImage: l,
|
|
1011
1011
|
alt: s,
|
|
1012
|
-
className:
|
|
1013
|
-
variant:
|
|
1012
|
+
className: u = "",
|
|
1013
|
+
variant: b = "small"
|
|
1014
1014
|
}) => {
|
|
1015
|
-
const h = a ? a.slice(0, 2) : "", r = a ? a.slice(2) : "",
|
|
1015
|
+
const h = a ? a.slice(0, 2) : "", r = a ? a.slice(2) : "", c = b === "large";
|
|
1016
1016
|
return /* @__PURE__ */ p(
|
|
1017
1017
|
U,
|
|
1018
1018
|
{
|
|
1019
|
-
className:
|
|
1019
|
+
className: u,
|
|
1020
1020
|
sx: {
|
|
1021
1021
|
position: "relative",
|
|
1022
1022
|
width: "100%",
|
|
1023
1023
|
maxWidth: {
|
|
1024
1024
|
xs: 328,
|
|
1025
|
-
md:
|
|
1025
|
+
md: c ? 618 : 456
|
|
1026
1026
|
},
|
|
1027
1027
|
mx: "auto"
|
|
1028
1028
|
},
|
|
@@ -1035,7 +1035,7 @@ const da = ({
|
|
|
1035
1035
|
width: "100%",
|
|
1036
1036
|
aspectRatio: {
|
|
1037
1037
|
xs: "328 / 188",
|
|
1038
|
-
md:
|
|
1038
|
+
md: c ? "618 / 346" : "456 / 272"
|
|
1039
1039
|
},
|
|
1040
1040
|
borderRadius: "14px",
|
|
1041
1041
|
overflow: "hidden"
|
|
@@ -1220,7 +1220,7 @@ function wa() {
|
|
|
1220
1220
|
function Sa() {
|
|
1221
1221
|
window.location.href = "/deportes#specials";
|
|
1222
1222
|
}
|
|
1223
|
-
async function
|
|
1223
|
+
async function lt(e) {
|
|
1224
1224
|
return await (await fetch("https://api.mktolimpo.com/api/jerseys/search", {
|
|
1225
1225
|
method: "POST",
|
|
1226
1226
|
headers: {
|
|
@@ -1231,18 +1231,18 @@ async function rt(e) {
|
|
|
1231
1231
|
})
|
|
1232
1232
|
})).json();
|
|
1233
1233
|
}
|
|
1234
|
-
function
|
|
1234
|
+
function st(e, a = 250) {
|
|
1235
1235
|
const [n, o] = H(e);
|
|
1236
1236
|
return J(() => {
|
|
1237
1237
|
const i = setTimeout(() => o(e), a);
|
|
1238
1238
|
return () => clearTimeout(i);
|
|
1239
1239
|
}, [e, a]), n;
|
|
1240
1240
|
}
|
|
1241
|
-
const
|
|
1241
|
+
const ct = _t(void 0), Le = ({ children: e, docId: a }) => {
|
|
1242
1242
|
const n = ue.useMemo(() => ({ docId: a }), [a]);
|
|
1243
|
-
return /* @__PURE__ */ t(
|
|
1243
|
+
return /* @__PURE__ */ t(ct.Provider, { value: n, children: e });
|
|
1244
1244
|
}, ee = () => {
|
|
1245
|
-
const e = vt(
|
|
1245
|
+
const e = vt(ct);
|
|
1246
1246
|
if (!e)
|
|
1247
1247
|
throw new Error("useDocId debe usarse dentro de DocIdProvider");
|
|
1248
1248
|
return e.docId;
|
|
@@ -1252,83 +1252,83 @@ function Ca({ coupon: e }) {
|
|
|
1252
1252
|
const a = Q(), n = ee();
|
|
1253
1253
|
function o(r) {
|
|
1254
1254
|
var f, _;
|
|
1255
|
-
const
|
|
1255
|
+
const c = [], m = Array.from(
|
|
1256
1256
|
new Map(
|
|
1257
|
-
((f = r == null ? void 0 : r.events) != null ? f : []).filter(Boolean).map((
|
|
1257
|
+
((f = r == null ? void 0 : r.events) != null ? f : []).filter(Boolean).map((T) => [T.id, T])
|
|
1258
1258
|
).values()
|
|
1259
1259
|
);
|
|
1260
|
-
return
|
|
1261
|
-
var
|
|
1262
|
-
const
|
|
1263
|
-
|
|
1264
|
-
var
|
|
1265
|
-
if (!((
|
|
1266
|
-
const
|
|
1267
|
-
if (!
|
|
1268
|
-
let
|
|
1269
|
-
const
|
|
1270
|
-
["Más de", "Mas de", "Over"].includes(
|
|
1271
|
-
id:
|
|
1272
|
-
value:
|
|
1273
|
-
label: (
|
|
1274
|
-
odds: (q =
|
|
1275
|
-
position: (
|
|
1276
|
-
eventId:
|
|
1260
|
+
return m.forEach((T) => {
|
|
1261
|
+
var A;
|
|
1262
|
+
const C = (A = T.betoffers) != null ? A : [], I = T.homeName, k = T.awayName;
|
|
1263
|
+
C.forEach((L) => {
|
|
1264
|
+
var N, P, E, O, R, q, g;
|
|
1265
|
+
if (!((N = L == null ? void 0 : L.outcomes) != null && N.length)) return;
|
|
1266
|
+
const M = L.outcomes[0];
|
|
1267
|
+
if (!M) return;
|
|
1268
|
+
let F = "";
|
|
1269
|
+
const w = M != null && M.line ? M.line / 1e3 : "";
|
|
1270
|
+
["Más de", "Mas de", "Over"].includes(M.label) ? (F = `Más de ${w}`, M.participant && (F = `${M.participant} - ${F}`)) : ["Menos de", "Menos", "Under"].includes(M.label) ? (F = `Menos de ${w}`, M.participant && (F = `${M.participant} - ${F}`)) : ["Sí", "No"].includes(M.label) ? (F = M.label, M.participant && (F = `${M.participant} - ${F}`)) : ["1X", "12", "X2"].includes(M.label) ? (M.label === "1X" && (F = `${I} o Empate`), M.label === "12" && (F = `${I} o ${k}`), M.label === "X2" && (F = `${k} o Empate`)) : (F = (E = (P = M.participant) != null ? P : M.label) != null ? E : "", w !== "" && F === M.label && (F = `${M.label} ${w}`)), c.push({
|
|
1271
|
+
id: M.id,
|
|
1272
|
+
value: F,
|
|
1273
|
+
label: (R = (O = L.criterion) == null ? void 0 : O.label) != null ? R : "",
|
|
1274
|
+
odds: (q = M.odds) != null ? q : 0,
|
|
1275
|
+
position: (g = M.position) != null ? g : 0,
|
|
1276
|
+
eventId: T.id
|
|
1277
1277
|
});
|
|
1278
1278
|
});
|
|
1279
1279
|
}), {
|
|
1280
|
-
outcomes:
|
|
1280
|
+
outcomes: c.sort((T, C) => T.position - C.position),
|
|
1281
1281
|
total: Number((_ = r == null ? void 0 : r.combinadoTotal) != null ? _ : 0).toLocaleString("en-US", {
|
|
1282
1282
|
minimumFractionDigits: 2,
|
|
1283
1283
|
maximumFractionDigits: 2
|
|
1284
1284
|
}),
|
|
1285
|
-
events:
|
|
1285
|
+
events: m
|
|
1286
1286
|
};
|
|
1287
1287
|
}
|
|
1288
1288
|
function i(r) {
|
|
1289
1289
|
if (!r || !Array.isArray(r.events) || r.events.length === 0)
|
|
1290
1290
|
return "/deportes#home";
|
|
1291
|
-
const
|
|
1292
|
-
if (
|
|
1293
|
-
return `/deportes#event/${
|
|
1294
|
-
const
|
|
1295
|
-
if (
|
|
1296
|
-
const _ =
|
|
1291
|
+
const c = r.events;
|
|
1292
|
+
if (c.length === 1)
|
|
1293
|
+
return `/deportes#event/${c[0].id}`;
|
|
1294
|
+
const m = c[0].groupId;
|
|
1295
|
+
if (c.every((_) => _.groupId === m)) {
|
|
1296
|
+
const _ = c[0].path;
|
|
1297
1297
|
if (Array.isArray(_) && _.length > 0)
|
|
1298
|
-
return `/deportes#sports-hub/${_.map((
|
|
1298
|
+
return `/deportes#sports-hub/${_.map((C) => C.termKey).filter(Boolean).join("/")}`;
|
|
1299
1299
|
}
|
|
1300
1300
|
return "/deportes#home";
|
|
1301
1301
|
}
|
|
1302
|
-
const l = (r,
|
|
1303
|
-
const
|
|
1302
|
+
const l = (r, c) => {
|
|
1303
|
+
const m = Array.isArray(r) ? r : [r], f = Array.from(
|
|
1304
1304
|
new Set(
|
|
1305
|
-
s.outcomes.map((
|
|
1306
|
-
var
|
|
1307
|
-
const
|
|
1308
|
-
return (
|
|
1305
|
+
s.outcomes.map((C) => {
|
|
1306
|
+
var k;
|
|
1307
|
+
const I = b.get(Number(C.eventId));
|
|
1308
|
+
return (k = I == null ? void 0 : I.name) != null ? k : "";
|
|
1309
1309
|
})
|
|
1310
1310
|
)
|
|
1311
|
-
).filter(Boolean), _ = f.length > 0 ? f.join(" + ") : JSON.stringify(
|
|
1311
|
+
).filter(Boolean), _ = f.length > 0 ? f.join(" + ") : JSON.stringify(m), T = c ? `${_} - Cuota: ${c}` : _;
|
|
1312
1312
|
a({
|
|
1313
1313
|
element: "evento_semana_outcome",
|
|
1314
|
-
label: `Landing: ${n} - OraculoEventCombinadasCard - Click: ${
|
|
1314
|
+
label: `Landing: ${n} - OraculoEventCombinadasCard - Click: ${T}`,
|
|
1315
1315
|
target: "/deportes#in-play",
|
|
1316
1316
|
event_type: "click",
|
|
1317
1317
|
module_id: 301,
|
|
1318
1318
|
metadata: {
|
|
1319
1319
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1320
1320
|
},
|
|
1321
|
-
tags: { section: "OraculoEventCombinadasCard", outcomes:
|
|
1321
|
+
tags: { section: "OraculoEventCombinadasCard", outcomes: T }
|
|
1322
1322
|
}), Re(i(e), r);
|
|
1323
1323
|
};
|
|
1324
1324
|
if (!((h = e == null ? void 0 : e.events) != null && h.length)) return null;
|
|
1325
|
-
const s = o(e),
|
|
1325
|
+
const s = o(e), u = s.outcomes.reduce((r, c) => (r[c.eventId] || (r[c.eventId] = []), r[c.eventId].push(c), r), {}), b = new Map(
|
|
1326
1326
|
s.events.map((r) => [r.id, r])
|
|
1327
1327
|
);
|
|
1328
1328
|
return /* @__PURE__ */ p("div", { className: ne.card, children: [
|
|
1329
|
-
/* @__PURE__ */ t("div", { className: ne.combinadas, children: /* @__PURE__ */ t("div", { className: ne.combinadasScroll, children: /* @__PURE__ */ t(j, { direction: "column", spacing: 1.5, useFlexGap: !0, children: Object.entries(
|
|
1330
|
-
const
|
|
1331
|
-
return
|
|
1329
|
+
/* @__PURE__ */ t("div", { className: ne.combinadas, children: /* @__PURE__ */ t("div", { className: ne.combinadasScroll, children: /* @__PURE__ */ t(j, { direction: "column", spacing: 1.5, useFlexGap: !0, children: Object.entries(u).reverse().map(([r, c]) => {
|
|
1330
|
+
const m = b.get(Number(r));
|
|
1331
|
+
return m ? /* @__PURE__ */ p(
|
|
1332
1332
|
j,
|
|
1333
1333
|
{
|
|
1334
1334
|
direction: "column",
|
|
@@ -1338,7 +1338,7 @@ function Ca({ coupon: e }) {
|
|
|
1338
1338
|
/* @__PURE__ */ t(
|
|
1339
1339
|
se,
|
|
1340
1340
|
{
|
|
1341
|
-
title:
|
|
1341
|
+
title: m.name,
|
|
1342
1342
|
iconUrl: "/assets/img/home/Combinadas/pelota.png",
|
|
1343
1343
|
size: "xs"
|
|
1344
1344
|
}
|
|
@@ -1350,10 +1350,10 @@ function Ca({ coupon: e }) {
|
|
|
1350
1350
|
src: "/assets/img/home/Combinadas/line.png"
|
|
1351
1351
|
}
|
|
1352
1352
|
),
|
|
1353
|
-
|
|
1353
|
+
c.map((f, _) => /* @__PURE__ */ p("div", { className: ne.apuestaItem, children: [
|
|
1354
1354
|
/* @__PURE__ */ p("div", { className: ne.lineContainer, children: [
|
|
1355
1355
|
/* @__PURE__ */ t("div", { className: ne.circle }),
|
|
1356
|
-
_ <
|
|
1356
|
+
_ < c.length - 1 && /* @__PURE__ */ t("div", { className: ne.line })
|
|
1357
1357
|
] }),
|
|
1358
1358
|
/* @__PURE__ */ p("div", { className: ne.apuestaText, children: [
|
|
1359
1359
|
/* @__PURE__ */ t("strong", { children: f.value }),
|
|
@@ -1414,54 +1414,54 @@ function Oa({
|
|
|
1414
1414
|
rel: i,
|
|
1415
1415
|
type: l = "button",
|
|
1416
1416
|
disabled: s = !1,
|
|
1417
|
-
variant:
|
|
1418
|
-
size:
|
|
1417
|
+
variant: u = "primary",
|
|
1418
|
+
size: b,
|
|
1419
1419
|
fullWidth: h = !1,
|
|
1420
1420
|
fullHeight: r = !1,
|
|
1421
|
-
className:
|
|
1422
|
-
ariaLabel:
|
|
1421
|
+
className: c = "",
|
|
1422
|
+
ariaLabel: m,
|
|
1423
1423
|
leftIcon: f,
|
|
1424
1424
|
rightIcon: _,
|
|
1425
|
-
iconOnly:
|
|
1425
|
+
iconOnly: T
|
|
1426
1426
|
}) {
|
|
1427
|
-
const
|
|
1427
|
+
const C = !!e && e !== !0, A = (!!f ? 1 : 0) + (!!_ ? 1 : 0) == 1, L = T != null ? T : A && !C, M = [
|
|
1428
1428
|
oe["orc-btn"],
|
|
1429
1429
|
// base
|
|
1430
|
-
oe[`orc-btn--${
|
|
1430
|
+
oe[`orc-btn--${u}`],
|
|
1431
1431
|
// variant primary/secondary/tertiary
|
|
1432
|
-
|
|
1432
|
+
b ? oe[`orc-btn--${b}`] : "",
|
|
1433
1433
|
// sm / md / lg
|
|
1434
1434
|
h ? oe["orc-btn--full"] : "",
|
|
1435
1435
|
r ? oe["orc-btn--fullHeight"] : "",
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
].filter(Boolean).join(" "),
|
|
1436
|
+
L ? oe["orc-btn--iconOnly"] : "",
|
|
1437
|
+
c
|
|
1438
|
+
].filter(Boolean).join(" "), F = /* @__PURE__ */ p(ae, { children: [
|
|
1439
1439
|
f && /* @__PURE__ */ t("span", { className: oe["orc-btn__icon"], children: f }),
|
|
1440
|
-
!
|
|
1440
|
+
!L && /* @__PURE__ */ t("span", { className: oe["orc-btn__label"], children: e }),
|
|
1441
1441
|
_ && /* @__PURE__ */ t("span", { className: oe["orc-btn__icon"], children: _ })
|
|
1442
|
-
] }),
|
|
1442
|
+
] }), w = s ? !0 : void 0;
|
|
1443
1443
|
return n ? /* @__PURE__ */ t(
|
|
1444
|
-
|
|
1444
|
+
Xe,
|
|
1445
1445
|
{
|
|
1446
1446
|
href: n,
|
|
1447
1447
|
target: o,
|
|
1448
1448
|
rel: i,
|
|
1449
|
-
"aria-label":
|
|
1450
|
-
"aria-disabled":
|
|
1451
|
-
tabIndex:
|
|
1452
|
-
className:
|
|
1453
|
-
onClick:
|
|
1454
|
-
children:
|
|
1449
|
+
"aria-label": m,
|
|
1450
|
+
"aria-disabled": w,
|
|
1451
|
+
tabIndex: w ? -1 : void 0,
|
|
1452
|
+
className: M,
|
|
1453
|
+
onClick: w ? (N) => N.preventDefault() : a,
|
|
1454
|
+
children: F
|
|
1455
1455
|
}
|
|
1456
1456
|
) : /* @__PURE__ */ t(
|
|
1457
1457
|
"button",
|
|
1458
1458
|
{
|
|
1459
1459
|
type: l,
|
|
1460
1460
|
onClick: a,
|
|
1461
|
-
disabled: !!
|
|
1462
|
-
"aria-label":
|
|
1463
|
-
className:
|
|
1464
|
-
children:
|
|
1461
|
+
disabled: !!w,
|
|
1462
|
+
"aria-label": m,
|
|
1463
|
+
className: M,
|
|
1464
|
+
children: F
|
|
1465
1465
|
}
|
|
1466
1466
|
);
|
|
1467
1467
|
}
|
|
@@ -1469,13 +1469,13 @@ const Ea = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", Ia = "
|
|
|
1469
1469
|
cardWrapper: Ea,
|
|
1470
1470
|
customButtonLabel: Ia,
|
|
1471
1471
|
customButtonDisabled: Ta
|
|
1472
|
-
},
|
|
1472
|
+
}, Ve = {
|
|
1473
1473
|
base: "FFFFFF",
|
|
1474
1474
|
sleeve: "FFFFFF",
|
|
1475
1475
|
number: "000000",
|
|
1476
1476
|
real: !1,
|
|
1477
1477
|
type: "short_sleeves"
|
|
1478
|
-
},
|
|
1478
|
+
}, De = {
|
|
1479
1479
|
base: "000000",
|
|
1480
1480
|
sleeve: "000000",
|
|
1481
1481
|
number: "FFFFFF",
|
|
@@ -1486,16 +1486,16 @@ const Ea = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", Ia = "
|
|
|
1486
1486
|
if (e === void 0)
|
|
1487
1487
|
return null;
|
|
1488
1488
|
if (e === null)
|
|
1489
|
-
return a === "home" ?
|
|
1489
|
+
return a === "home" ? Ve : De;
|
|
1490
1490
|
const o = (l = (i = e == null ? void 0 : e.jerseys) == null ? void 0 : i[a]) == null ? void 0 : l[n];
|
|
1491
|
-
return o || (a === "home" ?
|
|
1491
|
+
return o || (a === "home" ? Ve : De);
|
|
1492
1492
|
};
|
|
1493
1493
|
function ka({ event: e, liveData: a, betOffers: n, jersey: o }) {
|
|
1494
|
-
var
|
|
1494
|
+
var u, b, h, r, c, m, f, _, T, C, I;
|
|
1495
1495
|
const i = n == null ? void 0 : n.find(
|
|
1496
|
-
(
|
|
1497
|
-
var
|
|
1498
|
-
return ((
|
|
1496
|
+
(k) => {
|
|
1497
|
+
var A;
|
|
1498
|
+
return ((A = k.betOfferType) == null ? void 0 : A.id) === 2;
|
|
1499
1499
|
}
|
|
1500
1500
|
), l = {
|
|
1501
1501
|
englishLabel: "",
|
|
@@ -1516,23 +1516,23 @@ function ka({ event: e, liveData: a, betOffers: n, jersey: o }) {
|
|
|
1516
1516
|
/* @__PURE__ */ t(
|
|
1517
1517
|
At,
|
|
1518
1518
|
{
|
|
1519
|
-
title: (h = (
|
|
1519
|
+
title: (h = (b = (u = e == null ? void 0 : e.path) == null ? void 0 : u[0]) == null ? void 0 : b.name) != null ? h : "",
|
|
1520
1520
|
subtitle: (r = e == null ? void 0 : e.group) != null ? r : "",
|
|
1521
1521
|
live: !0,
|
|
1522
|
-
time: ((
|
|
1522
|
+
time: ((c = a == null ? void 0 : a.matchClock) == null ? void 0 : c.minute) != null ? `${a.matchClock.minute}'` : ""
|
|
1523
1523
|
}
|
|
1524
1524
|
),
|
|
1525
1525
|
/* @__PURE__ */ t("div", { style: { padding: "0 4px" }, children: /* @__PURE__ */ p(re, { spacing: 1.5, columns: "1fr auto 1fr", children: [
|
|
1526
1526
|
/* @__PURE__ */ t(Oe, { name: e == null ? void 0 : e.homeName, jersey: Ee(o, "home") }),
|
|
1527
|
-
/* @__PURE__ */ t(
|
|
1527
|
+
/* @__PURE__ */ t(it, { text: ((f = (m = a == null ? void 0 : a.score) == null ? void 0 : m.home) != null ? f : 0) + ":" + ((T = (_ = a == null ? void 0 : a.score) == null ? void 0 : _.away) != null ? T : 0), name: "En vivo" }),
|
|
1528
1528
|
/* @__PURE__ */ t(Oe, { name: e == null ? void 0 : e.awayName, jersey: Ee(o, "away") })
|
|
1529
1529
|
] }) })
|
|
1530
1530
|
] }),
|
|
1531
1531
|
/* @__PURE__ */ p(j, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1532
|
-
/* @__PURE__ */ t(re, { spacing: 1, children: ((
|
|
1533
|
-
/* @__PURE__ */ t(re, { spacing: 2, children: ((
|
|
1534
|
-
Re("/deportes#event/live/" + e.id,
|
|
1535
|
-
}, className: Se.customButtonDisabled, children: /* @__PURE__ */ t("span", { className: Se.customButtonLabel, children:
|
|
1532
|
+
/* @__PURE__ */ t(re, { spacing: 1, children: ((C = i == null ? void 0 : i.outcomes) != null ? C : s).map((k, A) => /* @__PURE__ */ t(nt, { text: k.label.toUpperCase() }, A)) }),
|
|
1533
|
+
/* @__PURE__ */ t(re, { spacing: 2, children: ((I = i == null ? void 0 : i.outcomes) != null ? I : s).map((k, A) => /* @__PURE__ */ t(Oa, { variant: "primary", disabled: k.odds == null || (i == null ? void 0 : i.cashOutStatus) == "SUSPENDED", onClick: () => {
|
|
1534
|
+
Re("/deportes#event/live/" + e.id, k.id);
|
|
1535
|
+
}, className: Se.customButtonDisabled, children: /* @__PURE__ */ t("span", { className: Se.customButtonLabel, children: k.odds === void 0 ? "" : (k.odds / 1e3).toFixed(2) }) }, A)) })
|
|
1536
1536
|
] })
|
|
1537
1537
|
] }) });
|
|
1538
1538
|
}
|
|
@@ -1549,41 +1549,41 @@ const Ba = "oraculo__OraculoEventSemanaCard-module__cardContainer___4JuDe", La =
|
|
|
1549
1549
|
equipos: Ra
|
|
1550
1550
|
};
|
|
1551
1551
|
function Fa({ event: e, jersey: a }) {
|
|
1552
|
-
var s,
|
|
1552
|
+
var s, u, b, h, r, c, m;
|
|
1553
1553
|
const n = Q(), o = ee();
|
|
1554
1554
|
function i(f) {
|
|
1555
|
-
const _ = new Date(f),
|
|
1556
|
-
let
|
|
1557
|
-
return
|
|
1555
|
+
const _ = new Date(f), T = _.toLocaleDateString("es-ES", { weekday: "short" }).toUpperCase(), C = _.getDate().toString().padStart(2, "0"), I = (_.getMonth() + 1).toString().padStart(2, "0");
|
|
1556
|
+
let k = _.toLocaleTimeString("es-PE", { hour: "numeric", minute: "2-digit", hour12: !0 }).toUpperCase();
|
|
1557
|
+
return k = k.replace(/\./g, "").replace(/A\s*M/i, "AM").replace(/P\s*M/i, "PM"), `${T} ${C}/${I} | ${k}`;
|
|
1558
1558
|
}
|
|
1559
1559
|
const l = (f, _) => {
|
|
1560
|
-
const
|
|
1560
|
+
const T = `${e.homeName} vs ${e.awayName}`, C = _ ? (_ / 1e3).toFixed(2) : "", I = C ? `${T} - Cuota: ${C}` : T;
|
|
1561
1561
|
n({
|
|
1562
1562
|
element: "evento_semana_outcome",
|
|
1563
|
-
label: `Landing: ${o} - OraculoEventSemanaCard - Click: ${
|
|
1563
|
+
label: `Landing: ${o} - OraculoEventSemanaCard - Click: ${I}`,
|
|
1564
1564
|
target: "/deportes#in-play",
|
|
1565
1565
|
event_type: "click",
|
|
1566
1566
|
module_id: 301,
|
|
1567
1567
|
metadata: {
|
|
1568
1568
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1569
1569
|
},
|
|
1570
|
-
tags: { section: "OraculoEventSemanaCard", outcomes:
|
|
1570
|
+
tags: { section: "OraculoEventSemanaCard", outcomes: I }
|
|
1571
1571
|
}), Re("/deportes#event/" + e.id, f);
|
|
1572
1572
|
};
|
|
1573
1573
|
return /* @__PURE__ */ p("div", { className: de.cardContainer, children: [
|
|
1574
|
-
/* @__PURE__ */ t(
|
|
1574
|
+
/* @__PURE__ */ t(ot, { title: (s = e == null ? void 0 : e.group) != null ? s : "" }),
|
|
1575
1575
|
/* @__PURE__ */ t("div", { className: de.cardBackground, children: /* @__PURE__ */ p(j, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
1576
1576
|
/* @__PURE__ */ p(j, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1577
1577
|
/* @__PURE__ */ p("div", { className: de.equipos, children: [
|
|
1578
1578
|
/* @__PURE__ */ t(Oe, { name: e.homeName, size: "compact", jersey: Ee(a, "home") }),
|
|
1579
|
-
/* @__PURE__ */ t(
|
|
1579
|
+
/* @__PURE__ */ t(it, { text: "vs.", name: "", size: "small" }),
|
|
1580
1580
|
/* @__PURE__ */ t(Oe, { name: e.awayName, size: "compact", jersey: Ee(a, "away") })
|
|
1581
1581
|
] }),
|
|
1582
1582
|
/* @__PURE__ */ t(Ma, { text: i(e.start) })
|
|
1583
1583
|
] }),
|
|
1584
1584
|
/* @__PURE__ */ p(j, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
1585
|
-
/* @__PURE__ */ t(re, { spacing: 1, children: ((h = (
|
|
1586
|
-
/* @__PURE__ */ t("div", { className: de.jugadas, children: /* @__PURE__ */ t(re, { spacing: 1, children: ((
|
|
1585
|
+
/* @__PURE__ */ t(re, { spacing: 1, children: ((h = (b = (u = e == null ? void 0 : e.outcome) == null ? void 0 : u[0]) == null ? void 0 : b.outcomes) != null ? h : []).map((f, _) => /* @__PURE__ */ t(nt, { text: f.label.toUpperCase() }, _)) }),
|
|
1586
|
+
/* @__PURE__ */ t("div", { className: de.jugadas, children: /* @__PURE__ */ t(re, { spacing: 1, children: ((m = (c = (r = e == null ? void 0 : e.outcome) == null ? void 0 : r[0]) == null ? void 0 : c.outcomes) != null ? m : []).map((f, _) => /* @__PURE__ */ t(K, { variant: "primary", fullHeight: !0, onClick: () => {
|
|
1587
1587
|
l(f.id, f.odds);
|
|
1588
1588
|
}, children: (f.odds / 1e3).toFixed(2) }, _)) }) })
|
|
1589
1589
|
] })
|
|
@@ -1597,9 +1597,9 @@ function za({
|
|
|
1597
1597
|
onViewMore: o,
|
|
1598
1598
|
className: i = ""
|
|
1599
1599
|
}) {
|
|
1600
|
-
const l = W(null), [s,
|
|
1601
|
-
var
|
|
1602
|
-
|
|
1600
|
+
const l = W(null), [s, u] = H({ isStart: !0, isEnd: !1 }), b = Q(), h = ee(), r = !e || e.length === 0, c = () => {
|
|
1601
|
+
var I;
|
|
1602
|
+
b({
|
|
1603
1603
|
element: "destacados_carousel_prev",
|
|
1604
1604
|
label: `Landing: ${h} - OraculoSeccionDestacados - Anterior`,
|
|
1605
1605
|
target: "carousel",
|
|
@@ -1609,10 +1609,10 @@ function za({
|
|
|
1609
1609
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1610
1610
|
},
|
|
1611
1611
|
tags: { section: "OraculoSeccionDestacados" }
|
|
1612
|
-
}), (
|
|
1613
|
-
},
|
|
1614
|
-
var
|
|
1615
|
-
|
|
1612
|
+
}), (I = l.current) == null || I.prev();
|
|
1613
|
+
}, m = () => {
|
|
1614
|
+
var I;
|
|
1615
|
+
b({
|
|
1616
1616
|
element: "destacados_carousel_next",
|
|
1617
1617
|
label: `Landing: ${h} - OraculoSeccionDestacados - Siguiente`,
|
|
1618
1618
|
target: "carousel",
|
|
@@ -1622,9 +1622,9 @@ function za({
|
|
|
1622
1622
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1623
1623
|
},
|
|
1624
1624
|
tags: { section: "OraculoSeccionDestacados" }
|
|
1625
|
-
}), (
|
|
1625
|
+
}), (I = l.current) == null || I.next();
|
|
1626
1626
|
}, f = () => {
|
|
1627
|
-
|
|
1627
|
+
b({
|
|
1628
1628
|
element: "destacados_view_more",
|
|
1629
1629
|
label: `Landing: ${h} - OraculoSeccionDestacados - Ver más`,
|
|
1630
1630
|
target: "https://www.olimpo.bet/promociones",
|
|
@@ -1635,13 +1635,13 @@ function za({
|
|
|
1635
1635
|
},
|
|
1636
1636
|
tags: { section: "OraculoSeccionDestacados" }
|
|
1637
1637
|
}), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/promociones");
|
|
1638
|
-
}, _ = (
|
|
1639
|
-
if (!
|
|
1640
|
-
const
|
|
1641
|
-
|
|
1638
|
+
}, _ = (I) => {
|
|
1639
|
+
if (!I) return;
|
|
1640
|
+
const A = `https://www.olimpo.bet/promociones/${encodeURIComponent(I)}`;
|
|
1641
|
+
b({
|
|
1642
1642
|
element: "destacados_card",
|
|
1643
|
-
label: `Landing: ${h} - OraculoSeccionDestacados - Click: ${String(
|
|
1644
|
-
target:
|
|
1643
|
+
label: `Landing: ${h} - OraculoSeccionDestacados - Click: ${String(I)}`,
|
|
1644
|
+
target: A,
|
|
1645
1645
|
event_type: "click",
|
|
1646
1646
|
module_id: 301,
|
|
1647
1647
|
metadata: {
|
|
@@ -1649,11 +1649,11 @@ function za({
|
|
|
1649
1649
|
},
|
|
1650
1650
|
tags: {
|
|
1651
1651
|
section: "OraculoSeccionDestacados",
|
|
1652
|
-
promotion: String(
|
|
1652
|
+
promotion: String(I)
|
|
1653
1653
|
}
|
|
1654
|
-
}), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(
|
|
1655
|
-
},
|
|
1656
|
-
return /* @__PURE__ */ p("section", { className:
|
|
1654
|
+
}), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(A);
|
|
1655
|
+
}, T = i || void 0, C = be("(max-width:768px)");
|
|
1656
|
+
return /* @__PURE__ */ p("section", { className: T, style: { width: "100%" }, children: [
|
|
1657
1657
|
/* @__PURE__ */ p(
|
|
1658
1658
|
"header",
|
|
1659
1659
|
{
|
|
@@ -1664,8 +1664,8 @@ function za({
|
|
|
1664
1664
|
columnGap: 12,
|
|
1665
1665
|
rowGap: 8,
|
|
1666
1666
|
// marginBottom: 16,
|
|
1667
|
-
paddingLeft:
|
|
1668
|
-
paddingRight:
|
|
1667
|
+
paddingLeft: C ? 16 : 0,
|
|
1668
|
+
paddingRight: C ? 16 : 0
|
|
1669
1669
|
},
|
|
1670
1670
|
children: [
|
|
1671
1671
|
/* @__PURE__ */ t(se, { title: a, iconUrl: n, size: "md" }),
|
|
@@ -1677,7 +1677,7 @@ function za({
|
|
|
1677
1677
|
variant: "secondary",
|
|
1678
1678
|
iconOnly: !0,
|
|
1679
1679
|
leftIcon: /* @__PURE__ */ t(Te, {}),
|
|
1680
|
-
onClick:
|
|
1680
|
+
onClick: c,
|
|
1681
1681
|
disabled: s.isStart || r
|
|
1682
1682
|
}
|
|
1683
1683
|
),
|
|
@@ -1688,7 +1688,7 @@ function za({
|
|
|
1688
1688
|
variant: "secondary",
|
|
1689
1689
|
iconOnly: !0,
|
|
1690
1690
|
rightIcon: /* @__PURE__ */ t(ke, {}),
|
|
1691
|
-
onClick:
|
|
1691
|
+
onClick: m,
|
|
1692
1692
|
disabled: s.isEnd || r
|
|
1693
1693
|
}
|
|
1694
1694
|
)
|
|
@@ -1705,13 +1705,13 @@ function za({
|
|
|
1705
1705
|
perPage: void 0,
|
|
1706
1706
|
gap: "16px",
|
|
1707
1707
|
enableHorizontalWheel: !0,
|
|
1708
|
-
showRightGradient: !
|
|
1708
|
+
showRightGradient: !C,
|
|
1709
1709
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
1710
1710
|
breakpoints: {
|
|
1711
1711
|
768: { perPage: 2, focus: "start", padding: { left: "24px", right: "24px" } },
|
|
1712
1712
|
1024: { perPage: 2.5, focus: "start", padding: { left: "24px", right: "24px" } }
|
|
1713
1713
|
},
|
|
1714
|
-
renderItem: (
|
|
1714
|
+
renderItem: (I) => /* @__PURE__ */ t(
|
|
1715
1715
|
"div",
|
|
1716
1716
|
{
|
|
1717
1717
|
style: {
|
|
@@ -1719,12 +1719,12 @@ function za({
|
|
|
1719
1719
|
marginTop: 16,
|
|
1720
1720
|
cursor: "pointer"
|
|
1721
1721
|
},
|
|
1722
|
-
onClick: () => _(
|
|
1722
|
+
onClick: () => _(I.promotion),
|
|
1723
1723
|
children: /* @__PURE__ */ t(
|
|
1724
1724
|
"img",
|
|
1725
1725
|
{
|
|
1726
|
-
src: `https://olimpo.bet${
|
|
1727
|
-
alt:
|
|
1726
|
+
src: `https://olimpo.bet${I.image !== "" ? I.image : I.summary_image}`,
|
|
1727
|
+
alt: I.title,
|
|
1728
1728
|
style: {
|
|
1729
1729
|
width: "100%",
|
|
1730
1730
|
height: typeof window != "undefined" && window.innerWidth < 768 ? "80px" : "137px",
|
|
@@ -1735,10 +1735,10 @@ function za({
|
|
|
1735
1735
|
}
|
|
1736
1736
|
)
|
|
1737
1737
|
},
|
|
1738
|
-
`${
|
|
1738
|
+
`${I.title}-${I.image}`
|
|
1739
1739
|
),
|
|
1740
|
-
onMove: ({ isStart:
|
|
1741
|
-
|
|
1740
|
+
onMove: ({ isStart: I, isEnd: k }) => {
|
|
1741
|
+
u({ isStart: I, isEnd: k }), b({
|
|
1742
1742
|
element: "destacados_carousel_slide",
|
|
1743
1743
|
label: "OraculoSeccionDestacados - Slide Carousel",
|
|
1744
1744
|
target: "carousel",
|
|
@@ -1746,8 +1746,8 @@ function za({
|
|
|
1746
1746
|
module_id: 301,
|
|
1747
1747
|
metadata: {
|
|
1748
1748
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
1749
|
-
isStart:
|
|
1750
|
-
isEnd:
|
|
1749
|
+
isStart: I,
|
|
1750
|
+
isEnd: k
|
|
1751
1751
|
},
|
|
1752
1752
|
tags: { section: "OraculoSeccionDestacados" }
|
|
1753
1753
|
});
|
|
@@ -1757,16 +1757,16 @@ function za({
|
|
|
1757
1757
|
] });
|
|
1758
1758
|
}
|
|
1759
1759
|
const Ce = "__ORACULO_EXTRAS__";
|
|
1760
|
-
function
|
|
1760
|
+
function dt() {
|
|
1761
1761
|
const e = globalThis;
|
|
1762
1762
|
return e[Ce] || (e[Ce] = {}), e[Ce];
|
|
1763
1763
|
}
|
|
1764
1764
|
function Pa(e) {
|
|
1765
|
-
|
|
1765
|
+
dt().extras = e;
|
|
1766
1766
|
}
|
|
1767
1767
|
function le(e) {
|
|
1768
1768
|
var a;
|
|
1769
|
-
return (a =
|
|
1769
|
+
return (a = dt().extras) == null ? void 0 : a[e];
|
|
1770
1770
|
}
|
|
1771
1771
|
function Ua() {
|
|
1772
1772
|
delete globalThis[Ce];
|
|
@@ -1778,16 +1778,16 @@ function qa({
|
|
|
1778
1778
|
onCardClick: o
|
|
1779
1779
|
}) {
|
|
1780
1780
|
const i = Q(), l = ee(), s = te(
|
|
1781
|
-
() => (e != null ? e : []).map((r,
|
|
1782
|
-
var
|
|
1781
|
+
() => (e != null ? e : []).map((r, c) => {
|
|
1782
|
+
var m;
|
|
1783
1783
|
return {
|
|
1784
1784
|
...r,
|
|
1785
|
-
orden: (
|
|
1786
|
-
_originalIndex:
|
|
1785
|
+
orden: (m = r.orden) != null ? m : c + 1,
|
|
1786
|
+
_originalIndex: c
|
|
1787
1787
|
};
|
|
1788
|
-
}).sort((r,
|
|
1788
|
+
}).sort((r, c) => r.orden != null && c.orden != null ? r.orden - c.orden : r._originalIndex - c._originalIndex),
|
|
1789
1789
|
[e]
|
|
1790
|
-
),
|
|
1790
|
+
), u = !e || e.length === 0, b = u ? Array.from({ length: 6 }) : s.slice(0, 6), h = (r) => {
|
|
1791
1791
|
i({
|
|
1792
1792
|
element: "top_juegos_card",
|
|
1793
1793
|
label: `Landing: ${l} - OraculoSeccionTopJuegos - Open game: ${String(r.machine || "unknown")}`,
|
|
@@ -1802,9 +1802,9 @@ function qa({
|
|
|
1802
1802
|
section: "OraculoSeccionTopJuegos"
|
|
1803
1803
|
}
|
|
1804
1804
|
});
|
|
1805
|
-
const
|
|
1806
|
-
|
|
1807
|
-
|
|
1805
|
+
const c = le("showIframe"), m = le("loadMachine");
|
|
1806
|
+
c == null || c(), requestAnimationFrame(() => {
|
|
1807
|
+
m == null || m(r, !1, "CASINO");
|
|
1808
1808
|
});
|
|
1809
1809
|
};
|
|
1810
1810
|
return /* @__PURE__ */ t("section", { style: { width: "100%" }, children: /* @__PURE__ */ p(j, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
@@ -1822,29 +1822,116 @@ function qa({
|
|
|
1822
1822
|
justifyItems: "center",
|
|
1823
1823
|
width: "100%"
|
|
1824
1824
|
},
|
|
1825
|
-
children:
|
|
1826
|
-
var
|
|
1825
|
+
children: b.map((r, c) => {
|
|
1826
|
+
var m, f;
|
|
1827
1827
|
return /* @__PURE__ */ t(
|
|
1828
1828
|
ca,
|
|
1829
1829
|
{
|
|
1830
|
-
imageUrl:
|
|
1831
|
-
orden:
|
|
1832
|
-
loading:
|
|
1833
|
-
onClick:
|
|
1830
|
+
imageUrl: u ? "" : r.background ? `https://olimpo.bet${r.background}` : `https://olimpo.bet${(m = r.logo) != null ? m : ""}`,
|
|
1831
|
+
orden: u ? c + 1 : r.orden,
|
|
1832
|
+
loading: u,
|
|
1833
|
+
onClick: u ? void 0 : () => {
|
|
1834
1834
|
o == null || o(r), h(r);
|
|
1835
1835
|
}
|
|
1836
1836
|
},
|
|
1837
|
-
|
|
1837
|
+
u ? `sk-${c}` : (f = r.machine) != null ? f : `${c}`
|
|
1838
1838
|
);
|
|
1839
1839
|
})
|
|
1840
1840
|
}
|
|
1841
1841
|
)
|
|
1842
1842
|
] }) });
|
|
1843
1843
|
}
|
|
1844
|
-
const Va = (e, a) => {
|
|
1844
|
+
const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommendations", Da = (e, a) => {
|
|
1845
|
+
var n, o, i, l, s, u, b, h, r, c, m;
|
|
1846
|
+
return {
|
|
1847
|
+
...e,
|
|
1848
|
+
id: (n = e.id) != null ? n : a,
|
|
1849
|
+
orden: (o = e.id) != null ? o : a,
|
|
1850
|
+
machine: String(
|
|
1851
|
+
(s = (l = (i = e.id) != null ? i : e.machine) != null ? l : e.external_id) != null ? s : a
|
|
1852
|
+
),
|
|
1853
|
+
logo: e.logo,
|
|
1854
|
+
background: e.background,
|
|
1855
|
+
room_name: (u = e.room_name) != null ? u : "",
|
|
1856
|
+
product: (b = e.product) != null ? b : "",
|
|
1857
|
+
service: (h = e.service) != null ? h : "",
|
|
1858
|
+
provider: (r = e.provider) != null ? r : "",
|
|
1859
|
+
game_type: (c = e.game_type) != null ? c : null,
|
|
1860
|
+
external_id: (m = e.external_id) != null ? m : ""
|
|
1861
|
+
};
|
|
1862
|
+
}, Wa = (e) => e ? !Array.isArray(e) && Array.isArray(e.recommendations) ? e.recommendations.filter(Boolean).map((a) => String(a)) : [] : [], Ga = () => {
|
|
1863
|
+
var a, n, o;
|
|
1864
|
+
const e = le("user");
|
|
1865
|
+
return (o = (n = (a = e == null ? void 0 : e.userId) != null ? a : e == null ? void 0 : e.user) != null ? n : e == null ? void 0 : e.id) != null ? o : null;
|
|
1866
|
+
}, ja = async (e) => {
|
|
1867
|
+
const a = Ga(), n = new URLSearchParams({
|
|
1868
|
+
userId: String(a),
|
|
1869
|
+
productType: e,
|
|
1870
|
+
filter: "high-payout"
|
|
1871
|
+
}), o = `${Va}?${n.toString()}`, i = await fetch(o);
|
|
1872
|
+
if (!i.ok)
|
|
1873
|
+
throw new Error(
|
|
1874
|
+
`No se pudo obtener recomendaciones. HTTP ${i.status} ${i.statusText}`
|
|
1875
|
+
);
|
|
1876
|
+
return i.json();
|
|
1877
|
+
}, Fe = (e, a = !1, n = "Casino") => {
|
|
1878
|
+
const [o, i] = H([]), [l, s] = H(!1);
|
|
1879
|
+
return J(() => {
|
|
1880
|
+
let u = !1;
|
|
1881
|
+
return (async () => {
|
|
1882
|
+
if (!a) {
|
|
1883
|
+
i(Array.isArray(e) ? e : []), s(!1);
|
|
1884
|
+
return;
|
|
1885
|
+
}
|
|
1886
|
+
s(!0);
|
|
1887
|
+
try {
|
|
1888
|
+
const h = await ja(n), r = Wa(h);
|
|
1889
|
+
if (!r.length) {
|
|
1890
|
+
u || i([]);
|
|
1891
|
+
return;
|
|
1892
|
+
}
|
|
1893
|
+
const c = await Promise.allSettled(
|
|
1894
|
+
r.map(async (f, _) => {
|
|
1895
|
+
const T = await fetch(
|
|
1896
|
+
`https://api.mktolimpo.com/api/machine/${f}`
|
|
1897
|
+
);
|
|
1898
|
+
if (!T.ok)
|
|
1899
|
+
throw new Error(`No se pudo obtener machine ${f}`);
|
|
1900
|
+
const C = await T.json();
|
|
1901
|
+
return Da(C, _);
|
|
1902
|
+
})
|
|
1903
|
+
);
|
|
1904
|
+
if (u) return;
|
|
1905
|
+
const m = c.filter(
|
|
1906
|
+
(f) => f.status === "fulfilled"
|
|
1907
|
+
).map((f) => f.value);
|
|
1908
|
+
i(m);
|
|
1909
|
+
} catch (h) {
|
|
1910
|
+
console.error(`[usePersonalizeGameItems:${n}] error:`, h), u || i([]);
|
|
1911
|
+
} finally {
|
|
1912
|
+
u || s(!1);
|
|
1913
|
+
}
|
|
1914
|
+
})(), () => {
|
|
1915
|
+
u = !0;
|
|
1916
|
+
};
|
|
1917
|
+
}, [e, a, n]), {
|
|
1918
|
+
resolvedItems: o,
|
|
1919
|
+
loading: l
|
|
1920
|
+
};
|
|
1921
|
+
}, Ha = (e, a = !1) => Fe(e, a, "Casino"), Ka = (e, a = !1) => Fe(e, a, "Deportes Virtuales"), Za = (e, a = !1) => Fe(e, a, "Casino en vivo"), Ja = (e, a) => {
|
|
1845
1922
|
var n, o;
|
|
1846
1923
|
return (o = (n = e.orden) != null ? n : e.machine) != null ? o : a;
|
|
1847
|
-
},
|
|
1924
|
+
}, Xa = (e) => {
|
|
1925
|
+
if (typeof e == "boolean") return e;
|
|
1926
|
+
if (typeof e == "string")
|
|
1927
|
+
return e.toLowerCase() === "true";
|
|
1928
|
+
if (e && typeof e == "object") {
|
|
1929
|
+
if (typeof e.value == "boolean") return e.value;
|
|
1930
|
+
if (typeof e.value == "string")
|
|
1931
|
+
return e.value.toLowerCase() === "true";
|
|
1932
|
+
}
|
|
1933
|
+
return !1;
|
|
1934
|
+
}, Ya = ({
|
|
1848
1935
|
items: e,
|
|
1849
1936
|
title: a = "Casino en vivo",
|
|
1850
1937
|
subtitle: n = "Disfruta la emoción en tus juegos favoritos y gana en tiempo real.",
|
|
@@ -1852,43 +1939,47 @@ const Va = (e, a) => {
|
|
|
1852
1939
|
onCardClick: i,
|
|
1853
1940
|
backgroundDesktopUrl: l = "",
|
|
1854
1941
|
onViewMore: s,
|
|
1855
|
-
className:
|
|
1942
|
+
className: u,
|
|
1943
|
+
isPersonalize: b = !1
|
|
1856
1944
|
}) => {
|
|
1857
|
-
const
|
|
1858
|
-
|
|
1945
|
+
const h = Q(), r = ee(), c = Xa(b), { resolvedItems: m } = Za(
|
|
1946
|
+
e,
|
|
1947
|
+
c
|
|
1948
|
+
), f = c ? m : Array.isArray(e) ? e : [], _ = (C) => {
|
|
1949
|
+
h({
|
|
1859
1950
|
element: "live_casino_card",
|
|
1860
|
-
label: `Landing: ${
|
|
1861
|
-
target: String(
|
|
1951
|
+
label: `Landing: ${r} - OraculoSeccionCasinoEnVivo${c ? " - personalize" : ""} - Open game: ${String(C.machine || "unknown")}`,
|
|
1952
|
+
target: String(C.machine || "unknown"),
|
|
1862
1953
|
event_type: "click",
|
|
1863
1954
|
module_id: 301,
|
|
1864
1955
|
metadata: {
|
|
1865
1956
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1866
1957
|
},
|
|
1867
1958
|
tags: {
|
|
1868
|
-
game_name: String(
|
|
1869
|
-
provider:
|
|
1959
|
+
game_name: String(C.machine || "unknown"),
|
|
1960
|
+
provider: C.provider || "unknown",
|
|
1870
1961
|
section: "OraculoSeccionCasinoEnVivo"
|
|
1871
1962
|
}
|
|
1872
1963
|
});
|
|
1873
|
-
const
|
|
1874
|
-
if (!
|
|
1964
|
+
const I = le("showIframe"), k = le("loadMachine");
|
|
1965
|
+
if (!k) {
|
|
1875
1966
|
if (i) {
|
|
1876
|
-
i(
|
|
1967
|
+
i(C);
|
|
1877
1968
|
return;
|
|
1878
1969
|
}
|
|
1879
1970
|
console.warn(
|
|
1880
1971
|
"[OraculoSeccionCasinoEnVivo] No existe loadMachine en extras ni onCardClick. No se puede abrir el juego.",
|
|
1881
|
-
{ machine:
|
|
1972
|
+
{ machine: C == null ? void 0 : C.machine, provider: C == null ? void 0 : C.provider }
|
|
1882
1973
|
);
|
|
1883
1974
|
return;
|
|
1884
1975
|
}
|
|
1885
|
-
|
|
1886
|
-
|
|
1976
|
+
I == null || I(), typeof window != "undefined" && window.scrollTo({ top: 0, behavior: "smooth" }), requestAnimationFrame(() => {
|
|
1977
|
+
k == null || k(C, !1, "casino_en_vivo");
|
|
1887
1978
|
});
|
|
1888
|
-
},
|
|
1889
|
-
|
|
1979
|
+
}, T = () => {
|
|
1980
|
+
h({
|
|
1890
1981
|
element: "casino_en_vivo_view_more",
|
|
1891
|
-
label: `Landing: ${
|
|
1982
|
+
label: `Landing: ${r} - OraculoSeccionCasinoEnVivo${c ? " - personalize" : ""} - Ver más`,
|
|
1892
1983
|
target: "https://www.olimpo.bet/casino-en-vivo",
|
|
1893
1984
|
event_type: "click",
|
|
1894
1985
|
module_id: 301,
|
|
@@ -1901,7 +1992,7 @@ const Va = (e, a) => {
|
|
|
1901
1992
|
return /* @__PURE__ */ p(
|
|
1902
1993
|
U,
|
|
1903
1994
|
{
|
|
1904
|
-
className:
|
|
1995
|
+
className: u,
|
|
1905
1996
|
sx: {
|
|
1906
1997
|
position: "relative",
|
|
1907
1998
|
color: "white",
|
|
@@ -1914,18 +2005,17 @@ const Va = (e, a) => {
|
|
|
1914
2005
|
sx: {
|
|
1915
2006
|
position: "absolute",
|
|
1916
2007
|
inset: 0,
|
|
1917
|
-
// mt: { xs: 0, md: 4 },
|
|
1918
2008
|
backgroundImage: {
|
|
1919
2009
|
xs: `
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
2010
|
+
linear-gradient(to bottom, #121212 0%, rgba(18,18,18,0) 10%),
|
|
2011
|
+
linear-gradient(to top, #121212 0%, rgba(18,18,18,0) 10%),
|
|
2012
|
+
url('${o}')
|
|
2013
|
+
`,
|
|
1924
2014
|
md: `
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
2015
|
+
linear-gradient(to bottom, #121212 0%, rgba(18,18,18,0) 10%),
|
|
2016
|
+
linear-gradient(to top, #121212 0%, rgba(18,18,18,0) 10%),
|
|
2017
|
+
url('${l}')
|
|
2018
|
+
`
|
|
1929
2019
|
},
|
|
1930
2020
|
backgroundSize: {
|
|
1931
2021
|
xs: "cover",
|
|
@@ -1986,7 +2076,7 @@ const Va = (e, a) => {
|
|
|
1986
2076
|
{
|
|
1987
2077
|
variant: "primary",
|
|
1988
2078
|
size: "md",
|
|
1989
|
-
onClick:
|
|
2079
|
+
onClick: T,
|
|
1990
2080
|
children: "Ver más"
|
|
1991
2081
|
}
|
|
1992
2082
|
) })
|
|
@@ -2002,18 +2092,18 @@ const Va = (e, a) => {
|
|
|
2002
2092
|
py: { xs: 3, md: 0 },
|
|
2003
2093
|
alignItems: "center"
|
|
2004
2094
|
},
|
|
2005
|
-
children: (
|
|
2006
|
-
var
|
|
2095
|
+
children: (f != null ? f : []).slice(0, 3).map((C, I) => {
|
|
2096
|
+
var k;
|
|
2007
2097
|
return /* @__PURE__ */ t(
|
|
2008
2098
|
da,
|
|
2009
2099
|
{
|
|
2010
|
-
logo: `https://olimpo.bet${
|
|
2011
|
-
provider:
|
|
2012
|
-
providerName:
|
|
2013
|
-
machine:
|
|
2014
|
-
onClick: () =>
|
|
2100
|
+
logo: `https://olimpo.bet${C.background ? C.background : (k = C.logo) != null ? k : ""}`,
|
|
2101
|
+
provider: C.provider,
|
|
2102
|
+
providerName: C.web_name,
|
|
2103
|
+
machine: C.machine,
|
|
2104
|
+
onClick: () => _(C)
|
|
2015
2105
|
},
|
|
2016
|
-
|
|
2106
|
+
Ja(C, I)
|
|
2017
2107
|
);
|
|
2018
2108
|
})
|
|
2019
2109
|
}
|
|
@@ -2023,7 +2113,7 @@ const Va = (e, a) => {
|
|
|
2023
2113
|
{
|
|
2024
2114
|
variant: "primary",
|
|
2025
2115
|
size: "lg",
|
|
2026
|
-
onClick:
|
|
2116
|
+
onClick: T,
|
|
2027
2117
|
children: "Ver más"
|
|
2028
2118
|
}
|
|
2029
2119
|
) })
|
|
@@ -2033,84 +2123,7 @@ const Va = (e, a) => {
|
|
|
2033
2123
|
]
|
|
2034
2124
|
}
|
|
2035
2125
|
);
|
|
2036
|
-
},
|
|
2037
|
-
var n, o, i, l, s, m, g, h, r, d, c;
|
|
2038
|
-
return {
|
|
2039
|
-
...e,
|
|
2040
|
-
id: (n = e.id) != null ? n : a,
|
|
2041
|
-
orden: (o = e.id) != null ? o : a,
|
|
2042
|
-
machine: String(
|
|
2043
|
-
(s = (l = (i = e.id) != null ? i : e.machine) != null ? l : e.external_id) != null ? s : a
|
|
2044
|
-
),
|
|
2045
|
-
logo: e.logo,
|
|
2046
|
-
background: e.background,
|
|
2047
|
-
room_name: (m = e.room_name) != null ? m : "",
|
|
2048
|
-
product: (g = e.product) != null ? g : "",
|
|
2049
|
-
service: (h = e.service) != null ? h : "",
|
|
2050
|
-
provider: (r = e.provider) != null ? r : "",
|
|
2051
|
-
game_type: (d = e.game_type) != null ? d : null,
|
|
2052
|
-
external_id: (c = e.external_id) != null ? c : ""
|
|
2053
|
-
};
|
|
2054
|
-
}, ja = (e) => e ? !Array.isArray(e) && Array.isArray(e.recommendations) ? e.recommendations.filter(Boolean).map((a) => String(a)) : [] : [], Ha = () => {
|
|
2055
|
-
var a, n, o;
|
|
2056
|
-
const e = le("user");
|
|
2057
|
-
return (o = (n = (a = e == null ? void 0 : e.userId) != null ? a : e == null ? void 0 : e.user) != null ? n : e == null ? void 0 : e.id) != null ? o : null;
|
|
2058
|
-
}, Ka = async (e) => {
|
|
2059
|
-
const a = Ha(), n = new URLSearchParams({
|
|
2060
|
-
userId: String(a),
|
|
2061
|
-
productType: e,
|
|
2062
|
-
filter: "high-payout"
|
|
2063
|
-
}), o = `${Wa}?${n.toString()}`, i = await fetch(o);
|
|
2064
|
-
if (!i.ok)
|
|
2065
|
-
throw new Error(
|
|
2066
|
-
`No se pudo obtener recomendaciones. HTTP ${i.status} ${i.statusText}`
|
|
2067
|
-
);
|
|
2068
|
-
return i.json();
|
|
2069
|
-
}, dt = (e, a = !1, n = "Casino") => {
|
|
2070
|
-
const [o, i] = H([]), [l, s] = H(!1);
|
|
2071
|
-
return J(() => {
|
|
2072
|
-
let m = !1;
|
|
2073
|
-
return (async () => {
|
|
2074
|
-
if (!a) {
|
|
2075
|
-
i(Array.isArray(e) ? e : []), s(!1);
|
|
2076
|
-
return;
|
|
2077
|
-
}
|
|
2078
|
-
s(!0);
|
|
2079
|
-
try {
|
|
2080
|
-
const h = await Ka(n), r = ja(h);
|
|
2081
|
-
if (!r.length) {
|
|
2082
|
-
m || i([]);
|
|
2083
|
-
return;
|
|
2084
|
-
}
|
|
2085
|
-
const d = await Promise.allSettled(
|
|
2086
|
-
r.map(async (f, _) => {
|
|
2087
|
-
const I = await fetch(
|
|
2088
|
-
`https://api.mktolimpo.com/api/machine/${f}`
|
|
2089
|
-
);
|
|
2090
|
-
if (!I.ok)
|
|
2091
|
-
throw new Error(`No se pudo obtener machine ${f}`);
|
|
2092
|
-
const R = await I.json();
|
|
2093
|
-
return Ga(R, _);
|
|
2094
|
-
})
|
|
2095
|
-
);
|
|
2096
|
-
if (m) return;
|
|
2097
|
-
const c = d.filter(
|
|
2098
|
-
(f) => f.status === "fulfilled"
|
|
2099
|
-
).map((f) => f.value);
|
|
2100
|
-
i(c);
|
|
2101
|
-
} catch (h) {
|
|
2102
|
-
console.error(`[usePersonalizeGameItems:${n}] error:`, h), m || i([]);
|
|
2103
|
-
} finally {
|
|
2104
|
-
m || s(!1);
|
|
2105
|
-
}
|
|
2106
|
-
})(), () => {
|
|
2107
|
-
m = !0;
|
|
2108
|
-
};
|
|
2109
|
-
}, [e, a, n]), {
|
|
2110
|
-
resolvedItems: o,
|
|
2111
|
-
loading: l
|
|
2112
|
-
};
|
|
2113
|
-
}, Za = (e, a = !1) => dt(e, a, "Casino"), Ja = (e, a = !1) => dt(e, a, "Deportes Virtuales"), Xa = (e) => {
|
|
2126
|
+
}, Qa = (e) => {
|
|
2114
2127
|
if (typeof e == "boolean") return e;
|
|
2115
2128
|
if (typeof e == "string")
|
|
2116
2129
|
return e.toLowerCase() === "true";
|
|
@@ -2123,12 +2136,12 @@ const Va = (e, a) => {
|
|
|
2123
2136
|
}, ut = (e, a) => {
|
|
2124
2137
|
var n, o;
|
|
2125
2138
|
return (o = (n = e.orden) != null ? n : e.machine) != null ? o : a;
|
|
2126
|
-
},
|
|
2127
|
-
const o = e.map((s,
|
|
2128
|
-
var
|
|
2139
|
+
}, en = (e, a = !0, n = 1) => {
|
|
2140
|
+
const o = e.map((s, u) => {
|
|
2141
|
+
var b;
|
|
2129
2142
|
return {
|
|
2130
|
-
id: ut(s,
|
|
2131
|
-
imageUrl: (
|
|
2143
|
+
id: ut(s, u),
|
|
2144
|
+
imageUrl: (b = s.logo) != null ? b : "",
|
|
2132
2145
|
...s.background ? { background: s.background } : {}
|
|
2133
2146
|
};
|
|
2134
2147
|
});
|
|
@@ -2152,7 +2165,7 @@ const Va = (e, a) => {
|
|
|
2152
2165
|
}), l = s;
|
|
2153
2166
|
}
|
|
2154
2167
|
return i;
|
|
2155
|
-
},
|
|
2168
|
+
}, tn = ({
|
|
2156
2169
|
items: e,
|
|
2157
2170
|
title: a = "Casino",
|
|
2158
2171
|
iconUrl: n = "/assets/img/home/Casino/diamante.svg",
|
|
@@ -2160,16 +2173,16 @@ const Va = (e, a) => {
|
|
|
2160
2173
|
onViewMore: i,
|
|
2161
2174
|
mosaicFirst: l = !0,
|
|
2162
2175
|
gridSize: s = 1,
|
|
2163
|
-
isPersonalize:
|
|
2176
|
+
isPersonalize: u = !1
|
|
2164
2177
|
}) => {
|
|
2165
|
-
const
|
|
2178
|
+
const b = Q(), h = ee(), r = W(null), [c, m] = H({ isStart: !0, isEnd: !1 }), f = Qa(u), { resolvedItems: _, loading: T } = Ha(
|
|
2166
2179
|
e,
|
|
2167
2180
|
f
|
|
2168
|
-
),
|
|
2169
|
-
var
|
|
2170
|
-
|
|
2181
|
+
), C = f ? _ : Array.isArray(e) ? e : [], I = () => {
|
|
2182
|
+
var N;
|
|
2183
|
+
b({
|
|
2171
2184
|
element: "casino_prev",
|
|
2172
|
-
label: `Landing: ${h} - OraculoSeccionCasino ${
|
|
2185
|
+
label: `Landing: ${h} - OraculoSeccionCasino ${u ? " - personalize" : ""} - Anterior`,
|
|
2173
2186
|
target: "prev",
|
|
2174
2187
|
event_type: "click",
|
|
2175
2188
|
module_id: 301,
|
|
@@ -2177,12 +2190,12 @@ const Va = (e, a) => {
|
|
|
2177
2190
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2178
2191
|
},
|
|
2179
2192
|
tags: { section: "OraculoSeccionCasino" }
|
|
2180
|
-
}), (
|
|
2181
|
-
},
|
|
2182
|
-
var
|
|
2183
|
-
|
|
2193
|
+
}), (N = r.current) == null || N.prev();
|
|
2194
|
+
}, k = () => {
|
|
2195
|
+
var N;
|
|
2196
|
+
b({
|
|
2184
2197
|
element: "casino_next",
|
|
2185
|
-
label: `Landing: ${h} - OraculoSeccionCasino ${
|
|
2198
|
+
label: `Landing: ${h} - OraculoSeccionCasino ${u ? " - personalize" : ""} - Siguiente`,
|
|
2186
2199
|
target: "next",
|
|
2187
2200
|
event_type: "click",
|
|
2188
2201
|
module_id: 301,
|
|
@@ -2190,11 +2203,11 @@ const Va = (e, a) => {
|
|
|
2190
2203
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2191
2204
|
},
|
|
2192
2205
|
tags: { section: "OraculoSeccionCasino" }
|
|
2193
|
-
}), (
|
|
2194
|
-
},
|
|
2195
|
-
if (
|
|
2206
|
+
}), (N = r.current) == null || N.next();
|
|
2207
|
+
}, A = () => {
|
|
2208
|
+
if (b({
|
|
2196
2209
|
element: "casino_view_more",
|
|
2197
|
-
label: `Landing: ${h} - OraculoSeccionCasino ${
|
|
2210
|
+
label: `Landing: ${h} - OraculoSeccionCasino ${u ? " - personalize" : ""} - Ver más`,
|
|
2198
2211
|
target: "https://www.olimpo.bet/casino",
|
|
2199
2212
|
event_type: "click",
|
|
2200
2213
|
module_id: 301,
|
|
@@ -2207,13 +2220,13 @@ const Va = (e, a) => {
|
|
|
2207
2220
|
return;
|
|
2208
2221
|
}
|
|
2209
2222
|
typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/casino");
|
|
2210
|
-
}, L = (
|
|
2211
|
-
const
|
|
2212
|
-
id: `sk-${
|
|
2223
|
+
}, L = (N = !0, P = 4) => {
|
|
2224
|
+
const E = (R) => Array.from({ length: R }, (q, g) => ({
|
|
2225
|
+
id: `sk-${R}-${g}`,
|
|
2213
2226
|
imageUrl: ""
|
|
2214
2227
|
})), O = [];
|
|
2215
|
-
return
|
|
2216
|
-
},
|
|
2228
|
+
return N && O.push({ id: "mosaic-loading", kind: "mosaic", items: E(5) }), O.push({ id: "grid-loading", kind: "grid", items: E(P) }), O;
|
|
2229
|
+
}, M = f ? T : !Array.isArray(e) || e.length === 0, F = Ye("(max-width:768px)"), w = M ? L(l, s) : en(C, l, s);
|
|
2217
2230
|
return /* @__PURE__ */ t("section", { children: /* @__PURE__ */ p(j, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
2218
2231
|
/* @__PURE__ */ p(
|
|
2219
2232
|
U,
|
|
@@ -2235,9 +2248,9 @@ const Va = (e, a) => {
|
|
|
2235
2248
|
ariaLabel: "Anterior",
|
|
2236
2249
|
variant: "secondary",
|
|
2237
2250
|
iconOnly: !0,
|
|
2238
|
-
leftIcon: /* @__PURE__ */ t(
|
|
2239
|
-
onClick:
|
|
2240
|
-
disabled:
|
|
2251
|
+
leftIcon: /* @__PURE__ */ t(et, {}),
|
|
2252
|
+
onClick: I,
|
|
2253
|
+
disabled: c.isStart
|
|
2241
2254
|
}
|
|
2242
2255
|
),
|
|
2243
2256
|
/* @__PURE__ */ t(
|
|
@@ -2246,13 +2259,13 @@ const Va = (e, a) => {
|
|
|
2246
2259
|
ariaLabel: "Siguiente",
|
|
2247
2260
|
variant: "secondary",
|
|
2248
2261
|
iconOnly: !0,
|
|
2249
|
-
rightIcon: /* @__PURE__ */ t(
|
|
2250
|
-
onClick:
|
|
2251
|
-
disabled:
|
|
2262
|
+
rightIcon: /* @__PURE__ */ t(tt, {}),
|
|
2263
|
+
onClick: k,
|
|
2264
|
+
disabled: c.isEnd
|
|
2252
2265
|
}
|
|
2253
2266
|
)
|
|
2254
2267
|
] }),
|
|
2255
|
-
/* @__PURE__ */ t(U, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(K, { variant: "secondary", onClick:
|
|
2268
|
+
/* @__PURE__ */ t(U, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(K, { variant: "secondary", onClick: A, children: "Ver más" }) })
|
|
2256
2269
|
]
|
|
2257
2270
|
}
|
|
2258
2271
|
),
|
|
@@ -2260,14 +2273,12 @@ const Va = (e, a) => {
|
|
|
2260
2273
|
ce,
|
|
2261
2274
|
{
|
|
2262
2275
|
ref: r,
|
|
2263
|
-
items:
|
|
2276
|
+
items: w,
|
|
2264
2277
|
perPage: void 0,
|
|
2265
2278
|
gap: "16px",
|
|
2266
2279
|
enableHorizontalWheel: !0,
|
|
2267
|
-
showRightGradient: !0,
|
|
2268
|
-
options: { autoWidth: !0, trimSpace: "move" },
|
|
2269
|
-
showRightGradient: !N,
|
|
2270
2280
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
2281
|
+
showRightGradient: !F,
|
|
2271
2282
|
breakpoints: {
|
|
2272
2283
|
400: {
|
|
2273
2284
|
gap: "4px",
|
|
@@ -2285,42 +2296,42 @@ const Va = (e, a) => {
|
|
|
2285
2296
|
padding: { left: "24px", right: "24px" }
|
|
2286
2297
|
}
|
|
2287
2298
|
},
|
|
2288
|
-
renderItem: (
|
|
2289
|
-
|
|
2299
|
+
renderItem: (N) => /* @__PURE__ */ t("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ t(
|
|
2300
|
+
rt,
|
|
2290
2301
|
{
|
|
2291
|
-
items:
|
|
2292
|
-
layout:
|
|
2293
|
-
loading:
|
|
2294
|
-
onClick: (
|
|
2295
|
-
if (
|
|
2296
|
-
const
|
|
2297
|
-
(
|
|
2302
|
+
items: N.items,
|
|
2303
|
+
layout: N.kind === "mosaic" ? "mosaic" : "grid",
|
|
2304
|
+
loading: M,
|
|
2305
|
+
onClick: (P) => {
|
|
2306
|
+
if (M) return;
|
|
2307
|
+
const E = C.find(
|
|
2308
|
+
(q, g) => String(ut(q, g)) === String(P.id)
|
|
2298
2309
|
);
|
|
2299
|
-
if (!
|
|
2300
|
-
o == null || o(
|
|
2310
|
+
if (!E) return;
|
|
2311
|
+
o == null || o(E), b({
|
|
2301
2312
|
element: "casino_game_card",
|
|
2302
|
-
label: `Landing: ${h} - OraculoSeccionCasino ${
|
|
2303
|
-
target: String(
|
|
2313
|
+
label: `Landing: ${h} - OraculoSeccionCasino ${u ? " - personalize" : ""} - Game: ${String(E.machine || "unknown")}`,
|
|
2314
|
+
target: String(E.machine || "unknown"),
|
|
2304
2315
|
event_type: "click",
|
|
2305
2316
|
module_id: 301,
|
|
2306
2317
|
metadata: {
|
|
2307
2318
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2308
2319
|
},
|
|
2309
2320
|
tags: {
|
|
2310
|
-
game_name: String(
|
|
2321
|
+
game_name: String(E.machine || "unknown"),
|
|
2311
2322
|
section: a || "Casino"
|
|
2312
2323
|
}
|
|
2313
2324
|
});
|
|
2314
|
-
const O = le("showIframe"),
|
|
2315
|
-
O == null || O(),
|
|
2325
|
+
const O = le("showIframe"), R = le("loadMachine");
|
|
2326
|
+
O == null || O(), R == null || R(E, !1, "CASINO");
|
|
2316
2327
|
}
|
|
2317
2328
|
}
|
|
2318
2329
|
) }),
|
|
2319
|
-
onMove: ({ isStart:
|
|
2330
|
+
onMove: ({ isStart: N, isEnd: P }) => m({ isStart: N, isEnd: P })
|
|
2320
2331
|
}
|
|
2321
2332
|
)
|
|
2322
2333
|
] }) });
|
|
2323
|
-
},
|
|
2334
|
+
}, an = (e) => {
|
|
2324
2335
|
if (typeof e == "boolean") return e;
|
|
2325
2336
|
if (typeof e == "string")
|
|
2326
2337
|
return e.toLowerCase() === "true";
|
|
@@ -2333,12 +2344,12 @@ const Va = (e, a) => {
|
|
|
2333
2344
|
}, mt = (e, a) => {
|
|
2334
2345
|
var n, o;
|
|
2335
2346
|
return (o = (n = e.orden) != null ? n : e.machine) != null ? o : a;
|
|
2336
|
-
},
|
|
2337
|
-
const o = e.map((s,
|
|
2338
|
-
var
|
|
2347
|
+
}, nn = (e, a = !0, n = 1) => {
|
|
2348
|
+
const o = e.map((s, u) => {
|
|
2349
|
+
var b;
|
|
2339
2350
|
return {
|
|
2340
|
-
id: mt(s,
|
|
2341
|
-
imageUrl: (
|
|
2351
|
+
id: mt(s, u),
|
|
2352
|
+
imageUrl: (b = s.logo) != null ? b : "",
|
|
2342
2353
|
...s.background ? { background: s.background } : {}
|
|
2343
2354
|
};
|
|
2344
2355
|
});
|
|
@@ -2362,7 +2373,7 @@ const Va = (e, a) => {
|
|
|
2362
2373
|
}), l = s;
|
|
2363
2374
|
}
|
|
2364
2375
|
return i;
|
|
2365
|
-
},
|
|
2376
|
+
}, on = (e = !0, a = 4) => {
|
|
2366
2377
|
const n = (i) => Array.from({ length: i }, (l, s) => ({
|
|
2367
2378
|
id: `sk-${i}-${s}`,
|
|
2368
2379
|
imageUrl: ""
|
|
@@ -2376,7 +2387,7 @@ const Va = (e, a) => {
|
|
|
2376
2387
|
kind: "grid",
|
|
2377
2388
|
items: n(a)
|
|
2378
2389
|
}), o;
|
|
2379
|
-
},
|
|
2390
|
+
}, rn = ({
|
|
2380
2391
|
items: e,
|
|
2381
2392
|
title: a = "Virtuales",
|
|
2382
2393
|
iconUrl: n = "/assets/img/home/Virtuales/virtuales.svg",
|
|
@@ -2384,16 +2395,16 @@ const Va = (e, a) => {
|
|
|
2384
2395
|
onViewMore: i,
|
|
2385
2396
|
mosaicFirst: l = !0,
|
|
2386
2397
|
gridSize: s = 1,
|
|
2387
|
-
isPersonalize:
|
|
2398
|
+
isPersonalize: u = !1
|
|
2388
2399
|
}) => {
|
|
2389
|
-
const
|
|
2400
|
+
const b = W(null), [h, r] = H({ isStart: !0, isEnd: !1 }), c = Q(), m = ee(), f = an(u), { resolvedItems: _, loading: T } = Ka(
|
|
2390
2401
|
e,
|
|
2391
2402
|
f
|
|
2392
|
-
),
|
|
2393
|
-
var
|
|
2394
|
-
|
|
2403
|
+
), C = f ? _ : Array.isArray(e) ? e : [], I = () => {
|
|
2404
|
+
var w;
|
|
2405
|
+
c({
|
|
2395
2406
|
element: "virtuales_prev",
|
|
2396
|
-
label: `Landing: ${
|
|
2407
|
+
label: `Landing: ${m} - OraculoSeccionVirtuales${f ? " - personalize" : ""} - Anterior`,
|
|
2397
2408
|
target: "prev",
|
|
2398
2409
|
event_type: "click",
|
|
2399
2410
|
module_id: 301,
|
|
@@ -2401,12 +2412,12 @@ const Va = (e, a) => {
|
|
|
2401
2412
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2402
2413
|
},
|
|
2403
2414
|
tags: { section: "OraculoSeccionVirtuales" }
|
|
2404
|
-
}), (
|
|
2405
|
-
},
|
|
2406
|
-
var
|
|
2407
|
-
|
|
2415
|
+
}), (w = b.current) == null || w.prev();
|
|
2416
|
+
}, k = () => {
|
|
2417
|
+
var w;
|
|
2418
|
+
c({
|
|
2408
2419
|
element: "virtuales_next",
|
|
2409
|
-
label: `Landing: ${
|
|
2420
|
+
label: `Landing: ${m} - OraculoSeccionVirtuales${f ? " - personalize" : ""} - Siguiente`,
|
|
2410
2421
|
target: "next",
|
|
2411
2422
|
event_type: "click",
|
|
2412
2423
|
module_id: 301,
|
|
@@ -2414,11 +2425,11 @@ const Va = (e, a) => {
|
|
|
2414
2425
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2415
2426
|
},
|
|
2416
2427
|
tags: { section: "OraculoSeccionVirtuales" }
|
|
2417
|
-
}), (
|
|
2418
|
-
},
|
|
2419
|
-
if (
|
|
2428
|
+
}), (w = b.current) == null || w.next();
|
|
2429
|
+
}, A = () => {
|
|
2430
|
+
if (c({
|
|
2420
2431
|
element: "virtuales_view_more",
|
|
2421
|
-
label: `Landing: ${
|
|
2432
|
+
label: `Landing: ${m} - OraculoSeccionVirtuales${f ? " - personalize" : ""} - Ver más`,
|
|
2422
2433
|
target: "https://www.olimpo.bet/juegos-virtuales",
|
|
2423
2434
|
event_type: "click",
|
|
2424
2435
|
module_id: 301,
|
|
@@ -2431,7 +2442,7 @@ const Va = (e, a) => {
|
|
|
2431
2442
|
return;
|
|
2432
2443
|
}
|
|
2433
2444
|
typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/juegos-virtuales");
|
|
2434
|
-
}, L = !e || e.length === 0,
|
|
2445
|
+
}, L = f ? T : !Array.isArray(e) || e.length === 0, M = be("(max-width:768px)"), F = L ? on(l, s) : nn(C, l, s);
|
|
2435
2446
|
return /* @__PURE__ */ t("section", { children: /* @__PURE__ */ p(j, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
2436
2447
|
/* @__PURE__ */ p(
|
|
2437
2448
|
U,
|
|
@@ -2453,8 +2464,8 @@ const Va = (e, a) => {
|
|
|
2453
2464
|
ariaLabel: "Anterior",
|
|
2454
2465
|
variant: "secondary",
|
|
2455
2466
|
iconOnly: !0,
|
|
2456
|
-
leftIcon: /* @__PURE__ */ t(
|
|
2457
|
-
onClick:
|
|
2467
|
+
leftIcon: /* @__PURE__ */ t(et, {}),
|
|
2468
|
+
onClick: I,
|
|
2458
2469
|
disabled: h.isStart
|
|
2459
2470
|
}
|
|
2460
2471
|
),
|
|
@@ -2464,21 +2475,21 @@ const Va = (e, a) => {
|
|
|
2464
2475
|
ariaLabel: "Siguiente",
|
|
2465
2476
|
variant: "secondary",
|
|
2466
2477
|
iconOnly: !0,
|
|
2467
|
-
rightIcon: /* @__PURE__ */ t(
|
|
2468
|
-
onClick:
|
|
2478
|
+
rightIcon: /* @__PURE__ */ t(tt, {}),
|
|
2479
|
+
onClick: k,
|
|
2469
2480
|
disabled: h.isEnd
|
|
2470
2481
|
}
|
|
2471
2482
|
)
|
|
2472
2483
|
] }),
|
|
2473
|
-
/* @__PURE__ */ t(U, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(K, { variant: "secondary", onClick:
|
|
2484
|
+
/* @__PURE__ */ t(U, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(K, { variant: "secondary", onClick: A, children: "Ver más" }) })
|
|
2474
2485
|
]
|
|
2475
2486
|
}
|
|
2476
2487
|
),
|
|
2477
2488
|
/* @__PURE__ */ t(
|
|
2478
2489
|
ce,
|
|
2479
2490
|
{
|
|
2480
|
-
ref:
|
|
2481
|
-
items:
|
|
2491
|
+
ref: b,
|
|
2492
|
+
items: F,
|
|
2482
2493
|
perPage: void 0,
|
|
2483
2494
|
gap: "16px",
|
|
2484
2495
|
breakpoints: {
|
|
@@ -2499,56 +2510,54 @@ const Va = (e, a) => {
|
|
|
2499
2510
|
}
|
|
2500
2511
|
},
|
|
2501
2512
|
enableHorizontalWheel: !0,
|
|
2502
|
-
showRightGradient: !
|
|
2513
|
+
showRightGradient: !M,
|
|
2503
2514
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
renderItem: (k) => /* @__PURE__ */ t("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ t(
|
|
2507
|
-
it,
|
|
2515
|
+
renderItem: (w) => /* @__PURE__ */ t("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ t(
|
|
2516
|
+
rt,
|
|
2508
2517
|
{
|
|
2509
|
-
items:
|
|
2510
|
-
layout:
|
|
2518
|
+
items: w.items,
|
|
2519
|
+
layout: w.kind === "mosaic" ? "mosaic" : "grid",
|
|
2511
2520
|
loading: L,
|
|
2512
|
-
onClick: (
|
|
2521
|
+
onClick: (N) => {
|
|
2513
2522
|
if (L) return;
|
|
2514
|
-
const
|
|
2515
|
-
(
|
|
2523
|
+
const P = C.find(
|
|
2524
|
+
(R, q) => String(mt(R, q)) === String(N.id)
|
|
2516
2525
|
);
|
|
2517
|
-
if (!
|
|
2526
|
+
if (!P) {
|
|
2518
2527
|
console.warn(
|
|
2519
2528
|
"[virtuales] no se encontró game para id:",
|
|
2520
|
-
|
|
2529
|
+
N.id
|
|
2521
2530
|
);
|
|
2522
2531
|
return;
|
|
2523
2532
|
}
|
|
2524
|
-
o == null || o(
|
|
2533
|
+
o == null || o(P), c({
|
|
2525
2534
|
element: "virtuales_game_card",
|
|
2526
|
-
label: `Landing: ${
|
|
2527
|
-
target: String(
|
|
2535
|
+
label: `Landing: ${m} - OraculoSeccionVirtuales${f ? " - personalize" : ""} - Game: ${String(P.machine || "unknown")}`,
|
|
2536
|
+
target: String(P.machine || "unknown"),
|
|
2528
2537
|
event_type: "click",
|
|
2529
2538
|
module_id: 301,
|
|
2530
2539
|
metadata: {
|
|
2531
2540
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2532
2541
|
},
|
|
2533
2542
|
tags: {
|
|
2534
|
-
game_name: String(
|
|
2543
|
+
game_name: String(P.machine || "unknown"),
|
|
2535
2544
|
section: a || "Virtuales"
|
|
2536
2545
|
}
|
|
2537
2546
|
});
|
|
2538
|
-
const
|
|
2539
|
-
|
|
2540
|
-
|
|
2547
|
+
const E = le("showIframe"), O = le("loadMachine");
|
|
2548
|
+
E == null || E(), O == null || O(
|
|
2549
|
+
P,
|
|
2541
2550
|
!1,
|
|
2542
2551
|
f ? "VIRTUALES_PERSONALIZE" : "VIRTUALES"
|
|
2543
2552
|
);
|
|
2544
2553
|
}
|
|
2545
2554
|
}
|
|
2546
2555
|
) }),
|
|
2547
|
-
onMove: ({ isStart:
|
|
2556
|
+
onMove: ({ isStart: w, isEnd: N }) => r({ isStart: w, isEnd: N })
|
|
2548
2557
|
}
|
|
2549
2558
|
)
|
|
2550
2559
|
] }) });
|
|
2551
|
-
},
|
|
2560
|
+
}, ln = (e) => ({
|
|
2552
2561
|
position: "relative",
|
|
2553
2562
|
py: 8,
|
|
2554
2563
|
color: "#fff",
|
|
@@ -2562,15 +2571,15 @@ const Va = (e, a) => {
|
|
|
2562
2571
|
backgroundRepeat: "no-repeat",
|
|
2563
2572
|
backgroundPosition: "center",
|
|
2564
2573
|
backgroundSize: "cover"
|
|
2565
|
-
}),
|
|
2574
|
+
}), We = {
|
|
2566
2575
|
textAlign: "center",
|
|
2567
2576
|
lineHeight: 1.1,
|
|
2568
2577
|
mb: 1.5
|
|
2569
|
-
},
|
|
2578
|
+
}, Ge = {
|
|
2570
2579
|
display: "inline-block",
|
|
2571
2580
|
fontWeight: 600,
|
|
2572
2581
|
fontSize: 24
|
|
2573
|
-
},
|
|
2582
|
+
}, je = {
|
|
2574
2583
|
display: "inline-block",
|
|
2575
2584
|
fontSize: 24,
|
|
2576
2585
|
lineHeight: 1.1,
|
|
@@ -2580,92 +2589,92 @@ const Va = (e, a) => {
|
|
|
2580
2589
|
0 0 6px rgba(255, 255, 255, .6),
|
|
2581
2590
|
0 1px 0 rgba(137, 137, 137, .85)
|
|
2582
2591
|
`
|
|
2583
|
-
},
|
|
2592
|
+
}, sn = ({
|
|
2584
2593
|
headline: e,
|
|
2585
2594
|
headline2: a,
|
|
2586
2595
|
items: n,
|
|
2587
2596
|
backgroundImageUrl: o
|
|
2588
2597
|
}) => {
|
|
2589
|
-
const i = Q(), l = ee(), s = be("(max-width: 767px)"),
|
|
2598
|
+
const i = Q(), l = ee(), s = be("(max-width: 767px)"), u = n.length > 1, b = W(null), h = W(null), r = W(!1), c = W(!1), [m, f] = H(0), [_, T] = H({ isStart: !0, isEnd: !1 });
|
|
2590
2599
|
J(() => {
|
|
2591
|
-
const
|
|
2600
|
+
const E = setTimeout(() => {
|
|
2592
2601
|
r.current = !0;
|
|
2593
2602
|
}, 500);
|
|
2594
|
-
return () => clearTimeout(
|
|
2603
|
+
return () => clearTimeout(E);
|
|
2595
2604
|
}, []);
|
|
2596
|
-
const
|
|
2605
|
+
const C = W(_);
|
|
2597
2606
|
J(() => {
|
|
2598
|
-
|
|
2607
|
+
C.current = _;
|
|
2599
2608
|
}, [_]);
|
|
2600
|
-
const
|
|
2609
|
+
const I = W(!1), k = W(null), A = n == null ? void 0 : n[m], L = te(
|
|
2601
2610
|
() => {
|
|
2602
|
-
var
|
|
2603
|
-
return (
|
|
2611
|
+
var E, O;
|
|
2612
|
+
return (O = (E = A == null ? void 0 : A.backgroundImageUrl) != null ? E : o) != null ? O : "";
|
|
2604
2613
|
},
|
|
2605
|
-
[
|
|
2606
|
-
),
|
|
2614
|
+
[A, o]
|
|
2615
|
+
), M = ln(L), F = !n || n.length === 0, w = (E, O) => {
|
|
2607
2616
|
i({
|
|
2608
2617
|
element: "welcome_banner_button",
|
|
2609
|
-
label: `OraculoSeccionBonoBienvenida - Banner button click: ${
|
|
2618
|
+
label: `OraculoSeccionBonoBienvenida - Banner button click: ${E.title || "OraculoSeccionBonoBienvenida - Banner " + (O + 1)}`,
|
|
2610
2619
|
target: "action",
|
|
2611
2620
|
event_type: "click",
|
|
2612
2621
|
module_id: 301,
|
|
2613
2622
|
metadata: {
|
|
2614
2623
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
2615
|
-
banner_position:
|
|
2624
|
+
banner_position: O + 1,
|
|
2616
2625
|
banner_total: (n == null ? void 0 : n.length) || 0
|
|
2617
2626
|
},
|
|
2618
2627
|
tags: {
|
|
2619
|
-
banner_title:
|
|
2620
|
-
button_text:
|
|
2628
|
+
banner_title: E.title || "no_title",
|
|
2629
|
+
button_text: E.buttonText || "no_text"
|
|
2621
2630
|
}
|
|
2622
|
-
}),
|
|
2623
|
-
},
|
|
2631
|
+
}), E.onButtonClick && E.onButtonClick();
|
|
2632
|
+
}, N = (E) => {
|
|
2624
2633
|
if (!r.current) return;
|
|
2625
|
-
if (
|
|
2626
|
-
|
|
2634
|
+
if (c.current) {
|
|
2635
|
+
c.current = !1;
|
|
2627
2636
|
return;
|
|
2628
2637
|
}
|
|
2629
|
-
const
|
|
2638
|
+
const O = n == null ? void 0 : n[E];
|
|
2630
2639
|
i({
|
|
2631
2640
|
element: "welcome_banner_carousel",
|
|
2632
|
-
label: `Landing: ${l} - OraculoSeccionBonoBienvenida - Banner view: ${(
|
|
2641
|
+
label: `Landing: ${l} - OraculoSeccionBonoBienvenida - Banner view: ${(O == null ? void 0 : O.title) || "OraculoSeccionBonoBienvenida - Banner " + (E + 1)}`,
|
|
2633
2642
|
target: "no_url",
|
|
2634
2643
|
event_type: "view",
|
|
2635
2644
|
module_id: 301,
|
|
2636
2645
|
metadata: {
|
|
2637
2646
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
2638
|
-
slide_index:
|
|
2647
|
+
slide_index: E + 1,
|
|
2639
2648
|
total_slides: (n == null ? void 0 : n.length) || 0,
|
|
2640
2649
|
interaction_type: "manual_slide"
|
|
2641
2650
|
},
|
|
2642
2651
|
tags: {
|
|
2643
|
-
banner_position: String(
|
|
2644
|
-
banner_title: (
|
|
2652
|
+
banner_position: String(E + 1),
|
|
2653
|
+
banner_title: (O == null ? void 0 : O.title) || "no_title"
|
|
2645
2654
|
}
|
|
2646
2655
|
});
|
|
2647
2656
|
};
|
|
2648
2657
|
J(() => {
|
|
2649
|
-
const
|
|
2650
|
-
if (!
|
|
2651
|
-
const
|
|
2652
|
-
var
|
|
2653
|
-
if (
|
|
2654
|
-
const
|
|
2655
|
-
if (Math.abs(
|
|
2656
|
-
const
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
},
|
|
2658
|
+
const E = h.current;
|
|
2659
|
+
if (!E) return;
|
|
2660
|
+
const O = 6, R = 380, q = (g) => {
|
|
2661
|
+
var y, S;
|
|
2662
|
+
if (F || g.ctrlKey || I.current) return;
|
|
2663
|
+
const z = g.deltaX, $ = g.deltaY;
|
|
2664
|
+
if (Math.abs(z) <= Math.abs($) || Math.abs(z) < O) return;
|
|
2665
|
+
const d = z > 0;
|
|
2666
|
+
d && C.current.isEnd || !d && C.current.isStart || (g.preventDefault(), I.current = !0, d ? (y = b.current) == null || y.next() : (S = b.current) == null || S.prev(), k.current && window.clearTimeout(k.current), k.current = window.setTimeout(() => {
|
|
2667
|
+
I.current = !1;
|
|
2668
|
+
}, R));
|
|
2660
2669
|
};
|
|
2661
|
-
return
|
|
2662
|
-
|
|
2670
|
+
return E.addEventListener("wheel", q, { passive: !1 }), () => {
|
|
2671
|
+
E.removeEventListener("wheel", q), k.current && window.clearTimeout(k.current);
|
|
2663
2672
|
};
|
|
2664
|
-
}, [
|
|
2665
|
-
const
|
|
2666
|
-
var
|
|
2667
|
-
const q = (
|
|
2668
|
-
return
|
|
2673
|
+
}, [F]);
|
|
2674
|
+
const P = (E, O, R) => {
|
|
2675
|
+
var z, $;
|
|
2676
|
+
const q = (z = E.headline) != null ? z : e, g = ($ = E.headline2) != null ? $ : a;
|
|
2677
|
+
return O ? /* @__PURE__ */ p(
|
|
2669
2678
|
U,
|
|
2670
2679
|
{
|
|
2671
2680
|
sx: {
|
|
@@ -2678,7 +2687,7 @@ const Va = (e, a) => {
|
|
|
2678
2687
|
columnGap: 6
|
|
2679
2688
|
},
|
|
2680
2689
|
children: [
|
|
2681
|
-
(q ||
|
|
2690
|
+
(q || g) && /* @__PURE__ */ t(
|
|
2682
2691
|
U,
|
|
2683
2692
|
{
|
|
2684
2693
|
sx: {
|
|
@@ -2687,48 +2696,48 @@ const Va = (e, a) => {
|
|
|
2687
2696
|
justifyContent: "flex-start",
|
|
2688
2697
|
minHeight: "100%"
|
|
2689
2698
|
},
|
|
2690
|
-
children: /* @__PURE__ */ p(U, { sx: { ...
|
|
2691
|
-
q && /* @__PURE__ */ t(ie, { component: "span", sx:
|
|
2692
|
-
|
|
2699
|
+
children: /* @__PURE__ */ p(U, { sx: { ...We, textAlign: "left", mb: 0 }, children: [
|
|
2700
|
+
q && /* @__PURE__ */ t(ie, { component: "span", sx: Ge, children: q }),
|
|
2701
|
+
g && /* @__PURE__ */ p(ae, { children: [
|
|
2693
2702
|
/* @__PURE__ */ t("br", {}),
|
|
2694
|
-
/* @__PURE__ */ t(ie, { component: "span", sx:
|
|
2703
|
+
/* @__PURE__ */ t(ie, { component: "span", sx: je, children: g })
|
|
2695
2704
|
] })
|
|
2696
2705
|
] })
|
|
2697
2706
|
}
|
|
2698
2707
|
),
|
|
2699
2708
|
/* @__PURE__ */ t(U, { sx: { display: "flex", justifyContent: "center", alignItems: "center" }, children: /* @__PURE__ */ t(U, { sx: { width: "100%", maxWidth: 600, mx: "auto" }, children: /* @__PURE__ */ t(
|
|
2700
|
-
|
|
2709
|
+
qe,
|
|
2701
2710
|
{
|
|
2702
|
-
...
|
|
2703
|
-
onButtonClick: () =>
|
|
2711
|
+
...E,
|
|
2712
|
+
onButtonClick: () => w(E, R),
|
|
2704
2713
|
variant: "large"
|
|
2705
2714
|
}
|
|
2706
2715
|
) }) })
|
|
2707
2716
|
]
|
|
2708
2717
|
}
|
|
2709
2718
|
) : /* @__PURE__ */ p(U, { sx: { textAlign: "center" }, children: [
|
|
2710
|
-
(q ||
|
|
2711
|
-
q && /* @__PURE__ */ t(ie, { component: "span", sx:
|
|
2712
|
-
|
|
2719
|
+
(q || g) && /* @__PURE__ */ p(U, { sx: We, children: [
|
|
2720
|
+
q && /* @__PURE__ */ t(ie, { component: "span", sx: Ge, children: q }),
|
|
2721
|
+
g && /* @__PURE__ */ p(ae, { children: [
|
|
2713
2722
|
/* @__PURE__ */ t("br", {}),
|
|
2714
|
-
/* @__PURE__ */ t(ie, { component: "span", sx:
|
|
2723
|
+
/* @__PURE__ */ t(ie, { component: "span", sx: je, children: g })
|
|
2715
2724
|
] })
|
|
2716
2725
|
] }),
|
|
2717
2726
|
/* @__PURE__ */ t(U, { sx: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(
|
|
2718
|
-
|
|
2727
|
+
qe,
|
|
2719
2728
|
{
|
|
2720
|
-
...
|
|
2721
|
-
onButtonClick: () =>
|
|
2729
|
+
...E,
|
|
2730
|
+
onButtonClick: () => w(E, R),
|
|
2722
2731
|
variant: "small"
|
|
2723
2732
|
}
|
|
2724
2733
|
) })
|
|
2725
2734
|
] });
|
|
2726
2735
|
};
|
|
2727
|
-
return /* @__PURE__ */ p(U, { component: "section", sx:
|
|
2736
|
+
return /* @__PURE__ */ p(U, { component: "section", sx: M, children: [
|
|
2728
2737
|
/* @__PURE__ */ t("div", { ref: h, style: { width: "100%" }, children: /* @__PURE__ */ t(
|
|
2729
2738
|
ce,
|
|
2730
2739
|
{
|
|
2731
|
-
ref:
|
|
2740
|
+
ref: b,
|
|
2732
2741
|
items: n,
|
|
2733
2742
|
perPage: 1,
|
|
2734
2743
|
gap: "0px",
|
|
@@ -2742,51 +2751,51 @@ const Va = (e, a) => {
|
|
|
2742
2751
|
// arrows: false,
|
|
2743
2752
|
// drag: true,
|
|
2744
2753
|
},
|
|
2745
|
-
renderItem: (
|
|
2746
|
-
onMove: ({ index:
|
|
2747
|
-
f(
|
|
2754
|
+
renderItem: (E, O) => /* @__PURE__ */ t(U, { sx: { width: "100%" }, children: P(E, !s, O) }),
|
|
2755
|
+
onMove: ({ index: E, isStart: O, isEnd: R }) => {
|
|
2756
|
+
f(E), typeof O == "boolean" && typeof R == "boolean" && T({ isStart: O, isEnd: R }), N(E);
|
|
2748
2757
|
}
|
|
2749
2758
|
}
|
|
2750
2759
|
) }),
|
|
2751
|
-
|
|
2752
|
-
|
|
2760
|
+
u && /* @__PURE__ */ t(U, { sx: { mt: 2, display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(
|
|
2761
|
+
at,
|
|
2753
2762
|
{
|
|
2754
2763
|
total: n.length,
|
|
2755
|
-
active:
|
|
2756
|
-
onSelect: (
|
|
2757
|
-
var
|
|
2764
|
+
active: m,
|
|
2765
|
+
onSelect: (E) => {
|
|
2766
|
+
var O;
|
|
2758
2767
|
i({
|
|
2759
2768
|
element: "welcome_banner_dots",
|
|
2760
|
-
label: `Landing: ${l} - OraculoSeccionBonoBienvenida - Dot navigation: Banner ${
|
|
2769
|
+
label: `Landing: ${l} - OraculoSeccionBonoBienvenida - Dot navigation: Banner ${E + 1}`,
|
|
2761
2770
|
target: "no_url",
|
|
2762
2771
|
event_type: "click",
|
|
2763
2772
|
module_id: 301,
|
|
2764
2773
|
metadata: {
|
|
2765
2774
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
2766
|
-
dot_index:
|
|
2775
|
+
dot_index: E + 1,
|
|
2767
2776
|
total_dots: n.length
|
|
2768
2777
|
},
|
|
2769
2778
|
tags: {
|
|
2770
2779
|
navigation_type: "dot_click"
|
|
2771
2780
|
}
|
|
2772
|
-
}), f(
|
|
2781
|
+
}), f(E), (O = b.current) == null || O.go(E);
|
|
2773
2782
|
}
|
|
2774
2783
|
}
|
|
2775
2784
|
) })
|
|
2776
2785
|
] });
|
|
2777
|
-
},
|
|
2786
|
+
}, cn = ({
|
|
2778
2787
|
className: e = "",
|
|
2779
2788
|
fullBleed: a = !0,
|
|
2780
2789
|
items: n,
|
|
2781
2790
|
selectedIndex: o = 0,
|
|
2782
2791
|
ariaLabel: i
|
|
2783
2792
|
}) => {
|
|
2784
|
-
const l = W(null), s = W(null),
|
|
2793
|
+
const l = W(null), s = W(null), u = Q(), b = ee();
|
|
2785
2794
|
if (!n) return null;
|
|
2786
2795
|
const h = () => {
|
|
2787
|
-
|
|
2796
|
+
u({
|
|
2788
2797
|
element: "club_olimpo_button",
|
|
2789
|
-
label: `Landing: ${
|
|
2798
|
+
label: `Landing: ${b} - OraculoSeccionClubOlimpo - Click: Club Olimpo`,
|
|
2790
2799
|
target: "https://www.olimpo.bet/conoce-club-olimpo",
|
|
2791
2800
|
event_type: "click",
|
|
2792
2801
|
module_id: 301,
|
|
@@ -2798,15 +2807,15 @@ const Va = (e, a) => {
|
|
|
2798
2807
|
}, r = Array.isArray(n) ? n[o] : n;
|
|
2799
2808
|
yt(() => {
|
|
2800
2809
|
if (!l.current || !s.current || typeof ResizeObserver == "undefined") return;
|
|
2801
|
-
const
|
|
2802
|
-
|
|
2810
|
+
const m = l.current, f = s.current, _ = () => {
|
|
2811
|
+
m.style.setProperty(
|
|
2803
2812
|
"--orc-co-bottomH",
|
|
2804
2813
|
`${f.offsetHeight + 16}px`
|
|
2805
2814
|
);
|
|
2806
|
-
},
|
|
2807
|
-
return
|
|
2815
|
+
}, T = new ResizeObserver(_);
|
|
2816
|
+
return T.observe(f), _(), () => T.disconnect();
|
|
2808
2817
|
}, []);
|
|
2809
|
-
const
|
|
2818
|
+
const c = [
|
|
2810
2819
|
"orc-co-wrap",
|
|
2811
2820
|
a ? "orc-co-fullBleed" : "",
|
|
2812
2821
|
e
|
|
@@ -2815,7 +2824,7 @@ const Va = (e, a) => {
|
|
|
2815
2824
|
"section",
|
|
2816
2825
|
{
|
|
2817
2826
|
ref: l,
|
|
2818
|
-
className:
|
|
2827
|
+
className: c,
|
|
2819
2828
|
"aria-label": i || r.imgAlt || "Club Olimpo",
|
|
2820
2829
|
children: /* @__PURE__ */ t("div", { ref: s, children: /* @__PURE__ */ t(
|
|
2821
2830
|
ua,
|
|
@@ -2831,38 +2840,38 @@ const Va = (e, a) => {
|
|
|
2831
2840
|
) })
|
|
2832
2841
|
}
|
|
2833
2842
|
);
|
|
2834
|
-
},
|
|
2835
|
-
controls:
|
|
2836
|
-
padding:
|
|
2837
|
-
},
|
|
2843
|
+
}, dn = "oraculo__OraculoSeccionEventoCombinadas-module__controls___Zsta4", un = "oraculo__OraculoSeccionEventoCombinadas-module__padding___vf-yF", He = {
|
|
2844
|
+
controls: dn,
|
|
2845
|
+
padding: un
|
|
2846
|
+
}, mn = (e) => {
|
|
2838
2847
|
var a, n;
|
|
2839
2848
|
return (a = e.outcome) != null && a.id ? [e.outcome.id] : e.type === "BET_BUILDER" && ((n = e.group) != null && n.groups) ? e.group.groups.flatMap((o) => {
|
|
2840
2849
|
var i, l;
|
|
2841
2850
|
return (l = (i = o.outcomes) == null ? void 0 : i.map((s) => s.id)) != null ? l : [];
|
|
2842
2851
|
}) : [];
|
|
2843
2852
|
};
|
|
2844
|
-
function
|
|
2853
|
+
function pn(e, a, n) {
|
|
2845
2854
|
return n ? n.map((o) => {
|
|
2846
|
-
var r,
|
|
2847
|
-
const i = o.prePackCouponRows.flatMap((
|
|
2848
|
-
for (const
|
|
2849
|
-
if (!l.has(
|
|
2850
|
-
const f =
|
|
2851
|
-
f.length && ((
|
|
2855
|
+
var r, c;
|
|
2856
|
+
const i = o.prePackCouponRows.flatMap((m) => mn(m).map((f) => ({ eventId: m.eventId, outcomeId: f }))), l = new Set(i.map((m) => m.eventId)), s = new Set(i.map((m) => m.outcomeId)), u = new Map(i.map((m, f) => [m.outcomeId, f])), b = {};
|
|
2857
|
+
for (const m of a) {
|
|
2858
|
+
if (!l.has(m.eventId)) continue;
|
|
2859
|
+
const f = m.outcomes.filter((_) => s.has(_.id)).map((_) => ({ ..._, position: u.get(_.id) }));
|
|
2860
|
+
f.length && ((c = b[r = m.eventId]) != null || (b[r] = []), b[m.eventId].push({ ...m, outcomes: f }));
|
|
2852
2861
|
}
|
|
2853
|
-
const h = e.filter((
|
|
2862
|
+
const h = e.filter((m) => l.has(m.id)).map((m) => {
|
|
2854
2863
|
var f;
|
|
2855
|
-
return { ...
|
|
2864
|
+
return { ...m, betoffers: (f = b[m.id]) != null ? f : [] };
|
|
2856
2865
|
});
|
|
2857
2866
|
return {
|
|
2858
2867
|
couponId: o.id,
|
|
2859
2868
|
status: o.status,
|
|
2860
|
-
combinadoTotal:
|
|
2869
|
+
combinadoTotal: fn(o.prePackCouponRows),
|
|
2861
2870
|
events: h
|
|
2862
2871
|
};
|
|
2863
2872
|
}) : [];
|
|
2864
2873
|
}
|
|
2865
|
-
function
|
|
2874
|
+
function fn(e) {
|
|
2866
2875
|
if (!Array.isArray(e) || e.length === 0) return 0;
|
|
2867
2876
|
let a = 1;
|
|
2868
2877
|
for (const n of e) {
|
|
@@ -2871,16 +2880,16 @@ function mn(e) {
|
|
|
2871
2880
|
}
|
|
2872
2881
|
return Math.floor(a * 100) / 100;
|
|
2873
2882
|
}
|
|
2874
|
-
const
|
|
2875
|
-
function
|
|
2883
|
+
const gn = ue.memo(Ca);
|
|
2884
|
+
function hn({
|
|
2876
2885
|
items: e,
|
|
2877
2886
|
title: a = "Combinadas del Olimpo",
|
|
2878
2887
|
iconUrl: n = "https://stg-www.contodobet.com/static/img/landing/EventoCombinada/rayoIcon.svg",
|
|
2879
2888
|
onViewMore: o,
|
|
2880
2889
|
className: i = ""
|
|
2881
2890
|
}) {
|
|
2882
|
-
const l = Q(), s = ee(),
|
|
2883
|
-
var
|
|
2891
|
+
const l = Q(), s = ee(), u = W(null), [b, h] = H({ isStart: !0, isEnd: !1 }), [r, c] = H([]), m = "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", f = () => {
|
|
2892
|
+
var L;
|
|
2884
2893
|
l({
|
|
2885
2894
|
element: "evento_combinadas_prev",
|
|
2886
2895
|
label: `Landing: ${s} - OraculoSeccionEventoCombinadas - Click: Anterior`,
|
|
@@ -2890,9 +2899,9 @@ function fn({
|
|
|
2890
2899
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2891
2900
|
},
|
|
2892
2901
|
tags: { section: "OraculoSeccionEventoCombinadas" }
|
|
2893
|
-
}), (
|
|
2902
|
+
}), (L = u.current) == null || L.prev();
|
|
2894
2903
|
}, _ = () => {
|
|
2895
|
-
var
|
|
2904
|
+
var L;
|
|
2896
2905
|
l({
|
|
2897
2906
|
element: "evento_combinadas_next",
|
|
2898
2907
|
label: `Landing: ${s} - OraculoSeccionEventoCombinadas - Click: Siguiente`,
|
|
@@ -2902,8 +2911,8 @@ function fn({
|
|
|
2902
2911
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2903
2912
|
},
|
|
2904
2913
|
tags: { section: "OraculoSeccionEventoCombinadas" }
|
|
2905
|
-
}), (
|
|
2906
|
-
},
|
|
2914
|
+
}), (L = u.current) == null || L.next();
|
|
2915
|
+
}, T = () => {
|
|
2907
2916
|
l({
|
|
2908
2917
|
element: "evento_combinadas_ver_mas",
|
|
2909
2918
|
label: `Landing: ${s} - OraculoSeccionEventoCombinadas - Click: Ver más`,
|
|
@@ -2914,34 +2923,34 @@ function fn({
|
|
|
2914
2923
|
},
|
|
2915
2924
|
tags: { section: "OraculoSeccionEventoCombinadas" }
|
|
2916
2925
|
}), Sa();
|
|
2917
|
-
},
|
|
2918
|
-
async function
|
|
2919
|
-
var
|
|
2926
|
+
}, C = te(() => r.filter((L) => L.combinadoTotal !== null), [r]);
|
|
2927
|
+
async function I() {
|
|
2928
|
+
var L, M, F;
|
|
2920
2929
|
try {
|
|
2921
|
-
const
|
|
2922
|
-
if (!
|
|
2930
|
+
const N = await (await fetch(m)).json(), P = (F = (M = (L = N == null ? void 0 : N.group) == null ? void 0 : L.groups) == null ? void 0 : M[0]) == null ? void 0 : F.id;
|
|
2931
|
+
if (!P) {
|
|
2923
2932
|
console.error("Could not extract group ID");
|
|
2924
2933
|
return;
|
|
2925
2934
|
}
|
|
2926
|
-
const
|
|
2927
|
-
|
|
2928
|
-
} catch (
|
|
2929
|
-
console.error("loadDataEventSpecial error:",
|
|
2935
|
+
const E = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${P}.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764283566783&prePackCouponTags=CUSTOM`, R = await (await fetch(E)).json();
|
|
2936
|
+
c(pn(R.events, R.betOffers, R.prePackCoupons));
|
|
2937
|
+
} catch (w) {
|
|
2938
|
+
console.error("loadDataEventSpecial error:", w);
|
|
2930
2939
|
}
|
|
2931
2940
|
}
|
|
2932
2941
|
J(() => {
|
|
2933
|
-
|
|
2942
|
+
I();
|
|
2934
2943
|
}, []);
|
|
2935
|
-
const
|
|
2936
|
-
return
|
|
2944
|
+
const k = i || void 0, A = be("(max-width:768px)");
|
|
2945
|
+
return C.length === 0 ? null : /* @__PURE__ */ t("section", { className: k, style: {
|
|
2937
2946
|
// paddingLeft: 16,
|
|
2938
2947
|
// paddingRight: 16,
|
|
2939
2948
|
width: "100%",
|
|
2940
2949
|
boxSizing: "border-box"
|
|
2941
2950
|
}, children: /* @__PURE__ */ p(j, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
2942
|
-
/* @__PURE__ */ t("div", { className:
|
|
2951
|
+
/* @__PURE__ */ t("div", { className: He.padding, children: /* @__PURE__ */ p(re, { spacing: 1.5, columns: "1fr auto ", justify: "start", children: [
|
|
2943
2952
|
/* @__PURE__ */ t(se, { title: a, iconUrl: n, size: "md" }),
|
|
2944
|
-
/* @__PURE__ */ p("div", { className:
|
|
2953
|
+
/* @__PURE__ */ p("div", { className: He.controls, children: [
|
|
2945
2954
|
/* @__PURE__ */ p(re, { spacing: 1, columns: "auto auto", children: [
|
|
2946
2955
|
/* @__PURE__ */ t(
|
|
2947
2956
|
K,
|
|
@@ -2951,7 +2960,7 @@ function fn({
|
|
|
2951
2960
|
iconOnly: !0,
|
|
2952
2961
|
leftIcon: /* @__PURE__ */ t(Te, {}),
|
|
2953
2962
|
onClick: f,
|
|
2954
|
-
disabled:
|
|
2963
|
+
disabled: b.isStart
|
|
2955
2964
|
}
|
|
2956
2965
|
),
|
|
2957
2966
|
/* @__PURE__ */ t(
|
|
@@ -2962,34 +2971,34 @@ function fn({
|
|
|
2962
2971
|
iconOnly: !0,
|
|
2963
2972
|
rightIcon: /* @__PURE__ */ t(ke, {}),
|
|
2964
2973
|
onClick: _,
|
|
2965
|
-
disabled:
|
|
2974
|
+
disabled: b.isEnd
|
|
2966
2975
|
}
|
|
2967
2976
|
)
|
|
2968
2977
|
] }),
|
|
2969
|
-
/* @__PURE__ */ t(K, { variant: "secondary", onClick:
|
|
2978
|
+
/* @__PURE__ */ t(K, { variant: "secondary", onClick: T, children: "Ver más" })
|
|
2970
2979
|
] })
|
|
2971
2980
|
] }) }),
|
|
2972
2981
|
/* @__PURE__ */ t(
|
|
2973
2982
|
ce,
|
|
2974
2983
|
{
|
|
2975
|
-
ref:
|
|
2976
|
-
items:
|
|
2984
|
+
ref: u,
|
|
2985
|
+
items: C,
|
|
2977
2986
|
perPage: void 0,
|
|
2978
2987
|
gap: "16px",
|
|
2979
2988
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
2980
2989
|
useIndexAsKey: !0,
|
|
2981
2990
|
enableHorizontalWheel: !0,
|
|
2982
|
-
showRightGradient: !
|
|
2991
|
+
showRightGradient: !A,
|
|
2983
2992
|
breakpoints: {
|
|
2984
2993
|
768: { perPage: 1.2, gap: "12px", padding: { left: "24px", right: "24px" } }
|
|
2985
2994
|
},
|
|
2986
|
-
renderItem: (
|
|
2987
|
-
onMove: ({ isStart:
|
|
2995
|
+
renderItem: (L) => /* @__PURE__ */ t(gn, { coupon: L }),
|
|
2996
|
+
onMove: ({ isStart: L, isEnd: M }) => h({ isStart: L, isEnd: M })
|
|
2988
2997
|
}
|
|
2989
2998
|
)
|
|
2990
2999
|
] }) });
|
|
2991
3000
|
}
|
|
2992
|
-
function
|
|
3001
|
+
function bn({}) {
|
|
2993
3002
|
return /* @__PURE__ */ t(
|
|
2994
3003
|
"div",
|
|
2995
3004
|
{
|
|
@@ -3023,15 +3032,15 @@ function gn({}) {
|
|
|
3023
3032
|
}
|
|
3024
3033
|
);
|
|
3025
3034
|
}
|
|
3026
|
-
const
|
|
3027
|
-
fadeWrapper:
|
|
3035
|
+
const vn = "oraculo__FadeItemWrapper-module__fadeWrapper___kFOH4", _n = {
|
|
3036
|
+
fadeWrapper: vn
|
|
3028
3037
|
};
|
|
3029
3038
|
function Ie({ children: e }) {
|
|
3030
|
-
return /* @__PURE__ */ t("div", { className:
|
|
3039
|
+
return /* @__PURE__ */ t("div", { className: _n.fadeWrapper, children: e });
|
|
3031
3040
|
}
|
|
3032
|
-
const
|
|
3033
|
-
padding:
|
|
3034
|
-
},
|
|
3041
|
+
const yn = "oraculo__OraculoSeccionEventoEnVivo-module__padding___Sh8tD", xn = {
|
|
3042
|
+
padding: yn
|
|
3043
|
+
}, wn = (e) => {
|
|
3035
3044
|
const a = ["esports", "cyber"];
|
|
3036
3045
|
return e.filter((n) => {
|
|
3037
3046
|
var i;
|
|
@@ -3039,19 +3048,19 @@ const vn = "oraculo__OraculoSeccionEventoEnVivo-module__padding___Sh8tD", _n = {
|
|
|
3039
3048
|
const o = ((i = n.event.group) == null ? void 0 : i.toLowerCase()) || "";
|
|
3040
3049
|
return !a.some((l) => o.includes(l));
|
|
3041
3050
|
});
|
|
3042
|
-
},
|
|
3043
|
-
function
|
|
3051
|
+
}, Sn = ue.memo(ka);
|
|
3052
|
+
function Cn({
|
|
3044
3053
|
items: e,
|
|
3045
3054
|
title: a = "En vivo",
|
|
3046
3055
|
iconUrl: n = "https://stg-www.contodobet.com/static/img/landing/EventoEnVivo/icon.svg",
|
|
3047
3056
|
onViewMore: o,
|
|
3048
3057
|
className: i = ""
|
|
3049
3058
|
}) {
|
|
3050
|
-
const l = "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 = W(null), [
|
|
3051
|
-
var
|
|
3052
|
-
|
|
3059
|
+
const l = "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 = W(null), [u, b] = H({ isStart: !0, isEnd: !1 }), [h, r] = H(null), [c, m] = H({}), [f, _] = H({ start: null, end: null }), T = W(!1), [C, I] = H(null), k = W(!1), A = Q(), L = ee(), M = W(/* @__PURE__ */ new Map()), F = st(f, 300), w = W(/* @__PURE__ */ new Set()), N = () => {
|
|
3060
|
+
var $;
|
|
3061
|
+
A({
|
|
3053
3062
|
element: "evento_en_vivo_prev",
|
|
3054
|
-
label: `Landing: ${
|
|
3063
|
+
label: `Landing: ${L} - OraculoSeccionEventoEnVivo - Anterior`,
|
|
3055
3064
|
target: "prev",
|
|
3056
3065
|
event_type: "click",
|
|
3057
3066
|
module_id: 301,
|
|
@@ -3059,12 +3068,12 @@ function wn({
|
|
|
3059
3068
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
3060
3069
|
},
|
|
3061
3070
|
tags: { section: "OraculoSeccionEventoEnVivo" }
|
|
3062
|
-
}), (
|
|
3063
|
-
},
|
|
3064
|
-
var
|
|
3065
|
-
|
|
3071
|
+
}), ($ = s.current) == null || $.prev();
|
|
3072
|
+
}, P = () => {
|
|
3073
|
+
var $;
|
|
3074
|
+
A({
|
|
3066
3075
|
element: "evento_en_vivo_next",
|
|
3067
|
-
label: `Landing: ${
|
|
3076
|
+
label: `Landing: ${L} - OraculoSeccionEventoEnVivo - Siguiente`,
|
|
3068
3077
|
target: "next",
|
|
3069
3078
|
event_type: "click",
|
|
3070
3079
|
module_id: 301,
|
|
@@ -3072,11 +3081,11 @@ function wn({
|
|
|
3072
3081
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
3073
3082
|
},
|
|
3074
3083
|
tags: { section: "OraculoSeccionEventoEnVivo" }
|
|
3075
|
-
}), (
|
|
3076
|
-
},
|
|
3077
|
-
|
|
3084
|
+
}), ($ = s.current) == null || $.next();
|
|
3085
|
+
}, E = () => {
|
|
3086
|
+
A({
|
|
3078
3087
|
element: "evento_en_vivo_view_more",
|
|
3079
|
-
label: `Landing: ${
|
|
3088
|
+
label: `Landing: ${L} - OraculoSeccionEventoEnVivo - Ver más`,
|
|
3080
3089
|
target: "ver_mas",
|
|
3081
3090
|
event_type: "click",
|
|
3082
3091
|
module_id: 301,
|
|
@@ -3085,67 +3094,67 @@ function wn({
|
|
|
3085
3094
|
},
|
|
3086
3095
|
tags: { section: "OraculoSeccionEventoEnVivo" }
|
|
3087
3096
|
}), xa();
|
|
3088
|
-
},
|
|
3089
|
-
var
|
|
3097
|
+
}, O = xe(async () => {
|
|
3098
|
+
var $;
|
|
3090
3099
|
try {
|
|
3091
|
-
if (
|
|
3092
|
-
|
|
3100
|
+
if (!k.current) {
|
|
3101
|
+
k.current = !0;
|
|
3093
3102
|
try {
|
|
3094
|
-
const
|
|
3095
|
-
|
|
3103
|
+
const x = await (await fetch("https://api.mktolimpo.com/api/kambi/eventos/orden")).json(), B = (($ = x == null ? void 0 : x.data) == null ? void 0 : $.event_ids) || [], V = /* @__PURE__ */ new Map();
|
|
3104
|
+
B.forEach((D, Z) => V.set(String(D), Z)), M.current = V;
|
|
3096
3105
|
} catch (v) {
|
|
3097
3106
|
console.error("Order fetch failed, using default sorting", v);
|
|
3098
3107
|
}
|
|
3099
3108
|
}
|
|
3100
|
-
const
|
|
3101
|
-
if (!
|
|
3102
|
-
const
|
|
3103
|
-
if (
|
|
3109
|
+
const d = await fetch(l);
|
|
3110
|
+
if (!d.ok) throw new Error("Failed to fetch live events");
|
|
3111
|
+
const y = await d.json(), S = wn(y.events);
|
|
3112
|
+
if (M.current.size === 0)
|
|
3104
3113
|
r(S);
|
|
3105
3114
|
else {
|
|
3106
|
-
const v = [...S].sort((
|
|
3107
|
-
const V =
|
|
3115
|
+
const v = [...S].sort((x, B) => {
|
|
3116
|
+
const V = M.current.get(String(x.event.id)), D = M.current.get(String(B.event.id));
|
|
3108
3117
|
return (V !== void 0 ? V : 1 / 0) - (D !== void 0 ? D : 1 / 0);
|
|
3109
3118
|
});
|
|
3110
3119
|
r(v);
|
|
3111
3120
|
}
|
|
3112
|
-
} catch (
|
|
3113
|
-
console.error("LoadData Error:",
|
|
3121
|
+
} catch (d) {
|
|
3122
|
+
console.error("LoadData Error:", d);
|
|
3114
3123
|
}
|
|
3115
3124
|
}, []);
|
|
3116
3125
|
J(() => {
|
|
3117
|
-
|
|
3118
|
-
const
|
|
3119
|
-
return () => clearInterval(
|
|
3120
|
-
}, [
|
|
3121
|
-
if (
|
|
3126
|
+
O();
|
|
3127
|
+
const $ = setInterval(O, 2e4);
|
|
3128
|
+
return () => clearInterval($);
|
|
3129
|
+
}, [O]), J(() => {
|
|
3130
|
+
if (F.start === null || F.end === null || !(h != null && h.length) || T.current)
|
|
3122
3131
|
return;
|
|
3123
|
-
const
|
|
3124
|
-
var
|
|
3125
|
-
return (
|
|
3126
|
-
}).filter((v) => v && !
|
|
3127
|
-
S.length !== 0 && (S.forEach((v) =>
|
|
3128
|
-
v != null && v.events &&
|
|
3129
|
-
...
|
|
3132
|
+
const $ = 3, d = Math.max(0, F.start - $), y = Math.min(h.length - 1, F.end + $), S = h.slice(d, y + 1).map((v) => {
|
|
3133
|
+
var x;
|
|
3134
|
+
return (x = v == null ? void 0 : v.event) == null ? void 0 : x.id;
|
|
3135
|
+
}).filter((v) => v && !w.current.has(v));
|
|
3136
|
+
S.length !== 0 && (S.forEach((v) => w.current.add(v)), T.current = !0, lt(S).then((v) => {
|
|
3137
|
+
v != null && v.events && m((x) => ({
|
|
3138
|
+
...x,
|
|
3130
3139
|
...v.events
|
|
3131
3140
|
}));
|
|
3132
3141
|
}).catch((v) => {
|
|
3133
|
-
console.error("Jersey fetch error", v), S.forEach((
|
|
3142
|
+
console.error("Jersey fetch error", v), S.forEach((x) => w.current.delete(x));
|
|
3134
3143
|
}).finally(() => {
|
|
3135
|
-
|
|
3144
|
+
T.current = !1;
|
|
3136
3145
|
}));
|
|
3137
|
-
}, [
|
|
3138
|
-
const
|
|
3146
|
+
}, [F, h]);
|
|
3147
|
+
const R = i || void 0, q = h === null;
|
|
3139
3148
|
if (!q && h.length === 0)
|
|
3140
3149
|
return null;
|
|
3141
|
-
const
|
|
3142
|
-
return /* @__PURE__ */ t("section", { className:
|
|
3150
|
+
const g = te(() => q ? Array(4).fill({}) : (h == null ? void 0 : h.slice(0, 20)) || [], [q, h]), z = be("(max-width:768px)");
|
|
3151
|
+
return /* @__PURE__ */ t("section", { className: R, style: {
|
|
3143
3152
|
// paddingLeft: 16,
|
|
3144
3153
|
// paddingRight: 16,
|
|
3145
3154
|
width: "100%",
|
|
3146
3155
|
boxSizing: "border-box"
|
|
3147
3156
|
}, children: /* @__PURE__ */ p(j, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
3148
|
-
/* @__PURE__ */ t("div", { className:
|
|
3157
|
+
/* @__PURE__ */ t("div", { className: xn.padding, children: /* @__PURE__ */ p(re, { spacing: 1.5, columns: "1fr auto ", justify: "start", children: [
|
|
3149
3158
|
/* @__PURE__ */ t(se, { title: a, iconUrl: n, size: "md" }),
|
|
3150
3159
|
/* @__PURE__ */ p("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
|
|
3151
3160
|
/* @__PURE__ */ p(re, { spacing: 1, columns: "auto auto", children: [
|
|
@@ -3156,8 +3165,8 @@ function wn({
|
|
|
3156
3165
|
variant: "secondary",
|
|
3157
3166
|
iconOnly: !0,
|
|
3158
3167
|
leftIcon: /* @__PURE__ */ t(Te, {}),
|
|
3159
|
-
onClick:
|
|
3160
|
-
disabled:
|
|
3168
|
+
onClick: N,
|
|
3169
|
+
disabled: u.isStart
|
|
3161
3170
|
}
|
|
3162
3171
|
),
|
|
3163
3172
|
/* @__PURE__ */ t(
|
|
@@ -3167,21 +3176,21 @@ function wn({
|
|
|
3167
3176
|
variant: "secondary",
|
|
3168
3177
|
iconOnly: !0,
|
|
3169
3178
|
rightIcon: /* @__PURE__ */ t(ke, {}),
|
|
3170
|
-
onClick:
|
|
3171
|
-
disabled:
|
|
3179
|
+
onClick: P,
|
|
3180
|
+
disabled: u.isEnd
|
|
3172
3181
|
}
|
|
3173
3182
|
)
|
|
3174
3183
|
] }),
|
|
3175
|
-
/* @__PURE__ */ t(K, { variant: "secondary", onClick:
|
|
3184
|
+
/* @__PURE__ */ t(K, { variant: "secondary", onClick: E, children: "Ver más" })
|
|
3176
3185
|
] })
|
|
3177
3186
|
] }) }),
|
|
3178
3187
|
/* @__PURE__ */ t(
|
|
3179
3188
|
ce,
|
|
3180
3189
|
{
|
|
3181
3190
|
ref: s,
|
|
3182
|
-
items:
|
|
3191
|
+
items: g,
|
|
3183
3192
|
perPage: void 0,
|
|
3184
|
-
showRightGradient: !
|
|
3193
|
+
showRightGradient: !z,
|
|
3185
3194
|
enableHorizontalWheel: !0,
|
|
3186
3195
|
gap: "16px",
|
|
3187
3196
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
@@ -3190,29 +3199,29 @@ function wn({
|
|
|
3190
3199
|
768: { gap: "8px", focus: "center", padding: { left: "24px", right: "24px" } },
|
|
3191
3200
|
1024: { gap: "10px", focus: "center", padding: { left: "24px", right: "24px" } }
|
|
3192
3201
|
},
|
|
3193
|
-
renderItem: (
|
|
3202
|
+
renderItem: ($) => {
|
|
3194
3203
|
var S;
|
|
3195
|
-
const
|
|
3196
|
-
return q ? /* @__PURE__ */ t(Ie, { children: /* @__PURE__ */ t(
|
|
3197
|
-
|
|
3204
|
+
const d = ((S = $.event) == null ? void 0 : S.id) || $.eventId, y = d in c ? c[d] : void 0;
|
|
3205
|
+
return q ? /* @__PURE__ */ t(Ie, { children: /* @__PURE__ */ t(bn, {}) }) : /* @__PURE__ */ t(Ie, { children: /* @__PURE__ */ t(
|
|
3206
|
+
Sn,
|
|
3198
3207
|
{
|
|
3199
|
-
|
|
3200
|
-
jersey:
|
|
3208
|
+
...$,
|
|
3209
|
+
jersey: y
|
|
3201
3210
|
}
|
|
3202
3211
|
) });
|
|
3203
3212
|
},
|
|
3204
|
-
onMove: ({ isStart:
|
|
3205
|
-
|
|
3206
|
-
(v) => v.isStart ===
|
|
3207
|
-
), _({ start:
|
|
3213
|
+
onMove: ({ isStart: $, isEnd: d, visibleStart: y, visibleEnd: S }) => {
|
|
3214
|
+
b(
|
|
3215
|
+
(v) => v.isStart === $ && v.isEnd === d ? v : { isStart: $, isEnd: d }
|
|
3216
|
+
), _({ start: y, end: S });
|
|
3208
3217
|
}
|
|
3209
3218
|
}
|
|
3210
3219
|
)
|
|
3211
3220
|
] }) });
|
|
3212
3221
|
}
|
|
3213
|
-
function
|
|
3222
|
+
function On() {
|
|
3214
3223
|
return /* @__PURE__ */ p("div", { className: de.cardContainer, children: [
|
|
3215
|
-
/* @__PURE__ */ t(
|
|
3224
|
+
/* @__PURE__ */ t(ot, { title: "" }),
|
|
3216
3225
|
/* @__PURE__ */ t("div", { className: de.cardBackground, children: /* @__PURE__ */ p(j, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
3217
3226
|
/* @__PURE__ */ p(j, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
3218
3227
|
/* @__PURE__ */ t(G, { variant: "circular", width: 48, height: 48 }),
|
|
@@ -3238,30 +3247,30 @@ function Sn() {
|
|
|
3238
3247
|
] }) })
|
|
3239
3248
|
] });
|
|
3240
3249
|
}
|
|
3241
|
-
const
|
|
3242
|
-
wrapper:
|
|
3243
|
-
container:
|
|
3244
|
-
buttonWrapper:
|
|
3245
|
-
padding:
|
|
3246
|
-
},
|
|
3247
|
-
async function
|
|
3250
|
+
const En = "oraculo__OraculoSeccionEventoSemana-module__wrapper___eqVq-", In = "oraculo__OraculoSeccionEventoSemana-module__container___5yFQs", Tn = "oraculo__OraculoSeccionEventoSemana-module__buttonWrapper___-6IDT", kn = "oraculo__OraculoSeccionEventoSemana-module__padding___vfUcV", _e = {
|
|
3251
|
+
wrapper: En,
|
|
3252
|
+
container: In,
|
|
3253
|
+
buttonWrapper: Tn,
|
|
3254
|
+
padding: kn
|
|
3255
|
+
}, $n = ue.memo(Fa);
|
|
3256
|
+
async function Nn(e, a = 2, n) {
|
|
3248
3257
|
const o = [];
|
|
3249
3258
|
for (let i = 0; i < e.length; i += a) {
|
|
3250
3259
|
if (n.aborted)
|
|
3251
3260
|
throw new DOMException("Aborted", "AbortError");
|
|
3252
3261
|
const l = e.slice(i, i + a), s = await Promise.all(
|
|
3253
|
-
l.map((
|
|
3262
|
+
l.map((u) => fetch(u, { signal: n }).then((b) => b.json()))
|
|
3254
3263
|
);
|
|
3255
3264
|
o.push(...s);
|
|
3256
3265
|
}
|
|
3257
3266
|
return o;
|
|
3258
3267
|
}
|
|
3259
|
-
function
|
|
3268
|
+
function Mn(e) {
|
|
3260
3269
|
return [...e].sort(
|
|
3261
3270
|
(a, n) => new Date(a.start).getTime() - new Date(n.start).getTime()
|
|
3262
3271
|
);
|
|
3263
3272
|
}
|
|
3264
|
-
function
|
|
3273
|
+
function Bn(e) {
|
|
3265
3274
|
const a = /* @__PURE__ */ new Date(), n = new Date(a.getTime() + 480 * 60 * 60 * 1e3);
|
|
3266
3275
|
return e.filter((o) => {
|
|
3267
3276
|
if (!o.start) return !1;
|
|
@@ -3269,7 +3278,7 @@ function Nn(e) {
|
|
|
3269
3278
|
return i >= a && i <= n;
|
|
3270
3279
|
});
|
|
3271
3280
|
}
|
|
3272
|
-
function
|
|
3281
|
+
function Ln(e, a) {
|
|
3273
3282
|
const o = a.filter((i) => {
|
|
3274
3283
|
var l;
|
|
3275
3284
|
return ((l = i.betOfferType) == null ? void 0 : l.id) === 2;
|
|
@@ -3279,18 +3288,18 @@ function Mn(e, a) {
|
|
|
3279
3288
|
outcome: o[i.id]
|
|
3280
3289
|
}));
|
|
3281
3290
|
}
|
|
3282
|
-
function
|
|
3291
|
+
function An({
|
|
3283
3292
|
items: e,
|
|
3284
3293
|
title: a = "En vivo",
|
|
3285
3294
|
iconUrl: n,
|
|
3286
3295
|
onViewMore: o,
|
|
3287
3296
|
className: i = ""
|
|
3288
3297
|
}) {
|
|
3289
|
-
const l = Q(), s = ee(),
|
|
3298
|
+
const l = Q(), s = ee(), u = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE", b = W(null), [h, r] = H({ isStart: !0, isEnd: !1 }), [c, m] = H(null);
|
|
3290
3299
|
W(/* @__PURE__ */ new Set());
|
|
3291
|
-
const [f, _] = H({}), [
|
|
3292
|
-
te(() =>
|
|
3293
|
-
const
|
|
3300
|
+
const [f, _] = H({}), [T, C] = H({ start: null, end: null }), I = "channel_id=1&client_id=200&competitionId=undefined&lang=es_PE&market=PE&useCombined=true", k = st(T, 250), A = W(!1);
|
|
3301
|
+
te(() => c === null ? Array(6).fill({}) : c.slice(0, 20), [c]);
|
|
3302
|
+
const L = () => {
|
|
3294
3303
|
l({
|
|
3295
3304
|
element: "evento_semana_view_more",
|
|
3296
3305
|
label: `Landing: ${s} - OraculoSeccionEventoSemana - Ver más`,
|
|
@@ -3303,120 +3312,120 @@ function Bn({
|
|
|
3303
3312
|
tags: { section: "OraculoSeccionEventoSemana" }
|
|
3304
3313
|
}), wa();
|
|
3305
3314
|
};
|
|
3306
|
-
async function
|
|
3307
|
-
var
|
|
3308
|
-
let
|
|
3315
|
+
async function M(O) {
|
|
3316
|
+
var g, z;
|
|
3317
|
+
let R = [], q = [];
|
|
3309
3318
|
try {
|
|
3310
|
-
const
|
|
3319
|
+
const $ = await fetch(
|
|
3311
3320
|
"https://api.mktolimpo.com/api/kambi/eventos/orden",
|
|
3312
|
-
{ signal:
|
|
3321
|
+
{ signal: O }
|
|
3313
3322
|
);
|
|
3314
|
-
if (
|
|
3315
|
-
const
|
|
3316
|
-
|
|
3323
|
+
if ($.ok) {
|
|
3324
|
+
const d = await $.json();
|
|
3325
|
+
R = ((g = d == null ? void 0 : d.data) == null ? void 0 : g.group_ids) || [], q = ((z = d == null ? void 0 : d.data) == null ? void 0 : z.event_ids) || [];
|
|
3317
3326
|
}
|
|
3318
|
-
} catch (
|
|
3319
|
-
|
|
3327
|
+
} catch ($) {
|
|
3328
|
+
$.name !== "AbortError" && console.warn("Order API not available, using default group order");
|
|
3320
3329
|
return;
|
|
3321
3330
|
}
|
|
3322
3331
|
try {
|
|
3323
|
-
const
|
|
3332
|
+
const y = (await (await fetch(u, { signal: O })).json()).group.groups.find(
|
|
3324
3333
|
(D) => D.englishName === "Football"
|
|
3325
3334
|
);
|
|
3326
|
-
if (!
|
|
3335
|
+
if (!y || !Array.isArray(y.groups)) {
|
|
3327
3336
|
console.error("Football groups not found");
|
|
3328
3337
|
return;
|
|
3329
3338
|
}
|
|
3330
|
-
let S = [...
|
|
3331
|
-
if (
|
|
3339
|
+
let S = [...y.groups];
|
|
3340
|
+
if (R.length > 0) {
|
|
3332
3341
|
const D = new Map(
|
|
3333
|
-
|
|
3342
|
+
R.map((Z, Y) => [Z, Y])
|
|
3334
3343
|
);
|
|
3335
3344
|
S.sort((Z, Y) => {
|
|
3336
3345
|
const me = D.get(String(Z.id)), pe = D.get(String(Y.id));
|
|
3337
3346
|
return me !== void 0 && pe !== void 0 ? me - pe : me !== void 0 ? -1 : pe !== void 0 ? 1 : 0;
|
|
3338
3347
|
});
|
|
3339
3348
|
}
|
|
3340
|
-
const
|
|
3349
|
+
const x = S.slice(0, 5), B = (D) => {
|
|
3341
3350
|
const Z = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football";
|
|
3342
3351
|
if (D.groups && D.groups.length > 0) {
|
|
3343
3352
|
const Y = D.groups[0];
|
|
3344
3353
|
return [
|
|
3345
|
-
`${Z}/${D.termKey}/${Y.termKey}/all/matches.json?${
|
|
3354
|
+
`${Z}/${D.termKey}/${Y.termKey}/all/matches.json?${I}`
|
|
3346
3355
|
];
|
|
3347
3356
|
}
|
|
3348
3357
|
return [
|
|
3349
|
-
`${Z}/${D.termKey}/all/all/matches.json?${
|
|
3358
|
+
`${Z}/${D.termKey}/all/all/matches.json?${I}`
|
|
3350
3359
|
];
|
|
3351
|
-
}, V =
|
|
3352
|
-
|
|
3353
|
-
} catch (
|
|
3354
|
-
console.error(
|
|
3360
|
+
}, V = x.flatMap(B);
|
|
3361
|
+
F(V, q, O);
|
|
3362
|
+
} catch ($) {
|
|
3363
|
+
console.error($);
|
|
3355
3364
|
}
|
|
3356
3365
|
}
|
|
3357
|
-
async function
|
|
3366
|
+
async function F(O, R, q) {
|
|
3358
3367
|
try {
|
|
3359
|
-
const
|
|
3360
|
-
let
|
|
3361
|
-
|
|
3362
|
-
v.events && (
|
|
3363
|
-
...v.events.flatMap((
|
|
3368
|
+
const g = await Nn(O, 2, q);
|
|
3369
|
+
let z = [], $ = [];
|
|
3370
|
+
g.forEach((v) => {
|
|
3371
|
+
v.events && (z.push(...v.events.map((x) => x.event)), $.push(
|
|
3372
|
+
...v.events.flatMap((x) => x.betOffers || [])
|
|
3364
3373
|
));
|
|
3365
3374
|
});
|
|
3366
|
-
const
|
|
3367
|
-
let S =
|
|
3368
|
-
if (
|
|
3375
|
+
const d = Ln(z, $), y = Mn(Bn(d));
|
|
3376
|
+
let S = y;
|
|
3377
|
+
if (R.length > 0) {
|
|
3369
3378
|
const v = new Map(
|
|
3370
|
-
|
|
3371
|
-
String(
|
|
3372
|
-
|
|
3379
|
+
R.map((x, B) => [
|
|
3380
|
+
String(x),
|
|
3381
|
+
B
|
|
3373
3382
|
])
|
|
3374
3383
|
);
|
|
3375
|
-
S = [...
|
|
3376
|
-
const V = v.get(String(
|
|
3384
|
+
S = [...y].sort((x, B) => {
|
|
3385
|
+
const V = v.get(String(x.id)), D = v.get(String(B.id));
|
|
3377
3386
|
return V !== void 0 && D !== void 0 ? V - D : V !== void 0 ? -1 : D !== void 0 ? 1 : 0;
|
|
3378
3387
|
});
|
|
3379
3388
|
}
|
|
3380
3389
|
if (q.aborted) return;
|
|
3381
|
-
|
|
3382
|
-
} catch (
|
|
3383
|
-
console.error("Error loading events:",
|
|
3390
|
+
m(S);
|
|
3391
|
+
} catch (g) {
|
|
3392
|
+
console.error("Error loading events:", g);
|
|
3384
3393
|
}
|
|
3385
3394
|
}
|
|
3386
3395
|
J(() => {
|
|
3387
3396
|
if (!e) return;
|
|
3388
|
-
const
|
|
3389
|
-
return
|
|
3390
|
-
|
|
3397
|
+
const O = new AbortController();
|
|
3398
|
+
return M(O.signal), () => {
|
|
3399
|
+
O.abort();
|
|
3391
3400
|
};
|
|
3392
3401
|
}, [e]), J(() => {
|
|
3393
|
-
if (
|
|
3402
|
+
if (k.start === null || k.end === null || !(c != null && c.length) || A.current)
|
|
3394
3403
|
return;
|
|
3395
|
-
const
|
|
3396
|
-
if (!
|
|
3397
|
-
let
|
|
3398
|
-
return
|
|
3404
|
+
const O = 2, R = Math.max(0, k.start - O), q = Math.min(c.length - 1, k.end + O), g = c.slice(R, q + 1).map(($) => $ == null ? void 0 : $.id).filter(Boolean).filter(($) => f[$] === void 0);
|
|
3405
|
+
if (!g.length) return;
|
|
3406
|
+
let z = !1;
|
|
3407
|
+
return A.current = !0, (async () => {
|
|
3399
3408
|
try {
|
|
3400
|
-
const
|
|
3401
|
-
|
|
3402
|
-
...
|
|
3403
|
-
|
|
3409
|
+
const $ = await lt(g);
|
|
3410
|
+
z || _((d) => ({
|
|
3411
|
+
...d,
|
|
3412
|
+
...$.events
|
|
3404
3413
|
}));
|
|
3405
|
-
} catch (
|
|
3406
|
-
console.error("Jersey fetch error",
|
|
3414
|
+
} catch ($) {
|
|
3415
|
+
console.error("Jersey fetch error", $);
|
|
3407
3416
|
} finally {
|
|
3408
|
-
|
|
3417
|
+
A.current = !1;
|
|
3409
3418
|
}
|
|
3410
3419
|
})(), () => {
|
|
3411
|
-
|
|
3420
|
+
z = !0;
|
|
3412
3421
|
};
|
|
3413
|
-
}, [
|
|
3414
|
-
const
|
|
3422
|
+
}, [k, c]);
|
|
3423
|
+
const w = i || void 0, N = {
|
|
3415
3424
|
paddingLeft: 0,
|
|
3416
3425
|
width: "100%",
|
|
3417
3426
|
boxSizing: "border-box"
|
|
3418
|
-
},
|
|
3419
|
-
return !
|
|
3427
|
+
}, P = c === null, E = be("(max-width:768px)");
|
|
3428
|
+
return !P && c.length === 0 ? null : /* @__PURE__ */ t("section", { className: w, style: N, children: /* @__PURE__ */ p("div", { className: `${_e.wrapper} ${_e.padding}`, children: [
|
|
3420
3429
|
/* @__PURE__ */ t("div", { className: _e.container, children: /* @__PURE__ */ p(j, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
3421
3430
|
/* @__PURE__ */ t(se, { title: "Eventos de la semana" }),
|
|
3422
3431
|
/* @__PURE__ */ t("div", { className: _e.buttonWrapper, children: /* @__PURE__ */ t(
|
|
@@ -3426,7 +3435,7 @@ function Bn({
|
|
|
3426
3435
|
size: "lg",
|
|
3427
3436
|
fullWidth: !0,
|
|
3428
3437
|
onClick: () => {
|
|
3429
|
-
|
|
3438
|
+
L();
|
|
3430
3439
|
},
|
|
3431
3440
|
children: "Ver más"
|
|
3432
3441
|
}
|
|
@@ -3435,12 +3444,12 @@ function Bn({
|
|
|
3435
3444
|
/* @__PURE__ */ t("div", { style: { minWidth: "180px" }, children: /* @__PURE__ */ t(
|
|
3436
3445
|
ce,
|
|
3437
3446
|
{
|
|
3438
|
-
ref:
|
|
3439
|
-
items:
|
|
3447
|
+
ref: b,
|
|
3448
|
+
items: P ? Array(6).fill({}) : c.slice(0, 20),
|
|
3440
3449
|
perPage: 3.5,
|
|
3441
3450
|
gap: "16px",
|
|
3442
3451
|
enableHorizontalWheel: !0,
|
|
3443
|
-
showRightGradient: !
|
|
3452
|
+
showRightGradient: !E,
|
|
3444
3453
|
options: { autoWidth: !0, trimSpace: !0 },
|
|
3445
3454
|
breakpoints: {
|
|
3446
3455
|
1024: {
|
|
@@ -3450,14 +3459,14 @@ function Bn({
|
|
|
3450
3459
|
padding: { left: "8px", right: "8px" }
|
|
3451
3460
|
}
|
|
3452
3461
|
},
|
|
3453
|
-
renderItem: (
|
|
3454
|
-
const
|
|
3455
|
-
return
|
|
3462
|
+
renderItem: (O) => {
|
|
3463
|
+
const R = O.id, q = R in f ? f[R] : void 0;
|
|
3464
|
+
return P ? /* @__PURE__ */ t(Ie, { children: /* @__PURE__ */ t(On, {}) }) : /* @__PURE__ */ t(Ie, { children: /* @__PURE__ */ t($n, { event: O, jersey: q }) });
|
|
3456
3465
|
},
|
|
3457
|
-
onMove: ({ isStart:
|
|
3458
|
-
r({ isStart:
|
|
3466
|
+
onMove: ({ isStart: O, isEnd: R, visibleStart: q, visibleEnd: g }) => {
|
|
3467
|
+
r({ isStart: O, isEnd: R }), C({
|
|
3459
3468
|
start: q,
|
|
3460
|
-
end:
|
|
3469
|
+
end: g
|
|
3461
3470
|
}), l({
|
|
3462
3471
|
element: "evento_semana_carousel_slide",
|
|
3463
3472
|
label: `Landing: ${s} - OraculoSeccionEventoSemana - Slide Carousel`,
|
|
@@ -3467,9 +3476,9 @@ function Bn({
|
|
|
3467
3476
|
metadata: {
|
|
3468
3477
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
3469
3478
|
visibleStart: q,
|
|
3470
|
-
visibleEnd:
|
|
3471
|
-
isStart:
|
|
3472
|
-
isEnd:
|
|
3479
|
+
visibleEnd: g,
|
|
3480
|
+
isStart: O,
|
|
3481
|
+
isEnd: R
|
|
3473
3482
|
},
|
|
3474
3483
|
tags: { section: "OraculoSeccionEventoSemana" }
|
|
3475
3484
|
});
|
|
@@ -3478,13 +3487,13 @@ function Bn({
|
|
|
3478
3487
|
) })
|
|
3479
3488
|
] }) });
|
|
3480
3489
|
}
|
|
3481
|
-
function
|
|
3490
|
+
function Rn({
|
|
3482
3491
|
backgrounds: e,
|
|
3483
3492
|
items: a,
|
|
3484
3493
|
hideItems: n
|
|
3485
3494
|
}) {
|
|
3486
|
-
var
|
|
3487
|
-
const [o, i] = H(0), l = Q(), s = ee(),
|
|
3495
|
+
var O, R, q;
|
|
3496
|
+
const [o, i] = H(0), l = Q(), s = ee(), u = W(null), b = W(!1), h = W(!1), r = (e == null ? void 0 : e.length) || 1, c = !e || e.length === 0, m = !c && ((O = e == null ? void 0 : e.length) != null ? O : 0) > 1, f = !n && ((R = a == null ? void 0 : a.length) != null ? R : 0) > 0, _ = "#B5B5B5", T = {
|
|
3488
3497
|
position: "absolute",
|
|
3489
3498
|
top: "50%",
|
|
3490
3499
|
transform: "translateY(-50%)",
|
|
@@ -3507,7 +3516,7 @@ function Ln({
|
|
|
3507
3516
|
backgroundColor: "transparent",
|
|
3508
3517
|
cursor: "default"
|
|
3509
3518
|
}
|
|
3510
|
-
},
|
|
3519
|
+
}, C = te(
|
|
3511
3520
|
() => ({
|
|
3512
3521
|
type: "loop",
|
|
3513
3522
|
perMove: 1,
|
|
@@ -3519,83 +3528,83 @@ function Ln({
|
|
|
3519
3528
|
[]
|
|
3520
3529
|
);
|
|
3521
3530
|
J(() => {
|
|
3522
|
-
const
|
|
3523
|
-
|
|
3531
|
+
const g = setTimeout(() => {
|
|
3532
|
+
b.current = !0;
|
|
3524
3533
|
}, 500);
|
|
3525
|
-
return () => clearTimeout(
|
|
3534
|
+
return () => clearTimeout(g);
|
|
3526
3535
|
}, []);
|
|
3527
|
-
const
|
|
3528
|
-
var
|
|
3529
|
-
const
|
|
3536
|
+
const I = (g, z) => {
|
|
3537
|
+
var d, y;
|
|
3538
|
+
const $ = ((y = (d = g.href) == null ? void 0 : d.split("/").pop()) == null ? void 0 : y.split(".")[0]) || g.label || g.id || `banner_${z + 1}`;
|
|
3530
3539
|
l({
|
|
3531
3540
|
element: "banner_carousel",
|
|
3532
|
-
label: `Landing: ${s} - OraculoSeccionBanners - Banner click: ${
|
|
3533
|
-
target:
|
|
3541
|
+
label: `Landing: ${s} - OraculoSeccionBanners - Banner click: ${$}`,
|
|
3542
|
+
target: g.href || "no_url",
|
|
3534
3543
|
event_type: "click",
|
|
3535
3544
|
module_id: 301,
|
|
3536
3545
|
metadata: {
|
|
3537
3546
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
3538
|
-
banner_position:
|
|
3547
|
+
banner_position: z + 1,
|
|
3539
3548
|
banner_total: (e == null ? void 0 : e.length) || 0
|
|
3540
3549
|
},
|
|
3541
3550
|
tags: {
|
|
3542
3551
|
banner_type: "carousel",
|
|
3543
3552
|
banner_target: "_self",
|
|
3544
|
-
banner_url:
|
|
3553
|
+
banner_url: g.href || "no_url"
|
|
3545
3554
|
}
|
|
3546
3555
|
});
|
|
3547
|
-
},
|
|
3556
|
+
}, k = (g) => {
|
|
3548
3557
|
if (l({
|
|
3549
3558
|
element: "banner_menu_item",
|
|
3550
|
-
label: `Landing: ${s} - OraculoSeccionBanners - Menu item click: ${
|
|
3551
|
-
target:
|
|
3559
|
+
label: `Landing: ${s} - OraculoSeccionBanners - Menu item click: ${g.label || g.id}`,
|
|
3560
|
+
target: g.href || "action",
|
|
3552
3561
|
event_type: "click",
|
|
3553
3562
|
module_id: 301,
|
|
3554
3563
|
metadata: {
|
|
3555
3564
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
3556
|
-
item_id:
|
|
3565
|
+
item_id: g.id
|
|
3557
3566
|
},
|
|
3558
3567
|
tags: {
|
|
3559
|
-
item_label:
|
|
3568
|
+
item_label: g.label || "no_label"
|
|
3560
3569
|
}
|
|
3561
|
-
}),
|
|
3562
|
-
|
|
3570
|
+
}), g.onClick) {
|
|
3571
|
+
g.onClick();
|
|
3563
3572
|
return;
|
|
3564
3573
|
}
|
|
3565
|
-
|
|
3566
|
-
},
|
|
3567
|
-
|
|
3568
|
-
},
|
|
3569
|
-
|
|
3570
|
-
var
|
|
3571
|
-
h.current = !0, (
|
|
3572
|
-
},
|
|
3574
|
+
g.href && typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(g.href);
|
|
3575
|
+
}, A = 5e3, L = W(null), M = !c && ((q = e == null ? void 0 : e.length) != null ? q : 0) > 1, F = () => {
|
|
3576
|
+
L.current != null && (window.clearTimeout(L.current), L.current = null);
|
|
3577
|
+
}, w = () => {
|
|
3578
|
+
F(), M && (L.current = window.setTimeout(() => {
|
|
3579
|
+
var g;
|
|
3580
|
+
h.current = !0, (g = u.current) == null || g.next();
|
|
3581
|
+
}, A));
|
|
3573
3582
|
};
|
|
3574
|
-
J(() => (
|
|
3575
|
-
const
|
|
3576
|
-
var
|
|
3577
|
-
|
|
3578
|
-
},
|
|
3579
|
-
var
|
|
3580
|
-
|
|
3581
|
-
},
|
|
3582
|
-
var
|
|
3583
|
-
const
|
|
3584
|
-
if (!
|
|
3585
|
-
const
|
|
3583
|
+
J(() => (w(), () => F()), [M, A]);
|
|
3584
|
+
const N = (g) => {
|
|
3585
|
+
var z;
|
|
3586
|
+
g.preventDefault(), g.stopPropagation(), F(), (z = u.current) == null || z.prev();
|
|
3587
|
+
}, P = (g) => {
|
|
3588
|
+
var z;
|
|
3589
|
+
g.preventDefault(), g.stopPropagation(), F(), (z = u.current) == null || z.next();
|
|
3590
|
+
}, E = (g) => {
|
|
3591
|
+
var d, y, S, v;
|
|
3592
|
+
const z = (g % r + r) % r;
|
|
3593
|
+
if (!b.current) return;
|
|
3594
|
+
const $ = (d = e == null ? void 0 : e[z]) != null && d.href ? ((S = (y = e[z].href) == null ? void 0 : y.split("/").pop()) == null ? void 0 : S.split(".")[0]) || `banner_${z + 1}` : `banner_${z + 1}`;
|
|
3586
3595
|
l({
|
|
3587
3596
|
element: "banner_carousel",
|
|
3588
|
-
label: `Landing: ${s} - OraculoSeccionBanners - Banner view: Slide ${
|
|
3589
|
-
target: ((v = e == null ? void 0 : e[
|
|
3597
|
+
label: `Landing: ${s} - OraculoSeccionBanners - Banner view: Slide ${z + 1} - ${$}`,
|
|
3598
|
+
target: ((v = e == null ? void 0 : e[z]) == null ? void 0 : v.href) || "no_url",
|
|
3590
3599
|
event_type: "view",
|
|
3591
3600
|
module_id: 301,
|
|
3592
3601
|
metadata: {
|
|
3593
3602
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
3594
|
-
slide_index:
|
|
3603
|
+
slide_index: z + 1,
|
|
3595
3604
|
total_slides: r,
|
|
3596
3605
|
interaction_type: "manual_slide"
|
|
3597
3606
|
},
|
|
3598
|
-
tags: { banner_position: String(
|
|
3607
|
+
tags: { banner_position: String(z + 1) }
|
|
3599
3608
|
});
|
|
3600
3609
|
};
|
|
3601
3610
|
return /* @__PURE__ */ p(
|
|
@@ -3634,28 +3643,28 @@ function Ln({
|
|
|
3634
3643
|
children: /* @__PURE__ */ t(
|
|
3635
3644
|
ce,
|
|
3636
3645
|
{
|
|
3637
|
-
ref:
|
|
3646
|
+
ref: u,
|
|
3638
3647
|
items: e,
|
|
3639
3648
|
perPage: 1,
|
|
3640
3649
|
gap: "0px",
|
|
3641
3650
|
enableHorizontalWheel: !0,
|
|
3642
|
-
options:
|
|
3643
|
-
onMove: ({ index:
|
|
3644
|
-
const
|
|
3645
|
-
i(
|
|
3646
|
-
const
|
|
3647
|
-
h.current = !1,
|
|
3651
|
+
options: C,
|
|
3652
|
+
onMove: ({ index: g }) => {
|
|
3653
|
+
const z = (g % r + r) % r;
|
|
3654
|
+
i(z);
|
|
3655
|
+
const $ = h.current;
|
|
3656
|
+
h.current = !1, w(), $ || E(g);
|
|
3648
3657
|
},
|
|
3649
|
-
renderItem: (
|
|
3650
|
-
var
|
|
3658
|
+
renderItem: (g, z) => {
|
|
3659
|
+
var $, d;
|
|
3651
3660
|
return /* @__PURE__ */ p(
|
|
3652
3661
|
X,
|
|
3653
3662
|
{
|
|
3654
3663
|
component: "a",
|
|
3655
|
-
href:
|
|
3656
|
-
target: (
|
|
3657
|
-
rel:
|
|
3658
|
-
onClick: () =>
|
|
3664
|
+
href: g.href,
|
|
3665
|
+
target: ($ = g.target) != null ? $ : "_self",
|
|
3666
|
+
rel: g.target === "_blank" ? "noopener noreferrer" : void 0,
|
|
3667
|
+
onClick: () => I(g, z),
|
|
3659
3668
|
sx: {
|
|
3660
3669
|
position: "relative",
|
|
3661
3670
|
width: "100%",
|
|
@@ -3666,13 +3675,13 @@ function Ln({
|
|
|
3666
3675
|
},
|
|
3667
3676
|
children: [
|
|
3668
3677
|
/* @__PURE__ */ p(X, { component: "picture", sx: { position: "absolute", inset: 0, lineHeight: 0 }, children: [
|
|
3669
|
-
/* @__PURE__ */ t("source", { srcSet:
|
|
3670
|
-
/* @__PURE__ */ t("source", { srcSet:
|
|
3678
|
+
/* @__PURE__ */ t("source", { srcSet: g.desktopSrc, media: "(min-width:800px)" }),
|
|
3679
|
+
/* @__PURE__ */ t("source", { srcSet: g.mobileSrc, media: "(max-width:799px)" }),
|
|
3671
3680
|
/* @__PURE__ */ t(
|
|
3672
3681
|
X,
|
|
3673
3682
|
{
|
|
3674
3683
|
component: "img",
|
|
3675
|
-
src: (
|
|
3684
|
+
src: (d = g.fallbackSrc) != null ? d : g.desktopSrc,
|
|
3676
3685
|
alt: "",
|
|
3677
3686
|
"aria-hidden": !0,
|
|
3678
3687
|
loading: "lazy",
|
|
@@ -3712,14 +3721,14 @@ function Ln({
|
|
|
3712
3721
|
)
|
|
3713
3722
|
}
|
|
3714
3723
|
),
|
|
3715
|
-
|
|
3724
|
+
m && /* @__PURE__ */ p(ae, { children: [
|
|
3716
3725
|
/* @__PURE__ */ t(
|
|
3717
|
-
|
|
3726
|
+
Pe,
|
|
3718
3727
|
{
|
|
3719
3728
|
"aria-label": "Anterior",
|
|
3720
|
-
onClick:
|
|
3729
|
+
onClick: N,
|
|
3721
3730
|
sx: {
|
|
3722
|
-
...
|
|
3731
|
+
...T,
|
|
3723
3732
|
left: "120px",
|
|
3724
3733
|
"@media (max-width:1024px)": { left: 24 },
|
|
3725
3734
|
"@media (max-width:786px)": { display: "none" }
|
|
@@ -3728,12 +3737,12 @@ function Ln({
|
|
|
3728
3737
|
}
|
|
3729
3738
|
),
|
|
3730
3739
|
/* @__PURE__ */ t(
|
|
3731
|
-
|
|
3740
|
+
Pe,
|
|
3732
3741
|
{
|
|
3733
3742
|
"aria-label": "Siguiente",
|
|
3734
|
-
onClick:
|
|
3743
|
+
onClick: P,
|
|
3735
3744
|
sx: {
|
|
3736
|
-
...
|
|
3745
|
+
...T,
|
|
3737
3746
|
right: "120px",
|
|
3738
3747
|
"@media (max-width:1024px)": { right: 24 },
|
|
3739
3748
|
"@media (max-width:786px)": { display: "none" }
|
|
@@ -3755,11 +3764,11 @@ function Ln({
|
|
|
3755
3764
|
zIndex: 2
|
|
3756
3765
|
},
|
|
3757
3766
|
children: /* @__PURE__ */ t(
|
|
3758
|
-
|
|
3767
|
+
at,
|
|
3759
3768
|
{
|
|
3760
3769
|
total: r,
|
|
3761
3770
|
active: o,
|
|
3762
|
-
durationMs:
|
|
3771
|
+
durationMs: A
|
|
3763
3772
|
},
|
|
3764
3773
|
`${o}-${r}`
|
|
3765
3774
|
)
|
|
@@ -3786,7 +3795,7 @@ function Ln({
|
|
|
3786
3795
|
boxShadow: "0 10px 24px rgba(0,0,0,.35)",
|
|
3787
3796
|
zIndex: 3
|
|
3788
3797
|
},
|
|
3789
|
-
children: a == null ? void 0 : a.map((
|
|
3798
|
+
children: a == null ? void 0 : a.map((g) => /* @__PURE__ */ p(
|
|
3790
3799
|
X,
|
|
3791
3800
|
{
|
|
3792
3801
|
sx: {
|
|
@@ -3798,7 +3807,7 @@ function Ln({
|
|
|
3798
3807
|
gap: { xs: 0.5, md: 1 },
|
|
3799
3808
|
color: "#FFFFFF",
|
|
3800
3809
|
minWidth: 0,
|
|
3801
|
-
cursor:
|
|
3810
|
+
cursor: g.onClick || g.href ? "pointer" : "default",
|
|
3802
3811
|
whiteSpace: "nowrap",
|
|
3803
3812
|
"&::after": {
|
|
3804
3813
|
content: '""',
|
|
@@ -3822,7 +3831,7 @@ function Ln({
|
|
|
3822
3831
|
opacity: 1,
|
|
3823
3832
|
transform: "scaleX(1)"
|
|
3824
3833
|
},
|
|
3825
|
-
...
|
|
3834
|
+
...g.iconHover && {
|
|
3826
3835
|
"&:hover .menu-icon-default": {
|
|
3827
3836
|
display: "none"
|
|
3828
3837
|
},
|
|
@@ -3831,9 +3840,9 @@ function Ln({
|
|
|
3831
3840
|
}
|
|
3832
3841
|
}
|
|
3833
3842
|
},
|
|
3834
|
-
onClick: () =>
|
|
3843
|
+
onClick: () => k(g),
|
|
3835
3844
|
children: [
|
|
3836
|
-
|
|
3845
|
+
g.icon && /* @__PURE__ */ p(
|
|
3837
3846
|
X,
|
|
3838
3847
|
{
|
|
3839
3848
|
sx: {
|
|
@@ -3847,8 +3856,8 @@ function Ln({
|
|
|
3847
3856
|
X,
|
|
3848
3857
|
{
|
|
3849
3858
|
component: "img",
|
|
3850
|
-
src:
|
|
3851
|
-
alt:
|
|
3859
|
+
src: g.icon,
|
|
3860
|
+
alt: g.label || `icon-${g.id}`,
|
|
3852
3861
|
className: "menu-icon-default",
|
|
3853
3862
|
sx: {
|
|
3854
3863
|
display: "block",
|
|
@@ -3860,12 +3869,12 @@ function Ln({
|
|
|
3860
3869
|
}
|
|
3861
3870
|
}
|
|
3862
3871
|
),
|
|
3863
|
-
|
|
3872
|
+
g.iconHover && /* @__PURE__ */ t(
|
|
3864
3873
|
X,
|
|
3865
3874
|
{
|
|
3866
3875
|
component: "img",
|
|
3867
|
-
src:
|
|
3868
|
-
alt:
|
|
3876
|
+
src: g.iconHover,
|
|
3877
|
+
alt: g.label || `icon-hover-${g.id}`,
|
|
3869
3878
|
className: "menu-icon-hover",
|
|
3870
3879
|
sx: {
|
|
3871
3880
|
display: "none",
|
|
@@ -3881,7 +3890,7 @@ function Ln({
|
|
|
3881
3890
|
}
|
|
3882
3891
|
),
|
|
3883
3892
|
/* @__PURE__ */ t(
|
|
3884
|
-
|
|
3893
|
+
Qe,
|
|
3885
3894
|
{
|
|
3886
3895
|
className: "menu-text",
|
|
3887
3896
|
sx: {
|
|
@@ -3890,12 +3899,12 @@ function Ln({
|
|
|
3890
3899
|
color: "#E0E0E0",
|
|
3891
3900
|
textAlign: "center"
|
|
3892
3901
|
},
|
|
3893
|
-
children:
|
|
3902
|
+
children: g.label
|
|
3894
3903
|
}
|
|
3895
3904
|
)
|
|
3896
3905
|
]
|
|
3897
3906
|
},
|
|
3898
|
-
|
|
3907
|
+
g.id
|
|
3899
3908
|
))
|
|
3900
3909
|
}
|
|
3901
3910
|
)
|
|
@@ -3903,7 +3912,7 @@ function Ln({
|
|
|
3903
3912
|
}
|
|
3904
3913
|
);
|
|
3905
3914
|
}
|
|
3906
|
-
const
|
|
3915
|
+
const Fn = [
|
|
3907
3916
|
{ src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/IBK.svg", alt: "Interbank" },
|
|
3908
3917
|
{ src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/Yape.svg", alt: "Yape" },
|
|
3909
3918
|
{ src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/BCP.png", alt: "BCP" },
|
|
@@ -3912,14 +3921,14 @@ const An = [
|
|
|
3912
3921
|
{ src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/monnet.svg", alt: "Monnet" },
|
|
3913
3922
|
{ src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/niubiz.svg", alt: "Niubiz" }
|
|
3914
3923
|
];
|
|
3915
|
-
function
|
|
3924
|
+
function zn({
|
|
3916
3925
|
title: e = "Medios de pago",
|
|
3917
|
-
items: a =
|
|
3926
|
+
items: a = Fn
|
|
3918
3927
|
}) {
|
|
3919
3928
|
const n = Math.ceil(a.length / 2), o = a.slice(0, n), i = a.slice(n);
|
|
3920
3929
|
return /* @__PURE__ */ p(X, { component: "section", "aria-labelledby": "mp-title", sx: { color: "#fff" }, children: [
|
|
3921
3930
|
/* @__PURE__ */ t(
|
|
3922
|
-
|
|
3931
|
+
Qe,
|
|
3923
3932
|
{
|
|
3924
3933
|
id: "mp-title",
|
|
3925
3934
|
variant: "h6",
|
|
@@ -3955,7 +3964,7 @@ function Rn({
|
|
|
3955
3964
|
alignItems: "center",
|
|
3956
3965
|
gap: { xs: 2, md: 3 },
|
|
3957
3966
|
flexWrap: "wrap",
|
|
3958
|
-
children: o.map((l, s) => /* @__PURE__ */ t(
|
|
3967
|
+
children: o.map((l, s) => /* @__PURE__ */ t(Ue, { ...l }, `${l.alt}-${l.src}-${s}`))
|
|
3959
3968
|
}
|
|
3960
3969
|
),
|
|
3961
3970
|
/* @__PURE__ */ t(
|
|
@@ -3966,7 +3975,7 @@ function Rn({
|
|
|
3966
3975
|
alignItems: "center",
|
|
3967
3976
|
gap: { xs: 2, md: 3 },
|
|
3968
3977
|
flexWrap: "wrap",
|
|
3969
|
-
children: i.map((l, s) => /* @__PURE__ */ t(
|
|
3978
|
+
children: i.map((l, s) => /* @__PURE__ */ t(Ue, { ...l }, `${l.alt}-${l.src}-${s}`))
|
|
3970
3979
|
}
|
|
3971
3980
|
)
|
|
3972
3981
|
] })
|
|
@@ -3993,26 +4002,26 @@ function Ae({
|
|
|
3993
4002
|
e
|
|
3994
4003
|
] });
|
|
3995
4004
|
}
|
|
3996
|
-
function
|
|
4005
|
+
function ro({
|
|
3997
4006
|
docId: e = "home",
|
|
3998
4007
|
children: a
|
|
3999
4008
|
}) {
|
|
4000
4009
|
return /* @__PURE__ */ t(Ae, { children: /* @__PURE__ */ t(Le, { docId: e, children: a }) });
|
|
4001
4010
|
}
|
|
4002
|
-
const
|
|
4011
|
+
const Pn = {
|
|
4003
4012
|
OraculoSeccionDestacados: za,
|
|
4004
4013
|
OraculoSeccionTopJuegos: qa,
|
|
4005
|
-
OraculoSeccionCasinoEnVivo:
|
|
4006
|
-
OraculoSeccionCasino:
|
|
4007
|
-
OraculoSeccionVirtuales:
|
|
4008
|
-
OraculoSeccionClubOlimpo:
|
|
4009
|
-
OraculoSeccionBonoBienvenida:
|
|
4010
|
-
OraculoSeccionBanners:
|
|
4011
|
-
OraculoSeccionMediosPago:
|
|
4012
|
-
OraculoSeccionEventoEnVivo:
|
|
4013
|
-
OraculoSeccionEventoSemana:
|
|
4014
|
-
OraculoSeccionEventoCombinadas:
|
|
4015
|
-
},
|
|
4014
|
+
OraculoSeccionCasinoEnVivo: Ya,
|
|
4015
|
+
OraculoSeccionCasino: tn,
|
|
4016
|
+
OraculoSeccionVirtuales: rn,
|
|
4017
|
+
OraculoSeccionClubOlimpo: cn,
|
|
4018
|
+
OraculoSeccionBonoBienvenida: sn,
|
|
4019
|
+
OraculoSeccionBanners: Rn,
|
|
4020
|
+
OraculoSeccionMediosPago: zn,
|
|
4021
|
+
OraculoSeccionEventoEnVivo: Cn,
|
|
4022
|
+
OraculoSeccionEventoSemana: An,
|
|
4023
|
+
OraculoSeccionEventoCombinadas: hn
|
|
4024
|
+
}, Ke = {
|
|
4016
4025
|
sections: [
|
|
4017
4026
|
{
|
|
4018
4027
|
variableName2: "backgrounds",
|
|
@@ -5075,13 +5084,13 @@ const Fn = {
|
|
|
5075
5084
|
updatedAt: "2026-01-22T04:11:09.501Z"
|
|
5076
5085
|
}
|
|
5077
5086
|
]
|
|
5078
|
-
},
|
|
5087
|
+
}, Un = (e) => typeof e == "function" || e && typeof e == "object" && "$$typeof" in e, qn = (e) => /^OraculoSeccion[A-Z]/.test(e);
|
|
5079
5088
|
function Be(e) {
|
|
5080
5089
|
return e && Array.isArray(e.sections) ? e.sections.slice().sort((a, n) => {
|
|
5081
5090
|
var o, i;
|
|
5082
5091
|
return ((o = a.order) != null ? o : 0) - ((i = n.order) != null ? i : 0);
|
|
5083
5092
|
}).map((a, n) => ({ ...a, order: n + 1 })) : e && Array.isArray(e.components) ? e.components.map((a, n) => {
|
|
5084
|
-
var o, i, l, s,
|
|
5093
|
+
var o, i, l, s, u;
|
|
5085
5094
|
return {
|
|
5086
5095
|
id: (o = a.id) != null ? o : n + 1,
|
|
5087
5096
|
title: (i = a.title) != null ? i : "",
|
|
@@ -5089,7 +5098,7 @@ function Be(e) {
|
|
|
5089
5098
|
visible: (l = a.visible) != null ? l : !0,
|
|
5090
5099
|
order: n + 1,
|
|
5091
5100
|
props: (s = a.props) != null ? s : {},
|
|
5092
|
-
apiUrl: (
|
|
5101
|
+
apiUrl: (u = a.apiUrl) != null ? u : "",
|
|
5093
5102
|
dataMode: a.dataMode,
|
|
5094
5103
|
variableName: a.variableName,
|
|
5095
5104
|
manualItems: a.manualItems,
|
|
@@ -5101,27 +5110,27 @@ function Be(e) {
|
|
|
5101
5110
|
};
|
|
5102
5111
|
}) : [];
|
|
5103
5112
|
}
|
|
5104
|
-
const
|
|
5105
|
-
Object.entries(
|
|
5106
|
-
([e, a]) =>
|
|
5113
|
+
const Vn = Object.fromEntries(
|
|
5114
|
+
Object.entries(Pn).filter(
|
|
5115
|
+
([e, a]) => qn(e) && Un(a)
|
|
5107
5116
|
)
|
|
5108
|
-
),
|
|
5117
|
+
), Dn = (e) => {
|
|
5109
5118
|
try {
|
|
5110
5119
|
return Object.fromEntries(e != null ? e : []);
|
|
5111
5120
|
} catch {
|
|
5112
5121
|
return console.warn("[oraculo] extras inválidos. Debe ser Array<[string, unknown]>", e), {};
|
|
5113
5122
|
}
|
|
5114
5123
|
};
|
|
5115
|
-
class
|
|
5124
|
+
class Ze extends Error {
|
|
5116
5125
|
constructor(a, n, o) {
|
|
5117
5126
|
super(`HTTP ${a} ${o}`), this.status = a, this.url = n, this.statusText = o, this.name = "HttpError";
|
|
5118
5127
|
}
|
|
5119
5128
|
}
|
|
5120
|
-
const
|
|
5129
|
+
const Je = [
|
|
5121
5130
|
"OraculoSeccionEventoEnVivo",
|
|
5122
5131
|
"OraculoSeccionEventoSemana",
|
|
5123
5132
|
"OraculoSeccionEventoCombinadas"
|
|
5124
|
-
],
|
|
5133
|
+
], lo = ({
|
|
5125
5134
|
sectionsOverride: e,
|
|
5126
5135
|
docId: a = "home",
|
|
5127
5136
|
db: n,
|
|
@@ -5129,147 +5138,147 @@ const Ze = [
|
|
|
5129
5138
|
loader: i,
|
|
5130
5139
|
disableWrapper: l = !1
|
|
5131
5140
|
}) => {
|
|
5132
|
-
const s = te(() =>
|
|
5133
|
-
const
|
|
5134
|
-
return
|
|
5135
|
-
}, [s]),
|
|
5136
|
-
const
|
|
5137
|
-
if (!Array.isArray(
|
|
5138
|
-
const S =
|
|
5139
|
-
(
|
|
5141
|
+
const s = te(() => Dn(o), [o]), u = i || s.loader, [b, h] = H([]), [r, c] = H(!1), [m, f] = H({}), [_, T] = H({}), [C, I] = H({}), k = Ye("(min-width:1024px)"), A = (d) => Array.isArray(d) ? d.map((y) => Number(y)).filter((y) => !Number.isNaN(y)) : [], L = te(() => {
|
|
5142
|
+
const d = s.user;
|
|
5143
|
+
return A(d == null ? void 0 : d.groups);
|
|
5144
|
+
}, [s]), M = (d) => {
|
|
5145
|
+
const y = d.manualScalarFields;
|
|
5146
|
+
if (!Array.isArray(y)) return [];
|
|
5147
|
+
const S = y.find(
|
|
5148
|
+
(B) => String((B == null ? void 0 : B.name) || "").trim().toLowerCase() === "groups"
|
|
5140
5149
|
);
|
|
5141
5150
|
if (!S) return [];
|
|
5142
5151
|
const v = S.value;
|
|
5143
5152
|
if (v == null) return [];
|
|
5144
5153
|
if (Array.isArray(v))
|
|
5145
|
-
return v.map((
|
|
5146
|
-
const
|
|
5147
|
-
return
|
|
5148
|
-
},
|
|
5149
|
-
const S =
|
|
5154
|
+
return v.map((B) => Number(String(B).trim())).filter((B) => !Number.isNaN(B));
|
|
5155
|
+
const x = String(v).trim();
|
|
5156
|
+
return x ? x.split(",").map((B) => Number(B.trim())).filter((B) => !Number.isNaN(B)) : [];
|
|
5157
|
+
}, F = (d, y) => {
|
|
5158
|
+
const S = M(d);
|
|
5150
5159
|
if (S.length === 0) return !0;
|
|
5151
|
-
if (!Array.isArray(
|
|
5152
|
-
const v = new Set(
|
|
5153
|
-
return S.some((
|
|
5160
|
+
if (!Array.isArray(y) || y.length === 0) return !1;
|
|
5161
|
+
const v = new Set(y);
|
|
5162
|
+
return S.some((x) => v.has(x));
|
|
5154
5163
|
};
|
|
5155
5164
|
J(() => {
|
|
5156
5165
|
if (e) return;
|
|
5157
5166
|
if (!n) {
|
|
5158
|
-
console.warn("[landing] sin db -> fallback json"), h(Be(
|
|
5167
|
+
console.warn("[landing] sin db -> fallback json"), h(Be(Ke));
|
|
5159
5168
|
return;
|
|
5160
5169
|
}
|
|
5161
|
-
const
|
|
5162
|
-
console.warn("[landing] FALLBACK:", S, v != null ? v : ""), h(Be(
|
|
5170
|
+
const d = (S, v) => {
|
|
5171
|
+
console.warn("[landing] FALLBACK:", S, v != null ? v : ""), h(Be(Ke)), c(!1);
|
|
5163
5172
|
};
|
|
5164
5173
|
if (process.env.NEXT_PUBLIC_LANDING_FORCE_FALLBACK === "1") {
|
|
5165
|
-
|
|
5174
|
+
c(!0), d("forzado por env");
|
|
5166
5175
|
return;
|
|
5167
5176
|
}
|
|
5168
|
-
|
|
5169
|
-
const
|
|
5177
|
+
c(!0);
|
|
5178
|
+
const y = It(
|
|
5170
5179
|
Tt(n, "landings", a),
|
|
5171
5180
|
(S) => {
|
|
5172
5181
|
try {
|
|
5173
5182
|
if (!S.exists()) {
|
|
5174
|
-
|
|
5183
|
+
d(`doc landings/${a} no existe`);
|
|
5175
5184
|
return;
|
|
5176
5185
|
}
|
|
5177
|
-
const v = S.data(),
|
|
5178
|
-
if (!
|
|
5179
|
-
|
|
5186
|
+
const v = S.data(), x = Be(v);
|
|
5187
|
+
if (!x.length) {
|
|
5188
|
+
d("JSON inválido o sin secciones normalizables", v);
|
|
5180
5189
|
return;
|
|
5181
5190
|
}
|
|
5182
|
-
console.log("[landing] Firestore OK (json grande):", v), h(
|
|
5191
|
+
console.log("[landing] Firestore OK (json grande):", v), h(x);
|
|
5183
5192
|
} catch (v) {
|
|
5184
|
-
|
|
5193
|
+
d("error procesando snapshot", v);
|
|
5185
5194
|
} finally {
|
|
5186
|
-
|
|
5195
|
+
c(!1);
|
|
5187
5196
|
}
|
|
5188
5197
|
},
|
|
5189
5198
|
(S) => {
|
|
5190
|
-
|
|
5199
|
+
d("error onSnapshot", S);
|
|
5191
5200
|
}
|
|
5192
5201
|
);
|
|
5193
|
-
return () =>
|
|
5202
|
+
return () => y();
|
|
5194
5203
|
}, [e, a, n]), J(() => (Pa(s), () => Ua()), [s]), J(() => {
|
|
5195
|
-
(e ? e.slice() :
|
|
5196
|
-
}, [e,
|
|
5197
|
-
const
|
|
5198
|
-
if (
|
|
5204
|
+
(e ? e.slice() : b.slice()).map((S) => S.componentKey).filter((S) => !!S).length;
|
|
5205
|
+
}, [e, b]);
|
|
5206
|
+
const w = async (d) => {
|
|
5207
|
+
if (Je.includes(d.componentKey))
|
|
5199
5208
|
return {
|
|
5200
5209
|
items: [],
|
|
5201
5210
|
events: [],
|
|
5202
5211
|
data: {}
|
|
5203
5212
|
};
|
|
5204
|
-
const
|
|
5205
|
-
if (!
|
|
5206
|
-
const S =
|
|
5207
|
-
let
|
|
5213
|
+
const y = (d.apiUrl || "").trim();
|
|
5214
|
+
if (!y) return;
|
|
5215
|
+
const S = d.apiMethod || "GET", v = d.apiParams || [];
|
|
5216
|
+
let x = y, B, V;
|
|
5208
5217
|
if (S === "GET") {
|
|
5209
5218
|
const Z = new URL(
|
|
5210
|
-
|
|
5219
|
+
y,
|
|
5211
5220
|
typeof window == "undefined" ? "http://localhost" : window.location.origin
|
|
5212
5221
|
);
|
|
5213
5222
|
for (const Y of v)
|
|
5214
5223
|
Y.key && Z.searchParams.append(Y.key, Y.value);
|
|
5215
|
-
|
|
5224
|
+
x = Z.toString();
|
|
5216
5225
|
} else {
|
|
5217
5226
|
const Z = new URLSearchParams();
|
|
5218
5227
|
for (const Y of v)
|
|
5219
5228
|
Y.key && Z.append(Y.key, Y.value);
|
|
5220
|
-
|
|
5229
|
+
B = Z.toString(), V = {
|
|
5221
5230
|
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
|
|
5222
5231
|
};
|
|
5223
5232
|
}
|
|
5224
|
-
const D = await fetch(
|
|
5233
|
+
const D = await fetch(x, {
|
|
5225
5234
|
method: S,
|
|
5226
5235
|
headers: V,
|
|
5227
|
-
body:
|
|
5236
|
+
body: B
|
|
5228
5237
|
});
|
|
5229
|
-
if (!D.ok) throw new
|
|
5238
|
+
if (!D.ok) throw new Ze(D.status, x, D.statusText);
|
|
5230
5239
|
return D.json();
|
|
5231
|
-
},
|
|
5232
|
-
() => e ? e.slice() :
|
|
5233
|
-
[e,
|
|
5234
|
-
),
|
|
5240
|
+
}, N = te(
|
|
5241
|
+
() => e ? e.slice() : b.slice(),
|
|
5242
|
+
[e, b]
|
|
5243
|
+
), P = ue.useRef(/* @__PURE__ */ new Set());
|
|
5235
5244
|
J(() => {
|
|
5236
|
-
const
|
|
5237
|
-
if (
|
|
5238
|
-
for (const { s:
|
|
5239
|
-
const v = `${
|
|
5240
|
-
|
|
5245
|
+
const d = N.map((y) => ({ s: y, url: (y.apiUrl || "").trim() })).filter(({ url: y }) => !!y);
|
|
5246
|
+
if (d.length)
|
|
5247
|
+
for (const { s: y, url: S } of d) {
|
|
5248
|
+
const v = `${y.id}|${S}`;
|
|
5249
|
+
P.current.has(v) || (P.current.add(v), T((x) => ({ ...x, [y.id]: !0 })), I((x) => ({ ...x, [y.id]: "" })), (async () => {
|
|
5241
5250
|
try {
|
|
5242
|
-
const
|
|
5243
|
-
f((
|
|
5244
|
-
} catch (
|
|
5245
|
-
let
|
|
5246
|
-
|
|
5251
|
+
const x = await w(y);
|
|
5252
|
+
f((B) => ({ ...B, [y.id]: x }));
|
|
5253
|
+
} catch (x) {
|
|
5254
|
+
let B = "Error desconocido";
|
|
5255
|
+
x instanceof Ze ? B = `Error HTTP ${x.status} (${x.statusText}) en ${x.url}` : x instanceof SyntaxError ? B = "Respuesta no es JSON válido" : x instanceof TypeError ? B = "Fallo de red / CORS / conexión" : typeof x == "string" && (B = x.toString()), I((V) => ({ ...V, [y.id]: B }));
|
|
5247
5256
|
} finally {
|
|
5248
|
-
|
|
5257
|
+
T((x) => ({ ...x, [y.id]: !1 }));
|
|
5249
5258
|
}
|
|
5250
5259
|
})());
|
|
5251
5260
|
}
|
|
5252
|
-
}, [
|
|
5253
|
-
const
|
|
5254
|
-
() =>
|
|
5255
|
-
[
|
|
5256
|
-
),
|
|
5261
|
+
}, [N]);
|
|
5262
|
+
const E = te(
|
|
5263
|
+
() => N.filter((d) => d.visible).filter((d) => F(d, L)).sort((d, y) => d.order - y.order),
|
|
5264
|
+
[N, L]
|
|
5265
|
+
), O = (d) => Array.isArray(d) ? d.map((y) => {
|
|
5257
5266
|
const S = {};
|
|
5258
|
-
for (const v of
|
|
5259
|
-
const
|
|
5260
|
-
if (
|
|
5261
|
-
const
|
|
5262
|
-
if (
|
|
5263
|
-
const V = Number(
|
|
5267
|
+
for (const v of y.fields || []) {
|
|
5268
|
+
const x = (v.type || "string").toLowerCase();
|
|
5269
|
+
if (x === "number") {
|
|
5270
|
+
const B = String(v.value || "").trim();
|
|
5271
|
+
if (B !== "") {
|
|
5272
|
+
const V = Number(B);
|
|
5264
5273
|
Number.isNaN(V) || (S[v.name] = V);
|
|
5265
5274
|
}
|
|
5266
|
-
} else if (
|
|
5275
|
+
} else if (x === "boolean")
|
|
5267
5276
|
S[v.name] = String(v.value).toLowerCase() === "true";
|
|
5268
|
-
else if (
|
|
5269
|
-
const
|
|
5270
|
-
if (
|
|
5277
|
+
else if (x === "function") {
|
|
5278
|
+
const B = String(v.value || "").trim();
|
|
5279
|
+
if (B)
|
|
5271
5280
|
try {
|
|
5272
|
-
const V = new Function(
|
|
5281
|
+
const V = new Function(B);
|
|
5273
5282
|
S[v.name] = V;
|
|
5274
5283
|
} catch (V) {
|
|
5275
5284
|
console.error(`❌ Error creando función en item '${v.name}':`, V);
|
|
@@ -5278,99 +5287,99 @@ const Ze = [
|
|
|
5278
5287
|
S[v.name] = v.value;
|
|
5279
5288
|
}
|
|
5280
5289
|
return S;
|
|
5281
|
-
}) : [],
|
|
5282
|
-
const
|
|
5283
|
-
if (!Array.isArray(
|
|
5284
|
-
for (const S of
|
|
5290
|
+
}) : [], R = (d) => {
|
|
5291
|
+
const y = {};
|
|
5292
|
+
if (!Array.isArray(d)) return y;
|
|
5293
|
+
for (const S of d) {
|
|
5285
5294
|
if (!S.name) continue;
|
|
5286
5295
|
const v = (S.type || "string").toLowerCase();
|
|
5287
5296
|
if (v === "number") {
|
|
5288
|
-
const
|
|
5289
|
-
if (
|
|
5290
|
-
const
|
|
5291
|
-
Number.isNaN(
|
|
5297
|
+
const x = String(S.value || "").trim();
|
|
5298
|
+
if (x !== "") {
|
|
5299
|
+
const B = Number(x);
|
|
5300
|
+
Number.isNaN(B) || (y[S.name] = B);
|
|
5292
5301
|
}
|
|
5293
5302
|
} else if (v === "boolean")
|
|
5294
|
-
|
|
5303
|
+
y[S.name] = String(S.value).toLowerCase() === "true";
|
|
5295
5304
|
else if (v === "function") {
|
|
5296
|
-
const
|
|
5297
|
-
if (
|
|
5305
|
+
const x = String(S.value || "").trim();
|
|
5306
|
+
if (x)
|
|
5298
5307
|
try {
|
|
5299
|
-
const
|
|
5300
|
-
|
|
5301
|
-
} catch (
|
|
5302
|
-
console.error(`❌ Error creando función en item '${S.name}':`,
|
|
5308
|
+
const B = new Function(x);
|
|
5309
|
+
y[S.name] = B;
|
|
5310
|
+
} catch (B) {
|
|
5311
|
+
console.error(`❌ Error creando función en item '${S.name}':`, B);
|
|
5303
5312
|
}
|
|
5304
5313
|
} else
|
|
5305
|
-
|
|
5314
|
+
y[S.name] = S.value;
|
|
5306
5315
|
}
|
|
5307
|
-
return
|
|
5308
|
-
}, q = (
|
|
5309
|
-
const
|
|
5310
|
-
if (
|
|
5311
|
-
return
|
|
5312
|
-
const V =
|
|
5316
|
+
return y;
|
|
5317
|
+
}, q = (d, y, S, v) => {
|
|
5318
|
+
const x = S ? { ...S } : {}, B = (v || "items").trim() || "items";
|
|
5319
|
+
if (y)
|
|
5320
|
+
return x[B] = y.arr || [], x;
|
|
5321
|
+
const V = d;
|
|
5313
5322
|
if (Array.isArray(V))
|
|
5314
|
-
return
|
|
5323
|
+
return x[B] = V, x;
|
|
5315
5324
|
if (V && typeof V == "object") {
|
|
5316
5325
|
const D = V;
|
|
5317
|
-
return Array.isArray(D.lobby) ? (
|
|
5326
|
+
return Array.isArray(D.lobby) ? (x[B] = D.lobby, x) : Array.isArray(D.items) ? (x[B] = D.items, x) : (x[B] = V, x);
|
|
5318
5327
|
}
|
|
5319
|
-
return
|
|
5320
|
-
},
|
|
5321
|
-
var
|
|
5322
|
-
const
|
|
5323
|
-
let v =
|
|
5324
|
-
const
|
|
5325
|
-
if (
|
|
5326
|
-
return { items: S, ...v, ...
|
|
5327
|
-
if (v = { ...v, ...
|
|
5328
|
-
else if (
|
|
5329
|
-
const V =
|
|
5328
|
+
return x[B] = [], x;
|
|
5329
|
+
}, g = (d) => {
|
|
5330
|
+
var B;
|
|
5331
|
+
const y = !!((B = d.apiUrl) != null && B.trim()), S = y ? m[d.id] : void 0;
|
|
5332
|
+
let v = d.props ? { ...d.props } : {};
|
|
5333
|
+
const x = R(d.manualScalarFields);
|
|
5334
|
+
if (Je.includes(d.componentKey))
|
|
5335
|
+
return { items: S, ...v, ...x };
|
|
5336
|
+
if (v = { ...v, ...x }, y) v = q(S, null, v);
|
|
5337
|
+
else if (d.dataMode === "manual") {
|
|
5338
|
+
const V = O(d.manualItems);
|
|
5330
5339
|
if (v = q(
|
|
5331
5340
|
null,
|
|
5332
|
-
{ arr: V, variableName:
|
|
5341
|
+
{ arr: V, variableName: d.variableName },
|
|
5333
5342
|
v,
|
|
5334
|
-
|
|
5335
|
-
),
|
|
5336
|
-
const D =
|
|
5343
|
+
d.variableName
|
|
5344
|
+
), d.variableName2 && d.manualItems2) {
|
|
5345
|
+
const D = O(d.manualItems2), Z = (d.variableName2 || "items2").trim() || "items2";
|
|
5337
5346
|
v[Z] = D;
|
|
5338
5347
|
}
|
|
5339
5348
|
}
|
|
5340
5349
|
return v;
|
|
5341
|
-
},
|
|
5350
|
+
}, z = (d, y, S) => /* @__PURE__ */ t("div", { className: `mx-4 p-4 rounded ${{
|
|
5342
5351
|
loading: "bg-blue-100 text-blue-800",
|
|
5343
5352
|
error: "bg-red-100 text-red-800",
|
|
5344
5353
|
component: "bg-yellow-100 text-yellow-800"
|
|
5345
|
-
}[
|
|
5346
|
-
var
|
|
5347
|
-
const
|
|
5354
|
+
}[y]}`, children: S }, d), $ = (d) => {
|
|
5355
|
+
var ze;
|
|
5356
|
+
const y = d.componentKey, S = Vn[y];
|
|
5348
5357
|
if (!S)
|
|
5349
|
-
return console.warn(`No hay componente registrado para "${
|
|
5350
|
-
|
|
5358
|
+
return console.warn(`No hay componente registrado para "${y}"`), z(
|
|
5359
|
+
d.id,
|
|
5351
5360
|
"component",
|
|
5352
|
-
`Componente "${
|
|
5361
|
+
`Componente "${y}" no encontrado`
|
|
5353
5362
|
);
|
|
5354
|
-
const v = !!((
|
|
5363
|
+
const v = !!((ze = d.apiUrl) != null && ze.trim()), x = v ? m[d.id] : void 0, B = v ? !!_[d.id] : !1, V = v ? C[d.id] : "";
|
|
5355
5364
|
if (v) {
|
|
5356
|
-
if (
|
|
5357
|
-
return
|
|
5358
|
-
|
|
5365
|
+
if (B && !x)
|
|
5366
|
+
return z(
|
|
5367
|
+
d.id,
|
|
5359
5368
|
"loading",
|
|
5360
|
-
`Cargando datos desde ${
|
|
5369
|
+
`Cargando datos desde ${d.apiUrl}...`
|
|
5361
5370
|
);
|
|
5362
|
-
if (V && !
|
|
5363
|
-
return
|
|
5364
|
-
|
|
5371
|
+
if (V && !x)
|
|
5372
|
+
return z(
|
|
5373
|
+
d.id,
|
|
5365
5374
|
"error",
|
|
5366
|
-
`Error cargando ${
|
|
5375
|
+
`Error cargando ${d.apiUrl}: ${V}`
|
|
5367
5376
|
);
|
|
5368
5377
|
}
|
|
5369
|
-
const D =
|
|
5378
|
+
const D = g(d), Y = (/* @__PURE__ */ new Set([
|
|
5370
5379
|
"OraculoSeccionBanners",
|
|
5371
5380
|
"OraculoSeccionBonoBienvenida",
|
|
5372
5381
|
"OraculoSeccionCasinoEnVivo",
|
|
5373
|
-
|
|
5382
|
+
...k ? [] : [
|
|
5374
5383
|
"OraculoSeccionClubOlimpo",
|
|
5375
5384
|
"OraculoSeccionEventoEnVivo",
|
|
5376
5385
|
"OraculoSeccionEventoSemana",
|
|
@@ -5379,7 +5388,7 @@ const Ze = [
|
|
|
5379
5388
|
"OraculoSeccionDestacados",
|
|
5380
5389
|
"OraculoSeccionCasino"
|
|
5381
5390
|
]
|
|
5382
|
-
])).has(
|
|
5391
|
+
])).has(d.componentKey), me = k ? 120 : 24, pe = (k ? 8 : 5) * 8, pt = d.componentKey === "OraculoSeccionCasinoEnVivo", ft = {
|
|
5383
5392
|
width: "100%",
|
|
5384
5393
|
boxSizing: "border-box",
|
|
5385
5394
|
...Y ? {} : { paddingLeft: me, paddingRight: me },
|
|
@@ -5388,9 +5397,9 @@ const Ze = [
|
|
|
5388
5397
|
marginBottom: -pe
|
|
5389
5398
|
} : {}
|
|
5390
5399
|
};
|
|
5391
|
-
return /* @__PURE__ */ t("div", { style: ft, className: "oraculo-section-wrapper", children: /* @__PURE__ */ t(S, { ...D }) },
|
|
5400
|
+
return /* @__PURE__ */ t("div", { style: ft, className: "oraculo-section-wrapper", children: /* @__PURE__ */ t(S, { ...D }) }, d.id);
|
|
5392
5401
|
};
|
|
5393
|
-
return r && !e ?
|
|
5402
|
+
return r && !e ? u ? /* @__PURE__ */ t(u, {}) : /* @__PURE__ */ t("div", { children: "Cargando..." }) : !r && !e && b.length === 0 ? /* @__PURE__ */ t("div", { className: "text-xs text-gray-500", children: "Sin secciones (Firestore)" }) : l ? /* @__PURE__ */ t(Ae, { children: /* @__PURE__ */ t(Le, { docId: a, children: /* @__PURE__ */ t(ae, { children: E.map($) }) }) }) : /* @__PURE__ */ t(Ae, { children: /* @__PURE__ */ t(Le, { docId: a, children: /* @__PURE__ */ t(
|
|
5394
5403
|
gt,
|
|
5395
5404
|
{
|
|
5396
5405
|
className: "oli-font",
|
|
@@ -5404,7 +5413,7 @@ const Ze = [
|
|
|
5404
5413
|
maxWidth: "100%",
|
|
5405
5414
|
overflowX: "hidden"
|
|
5406
5415
|
},
|
|
5407
|
-
children: /* @__PURE__ */ t(ye, { direction: "column", spacing:
|
|
5416
|
+
children: /* @__PURE__ */ t(ye, { direction: "column", spacing: k ? 8 : 5, useFlexGap: !0, children: E.map($) })
|
|
5408
5417
|
}
|
|
5409
5418
|
) }) });
|
|
5410
5419
|
};
|
|
@@ -5412,42 +5421,42 @@ export {
|
|
|
5412
5421
|
Le as DocIdProvider,
|
|
5413
5422
|
K as OraculoButton,
|
|
5414
5423
|
ce as OraculoCarousel,
|
|
5415
|
-
|
|
5424
|
+
at as OraculoCarouselDots,
|
|
5416
5425
|
ua as OraculoClubOlimpoVisual,
|
|
5417
5426
|
Ca as OraculoEventCombinadasCard,
|
|
5418
5427
|
ka as OraculoEventEnVivoCard,
|
|
5419
5428
|
At as OraculoEventHeader,
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
|
|
5429
|
+
nt as OraculoEventLabel,
|
|
5430
|
+
ot as OraculoEventLeague,
|
|
5431
|
+
it as OraculoEventScore,
|
|
5423
5432
|
Fa as OraculoEventSemanaCard,
|
|
5424
5433
|
Lt as OraculoEventStatus,
|
|
5425
5434
|
Bt as OraculoEventStatusBadge,
|
|
5426
5435
|
Oe as OraculoEventTeamInfo,
|
|
5427
5436
|
we as OraculoGameCard,
|
|
5428
5437
|
ca as OraculoGameRankCard,
|
|
5429
|
-
|
|
5438
|
+
rt as OraculoGameSlide,
|
|
5430
5439
|
re as OraculoGridGroup,
|
|
5431
5440
|
da as OraculoLiveCasinoCard,
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
|
|
5435
|
-
|
|
5436
|
-
|
|
5437
|
-
|
|
5438
|
-
|
|
5441
|
+
Ue as OraculoLogoMediosPago,
|
|
5442
|
+
lo as OraculoPageLandingPreview,
|
|
5443
|
+
Rn as OraculoSeccionBanners,
|
|
5444
|
+
sn as OraculoSeccionBonoBienvenida,
|
|
5445
|
+
tn as OraculoSeccionCasino,
|
|
5446
|
+
Ya as OraculoSeccionCasinoEnVivo,
|
|
5447
|
+
cn as OraculoSeccionClubOlimpo,
|
|
5439
5448
|
za as OraculoSeccionDestacados,
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
|
|
5443
|
-
|
|
5449
|
+
hn as OraculoSeccionEventoCombinadas,
|
|
5450
|
+
Cn as OraculoSeccionEventoEnVivo,
|
|
5451
|
+
An as OraculoSeccionEventoSemana,
|
|
5452
|
+
zn as OraculoSeccionMediosPago,
|
|
5444
5453
|
qa as OraculoSeccionTopJuegos,
|
|
5445
|
-
|
|
5446
|
-
|
|
5454
|
+
rn as OraculoSeccionVirtuales,
|
|
5455
|
+
ro as OraculoSectionHost,
|
|
5447
5456
|
se as OraculoSectionTitle,
|
|
5448
5457
|
Ae as OraculoThemeProvider,
|
|
5449
5458
|
qa as OraculoTopJuegoItem,
|
|
5450
|
-
|
|
5451
|
-
|
|
5459
|
+
qe as OraculoWelcomeBanner,
|
|
5460
|
+
lo as default
|
|
5452
5461
|
};
|
|
5453
5462
|
//# sourceMappingURL=index.es.js.map
|