oraculo-ui 0.1.154 → 0.1.156
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +3 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +157 -154
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t, jsxs as b, Fragment as te } from "react/jsx-runtime";
|
|
2
|
-
import { Link as vt, Box as le, IconButton as Qe, useMediaQuery as et, Typography as yt, Stack as
|
|
3
|
-
import ve, { useState as ee, useEffect as re, useRef as Z, forwardRef as Ft, useImperativeHandle as zt, useCallback as
|
|
2
|
+
import { Link as vt, Box as le, IconButton as Qe, useMediaQuery as et, Typography as yt, Stack as Fe, Container as Pt } from "@mui/material";
|
|
3
|
+
import ve, { useState as ee, useEffect as re, useRef as Z, forwardRef as Ft, useImperativeHandle as zt, useCallback as Me, createContext as Ut, useContext as qt, useMemo as de, useLayoutEffect as Vt } from "react";
|
|
4
4
|
import X from "@mui/material/Skeleton";
|
|
5
5
|
import { Splide as Wt, SplideSlide as Dt } from "@splidejs/react-splide";
|
|
6
6
|
import U from "@mui/material/Box";
|
|
@@ -588,7 +588,7 @@ const Ma = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", Ba = "ora
|
|
|
588
588
|
return (v = u.current) == null ? void 0 : v.go(E);
|
|
589
589
|
}
|
|
590
590
|
}));
|
|
591
|
-
const
|
|
591
|
+
const C = (E) => {
|
|
592
592
|
var G;
|
|
593
593
|
const v = E.Components.Slides, T = E.Components.Controller, F = E.root.querySelector(".splide__track"), R = (G = F == null ? void 0 : F.clientWidth) != null ? G : 0, P = T.getIndex(), V = v.getLength();
|
|
594
594
|
let W = 0, D = P;
|
|
@@ -601,7 +601,7 @@ const Ma = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", Ba = "ora
|
|
|
601
601
|
}, O = (E) => {
|
|
602
602
|
const v = E.root.querySelector(".splide__track"), T = E.root.querySelector(".splide__list");
|
|
603
603
|
return !v || !T ? !1 : T.scrollWidth > v.clientWidth + 1;
|
|
604
|
-
}, L = Z(!1), I =
|
|
604
|
+
}, L = Z(!1), I = Me((E) => {
|
|
605
605
|
var G, q;
|
|
606
606
|
if (L.current) return;
|
|
607
607
|
const T = E.Components.Slides.getLength(), F = M.current;
|
|
@@ -617,7 +617,7 @@ const Ma = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", Ba = "ora
|
|
|
617
617
|
});
|
|
618
618
|
return;
|
|
619
619
|
}
|
|
620
|
-
const { visibleStart: R, visibleEnd: P } =
|
|
620
|
+
const { visibleStart: R, visibleEnd: P } = C(E), V = R === 0, W = P === T - 1;
|
|
621
621
|
m && ((G = _.current) == null || G.style.setProperty("--gradient-opacity", V ? "0" : "1"), (q = S.current) == null || q.style.setProperty("--gradient-opacity", W ? "0" : "1"));
|
|
622
622
|
const D = E.Components.Controller.getIndex();
|
|
623
623
|
c == null || c({
|
|
@@ -645,7 +645,7 @@ const Ma = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", Ba = "ora
|
|
|
645
645
|
M.current = "resize", I(E);
|
|
646
646
|
});
|
|
647
647
|
}, [e.length, I]);
|
|
648
|
-
const y =
|
|
648
|
+
const y = Me(() => {
|
|
649
649
|
var v;
|
|
650
650
|
const E = (v = u.current) == null ? void 0 : v.splide;
|
|
651
651
|
if (E) {
|
|
@@ -657,7 +657,7 @@ const Ma = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", Ba = "ora
|
|
|
657
657
|
}
|
|
658
658
|
M.current = "resize", I(E);
|
|
659
659
|
}
|
|
660
|
-
}, [I]), w =
|
|
660
|
+
}, [I]), w = Me(
|
|
661
661
|
(E) => {
|
|
662
662
|
M.current = "mounted", I(E);
|
|
663
663
|
},
|
|
@@ -853,9 +853,9 @@ function za({
|
|
|
853
853
|
}) {
|
|
854
854
|
var d, u, h, x;
|
|
855
855
|
const s = (_, S) => {
|
|
856
|
-
var M,
|
|
856
|
+
var M, C, O, L;
|
|
857
857
|
return {
|
|
858
|
-
xs: (
|
|
858
|
+
xs: (C = (M = i.xs) == null ? void 0 : M[_]) != null ? C : S,
|
|
859
859
|
md: (L = (O = i.md) == null ? void 0 : O[_]) != null ? L : S
|
|
860
860
|
};
|
|
861
861
|
}, l = s("w", 186), c = s("h", 264), g = s("r", 22.6), f = s("font", 64), m = {
|
|
@@ -952,7 +952,7 @@ function za({
|
|
|
952
952
|
}
|
|
953
953
|
);
|
|
954
954
|
}
|
|
955
|
-
const Ke = "/assets/img/home/CasinoEnVivo/image3.png", Ua = "/assets/img/home/CasinoEnVivo/image2.png",
|
|
955
|
+
const Ke = "/assets/img/home/CasinoEnVivo/image3.png", Ua = "/assets/img/home/CasinoEnVivo/image2.png", Le = "/assets/img/home/CasinoEnVivo/image1.png", it = ({
|
|
956
956
|
logo: e,
|
|
957
957
|
provider: a,
|
|
958
958
|
providerName: n,
|
|
@@ -1051,18 +1051,18 @@ const Ke = "/assets/img/home/CasinoEnVivo/image3.png", Ua = "/assets/img/home/Ca
|
|
|
1051
1051
|
U,
|
|
1052
1052
|
{
|
|
1053
1053
|
component: "img",
|
|
1054
|
-
src: l ?
|
|
1054
|
+
src: l ? Le : Ke,
|
|
1055
1055
|
alt: l ? "Favorito activo" : "Favorito",
|
|
1056
1056
|
sx: {
|
|
1057
1057
|
width: 32,
|
|
1058
1058
|
height: 32,
|
|
1059
1059
|
objectFit: "contain",
|
|
1060
1060
|
content: {
|
|
1061
|
-
xs: `url(${l ?
|
|
1062
|
-
md: `url(${l ?
|
|
1061
|
+
xs: `url(${l ? Le : Ke})`,
|
|
1062
|
+
md: `url(${l ? Le : Ke})`
|
|
1063
1063
|
},
|
|
1064
1064
|
".MuiIconButton-root:hover &": {
|
|
1065
|
-
content: l ? `url(${
|
|
1065
|
+
content: l ? `url(${Le})` : `url(${Ua})`
|
|
1066
1066
|
}
|
|
1067
1067
|
}
|
|
1068
1068
|
}
|
|
@@ -1502,7 +1502,7 @@ function en({ coupon: e }) {
|
|
|
1502
1502
|
);
|
|
1503
1503
|
return u.forEach((_) => {
|
|
1504
1504
|
var O;
|
|
1505
|
-
const S = (O = _.betoffers) != null ? O : [], M = _.homeName,
|
|
1505
|
+
const S = (O = _.betoffers) != null ? O : [], M = _.homeName, C = _.awayName;
|
|
1506
1506
|
S.forEach((L) => {
|
|
1507
1507
|
var B, E, v, T, F, R, P;
|
|
1508
1508
|
if (!((B = L == null ? void 0 : L.outcomes) != null && B.length)) return;
|
|
@@ -1510,7 +1510,7 @@ function en({ coupon: e }) {
|
|
|
1510
1510
|
if (!I) return;
|
|
1511
1511
|
let y = "";
|
|
1512
1512
|
const w = I != null && I.line ? I.line / 1e3 : "";
|
|
1513
|
-
["Más de", "Mas de", "Over"].includes(I.label) ? (y = `Más de ${w}`, I.participant && (y = `${I.participant} - ${y}`)) : ["Menos de", "Menos", "Under"].includes(I.label) ? (y = `Menos de ${w}`, I.participant && (y = `${I.participant} - ${y}`)) : ["Sí", "No"].includes(I.label) ? (y = I.label, I.participant && (y = `${I.participant} - ${y}`)) : ["1X", "12", "X2"].includes(I.label) ? (I.label === "1X" && (y = `${M} o Empate`), I.label === "12" && (y = `${M} o ${
|
|
1513
|
+
["Más de", "Mas de", "Over"].includes(I.label) ? (y = `Más de ${w}`, I.participant && (y = `${I.participant} - ${y}`)) : ["Menos de", "Menos", "Under"].includes(I.label) ? (y = `Menos de ${w}`, I.participant && (y = `${I.participant} - ${y}`)) : ["Sí", "No"].includes(I.label) ? (y = I.label, I.participant && (y = `${I.participant} - ${y}`)) : ["1X", "12", "X2"].includes(I.label) ? (I.label === "1X" && (y = `${M} o Empate`), I.label === "12" && (y = `${M} o ${C}`), I.label === "X2" && (y = `${C} o Empate`)) : (y = (v = (E = I.participant) != null ? E : I.label) != null ? v : "", w !== "" && y === I.label && (y = `${I.label} ${w}`)), d.push({
|
|
1514
1514
|
id: I.id,
|
|
1515
1515
|
value: y,
|
|
1516
1516
|
label: (F = (T = L.criterion) == null ? void 0 : T.label) != null ? F : "",
|
|
@@ -1546,9 +1546,9 @@ function en({ coupon: e }) {
|
|
|
1546
1546
|
const u = Array.isArray(m) ? m : [m], h = Array.from(
|
|
1547
1547
|
new Set(
|
|
1548
1548
|
l.outcomes.map((S) => {
|
|
1549
|
-
var
|
|
1549
|
+
var C;
|
|
1550
1550
|
const M = g.get(Number(S.eventId));
|
|
1551
|
-
return (
|
|
1551
|
+
return (C = M == null ? void 0 : M.name) != null ? C : "";
|
|
1552
1552
|
})
|
|
1553
1553
|
)
|
|
1554
1554
|
).filter(Boolean), x = h.length > 0 ? h.join(" + ") : JSON.stringify(u), _ = d ? `${x} - Cuota: ${d}` : x;
|
|
@@ -1734,19 +1734,19 @@ function hn({
|
|
|
1734
1734
|
homeServe: l = !0
|
|
1735
1735
|
}) {
|
|
1736
1736
|
const c = n.reduce(
|
|
1737
|
-
(M,
|
|
1737
|
+
(M, C, O) => C >= 0 ? O : M,
|
|
1738
1738
|
0
|
|
1739
1739
|
);
|
|
1740
1740
|
let g = 0, f = 0;
|
|
1741
|
-
n.forEach((M,
|
|
1741
|
+
n.forEach((M, C) => {
|
|
1742
1742
|
var L;
|
|
1743
|
-
const O = (L = o[
|
|
1744
|
-
|
|
1743
|
+
const O = (L = o[C]) != null ? L : -1;
|
|
1744
|
+
C !== c && M >= 0 && O >= 0 && (M > O && g++, O > M && f++);
|
|
1745
1745
|
});
|
|
1746
1746
|
const m = n[c] >= 0 ? n[c] : 0, d = o[c] >= 0 ? o[c] : 0, u = (M) => {
|
|
1747
1747
|
if (typeof M == "number") return M;
|
|
1748
|
-
const
|
|
1749
|
-
return
|
|
1748
|
+
const C = String(M).trim().toUpperCase();
|
|
1749
|
+
return C === "A" || C === "ADV" ? 50 : parseInt(C, 10) || 0;
|
|
1750
1750
|
}, h = u(i), x = u(s);
|
|
1751
1751
|
let _ = !1, S = !1;
|
|
1752
1752
|
return g !== f ? (_ = g > f, S = f > g) : m !== d ? (_ = m > d, S = d > m) : h !== x && (_ = h > x, S = x > h), /* @__PURE__ */ t("div", { className: H.tennisContainer, children: /* @__PURE__ */ b("table", { className: H.tennisTable, children: [
|
|
@@ -1809,7 +1809,7 @@ const bn = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", _n = "
|
|
|
1809
1809
|
return e ? (a = xn[e]) != null ? a : e : "";
|
|
1810
1810
|
};
|
|
1811
1811
|
function Sn({ event: e, liveData: a, betOffers: n, jersey: o }) {
|
|
1812
|
-
var u, h, x, _, S, M,
|
|
1812
|
+
var u, h, x, _, S, M, C, O, L, I, y, w, B, E, v, T, F, R, P, V, W, D, G, q, K, Y, r, p, k, A;
|
|
1813
1813
|
const i = ((u = e == null ? void 0 : e.sport) == null ? void 0 : u.toUpperCase()) === "TENNIS", s = ((h = e == null ? void 0 : e.sport) == null ? void 0 : h.toUpperCase()) === "BASKETBALL", l = ((x = e == null ? void 0 : e.sport) == null ? void 0 : x.toUpperCase()) === "FOOTBALL", c = n == null ? void 0 : n.find(
|
|
1814
1814
|
(N) => {
|
|
1815
1815
|
var $;
|
|
@@ -1837,7 +1837,7 @@ function Sn({ event: e, liveData: a, betOffers: n, jersey: o }) {
|
|
|
1837
1837
|
/* @__PURE__ */ t(
|
|
1838
1838
|
la,
|
|
1839
1839
|
{
|
|
1840
|
-
title: (
|
|
1840
|
+
title: (C = (M = (S = e == null ? void 0 : e.path) == null ? void 0 : S[0]) == null ? void 0 : M.name) != null ? C : "",
|
|
1841
1841
|
subtitle: (O = e == null ? void 0 : e.group) != null ? O : "",
|
|
1842
1842
|
live: !0,
|
|
1843
1843
|
time: i ? f() : ((L = a == null ? void 0 : a.matchClock) == null ? void 0 : L.minute) != null ? `${a.matchClock.minute}'` : "",
|
|
@@ -1857,7 +1857,7 @@ function Sn({ event: e, liveData: a, betOffers: n, jersey: o }) {
|
|
|
1857
1857
|
}
|
|
1858
1858
|
) : /* @__PURE__ */ b(me, { spacing: 1.5, columns: "1fr auto 1fr", children: [
|
|
1859
1859
|
/* @__PURE__ */ t(qe, { 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 : "" }),
|
|
1860
|
-
/* @__PURE__ */ t(It, { 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 ? ut((
|
|
1860
|
+
/* @__PURE__ */ t(It, { 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 ? ut((k = a == null ? void 0 : a.matchClock) == null ? void 0 : k.periodId) : "" }),
|
|
1861
1861
|
/* @__PURE__ */ t(qe, { 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 : "" })
|
|
1862
1862
|
] }) })
|
|
1863
1863
|
] }),
|
|
@@ -1955,8 +1955,8 @@ function Nn({ event: e, jersey: a }) {
|
|
|
1955
1955
|
return S = S.replace(/\./g, "").replace(/A\s*M/i, "AM").replace(/P\s*M/i, "PM"), `${h} ${x}/${_} | ${S}`;
|
|
1956
1956
|
}
|
|
1957
1957
|
const s = (d) => {
|
|
1958
|
-
var
|
|
1959
|
-
const u = `/deportes#event/${e.id}`, h = `${e.homeName} vs ${e.awayName}`, x = d.odds ? (d.odds / 1e3).toFixed(2) : "", _ = x ? `${h} - Cuota: ${x}` : h, S = (
|
|
1958
|
+
var C, O, L, I, y, w, B, E;
|
|
1959
|
+
const u = `/deportes#event/${e.id}`, h = `${e.homeName} vs ${e.awayName}`, x = d.odds ? (d.odds / 1e3).toFixed(2) : "", _ = x ? `${h} - Cuota: ${x}` : h, S = (C = e == null ? void 0 : e.outcome) == null ? void 0 : C[0], M = new CustomEvent("ORACULO_WEEKLY_OUTCOME_SELECTED", {
|
|
1960
1960
|
cancelable: !0,
|
|
1961
1961
|
detail: {
|
|
1962
1962
|
eventId: e.id,
|
|
@@ -2002,8 +2002,8 @@ function Nn({ event: e, jersey: a }) {
|
|
|
2002
2002
|
/* @__PURE__ */ t(In, { text: i(e.start) })
|
|
2003
2003
|
] }),
|
|
2004
2004
|
/* @__PURE__ */ t(Q, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: (() => {
|
|
2005
|
-
var S, M,
|
|
2006
|
-
const d = (
|
|
2005
|
+
var S, M, C;
|
|
2006
|
+
const d = (C = (M = (S = e == null ? void 0 : e.outcome) == null ? void 0 : S[0]) == null ? void 0 : M.outcomes) != null ? C : [], u = (e == null ? void 0 : e.sport) === "TENNIS", h = { OT_ONE: 1, OT_CROSS: 2, OT_TWO: 3 }, x = [...d].sort((O, L) => {
|
|
2007
2007
|
var w, B;
|
|
2008
2008
|
if (O.displayOrder !== void 0 && L.displayOrder !== void 0)
|
|
2009
2009
|
return O.displayOrder - L.displayOrder;
|
|
@@ -2096,14 +2096,14 @@ function An({
|
|
|
2096
2096
|
},
|
|
2097
2097
|
tags: { section: "OraculoSeccionDestacados" }
|
|
2098
2098
|
}), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/promociones");
|
|
2099
|
-
}, M = s || void 0,
|
|
2099
|
+
}, M = s || void 0, C = Ne("(max-width:950px)"), O = (I = e == null ? void 0 : e.length) != null ? I : 0;
|
|
2100
2100
|
re(() => {
|
|
2101
2101
|
if (O === 0) {
|
|
2102
2102
|
f({ isStart: !0, isEnd: !0 });
|
|
2103
2103
|
return;
|
|
2104
2104
|
}
|
|
2105
2105
|
f({ isStart: !0, isEnd: !1 });
|
|
2106
|
-
}, [O,
|
|
2106
|
+
}, [O, C, l]);
|
|
2107
2107
|
const L = (y) => {
|
|
2108
2108
|
const w = y.promotion, B = w ? `https://www.olimpo.bet/promociones/${encodeURIComponent(w)}` : "";
|
|
2109
2109
|
if (m({
|
|
@@ -2136,8 +2136,8 @@ function An({
|
|
|
2136
2136
|
columnGap: 12,
|
|
2137
2137
|
rowGap: 8,
|
|
2138
2138
|
marginBottom: 16,
|
|
2139
|
-
paddingLeft:
|
|
2140
|
-
paddingRight:
|
|
2139
|
+
paddingLeft: C ? l : 0,
|
|
2140
|
+
paddingRight: C ? l : 0
|
|
2141
2141
|
},
|
|
2142
2142
|
children: [
|
|
2143
2143
|
/* @__PURE__ */ t(ye, { title: a, iconUrl: n, size: "md" }),
|
|
@@ -2177,7 +2177,7 @@ function An({
|
|
|
2177
2177
|
perPage: void 0,
|
|
2178
2178
|
gap: "16px",
|
|
2179
2179
|
enableHorizontalWheel: !0,
|
|
2180
|
-
showRightGradient: !
|
|
2180
|
+
showRightGradient: !C,
|
|
2181
2181
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
2182
2182
|
breakpoints: {
|
|
2183
2183
|
768: { perPage: 2, focus: "start", padding: { left: l, right: l } },
|
|
@@ -2473,7 +2473,9 @@ const Fn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/popularid
|
|
|
2473
2473
|
const u = se(), h = ce(), x = pe(), _ = Kn(g), { resolvedItems: S, loading: M } = Zn(
|
|
2474
2474
|
e,
|
|
2475
2475
|
_
|
|
2476
|
-
),
|
|
2476
|
+
), C = _ ? S : Array.isArray(e) ? e : [];
|
|
2477
|
+
console.log(C);
|
|
2478
|
+
const O = _ ? M : !Array.isArray(e) || e.length === 0, L = Me(
|
|
2477
2479
|
(w, B) => {
|
|
2478
2480
|
if (!d) return;
|
|
2479
2481
|
const E = !!w.favourite;
|
|
@@ -2627,7 +2629,7 @@ const Fn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/popularid
|
|
|
2627
2629
|
py: { xs: 3, md: 0 },
|
|
2628
2630
|
alignItems: "center"
|
|
2629
2631
|
},
|
|
2630
|
-
children: O ? Array.from({ length: 3 }).map((w, B) => /* @__PURE__ */ t(it, { loading: !0, logo: "" }, `sk-${B}`)) : (
|
|
2632
|
+
children: O ? Array.from({ length: 3 }).map((w, B) => /* @__PURE__ */ t(it, { loading: !0, logo: "" }, `sk-${B}`)) : (C != null ? C : []).slice(0, 3).map((w, B) => {
|
|
2631
2633
|
var E;
|
|
2632
2634
|
return /* @__PURE__ */ t(
|
|
2633
2635
|
it,
|
|
@@ -2638,6 +2640,7 @@ const Fn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/popularid
|
|
|
2638
2640
|
machine: w.machine,
|
|
2639
2641
|
onClick: () => I(w),
|
|
2640
2642
|
existFavorite: f,
|
|
2643
|
+
isFavorite: m ? !!w.favourite : void 0,
|
|
2641
2644
|
onToggleFavorite: m && d ? (v) => L(w, v) : void 0
|
|
2642
2645
|
},
|
|
2643
2646
|
jn(w, B)
|
|
@@ -2715,7 +2718,7 @@ const Fn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/popularid
|
|
|
2715
2718
|
const g = se(), f = ce(), m = pe(), d = Z(null), [u, h] = ee({ isStart: !0, isEnd: !1 }), x = Xn(c), { resolvedItems: _, loading: S } = Hn(
|
|
2716
2719
|
e,
|
|
2717
2720
|
x
|
|
2718
|
-
), M = x ? _ : Array.isArray(e) ? e : [],
|
|
2721
|
+
), M = x ? _ : Array.isArray(e) ? e : [], C = () => {
|
|
2719
2722
|
var E;
|
|
2720
2723
|
g({
|
|
2721
2724
|
element: "casino_prev",
|
|
@@ -2789,7 +2792,7 @@ const Fn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/popularid
|
|
|
2789
2792
|
variant: "secondary",
|
|
2790
2793
|
iconOnly: !0,
|
|
2791
2794
|
leftIcon: /* @__PURE__ */ t(xt, {}),
|
|
2792
|
-
onClick:
|
|
2795
|
+
onClick: C,
|
|
2793
2796
|
disabled: u.isStart
|
|
2794
2797
|
}
|
|
2795
2798
|
),
|
|
@@ -2940,7 +2943,7 @@ const Fn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/popularid
|
|
|
2940
2943
|
const g = Z(null), [f, m] = ee({ isStart: !0, isEnd: !1 }), d = se(), u = ce(), h = pe(), x = eo(c), { resolvedItems: _, loading: S } = Gn(
|
|
2941
2944
|
e,
|
|
2942
2945
|
x
|
|
2943
|
-
), M = x ? _ : Array.isArray(e) ? e : [],
|
|
2946
|
+
), M = x ? _ : Array.isArray(e) ? e : [], C = () => {
|
|
2944
2947
|
var B;
|
|
2945
2948
|
d({
|
|
2946
2949
|
element: "virtuales_prev",
|
|
@@ -3008,7 +3011,7 @@ const Fn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/popularid
|
|
|
3008
3011
|
variant: "secondary",
|
|
3009
3012
|
iconOnly: !0,
|
|
3010
3013
|
leftIcon: /* @__PURE__ */ t(xt, {}),
|
|
3011
|
-
onClick:
|
|
3014
|
+
onClick: C,
|
|
3012
3015
|
disabled: f.isStart
|
|
3013
3016
|
}
|
|
3014
3017
|
),
|
|
@@ -3149,7 +3152,7 @@ const Fn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/popularid
|
|
|
3149
3152
|
re(() => {
|
|
3150
3153
|
S.current = x;
|
|
3151
3154
|
}, [x]);
|
|
3152
|
-
const M = Z(!1),
|
|
3155
|
+
const M = Z(!1), C = Z(null), O = n == null ? void 0 : n[u], L = de(
|
|
3153
3156
|
() => {
|
|
3154
3157
|
var v, T;
|
|
3155
3158
|
return (T = (v = O == null ? void 0 : O.backgroundImageUrl) != null ? v : o) != null ? T : "";
|
|
@@ -3206,12 +3209,12 @@ const Fn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/popularid
|
|
|
3206
3209
|
const V = P.deltaX, W = P.deltaY;
|
|
3207
3210
|
if (Math.abs(V) <= Math.abs(W) || Math.abs(V) < T) return;
|
|
3208
3211
|
const D = V > 0;
|
|
3209
|
-
D && S.current.isEnd || !D && S.current.isStart || (P.preventDefault(), M.current = !0, D ? (G = g.current) == null || G.next() : (q = g.current) == null || q.prev(),
|
|
3212
|
+
D && S.current.isEnd || !D && S.current.isStart || (P.preventDefault(), M.current = !0, D ? (G = g.current) == null || G.next() : (q = g.current) == null || q.prev(), C.current && window.clearTimeout(C.current), C.current = window.setTimeout(() => {
|
|
3210
3213
|
M.current = !1;
|
|
3211
3214
|
}, F));
|
|
3212
3215
|
};
|
|
3213
3216
|
return v.addEventListener("wheel", R, { passive: !1 }), () => {
|
|
3214
|
-
v.removeEventListener("wheel", R),
|
|
3217
|
+
v.removeEventListener("wheel", R), C.current && window.clearTimeout(C.current);
|
|
3215
3218
|
};
|
|
3216
3219
|
}, [y]);
|
|
3217
3220
|
const E = (v, T, F) => {
|
|
@@ -3363,15 +3366,15 @@ const Fn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/popularid
|
|
|
3363
3366
|
idUsuario: "PE" + _.user,
|
|
3364
3367
|
session_id: _.session,
|
|
3365
3368
|
pagina: "home"
|
|
3366
|
-
},
|
|
3369
|
+
}, C = await fetch("https://apipe.mktolimpo.com/api/pm/token", {
|
|
3367
3370
|
method: "POST",
|
|
3368
3371
|
headers: {
|
|
3369
3372
|
"Content-Type": "application/json"
|
|
3370
3373
|
},
|
|
3371
3374
|
body: JSON.stringify(S)
|
|
3372
3375
|
});
|
|
3373
|
-
if (
|
|
3374
|
-
const O = await
|
|
3376
|
+
if (C.ok) {
|
|
3377
|
+
const O = await C.json();
|
|
3375
3378
|
return O == null ? void 0 : O.url;
|
|
3376
3379
|
}
|
|
3377
3380
|
return null;
|
|
@@ -3389,8 +3392,8 @@ const Fn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/popularid
|
|
|
3389
3392
|
"--orc-co-bottomH",
|
|
3390
3393
|
`${S.offsetHeight + 16}px`
|
|
3391
3394
|
);
|
|
3392
|
-
},
|
|
3393
|
-
return
|
|
3395
|
+
}, C = new ResizeObserver(M);
|
|
3396
|
+
return C.observe(S), M(), () => C.disconnect();
|
|
3394
3397
|
}, []);
|
|
3395
3398
|
const x = [
|
|
3396
3399
|
"orc-co-wrap",
|
|
@@ -3501,7 +3504,7 @@ function fo({
|
|
|
3501
3504
|
tags: { section: "OraculoSeccionEventoCombinadas" }
|
|
3502
3505
|
}), Ya();
|
|
3503
3506
|
}, M = de(() => d.filter((I) => I.combinadoTotal !== null), [d]);
|
|
3504
|
-
async function
|
|
3507
|
+
async function C() {
|
|
3505
3508
|
var I, y, w, B;
|
|
3506
3509
|
try {
|
|
3507
3510
|
const v = await (await fetch(h)).json(), T = (B = (w = (y = (I = v == null ? void 0 : v.group) == null ? void 0 : I.groups) == null ? void 0 : y.map((V) => V.id)) == null ? void 0 : w.filter(Boolean)) == null ? void 0 : B.join(",");
|
|
@@ -3516,7 +3519,7 @@ function fo({
|
|
|
3516
3519
|
}
|
|
3517
3520
|
}
|
|
3518
3521
|
re(() => {
|
|
3519
|
-
|
|
3522
|
+
C();
|
|
3520
3523
|
}, []);
|
|
3521
3524
|
const O = i || void 0, L = Ne("(max-width:950px)");
|
|
3522
3525
|
return M.length === 0 ? null : /* @__PURE__ */ t("section", { className: O, style: {
|
|
@@ -3634,19 +3637,19 @@ function Bt({
|
|
|
3634
3637
|
let _ = h, S = x;
|
|
3635
3638
|
const M = m.current;
|
|
3636
3639
|
M && (h > M.end && (_ = M.end + 1), x < M.start && (S = M.start - 1)), m.current = { start: h, end: x };
|
|
3637
|
-
const
|
|
3638
|
-
if (
|
|
3639
|
-
|
|
3640
|
+
const C = e.slice(_, S + 1).map((y) => y == null ? void 0 : y.id).filter((y) => !!y).filter((y) => !c.current.has(y)).filter((y) => !(y in s));
|
|
3641
|
+
if (C.length === 0) return;
|
|
3642
|
+
C.forEach((y) => c.current.add(y));
|
|
3640
3643
|
const O = ++g.current;
|
|
3641
3644
|
(async () => {
|
|
3642
3645
|
try {
|
|
3643
|
-
const y = await n(
|
|
3646
|
+
const y = await n(C);
|
|
3644
3647
|
if (O !== g.current) {
|
|
3645
|
-
|
|
3648
|
+
C.forEach((B) => c.current.delete(B));
|
|
3646
3649
|
return;
|
|
3647
3650
|
}
|
|
3648
3651
|
if (!(y != null && y.events)) {
|
|
3649
|
-
|
|
3652
|
+
C.forEach(
|
|
3650
3653
|
(B) => c.current.delete(B)
|
|
3651
3654
|
);
|
|
3652
3655
|
return;
|
|
@@ -3662,11 +3665,11 @@ function Bt({
|
|
|
3662
3665
|
const w = new Set(
|
|
3663
3666
|
Object.keys(y.events).map(Number)
|
|
3664
3667
|
);
|
|
3665
|
-
|
|
3668
|
+
C.forEach((B) => {
|
|
3666
3669
|
c.current.delete(B);
|
|
3667
3670
|
});
|
|
3668
3671
|
} catch (y) {
|
|
3669
|
-
|
|
3672
|
+
C.forEach(
|
|
3670
3673
|
(w) => c.current.delete(w)
|
|
3671
3674
|
), console.error("Jersey fetch error", y);
|
|
3672
3675
|
}
|
|
@@ -3699,14 +3702,14 @@ function So({
|
|
|
3699
3702
|
{ sport: "football", url: "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football/all/all/all/in-play.json?channel_id=3&channel_id=3&client_id=200&client_id=200&competitionId=undefined&lang=es_PE&lang=es_PE&market=PE&market=PE&useCombined=true&useCombinedLive=true" },
|
|
3700
3703
|
{ sport: "basketball", url: "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/basketball/all/all/all/in-play.json?channel_id=3&channel_id=3&client_id=200&client_id=200&competitionId=undefined&lang=es_PE&lang=es_PE&market=PE&market=PE&useCombined=true&useCombinedLive=true" },
|
|
3701
3704
|
{ sport: "tennis", url: "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/tennis/all/all/all/in-play.json?channel_id=3&channel_id=3&client_id=200&client_id=200&competitionId=undefined&lang=es_PE&lang=es_PE&market=PE&market=PE&useCombined=true&useCombinedLive=true" }
|
|
3702
|
-
], l = Z(null), [c, g] = ee({ isStart: !0, isEnd: !1 }), [f, m] = ee(null), [d, u] = ee({ start: null, end: null }), [h, x] = ee(null), _ = Z(!1), S = se(), M = ce(),
|
|
3705
|
+
], l = Z(null), [c, g] = ee({ isStart: !0, isEnd: !1 }), [f, m] = ee(null), [d, u] = ee({ start: null, end: null }), [h, x] = ee(null), _ = Z(!1), S = se(), M = ce(), C = pe(), O = Z(/* @__PURE__ */ new Map()), L = () => {
|
|
3703
3706
|
var R;
|
|
3704
3707
|
S({
|
|
3705
3708
|
element: "evento_en_vivo_prev",
|
|
3706
3709
|
label: `${M} - OraculoSeccionEventoEnVivo - Anterior`,
|
|
3707
3710
|
target: "prev",
|
|
3708
3711
|
event_type: "click",
|
|
3709
|
-
module_id:
|
|
3712
|
+
module_id: C,
|
|
3710
3713
|
metadata: {
|
|
3711
3714
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
3712
3715
|
},
|
|
@@ -3719,7 +3722,7 @@ function So({
|
|
|
3719
3722
|
label: `${M} - OraculoSeccionEventoEnVivo - Siguiente`,
|
|
3720
3723
|
target: "next",
|
|
3721
3724
|
event_type: "click",
|
|
3722
|
-
module_id:
|
|
3725
|
+
module_id: C,
|
|
3723
3726
|
metadata: {
|
|
3724
3727
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
3725
3728
|
},
|
|
@@ -3731,13 +3734,13 @@ function So({
|
|
|
3731
3734
|
label: `${M} - OraculoSeccionEventoEnVivo - Ver más`,
|
|
3732
3735
|
target: "ver_mas",
|
|
3733
3736
|
event_type: "click",
|
|
3734
|
-
module_id:
|
|
3737
|
+
module_id: C,
|
|
3735
3738
|
metadata: {
|
|
3736
3739
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
3737
3740
|
},
|
|
3738
3741
|
tags: { section: "OraculoSeccionEventoEnVivo" }
|
|
3739
3742
|
}), Xa();
|
|
3740
|
-
}, w =
|
|
3743
|
+
}, w = Me(async () => {
|
|
3741
3744
|
var R;
|
|
3742
3745
|
try {
|
|
3743
3746
|
if (!_.current) {
|
|
@@ -3900,7 +3903,7 @@ function wo() {
|
|
|
3900
3903
|
] }) })
|
|
3901
3904
|
] });
|
|
3902
3905
|
}
|
|
3903
|
-
const Oo = "oraculo__OraculoSeccionEventoSemana-module__wrapper___eqVq-", Io = "oraculo__OraculoSeccionEventoSemana-module__container___5yFQs", To = "oraculo__OraculoSeccionEventoSemana-module__buttonWrapper___-6IDT", Eo = "oraculo__OraculoSeccionEventoSemana-module__padding___vfUcV",
|
|
3906
|
+
const Oo = "oraculo__OraculoSeccionEventoSemana-module__wrapper___eqVq-", Io = "oraculo__OraculoSeccionEventoSemana-module__container___5yFQs", To = "oraculo__OraculoSeccionEventoSemana-module__buttonWrapper___-6IDT", Eo = "oraculo__OraculoSeccionEventoSemana-module__padding___vfUcV", Re = {
|
|
3904
3907
|
wrapper: Oo,
|
|
3905
3908
|
container: Io,
|
|
3906
3909
|
buttonWrapper: To,
|
|
@@ -3952,7 +3955,7 @@ function Mo({
|
|
|
3952
3955
|
{ englishName: "Football", termPath: "football", limit: 5 },
|
|
3953
3956
|
{ englishName: "Basketball", termPath: "basketball", limit: 2 },
|
|
3954
3957
|
{ englishName: "Tennis", termPath: "tennis", limit: 2 }
|
|
3955
|
-
], f = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE", m = Z(null), [d, u] = ee({ isStart: !0, isEnd: !1 }), [h, x] = ee(null), [_, S] = ee({ start: null, end: null }), M = "channel_id=1&client_id=200&competitionId=undefined&lang=es_PE&market=PE&useCombined=true",
|
|
3958
|
+
], f = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE", m = Z(null), [d, u] = ee({ isStart: !0, isEnd: !1 }), [h, x] = ee(null), [_, S] = ee({ start: null, end: null }), M = "channel_id=1&client_id=200&competitionId=undefined&lang=es_PE&market=PE&useCombined=true", C = () => {
|
|
3956
3959
|
s({
|
|
3957
3960
|
element: "evento_semana_view_more",
|
|
3958
3961
|
label: `${l} - OraculoSeccionEventoSemana - Ver más`,
|
|
@@ -4004,14 +4007,14 @@ function Mo({
|
|
|
4004
4007
|
const J = q.get(String($.id)), ne = q.get(String(z.id));
|
|
4005
4008
|
return (J !== void 0 ? J : 1 / 0) - (ne !== void 0 ? ne : 1 / 0);
|
|
4006
4009
|
});
|
|
4007
|
-
const
|
|
4010
|
+
const k = p.slice(0, Y.limit), A = ($) => {
|
|
4008
4011
|
const z = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/${Y.termPath}`;
|
|
4009
4012
|
if ($.groups && $.groups.length > 0) {
|
|
4010
4013
|
const J = $.groups[0];
|
|
4011
4014
|
return `${z}/${$.termKey}/${J.termKey}/all/matches.json?${M}`;
|
|
4012
4015
|
}
|
|
4013
4016
|
return `${z}/${$.termKey}/all/all/matches.json?${M}`;
|
|
4014
|
-
}, N =
|
|
4017
|
+
}, N = k.map(A);
|
|
4015
4018
|
K.push(...N);
|
|
4016
4019
|
}
|
|
4017
4020
|
L(K, F, v);
|
|
@@ -4066,17 +4069,17 @@ function Mo({
|
|
|
4066
4069
|
buffer: 2,
|
|
4067
4070
|
debounceMs: 250
|
|
4068
4071
|
}), B = h === null, E = Ne("(max-width:950px)");
|
|
4069
|
-
return !B && h.length === 0 ? null : /* @__PURE__ */ t("section", { className: I, style: y, children: /* @__PURE__ */ b("div", { className: `${
|
|
4070
|
-
/* @__PURE__ */ t("div", { className:
|
|
4072
|
+
return !B && h.length === 0 ? null : /* @__PURE__ */ t("section", { className: I, style: y, children: /* @__PURE__ */ b("div", { className: `${Re.wrapper} ${Re.padding}`, children: [
|
|
4073
|
+
/* @__PURE__ */ t("div", { className: Re.container, children: /* @__PURE__ */ b(Q, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
4071
4074
|
/* @__PURE__ */ t(ye, { title: "Eventos de la semana" }),
|
|
4072
|
-
/* @__PURE__ */ t("div", { className:
|
|
4075
|
+
/* @__PURE__ */ t("div", { className: Re.buttonWrapper, children: /* @__PURE__ */ t(
|
|
4073
4076
|
ae,
|
|
4074
4077
|
{
|
|
4075
4078
|
variant: "secondary",
|
|
4076
4079
|
size: "lg",
|
|
4077
4080
|
fullWidth: !0,
|
|
4078
4081
|
onClick: () => {
|
|
4079
|
-
|
|
4082
|
+
C();
|
|
4080
4083
|
},
|
|
4081
4084
|
children: "Ver más"
|
|
4082
4085
|
}
|
|
@@ -4159,16 +4162,16 @@ function Po({
|
|
|
4159
4162
|
user: o = null
|
|
4160
4163
|
}) {
|
|
4161
4164
|
var Y;
|
|
4162
|
-
const [i, s] = ee(0), l = se(), c = ce(), g = pe(), f = Z(null), m = Z(!1), d = Z(!1), [u, h] = ee(() => Date.now()), x = ue("setDepositActionGlobal"), _ = ue("setAbrirLiveActionGlobal"), S = ue("openLoginWithRedirect"), M = (r) => [...r != null ? r : []].map((p,
|
|
4165
|
+
const [i, s] = ee(0), l = se(), c = ce(), g = pe(), f = Z(null), m = Z(!1), d = Z(!1), [u, h] = ee(() => Date.now()), x = ue("setDepositActionGlobal"), _ = ue("setAbrirLiveActionGlobal"), S = ue("openLoginWithRedirect"), M = (r) => [...r != null ? r : []].map((p, k) => ({ item: p, index: k })).sort((p, k) => {
|
|
4163
4166
|
var $, z;
|
|
4164
|
-
const A = ($ = p.item.order) != null ? $ : Number.MAX_SAFE_INTEGER, N = (z =
|
|
4165
|
-
return A - N || p.index -
|
|
4166
|
-
}).map(({ item: p }) => p),
|
|
4167
|
+
const A = ($ = p.item.order) != null ? $ : Number.MAX_SAFE_INTEGER, N = (z = k.item.order) != null ? z : Number.MAX_SAFE_INTEGER;
|
|
4168
|
+
return A - N || p.index - k.index;
|
|
4169
|
+
}).map(({ item: p }) => p), C = de(() => M(a), [a]), O = de(() => {
|
|
4167
4170
|
const r = (e != null ? e : []).filter(
|
|
4168
4171
|
(p) => Ro(p, u)
|
|
4169
4172
|
);
|
|
4170
4173
|
return M(r);
|
|
4171
|
-
}, [e, u]), L = O.length || 1, I = !O || O.length === 0, y = !I && O.length > 1, w = !n &&
|
|
4174
|
+
}, [e, u]), L = O.length || 1, I = !O || O.length === 0, y = !I && O.length > 1, w = !n && C.length > 0;
|
|
4172
4175
|
et("(max-width:950px)");
|
|
4173
4176
|
const B = "#B5B5B5";
|
|
4174
4177
|
re(() => {
|
|
@@ -4217,7 +4220,7 @@ function Po({
|
|
|
4217
4220
|
}, 500);
|
|
4218
4221
|
return () => clearTimeout(r);
|
|
4219
4222
|
}, []);
|
|
4220
|
-
const T = (r, p,
|
|
4223
|
+
const T = (r, p, k) => {
|
|
4221
4224
|
var z, J;
|
|
4222
4225
|
const A = !!p.idFunction, N = !!p.href;
|
|
4223
4226
|
if (A)
|
|
@@ -4235,7 +4238,7 @@ function Po({
|
|
|
4235
4238
|
r.preventDefault(), r.stopPropagation();
|
|
4236
4239
|
return;
|
|
4237
4240
|
}
|
|
4238
|
-
const $ = ((J = (z = p.href) == null ? void 0 : z.split("/").pop()) == null ? void 0 : J.split(".")[0]) || p.label || p.id || `banner_${
|
|
4241
|
+
const $ = ((J = (z = p.href) == null ? void 0 : z.split("/").pop()) == null ? void 0 : J.split(".")[0]) || p.label || p.id || `banner_${k + 1}`;
|
|
4239
4242
|
l({
|
|
4240
4243
|
element: "banner_carousel",
|
|
4241
4244
|
label: `${c} - OraculoSeccionBanners - Banner click: ${$}`,
|
|
@@ -4244,7 +4247,7 @@ function Po({
|
|
|
4244
4247
|
module_id: g,
|
|
4245
4248
|
metadata: {
|
|
4246
4249
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
4247
|
-
banner_position:
|
|
4250
|
+
banner_position: k + 1,
|
|
4248
4251
|
banner_total: (O == null ? void 0 : O.length) || 0
|
|
4249
4252
|
},
|
|
4250
4253
|
tags: {
|
|
@@ -4296,10 +4299,10 @@ function Po({
|
|
|
4296
4299
|
var A, N, $, z;
|
|
4297
4300
|
const p = (r % L + L) % L;
|
|
4298
4301
|
if (!m.current) return;
|
|
4299
|
-
const
|
|
4302
|
+
const k = (A = O == null ? void 0 : O[p]) != null && A.href ? (($ = (N = O[p].href) == null ? void 0 : N.split("/").pop()) == null ? void 0 : $.split(".")[0]) || `banner_${p + 1}` : `banner_${p + 1}`;
|
|
4300
4303
|
l({
|
|
4301
4304
|
element: "banner_carousel",
|
|
4302
|
-
label: `${c} - OraculoSeccionBanners - Banner view: Slide ${p + 1} - ${
|
|
4305
|
+
label: `${c} - OraculoSeccionBanners - Banner view: Slide ${p + 1} - ${k}`,
|
|
4303
4306
|
target: ((z = O == null ? void 0 : O[p]) == null ? void 0 : z.href) || "no_url",
|
|
4304
4307
|
event_type: "view",
|
|
4305
4308
|
module_id: g,
|
|
@@ -4356,14 +4359,14 @@ function Po({
|
|
|
4356
4359
|
enableHorizontalWheel: !0,
|
|
4357
4360
|
options: v,
|
|
4358
4361
|
onMove: ({ index: r, source: p }) => {
|
|
4359
|
-
const
|
|
4360
|
-
s(
|
|
4362
|
+
const k = (r % L + L) % L;
|
|
4363
|
+
s(k);
|
|
4361
4364
|
const A = d.current;
|
|
4362
4365
|
d.current = !1, p === "user" && (D(), A || K(r));
|
|
4363
4366
|
},
|
|
4364
4367
|
renderItem: (r, p) => {
|
|
4365
4368
|
var z, J, ne;
|
|
4366
|
-
const
|
|
4369
|
+
const k = !!r.idFunction, A = !!r.href, N = A && !k, $ = k || A;
|
|
4367
4370
|
return /* @__PURE__ */ b(
|
|
4368
4371
|
le,
|
|
4369
4372
|
{
|
|
@@ -4502,7 +4505,7 @@ function Po({
|
|
|
4502
4505
|
boxShadow: "0 10px 24px rgba(0,0,0,.35)",
|
|
4503
4506
|
zIndex: 3
|
|
4504
4507
|
},
|
|
4505
|
-
children:
|
|
4508
|
+
children: C == null ? void 0 : C.map((r) => /* @__PURE__ */ b(
|
|
4506
4509
|
le,
|
|
4507
4510
|
{
|
|
4508
4511
|
sx: {
|
|
@@ -4663,9 +4666,9 @@ function zo({
|
|
|
4663
4666
|
}
|
|
4664
4667
|
}
|
|
4665
4668
|
),
|
|
4666
|
-
/* @__PURE__ */ b(
|
|
4669
|
+
/* @__PURE__ */ b(Fe, { spacing: { xs: 2, md: 3 }, alignItems: "center", children: [
|
|
4667
4670
|
/* @__PURE__ */ t(
|
|
4668
|
-
|
|
4671
|
+
Fe,
|
|
4669
4672
|
{
|
|
4670
4673
|
direction: "row",
|
|
4671
4674
|
justifyContent: "center",
|
|
@@ -4676,7 +4679,7 @@ function zo({
|
|
|
4676
4679
|
}
|
|
4677
4680
|
),
|
|
4678
4681
|
/* @__PURE__ */ t(
|
|
4679
|
-
|
|
4682
|
+
Fe,
|
|
4680
4683
|
{
|
|
4681
4684
|
direction: "row",
|
|
4682
4685
|
justifyContent: "center",
|
|
@@ -4730,7 +4733,7 @@ const Uo = {
|
|
|
4730
4733
|
OraculoSeccionEventoEnVivo: So,
|
|
4731
4734
|
OraculoSeccionEventoSemana: Mo,
|
|
4732
4735
|
OraculoSeccionEventoCombinadas: fo
|
|
4733
|
-
},
|
|
4736
|
+
}, Pe = {
|
|
4734
4737
|
sections: [
|
|
4735
4738
|
{
|
|
4736
4739
|
title: "Banners",
|
|
@@ -6180,9 +6183,9 @@ const _t = [
|
|
|
6180
6183
|
disableWrapper: l = !1
|
|
6181
6184
|
}) => {
|
|
6182
6185
|
const c = de(() => Do(i), [i]), g = s || c.loader, [f, m] = ee(
|
|
6183
|
-
() => e ? [] : Ae(
|
|
6184
|
-
), [d, u] = ee(!1), [h, x] = ee({}), [_, S] = ee({}), [M,
|
|
6185
|
-
() => Ae(
|
|
6186
|
+
() => e ? [] : Ae(Pe)
|
|
6187
|
+
), [d, u] = ee(!1), [h, x] = ee({}), [_, S] = ee({}), [M, C] = ee({}), O = et("(min-width:1024px)"), L = de(
|
|
6188
|
+
() => Ae(Pe),
|
|
6186
6189
|
[]
|
|
6187
6190
|
), I = (r) => L.find(
|
|
6188
6191
|
(p) => p.id === r.id || p.componentKey === r.componentKey
|
|
@@ -6192,42 +6195,42 @@ const _t = [
|
|
|
6192
6195
|
}, [c]), B = (r) => {
|
|
6193
6196
|
const p = r.manualScalarFields;
|
|
6194
6197
|
if (!Array.isArray(p)) return [];
|
|
6195
|
-
const
|
|
6198
|
+
const k = p.find(
|
|
6196
6199
|
($) => String(($ == null ? void 0 : $.name) || "").trim().toLowerCase() === "groups"
|
|
6197
6200
|
);
|
|
6198
|
-
if (!
|
|
6199
|
-
const A =
|
|
6201
|
+
if (!k) return [];
|
|
6202
|
+
const A = k.value;
|
|
6200
6203
|
if (A == null) return [];
|
|
6201
6204
|
if (Array.isArray(A))
|
|
6202
6205
|
return A.map(($) => Number(String($).trim())).filter(($) => !Number.isNaN($));
|
|
6203
6206
|
const N = String(A).trim();
|
|
6204
6207
|
return N ? N.split(",").map(($) => Number($.trim())).filter(($) => !Number.isNaN($)) : [];
|
|
6205
6208
|
}, E = (r, p) => {
|
|
6206
|
-
const
|
|
6207
|
-
if (
|
|
6209
|
+
const k = B(r);
|
|
6210
|
+
if (k.length === 0) return !0;
|
|
6208
6211
|
if (!Array.isArray(p) || p.length === 0) return !1;
|
|
6209
6212
|
const A = new Set(p);
|
|
6210
|
-
return
|
|
6213
|
+
return k.some((N) => A.has(N));
|
|
6211
6214
|
};
|
|
6212
6215
|
re(() => {
|
|
6213
6216
|
if (e) return;
|
|
6214
6217
|
if (!o) {
|
|
6215
|
-
console.warn("[landing] sin db -> fallback json"), m(Ae(
|
|
6218
|
+
console.warn("[landing] sin db -> fallback json"), m(Ae(Pe));
|
|
6216
6219
|
return;
|
|
6217
6220
|
}
|
|
6218
|
-
const r = (
|
|
6219
|
-
console.warn("[landing] FALLBACK:",
|
|
6221
|
+
const r = (k, A) => {
|
|
6222
|
+
console.warn("[landing] FALLBACK:", k, A != null ? A : ""), m(Ae(Pe)), u(!1);
|
|
6220
6223
|
};
|
|
6221
6224
|
u(!0);
|
|
6222
6225
|
const p = Kt(
|
|
6223
6226
|
Jt(o, "landings", a),
|
|
6224
|
-
(
|
|
6227
|
+
(k) => {
|
|
6225
6228
|
try {
|
|
6226
|
-
if (!
|
|
6229
|
+
if (!k.exists()) {
|
|
6227
6230
|
r(`doc landings/${a} no existe`);
|
|
6228
6231
|
return;
|
|
6229
6232
|
}
|
|
6230
|
-
const A =
|
|
6233
|
+
const A = k.data(), N = Ae(A);
|
|
6231
6234
|
if (!N.length) {
|
|
6232
6235
|
r("JSON inválido o sin secciones normalizables", A);
|
|
6233
6236
|
return;
|
|
@@ -6239,13 +6242,13 @@ const _t = [
|
|
|
6239
6242
|
u(!1);
|
|
6240
6243
|
}
|
|
6241
6244
|
},
|
|
6242
|
-
(
|
|
6243
|
-
r("error onSnapshot",
|
|
6245
|
+
(k) => {
|
|
6246
|
+
r("error onSnapshot", k);
|
|
6244
6247
|
}
|
|
6245
6248
|
);
|
|
6246
6249
|
return () => p();
|
|
6247
6250
|
}, [e, a, o]), re(() => (Mn(c), () => Bn()), [c]), re(() => {
|
|
6248
|
-
(e ? e.slice() : f.slice()).map((
|
|
6251
|
+
(e ? e.slice() : f.slice()).map((k) => k.componentKey).filter((k) => !!k).length;
|
|
6249
6252
|
}, [e, f]);
|
|
6250
6253
|
const v = async (r) => {
|
|
6251
6254
|
if (_t.includes(r.componentKey))
|
|
@@ -6256,9 +6259,9 @@ const _t = [
|
|
|
6256
6259
|
};
|
|
6257
6260
|
const p = (r.apiUrl || "").trim();
|
|
6258
6261
|
if (!p) return;
|
|
6259
|
-
const
|
|
6262
|
+
const k = r.apiMethod || "GET", A = r.apiParams || [];
|
|
6260
6263
|
let N = p, $, z;
|
|
6261
|
-
if (
|
|
6264
|
+
if (k === "GET") {
|
|
6262
6265
|
const ne = new URL(
|
|
6263
6266
|
p,
|
|
6264
6267
|
typeof window == "undefined" ? "http://localhost" : window.location.origin
|
|
@@ -6275,7 +6278,7 @@ const _t = [
|
|
|
6275
6278
|
};
|
|
6276
6279
|
}
|
|
6277
6280
|
const J = await fetch(N, {
|
|
6278
|
-
method:
|
|
6281
|
+
method: k,
|
|
6279
6282
|
headers: z,
|
|
6280
6283
|
body: $
|
|
6281
6284
|
});
|
|
@@ -6288,15 +6291,15 @@ const _t = [
|
|
|
6288
6291
|
re(() => {
|
|
6289
6292
|
const r = T.map((p) => ({ s: p, url: (p.apiUrl || "").trim() })).filter(({ url: p }) => !!p);
|
|
6290
6293
|
if (r.length)
|
|
6291
|
-
for (const { s: p, url:
|
|
6292
|
-
const A = `${p.id}|${
|
|
6293
|
-
F.current.has(A) || (F.current.add(A), S((N) => ({ ...N, [p.id]: !0 })),
|
|
6294
|
+
for (const { s: p, url: k } of r) {
|
|
6295
|
+
const A = `${p.id}|${k}`;
|
|
6296
|
+
F.current.has(A) || (F.current.add(A), S((N) => ({ ...N, [p.id]: !0 })), C((N) => ({ ...N, [p.id]: "" })), (async () => {
|
|
6294
6297
|
try {
|
|
6295
6298
|
const N = await v(p);
|
|
6296
6299
|
x(($) => ({ ...$, [p.id]: N }));
|
|
6297
6300
|
} catch (N) {
|
|
6298
6301
|
let $ = "Error desconocido";
|
|
6299
|
-
N instanceof bt ? $ = `Error HTTP ${N.status} (${N.statusText}) en ${N.url}` : N instanceof SyntaxError ? $ = "Respuesta no es JSON válido" : N instanceof TypeError ? $ = "Fallo de red / CORS / conexión" : typeof N == "string" && ($ = N.toString()),
|
|
6302
|
+
N instanceof bt ? $ = `Error HTTP ${N.status} (${N.statusText}) en ${N.url}` : N instanceof SyntaxError ? $ = "Respuesta no es JSON válido" : N instanceof TypeError ? $ = "Fallo de red / CORS / conexión" : typeof N == "string" && ($ = N.toString()), C((z) => ({ ...z, [p.id]: $ }));
|
|
6300
6303
|
} finally {
|
|
6301
6304
|
S((N) => ({ ...N, [p.id]: !1 }));
|
|
6302
6305
|
}
|
|
@@ -6307,59 +6310,59 @@ const _t = [
|
|
|
6307
6310
|
() => T.filter((r) => r.visible).filter((r) => E(r, w)).sort((r, p) => r.order - p.order),
|
|
6308
6311
|
[T, w]
|
|
6309
6312
|
), P = (r) => Array.isArray(r) ? r.map((p) => {
|
|
6310
|
-
const
|
|
6313
|
+
const k = {};
|
|
6311
6314
|
for (const A of p.fields || []) {
|
|
6312
6315
|
const N = (A.type || "string").toLowerCase();
|
|
6313
6316
|
if (N === "number") {
|
|
6314
6317
|
const $ = String(A.value || "").trim();
|
|
6315
6318
|
if ($ !== "") {
|
|
6316
6319
|
const z = Number($);
|
|
6317
|
-
Number.isNaN(z) || (
|
|
6320
|
+
Number.isNaN(z) || (k[A.name] = z);
|
|
6318
6321
|
}
|
|
6319
6322
|
} else if (N === "boolean")
|
|
6320
|
-
|
|
6323
|
+
k[A.name] = String(A.value).toLowerCase() === "true";
|
|
6321
6324
|
else if (N === "function") {
|
|
6322
6325
|
const $ = String(A.value || "").trim();
|
|
6323
6326
|
if ($)
|
|
6324
6327
|
try {
|
|
6325
6328
|
const z = new Function($);
|
|
6326
|
-
|
|
6329
|
+
k[A.name] = z;
|
|
6327
6330
|
} catch (z) {
|
|
6328
6331
|
console.error(`❌ Error creando función en item '${A.name}':`, z);
|
|
6329
6332
|
}
|
|
6330
6333
|
} else
|
|
6331
|
-
|
|
6334
|
+
k[A.name] = A.value;
|
|
6332
6335
|
}
|
|
6333
|
-
return
|
|
6336
|
+
return k;
|
|
6334
6337
|
}) : [], V = (r) => {
|
|
6335
6338
|
const p = {};
|
|
6336
6339
|
if (!Array.isArray(r)) return p;
|
|
6337
|
-
for (const
|
|
6338
|
-
if (!
|
|
6339
|
-
const A = (
|
|
6340
|
+
for (const k of r) {
|
|
6341
|
+
if (!k.name) continue;
|
|
6342
|
+
const A = (k.type || "string").toLowerCase();
|
|
6340
6343
|
if (A === "number") {
|
|
6341
|
-
const N = String(
|
|
6344
|
+
const N = String(k.value || "").trim();
|
|
6342
6345
|
if (N !== "") {
|
|
6343
6346
|
const $ = Number(N);
|
|
6344
|
-
Number.isNaN($) || (p[
|
|
6347
|
+
Number.isNaN($) || (p[k.name] = $);
|
|
6345
6348
|
}
|
|
6346
6349
|
} else if (A === "boolean")
|
|
6347
|
-
p[
|
|
6350
|
+
p[k.name] = String(k.value).toLowerCase() === "true";
|
|
6348
6351
|
else if (A === "function") {
|
|
6349
|
-
const N = String(
|
|
6352
|
+
const N = String(k.value || "").trim();
|
|
6350
6353
|
if (N)
|
|
6351
6354
|
try {
|
|
6352
6355
|
const $ = new Function(N);
|
|
6353
|
-
p[
|
|
6356
|
+
p[k.name] = $;
|
|
6354
6357
|
} catch ($) {
|
|
6355
|
-
console.error(`❌ Error creando función en item '${
|
|
6358
|
+
console.error(`❌ Error creando función en item '${k.name}':`, $);
|
|
6356
6359
|
}
|
|
6357
6360
|
} else
|
|
6358
|
-
p[
|
|
6361
|
+
p[k.name] = k.value;
|
|
6359
6362
|
}
|
|
6360
6363
|
return p;
|
|
6361
|
-
}, W = (r, p,
|
|
6362
|
-
const N =
|
|
6364
|
+
}, W = (r, p, k, A) => {
|
|
6365
|
+
const N = k ? { ...k } : {}, $ = (A || "items").trim() || "items";
|
|
6363
6366
|
if (p)
|
|
6364
6367
|
return N[$] = p.arr || [], N;
|
|
6365
6368
|
const z = r;
|
|
@@ -6372,13 +6375,13 @@ const _t = [
|
|
|
6372
6375
|
return N[$] = [], N;
|
|
6373
6376
|
}, D = (r) => {
|
|
6374
6377
|
var $;
|
|
6375
|
-
const p = !!(($ = r.apiUrl) != null && $.trim()),
|
|
6378
|
+
const p = !!(($ = r.apiUrl) != null && $.trim()), k = p ? h[r.id] : void 0;
|
|
6376
6379
|
let A = r.props ? { ...r.props } : {};
|
|
6377
6380
|
const N = V(r.manualScalarFields);
|
|
6378
6381
|
if (_t.includes(r.componentKey))
|
|
6379
|
-
return { items:
|
|
6382
|
+
return { items: k, ...A, ...N };
|
|
6380
6383
|
if (A = { ...A, ...N }, p)
|
|
6381
|
-
A = W(
|
|
6384
|
+
A = W(k, null, A);
|
|
6382
6385
|
else if (r.dataMode === "manual") {
|
|
6383
6386
|
const z = P(r.manualItems);
|
|
6384
6387
|
if (A = W(
|
|
@@ -6399,8 +6402,8 @@ const _t = [
|
|
|
6399
6402
|
} catch (A) {
|
|
6400
6403
|
console.error("❌ Error armando scalars vacíos:", r, A);
|
|
6401
6404
|
}
|
|
6402
|
-
const
|
|
6403
|
-
if (typeof p[
|
|
6405
|
+
const k = (r.variableName || "items").trim() || "items";
|
|
6406
|
+
if (typeof p[k] == "undefined" && (p[k] = []), r.variableName2) {
|
|
6404
6407
|
const A = (r.variableName2 || "items2").trim() || "items2";
|
|
6405
6408
|
typeof p[A] == "undefined" && (p[A] = []);
|
|
6406
6409
|
}
|
|
@@ -6410,24 +6413,24 @@ const _t = [
|
|
|
6410
6413
|
return D(r);
|
|
6411
6414
|
} catch (p) {
|
|
6412
6415
|
console.error("🔥 ERROR EN buildCompProps:", r, p);
|
|
6413
|
-
const
|
|
6414
|
-
if (
|
|
6416
|
+
const k = I(r);
|
|
6417
|
+
if (k && k !== r)
|
|
6415
6418
|
try {
|
|
6416
6419
|
return console.warn(
|
|
6417
6420
|
`[landing] usando fallback local para sección ${r.title} (${r.componentKey})`
|
|
6418
|
-
), D(
|
|
6421
|
+
), D(k);
|
|
6419
6422
|
} catch (A) {
|
|
6420
|
-
console.error("🔥 ERROR EN fallback buildCompProps:",
|
|
6423
|
+
console.error("🔥 ERROR EN fallback buildCompProps:", k, A);
|
|
6421
6424
|
}
|
|
6422
6425
|
return G(r);
|
|
6423
6426
|
}
|
|
6424
|
-
}, K = (r, p,
|
|
6427
|
+
}, K = (r, p, k) => /* @__PURE__ */ t("div", { className: `mx-4 p-4 rounded ${{
|
|
6425
6428
|
loading: "bg-blue-100 text-blue-800",
|
|
6426
6429
|
error: "bg-red-100 text-red-800",
|
|
6427
6430
|
component: "bg-yellow-100 text-yellow-800"
|
|
6428
|
-
}[p]}`, children:
|
|
6431
|
+
}[p]}`, children: k }, r), Y = (r) => {
|
|
6429
6432
|
var $e;
|
|
6430
|
-
const p = r.componentKey,
|
|
6433
|
+
const p = r.componentKey, k = Wo[p], N = (/* @__PURE__ */ new Set([
|
|
6431
6434
|
"OraculoSeccionBanners",
|
|
6432
6435
|
"OraculoSeccionBonoBienvenida",
|
|
6433
6436
|
"OraculoSeccionCasinoEnVivo",
|
|
@@ -6449,7 +6452,7 @@ const _t = [
|
|
|
6449
6452
|
marginBottom: -z
|
|
6450
6453
|
} : {}
|
|
6451
6454
|
};
|
|
6452
|
-
if (!
|
|
6455
|
+
if (!k)
|
|
6453
6456
|
return console.warn(`No hay componente registrado para "${p}"`), K(
|
|
6454
6457
|
r.id,
|
|
6455
6458
|
"component",
|
|
@@ -6465,15 +6468,15 @@ const _t = [
|
|
|
6465
6468
|
`Cargando datos desde ${r.apiUrl}...`
|
|
6466
6469
|
);
|
|
6467
6470
|
if (Se && !j) {
|
|
6468
|
-
const
|
|
6469
|
-
if (
|
|
6471
|
+
const Be = I(r);
|
|
6472
|
+
if (Be && Be.dataMode === "manual")
|
|
6470
6473
|
try {
|
|
6471
|
-
const je = q(
|
|
6472
|
-
return /* @__PURE__ */ t("div", { style: ne, className: "oraculo-section-wrapper", children: /* @__PURE__ */ t(
|
|
6474
|
+
const je = q(Be);
|
|
6475
|
+
return /* @__PURE__ */ t("div", { style: ne, className: "oraculo-section-wrapper", children: /* @__PURE__ */ t(k, { ...je }) }, r.id);
|
|
6473
6476
|
} catch (je) {
|
|
6474
6477
|
console.error(
|
|
6475
6478
|
"🔥 ERROR renderizando fallback manual de sección:",
|
|
6476
|
-
|
|
6479
|
+
Be,
|
|
6477
6480
|
je
|
|
6478
6481
|
);
|
|
6479
6482
|
}
|
|
@@ -6494,7 +6497,7 @@ const _t = [
|
|
|
6494
6497
|
style: ne,
|
|
6495
6498
|
className: "oraculo-section-wrapper",
|
|
6496
6499
|
"data-component-key": p,
|
|
6497
|
-
children: /* @__PURE__ */ t(
|
|
6500
|
+
children: /* @__PURE__ */ t(k, { ...Oe })
|
|
6498
6501
|
},
|
|
6499
6502
|
r.id
|
|
6500
6503
|
) });
|
|
@@ -6513,7 +6516,7 @@ const _t = [
|
|
|
6513
6516
|
maxWidth: "100%",
|
|
6514
6517
|
overflowX: "hidden"
|
|
6515
6518
|
},
|
|
6516
|
-
children: /* @__PURE__ */ t(
|
|
6519
|
+
children: /* @__PURE__ */ t(Fe, { direction: "column", spacing: O ? 8 : 5, useFlexGap: !0, children: R.map((r) => {
|
|
6517
6520
|
try {
|
|
6518
6521
|
return Y(r);
|
|
6519
6522
|
} catch (p) {
|