oraculo-ui 0.2.17 → 0.2.18
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 +257 -265
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -25,9 +25,9 @@ function X({
|
|
|
25
25
|
variant: m = "primary",
|
|
26
26
|
size: p,
|
|
27
27
|
fullWidth: f = !1,
|
|
28
|
-
fullHeight:
|
|
28
|
+
fullHeight: d = !1,
|
|
29
29
|
className: l = "",
|
|
30
|
-
ariaLabel:
|
|
30
|
+
ariaLabel: c,
|
|
31
31
|
leftIcon: g,
|
|
32
32
|
rightIcon: b,
|
|
33
33
|
iconOnly: C
|
|
@@ -37,7 +37,7 @@ function X({
|
|
|
37
37
|
m === "secondary" ? "orc-btn--secondary" : m === "tertiary" ? "orc-btn--tertiary" : "orc-btn--primary",
|
|
38
38
|
p ? `orc-btn--${p}` : "",
|
|
39
39
|
f ? "orc-btn--full" : "",
|
|
40
|
-
|
|
40
|
+
d ? "orc-btn--fullHeight" : "",
|
|
41
41
|
D ? "orc-btn--iconOnly" : "",
|
|
42
42
|
l
|
|
43
43
|
].filter(Boolean).join(" "), E = /* @__PURE__ */ h(me, { children: [
|
|
@@ -51,7 +51,7 @@ function X({
|
|
|
51
51
|
href: n,
|
|
52
52
|
target: o,
|
|
53
53
|
rel: i,
|
|
54
|
-
"aria-label":
|
|
54
|
+
"aria-label": c,
|
|
55
55
|
"aria-disabled": w,
|
|
56
56
|
tabIndex: w ? -1 : void 0,
|
|
57
57
|
className: I,
|
|
@@ -64,7 +64,7 @@ function X({
|
|
|
64
64
|
type: r,
|
|
65
65
|
onClick: a,
|
|
66
66
|
disabled: !!w,
|
|
67
|
-
"aria-label":
|
|
67
|
+
"aria-label": c,
|
|
68
68
|
className: I,
|
|
69
69
|
children: E
|
|
70
70
|
}
|
|
@@ -105,23 +105,23 @@ const lt = ({
|
|
|
105
105
|
return Q(() => {
|
|
106
106
|
m((p) => p + 1);
|
|
107
107
|
}, [a, i]), /* @__PURE__ */ t("div", { className: r, role: "tablist", "aria-label": "Carousel pagination", children: Array.from({ length: e }).map((p, f) => {
|
|
108
|
-
const
|
|
108
|
+
const d = f === a;
|
|
109
109
|
return /* @__PURE__ */ t("span", { className: "orc-dots__cell", children: /* @__PURE__ */ t(
|
|
110
110
|
"button",
|
|
111
111
|
{
|
|
112
112
|
type: "button",
|
|
113
113
|
role: "tab",
|
|
114
|
-
"aria-selected":
|
|
114
|
+
"aria-selected": d,
|
|
115
115
|
"aria-label": `Ir al slide ${f + 1}`,
|
|
116
|
-
className: "orc-dots__dot" + (
|
|
117
|
-
style:
|
|
116
|
+
className: "orc-dots__dot" + (d ? " orc-dots__dot--active" : ""),
|
|
117
|
+
style: d ? {
|
|
118
118
|
"--dot-progress-ms": `${i}ms`
|
|
119
119
|
} : void 0,
|
|
120
120
|
onClick: () => {
|
|
121
|
-
|
|
121
|
+
d && m((l) => l + 1), n == null || n(f);
|
|
122
122
|
}
|
|
123
123
|
},
|
|
124
|
-
|
|
124
|
+
d ? `a-${f}-${s}` : `i-${f}`
|
|
125
125
|
) }, f);
|
|
126
126
|
}) });
|
|
127
127
|
};
|
|
@@ -389,15 +389,15 @@ function ua(e, a, {
|
|
|
389
389
|
const m = e.current;
|
|
390
390
|
if (!m) return;
|
|
391
391
|
const p = (f) => {
|
|
392
|
-
const
|
|
393
|
-
if (!
|
|
394
|
-
const { deltaX: l, deltaY:
|
|
395
|
-
if (Math.abs(l) <= Math.abs(
|
|
392
|
+
const d = a.current;
|
|
393
|
+
if (!d || !d.go) return;
|
|
394
|
+
const { deltaX: l, deltaY: c } = f;
|
|
395
|
+
if (Math.abs(l) <= Math.abs(c)) return;
|
|
396
396
|
f.preventDefault(), r.current += l;
|
|
397
397
|
const g = Date.now();
|
|
398
398
|
if (g - s.current < i || Math.abs(r.current) < o) return;
|
|
399
399
|
const b = r.current > 0 ? ">" : "<";
|
|
400
|
-
r.current = 0, s.current = g,
|
|
400
|
+
r.current = 0, s.current = g, d.go(b);
|
|
401
401
|
};
|
|
402
402
|
return m.addEventListener("wheel", p, { passive: !1 }), () => {
|
|
403
403
|
m.removeEventListener("wheel", p), r.current = 0;
|
|
@@ -421,23 +421,23 @@ const ma = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", pa = "ora
|
|
|
421
421
|
onMove: m,
|
|
422
422
|
useIndexAsKey: p = !1,
|
|
423
423
|
enableHorizontalWheel: f = !0,
|
|
424
|
-
showRightGradient:
|
|
424
|
+
showRightGradient: d = !1
|
|
425
425
|
}, l) => {
|
|
426
|
-
const
|
|
427
|
-
ua(g,
|
|
426
|
+
const c = V(null), g = V(null), b = V(e.length), C = V(null), M = V(null);
|
|
427
|
+
ua(g, c, {
|
|
428
428
|
enabled: f
|
|
429
429
|
}), Ot(l, () => ({
|
|
430
430
|
next: () => {
|
|
431
431
|
var w;
|
|
432
|
-
return (w =
|
|
432
|
+
return (w = c.current) == null ? void 0 : w.go(">");
|
|
433
433
|
},
|
|
434
434
|
prev: () => {
|
|
435
435
|
var w;
|
|
436
|
-
return (w =
|
|
436
|
+
return (w = c.current) == null ? void 0 : w.go("<");
|
|
437
437
|
},
|
|
438
438
|
go: (w) => {
|
|
439
439
|
var B;
|
|
440
|
-
return (B =
|
|
440
|
+
return (B = c.current) == null ? void 0 : B.go(w);
|
|
441
441
|
}
|
|
442
442
|
}));
|
|
443
443
|
const x = (w) => {
|
|
@@ -468,7 +468,7 @@ const ma = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", pa = "ora
|
|
|
468
468
|
return;
|
|
469
469
|
}
|
|
470
470
|
const { visibleStart: _, visibleEnd: O } = x(w), L = _ === 0, A = O === T - 1;
|
|
471
|
-
|
|
471
|
+
d && ((v = C.current) == null || v.style.setProperty("--gradient-opacity", L ? "0" : "1"), (F = M.current) == null || F.style.setProperty("--gradient-opacity", A ? "0" : "1"));
|
|
472
472
|
const R = w.Components.Controller.getIndex();
|
|
473
473
|
m == null || m({
|
|
474
474
|
index: R,
|
|
@@ -481,7 +481,7 @@ const ma = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", pa = "ora
|
|
|
481
481
|
}, [m]);
|
|
482
482
|
fe.useEffect(() => {
|
|
483
483
|
var T;
|
|
484
|
-
const w = (T =
|
|
484
|
+
const w = (T = c.current) == null ? void 0 : T.splide;
|
|
485
485
|
if (!w) return;
|
|
486
486
|
const B = b.current !== e.length;
|
|
487
487
|
b.current = e.length, B && requestAnimationFrame(() => {
|
|
@@ -490,7 +490,7 @@ const ma = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", pa = "ora
|
|
|
490
490
|
}, [e.length, $]);
|
|
491
491
|
const D = Ee(() => {
|
|
492
492
|
var B;
|
|
493
|
-
const w = (B =
|
|
493
|
+
const w = (B = c.current) == null ? void 0 : B.splide;
|
|
494
494
|
w && (w.go(0, !1), $(w));
|
|
495
495
|
}, [$]), I = Ee(
|
|
496
496
|
(w) => {
|
|
@@ -522,7 +522,7 @@ const ma = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", pa = "ora
|
|
|
522
522
|
/* @__PURE__ */ t(
|
|
523
523
|
ha,
|
|
524
524
|
{
|
|
525
|
-
ref:
|
|
525
|
+
ref: c,
|
|
526
526
|
options: E,
|
|
527
527
|
onMove: $,
|
|
528
528
|
onMounted: I,
|
|
@@ -533,7 +533,7 @@ const ma = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", pa = "ora
|
|
|
533
533
|
})
|
|
534
534
|
}
|
|
535
535
|
),
|
|
536
|
-
|
|
536
|
+
d && /* @__PURE__ */ h(me, { children: [
|
|
537
537
|
/* @__PURE__ */ t(
|
|
538
538
|
"div",
|
|
539
539
|
{
|
|
@@ -686,15 +686,15 @@ function va({
|
|
|
686
686
|
md: { w: 186, h: 264, r: 22.6, font: 64 }
|
|
687
687
|
}
|
|
688
688
|
}) {
|
|
689
|
-
var l,
|
|
689
|
+
var l, c, g, b;
|
|
690
690
|
const r = (C, M) => {
|
|
691
691
|
var x, y, $, D;
|
|
692
692
|
return {
|
|
693
693
|
xs: (y = (x = i.xs) == null ? void 0 : x[C]) != null ? y : M,
|
|
694
694
|
md: (D = ($ = i.md) == null ? void 0 : $[C]) != null ? D : M
|
|
695
695
|
};
|
|
696
|
-
}, s = r("w", 186), m = r("h", 264), p = r("r", 22.6), f = r("font", 64),
|
|
697
|
-
xs: Math.round(((
|
|
696
|
+
}, s = r("w", 186), m = r("h", 264), p = r("r", 22.6), f = r("font", 64), d = {
|
|
697
|
+
xs: Math.round(((c = (l = i.xs) == null ? void 0 : l.font) != null ? c : 64) * 0.28),
|
|
698
698
|
md: Math.round(((b = (g = i.md) == null ? void 0 : g.font) != null ? b : 64) * 0.28)
|
|
699
699
|
};
|
|
700
700
|
return /* @__PURE__ */ h(
|
|
@@ -711,7 +711,7 @@ function va({
|
|
|
711
711
|
borderRadius: { xs: `${p.xs}px`, md: `${p.md}px` },
|
|
712
712
|
boxSizing: "border-box",
|
|
713
713
|
overflow: "visible",
|
|
714
|
-
pb: { xs: `${
|
|
714
|
+
pb: { xs: `${d.xs}px`, md: `${d.md}px` },
|
|
715
715
|
"&::before": {
|
|
716
716
|
content: '""',
|
|
717
717
|
position: "absolute",
|
|
@@ -766,8 +766,8 @@ function va({
|
|
|
766
766
|
position: "absolute",
|
|
767
767
|
left: 8,
|
|
768
768
|
bottom: {
|
|
769
|
-
xs: `-${
|
|
770
|
-
md: `-${
|
|
769
|
+
xs: `-${d.xs}px`,
|
|
770
|
+
md: `-${d.md}px`
|
|
771
771
|
},
|
|
772
772
|
fontFamily: '"secondary", sans-serif',
|
|
773
773
|
fontSize: {
|
|
@@ -936,8 +936,8 @@ const _a = ({
|
|
|
936
936
|
)
|
|
937
937
|
}
|
|
938
938
|
),
|
|
939
|
-
(o ? Array.from({ length: 4 }) : p).map((f,
|
|
940
|
-
var l,
|
|
939
|
+
(o ? Array.from({ length: 4 }) : p).map((f, d) => {
|
|
940
|
+
var l, c;
|
|
941
941
|
return /* @__PURE__ */ t(
|
|
942
942
|
q,
|
|
943
943
|
{
|
|
@@ -950,14 +950,14 @@ const _a = ({
|
|
|
950
950
|
children: o ? /* @__PURE__ */ t(Pe, {}) : /* @__PURE__ */ t(
|
|
951
951
|
Te,
|
|
952
952
|
{
|
|
953
|
-
imageUrl: `https://olimpo.bet${(
|
|
953
|
+
imageUrl: `https://olimpo.bet${(c = (l = f.background) != null ? l : f.imageUrl) != null ? c : ""}`,
|
|
954
954
|
size: "sm",
|
|
955
955
|
fillParent: !0,
|
|
956
|
-
onClick: () => n == null ? void 0 : n(f,
|
|
956
|
+
onClick: () => n == null ? void 0 : n(f, d + 1)
|
|
957
957
|
}
|
|
958
958
|
)
|
|
959
959
|
},
|
|
960
|
-
o ? `sk-${
|
|
960
|
+
o ? `sk-${d}` : f.id
|
|
961
961
|
);
|
|
962
962
|
})
|
|
963
963
|
]
|
|
@@ -981,7 +981,7 @@ const _a = ({
|
|
|
981
981
|
gridAutoFlow: "column"
|
|
982
982
|
},
|
|
983
983
|
children: (o ? Array.from({ length: i }) : e).map((m, p) => {
|
|
984
|
-
var f,
|
|
984
|
+
var f, d, l;
|
|
985
985
|
return /* @__PURE__ */ t(
|
|
986
986
|
q,
|
|
987
987
|
{
|
|
@@ -989,7 +989,7 @@ const _a = ({
|
|
|
989
989
|
children: o ? /* @__PURE__ */ t(Pe, {}) : /* @__PURE__ */ t(
|
|
990
990
|
Te,
|
|
991
991
|
{
|
|
992
|
-
imageUrl: `https://olimpo.bet${(
|
|
992
|
+
imageUrl: `https://olimpo.bet${(d = (f = m.background) != null ? f : m.imageUrl) != null ? d : ""}`,
|
|
993
993
|
size: "sm",
|
|
994
994
|
fillParent: !0,
|
|
995
995
|
onClick: () => n == null ? void 0 : n(m, p)
|
|
@@ -1012,7 +1012,7 @@ const _a = ({
|
|
|
1012
1012
|
className: m = "",
|
|
1013
1013
|
variant: p = "small"
|
|
1014
1014
|
}) => {
|
|
1015
|
-
const f = a ? a.slice(0, 2) : "",
|
|
1015
|
+
const f = a ? a.slice(0, 2) : "", d = a ? a.slice(2) : "", l = p === "large";
|
|
1016
1016
|
return /* @__PURE__ */ h(
|
|
1017
1017
|
q,
|
|
1018
1018
|
{
|
|
@@ -1126,7 +1126,7 @@ const _a = ({
|
|
|
1126
1126
|
{
|
|
1127
1127
|
component: "span",
|
|
1128
1128
|
sx: { fontSize: { xs: 52, md: 77 } },
|
|
1129
|
-
children:
|
|
1129
|
+
children: d
|
|
1130
1130
|
}
|
|
1131
1131
|
)
|
|
1132
1132
|
]
|
|
@@ -1243,14 +1243,14 @@ const ft = Et(void 0), gt = ({ children: e, docId: a, moduleId: n }) => {
|
|
|
1243
1243
|
function Ba({ coupon: e }) {
|
|
1244
1244
|
var f;
|
|
1245
1245
|
const a = ae(), n = ne();
|
|
1246
|
-
function o(
|
|
1246
|
+
function o(d) {
|
|
1247
1247
|
var g, b;
|
|
1248
|
-
const l = [],
|
|
1248
|
+
const l = [], c = Array.from(
|
|
1249
1249
|
new Map(
|
|
1250
|
-
((g =
|
|
1250
|
+
((g = d == null ? void 0 : d.events) != null ? g : []).filter(Boolean).map((C) => [C.id, C])
|
|
1251
1251
|
).values()
|
|
1252
1252
|
);
|
|
1253
|
-
return
|
|
1253
|
+
return c.forEach((C) => {
|
|
1254
1254
|
var $;
|
|
1255
1255
|
const M = ($ = C.betoffers) != null ? $ : [], x = C.homeName, y = C.awayName;
|
|
1256
1256
|
M.forEach((D) => {
|
|
@@ -1271,29 +1271,29 @@ function Ba({ coupon: e }) {
|
|
|
1271
1271
|
});
|
|
1272
1272
|
}), {
|
|
1273
1273
|
outcomes: l.sort((C, M) => C.position - M.position),
|
|
1274
|
-
total: Number((b =
|
|
1274
|
+
total: Number((b = d == null ? void 0 : d.combinadoTotal) != null ? b : 0).toLocaleString("en-US", {
|
|
1275
1275
|
minimumFractionDigits: 2,
|
|
1276
1276
|
maximumFractionDigits: 2
|
|
1277
1277
|
}),
|
|
1278
|
-
events:
|
|
1278
|
+
events: c
|
|
1279
1279
|
};
|
|
1280
1280
|
}
|
|
1281
|
-
function i(
|
|
1282
|
-
if (!
|
|
1281
|
+
function i(d) {
|
|
1282
|
+
if (!d || !Array.isArray(d.events) || d.events.length === 0)
|
|
1283
1283
|
return "/deportes#home";
|
|
1284
|
-
const l =
|
|
1284
|
+
const l = d.events;
|
|
1285
1285
|
if (l.length === 1)
|
|
1286
1286
|
return `/deportes#event/${l[0].id}`;
|
|
1287
|
-
const
|
|
1288
|
-
if (l.every((b) => b.groupId ===
|
|
1287
|
+
const c = l[0].groupId;
|
|
1288
|
+
if (l.every((b) => b.groupId === c)) {
|
|
1289
1289
|
const b = l[0].path;
|
|
1290
1290
|
if (Array.isArray(b) && b.length > 0)
|
|
1291
1291
|
return `/deportes#sports-hub/${b.map((M) => M.termKey).filter(Boolean).join("/")}`;
|
|
1292
1292
|
}
|
|
1293
1293
|
return "/deportes#home";
|
|
1294
1294
|
}
|
|
1295
|
-
const r = (
|
|
1296
|
-
const
|
|
1295
|
+
const r = (d, l) => {
|
|
1296
|
+
const c = Array.isArray(d) ? d : [d], g = Array.from(
|
|
1297
1297
|
new Set(
|
|
1298
1298
|
s.outcomes.map((M) => {
|
|
1299
1299
|
var y;
|
|
@@ -1301,7 +1301,7 @@ function Ba({ coupon: e }) {
|
|
|
1301
1301
|
return (y = x == null ? void 0 : x.name) != null ? y : "";
|
|
1302
1302
|
})
|
|
1303
1303
|
)
|
|
1304
|
-
).filter(Boolean), b = g.length > 0 ? g.join(" + ") : JSON.stringify(
|
|
1304
|
+
).filter(Boolean), b = g.length > 0 ? g.join(" + ") : JSON.stringify(c), C = l ? `${b} - Cuota: ${l}` : b;
|
|
1305
1305
|
a({
|
|
1306
1306
|
element: "evento_semana_outcome",
|
|
1307
1307
|
label: `Landing: ${n} - OraculoEventCombinadasCard - Click: ${C}`,
|
|
@@ -1312,16 +1312,16 @@ function Ba({ coupon: e }) {
|
|
|
1312
1312
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1313
1313
|
},
|
|
1314
1314
|
tags: { section: "OraculoEventCombinadasCard", outcomes: C }
|
|
1315
|
-
}), Ue(i(e),
|
|
1315
|
+
}), Ue(i(e), d);
|
|
1316
1316
|
};
|
|
1317
1317
|
if (!((f = e == null ? void 0 : e.events) != null && f.length)) return null;
|
|
1318
|
-
const s = o(e), m = s.outcomes.reduce((
|
|
1319
|
-
s.events.map((
|
|
1318
|
+
const s = o(e), m = s.outcomes.reduce((d, l) => (d[l.eventId] || (d[l.eventId] = []), d[l.eventId].push(l), d), {}), p = new Map(
|
|
1319
|
+
s.events.map((d) => [d.id, d])
|
|
1320
1320
|
);
|
|
1321
1321
|
return /* @__PURE__ */ h("div", { className: le.card, children: [
|
|
1322
|
-
/* @__PURE__ */ t("div", { className: le.combinadas, children: /* @__PURE__ */ t("div", { className: le.combinadasScroll, children: /* @__PURE__ */ t(H, { direction: "column", spacing: 1.5, useFlexGap: !0, children: Object.entries(m).reverse().map(([
|
|
1323
|
-
const
|
|
1324
|
-
return
|
|
1322
|
+
/* @__PURE__ */ t("div", { className: le.combinadas, children: /* @__PURE__ */ t("div", { className: le.combinadasScroll, children: /* @__PURE__ */ t(H, { direction: "column", spacing: 1.5, useFlexGap: !0, children: Object.entries(m).reverse().map(([d, l]) => {
|
|
1323
|
+
const c = p.get(Number(d));
|
|
1324
|
+
return c ? /* @__PURE__ */ h(
|
|
1325
1325
|
H,
|
|
1326
1326
|
{
|
|
1327
1327
|
direction: "column",
|
|
@@ -1331,7 +1331,7 @@ function Ba({ coupon: e }) {
|
|
|
1331
1331
|
/* @__PURE__ */ t(
|
|
1332
1332
|
ge,
|
|
1333
1333
|
{
|
|
1334
|
-
title:
|
|
1334
|
+
title: c.name,
|
|
1335
1335
|
iconUrl: "/assets/img/home/Combinadas/pelota.png",
|
|
1336
1336
|
size: "xs"
|
|
1337
1337
|
}
|
|
@@ -1353,17 +1353,17 @@ function Ba({ coupon: e }) {
|
|
|
1353
1353
|
" | ",
|
|
1354
1354
|
g.label
|
|
1355
1355
|
] })
|
|
1356
|
-
] }, `${
|
|
1356
|
+
] }, `${d}-${b}`))
|
|
1357
1357
|
]
|
|
1358
1358
|
},
|
|
1359
|
-
|
|
1359
|
+
d
|
|
1360
1360
|
) : null;
|
|
1361
1361
|
}) }) }) }),
|
|
1362
1362
|
/* @__PURE__ */ h(
|
|
1363
1363
|
"button",
|
|
1364
1364
|
{
|
|
1365
1365
|
onClick: () => r(
|
|
1366
|
-
s.outcomes.map((
|
|
1366
|
+
s.outcomes.map((d) => d.id),
|
|
1367
1367
|
s.total
|
|
1368
1368
|
),
|
|
1369
1369
|
className: le.cuotaTotal,
|
|
@@ -1410,9 +1410,9 @@ function Aa({
|
|
|
1410
1410
|
variant: m = "primary",
|
|
1411
1411
|
size: p,
|
|
1412
1412
|
fullWidth: f = !1,
|
|
1413
|
-
fullHeight:
|
|
1413
|
+
fullHeight: d = !1,
|
|
1414
1414
|
className: l = "",
|
|
1415
|
-
ariaLabel:
|
|
1415
|
+
ariaLabel: c,
|
|
1416
1416
|
leftIcon: g,
|
|
1417
1417
|
rightIcon: b,
|
|
1418
1418
|
iconOnly: C
|
|
@@ -1425,7 +1425,7 @@ function Aa({
|
|
|
1425
1425
|
p ? ce[`orc-btn--${p}`] : "",
|
|
1426
1426
|
// sm / md / lg
|
|
1427
1427
|
f ? ce["orc-btn--full"] : "",
|
|
1428
|
-
|
|
1428
|
+
d ? ce["orc-btn--fullHeight"] : "",
|
|
1429
1429
|
D ? ce["orc-btn--iconOnly"] : "",
|
|
1430
1430
|
l
|
|
1431
1431
|
].filter(Boolean).join(" "), E = /* @__PURE__ */ h(me, { children: [
|
|
@@ -1439,7 +1439,7 @@ function Aa({
|
|
|
1439
1439
|
href: n,
|
|
1440
1440
|
target: o,
|
|
1441
1441
|
rel: i,
|
|
1442
|
-
"aria-label":
|
|
1442
|
+
"aria-label": c,
|
|
1443
1443
|
"aria-disabled": w,
|
|
1444
1444
|
tabIndex: w ? -1 : void 0,
|
|
1445
1445
|
className: I,
|
|
@@ -1452,7 +1452,7 @@ function Aa({
|
|
|
1452
1452
|
type: r,
|
|
1453
1453
|
onClick: a,
|
|
1454
1454
|
disabled: !!w,
|
|
1455
|
-
"aria-label":
|
|
1455
|
+
"aria-label": c,
|
|
1456
1456
|
className: I,
|
|
1457
1457
|
children: E
|
|
1458
1458
|
}
|
|
@@ -1484,7 +1484,7 @@ const za = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", Ra = "
|
|
|
1484
1484
|
return o || (a === "home" ? Xe : Je);
|
|
1485
1485
|
};
|
|
1486
1486
|
function Fa({ event: e, liveData: a, betOffers: n, jersey: o }) {
|
|
1487
|
-
var m, p, f,
|
|
1487
|
+
var m, p, f, d, l, c, g, b, C, M, x;
|
|
1488
1488
|
const i = n == null ? void 0 : n.find(
|
|
1489
1489
|
(y) => {
|
|
1490
1490
|
var $;
|
|
@@ -1510,14 +1510,14 @@ function Fa({ event: e, liveData: a, betOffers: n, jersey: o }) {
|
|
|
1510
1510
|
Wt,
|
|
1511
1511
|
{
|
|
1512
1512
|
title: (f = (p = (m = e == null ? void 0 : e.path) == null ? void 0 : m[0]) == null ? void 0 : p.name) != null ? f : "",
|
|
1513
|
-
subtitle: (
|
|
1513
|
+
subtitle: (d = e == null ? void 0 : e.group) != null ? d : "",
|
|
1514
1514
|
live: !0,
|
|
1515
1515
|
time: ((l = a == null ? void 0 : a.matchClock) == null ? void 0 : l.minute) != null ? `${a.matchClock.minute}'` : ""
|
|
1516
1516
|
}
|
|
1517
1517
|
),
|
|
1518
1518
|
/* @__PURE__ */ t("div", { style: { padding: "0 4px" }, children: /* @__PURE__ */ h(ue, { spacing: 1.5, columns: "1fr auto 1fr", children: [
|
|
1519
1519
|
/* @__PURE__ */ t(Ne, { name: e == null ? void 0 : e.homeName, jersey: Me(o, "home") }),
|
|
1520
|
-
/* @__PURE__ */ t(ut, { text: ((g = (
|
|
1520
|
+
/* @__PURE__ */ t(ut, { text: ((g = (c = a == null ? void 0 : a.score) == null ? void 0 : c.home) != null ? g : 0) + ":" + ((C = (b = a == null ? void 0 : a.score) == null ? void 0 : b.away) != null ? C : 0), name: "En vivo" }),
|
|
1521
1521
|
/* @__PURE__ */ t(Ne, { name: e == null ? void 0 : e.awayName, jersey: Me(o, "away") })
|
|
1522
1522
|
] }) })
|
|
1523
1523
|
] }),
|
|
@@ -1542,7 +1542,7 @@ const Ua = "oraculo__OraculoEventSemanaCard-module__cardContainer___4JuDe", Va =
|
|
|
1542
1542
|
equipos: Ga
|
|
1543
1543
|
};
|
|
1544
1544
|
function ja({ event: e, jersey: a }) {
|
|
1545
|
-
var s, m, p, f,
|
|
1545
|
+
var s, m, p, f, d, l, c;
|
|
1546
1546
|
const n = ae(), o = ne();
|
|
1547
1547
|
function i(g) {
|
|
1548
1548
|
const b = new Date(g), C = b.toLocaleDateString("es-ES", { weekday: "short" }).toUpperCase(), M = b.getDate().toString().padStart(2, "0"), x = (b.getMonth() + 1).toString().padStart(2, "0");
|
|
@@ -1576,7 +1576,7 @@ function ja({ event: e, jersey: a }) {
|
|
|
1576
1576
|
] }),
|
|
1577
1577
|
/* @__PURE__ */ h(H, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
1578
1578
|
/* @__PURE__ */ t(ue, { spacing: 1, children: ((f = (p = (m = e == null ? void 0 : e.outcome) == null ? void 0 : m[0]) == null ? void 0 : p.outcomes) != null ? f : []).map((g, b) => /* @__PURE__ */ t(ct, { text: g.label.toUpperCase() }, b)) }),
|
|
1579
|
-
/* @__PURE__ */ t("div", { className: be.jugadas, children: /* @__PURE__ */ t(ue, { spacing: 1, children: ((
|
|
1579
|
+
/* @__PURE__ */ t("div", { className: be.jugadas, children: /* @__PURE__ */ t(ue, { spacing: 1, children: ((c = (l = (d = e == null ? void 0 : e.outcome) == null ? void 0 : d[0]) == null ? void 0 : l.outcomes) != null ? c : []).map((g, b) => /* @__PURE__ */ t(X, { variant: "primary", fullHeight: !0, onClick: () => {
|
|
1580
1580
|
r(g.id, g.odds);
|
|
1581
1581
|
}, children: (g.odds / 1e3).toFixed(2) }, b)) }) })
|
|
1582
1582
|
] })
|
|
@@ -1590,14 +1590,14 @@ function Ha({
|
|
|
1590
1590
|
onViewMore: o,
|
|
1591
1591
|
className: i = ""
|
|
1592
1592
|
}) {
|
|
1593
|
-
const r = V(null), [s, m] = K({ isStart: !0, isEnd: !1 }), p = ae(), f = ne(),
|
|
1593
|
+
const r = V(null), [s, m] = K({ isStart: !0, isEnd: !1 }), p = ae(), f = ne(), d = se(), l = !e || e.length === 0, c = () => {
|
|
1594
1594
|
var y;
|
|
1595
1595
|
p({
|
|
1596
1596
|
element: "destacados_carousel_prev",
|
|
1597
1597
|
label: `${f} - OraculoSeccionDestacados - Anterior`,
|
|
1598
1598
|
target: "carousel",
|
|
1599
1599
|
event_type: "click",
|
|
1600
|
-
module_id:
|
|
1600
|
+
module_id: d,
|
|
1601
1601
|
metadata: {
|
|
1602
1602
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1603
1603
|
},
|
|
@@ -1610,7 +1610,7 @@ function Ha({
|
|
|
1610
1610
|
label: `${f} - OraculoSeccionDestacados - Siguiente`,
|
|
1611
1611
|
target: "carousel",
|
|
1612
1612
|
event_type: "click",
|
|
1613
|
-
module_id:
|
|
1613
|
+
module_id: d,
|
|
1614
1614
|
metadata: {
|
|
1615
1615
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1616
1616
|
},
|
|
@@ -1622,7 +1622,7 @@ function Ha({
|
|
|
1622
1622
|
label: `${f} - OraculoSeccionDestacados - Ver más`,
|
|
1623
1623
|
target: "https://www.olimpo.bet/promociones",
|
|
1624
1624
|
event_type: "click",
|
|
1625
|
-
module_id:
|
|
1625
|
+
module_id: d,
|
|
1626
1626
|
metadata: {
|
|
1627
1627
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1628
1628
|
},
|
|
@@ -1636,7 +1636,7 @@ function Ha({
|
|
|
1636
1636
|
label: `${f} - OraculoSeccionDestacados - Click: ${String(y)}`,
|
|
1637
1637
|
target: D,
|
|
1638
1638
|
event_type: "click",
|
|
1639
|
-
module_id:
|
|
1639
|
+
module_id: d,
|
|
1640
1640
|
metadata: {
|
|
1641
1641
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1642
1642
|
},
|
|
@@ -1670,7 +1670,7 @@ function Ha({
|
|
|
1670
1670
|
variant: "secondary",
|
|
1671
1671
|
iconOnly: !0,
|
|
1672
1672
|
leftIcon: /* @__PURE__ */ t(Ae, {}),
|
|
1673
|
-
onClick:
|
|
1673
|
+
onClick: c,
|
|
1674
1674
|
disabled: s.isStart || l
|
|
1675
1675
|
}
|
|
1676
1676
|
),
|
|
@@ -1736,7 +1736,7 @@ function Ha({
|
|
|
1736
1736
|
label: `${f} - OraculoSeccionDestacados - Slide Carousel`,
|
|
1737
1737
|
target: "carousel",
|
|
1738
1738
|
event_type: "slide",
|
|
1739
|
-
module_id:
|
|
1739
|
+
module_id: d,
|
|
1740
1740
|
metadata: {
|
|
1741
1741
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
1742
1742
|
isStart: y,
|
|
@@ -1771,16 +1771,16 @@ function Xa({
|
|
|
1771
1771
|
onCardClick: o
|
|
1772
1772
|
}) {
|
|
1773
1773
|
const i = ae(), r = ne(), s = se(), m = re(
|
|
1774
|
-
() => (e != null ? e : []).map((l,
|
|
1774
|
+
() => (e != null ? e : []).map((l, c) => {
|
|
1775
1775
|
var g;
|
|
1776
1776
|
return {
|
|
1777
1777
|
...l,
|
|
1778
|
-
orden: (g = l.orden) != null ? g :
|
|
1779
|
-
_originalIndex:
|
|
1778
|
+
orden: (g = l.orden) != null ? g : c + 1,
|
|
1779
|
+
_originalIndex: c
|
|
1780
1780
|
};
|
|
1781
|
-
}).sort((l,
|
|
1781
|
+
}).sort((l, c) => l.orden != null && c.orden != null ? l.orden - c.orden : l._originalIndex - c._originalIndex),
|
|
1782
1782
|
[e]
|
|
1783
|
-
), p = !e || e.length === 0, f = p ? Array.from({ length: 6 }) : m.slice(0, 6),
|
|
1783
|
+
), p = !e || e.length === 0, f = p ? Array.from({ length: 6 }) : m.slice(0, 6), d = (l) => {
|
|
1784
1784
|
i({
|
|
1785
1785
|
element: "top_juegos_card",
|
|
1786
1786
|
label: `${r} - OraculoSeccionTopJuegos - Open game: ${String(l.machine || "unknown")}`,
|
|
@@ -1795,8 +1795,8 @@ function Xa({
|
|
|
1795
1795
|
section: "OraculoSeccionTopJuegos"
|
|
1796
1796
|
}
|
|
1797
1797
|
});
|
|
1798
|
-
const
|
|
1799
|
-
|
|
1798
|
+
const c = pe("showIframe"), g = pe("loadMachine");
|
|
1799
|
+
c == null || c(), requestAnimationFrame(() => {
|
|
1800
1800
|
g == null || g(l, !1, "CASINO");
|
|
1801
1801
|
});
|
|
1802
1802
|
};
|
|
@@ -1815,19 +1815,19 @@ function Xa({
|
|
|
1815
1815
|
justifyItems: "center",
|
|
1816
1816
|
width: "100%"
|
|
1817
1817
|
},
|
|
1818
|
-
children: f.map((l,
|
|
1818
|
+
children: f.map((l, c) => {
|
|
1819
1819
|
var g, b;
|
|
1820
1820
|
return /* @__PURE__ */ t(
|
|
1821
1821
|
va,
|
|
1822
1822
|
{
|
|
1823
1823
|
imageUrl: p ? "" : l.background ? `https://olimpo.bet${l.background}` : `https://olimpo.bet${(g = l.logo) != null ? g : ""}`,
|
|
1824
|
-
orden: p ?
|
|
1824
|
+
orden: p ? c + 1 : l.orden,
|
|
1825
1825
|
loading: p,
|
|
1826
1826
|
onClick: p ? void 0 : () => {
|
|
1827
|
-
o == null || o(l),
|
|
1827
|
+
o == null || o(l), d(l);
|
|
1828
1828
|
}
|
|
1829
1829
|
},
|
|
1830
|
-
p ? `sk-${
|
|
1830
|
+
p ? `sk-${c}` : (b = l.machine) != null ? b : `${c}`
|
|
1831
1831
|
);
|
|
1832
1832
|
})
|
|
1833
1833
|
}
|
|
@@ -1835,7 +1835,7 @@ function Xa({
|
|
|
1835
1835
|
] }) });
|
|
1836
1836
|
}
|
|
1837
1837
|
const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommendations", Ya = (e, a) => {
|
|
1838
|
-
var n, o, i, r, s, m, p, f,
|
|
1838
|
+
var n, o, i, r, s, m, p, f, d, l, c, g, b, C;
|
|
1839
1839
|
return {
|
|
1840
1840
|
orden: Number(a),
|
|
1841
1841
|
machine: String(
|
|
@@ -1848,9 +1848,9 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1848
1848
|
sub_provider: (m = e.service) != null ? m : "",
|
|
1849
1849
|
external_id: (p = e.external_id) != null ? p : "",
|
|
1850
1850
|
type: (f = e.game_type) != null ? f : "",
|
|
1851
|
-
tags: (
|
|
1851
|
+
tags: (d = e.tags) != null ? d : "",
|
|
1852
1852
|
lobby_tag: (l = e.lobby_tag) != null ? l : null,
|
|
1853
|
-
background: (
|
|
1853
|
+
background: (c = e.background) != null ? c : "",
|
|
1854
1854
|
rtp: (g = e.rtp) != null ? g : null,
|
|
1855
1855
|
demo_allowed: (b = e.demo_allowed) != null ? b : !1,
|
|
1856
1856
|
gaming_session_required: (C = e.gaming_session_required) != null ? C : !1
|
|
@@ -1885,13 +1885,13 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1885
1885
|
}
|
|
1886
1886
|
s(!0);
|
|
1887
1887
|
try {
|
|
1888
|
-
const f = await tn(n),
|
|
1889
|
-
if (!
|
|
1888
|
+
const f = await tn(n), d = Qa(f);
|
|
1889
|
+
if (!d.length) {
|
|
1890
1890
|
m || i([]);
|
|
1891
1891
|
return;
|
|
1892
1892
|
}
|
|
1893
1893
|
const l = await Promise.allSettled(
|
|
1894
|
-
|
|
1894
|
+
d.map(async (g, b) => {
|
|
1895
1895
|
const C = await fetch(
|
|
1896
1896
|
`https://api.mktolimpo.com/api/machine/${g}`
|
|
1897
1897
|
);
|
|
@@ -1902,10 +1902,10 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1902
1902
|
})
|
|
1903
1903
|
);
|
|
1904
1904
|
if (m) return;
|
|
1905
|
-
const
|
|
1905
|
+
const c = l.filter(
|
|
1906
1906
|
(g) => g.status === "fulfilled"
|
|
1907
1907
|
).map((g) => g.value);
|
|
1908
|
-
i(
|
|
1908
|
+
i(c);
|
|
1909
1909
|
} catch (f) {
|
|
1910
1910
|
console.error(`[usePersonalizeGameItems:${n}] error:`, f), m || i([]);
|
|
1911
1911
|
} finally {
|
|
@@ -1942,13 +1942,13 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1942
1942
|
className: m,
|
|
1943
1943
|
isPersonalize: p = !1
|
|
1944
1944
|
}) => {
|
|
1945
|
-
const f = ae(),
|
|
1945
|
+
const f = ae(), d = ne(), l = se(), c = sn(p), { resolvedItems: g } = on(
|
|
1946
1946
|
e,
|
|
1947
|
-
|
|
1948
|
-
), b =
|
|
1947
|
+
c
|
|
1948
|
+
), b = c ? g : Array.isArray(e) ? e : [], C = (x) => {
|
|
1949
1949
|
f({
|
|
1950
1950
|
element: "live_casino_card",
|
|
1951
|
-
label: `${
|
|
1951
|
+
label: `${d} - OraculoSeccionCasinoEnVivo${c ? " - personalize" : ""} - Open game: ${String(x.machine || "unknown")}`,
|
|
1952
1952
|
target: String(x.machine || "unknown"),
|
|
1953
1953
|
event_type: "click",
|
|
1954
1954
|
module_id: l,
|
|
@@ -1979,7 +1979,7 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1979
1979
|
}, M = () => {
|
|
1980
1980
|
f({
|
|
1981
1981
|
element: "casino_en_vivo_view_more",
|
|
1982
|
-
label: `${
|
|
1982
|
+
label: `${d} - OraculoSeccionCasinoEnVivo${c ? " - personalize" : ""} - Ver más`,
|
|
1983
1983
|
target: "https://www.olimpo.bet/casino-en-vivo",
|
|
1984
1984
|
event_type: "click",
|
|
1985
1985
|
module_id: l,
|
|
@@ -2175,7 +2175,7 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2175
2175
|
gridSize: s = 1,
|
|
2176
2176
|
isPersonalize: m = !1
|
|
2177
2177
|
}) => {
|
|
2178
|
-
const p = ae(), f = ne(),
|
|
2178
|
+
const p = ae(), f = ne(), d = se(), l = V(null), [c, g] = K({ isStart: !0, isEnd: !1 }), b = cn(m), { resolvedItems: C, loading: M } = an(
|
|
2179
2179
|
e,
|
|
2180
2180
|
b
|
|
2181
2181
|
), x = b ? C : Array.isArray(e) ? e : [], y = () => {
|
|
@@ -2185,7 +2185,7 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2185
2185
|
label: `${f} - OraculoSeccionCasino ${m ? " - personalize" : ""} - Anterior`,
|
|
2186
2186
|
target: "prev",
|
|
2187
2187
|
event_type: "click",
|
|
2188
|
-
module_id:
|
|
2188
|
+
module_id: d,
|
|
2189
2189
|
metadata: {
|
|
2190
2190
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2191
2191
|
},
|
|
@@ -2198,7 +2198,7 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2198
2198
|
label: `${f} - OraculoSeccionCasino ${m ? " - personalize" : ""} - Siguiente`,
|
|
2199
2199
|
target: "next",
|
|
2200
2200
|
event_type: "click",
|
|
2201
|
-
module_id:
|
|
2201
|
+
module_id: d,
|
|
2202
2202
|
metadata: {
|
|
2203
2203
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2204
2204
|
},
|
|
@@ -2210,7 +2210,7 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2210
2210
|
label: `${f} - OraculoSeccionCasino ${m ? " - personalize" : ""} - Ver más`,
|
|
2211
2211
|
target: "https://www.olimpo.bet/casino",
|
|
2212
2212
|
event_type: "click",
|
|
2213
|
-
module_id:
|
|
2213
|
+
module_id: d,
|
|
2214
2214
|
metadata: {
|
|
2215
2215
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2216
2216
|
},
|
|
@@ -2253,7 +2253,7 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2253
2253
|
iconOnly: !0,
|
|
2254
2254
|
leftIcon: /* @__PURE__ */ t(rt, {}),
|
|
2255
2255
|
onClick: y,
|
|
2256
|
-
disabled:
|
|
2256
|
+
disabled: c.isStart
|
|
2257
2257
|
}
|
|
2258
2258
|
),
|
|
2259
2259
|
/* @__PURE__ */ t(
|
|
@@ -2264,7 +2264,7 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2264
2264
|
iconOnly: !0,
|
|
2265
2265
|
rightIcon: /* @__PURE__ */ t(st, {}),
|
|
2266
2266
|
onClick: $,
|
|
2267
|
-
disabled:
|
|
2267
|
+
disabled: c.isEnd
|
|
2268
2268
|
}
|
|
2269
2269
|
)
|
|
2270
2270
|
] }),
|
|
@@ -2316,7 +2316,7 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2316
2316
|
label: `${f} - OraculoSeccionCasino ${m ? " - personalize" : ""} - Game: ${String(O.machine || "unknown")}`,
|
|
2317
2317
|
target: String(O.machine || "unknown"),
|
|
2318
2318
|
event_type: "click",
|
|
2319
|
-
module_id:
|
|
2319
|
+
module_id: d,
|
|
2320
2320
|
metadata: {
|
|
2321
2321
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2322
2322
|
},
|
|
@@ -2400,14 +2400,14 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2400
2400
|
gridSize: s = 1,
|
|
2401
2401
|
isPersonalize: m = !1
|
|
2402
2402
|
}) => {
|
|
2403
|
-
const p = V(null), [f,
|
|
2403
|
+
const p = V(null), [f, d] = K({ isStart: !0, isEnd: !1 }), l = ae(), c = ne(), g = se(), b = mn(m), { resolvedItems: C, loading: M } = nn(
|
|
2404
2404
|
e,
|
|
2405
2405
|
b
|
|
2406
2406
|
), x = b ? C : Array.isArray(e) ? e : [], y = () => {
|
|
2407
2407
|
var B;
|
|
2408
2408
|
l({
|
|
2409
2409
|
element: "virtuales_prev",
|
|
2410
|
-
label: `${
|
|
2410
|
+
label: `${c} - OraculoSeccionVirtuales${b ? " - personalize" : ""} - Anterior`,
|
|
2411
2411
|
target: "prev",
|
|
2412
2412
|
event_type: "click",
|
|
2413
2413
|
module_id: g,
|
|
@@ -2420,7 +2420,7 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2420
2420
|
var B;
|
|
2421
2421
|
l({
|
|
2422
2422
|
element: "virtuales_next",
|
|
2423
|
-
label: `${
|
|
2423
|
+
label: `${c} - OraculoSeccionVirtuales${b ? " - personalize" : ""} - Siguiente`,
|
|
2424
2424
|
target: "next",
|
|
2425
2425
|
event_type: "click",
|
|
2426
2426
|
module_id: g,
|
|
@@ -2432,7 +2432,7 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2432
2432
|
}, D = () => {
|
|
2433
2433
|
if (l({
|
|
2434
2434
|
element: "virtuales_view_more",
|
|
2435
|
-
label: `${
|
|
2435
|
+
label: `${c} - OraculoSeccionVirtuales${b ? " - personalize" : ""} - Ver más`,
|
|
2436
2436
|
target: "https://www.olimpo.bet/juegos-virtuales",
|
|
2437
2437
|
event_type: "click",
|
|
2438
2438
|
module_id: g,
|
|
@@ -2538,7 +2538,7 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2538
2538
|
}
|
|
2539
2539
|
o == null || o(_), l({
|
|
2540
2540
|
element: "virtuales_game_card",
|
|
2541
|
-
label: `${
|
|
2541
|
+
label: `${c} - OraculoSeccionVirtuales${b ? " - personalize" : ""} - Game: ${String(_.machine || "unknown")}`,
|
|
2542
2542
|
target: String(_.machine || "unknown"),
|
|
2543
2543
|
event_type: "click",
|
|
2544
2544
|
module_id: g,
|
|
@@ -2559,7 +2559,7 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2559
2559
|
}
|
|
2560
2560
|
}
|
|
2561
2561
|
) }),
|
|
2562
|
-
onMove: ({ isStart: B, isEnd: T }) =>
|
|
2562
|
+
onMove: ({ isStart: B, isEnd: T }) => d({ isStart: B, isEnd: T })
|
|
2563
2563
|
}
|
|
2564
2564
|
)
|
|
2565
2565
|
] }) });
|
|
@@ -2601,10 +2601,10 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2601
2601
|
items: n,
|
|
2602
2602
|
backgroundImageUrl: o
|
|
2603
2603
|
}) => {
|
|
2604
|
-
const i = ae(), r = ne(), s = xe("(max-width: 767px)"), m = n.length > 1, p = V(null), f = V(null),
|
|
2604
|
+
const i = ae(), r = ne(), s = xe("(max-width: 767px)"), m = n.length > 1, p = V(null), f = V(null), d = V(!1), l = V(!1), [c, g] = K(0), [b, C] = K({ isStart: !0, isEnd: !1 });
|
|
2605
2605
|
Q(() => {
|
|
2606
2606
|
const _ = setTimeout(() => {
|
|
2607
|
-
|
|
2607
|
+
d.current = !0;
|
|
2608
2608
|
}, 500);
|
|
2609
2609
|
return () => clearTimeout(_);
|
|
2610
2610
|
}, []);
|
|
@@ -2612,7 +2612,7 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2612
2612
|
Q(() => {
|
|
2613
2613
|
M.current = b;
|
|
2614
2614
|
}, [b]);
|
|
2615
|
-
const x = V(!1), y = V(null), $ = n == null ? void 0 : n[
|
|
2615
|
+
const x = V(!1), y = V(null), $ = n == null ? void 0 : n[c], D = re(
|
|
2616
2616
|
() => {
|
|
2617
2617
|
var _, O;
|
|
2618
2618
|
return (O = (_ = $ == null ? void 0 : $.backgroundImageUrl) != null ? _ : o) != null ? O : "";
|
|
@@ -2636,7 +2636,7 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2636
2636
|
}
|
|
2637
2637
|
}), _.onButtonClick && _.onButtonClick();
|
|
2638
2638
|
}, B = (_) => {
|
|
2639
|
-
if (!
|
|
2639
|
+
if (!d.current) return;
|
|
2640
2640
|
if (l.current) {
|
|
2641
2641
|
l.current = !1;
|
|
2642
2642
|
return;
|
|
@@ -2767,7 +2767,7 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2767
2767
|
lt,
|
|
2768
2768
|
{
|
|
2769
2769
|
total: n.length,
|
|
2770
|
-
active:
|
|
2770
|
+
active: c,
|
|
2771
2771
|
onSelect: (_) => {
|
|
2772
2772
|
var O;
|
|
2773
2773
|
i({
|
|
@@ -2798,7 +2798,7 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2798
2798
|
}) => {
|
|
2799
2799
|
const r = V(null), s = V(null), m = ae(), p = ne(), f = se();
|
|
2800
2800
|
if (!n) return null;
|
|
2801
|
-
const
|
|
2801
|
+
const d = () => {
|
|
2802
2802
|
m({
|
|
2803
2803
|
element: "club_olimpo_button",
|
|
2804
2804
|
label: `${p} - OraculoSeccionClubOlimpo - Click: Club Olimpo`,
|
|
@@ -2821,7 +2821,7 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2821
2821
|
}, M = new ResizeObserver(C);
|
|
2822
2822
|
return M.observe(b), C(), () => M.disconnect();
|
|
2823
2823
|
}, []);
|
|
2824
|
-
const
|
|
2824
|
+
const c = [
|
|
2825
2825
|
"orc-co-wrap",
|
|
2826
2826
|
a ? "orc-co-fullBleed" : "",
|
|
2827
2827
|
e
|
|
@@ -2830,13 +2830,13 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2830
2830
|
"section",
|
|
2831
2831
|
{
|
|
2832
2832
|
ref: r,
|
|
2833
|
-
className:
|
|
2833
|
+
className: c,
|
|
2834
2834
|
"aria-label": i || l.imgAlt || "Club Olimpo",
|
|
2835
2835
|
children: /* @__PURE__ */ t("div", { ref: s, children: /* @__PURE__ */ t(
|
|
2836
2836
|
ya,
|
|
2837
2837
|
{
|
|
2838
2838
|
text: l.text,
|
|
2839
|
-
onClick:
|
|
2839
|
+
onClick: d,
|
|
2840
2840
|
imgAlt: l.imgAlt,
|
|
2841
2841
|
buttonLabel: l.buttonLabel,
|
|
2842
2842
|
imgSrcMobile: l.imgMobile,
|
|
@@ -2858,16 +2858,16 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2858
2858
|
};
|
|
2859
2859
|
function wn(e, a, n) {
|
|
2860
2860
|
return n ? n.map((o) => {
|
|
2861
|
-
var
|
|
2862
|
-
const i = o.prePackCouponRows.flatMap((
|
|
2863
|
-
for (const
|
|
2864
|
-
if (!r.has(
|
|
2865
|
-
const g =
|
|
2866
|
-
g.length && ((l = p[
|
|
2861
|
+
var d, l;
|
|
2862
|
+
const i = o.prePackCouponRows.flatMap((c) => xn(c).map((g) => ({ eventId: c.eventId, outcomeId: g }))), r = new Set(i.map((c) => c.eventId)), s = new Set(i.map((c) => c.outcomeId)), m = new Map(i.map((c, g) => [c.outcomeId, g])), p = {};
|
|
2863
|
+
for (const c of a) {
|
|
2864
|
+
if (!r.has(c.eventId)) continue;
|
|
2865
|
+
const g = c.outcomes.filter((b) => s.has(b.id)).map((b) => ({ ...b, position: m.get(b.id) }));
|
|
2866
|
+
g.length && ((l = p[d = c.eventId]) != null || (p[d] = []), p[c.eventId].push({ ...c, outcomes: g }));
|
|
2867
2867
|
}
|
|
2868
|
-
const f = e.filter((
|
|
2868
|
+
const f = e.filter((c) => r.has(c.id)).map((c) => {
|
|
2869
2869
|
var g;
|
|
2870
|
-
return { ...
|
|
2870
|
+
return { ...c, betoffers: (g = p[c.id]) != null ? g : [] };
|
|
2871
2871
|
});
|
|
2872
2872
|
return {
|
|
2873
2873
|
couponId: o.id,
|
|
@@ -2894,7 +2894,7 @@ function Cn({
|
|
|
2894
2894
|
onViewMore: o,
|
|
2895
2895
|
className: i = ""
|
|
2896
2896
|
}) {
|
|
2897
|
-
const r = ae(), s = ne(), m = se(), p = V(null), [f,
|
|
2897
|
+
const r = ae(), s = ne(), m = se(), p = V(null), [f, d] = K({ isStart: !0, isEnd: !1 }), [l, c] = K([]), g = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group/prepackcoupon.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764284658793&prePackCouponTags=CUSTOM", b = () => {
|
|
2898
2898
|
var I;
|
|
2899
2899
|
r({
|
|
2900
2900
|
element: "evento_combinadas_prev",
|
|
@@ -2939,7 +2939,7 @@ function Cn({
|
|
|
2939
2939
|
return;
|
|
2940
2940
|
}
|
|
2941
2941
|
const O = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${_}.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764283566783&prePackCouponTags=CUSTOM`, A = await (await fetch(O)).json();
|
|
2942
|
-
|
|
2942
|
+
c(wn(A.events, A.betOffers, A.prePackCoupons));
|
|
2943
2943
|
} catch (B) {
|
|
2944
2944
|
console.error("loadDataEventSpecial error:", B);
|
|
2945
2945
|
}
|
|
@@ -2999,7 +2999,7 @@ function Cn({
|
|
|
2999
2999
|
768: { perPage: 1.2, gap: "12px", padding: { left: "24px", right: "24px" } }
|
|
3000
3000
|
},
|
|
3001
3001
|
renderItem: (I) => /* @__PURE__ */ t(In, { coupon: I }),
|
|
3002
|
-
onMove: ({ isStart: I, isEnd: E }) =>
|
|
3002
|
+
onMove: ({ isStart: I, isEnd: E }) => d({ isStart: I, isEnd: E })
|
|
3003
3003
|
}
|
|
3004
3004
|
)
|
|
3005
3005
|
] }) });
|
|
@@ -3054,15 +3054,15 @@ function yt({
|
|
|
3054
3054
|
buffer: o = 2,
|
|
3055
3055
|
debounceMs: i = 250
|
|
3056
3056
|
}) {
|
|
3057
|
-
const [r, s] = K({}), m = V(/* @__PURE__ */ new Set()), p = V(0), f = V(null),
|
|
3057
|
+
const [r, s] = K({}), m = V(/* @__PURE__ */ new Set()), p = V(0), f = V(null), d = V(null);
|
|
3058
3058
|
return Q(() => {
|
|
3059
3059
|
if (!(!e || e.length === 0))
|
|
3060
3060
|
return f.current && clearTimeout(f.current), f.current = setTimeout(() => {
|
|
3061
3061
|
var D, I;
|
|
3062
|
-
const l = (D = a.start) != null ? D : 0,
|
|
3062
|
+
const l = (D = a.start) != null ? D : 0, c = (I = a.end) != null ? I : 7, g = Math.max(0, l - o), b = Math.min(e.length - 1, c + o);
|
|
3063
3063
|
let C = g, M = b;
|
|
3064
|
-
const x =
|
|
3065
|
-
x && (g > x.end && (C = x.end + 1), b < x.start && (M = x.start - 1)),
|
|
3064
|
+
const x = d.current;
|
|
3065
|
+
x && (g > x.end && (C = x.end + 1), b < x.start && (M = x.start - 1)), d.current = { start: g, end: b };
|
|
3066
3066
|
const y = e.slice(C, M + 1).map((E) => E == null ? void 0 : E.id).filter((E) => !!E).filter((E) => !m.current.has(E)).filter((E) => !(E in r));
|
|
3067
3067
|
if (y.length === 0) return;
|
|
3068
3068
|
y.forEach((E) => m.current.add(E));
|
|
@@ -3111,10 +3111,11 @@ function yt({
|
|
|
3111
3111
|
const Nn = (e) => {
|
|
3112
3112
|
const a = ["esports", "cyber"];
|
|
3113
3113
|
return e.filter((n) => {
|
|
3114
|
-
var
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3114
|
+
var r, s;
|
|
3115
|
+
const o = (r = n == null ? void 0 : n.event) == null ? void 0 : r.sport;
|
|
3116
|
+
if (typeof o != "string" || o !== "FOOTBALL") return !1;
|
|
3117
|
+
const i = typeof ((s = n == null ? void 0 : n.event) == null ? void 0 : s.group) == "string" ? n.event.group.toLowerCase() : "";
|
|
3118
|
+
return !a.some((m) => i.includes(m));
|
|
3118
3119
|
});
|
|
3119
3120
|
}, Mn = fe.memo(Fa);
|
|
3120
3121
|
function Bn({
|
|
@@ -3124,7 +3125,7 @@ function Bn({
|
|
|
3124
3125
|
onViewMore: o,
|
|
3125
3126
|
className: i = ""
|
|
3126
3127
|
}) {
|
|
3127
|
-
const r = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football/all/all/all/in-play.json?channel_id=3&channel_id=3&client_id=200&client_id=200&competitionId=undefined&lang=es_PE&lang=es_PE&market=PE&market=PE&useCombined=true&useCombinedLive=true", s = V(null), [m, p] = K({ isStart: !0, isEnd: !1 }), [f,
|
|
3128
|
+
const r = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football/all/all/all/in-play.json?channel_id=3&channel_id=3&client_id=200&client_id=200&competitionId=undefined&lang=es_PE&lang=es_PE&market=PE&market=PE&useCombined=true&useCombinedLive=true", s = V(null), [m, p] = K({ isStart: !0, isEnd: !1 }), [f, d] = K(null), [l, c] = K({ start: null, end: null }), [g, b] = K(null), C = V(!1), M = ae(), x = ne(), y = se(), $ = V(/* @__PURE__ */ new Map()), D = () => {
|
|
3128
3129
|
var A;
|
|
3129
3130
|
M({
|
|
3130
3131
|
element: "evento_en_vivo_prev",
|
|
@@ -3169,7 +3170,7 @@ function Bn({
|
|
|
3169
3170
|
C.current = !0;
|
|
3170
3171
|
try {
|
|
3171
3172
|
const W = await (await fetch("https://api.mktolimpo.com/api/kambi/eventos/orden")).json(), G = ((A = W == null ? void 0 : W.data) == null ? void 0 : A.event_ids) || [], J = /* @__PURE__ */ new Map();
|
|
3172
|
-
G.forEach((ee,
|
|
3173
|
+
G.forEach((ee, u) => J.set(String(ee), u)), $.current = J;
|
|
3173
3174
|
} catch (U) {
|
|
3174
3175
|
console.error("Order fetch failed, using default sorting", U);
|
|
3175
3176
|
}
|
|
@@ -3178,13 +3179,13 @@ function Bn({
|
|
|
3178
3179
|
if (!R.ok) throw new Error("Failed to fetch live events");
|
|
3179
3180
|
const v = await R.json(), F = Nn(v.events);
|
|
3180
3181
|
if ($.current.size === 0)
|
|
3181
|
-
|
|
3182
|
+
d(F);
|
|
3182
3183
|
else {
|
|
3183
3184
|
const U = [...F].sort((W, G) => {
|
|
3184
3185
|
const J = $.current.get(String(W.event.id)), ee = $.current.get(String(G.event.id));
|
|
3185
3186
|
return (J !== void 0 ? J : 1 / 0) - (ee !== void 0 ? ee : 1 / 0);
|
|
3186
3187
|
});
|
|
3187
|
-
|
|
3188
|
+
d(U);
|
|
3188
3189
|
}
|
|
3189
3190
|
} catch (R) {
|
|
3190
3191
|
console.error("LoadData Error:", R);
|
|
@@ -3204,11 +3205,8 @@ function Bn({
|
|
|
3204
3205
|
// same as your previous BUFFER
|
|
3205
3206
|
debounceMs: 300
|
|
3206
3207
|
// same as your previous debouncedVisibleRange
|
|
3207
|
-
}), T = i || void 0, _ = f === null;
|
|
3208
|
-
|
|
3209
|
-
return null;
|
|
3210
|
-
const O = re(() => _ ? Array(4).fill({}) : (f == null ? void 0 : f.slice(0, 20)) || [], [_, f]), L = xe("(max-width:950px)");
|
|
3211
|
-
return /* @__PURE__ */ t("section", { className: T, style: {
|
|
3208
|
+
}), T = i || void 0, _ = f === null, O = re(() => _ ? Array(4).fill({}) : (f == null ? void 0 : f.slice(0, 20)) || [], [_, f]), L = xe("(max-width:950px)");
|
|
3209
|
+
return !_ && f.length === 0 ? null : /* @__PURE__ */ t("section", { className: T, style: {
|
|
3212
3210
|
// paddingLeft: 16,
|
|
3213
3211
|
// paddingRight: 16,
|
|
3214
3212
|
width: "100%",
|
|
@@ -3273,7 +3271,7 @@ function Bn({
|
|
|
3273
3271
|
onMove: ({ isStart: A, isEnd: R, visibleStart: v, visibleEnd: F }) => {
|
|
3274
3272
|
p(
|
|
3275
3273
|
(U) => U.isStart === A && U.isEnd === R ? U : { isStart: A, isEnd: R }
|
|
3276
|
-
),
|
|
3274
|
+
), c({ start: v, end: F });
|
|
3277
3275
|
}
|
|
3278
3276
|
}
|
|
3279
3277
|
)
|
|
@@ -3355,7 +3353,7 @@ function Wn({
|
|
|
3355
3353
|
onViewMore: o,
|
|
3356
3354
|
className: i = ""
|
|
3357
3355
|
}) {
|
|
3358
|
-
const r = ae(), s = ne(), m = se(), p = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE", f = V(null), [
|
|
3356
|
+
const r = ae(), s = ne(), m = se(), p = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE", f = V(null), [d, l] = K({ isStart: !0, isEnd: !1 }), [c, g] = K(null), [b, C] = K({ start: null, end: null }), M = "channel_id=1&client_id=200&competitionId=undefined&lang=es_PE&market=PE&useCombined=true", x = () => {
|
|
3359
3357
|
r({
|
|
3360
3358
|
element: "evento_semana_view_more",
|
|
3361
3359
|
label: `${s} - OraculoSeccionEventoSemana - Ver más`,
|
|
@@ -3386,7 +3384,7 @@ function Wn({
|
|
|
3386
3384
|
}
|
|
3387
3385
|
try {
|
|
3388
3386
|
const F = (await (await fetch(p, { signal: T })).json()).group.groups.find(
|
|
3389
|
-
(
|
|
3387
|
+
(u) => u.englishName === "Football"
|
|
3390
3388
|
);
|
|
3391
3389
|
if (!F || !Array.isArray(F.groups)) {
|
|
3392
3390
|
console.error("Football groups not found");
|
|
@@ -3394,24 +3392,24 @@ function Wn({
|
|
|
3394
3392
|
}
|
|
3395
3393
|
let U = [...F.groups];
|
|
3396
3394
|
if (_.length > 0) {
|
|
3397
|
-
const
|
|
3395
|
+
const u = new Map(
|
|
3398
3396
|
_.map((S, k) => [S, k])
|
|
3399
3397
|
);
|
|
3400
3398
|
U.sort((S, k) => {
|
|
3401
|
-
const N =
|
|
3399
|
+
const N = u.get(String(S.id)), z = u.get(String(k.id));
|
|
3402
3400
|
return N !== void 0 && z !== void 0 ? N - z : N !== void 0 ? -1 : z !== void 0 ? 1 : 0;
|
|
3403
3401
|
});
|
|
3404
3402
|
}
|
|
3405
|
-
const G = U.slice(0, 5), J = (
|
|
3403
|
+
const G = U.slice(0, 5), J = (u) => {
|
|
3406
3404
|
const S = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football";
|
|
3407
|
-
if (
|
|
3408
|
-
const k =
|
|
3405
|
+
if (u.groups && u.groups.length > 0) {
|
|
3406
|
+
const k = u.groups[0];
|
|
3409
3407
|
return [
|
|
3410
|
-
`${S}/${
|
|
3408
|
+
`${S}/${u.termKey}/${k.termKey}/all/matches.json?${M}`
|
|
3411
3409
|
];
|
|
3412
3410
|
}
|
|
3413
3411
|
return [
|
|
3414
|
-
`${S}/${
|
|
3412
|
+
`${S}/${u.termKey}/all/all/matches.json?${M}`
|
|
3415
3413
|
];
|
|
3416
3414
|
}, ee = G.flatMap(J);
|
|
3417
3415
|
$(ee, O, T);
|
|
@@ -3438,8 +3436,8 @@ function Wn({
|
|
|
3438
3436
|
])
|
|
3439
3437
|
);
|
|
3440
3438
|
U = [...F].sort((G, J) => {
|
|
3441
|
-
const ee = W.get(String(G.id)),
|
|
3442
|
-
return ee !== void 0 &&
|
|
3439
|
+
const ee = W.get(String(G.id)), u = W.get(String(J.id));
|
|
3440
|
+
return ee !== void 0 && u !== void 0 ? ee - u : ee !== void 0 ? -1 : u !== void 0 ? 1 : 0;
|
|
3443
3441
|
});
|
|
3444
3442
|
}
|
|
3445
3443
|
if (O.aborted) return;
|
|
@@ -3460,13 +3458,13 @@ function Wn({
|
|
|
3460
3458
|
width: "100%",
|
|
3461
3459
|
boxSizing: "border-box"
|
|
3462
3460
|
}, { jerseys: E } = yt({
|
|
3463
|
-
events:
|
|
3461
|
+
events: c,
|
|
3464
3462
|
visibleRange: b,
|
|
3465
3463
|
fetchJerseys: pt,
|
|
3466
3464
|
buffer: 2,
|
|
3467
3465
|
debounceMs: 250
|
|
3468
|
-
}), w =
|
|
3469
|
-
return !w &&
|
|
3466
|
+
}), w = c === null, B = xe("(max-width:950px)");
|
|
3467
|
+
return !w && c.length === 0 ? null : /* @__PURE__ */ t("section", { className: D, style: I, children: /* @__PURE__ */ h("div", { className: `${Ie.wrapper} ${Ie.padding}`, children: [
|
|
3470
3468
|
/* @__PURE__ */ t("div", { className: Ie.container, children: /* @__PURE__ */ h(H, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
3471
3469
|
/* @__PURE__ */ t(ge, { title: "Eventos de la semana" }),
|
|
3472
3470
|
/* @__PURE__ */ t("div", { className: Ie.buttonWrapper, children: /* @__PURE__ */ t(
|
|
@@ -3486,7 +3484,7 @@ function Wn({
|
|
|
3486
3484
|
he,
|
|
3487
3485
|
{
|
|
3488
3486
|
ref: f,
|
|
3489
|
-
items: w ? Array(6).fill({}) :
|
|
3487
|
+
items: w ? Array(6).fill({}) : c.slice(0, 20),
|
|
3490
3488
|
perPage: 3.5,
|
|
3491
3489
|
gap: "16px",
|
|
3492
3490
|
enableHorizontalWheel: !0,
|
|
@@ -3534,7 +3532,7 @@ function Gn({
|
|
|
3534
3532
|
hideItems: n
|
|
3535
3533
|
}) {
|
|
3536
3534
|
var L, A, R;
|
|
3537
|
-
const [o, i] = K(0), r = ae(), s = ne(), m = se(), p = V(null), f = V(!1),
|
|
3535
|
+
const [o, i] = K(0), r = ae(), s = ne(), m = se(), p = V(null), f = V(!1), d = V(!1), l = (e == null ? void 0 : e.length) || 1, c = !e || e.length === 0, g = !c && ((L = e == null ? void 0 : e.length) != null ? L : 0) > 1, b = !n && ((A = a == null ? void 0 : a.length) != null ? A : 0) > 0;
|
|
3538
3536
|
De("(max-width:950px)");
|
|
3539
3537
|
const C = "#B5B5B5", M = {
|
|
3540
3538
|
position: "absolute",
|
|
@@ -3615,12 +3613,12 @@ function Gn({
|
|
|
3615
3613
|
return;
|
|
3616
3614
|
}
|
|
3617
3615
|
v.href && typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(v.href);
|
|
3618
|
-
}, D = 5e3, I = V(null), E = !
|
|
3616
|
+
}, D = 5e3, I = V(null), E = !c && ((R = e == null ? void 0 : e.length) != null ? R : 0) > 1, w = () => {
|
|
3619
3617
|
I.current != null && (window.clearTimeout(I.current), I.current = null);
|
|
3620
3618
|
}, B = () => {
|
|
3621
3619
|
w(), E && (I.current = window.setTimeout(() => {
|
|
3622
3620
|
var v;
|
|
3623
|
-
|
|
3621
|
+
d.current = !0, (v = p.current) == null || v.next();
|
|
3624
3622
|
}, D));
|
|
3625
3623
|
};
|
|
3626
3624
|
Q(() => (B(), () => w()), [E, D]);
|
|
@@ -3656,7 +3654,8 @@ function Gn({
|
|
|
3656
3654
|
component: "section",
|
|
3657
3655
|
sx: {
|
|
3658
3656
|
position: "relative",
|
|
3659
|
-
overflow: "visible"
|
|
3657
|
+
overflow: "visible",
|
|
3658
|
+
pb: b ? { xs: "40px", sm: 0 } : 0
|
|
3660
3659
|
},
|
|
3661
3660
|
children: [
|
|
3662
3661
|
/* @__PURE__ */ h(
|
|
@@ -3673,9 +3672,6 @@ function Gn({
|
|
|
3673
3672
|
"@media (min-width: 950px)": {
|
|
3674
3673
|
aspectRatio: "1920 / 460"
|
|
3675
3674
|
}
|
|
3676
|
-
// "@media (min-width: 768px) and (max-width: 1024px)": {
|
|
3677
|
-
// aspectRatio: "540 / 300",
|
|
3678
|
-
// },
|
|
3679
3675
|
},
|
|
3680
3676
|
children: [
|
|
3681
3677
|
/* @__PURE__ */ t(
|
|
@@ -3698,8 +3694,8 @@ function Gn({
|
|
|
3698
3694
|
onMove: ({ index: v }) => {
|
|
3699
3695
|
const F = (v % l + l) % l;
|
|
3700
3696
|
i(F);
|
|
3701
|
-
const U =
|
|
3702
|
-
|
|
3697
|
+
const U = d.current;
|
|
3698
|
+
d.current = !1, B(), U || O(v);
|
|
3703
3699
|
},
|
|
3704
3700
|
renderItem: (v, F) => {
|
|
3705
3701
|
var U, W, G;
|
|
@@ -3828,7 +3824,7 @@ function Gn({
|
|
|
3828
3824
|
{
|
|
3829
3825
|
sx: {
|
|
3830
3826
|
position: "absolute",
|
|
3831
|
-
bottom: { xs:
|
|
3827
|
+
bottom: { xs: 0, sm: 0 },
|
|
3832
3828
|
left: 120,
|
|
3833
3829
|
right: 120,
|
|
3834
3830
|
"@media (max-width:1024px)": { left: 24, right: 24 },
|
|
@@ -5327,16 +5323,16 @@ const nt = [
|
|
|
5327
5323
|
loader: r,
|
|
5328
5324
|
disableWrapper: s = !1
|
|
5329
5325
|
}) => {
|
|
5330
|
-
const m = re(() => Yn(i), [i]), p = r || m.loader, [f,
|
|
5326
|
+
const m = re(() => Yn(i), [i]), p = r || m.loader, [f, d] = K([]), [l, c] = K(!1), [g, b] = K({}), [C, M] = K({}), [x, y] = K({}), $ = De("(min-width:1024px)"), D = re(
|
|
5331
5327
|
() => Ce(qe),
|
|
5332
5328
|
[]
|
|
5333
|
-
), I = (
|
|
5334
|
-
(S) => S.id ===
|
|
5335
|
-
), E = (
|
|
5336
|
-
const
|
|
5337
|
-
return E(
|
|
5338
|
-
}, [m]), B = (
|
|
5339
|
-
const S =
|
|
5329
|
+
), I = (u) => D.find(
|
|
5330
|
+
(S) => S.id === u.id || S.componentKey === u.componentKey
|
|
5331
|
+
), E = (u) => Array.isArray(u) ? u.map((S) => Number(S)).filter((S) => !Number.isNaN(S)) : [], w = re(() => {
|
|
5332
|
+
const u = m.user;
|
|
5333
|
+
return E(u == null ? void 0 : u.groups);
|
|
5334
|
+
}, [m]), B = (u) => {
|
|
5335
|
+
const S = u.manualScalarFields;
|
|
5340
5336
|
if (!Array.isArray(S)) return [];
|
|
5341
5337
|
const k = S.find(
|
|
5342
5338
|
(P) => String((P == null ? void 0 : P.name) || "").trim().toLowerCase() === "groups"
|
|
@@ -5348,8 +5344,8 @@ const nt = [
|
|
|
5348
5344
|
return N.map((P) => Number(String(P).trim())).filter((P) => !Number.isNaN(P));
|
|
5349
5345
|
const z = String(N).trim();
|
|
5350
5346
|
return z ? z.split(",").map((P) => Number(P.trim())).filter((P) => !Number.isNaN(P)) : [];
|
|
5351
|
-
}, T = (
|
|
5352
|
-
const k = B(
|
|
5347
|
+
}, T = (u, S) => {
|
|
5348
|
+
const k = B(u);
|
|
5353
5349
|
if (k.length === 0) return !0;
|
|
5354
5350
|
if (!Array.isArray(S) || S.length === 0) return !1;
|
|
5355
5351
|
const N = new Set(S);
|
|
@@ -5358,55 +5354,55 @@ const nt = [
|
|
|
5358
5354
|
Q(() => {
|
|
5359
5355
|
if (e) return;
|
|
5360
5356
|
if (!o) {
|
|
5361
|
-
console.warn("[landing] sin db -> fallback json"),
|
|
5357
|
+
console.warn("[landing] sin db -> fallback json"), d(Ce(qe));
|
|
5362
5358
|
return;
|
|
5363
5359
|
}
|
|
5364
|
-
const
|
|
5365
|
-
console.warn("[landing] FALLBACK:", k, N != null ? N : ""),
|
|
5360
|
+
const u = (k, N) => {
|
|
5361
|
+
console.warn("[landing] FALLBACK:", k, N != null ? N : ""), d(Ce(qe)), c(!1);
|
|
5366
5362
|
};
|
|
5367
5363
|
if (process.env.NEXT_PUBLIC_LANDING_FORCE_FALLBACK === "1") {
|
|
5368
|
-
|
|
5364
|
+
c(!0), u("forzado por env");
|
|
5369
5365
|
return;
|
|
5370
5366
|
}
|
|
5371
|
-
|
|
5367
|
+
c(!0);
|
|
5372
5368
|
const S = Rt(
|
|
5373
5369
|
Lt(o, "landings", a),
|
|
5374
5370
|
(k) => {
|
|
5375
5371
|
try {
|
|
5376
5372
|
if (!k.exists()) {
|
|
5377
|
-
|
|
5373
|
+
u(`doc landings/${a} no existe`);
|
|
5378
5374
|
return;
|
|
5379
5375
|
}
|
|
5380
5376
|
const N = k.data(), z = Ce(N);
|
|
5381
5377
|
if (!z.length) {
|
|
5382
|
-
|
|
5378
|
+
u("JSON inválido o sin secciones normalizables", N);
|
|
5383
5379
|
return;
|
|
5384
5380
|
}
|
|
5385
|
-
console.log("[landing] Firestore OK (json grande):", N),
|
|
5381
|
+
console.log("[landing] Firestore OK (json grande):", N), d(z);
|
|
5386
5382
|
} catch (N) {
|
|
5387
|
-
|
|
5383
|
+
u("error procesando snapshot", N);
|
|
5388
5384
|
} finally {
|
|
5389
|
-
|
|
5385
|
+
c(!1);
|
|
5390
5386
|
}
|
|
5391
5387
|
},
|
|
5392
5388
|
(k) => {
|
|
5393
|
-
|
|
5389
|
+
u("error onSnapshot", k);
|
|
5394
5390
|
}
|
|
5395
5391
|
);
|
|
5396
5392
|
return () => S();
|
|
5397
5393
|
}, [e, a, o]), Q(() => (Ka(m), () => Za()), [m]), Q(() => {
|
|
5398
5394
|
(e ? e.slice() : f.slice()).map((k) => k.componentKey).filter((k) => !!k).length;
|
|
5399
5395
|
}, [e, f]);
|
|
5400
|
-
const _ = async (
|
|
5401
|
-
if (nt.includes(
|
|
5396
|
+
const _ = async (u) => {
|
|
5397
|
+
if (nt.includes(u.componentKey))
|
|
5402
5398
|
return {
|
|
5403
5399
|
items: [],
|
|
5404
5400
|
events: [],
|
|
5405
5401
|
data: {}
|
|
5406
5402
|
};
|
|
5407
|
-
const S = (
|
|
5403
|
+
const S = (u.apiUrl || "").trim();
|
|
5408
5404
|
if (!S) return;
|
|
5409
|
-
const k =
|
|
5405
|
+
const k = u.apiMethod || "GET", N = u.apiParams || [];
|
|
5410
5406
|
let z = S, P, Z;
|
|
5411
5407
|
if (k === "GET") {
|
|
5412
5408
|
const ie = new URL(
|
|
@@ -5436,9 +5432,9 @@ const nt = [
|
|
|
5436
5432
|
[e, f]
|
|
5437
5433
|
), L = fe.useRef(/* @__PURE__ */ new Set());
|
|
5438
5434
|
Q(() => {
|
|
5439
|
-
const
|
|
5440
|
-
if (
|
|
5441
|
-
for (const { s: S, url: k } of
|
|
5435
|
+
const u = O.map((S) => ({ s: S, url: (S.apiUrl || "").trim() })).filter(({ url: S }) => !!S);
|
|
5436
|
+
if (u.length)
|
|
5437
|
+
for (const { s: S, url: k } of u) {
|
|
5442
5438
|
const N = `${S.id}|${k}`;
|
|
5443
5439
|
L.current.has(N) || (L.current.add(N), M((z) => ({ ...z, [S.id]: !0 })), y((z) => ({ ...z, [S.id]: "" })), (async () => {
|
|
5444
5440
|
try {
|
|
@@ -5454,9 +5450,9 @@ const nt = [
|
|
|
5454
5450
|
}
|
|
5455
5451
|
}, [O]);
|
|
5456
5452
|
const A = re(
|
|
5457
|
-
() => O.filter((
|
|
5453
|
+
() => O.filter((u) => u.visible).filter((u) => T(u, w)).sort((u, S) => u.order - S.order),
|
|
5458
5454
|
[O, w]
|
|
5459
|
-
), R = (
|
|
5455
|
+
), R = (u) => Array.isArray(u) ? u.map((S) => {
|
|
5460
5456
|
const k = {};
|
|
5461
5457
|
for (const N of S.fields || []) {
|
|
5462
5458
|
const z = (N.type || "string").toLowerCase();
|
|
@@ -5481,10 +5477,10 @@ const nt = [
|
|
|
5481
5477
|
k[N.name] = N.value;
|
|
5482
5478
|
}
|
|
5483
5479
|
return k;
|
|
5484
|
-
}) : [], v = (
|
|
5480
|
+
}) : [], v = (u) => {
|
|
5485
5481
|
const S = {};
|
|
5486
|
-
if (!Array.isArray(
|
|
5487
|
-
for (const k of
|
|
5482
|
+
if (!Array.isArray(u)) return S;
|
|
5483
|
+
for (const k of u) {
|
|
5488
5484
|
if (!k.name) continue;
|
|
5489
5485
|
const N = (k.type || "string").toLowerCase();
|
|
5490
5486
|
if (N === "number") {
|
|
@@ -5508,11 +5504,11 @@ const nt = [
|
|
|
5508
5504
|
S[k.name] = k.value;
|
|
5509
5505
|
}
|
|
5510
5506
|
return S;
|
|
5511
|
-
}, F = (
|
|
5507
|
+
}, F = (u, S, k, N) => {
|
|
5512
5508
|
const z = k ? { ...k } : {}, P = (N || "items").trim() || "items";
|
|
5513
5509
|
if (S)
|
|
5514
5510
|
return z[P] = S.arr || [], z;
|
|
5515
|
-
const Z =
|
|
5511
|
+
const Z = u;
|
|
5516
5512
|
if (Array.isArray(Z))
|
|
5517
5513
|
return z[P] = Z, z;
|
|
5518
5514
|
if (Z && typeof Z == "object") {
|
|
@@ -5520,64 +5516,64 @@ const nt = [
|
|
|
5520
5516
|
return Array.isArray(te.lobby) ? (z[P] = te.lobby, z) : Array.isArray(te.items) ? (z[P] = te.items, z) : (z[P] = Z, z);
|
|
5521
5517
|
}
|
|
5522
5518
|
return z[P] = [], z;
|
|
5523
|
-
}, U = (
|
|
5519
|
+
}, U = (u) => {
|
|
5524
5520
|
var P;
|
|
5525
|
-
const S = !!((P =
|
|
5526
|
-
let N =
|
|
5527
|
-
const z = v(
|
|
5528
|
-
if (nt.includes(
|
|
5521
|
+
const S = !!((P = u.apiUrl) != null && P.trim()), k = S ? g[u.id] : void 0;
|
|
5522
|
+
let N = u.props ? { ...u.props } : {};
|
|
5523
|
+
const z = v(u.manualScalarFields);
|
|
5524
|
+
if (nt.includes(u.componentKey))
|
|
5529
5525
|
return { items: k, ...N, ...z };
|
|
5530
5526
|
if (N = { ...N, ...z }, S)
|
|
5531
5527
|
N = F(k, null, N);
|
|
5532
|
-
else if (
|
|
5533
|
-
const Z = R(
|
|
5528
|
+
else if (u.dataMode === "manual") {
|
|
5529
|
+
const Z = R(u.manualItems);
|
|
5534
5530
|
if (N = F(
|
|
5535
5531
|
null,
|
|
5536
|
-
{ arr: Z, variableName:
|
|
5532
|
+
{ arr: Z, variableName: u.variableName },
|
|
5537
5533
|
N,
|
|
5538
|
-
|
|
5539
|
-
),
|
|
5540
|
-
const te = R(
|
|
5534
|
+
u.variableName
|
|
5535
|
+
), u.variableName2 && u.manualItems2) {
|
|
5536
|
+
const te = R(u.manualItems2), ie = (u.variableName2 || "items2").trim() || "items2";
|
|
5541
5537
|
N[ie] = te;
|
|
5542
5538
|
}
|
|
5543
5539
|
}
|
|
5544
5540
|
return N;
|
|
5545
|
-
}, W = (
|
|
5546
|
-
const S =
|
|
5541
|
+
}, W = (u) => {
|
|
5542
|
+
const S = u.props ? { ...u.props } : {};
|
|
5547
5543
|
try {
|
|
5548
|
-
Object.assign(S, v(
|
|
5544
|
+
Object.assign(S, v(u.manualScalarFields));
|
|
5549
5545
|
} catch (N) {
|
|
5550
|
-
console.error("❌ Error armando scalars vacíos:",
|
|
5546
|
+
console.error("❌ Error armando scalars vacíos:", u, N);
|
|
5551
5547
|
}
|
|
5552
|
-
const k = (
|
|
5553
|
-
if (typeof S[k] == "undefined" && (S[k] = []),
|
|
5554
|
-
const N = (
|
|
5548
|
+
const k = (u.variableName || "items").trim() || "items";
|
|
5549
|
+
if (typeof S[k] == "undefined" && (S[k] = []), u.variableName2) {
|
|
5550
|
+
const N = (u.variableName2 || "items2").trim() || "items2";
|
|
5555
5551
|
typeof S[N] == "undefined" && (S[N] = []);
|
|
5556
5552
|
}
|
|
5557
5553
|
return S;
|
|
5558
|
-
}, G = (
|
|
5554
|
+
}, G = (u) => {
|
|
5559
5555
|
try {
|
|
5560
|
-
return U(
|
|
5556
|
+
return U(u);
|
|
5561
5557
|
} catch (S) {
|
|
5562
|
-
console.error("🔥 ERROR EN buildCompProps:",
|
|
5563
|
-
const k = I(
|
|
5564
|
-
if (k && k !==
|
|
5558
|
+
console.error("🔥 ERROR EN buildCompProps:", u, S);
|
|
5559
|
+
const k = I(u);
|
|
5560
|
+
if (k && k !== u)
|
|
5565
5561
|
try {
|
|
5566
5562
|
return console.warn(
|
|
5567
|
-
`[landing] usando fallback local para sección ${
|
|
5563
|
+
`[landing] usando fallback local para sección ${u.title} (${u.componentKey})`
|
|
5568
5564
|
), U(k);
|
|
5569
5565
|
} catch (N) {
|
|
5570
5566
|
console.error("🔥 ERROR EN fallback buildCompProps:", k, N);
|
|
5571
5567
|
}
|
|
5572
|
-
return W(
|
|
5568
|
+
return W(u);
|
|
5573
5569
|
}
|
|
5574
|
-
}, J = (
|
|
5570
|
+
}, J = (u, S, k) => /* @__PURE__ */ t("div", { className: `mx-4 p-4 rounded ${{
|
|
5575
5571
|
loading: "bg-blue-100 text-blue-800",
|
|
5576
5572
|
error: "bg-red-100 text-red-800",
|
|
5577
5573
|
component: "bg-yellow-100 text-yellow-800"
|
|
5578
|
-
}[S]}`, children: k },
|
|
5574
|
+
}[S]}`, children: k }, u), ee = (u) => {
|
|
5579
5575
|
var je;
|
|
5580
|
-
const S =
|
|
5576
|
+
const S = u.componentKey, k = Jn[S], z = (/* @__PURE__ */ new Set([
|
|
5581
5577
|
"OraculoSeccionBanners",
|
|
5582
5578
|
"OraculoSeccionBonoBienvenida",
|
|
5583
5579
|
"OraculoSeccionCasinoEnVivo",
|
|
@@ -5590,7 +5586,7 @@ const nt = [
|
|
|
5590
5586
|
"OraculoSeccionDestacados",
|
|
5591
5587
|
"OraculoSeccionCasino"
|
|
5592
5588
|
]
|
|
5593
|
-
])).has(
|
|
5589
|
+
])).has(u.componentKey), P = $ ? 120 : 24, Z = ($ ? 8 : 5) * 8, te = u.componentKey === "OraculoSeccionCasinoEnVivo", ie = {
|
|
5594
5590
|
width: "100%",
|
|
5595
5591
|
boxSizing: "border-box",
|
|
5596
5592
|
...z ? {} : { paddingLeft: P, paddingRight: P },
|
|
@@ -5601,24 +5597,24 @@ const nt = [
|
|
|
5601
5597
|
};
|
|
5602
5598
|
if (!k)
|
|
5603
5599
|
return console.warn(`No hay componente registrado para "${S}"`), J(
|
|
5604
|
-
|
|
5600
|
+
u.id,
|
|
5605
5601
|
"component",
|
|
5606
5602
|
`Componente "${S}" no encontrado`
|
|
5607
5603
|
);
|
|
5608
|
-
const oe = !!((je =
|
|
5604
|
+
const oe = !!((je = u.apiUrl) != null && je.trim()), We = oe ? g[u.id] : void 0, wt = oe ? !!C[u.id] : !1, Ge = oe ? x[u.id] : "";
|
|
5609
5605
|
if (oe) {
|
|
5610
5606
|
if (wt && !We)
|
|
5611
5607
|
return J(
|
|
5612
|
-
|
|
5608
|
+
u.id,
|
|
5613
5609
|
"loading",
|
|
5614
|
-
`Cargando datos desde ${
|
|
5610
|
+
`Cargando datos desde ${u.apiUrl}...`
|
|
5615
5611
|
);
|
|
5616
5612
|
if (Ge && !We) {
|
|
5617
|
-
const we = I(
|
|
5613
|
+
const we = I(u);
|
|
5618
5614
|
if (we && we.dataMode === "manual")
|
|
5619
5615
|
try {
|
|
5620
5616
|
const Re = G(we);
|
|
5621
|
-
return /* @__PURE__ */ t("div", { style: ie, className: "oraculo-section-wrapper", children: /* @__PURE__ */ t(k, { ...Re }) },
|
|
5617
|
+
return /* @__PURE__ */ t("div", { style: ie, className: "oraculo-section-wrapper", children: /* @__PURE__ */ t(k, { ...Re }) }, u.id);
|
|
5622
5618
|
} catch (Re) {
|
|
5623
5619
|
console.error(
|
|
5624
5620
|
"🔥 ERROR renderizando fallback manual de sección:",
|
|
@@ -5627,25 +5623,21 @@ const nt = [
|
|
|
5627
5623
|
);
|
|
5628
5624
|
}
|
|
5629
5625
|
return J(
|
|
5630
|
-
|
|
5626
|
+
u.id,
|
|
5631
5627
|
"error",
|
|
5632
|
-
`Error cargando ${
|
|
5628
|
+
`Error cargando ${u.apiUrl}: ${Ge}`
|
|
5633
5629
|
);
|
|
5634
5630
|
}
|
|
5635
5631
|
}
|
|
5636
|
-
const St = G(
|
|
5637
|
-
return
|
|
5638
|
-
id: c.id,
|
|
5639
|
-
title: c.title,
|
|
5640
|
-
componentKey: c.componentKey
|
|
5641
|
-
}), /* @__PURE__ */ t(Qn, { section: c, children: /* @__PURE__ */ t(
|
|
5632
|
+
const St = G(u);
|
|
5633
|
+
return /* @__PURE__ */ t(Qn, { section: u, children: /* @__PURE__ */ t(
|
|
5642
5634
|
"div",
|
|
5643
5635
|
{
|
|
5644
5636
|
style: ie,
|
|
5645
5637
|
className: "oraculo-section-wrapper",
|
|
5646
5638
|
children: /* @__PURE__ */ t(k, { ...St })
|
|
5647
5639
|
},
|
|
5648
|
-
|
|
5640
|
+
u.id
|
|
5649
5641
|
) });
|
|
5650
5642
|
};
|
|
5651
5643
|
return l && !e ? p ? /* @__PURE__ */ t(p, {}) : /* @__PURE__ */ t("div", { children: "Cargando..." }) : !l && !e && f.length === 0 ? /* @__PURE__ */ t("div", { className: "text-xs text-gray-500", children: "Sin secciones (Firestore)" }) : /* @__PURE__ */ t(xt, { children: /* @__PURE__ */ t(gt, { docId: a, moduleId: n, children: /* @__PURE__ */ t(
|
|
@@ -5662,11 +5654,11 @@ const nt = [
|
|
|
5662
5654
|
maxWidth: "100%",
|
|
5663
5655
|
overflowX: "hidden"
|
|
5664
5656
|
},
|
|
5665
|
-
children: /* @__PURE__ */ t(Oe, { direction: "column", spacing: $ ? 8 : 5, useFlexGap: !0, children: A.map((
|
|
5657
|
+
children: /* @__PURE__ */ t(Oe, { direction: "column", spacing: $ ? 8 : 5, useFlexGap: !0, children: A.map((u) => {
|
|
5666
5658
|
try {
|
|
5667
|
-
return ee(
|
|
5659
|
+
return ee(u);
|
|
5668
5660
|
} catch (S) {
|
|
5669
|
-
return console.error("🔥 ERROR EN SECTION:",
|
|
5661
|
+
return console.error("🔥 ERROR EN SECTION:", u, S), null;
|
|
5670
5662
|
}
|
|
5671
5663
|
}) })
|
|
5672
5664
|
}
|