oraculo-ui 0.2.56 → 0.2.58

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,19 +1,19 @@
1
1
  import { jsx as t, jsxs as h, Fragment as te } from "react/jsx-runtime";
2
2
  import { Link as ht, Box as le, useMediaQuery as Je, IconButton as Qe, Typography as bt, Stack as Re, Container as Bt } from "@mui/material";
3
- import ve, { useState as ee, useEffect as re, useRef as Z, forwardRef as Lt, useImperativeHandle as Rt, useCallback as Pe, createContext as Pt, useContext as Ft, useMemo as de, useLayoutEffect as qt } from "react";
3
+ import ve, { useState as ee, useEffect as re, useRef as Z, forwardRef as Lt, useImperativeHandle as Rt, useCallback as Pe, createContext as Pt, useContext as Ft, useMemo as de, useLayoutEffect as zt } from "react";
4
4
  import X from "@mui/material/Skeleton";
5
- import { Splide as zt, SplideSlide as Ut } from "@splidejs/react-splide";
6
- import z from "@mui/material/Box";
5
+ import { Splide as Ut, SplideSlide as qt } from "@splidejs/react-splide";
6
+ import U from "@mui/material/Box";
7
7
  import he from "@mui/material/Typography";
8
8
  import Q from "@mui/material/Stack";
9
9
  import { useCaptureInteraction as se } from "@olimpo/capture-client";
10
- import { ChevronLeftRounded as Ve, ChevronRightRounded as He } from "@mui/icons-material";
10
+ import { ChevronLeftRounded as De, ChevronRightRounded as Ge } from "@mui/icons-material";
11
11
  import Ne from "@mui/material/useMediaQuery";
12
12
  import _t from "@mui/icons-material/ChevronLeftRounded";
13
13
  import vt from "@mui/icons-material/ChevronRightRounded";
