oraculo-ui 0.1.136 → 0.1.138

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.es.js CHANGED
@@ -2,17 +2,17 @@ import { jsx as t, jsxs as b, Fragment as pe } from "react/jsx-runtime";
2
2
  import { Link as rt, Box as Q, useMediaQuery as De, IconButton as Ke, Typography as st, Stack as Oe, Container as Et } from "@mui/material";
3
3
  import fe, { useState as Z, useEffect as ee, useRef as V, forwardRef as Tt, useImperativeHandle as kt, useCallback as Ee, createContext as $t, useContext as Nt, useMemo as ie, useLayoutEffect as Mt } from "react";
4
4
  import j from "@mui/material/Skeleton";
5
- import { Splide as At, SplideSlide as Bt } from "@splidejs/react-splide";
6
- import F from "@mui/material/Box";
5
+ import { Splide as Bt, SplideSlide as At } from "@splidejs/react-splide";
6
+ import q from "@mui/material/Box";
7
7
  import ue from "@mui/material/Typography";
8
8
  import H from "@mui/material/Stack";
9
9
  import { useCaptureInteraction as ae } from "@olimpo/capture-client";
10
- import { ChevronLeftRounded as Be, ChevronRightRounded as ze } from "@mui/icons-material";
10
+ import { ChevronLeftRounded as Ae, ChevronRightRounded as ze } from "@mui/icons-material";
11
11
  import xe from "@mui/material/useMediaQuery";
12
12
  import lt from "@mui/icons-material/ChevronLeftRounded";
13
13
  import ct from "@mui/icons-material/ChevronRightRounded";
14
- import { useTheme as zt, createTheme as Rt, ThemeProvider as Lt } from "@mui/material/styles";
15
- import Pt from "@mui/material/CssBaseline";
14
+ import { useTheme as zt, createTheme as Rt, ThemeProvider as Pt } from "@mui/material/styles";
15
+ import Lt from "@mui/material/CssBaseline";
16
16
  import { onSnapshot as Ft, doc as qt } from "firebase/firestore";
