oraculo-ui 0.2.57 → 0.2.58
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.css +1 -1
- package/dist/index.es.js +377 -387
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsx as t, jsxs as h, Fragment as te } from "react/jsx-runtime";
|
|
2
2
|
import { Link as ht, Box as le, useMediaQuery as Je, IconButton as Qe, Typography as bt, Stack as Re, Container as Bt } from "@mui/material";
|
|
3
|
-
import ve, { useState as ee, useEffect as re, useRef as Z, forwardRef as Lt, useImperativeHandle as Rt, useCallback as Pe, createContext as Pt, useContext as Ft, useMemo as de, useLayoutEffect as
|
|
3
|
+
import ve, { useState as ee, useEffect as re, useRef as Z, forwardRef as Lt, useImperativeHandle as Rt, useCallback as Pe, createContext as Pt, useContext as Ft, useMemo as de, useLayoutEffect as zt } from "react";
|
|
4
4
|
import X from "@mui/material/Skeleton";
|
|
5
|
-
import { Splide as
|
|
6
|
-
import
|
|
5
|
+
import { Splide as Ut, SplideSlide as qt } from "@splidejs/react-splide";
|
|
6
|
+
import U from "@mui/material/Box";
|
|
7
7
|
import he from "@mui/material/Typography";
|
|
8
8
|
import Q from "@mui/material/Stack";
|
|
9
9
|
import { useCaptureInteraction as se } from "@olimpo/capture-client";
|
|
10
|
-
import { ChevronLeftRounded as
|
|
10
|
+
import { ChevronLeftRounded as De, ChevronRightRounded as Ge } from "@mui/icons-material";
|
|
11
11
|
import Ne from "@mui/material/useMediaQuery";
|
|
12
12
|
import _t from "@mui/icons-material/ChevronLeftRounded";
|
|
13
13
|
import vt from "@mui/icons-material/ChevronRightRounded";
|
|
14
|
-
import { useTheme as
|
|
15
|
-
import
|
|
16
|
-
import { onSnapshot as
|
|
14
|
+
import { useTheme as Wt, createTheme as Vt, ThemeProvider as Dt } from "@mui/material/styles";
|
|
15
|
+
import Gt from "@mui/material/CssBaseline";
|
|
16
|
+
import { onSnapshot as Ht, doc as Zt } from "firebase/firestore";
|
|
17
17
|
function ae({
|
|
18
18
|
children: e,
|
|
19
19
|
onClick: a,
|
|
@@ -239,8 +239,8 @@ function na({ live: e, time: a, extra: n }) {
|
|
|
239
239
|
return /* @__PURE__ */ h("div", { className: "oli-font", style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
|
|
240
240
|
e && /* @__PURE__ */ t(aa, { text: "En vivo" }),
|
|
241
241
|
(a || n) && /* @__PURE__ */ h("div", { style: { display: "flex", alignItems: "center", gap: "4px" }, children: [
|
|
242
|
-
a && /* @__PURE__ */ t("span", { style: { fontSize: "14px", fontWeight: 400, lineHeight: "20px"
|
|
243
|
-
n && /* @__PURE__ */ h("span", { style: { fontSize: "14px", fontWeight: 700, lineHeight: "20px",
|
|
242
|
+
a && /* @__PURE__ */ t("span", { style: { fontSize: "14px", fontWeight: 400, lineHeight: "20px" }, children: a }),
|
|
243
|
+
n && /* @__PURE__ */ h("span", { style: { fontSize: "14px", fontWeight: 700, lineHeight: "20px", color: "#9EE86E", display: "flex", alignItems: "center", gap: "4px" }, children: [
|
|
244
244
|
/* @__PURE__ */ t("svg", { width: "4", height: "4", viewBox: "0 0 4 4", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ t("circle", { cx: "2", cy: "2", r: "2", fill: "#9EE86E" }) }),
|
|
245
245
|
n
|
|
246
246
|
] })
|
|
@@ -520,7 +520,7 @@ function Ca({
|
|
|
520
520
|
)
|
|
521
521
|
] });
|
|
522
522
|
}
|
|
523
|
-
function
|
|
523
|
+
function Ue({ name: e, jersey: a, size: n = "regular", sport: o = "FOOTBALL", gender: i = "men", flag: s = "" }) {
|
|
524
524
|
return /* @__PURE__ */ h("div", { className: `oli-font ${Ce.team} ${Ce[n]}`, children: [
|
|
525
525
|
a != null && a.base ? /* @__PURE__ */ t(Ca, { sport: o, gender: i, colors: a, flag: s, className: `${Ce.logo}` }) : /* @__PURE__ */ t(X, { variant: "circular", className: `${Ce.logo} ${Ce.skeleton}` }),
|
|
526
526
|
/* @__PURE__ */ t("span", { className: Ce.name, children: e })
|
|
@@ -557,7 +557,7 @@ const Na = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", $a = "ora
|
|
|
557
557
|
right: $a,
|
|
558
558
|
left: Aa,
|
|
559
559
|
svg: Ma
|
|
560
|
-
}, Ba =
|
|
560
|
+
}, Ba = Ut, La = qt, xe = Lt(
|
|
561
561
|
({
|
|
562
562
|
items: e = [],
|
|
563
563
|
renderItem: a,
|
|
@@ -589,20 +589,20 @@ const Na = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", $a = "ora
|
|
|
589
589
|
}
|
|
590
590
|
}));
|
|
591
591
|
const E = ($) => {
|
|
592
|
-
var
|
|
593
|
-
const y = $.Components.Slides, I = $.Components.Controller, F = $.root.querySelector(".splide__track"), B = (
|
|
594
|
-
let V = 0,
|
|
595
|
-
for (let
|
|
596
|
-
const K = y.getAt(
|
|
592
|
+
var H;
|
|
593
|
+
const y = $.Components.Slides, I = $.Components.Controller, F = $.root.querySelector(".splide__track"), B = (H = F == null ? void 0 : F.clientWidth) != null ? H : 0, P = I.getIndex(), W = y.getLength();
|
|
594
|
+
let V = 0, D = P;
|
|
595
|
+
for (let q = P; q < W; q++) {
|
|
596
|
+
const K = y.getAt(q);
|
|
597
597
|
if (!K || (V += K.slide.offsetWidth, V > B)) break;
|
|
598
|
-
|
|
598
|
+
D = q;
|
|
599
599
|
}
|
|
600
|
-
return { visibleStart: P, visibleEnd:
|
|
600
|
+
return { visibleStart: P, visibleEnd: D };
|
|
601
601
|
}, _ = ($) => {
|
|
602
602
|
const y = $.root.querySelector(".splide__track"), I = $.root.querySelector(".splide__list");
|
|
603
603
|
return !y || !I ? !1 : I.scrollWidth > y.clientWidth + 1;
|
|
604
604
|
}, C = Z(!1), O = Pe(($) => {
|
|
605
|
-
var
|
|
605
|
+
var H, q;
|
|
606
606
|
if (C.current) return;
|
|
607
607
|
const I = $.Components.Slides.getLength(), F = M.current;
|
|
608
608
|
if (M.current = "user", !_($)) {
|
|
@@ -618,10 +618,10 @@ const Na = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", $a = "ora
|
|
|
618
618
|
return;
|
|
619
619
|
}
|
|
620
620
|
const { visibleStart: B, visibleEnd: P } = E($), W = B === 0, V = P === I - 1;
|
|
621
|
-
m && ((
|
|
622
|
-
const
|
|
621
|
+
m && ((H = v.current) == null || H.style.setProperty("--gradient-opacity", W ? "0" : "1"), (q = S.current) == null || q.style.setProperty("--gradient-opacity", V ? "0" : "1"));
|
|
622
|
+
const D = $.Components.Controller.getIndex();
|
|
623
623
|
c == null || c({
|
|
624
|
-
index:
|
|
624
|
+
index: D,
|
|
625
625
|
isStart: W,
|
|
626
626
|
isEnd: V,
|
|
627
627
|
total: I,
|
|
@@ -764,7 +764,7 @@ const Na = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", $a = "ora
|
|
|
764
764
|
c.stopPropagation(), a == null || a();
|
|
765
765
|
}, l = o ? { width: "100%", height: "100%" } : { width: `${i.w}px`, height: `${i.h}px` };
|
|
766
766
|
return /* @__PURE__ */ h(
|
|
767
|
-
|
|
767
|
+
U,
|
|
768
768
|
{
|
|
769
769
|
onClick: a,
|
|
770
770
|
role: "button",
|
|
@@ -806,7 +806,7 @@ const Na = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", $a = "ora
|
|
|
806
806
|
}
|
|
807
807
|
),
|
|
808
808
|
/* @__PURE__ */ t(
|
|
809
|
-
|
|
809
|
+
U,
|
|
810
810
|
{
|
|
811
811
|
className: "oraculo-game-card-overlay",
|
|
812
812
|
sx: {
|
|
@@ -821,7 +821,7 @@ const Na = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", $a = "ora
|
|
|
821
821
|
}
|
|
822
822
|
),
|
|
823
823
|
/* @__PURE__ */ t(
|
|
824
|
-
|
|
824
|
+
U,
|
|
825
825
|
{
|
|
826
826
|
className: "oraculo-game-card-btn",
|
|
827
827
|
sx: {
|
|
@@ -863,7 +863,7 @@ function Ra({
|
|
|
863
863
|
md: Math.round(((x = (b = i.md) == null ? void 0 : b.font) != null ? x : 64) * 0.28)
|
|
864
864
|
};
|
|
865
865
|
return /* @__PURE__ */ h(
|
|
866
|
-
|
|
866
|
+
U,
|
|
867
867
|
{
|
|
868
868
|
sx: {
|
|
869
869
|
position: "relative",
|
|
@@ -890,7 +890,7 @@ function Ra({
|
|
|
890
890
|
},
|
|
891
891
|
children: [
|
|
892
892
|
/* @__PURE__ */ t(
|
|
893
|
-
|
|
893
|
+
U,
|
|
894
894
|
{
|
|
895
895
|
sx: {
|
|
896
896
|
position: "absolute",
|
|
@@ -924,7 +924,7 @@ function Ra({
|
|
|
924
924
|
}
|
|
925
925
|
),
|
|
926
926
|
/* @__PURE__ */ t(
|
|
927
|
-
|
|
927
|
+
U,
|
|
928
928
|
{
|
|
929
929
|
component: "span",
|
|
930
930
|
sx: {
|
|
@@ -962,7 +962,7 @@ const nt = ({
|
|
|
962
962
|
}) => {
|
|
963
963
|
var l;
|
|
964
964
|
return s ? /* @__PURE__ */ t(
|
|
965
|
-
|
|
965
|
+
U,
|
|
966
966
|
{
|
|
967
967
|
sx: {
|
|
968
968
|
flex: "0 0 auto",
|
|
@@ -988,7 +988,7 @@ const nt = ({
|
|
|
988
988
|
)
|
|
989
989
|
}
|
|
990
990
|
) : /* @__PURE__ */ h(
|
|
991
|
-
|
|
991
|
+
U,
|
|
992
992
|
{
|
|
993
993
|
onClick: i,
|
|
994
994
|
sx: {
|
|
@@ -1012,7 +1012,7 @@ const nt = ({
|
|
|
1012
1012
|
},
|
|
1013
1013
|
children: [
|
|
1014
1014
|
/* @__PURE__ */ t(
|
|
1015
|
-
|
|
1015
|
+
U,
|
|
1016
1016
|
{
|
|
1017
1017
|
component: "img",
|
|
1018
1018
|
src: e,
|
|
@@ -1028,7 +1028,7 @@ const nt = ({
|
|
|
1028
1028
|
}
|
|
1029
1029
|
),
|
|
1030
1030
|
/* @__PURE__ */ t(
|
|
1031
|
-
|
|
1031
|
+
U,
|
|
1032
1032
|
{
|
|
1033
1033
|
className: "orc-live-provider-label",
|
|
1034
1034
|
sx: {
|
|
@@ -1058,7 +1058,7 @@ const nt = ({
|
|
|
1058
1058
|
]
|
|
1059
1059
|
}
|
|
1060
1060
|
);
|
|
1061
|
-
}, Ze = 12, je = ({ r: e = 16 }) => /* @__PURE__ */ t(
|
|
1061
|
+
}, Ze = 12, je = ({ r: e = 16 }) => /* @__PURE__ */ t(U, { sx: { width: "100%", height: "100%", borderRadius: e, overflow: "hidden" }, children: /* @__PURE__ */ t(
|
|
1062
1062
|
X,
|
|
1063
1063
|
{
|
|
1064
1064
|
variant: "rectangular",
|
|
@@ -1084,7 +1084,7 @@ const nt = ({
|
|
|
1084
1084
|
if (a === "mosaic") {
|
|
1085
1085
|
const c = e[0], f = e.slice(1, 5);
|
|
1086
1086
|
return /* @__PURE__ */ h(
|
|
1087
|
-
|
|
1087
|
+
U,
|
|
1088
1088
|
{
|
|
1089
1089
|
sx: {
|
|
1090
1090
|
display: "grid",
|
|
@@ -1108,7 +1108,7 @@ const nt = ({
|
|
|
1108
1108
|
},
|
|
1109
1109
|
children: [
|
|
1110
1110
|
/* @__PURE__ */ t(
|
|
1111
|
-
|
|
1111
|
+
U,
|
|
1112
1112
|
{
|
|
1113
1113
|
sx: {
|
|
1114
1114
|
width: { xs: 184, md: 280 },
|
|
@@ -1131,7 +1131,7 @@ const nt = ({
|
|
|
1131
1131
|
(o ? Array.from({ length: 4 }) : f).map((g, m) => {
|
|
1132
1132
|
var d, u;
|
|
1133
1133
|
return /* @__PURE__ */ t(
|
|
1134
|
-
|
|
1134
|
+
U,
|
|
1135
1135
|
{
|
|
1136
1136
|
sx: {
|
|
1137
1137
|
width: { xs: 104, md: 152 },
|
|
@@ -1157,7 +1157,7 @@ const nt = ({
|
|
|
1157
1157
|
);
|
|
1158
1158
|
}
|
|
1159
1159
|
return /* @__PURE__ */ t(
|
|
1160
|
-
|
|
1160
|
+
U,
|
|
1161
1161
|
{
|
|
1162
1162
|
sx: {
|
|
1163
1163
|
display: "grid",
|
|
@@ -1175,7 +1175,7 @@ const nt = ({
|
|
|
1175
1175
|
children: (o ? Array.from({ length: i }) : e).map((c, f) => {
|
|
1176
1176
|
var g, m, d;
|
|
1177
1177
|
return /* @__PURE__ */ t(
|
|
1178
|
-
|
|
1178
|
+
U,
|
|
1179
1179
|
{
|
|
1180
1180
|
sx: { overflow: "hidden", borderRadius: 2 },
|
|
1181
1181
|
children: o ? /* @__PURE__ */ t(je, {}) : /* @__PURE__ */ t(
|
|
@@ -1206,7 +1206,7 @@ const nt = ({
|
|
|
1206
1206
|
}) => {
|
|
1207
1207
|
const g = a ? a.slice(0, 2) : "", m = a ? a.slice(2) : "", d = f === "large";
|
|
1208
1208
|
return /* @__PURE__ */ h(
|
|
1209
|
-
|
|
1209
|
+
U,
|
|
1210
1210
|
{
|
|
1211
1211
|
className: c,
|
|
1212
1212
|
sx: {
|
|
@@ -1220,7 +1220,7 @@ const nt = ({
|
|
|
1220
1220
|
},
|
|
1221
1221
|
children: [
|
|
1222
1222
|
s && /* @__PURE__ */ t(
|
|
1223
|
-
|
|
1223
|
+
U,
|
|
1224
1224
|
{
|
|
1225
1225
|
sx: {
|
|
1226
1226
|
position: "relative",
|
|
@@ -1233,7 +1233,7 @@ const nt = ({
|
|
|
1233
1233
|
overflow: "hidden"
|
|
1234
1234
|
},
|
|
1235
1235
|
children: /* @__PURE__ */ t(
|
|
1236
|
-
|
|
1236
|
+
U,
|
|
1237
1237
|
{
|
|
1238
1238
|
component: "img",
|
|
1239
1239
|
src: s,
|
|
@@ -1253,7 +1253,7 @@ const nt = ({
|
|
|
1253
1253
|
}
|
|
1254
1254
|
),
|
|
1255
1255
|
/* @__PURE__ */ t(
|
|
1256
|
-
|
|
1256
|
+
U,
|
|
1257
1257
|
{
|
|
1258
1258
|
sx: {
|
|
1259
1259
|
position: "absolute",
|
|
@@ -1267,7 +1267,7 @@ const nt = ({
|
|
|
1267
1267
|
pr: { xs: "14%", lg: "15%" }
|
|
1268
1268
|
},
|
|
1269
1269
|
children: /* @__PURE__ */ h(
|
|
1270
|
-
|
|
1270
|
+
U,
|
|
1271
1271
|
{
|
|
1272
1272
|
sx: {
|
|
1273
1273
|
maxWidth: "60%",
|
|
@@ -1288,7 +1288,7 @@ const nt = ({
|
|
|
1288
1288
|
}
|
|
1289
1289
|
),
|
|
1290
1290
|
a && /* @__PURE__ */ h(
|
|
1291
|
-
|
|
1291
|
+
U,
|
|
1292
1292
|
{
|
|
1293
1293
|
component: "p",
|
|
1294
1294
|
sx: {
|
|
@@ -1306,7 +1306,7 @@ const nt = ({
|
|
|
1306
1306
|
},
|
|
1307
1307
|
children: [
|
|
1308
1308
|
/* @__PURE__ */ t(
|
|
1309
|
-
|
|
1309
|
+
U,
|
|
1310
1310
|
{
|
|
1311
1311
|
component: "span",
|
|
1312
1312
|
sx: { fontSize: { xs: 35, md: 48 }, mr: 0.5 },
|
|
@@ -1314,7 +1314,7 @@ const nt = ({
|
|
|
1314
1314
|
}
|
|
1315
1315
|
),
|
|
1316
1316
|
/* @__PURE__ */ t(
|
|
1317
|
-
|
|
1317
|
+
U,
|
|
1318
1318
|
{
|
|
1319
1319
|
component: "span",
|
|
1320
1320
|
sx: { fontSize: { xs: 52, md: 77 } },
|
|
@@ -1388,16 +1388,16 @@ const nt = ({
|
|
|
1388
1388
|
/* @__PURE__ */ t("p", { className: "orc-co-caption", children: e }),
|
|
1389
1389
|
/* @__PURE__ */ t(ae, { onClick: n, variant: "primary", size: "md", children: a })
|
|
1390
1390
|
] })
|
|
1391
|
-
] }), Fa = "oraculo__OraculoEventCombinadasCard-module__card___ulQeY",
|
|
1391
|
+
] }), Fa = "oraculo__OraculoEventCombinadasCard-module__card___ulQeY", za = "oraculo__OraculoEventCombinadasCard-module__combinadas___Gxrld", Ua = "oraculo__OraculoEventCombinadasCard-module__combinadasScroll___47cZl", qa = "oraculo__OraculoEventCombinadasCard-module__apuestaItem___YnYMy", Wa = "oraculo__OraculoEventCombinadasCard-module__lineContainer___G5rbU", Va = "oraculo__OraculoEventCombinadasCard-module__circle___eehm-", Da = "oraculo__OraculoEventCombinadasCard-module__line___Eb2pK", Ga = "oraculo__OraculoEventCombinadasCard-module__apuestaText___b5s7S", Ha = "oraculo__OraculoEventCombinadasCard-module__cuotaTotal___Lohvu", fe = {
|
|
1392
1392
|
card: Fa,
|
|
1393
|
-
combinadas:
|
|
1394
|
-
combinadasScroll:
|
|
1393
|
+
combinadas: za,
|
|
1394
|
+
combinadasScroll: Ua,
|
|
1395
1395
|
apuestaItem: qa,
|
|
1396
|
-
lineContainer:
|
|
1397
|
-
circle:
|
|
1398
|
-
line:
|
|
1399
|
-
apuestaText:
|
|
1400
|
-
cuotaTotal:
|
|
1396
|
+
lineContainer: Wa,
|
|
1397
|
+
circle: Va,
|
|
1398
|
+
line: Da,
|
|
1399
|
+
apuestaText: Ga,
|
|
1400
|
+
cuotaTotal: Ha
|
|
1401
1401
|
};
|
|
1402
1402
|
function qe(e, a) {
|
|
1403
1403
|
const n = Array.isArray(a) ? a : [a];
|
|
@@ -1650,29 +1650,23 @@ function rt({
|
|
|
1650
1650
|
}
|
|
1651
1651
|
);
|
|
1652
1652
|
}
|
|
1653
|
-
const Xa = "oraculo__OraculoTennisScoreboard-module__tennisContainer___I3KST", Qa = "oraculo__OraculoTennisScoreboard-module__tennisTable___haqoS", Ya = "oraculo__OraculoTennisScoreboard-module__tennisTableRow___IbIkR", en = "oraculo__OraculoTennisScoreboard-module__colName___mNrno", tn = "oraculo__OraculoTennisScoreboard-module__colHeader___e3Eis", an = "oraculo__OraculoTennisScoreboard-
|
|
1653
|
+
const Xa = "oraculo__OraculoTennisScoreboard-module__tennisContainer___I3KST", Qa = "oraculo__OraculoTennisScoreboard-module__tennisTable___haqoS", Ya = "oraculo__OraculoTennisScoreboard-module__tennisTableRow___IbIkR", en = "oraculo__OraculoTennisScoreboard-module__colName___mNrno", tn = "oraculo__OraculoTennisScoreboard-module__colHeader___e3Eis", an = "oraculo__OraculoTennisScoreboard-module__cellPlayerNameHome___pUZjS", nn = "oraculo__OraculoTennisScoreboard-module__cellPlayerNameAway___jf9sp", on = "oraculo__OraculoTennisScoreboard-module__playerName___OKXca", rn = "oraculo__OraculoTennisScoreboard-module__cellStat___QhEvN", ln = "oraculo__OraculoTennisScoreboard-module__active___5OX1k", sn = "oraculo__OraculoTennisScoreboard-module__border___Xzw2j", cn = "oraculo__OraculoTennisScoreboard-module__hasDivider___Dv65A", dn = "oraculo__OraculoTennisScoreboard-module__cellHome___J2681", un = "oraculo__OraculoTennisScoreboard-module__cellAway___yJ34F", G = {
|
|
1654
1654
|
tennisContainer: Xa,
|
|
1655
1655
|
tennisTable: Qa,
|
|
1656
1656
|
tennisTableRow: Ya,
|
|
1657
1657
|
colName: en,
|
|
1658
1658
|
colHeader: tn,
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
colDot: mn,
|
|
1669
|
-
dotWrapper: pn,
|
|
1670
|
-
cellDotHome: fn,
|
|
1671
|
-
cellDotAway: gn,
|
|
1672
|
-
cellHome: hn,
|
|
1673
|
-
cellAway: bn
|
|
1659
|
+
cellPlayerNameHome: an,
|
|
1660
|
+
cellPlayerNameAway: nn,
|
|
1661
|
+
playerName: on,
|
|
1662
|
+
cellStat: rn,
|
|
1663
|
+
active: ln,
|
|
1664
|
+
border: sn,
|
|
1665
|
+
hasDivider: cn,
|
|
1666
|
+
cellHome: dn,
|
|
1667
|
+
cellAway: un
|
|
1674
1668
|
};
|
|
1675
|
-
function
|
|
1669
|
+
function mn({
|
|
1676
1670
|
homeName: e = "",
|
|
1677
1671
|
awayName: a = "",
|
|
1678
1672
|
homeSets: n = [],
|
|
@@ -1697,38 +1691,34 @@ function _n({
|
|
|
1697
1691
|
return E === "A" || E === "ADV" ? 50 : parseInt(E, 10) || 0;
|
|
1698
1692
|
}, b = u(i), x = u(s);
|
|
1699
1693
|
let v = !1, S = !1;
|
|
1700
|
-
return f !== g ? (v = f > g, S = g > f) : m !== d ? (v = m > d, S = d > m) : b !== x && (v = b > x, S = x > b), /* @__PURE__ */ t("div", { className:
|
|
1694
|
+
return f !== g ? (v = f > g, S = g > f) : m !== d ? (v = m > d, S = d > m) : b !== x && (v = b > x, S = x > b), /* @__PURE__ */ t("div", { className: G.tennisContainer, children: /* @__PURE__ */ h("table", { className: G.tennisTable, children: [
|
|
1701
1695
|
/* @__PURE__ */ t("thead", { children: /* @__PURE__ */ h("tr", { style: { height: "18px" }, children: [
|
|
1702
|
-
/* @__PURE__ */ t("th", { className:
|
|
1703
|
-
/* @__PURE__ */ t("th", { className:
|
|
1704
|
-
/* @__PURE__ */ t("th", { className:
|
|
1705
|
-
/* @__PURE__ */ t("th", { className:
|
|
1706
|
-
/* @__PURE__ */ t("th", { className: q.colHeader, children: "PTS" })
|
|
1696
|
+
/* @__PURE__ */ t("th", { className: G.colName }),
|
|
1697
|
+
/* @__PURE__ */ t("th", { className: G.colHeader, children: "SETS" }),
|
|
1698
|
+
/* @__PURE__ */ t("th", { className: `${G.colHeader} ${G.border}`, style: { width: "62px" }, children: "JUEGOS" }),
|
|
1699
|
+
/* @__PURE__ */ t("th", { className: G.colHeader, children: "PTS" })
|
|
1707
1700
|
] }) }),
|
|
1708
1701
|
/* @__PURE__ */ h("tbody", { children: [
|
|
1709
|
-
/* @__PURE__ */ h("tr", { className:
|
|
1710
|
-
/* @__PURE__ */ t("td", { className:
|
|
1711
|
-
/* @__PURE__ */ t("td", { className: `${
|
|
1712
|
-
/* @__PURE__ */ t("td", { className: `${
|
|
1713
|
-
/* @__PURE__ */ t("td", { className: `${
|
|
1714
|
-
/* @__PURE__ */ t("td", { className: `${q.cellStat} ${q.cellHome} ${q.hasDivider} ${v ? q.active : ""}`, children: i })
|
|
1702
|
+
/* @__PURE__ */ h("tr", { className: G.tennisTableRow, children: [
|
|
1703
|
+
/* @__PURE__ */ t("td", { className: `${G.cellPlayerNameHome} ${G.hasDivider}`, children: /* @__PURE__ */ t("span", { className: G.playerName, children: e }) }),
|
|
1704
|
+
/* @__PURE__ */ t("td", { className: `${G.cellStat} ${G.cellHome} ${G.hasDivider} ${v ? G.active : ""}`, children: f }),
|
|
1705
|
+
/* @__PURE__ */ t("td", { className: `${G.cellStat} ${G.cellHome} ${G.hasDivider} ${G.border} ${v ? G.active : ""}`, children: m }),
|
|
1706
|
+
/* @__PURE__ */ t("td", { className: `${G.cellStat} ${G.cellHome} ${G.hasDivider} ${v ? G.active : ""}`, children: i })
|
|
1715
1707
|
] }),
|
|
1716
|
-
/* @__PURE__ */ h("tr", { className:
|
|
1717
|
-
/* @__PURE__ */ t("td", { className:
|
|
1718
|
-
/* @__PURE__ */ t("td", { className:
|
|
1719
|
-
/* @__PURE__ */ t("td", { className: `${
|
|
1720
|
-
/* @__PURE__ */ t("td", { className: `${
|
|
1721
|
-
/* @__PURE__ */ t("td", { className: `${q.cellStat} ${q.cellAway} ${S ? q.active : ""}`, children: s })
|
|
1708
|
+
/* @__PURE__ */ h("tr", { className: G.tennisTableRow, children: [
|
|
1709
|
+
/* @__PURE__ */ t("td", { className: G.cellPlayerNameAway, children: /* @__PURE__ */ t("span", { className: G.playerName, children: a }) }),
|
|
1710
|
+
/* @__PURE__ */ t("td", { className: `${G.cellStat} ${G.cellAway} ${S ? G.active : ""}`, children: g }),
|
|
1711
|
+
/* @__PURE__ */ t("td", { className: `${G.cellStat} ${G.cellAway} ${G.border} ${S ? G.active : ""}`, children: d }),
|
|
1712
|
+
/* @__PURE__ */ t("td", { className: `${G.cellStat} ${G.cellAway} ${S ? G.active : ""}`, children: s })
|
|
1722
1713
|
] })
|
|
1723
1714
|
] })
|
|
1724
1715
|
] }) });
|
|
1725
1716
|
}
|
|
1726
|
-
const
|
|
1727
|
-
cardWrapper:
|
|
1728
|
-
cardWrapperTennis:
|
|
1729
|
-
customButtonLabel:
|
|
1730
|
-
|
|
1731
|
-
customButtonDisabled: wn
|
|
1717
|
+
const pn = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", fn = "oraculo__OraculoEventEnVivoCard-module__cardWrapperTennis___MI-jh", gn = "oraculo__OraculoEventEnVivoCard-module__customButtonLabel___QRhk7", hn = "oraculo__OraculoEventEnVivoCard-module__customButtonDisabled___jwioF", Ie = {
|
|
1718
|
+
cardWrapper: pn,
|
|
1719
|
+
cardWrapperTennis: fn,
|
|
1720
|
+
customButtonLabel: gn,
|
|
1721
|
+
customButtonDisabled: hn
|
|
1732
1722
|
}, it = {
|
|
1733
1723
|
base: "FFFFFF",
|
|
1734
1724
|
sleeve: "FFFFFF",
|
|
@@ -1741,7 +1731,7 @@ const vn = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", yn = "
|
|
|
1741
1731
|
number: "FFFFFF",
|
|
1742
1732
|
real: !1,
|
|
1743
1733
|
type: "short_sleeves"
|
|
1744
|
-
},
|
|
1734
|
+
}, We = (e, a, n = "player") => {
|
|
1745
1735
|
var i, s;
|
|
1746
1736
|
if (e === void 0)
|
|
1747
1737
|
return null;
|
|
@@ -1749,7 +1739,7 @@ const vn = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", yn = "
|
|
|
1749
1739
|
return a === "home" ? it : lt;
|
|
1750
1740
|
const o = (s = (i = e == null ? void 0 : e.jerseys) == null ? void 0 : i[a]) == null ? void 0 : s[n];
|
|
1751
1741
|
return o || (a === "home" ? it : lt);
|
|
1752
|
-
},
|
|
1742
|
+
}, bn = {
|
|
1753
1743
|
FIRST_HALF: "1er tiempo",
|
|
1754
1744
|
SECOND_HALF: "2do tiempo",
|
|
1755
1745
|
QUARTER1: "1Q",
|
|
@@ -1758,10 +1748,10 @@ const vn = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", yn = "
|
|
|
1758
1748
|
QUARTER4: "4Q"
|
|
1759
1749
|
}, st = (e) => {
|
|
1760
1750
|
var a;
|
|
1761
|
-
return e ? (a =
|
|
1751
|
+
return e ? (a = bn[e]) != null ? a : e : "";
|
|
1762
1752
|
};
|
|
1763
|
-
function
|
|
1764
|
-
var u, b, x, v, S, M, E, _, C, O, w, L, R, $, y, I, F, B, P, W, V,
|
|
1753
|
+
function _n({ event: e, liveData: a, betOffers: n, jersey: o }) {
|
|
1754
|
+
var u, b, x, v, S, M, E, _, C, O, w, L, R, $, y, I, F, B, P, W, V, D, H, q, K, Y, r, p, T, A;
|
|
1765
1755
|
const i = ((u = e == null ? void 0 : e.sport) == null ? void 0 : u.toUpperCase()) === "TENNIS", s = ((b = e == null ? void 0 : e.sport) == null ? void 0 : b.toUpperCase()) === "BASKETBALL", l = ((x = e == null ? void 0 : e.sport) == null ? void 0 : x.toUpperCase()) === "FOOTBALL", c = n == null ? void 0 : n.find(
|
|
1766
1756
|
(k) => {
|
|
1767
1757
|
var N;
|
|
@@ -1777,8 +1767,8 @@ function In({ event: e, liveData: a, betOffers: n, jersey: o }) {
|
|
|
1777
1767
|
status: "INACTIVE",
|
|
1778
1768
|
cashOutStatus: "SUSPENDED"
|
|
1779
1769
|
}, g = () => {
|
|
1780
|
-
var
|
|
1781
|
-
return `${((ne = (J = (
|
|
1770
|
+
var z, J, ne;
|
|
1771
|
+
return `${((ne = (J = (z = a == null ? void 0 : a.statistics) == null ? void 0 : z.sets) == null ? void 0 : J.home) != null ? ne : []).reduce((oe, j, ie) => j >= 0 ? ie : oe, 0) + 1}ºset`;
|
|
1782
1772
|
}, m = [
|
|
1783
1773
|
{ ...f, id: -1, label: "1", odds: void 0 },
|
|
1784
1774
|
{ ...f, id: -2, label: "X", odds: void 0 },
|
|
@@ -1797,7 +1787,7 @@ function In({ event: e, liveData: a, betOffers: n, jersey: o }) {
|
|
|
1797
1787
|
}
|
|
1798
1788
|
),
|
|
1799
1789
|
/* @__PURE__ */ t("div", { children: i ? /* @__PURE__ */ t(
|
|
1800
|
-
|
|
1790
|
+
mn,
|
|
1801
1791
|
{
|
|
1802
1792
|
homeName: e == null ? void 0 : e.homeName,
|
|
1803
1793
|
awayName: e == null ? void 0 : e.awayName,
|
|
@@ -1805,17 +1795,17 @@ function In({ event: e, liveData: a, betOffers: n, jersey: o }) {
|
|
|
1805
1795
|
awaySets: (I = (y = ($ = a == null ? void 0 : a.statistics) == null ? void 0 : $.sets) == null ? void 0 : y.away) != null ? I : [],
|
|
1806
1796
|
homePoints: (B = (F = a == null ? void 0 : a.score) == null ? void 0 : F.home) != null ? B : "0",
|
|
1807
1797
|
awayPoints: (W = (P = a == null ? void 0 : a.score) == null ? void 0 : P.away) != null ? W : "0",
|
|
1808
|
-
homeServe: (
|
|
1798
|
+
homeServe: (H = (D = (V = a == null ? void 0 : a.statistics) == null ? void 0 : V.sets) == null ? void 0 : D.homeServe) != null ? H : !0
|
|
1809
1799
|
}
|
|
1810
1800
|
) : /* @__PURE__ */ h(me, { spacing: 1.5, columns: "1fr auto 1fr", children: [
|
|
1811
|
-
/* @__PURE__ */ t(
|
|
1801
|
+
/* @__PURE__ */ t(Ue, { name: e == null ? void 0 : e.homeName, sport: e.sport, gender: d, jersey: We(o, "home"), flag: (q = o == null ? void 0 : o.homeFlag) != null ? q : "" }),
|
|
1812
1802
|
/* @__PURE__ */ t(St, { size: s ? "basketball" : "normal", text: ((Y = (K = a == null ? void 0 : a.score) == null ? void 0 : K.home) != null ? Y : 0) + ":" + ((p = (r = a == null ? void 0 : a.score) == null ? void 0 : r.away) != null ? p : 0), name: l ? st((T = a == null ? void 0 : a.matchClock) == null ? void 0 : T.periodId) : "" }),
|
|
1813
|
-
/* @__PURE__ */ t(
|
|
1803
|
+
/* @__PURE__ */ t(Ue, { name: e == null ? void 0 : e.awayName, sport: e.sport, gender: d, jersey: We(o, "away"), flag: (A = o == null ? void 0 : o.awayFlag) != null ? A : "" })
|
|
1814
1804
|
] }) })
|
|
1815
1805
|
] }),
|
|
1816
1806
|
/* @__PURE__ */ t(Q, { direction: "column", spacing: 0.5, useFlexGap: !0, children: (() => {
|
|
1817
1807
|
var oe;
|
|
1818
|
-
const k = (oe = c == null ? void 0 : c.outcomes) != null ? oe : m, N = { OT_ONE: 1, OT_CROSS: 2, OT_TWO: 3 },
|
|
1808
|
+
const k = (oe = c == null ? void 0 : c.outcomes) != null ? oe : m, N = { OT_ONE: 1, OT_CROSS: 2, OT_TWO: 3 }, z = [...k].sort((j, ie) => {
|
|
1819
1809
|
var Oe, $e;
|
|
1820
1810
|
if (j.displayOrder !== void 0 && ie.displayOrder !== void 0)
|
|
1821
1811
|
return j.displayOrder - ie.displayOrder;
|
|
@@ -1823,11 +1813,11 @@ function In({ event: e, liveData: a, betOffers: n, jersey: o }) {
|
|
|
1823
1813
|
return Se - we;
|
|
1824
1814
|
}), J = (j) => {
|
|
1825
1815
|
var ie, Se, we, Oe;
|
|
1826
|
-
return i ||
|
|
1816
|
+
return i || z.length === 2 ? j.type === "OT_ONE" ? "1" : j.type === "OT_TWO" ? "2" : (Se = (ie = j.label) == null ? void 0 : ie.toUpperCase()) != null ? Se : "" : (Oe = (we = j.label) == null ? void 0 : we.toUpperCase()) != null ? Oe : "";
|
|
1827
1817
|
};
|
|
1828
1818
|
return /* @__PURE__ */ t(te, { children: s || i ? /* @__PURE__ */ h(te, { children: [
|
|
1829
1819
|
/* @__PURE__ */ t(me, { spacing: 1, columns: "1fr", children: /* @__PURE__ */ t(Ke, { text: "Ganador del partido" }) }),
|
|
1830
|
-
/* @__PURE__ */ t(me, { spacing: 2, children:
|
|
1820
|
+
/* @__PURE__ */ t(me, { spacing: 2, children: z.slice(0, 2).map((j, ie) => /* @__PURE__ */ t(
|
|
1831
1821
|
rt,
|
|
1832
1822
|
{
|
|
1833
1823
|
variant: "primary",
|
|
@@ -1851,7 +1841,7 @@ function In({ event: e, liveData: a, betOffers: n, jersey: o }) {
|
|
|
1851
1841
|
},
|
|
1852
1842
|
children: [
|
|
1853
1843
|
/* @__PURE__ */ t("span", { style: { fontSize: "12px" }, children: J(j) }),
|
|
1854
|
-
/* @__PURE__ */ t("span", { className: Ie.
|
|
1844
|
+
/* @__PURE__ */ t("span", { className: Ie.customButtonLabel, children: j.odds === void 0 ? "" : (j.odds / 1e3).toFixed(2) })
|
|
1855
1845
|
]
|
|
1856
1846
|
}
|
|
1857
1847
|
)
|
|
@@ -1859,14 +1849,14 @@ function In({ event: e, liveData: a, betOffers: n, jersey: o }) {
|
|
|
1859
1849
|
j.id || ie
|
|
1860
1850
|
)) })
|
|
1861
1851
|
] }) : /* @__PURE__ */ h(te, { children: [
|
|
1862
|
-
/* @__PURE__ */ t(me, { spacing: 1, children:
|
|
1852
|
+
/* @__PURE__ */ t(me, { spacing: 1, children: z.map((j, ie) => /* @__PURE__ */ t(
|
|
1863
1853
|
Ke,
|
|
1864
1854
|
{
|
|
1865
1855
|
text: J(j)
|
|
1866
1856
|
},
|
|
1867
1857
|
j.id || ie
|
|
1868
1858
|
)) }),
|
|
1869
|
-
/* @__PURE__ */ t(me, { spacing: 2, children:
|
|
1859
|
+
/* @__PURE__ */ t(me, { spacing: 2, children: z.map((j, ie) => /* @__PURE__ */ t(
|
|
1870
1860
|
rt,
|
|
1871
1861
|
{
|
|
1872
1862
|
variant: "primary",
|
|
@@ -1886,19 +1876,19 @@ function In({ event: e, liveData: a, betOffers: n, jersey: o }) {
|
|
|
1886
1876
|
})() })
|
|
1887
1877
|
] }) });
|
|
1888
1878
|
}
|
|
1889
|
-
const
|
|
1890
|
-
date:
|
|
1879
|
+
const vn = "oraculo__OraculoEventDate-module__date___xhIlh", yn = {
|
|
1880
|
+
date: vn
|
|
1891
1881
|
};
|
|
1892
|
-
function
|
|
1893
|
-
return /* @__PURE__ */ t("div", { className: `oli-font ${
|
|
1882
|
+
function xn({ text: e }) {
|
|
1883
|
+
return /* @__PURE__ */ t("div", { className: `oli-font ${yn.date}`, children: e });
|
|
1894
1884
|
}
|
|
1895
|
-
const
|
|
1896
|
-
cardContainer:
|
|
1897
|
-
cardBackground:
|
|
1898
|
-
jugadas:
|
|
1899
|
-
equipos:
|
|
1885
|
+
const Sn = "oraculo__OraculoEventSemanaCard-module__cardContainer___4JuDe", wn = "oraculo__OraculoEventSemanaCard-module__cardBackground___vfalD", On = "oraculo__OraculoEventSemanaCard-module__jugadas___W8b7H", In = "oraculo__OraculoEventSemanaCard-module__equipos___G5hLn", Te = {
|
|
1886
|
+
cardContainer: Sn,
|
|
1887
|
+
cardBackground: wn,
|
|
1888
|
+
jugadas: On,
|
|
1889
|
+
equipos: In
|
|
1900
1890
|
};
|
|
1901
|
-
function
|
|
1891
|
+
function Tn({ event: e, jersey: a }) {
|
|
1902
1892
|
var c, f, g, m;
|
|
1903
1893
|
const n = se(), o = ce();
|
|
1904
1894
|
function i(d) {
|
|
@@ -1947,11 +1937,11 @@ function Mn({ event: e, jersey: a }) {
|
|
|
1947
1937
|
/* @__PURE__ */ t("div", { className: Te.cardBackground, children: /* @__PURE__ */ h(Q, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
1948
1938
|
/* @__PURE__ */ h(Q, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1949
1939
|
/* @__PURE__ */ h("div", { className: Te.equipos, children: [
|
|
1950
|
-
/* @__PURE__ */ t(
|
|
1940
|
+
/* @__PURE__ */ t(Ue, { name: e.homeName, sport: e.sport, gender: l, size: "compact", jersey: We(a, "home"), flag: (g = a == null ? void 0 : a.homeFlag) != null ? g : "" }),
|
|
1951
1941
|
/* @__PURE__ */ t(St, { text: "vs.", name: "", size: "small" }),
|
|
1952
|
-
/* @__PURE__ */ t(
|
|
1942
|
+
/* @__PURE__ */ t(Ue, { name: e.awayName, sport: e.sport, gender: l, size: "compact", jersey: We(a, "away"), flag: (m = a == null ? void 0 : a.awayFlag) != null ? m : "" })
|
|
1953
1943
|
] }),
|
|
1954
|
-
/* @__PURE__ */ t(
|
|
1944
|
+
/* @__PURE__ */ t(xn, { text: i(e.start) })
|
|
1955
1945
|
] }),
|
|
1956
1946
|
/* @__PURE__ */ t(Q, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: (() => {
|
|
1957
1947
|
var S, M, E;
|
|
@@ -1988,7 +1978,7 @@ function Mn({ event: e, jersey: a }) {
|
|
|
1988
1978
|
] }) })
|
|
1989
1979
|
] });
|
|
1990
1980
|
}
|
|
1991
|
-
const
|
|
1981
|
+
const En = (e = 3) => Array.from({ length: e }, (a, n) => ({
|
|
1992
1982
|
body: "",
|
|
1993
1983
|
image: "",
|
|
1994
1984
|
title: `sk-${n}`,
|
|
@@ -2000,7 +1990,7 @@ const Bn = (e = 3) => Array.from({ length: e }, (a, n) => ({
|
|
|
2000
1990
|
tags: "",
|
|
2001
1991
|
summary_image: ""
|
|
2002
1992
|
}));
|
|
2003
|
-
function
|
|
1993
|
+
function Cn({
|
|
2004
1994
|
items: e,
|
|
2005
1995
|
title: a = "Destacados",
|
|
2006
1996
|
iconUrl: n = "https://d28gilnhu2bcbp.cloudfront.net/landing/1770307276612-lonuevo.webp",
|
|
@@ -2100,7 +2090,7 @@ function Ln({
|
|
|
2100
2090
|
ariaLabel: "Anterior",
|
|
2101
2091
|
variant: "secondary",
|
|
2102
2092
|
iconOnly: !0,
|
|
2103
|
-
leftIcon: /* @__PURE__ */ t(
|
|
2093
|
+
leftIcon: /* @__PURE__ */ t(De, {}),
|
|
2104
2094
|
onClick: x,
|
|
2105
2095
|
disabled: f.isStart || b
|
|
2106
2096
|
}
|
|
@@ -2111,7 +2101,7 @@ function Ln({
|
|
|
2111
2101
|
ariaLabel: "Siguiente",
|
|
2112
2102
|
variant: "secondary",
|
|
2113
2103
|
iconOnly: !0,
|
|
2114
|
-
rightIcon: /* @__PURE__ */ t(
|
|
2104
|
+
rightIcon: /* @__PURE__ */ t(Ge, {}),
|
|
2115
2105
|
onClick: v,
|
|
2116
2106
|
disabled: f.isEnd || b
|
|
2117
2107
|
}
|
|
@@ -2125,7 +2115,7 @@ function Ln({
|
|
|
2125
2115
|
xe,
|
|
2126
2116
|
{
|
|
2127
2117
|
ref: c,
|
|
2128
|
-
items: b ?
|
|
2118
|
+
items: b ? En() : e,
|
|
2129
2119
|
perPage: void 0,
|
|
2130
2120
|
gap: "16px",
|
|
2131
2121
|
enableHorizontalWheel: !0,
|
|
@@ -2196,22 +2186,22 @@ function Ln({
|
|
|
2196
2186
|
)
|
|
2197
2187
|
] });
|
|
2198
2188
|
}
|
|
2199
|
-
const
|
|
2189
|
+
const ze = "__ORACULO_EXTRAS__";
|
|
2200
2190
|
function Ct() {
|
|
2201
2191
|
const e = globalThis;
|
|
2202
|
-
return e[
|
|
2192
|
+
return e[ze] || (e[ze] = {}), e[ze];
|
|
2203
2193
|
}
|
|
2204
|
-
function
|
|
2194
|
+
function kn(e) {
|
|
2205
2195
|
Ct().extras = e;
|
|
2206
2196
|
}
|
|
2207
2197
|
function ue(e) {
|
|
2208
2198
|
var a;
|
|
2209
2199
|
return (a = Ct().extras) == null ? void 0 : a[e];
|
|
2210
2200
|
}
|
|
2211
|
-
function
|
|
2212
|
-
delete globalThis[
|
|
2201
|
+
function Nn() {
|
|
2202
|
+
delete globalThis[ze];
|
|
2213
2203
|
}
|
|
2214
|
-
function
|
|
2204
|
+
function $n({
|
|
2215
2205
|
items: e,
|
|
2216
2206
|
title: a = "Top Juegos",
|
|
2217
2207
|
iconUrl: n,
|
|
@@ -2250,7 +2240,7 @@ function Fn({
|
|
|
2250
2240
|
return /* @__PURE__ */ t("section", { style: { width: "100%" }, children: /* @__PURE__ */ h(Q, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
2251
2241
|
/* @__PURE__ */ t(ye, { title: a, iconUrl: n, size: "md" }),
|
|
2252
2242
|
/* @__PURE__ */ t(
|
|
2253
|
-
|
|
2243
|
+
U,
|
|
2254
2244
|
{
|
|
2255
2245
|
sx: {
|
|
2256
2246
|
display: "grid",
|
|
@@ -2281,7 +2271,7 @@ function Fn({
|
|
|
2281
2271
|
)
|
|
2282
2272
|
] }) });
|
|
2283
2273
|
}
|
|
2284
|
-
const
|
|
2274
|
+
const An = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking", Mn = 8, Bn = 80, Ln = (e, a) => {
|
|
2285
2275
|
var n, o, i, s, l, c, f, g, m, d, u, b, x, v;
|
|
2286
2276
|
return {
|
|
2287
2277
|
orden: Number(a),
|
|
@@ -2302,7 +2292,7 @@ const Un = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2302
2292
|
demo_allowed: (x = e.demo_allowed) != null ? x : !1,
|
|
2303
2293
|
gaming_session_required: (v = e.gaming_session_required) != null ? v : !1
|
|
2304
2294
|
};
|
|
2305
|
-
},
|
|
2295
|
+
}, Rn = (e) => {
|
|
2306
2296
|
var n, o, i, s;
|
|
2307
2297
|
if (!e) return [];
|
|
2308
2298
|
const a = Array.isArray(e) ? e : (s = (i = (o = (n = e.recommendations) != null ? n : e.ranking) != null ? o : e.rankedItems) != null ? i : e.items) != null ? s : e.machines;
|
|
@@ -2312,28 +2302,28 @@ const Un = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2312
2302
|
return String(typeof l == "object" ? (f = (c = l.itemId) != null ? c : l.id) != null ? f : l.machine : l);
|
|
2313
2303
|
}
|
|
2314
2304
|
) : [];
|
|
2315
|
-
},
|
|
2305
|
+
}, Pn = () => {
|
|
2316
2306
|
var a, n, o;
|
|
2317
2307
|
const e = ue("user");
|
|
2318
2308
|
return (o = (n = (a = e == null ? void 0 : e.userId) != null ? a : e == null ? void 0 : e.user) != null ? n : e == null ? void 0 : e.id) != null ? o : null;
|
|
2319
|
-
},
|
|
2320
|
-
const a =
|
|
2309
|
+
}, Fn = async (e) => {
|
|
2310
|
+
const a = Pn(), n = new URLSearchParams({
|
|
2321
2311
|
userId: String(a),
|
|
2322
2312
|
productType: e
|
|
2323
|
-
}), o = `${
|
|
2313
|
+
}), o = `${An}?${n.toString()}`, i = await fetch(o);
|
|
2324
2314
|
if (!i.ok)
|
|
2325
2315
|
throw new Error(
|
|
2326
2316
|
`No se pudo obtener el ranking. HTTP ${i.status} ${i.statusText}`
|
|
2327
2317
|
);
|
|
2328
2318
|
const s = await i.json();
|
|
2329
|
-
return
|
|
2330
|
-
},
|
|
2319
|
+
return Rn(s).slice(0, 49);
|
|
2320
|
+
}, zn = async (e, a, n) => {
|
|
2331
2321
|
const o = [];
|
|
2332
2322
|
let i = 0, s = null;
|
|
2333
2323
|
const l = () => {
|
|
2334
2324
|
s || n() || (s = setTimeout(() => {
|
|
2335
2325
|
s = null, n() || a(o.filter(Boolean));
|
|
2336
|
-
},
|
|
2326
|
+
}, Bn));
|
|
2337
2327
|
}, c = async () => {
|
|
2338
2328
|
for (; i < e.length; ) {
|
|
2339
2329
|
if (n()) return;
|
|
@@ -2343,13 +2333,13 @@ const Un = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2343
2333
|
if (!d.ok)
|
|
2344
2334
|
throw new Error(`No se pudo obtener machine ${m}`);
|
|
2345
2335
|
const u = await d.json();
|
|
2346
|
-
o[g] =
|
|
2336
|
+
o[g] = Ln(u, g), l();
|
|
2347
2337
|
} catch (d) {
|
|
2348
2338
|
console.error(`[usePersonalizeGameItems] error al obtener machine ${m}:`, d);
|
|
2349
2339
|
}
|
|
2350
2340
|
}
|
|
2351
2341
|
}, f = Array.from(
|
|
2352
|
-
{ length: Math.min(
|
|
2342
|
+
{ length: Math.min(Mn, e.length) },
|
|
2353
2343
|
() => c()
|
|
2354
2344
|
);
|
|
2355
2345
|
await Promise.all(f), s && clearTimeout(s), n() || a(o.filter(Boolean));
|
|
@@ -2364,12 +2354,12 @@ const Un = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2364
2354
|
}
|
|
2365
2355
|
l(!0), i([]);
|
|
2366
2356
|
try {
|
|
2367
|
-
const g = await
|
|
2357
|
+
const g = await Fn(n);
|
|
2368
2358
|
if (!g.length) {
|
|
2369
2359
|
c || i([]);
|
|
2370
2360
|
return;
|
|
2371
2361
|
}
|
|
2372
|
-
await
|
|
2362
|
+
await zn(
|
|
2373
2363
|
g,
|
|
2374
2364
|
(m) => {
|
|
2375
2365
|
c || (i(m), l(!1));
|
|
@@ -2388,10 +2378,10 @@ const Un = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2388
2378
|
resolvedItems: o,
|
|
2389
2379
|
loading: s
|
|
2390
2380
|
};
|
|
2391
|
-
},
|
|
2381
|
+
}, Un = (e, a = !1) => Xe(e, a, "Casino"), qn = (e, a = !1) => Xe(e, a, "Deportes virtuales"), Wn = (e, a = !1) => Xe(e, a, "Casino en vivo"), Vn = (e, a) => {
|
|
2392
2382
|
var n, o;
|
|
2393
2383
|
return (o = (n = e.orden) != null ? n : e.machine) != null ? o : a;
|
|
2394
|
-
},
|
|
2384
|
+
}, Dn = (e) => {
|
|
2395
2385
|
if (typeof e == "boolean") return e;
|
|
2396
2386
|
if (typeof e == "string")
|
|
2397
2387
|
return e.toLowerCase() === "true";
|
|
@@ -2401,7 +2391,7 @@ const Un = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2401
2391
|
return e.value.toLowerCase() === "true";
|
|
2402
2392
|
}
|
|
2403
2393
|
return !1;
|
|
2404
|
-
},
|
|
2394
|
+
}, Gn = ({
|
|
2405
2395
|
items: e,
|
|
2406
2396
|
title: a = "Casino en vivo",
|
|
2407
2397
|
subtitle: n = "Disfruta la emoción en tus juegos favoritos y gana en tiempo real.",
|
|
@@ -2412,7 +2402,7 @@ const Un = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2412
2402
|
className: c,
|
|
2413
2403
|
isPersonalize: f = !1
|
|
2414
2404
|
}) => {
|
|
2415
|
-
const g = se(), m = ce(), d = pe(), u =
|
|
2405
|
+
const g = se(), m = ce(), d = pe(), u = Dn(f), { resolvedItems: b, loading: x } = Wn(
|
|
2416
2406
|
e,
|
|
2417
2407
|
u
|
|
2418
2408
|
), v = u ? b : Array.isArray(e) ? e : [], S = u ? x : !Array.isArray(e) || e.length === 0, M = (_) => {
|
|
@@ -2460,7 +2450,7 @@ const Un = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2460
2450
|
}), typeof globalThis != "undefined" && globalThis.location && (l ? l() : globalThis.location.assign("https://www.olimpo.bet/casino-en-vivo"));
|
|
2461
2451
|
};
|
|
2462
2452
|
return /* @__PURE__ */ h(
|
|
2463
|
-
|
|
2453
|
+
U,
|
|
2464
2454
|
{
|
|
2465
2455
|
className: c,
|
|
2466
2456
|
sx: {
|
|
@@ -2470,7 +2460,7 @@ const Un = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2470
2460
|
},
|
|
2471
2461
|
children: [
|
|
2472
2462
|
/* @__PURE__ */ t(
|
|
2473
|
-
|
|
2463
|
+
U,
|
|
2474
2464
|
{
|
|
2475
2465
|
sx: {
|
|
2476
2466
|
position: "absolute",
|
|
@@ -2498,7 +2488,7 @@ const Un = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2498
2488
|
}
|
|
2499
2489
|
),
|
|
2500
2490
|
/* @__PURE__ */ h(
|
|
2501
|
-
|
|
2491
|
+
U,
|
|
2502
2492
|
{
|
|
2503
2493
|
sx: {
|
|
2504
2494
|
position: "relative",
|
|
@@ -2541,7 +2531,7 @@ const Un = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2541
2531
|
children: n
|
|
2542
2532
|
}
|
|
2543
2533
|
),
|
|
2544
|
-
/* @__PURE__ */ t(
|
|
2534
|
+
/* @__PURE__ */ t(U, { sx: { display: { xs: "none", md: "block" } }, children: /* @__PURE__ */ t(
|
|
2545
2535
|
ae,
|
|
2546
2536
|
{
|
|
2547
2537
|
variant: "primary",
|
|
@@ -2552,7 +2542,7 @@ const Un = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2552
2542
|
) })
|
|
2553
2543
|
] }),
|
|
2554
2544
|
/* @__PURE__ */ t(
|
|
2555
|
-
|
|
2545
|
+
U,
|
|
2556
2546
|
{
|
|
2557
2547
|
sx: {
|
|
2558
2548
|
display: "flex",
|
|
@@ -2573,12 +2563,12 @@ const Un = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2573
2563
|
machine: _.machine,
|
|
2574
2564
|
onClick: () => M(_)
|
|
2575
2565
|
},
|
|
2576
|
-
|
|
2566
|
+
Vn(_, C)
|
|
2577
2567
|
);
|
|
2578
2568
|
})
|
|
2579
2569
|
}
|
|
2580
2570
|
),
|
|
2581
|
-
/* @__PURE__ */ t(
|
|
2571
|
+
/* @__PURE__ */ t(U, { sx: { display: { xs: "block", md: "none" } }, children: /* @__PURE__ */ t(
|
|
2582
2572
|
ae,
|
|
2583
2573
|
{
|
|
2584
2574
|
variant: "primary",
|
|
@@ -2593,7 +2583,7 @@ const Un = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2593
2583
|
]
|
|
2594
2584
|
}
|
|
2595
2585
|
);
|
|
2596
|
-
},
|
|
2586
|
+
}, Hn = (e) => {
|
|
2597
2587
|
if (typeof e == "boolean") return e;
|
|
2598
2588
|
if (typeof e == "string")
|
|
2599
2589
|
return e.toLowerCase() === "true";
|
|
@@ -2606,7 +2596,7 @@ const Un = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2606
2596
|
}, kt = (e, a) => {
|
|
2607
2597
|
var n, o;
|
|
2608
2598
|
return (o = (n = e.orden) != null ? n : e.machine) != null ? o : a;
|
|
2609
|
-
},
|
|
2599
|
+
}, Zn = (e, a = !0, n = 1) => {
|
|
2610
2600
|
const o = e.map((l, c) => {
|
|
2611
2601
|
var f;
|
|
2612
2602
|
return {
|
|
@@ -2635,7 +2625,7 @@ const Un = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2635
2625
|
}), s = l;
|
|
2636
2626
|
}
|
|
2637
2627
|
return i;
|
|
2638
|
-
},
|
|
2628
|
+
}, jn = ({
|
|
2639
2629
|
items: e,
|
|
2640
2630
|
title: a = "Casino",
|
|
2641
2631
|
iconUrl: n = "/assets/img/home/Casino/diamante.svg",
|
|
@@ -2645,7 +2635,7 @@ const Un = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2645
2635
|
gridSize: l = 1,
|
|
2646
2636
|
isPersonalize: c = !1
|
|
2647
2637
|
}) => {
|
|
2648
|
-
const f = se(), g = ce(), m = pe(), d = Z(null), [u, b] = ee({ isStart: !0, isEnd: !1 }), x =
|
|
2638
|
+
const f = se(), g = ce(), m = pe(), d = Z(null), [u, b] = ee({ isStart: !0, isEnd: !1 }), x = Hn(c), { resolvedItems: v, loading: S } = Un(
|
|
2649
2639
|
e,
|
|
2650
2640
|
x
|
|
2651
2641
|
), M = x ? v : Array.isArray(e) ? e : [], E = () => {
|
|
@@ -2696,10 +2686,10 @@ const Un = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2696
2686
|
imageUrl: ""
|
|
2697
2687
|
})), F = [];
|
|
2698
2688
|
return $ && F.push({ id: "mosaic-loading", kind: "mosaic", items: I(5) }), F.push({ id: "grid-loading", kind: "grid", items: I(y) }), F;
|
|
2699
|
-
}, w = x ? S : !Array.isArray(e) || e.length === 0, L = Je("(max-width:950px)"), R = w ? O(s, l) :
|
|
2689
|
+
}, w = x ? S : !Array.isArray(e) || e.length === 0, L = Je("(max-width:950px)"), R = w ? O(s, l) : Zn(M, s, l);
|
|
2700
2690
|
return /* @__PURE__ */ t("section", { children: /* @__PURE__ */ h(Q, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
2701
2691
|
/* @__PURE__ */ h(
|
|
2702
|
-
|
|
2692
|
+
U,
|
|
2703
2693
|
{
|
|
2704
2694
|
sx: {
|
|
2705
2695
|
display: "grid",
|
|
@@ -2714,7 +2704,7 @@ const Un = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2714
2704
|
},
|
|
2715
2705
|
children: [
|
|
2716
2706
|
/* @__PURE__ */ t(ye, { title: a, iconUrl: n, size: "md" }),
|
|
2717
|
-
/* @__PURE__ */ h(
|
|
2707
|
+
/* @__PURE__ */ h(U, { sx: { display: "flex", gap: 1, justifyContent: "flex-end" }, children: [
|
|
2718
2708
|
/* @__PURE__ */ t(
|
|
2719
2709
|
ae,
|
|
2720
2710
|
{
|
|
@@ -2738,7 +2728,7 @@ const Un = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2738
2728
|
}
|
|
2739
2729
|
)
|
|
2740
2730
|
] }),
|
|
2741
|
-
/* @__PURE__ */ t(
|
|
2731
|
+
/* @__PURE__ */ t(U, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(ae, { variant: "secondary", onClick: C, children: "Ver más" }) })
|
|
2742
2732
|
]
|
|
2743
2733
|
}
|
|
2744
2734
|
),
|
|
@@ -2804,7 +2794,7 @@ const Un = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2804
2794
|
}
|
|
2805
2795
|
)
|
|
2806
2796
|
] }) });
|
|
2807
|
-
},
|
|
2797
|
+
}, Kn = (e) => {
|
|
2808
2798
|
if (typeof e == "boolean") return e;
|
|
2809
2799
|
if (typeof e == "string")
|
|
2810
2800
|
return e.toLowerCase() === "true";
|
|
@@ -2817,7 +2807,7 @@ const Un = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2817
2807
|
}, Nt = (e, a) => {
|
|
2818
2808
|
var n, o;
|
|
2819
2809
|
return (o = (n = e.orden) != null ? n : e.machine) != null ? o : a;
|
|
2820
|
-
},
|
|
2810
|
+
}, Jn = (e, a = !0, n = 1) => {
|
|
2821
2811
|
const o = e.map((l, c) => {
|
|
2822
2812
|
var f;
|
|
2823
2813
|
return {
|
|
@@ -2846,7 +2836,7 @@ const Un = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2846
2836
|
}), s = l;
|
|
2847
2837
|
}
|
|
2848
2838
|
return i;
|
|
2849
|
-
},
|
|
2839
|
+
}, Xn = (e = !0, a = 4) => {
|
|
2850
2840
|
const n = (i) => Array.from({ length: i }, (s, l) => ({
|
|
2851
2841
|
id: `sk-${i}-${l}`,
|
|
2852
2842
|
imageUrl: ""
|
|
@@ -2860,7 +2850,7 @@ const Un = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2860
2850
|
kind: "grid",
|
|
2861
2851
|
items: n(a)
|
|
2862
2852
|
}), o;
|
|
2863
|
-
},
|
|
2853
|
+
}, Qn = ({
|
|
2864
2854
|
items: e,
|
|
2865
2855
|
title: a = "Virtuales",
|
|
2866
2856
|
iconUrl: n = "/assets/img/home/Virtuales/virtuales.svg",
|
|
@@ -2870,7 +2860,7 @@ const Un = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2870
2860
|
gridSize: l = 1,
|
|
2871
2861
|
isPersonalize: c = !1
|
|
2872
2862
|
}) => {
|
|
2873
|
-
const f = Z(null), [g, m] = ee({ isStart: !0, isEnd: !1 }), d = se(), u = ce(), b = pe(), x =
|
|
2863
|
+
const f = Z(null), [g, m] = ee({ isStart: !0, isEnd: !1 }), d = se(), u = ce(), b = pe(), x = Kn(c), { resolvedItems: v, loading: S } = qn(
|
|
2874
2864
|
e,
|
|
2875
2865
|
x
|
|
2876
2866
|
), M = x ? v : Array.isArray(e) ? e : [], E = () => {
|
|
@@ -2915,10 +2905,10 @@ const Un = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2915
2905
|
return;
|
|
2916
2906
|
}
|
|
2917
2907
|
typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/juegos-virtuales");
|
|
2918
|
-
}, O = x ? S : !Array.isArray(e) || e.length === 0, w = Ne("(max-width:950px)"), L = O ?
|
|
2908
|
+
}, O = x ? S : !Array.isArray(e) || e.length === 0, w = Ne("(max-width:950px)"), L = O ? Xn(s, l) : Jn(M, s, l);
|
|
2919
2909
|
return /* @__PURE__ */ t("section", { children: /* @__PURE__ */ h(Q, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
2920
2910
|
/* @__PURE__ */ h(
|
|
2921
|
-
|
|
2911
|
+
U,
|
|
2922
2912
|
{
|
|
2923
2913
|
sx: {
|
|
2924
2914
|
display: "grid",
|
|
@@ -2933,7 +2923,7 @@ const Un = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2933
2923
|
},
|
|
2934
2924
|
children: [
|
|
2935
2925
|
/* @__PURE__ */ t(ye, { title: a, iconUrl: n, size: "md" }),
|
|
2936
|
-
/* @__PURE__ */ h(
|
|
2926
|
+
/* @__PURE__ */ h(U, { sx: { display: "flex", gap: 1, justifyContent: "flex-end" }, children: [
|
|
2937
2927
|
/* @__PURE__ */ t(
|
|
2938
2928
|
ae,
|
|
2939
2929
|
{
|
|
@@ -2957,7 +2947,7 @@ const Un = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
2957
2947
|
}
|
|
2958
2948
|
)
|
|
2959
2949
|
] }),
|
|
2960
|
-
/* @__PURE__ */ t(
|
|
2950
|
+
/* @__PURE__ */ t(U, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(ae, { variant: "secondary", onClick: C, children: "Ver más" }) })
|
|
2961
2951
|
]
|
|
2962
2952
|
}
|
|
2963
2953
|
),
|
|
@@ -3033,7 +3023,7 @@ const Un = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
3033
3023
|
}
|
|
3034
3024
|
)
|
|
3035
3025
|
] }) });
|
|
3036
|
-
},
|
|
3026
|
+
}, Yn = (e) => ({
|
|
3037
3027
|
position: "relative",
|
|
3038
3028
|
py: 8,
|
|
3039
3029
|
color: "#fff",
|
|
@@ -3065,7 +3055,7 @@ const Un = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
3065
3055
|
0 0 6px rgba(255, 255, 255, .6),
|
|
3066
3056
|
0 1px 0 rgba(137, 137, 137, .85)
|
|
3067
3057
|
`
|
|
3068
|
-
},
|
|
3058
|
+
}, eo = ({
|
|
3069
3059
|
headline: e,
|
|
3070
3060
|
headline2: a,
|
|
3071
3061
|
items: n,
|
|
@@ -3088,7 +3078,7 @@ const Un = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
3088
3078
|
return (I = (y = _ == null ? void 0 : _.backgroundImageUrl) != null ? y : o) != null ? I : "";
|
|
3089
3079
|
},
|
|
3090
3080
|
[_, o]
|
|
3091
|
-
), O =
|
|
3081
|
+
), O = Yn(C), w = !n || n.length === 0, L = (y, I) => {
|
|
3092
3082
|
i({
|
|
3093
3083
|
element: "welcome_banner_button",
|
|
3094
3084
|
label: `OraculoSeccionBonoBienvenida - Banner button click: ${y.title || "OraculoSeccionBonoBienvenida - Banner " + (I + 1)}`,
|
|
@@ -3134,12 +3124,12 @@ const Un = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
3134
3124
|
const y = g.current;
|
|
3135
3125
|
if (!y) return;
|
|
3136
3126
|
const I = 6, F = 380, B = (P) => {
|
|
3137
|
-
var
|
|
3127
|
+
var H, q;
|
|
3138
3128
|
if (w || P.ctrlKey || M.current) return;
|
|
3139
3129
|
const W = P.deltaX, V = P.deltaY;
|
|
3140
3130
|
if (Math.abs(W) <= Math.abs(V) || Math.abs(W) < I) return;
|
|
3141
|
-
const
|
|
3142
|
-
|
|
3131
|
+
const D = W > 0;
|
|
3132
|
+
D && S.current.isEnd || !D && S.current.isStart || (P.preventDefault(), M.current = !0, D ? (H = f.current) == null || H.next() : (q = f.current) == null || q.prev(), E.current && window.clearTimeout(E.current), E.current = window.setTimeout(() => {
|
|
3143
3133
|
M.current = !1;
|
|
3144
3134
|
}, F));
|
|
3145
3135
|
};
|
|
@@ -3151,7 +3141,7 @@ const Un = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
3151
3141
|
var W, V;
|
|
3152
3142
|
const B = (W = y.headline) != null ? W : e, P = (V = y.headline2) != null ? V : a;
|
|
3153
3143
|
return I ? /* @__PURE__ */ h(
|
|
3154
|
-
|
|
3144
|
+
U,
|
|
3155
3145
|
{
|
|
3156
3146
|
sx: {
|
|
3157
3147
|
maxWidth: 1200,
|
|
@@ -3164,7 +3154,7 @@ const Un = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
3164
3154
|
},
|
|
3165
3155
|
children: [
|
|
3166
3156
|
(B || P) && /* @__PURE__ */ t(
|
|
3167
|
-
|
|
3157
|
+
U,
|
|
3168
3158
|
{
|
|
3169
3159
|
sx: {
|
|
3170
3160
|
display: "flex",
|
|
@@ -3172,7 +3162,7 @@ const Un = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
3172
3162
|
justifyContent: "flex-start",
|
|
3173
3163
|
minHeight: "100%"
|
|
3174
3164
|
},
|
|
3175
|
-
children: /* @__PURE__ */ h(
|
|
3165
|
+
children: /* @__PURE__ */ h(U, { sx: { ...ct, textAlign: "left", mb: 0 }, children: [
|
|
3176
3166
|
B && /* @__PURE__ */ t(he, { component: "span", sx: dt, children: B }),
|
|
3177
3167
|
P && /* @__PURE__ */ h(te, { children: [
|
|
3178
3168
|
/* @__PURE__ */ t("br", {}),
|
|
@@ -3181,7 +3171,7 @@ const Un = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
3181
3171
|
] })
|
|
3182
3172
|
}
|
|
3183
3173
|
),
|
|
3184
|
-
/* @__PURE__ */ t(
|
|
3174
|
+
/* @__PURE__ */ t(U, { sx: { display: "flex", justifyContent: "center", alignItems: "center" }, children: /* @__PURE__ */ t(U, { sx: { width: "100%", maxWidth: 600, mx: "auto" }, children: /* @__PURE__ */ t(
|
|
3185
3175
|
ot,
|
|
3186
3176
|
{
|
|
3187
3177
|
...y,
|
|
@@ -3191,15 +3181,15 @@ const Un = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
3191
3181
|
) }) })
|
|
3192
3182
|
]
|
|
3193
3183
|
}
|
|
3194
|
-
) : /* @__PURE__ */ h(
|
|
3195
|
-
(B || P) && /* @__PURE__ */ h(
|
|
3184
|
+
) : /* @__PURE__ */ h(U, { sx: { textAlign: "center" }, children: [
|
|
3185
|
+
(B || P) && /* @__PURE__ */ h(U, { sx: ct, children: [
|
|
3196
3186
|
B && /* @__PURE__ */ t(he, { component: "span", sx: dt, children: B }),
|
|
3197
3187
|
P && /* @__PURE__ */ h(te, { children: [
|
|
3198
3188
|
/* @__PURE__ */ t("br", {}),
|
|
3199
3189
|
/* @__PURE__ */ t(he, { component: "span", sx: ut, children: P })
|
|
3200
3190
|
] })
|
|
3201
3191
|
] }),
|
|
3202
|
-
/* @__PURE__ */ t(
|
|
3192
|
+
/* @__PURE__ */ t(U, { sx: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(
|
|
3203
3193
|
ot,
|
|
3204
3194
|
{
|
|
3205
3195
|
...y,
|
|
@@ -3209,7 +3199,7 @@ const Un = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
3209
3199
|
) })
|
|
3210
3200
|
] });
|
|
3211
3201
|
};
|
|
3212
|
-
return /* @__PURE__ */ h(
|
|
3202
|
+
return /* @__PURE__ */ h(U, { component: "section", sx: O, children: [
|
|
3213
3203
|
/* @__PURE__ */ t("div", { ref: g, style: { width: "100%" }, children: /* @__PURE__ */ t(
|
|
3214
3204
|
xe,
|
|
3215
3205
|
{
|
|
@@ -3227,13 +3217,13 @@ const Un = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
3227
3217
|
// arrows: false,
|
|
3228
3218
|
// drag: true,
|
|
3229
3219
|
},
|
|
3230
|
-
renderItem: (y, I) => /* @__PURE__ */ t(
|
|
3220
|
+
renderItem: (y, I) => /* @__PURE__ */ t(U, { sx: { width: "100%" }, children: $(y, !l, I) }),
|
|
3231
3221
|
onMove: ({ index: y, isStart: I, isEnd: F, source: B }) => {
|
|
3232
3222
|
b(y), typeof I == "boolean" && typeof F == "boolean" && v({ isStart: I, isEnd: F }), B === "user" && R(y);
|
|
3233
3223
|
}
|
|
3234
3224
|
}
|
|
3235
3225
|
) }),
|
|
3236
|
-
c && /* @__PURE__ */ t(
|
|
3226
|
+
c && /* @__PURE__ */ t(U, { sx: { mt: 2, display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(
|
|
3237
3227
|
yt,
|
|
3238
3228
|
{
|
|
3239
3229
|
total: n.length,
|
|
@@ -3259,7 +3249,7 @@ const Un = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
3259
3249
|
}
|
|
3260
3250
|
) })
|
|
3261
3251
|
] });
|
|
3262
|
-
},
|
|
3252
|
+
}, to = ({
|
|
3263
3253
|
className: e = "",
|
|
3264
3254
|
fullBleed: a = !0,
|
|
3265
3255
|
items: n,
|
|
@@ -3315,7 +3305,7 @@ const Un = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
3315
3305
|
const v = await d();
|
|
3316
3306
|
v ? window.location.href = v : typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/conoce-club-olimpo");
|
|
3317
3307
|
}, b = Array.isArray(n) ? n[o] : n;
|
|
3318
|
-
|
|
3308
|
+
zt(() => {
|
|
3319
3309
|
if (!l.current || !c.current || typeof ResizeObserver == "undefined") return;
|
|
3320
3310
|
const v = l.current, S = c.current, M = () => {
|
|
3321
3311
|
v.style.setProperty(
|
|
@@ -3350,20 +3340,20 @@ const Un = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
|
|
|
3350
3340
|
) })
|
|
3351
3341
|
}
|
|
3352
3342
|
);
|
|
3353
|
-
},
|
|
3354
|
-
controls:
|
|
3355
|
-
padding:
|
|
3356
|
-
},
|
|
3343
|
+
}, ao = "oraculo__OraculoSeccionEventoCombinadas-module__controls___Zsta4", no = "oraculo__OraculoSeccionEventoCombinadas-module__padding___vf-yF", mt = {
|
|
3344
|
+
controls: ao,
|
|
3345
|
+
padding: no
|
|
3346
|
+
}, oo = (e) => {
|
|
3357
3347
|
var a, n;
|
|
3358
3348
|
return (a = e.outcome) != null && a.id ? [e.outcome.id] : e.type === "BET_BUILDER" && ((n = e.group) != null && n.groups) ? e.group.groups.flatMap((o) => {
|
|
3359
3349
|
var i, s;
|
|
3360
3350
|
return (s = (i = o.outcomes) == null ? void 0 : i.map((l) => l.id)) != null ? s : [];
|
|
3361
3351
|
}) : [];
|
|
3362
3352
|
};
|
|
3363
|
-
function
|
|
3353
|
+
function ro(e, a, n) {
|
|
3364
3354
|
return n ? n.map((o) => {
|
|
3365
3355
|
var m, d;
|
|
3366
|
-
const i = o.prePackCouponRows.flatMap((u) =>
|
|
3356
|
+
const i = o.prePackCouponRows.flatMap((u) => oo(u).map((b) => ({ eventId: u.eventId, outcomeId: b }))), s = new Set(i.map((u) => u.eventId)), l = new Set(i.map((u) => u.outcomeId)), c = new Map(i.map((u, b) => [u.outcomeId, b])), f = {};
|
|
3367
3357
|
for (const u of a) {
|
|
3368
3358
|
if (!s.has(u.eventId)) continue;
|
|
3369
3359
|
const b = u.outcomes.filter((x) => l.has(x.id)).map((x) => ({ ...x, position: c.get(x.id) }));
|
|
@@ -3376,12 +3366,12 @@ function po(e, a, n) {
|
|
|
3376
3366
|
return {
|
|
3377
3367
|
couponId: o.id,
|
|
3378
3368
|
status: o.status,
|
|
3379
|
-
combinadoTotal:
|
|
3369
|
+
combinadoTotal: io(o.prePackCouponRows),
|
|
3380
3370
|
events: g
|
|
3381
3371
|
};
|
|
3382
3372
|
}) : [];
|
|
3383
3373
|
}
|
|
3384
|
-
function
|
|
3374
|
+
function io(e) {
|
|
3385
3375
|
if (!Array.isArray(e) || e.length === 0) return 0;
|
|
3386
3376
|
let a = 1;
|
|
3387
3377
|
for (const n of e) {
|
|
@@ -3390,8 +3380,8 @@ function fo(e) {
|
|
|
3390
3380
|
}
|
|
3391
3381
|
return Math.floor(a * 100) / 100;
|
|
3392
3382
|
}
|
|
3393
|
-
const
|
|
3394
|
-
function
|
|
3383
|
+
const lo = ve.memo(Ja);
|
|
3384
|
+
function so({
|
|
3395
3385
|
items: e,
|
|
3396
3386
|
title: a = "Combinadas del Olimpo",
|
|
3397
3387
|
iconUrl: n = "https://d28gilnhu2bcbp.cloudfront.net/landing/rayoIcon.svg",
|
|
@@ -3443,7 +3433,7 @@ function ho({
|
|
|
3443
3433
|
return;
|
|
3444
3434
|
}
|
|
3445
3435
|
const F = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${I}.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764283566783&prePackCouponTags=CUSTOM`, P = await (await fetch(F)).json();
|
|
3446
|
-
u(
|
|
3436
|
+
u(ro(P.events, P.betOffers, P.prePackCoupons));
|
|
3447
3437
|
} catch ($) {
|
|
3448
3438
|
console.error("loadDataEventSpecial error:", $);
|
|
3449
3439
|
}
|
|
@@ -3468,7 +3458,7 @@ function ho({
|
|
|
3468
3458
|
ariaLabel: "Anterior",
|
|
3469
3459
|
variant: "secondary",
|
|
3470
3460
|
iconOnly: !0,
|
|
3471
|
-
leftIcon: /* @__PURE__ */ t(
|
|
3461
|
+
leftIcon: /* @__PURE__ */ t(De, {}),
|
|
3472
3462
|
onClick: x,
|
|
3473
3463
|
disabled: g.isStart
|
|
3474
3464
|
}
|
|
@@ -3479,7 +3469,7 @@ function ho({
|
|
|
3479
3469
|
ariaLabel: "Siguiente",
|
|
3480
3470
|
variant: "secondary",
|
|
3481
3471
|
iconOnly: !0,
|
|
3482
|
-
rightIcon: /* @__PURE__ */ t(
|
|
3472
|
+
rightIcon: /* @__PURE__ */ t(Ge, {}),
|
|
3483
3473
|
onClick: v,
|
|
3484
3474
|
disabled: g.isEnd
|
|
3485
3475
|
}
|
|
@@ -3502,13 +3492,13 @@ function ho({
|
|
|
3502
3492
|
breakpoints: {
|
|
3503
3493
|
768: { perPage: 1.2, gap: "12px", padding: { left: "24px", right: "24px" } }
|
|
3504
3494
|
},
|
|
3505
|
-
renderItem: (O) => /* @__PURE__ */ t(
|
|
3495
|
+
renderItem: (O) => /* @__PURE__ */ t(lo, { coupon: O }),
|
|
3506
3496
|
onMove: ({ isStart: O, isEnd: w }) => m({ isStart: O, isEnd: w })
|
|
3507
3497
|
}
|
|
3508
3498
|
)
|
|
3509
3499
|
] }) });
|
|
3510
3500
|
}
|
|
3511
|
-
function
|
|
3501
|
+
function co({}) {
|
|
3512
3502
|
return /* @__PURE__ */ t(
|
|
3513
3503
|
"div",
|
|
3514
3504
|
{
|
|
@@ -3542,14 +3532,14 @@ function bo({}) {
|
|
|
3542
3532
|
}
|
|
3543
3533
|
);
|
|
3544
3534
|
}
|
|
3545
|
-
const
|
|
3546
|
-
fadeWrapper:
|
|
3535
|
+
const uo = "oraculo__FadeItemWrapper-module__fadeWrapper___kFOH4", mo = {
|
|
3536
|
+
fadeWrapper: uo
|
|
3547
3537
|
};
|
|
3548
|
-
function
|
|
3549
|
-
return /* @__PURE__ */ t("div", { className:
|
|
3538
|
+
function Ve({ children: e }) {
|
|
3539
|
+
return /* @__PURE__ */ t("div", { className: mo.fadeWrapper, children: e });
|
|
3550
3540
|
}
|
|
3551
|
-
const
|
|
3552
|
-
padding:
|
|
3541
|
+
const po = "oraculo__OraculoSeccionEventoEnVivo-module__padding___Sh8tD", fo = {
|
|
3542
|
+
padding: po
|
|
3553
3543
|
};
|
|
3554
3544
|
function $t({
|
|
3555
3545
|
events: e,
|
|
@@ -3612,7 +3602,7 @@ function $t({
|
|
|
3612
3602
|
isPending: c.current
|
|
3613
3603
|
};
|
|
3614
3604
|
}
|
|
3615
|
-
const
|
|
3605
|
+
const go = (e) => {
|
|
3616
3606
|
const a = ["esports", "cyber"];
|
|
3617
3607
|
return e.filter((n) => {
|
|
3618
3608
|
var s, l;
|
|
@@ -3620,8 +3610,8 @@ const So = (e) => {
|
|
|
3620
3610
|
const i = typeof ((l = n == null ? void 0 : n.event) == null ? void 0 : l.group) == "string" ? n.event.group.toLowerCase() : "";
|
|
3621
3611
|
return !a.some((c) => i.includes(c));
|
|
3622
3612
|
});
|
|
3623
|
-
},
|
|
3624
|
-
function
|
|
3613
|
+
}, ho = ve.memo(_n);
|
|
3614
|
+
function bo({
|
|
3625
3615
|
items: e,
|
|
3626
3616
|
title: a = "En vivo",
|
|
3627
3617
|
iconUrl: n = "https://d28gilnhu2bcbp.cloudfront.net/landing/1778868672728-evento-en-vivo.gif",
|
|
@@ -3676,45 +3666,45 @@ function Oo({
|
|
|
3676
3666
|
if (!v.current) {
|
|
3677
3667
|
v.current = !0;
|
|
3678
3668
|
try {
|
|
3679
|
-
const
|
|
3669
|
+
const q = await (await fetch("https://api.mktolimpo.com/api/kambi/eventos/orden")).json(), K = ((B = q == null ? void 0 : q.data) == null ? void 0 : B.event_ids) || [], Y = /* @__PURE__ */ new Map();
|
|
3680
3670
|
K.forEach((r, p) => Y.set(String(r), p)), _.current = Y;
|
|
3681
|
-
} catch (
|
|
3682
|
-
console.error("Order fetch failed, using default sorting",
|
|
3671
|
+
} catch (H) {
|
|
3672
|
+
console.error("Order fetch failed, using default sorting", H);
|
|
3683
3673
|
}
|
|
3684
3674
|
}
|
|
3685
3675
|
const P = await Promise.all(
|
|
3686
|
-
s.map(async (
|
|
3676
|
+
s.map(async (H) => {
|
|
3687
3677
|
try {
|
|
3688
|
-
const
|
|
3689
|
-
if (!
|
|
3690
|
-
const K = await
|
|
3678
|
+
const q = await fetch(H.url);
|
|
3679
|
+
if (!q.ok) throw new Error(`Failed to fetch ${H.sport}`);
|
|
3680
|
+
const K = await q.json();
|
|
3691
3681
|
return {
|
|
3692
|
-
sport:
|
|
3682
|
+
sport: H.sport,
|
|
3693
3683
|
events: K.events || []
|
|
3694
3684
|
};
|
|
3695
|
-
} catch (
|
|
3696
|
-
return console.error(`Error fetching ${
|
|
3685
|
+
} catch (q) {
|
|
3686
|
+
return console.error(`Error fetching ${H.sport}:`, q), { sport: H.sport, events: [] };
|
|
3697
3687
|
}
|
|
3698
3688
|
})
|
|
3699
3689
|
);
|
|
3700
3690
|
let W = [];
|
|
3701
|
-
P.forEach(({ sport:
|
|
3702
|
-
const Y =
|
|
3691
|
+
P.forEach(({ sport: H, events: q }) => {
|
|
3692
|
+
const Y = go(q).map((r) => ({ ...r, _sportGroup: H }));
|
|
3703
3693
|
W.push(...Y);
|
|
3704
3694
|
});
|
|
3705
3695
|
const V = {
|
|
3706
3696
|
football: 2,
|
|
3707
3697
|
basketball: 1,
|
|
3708
3698
|
tennis: 0
|
|
3709
|
-
},
|
|
3699
|
+
}, D = W.sort((H, q) => {
|
|
3710
3700
|
var k, N;
|
|
3711
|
-
const K = (k = V[
|
|
3701
|
+
const K = (k = V[H._sportGroup]) != null ? k : 1 / 0, Y = (N = V[q._sportGroup]) != null ? N : 1 / 0;
|
|
3712
3702
|
if (K !== Y)
|
|
3713
3703
|
return K - Y;
|
|
3714
|
-
const r = _.current.get(String(
|
|
3704
|
+
const r = _.current.get(String(H.event.id)), p = _.current.get(String(q.event.id));
|
|
3715
3705
|
return (r !== void 0 ? r : 1 / 0) - (p !== void 0 ? p : 1 / 0);
|
|
3716
3706
|
});
|
|
3717
|
-
m(
|
|
3707
|
+
m(D);
|
|
3718
3708
|
} catch (P) {
|
|
3719
3709
|
console.error("LoadData Error:", P);
|
|
3720
3710
|
}
|
|
@@ -3740,7 +3730,7 @@ function Oo({
|
|
|
3740
3730
|
width: "100%",
|
|
3741
3731
|
boxSizing: "border-box"
|
|
3742
3732
|
}, children: /* @__PURE__ */ h(Q, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
3743
|
-
/* @__PURE__ */ t("div", { className:
|
|
3733
|
+
/* @__PURE__ */ t("div", { className: fo.padding, children: /* @__PURE__ */ h(me, { spacing: 1.5, columns: "1fr auto ", justify: "start", children: [
|
|
3744
3734
|
/* @__PURE__ */ t(ye, { title: a, iconUrl: n, size: "md" }),
|
|
3745
3735
|
/* @__PURE__ */ h("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
|
|
3746
3736
|
/* @__PURE__ */ h(me, { spacing: 1, columns: "auto auto", children: [
|
|
@@ -3750,7 +3740,7 @@ function Oo({
|
|
|
3750
3740
|
ariaLabel: "Anterior",
|
|
3751
3741
|
variant: "secondary",
|
|
3752
3742
|
iconOnly: !0,
|
|
3753
|
-
leftIcon: /* @__PURE__ */ t(
|
|
3743
|
+
leftIcon: /* @__PURE__ */ t(De, {}),
|
|
3754
3744
|
onClick: C,
|
|
3755
3745
|
disabled: c.isStart
|
|
3756
3746
|
}
|
|
@@ -3761,7 +3751,7 @@ function Oo({
|
|
|
3761
3751
|
ariaLabel: "Siguiente",
|
|
3762
3752
|
variant: "secondary",
|
|
3763
3753
|
iconOnly: !0,
|
|
3764
|
-
rightIcon: /* @__PURE__ */ t(
|
|
3754
|
+
rightIcon: /* @__PURE__ */ t(Ge, {}),
|
|
3765
3755
|
onClick: O,
|
|
3766
3756
|
disabled: c.isEnd
|
|
3767
3757
|
}
|
|
@@ -3788,8 +3778,8 @@ function Oo({
|
|
|
3788
3778
|
renderItem: (B) => {
|
|
3789
3779
|
var V;
|
|
3790
3780
|
const P = ((V = B.event) == null ? void 0 : V.id) || B.eventId, W = P in R ? R[P] : void 0;
|
|
3791
|
-
return y ? /* @__PURE__ */ t(
|
|
3792
|
-
|
|
3781
|
+
return y ? /* @__PURE__ */ t(Ve, { children: /* @__PURE__ */ t(co, {}) }) : /* @__PURE__ */ t(Ve, { children: /* @__PURE__ */ t(
|
|
3782
|
+
ho,
|
|
3793
3783
|
{
|
|
3794
3784
|
...B,
|
|
3795
3785
|
jersey: W
|
|
@@ -3798,14 +3788,14 @@ function Oo({
|
|
|
3798
3788
|
},
|
|
3799
3789
|
onMove: ({ isStart: B, isEnd: P, visibleStart: W, visibleEnd: V }) => {
|
|
3800
3790
|
f(
|
|
3801
|
-
(
|
|
3791
|
+
(D) => D.isStart === B && D.isEnd === P ? D : { isStart: B, isEnd: P }
|
|
3802
3792
|
), u({ start: W, end: V });
|
|
3803
3793
|
}
|
|
3804
3794
|
}
|
|
3805
3795
|
)
|
|
3806
3796
|
] }) });
|
|
3807
3797
|
}
|
|
3808
|
-
function
|
|
3798
|
+
function _o() {
|
|
3809
3799
|
return /* @__PURE__ */ h("div", { className: Te.cardContainer, children: [
|
|
3810
3800
|
/* @__PURE__ */ t(xt, { title: "" }),
|
|
3811
3801
|
/* @__PURE__ */ t("div", { className: Te.cardBackground, children: /* @__PURE__ */ h(Q, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
@@ -3833,13 +3823,13 @@ function Io() {
|
|
|
3833
3823
|
] }) })
|
|
3834
3824
|
] });
|
|
3835
3825
|
}
|
|
3836
|
-
const
|
|
3837
|
-
wrapper:
|
|
3838
|
-
container:
|
|
3839
|
-
buttonWrapper:
|
|
3840
|
-
padding:
|
|
3841
|
-
},
|
|
3842
|
-
async function
|
|
3826
|
+
const vo = "oraculo__OraculoSeccionEventoSemana-module__wrapper___eqVq-", yo = "oraculo__OraculoSeccionEventoSemana-module__container___5yFQs", xo = "oraculo__OraculoSeccionEventoSemana-module__buttonWrapper___-6IDT", So = "oraculo__OraculoSeccionEventoSemana-module__padding___vfUcV", Be = {
|
|
3827
|
+
wrapper: vo,
|
|
3828
|
+
container: yo,
|
|
3829
|
+
buttonWrapper: xo,
|
|
3830
|
+
padding: So
|
|
3831
|
+
}, wo = ve.memo(Tn);
|
|
3832
|
+
async function Oo(e, a = 2, n) {
|
|
3843
3833
|
const o = [];
|
|
3844
3834
|
for (let i = 0; i < e.length; i += a) {
|
|
3845
3835
|
if (n.aborted)
|
|
@@ -3851,12 +3841,12 @@ async function $o(e, a = 2, n) {
|
|
|
3851
3841
|
}
|
|
3852
3842
|
return o;
|
|
3853
3843
|
}
|
|
3854
|
-
function
|
|
3844
|
+
function Io(e) {
|
|
3855
3845
|
return [...e].sort(
|
|
3856
3846
|
(a, n) => new Date(a.start).getTime() - new Date(n.start).getTime()
|
|
3857
3847
|
);
|
|
3858
3848
|
}
|
|
3859
|
-
function
|
|
3849
|
+
function To(e) {
|
|
3860
3850
|
const a = /* @__PURE__ */ new Date(), n = new Date(a.getTime() + 480 * 60 * 60 * 1e3);
|
|
3861
3851
|
return e.filter((o) => {
|
|
3862
3852
|
if (!o.start) return !1;
|
|
@@ -3864,7 +3854,7 @@ function Mo(e) {
|
|
|
3864
3854
|
return i >= a && i <= n;
|
|
3865
3855
|
});
|
|
3866
3856
|
}
|
|
3867
|
-
function
|
|
3857
|
+
function Eo(e, a) {
|
|
3868
3858
|
const o = a.filter((i) => {
|
|
3869
3859
|
var s;
|
|
3870
3860
|
return ((s = i.betOfferType) == null ? void 0 : s.id) === 2;
|
|
@@ -3874,7 +3864,7 @@ function Bo(e, a) {
|
|
|
3874
3864
|
outcome: o[i.id]
|
|
3875
3865
|
}));
|
|
3876
3866
|
}
|
|
3877
|
-
function
|
|
3867
|
+
function Co({
|
|
3878
3868
|
items: e,
|
|
3879
3869
|
title: a = "En vivo",
|
|
3880
3870
|
iconUrl: n,
|
|
@@ -3907,25 +3897,25 @@ function Lo({
|
|
|
3907
3897
|
{ signal: y }
|
|
3908
3898
|
);
|
|
3909
3899
|
if (V.ok) {
|
|
3910
|
-
const
|
|
3911
|
-
I = ((B =
|
|
3900
|
+
const D = await V.json();
|
|
3901
|
+
I = ((B = D == null ? void 0 : D.data) == null ? void 0 : B.group_ids) || [], F = ((P = D == null ? void 0 : D.data) == null ? void 0 : P.event_ids) || [];
|
|
3912
3902
|
}
|
|
3913
3903
|
} catch (V) {
|
|
3914
3904
|
V.name !== "AbortError" && console.warn("Order API not available, using default group order");
|
|
3915
3905
|
return;
|
|
3916
3906
|
}
|
|
3917
3907
|
try {
|
|
3918
|
-
const
|
|
3919
|
-
if (!Array.isArray(
|
|
3908
|
+
const D = await (await fetch(g, { signal: y })).json(), H = (W = D == null ? void 0 : D.group) == null ? void 0 : W.groups;
|
|
3909
|
+
if (!Array.isArray(H)) {
|
|
3920
3910
|
console.error("Sport groups structure invalid");
|
|
3921
3911
|
return;
|
|
3922
3912
|
}
|
|
3923
|
-
const
|
|
3913
|
+
const q = I.length > 0 ? new Map(I.map((Y, r) => [String(Y), r])) : null, K = [];
|
|
3924
3914
|
for (const Y of f) {
|
|
3925
|
-
const r =
|
|
3915
|
+
const r = H.find(
|
|
3926
3916
|
(N) => {
|
|
3927
|
-
var
|
|
3928
|
-
return ((
|
|
3917
|
+
var z;
|
|
3918
|
+
return ((z = N.englishName) == null ? void 0 : z.toLowerCase()) === Y.englishName.toLowerCase();
|
|
3929
3919
|
}
|
|
3930
3920
|
);
|
|
3931
3921
|
if (!r || !Array.isArray(r.groups)) {
|
|
@@ -3933,17 +3923,17 @@ function Lo({
|
|
|
3933
3923
|
continue;
|
|
3934
3924
|
}
|
|
3935
3925
|
let p = [...r.groups];
|
|
3936
|
-
|
|
3937
|
-
const J =
|
|
3926
|
+
q && p.sort((N, z) => {
|
|
3927
|
+
const J = q.get(String(N.id)), ne = q.get(String(z.id));
|
|
3938
3928
|
return (J !== void 0 ? J : 1 / 0) - (ne !== void 0 ? ne : 1 / 0);
|
|
3939
3929
|
});
|
|
3940
3930
|
const T = p.slice(0, Y.limit), A = (N) => {
|
|
3941
|
-
const
|
|
3931
|
+
const z = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/${Y.termPath}`;
|
|
3942
3932
|
if (N.groups && N.groups.length > 0) {
|
|
3943
3933
|
const J = N.groups[0];
|
|
3944
|
-
return `${
|
|
3934
|
+
return `${z}/${N.termKey}/${J.termKey}/all/matches.json?${M}`;
|
|
3945
3935
|
}
|
|
3946
|
-
return `${
|
|
3936
|
+
return `${z}/${N.termKey}/all/all/matches.json?${M}`;
|
|
3947
3937
|
}, k = T.map(A);
|
|
3948
3938
|
K.push(...k);
|
|
3949
3939
|
}
|
|
@@ -3954,29 +3944,29 @@ function Lo({
|
|
|
3954
3944
|
}
|
|
3955
3945
|
async function C(y, I, F) {
|
|
3956
3946
|
try {
|
|
3957
|
-
const B = await
|
|
3947
|
+
const B = await Oo(y, 2, F);
|
|
3958
3948
|
let P = [], W = [];
|
|
3959
|
-
B.forEach((
|
|
3960
|
-
|
|
3961
|
-
...
|
|
3949
|
+
B.forEach((q) => {
|
|
3950
|
+
q.events && (P.push(...q.events.map((K) => K.event)), W.push(
|
|
3951
|
+
...q.events.flatMap((K) => K.betOffers || [])
|
|
3962
3952
|
));
|
|
3963
3953
|
});
|
|
3964
|
-
const V =
|
|
3965
|
-
let
|
|
3954
|
+
const V = Eo(P, W), D = Io(To(V));
|
|
3955
|
+
let H = D;
|
|
3966
3956
|
if (I.length > 0) {
|
|
3967
|
-
const
|
|
3957
|
+
const q = new Map(
|
|
3968
3958
|
I.map((K, Y) => [
|
|
3969
3959
|
String(K),
|
|
3970
3960
|
Y
|
|
3971
3961
|
])
|
|
3972
3962
|
);
|
|
3973
|
-
|
|
3974
|
-
const r =
|
|
3963
|
+
H = [...D].sort((K, Y) => {
|
|
3964
|
+
const r = q.get(String(K.id)), p = q.get(String(Y.id));
|
|
3975
3965
|
return r !== void 0 && p !== void 0 ? r - p : r !== void 0 ? -1 : p !== void 0 ? 1 : 0;
|
|
3976
3966
|
});
|
|
3977
3967
|
}
|
|
3978
3968
|
if (F.aborted) return;
|
|
3979
|
-
x(
|
|
3969
|
+
x(H);
|
|
3980
3970
|
} catch (B) {
|
|
3981
3971
|
console.error("Error loading events:", B);
|
|
3982
3972
|
}
|
|
@@ -4035,7 +4025,7 @@ function Lo({
|
|
|
4035
4025
|
},
|
|
4036
4026
|
renderItem: (y) => {
|
|
4037
4027
|
const I = y.id, F = I in L ? L[I] : void 0;
|
|
4038
|
-
return R ? /* @__PURE__ */ t(
|
|
4028
|
+
return R ? /* @__PURE__ */ t(Ve, { children: /* @__PURE__ */ t(_o, {}) }) : /* @__PURE__ */ t(Ve, { children: /* @__PURE__ */ t(wo, { event: y, jersey: F }) });
|
|
4039
4029
|
},
|
|
4040
4030
|
onMove: ({ isStart: y, isEnd: I, visibleStart: F, visibleEnd: B, source: P }) => {
|
|
4041
4031
|
u({ isStart: y, isEnd: I }), S({
|
|
@@ -4061,9 +4051,9 @@ function Lo({
|
|
|
4061
4051
|
) })
|
|
4062
4052
|
] }) });
|
|
4063
4053
|
}
|
|
4064
|
-
const
|
|
4054
|
+
const ko = -300, No = (e) => /[zZ]|[+-]\d{2}:\d{2}$/.test(e), pt = (e) => {
|
|
4065
4055
|
if (!e) return null;
|
|
4066
|
-
if (
|
|
4056
|
+
if (No(e)) {
|
|
4067
4057
|
const f = new Date(e).getTime();
|
|
4068
4058
|
return Number.isNaN(f) ? null : f;
|
|
4069
4059
|
}
|
|
@@ -4076,16 +4066,16 @@ const Ro = -300, Po = (e) => /[zZ]|[+-]\d{2}:\d{2}$/.test(e), pt = (e) => {
|
|
|
4076
4066
|
Number(n),
|
|
4077
4067
|
Number(o) - 1,
|
|
4078
4068
|
Number(i),
|
|
4079
|
-
Number(s) -
|
|
4069
|
+
Number(s) - ko / 60,
|
|
4080
4070
|
Number(l),
|
|
4081
4071
|
Number(c)
|
|
4082
4072
|
);
|
|
4083
|
-
},
|
|
4073
|
+
}, $o = (e, a) => {
|
|
4084
4074
|
var c, f, g, m, d, u, b, x, v;
|
|
4085
4075
|
const n = (g = (f = (c = e == null ? void 0 : e.fields) != null ? c : e == null ? void 0 : e.parameters) != null ? f : e == null ? void 0 : e.extraFields) != null ? g : [], o = (u = (d = e == null ? void 0 : e.startAt) != null ? d : (m = n.find((S) => (S == null ? void 0 : S.name) === "startAt")) == null ? void 0 : m.value) != null ? u : null, i = (v = (x = e == null ? void 0 : e.endAt) != null ? x : (b = n.find((S) => (S == null ? void 0 : S.name) === "endAt")) == null ? void 0 : b.value) != null ? v : null, s = pt(o), l = pt(i);
|
|
4086
4076
|
return !(s != null && a < s || l != null && a >= l);
|
|
4087
4077
|
};
|
|
4088
|
-
function
|
|
4078
|
+
function Ao({
|
|
4089
4079
|
backgrounds: e,
|
|
4090
4080
|
items: a,
|
|
4091
4081
|
hideItems: n,
|
|
@@ -4093,12 +4083,12 @@ function Uo({
|
|
|
4093
4083
|
}) {
|
|
4094
4084
|
var Y;
|
|
4095
4085
|
const [i, s] = ee(0), l = se(), c = ce(), f = pe(), g = Z(null), m = Z(!1), d = Z(!1), [u, b] = ee(() => Date.now()), x = ue("setDepositActionGlobal"), v = ue("setAbrirLiveActionGlobal"), S = ue("openLoginWithRedirect"), M = (r) => [...r != null ? r : []].map((p, T) => ({ item: p, index: T })).sort((p, T) => {
|
|
4096
|
-
var N,
|
|
4097
|
-
const A = (N = p.item.order) != null ? N : Number.MAX_SAFE_INTEGER, k = (
|
|
4086
|
+
var N, z;
|
|
4087
|
+
const A = (N = p.item.order) != null ? N : Number.MAX_SAFE_INTEGER, k = (z = T.item.order) != null ? z : Number.MAX_SAFE_INTEGER;
|
|
4098
4088
|
return A - k || p.index - T.index;
|
|
4099
4089
|
}).map(({ item: p }) => p), E = de(() => M(a), [a]), _ = de(() => {
|
|
4100
4090
|
const r = (e != null ? e : []).filter(
|
|
4101
|
-
(p) =>
|
|
4091
|
+
(p) => $o(p, u)
|
|
4102
4092
|
);
|
|
4103
4093
|
return M(r);
|
|
4104
4094
|
}, [e, u]), C = _.length || 1, O = !_ || _.length === 0, w = !O && _.length > 1, L = !n && E.length > 0;
|
|
@@ -4151,7 +4141,7 @@ function Uo({
|
|
|
4151
4141
|
return () => clearTimeout(r);
|
|
4152
4142
|
}, []);
|
|
4153
4143
|
const I = (r, p, T) => {
|
|
4154
|
-
var
|
|
4144
|
+
var z, J;
|
|
4155
4145
|
const A = !!p.idFunction, k = !!p.href;
|
|
4156
4146
|
if (A)
|
|
4157
4147
|
switch (r.preventDefault(), r.stopPropagation(), p.idFunction) {
|
|
@@ -4168,7 +4158,7 @@ function Uo({
|
|
|
4168
4158
|
r.preventDefault(), r.stopPropagation();
|
|
4169
4159
|
return;
|
|
4170
4160
|
}
|
|
4171
|
-
const N = ((J = (
|
|
4161
|
+
const N = ((J = (z = p.href) == null ? void 0 : z.split("/").pop()) == null ? void 0 : J.split(".")[0]) || p.label || p.id || `banner_${T + 1}`;
|
|
4172
4162
|
l({
|
|
4173
4163
|
element: "banner_carousel",
|
|
4174
4164
|
label: `${c} - OraculoSeccionBanners - Banner click: ${N}`,
|
|
@@ -4212,28 +4202,28 @@ function Uo({
|
|
|
4212
4202
|
r.href && typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(r.href);
|
|
4213
4203
|
}, B = 5e3, P = Z(null), W = !O && ((Y = _ == null ? void 0 : _.length) != null ? Y : 0) > 1, V = () => {
|
|
4214
4204
|
P.current != null && (window.clearTimeout(P.current), P.current = null);
|
|
4215
|
-
},
|
|
4205
|
+
}, D = () => {
|
|
4216
4206
|
V(), W && (P.current = window.setTimeout(() => {
|
|
4217
4207
|
var r;
|
|
4218
4208
|
d.current = !0, (r = g.current) == null || r.next();
|
|
4219
4209
|
}, B));
|
|
4220
4210
|
};
|
|
4221
|
-
re(() => (
|
|
4222
|
-
const
|
|
4211
|
+
re(() => (D(), () => V()), [W, B]);
|
|
4212
|
+
const H = (r) => {
|
|
4223
4213
|
var p;
|
|
4224
4214
|
r.preventDefault(), r.stopPropagation(), V(), (p = g.current) == null || p.prev();
|
|
4225
|
-
},
|
|
4215
|
+
}, q = (r) => {
|
|
4226
4216
|
var p;
|
|
4227
4217
|
r.preventDefault(), r.stopPropagation(), V(), (p = g.current) == null || p.next();
|
|
4228
4218
|
}, K = (r) => {
|
|
4229
|
-
var A, k, N,
|
|
4219
|
+
var A, k, N, z;
|
|
4230
4220
|
const p = (r % C + C) % C;
|
|
4231
4221
|
if (!m.current) return;
|
|
4232
4222
|
const T = (A = _ == null ? void 0 : _[p]) != null && A.href ? ((N = (k = _[p].href) == null ? void 0 : k.split("/").pop()) == null ? void 0 : N.split(".")[0]) || `banner_${p + 1}` : `banner_${p + 1}`;
|
|
4233
4223
|
l({
|
|
4234
4224
|
element: "banner_carousel",
|
|
4235
4225
|
label: `${c} - OraculoSeccionBanners - Banner view: Slide ${p + 1} - ${T}`,
|
|
4236
|
-
target: ((
|
|
4226
|
+
target: ((z = _ == null ? void 0 : _[p]) == null ? void 0 : z.href) || "no_url",
|
|
4237
4227
|
event_type: "view",
|
|
4238
4228
|
module_id: f,
|
|
4239
4229
|
metadata: {
|
|
@@ -4292,17 +4282,17 @@ function Uo({
|
|
|
4292
4282
|
const T = (r % C + C) % C;
|
|
4293
4283
|
s(T);
|
|
4294
4284
|
const A = d.current;
|
|
4295
|
-
d.current = !1, p === "user" && (
|
|
4285
|
+
d.current = !1, p === "user" && (D(), A || K(r));
|
|
4296
4286
|
},
|
|
4297
4287
|
renderItem: (r, p) => {
|
|
4298
|
-
var
|
|
4288
|
+
var z, J, ne;
|
|
4299
4289
|
const T = !!r.idFunction, A = !!r.href, k = A && !T, N = T || A;
|
|
4300
4290
|
return /* @__PURE__ */ h(
|
|
4301
4291
|
le,
|
|
4302
4292
|
{
|
|
4303
4293
|
component: k ? "a" : "div",
|
|
4304
4294
|
href: k ? r.href : void 0,
|
|
4305
|
-
target: k ? (
|
|
4295
|
+
target: k ? (z = r.target) != null ? z : "_self" : void 0,
|
|
4306
4296
|
rel: k && r.target === "_blank" ? "noopener noreferrer" : void 0,
|
|
4307
4297
|
onClick: (oe) => I(oe, r, p),
|
|
4308
4298
|
sx: {
|
|
@@ -4366,28 +4356,28 @@ function Uo({
|
|
|
4366
4356
|
Qe,
|
|
4367
4357
|
{
|
|
4368
4358
|
"aria-label": "Anterior",
|
|
4369
|
-
onClick:
|
|
4359
|
+
onClick: H,
|
|
4370
4360
|
sx: {
|
|
4371
4361
|
...$,
|
|
4372
4362
|
left: "120px",
|
|
4373
4363
|
"@media (max-width:1024px)": { left: 24 },
|
|
4374
4364
|
"@media (max-width:786px)": { display: "none" }
|
|
4375
4365
|
},
|
|
4376
|
-
children: /* @__PURE__ */ t(
|
|
4366
|
+
children: /* @__PURE__ */ t(De, {})
|
|
4377
4367
|
}
|
|
4378
4368
|
),
|
|
4379
4369
|
/* @__PURE__ */ t(
|
|
4380
4370
|
Qe,
|
|
4381
4371
|
{
|
|
4382
4372
|
"aria-label": "Siguiente",
|
|
4383
|
-
onClick:
|
|
4373
|
+
onClick: q,
|
|
4384
4374
|
sx: {
|
|
4385
4375
|
...$,
|
|
4386
4376
|
right: "120px",
|
|
4387
4377
|
"@media (max-width:1024px)": { right: 24 },
|
|
4388
4378
|
"@media (max-width:786px)": { display: "none" }
|
|
4389
4379
|
},
|
|
4390
|
-
children: /* @__PURE__ */ t(
|
|
4380
|
+
children: /* @__PURE__ */ t(Ge, {})
|
|
4391
4381
|
}
|
|
4392
4382
|
)
|
|
4393
4383
|
] }),
|
|
@@ -4552,7 +4542,7 @@ function Uo({
|
|
|
4552
4542
|
}
|
|
4553
4543
|
);
|
|
4554
4544
|
}
|
|
4555
|
-
const
|
|
4545
|
+
const Mo = [
|
|
4556
4546
|
{ src: "https://d28gilnhu2bcbp.cloudfront.net/landing/IBK.svg", alt: "Interbank" },
|
|
4557
4547
|
{ src: "https://d28gilnhu2bcbp.cloudfront.net/landing/Yape.svg", alt: "Yape" },
|
|
4558
4548
|
{ src: "https://d28gilnhu2bcbp.cloudfront.net/landing/BCP.png", alt: "BCP" },
|
|
@@ -4562,9 +4552,9 @@ const zo = [
|
|
|
4562
4552
|
{ src: "https://d28gilnhu2bcbp.cloudfront.net/landing/niubiz.svg", alt: "Niubiz" },
|
|
4563
4553
|
{ src: "https://d28gilnhu2bcbp.cloudfront.net/landing/bbva.png", alt: "BBVA" }
|
|
4564
4554
|
];
|
|
4565
|
-
function
|
|
4555
|
+
function Bo({
|
|
4566
4556
|
title: e = "Medios de pago",
|
|
4567
|
-
items: a =
|
|
4557
|
+
items: a = Mo
|
|
4568
4558
|
}) {
|
|
4569
4559
|
const n = Math.ceil(a.length / 2), o = a.slice(0, n), i = a.slice(n);
|
|
4570
4560
|
return /* @__PURE__ */ h(le, { component: "section", "aria-labelledby": "mp-title", sx: { color: "#fff" }, children: [
|
|
@@ -4625,8 +4615,8 @@ function qo({
|
|
|
4625
4615
|
function At({
|
|
4626
4616
|
children: e
|
|
4627
4617
|
}) {
|
|
4628
|
-
const a =
|
|
4629
|
-
() =>
|
|
4618
|
+
const a = Wt(), n = ve.useMemo(
|
|
4619
|
+
() => Vt(a, {
|
|
4630
4620
|
typography: { fontFamily: "var(--orc-font)" },
|
|
4631
4621
|
components: {
|
|
4632
4622
|
MuiTypography: {
|
|
@@ -4638,31 +4628,31 @@ function At({
|
|
|
4638
4628
|
}),
|
|
4639
4629
|
[a]
|
|
4640
4630
|
);
|
|
4641
|
-
return /* @__PURE__ */ h(
|
|
4642
|
-
/* @__PURE__ */ t(
|
|
4631
|
+
return /* @__PURE__ */ h(Dt, { theme: n, children: [
|
|
4632
|
+
/* @__PURE__ */ t(Gt, {}),
|
|
4643
4633
|
e
|
|
4644
4634
|
] });
|
|
4645
4635
|
}
|
|
4646
|
-
function
|
|
4636
|
+
function or({
|
|
4647
4637
|
docId: e = "Landing: home",
|
|
4648
4638
|
moduleId: a = 301,
|
|
4649
4639
|
children: n
|
|
4650
4640
|
}) {
|
|
4651
4641
|
return /* @__PURE__ */ t(At, { children: /* @__PURE__ */ t(Tt, { docId: e, moduleId: a, children: n }) });
|
|
4652
4642
|
}
|
|
4653
|
-
const
|
|
4654
|
-
OraculoSeccionDestacados:
|
|
4655
|
-
OraculoSeccionTopJuegos:
|
|
4656
|
-
OraculoSeccionCasinoEnVivo:
|
|
4657
|
-
OraculoSeccionCasino:
|
|
4658
|
-
OraculoSeccionVirtuales:
|
|
4659
|
-
OraculoSeccionClubOlimpo:
|
|
4660
|
-
OraculoSeccionBonoBienvenida:
|
|
4661
|
-
OraculoSeccionBanners:
|
|
4662
|
-
OraculoSeccionMediosPago:
|
|
4663
|
-
OraculoSeccionEventoEnVivo:
|
|
4664
|
-
OraculoSeccionEventoSemana:
|
|
4665
|
-
OraculoSeccionEventoCombinadas:
|
|
4643
|
+
const Lo = {
|
|
4644
|
+
OraculoSeccionDestacados: Cn,
|
|
4645
|
+
OraculoSeccionTopJuegos: $n,
|
|
4646
|
+
OraculoSeccionCasinoEnVivo: Gn,
|
|
4647
|
+
OraculoSeccionCasino: jn,
|
|
4648
|
+
OraculoSeccionVirtuales: Qn,
|
|
4649
|
+
OraculoSeccionClubOlimpo: to,
|
|
4650
|
+
OraculoSeccionBonoBienvenida: eo,
|
|
4651
|
+
OraculoSeccionBanners: Ao,
|
|
4652
|
+
OraculoSeccionMediosPago: Bo,
|
|
4653
|
+
OraculoSeccionEventoEnVivo: bo,
|
|
4654
|
+
OraculoSeccionEventoSemana: Co,
|
|
4655
|
+
OraculoSeccionEventoCombinadas: so
|
|
4666
4656
|
}, Le = {
|
|
4667
4657
|
sections: [
|
|
4668
4658
|
{
|
|
@@ -6031,7 +6021,7 @@ const Do = {
|
|
|
6031
6021
|
componentKey: "OraculoSeccionMediosPago"
|
|
6032
6022
|
}
|
|
6033
6023
|
]
|
|
6034
|
-
},
|
|
6024
|
+
}, Ro = (e) => typeof e == "function" || e && typeof e == "object" && "$$typeof" in e, Po = (e) => /^OraculoSeccion[A-Z]/.test(e);
|
|
6035
6025
|
function Ae(e) {
|
|
6036
6026
|
return e && Array.isArray(e.sections) ? e.sections.slice().sort((a, n) => {
|
|
6037
6027
|
var o, i;
|
|
@@ -6057,11 +6047,11 @@ function Ae(e) {
|
|
|
6057
6047
|
};
|
|
6058
6048
|
}) : [];
|
|
6059
6049
|
}
|
|
6060
|
-
const
|
|
6061
|
-
Object.entries(
|
|
6062
|
-
([e, a]) =>
|
|
6050
|
+
const Fo = Object.fromEntries(
|
|
6051
|
+
Object.entries(Lo).filter(
|
|
6052
|
+
([e, a]) => Po(e) && Ro(a)
|
|
6063
6053
|
)
|
|
6064
|
-
),
|
|
6054
|
+
), zo = (e) => {
|
|
6065
6055
|
try {
|
|
6066
6056
|
return Object.fromEntries(e != null ? e : []);
|
|
6067
6057
|
} catch {
|
|
@@ -6073,7 +6063,7 @@ class ft extends Error {
|
|
|
6073
6063
|
super(`HTTP ${a} ${o}`), this.status = a, this.url = n, this.statusText = o, this.name = "HttpError";
|
|
6074
6064
|
}
|
|
6075
6065
|
}
|
|
6076
|
-
class
|
|
6066
|
+
class Uo extends ve.Component {
|
|
6077
6067
|
constructor(a) {
|
|
6078
6068
|
super(a), this.state = { hasError: !1 };
|
|
6079
6069
|
}
|
|
@@ -6097,13 +6087,13 @@ const gt = [
|
|
|
6097
6087
|
"OraculoSeccionEventoEnVivo",
|
|
6098
6088
|
"OraculoSeccionEventoSemana",
|
|
6099
6089
|
"OraculoSeccionEventoCombinadas"
|
|
6100
|
-
],
|
|
6090
|
+
], qo = [
|
|
6101
6091
|
"OraculoSeccionCasino",
|
|
6102
6092
|
"OraculoSeccionVirtuales",
|
|
6103
6093
|
"OraculoSeccionCasinoEnVivo",
|
|
6104
6094
|
"OraculoSeccionTopJuegos",
|
|
6105
6095
|
"OraculoSeccionDestacados"
|
|
6106
|
-
],
|
|
6096
|
+
], rr = ({
|
|
6107
6097
|
sectionsOverride: e,
|
|
6108
6098
|
docId: a = "Landing: home",
|
|
6109
6099
|
moduleId: n = 301,
|
|
@@ -6112,7 +6102,7 @@ const gt = [
|
|
|
6112
6102
|
loader: s,
|
|
6113
6103
|
disableWrapper: l = !1
|
|
6114
6104
|
}) => {
|
|
6115
|
-
const c = de(() =>
|
|
6105
|
+
const c = de(() => zo(i), [i]), f = s || c.loader, [g, m] = ee(
|
|
6116
6106
|
() => e ? [] : Ae(Le)
|
|
6117
6107
|
), [d, u] = ee(!1), [b, x] = ee({}), [v, S] = ee({}), [M, E] = ee({}), _ = Je("(min-width:1024px)"), C = de(
|
|
6118
6108
|
() => Ae(Le),
|
|
@@ -6152,7 +6142,7 @@ const gt = [
|
|
|
6152
6142
|
console.warn("[landing] FALLBACK:", T, A != null ? A : ""), m(Ae(Le)), u(!1);
|
|
6153
6143
|
};
|
|
6154
6144
|
u(!0);
|
|
6155
|
-
const p =
|
|
6145
|
+
const p = Ht(
|
|
6156
6146
|
Zt(o, "landings", a),
|
|
6157
6147
|
(T) => {
|
|
6158
6148
|
try {
|
|
@@ -6177,7 +6167,7 @@ const gt = [
|
|
|
6177
6167
|
}
|
|
6178
6168
|
);
|
|
6179
6169
|
return () => p();
|
|
6180
|
-
}, [e, a, o]), re(() => (
|
|
6170
|
+
}, [e, a, o]), re(() => (kn(c), () => Nn()), [c]), re(() => {
|
|
6181
6171
|
(e ? e.slice() : g.slice()).map((T) => T.componentKey).filter((T) => !!T).length;
|
|
6182
6172
|
}, [e, g]);
|
|
6183
6173
|
const y = async (r) => {
|
|
@@ -6190,7 +6180,7 @@ const gt = [
|
|
|
6190
6180
|
const p = (r.apiUrl || "").trim();
|
|
6191
6181
|
if (!p) return;
|
|
6192
6182
|
const T = r.apiMethod || "GET", A = r.apiParams || [];
|
|
6193
|
-
let k = p, N,
|
|
6183
|
+
let k = p, N, z;
|
|
6194
6184
|
if (T === "GET") {
|
|
6195
6185
|
const ne = new URL(
|
|
6196
6186
|
p,
|
|
@@ -6203,13 +6193,13 @@ const gt = [
|
|
|
6203
6193
|
const ne = new URLSearchParams();
|
|
6204
6194
|
for (const oe of A)
|
|
6205
6195
|
oe.key && ne.append(oe.key, oe.value);
|
|
6206
|
-
N = ne.toString(),
|
|
6196
|
+
N = ne.toString(), z = {
|
|
6207
6197
|
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
|
|
6208
6198
|
};
|
|
6209
6199
|
}
|
|
6210
6200
|
const J = await fetch(k, {
|
|
6211
6201
|
method: T,
|
|
6212
|
-
headers:
|
|
6202
|
+
headers: z,
|
|
6213
6203
|
body: N
|
|
6214
6204
|
});
|
|
6215
6205
|
if (!J.ok) throw new ft(J.status, k, J.statusText);
|
|
@@ -6229,7 +6219,7 @@ const gt = [
|
|
|
6229
6219
|
x((N) => ({ ...N, [p.id]: k }));
|
|
6230
6220
|
} catch (k) {
|
|
6231
6221
|
let N = "Error desconocido";
|
|
6232
|
-
k instanceof ft ? N = `Error HTTP ${k.status} (${k.statusText}) en ${k.url}` : k instanceof SyntaxError ? N = "Respuesta no es JSON válido" : k instanceof TypeError ? N = "Fallo de red / CORS / conexión" : typeof k == "string" && (N = k.toString()), E((
|
|
6222
|
+
k instanceof ft ? N = `Error HTTP ${k.status} (${k.statusText}) en ${k.url}` : k instanceof SyntaxError ? N = "Respuesta no es JSON válido" : k instanceof TypeError ? N = "Fallo de red / CORS / conexión" : typeof k == "string" && (N = k.toString()), E((z) => ({ ...z, [p.id]: N }));
|
|
6233
6223
|
} finally {
|
|
6234
6224
|
S((k) => ({ ...k, [p.id]: !1 }));
|
|
6235
6225
|
}
|
|
@@ -6246,8 +6236,8 @@ const gt = [
|
|
|
6246
6236
|
if (k === "number") {
|
|
6247
6237
|
const N = String(A.value || "").trim();
|
|
6248
6238
|
if (N !== "") {
|
|
6249
|
-
const
|
|
6250
|
-
Number.isNaN(
|
|
6239
|
+
const z = Number(N);
|
|
6240
|
+
Number.isNaN(z) || (T[A.name] = z);
|
|
6251
6241
|
}
|
|
6252
6242
|
} else if (k === "boolean")
|
|
6253
6243
|
T[A.name] = String(A.value).toLowerCase() === "true";
|
|
@@ -6255,10 +6245,10 @@ const gt = [
|
|
|
6255
6245
|
const N = String(A.value || "").trim();
|
|
6256
6246
|
if (N)
|
|
6257
6247
|
try {
|
|
6258
|
-
const
|
|
6259
|
-
T[A.name] =
|
|
6260
|
-
} catch (
|
|
6261
|
-
console.error(`❌ Error creando función en item '${A.name}':`,
|
|
6248
|
+
const z = new Function(N);
|
|
6249
|
+
T[A.name] = z;
|
|
6250
|
+
} catch (z) {
|
|
6251
|
+
console.error(`❌ Error creando función en item '${A.name}':`, z);
|
|
6262
6252
|
}
|
|
6263
6253
|
} else
|
|
6264
6254
|
T[A.name] = A.value;
|
|
@@ -6295,15 +6285,15 @@ const gt = [
|
|
|
6295
6285
|
const k = T ? { ...T } : {}, N = (A || "items").trim() || "items";
|
|
6296
6286
|
if (p)
|
|
6297
6287
|
return k[N] = p.arr || [], k;
|
|
6298
|
-
const
|
|
6299
|
-
if (Array.isArray(
|
|
6300
|
-
return k[N] =
|
|
6301
|
-
if (
|
|
6302
|
-
const J =
|
|
6303
|
-
return Array.isArray(J.lobby) ? (k[N] = J.lobby, k) : Array.isArray(J.items) ? (k[N] = J.items, k) : (k[N] =
|
|
6288
|
+
const z = r;
|
|
6289
|
+
if (Array.isArray(z))
|
|
6290
|
+
return k[N] = z, k;
|
|
6291
|
+
if (z && typeof z == "object") {
|
|
6292
|
+
const J = z;
|
|
6293
|
+
return Array.isArray(J.lobby) ? (k[N] = J.lobby, k) : Array.isArray(J.items) ? (k[N] = J.items, k) : (k[N] = z, k);
|
|
6304
6294
|
}
|
|
6305
6295
|
return k[N] = [], k;
|
|
6306
|
-
},
|
|
6296
|
+
}, D = (r) => {
|
|
6307
6297
|
var N;
|
|
6308
6298
|
const p = !!((N = r.apiUrl) != null && N.trim()), T = p ? b[r.id] : void 0;
|
|
6309
6299
|
let A = r.props ? { ...r.props } : {};
|
|
@@ -6313,10 +6303,10 @@ const gt = [
|
|
|
6313
6303
|
if (A = { ...A, ...k }, p)
|
|
6314
6304
|
A = V(T, null, A);
|
|
6315
6305
|
else if (r.dataMode === "manual") {
|
|
6316
|
-
const
|
|
6306
|
+
const z = P(r.manualItems);
|
|
6317
6307
|
if (A = V(
|
|
6318
6308
|
null,
|
|
6319
|
-
{ arr:
|
|
6309
|
+
{ arr: z, variableName: r.variableName },
|
|
6320
6310
|
A,
|
|
6321
6311
|
r.variableName
|
|
6322
6312
|
), r.variableName2 && r.manualItems2) {
|
|
@@ -6325,7 +6315,7 @@ const gt = [
|
|
|
6325
6315
|
}
|
|
6326
6316
|
}
|
|
6327
6317
|
return A;
|
|
6328
|
-
},
|
|
6318
|
+
}, H = (r) => {
|
|
6329
6319
|
const p = r.props ? { ...r.props } : {};
|
|
6330
6320
|
try {
|
|
6331
6321
|
Object.assign(p, W(r.manualScalarFields));
|
|
@@ -6338,9 +6328,9 @@ const gt = [
|
|
|
6338
6328
|
typeof p[A] == "undefined" && (p[A] = []);
|
|
6339
6329
|
}
|
|
6340
6330
|
return p;
|
|
6341
|
-
},
|
|
6331
|
+
}, q = (r) => {
|
|
6342
6332
|
try {
|
|
6343
|
-
return
|
|
6333
|
+
return D(r);
|
|
6344
6334
|
} catch (p) {
|
|
6345
6335
|
console.error("🔥 ERROR EN buildCompProps:", r, p);
|
|
6346
6336
|
const T = O(r);
|
|
@@ -6348,11 +6338,11 @@ const gt = [
|
|
|
6348
6338
|
try {
|
|
6349
6339
|
return console.warn(
|
|
6350
6340
|
`[landing] usando fallback local para sección ${r.title} (${r.componentKey})`
|
|
6351
|
-
),
|
|
6341
|
+
), D(T);
|
|
6352
6342
|
} catch (A) {
|
|
6353
6343
|
console.error("🔥 ERROR EN fallback buildCompProps:", T, A);
|
|
6354
6344
|
}
|
|
6355
|
-
return
|
|
6345
|
+
return H(r);
|
|
6356
6346
|
}
|
|
6357
6347
|
}, K = (r, p, T) => /* @__PURE__ */ t("div", { className: `mx-4 p-4 rounded ${{
|
|
6358
6348
|
loading: "bg-blue-100 text-blue-800",
|
|
@@ -6360,7 +6350,7 @@ const gt = [
|
|
|
6360
6350
|
component: "bg-yellow-100 text-yellow-800"
|
|
6361
6351
|
}[p]}`, children: T }, r), Y = (r) => {
|
|
6362
6352
|
var $e;
|
|
6363
|
-
const p = r.componentKey, T =
|
|
6353
|
+
const p = r.componentKey, T = Fo[p], k = (/* @__PURE__ */ new Set([
|
|
6364
6354
|
"OraculoSeccionBanners",
|
|
6365
6355
|
"OraculoSeccionBonoBienvenida",
|
|
6366
6356
|
"OraculoSeccionCasinoEnVivo",
|
|
@@ -6373,13 +6363,13 @@ const gt = [
|
|
|
6373
6363
|
"OraculoSeccionDestacados",
|
|
6374
6364
|
"OraculoSeccionCasino"
|
|
6375
6365
|
]
|
|
6376
|
-
])).has(r.componentKey), N = _ ? 120 : 24,
|
|
6366
|
+
])).has(r.componentKey), N = _ ? 120 : 24, z = (_ ? 8 : 5) * 8, J = r.componentKey === "OraculoSeccionCasinoEnVivo", ne = {
|
|
6377
6367
|
width: "100%",
|
|
6378
6368
|
boxSizing: "border-box",
|
|
6379
6369
|
...k ? {} : { paddingLeft: N, paddingRight: N },
|
|
6380
6370
|
...J ? {
|
|
6381
|
-
marginTop: -
|
|
6382
|
-
marginBottom: -
|
|
6371
|
+
marginTop: -z,
|
|
6372
|
+
marginBottom: -z
|
|
6383
6373
|
} : {}
|
|
6384
6374
|
};
|
|
6385
6375
|
if (!T)
|
|
@@ -6390,7 +6380,7 @@ const gt = [
|
|
|
6390
6380
|
);
|
|
6391
6381
|
const oe = !!(($e = r.apiUrl) != null && $e.trim()), j = oe ? b[r.id] : void 0, ie = oe ? !!v[r.id] : !1, Se = oe ? M[r.id] : "";
|
|
6392
6382
|
if (oe) {
|
|
6393
|
-
const Mt =
|
|
6383
|
+
const Mt = qo.includes(r.componentKey);
|
|
6394
6384
|
if (ie && !j && !Mt)
|
|
6395
6385
|
return K(
|
|
6396
6386
|
r.id,
|
|
@@ -6401,13 +6391,13 @@ const gt = [
|
|
|
6401
6391
|
const Me = O(r);
|
|
6402
6392
|
if (Me && Me.dataMode === "manual")
|
|
6403
6393
|
try {
|
|
6404
|
-
const
|
|
6405
|
-
return /* @__PURE__ */ t("div", { style: ne, className: "oraculo-section-wrapper", children: /* @__PURE__ */ t(T, { ...
|
|
6406
|
-
} catch (
|
|
6394
|
+
const He = q(Me);
|
|
6395
|
+
return /* @__PURE__ */ t("div", { style: ne, className: "oraculo-section-wrapper", children: /* @__PURE__ */ t(T, { ...He }) }, r.id);
|
|
6396
|
+
} catch (He) {
|
|
6407
6397
|
console.error(
|
|
6408
6398
|
"🔥 ERROR renderizando fallback manual de sección:",
|
|
6409
6399
|
Me,
|
|
6410
|
-
|
|
6400
|
+
He
|
|
6411
6401
|
);
|
|
6412
6402
|
}
|
|
6413
6403
|
return K(
|
|
@@ -6417,11 +6407,11 @@ const gt = [
|
|
|
6417
6407
|
);
|
|
6418
6408
|
}
|
|
6419
6409
|
}
|
|
6420
|
-
const we =
|
|
6410
|
+
const we = q(r), Oe = r.componentKey === "OraculoSeccionClubOlimpo" || r.componentKey === "OraculoSeccionBanners" ? {
|
|
6421
6411
|
...we,
|
|
6422
6412
|
user: c.user
|
|
6423
6413
|
} : we;
|
|
6424
|
-
return /* @__PURE__ */ t(
|
|
6414
|
+
return /* @__PURE__ */ t(Uo, { section: r, children: /* @__PURE__ */ t(
|
|
6425
6415
|
"div",
|
|
6426
6416
|
{
|
|
6427
6417
|
style: ne,
|
|
@@ -6463,39 +6453,39 @@ export {
|
|
|
6463
6453
|
yt as OraculoCarouselDots,
|
|
6464
6454
|
Pa as OraculoClubOlimpoVisual,
|
|
6465
6455
|
Ja as OraculoEventCombinadasCard,
|
|
6466
|
-
|
|
6456
|
+
_n as OraculoEventEnVivoCard,
|
|
6467
6457
|
oa as OraculoEventHeader,
|
|
6468
6458
|
Ke as OraculoEventLabel,
|
|
6469
6459
|
xt as OraculoEventLeague,
|
|
6470
6460
|
St as OraculoEventScore,
|
|
6471
|
-
|
|
6461
|
+
Tn as OraculoEventSemanaCard,
|
|
6472
6462
|
na as OraculoEventStatus,
|
|
6473
6463
|
aa as OraculoEventStatusBadge,
|
|
6474
|
-
|
|
6464
|
+
Ue as OraculoEventTeamInfo,
|
|
6475
6465
|
Fe as OraculoGameCard,
|
|
6476
6466
|
Ra as OraculoGameRankCard,
|
|
6477
6467
|
wt as OraculoGameSlide,
|
|
6478
6468
|
me as OraculoGridGroup,
|
|
6479
6469
|
nt as OraculoLiveCasinoCard,
|
|
6480
6470
|
Ye as OraculoLogoMediosPago,
|
|
6481
|
-
|
|
6482
|
-
|
|
6483
|
-
|
|
6484
|
-
|
|
6485
|
-
|
|
6486
|
-
|
|
6487
|
-
|
|
6488
|
-
|
|
6489
|
-
|
|
6490
|
-
|
|
6491
|
-
|
|
6492
|
-
|
|
6493
|
-
|
|
6494
|
-
|
|
6471
|
+
rr as OraculoPageLandingPreview,
|
|
6472
|
+
Ao as OraculoSeccionBanners,
|
|
6473
|
+
eo as OraculoSeccionBonoBienvenida,
|
|
6474
|
+
jn as OraculoSeccionCasino,
|
|
6475
|
+
Gn as OraculoSeccionCasinoEnVivo,
|
|
6476
|
+
to as OraculoSeccionClubOlimpo,
|
|
6477
|
+
Cn as OraculoSeccionDestacados,
|
|
6478
|
+
so as OraculoSeccionEventoCombinadas,
|
|
6479
|
+
bo as OraculoSeccionEventoEnVivo,
|
|
6480
|
+
Co as OraculoSeccionEventoSemana,
|
|
6481
|
+
Bo as OraculoSeccionMediosPago,
|
|
6482
|
+
$n as OraculoSeccionTopJuegos,
|
|
6483
|
+
Qn as OraculoSeccionVirtuales,
|
|
6484
|
+
or as OraculoSectionHost,
|
|
6495
6485
|
ye as OraculoSectionTitle,
|
|
6496
6486
|
At as OraculoThemeProvider,
|
|
6497
|
-
|
|
6487
|
+
$n as OraculoTopJuegoItem,
|
|
6498
6488
|
ot as OraculoWelcomeBanner,
|
|
6499
|
-
|
|
6489
|
+
rr as default
|
|
6500
6490
|
};
|
|
6501
6491
|
//# sourceMappingURL=index.es.js.map
|