oraculo-ui 0.1.97 → 0.1.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +4 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.es.js +327 -318
- package/dist/index.es.js.map +1 -1
- package/dist/templates/OraculoSectionHost.d.ts +5 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsx as e, jsxs as h, Fragment as ne } from "react/jsx-runtime";
|
|
2
|
-
import { Link as
|
|
3
|
-
import ye, { useState as G, useEffect as K, useRef as
|
|
4
|
-
import
|
|
2
|
+
import { Link as je, Box as Z, IconButton as Le, Typography as Ge, Stack as pe, useMediaQuery as rt, Container as lt } from "@mui/material";
|
|
3
|
+
import ye, { useState as G, useEffect as K, useRef as W, forwardRef as st, useImperativeHandle as ct, useCallback as ge, useContext as dt, createContext as ut, useMemo as ue, useLayoutEffect as mt } from "react";
|
|
4
|
+
import D from "@mui/material/Skeleton";
|
|
5
5
|
import { Splide as pt, SplideSlide as gt } from "@splidejs/react-splide";
|
|
6
6
|
import L from "@mui/material/Box";
|
|
7
7
|
import te from "@mui/material/Typography";
|
|
8
8
|
import j from "@mui/material/Stack";
|
|
9
9
|
import { useCaptureInteraction as J } from "@olimpo/capture-client";
|
|
10
10
|
import { ChevronLeftRounded as xe, ChevronRightRounded as we } from "@mui/icons-material";
|
|
11
|
-
import
|
|
12
|
-
import
|
|
11
|
+
import He from "@mui/icons-material/ChevronLeftRounded";
|
|
12
|
+
import Ke from "@mui/icons-material/ChevronRightRounded";
|
|
13
13
|
import ft from "@mui/material/useMediaQuery";
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
16
|
-
import xt from "
|
|
14
|
+
import { useTheme as ht, createTheme as bt, ThemeProvider as vt } from "@mui/material/styles";
|
|
15
|
+
import _t from "@mui/material/CssBaseline";
|
|
16
|
+
import { onSnapshot as yt, doc as xt } from "firebase/firestore";
|
|
17
17
|
function H({
|
|
18
18
|
children: t,
|
|
19
19
|
onClick: a,
|
|
@@ -30,9 +30,9 @@ function H({
|
|
|
30
30
|
ariaLabel: C,
|
|
31
31
|
leftIcon: S,
|
|
32
32
|
rightIcon: O,
|
|
33
|
-
iconOnly:
|
|
33
|
+
iconOnly: M
|
|
34
34
|
}) {
|
|
35
|
-
const x = !!t && t !== !0,
|
|
35
|
+
const x = !!t && t !== !0, N = (!!S ? 1 : 0) + (!!O ? 1 : 0) == 1, s = M != null ? M : N && !x, y = [
|
|
36
36
|
"orc-btn",
|
|
37
37
|
g === "secondary" ? "orc-btn--secondary" : g === "tertiary" ? "orc-btn--tertiary" : "orc-btn--primary",
|
|
38
38
|
v ? `orc-btn--${v}` : "",
|
|
@@ -46,7 +46,7 @@ function H({
|
|
|
46
46
|
O && /* @__PURE__ */ e("span", { className: "orc-btn__icon", children: O })
|
|
47
47
|
] }), B = m ? !0 : void 0;
|
|
48
48
|
return n ? /* @__PURE__ */ e(
|
|
49
|
-
|
|
49
|
+
je,
|
|
50
50
|
{
|
|
51
51
|
href: n,
|
|
52
52
|
target: r,
|
|
@@ -93,7 +93,7 @@ function re({
|
|
|
93
93
|
/* @__PURE__ */ e("h2", { className: "orc-section-title__title", children: t })
|
|
94
94
|
] });
|
|
95
95
|
}
|
|
96
|
-
const
|
|
96
|
+
const Ze = ({
|
|
97
97
|
total: t,
|
|
98
98
|
active: a,
|
|
99
99
|
onSelect: n,
|
|
@@ -147,7 +147,7 @@ function ae({
|
|
|
147
147
|
}
|
|
148
148
|
);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function Ae({ src: t, alt: a }) {
|
|
151
151
|
return /* @__PURE__ */ e(
|
|
152
152
|
Z,
|
|
153
153
|
{
|
|
@@ -232,7 +232,7 @@ function Ot({ text: t, color: a = "#ff3b3b", textColor: n = "#fff" }) {
|
|
|
232
232
|
fontSize: "12px",
|
|
233
233
|
lineHeight: "16px",
|
|
234
234
|
fontWeight: 700,
|
|
235
|
-
width: "
|
|
235
|
+
width: "42px",
|
|
236
236
|
height: "16px",
|
|
237
237
|
textAlign: "center"
|
|
238
238
|
},
|
|
@@ -266,14 +266,14 @@ function Et({ title: t, subtitle: a, live: n = !1, time: r = "" }) {
|
|
|
266
266
|
const kt = "oraculo__OraculoEventLabel-module__label___c64Xw", $t = {
|
|
267
267
|
label: kt
|
|
268
268
|
};
|
|
269
|
-
function
|
|
269
|
+
function Je({ text: t }) {
|
|
270
270
|
return /* @__PURE__ */ e("span", { className: $t.label, children: t });
|
|
271
271
|
}
|
|
272
|
-
const
|
|
273
|
-
container:
|
|
272
|
+
const Nt = "oraculo__OraculoEventLeague-module__container___rdk4F", Mt = {
|
|
273
|
+
container: Nt
|
|
274
274
|
};
|
|
275
|
-
function
|
|
276
|
-
return /* @__PURE__ */ e("div", { className:
|
|
275
|
+
function Xe({ title: t }) {
|
|
276
|
+
return /* @__PURE__ */ e("div", { className: Mt.container, children: t.toUpperCase() });
|
|
277
277
|
}
|
|
278
278
|
const Bt = "oraculo__OraculoEventScore-module__scoreWrapper___fWwEr", Lt = "oraculo__OraculoEventScore-module__name___r4uL6", At = "oraculo__OraculoEventScore-module__score___Xl03M", Ft = "oraculo__OraculoEventScore-module__normal___cCNFz", Pt = "oraculo__OraculoEventScore-module__small___fVt8E", ce = {
|
|
279
279
|
scoreWrapper: Bt,
|
|
@@ -282,7 +282,7 @@ const Bt = "oraculo__OraculoEventScore-module__scoreWrapper___fWwEr", Lt = "orac
|
|
|
282
282
|
normal: Ft,
|
|
283
283
|
small: Pt
|
|
284
284
|
};
|
|
285
|
-
function
|
|
285
|
+
function Ye({ text: t, name: a, size: n = "normal" }) {
|
|
286
286
|
return /* @__PURE__ */ h(
|
|
287
287
|
"div",
|
|
288
288
|
{
|
|
@@ -294,15 +294,15 @@ function Xe({ text: t, name: a, size: n = "normal" }) {
|
|
|
294
294
|
}
|
|
295
295
|
);
|
|
296
296
|
}
|
|
297
|
-
const zt = "oraculo__OraculoEventTeamInfo-module__team___UfpUs", Rt = "oraculo__OraculoEventTeamInfo-module__regular___ag826", qt = "oraculo__OraculoEventTeamInfo-module__compact___RCNOs", Ut = "oraculo__OraculoEventTeamInfo-module__logo___fKCl3", Vt = "oraculo__OraculoEventTeamInfo-module__name___4ikm-",
|
|
297
|
+
const zt = "oraculo__OraculoEventTeamInfo-module__team___UfpUs", Rt = "oraculo__OraculoEventTeamInfo-module__regular___ag826", qt = "oraculo__OraculoEventTeamInfo-module__compact___RCNOs", Ut = "oraculo__OraculoEventTeamInfo-module__logo___fKCl3", Vt = "oraculo__OraculoEventTeamInfo-module__name___4ikm-", Dt = "oraculo__OraculoEventTeamInfo-module__skeleton___Yfaxh", de = {
|
|
298
298
|
team: zt,
|
|
299
299
|
regular: Rt,
|
|
300
300
|
compact: qt,
|
|
301
301
|
logo: Ut,
|
|
302
302
|
name: Vt,
|
|
303
|
-
skeleton:
|
|
304
|
-
},
|
|
305
|
-
polo:
|
|
303
|
+
skeleton: Dt
|
|
304
|
+
}, Wt = "oraculo__OraculoTeamPolo-module__polo___BisRg", jt = "oraculo__OraculoTeamPolo-module__svgWrapper___HRKNX", Gt = "oraculo__OraculoTeamPolo-module__shadow___-3DXb", Ht = "oraculo__OraculoTeamPolo-module__highlight___1etm7", me = {
|
|
305
|
+
polo: Wt,
|
|
306
306
|
svgWrapper: jt,
|
|
307
307
|
shadow: Gt,
|
|
308
308
|
highlight: Ht
|
|
@@ -374,7 +374,7 @@ function be({ name: t, jersey: a, size: n = "regular" }) {
|
|
|
374
374
|
jersey: a,
|
|
375
375
|
className: `${de.logo}`
|
|
376
376
|
}
|
|
377
|
-
) : /* @__PURE__ */ e(
|
|
377
|
+
) : /* @__PURE__ */ e(D, { variant: "circular", className: `${de.logo} ${de.skeleton}` }),
|
|
378
378
|
/* @__PURE__ */ e("span", { className: de.name, children: t })
|
|
379
379
|
] });
|
|
380
380
|
}
|
|
@@ -383,7 +383,7 @@ function Zt(t, a, {
|
|
|
383
383
|
threshold: r = 60,
|
|
384
384
|
cooldownMs: c = 500
|
|
385
385
|
} = {}) {
|
|
386
|
-
const i =
|
|
386
|
+
const i = W(0), m = W(0);
|
|
387
387
|
K(() => {
|
|
388
388
|
if (!n) return;
|
|
389
389
|
const g = t.current;
|
|
@@ -417,7 +417,7 @@ const Jt = pt, Xt = gt, le = st(
|
|
|
417
417
|
useIndexAsKey: v = !1,
|
|
418
418
|
enableHorizontalWheel: p = !0
|
|
419
419
|
}, d) => {
|
|
420
|
-
const u =
|
|
420
|
+
const u = W(null), C = W(null), S = W(t.length);
|
|
421
421
|
Zt(C, u, {
|
|
422
422
|
enabled: p
|
|
423
423
|
}), ct(d, () => ({
|
|
@@ -444,12 +444,12 @@ const Jt = pt, Xt = gt, le = st(
|
|
|
444
444
|
F = o;
|
|
445
445
|
}
|
|
446
446
|
return { visibleStart: q, visibleEnd: F };
|
|
447
|
-
},
|
|
447
|
+
}, M = (s) => {
|
|
448
448
|
const y = s.root.querySelector(".splide__track"), k = s.root.querySelector(".splide__list");
|
|
449
449
|
return !y || !k ? !1 : k.scrollWidth > y.clientWidth + 1;
|
|
450
450
|
}, x = ge((s) => {
|
|
451
451
|
const k = s.Components.Slides.getLength();
|
|
452
|
-
if (!
|
|
452
|
+
if (!M(s)) {
|
|
453
453
|
g == null || g({
|
|
454
454
|
index: 0,
|
|
455
455
|
isStart: !0,
|
|
@@ -488,7 +488,7 @@ const Jt = pt, Xt = gt, le = st(
|
|
|
488
488
|
x(s);
|
|
489
489
|
},
|
|
490
490
|
[x]
|
|
491
|
-
),
|
|
491
|
+
), N = {
|
|
492
492
|
type: "slide",
|
|
493
493
|
trimSpace: !1,
|
|
494
494
|
drag: !0,
|
|
@@ -507,7 +507,7 @@ const Jt = pt, Xt = gt, le = st(
|
|
|
507
507
|
Jt,
|
|
508
508
|
{
|
|
509
509
|
ref: u,
|
|
510
|
-
options:
|
|
510
|
+
options: N,
|
|
511
511
|
onMove: x,
|
|
512
512
|
onMounted: I,
|
|
513
513
|
onResize: $,
|
|
@@ -616,11 +616,11 @@ function Yt({
|
|
|
616
616
|
}
|
|
617
617
|
}) {
|
|
618
618
|
var u, C, S, O;
|
|
619
|
-
const i = (
|
|
620
|
-
var $, I,
|
|
619
|
+
const i = (M, x) => {
|
|
620
|
+
var $, I, N, s;
|
|
621
621
|
return {
|
|
622
|
-
xs: (I = ($ = c.xs) == null ? void 0 : $[
|
|
623
|
-
md: (s = (
|
|
622
|
+
xs: (I = ($ = c.xs) == null ? void 0 : $[M]) != null ? I : x,
|
|
623
|
+
md: (s = (N = c.md) == null ? void 0 : N[M]) != null ? s : x
|
|
624
624
|
};
|
|
625
625
|
}, m = i("w", 186), g = i("h", 264), v = i("r", 22.6), p = i("font", 64), d = {
|
|
626
626
|
xs: Math.round(((C = (u = c.xs) == null ? void 0 : u.font) != null ? C : 64) * 0.28),
|
|
@@ -663,7 +663,7 @@ function Yt({
|
|
|
663
663
|
overflow: "hidden"
|
|
664
664
|
},
|
|
665
665
|
children: r ? /* @__PURE__ */ e(
|
|
666
|
-
|
|
666
|
+
D,
|
|
667
667
|
{
|
|
668
668
|
variant: "rectangular",
|
|
669
669
|
width: "100%",
|
|
@@ -796,7 +796,7 @@ const Qt = ({
|
|
|
796
796
|
}
|
|
797
797
|
);
|
|
798
798
|
}, Oe = 12, Te = ({ r: t = 16 }) => /* @__PURE__ */ e(L, { sx: { width: "100%", height: "100%", borderRadius: t, overflow: "hidden" }, children: /* @__PURE__ */ e(
|
|
799
|
-
|
|
799
|
+
D,
|
|
800
800
|
{
|
|
801
801
|
variant: "rectangular",
|
|
802
802
|
width: "100%",
|
|
@@ -810,7 +810,7 @@ const Qt = ({
|
|
|
810
810
|
}
|
|
811
811
|
}
|
|
812
812
|
}
|
|
813
|
-
) }),
|
|
813
|
+
) }), Qe = ({
|
|
814
814
|
items: t,
|
|
815
815
|
layout: a = "grid",
|
|
816
816
|
onClick: n,
|
|
@@ -930,7 +930,7 @@ const Qt = ({
|
|
|
930
930
|
})
|
|
931
931
|
}
|
|
932
932
|
);
|
|
933
|
-
},
|
|
933
|
+
}, Fe = ({
|
|
934
934
|
title: t,
|
|
935
935
|
amount: a,
|
|
936
936
|
subtitle: n,
|
|
@@ -1136,7 +1136,7 @@ const Qt = ({
|
|
|
1136
1136
|
apuestaText: sa,
|
|
1137
1137
|
cuotaTotal: ca
|
|
1138
1138
|
};
|
|
1139
|
-
function
|
|
1139
|
+
function Be(t) {
|
|
1140
1140
|
const a = Array.isArray(t) ? t : [t];
|
|
1141
1141
|
sessionStorage.setItem("landingOutcomes", JSON.stringify(a)), window.location.href = "/deportes#in-play";
|
|
1142
1142
|
}
|
|
@@ -1149,7 +1149,7 @@ function ua() {
|
|
|
1149
1149
|
function ma() {
|
|
1150
1150
|
window.location.href = "/deportes#specials";
|
|
1151
1151
|
}
|
|
1152
|
-
async function
|
|
1152
|
+
async function et(t) {
|
|
1153
1153
|
return await (await fetch("https://api.mktolimpo.com/api/jerseys/search", {
|
|
1154
1154
|
method: "POST",
|
|
1155
1155
|
headers: {
|
|
@@ -1160,18 +1160,18 @@ async function Qe(t) {
|
|
|
1160
1160
|
})
|
|
1161
1161
|
})).json();
|
|
1162
1162
|
}
|
|
1163
|
-
function
|
|
1163
|
+
function tt(t, a = 250) {
|
|
1164
1164
|
const [n, r] = G(t);
|
|
1165
1165
|
return K(() => {
|
|
1166
1166
|
const c = setTimeout(() => r(t), a);
|
|
1167
1167
|
return () => clearTimeout(c);
|
|
1168
1168
|
}, [t, a]), n;
|
|
1169
1169
|
}
|
|
1170
|
-
const
|
|
1170
|
+
const at = ut(void 0), $e = ({ children: t, docId: a }) => {
|
|
1171
1171
|
const n = ye.useMemo(() => ({ docId: a }), [a]);
|
|
1172
|
-
return /* @__PURE__ */ e(
|
|
1172
|
+
return /* @__PURE__ */ e(at.Provider, { value: n, children: t });
|
|
1173
1173
|
}, X = () => {
|
|
1174
|
-
const t = dt(
|
|
1174
|
+
const t = dt(at);
|
|
1175
1175
|
if (!t)
|
|
1176
1176
|
throw new Error("useDocId debe usarse dentro de DocIdProvider");
|
|
1177
1177
|
return t.docId;
|
|
@@ -1188,25 +1188,25 @@ function pa({ coupon: t }) {
|
|
|
1188
1188
|
);
|
|
1189
1189
|
return u.forEach((O) => {
|
|
1190
1190
|
var I;
|
|
1191
|
-
const
|
|
1192
|
-
|
|
1191
|
+
const M = (I = O.betoffers) != null ? I : [], x = O.homeName, $ = O.awayName;
|
|
1192
|
+
M.forEach((N) => {
|
|
1193
1193
|
var B, z, q, w, E, F, f;
|
|
1194
|
-
if (!((B =
|
|
1195
|
-
const s =
|
|
1194
|
+
if (!((B = N == null ? void 0 : N.outcomes) != null && B.length)) return;
|
|
1195
|
+
const s = N.outcomes[0];
|
|
1196
1196
|
if (!s) return;
|
|
1197
1197
|
let y = "";
|
|
1198
1198
|
const k = s != null && s.line ? s.line / 1e3 : "";
|
|
1199
1199
|
["Más de", "Mas de", "Over"].includes(s.label) ? (y = `Más de ${k}`, s.participant && (y = `${s.participant} - ${y}`)) : ["Menos de", "Menos", "Under"].includes(s.label) ? (y = `Menos de ${k}`, s.participant && (y = `${s.participant} - ${y}`)) : ["Sí", "No"].includes(s.label) ? (y = s.label, s.participant && (y = `${s.participant} - ${y}`)) : ["1X", "12", "X2"].includes(s.label) ? (s.label === "1X" && (y = `${x} o Empate`), s.label === "12" && (y = `${x} o ${$}`), s.label === "X2" && (y = `${$} o Empate`)) : (y = (q = (z = s.participant) != null ? z : s.label) != null ? q : "", k !== "" && y === s.label && (y = `${s.label} ${k}`)), d.push({
|
|
1200
1200
|
id: s.id,
|
|
1201
1201
|
value: y,
|
|
1202
|
-
label: (E = (w =
|
|
1202
|
+
label: (E = (w = N.criterion) == null ? void 0 : w.label) != null ? E : "",
|
|
1203
1203
|
odds: (F = s.odds) != null ? F : 0,
|
|
1204
1204
|
position: (f = s.position) != null ? f : 0,
|
|
1205
1205
|
eventId: O.id
|
|
1206
1206
|
});
|
|
1207
1207
|
});
|
|
1208
1208
|
}), {
|
|
1209
|
-
outcomes: d.sort((O,
|
|
1209
|
+
outcomes: d.sort((O, M) => O.position - M.position),
|
|
1210
1210
|
total: (((S = p == null ? void 0 : p.combinadoTotal) != null ? S : 0) / 1e3).toFixed(2),
|
|
1211
1211
|
events: u
|
|
1212
1212
|
};
|
|
@@ -1214,9 +1214,9 @@ function pa({ coupon: t }) {
|
|
|
1214
1214
|
const c = (p, d) => {
|
|
1215
1215
|
const u = Array.isArray(p) ? p : [p], C = Array.from(
|
|
1216
1216
|
new Set(
|
|
1217
|
-
i.outcomes.map((
|
|
1217
|
+
i.outcomes.map((M) => {
|
|
1218
1218
|
var $;
|
|
1219
|
-
const x = g.get(Number(
|
|
1219
|
+
const x = g.get(Number(M.eventId));
|
|
1220
1220
|
return ($ = x == null ? void 0 : x.name) != null ? $ : "";
|
|
1221
1221
|
})
|
|
1222
1222
|
)
|
|
@@ -1231,7 +1231,7 @@ function pa({ coupon: t }) {
|
|
|
1231
1231
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1232
1232
|
},
|
|
1233
1233
|
tags: { section: "OraculoEventCombinadasCard", outcomes: O }
|
|
1234
|
-
}),
|
|
1234
|
+
}), Be(p);
|
|
1235
1235
|
};
|
|
1236
1236
|
if (!((v = t == null ? void 0 : t.events) != null && v.length)) return null;
|
|
1237
1237
|
const i = r(t), m = i.outcomes.reduce((p, d) => (p[d.eventId] || (p[d.eventId] = []), p[d.eventId].push(d), p), {}), g = new Map(
|
|
@@ -1334,9 +1334,9 @@ function ga({
|
|
|
1334
1334
|
ariaLabel: C,
|
|
1335
1335
|
leftIcon: S,
|
|
1336
1336
|
rightIcon: O,
|
|
1337
|
-
iconOnly:
|
|
1337
|
+
iconOnly: M
|
|
1338
1338
|
}) {
|
|
1339
|
-
const x = !!t && t !== !0,
|
|
1339
|
+
const x = !!t && t !== !0, N = (!!S ? 1 : 0) + (!!O ? 1 : 0) == 1, s = M != null ? M : N && !x, y = [
|
|
1340
1340
|
ee["orc-btn"],
|
|
1341
1341
|
// base
|
|
1342
1342
|
ee[`orc-btn--${g}`],
|
|
@@ -1353,7 +1353,7 @@ function ga({
|
|
|
1353
1353
|
O && /* @__PURE__ */ e("span", { className: ee["orc-btn__icon"], children: O })
|
|
1354
1354
|
] }), B = m ? !0 : void 0;
|
|
1355
1355
|
return n ? /* @__PURE__ */ e(
|
|
1356
|
-
|
|
1356
|
+
je,
|
|
1357
1357
|
{
|
|
1358
1358
|
href: n,
|
|
1359
1359
|
target: r,
|
|
@@ -1377,15 +1377,16 @@ function ga({
|
|
|
1377
1377
|
}
|
|
1378
1378
|
);
|
|
1379
1379
|
}
|
|
1380
|
-
const fa = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT",
|
|
1381
|
-
cardWrapper: fa
|
|
1382
|
-
|
|
1380
|
+
const fa = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", ha = "oraculo__OraculoEventEnVivoCard-module__customButtonDisabled___jwioF", Ne = {
|
|
1381
|
+
cardWrapper: fa,
|
|
1382
|
+
customButtonDisabled: ha
|
|
1383
|
+
}, Pe = {
|
|
1383
1384
|
base: "FFFFFF",
|
|
1384
1385
|
sleeve: "FFFFFF",
|
|
1385
1386
|
number: "000000",
|
|
1386
1387
|
real: !1,
|
|
1387
1388
|
type: "short_sleeves"
|
|
1388
|
-
},
|
|
1389
|
+
}, ze = {
|
|
1389
1390
|
base: "000000",
|
|
1390
1391
|
sleeve: "000000",
|
|
1391
1392
|
number: "FFFFFF",
|
|
@@ -1396,16 +1397,16 @@ const fa = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", at = {
|
|
|
1396
1397
|
if (t === void 0)
|
|
1397
1398
|
return null;
|
|
1398
1399
|
if (t === null)
|
|
1399
|
-
return a === "home" ?
|
|
1400
|
+
return a === "home" ? Pe : ze;
|
|
1400
1401
|
const r = (i = (c = t == null ? void 0 : t.jerseys) == null ? void 0 : c[a]) == null ? void 0 : i[n];
|
|
1401
|
-
return r || (a === "home" ?
|
|
1402
|
+
return r || (a === "home" ? Pe : ze);
|
|
1402
1403
|
};
|
|
1403
|
-
function
|
|
1404
|
-
var g, v, p, d, u, C, S, O,
|
|
1404
|
+
function ba({ event: t, liveData: a, betOffers: n, jersey: r }) {
|
|
1405
|
+
var g, v, p, d, u, C, S, O, M, x, $;
|
|
1405
1406
|
const c = n == null ? void 0 : n.find(
|
|
1406
1407
|
(I) => {
|
|
1407
|
-
var
|
|
1408
|
-
return ((
|
|
1408
|
+
var N;
|
|
1409
|
+
return ((N = I.betOfferType) == null ? void 0 : N.id) === 2;
|
|
1409
1410
|
}
|
|
1410
1411
|
), i = {
|
|
1411
1412
|
englishLabel: "",
|
|
@@ -1421,7 +1422,7 @@ function ha({ event: t, liveData: a, betOffers: n, jersey: r }) {
|
|
|
1421
1422
|
{ ...i, id: -2, label: "X", odds: void 0 },
|
|
1422
1423
|
{ ...i, id: -3, label: "2", odds: void 0 }
|
|
1423
1424
|
];
|
|
1424
|
-
return /* @__PURE__ */ e("div", { className:
|
|
1425
|
+
return /* @__PURE__ */ e("div", { className: Ne.cardWrapper, children: /* @__PURE__ */ h(j, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1425
1426
|
/* @__PURE__ */ h(j, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
1426
1427
|
/* @__PURE__ */ e(
|
|
1427
1428
|
Et,
|
|
@@ -1434,40 +1435,40 @@ function ha({ event: t, liveData: a, betOffers: n, jersey: r }) {
|
|
|
1434
1435
|
),
|
|
1435
1436
|
/* @__PURE__ */ e("div", { style: { padding: "0 4px" }, children: /* @__PURE__ */ h(ae, { spacing: 1.5, columns: "1fr auto 1fr", children: [
|
|
1436
1437
|
/* @__PURE__ */ e(be, { name: t == null ? void 0 : t.homeName, jersey: ve(r, "home") }),
|
|
1437
|
-
/* @__PURE__ */ e(
|
|
1438
|
+
/* @__PURE__ */ e(Ye, { text: ((S = (C = a == null ? void 0 : a.score) == null ? void 0 : C.home) != null ? S : 0) + ":" + ((M = (O = a == null ? void 0 : a.score) == null ? void 0 : O.away) != null ? M : 0), name: "En vivo" }),
|
|
1438
1439
|
/* @__PURE__ */ e(be, { name: t == null ? void 0 : t.awayName, jersey: ve(r, "away") })
|
|
1439
1440
|
] }) })
|
|
1440
1441
|
] }),
|
|
1441
1442
|
/* @__PURE__ */ h(j, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1442
|
-
/* @__PURE__ */ e(ae, { spacing: 1, children: ((x = c == null ? void 0 : c.outcomes) != null ? x : m).map((I,
|
|
1443
|
-
/* @__PURE__ */ e(ae, { spacing: 2, children: (($ = c == null ? void 0 : c.outcomes) != null ? $ : m).map((I,
|
|
1444
|
-
|
|
1445
|
-
}, children: I.odds === void 0 ? "" : (I.odds / 1e3).toFixed(2) },
|
|
1443
|
+
/* @__PURE__ */ e(ae, { spacing: 1, children: ((x = c == null ? void 0 : c.outcomes) != null ? x : m).map((I, N) => /* @__PURE__ */ e(Je, { text: I.label.toUpperCase() }, N)) }),
|
|
1444
|
+
/* @__PURE__ */ e(ae, { spacing: 2, children: (($ = c == null ? void 0 : c.outcomes) != null ? $ : m).map((I, N) => /* @__PURE__ */ e(ga, { variant: "primary", disabled: I.odds == null || (c == null ? void 0 : c.cashOutStatus) == "SUSPENDED", onClick: () => {
|
|
1445
|
+
Be(I.id);
|
|
1446
|
+
}, className: Ne.customButtonDisabled, children: I.odds === void 0 ? "" : (I.odds / 1e3).toFixed(2) }, N)) })
|
|
1446
1447
|
] })
|
|
1447
1448
|
] }) });
|
|
1448
1449
|
}
|
|
1449
|
-
const
|
|
1450
|
-
date:
|
|
1450
|
+
const va = "oraculo__OraculoEventDate-module__date___xhIlh", _a = {
|
|
1451
|
+
date: va
|
|
1451
1452
|
};
|
|
1452
|
-
function
|
|
1453
|
-
return /* @__PURE__ */ e("div", { className: `oli-font ${
|
|
1453
|
+
function ya({ text: t }) {
|
|
1454
|
+
return /* @__PURE__ */ e("div", { className: `oli-font ${_a.date}`, children: t });
|
|
1454
1455
|
}
|
|
1455
|
-
const
|
|
1456
|
-
cardContainer:
|
|
1457
|
-
cardBackground:
|
|
1458
|
-
jugadas:
|
|
1459
|
-
equipos:
|
|
1456
|
+
const xa = "oraculo__OraculoEventSemanaCard-module__cardContainer___4JuDe", wa = "oraculo__OraculoEventSemanaCard-module__cardBackground___vfalD", Sa = "oraculo__OraculoEventSemanaCard-module__jugadas___W8b7H", Ca = "oraculo__OraculoEventSemanaCard-module__equipos___G5hLn", se = {
|
|
1457
|
+
cardContainer: xa,
|
|
1458
|
+
cardBackground: wa,
|
|
1459
|
+
jugadas: Sa,
|
|
1460
|
+
equipos: Ca
|
|
1460
1461
|
};
|
|
1461
|
-
function
|
|
1462
|
+
function Ia({ event: t, jersey: a }) {
|
|
1462
1463
|
var m, g, v, p, d, u, C;
|
|
1463
1464
|
const n = J(), r = X();
|
|
1464
1465
|
function c(S) {
|
|
1465
|
-
const O = new Date(S),
|
|
1466
|
+
const O = new Date(S), M = O.toLocaleDateString("es-ES", { weekday: "short" }).toUpperCase(), x = O.getDate().toString().padStart(2, "0"), $ = (O.getMonth() + 1).toString().padStart(2, "0");
|
|
1466
1467
|
let I = O.toLocaleTimeString("es-PE", { hour: "numeric", minute: "2-digit", hour12: !0 }).toUpperCase();
|
|
1467
|
-
return I = I.replace(/\./g, "").replace(/A\s*M/i, "AM").replace(/P\s*M/i, "PM"), `${
|
|
1468
|
+
return I = I.replace(/\./g, "").replace(/A\s*M/i, "AM").replace(/P\s*M/i, "PM"), `${M} ${x}/${$} | ${I}`;
|
|
1468
1469
|
}
|
|
1469
1470
|
const i = (S, O) => {
|
|
1470
|
-
const
|
|
1471
|
+
const M = `${t.homeName} vs ${t.awayName}`, x = O ? (O / 1e3).toFixed(2) : "", $ = x ? `${M} - Cuota: ${x}` : M;
|
|
1471
1472
|
n({
|
|
1472
1473
|
element: "evento_semana_outcome",
|
|
1473
1474
|
label: `Landing: ${r} - OraculoEventSemanaCard - Click: ${$}`,
|
|
@@ -1478,21 +1479,21 @@ function Ca({ event: t, jersey: a }) {
|
|
|
1478
1479
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1479
1480
|
},
|
|
1480
1481
|
tags: { section: "OraculoEventSemanaCard", outcomes: $ }
|
|
1481
|
-
}),
|
|
1482
|
+
}), Be(S);
|
|
1482
1483
|
};
|
|
1483
1484
|
return /* @__PURE__ */ h("div", { className: se.cardContainer, children: [
|
|
1484
|
-
/* @__PURE__ */ e(
|
|
1485
|
+
/* @__PURE__ */ e(Xe, { title: (m = t == null ? void 0 : t.group) != null ? m : "" }),
|
|
1485
1486
|
/* @__PURE__ */ e("div", { className: se.cardBackground, children: /* @__PURE__ */ h(j, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
1486
1487
|
/* @__PURE__ */ h(j, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1487
1488
|
/* @__PURE__ */ h("div", { className: se.equipos, children: [
|
|
1488
1489
|
/* @__PURE__ */ e(be, { name: t.homeName, size: "compact", jersey: ve(a, "home") }),
|
|
1489
|
-
/* @__PURE__ */ e(
|
|
1490
|
+
/* @__PURE__ */ e(Ye, { text: "vs.", name: "", size: "small" }),
|
|
1490
1491
|
/* @__PURE__ */ e(be, { name: t.awayName, size: "compact", jersey: ve(a, "away") })
|
|
1491
1492
|
] }),
|
|
1492
|
-
/* @__PURE__ */ e(
|
|
1493
|
+
/* @__PURE__ */ e(ya, { text: c(t.start) })
|
|
1493
1494
|
] }),
|
|
1494
1495
|
/* @__PURE__ */ h(j, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
1495
|
-
/* @__PURE__ */ e(ae, { spacing: 1, children: ((p = (v = (g = t == null ? void 0 : t.outcome) == null ? void 0 : g[0]) == null ? void 0 : v.outcomes) != null ? p : []).map((S, O) => /* @__PURE__ */ e(
|
|
1496
|
+
/* @__PURE__ */ e(ae, { spacing: 1, children: ((p = (v = (g = t == null ? void 0 : t.outcome) == null ? void 0 : g[0]) == null ? void 0 : v.outcomes) != null ? p : []).map((S, O) => /* @__PURE__ */ e(Je, { text: S.label.toUpperCase() }, O)) }),
|
|
1496
1497
|
/* @__PURE__ */ e("div", { className: se.jugadas, children: /* @__PURE__ */ e(ae, { spacing: 1, children: ((C = (u = (d = t == null ? void 0 : t.outcome) == null ? void 0 : d[0]) == null ? void 0 : u.outcomes) != null ? C : []).map((S, O) => /* @__PURE__ */ e(H, { variant: "primary", fullHeight: !0, onClick: () => {
|
|
1497
1498
|
i(S.id, S.odds);
|
|
1498
1499
|
}, children: (S.odds / 1e3).toFixed(2) }, O)) }) })
|
|
@@ -1500,14 +1501,14 @@ function Ca({ event: t, jersey: a }) {
|
|
|
1500
1501
|
] }) })
|
|
1501
1502
|
] });
|
|
1502
1503
|
}
|
|
1503
|
-
function
|
|
1504
|
+
function Oa({
|
|
1504
1505
|
items: t,
|
|
1505
1506
|
title: a = "Destacados",
|
|
1506
1507
|
iconUrl: n,
|
|
1507
1508
|
onViewMore: r,
|
|
1508
1509
|
className: c = ""
|
|
1509
1510
|
}) {
|
|
1510
|
-
const i =
|
|
1511
|
+
const i = W(null), [m, g] = G({ isStart: !0, isEnd: !1 }), v = J(), p = X(), d = !t || t.length === 0, u = () => {
|
|
1511
1512
|
var x;
|
|
1512
1513
|
v({
|
|
1513
1514
|
element: "destacados_carousel_prev",
|
|
@@ -1676,17 +1677,17 @@ function nt() {
|
|
|
1676
1677
|
const t = globalThis;
|
|
1677
1678
|
return t[he] || (t[he] = {}), t[he];
|
|
1678
1679
|
}
|
|
1679
|
-
function
|
|
1680
|
+
function Ta(t) {
|
|
1680
1681
|
nt().extras = t;
|
|
1681
1682
|
}
|
|
1682
1683
|
function ie(t) {
|
|
1683
1684
|
var a;
|
|
1684
1685
|
return (a = nt().extras) == null ? void 0 : a[t];
|
|
1685
1686
|
}
|
|
1686
|
-
function
|
|
1687
|
+
function Ea() {
|
|
1687
1688
|
delete globalThis[he];
|
|
1688
1689
|
}
|
|
1689
|
-
function
|
|
1690
|
+
function ka({
|
|
1690
1691
|
items: t,
|
|
1691
1692
|
title: a = "Top Juegos",
|
|
1692
1693
|
iconUrl: n,
|
|
@@ -1756,10 +1757,10 @@ function Ea({
|
|
|
1756
1757
|
)
|
|
1757
1758
|
] }) });
|
|
1758
1759
|
}
|
|
1759
|
-
const
|
|
1760
|
+
const $a = (t, a) => {
|
|
1760
1761
|
var n, r;
|
|
1761
1762
|
return (r = (n = t.orden) != null ? n : t.machine) != null ? r : a;
|
|
1762
|
-
},
|
|
1763
|
+
}, Na = ({
|
|
1763
1764
|
items: t,
|
|
1764
1765
|
title: a = "Casino en vivo",
|
|
1765
1766
|
subtitle: n = "Disfruta la emoción en tus juegos favoritos y gana en tiempo real.",
|
|
@@ -1912,7 +1913,7 @@ const ka = (t, a) => {
|
|
|
1912
1913
|
machine: u.machine,
|
|
1913
1914
|
onClick: () => p(u)
|
|
1914
1915
|
},
|
|
1915
|
-
|
|
1916
|
+
$a(u, C)
|
|
1916
1917
|
);
|
|
1917
1918
|
})
|
|
1918
1919
|
}
|
|
@@ -1964,7 +1965,7 @@ const ka = (t, a) => {
|
|
|
1964
1965
|
}), i = m;
|
|
1965
1966
|
}
|
|
1966
1967
|
return c;
|
|
1967
|
-
},
|
|
1968
|
+
}, Ba = ({
|
|
1968
1969
|
items: t,
|
|
1969
1970
|
title: a = "Casino",
|
|
1970
1971
|
iconUrl: n = "/assets/img/home/Casino/diamante.svg",
|
|
@@ -1973,7 +1974,7 @@ const ka = (t, a) => {
|
|
|
1973
1974
|
mosaicFirst: i = !0,
|
|
1974
1975
|
gridSize: m = 1
|
|
1975
1976
|
}) => {
|
|
1976
|
-
const g = J(), v = X(), p =
|
|
1977
|
+
const g = J(), v = X(), p = W(null), [d, u] = G({ isStart: !0, isEnd: !1 }), C = () => {
|
|
1977
1978
|
var I;
|
|
1978
1979
|
g({
|
|
1979
1980
|
element: "casino_prev",
|
|
@@ -2011,13 +2012,13 @@ const ka = (t, a) => {
|
|
|
2011
2012
|
},
|
|
2012
2013
|
tags: { section: "OraculoSeccionCasino" }
|
|
2013
2014
|
}), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/casino");
|
|
2014
|
-
},
|
|
2015
|
+
}, M = (I = !0, N = 4) => {
|
|
2015
2016
|
const s = (k) => Array.from({ length: k }, (B, z) => ({
|
|
2016
2017
|
id: `sk-${k}-${z}`,
|
|
2017
2018
|
imageUrl: ""
|
|
2018
2019
|
})), y = [];
|
|
2019
|
-
return I && y.push({ id: "mosaic-loading", kind: "mosaic", items: s(5) }), y.push({ id: "grid-loading", kind: "grid", items: s(
|
|
2020
|
-
}, x = !t || t.length === 0, $ = x ?
|
|
2020
|
+
return I && y.push({ id: "mosaic-loading", kind: "mosaic", items: s(5) }), y.push({ id: "grid-loading", kind: "grid", items: s(N) }), y;
|
|
2021
|
+
}, x = !t || t.length === 0, $ = x ? M(i, m) : Ma(t, i, m);
|
|
2021
2022
|
return /* @__PURE__ */ e("section", { children: /* @__PURE__ */ h(j, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
2022
2023
|
/* @__PURE__ */ h(
|
|
2023
2024
|
L,
|
|
@@ -2038,7 +2039,7 @@ const ka = (t, a) => {
|
|
|
2038
2039
|
ariaLabel: "Anterior",
|
|
2039
2040
|
variant: "secondary",
|
|
2040
2041
|
iconOnly: !0,
|
|
2041
|
-
leftIcon: /* @__PURE__ */ e(
|
|
2042
|
+
leftIcon: /* @__PURE__ */ e(He, {}),
|
|
2042
2043
|
onClick: C,
|
|
2043
2044
|
disabled: d.isStart
|
|
2044
2045
|
}
|
|
@@ -2049,7 +2050,7 @@ const ka = (t, a) => {
|
|
|
2049
2050
|
ariaLabel: "Siguiente",
|
|
2050
2051
|
variant: "secondary",
|
|
2051
2052
|
iconOnly: !0,
|
|
2052
|
-
rightIcon: /* @__PURE__ */ e(
|
|
2053
|
+
rightIcon: /* @__PURE__ */ e(Ke, {}),
|
|
2053
2054
|
onClick: S,
|
|
2054
2055
|
disabled: d.isEnd
|
|
2055
2056
|
}
|
|
@@ -2077,15 +2078,15 @@ const ka = (t, a) => {
|
|
|
2077
2078
|
focus: "start"
|
|
2078
2079
|
},
|
|
2079
2080
|
renderItem: (I) => /* @__PURE__ */ e("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ e(
|
|
2080
|
-
|
|
2081
|
+
Qe,
|
|
2081
2082
|
{
|
|
2082
2083
|
items: I.items,
|
|
2083
2084
|
layout: I.kind === "mosaic" ? "mosaic" : "grid",
|
|
2084
2085
|
loading: x,
|
|
2085
|
-
onClick: (
|
|
2086
|
+
onClick: (N) => {
|
|
2086
2087
|
if (x) return;
|
|
2087
2088
|
const s = t.find(
|
|
2088
|
-
(B, z) => String(ot(B, z)) === String(
|
|
2089
|
+
(B, z) => String(ot(B, z)) === String(N.id)
|
|
2089
2090
|
);
|
|
2090
2091
|
if (!s) return;
|
|
2091
2092
|
g({
|
|
@@ -2107,14 +2108,14 @@ const ka = (t, a) => {
|
|
|
2107
2108
|
}
|
|
2108
2109
|
}
|
|
2109
2110
|
) }),
|
|
2110
|
-
onMove: ({ isStart: I, isEnd:
|
|
2111
|
+
onMove: ({ isStart: I, isEnd: N }) => u({ isStart: I, isEnd: N })
|
|
2111
2112
|
}
|
|
2112
2113
|
)
|
|
2113
2114
|
] }) });
|
|
2114
2115
|
}, it = (t, a) => {
|
|
2115
2116
|
var n, r;
|
|
2116
2117
|
return (r = (n = t.orden) != null ? n : t.machine) != null ? r : a;
|
|
2117
|
-
},
|
|
2118
|
+
}, La = (t, a = !0, n = 1) => {
|
|
2118
2119
|
const r = t.map((m, g) => {
|
|
2119
2120
|
var v;
|
|
2120
2121
|
return {
|
|
@@ -2143,10 +2144,10 @@ const ka = (t, a) => {
|
|
|
2143
2144
|
}), i = m;
|
|
2144
2145
|
}
|
|
2145
2146
|
return c;
|
|
2146
|
-
},
|
|
2147
|
+
}, Aa = (t = !0, a = 4) => {
|
|
2147
2148
|
const n = (c) => Array.from({ length: c }, (i, m) => ({ id: `sk-${c}-${m}`, imageUrl: "" })), r = [];
|
|
2148
2149
|
return t && r.push({ id: "mosaic-loading", kind: "mosaic", items: n(5) }), r.push({ id: "grid-loading", kind: "grid", items: n(a) }), r;
|
|
2149
|
-
},
|
|
2150
|
+
}, Fa = ({
|
|
2150
2151
|
items: t,
|
|
2151
2152
|
title: a = "Virtuales",
|
|
2152
2153
|
iconUrl: n = "/assets/img/home/Virtuales/virtuales.svg",
|
|
@@ -2155,7 +2156,7 @@ const ka = (t, a) => {
|
|
|
2155
2156
|
mosaicFirst: i = !0,
|
|
2156
2157
|
gridSize: m = 1
|
|
2157
2158
|
}) => {
|
|
2158
|
-
const g =
|
|
2159
|
+
const g = W(null), [v, p] = G({ isStart: !0, isEnd: !1 }), d = J(), u = X(), C = () => {
|
|
2159
2160
|
var $;
|
|
2160
2161
|
d({
|
|
2161
2162
|
element: "virtuales_prev",
|
|
@@ -2193,7 +2194,7 @@ const ka = (t, a) => {
|
|
|
2193
2194
|
},
|
|
2194
2195
|
tags: { section: "OraculoSeccionVirtuales" }
|
|
2195
2196
|
}), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/juegos-virtuales");
|
|
2196
|
-
},
|
|
2197
|
+
}, M = !t || t.length === 0, x = M ? Aa(i, m) : La(t, i, m);
|
|
2197
2198
|
return /* @__PURE__ */ e("section", { children: /* @__PURE__ */ h(j, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
2198
2199
|
/* @__PURE__ */ h(
|
|
2199
2200
|
L,
|
|
@@ -2214,7 +2215,7 @@ const ka = (t, a) => {
|
|
|
2214
2215
|
ariaLabel: "Anterior",
|
|
2215
2216
|
variant: "secondary",
|
|
2216
2217
|
iconOnly: !0,
|
|
2217
|
-
leftIcon: /* @__PURE__ */ e(
|
|
2218
|
+
leftIcon: /* @__PURE__ */ e(He, {}),
|
|
2218
2219
|
onClick: C,
|
|
2219
2220
|
disabled: v.isStart
|
|
2220
2221
|
}
|
|
@@ -2225,7 +2226,7 @@ const ka = (t, a) => {
|
|
|
2225
2226
|
ariaLabel: "Siguiente",
|
|
2226
2227
|
variant: "secondary",
|
|
2227
2228
|
iconOnly: !0,
|
|
2228
|
-
rightIcon: /* @__PURE__ */ e(
|
|
2229
|
+
rightIcon: /* @__PURE__ */ e(Ke, {}),
|
|
2229
2230
|
onClick: S,
|
|
2230
2231
|
disabled: v.isEnd
|
|
2231
2232
|
}
|
|
@@ -2254,17 +2255,17 @@ const ka = (t, a) => {
|
|
|
2254
2255
|
perMove: 1
|
|
2255
2256
|
},
|
|
2256
2257
|
renderItem: ($) => /* @__PURE__ */ e("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ e(
|
|
2257
|
-
|
|
2258
|
+
Qe,
|
|
2258
2259
|
{
|
|
2259
2260
|
items: $.items,
|
|
2260
2261
|
layout: $.kind === "mosaic" ? "mosaic" : "grid",
|
|
2261
|
-
loading:
|
|
2262
|
+
loading: M,
|
|
2262
2263
|
onClick: (I) => {
|
|
2263
|
-
if (
|
|
2264
|
-
const
|
|
2264
|
+
if (M) return;
|
|
2265
|
+
const N = t.find(
|
|
2265
2266
|
(k, B) => String(it(k, B)) === String(I.id)
|
|
2266
2267
|
);
|
|
2267
|
-
if (!
|
|
2268
|
+
if (!N) {
|
|
2268
2269
|
console.warn(
|
|
2269
2270
|
"[virtuales] no se encontró game para id:",
|
|
2270
2271
|
I.id
|
|
@@ -2273,20 +2274,20 @@ const ka = (t, a) => {
|
|
|
2273
2274
|
}
|
|
2274
2275
|
d({
|
|
2275
2276
|
element: "virtuales_game_card",
|
|
2276
|
-
label: `Landing: ${u} - OraculoSeccionVirtuales - Open game: ${String(
|
|
2277
|
-
target: String(
|
|
2277
|
+
label: `Landing: ${u} - OraculoSeccionVirtuales - Open game: ${String(N.machine || "unknown")}`,
|
|
2278
|
+
target: String(N.machine || "unknown"),
|
|
2278
2279
|
event_type: "click",
|
|
2279
2280
|
module_id: 301,
|
|
2280
2281
|
metadata: {
|
|
2281
2282
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2282
2283
|
},
|
|
2283
2284
|
tags: {
|
|
2284
|
-
game_name: String(
|
|
2285
|
+
game_name: String(N.machine || "unknown"),
|
|
2285
2286
|
section: "OraculoSeccionVirtuales"
|
|
2286
2287
|
}
|
|
2287
2288
|
});
|
|
2288
2289
|
const s = ie("showIframe"), y = ie("loadMachine");
|
|
2289
|
-
s == null || s(), y == null || y(
|
|
2290
|
+
s == null || s(), y == null || y(N, !1, "VIRTUALES");
|
|
2290
2291
|
}
|
|
2291
2292
|
}
|
|
2292
2293
|
) }),
|
|
@@ -2294,7 +2295,7 @@ const ka = (t, a) => {
|
|
|
2294
2295
|
}
|
|
2295
2296
|
)
|
|
2296
2297
|
] }) });
|
|
2297
|
-
},
|
|
2298
|
+
}, Pa = (t) => ({
|
|
2298
2299
|
position: "relative",
|
|
2299
2300
|
py: 8,
|
|
2300
2301
|
color: "#fff",
|
|
@@ -2308,15 +2309,15 @@ const ka = (t, a) => {
|
|
|
2308
2309
|
backgroundRepeat: "no-repeat",
|
|
2309
2310
|
backgroundPosition: "center",
|
|
2310
2311
|
backgroundSize: "cover"
|
|
2311
|
-
}),
|
|
2312
|
+
}), Re = {
|
|
2312
2313
|
textAlign: "center",
|
|
2313
2314
|
lineHeight: 1.1,
|
|
2314
2315
|
mb: 1.5
|
|
2315
|
-
},
|
|
2316
|
+
}, qe = {
|
|
2316
2317
|
display: "inline-block",
|
|
2317
2318
|
fontWeight: 600,
|
|
2318
2319
|
fontSize: 24
|
|
2319
|
-
},
|
|
2320
|
+
}, Ue = {
|
|
2320
2321
|
display: "inline-block",
|
|
2321
2322
|
fontSize: 24,
|
|
2322
2323
|
lineHeight: 1.1,
|
|
@@ -2326,30 +2327,30 @@ const ka = (t, a) => {
|
|
|
2326
2327
|
0 0 6px rgba(255, 255, 255, .6),
|
|
2327
2328
|
0 1px 0 rgba(137, 137, 137, .85)
|
|
2328
2329
|
`
|
|
2329
|
-
},
|
|
2330
|
+
}, za = ({
|
|
2330
2331
|
headline: t,
|
|
2331
2332
|
headline2: a,
|
|
2332
2333
|
items: n,
|
|
2333
2334
|
backgroundImageUrl: r
|
|
2334
2335
|
}) => {
|
|
2335
|
-
const c = J(), i = X(), m = ft("(max-width: 767px)"), g = n.length > 1, v =
|
|
2336
|
+
const c = J(), i = X(), m = ft("(max-width: 767px)"), g = n.length > 1, v = W(null), p = W(null), d = W(!1), u = W(!1), [C, S] = G(0), [O, M] = G({ isStart: !0, isEnd: !1 });
|
|
2336
2337
|
K(() => {
|
|
2337
2338
|
const w = setTimeout(() => {
|
|
2338
2339
|
d.current = !0;
|
|
2339
2340
|
}, 500);
|
|
2340
2341
|
return () => clearTimeout(w);
|
|
2341
2342
|
}, []);
|
|
2342
|
-
const x =
|
|
2343
|
+
const x = W(O);
|
|
2343
2344
|
K(() => {
|
|
2344
2345
|
x.current = O;
|
|
2345
2346
|
}, [O]);
|
|
2346
|
-
const $ =
|
|
2347
|
+
const $ = W(!1), I = W(null), N = n == null ? void 0 : n[C], s = ue(
|
|
2347
2348
|
() => {
|
|
2348
2349
|
var w, E;
|
|
2349
|
-
return (E = (w =
|
|
2350
|
+
return (E = (w = N == null ? void 0 : N.backgroundImageUrl) != null ? w : r) != null ? E : "";
|
|
2350
2351
|
},
|
|
2351
|
-
[
|
|
2352
|
-
), y =
|
|
2352
|
+
[N, r]
|
|
2353
|
+
), y = Pa(s), k = !n || n.length === 0, B = (w, E) => {
|
|
2353
2354
|
c({
|
|
2354
2355
|
element: "welcome_banner_button",
|
|
2355
2356
|
label: `OraculoSeccionBonoBienvenida - Banner button click: ${w.title || "OraculoSeccionBonoBienvenida - Banner " + (E + 1)}`,
|
|
@@ -2433,17 +2434,17 @@ const ka = (t, a) => {
|
|
|
2433
2434
|
justifyContent: "flex-start",
|
|
2434
2435
|
minHeight: "100%"
|
|
2435
2436
|
},
|
|
2436
|
-
children: /* @__PURE__ */ h(L, { sx: { ...
|
|
2437
|
-
f && /* @__PURE__ */ e(te, { component: "span", sx:
|
|
2437
|
+
children: /* @__PURE__ */ h(L, { sx: { ...Re, textAlign: "left", mb: 0 }, children: [
|
|
2438
|
+
f && /* @__PURE__ */ e(te, { component: "span", sx: qe, children: f }),
|
|
2438
2439
|
o && /* @__PURE__ */ h(ne, { children: [
|
|
2439
2440
|
/* @__PURE__ */ e("br", {}),
|
|
2440
|
-
/* @__PURE__ */ e(te, { component: "span", sx:
|
|
2441
|
+
/* @__PURE__ */ e(te, { component: "span", sx: Ue, children: o })
|
|
2441
2442
|
] })
|
|
2442
2443
|
] })
|
|
2443
2444
|
}
|
|
2444
2445
|
),
|
|
2445
2446
|
/* @__PURE__ */ e(L, { sx: { display: "flex", justifyContent: "center", alignItems: "center" }, children: /* @__PURE__ */ e(L, { sx: { width: "100%", maxWidth: 600, mx: "auto" }, children: /* @__PURE__ */ e(
|
|
2446
|
-
|
|
2447
|
+
Fe,
|
|
2447
2448
|
{
|
|
2448
2449
|
...w,
|
|
2449
2450
|
onButtonClick: () => B(w, F),
|
|
@@ -2453,15 +2454,15 @@ const ka = (t, a) => {
|
|
|
2453
2454
|
]
|
|
2454
2455
|
}
|
|
2455
2456
|
) : /* @__PURE__ */ h(L, { sx: { textAlign: "center" }, children: [
|
|
2456
|
-
(f || o) && /* @__PURE__ */ h(L, { sx:
|
|
2457
|
-
f && /* @__PURE__ */ e(te, { component: "span", sx:
|
|
2457
|
+
(f || o) && /* @__PURE__ */ h(L, { sx: Re, children: [
|
|
2458
|
+
f && /* @__PURE__ */ e(te, { component: "span", sx: qe, children: f }),
|
|
2458
2459
|
o && /* @__PURE__ */ h(ne, { children: [
|
|
2459
2460
|
/* @__PURE__ */ e("br", {}),
|
|
2460
|
-
/* @__PURE__ */ e(te, { component: "span", sx:
|
|
2461
|
+
/* @__PURE__ */ e(te, { component: "span", sx: Ue, children: o })
|
|
2461
2462
|
] })
|
|
2462
2463
|
] }),
|
|
2463
2464
|
/* @__PURE__ */ e(L, { sx: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ e(
|
|
2464
|
-
|
|
2465
|
+
Fe,
|
|
2465
2466
|
{
|
|
2466
2467
|
...w,
|
|
2467
2468
|
onButtonClick: () => B(w, F),
|
|
@@ -2490,12 +2491,12 @@ const ka = (t, a) => {
|
|
|
2490
2491
|
},
|
|
2491
2492
|
renderItem: (w, E) => /* @__PURE__ */ e(L, { sx: { width: "100%" }, children: q(w, !m, E) }),
|
|
2492
2493
|
onMove: ({ index: w, isStart: E, isEnd: F }) => {
|
|
2493
|
-
S(w), typeof E == "boolean" && typeof F == "boolean" &&
|
|
2494
|
+
S(w), typeof E == "boolean" && typeof F == "boolean" && M({ isStart: E, isEnd: F }), z(w);
|
|
2494
2495
|
}
|
|
2495
2496
|
}
|
|
2496
2497
|
) }),
|
|
2497
2498
|
g && /* @__PURE__ */ e(L, { sx: { mt: 2, display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ e(
|
|
2498
|
-
|
|
2499
|
+
Ze,
|
|
2499
2500
|
{
|
|
2500
2501
|
total: n.length,
|
|
2501
2502
|
active: C,
|
|
@@ -2520,14 +2521,14 @@ const ka = (t, a) => {
|
|
|
2520
2521
|
}
|
|
2521
2522
|
) })
|
|
2522
2523
|
] });
|
|
2523
|
-
},
|
|
2524
|
+
}, Ra = ({
|
|
2524
2525
|
className: t = "",
|
|
2525
2526
|
fullBleed: a = !0,
|
|
2526
2527
|
items: n,
|
|
2527
2528
|
selectedIndex: r = 0,
|
|
2528
2529
|
ariaLabel: c
|
|
2529
2530
|
}) => {
|
|
2530
|
-
const i =
|
|
2531
|
+
const i = W(null), m = W(null), g = J(), v = X();
|
|
2531
2532
|
if (!n) return null;
|
|
2532
2533
|
const p = () => {
|
|
2533
2534
|
g({
|
|
@@ -2549,8 +2550,8 @@ const ka = (t, a) => {
|
|
|
2549
2550
|
"--orc-co-bottomH",
|
|
2550
2551
|
`${S.offsetHeight + 16}px`
|
|
2551
2552
|
);
|
|
2552
|
-
},
|
|
2553
|
-
return
|
|
2553
|
+
}, M = new ResizeObserver(O);
|
|
2554
|
+
return M.observe(S), O(), () => M.disconnect();
|
|
2554
2555
|
}, []);
|
|
2555
2556
|
const u = [
|
|
2556
2557
|
"orc-co-wrap",
|
|
@@ -2576,17 +2577,17 @@ const ka = (t, a) => {
|
|
|
2576
2577
|
) })
|
|
2577
2578
|
}
|
|
2578
2579
|
);
|
|
2579
|
-
},
|
|
2580
|
-
controls:
|
|
2580
|
+
}, qa = "oraculo__OraculoSeccionEventoCombinadas-module__controls___Zsta4", Ua = {
|
|
2581
|
+
controls: qa
|
|
2581
2582
|
};
|
|
2582
|
-
function
|
|
2583
|
+
function Va({
|
|
2583
2584
|
items: t,
|
|
2584
2585
|
title: a = "Combinadas del Olimpo",
|
|
2585
2586
|
iconUrl: n = "https://stg-www.contodobet.com/static/img/landing/EventoCombinada/rayoIcon.svg",
|
|
2586
2587
|
onViewMore: r,
|
|
2587
2588
|
className: c = ""
|
|
2588
2589
|
}) {
|
|
2589
|
-
const i = J(), m = X(), g =
|
|
2590
|
+
const i = J(), m = X(), g = W(null), [v, p] = G({ isStart: !0, isEnd: !1 }), [d, u] = G([]), C = "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", S = () => {
|
|
2590
2591
|
var s;
|
|
2591
2592
|
i({
|
|
2592
2593
|
element: "evento_combinadas_prev",
|
|
@@ -2610,7 +2611,7 @@ function Ua({
|
|
|
2610
2611
|
},
|
|
2611
2612
|
tags: { section: "OraculoSeccionEventoCombinadas" }
|
|
2612
2613
|
}), (s = g.current) == null || s.next();
|
|
2613
|
-
},
|
|
2614
|
+
}, M = () => {
|
|
2614
2615
|
i({
|
|
2615
2616
|
element: "evento_combinadas_ver_mas",
|
|
2616
2617
|
label: `Landing: ${m} - OraculoSeccionEventoCombinadas - Click: Ver más`,
|
|
@@ -2683,8 +2684,8 @@ function Ua({
|
|
|
2683
2684
|
K(() => {
|
|
2684
2685
|
x();
|
|
2685
2686
|
}, []);
|
|
2686
|
-
const
|
|
2687
|
-
return !d || d.length === 0 ? null : /* @__PURE__ */ e("section", { className:
|
|
2687
|
+
const N = c || void 0;
|
|
2688
|
+
return !d || d.length === 0 ? null : /* @__PURE__ */ e("section", { className: N, style: {
|
|
2688
2689
|
// paddingLeft: 16,
|
|
2689
2690
|
// paddingRight: 16,
|
|
2690
2691
|
width: "100%",
|
|
@@ -2692,7 +2693,7 @@ function Ua({
|
|
|
2692
2693
|
}, children: /* @__PURE__ */ h(j, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
2693
2694
|
/* @__PURE__ */ h(ae, { spacing: 1.5, columns: "1fr auto ", justify: "start", children: [
|
|
2694
2695
|
/* @__PURE__ */ e(re, { title: a, iconUrl: n, size: "md" }),
|
|
2695
|
-
/* @__PURE__ */ h("div", { className:
|
|
2696
|
+
/* @__PURE__ */ h("div", { className: Ua.controls, children: [
|
|
2696
2697
|
/* @__PURE__ */ h(ae, { spacing: 1, columns: "auto auto", children: [
|
|
2697
2698
|
/* @__PURE__ */ e(
|
|
2698
2699
|
H,
|
|
@@ -2717,7 +2718,7 @@ function Ua({
|
|
|
2717
2718
|
}
|
|
2718
2719
|
)
|
|
2719
2720
|
] }),
|
|
2720
|
-
/* @__PURE__ */ e(H, { variant: "secondary", onClick:
|
|
2721
|
+
/* @__PURE__ */ e(H, { variant: "secondary", onClick: M, children: "Ver más" })
|
|
2721
2722
|
] })
|
|
2722
2723
|
] }),
|
|
2723
2724
|
/* @__PURE__ */ e(
|
|
@@ -2739,56 +2740,56 @@ function Ua({
|
|
|
2739
2740
|
)
|
|
2740
2741
|
] }) });
|
|
2741
2742
|
}
|
|
2742
|
-
function
|
|
2743
|
+
function Da({}) {
|
|
2743
2744
|
return /* @__PURE__ */ e(
|
|
2744
2745
|
"div",
|
|
2745
2746
|
{
|
|
2746
|
-
className:
|
|
2747
|
+
className: Ne.cardWrapper,
|
|
2747
2748
|
children: /* @__PURE__ */ h(j, { direction: "column", spacing: 1, children: [
|
|
2748
2749
|
/* @__PURE__ */ h(j, { spacing: 1, direction: "row", children: [
|
|
2749
|
-
/* @__PURE__ */ e(
|
|
2750
|
-
/* @__PURE__ */ e(
|
|
2750
|
+
/* @__PURE__ */ e(D, { variant: "text", width: "60%", height: 24 }),
|
|
2751
|
+
/* @__PURE__ */ e(D, { variant: "text", width: "39%", height: 24 })
|
|
2751
2752
|
] }),
|
|
2752
2753
|
/* @__PURE__ */ h(j, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
2753
|
-
/* @__PURE__ */ e(
|
|
2754
|
-
/* @__PURE__ */ e(
|
|
2755
|
-
/* @__PURE__ */ e(
|
|
2754
|
+
/* @__PURE__ */ e(D, { variant: "circular", width: 32, height: 40 }),
|
|
2755
|
+
/* @__PURE__ */ e(D, { variant: "text", width: 40, height: 40 }),
|
|
2756
|
+
/* @__PURE__ */ e(D, { variant: "circular", width: 32, height: 40 })
|
|
2756
2757
|
] }),
|
|
2757
2758
|
/* @__PURE__ */ h(j, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
2758
|
-
/* @__PURE__ */ e(
|
|
2759
|
-
/* @__PURE__ */ e(
|
|
2760
|
-
/* @__PURE__ */ e(
|
|
2759
|
+
/* @__PURE__ */ e(D, { variant: "text", width: 32, height: 16 }),
|
|
2760
|
+
/* @__PURE__ */ e(D, { variant: "text", width: 40, height: 16 }),
|
|
2761
|
+
/* @__PURE__ */ e(D, { variant: "text", width: 32, height: 16 })
|
|
2761
2762
|
] }),
|
|
2762
2763
|
/* @__PURE__ */ h(j, { spacing: 2, direction: "row", children: [
|
|
2763
|
-
/* @__PURE__ */ e(
|
|
2764
|
-
/* @__PURE__ */ e(
|
|
2765
|
-
/* @__PURE__ */ e(
|
|
2764
|
+
/* @__PURE__ */ e(D, { variant: "rounded", width: 88, height: 16 }),
|
|
2765
|
+
/* @__PURE__ */ e(D, { variant: "rounded", width: 88, height: 16 }),
|
|
2766
|
+
/* @__PURE__ */ e(D, { variant: "rounded", width: 88, height: 16 })
|
|
2766
2767
|
] }),
|
|
2767
2768
|
/* @__PURE__ */ h(j, { spacing: 2, direction: "row", children: [
|
|
2768
|
-
/* @__PURE__ */ e(
|
|
2769
|
-
/* @__PURE__ */ e(
|
|
2770
|
-
/* @__PURE__ */ e(
|
|
2769
|
+
/* @__PURE__ */ e(D, { variant: "rounded", width: 88, height: 32 }),
|
|
2770
|
+
/* @__PURE__ */ e(D, { variant: "rounded", width: 88, height: 32 }),
|
|
2771
|
+
/* @__PURE__ */ e(D, { variant: "rounded", width: 88, height: 32 })
|
|
2771
2772
|
] })
|
|
2772
2773
|
] })
|
|
2773
2774
|
}
|
|
2774
2775
|
);
|
|
2775
2776
|
}
|
|
2776
|
-
const Wa = "oraculo__FadeItemWrapper-module__fadeWrapper___kFOH4",
|
|
2777
|
+
const Wa = "oraculo__FadeItemWrapper-module__fadeWrapper___kFOH4", ja = {
|
|
2777
2778
|
fadeWrapper: Wa
|
|
2778
2779
|
};
|
|
2779
2780
|
function _e({ children: t }) {
|
|
2780
|
-
return /* @__PURE__ */ e("div", { className:
|
|
2781
|
+
return /* @__PURE__ */ e("div", { className: ja.fadeWrapper, children: t });
|
|
2781
2782
|
}
|
|
2782
|
-
function
|
|
2783
|
+
function Ga({
|
|
2783
2784
|
items: t,
|
|
2784
2785
|
title: a = "En vivo",
|
|
2785
2786
|
iconUrl: n = "https://stg-www.contodobet.com/static/img/landing/EventoEnVivo/icon.svg",
|
|
2786
2787
|
onViewMore: r,
|
|
2787
2788
|
className: c = ""
|
|
2788
2789
|
}) {
|
|
2789
|
-
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", m =
|
|
2790
|
+
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", m = W(null), [g, v] = G({ isStart: !0, isEnd: !1 }), [p, d] = G(null), [u, C] = G({}), [S, O] = G({ start: null, end: null }), M = W(!1), [x, $] = G(null), I = W(!1), N = J(), s = X(), y = tt(S, 300), k = () => {
|
|
2790
2791
|
var o;
|
|
2791
|
-
|
|
2792
|
+
N({
|
|
2792
2793
|
element: "evento_en_vivo_prev",
|
|
2793
2794
|
label: `Landing: ${s} - OraculoSeccionEventoEnVivo - Anterior`,
|
|
2794
2795
|
target: "prev",
|
|
@@ -2801,7 +2802,7 @@ function ja({
|
|
|
2801
2802
|
}), (o = m.current) == null || o.prev();
|
|
2802
2803
|
}, B = () => {
|
|
2803
2804
|
var o;
|
|
2804
|
-
|
|
2805
|
+
N({
|
|
2805
2806
|
element: "evento_en_vivo_next",
|
|
2806
2807
|
label: `Landing: ${s} - OraculoSeccionEventoEnVivo - Siguiente`,
|
|
2807
2808
|
target: "next",
|
|
@@ -2813,7 +2814,7 @@ function ja({
|
|
|
2813
2814
|
tags: { section: "OraculoSeccionEventoEnVivo" }
|
|
2814
2815
|
}), (o = m.current) == null || o.next();
|
|
2815
2816
|
}, z = () => {
|
|
2816
|
-
|
|
2817
|
+
N({
|
|
2817
2818
|
element: "evento_en_vivo_view_more",
|
|
2818
2819
|
label: `Landing: ${s} - OraculoSeccionEventoEnVivo - Ver más`,
|
|
2819
2820
|
target: "ver_mas",
|
|
@@ -2866,10 +2867,10 @@ function ja({
|
|
|
2866
2867
|
const o = setInterval(E, 2e4);
|
|
2867
2868
|
return () => clearInterval(o);
|
|
2868
2869
|
}, [E]), K(() => {
|
|
2869
|
-
if (y.start === null || y.end === null || !(p != null && p.length) ||
|
|
2870
|
+
if (y.start === null || y.end === null || !(p != null && p.length) || M.current)
|
|
2870
2871
|
return;
|
|
2871
2872
|
const o = 3, l = Math.max(0, y.start - o), b = Math.min(p.length - 1, y.end + o), _ = p.slice(l, b + 1).map((T) => T == null ? void 0 : T.event.id).filter(Boolean).filter((T) => u[T] === void 0);
|
|
2872
|
-
_.length && (
|
|
2873
|
+
_.length && (M.current = !0, et(_).then((T) => {
|
|
2873
2874
|
C((P) => ({
|
|
2874
2875
|
...P,
|
|
2875
2876
|
...T.events
|
|
@@ -2877,7 +2878,7 @@ function ja({
|
|
|
2877
2878
|
}).catch((T) => {
|
|
2878
2879
|
console.error("Jersey fetch error", T);
|
|
2879
2880
|
}).finally(() => {
|
|
2880
|
-
|
|
2881
|
+
M.current = !1;
|
|
2881
2882
|
}));
|
|
2882
2883
|
}, [y, p, u]);
|
|
2883
2884
|
const F = c || void 0, f = p === null;
|
|
@@ -2934,8 +2935,8 @@ function ja({
|
|
|
2934
2935
|
renderItem: (o) => {
|
|
2935
2936
|
var _;
|
|
2936
2937
|
const l = ((_ = o.event) == null ? void 0 : _.id) || o.eventId, b = l in u ? u[l] : void 0;
|
|
2937
|
-
return f ? /* @__PURE__ */ e(_e, { children: /* @__PURE__ */ e(
|
|
2938
|
-
|
|
2938
|
+
return f ? /* @__PURE__ */ e(_e, { children: /* @__PURE__ */ e(Da, {}) }) : /* @__PURE__ */ e(_e, { children: /* @__PURE__ */ e(
|
|
2939
|
+
ba,
|
|
2939
2940
|
{
|
|
2940
2941
|
...o,
|
|
2941
2942
|
jersey: b
|
|
@@ -2952,40 +2953,40 @@ function ja({
|
|
|
2952
2953
|
)
|
|
2953
2954
|
] }) });
|
|
2954
2955
|
}
|
|
2955
|
-
function
|
|
2956
|
+
function Ha() {
|
|
2956
2957
|
return /* @__PURE__ */ h("div", { className: se.cardContainer, children: [
|
|
2957
|
-
/* @__PURE__ */ e(
|
|
2958
|
+
/* @__PURE__ */ e(Xe, { title: "" }),
|
|
2958
2959
|
/* @__PURE__ */ e("div", { className: se.cardBackground, children: /* @__PURE__ */ h(j, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
2959
2960
|
/* @__PURE__ */ h(j, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
2960
|
-
/* @__PURE__ */ e(
|
|
2961
|
-
/* @__PURE__ */ e(
|
|
2961
|
+
/* @__PURE__ */ e(D, { variant: "circular", width: 48, height: 48 }),
|
|
2962
|
+
/* @__PURE__ */ e(D, { variant: "circular", width: 48, height: 48 })
|
|
2962
2963
|
] }),
|
|
2963
2964
|
/* @__PURE__ */ h(j, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
2964
2965
|
/* @__PURE__ */ h(j, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
2965
|
-
/* @__PURE__ */ e(
|
|
2966
|
-
/* @__PURE__ */ e(
|
|
2966
|
+
/* @__PURE__ */ e(D, { variant: "text", width: 80, height: 12 }),
|
|
2967
|
+
/* @__PURE__ */ e(D, { variant: "text", width: 80, height: 12 })
|
|
2967
2968
|
] }),
|
|
2968
|
-
/* @__PURE__ */ e(j, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ e(
|
|
2969
|
+
/* @__PURE__ */ e(j, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ e(D, { variant: "text", width: 160, height: 12 }) }),
|
|
2969
2970
|
/* @__PURE__ */ h(j, { direction: "row", spacing: 1, children: [
|
|
2970
|
-
/* @__PURE__ */ e(
|
|
2971
|
-
/* @__PURE__ */ e(
|
|
2972
|
-
/* @__PURE__ */ e(
|
|
2971
|
+
/* @__PURE__ */ e(D, { variant: "text", width: 80, height: 16 }),
|
|
2972
|
+
/* @__PURE__ */ e(D, { variant: "text", width: 80, height: 16 }),
|
|
2973
|
+
/* @__PURE__ */ e(D, { variant: "text", width: 80, height: 16 })
|
|
2973
2974
|
] }),
|
|
2974
2975
|
/* @__PURE__ */ e("div", { className: se.jugadas, children: /* @__PURE__ */ h(j, { direction: "row", spacing: 1, children: [
|
|
2975
|
-
/* @__PURE__ */ e(
|
|
2976
|
-
/* @__PURE__ */ e(
|
|
2977
|
-
/* @__PURE__ */ e(
|
|
2976
|
+
/* @__PURE__ */ e(D, { variant: "rounded", width: 80, height: 32 }),
|
|
2977
|
+
/* @__PURE__ */ e(D, { variant: "rounded", width: 80, height: 32 }),
|
|
2978
|
+
/* @__PURE__ */ e(D, { variant: "rounded", width: 80, height: 32 })
|
|
2978
2979
|
] }) })
|
|
2979
2980
|
] })
|
|
2980
2981
|
] }) })
|
|
2981
2982
|
] });
|
|
2982
2983
|
}
|
|
2983
|
-
const
|
|
2984
|
-
wrapper:
|
|
2985
|
-
container:
|
|
2986
|
-
buttonWrapper:
|
|
2984
|
+
const Ka = "oraculo__OraculoSeccionEventoSemana-module__wrapper___eqVq-", Za = "oraculo__OraculoSeccionEventoSemana-module__container___5yFQs", Ja = "oraculo__OraculoSeccionEventoSemana-module__buttonWrapper___-6IDT", Ee = {
|
|
2985
|
+
wrapper: Ka,
|
|
2986
|
+
container: Za,
|
|
2987
|
+
buttonWrapper: Ja
|
|
2987
2988
|
};
|
|
2988
|
-
async function
|
|
2989
|
+
async function Xa(t, a = 2, n) {
|
|
2989
2990
|
const r = [];
|
|
2990
2991
|
for (let c = 0; c < t.length; c += a) {
|
|
2991
2992
|
if (n.aborted)
|
|
@@ -2997,12 +2998,12 @@ async function Ja(t, a = 2, n) {
|
|
|
2997
2998
|
}
|
|
2998
2999
|
return r;
|
|
2999
3000
|
}
|
|
3000
|
-
function
|
|
3001
|
+
function Ya(t) {
|
|
3001
3002
|
return [...t].sort(
|
|
3002
3003
|
(a, n) => new Date(a.start).getTime() - new Date(n.start).getTime()
|
|
3003
3004
|
);
|
|
3004
3005
|
}
|
|
3005
|
-
function
|
|
3006
|
+
function Qa(t) {
|
|
3006
3007
|
const a = /* @__PURE__ */ new Date(), n = new Date(a.getTime() + 480 * 60 * 60 * 1e3);
|
|
3007
3008
|
return t.filter((r) => {
|
|
3008
3009
|
if (!r.start) return !1;
|
|
@@ -3010,7 +3011,7 @@ function Ya(t) {
|
|
|
3010
3011
|
return c >= a && c <= n;
|
|
3011
3012
|
});
|
|
3012
3013
|
}
|
|
3013
|
-
function
|
|
3014
|
+
function en(t, a) {
|
|
3014
3015
|
const r = a.filter((c) => {
|
|
3015
3016
|
var i;
|
|
3016
3017
|
return ((i = c.betOfferType) == null ? void 0 : i.id) === 2;
|
|
@@ -3020,16 +3021,16 @@ function Qa(t, a) {
|
|
|
3020
3021
|
outcome: r[c.id]
|
|
3021
3022
|
}));
|
|
3022
3023
|
}
|
|
3023
|
-
function
|
|
3024
|
+
function tn({
|
|
3024
3025
|
items: t,
|
|
3025
3026
|
title: a = "En vivo",
|
|
3026
3027
|
iconUrl: n,
|
|
3027
3028
|
onViewMore: r,
|
|
3028
3029
|
className: c = ""
|
|
3029
3030
|
}) {
|
|
3030
|
-
const i = J(), m = X(), g = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE", v =
|
|
3031
|
-
|
|
3032
|
-
const [S, O] = G({}), [
|
|
3031
|
+
const i = J(), m = X(), g = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE", v = W(null), [p, d] = G({ isStart: !0, isEnd: !1 }), [u, C] = G(null);
|
|
3032
|
+
W(/* @__PURE__ */ new Set());
|
|
3033
|
+
const [S, O] = G({}), [M, x] = G({ start: null, end: null }), $ = "channel_id=1&client_id=200&competitionId=undefined&lang=es_PE&market=PE&useCombined=true", I = tt(M, 250), N = W(!1), s = () => {
|
|
3033
3034
|
i({
|
|
3034
3035
|
element: "evento_semana_view_more",
|
|
3035
3036
|
label: `Landing: ${m} - OraculoSeccionEventoSemana - Ver más`,
|
|
@@ -3095,14 +3096,14 @@ function en({
|
|
|
3095
3096
|
}
|
|
3096
3097
|
async function k(w, E, F) {
|
|
3097
3098
|
try {
|
|
3098
|
-
const f = await
|
|
3099
|
+
const f = await Xa(w, 2, F);
|
|
3099
3100
|
let o = [], l = [];
|
|
3100
3101
|
f.forEach((P) => {
|
|
3101
3102
|
P.events && (o.push(...P.events.map((U) => U.event)), l.push(
|
|
3102
3103
|
...P.events.flatMap((U) => U.betOffers || [])
|
|
3103
3104
|
));
|
|
3104
3105
|
});
|
|
3105
|
-
const b =
|
|
3106
|
+
const b = en(o, l), _ = Ya(Qa(b));
|
|
3106
3107
|
let T = _;
|
|
3107
3108
|
if (E.length > 0) {
|
|
3108
3109
|
const P = new Map(
|
|
@@ -3129,14 +3130,14 @@ function en({
|
|
|
3129
3130
|
w.abort();
|
|
3130
3131
|
};
|
|
3131
3132
|
}, [t]), K(() => {
|
|
3132
|
-
if (I.start === null || I.end === null || !(u != null && u.length) ||
|
|
3133
|
+
if (I.start === null || I.end === null || !(u != null && u.length) || N.current)
|
|
3133
3134
|
return;
|
|
3134
3135
|
const w = 2, E = Math.max(0, I.start - w), F = Math.min(u.length - 1, I.end + w), f = u.slice(E, F + 1).map((l) => l == null ? void 0 : l.id).filter(Boolean).filter((l) => S[l] === void 0);
|
|
3135
3136
|
if (!f.length) return;
|
|
3136
3137
|
let o = !1;
|
|
3137
|
-
return
|
|
3138
|
+
return N.current = !0, (async () => {
|
|
3138
3139
|
try {
|
|
3139
|
-
const l = await
|
|
3140
|
+
const l = await et(f);
|
|
3140
3141
|
o || O((b) => ({
|
|
3141
3142
|
...b,
|
|
3142
3143
|
...l.events
|
|
@@ -3144,7 +3145,7 @@ function en({
|
|
|
3144
3145
|
} catch (l) {
|
|
3145
3146
|
console.error("Jersey fetch error", l);
|
|
3146
3147
|
} finally {
|
|
3147
|
-
|
|
3148
|
+
N.current = !1;
|
|
3148
3149
|
}
|
|
3149
3150
|
})(), () => {
|
|
3150
3151
|
o = !0;
|
|
@@ -3190,7 +3191,7 @@ function en({
|
|
|
3190
3191
|
},
|
|
3191
3192
|
renderItem: (w) => {
|
|
3192
3193
|
const E = w.id, F = E in S ? S[E] : void 0;
|
|
3193
|
-
return q ? /* @__PURE__ */ e(_e, { children: /* @__PURE__ */ e(
|
|
3194
|
+
return q ? /* @__PURE__ */ e(_e, { children: /* @__PURE__ */ e(Ha, {}) }) : /* @__PURE__ */ e(_e, { children: /* @__PURE__ */ e(Ia, { event: w, jersey: F }) });
|
|
3194
3195
|
},
|
|
3195
3196
|
onMove: ({ isStart: w, isEnd: E, visibleStart: F, visibleEnd: f }) => {
|
|
3196
3197
|
d({ isStart: w, isEnd: E }), x({
|
|
@@ -3216,16 +3217,16 @@ function en({
|
|
|
3216
3217
|
) })
|
|
3217
3218
|
] }) });
|
|
3218
3219
|
}
|
|
3219
|
-
function
|
|
3220
|
+
function an({
|
|
3220
3221
|
backgrounds: t,
|
|
3221
3222
|
items: a,
|
|
3222
3223
|
hideItems: n
|
|
3223
3224
|
}) {
|
|
3224
3225
|
var E, F, f;
|
|
3225
|
-
const [r, c] = G(0), i = J(), m = X(), g =
|
|
3226
|
+
const [r, c] = G(0), i = J(), m = X(), g = W(null), v = W(!1), p = W(!1), d = (t == null ? void 0 : t.length) || 1, u = !t || t.length === 0, C = !u && ((E = t == null ? void 0 : t.length) != null ? E : 0) > 1, S = !n && ((F = a == null ? void 0 : a.length) != null ? F : 0) > 0, O = (o) => {
|
|
3226
3227
|
var l;
|
|
3227
3228
|
o.preventDefault(), o.stopPropagation(), q(), (l = g.current) == null || l.prev();
|
|
3228
|
-
},
|
|
3229
|
+
}, M = (o) => {
|
|
3229
3230
|
var l;
|
|
3230
3231
|
o.preventDefault(), o.stopPropagation(), q(), (l = g.current) == null || l.next();
|
|
3231
3232
|
}, x = "#B5B5B5", $ = {
|
|
@@ -3268,7 +3269,7 @@ function tn({
|
|
|
3268
3269
|
}, 500);
|
|
3269
3270
|
return () => clearTimeout(o);
|
|
3270
3271
|
}, []);
|
|
3271
|
-
const
|
|
3272
|
+
const N = (o, l) => {
|
|
3272
3273
|
var _, T;
|
|
3273
3274
|
const b = ((T = (_ = o.href) == null ? void 0 : _.split("/").pop()) == null ? void 0 : T.split(".")[0]) || o.label || o.id || `banner_${l + 1}`;
|
|
3274
3275
|
i({
|
|
@@ -3328,7 +3329,7 @@ function tn({
|
|
|
3328
3329
|
},
|
|
3329
3330
|
tags: { banner_position: String(l + 1) }
|
|
3330
3331
|
});
|
|
3331
|
-
}, k = 5e3, B =
|
|
3332
|
+
}, k = 5e3, B = W(null), z = !u && ((f = t == null ? void 0 : t.length) != null ? f : 0) > 1, q = () => {
|
|
3332
3333
|
B.current != null && (window.clearInterval(B.current), B.current = null);
|
|
3333
3334
|
}, w = () => {
|
|
3334
3335
|
q(), z && (B.current = window.setInterval(() => {
|
|
@@ -3378,7 +3379,7 @@ function tn({
|
|
|
3378
3379
|
target: (b = o.target) != null ? b : "_self",
|
|
3379
3380
|
rel: o.target === "_blank" ? "noopener noreferrer" : void 0,
|
|
3380
3381
|
onClick: () => {
|
|
3381
|
-
|
|
3382
|
+
N(o, l);
|
|
3382
3383
|
},
|
|
3383
3384
|
sx: {
|
|
3384
3385
|
position: "relative",
|
|
@@ -3442,7 +3443,7 @@ function tn({
|
|
|
3442
3443
|
),
|
|
3443
3444
|
C && /* @__PURE__ */ h(ne, { children: [
|
|
3444
3445
|
/* @__PURE__ */ e(
|
|
3445
|
-
|
|
3446
|
+
Le,
|
|
3446
3447
|
{
|
|
3447
3448
|
"aria-label": "Anterior",
|
|
3448
3449
|
onClick: O,
|
|
@@ -3457,10 +3458,10 @@ function tn({
|
|
|
3457
3458
|
}
|
|
3458
3459
|
),
|
|
3459
3460
|
/* @__PURE__ */ e(
|
|
3460
|
-
|
|
3461
|
+
Le,
|
|
3461
3462
|
{
|
|
3462
3463
|
"aria-label": "Siguiente",
|
|
3463
|
-
onClick:
|
|
3464
|
+
onClick: M,
|
|
3464
3465
|
sx: {
|
|
3465
3466
|
...$,
|
|
3466
3467
|
right: "120px",
|
|
@@ -3484,7 +3485,7 @@ function tn({
|
|
|
3484
3485
|
justifyContent: "center",
|
|
3485
3486
|
zIndex: 2
|
|
3486
3487
|
},
|
|
3487
|
-
children: /* @__PURE__ */ e(
|
|
3488
|
+
children: /* @__PURE__ */ e(Ze, { total: d, active: r, durationMs: k })
|
|
3488
3489
|
}
|
|
3489
3490
|
)
|
|
3490
3491
|
]
|
|
@@ -3541,7 +3542,7 @@ function tn({
|
|
|
3541
3542
|
}
|
|
3542
3543
|
),
|
|
3543
3544
|
/* @__PURE__ */ e(
|
|
3544
|
-
|
|
3545
|
+
Ge,
|
|
3545
3546
|
{
|
|
3546
3547
|
sx: {
|
|
3547
3548
|
fontSize: { xs: 10, sm: 11, md: 12 },
|
|
@@ -3562,7 +3563,7 @@ function tn({
|
|
|
3562
3563
|
}
|
|
3563
3564
|
);
|
|
3564
3565
|
}
|
|
3565
|
-
const
|
|
3566
|
+
const nn = [
|
|
3566
3567
|
{ src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/IBK.svg", alt: "Interbank" },
|
|
3567
3568
|
{ src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/Yape.svg", alt: "Yape" },
|
|
3568
3569
|
{ src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/BCP.png", alt: "BCP" },
|
|
@@ -3571,14 +3572,14 @@ const an = [
|
|
|
3571
3572
|
{ src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/monnet.svg", alt: "Monnet" },
|
|
3572
3573
|
{ src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/niubiz.svg", alt: "Niubiz" }
|
|
3573
3574
|
];
|
|
3574
|
-
function
|
|
3575
|
+
function on({
|
|
3575
3576
|
title: t = "Medios de pago",
|
|
3576
|
-
items: a =
|
|
3577
|
+
items: a = nn
|
|
3577
3578
|
}) {
|
|
3578
3579
|
const n = Math.ceil(a.length / 2), r = a.slice(0, n), c = a.slice(n);
|
|
3579
3580
|
return /* @__PURE__ */ h(Z, { component: "section", "aria-labelledby": "mp-title", sx: { color: "#fff" }, children: [
|
|
3580
3581
|
/* @__PURE__ */ e(
|
|
3581
|
-
|
|
3582
|
+
Ge,
|
|
3582
3583
|
{
|
|
3583
3584
|
id: "mp-title",
|
|
3584
3585
|
variant: "h6",
|
|
@@ -3614,7 +3615,7 @@ function nn({
|
|
|
3614
3615
|
alignItems: "center",
|
|
3615
3616
|
gap: { xs: 2, md: 3 },
|
|
3616
3617
|
flexWrap: "wrap",
|
|
3617
|
-
children: r.map((i, m) => /* @__PURE__ */ e(
|
|
3618
|
+
children: r.map((i, m) => /* @__PURE__ */ e(Ae, { ...i }, `${i.alt}-${i.src}-${m}`))
|
|
3618
3619
|
}
|
|
3619
3620
|
),
|
|
3620
3621
|
/* @__PURE__ */ e(
|
|
@@ -3625,26 +3626,53 @@ function nn({
|
|
|
3625
3626
|
alignItems: "center",
|
|
3626
3627
|
gap: { xs: 2, md: 3 },
|
|
3627
3628
|
flexWrap: "wrap",
|
|
3628
|
-
children: c.map((i, m) => /* @__PURE__ */ e(
|
|
3629
|
+
children: c.map((i, m) => /* @__PURE__ */ e(Ae, { ...i }, `${i.alt}-${i.src}-${m}`))
|
|
3629
3630
|
}
|
|
3630
3631
|
)
|
|
3631
3632
|
] })
|
|
3632
3633
|
] });
|
|
3633
3634
|
}
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
},
|
|
3635
|
+
function Me({
|
|
3636
|
+
children: t
|
|
3637
|
+
}) {
|
|
3638
|
+
const a = ht(), n = ye.useMemo(
|
|
3639
|
+
() => bt(a, {
|
|
3640
|
+
typography: { fontFamily: "var(--orc-font)" },
|
|
3641
|
+
components: {
|
|
3642
|
+
MuiTypography: {
|
|
3643
|
+
styleOverrides: {
|
|
3644
|
+
root: { fontFamily: "var(--orc-font)" }
|
|
3645
|
+
}
|
|
3646
|
+
}
|
|
3647
|
+
}
|
|
3648
|
+
}),
|
|
3649
|
+
[a]
|
|
3650
|
+
);
|
|
3651
|
+
return /* @__PURE__ */ h(vt, { theme: n, children: [
|
|
3652
|
+
/* @__PURE__ */ e(_t, {}),
|
|
3653
|
+
t
|
|
3654
|
+
] });
|
|
3655
|
+
}
|
|
3656
|
+
function Tn({
|
|
3657
|
+
docId: t = "home",
|
|
3658
|
+
children: a
|
|
3659
|
+
}) {
|
|
3660
|
+
return /* @__PURE__ */ e(Me, { children: /* @__PURE__ */ e($e, { docId: t, children: a }) });
|
|
3661
|
+
}
|
|
3662
|
+
const rn = {
|
|
3663
|
+
OraculoSeccionDestacados: Oa,
|
|
3664
|
+
OraculoSeccionTopJuegos: ka,
|
|
3665
|
+
OraculoSeccionCasinoEnVivo: Na,
|
|
3666
|
+
OraculoSeccionCasino: Ba,
|
|
3667
|
+
OraculoSeccionVirtuales: Fa,
|
|
3668
|
+
OraculoSeccionClubOlimpo: Ra,
|
|
3669
|
+
OraculoSeccionBonoBienvenida: za,
|
|
3670
|
+
OraculoSeccionBanners: an,
|
|
3671
|
+
OraculoSeccionMediosPago: on,
|
|
3672
|
+
OraculoSeccionEventoEnVivo: Ga,
|
|
3673
|
+
OraculoSeccionEventoSemana: tn,
|
|
3674
|
+
OraculoSeccionEventoCombinadas: Va
|
|
3675
|
+
}, Ve = {
|
|
3648
3676
|
sections: [
|
|
3649
3677
|
{
|
|
3650
3678
|
variableName2: "backgrounds",
|
|
@@ -4707,29 +4735,7 @@ const on = {
|
|
|
4707
4735
|
updatedAt: "2026-01-22T04:11:09.501Z"
|
|
4708
4736
|
}
|
|
4709
4737
|
]
|
|
4710
|
-
};
|
|
4711
|
-
function Ue({
|
|
4712
|
-
children: t
|
|
4713
|
-
}) {
|
|
4714
|
-
const a = vt(), n = ye.useMemo(
|
|
4715
|
-
() => _t(a, {
|
|
4716
|
-
typography: { fontFamily: "var(--orc-font)" },
|
|
4717
|
-
components: {
|
|
4718
|
-
MuiTypography: {
|
|
4719
|
-
styleOverrides: {
|
|
4720
|
-
root: { fontFamily: "var(--orc-font)" }
|
|
4721
|
-
}
|
|
4722
|
-
}
|
|
4723
|
-
}
|
|
4724
|
-
}),
|
|
4725
|
-
[a]
|
|
4726
|
-
);
|
|
4727
|
-
return /* @__PURE__ */ h(yt, { theme: n, children: [
|
|
4728
|
-
/* @__PURE__ */ e(xt, {}),
|
|
4729
|
-
t
|
|
4730
|
-
] });
|
|
4731
|
-
}
|
|
4732
|
-
const rn = (t) => typeof t == "function" || t && typeof t == "object" && "$$typeof" in t, ln = (t) => /^OraculoSeccion[A-Z]/.test(t);
|
|
4738
|
+
}, ln = (t) => typeof t == "function" || t && typeof t == "object" && "$$typeof" in t, sn = (t) => /^OraculoSeccion[A-Z]/.test(t);
|
|
4733
4739
|
function ke(t) {
|
|
4734
4740
|
return t && Array.isArray(t.sections) ? t.sections.slice().sort((a, n) => {
|
|
4735
4741
|
var r, c;
|
|
@@ -4752,18 +4758,18 @@ function ke(t) {
|
|
|
4752
4758
|
};
|
|
4753
4759
|
}) : [];
|
|
4754
4760
|
}
|
|
4755
|
-
const
|
|
4756
|
-
Object.entries(
|
|
4757
|
-
([t, a]) =>
|
|
4761
|
+
const cn = Object.fromEntries(
|
|
4762
|
+
Object.entries(rn).filter(
|
|
4763
|
+
([t, a]) => sn(t) && ln(a)
|
|
4758
4764
|
)
|
|
4759
|
-
),
|
|
4765
|
+
), dn = (t) => {
|
|
4760
4766
|
try {
|
|
4761
4767
|
return Object.fromEntries(t != null ? t : []);
|
|
4762
4768
|
} catch {
|
|
4763
4769
|
return console.warn("[oraculo] extras inválidos. Debe ser Array<[string, unknown]>", t), {};
|
|
4764
4770
|
}
|
|
4765
4771
|
};
|
|
4766
|
-
class
|
|
4772
|
+
class De extends Error {
|
|
4767
4773
|
constructor(a, n, r) {
|
|
4768
4774
|
super(`HTTP ${a} ${r}`), this.status = a, this.url = n, this.statusText = r, this.name = "HttpError";
|
|
4769
4775
|
}
|
|
@@ -4772,7 +4778,7 @@ const We = [
|
|
|
4772
4778
|
"OraculoSeccionEventoEnVivo",
|
|
4773
4779
|
"OraculoSeccionEventoSemana",
|
|
4774
4780
|
"OraculoSeccionEventoCombinadas"
|
|
4775
|
-
],
|
|
4781
|
+
], En = ({
|
|
4776
4782
|
sectionsOverride: t,
|
|
4777
4783
|
docId: a = "home",
|
|
4778
4784
|
db: n,
|
|
@@ -4780,23 +4786,23 @@ const We = [
|
|
|
4780
4786
|
loader: c,
|
|
4781
4787
|
disableWrapper: i = !1
|
|
4782
4788
|
}) => {
|
|
4783
|
-
const m = ue(() =>
|
|
4789
|
+
const m = ue(() => dn(r), [r]), g = c || m.loader, [v, p] = G([]), [d, u] = G(!1), [C, S] = G({}), [O, M] = G({}), [x, $] = G({}), I = rt("(min-width:1024px)");
|
|
4784
4790
|
K(() => {
|
|
4785
4791
|
if (t) return;
|
|
4786
4792
|
if (!n) {
|
|
4787
|
-
console.warn("[landing] sin db -> fallback json"), p(ke(
|
|
4793
|
+
console.warn("[landing] sin db -> fallback json"), p(ke(Ve));
|
|
4788
4794
|
return;
|
|
4789
4795
|
}
|
|
4790
4796
|
const f = (l, b) => {
|
|
4791
|
-
console.warn("[landing] FALLBACK:", l, b != null ? b : ""), p(ke(
|
|
4797
|
+
console.warn("[landing] FALLBACK:", l, b != null ? b : ""), p(ke(Ve)), u(!1);
|
|
4792
4798
|
};
|
|
4793
4799
|
if (process.env.NEXT_PUBLIC_LANDING_FORCE_FALLBACK === "1") {
|
|
4794
4800
|
u(!0), f("forzado por env");
|
|
4795
4801
|
return;
|
|
4796
4802
|
}
|
|
4797
4803
|
u(!0);
|
|
4798
|
-
const o =
|
|
4799
|
-
|
|
4804
|
+
const o = yt(
|
|
4805
|
+
xt(n, "landings", a),
|
|
4800
4806
|
(l) => {
|
|
4801
4807
|
try {
|
|
4802
4808
|
if (!l.exists()) {
|
|
@@ -4820,10 +4826,10 @@ const We = [
|
|
|
4820
4826
|
}
|
|
4821
4827
|
);
|
|
4822
4828
|
return () => o();
|
|
4823
|
-
}, [t, a, n]), K(() => (
|
|
4829
|
+
}, [t, a, n]), K(() => (Ta(m), () => Ea()), [m]), K(() => {
|
|
4824
4830
|
(t ? t.slice() : v.slice()).map((l) => l.componentKey).filter((l) => !!l).length;
|
|
4825
4831
|
}, [t, v]);
|
|
4826
|
-
const
|
|
4832
|
+
const N = async (f) => {
|
|
4827
4833
|
if (We.includes(f.componentKey))
|
|
4828
4834
|
return {
|
|
4829
4835
|
// whatever empty structure your UI expects
|
|
@@ -4856,7 +4862,7 @@ const We = [
|
|
|
4856
4862
|
headers: P,
|
|
4857
4863
|
body: T
|
|
4858
4864
|
});
|
|
4859
|
-
if (!U.ok) throw new
|
|
4865
|
+
if (!U.ok) throw new De(U.status, _, U.statusText);
|
|
4860
4866
|
return U.json();
|
|
4861
4867
|
}, s = ue(
|
|
4862
4868
|
() => t ? t.slice() : v.slice(),
|
|
@@ -4867,15 +4873,15 @@ const We = [
|
|
|
4867
4873
|
if (f.length)
|
|
4868
4874
|
for (const { s: o, url: l } of f) {
|
|
4869
4875
|
const b = `${o.id}|${l}`;
|
|
4870
|
-
y.current.has(b) || (y.current.add(b),
|
|
4876
|
+
y.current.has(b) || (y.current.add(b), M((_) => ({ ..._, [o.id]: !0 })), $((_) => ({ ..._, [o.id]: "" })), (async () => {
|
|
4871
4877
|
try {
|
|
4872
|
-
const _ = await
|
|
4878
|
+
const _ = await N(o);
|
|
4873
4879
|
S((T) => ({ ...T, [o.id]: _ }));
|
|
4874
4880
|
} catch (_) {
|
|
4875
4881
|
let T = "Error desconocido";
|
|
4876
|
-
_ instanceof
|
|
4882
|
+
_ instanceof De ? T = `Error HTTP ${_.status} (${_.statusText}) en ${_.url}` : _ instanceof SyntaxError ? T = "Respuesta no es JSON válido" : _ instanceof TypeError ? T = "Fallo de red / CORS / conexión" : typeof _ == "string" && (T = _.toString()), $((P) => ({ ...P, [o.id]: T }));
|
|
4877
4883
|
} finally {
|
|
4878
|
-
|
|
4884
|
+
M((_) => ({ ..._, [o.id]: !1 }));
|
|
4879
4885
|
}
|
|
4880
4886
|
})());
|
|
4881
4887
|
}
|
|
@@ -4967,7 +4973,7 @@ const We = [
|
|
|
4967
4973
|
component: "bg-yellow-100 text-yellow-800"
|
|
4968
4974
|
}[o]}`, children: l }, f), F = (f) => {
|
|
4969
4975
|
var oe;
|
|
4970
|
-
const o = f.componentKey, l =
|
|
4976
|
+
const o = f.componentKey, l = cn[o];
|
|
4971
4977
|
if (!l)
|
|
4972
4978
|
return console.warn(`No hay componente registrado para "${o}"`), E(
|
|
4973
4979
|
f.id,
|
|
@@ -5005,7 +5011,7 @@ const We = [
|
|
|
5005
5011
|
boxSizing: "border-box"
|
|
5006
5012
|
}, className: "oraculo-section-wrapper", children: /* @__PURE__ */ e(l, { ...U }) }, f.id);
|
|
5007
5013
|
};
|
|
5008
|
-
return d && !t ? g ? /* @__PURE__ */ e(g, {}) : /* @__PURE__ */ e("div", { children: "Cargando..." }) : !d && !t && v.length === 0 ? /* @__PURE__ */ e("div", { className: "text-xs text-gray-500", children: "Sin secciones (Firestore)" }) : i ? /* @__PURE__ */ e(
|
|
5014
|
+
return d && !t ? g ? /* @__PURE__ */ e(g, {}) : /* @__PURE__ */ e("div", { children: "Cargando..." }) : !d && !t && v.length === 0 ? /* @__PURE__ */ e("div", { className: "text-xs text-gray-500", children: "Sin secciones (Firestore)" }) : i ? /* @__PURE__ */ e(Me, { children: /* @__PURE__ */ e($e, { docId: a, children: /* @__PURE__ */ e(ne, { children: k.map(F) }) }) }) : /* @__PURE__ */ e(Me, { children: /* @__PURE__ */ e($e, { docId: a, children: /* @__PURE__ */ e(
|
|
5009
5015
|
lt,
|
|
5010
5016
|
{
|
|
5011
5017
|
className: "oli-font",
|
|
@@ -5025,42 +5031,45 @@ const We = [
|
|
|
5025
5031
|
) }) });
|
|
5026
5032
|
};
|
|
5027
5033
|
export {
|
|
5034
|
+
$e as DocIdProvider,
|
|
5028
5035
|
H as OraculoButton,
|
|
5029
5036
|
le as OraculoCarousel,
|
|
5030
|
-
|
|
5037
|
+
Ze as OraculoCarouselDots,
|
|
5031
5038
|
ea as OraculoClubOlimpoVisual,
|
|
5032
5039
|
pa as OraculoEventCombinadasCard,
|
|
5033
|
-
|
|
5040
|
+
ba as OraculoEventEnVivoCard,
|
|
5034
5041
|
Et as OraculoEventHeader,
|
|
5035
|
-
|
|
5036
|
-
|
|
5037
|
-
|
|
5038
|
-
|
|
5042
|
+
Je as OraculoEventLabel,
|
|
5043
|
+
Xe as OraculoEventLeague,
|
|
5044
|
+
Ye as OraculoEventScore,
|
|
5045
|
+
Ia as OraculoEventSemanaCard,
|
|
5039
5046
|
Tt as OraculoEventStatus,
|
|
5040
5047
|
Ot as OraculoEventStatusBadge,
|
|
5041
5048
|
be as OraculoEventTeamInfo,
|
|
5042
5049
|
fe as OraculoGameCard,
|
|
5043
5050
|
Yt as OraculoGameRankCard,
|
|
5044
|
-
|
|
5051
|
+
Qe as OraculoGameSlide,
|
|
5045
5052
|
ae as OraculoGridGroup,
|
|
5046
5053
|
Qt as OraculoLiveCasinoCard,
|
|
5047
|
-
|
|
5048
|
-
|
|
5049
|
-
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
|
|
5053
|
-
|
|
5054
|
-
|
|
5055
|
-
|
|
5056
|
-
|
|
5057
|
-
|
|
5058
|
-
|
|
5059
|
-
|
|
5060
|
-
|
|
5054
|
+
Ae as OraculoLogoMediosPago,
|
|
5055
|
+
En as OraculoPageLandingPreview,
|
|
5056
|
+
an as OraculoSeccionBanners,
|
|
5057
|
+
za as OraculoSeccionBonoBienvenida,
|
|
5058
|
+
Ba as OraculoSeccionCasino,
|
|
5059
|
+
Na as OraculoSeccionCasinoEnVivo,
|
|
5060
|
+
Ra as OraculoSeccionClubOlimpo,
|
|
5061
|
+
Oa as OraculoSeccionDestacados,
|
|
5062
|
+
Va as OraculoSeccionEventoCombinadas,
|
|
5063
|
+
Ga as OraculoSeccionEventoEnVivo,
|
|
5064
|
+
tn as OraculoSeccionEventoSemana,
|
|
5065
|
+
on as OraculoSeccionMediosPago,
|
|
5066
|
+
ka as OraculoSeccionTopJuegos,
|
|
5067
|
+
Fa as OraculoSeccionVirtuales,
|
|
5068
|
+
Tn as OraculoSectionHost,
|
|
5061
5069
|
re as OraculoSectionTitle,
|
|
5062
|
-
|
|
5063
|
-
|
|
5064
|
-
|
|
5070
|
+
Me as OraculoThemeProvider,
|
|
5071
|
+
ka as OraculoTopJuegoItem,
|
|
5072
|
+
Fe as OraculoWelcomeBanner,
|
|
5073
|
+
En as default
|
|
5065
5074
|
};
|
|
5066
5075
|
//# sourceMappingURL=index.es.js.map
|