17
17
  function X({
18
18
  children: e,
@@ -23,28 +23,28 @@ function X({
23
23
  type: r = "button",
24
24
  disabled: s = !1,
25
25
  variant: c = "primary",
26
- size: f,
27
- fullWidth: h = !1,
26
+ size: h,
27
+ fullWidth: g = !1,
28
28
  fullHeight: u = !1,
29
- className: p = "",
29
+ className: m = "",
30
30
  ariaLabel: d,
31
- leftIcon: g,
32
- rightIcon: m,
33
- iconOnly: _
31
+ leftIcon: f,
32
+ rightIcon: p,
33
+ iconOnly: v
34
34
  }) {
35
- const S = !!e && e !== !0, I = (!!g ? 1 : 0) + (!!m ? 1 : 0) == 1, D = _ != null ? _ : I && !S, T = [
35
+ const C = !!e && e !== !0, _ = (!!f ? 1 : 0) + (!!p ? 1 : 0) == 1, D = v != null ? v : _ && !C, k = [
36
36
  "orc-btn",
37
37
  c === "secondary" ? "orc-btn--secondary" : c === "tertiary" ? "orc-btn--tertiary" : "orc-btn--primary",
38
- f ? `orc-btn--${f}` : "",
39
- h ? "orc-btn--full" : "",
38
+ h ? `orc-btn--${h}` : "",
39
+ g ? "orc-btn--full" : "",
40
40
  u ? "orc-btn--fullHeight" : "",
41
41
  D ? "orc-btn--iconOnly" : "",
42
- p
43
- ].filter(Boolean).join(" "), N = /* @__PURE__ */ b(pe, { children: [
44
- g && /* @__PURE__ */ t("span", { className: "orc-btn__icon", children: g }),
42
+ m
43
+ ].filter(Boolean).join(" "), M = /* @__PURE__ */ b(pe, { children: [
44
+ f && /* @__PURE__ */ t("span", { className: "orc-btn__icon", children: f }),
45
45
  !D && /* @__PURE__ */ t("span", { className: "orc-btn__label", children: e }),
46
- m && /* @__PURE__ */ t("span", { className: "orc-btn__icon", children: m })
47
- ] }), E = s ? !0 : void 0;
46
+ p && /* @__PURE__ */ t("span", { className: "orc-btn__icon", children: p })
47
+ ] }), T = s ? !0 : void 0;
48
48
  return n ? /* @__PURE__ */ t(
49
49
  rt,
50
50
  {
@@ -52,21 +52,21 @@ function X({
52
52
  target: o,
53
53
  rel: i,
54
54
  "aria-label": d,
55
- "aria-disabled": E,
56
- tabIndex: E ? -1 : void 0,
57
- className: T,
58
- onClick: E ? (M) => M.preventDefault() : a,
59
- children: N
55
+ "aria-disabled": T,
56
+ tabIndex: T ? -1 : void 0,
57
+ className: k,
58
+ onClick: T ? (A) => A.preventDefault() : a,
59
+ children: M
60
60
  }
61
61
  ) : /* @__PURE__ */ t(
62
62
  "button",
63
63
  {
64
64
  type: r,
65
65
  onClick: a,
66
- disabled: !!E,
66
+ disabled: !!T,
67
67
  "aria-label": d,
68
- className: T,
69
- children: N
68
+ className: k,
69
+ children: M
70
70
  }
71
71
  );
72
72
  }
@@ -103,26 +103,26 @@ const dt = ({
103
103
  if (e <= 1) return null;
104
104
  const r = ["orc-dots", o].filter(Boolean).join(" "), [s, c] = Z(0);
105
105
  return ee(() => {
106
- c((f) => f + 1);
107
- }, [a, i]), /* @__PURE__ */ t("div", { className: r, role: "tablist", "aria-label": "Carousel pagination", children: Array.from({ length: e }).map((f, h) => {
108
- const u = h === a;
106
+ c((h) => h + 1);
107
+ }, [a, i]), /* @__PURE__ */ t("div", { className: r, role: "tablist", "aria-label": "Carousel pagination", children: Array.from({ length: e }).map((h, g) => {
108
+ const u = g === a;
109
109
  return /* @__PURE__ */ t("span", { className: "orc-dots__cell", children: /* @__PURE__ */ t(
110
110
  "button",
111
111
  {
112
112
  type: "button",
113
113
  role: "tab",
114
114
  "aria-selected": u,
115
- "aria-label": `Ir al slide ${h + 1}`,
115
+ "aria-label": `Ir al slide ${g + 1}`,
116
116
  className: "orc-dots__dot" + (u ? " orc-dots__dot--active" : ""),
117
117
  style: u ? {
118
118
  "--dot-progress-ms": `${i}ms`
119
119
  } : void 0,
120
120
  onClick: () => {
121
- u && c((p) => p + 1), n == null || n(h);
121
+ u && c((m) => m + 1), n == null || n(g);
122
122
  }
123
123
  },
124
- u ? `a-${h}-${s}` : `i-${h}`
125
- ) }, h);
124
+ u ? `a-${g}-${s}` : `i-${g}`
125
+ ) }, g);
126
126
  }) });
127
127
  };
128
128
  function me({
@@ -178,7 +178,7 @@ function Ze({ src: e, alt: a }) {
178
178
  }
179
179
  );
180
180
  }
181
- const Dt = "oraculo__OraculoEventTitle-module__contenedor___rg1vw", Ut = "oraculo__OraculoEventTitle-module__flexGroup___jMLFO", Vt = "oraculo__OraculoEventTitle-module__subtitle___TmHna", Le = {
181
+ const Dt = "oraculo__OraculoEventTitle-module__contenedor___rg1vw", Ut = "oraculo__OraculoEventTitle-module__flexGroup___jMLFO", Vt = "oraculo__OraculoEventTitle-module__subtitle___TmHna", Pe = {
182
182
  contenedor: Dt,
183
183
  flexGroup: Ut,
184
184
  subtitle: Vt
@@ -187,7 +187,7 @@ function Wt({ title: e, subtitle: a }) {
187
187
  return /* @__PURE__ */ b(
188
188
  "div",
189
189
  {
190
- className: Le.contenedor,
190
+ className: Pe.contenedor,
191
191
  children: [
192
192
  /* @__PURE__ */ t(
193
193
  "span",
@@ -203,14 +203,14 @@ function Wt({ title: e, subtitle: a }) {
203
203
  a && /* @__PURE__ */ b(
204
204
  "div",
205
205
  {
206
- className: Le.flexGroup,
206
+ className: Pe.flexGroup,
207
207
  children: [
208
208
  /* @__PURE__ */ b("svg", { width: "4", height: "4", viewBox: "0 0 5 5", xmlns: "http://www.w3.org/2000/svg", style: { flexShrink: 0 }, children: [
209
209
  " ",
210
210
  /* @__PURE__ */ t("circle", { cx: "2.5", cy: "2.5", r: "2.5", fill: "white" }),
211
211
  " "
212
212
  ] }),
213
- /* @__PURE__ */ t("span", { className: Le.subtitle, children: a }),
213
+ /* @__PURE__ */ t("span", { className: Pe.subtitle, children: a }),
214
214
  /* @__PURE__ */ t("div", {})
215
215
  ]
216
216
  }
@@ -388,19 +388,19 @@ function fa(e, a, {
388
388
  if (!n) return;
389
389
  const c = e.current;
390
390
  if (!c) return;
391
- const f = (h) => {
391
+ const h = (g) => {
392
392
  const u = a.current;
393
393
  if (!u || !u.go) return;
394
- const { deltaX: p, deltaY: d } = h;
395
- if (Math.abs(p) <= Math.abs(d)) return;
396
- h.preventDefault(), r.current += p;
397
- const g = Date.now();
398
- if (g - s.current < i || Math.abs(r.current) < o) return;
399
- const m = r.current > 0 ? ">" : "<";
400
- r.current = 0, s.current = g, u.go(m);
394
+ const { deltaX: m, deltaY: d } = g;
395
+ if (Math.abs(m) <= Math.abs(d)) return;
396
+ g.preventDefault(), r.current += m;
397
+ const f = Date.now();
398
+ if (f - s.current < i || Math.abs(r.current) < o) return;
399
+ const p = r.current > 0 ? ">" : "<";
400
+ r.current = 0, s.current = f, u.go(p);
401
401
  };
402
- return c.addEventListener("wheel", f, { passive: !1 }), () => {
403
- c.removeEventListener("wheel", f), r.current = 0;
402
+ return c.addEventListener("wheel", h, { passive: !1 }), () => {
403
+ c.removeEventListener("wheel", h), r.current = 0;
404
404
  };
405
405
  }, [n, o, i, e, a]);
406
406
  }
@@ -409,7 +409,7 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
409
409
  right: ha,
410
410
  left: ba,
411
411
  svg: va
412
- }, _a = At, ya = Bt, he = Tt(
412
+ }, _a = Bt, ya = At, he = Tt(
413
413
  ({
414
414
  items: e = [],
415
415
  renderItem: a,
@@ -419,85 +419,85 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
419
419
  options: r = {},
420
420
  className: s = "",
421
421
  onMove: c,
422
- useIndexAsKey: f = !1,
423
- enableHorizontalWheel: h = !0,
422
+ useIndexAsKey: h = !1,
423
+ enableHorizontalWheel: g = !0,
424
424
  showRightGradient: u = !1
425
- }, p) => {
426
- const d = V(null), g = V(null), m = V(e.length), _ = V(null), S = V(null);
427
- fa(g, d, {
428
- enabled: h
429
- }), kt(p, () => ({
425
+ }, m) => {
426
+ const d = V(null), f = V(null), p = V(e.length), v = V(null), C = V(null);
427
+ fa(f, d, {
428
+ enabled: g
429
+ }), kt(m, () => ({
430
430
  next: () => {
431
- var E;
432
- return (E = d.current) == null ? void 0 : E.go(">");
431
+ var T;
432
+ return (T = d.current) == null ? void 0 : T.go(">");
433
433
  },
434
434
  prev: () => {
435
- var E;
436
- return (E = d.current) == null ? void 0 : E.go("<");
435
+ var T;
436
+ return (T = d.current) == null ? void 0 : T.go("<");
437
437
  },
438
- go: (E) => {
439
- var M;
440
- return (M = d.current) == null ? void 0 : M.go(E);
438
+ go: (T) => {
439
+ var A;
440
+ return (A = d.current) == null ? void 0 : A.go(T);
441
441
  }
442
442
  }));
443
- const y = (E) => {
443
+ const y = (T) => {
444
444
  var W;
445
- const M = E.Components.Slides, k = E.Components.Controller, x = E.root.querySelector(".splide__track"), O = (W = x == null ? void 0 : x.clientWidth) != null ? W : 0, L = k.getIndex(), z = M.getLength();
446
- let R = 0, U = L;
447
- for (let G = L; G < z; G++) {
448
- const C = M.getAt(G);
449
- if (!C || (R += C.slide.offsetWidth, R > O)) break;
445
+ const A = T.Components.Slides, $ = T.Components.Controller, x = T.root.querySelector(".splide__track"), O = (W = x == null ? void 0 : x.clientWidth) != null ? W : 0, P = $.getIndex(), z = A.getLength();
446
+ let R = 0, U = P;
447
+ for (let G = P; G < z; G++) {
448
+ const w = A.getAt(G);
449
+ if (!w || (R += w.slide.offsetWidth, R > O)) break;
450
450
  U = G;
451
451
  }
452
- return { visibleStart: L, visibleEnd: U };
453
- }, v = (E) => {
454
- const M = E.root.querySelector(".splide__track"), k = E.root.querySelector(".splide__list");
455
- return !M || !k ? !1 : k.scrollWidth > M.clientWidth + 1;
456
- }, I = Ee((E) => {
452
+ return { visibleStart: P, visibleEnd: U };
453
+ }, I = (T) => {
454
+ const A = T.root.querySelector(".splide__track"), $ = T.root.querySelector(".splide__list");
455
+ return !A || !$ ? !1 : $.scrollWidth > A.clientWidth + 1;
456
+ }, _ = Ee((T) => {
457
457
  var U, W;
458
- const k = E.Components.Slides.getLength();
459
- if (!v(E)) {
458
+ const $ = T.Components.Slides.getLength();
459
+ if (!I(T)) {
460
460
  c == null || c({
461
461
  index: 0,
462
462
  isStart: !0,
463
463
  isEnd: !0,
464
- total: k,
464
+ total: $,
465
465
  visibleStart: 0,
466
- visibleEnd: k - 1
466
+ visibleEnd: $ - 1
467
467
  });
468
468
  return;
469
469
  }
470
- const { visibleStart: x, visibleEnd: O } = y(E), L = x === 0, z = O === k - 1;
471
- u && ((U = _.current) == null || U.style.setProperty("--gradient-opacity", L ? "0" : "1"), (W = S.current) == null || W.style.setProperty("--gradient-opacity", z ? "0" : "1"));
472
- const R = E.Components.Controller.getIndex();
470
+ const { visibleStart: x, visibleEnd: O } = y(T), P = x === 0, z = O === $ - 1;
471
+ u && ((U = v.current) == null || U.style.setProperty("--gradient-opacity", P ? "0" : "1"), (W = C.current) == null || W.style.setProperty("--gradient-opacity", z ? "0" : "1"));
472
+ const R = T.Components.Controller.getIndex();
473
473
  c == null || c({
474
474
  index: R,
475
- isStart: L,
475
+ isStart: P,
476
476
  isEnd: z,
477
- total: k,
477
+ total: $,
478
478
  visibleStart: x,
479
479
  visibleEnd: O
480
480
  });
481
481
  }, [c]);
482
482
  fe.useEffect(() => {
483
- var k;
484
- const E = (k = d.current) == null ? void 0 : k.splide;
485
- if (!E) return;
486
- const M = m.current !== e.length;
487
- m.current = e.length, M && requestAnimationFrame(() => {
488
- E.refresh(), I(E);
483
+ var $;
484
+ const T = ($ = d.current) == null ? void 0 : $.splide;
485
+ if (!T) return;
486
+ const A = p.current !== e.length;
487
+ p.current = e.length, A && requestAnimationFrame(() => {
488
+ T.refresh(), _(T);
489
489
  });
490
- }, [e.length, I]);
490
+ }, [e.length, _]);
491
491
  const D = Ee(() => {
492
- var M;
493
- const E = (M = d.current) == null ? void 0 : M.splide;
494
- E && (E.go(0, !1), I(E));
495
- }, [I]), T = Ee(
496
- (E) => {
497
- I(E);
492
+ var A;
493
+ const T = (A = d.current) == null ? void 0 : A.splide;
494
+ T && (T.go(0, !1), _(T));
495
+ }, [_]), k = Ee(
496
+ (T) => {
497
+ _(T);
498
498
  },
499
- [I]
500
- ), N = {
499
+ [_]
500
+ ), M = {
501
501
  type: "slide",
502
502
  trimSpace: !1,
503
503
  drag: !0,
@@ -510,12 +510,12 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
510
510
  gap: o,
511
511
  breakpoints: i,
512
512
  ...r,
513
- ...h ? { wheel: !1 } : {}
513
+ ...g ? { wheel: !1 } : {}
514
514
  };
515
515
  return /* @__PURE__ */ b(
516
516
  "div",
517
517
  {
518
- ref: g,
518
+ ref: f,
519
519
  className: s,
520
520
  style: { width: "100%", position: "relative", height: "100%" },
521
521
  children: [
@@ -523,13 +523,13 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
523
523
  _a,
524
524
  {
525
525
  ref: d,
526
- options: N,
527
- onMove: I,
528
- onMounted: T,
526
+ options: M,
527
+ onMove: _,
528
+ onMounted: k,
529
529
  onResize: D,
530
- children: e.map((E, M) => {
531
- var k;
532
- return /* @__PURE__ */ t(ya, { children: a(E, M) }, f ? M : (k = E.id) != null ? k : M);
530
+ children: e.map((T, A) => {
531
+ var $;
532
+ return /* @__PURE__ */ t(ya, { children: a(T, A) }, h ? A : ($ = T.id) != null ? $ : A);
533
533
  })
534
534
  }
535
535
  ),
@@ -537,7 +537,7 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
537
537
  /* @__PURE__ */ t(
538
538
  "div",
539
539
  {
540
- ref: _,
540
+ ref: v,
541
541
  className: `${ye.gradientOverlay} ${ye.left}`,
542
542
  style: { "--gradient-opacity": "0" },
543
543
  children: /* @__PURE__ */ b(
@@ -562,7 +562,7 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
562
562
  /* @__PURE__ */ t(
563
563
  "div",
564
564
  {
565
- ref: S,
565
+ ref: C,
566
566
  className: `${ye.gradientOverlay} ${ye.right}`,
567
567
  style: { "--gradient-opacity": "1" },
568
568
  children: /* @__PURE__ */ b(
@@ -599,7 +599,7 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
599
599
  c.stopPropagation(), a == null || a();
600
600
  }, s = o ? { width: "100%", height: "100%" } : { width: `${i.w}px`, height: `${i.h}px` };
601
601
  return /* @__PURE__ */ b(
602
- F,
602
+ q,
603
603
  {
604
604
  onClick: a,
605
605
  role: "button",
@@ -641,7 +641,7 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
641
641
  }
642
642
  ),
643
643
  /* @__PURE__ */ t(
644
- F,
644
+ q,
645
645
  {
646
646
  className: "oraculo-game-card-overlay",
647
647
  sx: {
@@ -656,7 +656,7 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
656
656
  }
657
657
  ),
658
658
  /* @__PURE__ */ t(
659
- F,
659
+ q,
660
660
  {
661
661
  className: "oraculo-game-card-btn",
662
662
  sx: {
@@ -686,19 +686,19 @@ function xa({
686
686
  md: { w: 186, h: 264, r: 22.6, font: 64 }
687
687
  }
688
688
  }) {
689
- var p, d, g, m;
690
- const r = (_, S) => {
691
- var y, v, I, D;
689
+ var m, d, f, p;
690
+ const r = (v, C) => {
691
+ var y, I, _, D;
692
692
  return {
693
- xs: (v = (y = i.xs) == null ? void 0 : y[_]) != null ? v : S,
694
- md: (D = (I = i.md) == null ? void 0 : I[_]) != null ? D : S
693
+ xs: (I = (y = i.xs) == null ? void 0 : y[v]) != null ? I : C,
694
+ md: (D = (_ = i.md) == null ? void 0 : _[v]) != null ? D : C
695
695
  };
696
- }, s = r("w", 186), c = r("h", 264), f = r("r", 22.6), h = r("font", 64), u = {
697
- xs: Math.round(((d = (p = i.xs) == null ? void 0 : p.font) != null ? d : 64) * 0.28),
698
- md: Math.round(((m = (g = i.md) == null ? void 0 : g.font) != null ? m : 64) * 0.28)
696
+ }, s = r("w", 186), c = r("h", 264), h = r("r", 22.6), g = r("font", 64), u = {
697
+ xs: Math.round(((d = (m = i.xs) == null ? void 0 : m.font) != null ? d : 64) * 0.28),
698
+ md: Math.round(((p = (f = i.md) == null ? void 0 : f.font) != null ? p : 64) * 0.28)
699
699
  };
700
700
  return /* @__PURE__ */ b(
701
- F,
701
+ q,
702
702
  {
703
703
  sx: {
704
704
  position: "relative",
@@ -708,7 +708,7 @@ function xa({
708
708
  xs: `${s.xs}/${c.xs}`,
709
709
  md: `${s.md}/${c.md}`
710
710
  },
711
- borderRadius: { xs: `${f.xs}px`, md: `${f.md}px` },
711
+ borderRadius: { xs: `${h.xs}px`, md: `${h.md}px` },
712
712
  boxSizing: "border-box",
713
713
  overflow: "visible",
714
714
  pb: { xs: `${u.xs}px`, md: `${u.md}px` },
@@ -725,7 +725,7 @@ function xa({
725
725
  },
726
726
  children: [
727
727
  /* @__PURE__ */ t(
728
- F,
728
+ q,
729
729
  {
730
730
  sx: {
731
731
  position: "absolute",
@@ -759,7 +759,7 @@ function xa({
759
759
  }
760
760
  ),
761
761
  /* @__PURE__ */ t(
762
- F,
762
+ q,
763
763
  {
764
764
  component: "span",
765
765
  sx: {
@@ -771,8 +771,8 @@ function xa({
771
771
  },
772
772
  fontFamily: '"secondary", sans-serif',
773
773
  fontSize: {
774
- xs: `${h.xs}px`,
775
- md: `${h.md}px`
774
+ xs: `${g.xs}px`,
775
+ md: `${g.md}px`
776
776
  },
777
777
  lineHeight: 1,
778
778
  color: "#3CC666",
@@ -796,7 +796,7 @@ const wa = ({
796
796
  }) => {
797
797
  var r;
798
798
  return /* @__PURE__ */ b(
799
- F,
799
+ q,
800
800
  {
801
801
  onClick: i,
802
802
  sx: {
@@ -820,7 +820,7 @@ const wa = ({
820
820
  },
821
821
  children: [
822
822
  /* @__PURE__ */ t(
823
- F,
823
+ q,
824
824
  {
825
825
  component: "img",
826
826
  src: e,
@@ -836,7 +836,7 @@ const wa = ({
836
836
  }
837
837
  ),
838
838
  /* @__PURE__ */ t(
839
- F,
839
+ q,
840
840
  {
841
841
  className: "orc-live-provider-label",
842
842
  sx: {
@@ -866,7 +866,7 @@ const wa = ({
866
866
  ]
867
867
  }
868
868
  );
869
- }, Pe = 12, Fe = ({ r: e = 16 }) => /* @__PURE__ */ t(F, { sx: { width: "100%", height: "100%", borderRadius: e, overflow: "hidden" }, children: /* @__PURE__ */ t(
869
+ }, Le = 12, Fe = ({ r: e = 16 }) => /* @__PURE__ */ t(q, { sx: { width: "100%", height: "100%", borderRadius: e, overflow: "hidden" }, children: /* @__PURE__ */ t(
870
870
  j,
871
871
  {
872
872
  variant: "rectangular",
@@ -890,9 +890,9 @@ const wa = ({
890
890
  }) => {
891
891
  var r, s;
892
892
  if (a === "mosaic") {
893
- const c = e[0], f = e.slice(1, 5);
893
+ const c = e[0], h = e.slice(1, 5);
894
894
  return /* @__PURE__ */ b(
895
- F,
895
+ q,
896
896
  {
897
897
  sx: {
898
898
  display: "grid",
@@ -909,14 +909,14 @@ const wa = ({
909
909
  xs: "104px",
910
910
  md: "152px"
911
911
  },
912
- columnGap: `${Pe}px`,
913
- rowGap: `${Pe}px`,
912
+ columnGap: `${Le}px`,
913
+ rowGap: `${Le}px`,
914
914
  alignItems: "stretch",
915
915
  justifyItems: "stretch"
916
916
  },
917
917
  children: [
918
918
  /* @__PURE__ */ t(
919
- F,
919
+ q,
920
920
  {
921
921
  sx: {
922
922
  width: { xs: 184, md: 280 },
@@ -936,10 +936,10 @@ const wa = ({
936
936
  )
937
937
  }
938
938
  ),
939
- (o ? Array.from({ length: 4 }) : f).map((h, u) => {
940
- var p, d;
939
+ (o ? Array.from({ length: 4 }) : h).map((g, u) => {
940
+ var m, d;
941
941
  return /* @__PURE__ */ t(
942
- F,
942
+ q,
943
943
  {
944
944
  sx: {
945
945
  width: { xs: 104, md: 152 },
@@ -950,14 +950,14 @@ const wa = ({
950
950
  children: o ? /* @__PURE__ */ t(Fe, {}) : /* @__PURE__ */ t(
951
951
  Te,
952
952
  {
953
- imageUrl: `https://olimpo.bet${(d = (p = h.background) != null ? p : h.imageUrl) != null ? d : ""}`,
953
+ imageUrl: `https://olimpo.bet${(d = (m = g.background) != null ? m : g.imageUrl) != null ? d : ""}`,
954
954
  size: "sm",
955
955
  fillParent: !0,
956
- onClick: () => n == null ? void 0 : n(h, u + 1)
956
+ onClick: () => n == null ? void 0 : n(g, u + 1)
957
957
  }
958
958
  )
959
959
  },
960
- o ? `sk-${u}` : h.id
960
+ o ? `sk-${u}` : g.id
961
961
  );
962
962
  })
963
963
  ]
@@ -965,7 +965,7 @@ const wa = ({
965
965
  );
966
966
  }
967
967
  return /* @__PURE__ */ t(
968
- F,
968
+ q,
969
969
  {
970
970
  sx: {
971
971
  display: "grid",
@@ -977,26 +977,26 @@ const wa = ({
977
977
  xs: "repeat(2, 112px)",
978
978
  md: "repeat(2, 168px)"
979
979
  },
980
- gap: `${Pe}px`,
980
+ gap: `${Le}px`,
981
981
  gridAutoFlow: "column"
982
982
  },
983
- children: (o ? Array.from({ length: i }) : e).map((c, f) => {
984
- var h, u, p;
983
+ children: (o ? Array.from({ length: i }) : e).map((c, h) => {
984
+ var g, u, m;
985
985
  return /* @__PURE__ */ t(
986
- F,
986
+ q,
987
987
  {
988
988
  sx: { overflow: "hidden", borderRadius: 2 },
989
989
  children: o ? /* @__PURE__ */ t(Fe, {}) : /* @__PURE__ */ t(
990
990
  Te,
991
991
  {
992
- imageUrl: `https://olimpo.bet${(u = (h = c.background) != null ? h : c.imageUrl) != null ? u : ""}`,
992
+ imageUrl: `https://olimpo.bet${(u = (g = c.background) != null ? g : c.imageUrl) != null ? u : ""}`,
993
993
  size: "sm",
994
994
  fillParent: !0,
995
- onClick: () => n == null ? void 0 : n(c, f)
995
+ onClick: () => n == null ? void 0 : n(c, h)
996
996
  }
997
997
  )
998
998
  },
999
- o ? `sk-${f}` : (p = c.id) != null ? p : f
999
+ o ? `sk-${h}` : (m = c.id) != null ? m : h
1000
1000
  );
1001
1001
  })
1002
1002
  }
@@ -1010,11 +1010,11 @@ const wa = ({
1010
1010
  backgroundImage: r,
1011
1011
  alt: s,
1012
1012
  className: c = "",
1013
- variant: f = "small"
1013
+ variant: h = "small"
1014
1014
  }) => {
1015
- const h = a ? a.slice(0, 2) : "", u = a ? a.slice(2) : "", p = f === "large";
1015
+ const g = a ? a.slice(0, 2) : "", u = a ? a.slice(2) : "", m = h === "large";
1016
1016
  return /* @__PURE__ */ b(
1017
- F,
1017
+ q,
1018
1018
  {
1019
1019
  className: c,
1020
1020
  sx: {
@@ -1022,26 +1022,26 @@ const wa = ({
1022
1022
  width: "100%",
1023
1023
  maxWidth: {
1024
1024
  xs: 328,
1025
- md: p ? 618 : 456
1025
+ md: m ? 618 : 456
1026
1026
  },
1027
1027
  mx: "auto"
1028
1028
  },
1029
1029
  children: [
1030
1030
  r && /* @__PURE__ */ t(
1031
- F,
1031
+ q,
1032
1032
  {
1033
1033
  sx: {
1034
1034
  position: "relative",
1035
1035
  width: "100%",
1036
1036
  aspectRatio: {
1037
1037
  xs: "328 / 188",
1038
- md: p ? "618 / 346" : "456 / 272"
1038
+ md: m ? "618 / 346" : "456 / 272"
1039
1039
  },
1040
1040
  borderRadius: "14px",
1041
1041
  overflow: "hidden"
1042
1042
  },
1043
1043
  children: /* @__PURE__ */ t(
1044
- F,
1044
+ q,
1045
1045
  {
1046
1046
  component: "img",
1047
1047
  src: r,
@@ -1061,7 +1061,7 @@ const wa = ({
1061
1061
  }
1062
1062
  ),
1063
1063
  /* @__PURE__ */ t(
1064
- F,
1064
+ q,
1065
1065
  {
1066
1066
  sx: {
1067
1067
  position: "absolute",
@@ -1075,7 +1075,7 @@ const wa = ({
1075
1075
  pr: { xs: "14%", lg: "15%" }
1076
1076
  },
1077
1077
  children: /* @__PURE__ */ b(
1078
- F,
1078
+ q,
1079
1079
  {
1080
1080
  sx: {
1081
1081
  maxWidth: "60%",
@@ -1096,7 +1096,7 @@ const wa = ({
1096
1096
  }
1097
1097
  ),
1098
1098
  a && /* @__PURE__ */ b(
1099
- F,
1099
+ q,
1100
1100
  {
1101
1101
  component: "p",
1102
1102
  sx: {
@@ -1114,15 +1114,15 @@ const wa = ({
1114
1114
  },
1115
1115
  children: [
1116
1116
  /* @__PURE__ */ t(
1117
- F,
1117
+ q,
1118
1118
  {
1119
1119
  component: "span",
1120
1120
  sx: { fontSize: { xs: 35, md: 48 }, mr: 0.5 },
1121
- children: h
1121
+ children: g
1122
1122
  }
1123
1123
  ),
1124
1124
  /* @__PURE__ */ t(
1125
- F,
1125
+ q,
1126
1126
  {
1127
1127
  component: "span",
1128
1128
  sx: { fontSize: { xs: 52, md: 77 } },
@@ -1211,10 +1211,10 @@ function Ue(e, a) {
1211
1211
  const n = Array.isArray(a) ? a : [a];
1212
1212
  sessionStorage.setItem("landingOutcomes", JSON.stringify(n)), window.location.href = e;
1213
1213
  }
1214
- function Aa() {
1214
+ function Ba() {
1215
1215
  window.location.href = "/deportes#in-play";
1216
1216
  }
1217
- function Ba() {
1217
+ function Aa() {
1218
1218
  window.location.href = "/deportes#sports-hub/football";
1219
1219
  }
1220
1220
  function za() {
@@ -1241,37 +1241,37 @@ const ht = $t(void 0), bt = ({ children: e, docId: a, moduleId: n }) => {
1241
1241
  return e;
1242
1242
  }, ne = () => vt().docId, le = () => vt().moduleId;
1243
1243
  function Ra({ coupon: e }) {
1244
- var h;
1244
+ var g;
1245
1245
  const a = ae(), n = ne();
1246
1246
  function o(u) {
1247
- var g, m;
1248
- const p = [], d = Array.from(
1247
+ var f, p;
1248
+ const m = [], d = Array.from(
1249
1249
  new Map(
1250
- ((g = u == null ? void 0 : u.events) != null ? g : []).filter(Boolean).map((_) => [_.id, _])
1250
+ ((f = u == null ? void 0 : u.events) != null ? f : []).filter(Boolean).map((v) => [v.id, v])
1251
1251
  ).values()
1252
1252
  );
1253
- return d.forEach((_) => {
1254
- var I;
1255
- const S = (I = _.betoffers) != null ? I : [], y = _.homeName, v = _.awayName;
1256
- S.forEach((D) => {
1257
- var M, k, x, O, L, z, R;
1258
- if (!((M = D == null ? void 0 : D.outcomes) != null && M.length)) return;
1259
- const T = D.outcomes[0];
1260
- if (!T) return;
1261
- let N = "";
1262
- const E = T != null && T.line ? T.line / 1e3 : "";
1263
- ["Más de", "Mas de", "Over"].includes(T.label) ? (N = `Más de ${E}`, T.participant && (N = `${T.participant} - ${N}`)) : ["Menos de", "Menos", "Under"].includes(T.label) ? (N = `Menos de ${E}`, T.participant && (N = `${T.participant} - ${N}`)) : ["Sí", "No"].includes(T.label) ? (N = T.label, T.participant && (N = `${T.participant} - ${N}`)) : ["1X", "12", "X2"].includes(T.label) ? (T.label === "1X" && (N = `${y} o Empate`), T.label === "12" && (N = `${y} o ${v}`), T.label === "X2" && (N = `${v} o Empate`)) : (N = (x = (k = T.participant) != null ? k : T.label) != null ? x : "", E !== "" && N === T.label && (N = `${T.label} ${E}`)), p.push({
1264
- id: T.id,
1265
- value: N,
1266
- label: (L = (O = D.criterion) == null ? void 0 : O.label) != null ? L : "",
1267
- odds: (z = T.odds) != null ? z : 0,
1268
- position: (R = T.position) != null ? R : 0,
1269
- eventId: _.id
1253
+ return d.forEach((v) => {
1254
+ var _;
1255
+ const C = (_ = v.betoffers) != null ? _ : [], y = v.homeName, I = v.awayName;
1256
+ C.forEach((D) => {
1257
+ var A, $, x, O, P, z, R;
1258
+ if (!((A = D == null ? void 0 : D.outcomes) != null && A.length)) return;
1259
+ const k = D.outcomes[0];
1260
+ if (!k) return;
1261
+ let M = "";
1262
+ const T = k != null && k.line ? k.line / 1e3 : "";
1263
+ ["Más de", "Mas de", "Over"].includes(k.label) ? (M = `Más de ${T}`, k.participant && (M = `${k.participant} - ${M}`)) : ["Menos de", "Menos", "Under"].includes(k.label) ? (M = `Menos de ${T}`, k.participant && (M = `${k.participant} - ${M}`)) : ["Sí", "No"].includes(k.label) ? (M = k.label, k.participant && (M = `${k.participant} - ${M}`)) : ["1X", "12", "X2"].includes(k.label) ? (k.label === "1X" && (M = `${y} o Empate`), k.label === "12" && (M = `${y} o ${I}`), k.label === "X2" && (M = `${I} o Empate`)) : (M = (x = ($ = k.participant) != null ? $ : k.label) != null ? x : "", T !== "" && M === k.label && (M = `${k.label} ${T}`)), m.push({
1264
+ id: k.id,
1265
+ value: M,
1266
+ label: (P = (O = D.criterion) == null ? void 0 : O.label) != null ? P : "",
1267
+ odds: (z = k.odds) != null ? z : 0,
1268
+ position: (R = k.position) != null ? R : 0,
1269
+ eventId: v.id
1270
1270
  });
1271
1271
  });
1272
1272
  }), {
1273
- outcomes: p.sort((_, S) => _.position - S.position),
1274
- total: Number((m = u == null ? void 0 : u.combinadoTotal) != null ? m : 0).toLocaleString("en-US", {
1273
+ outcomes: m.sort((v, C) => v.position - C.position),
1274
+ total: Number((p = u == null ? void 0 : u.combinadoTotal) != null ? p : 0).toLocaleString("en-US", {
1275
1275
  minimumFractionDigits: 2,
1276
1276
  maximumFractionDigits: 2
1277
1277
  }),
@@ -1281,46 +1281,46 @@ function Ra({ coupon: e }) {
1281
1281
  function i(u) {
1282
1282
  if (!u || !Array.isArray(u.events) || u.events.length === 0)
1283
1283
  return "/deportes#home";
1284
- const p = u.events;
1285
- if (p.length === 1)
1286
- return `/deportes#event/${p[0].id}`;
1287
- const d = p[0].groupId;
1288
- if (p.every((m) => m.groupId === d)) {
1289
- const m = p[0].path;
1290
- if (Array.isArray(m) && m.length > 0)
1291
- return `/deportes#sports-hub/${m.map((S) => S.termKey).filter(Boolean).join("/")}`;
1284
+ const m = u.events;
1285
+ if (m.length === 1)
1286
+ return `/deportes#event/${m[0].id}`;
1287
+ const d = m[0].groupId;
1288
+ if (m.every((p) => p.groupId === d)) {
1289
+ const p = m[0].path;
1290
+ if (Array.isArray(p) && p.length > 0)
1291
+ return `/deportes#sports-hub/${p.map((C) => C.termKey).filter(Boolean).join("/")}`;
1292
1292
  }
1293
1293
  return "/deportes#home";
1294
1294
  }
1295
- const r = (u, p) => {
1296
- const d = Array.isArray(u) ? u : [u], g = Array.from(
1295
+ const r = (u, m) => {
1296
+ const d = Array.isArray(u) ? u : [u], f = Array.from(
1297
1297
  new Set(
1298
- s.outcomes.map((S) => {
1299
- var v;
1300
- const y = f.get(Number(S.eventId));
1301
- return (v = y == null ? void 0 : y.name) != null ? v : "";
1298
+ s.outcomes.map((C) => {
1299
+ var I;
1300
+ const y = h.get(Number(C.eventId));
1301
+ return (I = y == null ? void 0 : y.name) != null ? I : "";
1302
1302
  })
1303
1303
  )
1304
- ).filter(Boolean), m = g.length > 0 ? g.join(" + ") : JSON.stringify(d), _ = p ? `${m} - Cuota: ${p}` : m;
1304
+ ).filter(Boolean), p = f.length > 0 ? f.join(" + ") : JSON.stringify(d), v = m ? `${p} - Cuota: ${m}` : p;
1305
1305
  a({
1306
1306
  element: "evento_semana_outcome",
1307
- label: `Landing: ${n} - OraculoEventCombinadasCard - Click: ${_}`,
1307
+ label: `Landing: ${n} - OraculoEventCombinadasCard - Click: ${v}`,
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: v }
1315
1315
  }), Ue(i(e), u);
1316
1316
  };
1317
- if (!((h = e == null ? void 0 : e.events) != null && h.length)) return null;
1318
- const s = o(e), c = s.outcomes.reduce((u, p) => (u[p.eventId] || (u[p.eventId] = []), u[p.eventId].push(p), u), {}), f = new Map(
1317
+ if (!((g = e == null ? void 0 : e.events) != null && g.length)) return null;
1318
+ const s = o(e), c = s.outcomes.reduce((u, m) => (u[m.eventId] || (u[m.eventId] = []), u[m.eventId].push(m), u), {}), h = new Map(
1319
1319
  s.events.map((u) => [u.id, u])
1320
1320
  );
1321
1321
  return /* @__PURE__ */ b("div", { className: ce.card, children: [
1322
- /* @__PURE__ */ t("div", { className: ce.combinadas, children: /* @__PURE__ */ t("div", { className: ce.combinadasScroll, children: /* @__PURE__ */ t(H, { direction: "column", spacing: 1.5, useFlexGap: !0, children: Object.entries(c).reverse().map(([u, p]) => {
1323
- const d = f.get(Number(u));
1322
+ /* @__PURE__ */ t("div", { className: ce.combinadas, children: /* @__PURE__ */ t("div", { className: ce.combinadasScroll, children: /* @__PURE__ */ t(H, { direction: "column", spacing: 1.5, useFlexGap: !0, children: Object.entries(c).reverse().map(([u, m]) => {
1323
+ const d = h.get(Number(u));
1324
1324
  return d ? /* @__PURE__ */ b(
1325
1325
  H,
1326
1326
  {
@@ -1343,17 +1343,17 @@ function Ra({ coupon: e }) {
1343
1343
  src: "/assets/img/home/Combinadas/line.png"
1344
1344
  }
1345
1345
  ),
1346
- p.map((g, m) => /* @__PURE__ */ b("div", { className: ce.apuestaItem, children: [
1346
+ m.map((f, p) => /* @__PURE__ */ b("div", { className: ce.apuestaItem, children: [
1347
1347
  /* @__PURE__ */ b("div", { className: ce.lineContainer, children: [
1348
1348
  /* @__PURE__ */ t("div", { className: ce.circle }),
1349
- m < p.length - 1 && /* @__PURE__ */ t("div", { className: ce.line })
1349
+ p < m.length - 1 && /* @__PURE__ */ t("div", { className: ce.line })
1350
1350
  ] }),
1351
1351
  /* @__PURE__ */ b("div", { className: ce.apuestaText, children: [
1352
- /* @__PURE__ */ t("strong", { children: g.value }),
1352
+ /* @__PURE__ */ t("strong", { children: f.value }),
1353
1353
  " | ",
1354
- g.label
1354
+ f.label
1355
1355
  ] })
1356
- ] }, `${u}-${m}`))
1356
+ ] }, `${u}-${p}`))
1357
1357
  ]
1358
1358
  },
1359
1359
  u
@@ -1399,7 +1399,7 @@ const de = {
1399
1399
  "orc-btn--full": "oraculo__OraculoButtonBet-module__orc-btn--full___z-Myo",
1400
1400
  "orc-btn--fullHeight": "oraculo__OraculoButtonBet-module__orc-btn--fullHeight___pCxq1"
1401
1401
  };
1402
- function La({
1402
+ function Pa({
1403
1403
  children: e,
1404
1404
  onClick: a,
1405
1405
  href: n,
@@ -1408,31 +1408,31 @@ function La({
1408
1408
  type: r = "button",
1409
1409
  disabled: s = !1,
1410
1410
  variant: c = "primary",
1411
- size: f,
1412
- fullWidth: h = !1,
1411
+ size: h,
1412
+ fullWidth: g = !1,
1413
1413
  fullHeight: u = !1,
1414
- className: p = "",
1414
+ className: m = "",
1415
1415
  ariaLabel: d,
1416
- leftIcon: g,
1417
- rightIcon: m,
1418
- iconOnly: _
1416
+ leftIcon: f,
1417
+ rightIcon: p,
1418
+ iconOnly: v
1419
1419
  }) {
1420
- const S = !!e && e !== !0, I = (!!g ? 1 : 0) + (!!m ? 1 : 0) == 1, D = _ != null ? _ : I && !S, T = [
1420
+ const C = !!e && e !== !0, _ = (!!f ? 1 : 0) + (!!p ? 1 : 0) == 1, D = v != null ? v : _ && !C, k = [
1421
1421
  de["orc-btn"],
1422
1422
  // base
1423
1423
  de[`orc-btn--${c}`],
1424
1424
  // variant primary/secondary/tertiary
1425
- f ? de[`orc-btn--${f}`] : "",
1425
+ h ? de[`orc-btn--${h}`] : "",
1426
1426
  // sm / md / lg
1427
- h ? de["orc-btn--full"] : "",
1427
+ g ? de["orc-btn--full"] : "",
1428
1428
  u ? de["orc-btn--fullHeight"] : "",
1429
1429
  D ? de["orc-btn--iconOnly"] : "",
1430
- p
1431
- ].filter(Boolean).join(" "), N = /* @__PURE__ */ b(pe, { children: [
1432
- g && /* @__PURE__ */ t("span", { className: de["orc-btn__icon"], children: g }),
1430
+ m
1431
+ ].filter(Boolean).join(" "), M = /* @__PURE__ */ b(pe, { children: [
1432
+ f && /* @__PURE__ */ t("span", { className: de["orc-btn__icon"], children: f }),
1433
1433
  !D && /* @__PURE__ */ t("span", { className: de["orc-btn__label"], children: e }),
1434
- m && /* @__PURE__ */ t("span", { className: de["orc-btn__icon"], children: m })
1435
- ] }), E = s ? !0 : void 0;
1434
+ p && /* @__PURE__ */ t("span", { className: de["orc-btn__icon"], children: p })
1435
+ ] }), T = s ? !0 : void 0;
1436
1436
  return n ? /* @__PURE__ */ t(
1437
1437
  rt,
1438
1438
  {
@@ -1440,26 +1440,26 @@ function La({
1440
1440
  target: o,
1441
1441
  rel: i,
1442
1442
  "aria-label": d,
1443
- "aria-disabled": E,
1444
- tabIndex: E ? -1 : void 0,
1445
- className: T,
1446
- onClick: E ? (M) => M.preventDefault() : a,
1447
- children: N
1443
+ "aria-disabled": T,
1444
+ tabIndex: T ? -1 : void 0,
1445
+ className: k,
1446
+ onClick: T ? (A) => A.preventDefault() : a,
1447
+ children: M
1448
1448
  }
1449
1449
  ) : /* @__PURE__ */ t(
1450
1450
  "button",
1451
1451
  {
1452
1452
  type: r,
1453
1453
  onClick: a,
1454
- disabled: !!E,
1454
+ disabled: !!T,
1455
1455
  "aria-label": d,
1456
- className: T,
1457
- children: N
1456
+ className: k,
1457
+ children: M
1458
1458
  }
1459
1459
  );
1460
1460
  }
1461
- const Pa = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", Fa = "oraculo__OraculoEventEnVivoCard-module__customButtonLabel___QRhk7", qa = "oraculo__OraculoEventEnVivoCard-module__customButtonDisabled___jwioF", ke = {
1462
- cardWrapper: Pa,
1461
+ const La = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", Fa = "oraculo__OraculoEventEnVivoCard-module__customButtonLabel___QRhk7", qa = "oraculo__OraculoEventEnVivoCard-module__customButtonDisabled___jwioF", ke = {
1462
+ cardWrapper: La,
1463
1463
  customButtonLabel: Fa,
1464
1464
  customButtonDisabled: qa
1465
1465
  }, Xe = {
@@ -1484,11 +1484,11 @@ const Pa = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", Fa = "
1484
1484
  return o || (a === "home" ? Xe : Ye);
1485
1485
  };
1486
1486
  function Da({ event: e, liveData: a, betOffers: n, jersey: o }) {
1487
- var c, f, h, u, p, d, g, m, _, S, y;
1487
+ var c, h, g, u, m, d, f, p, v, C, y;
1488
1488
  const i = n == null ? void 0 : n.find(
1489
- (v) => {
1490
- var I;
1491
- return ((I = v.betOfferType) == null ? void 0 : I.id) === 2;
1489
+ (I) => {
1490
+ var _;
1491
+ return ((_ = I.betOfferType) == null ? void 0 : _.id) === 2;
1492
1492
  }
1493
1493
  ), r = {
1494
1494
  englishLabel: "",
@@ -1509,23 +1509,23 @@ function Da({ event: e, liveData: a, betOffers: n, jersey: o }) {
1509
1509
  /* @__PURE__ */ t(
1510
1510
  Ht,
1511
1511
  {
1512
- title: (h = (f = (c = e == null ? void 0 : e.path) == null ? void 0 : c[0]) == null ? void 0 : f.name) != null ? h : "",
1512
+ title: (g = (h = (c = e == null ? void 0 : e.path) == null ? void 0 : c[0]) == null ? void 0 : h.name) != null ? g : "",
1513
1513
  subtitle: (u = e == null ? void 0 : e.group) != null ? u : "",
1514
1514
  live: !0,
1515
- time: ((p = a == null ? void 0 : a.matchClock) == null ? void 0 : p.minute) != null ? `${a.matchClock.minute}'` : ""
1515
+ time: ((m = a == null ? void 0 : a.matchClock) == null ? void 0 : m.minute) != null ? `${a.matchClock.minute}'` : ""
1516
1516
  }
1517
1517
  ),
1518
1518
  /* @__PURE__ */ t("div", { style: { padding: "0 4px" }, children: /* @__PURE__ */ b(me, { 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(pt, { text: ((g = (d = a == null ? void 0 : a.score) == null ? void 0 : d.home) != null ? g : 0) + ":" + ((_ = (m = a == null ? void 0 : a.score) == null ? void 0 : m.away) != null ? _ : 0), name: "En vivo" }),
1520
+ /* @__PURE__ */ t(pt, { text: ((f = (d = a == null ? void 0 : a.score) == null ? void 0 : d.home) != null ? f : 0) + ":" + ((v = (p = a == null ? void 0 : a.score) == null ? void 0 : p.away) != null ? v : 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__ */ b(H, { direction: "column", spacing: 1, useFlexGap: !0, children: [
1525
- /* @__PURE__ */ t(me, { spacing: 1, children: ((S = i == null ? void 0 : i.outcomes) != null ? S : s).map((v, I) => /* @__PURE__ */ t(ut, { text: v.label.toUpperCase() }, I)) }),
1526
- /* @__PURE__ */ t(me, { spacing: 2, children: ((y = i == null ? void 0 : i.outcomes) != null ? y : s).map((v, I) => /* @__PURE__ */ t(La, { variant: "primary", disabled: v.odds == null || (i == null ? void 0 : i.cashOutStatus) == "SUSPENDED", onClick: () => {
1527
- Ue("/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)) })
1525
+ /* @__PURE__ */ t(me, { spacing: 1, children: ((C = i == null ? void 0 : i.outcomes) != null ? C : s).map((I, _) => /* @__PURE__ */ t(ut, { text: I.label.toUpperCase() }, _)) }),
1526
+ /* @__PURE__ */ t(me, { spacing: 2, children: ((y = i == null ? void 0 : i.outcomes) != null ? y : s).map((I, _) => /* @__PURE__ */ t(Pa, { variant: "primary", disabled: I.odds == null || (i == null ? void 0 : i.cashOutStatus) == "SUSPENDED", onClick: () => {
1527
+ Ue("/deportes#event/live/" + e.id, I.id);
1528
+ }, className: ke.customButtonDisabled, children: /* @__PURE__ */ t("span", { className: ke.customButtonLabel, children: I.odds === void 0 ? "" : (I.odds / 1e3).toFixed(2) }) }, _)) })
1529
1529
  ] })
1530
1530
  ] }) });
1531
1531
  }
@@ -1542,15 +1542,15 @@ const Ga = "oraculo__OraculoEventSemanaCard-module__cardContainer___4JuDe", ja =
1542
1542
  equipos: Ka
1543
1543
  };
1544
1544
  function Za({ event: e, jersey: a }) {
1545
- var s, c, f, h, u, p, d;
1545
+ var s, c, h, g, u, m, d;
1546
1546
  const n = ae(), o = ne();
1547
- function i(g) {
1548
- const m = new Date(g), _ = m.toLocaleDateString("es-ES", { weekday: "short" }).toUpperCase(), S = m.getDate().toString().padStart(2, "0"), y = (m.getMonth() + 1).toString().padStart(2, "0");
1549
- let v = m.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"), `${_} ${S}/${y} | ${v}`;
1547
+ function i(f) {
1548
+ const p = new Date(f), v = p.toLocaleDateString("es-ES", { weekday: "short" }).toUpperCase(), C = p.getDate().toString().padStart(2, "0"), y = (p.getMonth() + 1).toString().padStart(2, "0");
1549
+ let I = p.toLocaleTimeString("es-PE", { hour: "numeric", minute: "2-digit", hour12: !0 }).toUpperCase();
1550
+ return I = I.replace(/\./g, "").replace(/A\s*M/i, "AM").replace(/P\s*M/i, "PM"), `${v} ${C}/${y} | ${I}`;
1551
1551
  }
1552
- const r = (g, m) => {
1553
- const _ = `${e.homeName} vs ${e.awayName}`, S = m ? (m / 1e3).toFixed(2) : "", y = S ? `${_} - Cuota: ${S}` : _;
1552
+ const r = (f, p) => {
1553
+ const v = `${e.homeName} vs ${e.awayName}`, C = p ? (p / 1e3).toFixed(2) : "", y = C ? `${v} - Cuota: ${C}` : v;
1554
1554
  n({
1555
1555
  element: "evento_semana_outcome",
1556
1556
  label: `Landing: ${o} - OraculoEventSemanaCard - Click: ${y}`,
@@ -1561,7 +1561,7 @@ function Za({ event: e, jersey: a }) {
1561
1561
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
1562
1562
  },
1563
1563
  tags: { section: "OraculoEventSemanaCard", outcomes: y }
1564
- }), Ue("/deportes#event/" + e.id, g);
1564
+ }), Ue("/deportes#event/" + e.id, f);
1565
1565
  };
1566
1566
  return /* @__PURE__ */ b("div", { className: be.cardContainer, children: [
1567
1567
  /* @__PURE__ */ t(mt, { title: (s = e == null ? void 0 : e.group) != null ? s : "" }),
@@ -1575,10 +1575,10 @@ function Za({ event: e, jersey: a }) {
1575
1575
  /* @__PURE__ */ t(Wa, { text: i(e.start) })
1576
1576
  ] }),
1577
1577
  /* @__PURE__ */ b(H, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
1578
- /* @__PURE__ */ t(me, { spacing: 1, children: ((h = (f = (c = e == null ? void 0 : e.outcome) == null ? void 0 : c[0]) == null ? void 0 : f.outcomes) != null ? h : []).map((g, m) => /* @__PURE__ */ t(ut, { text: g.label.toUpperCase() }, m)) }),
1579
- /* @__PURE__ */ t("div", { className: be.jugadas, children: /* @__PURE__ */ t(me, { spacing: 1, children: ((d = (p = (u = e == null ? void 0 : e.outcome) == null ? void 0 : u[0]) == null ? void 0 : p.outcomes) != null ? d : []).map((g, m) => /* @__PURE__ */ t(X, { variant: "primary", fullHeight: !0, onClick: () => {
1580
- r(g.id, g.odds);
1581
- }, children: (g.odds / 1e3).toFixed(2) }, m)) }) })
1578
+ /* @__PURE__ */ t(me, { spacing: 1, children: ((g = (h = (c = e == null ? void 0 : e.outcome) == null ? void 0 : c[0]) == null ? void 0 : h.outcomes) != null ? g : []).map((f, p) => /* @__PURE__ */ t(ut, { text: f.label.toUpperCase() }, p)) }),
1579
+ /* @__PURE__ */ t("div", { className: be.jugadas, children: /* @__PURE__ */ t(me, { spacing: 1, children: ((d = (m = (u = e == null ? void 0 : e.outcome) == null ? void 0 : u[0]) == null ? void 0 : m.outcomes) != null ? d : []).map((f, p) => /* @__PURE__ */ t(X, { variant: "primary", fullHeight: !0, onClick: () => {
1580
+ r(f.id, f.odds);
1581
+ }, children: (f.odds / 1e3).toFixed(2) }, p)) }) })
1582
1582
  ] })
1583
1583
  ] }) })
1584
1584
  ] });
@@ -1588,65 +1588,66 @@ function Ja({
1588
1588
  title: a = "Destacados",
1589
1589
  iconUrl: n,
1590
1590
  onViewMore: o,
1591
- className: i = ""
1591
+ className: i = "",
1592
+ paddingMobile: r = "16px"
1592
1593
  }) {
1593
- const r = V(null), [s, c] = Z({ isStart: !0, isEnd: !1 }), f = ae(), h = ne(), u = le(), p = !e || e.length === 0, d = () => {
1594
- var v;
1595
- f({
1594
+ const s = V(null), [c, h] = Z({ isStart: !0, isEnd: !1 }), g = ae(), u = ne(), m = le(), d = !e || e.length === 0, f = () => {
1595
+ var _;
1596
+ g({
1596
1597
  element: "destacados_carousel_prev",
1597
- label: `${h} - OraculoSeccionDestacados - Anterior`,
1598
+ label: `${u} - OraculoSeccionDestacados - Anterior`,
1598
1599
  target: "carousel",
1599
1600
  event_type: "click",
1600
- module_id: u,
1601
+ module_id: m,
1601
1602
  metadata: {
1602
1603
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
1603
1604
  },
1604
1605
  tags: { section: "OraculoSeccionDestacados" }
1605
- }), (v = r.current) == null || v.prev();
1606
- }, g = () => {
1607
- var v;
1608
- f({
1606
+ }), (_ = s.current) == null || _.prev();
1607
+ }, p = () => {
1608
+ var _;
1609
+ g({
1609
1610
  element: "destacados_carousel_next",
1610
- label: `${h} - OraculoSeccionDestacados - Siguiente`,
1611
+ label: `${u} - OraculoSeccionDestacados - Siguiente`,
1611
1612
  target: "carousel",
1612
1613
  event_type: "click",
1613
- module_id: u,
1614
+ module_id: m,
1614
1615
  metadata: {
1615
1616
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
1616
1617
  },
1617
1618
  tags: { section: "OraculoSeccionDestacados" }
1618
- }), (v = r.current) == null || v.next();
1619
- }, m = () => {
1620
- f({
1619
+ }), (_ = s.current) == null || _.next();
1620
+ }, v = () => {
1621
+ g({
1621
1622
  element: "destacados_view_more",
1622
- label: `${h} - OraculoSeccionDestacados - Ver más`,
1623
+ label: `${u} - OraculoSeccionDestacados - Ver más`,
1623
1624
  target: "https://www.olimpo.bet/promociones",
1624
1625
  event_type: "click",
1625
- module_id: u,
1626
+ module_id: m,
1626
1627
  metadata: {
1627
1628
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
1628
1629
  },
1629
1630
  tags: { section: "OraculoSeccionDestacados" }
1630
1631
  }), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/promociones");
1631
- }, _ = (v) => {
1632
- if (!v) return;
1633
- const D = `https://www.olimpo.bet/promociones/${encodeURIComponent(v)}`;
1634
- f({
1632
+ }, C = (_) => {
1633
+ if (!_) return;
1634
+ const k = `https://www.olimpo.bet/promociones/${encodeURIComponent(_)}`;
1635
+ g({
1635
1636
  element: "destacados_card",
1636
- label: `${h} - OraculoSeccionDestacados - Click: ${String(v)}`,
1637
- target: D,
1637
+ label: `${u} - OraculoSeccionDestacados - Click: ${String(_)}`,
1638
+ target: k,
1638
1639
  event_type: "click",
1639
- module_id: u,
1640
+ module_id: m,
1640
1641
  metadata: {
1641
1642
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
1642
1643
  },
1643
1644
  tags: {
1644
1645
  section: "OraculoSeccionDestacados",
1645
- promotion: String(v)
1646
+ promotion: String(_)
1646
1647
  }
1647
- }), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(D);
1648
- }, S = i || void 0, y = xe("(max-width:950px)");
1649
- return /* @__PURE__ */ b("section", { className: S, style: { width: "100%" }, children: [
1648
+ }), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(k);
1649
+ }, y = i || void 0, I = xe("(max-width:950px)");
1650
+ return /* @__PURE__ */ b("section", { className: y, style: { width: "100%" }, children: [
1650
1651
  /* @__PURE__ */ b(
1651
1652
  "header",
1652
1653
  {
@@ -1656,9 +1657,9 @@ function Ja({
1656
1657
  alignItems: "center",
1657
1658
  columnGap: 12,
1658
1659
  rowGap: 8,
1659
- // marginBottom: 16,
1660
- paddingLeft: y ? 16 : 0,
1661
- paddingRight: y ? 16 : 0
1660
+ marginBottom: 16,
1661
+ paddingLeft: I ? r : 0,
1662
+ paddingRight: I ? r : 0
1662
1663
  },
1663
1664
  children: [
1664
1665
  /* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
@@ -1669,9 +1670,9 @@ function Ja({
1669
1670
  ariaLabel: "Anterior",
1670
1671
  variant: "secondary",
1671
1672
  iconOnly: !0,
1672
- leftIcon: /* @__PURE__ */ t(Be, {}),
1673
- onClick: d,
1674
- disabled: s.isStart || p
1673
+ leftIcon: /* @__PURE__ */ t(Ae, {}),
1674
+ onClick: f,
1675
+ disabled: c.isStart || d
1675
1676
  }
1676
1677
  ),
1677
1678
  /* @__PURE__ */ t(
@@ -1681,43 +1682,42 @@ function Ja({
1681
1682
  variant: "secondary",
1682
1683
  iconOnly: !0,
1683
1684
  rightIcon: /* @__PURE__ */ t(ze, {}),
1684
- onClick: g,
1685
- disabled: s.isEnd || p
1685
+ onClick: p,
1686
+ disabled: c.isEnd || d
1686
1687
  }
1687
1688
  )
1688
1689
  ] }),
1689
- /* @__PURE__ */ t(X, { variant: "secondary", onClick: m, children: "Ver más" })
1690
+ /* @__PURE__ */ t(X, { variant: "secondary", onClick: v, children: "Ver más" })
1690
1691
  ]
1691
1692
  }
1692
1693
  ),
1693
1694
  /* @__PURE__ */ t(
1694
1695
  he,
1695
1696
  {
1696
- ref: r,
1697
+ ref: s,
1697
1698
  items: e,
1698
1699
  perPage: void 0,
1699
1700
  gap: "16px",
1700
1701
  enableHorizontalWheel: !0,
1701
- showRightGradient: !y,
1702
+ showRightGradient: !I,
1702
1703
  options: { autoWidth: !0, trimSpace: "move" },
1703
1704
  breakpoints: {
1704
- 768: { perPage: 2, focus: "start", padding: { left: "24px", right: "24px" } },
1705
+ 768: { perPage: 2, focus: "start", padding: { left: r, right: r } },
1705
1706
  1024: { perPage: 2.5, focus: "start", padding: { left: "24px", right: "24px" } }
1706
1707
  },
1707
- renderItem: (v) => /* @__PURE__ */ t(
1708
+ renderItem: (_) => /* @__PURE__ */ t(
1708
1709
  "div",
1709
1710
  {
1710
1711
  style: {
1711
1712
  textAlign: "center",
1712
- marginTop: 16,
1713
1713
  cursor: "pointer"
1714
1714
  },
1715
- onClick: () => _(v.promotion),
1715
+ onClick: () => C(_.promotion),
1716
1716
  children: /* @__PURE__ */ t(
1717
1717
  "img",
1718
1718
  {
1719
- src: `https://olimpo.bet${v.image !== "" ? v.image : v.summary_image}`,
1720
- alt: v.title,
1719
+ src: `https://olimpo.bet${_.image !== "" ? _.image : _.summary_image}`,
1720
+ alt: _.title,
1721
1721
  style: {
1722
1722
  width: "100%",
1723
1723
  height: typeof window != "undefined" && window.innerWidth < 768 ? "80px" : "137px",
@@ -1728,19 +1728,19 @@ function Ja({
1728
1728
  }
1729
1729
  )
1730
1730
  },
1731
- `${v.title}-${v.image}`
1731
+ `${_.title}-${_.image}`
1732
1732
  ),
1733
- onMove: ({ isStart: v, isEnd: I }) => {
1734
- c({ isStart: v, isEnd: I }), f({
1733
+ onMove: ({ isStart: _, isEnd: D }) => {
1734
+ h({ isStart: _, isEnd: D }), g({
1735
1735
  element: "destacados_carousel_slide",
1736
- label: `${h} - OraculoSeccionDestacados - Slide Carousel`,
1736
+ label: `${u} - OraculoSeccionDestacados - Slide Carousel`,
1737
1737
  target: "carousel",
1738
1738
  event_type: "slide",
1739
- module_id: u,
1739
+ module_id: m,
1740
1740
  metadata: {
1741
1741
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
1742
- isStart: v,
1743
- isEnd: I
1742
+ isStart: _,
1743
+ isEnd: D
1744
1744
  },
1745
1745
  tags: { section: "OraculoSeccionDestacados" }
1746
1746
  });
@@ -1771,39 +1771,39 @@ function Qa({
1771
1771
  onCardClick: o
1772
1772
  }) {
1773
1773
  const i = ae(), r = ne(), s = le(), c = ie(
1774
- () => (e != null ? e : []).map((p, d) => {
1775
- var g;
1774
+ () => (e != null ? e : []).map((m, d) => {
1775
+ var f;
1776
1776
  return {
1777
- ...p,
1778
- orden: (g = p.orden) != null ? g : d + 1,
1777
+ ...m,
1778
+ orden: (f = m.orden) != null ? f : d + 1,
1779
1779
  _originalIndex: d
1780
1780
  };
1781
- }).sort((p, d) => p.orden != null && d.orden != null ? p.orden - d.orden : p._originalIndex - d._originalIndex),
1781
+ }).sort((m, d) => m.orden != null && d.orden != null ? m.orden - d.orden : m._originalIndex - d._originalIndex),
1782
1782
  [e]
1783
- ), f = !e || e.length === 0, h = f ? Array.from({ length: 6 }) : c.slice(0, 6), u = (p) => {
1783
+ ), h = !e || e.length === 0, g = h ? Array.from({ length: 6 }) : c.slice(0, 6), u = (m) => {
1784
1784
  i({
1785
1785
  element: "top_juegos_card",
1786
- label: `${r} - OraculoSeccionTopJuegos - Open game: ${String(p.machine || "unknown")}`,
1787
- target: String(p.machine || "unknown"),
1786
+ label: `${r} - OraculoSeccionTopJuegos - Open game: ${String(m.machine || "unknown")}`,
1787
+ target: String(m.machine || "unknown"),
1788
1788
  event_type: "click",
1789
1789
  module_id: s,
1790
1790
  metadata: {
1791
1791
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
1792
1792
  },
1793
1793
  tags: {
1794
- game_name: String(p.machine || "unknown"),
1794
+ game_name: String(m.machine || "unknown"),
1795
1795
  section: "OraculoSeccionTopJuegos"
1796
1796
  }
1797
1797
  });
1798
- const d = se("showIframe"), g = se("loadMachine");
1798
+ const d = se("showIframe"), f = se("loadMachine");
1799
1799
  d == null || d(), requestAnimationFrame(() => {
1800
- g == null || g(p, !1, "CASINO");
1800
+ f == null || f(m, !1, "CASINO");
1801
1801
  });
1802
1802
  };
1803
1803
  return /* @__PURE__ */ t("section", { style: { width: "100%" }, children: /* @__PURE__ */ b(H, { direction: "column", spacing: 2, useFlexGap: !0, children: [
1804
1804
  /* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
1805
1805
  /* @__PURE__ */ t(
1806
- F,
1806
+ q,
1807
1807
  {
1808
1808
  sx: {
1809
1809
  display: "grid",
@@ -1815,19 +1815,19 @@ function Qa({
1815
1815
  justifyItems: "center",
1816
1816
  width: "100%"
1817
1817
  },
1818
- children: h.map((p, d) => {
1819
- var g, m;
1818
+ children: g.map((m, d) => {
1819
+ var f, p;
1820
1820
  return /* @__PURE__ */ t(
1821
1821
  xa,
1822
1822
  {
1823
- imageUrl: f ? "" : p.background ? `https://olimpo.bet${p.background}` : `https://olimpo.bet${(g = p.logo) != null ? g : ""}`,
1824
- orden: f ? d + 1 : p.orden,
1825
- loading: f,
1826
- onClick: f ? void 0 : () => {
1827
- o == null || o(p), u(p);
1823
+ imageUrl: h ? "" : m.background ? `https://olimpo.bet${m.background}` : `https://olimpo.bet${(f = m.logo) != null ? f : ""}`,
1824
+ orden: h ? d + 1 : m.orden,
1825
+ loading: h,
1826
+ onClick: h ? void 0 : () => {
1827
+ o == null || o(m), u(m);
1828
1828
  }
1829
1829
  },
1830
- f ? `sk-${d}` : (m = p.machine) != null ? m : `${d}`
1830
+ h ? `sk-${d}` : (p = m.machine) != null ? p : `${d}`
1831
1831
  );
1832
1832
  })
1833
1833
  }
@@ -1835,7 +1835,7 @@ function Qa({
1835
1835
  ] }) });
1836
1836
  }
1837
1837
  const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommendations", tn = (e, a) => {
1838
- var n, o, i, r, s, c, f, h, u, p, d, g, m, _;
1838
+ var n, o, i, r, s, c, h, g, u, m, d, f, p, v;
1839
1839
  return {
1840
1840
  orden: Number(a),
1841
1841
  machine: String(
@@ -1846,14 +1846,14 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
1846
1846
  web_name: (r = e.product) != null ? r : "",
1847
1847
  provider: (s = e.service) != null ? s : "",
1848
1848
  sub_provider: (c = e.service) != null ? c : "",
1849
- external_id: (f = e.external_id) != null ? f : "",
1850
- type: (h = e.game_type) != null ? h : "",
1849
+ external_id: (h = e.external_id) != null ? h : "",
1850
+ type: (g = e.game_type) != null ? g : "",
1851
1851
  tags: (u = e.tags) != null ? u : "",
1852
- lobby_tag: (p = e.lobby_tag) != null ? p : null,
1852
+ lobby_tag: (m = e.lobby_tag) != null ? m : null,
1853
1853
  background: (d = e.background) != null ? d : "",
1854
- rtp: (g = e.rtp) != null ? g : null,
1855
- demo_allowed: (m = e.demo_allowed) != null ? m : !1,
1856
- gaming_session_required: (_ = e.gaming_session_required) != null ? _ : !1
1854
+ rtp: (f = e.rtp) != null ? f : null,
1855
+ demo_allowed: (p = e.demo_allowed) != null ? p : !1,
1856
+ gaming_session_required: (v = e.gaming_session_required) != null ? v : !1
1857
1857
  };
1858
1858
  }, an = (e) => e ? !Array.isArray(e) && Array.isArray(e.recommendations) ? e.recommendations.filter(Boolean).map((a) => String(a)) : [] : [], yt = () => {
1859
1859
  var a, n, o;
@@ -1898,33 +1898,33 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
1898
1898
  }
1899
1899
  s(!0);
1900
1900
  try {
1901
- const h = await nn(n), u = an(h);
1901
+ const g = await nn(n), u = an(g);
1902
1902
  if (!u.length) {
1903
1903
  c || i([]);
1904
1904
  return;
1905
1905
  }
1906
- const p = yt(), d = await on(p, u), g = d.map((y) => y.itemId), m = await Promise.allSettled(
1907
- g.map(async (y, v) => {
1908
- const I = await fetch(`https://api.mktolimpo.com/api/machine/${y}`);
1909
- if (!I.ok)
1906
+ const m = yt(), d = await on(m, u), f = d.map((y) => y.itemId), p = await Promise.allSettled(
1907
+ f.map(async (y, I) => {
1908
+ const _ = await fetch(`https://api.mktolimpo.com/api/machine/${y}`);
1909
+ if (!_.ok)
1910
1910
  throw new Error(`No se pudo obtener machine ${y}`);
1911
- const D = await I.json();
1912
- return tn(D, v);
1911
+ const D = await _.json();
1912
+ return tn(D, I);
1913
1913
  })
1914
1914
  );
1915
1915
  if (c) return;
1916
- const _ = m.filter(
1916
+ const v = p.filter(
1917
1917
  (y) => y.status === "fulfilled"
1918
- ).map((y) => y.value), S = d.map((y) => {
1919
- const v = _.find((I) => I.machine === y.itemId);
1920
- return v ? { ...v, score: y.score } : null;
1921
- }).filter(Boolean).sort((y, v) => {
1922
- var I, D;
1923
- return ((I = v.score) != null ? I : 0) - ((D = y.score) != null ? D : 0);
1918
+ ).map((y) => y.value), C = d.map((y) => {
1919
+ const I = v.find((_) => _.machine === y.itemId);
1920
+ return I ? { ...I, score: y.score } : null;
1921
+ }).filter(Boolean).sort((y, I) => {
1922
+ var _, D;
1923
+ return ((_ = I.score) != null ? _ : 0) - ((D = y.score) != null ? D : 0);
1924
1924
  });
1925
- i(S);
1926
- } catch (h) {
1927
- console.error(`[usePersonalizeGameItems:${n}] error:`, h), c || i([]);
1925
+ i(C);
1926
+ } catch (g) {
1927
+ console.error(`[usePersonalizeGameItems:${n}] error:`, g), c || i([]);
1928
1928
  } finally {
1929
1929
  c || s(!1);
1930
1930
  }
@@ -1957,18 +1957,18 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
1957
1957
  backgroundDesktopUrl: r = "",
1958
1958
  onViewMore: s,
1959
1959
  className: c,
1960
- isPersonalize: f = !1
1960
+ isPersonalize: h = !1
1961
1961
  }) => {
1962
- const h = ae(), u = ne(), p = le(), d = dn(f), { resolvedItems: g } = ln(
1962
+ const g = ae(), u = ne(), m = le(), d = dn(h), { resolvedItems: f } = ln(
1963
1963
  e,
1964
1964
  d
1965
- ), m = d ? g : Array.isArray(e) ? e : [], _ = (y) => {
1966
- h({
1965
+ ), p = d ? f : Array.isArray(e) ? e : [], v = (y) => {
1966
+ g({
1967
1967
  element: "live_casino_card",
1968
1968
  label: `${u} - OraculoSeccionCasinoEnVivo${d ? " - personalize" : ""} - Open game: ${String(y.machine || "unknown")}`,
1969
1969
  target: String(y.machine || "unknown"),
1970
1970
  event_type: "click",
1971
- module_id: p,
1971
+ module_id: m,
1972
1972
  metadata: {
1973
1973
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
1974
1974
  },
@@ -1978,8 +1978,8 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
1978
1978
  section: "OraculoSeccionCasinoEnVivo"
1979
1979
  }
1980
1980
  });
1981
- const v = se("showIframe"), I = se("loadMachine");
1982
- if (!I) {
1981
+ const I = se("showIframe"), _ = se("loadMachine");
1982
+ if (!_) {
1983
1983
  if (i) {
1984
1984
  i(y);
1985
1985
  return;
@@ -1990,16 +1990,16 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
1990
1990
  );
1991
1991
  return;
1992
1992
  }
1993
- v == null || v(), typeof window != "undefined" && window.scrollTo({ top: 0, behavior: "smooth" }), requestAnimationFrame(() => {
1994
- I == null || I(y, !1, "casino_en_vivo");
1993
+ I == null || I(), typeof window != "undefined" && window.scrollTo({ top: 0, behavior: "smooth" }), requestAnimationFrame(() => {
1994
+ _ == null || _(y, !1, "casino_en_vivo");
1995
1995
  });
1996
- }, S = () => {
1997
- h({
1996
+ }, C = () => {
1997
+ g({
1998
1998
  element: "casino_en_vivo_view_more",
1999
1999
  label: `${u} - OraculoSeccionCasinoEnVivo${d ? " - personalize" : ""} - Ver más`,
2000
2000
  target: "https://www.olimpo.bet/casino-en-vivo",
2001
2001
  event_type: "click",
2002
- module_id: p,
2002
+ module_id: m,
2003
2003
  metadata: {
2004
2004
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
2005
2005
  },
@@ -2007,7 +2007,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2007
2007
  }), typeof globalThis != "undefined" && globalThis.location && (s ? s() : globalThis.location.assign("https://www.olimpo.bet/casino-en-vivo"));
2008
2008
  };
2009
2009
  return /* @__PURE__ */ b(
2010
- F,
2010
+ q,
2011
2011
  {
2012
2012
  className: c,
2013
2013
  sx: {
@@ -2017,7 +2017,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2017
2017
  },
2018
2018
  children: [
2019
2019
  /* @__PURE__ */ t(
2020
- F,
2020
+ q,
2021
2021
  {
2022
2022
  sx: {
2023
2023
  position: "absolute",
@@ -2045,7 +2045,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2045
2045
  }
2046
2046
  ),
2047
2047
  /* @__PURE__ */ b(
2048
- F,
2048
+ q,
2049
2049
  {
2050
2050
  sx: {
2051
2051
  position: "relative",
@@ -2088,18 +2088,18 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2088
2088
  children: n
2089
2089
  }
2090
2090
  ),
2091
- /* @__PURE__ */ t(F, { sx: { display: { xs: "none", md: "block" } }, children: /* @__PURE__ */ t(
2091
+ /* @__PURE__ */ t(q, { sx: { display: { xs: "none", md: "block" } }, children: /* @__PURE__ */ t(
2092
2092
  X,
2093
2093
  {
2094
2094
  variant: "primary",
2095
2095
  size: "md",
2096
- onClick: S,
2096
+ onClick: C,
2097
2097
  children: "Ver más"
2098
2098
  }
2099
2099
  ) })
2100
2100
  ] }),
2101
2101
  /* @__PURE__ */ t(
2102
- F,
2102
+ q,
2103
2103
  {
2104
2104
  sx: {
2105
2105
  display: "flex",
@@ -2109,28 +2109,28 @@ const en = "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: (m != null ? m : []).slice(0, 3).map((y, v) => {
2113
- var I;
2112
+ children: (p != null ? p : []).slice(0, 3).map((y, I) => {
2113
+ var _;
2114
2114
  return /* @__PURE__ */ t(
2115
2115
  wa,
2116
2116
  {
2117
- logo: `https://olimpo.bet${y.background ? y.background : (I = y.logo) != null ? I : ""}`,
2117
+ logo: `https://olimpo.bet${y.background ? y.background : (_ = y.logo) != null ? _ : ""}`,
2118
2118
  provider: y.provider,
2119
2119
  providerName: y.web_name,
2120
2120
  machine: y.machine,
2121
- onClick: () => _(y)
2121
+ onClick: () => v(y)
2122
2122
  },
2123
- cn(y, v)
2123
+ cn(y, I)
2124
2124
  );
2125
2125
  })
2126
2126
  }
2127
2127
  ),
2128
- /* @__PURE__ */ t(F, { sx: { display: { xs: "block", md: "none" } }, children: /* @__PURE__ */ t(
2128
+ /* @__PURE__ */ t(q, { sx: { display: { xs: "block", md: "none" } }, children: /* @__PURE__ */ t(
2129
2129
  X,
2130
2130
  {
2131
2131
  variant: "primary",
2132
2132
  size: "lg",
2133
- onClick: S,
2133
+ onClick: C,
2134
2134
  children: "Ver más"
2135
2135
  }
2136
2136
  ) })
@@ -2155,10 +2155,10 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2155
2155
  return (o = (n = e.orden) != null ? n : e.machine) != null ? o : a;
2156
2156
  }, pn = (e, a = !0, n = 1) => {
2157
2157
  const o = e.map((s, c) => {
2158
- var f;
2158
+ var h;
2159
2159
  return {
2160
2160
  id: xt(s, c),
2161
- imageUrl: (f = s.logo) != null ? f : "",
2161
+ imageUrl: (h = s.logo) != null ? h : "",
2162
2162
  ...s.background ? { background: s.background } : {}
2163
2163
  };
2164
2164
  });
@@ -2192,14 +2192,14 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2192
2192
  gridSize: s = 1,
2193
2193
  isPersonalize: c = !1
2194
2194
  }) => {
2195
- const f = ae(), h = ne(), u = le(), p = V(null), [d, g] = Z({ isStart: !0, isEnd: !1 }), m = mn(c), { resolvedItems: _, loading: S } = rn(
2195
+ const h = ae(), g = ne(), u = le(), m = V(null), [d, f] = Z({ isStart: !0, isEnd: !1 }), p = mn(c), { resolvedItems: v, loading: C } = rn(
2196
2196
  e,
2197
- m
2198
- ), y = m ? _ : Array.isArray(e) ? e : [], v = () => {
2199
- var k;
2200
- f({
2197
+ p
2198
+ ), y = p ? v : Array.isArray(e) ? e : [], I = () => {
2199
+ var $;
2200
+ h({
2201
2201
  element: "casino_prev",
2202
- label: `${h} - OraculoSeccionCasino ${c ? " - personalize" : ""} - Anterior`,
2202
+ label: `${g} - OraculoSeccionCasino ${c ? " - personalize" : ""} - Anterior`,
2203
2203
  target: "prev",
2204
2204
  event_type: "click",
2205
2205
  module_id: u,
@@ -2207,12 +2207,12 @@ const en = "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
- }), (k = p.current) == null || k.prev();
2211
- }, I = () => {
2212
- var k;
2213
- f({
2210
+ }), ($ = m.current) == null || $.prev();
2211
+ }, _ = () => {
2212
+ var $;
2213
+ h({
2214
2214
  element: "casino_next",
2215
- label: `${h} - OraculoSeccionCasino ${c ? " - personalize" : ""} - Siguiente`,
2215
+ label: `${g} - OraculoSeccionCasino ${c ? " - personalize" : ""} - Siguiente`,
2216
2216
  target: "next",
2217
2217
  event_type: "click",
2218
2218
  module_id: u,
@@ -2220,11 +2220,11 @@ const en = "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
- }), (k = p.current) == null || k.next();
2223
+ }), ($ = m.current) == null || $.next();
2224
2224
  }, D = () => {
2225
- if (f({
2225
+ if (h({
2226
2226
  element: "casino_view_more",
2227
- label: `${h} - OraculoSeccionCasino ${c ? " - personalize" : ""} - Ver más`,
2227
+ label: `${g} - OraculoSeccionCasino ${c ? " - personalize" : ""} - Ver más`,
2228
2228
  target: "https://www.olimpo.bet/casino",
2229
2229
  event_type: "click",
2230
2230
  module_id: u,
@@ -2237,16 +2237,16 @@ const en = "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
- }, T = (k = !0, x = 4) => {
2240
+ }, k = ($ = !0, x = 4) => {
2241
2241
  const O = (z) => Array.from({ length: z }, (R, U) => ({
2242
2242
  id: `sk-${z}-${U}`,
2243
2243
  imageUrl: ""
2244
- })), L = [];
2245
- return k && L.push({ id: "mosaic-loading", kind: "mosaic", items: O(5) }), L.push({ id: "grid-loading", kind: "grid", items: O(x) }), L;
2246
- }, N = m ? S : !Array.isArray(e) || e.length === 0, E = De("(max-width:950px)"), M = N ? T(r, s) : pn(y, r, s);
2244
+ })), P = [];
2245
+ return $ && P.push({ id: "mosaic-loading", kind: "mosaic", items: O(5) }), P.push({ id: "grid-loading", kind: "grid", items: O(x) }), P;
2246
+ }, M = p ? C : !Array.isArray(e) || e.length === 0, T = De("(max-width:950px)"), A = M ? k(r, s) : pn(y, r, s);
2247
2247
  return /* @__PURE__ */ t("section", { children: /* @__PURE__ */ b(H, { direction: "column", spacing: 2, useFlexGap: !0, children: [
2248
2248
  /* @__PURE__ */ b(
2249
- F,
2249
+ q,
2250
2250
  {
2251
2251
  sx: {
2252
2252
  display: "grid",
@@ -2261,7 +2261,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2261
2261
  },
2262
2262
  children: [
2263
2263
  /* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
2264
- /* @__PURE__ */ b(F, { sx: { display: "flex", gap: 1, justifyContent: "flex-end" }, children: [
2264
+ /* @__PURE__ */ b(q, { sx: { display: "flex", gap: 1, justifyContent: "flex-end" }, children: [
2265
2265
  /* @__PURE__ */ t(
2266
2266
  X,
2267
2267
  {
@@ -2269,7 +2269,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2269
2269
  variant: "secondary",
2270
2270
  iconOnly: !0,
2271
2271
  leftIcon: /* @__PURE__ */ t(lt, {}),
2272
- onClick: v,
2272
+ onClick: I,
2273
2273
  disabled: d.isStart
2274
2274
  }
2275
2275
  ),
@@ -2280,25 +2280,25 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2280
2280
  variant: "secondary",
2281
2281
  iconOnly: !0,
2282
2282
  rightIcon: /* @__PURE__ */ t(ct, {}),
2283
- onClick: I,
2283
+ onClick: _,
2284
2284
  disabled: d.isEnd
2285
2285
  }
2286
2286
  )
2287
2287
  ] }),
2288
- /* @__PURE__ */ t(F, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(X, { variant: "secondary", onClick: D, children: "Ver más" }) })
2288
+ /* @__PURE__ */ t(q, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(X, { variant: "secondary", onClick: D, children: "Ver más" }) })
2289
2289
  ]
2290
2290
  }
2291
2291
  ),
2292
2292
  /* @__PURE__ */ t(
2293
2293
  he,
2294
2294
  {
2295
- ref: p,
2296
- items: M,
2295
+ ref: m,
2296
+ items: A,
2297
2297
  perPage: void 0,
2298
2298
  gap: "16px",
2299
2299
  enableHorizontalWheel: !0,
2300
2300
  options: { autoWidth: !0, trimSpace: "move" },
2301
- showRightGradient: !E,
2301
+ showRightGradient: !T,
2302
2302
  breakpoints: {
2303
2303
  400: {
2304
2304
  gap: "4px",
@@ -2316,21 +2316,21 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2316
2316
  padding: { left: "24px", right: "24px" }
2317
2317
  }
2318
2318
  },
2319
- renderItem: (k) => /* @__PURE__ */ t("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ t(
2319
+ renderItem: ($) => /* @__PURE__ */ t("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ t(
2320
2320
  ft,
2321
2321
  {
2322
- items: k.items,
2323
- layout: k.kind === "mosaic" ? "mosaic" : "grid",
2324
- loading: N,
2322
+ items: $.items,
2323
+ layout: $.kind === "mosaic" ? "mosaic" : "grid",
2324
+ loading: M,
2325
2325
  onClick: (x) => {
2326
- if (N) return;
2326
+ if (M) return;
2327
2327
  const O = y.find(
2328
2328
  (R, U) => String(xt(R, U)) === String(x.id)
2329
2329
  );
2330
2330
  if (!O) return;
2331
- o == null || o(O), f({
2331
+ o == null || o(O), h({
2332
2332
  element: "casino_game_card",
2333
- label: `${h} - OraculoSeccionCasino ${c ? " - personalize" : ""} - Game: ${String(O.machine || "unknown")}`,
2333
+ label: `${g} - OraculoSeccionCasino ${c ? " - personalize" : ""} - Game: ${String(O.machine || "unknown")}`,
2334
2334
  target: String(O.machine || "unknown"),
2335
2335
  event_type: "click",
2336
2336
  module_id: u,
@@ -2342,12 +2342,12 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2342
2342
  section: a || "Casino"
2343
2343
  }
2344
2344
  });
2345
- const L = se("showIframe"), z = se("loadMachine");
2346
- L == null || L(), z == null || z(O, !1, "CASINO");
2345
+ const P = se("showIframe"), z = se("loadMachine");
2346
+ P == null || P(), z == null || z(O, !1, "CASINO");
2347
2347
  }
2348
2348
  }
2349
2349
  ) }),
2350
- onMove: ({ isStart: k, isEnd: x }) => g({ isStart: k, isEnd: x })
2350
+ onMove: ({ isStart: $, isEnd: x }) => f({ isStart: $, isEnd: x })
2351
2351
  }
2352
2352
  )
2353
2353
  ] }) });
@@ -2366,10 +2366,10 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2366
2366
  return (o = (n = e.orden) != null ? n : e.machine) != null ? o : a;
2367
2367
  }, hn = (e, a = !0, n = 1) => {
2368
2368
  const o = e.map((s, c) => {
2369
- var f;
2369
+ var h;
2370
2370
  return {
2371
2371
  id: wt(s, c),
2372
- imageUrl: (f = s.logo) != null ? f : "",
2372
+ imageUrl: (h = s.logo) != null ? h : "",
2373
2373
  ...s.background ? { background: s.background } : {}
2374
2374
  };
2375
2375
  });
@@ -2417,42 +2417,42 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2417
2417
  gridSize: s = 1,
2418
2418
  isPersonalize: c = !1
2419
2419
  }) => {
2420
- const f = V(null), [h, u] = Z({ isStart: !0, isEnd: !1 }), p = ae(), d = ne(), g = le(), m = gn(c), { resolvedItems: _, loading: S } = sn(
2420
+ const h = V(null), [g, u] = Z({ isStart: !0, isEnd: !1 }), m = ae(), d = ne(), f = le(), p = gn(c), { resolvedItems: v, loading: C } = sn(
2421
2421
  e,
2422
- m
2423
- ), y = m ? _ : Array.isArray(e) ? e : [], v = () => {
2424
- var M;
2425
- p({
2422
+ p
2423
+ ), y = p ? v : Array.isArray(e) ? e : [], I = () => {
2424
+ var A;
2425
+ m({
2426
2426
  element: "virtuales_prev",
2427
- label: `${d} - OraculoSeccionVirtuales${m ? " - personalize" : ""} - Anterior`,
2427
+ label: `${d} - OraculoSeccionVirtuales${p ? " - personalize" : ""} - Anterior`,
2428
2428
  target: "prev",
2429
2429
  event_type: "click",
2430
- module_id: g,
2430
+ module_id: f,
2431
2431
  metadata: {
2432
2432
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
2433
2433
  },
2434
2434
  tags: { section: "OraculoSeccionVirtuales" }
2435
- }), (M = f.current) == null || M.prev();
2436
- }, I = () => {
2437
- var M;
2438
- p({
2435
+ }), (A = h.current) == null || A.prev();
2436
+ }, _ = () => {
2437
+ var A;
2438
+ m({
2439
2439
  element: "virtuales_next",
2440
- label: `${d} - OraculoSeccionVirtuales${m ? " - personalize" : ""} - Siguiente`,
2440
+ label: `${d} - OraculoSeccionVirtuales${p ? " - personalize" : ""} - Siguiente`,
2441
2441
  target: "next",
2442
2442
  event_type: "click",
2443
- module_id: g,
2443
+ module_id: f,
2444
2444
  metadata: {
2445
2445
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
2446
2446
  },
2447
2447
  tags: { section: "OraculoSeccionVirtuales" }
2448
- }), (M = f.current) == null || M.next();
2448
+ }), (A = h.current) == null || A.next();
2449
2449
  }, D = () => {
2450
- if (p({
2450
+ if (m({
2451
2451
  element: "virtuales_view_more",
2452
- label: `${d} - OraculoSeccionVirtuales${m ? " - personalize" : ""} - Ver más`,
2452
+ label: `${d} - OraculoSeccionVirtuales${p ? " - personalize" : ""} - Ver más`,
2453
2453
  target: "https://www.olimpo.bet/juegos-virtuales",
2454
2454
  event_type: "click",
2455
- module_id: g,
2455
+ module_id: f,
2456
2456
  metadata: {
2457
2457
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
2458
2458
  },
@@ -2462,10 +2462,10 @@ const en = "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
- }, T = m ? S : !Array.isArray(e) || e.length === 0, N = xe("(max-width:950px)"), E = T ? bn(r, s) : hn(y, r, s);
2465
+ }, k = p ? C : !Array.isArray(e) || e.length === 0, M = xe("(max-width:950px)"), T = k ? bn(r, s) : hn(y, r, s);
2466
2466
  return /* @__PURE__ */ t("section", { children: /* @__PURE__ */ b(H, { direction: "column", spacing: 2, useFlexGap: !0, children: [
2467
2467
  /* @__PURE__ */ b(
2468
- F,
2468
+ q,
2469
2469
  {
2470
2470
  sx: {
2471
2471
  display: "grid",
@@ -2480,7 +2480,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2480
2480
  },
2481
2481
  children: [
2482
2482
  /* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
2483
- /* @__PURE__ */ b(F, { sx: { display: "flex", gap: 1, justifyContent: "flex-end" }, children: [
2483
+ /* @__PURE__ */ b(q, { sx: { display: "flex", gap: 1, justifyContent: "flex-end" }, children: [
2484
2484
  /* @__PURE__ */ t(
2485
2485
  X,
2486
2486
  {
@@ -2488,8 +2488,8 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2488
2488
  variant: "secondary",
2489
2489
  iconOnly: !0,
2490
2490
  leftIcon: /* @__PURE__ */ t(lt, {}),
2491
- onClick: v,
2492
- disabled: h.isStart
2491
+ onClick: I,
2492
+ disabled: g.isStart
2493
2493
  }
2494
2494
  ),
2495
2495
  /* @__PURE__ */ t(
@@ -2499,20 +2499,20 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2499
2499
  variant: "secondary",
2500
2500
  iconOnly: !0,
2501
2501
  rightIcon: /* @__PURE__ */ t(ct, {}),
2502
- onClick: I,
2503
- disabled: h.isEnd
2502
+ onClick: _,
2503
+ disabled: g.isEnd
2504
2504
  }
2505
2505
  )
2506
2506
  ] }),
2507
- /* @__PURE__ */ t(F, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(X, { variant: "secondary", onClick: D, children: "Ver más" }) })
2507
+ /* @__PURE__ */ t(q, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(X, { variant: "secondary", onClick: D, children: "Ver más" }) })
2508
2508
  ]
2509
2509
  }
2510
2510
  ),
2511
2511
  /* @__PURE__ */ t(
2512
2512
  he,
2513
2513
  {
2514
- ref: f,
2515
- items: E,
2514
+ ref: h,
2515
+ items: T,
2516
2516
  perPage: void 0,
2517
2517
  gap: "16px",
2518
2518
  breakpoints: {
@@ -2533,32 +2533,32 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2533
2533
  }
2534
2534
  },
2535
2535
  enableHorizontalWheel: !0,
2536
- showRightGradient: !N,
2536
+ showRightGradient: !M,
2537
2537
  options: { autoWidth: !0, trimSpace: "move" },
2538
- renderItem: (M) => /* @__PURE__ */ t("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ t(
2538
+ renderItem: (A) => /* @__PURE__ */ t("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ t(
2539
2539
  ft,
2540
2540
  {
2541
- items: M.items,
2542
- layout: M.kind === "mosaic" ? "mosaic" : "grid",
2543
- loading: T,
2544
- onClick: (k) => {
2545
- if (T) return;
2541
+ items: A.items,
2542
+ layout: A.kind === "mosaic" ? "mosaic" : "grid",
2543
+ loading: k,
2544
+ onClick: ($) => {
2545
+ if (k) return;
2546
2546
  const x = y.find(
2547
- (z, R) => String(wt(z, R)) === String(k.id)
2547
+ (z, R) => String(wt(z, R)) === String($.id)
2548
2548
  );
2549
2549
  if (!x) {
2550
2550
  console.warn(
2551
2551
  "[virtuales] no se encontró game para id:",
2552
- k.id
2552
+ $.id
2553
2553
  );
2554
2554
  return;
2555
2555
  }
2556
- o == null || o(x), p({
2556
+ o == null || o(x), m({
2557
2557
  element: "virtuales_game_card",
2558
- label: `${d} - OraculoSeccionVirtuales${m ? " - personalize" : ""} - Game: ${String(x.machine || "unknown")}`,
2558
+ label: `${d} - OraculoSeccionVirtuales${p ? " - personalize" : ""} - Game: ${String(x.machine || "unknown")}`,
2559
2559
  target: String(x.machine || "unknown"),
2560
2560
  event_type: "click",
2561
- module_id: g,
2561
+ module_id: f,
2562
2562
  metadata: {
2563
2563
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
2564
2564
  },
@@ -2567,16 +2567,16 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2567
2567
  section: a || "Virtuales"
2568
2568
  }
2569
2569
  });
2570
- const O = se("showIframe"), L = se("loadMachine");
2571
- O == null || O(), L == null || L(
2570
+ const O = se("showIframe"), P = se("loadMachine");
2571
+ O == null || O(), P == null || P(
2572
2572
  x,
2573
2573
  !1,
2574
- m ? "VIRTUALES_PERSONALIZE" : "VIRTUALES"
2574
+ p ? "VIRTUALES_PERSONALIZE" : "VIRTUALES"
2575
2575
  );
2576
2576
  }
2577
2577
  }
2578
2578
  ) }),
2579
- onMove: ({ isStart: M, isEnd: k }) => u({ isStart: M, isEnd: k })
2579
+ onMove: ({ isStart: A, isEnd: $ }) => u({ isStart: A, isEnd: $ })
2580
2580
  }
2581
2581
  )
2582
2582
  ] }) });
@@ -2618,24 +2618,24 @@ const en = "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)"), c = n.length > 1, f = V(null), h = V(null), u = V(!1), p = V(!1), [d, g] = Z(0), [m, _] = Z({ isStart: !0, isEnd: !1 });
2621
+ const i = ae(), r = ne(), s = xe("(max-width: 767px)"), c = n.length > 1, h = V(null), g = V(null), u = V(!1), m = V(!1), [d, f] = Z(0), [p, v] = Z({ isStart: !0, isEnd: !1 });
2622
2622
  ee(() => {
2623
2623
  const x = setTimeout(() => {
2624
2624
  u.current = !0;
2625
2625
  }, 500);
2626
2626
  return () => clearTimeout(x);
2627
2627
  }, []);
2628
- const S = V(m);
2628
+ const C = V(p);
2629
2629
  ee(() => {
2630
- S.current = m;
2631
- }, [m]);
2632
- const y = V(!1), v = V(null), I = n == null ? void 0 : n[d], D = ie(
2630
+ C.current = p;
2631
+ }, [p]);
2632
+ const y = V(!1), I = V(null), _ = n == null ? void 0 : n[d], D = ie(
2633
2633
  () => {
2634
2634
  var x, O;
2635
- return (O = (x = I == null ? void 0 : I.backgroundImageUrl) != null ? x : o) != null ? O : "";
2635
+ return (O = (x = _ == null ? void 0 : _.backgroundImageUrl) != null ? x : o) != null ? O : "";
2636
2636
  },
2637
- [I, o]
2638
- ), T = _n(D), N = !n || n.length === 0, E = (x, O) => {
2637
+ [_, o]
2638
+ ), k = _n(D), M = !n || n.length === 0, T = (x, O) => {
2639
2639
  i({
2640
2640
  element: "welcome_banner_button",
2641
2641
  label: `OraculoSeccionBonoBienvenida - Banner button click: ${x.title || "OraculoSeccionBonoBienvenida - Banner " + (O + 1)}`,
@@ -2652,10 +2652,10 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2652
2652
  button_text: x.buttonText || "no_text"
2653
2653
  }
2654
2654
  }), x.onButtonClick && x.onButtonClick();
2655
- }, M = (x) => {
2655
+ }, A = (x) => {
2656
2656
  if (!u.current) return;
2657
- if (p.current) {
2658
- p.current = !1;
2657
+ if (m.current) {
2658
+ m.current = !1;
2659
2659
  return;
2660
2660
  }
2661
2661
  const O = n == null ? void 0 : n[x];
@@ -2678,27 +2678,27 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2678
2678
  });
2679
2679
  };
2680
2680
  ee(() => {
2681
- const x = h.current;
2681
+ const x = g.current;
2682
2682
  if (!x) return;
2683
- const O = 6, L = 380, z = (R) => {
2684
- var C, q;
2685
- if (N || R.ctrlKey || y.current) return;
2683
+ const O = 6, P = 380, z = (R) => {
2684
+ var w, F;
2685
+ if (M || R.ctrlKey || y.current) return;
2686
2686
  const U = R.deltaX, W = R.deltaY;
2687
2687
  if (Math.abs(U) <= Math.abs(W) || Math.abs(U) < O) return;
2688
2688
  const G = U > 0;
2689
- G && S.current.isEnd || !G && S.current.isStart || (R.preventDefault(), y.current = !0, G ? (C = f.current) == null || C.next() : (q = f.current) == null || q.prev(), v.current && window.clearTimeout(v.current), v.current = window.setTimeout(() => {
2689
+ G && C.current.isEnd || !G && C.current.isStart || (R.preventDefault(), y.current = !0, G ? (w = h.current) == null || w.next() : (F = h.current) == null || F.prev(), I.current && window.clearTimeout(I.current), I.current = window.setTimeout(() => {
2690
2690
  y.current = !1;
2691
- }, L));
2691
+ }, P));
2692
2692
  };
2693
2693
  return x.addEventListener("wheel", z, { passive: !1 }), () => {
2694
- x.removeEventListener("wheel", z), v.current && window.clearTimeout(v.current);
2694
+ x.removeEventListener("wheel", z), I.current && window.clearTimeout(I.current);
2695
2695
  };
2696
- }, [N]);
2697
- const k = (x, O, L) => {
2696
+ }, [M]);
2697
+ const $ = (x, O, P) => {
2698
2698
  var U, W;
2699
2699
  const z = (U = x.headline) != null ? U : e, R = (W = x.headline2) != null ? W : a;
2700
2700
  return O ? /* @__PURE__ */ b(
2701
- F,
2701
+ q,
2702
2702
  {
2703
2703
  sx: {
2704
2704
  maxWidth: 1200,
@@ -2711,7 +2711,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2711
2711
  },
2712
2712
  children: [
2713
2713
  (z || R) && /* @__PURE__ */ t(
2714
- F,
2714
+ q,
2715
2715
  {
2716
2716
  sx: {
2717
2717
  display: "flex",
@@ -2719,7 +2719,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2719
2719
  justifyContent: "flex-start",
2720
2720
  minHeight: "100%"
2721
2721
  },
2722
- children: /* @__PURE__ */ b(F, { sx: { ...Qe, textAlign: "left", mb: 0 }, children: [
2722
+ children: /* @__PURE__ */ b(q, { sx: { ...Qe, textAlign: "left", mb: 0 }, children: [
2723
2723
  z && /* @__PURE__ */ t(ue, { component: "span", sx: et, children: z }),
2724
2724
  R && /* @__PURE__ */ b(pe, { children: [
2725
2725
  /* @__PURE__ */ t("br", {}),
@@ -2728,39 +2728,39 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2728
2728
  ] })
2729
2729
  }
2730
2730
  ),
2731
- /* @__PURE__ */ t(F, { sx: { display: "flex", justifyContent: "center", alignItems: "center" }, children: /* @__PURE__ */ t(F, { sx: { width: "100%", maxWidth: 600, mx: "auto" }, children: /* @__PURE__ */ t(
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
2734
  ...x,
2735
- onButtonClick: () => E(x, L),
2735
+ onButtonClick: () => T(x, P),
2736
2736
  variant: "large"
2737
2737
  }
2738
2738
  ) }) })
2739
2739
  ]
2740
2740
  }
2741
- ) : /* @__PURE__ */ b(F, { sx: { textAlign: "center" }, children: [
2742
- (z || R) && /* @__PURE__ */ b(F, { sx: Qe, children: [
2741
+ ) : /* @__PURE__ */ b(q, { sx: { textAlign: "center" }, children: [
2742
+ (z || R) && /* @__PURE__ */ b(q, { sx: Qe, children: [
2743
2743
  z && /* @__PURE__ */ t(ue, { component: "span", sx: et, children: z }),
2744
2744
  R && /* @__PURE__ */ b(pe, { children: [
2745
2745
  /* @__PURE__ */ t("br", {}),
2746
2746
  /* @__PURE__ */ t(ue, { component: "span", sx: tt, children: R })
2747
2747
  ] })
2748
2748
  ] }),
2749
- /* @__PURE__ */ t(F, { sx: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(
2749
+ /* @__PURE__ */ t(q, { sx: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(
2750
2750
  Je,
2751
2751
  {
2752
2752
  ...x,
2753
- onButtonClick: () => E(x, L),
2753
+ onButtonClick: () => T(x, P),
2754
2754
  variant: "small"
2755
2755
  }
2756
2756
  ) })
2757
2757
  ] });
2758
2758
  };
2759
- return /* @__PURE__ */ b(F, { component: "section", sx: T, children: [
2760
- /* @__PURE__ */ t("div", { ref: h, style: { width: "100%" }, children: /* @__PURE__ */ t(
2759
+ return /* @__PURE__ */ b(q, { component: "section", sx: k, children: [
2760
+ /* @__PURE__ */ t("div", { ref: g, style: { width: "100%" }, children: /* @__PURE__ */ t(
2761
2761
  he,
2762
2762
  {
2763
- ref: f,
2763
+ ref: h,
2764
2764
  items: n,
2765
2765
  perPage: 1,
2766
2766
  gap: "0px",
@@ -2774,13 +2774,13 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2774
2774
  // arrows: false,
2775
2775
  // drag: true,
2776
2776
  },
2777
- renderItem: (x, O) => /* @__PURE__ */ t(F, { sx: { width: "100%" }, children: k(x, !s, O) }),
2778
- onMove: ({ index: x, isStart: O, isEnd: L }) => {
2779
- g(x), typeof O == "boolean" && typeof L == "boolean" && _({ isStart: O, isEnd: L }), M(x);
2777
+ renderItem: (x, O) => /* @__PURE__ */ t(q, { sx: { width: "100%" }, children: $(x, !s, O) }),
2778
+ onMove: ({ index: x, isStart: O, isEnd: P }) => {
2779
+ f(x), typeof O == "boolean" && typeof P == "boolean" && v({ isStart: O, isEnd: P }), A(x);
2780
2780
  }
2781
2781
  }
2782
2782
  ) }),
2783
- c && /* @__PURE__ */ t(F, { sx: { mt: 2, display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(
2783
+ c && /* @__PURE__ */ t(q, { sx: { mt: 2, display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(
2784
2784
  dt,
2785
2785
  {
2786
2786
  total: n.length,
@@ -2801,7 +2801,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2801
2801
  tags: {
2802
2802
  navigation_type: "dot_click"
2803
2803
  }
2804
- }), g(x), (O = f.current) == null || O.go(x);
2804
+ }), f(x), (O = h.current) == null || O.go(x);
2805
2805
  }
2806
2806
  }
2807
2807
  ) })
@@ -2814,22 +2814,22 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2814
2814
  ariaLabel: i,
2815
2815
  user: r = null
2816
2816
  }) => {
2817
- const s = V(null), c = V(null), f = ae(), h = ne(), u = le();
2817
+ const s = V(null), c = V(null), h = ae(), g = ne(), u = le();
2818
2818
  if (!n) return null;
2819
- const p = async () => {
2820
- let _ = r;
2821
- if ((!(_ != null && _.user) || !(_ != null && _.session)) && typeof window != "undefined")
2819
+ const m = async () => {
2820
+ let v = r;
2821
+ if ((!(v != null && v.user) || !(v != null && v.session)) && typeof window != "undefined")
2822
2822
  try {
2823
- const S = localStorage.getItem("user");
2824
- S && (_ = JSON.parse(S));
2825
- } catch (S) {
2826
- console.error("[getMarketPlaceUrl] Error parsing localStorage user", S);
2823
+ const C = localStorage.getItem("user");
2824
+ C && (v = JSON.parse(C));
2825
+ } catch (C) {
2826
+ console.error("[getMarketPlaceUrl] Error parsing localStorage user", C);
2827
2827
  }
2828
- if (!(_ != null && _.user) || !(_ != null && _.session))
2828
+ if (!(v != null && v.user) || !(v != null && v.session))
2829
2829
  return console.warn("User data missing"), null;
2830
- f({
2830
+ h({
2831
2831
  element: "club_olimpo_button",
2832
- label: `${h} - OraculoSeccionClubOlimpo - Click: Club Olimpo`,
2832
+ label: `${g} - OraculoSeccionClubOlimpo - Click: Club Olimpo`,
2833
2833
  target: "https://www.clubolimpo.com/OlimpoBetWeb/",
2834
2834
  event_type: "click",
2835
2835
  module_id: u,
@@ -2839,40 +2839,40 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2839
2839
  tags: { section: "OraculoSeccionClubOlimpo" }
2840
2840
  });
2841
2841
  try {
2842
- const S = {
2843
- idUsuario: "PE" + _.user,
2844
- session_id: _.session,
2842
+ const C = {
2843
+ idUsuario: "PE" + v.user,
2844
+ session_id: v.session,
2845
2845
  pagina: "home"
2846
- }, v = await fetch("https://apipe.mktolimpo.com/api/pm/token", {
2846
+ }, I = await fetch("https://apipe.mktolimpo.com/api/pm/token", {
2847
2847
  method: "POST",
2848
2848
  headers: {
2849
2849
  "Content-Type": "application/json"
2850
2850
  },
2851
- body: JSON.stringify(S)
2851
+ body: JSON.stringify(C)
2852
2852
  });
2853
- if (v.ok) {
2854
- const I = await v.json();
2855
- return I == null ? void 0 : I.url;
2853
+ if (I.ok) {
2854
+ const _ = await I.json();
2855
+ return _ == null ? void 0 : _.url;
2856
2856
  }
2857
2857
  return null;
2858
- } catch (S) {
2859
- return console.error("[getMarketPlaceUrl]", S), null;
2858
+ } catch (C) {
2859
+ return console.error("[getMarketPlaceUrl]", C), null;
2860
2860
  }
2861
2861
  }, d = async () => {
2862
- const _ = await p();
2863
- _ ? window.location.href = _ : typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/conoce-club-olimpo");
2864
- }, g = Array.isArray(n) ? n[o] : n;
2862
+ const v = await m();
2863
+ v ? window.location.href = v : typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/conoce-club-olimpo");
2864
+ }, f = Array.isArray(n) ? n[o] : n;
2865
2865
  Mt(() => {
2866
2866
  if (!s.current || !c.current || typeof ResizeObserver == "undefined") return;
2867
- const _ = s.current, S = c.current, y = () => {
2868
- _.style.setProperty(
2867
+ const v = s.current, C = c.current, y = () => {
2868
+ v.style.setProperty(
2869
2869
  "--orc-co-bottomH",
2870
- `${S.offsetHeight + 16}px`
2870
+ `${C.offsetHeight + 16}px`
2871
2871
  );
2872
- }, v = new ResizeObserver(y);
2873
- return v.observe(S), y(), () => v.disconnect();
2872
+ }, I = new ResizeObserver(y);
2873
+ return I.observe(C), y(), () => I.disconnect();
2874
2874
  }, []);
2875
- const m = [
2875
+ const p = [
2876
2876
  "orc-co-wrap",
2877
2877
  a ? "orc-co-fullBleed" : "",
2878
2878
  e
@@ -2881,18 +2881,18 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2881
2881
  "section",
2882
2882
  {
2883
2883
  ref: s,
2884
- className: m,
2885
- "aria-label": i || g.imgAlt || "Club Olimpo",
2884
+ className: p,
2885
+ "aria-label": i || f.imgAlt || "Club Olimpo",
2886
2886
  children: /* @__PURE__ */ t("div", { ref: c, children: /* @__PURE__ */ t(
2887
2887
  Sa,
2888
2888
  {
2889
- text: g.text,
2889
+ text: f.text,
2890
2890
  onClick: d,
2891
- imgAlt: g.imgAlt,
2892
- buttonLabel: g.buttonLabel,
2893
- imgSrcMobile: g.imgMobile,
2894
- imgSrcDesktopBg: g.imgDesktopBg,
2895
- imgSrcDesktopLogo: g.imgDesktopLogo
2891
+ imgAlt: f.imgAlt,
2892
+ buttonLabel: f.buttonLabel,
2893
+ imgSrcMobile: f.imgMobile,
2894
+ imgSrcDesktopBg: f.imgDesktopBg,
2895
+ imgSrcDesktopLogo: f.imgDesktopLogo
2896
2896
  }
2897
2897
  ) })
2898
2898
  }
@@ -2909,22 +2909,22 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2909
2909
  };
2910
2910
  function Cn(e, a, n) {
2911
2911
  return n ? n.map((o) => {
2912
- var u, p;
2913
- const i = o.prePackCouponRows.flatMap((d) => In(d).map((g) => ({ eventId: d.eventId, outcomeId: g }))), r = new Set(i.map((d) => d.eventId)), s = new Set(i.map((d) => d.outcomeId)), c = new Map(i.map((d, g) => [d.outcomeId, g])), f = {};
2912
+ var u, m;
2913
+ const i = o.prePackCouponRows.flatMap((d) => In(d).map((f) => ({ eventId: d.eventId, outcomeId: f }))), r = new Set(i.map((d) => d.eventId)), s = new Set(i.map((d) => d.outcomeId)), c = new Map(i.map((d, f) => [d.outcomeId, f])), h = {};
2914
2914
  for (const d of a) {
2915
2915
  if (!r.has(d.eventId)) continue;
2916
- const g = d.outcomes.filter((m) => s.has(m.id)).map((m) => ({ ...m, position: c.get(m.id) }));
2917
- g.length && ((p = f[u = d.eventId]) != null || (f[u] = []), f[d.eventId].push({ ...d, outcomes: g }));
2916
+ const f = d.outcomes.filter((p) => s.has(p.id)).map((p) => ({ ...p, position: c.get(p.id) }));
2917
+ f.length && ((m = h[u = d.eventId]) != null || (h[u] = []), h[d.eventId].push({ ...d, outcomes: f }));
2918
2918
  }
2919
- const h = e.filter((d) => r.has(d.id)).map((d) => {
2920
- var g;
2921
- return { ...d, betoffers: (g = f[d.id]) != null ? g : [] };
2919
+ const g = e.filter((d) => r.has(d.id)).map((d) => {
2920
+ var f;
2921
+ return { ...d, betoffers: (f = h[d.id]) != null ? f : [] };
2922
2922
  });
2923
2923
  return {
2924
2924
  couponId: o.id,
2925
2925
  status: o.status,
2926
2926
  combinadoTotal: On(o.prePackCouponRows),
2927
- events: h
2927
+ events: g
2928
2928
  };
2929
2929
  }) : [];
2930
2930
  }
@@ -2945,8 +2945,8 @@ function Tn({
2945
2945
  onViewMore: o,
2946
2946
  className: i = ""
2947
2947
  }) {
2948
- const r = ae(), s = ne(), c = le(), f = V(null), [h, u] = Z({ isStart: !0, isEnd: !1 }), [p, d] = Z([]), 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", m = () => {
2949
- var T;
2948
+ const r = ae(), s = ne(), c = le(), h = V(null), [g, u] = Z({ isStart: !0, isEnd: !1 }), [m, d] = Z([]), f = "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", p = () => {
2949
+ var k;
2950
2950
  r({
2951
2951
  element: "evento_combinadas_prev",
2952
2952
  label: `${s} - OraculoSeccionEventoCombinadas - Click: Anterior`,
@@ -2956,9 +2956,9 @@ function Tn({
2956
2956
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
2957
2957
  },
2958
2958
  tags: { section: "OraculoSeccionEventoCombinadas" }
2959
- }), (T = f.current) == null || T.prev();
2960
- }, _ = () => {
2961
- var T;
2959
+ }), (k = h.current) == null || k.prev();
2960
+ }, v = () => {
2961
+ var k;
2962
2962
  r({
2963
2963
  element: "evento_combinadas_next",
2964
2964
  label: `${s} - OraculoSeccionEventoCombinadas - Click: Siguiente`,
@@ -2968,8 +2968,8 @@ function Tn({
2968
2968
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
2969
2969
  },
2970
2970
  tags: { section: "OraculoSeccionEventoCombinadas" }
2971
- }), (T = f.current) == null || T.next();
2972
- }, S = () => {
2971
+ }), (k = h.current) == null || k.next();
2972
+ }, C = () => {
2973
2973
  r({
2974
2974
  element: "evento_combinadas_ver_mas",
2975
2975
  label: `${s} - OraculoSeccionEventoCombinadas - Click: Ver más`,
@@ -2980,26 +2980,26 @@ function Tn({
2980
2980
  },
2981
2981
  tags: { section: "OraculoSeccionEventoCombinadas" }
2982
2982
  }), za();
2983
- }, y = ie(() => p.filter((T) => T.combinadoTotal !== null), [p]);
2984
- async function v() {
2985
- var T, N, E, M;
2983
+ }, y = ie(() => m.filter((k) => k.combinadoTotal !== null), [m]);
2984
+ async function I() {
2985
+ var k, M, T, A;
2986
2986
  try {
2987
- const x = await (await fetch(g)).json(), O = (M = (E = (N = (T = x == null ? void 0 : x.group) == null ? void 0 : T.groups) == null ? void 0 : N.map((U) => U.id)) == null ? void 0 : E.filter(Boolean)) == null ? void 0 : M.join(",");
2987
+ const x = await (await fetch(f)).json(), O = (A = (T = (M = (k = x == null ? void 0 : x.group) == null ? void 0 : k.groups) == null ? void 0 : M.map((U) => U.id)) == null ? void 0 : T.filter(Boolean)) == null ? void 0 : A.join(",");
2988
2988
  if (!O) {
2989
2989
  console.error("Could not extract group ID");
2990
2990
  return;
2991
2991
  }
2992
- const L = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${O}.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764283566783&prePackCouponTags=CUSTOM`, R = await (await fetch(L)).json();
2992
+ const P = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${O}.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764283566783&prePackCouponTags=CUSTOM`, R = await (await fetch(P)).json();
2993
2993
  d(Cn(R.events, R.betOffers, R.prePackCoupons));
2994
- } catch (k) {
2995
- console.error("loadDataEventSpecial error:", k);
2994
+ } catch ($) {
2995
+ console.error("loadDataEventSpecial error:", $);
2996
2996
  }
2997
2997
  }
2998
2998
  ee(() => {
2999
- v();
2999
+ I();
3000
3000
  }, []);
3001
- const I = i || void 0, D = xe("(max-width:950px)");
3002
- return y.length === 0 ? null : /* @__PURE__ */ t("section", { className: I, style: {
3001
+ const _ = i || void 0, D = xe("(max-width:950px)");
3002
+ return y.length === 0 ? null : /* @__PURE__ */ t("section", { className: _, style: {
3003
3003
  // paddingLeft: 16,
3004
3004
  // paddingRight: 16,
3005
3005
  width: "100%",
@@ -3015,9 +3015,9 @@ function Tn({
3015
3015
  ariaLabel: "Anterior",
3016
3016
  variant: "secondary",
3017
3017
  iconOnly: !0,
3018
- leftIcon: /* @__PURE__ */ t(Be, {}),
3019
- onClick: m,
3020
- disabled: h.isStart
3018
+ leftIcon: /* @__PURE__ */ t(Ae, {}),
3019
+ onClick: p,
3020
+ disabled: g.isStart
3021
3021
  }
3022
3022
  ),
3023
3023
  /* @__PURE__ */ t(
@@ -3027,18 +3027,18 @@ function Tn({
3027
3027
  variant: "secondary",
3028
3028
  iconOnly: !0,
3029
3029
  rightIcon: /* @__PURE__ */ t(ze, {}),
3030
- onClick: _,
3031
- disabled: h.isEnd
3030
+ onClick: v,
3031
+ disabled: g.isEnd
3032
3032
  }
3033
3033
  )
3034
3034
  ] }),
3035
- /* @__PURE__ */ t(X, { variant: "secondary", onClick: S, children: "Ver más" })
3035
+ /* @__PURE__ */ t(X, { variant: "secondary", onClick: C, children: "Ver más" })
3036
3036
  ] })
3037
3037
  ] }) }),
3038
3038
  /* @__PURE__ */ t(
3039
3039
  he,
3040
3040
  {
3041
- ref: f,
3041
+ ref: h,
3042
3042
  items: y,
3043
3043
  perPage: void 0,
3044
3044
  gap: "16px",
@@ -3049,8 +3049,8 @@ function Tn({
3049
3049
  breakpoints: {
3050
3050
  768: { perPage: 1.2, gap: "12px", padding: { left: "24px", right: "24px" } }
3051
3051
  },
3052
- renderItem: (T) => /* @__PURE__ */ t(En, { coupon: T }),
3053
- onMove: ({ isStart: T, isEnd: N }) => u({ isStart: T, isEnd: N })
3052
+ renderItem: (k) => /* @__PURE__ */ t(En, { coupon: k }),
3053
+ onMove: ({ isStart: k, isEnd: M }) => u({ isStart: k, isEnd: M })
3054
3054
  }
3055
3055
  )
3056
3056
  ] }) });
@@ -3092,10 +3092,10 @@ function kn({}) {
3092
3092
  const $n = "oraculo__FadeItemWrapper-module__fadeWrapper___kFOH4", Nn = {
3093
3093
  fadeWrapper: $n
3094
3094
  };
3095
- function Ae({ children: e }) {
3095
+ function Be({ children: e }) {
3096
3096
  return /* @__PURE__ */ t("div", { className: Nn.fadeWrapper, children: e });
3097
3097
  }
3098
- const Mn = "oraculo__OraculoSeccionEventoEnVivo-module__padding___Sh8tD", An = {
3098
+ const Mn = "oraculo__OraculoSeccionEventoEnVivo-module__padding___Sh8tD", Bn = {
3099
3099
  padding: Mn
3100
3100
  };
3101
3101
  function St({
@@ -3105,61 +3105,61 @@ function St({
3105
3105
  buffer: o = 2,
3106
3106
  debounceMs: i = 250
3107
3107
  }) {
3108
- const [r, s] = Z({}), c = V(/* @__PURE__ */ new Set()), f = V(0), h = V(null), u = V(null);
3108
+ const [r, s] = Z({}), c = V(/* @__PURE__ */ new Set()), h = V(0), g = V(null), u = V(null);
3109
3109
  return ee(() => {
3110
3110
  if (!(!e || e.length === 0))
3111
- return h.current && clearTimeout(h.current), h.current = setTimeout(() => {
3112
- var D, T;
3113
- const p = (D = a.start) != null ? D : 0, d = (T = a.end) != null ? T : 7, g = Math.max(0, p - o), m = Math.min(e.length - 1, d + o);
3114
- let _ = g, S = m;
3111
+ return g.current && clearTimeout(g.current), g.current = setTimeout(() => {
3112
+ var D, k;
3113
+ const m = (D = a.start) != null ? D : 0, d = (k = a.end) != null ? k : 7, f = Math.max(0, m - o), p = Math.min(e.length - 1, d + o);
3114
+ let v = f, C = p;
3115
3115
  const y = u.current;
3116
- y && (g > y.end && (_ = y.end + 1), m < y.start && (S = y.start - 1)), u.current = { start: g, end: m };
3117
- const v = e.slice(_, S + 1).map((N) => N == null ? void 0 : N.id).filter((N) => !!N).filter((N) => !c.current.has(N)).filter((N) => !(N in r));
3118
- if (v.length === 0) return;
3119
- v.forEach((N) => c.current.add(N));
3120
- const I = ++f.current;
3116
+ y && (f > y.end && (v = y.end + 1), p < y.start && (C = y.start - 1)), u.current = { start: f, end: p };
3117
+ const I = e.slice(v, C + 1).map((M) => M == null ? void 0 : M.id).filter((M) => !!M).filter((M) => !c.current.has(M)).filter((M) => !(M in r));
3118
+ if (I.length === 0) return;
3119
+ I.forEach((M) => c.current.add(M));
3120
+ const _ = ++h.current;
3121
3121
  (async () => {
3122
3122
  try {
3123
- const N = await n(v);
3124
- if (I !== f.current) {
3125
- v.forEach((M) => c.current.delete(M));
3123
+ const M = await n(I);
3124
+ if (_ !== h.current) {
3125
+ I.forEach((A) => c.current.delete(A));
3126
3126
  return;
3127
3127
  }
3128
- if (!(N != null && N.events)) {
3129
- v.forEach(
3130
- (M) => c.current.delete(M)
3128
+ if (!(M != null && M.events)) {
3129
+ I.forEach(
3130
+ (A) => c.current.delete(A)
3131
3131
  );
3132
3132
  return;
3133
3133
  }
3134
- s((M) => {
3135
- const k = { ...M };
3136
- for (const [x, O] of Object.entries(N.events)) {
3137
- const L = Number(x);
3138
- k[L] || (k[L] = O);
3134
+ s((A) => {
3135
+ const $ = { ...A };
3136
+ for (const [x, O] of Object.entries(M.events)) {
3137
+ const P = Number(x);
3138
+ $[P] || ($[P] = O);
3139
3139
  }
3140
- return k;
3140
+ return $;
3141
3141
  });
3142
- const E = new Set(
3143
- Object.keys(N.events).map(Number)
3142
+ const T = new Set(
3143
+ Object.keys(M.events).map(Number)
3144
3144
  );
3145
- v.forEach((M) => {
3146
- c.current.delete(M);
3145
+ I.forEach((A) => {
3146
+ c.current.delete(A);
3147
3147
  });
3148
- } catch (N) {
3149
- v.forEach(
3150
- (E) => c.current.delete(E)
3151
- ), console.error("Jersey fetch error", N);
3148
+ } catch (M) {
3149
+ I.forEach(
3150
+ (T) => c.current.delete(T)
3151
+ ), console.error("Jersey fetch error", M);
3152
3152
  }
3153
3153
  })();
3154
3154
  }, i), () => {
3155
- h.current && clearTimeout(h.current);
3155
+ g.current && clearTimeout(g.current);
3156
3156
  };
3157
3157
  }, [e, a, o, i, n]), {
3158
3158
  jerseys: r,
3159
3159
  isPending: c.current
3160
3160
  };
3161
3161
  }
3162
- const Bn = (e) => {
3162
+ const An = (e) => {
3163
3163
  const a = ["esports", "cyber"];
3164
3164
  return e.filter((n) => {
3165
3165
  var r, s;
@@ -3176,64 +3176,64 @@ function Rn({
3176
3176
  onViewMore: o,
3177
3177
  className: i = ""
3178
3178
  }) {
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), [c, f] = Z({ isStart: !0, isEnd: !1 }), [h, u] = Z(null), [p, d] = Z({ start: null, end: null }), [g, m] = Z(null), _ = V(!1), S = ae(), y = ne(), v = le(), I = V(/* @__PURE__ */ new Map()), D = () => {
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), [c, h] = Z({ isStart: !0, isEnd: !1 }), [g, u] = Z(null), [m, d] = Z({ start: null, end: null }), [f, p] = Z(null), v = V(!1), C = ae(), y = ne(), I = le(), _ = V(/* @__PURE__ */ new Map()), D = () => {
3180
3180
  var z;
3181
- S({
3181
+ C({
3182
3182
  element: "evento_en_vivo_prev",
3183
3183
  label: `${y} - OraculoSeccionEventoEnVivo - Anterior`,
3184
3184
  target: "prev",
3185
3185
  event_type: "click",
3186
- module_id: v,
3186
+ module_id: I,
3187
3187
  metadata: {
3188
3188
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
3189
3189
  },
3190
3190
  tags: { section: "OraculoSeccionEventoEnVivo" }
3191
3191
  }), (z = s.current) == null || z.prev();
3192
- }, T = () => {
3192
+ }, k = () => {
3193
3193
  var z;
3194
- S({
3194
+ C({
3195
3195
  element: "evento_en_vivo_next",
3196
3196
  label: `${y} - OraculoSeccionEventoEnVivo - Siguiente`,
3197
3197
  target: "next",
3198
3198
  event_type: "click",
3199
- module_id: v,
3199
+ module_id: I,
3200
3200
  metadata: {
3201
3201
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
3202
3202
  },
3203
3203
  tags: { section: "OraculoSeccionEventoEnVivo" }
3204
3204
  }), (z = s.current) == null || z.next();
3205
- }, N = () => {
3206
- S({
3205
+ }, M = () => {
3206
+ C({
3207
3207
  element: "evento_en_vivo_view_more",
3208
3208
  label: `${y} - OraculoSeccionEventoEnVivo - Ver más`,
3209
3209
  target: "ver_mas",
3210
3210
  event_type: "click",
3211
- module_id: v,
3211
+ module_id: I,
3212
3212
  metadata: {
3213
3213
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
3214
3214
  },
3215
3215
  tags: { section: "OraculoSeccionEventoEnVivo" }
3216
- }), Aa();
3217
- }, E = Ee(async () => {
3216
+ }), Ba();
3217
+ }, T = Ee(async () => {
3218
3218
  var z;
3219
3219
  try {
3220
- if (!_.current) {
3221
- _.current = !0;
3220
+ if (!v.current) {
3221
+ v.current = !0;
3222
3222
  try {
3223
- const C = await (await fetch("https://api.mktolimpo.com/api/kambi/eventos/orden")).json(), q = ((z = C == null ? void 0 : C.data) == null ? void 0 : z.event_ids) || [], K = /* @__PURE__ */ new Map();
3224
- q.forEach((Y, l) => K.set(String(Y), l)), I.current = K;
3223
+ const w = await (await fetch("https://api.mktolimpo.com/api/kambi/eventos/orden")).json(), F = ((z = w == null ? void 0 : w.data) == null ? void 0 : z.event_ids) || [], K = /* @__PURE__ */ new Map();
3224
+ F.forEach((Y, l) => K.set(String(Y), l)), _.current = K;
3225
3225
  } catch (G) {
3226
3226
  console.error("Order fetch failed, using default sorting", G);
3227
3227
  }
3228
3228
  }
3229
3229
  const R = await fetch(r);
3230
3230
  if (!R.ok) throw new Error("Failed to fetch live events");
3231
- const U = await R.json(), W = Bn(U.events);
3232
- if (I.current.size === 0)
3231
+ const U = await R.json(), W = An(U.events);
3232
+ if (_.current.size === 0)
3233
3233
  u(W);
3234
3234
  else {
3235
- const G = [...W].sort((C, q) => {
3236
- const K = I.current.get(String(C.event.id)), Y = I.current.get(String(q.event.id));
3235
+ const G = [...W].sort((w, F) => {
3236
+ const K = _.current.get(String(w.event.id)), Y = _.current.get(String(F.event.id));
3237
3237
  return (K !== void 0 ? K : 1 / 0) - (Y !== void 0 ? Y : 1 / 0);
3238
3238
  });
3239
3239
  u(G);
@@ -3243,27 +3243,27 @@ function Rn({
3243
3243
  }
3244
3244
  }, []);
3245
3245
  ee(() => {
3246
- E();
3247
- const z = setInterval(E, 2e4);
3246
+ T();
3247
+ const z = setInterval(T, 2e4);
3248
3248
  return () => clearInterval(z);
3249
- }, [E]);
3250
- const { jerseys: M } = St({
3251
- events: (h == null ? void 0 : h.map((z) => z.event)) || [],
3249
+ }, [T]);
3250
+ const { jerseys: A } = St({
3251
+ events: (g == null ? void 0 : g.map((z) => z.event)) || [],
3252
3252
  // extract actual event objects
3253
- visibleRange: p,
3253
+ visibleRange: m,
3254
3254
  fetchJerseys: gt,
3255
3255
  buffer: 3,
3256
3256
  // same as your previous BUFFER
3257
3257
  debounceMs: 300
3258
3258
  // same as your previous debouncedVisibleRange
3259
- }), k = i || void 0, x = h === null, O = ie(() => x ? Array(4).fill({}) : (h == null ? void 0 : h.slice(0, 20)) || [], [x, h]), L = xe("(max-width:950px)");
3260
- return !x && h.length === 0 ? null : /* @__PURE__ */ t("section", { className: k, style: {
3259
+ }), $ = i || void 0, x = g === null, O = ie(() => x ? Array(4).fill({}) : (g == null ? void 0 : g.slice(0, 20)) || [], [x, g]), P = xe("(max-width:950px)");
3260
+ return !x && g.length === 0 ? null : /* @__PURE__ */ t("section", { className: $, style: {
3261
3261
  // paddingLeft: 16,
3262
3262
  // paddingRight: 16,
3263
3263
  width: "100%",
3264
3264
  boxSizing: "border-box"
3265
3265
  }, children: /* @__PURE__ */ b(H, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
3266
- /* @__PURE__ */ t("div", { className: An.padding, children: /* @__PURE__ */ b(me, { spacing: 1.5, columns: "1fr auto ", justify: "start", children: [
3266
+ /* @__PURE__ */ t("div", { className: Bn.padding, children: /* @__PURE__ */ b(me, { spacing: 1.5, columns: "1fr auto ", justify: "start", children: [
3267
3267
  /* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
3268
3268
  /* @__PURE__ */ b("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
3269
3269
  /* @__PURE__ */ b(me, { spacing: 1, columns: "auto auto", children: [
@@ -3273,7 +3273,7 @@ function Rn({
3273
3273
  ariaLabel: "Anterior",
3274
3274
  variant: "secondary",
3275
3275
  iconOnly: !0,
3276
- leftIcon: /* @__PURE__ */ t(Be, {}),
3276
+ leftIcon: /* @__PURE__ */ t(Ae, {}),
3277
3277
  onClick: D,
3278
3278
  disabled: c.isStart
3279
3279
  }
@@ -3285,12 +3285,12 @@ function Rn({
3285
3285
  variant: "secondary",
3286
3286
  iconOnly: !0,
3287
3287
  rightIcon: /* @__PURE__ */ t(ze, {}),
3288
- onClick: T,
3288
+ onClick: k,
3289
3289
  disabled: c.isEnd
3290
3290
  }
3291
3291
  )
3292
3292
  ] }),
3293
- /* @__PURE__ */ t(X, { variant: "secondary", onClick: N, children: "Ver más" })
3293
+ /* @__PURE__ */ t(X, { variant: "secondary", onClick: M, children: "Ver más" })
3294
3294
  ] })
3295
3295
  ] }) }),
3296
3296
  /* @__PURE__ */ t(
@@ -3299,7 +3299,7 @@ function Rn({
3299
3299
  ref: s,
3300
3300
  items: O,
3301
3301
  perPage: void 0,
3302
- showRightGradient: !L,
3302
+ showRightGradient: !P,
3303
3303
  enableHorizontalWheel: !0,
3304
3304
  gap: "16px",
3305
3305
  options: { autoWidth: !0, trimSpace: "move" },
@@ -3310,8 +3310,8 @@ function Rn({
3310
3310
  },
3311
3311
  renderItem: (z) => {
3312
3312
  var W;
3313
- const R = ((W = z.event) == null ? void 0 : W.id) || z.eventId, U = R in M ? M[R] : void 0;
3314
- return x ? /* @__PURE__ */ t(Ae, { children: /* @__PURE__ */ t(kn, {}) }) : /* @__PURE__ */ t(Ae, { children: /* @__PURE__ */ t(
3313
+ const R = ((W = z.event) == null ? void 0 : W.id) || z.eventId, U = R in A ? A[R] : void 0;
3314
+ return x ? /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(kn, {}) }) : /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(
3315
3315
  zn,
3316
3316
  {
3317
3317
  ...z,
@@ -3320,7 +3320,7 @@ function Rn({
3320
3320
  ) });
3321
3321
  },
3322
3322
  onMove: ({ isStart: z, isEnd: R, visibleStart: U, visibleEnd: W }) => {
3323
- f(
3323
+ h(
3324
3324
  (G) => G.isStart === z && G.isEnd === R ? G : { isStart: z, isEnd: R }
3325
3325
  ), d({ start: U, end: W });
3326
3326
  }
@@ -3328,7 +3328,7 @@ function Rn({
3328
3328
  )
3329
3329
  ] }) });
3330
3330
  }
3331
- function Ln() {
3331
+ function Pn() {
3332
3332
  return /* @__PURE__ */ b("div", { className: be.cardContainer, children: [
3333
3333
  /* @__PURE__ */ t(mt, { title: "" }),
3334
3334
  /* @__PURE__ */ t("div", { className: be.cardBackground, children: /* @__PURE__ */ b(H, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
@@ -3356,8 +3356,8 @@ function Ln() {
3356
3356
  ] }) })
3357
3357
  ] });
3358
3358
  }
3359
- const Pn = "oraculo__OraculoSeccionEventoSemana-module__wrapper___eqVq-", Fn = "oraculo__OraculoSeccionEventoSemana-module__container___5yFQs", qn = "oraculo__OraculoSeccionEventoSemana-module__buttonWrapper___-6IDT", Dn = "oraculo__OraculoSeccionEventoSemana-module__padding___vfUcV", Ie = {
3360
- wrapper: Pn,
3359
+ const Ln = "oraculo__OraculoSeccionEventoSemana-module__wrapper___eqVq-", Fn = "oraculo__OraculoSeccionEventoSemana-module__container___5yFQs", qn = "oraculo__OraculoSeccionEventoSemana-module__buttonWrapper___-6IDT", Dn = "oraculo__OraculoSeccionEventoSemana-module__padding___vfUcV", Ie = {
3360
+ wrapper: Ln,
3361
3361
  container: Fn,
3362
3362
  buttonWrapper: qn,
3363
3363
  padding: Dn
@@ -3368,7 +3368,7 @@ async function Vn(e, a = 2, n) {
3368
3368
  if (n.aborted)
3369
3369
  throw new DOMException("Aborted", "AbortError");
3370
3370
  const r = e.slice(i, i + a), s = await Promise.all(
3371
- r.map((c) => fetch(c, { signal: n }).then((f) => f.json()))
3371
+ r.map((c) => fetch(c, { signal: n }).then((h) => h.json()))
3372
3372
  );
3373
3373
  o.push(...s);
3374
3374
  }
@@ -3404,7 +3404,7 @@ function Hn({
3404
3404
  onViewMore: o,
3405
3405
  className: i = ""
3406
3406
  }) {
3407
- const r = ae(), s = ne(), c = le(), f = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE", h = V(null), [u, p] = Z({ isStart: !0, isEnd: !1 }), [d, g] = Z(null), [m, _] = Z({ start: null, end: null }), S = "channel_id=1&client_id=200&competitionId=undefined&lang=es_PE&market=PE&useCombined=true", y = () => {
3407
+ const r = ae(), s = ne(), c = le(), h = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE", g = V(null), [u, m] = Z({ isStart: !0, isEnd: !1 }), [d, f] = Z(null), [p, v] = Z({ start: null, end: null }), C = "channel_id=1&client_id=200&competitionId=undefined&lang=es_PE&market=PE&useCombined=true", y = () => {
3408
3408
  r({
3409
3409
  element: "evento_semana_view_more",
3410
3410
  label: `${s} - OraculoSeccionEventoSemana - Ver más`,
@@ -3415,26 +3415,26 @@ function Hn({
3415
3415
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
3416
3416
  },
3417
3417
  tags: { section: "OraculoSeccionEventoSemana" }
3418
- }), Ba();
3418
+ }), Aa();
3419
3419
  };
3420
- async function v(k) {
3421
- var L, z;
3420
+ async function I($) {
3421
+ var P, z;
3422
3422
  let x = [], O = [];
3423
3423
  try {
3424
3424
  const R = await fetch(
3425
3425
  "https://api.mktolimpo.com/api/kambi/eventos/orden",
3426
- { signal: k }
3426
+ { signal: $ }
3427
3427
  );
3428
3428
  if (R.ok) {
3429
3429
  const U = await R.json();
3430
- x = ((L = U == null ? void 0 : U.data) == null ? void 0 : L.group_ids) || [], O = ((z = U == null ? void 0 : U.data) == null ? void 0 : z.event_ids) || [];
3430
+ x = ((P = U == null ? void 0 : U.data) == null ? void 0 : P.group_ids) || [], O = ((z = U == null ? void 0 : U.data) == null ? void 0 : z.event_ids) || [];
3431
3431
  }
3432
3432
  } catch (R) {
3433
3433
  R.name !== "AbortError" && console.warn("Order API not available, using default group order");
3434
3434
  return;
3435
3435
  }
3436
3436
  try {
3437
- const W = (await (await fetch(f, { signal: k })).json()).group.groups.find(
3437
+ const W = (await (await fetch(h, { signal: $ })).json()).group.groups.find(
3438
3438
  (l) => l.englishName === "Football"
3439
3439
  );
3440
3440
  if (!W || !Array.isArray(W.groups)) {
@@ -3444,78 +3444,78 @@ function Hn({
3444
3444
  let G = [...W.groups];
3445
3445
  if (x.length > 0) {
3446
3446
  const l = new Map(
3447
- x.map((w, $) => [w, $])
3447
+ x.map((S, E) => [S, E])
3448
3448
  );
3449
- G.sort((w, $) => {
3450
- const A = l.get(String(w.id)), B = l.get(String($.id));
3451
- return A !== void 0 && B !== void 0 ? A - B : A !== void 0 ? -1 : B !== void 0 ? 1 : 0;
3449
+ G.sort((S, E) => {
3450
+ const N = l.get(String(S.id)), B = l.get(String(E.id));
3451
+ return N !== void 0 && B !== void 0 ? N - B : N !== void 0 ? -1 : B !== void 0 ? 1 : 0;
3452
3452
  });
3453
3453
  }
3454
- const q = G.slice(0, 5), K = (l) => {
3455
- const w = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football";
3454
+ const F = G.slice(0, 5), K = (l) => {
3455
+ const S = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football";
3456
3456
  if (l.groups && l.groups.length > 0) {
3457
- const $ = l.groups[0];
3457
+ const E = l.groups[0];
3458
3458
  return [
3459
- `${w}/${l.termKey}/${$.termKey}/all/matches.json?${S}`
3459
+ `${S}/${l.termKey}/${E.termKey}/all/matches.json?${C}`
3460
3460
  ];
3461
3461
  }
3462
3462
  return [
3463
- `${w}/${l.termKey}/all/all/matches.json?${S}`
3463
+ `${S}/${l.termKey}/all/all/matches.json?${C}`
3464
3464
  ];
3465
- }, Y = q.flatMap(K);
3466
- I(Y, O, k);
3465
+ }, Y = F.flatMap(K);
3466
+ _(Y, O, $);
3467
3467
  } catch (R) {
3468
3468
  console.error(R);
3469
3469
  }
3470
3470
  }
3471
- async function I(k, x, O) {
3471
+ async function _($, x, O) {
3472
3472
  try {
3473
- const L = await Vn(k, 2, O);
3473
+ const P = await Vn($, 2, O);
3474
3474
  let z = [], R = [];
3475
- L.forEach((C) => {
3476
- C.events && (z.push(...C.events.map((q) => q.event)), R.push(
3477
- ...C.events.flatMap((q) => q.betOffers || [])
3475
+ P.forEach((w) => {
3476
+ w.events && (z.push(...w.events.map((F) => F.event)), R.push(
3477
+ ...w.events.flatMap((F) => F.betOffers || [])
3478
3478
  ));
3479
3479
  });
3480
3480
  const U = jn(z, R), W = Wn(Gn(U));
3481
3481
  let G = W;
3482
3482
  if (x.length > 0) {
3483
- const C = new Map(
3484
- x.map((q, K) => [
3485
- String(q),
3483
+ const w = new Map(
3484
+ x.map((F, K) => [
3485
+ String(F),
3486
3486
  K
3487
3487
  ])
3488
3488
  );
3489
- G = [...W].sort((q, K) => {
3490
- const Y = C.get(String(q.id)), l = C.get(String(K.id));
3489
+ G = [...W].sort((F, K) => {
3490
+ const Y = w.get(String(F.id)), l = w.get(String(K.id));
3491
3491
  return Y !== void 0 && l !== void 0 ? Y - l : Y !== void 0 ? -1 : l !== void 0 ? 1 : 0;
3492
3492
  });
3493
3493
  }
3494
3494
  if (O.aborted) return;
3495
- g(G);
3496
- } catch (L) {
3497
- console.error("Error loading events:", L);
3495
+ f(G);
3496
+ } catch (P) {
3497
+ console.error("Error loading events:", P);
3498
3498
  }
3499
3499
  }
3500
3500
  ee(() => {
3501
3501
  if (!e) return;
3502
- const k = new AbortController();
3503
- return v(k.signal), () => {
3504
- k.abort();
3502
+ const $ = new AbortController();
3503
+ return I($.signal), () => {
3504
+ $.abort();
3505
3505
  };
3506
3506
  }, [e]);
3507
- const D = i || void 0, T = {
3507
+ const D = i || void 0, k = {
3508
3508
  paddingLeft: 0,
3509
3509
  width: "100%",
3510
3510
  boxSizing: "border-box"
3511
- }, { jerseys: N } = St({
3511
+ }, { jerseys: M } = St({
3512
3512
  events: d,
3513
- visibleRange: m,
3513
+ visibleRange: p,
3514
3514
  fetchJerseys: gt,
3515
3515
  buffer: 2,
3516
3516
  debounceMs: 250
3517
- }), E = d === null, M = xe("(max-width:950px)");
3518
- return !E && d.length === 0 ? null : /* @__PURE__ */ t("section", { className: D, style: T, children: /* @__PURE__ */ b("div", { className: `${Ie.wrapper} ${Ie.padding}`, children: [
3517
+ }), T = d === null, A = xe("(max-width:950px)");
3518
+ return !T && d.length === 0 ? null : /* @__PURE__ */ t("section", { className: D, style: k, children: /* @__PURE__ */ b("div", { className: `${Ie.wrapper} ${Ie.padding}`, children: [
3519
3519
  /* @__PURE__ */ t("div", { className: Ie.container, children: /* @__PURE__ */ b(H, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
3520
3520
  /* @__PURE__ */ t(ge, { title: "Eventos de la semana" }),
3521
3521
  /* @__PURE__ */ t("div", { className: Ie.buttonWrapper, children: /* @__PURE__ */ t(
@@ -3534,12 +3534,12 @@ function Hn({
3534
3534
  /* @__PURE__ */ t("div", { style: { minWidth: "180px" }, children: /* @__PURE__ */ t(
3535
3535
  he,
3536
3536
  {
3537
- ref: h,
3538
- items: E ? Array(6).fill({}) : d.slice(0, 20),
3537
+ ref: g,
3538
+ items: T ? Array(6).fill({}) : d.slice(0, 20),
3539
3539
  perPage: 3.5,
3540
3540
  gap: "16px",
3541
3541
  enableHorizontalWheel: !0,
3542
- showRightGradient: !M,
3542
+ showRightGradient: !A,
3543
3543
  options: { autoWidth: !0, trimSpace: !0 },
3544
3544
  breakpoints: {
3545
3545
  1024: {
@@ -3549,14 +3549,14 @@ function Hn({
3549
3549
  padding: { left: "8px", right: "8px" }
3550
3550
  }
3551
3551
  },
3552
- renderItem: (k) => {
3553
- const x = k.id, O = x in N ? N[x] : void 0;
3554
- return E ? /* @__PURE__ */ t(Ae, { children: /* @__PURE__ */ t(Ln, {}) }) : /* @__PURE__ */ t(Ae, { children: /* @__PURE__ */ t(Un, { event: k, jersey: O }) });
3552
+ renderItem: ($) => {
3553
+ const x = $.id, O = x in M ? M[x] : void 0;
3554
+ return T ? /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Pn, {}) }) : /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Un, { event: $, jersey: O }) });
3555
3555
  },
3556
- onMove: ({ isStart: k, isEnd: x, visibleStart: O, visibleEnd: L }) => {
3557
- p({ isStart: k, isEnd: x }), _({
3556
+ onMove: ({ isStart: $, isEnd: x, visibleStart: O, visibleEnd: P }) => {
3557
+ m({ isStart: $, isEnd: x }), v({
3558
3558
  start: O,
3559
- end: L
3559
+ end: P
3560
3560
  }), r({
3561
3561
  element: "evento_semana_carousel_slide",
3562
3562
  label: `${s} - OraculoSeccionEventoSemana - Slide Carousel`,
@@ -3566,8 +3566,8 @@ function Hn({
3566
3566
  metadata: {
3567
3567
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
3568
3568
  visibleStart: O,
3569
- visibleEnd: L,
3570
- isStart: k,
3569
+ visibleEnd: P,
3570
+ isStart: $,
3571
3571
  isEnd: x
3572
3572
  },
3573
3573
  tags: { section: "OraculoSeccionEventoSemana" }
@@ -3580,8 +3580,8 @@ function Hn({
3580
3580
  const Kn = -300, Zn = (e) => /[zZ]|[+-]\d{2}:\d{2}$/.test(e), nt = (e) => {
3581
3581
  if (!e) return null;
3582
3582
  if (Zn(e)) {
3583
- const f = new Date(e).getTime();
3584
- return Number.isNaN(f) ? null : f;
3583
+ const h = new Date(e).getTime();
3584
+ return Number.isNaN(h) ? null : h;
3585
3585
  }
3586
3586
  const a = e.match(
3587
3587
  /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})(?::(\d{2}))?$/
@@ -3597,8 +3597,8 @@ const Kn = -300, Zn = (e) => /[zZ]|[+-]\d{2}:\d{2}$/.test(e), nt = (e) => {
3597
3597
  Number(c)
3598
3598
  );
3599
3599
  }, Jn = (e, a) => {
3600
- var c, f, h, u, p, d, g, m, _;
3601
- const n = (h = (f = (c = e == null ? void 0 : e.fields) != null ? c : e == null ? void 0 : e.parameters) != null ? f : e == null ? void 0 : e.extraFields) != null ? h : [], o = (d = (p = e == null ? void 0 : e.startAt) != null ? p : (u = n.find((S) => (S == null ? void 0 : S.name) === "startAt")) == null ? void 0 : u.value) != null ? d : null, i = (_ = (m = e == null ? void 0 : e.endAt) != null ? m : (g = n.find((S) => (S == null ? void 0 : S.name) === "endAt")) == null ? void 0 : g.value) != null ? _ : null, r = nt(o), s = nt(i);
3600
+ var c, h, g, u, m, d, f, p, v;
3601
+ const n = (g = (h = (c = e == null ? void 0 : e.fields) != null ? c : e == null ? void 0 : e.parameters) != null ? h : e == null ? void 0 : e.extraFields) != null ? g : [], o = (d = (m = e == null ? void 0 : e.startAt) != null ? m : (u = n.find((C) => (C == null ? void 0 : C.name) === "startAt")) == null ? void 0 : u.value) != null ? d : null, i = (v = (p = e == null ? void 0 : e.endAt) != null ? p : (f = n.find((C) => (C == null ? void 0 : C.name) === "endAt")) == null ? void 0 : f.value) != null ? v : null, r = nt(o), s = nt(i);
3602
3602
  return !(r != null && a < r || s != null && a >= s);
3603
3603
  };
3604
3604
  function Xn({
@@ -3607,14 +3607,14 @@ function Xn({
3607
3607
  hideItems: n
3608
3608
  }) {
3609
3609
  var W, G;
3610
- const [o, i] = Z(0), r = ae(), s = ne(), c = le(), f = V(null), h = V(!1), u = V(!1), [p, d] = Z(() => Date.now()), g = se("setDepositActionGlobal"), m = ie(() => (e != null ? e : []).filter((C) => Jn(C, p)), [e, p]), _ = m.length || 1, S = !m || m.length === 0, y = !S && m.length > 1, v = !n && ((W = a == null ? void 0 : a.length) != null ? W : 0) > 0;
3610
+ const [o, i] = Z(0), r = ae(), s = ne(), c = le(), h = V(null), g = V(!1), u = V(!1), [m, d] = Z(() => Date.now()), f = se("setDepositActionGlobal"), p = ie(() => (e != null ? e : []).filter((w) => Jn(w, m)), [e, m]), v = p.length || 1, C = !p || p.length === 0, y = !C && p.length > 1, I = !n && ((W = a == null ? void 0 : a.length) != null ? W : 0) > 0;
3611
3611
  De("(max-width:950px)");
3612
- const I = "#B5B5B5";
3612
+ const _ = "#B5B5B5";
3613
3613
  ee(() => {
3614
- const C = window.setInterval(() => {
3614
+ const w = window.setInterval(() => {
3615
3615
  d(Date.now());
3616
3616
  }, 3e4);
3617
- return () => window.clearInterval(C);
3617
+ return () => window.clearInterval(w);
3618
3618
  }, []);
3619
3619
  const D = {
3620
3620
  position: "absolute",
@@ -3624,22 +3624,22 @@ function Xn({
3624
3624
  width: 48,
3625
3625
  height: 40,
3626
3626
  borderRadius: "12px",
3627
- border: `1.5px solid ${I}`,
3627
+ border: `1.5px solid ${_}`,
3628
3628
  py: 1,
3629
3629
  px: 1.5,
3630
- color: I,
3630
+ color: _,
3631
3631
  backgroundColor: "transparent",
3632
3632
  "&:hover": {
3633
3633
  backgroundColor: "rgba(181,181,181,0.08)"
3634
3634
  },
3635
3635
  "&.Mui-disabled": {
3636
3636
  opacity: 0.35,
3637
- borderColor: I,
3638
- color: I,
3637
+ borderColor: _,
3638
+ color: _,
3639
3639
  backgroundColor: "transparent",
3640
3640
  cursor: "default"
3641
3641
  }
3642
- }, T = ie(
3642
+ }, k = ie(
3643
3643
  () => ({
3644
3644
  type: "loop",
3645
3645
  perMove: 1,
@@ -3651,91 +3651,96 @@ function Xn({
3651
3651
  []
3652
3652
  );
3653
3653
  ee(() => {
3654
- const C = setTimeout(() => {
3655
- h.current = !0;
3654
+ const w = setTimeout(() => {
3655
+ g.current = !0;
3656
3656
  }, 500);
3657
- return () => clearTimeout(C);
3657
+ return () => clearTimeout(w);
3658
3658
  }, []);
3659
- const N = (C, q, K) => {
3660
- var l, w;
3661
- if (q.idfunction)
3662
- switch (C.preventDefault(), q.idfunction) {
3659
+ const M = (w, F, K) => {
3660
+ var E, N;
3661
+ const Y = !!F.idFunction, l = !!F.href;
3662
+ if (Y)
3663
+ switch (w.preventDefault(), w.stopPropagation(), F.idFunction) {
3663
3664
  case "deposito":
3664
- g == null || g(!0);
3665
+ f == null || f(!0);
3665
3666
  return;
3666
3667
  default:
3667
3668
  return;
3668
3669
  }
3669
- const Y = ((w = (l = q.href) == null ? void 0 : l.split("/").pop()) == null ? void 0 : w.split(".")[0]) || q.label || q.id || `banner_${K + 1}`;
3670
+ if (!l) {
3671
+ w.preventDefault(), w.stopPropagation();
3672
+ return;
3673
+ }
3674
+ const S = ((N = (E = F.href) == null ? void 0 : E.split("/").pop()) == null ? void 0 : N.split(".")[0]) || F.label || F.id || `banner_${K + 1}`;
3670
3675
  r({
3671
3676
  element: "banner_carousel",
3672
- label: `${s} - OraculoSeccionBanners - Banner click: ${Y}`,
3673
- target: q.href || "no_url",
3677
+ label: `${s} - OraculoSeccionBanners - Banner click: ${S}`,
3678
+ target: F.href || "no_url",
3674
3679
  event_type: "click",
3675
3680
  module_id: c,
3676
3681
  metadata: {
3677
3682
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
3678
3683
  banner_position: K + 1,
3679
- banner_total: (m == null ? void 0 : m.length) || 0
3684
+ banner_total: (p == null ? void 0 : p.length) || 0
3680
3685
  },
3681
3686
  tags: {
3682
3687
  banner_type: "carousel",
3683
3688
  banner_target: "_self",
3684
- banner_url: q.href || "no_url"
3689
+ banner_url: F.href || "no_url"
3685
3690
  }
3686
3691
  });
3687
- }, E = (C) => {
3692
+ }, T = (w) => {
3688
3693
  if (r({
3689
3694
  element: "banner_menu_item",
3690
- label: `${s} - OraculoSeccionBanners - Menu item click: ${C.label || C.id}`,
3691
- target: C.href || "action",
3695
+ label: `${s} - OraculoSeccionBanners - Menu item click: ${w.label || w.id}`,
3696
+ target: w.href || "action",
3692
3697
  event_type: "click",
3693
3698
  module_id: c,
3694
3699
  metadata: {
3695
3700
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
3696
- item_id: C.id
3701
+ item_id: w.id
3697
3702
  },
3698
3703
  tags: {
3699
- item_label: C.label || "no_label"
3704
+ item_label: w.label || "no_label"
3700
3705
  }
3701
- }), C.onClick) {
3702
- C.onClick();
3706
+ }), w.onClick) {
3707
+ w.onClick();
3703
3708
  return;
3704
3709
  }
3705
- C.href && typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(C.href);
3706
- }, M = 5e3, k = V(null), x = !S && ((G = m == null ? void 0 : m.length) != null ? G : 0) > 1, O = () => {
3707
- k.current != null && (window.clearTimeout(k.current), k.current = null);
3708
- }, L = () => {
3709
- O(), x && (k.current = window.setTimeout(() => {
3710
- var C;
3711
- u.current = !0, (C = f.current) == null || C.next();
3712
- }, M));
3710
+ w.href && typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(w.href);
3711
+ }, A = 5e3, $ = V(null), x = !C && ((G = p == null ? void 0 : p.length) != null ? G : 0) > 1, O = () => {
3712
+ $.current != null && (window.clearTimeout($.current), $.current = null);
3713
+ }, P = () => {
3714
+ O(), x && ($.current = window.setTimeout(() => {
3715
+ var w;
3716
+ u.current = !0, (w = h.current) == null || w.next();
3717
+ }, A));
3713
3718
  };
3714
- ee(() => (L(), () => O()), [x, M]);
3715
- const z = (C) => {
3716
- var q;
3717
- C.preventDefault(), C.stopPropagation(), O(), (q = f.current) == null || q.prev();
3718
- }, R = (C) => {
3719
- var q;
3720
- C.preventDefault(), C.stopPropagation(), O(), (q = f.current) == null || q.next();
3721
- }, U = (C) => {
3722
- var Y, l, w, $;
3723
- const q = (C % _ + _) % _;
3724
- if (!h.current) return;
3725
- const K = (Y = m == null ? void 0 : m[q]) != null && Y.href ? ((w = (l = m[q].href) == null ? void 0 : l.split("/").pop()) == null ? void 0 : w.split(".")[0]) || `banner_${q + 1}` : `banner_${q + 1}`;
3719
+ ee(() => (P(), () => O()), [x, A]);
3720
+ const z = (w) => {
3721
+ var F;
3722
+ w.preventDefault(), w.stopPropagation(), O(), (F = h.current) == null || F.prev();
3723
+ }, R = (w) => {
3724
+ var F;
3725
+ w.preventDefault(), w.stopPropagation(), O(), (F = h.current) == null || F.next();
3726
+ }, U = (w) => {
3727
+ var Y, l, S, E;
3728
+ const F = (w % v + v) % v;
3729
+ if (!g.current) return;
3730
+ const K = (Y = p == null ? void 0 : p[F]) != null && Y.href ? ((S = (l = p[F].href) == null ? void 0 : l.split("/").pop()) == null ? void 0 : S.split(".")[0]) || `banner_${F + 1}` : `banner_${F + 1}`;
3726
3731
  r({
3727
3732
  element: "banner_carousel",
3728
- label: `${s} - OraculoSeccionBanners - Banner view: Slide ${q + 1} - ${K}`,
3729
- target: (($ = m == null ? void 0 : m[q]) == null ? void 0 : $.href) || "no_url",
3733
+ label: `${s} - OraculoSeccionBanners - Banner view: Slide ${F + 1} - ${K}`,
3734
+ target: ((E = p == null ? void 0 : p[F]) == null ? void 0 : E.href) || "no_url",
3730
3735
  event_type: "view",
3731
3736
  module_id: c,
3732
3737
  metadata: {
3733
3738
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
3734
- slide_index: q + 1,
3735
- total_slides: _,
3739
+ slide_index: F + 1,
3740
+ total_slides: v,
3736
3741
  interaction_type: "manual_slide"
3737
3742
  },
3738
- tags: { banner_position: String(q + 1) }
3743
+ tags: { banner_position: String(F + 1) }
3739
3744
  });
3740
3745
  };
3741
3746
  return /* @__PURE__ */ b(
@@ -3745,7 +3750,7 @@ function Xn({
3745
3750
  sx: {
3746
3751
  position: "relative",
3747
3752
  overflow: "visible",
3748
- pb: v ? { xs: "40px", sm: 0 } : 0
3753
+ pb: I ? { xs: "40px", sm: 0 } : 0
3749
3754
  },
3750
3755
  children: [
3751
3756
  /* @__PURE__ */ b(
@@ -3775,45 +3780,46 @@ function Xn({
3775
3780
  children: /* @__PURE__ */ t(
3776
3781
  he,
3777
3782
  {
3778
- ref: f,
3779
- items: m,
3783
+ ref: h,
3784
+ items: p,
3780
3785
  perPage: 1,
3781
3786
  gap: "0px",
3782
3787
  enableHorizontalWheel: !0,
3783
- options: T,
3784
- onMove: ({ index: C }) => {
3785
- const q = (C % _ + _) % _;
3786
- i(q);
3788
+ options: k,
3789
+ onMove: ({ index: w }) => {
3790
+ const F = (w % v + v) % v;
3791
+ i(F);
3787
3792
  const K = u.current;
3788
- u.current = !1, L(), K || U(C);
3793
+ u.current = !1, P(), K || U(w);
3789
3794
  },
3790
- renderItem: (C, q) => {
3791
- var K, Y, l;
3795
+ renderItem: (w, F) => {
3796
+ var E, N, B;
3797
+ const K = !!w.idFunction, Y = !!w.href, l = Y && !K, S = K || Y;
3792
3798
  return /* @__PURE__ */ b(
3793
3799
  Q,
3794
3800
  {
3795
- component: "a",
3796
- href: C.href || "",
3797
- target: (K = C.target) != null ? K : "_self",
3798
- rel: C.target === "_blank" ? "noopener noreferrer" : void 0,
3799
- onClick: (w) => N(w, C, q),
3801
+ component: l ? "a" : "div",
3802
+ href: l ? w.href : void 0,
3803
+ target: l ? (E = w.target) != null ? E : "_self" : void 0,
3804
+ rel: l && w.target === "_blank" ? "noopener noreferrer" : void 0,
3805
+ onClick: (L) => M(L, w, F),
3800
3806
  sx: {
3801
3807
  position: "relative",
3802
3808
  width: "100%",
3803
3809
  height: "100%",
3804
3810
  display: "block",
3805
3811
  textDecoration: "none",
3806
- cursor: "pointer"
3812
+ cursor: S ? "pointer" : "default"
3807
3813
  },
3808
3814
  children: [
3809
3815
  /* @__PURE__ */ b(Q, { component: "picture", sx: { position: "absolute", inset: 0, lineHeight: 0 }, children: [
3810
- /* @__PURE__ */ t("source", { srcSet: C.desktopSrc, media: "(min-width:950px)" }),
3811
- /* @__PURE__ */ t("source", { srcSet: C.mobileSrc, media: "(max-width:949px)" }),
3816
+ /* @__PURE__ */ t("source", { srcSet: w.desktopSrc, media: "(min-width:950px)" }),
3817
+ /* @__PURE__ */ t("source", { srcSet: w.mobileSrc, media: "(max-width:949px)" }),
3812
3818
  /* @__PURE__ */ t(
3813
3819
  Q,
3814
3820
  {
3815
3821
  component: "img",
3816
- src: (l = (Y = C.fallbackSrc) != null ? Y : C.desktopSrc) != null ? l : "",
3822
+ src: (B = (N = w.fallbackSrc) != null ? N : w.desktopSrc) != null ? B : "",
3817
3823
  alt: "",
3818
3824
  "aria-hidden": !0,
3819
3825
  loading: "lazy",
@@ -3865,7 +3871,7 @@ function Xn({
3865
3871
  "@media (max-width:1024px)": { left: 24 },
3866
3872
  "@media (max-width:786px)": { display: "none" }
3867
3873
  },
3868
- children: /* @__PURE__ */ t(Be, {})
3874
+ children: /* @__PURE__ */ t(Ae, {})
3869
3875
  }
3870
3876
  ),
3871
3877
  /* @__PURE__ */ t(
@@ -3898,18 +3904,18 @@ function Xn({
3898
3904
  children: /* @__PURE__ */ t(
3899
3905
  dt,
3900
3906
  {
3901
- total: _,
3907
+ total: v,
3902
3908
  active: o,
3903
- durationMs: M
3909
+ durationMs: A
3904
3910
  },
3905
- `${o}-${_}`
3911
+ `${o}-${v}`
3906
3912
  )
3907
3913
  }
3908
3914
  )
3909
3915
  ]
3910
3916
  }
3911
3917
  ),
3912
- v && /* @__PURE__ */ t(
3918
+ I && /* @__PURE__ */ t(
3913
3919
  Q,
3914
3920
  {
3915
3921
  sx: {
@@ -3927,7 +3933,7 @@ function Xn({
3927
3933
  boxShadow: "0 10px 24px rgba(0,0,0,.35)",
3928
3934
  zIndex: 3
3929
3935
  },
3930
- children: a == null ? void 0 : a.map((C) => /* @__PURE__ */ b(
3936
+ children: a == null ? void 0 : a.map((w) => /* @__PURE__ */ b(
3931
3937
  Q,
3932
3938
  {
3933
3939
  sx: {
@@ -3939,7 +3945,7 @@ function Xn({
3939
3945
  gap: { xs: 0.5, md: 1 },
3940
3946
  color: "#FFFFFF",
3941
3947
  minWidth: 0,
3942
- cursor: C.onClick || C.href ? "pointer" : "default",
3948
+ cursor: w.onClick || w.href ? "pointer" : "default",
3943
3949
  whiteSpace: "nowrap",
3944
3950
  "&::after": {
3945
3951
  content: '""',
@@ -3963,7 +3969,7 @@ function Xn({
3963
3969
  opacity: 1,
3964
3970
  transform: "scaleX(1)"
3965
3971
  },
3966
- ...C.iconHover && {
3972
+ ...w.iconHover && {
3967
3973
  "&:hover .menu-icon-default": {
3968
3974
  display: "none"
3969
3975
  },
@@ -3972,9 +3978,9 @@ function Xn({
3972
3978
  }
3973
3979
  }
3974
3980
  },
3975
- onClick: () => E(C),
3981
+ onClick: () => T(w),
3976
3982
  children: [
3977
- C.icon && /* @__PURE__ */ b(
3983
+ w.icon && /* @__PURE__ */ b(
3978
3984
  Q,
3979
3985
  {
3980
3986
  sx: {
@@ -3988,8 +3994,8 @@ function Xn({
3988
3994
  Q,
3989
3995
  {
3990
3996
  component: "img",
3991
- src: C.icon,
3992
- alt: C.label || `icon-${C.id}`,
3997
+ src: w.icon,
3998
+ alt: w.label || `icon-${w.id}`,
3993
3999
  className: "menu-icon-default",
3994
4000
  sx: {
3995
4001
  display: "block",
@@ -4001,12 +4007,12 @@ function Xn({
4001
4007
  }
4002
4008
  }
4003
4009
  ),
4004
- C.iconHover && /* @__PURE__ */ t(
4010
+ w.iconHover && /* @__PURE__ */ t(
4005
4011
  Q,
4006
4012
  {
4007
4013
  component: "img",
4008
- src: C.iconHover,
4009
- alt: C.label || `icon-hover-${C.id}`,
4014
+ src: w.iconHover,
4015
+ alt: w.label || `icon-hover-${w.id}`,
4010
4016
  className: "menu-icon-hover",
4011
4017
  sx: {
4012
4018
  display: "none",
@@ -4031,12 +4037,12 @@ function Xn({
4031
4037
  color: "#E0E0E0",
4032
4038
  textAlign: "center"
4033
4039
  },
4034
- children: C.label
4040
+ children: w.label
4035
4041
  }
4036
4042
  )
4037
4043
  ]
4038
4044
  },
4039
- C.id
4045
+ w.id
4040
4046
  ))
4041
4047
  }
4042
4048
  )
@@ -4129,8 +4135,8 @@ function It({
4129
4135
  }),
4130
4136
  [a]
4131
4137
  );
4132
- return /* @__PURE__ */ b(Lt, { theme: n, children: [
4133
- /* @__PURE__ */ t(Pt, {}),
4138
+ return /* @__PURE__ */ b(Pt, { theme: n, children: [
4139
+ /* @__PURE__ */ t(Lt, {}),
4134
4140
  e
4135
4141
  ] });
4136
4142
  }
@@ -4434,7 +4440,7 @@ const eo = {
4434
4440
  {
4435
4441
  id: "fa9c467f-4f33-4bee-b502-a413d7212321",
4436
4442
  isImage: !1,
4437
- name: "idfunction",
4443
+ name: "idFunction",
4438
4444
  required: !1,
4439
4445
  type: "string",
4440
4446
  value: "deposito"
@@ -4491,7 +4497,7 @@ const eo = {
4491
4497
  name: "startAt",
4492
4498
  required: !1,
4493
4499
  type: "string",
4494
- value: "2026-04-13T10:45"
4500
+ value: ""
4495
4501
  },
4496
4502
  {
4497
4503
  id: "fa9c467f-4f33-4bee-b502-a413d726bbb2",
@@ -4499,7 +4505,7 @@ const eo = {
4499
4505
  name: "endAt",
4500
4506
  required: !1,
4501
4507
  type: "string",
4502
- value: "2026-04-14T11:15"
4508
+ value: ""
4503
4509
  }
4504
4510
  ],
4505
4511
  id: "024f8130-91e1-4296-b826-cffa32ab1a96"
@@ -4553,7 +4559,7 @@ const eo = {
4553
4559
  name: "startAt",
4554
4560
  required: !1,
4555
4561
  type: "string",
4556
- value: "2026-04-13T10:45"
4562
+ value: ""
4557
4563
  },
4558
4564
  {
4559
4565
  id: "fa9c467f-4f33-4bee-b502-a413d726bbb2",
@@ -4561,7 +4567,7 @@ const eo = {
4561
4567
  name: "endAt",
4562
4568
  required: !1,
4563
4569
  type: "string",
4564
- value: "2026-04-13T11:00"
4570
+ value: ""
4565
4571
  }
4566
4572
  ],
4567
4573
  id: "cdfce77c-a814-43f1-911d-3715803252c2"
@@ -5517,33 +5523,33 @@ const it = [
5517
5523
  loader: r,
5518
5524
  disableWrapper: s = !1
5519
5525
  }) => {
5520
- const c = ie(() => oo(i), [i]), f = r || c.loader, [h, u] = Z([]), [p, d] = Z(!1), [g, m] = Z({}), [_, S] = Z({}), [y, v] = Z({}), I = De("(min-width:1024px)"), D = ie(
5526
+ const c = ie(() => oo(i), [i]), h = r || c.loader, [g, u] = Z([]), [m, d] = Z(!1), [f, p] = Z({}), [v, C] = Z({}), [y, I] = Z({}), _ = De("(min-width:1024px)"), D = ie(
5521
5527
  () => Ce(qe),
5522
5528
  []
5523
- ), T = (l) => D.find(
5524
- (w) => w.id === l.id || w.componentKey === l.componentKey
5525
- ), N = (l) => Array.isArray(l) ? l.map((w) => Number(w)).filter((w) => !Number.isNaN(w)) : [], E = ie(() => {
5529
+ ), k = (l) => D.find(
5530
+ (S) => S.id === l.id || S.componentKey === l.componentKey
5531
+ ), M = (l) => Array.isArray(l) ? l.map((S) => Number(S)).filter((S) => !Number.isNaN(S)) : [], T = ie(() => {
5526
5532
  const l = c.user;
5527
- return N(l == null ? void 0 : l.groups);
5528
- }, [c]), M = (l) => {
5529
- const w = l.manualScalarFields;
5530
- if (!Array.isArray(w)) return [];
5531
- const $ = w.find(
5532
- (P) => String((P == null ? void 0 : P.name) || "").trim().toLowerCase() === "groups"
5533
+ return M(l == null ? void 0 : l.groups);
5534
+ }, [c]), A = (l) => {
5535
+ const S = l.manualScalarFields;
5536
+ if (!Array.isArray(S)) return [];
5537
+ const E = S.find(
5538
+ (L) => String((L == null ? void 0 : L.name) || "").trim().toLowerCase() === "groups"
5533
5539
  );
5534
- if (!$) return [];
5535
- const A = $.value;
5536
- if (A == null) return [];
5537
- if (Array.isArray(A))
5538
- return A.map((P) => Number(String(P).trim())).filter((P) => !Number.isNaN(P));
5539
- const B = String(A).trim();
5540
- return B ? B.split(",").map((P) => Number(P.trim())).filter((P) => !Number.isNaN(P)) : [];
5541
- }, k = (l, w) => {
5542
- const $ = M(l);
5543
- if ($.length === 0) return !0;
5544
- if (!Array.isArray(w) || w.length === 0) return !1;
5545
- const A = new Set(w);
5546
- return $.some((B) => A.has(B));
5540
+ if (!E) return [];
5541
+ const N = E.value;
5542
+ if (N == null) return [];
5543
+ if (Array.isArray(N))
5544
+ return N.map((L) => Number(String(L).trim())).filter((L) => !Number.isNaN(L));
5545
+ const B = String(N).trim();
5546
+ return B ? B.split(",").map((L) => Number(L.trim())).filter((L) => !Number.isNaN(L)) : [];
5547
+ }, $ = (l, S) => {
5548
+ const E = A(l);
5549
+ if (E.length === 0) return !0;
5550
+ if (!Array.isArray(S) || S.length === 0) return !1;
5551
+ const N = new Set(S);
5552
+ return E.some((B) => N.has(B));
5547
5553
  };
5548
5554
  ee(() => {
5549
5555
  if (e) return;
@@ -5551,42 +5557,42 @@ const it = [
5551
5557
  console.warn("[landing] sin db -> fallback json"), u(Ce(qe));
5552
5558
  return;
5553
5559
  }
5554
- const l = ($, A) => {
5555
- console.warn("[landing] FALLBACK:", $, A != null ? A : ""), u(Ce(qe)), d(!1);
5560
+ const l = (E, N) => {
5561
+ console.warn("[landing] FALLBACK:", E, N != null ? N : ""), u(Ce(qe)), d(!1);
5556
5562
  };
5557
5563
  if (process.env.NEXT_PUBLIC_LANDING_FORCE_FALLBACK === "1") {
5558
5564
  d(!0), l("forzado por env");
5559
5565
  return;
5560
5566
  }
5561
5567
  d(!0);
5562
- const w = Ft(
5568
+ const S = Ft(
5563
5569
  qt(o, "landings", a),
5564
- ($) => {
5570
+ (E) => {
5565
5571
  try {
5566
- if (!$.exists()) {
5572
+ if (!E.exists()) {
5567
5573
  l(`doc landings/${a} no existe`);
5568
5574
  return;
5569
5575
  }
5570
- const A = $.data(), B = Ce(A);
5576
+ const N = E.data(), B = Ce(N);
5571
5577
  if (!B.length) {
5572
- l("JSON inválido o sin secciones normalizables", A);
5578
+ l("JSON inválido o sin secciones normalizables", N);
5573
5579
  return;
5574
5580
  }
5575
- console.log("[landing] Firestore OK (json grande):", A), u(B);
5576
- } catch (A) {
5577
- l("error procesando snapshot", A);
5581
+ console.log("[landing] Firestore OK (json grande):", N), u(B);
5582
+ } catch (N) {
5583
+ l("error procesando snapshot", N);
5578
5584
  } finally {
5579
5585
  d(!1);
5580
5586
  }
5581
5587
  },
5582
- ($) => {
5583
- l("error onSnapshot", $);
5588
+ (E) => {
5589
+ l("error onSnapshot", E);
5584
5590
  }
5585
5591
  );
5586
- return () => w();
5592
+ return () => S();
5587
5593
  }, [e, a, o]), ee(() => (Xa(c), () => Ya()), [c]), ee(() => {
5588
- (e ? e.slice() : h.slice()).map(($) => $.componentKey).filter(($) => !!$).length;
5589
- }, [e, h]);
5594
+ (e ? e.slice() : g.slice()).map((E) => E.componentKey).filter((E) => !!E).length;
5595
+ }, [e, g]);
5590
5596
  const x = async (l) => {
5591
5597
  if (it.includes(l.componentKey))
5592
5598
  return {
@@ -5594,185 +5600,185 @@ const it = [
5594
5600
  events: [],
5595
5601
  data: {}
5596
5602
  };
5597
- const w = (l.apiUrl || "").trim();
5598
- if (!w) return;
5599
- const $ = l.apiMethod || "GET", A = l.apiParams || [];
5600
- let B = w, P, J;
5601
- if ($ === "GET") {
5603
+ const S = (l.apiUrl || "").trim();
5604
+ if (!S) return;
5605
+ const E = l.apiMethod || "GET", N = l.apiParams || [];
5606
+ let B = S, L, J;
5607
+ if (E === "GET") {
5602
5608
  const re = new URL(
5603
- w,
5609
+ S,
5604
5610
  typeof window == "undefined" ? "http://localhost" : window.location.origin
5605
5611
  );
5606
- for (const oe of A)
5612
+ for (const oe of N)
5607
5613
  oe.key && re.searchParams.append(oe.key, oe.value);
5608
5614
  B = re.toString();
5609
5615
  } else {
5610
5616
  const re = new URLSearchParams();
5611
- for (const oe of A)
5617
+ for (const oe of N)
5612
5618
  oe.key && re.append(oe.key, oe.value);
5613
- P = re.toString(), J = {
5619
+ L = re.toString(), J = {
5614
5620
  "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
5615
5621
  };
5616
5622
  }
5617
5623
  const te = await fetch(B, {
5618
- method: $,
5624
+ method: E,
5619
5625
  headers: J,
5620
- body: P
5626
+ body: L
5621
5627
  });
5622
5628
  if (!te.ok) throw new ot(te.status, B, te.statusText);
5623
5629
  return te.json();
5624
5630
  }, O = ie(
5625
- () => e ? e.slice() : h.slice(),
5626
- [e, h]
5627
- ), L = fe.useRef(/* @__PURE__ */ new Set());
5631
+ () => e ? e.slice() : g.slice(),
5632
+ [e, g]
5633
+ ), P = fe.useRef(/* @__PURE__ */ new Set());
5628
5634
  ee(() => {
5629
- const l = O.map((w) => ({ s: w, url: (w.apiUrl || "").trim() })).filter(({ url: w }) => !!w);
5635
+ const l = O.map((S) => ({ s: S, url: (S.apiUrl || "").trim() })).filter(({ url: S }) => !!S);
5630
5636
  if (l.length)
5631
- for (const { s: w, url: $ } of l) {
5632
- const A = `${w.id}|${$}`;
5633
- L.current.has(A) || (L.current.add(A), S((B) => ({ ...B, [w.id]: !0 })), v((B) => ({ ...B, [w.id]: "" })), (async () => {
5637
+ for (const { s: S, url: E } of l) {
5638
+ const N = `${S.id}|${E}`;
5639
+ P.current.has(N) || (P.current.add(N), C((B) => ({ ...B, [S.id]: !0 })), I((B) => ({ ...B, [S.id]: "" })), (async () => {
5634
5640
  try {
5635
- const B = await x(w);
5636
- m((P) => ({ ...P, [w.id]: B }));
5641
+ const B = await x(S);
5642
+ p((L) => ({ ...L, [S.id]: B }));
5637
5643
  } catch (B) {
5638
- let P = "Error desconocido";
5639
- B instanceof ot ? P = `Error HTTP ${B.status} (${B.statusText}) en ${B.url}` : B instanceof SyntaxError ? P = "Respuesta no es JSON válido" : B instanceof TypeError ? P = "Fallo de red / CORS / conexión" : typeof B == "string" && (P = B.toString()), v((J) => ({ ...J, [w.id]: P }));
5644
+ let L = "Error desconocido";
5645
+ B instanceof ot ? L = `Error HTTP ${B.status} (${B.statusText}) en ${B.url}` : B instanceof SyntaxError ? L = "Respuesta no es JSON válido" : B instanceof TypeError ? L = "Fallo de red / CORS / conexión" : typeof B == "string" && (L = B.toString()), I((J) => ({ ...J, [S.id]: L }));
5640
5646
  } finally {
5641
- S((B) => ({ ...B, [w.id]: !1 }));
5647
+ C((B) => ({ ...B, [S.id]: !1 }));
5642
5648
  }
5643
5649
  })());
5644
5650
  }
5645
5651
  }, [O]);
5646
5652
  const z = ie(
5647
- () => O.filter((l) => l.visible).filter((l) => k(l, E)).sort((l, w) => l.order - w.order),
5648
- [O, E]
5649
- ), R = (l) => Array.isArray(l) ? l.map((w) => {
5650
- const $ = {};
5651
- for (const A of w.fields || []) {
5652
- const B = (A.type || "string").toLowerCase();
5653
+ () => O.filter((l) => l.visible).filter((l) => $(l, T)).sort((l, S) => l.order - S.order),
5654
+ [O, T]
5655
+ ), R = (l) => Array.isArray(l) ? l.map((S) => {
5656
+ const E = {};
5657
+ for (const N of S.fields || []) {
5658
+ const B = (N.type || "string").toLowerCase();
5653
5659
  if (B === "number") {
5654
- const P = String(A.value || "").trim();
5655
- if (P !== "") {
5656
- const J = Number(P);
5657
- Number.isNaN(J) || ($[A.name] = J);
5660
+ const L = String(N.value || "").trim();
5661
+ if (L !== "") {
5662
+ const J = Number(L);
5663
+ Number.isNaN(J) || (E[N.name] = J);
5658
5664
  }
5659
5665
  } else if (B === "boolean")
5660
- $[A.name] = String(A.value).toLowerCase() === "true";
5666
+ E[N.name] = String(N.value).toLowerCase() === "true";
5661
5667
  else if (B === "function") {
5662
- const P = String(A.value || "").trim();
5663
- if (P)
5668
+ const L = String(N.value || "").trim();
5669
+ if (L)
5664
5670
  try {
5665
- const J = new Function(P);
5666
- $[A.name] = J;
5671
+ const J = new Function(L);
5672
+ E[N.name] = J;
5667
5673
  } catch (J) {
5668
- console.error(`❌ Error creando función en item '${A.name}':`, J);
5674
+ console.error(`❌ Error creando función en item '${N.name}':`, J);
5669
5675
  }
5670
5676
  } else
5671
- $[A.name] = A.value;
5677
+ E[N.name] = N.value;
5672
5678
  }
5673
- return $;
5679
+ return E;
5674
5680
  }) : [], U = (l) => {
5675
- const w = {};
5676
- if (!Array.isArray(l)) return w;
5677
- for (const $ of l) {
5678
- if (!$.name) continue;
5679
- const A = ($.type || "string").toLowerCase();
5680
- if (A === "number") {
5681
- const B = String($.value || "").trim();
5681
+ const S = {};
5682
+ if (!Array.isArray(l)) return S;
5683
+ for (const E of l) {
5684
+ if (!E.name) continue;
5685
+ const N = (E.type || "string").toLowerCase();
5686
+ if (N === "number") {
5687
+ const B = String(E.value || "").trim();
5682
5688
  if (B !== "") {
5683
- const P = Number(B);
5684
- Number.isNaN(P) || (w[$.name] = P);
5689
+ const L = Number(B);
5690
+ Number.isNaN(L) || (S[E.name] = L);
5685
5691
  }
5686
- } else if (A === "boolean")
5687
- w[$.name] = String($.value).toLowerCase() === "true";
5688
- else if (A === "function") {
5689
- const B = String($.value || "").trim();
5692
+ } else if (N === "boolean")
5693
+ S[E.name] = String(E.value).toLowerCase() === "true";
5694
+ else if (N === "function") {
5695
+ const B = String(E.value || "").trim();
5690
5696
  if (B)
5691
5697
  try {
5692
- const P = new Function(B);
5693
- w[$.name] = P;
5694
- } catch (P) {
5695
- console.error(`❌ Error creando función en item '${$.name}':`, P);
5698
+ const L = new Function(B);
5699
+ S[E.name] = L;
5700
+ } catch (L) {
5701
+ console.error(`❌ Error creando función en item '${E.name}':`, L);
5696
5702
  }
5697
5703
  } else
5698
- w[$.name] = $.value;
5704
+ S[E.name] = E.value;
5699
5705
  }
5700
- return w;
5701
- }, W = (l, w, $, A) => {
5702
- const B = $ ? { ...$ } : {}, P = (A || "items").trim() || "items";
5703
- if (w)
5704
- return B[P] = w.arr || [], B;
5706
+ return S;
5707
+ }, W = (l, S, E, N) => {
5708
+ const B = E ? { ...E } : {}, L = (N || "items").trim() || "items";
5709
+ if (S)
5710
+ return B[L] = S.arr || [], B;
5705
5711
  const J = l;
5706
5712
  if (Array.isArray(J))
5707
- return B[P] = J, B;
5713
+ return B[L] = J, B;
5708
5714
  if (J && typeof J == "object") {
5709
5715
  const te = J;
5710
- return Array.isArray(te.lobby) ? (B[P] = te.lobby, B) : Array.isArray(te.items) ? (B[P] = te.items, B) : (B[P] = J, B);
5716
+ return Array.isArray(te.lobby) ? (B[L] = te.lobby, B) : Array.isArray(te.items) ? (B[L] = te.items, B) : (B[L] = J, B);
5711
5717
  }
5712
- return B[P] = [], B;
5718
+ return B[L] = [], B;
5713
5719
  }, G = (l) => {
5714
- var P;
5715
- const w = !!((P = l.apiUrl) != null && P.trim()), $ = w ? g[l.id] : void 0;
5716
- let A = l.props ? { ...l.props } : {};
5720
+ var L;
5721
+ const S = !!((L = l.apiUrl) != null && L.trim()), E = S ? f[l.id] : void 0;
5722
+ let N = l.props ? { ...l.props } : {};
5717
5723
  const B = U(l.manualScalarFields);
5718
5724
  if (it.includes(l.componentKey))
5719
- return { items: $, ...A, ...B };
5720
- if (A = { ...A, ...B }, w)
5721
- A = W($, null, A);
5725
+ return { items: E, ...N, ...B };
5726
+ if (N = { ...N, ...B }, S)
5727
+ N = W(E, null, N);
5722
5728
  else if (l.dataMode === "manual") {
5723
5729
  const J = R(l.manualItems);
5724
- if (A = W(
5730
+ if (N = W(
5725
5731
  null,
5726
5732
  { arr: J, variableName: l.variableName },
5727
- A,
5733
+ N,
5728
5734
  l.variableName
5729
5735
  ), l.variableName2 && l.manualItems2) {
5730
5736
  const te = R(l.manualItems2), re = (l.variableName2 || "items2").trim() || "items2";
5731
- A[re] = te;
5737
+ N[re] = te;
5732
5738
  }
5733
5739
  }
5734
- return A;
5735
- }, C = (l) => {
5736
- const w = l.props ? { ...l.props } : {};
5740
+ return N;
5741
+ }, w = (l) => {
5742
+ const S = l.props ? { ...l.props } : {};
5737
5743
  try {
5738
- Object.assign(w, U(l.manualScalarFields));
5739
- } catch (A) {
5740
- console.error("❌ Error armando scalars vacíos:", l, A);
5744
+ Object.assign(S, U(l.manualScalarFields));
5745
+ } catch (N) {
5746
+ console.error("❌ Error armando scalars vacíos:", l, N);
5741
5747
  }
5742
- const $ = (l.variableName || "items").trim() || "items";
5743
- if (typeof w[$] == "undefined" && (w[$] = []), l.variableName2) {
5744
- const A = (l.variableName2 || "items2").trim() || "items2";
5745
- typeof w[A] == "undefined" && (w[A] = []);
5748
+ const E = (l.variableName || "items").trim() || "items";
5749
+ if (typeof S[E] == "undefined" && (S[E] = []), l.variableName2) {
5750
+ const N = (l.variableName2 || "items2").trim() || "items2";
5751
+ typeof S[N] == "undefined" && (S[N] = []);
5746
5752
  }
5747
- return w;
5748
- }, q = (l) => {
5753
+ return S;
5754
+ }, F = (l) => {
5749
5755
  try {
5750
5756
  return G(l);
5751
- } catch (w) {
5752
- console.error("🔥 ERROR EN buildCompProps:", l, w);
5753
- const $ = T(l);
5754
- if ($ && $ !== l)
5757
+ } catch (S) {
5758
+ console.error("🔥 ERROR EN buildCompProps:", l, S);
5759
+ const E = k(l);
5760
+ if (E && E !== l)
5755
5761
  try {
5756
5762
  return console.warn(
5757
5763
  `[landing] usando fallback local para sección ${l.title} (${l.componentKey})`
5758
- ), G($);
5759
- } catch (A) {
5760
- console.error("🔥 ERROR EN fallback buildCompProps:", $, A);
5764
+ ), G(E);
5765
+ } catch (N) {
5766
+ console.error("🔥 ERROR EN fallback buildCompProps:", E, N);
5761
5767
  }
5762
- return C(l);
5768
+ return w(l);
5763
5769
  }
5764
- }, K = (l, w, $) => /* @__PURE__ */ t("div", { className: `mx-4 p-4 rounded ${{
5770
+ }, K = (l, S, E) => /* @__PURE__ */ t("div", { className: `mx-4 p-4 rounded ${{
5765
5771
  loading: "bg-blue-100 text-blue-800",
5766
5772
  error: "bg-red-100 text-red-800",
5767
5773
  component: "bg-yellow-100 text-yellow-800"
5768
- }[w]}`, children: $ }, l), Y = (l) => {
5774
+ }[S]}`, children: E }, l), Y = (l) => {
5769
5775
  var He;
5770
- const w = l.componentKey, $ = no[w], B = (/* @__PURE__ */ new Set([
5776
+ const S = l.componentKey, E = no[S], B = (/* @__PURE__ */ new Set([
5771
5777
  "OraculoSeccionBanners",
5772
5778
  "OraculoSeccionBonoBienvenida",
5773
5779
  "OraculoSeccionCasinoEnVivo",
5774
5780
  "OraculoSeccionClubOlimpo",
5775
- ...I ? [] : [
5781
+ ..._ ? [] : [
5776
5782
  "OraculoSeccionEventoEnVivo",
5777
5783
  "OraculoSeccionEventoSemana",
5778
5784
  "OraculoSeccionEventoCombinadas",
@@ -5780,22 +5786,22 @@ const it = [
5780
5786
  "OraculoSeccionDestacados",
5781
5787
  "OraculoSeccionCasino"
5782
5788
  ]
5783
- ])).has(l.componentKey), P = I ? 120 : 24, J = (I ? 8 : 5) * 8, te = l.componentKey === "OraculoSeccionCasinoEnVivo", re = {
5789
+ ])).has(l.componentKey), L = _ ? 120 : 24, J = (_ ? 8 : 5) * 8, te = l.componentKey === "OraculoSeccionCasinoEnVivo", re = {
5784
5790
  width: "100%",
5785
5791
  boxSizing: "border-box",
5786
- ...B ? {} : { paddingLeft: P, paddingRight: P },
5792
+ ...B ? {} : { paddingLeft: L, paddingRight: L },
5787
5793
  ...te ? {
5788
5794
  marginTop: -J,
5789
5795
  marginBottom: -J
5790
5796
  } : {}
5791
5797
  };
5792
- if (!$)
5793
- return console.warn(`No hay componente registrado para "${w}"`), K(
5798
+ if (!E)
5799
+ return console.warn(`No hay componente registrado para "${S}"`), K(
5794
5800
  l.id,
5795
5801
  "component",
5796
- `Componente "${w}" no encontrado`
5802
+ `Componente "${S}" no encontrado`
5797
5803
  );
5798
- const oe = !!((He = l.apiUrl) != null && He.trim()), We = oe ? g[l.id] : void 0, Ct = oe ? !!_[l.id] : !1, Ge = oe ? y[l.id] : "";
5804
+ const oe = !!((He = l.apiUrl) != null && He.trim()), We = oe ? f[l.id] : void 0, Ct = oe ? !!v[l.id] : !1, Ge = oe ? y[l.id] : "";
5799
5805
  if (oe) {
5800
5806
  if (Ct && !We)
5801
5807
  return K(
@@ -5804,11 +5810,11 @@ const it = [
5804
5810
  `Cargando datos desde ${l.apiUrl}...`
5805
5811
  );
5806
5812
  if (Ge && !We) {
5807
- const we = T(l);
5813
+ const we = k(l);
5808
5814
  if (we && we.dataMode === "manual")
5809
5815
  try {
5810
- const Re = q(we);
5811
- return /* @__PURE__ */ t("div", { style: re, className: "oraculo-section-wrapper", children: /* @__PURE__ */ t($, { ...Re }) }, l.id);
5816
+ const Re = F(we);
5817
+ return /* @__PURE__ */ t("div", { style: re, className: "oraculo-section-wrapper", children: /* @__PURE__ */ t(E, { ...Re }) }, l.id);
5812
5818
  } catch (Re) {
5813
5819
  console.error(
5814
5820
  "🔥 ERROR renderizando fallback manual de sección:",
@@ -5823,7 +5829,7 @@ const it = [
5823
5829
  );
5824
5830
  }
5825
5831
  }
5826
- const je = q(l), Ot = l.componentKey === "OraculoSeccionClubOlimpo" ? {
5832
+ const je = F(l), Ot = l.componentKey === "OraculoSeccionClubOlimpo" ? {
5827
5833
  ...je,
5828
5834
  user: c.user
5829
5835
  } : je;
@@ -5832,12 +5838,12 @@ const it = [
5832
5838
  {
5833
5839
  style: re,
5834
5840
  className: "oraculo-section-wrapper",
5835
- children: /* @__PURE__ */ t($, { ...Ot })
5841
+ children: /* @__PURE__ */ t(E, { ...Ot })
5836
5842
  },
5837
5843
  l.id
5838
5844
  ) });
5839
5845
  };
5840
- return p && !e ? f ? /* @__PURE__ */ t(f, {}) : /* @__PURE__ */ t("div", { children: "Cargando..." }) : !p && !e && h.length === 0 ? /* @__PURE__ */ t("div", { className: "text-xs text-gray-500", children: "Sin secciones (Firestore)" }) : /* @__PURE__ */ t(It, { children: /* @__PURE__ */ t(bt, { docId: a, moduleId: n, children: /* @__PURE__ */ t(
5846
+ return m && !e ? h ? /* @__PURE__ */ t(h, {}) : /* @__PURE__ */ t("div", { children: "Cargando..." }) : !m && !e && g.length === 0 ? /* @__PURE__ */ t("div", { className: "text-xs text-gray-500", children: "Sin secciones (Firestore)" }) : /* @__PURE__ */ t(It, { children: /* @__PURE__ */ t(bt, { docId: a, moduleId: n, children: /* @__PURE__ */ t(
5841
5847
  Et,
5842
5848
  {
5843
5849
  className: "oli-font",
@@ -5851,11 +5857,11 @@ const it = [
5851
5857
  maxWidth: "100%",
5852
5858
  overflowX: "hidden"
5853
5859
  },
5854
- children: /* @__PURE__ */ t(Oe, { direction: "column", spacing: I ? 8 : 5, useFlexGap: !0, children: z.map((l) => {
5860
+ children: /* @__PURE__ */ t(Oe, { direction: "column", spacing: _ ? 8 : 5, useFlexGap: !0, children: z.map((l) => {
5855
5861
  try {
5856
5862
  return Y(l);
5857
- } catch (w) {
5858
- return console.error("🔥 ERROR EN SECTION:", l, w), null;
5863
+ } catch (S) {
5864
+ return console.error("🔥 ERROR EN SECTION:", l, S), null;
5859
5865
  }
5860
5866
  }) })
5861
5867
  }