14
- import { useTheme as Dt, createTheme as Wt, ThemeProvider as Vt } from "@mui/material/styles";
15
- import Ht from "@mui/material/CssBaseline";
16
- import { onSnapshot as Gt, doc as Zt } from "firebase/firestore";
14
+ import { useTheme as Wt, createTheme as Vt, ThemeProvider as Dt } from "@mui/material/styles";
15
+ import Gt from "@mui/material/CssBaseline";
16
+ import { onSnapshot as Ht, doc as Zt } from "firebase/firestore";
17
17
  function ae({
18
18
  children: e,
19
19
  onClick: a,
@@ -26,23 +26,23 @@ function ae({
26
26
  size: f,
27
27
  fullWidth: g = !1,
28
28
  fullHeight: m = !1,
29
- className: u = "",
30
- ariaLabel: d,
29
+ className: d = "",
30
+ ariaLabel: u,
31
31
  leftIcon: b,
32
32
  rightIcon: x,
33
33
  iconOnly: v
34
34
  }) {
35
- const I = !!e && e !== !0, _ = (!!b ? 1 : 0) + (!!x ? 1 : 0) == 1, $ = v != null ? v : _ && !I, w = [
35
+ const S = !!e && e !== !0, _ = (!!b ? 1 : 0) + (!!x ? 1 : 0) == 1, C = v != null ? v : _ && !S, O = [
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
  g ? "orc-btn--full" : "",
40
40
  m ? "orc-btn--fullHeight" : "",
41
- $ ? "orc-btn--iconOnly" : "",
42
- u
43
- ].filter(Boolean).join(" "), S = /* @__PURE__ */ h(te, { children: [
41
+ C ? "orc-btn--iconOnly" : "",
42
+ d
43
+ ].filter(Boolean).join(" "), w = /* @__PURE__ */ h(te, { children: [
44
44
  b && /* @__PURE__ */ t("span", { className: "orc-btn__icon", children: b }),
45
- !$ && /* @__PURE__ */ t("span", { className: "orc-btn__label", children: e }),
45
+ !C && /* @__PURE__ */ t("span", { className: "orc-btn__label", children: e }),
46
46
  x && /* @__PURE__ */ t("span", { className: "orc-btn__icon", children: x })
47
47
  ] }), L = l ? !0 : void 0;
48
48
  return n ? /* @__PURE__ */ t(
@@ -51,12 +51,12 @@ function ae({
51
51
  href: n,
52
52
  target: o,
53
53
  rel: i,
54
- "aria-label": d,
54
+ "aria-label": u,
55
55
  "aria-disabled": L,
56
56
  tabIndex: L ? -1 : void 0,
57
- className: w,
57
+ className: O,
58
58
  onClick: L ? (R) => R.preventDefault() : a,
59
- children: S
59
+ children: w
60
60
  }
61
61
  ) : /* @__PURE__ */ t(
62
62
  "button",
@@ -64,9 +64,9 @@ function ae({
64
64
  type: s,
65
65
  onClick: a,
66
66
  disabled: !!L,
67
- "aria-label": d,
68
- className: w,
69
- children: S
67
+ "aria-label": u,
68
+ className: O,
69
+ children: w
70
70
  }
71
71
  );
72
72
  }
@@ -118,7 +118,7 @@ const yt = ({
118
118
  "--dot-progress-ms": `${i}ms`
119
119
  } : void 0,
120
120
  onClick: () => {
121
- m && c((u) => u + 1), n == null || n(g);
121
+ m && c((d) => d + 1), n == null || n(g);
122
122
  }
123
123
  },
124
124
  m ? `a-${g}-${l}` : `i-${g}`
@@ -239,8 +239,8 @@ function na({ live: e, time: a, extra: n }) {
239
239
  return /* @__PURE__ */ h("div", { className: "oli-font", style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
240
240
  e && /* @__PURE__ */ t(aa, { text: "En vivo" }),
241
241
  (a || n) && /* @__PURE__ */ h("div", { style: { display: "flex", alignItems: "center", gap: "4px" }, children: [
242
- a && /* @__PURE__ */ t("span", { style: { fontSize: "14px", fontWeight: 400, lineHeight: "20px", paddingTop: "4px" }, children: a }),
243
- n && /* @__PURE__ */ h("span", { style: { fontSize: "14px", fontWeight: 700, lineHeight: "20px", paddingTop: "4px", color: "#9EE86E", display: "flex", alignItems: "center", gap: "4px" }, children: [
242
+ a && /* @__PURE__ */ t("span", { style: { fontSize: "14px", fontWeight: 400, lineHeight: "20px" }, children: a }),
243
+ n && /* @__PURE__ */ h("span", { style: { fontSize: "14px", fontWeight: 700, lineHeight: "20px", color: "#9EE86E", display: "flex", alignItems: "center", gap: "4px" }, children: [
244
244
  /* @__PURE__ */ t("svg", { width: "4", height: "4", viewBox: "0 0 4 4", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ t("circle", { cx: "2", cy: "2", r: "2", fill: "#9EE86E" }) }),
245
245
  n
246
246
  ] })
@@ -483,12 +483,12 @@ function Ca({
483
483
  }) {
484
484
  const s = (n == null ? void 0 : n.base) === "D8D8D8" && (n == null ? void 0 : n.sleeve) === "D8D8D8" || (n == null ? void 0 : n.base) === "585858" && (n == null ? void 0 : n.sleeve) === "585858", l = (v) => v ? v.startsWith("#") ? v : `#${v}` : null;
485
485
  if (e === "TENNIS" && i == "" || e === "BASKETBALL" && (n == null || s)) {
486
- const I = `https://d28gilnhu2bcbp.cloudfront.net/landing/${e === "BASKETBALL" ? "basketball" : "tennis"}_default.png`;
487
- return /* @__PURE__ */ t("div", { className: `${_e.polo} ${o != null ? o : ""}`, children: /* @__PURE__ */ t("img", { src: I, className: _e.flagImage }) });
486
+ const S = `https://d28gilnhu2bcbp.cloudfront.net/landing/${e === "BASKETBALL" ? "basketball" : "tennis"}_default.png`;
487
+ return /* @__PURE__ */ t("div", { className: `${_e.polo} ${o != null ? o : ""}`, children: /* @__PURE__ */ t("img", { src: S, className: _e.flagImage }) });
488
488
  }
489
489
  if (e === "TENNIS")
490
490
  return /* @__PURE__ */ t("div", { className: `${_e.polo} ${o != null ? o : ""}`, children: /* @__PURE__ */ t("img", { src: `https://img.sportradar.com/ls/crest/big/${i}.png`, className: _e.flagImage }) });
491
- const c = l(n.base) || "#FFFFFF", f = l(n.sleeve) || c, g = l(n.stripes), m = l(n.sleevelong), u = l(n.trim) || f, d = at[e] || at.FOOTBALL, b = d[a] || d.men, x = b.pathsComponent;
491
+ const c = l(n.base) || "#FFFFFF", f = l(n.sleeve) || c, g = l(n.stripes), m = l(n.sleevelong), d = l(n.trim) || f, u = at[e] || at.FOOTBALL, b = u[a] || u.men, x = b.pathsComponent;
492
492
  return /* @__PURE__ */ h("div", { className: `${_e.polo} ${o != null ? o : ""}`, children: [
493
493
  /* @__PURE__ */ t("div", { className: _e.svgWrapper, children: /* @__PURE__ */ t("svg", { viewBox: "0 0 656 656", "aria-hidden": !0, children: /* @__PURE__ */ t(
494
494
  x,
@@ -497,7 +497,7 @@ function Ca({
497
497
  sleeve: f,
498
498
  stripes: g,
499
499
  sleevelong: m,
500
- trim: u
500
+ trim: d
501
501
  }
502
502
  ) }) }),
503
503
  /* @__PURE__ */ t(
@@ -520,7 +520,7 @@ function Ca({
520
520
  )
521
521
  ] });
522
522
  }
523
- function ze({ name: e, jersey: a, size: n = "regular", sport: o = "FOOTBALL", gender: i = "men", flag: s = "" }) {
523
+ function Ue({ name: e, jersey: a, size: n = "regular", sport: o = "FOOTBALL", gender: i = "men", flag: s = "" }) {
524
524
  return /* @__PURE__ */ h("div", { className: `oli-font ${Ce.team} ${Ce[n]}`, children: [
525
525
  a != null && a.base ? /* @__PURE__ */ t(Ca, { sport: o, gender: i, colors: a, flag: s, className: `${Ce.logo}` }) : /* @__PURE__ */ t(X, { variant: "circular", className: `${Ce.logo} ${Ce.skeleton}` }),
526
526
  /* @__PURE__ */ t("span", { className: Ce.name, children: e })
@@ -539,9 +539,9 @@ function ka(e, a, {
539
539
  const f = (g) => {
540
540
  const m = a.current;
541
541
  if (!m || !m.go) return;
542
- const { deltaX: u, deltaY: d } = g;
543
- if (Math.abs(u) <= Math.abs(d)) return;
544
- g.preventDefault(), s.current += u;
542
+ const { deltaX: d, deltaY: u } = g;
543
+ if (Math.abs(d) <= Math.abs(u)) return;
544
+ g.preventDefault(), s.current += d;
545
545
  const b = Date.now();
546
546
  if (b - l.current < i || Math.abs(s.current) < o) return;
547
547
  const x = s.current > 0 ? ">" : "<";
@@ -557,7 +557,7 @@ const Na = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", $a = "ora
557
557
  right: $a,
558
558
  left: Aa,
559
559
  svg: Ma
560
- }, Ba = zt, La = Ut, xe = Lt(
560
+ }, Ba = Ut, La = qt, xe = Lt(
561
561
  ({
562
562
  items: e = [],
563
563
  renderItem: a,
@@ -570,98 +570,98 @@ const Na = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", $a = "ora
570
570
  useIndexAsKey: f = !1,
571
571
  enableHorizontalWheel: g = !0,
572
572
  showRightGradient: m = !1
573
- }, u) => {
574
- const d = Z(null), b = Z(null), x = Z(e.length), v = Z(null), I = Z(null), M = Z("user");
575
- ka(b, d, {
573
+ }, d) => {
574
+ const u = Z(null), b = Z(null), x = Z(e.length), v = Z(null), S = Z(null), M = Z("user");
575
+ ka(b, u, {
576
576
  enabled: g
577
- }), Rt(u, () => ({
577
+ }), Rt(d, () => ({
578
578
  next: () => {
579
- var A;
580
- return (A = d.current) == null ? void 0 : A.go(">");
579
+ var $;
580
+ return ($ = u.current) == null ? void 0 : $.go(">");
581
581
  },
582
582
  prev: () => {
583
- var A;
584
- return (A = d.current) == null ? void 0 : A.go("<");
583
+ var $;
584
+ return ($ = u.current) == null ? void 0 : $.go("<");
585
585
  },
586
- go: (A) => {
586
+ go: ($) => {
587
587
  var y;
588
- return (y = d.current) == null ? void 0 : y.go(A);
588
+ return (y = u.current) == null ? void 0 : y.go($);
589
589
  }
590
590
  }));
591
- const N = (A) => {
592
- var G;
593
- const y = A.Components.Slides, O = A.Components.Controller, F = A.root.querySelector(".splide__track"), B = (G = F == null ? void 0 : F.clientWidth) != null ? G : 0, P = O.getIndex(), W = y.getLength();
594
- let V = 0, H = P;
595
- for (let D = P; D < W; D++) {
596
- const K = y.getAt(D);
591
+ const E = ($) => {
592
+ var H;
593
+ const y = $.Components.Slides, I = $.Components.Controller, F = $.root.querySelector(".splide__track"), B = (H = F == null ? void 0 : F.clientWidth) != null ? H : 0, P = I.getIndex(), W = y.getLength();
594
+ let V = 0, D = P;
595
+ for (let q = P; q < W; q++) {
596
+ const K = y.getAt(q);
597
597
  if (!K || (V += K.slide.offsetWidth, V > B)) break;
598
- H = D;
598
+ D = q;
599
599
  }
600
- return { visibleStart: P, visibleEnd: H };
601
- }, _ = (A) => {
602
- const y = A.root.querySelector(".splide__track"), O = A.root.querySelector(".splide__list");
603
- return !y || !O ? !1 : O.scrollWidth > y.clientWidth + 1;
604
- }, $ = Z(!1), w = Pe((A) => {
605
- var G, D;
606
- if ($.current) return;
607
- const O = A.Components.Slides.getLength(), F = M.current;
608
- if (M.current = "user", !_(A)) {
600
+ return { visibleStart: P, visibleEnd: D };
601
+ }, _ = ($) => {
602
+ const y = $.root.querySelector(".splide__track"), I = $.root.querySelector(".splide__list");
603
+ return !y || !I ? !1 : I.scrollWidth > y.clientWidth + 1;
604
+ }, C = Z(!1), O = Pe(($) => {
605
+ var H, q;
606
+ if (C.current) return;
607
+ const I = $.Components.Slides.getLength(), F = M.current;
608
+ if (M.current = "user", !_($)) {
609
609
  c == null || c({
610
610
  index: 0,
611
611
  isStart: !0,
612
612
  isEnd: !0,
613
- total: O,
613
+ total: I,
614
614
  visibleStart: 0,
615
- visibleEnd: O - 1,
615
+ visibleEnd: I - 1,
616
616
  source: F
617
617
  });
618
618
  return;
619
619
  }
620
- const { visibleStart: B, visibleEnd: P } = N(A), W = B === 0, V = P === O - 1;
621
- m && ((G = v.current) == null || G.style.setProperty("--gradient-opacity", W ? "0" : "1"), (D = I.current) == null || D.style.setProperty("--gradient-opacity", V ? "0" : "1"));
622
- const H = A.Components.Controller.getIndex();
620
+ const { visibleStart: B, visibleEnd: P } = E($), W = B === 0, V = P === I - 1;
621
+ m && ((H = v.current) == null || H.style.setProperty("--gradient-opacity", W ? "0" : "1"), (q = S.current) == null || q.style.setProperty("--gradient-opacity", V ? "0" : "1"));
622
+ const D = $.Components.Controller.getIndex();
623
623
  c == null || c({
624
- index: H,
624
+ index: D,
625
625
  isStart: W,
626
626
  isEnd: V,
627
- total: O,
627
+ total: I,
628
628
  visibleStart: B,
629
629
  visibleEnd: P,
630
630
  source: F
631
631
  });
632
632
  }, [c]);
633
633
  ve.useEffect(() => {
634
- var O;
635
- const A = (O = d.current) == null ? void 0 : O.splide;
636
- if (!A) return;
634
+ var I;
635
+ const $ = (I = u.current) == null ? void 0 : I.splide;
636
+ if (!$) return;
637
637
  const y = x.current !== e.length;
638
638
  x.current = e.length, y && requestAnimationFrame(() => {
639
- $.current = !0;
639
+ C.current = !0;
640
640
  try {
641
- A.refresh();
641
+ $.refresh();
642
642
  } finally {
643
- $.current = !1;
643
+ C.current = !1;
644
644
  }
645
- M.current = "resize", w(A);
645
+ M.current = "resize", O($);
646
646
  });
647
- }, [e.length, w]);
648
- const S = Pe(() => {
647
+ }, [e.length, O]);
648
+ const w = Pe(() => {
649
649
  var y;
650
- const A = (y = d.current) == null ? void 0 : y.splide;
651
- if (A) {
652
- $.current = !0;
650
+ const $ = (y = u.current) == null ? void 0 : y.splide;
651
+ if ($) {
652
+ C.current = !0;
653
653
  try {
654
- A.go(0, !1);
654
+ $.go(0, !1);
655
655
  } finally {
656
- $.current = !1;
656
+ C.current = !1;
657
657
  }
658
- M.current = "resize", w(A);
658
+ M.current = "resize", O($);
659
659
  }
660
- }, [w]), L = Pe(
661
- (A) => {
662
- M.current = "mounted", w(A);
660
+ }, [O]), L = Pe(
661
+ ($) => {
662
+ M.current = "mounted", O($);
663
663
  },
664
- [w]
664
+ [O]
665
665
  ), R = {
666
666
  type: "slide",
667
667
  trimSpace: !1,
@@ -687,14 +687,14 @@ const Na = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", $a = "ora
687
687
  /* @__PURE__ */ t(
688
688
  Ba,
689
689
  {
690
- ref: d,
690
+ ref: u,
691
691
  options: R,
692
- onMove: w,
692
+ onMove: O,
693
693
  onMounted: L,
694
- onResize: S,
695
- children: e.map((A, y) => {
696
- var O;
697
- return /* @__PURE__ */ t(La, { children: a(A, y) }, f ? y : (O = A.id) != null ? O : y);
694
+ onResize: w,
695
+ children: e.map(($, y) => {
696
+ var I;
697
+ return /* @__PURE__ */ t(La, { children: a($, y) }, f ? y : (I = $.id) != null ? I : y);
698
698
  })
699
699
  }
700
700
  ),
@@ -727,7 +727,7 @@ const Na = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", $a = "ora
727
727
  /* @__PURE__ */ t(
728
728
  "div",
729
729
  {
730
- ref: I,
730
+ ref: S,
731
731
  className: `${ke.gradientOverlay} ${ke.right}`,
732
732
  style: { "--gradient-opacity": "1" },
733
733
  children: /* @__PURE__ */ h(
@@ -764,7 +764,7 @@ const Na = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", $a = "ora
764
764
  c.stopPropagation(), a == null || a();
765
765
  }, l = o ? { width: "100%", height: "100%" } : { width: `${i.w}px`, height: `${i.h}px` };
766
766
  return /* @__PURE__ */ h(
767
- z,
767
+ U,
768
768
  {
769
769
  onClick: a,
770
770
  role: "button",
@@ -806,7 +806,7 @@ const Na = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", $a = "ora
806
806
  }
807
807
  ),
808
808
  /* @__PURE__ */ t(
809
- z,
809
+ U,
810
810
  {
811
811
  className: "oraculo-game-card-overlay",
812
812
  sx: {
@@ -821,7 +821,7 @@ const Na = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", $a = "ora
821
821
  }
822
822
  ),
823
823
  /* @__PURE__ */ t(
824
- z,
824
+ U,
825
825
  {
826
826
  className: "oraculo-game-card-btn",
827
827
  sx: {
@@ -851,19 +851,19 @@ function Ra({
851
851
  md: { w: 186, h: 264, r: 22.6, font: 64 }
852
852
  }
853
853
  }) {
854
- var u, d, b, x;
855
- const s = (v, I) => {
856
- var M, N, _, $;
854
+ var d, u, b, x;
855
+ const s = (v, S) => {
856
+ var M, E, _, C;
857
857
  return {
858
- xs: (N = (M = i.xs) == null ? void 0 : M[v]) != null ? N : I,
859
- md: ($ = (_ = i.md) == null ? void 0 : _[v]) != null ? $ : I
858
+ xs: (E = (M = i.xs) == null ? void 0 : M[v]) != null ? E : S,
859
+ md: (C = (_ = i.md) == null ? void 0 : _[v]) != null ? C : S
860
860
  };
861
861
  }, l = s("w", 186), c = s("h", 264), f = s("r", 22.6), g = s("font", 64), m = {
862
- xs: Math.round(((d = (u = i.xs) == null ? void 0 : u.font) != null ? d : 64) * 0.28),
862
+ xs: Math.round(((u = (d = i.xs) == null ? void 0 : d.font) != null ? u : 64) * 0.28),
863
863
  md: Math.round(((x = (b = i.md) == null ? void 0 : b.font) != null ? x : 64) * 0.28)
864
864
  };
865
865
  return /* @__PURE__ */ h(
866
- z,
866
+ U,
867
867
  {
868
868
  sx: {
869
869
  position: "relative",
@@ -890,7 +890,7 @@ function Ra({
890
890
  },
891
891
  children: [
892
892
  /* @__PURE__ */ t(
893
- z,
893
+ U,
894
894
  {
895
895
  sx: {
896
896
  position: "absolute",
@@ -924,7 +924,7 @@ function Ra({
924
924
  }
925
925
  ),
926
926
  /* @__PURE__ */ t(
927
- z,
927
+ U,
928
928
  {
929
929
  component: "span",
930
930
  sx: {
@@ -962,7 +962,7 @@ const nt = ({
962
962
  }) => {
963
963
  var l;
964
964
  return s ? /* @__PURE__ */ t(
965
- z,
965
+ U,
966
966
  {
967
967
  sx: {
968
968
  flex: "0 0 auto",
@@ -988,7 +988,7 @@ const nt = ({
988
988
  )
989
989
  }
990
990
  ) : /* @__PURE__ */ h(
991
- z,
991
+ U,
992
992
  {
993
993
  onClick: i,
994
994
  sx: {
@@ -1012,7 +1012,7 @@ const nt = ({
1012
1012
  },
1013
1013
  children: [
1014
1014
  /* @__PURE__ */ t(
1015
- z,
1015
+ U,
1016
1016
  {
1017
1017
  component: "img",
1018
1018
  src: e,
@@ -1028,7 +1028,7 @@ const nt = ({
1028
1028
  }
1029
1029
  ),
1030
1030
  /* @__PURE__ */ t(
1031
- z,
1031
+ U,
1032
1032
  {
1033
1033
  className: "orc-live-provider-label",
1034
1034
  sx: {
@@ -1058,7 +1058,7 @@ const nt = ({
1058
1058
  ]
1059
1059
  }
1060
1060
  );
1061
- }, Ze = 12, je = ({ r: e = 16 }) => /* @__PURE__ */ t(z, { sx: { width: "100%", height: "100%", borderRadius: e, overflow: "hidden" }, children: /* @__PURE__ */ t(
1061
+ }, Ze = 12, je = ({ r: e = 16 }) => /* @__PURE__ */ t(U, { sx: { width: "100%", height: "100%", borderRadius: e, overflow: "hidden" }, children: /* @__PURE__ */ t(
1062
1062
  X,
1063
1063
  {
1064
1064
  variant: "rectangular",
@@ -1084,7 +1084,7 @@ const nt = ({
1084
1084
  if (a === "mosaic") {
1085
1085
  const c = e[0], f = e.slice(1, 5);
1086
1086
  return /* @__PURE__ */ h(
1087
- z,
1087
+ U,
1088
1088
  {
1089
1089
  sx: {
1090
1090
  display: "grid",
@@ -1108,7 +1108,7 @@ const nt = ({
1108
1108
  },
1109
1109
  children: [
1110
1110
  /* @__PURE__ */ t(
1111
- z,
1111
+ U,
1112
1112
  {
1113
1113
  sx: {
1114
1114
  width: { xs: 184, md: 280 },
@@ -1129,9 +1129,9 @@ const nt = ({
1129
1129
  }
1130
1130
  ),
1131
1131
  (o ? Array.from({ length: 4 }) : f).map((g, m) => {
1132
- var u, d;
1132
+ var d, u;
1133
1133
  return /* @__PURE__ */ t(
1134
- z,
1134
+ U,
1135
1135
  {
1136
1136
  sx: {
1137
1137
  width: { xs: 104, md: 152 },
@@ -1142,7 +1142,7 @@ const nt = ({
1142
1142
  children: o ? /* @__PURE__ */ t(je, {}) : /* @__PURE__ */ t(
1143
1143
  Fe,
1144
1144
  {
1145
- imageUrl: `https://olimpo.bet${(d = (u = g.background) != null ? u : g.imageUrl) != null ? d : ""}`,
1145
+ imageUrl: `https://olimpo.bet${(u = (d = g.background) != null ? d : g.imageUrl) != null ? u : ""}`,
1146
1146
  size: "sm",
1147
1147
  fillParent: !0,
1148
1148
  onClick: () => n == null ? void 0 : n(g, m + 1)
@@ -1157,7 +1157,7 @@ const nt = ({
1157
1157
  );
1158
1158
  }
1159
1159
  return /* @__PURE__ */ t(
1160
- z,
1160
+ U,
1161
1161
  {
1162
1162
  sx: {
1163
1163
  display: "grid",
@@ -1173,9 +1173,9 @@ const nt = ({
1173
1173
  gridAutoFlow: "column"
1174
1174
  },
1175
1175
  children: (o ? Array.from({ length: i }) : e).map((c, f) => {
1176
- var g, m, u;
1176
+ var g, m, d;
1177
1177
  return /* @__PURE__ */ t(
1178
- z,
1178
+ U,
1179
1179
  {
1180
1180
  sx: { overflow: "hidden", borderRadius: 2 },
1181
1181
  children: o ? /* @__PURE__ */ t(je, {}) : /* @__PURE__ */ t(
@@ -1188,7 +1188,7 @@ const nt = ({
1188
1188
  }
1189
1189
  )
1190
1190
  },
1191
- o ? `sk-${f}` : (u = c.id) != null ? u : f
1191
+ o ? `sk-${f}` : (d = c.id) != null ? d : f
1192
1192
  );
1193
1193
  })
1194
1194
  }
@@ -1204,9 +1204,9 @@ const nt = ({
1204
1204
  className: c = "",
1205
1205
  variant: f = "small"
1206
1206
  }) => {
1207
- const g = a ? a.slice(0, 2) : "", m = a ? a.slice(2) : "", u = f === "large";
1207
+ const g = a ? a.slice(0, 2) : "", m = a ? a.slice(2) : "", d = f === "large";
1208
1208
  return /* @__PURE__ */ h(
1209
- z,
1209
+ U,
1210
1210
  {
1211
1211
  className: c,
1212
1212
  sx: {
@@ -1214,26 +1214,26 @@ const nt = ({
1214
1214
  width: "100%",
1215
1215
  maxWidth: {
1216
1216
  xs: 328,
1217
- md: u ? 618 : 456
1217
+ md: d ? 618 : 456
1218
1218
  },
1219
1219
  mx: "auto"
1220
1220
  },
1221
1221
  children: [
1222
1222
  s && /* @__PURE__ */ t(
1223
- z,
1223
+ U,
1224
1224
  {
1225
1225
  sx: {
1226
1226
  position: "relative",
1227
1227
  width: "100%",
1228
1228
  aspectRatio: {
1229
1229
  xs: "328 / 188",
1230
- md: u ? "618 / 346" : "456 / 272"
1230
+ md: d ? "618 / 346" : "456 / 272"
1231
1231
  },
1232
1232
  borderRadius: "14px",
1233
1233
  overflow: "hidden"
1234
1234
  },
1235
1235
  children: /* @__PURE__ */ t(
1236
- z,
1236
+ U,
1237
1237
  {
1238
1238
  component: "img",
1239
1239
  src: s,
@@ -1253,7 +1253,7 @@ const nt = ({
1253
1253
  }
1254
1254
  ),
1255
1255
  /* @__PURE__ */ t(
1256
- z,
1256
+ U,
1257
1257
  {
1258
1258
  sx: {
1259
1259
  position: "absolute",
@@ -1267,7 +1267,7 @@ const nt = ({
1267
1267
  pr: { xs: "14%", lg: "15%" }
1268
1268
  },
1269
1269
  children: /* @__PURE__ */ h(
1270
- z,
1270
+ U,
1271
1271
  {
1272
1272
  sx: {
1273
1273
  maxWidth: "60%",
@@ -1288,7 +1288,7 @@ const nt = ({
1288
1288
  }
1289
1289
  ),
1290
1290
  a && /* @__PURE__ */ h(
1291
- z,
1291
+ U,
1292
1292
  {
1293
1293
  component: "p",
1294
1294
  sx: {
@@ -1306,7 +1306,7 @@ const nt = ({
1306
1306
  },
1307
1307
  children: [
1308
1308
  /* @__PURE__ */ t(
1309
- z,
1309
+ U,
1310
1310
  {
1311
1311
  component: "span",
1312
1312
  sx: { fontSize: { xs: 35, md: 48 }, mr: 0.5 },
@@ -1314,7 +1314,7 @@ const nt = ({
1314
1314
  }
1315
1315
  ),
1316
1316
  /* @__PURE__ */ t(
1317
- z,
1317
+ U,
1318
1318
  {
1319
1319
  component: "span",
1320
1320
  sx: { fontSize: { xs: 52, md: 77 } },
@@ -1388,18 +1388,18 @@ const nt = ({
1388
1388
  /* @__PURE__ */ t("p", { className: "orc-co-caption", children: e }),
1389
1389
  /* @__PURE__ */ t(ae, { onClick: n, variant: "primary", size: "md", children: a })
1390
1390
  ] })
1391
- ] }), Fa = "oraculo__OraculoEventCombinadasCard-module__card___ulQeY", qa = "oraculo__OraculoEventCombinadasCard-module__combinadas___Gxrld", za = "oraculo__OraculoEventCombinadasCard-module__combinadasScroll___47cZl", Ua = "oraculo__OraculoEventCombinadasCard-module__apuestaItem___YnYMy", Da = "oraculo__OraculoEventCombinadasCard-module__lineContainer___G5rbU", Wa = "oraculo__OraculoEventCombinadasCard-module__circle___eehm-", Va = "oraculo__OraculoEventCombinadasCard-module__line___Eb2pK", Ha = "oraculo__OraculoEventCombinadasCard-module__apuestaText___b5s7S", Ga = "oraculo__OraculoEventCombinadasCard-module__cuotaTotal___Lohvu", fe = {
1391
+ ] }), Fa = "oraculo__OraculoEventCombinadasCard-module__card___ulQeY", za = "oraculo__OraculoEventCombinadasCard-module__combinadas___Gxrld", Ua = "oraculo__OraculoEventCombinadasCard-module__combinadasScroll___47cZl", qa = "oraculo__OraculoEventCombinadasCard-module__apuestaItem___YnYMy", Wa = "oraculo__OraculoEventCombinadasCard-module__lineContainer___G5rbU", Va = "oraculo__OraculoEventCombinadasCard-module__circle___eehm-", Da = "oraculo__OraculoEventCombinadasCard-module__line___Eb2pK", Ga = "oraculo__OraculoEventCombinadasCard-module__apuestaText___b5s7S", Ha = "oraculo__OraculoEventCombinadasCard-module__cuotaTotal___Lohvu", fe = {
1392
1392
  card: Fa,
1393
- combinadas: qa,
1394
- combinadasScroll: za,
1395
- apuestaItem: Ua,
1396
- lineContainer: Da,
1397
- circle: Wa,
1398
- line: Va,
1399
- apuestaText: Ha,
1400
- cuotaTotal: Ga
1393
+ combinadas: za,
1394
+ combinadasScroll: Ua,
1395
+ apuestaItem: qa,
1396
+ lineContainer: Wa,
1397
+ circle: Va,
1398
+ line: Da,
1399
+ apuestaText: Ga,
1400
+ cuotaTotal: Ha
1401
1401
  };
1402
- function Ue(e, a) {
1402
+ function qe(e, a) {
1403
1403
  const n = Array.isArray(a) ? a : [a];
1404
1404
  sessionStorage.setItem("landingOutcomes", JSON.stringify(n)), window.location.href = e;
1405
1405
  }
@@ -1437,63 +1437,63 @@ function Ja({ coupon: e }) {
1437
1437
  const a = se(), n = ce();
1438
1438
  function o(m) {
1439
1439
  var b, x;
1440
- const u = [], d = Array.from(
1440
+ const d = [], u = Array.from(
1441
1441
  new Map(
1442
1442
  ((b = m == null ? void 0 : m.events) != null ? b : []).filter(Boolean).map((v) => [v.id, v])
1443
1443
  ).values()
1444
1444
  );
1445
- return d.forEach((v) => {
1445
+ return u.forEach((v) => {
1446
1446
  var _;
1447
- const I = (_ = v.betoffers) != null ? _ : [], M = v.homeName, N = v.awayName;
1448
- I.forEach(($) => {
1449
- var R, A, y, O, F, B, P;
1450
- if (!((R = $ == null ? void 0 : $.outcomes) != null && R.length)) return;
1451
- const w = $.outcomes[0];
1452
- if (!w) return;
1453
- let S = "";
1454
- const L = w != null && w.line ? w.line / 1e3 : "";
1455
- ["Más de", "Mas de", "Over"].includes(w.label) ? (S = `Más de ${L}`, w.participant && (S = `${w.participant} - ${S}`)) : ["Menos de", "Menos", "Under"].includes(w.label) ? (S = `Menos de ${L}`, w.participant && (S = `${w.participant} - ${S}`)) : ["Sí", "No"].includes(w.label) ? (S = w.label, w.participant && (S = `${w.participant} - ${S}`)) : ["1X", "12", "X2"].includes(w.label) ? (w.label === "1X" && (S = `${M} o Empate`), w.label === "12" && (S = `${M} o ${N}`), w.label === "X2" && (S = `${N} o Empate`)) : (S = (y = (A = w.participant) != null ? A : w.label) != null ? y : "", L !== "" && S === w.label && (S = `${w.label} ${L}`)), u.push({
1456
- id: w.id,
1457
- value: S,
1458
- label: (F = (O = $.criterion) == null ? void 0 : O.label) != null ? F : "",
1459
- odds: (B = w.odds) != null ? B : 0,
1460
- position: (P = w.position) != null ? P : 0,
1447
+ const S = (_ = v.betoffers) != null ? _ : [], M = v.homeName, E = v.awayName;
1448
+ S.forEach((C) => {
1449
+ var R, $, y, I, F, B, P;
1450
+ if (!((R = C == null ? void 0 : C.outcomes) != null && R.length)) return;
1451
+ const O = C.outcomes[0];
1452
+ if (!O) return;
1453
+ let w = "";
1454
+ const L = O != null && O.line ? O.line / 1e3 : "";
1455
+ ["Más de", "Mas de", "Over"].includes(O.label) ? (w = `Más de ${L}`, O.participant && (w = `${O.participant} - ${w}`)) : ["Menos de", "Menos", "Under"].includes(O.label) ? (w = `Menos de ${L}`, O.participant && (w = `${O.participant} - ${w}`)) : ["Sí", "No"].includes(O.label) ? (w = O.label, O.participant && (w = `${O.participant} - ${w}`)) : ["1X", "12", "X2"].includes(O.label) ? (O.label === "1X" && (w = `${M} o Empate`), O.label === "12" && (w = `${M} o ${E}`), O.label === "X2" && (w = `${E} o Empate`)) : (w = (y = ($ = O.participant) != null ? $ : O.label) != null ? y : "", L !== "" && w === O.label && (w = `${O.label} ${L}`)), d.push({
1456
+ id: O.id,
1457
+ value: w,
1458
+ label: (F = (I = C.criterion) == null ? void 0 : I.label) != null ? F : "",
1459
+ odds: (B = O.odds) != null ? B : 0,
1460
+ position: (P = O.position) != null ? P : 0,
1461
1461
  eventId: v.id
1462
1462
  });
1463
1463
  });
1464
1464
  }), {
1465
- outcomes: u.sort((v, I) => v.position - I.position),
1465
+ outcomes: d.sort((v, S) => v.position - S.position),
1466
1466
  total: Number((x = m == null ? void 0 : m.combinadoTotal) != null ? x : 0).toLocaleString("en-US", {
1467
1467
  minimumFractionDigits: 2,
1468
1468
  maximumFractionDigits: 2
1469
1469
  }),
1470
- events: d
1470
+ events: u
1471
1471
  };
1472
1472
  }
1473
1473
  function i(m) {
1474
1474
  if (!m || !Array.isArray(m.events) || m.events.length === 0)
1475
1475
  return "/deportes#home";
1476
- const u = m.events;
1477
- if (u.length === 1)
1478
- return `/deportes#event/${u[0].id}`;
1479
- const d = u[0].groupId;
1480
- if (u.every((x) => x.groupId === d)) {
1481
- const x = u[0].path;
1476
+ const d = m.events;
1477
+ if (d.length === 1)
1478
+ return `/deportes#event/${d[0].id}`;
1479
+ const u = d[0].groupId;
1480
+ if (d.every((x) => x.groupId === u)) {
1481
+ const x = d[0].path;
1482
1482
  if (Array.isArray(x) && x.length > 0)
1483
- return `/deportes#sports-hub/${x.map((I) => I.termKey).filter(Boolean).join("/")}`;
1483
+ return `/deportes#sports-hub/${x.map((S) => S.termKey).filter(Boolean).join("/")}`;
1484
1484
  }
1485
1485
  return "/deportes#home";
1486
1486
  }
1487
- const s = (m, u) => {
1488
- const d = Array.isArray(m) ? m : [m], b = Array.from(
1487
+ const s = (m, d) => {
1488
+ const u = Array.isArray(m) ? m : [m], b = Array.from(
1489
1489
  new Set(
1490
- l.outcomes.map((I) => {
1491
- var N;
1492
- const M = f.get(Number(I.eventId));
1493
- return (N = M == null ? void 0 : M.name) != null ? N : "";
1490
+ l.outcomes.map((S) => {
1491
+ var E;
1492
+ const M = f.get(Number(S.eventId));
1493
+ return (E = M == null ? void 0 : M.name) != null ? E : "";
1494
1494
  })
1495
1495
  )
1496
- ).filter(Boolean), x = b.length > 0 ? b.join(" + ") : JSON.stringify(d), v = u ? `${x} - Cuota: ${u}` : x;
1496
+ ).filter(Boolean), x = b.length > 0 ? b.join(" + ") : JSON.stringify(u), v = d ? `${x} - Cuota: ${d}` : x;
1497
1497
  a({
1498
1498
  element: "evento_semana_outcome",
1499
1499
  label: `Landing: ${n} - OraculoEventCombinadasCard - Click: ${v}`,
@@ -1504,16 +1504,16 @@ function Ja({ coupon: e }) {
1504
1504
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
1505
1505
  },
1506
1506
  tags: { section: "OraculoEventCombinadasCard", outcomes: v }
1507
- }), Ue(i(e), m);
1507
+ }), qe(i(e), m);
1508
1508
  };
1509
1509
  if (!((g = e == null ? void 0 : e.events) != null && g.length)) return null;
1510
- const l = o(e), c = l.outcomes.reduce((m, u) => (m[u.eventId] || (m[u.eventId] = []), m[u.eventId].push(u), m), {}), f = new Map(
1510
+ const l = o(e), c = l.outcomes.reduce((m, d) => (m[d.eventId] || (m[d.eventId] = []), m[d.eventId].push(d), m), {}), f = new Map(
1511
1511
  l.events.map((m) => [m.id, m])
1512
1512
  );
1513
1513
  return /* @__PURE__ */ h("div", { className: fe.card, children: [
1514
- /* @__PURE__ */ t("div", { className: fe.combinadas, children: /* @__PURE__ */ t("div", { className: fe.combinadasScroll, children: /* @__PURE__ */ t(Q, { direction: "column", spacing: 1.5, useFlexGap: !0, children: Object.entries(c).reverse().map(([m, u]) => {
1515
- const d = f.get(Number(m));
1516
- return d ? /* @__PURE__ */ h(
1514
+ /* @__PURE__ */ t("div", { className: fe.combinadas, children: /* @__PURE__ */ t("div", { className: fe.combinadasScroll, children: /* @__PURE__ */ t(Q, { direction: "column", spacing: 1.5, useFlexGap: !0, children: Object.entries(c).reverse().map(([m, d]) => {
1515
+ const u = f.get(Number(m));
1516
+ return u ? /* @__PURE__ */ h(
1517
1517
  Q,
1518
1518
  {
1519
1519
  direction: "column",
@@ -1523,7 +1523,7 @@ function Ja({ coupon: e }) {
1523
1523
  /* @__PURE__ */ t(
1524
1524
  ye,
1525
1525
  {
1526
- title: d.name,
1526
+ title: u.name,
1527
1527
  iconUrl: "/assets/img/home/Combinadas/pelota.png",
1528
1528
  size: "xs"
1529
1529
  }
@@ -1535,10 +1535,10 @@ function Ja({ coupon: e }) {
1535
1535
  src: "/assets/img/home/Combinadas/line.png"
1536
1536
  }
1537
1537
  ),
1538
- u.map((b, x) => /* @__PURE__ */ h("div", { className: fe.apuestaItem, children: [
1538
+ d.map((b, x) => /* @__PURE__ */ h("div", { className: fe.apuestaItem, children: [
1539
1539
  /* @__PURE__ */ h("div", { className: fe.lineContainer, children: [
1540
1540
  /* @__PURE__ */ t("div", { className: fe.circle }),
1541
- x < u.length - 1 && /* @__PURE__ */ t("div", { className: fe.line })
1541
+ x < d.length - 1 && /* @__PURE__ */ t("div", { className: fe.line })
1542
1542
  ] }),
1543
1543
  /* @__PURE__ */ h("div", { className: fe.apuestaText, children: [
1544
1544
  /* @__PURE__ */ t("strong", { children: b.value }),
@@ -1603,13 +1603,13 @@ function rt({
1603
1603
  size: f,
1604
1604
  fullWidth: g = !1,
1605
1605
  fullHeight: m = !1,
1606
- className: u = "",
1607
- ariaLabel: d,
1606
+ className: d = "",
1607
+ ariaLabel: u,
1608
1608
  leftIcon: b,
1609
1609
  rightIcon: x,
1610
1610
  iconOnly: v
1611
1611
  }) {
1612
- const I = !!e && e !== !0, _ = (!!b ? 1 : 0) + (!!x ? 1 : 0) == 1, $ = v != null ? v : _ && !I, w = [
1612
+ const S = !!e && e !== !0, _ = (!!b ? 1 : 0) + (!!x ? 1 : 0) == 1, C = v != null ? v : _ && !S, O = [
1613
1613
  ge["orc-btn"],
1614
1614
  // base
1615
1615
  ge[`orc-btn--${c}`],
@@ -1618,11 +1618,11 @@ function rt({
1618
1618
  // sm / md / lg
1619
1619
  g ? ge["orc-btn--full"] : "",
1620
1620
  m ? ge["orc-btn--fullHeight"] : "",
1621
- $ ? ge["orc-btn--iconOnly"] : "",
1622
- u
1623
- ].filter(Boolean).join(" "), S = /* @__PURE__ */ h(te, { children: [
1621
+ C ? ge["orc-btn--iconOnly"] : "",
1622
+ d
1623
+ ].filter(Boolean).join(" "), w = /* @__PURE__ */ h(te, { children: [
1624
1624
  b && /* @__PURE__ */ t("span", { className: ge["orc-btn__icon"], children: b }),
1625
- !$ && /* @__PURE__ */ t("span", { className: ge["orc-btn__label"], children: e }),
1625
+ !C && /* @__PURE__ */ t("span", { className: ge["orc-btn__label"], children: e }),
1626
1626
  x && /* @__PURE__ */ t("span", { className: ge["orc-btn__icon"], children: x })
1627
1627
  ] }), L = l ? !0 : void 0;
1628
1628
  return n ? /* @__PURE__ */ t(
@@ -1631,12 +1631,12 @@ function rt({
1631
1631
  href: n,
1632
1632
  target: o,
1633
1633
  rel: i,
1634
- "aria-label": d,
1634
+ "aria-label": u,
1635
1635
  "aria-disabled": L,
1636
1636
  tabIndex: L ? -1 : void 0,
1637
- className: w,
1637
+ className: O,
1638
1638
  onClick: L ? (R) => R.preventDefault() : a,
1639
- children: S
1639
+ children: w
1640
1640
  }
1641
1641
  ) : /* @__PURE__ */ t(
1642
1642
  "button",
@@ -1644,35 +1644,29 @@ function rt({
1644
1644
  type: s,
1645
1645
  onClick: a,
1646
1646
  disabled: !!L,
1647
- "aria-label": d,
1648
- className: w,
1649
- children: S
1647
+ "aria-label": u,
1648
+ className: O,
1649
+ children: w
1650
1650
  }
1651
1651
  );
1652
1652
  }
1653
- const Xa = "oraculo__OraculoTennisScoreboard-module__tennisContainer___I3KST", Qa = "oraculo__OraculoTennisScoreboard-module__tennisTable___haqoS", Ya = "oraculo__OraculoTennisScoreboard-module__tennisTableRow___IbIkR", en = "oraculo__OraculoTennisScoreboard-module__colName___mNrno", tn = "oraculo__OraculoTennisScoreboard-module__colHeader___e3Eis", an = "oraculo__OraculoTennisScoreboard-module__serveDot___hn2Zf", nn = "oraculo__OraculoTennisScoreboard-module__activeServe___SMoyr", on = "oraculo__OraculoTennisScoreboard-module__cellPlayerNameHome___pUZjS", rn = "oraculo__OraculoTennisScoreboard-module__cellPlayerNameAway___jf9sp", ln = "oraculo__OraculoTennisScoreboard-module__playerName___OKXca", sn = "oraculo__OraculoTennisScoreboard-module__cellStat___QhEvN", cn = "oraculo__OraculoTennisScoreboard-module__active___5OX1k", dn = "oraculo__OraculoTennisScoreboard-module__border___Xzw2j", un = "oraculo__OraculoTennisScoreboard-module__hasDivider___Dv65A", mn = "oraculo__OraculoTennisScoreboard-module__colDot___euain", pn = "oraculo__OraculoTennisScoreboard-module__dotWrapper___k0gUr", fn = "oraculo__OraculoTennisScoreboard-module__cellDotHome___Y7hCS", gn = "oraculo__OraculoTennisScoreboard-module__cellDotAway___9Ugqr", hn = "oraculo__OraculoTennisScoreboard-module__cellHome___J2681", bn = "oraculo__OraculoTennisScoreboard-module__cellAway___yJ34F", U = {
1653
+ const Xa = "oraculo__OraculoTennisScoreboard-module__tennisContainer___I3KST", Qa = "oraculo__OraculoTennisScoreboard-module__tennisTable___haqoS", Ya = "oraculo__OraculoTennisScoreboard-module__tennisTableRow___IbIkR", en = "oraculo__OraculoTennisScoreboard-module__colName___mNrno", tn = "oraculo__OraculoTennisScoreboard-module__colHeader___e3Eis", an = "oraculo__OraculoTennisScoreboard-module__cellPlayerNameHome___pUZjS", nn = "oraculo__OraculoTennisScoreboard-module__cellPlayerNameAway___jf9sp", on = "oraculo__OraculoTennisScoreboard-module__playerName___OKXca", rn = "oraculo__OraculoTennisScoreboard-module__cellStat___QhEvN", ln = "oraculo__OraculoTennisScoreboard-module__active___5OX1k", sn = "oraculo__OraculoTennisScoreboard-module__border___Xzw2j", cn = "oraculo__OraculoTennisScoreboard-module__hasDivider___Dv65A", dn = "oraculo__OraculoTennisScoreboard-module__cellHome___J2681", un = "oraculo__OraculoTennisScoreboard-module__cellAway___yJ34F", G = {
1654
1654
  tennisContainer: Xa,
1655
1655
  tennisTable: Qa,
1656
1656
  tennisTableRow: Ya,
1657
1657
  colName: en,
1658
1658
  colHeader: tn,
1659
- serveDot: an,
1660
- activeServe: nn,
1661
- cellPlayerNameHome: on,
1662
- cellPlayerNameAway: rn,
1663
- playerName: ln,
1664
- cellStat: sn,
1665
- active: cn,
1666
- border: dn,
1667
- hasDivider: un,
1668
- colDot: mn,
1669
- dotWrapper: pn,
1670
- cellDotHome: fn,
1671
- cellDotAway: gn,
1672
- cellHome: hn,
1673
- cellAway: bn
1659
+ cellPlayerNameHome: an,
1660
+ cellPlayerNameAway: nn,
1661
+ playerName: on,
1662
+ cellStat: rn,
1663
+ active: ln,
1664
+ border: sn,
1665
+ hasDivider: cn,
1666
+ cellHome: dn,
1667
+ cellAway: un
1674
1668
  };
1675
- function _n({
1669
+ function mn({
1676
1670
  homeName: e = "",
1677
1671
  awayName: a = "",
1678
1672
  homeSets: n = [],
@@ -1682,53 +1676,49 @@ function _n({
1682
1676
  homeServe: l = !0
1683
1677
  }) {
1684
1678
  const c = n.reduce(
1685
- (M, N, _) => N >= 0 ? _ : M,
1679
+ (M, E, _) => E >= 0 ? _ : M,
1686
1680
  0
1687
1681
  );
1688
1682
  let f = 0, g = 0;
1689
- n.forEach((M, N) => {
1690
- var $;
1691
- const _ = ($ = o[N]) != null ? $ : -1;
1692
- N !== c && M >= 0 && _ >= 0 && (M > _ && f++, _ > M && g++);
1683
+ n.forEach((M, E) => {
1684
+ var C;
1685
+ const _ = (C = o[E]) != null ? C : -1;
1686
+ E !== c && M >= 0 && _ >= 0 && (M > _ && f++, _ > M && g++);
1693
1687
  });
1694
- const m = n[c] >= 0 ? n[c] : 0, u = o[c] >= 0 ? o[c] : 0, d = (M) => {
1688
+ const m = n[c] >= 0 ? n[c] : 0, d = o[c] >= 0 ? o[c] : 0, u = (M) => {
1695
1689
  if (typeof M == "number") return M;
1696
- const N = String(M).trim().toUpperCase();
1697
- return N === "A" || N === "ADV" ? 50 : parseInt(N, 10) || 0;
1698
- }, b = d(i), x = d(s);
1699
- let v = !1, I = !1;
1700
- return f !== g ? (v = f > g, I = g > f) : m !== u ? (v = m > u, I = u > m) : b !== x && (v = b > x, I = x > b), /* @__PURE__ */ t("div", { className: U.tennisContainer, children: /* @__PURE__ */ h("table", { className: U.tennisTable, children: [
1690
+ const E = String(M).trim().toUpperCase();
1691
+ return E === "A" || E === "ADV" ? 50 : parseInt(E, 10) || 0;
1692
+ }, b = u(i), x = u(s);
1693
+ let v = !1, S = !1;
1694
+ return f !== g ? (v = f > g, S = g > f) : m !== d ? (v = m > d, S = d > m) : b !== x && (v = b > x, S = x > b), /* @__PURE__ */ t("div", { className: G.tennisContainer, children: /* @__PURE__ */ h("table", { className: G.tennisTable, children: [
1701
1695
  /* @__PURE__ */ t("thead", { children: /* @__PURE__ */ h("tr", { style: { height: "18px" }, children: [
1702
- /* @__PURE__ */ t("th", { className: U.colDot }),
1703
- /* @__PURE__ */ t("th", { className: U.colName }),
1704
- /* @__PURE__ */ t("th", { className: U.colHeader, children: "SETS" }),
1705
- /* @__PURE__ */ t("th", { className: `${U.colHeader} ${U.border}`, style: { width: "62px" }, children: "JUEGOS" }),
1706
- /* @__PURE__ */ t("th", { className: U.colHeader, children: "PTS" })
1696
+ /* @__PURE__ */ t("th", { className: G.colName }),
1697
+ /* @__PURE__ */ t("th", { className: G.colHeader, children: "SETS" }),
1698
+ /* @__PURE__ */ t("th", { className: `${G.colHeader} ${G.border}`, style: { width: "62px" }, children: "JUEGOS" }),
1699
+ /* @__PURE__ */ t("th", { className: G.colHeader, children: "PTS" })
1707
1700
  ] }) }),
1708
1701
  /* @__PURE__ */ h("tbody", { children: [
1709
- /* @__PURE__ */ h("tr", { className: U.tennisTableRow, children: [
1710
- /* @__PURE__ */ t("td", { className: U.cellDotHome, children: /* @__PURE__ */ t("div", { className: U.dotWrapper, children: /* @__PURE__ */ t("span", { className: `${U.serveDot} ${l ? U.activeServe : ""}` }) }) }),
1711
- /* @__PURE__ */ t("td", { className: `${U.cellPlayerNameHome} ${U.hasDivider}`, children: /* @__PURE__ */ t("span", { className: U.playerName, children: e }) }),
1712
- /* @__PURE__ */ t("td", { className: `${U.cellStat} ${U.cellHome} ${U.hasDivider} ${v ? U.active : ""}`, children: f }),
1713
- /* @__PURE__ */ t("td", { className: `${U.cellStat} ${U.cellHome} ${U.hasDivider} ${U.border} ${v ? U.active : ""}`, children: m }),
1714
- /* @__PURE__ */ t("td", { className: `${U.cellStat} ${U.cellHome} ${U.hasDivider} ${v ? U.active : ""}`, children: i })
1702
+ /* @__PURE__ */ h("tr", { className: G.tennisTableRow, children: [
1703
+ /* @__PURE__ */ t("td", { className: `${G.cellPlayerNameHome} ${G.hasDivider}`, children: /* @__PURE__ */ t("span", { className: G.playerName, children: e }) }),
1704
+ /* @__PURE__ */ t("td", { className: `${G.cellStat} ${G.cellHome} ${G.hasDivider} ${v ? G.active : ""}`, children: f }),
1705
+ /* @__PURE__ */ t("td", { className: `${G.cellStat} ${G.cellHome} ${G.hasDivider} ${G.border} ${v ? G.active : ""}`, children: m }),
1706
+ /* @__PURE__ */ t("td", { className: `${G.cellStat} ${G.cellHome} ${G.hasDivider} ${v ? G.active : ""}`, children: i })
1715
1707
  ] }),
1716
- /* @__PURE__ */ h("tr", { className: U.tennisTableRow, children: [
1717
- /* @__PURE__ */ t("td", { className: U.cellDotAway, children: /* @__PURE__ */ t("div", { className: U.dotWrapper, children: /* @__PURE__ */ t("span", { className: `${U.serveDot} ${l ? "" : U.activeServe}` }) }) }),
1718
- /* @__PURE__ */ t("td", { className: U.cellPlayerNameAway, children: /* @__PURE__ */ t("span", { className: U.playerName, children: a }) }),
1719
- /* @__PURE__ */ t("td", { className: `${U.cellStat} ${U.cellAway} ${I ? U.active : ""}`, children: g }),
1720
- /* @__PURE__ */ t("td", { className: `${U.cellStat} ${U.cellAway} ${U.border} ${I ? U.active : ""}`, children: u }),
1721
- /* @__PURE__ */ t("td", { className: `${U.cellStat} ${U.cellAway} ${I ? U.active : ""}`, children: s })
1708
+ /* @__PURE__ */ h("tr", { className: G.tennisTableRow, children: [
1709
+ /* @__PURE__ */ t("td", { className: G.cellPlayerNameAway, children: /* @__PURE__ */ t("span", { className: G.playerName, children: a }) }),
1710
+ /* @__PURE__ */ t("td", { className: `${G.cellStat} ${G.cellAway} ${S ? G.active : ""}`, children: g }),
1711
+ /* @__PURE__ */ t("td", { className: `${G.cellStat} ${G.cellAway} ${G.border} ${S ? G.active : ""}`, children: d }),
1712
+ /* @__PURE__ */ t("td", { className: `${G.cellStat} ${G.cellAway} ${S ? G.active : ""}`, children: s })
1722
1713
  ] })
1723
1714
  ] })
1724
1715
  ] }) });
1725
1716
  }
1726
- const vn = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", yn = "oraculo__OraculoEventEnVivoCard-module__cardWrapperTennis___MI-jh", xn = "oraculo__OraculoEventEnVivoCard-module__customButtonLabel___QRhk7", Sn = "oraculo__OraculoEventEnVivoCard-module__customButtonLabelBold___iI-oh", wn = "oraculo__OraculoEventEnVivoCard-module__customButtonDisabled___jwioF", Ie = {
1727
- cardWrapper: vn,
1728
- cardWrapperTennis: yn,
1729
- customButtonLabel: xn,
1730
- customButtonLabelBold: Sn,
1731
- customButtonDisabled: wn
1717
+ const pn = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", fn = "oraculo__OraculoEventEnVivoCard-module__cardWrapperTennis___MI-jh", gn = "oraculo__OraculoEventEnVivoCard-module__customButtonLabel___QRhk7", hn = "oraculo__OraculoEventEnVivoCard-module__customButtonDisabled___jwioF", Ie = {
1718
+ cardWrapper: pn,
1719
+ cardWrapperTennis: fn,
1720
+ customButtonLabel: gn,
1721
+ customButtonDisabled: hn
1732
1722
  }, it = {
1733
1723
  base: "FFFFFF",
1734
1724
  sleeve: "FFFFFF",
@@ -1741,7 +1731,7 @@ const vn = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", yn = "
1741
1731
  number: "FFFFFF",
1742
1732
  real: !1,
1743
1733
  type: "short_sleeves"
1744
- }, De = (e, a, n = "player") => {
1734
+ }, We = (e, a, n = "player") => {
1745
1735
  var i, s;
1746
1736
  if (e === void 0)
1747
1737
  return null;
@@ -1749,7 +1739,7 @@ const vn = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", yn = "
1749
1739
  return a === "home" ? it : lt;
1750
1740
  const o = (s = (i = e == null ? void 0 : e.jerseys) == null ? void 0 : i[a]) == null ? void 0 : s[n];
1751
1741
  return o || (a === "home" ? it : lt);
1752
- }, On = {
1742
+ }, bn = {
1753
1743
  FIRST_HALF: "1er tiempo",
1754
1744
  SECOND_HALF: "2do tiempo",
1755
1745
  QUARTER1: "1Q",
@@ -1758,14 +1748,14 @@ const vn = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", yn = "
1758
1748
  QUARTER4: "4Q"
1759
1749
  }, st = (e) => {
1760
1750
  var a;
1761
- return e ? (a = On[e]) != null ? a : e : "";
1751
+ return e ? (a = bn[e]) != null ? a : e : "";
1762
1752
  };
1763
- function In({ event: e, liveData: a, betOffers: n, jersey: o }) {
1764
- var d, b, x, v, I, M, N, _, $, w, S, L, R, A, y, O, F, B, P, W, V, H, G, D, K, Y, r, p, T, k;
1765
- const i = ((d = e == null ? void 0 : e.sport) == null ? void 0 : d.toUpperCase()) === "TENNIS", s = ((b = e == null ? void 0 : e.sport) == null ? void 0 : b.toUpperCase()) === "BASKETBALL", l = ((x = e == null ? void 0 : e.sport) == null ? void 0 : x.toUpperCase()) === "FOOTBALL", c = n == null ? void 0 : n.find(
1766
- (E) => {
1767
- var C;
1768
- return ((C = E.betOfferType) == null ? void 0 : C.id) === 2;
1753
+ function _n({ event: e, liveData: a, betOffers: n, jersey: o }) {
1754
+ var u, b, x, v, S, M, E, _, C, O, w, L, R, $, y, I, F, B, P, W, V, D, H, q, K, Y, r, p, T, A;
1755
+ const i = ((u = e == null ? void 0 : e.sport) == null ? void 0 : u.toUpperCase()) === "TENNIS", s = ((b = e == null ? void 0 : e.sport) == null ? void 0 : b.toUpperCase()) === "BASKETBALL", l = ((x = e == null ? void 0 : e.sport) == null ? void 0 : x.toUpperCase()) === "FOOTBALL", c = n == null ? void 0 : n.find(
1756
+ (k) => {
1757
+ var N;
1758
+ return ((N = k.betOfferType) == null ? void 0 : N.id) === 2;
1769
1759
  }
1770
1760
  ), f = {
1771
1761
  englishLabel: "",
@@ -1777,63 +1767,63 @@ function In({ event: e, liveData: a, betOffers: n, jersey: o }) {
1777
1767
  status: "INACTIVE",
1778
1768
  cashOutStatus: "SUSPENDED"
1779
1769
  }, g = () => {
1780
- var q, J, ne;
1781
- return `${((ne = (J = (q = a == null ? void 0 : a.statistics) == null ? void 0 : q.sets) == null ? void 0 : J.home) != null ? ne : []).reduce((oe, j, ie) => j >= 0 ? ie : oe, 0) + 1}ºset`;
1770
+ var z, J, ne;
1771
+ return `${((ne = (J = (z = a == null ? void 0 : a.statistics) == null ? void 0 : z.sets) == null ? void 0 : J.home) != null ? ne : []).reduce((oe, j, ie) => j >= 0 ? ie : oe, 0) + 1}ºset`;
1782
1772
  }, m = [
1783
1773
  { ...f, id: -1, label: "1", odds: void 0 },
1784
1774
  { ...f, id: -2, label: "X", odds: void 0 },
1785
1775
  { ...f, id: -3, label: "2", odds: void 0 }
1786
- ], u = (v = o == null ? void 0 : o.gender) != null ? v : "men";
1776
+ ], d = (v = o == null ? void 0 : o.gender) != null ? v : "men";
1787
1777
  return /* @__PURE__ */ t("div", { className: `${Ie.cardWrapper} ${i ? Ie.cardWrapperTennis : ""}`, children: /* @__PURE__ */ h(Q, { direction: "column", spacing: 1, useFlexGap: !0, children: [
1788
1778
  /* @__PURE__ */ h(Q, { direction: "column", spacing: i ? 1 : 1.5, useFlexGap: !0, children: [
1789
1779
  /* @__PURE__ */ t(
1790
1780
  oa,
1791
1781
  {
1792
- title: (N = (M = (I = e == null ? void 0 : e.path) == null ? void 0 : I[0]) == null ? void 0 : M.name) != null ? N : "",
1782
+ title: (E = (M = (S = e == null ? void 0 : e.path) == null ? void 0 : S[0]) == null ? void 0 : M.name) != null ? E : "",
1793
1783
  subtitle: (_ = e == null ? void 0 : e.group) != null ? _ : "",
1794
1784
  live: !0,
1795
- time: i ? g() : (($ = a == null ? void 0 : a.matchClock) == null ? void 0 : $.minute) != null ? `${a.matchClock.minute}'` : "",
1796
- extra: s ? st((w = a == null ? void 0 : a.matchClock) == null ? void 0 : w.periodId) : ""
1785
+ time: i ? g() : ((C = a == null ? void 0 : a.matchClock) == null ? void 0 : C.minute) != null ? `${a.matchClock.minute}'` : "",
1786
+ extra: s ? st((O = a == null ? void 0 : a.matchClock) == null ? void 0 : O.periodId) : ""
1797
1787
  }
1798
1788
  ),
1799
1789
  /* @__PURE__ */ t("div", { children: i ? /* @__PURE__ */ t(
1800
- _n,
1790
+ mn,
1801
1791
  {
1802
1792
  homeName: e == null ? void 0 : e.homeName,
1803
1793
  awayName: e == null ? void 0 : e.awayName,
1804
- homeSets: (R = (L = (S = a == null ? void 0 : a.statistics) == null ? void 0 : S.sets) == null ? void 0 : L.home) != null ? R : [],
1805
- awaySets: (O = (y = (A = a == null ? void 0 : a.statistics) == null ? void 0 : A.sets) == null ? void 0 : y.away) != null ? O : [],
1794
+ homeSets: (R = (L = (w = a == null ? void 0 : a.statistics) == null ? void 0 : w.sets) == null ? void 0 : L.home) != null ? R : [],
1795
+ awaySets: (I = (y = ($ = a == null ? void 0 : a.statistics) == null ? void 0 : $.sets) == null ? void 0 : y.away) != null ? I : [],
1806
1796
  homePoints: (B = (F = a == null ? void 0 : a.score) == null ? void 0 : F.home) != null ? B : "0",
1807
1797
  awayPoints: (W = (P = a == null ? void 0 : a.score) == null ? void 0 : P.away) != null ? W : "0",
1808
- homeServe: (G = (H = (V = a == null ? void 0 : a.statistics) == null ? void 0 : V.sets) == null ? void 0 : H.homeServe) != null ? G : !0
1798
+ homeServe: (H = (D = (V = a == null ? void 0 : a.statistics) == null ? void 0 : V.sets) == null ? void 0 : D.homeServe) != null ? H : !0
1809
1799
  }
1810
1800
  ) : /* @__PURE__ */ h(me, { spacing: 1.5, columns: "1fr auto 1fr", children: [
1811
- /* @__PURE__ */ t(ze, { name: e == null ? void 0 : e.homeName, sport: e.sport, gender: u, jersey: De(o, "home"), flag: (D = o == null ? void 0 : o.homeFlag) != null ? D : "" }),
1801
+ /* @__PURE__ */ t(Ue, { name: e == null ? void 0 : e.homeName, sport: e.sport, gender: d, jersey: We(o, "home"), flag: (q = o == null ? void 0 : o.homeFlag) != null ? q : "" }),
1812
1802
  /* @__PURE__ */ t(St, { size: s ? "basketball" : "normal", text: ((Y = (K = a == null ? void 0 : a.score) == null ? void 0 : K.home) != null ? Y : 0) + ":" + ((p = (r = a == null ? void 0 : a.score) == null ? void 0 : r.away) != null ? p : 0), name: l ? st((T = a == null ? void 0 : a.matchClock) == null ? void 0 : T.periodId) : "" }),
1813
- /* @__PURE__ */ t(ze, { name: e == null ? void 0 : e.awayName, sport: e.sport, gender: u, jersey: De(o, "away"), flag: (k = o == null ? void 0 : o.awayFlag) != null ? k : "" })
1803
+ /* @__PURE__ */ t(Ue, { name: e == null ? void 0 : e.awayName, sport: e.sport, gender: d, jersey: We(o, "away"), flag: (A = o == null ? void 0 : o.awayFlag) != null ? A : "" })
1814
1804
  ] }) })
1815
1805
  ] }),
1816
1806
  /* @__PURE__ */ t(Q, { direction: "column", spacing: 0.5, useFlexGap: !0, children: (() => {
1817
1807
  var oe;
1818
- const E = (oe = c == null ? void 0 : c.outcomes) != null ? oe : m, C = { OT_ONE: 1, OT_CROSS: 2, OT_TWO: 3 }, q = [...E].sort((j, ie) => {
1808
+ const k = (oe = c == null ? void 0 : c.outcomes) != null ? oe : m, N = { OT_ONE: 1, OT_CROSS: 2, OT_TWO: 3 }, z = [...k].sort((j, ie) => {
1819
1809
  var Oe, $e;
1820
1810
  if (j.displayOrder !== void 0 && ie.displayOrder !== void 0)
1821
1811
  return j.displayOrder - ie.displayOrder;
1822
- const Se = j.type && (Oe = C[j.type]) != null ? Oe : 99, we = ie.type && ($e = C[ie.type]) != null ? $e : 99;
1812
+ const Se = j.type && (Oe = N[j.type]) != null ? Oe : 99, we = ie.type && ($e = N[ie.type]) != null ? $e : 99;
1823
1813
  return Se - we;
1824
1814
  }), J = (j) => {
1825
1815
  var ie, Se, we, Oe;
1826
- return i || q.length === 2 ? j.type === "OT_ONE" ? "1" : j.type === "OT_TWO" ? "2" : (Se = (ie = j.label) == null ? void 0 : ie.toUpperCase()) != null ? Se : "" : (Oe = (we = j.label) == null ? void 0 : we.toUpperCase()) != null ? Oe : "";
1816
+ return i || z.length === 2 ? j.type === "OT_ONE" ? "1" : j.type === "OT_TWO" ? "2" : (Se = (ie = j.label) == null ? void 0 : ie.toUpperCase()) != null ? Se : "" : (Oe = (we = j.label) == null ? void 0 : we.toUpperCase()) != null ? Oe : "";
1827
1817
  };
1828
1818
  return /* @__PURE__ */ t(te, { children: s || i ? /* @__PURE__ */ h(te, { children: [
1829
1819
  /* @__PURE__ */ t(me, { spacing: 1, columns: "1fr", children: /* @__PURE__ */ t(Ke, { text: "Ganador del partido" }) }),
1830
- /* @__PURE__ */ t(me, { spacing: 2, children: q.slice(0, 2).map((j, ie) => /* @__PURE__ */ t(
1820
+ /* @__PURE__ */ t(me, { spacing: 2, children: z.slice(0, 2).map((j, ie) => /* @__PURE__ */ t(
1831
1821
  rt,
1832
1822
  {
1833
1823
  variant: "primary",
1834
1824
  disabled: j.odds === void 0 || (c == null ? void 0 : c.cashOutStatus) === "SUSPENDED",
1835
1825
  onClick: () => {
1836
- Ue(
1826
+ qe(
1837
1827
  "/deportes#event/live/" + e.id,
1838
1828
  j.id
1839
1829
  );
@@ -1851,7 +1841,7 @@ function In({ event: e, liveData: a, betOffers: n, jersey: o }) {
1851
1841
  },
1852
1842
  children: [
1853
1843
  /* @__PURE__ */ t("span", { style: { fontSize: "12px" }, children: J(j) }),
1854
- /* @__PURE__ */ t("span", { className: Ie.customButtonLabelBold, children: j.odds === void 0 ? "" : (j.odds / 1e3).toFixed(2) })
1844
+ /* @__PURE__ */ t("span", { className: Ie.customButtonLabel, children: j.odds === void 0 ? "" : (j.odds / 1e3).toFixed(2) })
1855
1845
  ]
1856
1846
  }
1857
1847
  )
@@ -1859,20 +1849,20 @@ function In({ event: e, liveData: a, betOffers: n, jersey: o }) {
1859
1849
  j.id || ie
1860
1850
  )) })
1861
1851
  ] }) : /* @__PURE__ */ h(te, { children: [
1862
- /* @__PURE__ */ t(me, { spacing: 1, children: q.map((j, ie) => /* @__PURE__ */ t(
1852
+ /* @__PURE__ */ t(me, { spacing: 1, children: z.map((j, ie) => /* @__PURE__ */ t(
1863
1853
  Ke,
1864
1854
  {
1865
1855
  text: J(j)
1866
1856
  },
1867
1857
  j.id || ie
1868
1858
  )) }),
1869
- /* @__PURE__ */ t(me, { spacing: 2, children: q.map((j, ie) => /* @__PURE__ */ t(
1859
+ /* @__PURE__ */ t(me, { spacing: 2, children: z.map((j, ie) => /* @__PURE__ */ t(
1870
1860
  rt,
1871
1861
  {
1872
1862
  variant: "primary",
1873
1863
  disabled: j.odds === void 0 || (c == null ? void 0 : c.cashOutStatus) === "SUSPENDED",
1874
1864
  onClick: () => {
1875
- Ue(
1865
+ qe(
1876
1866
  "/deportes#event/live/" + e.id,
1877
1867
  j.id
1878
1868
  );
@@ -1886,87 +1876,109 @@ function In({ event: e, liveData: a, betOffers: n, jersey: o }) {
1886
1876
  })() })
1887
1877
  ] }) });
1888
1878
  }
1889
- const Tn = "oraculo__OraculoEventDate-module__date___xhIlh", En = {
1890
- date: Tn
1879
+ const vn = "oraculo__OraculoEventDate-module__date___xhIlh", yn = {
1880
+ date: vn
1891
1881
  };
1892
- function Cn({ text: e }) {
1893
- return /* @__PURE__ */ t("div", { className: `oli-font ${En.date}`, children: e });
1882
+ function xn({ text: e }) {
1883
+ return /* @__PURE__ */ t("div", { className: `oli-font ${yn.date}`, children: e });
1894
1884
  }
1895
- const kn = "oraculo__OraculoEventSemanaCard-module__cardContainer___4JuDe", Nn = "oraculo__OraculoEventSemanaCard-module__cardBackground___vfalD", $n = "oraculo__OraculoEventSemanaCard-module__jugadas___W8b7H", An = "oraculo__OraculoEventSemanaCard-module__equipos___G5hLn", Te = {
1896
- cardContainer: kn,
1897
- cardBackground: Nn,
1898
- jugadas: $n,
1899
- equipos: An
1885
+ const Sn = "oraculo__OraculoEventSemanaCard-module__cardContainer___4JuDe", wn = "oraculo__OraculoEventSemanaCard-module__cardBackground___vfalD", On = "oraculo__OraculoEventSemanaCard-module__jugadas___W8b7H", In = "oraculo__OraculoEventSemanaCard-module__equipos___G5hLn", Te = {
1886
+ cardContainer: Sn,
1887
+ cardBackground: wn,
1888
+ jugadas: On,
1889
+ equipos: In
1900
1890
  };
1901
- function Mn({ event: e, jersey: a }) {
1891
+ function Tn({ event: e, jersey: a }) {
1902
1892
  var c, f, g, m;
1903
1893
  const n = se(), o = ce();
1904
- function i(u) {
1905
- const d = new Date(u), b = d.toLocaleDateString("es-ES", { weekday: "short" }).toUpperCase(), x = d.getDate().toString().padStart(2, "0"), v = (d.getMonth() + 1).toString().padStart(2, "0");
1906
- let I = d.toLocaleTimeString("es-PE", { hour: "numeric", minute: "2-digit", hour12: !0 }).toUpperCase();
1907
- return I = I.replace(/\./g, "").replace(/A\s*M/i, "AM").replace(/P\s*M/i, "PM"), `${b} ${x}/${v} | ${I}`;
1894
+ function i(d) {
1895
+ const u = new Date(d), b = u.toLocaleDateString("es-ES", { weekday: "short" }).toUpperCase(), x = u.getDate().toString().padStart(2, "0"), v = (u.getMonth() + 1).toString().padStart(2, "0");
1896
+ let S = u.toLocaleTimeString("es-PE", { hour: "numeric", minute: "2-digit", hour12: !0 }).toUpperCase();
1897
+ return S = S.replace(/\./g, "").replace(/A\s*M/i, "AM").replace(/P\s*M/i, "PM"), `${b} ${x}/${v} | ${S}`;
1908
1898
  }
1909
- const s = (u, d) => {
1910
- const b = `${e.homeName} vs ${e.awayName}`, x = d ? (d / 1e3).toFixed(2) : "", v = x ? `${b} - Cuota: ${x}` : b;
1911
- n({
1899
+ const s = (d) => {
1900
+ var E, _, C, O, w, L, R, $;
1901
+ const u = `/deportes#event/${e.id}`, b = `${e.homeName} vs ${e.awayName}`, x = d.odds ? (d.odds / 1e3).toFixed(2) : "", v = x ? `${b} - Cuota: ${x}` : b, S = (E = e == null ? void 0 : e.outcome) == null ? void 0 : E[0], M = new CustomEvent("ORACULO_WEEKLY_OUTCOME_SELECTED", {
1902
+ cancelable: !0,
1903
+ detail: {
1904
+ eventId: e.id,
1905
+ eventName: e.name,
1906
+ homeName: e.homeName,
1907
+ awayName: e.awayName,
1908
+ start: e.start,
1909
+ sport: e.sport,
1910
+ league: e.group,
1911
+ leagueId: e.groupId,
1912
+ country: (C = (_ = e.path) == null ? void 0 : _[1]) == null ? void 0 : C.name,
1913
+ outcomeId: d.id,
1914
+ outcomeLabel: d.label,
1915
+ outcomeType: d.type,
1916
+ odds: d.odds,
1917
+ betOfferId: (O = d.betOfferId) != null ? O : S == null ? void 0 : S.id,
1918
+ criterionId: (w = S == null ? void 0 : S.criterion) == null ? void 0 : w.id,
1919
+ market: ($ = (L = S == null ? void 0 : S.criterion) == null ? void 0 : L.label) != null ? $ : (R = S == null ? void 0 : S.betOfferType) == null ? void 0 : R.name,
1920
+ destination: u
1921
+ }
1922
+ });
1923
+ document.dispatchEvent(M) && (n({
1912
1924
  element: "evento_semana_outcome",
1913
1925
  label: `Landing: ${o} - OraculoEventSemanaCard - Click: ${v}`,
1914
- target: "/deportes#in-play",
1926
+ target: u,
1915
1927
  event_type: "click",
1916
1928
  module_id: 301,
1917
1929
  metadata: {
1918
1930
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
1919
1931
  },
1920
1932
  tags: { section: "OraculoEventSemanaCard", outcomes: v }
1921
- }), Ue("/deportes#event/" + e.id, u);
1933
+ }), qe(u, d.id));
1922
1934
  }, l = (c = a == null ? void 0 : a.gender) != null ? c : "men";
1923
1935
  return /* @__PURE__ */ h("div", { className: Te.cardContainer, children: [
1924
1936
  /* @__PURE__ */ t(xt, { title: (f = e == null ? void 0 : e.group) != null ? f : "" }),
1925
1937
  /* @__PURE__ */ t("div", { className: Te.cardBackground, children: /* @__PURE__ */ h(Q, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
1926
1938
  /* @__PURE__ */ h(Q, { direction: "column", spacing: 1, useFlexGap: !0, children: [
1927
1939
  /* @__PURE__ */ h("div", { className: Te.equipos, children: [
1928
- /* @__PURE__ */ t(ze, { name: e.homeName, sport: e.sport, gender: l, size: "compact", jersey: De(a, "home"), flag: (g = a == null ? void 0 : a.homeFlag) != null ? g : "" }),
1940
+ /* @__PURE__ */ t(Ue, { name: e.homeName, sport: e.sport, gender: l, size: "compact", jersey: We(a, "home"), flag: (g = a == null ? void 0 : a.homeFlag) != null ? g : "" }),
1929
1941
  /* @__PURE__ */ t(St, { text: "vs.", name: "", size: "small" }),
1930
- /* @__PURE__ */ t(ze, { name: e.awayName, sport: e.sport, gender: l, size: "compact", jersey: De(a, "away"), flag: (m = a == null ? void 0 : a.awayFlag) != null ? m : "" })
1942
+ /* @__PURE__ */ t(Ue, { name: e.awayName, sport: e.sport, gender: l, size: "compact", jersey: We(a, "away"), flag: (m = a == null ? void 0 : a.awayFlag) != null ? m : "" })
1931
1943
  ] }),
1932
- /* @__PURE__ */ t(Cn, { text: i(e.start) })
1944
+ /* @__PURE__ */ t(xn, { text: i(e.start) })
1933
1945
  ] }),
1934
1946
  /* @__PURE__ */ t(Q, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: (() => {
1935
- var I, M, N;
1936
- const u = (N = (M = (I = e == null ? void 0 : e.outcome) == null ? void 0 : I[0]) == null ? void 0 : M.outcomes) != null ? N : [], d = (e == null ? void 0 : e.sport) === "TENNIS", b = { OT_ONE: 1, OT_CROSS: 2, OT_TWO: 3 }, x = [...u].sort((_, $) => {
1947
+ var S, M, E;
1948
+ const d = (E = (M = (S = e == null ? void 0 : e.outcome) == null ? void 0 : S[0]) == null ? void 0 : M.outcomes) != null ? E : [], u = (e == null ? void 0 : e.sport) === "TENNIS", b = { OT_ONE: 1, OT_CROSS: 2, OT_TWO: 3 }, x = [...d].sort((_, C) => {
1937
1949
  var L, R;
1938
- if (_.displayOrder !== void 0 && $.displayOrder !== void 0)
1939
- return _.displayOrder - $.displayOrder;
1940
- const w = _.type && (L = b[_.type]) != null ? L : 99, S = $.type && (R = b[$.type]) != null ? R : 99;
1941
- return w - S;
1950
+ if (_.displayOrder !== void 0 && C.displayOrder !== void 0)
1951
+ return _.displayOrder - C.displayOrder;
1952
+ const O = _.type && (L = b[_.type]) != null ? L : 99, w = C.type && (R = b[C.type]) != null ? R : 99;
1953
+ return O - w;
1942
1954
  }), v = (_) => {
1943
- var $, w, S, L;
1944
- return d || x.length === 2 ? _.type === "OT_ONE" ? "1" : _.type === "OT_TWO" ? "2" : (w = ($ = _.label) == null ? void 0 : $.toUpperCase()) != null ? w : "" : (L = (S = _.label) == null ? void 0 : S.toUpperCase()) != null ? L : "";
1955
+ var C, O, w, L;
1956
+ return u || x.length === 2 ? _.type === "OT_ONE" ? "1" : _.type === "OT_TWO" ? "2" : (O = (C = _.label) == null ? void 0 : C.toUpperCase()) != null ? O : "" : (L = (w = _.label) == null ? void 0 : w.toUpperCase()) != null ? L : "";
1945
1957
  };
1946
1958
  return /* @__PURE__ */ h(te, { children: [
1947
- /* @__PURE__ */ t(me, { spacing: 1, children: x.map((_, $) => /* @__PURE__ */ t(
1959
+ /* @__PURE__ */ t(me, { spacing: 1, children: x.map((_, C) => /* @__PURE__ */ t(
1948
1960
  Ke,
1949
1961
  {
1950
1962
  text: v(_)
1951
1963
  },
1952
- _.id || $
1964
+ _.id || C
1953
1965
  )) }),
1954
- /* @__PURE__ */ t("div", { className: Te.jugadas, children: /* @__PURE__ */ t(me, { spacing: 1, children: x.map((_, $) => /* @__PURE__ */ t(
1966
+ /* @__PURE__ */ t("div", { className: Te.jugadas, children: /* @__PURE__ */ t(me, { spacing: 1, children: x.map((_, C) => /* @__PURE__ */ t(
1955
1967
  ae,
1956
1968
  {
1957
1969
  variant: "primary",
1958
1970
  fullHeight: !0,
1959
- onClick: () => s(_.id, _.odds),
1971
+ onClick: () => s(_),
1960
1972
  children: (_.odds / 1e3).toFixed(2)
1961
1973
  },
1962
- _.id || $
1974
+ _.id || C
1963
1975
  )) }) })
1964
1976
  ] });
1965
1977
  })() })
1966
1978
  ] }) })
1967
1979
  ] });
1968
1980
  }
1969
- const Bn = (e = 3) => Array.from({ length: e }, (a, n) => ({
1981
+ const En = (e = 3) => Array.from({ length: e }, (a, n) => ({
1970
1982
  body: "",
1971
1983
  image: "",
1972
1984
  title: `sk-${n}`,
@@ -1978,7 +1990,7 @@ const Bn = (e = 3) => Array.from({ length: e }, (a, n) => ({
1978
1990
  tags: "",
1979
1991
  summary_image: ""
1980
1992
  }));
1981
- function Ln({
1993
+ function Cn({
1982
1994
  items: e,
1983
1995
  title: a = "Destacados",
1984
1996
  iconUrl: n = "https://d28gilnhu2bcbp.cloudfront.net/landing/1770307276612-lonuevo.webp",
@@ -1987,61 +1999,61 @@ function Ln({
1987
1999
  className: s = "",
1988
2000
  paddingMobile: l = "24px"
1989
2001
  }) {
1990
- var w;
1991
- const c = Z(null), [f, g] = ee({ isStart: !0, isEnd: !1 }), m = se(), u = ce(), d = pe(), b = !e || e.length === 0, x = () => {
1992
- var S;
2002
+ var O;
2003
+ const c = Z(null), [f, g] = ee({ isStart: !0, isEnd: !1 }), m = se(), d = ce(), u = pe(), b = !e || e.length === 0, x = () => {
2004
+ var w;
1993
2005
  m({
1994
2006
  element: "destacados_carousel_prev",
1995
- label: `${u} - OraculoSeccionDestacados - Anterior`,
2007
+ label: `${d} - OraculoSeccionDestacados - Anterior`,
1996
2008
  target: "carousel",
1997
2009
  event_type: "click",
1998
- module_id: d,
2010
+ module_id: u,
1999
2011
  metadata: {
2000
2012
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
2001
2013
  },
2002
2014
  tags: { section: "OraculoSeccionDestacados" }
2003
- }), (S = c.current) == null || S.prev();
2015
+ }), (w = c.current) == null || w.prev();
2004
2016
  }, v = () => {
2005
- var S;
2017
+ var w;
2006
2018
  m({
2007
2019
  element: "destacados_carousel_next",
2008
- label: `${u} - OraculoSeccionDestacados - Siguiente`,
2020
+ label: `${d} - OraculoSeccionDestacados - Siguiente`,
2009
2021
  target: "carousel",
2010
2022
  event_type: "click",
2011
- module_id: d,
2023
+ module_id: u,
2012
2024
  metadata: {
2013
2025
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
2014
2026
  },
2015
2027
  tags: { section: "OraculoSeccionDestacados" }
2016
- }), (S = c.current) == null || S.next();
2017
- }, I = () => {
2028
+ }), (w = c.current) == null || w.next();
2029
+ }, S = () => {
2018
2030
  m({
2019
2031
  element: "destacados_view_more",
2020
- label: `${u} - OraculoSeccionDestacados - Ver más`,
2032
+ label: `${d} - OraculoSeccionDestacados - Ver más`,
2021
2033
  target: "https://www.olimpo.bet/promociones",
2022
2034
  event_type: "click",
2023
- module_id: d,
2035
+ module_id: u,
2024
2036
  metadata: {
2025
2037
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
2026
2038
  },
2027
2039
  tags: { section: "OraculoSeccionDestacados" }
2028
2040
  }), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/promociones");
2029
- }, M = s || void 0, N = Ne("(max-width:950px)"), _ = (w = e == null ? void 0 : e.length) != null ? w : 0;
2041
+ }, M = s || void 0, E = Ne("(max-width:950px)"), _ = (O = e == null ? void 0 : e.length) != null ? O : 0;
2030
2042
  re(() => {
2031
2043
  if (_ === 0) {
2032
2044
  g({ isStart: !0, isEnd: !0 });
2033
2045
  return;
2034
2046
  }
2035
2047
  g({ isStart: !0, isEnd: !1 });
2036
- }, [_, N, l]);
2037
- const $ = (S) => {
2038
- const L = S.promotion, R = L ? `https://www.olimpo.bet/promociones/${encodeURIComponent(L)}` : "";
2048
+ }, [_, E, l]);
2049
+ const C = (w) => {
2050
+ const L = w.promotion, R = L ? `https://www.olimpo.bet/promociones/${encodeURIComponent(L)}` : "";
2039
2051
  if (m({
2040
2052
  element: "destacados_card",
2041
- label: `${u} - OraculoSeccionDestacados - Click: ${L || S.title}`,
2053
+ label: `${d} - OraculoSeccionDestacados - Click: ${L || w.title}`,
2042
2054
  target: R || "custom_item_action",
2043
2055
  event_type: "click",
2044
- module_id: d,
2056
+ module_id: u,
2045
2057
  metadata: {
2046
2058
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
2047
2059
  },
@@ -2050,7 +2062,7 @@ function Ln({
2050
2062
  promotion: String(L || "")
2051
2063
  }
2052
2064
  }), i) {
2053
- i(S);
2065
+ i(w);
2054
2066
  return;
2055
2067
  }
2056
2068
  R && typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(R);
@@ -2066,8 +2078,8 @@ function Ln({
2066
2078
  columnGap: 12,
2067
2079
  rowGap: 8,
2068
2080
  marginBottom: 16,
2069
- paddingLeft: N ? l : 0,
2070
- paddingRight: N ? l : 0
2081
+ paddingLeft: E ? l : 0,
2082
+ paddingRight: E ? l : 0
2071
2083
  },
2072
2084
  children: [
2073
2085
  /* @__PURE__ */ t(ye, { title: a, iconUrl: n, size: "md" }),
@@ -2078,7 +2090,7 @@ function Ln({
2078
2090
  ariaLabel: "Anterior",
2079
2091
  variant: "secondary",
2080
2092
  iconOnly: !0,
2081
- leftIcon: /* @__PURE__ */ t(Ve, {}),
2093
+ leftIcon: /* @__PURE__ */ t(De, {}),
2082
2094
  onClick: x,
2083
2095
  disabled: f.isStart || b
2084
2096
  }
@@ -2089,13 +2101,13 @@ function Ln({
2089
2101
  ariaLabel: "Siguiente",
2090
2102
  variant: "secondary",
2091
2103
  iconOnly: !0,
2092
- rightIcon: /* @__PURE__ */ t(He, {}),
2104
+ rightIcon: /* @__PURE__ */ t(Ge, {}),
2093
2105
  onClick: v,
2094
2106
  disabled: f.isEnd || b
2095
2107
  }
2096
2108
  )
2097
2109
  ] }),
2098
- /* @__PURE__ */ t(ae, { variant: "secondary", onClick: I, children: "Ver más" })
2110
+ /* @__PURE__ */ t(ae, { variant: "secondary", onClick: S, children: "Ver más" })
2099
2111
  ]
2100
2112
  }
2101
2113
  ),
@@ -2103,17 +2115,17 @@ function Ln({
2103
2115
  xe,
2104
2116
  {
2105
2117
  ref: c,
2106
- items: b ? Bn() : e,
2118
+ items: b ? En() : e,
2107
2119
  perPage: void 0,
2108
2120
  gap: "16px",
2109
2121
  enableHorizontalWheel: !0,
2110
- showRightGradient: !N,
2122
+ showRightGradient: !E,
2111
2123
  options: { autoWidth: !0, trimSpace: "move" },
2112
2124
  breakpoints: {
2113
2125
  768: { perPage: 2, focus: "start", padding: { left: l, right: l } },
2114
2126
  1024: { perPage: 2.5, focus: "start", padding: { left: "24px", right: "24px" } }
2115
2127
  },
2116
- renderItem: (S) => {
2128
+ renderItem: (w) => {
2117
2129
  const L = typeof window != "undefined" && window.innerWidth < 768 ? "80px" : "137px";
2118
2130
  return b ? /* @__PURE__ */ t("div", { style: { width: "100%" }, children: /* @__PURE__ */ t(
2119
2131
  X,
@@ -2129,19 +2141,19 @@ function Ln({
2129
2141
  }
2130
2142
  }
2131
2143
  }
2132
- ) }, S.title) : /* @__PURE__ */ t(
2144
+ ) }, w.title) : /* @__PURE__ */ t(
2133
2145
  "div",
2134
2146
  {
2135
2147
  style: {
2136
2148
  textAlign: "center",
2137
2149
  cursor: "pointer"
2138
2150
  },
2139
- onClick: () => $(S),
2151
+ onClick: () => C(w),
2140
2152
  children: /* @__PURE__ */ t(
2141
2153
  "img",
2142
2154
  {
2143
- src: `https://olimpo.bet${S.image !== "" ? S.image : S.summary_image}`,
2144
- alt: S.title,
2155
+ src: `https://olimpo.bet${w.image !== "" ? w.image : w.summary_image}`,
2156
+ alt: w.title,
2145
2157
  style: {
2146
2158
  width: "100%",
2147
2159
  height: L,
@@ -2152,19 +2164,19 @@ function Ln({
2152
2164
  }
2153
2165
  )
2154
2166
  },
2155
- `${S.title}-${S.image}`
2167
+ `${w.title}-${w.image}`
2156
2168
  );
2157
2169
  },
2158
- onMove: ({ isStart: S, isEnd: L, source: R }) => {
2159
- g({ isStart: S, isEnd: L }), R === "user" && m({
2170
+ onMove: ({ isStart: w, isEnd: L, source: R }) => {
2171
+ g({ isStart: w, isEnd: L }), R === "user" && m({
2160
2172
  element: "destacados_carousel_slide",
2161
- label: `${u} - OraculoSeccionDestacados - Slide Carousel`,
2173
+ label: `${d} - OraculoSeccionDestacados - Slide Carousel`,
2162
2174
  target: "carousel",
2163
2175
  event_type: "slide",
2164
- module_id: d,
2176
+ module_id: u,
2165
2177
  metadata: {
2166
2178
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
2167
- isStart: S,
2179
+ isStart: w,
2168
2180
  isEnd: L
2169
2181
  },
2170
2182
  tags: { section: "OraculoSeccionDestacados" }
@@ -2174,61 +2186,61 @@ function Ln({
2174
2186
  )
2175
2187
  ] });
2176
2188
  }
2177
- const qe = "__ORACULO_EXTRAS__";
2189
+ const ze = "__ORACULO_EXTRAS__";
2178
2190
  function Ct() {
2179
2191
  const e = globalThis;
2180
- return e[qe] || (e[qe] = {}), e[qe];
2192
+ return e[ze] || (e[ze] = {}), e[ze];
2181
2193
  }
2182
- function Rn(e) {
2194
+ function kn(e) {
2183
2195
  Ct().extras = e;
2184
2196
  }
2185
2197
  function ue(e) {
2186
2198
  var a;
2187
2199
  return (a = Ct().extras) == null ? void 0 : a[e];
2188
2200
  }
2189
- function Pn() {
2190
- delete globalThis[qe];
2201
+ function Nn() {
2202
+ delete globalThis[ze];
2191
2203
  }
2192
- function Fn({
2204
+ function $n({
2193
2205
  items: e,
2194
2206
  title: a = "Top Juegos",
2195
2207
  iconUrl: n,
2196
2208
  onCardClick: o
2197
2209
  }) {
2198
2210
  const i = se(), s = ce(), l = pe(), c = de(
2199
- () => (e != null ? e : []).map((u, d) => {
2211
+ () => (e != null ? e : []).map((d, u) => {
2200
2212
  var b;
2201
2213
  return {
2202
- ...u,
2203
- orden: (b = u.orden) != null ? b : d + 1,
2204
- _originalIndex: d
2214
+ ...d,
2215
+ orden: (b = d.orden) != null ? b : u + 1,
2216
+ _originalIndex: u
2205
2217
  };
2206
- }).sort((u, d) => u.orden != null && d.orden != null ? u.orden - d.orden : u._originalIndex - d._originalIndex),
2218
+ }).sort((d, u) => d.orden != null && u.orden != null ? d.orden - u.orden : d._originalIndex - u._originalIndex),
2207
2219
  [e]
2208
- ), f = !e || e.length === 0, g = f ? Array.from({ length: 6 }) : c.slice(0, 6), m = (u) => {
2220
+ ), f = !e || e.length === 0, g = f ? Array.from({ length: 6 }) : c.slice(0, 6), m = (d) => {
2209
2221
  i({
2210
2222
  element: "top_juegos_card",
2211
- label: `${s} - OraculoSeccionTopJuegos - Open game: ${String(u.machine || "unknown")}`,
2212
- target: String(u.machine || "unknown"),
2223
+ label: `${s} - OraculoSeccionTopJuegos - Open game: ${String(d.machine || "unknown")}`,
2224
+ target: String(d.machine || "unknown"),
2213
2225
  event_type: "click",
2214
2226
  module_id: l,
2215
2227
  metadata: {
2216
2228
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
2217
2229
  },
2218
2230
  tags: {
2219
- game_name: String(u.machine || "unknown"),
2231
+ game_name: String(d.machine || "unknown"),
2220
2232
  section: "OraculoSeccionTopJuegos"
2221
2233
  }
2222
2234
  });
2223
- const d = ue("showIframe"), b = ue("loadMachine");
2224
- d == null || d(), requestAnimationFrame(() => {
2225
- b == null || b(u, !1, "CASINO");
2235
+ const u = ue("showIframe"), b = ue("loadMachine");
2236
+ u == null || u(), requestAnimationFrame(() => {
2237
+ b == null || b(d, !1, "CASINO");
2226
2238
  });
2227
2239
  };
2228
2240
  return /* @__PURE__ */ t("section", { style: { width: "100%" }, children: /* @__PURE__ */ h(Q, { direction: "column", spacing: 2, useFlexGap: !0, children: [
2229
2241
  /* @__PURE__ */ t(ye, { title: a, iconUrl: n, size: "md" }),
2230
2242
  /* @__PURE__ */ t(
2231
- z,
2243
+ U,
2232
2244
  {
2233
2245
  sx: {
2234
2246
  display: "grid",
@@ -2240,27 +2252,27 @@ function Fn({
2240
2252
  justifyItems: "center",
2241
2253
  width: "100%"
2242
2254
  },
2243
- children: g.map((u, d) => {
2255
+ children: g.map((d, u) => {
2244
2256
  var b, x;
2245
2257
  return /* @__PURE__ */ t(
2246
2258
  Ra,
2247
2259
  {
2248
- imageUrl: f ? "" : u.background ? `https://olimpo.bet${u.background}` : `https://olimpo.bet${(b = u.logo) != null ? b : ""}`,
2249
- orden: f ? d + 1 : u.orden,
2260
+ imageUrl: f ? "" : d.background ? `https://olimpo.bet${d.background}` : `https://olimpo.bet${(b = d.logo) != null ? b : ""}`,
2261
+ orden: f ? u + 1 : d.orden,
2250
2262
  loading: f,
2251
2263
  onClick: f ? void 0 : () => {
2252
- o == null || o(u), m(u);
2264
+ o == null || o(d), m(d);
2253
2265
  }
2254
2266
  },
2255
- f ? `sk-${d}` : (x = u.machine) != null ? x : `${d}`
2267
+ f ? `sk-${u}` : (x = d.machine) != null ? x : `${u}`
2256
2268
  );
2257
2269
  })
2258
2270
  }
2259
2271
  )
2260
2272
  ] }) });
2261
2273
  }
2262
- const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking", zn = 8, Un = 80, Dn = (e, a) => {
2263
- var n, o, i, s, l, c, f, g, m, u, d, b, x, v;
2274
+ const An = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking", Mn = 8, Bn = 80, Ln = (e, a) => {
2275
+ var n, o, i, s, l, c, f, g, m, d, u, b, x, v;
2264
2276
  return {
2265
2277
  orden: Number(a),
2266
2278
  machine: String(
@@ -2274,13 +2286,13 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
2274
2286
  external_id: (f = e.external_id) != null ? f : "",
2275
2287
  type: (g = e.game_type) != null ? g : "",
2276
2288
  tags: (m = e.tags) != null ? m : "",
2277
- lobby_tag: (u = e.lobby_tag) != null ? u : null,
2278
- background: (d = e.background) != null ? d : "",
2289
+ lobby_tag: (d = e.lobby_tag) != null ? d : null,
2290
+ background: (u = e.background) != null ? u : "",
2279
2291
  rtp: (b = e.rtp) != null ? b : null,
2280
2292
  demo_allowed: (x = e.demo_allowed) != null ? x : !1,
2281
2293
  gaming_session_required: (v = e.gaming_session_required) != null ? v : !1
2282
2294
  };
2283
- }, Wn = (e) => {
2295
+ }, Rn = (e) => {
2284
2296
  var n, o, i, s;
2285
2297
  if (!e) return [];
2286
2298
  const a = Array.isArray(e) ? e : (s = (i = (o = (n = e.recommendations) != null ? n : e.ranking) != null ? o : e.rankedItems) != null ? i : e.items) != null ? s : e.machines;
@@ -2290,44 +2302,44 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
2290
2302
  return String(typeof l == "object" ? (f = (c = l.itemId) != null ? c : l.id) != null ? f : l.machine : l);
2291
2303
  }
2292
2304
  ) : [];
2293
- }, Vn = () => {
2305
+ }, Pn = () => {
2294
2306
  var a, n, o;
2295
2307
  const e = ue("user");
2296
2308
  return (o = (n = (a = e == null ? void 0 : e.userId) != null ? a : e == null ? void 0 : e.user) != null ? n : e == null ? void 0 : e.id) != null ? o : null;
2297
- }, Hn = async (e) => {
2298
- const a = Vn(), n = new URLSearchParams({
2309
+ }, Fn = async (e) => {
2310
+ const a = Pn(), n = new URLSearchParams({
2299
2311
  userId: String(a),
2300
2312
  productType: e
2301
- }), o = `${qn}?${n.toString()}`, i = await fetch(o);
2313
+ }), o = `${An}?${n.toString()}`, i = await fetch(o);
2302
2314
  if (!i.ok)
2303
2315
  throw new Error(
2304
2316
  `No se pudo obtener el ranking. HTTP ${i.status} ${i.statusText}`
2305
2317
  );
2306
2318
  const s = await i.json();
2307
- return Wn(s).slice(0, 49);
2308
- }, Gn = async (e, a, n) => {
2319
+ return Rn(s).slice(0, 49);
2320
+ }, zn = async (e, a, n) => {
2309
2321
  const o = [];
2310
2322
  let i = 0, s = null;
2311
2323
  const l = () => {
2312
2324
  s || n() || (s = setTimeout(() => {
2313
2325
  s = null, n() || a(o.filter(Boolean));
2314
- }, Un));
2326
+ }, Bn));
2315
2327
  }, c = async () => {
2316
2328
  for (; i < e.length; ) {
2317
2329
  if (n()) return;
2318
2330
  const g = i++, m = e[g];
2319
2331
  try {
2320
- const u = await fetch(`https://api.mktolimpo.com/api/machine/${m}`);
2321
- if (!u.ok)
2332
+ const d = await fetch(`https://api.mktolimpo.com/api/machine/${m}`);
2333
+ if (!d.ok)
2322
2334
  throw new Error(`No se pudo obtener machine ${m}`);
2323
- const d = await u.json();
2324
- o[g] = Dn(d, g), l();
2325
- } catch (u) {
2326
- console.error(`[usePersonalizeGameItems] error al obtener machine ${m}:`, u);
2335
+ const u = await d.json();
2336
+ o[g] = Ln(u, g), l();
2337
+ } catch (d) {
2338
+ console.error(`[usePersonalizeGameItems] error al obtener machine ${m}:`, d);
2327
2339
  }
2328
2340
  }
2329
2341
  }, f = Array.from(
2330
- { length: Math.min(zn, e.length) },
2342
+ { length: Math.min(Mn, e.length) },
2331
2343
  () => c()
2332
2344
  );
2333
2345
  await Promise.all(f), s && clearTimeout(s), n() || a(o.filter(Boolean));
@@ -2342,12 +2354,12 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
2342
2354
  }
2343
2355
  l(!0), i([]);
2344
2356
  try {
2345
- const g = await Hn(n);
2357
+ const g = await Fn(n);
2346
2358
  if (!g.length) {
2347
2359
  c || i([]);
2348
2360
  return;
2349
2361
  }
2350
- await Gn(
2362
+ await zn(
2351
2363
  g,
2352
2364
  (m) => {
2353
2365
  c || (i(m), l(!1));
@@ -2366,10 +2378,10 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
2366
2378
  resolvedItems: o,
2367
2379
  loading: s
2368
2380
  };
2369
- }, Zn = (e, a = !1) => Xe(e, a, "Casino"), jn = (e, a = !1) => Xe(e, a, "Deportes virtuales"), Kn = (e, a = !1) => Xe(e, a, "Casino en vivo"), Jn = (e, a) => {
2381
+ }, Un = (e, a = !1) => Xe(e, a, "Casino"), qn = (e, a = !1) => Xe(e, a, "Deportes virtuales"), Wn = (e, a = !1) => Xe(e, a, "Casino en vivo"), Vn = (e, a) => {
2370
2382
  var n, o;
2371
2383
  return (o = (n = e.orden) != null ? n : e.machine) != null ? o : a;
2372
- }, Xn = (e) => {
2384
+ }, Dn = (e) => {
2373
2385
  if (typeof e == "boolean") return e;
2374
2386
  if (typeof e == "string")
2375
2387
  return e.toLowerCase() === "true";
@@ -2379,7 +2391,7 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
2379
2391
  return e.value.toLowerCase() === "true";
2380
2392
  }
2381
2393
  return !1;
2382
- }, Qn = ({
2394
+ }, Gn = ({
2383
2395
  items: e,
2384
2396
  title: a = "Casino en vivo",
2385
2397
  subtitle: n = "Disfruta la emoción en tus juegos favoritos y gana en tiempo real.",
@@ -2390,16 +2402,16 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
2390
2402
  className: c,
2391
2403
  isPersonalize: f = !1
2392
2404
  }) => {
2393
- const g = se(), m = ce(), u = pe(), d = Xn(f), { resolvedItems: b, loading: x } = Kn(
2405
+ const g = se(), m = ce(), d = pe(), u = Dn(f), { resolvedItems: b, loading: x } = Wn(
2394
2406
  e,
2395
- d
2396
- ), v = d ? b : Array.isArray(e) ? e : [], I = d ? x : !Array.isArray(e) || e.length === 0, M = (_) => {
2407
+ u
2408
+ ), v = u ? b : Array.isArray(e) ? e : [], S = u ? x : !Array.isArray(e) || e.length === 0, M = (_) => {
2397
2409
  g({
2398
2410
  element: "live_casino_card",
2399
- label: `${m} - OraculoSeccionCasinoEnVivo${d ? " - personalize" : ""} - Open game: ${String(_.machine || "unknown")}`,
2411
+ label: `${m} - OraculoSeccionCasinoEnVivo${u ? " - personalize" : ""} - Open game: ${String(_.machine || "unknown")}`,
2400
2412
  target: String(_.machine || "unknown"),
2401
2413
  event_type: "click",
2402
- module_id: u,
2414
+ module_id: d,
2403
2415
  metadata: {
2404
2416
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
2405
2417
  },
@@ -2409,8 +2421,8 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
2409
2421
  section: "OraculoSeccionCasinoEnVivo"
2410
2422
  }
2411
2423
  });
2412
- const $ = ue("showIframe"), w = ue("loadMachine");
2413
- if (!w) {
2424
+ const C = ue("showIframe"), O = ue("loadMachine");
2425
+ if (!O) {
2414
2426
  if (i) {
2415
2427
  i(_);
2416
2428
  return;
@@ -2421,16 +2433,16 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
2421
2433
  );
2422
2434
  return;
2423
2435
  }
2424
- $ == null || $(), typeof window != "undefined" && window.scrollTo({ top: 0, behavior: "smooth" }), requestAnimationFrame(() => {
2425
- w == null || w(_, !1, "casino_en_vivo");
2436
+ C == null || C(), typeof window != "undefined" && window.scrollTo({ top: 0, behavior: "smooth" }), requestAnimationFrame(() => {
2437
+ O == null || O(_, !1, "casino_en_vivo");
2426
2438
  });
2427
- }, N = () => {
2439
+ }, E = () => {
2428
2440
  g({
2429
2441
  element: "casino_en_vivo_view_more",
2430
- label: `${m} - OraculoSeccionCasinoEnVivo${d ? " - personalize" : ""} - Ver más`,
2442
+ label: `${m} - OraculoSeccionCasinoEnVivo${u ? " - personalize" : ""} - Ver más`,
2431
2443
  target: "https://www.olimpo.bet/casino-en-vivo",
2432
2444
  event_type: "click",
2433
- module_id: u,
2445
+ module_id: d,
2434
2446
  metadata: {
2435
2447
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
2436
2448
  },
@@ -2438,7 +2450,7 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
2438
2450
  }), typeof globalThis != "undefined" && globalThis.location && (l ? l() : globalThis.location.assign("https://www.olimpo.bet/casino-en-vivo"));
2439
2451
  };
2440
2452
  return /* @__PURE__ */ h(
2441
- z,
2453
+ U,
2442
2454
  {
2443
2455
  className: c,
2444
2456
  sx: {
@@ -2448,7 +2460,7 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
2448
2460
  },
2449
2461
  children: [
2450
2462
  /* @__PURE__ */ t(
2451
- z,
2463
+ U,
2452
2464
  {
2453
2465
  sx: {
2454
2466
  position: "absolute",
@@ -2476,7 +2488,7 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
2476
2488
  }
2477
2489
  ),
2478
2490
  /* @__PURE__ */ h(
2479
- z,
2491
+ U,
2480
2492
  {
2481
2493
  sx: {
2482
2494
  position: "relative",
@@ -2519,18 +2531,18 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
2519
2531
  children: n
2520
2532
  }
2521
2533
  ),
2522
- /* @__PURE__ */ t(z, { sx: { display: { xs: "none", md: "block" } }, children: /* @__PURE__ */ t(
2534
+ /* @__PURE__ */ t(U, { sx: { display: { xs: "none", md: "block" } }, children: /* @__PURE__ */ t(
2523
2535
  ae,
2524
2536
  {
2525
2537
  variant: "primary",
2526
2538
  size: "md",
2527
- onClick: N,
2539
+ onClick: E,
2528
2540
  children: "Ver más"
2529
2541
  }
2530
2542
  ) })
2531
2543
  ] }),
2532
2544
  /* @__PURE__ */ t(
2533
- z,
2545
+ U,
2534
2546
  {
2535
2547
  sx: {
2536
2548
  display: "flex",
@@ -2540,28 +2552,28 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
2540
2552
  py: { xs: 3, md: 0 },
2541
2553
  alignItems: "center"
2542
2554
  },
2543
- children: I ? Array.from({ length: 3 }).map((_, $) => /* @__PURE__ */ t(nt, { loading: !0, logo: "" }, `sk-${$}`)) : (v != null ? v : []).slice(0, 3).map((_, $) => {
2544
- var w;
2555
+ children: S ? Array.from({ length: 3 }).map((_, C) => /* @__PURE__ */ t(nt, { loading: !0, logo: "" }, `sk-${C}`)) : (v != null ? v : []).slice(0, 3).map((_, C) => {
2556
+ var O;
2545
2557
  return /* @__PURE__ */ t(
2546
2558
  nt,
2547
2559
  {
2548
- logo: `https://olimpo.bet${_.background ? _.background : (w = _.logo) != null ? w : ""}`,
2560
+ logo: `https://olimpo.bet${_.background ? _.background : (O = _.logo) != null ? O : ""}`,
2549
2561
  provider: _.provider,
2550
2562
  providerName: _.web_name,
2551
2563
  machine: _.machine,
2552
2564
  onClick: () => M(_)
2553
2565
  },
2554
- Jn(_, $)
2566
+ Vn(_, C)
2555
2567
  );
2556
2568
  })
2557
2569
  }
2558
2570
  ),
2559
- /* @__PURE__ */ t(z, { sx: { display: { xs: "block", md: "none" } }, children: /* @__PURE__ */ t(
2571
+ /* @__PURE__ */ t(U, { sx: { display: { xs: "block", md: "none" } }, children: /* @__PURE__ */ t(
2560
2572
  ae,
2561
2573
  {
2562
2574
  variant: "primary",
2563
2575
  size: "lg",
2564
- onClick: N,
2576
+ onClick: E,
2565
2577
  children: "Ver más"
2566
2578
  }
2567
2579
  ) })
@@ -2571,7 +2583,7 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
2571
2583
  ]
2572
2584
  }
2573
2585
  );
2574
- }, Yn = (e) => {
2586
+ }, Hn = (e) => {
2575
2587
  if (typeof e == "boolean") return e;
2576
2588
  if (typeof e == "string")
2577
2589
  return e.toLowerCase() === "true";
@@ -2584,7 +2596,7 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
2584
2596
  }, kt = (e, a) => {
2585
2597
  var n, o;
2586
2598
  return (o = (n = e.orden) != null ? n : e.machine) != null ? o : a;
2587
- }, eo = (e, a = !0, n = 1) => {
2599
+ }, Zn = (e, a = !0, n = 1) => {
2588
2600
  const o = e.map((l, c) => {
2589
2601
  var f;
2590
2602
  return {
@@ -2613,7 +2625,7 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
2613
2625
  }), s = l;
2614
2626
  }
2615
2627
  return i;
2616
- }, to = ({
2628
+ }, jn = ({
2617
2629
  items: e,
2618
2630
  title: a = "Casino",
2619
2631
  iconUrl: n = "/assets/img/home/Casino/diamante.svg",
@@ -2623,11 +2635,11 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
2623
2635
  gridSize: l = 1,
2624
2636
  isPersonalize: c = !1
2625
2637
  }) => {
2626
- const f = se(), g = ce(), m = pe(), u = Z(null), [d, b] = ee({ isStart: !0, isEnd: !1 }), x = Yn(c), { resolvedItems: v, loading: I } = Zn(
2638
+ const f = se(), g = ce(), m = pe(), d = Z(null), [u, b] = ee({ isStart: !0, isEnd: !1 }), x = Hn(c), { resolvedItems: v, loading: S } = Un(
2627
2639
  e,
2628
2640
  x
2629
- ), M = x ? v : Array.isArray(e) ? e : [], N = () => {
2630
- var A;
2641
+ ), M = x ? v : Array.isArray(e) ? e : [], E = () => {
2642
+ var $;
2631
2643
  f({
2632
2644
  element: "casino_prev",
2633
2645
  label: `${g} - OraculoSeccionCasino ${c ? " - personalize" : ""} - Anterior`,
@@ -2638,9 +2650,9 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
2638
2650
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
2639
2651
  },
2640
2652
  tags: { section: "OraculoSeccionCasino" }
2641
- }), (A = u.current) == null || A.prev();
2653
+ }), ($ = d.current) == null || $.prev();
2642
2654
  }, _ = () => {
2643
- var A;
2655
+ var $;
2644
2656
  f({
2645
2657
  element: "casino_next",
2646
2658
  label: `${g} - OraculoSeccionCasino ${c ? " - personalize" : ""} - Siguiente`,
@@ -2651,8 +2663,8 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
2651
2663
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
2652
2664
  },
2653
2665
  tags: { section: "OraculoSeccionCasino" }
2654
- }), (A = u.current) == null || A.next();
2655
- }, $ = () => {
2666
+ }), ($ = d.current) == null || $.next();
2667
+ }, C = () => {
2656
2668
  if (f({
2657
2669
  element: "casino_view_more",
2658
2670
  label: `${g} - OraculoSeccionCasino ${c ? " - personalize" : ""} - Ver más`,
@@ -2668,16 +2680,16 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
2668
2680
  return;
2669
2681
  }
2670
2682
  typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/casino");
2671
- }, w = (A = !0, y = 4) => {
2672
- const O = (B) => Array.from({ length: B }, (P, W) => ({
2683
+ }, O = ($ = !0, y = 4) => {
2684
+ const I = (B) => Array.from({ length: B }, (P, W) => ({
2673
2685
  id: `sk-${B}-${W}`,
2674
2686
  imageUrl: ""
2675
2687
  })), F = [];
2676
- return A && F.push({ id: "mosaic-loading", kind: "mosaic", items: O(5) }), F.push({ id: "grid-loading", kind: "grid", items: O(y) }), F;
2677
- }, S = x ? I : !Array.isArray(e) || e.length === 0, L = Je("(max-width:950px)"), R = S ? w(s, l) : eo(M, s, l);
2688
+ return $ && F.push({ id: "mosaic-loading", kind: "mosaic", items: I(5) }), F.push({ id: "grid-loading", kind: "grid", items: I(y) }), F;
2689
+ }, w = x ? S : !Array.isArray(e) || e.length === 0, L = Je("(max-width:950px)"), R = w ? O(s, l) : Zn(M, s, l);
2678
2690
  return /* @__PURE__ */ t("section", { children: /* @__PURE__ */ h(Q, { direction: "column", spacing: 2, useFlexGap: !0, children: [
2679
2691
  /* @__PURE__ */ h(
2680
- z,
2692
+ U,
2681
2693
  {
2682
2694
  sx: {
2683
2695
  display: "grid",
@@ -2692,7 +2704,7 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
2692
2704
  },
2693
2705
  children: [
2694
2706
  /* @__PURE__ */ t(ye, { title: a, iconUrl: n, size: "md" }),
2695
- /* @__PURE__ */ h(z, { sx: { display: "flex", gap: 1, justifyContent: "flex-end" }, children: [
2707
+ /* @__PURE__ */ h(U, { sx: { display: "flex", gap: 1, justifyContent: "flex-end" }, children: [
2696
2708
  /* @__PURE__ */ t(
2697
2709
  ae,
2698
2710
  {
@@ -2700,8 +2712,8 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
2700
2712
  variant: "secondary",
2701
2713
  iconOnly: !0,
2702
2714
  leftIcon: /* @__PURE__ */ t(_t, {}),
2703
- onClick: N,
2704
- disabled: d.isStart
2715
+ onClick: E,
2716
+ disabled: u.isStart
2705
2717
  }
2706
2718
  ),
2707
2719
  /* @__PURE__ */ t(
@@ -2712,18 +2724,18 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
2712
2724
  iconOnly: !0,
2713
2725
  rightIcon: /* @__PURE__ */ t(vt, {}),
2714
2726
  onClick: _,
2715
- disabled: d.isEnd
2727
+ disabled: u.isEnd
2716
2728
  }
2717
2729
  )
2718
2730
  ] }),
2719
- /* @__PURE__ */ t(z, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(ae, { variant: "secondary", onClick: $, children: "Ver más" }) })
2731
+ /* @__PURE__ */ t(U, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(ae, { variant: "secondary", onClick: C, children: "Ver más" }) })
2720
2732
  ]
2721
2733
  }
2722
2734
  ),
2723
2735
  /* @__PURE__ */ t(
2724
2736
  xe,
2725
2737
  {
2726
- ref: u,
2738
+ ref: d,
2727
2739
  items: R,
2728
2740
  perPage: void 0,
2729
2741
  gap: "16px",
@@ -2747,42 +2759,42 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
2747
2759
  padding: { left: "24px", right: "24px" }
2748
2760
  }
2749
2761
  },
2750
- renderItem: (A) => /* @__PURE__ */ t("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ t(
2762
+ renderItem: ($) => /* @__PURE__ */ t("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ t(
2751
2763
  wt,
2752
2764
  {
2753
- items: A.items,
2754
- layout: A.kind === "mosaic" ? "mosaic" : "grid",
2755
- loading: S,
2765
+ items: $.items,
2766
+ layout: $.kind === "mosaic" ? "mosaic" : "grid",
2767
+ loading: w,
2756
2768
  onClick: (y) => {
2757
- if (S) return;
2758
- const O = M.find(
2769
+ if (w) return;
2770
+ const I = M.find(
2759
2771
  (P, W) => String(kt(P, W)) === String(y.id)
2760
2772
  );
2761
- if (!O) return;
2762
- o == null || o(O), f({
2773
+ if (!I) return;
2774
+ o == null || o(I), f({
2763
2775
  element: "casino_game_card",
2764
- label: `${g} - OraculoSeccionCasino ${c ? " - personalize" : ""} - Game: ${String(O.machine || "unknown")}`,
2765
- target: String(O.machine || "unknown"),
2776
+ label: `${g} - OraculoSeccionCasino ${c ? " - personalize" : ""} - Game: ${String(I.machine || "unknown")}`,
2777
+ target: String(I.machine || "unknown"),
2766
2778
  event_type: "click",
2767
2779
  module_id: m,
2768
2780
  metadata: {
2769
2781
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
2770
2782
  },
2771
2783
  tags: {
2772
- game_name: String(O.machine || "unknown"),
2784
+ game_name: String(I.machine || "unknown"),
2773
2785
  section: a || "Casino"
2774
2786
  }
2775
2787
  });
2776
2788
  const F = ue("showIframe"), B = ue("loadMachine");
2777
- F == null || F(), B == null || B(O, !1, "CASINO");
2789
+ F == null || F(), B == null || B(I, !1, "CASINO");
2778
2790
  }
2779
2791
  }
2780
2792
  ) }),
2781
- onMove: ({ isStart: A, isEnd: y }) => b({ isStart: A, isEnd: y })
2793
+ onMove: ({ isStart: $, isEnd: y }) => b({ isStart: $, isEnd: y })
2782
2794
  }
2783
2795
  )
2784
2796
  ] }) });
2785
- }, ao = (e) => {
2797
+ }, Kn = (e) => {
2786
2798
  if (typeof e == "boolean") return e;
2787
2799
  if (typeof e == "string")
2788
2800
  return e.toLowerCase() === "true";
@@ -2795,7 +2807,7 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
2795
2807
  }, Nt = (e, a) => {
2796
2808
  var n, o;
2797
2809
  return (o = (n = e.orden) != null ? n : e.machine) != null ? o : a;
2798
- }, no = (e, a = !0, n = 1) => {
2810
+ }, Jn = (e, a = !0, n = 1) => {
2799
2811
  const o = e.map((l, c) => {
2800
2812
  var f;
2801
2813
  return {
@@ -2824,7 +2836,7 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
2824
2836
  }), s = l;
2825
2837
  }
2826
2838
  return i;
2827
- }, oo = (e = !0, a = 4) => {
2839
+ }, Xn = (e = !0, a = 4) => {
2828
2840
  const n = (i) => Array.from({ length: i }, (s, l) => ({
2829
2841
  id: `sk-${i}-${l}`,
2830
2842
  imageUrl: ""
@@ -2838,7 +2850,7 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
2838
2850
  kind: "grid",
2839
2851
  items: n(a)
2840
2852
  }), o;
2841
- }, ro = ({
2853
+ }, Qn = ({
2842
2854
  items: e,
2843
2855
  title: a = "Virtuales",
2844
2856
  iconUrl: n = "/assets/img/home/Virtuales/virtuales.svg",
@@ -2848,14 +2860,14 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
2848
2860
  gridSize: l = 1,
2849
2861
  isPersonalize: c = !1
2850
2862
  }) => {
2851
- const f = Z(null), [g, m] = ee({ isStart: !0, isEnd: !1 }), u = se(), d = ce(), b = pe(), x = ao(c), { resolvedItems: v, loading: I } = jn(
2863
+ const f = Z(null), [g, m] = ee({ isStart: !0, isEnd: !1 }), d = se(), u = ce(), b = pe(), x = Kn(c), { resolvedItems: v, loading: S } = qn(
2852
2864
  e,
2853
2865
  x
2854
- ), M = x ? v : Array.isArray(e) ? e : [], N = () => {
2866
+ ), M = x ? v : Array.isArray(e) ? e : [], E = () => {
2855
2867
  var R;
2856
- u({
2868
+ d({
2857
2869
  element: "virtuales_prev",
2858
- label: `${d} - OraculoSeccionVirtuales${x ? " - personalize" : ""} - Anterior`,
2870
+ label: `${u} - OraculoSeccionVirtuales${x ? " - personalize" : ""} - Anterior`,
2859
2871
  target: "prev",
2860
2872
  event_type: "click",
2861
2873
  module_id: b,
@@ -2866,9 +2878,9 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
2866
2878
  }), (R = f.current) == null || R.prev();
2867
2879
  }, _ = () => {
2868
2880
  var R;
2869
- u({
2881
+ d({
2870
2882
  element: "virtuales_next",
2871
- label: `${d} - OraculoSeccionVirtuales${x ? " - personalize" : ""} - Siguiente`,
2883
+ label: `${u} - OraculoSeccionVirtuales${x ? " - personalize" : ""} - Siguiente`,
2872
2884
  target: "next",
2873
2885
  event_type: "click",
2874
2886
  module_id: b,
@@ -2877,10 +2889,10 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
2877
2889
  },
2878
2890
  tags: { section: "OraculoSeccionVirtuales" }
2879
2891
  }), (R = f.current) == null || R.next();
2880
- }, $ = () => {
2881
- if (u({
2892
+ }, C = () => {
2893
+ if (d({
2882
2894
  element: "virtuales_view_more",
2883
- label: `${d} - OraculoSeccionVirtuales${x ? " - personalize" : ""} - Ver más`,
2895
+ label: `${u} - OraculoSeccionVirtuales${x ? " - personalize" : ""} - Ver más`,
2884
2896
  target: "https://www.olimpo.bet/juegos-virtuales",
2885
2897
  event_type: "click",
2886
2898
  module_id: b,
@@ -2893,10 +2905,10 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
2893
2905
  return;
2894
2906
  }
2895
2907
  typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/juegos-virtuales");
2896
- }, w = x ? I : !Array.isArray(e) || e.length === 0, S = Ne("(max-width:950px)"), L = w ? oo(s, l) : no(M, s, l);
2908
+ }, O = x ? S : !Array.isArray(e) || e.length === 0, w = Ne("(max-width:950px)"), L = O ? Xn(s, l) : Jn(M, s, l);
2897
2909
  return /* @__PURE__ */ t("section", { children: /* @__PURE__ */ h(Q, { direction: "column", spacing: 2, useFlexGap: !0, children: [
2898
2910
  /* @__PURE__ */ h(
2899
- z,
2911
+ U,
2900
2912
  {
2901
2913
  sx: {
2902
2914
  display: "grid",
@@ -2911,7 +2923,7 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
2911
2923
  },
2912
2924
  children: [
2913
2925
  /* @__PURE__ */ t(ye, { title: a, iconUrl: n, size: "md" }),
2914
- /* @__PURE__ */ h(z, { sx: { display: "flex", gap: 1, justifyContent: "flex-end" }, children: [
2926
+ /* @__PURE__ */ h(U, { sx: { display: "flex", gap: 1, justifyContent: "flex-end" }, children: [
2915
2927
  /* @__PURE__ */ t(
2916
2928
  ae,
2917
2929
  {
@@ -2919,7 +2931,7 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
2919
2931
  variant: "secondary",
2920
2932
  iconOnly: !0,
2921
2933
  leftIcon: /* @__PURE__ */ t(_t, {}),
2922
- onClick: N,
2934
+ onClick: E,
2923
2935
  disabled: g.isStart
2924
2936
  }
2925
2937
  ),
@@ -2935,7 +2947,7 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
2935
2947
  }
2936
2948
  )
2937
2949
  ] }),
2938
- /* @__PURE__ */ t(z, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(ae, { variant: "secondary", onClick: $, children: "Ver más" }) })
2950
+ /* @__PURE__ */ t(U, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(ae, { variant: "secondary", onClick: C, children: "Ver más" }) })
2939
2951
  ]
2940
2952
  }
2941
2953
  ),
@@ -2964,29 +2976,29 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
2964
2976
  }
2965
2977
  },
2966
2978
  enableHorizontalWheel: !0,
2967
- showRightGradient: !S,
2979
+ showRightGradient: !w,
2968
2980
  options: { autoWidth: !0, trimSpace: "move" },
2969
2981
  renderItem: (R) => /* @__PURE__ */ t("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ t(
2970
2982
  wt,
2971
2983
  {
2972
2984
  items: R.items,
2973
2985
  layout: R.kind === "mosaic" ? "mosaic" : "grid",
2974
- loading: w,
2975
- onClick: (A) => {
2976
- if (w) return;
2986
+ loading: O,
2987
+ onClick: ($) => {
2988
+ if (O) return;
2977
2989
  const y = M.find(
2978
- (B, P) => String(Nt(B, P)) === String(A.id)
2990
+ (B, P) => String(Nt(B, P)) === String($.id)
2979
2991
  );
2980
2992
  if (!y) {
2981
2993
  console.warn(
2982
2994
  "[virtuales] no se encontró game para id:",
2983
- A.id
2995
+ $.id
2984
2996
  );
2985
2997
  return;
2986
2998
  }
2987
- o == null || o(y), u({
2999
+ o == null || o(y), d({
2988
3000
  element: "virtuales_game_card",
2989
- label: `${d} - OraculoSeccionVirtuales${x ? " - personalize" : ""} - Game: ${String(y.machine || "unknown")}`,
3001
+ label: `${u} - OraculoSeccionVirtuales${x ? " - personalize" : ""} - Game: ${String(y.machine || "unknown")}`,
2990
3002
  target: String(y.machine || "unknown"),
2991
3003
  event_type: "click",
2992
3004
  module_id: b,
@@ -2998,8 +3010,8 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
2998
3010
  section: a || "Virtuales"
2999
3011
  }
3000
3012
  });
3001
- const O = ue("showIframe"), F = ue("loadMachine");
3002
- O == null || O(), F == null || F(
3013
+ const I = ue("showIframe"), F = ue("loadMachine");
3014
+ I == null || I(), F == null || F(
3003
3015
  y,
3004
3016
  !1,
3005
3017
  x ? "VIRTUALES_PERSONALIZE" : "VIRTUALES"
@@ -3007,11 +3019,11 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
3007
3019
  }
3008
3020
  }
3009
3021
  ) }),
3010
- onMove: ({ isStart: R, isEnd: A }) => m({ isStart: R, isEnd: A })
3022
+ onMove: ({ isStart: R, isEnd: $ }) => m({ isStart: R, isEnd: $ })
3011
3023
  }
3012
3024
  )
3013
3025
  ] }) });
3014
- }, io = (e) => ({
3026
+ }, Yn = (e) => ({
3015
3027
  position: "relative",
3016
3028
  py: 8,
3017
3029
  color: "#fff",
@@ -3043,39 +3055,39 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
3043
3055
  0 0 6px rgba(255, 255, 255, .6),
3044
3056
  0 1px 0 rgba(137, 137, 137, .85)
3045
3057
  `
3046
- }, lo = ({
3058
+ }, eo = ({
3047
3059
  headline: e,
3048
3060
  headline2: a,
3049
3061
  items: n,
3050
3062
  backgroundImageUrl: o
3051
3063
  }) => {
3052
- const i = se(), s = ce(), l = Ne("(max-width: 767px)"), c = n.length > 1, f = Z(null), g = Z(null), m = Z(!1), u = Z(!1), [d, b] = ee(0), [x, v] = ee({ isStart: !0, isEnd: !1 });
3064
+ const i = se(), s = ce(), l = Ne("(max-width: 767px)"), c = n.length > 1, f = Z(null), g = Z(null), m = Z(!1), d = Z(!1), [u, b] = ee(0), [x, v] = ee({ isStart: !0, isEnd: !1 });
3053
3065
  re(() => {
3054
3066
  const y = setTimeout(() => {
3055
3067
  m.current = !0;
3056
3068
  }, 500);
3057
3069
  return () => clearTimeout(y);
3058
3070
  }, []);
3059
- const I = Z(x);
3071
+ const S = Z(x);
3060
3072
  re(() => {
3061
- I.current = x;
3073
+ S.current = x;
3062
3074
  }, [x]);
3063
- const M = Z(!1), N = Z(null), _ = n == null ? void 0 : n[d], $ = de(
3075
+ const M = Z(!1), E = Z(null), _ = n == null ? void 0 : n[u], C = de(
3064
3076
  () => {
3065
- var y, O;
3066
- return (O = (y = _ == null ? void 0 : _.backgroundImageUrl) != null ? y : o) != null ? O : "";
3077
+ var y, I;
3078
+ return (I = (y = _ == null ? void 0 : _.backgroundImageUrl) != null ? y : o) != null ? I : "";
3067
3079
  },
3068
3080
  [_, o]
3069
- ), w = io($), S = !n || n.length === 0, L = (y, O) => {
3081
+ ), O = Yn(C), w = !n || n.length === 0, L = (y, I) => {
3070
3082
  i({
3071
3083
  element: "welcome_banner_button",
3072
- label: `OraculoSeccionBonoBienvenida - Banner button click: ${y.title || "OraculoSeccionBonoBienvenida - Banner " + (O + 1)}`,
3084
+ label: `OraculoSeccionBonoBienvenida - Banner button click: ${y.title || "OraculoSeccionBonoBienvenida - Banner " + (I + 1)}`,
3073
3085
  target: "action",
3074
3086
  event_type: "click",
3075
3087
  module_id: 301,
3076
3088
  metadata: {
3077
3089
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
3078
- banner_position: O + 1,
3090
+ banner_position: I + 1,
3079
3091
  banner_total: (n == null ? void 0 : n.length) || 0
3080
3092
  },
3081
3093
  tags: {
@@ -3085,14 +3097,14 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
3085
3097
  }), y.onButtonClick && y.onButtonClick();
3086
3098
  }, R = (y) => {
3087
3099
  if (!m.current) return;
3088
- if (u.current) {
3089
- u.current = !1;
3100
+ if (d.current) {
3101
+ d.current = !1;
3090
3102
  return;
3091
3103
  }
3092
- const O = n == null ? void 0 : n[y];
3104
+ const I = n == null ? void 0 : n[y];
3093
3105
  i({
3094
3106
  element: "welcome_banner_carousel",
3095
- label: `Landing: ${s} - OraculoSeccionBonoBienvenida - Banner view: ${(O == null ? void 0 : O.title) || "OraculoSeccionBonoBienvenida - Banner " + (y + 1)}`,
3107
+ label: `Landing: ${s} - OraculoSeccionBonoBienvenida - Banner view: ${(I == null ? void 0 : I.title) || "OraculoSeccionBonoBienvenida - Banner " + (y + 1)}`,
3096
3108
  target: "no_url",
3097
3109
  event_type: "view",
3098
3110
  module_id: 301,
@@ -3104,32 +3116,32 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
3104
3116
  },
3105
3117
  tags: {
3106
3118
  banner_position: String(y + 1),
3107
- banner_title: (O == null ? void 0 : O.title) || "no_title"
3119
+ banner_title: (I == null ? void 0 : I.title) || "no_title"
3108
3120
  }
3109
3121
  });
3110
3122
  };
3111
3123
  re(() => {
3112
3124
  const y = g.current;
3113
3125
  if (!y) return;
3114
- const O = 6, F = 380, B = (P) => {
3115
- var G, D;
3116
- if (S || P.ctrlKey || M.current) return;
3126
+ const I = 6, F = 380, B = (P) => {
3127
+ var H, q;
3128
+ if (w || P.ctrlKey || M.current) return;
3117
3129
  const W = P.deltaX, V = P.deltaY;
3118
- if (Math.abs(W) <= Math.abs(V) || Math.abs(W) < O) return;
3119
- const H = W > 0;
3120
- H && I.current.isEnd || !H && I.current.isStart || (P.preventDefault(), M.current = !0, H ? (G = f.current) == null || G.next() : (D = f.current) == null || D.prev(), N.current && window.clearTimeout(N.current), N.current = window.setTimeout(() => {
3130
+ if (Math.abs(W) <= Math.abs(V) || Math.abs(W) < I) return;
3131
+ const D = W > 0;
3132
+ D && S.current.isEnd || !D && S.current.isStart || (P.preventDefault(), M.current = !0, D ? (H = f.current) == null || H.next() : (q = f.current) == null || q.prev(), E.current && window.clearTimeout(E.current), E.current = window.setTimeout(() => {
3121
3133
  M.current = !1;
3122
3134
  }, F));
3123
3135
  };
3124
3136
  return y.addEventListener("wheel", B, { passive: !1 }), () => {
3125
- y.removeEventListener("wheel", B), N.current && window.clearTimeout(N.current);
3137
+ y.removeEventListener("wheel", B), E.current && window.clearTimeout(E.current);
3126
3138
  };
3127
- }, [S]);
3128
- const A = (y, O, F) => {
3139
+ }, [w]);
3140
+ const $ = (y, I, F) => {
3129
3141
  var W, V;
3130
3142
  const B = (W = y.headline) != null ? W : e, P = (V = y.headline2) != null ? V : a;
3131
- return O ? /* @__PURE__ */ h(
3132
- z,
3143
+ return I ? /* @__PURE__ */ h(
3144
+ U,
3133
3145
  {
3134
3146
  sx: {
3135
3147
  maxWidth: 1200,
@@ -3142,7 +3154,7 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
3142
3154
  },
3143
3155
  children: [
3144
3156
  (B || P) && /* @__PURE__ */ t(
3145
- z,
3157
+ U,
3146
3158
  {
3147
3159
  sx: {
3148
3160
  display: "flex",
@@ -3150,7 +3162,7 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
3150
3162
  justifyContent: "flex-start",
3151
3163
  minHeight: "100%"
3152
3164
  },
3153
- children: /* @__PURE__ */ h(z, { sx: { ...ct, textAlign: "left", mb: 0 }, children: [
3165
+ children: /* @__PURE__ */ h(U, { sx: { ...ct, textAlign: "left", mb: 0 }, children: [
3154
3166
  B && /* @__PURE__ */ t(he, { component: "span", sx: dt, children: B }),
3155
3167
  P && /* @__PURE__ */ h(te, { children: [
3156
3168
  /* @__PURE__ */ t("br", {}),
@@ -3159,7 +3171,7 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
3159
3171
  ] })
3160
3172
  }
3161
3173
  ),
3162
- /* @__PURE__ */ t(z, { sx: { display: "flex", justifyContent: "center", alignItems: "center" }, children: /* @__PURE__ */ t(z, { sx: { width: "100%", maxWidth: 600, mx: "auto" }, children: /* @__PURE__ */ t(
3174
+ /* @__PURE__ */ t(U, { sx: { display: "flex", justifyContent: "center", alignItems: "center" }, children: /* @__PURE__ */ t(U, { sx: { width: "100%", maxWidth: 600, mx: "auto" }, children: /* @__PURE__ */ t(
3163
3175
  ot,
3164
3176
  {
3165
3177
  ...y,
@@ -3169,15 +3181,15 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
3169
3181
  ) }) })
3170
3182
  ]
3171
3183
  }
3172
- ) : /* @__PURE__ */ h(z, { sx: { textAlign: "center" }, children: [
3173
- (B || P) && /* @__PURE__ */ h(z, { sx: ct, children: [
3184
+ ) : /* @__PURE__ */ h(U, { sx: { textAlign: "center" }, children: [
3185
+ (B || P) && /* @__PURE__ */ h(U, { sx: ct, children: [
3174
3186
  B && /* @__PURE__ */ t(he, { component: "span", sx: dt, children: B }),
3175
3187
  P && /* @__PURE__ */ h(te, { children: [
3176
3188
  /* @__PURE__ */ t("br", {}),
3177
3189
  /* @__PURE__ */ t(he, { component: "span", sx: ut, children: P })
3178
3190
  ] })
3179
3191
  ] }),
3180
- /* @__PURE__ */ t(z, { sx: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(
3192
+ /* @__PURE__ */ t(U, { sx: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(
3181
3193
  ot,
3182
3194
  {
3183
3195
  ...y,
@@ -3187,7 +3199,7 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
3187
3199
  ) })
3188
3200
  ] });
3189
3201
  };
3190
- return /* @__PURE__ */ h(z, { component: "section", sx: w, children: [
3202
+ return /* @__PURE__ */ h(U, { component: "section", sx: O, children: [
3191
3203
  /* @__PURE__ */ t("div", { ref: g, style: { width: "100%" }, children: /* @__PURE__ */ t(
3192
3204
  xe,
3193
3205
  {
@@ -3205,19 +3217,19 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
3205
3217
  // arrows: false,
3206
3218
  // drag: true,
3207
3219
  },
3208
- renderItem: (y, O) => /* @__PURE__ */ t(z, { sx: { width: "100%" }, children: A(y, !l, O) }),
3209
- onMove: ({ index: y, isStart: O, isEnd: F, source: B }) => {
3210
- b(y), typeof O == "boolean" && typeof F == "boolean" && v({ isStart: O, isEnd: F }), B === "user" && R(y);
3220
+ renderItem: (y, I) => /* @__PURE__ */ t(U, { sx: { width: "100%" }, children: $(y, !l, I) }),
3221
+ onMove: ({ index: y, isStart: I, isEnd: F, source: B }) => {
3222
+ b(y), typeof I == "boolean" && typeof F == "boolean" && v({ isStart: I, isEnd: F }), B === "user" && R(y);
3211
3223
  }
3212
3224
  }
3213
3225
  ) }),
3214
- c && /* @__PURE__ */ t(z, { sx: { mt: 2, display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(
3226
+ c && /* @__PURE__ */ t(U, { sx: { mt: 2, display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(
3215
3227
  yt,
3216
3228
  {
3217
3229
  total: n.length,
3218
- active: d,
3230
+ active: u,
3219
3231
  onSelect: (y) => {
3220
- var O;
3232
+ var I;
3221
3233
  i({
3222
3234
  element: "welcome_banner_dots",
3223
3235
  label: `Landing: ${s} - OraculoSeccionBonoBienvenida - Dot navigation: Banner ${y + 1}`,
@@ -3232,12 +3244,12 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
3232
3244
  tags: {
3233
3245
  navigation_type: "dot_click"
3234
3246
  }
3235
- }), b(y), (O = f.current) == null || O.go(y);
3247
+ }), b(y), (I = f.current) == null || I.go(y);
3236
3248
  }
3237
3249
  }
3238
3250
  ) })
3239
3251
  ] });
3240
- }, so = ({
3252
+ }, to = ({
3241
3253
  className: e = "",
3242
3254
  fullBleed: a = !0,
3243
3255
  items: n,
@@ -3247,14 +3259,14 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
3247
3259
  }) => {
3248
3260
  const l = Z(null), c = Z(null), f = se(), g = ce(), m = pe();
3249
3261
  if (!n) return null;
3250
- const u = async () => {
3262
+ const d = async () => {
3251
3263
  let v = s;
3252
3264
  if ((!(v != null && v.user) || !(v != null && v.session)) && typeof window != "undefined")
3253
3265
  try {
3254
- const I = localStorage.getItem("user");
3255
- I && (v = JSON.parse(I));
3256
- } catch (I) {
3257
- console.error("[getMarketPlaceUrl] Error parsing localStorage user", I);
3266
+ const S = localStorage.getItem("user");
3267
+ S && (v = JSON.parse(S));
3268
+ } catch (S) {
3269
+ console.error("[getMarketPlaceUrl] Error parsing localStorage user", S);
3258
3270
  }
3259
3271
  if (!(v != null && v.user) || !(v != null && v.session))
3260
3272
  return console.warn("User data missing"), null;
@@ -3270,38 +3282,38 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
3270
3282
  tags: { section: "OraculoSeccionClubOlimpo" }
3271
3283
  });
3272
3284
  try {
3273
- const I = {
3285
+ const S = {
3274
3286
  idUsuario: "PE" + v.user,
3275
3287
  session_id: v.session,
3276
3288
  pagina: "home"
3277
- }, N = await fetch("https://apipe.mktolimpo.com/api/pm/token", {
3289
+ }, E = await fetch("https://apipe.mktolimpo.com/api/pm/token", {
3278
3290
  method: "POST",
3279
3291
  headers: {
3280
3292
  "Content-Type": "application/json"
3281
3293
  },
3282
- body: JSON.stringify(I)
3294
+ body: JSON.stringify(S)
3283
3295
  });
3284
- if (N.ok) {
3285
- const _ = await N.json();
3296
+ if (E.ok) {
3297
+ const _ = await E.json();
3286
3298
  return _ == null ? void 0 : _.url;
3287
3299
  }
3288
3300
  return null;
3289
- } catch (I) {
3290
- return console.error("[getMarketPlaceUrl]", I), null;
3301
+ } catch (S) {
3302
+ return console.error("[getMarketPlaceUrl]", S), null;
3291
3303
  }
3292
- }, d = async () => {
3293
- const v = await u();
3304
+ }, u = async () => {
3305
+ const v = await d();
3294
3306
  v ? window.location.href = v : typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/conoce-club-olimpo");
3295
3307
  }, b = Array.isArray(n) ? n[o] : n;
3296
- qt(() => {
3308
+ zt(() => {
3297
3309
  if (!l.current || !c.current || typeof ResizeObserver == "undefined") return;
3298
- const v = l.current, I = c.current, M = () => {
3310
+ const v = l.current, S = c.current, M = () => {
3299
3311
  v.style.setProperty(
3300
3312
  "--orc-co-bottomH",
3301
- `${I.offsetHeight + 16}px`
3313
+ `${S.offsetHeight + 16}px`
3302
3314
  );
3303
- }, N = new ResizeObserver(M);
3304
- return N.observe(I), M(), () => N.disconnect();
3315
+ }, E = new ResizeObserver(M);
3316
+ return E.observe(S), M(), () => E.disconnect();
3305
3317
  }, []);
3306
3318
  const x = [
3307
3319
  "orc-co-wrap",
@@ -3318,7 +3330,7 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
3318
3330
  Pa,
3319
3331
  {
3320
3332
  text: b.text,
3321
- onClick: d,
3333
+ onClick: u,
3322
3334
  imgAlt: b.imgAlt,
3323
3335
  buttonLabel: b.buttonLabel,
3324
3336
  imgSrcMobile: b.imgMobile,
@@ -3328,38 +3340,38 @@ const qn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking",
3328
3340
  ) })
3329
3341
  }
3330
3342
  );
3331
- }, co = "oraculo__OraculoSeccionEventoCombinadas-module__controls___Zsta4", uo = "oraculo__OraculoSeccionEventoCombinadas-module__padding___vf-yF", mt = {
3332
- controls: co,
3333
- padding: uo
3334
- }, mo = (e) => {
3343
+ }, ao = "oraculo__OraculoSeccionEventoCombinadas-module__controls___Zsta4", no = "oraculo__OraculoSeccionEventoCombinadas-module__padding___vf-yF", mt = {
3344
+ controls: ao,
3345
+ padding: no
3346
+ }, oo = (e) => {
3335
3347
  var a, n;
3336
3348
  return (a = e.outcome) != null && a.id ? [e.outcome.id] : e.type === "BET_BUILDER" && ((n = e.group) != null && n.groups) ? e.group.groups.flatMap((o) => {
3337
3349
  var i, s;
3338
3350
  return (s = (i = o.outcomes) == null ? void 0 : i.map((l) => l.id)) != null ? s : [];
3339
3351
  }) : [];
3340
3352
  };
3341
- function po(e, a, n) {
3353
+ function ro(e, a, n) {
3342
3354
  return n ? n.map((o) => {
3343
- var m, u;
3344
- const i = o.prePackCouponRows.flatMap((d) => mo(d).map((b) => ({ eventId: d.eventId, outcomeId: b }))), s = new Set(i.map((d) => d.eventId)), l = new Set(i.map((d) => d.outcomeId)), c = new Map(i.map((d, b) => [d.outcomeId, b])), f = {};
3345
- for (const d of a) {
3346
- if (!s.has(d.eventId)) continue;
3347
- const b = d.outcomes.filter((x) => l.has(x.id)).map((x) => ({ ...x, position: c.get(x.id) }));
3348
- b.length && ((u = f[m = d.eventId]) != null || (f[m] = []), f[d.eventId].push({ ...d, outcomes: b }));
3355
+ var m, d;
3356
+ const i = o.prePackCouponRows.flatMap((u) => oo(u).map((b) => ({ eventId: u.eventId, outcomeId: b }))), s = new Set(i.map((u) => u.eventId)), l = new Set(i.map((u) => u.outcomeId)), c = new Map(i.map((u, b) => [u.outcomeId, b])), f = {};
3357
+ for (const u of a) {
3358
+ if (!s.has(u.eventId)) continue;
3359
+ const b = u.outcomes.filter((x) => l.has(x.id)).map((x) => ({ ...x, position: c.get(x.id) }));
3360
+ b.length && ((d = f[m = u.eventId]) != null || (f[m] = []), f[u.eventId].push({ ...u, outcomes: b }));
3349
3361
  }
3350
- const g = e.filter((d) => s.has(d.id)).map((d) => {
3362
+ const g = e.filter((u) => s.has(u.id)).map((u) => {
3351
3363
  var b;
3352
- return { ...d, betoffers: (b = f[d.id]) != null ? b : [] };
3364
+ return { ...u, betoffers: (b = f[u.id]) != null ? b : [] };
3353
3365
  });
3354
3366
  return {
3355
3367
  couponId: o.id,
3356
3368
  status: o.status,
3357
- combinadoTotal: fo(o.prePackCouponRows),
3369
+ combinadoTotal: io(o.prePackCouponRows),
3358
3370
  events: g
3359
3371
  };
3360
3372
  }) : [];
3361
3373
  }
3362
- function fo(e) {
3374
+ function io(e) {
3363
3375
  if (!Array.isArray(e) || e.length === 0) return 0;
3364
3376
  let a = 1;
3365
3377
  for (const n of e) {
@@ -3368,16 +3380,16 @@ function fo(e) {
3368
3380
  }
3369
3381
  return Math.floor(a * 100) / 100;
3370
3382
  }
3371
- const go = ve.memo(Ja);
3372
- function ho({
3383
+ const lo = ve.memo(Ja);
3384
+ function so({
3373
3385
  items: e,
3374
3386
  title: a = "Combinadas del Olimpo",
3375
3387
  iconUrl: n = "https://d28gilnhu2bcbp.cloudfront.net/landing/rayoIcon.svg",
3376
3388
  onViewMore: o,
3377
3389
  className: i = ""
3378
3390
  }) {
3379
- const s = se(), l = ce(), c = pe(), f = Z(null), [g, m] = ee({ isStart: !0, isEnd: !1 }), [u, d] = ee([]), b = "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", x = () => {
3380
- var w;
3391
+ const s = se(), l = ce(), c = pe(), f = Z(null), [g, m] = ee({ isStart: !0, isEnd: !1 }), [d, u] = ee([]), b = "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", x = () => {
3392
+ var O;
3381
3393
  s({
3382
3394
  element: "evento_combinadas_prev",
3383
3395
  label: `${l} - OraculoSeccionEventoCombinadas - Click: Anterior`,
@@ -3387,9 +3399,9 @@ function ho({
3387
3399
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
3388
3400
  },
3389
3401
  tags: { section: "OraculoSeccionEventoCombinadas" }
3390
- }), (w = f.current) == null || w.prev();
3402
+ }), (O = f.current) == null || O.prev();
3391
3403
  }, v = () => {
3392
- var w;
3404
+ var O;
3393
3405
  s({
3394
3406
  element: "evento_combinadas_next",
3395
3407
  label: `${l} - OraculoSeccionEventoCombinadas - Click: Siguiente`,
@@ -3399,8 +3411,8 @@ function ho({
3399
3411
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
3400
3412
  },
3401
3413
  tags: { section: "OraculoSeccionEventoCombinadas" }
3402
- }), (w = f.current) == null || w.next();
3403
- }, I = () => {
3414
+ }), (O = f.current) == null || O.next();
3415
+ }, S = () => {
3404
3416
  s({
3405
3417
  element: "evento_combinadas_ver_mas",
3406
3418
  label: `${l} - OraculoSeccionEventoCombinadas - Click: Ver más`,
@@ -3411,25 +3423,25 @@ function ho({
3411
3423
  },
3412
3424
  tags: { section: "OraculoSeccionEventoCombinadas" }
3413
3425
  }), Ka();
3414
- }, M = de(() => u.filter((w) => w.combinadoTotal !== null), [u]);
3415
- async function N() {
3416
- var w, S, L, R;
3426
+ }, M = de(() => d.filter((O) => O.combinadoTotal !== null), [d]);
3427
+ async function E() {
3428
+ var O, w, L, R;
3417
3429
  try {
3418
- const y = await (await fetch(b)).json(), O = (R = (L = (S = (w = y == null ? void 0 : y.group) == null ? void 0 : w.groups) == null ? void 0 : S.map((W) => W.id)) == null ? void 0 : L.filter(Boolean)) == null ? void 0 : R.join(",");
3419
- if (!O) {
3430
+ const y = await (await fetch(b)).json(), I = (R = (L = (w = (O = y == null ? void 0 : y.group) == null ? void 0 : O.groups) == null ? void 0 : w.map((W) => W.id)) == null ? void 0 : L.filter(Boolean)) == null ? void 0 : R.join(",");
3431
+ if (!I) {
3420
3432
  console.error("Could not extract group ID");
3421
3433
  return;
3422
3434
  }
3423
- const F = `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`, P = await (await fetch(F)).json();
3424
- d(po(P.events, P.betOffers, P.prePackCoupons));
3425
- } catch (A) {
3426
- console.error("loadDataEventSpecial error:", A);
3435
+ const F = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${I}.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764283566783&prePackCouponTags=CUSTOM`, P = await (await fetch(F)).json();
3436
+ u(ro(P.events, P.betOffers, P.prePackCoupons));
3437
+ } catch ($) {
3438
+ console.error("loadDataEventSpecial error:", $);
3427
3439
  }
3428
3440
  }
3429
3441
  re(() => {
3430
- N();
3442
+ E();
3431
3443
  }, []);
3432
- const _ = i || void 0, $ = Ne("(max-width:950px)");
3444
+ const _ = i || void 0, C = Ne("(max-width:950px)");
3433
3445
  return M.length === 0 ? null : /* @__PURE__ */ t("section", { className: _, style: {
3434
3446
  // paddingLeft: 16,
3435
3447
  // paddingRight: 16,
@@ -3446,7 +3458,7 @@ function ho({
3446
3458
  ariaLabel: "Anterior",
3447
3459
  variant: "secondary",
3448
3460
  iconOnly: !0,
3449
- leftIcon: /* @__PURE__ */ t(Ve, {}),
3461
+ leftIcon: /* @__PURE__ */ t(De, {}),
3450
3462
  onClick: x,
3451
3463
  disabled: g.isStart
3452
3464
  }
@@ -3457,13 +3469,13 @@ function ho({
3457
3469
  ariaLabel: "Siguiente",
3458
3470
  variant: "secondary",
3459
3471
  iconOnly: !0,
3460
- rightIcon: /* @__PURE__ */ t(He, {}),
3472
+ rightIcon: /* @__PURE__ */ t(Ge, {}),
3461
3473
  onClick: v,
3462
3474
  disabled: g.isEnd
3463
3475
  }
3464
3476
  )
3465
3477
  ] }),
3466
- /* @__PURE__ */ t(ae, { variant: "secondary", onClick: I, children: "Ver más" })
3478
+ /* @__PURE__ */ t(ae, { variant: "secondary", onClick: S, children: "Ver más" })
3467
3479
  ] })
3468
3480
  ] }) }),
3469
3481
  /* @__PURE__ */ t(
@@ -3476,17 +3488,17 @@ function ho({
3476
3488
  options: { autoWidth: !0, trimSpace: "move" },
3477
3489
  useIndexAsKey: !0,
3478
3490
  enableHorizontalWheel: !0,
3479
- showRightGradient: !$,
3491
+ showRightGradient: !C,
3480
3492
  breakpoints: {
3481
3493
  768: { perPage: 1.2, gap: "12px", padding: { left: "24px", right: "24px" } }
3482
3494
  },
3483
- renderItem: (w) => /* @__PURE__ */ t(go, { coupon: w }),
3484
- onMove: ({ isStart: w, isEnd: S }) => m({ isStart: w, isEnd: S })
3495
+ renderItem: (O) => /* @__PURE__ */ t(lo, { coupon: O }),
3496
+ onMove: ({ isStart: O, isEnd: w }) => m({ isStart: O, isEnd: w })
3485
3497
  }
3486
3498
  )
3487
3499
  ] }) });
3488
3500
  }
3489
- function bo({}) {
3501
+ function co({}) {
3490
3502
  return /* @__PURE__ */ t(
3491
3503
  "div",
3492
3504
  {
@@ -3520,14 +3532,14 @@ function bo({}) {
3520
3532
  }
3521
3533
  );
3522
3534
  }
3523
- const _o = "oraculo__FadeItemWrapper-module__fadeWrapper___kFOH4", vo = {
3524
- fadeWrapper: _o
3535
+ const uo = "oraculo__FadeItemWrapper-module__fadeWrapper___kFOH4", mo = {
3536
+ fadeWrapper: uo
3525
3537
  };
3526
- function We({ children: e }) {
3527
- return /* @__PURE__ */ t("div", { className: vo.fadeWrapper, children: e });
3538
+ function Ve({ children: e }) {
3539
+ return /* @__PURE__ */ t("div", { className: mo.fadeWrapper, children: e });
3528
3540
  }
3529
- const yo = "oraculo__OraculoSeccionEventoEnVivo-module__padding___Sh8tD", xo = {
3530
- padding: yo
3541
+ const po = "oraculo__OraculoSeccionEventoEnVivo-module__padding___Sh8tD", fo = {
3542
+ padding: po
3531
3543
  };
3532
3544
  function $t({
3533
3545
  events: e,
@@ -3540,46 +3552,46 @@ function $t({
3540
3552
  return re(() => {
3541
3553
  if (!(!e || e.length === 0))
3542
3554
  return g.current && clearTimeout(g.current), g.current = setTimeout(() => {
3543
- var $, w;
3544
- const u = ($ = a.start) != null ? $ : 0, d = (w = a.end) != null ? w : 7, b = Math.max(0, u - o), x = Math.min(e.length - 1, d + o);
3545
- let v = b, I = x;
3555
+ var C, O;
3556
+ const d = (C = a.start) != null ? C : 0, u = (O = a.end) != null ? O : 7, b = Math.max(0, d - o), x = Math.min(e.length - 1, u + o);
3557
+ let v = b, S = x;
3546
3558
  const M = m.current;
3547
- M && (b > M.end && (v = M.end + 1), x < M.start && (I = M.start - 1)), m.current = { start: b, end: x };
3548
- const N = e.slice(v, I + 1).map((S) => S == null ? void 0 : S.id).filter((S) => !!S).filter((S) => !c.current.has(S)).filter((S) => !(S in s));
3549
- if (N.length === 0) return;
3550
- N.forEach((S) => c.current.add(S));
3559
+ M && (b > M.end && (v = M.end + 1), x < M.start && (S = M.start - 1)), m.current = { start: b, end: x };
3560
+ const E = e.slice(v, S + 1).map((w) => w == null ? void 0 : w.id).filter((w) => !!w).filter((w) => !c.current.has(w)).filter((w) => !(w in s));
3561
+ if (E.length === 0) return;
3562
+ E.forEach((w) => c.current.add(w));
3551
3563
  const _ = ++f.current;
3552
3564
  (async () => {
3553
3565
  try {
3554
- const S = await n(N);
3566
+ const w = await n(E);
3555
3567
  if (_ !== f.current) {
3556
- N.forEach((R) => c.current.delete(R));
3568
+ E.forEach((R) => c.current.delete(R));
3557
3569
  return;
3558
3570
  }
3559
- if (!(S != null && S.events)) {
3560
- N.forEach(
3571
+ if (!(w != null && w.events)) {
3572
+ E.forEach(
3561
3573
  (R) => c.current.delete(R)
3562
3574
  );
3563
3575
  return;
3564
3576
  }
3565
3577
  l((R) => {
3566
- const A = { ...R };
3567
- for (const [y, O] of Object.entries(S.events)) {
3578
+ const $ = { ...R };
3579
+ for (const [y, I] of Object.entries(w.events)) {
3568
3580
  const F = Number(y);
3569
- A[F] || (A[F] = O);
3581
+ $[F] || ($[F] = I);
3570
3582
  }
3571
- return A;
3583
+ return $;
3572
3584
  });
3573
3585
  const L = new Set(
3574
- Object.keys(S.events).map(Number)
3586
+ Object.keys(w.events).map(Number)
3575
3587
  );
3576
- N.forEach((R) => {
3588
+ E.forEach((R) => {
3577
3589
  c.current.delete(R);
3578
3590
  });
3579
- } catch (S) {
3580
- N.forEach(
3591
+ } catch (w) {
3592
+ E.forEach(
3581
3593
  (L) => c.current.delete(L)
3582
- ), console.error("Jersey fetch error", S);
3594
+ ), console.error("Jersey fetch error", w);
3583
3595
  }
3584
3596
  })();
3585
3597
  }, i), () => {
@@ -3590,7 +3602,7 @@ function $t({
3590
3602
  isPending: c.current
3591
3603
  };
3592
3604
  }
3593
- const So = (e) => {
3605
+ const go = (e) => {
3594
3606
  const a = ["esports", "cyber"];
3595
3607
  return e.filter((n) => {
3596
3608
  var s, l;
@@ -3598,8 +3610,8 @@ const So = (e) => {
3598
3610
  const i = typeof ((l = n == null ? void 0 : n.event) == null ? void 0 : l.group) == "string" ? n.event.group.toLowerCase() : "";
3599
3611
  return !a.some((c) => i.includes(c));
3600
3612
  });
3601
- }, wo = ve.memo(In);
3602
- function Oo({
3613
+ }, ho = ve.memo(_n);
3614
+ function bo({
3603
3615
  items: e,
3604
3616
  title: a = "En vivo",
3605
3617
  iconUrl: n = "https://d28gilnhu2bcbp.cloudfront.net/landing/1778868672728-evento-en-vivo.gif",
@@ -3610,39 +3622,39 @@ function Oo({
3610
3622
  { sport: "football", url: "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" },
3611
3623
  { sport: "basketball", url: "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/basketball/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" },
3612
3624
  { sport: "tennis", url: "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/tennis/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" }
3613
- ], l = Z(null), [c, f] = ee({ isStart: !0, isEnd: !1 }), [g, m] = ee(null), [u, d] = ee({ start: null, end: null }), [b, x] = ee(null), v = Z(!1), I = se(), M = ce(), N = pe(), _ = Z(/* @__PURE__ */ new Map()), $ = () => {
3625
+ ], l = Z(null), [c, f] = ee({ isStart: !0, isEnd: !1 }), [g, m] = ee(null), [d, u] = ee({ start: null, end: null }), [b, x] = ee(null), v = Z(!1), S = se(), M = ce(), E = pe(), _ = Z(/* @__PURE__ */ new Map()), C = () => {
3614
3626
  var B;
3615
- I({
3627
+ S({
3616
3628
  element: "evento_en_vivo_prev",
3617
3629
  label: `${M} - OraculoSeccionEventoEnVivo - Anterior`,
3618
3630
  target: "prev",
3619
3631
  event_type: "click",
3620
- module_id: N,
3632
+ module_id: E,
3621
3633
  metadata: {
3622
3634
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
3623
3635
  },
3624
3636
  tags: { section: "OraculoSeccionEventoEnVivo" }
3625
3637
  }), (B = l.current) == null || B.prev();
3626
- }, w = () => {
3638
+ }, O = () => {
3627
3639
  var B;
3628
- I({
3640
+ S({
3629
3641
  element: "evento_en_vivo_next",
3630
3642
  label: `${M} - OraculoSeccionEventoEnVivo - Siguiente`,
3631
3643
  target: "next",
3632
3644
  event_type: "click",
3633
- module_id: N,
3645
+ module_id: E,
3634
3646
  metadata: {
3635
3647
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
3636
3648
  },
3637
3649
  tags: { section: "OraculoSeccionEventoEnVivo" }
3638
3650
  }), (B = l.current) == null || B.next();
3639
- }, S = () => {
3640
- I({
3651
+ }, w = () => {
3652
+ S({
3641
3653
  element: "evento_en_vivo_view_more",
3642
3654
  label: `${M} - OraculoSeccionEventoEnVivo - Ver más`,
3643
3655
  target: "ver_mas",
3644
3656
  event_type: "click",
3645
- module_id: N,
3657
+ module_id: E,
3646
3658
  metadata: {
3647
3659
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
3648
3660
  },
@@ -3654,45 +3666,45 @@ function Oo({
3654
3666
  if (!v.current) {
3655
3667
  v.current = !0;
3656
3668
  try {
3657
- const D = await (await fetch("https://api.mktolimpo.com/api/kambi/eventos/orden")).json(), K = ((B = D == null ? void 0 : D.data) == null ? void 0 : B.event_ids) || [], Y = /* @__PURE__ */ new Map();
3669
+ const q = await (await fetch("https://api.mktolimpo.com/api/kambi/eventos/orden")).json(), K = ((B = q == null ? void 0 : q.data) == null ? void 0 : B.event_ids) || [], Y = /* @__PURE__ */ new Map();
3658
3670
  K.forEach((r, p) => Y.set(String(r), p)), _.current = Y;
3659
- } catch (G) {
3660
- console.error("Order fetch failed, using default sorting", G);
3671
+ } catch (H) {
3672
+ console.error("Order fetch failed, using default sorting", H);
3661
3673
  }
3662
3674
  }
3663
3675
  const P = await Promise.all(
3664
- s.map(async (G) => {
3676
+ s.map(async (H) => {
3665
3677
  try {
3666
- const D = await fetch(G.url);
3667
- if (!D.ok) throw new Error(`Failed to fetch ${G.sport}`);
3668
- const K = await D.json();
3678
+ const q = await fetch(H.url);
3679
+ if (!q.ok) throw new Error(`Failed to fetch ${H.sport}`);
3680
+ const K = await q.json();
3669
3681
  return {
3670
- sport: G.sport,
3682
+ sport: H.sport,
3671
3683
  events: K.events || []
3672
3684
  };
3673
- } catch (D) {
3674
- return console.error(`Error fetching ${G.sport}:`, D), { sport: G.sport, events: [] };
3685
+ } catch (q) {
3686
+ return console.error(`Error fetching ${H.sport}:`, q), { sport: H.sport, events: [] };
3675
3687
  }
3676
3688
  })
3677
3689
  );
3678
3690
  let W = [];
3679
- P.forEach(({ sport: G, events: D }) => {
3680
- const Y = So(D).map((r) => ({ ...r, _sportGroup: G }));
3691
+ P.forEach(({ sport: H, events: q }) => {
3692
+ const Y = go(q).map((r) => ({ ...r, _sportGroup: H }));
3681
3693
  W.push(...Y);
3682
3694
  });
3683
3695
  const V = {
3684
3696
  football: 2,
3685
3697
  basketball: 1,
3686
3698
  tennis: 0
3687
- }, H = W.sort((G, D) => {
3688
- var E, C;
3689
- const K = (E = V[G._sportGroup]) != null ? E : 1 / 0, Y = (C = V[D._sportGroup]) != null ? C : 1 / 0;
3699
+ }, D = W.sort((H, q) => {
3700
+ var k, N;
3701
+ const K = (k = V[H._sportGroup]) != null ? k : 1 / 0, Y = (N = V[q._sportGroup]) != null ? N : 1 / 0;
3690
3702
  if (K !== Y)
3691
3703
  return K - Y;
3692
- const r = _.current.get(String(G.event.id)), p = _.current.get(String(D.event.id));
3704
+ const r = _.current.get(String(H.event.id)), p = _.current.get(String(q.event.id));
3693
3705
  return (r !== void 0 ? r : 1 / 0) - (p !== void 0 ? p : 1 / 0);
3694
3706
  });
3695
- m(H);
3707
+ m(D);
3696
3708
  } catch (P) {
3697
3709
  console.error("LoadData Error:", P);
3698
3710
  }
@@ -3705,20 +3717,20 @@ function Oo({
3705
3717
  const { jerseys: R } = $t({
3706
3718
  events: (g == null ? void 0 : g.map((B) => B.event)) || [],
3707
3719
  // extract actual event objects
3708
- visibleRange: u,
3720
+ visibleRange: d,
3709
3721
  fetchJerseys: Ot,
3710
3722
  buffer: 3,
3711
3723
  // same as your previous BUFFER
3712
3724
  debounceMs: 300
3713
3725
  // same as your previous debouncedVisibleRange
3714
- }), A = i || void 0, y = g === null, O = de(() => y ? Array(4).fill({}) : (g == null ? void 0 : g.slice(0, 50)) || [], [y, g]), F = Ne("(max-width:950px)");
3715
- return !y && g.length === 0 ? null : /* @__PURE__ */ t("section", { className: A, style: {
3726
+ }), $ = i || void 0, y = g === null, I = de(() => y ? Array(4).fill({}) : (g == null ? void 0 : g.slice(0, 50)) || [], [y, g]), F = Ne("(max-width:950px)");
3727
+ return !y && g.length === 0 ? null : /* @__PURE__ */ t("section", { className: $, style: {
3716
3728
  // paddingLeft: 16,
3717
3729
  // paddingRight: 16,
3718
3730
  width: "100%",
3719
3731
  boxSizing: "border-box"
3720
3732
  }, children: /* @__PURE__ */ h(Q, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
3721
- /* @__PURE__ */ t("div", { className: xo.padding, children: /* @__PURE__ */ h(me, { spacing: 1.5, columns: "1fr auto ", justify: "start", children: [
3733
+ /* @__PURE__ */ t("div", { className: fo.padding, children: /* @__PURE__ */ h(me, { spacing: 1.5, columns: "1fr auto ", justify: "start", children: [
3722
3734
  /* @__PURE__ */ t(ye, { title: a, iconUrl: n, size: "md" }),
3723
3735
  /* @__PURE__ */ h("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
3724
3736
  /* @__PURE__ */ h(me, { spacing: 1, columns: "auto auto", children: [
@@ -3728,8 +3740,8 @@ function Oo({
3728
3740
  ariaLabel: "Anterior",
3729
3741
  variant: "secondary",
3730
3742
  iconOnly: !0,
3731
- leftIcon: /* @__PURE__ */ t(Ve, {}),
3732
- onClick: $,
3743
+ leftIcon: /* @__PURE__ */ t(De, {}),
3744
+ onClick: C,
3733
3745
  disabled: c.isStart
3734
3746
  }
3735
3747
  ),
@@ -3739,20 +3751,20 @@ function Oo({
3739
3751
  ariaLabel: "Siguiente",
3740
3752
  variant: "secondary",
3741
3753
  iconOnly: !0,
3742
- rightIcon: /* @__PURE__ */ t(He, {}),
3743
- onClick: w,
3754
+ rightIcon: /* @__PURE__ */ t(Ge, {}),
3755
+ onClick: O,
3744
3756
  disabled: c.isEnd
3745
3757
  }
3746
3758
  )
3747
3759
  ] }),
3748
- /* @__PURE__ */ t(ae, { variant: "secondary", onClick: S, children: "Ver más" })
3760
+ /* @__PURE__ */ t(ae, { variant: "secondary", onClick: w, children: "Ver más" })
3749
3761
  ] })
3750
3762
  ] }) }),
3751
3763
  /* @__PURE__ */ t(
3752
3764
  xe,
3753
3765
  {
3754
3766
  ref: l,
3755
- items: O,
3767
+ items: I,
3756
3768
  perPage: void 0,
3757
3769
  showRightGradient: !F,
3758
3770
  enableHorizontalWheel: !0,
@@ -3766,8 +3778,8 @@ function Oo({
3766
3778
  renderItem: (B) => {
3767
3779
  var V;
3768
3780
  const P = ((V = B.event) == null ? void 0 : V.id) || B.eventId, W = P in R ? R[P] : void 0;
3769
- return y ? /* @__PURE__ */ t(We, { children: /* @__PURE__ */ t(bo, {}) }) : /* @__PURE__ */ t(We, { children: /* @__PURE__ */ t(
3770
- wo,
3781
+ return y ? /* @__PURE__ */ t(Ve, { children: /* @__PURE__ */ t(co, {}) }) : /* @__PURE__ */ t(Ve, { children: /* @__PURE__ */ t(
3782
+ ho,
3771
3783
  {
3772
3784
  ...B,
3773
3785
  jersey: W
@@ -3776,14 +3788,14 @@ function Oo({
3776
3788
  },
3777
3789
  onMove: ({ isStart: B, isEnd: P, visibleStart: W, visibleEnd: V }) => {
3778
3790
  f(
3779
- (H) => H.isStart === B && H.isEnd === P ? H : { isStart: B, isEnd: P }
3780
- ), d({ start: W, end: V });
3791
+ (D) => D.isStart === B && D.isEnd === P ? D : { isStart: B, isEnd: P }
3792
+ ), u({ start: W, end: V });
3781
3793
  }
3782
3794
  }
3783
3795
  )
3784
3796
  ] }) });
3785
3797
  }
3786
- function Io() {
3798
+ function _o() {
3787
3799
  return /* @__PURE__ */ h("div", { className: Te.cardContainer, children: [
3788
3800
  /* @__PURE__ */ t(xt, { title: "" }),
3789
3801
  /* @__PURE__ */ t("div", { className: Te.cardBackground, children: /* @__PURE__ */ h(Q, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
@@ -3811,13 +3823,13 @@ function Io() {
3811
3823
  ] }) })
3812
3824
  ] });
3813
3825
  }
3814
- const To = "oraculo__OraculoSeccionEventoSemana-module__wrapper___eqVq-", Eo = "oraculo__OraculoSeccionEventoSemana-module__container___5yFQs", Co = "oraculo__OraculoSeccionEventoSemana-module__buttonWrapper___-6IDT", ko = "oraculo__OraculoSeccionEventoSemana-module__padding___vfUcV", Be = {
3815
- wrapper: To,
3816
- container: Eo,
3817
- buttonWrapper: Co,
3818
- padding: ko
3819
- }, No = ve.memo(Mn);
3820
- async function $o(e, a = 2, n) {
3826
+ const vo = "oraculo__OraculoSeccionEventoSemana-module__wrapper___eqVq-", yo = "oraculo__OraculoSeccionEventoSemana-module__container___5yFQs", xo = "oraculo__OraculoSeccionEventoSemana-module__buttonWrapper___-6IDT", So = "oraculo__OraculoSeccionEventoSemana-module__padding___vfUcV", Be = {
3827
+ wrapper: vo,
3828
+ container: yo,
3829
+ buttonWrapper: xo,
3830
+ padding: So
3831
+ }, wo = ve.memo(Tn);
3832
+ async function Oo(e, a = 2, n) {
3821
3833
  const o = [];
3822
3834
  for (let i = 0; i < e.length; i += a) {
3823
3835
  if (n.aborted)
@@ -3829,12 +3841,12 @@ async function $o(e, a = 2, n) {
3829
3841
  }
3830
3842
  return o;
3831
3843
  }
3832
- function Ao(e) {
3844
+ function Io(e) {
3833
3845
  return [...e].sort(
3834
3846
  (a, n) => new Date(a.start).getTime() - new Date(n.start).getTime()
3835
3847
  );
3836
3848
  }
3837
- function Mo(e) {
3849
+ function To(e) {
3838
3850
  const a = /* @__PURE__ */ new Date(), n = new Date(a.getTime() + 480 * 60 * 60 * 1e3);
3839
3851
  return e.filter((o) => {
3840
3852
  if (!o.start) return !1;
@@ -3842,7 +3854,7 @@ function Mo(e) {
3842
3854
  return i >= a && i <= n;
3843
3855
  });
3844
3856
  }
3845
- function Bo(e, a) {
3857
+ function Eo(e, a) {
3846
3858
  const o = a.filter((i) => {
3847
3859
  var s;
3848
3860
  return ((s = i.betOfferType) == null ? void 0 : s.id) === 2;
@@ -3852,7 +3864,7 @@ function Bo(e, a) {
3852
3864
  outcome: o[i.id]
3853
3865
  }));
3854
3866
  }
3855
- function Lo({
3867
+ function Co({
3856
3868
  items: e,
3857
3869
  title: a = "En vivo",
3858
3870
  iconUrl: n,
@@ -3863,7 +3875,7 @@ function Lo({
3863
3875
  { englishName: "Football", termPath: "football", limit: 5 },
3864
3876
  { englishName: "Basketball", termPath: "basketball", limit: 2 },
3865
3877
  { englishName: "Tennis", termPath: "tennis", limit: 2 }
3866
- ], g = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE", m = Z(null), [u, d] = ee({ isStart: !0, isEnd: !1 }), [b, x] = ee(null), [v, I] = ee({ start: null, end: null }), M = "channel_id=1&client_id=200&competitionId=undefined&lang=es_PE&market=PE&useCombined=true", N = () => {
3878
+ ], g = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE", m = Z(null), [d, u] = ee({ isStart: !0, isEnd: !1 }), [b, x] = ee(null), [v, S] = ee({ start: null, end: null }), M = "channel_id=1&client_id=200&competitionId=undefined&lang=es_PE&market=PE&useCombined=true", E = () => {
3867
3879
  s({
3868
3880
  element: "evento_semana_view_more",
3869
3881
  label: `${l} - OraculoSeccionEventoSemana - Ver más`,
@@ -3878,32 +3890,32 @@ function Lo({
3878
3890
  };
3879
3891
  async function _(y) {
3880
3892
  var B, P, W;
3881
- let O = [], F = [];
3893
+ let I = [], F = [];
3882
3894
  try {
3883
3895
  const V = await fetch(
3884
3896
  "https://api.mktolimpo.com/api/kambi/eventos/orden",
3885
3897
  { signal: y }
3886
3898
  );
3887
3899
  if (V.ok) {
3888
- const H = await V.json();
3889
- O = ((B = H == null ? void 0 : H.data) == null ? void 0 : B.group_ids) || [], F = ((P = H == null ? void 0 : H.data) == null ? void 0 : P.event_ids) || [];
3900
+ const D = await V.json();
3901
+ I = ((B = D == null ? void 0 : D.data) == null ? void 0 : B.group_ids) || [], F = ((P = D == null ? void 0 : D.data) == null ? void 0 : P.event_ids) || [];
3890
3902
  }
3891
3903
  } catch (V) {
3892
3904
  V.name !== "AbortError" && console.warn("Order API not available, using default group order");
3893
3905
  return;
3894
3906
  }
3895
3907
  try {
3896
- const H = await (await fetch(g, { signal: y })).json(), G = (W = H == null ? void 0 : H.group) == null ? void 0 : W.groups;
3897
- if (!Array.isArray(G)) {
3908
+ const D = await (await fetch(g, { signal: y })).json(), H = (W = D == null ? void 0 : D.group) == null ? void 0 : W.groups;
3909
+ if (!Array.isArray(H)) {
3898
3910
  console.error("Sport groups structure invalid");
3899
3911
  return;
3900
3912
  }
3901
- const D = O.length > 0 ? new Map(O.map((Y, r) => [String(Y), r])) : null, K = [];
3913
+ const q = I.length > 0 ? new Map(I.map((Y, r) => [String(Y), r])) : null, K = [];
3902
3914
  for (const Y of f) {
3903
- const r = G.find(
3904
- (C) => {
3905
- var q;
3906
- return ((q = C.englishName) == null ? void 0 : q.toLowerCase()) === Y.englishName.toLowerCase();
3915
+ const r = H.find(
3916
+ (N) => {
3917
+ var z;
3918
+ return ((z = N.englishName) == null ? void 0 : z.toLowerCase()) === Y.englishName.toLowerCase();
3907
3919
  }
3908
3920
  );
3909
3921
  if (!r || !Array.isArray(r.groups)) {
@@ -3911,50 +3923,50 @@ function Lo({
3911
3923
  continue;
3912
3924
  }
3913
3925
  let p = [...r.groups];
3914
- D && p.sort((C, q) => {
3915
- const J = D.get(String(C.id)), ne = D.get(String(q.id));
3926
+ q && p.sort((N, z) => {
3927
+ const J = q.get(String(N.id)), ne = q.get(String(z.id));
3916
3928
  return (J !== void 0 ? J : 1 / 0) - (ne !== void 0 ? ne : 1 / 0);
3917
3929
  });
3918
- const T = p.slice(0, Y.limit), k = (C) => {
3919
- const q = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/${Y.termPath}`;
3920
- if (C.groups && C.groups.length > 0) {
3921
- const J = C.groups[0];
3922
- return `${q}/${C.termKey}/${J.termKey}/all/matches.json?${M}`;
3930
+ const T = p.slice(0, Y.limit), A = (N) => {
3931
+ const z = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/${Y.termPath}`;
3932
+ if (N.groups && N.groups.length > 0) {
3933
+ const J = N.groups[0];
3934
+ return `${z}/${N.termKey}/${J.termKey}/all/matches.json?${M}`;
3923
3935
  }
3924
- return `${q}/${C.termKey}/all/all/matches.json?${M}`;
3925
- }, E = T.map(k);
3926
- K.push(...E);
3936
+ return `${z}/${N.termKey}/all/all/matches.json?${M}`;
3937
+ }, k = T.map(A);
3938
+ K.push(...k);
3927
3939
  }
3928
- $(K, F, y);
3940
+ C(K, F, y);
3929
3941
  } catch (V) {
3930
3942
  console.error("Error in fetching week events:", V);
3931
3943
  }
3932
3944
  }
3933
- async function $(y, O, F) {
3945
+ async function C(y, I, F) {
3934
3946
  try {
3935
- const B = await $o(y, 2, F);
3947
+ const B = await Oo(y, 2, F);
3936
3948
  let P = [], W = [];
3937
- B.forEach((D) => {
3938
- D.events && (P.push(...D.events.map((K) => K.event)), W.push(
3939
- ...D.events.flatMap((K) => K.betOffers || [])
3949
+ B.forEach((q) => {
3950
+ q.events && (P.push(...q.events.map((K) => K.event)), W.push(
3951
+ ...q.events.flatMap((K) => K.betOffers || [])
3940
3952
  ));
3941
3953
  });
3942
- const V = Bo(P, W), H = Ao(Mo(V));
3943
- let G = H;
3944
- if (O.length > 0) {
3945
- const D = new Map(
3946
- O.map((K, Y) => [
3954
+ const V = Eo(P, W), D = Io(To(V));
3955
+ let H = D;
3956
+ if (I.length > 0) {
3957
+ const q = new Map(
3958
+ I.map((K, Y) => [
3947
3959
  String(K),
3948
3960
  Y
3949
3961
  ])
3950
3962
  );
3951
- G = [...H].sort((K, Y) => {
3952
- const r = D.get(String(K.id)), p = D.get(String(Y.id));
3963
+ H = [...D].sort((K, Y) => {
3964
+ const r = q.get(String(K.id)), p = q.get(String(Y.id));
3953
3965
  return r !== void 0 && p !== void 0 ? r - p : r !== void 0 ? -1 : p !== void 0 ? 1 : 0;
3954
3966
  });
3955
3967
  }
3956
3968
  if (F.aborted) return;
3957
- x(G);
3969
+ x(H);
3958
3970
  } catch (B) {
3959
3971
  console.error("Error loading events:", B);
3960
3972
  }
@@ -3966,7 +3978,7 @@ function Lo({
3966
3978
  y.abort();
3967
3979
  };
3968
3980
  }, [e]);
3969
- const w = i || void 0, S = {
3981
+ const O = i || void 0, w = {
3970
3982
  paddingLeft: 0,
3971
3983
  width: "100%",
3972
3984
  boxSizing: "border-box"
@@ -3976,8 +3988,8 @@ function Lo({
3976
3988
  fetchJerseys: Ot,
3977
3989
  buffer: 2,
3978
3990
  debounceMs: 250
3979
- }), R = b === null, A = Ne("(max-width:950px)");
3980
- return !R && b.length === 0 ? null : /* @__PURE__ */ t("section", { className: w, style: S, children: /* @__PURE__ */ h("div", { className: `${Be.wrapper} ${Be.padding}`, children: [
3991
+ }), R = b === null, $ = Ne("(max-width:950px)");
3992
+ return !R && b.length === 0 ? null : /* @__PURE__ */ t("section", { className: O, style: w, children: /* @__PURE__ */ h("div", { className: `${Be.wrapper} ${Be.padding}`, children: [
3981
3993
  /* @__PURE__ */ t("div", { className: Be.container, children: /* @__PURE__ */ h(Q, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
3982
3994
  /* @__PURE__ */ t(ye, { title: "Eventos de la semana" }),
3983
3995
  /* @__PURE__ */ t("div", { className: Be.buttonWrapper, children: /* @__PURE__ */ t(
@@ -3987,7 +3999,7 @@ function Lo({
3987
3999
  size: "lg",
3988
4000
  fullWidth: !0,
3989
4001
  onClick: () => {
3990
- N();
4002
+ E();
3991
4003
  },
3992
4004
  children: "Ver más"
3993
4005
  }
@@ -4001,7 +4013,7 @@ function Lo({
4001
4013
  perPage: 3.5,
4002
4014
  gap: "16px",
4003
4015
  enableHorizontalWheel: !0,
4004
- showRightGradient: !A,
4016
+ showRightGradient: !$,
4005
4017
  options: { autoWidth: !0, trimSpace: !0 },
4006
4018
  breakpoints: {
4007
4019
  1024: {
@@ -4012,11 +4024,11 @@ function Lo({
4012
4024
  }
4013
4025
  },
4014
4026
  renderItem: (y) => {
4015
- const O = y.id, F = O in L ? L[O] : void 0;
4016
- return R ? /* @__PURE__ */ t(We, { children: /* @__PURE__ */ t(Io, {}) }) : /* @__PURE__ */ t(We, { children: /* @__PURE__ */ t(No, { event: y, jersey: F }) });
4027
+ const I = y.id, F = I in L ? L[I] : void 0;
4028
+ return R ? /* @__PURE__ */ t(Ve, { children: /* @__PURE__ */ t(_o, {}) }) : /* @__PURE__ */ t(Ve, { children: /* @__PURE__ */ t(wo, { event: y, jersey: F }) });
4017
4029
  },
4018
- onMove: ({ isStart: y, isEnd: O, visibleStart: F, visibleEnd: B, source: P }) => {
4019
- d({ isStart: y, isEnd: O }), I({
4030
+ onMove: ({ isStart: y, isEnd: I, visibleStart: F, visibleEnd: B, source: P }) => {
4031
+ u({ isStart: y, isEnd: I }), S({
4020
4032
  start: F,
4021
4033
  end: B
4022
4034
  }), P === "user" && s({
@@ -4030,7 +4042,7 @@ function Lo({
4030
4042
  visibleStart: F,
4031
4043
  visibleEnd: B,
4032
4044
  isStart: y,
4033
- isEnd: O
4045
+ isEnd: I
4034
4046
  },
4035
4047
  tags: { section: "OraculoSeccionEventoSemana" }
4036
4048
  });
@@ -4039,9 +4051,9 @@ function Lo({
4039
4051
  ) })
4040
4052
  ] }) });
4041
4053
  }
4042
- const Ro = -300, Po = (e) => /[zZ]|[+-]\d{2}:\d{2}$/.test(e), pt = (e) => {
4054
+ const ko = -300, No = (e) => /[zZ]|[+-]\d{2}:\d{2}$/.test(e), pt = (e) => {
4043
4055
  if (!e) return null;
4044
- if (Po(e)) {
4056
+ if (No(e)) {
4045
4057
  const f = new Date(e).getTime();
4046
4058
  return Number.isNaN(f) ? null : f;
4047
4059
  }
@@ -4054,32 +4066,32 @@ const Ro = -300, Po = (e) => /[zZ]|[+-]\d{2}:\d{2}$/.test(e), pt = (e) => {
4054
4066
  Number(n),
4055
4067
  Number(o) - 1,
4056
4068
  Number(i),
4057
- Number(s) - Ro / 60,
4069
+ Number(s) - ko / 60,
4058
4070
  Number(l),
4059
4071
  Number(c)
4060
4072
  );
4061
- }, Fo = (e, a) => {
4062
- var c, f, g, m, u, d, b, x, v;
4063
- const n = (g = (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 ? g : [], o = (d = (u = e == null ? void 0 : e.startAt) != null ? u : (m = n.find((I) => (I == null ? void 0 : I.name) === "startAt")) == null ? void 0 : m.value) != null ? d : null, i = (v = (x = e == null ? void 0 : e.endAt) != null ? x : (b = n.find((I) => (I == null ? void 0 : I.name) === "endAt")) == null ? void 0 : b.value) != null ? v : null, s = pt(o), l = pt(i);
4073
+ }, $o = (e, a) => {
4074
+ var c, f, g, m, d, u, b, x, v;
4075
+ const n = (g = (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 ? g : [], o = (u = (d = e == null ? void 0 : e.startAt) != null ? d : (m = n.find((S) => (S == null ? void 0 : S.name) === "startAt")) == null ? void 0 : m.value) != null ? u : null, i = (v = (x = e == null ? void 0 : e.endAt) != null ? x : (b = n.find((S) => (S == null ? void 0 : S.name) === "endAt")) == null ? void 0 : b.value) != null ? v : null, s = pt(o), l = pt(i);
4064
4076
  return !(s != null && a < s || l != null && a >= l);
4065
4077
  };
4066
- function qo({
4078
+ function Ao({
4067
4079
  backgrounds: e,
4068
4080
  items: a,
4069
4081
  hideItems: n,
4070
4082
  user: o = null
4071
4083
  }) {
4072
4084
  var Y;
4073
- const [i, s] = ee(0), l = se(), c = ce(), f = pe(), g = Z(null), m = Z(!1), u = Z(!1), [d, b] = ee(() => Date.now()), x = ue("setDepositActionGlobal"), v = ue("setAbrirLiveActionGlobal"), I = ue("openLoginWithRedirect"), M = (r) => [...r != null ? r : []].map((p, T) => ({ item: p, index: T })).sort((p, T) => {
4074
- var C, q;
4075
- const k = (C = p.item.order) != null ? C : Number.MAX_SAFE_INTEGER, E = (q = T.item.order) != null ? q : Number.MAX_SAFE_INTEGER;
4076
- return k - E || p.index - T.index;
4077
- }).map(({ item: p }) => p), N = de(() => M(a), [a]), _ = de(() => {
4085
+ const [i, s] = ee(0), l = se(), c = ce(), f = pe(), g = Z(null), m = Z(!1), d = Z(!1), [u, b] = ee(() => Date.now()), x = ue("setDepositActionGlobal"), v = ue("setAbrirLiveActionGlobal"), S = ue("openLoginWithRedirect"), M = (r) => [...r != null ? r : []].map((p, T) => ({ item: p, index: T })).sort((p, T) => {
4086
+ var N, z;
4087
+ const A = (N = p.item.order) != null ? N : Number.MAX_SAFE_INTEGER, k = (z = T.item.order) != null ? z : Number.MAX_SAFE_INTEGER;
4088
+ return A - k || p.index - T.index;
4089
+ }).map(({ item: p }) => p), E = de(() => M(a), [a]), _ = de(() => {
4078
4090
  const r = (e != null ? e : []).filter(
4079
- (p) => Fo(p, d)
4091
+ (p) => $o(p, u)
4080
4092
  );
4081
4093
  return M(r);
4082
- }, [e, d]), $ = _.length || 1, w = !_ || _.length === 0, S = !w && _.length > 1, L = !n && N.length > 0;
4094
+ }, [e, u]), C = _.length || 1, O = !_ || _.length === 0, w = !O && _.length > 1, L = !n && E.length > 0;
4083
4095
  Je("(max-width:950px)");
4084
4096
  const R = "#B5B5B5";
4085
4097
  re(() => {
@@ -4088,7 +4100,7 @@ function qo({
4088
4100
  }, 3e4);
4089
4101
  return () => window.clearInterval(r);
4090
4102
  }, []);
4091
- const A = {
4103
+ const $ = {
4092
4104
  position: "absolute",
4093
4105
  top: "50%",
4094
4106
  transform: "translateY(-50%)",
@@ -4128,10 +4140,10 @@ function qo({
4128
4140
  }, 500);
4129
4141
  return () => clearTimeout(r);
4130
4142
  }, []);
4131
- const O = (r, p, T) => {
4132
- var q, J;
4133
- const k = !!p.idFunction, E = !!p.href;
4134
- if (k)
4143
+ const I = (r, p, T) => {
4144
+ var z, J;
4145
+ const A = !!p.idFunction, k = !!p.href;
4146
+ if (A)
4135
4147
  switch (r.preventDefault(), r.stopPropagation(), p.idFunction) {
4136
4148
  case "deposito":
4137
4149
  x == null || x(!0);
@@ -4142,14 +4154,14 @@ function qo({
4142
4154
  default:
4143
4155
  return;
4144
4156
  }
4145
- if (!E) {
4157
+ if (!k) {
4146
4158
  r.preventDefault(), r.stopPropagation();
4147
4159
  return;
4148
4160
  }
4149
- const C = ((J = (q = p.href) == null ? void 0 : q.split("/").pop()) == null ? void 0 : J.split(".")[0]) || p.label || p.id || `banner_${T + 1}`;
4161
+ const N = ((J = (z = p.href) == null ? void 0 : z.split("/").pop()) == null ? void 0 : J.split(".")[0]) || p.label || p.id || `banner_${T + 1}`;
4150
4162
  l({
4151
4163
  element: "banner_carousel",
4152
- label: `${c} - OraculoSeccionBanners - Banner click: ${C}`,
4164
+ label: `${c} - OraculoSeccionBanners - Banner click: ${N}`,
4153
4165
  target: p.href || "no_url",
4154
4166
  event_type: "click",
4155
4167
  module_id: f,
@@ -4180,7 +4192,7 @@ function qo({
4180
4192
  item_label: r.label || "no_label"
4181
4193
  }
4182
4194
  }), !o && r.label == "MISIONES") {
4183
- I == null || I((p = r.href) != null ? p : "");
4195
+ S == null || S((p = r.href) != null ? p : "");
4184
4196
  return;
4185
4197
  }
4186
4198
  if (r.onClick) {
@@ -4188,36 +4200,36 @@ function qo({
4188
4200
  return;
4189
4201
  }
4190
4202
  r.href && typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(r.href);
4191
- }, B = 5e3, P = Z(null), W = !w && ((Y = _ == null ? void 0 : _.length) != null ? Y : 0) > 1, V = () => {
4203
+ }, B = 5e3, P = Z(null), W = !O && ((Y = _ == null ? void 0 : _.length) != null ? Y : 0) > 1, V = () => {
4192
4204
  P.current != null && (window.clearTimeout(P.current), P.current = null);
4193
- }, H = () => {
4205
+ }, D = () => {
4194
4206
  V(), W && (P.current = window.setTimeout(() => {
4195
4207
  var r;
4196
- u.current = !0, (r = g.current) == null || r.next();
4208
+ d.current = !0, (r = g.current) == null || r.next();
4197
4209
  }, B));
4198
4210
  };
4199
- re(() => (H(), () => V()), [W, B]);
4200
- const G = (r) => {
4211
+ re(() => (D(), () => V()), [W, B]);
4212
+ const H = (r) => {
4201
4213
  var p;
4202
4214
  r.preventDefault(), r.stopPropagation(), V(), (p = g.current) == null || p.prev();
4203
- }, D = (r) => {
4215
+ }, q = (r) => {
4204
4216
  var p;
4205
4217
  r.preventDefault(), r.stopPropagation(), V(), (p = g.current) == null || p.next();
4206
4218
  }, K = (r) => {
4207
- var k, E, C, q;
4208
- const p = (r % $ + $) % $;
4219
+ var A, k, N, z;
4220
+ const p = (r % C + C) % C;
4209
4221
  if (!m.current) return;
4210
- const T = (k = _ == null ? void 0 : _[p]) != null && k.href ? ((C = (E = _[p].href) == null ? void 0 : E.split("/").pop()) == null ? void 0 : C.split(".")[0]) || `banner_${p + 1}` : `banner_${p + 1}`;
4222
+ const T = (A = _ == null ? void 0 : _[p]) != null && A.href ? ((N = (k = _[p].href) == null ? void 0 : k.split("/").pop()) == null ? void 0 : N.split(".")[0]) || `banner_${p + 1}` : `banner_${p + 1}`;
4211
4223
  l({
4212
4224
  element: "banner_carousel",
4213
4225
  label: `${c} - OraculoSeccionBanners - Banner view: Slide ${p + 1} - ${T}`,
4214
- target: ((q = _ == null ? void 0 : _[p]) == null ? void 0 : q.href) || "no_url",
4226
+ target: ((z = _ == null ? void 0 : _[p]) == null ? void 0 : z.href) || "no_url",
4215
4227
  event_type: "view",
4216
4228
  module_id: f,
4217
4229
  metadata: {
4218
4230
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
4219
4231
  slide_index: p + 1,
4220
- total_slides: $,
4232
+ total_slides: C,
4221
4233
  interaction_type: "manual_slide"
4222
4234
  },
4223
4235
  tags: { banner_position: String(p + 1) }
@@ -4267,29 +4279,29 @@ function qo({
4267
4279
  enableHorizontalWheel: !0,
4268
4280
  options: y,
4269
4281
  onMove: ({ index: r, source: p }) => {
4270
- const T = (r % $ + $) % $;
4282
+ const T = (r % C + C) % C;
4271
4283
  s(T);
4272
- const k = u.current;
4273
- u.current = !1, p === "user" && (H(), k || K(r));
4284
+ const A = d.current;
4285
+ d.current = !1, p === "user" && (D(), A || K(r));
4274
4286
  },
4275
4287
  renderItem: (r, p) => {
4276
- var q, J, ne;
4277
- const T = !!r.idFunction, k = !!r.href, E = k && !T, C = T || k;
4288
+ var z, J, ne;
4289
+ const T = !!r.idFunction, A = !!r.href, k = A && !T, N = T || A;
4278
4290
  return /* @__PURE__ */ h(
4279
4291
  le,
4280
4292
  {
4281
- component: E ? "a" : "div",
4282
- href: E ? r.href : void 0,
4283
- target: E ? (q = r.target) != null ? q : "_self" : void 0,
4284
- rel: E && r.target === "_blank" ? "noopener noreferrer" : void 0,
4285
- onClick: (oe) => O(oe, r, p),
4293
+ component: k ? "a" : "div",
4294
+ href: k ? r.href : void 0,
4295
+ target: k ? (z = r.target) != null ? z : "_self" : void 0,
4296
+ rel: k && r.target === "_blank" ? "noopener noreferrer" : void 0,
4297
+ onClick: (oe) => I(oe, r, p),
4286
4298
  sx: {
4287
4299
  position: "relative",
4288
4300
  width: "100%",
4289
4301
  height: "100%",
4290
4302
  display: "block",
4291
4303
  textDecoration: "none",
4292
- cursor: C ? "pointer" : "default"
4304
+ cursor: N ? "pointer" : "default"
4293
4305
  },
4294
4306
  children: [
4295
4307
  /* @__PURE__ */ h(le, { component: "picture", sx: { position: "absolute", inset: 0, lineHeight: 0 }, children: [
@@ -4339,33 +4351,33 @@ function qo({
4339
4351
  )
4340
4352
  }
4341
4353
  ),
4342
- S && /* @__PURE__ */ h(te, { children: [
4354
+ w && /* @__PURE__ */ h(te, { children: [
4343
4355
  /* @__PURE__ */ t(
4344
4356
  Qe,
4345
4357
  {
4346
4358
  "aria-label": "Anterior",
4347
- onClick: G,
4359
+ onClick: H,
4348
4360
  sx: {
4349
- ...A,
4361
+ ...$,
4350
4362
  left: "120px",
4351
4363
  "@media (max-width:1024px)": { left: 24 },
4352
4364
  "@media (max-width:786px)": { display: "none" }
4353
4365
  },
4354
- children: /* @__PURE__ */ t(Ve, {})
4366
+ children: /* @__PURE__ */ t(De, {})
4355
4367
  }
4356
4368
  ),
4357
4369
  /* @__PURE__ */ t(
4358
4370
  Qe,
4359
4371
  {
4360
4372
  "aria-label": "Siguiente",
4361
- onClick: D,
4373
+ onClick: q,
4362
4374
  sx: {
4363
- ...A,
4375
+ ...$,
4364
4376
  right: "120px",
4365
4377
  "@media (max-width:1024px)": { right: 24 },
4366
4378
  "@media (max-width:786px)": { display: "none" }
4367
4379
  },
4368
- children: /* @__PURE__ */ t(He, {})
4380
+ children: /* @__PURE__ */ t(Ge, {})
4369
4381
  }
4370
4382
  )
4371
4383
  ] }),
@@ -4384,11 +4396,11 @@ function qo({
4384
4396
  children: /* @__PURE__ */ t(
4385
4397
  yt,
4386
4398
  {
4387
- total: $,
4399
+ total: C,
4388
4400
  active: i,
4389
4401
  durationMs: B
4390
4402
  },
4391
- `${i}-${$}`
4403
+ `${i}-${C}`
4392
4404
  )
4393
4405
  }
4394
4406
  )
@@ -4413,7 +4425,7 @@ function qo({
4413
4425
  boxShadow: "0 10px 24px rgba(0,0,0,.35)",
4414
4426
  zIndex: 3
4415
4427
  },
4416
- children: N == null ? void 0 : N.map((r) => /* @__PURE__ */ h(
4428
+ children: E == null ? void 0 : E.map((r) => /* @__PURE__ */ h(
4417
4429
  le,
4418
4430
  {
4419
4431
  sx: {
@@ -4530,7 +4542,7 @@ function qo({
4530
4542
  }
4531
4543
  );
4532
4544
  }
4533
- const zo = [
4545
+ const Mo = [
4534
4546
  { src: "https://d28gilnhu2bcbp.cloudfront.net/landing/IBK.svg", alt: "Interbank" },
4535
4547
  { src: "https://d28gilnhu2bcbp.cloudfront.net/landing/Yape.svg", alt: "Yape" },
4536
4548
  { src: "https://d28gilnhu2bcbp.cloudfront.net/landing/BCP.png", alt: "BCP" },
@@ -4540,9 +4552,9 @@ const zo = [
4540
4552
  { src: "https://d28gilnhu2bcbp.cloudfront.net/landing/niubiz.svg", alt: "Niubiz" },
4541
4553
  { src: "https://d28gilnhu2bcbp.cloudfront.net/landing/bbva.png", alt: "BBVA" }
4542
4554
  ];
4543
- function Uo({
4555
+ function Bo({
4544
4556
  title: e = "Medios de pago",
4545
- items: a = zo
4557
+ items: a = Mo
4546
4558
  }) {
4547
4559
  const n = Math.ceil(a.length / 2), o = a.slice(0, n), i = a.slice(n);
4548
4560
  return /* @__PURE__ */ h(le, { component: "section", "aria-labelledby": "mp-title", sx: { color: "#fff" }, children: [
@@ -4603,8 +4615,8 @@ function Uo({
4603
4615
  function At({
4604
4616
  children: e
4605
4617
  }) {
4606
- const a = Dt(), n = ve.useMemo(
4607
- () => Wt(a, {
4618
+ const a = Wt(), n = ve.useMemo(
4619
+ () => Vt(a, {
4608
4620
  typography: { fontFamily: "var(--orc-font)" },
4609
4621
  components: {
4610
4622
  MuiTypography: {
@@ -4616,31 +4628,31 @@ function At({
4616
4628
  }),
4617
4629
  [a]
4618
4630
  );
4619
- return /* @__PURE__ */ h(Vt, { theme: n, children: [
4620
- /* @__PURE__ */ t(Ht, {}),
4631
+ return /* @__PURE__ */ h(Dt, { theme: n, children: [
4632
+ /* @__PURE__ */ t(Gt, {}),
4621
4633
  e
4622
4634
  ] });
4623
4635
  }
4624
- function ur({
4636
+ function or({
4625
4637
  docId: e = "Landing: home",
4626
4638
  moduleId: a = 301,
4627
4639
  children: n
4628
4640
  }) {
4629
4641
  return /* @__PURE__ */ t(At, { children: /* @__PURE__ */ t(Tt, { docId: e, moduleId: a, children: n }) });
4630
4642
  }
4631
- const Do = {
4632
- OraculoSeccionDestacados: Ln,
4633
- OraculoSeccionTopJuegos: Fn,
4634
- OraculoSeccionCasinoEnVivo: Qn,
4635
- OraculoSeccionCasino: to,
4636
- OraculoSeccionVirtuales: ro,
4637
- OraculoSeccionClubOlimpo: so,
4638
- OraculoSeccionBonoBienvenida: lo,
4639
- OraculoSeccionBanners: qo,
4640
- OraculoSeccionMediosPago: Uo,
4641
- OraculoSeccionEventoEnVivo: Oo,
4642
- OraculoSeccionEventoSemana: Lo,
4643
- OraculoSeccionEventoCombinadas: ho
4643
+ const Lo = {
4644
+ OraculoSeccionDestacados: Cn,
4645
+ OraculoSeccionTopJuegos: $n,
4646
+ OraculoSeccionCasinoEnVivo: Gn,
4647
+ OraculoSeccionCasino: jn,
4648
+ OraculoSeccionVirtuales: Qn,
4649
+ OraculoSeccionClubOlimpo: to,
4650
+ OraculoSeccionBonoBienvenida: eo,
4651
+ OraculoSeccionBanners: Ao,
4652
+ OraculoSeccionMediosPago: Bo,
4653
+ OraculoSeccionEventoEnVivo: bo,
4654
+ OraculoSeccionEventoSemana: Co,
4655
+ OraculoSeccionEventoCombinadas: so
4644
4656
  }, Le = {
4645
4657
  sections: [
4646
4658
  {
@@ -6009,7 +6021,7 @@ const Do = {
6009
6021
  componentKey: "OraculoSeccionMediosPago"
6010
6022
  }
6011
6023
  ]
6012
- }, Wo = (e) => typeof e == "function" || e && typeof e == "object" && "$$typeof" in e, Vo = (e) => /^OraculoSeccion[A-Z]/.test(e);
6024
+ }, Ro = (e) => typeof e == "function" || e && typeof e == "object" && "$$typeof" in e, Po = (e) => /^OraculoSeccion[A-Z]/.test(e);
6013
6025
  function Ae(e) {
6014
6026
  return e && Array.isArray(e.sections) ? e.sections.slice().sort((a, n) => {
6015
6027
  var o, i;
@@ -6035,11 +6047,11 @@ function Ae(e) {
6035
6047
  };
6036
6048
  }) : [];
6037
6049
  }
6038
- const Ho = Object.fromEntries(
6039
- Object.entries(Do).filter(
6040
- ([e, a]) => Vo(e) && Wo(a)
6050
+ const Fo = Object.fromEntries(
6051
+ Object.entries(Lo).filter(
6052
+ ([e, a]) => Po(e) && Ro(a)
6041
6053
  )
6042
- ), Go = (e) => {
6054
+ ), zo = (e) => {
6043
6055
  try {
6044
6056
  return Object.fromEntries(e != null ? e : []);
6045
6057
  } catch {
@@ -6051,7 +6063,7 @@ class ft extends Error {
6051
6063
  super(`HTTP ${a} ${o}`), this.status = a, this.url = n, this.statusText = o, this.name = "HttpError";
6052
6064
  }
6053
6065
  }
6054
- class Zo extends ve.Component {
6066
+ class Uo extends ve.Component {
6055
6067
  constructor(a) {
6056
6068
  super(a), this.state = { hasError: !1 };
6057
6069
  }
@@ -6075,13 +6087,13 @@ const gt = [
6075
6087
  "OraculoSeccionEventoEnVivo",
6076
6088
  "OraculoSeccionEventoSemana",
6077
6089
  "OraculoSeccionEventoCombinadas"
6078
- ], jo = [
6090
+ ], qo = [
6079
6091
  "OraculoSeccionCasino",
6080
6092
  "OraculoSeccionVirtuales",
6081
6093
  "OraculoSeccionCasinoEnVivo",
6082
6094
  "OraculoSeccionTopJuegos",
6083
6095
  "OraculoSeccionDestacados"
6084
- ], mr = ({
6096
+ ], rr = ({
6085
6097
  sectionsOverride: e,
6086
6098
  docId: a = "Landing: home",
6087
6099
  moduleId: n = 301,
@@ -6090,35 +6102,35 @@ const gt = [
6090
6102
  loader: s,
6091
6103
  disableWrapper: l = !1
6092
6104
  }) => {
6093
- const c = de(() => Go(i), [i]), f = s || c.loader, [g, m] = ee(
6105
+ const c = de(() => zo(i), [i]), f = s || c.loader, [g, m] = ee(
6094
6106
  () => e ? [] : Ae(Le)
6095
- ), [u, d] = ee(!1), [b, x] = ee({}), [v, I] = ee({}), [M, N] = ee({}), _ = Je("(min-width:1024px)"), $ = de(
6107
+ ), [d, u] = ee(!1), [b, x] = ee({}), [v, S] = ee({}), [M, E] = ee({}), _ = Je("(min-width:1024px)"), C = de(
6096
6108
  () => Ae(Le),
6097
6109
  []
6098
- ), w = (r) => $.find(
6110
+ ), O = (r) => C.find(
6099
6111
  (p) => p.id === r.id || p.componentKey === r.componentKey
6100
- ), S = (r) => Array.isArray(r) ? r.map((p) => Number(p)).filter((p) => !Number.isNaN(p)) : [], L = de(() => {
6112
+ ), w = (r) => Array.isArray(r) ? r.map((p) => Number(p)).filter((p) => !Number.isNaN(p)) : [], L = de(() => {
6101
6113
  const r = c.user;
6102
- return S(r == null ? void 0 : r.groups);
6114
+ return w(r == null ? void 0 : r.groups);
6103
6115
  }, [c]), R = (r) => {
6104
6116
  const p = r.manualScalarFields;
6105
6117
  if (!Array.isArray(p)) return [];
6106
6118
  const T = p.find(
6107
- (C) => String((C == null ? void 0 : C.name) || "").trim().toLowerCase() === "groups"
6119
+ (N) => String((N == null ? void 0 : N.name) || "").trim().toLowerCase() === "groups"
6108
6120
  );
6109
6121
  if (!T) return [];
6110
- const k = T.value;
6111
- if (k == null) return [];
6112
- if (Array.isArray(k))
6113
- return k.map((C) => Number(String(C).trim())).filter((C) => !Number.isNaN(C));
6114
- const E = String(k).trim();
6115
- return E ? E.split(",").map((C) => Number(C.trim())).filter((C) => !Number.isNaN(C)) : [];
6116
- }, A = (r, p) => {
6122
+ const A = T.value;
6123
+ if (A == null) return [];
6124
+ if (Array.isArray(A))
6125
+ return A.map((N) => Number(String(N).trim())).filter((N) => !Number.isNaN(N));
6126
+ const k = String(A).trim();
6127
+ return k ? k.split(",").map((N) => Number(N.trim())).filter((N) => !Number.isNaN(N)) : [];
6128
+ }, $ = (r, p) => {
6117
6129
  const T = R(r);
6118
6130
  if (T.length === 0) return !0;
6119
6131
  if (!Array.isArray(p) || p.length === 0) return !1;
6120
- const k = new Set(p);
6121
- return T.some((E) => k.has(E));
6132
+ const A = new Set(p);
6133
+ return T.some((k) => A.has(k));
6122
6134
  };
6123
6135
  re(() => {
6124
6136
  if (e) return;
@@ -6126,11 +6138,11 @@ const gt = [
6126
6138
  console.warn("[landing] sin db -> fallback json"), m(Ae(Le));
6127
6139
  return;
6128
6140
  }
6129
- const r = (T, k) => {
6130
- console.warn("[landing] FALLBACK:", T, k != null ? k : ""), m(Ae(Le)), d(!1);
6141
+ const r = (T, A) => {
6142
+ console.warn("[landing] FALLBACK:", T, A != null ? A : ""), m(Ae(Le)), u(!1);
6131
6143
  };
6132
- d(!0);
6133
- const p = Gt(
6144
+ u(!0);
6145
+ const p = Ht(
6134
6146
  Zt(o, "landings", a),
6135
6147
  (T) => {
6136
6148
  try {
@@ -6138,16 +6150,16 @@ const gt = [
6138
6150
  r(`doc landings/${a} no existe`);
6139
6151
  return;
6140
6152
  }
6141
- const k = T.data(), E = Ae(k);
6142
- if (!E.length) {
6143
- r("JSON inválido o sin secciones normalizables", k);
6153
+ const A = T.data(), k = Ae(A);
6154
+ if (!k.length) {
6155
+ r("JSON inválido o sin secciones normalizables", A);
6144
6156
  return;
6145
6157
  }
6146
- console.log("[landing] Firestore OK (json grande):", k), m(E);
6147
- } catch (k) {
6148
- r("error procesando snapshot", k);
6158
+ console.log("[landing] Firestore OK (json grande):", A), m(k);
6159
+ } catch (A) {
6160
+ r("error procesando snapshot", A);
6149
6161
  } finally {
6150
- d(!1);
6162
+ u(!1);
6151
6163
  }
6152
6164
  },
6153
6165
  (T) => {
@@ -6155,7 +6167,7 @@ const gt = [
6155
6167
  }
6156
6168
  );
6157
6169
  return () => p();
6158
- }, [e, a, o]), re(() => (Rn(c), () => Pn()), [c]), re(() => {
6170
+ }, [e, a, o]), re(() => (kn(c), () => Nn()), [c]), re(() => {
6159
6171
  (e ? e.slice() : g.slice()).map((T) => T.componentKey).filter((T) => !!T).length;
6160
6172
  }, [e, g]);
6161
6173
  const y = async (r) => {
@@ -6167,79 +6179,79 @@ const gt = [
6167
6179
  };
6168
6180
  const p = (r.apiUrl || "").trim();
6169
6181
  if (!p) return;
6170
- const T = r.apiMethod || "GET", k = r.apiParams || [];
6171
- let E = p, C, q;
6182
+ const T = r.apiMethod || "GET", A = r.apiParams || [];
6183
+ let k = p, N, z;
6172
6184
  if (T === "GET") {
6173
6185
  const ne = new URL(
6174
6186
  p,
6175
6187
  typeof window == "undefined" ? "http://localhost" : window.location.origin
6176
6188
  );
6177
- for (const oe of k)
6189
+ for (const oe of A)
6178
6190
  oe.key && ne.searchParams.append(oe.key, oe.value);
6179
- E = ne.toString();
6191
+ k = ne.toString();
6180
6192
  } else {
6181
6193
  const ne = new URLSearchParams();
6182
- for (const oe of k)
6194
+ for (const oe of A)
6183
6195
  oe.key && ne.append(oe.key, oe.value);
6184
- C = ne.toString(), q = {
6196
+ N = ne.toString(), z = {
6185
6197
  "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
6186
6198
  };
6187
6199
  }
6188
- const J = await fetch(E, {
6200
+ const J = await fetch(k, {
6189
6201
  method: T,
6190
- headers: q,
6191
- body: C
6202
+ headers: z,
6203
+ body: N
6192
6204
  });
6193
- if (!J.ok) throw new ft(J.status, E, J.statusText);
6205
+ if (!J.ok) throw new ft(J.status, k, J.statusText);
6194
6206
  return J.json();
6195
- }, O = de(
6207
+ }, I = de(
6196
6208
  () => e ? e.slice() : g.slice(),
6197
6209
  [e, g]
6198
6210
  ), F = ve.useRef(/* @__PURE__ */ new Set());
6199
6211
  re(() => {
6200
- const r = O.map((p) => ({ s: p, url: (p.apiUrl || "").trim() })).filter(({ url: p }) => !!p);
6212
+ const r = I.map((p) => ({ s: p, url: (p.apiUrl || "").trim() })).filter(({ url: p }) => !!p);
6201
6213
  if (r.length)
6202
6214
  for (const { s: p, url: T } of r) {
6203
- const k = `${p.id}|${T}`;
6204
- F.current.has(k) || (F.current.add(k), I((E) => ({ ...E, [p.id]: !0 })), N((E) => ({ ...E, [p.id]: "" })), (async () => {
6215
+ const A = `${p.id}|${T}`;
6216
+ F.current.has(A) || (F.current.add(A), S((k) => ({ ...k, [p.id]: !0 })), E((k) => ({ ...k, [p.id]: "" })), (async () => {
6205
6217
  try {
6206
- const E = await y(p);
6207
- x((C) => ({ ...C, [p.id]: E }));
6208
- } catch (E) {
6209
- let C = "Error desconocido";
6210
- E instanceof ft ? C = `Error HTTP ${E.status} (${E.statusText}) en ${E.url}` : E instanceof SyntaxError ? C = "Respuesta no es JSON válido" : E instanceof TypeError ? C = "Fallo de red / CORS / conexión" : typeof E == "string" && (C = E.toString()), N((q) => ({ ...q, [p.id]: C }));
6218
+ const k = await y(p);
6219
+ x((N) => ({ ...N, [p.id]: k }));
6220
+ } catch (k) {
6221
+ let N = "Error desconocido";
6222
+ k instanceof ft ? N = `Error HTTP ${k.status} (${k.statusText}) en ${k.url}` : k instanceof SyntaxError ? N = "Respuesta no es JSON válido" : k instanceof TypeError ? N = "Fallo de red / CORS / conexión" : typeof k == "string" && (N = k.toString()), E((z) => ({ ...z, [p.id]: N }));
6211
6223
  } finally {
6212
- I((E) => ({ ...E, [p.id]: !1 }));
6224
+ S((k) => ({ ...k, [p.id]: !1 }));
6213
6225
  }
6214
6226
  })());
6215
6227
  }
6216
- }, [O]);
6228
+ }, [I]);
6217
6229
  const B = de(
6218
- () => O.filter((r) => r.visible).filter((r) => A(r, L)).sort((r, p) => r.order - p.order),
6219
- [O, L]
6230
+ () => I.filter((r) => r.visible).filter((r) => $(r, L)).sort((r, p) => r.order - p.order),
6231
+ [I, L]
6220
6232
  ), P = (r) => Array.isArray(r) ? r.map((p) => {
6221
6233
  const T = {};
6222
- for (const k of p.fields || []) {
6223
- const E = (k.type || "string").toLowerCase();
6224
- if (E === "number") {
6225
- const C = String(k.value || "").trim();
6226
- if (C !== "") {
6227
- const q = Number(C);
6228
- Number.isNaN(q) || (T[k.name] = q);
6234
+ for (const A of p.fields || []) {
6235
+ const k = (A.type || "string").toLowerCase();
6236
+ if (k === "number") {
6237
+ const N = String(A.value || "").trim();
6238
+ if (N !== "") {
6239
+ const z = Number(N);
6240
+ Number.isNaN(z) || (T[A.name] = z);
6229
6241
  }
6230
- } else if (E === "boolean")
6231
- T[k.name] = String(k.value).toLowerCase() === "true";
6232
- else if (E === "function") {
6233
- const C = String(k.value || "").trim();
6234
- if (C)
6242
+ } else if (k === "boolean")
6243
+ T[A.name] = String(A.value).toLowerCase() === "true";
6244
+ else if (k === "function") {
6245
+ const N = String(A.value || "").trim();
6246
+ if (N)
6235
6247
  try {
6236
- const q = new Function(C);
6237
- T[k.name] = q;
6238
- } catch (q) {
6239
- console.error(`❌ Error creando función en item '${k.name}':`, q);
6248
+ const z = new Function(N);
6249
+ T[A.name] = z;
6250
+ } catch (z) {
6251
+ console.error(`❌ Error creando función en item '${A.name}':`, z);
6240
6252
  }
6241
6253
  } else
6242
- T[k.name] = k.value;
6254
+ T[A.name] = A.value;
6243
6255
  }
6244
6256
  return T;
6245
6257
  }) : [], W = (r) => {
@@ -6247,90 +6259,90 @@ const gt = [
6247
6259
  if (!Array.isArray(r)) return p;
6248
6260
  for (const T of r) {
6249
6261
  if (!T.name) continue;
6250
- const k = (T.type || "string").toLowerCase();
6251
- if (k === "number") {
6252
- const E = String(T.value || "").trim();
6253
- if (E !== "") {
6254
- const C = Number(E);
6255
- Number.isNaN(C) || (p[T.name] = C);
6262
+ const A = (T.type || "string").toLowerCase();
6263
+ if (A === "number") {
6264
+ const k = String(T.value || "").trim();
6265
+ if (k !== "") {
6266
+ const N = Number(k);
6267
+ Number.isNaN(N) || (p[T.name] = N);
6256
6268
  }
6257
- } else if (k === "boolean")
6269
+ } else if (A === "boolean")
6258
6270
  p[T.name] = String(T.value).toLowerCase() === "true";
6259
- else if (k === "function") {
6260
- const E = String(T.value || "").trim();
6261
- if (E)
6271
+ else if (A === "function") {
6272
+ const k = String(T.value || "").trim();
6273
+ if (k)
6262
6274
  try {
6263
- const C = new Function(E);
6264
- p[T.name] = C;
6265
- } catch (C) {
6266
- console.error(`❌ Error creando función en item '${T.name}':`, C);
6275
+ const N = new Function(k);
6276
+ p[T.name] = N;
6277
+ } catch (N) {
6278
+ console.error(`❌ Error creando función en item '${T.name}':`, N);
6267
6279
  }
6268
6280
  } else
6269
6281
  p[T.name] = T.value;
6270
6282
  }
6271
6283
  return p;
6272
- }, V = (r, p, T, k) => {
6273
- const E = T ? { ...T } : {}, C = (k || "items").trim() || "items";
6284
+ }, V = (r, p, T, A) => {
6285
+ const k = T ? { ...T } : {}, N = (A || "items").trim() || "items";
6274
6286
  if (p)
6275
- return E[C] = p.arr || [], E;
6276
- const q = r;
6277
- if (Array.isArray(q))
6278
- return E[C] = q, E;
6279
- if (q && typeof q == "object") {
6280
- const J = q;
6281
- return Array.isArray(J.lobby) ? (E[C] = J.lobby, E) : Array.isArray(J.items) ? (E[C] = J.items, E) : (E[C] = q, E);
6287
+ return k[N] = p.arr || [], k;
6288
+ const z = r;
6289
+ if (Array.isArray(z))
6290
+ return k[N] = z, k;
6291
+ if (z && typeof z == "object") {
6292
+ const J = z;
6293
+ return Array.isArray(J.lobby) ? (k[N] = J.lobby, k) : Array.isArray(J.items) ? (k[N] = J.items, k) : (k[N] = z, k);
6282
6294
  }
6283
- return E[C] = [], E;
6284
- }, H = (r) => {
6285
- var C;
6286
- const p = !!((C = r.apiUrl) != null && C.trim()), T = p ? b[r.id] : void 0;
6287
- let k = r.props ? { ...r.props } : {};
6288
- const E = W(r.manualScalarFields);
6295
+ return k[N] = [], k;
6296
+ }, D = (r) => {
6297
+ var N;
6298
+ const p = !!((N = r.apiUrl) != null && N.trim()), T = p ? b[r.id] : void 0;
6299
+ let A = r.props ? { ...r.props } : {};
6300
+ const k = W(r.manualScalarFields);
6289
6301
  if (gt.includes(r.componentKey))
6290
- return { items: T, ...k, ...E };
6291
- if (k = { ...k, ...E }, p)
6292
- k = V(T, null, k);
6302
+ return { items: T, ...A, ...k };
6303
+ if (A = { ...A, ...k }, p)
6304
+ A = V(T, null, A);
6293
6305
  else if (r.dataMode === "manual") {
6294
- const q = P(r.manualItems);
6295
- if (k = V(
6306
+ const z = P(r.manualItems);
6307
+ if (A = V(
6296
6308
  null,
6297
- { arr: q, variableName: r.variableName },
6298
- k,
6309
+ { arr: z, variableName: r.variableName },
6310
+ A,
6299
6311
  r.variableName
6300
6312
  ), r.variableName2 && r.manualItems2) {
6301
6313
  const J = P(r.manualItems2), ne = (r.variableName2 || "items2").trim() || "items2";
6302
- k[ne] = J;
6314
+ A[ne] = J;
6303
6315
  }
6304
6316
  }
6305
- return k;
6306
- }, G = (r) => {
6317
+ return A;
6318
+ }, H = (r) => {
6307
6319
  const p = r.props ? { ...r.props } : {};
6308
6320
  try {
6309
6321
  Object.assign(p, W(r.manualScalarFields));
6310
- } catch (k) {
6311
- console.error("❌ Error armando scalars vacíos:", r, k);
6322
+ } catch (A) {
6323
+ console.error("❌ Error armando scalars vacíos:", r, A);
6312
6324
  }
6313
6325
  const T = (r.variableName || "items").trim() || "items";
6314
6326
  if (typeof p[T] == "undefined" && (p[T] = []), r.variableName2) {
6315
- const k = (r.variableName2 || "items2").trim() || "items2";
6316
- typeof p[k] == "undefined" && (p[k] = []);
6327
+ const A = (r.variableName2 || "items2").trim() || "items2";
6328
+ typeof p[A] == "undefined" && (p[A] = []);
6317
6329
  }
6318
6330
  return p;
6319
- }, D = (r) => {
6331
+ }, q = (r) => {
6320
6332
  try {
6321
- return H(r);
6333
+ return D(r);
6322
6334
  } catch (p) {
6323
6335
  console.error("🔥 ERROR EN buildCompProps:", r, p);
6324
- const T = w(r);
6336
+ const T = O(r);
6325
6337
  if (T && T !== r)
6326
6338
  try {
6327
6339
  return console.warn(
6328
6340
  `[landing] usando fallback local para sección ${r.title} (${r.componentKey})`
6329
- ), H(T);
6330
- } catch (k) {
6331
- console.error("🔥 ERROR EN fallback buildCompProps:", T, k);
6341
+ ), D(T);
6342
+ } catch (A) {
6343
+ console.error("🔥 ERROR EN fallback buildCompProps:", T, A);
6332
6344
  }
6333
- return G(r);
6345
+ return H(r);
6334
6346
  }
6335
6347
  }, K = (r, p, T) => /* @__PURE__ */ t("div", { className: `mx-4 p-4 rounded ${{
6336
6348
  loading: "bg-blue-100 text-blue-800",
@@ -6338,7 +6350,7 @@ const gt = [
6338
6350
  component: "bg-yellow-100 text-yellow-800"
6339
6351
  }[p]}`, children: T }, r), Y = (r) => {
6340
6352
  var $e;
6341
- const p = r.componentKey, T = Ho[p], E = (/* @__PURE__ */ new Set([
6353
+ const p = r.componentKey, T = Fo[p], k = (/* @__PURE__ */ new Set([
6342
6354
  "OraculoSeccionBanners",
6343
6355
  "OraculoSeccionBonoBienvenida",
6344
6356
  "OraculoSeccionCasinoEnVivo",
@@ -6351,13 +6363,13 @@ const gt = [
6351
6363
  "OraculoSeccionDestacados",
6352
6364
  "OraculoSeccionCasino"
6353
6365
  ]
6354
- ])).has(r.componentKey), C = _ ? 120 : 24, q = (_ ? 8 : 5) * 8, J = r.componentKey === "OraculoSeccionCasinoEnVivo", ne = {
6366
+ ])).has(r.componentKey), N = _ ? 120 : 24, z = (_ ? 8 : 5) * 8, J = r.componentKey === "OraculoSeccionCasinoEnVivo", ne = {
6355
6367
  width: "100%",
6356
6368
  boxSizing: "border-box",
6357
- ...E ? {} : { paddingLeft: C, paddingRight: C },
6369
+ ...k ? {} : { paddingLeft: N, paddingRight: N },
6358
6370
  ...J ? {
6359
- marginTop: -q,
6360
- marginBottom: -q
6371
+ marginTop: -z,
6372
+ marginBottom: -z
6361
6373
  } : {}
6362
6374
  };
6363
6375
  if (!T)
@@ -6368,7 +6380,7 @@ const gt = [
6368
6380
  );
6369
6381
  const oe = !!(($e = r.apiUrl) != null && $e.trim()), j = oe ? b[r.id] : void 0, ie = oe ? !!v[r.id] : !1, Se = oe ? M[r.id] : "";
6370
6382
  if (oe) {
6371
- const Mt = jo.includes(r.componentKey);
6383
+ const Mt = qo.includes(r.componentKey);
6372
6384
  if (ie && !j && !Mt)
6373
6385
  return K(
6374
6386
  r.id,
@@ -6376,16 +6388,16 @@ const gt = [
6376
6388
  `Cargando datos desde ${r.apiUrl}...`
6377
6389
  );
6378
6390
  if (Se && !j) {
6379
- const Me = w(r);
6391
+ const Me = O(r);
6380
6392
  if (Me && Me.dataMode === "manual")
6381
6393
  try {
6382
- const Ge = D(Me);
6383
- return /* @__PURE__ */ t("div", { style: ne, className: "oraculo-section-wrapper", children: /* @__PURE__ */ t(T, { ...Ge }) }, r.id);
6384
- } catch (Ge) {
6394
+ const He = q(Me);
6395
+ return /* @__PURE__ */ t("div", { style: ne, className: "oraculo-section-wrapper", children: /* @__PURE__ */ t(T, { ...He }) }, r.id);
6396
+ } catch (He) {
6385
6397
  console.error(
6386
6398
  "🔥 ERROR renderizando fallback manual de sección:",
6387
6399
  Me,
6388
- Ge
6400
+ He
6389
6401
  );
6390
6402
  }
6391
6403
  return K(
@@ -6395,11 +6407,11 @@ const gt = [
6395
6407
  );
6396
6408
  }
6397
6409
  }
6398
- const we = D(r), Oe = r.componentKey === "OraculoSeccionClubOlimpo" || r.componentKey === "OraculoSeccionBanners" ? {
6410
+ const we = q(r), Oe = r.componentKey === "OraculoSeccionClubOlimpo" || r.componentKey === "OraculoSeccionBanners" ? {
6399
6411
  ...we,
6400
6412
  user: c.user
6401
6413
  } : we;
6402
- return /* @__PURE__ */ t(Zo, { section: r, children: /* @__PURE__ */ t(
6414
+ return /* @__PURE__ */ t(Uo, { section: r, children: /* @__PURE__ */ t(
6403
6415
  "div",
6404
6416
  {
6405
6417
  style: ne,
@@ -6410,7 +6422,7 @@ const gt = [
6410
6422
  r.id
6411
6423
  ) });
6412
6424
  };
6413
- return u && !e && g.length === 0 ? f ? /* @__PURE__ */ t(f, {}) : /* @__PURE__ */ t("div", { children: "Cargando..." }) : !u && !e && g.length === 0 ? /* @__PURE__ */ t("div", { className: "text-xs text-gray-500", children: "Sin secciones (Firestore)" }) : /* @__PURE__ */ t(At, { children: /* @__PURE__ */ t(Tt, { docId: a, moduleId: n, children: /* @__PURE__ */ t(
6425
+ return d && !e && g.length === 0 ? f ? /* @__PURE__ */ t(f, {}) : /* @__PURE__ */ t("div", { children: "Cargando..." }) : !d && !e && g.length === 0 ? /* @__PURE__ */ t("div", { className: "text-xs text-gray-500", children: "Sin secciones (Firestore)" }) : /* @__PURE__ */ t(At, { children: /* @__PURE__ */ t(Tt, { docId: a, moduleId: n, children: /* @__PURE__ */ t(
6414
6426
  Bt,
6415
6427
  {
6416
6428
  className: "oli-font",
@@ -6441,39 +6453,39 @@ export {
6441
6453
  yt as OraculoCarouselDots,
6442
6454
  Pa as OraculoClubOlimpoVisual,
6443
6455
  Ja as OraculoEventCombinadasCard,
6444
- In as OraculoEventEnVivoCard,
6456
+ _n as OraculoEventEnVivoCard,
6445
6457
  oa as OraculoEventHeader,
6446
6458
  Ke as OraculoEventLabel,
6447
6459
  xt as OraculoEventLeague,
6448
6460
  St as OraculoEventScore,
6449
- Mn as OraculoEventSemanaCard,
6461
+ Tn as OraculoEventSemanaCard,
6450
6462
  na as OraculoEventStatus,
6451
6463
  aa as OraculoEventStatusBadge,
6452
- ze as OraculoEventTeamInfo,
6464
+ Ue as OraculoEventTeamInfo,
6453
6465
  Fe as OraculoGameCard,
6454
6466
  Ra as OraculoGameRankCard,
6455
6467
  wt as OraculoGameSlide,
6456
6468
  me as OraculoGridGroup,
6457
6469
  nt as OraculoLiveCasinoCard,
6458
6470
  Ye as OraculoLogoMediosPago,
6459
- mr as OraculoPageLandingPreview,
6460
- qo as OraculoSeccionBanners,
6461
- lo as OraculoSeccionBonoBienvenida,
6462
- to as OraculoSeccionCasino,
6463
- Qn as OraculoSeccionCasinoEnVivo,
6464
- so as OraculoSeccionClubOlimpo,
6465
- Ln as OraculoSeccionDestacados,
6466
- ho as OraculoSeccionEventoCombinadas,
6467
- Oo as OraculoSeccionEventoEnVivo,
6468
- Lo as OraculoSeccionEventoSemana,
6469
- Uo as OraculoSeccionMediosPago,
6470
- Fn as OraculoSeccionTopJuegos,
6471
- ro as OraculoSeccionVirtuales,
6472
- ur as OraculoSectionHost,
6471
+ rr as OraculoPageLandingPreview,
6472
+ Ao as OraculoSeccionBanners,
6473
+ eo as OraculoSeccionBonoBienvenida,
6474
+ jn as OraculoSeccionCasino,
6475
+ Gn as OraculoSeccionCasinoEnVivo,
6476
+ to as OraculoSeccionClubOlimpo,
6477
+ Cn as OraculoSeccionDestacados,
6478
+ so as OraculoSeccionEventoCombinadas,
6479
+ bo as OraculoSeccionEventoEnVivo,
6480
+ Co as OraculoSeccionEventoSemana,
6481
+ Bo as OraculoSeccionMediosPago,
6482
+ $n as OraculoSeccionTopJuegos,
6483
+ Qn as OraculoSeccionVirtuales,
6484
+ or as OraculoSectionHost,
6473
6485
  ye as OraculoSectionTitle,
6474
6486
  At as OraculoThemeProvider,
6475
- Fn as OraculoTopJuegoItem,
6487
+ $n as OraculoTopJuegoItem,
6476
6488
  ot as OraculoWelcomeBanner,
6477
- mr as default
6489
+ rr as default
6478
6490
  };
6479
6491
  //# sourceMappingURL=index.es.js.map