oraculo-ui 0.2.22 → 0.2.23
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 +495 -487
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -29,10 +29,10 @@ function J({
|
|
|
29
29
|
className: l = "",
|
|
30
30
|
ariaLabel: c,
|
|
31
31
|
leftIcon: g,
|
|
32
|
-
rightIcon:
|
|
33
|
-
iconOnly:
|
|
32
|
+
rightIcon: b,
|
|
33
|
+
iconOnly: x
|
|
34
34
|
}) {
|
|
35
|
-
const
|
|
35
|
+
const T = !!e && e !== !0, I = (!!g ? 1 : 0) + (!!b ? 1 : 0) == 1, U = x != null ? x : I && !T, O = [
|
|
36
36
|
"orc-btn",
|
|
37
37
|
d === "secondary" ? "orc-btn--secondary" : d === "tertiary" ? "orc-btn--tertiary" : "orc-btn--primary",
|
|
38
38
|
p ? `orc-btn--${p}` : "",
|
|
@@ -40,10 +40,10 @@ function J({
|
|
|
40
40
|
u ? "orc-btn--fullHeight" : "",
|
|
41
41
|
U ? "orc-btn--iconOnly" : "",
|
|
42
42
|
l
|
|
43
|
-
].filter(Boolean).join(" "),
|
|
43
|
+
].filter(Boolean).join(" "), k = /* @__PURE__ */ h(me, { children: [
|
|
44
44
|
g && /* @__PURE__ */ t("span", { className: "orc-btn__icon", children: g }),
|
|
45
45
|
!U && /* @__PURE__ */ t("span", { className: "orc-btn__label", children: e }),
|
|
46
|
-
|
|
46
|
+
b && /* @__PURE__ */ t("span", { className: "orc-btn__icon", children: b })
|
|
47
47
|
] }), S = s ? !0 : void 0;
|
|
48
48
|
return n ? /* @__PURE__ */ t(
|
|
49
49
|
it,
|
|
@@ -54,9 +54,9 @@ function J({
|
|
|
54
54
|
"aria-label": c,
|
|
55
55
|
"aria-disabled": S,
|
|
56
56
|
tabIndex: S ? -1 : void 0,
|
|
57
|
-
className:
|
|
57
|
+
className: O,
|
|
58
58
|
onClick: S ? (B) => B.preventDefault() : a,
|
|
59
|
-
children:
|
|
59
|
+
children: k
|
|
60
60
|
}
|
|
61
61
|
) : /* @__PURE__ */ t(
|
|
62
62
|
"button",
|
|
@@ -65,8 +65,8 @@ function J({
|
|
|
65
65
|
onClick: a,
|
|
66
66
|
disabled: !!S,
|
|
67
67
|
"aria-label": c,
|
|
68
|
-
className:
|
|
69
|
-
children:
|
|
68
|
+
className: O,
|
|
69
|
+
children: k
|
|
70
70
|
}
|
|
71
71
|
);
|
|
72
72
|
}
|
|
@@ -396,8 +396,8 @@ function pa(e, a, {
|
|
|
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
|
-
const
|
|
400
|
-
r.current = 0, s.current = g, u.go(
|
|
399
|
+
const b = r.current > 0 ? ">" : "<";
|
|
400
|
+
r.current = 0, s.current = g, u.go(b);
|
|
401
401
|
};
|
|
402
402
|
return d.addEventListener("wheel", p, { passive: !1 }), () => {
|
|
403
403
|
d.removeEventListener("wheel", p), r.current = 0;
|
|
@@ -423,7 +423,7 @@ const fa = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ga = "ora
|
|
|
423
423
|
enableHorizontalWheel: f = !0,
|
|
424
424
|
showRightGradient: u = !1
|
|
425
425
|
}, l) => {
|
|
426
|
-
const c = V(null), g = V(null),
|
|
426
|
+
const c = V(null), g = V(null), b = V(e.length), x = V(null), T = V(null);
|
|
427
427
|
pa(g, c, {
|
|
428
428
|
enabled: f
|
|
429
429
|
}), Tt(l, () => ({
|
|
@@ -442,7 +442,7 @@ const fa = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ga = "ora
|
|
|
442
442
|
}));
|
|
443
443
|
const _ = (S) => {
|
|
444
444
|
var P;
|
|
445
|
-
const B = S.Components.Slides,
|
|
445
|
+
const B = S.Components.Slides, $ = S.Components.Controller, w = S.root.querySelector(".splide__track"), E = (P = w == null ? void 0 : w.clientWidth) != null ? P : 0, L = $.getIndex(), A = B.getLength();
|
|
446
446
|
let R = 0, y = L;
|
|
447
447
|
for (let D = L; D < A; D++) {
|
|
448
448
|
const W = B.getAt(D);
|
|
@@ -450,54 +450,54 @@ const fa = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ga = "ora
|
|
|
450
450
|
y = D;
|
|
451
451
|
}
|
|
452
452
|
return { visibleStart: L, visibleEnd: y };
|
|
453
|
-
},
|
|
454
|
-
const B = S.root.querySelector(".splide__track"),
|
|
455
|
-
return !B ||
|
|
456
|
-
},
|
|
453
|
+
}, v = (S) => {
|
|
454
|
+
const B = S.root.querySelector(".splide__track"), $ = S.root.querySelector(".splide__list");
|
|
455
|
+
return !B || !$ ? !1 : $.scrollWidth > B.clientWidth + 1;
|
|
456
|
+
}, I = Ee((S) => {
|
|
457
457
|
var y, P;
|
|
458
|
-
const
|
|
459
|
-
if (!
|
|
458
|
+
const $ = S.Components.Slides.getLength();
|
|
459
|
+
if (!v(S)) {
|
|
460
460
|
d == null || d({
|
|
461
461
|
index: 0,
|
|
462
462
|
isStart: !0,
|
|
463
463
|
isEnd: !0,
|
|
464
|
-
total:
|
|
464
|
+
total: $,
|
|
465
465
|
visibleStart: 0,
|
|
466
|
-
visibleEnd:
|
|
466
|
+
visibleEnd: $ - 1
|
|
467
467
|
});
|
|
468
468
|
return;
|
|
469
469
|
}
|
|
470
|
-
const { visibleStart:
|
|
471
|
-
u && ((y =
|
|
470
|
+
const { visibleStart: w, visibleEnd: E } = _(S), L = w === 0, A = E === $ - 1;
|
|
471
|
+
u && ((y = x.current) == null || y.style.setProperty("--gradient-opacity", L ? "0" : "1"), (P = T.current) == null || P.style.setProperty("--gradient-opacity", A ? "0" : "1"));
|
|
472
472
|
const R = S.Components.Controller.getIndex();
|
|
473
473
|
d == null || d({
|
|
474
474
|
index: R,
|
|
475
475
|
isStart: L,
|
|
476
476
|
isEnd: A,
|
|
477
|
-
total:
|
|
478
|
-
visibleStart:
|
|
477
|
+
total: $,
|
|
478
|
+
visibleStart: w,
|
|
479
479
|
visibleEnd: E
|
|
480
480
|
});
|
|
481
481
|
}, [d]);
|
|
482
482
|
fe.useEffect(() => {
|
|
483
|
-
var
|
|
484
|
-
const S = (
|
|
483
|
+
var $;
|
|
484
|
+
const S = ($ = c.current) == null ? void 0 : $.splide;
|
|
485
485
|
if (!S) return;
|
|
486
|
-
const B =
|
|
487
|
-
|
|
488
|
-
S.refresh(),
|
|
486
|
+
const B = b.current !== e.length;
|
|
487
|
+
b.current = e.length, B && requestAnimationFrame(() => {
|
|
488
|
+
S.refresh(), I(S);
|
|
489
489
|
});
|
|
490
|
-
}, [e.length,
|
|
490
|
+
}, [e.length, I]);
|
|
491
491
|
const U = Ee(() => {
|
|
492
492
|
var B;
|
|
493
493
|
const S = (B = c.current) == null ? void 0 : B.splide;
|
|
494
|
-
S && (S.go(0, !1),
|
|
495
|
-
}, [
|
|
494
|
+
S && (S.go(0, !1), I(S));
|
|
495
|
+
}, [I]), O = Ee(
|
|
496
496
|
(S) => {
|
|
497
|
-
|
|
497
|
+
I(S);
|
|
498
498
|
},
|
|
499
|
-
[
|
|
500
|
-
),
|
|
499
|
+
[I]
|
|
500
|
+
), k = {
|
|
501
501
|
type: "slide",
|
|
502
502
|
trimSpace: !1,
|
|
503
503
|
drag: !0,
|
|
@@ -523,13 +523,13 @@ const fa = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ga = "ora
|
|
|
523
523
|
va,
|
|
524
524
|
{
|
|
525
525
|
ref: c,
|
|
526
|
-
options:
|
|
527
|
-
onMove:
|
|
528
|
-
onMounted:
|
|
526
|
+
options: k,
|
|
527
|
+
onMove: I,
|
|
528
|
+
onMounted: O,
|
|
529
529
|
onResize: U,
|
|
530
530
|
children: e.map((S, B) => {
|
|
531
|
-
var
|
|
532
|
-
return /* @__PURE__ */ t(_a, { children: a(S, B) }, p ? B : (
|
|
531
|
+
var $;
|
|
532
|
+
return /* @__PURE__ */ t(_a, { children: a(S, B) }, p ? B : ($ = S.id) != null ? $ : B);
|
|
533
533
|
})
|
|
534
534
|
}
|
|
535
535
|
),
|
|
@@ -537,7 +537,7 @@ const fa = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ga = "ora
|
|
|
537
537
|
/* @__PURE__ */ t(
|
|
538
538
|
"div",
|
|
539
539
|
{
|
|
540
|
-
ref:
|
|
540
|
+
ref: x,
|
|
541
541
|
className: `${ye.gradientOverlay} ${ye.left}`,
|
|
542
542
|
style: { "--gradient-opacity": "0" },
|
|
543
543
|
children: /* @__PURE__ */ h(
|
|
@@ -562,7 +562,7 @@ const fa = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ga = "ora
|
|
|
562
562
|
/* @__PURE__ */ t(
|
|
563
563
|
"div",
|
|
564
564
|
{
|
|
565
|
-
ref:
|
|
565
|
+
ref: T,
|
|
566
566
|
className: `${ye.gradientOverlay} ${ye.right}`,
|
|
567
567
|
style: { "--gradient-opacity": "1" },
|
|
568
568
|
children: /* @__PURE__ */ h(
|
|
@@ -686,16 +686,16 @@ function ya({
|
|
|
686
686
|
md: { w: 186, h: 264, r: 22.6, font: 64 }
|
|
687
687
|
}
|
|
688
688
|
}) {
|
|
689
|
-
var l, c, g,
|
|
690
|
-
const r = (
|
|
691
|
-
var _,
|
|
689
|
+
var l, c, g, b;
|
|
690
|
+
const r = (x, T) => {
|
|
691
|
+
var _, v, I, U;
|
|
692
692
|
return {
|
|
693
|
-
xs: (
|
|
694
|
-
md: (U = (
|
|
693
|
+
xs: (v = (_ = i.xs) == null ? void 0 : _[x]) != null ? v : T,
|
|
694
|
+
md: (U = (I = i.md) == null ? void 0 : I[x]) != null ? U : T
|
|
695
695
|
};
|
|
696
696
|
}, s = r("w", 186), d = r("h", 264), p = r("r", 22.6), f = r("font", 64), u = {
|
|
697
697
|
xs: Math.round(((c = (l = i.xs) == null ? void 0 : l.font) != null ? c : 64) * 0.28),
|
|
698
|
-
md: Math.round(((
|
|
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(
|
|
701
701
|
q,
|
|
@@ -1244,34 +1244,34 @@ function Aa({ coupon: e }) {
|
|
|
1244
1244
|
var f;
|
|
1245
1245
|
const a = ae(), n = ne();
|
|
1246
1246
|
function o(u) {
|
|
1247
|
-
var g,
|
|
1247
|
+
var g, b;
|
|
1248
1248
|
const l = [], c = Array.from(
|
|
1249
1249
|
new Map(
|
|
1250
|
-
((g = u == null ? void 0 : u.events) != null ? g : []).filter(Boolean).map((
|
|
1250
|
+
((g = u == null ? void 0 : u.events) != null ? g : []).filter(Boolean).map((x) => [x.id, x])
|
|
1251
1251
|
).values()
|
|
1252
1252
|
);
|
|
1253
|
-
return c.forEach((
|
|
1254
|
-
var
|
|
1255
|
-
const
|
|
1256
|
-
|
|
1257
|
-
var B,
|
|
1253
|
+
return c.forEach((x) => {
|
|
1254
|
+
var I;
|
|
1255
|
+
const T = (I = x.betoffers) != null ? I : [], _ = x.homeName, v = x.awayName;
|
|
1256
|
+
T.forEach((U) => {
|
|
1257
|
+
var B, $, w, E, L, A, R;
|
|
1258
1258
|
if (!((B = U == null ? void 0 : U.outcomes) != null && B.length)) return;
|
|
1259
|
-
const
|
|
1260
|
-
if (!
|
|
1261
|
-
let
|
|
1262
|
-
const S =
|
|
1263
|
-
["Más de", "Mas de", "Over"].includes(
|
|
1264
|
-
id:
|
|
1265
|
-
value:
|
|
1259
|
+
const O = U.outcomes[0];
|
|
1260
|
+
if (!O) return;
|
|
1261
|
+
let k = "";
|
|
1262
|
+
const S = O != null && O.line ? O.line / 1e3 : "";
|
|
1263
|
+
["Más de", "Mas de", "Over"].includes(O.label) ? (k = `Más de ${S}`, O.participant && (k = `${O.participant} - ${k}`)) : ["Menos de", "Menos", "Under"].includes(O.label) ? (k = `Menos de ${S}`, O.participant && (k = `${O.participant} - ${k}`)) : ["Sí", "No"].includes(O.label) ? (k = O.label, O.participant && (k = `${O.participant} - ${k}`)) : ["1X", "12", "X2"].includes(O.label) ? (O.label === "1X" && (k = `${_} o Empate`), O.label === "12" && (k = `${_} o ${v}`), O.label === "X2" && (k = `${v} o Empate`)) : (k = (w = ($ = O.participant) != null ? $ : O.label) != null ? w : "", S !== "" && k === O.label && (k = `${O.label} ${S}`)), l.push({
|
|
1264
|
+
id: O.id,
|
|
1265
|
+
value: k,
|
|
1266
1266
|
label: (L = (E = U.criterion) == null ? void 0 : E.label) != null ? L : "",
|
|
1267
|
-
odds: (A =
|
|
1268
|
-
position: (R =
|
|
1269
|
-
eventId:
|
|
1267
|
+
odds: (A = O.odds) != null ? A : 0,
|
|
1268
|
+
position: (R = O.position) != null ? R : 0,
|
|
1269
|
+
eventId: x.id
|
|
1270
1270
|
});
|
|
1271
1271
|
});
|
|
1272
1272
|
}), {
|
|
1273
|
-
outcomes: l.sort((
|
|
1274
|
-
total: Number((
|
|
1273
|
+
outcomes: l.sort((x, T) => x.position - T.position),
|
|
1274
|
+
total: Number((b = u == null ? void 0 : u.combinadoTotal) != null ? b : 0).toLocaleString("en-US", {
|
|
1275
1275
|
minimumFractionDigits: 2,
|
|
1276
1276
|
maximumFractionDigits: 2
|
|
1277
1277
|
}),
|
|
@@ -1285,33 +1285,33 @@ function Aa({ coupon: e }) {
|
|
|
1285
1285
|
if (l.length === 1)
|
|
1286
1286
|
return `/deportes#event/${l[0].id}`;
|
|
1287
1287
|
const c = l[0].groupId;
|
|
1288
|
-
if (l.every((
|
|
1289
|
-
const
|
|
1290
|
-
if (Array.isArray(
|
|
1291
|
-
return `/deportes#sports-hub/${
|
|
1288
|
+
if (l.every((b) => b.groupId === c)) {
|
|
1289
|
+
const b = l[0].path;
|
|
1290
|
+
if (Array.isArray(b) && b.length > 0)
|
|
1291
|
+
return `/deportes#sports-hub/${b.map((T) => T.termKey).filter(Boolean).join("/")}`;
|
|
1292
1292
|
}
|
|
1293
1293
|
return "/deportes#home";
|
|
1294
1294
|
}
|
|
1295
1295
|
const r = (u, l) => {
|
|
1296
1296
|
const c = Array.isArray(u) ? u : [u], g = Array.from(
|
|
1297
1297
|
new Set(
|
|
1298
|
-
s.outcomes.map((
|
|
1299
|
-
var
|
|
1300
|
-
const _ = p.get(Number(
|
|
1301
|
-
return (
|
|
1298
|
+
s.outcomes.map((T) => {
|
|
1299
|
+
var v;
|
|
1300
|
+
const _ = p.get(Number(T.eventId));
|
|
1301
|
+
return (v = _ == null ? void 0 : _.name) != null ? v : "";
|
|
1302
1302
|
})
|
|
1303
1303
|
)
|
|
1304
|
-
).filter(Boolean),
|
|
1304
|
+
).filter(Boolean), b = g.length > 0 ? g.join(" + ") : JSON.stringify(c), x = l ? `${b} - Cuota: ${l}` : b;
|
|
1305
1305
|
a({
|
|
1306
1306
|
element: "evento_semana_outcome",
|
|
1307
|
-
label: `Landing: ${n} - OraculoEventCombinadasCard - Click: ${
|
|
1307
|
+
label: `Landing: ${n} - OraculoEventCombinadasCard - Click: ${x}`,
|
|
1308
1308
|
target: "/deportes#in-play",
|
|
1309
1309
|
event_type: "click",
|
|
1310
1310
|
module_id: 301,
|
|
1311
1311
|
metadata: {
|
|
1312
1312
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1313
1313
|
},
|
|
1314
|
-
tags: { section: "OraculoEventCombinadasCard", outcomes:
|
|
1314
|
+
tags: { section: "OraculoEventCombinadasCard", outcomes: x }
|
|
1315
1315
|
}), De(i(e), u);
|
|
1316
1316
|
};
|
|
1317
1317
|
if (!((f = e == null ? void 0 : e.events) != null && f.length)) return null;
|
|
@@ -1343,17 +1343,17 @@ function Aa({ coupon: e }) {
|
|
|
1343
1343
|
src: "/assets/img/home/Combinadas/line.png"
|
|
1344
1344
|
}
|
|
1345
1345
|
),
|
|
1346
|
-
l.map((g,
|
|
1346
|
+
l.map((g, b) => /* @__PURE__ */ h("div", { className: le.apuestaItem, children: [
|
|
1347
1347
|
/* @__PURE__ */ h("div", { className: le.lineContainer, children: [
|
|
1348
1348
|
/* @__PURE__ */ t("div", { className: le.circle }),
|
|
1349
|
-
|
|
1349
|
+
b < l.length - 1 && /* @__PURE__ */ t("div", { className: le.line })
|
|
1350
1350
|
] }),
|
|
1351
1351
|
/* @__PURE__ */ h("div", { className: le.apuestaText, children: [
|
|
1352
1352
|
/* @__PURE__ */ t("strong", { children: g.value }),
|
|
1353
1353
|
" | ",
|
|
1354
1354
|
g.label
|
|
1355
1355
|
] })
|
|
1356
|
-
] }, `${u}-${
|
|
1356
|
+
] }, `${u}-${b}`))
|
|
1357
1357
|
]
|
|
1358
1358
|
},
|
|
1359
1359
|
u
|
|
@@ -1414,10 +1414,10 @@ function Ra({
|
|
|
1414
1414
|
className: l = "",
|
|
1415
1415
|
ariaLabel: c,
|
|
1416
1416
|
leftIcon: g,
|
|
1417
|
-
rightIcon:
|
|
1418
|
-
iconOnly:
|
|
1417
|
+
rightIcon: b,
|
|
1418
|
+
iconOnly: x
|
|
1419
1419
|
}) {
|
|
1420
|
-
const
|
|
1420
|
+
const T = !!e && e !== !0, I = (!!g ? 1 : 0) + (!!b ? 1 : 0) == 1, U = x != null ? x : I && !T, O = [
|
|
1421
1421
|
ce["orc-btn"],
|
|
1422
1422
|
// base
|
|
1423
1423
|
ce[`orc-btn--${d}`],
|
|
@@ -1428,10 +1428,10 @@ function Ra({
|
|
|
1428
1428
|
u ? ce["orc-btn--fullHeight"] : "",
|
|
1429
1429
|
U ? ce["orc-btn--iconOnly"] : "",
|
|
1430
1430
|
l
|
|
1431
|
-
].filter(Boolean).join(" "),
|
|
1431
|
+
].filter(Boolean).join(" "), k = /* @__PURE__ */ h(me, { children: [
|
|
1432
1432
|
g && /* @__PURE__ */ t("span", { className: ce["orc-btn__icon"], children: g }),
|
|
1433
1433
|
!U && /* @__PURE__ */ t("span", { className: ce["orc-btn__label"], children: e }),
|
|
1434
|
-
|
|
1434
|
+
b && /* @__PURE__ */ t("span", { className: ce["orc-btn__icon"], children: b })
|
|
1435
1435
|
] }), S = s ? !0 : void 0;
|
|
1436
1436
|
return n ? /* @__PURE__ */ t(
|
|
1437
1437
|
it,
|
|
@@ -1442,9 +1442,9 @@ function Ra({
|
|
|
1442
1442
|
"aria-label": c,
|
|
1443
1443
|
"aria-disabled": S,
|
|
1444
1444
|
tabIndex: S ? -1 : void 0,
|
|
1445
|
-
className:
|
|
1445
|
+
className: O,
|
|
1446
1446
|
onClick: S ? (B) => B.preventDefault() : a,
|
|
1447
|
-
children:
|
|
1447
|
+
children: k
|
|
1448
1448
|
}
|
|
1449
1449
|
) : /* @__PURE__ */ t(
|
|
1450
1450
|
"button",
|
|
@@ -1453,8 +1453,8 @@ function Ra({
|
|
|
1453
1453
|
onClick: a,
|
|
1454
1454
|
disabled: !!S,
|
|
1455
1455
|
"aria-label": c,
|
|
1456
|
-
className:
|
|
1457
|
-
children:
|
|
1456
|
+
className: O,
|
|
1457
|
+
children: k
|
|
1458
1458
|
}
|
|
1459
1459
|
);
|
|
1460
1460
|
}
|
|
@@ -1484,11 +1484,11 @@ const La = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", Pa = "
|
|
|
1484
1484
|
return o || (a === "home" ? Xe : Ye);
|
|
1485
1485
|
};
|
|
1486
1486
|
function qa({ event: e, liveData: a, betOffers: n, jersey: o }) {
|
|
1487
|
-
var d, p, f, u, l, c, g,
|
|
1487
|
+
var d, p, f, u, l, c, g, b, x, T, _;
|
|
1488
1488
|
const i = n == null ? void 0 : n.find(
|
|
1489
|
-
(
|
|
1490
|
-
var
|
|
1491
|
-
return ((
|
|
1489
|
+
(v) => {
|
|
1490
|
+
var I;
|
|
1491
|
+
return ((I = v.betOfferType) == null ? void 0 : I.id) === 2;
|
|
1492
1492
|
}
|
|
1493
1493
|
), r = {
|
|
1494
1494
|
englishLabel: "",
|
|
@@ -1517,15 +1517,15 @@ function qa({ event: e, liveData: a, betOffers: n, jersey: o }) {
|
|
|
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(mt, { text: ((g = (c = a == null ? void 0 : a.score) == null ? void 0 : c.home) != null ? g : 0) + ":" + ((
|
|
1520
|
+
/* @__PURE__ */ t(mt, { text: ((g = (c = a == null ? void 0 : a.score) == null ? void 0 : c.home) != null ? g : 0) + ":" + ((x = (b = a == null ? void 0 : a.score) == null ? void 0 : b.away) != null ? x : 0), name: "En vivo" }),
|
|
1521
1521
|
/* @__PURE__ */ t(Ne, { name: e == null ? void 0 : e.awayName, jersey: Me(o, "away") })
|
|
1522
1522
|
] }) })
|
|
1523
1523
|
] }),
|
|
1524
1524
|
/* @__PURE__ */ h(H, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1525
|
-
/* @__PURE__ */ t(ue, { spacing: 1, children: ((
|
|
1526
|
-
/* @__PURE__ */ t(ue, { spacing: 2, children: ((_ = i == null ? void 0 : i.outcomes) != null ? _ : s).map((
|
|
1527
|
-
De("/deportes#event/live/" + e.id,
|
|
1528
|
-
}, className: ke.customButtonDisabled, children: /* @__PURE__ */ t("span", { className: ke.customButtonLabel, children:
|
|
1525
|
+
/* @__PURE__ */ t(ue, { spacing: 1, children: ((T = i == null ? void 0 : i.outcomes) != null ? T : s).map((v, I) => /* @__PURE__ */ t(dt, { text: v.label.toUpperCase() }, I)) }),
|
|
1526
|
+
/* @__PURE__ */ t(ue, { spacing: 2, children: ((_ = i == null ? void 0 : i.outcomes) != null ? _ : s).map((v, I) => /* @__PURE__ */ t(Ra, { variant: "primary", disabled: v.odds == null || (i == null ? void 0 : i.cashOutStatus) == "SUSPENDED", onClick: () => {
|
|
1527
|
+
De("/deportes#event/live/" + e.id, v.id);
|
|
1528
|
+
}, className: ke.customButtonDisabled, children: /* @__PURE__ */ t("span", { className: ke.customButtonLabel, children: v.odds === void 0 ? "" : (v.odds / 1e3).toFixed(2) }) }, I)) })
|
|
1529
1529
|
] })
|
|
1530
1530
|
] }) });
|
|
1531
1531
|
}
|
|
@@ -1545,12 +1545,12 @@ function Ka({ event: e, jersey: a }) {
|
|
|
1545
1545
|
var s, d, p, f, u, l, c;
|
|
1546
1546
|
const n = ae(), o = ne();
|
|
1547
1547
|
function i(g) {
|
|
1548
|
-
const
|
|
1549
|
-
let
|
|
1550
|
-
return
|
|
1548
|
+
const b = new Date(g), x = b.toLocaleDateString("es-ES", { weekday: "short" }).toUpperCase(), T = b.getDate().toString().padStart(2, "0"), _ = (b.getMonth() + 1).toString().padStart(2, "0");
|
|
1549
|
+
let v = b.toLocaleTimeString("es-PE", { hour: "numeric", minute: "2-digit", hour12: !0 }).toUpperCase();
|
|
1550
|
+
return v = v.replace(/\./g, "").replace(/A\s*M/i, "AM").replace(/P\s*M/i, "PM"), `${x} ${T}/${_} | ${v}`;
|
|
1551
1551
|
}
|
|
1552
|
-
const r = (g,
|
|
1553
|
-
const
|
|
1552
|
+
const r = (g, b) => {
|
|
1553
|
+
const x = `${e.homeName} vs ${e.awayName}`, T = b ? (b / 1e3).toFixed(2) : "", _ = T ? `${x} - Cuota: ${T}` : x;
|
|
1554
1554
|
n({
|
|
1555
1555
|
element: "evento_semana_outcome",
|
|
1556
1556
|
label: `Landing: ${o} - OraculoEventSemanaCard - Click: ${_}`,
|
|
@@ -1575,10 +1575,10 @@ function Ka({ event: e, jersey: a }) {
|
|
|
1575
1575
|
/* @__PURE__ */ t(Va, { text: i(e.start) })
|
|
1576
1576
|
] }),
|
|
1577
1577
|
/* @__PURE__ */ h(H, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
1578
|
-
/* @__PURE__ */ t(ue, { spacing: 1, children: ((f = (p = (d = e == null ? void 0 : e.outcome) == null ? void 0 : d[0]) == null ? void 0 : p.outcomes) != null ? f : []).map((g,
|
|
1579
|
-
/* @__PURE__ */ t("div", { className: be.jugadas, children: /* @__PURE__ */ t(ue, { spacing: 1, children: ((c = (l = (u = e == null ? void 0 : e.outcome) == null ? void 0 : u[0]) == null ? void 0 : l.outcomes) != null ? c : []).map((g,
|
|
1578
|
+
/* @__PURE__ */ t(ue, { spacing: 1, children: ((f = (p = (d = e == null ? void 0 : e.outcome) == null ? void 0 : d[0]) == null ? void 0 : p.outcomes) != null ? f : []).map((g, b) => /* @__PURE__ */ t(dt, { text: g.label.toUpperCase() }, b)) }),
|
|
1579
|
+
/* @__PURE__ */ t("div", { className: be.jugadas, children: /* @__PURE__ */ t(ue, { spacing: 1, children: ((c = (l = (u = e == null ? void 0 : e.outcome) == null ? void 0 : u[0]) == null ? void 0 : l.outcomes) != null ? c : []).map((g, b) => /* @__PURE__ */ t(J, { variant: "primary", fullHeight: !0, onClick: () => {
|
|
1580
1580
|
r(g.id, g.odds);
|
|
1581
|
-
}, children: (g.odds / 1e3).toFixed(2) },
|
|
1581
|
+
}, children: (g.odds / 1e3).toFixed(2) }, b)) }) })
|
|
1582
1582
|
] })
|
|
1583
1583
|
] }) })
|
|
1584
1584
|
] });
|
|
@@ -1591,7 +1591,7 @@ function Za({
|
|
|
1591
1591
|
className: i = ""
|
|
1592
1592
|
}) {
|
|
1593
1593
|
const r = V(null), [s, d] = K({ isStart: !0, isEnd: !1 }), p = ae(), f = ne(), u = se(), l = !e || e.length === 0, c = () => {
|
|
1594
|
-
var
|
|
1594
|
+
var v;
|
|
1595
1595
|
p({
|
|
1596
1596
|
element: "destacados_carousel_prev",
|
|
1597
1597
|
label: `${f} - OraculoSeccionDestacados - Anterior`,
|
|
@@ -1602,9 +1602,9 @@ function Za({
|
|
|
1602
1602
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1603
1603
|
},
|
|
1604
1604
|
tags: { section: "OraculoSeccionDestacados" }
|
|
1605
|
-
}), (
|
|
1605
|
+
}), (v = r.current) == null || v.prev();
|
|
1606
1606
|
}, g = () => {
|
|
1607
|
-
var
|
|
1607
|
+
var v;
|
|
1608
1608
|
p({
|
|
1609
1609
|
element: "destacados_carousel_next",
|
|
1610
1610
|
label: `${f} - OraculoSeccionDestacados - Siguiente`,
|
|
@@ -1615,8 +1615,8 @@ function Za({
|
|
|
1615
1615
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1616
1616
|
},
|
|
1617
1617
|
tags: { section: "OraculoSeccionDestacados" }
|
|
1618
|
-
}), (
|
|
1619
|
-
},
|
|
1618
|
+
}), (v = r.current) == null || v.next();
|
|
1619
|
+
}, b = () => {
|
|
1620
1620
|
p({
|
|
1621
1621
|
element: "destacados_view_more",
|
|
1622
1622
|
label: `${f} - OraculoSeccionDestacados - Ver más`,
|
|
@@ -1628,12 +1628,12 @@ function Za({
|
|
|
1628
1628
|
},
|
|
1629
1629
|
tags: { section: "OraculoSeccionDestacados" }
|
|
1630
1630
|
}), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/promociones");
|
|
1631
|
-
},
|
|
1632
|
-
if (!
|
|
1633
|
-
const U = `https://www.olimpo.bet/promociones/${encodeURIComponent(
|
|
1631
|
+
}, x = (v) => {
|
|
1632
|
+
if (!v) return;
|
|
1633
|
+
const U = `https://www.olimpo.bet/promociones/${encodeURIComponent(v)}`;
|
|
1634
1634
|
p({
|
|
1635
1635
|
element: "destacados_card",
|
|
1636
|
-
label: `${f} - OraculoSeccionDestacados - Click: ${String(
|
|
1636
|
+
label: `${f} - OraculoSeccionDestacados - Click: ${String(v)}`,
|
|
1637
1637
|
target: U,
|
|
1638
1638
|
event_type: "click",
|
|
1639
1639
|
module_id: u,
|
|
@@ -1642,11 +1642,11 @@ function Za({
|
|
|
1642
1642
|
},
|
|
1643
1643
|
tags: {
|
|
1644
1644
|
section: "OraculoSeccionDestacados",
|
|
1645
|
-
promotion: String(
|
|
1645
|
+
promotion: String(v)
|
|
1646
1646
|
}
|
|
1647
1647
|
}), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(U);
|
|
1648
|
-
},
|
|
1649
|
-
return /* @__PURE__ */ h("section", { className:
|
|
1648
|
+
}, T = i || void 0, _ = xe("(max-width:950px)");
|
|
1649
|
+
return /* @__PURE__ */ h("section", { className: T, style: { width: "100%" }, children: [
|
|
1650
1650
|
/* @__PURE__ */ h(
|
|
1651
1651
|
"header",
|
|
1652
1652
|
{
|
|
@@ -1686,7 +1686,7 @@ function Za({
|
|
|
1686
1686
|
}
|
|
1687
1687
|
)
|
|
1688
1688
|
] }),
|
|
1689
|
-
/* @__PURE__ */ t(J, { variant: "secondary", onClick:
|
|
1689
|
+
/* @__PURE__ */ t(J, { variant: "secondary", onClick: b, children: "Ver más" })
|
|
1690
1690
|
]
|
|
1691
1691
|
}
|
|
1692
1692
|
),
|
|
@@ -1704,7 +1704,7 @@ function Za({
|
|
|
1704
1704
|
768: { perPage: 2, focus: "start", padding: { left: "24px", right: "24px" } },
|
|
1705
1705
|
1024: { perPage: 2.5, focus: "start", padding: { left: "24px", right: "24px" } }
|
|
1706
1706
|
},
|
|
1707
|
-
renderItem: (
|
|
1707
|
+
renderItem: (v) => /* @__PURE__ */ t(
|
|
1708
1708
|
"div",
|
|
1709
1709
|
{
|
|
1710
1710
|
style: {
|
|
@@ -1712,12 +1712,12 @@ function Za({
|
|
|
1712
1712
|
marginTop: 16,
|
|
1713
1713
|
cursor: "pointer"
|
|
1714
1714
|
},
|
|
1715
|
-
onClick: () =>
|
|
1715
|
+
onClick: () => x(v.promotion),
|
|
1716
1716
|
children: /* @__PURE__ */ t(
|
|
1717
1717
|
"img",
|
|
1718
1718
|
{
|
|
1719
|
-
src: `https://olimpo.bet${
|
|
1720
|
-
alt:
|
|
1719
|
+
src: `https://olimpo.bet${v.image !== "" ? v.image : v.summary_image}`,
|
|
1720
|
+
alt: v.title,
|
|
1721
1721
|
style: {
|
|
1722
1722
|
width: "100%",
|
|
1723
1723
|
height: typeof window != "undefined" && window.innerWidth < 768 ? "80px" : "137px",
|
|
@@ -1728,10 +1728,10 @@ function Za({
|
|
|
1728
1728
|
}
|
|
1729
1729
|
)
|
|
1730
1730
|
},
|
|
1731
|
-
`${
|
|
1731
|
+
`${v.title}-${v.image}`
|
|
1732
1732
|
),
|
|
1733
|
-
onMove: ({ isStart:
|
|
1734
|
-
d({ isStart:
|
|
1733
|
+
onMove: ({ isStart: v, isEnd: I }) => {
|
|
1734
|
+
d({ isStart: v, isEnd: I }), p({
|
|
1735
1735
|
element: "destacados_carousel_slide",
|
|
1736
1736
|
label: `${f} - OraculoSeccionDestacados - Slide Carousel`,
|
|
1737
1737
|
target: "carousel",
|
|
@@ -1739,8 +1739,8 @@ function Za({
|
|
|
1739
1739
|
module_id: u,
|
|
1740
1740
|
metadata: {
|
|
1741
1741
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
1742
|
-
isStart:
|
|
1743
|
-
isEnd:
|
|
1742
|
+
isStart: v,
|
|
1743
|
+
isEnd: I
|
|
1744
1744
|
},
|
|
1745
1745
|
tags: { section: "OraculoSeccionDestacados" }
|
|
1746
1746
|
});
|
|
@@ -1816,7 +1816,7 @@ function Ya({
|
|
|
1816
1816
|
width: "100%"
|
|
1817
1817
|
},
|
|
1818
1818
|
children: f.map((l, c) => {
|
|
1819
|
-
var g,
|
|
1819
|
+
var g, b;
|
|
1820
1820
|
return /* @__PURE__ */ t(
|
|
1821
1821
|
ya,
|
|
1822
1822
|
{
|
|
@@ -1827,7 +1827,7 @@ function Ya({
|
|
|
1827
1827
|
o == null || o(l), u(l);
|
|
1828
1828
|
}
|
|
1829
1829
|
},
|
|
1830
|
-
p ? `sk-${c}` : (
|
|
1830
|
+
p ? `sk-${c}` : (b = l.machine) != null ? b : `${c}`
|
|
1831
1831
|
);
|
|
1832
1832
|
})
|
|
1833
1833
|
}
|
|
@@ -1835,7 +1835,7 @@ function Ya({
|
|
|
1835
1835
|
] }) });
|
|
1836
1836
|
}
|
|
1837
1837
|
const Qa = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommendations", en = (e, a) => {
|
|
1838
|
-
var n, o, i, r, s, d, p, f, u, l, c, g,
|
|
1838
|
+
var n, o, i, r, s, d, p, f, u, l, c, g, b, x;
|
|
1839
1839
|
return {
|
|
1840
1840
|
orden: Number(a),
|
|
1841
1841
|
machine: String(
|
|
@@ -1852,8 +1852,8 @@ const Qa = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1852
1852
|
lobby_tag: (l = e.lobby_tag) != null ? l : null,
|
|
1853
1853
|
background: (c = e.background) != null ? c : "",
|
|
1854
1854
|
rtp: (g = e.rtp) != null ? g : null,
|
|
1855
|
-
demo_allowed: (
|
|
1856
|
-
gaming_session_required: (
|
|
1855
|
+
demo_allowed: (b = e.demo_allowed) != null ? b : !1,
|
|
1856
|
+
gaming_session_required: (x = e.gaming_session_required) != null ? x : !1
|
|
1857
1857
|
};
|
|
1858
1858
|
}, tn = (e) => e ? !Array.isArray(e) && Array.isArray(e.recommendations) ? e.recommendations.filter(Boolean).map((a) => String(a)) : [] : [], _t = () => {
|
|
1859
1859
|
var a, n, o;
|
|
@@ -1903,26 +1903,26 @@ const Qa = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1903
1903
|
d || i([]);
|
|
1904
1904
|
return;
|
|
1905
1905
|
}
|
|
1906
|
-
const l = _t(), c = await nn(l, u), g = c.map((_) => _.itemId),
|
|
1907
|
-
g.map(async (_,
|
|
1908
|
-
const
|
|
1909
|
-
if (!
|
|
1906
|
+
const l = _t(), c = await nn(l, u), g = c.map((_) => _.itemId), b = await Promise.allSettled(
|
|
1907
|
+
g.map(async (_, v) => {
|
|
1908
|
+
const I = await fetch(`https://api.mktolimpo.com/api/machine/${_}`);
|
|
1909
|
+
if (!I.ok)
|
|
1910
1910
|
throw new Error(`No se pudo obtener machine ${_}`);
|
|
1911
|
-
const U = await
|
|
1912
|
-
return en(U,
|
|
1911
|
+
const U = await I.json();
|
|
1912
|
+
return en(U, v);
|
|
1913
1913
|
})
|
|
1914
1914
|
);
|
|
1915
1915
|
if (d) return;
|
|
1916
|
-
const
|
|
1916
|
+
const x = b.filter(
|
|
1917
1917
|
(_) => _.status === "fulfilled"
|
|
1918
|
-
).map((_) => _.value),
|
|
1919
|
-
const
|
|
1920
|
-
return
|
|
1921
|
-
}).filter(Boolean).sort((_,
|
|
1922
|
-
var
|
|
1923
|
-
return ((
|
|
1918
|
+
).map((_) => _.value), T = c.map((_) => {
|
|
1919
|
+
const v = x.find((I) => I.machine === _.itemId);
|
|
1920
|
+
return v ? { ...v, score: _.score } : null;
|
|
1921
|
+
}).filter(Boolean).sort((_, v) => {
|
|
1922
|
+
var I, U;
|
|
1923
|
+
return ((I = v.score) != null ? I : 0) - ((U = _.score) != null ? U : 0);
|
|
1924
1924
|
});
|
|
1925
|
-
i(
|
|
1925
|
+
i(T);
|
|
1926
1926
|
} catch (f) {
|
|
1927
1927
|
console.error(`[usePersonalizeGameItems:${n}] error:`, f), d || i([]);
|
|
1928
1928
|
} finally {
|
|
@@ -1962,7 +1962,7 @@ const Qa = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1962
1962
|
const f = ae(), u = ne(), l = se(), c = cn(p), { resolvedItems: g } = sn(
|
|
1963
1963
|
e,
|
|
1964
1964
|
c
|
|
1965
|
-
),
|
|
1965
|
+
), b = c ? g : Array.isArray(e) ? e : [], x = (_) => {
|
|
1966
1966
|
f({
|
|
1967
1967
|
element: "live_casino_card",
|
|
1968
1968
|
label: `${u} - OraculoSeccionCasinoEnVivo${c ? " - personalize" : ""} - Open game: ${String(_.machine || "unknown")}`,
|
|
@@ -1978,8 +1978,8 @@ const Qa = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1978
1978
|
section: "OraculoSeccionCasinoEnVivo"
|
|
1979
1979
|
}
|
|
1980
1980
|
});
|
|
1981
|
-
const
|
|
1982
|
-
if (!
|
|
1981
|
+
const v = pe("showIframe"), I = pe("loadMachine");
|
|
1982
|
+
if (!I) {
|
|
1983
1983
|
if (i) {
|
|
1984
1984
|
i(_);
|
|
1985
1985
|
return;
|
|
@@ -1990,10 +1990,10 @@ const Qa = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1990
1990
|
);
|
|
1991
1991
|
return;
|
|
1992
1992
|
}
|
|
1993
|
-
|
|
1994
|
-
|
|
1993
|
+
v == null || v(), typeof window != "undefined" && window.scrollTo({ top: 0, behavior: "smooth" }), requestAnimationFrame(() => {
|
|
1994
|
+
I == null || I(_, !1, "casino_en_vivo");
|
|
1995
1995
|
});
|
|
1996
|
-
},
|
|
1996
|
+
}, T = () => {
|
|
1997
1997
|
f({
|
|
1998
1998
|
element: "casino_en_vivo_view_more",
|
|
1999
1999
|
label: `${u} - OraculoSeccionCasinoEnVivo${c ? " - personalize" : ""} - Ver más`,
|
|
@@ -2093,7 +2093,7 @@ const Qa = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2093
2093
|
{
|
|
2094
2094
|
variant: "primary",
|
|
2095
2095
|
size: "md",
|
|
2096
|
-
onClick:
|
|
2096
|
+
onClick: T,
|
|
2097
2097
|
children: "Ver más"
|
|
2098
2098
|
}
|
|
2099
2099
|
) })
|
|
@@ -2109,18 +2109,18 @@ const Qa = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2109
2109
|
py: { xs: 3, md: 0 },
|
|
2110
2110
|
alignItems: "center"
|
|
2111
2111
|
},
|
|
2112
|
-
children: (
|
|
2113
|
-
var
|
|
2112
|
+
children: (b != null ? b : []).slice(0, 3).map((_, v) => {
|
|
2113
|
+
var I;
|
|
2114
2114
|
return /* @__PURE__ */ t(
|
|
2115
2115
|
xa,
|
|
2116
2116
|
{
|
|
2117
|
-
logo: `https://olimpo.bet${_.background ? _.background : (
|
|
2117
|
+
logo: `https://olimpo.bet${_.background ? _.background : (I = _.logo) != null ? I : ""}`,
|
|
2118
2118
|
provider: _.provider,
|
|
2119
2119
|
providerName: _.web_name,
|
|
2120
2120
|
machine: _.machine,
|
|
2121
|
-
onClick: () =>
|
|
2121
|
+
onClick: () => x(_)
|
|
2122
2122
|
},
|
|
2123
|
-
ln(_,
|
|
2123
|
+
ln(_, v)
|
|
2124
2124
|
);
|
|
2125
2125
|
})
|
|
2126
2126
|
}
|
|
@@ -2130,7 +2130,7 @@ const Qa = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2130
2130
|
{
|
|
2131
2131
|
variant: "primary",
|
|
2132
2132
|
size: "lg",
|
|
2133
|
-
onClick:
|
|
2133
|
+
onClick: T,
|
|
2134
2134
|
children: "Ver más"
|
|
2135
2135
|
}
|
|
2136
2136
|
) })
|
|
@@ -2192,11 +2192,11 @@ const Qa = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2192
2192
|
gridSize: s = 1,
|
|
2193
2193
|
isPersonalize: d = !1
|
|
2194
2194
|
}) => {
|
|
2195
|
-
const p = ae(), f = ne(), u = se(), l = V(null), [c, g] = K({ isStart: !0, isEnd: !1 }),
|
|
2195
|
+
const p = ae(), f = ne(), u = se(), l = V(null), [c, g] = K({ isStart: !0, isEnd: !1 }), b = un(d), { resolvedItems: x, loading: T } = on(
|
|
2196
2196
|
e,
|
|
2197
|
-
|
|
2198
|
-
), _ =
|
|
2199
|
-
var
|
|
2197
|
+
b
|
|
2198
|
+
), _ = b ? x : Array.isArray(e) ? e : [], v = () => {
|
|
2199
|
+
var $;
|
|
2200
2200
|
p({
|
|
2201
2201
|
element: "casino_prev",
|
|
2202
2202
|
label: `${f} - OraculoSeccionCasino ${d ? " - personalize" : ""} - Anterior`,
|
|
@@ -2207,9 +2207,9 @@ const Qa = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2207
2207
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2208
2208
|
},
|
|
2209
2209
|
tags: { section: "OraculoSeccionCasino" }
|
|
2210
|
-
}), (
|
|
2211
|
-
},
|
|
2212
|
-
var
|
|
2210
|
+
}), ($ = l.current) == null || $.prev();
|
|
2211
|
+
}, I = () => {
|
|
2212
|
+
var $;
|
|
2213
2213
|
p({
|
|
2214
2214
|
element: "casino_next",
|
|
2215
2215
|
label: `${f} - OraculoSeccionCasino ${d ? " - personalize" : ""} - Siguiente`,
|
|
@@ -2220,7 +2220,7 @@ const Qa = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2220
2220
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2221
2221
|
},
|
|
2222
2222
|
tags: { section: "OraculoSeccionCasino" }
|
|
2223
|
-
}), (
|
|
2223
|
+
}), ($ = l.current) == null || $.next();
|
|
2224
2224
|
}, U = () => {
|
|
2225
2225
|
if (p({
|
|
2226
2226
|
element: "casino_view_more",
|
|
@@ -2237,13 +2237,13 @@ const Qa = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2237
2237
|
return;
|
|
2238
2238
|
}
|
|
2239
2239
|
typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/casino");
|
|
2240
|
-
},
|
|
2240
|
+
}, O = ($ = !0, w = 4) => {
|
|
2241
2241
|
const E = (A) => Array.from({ length: A }, (R, y) => ({
|
|
2242
2242
|
id: `sk-${A}-${y}`,
|
|
2243
2243
|
imageUrl: ""
|
|
2244
2244
|
})), L = [];
|
|
2245
|
-
return
|
|
2246
|
-
},
|
|
2245
|
+
return $ && L.push({ id: "mosaic-loading", kind: "mosaic", items: E(5) }), L.push({ id: "grid-loading", kind: "grid", items: E(w) }), L;
|
|
2246
|
+
}, k = b ? T : !Array.isArray(e) || e.length === 0, S = Ue("(max-width:950px)"), B = k ? O(r, s) : mn(_, r, s);
|
|
2247
2247
|
return /* @__PURE__ */ t("section", { children: /* @__PURE__ */ h(H, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
2248
2248
|
/* @__PURE__ */ h(
|
|
2249
2249
|
q,
|
|
@@ -2269,7 +2269,7 @@ const Qa = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2269
2269
|
variant: "secondary",
|
|
2270
2270
|
iconOnly: !0,
|
|
2271
2271
|
leftIcon: /* @__PURE__ */ t(st, {}),
|
|
2272
|
-
onClick:
|
|
2272
|
+
onClick: v,
|
|
2273
2273
|
disabled: c.isStart
|
|
2274
2274
|
}
|
|
2275
2275
|
),
|
|
@@ -2280,7 +2280,7 @@ const Qa = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2280
2280
|
variant: "secondary",
|
|
2281
2281
|
iconOnly: !0,
|
|
2282
2282
|
rightIcon: /* @__PURE__ */ t(lt, {}),
|
|
2283
|
-
onClick:
|
|
2283
|
+
onClick: I,
|
|
2284
2284
|
disabled: c.isEnd
|
|
2285
2285
|
}
|
|
2286
2286
|
)
|
|
@@ -2316,16 +2316,16 @@ const Qa = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2316
2316
|
padding: { left: "24px", right: "24px" }
|
|
2317
2317
|
}
|
|
2318
2318
|
},
|
|
2319
|
-
renderItem: (
|
|
2319
|
+
renderItem: ($) => /* @__PURE__ */ t("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ t(
|
|
2320
2320
|
pt,
|
|
2321
2321
|
{
|
|
2322
|
-
items:
|
|
2323
|
-
layout:
|
|
2324
|
-
loading:
|
|
2325
|
-
onClick: (
|
|
2326
|
-
if (
|
|
2322
|
+
items: $.items,
|
|
2323
|
+
layout: $.kind === "mosaic" ? "mosaic" : "grid",
|
|
2324
|
+
loading: k,
|
|
2325
|
+
onClick: (w) => {
|
|
2326
|
+
if (k) return;
|
|
2327
2327
|
const E = _.find(
|
|
2328
|
-
(R, y) => String(yt(R, y)) === String(
|
|
2328
|
+
(R, y) => String(yt(R, y)) === String(w.id)
|
|
2329
2329
|
);
|
|
2330
2330
|
if (!E) return;
|
|
2331
2331
|
o == null || o(E), p({
|
|
@@ -2347,7 +2347,7 @@ const Qa = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2347
2347
|
}
|
|
2348
2348
|
}
|
|
2349
2349
|
) }),
|
|
2350
|
-
onMove: ({ isStart:
|
|
2350
|
+
onMove: ({ isStart: $, isEnd: w }) => g({ isStart: $, isEnd: w })
|
|
2351
2351
|
}
|
|
2352
2352
|
)
|
|
2353
2353
|
] }) });
|
|
@@ -2417,14 +2417,14 @@ const Qa = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2417
2417
|
gridSize: s = 1,
|
|
2418
2418
|
isPersonalize: d = !1
|
|
2419
2419
|
}) => {
|
|
2420
|
-
const p = V(null), [f, u] = K({ isStart: !0, isEnd: !1 }), l = ae(), c = ne(), g = se(),
|
|
2420
|
+
const p = V(null), [f, u] = K({ isStart: !0, isEnd: !1 }), l = ae(), c = ne(), g = se(), b = fn(d), { resolvedItems: x, loading: T } = rn(
|
|
2421
2421
|
e,
|
|
2422
|
-
|
|
2423
|
-
), _ =
|
|
2422
|
+
b
|
|
2423
|
+
), _ = b ? x : Array.isArray(e) ? e : [], v = () => {
|
|
2424
2424
|
var B;
|
|
2425
2425
|
l({
|
|
2426
2426
|
element: "virtuales_prev",
|
|
2427
|
-
label: `${c} - OraculoSeccionVirtuales${
|
|
2427
|
+
label: `${c} - OraculoSeccionVirtuales${b ? " - personalize" : ""} - Anterior`,
|
|
2428
2428
|
target: "prev",
|
|
2429
2429
|
event_type: "click",
|
|
2430
2430
|
module_id: g,
|
|
@@ -2433,11 +2433,11 @@ const Qa = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2433
2433
|
},
|
|
2434
2434
|
tags: { section: "OraculoSeccionVirtuales" }
|
|
2435
2435
|
}), (B = p.current) == null || B.prev();
|
|
2436
|
-
},
|
|
2436
|
+
}, I = () => {
|
|
2437
2437
|
var B;
|
|
2438
2438
|
l({
|
|
2439
2439
|
element: "virtuales_next",
|
|
2440
|
-
label: `${c} - OraculoSeccionVirtuales${
|
|
2440
|
+
label: `${c} - OraculoSeccionVirtuales${b ? " - personalize" : ""} - Siguiente`,
|
|
2441
2441
|
target: "next",
|
|
2442
2442
|
event_type: "click",
|
|
2443
2443
|
module_id: g,
|
|
@@ -2449,7 +2449,7 @@ const Qa = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2449
2449
|
}, U = () => {
|
|
2450
2450
|
if (l({
|
|
2451
2451
|
element: "virtuales_view_more",
|
|
2452
|
-
label: `${c} - OraculoSeccionVirtuales${
|
|
2452
|
+
label: `${c} - OraculoSeccionVirtuales${b ? " - personalize" : ""} - Ver más`,
|
|
2453
2453
|
target: "https://www.olimpo.bet/juegos-virtuales",
|
|
2454
2454
|
event_type: "click",
|
|
2455
2455
|
module_id: g,
|
|
@@ -2462,7 +2462,7 @@ const Qa = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2462
2462
|
return;
|
|
2463
2463
|
}
|
|
2464
2464
|
typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/juegos-virtuales");
|
|
2465
|
-
},
|
|
2465
|
+
}, O = b ? T : !Array.isArray(e) || e.length === 0, k = xe("(max-width:950px)"), S = O ? hn(r, s) : gn(_, r, s);
|
|
2466
2466
|
return /* @__PURE__ */ t("section", { children: /* @__PURE__ */ h(H, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
2467
2467
|
/* @__PURE__ */ h(
|
|
2468
2468
|
q,
|
|
@@ -2488,7 +2488,7 @@ const Qa = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2488
2488
|
variant: "secondary",
|
|
2489
2489
|
iconOnly: !0,
|
|
2490
2490
|
leftIcon: /* @__PURE__ */ t(st, {}),
|
|
2491
|
-
onClick:
|
|
2491
|
+
onClick: v,
|
|
2492
2492
|
disabled: f.isStart
|
|
2493
2493
|
}
|
|
2494
2494
|
),
|
|
@@ -2499,7 +2499,7 @@ const Qa = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2499
2499
|
variant: "secondary",
|
|
2500
2500
|
iconOnly: !0,
|
|
2501
2501
|
rightIcon: /* @__PURE__ */ t(lt, {}),
|
|
2502
|
-
onClick:
|
|
2502
|
+
onClick: I,
|
|
2503
2503
|
disabled: f.isEnd
|
|
2504
2504
|
}
|
|
2505
2505
|
)
|
|
@@ -2533,50 +2533,50 @@ const Qa = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2533
2533
|
}
|
|
2534
2534
|
},
|
|
2535
2535
|
enableHorizontalWheel: !0,
|
|
2536
|
-
showRightGradient: !
|
|
2536
|
+
showRightGradient: !k,
|
|
2537
2537
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
2538
2538
|
renderItem: (B) => /* @__PURE__ */ t("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ t(
|
|
2539
2539
|
pt,
|
|
2540
2540
|
{
|
|
2541
2541
|
items: B.items,
|
|
2542
2542
|
layout: B.kind === "mosaic" ? "mosaic" : "grid",
|
|
2543
|
-
loading:
|
|
2544
|
-
onClick: (
|
|
2545
|
-
if (
|
|
2546
|
-
const
|
|
2547
|
-
(A, R) => String(xt(A, R)) === String(
|
|
2543
|
+
loading: O,
|
|
2544
|
+
onClick: ($) => {
|
|
2545
|
+
if (O) return;
|
|
2546
|
+
const w = _.find(
|
|
2547
|
+
(A, R) => String(xt(A, R)) === String($.id)
|
|
2548
2548
|
);
|
|
2549
|
-
if (!
|
|
2549
|
+
if (!w) {
|
|
2550
2550
|
console.warn(
|
|
2551
2551
|
"[virtuales] no se encontró game para id:",
|
|
2552
|
-
|
|
2552
|
+
$.id
|
|
2553
2553
|
);
|
|
2554
2554
|
return;
|
|
2555
2555
|
}
|
|
2556
|
-
o == null || o(
|
|
2556
|
+
o == null || o(w), l({
|
|
2557
2557
|
element: "virtuales_game_card",
|
|
2558
|
-
label: `${c} - OraculoSeccionVirtuales${
|
|
2559
|
-
target: String(
|
|
2558
|
+
label: `${c} - OraculoSeccionVirtuales${b ? " - personalize" : ""} - Game: ${String(w.machine || "unknown")}`,
|
|
2559
|
+
target: String(w.machine || "unknown"),
|
|
2560
2560
|
event_type: "click",
|
|
2561
2561
|
module_id: g,
|
|
2562
2562
|
metadata: {
|
|
2563
2563
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2564
2564
|
},
|
|
2565
2565
|
tags: {
|
|
2566
|
-
game_name: String(
|
|
2566
|
+
game_name: String(w.machine || "unknown"),
|
|
2567
2567
|
section: a || "Virtuales"
|
|
2568
2568
|
}
|
|
2569
2569
|
});
|
|
2570
2570
|
const E = pe("showIframe"), L = pe("loadMachine");
|
|
2571
2571
|
E == null || E(), L == null || L(
|
|
2572
|
-
|
|
2572
|
+
w,
|
|
2573
2573
|
!1,
|
|
2574
|
-
|
|
2574
|
+
b ? "VIRTUALES_PERSONALIZE" : "VIRTUALES"
|
|
2575
2575
|
);
|
|
2576
2576
|
}
|
|
2577
2577
|
}
|
|
2578
2578
|
) }),
|
|
2579
|
-
onMove: ({ isStart: B, isEnd:
|
|
2579
|
+
onMove: ({ isStart: B, isEnd: $ }) => u({ isStart: B, isEnd: $ })
|
|
2580
2580
|
}
|
|
2581
2581
|
)
|
|
2582
2582
|
] }) });
|
|
@@ -2618,27 +2618,27 @@ const Qa = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2618
2618
|
items: n,
|
|
2619
2619
|
backgroundImageUrl: o
|
|
2620
2620
|
}) => {
|
|
2621
|
-
const i = ae(), r = ne(), s = xe("(max-width: 767px)"), d = n.length > 1, p = V(null), f = V(null), u = V(!1), l = V(!1), [c, g] = K(0), [
|
|
2621
|
+
const i = ae(), r = ne(), s = xe("(max-width: 767px)"), d = n.length > 1, p = V(null), f = V(null), u = V(!1), l = V(!1), [c, g] = K(0), [b, x] = K({ isStart: !0, isEnd: !1 });
|
|
2622
2622
|
Q(() => {
|
|
2623
|
-
const
|
|
2623
|
+
const w = setTimeout(() => {
|
|
2624
2624
|
u.current = !0;
|
|
2625
2625
|
}, 500);
|
|
2626
|
-
return () => clearTimeout(
|
|
2626
|
+
return () => clearTimeout(w);
|
|
2627
2627
|
}, []);
|
|
2628
|
-
const
|
|
2628
|
+
const T = V(b);
|
|
2629
2629
|
Q(() => {
|
|
2630
|
-
|
|
2631
|
-
}, [
|
|
2632
|
-
const _ = V(!1),
|
|
2630
|
+
T.current = b;
|
|
2631
|
+
}, [b]);
|
|
2632
|
+
const _ = V(!1), v = V(null), I = n == null ? void 0 : n[c], U = re(
|
|
2633
2633
|
() => {
|
|
2634
|
-
var
|
|
2635
|
-
return (E = (
|
|
2634
|
+
var w, E;
|
|
2635
|
+
return (E = (w = I == null ? void 0 : I.backgroundImageUrl) != null ? w : o) != null ? E : "";
|
|
2636
2636
|
},
|
|
2637
|
-
[
|
|
2638
|
-
),
|
|
2637
|
+
[I, o]
|
|
2638
|
+
), O = vn(U), k = !n || n.length === 0, S = (w, E) => {
|
|
2639
2639
|
i({
|
|
2640
2640
|
element: "welcome_banner_button",
|
|
2641
|
-
label: `OraculoSeccionBonoBienvenida - Banner button click: ${
|
|
2641
|
+
label: `OraculoSeccionBonoBienvenida - Banner button click: ${w.title || "OraculoSeccionBonoBienvenida - Banner " + (E + 1)}`,
|
|
2642
2642
|
target: "action",
|
|
2643
2643
|
event_type: "click",
|
|
2644
2644
|
module_id: 301,
|
|
@@ -2648,55 +2648,55 @@ const Qa = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2648
2648
|
banner_total: (n == null ? void 0 : n.length) || 0
|
|
2649
2649
|
},
|
|
2650
2650
|
tags: {
|
|
2651
|
-
banner_title:
|
|
2652
|
-
button_text:
|
|
2651
|
+
banner_title: w.title || "no_title",
|
|
2652
|
+
button_text: w.buttonText || "no_text"
|
|
2653
2653
|
}
|
|
2654
|
-
}),
|
|
2655
|
-
}, B = (
|
|
2654
|
+
}), w.onButtonClick && w.onButtonClick();
|
|
2655
|
+
}, B = (w) => {
|
|
2656
2656
|
if (!u.current) return;
|
|
2657
2657
|
if (l.current) {
|
|
2658
2658
|
l.current = !1;
|
|
2659
2659
|
return;
|
|
2660
2660
|
}
|
|
2661
|
-
const E = n == null ? void 0 : n[
|
|
2661
|
+
const E = n == null ? void 0 : n[w];
|
|
2662
2662
|
i({
|
|
2663
2663
|
element: "welcome_banner_carousel",
|
|
2664
|
-
label: `Landing: ${r} - OraculoSeccionBonoBienvenida - Banner view: ${(E == null ? void 0 : E.title) || "OraculoSeccionBonoBienvenida - Banner " + (
|
|
2664
|
+
label: `Landing: ${r} - OraculoSeccionBonoBienvenida - Banner view: ${(E == null ? void 0 : E.title) || "OraculoSeccionBonoBienvenida - Banner " + (w + 1)}`,
|
|
2665
2665
|
target: "no_url",
|
|
2666
2666
|
event_type: "view",
|
|
2667
2667
|
module_id: 301,
|
|
2668
2668
|
metadata: {
|
|
2669
2669
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
2670
|
-
slide_index:
|
|
2670
|
+
slide_index: w + 1,
|
|
2671
2671
|
total_slides: (n == null ? void 0 : n.length) || 0,
|
|
2672
2672
|
interaction_type: "manual_slide"
|
|
2673
2673
|
},
|
|
2674
2674
|
tags: {
|
|
2675
|
-
banner_position: String(
|
|
2675
|
+
banner_position: String(w + 1),
|
|
2676
2676
|
banner_title: (E == null ? void 0 : E.title) || "no_title"
|
|
2677
2677
|
}
|
|
2678
2678
|
});
|
|
2679
2679
|
};
|
|
2680
2680
|
Q(() => {
|
|
2681
|
-
const
|
|
2682
|
-
if (!
|
|
2681
|
+
const w = f.current;
|
|
2682
|
+
if (!w) return;
|
|
2683
2683
|
const E = 6, L = 380, A = (R) => {
|
|
2684
2684
|
var W, G;
|
|
2685
|
-
if (
|
|
2685
|
+
if (k || R.ctrlKey || _.current) return;
|
|
2686
2686
|
const y = R.deltaX, P = R.deltaY;
|
|
2687
2687
|
if (Math.abs(y) <= Math.abs(P) || Math.abs(y) < E) return;
|
|
2688
2688
|
const D = y > 0;
|
|
2689
|
-
D &&
|
|
2689
|
+
D && T.current.isEnd || !D && T.current.isStart || (R.preventDefault(), _.current = !0, D ? (W = p.current) == null || W.next() : (G = p.current) == null || G.prev(), v.current && window.clearTimeout(v.current), v.current = window.setTimeout(() => {
|
|
2690
2690
|
_.current = !1;
|
|
2691
2691
|
}, L));
|
|
2692
2692
|
};
|
|
2693
|
-
return
|
|
2694
|
-
|
|
2693
|
+
return w.addEventListener("wheel", A, { passive: !1 }), () => {
|
|
2694
|
+
w.removeEventListener("wheel", A), v.current && window.clearTimeout(v.current);
|
|
2695
2695
|
};
|
|
2696
|
-
}, [
|
|
2697
|
-
const
|
|
2696
|
+
}, [k]);
|
|
2697
|
+
const $ = (w, E, L) => {
|
|
2698
2698
|
var y, P;
|
|
2699
|
-
const A = (y =
|
|
2699
|
+
const A = (y = w.headline) != null ? y : e, R = (P = w.headline2) != null ? P : a;
|
|
2700
2700
|
return E ? /* @__PURE__ */ h(
|
|
2701
2701
|
q,
|
|
2702
2702
|
{
|
|
@@ -2731,8 +2731,8 @@ const Qa = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2731
2731
|
/* @__PURE__ */ t(q, { sx: { display: "flex", justifyContent: "center", alignItems: "center" }, children: /* @__PURE__ */ t(q, { sx: { width: "100%", maxWidth: 600, mx: "auto" }, children: /* @__PURE__ */ t(
|
|
2732
2732
|
Je,
|
|
2733
2733
|
{
|
|
2734
|
-
...
|
|
2735
|
-
onButtonClick: () => S(
|
|
2734
|
+
...w,
|
|
2735
|
+
onButtonClick: () => S(w, L),
|
|
2736
2736
|
variant: "large"
|
|
2737
2737
|
}
|
|
2738
2738
|
) }) })
|
|
@@ -2749,14 +2749,14 @@ const Qa = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2749
2749
|
/* @__PURE__ */ t(q, { sx: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(
|
|
2750
2750
|
Je,
|
|
2751
2751
|
{
|
|
2752
|
-
...
|
|
2753
|
-
onButtonClick: () => S(
|
|
2752
|
+
...w,
|
|
2753
|
+
onButtonClick: () => S(w, L),
|
|
2754
2754
|
variant: "small"
|
|
2755
2755
|
}
|
|
2756
2756
|
) })
|
|
2757
2757
|
] });
|
|
2758
2758
|
};
|
|
2759
|
-
return /* @__PURE__ */ h(q, { component: "section", sx:
|
|
2759
|
+
return /* @__PURE__ */ h(q, { component: "section", sx: O, children: [
|
|
2760
2760
|
/* @__PURE__ */ t("div", { ref: f, style: { width: "100%" }, children: /* @__PURE__ */ t(
|
|
2761
2761
|
he,
|
|
2762
2762
|
{
|
|
@@ -2774,9 +2774,9 @@ const Qa = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2774
2774
|
// arrows: false,
|
|
2775
2775
|
// drag: true,
|
|
2776
2776
|
},
|
|
2777
|
-
renderItem: (
|
|
2778
|
-
onMove: ({ index:
|
|
2779
|
-
g(
|
|
2777
|
+
renderItem: (w, E) => /* @__PURE__ */ t(q, { sx: { width: "100%" }, children: $(w, !s, E) }),
|
|
2778
|
+
onMove: ({ index: w, isStart: E, isEnd: L }) => {
|
|
2779
|
+
g(w), typeof E == "boolean" && typeof L == "boolean" && x({ isStart: E, isEnd: L }), B(w);
|
|
2780
2780
|
}
|
|
2781
2781
|
}
|
|
2782
2782
|
) }),
|
|
@@ -2785,23 +2785,23 @@ const Qa = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2785
2785
|
{
|
|
2786
2786
|
total: n.length,
|
|
2787
2787
|
active: c,
|
|
2788
|
-
onSelect: (
|
|
2788
|
+
onSelect: (w) => {
|
|
2789
2789
|
var E;
|
|
2790
2790
|
i({
|
|
2791
2791
|
element: "welcome_banner_dots",
|
|
2792
|
-
label: `Landing: ${r} - OraculoSeccionBonoBienvenida - Dot navigation: Banner ${
|
|
2792
|
+
label: `Landing: ${r} - OraculoSeccionBonoBienvenida - Dot navigation: Banner ${w + 1}`,
|
|
2793
2793
|
target: "no_url",
|
|
2794
2794
|
event_type: "click",
|
|
2795
2795
|
module_id: 301,
|
|
2796
2796
|
metadata: {
|
|
2797
2797
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
2798
|
-
dot_index:
|
|
2798
|
+
dot_index: w + 1,
|
|
2799
2799
|
total_dots: n.length
|
|
2800
2800
|
},
|
|
2801
2801
|
tags: {
|
|
2802
2802
|
navigation_type: "dot_click"
|
|
2803
2803
|
}
|
|
2804
|
-
}), g(
|
|
2804
|
+
}), g(w), (E = p.current) == null || E.go(w);
|
|
2805
2805
|
}
|
|
2806
2806
|
}
|
|
2807
2807
|
) })
|
|
@@ -2817,7 +2817,15 @@ const Qa = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2817
2817
|
const s = V(null), d = V(null), p = ae(), f = ne(), u = se();
|
|
2818
2818
|
if (!n) return null;
|
|
2819
2819
|
const l = async () => {
|
|
2820
|
-
|
|
2820
|
+
let x = r;
|
|
2821
|
+
if ((!(x != null && x.user) || !(x != null && x.session)) && typeof window != "undefined")
|
|
2822
|
+
try {
|
|
2823
|
+
const T = localStorage.getItem("user");
|
|
2824
|
+
T && (x = JSON.parse(T));
|
|
2825
|
+
} catch (T) {
|
|
2826
|
+
console.error("[getMarketPlaceUrl] Error parsing localStorage user", T);
|
|
2827
|
+
}
|
|
2828
|
+
if (!(x != null && x.user) || !(x != null && x.session))
|
|
2821
2829
|
return console.warn("User data missing"), null;
|
|
2822
2830
|
p({
|
|
2823
2831
|
element: "club_olimpo_button",
|
|
@@ -2831,40 +2839,40 @@ const Qa = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2831
2839
|
tags: { section: "OraculoSeccionClubOlimpo" }
|
|
2832
2840
|
});
|
|
2833
2841
|
try {
|
|
2834
|
-
const
|
|
2835
|
-
idUsuario: "PE" +
|
|
2836
|
-
session_id:
|
|
2842
|
+
const T = {
|
|
2843
|
+
idUsuario: "PE" + x.user,
|
|
2844
|
+
session_id: x.session,
|
|
2837
2845
|
pagina: "home"
|
|
2838
|
-
},
|
|
2846
|
+
}, v = await fetch("https://apipe.mktolimpo.com/api/pm/token", {
|
|
2839
2847
|
method: "POST",
|
|
2840
2848
|
headers: {
|
|
2841
2849
|
"Content-Type": "application/json"
|
|
2842
2850
|
},
|
|
2843
|
-
body: JSON.stringify(
|
|
2851
|
+
body: JSON.stringify(T)
|
|
2844
2852
|
});
|
|
2845
|
-
if (
|
|
2846
|
-
const
|
|
2847
|
-
return
|
|
2853
|
+
if (v.ok) {
|
|
2854
|
+
const I = await v.json();
|
|
2855
|
+
return I == null ? void 0 : I.url;
|
|
2848
2856
|
}
|
|
2849
2857
|
return null;
|
|
2850
|
-
} catch (
|
|
2851
|
-
return console.error("[getMarketPlaceUrl]",
|
|
2858
|
+
} catch (T) {
|
|
2859
|
+
return console.error("[getMarketPlaceUrl]", T), null;
|
|
2852
2860
|
}
|
|
2853
2861
|
}, c = async () => {
|
|
2854
|
-
const
|
|
2855
|
-
|
|
2862
|
+
const x = await l();
|
|
2863
|
+
x ? window.location.href = x : typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/conoce-club-olimpo");
|
|
2856
2864
|
}, g = Array.isArray(n) ? n[o] : n;
|
|
2857
2865
|
Nt(() => {
|
|
2858
2866
|
if (!s.current || !d.current || typeof ResizeObserver == "undefined") return;
|
|
2859
|
-
const
|
|
2860
|
-
|
|
2867
|
+
const x = s.current, T = d.current, _ = () => {
|
|
2868
|
+
x.style.setProperty(
|
|
2861
2869
|
"--orc-co-bottomH",
|
|
2862
|
-
`${
|
|
2870
|
+
`${T.offsetHeight + 16}px`
|
|
2863
2871
|
);
|
|
2864
|
-
},
|
|
2865
|
-
return
|
|
2872
|
+
}, v = new ResizeObserver(_);
|
|
2873
|
+
return v.observe(T), _(), () => v.disconnect();
|
|
2866
2874
|
}, []);
|
|
2867
|
-
const
|
|
2875
|
+
const b = [
|
|
2868
2876
|
"orc-co-wrap",
|
|
2869
2877
|
a ? "orc-co-fullBleed" : "",
|
|
2870
2878
|
e
|
|
@@ -2873,7 +2881,7 @@ const Qa = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2873
2881
|
"section",
|
|
2874
2882
|
{
|
|
2875
2883
|
ref: s,
|
|
2876
|
-
className:
|
|
2884
|
+
className: b,
|
|
2877
2885
|
"aria-label": i || g.imgAlt || "Club Olimpo",
|
|
2878
2886
|
children: /* @__PURE__ */ t("div", { ref: d, children: /* @__PURE__ */ t(
|
|
2879
2887
|
wa,
|
|
@@ -2905,7 +2913,7 @@ function In(e, a, n) {
|
|
|
2905
2913
|
const i = o.prePackCouponRows.flatMap((c) => Sn(c).map((g) => ({ eventId: c.eventId, outcomeId: g }))), r = new Set(i.map((c) => c.eventId)), s = new Set(i.map((c) => c.outcomeId)), d = new Map(i.map((c, g) => [c.outcomeId, g])), p = {};
|
|
2906
2914
|
for (const c of a) {
|
|
2907
2915
|
if (!r.has(c.eventId)) continue;
|
|
2908
|
-
const g = c.outcomes.filter((
|
|
2916
|
+
const g = c.outcomes.filter((b) => s.has(b.id)).map((b) => ({ ...b, position: d.get(b.id) }));
|
|
2909
2917
|
g.length && ((l = p[u = c.eventId]) != null || (p[u] = []), p[c.eventId].push({ ...c, outcomes: g }));
|
|
2910
2918
|
}
|
|
2911
2919
|
const f = e.filter((c) => r.has(c.id)).map((c) => {
|
|
@@ -2937,8 +2945,8 @@ function En({
|
|
|
2937
2945
|
onViewMore: o,
|
|
2938
2946
|
className: i = ""
|
|
2939
2947
|
}) {
|
|
2940
|
-
const r = ae(), s = ne(), d = se(), p = V(null), [f, u] = 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",
|
|
2941
|
-
var
|
|
2948
|
+
const r = ae(), s = ne(), d = se(), p = V(null), [f, u] = 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 = () => {
|
|
2949
|
+
var O;
|
|
2942
2950
|
r({
|
|
2943
2951
|
element: "evento_combinadas_prev",
|
|
2944
2952
|
label: `${s} - OraculoSeccionEventoCombinadas - Click: Anterior`,
|
|
@@ -2948,9 +2956,9 @@ function En({
|
|
|
2948
2956
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2949
2957
|
},
|
|
2950
2958
|
tags: { section: "OraculoSeccionEventoCombinadas" }
|
|
2951
|
-
}), (
|
|
2952
|
-
},
|
|
2953
|
-
var
|
|
2959
|
+
}), (O = p.current) == null || O.prev();
|
|
2960
|
+
}, x = () => {
|
|
2961
|
+
var O;
|
|
2954
2962
|
r({
|
|
2955
2963
|
element: "evento_combinadas_next",
|
|
2956
2964
|
label: `${s} - OraculoSeccionEventoCombinadas - Click: Siguiente`,
|
|
@@ -2960,8 +2968,8 @@ function En({
|
|
|
2960
2968
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2961
2969
|
},
|
|
2962
2970
|
tags: { section: "OraculoSeccionEventoCombinadas" }
|
|
2963
|
-
}), (
|
|
2964
|
-
},
|
|
2971
|
+
}), (O = p.current) == null || O.next();
|
|
2972
|
+
}, T = () => {
|
|
2965
2973
|
r({
|
|
2966
2974
|
element: "evento_combinadas_ver_mas",
|
|
2967
2975
|
label: `${s} - OraculoSeccionEventoCombinadas - Click: Ver más`,
|
|
@@ -2972,26 +2980,26 @@ function En({
|
|
|
2972
2980
|
},
|
|
2973
2981
|
tags: { section: "OraculoSeccionEventoCombinadas" }
|
|
2974
2982
|
}), za();
|
|
2975
|
-
}, _ = re(() => l.filter((
|
|
2976
|
-
async function
|
|
2977
|
-
var
|
|
2983
|
+
}, _ = re(() => l.filter((O) => O.combinadoTotal !== null), [l]);
|
|
2984
|
+
async function v() {
|
|
2985
|
+
var O, k, S, B;
|
|
2978
2986
|
try {
|
|
2979
|
-
const
|
|
2987
|
+
const w = await (await fetch(g)).json(), E = (B = (S = (k = (O = w == null ? void 0 : w.group) == null ? void 0 : O.groups) == null ? void 0 : k.map((y) => y.id)) == null ? void 0 : S.filter(Boolean)) == null ? void 0 : B.join(",");
|
|
2980
2988
|
if (!E) {
|
|
2981
2989
|
console.error("Could not extract group ID");
|
|
2982
2990
|
return;
|
|
2983
2991
|
}
|
|
2984
2992
|
const L = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${E}.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764283566783&prePackCouponTags=CUSTOM`, R = await (await fetch(L)).json();
|
|
2985
2993
|
c(In(R.events, R.betOffers, R.prePackCoupons));
|
|
2986
|
-
} catch (
|
|
2987
|
-
console.error("loadDataEventSpecial error:",
|
|
2994
|
+
} catch ($) {
|
|
2995
|
+
console.error("loadDataEventSpecial error:", $);
|
|
2988
2996
|
}
|
|
2989
2997
|
}
|
|
2990
2998
|
Q(() => {
|
|
2991
|
-
|
|
2999
|
+
v();
|
|
2992
3000
|
}, []);
|
|
2993
|
-
const
|
|
2994
|
-
return _.length === 0 ? null : /* @__PURE__ */ t("section", { className:
|
|
3001
|
+
const I = i || void 0, U = xe("(max-width:950px)");
|
|
3002
|
+
return _.length === 0 ? null : /* @__PURE__ */ t("section", { className: I, style: {
|
|
2995
3003
|
// paddingLeft: 16,
|
|
2996
3004
|
// paddingRight: 16,
|
|
2997
3005
|
width: "100%",
|
|
@@ -3008,7 +3016,7 @@ function En({
|
|
|
3008
3016
|
variant: "secondary",
|
|
3009
3017
|
iconOnly: !0,
|
|
3010
3018
|
leftIcon: /* @__PURE__ */ t(ze, {}),
|
|
3011
|
-
onClick:
|
|
3019
|
+
onClick: b,
|
|
3012
3020
|
disabled: f.isStart
|
|
3013
3021
|
}
|
|
3014
3022
|
),
|
|
@@ -3019,12 +3027,12 @@ function En({
|
|
|
3019
3027
|
variant: "secondary",
|
|
3020
3028
|
iconOnly: !0,
|
|
3021
3029
|
rightIcon: /* @__PURE__ */ t(Ae, {}),
|
|
3022
|
-
onClick:
|
|
3030
|
+
onClick: x,
|
|
3023
3031
|
disabled: f.isEnd
|
|
3024
3032
|
}
|
|
3025
3033
|
)
|
|
3026
3034
|
] }),
|
|
3027
|
-
/* @__PURE__ */ t(J, { variant: "secondary", onClick:
|
|
3035
|
+
/* @__PURE__ */ t(J, { variant: "secondary", onClick: T, children: "Ver más" })
|
|
3028
3036
|
] })
|
|
3029
3037
|
] }) }),
|
|
3030
3038
|
/* @__PURE__ */ t(
|
|
@@ -3041,8 +3049,8 @@ function En({
|
|
|
3041
3049
|
breakpoints: {
|
|
3042
3050
|
768: { perPage: 1.2, gap: "12px", padding: { left: "24px", right: "24px" } }
|
|
3043
3051
|
},
|
|
3044
|
-
renderItem: (
|
|
3045
|
-
onMove: ({ isStart:
|
|
3052
|
+
renderItem: (O) => /* @__PURE__ */ t(On, { coupon: O }),
|
|
3053
|
+
onMove: ({ isStart: O, isEnd: k }) => u({ isStart: O, isEnd: k })
|
|
3046
3054
|
}
|
|
3047
3055
|
)
|
|
3048
3056
|
] }) });
|
|
@@ -3101,46 +3109,46 @@ function wt({
|
|
|
3101
3109
|
return Q(() => {
|
|
3102
3110
|
if (!(!e || e.length === 0))
|
|
3103
3111
|
return f.current && clearTimeout(f.current), f.current = setTimeout(() => {
|
|
3104
|
-
var U,
|
|
3105
|
-
const l = (U = a.start) != null ? U : 0, c = (
|
|
3106
|
-
let
|
|
3112
|
+
var U, O;
|
|
3113
|
+
const l = (U = a.start) != null ? U : 0, c = (O = a.end) != null ? O : 7, g = Math.max(0, l - o), b = Math.min(e.length - 1, c + o);
|
|
3114
|
+
let x = g, T = b;
|
|
3107
3115
|
const _ = u.current;
|
|
3108
|
-
_ && (g > _.end && (
|
|
3109
|
-
const
|
|
3110
|
-
if (
|
|
3111
|
-
|
|
3112
|
-
const
|
|
3116
|
+
_ && (g > _.end && (x = _.end + 1), b < _.start && (T = _.start - 1)), u.current = { start: g, end: b };
|
|
3117
|
+
const v = e.slice(x, T + 1).map((k) => k == null ? void 0 : k.id).filter((k) => !!k).filter((k) => !d.current.has(k)).filter((k) => !(k in r));
|
|
3118
|
+
if (v.length === 0) return;
|
|
3119
|
+
v.forEach((k) => d.current.add(k));
|
|
3120
|
+
const I = ++p.current;
|
|
3113
3121
|
(async () => {
|
|
3114
3122
|
try {
|
|
3115
|
-
const
|
|
3116
|
-
if (
|
|
3117
|
-
|
|
3123
|
+
const k = await n(v);
|
|
3124
|
+
if (I !== p.current) {
|
|
3125
|
+
v.forEach((B) => d.current.delete(B));
|
|
3118
3126
|
return;
|
|
3119
3127
|
}
|
|
3120
|
-
if (!(
|
|
3121
|
-
|
|
3128
|
+
if (!(k != null && k.events)) {
|
|
3129
|
+
v.forEach(
|
|
3122
3130
|
(B) => d.current.delete(B)
|
|
3123
3131
|
);
|
|
3124
3132
|
return;
|
|
3125
3133
|
}
|
|
3126
3134
|
s((B) => {
|
|
3127
|
-
const
|
|
3128
|
-
for (const [
|
|
3129
|
-
const L = Number(
|
|
3130
|
-
|
|
3135
|
+
const $ = { ...B };
|
|
3136
|
+
for (const [w, E] of Object.entries(k.events)) {
|
|
3137
|
+
const L = Number(w);
|
|
3138
|
+
$[L] || ($[L] = E);
|
|
3131
3139
|
}
|
|
3132
|
-
return
|
|
3140
|
+
return $;
|
|
3133
3141
|
});
|
|
3134
3142
|
const S = new Set(
|
|
3135
|
-
Object.keys(
|
|
3143
|
+
Object.keys(k.events).map(Number)
|
|
3136
3144
|
);
|
|
3137
|
-
|
|
3145
|
+
v.forEach((B) => {
|
|
3138
3146
|
d.current.delete(B);
|
|
3139
3147
|
});
|
|
3140
|
-
} catch (
|
|
3141
|
-
|
|
3148
|
+
} catch (k) {
|
|
3149
|
+
v.forEach(
|
|
3142
3150
|
(S) => d.current.delete(S)
|
|
3143
|
-
), console.error("Jersey fetch error",
|
|
3151
|
+
), console.error("Jersey fetch error", k);
|
|
3144
3152
|
}
|
|
3145
3153
|
})();
|
|
3146
3154
|
}, i), () => {
|
|
@@ -3168,39 +3176,39 @@ function An({
|
|
|
3168
3176
|
onViewMore: o,
|
|
3169
3177
|
className: i = ""
|
|
3170
3178
|
}) {
|
|
3171
|
-
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), [d, p] = K({ isStart: !0, isEnd: !1 }), [f, u] = K(null), [l, c] = K({ start: null, end: null }), [g,
|
|
3179
|
+
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), [d, p] = K({ isStart: !0, isEnd: !1 }), [f, u] = K(null), [l, c] = K({ start: null, end: null }), [g, b] = K(null), x = V(!1), T = ae(), _ = ne(), v = se(), I = V(/* @__PURE__ */ new Map()), U = () => {
|
|
3172
3180
|
var A;
|
|
3173
|
-
|
|
3181
|
+
T({
|
|
3174
3182
|
element: "evento_en_vivo_prev",
|
|
3175
3183
|
label: `${_} - OraculoSeccionEventoEnVivo - Anterior`,
|
|
3176
3184
|
target: "prev",
|
|
3177
3185
|
event_type: "click",
|
|
3178
|
-
module_id:
|
|
3186
|
+
module_id: v,
|
|
3179
3187
|
metadata: {
|
|
3180
3188
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
3181
3189
|
},
|
|
3182
3190
|
tags: { section: "OraculoSeccionEventoEnVivo" }
|
|
3183
3191
|
}), (A = s.current) == null || A.prev();
|
|
3184
|
-
},
|
|
3192
|
+
}, O = () => {
|
|
3185
3193
|
var A;
|
|
3186
|
-
|
|
3194
|
+
T({
|
|
3187
3195
|
element: "evento_en_vivo_next",
|
|
3188
3196
|
label: `${_} - OraculoSeccionEventoEnVivo - Siguiente`,
|
|
3189
3197
|
target: "next",
|
|
3190
3198
|
event_type: "click",
|
|
3191
|
-
module_id:
|
|
3199
|
+
module_id: v,
|
|
3192
3200
|
metadata: {
|
|
3193
3201
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
3194
3202
|
},
|
|
3195
3203
|
tags: { section: "OraculoSeccionEventoEnVivo" }
|
|
3196
3204
|
}), (A = s.current) == null || A.next();
|
|
3197
|
-
},
|
|
3198
|
-
|
|
3205
|
+
}, k = () => {
|
|
3206
|
+
T({
|
|
3199
3207
|
element: "evento_en_vivo_view_more",
|
|
3200
3208
|
label: `${_} - OraculoSeccionEventoEnVivo - Ver más`,
|
|
3201
3209
|
target: "ver_mas",
|
|
3202
3210
|
event_type: "click",
|
|
3203
|
-
module_id:
|
|
3211
|
+
module_id: v,
|
|
3204
3212
|
metadata: {
|
|
3205
3213
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
3206
3214
|
},
|
|
@@ -3209,11 +3217,11 @@ function An({
|
|
|
3209
3217
|
}, S = Ee(async () => {
|
|
3210
3218
|
var A;
|
|
3211
3219
|
try {
|
|
3212
|
-
if (!
|
|
3213
|
-
|
|
3220
|
+
if (!x.current) {
|
|
3221
|
+
x.current = !0;
|
|
3214
3222
|
try {
|
|
3215
3223
|
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) || [], X = /* @__PURE__ */ new Map();
|
|
3216
|
-
G.forEach((ee, m) => X.set(String(ee), m)),
|
|
3224
|
+
G.forEach((ee, m) => X.set(String(ee), m)), I.current = X;
|
|
3217
3225
|
} catch (D) {
|
|
3218
3226
|
console.error("Order fetch failed, using default sorting", D);
|
|
3219
3227
|
}
|
|
@@ -3221,11 +3229,11 @@ function An({
|
|
|
3221
3229
|
const R = await fetch(r);
|
|
3222
3230
|
if (!R.ok) throw new Error("Failed to fetch live events");
|
|
3223
3231
|
const y = await R.json(), P = Bn(y.events);
|
|
3224
|
-
if (
|
|
3232
|
+
if (I.current.size === 0)
|
|
3225
3233
|
u(P);
|
|
3226
3234
|
else {
|
|
3227
3235
|
const D = [...P].sort((W, G) => {
|
|
3228
|
-
const X =
|
|
3236
|
+
const X = I.current.get(String(W.event.id)), ee = I.current.get(String(G.event.id));
|
|
3229
3237
|
return (X !== void 0 ? X : 1 / 0) - (ee !== void 0 ? ee : 1 / 0);
|
|
3230
3238
|
});
|
|
3231
3239
|
u(D);
|
|
@@ -3248,8 +3256,8 @@ function An({
|
|
|
3248
3256
|
// same as your previous BUFFER
|
|
3249
3257
|
debounceMs: 300
|
|
3250
3258
|
// same as your previous debouncedVisibleRange
|
|
3251
|
-
}),
|
|
3252
|
-
return !
|
|
3259
|
+
}), $ = i || void 0, w = f === null, E = re(() => w ? Array(4).fill({}) : (f == null ? void 0 : f.slice(0, 20)) || [], [w, f]), L = xe("(max-width:950px)");
|
|
3260
|
+
return !w && f.length === 0 ? null : /* @__PURE__ */ t("section", { className: $, style: {
|
|
3253
3261
|
// paddingLeft: 16,
|
|
3254
3262
|
// paddingRight: 16,
|
|
3255
3263
|
width: "100%",
|
|
@@ -3277,12 +3285,12 @@ function An({
|
|
|
3277
3285
|
variant: "secondary",
|
|
3278
3286
|
iconOnly: !0,
|
|
3279
3287
|
rightIcon: /* @__PURE__ */ t(Ae, {}),
|
|
3280
|
-
onClick:
|
|
3288
|
+
onClick: O,
|
|
3281
3289
|
disabled: d.isEnd
|
|
3282
3290
|
}
|
|
3283
3291
|
)
|
|
3284
3292
|
] }),
|
|
3285
|
-
/* @__PURE__ */ t(J, { variant: "secondary", onClick:
|
|
3293
|
+
/* @__PURE__ */ t(J, { variant: "secondary", onClick: k, children: "Ver más" })
|
|
3286
3294
|
] })
|
|
3287
3295
|
] }) }),
|
|
3288
3296
|
/* @__PURE__ */ t(
|
|
@@ -3303,7 +3311,7 @@ function An({
|
|
|
3303
3311
|
renderItem: (A) => {
|
|
3304
3312
|
var P;
|
|
3305
3313
|
const R = ((P = A.event) == null ? void 0 : P.id) || A.eventId, y = R in B ? B[R] : void 0;
|
|
3306
|
-
return
|
|
3314
|
+
return w ? /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Tn, {}) }) : /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(
|
|
3307
3315
|
zn,
|
|
3308
3316
|
{
|
|
3309
3317
|
...A,
|
|
@@ -3396,7 +3404,7 @@ function jn({
|
|
|
3396
3404
|
onViewMore: o,
|
|
3397
3405
|
className: i = ""
|
|
3398
3406
|
}) {
|
|
3399
|
-
const r = ae(), s = ne(), d = 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), [u, l] = K({ isStart: !0, isEnd: !1 }), [c, g] = K(null), [
|
|
3407
|
+
const r = ae(), s = ne(), d = 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), [u, l] = K({ isStart: !0, isEnd: !1 }), [c, g] = K(null), [b, x] = K({ start: null, end: null }), T = "channel_id=1&client_id=200&competitionId=undefined&lang=es_PE&market=PE&useCombined=true", _ = () => {
|
|
3400
3408
|
r({
|
|
3401
3409
|
element: "evento_semana_view_more",
|
|
3402
3410
|
label: `${s} - OraculoSeccionEventoSemana - Ver más`,
|
|
@@ -3409,24 +3417,24 @@ function jn({
|
|
|
3409
3417
|
tags: { section: "OraculoSeccionEventoSemana" }
|
|
3410
3418
|
}), Ba();
|
|
3411
3419
|
};
|
|
3412
|
-
async function
|
|
3420
|
+
async function v($) {
|
|
3413
3421
|
var L, A;
|
|
3414
|
-
let
|
|
3422
|
+
let w = [], E = [];
|
|
3415
3423
|
try {
|
|
3416
3424
|
const R = await fetch(
|
|
3417
3425
|
"https://api.mktolimpo.com/api/kambi/eventos/orden",
|
|
3418
|
-
{ signal:
|
|
3426
|
+
{ signal: $ }
|
|
3419
3427
|
);
|
|
3420
3428
|
if (R.ok) {
|
|
3421
3429
|
const y = await R.json();
|
|
3422
|
-
|
|
3430
|
+
w = ((L = y == null ? void 0 : y.data) == null ? void 0 : L.group_ids) || [], E = ((A = y == null ? void 0 : y.data) == null ? void 0 : A.event_ids) || [];
|
|
3423
3431
|
}
|
|
3424
3432
|
} catch (R) {
|
|
3425
3433
|
R.name !== "AbortError" && console.warn("Order API not available, using default group order");
|
|
3426
3434
|
return;
|
|
3427
3435
|
}
|
|
3428
3436
|
try {
|
|
3429
|
-
const P = (await (await fetch(p, { signal:
|
|
3437
|
+
const P = (await (await fetch(p, { signal: $ })).json()).group.groups.find(
|
|
3430
3438
|
(m) => m.englishName === "Football"
|
|
3431
3439
|
);
|
|
3432
3440
|
if (!P || !Array.isArray(P.groups)) {
|
|
@@ -3434,35 +3442,35 @@ function jn({
|
|
|
3434
3442
|
return;
|
|
3435
3443
|
}
|
|
3436
3444
|
let D = [...P.groups];
|
|
3437
|
-
if (
|
|
3445
|
+
if (w.length > 0) {
|
|
3438
3446
|
const m = new Map(
|
|
3439
|
-
|
|
3447
|
+
w.map((C, N) => [C, N])
|
|
3440
3448
|
);
|
|
3441
|
-
D.sort((
|
|
3442
|
-
const M = m.get(String(
|
|
3449
|
+
D.sort((C, N) => {
|
|
3450
|
+
const M = m.get(String(C.id)), z = m.get(String(N.id));
|
|
3443
3451
|
return M !== void 0 && z !== void 0 ? M - z : M !== void 0 ? -1 : z !== void 0 ? 1 : 0;
|
|
3444
3452
|
});
|
|
3445
3453
|
}
|
|
3446
3454
|
const G = D.slice(0, 5), X = (m) => {
|
|
3447
|
-
const
|
|
3455
|
+
const C = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football";
|
|
3448
3456
|
if (m.groups && m.groups.length > 0) {
|
|
3449
|
-
const
|
|
3457
|
+
const N = m.groups[0];
|
|
3450
3458
|
return [
|
|
3451
|
-
`${
|
|
3459
|
+
`${C}/${m.termKey}/${N.termKey}/all/matches.json?${T}`
|
|
3452
3460
|
];
|
|
3453
3461
|
}
|
|
3454
3462
|
return [
|
|
3455
|
-
`${
|
|
3463
|
+
`${C}/${m.termKey}/all/all/matches.json?${T}`
|
|
3456
3464
|
];
|
|
3457
3465
|
}, ee = G.flatMap(X);
|
|
3458
|
-
|
|
3466
|
+
I(ee, E, $);
|
|
3459
3467
|
} catch (R) {
|
|
3460
3468
|
console.error(R);
|
|
3461
3469
|
}
|
|
3462
3470
|
}
|
|
3463
|
-
async function
|
|
3471
|
+
async function I($, w, E) {
|
|
3464
3472
|
try {
|
|
3465
|
-
const L = await Dn(
|
|
3473
|
+
const L = await Dn($, 2, E);
|
|
3466
3474
|
let A = [], R = [];
|
|
3467
3475
|
L.forEach((W) => {
|
|
3468
3476
|
W.events && (A.push(...W.events.map((G) => G.event)), R.push(
|
|
@@ -3471,9 +3479,9 @@ function jn({
|
|
|
3471
3479
|
});
|
|
3472
3480
|
const y = Gn(A, R), P = Vn(Wn(y));
|
|
3473
3481
|
let D = P;
|
|
3474
|
-
if (
|
|
3482
|
+
if (w.length > 0) {
|
|
3475
3483
|
const W = new Map(
|
|
3476
|
-
|
|
3484
|
+
w.map((G, X) => [
|
|
3477
3485
|
String(G),
|
|
3478
3486
|
X
|
|
3479
3487
|
])
|
|
@@ -3491,23 +3499,23 @@ function jn({
|
|
|
3491
3499
|
}
|
|
3492
3500
|
Q(() => {
|
|
3493
3501
|
if (!e) return;
|
|
3494
|
-
const
|
|
3495
|
-
return
|
|
3496
|
-
|
|
3502
|
+
const $ = new AbortController();
|
|
3503
|
+
return v($.signal), () => {
|
|
3504
|
+
$.abort();
|
|
3497
3505
|
};
|
|
3498
3506
|
}, [e]);
|
|
3499
|
-
const U = i || void 0,
|
|
3507
|
+
const U = i || void 0, O = {
|
|
3500
3508
|
paddingLeft: 0,
|
|
3501
3509
|
width: "100%",
|
|
3502
3510
|
boxSizing: "border-box"
|
|
3503
|
-
}, { jerseys:
|
|
3511
|
+
}, { jerseys: k } = wt({
|
|
3504
3512
|
events: c,
|
|
3505
|
-
visibleRange:
|
|
3513
|
+
visibleRange: b,
|
|
3506
3514
|
fetchJerseys: ft,
|
|
3507
3515
|
buffer: 2,
|
|
3508
3516
|
debounceMs: 250
|
|
3509
3517
|
}), S = c === null, B = xe("(max-width:950px)");
|
|
3510
|
-
return !S && c.length === 0 ? null : /* @__PURE__ */ t("section", { className: U, style:
|
|
3518
|
+
return !S && c.length === 0 ? null : /* @__PURE__ */ t("section", { className: U, style: O, children: /* @__PURE__ */ h("div", { className: `${Ie.wrapper} ${Ie.padding}`, children: [
|
|
3511
3519
|
/* @__PURE__ */ t("div", { className: Ie.container, children: /* @__PURE__ */ h(H, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
3512
3520
|
/* @__PURE__ */ t(ge, { title: "Eventos de la semana" }),
|
|
3513
3521
|
/* @__PURE__ */ t("div", { className: Ie.buttonWrapper, children: /* @__PURE__ */ t(
|
|
@@ -3541,12 +3549,12 @@ function jn({
|
|
|
3541
3549
|
padding: { left: "8px", right: "8px" }
|
|
3542
3550
|
}
|
|
3543
3551
|
},
|
|
3544
|
-
renderItem: (
|
|
3545
|
-
const
|
|
3546
|
-
return S ? /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Rn, {}) }) : /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Un, { event:
|
|
3552
|
+
renderItem: ($) => {
|
|
3553
|
+
const w = $.id, E = w in k ? k[w] : void 0;
|
|
3554
|
+
return S ? /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Rn, {}) }) : /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Un, { event: $, jersey: E }) });
|
|
3547
3555
|
},
|
|
3548
|
-
onMove: ({ isStart:
|
|
3549
|
-
l({ isStart:
|
|
3556
|
+
onMove: ({ isStart: $, isEnd: w, visibleStart: E, visibleEnd: L }) => {
|
|
3557
|
+
l({ isStart: $, isEnd: w }), x({
|
|
3550
3558
|
start: E,
|
|
3551
3559
|
end: L
|
|
3552
3560
|
}), r({
|
|
@@ -3559,8 +3567,8 @@ function jn({
|
|
|
3559
3567
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
3560
3568
|
visibleStart: E,
|
|
3561
3569
|
visibleEnd: L,
|
|
3562
|
-
isStart:
|
|
3563
|
-
isEnd:
|
|
3570
|
+
isStart: $,
|
|
3571
|
+
isEnd: w
|
|
3564
3572
|
},
|
|
3565
3573
|
tags: { section: "OraculoSeccionEventoSemana" }
|
|
3566
3574
|
});
|
|
@@ -3575,9 +3583,9 @@ function Hn({
|
|
|
3575
3583
|
hideItems: n
|
|
3576
3584
|
}) {
|
|
3577
3585
|
var L, A, R;
|
|
3578
|
-
const [o, i] = K(0), r = ae(), s = ne(), d = se(), p = V(null), f = V(!1), u = 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,
|
|
3586
|
+
const [o, i] = K(0), r = ae(), s = ne(), d = se(), p = V(null), f = V(!1), u = 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;
|
|
3579
3587
|
Ue("(max-width:950px)");
|
|
3580
|
-
const
|
|
3588
|
+
const x = "#B5B5B5", T = {
|
|
3581
3589
|
position: "absolute",
|
|
3582
3590
|
top: "50%",
|
|
3583
3591
|
transform: "translateY(-50%)",
|
|
@@ -3585,18 +3593,18 @@ function Hn({
|
|
|
3585
3593
|
width: 48,
|
|
3586
3594
|
height: 40,
|
|
3587
3595
|
borderRadius: "12px",
|
|
3588
|
-
border: `1.5px solid ${
|
|
3596
|
+
border: `1.5px solid ${x}`,
|
|
3589
3597
|
py: 1,
|
|
3590
3598
|
px: 1.5,
|
|
3591
|
-
color:
|
|
3599
|
+
color: x,
|
|
3592
3600
|
backgroundColor: "transparent",
|
|
3593
3601
|
"&:hover": {
|
|
3594
3602
|
backgroundColor: "rgba(181,181,181,0.08)"
|
|
3595
3603
|
},
|
|
3596
3604
|
"&.Mui-disabled": {
|
|
3597
3605
|
opacity: 0.35,
|
|
3598
|
-
borderColor:
|
|
3599
|
-
color:
|
|
3606
|
+
borderColor: x,
|
|
3607
|
+
color: x,
|
|
3600
3608
|
backgroundColor: "transparent",
|
|
3601
3609
|
cursor: "default"
|
|
3602
3610
|
}
|
|
@@ -3617,7 +3625,7 @@ function Hn({
|
|
|
3617
3625
|
}, 500);
|
|
3618
3626
|
return () => clearTimeout(y);
|
|
3619
3627
|
}, []);
|
|
3620
|
-
const
|
|
3628
|
+
const v = (y, P) => {
|
|
3621
3629
|
var W, G;
|
|
3622
3630
|
const D = ((G = (W = y.href) == null ? void 0 : W.split("/").pop()) == null ? void 0 : G.split(".")[0]) || y.label || y.id || `banner_${P + 1}`;
|
|
3623
3631
|
r({
|
|
@@ -3637,7 +3645,7 @@ function Hn({
|
|
|
3637
3645
|
banner_url: y.href || "no_url"
|
|
3638
3646
|
}
|
|
3639
3647
|
});
|
|
3640
|
-
},
|
|
3648
|
+
}, I = (y) => {
|
|
3641
3649
|
if (r({
|
|
3642
3650
|
element: "banner_menu_item",
|
|
3643
3651
|
label: `${s} - OraculoSeccionBanners - Menu item click: ${y.label || y.id}`,
|
|
@@ -3656,19 +3664,19 @@ function Hn({
|
|
|
3656
3664
|
return;
|
|
3657
3665
|
}
|
|
3658
3666
|
y.href && typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(y.href);
|
|
3659
|
-
}, U = 5e3,
|
|
3660
|
-
|
|
3667
|
+
}, U = 5e3, O = V(null), k = !c && ((R = e == null ? void 0 : e.length) != null ? R : 0) > 1, S = () => {
|
|
3668
|
+
O.current != null && (window.clearTimeout(O.current), O.current = null);
|
|
3661
3669
|
}, B = () => {
|
|
3662
|
-
S(),
|
|
3670
|
+
S(), k && (O.current = window.setTimeout(() => {
|
|
3663
3671
|
var y;
|
|
3664
3672
|
u.current = !0, (y = p.current) == null || y.next();
|
|
3665
3673
|
}, U));
|
|
3666
3674
|
};
|
|
3667
|
-
Q(() => (B(), () => S()), [
|
|
3668
|
-
const
|
|
3675
|
+
Q(() => (B(), () => S()), [k, U]);
|
|
3676
|
+
const $ = (y) => {
|
|
3669
3677
|
var P;
|
|
3670
3678
|
y.preventDefault(), y.stopPropagation(), S(), (P = p.current) == null || P.prev();
|
|
3671
|
-
},
|
|
3679
|
+
}, w = (y) => {
|
|
3672
3680
|
var P;
|
|
3673
3681
|
y.preventDefault(), y.stopPropagation(), S(), (P = p.current) == null || P.next();
|
|
3674
3682
|
}, E = (y) => {
|
|
@@ -3698,7 +3706,7 @@ function Hn({
|
|
|
3698
3706
|
sx: {
|
|
3699
3707
|
position: "relative",
|
|
3700
3708
|
overflow: "visible",
|
|
3701
|
-
pb:
|
|
3709
|
+
pb: b ? { xs: "40px", sm: 0 } : 0
|
|
3702
3710
|
},
|
|
3703
3711
|
children: [
|
|
3704
3712
|
/* @__PURE__ */ h(
|
|
@@ -3749,7 +3757,7 @@ function Hn({
|
|
|
3749
3757
|
href: y.href,
|
|
3750
3758
|
target: (D = y.target) != null ? D : "_self",
|
|
3751
3759
|
rel: y.target === "_blank" ? "noopener noreferrer" : void 0,
|
|
3752
|
-
onClick: () =>
|
|
3760
|
+
onClick: () => v(y, P),
|
|
3753
3761
|
sx: {
|
|
3754
3762
|
position: "relative",
|
|
3755
3763
|
width: "100%",
|
|
@@ -3811,9 +3819,9 @@ function Hn({
|
|
|
3811
3819
|
Ke,
|
|
3812
3820
|
{
|
|
3813
3821
|
"aria-label": "Anterior",
|
|
3814
|
-
onClick:
|
|
3822
|
+
onClick: $,
|
|
3815
3823
|
sx: {
|
|
3816
|
-
...
|
|
3824
|
+
...T,
|
|
3817
3825
|
left: "120px",
|
|
3818
3826
|
"@media (max-width:1024px)": { left: 24 },
|
|
3819
3827
|
"@media (max-width:786px)": { display: "none" }
|
|
@@ -3825,9 +3833,9 @@ function Hn({
|
|
|
3825
3833
|
Ke,
|
|
3826
3834
|
{
|
|
3827
3835
|
"aria-label": "Siguiente",
|
|
3828
|
-
onClick:
|
|
3836
|
+
onClick: w,
|
|
3829
3837
|
sx: {
|
|
3830
|
-
...
|
|
3838
|
+
...T,
|
|
3831
3839
|
right: "120px",
|
|
3832
3840
|
"@media (max-width:1024px)": { right: 24 },
|
|
3833
3841
|
"@media (max-width:786px)": { display: "none" }
|
|
@@ -3862,7 +3870,7 @@ function Hn({
|
|
|
3862
3870
|
]
|
|
3863
3871
|
}
|
|
3864
3872
|
),
|
|
3865
|
-
|
|
3873
|
+
b && /* @__PURE__ */ t(
|
|
3866
3874
|
Y,
|
|
3867
3875
|
{
|
|
3868
3876
|
sx: {
|
|
@@ -3925,7 +3933,7 @@ function Hn({
|
|
|
3925
3933
|
}
|
|
3926
3934
|
}
|
|
3927
3935
|
},
|
|
3928
|
-
onClick: () =>
|
|
3936
|
+
onClick: () => I(y),
|
|
3929
3937
|
children: [
|
|
3930
3938
|
y.icon && /* @__PURE__ */ h(
|
|
3931
3939
|
Y,
|
|
@@ -5366,33 +5374,33 @@ const ot = [
|
|
|
5366
5374
|
loader: r,
|
|
5367
5375
|
disableWrapper: s = !1
|
|
5368
5376
|
}) => {
|
|
5369
|
-
const d = re(() => eo(i), [i]), p = r || d.loader, [f, u] = K([]), [l, c] = K(!1), [g,
|
|
5377
|
+
const d = re(() => eo(i), [i]), p = r || d.loader, [f, u] = K([]), [l, c] = K(!1), [g, b] = K({}), [x, T] = K({}), [_, v] = K({}), I = Ue("(min-width:1024px)"), U = re(
|
|
5370
5378
|
() => Ce(qe),
|
|
5371
5379
|
[]
|
|
5372
|
-
),
|
|
5373
|
-
(
|
|
5374
|
-
),
|
|
5380
|
+
), O = (m) => U.find(
|
|
5381
|
+
(C) => C.id === m.id || C.componentKey === m.componentKey
|
|
5382
|
+
), k = (m) => Array.isArray(m) ? m.map((C) => Number(C)).filter((C) => !Number.isNaN(C)) : [], S = re(() => {
|
|
5375
5383
|
const m = d.user;
|
|
5376
|
-
return
|
|
5384
|
+
return k(m == null ? void 0 : m.groups);
|
|
5377
5385
|
}, [d]), B = (m) => {
|
|
5378
|
-
const
|
|
5379
|
-
if (!Array.isArray(
|
|
5380
|
-
const
|
|
5386
|
+
const C = m.manualScalarFields;
|
|
5387
|
+
if (!Array.isArray(C)) return [];
|
|
5388
|
+
const N = C.find(
|
|
5381
5389
|
(F) => String((F == null ? void 0 : F.name) || "").trim().toLowerCase() === "groups"
|
|
5382
5390
|
);
|
|
5383
|
-
if (
|
|
5384
|
-
const M =
|
|
5391
|
+
if (!N) return [];
|
|
5392
|
+
const M = N.value;
|
|
5385
5393
|
if (M == null) return [];
|
|
5386
5394
|
if (Array.isArray(M))
|
|
5387
5395
|
return M.map((F) => Number(String(F).trim())).filter((F) => !Number.isNaN(F));
|
|
5388
5396
|
const z = String(M).trim();
|
|
5389
5397
|
return z ? z.split(",").map((F) => Number(F.trim())).filter((F) => !Number.isNaN(F)) : [];
|
|
5390
|
-
},
|
|
5391
|
-
const
|
|
5392
|
-
if (
|
|
5393
|
-
if (!Array.isArray(
|
|
5394
|
-
const M = new Set(
|
|
5395
|
-
return
|
|
5398
|
+
}, $ = (m, C) => {
|
|
5399
|
+
const N = B(m);
|
|
5400
|
+
if (N.length === 0) return !0;
|
|
5401
|
+
if (!Array.isArray(C) || C.length === 0) return !1;
|
|
5402
|
+
const M = new Set(C);
|
|
5403
|
+
return N.some((z) => M.has(z));
|
|
5396
5404
|
};
|
|
5397
5405
|
Q(() => {
|
|
5398
5406
|
if (e) return;
|
|
@@ -5400,23 +5408,23 @@ const ot = [
|
|
|
5400
5408
|
console.warn("[landing] sin db -> fallback json"), u(Ce(qe));
|
|
5401
5409
|
return;
|
|
5402
5410
|
}
|
|
5403
|
-
const m = (
|
|
5404
|
-
console.warn("[landing] FALLBACK:",
|
|
5411
|
+
const m = (N, M) => {
|
|
5412
|
+
console.warn("[landing] FALLBACK:", N, M != null ? M : ""), u(Ce(qe)), c(!1);
|
|
5405
5413
|
};
|
|
5406
5414
|
if (process.env.NEXT_PUBLIC_LANDING_FORCE_FALLBACK === "1") {
|
|
5407
5415
|
c(!0), m("forzado por env");
|
|
5408
5416
|
return;
|
|
5409
5417
|
}
|
|
5410
5418
|
c(!0);
|
|
5411
|
-
const
|
|
5419
|
+
const C = Pt(
|
|
5412
5420
|
Ft(o, "landings", a),
|
|
5413
|
-
(
|
|
5421
|
+
(N) => {
|
|
5414
5422
|
try {
|
|
5415
|
-
if (
|
|
5423
|
+
if (!N.exists()) {
|
|
5416
5424
|
m(`doc landings/${a} no existe`);
|
|
5417
5425
|
return;
|
|
5418
5426
|
}
|
|
5419
|
-
const M =
|
|
5427
|
+
const M = N.data(), z = Ce(M);
|
|
5420
5428
|
if (!z.length) {
|
|
5421
5429
|
m("JSON inválido o sin secciones normalizables", M);
|
|
5422
5430
|
return;
|
|
@@ -5428,28 +5436,28 @@ const ot = [
|
|
|
5428
5436
|
c(!1);
|
|
5429
5437
|
}
|
|
5430
5438
|
},
|
|
5431
|
-
(
|
|
5432
|
-
m("error onSnapshot",
|
|
5439
|
+
(N) => {
|
|
5440
|
+
m("error onSnapshot", N);
|
|
5433
5441
|
}
|
|
5434
5442
|
);
|
|
5435
|
-
return () =>
|
|
5443
|
+
return () => C();
|
|
5436
5444
|
}, [e, a, o]), Q(() => (Ja(d), () => Xa()), [d]), Q(() => {
|
|
5437
|
-
(e ? e.slice() : f.slice()).map((
|
|
5445
|
+
(e ? e.slice() : f.slice()).map((N) => N.componentKey).filter((N) => !!N).length;
|
|
5438
5446
|
}, [e, f]);
|
|
5439
|
-
const
|
|
5447
|
+
const w = async (m) => {
|
|
5440
5448
|
if (ot.includes(m.componentKey))
|
|
5441
5449
|
return {
|
|
5442
5450
|
items: [],
|
|
5443
5451
|
events: [],
|
|
5444
5452
|
data: {}
|
|
5445
5453
|
};
|
|
5446
|
-
const
|
|
5447
|
-
if (!
|
|
5448
|
-
const
|
|
5449
|
-
let z =
|
|
5450
|
-
if (
|
|
5454
|
+
const C = (m.apiUrl || "").trim();
|
|
5455
|
+
if (!C) return;
|
|
5456
|
+
const N = m.apiMethod || "GET", M = m.apiParams || [];
|
|
5457
|
+
let z = C, F, Z;
|
|
5458
|
+
if (N === "GET") {
|
|
5451
5459
|
const ie = new URL(
|
|
5452
|
-
|
|
5460
|
+
C,
|
|
5453
5461
|
typeof window == "undefined" ? "http://localhost" : window.location.origin
|
|
5454
5462
|
);
|
|
5455
5463
|
for (const oe of M)
|
|
@@ -5464,7 +5472,7 @@ const ot = [
|
|
|
5464
5472
|
};
|
|
5465
5473
|
}
|
|
5466
5474
|
const te = await fetch(z, {
|
|
5467
|
-
method:
|
|
5475
|
+
method: N,
|
|
5468
5476
|
headers: Z,
|
|
5469
5477
|
body: F
|
|
5470
5478
|
});
|
|
@@ -5475,82 +5483,82 @@ const ot = [
|
|
|
5475
5483
|
[e, f]
|
|
5476
5484
|
), L = fe.useRef(/* @__PURE__ */ new Set());
|
|
5477
5485
|
Q(() => {
|
|
5478
|
-
const m = E.map((
|
|
5486
|
+
const m = E.map((C) => ({ s: C, url: (C.apiUrl || "").trim() })).filter(({ url: C }) => !!C);
|
|
5479
5487
|
if (m.length)
|
|
5480
|
-
for (const { s:
|
|
5481
|
-
const M = `${
|
|
5482
|
-
L.current.has(M) || (L.current.add(M),
|
|
5488
|
+
for (const { s: C, url: N } of m) {
|
|
5489
|
+
const M = `${C.id}|${N}`;
|
|
5490
|
+
L.current.has(M) || (L.current.add(M), T((z) => ({ ...z, [C.id]: !0 })), v((z) => ({ ...z, [C.id]: "" })), (async () => {
|
|
5483
5491
|
try {
|
|
5484
|
-
const z = await
|
|
5485
|
-
|
|
5492
|
+
const z = await w(C);
|
|
5493
|
+
b((F) => ({ ...F, [C.id]: z }));
|
|
5486
5494
|
} catch (z) {
|
|
5487
5495
|
let F = "Error desconocido";
|
|
5488
|
-
z instanceof nt ? F = `Error HTTP ${z.status} (${z.statusText}) en ${z.url}` : z instanceof SyntaxError ? F = "Respuesta no es JSON válido" : z instanceof TypeError ? F = "Fallo de red / CORS / conexión" : typeof z == "string" && (F = z.toString()),
|
|
5496
|
+
z instanceof nt ? F = `Error HTTP ${z.status} (${z.statusText}) en ${z.url}` : z instanceof SyntaxError ? F = "Respuesta no es JSON válido" : z instanceof TypeError ? F = "Fallo de red / CORS / conexión" : typeof z == "string" && (F = z.toString()), v((Z) => ({ ...Z, [C.id]: F }));
|
|
5489
5497
|
} finally {
|
|
5490
|
-
|
|
5498
|
+
T((z) => ({ ...z, [C.id]: !1 }));
|
|
5491
5499
|
}
|
|
5492
5500
|
})());
|
|
5493
5501
|
}
|
|
5494
5502
|
}, [E]);
|
|
5495
5503
|
const A = re(
|
|
5496
|
-
() => E.filter((m) => m.visible).filter((m) =>
|
|
5504
|
+
() => E.filter((m) => m.visible).filter((m) => $(m, S)).sort((m, C) => m.order - C.order),
|
|
5497
5505
|
[E, S]
|
|
5498
|
-
), R = (m) => Array.isArray(m) ? m.map((
|
|
5499
|
-
const
|
|
5500
|
-
for (const M of
|
|
5506
|
+
), R = (m) => Array.isArray(m) ? m.map((C) => {
|
|
5507
|
+
const N = {};
|
|
5508
|
+
for (const M of C.fields || []) {
|
|
5501
5509
|
const z = (M.type || "string").toLowerCase();
|
|
5502
5510
|
if (z === "number") {
|
|
5503
5511
|
const F = String(M.value || "").trim();
|
|
5504
5512
|
if (F !== "") {
|
|
5505
5513
|
const Z = Number(F);
|
|
5506
|
-
Number.isNaN(Z) || (
|
|
5514
|
+
Number.isNaN(Z) || (N[M.name] = Z);
|
|
5507
5515
|
}
|
|
5508
5516
|
} else if (z === "boolean")
|
|
5509
|
-
|
|
5517
|
+
N[M.name] = String(M.value).toLowerCase() === "true";
|
|
5510
5518
|
else if (z === "function") {
|
|
5511
5519
|
const F = String(M.value || "").trim();
|
|
5512
5520
|
if (F)
|
|
5513
5521
|
try {
|
|
5514
5522
|
const Z = new Function(F);
|
|
5515
|
-
|
|
5523
|
+
N[M.name] = Z;
|
|
5516
5524
|
} catch (Z) {
|
|
5517
5525
|
console.error(`❌ Error creando función en item '${M.name}':`, Z);
|
|
5518
5526
|
}
|
|
5519
5527
|
} else
|
|
5520
|
-
|
|
5528
|
+
N[M.name] = M.value;
|
|
5521
5529
|
}
|
|
5522
|
-
return
|
|
5530
|
+
return N;
|
|
5523
5531
|
}) : [], y = (m) => {
|
|
5524
|
-
const
|
|
5525
|
-
if (!Array.isArray(m)) return
|
|
5526
|
-
for (const
|
|
5527
|
-
if (
|
|
5528
|
-
const M = (
|
|
5532
|
+
const C = {};
|
|
5533
|
+
if (!Array.isArray(m)) return C;
|
|
5534
|
+
for (const N of m) {
|
|
5535
|
+
if (!N.name) continue;
|
|
5536
|
+
const M = (N.type || "string").toLowerCase();
|
|
5529
5537
|
if (M === "number") {
|
|
5530
|
-
const z = String(
|
|
5538
|
+
const z = String(N.value || "").trim();
|
|
5531
5539
|
if (z !== "") {
|
|
5532
5540
|
const F = Number(z);
|
|
5533
|
-
Number.isNaN(F) || (
|
|
5541
|
+
Number.isNaN(F) || (C[N.name] = F);
|
|
5534
5542
|
}
|
|
5535
5543
|
} else if (M === "boolean")
|
|
5536
|
-
|
|
5544
|
+
C[N.name] = String(N.value).toLowerCase() === "true";
|
|
5537
5545
|
else if (M === "function") {
|
|
5538
|
-
const z = String(
|
|
5546
|
+
const z = String(N.value || "").trim();
|
|
5539
5547
|
if (z)
|
|
5540
5548
|
try {
|
|
5541
5549
|
const F = new Function(z);
|
|
5542
|
-
|
|
5550
|
+
C[N.name] = F;
|
|
5543
5551
|
} catch (F) {
|
|
5544
|
-
console.error(`❌ Error creando función en item '${
|
|
5552
|
+
console.error(`❌ Error creando función en item '${N.name}':`, F);
|
|
5545
5553
|
}
|
|
5546
5554
|
} else
|
|
5547
|
-
|
|
5555
|
+
C[N.name] = N.value;
|
|
5548
5556
|
}
|
|
5549
|
-
return
|
|
5550
|
-
}, P = (m,
|
|
5551
|
-
const z =
|
|
5552
|
-
if (
|
|
5553
|
-
return z[F] =
|
|
5557
|
+
return C;
|
|
5558
|
+
}, P = (m, C, N, M) => {
|
|
5559
|
+
const z = N ? { ...N } : {}, F = (M || "items").trim() || "items";
|
|
5560
|
+
if (C)
|
|
5561
|
+
return z[F] = C.arr || [], z;
|
|
5554
5562
|
const Z = m;
|
|
5555
5563
|
if (Array.isArray(Z))
|
|
5556
5564
|
return z[F] = Z, z;
|
|
@@ -5561,13 +5569,13 @@ const ot = [
|
|
|
5561
5569
|
return z[F] = [], z;
|
|
5562
5570
|
}, D = (m) => {
|
|
5563
5571
|
var F;
|
|
5564
|
-
const
|
|
5572
|
+
const C = !!((F = m.apiUrl) != null && F.trim()), N = C ? g[m.id] : void 0;
|
|
5565
5573
|
let M = m.props ? { ...m.props } : {};
|
|
5566
5574
|
const z = y(m.manualScalarFields);
|
|
5567
5575
|
if (ot.includes(m.componentKey))
|
|
5568
|
-
return { items:
|
|
5569
|
-
if (M = { ...M, ...z },
|
|
5570
|
-
M = P(
|
|
5576
|
+
return { items: N, ...M, ...z };
|
|
5577
|
+
if (M = { ...M, ...z }, C)
|
|
5578
|
+
M = P(N, null, M);
|
|
5571
5579
|
else if (m.dataMode === "manual") {
|
|
5572
5580
|
const Z = R(m.manualItems);
|
|
5573
5581
|
if (M = P(
|
|
@@ -5582,46 +5590,46 @@ const ot = [
|
|
|
5582
5590
|
}
|
|
5583
5591
|
return M;
|
|
5584
5592
|
}, W = (m) => {
|
|
5585
|
-
const
|
|
5593
|
+
const C = m.props ? { ...m.props } : {};
|
|
5586
5594
|
try {
|
|
5587
|
-
Object.assign(
|
|
5595
|
+
Object.assign(C, y(m.manualScalarFields));
|
|
5588
5596
|
} catch (M) {
|
|
5589
5597
|
console.error("❌ Error armando scalars vacíos:", m, M);
|
|
5590
5598
|
}
|
|
5591
|
-
const
|
|
5592
|
-
if (typeof
|
|
5599
|
+
const N = (m.variableName || "items").trim() || "items";
|
|
5600
|
+
if (typeof C[N] == "undefined" && (C[N] = []), m.variableName2) {
|
|
5593
5601
|
const M = (m.variableName2 || "items2").trim() || "items2";
|
|
5594
|
-
typeof
|
|
5602
|
+
typeof C[M] == "undefined" && (C[M] = []);
|
|
5595
5603
|
}
|
|
5596
|
-
return
|
|
5604
|
+
return C;
|
|
5597
5605
|
}, G = (m) => {
|
|
5598
5606
|
try {
|
|
5599
5607
|
return D(m);
|
|
5600
|
-
} catch (
|
|
5601
|
-
console.error("🔥 ERROR EN buildCompProps:", m,
|
|
5602
|
-
const
|
|
5603
|
-
if (
|
|
5608
|
+
} catch (C) {
|
|
5609
|
+
console.error("🔥 ERROR EN buildCompProps:", m, C);
|
|
5610
|
+
const N = O(m);
|
|
5611
|
+
if (N && N !== m)
|
|
5604
5612
|
try {
|
|
5605
5613
|
return console.warn(
|
|
5606
5614
|
`[landing] usando fallback local para sección ${m.title} (${m.componentKey})`
|
|
5607
|
-
), D(
|
|
5615
|
+
), D(N);
|
|
5608
5616
|
} catch (M) {
|
|
5609
|
-
console.error("🔥 ERROR EN fallback buildCompProps:",
|
|
5617
|
+
console.error("🔥 ERROR EN fallback buildCompProps:", N, M);
|
|
5610
5618
|
}
|
|
5611
5619
|
return W(m);
|
|
5612
5620
|
}
|
|
5613
|
-
}, X = (m,
|
|
5621
|
+
}, X = (m, C, N) => /* @__PURE__ */ t("div", { className: `mx-4 p-4 rounded ${{
|
|
5614
5622
|
loading: "bg-blue-100 text-blue-800",
|
|
5615
5623
|
error: "bg-red-100 text-red-800",
|
|
5616
5624
|
component: "bg-yellow-100 text-yellow-800"
|
|
5617
|
-
}[
|
|
5625
|
+
}[C]}`, children: N }, m), ee = (m) => {
|
|
5618
5626
|
var He;
|
|
5619
|
-
const
|
|
5627
|
+
const C = m.componentKey, N = Qn[C], z = (/* @__PURE__ */ new Set([
|
|
5620
5628
|
"OraculoSeccionBanners",
|
|
5621
5629
|
"OraculoSeccionBonoBienvenida",
|
|
5622
5630
|
"OraculoSeccionCasinoEnVivo",
|
|
5623
5631
|
"OraculoSeccionClubOlimpo",
|
|
5624
|
-
...
|
|
5632
|
+
...I ? [] : [
|
|
5625
5633
|
"OraculoSeccionEventoEnVivo",
|
|
5626
5634
|
"OraculoSeccionEventoSemana",
|
|
5627
5635
|
"OraculoSeccionEventoCombinadas",
|
|
@@ -5629,7 +5637,7 @@ const ot = [
|
|
|
5629
5637
|
"OraculoSeccionDestacados",
|
|
5630
5638
|
"OraculoSeccionCasino"
|
|
5631
5639
|
]
|
|
5632
|
-
])).has(m.componentKey), F =
|
|
5640
|
+
])).has(m.componentKey), F = I ? 120 : 24, Z = (I ? 8 : 5) * 8, te = m.componentKey === "OraculoSeccionCasinoEnVivo", ie = {
|
|
5633
5641
|
width: "100%",
|
|
5634
5642
|
boxSizing: "border-box",
|
|
5635
5643
|
...z ? {} : { paddingLeft: F, paddingRight: F },
|
|
@@ -5638,13 +5646,13 @@ const ot = [
|
|
|
5638
5646
|
marginBottom: -Z
|
|
5639
5647
|
} : {}
|
|
5640
5648
|
};
|
|
5641
|
-
if (
|
|
5642
|
-
return console.warn(`No hay componente registrado para "${
|
|
5649
|
+
if (!N)
|
|
5650
|
+
return console.warn(`No hay componente registrado para "${C}"`), X(
|
|
5643
5651
|
m.id,
|
|
5644
5652
|
"component",
|
|
5645
|
-
`Componente "${
|
|
5653
|
+
`Componente "${C}" no encontrado`
|
|
5646
5654
|
);
|
|
5647
|
-
const oe = !!((He = m.apiUrl) != null && He.trim()), We = oe ? g[m.id] : void 0, It = oe ? !!
|
|
5655
|
+
const oe = !!((He = m.apiUrl) != null && He.trim()), We = oe ? g[m.id] : void 0, It = oe ? !!x[m.id] : !1, Ge = oe ? _[m.id] : "";
|
|
5648
5656
|
if (oe) {
|
|
5649
5657
|
if (It && !We)
|
|
5650
5658
|
return X(
|
|
@@ -5653,11 +5661,11 @@ const ot = [
|
|
|
5653
5661
|
`Cargando datos desde ${m.apiUrl}...`
|
|
5654
5662
|
);
|
|
5655
5663
|
if (Ge && !We) {
|
|
5656
|
-
const we =
|
|
5664
|
+
const we = O(m);
|
|
5657
5665
|
if (we && we.dataMode === "manual")
|
|
5658
5666
|
try {
|
|
5659
5667
|
const Re = G(we);
|
|
5660
|
-
return /* @__PURE__ */ t("div", { style: ie, className: "oraculo-section-wrapper", children: /* @__PURE__ */ t(
|
|
5668
|
+
return /* @__PURE__ */ t("div", { style: ie, className: "oraculo-section-wrapper", children: /* @__PURE__ */ t(N, { ...Re }) }, m.id);
|
|
5661
5669
|
} catch (Re) {
|
|
5662
5670
|
console.error(
|
|
5663
5671
|
"🔥 ERROR renderizando fallback manual de sección:",
|
|
@@ -5681,7 +5689,7 @@ const ot = [
|
|
|
5681
5689
|
{
|
|
5682
5690
|
style: ie,
|
|
5683
5691
|
className: "oraculo-section-wrapper",
|
|
5684
|
-
children: /* @__PURE__ */ t(
|
|
5692
|
+
children: /* @__PURE__ */ t(N, { ...Ct })
|
|
5685
5693
|
},
|
|
5686
5694
|
m.id
|
|
5687
5695
|
) });
|
|
@@ -5700,11 +5708,11 @@ const ot = [
|
|
|
5700
5708
|
maxWidth: "100%",
|
|
5701
5709
|
overflowX: "hidden"
|
|
5702
5710
|
},
|
|
5703
|
-
children: /* @__PURE__ */ t(Oe, { direction: "column", spacing:
|
|
5711
|
+
children: /* @__PURE__ */ t(Oe, { direction: "column", spacing: I ? 8 : 5, useFlexGap: !0, children: A.map((m) => {
|
|
5704
5712
|
try {
|
|
5705
5713
|
return ee(m);
|
|
5706
|
-
} catch (
|
|
5707
|
-
return console.error("🔥 ERROR EN SECTION:", m,
|
|
5714
|
+
} catch (C) {
|
|
5715
|
+
return console.error("🔥 ERROR EN SECTION:", m, C), null;
|
|
5708
5716
|
}
|
|
5709
5717
|
}) })
|
|
5710
5718
|
}
|