oraculo-ui 0.2.25 → 0.2.26

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,6 +1,6 @@
1
1
  import { jsx as t, jsxs as b, Fragment as pe } from "react/jsx-runtime";
2
- import { Link as rt, Box as Q, useMediaQuery as De, IconButton as Ke, Typography as st, Stack as Oe, Container as Et } from "@mui/material";
3
- import fe, { useState as Z, useEffect as ee, useRef as V, forwardRef as Tt, useImperativeHandle as kt, useCallback as Ee, createContext as $t, useContext as Nt, useMemo as ie, useLayoutEffect as Mt } from "react";
2
+ import { Link as rt, Box as ee, useMediaQuery as De, IconButton as Ke, Typography as st, Stack as Oe, Container as Et } from "@mui/material";
3
+ import fe, { useState as Z, useEffect as Q, useRef as V, forwardRef as Tt, useImperativeHandle as kt, useCallback as Ee, createContext as $t, useContext as Nt, useMemo as ie, useLayoutEffect as Mt } from "react";
4
4
  import j from "@mui/material/Skeleton";
5
5
  import { Splide as Bt, SplideSlide as At } from "@splidejs/react-splide";
6
6
  import q from "@mui/material/Box";
@@ -11,8 +11,8 @@ import { ChevronLeftRounded as Ae, ChevronRightRounded as ze } from "@mui/icons-
11
11
  import xe from "@mui/material/useMediaQuery";
12
12
  import lt from "@mui/icons-material/ChevronLeftRounded";
13
13
  import ct from "@mui/icons-material/ChevronRightRounded";
14
- import { useTheme as zt, createTheme as Rt, ThemeProvider as Pt } from "@mui/material/styles";
15
- import Lt from "@mui/material/CssBaseline";
14
+ import { useTheme as zt, createTheme as Rt, ThemeProvider as Lt } from "@mui/material/styles";
15
+ import Pt from "@mui/material/CssBaseline";
16
16
  import { onSnapshot as Ft, doc as qt } from "firebase/firestore";
