oraculo-ui 0.2.6 → 0.2.7

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
@@ -1,5 +1,5 @@
1
1
  import { jsx as t, jsxs as p, Fragment as ae } from "react/jsx-runtime";
2
- import { Link as Je, Box as X, useMediaQuery as Xe, IconButton as ze, Typography as Ye, Stack as ye, Container as gt } from "@mui/material";
2
+ import { Link as Xe, Box as X, useMediaQuery as Ye, IconButton as Pe, Typography as Qe, Stack as ye, Container as gt } from "@mui/material";
3
3
  import ue, { useState as H, useEffect as J, useRef as W, forwardRef as ht, useImperativeHandle as bt, useCallback as xe, useContext as vt, createContext as _t, useMemo as te, useLayoutEffect as yt } from "react";
4
4
  import G from "@mui/material/Skeleton";
5
5
  import { Splide as xt, SplideSlide as wt } from "@splidejs/react-splide";
@@ -9,8 +9,8 @@ import j from "@mui/material/Stack";
9
9
  import { useCaptureInteraction as Q } from "@olimpo/capture-client";
10
10
  import { ChevronLeftRounded as Te, ChevronRightRounded as ke } from "@mui/icons-material";
11
11
  import be from "@mui/material/useMediaQuery";
12
- import Qe from "@mui/icons-material/ChevronLeftRounded";
13
- import et from "@mui/icons-material/ChevronRightRounded";
12
+ import et from "@mui/icons-material/ChevronLeftRounded";
13
+ import tt from "@mui/icons-material/ChevronRightRounded";
14
14
  import { useTheme as St, createTheme as Ct, ThemeProvider as Ot } from "@mui/material/styles";
15
15
  import Et from "@mui/material/CssBaseline";
16
16
  import { onSnapshot as It, doc as Tt } from "firebase/firestore";
@@ -22,51 +22,51 @@ function K({
22
22
  rel: i,
23
23
  type: l = "button",
24
24
  disabled: s = !1,
25
- variant: m = "primary",
26
- size: g,
27
- fullWidth: h = !1,
25
+ variant: u = "primary",
26
+ size: h,
27
+ fullWidth: f = !1,
28
28
  fullHeight: r = !1,
29
- className: d = "",
30
- ariaLabel: c,
31
- leftIcon: f,
32
- rightIcon: _,
33
- iconOnly: I
29
+ className: c = "",
30
+ ariaLabel: m,
31
+ leftIcon: g,
32
+ rightIcon: y,
33
+ iconOnly: T
34
34
  }) {
35
- const R = !!e && e !== !0, L = (!!f ? 1 : 0) + (!!_ ? 1 : 0) == 1, A = I != null ? I : L && !R, N = [
35
+ const C = !!e && e !== !0, A = (!!g ? 1 : 0) + (!!y ? 1 : 0) == 1, R = T != null ? T : A && !C, M = [
36
36
  "orc-btn",
37
- m === "secondary" ? "orc-btn--secondary" : m === "tertiary" ? "orc-btn--tertiary" : "orc-btn--primary",
38
- g ? `orc-btn--${g}` : "",
39
- h ? "orc-btn--full" : "",
37
+ u === "secondary" ? "orc-btn--secondary" : u === "tertiary" ? "orc-btn--tertiary" : "orc-btn--primary",
38
+ h ? `orc-btn--${h}` : "",
39
+ f ? "orc-btn--full" : "",
40
40
  r ? "orc-btn--fullHeight" : "",
41
- A ? "orc-btn--iconOnly" : "",
42
- d
43
- ].filter(Boolean).join(" "), k = /* @__PURE__ */ p(ae, { children: [
44
- f && /* @__PURE__ */ t("span", { className: "orc-btn__icon", children: f }),
45
- !A && /* @__PURE__ */ t("span", { className: "orc-btn__label", children: e }),
46
- _ && /* @__PURE__ */ t("span", { className: "orc-btn__icon", children: _ })
47
- ] }), y = s ? !0 : void 0;
41
+ R ? "orc-btn--iconOnly" : "",
42
+ c
43
+ ].filter(Boolean).join(" "), N = /* @__PURE__ */ p(ae, { children: [
44
+ g && /* @__PURE__ */ t("span", { className: "orc-btn__icon", children: g }),
45
+ !R && /* @__PURE__ */ t("span", { className: "orc-btn__label", children: e }),
46
+ y && /* @__PURE__ */ t("span", { className: "orc-btn__icon", children: y })
47
+ ] }), _ = s ? !0 : void 0;
48
48
  return n ? /* @__PURE__ */ t(
49
- Je,
49
+ Xe,
50
50
  {
51
51
  href: n,
52
52
  target: o,
53
53
  rel: i,
54
- "aria-label": c,
55
- "aria-disabled": y,
56
- tabIndex: y ? -1 : void 0,
57
- className: N,
58
- onClick: y ? (B) => B.preventDefault() : a,
59
- children: k
54
+ "aria-label": m,
55
+ "aria-disabled": _,
56
+ tabIndex: _ ? -1 : void 0,
57
+ className: M,
58
+ onClick: _ ? (L) => L.preventDefault() : a,
59
+ children: N
60
60
  }
61
61
  ) : /* @__PURE__ */ t(
62
62
  "button",
63
63
  {
64
64
  type: l,
65
65
  onClick: a,
66
- disabled: !!y,
67
- "aria-label": c,
68
- className: N,
69
- children: k
66
+ disabled: !!_,
67
+ "aria-label": m,
68
+ className: M,
69
+ children: N
70
70
  }
71
71
  );
72
72
  }
@@ -93,7 +93,7 @@ function se({
93
93
  /* @__PURE__ */ t("h2", { className: "orc-section-title__title", children: e })
94
94
  ] });
95
95
  }
