oraculo-ui 0.1.156 → 0.1.157
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 +128 -129
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -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 k = (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;
|
|
@@ -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 } = k(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({
|
|
@@ -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, k, O, L;
|
|
857
857
|
return {
|
|
858
|
-
xs: (
|
|
858
|
+
xs: (k = (M = i.xs) == null ? void 0 : M[_]) != null ? k : 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 = {
|
|
@@ -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, k = _.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 ${k}`), I.label === "X2" && (y = `${k} 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 k;
|
|
1550
1550
|
const M = g.get(Number(S.eventId));
|
|
1551
|
-
return (
|
|
1551
|
+
return (k = M == null ? void 0 : M.name) != null ? k : "";
|
|
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, k, O) => k >= 0 ? O : M,
|
|
1738
1738
|
0
|
|
1739
1739
|
);
|
|
1740
1740
|
let g = 0, f = 0;
|
|
1741
|
-
n.forEach((M,
|
|
1741
|
+
n.forEach((M, k) => {
|
|
1742
1742
|
var L;
|
|
1743
|
-
const O = (L = o[
|
|
1744
|
-
|
|
1743
|
+
const O = (L = o[k]) != null ? L : -1;
|
|
1744
|
+
k !== 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 k = String(M).trim().toUpperCase();
|
|
1749
|
+
return k === "A" || k === "ADV" ? 50 : parseInt(k, 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, k, O, L, I, y, w, B, E, v, T, F, R, P, V, W, D, G, q, K, Y, r, p, C, 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: (k = (M = (S = e == null ? void 0 : e.path) == null ? void 0 : S[0]) == null ? void 0 : M.name) != null ? k : "",
|
|
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((C = a == null ? void 0 : a.matchClock) == null ? void 0 : C.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 k, 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 = (k = e == null ? void 0 : e.outcome) == null ? void 0 : k[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, k;
|
|
2006
|
+
const d = (k = (M = (S = e == null ? void 0 : e.outcome) == null ? void 0 : S[0]) == null ? void 0 : M.outcomes) != null ? k : [], 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, k = 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, k, 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: k ? l : 0,
|
|
2140
|
+
paddingRight: k ? 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: !k,
|
|
2181
2181
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
2182
2182
|
breakpoints: {
|
|
2183
2183
|
768: { perPage: 2, focus: "start", padding: { left: l, right: l } },
|
|
@@ -2473,9 +2473,7 @@ 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
|
-
),
|
|
2477
|
-
console.log(C);
|
|
2478
|
-
const O = _ ? M : !Array.isArray(e) || e.length === 0, L = Me(
|
|
2476
|
+
), k = _ ? S : Array.isArray(e) ? e : [], O = _ ? M : !Array.isArray(e) || e.length === 0, L = Me(
|
|
2479
2477
|
(w, B) => {
|
|
2480
2478
|
if (!d) return;
|
|
2481
2479
|
const E = !!w.favourite;
|
|
@@ -2629,12 +2627,13 @@ const Fn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/popularid
|
|
|
2629
2627
|
py: { xs: 3, md: 0 },
|
|
2630
2628
|
alignItems: "center"
|
|
2631
2629
|
},
|
|
2632
|
-
children: O ? Array.from({ length: 3 }).map((w, B) => /* @__PURE__ */ t(it, { loading: !0, logo: "" }, `sk-${B}`)) : (
|
|
2630
|
+
children: O ? Array.from({ length: 3 }).map((w, B) => /* @__PURE__ */ t(it, { loading: !0, logo: "" }, `sk-${B}`)) : (k != null ? k : []).slice(0, 3).map((w, B) => {
|
|
2633
2631
|
var E;
|
|
2634
2632
|
return /* @__PURE__ */ t(
|
|
2635
2633
|
it,
|
|
2636
2634
|
{
|
|
2637
2635
|
logo: `https://olimpo.bet${w.background ? w.background : (E = w.logo) != null ? E : ""}`,
|
|
2636
|
+
isLogin: m,
|
|
2638
2637
|
provider: w.provider,
|
|
2639
2638
|
providerName: w.web_name,
|
|
2640
2639
|
machine: w.machine,
|
|
@@ -2718,7 +2717,7 @@ const Fn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/popularid
|
|
|
2718
2717
|
const g = se(), f = ce(), m = pe(), d = Z(null), [u, h] = ee({ isStart: !0, isEnd: !1 }), x = Xn(c), { resolvedItems: _, loading: S } = Hn(
|
|
2719
2718
|
e,
|
|
2720
2719
|
x
|
|
2721
|
-
), M = x ? _ : Array.isArray(e) ? e : [],
|
|
2720
|
+
), M = x ? _ : Array.isArray(e) ? e : [], k = () => {
|
|
2722
2721
|
var E;
|
|
2723
2722
|
g({
|
|
2724
2723
|
element: "casino_prev",
|
|
@@ -2792,7 +2791,7 @@ const Fn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/popularid
|
|
|
2792
2791
|
variant: "secondary",
|
|
2793
2792
|
iconOnly: !0,
|
|
2794
2793
|
leftIcon: /* @__PURE__ */ t(xt, {}),
|
|
2795
|
-
onClick:
|
|
2794
|
+
onClick: k,
|
|
2796
2795
|
disabled: u.isStart
|
|
2797
2796
|
}
|
|
2798
2797
|
),
|
|
@@ -2943,7 +2942,7 @@ const Fn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/popularid
|
|
|
2943
2942
|
const g = Z(null), [f, m] = ee({ isStart: !0, isEnd: !1 }), d = se(), u = ce(), h = pe(), x = eo(c), { resolvedItems: _, loading: S } = Gn(
|
|
2944
2943
|
e,
|
|
2945
2944
|
x
|
|
2946
|
-
), M = x ? _ : Array.isArray(e) ? e : [],
|
|
2945
|
+
), M = x ? _ : Array.isArray(e) ? e : [], k = () => {
|
|
2947
2946
|
var B;
|
|
2948
2947
|
d({
|
|
2949
2948
|
element: "virtuales_prev",
|
|
@@ -3011,7 +3010,7 @@ const Fn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/popularid
|
|
|
3011
3010
|
variant: "secondary",
|
|
3012
3011
|
iconOnly: !0,
|
|
3013
3012
|
leftIcon: /* @__PURE__ */ t(xt, {}),
|
|
3014
|
-
onClick:
|
|
3013
|
+
onClick: k,
|
|
3015
3014
|
disabled: f.isStart
|
|
3016
3015
|
}
|
|
3017
3016
|
),
|
|
@@ -3152,7 +3151,7 @@ const Fn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/popularid
|
|
|
3152
3151
|
re(() => {
|
|
3153
3152
|
S.current = x;
|
|
3154
3153
|
}, [x]);
|
|
3155
|
-
const M = Z(!1),
|
|
3154
|
+
const M = Z(!1), k = Z(null), O = n == null ? void 0 : n[u], L = de(
|
|
3156
3155
|
() => {
|
|
3157
3156
|
var v, T;
|
|
3158
3157
|
return (T = (v = O == null ? void 0 : O.backgroundImageUrl) != null ? v : o) != null ? T : "";
|
|
@@ -3209,12 +3208,12 @@ const Fn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/popularid
|
|
|
3209
3208
|
const V = P.deltaX, W = P.deltaY;
|
|
3210
3209
|
if (Math.abs(V) <= Math.abs(W) || Math.abs(V) < T) return;
|
|
3211
3210
|
const D = V > 0;
|
|
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(),
|
|
3211
|
+
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(), k.current && window.clearTimeout(k.current), k.current = window.setTimeout(() => {
|
|
3213
3212
|
M.current = !1;
|
|
3214
3213
|
}, F));
|
|
3215
3214
|
};
|
|
3216
3215
|
return v.addEventListener("wheel", R, { passive: !1 }), () => {
|
|
3217
|
-
v.removeEventListener("wheel", R),
|
|
3216
|
+
v.removeEventListener("wheel", R), k.current && window.clearTimeout(k.current);
|
|
3218
3217
|
};
|
|
3219
3218
|
}, [y]);
|
|
3220
3219
|
const E = (v, T, F) => {
|
|
@@ -3366,15 +3365,15 @@ const Fn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/popularid
|
|
|
3366
3365
|
idUsuario: "PE" + _.user,
|
|
3367
3366
|
session_id: _.session,
|
|
3368
3367
|
pagina: "home"
|
|
3369
|
-
},
|
|
3368
|
+
}, k = await fetch("https://apipe.mktolimpo.com/api/pm/token", {
|
|
3370
3369
|
method: "POST",
|
|
3371
3370
|
headers: {
|
|
3372
3371
|
"Content-Type": "application/json"
|
|
3373
3372
|
},
|
|
3374
3373
|
body: JSON.stringify(S)
|
|
3375
3374
|
});
|
|
3376
|
-
if (
|
|
3377
|
-
const O = await
|
|
3375
|
+
if (k.ok) {
|
|
3376
|
+
const O = await k.json();
|
|
3378
3377
|
return O == null ? void 0 : O.url;
|
|
3379
3378
|
}
|
|
3380
3379
|
return null;
|
|
@@ -3392,8 +3391,8 @@ const Fn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/popularid
|
|
|
3392
3391
|
"--orc-co-bottomH",
|
|
3393
3392
|
`${S.offsetHeight + 16}px`
|
|
3394
3393
|
);
|
|
3395
|
-
},
|
|
3396
|
-
return
|
|
3394
|
+
}, k = new ResizeObserver(M);
|
|
3395
|
+
return k.observe(S), M(), () => k.disconnect();
|
|
3397
3396
|
}, []);
|
|
3398
3397
|
const x = [
|
|
3399
3398
|
"orc-co-wrap",
|
|
@@ -3504,7 +3503,7 @@ function fo({
|
|
|
3504
3503
|
tags: { section: "OraculoSeccionEventoCombinadas" }
|
|
3505
3504
|
}), Ya();
|
|
3506
3505
|
}, M = de(() => d.filter((I) => I.combinadoTotal !== null), [d]);
|
|
3507
|
-
async function
|
|
3506
|
+
async function k() {
|
|
3508
3507
|
var I, y, w, B;
|
|
3509
3508
|
try {
|
|
3510
3509
|
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(",");
|
|
@@ -3519,7 +3518,7 @@ function fo({
|
|
|
3519
3518
|
}
|
|
3520
3519
|
}
|
|
3521
3520
|
re(() => {
|
|
3522
|
-
|
|
3521
|
+
k();
|
|
3523
3522
|
}, []);
|
|
3524
3523
|
const O = i || void 0, L = Ne("(max-width:950px)");
|
|
3525
3524
|
return M.length === 0 ? null : /* @__PURE__ */ t("section", { className: O, style: {
|
|
@@ -3637,19 +3636,19 @@ function Bt({
|
|
|
3637
3636
|
let _ = h, S = x;
|
|
3638
3637
|
const M = m.current;
|
|
3639
3638
|
M && (h > M.end && (_ = M.end + 1), x < M.start && (S = M.start - 1)), m.current = { start: h, end: x };
|
|
3640
|
-
const
|
|
3641
|
-
if (
|
|
3642
|
-
|
|
3639
|
+
const k = 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));
|
|
3640
|
+
if (k.length === 0) return;
|
|
3641
|
+
k.forEach((y) => c.current.add(y));
|
|
3643
3642
|
const O = ++g.current;
|
|
3644
3643
|
(async () => {
|
|
3645
3644
|
try {
|
|
3646
|
-
const y = await n(
|
|
3645
|
+
const y = await n(k);
|
|
3647
3646
|
if (O !== g.current) {
|
|
3648
|
-
|
|
3647
|
+
k.forEach((B) => c.current.delete(B));
|
|
3649
3648
|
return;
|
|
3650
3649
|
}
|
|
3651
3650
|
if (!(y != null && y.events)) {
|
|
3652
|
-
|
|
3651
|
+
k.forEach(
|
|
3653
3652
|
(B) => c.current.delete(B)
|
|
3654
3653
|
);
|
|
3655
3654
|
return;
|
|
@@ -3665,11 +3664,11 @@ function Bt({
|
|
|
3665
3664
|
const w = new Set(
|
|
3666
3665
|
Object.keys(y.events).map(Number)
|
|
3667
3666
|
);
|
|
3668
|
-
|
|
3667
|
+
k.forEach((B) => {
|
|
3669
3668
|
c.current.delete(B);
|
|
3670
3669
|
});
|
|
3671
3670
|
} catch (y) {
|
|
3672
|
-
|
|
3671
|
+
k.forEach(
|
|
3673
3672
|
(w) => c.current.delete(w)
|
|
3674
3673
|
), console.error("Jersey fetch error", y);
|
|
3675
3674
|
}
|
|
@@ -3702,14 +3701,14 @@ function So({
|
|
|
3702
3701
|
{ 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" },
|
|
3703
3702
|
{ 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" },
|
|
3704
3703
|
{ 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" }
|
|
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(),
|
|
3704
|
+
], 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(), k = pe(), O = Z(/* @__PURE__ */ new Map()), L = () => {
|
|
3706
3705
|
var R;
|
|
3707
3706
|
S({
|
|
3708
3707
|
element: "evento_en_vivo_prev",
|
|
3709
3708
|
label: `${M} - OraculoSeccionEventoEnVivo - Anterior`,
|
|
3710
3709
|
target: "prev",
|
|
3711
3710
|
event_type: "click",
|
|
3712
|
-
module_id:
|
|
3711
|
+
module_id: k,
|
|
3713
3712
|
metadata: {
|
|
3714
3713
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
3715
3714
|
},
|
|
@@ -3722,7 +3721,7 @@ function So({
|
|
|
3722
3721
|
label: `${M} - OraculoSeccionEventoEnVivo - Siguiente`,
|
|
3723
3722
|
target: "next",
|
|
3724
3723
|
event_type: "click",
|
|
3725
|
-
module_id:
|
|
3724
|
+
module_id: k,
|
|
3726
3725
|
metadata: {
|
|
3727
3726
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
3728
3727
|
},
|
|
@@ -3734,7 +3733,7 @@ function So({
|
|
|
3734
3733
|
label: `${M} - OraculoSeccionEventoEnVivo - Ver más`,
|
|
3735
3734
|
target: "ver_mas",
|
|
3736
3735
|
event_type: "click",
|
|
3737
|
-
module_id:
|
|
3736
|
+
module_id: k,
|
|
3738
3737
|
metadata: {
|
|
3739
3738
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
3740
3739
|
},
|
|
@@ -3955,7 +3954,7 @@ function Mo({
|
|
|
3955
3954
|
{ englishName: "Football", termPath: "football", limit: 5 },
|
|
3956
3955
|
{ englishName: "Basketball", termPath: "basketball", limit: 2 },
|
|
3957
3956
|
{ englishName: "Tennis", termPath: "tennis", limit: 2 }
|
|
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",
|
|
3957
|
+
], 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", k = () => {
|
|
3959
3958
|
s({
|
|
3960
3959
|
element: "evento_semana_view_more",
|
|
3961
3960
|
label: `${l} - OraculoSeccionEventoSemana - Ver más`,
|
|
@@ -4007,14 +4006,14 @@ function Mo({
|
|
|
4007
4006
|
const J = q.get(String($.id)), ne = q.get(String(z.id));
|
|
4008
4007
|
return (J !== void 0 ? J : 1 / 0) - (ne !== void 0 ? ne : 1 / 0);
|
|
4009
4008
|
});
|
|
4010
|
-
const
|
|
4009
|
+
const C = p.slice(0, Y.limit), A = ($) => {
|
|
4011
4010
|
const z = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/${Y.termPath}`;
|
|
4012
4011
|
if ($.groups && $.groups.length > 0) {
|
|
4013
4012
|
const J = $.groups[0];
|
|
4014
4013
|
return `${z}/${$.termKey}/${J.termKey}/all/matches.json?${M}`;
|
|
4015
4014
|
}
|
|
4016
4015
|
return `${z}/${$.termKey}/all/all/matches.json?${M}`;
|
|
4017
|
-
}, N =
|
|
4016
|
+
}, N = C.map(A);
|
|
4018
4017
|
K.push(...N);
|
|
4019
4018
|
}
|
|
4020
4019
|
L(K, F, v);
|
|
@@ -4079,7 +4078,7 @@ function Mo({
|
|
|
4079
4078
|
size: "lg",
|
|
4080
4079
|
fullWidth: !0,
|
|
4081
4080
|
onClick: () => {
|
|
4082
|
-
|
|
4081
|
+
k();
|
|
4083
4082
|
},
|
|
4084
4083
|
children: "Ver más"
|
|
4085
4084
|
}
|
|
@@ -4162,16 +4161,16 @@ function Po({
|
|
|
4162
4161
|
user: o = null
|
|
4163
4162
|
}) {
|
|
4164
4163
|
var Y;
|
|
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,
|
|
4164
|
+
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, C) => ({ item: p, index: C })).sort((p, C) => {
|
|
4166
4165
|
var $, z;
|
|
4167
|
-
const A = ($ = p.item.order) != null ? $ : Number.MAX_SAFE_INTEGER, N = (z =
|
|
4168
|
-
return A - N || p.index -
|
|
4169
|
-
}).map(({ item: p }) => p),
|
|
4166
|
+
const A = ($ = p.item.order) != null ? $ : Number.MAX_SAFE_INTEGER, N = (z = C.item.order) != null ? z : Number.MAX_SAFE_INTEGER;
|
|
4167
|
+
return A - N || p.index - C.index;
|
|
4168
|
+
}).map(({ item: p }) => p), k = de(() => M(a), [a]), O = de(() => {
|
|
4170
4169
|
const r = (e != null ? e : []).filter(
|
|
4171
4170
|
(p) => Ro(p, u)
|
|
4172
4171
|
);
|
|
4173
4172
|
return M(r);
|
|
4174
|
-
}, [e, u]), L = O.length || 1, I = !O || O.length === 0, y = !I && O.length > 1, w = !n &&
|
|
4173
|
+
}, [e, u]), L = O.length || 1, I = !O || O.length === 0, y = !I && O.length > 1, w = !n && k.length > 0;
|
|
4175
4174
|
et("(max-width:950px)");
|
|
4176
4175
|
const B = "#B5B5B5";
|
|
4177
4176
|
re(() => {
|
|
@@ -4220,7 +4219,7 @@ function Po({
|
|
|
4220
4219
|
}, 500);
|
|
4221
4220
|
return () => clearTimeout(r);
|
|
4222
4221
|
}, []);
|
|
4223
|
-
const T = (r, p,
|
|
4222
|
+
const T = (r, p, C) => {
|
|
4224
4223
|
var z, J;
|
|
4225
4224
|
const A = !!p.idFunction, N = !!p.href;
|
|
4226
4225
|
if (A)
|
|
@@ -4238,7 +4237,7 @@ function Po({
|
|
|
4238
4237
|
r.preventDefault(), r.stopPropagation();
|
|
4239
4238
|
return;
|
|
4240
4239
|
}
|
|
4241
|
-
const $ = ((J = (z = p.href) == null ? void 0 : z.split("/").pop()) == null ? void 0 : J.split(".")[0]) || p.label || p.id || `banner_${
|
|
4240
|
+
const $ = ((J = (z = p.href) == null ? void 0 : z.split("/").pop()) == null ? void 0 : J.split(".")[0]) || p.label || p.id || `banner_${C + 1}`;
|
|
4242
4241
|
l({
|
|
4243
4242
|
element: "banner_carousel",
|
|
4244
4243
|
label: `${c} - OraculoSeccionBanners - Banner click: ${$}`,
|
|
@@ -4247,7 +4246,7 @@ function Po({
|
|
|
4247
4246
|
module_id: g,
|
|
4248
4247
|
metadata: {
|
|
4249
4248
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
4250
|
-
banner_position:
|
|
4249
|
+
banner_position: C + 1,
|
|
4251
4250
|
banner_total: (O == null ? void 0 : O.length) || 0
|
|
4252
4251
|
},
|
|
4253
4252
|
tags: {
|
|
@@ -4299,10 +4298,10 @@ function Po({
|
|
|
4299
4298
|
var A, N, $, z;
|
|
4300
4299
|
const p = (r % L + L) % L;
|
|
4301
4300
|
if (!m.current) return;
|
|
4302
|
-
const
|
|
4301
|
+
const C = (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}`;
|
|
4303
4302
|
l({
|
|
4304
4303
|
element: "banner_carousel",
|
|
4305
|
-
label: `${c} - OraculoSeccionBanners - Banner view: Slide ${p + 1} - ${
|
|
4304
|
+
label: `${c} - OraculoSeccionBanners - Banner view: Slide ${p + 1} - ${C}`,
|
|
4306
4305
|
target: ((z = O == null ? void 0 : O[p]) == null ? void 0 : z.href) || "no_url",
|
|
4307
4306
|
event_type: "view",
|
|
4308
4307
|
module_id: g,
|
|
@@ -4359,14 +4358,14 @@ function Po({
|
|
|
4359
4358
|
enableHorizontalWheel: !0,
|
|
4360
4359
|
options: v,
|
|
4361
4360
|
onMove: ({ index: r, source: p }) => {
|
|
4362
|
-
const
|
|
4363
|
-
s(
|
|
4361
|
+
const C = (r % L + L) % L;
|
|
4362
|
+
s(C);
|
|
4364
4363
|
const A = d.current;
|
|
4365
4364
|
d.current = !1, p === "user" && (D(), A || K(r));
|
|
4366
4365
|
},
|
|
4367
4366
|
renderItem: (r, p) => {
|
|
4368
4367
|
var z, J, ne;
|
|
4369
|
-
const
|
|
4368
|
+
const C = !!r.idFunction, A = !!r.href, N = A && !C, $ = C || A;
|
|
4370
4369
|
return /* @__PURE__ */ b(
|
|
4371
4370
|
le,
|
|
4372
4371
|
{
|
|
@@ -4505,7 +4504,7 @@ function Po({
|
|
|
4505
4504
|
boxShadow: "0 10px 24px rgba(0,0,0,.35)",
|
|
4506
4505
|
zIndex: 3
|
|
4507
4506
|
},
|
|
4508
|
-
children:
|
|
4507
|
+
children: k == null ? void 0 : k.map((r) => /* @__PURE__ */ b(
|
|
4509
4508
|
le,
|
|
4510
4509
|
{
|
|
4511
4510
|
sx: {
|
|
@@ -6184,7 +6183,7 @@ const _t = [
|
|
|
6184
6183
|
}) => {
|
|
6185
6184
|
const c = de(() => Do(i), [i]), g = s || c.loader, [f, m] = ee(
|
|
6186
6185
|
() => e ? [] : Ae(Pe)
|
|
6187
|
-
), [d, u] = ee(!1), [h, x] = ee({}), [_, S] = ee({}), [M,
|
|
6186
|
+
), [d, u] = ee(!1), [h, x] = ee({}), [_, S] = ee({}), [M, k] = ee({}), O = et("(min-width:1024px)"), L = de(
|
|
6188
6187
|
() => Ae(Pe),
|
|
6189
6188
|
[]
|
|
6190
6189
|
), I = (r) => L.find(
|
|
@@ -6195,22 +6194,22 @@ const _t = [
|
|
|
6195
6194
|
}, [c]), B = (r) => {
|
|
6196
6195
|
const p = r.manualScalarFields;
|
|
6197
6196
|
if (!Array.isArray(p)) return [];
|
|
6198
|
-
const
|
|
6197
|
+
const C = p.find(
|
|
6199
6198
|
($) => String(($ == null ? void 0 : $.name) || "").trim().toLowerCase() === "groups"
|
|
6200
6199
|
);
|
|
6201
|
-
if (!
|
|
6202
|
-
const A =
|
|
6200
|
+
if (!C) return [];
|
|
6201
|
+
const A = C.value;
|
|
6203
6202
|
if (A == null) return [];
|
|
6204
6203
|
if (Array.isArray(A))
|
|
6205
6204
|
return A.map(($) => Number(String($).trim())).filter(($) => !Number.isNaN($));
|
|
6206
6205
|
const N = String(A).trim();
|
|
6207
6206
|
return N ? N.split(",").map(($) => Number($.trim())).filter(($) => !Number.isNaN($)) : [];
|
|
6208
6207
|
}, E = (r, p) => {
|
|
6209
|
-
const
|
|
6210
|
-
if (
|
|
6208
|
+
const C = B(r);
|
|
6209
|
+
if (C.length === 0) return !0;
|
|
6211
6210
|
if (!Array.isArray(p) || p.length === 0) return !1;
|
|
6212
6211
|
const A = new Set(p);
|
|
6213
|
-
return
|
|
6212
|
+
return C.some((N) => A.has(N));
|
|
6214
6213
|
};
|
|
6215
6214
|
re(() => {
|
|
6216
6215
|
if (e) return;
|
|
@@ -6218,19 +6217,19 @@ const _t = [
|
|
|
6218
6217
|
console.warn("[landing] sin db -> fallback json"), m(Ae(Pe));
|
|
6219
6218
|
return;
|
|
6220
6219
|
}
|
|
6221
|
-
const r = (
|
|
6222
|
-
console.warn("[landing] FALLBACK:",
|
|
6220
|
+
const r = (C, A) => {
|
|
6221
|
+
console.warn("[landing] FALLBACK:", C, A != null ? A : ""), m(Ae(Pe)), u(!1);
|
|
6223
6222
|
};
|
|
6224
6223
|
u(!0);
|
|
6225
6224
|
const p = Kt(
|
|
6226
6225
|
Jt(o, "landings", a),
|
|
6227
|
-
(
|
|
6226
|
+
(C) => {
|
|
6228
6227
|
try {
|
|
6229
|
-
if (!
|
|
6228
|
+
if (!C.exists()) {
|
|
6230
6229
|
r(`doc landings/${a} no existe`);
|
|
6231
6230
|
return;
|
|
6232
6231
|
}
|
|
6233
|
-
const A =
|
|
6232
|
+
const A = C.data(), N = Ae(A);
|
|
6234
6233
|
if (!N.length) {
|
|
6235
6234
|
r("JSON inválido o sin secciones normalizables", A);
|
|
6236
6235
|
return;
|
|
@@ -6242,13 +6241,13 @@ const _t = [
|
|
|
6242
6241
|
u(!1);
|
|
6243
6242
|
}
|
|
6244
6243
|
},
|
|
6245
|
-
(
|
|
6246
|
-
r("error onSnapshot",
|
|
6244
|
+
(C) => {
|
|
6245
|
+
r("error onSnapshot", C);
|
|
6247
6246
|
}
|
|
6248
6247
|
);
|
|
6249
6248
|
return () => p();
|
|
6250
6249
|
}, [e, a, o]), re(() => (Mn(c), () => Bn()), [c]), re(() => {
|
|
6251
|
-
(e ? e.slice() : f.slice()).map((
|
|
6250
|
+
(e ? e.slice() : f.slice()).map((C) => C.componentKey).filter((C) => !!C).length;
|
|
6252
6251
|
}, [e, f]);
|
|
6253
6252
|
const v = async (r) => {
|
|
6254
6253
|
if (_t.includes(r.componentKey))
|
|
@@ -6259,9 +6258,9 @@ const _t = [
|
|
|
6259
6258
|
};
|
|
6260
6259
|
const p = (r.apiUrl || "").trim();
|
|
6261
6260
|
if (!p) return;
|
|
6262
|
-
const
|
|
6261
|
+
const C = r.apiMethod || "GET", A = r.apiParams || [];
|
|
6263
6262
|
let N = p, $, z;
|
|
6264
|
-
if (
|
|
6263
|
+
if (C === "GET") {
|
|
6265
6264
|
const ne = new URL(
|
|
6266
6265
|
p,
|
|
6267
6266
|
typeof window == "undefined" ? "http://localhost" : window.location.origin
|
|
@@ -6278,7 +6277,7 @@ const _t = [
|
|
|
6278
6277
|
};
|
|
6279
6278
|
}
|
|
6280
6279
|
const J = await fetch(N, {
|
|
6281
|
-
method:
|
|
6280
|
+
method: C,
|
|
6282
6281
|
headers: z,
|
|
6283
6282
|
body: $
|
|
6284
6283
|
});
|
|
@@ -6291,15 +6290,15 @@ const _t = [
|
|
|
6291
6290
|
re(() => {
|
|
6292
6291
|
const r = T.map((p) => ({ s: p, url: (p.apiUrl || "").trim() })).filter(({ url: p }) => !!p);
|
|
6293
6292
|
if (r.length)
|
|
6294
|
-
for (const { s: p, url:
|
|
6295
|
-
const A = `${p.id}|${
|
|
6296
|
-
F.current.has(A) || (F.current.add(A), S((N) => ({ ...N, [p.id]: !0 })),
|
|
6293
|
+
for (const { s: p, url: C } of r) {
|
|
6294
|
+
const A = `${p.id}|${C}`;
|
|
6295
|
+
F.current.has(A) || (F.current.add(A), S((N) => ({ ...N, [p.id]: !0 })), k((N) => ({ ...N, [p.id]: "" })), (async () => {
|
|
6297
6296
|
try {
|
|
6298
6297
|
const N = await v(p);
|
|
6299
6298
|
x(($) => ({ ...$, [p.id]: N }));
|
|
6300
6299
|
} catch (N) {
|
|
6301
6300
|
let $ = "Error desconocido";
|
|
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()),
|
|
6301
|
+
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()), k((z) => ({ ...z, [p.id]: $ }));
|
|
6303
6302
|
} finally {
|
|
6304
6303
|
S((N) => ({ ...N, [p.id]: !1 }));
|
|
6305
6304
|
}
|
|
@@ -6310,59 +6309,59 @@ const _t = [
|
|
|
6310
6309
|
() => T.filter((r) => r.visible).filter((r) => E(r, w)).sort((r, p) => r.order - p.order),
|
|
6311
6310
|
[T, w]
|
|
6312
6311
|
), P = (r) => Array.isArray(r) ? r.map((p) => {
|
|
6313
|
-
const
|
|
6312
|
+
const C = {};
|
|
6314
6313
|
for (const A of p.fields || []) {
|
|
6315
6314
|
const N = (A.type || "string").toLowerCase();
|
|
6316
6315
|
if (N === "number") {
|
|
6317
6316
|
const $ = String(A.value || "").trim();
|
|
6318
6317
|
if ($ !== "") {
|
|
6319
6318
|
const z = Number($);
|
|
6320
|
-
Number.isNaN(z) || (
|
|
6319
|
+
Number.isNaN(z) || (C[A.name] = z);
|
|
6321
6320
|
}
|
|
6322
6321
|
} else if (N === "boolean")
|
|
6323
|
-
|
|
6322
|
+
C[A.name] = String(A.value).toLowerCase() === "true";
|
|
6324
6323
|
else if (N === "function") {
|
|
6325
6324
|
const $ = String(A.value || "").trim();
|
|
6326
6325
|
if ($)
|
|
6327
6326
|
try {
|
|
6328
6327
|
const z = new Function($);
|
|
6329
|
-
|
|
6328
|
+
C[A.name] = z;
|
|
6330
6329
|
} catch (z) {
|
|
6331
6330
|
console.error(`❌ Error creando función en item '${A.name}':`, z);
|
|
6332
6331
|
}
|
|
6333
6332
|
} else
|
|
6334
|
-
|
|
6333
|
+
C[A.name] = A.value;
|
|
6335
6334
|
}
|
|
6336
|
-
return
|
|
6335
|
+
return C;
|
|
6337
6336
|
}) : [], V = (r) => {
|
|
6338
6337
|
const p = {};
|
|
6339
6338
|
if (!Array.isArray(r)) return p;
|
|
6340
|
-
for (const
|
|
6341
|
-
if (!
|
|
6342
|
-
const A = (
|
|
6339
|
+
for (const C of r) {
|
|
6340
|
+
if (!C.name) continue;
|
|
6341
|
+
const A = (C.type || "string").toLowerCase();
|
|
6343
6342
|
if (A === "number") {
|
|
6344
|
-
const N = String(
|
|
6343
|
+
const N = String(C.value || "").trim();
|
|
6345
6344
|
if (N !== "") {
|
|
6346
6345
|
const $ = Number(N);
|
|
6347
|
-
Number.isNaN($) || (p[
|
|
6346
|
+
Number.isNaN($) || (p[C.name] = $);
|
|
6348
6347
|
}
|
|
6349
6348
|
} else if (A === "boolean")
|
|
6350
|
-
p[
|
|
6349
|
+
p[C.name] = String(C.value).toLowerCase() === "true";
|
|
6351
6350
|
else if (A === "function") {
|
|
6352
|
-
const N = String(
|
|
6351
|
+
const N = String(C.value || "").trim();
|
|
6353
6352
|
if (N)
|
|
6354
6353
|
try {
|
|
6355
6354
|
const $ = new Function(N);
|
|
6356
|
-
p[
|
|
6355
|
+
p[C.name] = $;
|
|
6357
6356
|
} catch ($) {
|
|
6358
|
-
console.error(`❌ Error creando función en item '${
|
|
6357
|
+
console.error(`❌ Error creando función en item '${C.name}':`, $);
|
|
6359
6358
|
}
|
|
6360
6359
|
} else
|
|
6361
|
-
p[
|
|
6360
|
+
p[C.name] = C.value;
|
|
6362
6361
|
}
|
|
6363
6362
|
return p;
|
|
6364
|
-
}, W = (r, p,
|
|
6365
|
-
const N =
|
|
6363
|
+
}, W = (r, p, C, A) => {
|
|
6364
|
+
const N = C ? { ...C } : {}, $ = (A || "items").trim() || "items";
|
|
6366
6365
|
if (p)
|
|
6367
6366
|
return N[$] = p.arr || [], N;
|
|
6368
6367
|
const z = r;
|
|
@@ -6375,13 +6374,13 @@ const _t = [
|
|
|
6375
6374
|
return N[$] = [], N;
|
|
6376
6375
|
}, D = (r) => {
|
|
6377
6376
|
var $;
|
|
6378
|
-
const p = !!(($ = r.apiUrl) != null && $.trim()),
|
|
6377
|
+
const p = !!(($ = r.apiUrl) != null && $.trim()), C = p ? h[r.id] : void 0;
|
|
6379
6378
|
let A = r.props ? { ...r.props } : {};
|
|
6380
6379
|
const N = V(r.manualScalarFields);
|
|
6381
6380
|
if (_t.includes(r.componentKey))
|
|
6382
|
-
return { items:
|
|
6381
|
+
return { items: C, ...A, ...N };
|
|
6383
6382
|
if (A = { ...A, ...N }, p)
|
|
6384
|
-
A = W(
|
|
6383
|
+
A = W(C, null, A);
|
|
6385
6384
|
else if (r.dataMode === "manual") {
|
|
6386
6385
|
const z = P(r.manualItems);
|
|
6387
6386
|
if (A = W(
|
|
@@ -6402,8 +6401,8 @@ const _t = [
|
|
|
6402
6401
|
} catch (A) {
|
|
6403
6402
|
console.error("❌ Error armando scalars vacíos:", r, A);
|
|
6404
6403
|
}
|
|
6405
|
-
const
|
|
6406
|
-
if (typeof p[
|
|
6404
|
+
const C = (r.variableName || "items").trim() || "items";
|
|
6405
|
+
if (typeof p[C] == "undefined" && (p[C] = []), r.variableName2) {
|
|
6407
6406
|
const A = (r.variableName2 || "items2").trim() || "items2";
|
|
6408
6407
|
typeof p[A] == "undefined" && (p[A] = []);
|
|
6409
6408
|
}
|
|
@@ -6413,24 +6412,24 @@ const _t = [
|
|
|
6413
6412
|
return D(r);
|
|
6414
6413
|
} catch (p) {
|
|
6415
6414
|
console.error("🔥 ERROR EN buildCompProps:", r, p);
|
|
6416
|
-
const
|
|
6417
|
-
if (
|
|
6415
|
+
const C = I(r);
|
|
6416
|
+
if (C && C !== r)
|
|
6418
6417
|
try {
|
|
6419
6418
|
return console.warn(
|
|
6420
6419
|
`[landing] usando fallback local para sección ${r.title} (${r.componentKey})`
|
|
6421
|
-
), D(
|
|
6420
|
+
), D(C);
|
|
6422
6421
|
} catch (A) {
|
|
6423
|
-
console.error("🔥 ERROR EN fallback buildCompProps:",
|
|
6422
|
+
console.error("🔥 ERROR EN fallback buildCompProps:", C, A);
|
|
6424
6423
|
}
|
|
6425
6424
|
return G(r);
|
|
6426
6425
|
}
|
|
6427
|
-
}, K = (r, p,
|
|
6426
|
+
}, K = (r, p, C) => /* @__PURE__ */ t("div", { className: `mx-4 p-4 rounded ${{
|
|
6428
6427
|
loading: "bg-blue-100 text-blue-800",
|
|
6429
6428
|
error: "bg-red-100 text-red-800",
|
|
6430
6429
|
component: "bg-yellow-100 text-yellow-800"
|
|
6431
|
-
}[p]}`, children:
|
|
6430
|
+
}[p]}`, children: C }, r), Y = (r) => {
|
|
6432
6431
|
var $e;
|
|
6433
|
-
const p = r.componentKey,
|
|
6432
|
+
const p = r.componentKey, C = Wo[p], N = (/* @__PURE__ */ new Set([
|
|
6434
6433
|
"OraculoSeccionBanners",
|
|
6435
6434
|
"OraculoSeccionBonoBienvenida",
|
|
6436
6435
|
"OraculoSeccionCasinoEnVivo",
|
|
@@ -6452,7 +6451,7 @@ const _t = [
|
|
|
6452
6451
|
marginBottom: -z
|
|
6453
6452
|
} : {}
|
|
6454
6453
|
};
|
|
6455
|
-
if (!
|
|
6454
|
+
if (!C)
|
|
6456
6455
|
return console.warn(`No hay componente registrado para "${p}"`), K(
|
|
6457
6456
|
r.id,
|
|
6458
6457
|
"component",
|
|
@@ -6472,7 +6471,7 @@ const _t = [
|
|
|
6472
6471
|
if (Be && Be.dataMode === "manual")
|
|
6473
6472
|
try {
|
|
6474
6473
|
const je = q(Be);
|
|
6475
|
-
return /* @__PURE__ */ t("div", { style: ne, className: "oraculo-section-wrapper", children: /* @__PURE__ */ t(
|
|
6474
|
+
return /* @__PURE__ */ t("div", { style: ne, className: "oraculo-section-wrapper", children: /* @__PURE__ */ t(C, { ...je }) }, r.id);
|
|
6476
6475
|
} catch (je) {
|
|
6477
6476
|
console.error(
|
|
6478
6477
|
"🔥 ERROR renderizando fallback manual de sección:",
|
|
@@ -6497,7 +6496,7 @@ const _t = [
|
|
|
6497
6496
|
style: ne,
|
|
6498
6497
|
className: "oraculo-section-wrapper",
|
|
6499
6498
|
"data-component-key": p,
|
|
6500
|
-
children: /* @__PURE__ */ t(
|
|
6499
|
+
children: /* @__PURE__ */ t(C, { ...Oe })
|
|
6501
6500
|
},
|
|
6502
6501
|
r.id
|
|
6503
6502
|
) });
|