17
17
  function X({
18
18
  children: e,
@@ -26,25 +26,25 @@ function X({
26
26
  size: f,
27
27
  fullWidth: h = !1,
28
28
  fullHeight: u = !1,
29
- className: p = "",
29
+ className: m = "",
30
30
  ariaLabel: d,
31
31
  leftIcon: g,
32
- rightIcon: m,
33
- iconOnly: _
32
+ rightIcon: p,
33
+ iconOnly: v
34
34
  }) {
35
- const I = !!e && e !== !0, C = (!!g ? 1 : 0) + (!!m ? 1 : 0) == 1, D = _ != null ? _ : C && !I, k = [
35
+ const C = !!e && e !== !0, O = (!!g ? 1 : 0) + (!!p ? 1 : 0) == 1, D = v != null ? v : O && !C, y = [
36
36
  "orc-btn",
37
37
  c === "secondary" ? "orc-btn--secondary" : c === "tertiary" ? "orc-btn--tertiary" : "orc-btn--primary",
38
38
  f ? `orc-btn--${f}` : "",
39
39
  h ? "orc-btn--full" : "",
40
40
  u ? "orc-btn--fullHeight" : "",
41
41
  D ? "orc-btn--iconOnly" : "",
42
- p
43
- ].filter(Boolean).join(" "), M = /* @__PURE__ */ b(pe, { children: [
42
+ m
43
+ ].filter(Boolean).join(" "), $ = /* @__PURE__ */ b(pe, { children: [
44
44
  g && /* @__PURE__ */ t("span", { className: "orc-btn__icon", children: g }),
45
45
  !D && /* @__PURE__ */ t("span", { className: "orc-btn__label", children: e }),
46
- m && /* @__PURE__ */ t("span", { className: "orc-btn__icon", children: m })
47
- ] }), T = s ? !0 : void 0;
46
+ p && /* @__PURE__ */ t("span", { className: "orc-btn__icon", children: p })
47
+ ] }), E = s ? !0 : void 0;
48
48
  return n ? /* @__PURE__ */ t(
49
49
  rt,
50
50
  {
@@ -52,21 +52,21 @@ function X({
52
52
  target: o,
53
53
  rel: i,
54
54
  "aria-label": d,
55
- "aria-disabled": T,
56
- tabIndex: T ? -1 : void 0,
57
- className: k,
58
- onClick: T ? (A) => A.preventDefault() : a,
59
- children: M
55
+ "aria-disabled": E,
56
+ tabIndex: E ? -1 : void 0,
57
+ className: y,
58
+ onClick: E ? (A) => A.preventDefault() : a,
59
+ children: $
60
60
  }
61
61
  ) : /* @__PURE__ */ t(
62
62
  "button",
63
63
  {
64
64
  type: r,
65
65
  onClick: a,
66
- disabled: !!T,
66
+ disabled: !!E,
67
67
  "aria-label": d,
68
- className: k,
69
- children: M
68
+ className: y,
69
+ children: $
70
70
  }
71
71
  );
72
72
  }
@@ -102,7 +102,7 @@ const dt = ({
102
102
  }) => {
103
103
  if (e <= 1) return null;
104
104
  const r = ["orc-dots", o].filter(Boolean).join(" "), [s, c] = Z(0);
105
- return ee(() => {
105
+ return Q(() => {
106
106
  c((f) => f + 1);
107
107
  }, [a, i]), /* @__PURE__ */ t("div", { className: r, role: "tablist", "aria-label": "Carousel pagination", children: Array.from({ length: e }).map((f, h) => {
108
108
  const u = h === a;
@@ -118,7 +118,7 @@ const dt = ({
118
118
  "--dot-progress-ms": `${i}ms`
119
119
  } : void 0,
120
120
  onClick: () => {
121
- u && c((p) => p + 1), n == null || n(h);
121
+ u && c((m) => m + 1), n == null || n(h);
122
122
  }
123
123
  },
124
124
  u ? `a-${h}-${s}` : `i-${h}`
@@ -149,7 +149,7 @@ function me({
149
149
  }
150
150
  function Ze({ src: e, alt: a }) {
151
151
  return /* @__PURE__ */ t(
152
- Q,
152
+ ee,
153
153
  {
154
154
  sx: {
155
155
  position: "relative",
@@ -160,7 +160,7 @@ function Ze({ src: e, alt: a }) {
160
160
  display: "inline-block"
161
161
  },
162
162
  children: /* @__PURE__ */ t(
163
- Q,
163
+ ee,
164
164
  {
165
165
  component: "img",
166
166
  src: e,
@@ -178,7 +178,7 @@ function Ze({ src: e, alt: a }) {
178
178
  }
179
179
  );
180
180
  }
181
- const Dt = "oraculo__OraculoEventTitle-module__contenedor___rg1vw", Ut = "oraculo__OraculoEventTitle-module__flexGroup___jMLFO", Vt = "oraculo__OraculoEventTitle-module__subtitle___TmHna", Pe = {
181
+ const Dt = "oraculo__OraculoEventTitle-module__contenedor___rg1vw", Ut = "oraculo__OraculoEventTitle-module__flexGroup___jMLFO", Vt = "oraculo__OraculoEventTitle-module__subtitle___TmHna", Le = {
182
182
  contenedor: Dt,
183
183
  flexGroup: Ut,
184
184
  subtitle: Vt
@@ -187,7 +187,7 @@ function Wt({ title: e, subtitle: a }) {
187
187
  return /* @__PURE__ */ b(
188
188
  "div",
189
189
  {
190
- className: Pe.contenedor,
190
+ className: Le.contenedor,
191
191
  children: [
192
192
  /* @__PURE__ */ t(
193
193
  "span",
@@ -203,14 +203,14 @@ function Wt({ title: e, subtitle: a }) {
203
203
  a && /* @__PURE__ */ b(
204
204
  "div",
205
205
  {
206
- className: Pe.flexGroup,
206
+ className: Le.flexGroup,
207
207
  children: [
208
208
  /* @__PURE__ */ b("svg", { width: "4", height: "4", viewBox: "0 0 5 5", xmlns: "http://www.w3.org/2000/svg", style: { flexShrink: 0 }, children: [
209
209
  " ",
210
210
  /* @__PURE__ */ t("circle", { cx: "2.5", cy: "2.5", r: "2.5", fill: "white" }),
211
211
  " "
212
212
  ] }),
213
- /* @__PURE__ */ t("span", { className: Pe.subtitle, children: a }),
213
+ /* @__PURE__ */ t("span", { className: Le.subtitle, children: a }),
214
214
  /* @__PURE__ */ t("div", {})
215
215
  ]
216
216
  }
@@ -384,20 +384,20 @@ function fa(e, a, {
384
384
  cooldownMs: i = 500
385
385
  } = {}) {
386
386
  const r = V(0), s = V(0);
387
- ee(() => {
387
+ Q(() => {
388
388
  if (!n) return;
389
389
  const c = e.current;
390
390
  if (!c) return;
391
391
  const f = (h) => {
392
392
  const u = a.current;
393
393
  if (!u || !u.go) return;
394
- const { deltaX: p, deltaY: d } = h;
395
- if (Math.abs(p) <= Math.abs(d)) return;
396
- h.preventDefault(), r.current += p;
394
+ const { deltaX: m, deltaY: d } = h;
395
+ if (Math.abs(m) <= Math.abs(d)) return;
396
+ h.preventDefault(), r.current += m;
397
397
  const g = Date.now();
398
398
  if (g - s.current < i || Math.abs(r.current) < o) return;
399
- const m = r.current > 0 ? ">" : "<";
400
- r.current = 0, s.current = g, u.go(m);
399
+ const p = r.current > 0 ? ">" : "<";
400
+ r.current = 0, s.current = g, u.go(p);
401
401
  };
402
402
  return c.addEventListener("wheel", f, { passive: !1 }), () => {
403
403
  c.removeEventListener("wheel", f), r.current = 0;
@@ -422,82 +422,82 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
422
422
  useIndexAsKey: f = !1,
423
423
  enableHorizontalWheel: h = !0,
424
424
  showRightGradient: u = !1
425
- }, p) => {
426
- const d = V(null), g = V(null), m = V(e.length), _ = V(null), I = V(null);
425
+ }, m) => {
426
+ const d = V(null), g = V(null), p = V(e.length), v = V(null), C = V(null);
427
427
  fa(g, d, {
428
428
  enabled: h
429
- }), kt(p, () => ({
429
+ }), kt(m, () => ({
430
430
  next: () => {
431
- var T;
432
- return (T = d.current) == null ? void 0 : T.go(">");
431
+ var E;
432
+ return (E = d.current) == null ? void 0 : E.go(">");
433
433
  },
434
434
  prev: () => {
435
- var T;
436
- return (T = d.current) == null ? void 0 : T.go("<");
435
+ var E;
436
+ return (E = d.current) == null ? void 0 : E.go("<");
437
437
  },
438
- go: (T) => {
438
+ go: (E) => {
439
439
  var A;
440
- return (A = d.current) == null ? void 0 : A.go(T);
440
+ return (A = d.current) == null ? void 0 : A.go(E);
441
441
  }
442
442
  }));
443
- const y = (T) => {
443
+ const _ = (E) => {
444
444
  var W;
445
- const A = T.Components.Slides, $ = T.Components.Controller, x = T.root.querySelector(".splide__track"), O = (W = x == null ? void 0 : x.clientWidth) != null ? W : 0, P = $.getIndex(), z = A.getLength();
446
- let R = 0, U = P;
447
- for (let G = P; G < z; G++) {
445
+ const A = E.Components.Slides, N = E.Components.Controller, x = E.root.querySelector(".splide__track"), T = (W = x == null ? void 0 : x.clientWidth) != null ? W : 0, L = N.getIndex(), z = A.getLength();
446
+ let R = 0, U = L;
447
+ for (let G = L; G < z; G++) {
448
448
  const w = A.getAt(G);
449
- if (!w || (R += w.slide.offsetWidth, R > O)) break;
449
+ if (!w || (R += w.slide.offsetWidth, R > T)) break;
450
450
  U = G;
451
451
  }
452
- return { visibleStart: P, visibleEnd: U };
453
- }, v = (T) => {
454
- const A = T.root.querySelector(".splide__track"), $ = T.root.querySelector(".splide__list");
455
- return !A || !$ ? !1 : $.scrollWidth > A.clientWidth + 1;
456
- }, C = Ee((T) => {
452
+ return { visibleStart: L, visibleEnd: U };
453
+ }, I = (E) => {
454
+ const A = E.root.querySelector(".splide__track"), N = E.root.querySelector(".splide__list");
455
+ return !A || !N ? !1 : N.scrollWidth > A.clientWidth + 1;
456
+ }, O = Ee((E) => {
457
457
  var U, W;
458
- const $ = T.Components.Slides.getLength();
459
- if (!v(T)) {
458
+ const N = E.Components.Slides.getLength();
459
+ if (!I(E)) {
460
460
  c == null || c({
461
461
  index: 0,
462
462
  isStart: !0,
463
463
  isEnd: !0,
464
- total: $,
464
+ total: N,
465
465
  visibleStart: 0,
466
- visibleEnd: $ - 1
466
+ visibleEnd: N - 1
467
467
  });
468
468
  return;
469
469
  }
470
- const { visibleStart: x, visibleEnd: O } = y(T), P = x === 0, z = O === $ - 1;
471
- u && ((U = _.current) == null || U.style.setProperty("--gradient-opacity", P ? "0" : "1"), (W = I.current) == null || W.style.setProperty("--gradient-opacity", z ? "0" : "1"));
472
- const R = T.Components.Controller.getIndex();
470
+ const { visibleStart: x, visibleEnd: T } = _(E), L = x === 0, z = T === N - 1;
471
+ u && ((U = v.current) == null || U.style.setProperty("--gradient-opacity", L ? "0" : "1"), (W = C.current) == null || W.style.setProperty("--gradient-opacity", z ? "0" : "1"));
472
+ const R = E.Components.Controller.getIndex();
473
473
  c == null || c({
474
474
  index: R,
475
- isStart: P,
475
+ isStart: L,
476
476
  isEnd: z,
477
- total: $,
477
+ total: N,
478
478
  visibleStart: x,
479
- visibleEnd: O
479
+ visibleEnd: T
480
480
  });
481
481
  }, [c]);
482
482
  fe.useEffect(() => {
483
- var $;
484
- const T = ($ = d.current) == null ? void 0 : $.splide;
485
- if (!T) return;
486
- const A = m.current !== e.length;
487
- m.current = e.length, A && requestAnimationFrame(() => {
488
- T.refresh(), C(T);
483
+ var N;
484
+ const E = (N = d.current) == null ? void 0 : N.splide;
485
+ if (!E) return;
486
+ const A = p.current !== e.length;
487
+ p.current = e.length, A && requestAnimationFrame(() => {
488
+ E.refresh(), O(E);
489
489
  });
490
- }, [e.length, C]);
490
+ }, [e.length, O]);
491
491
  const D = Ee(() => {
492
492
  var A;
493
- const T = (A = d.current) == null ? void 0 : A.splide;
494
- T && (T.go(0, !1), C(T));
495
- }, [C]), k = Ee(
496
- (T) => {
497
- C(T);
493
+ const E = (A = d.current) == null ? void 0 : A.splide;
494
+ E && (E.go(0, !1), O(E));
495
+ }, [O]), y = Ee(
496
+ (E) => {
497
+ O(E);
498
498
  },
499
- [C]
500
- ), M = {
499
+ [O]
500
+ ), $ = {
501
501
  type: "slide",
502
502
  trimSpace: !1,
503
503
  drag: !0,
@@ -523,13 +523,13 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
523
523
  _a,
524
524
  {
525
525
  ref: d,
526
- options: M,
527
- onMove: C,
528
- onMounted: k,
526
+ options: $,
527
+ onMove: O,
528
+ onMounted: y,
529
529
  onResize: D,
530
- children: e.map((T, A) => {
531
- var $;
532
- return /* @__PURE__ */ t(ya, { children: a(T, A) }, f ? A : ($ = T.id) != null ? $ : A);
530
+ children: e.map((E, A) => {
531
+ var N;
532
+ return /* @__PURE__ */ t(ya, { children: a(E, A) }, f ? A : (N = E.id) != null ? N : A);
533
533
  })
534
534
  }
535
535
  ),
@@ -537,7 +537,7 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
537
537
  /* @__PURE__ */ t(
538
538
  "div",
539
539
  {
540
- ref: _,
540
+ ref: v,
541
541
  className: `${ye.gradientOverlay} ${ye.left}`,
542
542
  style: { "--gradient-opacity": "0" },
543
543
  children: /* @__PURE__ */ b(
@@ -562,7 +562,7 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
562
562
  /* @__PURE__ */ t(
563
563
  "div",
564
564
  {
565
- ref: I,
565
+ ref: C,
566
566
  className: `${ye.gradientOverlay} ${ye.right}`,
567
567
  style: { "--gradient-opacity": "1" },
568
568
  children: /* @__PURE__ */ b(
@@ -686,16 +686,16 @@ function xa({
686
686
  md: { w: 186, h: 264, r: 22.6, font: 64 }
687
687
  }
688
688
  }) {
689
- var p, d, g, m;
690
- const r = (_, I) => {
691
- var y, v, C, D;
689
+ var m, d, g, p;
690
+ const r = (v, C) => {
691
+ var _, I, O, D;
692
692
  return {
693
- xs: (v = (y = i.xs) == null ? void 0 : y[_]) != null ? v : I,
694
- md: (D = (C = i.md) == null ? void 0 : C[_]) != null ? D : I
693
+ xs: (I = (_ = i.xs) == null ? void 0 : _[v]) != null ? I : C,
694
+ md: (D = (O = i.md) == null ? void 0 : O[v]) != null ? D : C
695
695
  };
696
696
  }, s = r("w", 186), c = r("h", 264), f = r("r", 22.6), h = r("font", 64), u = {
697
- xs: Math.round(((d = (p = i.xs) == null ? void 0 : p.font) != null ? d : 64) * 0.28),
698
- md: Math.round(((m = (g = i.md) == null ? void 0 : g.font) != null ? m : 64) * 0.28)
697
+ xs: Math.round(((d = (m = i.xs) == null ? void 0 : m.font) != null ? d : 64) * 0.28),
698
+ md: Math.round(((p = (g = i.md) == null ? void 0 : g.font) != null ? p : 64) * 0.28)
699
699
  };
700
700
  return /* @__PURE__ */ b(
701
701
  q,
@@ -866,7 +866,7 @@ const wa = ({
866
866
  ]
867
867
  }
868
868
  );
869
- }, Le = 12, Fe = ({ r: e = 16 }) => /* @__PURE__ */ t(q, { sx: { width: "100%", height: "100%", borderRadius: e, overflow: "hidden" }, children: /* @__PURE__ */ t(
869
+ }, Pe = 12, Fe = ({ r: e = 16 }) => /* @__PURE__ */ t(q, { sx: { width: "100%", height: "100%", borderRadius: e, overflow: "hidden" }, children: /* @__PURE__ */ t(
870
870
  j,
871
871
  {
872
872
  variant: "rectangular",
@@ -909,8 +909,8 @@ const wa = ({
909
909
  xs: "104px",
910
910
  md: "152px"
911
911
  },
912
- columnGap: `${Le}px`,
913
- rowGap: `${Le}px`,
912
+ columnGap: `${Pe}px`,
913
+ rowGap: `${Pe}px`,
914
914
  alignItems: "stretch",
915
915
  justifyItems: "stretch"
916
916
  },
@@ -937,7 +937,7 @@ const wa = ({
937
937
  }
938
938
  ),
939
939
  (o ? Array.from({ length: 4 }) : f).map((h, u) => {
940
- var p, d;
940
+ var m, d;
941
941
  return /* @__PURE__ */ t(
942
942
  q,
943
943
  {
@@ -950,7 +950,7 @@ const wa = ({
950
950
  children: o ? /* @__PURE__ */ t(Fe, {}) : /* @__PURE__ */ t(
951
951
  Te,
952
952
  {
953
- imageUrl: `https://olimpo.bet${(d = (p = h.background) != null ? p : h.imageUrl) != null ? d : ""}`,
953
+ imageUrl: `https://olimpo.bet${(d = (m = h.background) != null ? m : h.imageUrl) != null ? d : ""}`,
954
954
  size: "sm",
955
955
  fillParent: !0,
956
956
  onClick: () => n == null ? void 0 : n(h, u + 1)
@@ -977,11 +977,11 @@ const wa = ({
977
977
  xs: "repeat(2, 112px)",
978
978
  md: "repeat(2, 168px)"
979
979
  },
980
- gap: `${Le}px`,
980
+ gap: `${Pe}px`,
981
981
  gridAutoFlow: "column"
982
982
  },
983
983
  children: (o ? Array.from({ length: i }) : e).map((c, f) => {
984
- var h, u, p;
984
+ var h, u, m;
985
985
  return /* @__PURE__ */ t(
986
986
  q,
987
987
  {
@@ -996,7 +996,7 @@ const wa = ({
996
996
  }
997
997
  )
998
998
  },
999
- o ? `sk-${f}` : (p = c.id) != null ? p : f
999
+ o ? `sk-${f}` : (m = c.id) != null ? m : f
1000
1000
  );
1001
1001
  })
1002
1002
  }
@@ -1012,7 +1012,7 @@ const wa = ({
1012
1012
  className: c = "",
1013
1013
  variant: f = "small"
1014
1014
  }) => {
1015
- const h = a ? a.slice(0, 2) : "", u = a ? a.slice(2) : "", p = f === "large";
1015
+ const h = a ? a.slice(0, 2) : "", u = a ? a.slice(2) : "", m = f === "large";
1016
1016
  return /* @__PURE__ */ b(
1017
1017
  q,
1018
1018
  {
@@ -1022,7 +1022,7 @@ const wa = ({
1022
1022
  width: "100%",
1023
1023
  maxWidth: {
1024
1024
  xs: 328,
1025
- md: p ? 618 : 456
1025
+ md: m ? 618 : 456
1026
1026
  },
1027
1027
  mx: "auto"
1028
1028
  },
@@ -1035,7 +1035,7 @@ const wa = ({
1035
1035
  width: "100%",
1036
1036
  aspectRatio: {
1037
1037
  xs: "328 / 188",
1038
- md: p ? "618 / 346" : "456 / 272"
1038
+ md: m ? "618 / 346" : "456 / 272"
1039
1039
  },
1040
1040
  borderRadius: "14px",
1041
1041
  overflow: "hidden"
@@ -1244,34 +1244,34 @@ function Ra({ coupon: e }) {
1244
1244
  var h;
1245
1245
  const a = ae(), n = ne();
1246
1246
  function o(u) {
1247
- var g, m;
1248
- const p = [], d = Array.from(
1247
+ var g, p;
1248
+ const m = [], d = Array.from(
1249
1249
  new Map(
1250
- ((g = u == null ? void 0 : u.events) != null ? g : []).filter(Boolean).map((_) => [_.id, _])
1250
+ ((g = u == null ? void 0 : u.events) != null ? g : []).filter(Boolean).map((v) => [v.id, v])
1251
1251
  ).values()
1252
1252
  );
1253
- return d.forEach((_) => {
1254
- var C;
1255
- const I = (C = _.betoffers) != null ? C : [], y = _.homeName, v = _.awayName;
1256
- I.forEach((D) => {
1257
- var A, $, x, O, P, z, R;
1253
+ return d.forEach((v) => {
1254
+ var O;
1255
+ const C = (O = v.betoffers) != null ? O : [], _ = v.homeName, I = v.awayName;
1256
+ C.forEach((D) => {
1257
+ var A, N, x, T, L, z, R;
1258
1258
  if (!((A = D == null ? void 0 : D.outcomes) != null && A.length)) return;
1259
- const k = D.outcomes[0];
1260
- if (!k) return;
1261
- let M = "";
1262
- const T = k != null && k.line ? k.line / 1e3 : "";
1263
- ["Más de", "Mas de", "Over"].includes(k.label) ? (M = `Más de ${T}`, k.participant && (M = `${k.participant} - ${M}`)) : ["Menos de", "Menos", "Under"].includes(k.label) ? (M = `Menos de ${T}`, k.participant && (M = `${k.participant} - ${M}`)) : ["Sí", "No"].includes(k.label) ? (M = k.label, k.participant && (M = `${k.participant} - ${M}`)) : ["1X", "12", "X2"].includes(k.label) ? (k.label === "1X" && (M = `${y} o Empate`), k.label === "12" && (M = `${y} o ${v}`), k.label === "X2" && (M = `${v} o Empate`)) : (M = (x = ($ = k.participant) != null ? $ : k.label) != null ? x : "", T !== "" && M === k.label && (M = `${k.label} ${T}`)), p.push({
1264
- id: k.id,
1265
- value: M,
1266
- label: (P = (O = D.criterion) == null ? void 0 : O.label) != null ? P : "",
1267
- odds: (z = k.odds) != null ? z : 0,
1268
- position: (R = k.position) != null ? R : 0,
1269
- eventId: _.id
1259
+ const y = D.outcomes[0];
1260
+ if (!y) return;
1261
+ let $ = "";
1262
+ const E = y != null && y.line ? y.line / 1e3 : "";
1263
+ ["Más de", "Mas de", "Over"].includes(y.label) ? ($ = `Más de ${E}`, y.participant && ($ = `${y.participant} - ${$}`)) : ["Menos de", "Menos", "Under"].includes(y.label) ? ($ = `Menos de ${E}`, y.participant && ($ = `${y.participant} - ${$}`)) : ["Sí", "No"].includes(y.label) ? ($ = y.label, y.participant && ($ = `${y.participant} - ${$}`)) : ["1X", "12", "X2"].includes(y.label) ? (y.label === "1X" && ($ = `${_} o Empate`), y.label === "12" && ($ = `${_} o ${I}`), y.label === "X2" && ($ = `${I} o Empate`)) : ($ = (x = (N = y.participant) != null ? N : y.label) != null ? x : "", E !== "" && $ === y.label && ($ = `${y.label} ${E}`)), m.push({
1264
+ id: y.id,
1265
+ value: $,
1266
+ label: (L = (T = D.criterion) == null ? void 0 : T.label) != null ? L : "",
1267
+ odds: (z = y.odds) != null ? z : 0,
1268
+ position: (R = y.position) != null ? R : 0,
1269
+ eventId: v.id
1270
1270
  });
1271
1271
  });
1272
1272
  }), {
1273
- outcomes: p.sort((_, I) => _.position - I.position),
1274
- total: Number((m = u == null ? void 0 : u.combinadoTotal) != null ? m : 0).toLocaleString("en-US", {
1273
+ outcomes: m.sort((v, C) => v.position - C.position),
1274
+ total: Number((p = u == null ? void 0 : u.combinadoTotal) != null ? p : 0).toLocaleString("en-US", {
1275
1275
  minimumFractionDigits: 2,
1276
1276
  maximumFractionDigits: 2
1277
1277
  }),
@@ -1281,45 +1281,45 @@ function Ra({ coupon: e }) {
1281
1281
  function i(u) {
1282
1282
  if (!u || !Array.isArray(u.events) || u.events.length === 0)
1283
1283
  return "/deportes#home";
1284
- const p = u.events;
1285
- if (p.length === 1)
1286
- return `/deportes#event/${p[0].id}`;
1287
- const d = p[0].groupId;
1288
- if (p.every((m) => m.groupId === d)) {
1289
- const m = p[0].path;
1290
- if (Array.isArray(m) && m.length > 0)
1291
- return `/deportes#sports-hub/${m.map((I) => I.termKey).filter(Boolean).join("/")}`;
1284
+ const m = u.events;
1285
+ if (m.length === 1)
1286
+ return `/deportes#event/${m[0].id}`;
1287
+ const d = m[0].groupId;
1288
+ if (m.every((p) => p.groupId === d)) {
1289
+ const p = m[0].path;
1290
+ if (Array.isArray(p) && p.length > 0)
1291
+ return `/deportes#sports-hub/${p.map((C) => C.termKey).filter(Boolean).join("/")}`;
1292
1292
  }
1293
1293
  return "/deportes#home";
1294
1294
  }
1295
- const r = (u, p) => {
1295
+ const r = (u, m) => {
1296
1296
  const d = Array.isArray(u) ? u : [u], g = Array.from(
1297
1297
  new Set(
1298
- s.outcomes.map((I) => {
1299
- var v;
1300
- const y = f.get(Number(I.eventId));
1301
- return (v = y == null ? void 0 : y.name) != null ? v : "";
1298
+ s.outcomes.map((C) => {
1299
+ var I;
1300
+ const _ = f.get(Number(C.eventId));
1301
+ return (I = _ == null ? void 0 : _.name) != null ? I : "";
1302
1302
  })
1303
1303
  )
1304
- ).filter(Boolean), m = g.length > 0 ? g.join(" + ") : JSON.stringify(d), _ = p ? `${m} - Cuota: ${p}` : m;
1304
+ ).filter(Boolean), p = g.length > 0 ? g.join(" + ") : JSON.stringify(d), v = m ? `${p} - Cuota: ${m}` : p;
1305
1305
  a({
1306
1306
  element: "evento_semana_outcome",
1307
- label: `Landing: ${n} - OraculoEventCombinadasCard - Click: ${_}`,
1307
+ label: `Landing: ${n} - OraculoEventCombinadasCard - Click: ${v}`,
1308
1308
  target: "/deportes#in-play",
1309
1309
  event_type: "click",
1310
1310
  module_id: 301,
1311
1311
  metadata: {
1312
1312
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
1313
1313
  },
1314
- tags: { section: "OraculoEventCombinadasCard", outcomes: _ }
1314
+ tags: { section: "OraculoEventCombinadasCard", outcomes: v }
1315
1315
  }), Ue(i(e), u);
1316
1316
  };
1317
1317
  if (!((h = e == null ? void 0 : e.events) != null && h.length)) return null;
1318
- const s = o(e), c = s.outcomes.reduce((u, p) => (u[p.eventId] || (u[p.eventId] = []), u[p.eventId].push(p), u), {}), f = new Map(
1318
+ const s = o(e), c = s.outcomes.reduce((u, m) => (u[m.eventId] || (u[m.eventId] = []), u[m.eventId].push(m), u), {}), f = new Map(
1319
1319
  s.events.map((u) => [u.id, u])
1320
1320
  );
1321
1321
  return /* @__PURE__ */ b("div", { className: ce.card, children: [
1322
- /* @__PURE__ */ t("div", { className: ce.combinadas, children: /* @__PURE__ */ t("div", { className: ce.combinadasScroll, children: /* @__PURE__ */ t(H, { direction: "column", spacing: 1.5, useFlexGap: !0, children: Object.entries(c).reverse().map(([u, p]) => {
1322
+ /* @__PURE__ */ t("div", { className: ce.combinadas, children: /* @__PURE__ */ t("div", { className: ce.combinadasScroll, children: /* @__PURE__ */ t(H, { direction: "column", spacing: 1.5, useFlexGap: !0, children: Object.entries(c).reverse().map(([u, m]) => {
1323
1323
  const d = f.get(Number(u));
1324
1324
  return d ? /* @__PURE__ */ b(
1325
1325
  H,
@@ -1343,17 +1343,17 @@ function Ra({ coupon: e }) {
1343
1343
  src: "/assets/img/home/Combinadas/line.png"
1344
1344
  }
1345
1345
  ),
1346
- p.map((g, m) => /* @__PURE__ */ b("div", { className: ce.apuestaItem, children: [
1346
+ m.map((g, p) => /* @__PURE__ */ b("div", { className: ce.apuestaItem, children: [
1347
1347
  /* @__PURE__ */ b("div", { className: ce.lineContainer, children: [
1348
1348
  /* @__PURE__ */ t("div", { className: ce.circle }),
1349
- m < p.length - 1 && /* @__PURE__ */ t("div", { className: ce.line })
1349
+ p < m.length - 1 && /* @__PURE__ */ t("div", { className: ce.line })
1350
1350
  ] }),
1351
1351
  /* @__PURE__ */ b("div", { className: ce.apuestaText, children: [
1352
1352
  /* @__PURE__ */ t("strong", { children: g.value }),
1353
1353
  " | ",
1354
1354
  g.label
1355
1355
  ] })
1356
- ] }, `${u}-${m}`))
1356
+ ] }, `${u}-${p}`))
1357
1357
  ]
1358
1358
  },
1359
1359
  u
@@ -1399,7 +1399,7 @@ const de = {
1399
1399
  "orc-btn--full": "oraculo__OraculoButtonBet-module__orc-btn--full___z-Myo",
1400
1400
  "orc-btn--fullHeight": "oraculo__OraculoButtonBet-module__orc-btn--fullHeight___pCxq1"
1401
1401
  };
1402
- function Pa({
1402
+ function La({
1403
1403
  children: e,
1404
1404
  onClick: a,
1405
1405
  href: n,
@@ -1411,13 +1411,13 @@ function Pa({
1411
1411
  size: f,
1412
1412
  fullWidth: h = !1,
1413
1413
  fullHeight: u = !1,
1414
- className: p = "",
1414
+ className: m = "",
1415
1415
  ariaLabel: d,
1416
1416
  leftIcon: g,
1417
- rightIcon: m,
1418
- iconOnly: _
1417
+ rightIcon: p,
1418
+ iconOnly: v
1419
1419
  }) {
1420
- const I = !!e && e !== !0, C = (!!g ? 1 : 0) + (!!m ? 1 : 0) == 1, D = _ != null ? _ : C && !I, k = [
1420
+ const C = !!e && e !== !0, O = (!!g ? 1 : 0) + (!!p ? 1 : 0) == 1, D = v != null ? v : O && !C, y = [
1421
1421
  de["orc-btn"],
1422
1422
  // base
1423
1423
  de[`orc-btn--${c}`],
@@ -1427,12 +1427,12 @@ function Pa({
1427
1427
  h ? de["orc-btn--full"] : "",
1428
1428
  u ? de["orc-btn--fullHeight"] : "",
1429
1429
  D ? de["orc-btn--iconOnly"] : "",
1430
- p
1431
- ].filter(Boolean).join(" "), M = /* @__PURE__ */ b(pe, { children: [
1430
+ m
1431
+ ].filter(Boolean).join(" "), $ = /* @__PURE__ */ b(pe, { children: [
1432
1432
  g && /* @__PURE__ */ t("span", { className: de["orc-btn__icon"], children: g }),
1433
1433
  !D && /* @__PURE__ */ t("span", { className: de["orc-btn__label"], children: e }),
1434
- m && /* @__PURE__ */ t("span", { className: de["orc-btn__icon"], children: m })
1435
- ] }), T = s ? !0 : void 0;
1434
+ p && /* @__PURE__ */ t("span", { className: de["orc-btn__icon"], children: p })
1435
+ ] }), E = s ? !0 : void 0;
1436
1436
  return n ? /* @__PURE__ */ t(
1437
1437
  rt,
1438
1438
  {
@@ -1440,26 +1440,26 @@ function Pa({
1440
1440
  target: o,
1441
1441
  rel: i,
1442
1442
  "aria-label": d,
1443
- "aria-disabled": T,
1444
- tabIndex: T ? -1 : void 0,
1445
- className: k,
1446
- onClick: T ? (A) => A.preventDefault() : a,
1447
- children: M
1443
+ "aria-disabled": E,
1444
+ tabIndex: E ? -1 : void 0,
1445
+ className: y,
1446
+ onClick: E ? (A) => A.preventDefault() : a,
1447
+ children: $
1448
1448
  }
1449
1449
  ) : /* @__PURE__ */ t(
1450
1450
  "button",
1451
1451
  {
1452
1452
  type: r,
1453
1453
  onClick: a,
1454
- disabled: !!T,
1454
+ disabled: !!E,
1455
1455
  "aria-label": d,
1456
- className: k,
1457
- children: M
1456
+ className: y,
1457
+ children: $
1458
1458
  }
1459
1459
  );
1460
1460
  }
1461
- const La = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", Fa = "oraculo__OraculoEventEnVivoCard-module__customButtonLabel___QRhk7", qa = "oraculo__OraculoEventEnVivoCard-module__customButtonDisabled___jwioF", ke = {
1462
- cardWrapper: La,
1461
+ const Pa = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", Fa = "oraculo__OraculoEventEnVivoCard-module__customButtonLabel___QRhk7", qa = "oraculo__OraculoEventEnVivoCard-module__customButtonDisabled___jwioF", ke = {
1462
+ cardWrapper: Pa,
1463
1463
  customButtonLabel: Fa,
1464
1464
  customButtonDisabled: qa
1465
1465
  }, Xe = {
@@ -1484,11 +1484,11 @@ const La = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", Fa = "
1484
1484
  return o || (a === "home" ? Xe : Ye);
1485
1485
  };
1486
1486
  function Da({ event: e, liveData: a, betOffers: n, jersey: o }) {
1487
- var c, f, h, u, p, d, g, m, _, I, y;
1487
+ var c, f, h, u, m, d, g, p, v, C, _;
1488
1488
  const i = n == null ? void 0 : n.find(
1489
- (v) => {
1490
- var C;
1491
- return ((C = v.betOfferType) == null ? void 0 : C.id) === 2;
1489
+ (I) => {
1490
+ var O;
1491
+ return ((O = I.betOfferType) == null ? void 0 : O.id) === 2;
1492
1492
  }
1493
1493
  ), r = {
1494
1494
  englishLabel: "",
@@ -1512,20 +1512,20 @@ function Da({ event: e, liveData: a, betOffers: n, jersey: o }) {
1512
1512
  title: (h = (f = (c = e == null ? void 0 : e.path) == null ? void 0 : c[0]) == null ? void 0 : f.name) != null ? h : "",
1513
1513
  subtitle: (u = e == null ? void 0 : e.group) != null ? u : "",
1514
1514
  live: !0,
1515
- time: ((p = a == null ? void 0 : a.matchClock) == null ? void 0 : p.minute) != null ? `${a.matchClock.minute}'` : ""
1515
+ time: ((m = a == null ? void 0 : a.matchClock) == null ? void 0 : m.minute) != null ? `${a.matchClock.minute}'` : ""
1516
1516
  }
1517
1517
  ),
1518
1518
  /* @__PURE__ */ t("div", { style: { padding: "0 4px" }, children: /* @__PURE__ */ b(me, { spacing: 1.5, columns: "1fr auto 1fr", children: [
1519
1519
  /* @__PURE__ */ t(Ne, { name: e == null ? void 0 : e.homeName, jersey: Me(o, "home") }),
1520
- /* @__PURE__ */ t(pt, { text: ((g = (d = a == null ? void 0 : a.score) == null ? void 0 : d.home) != null ? g : 0) + ":" + ((_ = (m = a == null ? void 0 : a.score) == null ? void 0 : m.away) != null ? _ : 0), name: "En vivo" }),
1520
+ /* @__PURE__ */ t(pt, { text: ((g = (d = a == null ? void 0 : a.score) == null ? void 0 : d.home) != null ? g : 0) + ":" + ((v = (p = a == null ? void 0 : a.score) == null ? void 0 : p.away) != null ? v : 0), name: "En vivo" }),
1521
1521
  /* @__PURE__ */ t(Ne, { name: e == null ? void 0 : e.awayName, jersey: Me(o, "away") })
1522
1522
  ] }) })
1523
1523
  ] }),
1524
1524
  /* @__PURE__ */ b(H, { direction: "column", spacing: 1, useFlexGap: !0, children: [
1525
- /* @__PURE__ */ t(me, { spacing: 1, children: ((I = i == null ? void 0 : i.outcomes) != null ? I : s).map((v, C) => /* @__PURE__ */ t(ut, { text: v.label.toUpperCase() }, C)) }),
1526
- /* @__PURE__ */ t(me, { spacing: 2, children: ((y = i == null ? void 0 : i.outcomes) != null ? y : s).map((v, C) => /* @__PURE__ */ t(Pa, { variant: "primary", disabled: v.odds == null || (i == null ? void 0 : i.cashOutStatus) == "SUSPENDED", onClick: () => {
1527
- Ue("/deportes#event/live/" + e.id, v.id);
1528
- }, className: ke.customButtonDisabled, children: /* @__PURE__ */ t("span", { className: ke.customButtonLabel, children: v.odds === void 0 ? "" : (v.odds / 1e3).toFixed(2) }) }, C)) })
1525
+ /* @__PURE__ */ t(me, { spacing: 1, children: ((C = i == null ? void 0 : i.outcomes) != null ? C : s).map((I, O) => /* @__PURE__ */ t(ut, { text: I.label.toUpperCase() }, O)) }),
1526
+ /* @__PURE__ */ t(me, { spacing: 2, children: ((_ = i == null ? void 0 : i.outcomes) != null ? _ : s).map((I, O) => /* @__PURE__ */ t(La, { variant: "primary", disabled: I.odds == null || (i == null ? void 0 : i.cashOutStatus) == "SUSPENDED", onClick: () => {
1527
+ Ue("/deportes#event/live/" + e.id, I.id);
1528
+ }, className: ke.customButtonDisabled, children: /* @__PURE__ */ t("span", { className: ke.customButtonLabel, children: I.odds === void 0 ? "" : (I.odds / 1e3).toFixed(2) }) }, O)) })
1529
1529
  ] })
1530
1530
  ] }) });
1531
1531
  }
@@ -1542,25 +1542,25 @@ const Ga = "oraculo__OraculoEventSemanaCard-module__cardContainer___4JuDe", ja =
1542
1542
  equipos: Ka
1543
1543
  };
1544
1544
  function Za({ event: e, jersey: a }) {
1545
- var s, c, f, h, u, p, d;
1545
+ var s, c, f, h, u, m, d;
1546
1546
  const n = ae(), o = ne();
1547
1547
  function i(g) {
1548
- const m = new Date(g), _ = m.toLocaleDateString("es-ES", { weekday: "short" }).toUpperCase(), I = m.getDate().toString().padStart(2, "0"), y = (m.getMonth() + 1).toString().padStart(2, "0");
1549
- let v = m.toLocaleTimeString("es-PE", { hour: "numeric", minute: "2-digit", hour12: !0 }).toUpperCase();
1550
- return v = v.replace(/\./g, "").replace(/A\s*M/i, "AM").replace(/P\s*M/i, "PM"), `${_} ${I}/${y} | ${v}`;
1548
+ const p = new Date(g), v = p.toLocaleDateString("es-ES", { weekday: "short" }).toUpperCase(), C = p.getDate().toString().padStart(2, "0"), _ = (p.getMonth() + 1).toString().padStart(2, "0");
1549
+ let I = p.toLocaleTimeString("es-PE", { hour: "numeric", minute: "2-digit", hour12: !0 }).toUpperCase();
1550
+ return I = I.replace(/\./g, "").replace(/A\s*M/i, "AM").replace(/P\s*M/i, "PM"), `${v} ${C}/${_} | ${I}`;
1551
1551
  }
1552
- const r = (g, m) => {
1553
- const _ = `${e.homeName} vs ${e.awayName}`, I = m ? (m / 1e3).toFixed(2) : "", y = I ? `${_} - Cuota: ${I}` : _;
1552
+ const r = (g, p) => {
1553
+ const v = `${e.homeName} vs ${e.awayName}`, C = p ? (p / 1e3).toFixed(2) : "", _ = C ? `${v} - Cuota: ${C}` : v;
1554
1554
  n({
1555
1555
  element: "evento_semana_outcome",
1556
- label: `Landing: ${o} - OraculoEventSemanaCard - Click: ${y}`,
1556
+ label: `Landing: ${o} - OraculoEventSemanaCard - Click: ${_}`,
1557
1557
  target: "/deportes#in-play",
1558
1558
  event_type: "click",
1559
1559
  module_id: 301,
1560
1560
  metadata: {
1561
1561
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
1562
1562
  },
1563
- tags: { section: "OraculoEventSemanaCard", outcomes: y }
1563
+ tags: { section: "OraculoEventSemanaCard", outcomes: _ }
1564
1564
  }), Ue("/deportes#event/" + e.id, g);
1565
1565
  };
1566
1566
  return /* @__PURE__ */ b("div", { className: be.cardContainer, children: [
@@ -1575,10 +1575,10 @@ function Za({ event: e, jersey: a }) {
1575
1575
  /* @__PURE__ */ t(Wa, { text: i(e.start) })
1576
1576
  ] }),
1577
1577
  /* @__PURE__ */ b(H, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
1578
- /* @__PURE__ */ t(me, { spacing: 1, children: ((h = (f = (c = e == null ? void 0 : e.outcome) == null ? void 0 : c[0]) == null ? void 0 : f.outcomes) != null ? h : []).map((g, m) => /* @__PURE__ */ t(ut, { text: g.label.toUpperCase() }, m)) }),
1579
- /* @__PURE__ */ t("div", { className: be.jugadas, children: /* @__PURE__ */ t(me, { spacing: 1, children: ((d = (p = (u = e == null ? void 0 : e.outcome) == null ? void 0 : u[0]) == null ? void 0 : p.outcomes) != null ? d : []).map((g, m) => /* @__PURE__ */ t(X, { variant: "primary", fullHeight: !0, onClick: () => {
1578
+ /* @__PURE__ */ t(me, { spacing: 1, children: ((h = (f = (c = e == null ? void 0 : e.outcome) == null ? void 0 : c[0]) == null ? void 0 : f.outcomes) != null ? h : []).map((g, p) => /* @__PURE__ */ t(ut, { text: g.label.toUpperCase() }, p)) }),
1579
+ /* @__PURE__ */ t("div", { className: be.jugadas, children: /* @__PURE__ */ t(me, { spacing: 1, children: ((d = (m = (u = e == null ? void 0 : e.outcome) == null ? void 0 : u[0]) == null ? void 0 : m.outcomes) != null ? d : []).map((g, p) => /* @__PURE__ */ t(X, { variant: "primary", fullHeight: !0, onClick: () => {
1580
1580
  r(g.id, g.odds);
1581
- }, children: (g.odds / 1e3).toFixed(2) }, m)) }) })
1581
+ }, children: (g.odds / 1e3).toFixed(2) }, p)) }) })
1582
1582
  ] })
1583
1583
  ] }) })
1584
1584
  ] });
@@ -1588,65 +1588,73 @@ function Ja({
1588
1588
  title: a = "Destacados",
1589
1589
  iconUrl: n,
1590
1590
  onViewMore: o,
1591
- className: i = ""
1591
+ className: i = "",
1592
+ paddingMobile: r = "16px"
1592
1593
  }) {
1593
- const r = V(null), [s, c] = Z({ isStart: !0, isEnd: !1 }), f = ae(), h = ne(), u = le(), p = !e || e.length === 0, d = () => {
1594
- var v;
1595
- f({
1594
+ var D;
1595
+ const s = V(null), [c, f] = Z({ isStart: !0, isEnd: !1 }), h = ae(), u = ne(), m = le(), d = !e || e.length === 0, g = () => {
1596
+ var y;
1597
+ h({
1596
1598
  element: "destacados_carousel_prev",
1597
- label: `${h} - OraculoSeccionDestacados - Anterior`,
1599
+ label: `${u} - OraculoSeccionDestacados - Anterior`,
1598
1600
  target: "carousel",
1599
1601
  event_type: "click",
1600
- module_id: u,
1602
+ module_id: m,
1601
1603
  metadata: {
1602
1604
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
1603
1605
  },
1604
1606
  tags: { section: "OraculoSeccionDestacados" }
1605
- }), (v = r.current) == null || v.prev();
1606
- }, g = () => {
1607
- var v;
1608
- f({
1607
+ }), (y = s.current) == null || y.prev();
1608
+ }, p = () => {
1609
+ var y;
1610
+ h({
1609
1611
  element: "destacados_carousel_next",
1610
- label: `${h} - OraculoSeccionDestacados - Siguiente`,
1612
+ label: `${u} - OraculoSeccionDestacados - Siguiente`,
1611
1613
  target: "carousel",
1612
1614
  event_type: "click",
1613
- module_id: u,
1615
+ module_id: m,
1614
1616
  metadata: {
1615
1617
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
1616
1618
  },
1617
1619
  tags: { section: "OraculoSeccionDestacados" }
1618
- }), (v = r.current) == null || v.next();
1619
- }, m = () => {
1620
- f({
1620
+ }), (y = s.current) == null || y.next();
1621
+ }, v = () => {
1622
+ h({
1621
1623
  element: "destacados_view_more",
1622
- label: `${h} - OraculoSeccionDestacados - Ver más`,
1624
+ label: `${u} - OraculoSeccionDestacados - Ver más`,
1623
1625
  target: "https://www.olimpo.bet/promociones",
1624
1626
  event_type: "click",
1625
- module_id: u,
1627
+ module_id: m,
1626
1628
  metadata: {
1627
1629
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
1628
1630
  },
1629
1631
  tags: { section: "OraculoSeccionDestacados" }
1630
1632
  }), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/promociones");
1631
- }, _ = (v) => {
1632
- if (!v) return;
1633
- const D = `https://www.olimpo.bet/promociones/${encodeURIComponent(v)}`;
1634
- f({
1633
+ }, C = (y) => {
1634
+ if (!y) return;
1635
+ const E = `https://www.olimpo.bet/promociones/${encodeURIComponent(y)}`;
1636
+ h({
1635
1637
  element: "destacados_card",
1636
- label: `${h} - OraculoSeccionDestacados - Click: ${String(v)}`,
1637
- target: D,
1638
+ label: `${u} - OraculoSeccionDestacados - Click: ${String(y)}`,
1639
+ target: E,
1638
1640
  event_type: "click",
1639
- module_id: u,
1641
+ module_id: m,
1640
1642
  metadata: {
1641
1643
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
1642
1644
  },
1643
1645
  tags: {
1644
1646
  section: "OraculoSeccionDestacados",
1645
- promotion: String(v)
1647
+ promotion: String(y)
1646
1648
  }
1647
- }), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(D);
1648
- }, I = i || void 0, y = xe("(max-width:950px)");
1649
- return /* @__PURE__ */ b("section", { className: I, style: { width: "100%" }, children: [
1649
+ }), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(E);
1650
+ }, _ = i || void 0, I = xe("(max-width:950px)"), O = (D = e == null ? void 0 : e.length) != null ? D : 0;
1651
+ return Q(() => {
1652
+ if (O === 0) {
1653
+ f({ isStart: !0, isEnd: !0 });
1654
+ return;
1655
+ }
1656
+ f({ isStart: !0, isEnd: !1 });
1657
+ }, [O, I, r]), /* @__PURE__ */ b("section", { className: _, style: { width: "100%" }, children: [
1650
1658
  /* @__PURE__ */ b(
1651
1659
  "header",
1652
1660
  {
@@ -1656,9 +1664,9 @@ function Ja({
1656
1664
  alignItems: "center",
1657
1665
  columnGap: 12,
1658
1666
  rowGap: 8,
1659
- // marginBottom: 16,
1660
- paddingLeft: y ? 16 : 0,
1661
- paddingRight: y ? 16 : 0
1667
+ marginBottom: 16,
1668
+ paddingLeft: I ? r : 0,
1669
+ paddingRight: I ? r : 0
1662
1670
  },
1663
1671
  children: [
1664
1672
  /* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
@@ -1670,8 +1678,8 @@ function Ja({
1670
1678
  variant: "secondary",
1671
1679
  iconOnly: !0,
1672
1680
  leftIcon: /* @__PURE__ */ t(Ae, {}),
1673
- onClick: d,
1674
- disabled: s.isStart || p
1681
+ onClick: g,
1682
+ disabled: c.isStart || d
1675
1683
  }
1676
1684
  ),
1677
1685
  /* @__PURE__ */ t(
@@ -1681,43 +1689,42 @@ function Ja({
1681
1689
  variant: "secondary",
1682
1690
  iconOnly: !0,
1683
1691
  rightIcon: /* @__PURE__ */ t(ze, {}),
1684
- onClick: g,
1685
- disabled: s.isEnd || p
1692
+ onClick: p,
1693
+ disabled: c.isEnd || d
1686
1694
  }
1687
1695
  )
1688
1696
  ] }),
1689
- /* @__PURE__ */ t(X, { variant: "secondary", onClick: m, children: "Ver más" })
1697
+ /* @__PURE__ */ t(X, { variant: "secondary", onClick: v, children: "Ver más" })
1690
1698
  ]
1691
1699
  }
1692
1700
  ),
1693
1701
  /* @__PURE__ */ t(
1694
1702
  he,
1695
1703
  {
1696
- ref: r,
1704
+ ref: s,
1697
1705
  items: e,
1698
1706
  perPage: void 0,
1699
1707
  gap: "16px",
1700
1708
  enableHorizontalWheel: !0,
1701
- showRightGradient: !y,
1709
+ showRightGradient: !I,
1702
1710
  options: { autoWidth: !0, trimSpace: "move" },
1703
1711
  breakpoints: {
1704
- 768: { perPage: 2, focus: "start", padding: { left: "24px", right: "24px" } },
1712
+ 768: { perPage: 2, focus: "start", padding: { left: r, right: r } },
1705
1713
  1024: { perPage: 2.5, focus: "start", padding: { left: "24px", right: "24px" } }
1706
1714
  },
1707
- renderItem: (v) => /* @__PURE__ */ t(
1715
+ renderItem: (y) => /* @__PURE__ */ t(
1708
1716
  "div",
1709
1717
  {
1710
1718
  style: {
1711
1719
  textAlign: "center",
1712
- marginTop: 16,
1713
1720
  cursor: "pointer"
1714
1721
  },
1715
- onClick: () => _(v.promotion),
1722
+ onClick: () => C(y.promotion),
1716
1723
  children: /* @__PURE__ */ t(
1717
1724
  "img",
1718
1725
  {
1719
- src: `https://olimpo.bet${v.image !== "" ? v.image : v.summary_image}`,
1720
- alt: v.title,
1726
+ src: `https://olimpo.bet${y.image !== "" ? y.image : y.summary_image}`,
1727
+ alt: y.title,
1721
1728
  style: {
1722
1729
  width: "100%",
1723
1730
  height: typeof window != "undefined" && window.innerWidth < 768 ? "80px" : "137px",
@@ -1728,19 +1735,19 @@ function Ja({
1728
1735
  }
1729
1736
  )
1730
1737
  },
1731
- `${v.title}-${v.image}`
1738
+ `${y.title}-${y.image}`
1732
1739
  ),
1733
- onMove: ({ isStart: v, isEnd: C }) => {
1734
- c({ isStart: v, isEnd: C }), f({
1740
+ onMove: ({ isStart: y, isEnd: $ }) => {
1741
+ f({ isStart: y, isEnd: $ }), h({
1735
1742
  element: "destacados_carousel_slide",
1736
- label: `${h} - OraculoSeccionDestacados - Slide Carousel`,
1743
+ label: `${u} - OraculoSeccionDestacados - Slide Carousel`,
1737
1744
  target: "carousel",
1738
1745
  event_type: "slide",
1739
- module_id: u,
1746
+ module_id: m,
1740
1747
  metadata: {
1741
1748
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
1742
- isStart: v,
1743
- isEnd: C
1749
+ isStart: y,
1750
+ isEnd: $
1744
1751
  },
1745
1752
  tags: { section: "OraculoSeccionDestacados" }
1746
1753
  });
@@ -1771,33 +1778,33 @@ function Qa({
1771
1778
  onCardClick: o
1772
1779
  }) {
1773
1780
  const i = ae(), r = ne(), s = le(), c = ie(
1774
- () => (e != null ? e : []).map((p, d) => {
1781
+ () => (e != null ? e : []).map((m, d) => {
1775
1782
  var g;
1776
1783
  return {
1777
- ...p,
1778
- orden: (g = p.orden) != null ? g : d + 1,
1784
+ ...m,
1785
+ orden: (g = m.orden) != null ? g : d + 1,
1779
1786
  _originalIndex: d
1780
1787
  };
1781
- }).sort((p, d) => p.orden != null && d.orden != null ? p.orden - d.orden : p._originalIndex - d._originalIndex),
1788
+ }).sort((m, d) => m.orden != null && d.orden != null ? m.orden - d.orden : m._originalIndex - d._originalIndex),
1782
1789
  [e]
1783
- ), f = !e || e.length === 0, h = f ? Array.from({ length: 6 }) : c.slice(0, 6), u = (p) => {
1790
+ ), f = !e || e.length === 0, h = f ? Array.from({ length: 6 }) : c.slice(0, 6), u = (m) => {
1784
1791
  i({
1785
1792
  element: "top_juegos_card",
1786
- label: `${r} - OraculoSeccionTopJuegos - Open game: ${String(p.machine || "unknown")}`,
1787
- target: String(p.machine || "unknown"),
1793
+ label: `${r} - OraculoSeccionTopJuegos - Open game: ${String(m.machine || "unknown")}`,
1794
+ target: String(m.machine || "unknown"),
1788
1795
  event_type: "click",
1789
1796
  module_id: s,
1790
1797
  metadata: {
1791
1798
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
1792
1799
  },
1793
1800
  tags: {
1794
- game_name: String(p.machine || "unknown"),
1801
+ game_name: String(m.machine || "unknown"),
1795
1802
  section: "OraculoSeccionTopJuegos"
1796
1803
  }
1797
1804
  });
1798
1805
  const d = se("showIframe"), g = se("loadMachine");
1799
1806
  d == null || d(), requestAnimationFrame(() => {
1800
- g == null || g(p, !1, "CASINO");
1807
+ g == null || g(m, !1, "CASINO");
1801
1808
  });
1802
1809
  };
1803
1810
  return /* @__PURE__ */ t("section", { style: { width: "100%" }, children: /* @__PURE__ */ b(H, { direction: "column", spacing: 2, useFlexGap: !0, children: [
@@ -1815,19 +1822,19 @@ function Qa({
1815
1822
  justifyItems: "center",
1816
1823
  width: "100%"
1817
1824
  },
1818
- children: h.map((p, d) => {
1819
- var g, m;
1825
+ children: h.map((m, d) => {
1826
+ var g, p;
1820
1827
  return /* @__PURE__ */ t(
1821
1828
  xa,
1822
1829
  {
1823
- imageUrl: f ? "" : p.background ? `https://olimpo.bet${p.background}` : `https://olimpo.bet${(g = p.logo) != null ? g : ""}`,
1824
- orden: f ? d + 1 : p.orden,
1830
+ imageUrl: f ? "" : m.background ? `https://olimpo.bet${m.background}` : `https://olimpo.bet${(g = m.logo) != null ? g : ""}`,
1831
+ orden: f ? d + 1 : m.orden,
1825
1832
  loading: f,
1826
1833
  onClick: f ? void 0 : () => {
1827
- o == null || o(p), u(p);
1834
+ o == null || o(m), u(m);
1828
1835
  }
1829
1836
  },
1830
- f ? `sk-${d}` : (m = p.machine) != null ? m : `${d}`
1837
+ f ? `sk-${d}` : (p = m.machine) != null ? p : `${d}`
1831
1838
  );
1832
1839
  })
1833
1840
  }
@@ -1835,7 +1842,7 @@ function Qa({
1835
1842
  ] }) });
1836
1843
  }
1837
1844
  const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommendations", tn = (e, a) => {
1838
- var n, o, i, r, s, c, f, h, u, p, d, g, m, _;
1845
+ var n, o, i, r, s, c, f, h, u, m, d, g, p, v;
1839
1846
  return {
1840
1847
  orden: Number(a),
1841
1848
  machine: String(
@@ -1849,11 +1856,11 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
1849
1856
  external_id: (f = e.external_id) != null ? f : "",
1850
1857
  type: (h = e.game_type) != null ? h : "",
1851
1858
  tags: (u = e.tags) != null ? u : "",
1852
- lobby_tag: (p = e.lobby_tag) != null ? p : null,
1859
+ lobby_tag: (m = e.lobby_tag) != null ? m : null,
1853
1860
  background: (d = e.background) != null ? d : "",
1854
1861
  rtp: (g = e.rtp) != null ? g : null,
1855
- demo_allowed: (m = e.demo_allowed) != null ? m : !1,
1856
- gaming_session_required: (_ = e.gaming_session_required) != null ? _ : !1
1862
+ demo_allowed: (p = e.demo_allowed) != null ? p : !1,
1863
+ gaming_session_required: (v = e.gaming_session_required) != null ? v : !1
1857
1864
  };
1858
1865
  }, an = (e) => e ? !Array.isArray(e) && Array.isArray(e.recommendations) ? e.recommendations.filter(Boolean).map((a) => String(a)) : [] : [], yt = () => {
1859
1866
  var a, n, o;
@@ -1889,7 +1896,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
1889
1896
  return (await i.json()).rankedItems;
1890
1897
  }, Ve = (e, a = !1, n = "Casino") => {
1891
1898
  const [o, i] = Z([]), [r, s] = Z(!1);
1892
- return ee(() => {
1899
+ return Q(() => {
1893
1900
  let c = !1;
1894
1901
  return (async () => {
1895
1902
  if (!a) {
@@ -1903,26 +1910,26 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
1903
1910
  c || i([]);
1904
1911
  return;
1905
1912
  }
1906
- const p = yt(), d = await on(p, u), g = d.map((y) => y.itemId), m = await Promise.allSettled(
1907
- g.map(async (y, v) => {
1908
- const C = await fetch(`https://api.mktolimpo.com/api/machine/${y}`);
1909
- if (!C.ok)
1910
- throw new Error(`No se pudo obtener machine ${y}`);
1911
- const D = await C.json();
1912
- return tn(D, v);
1913
+ const m = yt(), d = await on(m, u), g = d.map((_) => _.itemId), p = await Promise.allSettled(
1914
+ g.map(async (_, I) => {
1915
+ const O = await fetch(`https://api.mktolimpo.com/api/machine/${_}`);
1916
+ if (!O.ok)
1917
+ throw new Error(`No se pudo obtener machine ${_}`);
1918
+ const D = await O.json();
1919
+ return tn(D, I);
1913
1920
  })
1914
1921
  );
1915
1922
  if (c) return;
1916
- const _ = m.filter(
1917
- (y) => y.status === "fulfilled"
1918
- ).map((y) => y.value), I = d.map((y) => {
1919
- const v = _.find((C) => C.machine === y.itemId);
1920
- return v ? { ...v, score: y.score } : null;
1921
- }).filter(Boolean).sort((y, v) => {
1922
- var C, D;
1923
- return ((C = v.score) != null ? C : 0) - ((D = y.score) != null ? D : 0);
1923
+ const v = p.filter(
1924
+ (_) => _.status === "fulfilled"
1925
+ ).map((_) => _.value), C = d.map((_) => {
1926
+ const I = v.find((O) => O.machine === _.itemId);
1927
+ return I ? { ...I, score: _.score } : null;
1928
+ }).filter(Boolean).sort((_, I) => {
1929
+ var O, D;
1930
+ return ((O = I.score) != null ? O : 0) - ((D = _.score) != null ? D : 0);
1924
1931
  });
1925
- i(I);
1932
+ i(C);
1926
1933
  } catch (h) {
1927
1934
  console.error(`[usePersonalizeGameItems:${n}] error:`, h), c || i([]);
1928
1935
  } finally {
@@ -1959,47 +1966,47 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
1959
1966
  className: c,
1960
1967
  isPersonalize: f = !1
1961
1968
  }) => {
1962
- const h = ae(), u = ne(), p = le(), d = dn(f), { resolvedItems: g } = ln(
1969
+ const h = ae(), u = ne(), m = le(), d = dn(f), { resolvedItems: g } = ln(
1963
1970
  e,
1964
1971
  d
1965
- ), m = d ? g : Array.isArray(e) ? e : [], _ = (y) => {
1972
+ ), p = d ? g : Array.isArray(e) ? e : [], v = (_) => {
1966
1973
  h({
1967
1974
  element: "live_casino_card",
1968
- label: `${u} - OraculoSeccionCasinoEnVivo${d ? " - personalize" : ""} - Open game: ${String(y.machine || "unknown")}`,
1969
- target: String(y.machine || "unknown"),
1975
+ label: `${u} - OraculoSeccionCasinoEnVivo${d ? " - personalize" : ""} - Open game: ${String(_.machine || "unknown")}`,
1976
+ target: String(_.machine || "unknown"),
1970
1977
  event_type: "click",
1971
- module_id: p,
1978
+ module_id: m,
1972
1979
  metadata: {
1973
1980
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
1974
1981
  },
1975
1982
  tags: {
1976
- game_name: String(y.machine || "unknown"),
1977
- provider: y.provider || "unknown",
1983
+ game_name: String(_.machine || "unknown"),
1984
+ provider: _.provider || "unknown",
1978
1985
  section: "OraculoSeccionCasinoEnVivo"
1979
1986
  }
1980
1987
  });
1981
- const v = se("showIframe"), C = se("loadMachine");
1982
- if (!C) {
1988
+ const I = se("showIframe"), O = se("loadMachine");
1989
+ if (!O) {
1983
1990
  if (i) {
1984
- i(y);
1991
+ i(_);
1985
1992
  return;
1986
1993
  }
1987
1994
  console.warn(
1988
1995
  "[OraculoSeccionCasinoEnVivo] No existe loadMachine en extras ni onCardClick. No se puede abrir el juego.",
1989
- { machine: y == null ? void 0 : y.machine, provider: y == null ? void 0 : y.provider }
1996
+ { machine: _ == null ? void 0 : _.machine, provider: _ == null ? void 0 : _.provider }
1990
1997
  );
1991
1998
  return;
1992
1999
  }
1993
- v == null || v(), typeof window != "undefined" && window.scrollTo({ top: 0, behavior: "smooth" }), requestAnimationFrame(() => {
1994
- C == null || C(y, !1, "casino_en_vivo");
2000
+ I == null || I(), typeof window != "undefined" && window.scrollTo({ top: 0, behavior: "smooth" }), requestAnimationFrame(() => {
2001
+ O == null || O(_, !1, "casino_en_vivo");
1995
2002
  });
1996
- }, I = () => {
2003
+ }, C = () => {
1997
2004
  h({
1998
2005
  element: "casino_en_vivo_view_more",
1999
2006
  label: `${u} - OraculoSeccionCasinoEnVivo${d ? " - personalize" : ""} - Ver más`,
2000
2007
  target: "https://www.olimpo.bet/casino-en-vivo",
2001
2008
  event_type: "click",
2002
- module_id: p,
2009
+ module_id: m,
2003
2010
  metadata: {
2004
2011
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
2005
2012
  },
@@ -2093,7 +2100,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2093
2100
  {
2094
2101
  variant: "primary",
2095
2102
  size: "md",
2096
- onClick: I,
2103
+ onClick: C,
2097
2104
  children: "Ver más"
2098
2105
  }
2099
2106
  ) })
@@ -2109,18 +2116,18 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2109
2116
  py: { xs: 3, md: 0 },
2110
2117
  alignItems: "center"
2111
2118
  },
2112
- children: (m != null ? m : []).slice(0, 3).map((y, v) => {
2113
- var C;
2119
+ children: (p != null ? p : []).slice(0, 3).map((_, I) => {
2120
+ var O;
2114
2121
  return /* @__PURE__ */ t(
2115
2122
  wa,
2116
2123
  {
2117
- logo: `https://olimpo.bet${y.background ? y.background : (C = y.logo) != null ? C : ""}`,
2118
- provider: y.provider,
2119
- providerName: y.web_name,
2120
- machine: y.machine,
2121
- onClick: () => _(y)
2124
+ logo: `https://olimpo.bet${_.background ? _.background : (O = _.logo) != null ? O : ""}`,
2125
+ provider: _.provider,
2126
+ providerName: _.web_name,
2127
+ machine: _.machine,
2128
+ onClick: () => v(_)
2122
2129
  },
2123
- cn(y, v)
2130
+ cn(_, I)
2124
2131
  );
2125
2132
  })
2126
2133
  }
@@ -2130,7 +2137,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2130
2137
  {
2131
2138
  variant: "primary",
2132
2139
  size: "lg",
2133
- onClick: I,
2140
+ onClick: C,
2134
2141
  children: "Ver más"
2135
2142
  }
2136
2143
  ) })
@@ -2192,11 +2199,11 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2192
2199
  gridSize: s = 1,
2193
2200
  isPersonalize: c = !1
2194
2201
  }) => {
2195
- const f = ae(), h = ne(), u = le(), p = V(null), [d, g] = Z({ isStart: !0, isEnd: !1 }), m = mn(c), { resolvedItems: _, loading: I } = rn(
2202
+ const f = ae(), h = ne(), u = le(), m = V(null), [d, g] = Z({ isStart: !0, isEnd: !1 }), p = mn(c), { resolvedItems: v, loading: C } = rn(
2196
2203
  e,
2197
- m
2198
- ), y = m ? _ : Array.isArray(e) ? e : [], v = () => {
2199
- var $;
2204
+ p
2205
+ ), _ = p ? v : Array.isArray(e) ? e : [], I = () => {
2206
+ var N;
2200
2207
  f({
2201
2208
  element: "casino_prev",
2202
2209
  label: `${h} - OraculoSeccionCasino ${c ? " - personalize" : ""} - Anterior`,
@@ -2207,9 +2214,9 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2207
2214
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
2208
2215
  },
2209
2216
  tags: { section: "OraculoSeccionCasino" }
2210
- }), ($ = p.current) == null || $.prev();
2211
- }, C = () => {
2212
- var $;
2217
+ }), (N = m.current) == null || N.prev();
2218
+ }, O = () => {
2219
+ var N;
2213
2220
  f({
2214
2221
  element: "casino_next",
2215
2222
  label: `${h} - OraculoSeccionCasino ${c ? " - personalize" : ""} - Siguiente`,
@@ -2220,7 +2227,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2220
2227
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
2221
2228
  },
2222
2229
  tags: { section: "OraculoSeccionCasino" }
2223
- }), ($ = p.current) == null || $.next();
2230
+ }), (N = m.current) == null || N.next();
2224
2231
  }, D = () => {
2225
2232
  if (f({
2226
2233
  element: "casino_view_more",
@@ -2237,13 +2244,13 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2237
2244
  return;
2238
2245
  }
2239
2246
  typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/casino");
2240
- }, k = ($ = !0, x = 4) => {
2241
- const O = (z) => Array.from({ length: z }, (R, U) => ({
2247
+ }, y = (N = !0, x = 4) => {
2248
+ const T = (z) => Array.from({ length: z }, (R, U) => ({
2242
2249
  id: `sk-${z}-${U}`,
2243
2250
  imageUrl: ""
2244
- })), P = [];
2245
- return $ && P.push({ id: "mosaic-loading", kind: "mosaic", items: O(5) }), P.push({ id: "grid-loading", kind: "grid", items: O(x) }), P;
2246
- }, M = m ? I : !Array.isArray(e) || e.length === 0, T = De("(max-width:950px)"), A = M ? k(r, s) : pn(y, r, s);
2251
+ })), L = [];
2252
+ return N && L.push({ id: "mosaic-loading", kind: "mosaic", items: T(5) }), L.push({ id: "grid-loading", kind: "grid", items: T(x) }), L;
2253
+ }, $ = p ? C : !Array.isArray(e) || e.length === 0, E = De("(max-width:950px)"), A = $ ? y(r, s) : pn(_, r, s);
2247
2254
  return /* @__PURE__ */ t("section", { children: /* @__PURE__ */ b(H, { direction: "column", spacing: 2, useFlexGap: !0, children: [
2248
2255
  /* @__PURE__ */ b(
2249
2256
  q,
@@ -2269,7 +2276,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2269
2276
  variant: "secondary",
2270
2277
  iconOnly: !0,
2271
2278
  leftIcon: /* @__PURE__ */ t(lt, {}),
2272
- onClick: v,
2279
+ onClick: I,
2273
2280
  disabled: d.isStart
2274
2281
  }
2275
2282
  ),
@@ -2280,7 +2287,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2280
2287
  variant: "secondary",
2281
2288
  iconOnly: !0,
2282
2289
  rightIcon: /* @__PURE__ */ t(ct, {}),
2283
- onClick: C,
2290
+ onClick: O,
2284
2291
  disabled: d.isEnd
2285
2292
  }
2286
2293
  )
@@ -2292,13 +2299,13 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2292
2299
  /* @__PURE__ */ t(
2293
2300
  he,
2294
2301
  {
2295
- ref: p,
2302
+ ref: m,
2296
2303
  items: A,
2297
2304
  perPage: void 0,
2298
2305
  gap: "16px",
2299
2306
  enableHorizontalWheel: !0,
2300
2307
  options: { autoWidth: !0, trimSpace: "move" },
2301
- showRightGradient: !T,
2308
+ showRightGradient: !E,
2302
2309
  breakpoints: {
2303
2310
  400: {
2304
2311
  gap: "4px",
@@ -2316,38 +2323,38 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2316
2323
  padding: { left: "24px", right: "24px" }
2317
2324
  }
2318
2325
  },
2319
- renderItem: ($) => /* @__PURE__ */ t("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ t(
2326
+ renderItem: (N) => /* @__PURE__ */ t("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ t(
2320
2327
  ft,
2321
2328
  {
2322
- items: $.items,
2323
- layout: $.kind === "mosaic" ? "mosaic" : "grid",
2324
- loading: M,
2329
+ items: N.items,
2330
+ layout: N.kind === "mosaic" ? "mosaic" : "grid",
2331
+ loading: $,
2325
2332
  onClick: (x) => {
2326
- if (M) return;
2327
- const O = y.find(
2333
+ if ($) return;
2334
+ const T = _.find(
2328
2335
  (R, U) => String(xt(R, U)) === String(x.id)
2329
2336
  );
2330
- if (!O) return;
2331
- o == null || o(O), f({
2337
+ if (!T) return;
2338
+ o == null || o(T), f({
2332
2339
  element: "casino_game_card",
2333
- label: `${h} - OraculoSeccionCasino ${c ? " - personalize" : ""} - Game: ${String(O.machine || "unknown")}`,
2334
- target: String(O.machine || "unknown"),
2340
+ label: `${h} - OraculoSeccionCasino ${c ? " - personalize" : ""} - Game: ${String(T.machine || "unknown")}`,
2341
+ target: String(T.machine || "unknown"),
2335
2342
  event_type: "click",
2336
2343
  module_id: u,
2337
2344
  metadata: {
2338
2345
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
2339
2346
  },
2340
2347
  tags: {
2341
- game_name: String(O.machine || "unknown"),
2348
+ game_name: String(T.machine || "unknown"),
2342
2349
  section: a || "Casino"
2343
2350
  }
2344
2351
  });
2345
- const P = se("showIframe"), z = se("loadMachine");
2346
- P == null || P(), z == null || z(O, !1, "CASINO");
2352
+ const L = se("showIframe"), z = se("loadMachine");
2353
+ L == null || L(), z == null || z(T, !1, "CASINO");
2347
2354
  }
2348
2355
  }
2349
2356
  ) }),
2350
- onMove: ({ isStart: $, isEnd: x }) => g({ isStart: $, isEnd: x })
2357
+ onMove: ({ isStart: N, isEnd: x }) => g({ isStart: N, isEnd: x })
2351
2358
  }
2352
2359
  )
2353
2360
  ] }) });
@@ -2417,14 +2424,14 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2417
2424
  gridSize: s = 1,
2418
2425
  isPersonalize: c = !1
2419
2426
  }) => {
2420
- const f = V(null), [h, u] = Z({ isStart: !0, isEnd: !1 }), p = ae(), d = ne(), g = le(), m = gn(c), { resolvedItems: _, loading: I } = sn(
2427
+ const f = V(null), [h, u] = Z({ isStart: !0, isEnd: !1 }), m = ae(), d = ne(), g = le(), p = gn(c), { resolvedItems: v, loading: C } = sn(
2421
2428
  e,
2422
- m
2423
- ), y = m ? _ : Array.isArray(e) ? e : [], v = () => {
2429
+ p
2430
+ ), _ = p ? v : Array.isArray(e) ? e : [], I = () => {
2424
2431
  var A;
2425
- p({
2432
+ m({
2426
2433
  element: "virtuales_prev",
2427
- label: `${d} - OraculoSeccionVirtuales${m ? " - personalize" : ""} - Anterior`,
2434
+ label: `${d} - OraculoSeccionVirtuales${p ? " - personalize" : ""} - Anterior`,
2428
2435
  target: "prev",
2429
2436
  event_type: "click",
2430
2437
  module_id: g,
@@ -2433,11 +2440,11 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2433
2440
  },
2434
2441
  tags: { section: "OraculoSeccionVirtuales" }
2435
2442
  }), (A = f.current) == null || A.prev();
2436
- }, C = () => {
2443
+ }, O = () => {
2437
2444
  var A;
2438
- p({
2445
+ m({
2439
2446
  element: "virtuales_next",
2440
- label: `${d} - OraculoSeccionVirtuales${m ? " - personalize" : ""} - Siguiente`,
2447
+ label: `${d} - OraculoSeccionVirtuales${p ? " - personalize" : ""} - Siguiente`,
2441
2448
  target: "next",
2442
2449
  event_type: "click",
2443
2450
  module_id: g,
@@ -2447,9 +2454,9 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2447
2454
  tags: { section: "OraculoSeccionVirtuales" }
2448
2455
  }), (A = f.current) == null || A.next();
2449
2456
  }, D = () => {
2450
- if (p({
2457
+ if (m({
2451
2458
  element: "virtuales_view_more",
2452
- label: `${d} - OraculoSeccionVirtuales${m ? " - personalize" : ""} - Ver más`,
2459
+ label: `${d} - OraculoSeccionVirtuales${p ? " - personalize" : ""} - Ver más`,
2453
2460
  target: "https://www.olimpo.bet/juegos-virtuales",
2454
2461
  event_type: "click",
2455
2462
  module_id: g,
@@ -2462,7 +2469,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2462
2469
  return;
2463
2470
  }
2464
2471
  typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/juegos-virtuales");
2465
- }, k = m ? I : !Array.isArray(e) || e.length === 0, M = xe("(max-width:950px)"), T = k ? bn(r, s) : hn(y, r, s);
2472
+ }, y = p ? C : !Array.isArray(e) || e.length === 0, $ = xe("(max-width:950px)"), E = y ? bn(r, s) : hn(_, r, s);
2466
2473
  return /* @__PURE__ */ t("section", { children: /* @__PURE__ */ b(H, { direction: "column", spacing: 2, useFlexGap: !0, children: [
2467
2474
  /* @__PURE__ */ b(
2468
2475
  q,
@@ -2488,7 +2495,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2488
2495
  variant: "secondary",
2489
2496
  iconOnly: !0,
2490
2497
  leftIcon: /* @__PURE__ */ t(lt, {}),
2491
- onClick: v,
2498
+ onClick: I,
2492
2499
  disabled: h.isStart
2493
2500
  }
2494
2501
  ),
@@ -2499,7 +2506,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2499
2506
  variant: "secondary",
2500
2507
  iconOnly: !0,
2501
2508
  rightIcon: /* @__PURE__ */ t(ct, {}),
2502
- onClick: C,
2509
+ onClick: O,
2503
2510
  disabled: h.isEnd
2504
2511
  }
2505
2512
  )
@@ -2512,7 +2519,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2512
2519
  he,
2513
2520
  {
2514
2521
  ref: f,
2515
- items: T,
2522
+ items: E,
2516
2523
  perPage: void 0,
2517
2524
  gap: "16px",
2518
2525
  breakpoints: {
@@ -2533,29 +2540,29 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2533
2540
  }
2534
2541
  },
2535
2542
  enableHorizontalWheel: !0,
2536
- showRightGradient: !M,
2543
+ showRightGradient: !$,
2537
2544
  options: { autoWidth: !0, trimSpace: "move" },
2538
2545
  renderItem: (A) => /* @__PURE__ */ t("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ t(
2539
2546
  ft,
2540
2547
  {
2541
2548
  items: A.items,
2542
2549
  layout: A.kind === "mosaic" ? "mosaic" : "grid",
2543
- loading: k,
2544
- onClick: ($) => {
2545
- if (k) return;
2546
- const x = y.find(
2547
- (z, R) => String(wt(z, R)) === String($.id)
2550
+ loading: y,
2551
+ onClick: (N) => {
2552
+ if (y) return;
2553
+ const x = _.find(
2554
+ (z, R) => String(wt(z, R)) === String(N.id)
2548
2555
  );
2549
2556
  if (!x) {
2550
2557
  console.warn(
2551
2558
  "[virtuales] no se encontró game para id:",
2552
- $.id
2559
+ N.id
2553
2560
  );
2554
2561
  return;
2555
2562
  }
2556
- o == null || o(x), p({
2563
+ o == null || o(x), m({
2557
2564
  element: "virtuales_game_card",
2558
- label: `${d} - OraculoSeccionVirtuales${m ? " - personalize" : ""} - Game: ${String(x.machine || "unknown")}`,
2565
+ label: `${d} - OraculoSeccionVirtuales${p ? " - personalize" : ""} - Game: ${String(x.machine || "unknown")}`,
2559
2566
  target: String(x.machine || "unknown"),
2560
2567
  event_type: "click",
2561
2568
  module_id: g,
@@ -2567,16 +2574,16 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2567
2574
  section: a || "Virtuales"
2568
2575
  }
2569
2576
  });
2570
- const O = se("showIframe"), P = se("loadMachine");
2571
- O == null || O(), P == null || P(
2577
+ const T = se("showIframe"), L = se("loadMachine");
2578
+ T == null || T(), L == null || L(
2572
2579
  x,
2573
2580
  !1,
2574
- m ? "VIRTUALES_PERSONALIZE" : "VIRTUALES"
2581
+ p ? "VIRTUALES_PERSONALIZE" : "VIRTUALES"
2575
2582
  );
2576
2583
  }
2577
2584
  }
2578
2585
  ) }),
2579
- onMove: ({ isStart: A, isEnd: $ }) => u({ isStart: A, isEnd: $ })
2586
+ onMove: ({ isStart: A, isEnd: N }) => u({ isStart: A, isEnd: N })
2580
2587
  }
2581
2588
  )
2582
2589
  ] }) });
@@ -2618,33 +2625,33 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2618
2625
  items: n,
2619
2626
  backgroundImageUrl: o
2620
2627
  }) => {
2621
- const i = ae(), r = ne(), s = xe("(max-width: 767px)"), c = n.length > 1, f = V(null), h = V(null), u = V(!1), p = V(!1), [d, g] = Z(0), [m, _] = Z({ isStart: !0, isEnd: !1 });
2622
- ee(() => {
2628
+ const i = ae(), r = ne(), s = xe("(max-width: 767px)"), c = n.length > 1, f = V(null), h = V(null), u = V(!1), m = V(!1), [d, g] = Z(0), [p, v] = Z({ isStart: !0, isEnd: !1 });
2629
+ Q(() => {
2623
2630
  const x = setTimeout(() => {
2624
2631
  u.current = !0;
2625
2632
  }, 500);
2626
2633
  return () => clearTimeout(x);
2627
2634
  }, []);
2628
- const I = V(m);
2629
- ee(() => {
2630
- I.current = m;
2631
- }, [m]);
2632
- const y = V(!1), v = V(null), C = n == null ? void 0 : n[d], D = ie(
2635
+ const C = V(p);
2636
+ Q(() => {
2637
+ C.current = p;
2638
+ }, [p]);
2639
+ const _ = V(!1), I = V(null), O = n == null ? void 0 : n[d], D = ie(
2633
2640
  () => {
2634
- var x, O;
2635
- return (O = (x = C == null ? void 0 : C.backgroundImageUrl) != null ? x : o) != null ? O : "";
2641
+ var x, T;
2642
+ return (T = (x = O == null ? void 0 : O.backgroundImageUrl) != null ? x : o) != null ? T : "";
2636
2643
  },
2637
- [C, o]
2638
- ), k = _n(D), M = !n || n.length === 0, T = (x, O) => {
2644
+ [O, o]
2645
+ ), y = _n(D), $ = !n || n.length === 0, E = (x, T) => {
2639
2646
  i({
2640
2647
  element: "welcome_banner_button",
2641
- label: `OraculoSeccionBonoBienvenida - Banner button click: ${x.title || "OraculoSeccionBonoBienvenida - Banner " + (O + 1)}`,
2648
+ label: `OraculoSeccionBonoBienvenida - Banner button click: ${x.title || "OraculoSeccionBonoBienvenida - Banner " + (T + 1)}`,
2642
2649
  target: "action",
2643
2650
  event_type: "click",
2644
2651
  module_id: 301,
2645
2652
  metadata: {
2646
2653
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
2647
- banner_position: O + 1,
2654
+ banner_position: T + 1,
2648
2655
  banner_total: (n == null ? void 0 : n.length) || 0
2649
2656
  },
2650
2657
  tags: {
@@ -2654,14 +2661,14 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2654
2661
  }), x.onButtonClick && x.onButtonClick();
2655
2662
  }, A = (x) => {
2656
2663
  if (!u.current) return;
2657
- if (p.current) {
2658
- p.current = !1;
2664
+ if (m.current) {
2665
+ m.current = !1;
2659
2666
  return;
2660
2667
  }
2661
- const O = n == null ? void 0 : n[x];
2668
+ const T = n == null ? void 0 : n[x];
2662
2669
  i({
2663
2670
  element: "welcome_banner_carousel",
2664
- label: `Landing: ${r} - OraculoSeccionBonoBienvenida - Banner view: ${(O == null ? void 0 : O.title) || "OraculoSeccionBonoBienvenida - Banner " + (x + 1)}`,
2671
+ label: `Landing: ${r} - OraculoSeccionBonoBienvenida - Banner view: ${(T == null ? void 0 : T.title) || "OraculoSeccionBonoBienvenida - Banner " + (x + 1)}`,
2665
2672
  target: "no_url",
2666
2673
  event_type: "view",
2667
2674
  module_id: 301,
@@ -2673,31 +2680,31 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2673
2680
  },
2674
2681
  tags: {
2675
2682
  banner_position: String(x + 1),
2676
- banner_title: (O == null ? void 0 : O.title) || "no_title"
2683
+ banner_title: (T == null ? void 0 : T.title) || "no_title"
2677
2684
  }
2678
2685
  });
2679
2686
  };
2680
- ee(() => {
2687
+ Q(() => {
2681
2688
  const x = h.current;
2682
2689
  if (!x) return;
2683
- const O = 6, P = 380, z = (R) => {
2690
+ const T = 6, L = 380, z = (R) => {
2684
2691
  var w, F;
2685
- if (M || R.ctrlKey || y.current) return;
2692
+ if ($ || R.ctrlKey || _.current) return;
2686
2693
  const U = R.deltaX, W = R.deltaY;
2687
- if (Math.abs(U) <= Math.abs(W) || Math.abs(U) < O) return;
2694
+ if (Math.abs(U) <= Math.abs(W) || Math.abs(U) < T) return;
2688
2695
  const G = U > 0;
2689
- G && I.current.isEnd || !G && I.current.isStart || (R.preventDefault(), y.current = !0, G ? (w = f.current) == null || w.next() : (F = f.current) == null || F.prev(), v.current && window.clearTimeout(v.current), v.current = window.setTimeout(() => {
2690
- y.current = !1;
2691
- }, P));
2696
+ G && C.current.isEnd || !G && C.current.isStart || (R.preventDefault(), _.current = !0, G ? (w = f.current) == null || w.next() : (F = f.current) == null || F.prev(), I.current && window.clearTimeout(I.current), I.current = window.setTimeout(() => {
2697
+ _.current = !1;
2698
+ }, L));
2692
2699
  };
2693
2700
  return x.addEventListener("wheel", z, { passive: !1 }), () => {
2694
- x.removeEventListener("wheel", z), v.current && window.clearTimeout(v.current);
2701
+ x.removeEventListener("wheel", z), I.current && window.clearTimeout(I.current);
2695
2702
  };
2696
- }, [M]);
2697
- const $ = (x, O, P) => {
2703
+ }, [$]);
2704
+ const N = (x, T, L) => {
2698
2705
  var U, W;
2699
2706
  const z = (U = x.headline) != null ? U : e, R = (W = x.headline2) != null ? W : a;
2700
- return O ? /* @__PURE__ */ b(
2707
+ return T ? /* @__PURE__ */ b(
2701
2708
  q,
2702
2709
  {
2703
2710
  sx: {
@@ -2732,7 +2739,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2732
2739
  Je,
2733
2740
  {
2734
2741
  ...x,
2735
- onButtonClick: () => T(x, P),
2742
+ onButtonClick: () => E(x, L),
2736
2743
  variant: "large"
2737
2744
  }
2738
2745
  ) }) })
@@ -2750,13 +2757,13 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2750
2757
  Je,
2751
2758
  {
2752
2759
  ...x,
2753
- onButtonClick: () => T(x, P),
2760
+ onButtonClick: () => E(x, L),
2754
2761
  variant: "small"
2755
2762
  }
2756
2763
  ) })
2757
2764
  ] });
2758
2765
  };
2759
- return /* @__PURE__ */ b(q, { component: "section", sx: k, children: [
2766
+ return /* @__PURE__ */ b(q, { component: "section", sx: y, children: [
2760
2767
  /* @__PURE__ */ t("div", { ref: h, style: { width: "100%" }, children: /* @__PURE__ */ t(
2761
2768
  he,
2762
2769
  {
@@ -2774,9 +2781,9 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2774
2781
  // arrows: false,
2775
2782
  // drag: true,
2776
2783
  },
2777
- renderItem: (x, O) => /* @__PURE__ */ t(q, { sx: { width: "100%" }, children: $(x, !s, O) }),
2778
- onMove: ({ index: x, isStart: O, isEnd: P }) => {
2779
- g(x), typeof O == "boolean" && typeof P == "boolean" && _({ isStart: O, isEnd: P }), A(x);
2784
+ renderItem: (x, T) => /* @__PURE__ */ t(q, { sx: { width: "100%" }, children: N(x, !s, T) }),
2785
+ onMove: ({ index: x, isStart: T, isEnd: L }) => {
2786
+ g(x), typeof T == "boolean" && typeof L == "boolean" && v({ isStart: T, isEnd: L }), A(x);
2780
2787
  }
2781
2788
  }
2782
2789
  ) }),
@@ -2786,7 +2793,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2786
2793
  total: n.length,
2787
2794
  active: d,
2788
2795
  onSelect: (x) => {
2789
- var O;
2796
+ var T;
2790
2797
  i({
2791
2798
  element: "welcome_banner_dots",
2792
2799
  label: `Landing: ${r} - OraculoSeccionBonoBienvenida - Dot navigation: Banner ${x + 1}`,
@@ -2801,7 +2808,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2801
2808
  tags: {
2802
2809
  navigation_type: "dot_click"
2803
2810
  }
2804
- }), g(x), (O = f.current) == null || O.go(x);
2811
+ }), g(x), (T = f.current) == null || T.go(x);
2805
2812
  }
2806
2813
  }
2807
2814
  ) })
@@ -2816,16 +2823,16 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2816
2823
  }) => {
2817
2824
  const s = V(null), c = V(null), f = ae(), h = ne(), u = le();
2818
2825
  if (!n) return null;
2819
- const p = async () => {
2820
- let _ = r;
2821
- if ((!(_ != null && _.user) || !(_ != null && _.session)) && typeof window != "undefined")
2826
+ const m = async () => {
2827
+ let v = r;
2828
+ if ((!(v != null && v.user) || !(v != null && v.session)) && typeof window != "undefined")
2822
2829
  try {
2823
- const I = localStorage.getItem("user");
2824
- I && (_ = JSON.parse(I));
2825
- } catch (I) {
2826
- console.error("[getMarketPlaceUrl] Error parsing localStorage user", I);
2830
+ const C = localStorage.getItem("user");
2831
+ C && (v = JSON.parse(C));
2832
+ } catch (C) {
2833
+ console.error("[getMarketPlaceUrl] Error parsing localStorage user", C);
2827
2834
  }
2828
- if (!(_ != null && _.user) || !(_ != null && _.session))
2835
+ if (!(v != null && v.user) || !(v != null && v.session))
2829
2836
  return console.warn("User data missing"), null;
2830
2837
  f({
2831
2838
  element: "club_olimpo_button",
@@ -2839,40 +2846,40 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2839
2846
  tags: { section: "OraculoSeccionClubOlimpo" }
2840
2847
  });
2841
2848
  try {
2842
- const I = {
2843
- idUsuario: "PE" + _.user,
2844
- session_id: _.session,
2849
+ const C = {
2850
+ idUsuario: "PE" + v.user,
2851
+ session_id: v.session,
2845
2852
  pagina: "home"
2846
- }, v = await fetch("https://apipe.mktolimpo.com/api/pm/token", {
2853
+ }, I = await fetch("https://apipe.mktolimpo.com/api/pm/token", {
2847
2854
  method: "POST",
2848
2855
  headers: {
2849
2856
  "Content-Type": "application/json"
2850
2857
  },
2851
- body: JSON.stringify(I)
2858
+ body: JSON.stringify(C)
2852
2859
  });
2853
- if (v.ok) {
2854
- const C = await v.json();
2855
- return C == null ? void 0 : C.url;
2860
+ if (I.ok) {
2861
+ const O = await I.json();
2862
+ return O == null ? void 0 : O.url;
2856
2863
  }
2857
2864
  return null;
2858
- } catch (I) {
2859
- return console.error("[getMarketPlaceUrl]", I), null;
2865
+ } catch (C) {
2866
+ return console.error("[getMarketPlaceUrl]", C), null;
2860
2867
  }
2861
2868
  }, d = async () => {
2862
- const _ = await p();
2863
- _ ? window.location.href = _ : typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/conoce-club-olimpo");
2869
+ const v = await m();
2870
+ v ? window.location.href = v : typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/conoce-club-olimpo");
2864
2871
  }, g = Array.isArray(n) ? n[o] : n;
2865
2872
  Mt(() => {
2866
2873
  if (!s.current || !c.current || typeof ResizeObserver == "undefined") return;
2867
- const _ = s.current, I = c.current, y = () => {
2868
- _.style.setProperty(
2874
+ const v = s.current, C = c.current, _ = () => {
2875
+ v.style.setProperty(
2869
2876
  "--orc-co-bottomH",
2870
- `${I.offsetHeight + 16}px`
2877
+ `${C.offsetHeight + 16}px`
2871
2878
  );
2872
- }, v = new ResizeObserver(y);
2873
- return v.observe(I), y(), () => v.disconnect();
2879
+ }, I = new ResizeObserver(_);
2880
+ return I.observe(C), _(), () => I.disconnect();
2874
2881
  }, []);
2875
- const m = [
2882
+ const p = [
2876
2883
  "orc-co-wrap",
2877
2884
  a ? "orc-co-fullBleed" : "",
2878
2885
  e
@@ -2881,7 +2888,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2881
2888
  "section",
2882
2889
  {
2883
2890
  ref: s,
2884
- className: m,
2891
+ className: p,
2885
2892
  "aria-label": i || g.imgAlt || "Club Olimpo",
2886
2893
  children: /* @__PURE__ */ t("div", { ref: c, children: /* @__PURE__ */ t(
2887
2894
  Sa,
@@ -2909,12 +2916,12 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
2909
2916
  };
2910
2917
  function Cn(e, a, n) {
2911
2918
  return n ? n.map((o) => {
2912
- var u, p;
2919
+ var u, m;
2913
2920
  const i = o.prePackCouponRows.flatMap((d) => In(d).map((g) => ({ eventId: d.eventId, outcomeId: g }))), r = new Set(i.map((d) => d.eventId)), s = new Set(i.map((d) => d.outcomeId)), c = new Map(i.map((d, g) => [d.outcomeId, g])), f = {};
2914
2921
  for (const d of a) {
2915
2922
  if (!r.has(d.eventId)) continue;
2916
- const g = d.outcomes.filter((m) => s.has(m.id)).map((m) => ({ ...m, position: c.get(m.id) }));
2917
- g.length && ((p = f[u = d.eventId]) != null || (f[u] = []), f[d.eventId].push({ ...d, outcomes: g }));
2923
+ const g = d.outcomes.filter((p) => s.has(p.id)).map((p) => ({ ...p, position: c.get(p.id) }));
2924
+ g.length && ((m = f[u = d.eventId]) != null || (f[u] = []), f[d.eventId].push({ ...d, outcomes: g }));
2918
2925
  }
2919
2926
  const h = e.filter((d) => r.has(d.id)).map((d) => {
2920
2927
  var g;
@@ -2945,8 +2952,8 @@ function Tn({
2945
2952
  onViewMore: o,
2946
2953
  className: i = ""
2947
2954
  }) {
2948
- const r = ae(), s = ne(), c = le(), f = V(null), [h, u] = Z({ isStart: !0, isEnd: !1 }), [p, d] = Z([]), g = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group/prepackcoupon.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764284658793&prePackCouponTags=CUSTOM", m = () => {
2949
- var k;
2955
+ const r = ae(), s = ne(), c = le(), f = V(null), [h, u] = Z({ isStart: !0, isEnd: !1 }), [m, d] = Z([]), g = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group/prepackcoupon.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764284658793&prePackCouponTags=CUSTOM", p = () => {
2956
+ var y;
2950
2957
  r({
2951
2958
  element: "evento_combinadas_prev",
2952
2959
  label: `${s} - OraculoSeccionEventoCombinadas - Click: Anterior`,
@@ -2956,9 +2963,9 @@ function Tn({
2956
2963
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
2957
2964
  },
2958
2965
  tags: { section: "OraculoSeccionEventoCombinadas" }
2959
- }), (k = f.current) == null || k.prev();
2960
- }, _ = () => {
2961
- var k;
2966
+ }), (y = f.current) == null || y.prev();
2967
+ }, v = () => {
2968
+ var y;
2962
2969
  r({
2963
2970
  element: "evento_combinadas_next",
2964
2971
  label: `${s} - OraculoSeccionEventoCombinadas - Click: Siguiente`,
@@ -2968,8 +2975,8 @@ function Tn({
2968
2975
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
2969
2976
  },
2970
2977
  tags: { section: "OraculoSeccionEventoCombinadas" }
2971
- }), (k = f.current) == null || k.next();
2972
- }, I = () => {
2978
+ }), (y = f.current) == null || y.next();
2979
+ }, C = () => {
2973
2980
  r({
2974
2981
  element: "evento_combinadas_ver_mas",
2975
2982
  label: `${s} - OraculoSeccionEventoCombinadas - Click: Ver más`,
@@ -2980,26 +2987,26 @@ function Tn({
2980
2987
  },
2981
2988
  tags: { section: "OraculoSeccionEventoCombinadas" }
2982
2989
  }), za();
2983
- }, y = ie(() => p.filter((k) => k.combinadoTotal !== null), [p]);
2984
- async function v() {
2985
- var k, M, T, A;
2990
+ }, _ = ie(() => m.filter((y) => y.combinadoTotal !== null), [m]);
2991
+ async function I() {
2992
+ var y, $, E, A;
2986
2993
  try {
2987
- const x = await (await fetch(g)).json(), O = (A = (T = (M = (k = x == null ? void 0 : x.group) == null ? void 0 : k.groups) == null ? void 0 : M.map((U) => U.id)) == null ? void 0 : T.filter(Boolean)) == null ? void 0 : A.join(",");
2988
- if (!O) {
2994
+ const x = await (await fetch(g)).json(), T = (A = (E = ($ = (y = x == null ? void 0 : x.group) == null ? void 0 : y.groups) == null ? void 0 : $.map((U) => U.id)) == null ? void 0 : E.filter(Boolean)) == null ? void 0 : A.join(",");
2995
+ if (!T) {
2989
2996
  console.error("Could not extract group ID");
2990
2997
  return;
2991
2998
  }
2992
- const P = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${O}.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764283566783&prePackCouponTags=CUSTOM`, R = await (await fetch(P)).json();
2999
+ const L = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${T}.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764283566783&prePackCouponTags=CUSTOM`, R = await (await fetch(L)).json();
2993
3000
  d(Cn(R.events, R.betOffers, R.prePackCoupons));
2994
- } catch ($) {
2995
- console.error("loadDataEventSpecial error:", $);
3001
+ } catch (N) {
3002
+ console.error("loadDataEventSpecial error:", N);
2996
3003
  }
2997
3004
  }
2998
- ee(() => {
2999
- v();
3005
+ Q(() => {
3006
+ I();
3000
3007
  }, []);
3001
- const C = i || void 0, D = xe("(max-width:950px)");
3002
- return y.length === 0 ? null : /* @__PURE__ */ t("section", { className: C, style: {
3008
+ const O = i || void 0, D = xe("(max-width:950px)");
3009
+ return _.length === 0 ? null : /* @__PURE__ */ t("section", { className: O, style: {
3003
3010
  // paddingLeft: 16,
3004
3011
  // paddingRight: 16,
3005
3012
  width: "100%",
@@ -3016,7 +3023,7 @@ function Tn({
3016
3023
  variant: "secondary",
3017
3024
  iconOnly: !0,
3018
3025
  leftIcon: /* @__PURE__ */ t(Ae, {}),
3019
- onClick: m,
3026
+ onClick: p,
3020
3027
  disabled: h.isStart
3021
3028
  }
3022
3029
  ),
@@ -3027,19 +3034,19 @@ function Tn({
3027
3034
  variant: "secondary",
3028
3035
  iconOnly: !0,
3029
3036
  rightIcon: /* @__PURE__ */ t(ze, {}),
3030
- onClick: _,
3037
+ onClick: v,
3031
3038
  disabled: h.isEnd
3032
3039
  }
3033
3040
  )
3034
3041
  ] }),
3035
- /* @__PURE__ */ t(X, { variant: "secondary", onClick: I, children: "Ver más" })
3042
+ /* @__PURE__ */ t(X, { variant: "secondary", onClick: C, children: "Ver más" })
3036
3043
  ] })
3037
3044
  ] }) }),
3038
3045
  /* @__PURE__ */ t(
3039
3046
  he,
3040
3047
  {
3041
3048
  ref: f,
3042
- items: y,
3049
+ items: _,
3043
3050
  perPage: void 0,
3044
3051
  gap: "16px",
3045
3052
  options: { autoWidth: !0, trimSpace: "move" },
@@ -3049,8 +3056,8 @@ function Tn({
3049
3056
  breakpoints: {
3050
3057
  768: { perPage: 1.2, gap: "12px", padding: { left: "24px", right: "24px" } }
3051
3058
  },
3052
- renderItem: (k) => /* @__PURE__ */ t(En, { coupon: k }),
3053
- onMove: ({ isStart: k, isEnd: M }) => u({ isStart: k, isEnd: M })
3059
+ renderItem: (y) => /* @__PURE__ */ t(En, { coupon: y }),
3060
+ onMove: ({ isStart: y, isEnd: $ }) => u({ isStart: y, isEnd: $ })
3054
3061
  }
3055
3062
  )
3056
3063
  ] }) });
@@ -3106,49 +3113,49 @@ function St({
3106
3113
  debounceMs: i = 250
3107
3114
  }) {
3108
3115
  const [r, s] = Z({}), c = V(/* @__PURE__ */ new Set()), f = V(0), h = V(null), u = V(null);
3109
- return ee(() => {
3116
+ return Q(() => {
3110
3117
  if (!(!e || e.length === 0))
3111
3118
  return h.current && clearTimeout(h.current), h.current = setTimeout(() => {
3112
- var D, k;
3113
- const p = (D = a.start) != null ? D : 0, d = (k = a.end) != null ? k : 7, g = Math.max(0, p - o), m = Math.min(e.length - 1, d + o);
3114
- let _ = g, I = m;
3115
- const y = u.current;
3116
- y && (g > y.end && (_ = y.end + 1), m < y.start && (I = y.start - 1)), u.current = { start: g, end: m };
3117
- const v = e.slice(_, I + 1).map((M) => M == null ? void 0 : M.id).filter((M) => !!M).filter((M) => !c.current.has(M)).filter((M) => !(M in r));
3118
- if (v.length === 0) return;
3119
- v.forEach((M) => c.current.add(M));
3120
- const C = ++f.current;
3119
+ var D, y;
3120
+ const m = (D = a.start) != null ? D : 0, d = (y = a.end) != null ? y : 7, g = Math.max(0, m - o), p = Math.min(e.length - 1, d + o);
3121
+ let v = g, C = p;
3122
+ const _ = u.current;
3123
+ _ && (g > _.end && (v = _.end + 1), p < _.start && (C = _.start - 1)), u.current = { start: g, end: p };
3124
+ const I = e.slice(v, C + 1).map(($) => $ == null ? void 0 : $.id).filter(($) => !!$).filter(($) => !c.current.has($)).filter(($) => !($ in r));
3125
+ if (I.length === 0) return;
3126
+ I.forEach(($) => c.current.add($));
3127
+ const O = ++f.current;
3121
3128
  (async () => {
3122
3129
  try {
3123
- const M = await n(v);
3124
- if (C !== f.current) {
3125
- v.forEach((A) => c.current.delete(A));
3130
+ const $ = await n(I);
3131
+ if (O !== f.current) {
3132
+ I.forEach((A) => c.current.delete(A));
3126
3133
  return;
3127
3134
  }
3128
- if (!(M != null && M.events)) {
3129
- v.forEach(
3135
+ if (!($ != null && $.events)) {
3136
+ I.forEach(
3130
3137
  (A) => c.current.delete(A)
3131
3138
  );
3132
3139
  return;
3133
3140
  }
3134
3141
  s((A) => {
3135
- const $ = { ...A };
3136
- for (const [x, O] of Object.entries(M.events)) {
3137
- const P = Number(x);
3138
- $[P] || ($[P] = O);
3142
+ const N = { ...A };
3143
+ for (const [x, T] of Object.entries($.events)) {
3144
+ const L = Number(x);
3145
+ N[L] || (N[L] = T);
3139
3146
  }
3140
- return $;
3147
+ return N;
3141
3148
  });
3142
- const T = new Set(
3143
- Object.keys(M.events).map(Number)
3149
+ const E = new Set(
3150
+ Object.keys($.events).map(Number)
3144
3151
  );
3145
- v.forEach((A) => {
3152
+ I.forEach((A) => {
3146
3153
  c.current.delete(A);
3147
3154
  });
3148
- } catch (M) {
3149
- v.forEach(
3150
- (T) => c.current.delete(T)
3151
- ), console.error("Jersey fetch error", M);
3155
+ } catch ($) {
3156
+ I.forEach(
3157
+ (E) => c.current.delete(E)
3158
+ ), console.error("Jersey fetch error", $);
3152
3159
  }
3153
3160
  })();
3154
3161
  }, i), () => {
@@ -3176,52 +3183,52 @@ function Rn({
3176
3183
  onViewMore: o,
3177
3184
  className: i = ""
3178
3185
  }) {
3179
- const r = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football/all/all/all/in-play.json?channel_id=3&channel_id=3&client_id=200&client_id=200&competitionId=undefined&lang=es_PE&lang=es_PE&market=PE&market=PE&useCombined=true&useCombinedLive=true", s = V(null), [c, f] = Z({ isStart: !0, isEnd: !1 }), [h, u] = Z(null), [p, d] = Z({ start: null, end: null }), [g, m] = Z(null), _ = V(!1), I = ae(), y = ne(), v = le(), C = V(/* @__PURE__ */ new Map()), D = () => {
3186
+ const r = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football/all/all/all/in-play.json?channel_id=3&channel_id=3&client_id=200&client_id=200&competitionId=undefined&lang=es_PE&lang=es_PE&market=PE&market=PE&useCombined=true&useCombinedLive=true", s = V(null), [c, f] = Z({ isStart: !0, isEnd: !1 }), [h, u] = Z(null), [m, d] = Z({ start: null, end: null }), [g, p] = Z(null), v = V(!1), C = ae(), _ = ne(), I = le(), O = V(/* @__PURE__ */ new Map()), D = () => {
3180
3187
  var z;
3181
- I({
3188
+ C({
3182
3189
  element: "evento_en_vivo_prev",
3183
- label: `${y} - OraculoSeccionEventoEnVivo - Anterior`,
3190
+ label: `${_} - OraculoSeccionEventoEnVivo - Anterior`,
3184
3191
  target: "prev",
3185
3192
  event_type: "click",
3186
- module_id: v,
3193
+ module_id: I,
3187
3194
  metadata: {
3188
3195
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
3189
3196
  },
3190
3197
  tags: { section: "OraculoSeccionEventoEnVivo" }
3191
3198
  }), (z = s.current) == null || z.prev();
3192
- }, k = () => {
3199
+ }, y = () => {
3193
3200
  var z;
3194
- I({
3201
+ C({
3195
3202
  element: "evento_en_vivo_next",
3196
- label: `${y} - OraculoSeccionEventoEnVivo - Siguiente`,
3203
+ label: `${_} - OraculoSeccionEventoEnVivo - Siguiente`,
3197
3204
  target: "next",
3198
3205
  event_type: "click",
3199
- module_id: v,
3206
+ module_id: I,
3200
3207
  metadata: {
3201
3208
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
3202
3209
  },
3203
3210
  tags: { section: "OraculoSeccionEventoEnVivo" }
3204
3211
  }), (z = s.current) == null || z.next();
3205
- }, M = () => {
3206
- I({
3212
+ }, $ = () => {
3213
+ C({
3207
3214
  element: "evento_en_vivo_view_more",
3208
- label: `${y} - OraculoSeccionEventoEnVivo - Ver más`,
3215
+ label: `${_} - OraculoSeccionEventoEnVivo - Ver más`,
3209
3216
  target: "ver_mas",
3210
3217
  event_type: "click",
3211
- module_id: v,
3218
+ module_id: I,
3212
3219
  metadata: {
3213
3220
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
3214
3221
  },
3215
3222
  tags: { section: "OraculoSeccionEventoEnVivo" }
3216
3223
  }), Ba();
3217
- }, T = Ee(async () => {
3224
+ }, E = Ee(async () => {
3218
3225
  var z;
3219
3226
  try {
3220
- if (!_.current) {
3221
- _.current = !0;
3227
+ if (!v.current) {
3228
+ v.current = !0;
3222
3229
  try {
3223
3230
  const w = await (await fetch("https://api.mktolimpo.com/api/kambi/eventos/orden")).json(), F = ((z = w == null ? void 0 : w.data) == null ? void 0 : z.event_ids) || [], K = /* @__PURE__ */ new Map();
3224
- F.forEach((Y, l) => K.set(String(Y), l)), C.current = K;
3231
+ F.forEach((Y, l) => K.set(String(Y), l)), O.current = K;
3225
3232
  } catch (G) {
3226
3233
  console.error("Order fetch failed, using default sorting", G);
3227
3234
  }
@@ -3229,11 +3236,11 @@ function Rn({
3229
3236
  const R = await fetch(r);
3230
3237
  if (!R.ok) throw new Error("Failed to fetch live events");
3231
3238
  const U = await R.json(), W = An(U.events);
3232
- if (C.current.size === 0)
3239
+ if (O.current.size === 0)
3233
3240
  u(W);
3234
3241
  else {
3235
3242
  const G = [...W].sort((w, F) => {
3236
- const K = C.current.get(String(w.event.id)), Y = C.current.get(String(F.event.id));
3243
+ const K = O.current.get(String(w.event.id)), Y = O.current.get(String(F.event.id));
3237
3244
  return (K !== void 0 ? K : 1 / 0) - (Y !== void 0 ? Y : 1 / 0);
3238
3245
  });
3239
3246
  u(G);
@@ -3242,22 +3249,22 @@ function Rn({
3242
3249
  console.error("LoadData Error:", R);
3243
3250
  }
3244
3251
  }, []);
3245
- ee(() => {
3246
- T();
3247
- const z = setInterval(T, 2e4);
3252
+ Q(() => {
3253
+ E();
3254
+ const z = setInterval(E, 2e4);
3248
3255
  return () => clearInterval(z);
3249
- }, [T]);
3256
+ }, [E]);
3250
3257
  const { jerseys: A } = St({
3251
3258
  events: (h == null ? void 0 : h.map((z) => z.event)) || [],
3252
3259
  // extract actual event objects
3253
- visibleRange: p,
3260
+ visibleRange: m,
3254
3261
  fetchJerseys: gt,
3255
3262
  buffer: 3,
3256
3263
  // same as your previous BUFFER
3257
3264
  debounceMs: 300
3258
3265
  // same as your previous debouncedVisibleRange
3259
- }), $ = i || void 0, x = h === null, O = ie(() => x ? Array(4).fill({}) : (h == null ? void 0 : h.slice(0, 20)) || [], [x, h]), P = xe("(max-width:950px)");
3260
- return !x && h.length === 0 ? null : /* @__PURE__ */ t("section", { className: $, style: {
3266
+ }), N = i || void 0, x = h === null, T = ie(() => x ? Array(4).fill({}) : (h == null ? void 0 : h.slice(0, 20)) || [], [x, h]), L = xe("(max-width:950px)");
3267
+ return !x && h.length === 0 ? null : /* @__PURE__ */ t("section", { className: N, style: {
3261
3268
  // paddingLeft: 16,
3262
3269
  // paddingRight: 16,
3263
3270
  width: "100%",
@@ -3285,21 +3292,21 @@ function Rn({
3285
3292
  variant: "secondary",
3286
3293
  iconOnly: !0,
3287
3294
  rightIcon: /* @__PURE__ */ t(ze, {}),
3288
- onClick: k,
3295
+ onClick: y,
3289
3296
  disabled: c.isEnd
3290
3297
  }
3291
3298
  )
3292
3299
  ] }),
3293
- /* @__PURE__ */ t(X, { variant: "secondary", onClick: M, children: "Ver más" })
3300
+ /* @__PURE__ */ t(X, { variant: "secondary", onClick: $, children: "Ver más" })
3294
3301
  ] })
3295
3302
  ] }) }),
3296
3303
  /* @__PURE__ */ t(
3297
3304
  he,
3298
3305
  {
3299
3306
  ref: s,
3300
- items: O,
3307
+ items: T,
3301
3308
  perPage: void 0,
3302
- showRightGradient: !P,
3309
+ showRightGradient: !L,
3303
3310
  enableHorizontalWheel: !0,
3304
3311
  gap: "16px",
3305
3312
  options: { autoWidth: !0, trimSpace: "move" },
@@ -3328,7 +3335,7 @@ function Rn({
3328
3335
  )
3329
3336
  ] }) });
3330
3337
  }
3331
- function Pn() {
3338
+ function Ln() {
3332
3339
  return /* @__PURE__ */ b("div", { className: be.cardContainer, children: [
3333
3340
  /* @__PURE__ */ t(mt, { title: "" }),
3334
3341
  /* @__PURE__ */ t("div", { className: be.cardBackground, children: /* @__PURE__ */ b(H, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
@@ -3356,8 +3363,8 @@ function Pn() {
3356
3363
  ] }) })
3357
3364
  ] });
3358
3365
  }
3359
- const Ln = "oraculo__OraculoSeccionEventoSemana-module__wrapper___eqVq-", Fn = "oraculo__OraculoSeccionEventoSemana-module__container___5yFQs", qn = "oraculo__OraculoSeccionEventoSemana-module__buttonWrapper___-6IDT", Dn = "oraculo__OraculoSeccionEventoSemana-module__padding___vfUcV", Ie = {
3360
- wrapper: Ln,
3366
+ const Pn = "oraculo__OraculoSeccionEventoSemana-module__wrapper___eqVq-", Fn = "oraculo__OraculoSeccionEventoSemana-module__container___5yFQs", qn = "oraculo__OraculoSeccionEventoSemana-module__buttonWrapper___-6IDT", Dn = "oraculo__OraculoSeccionEventoSemana-module__padding___vfUcV", Ie = {
3367
+ wrapper: Pn,
3361
3368
  container: Fn,
3362
3369
  buttonWrapper: qn,
3363
3370
  padding: Dn
@@ -3404,7 +3411,7 @@ function Hn({
3404
3411
  onViewMore: o,
3405
3412
  className: i = ""
3406
3413
  }) {
3407
- const r = ae(), s = ne(), c = le(), f = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE", h = V(null), [u, p] = Z({ isStart: !0, isEnd: !1 }), [d, g] = Z(null), [m, _] = Z({ start: null, end: null }), I = "channel_id=1&client_id=200&competitionId=undefined&lang=es_PE&market=PE&useCombined=true", y = () => {
3414
+ const r = ae(), s = ne(), c = le(), f = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE", h = V(null), [u, m] = Z({ isStart: !0, isEnd: !1 }), [d, g] = Z(null), [p, v] = Z({ start: null, end: null }), C = "channel_id=1&client_id=200&competitionId=undefined&lang=es_PE&market=PE&useCombined=true", _ = () => {
3408
3415
  r({
3409
3416
  element: "evento_semana_view_more",
3410
3417
  label: `${s} - OraculoSeccionEventoSemana - Ver más`,
@@ -3417,24 +3424,24 @@ function Hn({
3417
3424
  tags: { section: "OraculoSeccionEventoSemana" }
3418
3425
  }), Aa();
3419
3426
  };
3420
- async function v($) {
3421
- var P, z;
3422
- let x = [], O = [];
3427
+ async function I(N) {
3428
+ var L, z;
3429
+ let x = [], T = [];
3423
3430
  try {
3424
3431
  const R = await fetch(
3425
3432
  "https://api.mktolimpo.com/api/kambi/eventos/orden",
3426
- { signal: $ }
3433
+ { signal: N }
3427
3434
  );
3428
3435
  if (R.ok) {
3429
3436
  const U = await R.json();
3430
- x = ((P = U == null ? void 0 : U.data) == null ? void 0 : P.group_ids) || [], O = ((z = U == null ? void 0 : U.data) == null ? void 0 : z.event_ids) || [];
3437
+ x = ((L = U == null ? void 0 : U.data) == null ? void 0 : L.group_ids) || [], T = ((z = U == null ? void 0 : U.data) == null ? void 0 : z.event_ids) || [];
3431
3438
  }
3432
3439
  } catch (R) {
3433
3440
  R.name !== "AbortError" && console.warn("Order API not available, using default group order");
3434
3441
  return;
3435
3442
  }
3436
3443
  try {
3437
- const W = (await (await fetch(f, { signal: $ })).json()).group.groups.find(
3444
+ const W = (await (await fetch(f, { signal: N })).json()).group.groups.find(
3438
3445
  (l) => l.englishName === "Football"
3439
3446
  );
3440
3447
  if (!W || !Array.isArray(W.groups)) {
@@ -3444,35 +3451,35 @@ function Hn({
3444
3451
  let G = [...W.groups];
3445
3452
  if (x.length > 0) {
3446
3453
  const l = new Map(
3447
- x.map((S, E) => [S, E])
3454
+ x.map((S, k) => [S, k])
3448
3455
  );
3449
- G.sort((S, E) => {
3450
- const N = l.get(String(S.id)), B = l.get(String(E.id));
3451
- return N !== void 0 && B !== void 0 ? N - B : N !== void 0 ? -1 : B !== void 0 ? 1 : 0;
3456
+ G.sort((S, k) => {
3457
+ const M = l.get(String(S.id)), B = l.get(String(k.id));
3458
+ return M !== void 0 && B !== void 0 ? M - B : M !== void 0 ? -1 : B !== void 0 ? 1 : 0;
3452
3459
  });
3453
3460
  }
3454
3461
  const F = G.slice(0, 5), K = (l) => {
3455
3462
  const S = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football";
3456
3463
  if (l.groups && l.groups.length > 0) {
3457
- const E = l.groups[0];
3464
+ const k = l.groups[0];
3458
3465
  return [
3459
- `${S}/${l.termKey}/${E.termKey}/all/matches.json?${I}`
3466
+ `${S}/${l.termKey}/${k.termKey}/all/matches.json?${C}`
3460
3467
  ];
3461
3468
  }
3462
3469
  return [
3463
- `${S}/${l.termKey}/all/all/matches.json?${I}`
3470
+ `${S}/${l.termKey}/all/all/matches.json?${C}`
3464
3471
  ];
3465
3472
  }, Y = F.flatMap(K);
3466
- C(Y, O, $);
3473
+ O(Y, T, N);
3467
3474
  } catch (R) {
3468
3475
  console.error(R);
3469
3476
  }
3470
3477
  }
3471
- async function C($, x, O) {
3478
+ async function O(N, x, T) {
3472
3479
  try {
3473
- const P = await Vn($, 2, O);
3480
+ const L = await Vn(N, 2, T);
3474
3481
  let z = [], R = [];
3475
- P.forEach((w) => {
3482
+ L.forEach((w) => {
3476
3483
  w.events && (z.push(...w.events.map((F) => F.event)), R.push(
3477
3484
  ...w.events.flatMap((F) => F.betOffers || [])
3478
3485
  ));
@@ -3491,31 +3498,31 @@ function Hn({
3491
3498
  return Y !== void 0 && l !== void 0 ? Y - l : Y !== void 0 ? -1 : l !== void 0 ? 1 : 0;
3492
3499
  });
3493
3500
  }
3494
- if (O.aborted) return;
3501
+ if (T.aborted) return;
3495
3502
  g(G);
3496
- } catch (P) {
3497
- console.error("Error loading events:", P);
3503
+ } catch (L) {
3504
+ console.error("Error loading events:", L);
3498
3505
  }
3499
3506
  }
3500
- ee(() => {
3507
+ Q(() => {
3501
3508
  if (!e) return;
3502
- const $ = new AbortController();
3503
- return v($.signal), () => {
3504
- $.abort();
3509
+ const N = new AbortController();
3510
+ return I(N.signal), () => {
3511
+ N.abort();
3505
3512
  };
3506
3513
  }, [e]);
3507
- const D = i || void 0, k = {
3514
+ const D = i || void 0, y = {
3508
3515
  paddingLeft: 0,
3509
3516
  width: "100%",
3510
3517
  boxSizing: "border-box"
3511
- }, { jerseys: M } = St({
3518
+ }, { jerseys: $ } = St({
3512
3519
  events: d,
3513
- visibleRange: m,
3520
+ visibleRange: p,
3514
3521
  fetchJerseys: gt,
3515
3522
  buffer: 2,
3516
3523
  debounceMs: 250
3517
- }), T = d === null, A = xe("(max-width:950px)");
3518
- return !T && d.length === 0 ? null : /* @__PURE__ */ t("section", { className: D, style: k, children: /* @__PURE__ */ b("div", { className: `${Ie.wrapper} ${Ie.padding}`, children: [
3524
+ }), E = d === null, A = xe("(max-width:950px)");
3525
+ return !E && d.length === 0 ? null : /* @__PURE__ */ t("section", { className: D, style: y, children: /* @__PURE__ */ b("div", { className: `${Ie.wrapper} ${Ie.padding}`, children: [
3519
3526
  /* @__PURE__ */ t("div", { className: Ie.container, children: /* @__PURE__ */ b(H, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
3520
3527
  /* @__PURE__ */ t(ge, { title: "Eventos de la semana" }),
3521
3528
  /* @__PURE__ */ t("div", { className: Ie.buttonWrapper, children: /* @__PURE__ */ t(
@@ -3525,7 +3532,7 @@ function Hn({
3525
3532
  size: "lg",
3526
3533
  fullWidth: !0,
3527
3534
  onClick: () => {
3528
- y();
3535
+ _();
3529
3536
  },
3530
3537
  children: "Ver más"
3531
3538
  }
@@ -3535,7 +3542,7 @@ function Hn({
3535
3542
  he,
3536
3543
  {
3537
3544
  ref: h,
3538
- items: T ? Array(6).fill({}) : d.slice(0, 20),
3545
+ items: E ? Array(6).fill({}) : d.slice(0, 20),
3539
3546
  perPage: 3.5,
3540
3547
  gap: "16px",
3541
3548
  enableHorizontalWheel: !0,
@@ -3549,14 +3556,14 @@ function Hn({
3549
3556
  padding: { left: "8px", right: "8px" }
3550
3557
  }
3551
3558
  },
3552
- renderItem: ($) => {
3553
- const x = $.id, O = x in M ? M[x] : void 0;
3554
- return T ? /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Pn, {}) }) : /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Un, { event: $, jersey: O }) });
3559
+ renderItem: (N) => {
3560
+ const x = N.id, T = x in $ ? $[x] : void 0;
3561
+ return E ? /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Ln, {}) }) : /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Un, { event: N, jersey: T }) });
3555
3562
  },
3556
- onMove: ({ isStart: $, isEnd: x, visibleStart: O, visibleEnd: P }) => {
3557
- p({ isStart: $, isEnd: x }), _({
3558
- start: O,
3559
- end: P
3563
+ onMove: ({ isStart: N, isEnd: x, visibleStart: T, visibleEnd: L }) => {
3564
+ m({ isStart: N, isEnd: x }), v({
3565
+ start: T,
3566
+ end: L
3560
3567
  }), r({
3561
3568
  element: "evento_semana_carousel_slide",
3562
3569
  label: `${s} - OraculoSeccionEventoSemana - Slide Carousel`,
@@ -3565,9 +3572,9 @@ function Hn({
3565
3572
  module_id: c,
3566
3573
  metadata: {
3567
3574
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
3568
- visibleStart: O,
3569
- visibleEnd: P,
3570
- isStart: $,
3575
+ visibleStart: T,
3576
+ visibleEnd: L,
3577
+ isStart: N,
3571
3578
  isEnd: x
3572
3579
  },
3573
3580
  tags: { section: "OraculoSeccionEventoSemana" }
@@ -3597,8 +3604,8 @@ const Kn = -300, Zn = (e) => /[zZ]|[+-]\d{2}:\d{2}$/.test(e), nt = (e) => {
3597
3604
  Number(c)
3598
3605
  );
3599
3606
  }, Jn = (e, a) => {
3600
- var c, f, h, u, p, d, g, m, _;
3601
- const n = (h = (f = (c = e == null ? void 0 : e.fields) != null ? c : e == null ? void 0 : e.parameters) != null ? f : e == null ? void 0 : e.extraFields) != null ? h : [], o = (d = (p = e == null ? void 0 : e.startAt) != null ? p : (u = n.find((I) => (I == null ? void 0 : I.name) === "startAt")) == null ? void 0 : u.value) != null ? d : null, i = (_ = (m = e == null ? void 0 : e.endAt) != null ? m : (g = n.find((I) => (I == null ? void 0 : I.name) === "endAt")) == null ? void 0 : g.value) != null ? _ : null, r = nt(o), s = nt(i);
3607
+ var c, f, h, u, m, d, g, p, v;
3608
+ const n = (h = (f = (c = e == null ? void 0 : e.fields) != null ? c : e == null ? void 0 : e.parameters) != null ? f : e == null ? void 0 : e.extraFields) != null ? h : [], o = (d = (m = e == null ? void 0 : e.startAt) != null ? m : (u = n.find((C) => (C == null ? void 0 : C.name) === "startAt")) == null ? void 0 : u.value) != null ? d : null, i = (v = (p = e == null ? void 0 : e.endAt) != null ? p : (g = n.find((C) => (C == null ? void 0 : C.name) === "endAt")) == null ? void 0 : g.value) != null ? v : null, r = nt(o), s = nt(i);
3602
3609
  return !(r != null && a < r || s != null && a >= s);
3603
3610
  };
3604
3611
  function Xn({
@@ -3607,10 +3614,10 @@ function Xn({
3607
3614
  hideItems: n
3608
3615
  }) {
3609
3616
  var W, G;
3610
- const [o, i] = Z(0), r = ae(), s = ne(), c = le(), f = V(null), h = V(!1), u = V(!1), [p, d] = Z(() => Date.now()), g = se("setDepositActionGlobal"), m = ie(() => (e != null ? e : []).filter((w) => Jn(w, p)), [e, p]), _ = m.length || 1, I = !m || m.length === 0, y = !I && m.length > 1, v = !n && ((W = a == null ? void 0 : a.length) != null ? W : 0) > 0;
3617
+ const [o, i] = Z(0), r = ae(), s = ne(), c = le(), f = V(null), h = V(!1), u = V(!1), [m, d] = Z(() => Date.now()), g = se("setDepositActionGlobal"), p = ie(() => (e != null ? e : []).filter((w) => Jn(w, m)), [e, m]), v = p.length || 1, C = !p || p.length === 0, _ = !C && p.length > 1, I = !n && ((W = a == null ? void 0 : a.length) != null ? W : 0) > 0;
3611
3618
  De("(max-width:950px)");
3612
- const C = "#B5B5B5";
3613
- ee(() => {
3619
+ const O = "#B5B5B5";
3620
+ Q(() => {
3614
3621
  const w = window.setInterval(() => {
3615
3622
  d(Date.now());
3616
3623
  }, 3e4);
@@ -3624,22 +3631,22 @@ function Xn({
3624
3631
  width: 48,
3625
3632
  height: 40,
3626
3633
  borderRadius: "12px",
3627
- border: `1.5px solid ${C}`,
3634
+ border: `1.5px solid ${O}`,
3628
3635
  py: 1,
3629
3636
  px: 1.5,
3630
- color: C,
3637
+ color: O,
3631
3638
  backgroundColor: "transparent",
3632
3639
  "&:hover": {
3633
3640
  backgroundColor: "rgba(181,181,181,0.08)"
3634
3641
  },
3635
3642
  "&.Mui-disabled": {
3636
3643
  opacity: 0.35,
3637
- borderColor: C,
3638
- color: C,
3644
+ borderColor: O,
3645
+ color: O,
3639
3646
  backgroundColor: "transparent",
3640
3647
  cursor: "default"
3641
3648
  }
3642
- }, k = ie(
3649
+ }, y = ie(
3643
3650
  () => ({
3644
3651
  type: "loop",
3645
3652
  perMove: 1,
@@ -3650,14 +3657,14 @@ function Xn({
3650
3657
  }),
3651
3658
  []
3652
3659
  );
3653
- ee(() => {
3660
+ Q(() => {
3654
3661
  const w = setTimeout(() => {
3655
3662
  h.current = !0;
3656
3663
  }, 500);
3657
3664
  return () => clearTimeout(w);
3658
3665
  }, []);
3659
- const M = (w, F, K) => {
3660
- var E, N;
3666
+ const $ = (w, F, K) => {
3667
+ var k, M;
3661
3668
  const Y = !!F.idFunction, l = !!F.href;
3662
3669
  if (Y)
3663
3670
  switch (w.preventDefault(), w.stopPropagation(), F.idFunction) {
@@ -3671,7 +3678,7 @@ function Xn({
3671
3678
  w.preventDefault(), w.stopPropagation();
3672
3679
  return;
3673
3680
  }
3674
- const S = ((N = (E = F.href) == null ? void 0 : E.split("/").pop()) == null ? void 0 : N.split(".")[0]) || F.label || F.id || `banner_${K + 1}`;
3681
+ const S = ((M = (k = F.href) == null ? void 0 : k.split("/").pop()) == null ? void 0 : M.split(".")[0]) || F.label || F.id || `banner_${K + 1}`;
3675
3682
  r({
3676
3683
  element: "banner_carousel",
3677
3684
  label: `${s} - OraculoSeccionBanners - Banner click: ${S}`,
@@ -3681,7 +3688,7 @@ function Xn({
3681
3688
  metadata: {
3682
3689
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
3683
3690
  banner_position: K + 1,
3684
- banner_total: (m == null ? void 0 : m.length) || 0
3691
+ banner_total: (p == null ? void 0 : p.length) || 0
3685
3692
  },
3686
3693
  tags: {
3687
3694
  banner_type: "carousel",
@@ -3689,7 +3696,7 @@ function Xn({
3689
3696
  banner_url: F.href || "no_url"
3690
3697
  }
3691
3698
  });
3692
- }, T = (w) => {
3699
+ }, E = (w) => {
3693
3700
  if (r({
3694
3701
  element: "banner_menu_item",
3695
3702
  label: `${s} - OraculoSeccionBanners - Menu item click: ${w.label || w.id}`,
@@ -3708,53 +3715,53 @@ function Xn({
3708
3715
  return;
3709
3716
  }
3710
3717
  w.href && typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(w.href);
3711
- }, A = 5e3, $ = V(null), x = !I && ((G = m == null ? void 0 : m.length) != null ? G : 0) > 1, O = () => {
3712
- $.current != null && (window.clearTimeout($.current), $.current = null);
3713
- }, P = () => {
3714
- O(), x && ($.current = window.setTimeout(() => {
3718
+ }, A = 5e3, N = V(null), x = !C && ((G = p == null ? void 0 : p.length) != null ? G : 0) > 1, T = () => {
3719
+ N.current != null && (window.clearTimeout(N.current), N.current = null);
3720
+ }, L = () => {
3721
+ T(), x && (N.current = window.setTimeout(() => {
3715
3722
  var w;
3716
3723
  u.current = !0, (w = f.current) == null || w.next();
3717
3724
  }, A));
3718
3725
  };
3719
- ee(() => (P(), () => O()), [x, A]);
3726
+ Q(() => (L(), () => T()), [x, A]);
3720
3727
  const z = (w) => {
3721
3728
  var F;
3722
- w.preventDefault(), w.stopPropagation(), O(), (F = f.current) == null || F.prev();
3729
+ w.preventDefault(), w.stopPropagation(), T(), (F = f.current) == null || F.prev();
3723
3730
  }, R = (w) => {
3724
3731
  var F;
3725
- w.preventDefault(), w.stopPropagation(), O(), (F = f.current) == null || F.next();
3732
+ w.preventDefault(), w.stopPropagation(), T(), (F = f.current) == null || F.next();
3726
3733
  }, U = (w) => {
3727
- var Y, l, S, E;
3728
- const F = (w % _ + _) % _;
3734
+ var Y, l, S, k;
3735
+ const F = (w % v + v) % v;
3729
3736
  if (!h.current) return;
3730
- const K = (Y = m == null ? void 0 : m[F]) != null && Y.href ? ((S = (l = m[F].href) == null ? void 0 : l.split("/").pop()) == null ? void 0 : S.split(".")[0]) || `banner_${F + 1}` : `banner_${F + 1}`;
3737
+ const K = (Y = p == null ? void 0 : p[F]) != null && Y.href ? ((S = (l = p[F].href) == null ? void 0 : l.split("/").pop()) == null ? void 0 : S.split(".")[0]) || `banner_${F + 1}` : `banner_${F + 1}`;
3731
3738
  r({
3732
3739
  element: "banner_carousel",
3733
3740
  label: `${s} - OraculoSeccionBanners - Banner view: Slide ${F + 1} - ${K}`,
3734
- target: ((E = m == null ? void 0 : m[F]) == null ? void 0 : E.href) || "no_url",
3741
+ target: ((k = p == null ? void 0 : p[F]) == null ? void 0 : k.href) || "no_url",
3735
3742
  event_type: "view",
3736
3743
  module_id: c,
3737
3744
  metadata: {
3738
3745
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
3739
3746
  slide_index: F + 1,
3740
- total_slides: _,
3747
+ total_slides: v,
3741
3748
  interaction_type: "manual_slide"
3742
3749
  },
3743
3750
  tags: { banner_position: String(F + 1) }
3744
3751
  });
3745
3752
  };
3746
3753
  return /* @__PURE__ */ b(
3747
- Q,
3754
+ ee,
3748
3755
  {
3749
3756
  component: "section",
3750
3757
  sx: {
3751
3758
  position: "relative",
3752
3759
  overflow: "visible",
3753
- pb: v ? { xs: "40px", sm: 0 } : 0
3760
+ pb: I ? { xs: "40px", sm: 0 } : 0
3754
3761
  },
3755
3762
  children: [
3756
3763
  /* @__PURE__ */ b(
3757
- Q,
3764
+ ee,
3758
3765
  {
3759
3766
  sx: {
3760
3767
  position: "relative",
@@ -3770,7 +3777,7 @@ function Xn({
3770
3777
  },
3771
3778
  children: [
3772
3779
  /* @__PURE__ */ t(
3773
- Q,
3780
+ ee,
3774
3781
  {
3775
3782
  sx: {
3776
3783
  height: "100%",
@@ -3781,28 +3788,28 @@ function Xn({
3781
3788
  he,
3782
3789
  {
3783
3790
  ref: f,
3784
- items: m,
3791
+ items: p,
3785
3792
  perPage: 1,
3786
3793
  gap: "0px",
3787
3794
  enableHorizontalWheel: !0,
3788
- options: k,
3795
+ options: y,
3789
3796
  onMove: ({ index: w }) => {
3790
- const F = (w % _ + _) % _;
3797
+ const F = (w % v + v) % v;
3791
3798
  i(F);
3792
3799
  const K = u.current;
3793
- u.current = !1, P(), K || U(w);
3800
+ u.current = !1, L(), K || U(w);
3794
3801
  },
3795
3802
  renderItem: (w, F) => {
3796
- var E, N, B;
3803
+ var k, M, B;
3797
3804
  const K = !!w.idFunction, Y = !!w.href, l = Y && !K, S = K || Y;
3798
3805
  return /* @__PURE__ */ b(
3799
- Q,
3806
+ ee,
3800
3807
  {
3801
3808
  component: l ? "a" : "div",
3802
3809
  href: l ? w.href : void 0,
3803
- target: l ? (E = w.target) != null ? E : "_self" : void 0,
3810
+ target: l ? (k = w.target) != null ? k : "_self" : void 0,
3804
3811
  rel: l && w.target === "_blank" ? "noopener noreferrer" : void 0,
3805
- onClick: (L) => M(L, w, F),
3812
+ onClick: (P) => $(P, w, F),
3806
3813
  sx: {
3807
3814
  position: "relative",
3808
3815
  width: "100%",
@@ -3812,14 +3819,14 @@ function Xn({
3812
3819
  cursor: S ? "pointer" : "default"
3813
3820
  },
3814
3821
  children: [
3815
- /* @__PURE__ */ b(Q, { component: "picture", sx: { position: "absolute", inset: 0, lineHeight: 0 }, children: [
3822
+ /* @__PURE__ */ b(ee, { component: "picture", sx: { position: "absolute", inset: 0, lineHeight: 0 }, children: [
3816
3823
  /* @__PURE__ */ t("source", { srcSet: w.desktopSrc, media: "(min-width:950px)" }),
3817
3824
  /* @__PURE__ */ t("source", { srcSet: w.mobileSrc, media: "(max-width:949px)" }),
3818
3825
  /* @__PURE__ */ t(
3819
- Q,
3826
+ ee,
3820
3827
  {
3821
3828
  component: "img",
3822
- src: (B = (N = w.fallbackSrc) != null ? N : w.desktopSrc) != null ? B : "",
3829
+ src: (B = (M = w.fallbackSrc) != null ? M : w.desktopSrc) != null ? B : "",
3823
3830
  alt: "",
3824
3831
  "aria-hidden": !0,
3825
3832
  loading: "lazy",
@@ -3833,7 +3840,7 @@ function Xn({
3833
3840
  )
3834
3841
  ] }),
3835
3842
  /* @__PURE__ */ t(
3836
- Q,
3843
+ ee,
3837
3844
  {
3838
3845
  sx: {
3839
3846
  position: "absolute",
@@ -3859,7 +3866,7 @@ function Xn({
3859
3866
  )
3860
3867
  }
3861
3868
  ),
3862
- y && /* @__PURE__ */ b(pe, { children: [
3869
+ _ && /* @__PURE__ */ b(pe, { children: [
3863
3870
  /* @__PURE__ */ t(
3864
3871
  Ke,
3865
3872
  {
@@ -3890,7 +3897,7 @@ function Xn({
3890
3897
  )
3891
3898
  ] }),
3892
3899
  /* @__PURE__ */ t(
3893
- Q,
3900
+ ee,
3894
3901
  {
3895
3902
  sx: {
3896
3903
  position: "absolute",
@@ -3904,19 +3911,19 @@ function Xn({
3904
3911
  children: /* @__PURE__ */ t(
3905
3912
  dt,
3906
3913
  {
3907
- total: _,
3914
+ total: v,
3908
3915
  active: o,
3909
3916
  durationMs: A
3910
3917
  },
3911
- `${o}-${_}`
3918
+ `${o}-${v}`
3912
3919
  )
3913
3920
  }
3914
3921
  )
3915
3922
  ]
3916
3923
  }
3917
3924
  ),
3918
- v && /* @__PURE__ */ t(
3919
- Q,
3925
+ I && /* @__PURE__ */ t(
3926
+ ee,
3920
3927
  {
3921
3928
  sx: {
3922
3929
  position: "absolute",
@@ -3934,7 +3941,7 @@ function Xn({
3934
3941
  zIndex: 3
3935
3942
  },
3936
3943
  children: a == null ? void 0 : a.map((w) => /* @__PURE__ */ b(
3937
- Q,
3944
+ ee,
3938
3945
  {
3939
3946
  sx: {
3940
3947
  position: "relative",
@@ -3978,10 +3985,10 @@ function Xn({
3978
3985
  }
3979
3986
  }
3980
3987
  },
3981
- onClick: () => T(w),
3988
+ onClick: () => E(w),
3982
3989
  children: [
3983
3990
  w.icon && /* @__PURE__ */ b(
3984
- Q,
3991
+ ee,
3985
3992
  {
3986
3993
  sx: {
3987
3994
  position: "relative",
@@ -3991,7 +3998,7 @@ function Xn({
3991
3998
  },
3992
3999
  children: [
3993
4000
  /* @__PURE__ */ t(
3994
- Q,
4001
+ ee,
3995
4002
  {
3996
4003
  component: "img",
3997
4004
  src: w.icon,
@@ -4008,7 +4015,7 @@ function Xn({
4008
4015
  }
4009
4016
  ),
4010
4017
  w.iconHover && /* @__PURE__ */ t(
4011
- Q,
4018
+ ee,
4012
4019
  {
4013
4020
  component: "img",
4014
4021
  src: w.iconHover,
@@ -4064,7 +4071,7 @@ function Qn({
4064
4071
  items: a = Yn
4065
4072
  }) {
4066
4073
  const n = Math.ceil(a.length / 2), o = a.slice(0, n), i = a.slice(n);
4067
- return /* @__PURE__ */ b(Q, { component: "section", "aria-labelledby": "mp-title", sx: { color: "#fff" }, children: [
4074
+ return /* @__PURE__ */ b(ee, { component: "section", "aria-labelledby": "mp-title", sx: { color: "#fff" }, children: [
4068
4075
  /* @__PURE__ */ t(
4069
4076
  st,
4070
4077
  {
@@ -4080,7 +4087,7 @@ function Qn({
4080
4087
  }
4081
4088
  ),
4082
4089
  /* @__PURE__ */ t(
4083
- Q,
4090
+ ee,
4084
4091
  {
4085
4092
  sx: {
4086
4093
  width: "288px",
@@ -4135,8 +4142,8 @@ function It({
4135
4142
  }),
4136
4143
  [a]
4137
4144
  );
4138
- return /* @__PURE__ */ b(Pt, { theme: n, children: [
4139
- /* @__PURE__ */ t(Lt, {}),
4145
+ return /* @__PURE__ */ b(Lt, { theme: n, children: [
4146
+ /* @__PURE__ */ t(Pt, {}),
4140
4147
  e
4141
4148
  ] });
4142
4149
  }
@@ -5523,42 +5530,42 @@ const it = [
5523
5530
  loader: r,
5524
5531
  disableWrapper: s = !1
5525
5532
  }) => {
5526
- const c = ie(() => oo(i), [i]), f = r || c.loader, [h, u] = Z([]), [p, d] = Z(!1), [g, m] = Z({}), [_, I] = Z({}), [y, v] = Z({}), C = De("(min-width:1024px)"), D = ie(
5533
+ const c = ie(() => oo(i), [i]), f = r || c.loader, [h, u] = Z([]), [m, d] = Z(!1), [g, p] = Z({}), [v, C] = Z({}), [_, I] = Z({}), O = De("(min-width:1024px)"), D = ie(
5527
5534
  () => Ce(qe),
5528
5535
  []
5529
- ), k = (l) => D.find(
5536
+ ), y = (l) => D.find(
5530
5537
  (S) => S.id === l.id || S.componentKey === l.componentKey
5531
- ), M = (l) => Array.isArray(l) ? l.map((S) => Number(S)).filter((S) => !Number.isNaN(S)) : [], T = ie(() => {
5538
+ ), $ = (l) => Array.isArray(l) ? l.map((S) => Number(S)).filter((S) => !Number.isNaN(S)) : [], E = ie(() => {
5532
5539
  const l = c.user;
5533
- return M(l == null ? void 0 : l.groups);
5540
+ return $(l == null ? void 0 : l.groups);
5534
5541
  }, [c]), A = (l) => {
5535
5542
  const S = l.manualScalarFields;
5536
5543
  if (!Array.isArray(S)) return [];
5537
- const E = S.find(
5538
- (L) => String((L == null ? void 0 : L.name) || "").trim().toLowerCase() === "groups"
5544
+ const k = S.find(
5545
+ (P) => String((P == null ? void 0 : P.name) || "").trim().toLowerCase() === "groups"
5539
5546
  );
5540
- if (!E) return [];
5541
- const N = E.value;
5542
- if (N == null) return [];
5543
- if (Array.isArray(N))
5544
- return N.map((L) => Number(String(L).trim())).filter((L) => !Number.isNaN(L));
5545
- const B = String(N).trim();
5546
- return B ? B.split(",").map((L) => Number(L.trim())).filter((L) => !Number.isNaN(L)) : [];
5547
- }, $ = (l, S) => {
5548
- const E = A(l);
5549
- if (E.length === 0) return !0;
5547
+ if (!k) return [];
5548
+ const M = k.value;
5549
+ if (M == null) return [];
5550
+ if (Array.isArray(M))
5551
+ return M.map((P) => Number(String(P).trim())).filter((P) => !Number.isNaN(P));
5552
+ const B = String(M).trim();
5553
+ return B ? B.split(",").map((P) => Number(P.trim())).filter((P) => !Number.isNaN(P)) : [];
5554
+ }, N = (l, S) => {
5555
+ const k = A(l);
5556
+ if (k.length === 0) return !0;
5550
5557
  if (!Array.isArray(S) || S.length === 0) return !1;
5551
- const N = new Set(S);
5552
- return E.some((B) => N.has(B));
5558
+ const M = new Set(S);
5559
+ return k.some((B) => M.has(B));
5553
5560
  };
5554
- ee(() => {
5561
+ Q(() => {
5555
5562
  if (e) return;
5556
5563
  if (!o) {
5557
5564
  console.warn("[landing] sin db -> fallback json"), u(Ce(qe));
5558
5565
  return;
5559
5566
  }
5560
- const l = (E, N) => {
5561
- console.warn("[landing] FALLBACK:", E, N != null ? N : ""), u(Ce(qe)), d(!1);
5567
+ const l = (k, M) => {
5568
+ console.warn("[landing] FALLBACK:", k, M != null ? M : ""), u(Ce(qe)), d(!1);
5562
5569
  };
5563
5570
  if (process.env.NEXT_PUBLIC_LANDING_FORCE_FALLBACK === "1") {
5564
5571
  d(!0), l("forzado por env");
@@ -5567,31 +5574,31 @@ const it = [
5567
5574
  d(!0);
5568
5575
  const S = Ft(
5569
5576
  qt(o, "landings", a),
5570
- (E) => {
5577
+ (k) => {
5571
5578
  try {
5572
- if (!E.exists()) {
5579
+ if (!k.exists()) {
5573
5580
  l(`doc landings/${a} no existe`);
5574
5581
  return;
5575
5582
  }
5576
- const N = E.data(), B = Ce(N);
5583
+ const M = k.data(), B = Ce(M);
5577
5584
  if (!B.length) {
5578
- l("JSON inválido o sin secciones normalizables", N);
5585
+ l("JSON inválido o sin secciones normalizables", M);
5579
5586
  return;
5580
5587
  }
5581
- console.log("[landing] Firestore OK (json grande):", N), u(B);
5582
- } catch (N) {
5583
- l("error procesando snapshot", N);
5588
+ console.log("[landing] Firestore OK (json grande):", M), u(B);
5589
+ } catch (M) {
5590
+ l("error procesando snapshot", M);
5584
5591
  } finally {
5585
5592
  d(!1);
5586
5593
  }
5587
5594
  },
5588
- (E) => {
5589
- l("error onSnapshot", E);
5595
+ (k) => {
5596
+ l("error onSnapshot", k);
5590
5597
  }
5591
5598
  );
5592
5599
  return () => S();
5593
- }, [e, a, o]), ee(() => (Xa(c), () => Ya()), [c]), ee(() => {
5594
- (e ? e.slice() : h.slice()).map((E) => E.componentKey).filter((E) => !!E).length;
5600
+ }, [e, a, o]), Q(() => (Xa(c), () => Ya()), [c]), Q(() => {
5601
+ (e ? e.slice() : h.slice()).map((k) => k.componentKey).filter((k) => !!k).length;
5595
5602
  }, [e, h]);
5596
5603
  const x = async (l) => {
5597
5604
  if (it.includes(l.componentKey))
@@ -5602,153 +5609,153 @@ const it = [
5602
5609
  };
5603
5610
  const S = (l.apiUrl || "").trim();
5604
5611
  if (!S) return;
5605
- const E = l.apiMethod || "GET", N = l.apiParams || [];
5606
- let B = S, L, J;
5607
- if (E === "GET") {
5612
+ const k = l.apiMethod || "GET", M = l.apiParams || [];
5613
+ let B = S, P, J;
5614
+ if (k === "GET") {
5608
5615
  const re = new URL(
5609
5616
  S,
5610
5617
  typeof window == "undefined" ? "http://localhost" : window.location.origin
5611
5618
  );
5612
- for (const oe of N)
5619
+ for (const oe of M)
5613
5620
  oe.key && re.searchParams.append(oe.key, oe.value);
5614
5621
  B = re.toString();
5615
5622
  } else {
5616
5623
  const re = new URLSearchParams();
5617
- for (const oe of N)
5624
+ for (const oe of M)
5618
5625
  oe.key && re.append(oe.key, oe.value);
5619
- L = re.toString(), J = {
5626
+ P = re.toString(), J = {
5620
5627
  "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
5621
5628
  };
5622
5629
  }
5623
5630
  const te = await fetch(B, {
5624
- method: E,
5631
+ method: k,
5625
5632
  headers: J,
5626
- body: L
5633
+ body: P
5627
5634
  });
5628
5635
  if (!te.ok) throw new ot(te.status, B, te.statusText);
5629
5636
  return te.json();
5630
- }, O = ie(
5637
+ }, T = ie(
5631
5638
  () => e ? e.slice() : h.slice(),
5632
5639
  [e, h]
5633
- ), P = fe.useRef(/* @__PURE__ */ new Set());
5634
- ee(() => {
5635
- const l = O.map((S) => ({ s: S, url: (S.apiUrl || "").trim() })).filter(({ url: S }) => !!S);
5640
+ ), L = fe.useRef(/* @__PURE__ */ new Set());
5641
+ Q(() => {
5642
+ const l = T.map((S) => ({ s: S, url: (S.apiUrl || "").trim() })).filter(({ url: S }) => !!S);
5636
5643
  if (l.length)
5637
- for (const { s: S, url: E } of l) {
5638
- const N = `${S.id}|${E}`;
5639
- P.current.has(N) || (P.current.add(N), I((B) => ({ ...B, [S.id]: !0 })), v((B) => ({ ...B, [S.id]: "" })), (async () => {
5644
+ for (const { s: S, url: k } of l) {
5645
+ const M = `${S.id}|${k}`;
5646
+ L.current.has(M) || (L.current.add(M), C((B) => ({ ...B, [S.id]: !0 })), I((B) => ({ ...B, [S.id]: "" })), (async () => {
5640
5647
  try {
5641
5648
  const B = await x(S);
5642
- m((L) => ({ ...L, [S.id]: B }));
5649
+ p((P) => ({ ...P, [S.id]: B }));
5643
5650
  } catch (B) {
5644
- let L = "Error desconocido";
5645
- B instanceof ot ? L = `Error HTTP ${B.status} (${B.statusText}) en ${B.url}` : B instanceof SyntaxError ? L = "Respuesta no es JSON válido" : B instanceof TypeError ? L = "Fallo de red / CORS / conexión" : typeof B == "string" && (L = B.toString()), v((J) => ({ ...J, [S.id]: L }));
5651
+ let P = "Error desconocido";
5652
+ B instanceof ot ? P = `Error HTTP ${B.status} (${B.statusText}) en ${B.url}` : B instanceof SyntaxError ? P = "Respuesta no es JSON válido" : B instanceof TypeError ? P = "Fallo de red / CORS / conexión" : typeof B == "string" && (P = B.toString()), I((J) => ({ ...J, [S.id]: P }));
5646
5653
  } finally {
5647
- I((B) => ({ ...B, [S.id]: !1 }));
5654
+ C((B) => ({ ...B, [S.id]: !1 }));
5648
5655
  }
5649
5656
  })());
5650
5657
  }
5651
- }, [O]);
5658
+ }, [T]);
5652
5659
  const z = ie(
5653
- () => O.filter((l) => l.visible).filter((l) => $(l, T)).sort((l, S) => l.order - S.order),
5654
- [O, T]
5660
+ () => T.filter((l) => l.visible).filter((l) => N(l, E)).sort((l, S) => l.order - S.order),
5661
+ [T, E]
5655
5662
  ), R = (l) => Array.isArray(l) ? l.map((S) => {
5656
- const E = {};
5657
- for (const N of S.fields || []) {
5658
- const B = (N.type || "string").toLowerCase();
5663
+ const k = {};
5664
+ for (const M of S.fields || []) {
5665
+ const B = (M.type || "string").toLowerCase();
5659
5666
  if (B === "number") {
5660
- const L = String(N.value || "").trim();
5661
- if (L !== "") {
5662
- const J = Number(L);
5663
- Number.isNaN(J) || (E[N.name] = J);
5667
+ const P = String(M.value || "").trim();
5668
+ if (P !== "") {
5669
+ const J = Number(P);
5670
+ Number.isNaN(J) || (k[M.name] = J);
5664
5671
  }
5665
5672
  } else if (B === "boolean")
5666
- E[N.name] = String(N.value).toLowerCase() === "true";
5673
+ k[M.name] = String(M.value).toLowerCase() === "true";
5667
5674
  else if (B === "function") {
5668
- const L = String(N.value || "").trim();
5669
- if (L)
5675
+ const P = String(M.value || "").trim();
5676
+ if (P)
5670
5677
  try {
5671
- const J = new Function(L);
5672
- E[N.name] = J;
5678
+ const J = new Function(P);
5679
+ k[M.name] = J;
5673
5680
  } catch (J) {
5674
- console.error(`❌ Error creando función en item '${N.name}':`, J);
5681
+ console.error(`❌ Error creando función en item '${M.name}':`, J);
5675
5682
  }
5676
5683
  } else
5677
- E[N.name] = N.value;
5684
+ k[M.name] = M.value;
5678
5685
  }
5679
- return E;
5686
+ return k;
5680
5687
  }) : [], U = (l) => {
5681
5688
  const S = {};
5682
5689
  if (!Array.isArray(l)) return S;
5683
- for (const E of l) {
5684
- if (!E.name) continue;
5685
- const N = (E.type || "string").toLowerCase();
5686
- if (N === "number") {
5687
- const B = String(E.value || "").trim();
5690
+ for (const k of l) {
5691
+ if (!k.name) continue;
5692
+ const M = (k.type || "string").toLowerCase();
5693
+ if (M === "number") {
5694
+ const B = String(k.value || "").trim();
5688
5695
  if (B !== "") {
5689
- const L = Number(B);
5690
- Number.isNaN(L) || (S[E.name] = L);
5696
+ const P = Number(B);
5697
+ Number.isNaN(P) || (S[k.name] = P);
5691
5698
  }
5692
- } else if (N === "boolean")
5693
- S[E.name] = String(E.value).toLowerCase() === "true";
5694
- else if (N === "function") {
5695
- const B = String(E.value || "").trim();
5699
+ } else if (M === "boolean")
5700
+ S[k.name] = String(k.value).toLowerCase() === "true";
5701
+ else if (M === "function") {
5702
+ const B = String(k.value || "").trim();
5696
5703
  if (B)
5697
5704
  try {
5698
- const L = new Function(B);
5699
- S[E.name] = L;
5700
- } catch (L) {
5701
- console.error(`❌ Error creando función en item '${E.name}':`, L);
5705
+ const P = new Function(B);
5706
+ S[k.name] = P;
5707
+ } catch (P) {
5708
+ console.error(`❌ Error creando función en item '${k.name}':`, P);
5702
5709
  }
5703
5710
  } else
5704
- S[E.name] = E.value;
5711
+ S[k.name] = k.value;
5705
5712
  }
5706
5713
  return S;
5707
- }, W = (l, S, E, N) => {
5708
- const B = E ? { ...E } : {}, L = (N || "items").trim() || "items";
5714
+ }, W = (l, S, k, M) => {
5715
+ const B = k ? { ...k } : {}, P = (M || "items").trim() || "items";
5709
5716
  if (S)
5710
- return B[L] = S.arr || [], B;
5717
+ return B[P] = S.arr || [], B;
5711
5718
  const J = l;
5712
5719
  if (Array.isArray(J))
5713
- return B[L] = J, B;
5720
+ return B[P] = J, B;
5714
5721
  if (J && typeof J == "object") {
5715
5722
  const te = J;
5716
- return Array.isArray(te.lobby) ? (B[L] = te.lobby, B) : Array.isArray(te.items) ? (B[L] = te.items, B) : (B[L] = J, B);
5723
+ return Array.isArray(te.lobby) ? (B[P] = te.lobby, B) : Array.isArray(te.items) ? (B[P] = te.items, B) : (B[P] = J, B);
5717
5724
  }
5718
- return B[L] = [], B;
5725
+ return B[P] = [], B;
5719
5726
  }, G = (l) => {
5720
- var L;
5721
- const S = !!((L = l.apiUrl) != null && L.trim()), E = S ? g[l.id] : void 0;
5722
- let N = l.props ? { ...l.props } : {};
5727
+ var P;
5728
+ const S = !!((P = l.apiUrl) != null && P.trim()), k = S ? g[l.id] : void 0;
5729
+ let M = l.props ? { ...l.props } : {};
5723
5730
  const B = U(l.manualScalarFields);
5724
5731
  if (it.includes(l.componentKey))
5725
- return { items: E, ...N, ...B };
5726
- if (N = { ...N, ...B }, S)
5727
- N = W(E, null, N);
5732
+ return { items: k, ...M, ...B };
5733
+ if (M = { ...M, ...B }, S)
5734
+ M = W(k, null, M);
5728
5735
  else if (l.dataMode === "manual") {
5729
5736
  const J = R(l.manualItems);
5730
- if (N = W(
5737
+ if (M = W(
5731
5738
  null,
5732
5739
  { arr: J, variableName: l.variableName },
5733
- N,
5740
+ M,
5734
5741
  l.variableName
5735
5742
  ), l.variableName2 && l.manualItems2) {
5736
5743
  const te = R(l.manualItems2), re = (l.variableName2 || "items2").trim() || "items2";
5737
- N[re] = te;
5744
+ M[re] = te;
5738
5745
  }
5739
5746
  }
5740
- return N;
5747
+ return M;
5741
5748
  }, w = (l) => {
5742
5749
  const S = l.props ? { ...l.props } : {};
5743
5750
  try {
5744
5751
  Object.assign(S, U(l.manualScalarFields));
5745
- } catch (N) {
5746
- console.error("❌ Error armando scalars vacíos:", l, N);
5752
+ } catch (M) {
5753
+ console.error("❌ Error armando scalars vacíos:", l, M);
5747
5754
  }
5748
- const E = (l.variableName || "items").trim() || "items";
5749
- if (typeof S[E] == "undefined" && (S[E] = []), l.variableName2) {
5750
- const N = (l.variableName2 || "items2").trim() || "items2";
5751
- typeof S[N] == "undefined" && (S[N] = []);
5755
+ const k = (l.variableName || "items").trim() || "items";
5756
+ if (typeof S[k] == "undefined" && (S[k] = []), l.variableName2) {
5757
+ const M = (l.variableName2 || "items2").trim() || "items2";
5758
+ typeof S[M] == "undefined" && (S[M] = []);
5752
5759
  }
5753
5760
  return S;
5754
5761
  }, F = (l) => {
@@ -5756,29 +5763,29 @@ const it = [
5756
5763
  return G(l);
5757
5764
  } catch (S) {
5758
5765
  console.error("🔥 ERROR EN buildCompProps:", l, S);
5759
- const E = k(l);
5760
- if (E && E !== l)
5766
+ const k = y(l);
5767
+ if (k && k !== l)
5761
5768
  try {
5762
5769
  return console.warn(
5763
5770
  `[landing] usando fallback local para sección ${l.title} (${l.componentKey})`
5764
- ), G(E);
5765
- } catch (N) {
5766
- console.error("🔥 ERROR EN fallback buildCompProps:", E, N);
5771
+ ), G(k);
5772
+ } catch (M) {
5773
+ console.error("🔥 ERROR EN fallback buildCompProps:", k, M);
5767
5774
  }
5768
5775
  return w(l);
5769
5776
  }
5770
- }, K = (l, S, E) => /* @__PURE__ */ t("div", { className: `mx-4 p-4 rounded ${{
5777
+ }, K = (l, S, k) => /* @__PURE__ */ t("div", { className: `mx-4 p-4 rounded ${{
5771
5778
  loading: "bg-blue-100 text-blue-800",
5772
5779
  error: "bg-red-100 text-red-800",
5773
5780
  component: "bg-yellow-100 text-yellow-800"
5774
- }[S]}`, children: E }, l), Y = (l) => {
5781
+ }[S]}`, children: k }, l), Y = (l) => {
5775
5782
  var He;
5776
- const S = l.componentKey, E = no[S], B = (/* @__PURE__ */ new Set([
5783
+ const S = l.componentKey, k = no[S], B = (/* @__PURE__ */ new Set([
5777
5784
  "OraculoSeccionBanners",
5778
5785
  "OraculoSeccionBonoBienvenida",
5779
5786
  "OraculoSeccionCasinoEnVivo",
5780
5787
  "OraculoSeccionClubOlimpo",
5781
- ...C ? [] : [
5788
+ ...O ? [] : [
5782
5789
  "OraculoSeccionEventoEnVivo",
5783
5790
  "OraculoSeccionEventoSemana",
5784
5791
  "OraculoSeccionEventoCombinadas",
@@ -5786,22 +5793,22 @@ const it = [
5786
5793
  "OraculoSeccionDestacados",
5787
5794
  "OraculoSeccionCasino"
5788
5795
  ]
5789
- ])).has(l.componentKey), L = C ? 120 : 24, J = (C ? 8 : 5) * 8, te = l.componentKey === "OraculoSeccionCasinoEnVivo", re = {
5796
+ ])).has(l.componentKey), P = O ? 120 : 24, J = (O ? 8 : 5) * 8, te = l.componentKey === "OraculoSeccionCasinoEnVivo", re = {
5790
5797
  width: "100%",
5791
5798
  boxSizing: "border-box",
5792
- ...B ? {} : { paddingLeft: L, paddingRight: L },
5799
+ ...B ? {} : { paddingLeft: P, paddingRight: P },
5793
5800
  ...te ? {
5794
5801
  marginTop: -J,
5795
5802
  marginBottom: -J
5796
5803
  } : {}
5797
5804
  };
5798
- if (!E)
5805
+ if (!k)
5799
5806
  return console.warn(`No hay componente registrado para "${S}"`), K(
5800
5807
  l.id,
5801
5808
  "component",
5802
5809
  `Componente "${S}" no encontrado`
5803
5810
  );
5804
- const oe = !!((He = l.apiUrl) != null && He.trim()), We = oe ? g[l.id] : void 0, Ct = oe ? !!_[l.id] : !1, Ge = oe ? y[l.id] : "";
5811
+ const oe = !!((He = l.apiUrl) != null && He.trim()), We = oe ? g[l.id] : void 0, Ct = oe ? !!v[l.id] : !1, Ge = oe ? _[l.id] : "";
5805
5812
  if (oe) {
5806
5813
  if (Ct && !We)
5807
5814
  return K(
@@ -5810,11 +5817,11 @@ const it = [
5810
5817
  `Cargando datos desde ${l.apiUrl}...`
5811
5818
  );
5812
5819
  if (Ge && !We) {
5813
- const we = k(l);
5820
+ const we = y(l);
5814
5821
  if (we && we.dataMode === "manual")
5815
5822
  try {
5816
5823
  const Re = F(we);
5817
- return /* @__PURE__ */ t("div", { style: re, className: "oraculo-section-wrapper", children: /* @__PURE__ */ t(E, { ...Re }) }, l.id);
5824
+ return /* @__PURE__ */ t("div", { style: re, className: "oraculo-section-wrapper", children: /* @__PURE__ */ t(k, { ...Re }) }, l.id);
5818
5825
  } catch (Re) {
5819
5826
  console.error(
5820
5827
  "🔥 ERROR renderizando fallback manual de sección:",
@@ -5838,12 +5845,12 @@ const it = [
5838
5845
  {
5839
5846
  style: re,
5840
5847
  className: "oraculo-section-wrapper",
5841
- children: /* @__PURE__ */ t(E, { ...Ot })
5848
+ children: /* @__PURE__ */ t(k, { ...Ot })
5842
5849
  },
5843
5850
  l.id
5844
5851
  ) });
5845
5852
  };
5846
- return p && !e ? f ? /* @__PURE__ */ t(f, {}) : /* @__PURE__ */ t("div", { children: "Cargando..." }) : !p && !e && h.length === 0 ? /* @__PURE__ */ t("div", { className: "text-xs text-gray-500", children: "Sin secciones (Firestore)" }) : /* @__PURE__ */ t(It, { children: /* @__PURE__ */ t(bt, { docId: a, moduleId: n, children: /* @__PURE__ */ t(
5853
+ return m && !e ? f ? /* @__PURE__ */ t(f, {}) : /* @__PURE__ */ t("div", { children: "Cargando..." }) : !m && !e && h.length === 0 ? /* @__PURE__ */ t("div", { className: "text-xs text-gray-500", children: "Sin secciones (Firestore)" }) : /* @__PURE__ */ t(It, { children: /* @__PURE__ */ t(bt, { docId: a, moduleId: n, children: /* @__PURE__ */ t(
5847
5854
  Et,
5848
5855
  {
5849
5856
  className: "oli-font",
@@ -5857,7 +5864,7 @@ const it = [
5857
5864
  maxWidth: "100%",
5858
5865
  overflowX: "hidden"
5859
5866
  },
5860
- children: /* @__PURE__ */ t(Oe, { direction: "column", spacing: C ? 8 : 5, useFlexGap: !0, children: z.map((l) => {
5867
+ children: /* @__PURE__ */ t(Oe, { direction: "column", spacing: O ? 8 : 5, useFlexGap: !0, children: z.map((l) => {
5861
5868
  try {
5862
5869
  return Y(l);
5863
5870
  } catch (S) {