96
- const tt = ({
96
+ const at = ({
97
97
  total: e,
98
98
  active: a,
99
99
  onSelect: n,
@@ -101,28 +101,28 @@ const tt = ({
101
101
  durationMs: i = 5e3
102
102
  }) => {
103
103
  if (e <= 1) return null;
104
- const l = ["orc-dots", o].filter(Boolean).join(" "), [s, m] = H(0);
104
+ const l = ["orc-dots", o].filter(Boolean).join(" "), [s, u] = H(0);
105
105
  return J(() => {
106
- m((g) => g + 1);
107
- }, [a, i]), /* @__PURE__ */ t("div", { className: l, role: "tablist", "aria-label": "Carousel pagination", children: Array.from({ length: e }).map((g, h) => {
108
- const r = h === a;
106
+ u((h) => h + 1);
107
+ }, [a, i]), /* @__PURE__ */ t("div", { className: l, role: "tablist", "aria-label": "Carousel pagination", children: Array.from({ length: e }).map((h, f) => {
108
+ const r = f === a;
109
109
  return /* @__PURE__ */ t("span", { className: "orc-dots__cell", children: /* @__PURE__ */ t(
110
110
  "button",
111
111
  {
112
112
  type: "button",
113
113
  role: "tab",
114
114
  "aria-selected": r,
115
- "aria-label": `Ir al slide ${h + 1}`,
115
+ "aria-label": `Ir al slide ${f + 1}`,
116
116
  className: "orc-dots__dot" + (r ? " orc-dots__dot--active" : ""),
117
117
  style: r ? {
118
118
  "--dot-progress-ms": `${i}ms`
119
119
  } : void 0,
120
120
  onClick: () => {
121
- r && m((d) => d + 1), n == null || n(h);
121
+ r && u((c) => c + 1), n == null || n(f);
122
122
  }
123
123
  },
124
- r ? `a-${h}-${s}` : `i-${h}`
125
- ) }, h);
124
+ r ? `a-${f}-${s}` : `i-${f}`
125
+ ) }, f);
126
126
  }) });
127
127
  };
128
128
  function re({
@@ -147,7 +147,7 @@ function re({
147
147
  }
148
148
  );
149
149
  }
150
- function Pe({ src: e, alt: a }) {
150
+ function Ue({ src: e, alt: a }) {
151
151
  return /* @__PURE__ */ t(
152
152
  X,
153
153
  {
@@ -266,13 +266,13 @@ function At({ title: e, subtitle: a, live: n = !1, time: o = "" }) {
266
266
  const Rt = "oraculo__OraculoEventLabel-module__label___c64Xw", Ft = {
267
267
  label: Rt
268
268
  };
269
- function at({ text: e }) {
269
+ function nt({ text: e }) {
270
270
  return /* @__PURE__ */ t("span", { className: Ft.label, children: e });
271
271
  }
272
272
  const zt = "oraculo__OraculoEventLeague-module__container___rdk4F", Pt = {
273
273
  container: zt
274
274
  };
275
- function nt({ title: e }) {
275
+ function ot({ title: e }) {
276
276
  return /* @__PURE__ */ t("div", { className: Pt.container, children: e.toUpperCase() });
277
277
  }
278
278
  const Ut = "oraculo__OraculoEventScore-module__scoreWrapper___fWwEr", qt = "oraculo__OraculoEventScore-module__name___r4uL6", Vt = "oraculo__OraculoEventScore-module__score___Xl03M", Dt = "oraculo__OraculoEventScore-module__normal___cCNFz", Wt = "oraculo__OraculoEventScore-module__small___fVt8E", fe = {
@@ -282,7 +282,7 @@ const Ut = "oraculo__OraculoEventScore-module__scoreWrapper___fWwEr", qt = "orac
282
282
  normal: Dt,
283
283
  small: Wt
284
284
  };
285
- function ot({ text: e, name: a, size: n = "normal" }) {
285
+ function it({ text: e, name: a, size: n = "normal" }) {
286
286
  return /* @__PURE__ */ p(
287
287
  "div",
288
288
  {
@@ -386,21 +386,21 @@ function aa(e, a, {
386
386
  const l = W(0), s = W(0);
387
387
  J(() => {
388
388
  if (!n) return;
389
- const m = e.current;
390
- if (!m) return;
391
- const g = (h) => {
389
+ const u = e.current;
390
+ if (!u) return;
391
+ const h = (f) => {
392
392
  const r = a.current;
393
393
  if (!r || !r.go) return;
394
- const { deltaX: d, deltaY: c } = h;
395
- if (Math.abs(d) <= Math.abs(c)) return;
396
- h.preventDefault(), l.current += d;
397
- const f = Date.now();
398
- if (f - s.current < i || Math.abs(l.current) < o) return;
399
- const _ = l.current > 0 ? ">" : "<";
400
- l.current = 0, s.current = f, r.go(_);
394
+ const { deltaX: c, deltaY: m } = f;
395
+ if (Math.abs(c) <= Math.abs(m)) return;
396
+ f.preventDefault(), l.current += c;
397
+ const g = Date.now();
398
+ if (g - s.current < i || Math.abs(l.current) < o) return;
399
+ const y = l.current > 0 ? ">" : "<";
400
+ l.current = 0, s.current = g, r.go(y);
401
401
  };
402
- return m.addEventListener("wheel", g, { passive: !1 }), () => {
403
- m.removeEventListener("wheel", g), l.current = 0;
402
+ return u.addEventListener("wheel", h, { passive: !1 }), () => {
403
+ u.removeEventListener("wheel", h), l.current = 0;
404
404
  };
405
405
  }, [n, o, i, e, a]);
406
406
  }
@@ -418,46 +418,46 @@ const na = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", oa = "ora
418
418
  breakpoints: i,
419
419
  options: l = {},
420
420
  className: s = "",
421
- onMove: m,
422
- useIndexAsKey: g = !1,
423
- enableHorizontalWheel: h = !0,
421
+ onMove: u,
422
+ useIndexAsKey: h = !1,
423
+ enableHorizontalWheel: f = !0,
424
424
  showRightGradient: r = !1
425
- }, d) => {
426
- const c = W(null), f = W(null), _ = W(e.length), I = W(null), R = W(null);
427
- aa(f, c, {
428
- enabled: h
429
- }), bt(d, () => ({
425
+ }, c) => {
426
+ const m = W(null), g = W(null), y = W(e.length), T = W(null), C = W(null);
427
+ aa(g, m, {
428
+ enabled: f
429
+ }), bt(c, () => ({
430
430
  next: () => {
431
- var y;
432
- return (y = c.current) == null ? void 0 : y.go(">");
431
+ var _;
432
+ return (_ = m.current) == null ? void 0 : _.go(">");
433
433
  },
434
434
  prev: () => {
435
- var y;
436
- return (y = c.current) == null ? void 0 : y.go("<");
435
+ var _;
436
+ return (_ = m.current) == null ? void 0 : _.go("<");
437
437
  },
438
- go: (y) => {
439
- var B;
440
- return (B = c.current) == null ? void 0 : B.go(y);
438
+ go: (_) => {
439
+ var L;
440
+ return (L = m.current) == null ? void 0 : L.go(_);
441
441
  }
442
442
  }));
443
- const T = (y) => {
444
- var E;
445
- const B = y.Components.Slides, z = y.Components.Controller, O = y.root.querySelector(".splide__track"), C = (E = O == null ? void 0 : O.clientWidth) != null ? E : 0, P = z.getIndex(), q = B.getLength();
443
+ const I = (_) => {
444
+ var $;
445
+ const L = _.Components.Slides, z = _.Components.Controller, E = _.root.querySelector(".splide__track"), O = ($ = E == null ? void 0 : E.clientWidth) != null ? $ : 0, P = z.getIndex(), q = L.getLength();
446
446
  let b = 0, F = P;
447
- for (let u = P; u < q; u++) {
448
- const x = B.getAt(u);
449
- if (!x || (b += x.slide.offsetWidth, b > C)) break;
450
- F = u;
447
+ for (let d = P; d < q; d++) {
448
+ const x = L.getAt(d);
449
+ if (!x || (b += x.slide.offsetWidth, b > O)) break;
450
+ F = d;
451
451
  }
452
452
  return { visibleStart: P, visibleEnd: F };
453
- }, $ = (y) => {
454
- const B = y.root.querySelector(".splide__track"), z = y.root.querySelector(".splide__list");
455
- return !B || !z ? !1 : z.scrollWidth > B.clientWidth + 1;
456
- }, L = xe((y) => {
457
- var F, E;
458
- const z = y.Components.Slides.getLength();
459
- if (!$(y)) {
460
- m == null || m({
453
+ }, k = (_) => {
454
+ const L = _.root.querySelector(".splide__track"), z = _.root.querySelector(".splide__list");
455
+ return !L || !z ? !1 : z.scrollWidth > L.clientWidth + 1;
456
+ }, A = xe((_) => {
457
+ var F, $;
458
+ const z = _.Components.Slides.getLength();
459
+ if (!k(_)) {
460
+ u == null || u({
461
461
  index: 0,
462
462
  isStart: !0,
463
463
  isEnd: !0,
@@ -467,37 +467,37 @@ const na = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", oa = "ora
467
467
  });
468
468
  return;
469
469
  }
470
- const { visibleStart: O, visibleEnd: C } = T(y), P = O === 0, q = C === z - 1;
471
- r && ((F = I.current) == null || F.style.setProperty("--gradient-opacity", P ? "0" : "1"), (E = R.current) == null || E.style.setProperty("--gradient-opacity", q ? "0" : "1"));
472
- const b = y.Components.Controller.getIndex();
473
- m == null || m({
470
+ const { visibleStart: E, visibleEnd: O } = I(_), P = E === 0, q = O === z - 1;
471
+ r && ((F = T.current) == null || F.style.setProperty("--gradient-opacity", P ? "0" : "1"), ($ = C.current) == null || $.style.setProperty("--gradient-opacity", q ? "0" : "1"));
472
+ const b = _.Components.Controller.getIndex();
473
+ u == null || u({
474
474
  index: b,
475
475
  isStart: P,
476
476
  isEnd: q,
477
477
  total: z,
478
- visibleStart: O,
479
- visibleEnd: C
478
+ visibleStart: E,
479
+ visibleEnd: O
480
480
  });
481
- }, [m]);
481
+ }, [u]);
482
482
  ue.useEffect(() => {
483
483
  var z;
484
- const y = (z = c.current) == null ? void 0 : z.splide;
485
- if (!y) return;
486
- const B = _.current !== e.length;
487
- _.current = e.length, B && requestAnimationFrame(() => {
488
- y.refresh(), L(y);
484
+ const _ = (z = m.current) == null ? void 0 : z.splide;
485
+ if (!_) return;
486
+ const L = y.current !== e.length;
487
+ y.current = e.length, L && requestAnimationFrame(() => {
488
+ _.refresh(), A(_);
489
489
  });
490
- }, [e.length, L]);
491
- const A = xe(() => {
492
- var B;
493
- const y = (B = c.current) == null ? void 0 : B.splide;
494
- y && (y.go(0, !1), L(y));
495
- }, [L]), N = xe(
496
- (y) => {
497
- L(y);
490
+ }, [e.length, A]);
491
+ const R = xe(() => {
492
+ var L;
493
+ const _ = (L = m.current) == null ? void 0 : L.splide;
494
+ _ && (_.go(0, !1), A(_));
495
+ }, [A]), M = xe(
496
+ (_) => {
497
+ A(_);
498
498
  },
499
- [L]
500
- ), k = {
499
+ [A]
500
+ ), N = {
501
501
  type: "slide",
502
502
  trimSpace: !1,
503
503
  drag: !0,
@@ -510,26 +510,26 @@ const na = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", oa = "ora
510
510
  gap: o,
511
511
  breakpoints: i,
512
512
  ...l,
513
- ...h ? { wheel: !1 } : {}
513
+ ...f ? { wheel: !1 } : {}
514
514
  };
515
515
  return /* @__PURE__ */ p(
516
516
  "div",
517
517
  {
518
- ref: f,
518
+ ref: g,
519
519
  className: s,
520
520
  style: { width: "100%", position: "relative", height: "100%" },
521
521
  children: [
522
522
  /* @__PURE__ */ t(
523
523
  la,
524
524
  {
525
- ref: c,
526
- options: k,
527
- onMove: L,
528
- onMounted: N,
529
- onResize: A,
530
- children: e.map((y, B) => {
525
+ ref: m,
526
+ options: N,
527
+ onMove: A,
528
+ onMounted: M,
529
+ onResize: R,
530
+ children: e.map((_, L) => {
531
531
  var z;
532
- return /* @__PURE__ */ t(sa, { children: a(y, B) }, g ? B : (z = y.id) != null ? z : B);
532
+ return /* @__PURE__ */ t(sa, { children: a(_, L) }, h ? L : (z = _.id) != null ? z : L);
533
533
  })
534
534
  }
535
535
  ),
@@ -537,7 +537,7 @@ const na = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", oa = "ora
537
537
  /* @__PURE__ */ t(
538
538
  "div",
539
539
  {
540
- ref: I,
540
+ ref: T,
541
541
  className: `${he.gradientOverlay} ${he.left}`,
542
542
  style: { "--gradient-opacity": "0" },
543
543
  children: /* @__PURE__ */ p(
@@ -562,7 +562,7 @@ const na = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", oa = "ora
562
562
  /* @__PURE__ */ t(
563
563
  "div",
564
564
  {
565
- ref: R,
565
+ ref: C,
566
566
  className: `${he.gradientOverlay} ${he.right}`,
567
567
  style: { "--gradient-opacity": "1" },
568
568
  children: /* @__PURE__ */ p(
@@ -595,8 +595,8 @@ const na = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", oa = "ora
595
595
  size: n = "sm",
596
596
  fillParent: o = !1
597
597
  }) => {
598
- const i = n === "lg" ? { w: 280, h: 352 } : { w: 152, h: 168 }, l = (m) => {
599
- m.stopPropagation(), a == null || a();
598
+ const i = n === "lg" ? { w: 280, h: 352 } : { w: 152, h: 168 }, l = (u) => {
599
+ u.stopPropagation(), a == null || a();
600
600
  }, s = o ? { width: "100%", height: "100%" } : { width: `${i.w}px`, height: `${i.h}px` };
601
601
  return /* @__PURE__ */ p(
602
602
  U,
@@ -686,16 +686,16 @@ function ca({
686
686
  md: { w: 186, h: 264, r: 22.6, font: 64 }
687
687
  }
688
688
  }) {
689
- var d, c, f, _;
690
- const l = (I, R) => {
691
- var T, $, L, A;
689
+ var c, m, g, y;
690
+ const l = (T, C) => {
691
+ var I, k, A, R;
692
692
  return {
693
- xs: ($ = (T = i.xs) == null ? void 0 : T[I]) != null ? $ : R,
694
- md: (A = (L = i.md) == null ? void 0 : L[I]) != null ? A : R
693
+ xs: (k = (I = i.xs) == null ? void 0 : I[T]) != null ? k : C,
694
+ md: (R = (A = i.md) == null ? void 0 : A[T]) != null ? R : C
695
695
  };
696
- }, s = l("w", 186), m = l("h", 264), g = l("r", 22.6), h = l("font", 64), r = {
697
- xs: Math.round(((c = (d = i.xs) == null ? void 0 : d.font) != null ? c : 64) * 0.28),
698
- md: Math.round(((_ = (f = i.md) == null ? void 0 : f.font) != null ? _ : 64) * 0.28)
696
+ }, s = l("w", 186), u = l("h", 264), h = l("r", 22.6), f = l("font", 64), r = {
697
+ xs: Math.round(((m = (c = i.xs) == null ? void 0 : c.font) != null ? m : 64) * 0.28),
698
+ md: Math.round(((y = (g = i.md) == null ? void 0 : g.font) != null ? y : 64) * 0.28)
699
699
  };
700
700
  return /* @__PURE__ */ p(
701
701
  U,
@@ -705,10 +705,10 @@ function ca({
705
705
  width: "100%",
706
706
  maxWidth: { xs: `${s.xs}px`, md: `${s.md}px` },
707
707
  aspectRatio: {
708
- xs: `${s.xs}/${m.xs}`,
709
- md: `${s.md}/${m.md}`
708
+ xs: `${s.xs}/${u.xs}`,
709
+ md: `${s.md}/${u.md}`
710
710
  },
711
- borderRadius: { xs: `${g.xs}px`, md: `${g.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: `${r.xs}px`, md: `${r.md}px` },
@@ -771,8 +771,8 @@ function ca({
771
771
  },
772
772
  fontFamily: '"secondary", sans-serif',
773
773
  fontSize: {
774
- xs: `${h.xs}px`,
775
- md: `${h.md}px`
774
+ xs: `${f.xs}px`,
775
+ md: `${f.md}px`
776
776
  },
777
777
  lineHeight: 1,
778
778
  color: "#3CC666",
@@ -881,7 +881,7 @@ const da = ({
881
881
  }
882
882
  }
883
883
  }
884
- ) }), it = ({
884
+ ) }), rt = ({
885
885
  items: e,
886
886
  layout: a = "grid",
887
887
  onClick: n,
@@ -890,7 +890,7 @@ const da = ({
890
890
  }) => {
891
891
  var l, s;
892
892
  if (a === "mosaic") {
893
- const m = e[0], g = e.slice(1, 5);
893
+ const u = e[0], h = e.slice(1, 5);
894
894
  return /* @__PURE__ */ p(
895
895
  U,
896
896
  {
@@ -925,19 +925,19 @@ const da = ({
925
925
  overflow: "hidden",
926
926
  borderRadius: 2
927
927
  },
928
- children: o ? /* @__PURE__ */ t(Me, {}) : m && /* @__PURE__ */ t(
928
+ children: o ? /* @__PURE__ */ t(Me, {}) : u && /* @__PURE__ */ t(
929
929
  we,
930
930
  {
931
- imageUrl: `https://olimpo.bet${(s = (l = m.background) != null ? l : m.imageUrl) != null ? s : ""}`,
931
+ imageUrl: `https://olimpo.bet${(s = (l = u.background) != null ? l : u.imageUrl) != null ? s : ""}`,
932
932
  size: "lg",
933
933
  fillParent: !0,
934
- onClick: () => n == null ? void 0 : n(m, 0)
934
+ onClick: () => n == null ? void 0 : n(u, 0)
935
935
  }
936
936
  )
937
937
  }
938
938
  ),
939
- (o ? Array.from({ length: 4 }) : g).map((h, r) => {
940
- var d, c;
939
+ (o ? Array.from({ length: 4 }) : h).map((f, r) => {
940
+ var c, m;
941
941
  return /* @__PURE__ */ t(
942
942
  U,
943
943
  {
@@ -950,14 +950,14 @@ const da = ({
950
950
  children: o ? /* @__PURE__ */ t(Me, {}) : /* @__PURE__ */ t(
951
951
  we,
952
952
  {
953
- imageUrl: `https://olimpo.bet${(c = (d = h.background) != null ? d : h.imageUrl) != null ? c : ""}`,
953
+ imageUrl: `https://olimpo.bet${(m = (c = f.background) != null ? c : f.imageUrl) != null ? m : ""}`,
954
954
  size: "sm",
955
955
  fillParent: !0,
956
- onClick: () => n == null ? void 0 : n(h, r + 1)
956
+ onClick: () => n == null ? void 0 : n(f, r + 1)
957
957
  }
958
958
  )
959
959
  },
960
- o ? `sk-${r}` : h.id
960
+ o ? `sk-${r}` : f.id
961
961
  );
962
962
  })
963
963
  ]
@@ -980,8 +980,8 @@ const da = ({
980
980
  gap: `${Ne}px`,
981
981
  gridAutoFlow: "column"
982
982
  },
983
- children: (o ? Array.from({ length: i }) : e).map((m, g) => {
984
- var h, r, d;
983
+ children: (o ? Array.from({ length: i }) : e).map((u, h) => {
984
+ var f, r, c;
985
985
  return /* @__PURE__ */ t(
986
986
  U,
987
987
  {
@@ -989,19 +989,19 @@ const da = ({
989
989
  children: o ? /* @__PURE__ */ t(Me, {}) : /* @__PURE__ */ t(
990
990
  we,
991
991
  {
992
- imageUrl: `https://olimpo.bet${(r = (h = m.background) != null ? h : m.imageUrl) != null ? r : ""}`,
992
+ imageUrl: `https://olimpo.bet${(r = (f = u.background) != null ? f : u.imageUrl) != null ? r : ""}`,
993
993
  size: "sm",
994
994
  fillParent: !0,
995
- onClick: () => n == null ? void 0 : n(m, g)
995
+ onClick: () => n == null ? void 0 : n(u, h)
996
996
  }
997
997
  )
998
998
  },
999
- o ? `sk-${g}` : (d = m.id) != null ? d : g
999
+ o ? `sk-${h}` : (c = u.id) != null ? c : h
1000
1000
  );
1001
1001
  })
1002
1002
  }
1003
1003
  );
1004
- }, Ue = ({
1004
+ }, qe = ({
1005
1005
  title: e,
1006
1006
  amount: a,
1007
1007
  subtitle: n,
@@ -1009,20 +1009,20 @@ const da = ({
1009
1009
  onButtonClick: i,
1010
1010
  backgroundImage: l,
1011
1011
  alt: s,
1012
- className: m = "",
1013
- variant: g = "small"
1012
+ className: u = "",
1013
+ variant: h = "small"
1014
1014
  }) => {
1015
- const h = a ? a.slice(0, 2) : "", r = a ? a.slice(2) : "", d = g === "large";
1015
+ const f = a ? a.slice(0, 2) : "", r = a ? a.slice(2) : "", c = h === "large";
1016
1016
  return /* @__PURE__ */ p(
1017
1017
  U,
1018
1018
  {
1019
- className: m,
1019
+ className: u,
1020
1020
  sx: {
1021
1021
  position: "relative",
1022
1022
  width: "100%",
1023
1023
  maxWidth: {
1024
1024
  xs: 328,
1025
- md: d ? 618 : 456
1025
+ md: c ? 618 : 456
1026
1026
  },
1027
1027
  mx: "auto"
1028
1028
  },
@@ -1035,7 +1035,7 @@ const da = ({
1035
1035
  width: "100%",
1036
1036
  aspectRatio: {
1037
1037
  xs: "328 / 188",
1038
- md: d ? "618 / 346" : "456 / 272"
1038
+ md: c ? "618 / 346" : "456 / 272"
1039
1039
  },
1040
1040
  borderRadius: "14px",
1041
1041
  overflow: "hidden"
@@ -1118,7 +1118,7 @@ const da = ({
1118
1118
  {
1119
1119
  component: "span",
1120
1120
  sx: { fontSize: { xs: 35, md: 48 }, mr: 0.5 },
1121
- children: h
1121
+ children: f
1122
1122
  }
1123
1123
  ),
1124
1124
  /* @__PURE__ */ t(
@@ -1220,7 +1220,7 @@ function wa() {
1220
1220
  function Sa() {
1221
1221
  window.location.href = "/deportes#specials";
1222
1222
  }
1223
- async function rt(e) {
1223
+ async function lt(e) {
1224
1224
  return await (await fetch("https://api.mktolimpo.com/api/jerseys/search", {
1225
1225
  method: "POST",
1226
1226
  headers: {
@@ -1231,104 +1231,104 @@ async function rt(e) {
1231
1231
  })
1232
1232
  })).json();
1233
1233
  }
1234
- function lt(e, a = 250) {
1234
+ function st(e, a = 250) {
1235
1235
  const [n, o] = H(e);
1236
1236
  return J(() => {
1237
1237
  const i = setTimeout(() => o(e), a);
1238
1238
  return () => clearTimeout(i);
1239
1239
  }, [e, a]), n;
1240
1240
  }
1241
- const st = _t(void 0), Le = ({ children: e, docId: a }) => {
1241
+ const ct = _t(void 0), Le = ({ children: e, docId: a }) => {
1242
1242
  const n = ue.useMemo(() => ({ docId: a }), [a]);
1243
- return /* @__PURE__ */ t(st.Provider, { value: n, children: e });
1243
+ return /* @__PURE__ */ t(ct.Provider, { value: n, children: e });
1244
1244
  }, ee = () => {
1245
- const e = vt(st);
1245
+ const e = vt(ct);
1246
1246
  if (!e)
1247
1247
  throw new Error("useDocId debe usarse dentro de DocIdProvider");
1248
1248
  return e.docId;
1249
1249
  };
1250
1250
  function Ca({ coupon: e }) {
1251
- var h;
1251
+ var f;
1252
1252
  const a = Q(), n = ee();
1253
1253
  function o(r) {
1254
- var f, _;
1255
- const d = [], c = Array.from(
1254
+ var g, y;
1255
+ const c = [], m = Array.from(
1256
1256
  new Map(
1257
- ((f = r == null ? void 0 : r.events) != null ? f : []).filter(Boolean).map((I) => [I.id, I])
1257
+ ((g = r == null ? void 0 : r.events) != null ? g : []).filter(Boolean).map((T) => [T.id, T])
1258
1258
  ).values()
1259
1259
  );
1260
- return c.forEach((I) => {
1261
- var L;
1262
- const R = (L = I.betoffers) != null ? L : [], T = I.homeName, $ = I.awayName;
1263
- R.forEach((A) => {
1264
- var B, z, O, C, P, q, b;
1265
- if (!((B = A == null ? void 0 : A.outcomes) != null && B.length)) return;
1266
- const N = A.outcomes[0];
1267
- if (!N) return;
1268
- let k = "";
1269
- const y = N != null && N.line ? N.line / 1e3 : "";
1270
- ["Más de", "Mas de", "Over"].includes(N.label) ? (k = `Más de ${y}`, N.participant && (k = `${N.participant} - ${k}`)) : ["Menos de", "Menos", "Under"].includes(N.label) ? (k = `Menos de ${y}`, N.participant && (k = `${N.participant} - ${k}`)) : ["Sí", "No"].includes(N.label) ? (k = N.label, N.participant && (k = `${N.participant} - ${k}`)) : ["1X", "12", "X2"].includes(N.label) ? (N.label === "1X" && (k = `${T} o Empate`), N.label === "12" && (k = `${T} o ${$}`), N.label === "X2" && (k = `${$} o Empate`)) : (k = (O = (z = N.participant) != null ? z : N.label) != null ? O : "", y !== "" && k === N.label && (k = `${N.label} ${y}`)), d.push({
1271
- id: N.id,
1272
- value: k,
1273
- label: (P = (C = A.criterion) == null ? void 0 : C.label) != null ? P : "",
1274
- odds: (q = N.odds) != null ? q : 0,
1275
- position: (b = N.position) != null ? b : 0,
1276
- eventId: I.id
1260
+ return m.forEach((T) => {
1261
+ var A;
1262
+ const C = (A = T.betoffers) != null ? A : [], I = T.homeName, k = T.awayName;
1263
+ C.forEach((R) => {
1264
+ var L, z, E, O, P, q, b;
1265
+ if (!((L = R == null ? void 0 : R.outcomes) != null && L.length)) return;
1266
+ const M = R.outcomes[0];
1267
+ if (!M) return;
1268
+ let N = "";
1269
+ const _ = M != null && M.line ? M.line / 1e3 : "";
1270
+ ["Más de", "Mas de", "Over"].includes(M.label) ? (N = `Más de ${_}`, M.participant && (N = `${M.participant} - ${N}`)) : ["Menos de", "Menos", "Under"].includes(M.label) ? (N = `Menos de ${_}`, M.participant && (N = `${M.participant} - ${N}`)) : ["Sí", "No"].includes(M.label) ? (N = M.label, M.participant && (N = `${M.participant} - ${N}`)) : ["1X", "12", "X2"].includes(M.label) ? (M.label === "1X" && (N = `${I} o Empate`), M.label === "12" && (N = `${I} o ${k}`), M.label === "X2" && (N = `${k} o Empate`)) : (N = (E = (z = M.participant) != null ? z : M.label) != null ? E : "", _ !== "" && N === M.label && (N = `${M.label} ${_}`)), c.push({
1271
+ id: M.id,
1272
+ value: N,
1273
+ label: (P = (O = R.criterion) == null ? void 0 : O.label) != null ? P : "",
1274
+ odds: (q = M.odds) != null ? q : 0,
1275
+ position: (b = M.position) != null ? b : 0,
1276
+ eventId: T.id
1277
1277
  });
1278
1278
  });
1279
1279
  }), {
1280
- outcomes: d.sort((I, R) => I.position - R.position),
1281
- total: Number((_ = r == null ? void 0 : r.combinadoTotal) != null ? _ : 0).toLocaleString("en-US", {
1280
+ outcomes: c.sort((T, C) => T.position - C.position),
1281
+ total: Number((y = r == null ? void 0 : r.combinadoTotal) != null ? y : 0).toLocaleString("en-US", {
1282
1282
  minimumFractionDigits: 2,
1283
1283
  maximumFractionDigits: 2
1284
1284
  }),
1285
- events: c
1285
+ events: m
1286
1286
  };
1287
1287
  }
1288
1288
  function i(r) {
1289
1289
  if (!r || !Array.isArray(r.events) || r.events.length === 0)
1290
1290
  return "/deportes#home";
1291
- const d = r.events;
1292
- if (d.length === 1)
1293
- return `/deportes#event/${d[0].id}`;
1294
- const c = d[0].groupId;
1295
- if (d.every((_) => _.groupId === c)) {
1296
- const _ = d[0].path;
1297
- if (Array.isArray(_) && _.length > 0)
1298
- return `/deportes#sports-hub/${_.map((R) => R.termKey).filter(Boolean).join("/")}`;
1291
+ const c = r.events;
1292
+ if (c.length === 1)
1293
+ return `/deportes#event/${c[0].id}`;
1294
+ const m = c[0].groupId;
1295
+ if (c.every((y) => y.groupId === m)) {
1296
+ const y = c[0].path;
1297
+ if (Array.isArray(y) && y.length > 0)
1298
+ return `/deportes#sports-hub/${y.map((C) => C.termKey).filter(Boolean).join("/")}`;
1299
1299
  }
1300
1300
  return "/deportes#home";
1301
1301
  }
1302
- const l = (r, d) => {
1303
- const c = Array.isArray(r) ? r : [r], f = Array.from(
1302
+ const l = (r, c) => {
1303
+ const m = Array.isArray(r) ? r : [r], g = Array.from(
1304
1304
  new Set(
1305
- s.outcomes.map((R) => {
1306
- var $;
1307
- const T = g.get(Number(R.eventId));
1308
- return ($ = T == null ? void 0 : T.name) != null ? $ : "";
1305
+ s.outcomes.map((C) => {
1306
+ var k;
1307
+ const I = h.get(Number(C.eventId));
1308
+ return (k = I == null ? void 0 : I.name) != null ? k : "";
1309
1309
  })
1310
1310
  )
1311
- ).filter(Boolean), _ = f.length > 0 ? f.join(" + ") : JSON.stringify(c), I = d ? `${_} - Cuota: ${d}` : _;
1311
+ ).filter(Boolean), y = g.length > 0 ? g.join(" + ") : JSON.stringify(m), T = c ? `${y} - Cuota: ${c}` : y;
1312
1312
  a({
1313
1313
  element: "evento_semana_outcome",
1314
- label: `Landing: ${n} - OraculoEventCombinadasCard - Click: ${I}`,
1314
+ label: `Landing: ${n} - OraculoEventCombinadasCard - Click: ${T}`,
1315
1315
  target: "/deportes#in-play",
1316
1316
  event_type: "click",
1317
1317
  module_id: 301,
1318
1318
  metadata: {
1319
1319
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
1320
1320
  },
1321
- tags: { section: "OraculoEventCombinadasCard", outcomes: I }
1321
+ tags: { section: "OraculoEventCombinadasCard", outcomes: T }
1322
1322
  }), Re(i(e), r);
1323
1323
  };
1324
- if (!((h = e == null ? void 0 : e.events) != null && h.length)) return null;
1325
- const s = o(e), m = s.outcomes.reduce((r, d) => (r[d.eventId] || (r[d.eventId] = []), r[d.eventId].push(d), r), {}), g = new Map(
1324
+ if (!((f = e == null ? void 0 : e.events) != null && f.length)) return null;
1325
+ const s = o(e), u = s.outcomes.reduce((r, c) => (r[c.eventId] || (r[c.eventId] = []), r[c.eventId].push(c), r), {}), h = new Map(
1326
1326
  s.events.map((r) => [r.id, r])
1327
1327
  );
1328
1328
  return /* @__PURE__ */ p("div", { className: ne.card, children: [
1329
- /* @__PURE__ */ t("div", { className: ne.combinadas, children: /* @__PURE__ */ t("div", { className: ne.combinadasScroll, children: /* @__PURE__ */ t(j, { direction: "column", spacing: 1.5, useFlexGap: !0, children: Object.entries(m).reverse().map(([r, d]) => {
1330
- const c = g.get(Number(r));
1331
- return c ? /* @__PURE__ */ p(
1329
+ /* @__PURE__ */ t("div", { className: ne.combinadas, children: /* @__PURE__ */ t("div", { className: ne.combinadasScroll, children: /* @__PURE__ */ t(j, { direction: "column", spacing: 1.5, useFlexGap: !0, children: Object.entries(u).reverse().map(([r, c]) => {
1330
+ const m = h.get(Number(r));
1331
+ return m ? /* @__PURE__ */ p(
1332
1332
  j,
1333
1333
  {
1334
1334
  direction: "column",
@@ -1338,7 +1338,7 @@ function Ca({ coupon: e }) {
1338
1338
  /* @__PURE__ */ t(
1339
1339
  se,
1340
1340
  {
1341
- title: c.name,
1341
+ title: m.name,
1342
1342
  iconUrl: "/assets/img/home/Combinadas/pelota.png",
1343
1343
  size: "xs"
1344
1344
  }
@@ -1350,17 +1350,17 @@ function Ca({ coupon: e }) {
1350
1350
  src: "/assets/img/home/Combinadas/line.png"
1351
1351
  }
1352
1352
  ),
1353
- d.map((f, _) => /* @__PURE__ */ p("div", { className: ne.apuestaItem, children: [
1353
+ c.map((g, y) => /* @__PURE__ */ p("div", { className: ne.apuestaItem, children: [
1354
1354
  /* @__PURE__ */ p("div", { className: ne.lineContainer, children: [
1355
1355
  /* @__PURE__ */ t("div", { className: ne.circle }),
1356
- _ < d.length - 1 && /* @__PURE__ */ t("div", { className: ne.line })
1356
+ y < c.length - 1 && /* @__PURE__ */ t("div", { className: ne.line })
1357
1357
  ] }),
1358
1358
  /* @__PURE__ */ p("div", { className: ne.apuestaText, children: [
1359
- /* @__PURE__ */ t("strong", { children: f.value }),
1359
+ /* @__PURE__ */ t("strong", { children: g.value }),
1360
1360
  " | ",
1361
- f.label
1361
+ g.label
1362
1362
  ] })
1363
- ] }, `${r}-${_}`))
1363
+ ] }, `${r}-${y}`))
1364
1364
  ]
1365
1365
  },
1366
1366
  r
@@ -1414,54 +1414,54 @@ function Oa({
1414
1414
  rel: i,
1415
1415
  type: l = "button",
1416
1416
  disabled: s = !1,
1417
- variant: m = "primary",
1418
- size: g,
1419
- fullWidth: h = !1,
1417
+ variant: u = "primary",
1418
+ size: h,
1419
+ fullWidth: f = !1,
1420
1420
  fullHeight: r = !1,
1421
- className: d = "",
1422
- ariaLabel: c,
1423
- leftIcon: f,
1424
- rightIcon: _,
1425
- iconOnly: I
1421
+ className: c = "",
1422
+ ariaLabel: m,
1423
+ leftIcon: g,
1424
+ rightIcon: y,
1425
+ iconOnly: T
1426
1426
  }) {
1427
- const R = !!e && e !== !0, L = (!!f ? 1 : 0) + (!!_ ? 1 : 0) == 1, A = I != null ? I : L && !R, N = [
1427
+ const C = !!e && e !== !0, A = (!!g ? 1 : 0) + (!!y ? 1 : 0) == 1, R = T != null ? T : A && !C, M = [
1428
1428
  oe["orc-btn"],
1429
1429
  // base
1430
- oe[`orc-btn--${m}`],
1430
+ oe[`orc-btn--${u}`],
1431
1431
  // variant primary/secondary/tertiary
1432
- g ? oe[`orc-btn--${g}`] : "",
1432
+ h ? oe[`orc-btn--${h}`] : "",
1433
1433
  // sm / md / lg
1434
- h ? oe["orc-btn--full"] : "",
1434
+ f ? oe["orc-btn--full"] : "",
1435
1435
  r ? oe["orc-btn--fullHeight"] : "",
1436
- A ? oe["orc-btn--iconOnly"] : "",
1437
- d
1438
- ].filter(Boolean).join(" "), k = /* @__PURE__ */ p(ae, { children: [
1439
- f && /* @__PURE__ */ t("span", { className: oe["orc-btn__icon"], children: f }),
1440
- !A && /* @__PURE__ */ t("span", { className: oe["orc-btn__label"], children: e }),
1441
- _ && /* @__PURE__ */ t("span", { className: oe["orc-btn__icon"], children: _ })
1442
- ] }), y = s ? !0 : void 0;
1436
+ R ? oe["orc-btn--iconOnly"] : "",
1437
+ c
1438
+ ].filter(Boolean).join(" "), N = /* @__PURE__ */ p(ae, { children: [
1439
+ g && /* @__PURE__ */ t("span", { className: oe["orc-btn__icon"], children: g }),
1440
+ !R && /* @__PURE__ */ t("span", { className: oe["orc-btn__label"], children: e }),
1441
+ y && /* @__PURE__ */ t("span", { className: oe["orc-btn__icon"], children: y })
1442
+ ] }), _ = s ? !0 : void 0;
1443
1443
  return n ? /* @__PURE__ */ t(
1444
- Je,
1444
+ Xe,
1445
1445
  {
1446
1446
  href: n,
1447
1447
  target: o,
1448
1448
  rel: i,
1449
- "aria-label": c,
1450
- "aria-disabled": y,
1451
- tabIndex: y ? -1 : void 0,
1452
- className: N,
1453
- onClick: y ? (B) => B.preventDefault() : a,
1454
- children: k
1449
+ "aria-label": m,
1450
+ "aria-disabled": _,
1451
+ tabIndex: _ ? -1 : void 0,
1452
+ className: M,
1453
+ onClick: _ ? (L) => L.preventDefault() : a,
1454
+ children: N
1455
1455
  }
1456
1456
  ) : /* @__PURE__ */ t(
1457
1457
  "button",
1458
1458
  {
1459
1459
  type: l,
1460
1460
  onClick: a,
1461
- disabled: !!y,
1462
- "aria-label": c,
1463
- className: N,
1464
- children: k
1461
+ disabled: !!_,
1462
+ "aria-label": m,
1463
+ className: M,
1464
+ children: N
1465
1465
  }
1466
1466
  );
1467
1467
  }
@@ -1469,13 +1469,13 @@ const Ea = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", Ia = "
1469
1469
  cardWrapper: Ea,
1470
1470
  customButtonLabel: Ia,
1471
1471
  customButtonDisabled: Ta
1472
- }, qe = {
1472
+ }, Ve = {
1473
1473
  base: "FFFFFF",
1474
1474
  sleeve: "FFFFFF",
1475
1475
  number: "000000",
1476
1476
  real: !1,
1477
1477
  type: "short_sleeves"
1478
- }, Ve = {
1478
+ }, De = {
1479
1479
  base: "000000",
1480
1480
  sleeve: "000000",
1481
1481
  number: "FFFFFF",
@@ -1486,16 +1486,16 @@ const Ea = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", Ia = "
1486
1486
  if (e === void 0)
1487
1487
  return null;
1488
1488
  if (e === null)
1489
- return a === "home" ? qe : Ve;
1489
+ return a === "home" ? Ve : De;
1490
1490
  const o = (l = (i = e == null ? void 0 : e.jerseys) == null ? void 0 : i[a]) == null ? void 0 : l[n];
1491
- return o || (a === "home" ? qe : Ve);
1491
+ return o || (a === "home" ? Ve : De);
1492
1492
  };
1493
1493
  function ka({ event: e, liveData: a, betOffers: n, jersey: o }) {
1494
- var m, g, h, r, d, c, f, _, I, R, T;
1494
+ var u, h, f, r, c, m, g, y, T, C, I;
1495
1495
  const i = n == null ? void 0 : n.find(
1496
- ($) => {
1497
- var L;
1498
- return ((L = $.betOfferType) == null ? void 0 : L.id) === 2;
1496
+ (k) => {
1497
+ var A;
1498
+ return ((A = k.betOfferType) == null ? void 0 : A.id) === 2;
1499
1499
  }
1500
1500
  ), l = {
1501
1501
  englishLabel: "",
@@ -1516,23 +1516,23 @@ function ka({ event: e, liveData: a, betOffers: n, jersey: o }) {
1516
1516
  /* @__PURE__ */ t(
1517
1517
  At,
1518
1518
  {
1519
- title: (h = (g = (m = e == null ? void 0 : e.path) == null ? void 0 : m[0]) == null ? void 0 : g.name) != null ? h : "",
1519
+ title: (f = (h = (u = e == null ? void 0 : e.path) == null ? void 0 : u[0]) == null ? void 0 : h.name) != null ? f : "",
1520
1520
  subtitle: (r = e == null ? void 0 : e.group) != null ? r : "",
1521
1521
  live: !0,
1522
- time: ((d = a == null ? void 0 : a.matchClock) == null ? void 0 : d.minute) != null ? `${a.matchClock.minute}'` : ""
1522
+ time: ((c = a == null ? void 0 : a.matchClock) == null ? void 0 : c.minute) != null ? `${a.matchClock.minute}'` : ""
1523
1523
  }
1524
1524
  ),
1525
1525
  /* @__PURE__ */ t("div", { style: { padding: "0 4px" }, children: /* @__PURE__ */ p(re, { spacing: 1.5, columns: "1fr auto 1fr", children: [
1526
1526
  /* @__PURE__ */ t(Oe, { name: e == null ? void 0 : e.homeName, jersey: Ee(o, "home") }),
1527
- /* @__PURE__ */ t(ot, { text: ((f = (c = a == null ? void 0 : a.score) == null ? void 0 : c.home) != null ? f : 0) + ":" + ((I = (_ = a == null ? void 0 : a.score) == null ? void 0 : _.away) != null ? I : 0), name: "En vivo" }),
1527
+ /* @__PURE__ */ t(it, { text: ((g = (m = a == null ? void 0 : a.score) == null ? void 0 : m.home) != null ? g : 0) + ":" + ((T = (y = a == null ? void 0 : a.score) == null ? void 0 : y.away) != null ? T : 0), name: "En vivo" }),
1528
1528
  /* @__PURE__ */ t(Oe, { name: e == null ? void 0 : e.awayName, jersey: Ee(o, "away") })
1529
1529
  ] }) })
1530
1530
  ] }),
1531
1531
  /* @__PURE__ */ p(j, { direction: "column", spacing: 1, useFlexGap: !0, children: [
1532
- /* @__PURE__ */ t(re, { spacing: 1, children: ((R = i == null ? void 0 : i.outcomes) != null ? R : s).map(($, L) => /* @__PURE__ */ t(at, { text: $.label.toUpperCase() }, L)) }),
1533
- /* @__PURE__ */ t(re, { spacing: 2, children: ((T = i == null ? void 0 : i.outcomes) != null ? T : s).map(($, L) => /* @__PURE__ */ t(Oa, { variant: "primary", disabled: $.odds == null || (i == null ? void 0 : i.cashOutStatus) == "SUSPENDED", onClick: () => {
1534
- Re("/deportes#event/live/" + e.id, $.id);
1535
- }, className: Se.customButtonDisabled, children: /* @__PURE__ */ t("span", { className: Se.customButtonLabel, children: $.odds === void 0 ? "" : ($.odds / 1e3).toFixed(2) }) }, L)) })
1532
+ /* @__PURE__ */ t(re, { spacing: 1, children: ((C = i == null ? void 0 : i.outcomes) != null ? C : s).map((k, A) => /* @__PURE__ */ t(nt, { text: k.label.toUpperCase() }, A)) }),
1533
+ /* @__PURE__ */ t(re, { spacing: 2, children: ((I = i == null ? void 0 : i.outcomes) != null ? I : s).map((k, A) => /* @__PURE__ */ t(Oa, { variant: "primary", disabled: k.odds == null || (i == null ? void 0 : i.cashOutStatus) == "SUSPENDED", onClick: () => {
1534
+ Re("/deportes#event/live/" + e.id, k.id);
1535
+ }, className: Se.customButtonDisabled, children: /* @__PURE__ */ t("span", { className: Se.customButtonLabel, children: k.odds === void 0 ? "" : (k.odds / 1e3).toFixed(2) }) }, A)) })
1536
1536
  ] })
1537
1537
  ] }) });
1538
1538
  }
@@ -1549,43 +1549,43 @@ const Ba = "oraculo__OraculoEventSemanaCard-module__cardContainer___4JuDe", La =
1549
1549
  equipos: Ra
1550
1550
  };
1551
1551
  function Fa({ event: e, jersey: a }) {
1552
- var s, m, g, h, r, d, c;
1552
+ var s, u, h, f, r, c, m;
1553
1553
  const n = Q(), o = ee();
1554
- function i(f) {
1555
- const _ = new Date(f), I = _.toLocaleDateString("es-ES", { weekday: "short" }).toUpperCase(), R = _.getDate().toString().padStart(2, "0"), T = (_.getMonth() + 1).toString().padStart(2, "0");
1556
- let $ = _.toLocaleTimeString("es-PE", { hour: "numeric", minute: "2-digit", hour12: !0 }).toUpperCase();
1557
- return $ = $.replace(/\./g, "").replace(/A\s*M/i, "AM").replace(/P\s*M/i, "PM"), `${I} ${R}/${T} | ${$}`;
1554
+ function i(g) {
1555
+ const y = new Date(g), T = y.toLocaleDateString("es-ES", { weekday: "short" }).toUpperCase(), C = y.getDate().toString().padStart(2, "0"), I = (y.getMonth() + 1).toString().padStart(2, "0");
1556
+ let k = y.toLocaleTimeString("es-PE", { hour: "numeric", minute: "2-digit", hour12: !0 }).toUpperCase();
1557
+ return k = k.replace(/\./g, "").replace(/A\s*M/i, "AM").replace(/P\s*M/i, "PM"), `${T} ${C}/${I} | ${k}`;
1558
1558
  }
1559
- const l = (f, _) => {
1560
- const I = `${e.homeName} vs ${e.awayName}`, R = _ ? (_ / 1e3).toFixed(2) : "", T = R ? `${I} - Cuota: ${R}` : I;
1559
+ const l = (g, y) => {
1560
+ const T = `${e.homeName} vs ${e.awayName}`, C = y ? (y / 1e3).toFixed(2) : "", I = C ? `${T} - Cuota: ${C}` : T;
1561
1561
  n({
1562
1562
  element: "evento_semana_outcome",
1563
- label: `Landing: ${o} - OraculoEventSemanaCard - Click: ${T}`,
1563
+ label: `Landing: ${o} - OraculoEventSemanaCard - Click: ${I}`,
1564
1564
  target: "/deportes#in-play",
1565
1565
  event_type: "click",
1566
1566
  module_id: 301,
1567
1567
  metadata: {
1568
1568
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
1569
1569
  },
1570
- tags: { section: "OraculoEventSemanaCard", outcomes: T }
1571
- }), Re("/deportes#event/" + e.id, f);
1570
+ tags: { section: "OraculoEventSemanaCard", outcomes: I }
1571
+ }), Re("/deportes#event/" + e.id, g);
1572
1572
  };
1573
1573
  return /* @__PURE__ */ p("div", { className: de.cardContainer, children: [
1574
- /* @__PURE__ */ t(nt, { title: (s = e == null ? void 0 : e.group) != null ? s : "" }),
1574
+ /* @__PURE__ */ t(ot, { title: (s = e == null ? void 0 : e.group) != null ? s : "" }),
1575
1575
  /* @__PURE__ */ t("div", { className: de.cardBackground, children: /* @__PURE__ */ p(j, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
1576
1576
  /* @__PURE__ */ p(j, { direction: "column", spacing: 1, useFlexGap: !0, children: [
1577
1577
  /* @__PURE__ */ p("div", { className: de.equipos, children: [
1578
1578
  /* @__PURE__ */ t(Oe, { name: e.homeName, size: "compact", jersey: Ee(a, "home") }),
1579
- /* @__PURE__ */ t(ot, { text: "vs.", name: "", size: "small" }),
1579
+ /* @__PURE__ */ t(it, { text: "vs.", name: "", size: "small" }),
1580
1580
  /* @__PURE__ */ t(Oe, { name: e.awayName, size: "compact", jersey: Ee(a, "away") })
1581
1581
  ] }),
1582
1582
  /* @__PURE__ */ t(Ma, { text: i(e.start) })
1583
1583
  ] }),
1584
1584
  /* @__PURE__ */ p(j, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
1585
- /* @__PURE__ */ t(re, { spacing: 1, children: ((h = (g = (m = e == null ? void 0 : e.outcome) == null ? void 0 : m[0]) == null ? void 0 : g.outcomes) != null ? h : []).map((f, _) => /* @__PURE__ */ t(at, { text: f.label.toUpperCase() }, _)) }),
1586
- /* @__PURE__ */ t("div", { className: de.jugadas, children: /* @__PURE__ */ t(re, { spacing: 1, children: ((c = (d = (r = e == null ? void 0 : e.outcome) == null ? void 0 : r[0]) == null ? void 0 : d.outcomes) != null ? c : []).map((f, _) => /* @__PURE__ */ t(K, { variant: "primary", fullHeight: !0, onClick: () => {
1587
- l(f.id, f.odds);
1588
- }, children: (f.odds / 1e3).toFixed(2) }, _)) }) })
1585
+ /* @__PURE__ */ t(re, { spacing: 1, children: ((f = (h = (u = e == null ? void 0 : e.outcome) == null ? void 0 : u[0]) == null ? void 0 : h.outcomes) != null ? f : []).map((g, y) => /* @__PURE__ */ t(nt, { text: g.label.toUpperCase() }, y)) }),
1586
+ /* @__PURE__ */ t("div", { className: de.jugadas, children: /* @__PURE__ */ t(re, { spacing: 1, children: ((m = (c = (r = e == null ? void 0 : e.outcome) == null ? void 0 : r[0]) == null ? void 0 : c.outcomes) != null ? m : []).map((g, y) => /* @__PURE__ */ t(K, { variant: "primary", fullHeight: !0, onClick: () => {
1587
+ l(g.id, g.odds);
1588
+ }, children: (g.odds / 1e3).toFixed(2) }, y)) }) })
1589
1589
  ] })
1590
1590
  ] }) })
1591
1591
  ] });
@@ -1597,11 +1597,11 @@ function za({
1597
1597
  onViewMore: o,
1598
1598
  className: i = ""
1599
1599
  }) {
1600
- const l = W(null), [s, m] = H({ isStart: !0, isEnd: !1 }), g = Q(), h = ee(), r = !e || e.length === 0, d = () => {
1601
- var T;
1602
- g({
1600
+ const l = W(null), [s, u] = H({ isStart: !0, isEnd: !1 }), h = Q(), f = ee(), r = !e || e.length === 0, c = () => {
1601
+ var I;
1602
+ h({
1603
1603
  element: "destacados_carousel_prev",
1604
- label: `Landing: ${h} - OraculoSeccionDestacados - Anterior`,
1604
+ label: `Landing: ${f} - OraculoSeccionDestacados - Anterior`,
1605
1605
  target: "carousel",
1606
1606
  event_type: "click",
1607
1607
  module_id: 301,
@@ -1609,12 +1609,12 @@ function za({
1609
1609
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
1610
1610
  },
1611
1611
  tags: { section: "OraculoSeccionDestacados" }
1612
- }), (T = l.current) == null || T.prev();
1613
- }, c = () => {
1614
- var T;
1615
- g({
1612
+ }), (I = l.current) == null || I.prev();
1613
+ }, m = () => {
1614
+ var I;
1615
+ h({
1616
1616
  element: "destacados_carousel_next",
1617
- label: `Landing: ${h} - OraculoSeccionDestacados - Siguiente`,
1617
+ label: `Landing: ${f} - OraculoSeccionDestacados - Siguiente`,
1618
1618
  target: "carousel",
1619
1619
  event_type: "click",
1620
1620
  module_id: 301,
@@ -1622,11 +1622,11 @@ function za({
1622
1622
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
1623
1623
  },
1624
1624
  tags: { section: "OraculoSeccionDestacados" }
1625
- }), (T = l.current) == null || T.next();
1626
- }, f = () => {
1627
- g({
1625
+ }), (I = l.current) == null || I.next();
1626
+ }, g = () => {
1627
+ h({
1628
1628
  element: "destacados_view_more",
1629
- label: `Landing: ${h} - OraculoSeccionDestacados - Ver más`,
1629
+ label: `Landing: ${f} - OraculoSeccionDestacados - Ver más`,
1630
1630
  target: "https://www.olimpo.bet/promociones",
1631
1631
  event_type: "click",
1632
1632
  module_id: 301,
@@ -1635,13 +1635,13 @@ function za({
1635
1635
  },
1636
1636
  tags: { section: "OraculoSeccionDestacados" }
1637
1637
  }), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/promociones");
1638
- }, _ = (T) => {
1639
- if (!T) return;
1640
- const L = `https://www.olimpo.bet/promociones/${encodeURIComponent(T)}`;
1641
- g({
1638
+ }, y = (I) => {
1639
+ if (!I) return;
1640
+ const A = `https://www.olimpo.bet/promociones/${encodeURIComponent(I)}`;
1641
+ h({
1642
1642
  element: "destacados_card",
1643
- label: `Landing: ${h} - OraculoSeccionDestacados - Click: ${String(T)}`,
1644
- target: L,
1643
+ label: `Landing: ${f} - OraculoSeccionDestacados - Click: ${String(I)}`,
1644
+ target: A,
1645
1645
  event_type: "click",
1646
1646
  module_id: 301,
1647
1647
  metadata: {
@@ -1649,11 +1649,11 @@ function za({
1649
1649
  },
1650
1650
  tags: {
1651
1651
  section: "OraculoSeccionDestacados",
1652
- promotion: String(T)
1652
+ promotion: String(I)
1653
1653
  }
1654
- }), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(L);
1655
- }, I = i || void 0, R = be("(max-width:768px)");
1656
- return /* @__PURE__ */ p("section", { className: I, style: { width: "100%" }, children: [
1654
+ }), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(A);
1655
+ }, T = i || void 0, C = be("(max-width:768px)");
1656
+ return /* @__PURE__ */ p("section", { className: T, style: { width: "100%" }, children: [
1657
1657
  /* @__PURE__ */ p(
1658
1658
  "header",
1659
1659
  {
@@ -1664,8 +1664,8 @@ function za({
1664
1664
  columnGap: 12,
1665
1665
  rowGap: 8,
1666
1666
  // marginBottom: 16,
1667
- paddingLeft: R ? 16 : 0,
1668
- paddingRight: R ? 16 : 0
1667
+ paddingLeft: C ? 16 : 0,
1668
+ paddingRight: C ? 16 : 0
1669
1669
  },
1670
1670
  children: [
1671
1671
  /* @__PURE__ */ t(se, { title: a, iconUrl: n, size: "md" }),
@@ -1677,7 +1677,7 @@ function za({
1677
1677
  variant: "secondary",
1678
1678
  iconOnly: !0,
1679
1679
  leftIcon: /* @__PURE__ */ t(Te, {}),
1680
- onClick: d,
1680
+ onClick: c,
1681
1681
  disabled: s.isStart || r
1682
1682
  }
1683
1683
  ),
@@ -1688,12 +1688,12 @@ function za({
1688
1688
  variant: "secondary",
1689
1689
  iconOnly: !0,
1690
1690
  rightIcon: /* @__PURE__ */ t(ke, {}),
1691
- onClick: c,
1691
+ onClick: m,
1692
1692
  disabled: s.isEnd || r
1693
1693
  }
1694
1694
  )
1695
1695
  ] }),
1696
- /* @__PURE__ */ t(K, { variant: "secondary", onClick: f, children: "Ver más" })
1696
+ /* @__PURE__ */ t(K, { variant: "secondary", onClick: g, children: "Ver más" })
1697
1697
  ]
1698
1698
  }
1699
1699
  ),
@@ -1705,13 +1705,13 @@ function za({
1705
1705
  perPage: void 0,
1706
1706
  gap: "16px",
1707
1707
  enableHorizontalWheel: !0,
1708
- showRightGradient: !R,
1708
+ showRightGradient: !C,
1709
1709
  options: { autoWidth: !0, trimSpace: "move" },
1710
1710
  breakpoints: {
1711
1711
  768: { perPage: 2, focus: "start", padding: { left: "24px", right: "24px" } },
1712
1712
  1024: { perPage: 2.5, focus: "start", padding: { left: "24px", right: "24px" } }
1713
1713
  },
1714
- renderItem: (T) => /* @__PURE__ */ t(
1714
+ renderItem: (I) => /* @__PURE__ */ t(
1715
1715
  "div",
1716
1716
  {
1717
1717
  style: {
@@ -1719,12 +1719,12 @@ function za({
1719
1719
  marginTop: 16,
1720
1720
  cursor: "pointer"
1721
1721
  },
1722
- onClick: () => _(T.promotion),
1722
+ onClick: () => y(I.promotion),
1723
1723
  children: /* @__PURE__ */ t(
1724
1724
  "img",
1725
1725
  {
1726
- src: `https://olimpo.bet${T.image !== "" ? T.image : T.summary_image}`,
1727
- alt: T.title,
1726
+ src: `https://olimpo.bet${I.image !== "" ? I.image : I.summary_image}`,
1727
+ alt: I.title,
1728
1728
  style: {
1729
1729
  width: "100%",
1730
1730
  height: typeof window != "undefined" && window.innerWidth < 768 ? "80px" : "137px",
@@ -1735,10 +1735,10 @@ function za({
1735
1735
  }
1736
1736
  )
1737
1737
  },
1738
- `${T.title}-${T.image}`
1738
+ `${I.title}-${I.image}`
1739
1739
  ),
1740
- onMove: ({ isStart: T, isEnd: $ }) => {
1741
- m({ isStart: T, isEnd: $ }), g({
1740
+ onMove: ({ isStart: I, isEnd: k }) => {
1741
+ u({ isStart: I, isEnd: k }), h({
1742
1742
  element: "destacados_carousel_slide",
1743
1743
  label: "OraculoSeccionDestacados - Slide Carousel",
1744
1744
  target: "carousel",
@@ -1746,8 +1746,8 @@ function za({
1746
1746
  module_id: 301,
1747
1747
  metadata: {
1748
1748
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
1749
- isStart: T,
1750
- isEnd: $
1749
+ isStart: I,
1750
+ isEnd: k
1751
1751
  },
1752
1752
  tags: { section: "OraculoSeccionDestacados" }
1753
1753
  });
@@ -1757,16 +1757,16 @@ function za({
1757
1757
  ] });
1758
1758
  }
1759
1759
  const Ce = "__ORACULO_EXTRAS__";
1760
- function ct() {
1760
+ function dt() {
1761
1761
  const e = globalThis;
1762
1762
  return e[Ce] || (e[Ce] = {}), e[Ce];
1763
1763
  }
1764
1764
  function Pa(e) {
1765
- ct().extras = e;
1765
+ dt().extras = e;
1766
1766
  }
1767
1767
  function le(e) {
1768
1768
  var a;
1769
- return (a = ct().extras) == null ? void 0 : a[e];
1769
+ return (a = dt().extras) == null ? void 0 : a[e];
1770
1770
  }
1771
1771
  function Ua() {
1772
1772
  delete globalThis[Ce];
@@ -1778,16 +1778,16 @@ function qa({
1778
1778
  onCardClick: o
1779
1779
  }) {
1780
1780
  const i = Q(), l = ee(), s = te(
1781
- () => (e != null ? e : []).map((r, d) => {
1782
- var c;
1781
+ () => (e != null ? e : []).map((r, c) => {
1782
+ var m;
1783
1783
  return {
1784
1784
  ...r,
1785
- orden: (c = r.orden) != null ? c : d + 1,
1786
- _originalIndex: d
1785
+ orden: (m = r.orden) != null ? m : c + 1,
1786
+ _originalIndex: c
1787
1787
  };
1788
- }).sort((r, d) => r.orden != null && d.orden != null ? r.orden - d.orden : r._originalIndex - d._originalIndex),
1788
+ }).sort((r, c) => r.orden != null && c.orden != null ? r.orden - c.orden : r._originalIndex - c._originalIndex),
1789
1789
  [e]
1790
- ), m = !e || e.length === 0, g = m ? Array.from({ length: 6 }) : s.slice(0, 6), h = (r) => {
1790
+ ), u = !e || e.length === 0, h = u ? Array.from({ length: 6 }) : s.slice(0, 6), f = (r) => {
1791
1791
  i({
1792
1792
  element: "top_juegos_card",
1793
1793
  label: `Landing: ${l} - OraculoSeccionTopJuegos - Open game: ${String(r.machine || "unknown")}`,
@@ -1802,9 +1802,9 @@ function qa({
1802
1802
  section: "OraculoSeccionTopJuegos"
1803
1803
  }
1804
1804
  });
1805
- const d = le("showIframe"), c = le("loadMachine");
1806
- d == null || d(), requestAnimationFrame(() => {
1807
- c == null || c(r, !1, "CASINO");
1805
+ const c = le("showIframe"), m = le("loadMachine");
1806
+ c == null || c(), requestAnimationFrame(() => {
1807
+ m == null || m(r, !1, "CASINO");
1808
1808
  });
1809
1809
  };
1810
1810
  return /* @__PURE__ */ t("section", { style: { width: "100%" }, children: /* @__PURE__ */ p(j, { direction: "column", spacing: 2, useFlexGap: !0, children: [
@@ -1822,29 +1822,116 @@ function qa({
1822
1822
  justifyItems: "center",
1823
1823
  width: "100%"
1824
1824
  },
1825
- children: g.map((r, d) => {
1826
- var c, f;
1825
+ children: h.map((r, c) => {
1826
+ var m, g;
1827
1827
  return /* @__PURE__ */ t(
1828
1828
  ca,
1829
1829
  {
1830
- imageUrl: m ? "" : r.background ? `https://olimpo.bet${r.background}` : `https://olimpo.bet${(c = r.logo) != null ? c : ""}`,
1831
- orden: m ? d + 1 : r.orden,
1832
- loading: m,
1833
- onClick: m ? void 0 : () => {
1834
- o == null || o(r), h(r);
1830
+ imageUrl: u ? "" : r.background ? `https://olimpo.bet${r.background}` : `https://olimpo.bet${(m = r.logo) != null ? m : ""}`,
1831
+ orden: u ? c + 1 : r.orden,
1832
+ loading: u,
1833
+ onClick: u ? void 0 : () => {
1834
+ o == null || o(r), f(r);
1835
1835
  }
1836
1836
  },
1837
- m ? `sk-${d}` : (f = r.machine) != null ? f : `${d}`
1837
+ u ? `sk-${c}` : (g = r.machine) != null ? g : `${c}`
1838
1838
  );
1839
1839
  })
1840
1840
  }
1841
1841
  )
1842
1842
  ] }) });
1843
1843
  }
1844
- const Va = (e, a) => {
1844
+ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommendations", Da = (e, a) => {
1845
+ var n, o, i, l, s, u, h, f, r, c, m;
1846
+ return {
1847
+ ...e,
1848
+ id: (n = e.id) != null ? n : a,
1849
+ orden: (o = e.id) != null ? o : a,
1850
+ machine: String(
1851
+ (s = (l = (i = e.id) != null ? i : e.machine) != null ? l : e.external_id) != null ? s : a
1852
+ ),
1853
+ logo: e.logo,
1854
+ background: e.background,
1855
+ room_name: (u = e.room_name) != null ? u : "",
1856
+ product: (h = e.product) != null ? h : "",
1857
+ service: (f = e.service) != null ? f : "",
1858
+ provider: (r = e.provider) != null ? r : "",
1859
+ game_type: (c = e.game_type) != null ? c : null,
1860
+ external_id: (m = e.external_id) != null ? m : ""
1861
+ };
1862
+ }, Wa = (e) => e ? !Array.isArray(e) && Array.isArray(e.recommendations) ? e.recommendations.filter(Boolean).map((a) => String(a)) : [] : [], Ga = () => {
1863
+ var a, n, o;
1864
+ const e = le("user");
1865
+ return (o = (n = (a = e == null ? void 0 : e.userId) != null ? a : e == null ? void 0 : e.user) != null ? n : e == null ? void 0 : e.id) != null ? o : null;
1866
+ }, ja = async (e) => {
1867
+ const a = Ga(), n = new URLSearchParams({
1868
+ userId: String(a),
1869
+ productType: e,
1870
+ filter: "high-payout"
1871
+ }), o = `${Va}?${n.toString()}`, i = await fetch(o);
1872
+ if (!i.ok)
1873
+ throw new Error(
1874
+ `No se pudo obtener recomendaciones. HTTP ${i.status} ${i.statusText}`
1875
+ );
1876
+ return i.json();
1877
+ }, Fe = (e, a = !1, n = "Casino") => {
1878
+ const [o, i] = H([]), [l, s] = H(!1);
1879
+ return J(() => {
1880
+ let u = !1;
1881
+ return (async () => {
1882
+ if (!a) {
1883
+ i(Array.isArray(e) ? e : []), s(!1);
1884
+ return;
1885
+ }
1886
+ s(!0);
1887
+ try {
1888
+ const f = await ja(n), r = Wa(f);
1889
+ if (!r.length) {
1890
+ u || i([]);
1891
+ return;
1892
+ }
1893
+ const c = await Promise.allSettled(
1894
+ r.map(async (g, y) => {
1895
+ const T = await fetch(
1896
+ `https://api.mktolimpo.com/api/machine/${g}`
1897
+ );
1898
+ if (!T.ok)
1899
+ throw new Error(`No se pudo obtener machine ${g}`);
1900
+ const C = await T.json();
1901
+ return Da(C, y);
1902
+ })
1903
+ );
1904
+ if (u) return;
1905
+ const m = c.filter(
1906
+ (g) => g.status === "fulfilled"
1907
+ ).map((g) => g.value);
1908
+ i(m);
1909
+ } catch (f) {
1910
+ console.error(`[usePersonalizeGameItems:${n}] error:`, f), u || i([]);
1911
+ } finally {
1912
+ u || s(!1);
1913
+ }
1914
+ })(), () => {
1915
+ u = !0;
1916
+ };
1917
+ }, [e, a, n]), {
1918
+ resolvedItems: o,
1919
+ loading: l
1920
+ };
1921
+ }, Ha = (e, a = !1) => Fe(e, a, "Casino"), Ka = (e, a = !1) => Fe(e, a, "Deportes Virtuales"), Za = (e, a = !1) => Fe(e, a, "Casino en vivo"), Ja = (e, a) => {
1845
1922
  var n, o;
1846
1923
  return (o = (n = e.orden) != null ? n : e.machine) != null ? o : a;
1847
- }, Da = ({
1924
+ }, Xa = (e) => {
1925
+ if (typeof e == "boolean") return e;
1926
+ if (typeof e == "string")
1927
+ return e.toLowerCase() === "true";
1928
+ if (e && typeof e == "object") {
1929
+ if (typeof e.value == "boolean") return e.value;
1930
+ if (typeof e.value == "string")
1931
+ return e.value.toLowerCase() === "true";
1932
+ }
1933
+ return !1;
1934
+ }, Ya = ({
1848
1935
  items: e,
1849
1936
  title: a = "Casino en vivo",
1850
1937
  subtitle: n = "Disfruta la emoción en tus juegos favoritos y gana en tiempo real.",
@@ -1852,43 +1939,47 @@ const Va = (e, a) => {
1852
1939
  onCardClick: i,
1853
1940
  backgroundDesktopUrl: l = "",
1854
1941
  onViewMore: s,
1855
- className: m
1942
+ className: u,
1943
+ isPersonalize: h = !1
1856
1944
  }) => {
1857
- const g = Q(), h = ee(), r = (c) => {
1858
- g({
1945
+ const f = Q(), r = ee(), c = Xa(h), { resolvedItems: m } = Za(
1946
+ e,
1947
+ c
1948
+ ), g = c ? m : Array.isArray(e) ? e : [], y = (C) => {
1949
+ f({
1859
1950
  element: "live_casino_card",
1860
- label: `Landing: ${h} - OraculoSeccionCasinoEnVivo - Open game: ${String(c.machine || "unknown")}`,
1861
- target: String(c.machine || "unknown"),
1951
+ label: `Landing: ${r} - OraculoSeccionCasinoEnVivo${c ? " - personalize" : ""} - Open game: ${String(C.machine || "unknown")}`,
1952
+ target: String(C.machine || "unknown"),
1862
1953
  event_type: "click",
1863
1954
  module_id: 301,
1864
1955
  metadata: {
1865
1956
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
1866
1957
  },
1867
1958
  tags: {
1868
- game_name: String(c.machine || "unknown"),
1869
- provider: c.provider || "unknown",
1959
+ game_name: String(C.machine || "unknown"),
1960
+ provider: C.provider || "unknown",
1870
1961
  section: "OraculoSeccionCasinoEnVivo"
1871
1962
  }
1872
1963
  });
1873
- const f = le("showIframe"), _ = le("loadMachine");
1874
- if (!_) {
1964
+ const I = le("showIframe"), k = le("loadMachine");
1965
+ if (!k) {
1875
1966
  if (i) {
1876
- i(c);
1967
+ i(C);
1877
1968
  return;
1878
1969
  }
1879
1970
  console.warn(
1880
1971
  "[OraculoSeccionCasinoEnVivo] No existe loadMachine en extras ni onCardClick. No se puede abrir el juego.",
1881
- { machine: c == null ? void 0 : c.machine, provider: c == null ? void 0 : c.provider }
1972
+ { machine: C == null ? void 0 : C.machine, provider: C == null ? void 0 : C.provider }
1882
1973
  );
1883
1974
  return;
1884
1975
  }
1885
- f == null || f(), typeof window != "undefined" && window.scrollTo({ top: 0, behavior: "smooth" }), requestAnimationFrame(() => {
1886
- _ == null || _(c, !1, "casino_en_vivo");
1976
+ I == null || I(), typeof window != "undefined" && window.scrollTo({ top: 0, behavior: "smooth" }), requestAnimationFrame(() => {
1977
+ k == null || k(C, !1, "casino_en_vivo");
1887
1978
  });
1888
- }, d = () => {
1889
- g({
1979
+ }, T = () => {
1980
+ f({
1890
1981
  element: "casino_en_vivo_view_more",
1891
- label: `Landing: ${h} - OraculoSeccionCasinoEnVivo - Ver más`,
1982
+ label: `Landing: ${r} - OraculoSeccionCasinoEnVivo${c ? " - personalize" : ""} - Ver más`,
1892
1983
  target: "https://www.olimpo.bet/casino-en-vivo",
1893
1984
  event_type: "click",
1894
1985
  module_id: 301,
@@ -1901,7 +1992,7 @@ const Va = (e, a) => {
1901
1992
  return /* @__PURE__ */ p(
1902
1993
  U,
1903
1994
  {
1904
- className: m,
1995
+ className: u,
1905
1996
  sx: {
1906
1997
  position: "relative",
1907
1998
  color: "white",
@@ -1914,18 +2005,17 @@ const Va = (e, a) => {
1914
2005
  sx: {
1915
2006
  position: "absolute",
1916
2007
  inset: 0,
1917
- // mt: { xs: 0, md: 4 },
1918
2008
  backgroundImage: {
1919
2009
  xs: `
1920
- linear-gradient(to bottom, #121212 0%, rgba(18,18,18,0) 10%),
1921
- linear-gradient(to top, #121212 0%, rgba(18,18,18,0) 10%),
1922
- url('${o}')
1923
- `,
2010
+ linear-gradient(to bottom, #121212 0%, rgba(18,18,18,0) 10%),
2011
+ linear-gradient(to top, #121212 0%, rgba(18,18,18,0) 10%),
2012
+ url('${o}')
2013
+ `,
1924
2014
  md: `
1925
- linear-gradient(to bottom, #121212 0%, rgba(18,18,18,0) 10%),
1926
- linear-gradient(to top, #121212 0%, rgba(18,18,18,0) 10%),
1927
- url('${l}')
1928
- `
2015
+ linear-gradient(to bottom, #121212 0%, rgba(18,18,18,0) 10%),
2016
+ linear-gradient(to top, #121212 0%, rgba(18,18,18,0) 10%),
2017
+ url('${l}')
2018
+ `
1929
2019
  },
1930
2020
  backgroundSize: {
1931
2021
  xs: "cover",
@@ -1986,7 +2076,7 @@ const Va = (e, a) => {
1986
2076
  {
1987
2077
  variant: "primary",
1988
2078
  size: "md",
1989
- onClick: d,
2079
+ onClick: T,
1990
2080
  children: "Ver más"
1991
2081
  }
1992
2082
  ) })
@@ -2002,18 +2092,18 @@ const Va = (e, a) => {
2002
2092
  py: { xs: 3, md: 0 },
2003
2093
  alignItems: "center"
2004
2094
  },
2005
- children: (e != null ? e : []).slice(0, 3).map((c, f) => {
2006
- var _;
2095
+ children: (g != null ? g : []).slice(0, 3).map((C, I) => {
2096
+ var k;
2007
2097
  return /* @__PURE__ */ t(
2008
2098
  da,
2009
2099
  {
2010
- logo: `https://olimpo.bet${c.background ? c.background : (_ = c.logo) != null ? _ : ""}`,
2011
- provider: c.provider,
2012
- providerName: c.web_name,
2013
- machine: c.machine,
2014
- onClick: () => r(c)
2100
+ logo: `https://olimpo.bet${C.background ? C.background : (k = C.logo) != null ? k : ""}`,
2101
+ provider: C.provider,
2102
+ providerName: C.web_name,
2103
+ machine: C.machine,
2104
+ onClick: () => y(C)
2015
2105
  },
2016
- Va(c, f)
2106
+ Ja(C, I)
2017
2107
  );
2018
2108
  })
2019
2109
  }
@@ -2023,7 +2113,7 @@ const Va = (e, a) => {
2023
2113
  {
2024
2114
  variant: "primary",
2025
2115
  size: "lg",
2026
- onClick: d,
2116
+ onClick: T,
2027
2117
  children: "Ver más"
2028
2118
  }
2029
2119
  ) })
@@ -2033,84 +2123,7 @@ const Va = (e, a) => {
2033
2123
  ]
2034
2124
  }
2035
2125
  );
2036
- }, Wa = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommendations", Ga = (e, a) => {
2037
- var n, o, i, l, s, m, g, h, r, d, c;
2038
- return {
2039
- ...e,
2040
- id: (n = e.id) != null ? n : a,
2041
- orden: (o = e.id) != null ? o : a,
2042
- machine: String(
2043
- (s = (l = (i = e.id) != null ? i : e.machine) != null ? l : e.external_id) != null ? s : a
2044
- ),
2045
- logo: e.logo,
2046
- background: e.background,
2047
- room_name: (m = e.room_name) != null ? m : "",
2048
- product: (g = e.product) != null ? g : "",
2049
- service: (h = e.service) != null ? h : "",
2050
- provider: (r = e.provider) != null ? r : "",
2051
- game_type: (d = e.game_type) != null ? d : null,
2052
- external_id: (c = e.external_id) != null ? c : ""
2053
- };
2054
- }, ja = (e) => e ? !Array.isArray(e) && Array.isArray(e.recommendations) ? e.recommendations.filter(Boolean).map((a) => String(a)) : [] : [], Ha = () => {
2055
- var a, n, o;
2056
- const e = le("user");
2057
- return (o = (n = (a = e == null ? void 0 : e.userId) != null ? a : e == null ? void 0 : e.user) != null ? n : e == null ? void 0 : e.id) != null ? o : null;
2058
- }, Ka = async (e) => {
2059
- const a = Ha(), n = new URLSearchParams({
2060
- userId: String(a),
2061
- productType: e,
2062
- filter: "high-payout"
2063
- }), o = `${Wa}?${n.toString()}`, i = await fetch(o);
2064
- if (!i.ok)
2065
- throw new Error(
2066
- `No se pudo obtener recomendaciones. HTTP ${i.status} ${i.statusText}`
2067
- );
2068
- return i.json();
2069
- }, dt = (e, a = !1, n = "Casino") => {
2070
- const [o, i] = H([]), [l, s] = H(!1);
2071
- return J(() => {
2072
- let m = !1;
2073
- return (async () => {
2074
- if (!a) {
2075
- i(Array.isArray(e) ? e : []), s(!1);
2076
- return;
2077
- }
2078
- s(!0);
2079
- try {
2080
- const h = await Ka(n), r = ja(h);
2081
- if (!r.length) {
2082
- m || i([]);
2083
- return;
2084
- }
2085
- const d = await Promise.allSettled(
2086
- r.map(async (f, _) => {
2087
- const I = await fetch(
2088
- `https://api.mktolimpo.com/api/machine/${f}`
2089
- );
2090
- if (!I.ok)
2091
- throw new Error(`No se pudo obtener machine ${f}`);
2092
- const R = await I.json();
2093
- return Ga(R, _);
2094
- })
2095
- );
2096
- if (m) return;
2097
- const c = d.filter(
2098
- (f) => f.status === "fulfilled"
2099
- ).map((f) => f.value);
2100
- i(c);
2101
- } catch (h) {
2102
- console.error(`[usePersonalizeGameItems:${n}] error:`, h), m || i([]);
2103
- } finally {
2104
- m || s(!1);
2105
- }
2106
- })(), () => {
2107
- m = !0;
2108
- };
2109
- }, [e, a, n]), {
2110
- resolvedItems: o,
2111
- loading: l
2112
- };
2113
- }, Za = (e, a = !1) => dt(e, a, "Casino"), Ja = (e, a = !1) => dt(e, a, "Deportes Virtuales"), Xa = (e) => {
2126
+ }, Qa = (e) => {
2114
2127
  if (typeof e == "boolean") return e;
2115
2128
  if (typeof e == "string")
2116
2129
  return e.toLowerCase() === "true";
@@ -2123,12 +2136,12 @@ const Va = (e, a) => {
2123
2136
  }, ut = (e, a) => {
2124
2137
  var n, o;
2125
2138
  return (o = (n = e.orden) != null ? n : e.machine) != null ? o : a;
2126
- }, Ya = (e, a = !0, n = 1) => {
2127
- const o = e.map((s, m) => {
2128
- var g;
2139
+ }, en = (e, a = !0, n = 1) => {
2140
+ const o = e.map((s, u) => {
2141
+ var h;
2129
2142
  return {
2130
- id: ut(s, m),
2131
- imageUrl: (g = s.logo) != null ? g : "",
2143
+ id: ut(s, u),
2144
+ imageUrl: (h = s.logo) != null ? h : "",
2132
2145
  ...s.background ? { background: s.background } : {}
2133
2146
  };
2134
2147
  });
@@ -2152,7 +2165,7 @@ const Va = (e, a) => {
2152
2165
  }), l = s;
2153
2166
  }
2154
2167
  return i;
2155
- }, Qa = ({
2168
+ }, tn = ({
2156
2169
  items: e,
2157
2170
  title: a = "Casino",
2158
2171
  iconUrl: n = "/assets/img/home/Casino/diamante.svg",
@@ -2160,16 +2173,16 @@ const Va = (e, a) => {
2160
2173
  onViewMore: i,
2161
2174
  mosaicFirst: l = !0,
2162
2175
  gridSize: s = 1,
2163
- isPersonalize: m = !1
2176
+ isPersonalize: u = !1
2164
2177
  }) => {
2165
- const g = Q(), h = ee(), r = W(null), [d, c] = H({ isStart: !0, isEnd: !1 }), f = Xa(m), { resolvedItems: _ } = Za(
2178
+ const h = Q(), f = ee(), r = W(null), [c, m] = H({ isStart: !0, isEnd: !1 }), g = Qa(u), { resolvedItems: y } = Ha(
2166
2179
  e,
2167
- f
2168
- ), I = f ? _ : Array.isArray(e) ? e : [], R = () => {
2169
- var y;
2170
- g({
2180
+ g
2181
+ ), T = g ? y : Array.isArray(e) ? e : [], C = () => {
2182
+ var _;
2183
+ h({
2171
2184
  element: "casino_prev",
2172
- label: `Landing: ${h} - OraculoSeccionCasino ${m ? " - personalize" : ""} - Anterior`,
2185
+ label: `Landing: ${f} - OraculoSeccionCasino ${u ? " - personalize" : ""} - Anterior`,
2173
2186
  target: "prev",
2174
2187
  event_type: "click",
2175
2188
  module_id: 301,
@@ -2177,12 +2190,12 @@ const Va = (e, a) => {
2177
2190
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
2178
2191
  },
2179
2192
  tags: { section: "OraculoSeccionCasino" }
2180
- }), (y = r.current) == null || y.prev();
2181
- }, T = () => {
2182
- var y;
2183
- g({
2193
+ }), (_ = r.current) == null || _.prev();
2194
+ }, I = () => {
2195
+ var _;
2196
+ h({
2184
2197
  element: "casino_next",
2185
- label: `Landing: ${h} - OraculoSeccionCasino ${m ? " - personalize" : ""} - Siguiente`,
2198
+ label: `Landing: ${f} - OraculoSeccionCasino ${u ? " - personalize" : ""} - Siguiente`,
2186
2199
  target: "next",
2187
2200
  event_type: "click",
2188
2201
  module_id: 301,
@@ -2190,11 +2203,11 @@ const Va = (e, a) => {
2190
2203
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
2191
2204
  },
2192
2205
  tags: { section: "OraculoSeccionCasino" }
2193
- }), (y = r.current) == null || y.next();
2194
- }, $ = () => {
2195
- if (g({
2206
+ }), (_ = r.current) == null || _.next();
2207
+ }, k = () => {
2208
+ if (h({
2196
2209
  element: "casino_view_more",
2197
- label: `Landing: ${h} - OraculoSeccionCasino ${m ? " - personalize" : ""} - Ver más`,
2210
+ label: `Landing: ${f} - OraculoSeccionCasino ${u ? " - personalize" : ""} - Ver más`,
2198
2211
  target: "https://www.olimpo.bet/casino",
2199
2212
  event_type: "click",
2200
2213
  module_id: 301,
@@ -2207,13 +2220,13 @@ const Va = (e, a) => {
2207
2220
  return;
2208
2221
  }
2209
2222
  typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/casino");
2210
- }, L = (y = !0, B = 4) => {
2211
- const z = (C) => Array.from({ length: C }, (P, q) => ({
2212
- id: `sk-${C}-${q}`,
2223
+ }, A = (_ = !0, L = 4) => {
2224
+ const z = (O) => Array.from({ length: O }, (P, q) => ({
2225
+ id: `sk-${O}-${q}`,
2213
2226
  imageUrl: ""
2214
- })), O = [];
2215
- return y && O.push({ id: "mosaic-loading", kind: "mosaic", items: z(5) }), O.push({ id: "grid-loading", kind: "grid", items: z(B) }), O;
2216
- }, A = !e || e.length === 0, N = Xe("(max-width:768px)"), k = A ? L(l, s) : Ya(e, l, s);
2227
+ })), E = [];
2228
+ return _ && E.push({ id: "mosaic-loading", kind: "mosaic", items: z(5) }), E.push({ id: "grid-loading", kind: "grid", items: z(L) }), E;
2229
+ }, R = !e || e.length === 0, M = Ye("(max-width:768px)"), N = R ? A(l, s) : en(e, l, s);
2217
2230
  return /* @__PURE__ */ t("section", { children: /* @__PURE__ */ p(j, { direction: "column", spacing: 2, useFlexGap: !0, children: [
2218
2231
  /* @__PURE__ */ p(
2219
2232
  U,
@@ -2235,9 +2248,9 @@ const Va = (e, a) => {
2235
2248
  ariaLabel: "Anterior",
2236
2249
  variant: "secondary",
2237
2250
  iconOnly: !0,
2238
- leftIcon: /* @__PURE__ */ t(Qe, {}),
2239
- onClick: R,
2240
- disabled: d.isStart
2251
+ leftIcon: /* @__PURE__ */ t(et, {}),
2252
+ onClick: C,
2253
+ disabled: c.isStart
2241
2254
  }
2242
2255
  ),
2243
2256
  /* @__PURE__ */ t(
@@ -2246,13 +2259,13 @@ const Va = (e, a) => {
2246
2259
  ariaLabel: "Siguiente",
2247
2260
  variant: "secondary",
2248
2261
  iconOnly: !0,
2249
- rightIcon: /* @__PURE__ */ t(et, {}),
2250
- onClick: T,
2251
- disabled: d.isEnd
2262
+ rightIcon: /* @__PURE__ */ t(tt, {}),
2263
+ onClick: I,
2264
+ disabled: c.isEnd
2252
2265
  }
2253
2266
  )
2254
2267
  ] }),
2255
- /* @__PURE__ */ t(U, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(K, { variant: "secondary", onClick: $, children: "Ver más" }) })
2268
+ /* @__PURE__ */ t(U, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(K, { variant: "secondary", onClick: k, children: "Ver más" }) })
2256
2269
  ]
2257
2270
  }
2258
2271
  ),
@@ -2260,14 +2273,12 @@ const Va = (e, a) => {
2260
2273
  ce,
2261
2274
  {
2262
2275
  ref: r,
2263
- items: k,
2276
+ items: N,
2264
2277
  perPage: void 0,
2265
2278
  gap: "16px",
2266
2279
  enableHorizontalWheel: !0,
2267
- showRightGradient: !0,
2268
- options: { autoWidth: !0, trimSpace: "move" },
2269
- showRightGradient: !N,
2270
2280
  options: { autoWidth: !0, trimSpace: "move" },
2281
+ showRightGradient: !M,
2271
2282
  breakpoints: {
2272
2283
  400: {
2273
2284
  gap: "4px",
@@ -2285,21 +2296,21 @@ const Va = (e, a) => {
2285
2296
  padding: { left: "24px", right: "24px" }
2286
2297
  }
2287
2298
  },
2288
- renderItem: (y) => /* @__PURE__ */ t("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ t(
2289
- it,
2299
+ renderItem: (_) => /* @__PURE__ */ t("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ t(
2300
+ rt,
2290
2301
  {
2291
- items: y.items,
2292
- layout: y.kind === "mosaic" ? "mosaic" : "grid",
2293
- loading: A,
2294
- onClick: (B) => {
2295
- if (A) return;
2296
- const z = I.find(
2297
- (P, q) => String(ut(P, q)) === String(B.id)
2302
+ items: _.items,
2303
+ layout: _.kind === "mosaic" ? "mosaic" : "grid",
2304
+ loading: R,
2305
+ onClick: (L) => {
2306
+ if (R) return;
2307
+ const z = T.find(
2308
+ (P, q) => String(ut(P, q)) === String(L.id)
2298
2309
  );
2299
2310
  if (!z) return;
2300
- o == null || o(z), g({
2311
+ o == null || o(z), h({
2301
2312
  element: "casino_game_card",
2302
- label: `Landing: ${h} - OraculoSeccionCasino ${m ? " - personalize" : ""} - Game: ${String(z.machine || "unknown")}`,
2313
+ label: `Landing: ${f} - OraculoSeccionCasino ${u ? " - personalize" : ""} - Game: ${String(z.machine || "unknown")}`,
2303
2314
  target: String(z.machine || "unknown"),
2304
2315
  event_type: "click",
2305
2316
  module_id: 301,
@@ -2311,16 +2322,16 @@ const Va = (e, a) => {
2311
2322
  section: a || "Casino"
2312
2323
  }
2313
2324
  });
2314
- const O = le("showIframe"), C = le("loadMachine");
2315
- O == null || O(), C == null || C(z, !1, "CASINO");
2325
+ const E = le("showIframe"), O = le("loadMachine");
2326
+ E == null || E(), O == null || O(z, !1, "CASINO");
2316
2327
  }
2317
2328
  }
2318
2329
  ) }),
2319
- onMove: ({ isStart: y, isEnd: B }) => c({ isStart: y, isEnd: B })
2330
+ onMove: ({ isStart: _, isEnd: L }) => m({ isStart: _, isEnd: L })
2320
2331
  }
2321
2332
  )
2322
2333
  ] }) });
2323
- }, en = (e) => {
2334
+ }, an = (e) => {
2324
2335
  if (typeof e == "boolean") return e;
2325
2336
  if (typeof e == "string")
2326
2337
  return e.toLowerCase() === "true";
@@ -2333,12 +2344,12 @@ const Va = (e, a) => {
2333
2344
  }, mt = (e, a) => {
2334
2345
  var n, o;
2335
2346
  return (o = (n = e.orden) != null ? n : e.machine) != null ? o : a;
2336
- }, tn = (e, a = !0, n = 1) => {
2337
- const o = e.map((s, m) => {
2338
- var g;
2347
+ }, nn = (e, a = !0, n = 1) => {
2348
+ const o = e.map((s, u) => {
2349
+ var h;
2339
2350
  return {
2340
- id: mt(s, m),
2341
- imageUrl: (g = s.logo) != null ? g : "",
2351
+ id: mt(s, u),
2352
+ imageUrl: (h = s.logo) != null ? h : "",
2342
2353
  ...s.background ? { background: s.background } : {}
2343
2354
  };
2344
2355
  });
@@ -2362,7 +2373,7 @@ const Va = (e, a) => {
2362
2373
  }), l = s;
2363
2374
  }
2364
2375
  return i;
2365
- }, an = (e = !0, a = 4) => {
2376
+ }, on = (e = !0, a = 4) => {
2366
2377
  const n = (i) => Array.from({ length: i }, (l, s) => ({
2367
2378
  id: `sk-${i}-${s}`,
2368
2379
  imageUrl: ""
@@ -2376,7 +2387,7 @@ const Va = (e, a) => {
2376
2387
  kind: "grid",
2377
2388
  items: n(a)
2378
2389
  }), o;
2379
- }, nn = ({
2390
+ }, rn = ({
2380
2391
  items: e,
2381
2392
  title: a = "Virtuales",
2382
2393
  iconUrl: n = "/assets/img/home/Virtuales/virtuales.svg",
@@ -2384,16 +2395,16 @@ const Va = (e, a) => {
2384
2395
  onViewMore: i,
2385
2396
  mosaicFirst: l = !0,
2386
2397
  gridSize: s = 1,
2387
- isPersonalize: m = !1
2398
+ isPersonalize: u = !1
2388
2399
  }) => {
2389
- const g = W(null), [h, r] = H({ isStart: !0, isEnd: !1 }), d = Q(), c = ee(), f = en(m), { resolvedItems: _ } = Ja(
2400
+ const h = W(null), [f, r] = H({ isStart: !0, isEnd: !1 }), c = Q(), m = ee(), g = an(u), { resolvedItems: y } = Ka(
2390
2401
  e,
2391
- f
2392
- ), I = f ? _ : Array.isArray(e) ? e : [], R = () => {
2393
- var k;
2394
- d({
2402
+ g
2403
+ ), T = g ? y : Array.isArray(e) ? e : [], C = () => {
2404
+ var N;
2405
+ c({
2395
2406
  element: "virtuales_prev",
2396
- label: `Landing: ${c} - OraculoSeccionVirtuales${f ? " - personalize" : ""} - Anterior`,
2407
+ label: `Landing: ${m} - OraculoSeccionVirtuales${g ? " - personalize" : ""} - Anterior`,
2397
2408
  target: "prev",
2398
2409
  event_type: "click",
2399
2410
  module_id: 301,
@@ -2401,12 +2412,12 @@ const Va = (e, a) => {
2401
2412
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
2402
2413
  },
2403
2414
  tags: { section: "OraculoSeccionVirtuales" }
2404
- }), (k = g.current) == null || k.prev();
2405
- }, T = () => {
2406
- var k;
2407
- d({
2415
+ }), (N = h.current) == null || N.prev();
2416
+ }, I = () => {
2417
+ var N;
2418
+ c({
2408
2419
  element: "virtuales_next",
2409
- label: `Landing: ${c} - OraculoSeccionVirtuales${f ? " - personalize" : ""} - Siguiente`,
2420
+ label: `Landing: ${m} - OraculoSeccionVirtuales${g ? " - personalize" : ""} - Siguiente`,
2410
2421
  target: "next",
2411
2422
  event_type: "click",
2412
2423
  module_id: 301,
@@ -2414,11 +2425,11 @@ const Va = (e, a) => {
2414
2425
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
2415
2426
  },
2416
2427
  tags: { section: "OraculoSeccionVirtuales" }
2417
- }), (k = g.current) == null || k.next();
2418
- }, $ = () => {
2419
- if (d({
2428
+ }), (N = h.current) == null || N.next();
2429
+ }, k = () => {
2430
+ if (c({
2420
2431
  element: "virtuales_view_more",
2421
- label: `Landing: ${c} - OraculoSeccionVirtuales${f ? " - personalize" : ""} - Ver más`,
2432
+ label: `Landing: ${m} - OraculoSeccionVirtuales${g ? " - personalize" : ""} - Ver más`,
2422
2433
  target: "https://www.olimpo.bet/juegos-virtuales",
2423
2434
  event_type: "click",
2424
2435
  module_id: 301,
@@ -2431,7 +2442,7 @@ const Va = (e, a) => {
2431
2442
  return;
2432
2443
  }
2433
2444
  typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/juegos-virtuales");
2434
- }, L = !e || e.length === 0, A = be("(max-width:768px)"), N = L ? an(l, s) : tn(e, l, s);
2445
+ }, A = !e || e.length === 0, R = be("(max-width:768px)"), M = A ? on(l, s) : nn(e, l, s);
2435
2446
  return /* @__PURE__ */ t("section", { children: /* @__PURE__ */ p(j, { direction: "column", spacing: 2, useFlexGap: !0, children: [
2436
2447
  /* @__PURE__ */ p(
2437
2448
  U,
@@ -2453,9 +2464,9 @@ const Va = (e, a) => {
2453
2464
  ariaLabel: "Anterior",
2454
2465
  variant: "secondary",
2455
2466
  iconOnly: !0,
2456
- leftIcon: /* @__PURE__ */ t(Qe, {}),
2457
- onClick: R,
2458
- disabled: h.isStart
2467
+ leftIcon: /* @__PURE__ */ t(et, {}),
2468
+ onClick: C,
2469
+ disabled: f.isStart
2459
2470
  }
2460
2471
  ),
2461
2472
  /* @__PURE__ */ t(
@@ -2464,21 +2475,21 @@ const Va = (e, a) => {
2464
2475
  ariaLabel: "Siguiente",
2465
2476
  variant: "secondary",
2466
2477
  iconOnly: !0,
2467
- rightIcon: /* @__PURE__ */ t(et, {}),
2468
- onClick: T,
2469
- disabled: h.isEnd
2478
+ rightIcon: /* @__PURE__ */ t(tt, {}),
2479
+ onClick: I,
2480
+ disabled: f.isEnd
2470
2481
  }
2471
2482
  )
2472
2483
  ] }),
2473
- /* @__PURE__ */ t(U, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(K, { variant: "secondary", onClick: $, children: "Ver más" }) })
2484
+ /* @__PURE__ */ t(U, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(K, { variant: "secondary", onClick: k, children: "Ver más" }) })
2474
2485
  ]
2475
2486
  }
2476
2487
  ),
2477
2488
  /* @__PURE__ */ t(
2478
2489
  ce,
2479
2490
  {
2480
- ref: g,
2481
- items: N,
2491
+ ref: h,
2492
+ items: M,
2482
2493
  perPage: void 0,
2483
2494
  gap: "16px",
2484
2495
  breakpoints: {
@@ -2499,56 +2510,54 @@ const Va = (e, a) => {
2499
2510
  }
2500
2511
  },
2501
2512
  enableHorizontalWheel: !0,
2502
- showRightGradient: !0,
2503
- options: { autoWidth: !0, trimSpace: "move" },
2504
- showRightGradient: !A,
2513
+ showRightGradient: !R,
2505
2514
  options: { autoWidth: !0, trimSpace: "move" },
2506
- renderItem: (k) => /* @__PURE__ */ t("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ t(
2507
- it,
2515
+ renderItem: (N) => /* @__PURE__ */ t("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ t(
2516
+ rt,
2508
2517
  {
2509
- items: k.items,
2510
- layout: k.kind === "mosaic" ? "mosaic" : "grid",
2511
- loading: L,
2512
- onClick: (y) => {
2513
- if (L) return;
2514
- const B = I.find(
2515
- (C, P) => String(mt(C, P)) === String(y.id)
2518
+ items: N.items,
2519
+ layout: N.kind === "mosaic" ? "mosaic" : "grid",
2520
+ loading: A,
2521
+ onClick: (_) => {
2522
+ if (A) return;
2523
+ const L = T.find(
2524
+ (O, P) => String(mt(O, P)) === String(_.id)
2516
2525
  );
2517
- if (!B) {
2526
+ if (!L) {
2518
2527
  console.warn(
2519
2528
  "[virtuales] no se encontró game para id:",
2520
- y.id
2529
+ _.id
2521
2530
  );
2522
2531
  return;
2523
2532
  }
2524
- o == null || o(B), d({
2533
+ o == null || o(L), c({
2525
2534
  element: "virtuales_game_card",
2526
- label: `Landing: ${c} - OraculoSeccionVirtuales${f ? " - personalize" : ""} - Game: ${String(B.machine || "unknown")}`,
2527
- target: String(B.machine || "unknown"),
2535
+ label: `Landing: ${m} - OraculoSeccionVirtuales${g ? " - personalize" : ""} - Game: ${String(L.machine || "unknown")}`,
2536
+ target: String(L.machine || "unknown"),
2528
2537
  event_type: "click",
2529
2538
  module_id: 301,
2530
2539
  metadata: {
2531
2540
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
2532
2541
  },
2533
2542
  tags: {
2534
- game_name: String(B.machine || "unknown"),
2543
+ game_name: String(L.machine || "unknown"),
2535
2544
  section: a || "Virtuales"
2536
2545
  }
2537
2546
  });
2538
- const z = le("showIframe"), O = le("loadMachine");
2539
- z == null || z(), O == null || O(
2540
- B,
2547
+ const z = le("showIframe"), E = le("loadMachine");
2548
+ z == null || z(), E == null || E(
2549
+ L,
2541
2550
  !1,
2542
- f ? "VIRTUALES_PERSONALIZE" : "VIRTUALES"
2551
+ g ? "VIRTUALES_PERSONALIZE" : "VIRTUALES"
2543
2552
  );
2544
2553
  }
2545
2554
  }
2546
2555
  ) }),
2547
- onMove: ({ isStart: k, isEnd: y }) => r({ isStart: k, isEnd: y })
2556
+ onMove: ({ isStart: N, isEnd: _ }) => r({ isStart: N, isEnd: _ })
2548
2557
  }
2549
2558
  )
2550
2559
  ] }) });
2551
- }, on = (e) => ({
2560
+ }, ln = (e) => ({
2552
2561
  position: "relative",
2553
2562
  py: 8,
2554
2563
  color: "#fff",
@@ -2562,15 +2571,15 @@ const Va = (e, a) => {
2562
2571
  backgroundRepeat: "no-repeat",
2563
2572
  backgroundPosition: "center",
2564
2573
  backgroundSize: "cover"
2565
- }), De = {
2574
+ }), We = {
2566
2575
  textAlign: "center",
2567
2576
  lineHeight: 1.1,
2568
2577
  mb: 1.5
2569
- }, We = {
2578
+ }, Ge = {
2570
2579
  display: "inline-block",
2571
2580
  fontWeight: 600,
2572
2581
  fontSize: 24
2573
- }, Ge = {
2582
+ }, je = {
2574
2583
  display: "inline-block",
2575
2584
  fontSize: 24,
2576
2585
  lineHeight: 1.1,
@@ -2580,92 +2589,92 @@ const Va = (e, a) => {
2580
2589
  0 0 6px rgba(255, 255, 255, .6),
2581
2590
  0 1px 0 rgba(137, 137, 137, .85)
2582
2591
  `
2583
- }, rn = ({
2592
+ }, sn = ({
2584
2593
  headline: e,
2585
2594
  headline2: a,
2586
2595
  items: n,
2587
2596
  backgroundImageUrl: o
2588
2597
  }) => {
2589
- const i = Q(), l = ee(), s = be("(max-width: 767px)"), m = n.length > 1, g = W(null), h = W(null), r = W(!1), d = W(!1), [c, f] = H(0), [_, I] = H({ isStart: !0, isEnd: !1 });
2598
+ const i = Q(), l = ee(), s = be("(max-width: 767px)"), u = n.length > 1, h = W(null), f = W(null), r = W(!1), c = W(!1), [m, g] = H(0), [y, T] = H({ isStart: !0, isEnd: !1 });
2590
2599
  J(() => {
2591
- const O = setTimeout(() => {
2600
+ const E = setTimeout(() => {
2592
2601
  r.current = !0;
2593
2602
  }, 500);
2594
- return () => clearTimeout(O);
2603
+ return () => clearTimeout(E);
2595
2604
  }, []);
2596
- const R = W(_);
2605
+ const C = W(y);
2597
2606
  J(() => {
2598
- R.current = _;
2599
- }, [_]);
2600
- const T = W(!1), $ = W(null), L = n == null ? void 0 : n[c], A = te(
2607
+ C.current = y;
2608
+ }, [y]);
2609
+ const I = W(!1), k = W(null), A = n == null ? void 0 : n[m], R = te(
2601
2610
  () => {
2602
- var O, C;
2603
- return (C = (O = L == null ? void 0 : L.backgroundImageUrl) != null ? O : o) != null ? C : "";
2611
+ var E, O;
2612
+ return (O = (E = A == null ? void 0 : A.backgroundImageUrl) != null ? E : o) != null ? O : "";
2604
2613
  },
2605
- [L, o]
2606
- ), N = on(A), k = !n || n.length === 0, y = (O, C) => {
2614
+ [A, o]
2615
+ ), M = ln(R), N = !n || n.length === 0, _ = (E, O) => {
2607
2616
  i({
2608
2617
  element: "welcome_banner_button",
2609
- label: `OraculoSeccionBonoBienvenida - Banner button click: ${O.title || "OraculoSeccionBonoBienvenida - Banner " + (C + 1)}`,
2618
+ label: `OraculoSeccionBonoBienvenida - Banner button click: ${E.title || "OraculoSeccionBonoBienvenida - Banner " + (O + 1)}`,
2610
2619
  target: "action",
2611
2620
  event_type: "click",
2612
2621
  module_id: 301,
2613
2622
  metadata: {
2614
2623
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
2615
- banner_position: C + 1,
2624
+ banner_position: O + 1,
2616
2625
  banner_total: (n == null ? void 0 : n.length) || 0
2617
2626
  },
2618
2627
  tags: {
2619
- banner_title: O.title || "no_title",
2620
- button_text: O.buttonText || "no_text"
2628
+ banner_title: E.title || "no_title",
2629
+ button_text: E.buttonText || "no_text"
2621
2630
  }
2622
- }), O.onButtonClick && O.onButtonClick();
2623
- }, B = (O) => {
2631
+ }), E.onButtonClick && E.onButtonClick();
2632
+ }, L = (E) => {
2624
2633
  if (!r.current) return;
2625
- if (d.current) {
2626
- d.current = !1;
2634
+ if (c.current) {
2635
+ c.current = !1;
2627
2636
  return;
2628
2637
  }
2629
- const C = n == null ? void 0 : n[O];
2638
+ const O = n == null ? void 0 : n[E];
2630
2639
  i({
2631
2640
  element: "welcome_banner_carousel",
2632
- label: `Landing: ${l} - OraculoSeccionBonoBienvenida - Banner view: ${(C == null ? void 0 : C.title) || "OraculoSeccionBonoBienvenida - Banner " + (O + 1)}`,
2641
+ label: `Landing: ${l} - OraculoSeccionBonoBienvenida - Banner view: ${(O == null ? void 0 : O.title) || "OraculoSeccionBonoBienvenida - Banner " + (E + 1)}`,
2633
2642
  target: "no_url",
2634
2643
  event_type: "view",
2635
2644
  module_id: 301,
2636
2645
  metadata: {
2637
2646
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
2638
- slide_index: O + 1,
2647
+ slide_index: E + 1,
2639
2648
  total_slides: (n == null ? void 0 : n.length) || 0,
2640
2649
  interaction_type: "manual_slide"
2641
2650
  },
2642
2651
  tags: {
2643
- banner_position: String(O + 1),
2644
- banner_title: (C == null ? void 0 : C.title) || "no_title"
2652
+ banner_position: String(E + 1),
2653
+ banner_title: (O == null ? void 0 : O.title) || "no_title"
2645
2654
  }
2646
2655
  });
2647
2656
  };
2648
2657
  J(() => {
2649
- const O = h.current;
2650
- if (!O) return;
2651
- const C = 6, P = 380, q = (b) => {
2658
+ const E = f.current;
2659
+ if (!E) return;
2660
+ const O = 6, P = 380, q = (b) => {
2652
2661
  var x, S;
2653
- if (k || b.ctrlKey || T.current) return;
2654
- const F = b.deltaX, E = b.deltaY;
2655
- if (Math.abs(F) <= Math.abs(E) || Math.abs(F) < C) return;
2656
- const u = F > 0;
2657
- u && R.current.isEnd || !u && R.current.isStart || (b.preventDefault(), T.current = !0, u ? (x = g.current) == null || x.next() : (S = g.current) == null || S.prev(), $.current && window.clearTimeout($.current), $.current = window.setTimeout(() => {
2658
- T.current = !1;
2662
+ if (N || b.ctrlKey || I.current) return;
2663
+ const F = b.deltaX, $ = b.deltaY;
2664
+ if (Math.abs(F) <= Math.abs($) || Math.abs(F) < O) return;
2665
+ const d = F > 0;
2666
+ d && C.current.isEnd || !d && C.current.isStart || (b.preventDefault(), I.current = !0, d ? (x = h.current) == null || x.next() : (S = h.current) == null || S.prev(), k.current && window.clearTimeout(k.current), k.current = window.setTimeout(() => {
2667
+ I.current = !1;
2659
2668
  }, P));
2660
2669
  };
2661
- return O.addEventListener("wheel", q, { passive: !1 }), () => {
2662
- O.removeEventListener("wheel", q), $.current && window.clearTimeout($.current);
2670
+ return E.addEventListener("wheel", q, { passive: !1 }), () => {
2671
+ E.removeEventListener("wheel", q), k.current && window.clearTimeout(k.current);
2663
2672
  };
2664
- }, [k]);
2665
- const z = (O, C, P) => {
2666
- var F, E;
2667
- const q = (F = O.headline) != null ? F : e, b = (E = O.headline2) != null ? E : a;
2668
- return C ? /* @__PURE__ */ p(
2673
+ }, [N]);
2674
+ const z = (E, O, P) => {
2675
+ var F, $;
2676
+ const q = (F = E.headline) != null ? F : e, b = ($ = E.headline2) != null ? $ : a;
2677
+ return O ? /* @__PURE__ */ p(
2669
2678
  U,
2670
2679
  {
2671
2680
  sx: {
@@ -2687,48 +2696,48 @@ const Va = (e, a) => {
2687
2696
  justifyContent: "flex-start",
2688
2697
  minHeight: "100%"
2689
2698
  },
2690
- children: /* @__PURE__ */ p(U, { sx: { ...De, textAlign: "left", mb: 0 }, children: [
2691
- q && /* @__PURE__ */ t(ie, { component: "span", sx: We, children: q }),
2699
+ children: /* @__PURE__ */ p(U, { sx: { ...We, textAlign: "left", mb: 0 }, children: [
2700
+ q && /* @__PURE__ */ t(ie, { component: "span", sx: Ge, children: q }),
2692
2701
  b && /* @__PURE__ */ p(ae, { children: [
2693
2702
  /* @__PURE__ */ t("br", {}),
2694
- /* @__PURE__ */ t(ie, { component: "span", sx: Ge, children: b })
2703
+ /* @__PURE__ */ t(ie, { component: "span", sx: je, children: b })
2695
2704
  ] })
2696
2705
  ] })
2697
2706
  }
2698
2707
  ),
2699
2708
  /* @__PURE__ */ t(U, { sx: { display: "flex", justifyContent: "center", alignItems: "center" }, children: /* @__PURE__ */ t(U, { sx: { width: "100%", maxWidth: 600, mx: "auto" }, children: /* @__PURE__ */ t(
2700
- Ue,
2709
+ qe,
2701
2710
  {
2702
- ...O,
2703
- onButtonClick: () => y(O, P),
2711
+ ...E,
2712
+ onButtonClick: () => _(E, P),
2704
2713
  variant: "large"
2705
2714
  }
2706
2715
  ) }) })
2707
2716
  ]
2708
2717
  }
2709
2718
  ) : /* @__PURE__ */ p(U, { sx: { textAlign: "center" }, children: [
2710
- (q || b) && /* @__PURE__ */ p(U, { sx: De, children: [
2711
- q && /* @__PURE__ */ t(ie, { component: "span", sx: We, children: q }),
2719
+ (q || b) && /* @__PURE__ */ p(U, { sx: We, children: [
2720
+ q && /* @__PURE__ */ t(ie, { component: "span", sx: Ge, children: q }),
2712
2721
  b && /* @__PURE__ */ p(ae, { children: [
2713
2722
  /* @__PURE__ */ t("br", {}),
2714
- /* @__PURE__ */ t(ie, { component: "span", sx: Ge, children: b })
2723
+ /* @__PURE__ */ t(ie, { component: "span", sx: je, children: b })
2715
2724
  ] })
2716
2725
  ] }),
2717
2726
  /* @__PURE__ */ t(U, { sx: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(
2718
- Ue,
2727
+ qe,
2719
2728
  {
2720
- ...O,
2721
- onButtonClick: () => y(O, P),
2729
+ ...E,
2730
+ onButtonClick: () => _(E, P),
2722
2731
  variant: "small"
2723
2732
  }
2724
2733
  ) })
2725
2734
  ] });
2726
2735
  };
2727
- return /* @__PURE__ */ p(U, { component: "section", sx: N, children: [
2728
- /* @__PURE__ */ t("div", { ref: h, style: { width: "100%" }, children: /* @__PURE__ */ t(
2736
+ return /* @__PURE__ */ p(U, { component: "section", sx: M, children: [
2737
+ /* @__PURE__ */ t("div", { ref: f, style: { width: "100%" }, children: /* @__PURE__ */ t(
2729
2738
  ce,
2730
2739
  {
2731
- ref: g,
2740
+ ref: h,
2732
2741
  items: n,
2733
2742
  perPage: 1,
2734
2743
  gap: "0px",
@@ -2742,51 +2751,51 @@ const Va = (e, a) => {
2742
2751
  // arrows: false,
2743
2752
  // drag: true,
2744
2753
  },
2745
- renderItem: (O, C) => /* @__PURE__ */ t(U, { sx: { width: "100%" }, children: z(O, !s, C) }),
2746
- onMove: ({ index: O, isStart: C, isEnd: P }) => {
2747
- f(O), typeof C == "boolean" && typeof P == "boolean" && I({ isStart: C, isEnd: P }), B(O);
2754
+ renderItem: (E, O) => /* @__PURE__ */ t(U, { sx: { width: "100%" }, children: z(E, !s, O) }),
2755
+ onMove: ({ index: E, isStart: O, isEnd: P }) => {
2756
+ g(E), typeof O == "boolean" && typeof P == "boolean" && T({ isStart: O, isEnd: P }), L(E);
2748
2757
  }
2749
2758
  }
2750
2759
  ) }),
2751
- m && /* @__PURE__ */ t(U, { sx: { mt: 2, display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(
2752
- tt,
2760
+ u && /* @__PURE__ */ t(U, { sx: { mt: 2, display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(
2761
+ at,
2753
2762
  {
2754
2763
  total: n.length,
2755
- active: c,
2756
- onSelect: (O) => {
2757
- var C;
2764
+ active: m,
2765
+ onSelect: (E) => {
2766
+ var O;
2758
2767
  i({
2759
2768
  element: "welcome_banner_dots",
2760
- label: `Landing: ${l} - OraculoSeccionBonoBienvenida - Dot navigation: Banner ${O + 1}`,
2769
+ label: `Landing: ${l} - OraculoSeccionBonoBienvenida - Dot navigation: Banner ${E + 1}`,
2761
2770
  target: "no_url",
2762
2771
  event_type: "click",
2763
2772
  module_id: 301,
2764
2773
  metadata: {
2765
2774
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
2766
- dot_index: O + 1,
2775
+ dot_index: E + 1,
2767
2776
  total_dots: n.length
2768
2777
  },
2769
2778
  tags: {
2770
2779
  navigation_type: "dot_click"
2771
2780
  }
2772
- }), f(O), (C = g.current) == null || C.go(O);
2781
+ }), g(E), (O = h.current) == null || O.go(E);
2773
2782
  }
2774
2783
  }
2775
2784
  ) })
2776
2785
  ] });
2777
- }, ln = ({
2786
+ }, cn = ({
2778
2787
  className: e = "",
2779
2788
  fullBleed: a = !0,
2780
2789
  items: n,
2781
2790
  selectedIndex: o = 0,
2782
2791
  ariaLabel: i
2783
2792
  }) => {
2784
- const l = W(null), s = W(null), m = Q(), g = ee();
2793
+ const l = W(null), s = W(null), u = Q(), h = ee();
2785
2794
  if (!n) return null;
2786
- const h = () => {
2787
- m({
2795
+ const f = () => {
2796
+ u({
2788
2797
  element: "club_olimpo_button",
2789
- label: `Landing: ${g} - OraculoSeccionClubOlimpo - Click: Club Olimpo`,
2798
+ label: `Landing: ${h} - OraculoSeccionClubOlimpo - Click: Club Olimpo`,
2790
2799
  target: "https://www.olimpo.bet/conoce-club-olimpo",
2791
2800
  event_type: "click",
2792
2801
  module_id: 301,
@@ -2798,15 +2807,15 @@ const Va = (e, a) => {
2798
2807
  }, r = Array.isArray(n) ? n[o] : n;
2799
2808
  yt(() => {
2800
2809
  if (!l.current || !s.current || typeof ResizeObserver == "undefined") return;
2801
- const c = l.current, f = s.current, _ = () => {
2802
- c.style.setProperty(
2810
+ const m = l.current, g = s.current, y = () => {
2811
+ m.style.setProperty(
2803
2812
  "--orc-co-bottomH",
2804
- `${f.offsetHeight + 16}px`
2813
+ `${g.offsetHeight + 16}px`
2805
2814
  );
2806
- }, I = new ResizeObserver(_);
2807
- return I.observe(f), _(), () => I.disconnect();
2815
+ }, T = new ResizeObserver(y);
2816
+ return T.observe(g), y(), () => T.disconnect();
2808
2817
  }, []);
2809
- const d = [
2818
+ const c = [
2810
2819
  "orc-co-wrap",
2811
2820
  a ? "orc-co-fullBleed" : "",
2812
2821
  e
@@ -2815,13 +2824,13 @@ const Va = (e, a) => {
2815
2824
  "section",
2816
2825
  {
2817
2826
  ref: l,
2818
- className: d,
2827
+ className: c,
2819
2828
  "aria-label": i || r.imgAlt || "Club Olimpo",
2820
2829
  children: /* @__PURE__ */ t("div", { ref: s, children: /* @__PURE__ */ t(
2821
2830
  ua,
2822
2831
  {
2823
2832
  text: r.text,
2824
- onClick: h,
2833
+ onClick: f,
2825
2834
  imgAlt: r.imgAlt,
2826
2835
  buttonLabel: r.buttonLabel,
2827
2836
  imgSrcMobile: r.imgMobile,
@@ -2831,38 +2840,38 @@ const Va = (e, a) => {
2831
2840
  ) })
2832
2841
  }
2833
2842
  );
2834
- }, sn = "oraculo__OraculoSeccionEventoCombinadas-module__controls___Zsta4", cn = "oraculo__OraculoSeccionEventoCombinadas-module__padding___vf-yF", je = {
2835
- controls: sn,
2836
- padding: cn
2837
- }, dn = (e) => {
2843
+ }, dn = "oraculo__OraculoSeccionEventoCombinadas-module__controls___Zsta4", un = "oraculo__OraculoSeccionEventoCombinadas-module__padding___vf-yF", He = {
2844
+ controls: dn,
2845
+ padding: un
2846
+ }, mn = (e) => {
2838
2847
  var a, n;
2839
2848
  return (a = e.outcome) != null && a.id ? [e.outcome.id] : e.type === "BET_BUILDER" && ((n = e.group) != null && n.groups) ? e.group.groups.flatMap((o) => {
2840
2849
  var i, l;
2841
2850
  return (l = (i = o.outcomes) == null ? void 0 : i.map((s) => s.id)) != null ? l : [];
2842
2851
  }) : [];
2843
2852
  };
2844
- function un(e, a, n) {
2853
+ function pn(e, a, n) {
2845
2854
  return n ? n.map((o) => {
2846
- var r, d;
2847
- const i = o.prePackCouponRows.flatMap((c) => dn(c).map((f) => ({ eventId: c.eventId, outcomeId: f }))), l = new Set(i.map((c) => c.eventId)), s = new Set(i.map((c) => c.outcomeId)), m = new Map(i.map((c, f) => [c.outcomeId, f])), g = {};
2848
- for (const c of a) {
2849
- if (!l.has(c.eventId)) continue;
2850
- const f = c.outcomes.filter((_) => s.has(_.id)).map((_) => ({ ..._, position: m.get(_.id) }));
2851
- f.length && ((d = g[r = c.eventId]) != null || (g[r] = []), g[c.eventId].push({ ...c, outcomes: f }));
2855
+ var r, c;
2856
+ const i = o.prePackCouponRows.flatMap((m) => mn(m).map((g) => ({ eventId: m.eventId, outcomeId: g }))), l = new Set(i.map((m) => m.eventId)), s = new Set(i.map((m) => m.outcomeId)), u = new Map(i.map((m, g) => [m.outcomeId, g])), h = {};
2857
+ for (const m of a) {
2858
+ if (!l.has(m.eventId)) continue;
2859
+ const g = m.outcomes.filter((y) => s.has(y.id)).map((y) => ({ ...y, position: u.get(y.id) }));
2860
+ g.length && ((c = h[r = m.eventId]) != null || (h[r] = []), h[m.eventId].push({ ...m, outcomes: g }));
2852
2861
  }
2853
- const h = e.filter((c) => l.has(c.id)).map((c) => {
2854
- var f;
2855
- return { ...c, betoffers: (f = g[c.id]) != null ? f : [] };
2862
+ const f = e.filter((m) => l.has(m.id)).map((m) => {
2863
+ var g;
2864
+ return { ...m, betoffers: (g = h[m.id]) != null ? g : [] };
2856
2865
  });
2857
2866
  return {
2858
2867
  couponId: o.id,
2859
2868
  status: o.status,
2860
- combinadoTotal: mn(o.prePackCouponRows),
2861
- events: h
2869
+ combinadoTotal: fn(o.prePackCouponRows),
2870
+ events: f
2862
2871
  };
2863
2872
  }) : [];
2864
2873
  }
2865
- function mn(e) {
2874
+ function fn(e) {
2866
2875
  if (!Array.isArray(e) || e.length === 0) return 0;
2867
2876
  let a = 1;
2868
2877
  for (const n of e) {
@@ -2871,16 +2880,16 @@ function mn(e) {
2871
2880
  }
2872
2881
  return Math.floor(a * 100) / 100;
2873
2882
  }
2874
- const pn = ue.memo(Ca);
2875
- function fn({
2883
+ const gn = ue.memo(Ca);
2884
+ function hn({
2876
2885
  items: e,
2877
2886
  title: a = "Combinadas del Olimpo",
2878
2887
  iconUrl: n = "https://stg-www.contodobet.com/static/img/landing/EventoCombinada/rayoIcon.svg",
2879
2888
  onViewMore: o,
2880
2889
  className: i = ""
2881
2890
  }) {
2882
- const l = Q(), s = ee(), m = W(null), [g, h] = H({ isStart: !0, isEnd: !1 }), [r, d] = H([]), c = "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", f = () => {
2883
- var A;
2891
+ const l = Q(), s = ee(), u = W(null), [h, f] = H({ isStart: !0, isEnd: !1 }), [r, c] = H([]), m = "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", g = () => {
2892
+ var R;
2884
2893
  l({
2885
2894
  element: "evento_combinadas_prev",
2886
2895
  label: `Landing: ${s} - OraculoSeccionEventoCombinadas - Click: Anterior`,
@@ -2890,9 +2899,9 @@ function fn({
2890
2899
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
2891
2900
  },
2892
2901
  tags: { section: "OraculoSeccionEventoCombinadas" }
2893
- }), (A = m.current) == null || A.prev();
2894
- }, _ = () => {
2895
- var A;
2902
+ }), (R = u.current) == null || R.prev();
2903
+ }, y = () => {
2904
+ var R;
2896
2905
  l({
2897
2906
  element: "evento_combinadas_next",
2898
2907
  label: `Landing: ${s} - OraculoSeccionEventoCombinadas - Click: Siguiente`,
@@ -2902,8 +2911,8 @@ function fn({
2902
2911
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
2903
2912
  },
2904
2913
  tags: { section: "OraculoSeccionEventoCombinadas" }
2905
- }), (A = m.current) == null || A.next();
2906
- }, I = () => {
2914
+ }), (R = u.current) == null || R.next();
2915
+ }, T = () => {
2907
2916
  l({
2908
2917
  element: "evento_combinadas_ver_mas",
2909
2918
  label: `Landing: ${s} - OraculoSeccionEventoCombinadas - Click: Ver más`,
@@ -2914,34 +2923,34 @@ function fn({
2914
2923
  },
2915
2924
  tags: { section: "OraculoSeccionEventoCombinadas" }
2916
2925
  }), Sa();
2917
- }, R = te(() => r.filter((A) => A.combinadoTotal !== null), [r]);
2918
- async function T() {
2919
- var A, N, k;
2926
+ }, C = te(() => r.filter((R) => R.combinadoTotal !== null), [r]);
2927
+ async function I() {
2928
+ var R, M, N;
2920
2929
  try {
2921
- const B = await (await fetch(c)).json(), z = (k = (N = (A = B == null ? void 0 : B.group) == null ? void 0 : A.groups) == null ? void 0 : N[0]) == null ? void 0 : k.id;
2930
+ const L = await (await fetch(m)).json(), z = (N = (M = (R = L == null ? void 0 : L.group) == null ? void 0 : R.groups) == null ? void 0 : M[0]) == null ? void 0 : N.id;
2922
2931
  if (!z) {
2923
2932
  console.error("Could not extract group ID");
2924
2933
  return;
2925
2934
  }
2926
- const O = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${z}.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764283566783&prePackCouponTags=CUSTOM`, P = await (await fetch(O)).json();
2927
- d(un(P.events, P.betOffers, P.prePackCoupons));
2928
- } catch (y) {
2929
- console.error("loadDataEventSpecial error:", y);
2935
+ const E = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${z}.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764283566783&prePackCouponTags=CUSTOM`, P = await (await fetch(E)).json();
2936
+ c(pn(P.events, P.betOffers, P.prePackCoupons));
2937
+ } catch (_) {
2938
+ console.error("loadDataEventSpecial error:", _);
2930
2939
  }
2931
2940
  }
2932
2941
  J(() => {
2933
- T();
2942
+ I();
2934
2943
  }, []);
2935
- const $ = i || void 0, L = be("(max-width:768px)");
2936
- return R.length === 0 ? null : /* @__PURE__ */ t("section", { className: $, style: {
2944
+ const k = i || void 0, A = be("(max-width:768px)");
2945
+ return C.length === 0 ? null : /* @__PURE__ */ t("section", { className: k, style: {
2937
2946
  // paddingLeft: 16,
2938
2947
  // paddingRight: 16,
2939
2948
  width: "100%",
2940
2949
  boxSizing: "border-box"
2941
2950
  }, children: /* @__PURE__ */ p(j, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
2942
- /* @__PURE__ */ t("div", { className: je.padding, children: /* @__PURE__ */ p(re, { spacing: 1.5, columns: "1fr auto ", justify: "start", children: [
2951
+ /* @__PURE__ */ t("div", { className: He.padding, children: /* @__PURE__ */ p(re, { spacing: 1.5, columns: "1fr auto ", justify: "start", children: [
2943
2952
  /* @__PURE__ */ t(se, { title: a, iconUrl: n, size: "md" }),
2944
- /* @__PURE__ */ p("div", { className: je.controls, children: [
2953
+ /* @__PURE__ */ p("div", { className: He.controls, children: [
2945
2954
  /* @__PURE__ */ p(re, { spacing: 1, columns: "auto auto", children: [
2946
2955
  /* @__PURE__ */ t(
2947
2956
  K,
@@ -2950,8 +2959,8 @@ function fn({
2950
2959
  variant: "secondary",
2951
2960
  iconOnly: !0,
2952
2961
  leftIcon: /* @__PURE__ */ t(Te, {}),
2953
- onClick: f,
2954
- disabled: g.isStart
2962
+ onClick: g,
2963
+ disabled: h.isStart
2955
2964
  }
2956
2965
  ),
2957
2966
  /* @__PURE__ */ t(
@@ -2961,35 +2970,35 @@ function fn({
2961
2970
  variant: "secondary",
2962
2971
  iconOnly: !0,
2963
2972
  rightIcon: /* @__PURE__ */ t(ke, {}),
2964
- onClick: _,
2965
- disabled: g.isEnd
2973
+ onClick: y,
2974
+ disabled: h.isEnd
2966
2975
  }
2967
2976
  )
2968
2977
  ] }),
2969
- /* @__PURE__ */ t(K, { variant: "secondary", onClick: I, children: "Ver más" })
2978
+ /* @__PURE__ */ t(K, { variant: "secondary", onClick: T, children: "Ver más" })
2970
2979
  ] })
2971
2980
  ] }) }),
2972
2981
  /* @__PURE__ */ t(
2973
2982
  ce,
2974
2983
  {
2975
- ref: m,
2976
- items: R,
2984
+ ref: u,
2985
+ items: C,
2977
2986
  perPage: void 0,
2978
2987
  gap: "16px",
2979
2988
  options: { autoWidth: !0, trimSpace: "move" },
2980
2989
  useIndexAsKey: !0,
2981
2990
  enableHorizontalWheel: !0,
2982
- showRightGradient: !L,
2991
+ showRightGradient: !A,
2983
2992
  breakpoints: {
2984
2993
  768: { perPage: 1.2, gap: "12px", padding: { left: "24px", right: "24px" } }
2985
2994
  },
2986
- renderItem: (A) => /* @__PURE__ */ t(pn, { coupon: A }),
2987
- onMove: ({ isStart: A, isEnd: N }) => h({ isStart: A, isEnd: N })
2995
+ renderItem: (R) => /* @__PURE__ */ t(gn, { coupon: R }),
2996
+ onMove: ({ isStart: R, isEnd: M }) => f({ isStart: R, isEnd: M })
2988
2997
  }
2989
2998
  )
2990
2999
  ] }) });
2991
3000
  }
2992
- function gn({}) {
3001
+ function bn({}) {
2993
3002
  return /* @__PURE__ */ t(
2994
3003
  "div",
2995
3004
  {
@@ -3023,15 +3032,15 @@ function gn({}) {
3023
3032
  }
3024
3033
  );
3025
3034
  }
3026
- const hn = "oraculo__FadeItemWrapper-module__fadeWrapper___kFOH4", bn = {
3027
- fadeWrapper: hn
3035
+ const vn = "oraculo__FadeItemWrapper-module__fadeWrapper___kFOH4", _n = {
3036
+ fadeWrapper: vn
3028
3037
  };
3029
3038
  function Ie({ children: e }) {
3030
- return /* @__PURE__ */ t("div", { className: bn.fadeWrapper, children: e });
3039
+ return /* @__PURE__ */ t("div", { className: _n.fadeWrapper, children: e });
3031
3040
  }
3032
- const vn = "oraculo__OraculoSeccionEventoEnVivo-module__padding___Sh8tD", _n = {
3033
- padding: vn
3034
- }, yn = (e) => {
3041
+ const yn = "oraculo__OraculoSeccionEventoEnVivo-module__padding___Sh8tD", xn = {
3042
+ padding: yn
3043
+ }, wn = (e) => {
3035
3044
  const a = ["esports", "cyber"];
3036
3045
  return e.filter((n) => {
3037
3046
  var i;
@@ -3039,19 +3048,19 @@ const vn = "oraculo__OraculoSeccionEventoEnVivo-module__padding___Sh8tD", _n = {
3039
3048
  const o = ((i = n.event.group) == null ? void 0 : i.toLowerCase()) || "";
3040
3049
  return !a.some((l) => o.includes(l));
3041
3050
  });
3042
- }, xn = ue.memo(ka);
3043
- function wn({
3051
+ }, Sn = ue.memo(ka);
3052
+ function Cn({
3044
3053
  items: e,
3045
3054
  title: a = "En vivo",
3046
3055
  iconUrl: n = "https://stg-www.contodobet.com/static/img/landing/EventoEnVivo/icon.svg",
3047
3056
  onViewMore: o,
3048
3057
  className: i = ""
3049
3058
  }) {
3050
- const l = "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 = W(null), [m, g] = H({ isStart: !0, isEnd: !1 }), [h, r] = H(null), [d, c] = H({}), [f, _] = H({ start: null, end: null }), I = W(!1), [R, T] = H(null), $ = W(!1), L = Q(), A = ee(), N = W(/* @__PURE__ */ new Map()), k = lt(f, 300), y = W(/* @__PURE__ */ new Set()), B = () => {
3051
- var E;
3052
- L({
3059
+ const l = "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 = W(null), [u, h] = H({ isStart: !0, isEnd: !1 }), [f, r] = H(null), [c, m] = H({}), [g, y] = H({ start: null, end: null }), T = W(!1), [C, I] = H(null), k = W(!1), A = Q(), R = ee(), M = W(/* @__PURE__ */ new Map()), N = st(g, 300), _ = W(/* @__PURE__ */ new Set()), L = () => {
3060
+ var $;
3061
+ A({
3053
3062
  element: "evento_en_vivo_prev",
3054
- label: `Landing: ${A} - OraculoSeccionEventoEnVivo - Anterior`,
3063
+ label: `Landing: ${R} - OraculoSeccionEventoEnVivo - Anterior`,
3055
3064
  target: "prev",
3056
3065
  event_type: "click",
3057
3066
  module_id: 301,
@@ -3059,12 +3068,12 @@ function wn({
3059
3068
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
3060
3069
  },
3061
3070
  tags: { section: "OraculoSeccionEventoEnVivo" }
3062
- }), (E = s.current) == null || E.prev();
3071
+ }), ($ = s.current) == null || $.prev();
3063
3072
  }, z = () => {
3064
- var E;
3065
- L({
3073
+ var $;
3074
+ A({
3066
3075
  element: "evento_en_vivo_next",
3067
- label: `Landing: ${A} - OraculoSeccionEventoEnVivo - Siguiente`,
3076
+ label: `Landing: ${R} - OraculoSeccionEventoEnVivo - Siguiente`,
3068
3077
  target: "next",
3069
3078
  event_type: "click",
3070
3079
  module_id: 301,
@@ -3072,11 +3081,11 @@ function wn({
3072
3081
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
3073
3082
  },
3074
3083
  tags: { section: "OraculoSeccionEventoEnVivo" }
3075
- }), (E = s.current) == null || E.next();
3076
- }, O = () => {
3077
- L({
3084
+ }), ($ = s.current) == null || $.next();
3085
+ }, E = () => {
3086
+ A({
3078
3087
  element: "evento_en_vivo_view_more",
3079
- label: `Landing: ${A} - OraculoSeccionEventoEnVivo - Ver más`,
3088
+ label: `Landing: ${R} - OraculoSeccionEventoEnVivo - Ver más`,
3080
3089
  target: "ver_mas",
3081
3090
  event_type: "click",
3082
3091
  module_id: 301,
@@ -3085,67 +3094,67 @@ function wn({
3085
3094
  },
3086
3095
  tags: { section: "OraculoSeccionEventoEnVivo" }
3087
3096
  }), xa();
3088
- }, C = xe(async () => {
3089
- var E;
3097
+ }, O = xe(async () => {
3098
+ var $;
3090
3099
  try {
3091
- if (!$.current) {
3092
- $.current = !0;
3100
+ if (!k.current) {
3101
+ k.current = !0;
3093
3102
  try {
3094
- const w = await (await fetch("https://api.mktolimpo.com/api/kambi/eventos/orden")).json(), M = ((E = w == null ? void 0 : w.data) == null ? void 0 : E.event_ids) || [], V = /* @__PURE__ */ new Map();
3095
- M.forEach((D, Z) => V.set(String(D), Z)), N.current = V;
3103
+ const w = await (await fetch("https://api.mktolimpo.com/api/kambi/eventos/orden")).json(), B = (($ = w == null ? void 0 : w.data) == null ? void 0 : $.event_ids) || [], V = /* @__PURE__ */ new Map();
3104
+ B.forEach((D, Z) => V.set(String(D), Z)), M.current = V;
3096
3105
  } catch (v) {
3097
3106
  console.error("Order fetch failed, using default sorting", v);
3098
3107
  }
3099
3108
  }
3100
- const u = await fetch(l);
3101
- if (!u.ok) throw new Error("Failed to fetch live events");
3102
- const x = await u.json(), S = yn(x.events);
3103
- if (N.current.size === 0)
3109
+ const d = await fetch(l);
3110
+ if (!d.ok) throw new Error("Failed to fetch live events");
3111
+ const x = await d.json(), S = wn(x.events);
3112
+ if (M.current.size === 0)
3104
3113
  r(S);
3105
3114
  else {
3106
- const v = [...S].sort((w, M) => {
3107
- const V = N.current.get(String(w.event.id)), D = N.current.get(String(M.event.id));
3115
+ const v = [...S].sort((w, B) => {
3116
+ const V = M.current.get(String(w.event.id)), D = M.current.get(String(B.event.id));
3108
3117
  return (V !== void 0 ? V : 1 / 0) - (D !== void 0 ? D : 1 / 0);
3109
3118
  });
3110
3119
  r(v);
3111
3120
  }
3112
- } catch (u) {
3113
- console.error("LoadData Error:", u);
3121
+ } catch (d) {
3122
+ console.error("LoadData Error:", d);
3114
3123
  }
3115
3124
  }, []);
3116
3125
  J(() => {
3117
- C();
3118
- const E = setInterval(C, 2e4);
3119
- return () => clearInterval(E);
3120
- }, [C]), J(() => {
3121
- if (k.start === null || k.end === null || !(h != null && h.length) || I.current)
3126
+ O();
3127
+ const $ = setInterval(O, 2e4);
3128
+ return () => clearInterval($);
3129
+ }, [O]), J(() => {
3130
+ if (N.start === null || N.end === null || !(f != null && f.length) || T.current)
3122
3131
  return;
3123
- const E = 3, u = Math.max(0, k.start - E), x = Math.min(h.length - 1, k.end + E), S = h.slice(u, x + 1).map((v) => {
3132
+ const $ = 3, d = Math.max(0, N.start - $), x = Math.min(f.length - 1, N.end + $), S = f.slice(d, x + 1).map((v) => {
3124
3133
  var w;
3125
3134
  return (w = v == null ? void 0 : v.event) == null ? void 0 : w.id;
3126
- }).filter((v) => v && !y.current.has(v));
3127
- S.length !== 0 && (S.forEach((v) => y.current.add(v)), I.current = !0, rt(S).then((v) => {
3128
- v != null && v.events && c((w) => ({
3135
+ }).filter((v) => v && !_.current.has(v));
3136
+ S.length !== 0 && (S.forEach((v) => _.current.add(v)), T.current = !0, lt(S).then((v) => {
3137
+ v != null && v.events && m((w) => ({
3129
3138
  ...w,
3130
3139
  ...v.events
3131
3140
  }));
3132
3141
  }).catch((v) => {
3133
- console.error("Jersey fetch error", v), S.forEach((w) => y.current.delete(w));
3142
+ console.error("Jersey fetch error", v), S.forEach((w) => _.current.delete(w));
3134
3143
  }).finally(() => {
3135
- I.current = !1;
3144
+ T.current = !1;
3136
3145
  }));
3137
- }, [k, h]);
3138
- const P = i || void 0, q = h === null;
3139
- if (!q && h.length === 0)
3146
+ }, [N, f]);
3147
+ const P = i || void 0, q = f === null;
3148
+ if (!q && f.length === 0)
3140
3149
  return null;
3141
- const b = te(() => q ? Array(4).fill({}) : (h == null ? void 0 : h.slice(0, 20)) || [], [q, h]), F = be("(max-width:768px)");
3150
+ const b = te(() => q ? Array(4).fill({}) : (f == null ? void 0 : f.slice(0, 20)) || [], [q, f]), F = be("(max-width:768px)");
3142
3151
  return /* @__PURE__ */ t("section", { className: P, style: {
3143
3152
  // paddingLeft: 16,
3144
3153
  // paddingRight: 16,
3145
3154
  width: "100%",
3146
3155
  boxSizing: "border-box"
3147
3156
  }, children: /* @__PURE__ */ p(j, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
3148
- /* @__PURE__ */ t("div", { className: _n.padding, children: /* @__PURE__ */ p(re, { spacing: 1.5, columns: "1fr auto ", justify: "start", children: [
3157
+ /* @__PURE__ */ t("div", { className: xn.padding, children: /* @__PURE__ */ p(re, { spacing: 1.5, columns: "1fr auto ", justify: "start", children: [
3149
3158
  /* @__PURE__ */ t(se, { title: a, iconUrl: n, size: "md" }),
3150
3159
  /* @__PURE__ */ p("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
3151
3160
  /* @__PURE__ */ p(re, { spacing: 1, columns: "auto auto", children: [
@@ -3156,8 +3165,8 @@ function wn({
3156
3165
  variant: "secondary",
3157
3166
  iconOnly: !0,
3158
3167
  leftIcon: /* @__PURE__ */ t(Te, {}),
3159
- onClick: B,
3160
- disabled: m.isStart
3168
+ onClick: L,
3169
+ disabled: u.isStart
3161
3170
  }
3162
3171
  ),
3163
3172
  /* @__PURE__ */ t(
@@ -3168,11 +3177,11 @@ function wn({
3168
3177
  iconOnly: !0,
3169
3178
  rightIcon: /* @__PURE__ */ t(ke, {}),
3170
3179
  onClick: z,
3171
- disabled: m.isEnd
3180
+ disabled: u.isEnd
3172
3181
  }
3173
3182
  )
3174
3183
  ] }),
3175
- /* @__PURE__ */ t(K, { variant: "secondary", onClick: O, children: "Ver más" })
3184
+ /* @__PURE__ */ t(K, { variant: "secondary", onClick: E, children: "Ver más" })
3176
3185
  ] })
3177
3186
  ] }) }),
3178
3187
  /* @__PURE__ */ t(
@@ -3190,29 +3199,29 @@ function wn({
3190
3199
  768: { gap: "8px", focus: "center", padding: { left: "24px", right: "24px" } },
3191
3200
  1024: { gap: "10px", focus: "center", padding: { left: "24px", right: "24px" } }
3192
3201
  },
3193
- renderItem: (E) => {
3202
+ renderItem: ($) => {
3194
3203
  var S;
3195
- const u = ((S = E.event) == null ? void 0 : S.id) || E.eventId, x = u in d ? d[u] : void 0;
3196
- return q ? /* @__PURE__ */ t(Ie, { children: /* @__PURE__ */ t(gn, {}) }) : /* @__PURE__ */ t(Ie, { children: /* @__PURE__ */ t(
3197
- xn,
3204
+ const d = ((S = $.event) == null ? void 0 : S.id) || $.eventId, x = d in c ? c[d] : void 0;
3205
+ return q ? /* @__PURE__ */ t(Ie, { children: /* @__PURE__ */ t(bn, {}) }) : /* @__PURE__ */ t(Ie, { children: /* @__PURE__ */ t(
3206
+ Sn,
3198
3207
  {
3199
- ...E,
3208
+ ...$,
3200
3209
  jersey: x
3201
3210
  }
3202
3211
  ) });
3203
3212
  },
3204
- onMove: ({ isStart: E, isEnd: u, visibleStart: x, visibleEnd: S }) => {
3205
- g(
3206
- (v) => v.isStart === E && v.isEnd === u ? v : { isStart: E, isEnd: u }
3207
- ), _({ start: x, end: S });
3213
+ onMove: ({ isStart: $, isEnd: d, visibleStart: x, visibleEnd: S }) => {
3214
+ h(
3215
+ (v) => v.isStart === $ && v.isEnd === d ? v : { isStart: $, isEnd: d }
3216
+ ), y({ start: x, end: S });
3208
3217
  }
3209
3218
  }
3210
3219
  )
3211
3220
  ] }) });
3212
3221
  }
3213
- function Sn() {
3222
+ function On() {
3214
3223
  return /* @__PURE__ */ p("div", { className: de.cardContainer, children: [
3215
- /* @__PURE__ */ t(nt, { title: "" }),
3224
+ /* @__PURE__ */ t(ot, { title: "" }),
3216
3225
  /* @__PURE__ */ t("div", { className: de.cardBackground, children: /* @__PURE__ */ p(j, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
3217
3226
  /* @__PURE__ */ p(j, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
3218
3227
  /* @__PURE__ */ t(G, { variant: "circular", width: 48, height: 48 }),
@@ -3238,30 +3247,30 @@ function Sn() {
3238
3247
  ] }) })
3239
3248
  ] });
3240
3249
  }
3241
- const Cn = "oraculo__OraculoSeccionEventoSemana-module__wrapper___eqVq-", On = "oraculo__OraculoSeccionEventoSemana-module__container___5yFQs", En = "oraculo__OraculoSeccionEventoSemana-module__buttonWrapper___-6IDT", In = "oraculo__OraculoSeccionEventoSemana-module__padding___vfUcV", _e = {
3242
- wrapper: Cn,
3243
- container: On,
3244
- buttonWrapper: En,
3245
- padding: In
3246
- }, Tn = ue.memo(Fa);
3247
- async function kn(e, a = 2, n) {
3250
+ const En = "oraculo__OraculoSeccionEventoSemana-module__wrapper___eqVq-", In = "oraculo__OraculoSeccionEventoSemana-module__container___5yFQs", Tn = "oraculo__OraculoSeccionEventoSemana-module__buttonWrapper___-6IDT", kn = "oraculo__OraculoSeccionEventoSemana-module__padding___vfUcV", _e = {
3251
+ wrapper: En,
3252
+ container: In,
3253
+ buttonWrapper: Tn,
3254
+ padding: kn
3255
+ }, $n = ue.memo(Fa);
3256
+ async function Nn(e, a = 2, n) {
3248
3257
  const o = [];
3249
3258
  for (let i = 0; i < e.length; i += a) {
3250
3259
  if (n.aborted)
3251
3260
  throw new DOMException("Aborted", "AbortError");
3252
3261
  const l = e.slice(i, i + a), s = await Promise.all(
3253
- l.map((m) => fetch(m, { signal: n }).then((g) => g.json()))
3262
+ l.map((u) => fetch(u, { signal: n }).then((h) => h.json()))
3254
3263
  );
3255
3264
  o.push(...s);
3256
3265
  }
3257
3266
  return o;
3258
3267
  }
3259
- function $n(e) {
3268
+ function Mn(e) {
3260
3269
  return [...e].sort(
3261
3270
  (a, n) => new Date(a.start).getTime() - new Date(n.start).getTime()
3262
3271
  );
3263
3272
  }
3264
- function Nn(e) {
3273
+ function Bn(e) {
3265
3274
  const a = /* @__PURE__ */ new Date(), n = new Date(a.getTime() + 480 * 60 * 60 * 1e3);
3266
3275
  return e.filter((o) => {
3267
3276
  if (!o.start) return !1;
@@ -3269,7 +3278,7 @@ function Nn(e) {
3269
3278
  return i >= a && i <= n;
3270
3279
  });
3271
3280
  }
3272
- function Mn(e, a) {
3281
+ function Ln(e, a) {
3273
3282
  const o = a.filter((i) => {
3274
3283
  var l;
3275
3284
  return ((l = i.betOfferType) == null ? void 0 : l.id) === 2;
@@ -3279,18 +3288,18 @@ function Mn(e, a) {
3279
3288
  outcome: o[i.id]
3280
3289
  }));
3281
3290
  }
3282
- function Bn({
3291
+ function An({
3283
3292
  items: e,
3284
3293
  title: a = "En vivo",
3285
3294
  iconUrl: n,
3286
3295
  onViewMore: o,
3287
3296
  className: i = ""
3288
3297
  }) {
3289
- const l = Q(), s = ee(), m = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE", g = W(null), [h, r] = H({ isStart: !0, isEnd: !1 }), [d, c] = H(null);
3298
+ const l = Q(), s = ee(), u = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE", h = W(null), [f, r] = H({ isStart: !0, isEnd: !1 }), [c, m] = H(null);
3290
3299
  W(/* @__PURE__ */ new Set());
3291
- const [f, _] = H({}), [I, R] = H({ start: null, end: null }), T = "channel_id=1&client_id=200&competitionId=undefined&lang=es_PE&market=PE&useCombined=true", $ = lt(I, 250), L = W(!1);
3292
- te(() => d === null ? Array(6).fill({}) : d.slice(0, 20), [d]);
3293
- const A = () => {
3300
+ const [g, y] = H({}), [T, C] = H({ start: null, end: null }), I = "channel_id=1&client_id=200&competitionId=undefined&lang=es_PE&market=PE&useCombined=true", k = st(T, 250), A = W(!1);
3301
+ te(() => c === null ? Array(6).fill({}) : c.slice(0, 20), [c]);
3302
+ const R = () => {
3294
3303
  l({
3295
3304
  element: "evento_semana_view_more",
3296
3305
  label: `Landing: ${s} - OraculoSeccionEventoSemana - Ver más`,
@@ -3303,24 +3312,24 @@ function Bn({
3303
3312
  tags: { section: "OraculoSeccionEventoSemana" }
3304
3313
  }), wa();
3305
3314
  };
3306
- async function N(C) {
3315
+ async function M(O) {
3307
3316
  var b, F;
3308
3317
  let P = [], q = [];
3309
3318
  try {
3310
- const E = await fetch(
3319
+ const $ = await fetch(
3311
3320
  "https://api.mktolimpo.com/api/kambi/eventos/orden",
3312
- { signal: C }
3321
+ { signal: O }
3313
3322
  );
3314
- if (E.ok) {
3315
- const u = await E.json();
3316
- P = ((b = u == null ? void 0 : u.data) == null ? void 0 : b.group_ids) || [], q = ((F = u == null ? void 0 : u.data) == null ? void 0 : F.event_ids) || [];
3323
+ if ($.ok) {
3324
+ const d = await $.json();
3325
+ P = ((b = d == null ? void 0 : d.data) == null ? void 0 : b.group_ids) || [], q = ((F = d == null ? void 0 : d.data) == null ? void 0 : F.event_ids) || [];
3317
3326
  }
3318
- } catch (E) {
3319
- E.name !== "AbortError" && console.warn("Order API not available, using default group order");
3327
+ } catch ($) {
3328
+ $.name !== "AbortError" && console.warn("Order API not available, using default group order");
3320
3329
  return;
3321
3330
  }
3322
3331
  try {
3323
- const x = (await (await fetch(m, { signal: C })).json()).group.groups.find(
3332
+ const x = (await (await fetch(u, { signal: O })).json()).group.groups.find(
3324
3333
  (D) => D.englishName === "Football"
3325
3334
  );
3326
3335
  if (!x || !Array.isArray(x.groups)) {
@@ -3337,86 +3346,86 @@ function Bn({
3337
3346
  return me !== void 0 && pe !== void 0 ? me - pe : me !== void 0 ? -1 : pe !== void 0 ? 1 : 0;
3338
3347
  });
3339
3348
  }
3340
- const w = S.slice(0, 5), M = (D) => {
3349
+ const w = S.slice(0, 5), B = (D) => {
3341
3350
  const Z = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football";
3342
3351
  if (D.groups && D.groups.length > 0) {
3343
3352
  const Y = D.groups[0];
3344
3353
  return [
3345
- `${Z}/${D.termKey}/${Y.termKey}/all/matches.json?${T}`
3354
+ `${Z}/${D.termKey}/${Y.termKey}/all/matches.json?${I}`
3346
3355
  ];
3347
3356
  }
3348
3357
  return [
3349
- `${Z}/${D.termKey}/all/all/matches.json?${T}`
3358
+ `${Z}/${D.termKey}/all/all/matches.json?${I}`
3350
3359
  ];
3351
- }, V = w.flatMap(M);
3352
- k(V, q, C);
3353
- } catch (E) {
3354
- console.error(E);
3360
+ }, V = w.flatMap(B);
3361
+ N(V, q, O);
3362
+ } catch ($) {
3363
+ console.error($);
3355
3364
  }
3356
3365
  }
3357
- async function k(C, P, q) {
3366
+ async function N(O, P, q) {
3358
3367
  try {
3359
- const b = await kn(C, 2, q);
3360
- let F = [], E = [];
3368
+ const b = await Nn(O, 2, q);
3369
+ let F = [], $ = [];
3361
3370
  b.forEach((v) => {
3362
- v.events && (F.push(...v.events.map((w) => w.event)), E.push(
3371
+ v.events && (F.push(...v.events.map((w) => w.event)), $.push(
3363
3372
  ...v.events.flatMap((w) => w.betOffers || [])
3364
3373
  ));
3365
3374
  });
3366
- const u = Mn(F, E), x = $n(Nn(u));
3375
+ const d = Ln(F, $), x = Mn(Bn(d));
3367
3376
  let S = x;
3368
3377
  if (P.length > 0) {
3369
3378
  const v = new Map(
3370
- P.map((w, M) => [
3379
+ P.map((w, B) => [
3371
3380
  String(w),
3372
- M
3381
+ B
3373
3382
  ])
3374
3383
  );
3375
- S = [...x].sort((w, M) => {
3376
- const V = v.get(String(w.id)), D = v.get(String(M.id));
3384
+ S = [...x].sort((w, B) => {
3385
+ const V = v.get(String(w.id)), D = v.get(String(B.id));
3377
3386
  return V !== void 0 && D !== void 0 ? V - D : V !== void 0 ? -1 : D !== void 0 ? 1 : 0;
3378
3387
  });
3379
3388
  }
3380
3389
  if (q.aborted) return;
3381
- c(S);
3390
+ m(S);
3382
3391
  } catch (b) {
3383
3392
  console.error("Error loading events:", b);
3384
3393
  }
3385
3394
  }
3386
3395
  J(() => {
3387
3396
  if (!e) return;
3388
- const C = new AbortController();
3389
- return N(C.signal), () => {
3390
- C.abort();
3397
+ const O = new AbortController();
3398
+ return M(O.signal), () => {
3399
+ O.abort();
3391
3400
  };
3392
3401
  }, [e]), J(() => {
3393
- if ($.start === null || $.end === null || !(d != null && d.length) || L.current)
3402
+ if (k.start === null || k.end === null || !(c != null && c.length) || A.current)
3394
3403
  return;
3395
- const C = 2, P = Math.max(0, $.start - C), q = Math.min(d.length - 1, $.end + C), b = d.slice(P, q + 1).map((E) => E == null ? void 0 : E.id).filter(Boolean).filter((E) => f[E] === void 0);
3404
+ const O = 2, P = Math.max(0, k.start - O), q = Math.min(c.length - 1, k.end + O), b = c.slice(P, q + 1).map(($) => $ == null ? void 0 : $.id).filter(Boolean).filter(($) => g[$] === void 0);
3396
3405
  if (!b.length) return;
3397
3406
  let F = !1;
3398
- return L.current = !0, (async () => {
3407
+ return A.current = !0, (async () => {
3399
3408
  try {
3400
- const E = await rt(b);
3401
- F || _((u) => ({
3402
- ...u,
3403
- ...E.events
3409
+ const $ = await lt(b);
3410
+ F || y((d) => ({
3411
+ ...d,
3412
+ ...$.events
3404
3413
  }));
3405
- } catch (E) {
3406
- console.error("Jersey fetch error", E);
3414
+ } catch ($) {
3415
+ console.error("Jersey fetch error", $);
3407
3416
  } finally {
3408
- L.current = !1;
3417
+ A.current = !1;
3409
3418
  }
3410
3419
  })(), () => {
3411
3420
  F = !0;
3412
3421
  };
3413
- }, [$, d]);
3414
- const y = i || void 0, B = {
3422
+ }, [k, c]);
3423
+ const _ = i || void 0, L = {
3415
3424
  paddingLeft: 0,
3416
3425
  width: "100%",
3417
3426
  boxSizing: "border-box"
3418
- }, z = d === null, O = be("(max-width:768px)");
3419
- return !z && d.length === 0 ? null : /* @__PURE__ */ t("section", { className: y, style: B, children: /* @__PURE__ */ p("div", { className: `${_e.wrapper} ${_e.padding}`, children: [
3427
+ }, z = c === null, E = be("(max-width:768px)");
3428
+ return !z && c.length === 0 ? null : /* @__PURE__ */ t("section", { className: _, style: L, children: /* @__PURE__ */ p("div", { className: `${_e.wrapper} ${_e.padding}`, children: [
3420
3429
  /* @__PURE__ */ t("div", { className: _e.container, children: /* @__PURE__ */ p(j, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
3421
3430
  /* @__PURE__ */ t(se, { title: "Eventos de la semana" }),
3422
3431
  /* @__PURE__ */ t("div", { className: _e.buttonWrapper, children: /* @__PURE__ */ t(
@@ -3426,7 +3435,7 @@ function Bn({
3426
3435
  size: "lg",
3427
3436
  fullWidth: !0,
3428
3437
  onClick: () => {
3429
- A();
3438
+ R();
3430
3439
  },
3431
3440
  children: "Ver más"
3432
3441
  }
@@ -3435,12 +3444,12 @@ function Bn({
3435
3444
  /* @__PURE__ */ t("div", { style: { minWidth: "180px" }, children: /* @__PURE__ */ t(
3436
3445
  ce,
3437
3446
  {
3438
- ref: g,
3439
- items: z ? Array(6).fill({}) : d.slice(0, 20),
3447
+ ref: h,
3448
+ items: z ? Array(6).fill({}) : c.slice(0, 20),
3440
3449
  perPage: 3.5,
3441
3450
  gap: "16px",
3442
3451
  enableHorizontalWheel: !0,
3443
- showRightGradient: !O,
3452
+ showRightGradient: !E,
3444
3453
  options: { autoWidth: !0, trimSpace: !0 },
3445
3454
  breakpoints: {
3446
3455
  1024: {
@@ -3450,12 +3459,12 @@ function Bn({
3450
3459
  padding: { left: "8px", right: "8px" }
3451
3460
  }
3452
3461
  },
3453
- renderItem: (C) => {
3454
- const P = C.id, q = P in f ? f[P] : void 0;
3455
- return z ? /* @__PURE__ */ t(Ie, { children: /* @__PURE__ */ t(Sn, {}) }) : /* @__PURE__ */ t(Ie, { children: /* @__PURE__ */ t(Tn, { event: C, jersey: q }) });
3462
+ renderItem: (O) => {
3463
+ const P = O.id, q = P in g ? g[P] : void 0;
3464
+ return z ? /* @__PURE__ */ t(Ie, { children: /* @__PURE__ */ t(On, {}) }) : /* @__PURE__ */ t(Ie, { children: /* @__PURE__ */ t($n, { event: O, jersey: q }) });
3456
3465
  },
3457
- onMove: ({ isStart: C, isEnd: P, visibleStart: q, visibleEnd: b }) => {
3458
- r({ isStart: C, isEnd: P }), R({
3466
+ onMove: ({ isStart: O, isEnd: P, visibleStart: q, visibleEnd: b }) => {
3467
+ r({ isStart: O, isEnd: P }), C({
3459
3468
  start: q,
3460
3469
  end: b
3461
3470
  }), l({
@@ -3468,7 +3477,7 @@ function Bn({
3468
3477
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
3469
3478
  visibleStart: q,
3470
3479
  visibleEnd: b,
3471
- isStart: C,
3480
+ isStart: O,
3472
3481
  isEnd: P
3473
3482
  },
3474
3483
  tags: { section: "OraculoSeccionEventoSemana" }
@@ -3478,13 +3487,13 @@ function Bn({
3478
3487
  ) })
3479
3488
  ] }) });
3480
3489
  }
3481
- function Ln({
3490
+ function Rn({
3482
3491
  backgrounds: e,
3483
3492
  items: a,
3484
3493
  hideItems: n
3485
3494
  }) {
3486
- var C, P, q;
3487
- const [o, i] = H(0), l = Q(), s = ee(), m = W(null), g = W(!1), h = W(!1), r = (e == null ? void 0 : e.length) || 1, d = !e || e.length === 0, c = !d && ((C = e == null ? void 0 : e.length) != null ? C : 0) > 1, f = !n && ((P = a == null ? void 0 : a.length) != null ? P : 0) > 0, _ = "#B5B5B5", I = {
3495
+ var O, P, q;
3496
+ const [o, i] = H(0), l = Q(), s = ee(), u = W(null), h = W(!1), f = W(!1), r = (e == null ? void 0 : e.length) || 1, c = !e || e.length === 0, m = !c && ((O = e == null ? void 0 : e.length) != null ? O : 0) > 1, g = !n && ((P = a == null ? void 0 : a.length) != null ? P : 0) > 0, y = "#B5B5B5", T = {
3488
3497
  position: "absolute",
3489
3498
  top: "50%",
3490
3499
  transform: "translateY(-50%)",
@@ -3492,22 +3501,22 @@ function Ln({
3492
3501
  width: 48,
3493
3502
  height: 40,
3494
3503
  borderRadius: "12px",
3495
- border: `1.5px solid ${_}`,
3504
+ border: `1.5px solid ${y}`,
3496
3505
  py: 1,
3497
3506
  px: 1.5,
3498
- color: _,
3507
+ color: y,
3499
3508
  backgroundColor: "transparent",
3500
3509
  "&:hover": {
3501
3510
  backgroundColor: "rgba(181,181,181,0.08)"
3502
3511
  },
3503
3512
  "&.Mui-disabled": {
3504
3513
  opacity: 0.35,
3505
- borderColor: _,
3506
- color: _,
3514
+ borderColor: y,
3515
+ color: y,
3507
3516
  backgroundColor: "transparent",
3508
3517
  cursor: "default"
3509
3518
  }
3510
- }, R = te(
3519
+ }, C = te(
3511
3520
  () => ({
3512
3521
  type: "loop",
3513
3522
  perMove: 1,
@@ -3520,16 +3529,16 @@ function Ln({
3520
3529
  );
3521
3530
  J(() => {
3522
3531
  const b = setTimeout(() => {
3523
- g.current = !0;
3532
+ h.current = !0;
3524
3533
  }, 500);
3525
3534
  return () => clearTimeout(b);
3526
3535
  }, []);
3527
- const T = (b, F) => {
3528
- var u, x;
3529
- const E = ((x = (u = b.href) == null ? void 0 : u.split("/").pop()) == null ? void 0 : x.split(".")[0]) || b.label || b.id || `banner_${F + 1}`;
3536
+ const I = (b, F) => {
3537
+ var d, x;
3538
+ const $ = ((x = (d = b.href) == null ? void 0 : d.split("/").pop()) == null ? void 0 : x.split(".")[0]) || b.label || b.id || `banner_${F + 1}`;
3530
3539
  l({
3531
3540
  element: "banner_carousel",
3532
- label: `Landing: ${s} - OraculoSeccionBanners - Banner click: ${E}`,
3541
+ label: `Landing: ${s} - OraculoSeccionBanners - Banner click: ${$}`,
3533
3542
  target: b.href || "no_url",
3534
3543
  event_type: "click",
3535
3544
  module_id: 301,
@@ -3544,7 +3553,7 @@ function Ln({
3544
3553
  banner_url: b.href || "no_url"
3545
3554
  }
3546
3555
  });
3547
- }, $ = (b) => {
3556
+ }, k = (b) => {
3548
3557
  if (l({
3549
3558
  element: "banner_menu_item",
3550
3559
  label: `Landing: ${s} - OraculoSeccionBanners - Menu item click: ${b.label || b.id}`,
@@ -3563,29 +3572,29 @@ function Ln({
3563
3572
  return;
3564
3573
  }
3565
3574
  b.href && typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(b.href);
3566
- }, L = 5e3, A = W(null), N = !d && ((q = e == null ? void 0 : e.length) != null ? q : 0) > 1, k = () => {
3567
- A.current != null && (window.clearTimeout(A.current), A.current = null);
3568
- }, y = () => {
3569
- k(), N && (A.current = window.setTimeout(() => {
3575
+ }, A = 5e3, R = W(null), M = !c && ((q = e == null ? void 0 : e.length) != null ? q : 0) > 1, N = () => {
3576
+ R.current != null && (window.clearTimeout(R.current), R.current = null);
3577
+ }, _ = () => {
3578
+ N(), M && (R.current = window.setTimeout(() => {
3570
3579
  var b;
3571
- h.current = !0, (b = m.current) == null || b.next();
3572
- }, L));
3580
+ f.current = !0, (b = u.current) == null || b.next();
3581
+ }, A));
3573
3582
  };
3574
- J(() => (y(), () => k()), [N, L]);
3575
- const B = (b) => {
3583
+ J(() => (_(), () => N()), [M, A]);
3584
+ const L = (b) => {
3576
3585
  var F;
3577
- b.preventDefault(), b.stopPropagation(), k(), (F = m.current) == null || F.prev();
3586
+ b.preventDefault(), b.stopPropagation(), N(), (F = u.current) == null || F.prev();
3578
3587
  }, z = (b) => {
3579
3588
  var F;
3580
- b.preventDefault(), b.stopPropagation(), k(), (F = m.current) == null || F.next();
3581
- }, O = (b) => {
3582
- var u, x, S, v;
3589
+ b.preventDefault(), b.stopPropagation(), N(), (F = u.current) == null || F.next();
3590
+ }, E = (b) => {
3591
+ var d, x, S, v;
3583
3592
  const F = (b % r + r) % r;
3584
- if (!g.current) return;
3585
- const E = (u = e == null ? void 0 : e[F]) != null && u.href ? ((S = (x = e[F].href) == null ? void 0 : x.split("/").pop()) == null ? void 0 : S.split(".")[0]) || `banner_${F + 1}` : `banner_${F + 1}`;
3593
+ if (!h.current) return;
3594
+ const $ = (d = e == null ? void 0 : e[F]) != null && d.href ? ((S = (x = e[F].href) == null ? void 0 : x.split("/").pop()) == null ? void 0 : S.split(".")[0]) || `banner_${F + 1}` : `banner_${F + 1}`;
3586
3595
  l({
3587
3596
  element: "banner_carousel",
3588
- label: `Landing: ${s} - OraculoSeccionBanners - Banner view: Slide ${F + 1} - ${E}`,
3597
+ label: `Landing: ${s} - OraculoSeccionBanners - Banner view: Slide ${F + 1} - ${$}`,
3589
3598
  target: ((v = e == null ? void 0 : e[F]) == null ? void 0 : v.href) || "no_url",
3590
3599
  event_type: "view",
3591
3600
  module_id: 301,
@@ -3634,28 +3643,28 @@ function Ln({
3634
3643
  children: /* @__PURE__ */ t(
3635
3644
  ce,
3636
3645
  {
3637
- ref: m,
3646
+ ref: u,
3638
3647
  items: e,
3639
3648
  perPage: 1,
3640
3649
  gap: "0px",
3641
3650
  enableHorizontalWheel: !0,
3642
- options: R,
3651
+ options: C,
3643
3652
  onMove: ({ index: b }) => {
3644
3653
  const F = (b % r + r) % r;
3645
3654
  i(F);
3646
- const E = h.current;
3647
- h.current = !1, y(), E || O(b);
3655
+ const $ = f.current;
3656
+ f.current = !1, _(), $ || E(b);
3648
3657
  },
3649
3658
  renderItem: (b, F) => {
3650
- var E, u;
3659
+ var $, d;
3651
3660
  return /* @__PURE__ */ p(
3652
3661
  X,
3653
3662
  {
3654
3663
  component: "a",
3655
3664
  href: b.href,
3656
- target: (E = b.target) != null ? E : "_self",
3665
+ target: ($ = b.target) != null ? $ : "_self",
3657
3666
  rel: b.target === "_blank" ? "noopener noreferrer" : void 0,
3658
- onClick: () => T(b, F),
3667
+ onClick: () => I(b, F),
3659
3668
  sx: {
3660
3669
  position: "relative",
3661
3670
  width: "100%",
@@ -3672,7 +3681,7 @@ function Ln({
3672
3681
  X,
3673
3682
  {
3674
3683
  component: "img",
3675
- src: (u = b.fallbackSrc) != null ? u : b.desktopSrc,
3684
+ src: (d = b.fallbackSrc) != null ? d : b.desktopSrc,
3676
3685
  alt: "",
3677
3686
  "aria-hidden": !0,
3678
3687
  loading: "lazy",
@@ -3712,14 +3721,14 @@ function Ln({
3712
3721
  )
3713
3722
  }
3714
3723
  ),
3715
- c && /* @__PURE__ */ p(ae, { children: [
3724
+ m && /* @__PURE__ */ p(ae, { children: [
3716
3725
  /* @__PURE__ */ t(
3717
- ze,
3726
+ Pe,
3718
3727
  {
3719
3728
  "aria-label": "Anterior",
3720
- onClick: B,
3729
+ onClick: L,
3721
3730
  sx: {
3722
- ...I,
3731
+ ...T,
3723
3732
  left: "120px",
3724
3733
  "@media (max-width:1024px)": { left: 24 },
3725
3734
  "@media (max-width:786px)": { display: "none" }
@@ -3728,12 +3737,12 @@ function Ln({
3728
3737
  }
3729
3738
  ),
3730
3739
  /* @__PURE__ */ t(
3731
- ze,
3740
+ Pe,
3732
3741
  {
3733
3742
  "aria-label": "Siguiente",
3734
3743
  onClick: z,
3735
3744
  sx: {
3736
- ...I,
3745
+ ...T,
3737
3746
  right: "120px",
3738
3747
  "@media (max-width:1024px)": { right: 24 },
3739
3748
  "@media (max-width:786px)": { display: "none" }
@@ -3755,11 +3764,11 @@ function Ln({
3755
3764
  zIndex: 2
3756
3765
  },
3757
3766
  children: /* @__PURE__ */ t(
3758
- tt,
3767
+ at,
3759
3768
  {
3760
3769
  total: r,
3761
3770
  active: o,
3762
- durationMs: L
3771
+ durationMs: A
3763
3772
  },
3764
3773
  `${o}-${r}`
3765
3774
  )
@@ -3768,7 +3777,7 @@ function Ln({
3768
3777
  ]
3769
3778
  }
3770
3779
  ),
3771
- f && /* @__PURE__ */ t(
3780
+ g && /* @__PURE__ */ t(
3772
3781
  X,
3773
3782
  {
3774
3783
  sx: {
@@ -3831,7 +3840,7 @@ function Ln({
3831
3840
  }
3832
3841
  }
3833
3842
  },
3834
- onClick: () => $(b),
3843
+ onClick: () => k(b),
3835
3844
  children: [
3836
3845
  b.icon && /* @__PURE__ */ p(
3837
3846
  X,
@@ -3881,7 +3890,7 @@ function Ln({
3881
3890
  }
3882
3891
  ),
3883
3892
  /* @__PURE__ */ t(
3884
- Ye,
3893
+ Qe,
3885
3894
  {
3886
3895
  className: "menu-text",
3887
3896
  sx: {
@@ -3903,7 +3912,7 @@ function Ln({
3903
3912
  }
3904
3913
  );
3905
3914
  }
3906
- const An = [
3915
+ const Fn = [
3907
3916
  { src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/IBK.svg", alt: "Interbank" },
3908
3917
  { src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/Yape.svg", alt: "Yape" },
3909
3918
  { src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/BCP.png", alt: "BCP" },
@@ -3912,14 +3921,14 @@ const An = [
3912
3921
  { src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/monnet.svg", alt: "Monnet" },
3913
3922
  { src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/niubiz.svg", alt: "Niubiz" }
3914
3923
  ];
3915
- function Rn({
3924
+ function zn({
3916
3925
  title: e = "Medios de pago",
3917
- items: a = An
3926
+ items: a = Fn
3918
3927
  }) {
3919
3928
  const n = Math.ceil(a.length / 2), o = a.slice(0, n), i = a.slice(n);
3920
3929
  return /* @__PURE__ */ p(X, { component: "section", "aria-labelledby": "mp-title", sx: { color: "#fff" }, children: [
3921
3930
  /* @__PURE__ */ t(
3922
- Ye,
3931
+ Qe,
3923
3932
  {
3924
3933
  id: "mp-title",
3925
3934
  variant: "h6",
@@ -3955,7 +3964,7 @@ function Rn({
3955
3964
  alignItems: "center",
3956
3965
  gap: { xs: 2, md: 3 },
3957
3966
  flexWrap: "wrap",
3958
- children: o.map((l, s) => /* @__PURE__ */ t(Pe, { ...l }, `${l.alt}-${l.src}-${s}`))
3967
+ children: o.map((l, s) => /* @__PURE__ */ t(Ue, { ...l }, `${l.alt}-${l.src}-${s}`))
3959
3968
  }
3960
3969
  ),
3961
3970
  /* @__PURE__ */ t(
@@ -3966,7 +3975,7 @@ function Rn({
3966
3975
  alignItems: "center",
3967
3976
  gap: { xs: 2, md: 3 },
3968
3977
  flexWrap: "wrap",
3969
- children: i.map((l, s) => /* @__PURE__ */ t(Pe, { ...l }, `${l.alt}-${l.src}-${s}`))
3978
+ children: i.map((l, s) => /* @__PURE__ */ t(Ue, { ...l }, `${l.alt}-${l.src}-${s}`))
3970
3979
  }
3971
3980
  )
3972
3981
  ] })
@@ -3993,26 +4002,26 @@ function Ae({
3993
4002
  e
3994
4003
  ] });
3995
4004
  }
3996
- function oo({
4005
+ function ro({
3997
4006
  docId: e = "home",
3998
4007
  children: a
3999
4008
  }) {
4000
4009
  return /* @__PURE__ */ t(Ae, { children: /* @__PURE__ */ t(Le, { docId: e, children: a }) });
4001
4010
  }
4002
- const Fn = {
4011
+ const Pn = {
4003
4012
  OraculoSeccionDestacados: za,
4004
4013
  OraculoSeccionTopJuegos: qa,
4005
- OraculoSeccionCasinoEnVivo: Da,
4006
- OraculoSeccionCasino: Qa,
4007
- OraculoSeccionVirtuales: nn,
4008
- OraculoSeccionClubOlimpo: ln,
4009
- OraculoSeccionBonoBienvenida: rn,
4010
- OraculoSeccionBanners: Ln,
4011
- OraculoSeccionMediosPago: Rn,
4012
- OraculoSeccionEventoEnVivo: wn,
4013
- OraculoSeccionEventoSemana: Bn,
4014
- OraculoSeccionEventoCombinadas: fn
4015
- }, He = {
4014
+ OraculoSeccionCasinoEnVivo: Ya,
4015
+ OraculoSeccionCasino: tn,
4016
+ OraculoSeccionVirtuales: rn,
4017
+ OraculoSeccionClubOlimpo: cn,
4018
+ OraculoSeccionBonoBienvenida: sn,
4019
+ OraculoSeccionBanners: Rn,
4020
+ OraculoSeccionMediosPago: zn,
4021
+ OraculoSeccionEventoEnVivo: Cn,
4022
+ OraculoSeccionEventoSemana: An,
4023
+ OraculoSeccionEventoCombinadas: hn
4024
+ }, Ke = {
4016
4025
  sections: [
4017
4026
  {
4018
4027
  variableName2: "backgrounds",
@@ -5075,13 +5084,13 @@ const Fn = {
5075
5084
  updatedAt: "2026-01-22T04:11:09.501Z"
5076
5085
  }
5077
5086
  ]
5078
- }, zn = (e) => typeof e == "function" || e && typeof e == "object" && "$$typeof" in e, Pn = (e) => /^OraculoSeccion[A-Z]/.test(e);
5087
+ }, Un = (e) => typeof e == "function" || e && typeof e == "object" && "$$typeof" in e, qn = (e) => /^OraculoSeccion[A-Z]/.test(e);
5079
5088
  function Be(e) {
5080
5089
  return e && Array.isArray(e.sections) ? e.sections.slice().sort((a, n) => {
5081
5090
  var o, i;
5082
5091
  return ((o = a.order) != null ? o : 0) - ((i = n.order) != null ? i : 0);
5083
5092
  }).map((a, n) => ({ ...a, order: n + 1 })) : e && Array.isArray(e.components) ? e.components.map((a, n) => {
5084
- var o, i, l, s, m;
5093
+ var o, i, l, s, u;
5085
5094
  return {
5086
5095
  id: (o = a.id) != null ? o : n + 1,
5087
5096
  title: (i = a.title) != null ? i : "",
@@ -5089,7 +5098,7 @@ function Be(e) {
5089
5098
  visible: (l = a.visible) != null ? l : !0,
5090
5099
  order: n + 1,
5091
5100
  props: (s = a.props) != null ? s : {},
5092
- apiUrl: (m = a.apiUrl) != null ? m : "",
5101
+ apiUrl: (u = a.apiUrl) != null ? u : "",
5093
5102
  dataMode: a.dataMode,
5094
5103
  variableName: a.variableName,
5095
5104
  manualItems: a.manualItems,
@@ -5101,27 +5110,27 @@ function Be(e) {
5101
5110
  };
5102
5111
  }) : [];
5103
5112
  }
5104
- const Un = Object.fromEntries(
5105
- Object.entries(Fn).filter(
5106
- ([e, a]) => Pn(e) && zn(a)
5113
+ const Vn = Object.fromEntries(
5114
+ Object.entries(Pn).filter(
5115
+ ([e, a]) => qn(e) && Un(a)
5107
5116
  )
5108
- ), qn = (e) => {
5117
+ ), Dn = (e) => {
5109
5118
  try {
5110
5119
  return Object.fromEntries(e != null ? e : []);
5111
5120
  } catch {
5112
5121
  return console.warn("[oraculo] extras inválidos. Debe ser Array<[string, unknown]>", e), {};
5113
5122
  }
5114
5123
  };
5115
- class Ke extends Error {
5124
+ class Ze extends Error {
5116
5125
  constructor(a, n, o) {
5117
5126
  super(`HTTP ${a} ${o}`), this.status = a, this.url = n, this.statusText = o, this.name = "HttpError";
5118
5127
  }
5119
5128
  }
5120
- const Ze = [
5129
+ const Je = [
5121
5130
  "OraculoSeccionEventoEnVivo",
5122
5131
  "OraculoSeccionEventoSemana",
5123
5132
  "OraculoSeccionEventoCombinadas"
5124
- ], io = ({
5133
+ ], lo = ({
5125
5134
  sectionsOverride: e,
5126
5135
  docId: a = "home",
5127
5136
  db: n,
@@ -5129,24 +5138,24 @@ const Ze = [
5129
5138
  loader: i,
5130
5139
  disableWrapper: l = !1
5131
5140
  }) => {
5132
- const s = te(() => qn(o), [o]), m = i || s.loader, [g, h] = H([]), [r, d] = H(!1), [c, f] = H({}), [_, I] = H({}), [R, T] = H({}), $ = Xe("(min-width:1024px)"), L = (u) => Array.isArray(u) ? u.map((x) => Number(x)).filter((x) => !Number.isNaN(x)) : [], A = te(() => {
5133
- const u = s.user;
5134
- return L(u == null ? void 0 : u.groups);
5135
- }, [s]), N = (u) => {
5136
- const x = u.manualScalarFields;
5141
+ const s = te(() => Dn(o), [o]), u = i || s.loader, [h, f] = H([]), [r, c] = H(!1), [m, g] = H({}), [y, T] = H({}), [C, I] = H({}), k = Ye("(min-width:1024px)"), A = (d) => Array.isArray(d) ? d.map((x) => Number(x)).filter((x) => !Number.isNaN(x)) : [], R = te(() => {
5142
+ const d = s.user;
5143
+ return A(d == null ? void 0 : d.groups);
5144
+ }, [s]), M = (d) => {
5145
+ const x = d.manualScalarFields;
5137
5146
  if (!Array.isArray(x)) return [];
5138
5147
  const S = x.find(
5139
- (M) => String((M == null ? void 0 : M.name) || "").trim().toLowerCase() === "groups"
5148
+ (B) => String((B == null ? void 0 : B.name) || "").trim().toLowerCase() === "groups"
5140
5149
  );
5141
5150
  if (!S) return [];
5142
5151
  const v = S.value;
5143
5152
  if (v == null) return [];
5144
5153
  if (Array.isArray(v))
5145
- return v.map((M) => Number(String(M).trim())).filter((M) => !Number.isNaN(M));
5154
+ return v.map((B) => Number(String(B).trim())).filter((B) => !Number.isNaN(B));
5146
5155
  const w = String(v).trim();
5147
- return w ? w.split(",").map((M) => Number(M.trim())).filter((M) => !Number.isNaN(M)) : [];
5148
- }, k = (u, x) => {
5149
- const S = N(u);
5156
+ return w ? w.split(",").map((B) => Number(B.trim())).filter((B) => !Number.isNaN(B)) : [];
5157
+ }, N = (d, x) => {
5158
+ const S = M(d);
5150
5159
  if (S.length === 0) return !0;
5151
5160
  if (!Array.isArray(x) || x.length === 0) return !1;
5152
5161
  const v = new Set(x);
@@ -5155,56 +5164,56 @@ const Ze = [
5155
5164
  J(() => {
5156
5165
  if (e) return;
5157
5166
  if (!n) {
5158
- console.warn("[landing] sin db -> fallback json"), h(Be(He));
5167
+ console.warn("[landing] sin db -> fallback json"), f(Be(Ke));
5159
5168
  return;
5160
5169
  }
5161
- const u = (S, v) => {
5162
- console.warn("[landing] FALLBACK:", S, v != null ? v : ""), h(Be(He)), d(!1);
5170
+ const d = (S, v) => {
5171
+ console.warn("[landing] FALLBACK:", S, v != null ? v : ""), f(Be(Ke)), c(!1);
5163
5172
  };
5164
5173
  if (process.env.NEXT_PUBLIC_LANDING_FORCE_FALLBACK === "1") {
5165
- d(!0), u("forzado por env");
5174
+ c(!0), d("forzado por env");
5166
5175
  return;
5167
5176
  }
5168
- d(!0);
5177
+ c(!0);
5169
5178
  const x = It(
5170
5179
  Tt(n, "landings", a),
5171
5180
  (S) => {
5172
5181
  try {
5173
5182
  if (!S.exists()) {
5174
- u(`doc landings/${a} no existe`);
5183
+ d(`doc landings/${a} no existe`);
5175
5184
  return;
5176
5185
  }
5177
5186
  const v = S.data(), w = Be(v);
5178
5187
  if (!w.length) {
5179
- u("JSON inválido o sin secciones normalizables", v);
5188
+ d("JSON inválido o sin secciones normalizables", v);
5180
5189
  return;
5181
5190
  }
5182
- console.log("[landing] Firestore OK (json grande):", v), h(w);
5191
+ console.log("[landing] Firestore OK (json grande):", v), f(w);
5183
5192
  } catch (v) {
5184
- u("error procesando snapshot", v);
5193
+ d("error procesando snapshot", v);
5185
5194
  } finally {
5186
- d(!1);
5195
+ c(!1);
5187
5196
  }
5188
5197
  },
5189
5198
  (S) => {
5190
- u("error onSnapshot", S);
5199
+ d("error onSnapshot", S);
5191
5200
  }
5192
5201
  );
5193
5202
  return () => x();
5194
5203
  }, [e, a, n]), J(() => (Pa(s), () => Ua()), [s]), J(() => {
5195
- (e ? e.slice() : g.slice()).map((S) => S.componentKey).filter((S) => !!S).length;
5196
- }, [e, g]);
5197
- const y = async (u) => {
5198
- if (Ze.includes(u.componentKey))
5204
+ (e ? e.slice() : h.slice()).map((S) => S.componentKey).filter((S) => !!S).length;
5205
+ }, [e, h]);
5206
+ const _ = async (d) => {
5207
+ if (Je.includes(d.componentKey))
5199
5208
  return {
5200
5209
  items: [],
5201
5210
  events: [],
5202
5211
  data: {}
5203
5212
  };
5204
- const x = (u.apiUrl || "").trim();
5213
+ const x = (d.apiUrl || "").trim();
5205
5214
  if (!x) return;
5206
- const S = u.apiMethod || "GET", v = u.apiParams || [];
5207
- let w = x, M, V;
5215
+ const S = d.apiMethod || "GET", v = d.apiParams || [];
5216
+ let w = x, B, V;
5208
5217
  if (S === "GET") {
5209
5218
  const Z = new URL(
5210
5219
  x,
@@ -5217,59 +5226,59 @@ const Ze = [
5217
5226
  const Z = new URLSearchParams();
5218
5227
  for (const Y of v)
5219
5228
  Y.key && Z.append(Y.key, Y.value);
5220
- M = Z.toString(), V = {
5229
+ B = Z.toString(), V = {
5221
5230
  "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
5222
5231
  };
5223
5232
  }
5224
5233
  const D = await fetch(w, {
5225
5234
  method: S,
5226
5235
  headers: V,
5227
- body: M
5236
+ body: B
5228
5237
  });
5229
- if (!D.ok) throw new Ke(D.status, w, D.statusText);
5238
+ if (!D.ok) throw new Ze(D.status, w, D.statusText);
5230
5239
  return D.json();
5231
- }, B = te(
5232
- () => e ? e.slice() : g.slice(),
5233
- [e, g]
5240
+ }, L = te(
5241
+ () => e ? e.slice() : h.slice(),
5242
+ [e, h]
5234
5243
  ), z = ue.useRef(/* @__PURE__ */ new Set());
5235
5244
  J(() => {
5236
- const u = B.map((x) => ({ s: x, url: (x.apiUrl || "").trim() })).filter(({ url: x }) => !!x);
5237
- if (u.length)
5238
- for (const { s: x, url: S } of u) {
5245
+ const d = L.map((x) => ({ s: x, url: (x.apiUrl || "").trim() })).filter(({ url: x }) => !!x);
5246
+ if (d.length)
5247
+ for (const { s: x, url: S } of d) {
5239
5248
  const v = `${x.id}|${S}`;
5240
- z.current.has(v) || (z.current.add(v), I((w) => ({ ...w, [x.id]: !0 })), T((w) => ({ ...w, [x.id]: "" })), (async () => {
5249
+ z.current.has(v) || (z.current.add(v), T((w) => ({ ...w, [x.id]: !0 })), I((w) => ({ ...w, [x.id]: "" })), (async () => {
5241
5250
  try {
5242
- const w = await y(x);
5243
- f((M) => ({ ...M, [x.id]: w }));
5251
+ const w = await _(x);
5252
+ g((B) => ({ ...B, [x.id]: w }));
5244
5253
  } catch (w) {
5245
- let M = "Error desconocido";
5246
- w instanceof Ke ? M = `Error HTTP ${w.status} (${w.statusText}) en ${w.url}` : w instanceof SyntaxError ? M = "Respuesta no es JSON válido" : w instanceof TypeError ? M = "Fallo de red / CORS / conexión" : typeof w == "string" && (M = w.toString()), T((V) => ({ ...V, [x.id]: M }));
5254
+ let B = "Error desconocido";
5255
+ w instanceof Ze ? B = `Error HTTP ${w.status} (${w.statusText}) en ${w.url}` : w instanceof SyntaxError ? B = "Respuesta no es JSON válido" : w instanceof TypeError ? B = "Fallo de red / CORS / conexión" : typeof w == "string" && (B = w.toString()), I((V) => ({ ...V, [x.id]: B }));
5247
5256
  } finally {
5248
- I((w) => ({ ...w, [x.id]: !1 }));
5257
+ T((w) => ({ ...w, [x.id]: !1 }));
5249
5258
  }
5250
5259
  })());
5251
5260
  }
5252
- }, [B]);
5253
- const O = te(
5254
- () => B.filter((u) => u.visible).filter((u) => k(u, A)).sort((u, x) => u.order - x.order),
5255
- [B, A]
5256
- ), C = (u) => Array.isArray(u) ? u.map((x) => {
5261
+ }, [L]);
5262
+ const E = te(
5263
+ () => L.filter((d) => d.visible).filter((d) => N(d, R)).sort((d, x) => d.order - x.order),
5264
+ [L, R]
5265
+ ), O = (d) => Array.isArray(d) ? d.map((x) => {
5257
5266
  const S = {};
5258
5267
  for (const v of x.fields || []) {
5259
5268
  const w = (v.type || "string").toLowerCase();
5260
5269
  if (w === "number") {
5261
- const M = String(v.value || "").trim();
5262
- if (M !== "") {
5263
- const V = Number(M);
5270
+ const B = String(v.value || "").trim();
5271
+ if (B !== "") {
5272
+ const V = Number(B);
5264
5273
  Number.isNaN(V) || (S[v.name] = V);
5265
5274
  }
5266
5275
  } else if (w === "boolean")
5267
5276
  S[v.name] = String(v.value).toLowerCase() === "true";
5268
5277
  else if (w === "function") {
5269
- const M = String(v.value || "").trim();
5270
- if (M)
5278
+ const B = String(v.value || "").trim();
5279
+ if (B)
5271
5280
  try {
5272
- const V = new Function(M);
5281
+ const V = new Function(B);
5273
5282
  S[v.name] = V;
5274
5283
  } catch (V) {
5275
5284
  console.error(`❌ Error creando función en item '${v.name}':`, V);
@@ -5278,17 +5287,17 @@ const Ze = [
5278
5287
  S[v.name] = v.value;
5279
5288
  }
5280
5289
  return S;
5281
- }) : [], P = (u) => {
5290
+ }) : [], P = (d) => {
5282
5291
  const x = {};
5283
- if (!Array.isArray(u)) return x;
5284
- for (const S of u) {
5292
+ if (!Array.isArray(d)) return x;
5293
+ for (const S of d) {
5285
5294
  if (!S.name) continue;
5286
5295
  const v = (S.type || "string").toLowerCase();
5287
5296
  if (v === "number") {
5288
5297
  const w = String(S.value || "").trim();
5289
5298
  if (w !== "") {
5290
- const M = Number(w);
5291
- Number.isNaN(M) || (x[S.name] = M);
5299
+ const B = Number(w);
5300
+ Number.isNaN(B) || (x[S.name] = B);
5292
5301
  }
5293
5302
  } else if (v === "boolean")
5294
5303
  x[S.name] = String(S.value).toLowerCase() === "true";
@@ -5296,81 +5305,81 @@ const Ze = [
5296
5305
  const w = String(S.value || "").trim();
5297
5306
  if (w)
5298
5307
  try {
5299
- const M = new Function(w);
5300
- x[S.name] = M;
5301
- } catch (M) {
5302
- console.error(`❌ Error creando función en item '${S.name}':`, M);
5308
+ const B = new Function(w);
5309
+ x[S.name] = B;
5310
+ } catch (B) {
5311
+ console.error(`❌ Error creando función en item '${S.name}':`, B);
5303
5312
  }
5304
5313
  } else
5305
5314
  x[S.name] = S.value;
5306
5315
  }
5307
5316
  return x;
5308
- }, q = (u, x, S, v) => {
5309
- const w = S ? { ...S } : {}, M = (v || "items").trim() || "items";
5317
+ }, q = (d, x, S, v) => {
5318
+ const w = S ? { ...S } : {}, B = (v || "items").trim() || "items";
5310
5319
  if (x)
5311
- return w[M] = x.arr || [], w;
5312
- const V = u;
5320
+ return w[B] = x.arr || [], w;
5321
+ const V = d;
5313
5322
  if (Array.isArray(V))
5314
- return w[M] = V, w;
5323
+ return w[B] = V, w;
5315
5324
  if (V && typeof V == "object") {
5316
5325
  const D = V;
5317
- return Array.isArray(D.lobby) ? (w[M] = D.lobby, w) : Array.isArray(D.items) ? (w[M] = D.items, w) : (w[M] = V, w);
5326
+ return Array.isArray(D.lobby) ? (w[B] = D.lobby, w) : Array.isArray(D.items) ? (w[B] = D.items, w) : (w[B] = V, w);
5318
5327
  }
5319
- return w[M] = [], w;
5320
- }, b = (u) => {
5321
- var M;
5322
- const x = !!((M = u.apiUrl) != null && M.trim()), S = x ? c[u.id] : void 0;
5323
- let v = u.props ? { ...u.props } : {};
5324
- const w = P(u.manualScalarFields);
5325
- if (Ze.includes(u.componentKey))
5328
+ return w[B] = [], w;
5329
+ }, b = (d) => {
5330
+ var B;
5331
+ const x = !!((B = d.apiUrl) != null && B.trim()), S = x ? m[d.id] : void 0;
5332
+ let v = d.props ? { ...d.props } : {};
5333
+ const w = P(d.manualScalarFields);
5334
+ if (Je.includes(d.componentKey))
5326
5335
  return { items: S, ...v, ...w };
5327
5336
  if (v = { ...v, ...w }, x) v = q(S, null, v);
5328
- else if (u.dataMode === "manual") {
5329
- const V = C(u.manualItems);
5337
+ else if (d.dataMode === "manual") {
5338
+ const V = O(d.manualItems);
5330
5339
  if (v = q(
5331
5340
  null,
5332
- { arr: V, variableName: u.variableName },
5341
+ { arr: V, variableName: d.variableName },
5333
5342
  v,
5334
- u.variableName
5335
- ), u.variableName2 && u.manualItems2) {
5336
- const D = C(u.manualItems2), Z = (u.variableName2 || "items2").trim() || "items2";
5343
+ d.variableName
5344
+ ), d.variableName2 && d.manualItems2) {
5345
+ const D = O(d.manualItems2), Z = (d.variableName2 || "items2").trim() || "items2";
5337
5346
  v[Z] = D;
5338
5347
  }
5339
5348
  }
5340
5349
  return v;
5341
- }, F = (u, x, S) => /* @__PURE__ */ t("div", { className: `mx-4 p-4 rounded ${{
5350
+ }, F = (d, x, S) => /* @__PURE__ */ t("div", { className: `mx-4 p-4 rounded ${{
5342
5351
  loading: "bg-blue-100 text-blue-800",
5343
5352
  error: "bg-red-100 text-red-800",
5344
5353
  component: "bg-yellow-100 text-yellow-800"
5345
- }[x]}`, children: S }, u), E = (u) => {
5346
- var Fe;
5347
- const x = u.componentKey, S = Un[x];
5354
+ }[x]}`, children: S }, d), $ = (d) => {
5355
+ var ze;
5356
+ const x = d.componentKey, S = Vn[x];
5348
5357
  if (!S)
5349
5358
  return console.warn(`No hay componente registrado para "${x}"`), F(
5350
- u.id,
5359
+ d.id,
5351
5360
  "component",
5352
5361
  `Componente "${x}" no encontrado`
5353
5362
  );
5354
- const v = !!((Fe = u.apiUrl) != null && Fe.trim()), w = v ? c[u.id] : void 0, M = v ? !!_[u.id] : !1, V = v ? R[u.id] : "";
5363
+ const v = !!((ze = d.apiUrl) != null && ze.trim()), w = v ? m[d.id] : void 0, B = v ? !!y[d.id] : !1, V = v ? C[d.id] : "";
5355
5364
  if (v) {
5356
- if (M && !w)
5365
+ if (B && !w)
5357
5366
  return F(
5358
- u.id,
5367
+ d.id,
5359
5368
  "loading",
5360
- `Cargando datos desde ${u.apiUrl}...`
5369
+ `Cargando datos desde ${d.apiUrl}...`
5361
5370
  );
5362
5371
  if (V && !w)
5363
5372
  return F(
5364
- u.id,
5373
+ d.id,
5365
5374
  "error",
5366
- `Error cargando ${u.apiUrl}: ${V}`
5375
+ `Error cargando ${d.apiUrl}: ${V}`
5367
5376
  );
5368
5377
  }
5369
- const D = b(u), Y = (/* @__PURE__ */ new Set([
5378
+ const D = b(d), Y = (/* @__PURE__ */ new Set([
5370
5379
  "OraculoSeccionBanners",
5371
5380
  "OraculoSeccionBonoBienvenida",
5372
5381
  "OraculoSeccionCasinoEnVivo",
5373
- ...$ ? [] : [
5382
+ ...k ? [] : [
5374
5383
  "OraculoSeccionClubOlimpo",
5375
5384
  "OraculoSeccionEventoEnVivo",
5376
5385
  "OraculoSeccionEventoSemana",
@@ -5379,7 +5388,7 @@ const Ze = [
5379
5388
  "OraculoSeccionDestacados",
5380
5389
  "OraculoSeccionCasino"
5381
5390
  ]
5382
- ])).has(u.componentKey), me = $ ? 120 : 24, pe = ($ ? 8 : 5) * 8, pt = u.componentKey === "OraculoSeccionCasinoEnVivo", ft = {
5391
+ ])).has(d.componentKey), me = k ? 120 : 24, pe = (k ? 8 : 5) * 8, pt = d.componentKey === "OraculoSeccionCasinoEnVivo", ft = {
5383
5392
  width: "100%",
5384
5393
  boxSizing: "border-box",
5385
5394
  ...Y ? {} : { paddingLeft: me, paddingRight: me },
@@ -5388,9 +5397,9 @@ const Ze = [
5388
5397
  marginBottom: -pe
5389
5398
  } : {}
5390
5399
  };
5391
- return /* @__PURE__ */ t("div", { style: ft, className: "oraculo-section-wrapper", children: /* @__PURE__ */ t(S, { ...D }) }, u.id);
5400
+ return /* @__PURE__ */ t("div", { style: ft, className: "oraculo-section-wrapper", children: /* @__PURE__ */ t(S, { ...D }) }, d.id);
5392
5401
  };
5393
- return r && !e ? m ? /* @__PURE__ */ t(m, {}) : /* @__PURE__ */ t("div", { children: "Cargando..." }) : !r && !e && g.length === 0 ? /* @__PURE__ */ t("div", { className: "text-xs text-gray-500", children: "Sin secciones (Firestore)" }) : l ? /* @__PURE__ */ t(Ae, { children: /* @__PURE__ */ t(Le, { docId: a, children: /* @__PURE__ */ t(ae, { children: O.map(E) }) }) }) : /* @__PURE__ */ t(Ae, { children: /* @__PURE__ */ t(Le, { docId: a, children: /* @__PURE__ */ t(
5402
+ return r && !e ? u ? /* @__PURE__ */ t(u, {}) : /* @__PURE__ */ t("div", { children: "Cargando..." }) : !r && !e && h.length === 0 ? /* @__PURE__ */ t("div", { className: "text-xs text-gray-500", children: "Sin secciones (Firestore)" }) : l ? /* @__PURE__ */ t(Ae, { children: /* @__PURE__ */ t(Le, { docId: a, children: /* @__PURE__ */ t(ae, { children: E.map($) }) }) }) : /* @__PURE__ */ t(Ae, { children: /* @__PURE__ */ t(Le, { docId: a, children: /* @__PURE__ */ t(
5394
5403
  gt,
5395
5404
  {
5396
5405
  className: "oli-font",
@@ -5404,7 +5413,7 @@ const Ze = [
5404
5413
  maxWidth: "100%",
5405
5414
  overflowX: "hidden"
5406
5415
  },
5407
- children: /* @__PURE__ */ t(ye, { direction: "column", spacing: $ ? 8 : 5, useFlexGap: !0, children: O.map(E) })
5416
+ children: /* @__PURE__ */ t(ye, { direction: "column", spacing: k ? 8 : 5, useFlexGap: !0, children: E.map($) })
5408
5417
  }
5409
5418
  ) }) });
5410
5419
  };
@@ -5412,42 +5421,42 @@ export {
5412
5421
  Le as DocIdProvider,
5413
5422
  K as OraculoButton,
5414
5423
  ce as OraculoCarousel,
5415
- tt as OraculoCarouselDots,
5424
+ at as OraculoCarouselDots,
5416
5425
  ua as OraculoClubOlimpoVisual,
5417
5426
  Ca as OraculoEventCombinadasCard,
5418
5427
  ka as OraculoEventEnVivoCard,
5419
5428
  At as OraculoEventHeader,
5420
- at as OraculoEventLabel,
5421
- nt as OraculoEventLeague,
5422
- ot as OraculoEventScore,
5429
+ nt as OraculoEventLabel,
5430
+ ot as OraculoEventLeague,
5431
+ it as OraculoEventScore,
5423
5432
  Fa as OraculoEventSemanaCard,
5424
5433
  Lt as OraculoEventStatus,
5425
5434
  Bt as OraculoEventStatusBadge,
5426
5435
  Oe as OraculoEventTeamInfo,
5427
5436
  we as OraculoGameCard,
5428
5437
  ca as OraculoGameRankCard,
5429
- it as OraculoGameSlide,
5438
+ rt as OraculoGameSlide,
5430
5439
  re as OraculoGridGroup,
5431
5440
  da as OraculoLiveCasinoCard,
5432
- Pe as OraculoLogoMediosPago,
5433
- io as OraculoPageLandingPreview,
5434
- Ln as OraculoSeccionBanners,
5435
- rn as OraculoSeccionBonoBienvenida,
5436
- Qa as OraculoSeccionCasino,
5437
- Da as OraculoSeccionCasinoEnVivo,
5438
- ln as OraculoSeccionClubOlimpo,
5441
+ Ue as OraculoLogoMediosPago,
5442
+ lo as OraculoPageLandingPreview,
5443
+ Rn as OraculoSeccionBanners,
5444
+ sn as OraculoSeccionBonoBienvenida,
5445
+ tn as OraculoSeccionCasino,
5446
+ Ya as OraculoSeccionCasinoEnVivo,
5447
+ cn as OraculoSeccionClubOlimpo,
5439
5448
  za as OraculoSeccionDestacados,
5440
- fn as OraculoSeccionEventoCombinadas,
5441
- wn as OraculoSeccionEventoEnVivo,
5442
- Bn as OraculoSeccionEventoSemana,
5443
- Rn as OraculoSeccionMediosPago,
5449
+ hn as OraculoSeccionEventoCombinadas,
5450
+ Cn as OraculoSeccionEventoEnVivo,
5451
+ An as OraculoSeccionEventoSemana,
5452
+ zn as OraculoSeccionMediosPago,
5444
5453
  qa as OraculoSeccionTopJuegos,
5445
- nn as OraculoSeccionVirtuales,
5446
- oo as OraculoSectionHost,
5454
+ rn as OraculoSeccionVirtuales,
5455
+ ro as OraculoSectionHost,
5447
5456
  se as OraculoSectionTitle,
5448
5457
  Ae as OraculoThemeProvider,
5449
5458
  qa as OraculoTopJuegoItem,
5450
- Ue as OraculoWelcomeBanner,
5451
- io as default
5459
+ qe as OraculoWelcomeBanner,
5460
+ lo as default
5452
5461
  };
5453
5462
  //# sourceMappingURL=index.es.js.map