oraculo-ui 0.1.142 → 0.1.144
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +3 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +445 -439
- package/dist/index.es.js.map +1 -1
- package/dist/interfaces/oraculo/InterfaceDestacados.d.ts +1 -0
- package/dist/organisms/OraculoSeccionDestacados/OraculoSeccionDestacados.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -23,28 +23,28 @@ function Y({
|
|
|
23
23
|
type: i = "button",
|
|
24
24
|
disabled: s = !1,
|
|
25
25
|
variant: c = "primary",
|
|
26
|
-
size:
|
|
26
|
+
size: g,
|
|
27
27
|
fullWidth: h = !1,
|
|
28
28
|
fullHeight: u = !1,
|
|
29
29
|
className: m = "",
|
|
30
30
|
ariaLabel: d,
|
|
31
|
-
leftIcon:
|
|
31
|
+
leftIcon: f,
|
|
32
32
|
rightIcon: b,
|
|
33
33
|
iconOnly: x
|
|
34
34
|
}) {
|
|
35
|
-
const C = !!e && e !== !0, M = (!!
|
|
35
|
+
const C = !!e && e !== !0, M = (!!f ? 1 : 0) + (!!b ? 1 : 0) == 1, D = x != null ? x : M && !C, T = [
|
|
36
36
|
"orc-btn",
|
|
37
37
|
c === "secondary" ? "orc-btn--secondary" : c === "tertiary" ? "orc-btn--tertiary" : "orc-btn--primary",
|
|
38
|
-
|
|
38
|
+
g ? `orc-btn--${g}` : "",
|
|
39
39
|
h ? "orc-btn--full" : "",
|
|
40
40
|
u ? "orc-btn--fullHeight" : "",
|
|
41
|
-
|
|
41
|
+
D ? "orc-btn--iconOnly" : "",
|
|
42
42
|
m
|
|
43
|
-
].filter(Boolean).join(" "),
|
|
44
|
-
|
|
45
|
-
!
|
|
43
|
+
].filter(Boolean).join(" "), y = /* @__PURE__ */ _(pe, { children: [
|
|
44
|
+
f && /* @__PURE__ */ t("span", { className: "orc-btn__icon", children: f }),
|
|
45
|
+
!D && /* @__PURE__ */ t("span", { className: "orc-btn__label", children: e }),
|
|
46
46
|
b && /* @__PURE__ */ t("span", { className: "orc-btn__icon", children: b })
|
|
47
|
-
] }),
|
|
47
|
+
] }), F = s ? !0 : void 0;
|
|
48
48
|
return n ? /* @__PURE__ */ t(
|
|
49
49
|
it,
|
|
50
50
|
{
|
|
@@ -52,21 +52,21 @@ function Y({
|
|
|
52
52
|
target: o,
|
|
53
53
|
rel: r,
|
|
54
54
|
"aria-label": d,
|
|
55
|
-
"aria-disabled":
|
|
56
|
-
tabIndex:
|
|
57
|
-
className:
|
|
58
|
-
onClick:
|
|
59
|
-
children:
|
|
55
|
+
"aria-disabled": F,
|
|
56
|
+
tabIndex: F ? -1 : void 0,
|
|
57
|
+
className: T,
|
|
58
|
+
onClick: F ? (q) => q.preventDefault() : a,
|
|
59
|
+
children: y
|
|
60
60
|
}
|
|
61
61
|
) : /* @__PURE__ */ t(
|
|
62
62
|
"button",
|
|
63
63
|
{
|
|
64
64
|
type: i,
|
|
65
65
|
onClick: a,
|
|
66
|
-
disabled: !!
|
|
66
|
+
disabled: !!F,
|
|
67
67
|
"aria-label": d,
|
|
68
|
-
className:
|
|
69
|
-
children:
|
|
68
|
+
className: T,
|
|
69
|
+
children: y
|
|
70
70
|
}
|
|
71
71
|
);
|
|
72
72
|
}
|
|
@@ -103,8 +103,8 @@ const dt = ({
|
|
|
103
103
|
if (e <= 1) return null;
|
|
104
104
|
const i = ["orc-dots", o].filter(Boolean).join(" "), [s, c] = X(0);
|
|
105
105
|
return Q(() => {
|
|
106
|
-
c((
|
|
107
|
-
}, [a, r]), /* @__PURE__ */ t("div", { className: i, role: "tablist", "aria-label": "Carousel pagination", children: Array.from({ length: e }).map((
|
|
106
|
+
c((g) => g + 1);
|
|
107
|
+
}, [a, r]), /* @__PURE__ */ t("div", { className: i, role: "tablist", "aria-label": "Carousel pagination", children: Array.from({ length: e }).map((g, h) => {
|
|
108
108
|
const u = h === a;
|
|
109
109
|
return /* @__PURE__ */ t("span", { className: "orc-dots__cell", children: /* @__PURE__ */ t(
|
|
110
110
|
"button",
|
|
@@ -388,19 +388,19 @@ function fa(e, a, {
|
|
|
388
388
|
if (!n) return;
|
|
389
389
|
const c = e.current;
|
|
390
390
|
if (!c) return;
|
|
391
|
-
const
|
|
391
|
+
const g = (h) => {
|
|
392
392
|
const u = a.current;
|
|
393
393
|
if (!u || !u.go) return;
|
|
394
394
|
const { deltaX: m, deltaY: d } = h;
|
|
395
395
|
if (Math.abs(m) <= Math.abs(d)) return;
|
|
396
396
|
h.preventDefault(), i.current += m;
|
|
397
|
-
const
|
|
398
|
-
if (
|
|
397
|
+
const f = Date.now();
|
|
398
|
+
if (f - s.current < r || Math.abs(i.current) < o) return;
|
|
399
399
|
const b = i.current > 0 ? ">" : "<";
|
|
400
|
-
i.current = 0, s.current =
|
|
400
|
+
i.current = 0, s.current = f, u.go(b);
|
|
401
401
|
};
|
|
402
|
-
return c.addEventListener("wheel",
|
|
403
|
-
c.removeEventListener("wheel",
|
|
402
|
+
return c.addEventListener("wheel", g, { passive: !1 }), () => {
|
|
403
|
+
c.removeEventListener("wheel", g), i.current = 0;
|
|
404
404
|
};
|
|
405
405
|
}, [n, o, r, e, a]);
|
|
406
406
|
}
|
|
@@ -419,12 +419,12 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
|
|
|
419
419
|
options: i = {},
|
|
420
420
|
className: s = "",
|
|
421
421
|
onMove: c,
|
|
422
|
-
useIndexAsKey:
|
|
422
|
+
useIndexAsKey: g = !1,
|
|
423
423
|
enableHorizontalWheel: h = !0,
|
|
424
424
|
showRightGradient: u = !1
|
|
425
425
|
}, m) => {
|
|
426
|
-
const d = V(null),
|
|
427
|
-
fa(
|
|
426
|
+
const d = V(null), f = V(null), b = V(e.length), x = V(null), C = V(null), p = V("user");
|
|
427
|
+
fa(f, d, {
|
|
428
428
|
enabled: h
|
|
429
429
|
}), kt(m, () => ({
|
|
430
430
|
next: () => {
|
|
@@ -453,9 +453,9 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
|
|
|
453
453
|
}, M = (O) => {
|
|
454
454
|
const v = O.root.querySelector(".splide__track"), I = O.root.querySelector(".splide__list");
|
|
455
455
|
return !v || !I ? !1 : I.scrollWidth > v.clientWidth + 1;
|
|
456
|
-
},
|
|
456
|
+
}, D = V(!1), T = Ce((O) => {
|
|
457
457
|
var Z, G;
|
|
458
|
-
if (
|
|
458
|
+
if (D.current) return;
|
|
459
459
|
const I = O.Components.Slides.getLength(), R = p.current;
|
|
460
460
|
if (p.current = "user", !M(O)) {
|
|
461
461
|
c == null || c({
|
|
@@ -488,33 +488,33 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
|
|
|
488
488
|
if (!O) return;
|
|
489
489
|
const v = b.current !== e.length;
|
|
490
490
|
b.current = e.length, v && requestAnimationFrame(() => {
|
|
491
|
-
|
|
491
|
+
D.current = !0;
|
|
492
492
|
try {
|
|
493
493
|
O.refresh();
|
|
494
494
|
} finally {
|
|
495
|
-
|
|
495
|
+
D.current = !1;
|
|
496
496
|
}
|
|
497
|
-
p.current = "resize",
|
|
497
|
+
p.current = "resize", T(O);
|
|
498
498
|
});
|
|
499
|
-
}, [e.length,
|
|
500
|
-
const
|
|
499
|
+
}, [e.length, T]);
|
|
500
|
+
const y = Ce(() => {
|
|
501
501
|
var v;
|
|
502
502
|
const O = (v = d.current) == null ? void 0 : v.splide;
|
|
503
503
|
if (O) {
|
|
504
|
-
|
|
504
|
+
D.current = !0;
|
|
505
505
|
try {
|
|
506
506
|
O.go(0, !1);
|
|
507
507
|
} finally {
|
|
508
|
-
|
|
508
|
+
D.current = !1;
|
|
509
509
|
}
|
|
510
|
-
p.current = "resize",
|
|
510
|
+
p.current = "resize", T(O);
|
|
511
511
|
}
|
|
512
|
-
}, [
|
|
512
|
+
}, [T]), F = Ce(
|
|
513
513
|
(O) => {
|
|
514
|
-
p.current = "mounted",
|
|
514
|
+
p.current = "mounted", T(O);
|
|
515
515
|
},
|
|
516
|
-
[
|
|
517
|
-
),
|
|
516
|
+
[T]
|
|
517
|
+
), q = {
|
|
518
518
|
type: "slide",
|
|
519
519
|
trimSpace: !1,
|
|
520
520
|
drag: !0,
|
|
@@ -532,7 +532,7 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
|
|
|
532
532
|
return /* @__PURE__ */ _(
|
|
533
533
|
"div",
|
|
534
534
|
{
|
|
535
|
-
ref:
|
|
535
|
+
ref: f,
|
|
536
536
|
className: s,
|
|
537
537
|
style: { width: "100%", position: "relative", height: "100%" },
|
|
538
538
|
children: [
|
|
@@ -540,13 +540,13 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
|
|
|
540
540
|
_a,
|
|
541
541
|
{
|
|
542
542
|
ref: d,
|
|
543
|
-
options:
|
|
544
|
-
onMove:
|
|
545
|
-
onMounted:
|
|
546
|
-
onResize:
|
|
543
|
+
options: q,
|
|
544
|
+
onMove: T,
|
|
545
|
+
onMounted: F,
|
|
546
|
+
onResize: y,
|
|
547
547
|
children: e.map((O, v) => {
|
|
548
548
|
var I;
|
|
549
|
-
return /* @__PURE__ */ t(ya, { children: a(O, v) },
|
|
549
|
+
return /* @__PURE__ */ t(ya, { children: a(O, v) }, g ? v : (I = O.id) != null ? I : v);
|
|
550
550
|
})
|
|
551
551
|
}
|
|
552
552
|
),
|
|
@@ -703,16 +703,16 @@ function xa({
|
|
|
703
703
|
md: { w: 186, h: 264, r: 22.6, font: 64 }
|
|
704
704
|
}
|
|
705
705
|
}) {
|
|
706
|
-
var m, d,
|
|
706
|
+
var m, d, f, b;
|
|
707
707
|
const i = (x, C) => {
|
|
708
|
-
var p, w, M,
|
|
708
|
+
var p, w, M, D;
|
|
709
709
|
return {
|
|
710
710
|
xs: (w = (p = r.xs) == null ? void 0 : p[x]) != null ? w : C,
|
|
711
|
-
md: (
|
|
711
|
+
md: (D = (M = r.md) == null ? void 0 : M[x]) != null ? D : C
|
|
712
712
|
};
|
|
713
|
-
}, s = i("w", 186), c = i("h", 264),
|
|
713
|
+
}, s = i("w", 186), c = i("h", 264), g = i("r", 22.6), h = i("font", 64), u = {
|
|
714
714
|
xs: Math.round(((d = (m = r.xs) == null ? void 0 : m.font) != null ? d : 64) * 0.28),
|
|
715
|
-
md: Math.round(((b = (
|
|
715
|
+
md: Math.round(((b = (f = r.md) == null ? void 0 : f.font) != null ? b : 64) * 0.28)
|
|
716
716
|
};
|
|
717
717
|
return /* @__PURE__ */ _(
|
|
718
718
|
P,
|
|
@@ -725,7 +725,7 @@ function xa({
|
|
|
725
725
|
xs: `${s.xs}/${c.xs}`,
|
|
726
726
|
md: `${s.md}/${c.md}`
|
|
727
727
|
},
|
|
728
|
-
borderRadius: { xs: `${
|
|
728
|
+
borderRadius: { xs: `${g.xs}px`, md: `${g.md}px` },
|
|
729
729
|
boxSizing: "border-box",
|
|
730
730
|
overflow: "visible",
|
|
731
731
|
pb: { xs: `${u.xs}px`, md: `${u.md}px` },
|
|
@@ -907,7 +907,7 @@ const wa = ({
|
|
|
907
907
|
}) => {
|
|
908
908
|
var i, s;
|
|
909
909
|
if (a === "mosaic") {
|
|
910
|
-
const c = e[0],
|
|
910
|
+
const c = e[0], g = e.slice(1, 5);
|
|
911
911
|
return /* @__PURE__ */ _(
|
|
912
912
|
P,
|
|
913
913
|
{
|
|
@@ -953,7 +953,7 @@ const wa = ({
|
|
|
953
953
|
)
|
|
954
954
|
}
|
|
955
955
|
),
|
|
956
|
-
(o ? Array.from({ length: 4 }) :
|
|
956
|
+
(o ? Array.from({ length: 4 }) : g).map((h, u) => {
|
|
957
957
|
var m, d;
|
|
958
958
|
return /* @__PURE__ */ t(
|
|
959
959
|
P,
|
|
@@ -997,7 +997,7 @@ const wa = ({
|
|
|
997
997
|
gap: `${qe}px`,
|
|
998
998
|
gridAutoFlow: "column"
|
|
999
999
|
},
|
|
1000
|
-
children: (o ? Array.from({ length: r }) : e).map((c,
|
|
1000
|
+
children: (o ? Array.from({ length: r }) : e).map((c, g) => {
|
|
1001
1001
|
var h, u, m;
|
|
1002
1002
|
return /* @__PURE__ */ t(
|
|
1003
1003
|
P,
|
|
@@ -1009,11 +1009,11 @@ const wa = ({
|
|
|
1009
1009
|
imageUrl: `https://olimpo.bet${(u = (h = c.background) != null ? h : c.imageUrl) != null ? u : ""}`,
|
|
1010
1010
|
size: "sm",
|
|
1011
1011
|
fillParent: !0,
|
|
1012
|
-
onClick: () => n == null ? void 0 : n(c,
|
|
1012
|
+
onClick: () => n == null ? void 0 : n(c, g)
|
|
1013
1013
|
}
|
|
1014
1014
|
)
|
|
1015
1015
|
},
|
|
1016
|
-
o ? `sk-${
|
|
1016
|
+
o ? `sk-${g}` : (m = c.id) != null ? m : g
|
|
1017
1017
|
);
|
|
1018
1018
|
})
|
|
1019
1019
|
}
|
|
@@ -1027,9 +1027,9 @@ const wa = ({
|
|
|
1027
1027
|
backgroundImage: i,
|
|
1028
1028
|
alt: s,
|
|
1029
1029
|
className: c = "",
|
|
1030
|
-
variant:
|
|
1030
|
+
variant: g = "small"
|
|
1031
1031
|
}) => {
|
|
1032
|
-
const h = a ? a.slice(0, 2) : "", u = a ? a.slice(2) : "", m =
|
|
1032
|
+
const h = a ? a.slice(0, 2) : "", u = a ? a.slice(2) : "", m = g === "large";
|
|
1033
1033
|
return /* @__PURE__ */ _(
|
|
1034
1034
|
P,
|
|
1035
1035
|
{
|
|
@@ -1261,28 +1261,28 @@ function La({ coupon: e }) {
|
|
|
1261
1261
|
var h;
|
|
1262
1262
|
const a = ae(), n = ne();
|
|
1263
1263
|
function o(u) {
|
|
1264
|
-
var
|
|
1264
|
+
var f, b;
|
|
1265
1265
|
const m = [], d = Array.from(
|
|
1266
1266
|
new Map(
|
|
1267
|
-
((
|
|
1267
|
+
((f = u == null ? void 0 : u.events) != null ? f : []).filter(Boolean).map((x) => [x.id, x])
|
|
1268
1268
|
).values()
|
|
1269
1269
|
);
|
|
1270
1270
|
return d.forEach((x) => {
|
|
1271
1271
|
var M;
|
|
1272
1272
|
const C = (M = x.betoffers) != null ? M : [], p = x.homeName, w = x.awayName;
|
|
1273
|
-
C.forEach((
|
|
1274
|
-
var
|
|
1275
|
-
if (!((
|
|
1276
|
-
const
|
|
1277
|
-
if (!
|
|
1278
|
-
let
|
|
1279
|
-
const
|
|
1280
|
-
["Más de", "Mas de", "Over"].includes(
|
|
1281
|
-
id:
|
|
1282
|
-
value:
|
|
1283
|
-
label: (R = (I =
|
|
1284
|
-
odds: (B =
|
|
1285
|
-
position: (A =
|
|
1273
|
+
C.forEach((D) => {
|
|
1274
|
+
var q, O, v, I, R, B, A;
|
|
1275
|
+
if (!((q = D == null ? void 0 : D.outcomes) != null && q.length)) return;
|
|
1276
|
+
const T = D.outcomes[0];
|
|
1277
|
+
if (!T) return;
|
|
1278
|
+
let y = "";
|
|
1279
|
+
const F = T != null && T.line ? T.line / 1e3 : "";
|
|
1280
|
+
["Más de", "Mas de", "Over"].includes(T.label) ? (y = `Más de ${F}`, T.participant && (y = `${T.participant} - ${y}`)) : ["Menos de", "Menos", "Under"].includes(T.label) ? (y = `Menos de ${F}`, T.participant && (y = `${T.participant} - ${y}`)) : ["Sí", "No"].includes(T.label) ? (y = T.label, T.participant && (y = `${T.participant} - ${y}`)) : ["1X", "12", "X2"].includes(T.label) ? (T.label === "1X" && (y = `${p} o Empate`), T.label === "12" && (y = `${p} o ${w}`), T.label === "X2" && (y = `${w} o Empate`)) : (y = (v = (O = T.participant) != null ? O : T.label) != null ? v : "", F !== "" && y === T.label && (y = `${T.label} ${F}`)), m.push({
|
|
1281
|
+
id: T.id,
|
|
1282
|
+
value: y,
|
|
1283
|
+
label: (R = (I = D.criterion) == null ? void 0 : I.label) != null ? R : "",
|
|
1284
|
+
odds: (B = T.odds) != null ? B : 0,
|
|
1285
|
+
position: (A = T.position) != null ? A : 0,
|
|
1286
1286
|
eventId: x.id
|
|
1287
1287
|
});
|
|
1288
1288
|
});
|
|
@@ -1310,15 +1310,15 @@ function La({ coupon: e }) {
|
|
|
1310
1310
|
return "/deportes#home";
|
|
1311
1311
|
}
|
|
1312
1312
|
const i = (u, m) => {
|
|
1313
|
-
const d = Array.isArray(u) ? u : [u],
|
|
1313
|
+
const d = Array.isArray(u) ? u : [u], f = Array.from(
|
|
1314
1314
|
new Set(
|
|
1315
1315
|
s.outcomes.map((C) => {
|
|
1316
1316
|
var w;
|
|
1317
|
-
const p =
|
|
1317
|
+
const p = g.get(Number(C.eventId));
|
|
1318
1318
|
return (w = p == null ? void 0 : p.name) != null ? w : "";
|
|
1319
1319
|
})
|
|
1320
1320
|
)
|
|
1321
|
-
).filter(Boolean), b =
|
|
1321
|
+
).filter(Boolean), b = f.length > 0 ? f.join(" + ") : JSON.stringify(d), x = m ? `${b} - Cuota: ${m}` : b;
|
|
1322
1322
|
a({
|
|
1323
1323
|
element: "evento_semana_outcome",
|
|
1324
1324
|
label: `Landing: ${n} - OraculoEventCombinadasCard - Click: ${x}`,
|
|
@@ -1332,12 +1332,12 @@ function La({ coupon: e }) {
|
|
|
1332
1332
|
}), Ue(r(e), u);
|
|
1333
1333
|
};
|
|
1334
1334
|
if (!((h = e == null ? void 0 : e.events) != null && h.length)) return null;
|
|
1335
|
-
const s = o(e), c = s.outcomes.reduce((u, m) => (u[m.eventId] || (u[m.eventId] = []), u[m.eventId].push(m), u), {}),
|
|
1335
|
+
const s = o(e), c = s.outcomes.reduce((u, m) => (u[m.eventId] || (u[m.eventId] = []), u[m.eventId].push(m), u), {}), g = new Map(
|
|
1336
1336
|
s.events.map((u) => [u.id, u])
|
|
1337
1337
|
);
|
|
1338
1338
|
return /* @__PURE__ */ _("div", { className: ce.card, children: [
|
|
1339
1339
|
/* @__PURE__ */ t("div", { className: ce.combinadas, children: /* @__PURE__ */ t("div", { className: ce.combinadasScroll, children: /* @__PURE__ */ t(K, { direction: "column", spacing: 1.5, useFlexGap: !0, children: Object.entries(c).reverse().map(([u, m]) => {
|
|
1340
|
-
const d =
|
|
1340
|
+
const d = g.get(Number(u));
|
|
1341
1341
|
return d ? /* @__PURE__ */ _(
|
|
1342
1342
|
K,
|
|
1343
1343
|
{
|
|
@@ -1360,15 +1360,15 @@ function La({ coupon: e }) {
|
|
|
1360
1360
|
src: "/assets/img/home/Combinadas/line.png"
|
|
1361
1361
|
}
|
|
1362
1362
|
),
|
|
1363
|
-
m.map((
|
|
1363
|
+
m.map((f, b) => /* @__PURE__ */ _("div", { className: ce.apuestaItem, children: [
|
|
1364
1364
|
/* @__PURE__ */ _("div", { className: ce.lineContainer, children: [
|
|
1365
1365
|
/* @__PURE__ */ t("div", { className: ce.circle }),
|
|
1366
1366
|
b < m.length - 1 && /* @__PURE__ */ t("div", { className: ce.line })
|
|
1367
1367
|
] }),
|
|
1368
1368
|
/* @__PURE__ */ _("div", { className: ce.apuestaText, children: [
|
|
1369
|
-
/* @__PURE__ */ t("strong", { children:
|
|
1369
|
+
/* @__PURE__ */ t("strong", { children: f.value }),
|
|
1370
1370
|
" | ",
|
|
1371
|
-
|
|
1371
|
+
f.label
|
|
1372
1372
|
] })
|
|
1373
1373
|
] }, `${u}-${b}`))
|
|
1374
1374
|
]
|
|
@@ -1425,31 +1425,31 @@ function Fa({
|
|
|
1425
1425
|
type: i = "button",
|
|
1426
1426
|
disabled: s = !1,
|
|
1427
1427
|
variant: c = "primary",
|
|
1428
|
-
size:
|
|
1428
|
+
size: g,
|
|
1429
1429
|
fullWidth: h = !1,
|
|
1430
1430
|
fullHeight: u = !1,
|
|
1431
1431
|
className: m = "",
|
|
1432
1432
|
ariaLabel: d,
|
|
1433
|
-
leftIcon:
|
|
1433
|
+
leftIcon: f,
|
|
1434
1434
|
rightIcon: b,
|
|
1435
1435
|
iconOnly: x
|
|
1436
1436
|
}) {
|
|
1437
|
-
const C = !!e && e !== !0, M = (!!
|
|
1437
|
+
const C = !!e && e !== !0, M = (!!f ? 1 : 0) + (!!b ? 1 : 0) == 1, D = x != null ? x : M && !C, T = [
|
|
1438
1438
|
de["orc-btn"],
|
|
1439
1439
|
// base
|
|
1440
1440
|
de[`orc-btn--${c}`],
|
|
1441
1441
|
// variant primary/secondary/tertiary
|
|
1442
|
-
|
|
1442
|
+
g ? de[`orc-btn--${g}`] : "",
|
|
1443
1443
|
// sm / md / lg
|
|
1444
1444
|
h ? de["orc-btn--full"] : "",
|
|
1445
1445
|
u ? de["orc-btn--fullHeight"] : "",
|
|
1446
|
-
|
|
1446
|
+
D ? de["orc-btn--iconOnly"] : "",
|
|
1447
1447
|
m
|
|
1448
|
-
].filter(Boolean).join(" "),
|
|
1449
|
-
|
|
1450
|
-
!
|
|
1448
|
+
].filter(Boolean).join(" "), y = /* @__PURE__ */ _(pe, { children: [
|
|
1449
|
+
f && /* @__PURE__ */ t("span", { className: de["orc-btn__icon"], children: f }),
|
|
1450
|
+
!D && /* @__PURE__ */ t("span", { className: de["orc-btn__label"], children: e }),
|
|
1451
1451
|
b && /* @__PURE__ */ t("span", { className: de["orc-btn__icon"], children: b })
|
|
1452
|
-
] }),
|
|
1452
|
+
] }), F = s ? !0 : void 0;
|
|
1453
1453
|
return n ? /* @__PURE__ */ t(
|
|
1454
1454
|
it,
|
|
1455
1455
|
{
|
|
@@ -1457,21 +1457,21 @@ function Fa({
|
|
|
1457
1457
|
target: o,
|
|
1458
1458
|
rel: r,
|
|
1459
1459
|
"aria-label": d,
|
|
1460
|
-
"aria-disabled":
|
|
1461
|
-
tabIndex:
|
|
1462
|
-
className:
|
|
1463
|
-
onClick:
|
|
1464
|
-
children:
|
|
1460
|
+
"aria-disabled": F,
|
|
1461
|
+
tabIndex: F ? -1 : void 0,
|
|
1462
|
+
className: T,
|
|
1463
|
+
onClick: F ? (q) => q.preventDefault() : a,
|
|
1464
|
+
children: y
|
|
1465
1465
|
}
|
|
1466
1466
|
) : /* @__PURE__ */ t(
|
|
1467
1467
|
"button",
|
|
1468
1468
|
{
|
|
1469
1469
|
type: i,
|
|
1470
1470
|
onClick: a,
|
|
1471
|
-
disabled: !!
|
|
1471
|
+
disabled: !!F,
|
|
1472
1472
|
"aria-label": d,
|
|
1473
|
-
className:
|
|
1474
|
-
children:
|
|
1473
|
+
className: T,
|
|
1474
|
+
children: y
|
|
1475
1475
|
}
|
|
1476
1476
|
);
|
|
1477
1477
|
}
|
|
@@ -1501,7 +1501,7 @@ const qa = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", za = "
|
|
|
1501
1501
|
return o || (a === "home" ? Xe : Ye);
|
|
1502
1502
|
};
|
|
1503
1503
|
function Da({ event: e, liveData: a, betOffers: n, jersey: o }) {
|
|
1504
|
-
var c,
|
|
1504
|
+
var c, g, h, u, m, d, f, b, x, C, p;
|
|
1505
1505
|
const r = n == null ? void 0 : n.find(
|
|
1506
1506
|
(w) => {
|
|
1507
1507
|
var M;
|
|
@@ -1526,7 +1526,7 @@ function Da({ event: e, liveData: a, betOffers: n, jersey: o }) {
|
|
|
1526
1526
|
/* @__PURE__ */ t(
|
|
1527
1527
|
Ht,
|
|
1528
1528
|
{
|
|
1529
|
-
title: (h = (
|
|
1529
|
+
title: (h = (g = (c = e == null ? void 0 : e.path) == null ? void 0 : c[0]) == null ? void 0 : g.name) != null ? h : "",
|
|
1530
1530
|
subtitle: (u = e == null ? void 0 : e.group) != null ? u : "",
|
|
1531
1531
|
live: !0,
|
|
1532
1532
|
time: ((m = a == null ? void 0 : a.matchClock) == null ? void 0 : m.minute) != null ? `${a.matchClock.minute}'` : ""
|
|
@@ -1534,7 +1534,7 @@ function Da({ event: e, liveData: a, betOffers: n, jersey: o }) {
|
|
|
1534
1534
|
),
|
|
1535
1535
|
/* @__PURE__ */ t("div", { style: { padding: "0 4px" }, children: /* @__PURE__ */ _(me, { spacing: 1.5, columns: "1fr auto 1fr", children: [
|
|
1536
1536
|
/* @__PURE__ */ t($e, { name: e == null ? void 0 : e.homeName, jersey: Me(o, "home") }),
|
|
1537
|
-
/* @__PURE__ */ t(pt, { text: ((
|
|
1537
|
+
/* @__PURE__ */ t(pt, { text: ((f = (d = a == null ? void 0 : a.score) == null ? void 0 : d.home) != null ? f : 0) + ":" + ((x = (b = a == null ? void 0 : a.score) == null ? void 0 : b.away) != null ? x : 0), name: "En vivo" }),
|
|
1538
1538
|
/* @__PURE__ */ t($e, { name: e == null ? void 0 : e.awayName, jersey: Me(o, "away") })
|
|
1539
1539
|
] }) })
|
|
1540
1540
|
] }),
|
|
@@ -1559,14 +1559,14 @@ const Ga = "oraculo__OraculoEventSemanaCard-module__cardContainer___4JuDe", ja =
|
|
|
1559
1559
|
equipos: Ka
|
|
1560
1560
|
};
|
|
1561
1561
|
function Za({ event: e, jersey: a }) {
|
|
1562
|
-
var s, c,
|
|
1562
|
+
var s, c, g, h, u, m, d;
|
|
1563
1563
|
const n = ae(), o = ne();
|
|
1564
|
-
function r(
|
|
1565
|
-
const b = new Date(
|
|
1564
|
+
function r(f) {
|
|
1565
|
+
const b = new Date(f), x = b.toLocaleDateString("es-ES", { weekday: "short" }).toUpperCase(), C = b.getDate().toString().padStart(2, "0"), p = (b.getMonth() + 1).toString().padStart(2, "0");
|
|
1566
1566
|
let w = b.toLocaleTimeString("es-PE", { hour: "numeric", minute: "2-digit", hour12: !0 }).toUpperCase();
|
|
1567
1567
|
return w = w.replace(/\./g, "").replace(/A\s*M/i, "AM").replace(/P\s*M/i, "PM"), `${x} ${C}/${p} | ${w}`;
|
|
1568
1568
|
}
|
|
1569
|
-
const i = (
|
|
1569
|
+
const i = (f, b) => {
|
|
1570
1570
|
const x = `${e.homeName} vs ${e.awayName}`, C = b ? (b / 1e3).toFixed(2) : "", p = C ? `${x} - Cuota: ${C}` : x;
|
|
1571
1571
|
n({
|
|
1572
1572
|
element: "evento_semana_outcome",
|
|
@@ -1578,7 +1578,7 @@ function Za({ event: e, jersey: a }) {
|
|
|
1578
1578
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1579
1579
|
},
|
|
1580
1580
|
tags: { section: "OraculoEventSemanaCard", outcomes: p }
|
|
1581
|
-
}), Ue("/deportes#event/" + e.id,
|
|
1581
|
+
}), Ue("/deportes#event/" + e.id, f);
|
|
1582
1582
|
};
|
|
1583
1583
|
return /* @__PURE__ */ _("div", { className: be.cardContainer, children: [
|
|
1584
1584
|
/* @__PURE__ */ t(mt, { title: (s = e == null ? void 0 : e.group) != null ? s : "" }),
|
|
@@ -1592,10 +1592,10 @@ function Za({ event: e, jersey: a }) {
|
|
|
1592
1592
|
/* @__PURE__ */ t(Wa, { text: r(e.start) })
|
|
1593
1593
|
] }),
|
|
1594
1594
|
/* @__PURE__ */ _(K, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
1595
|
-
/* @__PURE__ */ t(me, { spacing: 1, children: ((h = (
|
|
1596
|
-
/* @__PURE__ */ t("div", { className: be.jugadas, children: /* @__PURE__ */ t(me, { spacing: 1, children: ((d = (m = (u = e == null ? void 0 : e.outcome) == null ? void 0 : u[0]) == null ? void 0 : m.outcomes) != null ? d : []).map((
|
|
1597
|
-
i(
|
|
1598
|
-
}, children: (
|
|
1595
|
+
/* @__PURE__ */ t(me, { spacing: 1, children: ((h = (g = (c = e == null ? void 0 : e.outcome) == null ? void 0 : c[0]) == null ? void 0 : g.outcomes) != null ? h : []).map((f, b) => /* @__PURE__ */ t(ut, { text: f.label.toUpperCase() }, b)) }),
|
|
1596
|
+
/* @__PURE__ */ t("div", { className: be.jugadas, children: /* @__PURE__ */ t(me, { spacing: 1, children: ((d = (m = (u = e == null ? void 0 : e.outcome) == null ? void 0 : u[0]) == null ? void 0 : m.outcomes) != null ? d : []).map((f, b) => /* @__PURE__ */ t(Y, { variant: "primary", fullHeight: !0, onClick: () => {
|
|
1597
|
+
i(f.id, f.odds);
|
|
1598
|
+
}, children: (f.odds / 1e3).toFixed(2) }, b)) }) })
|
|
1599
1599
|
] })
|
|
1600
1600
|
] }) })
|
|
1601
1601
|
] });
|
|
@@ -1605,73 +1605,79 @@ function Ja({
|
|
|
1605
1605
|
title: a = "Destacados",
|
|
1606
1606
|
iconUrl: n = "https://d28gilnhu2bcbp.cloudfront.net/landing/1770307276612-lonuevo.webp",
|
|
1607
1607
|
onViewMore: o,
|
|
1608
|
-
|
|
1609
|
-
|
|
1608
|
+
onItemClick: r,
|
|
1609
|
+
className: i = "",
|
|
1610
|
+
paddingMobile: s = "24px"
|
|
1610
1611
|
}) {
|
|
1611
|
-
var
|
|
1612
|
-
const
|
|
1612
|
+
var T;
|
|
1613
|
+
const c = V(null), [g, h] = X({ isStart: !0, isEnd: !1 }), u = ae(), m = ne(), d = le(), f = !e || e.length === 0, b = () => {
|
|
1613
1614
|
var y;
|
|
1614
|
-
|
|
1615
|
+
u({
|
|
1615
1616
|
element: "destacados_carousel_prev",
|
|
1616
|
-
label: `${
|
|
1617
|
+
label: `${m} - OraculoSeccionDestacados - Anterior`,
|
|
1617
1618
|
target: "carousel",
|
|
1618
1619
|
event_type: "click",
|
|
1619
|
-
module_id:
|
|
1620
|
+
module_id: d,
|
|
1620
1621
|
metadata: {
|
|
1621
1622
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1622
1623
|
},
|
|
1623
1624
|
tags: { section: "OraculoSeccionDestacados" }
|
|
1624
|
-
}), (y =
|
|
1625
|
-
},
|
|
1625
|
+
}), (y = c.current) == null || y.prev();
|
|
1626
|
+
}, x = () => {
|
|
1626
1627
|
var y;
|
|
1627
|
-
|
|
1628
|
+
u({
|
|
1628
1629
|
element: "destacados_carousel_next",
|
|
1629
|
-
label: `${
|
|
1630
|
+
label: `${m} - OraculoSeccionDestacados - Siguiente`,
|
|
1630
1631
|
target: "carousel",
|
|
1631
1632
|
event_type: "click",
|
|
1632
|
-
module_id:
|
|
1633
|
+
module_id: d,
|
|
1633
1634
|
metadata: {
|
|
1634
1635
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1635
1636
|
},
|
|
1636
1637
|
tags: { section: "OraculoSeccionDestacados" }
|
|
1637
|
-
}), (y =
|
|
1638
|
-
},
|
|
1639
|
-
|
|
1638
|
+
}), (y = c.current) == null || y.next();
|
|
1639
|
+
}, C = () => {
|
|
1640
|
+
u({
|
|
1640
1641
|
element: "destacados_view_more",
|
|
1641
|
-
label: `${
|
|
1642
|
+
label: `${m} - OraculoSeccionDestacados - Ver más`,
|
|
1642
1643
|
target: "https://www.olimpo.bet/promociones",
|
|
1643
1644
|
event_type: "click",
|
|
1644
|
-
module_id:
|
|
1645
|
+
module_id: d,
|
|
1645
1646
|
metadata: {
|
|
1646
1647
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1647
1648
|
},
|
|
1648
1649
|
tags: { section: "OraculoSeccionDestacados" }
|
|
1649
1650
|
}), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/promociones");
|
|
1650
|
-
},
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1651
|
+
}, p = i || void 0, w = xe("(max-width:950px)"), M = (T = e == null ? void 0 : e.length) != null ? T : 0;
|
|
1652
|
+
Q(() => {
|
|
1653
|
+
if (M === 0) {
|
|
1654
|
+
h({ isStart: !0, isEnd: !0 });
|
|
1655
|
+
return;
|
|
1656
|
+
}
|
|
1657
|
+
h({ isStart: !0, isEnd: !1 });
|
|
1658
|
+
}, [M, w, s]);
|
|
1659
|
+
const D = (y) => {
|
|
1660
|
+
const F = y.promotion, q = F ? `https://www.olimpo.bet/promociones/${encodeURIComponent(F)}` : "";
|
|
1661
|
+
if (u({
|
|
1654
1662
|
element: "destacados_card",
|
|
1655
|
-
label: `${
|
|
1656
|
-
target: q,
|
|
1663
|
+
label: `${m} - OraculoSeccionDestacados - Click: ${F || y.title}`,
|
|
1664
|
+
target: q || "custom_item_action",
|
|
1657
1665
|
event_type: "click",
|
|
1658
|
-
module_id:
|
|
1666
|
+
module_id: d,
|
|
1659
1667
|
metadata: {
|
|
1660
1668
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1661
1669
|
},
|
|
1662
1670
|
tags: {
|
|
1663
1671
|
section: "OraculoSeccionDestacados",
|
|
1664
|
-
promotion: String(
|
|
1672
|
+
promotion: String(F || "")
|
|
1665
1673
|
}
|
|
1666
|
-
}),
|
|
1667
|
-
|
|
1668
|
-
return Q(() => {
|
|
1669
|
-
if (M === 0) {
|
|
1670
|
-
f({ isStart: !0, isEnd: !0 });
|
|
1674
|
+
}), r) {
|
|
1675
|
+
r(y);
|
|
1671
1676
|
return;
|
|
1672
1677
|
}
|
|
1673
|
-
|
|
1674
|
-
}
|
|
1678
|
+
q && typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(q);
|
|
1679
|
+
};
|
|
1680
|
+
return /* @__PURE__ */ _("section", { className: p, style: { width: "100%" }, children: [
|
|
1675
1681
|
/* @__PURE__ */ _(
|
|
1676
1682
|
"header",
|
|
1677
1683
|
{
|
|
@@ -1682,8 +1688,8 @@ function Ja({
|
|
|
1682
1688
|
columnGap: 12,
|
|
1683
1689
|
rowGap: 8,
|
|
1684
1690
|
marginBottom: 16,
|
|
1685
|
-
paddingLeft: w ?
|
|
1686
|
-
paddingRight: w ?
|
|
1691
|
+
paddingLeft: w ? s : 0,
|
|
1692
|
+
paddingRight: w ? s : 0
|
|
1687
1693
|
},
|
|
1688
1694
|
children: [
|
|
1689
1695
|
/* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
|
|
@@ -1695,8 +1701,8 @@ function Ja({
|
|
|
1695
1701
|
variant: "secondary",
|
|
1696
1702
|
iconOnly: !0,
|
|
1697
1703
|
leftIcon: /* @__PURE__ */ t(Ae, {}),
|
|
1698
|
-
onClick:
|
|
1699
|
-
disabled:
|
|
1704
|
+
onClick: b,
|
|
1705
|
+
disabled: g.isStart || f
|
|
1700
1706
|
}
|
|
1701
1707
|
),
|
|
1702
1708
|
/* @__PURE__ */ t(
|
|
@@ -1706,19 +1712,19 @@ function Ja({
|
|
|
1706
1712
|
variant: "secondary",
|
|
1707
1713
|
iconOnly: !0,
|
|
1708
1714
|
rightIcon: /* @__PURE__ */ t(Re, {}),
|
|
1709
|
-
onClick:
|
|
1710
|
-
disabled:
|
|
1715
|
+
onClick: x,
|
|
1716
|
+
disabled: g.isEnd || f
|
|
1711
1717
|
}
|
|
1712
1718
|
)
|
|
1713
1719
|
] }),
|
|
1714
|
-
/* @__PURE__ */ t(Y, { variant: "secondary", onClick:
|
|
1720
|
+
/* @__PURE__ */ t(Y, { variant: "secondary", onClick: C, children: "Ver más" })
|
|
1715
1721
|
]
|
|
1716
1722
|
}
|
|
1717
1723
|
),
|
|
1718
1724
|
/* @__PURE__ */ t(
|
|
1719
1725
|
he,
|
|
1720
1726
|
{
|
|
1721
|
-
ref:
|
|
1727
|
+
ref: c,
|
|
1722
1728
|
items: e,
|
|
1723
1729
|
perPage: void 0,
|
|
1724
1730
|
gap: "16px",
|
|
@@ -1726,7 +1732,7 @@ function Ja({
|
|
|
1726
1732
|
showRightGradient: !w,
|
|
1727
1733
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
1728
1734
|
breakpoints: {
|
|
1729
|
-
768: { perPage: 2, focus: "start", padding: { left:
|
|
1735
|
+
768: { perPage: 2, focus: "start", padding: { left: s, right: s } },
|
|
1730
1736
|
1024: { perPage: 2.5, focus: "start", padding: { left: "24px", right: "24px" } }
|
|
1731
1737
|
},
|
|
1732
1738
|
renderItem: (y) => /* @__PURE__ */ t(
|
|
@@ -1736,7 +1742,7 @@ function Ja({
|
|
|
1736
1742
|
textAlign: "center",
|
|
1737
1743
|
cursor: "pointer"
|
|
1738
1744
|
},
|
|
1739
|
-
onClick: () =>
|
|
1745
|
+
onClick: () => D(y),
|
|
1740
1746
|
children: /* @__PURE__ */ t(
|
|
1741
1747
|
"img",
|
|
1742
1748
|
{
|
|
@@ -1754,17 +1760,17 @@ function Ja({
|
|
|
1754
1760
|
},
|
|
1755
1761
|
`${y.title}-${y.image}`
|
|
1756
1762
|
),
|
|
1757
|
-
onMove: ({ isStart: y, isEnd:
|
|
1758
|
-
|
|
1763
|
+
onMove: ({ isStart: y, isEnd: F, source: q }) => {
|
|
1764
|
+
h({ isStart: y, isEnd: F }), q === "user" && u({
|
|
1759
1765
|
element: "destacados_carousel_slide",
|
|
1760
|
-
label: `${
|
|
1766
|
+
label: `${m} - OraculoSeccionDestacados - Slide Carousel`,
|
|
1761
1767
|
target: "carousel",
|
|
1762
1768
|
event_type: "slide",
|
|
1763
|
-
module_id:
|
|
1769
|
+
module_id: d,
|
|
1764
1770
|
metadata: {
|
|
1765
1771
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
1766
1772
|
isStart: y,
|
|
1767
|
-
isEnd:
|
|
1773
|
+
isEnd: F
|
|
1768
1774
|
},
|
|
1769
1775
|
tags: { section: "OraculoSeccionDestacados" }
|
|
1770
1776
|
});
|
|
@@ -1796,15 +1802,15 @@ function Qa({
|
|
|
1796
1802
|
}) {
|
|
1797
1803
|
const r = ae(), i = ne(), s = le(), c = re(
|
|
1798
1804
|
() => (e != null ? e : []).map((m, d) => {
|
|
1799
|
-
var
|
|
1805
|
+
var f;
|
|
1800
1806
|
return {
|
|
1801
1807
|
...m,
|
|
1802
|
-
orden: (
|
|
1808
|
+
orden: (f = m.orden) != null ? f : d + 1,
|
|
1803
1809
|
_originalIndex: d
|
|
1804
1810
|
};
|
|
1805
1811
|
}).sort((m, d) => m.orden != null && d.orden != null ? m.orden - d.orden : m._originalIndex - d._originalIndex),
|
|
1806
1812
|
[e]
|
|
1807
|
-
),
|
|
1813
|
+
), g = !e || e.length === 0, h = g ? Array.from({ length: 6 }) : c.slice(0, 6), u = (m) => {
|
|
1808
1814
|
r({
|
|
1809
1815
|
element: "top_juegos_card",
|
|
1810
1816
|
label: `${i} - OraculoSeccionTopJuegos - Open game: ${String(m.machine || "unknown")}`,
|
|
@@ -1819,9 +1825,9 @@ function Qa({
|
|
|
1819
1825
|
section: "OraculoSeccionTopJuegos"
|
|
1820
1826
|
}
|
|
1821
1827
|
});
|
|
1822
|
-
const d = ie("showIframe"),
|
|
1828
|
+
const d = ie("showIframe"), f = ie("loadMachine");
|
|
1823
1829
|
d == null || d(), requestAnimationFrame(() => {
|
|
1824
|
-
|
|
1830
|
+
f == null || f(m, !1, "CASINO");
|
|
1825
1831
|
});
|
|
1826
1832
|
};
|
|
1827
1833
|
return /* @__PURE__ */ t("section", { style: { width: "100%" }, children: /* @__PURE__ */ _(K, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
@@ -1840,18 +1846,18 @@ function Qa({
|
|
|
1840
1846
|
width: "100%"
|
|
1841
1847
|
},
|
|
1842
1848
|
children: h.map((m, d) => {
|
|
1843
|
-
var
|
|
1849
|
+
var f, b;
|
|
1844
1850
|
return /* @__PURE__ */ t(
|
|
1845
1851
|
xa,
|
|
1846
1852
|
{
|
|
1847
|
-
imageUrl:
|
|
1848
|
-
orden:
|
|
1849
|
-
loading:
|
|
1850
|
-
onClick:
|
|
1853
|
+
imageUrl: g ? "" : m.background ? `https://olimpo.bet${m.background}` : `https://olimpo.bet${(f = m.logo) != null ? f : ""}`,
|
|
1854
|
+
orden: g ? d + 1 : m.orden,
|
|
1855
|
+
loading: g,
|
|
1856
|
+
onClick: g ? void 0 : () => {
|
|
1851
1857
|
o == null || o(m), u(m);
|
|
1852
1858
|
}
|
|
1853
1859
|
},
|
|
1854
|
-
|
|
1860
|
+
g ? `sk-${d}` : (b = m.machine) != null ? b : `${d}`
|
|
1855
1861
|
);
|
|
1856
1862
|
})
|
|
1857
1863
|
}
|
|
@@ -1859,7 +1865,7 @@ function Qa({
|
|
|
1859
1865
|
] }) });
|
|
1860
1866
|
}
|
|
1861
1867
|
const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommendations", tn = (e, a) => {
|
|
1862
|
-
var n, o, r, i, s, c,
|
|
1868
|
+
var n, o, r, i, s, c, g, h, u, m, d, f, b, x;
|
|
1863
1869
|
return {
|
|
1864
1870
|
orden: Number(a),
|
|
1865
1871
|
machine: String(
|
|
@@ -1870,12 +1876,12 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1870
1876
|
web_name: (i = e.product) != null ? i : "",
|
|
1871
1877
|
provider: (s = e.service) != null ? s : "",
|
|
1872
1878
|
sub_provider: (c = e.service) != null ? c : "",
|
|
1873
|
-
external_id: (
|
|
1879
|
+
external_id: (g = e.external_id) != null ? g : "",
|
|
1874
1880
|
type: (h = e.game_type) != null ? h : "",
|
|
1875
1881
|
tags: (u = e.tags) != null ? u : "",
|
|
1876
1882
|
lobby_tag: (m = e.lobby_tag) != null ? m : null,
|
|
1877
1883
|
background: (d = e.background) != null ? d : "",
|
|
1878
|
-
rtp: (
|
|
1884
|
+
rtp: (f = e.rtp) != null ? f : null,
|
|
1879
1885
|
demo_allowed: (b = e.demo_allowed) != null ? b : !1,
|
|
1880
1886
|
gaming_session_required: (x = e.gaming_session_required) != null ? x : !1
|
|
1881
1887
|
};
|
|
@@ -1927,13 +1933,13 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1927
1933
|
c || r([]);
|
|
1928
1934
|
return;
|
|
1929
1935
|
}
|
|
1930
|
-
const m = yt(), d = await on(m, u),
|
|
1931
|
-
|
|
1936
|
+
const m = yt(), d = await on(m, u), f = d.map((p) => p.itemId), b = await Promise.allSettled(
|
|
1937
|
+
f.map(async (p, w) => {
|
|
1932
1938
|
const M = await fetch(`https://api.mktolimpo.com/api/machine/${p}`);
|
|
1933
1939
|
if (!M.ok)
|
|
1934
1940
|
throw new Error(`No se pudo obtener machine ${p}`);
|
|
1935
|
-
const
|
|
1936
|
-
return tn(
|
|
1941
|
+
const D = await M.json();
|
|
1942
|
+
return tn(D, w);
|
|
1937
1943
|
})
|
|
1938
1944
|
);
|
|
1939
1945
|
if (c) return;
|
|
@@ -1943,8 +1949,8 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1943
1949
|
const w = x.find((M) => M.machine === p.itemId);
|
|
1944
1950
|
return w ? { ...w, score: p.score } : null;
|
|
1945
1951
|
}).filter(Boolean).sort((p, w) => {
|
|
1946
|
-
var M,
|
|
1947
|
-
return ((M = w.score) != null ? M : 0) - ((
|
|
1952
|
+
var M, D;
|
|
1953
|
+
return ((M = w.score) != null ? M : 0) - ((D = p.score) != null ? D : 0);
|
|
1948
1954
|
});
|
|
1949
1955
|
r(C);
|
|
1950
1956
|
} catch (h) {
|
|
@@ -1981,12 +1987,12 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1981
1987
|
backgroundDesktopUrl: i = "",
|
|
1982
1988
|
onViewMore: s,
|
|
1983
1989
|
className: c,
|
|
1984
|
-
isPersonalize:
|
|
1990
|
+
isPersonalize: g = !1
|
|
1985
1991
|
}) => {
|
|
1986
|
-
const h = ae(), u = ne(), m = le(), d = dn(
|
|
1992
|
+
const h = ae(), u = ne(), m = le(), d = dn(g), { resolvedItems: f } = ln(
|
|
1987
1993
|
e,
|
|
1988
1994
|
d
|
|
1989
|
-
), b = d ?
|
|
1995
|
+
), b = d ? f : Array.isArray(e) ? e : [], x = (p) => {
|
|
1990
1996
|
h({
|
|
1991
1997
|
element: "live_casino_card",
|
|
1992
1998
|
label: `${u} - OraculoSeccionCasinoEnVivo${d ? " - personalize" : ""} - Open game: ${String(p.machine || "unknown")}`,
|
|
@@ -2179,10 +2185,10 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2179
2185
|
return (o = (n = e.orden) != null ? n : e.machine) != null ? o : a;
|
|
2180
2186
|
}, pn = (e, a = !0, n = 1) => {
|
|
2181
2187
|
const o = e.map((s, c) => {
|
|
2182
|
-
var
|
|
2188
|
+
var g;
|
|
2183
2189
|
return {
|
|
2184
2190
|
id: xt(s, c),
|
|
2185
|
-
imageUrl: (
|
|
2191
|
+
imageUrl: (g = s.logo) != null ? g : "",
|
|
2186
2192
|
...s.background ? { background: s.background } : {}
|
|
2187
2193
|
};
|
|
2188
2194
|
});
|
|
@@ -2216,12 +2222,12 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2216
2222
|
gridSize: s = 1,
|
|
2217
2223
|
isPersonalize: c = !1
|
|
2218
2224
|
}) => {
|
|
2219
|
-
const
|
|
2225
|
+
const g = ae(), h = ne(), u = le(), m = V(null), [d, f] = X({ isStart: !0, isEnd: !1 }), b = mn(c), { resolvedItems: x, loading: C } = rn(
|
|
2220
2226
|
e,
|
|
2221
2227
|
b
|
|
2222
2228
|
), p = b ? x : Array.isArray(e) ? e : [], w = () => {
|
|
2223
2229
|
var O;
|
|
2224
|
-
|
|
2230
|
+
g({
|
|
2225
2231
|
element: "casino_prev",
|
|
2226
2232
|
label: `${h} - OraculoSeccionCasino ${c ? " - personalize" : ""} - Anterior`,
|
|
2227
2233
|
target: "prev",
|
|
@@ -2234,7 +2240,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2234
2240
|
}), (O = m.current) == null || O.prev();
|
|
2235
2241
|
}, M = () => {
|
|
2236
2242
|
var O;
|
|
2237
|
-
|
|
2243
|
+
g({
|
|
2238
2244
|
element: "casino_next",
|
|
2239
2245
|
label: `${h} - OraculoSeccionCasino ${c ? " - personalize" : ""} - Siguiente`,
|
|
2240
2246
|
target: "next",
|
|
@@ -2245,8 +2251,8 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2245
2251
|
},
|
|
2246
2252
|
tags: { section: "OraculoSeccionCasino" }
|
|
2247
2253
|
}), (O = m.current) == null || O.next();
|
|
2248
|
-
},
|
|
2249
|
-
if (
|
|
2254
|
+
}, D = () => {
|
|
2255
|
+
if (g({
|
|
2250
2256
|
element: "casino_view_more",
|
|
2251
2257
|
label: `${h} - OraculoSeccionCasino ${c ? " - personalize" : ""} - Ver más`,
|
|
2252
2258
|
target: "https://www.olimpo.bet/casino",
|
|
@@ -2261,13 +2267,13 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2261
2267
|
return;
|
|
2262
2268
|
}
|
|
2263
2269
|
typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/casino");
|
|
2264
|
-
},
|
|
2270
|
+
}, T = (O = !0, v = 4) => {
|
|
2265
2271
|
const I = (B) => Array.from({ length: B }, (A, U) => ({
|
|
2266
2272
|
id: `sk-${B}-${U}`,
|
|
2267
2273
|
imageUrl: ""
|
|
2268
2274
|
})), R = [];
|
|
2269
2275
|
return O && R.push({ id: "mosaic-loading", kind: "mosaic", items: I(5) }), R.push({ id: "grid-loading", kind: "grid", items: I(v) }), R;
|
|
2270
|
-
},
|
|
2276
|
+
}, y = b ? C : !Array.isArray(e) || e.length === 0, F = De("(max-width:950px)"), q = y ? T(i, s) : pn(p, i, s);
|
|
2271
2277
|
return /* @__PURE__ */ t("section", { children: /* @__PURE__ */ _(K, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
2272
2278
|
/* @__PURE__ */ _(
|
|
2273
2279
|
P,
|
|
@@ -2309,7 +2315,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2309
2315
|
}
|
|
2310
2316
|
)
|
|
2311
2317
|
] }),
|
|
2312
|
-
/* @__PURE__ */ t(P, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(Y, { variant: "secondary", onClick:
|
|
2318
|
+
/* @__PURE__ */ t(P, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(Y, { variant: "secondary", onClick: D, children: "Ver más" }) })
|
|
2313
2319
|
]
|
|
2314
2320
|
}
|
|
2315
2321
|
),
|
|
@@ -2317,12 +2323,12 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2317
2323
|
he,
|
|
2318
2324
|
{
|
|
2319
2325
|
ref: m,
|
|
2320
|
-
items:
|
|
2326
|
+
items: q,
|
|
2321
2327
|
perPage: void 0,
|
|
2322
2328
|
gap: "16px",
|
|
2323
2329
|
enableHorizontalWheel: !0,
|
|
2324
2330
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
2325
|
-
showRightGradient: !
|
|
2331
|
+
showRightGradient: !F,
|
|
2326
2332
|
breakpoints: {
|
|
2327
2333
|
400: {
|
|
2328
2334
|
gap: "4px",
|
|
@@ -2345,14 +2351,14 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2345
2351
|
{
|
|
2346
2352
|
items: O.items,
|
|
2347
2353
|
layout: O.kind === "mosaic" ? "mosaic" : "grid",
|
|
2348
|
-
loading:
|
|
2354
|
+
loading: y,
|
|
2349
2355
|
onClick: (v) => {
|
|
2350
|
-
if (
|
|
2356
|
+
if (y) return;
|
|
2351
2357
|
const I = p.find(
|
|
2352
2358
|
(A, U) => String(xt(A, U)) === String(v.id)
|
|
2353
2359
|
);
|
|
2354
2360
|
if (!I) return;
|
|
2355
|
-
o == null || o(I),
|
|
2361
|
+
o == null || o(I), g({
|
|
2356
2362
|
element: "casino_game_card",
|
|
2357
2363
|
label: `${h} - OraculoSeccionCasino ${c ? " - personalize" : ""} - Game: ${String(I.machine || "unknown")}`,
|
|
2358
2364
|
target: String(I.machine || "unknown"),
|
|
@@ -2371,7 +2377,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2371
2377
|
}
|
|
2372
2378
|
}
|
|
2373
2379
|
) }),
|
|
2374
|
-
onMove: ({ isStart: O, isEnd: v }) =>
|
|
2380
|
+
onMove: ({ isStart: O, isEnd: v }) => f({ isStart: O, isEnd: v })
|
|
2375
2381
|
}
|
|
2376
2382
|
)
|
|
2377
2383
|
] }) });
|
|
@@ -2390,10 +2396,10 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2390
2396
|
return (o = (n = e.orden) != null ? n : e.machine) != null ? o : a;
|
|
2391
2397
|
}, hn = (e, a = !0, n = 1) => {
|
|
2392
2398
|
const o = e.map((s, c) => {
|
|
2393
|
-
var
|
|
2399
|
+
var g;
|
|
2394
2400
|
return {
|
|
2395
2401
|
id: wt(s, c),
|
|
2396
|
-
imageUrl: (
|
|
2402
|
+
imageUrl: (g = s.logo) != null ? g : "",
|
|
2397
2403
|
...s.background ? { background: s.background } : {}
|
|
2398
2404
|
};
|
|
2399
2405
|
});
|
|
@@ -2441,42 +2447,42 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2441
2447
|
gridSize: s = 1,
|
|
2442
2448
|
isPersonalize: c = !1
|
|
2443
2449
|
}) => {
|
|
2444
|
-
const
|
|
2450
|
+
const g = V(null), [h, u] = X({ isStart: !0, isEnd: !1 }), m = ae(), d = ne(), f = le(), b = gn(c), { resolvedItems: x, loading: C } = sn(
|
|
2445
2451
|
e,
|
|
2446
2452
|
b
|
|
2447
2453
|
), p = b ? x : Array.isArray(e) ? e : [], w = () => {
|
|
2448
|
-
var
|
|
2454
|
+
var q;
|
|
2449
2455
|
m({
|
|
2450
2456
|
element: "virtuales_prev",
|
|
2451
2457
|
label: `${d} - OraculoSeccionVirtuales${b ? " - personalize" : ""} - Anterior`,
|
|
2452
2458
|
target: "prev",
|
|
2453
2459
|
event_type: "click",
|
|
2454
|
-
module_id:
|
|
2460
|
+
module_id: f,
|
|
2455
2461
|
metadata: {
|
|
2456
2462
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2457
2463
|
},
|
|
2458
2464
|
tags: { section: "OraculoSeccionVirtuales" }
|
|
2459
|
-
}), (
|
|
2465
|
+
}), (q = g.current) == null || q.prev();
|
|
2460
2466
|
}, M = () => {
|
|
2461
|
-
var
|
|
2467
|
+
var q;
|
|
2462
2468
|
m({
|
|
2463
2469
|
element: "virtuales_next",
|
|
2464
2470
|
label: `${d} - OraculoSeccionVirtuales${b ? " - personalize" : ""} - Siguiente`,
|
|
2465
2471
|
target: "next",
|
|
2466
2472
|
event_type: "click",
|
|
2467
|
-
module_id:
|
|
2473
|
+
module_id: f,
|
|
2468
2474
|
metadata: {
|
|
2469
2475
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2470
2476
|
},
|
|
2471
2477
|
tags: { section: "OraculoSeccionVirtuales" }
|
|
2472
|
-
}), (
|
|
2473
|
-
},
|
|
2478
|
+
}), (q = g.current) == null || q.next();
|
|
2479
|
+
}, D = () => {
|
|
2474
2480
|
if (m({
|
|
2475
2481
|
element: "virtuales_view_more",
|
|
2476
2482
|
label: `${d} - OraculoSeccionVirtuales${b ? " - personalize" : ""} - Ver más`,
|
|
2477
2483
|
target: "https://www.olimpo.bet/juegos-virtuales",
|
|
2478
2484
|
event_type: "click",
|
|
2479
|
-
module_id:
|
|
2485
|
+
module_id: f,
|
|
2480
2486
|
metadata: {
|
|
2481
2487
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2482
2488
|
},
|
|
@@ -2486,7 +2492,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2486
2492
|
return;
|
|
2487
2493
|
}
|
|
2488
2494
|
typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/juegos-virtuales");
|
|
2489
|
-
},
|
|
2495
|
+
}, T = b ? C : !Array.isArray(e) || e.length === 0, y = xe("(max-width:950px)"), F = T ? bn(i, s) : hn(p, i, s);
|
|
2490
2496
|
return /* @__PURE__ */ t("section", { children: /* @__PURE__ */ _(K, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
2491
2497
|
/* @__PURE__ */ _(
|
|
2492
2498
|
P,
|
|
@@ -2528,15 +2534,15 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2528
2534
|
}
|
|
2529
2535
|
)
|
|
2530
2536
|
] }),
|
|
2531
|
-
/* @__PURE__ */ t(P, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(Y, { variant: "secondary", onClick:
|
|
2537
|
+
/* @__PURE__ */ t(P, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(Y, { variant: "secondary", onClick: D, children: "Ver más" }) })
|
|
2532
2538
|
]
|
|
2533
2539
|
}
|
|
2534
2540
|
),
|
|
2535
2541
|
/* @__PURE__ */ t(
|
|
2536
2542
|
he,
|
|
2537
2543
|
{
|
|
2538
|
-
ref:
|
|
2539
|
-
items:
|
|
2544
|
+
ref: g,
|
|
2545
|
+
items: F,
|
|
2540
2546
|
perPage: void 0,
|
|
2541
2547
|
gap: "16px",
|
|
2542
2548
|
breakpoints: {
|
|
@@ -2557,16 +2563,16 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2557
2563
|
}
|
|
2558
2564
|
},
|
|
2559
2565
|
enableHorizontalWheel: !0,
|
|
2560
|
-
showRightGradient: !
|
|
2566
|
+
showRightGradient: !y,
|
|
2561
2567
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
2562
|
-
renderItem: (
|
|
2568
|
+
renderItem: (q) => /* @__PURE__ */ t("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ t(
|
|
2563
2569
|
ft,
|
|
2564
2570
|
{
|
|
2565
|
-
items:
|
|
2566
|
-
layout:
|
|
2567
|
-
loading:
|
|
2571
|
+
items: q.items,
|
|
2572
|
+
layout: q.kind === "mosaic" ? "mosaic" : "grid",
|
|
2573
|
+
loading: T,
|
|
2568
2574
|
onClick: (O) => {
|
|
2569
|
-
if (
|
|
2575
|
+
if (T) return;
|
|
2570
2576
|
const v = p.find(
|
|
2571
2577
|
(B, A) => String(wt(B, A)) === String(O.id)
|
|
2572
2578
|
);
|
|
@@ -2582,7 +2588,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2582
2588
|
label: `${d} - OraculoSeccionVirtuales${b ? " - personalize" : ""} - Game: ${String(v.machine || "unknown")}`,
|
|
2583
2589
|
target: String(v.machine || "unknown"),
|
|
2584
2590
|
event_type: "click",
|
|
2585
|
-
module_id:
|
|
2591
|
+
module_id: f,
|
|
2586
2592
|
metadata: {
|
|
2587
2593
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2588
2594
|
},
|
|
@@ -2600,7 +2606,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2600
2606
|
}
|
|
2601
2607
|
}
|
|
2602
2608
|
) }),
|
|
2603
|
-
onMove: ({ isStart:
|
|
2609
|
+
onMove: ({ isStart: q, isEnd: O }) => u({ isStart: q, isEnd: O })
|
|
2604
2610
|
}
|
|
2605
2611
|
)
|
|
2606
2612
|
] }) });
|
|
@@ -2642,7 +2648,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2642
2648
|
items: n,
|
|
2643
2649
|
backgroundImageUrl: o
|
|
2644
2650
|
}) => {
|
|
2645
|
-
const r = ae(), i = ne(), s = xe("(max-width: 767px)"), c = n.length > 1,
|
|
2651
|
+
const r = ae(), i = ne(), s = xe("(max-width: 767px)"), c = n.length > 1, g = V(null), h = V(null), u = V(!1), m = V(!1), [d, f] = X(0), [b, x] = X({ isStart: !0, isEnd: !1 });
|
|
2646
2652
|
Q(() => {
|
|
2647
2653
|
const v = setTimeout(() => {
|
|
2648
2654
|
u.current = !0;
|
|
@@ -2653,13 +2659,13 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2653
2659
|
Q(() => {
|
|
2654
2660
|
C.current = b;
|
|
2655
2661
|
}, [b]);
|
|
2656
|
-
const p = V(!1), w = V(null), M = n == null ? void 0 : n[d],
|
|
2662
|
+
const p = V(!1), w = V(null), M = n == null ? void 0 : n[d], D = re(
|
|
2657
2663
|
() => {
|
|
2658
2664
|
var v, I;
|
|
2659
2665
|
return (I = (v = M == null ? void 0 : M.backgroundImageUrl) != null ? v : o) != null ? I : "";
|
|
2660
2666
|
},
|
|
2661
2667
|
[M, o]
|
|
2662
|
-
),
|
|
2668
|
+
), T = _n(D), y = !n || n.length === 0, F = (v, I) => {
|
|
2663
2669
|
r({
|
|
2664
2670
|
element: "welcome_banner_button",
|
|
2665
2671
|
label: `OraculoSeccionBonoBienvenida - Banner button click: ${v.title || "OraculoSeccionBonoBienvenida - Banner " + (I + 1)}`,
|
|
@@ -2676,7 +2682,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2676
2682
|
button_text: v.buttonText || "no_text"
|
|
2677
2683
|
}
|
|
2678
2684
|
}), v.onButtonClick && v.onButtonClick();
|
|
2679
|
-
},
|
|
2685
|
+
}, q = (v) => {
|
|
2680
2686
|
if (!u.current) return;
|
|
2681
2687
|
if (m.current) {
|
|
2682
2688
|
m.current = !1;
|
|
@@ -2706,18 +2712,18 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2706
2712
|
if (!v) return;
|
|
2707
2713
|
const I = 6, R = 380, B = (A) => {
|
|
2708
2714
|
var Z, G;
|
|
2709
|
-
if (
|
|
2715
|
+
if (y || A.ctrlKey || p.current) return;
|
|
2710
2716
|
const U = A.deltaX, W = A.deltaY;
|
|
2711
2717
|
if (Math.abs(U) <= Math.abs(W) || Math.abs(U) < I) return;
|
|
2712
2718
|
const j = U > 0;
|
|
2713
|
-
j && C.current.isEnd || !j && C.current.isStart || (A.preventDefault(), p.current = !0, j ? (Z =
|
|
2719
|
+
j && C.current.isEnd || !j && C.current.isStart || (A.preventDefault(), p.current = !0, j ? (Z = g.current) == null || Z.next() : (G = g.current) == null || G.prev(), w.current && window.clearTimeout(w.current), w.current = window.setTimeout(() => {
|
|
2714
2720
|
p.current = !1;
|
|
2715
2721
|
}, R));
|
|
2716
2722
|
};
|
|
2717
2723
|
return v.addEventListener("wheel", B, { passive: !1 }), () => {
|
|
2718
2724
|
v.removeEventListener("wheel", B), w.current && window.clearTimeout(w.current);
|
|
2719
2725
|
};
|
|
2720
|
-
}, [
|
|
2726
|
+
}, [y]);
|
|
2721
2727
|
const O = (v, I, R) => {
|
|
2722
2728
|
var U, W;
|
|
2723
2729
|
const B = (U = v.headline) != null ? U : e, A = (W = v.headline2) != null ? W : a;
|
|
@@ -2756,7 +2762,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2756
2762
|
Je,
|
|
2757
2763
|
{
|
|
2758
2764
|
...v,
|
|
2759
|
-
onButtonClick: () =>
|
|
2765
|
+
onButtonClick: () => F(v, R),
|
|
2760
2766
|
variant: "large"
|
|
2761
2767
|
}
|
|
2762
2768
|
) }) })
|
|
@@ -2774,17 +2780,17 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2774
2780
|
Je,
|
|
2775
2781
|
{
|
|
2776
2782
|
...v,
|
|
2777
|
-
onButtonClick: () =>
|
|
2783
|
+
onButtonClick: () => F(v, R),
|
|
2778
2784
|
variant: "small"
|
|
2779
2785
|
}
|
|
2780
2786
|
) })
|
|
2781
2787
|
] });
|
|
2782
2788
|
};
|
|
2783
|
-
return /* @__PURE__ */ _(P, { component: "section", sx:
|
|
2789
|
+
return /* @__PURE__ */ _(P, { component: "section", sx: T, children: [
|
|
2784
2790
|
/* @__PURE__ */ t("div", { ref: h, style: { width: "100%" }, children: /* @__PURE__ */ t(
|
|
2785
2791
|
he,
|
|
2786
2792
|
{
|
|
2787
|
-
ref:
|
|
2793
|
+
ref: g,
|
|
2788
2794
|
items: n,
|
|
2789
2795
|
perPage: 1,
|
|
2790
2796
|
gap: "0px",
|
|
@@ -2800,7 +2806,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2800
2806
|
},
|
|
2801
2807
|
renderItem: (v, I) => /* @__PURE__ */ t(P, { sx: { width: "100%" }, children: O(v, !s, I) }),
|
|
2802
2808
|
onMove: ({ index: v, isStart: I, isEnd: R, source: B }) => {
|
|
2803
|
-
|
|
2809
|
+
f(v), typeof I == "boolean" && typeof R == "boolean" && x({ isStart: I, isEnd: R }), B === "user" && q(v);
|
|
2804
2810
|
}
|
|
2805
2811
|
}
|
|
2806
2812
|
) }),
|
|
@@ -2825,7 +2831,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2825
2831
|
tags: {
|
|
2826
2832
|
navigation_type: "dot_click"
|
|
2827
2833
|
}
|
|
2828
|
-
}),
|
|
2834
|
+
}), f(v), (I = g.current) == null || I.go(v);
|
|
2829
2835
|
}
|
|
2830
2836
|
}
|
|
2831
2837
|
) })
|
|
@@ -2838,7 +2844,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2838
2844
|
ariaLabel: r,
|
|
2839
2845
|
user: i = null
|
|
2840
2846
|
}) => {
|
|
2841
|
-
const s = V(null), c = V(null),
|
|
2847
|
+
const s = V(null), c = V(null), g = ae(), h = ne(), u = le();
|
|
2842
2848
|
if (!n) return null;
|
|
2843
2849
|
const m = async () => {
|
|
2844
2850
|
let x = i;
|
|
@@ -2851,7 +2857,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2851
2857
|
}
|
|
2852
2858
|
if (!(x != null && x.user) || !(x != null && x.session))
|
|
2853
2859
|
return console.warn("User data missing"), null;
|
|
2854
|
-
|
|
2860
|
+
g({
|
|
2855
2861
|
element: "club_olimpo_button",
|
|
2856
2862
|
label: `${h} - OraculoSeccionClubOlimpo - Click: Club Olimpo`,
|
|
2857
2863
|
target: "https://www.clubolimpo.com/OlimpoBetWeb/",
|
|
@@ -2885,7 +2891,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2885
2891
|
}, d = async () => {
|
|
2886
2892
|
const x = await m();
|
|
2887
2893
|
x ? window.location.href = x : typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/conoce-club-olimpo");
|
|
2888
|
-
},
|
|
2894
|
+
}, f = Array.isArray(n) ? n[o] : n;
|
|
2889
2895
|
Mt(() => {
|
|
2890
2896
|
if (!s.current || !c.current || typeof ResizeObserver == "undefined") return;
|
|
2891
2897
|
const x = s.current, C = c.current, p = () => {
|
|
@@ -2906,17 +2912,17 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2906
2912
|
{
|
|
2907
2913
|
ref: s,
|
|
2908
2914
|
className: b,
|
|
2909
|
-
"aria-label": r ||
|
|
2915
|
+
"aria-label": r || f.imgAlt || "Club Olimpo",
|
|
2910
2916
|
children: /* @__PURE__ */ t("div", { ref: c, children: /* @__PURE__ */ t(
|
|
2911
2917
|
Sa,
|
|
2912
2918
|
{
|
|
2913
|
-
text:
|
|
2919
|
+
text: f.text,
|
|
2914
2920
|
onClick: d,
|
|
2915
|
-
imgAlt:
|
|
2916
|
-
buttonLabel:
|
|
2917
|
-
imgSrcMobile:
|
|
2918
|
-
imgSrcDesktopBg:
|
|
2919
|
-
imgSrcDesktopLogo:
|
|
2921
|
+
imgAlt: f.imgAlt,
|
|
2922
|
+
buttonLabel: f.buttonLabel,
|
|
2923
|
+
imgSrcMobile: f.imgMobile,
|
|
2924
|
+
imgSrcDesktopBg: f.imgDesktopBg,
|
|
2925
|
+
imgSrcDesktopLogo: f.imgDesktopLogo
|
|
2920
2926
|
}
|
|
2921
2927
|
) })
|
|
2922
2928
|
}
|
|
@@ -2934,15 +2940,15 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2934
2940
|
function On(e, a, n) {
|
|
2935
2941
|
return n ? n.map((o) => {
|
|
2936
2942
|
var u, m;
|
|
2937
|
-
const r = o.prePackCouponRows.flatMap((d) => In(d).map((
|
|
2943
|
+
const r = o.prePackCouponRows.flatMap((d) => In(d).map((f) => ({ eventId: d.eventId, outcomeId: f }))), i = new Set(r.map((d) => d.eventId)), s = new Set(r.map((d) => d.outcomeId)), c = new Map(r.map((d, f) => [d.outcomeId, f])), g = {};
|
|
2938
2944
|
for (const d of a) {
|
|
2939
2945
|
if (!i.has(d.eventId)) continue;
|
|
2940
|
-
const
|
|
2941
|
-
|
|
2946
|
+
const f = d.outcomes.filter((b) => s.has(b.id)).map((b) => ({ ...b, position: c.get(b.id) }));
|
|
2947
|
+
f.length && ((m = g[u = d.eventId]) != null || (g[u] = []), g[d.eventId].push({ ...d, outcomes: f }));
|
|
2942
2948
|
}
|
|
2943
2949
|
const h = e.filter((d) => i.has(d.id)).map((d) => {
|
|
2944
|
-
var
|
|
2945
|
-
return { ...d, betoffers: (
|
|
2950
|
+
var f;
|
|
2951
|
+
return { ...d, betoffers: (f = g[d.id]) != null ? f : [] };
|
|
2946
2952
|
});
|
|
2947
2953
|
return {
|
|
2948
2954
|
couponId: o.id,
|
|
@@ -2969,8 +2975,8 @@ function Tn({
|
|
|
2969
2975
|
onViewMore: o,
|
|
2970
2976
|
className: r = ""
|
|
2971
2977
|
}) {
|
|
2972
|
-
const i = ae(), s = ne(), c = le(),
|
|
2973
|
-
var
|
|
2978
|
+
const i = ae(), s = ne(), c = le(), g = V(null), [h, u] = X({ isStart: !0, isEnd: !1 }), [m, d] = X([]), f = "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", b = () => {
|
|
2979
|
+
var T;
|
|
2974
2980
|
i({
|
|
2975
2981
|
element: "evento_combinadas_prev",
|
|
2976
2982
|
label: `${s} - OraculoSeccionEventoCombinadas - Click: Anterior`,
|
|
@@ -2980,9 +2986,9 @@ function Tn({
|
|
|
2980
2986
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2981
2987
|
},
|
|
2982
2988
|
tags: { section: "OraculoSeccionEventoCombinadas" }
|
|
2983
|
-
}), (
|
|
2989
|
+
}), (T = g.current) == null || T.prev();
|
|
2984
2990
|
}, x = () => {
|
|
2985
|
-
var
|
|
2991
|
+
var T;
|
|
2986
2992
|
i({
|
|
2987
2993
|
element: "evento_combinadas_next",
|
|
2988
2994
|
label: `${s} - OraculoSeccionEventoCombinadas - Click: Siguiente`,
|
|
@@ -2992,7 +2998,7 @@ function Tn({
|
|
|
2992
2998
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2993
2999
|
},
|
|
2994
3000
|
tags: { section: "OraculoSeccionEventoCombinadas" }
|
|
2995
|
-
}), (
|
|
3001
|
+
}), (T = g.current) == null || T.next();
|
|
2996
3002
|
}, C = () => {
|
|
2997
3003
|
i({
|
|
2998
3004
|
element: "evento_combinadas_ver_mas",
|
|
@@ -3004,11 +3010,11 @@ function Tn({
|
|
|
3004
3010
|
},
|
|
3005
3011
|
tags: { section: "OraculoSeccionEventoCombinadas" }
|
|
3006
3012
|
}), Ra();
|
|
3007
|
-
}, p = re(() => m.filter((
|
|
3013
|
+
}, p = re(() => m.filter((T) => T.combinadoTotal !== null), [m]);
|
|
3008
3014
|
async function w() {
|
|
3009
|
-
var y,
|
|
3015
|
+
var T, y, F, q;
|
|
3010
3016
|
try {
|
|
3011
|
-
const v = await (await fetch(
|
|
3017
|
+
const v = await (await fetch(f)).json(), I = (q = (F = (y = (T = v == null ? void 0 : v.group) == null ? void 0 : T.groups) == null ? void 0 : y.map((U) => U.id)) == null ? void 0 : F.filter(Boolean)) == null ? void 0 : q.join(",");
|
|
3012
3018
|
if (!I) {
|
|
3013
3019
|
console.error("Could not extract group ID");
|
|
3014
3020
|
return;
|
|
@@ -3022,7 +3028,7 @@ function Tn({
|
|
|
3022
3028
|
Q(() => {
|
|
3023
3029
|
w();
|
|
3024
3030
|
}, []);
|
|
3025
|
-
const M = r || void 0,
|
|
3031
|
+
const M = r || void 0, D = xe("(max-width:950px)");
|
|
3026
3032
|
return p.length === 0 ? null : /* @__PURE__ */ t("section", { className: M, style: {
|
|
3027
3033
|
// paddingLeft: 16,
|
|
3028
3034
|
// paddingRight: 16,
|
|
@@ -3062,19 +3068,19 @@ function Tn({
|
|
|
3062
3068
|
/* @__PURE__ */ t(
|
|
3063
3069
|
he,
|
|
3064
3070
|
{
|
|
3065
|
-
ref:
|
|
3071
|
+
ref: g,
|
|
3066
3072
|
items: p,
|
|
3067
3073
|
perPage: void 0,
|
|
3068
3074
|
gap: "16px",
|
|
3069
3075
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
3070
3076
|
useIndexAsKey: !0,
|
|
3071
3077
|
enableHorizontalWheel: !0,
|
|
3072
|
-
showRightGradient: !
|
|
3078
|
+
showRightGradient: !D,
|
|
3073
3079
|
breakpoints: {
|
|
3074
3080
|
768: { perPage: 1.2, gap: "12px", padding: { left: "24px", right: "24px" } }
|
|
3075
3081
|
},
|
|
3076
|
-
renderItem: (
|
|
3077
|
-
onMove: ({ isStart:
|
|
3082
|
+
renderItem: (T) => /* @__PURE__ */ t(Cn, { coupon: T }),
|
|
3083
|
+
onMove: ({ isStart: T, isEnd: y }) => u({ isStart: T, isEnd: y })
|
|
3078
3084
|
}
|
|
3079
3085
|
)
|
|
3080
3086
|
] }) });
|
|
@@ -3129,50 +3135,50 @@ function St({
|
|
|
3129
3135
|
buffer: o = 2,
|
|
3130
3136
|
debounceMs: r = 250
|
|
3131
3137
|
}) {
|
|
3132
|
-
const [i, s] = X({}), c = V(/* @__PURE__ */ new Set()),
|
|
3138
|
+
const [i, s] = X({}), c = V(/* @__PURE__ */ new Set()), g = V(0), h = V(null), u = V(null);
|
|
3133
3139
|
return Q(() => {
|
|
3134
3140
|
if (!(!e || e.length === 0))
|
|
3135
3141
|
return h.current && clearTimeout(h.current), h.current = setTimeout(() => {
|
|
3136
|
-
var
|
|
3137
|
-
const m = (
|
|
3138
|
-
let x =
|
|
3142
|
+
var D, T;
|
|
3143
|
+
const m = (D = a.start) != null ? D : 0, d = (T = a.end) != null ? T : 7, f = Math.max(0, m - o), b = Math.min(e.length - 1, d + o);
|
|
3144
|
+
let x = f, C = b;
|
|
3139
3145
|
const p = u.current;
|
|
3140
|
-
p && (
|
|
3141
|
-
const w = e.slice(x, C + 1).map((
|
|
3146
|
+
p && (f > p.end && (x = p.end + 1), b < p.start && (C = p.start - 1)), u.current = { start: f, end: b };
|
|
3147
|
+
const w = e.slice(x, C + 1).map((y) => y == null ? void 0 : y.id).filter((y) => !!y).filter((y) => !c.current.has(y)).filter((y) => !(y in i));
|
|
3142
3148
|
if (w.length === 0) return;
|
|
3143
|
-
w.forEach((
|
|
3144
|
-
const M = ++
|
|
3149
|
+
w.forEach((y) => c.current.add(y));
|
|
3150
|
+
const M = ++g.current;
|
|
3145
3151
|
(async () => {
|
|
3146
3152
|
try {
|
|
3147
|
-
const
|
|
3148
|
-
if (M !==
|
|
3149
|
-
w.forEach((
|
|
3153
|
+
const y = await n(w);
|
|
3154
|
+
if (M !== g.current) {
|
|
3155
|
+
w.forEach((q) => c.current.delete(q));
|
|
3150
3156
|
return;
|
|
3151
3157
|
}
|
|
3152
|
-
if (!(
|
|
3158
|
+
if (!(y != null && y.events)) {
|
|
3153
3159
|
w.forEach(
|
|
3154
|
-
(
|
|
3160
|
+
(q) => c.current.delete(q)
|
|
3155
3161
|
);
|
|
3156
3162
|
return;
|
|
3157
3163
|
}
|
|
3158
|
-
s((
|
|
3159
|
-
const O = { ...
|
|
3160
|
-
for (const [v, I] of Object.entries(
|
|
3164
|
+
s((q) => {
|
|
3165
|
+
const O = { ...q };
|
|
3166
|
+
for (const [v, I] of Object.entries(y.events)) {
|
|
3161
3167
|
const R = Number(v);
|
|
3162
3168
|
O[R] || (O[R] = I);
|
|
3163
3169
|
}
|
|
3164
3170
|
return O;
|
|
3165
3171
|
});
|
|
3166
|
-
const
|
|
3167
|
-
Object.keys(
|
|
3172
|
+
const F = new Set(
|
|
3173
|
+
Object.keys(y.events).map(Number)
|
|
3168
3174
|
);
|
|
3169
|
-
w.forEach((
|
|
3170
|
-
c.current.delete(
|
|
3175
|
+
w.forEach((q) => {
|
|
3176
|
+
c.current.delete(q);
|
|
3171
3177
|
});
|
|
3172
|
-
} catch (
|
|
3178
|
+
} catch (y) {
|
|
3173
3179
|
w.forEach(
|
|
3174
|
-
(
|
|
3175
|
-
), console.error("Jersey fetch error",
|
|
3180
|
+
(F) => c.current.delete(F)
|
|
3181
|
+
), console.error("Jersey fetch error", y);
|
|
3176
3182
|
}
|
|
3177
3183
|
})();
|
|
3178
3184
|
}, r), () => {
|
|
@@ -3200,7 +3206,7 @@ function Ln({
|
|
|
3200
3206
|
onViewMore: o,
|
|
3201
3207
|
className: r = ""
|
|
3202
3208
|
}) {
|
|
3203
|
-
const i = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football/all/all/all/in-play.json?channel_id=3&channel_id=3&client_id=200&client_id=200&competitionId=undefined&lang=es_PE&lang=es_PE&market=PE&market=PE&useCombined=true&useCombinedLive=true", s = V(null), [c,
|
|
3209
|
+
const i = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football/all/all/all/in-play.json?channel_id=3&channel_id=3&client_id=200&client_id=200&competitionId=undefined&lang=es_PE&lang=es_PE&market=PE&market=PE&useCombined=true&useCombinedLive=true", s = V(null), [c, g] = X({ isStart: !0, isEnd: !1 }), [h, u] = X(null), [m, d] = X({ start: null, end: null }), [f, b] = X(null), x = V(!1), C = ae(), p = ne(), w = le(), M = V(/* @__PURE__ */ new Map()), D = () => {
|
|
3204
3210
|
var B;
|
|
3205
3211
|
C({
|
|
3206
3212
|
element: "evento_en_vivo_prev",
|
|
@@ -3213,7 +3219,7 @@ function Ln({
|
|
|
3213
3219
|
},
|
|
3214
3220
|
tags: { section: "OraculoSeccionEventoEnVivo" }
|
|
3215
3221
|
}), (B = s.current) == null || B.prev();
|
|
3216
|
-
},
|
|
3222
|
+
}, T = () => {
|
|
3217
3223
|
var B;
|
|
3218
3224
|
C({
|
|
3219
3225
|
element: "evento_en_vivo_next",
|
|
@@ -3226,7 +3232,7 @@ function Ln({
|
|
|
3226
3232
|
},
|
|
3227
3233
|
tags: { section: "OraculoSeccionEventoEnVivo" }
|
|
3228
3234
|
}), (B = s.current) == null || B.next();
|
|
3229
|
-
},
|
|
3235
|
+
}, y = () => {
|
|
3230
3236
|
C({
|
|
3231
3237
|
element: "evento_en_vivo_view_more",
|
|
3232
3238
|
label: `${p} - OraculoSeccionEventoEnVivo - Ver más`,
|
|
@@ -3238,14 +3244,14 @@ function Ln({
|
|
|
3238
3244
|
},
|
|
3239
3245
|
tags: { section: "OraculoSeccionEventoEnVivo" }
|
|
3240
3246
|
}), Ba();
|
|
3241
|
-
},
|
|
3247
|
+
}, F = Ce(async () => {
|
|
3242
3248
|
var B;
|
|
3243
3249
|
try {
|
|
3244
3250
|
if (!x.current) {
|
|
3245
3251
|
x.current = !0;
|
|
3246
3252
|
try {
|
|
3247
3253
|
const Z = await (await fetch("https://api.mktolimpo.com/api/kambi/eventos/orden")).json(), G = ((B = Z == null ? void 0 : Z.data) == null ? void 0 : B.event_ids) || [], E = /* @__PURE__ */ new Map();
|
|
3248
|
-
G.forEach((
|
|
3254
|
+
G.forEach((z, l) => E.set(String(z), l)), M.current = E;
|
|
3249
3255
|
} catch (j) {
|
|
3250
3256
|
console.error("Order fetch failed, using default sorting", j);
|
|
3251
3257
|
}
|
|
@@ -3257,8 +3263,8 @@ function Ln({
|
|
|
3257
3263
|
u(W);
|
|
3258
3264
|
else {
|
|
3259
3265
|
const j = [...W].sort((Z, G) => {
|
|
3260
|
-
const E = M.current.get(String(Z.event.id)),
|
|
3261
|
-
return (E !== void 0 ? E : 1 / 0) - (
|
|
3266
|
+
const E = M.current.get(String(Z.event.id)), z = M.current.get(String(G.event.id));
|
|
3267
|
+
return (E !== void 0 ? E : 1 / 0) - (z !== void 0 ? z : 1 / 0);
|
|
3262
3268
|
});
|
|
3263
3269
|
u(j);
|
|
3264
3270
|
}
|
|
@@ -3267,11 +3273,11 @@ function Ln({
|
|
|
3267
3273
|
}
|
|
3268
3274
|
}, []);
|
|
3269
3275
|
Q(() => {
|
|
3270
|
-
|
|
3271
|
-
const B = setInterval(
|
|
3276
|
+
F();
|
|
3277
|
+
const B = setInterval(F, 2e4);
|
|
3272
3278
|
return () => clearInterval(B);
|
|
3273
|
-
}, [
|
|
3274
|
-
const { jerseys:
|
|
3279
|
+
}, [F]);
|
|
3280
|
+
const { jerseys: q } = St({
|
|
3275
3281
|
events: (h == null ? void 0 : h.map((B) => B.event)) || [],
|
|
3276
3282
|
// extract actual event objects
|
|
3277
3283
|
visibleRange: m,
|
|
@@ -3298,7 +3304,7 @@ function Ln({
|
|
|
3298
3304
|
variant: "secondary",
|
|
3299
3305
|
iconOnly: !0,
|
|
3300
3306
|
leftIcon: /* @__PURE__ */ t(Ae, {}),
|
|
3301
|
-
onClick:
|
|
3307
|
+
onClick: D,
|
|
3302
3308
|
disabled: c.isStart
|
|
3303
3309
|
}
|
|
3304
3310
|
),
|
|
@@ -3309,12 +3315,12 @@ function Ln({
|
|
|
3309
3315
|
variant: "secondary",
|
|
3310
3316
|
iconOnly: !0,
|
|
3311
3317
|
rightIcon: /* @__PURE__ */ t(Re, {}),
|
|
3312
|
-
onClick:
|
|
3318
|
+
onClick: T,
|
|
3313
3319
|
disabled: c.isEnd
|
|
3314
3320
|
}
|
|
3315
3321
|
)
|
|
3316
3322
|
] }),
|
|
3317
|
-
/* @__PURE__ */ t(Y, { variant: "secondary", onClick:
|
|
3323
|
+
/* @__PURE__ */ t(Y, { variant: "secondary", onClick: y, children: "Ver más" })
|
|
3318
3324
|
] })
|
|
3319
3325
|
] }) }),
|
|
3320
3326
|
/* @__PURE__ */ t(
|
|
@@ -3334,7 +3340,7 @@ function Ln({
|
|
|
3334
3340
|
},
|
|
3335
3341
|
renderItem: (B) => {
|
|
3336
3342
|
var W;
|
|
3337
|
-
const A = ((W = B.event) == null ? void 0 : W.id) || B.eventId, U = A in
|
|
3343
|
+
const A = ((W = B.event) == null ? void 0 : W.id) || B.eventId, U = A in q ? q[A] : void 0;
|
|
3338
3344
|
return v ? /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(kn, {}) }) : /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(
|
|
3339
3345
|
Rn,
|
|
3340
3346
|
{
|
|
@@ -3344,7 +3350,7 @@ function Ln({
|
|
|
3344
3350
|
) });
|
|
3345
3351
|
},
|
|
3346
3352
|
onMove: ({ isStart: B, isEnd: A, visibleStart: U, visibleEnd: W }) => {
|
|
3347
|
-
|
|
3353
|
+
g(
|
|
3348
3354
|
(j) => j.isStart === B && j.isEnd === A ? j : { isStart: B, isEnd: A }
|
|
3349
3355
|
), d({ start: U, end: W });
|
|
3350
3356
|
}
|
|
@@ -3392,7 +3398,7 @@ async function Vn(e, a = 2, n) {
|
|
|
3392
3398
|
if (n.aborted)
|
|
3393
3399
|
throw new DOMException("Aborted", "AbortError");
|
|
3394
3400
|
const i = e.slice(r, r + a), s = await Promise.all(
|
|
3395
|
-
i.map((c) => fetch(c, { signal: n }).then((
|
|
3401
|
+
i.map((c) => fetch(c, { signal: n }).then((g) => g.json()))
|
|
3396
3402
|
);
|
|
3397
3403
|
o.push(...s);
|
|
3398
3404
|
}
|
|
@@ -3428,7 +3434,7 @@ function Hn({
|
|
|
3428
3434
|
onViewMore: o,
|
|
3429
3435
|
className: r = ""
|
|
3430
3436
|
}) {
|
|
3431
|
-
const i = ae(), s = ne(), c = le(),
|
|
3437
|
+
const i = ae(), s = ne(), c = le(), g = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE", h = V(null), [u, m] = X({ isStart: !0, isEnd: !1 }), [d, f] = X(null), [b, x] = X({ start: null, end: null }), C = "channel_id=1&client_id=200&competitionId=undefined&lang=es_PE&market=PE&useCombined=true", p = () => {
|
|
3432
3438
|
i({
|
|
3433
3439
|
element: "evento_semana_view_more",
|
|
3434
3440
|
label: `${s} - OraculoSeccionEventoSemana - Ver más`,
|
|
@@ -3458,7 +3464,7 @@ function Hn({
|
|
|
3458
3464
|
return;
|
|
3459
3465
|
}
|
|
3460
3466
|
try {
|
|
3461
|
-
const W = (await (await fetch(
|
|
3467
|
+
const W = (await (await fetch(g, { signal: O })).json()).group.groups.find(
|
|
3462
3468
|
(l) => l.englishName === "Football"
|
|
3463
3469
|
);
|
|
3464
3470
|
if (!W || !Array.isArray(W.groups)) {
|
|
@@ -3468,26 +3474,26 @@ function Hn({
|
|
|
3468
3474
|
let j = [...W.groups];
|
|
3469
3475
|
if (v.length > 0) {
|
|
3470
3476
|
const l = new Map(
|
|
3471
|
-
v.map((S,
|
|
3477
|
+
v.map((S, k) => [S, k])
|
|
3472
3478
|
);
|
|
3473
|
-
j.sort((S,
|
|
3474
|
-
const N = l.get(String(S.id)), $ = l.get(String(
|
|
3479
|
+
j.sort((S, k) => {
|
|
3480
|
+
const N = l.get(String(S.id)), $ = l.get(String(k.id));
|
|
3475
3481
|
return N !== void 0 && $ !== void 0 ? N - $ : N !== void 0 ? -1 : $ !== void 0 ? 1 : 0;
|
|
3476
3482
|
});
|
|
3477
3483
|
}
|
|
3478
3484
|
const G = j.slice(0, 5), E = (l) => {
|
|
3479
3485
|
const S = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football";
|
|
3480
3486
|
if (l.groups && l.groups.length > 0) {
|
|
3481
|
-
const
|
|
3487
|
+
const k = l.groups[0];
|
|
3482
3488
|
return [
|
|
3483
|
-
`${S}/${l.termKey}/${
|
|
3489
|
+
`${S}/${l.termKey}/${k.termKey}/all/matches.json?${C}`
|
|
3484
3490
|
];
|
|
3485
3491
|
}
|
|
3486
3492
|
return [
|
|
3487
3493
|
`${S}/${l.termKey}/all/all/matches.json?${C}`
|
|
3488
3494
|
];
|
|
3489
|
-
},
|
|
3490
|
-
M(
|
|
3495
|
+
}, z = G.flatMap(E);
|
|
3496
|
+
M(z, I, O);
|
|
3491
3497
|
} catch (A) {
|
|
3492
3498
|
console.error(A);
|
|
3493
3499
|
}
|
|
@@ -3511,12 +3517,12 @@ function Hn({
|
|
|
3511
3517
|
])
|
|
3512
3518
|
);
|
|
3513
3519
|
j = [...W].sort((G, E) => {
|
|
3514
|
-
const
|
|
3515
|
-
return
|
|
3520
|
+
const z = Z.get(String(G.id)), l = Z.get(String(E.id));
|
|
3521
|
+
return z !== void 0 && l !== void 0 ? z - l : z !== void 0 ? -1 : l !== void 0 ? 1 : 0;
|
|
3516
3522
|
});
|
|
3517
3523
|
}
|
|
3518
3524
|
if (I.aborted) return;
|
|
3519
|
-
|
|
3525
|
+
f(j);
|
|
3520
3526
|
} catch (R) {
|
|
3521
3527
|
console.error("Error loading events:", R);
|
|
3522
3528
|
}
|
|
@@ -3528,18 +3534,18 @@ function Hn({
|
|
|
3528
3534
|
O.abort();
|
|
3529
3535
|
};
|
|
3530
3536
|
}, [e]);
|
|
3531
|
-
const
|
|
3537
|
+
const D = r || void 0, T = {
|
|
3532
3538
|
paddingLeft: 0,
|
|
3533
3539
|
width: "100%",
|
|
3534
3540
|
boxSizing: "border-box"
|
|
3535
|
-
}, { jerseys:
|
|
3541
|
+
}, { jerseys: y } = St({
|
|
3536
3542
|
events: d,
|
|
3537
3543
|
visibleRange: b,
|
|
3538
3544
|
fetchJerseys: gt,
|
|
3539
3545
|
buffer: 2,
|
|
3540
3546
|
debounceMs: 250
|
|
3541
|
-
}),
|
|
3542
|
-
return !
|
|
3547
|
+
}), F = d === null, q = xe("(max-width:950px)");
|
|
3548
|
+
return !F && d.length === 0 ? null : /* @__PURE__ */ t("section", { className: D, style: T, children: /* @__PURE__ */ _("div", { className: `${Ie.wrapper} ${Ie.padding}`, children: [
|
|
3543
3549
|
/* @__PURE__ */ t("div", { className: Ie.container, children: /* @__PURE__ */ _(K, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
3544
3550
|
/* @__PURE__ */ t(ge, { title: "Eventos de la semana" }),
|
|
3545
3551
|
/* @__PURE__ */ t("div", { className: Ie.buttonWrapper, children: /* @__PURE__ */ t(
|
|
@@ -3559,11 +3565,11 @@ function Hn({
|
|
|
3559
3565
|
he,
|
|
3560
3566
|
{
|
|
3561
3567
|
ref: h,
|
|
3562
|
-
items:
|
|
3568
|
+
items: F ? Array(6).fill({}) : d.slice(0, 20),
|
|
3563
3569
|
perPage: 3.5,
|
|
3564
3570
|
gap: "16px",
|
|
3565
3571
|
enableHorizontalWheel: !0,
|
|
3566
|
-
showRightGradient: !
|
|
3572
|
+
showRightGradient: !q,
|
|
3567
3573
|
options: { autoWidth: !0, trimSpace: !0 },
|
|
3568
3574
|
breakpoints: {
|
|
3569
3575
|
1024: {
|
|
@@ -3574,8 +3580,8 @@ function Hn({
|
|
|
3574
3580
|
}
|
|
3575
3581
|
},
|
|
3576
3582
|
renderItem: (O) => {
|
|
3577
|
-
const v = O.id, I = v in
|
|
3578
|
-
return
|
|
3583
|
+
const v = O.id, I = v in y ? y[v] : void 0;
|
|
3584
|
+
return F ? /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Fn, {}) }) : /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Un, { event: O, jersey: I }) });
|
|
3579
3585
|
},
|
|
3580
3586
|
onMove: ({ isStart: O, isEnd: v, visibleStart: I, visibleEnd: R, source: B }) => {
|
|
3581
3587
|
m({ isStart: O, isEnd: v }), x({
|
|
@@ -3604,8 +3610,8 @@ function Hn({
|
|
|
3604
3610
|
const Kn = -300, Zn = (e) => /[zZ]|[+-]\d{2}:\d{2}$/.test(e), nt = (e) => {
|
|
3605
3611
|
if (!e) return null;
|
|
3606
3612
|
if (Zn(e)) {
|
|
3607
|
-
const
|
|
3608
|
-
return Number.isNaN(
|
|
3613
|
+
const g = new Date(e).getTime();
|
|
3614
|
+
return Number.isNaN(g) ? null : g;
|
|
3609
3615
|
}
|
|
3610
3616
|
const a = e.match(
|
|
3611
3617
|
/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})(?::(\d{2}))?$/
|
|
@@ -3621,8 +3627,8 @@ const Kn = -300, Zn = (e) => /[zZ]|[+-]\d{2}:\d{2}$/.test(e), nt = (e) => {
|
|
|
3621
3627
|
Number(c)
|
|
3622
3628
|
);
|
|
3623
3629
|
}, Jn = (e, a) => {
|
|
3624
|
-
var c,
|
|
3625
|
-
const n = (h = (
|
|
3630
|
+
var c, g, h, u, m, d, f, b, x;
|
|
3631
|
+
const n = (h = (g = (c = e == null ? void 0 : e.fields) != null ? c : e == null ? void 0 : e.parameters) != null ? g : e == null ? void 0 : e.extraFields) != null ? h : [], o = (d = (m = e == null ? void 0 : e.startAt) != null ? m : (u = n.find((C) => (C == null ? void 0 : C.name) === "startAt")) == null ? void 0 : u.value) != null ? d : null, r = (x = (b = e == null ? void 0 : e.endAt) != null ? b : (f = n.find((C) => (C == null ? void 0 : C.name) === "endAt")) == null ? void 0 : f.value) != null ? x : null, i = nt(o), s = nt(r);
|
|
3626
3632
|
return !(i != null && a < i || s != null && a >= s);
|
|
3627
3633
|
};
|
|
3628
3634
|
function Xn({
|
|
@@ -3631,25 +3637,25 @@ function Xn({
|
|
|
3631
3637
|
hideItems: n
|
|
3632
3638
|
}) {
|
|
3633
3639
|
var G;
|
|
3634
|
-
const [o, r] = X(0), i = ae(), s = ne(), c = le(),
|
|
3640
|
+
const [o, r] = X(0), i = ae(), s = ne(), c = le(), g = V(null), h = V(!1), u = V(!1), [m, d] = X(() => Date.now()), f = ie("setDepositActionGlobal"), b = ie("setAbrirLiveActionGlobal"), x = (E) => [...E != null ? E : []].map((z, l) => ({ item: z, index: l })).sort((z, l) => {
|
|
3635
3641
|
var N, $;
|
|
3636
|
-
const S = (N =
|
|
3637
|
-
return S -
|
|
3638
|
-
}).map(({ item:
|
|
3642
|
+
const S = (N = z.item.order) != null ? N : Number.MAX_SAFE_INTEGER, k = ($ = l.item.order) != null ? $ : Number.MAX_SAFE_INTEGER;
|
|
3643
|
+
return S - k || z.index - l.index;
|
|
3644
|
+
}).map(({ item: z }) => z), C = re(() => x(a), [a]), p = re(() => {
|
|
3639
3645
|
const E = (e != null ? e : []).filter(
|
|
3640
|
-
(
|
|
3646
|
+
(z) => Jn(z, m)
|
|
3641
3647
|
);
|
|
3642
3648
|
return x(E);
|
|
3643
|
-
}, [e, m]), w = p.length || 1, M = !p || p.length === 0,
|
|
3649
|
+
}, [e, m]), w = p.length || 1, M = !p || p.length === 0, D = !M && p.length > 1, T = !n && C.length > 0;
|
|
3644
3650
|
De("(max-width:950px)");
|
|
3645
|
-
const
|
|
3651
|
+
const y = "#B5B5B5";
|
|
3646
3652
|
Q(() => {
|
|
3647
3653
|
const E = window.setInterval(() => {
|
|
3648
3654
|
d(Date.now());
|
|
3649
3655
|
}, 3e4);
|
|
3650
3656
|
return () => window.clearInterval(E);
|
|
3651
3657
|
}, []);
|
|
3652
|
-
const
|
|
3658
|
+
const F = {
|
|
3653
3659
|
position: "absolute",
|
|
3654
3660
|
top: "50%",
|
|
3655
3661
|
transform: "translateY(-50%)",
|
|
@@ -3657,22 +3663,22 @@ function Xn({
|
|
|
3657
3663
|
width: 48,
|
|
3658
3664
|
height: 40,
|
|
3659
3665
|
borderRadius: "12px",
|
|
3660
|
-
border: `1.5px solid ${
|
|
3666
|
+
border: `1.5px solid ${y}`,
|
|
3661
3667
|
py: 1,
|
|
3662
3668
|
px: 1.5,
|
|
3663
|
-
color:
|
|
3669
|
+
color: y,
|
|
3664
3670
|
backgroundColor: "transparent",
|
|
3665
3671
|
"&:hover": {
|
|
3666
3672
|
backgroundColor: "rgba(181,181,181,0.08)"
|
|
3667
3673
|
},
|
|
3668
3674
|
"&.Mui-disabled": {
|
|
3669
3675
|
opacity: 0.35,
|
|
3670
|
-
borderColor:
|
|
3671
|
-
color:
|
|
3676
|
+
borderColor: y,
|
|
3677
|
+
color: y,
|
|
3672
3678
|
backgroundColor: "transparent",
|
|
3673
3679
|
cursor: "default"
|
|
3674
3680
|
}
|
|
3675
|
-
},
|
|
3681
|
+
}, q = re(
|
|
3676
3682
|
() => ({
|
|
3677
3683
|
type: "loop",
|
|
3678
3684
|
perMove: 1,
|
|
@@ -3689,13 +3695,13 @@ function Xn({
|
|
|
3689
3695
|
}, 500);
|
|
3690
3696
|
return () => clearTimeout(E);
|
|
3691
3697
|
}, []);
|
|
3692
|
-
const O = (E,
|
|
3698
|
+
const O = (E, z, l) => {
|
|
3693
3699
|
var $, L;
|
|
3694
|
-
const S = !!
|
|
3700
|
+
const S = !!z.idFunction, k = !!z.href;
|
|
3695
3701
|
if (S)
|
|
3696
|
-
switch (E.preventDefault(), E.stopPropagation(),
|
|
3702
|
+
switch (E.preventDefault(), E.stopPropagation(), z.idFunction) {
|
|
3697
3703
|
case "deposito":
|
|
3698
|
-
|
|
3704
|
+
f == null || f(!0);
|
|
3699
3705
|
return;
|
|
3700
3706
|
case "abrirLive":
|
|
3701
3707
|
b == null || b();
|
|
@@ -3703,15 +3709,15 @@ function Xn({
|
|
|
3703
3709
|
default:
|
|
3704
3710
|
return;
|
|
3705
3711
|
}
|
|
3706
|
-
if (!
|
|
3712
|
+
if (!k) {
|
|
3707
3713
|
E.preventDefault(), E.stopPropagation();
|
|
3708
3714
|
return;
|
|
3709
3715
|
}
|
|
3710
|
-
const N = ((L = ($ =
|
|
3716
|
+
const N = ((L = ($ = z.href) == null ? void 0 : $.split("/").pop()) == null ? void 0 : L.split(".")[0]) || z.label || z.id || `banner_${l + 1}`;
|
|
3711
3717
|
i({
|
|
3712
3718
|
element: "banner_carousel",
|
|
3713
3719
|
label: `${s} - OraculoSeccionBanners - Banner click: ${N}`,
|
|
3714
|
-
target:
|
|
3720
|
+
target: z.href || "no_url",
|
|
3715
3721
|
event_type: "click",
|
|
3716
3722
|
module_id: c,
|
|
3717
3723
|
metadata: {
|
|
@@ -3722,7 +3728,7 @@ function Xn({
|
|
|
3722
3728
|
tags: {
|
|
3723
3729
|
banner_type: "carousel",
|
|
3724
3730
|
banner_target: "_self",
|
|
3725
|
-
banner_url:
|
|
3731
|
+
banner_url: z.href || "no_url"
|
|
3726
3732
|
}
|
|
3727
3733
|
});
|
|
3728
3734
|
}, v = (E) => {
|
|
@@ -3749,34 +3755,34 @@ function Xn({
|
|
|
3749
3755
|
}, U = () => {
|
|
3750
3756
|
A(), B && (R.current = window.setTimeout(() => {
|
|
3751
3757
|
var E;
|
|
3752
|
-
u.current = !0, (E =
|
|
3758
|
+
u.current = !0, (E = g.current) == null || E.next();
|
|
3753
3759
|
}, I));
|
|
3754
3760
|
};
|
|
3755
3761
|
Q(() => (U(), () => A()), [B, I]);
|
|
3756
3762
|
const W = (E) => {
|
|
3757
|
-
var
|
|
3758
|
-
E.preventDefault(), E.stopPropagation(), A(), (
|
|
3763
|
+
var z;
|
|
3764
|
+
E.preventDefault(), E.stopPropagation(), A(), (z = g.current) == null || z.prev();
|
|
3759
3765
|
}, j = (E) => {
|
|
3760
|
-
var
|
|
3761
|
-
E.preventDefault(), E.stopPropagation(), A(), (
|
|
3766
|
+
var z;
|
|
3767
|
+
E.preventDefault(), E.stopPropagation(), A(), (z = g.current) == null || z.next();
|
|
3762
3768
|
}, Z = (E) => {
|
|
3763
|
-
var S,
|
|
3764
|
-
const
|
|
3769
|
+
var S, k, N, $;
|
|
3770
|
+
const z = (E % w + w) % w;
|
|
3765
3771
|
if (!h.current) return;
|
|
3766
|
-
const l = (S = p == null ? void 0 : p[
|
|
3772
|
+
const l = (S = p == null ? void 0 : p[z]) != null && S.href ? ((N = (k = p[z].href) == null ? void 0 : k.split("/").pop()) == null ? void 0 : N.split(".")[0]) || `banner_${z + 1}` : `banner_${z + 1}`;
|
|
3767
3773
|
i({
|
|
3768
3774
|
element: "banner_carousel",
|
|
3769
|
-
label: `${s} - OraculoSeccionBanners - Banner view: Slide ${
|
|
3770
|
-
target: (($ = p == null ? void 0 : p[
|
|
3775
|
+
label: `${s} - OraculoSeccionBanners - Banner view: Slide ${z + 1} - ${l}`,
|
|
3776
|
+
target: (($ = p == null ? void 0 : p[z]) == null ? void 0 : $.href) || "no_url",
|
|
3771
3777
|
event_type: "view",
|
|
3772
3778
|
module_id: c,
|
|
3773
3779
|
metadata: {
|
|
3774
3780
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
3775
|
-
slide_index:
|
|
3781
|
+
slide_index: z + 1,
|
|
3776
3782
|
total_slides: w,
|
|
3777
3783
|
interaction_type: "manual_slide"
|
|
3778
3784
|
},
|
|
3779
|
-
tags: { banner_position: String(
|
|
3785
|
+
tags: { banner_position: String(z + 1) }
|
|
3780
3786
|
});
|
|
3781
3787
|
};
|
|
3782
3788
|
return /* @__PURE__ */ _(
|
|
@@ -3786,7 +3792,7 @@ function Xn({
|
|
|
3786
3792
|
sx: {
|
|
3787
3793
|
position: "relative",
|
|
3788
3794
|
overflow: "visible",
|
|
3789
|
-
pb:
|
|
3795
|
+
pb: T ? { xs: "40px", sm: 0 } : 0
|
|
3790
3796
|
},
|
|
3791
3797
|
children: [
|
|
3792
3798
|
/* @__PURE__ */ _(
|
|
@@ -3816,29 +3822,29 @@ function Xn({
|
|
|
3816
3822
|
children: /* @__PURE__ */ t(
|
|
3817
3823
|
he,
|
|
3818
3824
|
{
|
|
3819
|
-
ref:
|
|
3825
|
+
ref: g,
|
|
3820
3826
|
items: p,
|
|
3821
3827
|
perPage: 1,
|
|
3822
3828
|
gap: "0px",
|
|
3823
3829
|
enableHorizontalWheel: !0,
|
|
3824
|
-
options:
|
|
3825
|
-
onMove: ({ index: E, source:
|
|
3830
|
+
options: q,
|
|
3831
|
+
onMove: ({ index: E, source: z }) => {
|
|
3826
3832
|
const l = (E % w + w) % w;
|
|
3827
3833
|
r(l);
|
|
3828
3834
|
const S = u.current;
|
|
3829
|
-
u.current = !1,
|
|
3835
|
+
u.current = !1, z === "user" && (U(), S || Z(E));
|
|
3830
3836
|
},
|
|
3831
|
-
renderItem: (E,
|
|
3837
|
+
renderItem: (E, z) => {
|
|
3832
3838
|
var $, L, J;
|
|
3833
|
-
const l = !!E.idFunction, S = !!E.href,
|
|
3839
|
+
const l = !!E.idFunction, S = !!E.href, k = S && !l, N = l || S;
|
|
3834
3840
|
return /* @__PURE__ */ _(
|
|
3835
3841
|
ee,
|
|
3836
3842
|
{
|
|
3837
|
-
component:
|
|
3838
|
-
href:
|
|
3839
|
-
target:
|
|
3840
|
-
rel:
|
|
3841
|
-
onClick: (te) => O(te, E,
|
|
3843
|
+
component: k ? "a" : "div",
|
|
3844
|
+
href: k ? E.href : void 0,
|
|
3845
|
+
target: k ? ($ = E.target) != null ? $ : "_self" : void 0,
|
|
3846
|
+
rel: k && E.target === "_blank" ? "noopener noreferrer" : void 0,
|
|
3847
|
+
onClick: (te) => O(te, E, z),
|
|
3842
3848
|
sx: {
|
|
3843
3849
|
position: "relative",
|
|
3844
3850
|
width: "100%",
|
|
@@ -3895,14 +3901,14 @@ function Xn({
|
|
|
3895
3901
|
)
|
|
3896
3902
|
}
|
|
3897
3903
|
),
|
|
3898
|
-
|
|
3904
|
+
D && /* @__PURE__ */ _(pe, { children: [
|
|
3899
3905
|
/* @__PURE__ */ t(
|
|
3900
3906
|
Ke,
|
|
3901
3907
|
{
|
|
3902
3908
|
"aria-label": "Anterior",
|
|
3903
3909
|
onClick: W,
|
|
3904
3910
|
sx: {
|
|
3905
|
-
...
|
|
3911
|
+
...F,
|
|
3906
3912
|
left: "120px",
|
|
3907
3913
|
"@media (max-width:1024px)": { left: 24 },
|
|
3908
3914
|
"@media (max-width:786px)": { display: "none" }
|
|
@@ -3916,7 +3922,7 @@ function Xn({
|
|
|
3916
3922
|
"aria-label": "Siguiente",
|
|
3917
3923
|
onClick: j,
|
|
3918
3924
|
sx: {
|
|
3919
|
-
...
|
|
3925
|
+
...F,
|
|
3920
3926
|
right: "120px",
|
|
3921
3927
|
"@media (max-width:1024px)": { right: 24 },
|
|
3922
3928
|
"@media (max-width:786px)": { display: "none" }
|
|
@@ -3951,7 +3957,7 @@ function Xn({
|
|
|
3951
3957
|
]
|
|
3952
3958
|
}
|
|
3953
3959
|
),
|
|
3954
|
-
|
|
3960
|
+
T && /* @__PURE__ */ t(
|
|
3955
3961
|
ee,
|
|
3956
3962
|
{
|
|
3957
3963
|
sx: {
|
|
@@ -5640,33 +5646,33 @@ const rt = [
|
|
|
5640
5646
|
loader: i,
|
|
5641
5647
|
disableWrapper: s = !1
|
|
5642
5648
|
}) => {
|
|
5643
|
-
const c = re(() => oo(r), [r]),
|
|
5649
|
+
const c = re(() => oo(r), [r]), g = i || c.loader, [h, u] = X([]), [m, d] = X(!1), [f, b] = X({}), [x, C] = X({}), [p, w] = X({}), M = De("(min-width:1024px)"), D = re(
|
|
5644
5650
|
() => Oe(Pe),
|
|
5645
5651
|
[]
|
|
5646
|
-
),
|
|
5652
|
+
), T = (l) => D.find(
|
|
5647
5653
|
(S) => S.id === l.id || S.componentKey === l.componentKey
|
|
5648
|
-
),
|
|
5654
|
+
), y = (l) => Array.isArray(l) ? l.map((S) => Number(S)).filter((S) => !Number.isNaN(S)) : [], F = re(() => {
|
|
5649
5655
|
const l = c.user;
|
|
5650
|
-
return
|
|
5651
|
-
}, [c]),
|
|
5656
|
+
return y(l == null ? void 0 : l.groups);
|
|
5657
|
+
}, [c]), q = (l) => {
|
|
5652
5658
|
const S = l.manualScalarFields;
|
|
5653
5659
|
if (!Array.isArray(S)) return [];
|
|
5654
|
-
const
|
|
5660
|
+
const k = S.find(
|
|
5655
5661
|
(L) => String((L == null ? void 0 : L.name) || "").trim().toLowerCase() === "groups"
|
|
5656
5662
|
);
|
|
5657
|
-
if (!
|
|
5658
|
-
const N =
|
|
5663
|
+
if (!k) return [];
|
|
5664
|
+
const N = k.value;
|
|
5659
5665
|
if (N == null) return [];
|
|
5660
5666
|
if (Array.isArray(N))
|
|
5661
5667
|
return N.map((L) => Number(String(L).trim())).filter((L) => !Number.isNaN(L));
|
|
5662
5668
|
const $ = String(N).trim();
|
|
5663
5669
|
return $ ? $.split(",").map((L) => Number(L.trim())).filter((L) => !Number.isNaN(L)) : [];
|
|
5664
5670
|
}, O = (l, S) => {
|
|
5665
|
-
const
|
|
5666
|
-
if (
|
|
5671
|
+
const k = q(l);
|
|
5672
|
+
if (k.length === 0) return !0;
|
|
5667
5673
|
if (!Array.isArray(S) || S.length === 0) return !1;
|
|
5668
5674
|
const N = new Set(S);
|
|
5669
|
-
return
|
|
5675
|
+
return k.some(($) => N.has($));
|
|
5670
5676
|
};
|
|
5671
5677
|
Q(() => {
|
|
5672
5678
|
if (e) return;
|
|
@@ -5674,19 +5680,19 @@ const rt = [
|
|
|
5674
5680
|
console.warn("[landing] sin db -> fallback json"), u(Oe(Pe));
|
|
5675
5681
|
return;
|
|
5676
5682
|
}
|
|
5677
|
-
const l = (
|
|
5678
|
-
console.warn("[landing] FALLBACK:",
|
|
5683
|
+
const l = (k, N) => {
|
|
5684
|
+
console.warn("[landing] FALLBACK:", k, N != null ? N : ""), u(Oe(Pe)), d(!1);
|
|
5679
5685
|
};
|
|
5680
5686
|
d(!0);
|
|
5681
5687
|
const S = zt(
|
|
5682
5688
|
Pt(o, "landings", a),
|
|
5683
|
-
(
|
|
5689
|
+
(k) => {
|
|
5684
5690
|
try {
|
|
5685
|
-
if (!
|
|
5691
|
+
if (!k.exists()) {
|
|
5686
5692
|
l(`doc landings/${a} no existe`);
|
|
5687
5693
|
return;
|
|
5688
5694
|
}
|
|
5689
|
-
const N =
|
|
5695
|
+
const N = k.data(), $ = Oe(N);
|
|
5690
5696
|
if (!$.length) {
|
|
5691
5697
|
l("JSON inválido o sin secciones normalizables", N);
|
|
5692
5698
|
return;
|
|
@@ -5698,13 +5704,13 @@ const rt = [
|
|
|
5698
5704
|
d(!1);
|
|
5699
5705
|
}
|
|
5700
5706
|
},
|
|
5701
|
-
(
|
|
5702
|
-
l("error onSnapshot",
|
|
5707
|
+
(k) => {
|
|
5708
|
+
l("error onSnapshot", k);
|
|
5703
5709
|
}
|
|
5704
5710
|
);
|
|
5705
5711
|
return () => S();
|
|
5706
5712
|
}, [e, a, o]), Q(() => (Xa(c), () => Ya()), [c]), Q(() => {
|
|
5707
|
-
(e ? e.slice() : h.slice()).map((
|
|
5713
|
+
(e ? e.slice() : h.slice()).map((k) => k.componentKey).filter((k) => !!k).length;
|
|
5708
5714
|
}, [e, h]);
|
|
5709
5715
|
const v = async (l) => {
|
|
5710
5716
|
if (rt.includes(l.componentKey))
|
|
@@ -5715,9 +5721,9 @@ const rt = [
|
|
|
5715
5721
|
};
|
|
5716
5722
|
const S = (l.apiUrl || "").trim();
|
|
5717
5723
|
if (!S) return;
|
|
5718
|
-
const
|
|
5724
|
+
const k = l.apiMethod || "GET", N = l.apiParams || [];
|
|
5719
5725
|
let $ = S, L, J;
|
|
5720
|
-
if (
|
|
5726
|
+
if (k === "GET") {
|
|
5721
5727
|
const se = new URL(
|
|
5722
5728
|
S,
|
|
5723
5729
|
typeof window == "undefined" ? "http://localhost" : window.location.origin
|
|
@@ -5734,7 +5740,7 @@ const rt = [
|
|
|
5734
5740
|
};
|
|
5735
5741
|
}
|
|
5736
5742
|
const te = await fetch($, {
|
|
5737
|
-
method:
|
|
5743
|
+
method: k,
|
|
5738
5744
|
headers: J,
|
|
5739
5745
|
body: L
|
|
5740
5746
|
});
|
|
@@ -5747,8 +5753,8 @@ const rt = [
|
|
|
5747
5753
|
Q(() => {
|
|
5748
5754
|
const l = I.map((S) => ({ s: S, url: (S.apiUrl || "").trim() })).filter(({ url: S }) => !!S);
|
|
5749
5755
|
if (l.length)
|
|
5750
|
-
for (const { s: S, url:
|
|
5751
|
-
const N = `${S.id}|${
|
|
5756
|
+
for (const { s: S, url: k } of l) {
|
|
5757
|
+
const N = `${S.id}|${k}`;
|
|
5752
5758
|
R.current.has(N) || (R.current.add(N), C(($) => ({ ...$, [S.id]: !0 })), w(($) => ({ ...$, [S.id]: "" })), (async () => {
|
|
5753
5759
|
try {
|
|
5754
5760
|
const $ = await v(S);
|
|
@@ -5763,62 +5769,62 @@ const rt = [
|
|
|
5763
5769
|
}
|
|
5764
5770
|
}, [I]);
|
|
5765
5771
|
const B = re(
|
|
5766
|
-
() => I.filter((l) => l.visible).filter((l) => O(l,
|
|
5767
|
-
[I,
|
|
5772
|
+
() => I.filter((l) => l.visible).filter((l) => O(l, F)).sort((l, S) => l.order - S.order),
|
|
5773
|
+
[I, F]
|
|
5768
5774
|
), A = (l) => Array.isArray(l) ? l.map((S) => {
|
|
5769
|
-
const
|
|
5775
|
+
const k = {};
|
|
5770
5776
|
for (const N of S.fields || []) {
|
|
5771
5777
|
const $ = (N.type || "string").toLowerCase();
|
|
5772
5778
|
if ($ === "number") {
|
|
5773
5779
|
const L = String(N.value || "").trim();
|
|
5774
5780
|
if (L !== "") {
|
|
5775
5781
|
const J = Number(L);
|
|
5776
|
-
Number.isNaN(J) || (
|
|
5782
|
+
Number.isNaN(J) || (k[N.name] = J);
|
|
5777
5783
|
}
|
|
5778
5784
|
} else if ($ === "boolean")
|
|
5779
|
-
|
|
5785
|
+
k[N.name] = String(N.value).toLowerCase() === "true";
|
|
5780
5786
|
else if ($ === "function") {
|
|
5781
5787
|
const L = String(N.value || "").trim();
|
|
5782
5788
|
if (L)
|
|
5783
5789
|
try {
|
|
5784
5790
|
const J = new Function(L);
|
|
5785
|
-
|
|
5791
|
+
k[N.name] = J;
|
|
5786
5792
|
} catch (J) {
|
|
5787
5793
|
console.error(`❌ Error creando función en item '${N.name}':`, J);
|
|
5788
5794
|
}
|
|
5789
5795
|
} else
|
|
5790
|
-
|
|
5796
|
+
k[N.name] = N.value;
|
|
5791
5797
|
}
|
|
5792
|
-
return
|
|
5798
|
+
return k;
|
|
5793
5799
|
}) : [], U = (l) => {
|
|
5794
5800
|
const S = {};
|
|
5795
5801
|
if (!Array.isArray(l)) return S;
|
|
5796
|
-
for (const
|
|
5797
|
-
if (!
|
|
5798
|
-
const N = (
|
|
5802
|
+
for (const k of l) {
|
|
5803
|
+
if (!k.name) continue;
|
|
5804
|
+
const N = (k.type || "string").toLowerCase();
|
|
5799
5805
|
if (N === "number") {
|
|
5800
|
-
const $ = String(
|
|
5806
|
+
const $ = String(k.value || "").trim();
|
|
5801
5807
|
if ($ !== "") {
|
|
5802
5808
|
const L = Number($);
|
|
5803
|
-
Number.isNaN(L) || (S[
|
|
5809
|
+
Number.isNaN(L) || (S[k.name] = L);
|
|
5804
5810
|
}
|
|
5805
5811
|
} else if (N === "boolean")
|
|
5806
|
-
S[
|
|
5812
|
+
S[k.name] = String(k.value).toLowerCase() === "true";
|
|
5807
5813
|
else if (N === "function") {
|
|
5808
|
-
const $ = String(
|
|
5814
|
+
const $ = String(k.value || "").trim();
|
|
5809
5815
|
if ($)
|
|
5810
5816
|
try {
|
|
5811
5817
|
const L = new Function($);
|
|
5812
|
-
S[
|
|
5818
|
+
S[k.name] = L;
|
|
5813
5819
|
} catch (L) {
|
|
5814
|
-
console.error(`❌ Error creando función en item '${
|
|
5820
|
+
console.error(`❌ Error creando función en item '${k.name}':`, L);
|
|
5815
5821
|
}
|
|
5816
5822
|
} else
|
|
5817
|
-
S[
|
|
5823
|
+
S[k.name] = k.value;
|
|
5818
5824
|
}
|
|
5819
5825
|
return S;
|
|
5820
|
-
}, W = (l, S,
|
|
5821
|
-
const $ =
|
|
5826
|
+
}, W = (l, S, k, N) => {
|
|
5827
|
+
const $ = k ? { ...k } : {}, L = (N || "items").trim() || "items";
|
|
5822
5828
|
if (S)
|
|
5823
5829
|
return $[L] = S.arr || [], $;
|
|
5824
5830
|
const J = l;
|
|
@@ -5831,13 +5837,13 @@ const rt = [
|
|
|
5831
5837
|
return $[L] = [], $;
|
|
5832
5838
|
}, j = (l) => {
|
|
5833
5839
|
var L;
|
|
5834
|
-
const S = !!((L = l.apiUrl) != null && L.trim()),
|
|
5840
|
+
const S = !!((L = l.apiUrl) != null && L.trim()), k = S ? f[l.id] : void 0;
|
|
5835
5841
|
let N = l.props ? { ...l.props } : {};
|
|
5836
5842
|
const $ = U(l.manualScalarFields);
|
|
5837
5843
|
if (rt.includes(l.componentKey))
|
|
5838
|
-
return { items:
|
|
5844
|
+
return { items: k, ...N, ...$ };
|
|
5839
5845
|
if (N = { ...N, ...$ }, S)
|
|
5840
|
-
N = W(
|
|
5846
|
+
N = W(k, null, N);
|
|
5841
5847
|
else if (l.dataMode === "manual") {
|
|
5842
5848
|
const J = A(l.manualItems);
|
|
5843
5849
|
if (N = W(
|
|
@@ -5858,8 +5864,8 @@ const rt = [
|
|
|
5858
5864
|
} catch (N) {
|
|
5859
5865
|
console.error("❌ Error armando scalars vacíos:", l, N);
|
|
5860
5866
|
}
|
|
5861
|
-
const
|
|
5862
|
-
if (typeof S[
|
|
5867
|
+
const k = (l.variableName || "items").trim() || "items";
|
|
5868
|
+
if (typeof S[k] == "undefined" && (S[k] = []), l.variableName2) {
|
|
5863
5869
|
const N = (l.variableName2 || "items2").trim() || "items2";
|
|
5864
5870
|
typeof S[N] == "undefined" && (S[N] = []);
|
|
5865
5871
|
}
|
|
@@ -5869,24 +5875,24 @@ const rt = [
|
|
|
5869
5875
|
return j(l);
|
|
5870
5876
|
} catch (S) {
|
|
5871
5877
|
console.error("🔥 ERROR EN buildCompProps:", l, S);
|
|
5872
|
-
const
|
|
5873
|
-
if (
|
|
5878
|
+
const k = T(l);
|
|
5879
|
+
if (k && k !== l)
|
|
5874
5880
|
try {
|
|
5875
5881
|
return console.warn(
|
|
5876
5882
|
`[landing] usando fallback local para sección ${l.title} (${l.componentKey})`
|
|
5877
|
-
), j(
|
|
5883
|
+
), j(k);
|
|
5878
5884
|
} catch (N) {
|
|
5879
|
-
console.error("🔥 ERROR EN fallback buildCompProps:",
|
|
5885
|
+
console.error("🔥 ERROR EN fallback buildCompProps:", k, N);
|
|
5880
5886
|
}
|
|
5881
5887
|
return Z(l);
|
|
5882
5888
|
}
|
|
5883
|
-
}, E = (l, S,
|
|
5889
|
+
}, E = (l, S, k) => /* @__PURE__ */ t("div", { className: `mx-4 p-4 rounded ${{
|
|
5884
5890
|
loading: "bg-blue-100 text-blue-800",
|
|
5885
5891
|
error: "bg-red-100 text-red-800",
|
|
5886
5892
|
component: "bg-yellow-100 text-yellow-800"
|
|
5887
|
-
}[S]}`, children:
|
|
5893
|
+
}[S]}`, children: k }, l), z = (l) => {
|
|
5888
5894
|
var He;
|
|
5889
|
-
const S = l.componentKey,
|
|
5895
|
+
const S = l.componentKey, k = no[S], $ = (/* @__PURE__ */ new Set([
|
|
5890
5896
|
"OraculoSeccionBanners",
|
|
5891
5897
|
"OraculoSeccionBonoBienvenida",
|
|
5892
5898
|
"OraculoSeccionCasinoEnVivo",
|
|
@@ -5908,13 +5914,13 @@ const rt = [
|
|
|
5908
5914
|
marginBottom: -J
|
|
5909
5915
|
} : {}
|
|
5910
5916
|
};
|
|
5911
|
-
if (!
|
|
5917
|
+
if (!k)
|
|
5912
5918
|
return console.warn(`No hay componente registrado para "${S}"`), E(
|
|
5913
5919
|
l.id,
|
|
5914
5920
|
"component",
|
|
5915
5921
|
`Componente "${S}" no encontrado`
|
|
5916
5922
|
);
|
|
5917
|
-
const oe = !!((He = l.apiUrl) != null && He.trim()), We = oe ?
|
|
5923
|
+
const oe = !!((He = l.apiUrl) != null && He.trim()), We = oe ? f[l.id] : void 0, Ot = oe ? !!x[l.id] : !1, Ge = oe ? p[l.id] : "";
|
|
5918
5924
|
if (oe) {
|
|
5919
5925
|
if (Ot && !We)
|
|
5920
5926
|
return E(
|
|
@@ -5923,11 +5929,11 @@ const rt = [
|
|
|
5923
5929
|
`Cargando datos desde ${l.apiUrl}...`
|
|
5924
5930
|
);
|
|
5925
5931
|
if (Ge && !We) {
|
|
5926
|
-
const we =
|
|
5932
|
+
const we = T(l);
|
|
5927
5933
|
if (we && we.dataMode === "manual")
|
|
5928
5934
|
try {
|
|
5929
5935
|
const Le = G(we);
|
|
5930
|
-
return /* @__PURE__ */ t("div", { style: se, className: "oraculo-section-wrapper", children: /* @__PURE__ */ t(
|
|
5936
|
+
return /* @__PURE__ */ t("div", { style: se, className: "oraculo-section-wrapper", children: /* @__PURE__ */ t(k, { ...Le }) }, l.id);
|
|
5931
5937
|
} catch (Le) {
|
|
5932
5938
|
console.error(
|
|
5933
5939
|
"🔥 ERROR renderizando fallback manual de sección:",
|
|
@@ -5951,12 +5957,12 @@ const rt = [
|
|
|
5951
5957
|
{
|
|
5952
5958
|
style: se,
|
|
5953
5959
|
className: "oraculo-section-wrapper",
|
|
5954
|
-
children: /* @__PURE__ */ t(
|
|
5960
|
+
children: /* @__PURE__ */ t(k, { ...Et })
|
|
5955
5961
|
},
|
|
5956
5962
|
l.id
|
|
5957
5963
|
) });
|
|
5958
5964
|
};
|
|
5959
|
-
return m && !e ?
|
|
5965
|
+
return m && !e ? g ? /* @__PURE__ */ t(g, {}) : /* @__PURE__ */ t("div", { children: "Cargando..." }) : !m && !e && h.length === 0 ? /* @__PURE__ */ t("div", { className: "text-xs text-gray-500", children: "Sin secciones (Firestore)" }) : /* @__PURE__ */ t(It, { children: /* @__PURE__ */ t(bt, { docId: a, moduleId: n, children: /* @__PURE__ */ t(
|
|
5960
5966
|
Ct,
|
|
5961
5967
|
{
|
|
5962
5968
|
className: "oli-font",
|
|
@@ -5972,7 +5978,7 @@ const rt = [
|
|
|
5972
5978
|
},
|
|
5973
5979
|
children: /* @__PURE__ */ t(Ee, { direction: "column", spacing: M ? 8 : 5, useFlexGap: !0, children: B.map((l) => {
|
|
5974
5980
|
try {
|
|
5975
|
-
return
|
|
5981
|
+
return z(l);
|
|
5976
5982
|
} catch (S) {
|
|
5977
5983
|
return console.error("🔥 ERROR EN SECTION:", l, S), null;
|
|
5978
5984
|
}
|