oraculo-ui 0.2.1 → 0.2.2

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
@@ -20,53 +20,53 @@ function W({
20
20
  href: a,
21
21
  target: o,
22
22
  rel: i,
23
- type: r = "button",
23
+ type: l = "button",
24
24
  disabled: s = !1,
25
25
  variant: g = "primary",
26
- size: h,
26
+ size: f,
27
27
  fullWidth: b = !1,
28
- fullHeight: l = !1,
29
- className: u = "",
30
- ariaLabel: m,
28
+ fullHeight: r = !1,
29
+ className: m = "",
30
+ ariaLabel: d,
31
31
  leftIcon: y,
32
32
  rightIcon: _,
33
- iconOnly: k
33
+ iconOnly: T
34
34
  }) {
35
- const C = !!e && e !== !0, E = (!!y ? 1 : 0) + (!!_ ? 1 : 0) == 1, A = k != null ? k : E && !C, O = [
35
+ const C = !!e && e !== !0, O = (!!y ? 1 : 0) + (!!_ ? 1 : 0) == 1, A = T != null ? T : O && !C, M = [
36
36
  "orc-btn",
37
37
  g === "secondary" ? "orc-btn--secondary" : g === "tertiary" ? "orc-btn--tertiary" : "orc-btn--primary",
38
- h ? `orc-btn--${h}` : "",
38
+ f ? `orc-btn--${f}` : "",
39
39
  b ? "orc-btn--full" : "",
40
- l ? "orc-btn--fullHeight" : "",
40
+ r ? "orc-btn--fullHeight" : "",
41
41
  A ? "orc-btn--iconOnly" : "",
42
- u
43
- ].filter(Boolean).join(" "), B = /* @__PURE__ */ p(ee, { children: [
42
+ m
43
+ ].filter(Boolean).join(" "), N = /* @__PURE__ */ p(ee, { children: [
44
44
  y && /* @__PURE__ */ t("span", { className: "orc-btn__icon", children: y }),
45
45
  !A && /* @__PURE__ */ t("span", { className: "orc-btn__label", children: e }),
46
46
  _ && /* @__PURE__ */ t("span", { className: "orc-btn__icon", children: _ })
47
- ] }), w = s ? !0 : void 0;
47
+ ] }), S = s ? !0 : void 0;
48
48
  return a ? /* @__PURE__ */ t(
49
49
  He,
50
50
  {
51
51
  href: a,
52
52
  target: o,
53
53
  rel: i,
54
- "aria-label": m,
55
- "aria-disabled": w,
56
- tabIndex: w ? -1 : void 0,
57
- className: O,
58
- onClick: w ? (R) => R.preventDefault() : n,
59
- children: B
54
+ "aria-label": d,
55
+ "aria-disabled": S,
56
+ tabIndex: S ? -1 : void 0,
57
+ className: M,
58
+ onClick: S ? (R) => R.preventDefault() : n,
59
+ children: N
60
60
  }
61
61
  ) : /* @__PURE__ */ t(
62
62
  "button",
63
63
  {
64
- type: r,
64
+ type: l,
65
65
  onClick: n,
66
- disabled: !!w,
67
- "aria-label": m,
68
- className: O,
69
- children: B
66
+ disabled: !!S,
67
+ "aria-label": d,
68
+ className: M,
69
+ children: N
70
70
  }
71
71
  );
72
72
  }
@@ -76,12 +76,12 @@ function le({
76
76
  size: a = "md",
77
77
  className: o = ""
78
78
  }) {
79
- const r = [
79
+ const l = [
80
80
  "orc-section-title",
81
81
  a ? `orc-section-title--${a}` : "",
82
82
  o
83
83
  ].filter(Boolean).join(" ");
84
- return /* @__PURE__ */ p("div", { className: r, children: [
84
+ return /* @__PURE__ */ p("div", { className: l, children: [
85
85
  n && /* @__PURE__ */ t(
86
86
  "img",
87
87
  {
@@ -101,27 +101,27 @@ const Xe = ({
101
101
  durationMs: i = 5e3
102
102
  }) => {
103
103
  if (e <= 1) return null;
104
- const r = ["orc-dots", o].filter(Boolean).join(" "), [s, g] = D(0);
104
+ const l = ["orc-dots", o].filter(Boolean).join(" "), [s, g] = D(0);
105
105
  return K(() => {
106
- g((h) => h + 1);
107
- }, [n, i]), /* @__PURE__ */ t("div", { className: r, role: "tablist", "aria-label": "Carousel pagination", children: Array.from({ length: e }).map((h, b) => {
108
- const l = b === n;
106
+ g((f) => f + 1);
107
+ }, [n, i]), /* @__PURE__ */ t("div", { className: l, role: "tablist", "aria-label": "Carousel pagination", children: Array.from({ length: e }).map((f, b) => {
108
+ const r = b === n;
109
109
  return /* @__PURE__ */ t("span", { className: "orc-dots__cell", children: /* @__PURE__ */ t(
110
110
  "button",
111
111
  {
112
112
  type: "button",
113
113
  role: "tab",
114
- "aria-selected": l,
114
+ "aria-selected": r,
115
115
  "aria-label": `Ir al slide ${b + 1}`,
116
- className: "orc-dots__dot" + (l ? " orc-dots__dot--active" : ""),
117
- style: l ? {
116
+ className: "orc-dots__dot" + (r ? " orc-dots__dot--active" : ""),
117
+ style: r ? {
118
118
  "--dot-progress-ms": `${i}ms`
119
119
  } : void 0,
120
120
  onClick: () => {
121
- l && g((u) => u + 1), a == null || a(b);
121
+ r && g((m) => m + 1), a == null || a(b);
122
122
  }
123
123
  },
124
- l ? `a-${b}-${s}` : `i-${b}`
124
+ r ? `a-${b}-${s}` : `i-${b}`
125
125
  ) }, b);
126
126
  }) });
127
127
  };
@@ -132,13 +132,13 @@ function oe({
132
132
  justify: o = "stretch",
133
133
  columns: i = null
134
134
  }) {
135
- const r = i || `repeat(auto-fit, minmax(${n}px, 1fr))`, s = typeof a == "number" ? `${a * 8}px` : a;
135
+ const l = i || `repeat(auto-fit, minmax(${n}px, 1fr))`, s = typeof a == "number" ? `${a * 8}px` : a;
136
136
  return /* @__PURE__ */ t(
137
137
  "div",
138
138
  {
139
139
  style: {
140
140
  display: "grid",
141
- gridTemplateColumns: r,
141
+ gridTemplateColumns: l,
142
142
  justifyItems: o,
143
143
  gap: s,
144
144
  height: "inherit"
@@ -308,7 +308,7 @@ const Ut = "oraculo__OraculoEventTeamInfo-module__team___UfpUs", qt = "oraculo__
308
308
  highlight: Zt
309
309
  };
310
310
  function Jt({ jersey: e, className: n }) {
311
- const a = `#${e.base}`, o = e.sleeve ? `#${e.sleeve}` : a, i = e.stripes ? `#${e.stripes}` : null, r = e.sleevelong ? `#${e.sleevelong}` : null;
311
+ const a = `#${e.base}`, o = e.sleeve ? `#${e.sleeve}` : a, i = e.stripes ? `#${e.stripes}` : null, l = e.sleevelong ? `#${e.sleevelong}` : null;
312
312
  return /* @__PURE__ */ p("div", { className: `${he.polo} ${n != null ? n : ""}`, children: [
313
313
  /* @__PURE__ */ t("div", { className: he.svgWrapper, children: /* @__PURE__ */ p("svg", { viewBox: "0 0 656 656", "aria-hidden": !0, children: [
314
314
  /* @__PURE__ */ t(
@@ -322,7 +322,7 @@ function Jt({ jersey: e, className: n }) {
322
322
  /* @__PURE__ */ t("path", { fill: i, d: "m153 277.8-5.8 14.5c-1 2.8-2.5 1.4-4.6.7l-2-.5-7.8-2.4-15.6-5-19-6.5-16-5.7-12-4.4-5.5-2.2c-3.5-1.1-3.1-1.2-1.9-4l1.8-4.9 3.2-9.3c-1.1-1.9 0-3.1.8-3.5l.2-.7.5-2 4.3-10.3 2.4-6 2.6-6.2.8-2.6 1.7-4.1v-.4l.3-2.6.6-3.4 1-3.5 1-3.8c.1-.9 2-5.6 3-7.8l.7-1.5.7-2 .9-3.6 3.4-12.6 2.4-8.6 2.7-11.2 3.5-9.6 3.6-9.4 3-6 2-4.1 3.6-5.8 2.2-4.3 3-4.4 3.2-3.9 1.7-1.9 3.6-3.6 3-2.9a109.3 109.3 0 0 1 13.3-11.2l1.2-.8a79.3 79.3 0 0 1 18-9l11.4-4.2 4-1.4 6.3-2.7 3.3-1.4 2.8-1.2 4-1.6 3.9-2.1 10.1-5 4.8-2.4 5.7-3.2 13.8-7.7c1.5-.8 4.7-2.7 6-3a8.5 8.5 0 0 0 3-1.8c3.4-2.5 4.5-4.8 6-5.3.4-.4 2-1.6 5.2-3.2-4.4 3.3-3.2 11-2.1 14.6a77 77 0 0 0 8.7 18.8l-.6.4-3.9 2-9 5-6.6 3.7-10 3.2c-4.3.8-13.2 2.4-14.4 2.8-1.2.3-10.2 4-14.5 5.8l-11.8 5.6-8.8 3.2-12 3.4-19 8.7c-5.8 1.4-19.3 14.2-25.3 20.4L122 128l.3.4 6.6 16.6 10.5 22.6 6.2 10.8c2.9 3 8.7 9.7 9.1 11.7.5 2 4.3 5.1 6.1 6.5.2.8.8 3.1 1.7 5.4-3.2 4.8-.4 10.6 1.4 12.9l1 4.6.3 6.5-.5 1c-1.4 1.4-.3 4 .4 5l.1 3c.5 1.4 1.3 4.2.8 5.2s0 2.7.3 3.4v4.9c-3.1.5-2 3.7-1 5.2-.5.7-1.8 2.2-3.2 2.7-1.4.5-1.8 3.6-1.8 5.2a9 9 0 0 1-2.7 4.7c-1.8 1.6-2.8 7.4-3 10.1l-1.6 1.5ZM403.8 31.1l-1.6-.7c1.2 1 2 2.2 2.8 4 1.8 2.8.6 8-.7 12.2a78 78 0 0 1-7.6 17l.5.2 3.3 1.5 5.4 3.3 5.9 3 7.2 3 8.2 2.2c.7.2 3.3 1 8.4 2 5.5.1 21.1 8 28.2 11.8l14 4.5a517 517 0 0 1 23.8 9.3c6.3.5 24.7 17 33.1 25.2l-4.6 11.6-8.2 19.3-3.8 9-5.2 8.6c-2.2 3.2-7.3 10.2-9.4 12.4-1.3-.3-5.6 4.4-7.6 6.7.3 2 .6 6.7-1.4 9.1-2 2.5-1.8 6.9-1.4 8.7.3.8.5 3-1 5.3-1.4 2.4-1 4-.5 4.5-.2.8-.7 2.5-1.4 3.4-.8.8-.4 3.3 0 4.5l.1 3-.1 2.2c-.2.6-.6 2.6-1.1 6.2 3.6 3.3 1.3 5.7-.3 6.5l2.2.3 1.3 2.7 1.5 3.8 1.1 2.3 2.7 7.1 1.6 4.8.3 2.1v1.6l1.9 1.9 4 8.9 1.8 4.5c.5 4 5.5 3.6 8 3l5.9-1.1 7.3-1.7 5.2-1.2 7.3-2.1 8.3-2.7 7.5-2.5 9.8-3.6 8-3 6.3-2.8 3.4-1.6 3-1.3 2.5-1.6 1-.8c1.9-1 2-2.1 1.6-2.9l-.6-1.7-1-2.7-1.6-4.2-1.4-4-.5-1.4-.1-.7v-1.2c.7-1-.4-2.5-1-3v-.2l-1-2-2.4-6-3.3-8.3-2.3-6a3896.4 3896.4 0 0 0-3.1-8.4l-2.2-7.1-1.5-5.7-2.5-8.9-1-3.1-1.2-4.5-2-8.2-2.2-9.3-2.8-11.4-2.6-9.1-.9-3c0-.3-.6-1.5-1-2l-2.5-5.6-3-6.6-5.7-11.3-2.5-4.3-2.3-3.3-.7-.7-4.3-5-3-3.8a73 73 0 0 0-4.2-3.8c-1.1-2-7.6-7-10.8-9.4-6.2-5-23.4-12.8-34-16.7l-11-4-16-7.9-20.1-10-7.1-3.8-2.4-1.5-13-7.3-2.6-3.4-5-3Z" }),
323
323
  /* @__PURE__ */ t("path", { fill: i, d: "M292.1 648.8c-15.7-1.4-37.7-5-49.7-7.1-4.3-.6-22.6-5.3-35.5-9.5 1.5-10 3-21 4.3-32.7 7-60.5 4.8-132.8 3.1-185.6l-.9-32c-1-49-2.4-83.5-3.6-112-1.2-29-2.1-51.7-2.1-77 0-29 2.9-77.3 5.3-112.9l2.6-1c1.3-.3 10.1-2 14.4-2.7l10-3.2 6.6-3.7 9-5 4-2 .5-.3c1.2 2 2.6 4.1 3.4 4.8l6.1 7.8 15 14.6 4.8 4c-.6 26.4-1.1 60.6-1.1 100.1 0 59.3 1.1 82.6 2.7 114.6.9 18.8 2 40.7 3 74.9 1.5 48.3.8 98.4 0 148.6l-.8 68.3c0 13-.6 32.8-1.1 49Zm157.5-16.4-11.2 3.6a379.2 379.2 0 0 1-67 12c.2-11 .3-25.6.3-44.6 0-49.2-1.2-74.9-2.4-99.5-1.3-27.2-2.5-53-2-107.5.6-50.4 1.7-81.5 2.6-109.3 1-29.3 1.8-54.9 1.8-95.6 0-35.5-.6-70.6-1.2-98.6l3.6-3 5.3-5.1 3.5-3.6 3.5-3.4 4-5 4.2-5.3 2.7-4 .5.3 3.2 1.5 5.5 3.3 5.8 3 7.3 3 8.1 2.2c.7.2 3.3 1 8.4 2 2.4 0 6.5 1.5 11 3.4 2.6 29 5.2 68 5.2 107.8 0 41.5-1.6 70.2-3.2 102-1.6 28.7-3.3 60-4 105.6-.7 41.1.4 82.5 1.4 124.4.7 25.7 1.4 51.6 1.6 77.8a435 435 0 0 0 1.5 32.6Z" })
324
324
  ] }),
325
- r && /* @__PURE__ */ t(ee, { children: /* @__PURE__ */ t("path", { fill: r, d: "m153 277.8-5.8 14.5c-1 2.8-2.5 1.4-4.6.7l-2-.5-7.8-2.4-15.6-5-19-6.5-16-5.7-12-4.4-5.5-2.2c-3.5-1.1-3.1-1.2-1.9-4l1.8-4.9 3.2-9.3c-1.1-1.9 0-3.1.8-3.5l.2-.7.5-2 4.3-10.3 2.4-6 2.6-6.2.8-2.6 1.7-4.1v-.4l.3-2.6.6-3.4 1-3.5 1-3.8c.1-.9 2-5.6 3-7.8l.7-1.5.7-2 .9-3.6 3.4-12.6 2.4-8.6 2.7-11.2 3.5-9.6 3.6-9.4 3-6 2-4.1 3.6-5.8 2.2-4.3 3-4.4 3.2-3.9 1.7-1.9 3.6-3.6 3-2.9a109.3 109.3 0 0 1 13.3-11.2l1.2-.8a79.3 79.3 0 0 1 18-9l11.4-4.2 4-1.4 6.3-2.7 3.3-1.4 2.8-1.2 4-1.6 3.9-2.1 10.1-5 4.8-2.4 5.7-3.2 13.8-7.7c1.5-.8 4.7-2.7 6-3a8.5 8.5 0 0 0 3-1.8c3.4-2.5 4.5-4.8 6-5.3.4-.4 2-1.6 5.2-3.2-4.4 3.3-3.2 11-2.1 14.6a77 77 0 0 0 8.7 18.8l-.6.4-3.9 2-9 5-6.6 3.7-10 3.2c-4.3.8-13.2 2.4-14.4 2.8-1.2.3-10.2 4-14.5 5.8l-11.8 5.6-8.8 3.2-12 3.4-19 8.7c-5.8 1.4-19.3 14.2-25.3 20.4L122 128l.3.4 6.6 16.6 10.5 22.6 6.2 10.8c2.9 3 8.7 9.7 9.1 11.7.5 2 4.3 5.1 6.1 6.5.2.8.8 3.1 1.7 5.4-3.2 4.8-.4 10.6 1.4 12.9l1 4.6.3 6.5-.5 1c-1.4 1.4-.3 4 .4 5l.1 3c.5 1.4 1.3 4.2.8 5.2s0 2.7.3 3.4v4.9c-3.1.5-2 3.7-1 5.2-.5.7-1.8 2.2-3.2 2.7-1.4.5-1.8 3.6-1.8 5.2a9 9 0 0 1-2.7 4.7c-1.8 1.6-2.8 7.4-3 10.1l-1.6 1.5ZM403.8 31.1l-1.6-.7c1.2 1 2 2.2 2.8 4 1.8 2.8.6 8-.7 12.2a78 78 0 0 1-7.6 17l.5.2 3.3 1.5 5.4 3.3 5.9 3 7.2 3 8.2 2.2c.7.2 3.3 1 8.4 2 5.5.1 21.1 8 28.2 11.8l14 4.5a517 517 0 0 1 23.8 9.3c6.3.5 24.7 17 33.1 25.2l-4.6 11.6-8.2 19.3-3.8 9-5.2 8.6c-2.2 3.2-7.3 10.2-9.4 12.4-1.3-.3-5.6 4.4-7.6 6.7.3 2 .6 6.7-1.4 9.1-2 2.5-1.8 6.9-1.4 8.7.3.8.5 3-1 5.3-1.4 2.4-1 4-.5 4.5-.2.8-.7 2.5-1.4 3.4-.8.8-.4 3.3 0 4.5l.1 3-.1 2.2c-.2.6-.6 2.6-1.1 6.2 3.6 3.3 1.3 5.7-.3 6.5l2.2.3 1.3 2.7 1.5 3.8 1.1 2.3 2.7 7.1 1.6 4.8.3 2.1v1.6l1.9 1.9 4 8.9 1.8 4.5c.5 4 5.5 3.6 8 3l5.9-1.1 7.3-1.7 5.2-1.2 7.3-2.1 8.3-2.7 7.5-2.5 9.8-3.6 8-3 6.3-2.8 3.4-1.6 3-1.3 2.5-1.6 1-.8c1.9-1 2-2.1 1.6-2.9l-.6-1.7-1-2.7-1.6-4.2-1.4-4-.5-1.4-.1-.7v-1.2c.7-1-.4-2.5-1-3v-.2l-1-2-2.4-6-3.3-8.3-2.3-6a3896.4 3896.4 0 0 0-3.1-8.4l-2.2-7.1-1.5-5.7-2.5-8.9-1-3.1-1.2-4.5-2-8.2-2.2-9.3-2.8-11.4-2.6-9.1-.9-3c0-.3-.6-1.5-1-2l-2.5-5.6-3-6.6-5.7-11.3-2.5-4.3-2.3-3.3-.7-.7-4.3-5-3-3.8a73 73 0 0 0-4.2-3.8c-1.1-2-7.6-7-10.8-9.4-6.2-5-23.4-12.8-34-16.7l-11-4-16-7.9-20.1-10-7.1-3.8-2.4-1.5-13-7.3-2.6-3.4-5-3Z" }) }),
325
+ l && /* @__PURE__ */ t(ee, { children: /* @__PURE__ */ t("path", { fill: l, d: "m153 277.8-5.8 14.5c-1 2.8-2.5 1.4-4.6.7l-2-.5-7.8-2.4-15.6-5-19-6.5-16-5.7-12-4.4-5.5-2.2c-3.5-1.1-3.1-1.2-1.9-4l1.8-4.9 3.2-9.3c-1.1-1.9 0-3.1.8-3.5l.2-.7.5-2 4.3-10.3 2.4-6 2.6-6.2.8-2.6 1.7-4.1v-.4l.3-2.6.6-3.4 1-3.5 1-3.8c.1-.9 2-5.6 3-7.8l.7-1.5.7-2 .9-3.6 3.4-12.6 2.4-8.6 2.7-11.2 3.5-9.6 3.6-9.4 3-6 2-4.1 3.6-5.8 2.2-4.3 3-4.4 3.2-3.9 1.7-1.9 3.6-3.6 3-2.9a109.3 109.3 0 0 1 13.3-11.2l1.2-.8a79.3 79.3 0 0 1 18-9l11.4-4.2 4-1.4 6.3-2.7 3.3-1.4 2.8-1.2 4-1.6 3.9-2.1 10.1-5 4.8-2.4 5.7-3.2 13.8-7.7c1.5-.8 4.7-2.7 6-3a8.5 8.5 0 0 0 3-1.8c3.4-2.5 4.5-4.8 6-5.3.4-.4 2-1.6 5.2-3.2-4.4 3.3-3.2 11-2.1 14.6a77 77 0 0 0 8.7 18.8l-.6.4-3.9 2-9 5-6.6 3.7-10 3.2c-4.3.8-13.2 2.4-14.4 2.8-1.2.3-10.2 4-14.5 5.8l-11.8 5.6-8.8 3.2-12 3.4-19 8.7c-5.8 1.4-19.3 14.2-25.3 20.4L122 128l.3.4 6.6 16.6 10.5 22.6 6.2 10.8c2.9 3 8.7 9.7 9.1 11.7.5 2 4.3 5.1 6.1 6.5.2.8.8 3.1 1.7 5.4-3.2 4.8-.4 10.6 1.4 12.9l1 4.6.3 6.5-.5 1c-1.4 1.4-.3 4 .4 5l.1 3c.5 1.4 1.3 4.2.8 5.2s0 2.7.3 3.4v4.9c-3.1.5-2 3.7-1 5.2-.5.7-1.8 2.2-3.2 2.7-1.4.5-1.8 3.6-1.8 5.2a9 9 0 0 1-2.7 4.7c-1.8 1.6-2.8 7.4-3 10.1l-1.6 1.5ZM403.8 31.1l-1.6-.7c1.2 1 2 2.2 2.8 4 1.8 2.8.6 8-.7 12.2a78 78 0 0 1-7.6 17l.5.2 3.3 1.5 5.4 3.3 5.9 3 7.2 3 8.2 2.2c.7.2 3.3 1 8.4 2 5.5.1 21.1 8 28.2 11.8l14 4.5a517 517 0 0 1 23.8 9.3c6.3.5 24.7 17 33.1 25.2l-4.6 11.6-8.2 19.3-3.8 9-5.2 8.6c-2.2 3.2-7.3 10.2-9.4 12.4-1.3-.3-5.6 4.4-7.6 6.7.3 2 .6 6.7-1.4 9.1-2 2.5-1.8 6.9-1.4 8.7.3.8.5 3-1 5.3-1.4 2.4-1 4-.5 4.5-.2.8-.7 2.5-1.4 3.4-.8.8-.4 3.3 0 4.5l.1 3-.1 2.2c-.2.6-.6 2.6-1.1 6.2 3.6 3.3 1.3 5.7-.3 6.5l2.2.3 1.3 2.7 1.5 3.8 1.1 2.3 2.7 7.1 1.6 4.8.3 2.1v1.6l1.9 1.9 4 8.9 1.8 4.5c.5 4 5.5 3.6 8 3l5.9-1.1 7.3-1.7 5.2-1.2 7.3-2.1 8.3-2.7 7.5-2.5 9.8-3.6 8-3 6.3-2.8 3.4-1.6 3-1.3 2.5-1.6 1-.8c1.9-1 2-2.1 1.6-2.9l-.6-1.7-1-2.7-1.6-4.2-1.4-4-.5-1.4-.1-.7v-1.2c.7-1-.4-2.5-1-3v-.2l-1-2-2.4-6-3.3-8.3-2.3-6a3896.4 3896.4 0 0 0-3.1-8.4l-2.2-7.1-1.5-5.7-2.5-8.9-1-3.1-1.2-4.5-2-8.2-2.2-9.3-2.8-11.4-2.6-9.1-.9-3c0-.3-.6-1.5-1-2l-2.5-5.6-3-6.6-5.7-11.3-2.5-4.3-2.3-3.3-.7-.7-4.3-5-3-3.8a73 73 0 0 0-4.2-3.8c-1.1-2-7.6-7-10.8-9.4-6.2-5-23.4-12.8-34-16.7l-11-4-16-7.9-20.1-10-7.1-3.8-2.4-1.5-13-7.3-2.6-3.4-5-3Z" }) }),
326
326
  /* @__PURE__ */ t(
327
327
  "path",
328
328
  {
@@ -383,24 +383,24 @@ function Xt(e, n, {
383
383
  threshold: o = 60,
384
384
  cooldownMs: i = 500
385
385
  } = {}) {
386
- const r = U(0), s = U(0);
386
+ const l = U(0), s = U(0);
387
387
  K(() => {
388
388
  if (!a) return;
389
389
  const g = e.current;
390
390
  if (!g) return;
391
- const h = (b) => {
392
- const l = n.current;
393
- if (!l || !l.go) return;
394
- const { deltaX: u, deltaY: m } = b;
395
- if (Math.abs(u) <= Math.abs(m)) return;
396
- b.preventDefault(), r.current += u;
391
+ const f = (b) => {
392
+ const r = n.current;
393
+ if (!r || !r.go) return;
394
+ const { deltaX: m, deltaY: d } = b;
395
+ if (Math.abs(m) <= Math.abs(d)) return;
396
+ b.preventDefault(), l.current += m;
397
397
  const y = Date.now();
398
- if (y - s.current < i || Math.abs(r.current) < o) return;
399
- const _ = r.current > 0 ? ">" : "<";
400
- r.current = 0, s.current = y, l.go(_);
398
+ if (y - s.current < i || Math.abs(l.current) < o) return;
399
+ const _ = l.current > 0 ? ">" : "<";
400
+ l.current = 0, s.current = y, r.go(_);
401
401
  };
402
- return g.addEventListener("wheel", h, { passive: !1 }), () => {
403
- g.removeEventListener("wheel", h), r.current = 0;
402
+ return g.addEventListener("wheel", f, { passive: !1 }), () => {
403
+ g.removeEventListener("wheel", f), l.current = 0;
404
404
  };
405
405
  }, [a, o, i, e, n]);
406
406
  }
@@ -416,47 +416,47 @@ const Yt = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", Qt = "ora
416
416
  perPage: a = 1,
417
417
  gap: o = "0px",
418
418
  breakpoints: i,
419
- options: r = {},
419
+ options: l = {},
420
420
  className: s = "",
421
421
  onMove: g,
422
- useIndexAsKey: h = !1,
422
+ useIndexAsKey: f = !1,
423
423
  enableHorizontalWheel: b = !0,
424
- showRightGradient: l = !1
425
- }, u) => {
426
- const m = U(null), y = U(null), _ = U(e.length), k = U(null), C = U(null);
427
- Xt(y, m, {
424
+ showRightGradient: r = !1
425
+ }, m) => {
426
+ const d = U(null), y = U(null), _ = U(e.length), T = U(null), C = U(null);
427
+ Xt(y, d, {
428
428
  enabled: b
429
- }), ut(u, () => ({
429
+ }), ut(m, () => ({
430
430
  next: () => {
431
- var w;
432
- return (w = m.current) == null ? void 0 : w.go(">");
431
+ var S;
432
+ return (S = d.current) == null ? void 0 : S.go(">");
433
433
  },
434
434
  prev: () => {
435
- var w;
436
- return (w = m.current) == null ? void 0 : w.go("<");
435
+ var S;
436
+ return (S = d.current) == null ? void 0 : S.go("<");
437
437
  },
438
- go: (w) => {
438
+ go: (S) => {
439
439
  var R;
440
- return (R = m.current) == null ? void 0 : R.go(w);
440
+ return (R = d.current) == null ? void 0 : R.go(S);
441
441
  }
442
442
  }));
443
- const M = (w) => {
443
+ const B = (S) => {
444
444
  var v;
445
- const R = w.Components.Slides, z = w.Components.Controller, S = w.root.querySelector(".splide__track"), T = (v = S == null ? void 0 : S.clientWidth) != null ? v : 0, P = z.getIndex(), f = R.getLength();
446
- let c = 0, d = P;
447
- for (let x = P; x < f; x++) {
448
- const I = R.getAt(x);
449
- if (!I || (c += I.slide.offsetWidth, c > T)) break;
450
- d = x;
445
+ const R = S.Components.Slides, z = S.Components.Controller, w = S.root.querySelector(".splide__track"), I = (v = w == null ? void 0 : w.clientWidth) != null ? v : 0, F = z.getIndex(), h = R.getLength();
446
+ let c = 0, u = F;
447
+ for (let x = F; x < h; x++) {
448
+ const E = R.getAt(x);
449
+ if (!E || (c += E.slide.offsetWidth, c > I)) break;
450
+ u = x;
451
451
  }
452
- return { visibleStart: P, visibleEnd: d };
453
- }, N = (w) => {
454
- const R = w.root.querySelector(".splide__track"), z = w.root.querySelector(".splide__list");
452
+ return { visibleStart: F, visibleEnd: u };
453
+ }, $ = (S) => {
454
+ const R = S.root.querySelector(".splide__track"), z = S.root.querySelector(".splide__list");
455
455
  return !R || !z ? !1 : z.scrollWidth > R.clientWidth + 1;
456
- }, E = _e((w) => {
457
- var d, v;
458
- const z = w.Components.Slides.getLength();
459
- if (!N(w)) {
456
+ }, O = _e((S) => {
457
+ var u, v;
458
+ const z = S.Components.Slides.getLength();
459
+ if (!$(S)) {
460
460
  g == null || g({
461
461
  index: 0,
462
462
  isStart: !0,
@@ -467,37 +467,37 @@ const Yt = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", Qt = "ora
467
467
  });
468
468
  return;
469
469
  }
470
- const { visibleStart: S, visibleEnd: T } = M(w), P = S === 0, f = T === z - 1;
471
- l && ((d = k.current) == null || d.style.setProperty("--gradient-opacity", P ? "0" : "1"), (v = C.current) == null || v.style.setProperty("--gradient-opacity", f ? "0" : "1"));
472
- const c = w.Components.Controller.getIndex();
470
+ const { visibleStart: w, visibleEnd: I } = B(S), F = w === 0, h = I === z - 1;
471
+ r && ((u = T.current) == null || u.style.setProperty("--gradient-opacity", F ? "0" : "1"), (v = C.current) == null || v.style.setProperty("--gradient-opacity", h ? "0" : "1"));
472
+ const c = S.Components.Controller.getIndex();
473
473
  g == null || g({
474
474
  index: c,
475
- isStart: P,
476
- isEnd: f,
475
+ isStart: F,
476
+ isEnd: h,
477
477
  total: z,
478
- visibleStart: S,
479
- visibleEnd: T
478
+ visibleStart: w,
479
+ visibleEnd: I
480
480
  });
481
481
  }, [g]);
482
482
  de.useEffect(() => {
483
483
  var z;
484
- const w = (z = m.current) == null ? void 0 : z.splide;
485
- if (!w) return;
484
+ const S = (z = d.current) == null ? void 0 : z.splide;
485
+ if (!S) return;
486
486
  const R = _.current !== e.length;
487
487
  _.current = e.length, R && requestAnimationFrame(() => {
488
- w.refresh(), E(w);
488
+ S.refresh(), O(S);
489
489
  });
490
- }, [e.length, E]);
490
+ }, [e.length, O]);
491
491
  const A = _e(() => {
492
492
  var R;
493
- const w = (R = m.current) == null ? void 0 : R.splide;
494
- w && (w.go(0, !1), E(w));
495
- }, [E]), O = _e(
496
- (w) => {
497
- E(w);
493
+ const S = (R = d.current) == null ? void 0 : R.splide;
494
+ S && (S.go(0, !1), O(S));
495
+ }, [O]), M = _e(
496
+ (S) => {
497
+ O(S);
498
498
  },
499
- [E]
500
- ), B = {
499
+ [O]
500
+ ), N = {
501
501
  type: "slide",
502
502
  trimSpace: !1,
503
503
  drag: !0,
@@ -509,7 +509,7 @@ const Yt = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", Qt = "ora
509
509
  perPage: a,
510
510
  gap: o,
511
511
  breakpoints: i,
512
- ...r,
512
+ ...l,
513
513
  ...b ? { wheel: !1 } : {}
514
514
  };
515
515
  return /* @__PURE__ */ p(
@@ -522,22 +522,22 @@ const Yt = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", Qt = "ora
522
522
  /* @__PURE__ */ t(
523
523
  nn,
524
524
  {
525
- ref: m,
526
- options: B,
527
- onMove: E,
528
- onMounted: O,
525
+ ref: d,
526
+ options: N,
527
+ onMove: O,
528
+ onMounted: M,
529
529
  onResize: A,
530
- children: e.map((w, R) => {
530
+ children: e.map((S, R) => {
531
531
  var z;
532
- return /* @__PURE__ */ t(an, { children: n(w, R) }, h ? R : (z = w.id) != null ? z : R);
532
+ return /* @__PURE__ */ t(an, { children: n(S, R) }, f ? R : (z = S.id) != null ? z : R);
533
533
  })
534
534
  }
535
535
  ),
536
- l && /* @__PURE__ */ p(ee, { children: [
536
+ r && /* @__PURE__ */ p(ee, { children: [
537
537
  /* @__PURE__ */ t(
538
538
  "div",
539
539
  {
540
- ref: k,
540
+ ref: T,
541
541
  className: `${ge.gradientOverlay} ${ge.left}`,
542
542
  style: { "--gradient-opacity": "0" },
543
543
  children: /* @__PURE__ */ p(
@@ -595,7 +595,7 @@ const Yt = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", Qt = "ora
595
595
  size: a = "sm",
596
596
  fillParent: o = !1
597
597
  }) => {
598
- const i = a === "lg" ? { w: 280, h: 352 } : { w: 152, h: 168 }, r = (g) => {
598
+ const i = a === "lg" ? { w: 280, h: 352 } : { w: 152, h: 168 }, l = (g) => {
599
599
  g.stopPropagation(), n == null || n();
600
600
  }, s = o ? { width: "100%", height: "100%" } : { width: `${i.w}px`, height: `${i.h}px` };
601
601
  return /* @__PURE__ */ p(
@@ -669,7 +669,7 @@ const Yt = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", Qt = "ora
669
669
  transition: "opacity .15s ease, transform .15s ease",
670
670
  pointerEvents: "none"
671
671
  },
672
- children: /* @__PURE__ */ t(W, { variant: "primary", size: "md", onClick: r, children: "Jugar" })
672
+ children: /* @__PURE__ */ t(W, { variant: "primary", size: "md", onClick: l, children: "Jugar" })
673
673
  }
674
674
  )
675
675
  ]
@@ -686,15 +686,15 @@ function on({
686
686
  md: { w: 186, h: 264, r: 22.6, font: 64 }
687
687
  }
688
688
  }) {
689
- var u, m, y, _;
690
- const r = (k, C) => {
691
- var M, N, E, A;
689
+ var m, d, y, _;
690
+ const l = (T, C) => {
691
+ var B, $, O, A;
692
692
  return {
693
- xs: (N = (M = i.xs) == null ? void 0 : M[k]) != null ? N : C,
694
- md: (A = (E = i.md) == null ? void 0 : E[k]) != null ? A : C
693
+ xs: ($ = (B = i.xs) == null ? void 0 : B[T]) != null ? $ : C,
694
+ md: (A = (O = i.md) == null ? void 0 : O[T]) != null ? A : C
695
695
  };
696
- }, s = r("w", 186), g = r("h", 264), h = r("r", 22.6), b = r("font", 64), l = {
697
- xs: Math.round(((m = (u = i.xs) == null ? void 0 : u.font) != null ? m : 64) * 0.28),
696
+ }, s = l("w", 186), g = l("h", 264), f = l("r", 22.6), b = l("font", 64), r = {
697
+ xs: Math.round(((d = (m = i.xs) == null ? void 0 : m.font) != null ? d : 64) * 0.28),
698
698
  md: Math.round(((_ = (y = i.md) == null ? void 0 : y.font) != null ? _ : 64) * 0.28)
699
699
  };
700
700
  return /* @__PURE__ */ p(
@@ -708,10 +708,10 @@ function on({
708
708
  xs: `${s.xs}/${g.xs}`,
709
709
  md: `${s.md}/${g.md}`
710
710
  },
711
- borderRadius: { xs: `${h.xs}px`, md: `${h.md}px` },
711
+ borderRadius: { xs: `${f.xs}px`, md: `${f.md}px` },
712
712
  boxSizing: "border-box",
713
713
  overflow: "visible",
714
- pb: { xs: `${l.xs}px`, md: `${l.md}px` },
714
+ pb: { xs: `${r.xs}px`, md: `${r.md}px` },
715
715
  "&::before": {
716
716
  content: '""',
717
717
  position: "absolute",
@@ -766,8 +766,8 @@ function on({
766
766
  position: "absolute",
767
767
  left: 8,
768
768
  bottom: {
769
- xs: `-${l.xs}px`,
770
- md: `-${l.md}px`
769
+ xs: `-${r.xs}px`,
770
+ md: `-${r.md}px`
771
771
  },
772
772
  fontFamily: '"secondary", sans-serif',
773
773
  fontSize: {
@@ -794,7 +794,7 @@ const rn = ({
794
794
  machine: o,
795
795
  onClick: i
796
796
  }) => {
797
- var r;
797
+ var l;
798
798
  return /* @__PURE__ */ p(
799
799
  L,
800
800
  {
@@ -858,7 +858,7 @@ const rn = ({
858
858
  fontSize: { xs: 11, md: 14 },
859
859
  textTransform: "capitalize"
860
860
  },
861
- children: (r = n != null ? n : a) != null ? r : ""
861
+ children: (l = n != null ? n : a) != null ? l : ""
862
862
  }
863
863
  )
864
864
  }
@@ -888,9 +888,9 @@ const rn = ({
888
888
  loading: o = !1,
889
889
  gridSkeletonCount: i = 4
890
890
  }) => {
891
- var r, s;
891
+ var l, s;
892
892
  if (n === "mosaic") {
893
- const g = e[0], h = e.slice(1, 5);
893
+ const g = e[0], f = e.slice(1, 5);
894
894
  return /* @__PURE__ */ p(
895
895
  L,
896
896
  {
@@ -928,7 +928,7 @@ const rn = ({
928
928
  children: o ? /* @__PURE__ */ t($e, {}) : g && /* @__PURE__ */ t(
929
929
  ye,
930
930
  {
931
- imageUrl: `https://olimpo.bet${(s = (r = g.background) != null ? r : g.imageUrl) != null ? s : ""}`,
931
+ imageUrl: `https://olimpo.bet${(s = (l = g.background) != null ? l : g.imageUrl) != null ? s : ""}`,
932
932
  size: "lg",
933
933
  fillParent: !0,
934
934
  onClick: () => a == null ? void 0 : a(g, 0)
@@ -936,8 +936,8 @@ const rn = ({
936
936
  )
937
937
  }
938
938
  ),
939
- (o ? Array.from({ length: 4 }) : h).map((b, l) => {
940
- var u, m;
939
+ (o ? Array.from({ length: 4 }) : f).map((b, r) => {
940
+ var m, d;
941
941
  return /* @__PURE__ */ t(
942
942
  L,
943
943
  {
@@ -950,14 +950,14 @@ const rn = ({
950
950
  children: o ? /* @__PURE__ */ t($e, {}) : /* @__PURE__ */ t(
951
951
  ye,
952
952
  {
953
- imageUrl: `https://olimpo.bet${(m = (u = b.background) != null ? u : b.imageUrl) != null ? m : ""}`,
953
+ imageUrl: `https://olimpo.bet${(d = (m = b.background) != null ? m : b.imageUrl) != null ? d : ""}`,
954
954
  size: "sm",
955
955
  fillParent: !0,
956
- onClick: () => a == null ? void 0 : a(b, l + 1)
956
+ onClick: () => a == null ? void 0 : a(b, r + 1)
957
957
  }
958
958
  )
959
959
  },
960
- o ? `sk-${l}` : b.id
960
+ o ? `sk-${r}` : b.id
961
961
  );
962
962
  })
963
963
  ]
@@ -980,8 +980,8 @@ const rn = ({
980
980
  gap: `${ke}px`,
981
981
  gridAutoFlow: "column"
982
982
  },
983
- children: (o ? Array.from({ length: i }) : e).map((g, h) => {
984
- var b, l, u;
983
+ children: (o ? Array.from({ length: i }) : e).map((g, f) => {
984
+ var b, r, m;
985
985
  return /* @__PURE__ */ t(
986
986
  L,
987
987
  {
@@ -989,14 +989,14 @@ const rn = ({
989
989
  children: o ? /* @__PURE__ */ t($e, {}) : /* @__PURE__ */ t(
990
990
  ye,
991
991
  {
992
- imageUrl: `https://olimpo.bet${(l = (b = g.background) != null ? b : g.imageUrl) != null ? l : ""}`,
992
+ imageUrl: `https://olimpo.bet${(r = (b = g.background) != null ? b : g.imageUrl) != null ? r : ""}`,
993
993
  size: "sm",
994
994
  fillParent: !0,
995
- onClick: () => a == null ? void 0 : a(g, h)
995
+ onClick: () => a == null ? void 0 : a(g, f)
996
996
  }
997
997
  )
998
998
  },
999
- o ? `sk-${h}` : (u = g.id) != null ? u : h
999
+ o ? `sk-${f}` : (m = g.id) != null ? m : f
1000
1000
  );
1001
1001
  })
1002
1002
  }
@@ -1007,12 +1007,12 @@ const rn = ({
1007
1007
  subtitle: a,
1008
1008
  buttonText: o,
1009
1009
  onButtonClick: i,
1010
- backgroundImage: r,
1010
+ backgroundImage: l,
1011
1011
  alt: s,
1012
1012
  className: g = "",
1013
- variant: h = "small"
1013
+ variant: f = "small"
1014
1014
  }) => {
1015
- const b = n ? n.slice(0, 2) : "", l = n ? n.slice(2) : "", u = h === "large";
1015
+ const b = n ? n.slice(0, 2) : "", r = n ? n.slice(2) : "", m = f === "large";
1016
1016
  return /* @__PURE__ */ p(
1017
1017
  L,
1018
1018
  {
@@ -1022,12 +1022,12 @@ const rn = ({
1022
1022
  width: "100%",
1023
1023
  maxWidth: {
1024
1024
  xs: 328,
1025
- md: u ? 618 : 456
1025
+ md: m ? 618 : 456
1026
1026
  },
1027
1027
  mx: "auto"
1028
1028
  },
1029
1029
  children: [
1030
- r && /* @__PURE__ */ t(
1030
+ l && /* @__PURE__ */ t(
1031
1031
  L,
1032
1032
  {
1033
1033
  sx: {
@@ -1035,7 +1035,7 @@ const rn = ({
1035
1035
  width: "100%",
1036
1036
  aspectRatio: {
1037
1037
  xs: "328 / 188",
1038
- md: u ? "618 / 346" : "456 / 272"
1038
+ md: m ? "618 / 346" : "456 / 272"
1039
1039
  },
1040
1040
  borderRadius: "14px",
1041
1041
  overflow: "hidden"
@@ -1044,7 +1044,7 @@ const rn = ({
1044
1044
  L,
1045
1045
  {
1046
1046
  component: "img",
1047
- src: r,
1047
+ src: l,
1048
1048
  alt: s != null ? s : "Fondo promocional",
1049
1049
  sx: {
1050
1050
  width: "100%",
@@ -1126,7 +1126,7 @@ const rn = ({
1126
1126
  {
1127
1127
  component: "span",
1128
1128
  sx: { fontSize: { xs: 52, md: 77 } },
1129
- children: l
1129
+ children: r
1130
1130
  }
1131
1131
  )
1132
1132
  ]
@@ -1159,7 +1159,7 @@ const rn = ({
1159
1159
  onClick: a,
1160
1160
  imgAlt: o = "Club Olimpo",
1161
1161
  imgSrcMobile: i,
1162
- imgSrcDesktopBg: r,
1162
+ imgSrcDesktopBg: l,
1163
1163
  imgSrcDesktopLogo: s
1164
1164
  }) => /* @__PURE__ */ p(ee, { children: [
1165
1165
  /* @__PURE__ */ t("div", { className: "orc-co-bgMobile", children: /* @__PURE__ */ t(
@@ -1171,10 +1171,10 @@ const rn = ({
1171
1171
  }
1172
1172
  ) }),
1173
1173
  /* @__PURE__ */ p("div", { className: "orc-co-bgDesktop", children: [
1174
- r && /* @__PURE__ */ t("div", { className: "orc-co-fillHost", children: /* @__PURE__ */ t(
1174
+ l && /* @__PURE__ */ t("div", { className: "orc-co-fillHost", children: /* @__PURE__ */ t(
1175
1175
  "img",
1176
1176
  {
1177
- src: r,
1177
+ src: l,
1178
1178
  alt: `${o} fondo`,
1179
1179
  className: "orc-co-bgDesktopImg"
1180
1180
  }
@@ -1250,85 +1250,85 @@ const ot = pt(void 0), Me = ({ children: e, docId: n }) => {
1250
1250
  function yn({ coupon: e }) {
1251
1251
  var b;
1252
1252
  const n = J(), a = X();
1253
- function o(l) {
1253
+ function o(r) {
1254
1254
  var y, _;
1255
- const u = [], m = Array.from(
1255
+ const m = [], d = Array.from(
1256
1256
  new Map(
1257
- ((y = l == null ? void 0 : l.events) != null ? y : []).filter(Boolean).map((k) => [k.id, k])
1257
+ ((y = r == null ? void 0 : r.events) != null ? y : []).filter(Boolean).map((T) => [T.id, T])
1258
1258
  ).values()
1259
1259
  );
1260
- return m.forEach((k) => {
1261
- var E;
1262
- const C = (E = k.betoffers) != null ? E : [], M = k.homeName, N = k.awayName;
1260
+ return d.forEach((T) => {
1261
+ var O;
1262
+ const C = (O = T.betoffers) != null ? O : [], B = T.homeName, $ = T.awayName;
1263
1263
  C.forEach((A) => {
1264
- var R, z, S, T, P, f, c;
1264
+ var R, z, w, I, F, h, c;
1265
1265
  if (!((R = A == null ? void 0 : A.outcomes) != null && R.length)) return;
1266
- const O = A.outcomes[0];
1267
- if (!O) return;
1268
- let B = "";
1269
- const w = O != null && O.line ? O.line / 1e3 : "";
1270
- ["Más de", "Mas de", "Over"].includes(O.label) ? (B = `Más de ${w}`, O.participant && (B = `${O.participant} - ${B}`)) : ["Menos de", "Menos", "Under"].includes(O.label) ? (B = `Menos de ${w}`, O.participant && (B = `${O.participant} - ${B}`)) : ["Sí", "No"].includes(O.label) ? (B = O.label, O.participant && (B = `${O.participant} - ${B}`)) : ["1X", "12", "X2"].includes(O.label) ? (O.label === "1X" && (B = `${M} o Empate`), O.label === "12" && (B = `${M} o ${N}`), O.label === "X2" && (B = `${N} o Empate`)) : (B = (S = (z = O.participant) != null ? z : O.label) != null ? S : "", w !== "" && B === O.label && (B = `${O.label} ${w}`)), u.push({
1271
- id: O.id,
1272
- value: B,
1273
- label: (P = (T = A.criterion) == null ? void 0 : T.label) != null ? P : "",
1274
- odds: (f = O.odds) != null ? f : 0,
1275
- position: (c = O.position) != null ? c : 0,
1276
- eventId: k.id
1266
+ const M = A.outcomes[0];
1267
+ if (!M) return;
1268
+ let N = "";
1269
+ const S = M != null && M.line ? M.line / 1e3 : "";
1270
+ ["Más de", "Mas de", "Over"].includes(M.label) ? (N = `Más de ${S}`, M.participant && (N = `${M.participant} - ${N}`)) : ["Menos de", "Menos", "Under"].includes(M.label) ? (N = `Menos de ${S}`, M.participant && (N = `${M.participant} - ${N}`)) : ["Sí", "No"].includes(M.label) ? (N = M.label, M.participant && (N = `${M.participant} - ${N}`)) : ["1X", "12", "X2"].includes(M.label) ? (M.label === "1X" && (N = `${B} o Empate`), M.label === "12" && (N = `${B} o ${$}`), M.label === "X2" && (N = `${$} o Empate`)) : (N = (w = (z = M.participant) != null ? z : M.label) != null ? w : "", S !== "" && N === M.label && (N = `${M.label} ${S}`)), m.push({
1271
+ id: M.id,
1272
+ value: N,
1273
+ label: (F = (I = A.criterion) == null ? void 0 : I.label) != null ? F : "",
1274
+ odds: (h = M.odds) != null ? h : 0,
1275
+ position: (c = M.position) != null ? c : 0,
1276
+ eventId: T.id
1277
1277
  });
1278
1278
  });
1279
1279
  }), {
1280
- outcomes: u.sort((k, C) => k.position - C.position),
1281
- total: Number((_ = l == null ? void 0 : l.combinadoTotal) != null ? _ : 0).toLocaleString("en-US", {
1280
+ outcomes: m.sort((T, C) => T.position - C.position),
1281
+ total: Number((_ = r == null ? void 0 : r.combinadoTotal) != null ? _ : 0).toLocaleString("en-US", {
1282
1282
  minimumFractionDigits: 2,
1283
1283
  maximumFractionDigits: 2
1284
1284
  }),
1285
- events: m
1285
+ events: d
1286
1286
  };
1287
1287
  }
1288
- function i(l) {
1289
- if (!l || !Array.isArray(l.events) || l.events.length === 0)
1288
+ function i(r) {
1289
+ if (!r || !Array.isArray(r.events) || r.events.length === 0)
1290
1290
  return "/deportes#home";
1291
- const u = l.events;
1292
- if (u.length === 1)
1293
- return `/deportes#event/${u[0].id}`;
1294
- const m = u[0].groupId;
1295
- if (u.every((_) => _.groupId === m)) {
1296
- const _ = u[0].path;
1291
+ const m = r.events;
1292
+ if (m.length === 1)
1293
+ return `/deportes#event/${m[0].id}`;
1294
+ const d = m[0].groupId;
1295
+ if (m.every((_) => _.groupId === d)) {
1296
+ const _ = m[0].path;
1297
1297
  if (Array.isArray(_) && _.length > 0)
1298
1298
  return `/deportes#sports-hub/${_.map((C) => C.termKey).filter(Boolean).join("/")}`;
1299
1299
  }
1300
1300
  return "/deportes#home";
1301
1301
  }
1302
- const r = (l, u) => {
1303
- const m = Array.isArray(l) ? l : [l], y = Array.from(
1302
+ const l = (r, m) => {
1303
+ const d = Array.isArray(r) ? r : [r], y = Array.from(
1304
1304
  new Set(
1305
1305
  s.outcomes.map((C) => {
1306
- var N;
1307
- const M = h.get(Number(C.eventId));
1308
- return (N = M == null ? void 0 : M.name) != null ? N : "";
1306
+ var $;
1307
+ const B = f.get(Number(C.eventId));
1308
+ return ($ = B == null ? void 0 : B.name) != null ? $ : "";
1309
1309
  })
1310
1310
  )
1311
- ).filter(Boolean), _ = y.length > 0 ? y.join(" + ") : JSON.stringify(m), k = u ? `${_} - Cuota: ${u}` : _;
1311
+ ).filter(Boolean), _ = y.length > 0 ? y.join(" + ") : JSON.stringify(d), T = m ? `${_} - Cuota: ${m}` : _;
1312
1312
  n({
1313
1313
  element: "evento_semana_outcome",
1314
- label: `Landing: ${a} - OraculoEventCombinadasCard - Click: ${k}`,
1314
+ label: `Landing: ${a} - OraculoEventCombinadasCard - Click: ${T}`,
1315
1315
  target: "/deportes#in-play",
1316
1316
  event_type: "click",
1317
1317
  module_id: 301,
1318
1318
  metadata: {
1319
1319
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
1320
1320
  },
1321
- tags: { section: "OraculoEventCombinadasCard", outcomes: k }
1322
- }), Le(i(e), l);
1321
+ tags: { section: "OraculoEventCombinadasCard", outcomes: T }
1322
+ }), Le(i(e), r);
1323
1323
  };
1324
1324
  if (!((b = e == null ? void 0 : e.events) != null && b.length)) return null;
1325
- const s = o(e), g = s.outcomes.reduce((l, u) => (l[u.eventId] || (l[u.eventId] = []), l[u.eventId].push(u), l), {}), h = new Map(
1326
- s.events.map((l) => [l.id, l])
1325
+ const s = o(e), g = s.outcomes.reduce((r, m) => (r[m.eventId] || (r[m.eventId] = []), r[m.eventId].push(m), r), {}), f = new Map(
1326
+ s.events.map((r) => [r.id, r])
1327
1327
  );
1328
1328
  return /* @__PURE__ */ p("div", { className: te.card, children: [
1329
- /* @__PURE__ */ t("div", { className: te.combinadas, children: /* @__PURE__ */ t("div", { className: te.combinadasScroll, children: /* @__PURE__ */ t(V, { direction: "column", spacing: 1.5, useFlexGap: !0, children: Object.entries(g).reverse().map(([l, u]) => {
1330
- const m = h.get(Number(l));
1331
- return m ? /* @__PURE__ */ p(
1329
+ /* @__PURE__ */ t("div", { className: te.combinadas, children: /* @__PURE__ */ t("div", { className: te.combinadasScroll, children: /* @__PURE__ */ t(V, { direction: "column", spacing: 1.5, useFlexGap: !0, children: Object.entries(g).reverse().map(([r, m]) => {
1330
+ const d = f.get(Number(r));
1331
+ return d ? /* @__PURE__ */ p(
1332
1332
  V,
1333
1333
  {
1334
1334
  direction: "column",
@@ -1338,7 +1338,7 @@ function yn({ coupon: e }) {
1338
1338
  /* @__PURE__ */ t(
1339
1339
  le,
1340
1340
  {
1341
- title: m.name,
1341
+ title: d.name,
1342
1342
  iconUrl: "/assets/img/home/Combinadas/pelota.png",
1343
1343
  size: "xs"
1344
1344
  }
@@ -1350,27 +1350,27 @@ function yn({ coupon: e }) {
1350
1350
  src: "/assets/img/home/Combinadas/line.png"
1351
1351
  }
1352
1352
  ),
1353
- u.map((y, _) => /* @__PURE__ */ p("div", { className: te.apuestaItem, children: [
1353
+ m.map((y, _) => /* @__PURE__ */ p("div", { className: te.apuestaItem, children: [
1354
1354
  /* @__PURE__ */ p("div", { className: te.lineContainer, children: [
1355
1355
  /* @__PURE__ */ t("div", { className: te.circle }),
1356
- _ < u.length - 1 && /* @__PURE__ */ t("div", { className: te.line })
1356
+ _ < m.length - 1 && /* @__PURE__ */ t("div", { className: te.line })
1357
1357
  ] }),
1358
1358
  /* @__PURE__ */ p("div", { className: te.apuestaText, children: [
1359
1359
  /* @__PURE__ */ t("strong", { children: y.value }),
1360
1360
  " | ",
1361
1361
  y.label
1362
1362
  ] })
1363
- ] }, `${l}-${_}`))
1363
+ ] }, `${r}-${_}`))
1364
1364
  ]
1365
1365
  },
1366
- l
1366
+ r
1367
1367
  ) : null;
1368
1368
  }) }) }) }),
1369
1369
  /* @__PURE__ */ p(
1370
1370
  "button",
1371
1371
  {
1372
- onClick: () => r(
1373
- s.outcomes.map((l) => l.id),
1372
+ onClick: () => l(
1373
+ s.outcomes.map((r) => r.id),
1374
1374
  s.total
1375
1375
  ),
1376
1376
  className: te.cuotaTotal,
@@ -1412,56 +1412,56 @@ function xn({
1412
1412
  href: a,
1413
1413
  target: o,
1414
1414
  rel: i,
1415
- type: r = "button",
1415
+ type: l = "button",
1416
1416
  disabled: s = !1,
1417
1417
  variant: g = "primary",
1418
- size: h,
1418
+ size: f,
1419
1419
  fullWidth: b = !1,
1420
- fullHeight: l = !1,
1421
- className: u = "",
1422
- ariaLabel: m,
1420
+ fullHeight: r = !1,
1421
+ className: m = "",
1422
+ ariaLabel: d,
1423
1423
  leftIcon: y,
1424
1424
  rightIcon: _,
1425
- iconOnly: k
1425
+ iconOnly: T
1426
1426
  }) {
1427
- const C = !!e && e !== !0, E = (!!y ? 1 : 0) + (!!_ ? 1 : 0) == 1, A = k != null ? k : E && !C, O = [
1427
+ const C = !!e && e !== !0, O = (!!y ? 1 : 0) + (!!_ ? 1 : 0) == 1, A = T != null ? T : O && !C, M = [
1428
1428
  ne["orc-btn"],
1429
1429
  // base
1430
1430
  ne[`orc-btn--${g}`],
1431
1431
  // variant primary/secondary/tertiary
1432
- h ? ne[`orc-btn--${h}`] : "",
1432
+ f ? ne[`orc-btn--${f}`] : "",
1433
1433
  // sm / md / lg
1434
1434
  b ? ne["orc-btn--full"] : "",
1435
- l ? ne["orc-btn--fullHeight"] : "",
1435
+ r ? ne["orc-btn--fullHeight"] : "",
1436
1436
  A ? ne["orc-btn--iconOnly"] : "",
1437
- u
1438
- ].filter(Boolean).join(" "), B = /* @__PURE__ */ p(ee, { children: [
1437
+ m
1438
+ ].filter(Boolean).join(" "), N = /* @__PURE__ */ p(ee, { children: [
1439
1439
  y && /* @__PURE__ */ t("span", { className: ne["orc-btn__icon"], children: y }),
1440
1440
  !A && /* @__PURE__ */ t("span", { className: ne["orc-btn__label"], children: e }),
1441
1441
  _ && /* @__PURE__ */ t("span", { className: ne["orc-btn__icon"], children: _ })
1442
- ] }), w = s ? !0 : void 0;
1442
+ ] }), S = s ? !0 : void 0;
1443
1443
  return a ? /* @__PURE__ */ t(
1444
1444
  He,
1445
1445
  {
1446
1446
  href: a,
1447
1447
  target: o,
1448
1448
  rel: i,
1449
- "aria-label": m,
1450
- "aria-disabled": w,
1451
- tabIndex: w ? -1 : void 0,
1452
- className: O,
1453
- onClick: w ? (R) => R.preventDefault() : n,
1454
- children: B
1449
+ "aria-label": d,
1450
+ "aria-disabled": S,
1451
+ tabIndex: S ? -1 : void 0,
1452
+ className: M,
1453
+ onClick: S ? (R) => R.preventDefault() : n,
1454
+ children: N
1455
1455
  }
1456
1456
  ) : /* @__PURE__ */ t(
1457
1457
  "button",
1458
1458
  {
1459
- type: r,
1459
+ type: l,
1460
1460
  onClick: n,
1461
- disabled: !!w,
1462
- "aria-label": m,
1463
- className: O,
1464
- children: B
1461
+ disabled: !!S,
1462
+ "aria-label": d,
1463
+ className: M,
1464
+ children: N
1465
1465
  }
1466
1466
  );
1467
1467
  }
@@ -1482,22 +1482,22 @@ const wn = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", Sn = "
1482
1482
  real: !1,
1483
1483
  type: "short_sleeves"
1484
1484
  }, Ce = (e, n, a = "player") => {
1485
- var i, r;
1485
+ var i, l;
1486
1486
  if (e === void 0)
1487
1487
  return null;
1488
1488
  if (e === null)
1489
1489
  return n === "home" ? Pe : ze;
1490
- const o = (r = (i = e == null ? void 0 : e.jerseys) == null ? void 0 : i[n]) == null ? void 0 : r[a];
1490
+ const o = (l = (i = e == null ? void 0 : e.jerseys) == null ? void 0 : i[n]) == null ? void 0 : l[a];
1491
1491
  return o || (n === "home" ? Pe : ze);
1492
1492
  };
1493
1493
  function On({ event: e, liveData: n, betOffers: a, jersey: o }) {
1494
- var g, h, b, l, u, m, y, _, k, C, M;
1494
+ var g, f, b, r, m, d, y, _, T, C, B;
1495
1495
  const i = a == null ? void 0 : a.find(
1496
- (N) => {
1497
- var E;
1498
- return ((E = N.betOfferType) == null ? void 0 : E.id) === 2;
1496
+ ($) => {
1497
+ var O;
1498
+ return ((O = $.betOfferType) == null ? void 0 : O.id) === 2;
1499
1499
  }
1500
- ), r = {
1500
+ ), l = {
1501
1501
  englishLabel: "",
1502
1502
  type: "",
1503
1503
  betOfferId: 0,
@@ -1507,32 +1507,32 @@ function On({ event: e, liveData: n, betOffers: a, jersey: o }) {
1507
1507
  status: "INACTIVE",
1508
1508
  cashOutStatus: "SUSPENDED"
1509
1509
  }, s = [
1510
- { ...r, id: -1, label: "1", odds: void 0 },
1511
- { ...r, id: -2, label: "X", odds: void 0 },
1512
- { ...r, id: -3, label: "2", odds: void 0 }
1510
+ { ...l, id: -1, label: "1", odds: void 0 },
1511
+ { ...l, id: -2, label: "X", odds: void 0 },
1512
+ { ...l, id: -3, label: "2", odds: void 0 }
1513
1513
  ];
1514
1514
  return /* @__PURE__ */ t("div", { className: xe.cardWrapper, children: /* @__PURE__ */ p(V, { direction: "column", spacing: 1, useFlexGap: !0, children: [
1515
1515
  /* @__PURE__ */ p(V, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
1516
1516
  /* @__PURE__ */ t(
1517
1517
  $t,
1518
1518
  {
1519
- title: (b = (h = (g = e == null ? void 0 : e.path) == null ? void 0 : g[0]) == null ? void 0 : h.name) != null ? b : "",
1520
- subtitle: (l = e == null ? void 0 : e.group) != null ? l : "",
1519
+ title: (b = (f = (g = e == null ? void 0 : e.path) == null ? void 0 : g[0]) == null ? void 0 : f.name) != null ? b : "",
1520
+ subtitle: (r = e == null ? void 0 : e.group) != null ? r : "",
1521
1521
  live: !0,
1522
- time: ((u = n == null ? void 0 : n.matchClock) == null ? void 0 : u.minute) != null ? `${n.matchClock.minute}'` : ""
1522
+ time: ((m = n == null ? void 0 : n.matchClock) == null ? void 0 : m.minute) != null ? `${n.matchClock.minute}'` : ""
1523
1523
  }
1524
1524
  ),
1525
1525
  /* @__PURE__ */ t("div", { style: { padding: "0 4px" }, children: /* @__PURE__ */ p(oe, { spacing: 1.5, columns: "1fr auto 1fr", children: [
1526
1526
  /* @__PURE__ */ t(Se, { name: e == null ? void 0 : e.homeName, jersey: Ce(o, "home") }),
1527
- /* @__PURE__ */ t(et, { text: ((y = (m = n == null ? void 0 : n.score) == null ? void 0 : m.home) != null ? y : 0) + ":" + ((k = (_ = n == null ? void 0 : n.score) == null ? void 0 : _.away) != null ? k : 0), name: "En vivo" }),
1527
+ /* @__PURE__ */ t(et, { text: ((y = (d = n == null ? void 0 : n.score) == null ? void 0 : d.home) != null ? y : 0) + ":" + ((T = (_ = n == null ? void 0 : n.score) == null ? void 0 : _.away) != null ? T : 0), name: "En vivo" }),
1528
1528
  /* @__PURE__ */ t(Se, { name: e == null ? void 0 : e.awayName, jersey: Ce(o, "away") })
1529
1529
  ] }) })
1530
1530
  ] }),
1531
1531
  /* @__PURE__ */ p(V, { direction: "column", spacing: 1, useFlexGap: !0, children: [
1532
- /* @__PURE__ */ t(oe, { spacing: 1, children: ((C = i == null ? void 0 : i.outcomes) != null ? C : s).map((N, E) => /* @__PURE__ */ t(Ye, { text: N.label.toUpperCase() }, E)) }),
1533
- /* @__PURE__ */ t(oe, { spacing: 2, children: ((M = i == null ? void 0 : i.outcomes) != null ? M : s).map((N, E) => /* @__PURE__ */ t(xn, { variant: "primary", disabled: N.odds == null || (i == null ? void 0 : i.cashOutStatus) == "SUSPENDED", onClick: () => {
1534
- Le("/deportes#event/live/" + e.id, N.id);
1535
- }, className: xe.customButtonDisabled, children: /* @__PURE__ */ t("span", { className: xe.customButtonLabel, children: N.odds === void 0 ? "" : (N.odds / 1e3).toFixed(2) }) }, E)) })
1532
+ /* @__PURE__ */ t(oe, { spacing: 1, children: ((C = i == null ? void 0 : i.outcomes) != null ? C : s).map(($, O) => /* @__PURE__ */ t(Ye, { text: $.label.toUpperCase() }, O)) }),
1533
+ /* @__PURE__ */ t(oe, { spacing: 2, children: ((B = i == null ? void 0 : i.outcomes) != null ? B : s).map(($, O) => /* @__PURE__ */ t(xn, { variant: "primary", disabled: $.odds == null || (i == null ? void 0 : i.cashOutStatus) == "SUSPENDED", onClick: () => {
1534
+ Le("/deportes#event/live/" + e.id, $.id);
1535
+ }, className: xe.customButtonDisabled, children: /* @__PURE__ */ t("span", { className: xe.customButtonLabel, children: $.odds === void 0 ? "" : ($.odds / 1e3).toFixed(2) }) }, O)) })
1536
1536
  ] })
1537
1537
  ] }) });
1538
1538
  }
@@ -1549,25 +1549,25 @@ const kn = "oraculo__OraculoEventSemanaCard-module__cardContainer___4JuDe", $n =
1549
1549
  equipos: Mn
1550
1550
  };
1551
1551
  function Bn({ event: e, jersey: n }) {
1552
- var s, g, h, b, l, u, m;
1552
+ var s, g, f, b, r, m, d;
1553
1553
  const a = J(), o = X();
1554
1554
  function i(y) {
1555
- const _ = new Date(y), k = _.toLocaleDateString("es-ES", { weekday: "short" }).toUpperCase(), C = _.getDate().toString().padStart(2, "0"), M = (_.getMonth() + 1).toString().padStart(2, "0");
1556
- let N = _.toLocaleTimeString("es-PE", { hour: "numeric", minute: "2-digit", hour12: !0 }).toUpperCase();
1557
- return N = N.replace(/\./g, "").replace(/A\s*M/i, "AM").replace(/P\s*M/i, "PM"), `${k} ${C}/${M} | ${N}`;
1555
+ const _ = new Date(y), T = _.toLocaleDateString("es-ES", { weekday: "short" }).toUpperCase(), C = _.getDate().toString().padStart(2, "0"), B = (_.getMonth() + 1).toString().padStart(2, "0");
1556
+ let $ = _.toLocaleTimeString("es-PE", { hour: "numeric", minute: "2-digit", hour12: !0 }).toUpperCase();
1557
+ return $ = $.replace(/\./g, "").replace(/A\s*M/i, "AM").replace(/P\s*M/i, "PM"), `${T} ${C}/${B} | ${$}`;
1558
1558
  }
1559
- const r = (y, _) => {
1560
- const k = `${e.homeName} vs ${e.awayName}`, C = _ ? (_ / 1e3).toFixed(2) : "", M = C ? `${k} - Cuota: ${C}` : k;
1559
+ const l = (y, _) => {
1560
+ const T = `${e.homeName} vs ${e.awayName}`, C = _ ? (_ / 1e3).toFixed(2) : "", B = C ? `${T} - Cuota: ${C}` : T;
1561
1561
  a({
1562
1562
  element: "evento_semana_outcome",
1563
- label: `Landing: ${o} - OraculoEventSemanaCard - Click: ${M}`,
1563
+ label: `Landing: ${o} - OraculoEventSemanaCard - Click: ${B}`,
1564
1564
  target: "/deportes#in-play",
1565
1565
  event_type: "click",
1566
1566
  module_id: 301,
1567
1567
  metadata: {
1568
1568
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
1569
1569
  },
1570
- tags: { section: "OraculoEventSemanaCard", outcomes: M }
1570
+ tags: { section: "OraculoEventSemanaCard", outcomes: B }
1571
1571
  }), Le("/deportes#event/" + e.id, y);
1572
1572
  };
1573
1573
  return /* @__PURE__ */ p("div", { className: ce.cardContainer, children: [
@@ -1582,9 +1582,9 @@ function Bn({ event: e, jersey: n }) {
1582
1582
  /* @__PURE__ */ t(Tn, { text: i(e.start) })
1583
1583
  ] }),
1584
1584
  /* @__PURE__ */ p(V, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
1585
- /* @__PURE__ */ t(oe, { spacing: 1, children: ((b = (h = (g = e == null ? void 0 : e.outcome) == null ? void 0 : g[0]) == null ? void 0 : h.outcomes) != null ? b : []).map((y, _) => /* @__PURE__ */ t(Ye, { text: y.label.toUpperCase() }, _)) }),
1586
- /* @__PURE__ */ t("div", { className: ce.jugadas, children: /* @__PURE__ */ t(oe, { spacing: 1, children: ((m = (u = (l = e == null ? void 0 : e.outcome) == null ? void 0 : l[0]) == null ? void 0 : u.outcomes) != null ? m : []).map((y, _) => /* @__PURE__ */ t(W, { variant: "primary", fullHeight: !0, onClick: () => {
1587
- r(y.id, y.odds);
1585
+ /* @__PURE__ */ t(oe, { spacing: 1, children: ((b = (f = (g = e == null ? void 0 : e.outcome) == null ? void 0 : g[0]) == null ? void 0 : f.outcomes) != null ? b : []).map((y, _) => /* @__PURE__ */ t(Ye, { text: y.label.toUpperCase() }, _)) }),
1586
+ /* @__PURE__ */ t("div", { className: ce.jugadas, children: /* @__PURE__ */ t(oe, { spacing: 1, children: ((d = (m = (r = e == null ? void 0 : e.outcome) == null ? void 0 : r[0]) == null ? void 0 : m.outcomes) != null ? d : []).map((y, _) => /* @__PURE__ */ t(W, { variant: "primary", fullHeight: !0, onClick: () => {
1587
+ l(y.id, y.odds);
1588
1588
  }, children: (y.odds / 1e3).toFixed(2) }, _)) }) })
1589
1589
  ] })
1590
1590
  ] }) })
@@ -1597,9 +1597,9 @@ function Ln({
1597
1597
  onViewMore: o,
1598
1598
  className: i = ""
1599
1599
  }) {
1600
- const r = U(null), [s, g] = D({ isStart: !0, isEnd: !1 }), h = J(), b = X(), l = !e || e.length === 0, u = () => {
1600
+ const l = U(null), [s, g] = D({ isStart: !0, isEnd: !1 }), f = J(), b = X(), r = !e || e.length === 0, m = () => {
1601
1601
  var C;
1602
- h({
1602
+ f({
1603
1603
  element: "destacados_carousel_prev",
1604
1604
  label: `Landing: ${b} - OraculoSeccionDestacados - Anterior`,
1605
1605
  target: "carousel",
@@ -1609,10 +1609,10 @@ function Ln({
1609
1609
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
1610
1610
  },
1611
1611
  tags: { section: "OraculoSeccionDestacados" }
1612
- }), (C = r.current) == null || C.prev();
1613
- }, m = () => {
1612
+ }), (C = l.current) == null || C.prev();
1613
+ }, d = () => {
1614
1614
  var C;
1615
- h({
1615
+ f({
1616
1616
  element: "destacados_carousel_next",
1617
1617
  label: `Landing: ${b} - OraculoSeccionDestacados - Siguiente`,
1618
1618
  target: "carousel",
@@ -1622,9 +1622,9 @@ function Ln({
1622
1622
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
1623
1623
  },
1624
1624
  tags: { section: "OraculoSeccionDestacados" }
1625
- }), (C = r.current) == null || C.next();
1625
+ }), (C = l.current) == null || C.next();
1626
1626
  }, y = () => {
1627
- h({
1627
+ f({
1628
1628
  element: "destacados_view_more",
1629
1629
  label: `Landing: ${b} - OraculoSeccionDestacados - Ver más`,
1630
1630
  target: "https://www.olimpo.bet/promociones",
@@ -1637,11 +1637,11 @@ function Ln({
1637
1637
  }), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/promociones");
1638
1638
  }, _ = (C) => {
1639
1639
  if (!C) return;
1640
- const N = `https://www.olimpo.bet/promociones/${encodeURIComponent(C)}`;
1641
- h({
1640
+ const $ = `https://www.olimpo.bet/promociones/${encodeURIComponent(C)}`;
1641
+ f({
1642
1642
  element: "destacados_card",
1643
1643
  label: `Landing: ${b} - OraculoSeccionDestacados - Click: ${String(C)}`,
1644
- target: N,
1644
+ target: $,
1645
1645
  event_type: "click",
1646
1646
  module_id: 301,
1647
1647
  metadata: {
@@ -1651,7 +1651,7 @@ function Ln({
1651
1651
  section: "OraculoSeccionDestacados",
1652
1652
  promotion: String(C)
1653
1653
  }
1654
- }), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(N);
1654
+ }), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign($);
1655
1655
  };
1656
1656
  return /* @__PURE__ */ p("section", { className: i || void 0, style: { width: "100%" }, children: [
1657
1657
  /* @__PURE__ */ p(
@@ -1677,8 +1677,8 @@ function Ln({
1677
1677
  variant: "secondary",
1678
1678
  iconOnly: !0,
1679
1679
  leftIcon: /* @__PURE__ */ t(Ee, {}),
1680
- onClick: u,
1681
- disabled: s.isStart || l
1680
+ onClick: m,
1681
+ disabled: s.isStart || r
1682
1682
  }
1683
1683
  ),
1684
1684
  /* @__PURE__ */ t(
@@ -1688,8 +1688,8 @@ function Ln({
1688
1688
  variant: "secondary",
1689
1689
  iconOnly: !0,
1690
1690
  rightIcon: /* @__PURE__ */ t(Ie, {}),
1691
- onClick: m,
1692
- disabled: s.isEnd || l
1691
+ onClick: d,
1692
+ disabled: s.isEnd || r
1693
1693
  }
1694
1694
  )
1695
1695
  ] }),
@@ -1700,7 +1700,7 @@ function Ln({
1700
1700
  /* @__PURE__ */ t(
1701
1701
  se,
1702
1702
  {
1703
- ref: r,
1703
+ ref: l,
1704
1704
  items: e,
1705
1705
  perPage: void 0,
1706
1706
  gap: "16px",
@@ -1737,8 +1737,8 @@ function Ln({
1737
1737
  },
1738
1738
  `${C.title}-${C.image}`
1739
1739
  ),
1740
- onMove: ({ isStart: C, isEnd: M }) => {
1741
- g({ isStart: C, isEnd: M }), h({
1740
+ onMove: ({ isStart: C, isEnd: B }) => {
1741
+ g({ isStart: C, isEnd: B }), f({
1742
1742
  element: "destacados_carousel_slide",
1743
1743
  label: "OraculoSeccionDestacados - Slide Carousel",
1744
1744
  target: "carousel",
@@ -1747,7 +1747,7 @@ function Ln({
1747
1747
  metadata: {
1748
1748
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
1749
1749
  isStart: C,
1750
- isEnd: M
1750
+ isEnd: B
1751
1751
  },
1752
1752
  tags: { section: "OraculoSeccionDestacados" }
1753
1753
  });
@@ -1764,7 +1764,7 @@ function it() {
1764
1764
  function An(e) {
1765
1765
  it().extras = e;
1766
1766
  }
1767
- function re(e) {
1767
+ function ie(e) {
1768
1768
  var n;
1769
1769
  return (n = it().extras) == null ? void 0 : n[e];
1770
1770
  }
@@ -1777,34 +1777,34 @@ function Fn({
1777
1777
  iconUrl: a,
1778
1778
  onCardClick: o
1779
1779
  }) {
1780
- const i = J(), r = X(), s = Q(
1781
- () => (e != null ? e : []).map((l, u) => {
1782
- var m;
1780
+ const i = J(), l = X(), s = Q(
1781
+ () => (e != null ? e : []).map((r, m) => {
1782
+ var d;
1783
1783
  return {
1784
- ...l,
1785
- orden: (m = l.orden) != null ? m : u + 1,
1786
- _originalIndex: u
1784
+ ...r,
1785
+ orden: (d = r.orden) != null ? d : m + 1,
1786
+ _originalIndex: m
1787
1787
  };
1788
- }).sort((l, u) => l.orden != null && u.orden != null ? l.orden - u.orden : l._originalIndex - u._originalIndex),
1788
+ }).sort((r, m) => r.orden != null && m.orden != null ? r.orden - m.orden : r._originalIndex - m._originalIndex),
1789
1789
  [e]
1790
- ), g = !e || e.length === 0, h = g ? Array.from({ length: 6 }) : s.slice(0, 6), b = (l) => {
1790
+ ), g = !e || e.length === 0, f = g ? Array.from({ length: 6 }) : s.slice(0, 6), b = (r) => {
1791
1791
  i({
1792
1792
  element: "top_juegos_card",
1793
- label: `Landing: ${r} - OraculoSeccionTopJuegos - Open game: ${String(l.machine || "unknown")}`,
1794
- target: String(l.machine || "unknown"),
1793
+ label: `Landing: ${l} - OraculoSeccionTopJuegos - Open game: ${String(r.machine || "unknown")}`,
1794
+ target: String(r.machine || "unknown"),
1795
1795
  event_type: "click",
1796
1796
  module_id: 301,
1797
1797
  metadata: {
1798
1798
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
1799
1799
  },
1800
1800
  tags: {
1801
- game_name: String(l.machine || "unknown"),
1801
+ game_name: String(r.machine || "unknown"),
1802
1802
  section: "OraculoSeccionTopJuegos"
1803
1803
  }
1804
1804
  });
1805
- const u = re("showIframe"), m = re("loadMachine");
1806
- u == null || u(), requestAnimationFrame(() => {
1807
- m == null || m(l, !1, "CASINO");
1805
+ const m = ie("showIframe"), d = ie("loadMachine");
1806
+ m == null || m(), requestAnimationFrame(() => {
1807
+ d == null || d(r, !1, "CASINO");
1808
1808
  });
1809
1809
  };
1810
1810
  return /* @__PURE__ */ t("section", { style: { width: "100%" }, children: /* @__PURE__ */ p(V, { direction: "column", spacing: 2, useFlexGap: !0, children: [
@@ -1822,19 +1822,19 @@ function Fn({
1822
1822
  justifyItems: "center",
1823
1823
  width: "100%"
1824
1824
  },
1825
- children: h.map((l, u) => {
1826
- var m, y;
1825
+ children: f.map((r, m) => {
1826
+ var d, y;
1827
1827
  return /* @__PURE__ */ t(
1828
1828
  on,
1829
1829
  {
1830
- imageUrl: g ? "" : l.background ? `https://olimpo.bet${l.background}` : `https://olimpo.bet${(m = l.logo) != null ? m : ""}`,
1831
- orden: g ? u + 1 : l.orden,
1830
+ imageUrl: g ? "" : r.background ? `https://olimpo.bet${r.background}` : `https://olimpo.bet${(d = r.logo) != null ? d : ""}`,
1831
+ orden: g ? m + 1 : r.orden,
1832
1832
  loading: g,
1833
1833
  onClick: g ? void 0 : () => {
1834
- o == null || o(l), b(l);
1834
+ o == null || o(r), b(r);
1835
1835
  }
1836
1836
  },
1837
- g ? `sk-${u}` : (y = l.machine) != null ? y : `${u}`
1837
+ g ? `sk-${m}` : (y = r.machine) != null ? y : `${m}`
1838
1838
  );
1839
1839
  })
1840
1840
  }
@@ -1850,43 +1850,43 @@ const Pn = (e, n) => {
1850
1850
  subtitle: a = "Disfruta la emoción en tus juegos favoritos y gana en tiempo real.",
1851
1851
  backgroundMobileUrl: o = "",
1852
1852
  onCardClick: i,
1853
- backgroundDesktopUrl: r = "",
1853
+ backgroundDesktopUrl: l = "",
1854
1854
  onViewMore: s,
1855
1855
  className: g
1856
1856
  }) => {
1857
- const h = J(), b = X(), l = (m) => {
1858
- h({
1857
+ const f = J(), b = X(), r = (d) => {
1858
+ f({
1859
1859
  element: "live_casino_card",
1860
- label: `Landing: ${b} - OraculoSeccionCasinoEnVivo - Open game: ${String(m.machine || "unknown")}`,
1861
- target: String(m.machine || "unknown"),
1860
+ label: `Landing: ${b} - OraculoSeccionCasinoEnVivo - Open game: ${String(d.machine || "unknown")}`,
1861
+ target: String(d.machine || "unknown"),
1862
1862
  event_type: "click",
1863
1863
  module_id: 301,
1864
1864
  metadata: {
1865
1865
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
1866
1866
  },
1867
1867
  tags: {
1868
- game_name: String(m.machine || "unknown"),
1869
- provider: m.provider || "unknown",
1868
+ game_name: String(d.machine || "unknown"),
1869
+ provider: d.provider || "unknown",
1870
1870
  section: "OraculoSeccionCasinoEnVivo"
1871
1871
  }
1872
1872
  });
1873
- const y = re("showIframe"), _ = re("loadMachine");
1873
+ const y = ie("showIframe"), _ = ie("loadMachine");
1874
1874
  if (!_) {
1875
1875
  if (i) {
1876
- i(m);
1876
+ i(d);
1877
1877
  return;
1878
1878
  }
1879
1879
  console.warn(
1880
1880
  "[OraculoSeccionCasinoEnVivo] No existe loadMachine en extras ni onCardClick. No se puede abrir el juego.",
1881
- { machine: m == null ? void 0 : m.machine, provider: m == null ? void 0 : m.provider }
1881
+ { machine: d == null ? void 0 : d.machine, provider: d == null ? void 0 : d.provider }
1882
1882
  );
1883
1883
  return;
1884
1884
  }
1885
1885
  y == null || y(), typeof window != "undefined" && window.scrollTo({ top: 0, behavior: "smooth" }), requestAnimationFrame(() => {
1886
- _ == null || _(m, !1, "casino_en_vivo");
1886
+ _ == null || _(d, !1, "casino_en_vivo");
1887
1887
  });
1888
- }, u = () => {
1889
- h({
1888
+ }, m = () => {
1889
+ f({
1890
1890
  element: "casino_en_vivo_view_more",
1891
1891
  label: `Landing: ${b} - OraculoSeccionCasinoEnVivo - Ver más`,
1892
1892
  target: "https://www.olimpo.bet/casino-en-vivo",
@@ -1924,7 +1924,7 @@ const Pn = (e, n) => {
1924
1924
  md: `
1925
1925
  linear-gradient(to bottom, #121212 0%, rgba(18,18,18,0) 10%),
1926
1926
  linear-gradient(to top, #121212 0%, rgba(18,18,18,0) 10%),
1927
- url('${r}')
1927
+ url('${l}')
1928
1928
  `
1929
1929
  },
1930
1930
  backgroundSize: "cover",
@@ -1983,7 +1983,7 @@ const Pn = (e, n) => {
1983
1983
  {
1984
1984
  variant: "primary",
1985
1985
  size: "md",
1986
- onClick: u,
1986
+ onClick: m,
1987
1987
  children: "Ver más"
1988
1988
  }
1989
1989
  ) })
@@ -1999,18 +1999,18 @@ const Pn = (e, n) => {
1999
1999
  py: { xs: 3, md: 0 },
2000
2000
  alignItems: "center"
2001
2001
  },
2002
- children: (e != null ? e : []).slice(0, 3).map((m, y) => {
2002
+ children: (e != null ? e : []).slice(0, 3).map((d, y) => {
2003
2003
  var _;
2004
2004
  return /* @__PURE__ */ t(
2005
2005
  rn,
2006
2006
  {
2007
- logo: `https://olimpo.bet${m.background ? m.background : (_ = m.logo) != null ? _ : ""}`,
2008
- provider: m.provider,
2009
- providerName: m.web_name,
2010
- machine: m.machine,
2011
- onClick: () => l(m)
2007
+ logo: `https://olimpo.bet${d.background ? d.background : (_ = d.logo) != null ? _ : ""}`,
2008
+ provider: d.provider,
2009
+ providerName: d.web_name,
2010
+ machine: d.machine,
2011
+ onClick: () => r(d)
2012
2012
  },
2013
- Pn(m, y)
2013
+ Pn(d, y)
2014
2014
  );
2015
2015
  })
2016
2016
  }
@@ -2020,7 +2020,7 @@ const Pn = (e, n) => {
2020
2020
  {
2021
2021
  variant: "primary",
2022
2022
  size: "lg",
2023
- onClick: u,
2023
+ onClick: m,
2024
2024
  children: "Ver más"
2025
2025
  }
2026
2026
  ) })
@@ -2030,65 +2030,74 @@ const Pn = (e, n) => {
2030
2030
  ]
2031
2031
  }
2032
2032
  );
2033
- }, Un = (e, n) => {
2034
- var a, o, i, r, s, g, h, b;
2033
+ }, Un = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommendations", qn = (e, n) => {
2034
+ var a, o, i, l, s, g, f, b, r, m, d;
2035
2035
  return {
2036
2036
  ...e,
2037
2037
  id: (a = e.id) != null ? a : n,
2038
2038
  orden: (o = e.id) != null ? o : n,
2039
- // machine: String(machine.logo ?? machine.machine ),
2039
+ machine: String(
2040
+ (s = (l = (i = e.id) != null ? i : e.machine) != null ? l : e.external_id) != null ? s : n
2041
+ ),
2040
2042
  logo: e.logo,
2041
- room_name: (i = e.room_name) != null ? i : "",
2042
- product: (r = e.product) != null ? r : "",
2043
- service: (s = e.service) != null ? s : "",
2044
- provider: (g = e.provider) != null ? g : "",
2045
- game_type: (h = e.game_type) != null ? h : null,
2046
- external_id: (b = e.external_id) != null ? b : ""
2043
+ room_name: (g = e.room_name) != null ? g : "",
2044
+ product: (f = e.product) != null ? f : "",
2045
+ service: (b = e.service) != null ? b : "",
2046
+ provider: (r = e.provider) != null ? r : "",
2047
+ game_type: (m = e.game_type) != null ? m : null,
2048
+ external_id: (d = e.external_id) != null ? d : ""
2047
2049
  };
2048
- }, qn = (e) => {
2049
- if (!e) return [];
2050
- if (!Array.isArray(e) && Array.isArray(e.recommendations))
2051
- return e.recommendations.filter(Boolean).map((n) => String(n));
2052
- if (Array.isArray(e)) {
2053
- if (e.length === 0) return [];
2054
- const n = e[0];
2055
- return typeof n == "string" || typeof n == "number" ? e.filter(Boolean).map((a) => String(a)) : n && Array.isArray(n.recommendations) ? n.recommendations.filter(Boolean).map((a) => String(a)) : e.map((a) => a ? typeof a == "string" || typeof a == "number" ? String(a) : a.machine ? String(a.machine) : a.id ? String(a.id) : a.itemId ? String(a.itemId) : null : null).filter((a) => a !== null);
2056
- }
2057
- return [];
2058
- }, Vn = (e, n = !1) => {
2059
- const [a, o] = D([]), [i, r] = D(!1);
2050
+ }, Vn = (e) => e ? !Array.isArray(e) && Array.isArray(e.recommendations) ? e.recommendations.filter(Boolean).map((n) => String(n)) : [] : [], Dn = () => {
2051
+ var n, a, o;
2052
+ const e = ie("user");
2053
+ return (o = (a = (n = e == null ? void 0 : e.userId) != null ? n : e == null ? void 0 : e.user) != null ? a : e == null ? void 0 : e.id) != null ? o : null;
2054
+ }, Wn = async () => {
2055
+ const e = Dn(), n = new URLSearchParams({
2056
+ userId: String(e),
2057
+ productType: "Casino",
2058
+ filter: "high-payout"
2059
+ }), a = `${Un}?${n.toString()}`, o = await fetch(a);
2060
+ if (!o.ok)
2061
+ throw new Error(
2062
+ `No se pudo obtener recomendaciones. HTTP ${o.status} ${o.statusText}`
2063
+ );
2064
+ return o.json();
2065
+ }, Gn = (e, n = !1) => {
2066
+ const [a, o] = D([]), [i, l] = D(!1);
2060
2067
  return K(() => {
2061
2068
  let s = !1;
2062
2069
  return (async () => {
2063
2070
  if (!n) {
2064
- o(Array.isArray(e) ? e : []), r(!1);
2065
- return;
2066
- }
2067
- const h = qn(e);
2068
- if (!h.length) {
2069
- o([]), r(!1);
2071
+ o(Array.isArray(e) ? e : []), l(!1);
2070
2072
  return;
2071
2073
  }
2072
- r(!0);
2074
+ l(!0);
2073
2075
  try {
2074
- const b = await Promise.allSettled(
2075
- h.map(async (u, m) => {
2076
- const y = await fetch(
2077
- `https://api.mktolimpo.com/api/machine/${u}`
2076
+ const f = await Wn(), b = Vn(f);
2077
+ if (!b.length) {
2078
+ s || o([]);
2079
+ return;
2080
+ }
2081
+ const r = await Promise.allSettled(
2082
+ b.map(async (d, y) => {
2083
+ const _ = await fetch(
2084
+ `https://api.mktolimpo.com/api/machine/${d}`
2078
2085
  );
2079
- if (!y.ok)
2080
- throw new Error(`No se pudo obtener machine ${u}`);
2081
- const _ = await y.json();
2082
- return Un(_, m);
2086
+ if (!_.ok)
2087
+ throw new Error(`No se pudo obtener machine ${d}`);
2088
+ const T = await _.json();
2089
+ return qn(T, y);
2083
2090
  })
2084
2091
  );
2085
2092
  if (s) return;
2086
- const l = b.filter((u) => u.status === "fulfilled").map((u) => u.value);
2087
- o(l);
2088
- } catch (b) {
2089
- console.error("[usePersonalizeCasinoItems] error:", b), s || o([]);
2093
+ const m = r.filter(
2094
+ (d) => d.status === "fulfilled"
2095
+ ).map((d) => d.value);
2096
+ o(m);
2097
+ } catch (f) {
2098
+ console.error("[usePersonalizeCasinoItems] error:", f), s || o([]);
2090
2099
  } finally {
2091
- s || r(!1);
2100
+ s || l(!1);
2092
2101
  }
2093
2102
  })(), () => {
2094
2103
  s = !0;
@@ -2097,7 +2106,7 @@ const Pn = (e, n) => {
2097
2106
  resolvedItems: a,
2098
2107
  loading: i
2099
2108
  };
2100
- }, Dn = (e) => {
2109
+ }, jn = (e) => {
2101
2110
  if (typeof e == "boolean") return e;
2102
2111
  if (typeof e == "string")
2103
2112
  return e.toLowerCase() === "true";
@@ -2110,37 +2119,37 @@ const Pn = (e, n) => {
2110
2119
  }, rt = (e, n) => {
2111
2120
  var a, o;
2112
2121
  return (o = (a = e.orden) != null ? a : e.machine) != null ? o : n;
2113
- }, Wn = (e, n = !0, a = 1) => {
2122
+ }, Hn = (e, n = !0, a = 1) => {
2114
2123
  const o = e.map((s, g) => {
2115
- var h;
2124
+ var f;
2116
2125
  return {
2117
2126
  id: rt(s, g),
2118
- imageUrl: (h = s.logo) != null ? h : "",
2127
+ imageUrl: (f = s.logo) != null ? f : "",
2119
2128
  ...s.background ? { background: s.background } : {}
2120
2129
  };
2121
2130
  });
2122
2131
  if (!o.length) return [];
2123
2132
  const i = [];
2124
- let r = 0;
2133
+ let l = 0;
2125
2134
  if (n) {
2126
2135
  const s = Math.min(o.length, 1);
2127
2136
  i.push({
2128
2137
  id: "mosaic-0",
2129
2138
  kind: "mosaic",
2130
2139
  items: o.slice(0, s)
2131
- }), r = s;
2140
+ }), l = s;
2132
2141
  }
2133
- for (; r < o.length; ) {
2134
- const s = Math.min(r + a, o.length);
2142
+ for (; l < o.length; ) {
2143
+ const s = Math.min(l + a, o.length);
2135
2144
  i.push({
2136
- id: `grid-${r}`,
2145
+ id: `grid-${l}`,
2137
2146
  kind: "grid",
2138
- items: o.slice(r, s)
2139
- }), r = s;
2147
+ items: o.slice(l, s)
2148
+ }), l = s;
2140
2149
  }
2141
2150
  return i;
2142
- }, Gn = (e = !0, n = 4) => {
2143
- const a = (i) => Array.from({ length: i }, (r, s) => ({
2151
+ }, Kn = (e = !0, n = 4) => {
2152
+ const a = (i) => Array.from({ length: i }, (l, s) => ({
2144
2153
  id: `sk-${i}-${s}`,
2145
2154
  imageUrl: ""
2146
2155
  })), o = [];
@@ -2153,22 +2162,22 @@ const Pn = (e, n) => {
2153
2162
  kind: "grid",
2154
2163
  items: a(n)
2155
2164
  }), o;
2156
- }, jn = ({
2165
+ }, Zn = ({
2157
2166
  items: e,
2158
2167
  title: n = "Casino",
2159
2168
  iconUrl: a = "/assets/img/home/Casino/diamante.svg",
2160
2169
  onItemClick: o,
2161
2170
  onViewMore: i,
2162
- mosaicFirst: r = !0,
2171
+ mosaicFirst: l = !0,
2163
2172
  gridSize: s = 1,
2164
2173
  isPersonalize: g = !1
2165
2174
  }) => {
2166
- const h = J(), b = X(), l = U(null), [u, m] = D({ isStart: !0, isEnd: !1 }), y = Dn(g), { resolvedItems: _, loading: k } = Vn(
2175
+ const f = J(), b = X(), r = U(null), [m, d] = D({ isStart: !0, isEnd: !1 }), y = jn(g), { resolvedItems: _, loading: T } = Gn(
2167
2176
  e,
2168
2177
  y
2169
- ), C = Q(() => y ? k : !_ || _.length === 0, [y, k, _]), M = Q(() => C ? Gn(r, s) : Wn(_, r, s), [C, r, s, _]), N = () => {
2170
- var O;
2171
- h({
2178
+ ), C = y ? _ : Array.isArray(e) ? e : [], B = y ? T : C.length === 0, $ = Q(() => B ? Kn(l, s) : Hn(C, l, s), [B, l, s, C]), O = () => {
2179
+ var N;
2180
+ f({
2172
2181
  element: "casino_prev",
2173
2182
  label: `Landing: ${b} - OraculoSeccionCasino - Anterior`,
2174
2183
  target: "prev",
@@ -2178,10 +2187,10 @@ const Pn = (e, n) => {
2178
2187
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
2179
2188
  },
2180
2189
  tags: { section: "OraculoSeccionCasino" }
2181
- }), (O = l.current) == null || O.prev();
2182
- }, E = () => {
2183
- var O;
2184
- h({
2190
+ }), (N = r.current) == null || N.prev();
2191
+ }, A = () => {
2192
+ var N;
2193
+ f({
2185
2194
  element: "casino_next",
2186
2195
  label: `Landing: ${b} - OraculoSeccionCasino - Siguiente`,
2187
2196
  target: "next",
@@ -2191,9 +2200,9 @@ const Pn = (e, n) => {
2191
2200
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
2192
2201
  },
2193
2202
  tags: { section: "OraculoSeccionCasino" }
2194
- }), (O = l.current) == null || O.next();
2195
- }, A = () => {
2196
- if (h({
2203
+ }), (N = r.current) == null || N.next();
2204
+ }, M = () => {
2205
+ if (f({
2197
2206
  element: "casino_view_more",
2198
2207
  label: `Landing: ${b} - OraculoSeccionCasino - Ver más`,
2199
2208
  target: "https://www.olimpo.bet/casino",
@@ -2231,8 +2240,8 @@ const Pn = (e, n) => {
2231
2240
  variant: "secondary",
2232
2241
  iconOnly: !0,
2233
2242
  leftIcon: /* @__PURE__ */ t(Ze, {}),
2234
- onClick: N,
2235
- disabled: u.isStart
2243
+ onClick: O,
2244
+ disabled: m.isStart
2236
2245
  }
2237
2246
  ),
2238
2247
  /* @__PURE__ */ t(
@@ -2242,20 +2251,20 @@ const Pn = (e, n) => {
2242
2251
  variant: "secondary",
2243
2252
  iconOnly: !0,
2244
2253
  rightIcon: /* @__PURE__ */ t(Je, {}),
2245
- onClick: E,
2246
- disabled: u.isEnd
2254
+ onClick: A,
2255
+ disabled: m.isEnd
2247
2256
  }
2248
2257
  )
2249
2258
  ] }),
2250
- /* @__PURE__ */ t(L, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(W, { variant: "secondary", onClick: A, children: "Ver más" }) })
2259
+ /* @__PURE__ */ t(L, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(W, { variant: "secondary", onClick: M, children: "Ver más" }) })
2251
2260
  ]
2252
2261
  }
2253
2262
  ),
2254
2263
  /* @__PURE__ */ t(
2255
2264
  se,
2256
2265
  {
2257
- ref: l,
2258
- items: M,
2266
+ ref: r,
2267
+ items: $,
2259
2268
  perPage: void 0,
2260
2269
  gap: "16px",
2261
2270
  enableHorizontalWheel: !0,
@@ -2278,90 +2287,90 @@ const Pn = (e, n) => {
2278
2287
  padding: { left: "24px", right: "24px" }
2279
2288
  }
2280
2289
  },
2281
- renderItem: (O) => /* @__PURE__ */ t("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ t(
2290
+ renderItem: (N) => /* @__PURE__ */ t("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ t(
2282
2291
  tt,
2283
2292
  {
2284
- items: O.items,
2285
- layout: O.kind === "mosaic" ? "mosaic" : "grid",
2286
- loading: C,
2287
- onClick: (B) => {
2288
- if (C) return;
2289
- const w = _.find(
2290
- (S, T) => String(rt(S, T)) === String(B.id)
2293
+ items: N.items,
2294
+ layout: N.kind === "mosaic" ? "mosaic" : "grid",
2295
+ loading: B,
2296
+ onClick: (S) => {
2297
+ if (B) return;
2298
+ const R = C.find(
2299
+ (I, F) => String(rt(I, F)) === String(S.id)
2291
2300
  );
2292
- if (!w) return;
2293
- o == null || o(w), h({
2301
+ if (!R) return;
2302
+ o == null || o(R), f({
2294
2303
  element: "casino_game_card",
2295
- label: `Landing: ${b} - OraculoSeccionCasino - Open game: ${String(w.machine) || "unknown"}`,
2296
- target: String(w.machine || "unknown"),
2304
+ label: `Landing: ${b} - OraculoSeccionCasino - Open game: ${String(R.machine) || "unknown"}`,
2305
+ target: String(R.machine || "unknown"),
2297
2306
  event_type: "click",
2298
2307
  module_id: 301,
2299
2308
  metadata: {
2300
2309
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
2301
2310
  },
2302
2311
  tags: {
2303
- game_name: String(w.machine || "unknown"),
2312
+ game_name: String(R.machine || "unknown"),
2304
2313
  section: n || "Casino"
2305
2314
  }
2306
2315
  });
2307
- const R = re("showIframe"), z = re("loadMachine");
2308
- R == null || R(), z == null || z(w, !1, "CASINO");
2316
+ const z = ie("showIframe"), w = ie("loadMachine");
2317
+ z == null || z(), w == null || w(R, !1, "CASINO");
2309
2318
  }
2310
2319
  }
2311
2320
  ) }),
2312
- onMove: ({ isStart: O, isEnd: B }) => m({ isStart: O, isEnd: B })
2321
+ onMove: ({ isStart: N, isEnd: S }) => d({ isStart: N, isEnd: S })
2313
2322
  }
2314
2323
  )
2315
2324
  ] }) });
2316
2325
  }, lt = (e, n) => {
2317
2326
  var a, o;
2318
2327
  return (o = (a = e.orden) != null ? a : e.machine) != null ? o : n;
2319
- }, Hn = (e, n = !0, a = 1) => {
2328
+ }, Jn = (e, n = !0, a = 1) => {
2320
2329
  const o = e.map((s, g) => {
2321
- var h;
2330
+ var f;
2322
2331
  return {
2323
2332
  id: lt(s, g),
2324
- imageUrl: (h = s.logo) != null ? h : "",
2333
+ imageUrl: (f = s.logo) != null ? f : "",
2325
2334
  ...s.background ? { background: s.background } : {}
2326
2335
  };
2327
2336
  });
2328
2337
  if (!o.length) return [];
2329
2338
  const i = [];
2330
- let r = 0;
2339
+ let l = 0;
2331
2340
  if (n) {
2332
2341
  const s = Math.min(o.length, 1);
2333
2342
  i.push({
2334
2343
  id: "mosaic-0",
2335
2344
  kind: "mosaic",
2336
2345
  items: o.slice(0, s)
2337
- }), r = s;
2346
+ }), l = s;
2338
2347
  }
2339
- for (; r < o.length; ) {
2340
- const s = Math.min(r + a, o.length);
2348
+ for (; l < o.length; ) {
2349
+ const s = Math.min(l + a, o.length);
2341
2350
  i.push({
2342
- id: `grid-${r}`,
2351
+ id: `grid-${l}`,
2343
2352
  kind: "grid",
2344
- items: o.slice(r, s)
2345
- }), r = s;
2353
+ items: o.slice(l, s)
2354
+ }), l = s;
2346
2355
  }
2347
2356
  return i;
2348
- }, Kn = (e = !0, n = 4) => {
2349
- const a = (i) => Array.from({ length: i }, (r, s) => ({ id: `sk-${i}-${s}`, imageUrl: "" })), o = [];
2357
+ }, Xn = (e = !0, n = 4) => {
2358
+ const a = (i) => Array.from({ length: i }, (l, s) => ({ id: `sk-${i}-${s}`, imageUrl: "" })), o = [];
2350
2359
  return e && o.push({ id: "mosaic-loading", kind: "mosaic", items: a(5) }), o.push({ id: "grid-loading", kind: "grid", items: a(n) }), o;
2351
- }, Zn = ({
2360
+ }, Yn = ({
2352
2361
  items: e,
2353
2362
  title: n = "Virtuales",
2354
2363
  iconUrl: a = "/assets/img/home/Virtuales/virtuales.svg",
2355
2364
  onItemClick: o,
2356
2365
  onViewMore: i,
2357
- mosaicFirst: r = !0,
2366
+ mosaicFirst: l = !0,
2358
2367
  gridSize: s = 1
2359
2368
  }) => {
2360
- const g = U(null), [h, b] = D({ isStart: !0, isEnd: !1 }), l = J(), u = X(), m = () => {
2361
- var M;
2362
- l({
2369
+ const g = U(null), [f, b] = D({ isStart: !0, isEnd: !1 }), r = J(), m = X(), d = () => {
2370
+ var B;
2371
+ r({
2363
2372
  element: "virtuales_prev",
2364
- label: `Landing: ${u} - OraculoSeccionVirtuales - Anterior`,
2373
+ label: `Landing: ${m} - OraculoSeccionVirtuales - Anterior`,
2365
2374
  target: "prev",
2366
2375
  event_type: "click",
2367
2376
  module_id: 301,
@@ -2369,12 +2378,12 @@ const Pn = (e, n) => {
2369
2378
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
2370
2379
  },
2371
2380
  tags: { section: "OraculoSeccionVirtuales" }
2372
- }), (M = g.current) == null || M.prev();
2381
+ }), (B = g.current) == null || B.prev();
2373
2382
  }, y = () => {
2374
- var M;
2375
- l({
2383
+ var B;
2384
+ r({
2376
2385
  element: "virtuales_next",
2377
- label: `Landing: ${u} - OraculoSeccionVirtuales - Siguiente`,
2386
+ label: `Landing: ${m} - OraculoSeccionVirtuales - Siguiente`,
2378
2387
  target: "next",
2379
2388
  event_type: "click",
2380
2389
  module_id: 301,
@@ -2382,11 +2391,11 @@ const Pn = (e, n) => {
2382
2391
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
2383
2392
  },
2384
2393
  tags: { section: "OraculoSeccionVirtuales" }
2385
- }), (M = g.current) == null || M.next();
2394
+ }), (B = g.current) == null || B.next();
2386
2395
  }, _ = () => {
2387
- l({
2396
+ r({
2388
2397
  element: "virtuales_view_more",
2389
- label: `Landing: ${u} - OraculoSeccionVirtuales - Ver más`,
2398
+ label: `Landing: ${m} - OraculoSeccionVirtuales - Ver más`,
2390
2399
  target: "https://www.olimpo.bet/juegos-virtuales",
2391
2400
  event_type: "click",
2392
2401
  module_id: 301,
@@ -2395,7 +2404,7 @@ const Pn = (e, n) => {
2395
2404
  },
2396
2405
  tags: { section: "OraculoSeccionVirtuales" }
2397
2406
  }), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/juegos-virtuales");
2398
- }, k = !e || e.length === 0, C = k ? Kn(r, s) : Hn(e, r, s);
2407
+ }, T = !e || e.length === 0, C = T ? Xn(l, s) : Jn(e, l, s);
2399
2408
  return /* @__PURE__ */ t("section", { children: /* @__PURE__ */ p(V, { direction: "column", spacing: 2, useFlexGap: !0, children: [
2400
2409
  /* @__PURE__ */ p(
2401
2410
  L,
@@ -2418,8 +2427,8 @@ const Pn = (e, n) => {
2418
2427
  variant: "secondary",
2419
2428
  iconOnly: !0,
2420
2429
  leftIcon: /* @__PURE__ */ t(Ze, {}),
2421
- onClick: m,
2422
- disabled: h.isStart
2430
+ onClick: d,
2431
+ disabled: f.isStart
2423
2432
  }
2424
2433
  ),
2425
2434
  /* @__PURE__ */ t(
@@ -2430,7 +2439,7 @@ const Pn = (e, n) => {
2430
2439
  iconOnly: !0,
2431
2440
  rightIcon: /* @__PURE__ */ t(Je, {}),
2432
2441
  onClick: y,
2433
- disabled: h.isEnd
2442
+ disabled: f.isEnd
2434
2443
  }
2435
2444
  )
2436
2445
  ] }),
@@ -2453,48 +2462,48 @@ const Pn = (e, n) => {
2453
2462
  enableHorizontalWheel: !0,
2454
2463
  showRightGradient: !0,
2455
2464
  options: { autoWidth: !0, trimSpace: "move" },
2456
- renderItem: (M) => /* @__PURE__ */ t("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ t(
2465
+ renderItem: (B) => /* @__PURE__ */ t("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ t(
2457
2466
  tt,
2458
2467
  {
2459
- items: M.items,
2460
- layout: M.kind === "mosaic" ? "mosaic" : "grid",
2461
- loading: k,
2462
- onClick: (N) => {
2463
- if (k) return;
2464
- const E = e.find(
2465
- (B, w) => String(lt(B, w)) === String(N.id)
2468
+ items: B.items,
2469
+ layout: B.kind === "mosaic" ? "mosaic" : "grid",
2470
+ loading: T,
2471
+ onClick: ($) => {
2472
+ if (T) return;
2473
+ const O = e.find(
2474
+ (N, S) => String(lt(N, S)) === String($.id)
2466
2475
  );
2467
- if (!E) {
2476
+ if (!O) {
2468
2477
  console.warn(
2469
2478
  "[virtuales] no se encontró game para id:",
2470
- N.id
2479
+ $.id
2471
2480
  );
2472
2481
  return;
2473
2482
  }
2474
- l({
2483
+ r({
2475
2484
  element: "virtuales_game_card",
2476
- label: `Landing: ${u} - OraculoSeccionVirtuales - Open game: ${String(E.machine || "unknown")}`,
2477
- target: String(E.machine || "unknown"),
2485
+ label: `Landing: ${m} - OraculoSeccionVirtuales - Open game: ${String(O.machine || "unknown")}`,
2486
+ target: String(O.machine || "unknown"),
2478
2487
  event_type: "click",
2479
2488
  module_id: 301,
2480
2489
  metadata: {
2481
2490
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
2482
2491
  },
2483
2492
  tags: {
2484
- game_name: String(E.machine || "unknown"),
2493
+ game_name: String(O.machine || "unknown"),
2485
2494
  section: "OraculoSeccionVirtuales"
2486
2495
  }
2487
2496
  });
2488
- const A = re("showIframe"), O = re("loadMachine");
2489
- A == null || A(), O == null || O(E, !1, "VIRTUALES");
2497
+ const A = ie("showIframe"), M = ie("loadMachine");
2498
+ A == null || A(), M == null || M(O, !1, "VIRTUALES");
2490
2499
  }
2491
2500
  }
2492
2501
  ) }),
2493
- onMove: ({ isStart: M, isEnd: N }) => b({ isStart: M, isEnd: N })
2502
+ onMove: ({ isStart: B, isEnd: $ }) => b({ isStart: B, isEnd: $ })
2494
2503
  }
2495
2504
  )
2496
2505
  ] }) });
2497
- }, Jn = (e) => ({
2506
+ }, Qn = (e) => ({
2498
2507
  position: "relative",
2499
2508
  py: 8,
2500
2509
  color: "#fff",
@@ -2526,92 +2535,92 @@ const Pn = (e, n) => {
2526
2535
  0 0 6px rgba(255, 255, 255, .6),
2527
2536
  0 1px 0 rgba(137, 137, 137, .85)
2528
2537
  `
2529
- }, Xn = ({
2538
+ }, ea = ({
2530
2539
  headline: e,
2531
2540
  headline2: n,
2532
2541
  items: a,
2533
2542
  backgroundImageUrl: o
2534
2543
  }) => {
2535
- const i = J(), r = X(), s = bt("(max-width: 767px)"), g = a.length > 1, h = U(null), b = U(null), l = U(!1), u = U(!1), [m, y] = D(0), [_, k] = D({ isStart: !0, isEnd: !1 });
2544
+ const i = J(), l = X(), s = bt("(max-width: 767px)"), g = a.length > 1, f = U(null), b = U(null), r = U(!1), m = U(!1), [d, y] = D(0), [_, T] = D({ isStart: !0, isEnd: !1 });
2536
2545
  K(() => {
2537
- const S = setTimeout(() => {
2538
- l.current = !0;
2546
+ const w = setTimeout(() => {
2547
+ r.current = !0;
2539
2548
  }, 500);
2540
- return () => clearTimeout(S);
2549
+ return () => clearTimeout(w);
2541
2550
  }, []);
2542
2551
  const C = U(_);
2543
2552
  K(() => {
2544
2553
  C.current = _;
2545
2554
  }, [_]);
2546
- const M = U(!1), N = U(null), E = a == null ? void 0 : a[m], A = Q(
2555
+ const B = U(!1), $ = U(null), O = a == null ? void 0 : a[d], A = Q(
2547
2556
  () => {
2548
- var S, T;
2549
- return (T = (S = E == null ? void 0 : E.backgroundImageUrl) != null ? S : o) != null ? T : "";
2557
+ var w, I;
2558
+ return (I = (w = O == null ? void 0 : O.backgroundImageUrl) != null ? w : o) != null ? I : "";
2550
2559
  },
2551
- [E, o]
2552
- ), O = Jn(A), B = !a || a.length === 0, w = (S, T) => {
2560
+ [O, o]
2561
+ ), M = Qn(A), N = !a || a.length === 0, S = (w, I) => {
2553
2562
  i({
2554
2563
  element: "welcome_banner_button",
2555
- label: `OraculoSeccionBonoBienvenida - Banner button click: ${S.title || "OraculoSeccionBonoBienvenida - Banner " + (T + 1)}`,
2564
+ label: `OraculoSeccionBonoBienvenida - Banner button click: ${w.title || "OraculoSeccionBonoBienvenida - Banner " + (I + 1)}`,
2556
2565
  target: "action",
2557
2566
  event_type: "click",
2558
2567
  module_id: 301,
2559
2568
  metadata: {
2560
2569
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
2561
- banner_position: T + 1,
2570
+ banner_position: I + 1,
2562
2571
  banner_total: (a == null ? void 0 : a.length) || 0
2563
2572
  },
2564
2573
  tags: {
2565
- banner_title: S.title || "no_title",
2566
- button_text: S.buttonText || "no_text"
2574
+ banner_title: w.title || "no_title",
2575
+ button_text: w.buttonText || "no_text"
2567
2576
  }
2568
- }), S.onButtonClick && S.onButtonClick();
2569
- }, R = (S) => {
2570
- if (!l.current) return;
2571
- if (u.current) {
2572
- u.current = !1;
2577
+ }), w.onButtonClick && w.onButtonClick();
2578
+ }, R = (w) => {
2579
+ if (!r.current) return;
2580
+ if (m.current) {
2581
+ m.current = !1;
2573
2582
  return;
2574
2583
  }
2575
- const T = a == null ? void 0 : a[S];
2584
+ const I = a == null ? void 0 : a[w];
2576
2585
  i({
2577
2586
  element: "welcome_banner_carousel",
2578
- label: `Landing: ${r} - OraculoSeccionBonoBienvenida - Banner view: ${(T == null ? void 0 : T.title) || "OraculoSeccionBonoBienvenida - Banner " + (S + 1)}`,
2587
+ label: `Landing: ${l} - OraculoSeccionBonoBienvenida - Banner view: ${(I == null ? void 0 : I.title) || "OraculoSeccionBonoBienvenida - Banner " + (w + 1)}`,
2579
2588
  target: "no_url",
2580
2589
  event_type: "view",
2581
2590
  module_id: 301,
2582
2591
  metadata: {
2583
2592
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
2584
- slide_index: S + 1,
2593
+ slide_index: w + 1,
2585
2594
  total_slides: (a == null ? void 0 : a.length) || 0,
2586
2595
  interaction_type: "manual_slide"
2587
2596
  },
2588
2597
  tags: {
2589
- banner_position: String(S + 1),
2590
- banner_title: (T == null ? void 0 : T.title) || "no_title"
2598
+ banner_position: String(w + 1),
2599
+ banner_title: (I == null ? void 0 : I.title) || "no_title"
2591
2600
  }
2592
2601
  });
2593
2602
  };
2594
2603
  K(() => {
2595
- const S = b.current;
2596
- if (!S) return;
2597
- const T = 6, P = 380, f = (c) => {
2598
- var I, $;
2599
- if (B || c.ctrlKey || M.current) return;
2600
- const d = c.deltaX, v = c.deltaY;
2601
- if (Math.abs(d) <= Math.abs(v) || Math.abs(d) < T) return;
2602
- const x = d > 0;
2603
- x && C.current.isEnd || !x && C.current.isStart || (c.preventDefault(), M.current = !0, x ? (I = h.current) == null || I.next() : ($ = h.current) == null || $.prev(), N.current && window.clearTimeout(N.current), N.current = window.setTimeout(() => {
2604
- M.current = !1;
2605
- }, P));
2604
+ const w = b.current;
2605
+ if (!w) return;
2606
+ const I = 6, F = 380, h = (c) => {
2607
+ var E, k;
2608
+ if (N || c.ctrlKey || B.current) return;
2609
+ const u = c.deltaX, v = c.deltaY;
2610
+ if (Math.abs(u) <= Math.abs(v) || Math.abs(u) < I) return;
2611
+ const x = u > 0;
2612
+ x && C.current.isEnd || !x && C.current.isStart || (c.preventDefault(), B.current = !0, x ? (E = f.current) == null || E.next() : (k = f.current) == null || k.prev(), $.current && window.clearTimeout($.current), $.current = window.setTimeout(() => {
2613
+ B.current = !1;
2614
+ }, F));
2606
2615
  };
2607
- return S.addEventListener("wheel", f, { passive: !1 }), () => {
2608
- S.removeEventListener("wheel", f), N.current && window.clearTimeout(N.current);
2616
+ return w.addEventListener("wheel", h, { passive: !1 }), () => {
2617
+ w.removeEventListener("wheel", h), $.current && window.clearTimeout($.current);
2609
2618
  };
2610
- }, [B]);
2611
- const z = (S, T, P) => {
2612
- var d, v;
2613
- const f = (d = S.headline) != null ? d : e, c = (v = S.headline2) != null ? v : n;
2614
- return T ? /* @__PURE__ */ p(
2619
+ }, [N]);
2620
+ const z = (w, I, F) => {
2621
+ var u, v;
2622
+ const h = (u = w.headline) != null ? u : e, c = (v = w.headline2) != null ? v : n;
2623
+ return I ? /* @__PURE__ */ p(
2615
2624
  L,
2616
2625
  {
2617
2626
  sx: {
@@ -2624,7 +2633,7 @@ const Pn = (e, n) => {
2624
2633
  columnGap: 6
2625
2634
  },
2626
2635
  children: [
2627
- (f || c) && /* @__PURE__ */ t(
2636
+ (h || c) && /* @__PURE__ */ t(
2628
2637
  L,
2629
2638
  {
2630
2639
  sx: {
@@ -2634,7 +2643,7 @@ const Pn = (e, n) => {
2634
2643
  minHeight: "100%"
2635
2644
  },
2636
2645
  children: /* @__PURE__ */ p(L, { sx: { ...Ue, textAlign: "left", mb: 0 }, children: [
2637
- f && /* @__PURE__ */ t(ae, { component: "span", sx: qe, children: f }),
2646
+ h && /* @__PURE__ */ t(ae, { component: "span", sx: qe, children: h }),
2638
2647
  c && /* @__PURE__ */ p(ee, { children: [
2639
2648
  /* @__PURE__ */ t("br", {}),
2640
2649
  /* @__PURE__ */ t(ae, { component: "span", sx: Ve, children: c })
@@ -2645,16 +2654,16 @@ const Pn = (e, n) => {
2645
2654
  /* @__PURE__ */ t(L, { sx: { display: "flex", justifyContent: "center", alignItems: "center" }, children: /* @__PURE__ */ t(L, { sx: { width: "100%", maxWidth: 600, mx: "auto" }, children: /* @__PURE__ */ t(
2646
2655
  Fe,
2647
2656
  {
2648
- ...S,
2649
- onButtonClick: () => w(S, P),
2657
+ ...w,
2658
+ onButtonClick: () => S(w, F),
2650
2659
  variant: "large"
2651
2660
  }
2652
2661
  ) }) })
2653
2662
  ]
2654
2663
  }
2655
2664
  ) : /* @__PURE__ */ p(L, { sx: { textAlign: "center" }, children: [
2656
- (f || c) && /* @__PURE__ */ p(L, { sx: Ue, children: [
2657
- f && /* @__PURE__ */ t(ae, { component: "span", sx: qe, children: f }),
2665
+ (h || c) && /* @__PURE__ */ p(L, { sx: Ue, children: [
2666
+ h && /* @__PURE__ */ t(ae, { component: "span", sx: qe, children: h }),
2658
2667
  c && /* @__PURE__ */ p(ee, { children: [
2659
2668
  /* @__PURE__ */ t("br", {}),
2660
2669
  /* @__PURE__ */ t(ae, { component: "span", sx: Ve, children: c })
@@ -2663,18 +2672,18 @@ const Pn = (e, n) => {
2663
2672
  /* @__PURE__ */ t(L, { sx: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(
2664
2673
  Fe,
2665
2674
  {
2666
- ...S,
2667
- onButtonClick: () => w(S, P),
2675
+ ...w,
2676
+ onButtonClick: () => S(w, F),
2668
2677
  variant: "small"
2669
2678
  }
2670
2679
  ) })
2671
2680
  ] });
2672
2681
  };
2673
- return /* @__PURE__ */ p(L, { component: "section", sx: O, children: [
2682
+ return /* @__PURE__ */ p(L, { component: "section", sx: M, children: [
2674
2683
  /* @__PURE__ */ t("div", { ref: b, style: { width: "100%" }, children: /* @__PURE__ */ t(
2675
2684
  se,
2676
2685
  {
2677
- ref: h,
2686
+ ref: f,
2678
2687
  items: a,
2679
2688
  perPage: 1,
2680
2689
  gap: "0px",
@@ -2688,9 +2697,9 @@ const Pn = (e, n) => {
2688
2697
  // arrows: false,
2689
2698
  // drag: true,
2690
2699
  },
2691
- renderItem: (S, T) => /* @__PURE__ */ t(L, { sx: { width: "100%" }, children: z(S, !s, T) }),
2692
- onMove: ({ index: S, isStart: T, isEnd: P }) => {
2693
- y(S), typeof T == "boolean" && typeof P == "boolean" && k({ isStart: T, isEnd: P }), R(S);
2700
+ renderItem: (w, I) => /* @__PURE__ */ t(L, { sx: { width: "100%" }, children: z(w, !s, I) }),
2701
+ onMove: ({ index: w, isStart: I, isEnd: F }) => {
2702
+ y(w), typeof I == "boolean" && typeof F == "boolean" && T({ isStart: I, isEnd: F }), R(w);
2694
2703
  }
2695
2704
  }
2696
2705
  ) }),
@@ -2698,41 +2707,41 @@ const Pn = (e, n) => {
2698
2707
  Xe,
2699
2708
  {
2700
2709
  total: a.length,
2701
- active: m,
2702
- onSelect: (S) => {
2703
- var T;
2710
+ active: d,
2711
+ onSelect: (w) => {
2712
+ var I;
2704
2713
  i({
2705
2714
  element: "welcome_banner_dots",
2706
- label: `Landing: ${r} - OraculoSeccionBonoBienvenida - Dot navigation: Banner ${S + 1}`,
2715
+ label: `Landing: ${l} - OraculoSeccionBonoBienvenida - Dot navigation: Banner ${w + 1}`,
2707
2716
  target: "no_url",
2708
2717
  event_type: "click",
2709
2718
  module_id: 301,
2710
2719
  metadata: {
2711
2720
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
2712
- dot_index: S + 1,
2721
+ dot_index: w + 1,
2713
2722
  total_dots: a.length
2714
2723
  },
2715
2724
  tags: {
2716
2725
  navigation_type: "dot_click"
2717
2726
  }
2718
- }), y(S), (T = h.current) == null || T.go(S);
2727
+ }), y(w), (I = f.current) == null || I.go(w);
2719
2728
  }
2720
2729
  }
2721
2730
  ) })
2722
2731
  ] });
2723
- }, Yn = ({
2732
+ }, ta = ({
2724
2733
  className: e = "",
2725
2734
  fullBleed: n = !0,
2726
2735
  items: a,
2727
2736
  selectedIndex: o = 0,
2728
2737
  ariaLabel: i
2729
2738
  }) => {
2730
- const r = U(null), s = U(null), g = J(), h = X();
2739
+ const l = U(null), s = U(null), g = J(), f = X();
2731
2740
  if (!a) return null;
2732
2741
  const b = () => {
2733
2742
  g({
2734
2743
  element: "club_olimpo_button",
2735
- label: `Landing: ${h} - OraculoSeccionClubOlimpo - Click: Club Olimpo`,
2744
+ label: `Landing: ${f} - OraculoSeccionClubOlimpo - Click: Club Olimpo`,
2736
2745
  target: "https://www.olimpo.bet/conoce-club-olimpo",
2737
2746
  event_type: "click",
2738
2747
  module_id: 301,
@@ -2741,18 +2750,18 @@ const Pn = (e, n) => {
2741
2750
  },
2742
2751
  tags: { section: "OraculoSeccionClubOlimpo" }
2743
2752
  }), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/conoce-club-olimpo");
2744
- }, l = Array.isArray(a) ? a[o] : a;
2753
+ }, r = Array.isArray(a) ? a[o] : a;
2745
2754
  gt(() => {
2746
- if (!r.current || !s.current || typeof ResizeObserver == "undefined") return;
2747
- const m = r.current, y = s.current, _ = () => {
2748
- m.style.setProperty(
2755
+ if (!l.current || !s.current || typeof ResizeObserver == "undefined") return;
2756
+ const d = l.current, y = s.current, _ = () => {
2757
+ d.style.setProperty(
2749
2758
  "--orc-co-bottomH",
2750
2759
  `${y.offsetHeight + 16}px`
2751
2760
  );
2752
- }, k = new ResizeObserver(_);
2753
- return k.observe(y), _(), () => k.disconnect();
2761
+ }, T = new ResizeObserver(_);
2762
+ return T.observe(y), _(), () => T.disconnect();
2754
2763
  }, []);
2755
- const u = [
2764
+ const m = [
2756
2765
  "orc-co-wrap",
2757
2766
  n ? "orc-co-fullBleed" : "",
2758
2767
  e
@@ -2760,55 +2769,55 @@ const Pn = (e, n) => {
2760
2769
  return /* @__PURE__ */ t(
2761
2770
  "section",
2762
2771
  {
2763
- ref: r,
2764
- className: u,
2765
- "aria-label": i || l.imgAlt || "Club Olimpo",
2772
+ ref: l,
2773
+ className: m,
2774
+ "aria-label": i || r.imgAlt || "Club Olimpo",
2766
2775
  children: /* @__PURE__ */ t("div", { ref: s, children: /* @__PURE__ */ t(
2767
2776
  ln,
2768
2777
  {
2769
- text: l.text,
2778
+ text: r.text,
2770
2779
  onClick: b,
2771
- imgAlt: l.imgAlt,
2772
- buttonLabel: l.buttonLabel,
2773
- imgSrcMobile: l.imgMobile,
2774
- imgSrcDesktopBg: l.imgDesktopBg,
2775
- imgSrcDesktopLogo: l.imgDesktopLogo
2780
+ imgAlt: r.imgAlt,
2781
+ buttonLabel: r.buttonLabel,
2782
+ imgSrcMobile: r.imgMobile,
2783
+ imgSrcDesktopBg: r.imgDesktopBg,
2784
+ imgSrcDesktopLogo: r.imgDesktopLogo
2776
2785
  }
2777
2786
  ) })
2778
2787
  }
2779
2788
  );
2780
- }, Qn = "oraculo__OraculoSeccionEventoCombinadas-module__controls___Zsta4", ea = "oraculo__OraculoSeccionEventoCombinadas-module__padding___vf-yF", De = {
2781
- controls: Qn,
2782
- padding: ea
2783
- }, ta = (e) => {
2789
+ }, na = "oraculo__OraculoSeccionEventoCombinadas-module__controls___Zsta4", aa = "oraculo__OraculoSeccionEventoCombinadas-module__padding___vf-yF", De = {
2790
+ controls: na,
2791
+ padding: aa
2792
+ }, oa = (e) => {
2784
2793
  var n, a;
2785
2794
  return (n = e.outcome) != null && n.id ? [e.outcome.id] : e.type === "BET_BUILDER" && ((a = e.group) != null && a.groups) ? e.group.groups.flatMap((o) => {
2786
- var i, r;
2787
- return (r = (i = o.outcomes) == null ? void 0 : i.map((s) => s.id)) != null ? r : [];
2795
+ var i, l;
2796
+ return (l = (i = o.outcomes) == null ? void 0 : i.map((s) => s.id)) != null ? l : [];
2788
2797
  }) : [];
2789
2798
  };
2790
- function na(e, n, a) {
2799
+ function ia(e, n, a) {
2791
2800
  return a ? a.map((o) => {
2792
- var l, u;
2793
- const i = o.prePackCouponRows.flatMap((m) => ta(m).map((y) => ({ eventId: m.eventId, outcomeId: y }))), r = new Set(i.map((m) => m.eventId)), s = new Set(i.map((m) => m.outcomeId)), g = new Map(i.map((m, y) => [m.outcomeId, y])), h = {};
2794
- for (const m of n) {
2795
- if (!r.has(m.eventId)) continue;
2796
- const y = m.outcomes.filter((_) => s.has(_.id)).map((_) => ({ ..._, position: g.get(_.id) }));
2797
- y.length && ((u = h[l = m.eventId]) != null || (h[l] = []), h[m.eventId].push({ ...m, outcomes: y }));
2801
+ var r, m;
2802
+ const i = o.prePackCouponRows.flatMap((d) => oa(d).map((y) => ({ eventId: d.eventId, outcomeId: y }))), l = new Set(i.map((d) => d.eventId)), s = new Set(i.map((d) => d.outcomeId)), g = new Map(i.map((d, y) => [d.outcomeId, y])), f = {};
2803
+ for (const d of n) {
2804
+ if (!l.has(d.eventId)) continue;
2805
+ const y = d.outcomes.filter((_) => s.has(_.id)).map((_) => ({ ..._, position: g.get(_.id) }));
2806
+ y.length && ((m = f[r = d.eventId]) != null || (f[r] = []), f[d.eventId].push({ ...d, outcomes: y }));
2798
2807
  }
2799
- const b = e.filter((m) => r.has(m.id)).map((m) => {
2808
+ const b = e.filter((d) => l.has(d.id)).map((d) => {
2800
2809
  var y;
2801
- return { ...m, betoffers: (y = h[m.id]) != null ? y : [] };
2810
+ return { ...d, betoffers: (y = f[d.id]) != null ? y : [] };
2802
2811
  });
2803
2812
  return {
2804
2813
  couponId: o.id,
2805
2814
  status: o.status,
2806
- combinadoTotal: aa(o.prePackCouponRows),
2815
+ combinadoTotal: ra(o.prePackCouponRows),
2807
2816
  events: b
2808
2817
  };
2809
2818
  }) : [];
2810
2819
  }
2811
- function aa(e) {
2820
+ function ra(e) {
2812
2821
  if (!Array.isArray(e) || e.length === 0) return 0;
2813
2822
  let n = 1;
2814
2823
  for (const a of e) {
@@ -2817,17 +2826,17 @@ function aa(e) {
2817
2826
  }
2818
2827
  return Math.floor(n * 100) / 100;
2819
2828
  }
2820
- const oa = de.memo(yn);
2821
- function ia({
2829
+ const la = de.memo(yn);
2830
+ function sa({
2822
2831
  items: e,
2823
2832
  title: n = "Combinadas del Olimpo",
2824
2833
  iconUrl: a = "https://stg-www.contodobet.com/static/img/landing/EventoCombinada/rayoIcon.svg",
2825
2834
  onViewMore: o,
2826
2835
  className: i = ""
2827
2836
  }) {
2828
- const r = J(), s = X(), g = U(null), [h, b] = D({ isStart: !0, isEnd: !1 }), [l, u] = D([]), m = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group/prepackcoupon.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764284658793&prePackCouponTags=CUSTOM", y = () => {
2829
- var E;
2830
- r({
2837
+ const l = J(), s = X(), g = U(null), [f, b] = D({ isStart: !0, isEnd: !1 }), [r, m] = D([]), d = "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", y = () => {
2838
+ var O;
2839
+ l({
2831
2840
  element: "evento_combinadas_prev",
2832
2841
  label: `Landing: ${s} - OraculoSeccionEventoCombinadas - Click: Anterior`,
2833
2842
  event_type: "click",
@@ -2836,10 +2845,10 @@ function ia({
2836
2845
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
2837
2846
  },
2838
2847
  tags: { section: "OraculoSeccionEventoCombinadas" }
2839
- }), (E = g.current) == null || E.prev();
2848
+ }), (O = g.current) == null || O.prev();
2840
2849
  }, _ = () => {
2841
- var E;
2842
- r({
2850
+ var O;
2851
+ l({
2843
2852
  element: "evento_combinadas_next",
2844
2853
  label: `Landing: ${s} - OraculoSeccionEventoCombinadas - Click: Siguiente`,
2845
2854
  event_type: "click",
@@ -2848,9 +2857,9 @@ function ia({
2848
2857
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
2849
2858
  },
2850
2859
  tags: { section: "OraculoSeccionEventoCombinadas" }
2851
- }), (E = g.current) == null || E.next();
2852
- }, k = () => {
2853
- r({
2860
+ }), (O = g.current) == null || O.next();
2861
+ }, T = () => {
2862
+ l({
2854
2863
  element: "evento_combinadas_ver_mas",
2855
2864
  label: `Landing: ${s} - OraculoSeccionEventoCombinadas - Click: Ver más`,
2856
2865
  event_type: "click",
@@ -2860,26 +2869,26 @@ function ia({
2860
2869
  },
2861
2870
  tags: { section: "OraculoSeccionEventoCombinadas" }
2862
2871
  }), _n();
2863
- }, C = Q(() => l.filter((E) => E.combinadoTotal !== null), [l]);
2864
- async function M() {
2865
- var E, A, O;
2872
+ }, C = Q(() => r.filter((O) => O.combinadoTotal !== null), [r]);
2873
+ async function B() {
2874
+ var O, A, M;
2866
2875
  try {
2867
- const w = await (await fetch(m)).json(), R = (O = (A = (E = w == null ? void 0 : w.group) == null ? void 0 : E.groups) == null ? void 0 : A[0]) == null ? void 0 : O.id;
2876
+ const S = await (await fetch(d)).json(), R = (M = (A = (O = S == null ? void 0 : S.group) == null ? void 0 : O.groups) == null ? void 0 : A[0]) == null ? void 0 : M.id;
2868
2877
  if (!R) {
2869
2878
  console.error("Could not extract group ID");
2870
2879
  return;
2871
2880
  }
2872
- const z = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${R}.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764283566783&prePackCouponTags=CUSTOM`, T = await (await fetch(z)).json();
2873
- u(na(T.events, T.betOffers, T.prePackCoupons));
2874
- } catch (B) {
2875
- console.error("loadDataEventSpecial error:", B);
2881
+ const z = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${R}.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764283566783&prePackCouponTags=CUSTOM`, I = await (await fetch(z)).json();
2882
+ m(ia(I.events, I.betOffers, I.prePackCoupons));
2883
+ } catch (N) {
2884
+ console.error("loadDataEventSpecial error:", N);
2876
2885
  }
2877
2886
  }
2878
2887
  K(() => {
2879
- M();
2888
+ B();
2880
2889
  }, []);
2881
- const N = i || void 0;
2882
- return C.length === 0 ? null : /* @__PURE__ */ t("section", { className: N, style: {
2890
+ const $ = i || void 0;
2891
+ return C.length === 0 ? null : /* @__PURE__ */ t("section", { className: $, style: {
2883
2892
  // paddingLeft: 16,
2884
2893
  // paddingRight: 16,
2885
2894
  width: "100%",
@@ -2897,7 +2906,7 @@ function ia({
2897
2906
  iconOnly: !0,
2898
2907
  leftIcon: /* @__PURE__ */ t(Ee, {}),
2899
2908
  onClick: y,
2900
- disabled: h.isStart
2909
+ disabled: f.isStart
2901
2910
  }
2902
2911
  ),
2903
2912
  /* @__PURE__ */ t(
@@ -2908,11 +2917,11 @@ function ia({
2908
2917
  iconOnly: !0,
2909
2918
  rightIcon: /* @__PURE__ */ t(Ie, {}),
2910
2919
  onClick: _,
2911
- disabled: h.isEnd
2920
+ disabled: f.isEnd
2912
2921
  }
2913
2922
  )
2914
2923
  ] }),
2915
- /* @__PURE__ */ t(W, { variant: "secondary", onClick: k, children: "Ver más" })
2924
+ /* @__PURE__ */ t(W, { variant: "secondary", onClick: T, children: "Ver más" })
2916
2925
  ] })
2917
2926
  ] }) }),
2918
2927
  /* @__PURE__ */ t(
@@ -2929,13 +2938,13 @@ function ia({
2929
2938
  breakpoints: {
2930
2939
  768: { perPage: 1.2, gap: "12px", padding: { left: "24px", right: "24px" } }
2931
2940
  },
2932
- renderItem: (E) => /* @__PURE__ */ t(oa, { coupon: E }),
2933
- onMove: ({ isStart: E, isEnd: A }) => b({ isStart: E, isEnd: A })
2941
+ renderItem: (O) => /* @__PURE__ */ t(la, { coupon: O }),
2942
+ onMove: ({ isStart: O, isEnd: A }) => b({ isStart: O, isEnd: A })
2934
2943
  }
2935
2944
  )
2936
2945
  ] }) });
2937
2946
  }
2938
- function ra({}) {
2947
+ function ca({}) {
2939
2948
  return /* @__PURE__ */ t(
2940
2949
  "div",
2941
2950
  {
@@ -2969,33 +2978,33 @@ function ra({}) {
2969
2978
  }
2970
2979
  );
2971
2980
  }
2972
- const la = "oraculo__FadeItemWrapper-module__fadeWrapper___kFOH4", sa = {
2973
- fadeWrapper: la
2981
+ const da = "oraculo__FadeItemWrapper-module__fadeWrapper___kFOH4", ua = {
2982
+ fadeWrapper: da
2974
2983
  };
2975
2984
  function Oe({ children: e }) {
2976
- return /* @__PURE__ */ t("div", { className: sa.fadeWrapper, children: e });
2985
+ return /* @__PURE__ */ t("div", { className: ua.fadeWrapper, children: e });
2977
2986
  }
2978
- const ca = "oraculo__OraculoSeccionEventoEnVivo-module__padding___Sh8tD", da = {
2979
- padding: ca
2980
- }, ua = (e) => {
2987
+ const ma = "oraculo__OraculoSeccionEventoEnVivo-module__padding___Sh8tD", pa = {
2988
+ padding: ma
2989
+ }, ga = (e) => {
2981
2990
  const n = ["esports", "cyber"];
2982
2991
  return e.filter((a) => {
2983
2992
  var i;
2984
2993
  if (a.event.sport !== "FOOTBALL") return !1;
2985
2994
  const o = ((i = a.event.group) == null ? void 0 : i.toLowerCase()) || "";
2986
- return !n.some((r) => o.includes(r));
2995
+ return !n.some((l) => o.includes(l));
2987
2996
  });
2988
- }, ma = de.memo(On);
2989
- function pa({
2997
+ }, fa = de.memo(On);
2998
+ function ha({
2990
2999
  items: e,
2991
3000
  title: n = "En vivo",
2992
3001
  iconUrl: a = "https://stg-www.contodobet.com/static/img/landing/EventoEnVivo/icon.svg",
2993
3002
  onViewMore: o,
2994
3003
  className: i = ""
2995
3004
  }) {
2996
- const r = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football/all/all/all/in-play.json?channel_id=3&channel_id=3&client_id=200&client_id=200&competitionId=undefined&lang=es_PE&lang=es_PE&market=PE&market=PE&useCombined=true&useCombinedLive=true", s = U(null), [g, h] = D({ isStart: !0, isEnd: !1 }), [b, l] = D(null), [u, m] = D({}), [y, _] = D({ start: null, end: null }), k = U(!1), [C, M] = D(null), N = U(!1), E = J(), A = X(), O = U(/* @__PURE__ */ new Map()), B = at(y, 300), w = U(/* @__PURE__ */ new Set()), R = () => {
2997
- var d;
2998
- E({
3005
+ const l = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football/all/all/all/in-play.json?channel_id=3&channel_id=3&client_id=200&client_id=200&competitionId=undefined&lang=es_PE&lang=es_PE&market=PE&market=PE&useCombined=true&useCombinedLive=true", s = U(null), [g, f] = D({ isStart: !0, isEnd: !1 }), [b, r] = D(null), [m, d] = D({}), [y, _] = D({ start: null, end: null }), T = U(!1), [C, B] = D(null), $ = U(!1), O = J(), A = X(), M = U(/* @__PURE__ */ new Map()), N = at(y, 300), S = U(/* @__PURE__ */ new Set()), R = () => {
3006
+ var u;
3007
+ O({
2999
3008
  element: "evento_en_vivo_prev",
3000
3009
  label: `Landing: ${A} - OraculoSeccionEventoEnVivo - Anterior`,
3001
3010
  target: "prev",
@@ -3005,10 +3014,10 @@ function pa({
3005
3014
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
3006
3015
  },
3007
3016
  tags: { section: "OraculoSeccionEventoEnVivo" }
3008
- }), (d = s.current) == null || d.prev();
3017
+ }), (u = s.current) == null || u.prev();
3009
3018
  }, z = () => {
3010
- var d;
3011
- E({
3019
+ var u;
3020
+ O({
3012
3021
  element: "evento_en_vivo_next",
3013
3022
  label: `Landing: ${A} - OraculoSeccionEventoEnVivo - Siguiente`,
3014
3023
  target: "next",
@@ -3018,9 +3027,9 @@ function pa({
3018
3027
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
3019
3028
  },
3020
3029
  tags: { section: "OraculoSeccionEventoEnVivo" }
3021
- }), (d = s.current) == null || d.next();
3022
- }, S = () => {
3023
- E({
3030
+ }), (u = s.current) == null || u.next();
3031
+ }, w = () => {
3032
+ O({
3024
3033
  element: "evento_en_vivo_view_more",
3025
3034
  label: `Landing: ${A} - OraculoSeccionEventoEnVivo - Ver más`,
3026
3035
  target: "ver_mas",
@@ -3031,67 +3040,67 @@ function pa({
3031
3040
  },
3032
3041
  tags: { section: "OraculoSeccionEventoEnVivo" }
3033
3042
  }), bn();
3034
- }, T = _e(async () => {
3035
- var d;
3043
+ }, I = _e(async () => {
3044
+ var u;
3036
3045
  try {
3037
- if (!N.current) {
3038
- N.current = !0;
3046
+ if (!$.current) {
3047
+ $.current = !0;
3039
3048
  try {
3040
- const F = await (await fetch("https://api.mktolimpo.com/api/kambi/eventos/orden")).json(), H = ((d = F == null ? void 0 : F.data) == null ? void 0 : d.event_ids) || [], j = /* @__PURE__ */ new Map();
3041
- H.forEach((G, Y) => j.set(String(G), Y)), O.current = j;
3042
- } catch ($) {
3043
- console.error("Order fetch failed, using default sorting", $);
3049
+ const P = await (await fetch("https://api.mktolimpo.com/api/kambi/eventos/orden")).json(), H = ((u = P == null ? void 0 : P.data) == null ? void 0 : u.event_ids) || [], j = /* @__PURE__ */ new Map();
3050
+ H.forEach((G, Y) => j.set(String(G), Y)), M.current = j;
3051
+ } catch (k) {
3052
+ console.error("Order fetch failed, using default sorting", k);
3044
3053
  }
3045
3054
  }
3046
- const v = await fetch(r);
3055
+ const v = await fetch(l);
3047
3056
  if (!v.ok) throw new Error("Failed to fetch live events");
3048
- const x = await v.json(), I = ua(x.events);
3049
- if (O.current.size === 0)
3050
- l(I);
3057
+ const x = await v.json(), E = ga(x.events);
3058
+ if (M.current.size === 0)
3059
+ r(E);
3051
3060
  else {
3052
- const $ = [...I].sort((F, H) => {
3053
- const j = O.current.get(String(F.event.id)), G = O.current.get(String(H.event.id));
3061
+ const k = [...E].sort((P, H) => {
3062
+ const j = M.current.get(String(P.event.id)), G = M.current.get(String(H.event.id));
3054
3063
  return (j !== void 0 ? j : 1 / 0) - (G !== void 0 ? G : 1 / 0);
3055
3064
  });
3056
- l($);
3065
+ r(k);
3057
3066
  }
3058
3067
  } catch (v) {
3059
3068
  console.error("LoadData Error:", v);
3060
3069
  }
3061
3070
  }, []);
3062
3071
  K(() => {
3063
- T();
3064
- const d = setInterval(T, 2e4);
3065
- return () => clearInterval(d);
3066
- }, [T]), K(() => {
3067
- if (B.start === null || B.end === null || !(b != null && b.length) || k.current)
3072
+ I();
3073
+ const u = setInterval(I, 2e4);
3074
+ return () => clearInterval(u);
3075
+ }, [I]), K(() => {
3076
+ if (N.start === null || N.end === null || !(b != null && b.length) || T.current)
3068
3077
  return;
3069
- const d = 3, v = Math.max(0, B.start - d), x = Math.min(b.length - 1, B.end + d), I = b.slice(v, x + 1).map(($) => {
3070
- var F;
3071
- return (F = $ == null ? void 0 : $.event) == null ? void 0 : F.id;
3072
- }).filter(($) => $ && !w.current.has($));
3073
- I.length !== 0 && (I.forEach(($) => w.current.add($)), k.current = !0, nt(I).then(($) => {
3074
- $ != null && $.events && m((F) => ({
3075
- ...F,
3076
- ...$.events
3078
+ const u = 3, v = Math.max(0, N.start - u), x = Math.min(b.length - 1, N.end + u), E = b.slice(v, x + 1).map((k) => {
3079
+ var P;
3080
+ return (P = k == null ? void 0 : k.event) == null ? void 0 : P.id;
3081
+ }).filter((k) => k && !S.current.has(k));
3082
+ E.length !== 0 && (E.forEach((k) => S.current.add(k)), T.current = !0, nt(E).then((k) => {
3083
+ k != null && k.events && d((P) => ({
3084
+ ...P,
3085
+ ...k.events
3077
3086
  }));
3078
- }).catch(($) => {
3079
- console.error("Jersey fetch error", $), I.forEach((F) => w.current.delete(F));
3087
+ }).catch((k) => {
3088
+ console.error("Jersey fetch error", k), E.forEach((P) => S.current.delete(P));
3080
3089
  }).finally(() => {
3081
- k.current = !1;
3090
+ T.current = !1;
3082
3091
  }));
3083
- }, [B, b]);
3084
- const P = i || void 0, f = b === null;
3085
- if (!f && b.length === 0)
3092
+ }, [N, b]);
3093
+ const F = i || void 0, h = b === null;
3094
+ if (!h && b.length === 0)
3086
3095
  return null;
3087
- const c = Q(() => f ? Array(4).fill({}) : (b == null ? void 0 : b.slice(0, 20)) || [], [f, b]);
3088
- return /* @__PURE__ */ t("section", { className: P, style: {
3096
+ const c = Q(() => h ? Array(4).fill({}) : (b == null ? void 0 : b.slice(0, 20)) || [], [h, b]);
3097
+ return /* @__PURE__ */ t("section", { className: F, style: {
3089
3098
  // paddingLeft: 16,
3090
3099
  // paddingRight: 16,
3091
3100
  width: "100%",
3092
3101
  boxSizing: "border-box"
3093
3102
  }, children: /* @__PURE__ */ p(V, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
3094
- /* @__PURE__ */ t("div", { className: da.padding, children: /* @__PURE__ */ p(oe, { spacing: 1.5, columns: "1fr auto ", justify: "start", children: [
3103
+ /* @__PURE__ */ t("div", { className: pa.padding, children: /* @__PURE__ */ p(oe, { spacing: 1.5, columns: "1fr auto ", justify: "start", children: [
3095
3104
  /* @__PURE__ */ t(le, { title: n, iconUrl: a, size: "md" }),
3096
3105
  /* @__PURE__ */ p("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
3097
3106
  /* @__PURE__ */ p(oe, { spacing: 1, columns: "auto auto", children: [
@@ -3118,7 +3127,7 @@ function pa({
3118
3127
  }
3119
3128
  )
3120
3129
  ] }),
3121
- /* @__PURE__ */ t(W, { variant: "secondary", onClick: S, children: "Ver más" })
3130
+ /* @__PURE__ */ t(W, { variant: "secondary", onClick: w, children: "Ver más" })
3122
3131
  ] })
3123
3132
  ] }) }),
3124
3133
  /* @__PURE__ */ t(
@@ -3136,27 +3145,27 @@ function pa({
3136
3145
  768: { gap: "8px", focus: "center", padding: { left: "24px", right: "24px" } },
3137
3146
  1024: { gap: "10px", focus: "center", padding: { left: "24px", right: "24px" } }
3138
3147
  },
3139
- renderItem: (d) => {
3140
- var I;
3141
- const v = ((I = d.event) == null ? void 0 : I.id) || d.eventId, x = v in u ? u[v] : void 0;
3142
- return f ? /* @__PURE__ */ t(Oe, { children: /* @__PURE__ */ t(ra, {}) }) : /* @__PURE__ */ t(Oe, { children: /* @__PURE__ */ t(
3143
- ma,
3148
+ renderItem: (u) => {
3149
+ var E;
3150
+ const v = ((E = u.event) == null ? void 0 : E.id) || u.eventId, x = v in m ? m[v] : void 0;
3151
+ return h ? /* @__PURE__ */ t(Oe, { children: /* @__PURE__ */ t(ca, {}) }) : /* @__PURE__ */ t(Oe, { children: /* @__PURE__ */ t(
3152
+ fa,
3144
3153
  {
3145
- ...d,
3154
+ ...u,
3146
3155
  jersey: x
3147
3156
  }
3148
3157
  ) });
3149
3158
  },
3150
- onMove: ({ isStart: d, isEnd: v, visibleStart: x, visibleEnd: I }) => {
3151
- h(
3152
- ($) => $.isStart === d && $.isEnd === v ? $ : { isStart: d, isEnd: v }
3153
- ), _({ start: x, end: I });
3159
+ onMove: ({ isStart: u, isEnd: v, visibleStart: x, visibleEnd: E }) => {
3160
+ f(
3161
+ (k) => k.isStart === u && k.isEnd === v ? k : { isStart: u, isEnd: v }
3162
+ ), _({ start: x, end: E });
3154
3163
  }
3155
3164
  }
3156
3165
  )
3157
3166
  ] }) });
3158
3167
  }
3159
- function ga() {
3168
+ function ba() {
3160
3169
  return /* @__PURE__ */ p("div", { className: ce.cardContainer, children: [
3161
3170
  /* @__PURE__ */ t(Qe, { title: "" }),
3162
3171
  /* @__PURE__ */ t("div", { className: ce.cardBackground, children: /* @__PURE__ */ p(V, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
@@ -3184,30 +3193,30 @@ function ga() {
3184
3193
  ] }) })
3185
3194
  ] });
3186
3195
  }
3187
- const fa = "oraculo__OraculoSeccionEventoSemana-module__wrapper___eqVq-", ha = "oraculo__OraculoSeccionEventoSemana-module__container___5yFQs", ba = "oraculo__OraculoSeccionEventoSemana-module__buttonWrapper___-6IDT", va = "oraculo__OraculoSeccionEventoSemana-module__padding___vfUcV", be = {
3188
- wrapper: fa,
3189
- container: ha,
3190
- buttonWrapper: ba,
3191
- padding: va
3192
- }, _a = de.memo(Bn);
3193
- async function ya(e, n = 2, a) {
3196
+ const va = "oraculo__OraculoSeccionEventoSemana-module__wrapper___eqVq-", _a = "oraculo__OraculoSeccionEventoSemana-module__container___5yFQs", ya = "oraculo__OraculoSeccionEventoSemana-module__buttonWrapper___-6IDT", xa = "oraculo__OraculoSeccionEventoSemana-module__padding___vfUcV", be = {
3197
+ wrapper: va,
3198
+ container: _a,
3199
+ buttonWrapper: ya,
3200
+ padding: xa
3201
+ }, wa = de.memo(Bn);
3202
+ async function Sa(e, n = 2, a) {
3194
3203
  const o = [];
3195
3204
  for (let i = 0; i < e.length; i += n) {
3196
3205
  if (a.aborted)
3197
3206
  throw new DOMException("Aborted", "AbortError");
3198
- const r = e.slice(i, i + n), s = await Promise.all(
3199
- r.map((g) => fetch(g, { signal: a }).then((h) => h.json()))
3207
+ const l = e.slice(i, i + n), s = await Promise.all(
3208
+ l.map((g) => fetch(g, { signal: a }).then((f) => f.json()))
3200
3209
  );
3201
3210
  o.push(...s);
3202
3211
  }
3203
3212
  return o;
3204
3213
  }
3205
- function xa(e) {
3214
+ function Ca(e) {
3206
3215
  return [...e].sort(
3207
3216
  (n, a) => new Date(n.start).getTime() - new Date(a.start).getTime()
3208
3217
  );
3209
3218
  }
3210
- function wa(e) {
3219
+ function Oa(e) {
3211
3220
  const n = /* @__PURE__ */ new Date(), a = new Date(n.getTime() + 480 * 60 * 60 * 1e3);
3212
3221
  return e.filter((o) => {
3213
3222
  if (!o.start) return !1;
@@ -3215,29 +3224,29 @@ function wa(e) {
3215
3224
  return i >= n && i <= a;
3216
3225
  });
3217
3226
  }
3218
- function Sa(e, n) {
3227
+ function Ea(e, n) {
3219
3228
  const o = n.filter((i) => {
3220
- var r;
3221
- return ((r = i.betOfferType) == null ? void 0 : r.id) === 2;
3222
- }).reduce((i, r) => (i[r.eventId] || (i[r.eventId] = []), i[r.eventId].push(r), i), {});
3229
+ var l;
3230
+ return ((l = i.betOfferType) == null ? void 0 : l.id) === 2;
3231
+ }).reduce((i, l) => (i[l.eventId] || (i[l.eventId] = []), i[l.eventId].push(l), i), {});
3223
3232
  return e.filter((i) => o[i.id]).map((i) => ({
3224
3233
  ...i,
3225
3234
  outcome: o[i.id]
3226
3235
  }));
3227
3236
  }
3228
- function Ca({
3237
+ function Ia({
3229
3238
  items: e,
3230
3239
  title: n = "En vivo",
3231
3240
  iconUrl: a,
3232
3241
  onViewMore: o,
3233
3242
  className: i = ""
3234
3243
  }) {
3235
- const r = J(), s = X(), g = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE", h = U(null), [b, l] = D({ isStart: !0, isEnd: !1 }), [u, m] = D(null);
3244
+ const l = J(), s = X(), g = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE", f = U(null), [b, r] = D({ isStart: !0, isEnd: !1 }), [m, d] = D(null);
3236
3245
  U(/* @__PURE__ */ new Set());
3237
- const [y, _] = D({}), [k, C] = D({ start: null, end: null }), M = "channel_id=1&client_id=200&competitionId=undefined&lang=es_PE&market=PE&useCombined=true", N = at(k, 250), E = U(!1);
3238
- Q(() => u === null ? Array(6).fill({}) : u.slice(0, 20), [u]);
3246
+ const [y, _] = D({}), [T, C] = D({ start: null, end: null }), B = "channel_id=1&client_id=200&competitionId=undefined&lang=es_PE&market=PE&useCombined=true", $ = at(T, 250), O = U(!1);
3247
+ Q(() => m === null ? Array(6).fill({}) : m.slice(0, 20), [m]);
3239
3248
  const A = () => {
3240
- r({
3249
+ l({
3241
3250
  element: "evento_semana_view_more",
3242
3251
  label: `Landing: ${s} - OraculoSeccionEventoSemana - Ver más`,
3243
3252
  target: "ver_mas",
@@ -3249,120 +3258,120 @@ function Ca({
3249
3258
  tags: { section: "OraculoSeccionEventoSemana" }
3250
3259
  }), vn();
3251
3260
  };
3252
- async function O(S) {
3253
- var f, c;
3254
- let T = [], P = [];
3261
+ async function M(w) {
3262
+ var h, c;
3263
+ let I = [], F = [];
3255
3264
  try {
3256
- const d = await fetch(
3265
+ const u = await fetch(
3257
3266
  "https://api.mktolimpo.com/api/kambi/eventos/orden",
3258
- { signal: S }
3267
+ { signal: w }
3259
3268
  );
3260
- if (d.ok) {
3261
- const v = await d.json();
3262
- T = ((f = v == null ? void 0 : v.data) == null ? void 0 : f.group_ids) || [], P = ((c = v == null ? void 0 : v.data) == null ? void 0 : c.event_ids) || [];
3269
+ if (u.ok) {
3270
+ const v = await u.json();
3271
+ I = ((h = v == null ? void 0 : v.data) == null ? void 0 : h.group_ids) || [], F = ((c = v == null ? void 0 : v.data) == null ? void 0 : c.event_ids) || [];
3263
3272
  }
3264
- } catch (d) {
3265
- d.name !== "AbortError" && console.warn("Order API not available, using default group order");
3273
+ } catch (u) {
3274
+ u.name !== "AbortError" && console.warn("Order API not available, using default group order");
3266
3275
  return;
3267
3276
  }
3268
3277
  try {
3269
- const x = (await (await fetch(g, { signal: S })).json()).group.groups.find(
3278
+ const x = (await (await fetch(g, { signal: w })).json()).group.groups.find(
3270
3279
  (G) => G.englishName === "Football"
3271
3280
  );
3272
3281
  if (!x || !Array.isArray(x.groups)) {
3273
3282
  console.error("Football groups not found");
3274
3283
  return;
3275
3284
  }
3276
- let I = [...x.groups];
3277
- if (T.length > 0) {
3285
+ let E = [...x.groups];
3286
+ if (I.length > 0) {
3278
3287
  const G = new Map(
3279
- T.map((Y, ie) => [Y, ie])
3288
+ I.map((Y, re) => [Y, re])
3280
3289
  );
3281
- I.sort((Y, ie) => {
3282
- const fe = G.get(String(Y.id)), ue = G.get(String(ie.id));
3290
+ E.sort((Y, re) => {
3291
+ const fe = G.get(String(Y.id)), ue = G.get(String(re.id));
3283
3292
  return fe !== void 0 && ue !== void 0 ? fe - ue : fe !== void 0 ? -1 : ue !== void 0 ? 1 : 0;
3284
3293
  });
3285
3294
  }
3286
- const F = I.slice(0, 5), H = (G) => {
3295
+ const P = E.slice(0, 5), H = (G) => {
3287
3296
  const Y = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football";
3288
3297
  if (G.groups && G.groups.length > 0) {
3289
- const ie = G.groups[0];
3298
+ const re = G.groups[0];
3290
3299
  return [
3291
- `${Y}/${G.termKey}/${ie.termKey}/all/matches.json?${M}`
3300
+ `${Y}/${G.termKey}/${re.termKey}/all/matches.json?${B}`
3292
3301
  ];
3293
3302
  }
3294
3303
  return [
3295
- `${Y}/${G.termKey}/all/all/matches.json?${M}`
3304
+ `${Y}/${G.termKey}/all/all/matches.json?${B}`
3296
3305
  ];
3297
- }, j = F.flatMap(H);
3298
- B(j, P, S);
3299
- } catch (d) {
3300
- console.error(d);
3306
+ }, j = P.flatMap(H);
3307
+ N(j, F, w);
3308
+ } catch (u) {
3309
+ console.error(u);
3301
3310
  }
3302
3311
  }
3303
- async function B(S, T, P) {
3312
+ async function N(w, I, F) {
3304
3313
  try {
3305
- const f = await ya(S, 2, P);
3306
- let c = [], d = [];
3307
- f.forEach(($) => {
3308
- $.events && (c.push(...$.events.map((F) => F.event)), d.push(
3309
- ...$.events.flatMap((F) => F.betOffers || [])
3314
+ const h = await Sa(w, 2, F);
3315
+ let c = [], u = [];
3316
+ h.forEach((k) => {
3317
+ k.events && (c.push(...k.events.map((P) => P.event)), u.push(
3318
+ ...k.events.flatMap((P) => P.betOffers || [])
3310
3319
  ));
3311
3320
  });
3312
- const v = Sa(c, d), x = xa(wa(v));
3313
- let I = x;
3314
- if (T.length > 0) {
3315
- const $ = new Map(
3316
- T.map((F, H) => [
3317
- String(F),
3321
+ const v = Ea(c, u), x = Ca(Oa(v));
3322
+ let E = x;
3323
+ if (I.length > 0) {
3324
+ const k = new Map(
3325
+ I.map((P, H) => [
3326
+ String(P),
3318
3327
  H
3319
3328
  ])
3320
3329
  );
3321
- I = [...x].sort((F, H) => {
3322
- const j = $.get(String(F.id)), G = $.get(String(H.id));
3330
+ E = [...x].sort((P, H) => {
3331
+ const j = k.get(String(P.id)), G = k.get(String(H.id));
3323
3332
  return j !== void 0 && G !== void 0 ? j - G : j !== void 0 ? -1 : G !== void 0 ? 1 : 0;
3324
3333
  });
3325
3334
  }
3326
- if (P.aborted) return;
3327
- m(I);
3328
- } catch (f) {
3329
- console.error("Error loading events:", f);
3335
+ if (F.aborted) return;
3336
+ d(E);
3337
+ } catch (h) {
3338
+ console.error("Error loading events:", h);
3330
3339
  }
3331
3340
  }
3332
3341
  K(() => {
3333
3342
  if (!e) return;
3334
- const S = new AbortController();
3335
- return O(S.signal), () => {
3336
- S.abort();
3343
+ const w = new AbortController();
3344
+ return M(w.signal), () => {
3345
+ w.abort();
3337
3346
  };
3338
3347
  }, [e]), K(() => {
3339
- if (N.start === null || N.end === null || !(u != null && u.length) || E.current)
3348
+ if ($.start === null || $.end === null || !(m != null && m.length) || O.current)
3340
3349
  return;
3341
- const S = 2, T = Math.max(0, N.start - S), P = Math.min(u.length - 1, N.end + S), f = u.slice(T, P + 1).map((d) => d == null ? void 0 : d.id).filter(Boolean).filter((d) => y[d] === void 0);
3342
- if (!f.length) return;
3350
+ const w = 2, I = Math.max(0, $.start - w), F = Math.min(m.length - 1, $.end + w), h = m.slice(I, F + 1).map((u) => u == null ? void 0 : u.id).filter(Boolean).filter((u) => y[u] === void 0);
3351
+ if (!h.length) return;
3343
3352
  let c = !1;
3344
- return E.current = !0, (async () => {
3353
+ return O.current = !0, (async () => {
3345
3354
  try {
3346
- const d = await nt(f);
3355
+ const u = await nt(h);
3347
3356
  c || _((v) => ({
3348
3357
  ...v,
3349
- ...d.events
3358
+ ...u.events
3350
3359
  }));
3351
- } catch (d) {
3352
- console.error("Jersey fetch error", d);
3360
+ } catch (u) {
3361
+ console.error("Jersey fetch error", u);
3353
3362
  } finally {
3354
- E.current = !1;
3363
+ O.current = !1;
3355
3364
  }
3356
3365
  })(), () => {
3357
3366
  c = !0;
3358
3367
  };
3359
- }, [N, u]);
3360
- const w = i || void 0, R = {
3368
+ }, [$, m]);
3369
+ const S = i || void 0, R = {
3361
3370
  paddingLeft: 0,
3362
3371
  width: "100%",
3363
3372
  boxSizing: "border-box"
3364
- }, z = u === null;
3365
- return !z && u.length === 0 ? null : /* @__PURE__ */ t("section", { className: w, style: R, children: /* @__PURE__ */ p("div", { className: `${be.wrapper} ${be.padding}`, children: [
3373
+ }, z = m === null;
3374
+ return !z && m.length === 0 ? null : /* @__PURE__ */ t("section", { className: S, style: R, children: /* @__PURE__ */ p("div", { className: `${be.wrapper} ${be.padding}`, children: [
3366
3375
  /* @__PURE__ */ t("div", { className: be.container, children: /* @__PURE__ */ p(V, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
3367
3376
  /* @__PURE__ */ t(le, { title: "Eventos de la semana" }),
3368
3377
  /* @__PURE__ */ t("div", { className: be.buttonWrapper, children: /* @__PURE__ */ t(
@@ -3381,8 +3390,8 @@ function Ca({
3381
3390
  /* @__PURE__ */ t("div", { style: { minWidth: "180px" }, children: /* @__PURE__ */ t(
3382
3391
  se,
3383
3392
  {
3384
- ref: h,
3385
- items: z ? Array(6).fill({}) : u.slice(0, 20),
3393
+ ref: f,
3394
+ items: z ? Array(6).fill({}) : m.slice(0, 20),
3386
3395
  perPage: 3.5,
3387
3396
  gap: "16px",
3388
3397
  enableHorizontalWheel: !0,
@@ -3396,15 +3405,15 @@ function Ca({
3396
3405
  padding: { left: "8px", right: "8px" }
3397
3406
  }
3398
3407
  },
3399
- renderItem: (S) => {
3400
- const T = S.id, P = T in y ? y[T] : void 0;
3401
- return z ? /* @__PURE__ */ t(Oe, { children: /* @__PURE__ */ t(ga, {}) }) : /* @__PURE__ */ t(Oe, { children: /* @__PURE__ */ t(_a, { event: S, jersey: P }) });
3408
+ renderItem: (w) => {
3409
+ const I = w.id, F = I in y ? y[I] : void 0;
3410
+ return z ? /* @__PURE__ */ t(Oe, { children: /* @__PURE__ */ t(ba, {}) }) : /* @__PURE__ */ t(Oe, { children: /* @__PURE__ */ t(wa, { event: w, jersey: F }) });
3402
3411
  },
3403
- onMove: ({ isStart: S, isEnd: T, visibleStart: P, visibleEnd: f }) => {
3404
- l({ isStart: S, isEnd: T }), C({
3405
- start: P,
3406
- end: f
3407
- }), r({
3412
+ onMove: ({ isStart: w, isEnd: I, visibleStart: F, visibleEnd: h }) => {
3413
+ r({ isStart: w, isEnd: I }), C({
3414
+ start: F,
3415
+ end: h
3416
+ }), l({
3408
3417
  element: "evento_semana_carousel_slide",
3409
3418
  label: `Landing: ${s} - OraculoSeccionEventoSemana - Slide Carousel`,
3410
3419
  target: "carousel",
@@ -3412,10 +3421,10 @@ function Ca({
3412
3421
  module_id: 301,
3413
3422
  metadata: {
3414
3423
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
3415
- visibleStart: P,
3416
- visibleEnd: f,
3417
- isStart: S,
3418
- isEnd: T
3424
+ visibleStart: F,
3425
+ visibleEnd: h,
3426
+ isStart: w,
3427
+ isEnd: I
3419
3428
  },
3420
3429
  tags: { section: "OraculoSeccionEventoSemana" }
3421
3430
  });
@@ -3424,13 +3433,13 @@ function Ca({
3424
3433
  ) })
3425
3434
  ] }) });
3426
3435
  }
3427
- function Oa({
3436
+ function Ta({
3428
3437
  backgrounds: e,
3429
3438
  items: n,
3430
3439
  hideItems: a
3431
3440
  }) {
3432
- var T, P, f;
3433
- const [o, i] = D(0), r = J(), s = X(), g = U(null), h = U(!1), b = U(!1), l = (e == null ? void 0 : e.length) || 1, u = !e || e.length === 0, m = !u && ((T = e == null ? void 0 : e.length) != null ? T : 0) > 1, y = !a && ((P = n == null ? void 0 : n.length) != null ? P : 0) > 0, _ = "#B5B5B5", k = {
3441
+ var I, F, h;
3442
+ const [o, i] = D(0), l = J(), s = X(), g = U(null), f = U(!1), b = U(!1), r = (e == null ? void 0 : e.length) || 1, m = !e || e.length === 0, d = !m && ((I = e == null ? void 0 : e.length) != null ? I : 0) > 1, y = !a && ((F = n == null ? void 0 : n.length) != null ? F : 0) > 0, _ = "#B5B5B5", T = {
3434
3443
  position: "absolute",
3435
3444
  top: "50%",
3436
3445
  transform: "translateY(-50%)",
@@ -3466,14 +3475,14 @@ function Oa({
3466
3475
  );
3467
3476
  K(() => {
3468
3477
  const c = setTimeout(() => {
3469
- h.current = !0;
3478
+ f.current = !0;
3470
3479
  }, 500);
3471
3480
  return () => clearTimeout(c);
3472
3481
  }, []);
3473
- const M = (c, d) => {
3474
- var x, I;
3475
- const v = ((I = (x = c.href) == null ? void 0 : x.split("/").pop()) == null ? void 0 : I.split(".")[0]) || c.label || c.id || `banner_${d + 1}`;
3476
- r({
3482
+ const B = (c, u) => {
3483
+ var x, E;
3484
+ const v = ((E = (x = c.href) == null ? void 0 : x.split("/").pop()) == null ? void 0 : E.split(".")[0]) || c.label || c.id || `banner_${u + 1}`;
3485
+ l({
3477
3486
  element: "banner_carousel",
3478
3487
  label: `Landing: ${s} - OraculoSeccionBanners - Banner click: ${v}`,
3479
3488
  target: c.href || "no_url",
@@ -3481,7 +3490,7 @@ function Oa({
3481
3490
  module_id: 301,
3482
3491
  metadata: {
3483
3492
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
3484
- banner_position: d + 1,
3493
+ banner_position: u + 1,
3485
3494
  banner_total: (e == null ? void 0 : e.length) || 0
3486
3495
  },
3487
3496
  tags: {
@@ -3490,8 +3499,8 @@ function Oa({
3490
3499
  banner_url: c.href || "no_url"
3491
3500
  }
3492
3501
  });
3493
- }, N = (c) => {
3494
- if (r({
3502
+ }, $ = (c) => {
3503
+ if (l({
3495
3504
  element: "banner_menu_item",
3496
3505
  label: `Landing: ${s} - OraculoSeccionBanners - Menu item click: ${c.label || c.id}`,
3497
3506
  target: c.href || "action",
@@ -3509,39 +3518,39 @@ function Oa({
3509
3518
  return;
3510
3519
  }
3511
3520
  c.href && typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(c.href);
3512
- }, E = 5e3, A = U(null), O = !u && ((f = e == null ? void 0 : e.length) != null ? f : 0) > 1, B = () => {
3521
+ }, O = 5e3, A = U(null), M = !m && ((h = e == null ? void 0 : e.length) != null ? h : 0) > 1, N = () => {
3513
3522
  A.current != null && (window.clearTimeout(A.current), A.current = null);
3514
- }, w = () => {
3515
- B(), O && (A.current = window.setTimeout(() => {
3523
+ }, S = () => {
3524
+ N(), M && (A.current = window.setTimeout(() => {
3516
3525
  var c;
3517
3526
  b.current = !0, (c = g.current) == null || c.next();
3518
- }, E));
3527
+ }, O));
3519
3528
  };
3520
- K(() => (w(), () => B()), [O, E]);
3529
+ K(() => (S(), () => N()), [M, O]);
3521
3530
  const R = (c) => {
3522
- var d;
3523
- c.preventDefault(), c.stopPropagation(), B(), (d = g.current) == null || d.prev();
3531
+ var u;
3532
+ c.preventDefault(), c.stopPropagation(), N(), (u = g.current) == null || u.prev();
3524
3533
  }, z = (c) => {
3525
- var d;
3526
- c.preventDefault(), c.stopPropagation(), B(), (d = g.current) == null || d.next();
3527
- }, S = (c) => {
3528
- var x, I, $, F;
3529
- const d = (c % l + l) % l;
3530
- if (!h.current) return;
3531
- const v = (x = e == null ? void 0 : e[d]) != null && x.href ? (($ = (I = e[d].href) == null ? void 0 : I.split("/").pop()) == null ? void 0 : $.split(".")[0]) || `banner_${d + 1}` : `banner_${d + 1}`;
3532
- r({
3534
+ var u;
3535
+ c.preventDefault(), c.stopPropagation(), N(), (u = g.current) == null || u.next();
3536
+ }, w = (c) => {
3537
+ var x, E, k, P;
3538
+ const u = (c % r + r) % r;
3539
+ if (!f.current) return;
3540
+ const v = (x = e == null ? void 0 : e[u]) != null && x.href ? ((k = (E = e[u].href) == null ? void 0 : E.split("/").pop()) == null ? void 0 : k.split(".")[0]) || `banner_${u + 1}` : `banner_${u + 1}`;
3541
+ l({
3533
3542
  element: "banner_carousel",
3534
- label: `Landing: ${s} - OraculoSeccionBanners - Banner view: Slide ${d + 1} - ${v}`,
3535
- target: ((F = e == null ? void 0 : e[d]) == null ? void 0 : F.href) || "no_url",
3543
+ label: `Landing: ${s} - OraculoSeccionBanners - Banner view: Slide ${u + 1} - ${v}`,
3544
+ target: ((P = e == null ? void 0 : e[u]) == null ? void 0 : P.href) || "no_url",
3536
3545
  event_type: "view",
3537
3546
  module_id: 301,
3538
3547
  metadata: {
3539
3548
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
3540
- slide_index: d + 1,
3541
- total_slides: l,
3549
+ slide_index: u + 1,
3550
+ total_slides: r,
3542
3551
  interaction_type: "manual_slide"
3543
3552
  },
3544
- tags: { banner_position: String(d + 1) }
3553
+ tags: { banner_position: String(u + 1) }
3545
3554
  });
3546
3555
  };
3547
3556
  return /* @__PURE__ */ p(
@@ -3587,12 +3596,12 @@ function Oa({
3587
3596
  enableHorizontalWheel: !0,
3588
3597
  options: C,
3589
3598
  onMove: ({ index: c }) => {
3590
- const d = (c % l + l) % l;
3591
- i(d);
3599
+ const u = (c % r + r) % r;
3600
+ i(u);
3592
3601
  const v = b.current;
3593
- b.current = !1, w(), v || S(c);
3602
+ b.current = !1, S(), v || w(c);
3594
3603
  },
3595
- renderItem: (c, d) => {
3604
+ renderItem: (c, u) => {
3596
3605
  var v, x;
3597
3606
  return /* @__PURE__ */ p(
3598
3607
  Z,
@@ -3601,7 +3610,7 @@ function Oa({
3601
3610
  href: c.href,
3602
3611
  target: (v = c.target) != null ? v : "_self",
3603
3612
  rel: c.target === "_blank" ? "noopener noreferrer" : void 0,
3604
- onClick: () => M(c, d),
3613
+ onClick: () => B(c, u),
3605
3614
  sx: {
3606
3615
  position: "relative",
3607
3616
  width: "100%",
@@ -3658,14 +3667,14 @@ function Oa({
3658
3667
  )
3659
3668
  }
3660
3669
  ),
3661
- m && /* @__PURE__ */ p(ee, { children: [
3670
+ d && /* @__PURE__ */ p(ee, { children: [
3662
3671
  /* @__PURE__ */ t(
3663
3672
  Ae,
3664
3673
  {
3665
3674
  "aria-label": "Anterior",
3666
3675
  onClick: R,
3667
3676
  sx: {
3668
- ...k,
3677
+ ...T,
3669
3678
  left: "120px",
3670
3679
  "@media (max-width:1024px)": { left: 24 },
3671
3680
  "@media (max-width:786px)": { display: "none" }
@@ -3679,7 +3688,7 @@ function Oa({
3679
3688
  "aria-label": "Siguiente",
3680
3689
  onClick: z,
3681
3690
  sx: {
3682
- ...k,
3691
+ ...T,
3683
3692
  right: "120px",
3684
3693
  "@media (max-width:1024px)": { right: 24 },
3685
3694
  "@media (max-width:786px)": { display: "none" }
@@ -3703,11 +3712,11 @@ function Oa({
3703
3712
  children: /* @__PURE__ */ t(
3704
3713
  Xe,
3705
3714
  {
3706
- total: l,
3715
+ total: r,
3707
3716
  active: o,
3708
- durationMs: E
3717
+ durationMs: O
3709
3718
  },
3710
- `${o}-${l}`
3719
+ `${o}-${r}`
3711
3720
  )
3712
3721
  }
3713
3722
  )
@@ -3746,7 +3755,7 @@ function Oa({
3746
3755
  cursor: c.onClick || c.href ? "pointer" : "default",
3747
3756
  whiteSpace: "nowrap"
3748
3757
  },
3749
- onClick: () => N(c),
3758
+ onClick: () => $(c),
3750
3759
  children: [
3751
3760
  c.icon && /* @__PURE__ */ t(
3752
3761
  Z,
@@ -3783,7 +3792,7 @@ function Oa({
3783
3792
  }
3784
3793
  );
3785
3794
  }
3786
- const Ea = [
3795
+ const ka = [
3787
3796
  { src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/IBK.svg", alt: "Interbank" },
3788
3797
  { src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/Yape.svg", alt: "Yape" },
3789
3798
  { src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/BCP.png", alt: "BCP" },
@@ -3792,9 +3801,9 @@ const Ea = [
3792
3801
  { src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/monnet.svg", alt: "Monnet" },
3793
3802
  { src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/niubiz.svg", alt: "Niubiz" }
3794
3803
  ];
3795
- function Ia({
3804
+ function $a({
3796
3805
  title: e = "Medios de pago",
3797
- items: n = Ea
3806
+ items: n = ka
3798
3807
  }) {
3799
3808
  const a = Math.ceil(n.length / 2), o = n.slice(0, a), i = n.slice(a);
3800
3809
  return /* @__PURE__ */ p(Z, { component: "section", "aria-labelledby": "mp-title", sx: { color: "#fff" }, children: [
@@ -3835,7 +3844,7 @@ function Ia({
3835
3844
  alignItems: "center",
3836
3845
  gap: { xs: 2, md: 3 },
3837
3846
  flexWrap: "wrap",
3838
- children: o.map((r, s) => /* @__PURE__ */ t(Re, { ...r }, `${r.alt}-${r.src}-${s}`))
3847
+ children: o.map((l, s) => /* @__PURE__ */ t(Re, { ...l }, `${l.alt}-${l.src}-${s}`))
3839
3848
  }
3840
3849
  ),
3841
3850
  /* @__PURE__ */ t(
@@ -3846,7 +3855,7 @@ function Ia({
3846
3855
  alignItems: "center",
3847
3856
  gap: { xs: 2, md: 3 },
3848
3857
  flexWrap: "wrap",
3849
- children: i.map((r, s) => /* @__PURE__ */ t(Re, { ...r }, `${r.alt}-${r.src}-${s}`))
3858
+ children: i.map((l, s) => /* @__PURE__ */ t(Re, { ...l }, `${l.alt}-${l.src}-${s}`))
3850
3859
  }
3851
3860
  )
3852
3861
  ] })
@@ -3873,25 +3882,25 @@ function Be({
3873
3882
  e
3874
3883
  ] });
3875
3884
  }
3876
- function Za({
3885
+ function Ya({
3877
3886
  docId: e = "home",
3878
3887
  children: n
3879
3888
  }) {
3880
3889
  return /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Me, { docId: e, children: n }) });
3881
3890
  }
3882
- const Ta = {
3891
+ const Na = {
3883
3892
  OraculoSeccionDestacados: Ln,
3884
3893
  OraculoSeccionTopJuegos: Fn,
3885
3894
  OraculoSeccionCasinoEnVivo: zn,
3886
- OraculoSeccionCasino: jn,
3887
- OraculoSeccionVirtuales: Zn,
3888
- OraculoSeccionClubOlimpo: Yn,
3889
- OraculoSeccionBonoBienvenida: Xn,
3890
- OraculoSeccionBanners: Oa,
3891
- OraculoSeccionMediosPago: Ia,
3892
- OraculoSeccionEventoEnVivo: pa,
3893
- OraculoSeccionEventoSemana: Ca,
3894
- OraculoSeccionEventoCombinadas: ia
3895
+ OraculoSeccionCasino: Zn,
3896
+ OraculoSeccionVirtuales: Yn,
3897
+ OraculoSeccionClubOlimpo: ta,
3898
+ OraculoSeccionBonoBienvenida: ea,
3899
+ OraculoSeccionBanners: Ta,
3900
+ OraculoSeccionMediosPago: $a,
3901
+ OraculoSeccionEventoEnVivo: ha,
3902
+ OraculoSeccionEventoSemana: Ia,
3903
+ OraculoSeccionEventoCombinadas: sa
3895
3904
  }, We = {
3896
3905
  sections: [
3897
3906
  {
@@ -4955,18 +4964,18 @@ const Ta = {
4955
4964
  updatedAt: "2026-01-22T04:11:09.501Z"
4956
4965
  }
4957
4966
  ]
4958
- }, ka = (e) => typeof e == "function" || e && typeof e == "object" && "$$typeof" in e, $a = (e) => /^OraculoSeccion[A-Z]/.test(e);
4967
+ }, Ma = (e) => typeof e == "function" || e && typeof e == "object" && "$$typeof" in e, Ba = (e) => /^OraculoSeccion[A-Z]/.test(e);
4959
4968
  function Ne(e) {
4960
4969
  return e && Array.isArray(e.sections) ? e.sections.slice().sort((n, a) => {
4961
4970
  var o, i;
4962
4971
  return ((o = n.order) != null ? o : 0) - ((i = a.order) != null ? i : 0);
4963
4972
  }).map((n, a) => ({ ...n, order: a + 1 })) : e && Array.isArray(e.components) ? e.components.map((n, a) => {
4964
- var o, i, r, s, g;
4973
+ var o, i, l, s, g;
4965
4974
  return {
4966
4975
  id: (o = n.id) != null ? o : a + 1,
4967
4976
  title: (i = n.title) != null ? i : "",
4968
4977
  componentKey: n.componentKey,
4969
- visible: (r = n.visible) != null ? r : !0,
4978
+ visible: (l = n.visible) != null ? l : !0,
4970
4979
  order: a + 1,
4971
4980
  props: (s = n.props) != null ? s : {},
4972
4981
  apiUrl: (g = n.apiUrl) != null ? g : "",
@@ -4978,11 +4987,11 @@ function Ne(e) {
4978
4987
  };
4979
4988
  }) : [];
4980
4989
  }
4981
- const Na = Object.fromEntries(
4982
- Object.entries(Ta).filter(
4983
- ([e, n]) => $a(e) && ka(n)
4990
+ const La = Object.fromEntries(
4991
+ Object.entries(Na).filter(
4992
+ ([e, n]) => Ba(e) && Ma(n)
4984
4993
  )
4985
- ), Ma = (e) => {
4994
+ ), Aa = (e) => {
4986
4995
  try {
4987
4996
  return Object.fromEntries(e != null ? e : []);
4988
4997
  } catch {
@@ -4998,70 +5007,70 @@ const je = [
4998
5007
  "OraculoSeccionEventoEnVivo",
4999
5008
  "OraculoSeccionEventoSemana",
5000
5009
  "OraculoSeccionEventoCombinadas"
5001
- ], Ja = ({
5010
+ ], Qa = ({
5002
5011
  sectionsOverride: e,
5003
5012
  docId: n = "home",
5004
5013
  db: a,
5005
5014
  extras: o,
5006
5015
  loader: i,
5007
- disableWrapper: r = !1
5016
+ disableWrapper: l = !1
5008
5017
  }) => {
5009
- const s = Q(() => Ma(o), [o]), g = i || s.loader, [h, b] = D([]), [l, u] = D(!1), [m, y] = D({}), [_, k] = D({}), [C, M] = D({}), N = st("(min-width:1024px)");
5018
+ const s = Q(() => Aa(o), [o]), g = i || s.loader, [f, b] = D([]), [r, m] = D(!1), [d, y] = D({}), [_, T] = D({}), [C, B] = D({}), $ = st("(min-width:1024px)");
5010
5019
  K(() => {
5011
5020
  if (e) return;
5012
5021
  if (!a) {
5013
5022
  console.warn("[landing] sin db -> fallback json"), b(Ne(We));
5014
5023
  return;
5015
5024
  }
5016
- const f = (d, v) => {
5017
- console.warn("[landing] FALLBACK:", d, v != null ? v : ""), b(Ne(We)), u(!1);
5025
+ const h = (u, v) => {
5026
+ console.warn("[landing] FALLBACK:", u, v != null ? v : ""), b(Ne(We)), m(!1);
5018
5027
  };
5019
5028
  if (process.env.NEXT_PUBLIC_LANDING_FORCE_FALLBACK === "1") {
5020
- u(!0), f("forzado por env");
5029
+ m(!0), h("forzado por env");
5021
5030
  return;
5022
5031
  }
5023
- u(!0);
5032
+ m(!0);
5024
5033
  const c = wt(
5025
5034
  St(a, "landings", n),
5026
- (d) => {
5035
+ (u) => {
5027
5036
  try {
5028
- if (!d.exists()) {
5029
- f(`doc landings/${n} no existe`);
5037
+ if (!u.exists()) {
5038
+ h(`doc landings/${n} no existe`);
5030
5039
  return;
5031
5040
  }
5032
- const v = d.data(), x = Ne(v);
5041
+ const v = u.data(), x = Ne(v);
5033
5042
  if (!x.length) {
5034
- f("JSON inválido o sin secciones normalizables", v);
5043
+ h("JSON inválido o sin secciones normalizables", v);
5035
5044
  return;
5036
5045
  }
5037
5046
  console.log("[landing] Firestore OK (json grande):", v), b(x);
5038
5047
  } catch (v) {
5039
- f("error procesando snapshot", v);
5048
+ h("error procesando snapshot", v);
5040
5049
  } finally {
5041
- u(!1);
5050
+ m(!1);
5042
5051
  }
5043
5052
  },
5044
- (d) => {
5045
- f("error onSnapshot", d);
5053
+ (u) => {
5054
+ h("error onSnapshot", u);
5046
5055
  }
5047
5056
  );
5048
5057
  return () => c();
5049
5058
  }, [e, n, a]), K(() => (An(s), () => Rn()), [s]), K(() => {
5050
- (e ? e.slice() : h.slice()).map((d) => d.componentKey).filter((d) => !!d).length;
5051
- }, [e, h]);
5052
- const E = async (f) => {
5053
- if (je.includes(f.componentKey))
5059
+ (e ? e.slice() : f.slice()).map((u) => u.componentKey).filter((u) => !!u).length;
5060
+ }, [e, f]);
5061
+ const O = async (h) => {
5062
+ if (je.includes(h.componentKey))
5054
5063
  return {
5055
5064
  // whatever empty structure your UI expects
5056
5065
  items: [],
5057
5066
  events: [],
5058
5067
  data: {}
5059
5068
  };
5060
- const c = (f.apiUrl || "").trim();
5069
+ const c = (h.apiUrl || "").trim();
5061
5070
  if (!c) return;
5062
- const d = f.apiMethod || "GET", v = f.apiParams || [];
5063
- let x = c, I, $;
5064
- if (d === "GET") {
5071
+ const u = h.apiMethod || "GET", v = h.apiParams || [];
5072
+ let x = c, E, k;
5073
+ if (u === "GET") {
5065
5074
  const H = new URL(
5066
5075
  c,
5067
5076
  typeof window == "undefined" ? "http://localhost" : window.location.origin
@@ -5073,157 +5082,157 @@ const je = [
5073
5082
  const H = new URLSearchParams();
5074
5083
  for (const j of v)
5075
5084
  j.key && H.append(j.key, j.value);
5076
- I = H.toString(), $ = {
5085
+ E = H.toString(), k = {
5077
5086
  "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
5078
5087
  };
5079
5088
  }
5080
- const F = await fetch(x, {
5081
- method: d,
5082
- headers: $,
5083
- body: I
5089
+ const P = await fetch(x, {
5090
+ method: u,
5091
+ headers: k,
5092
+ body: E
5084
5093
  });
5085
- if (!F.ok) throw new Ge(F.status, x, F.statusText);
5086
- return F.json();
5094
+ if (!P.ok) throw new Ge(P.status, x, P.statusText);
5095
+ return P.json();
5087
5096
  }, A = Q(
5088
- () => e ? e.slice() : h.slice(),
5089
- [e, h]
5090
- ), O = de.useRef(/* @__PURE__ */ new Set());
5097
+ () => e ? e.slice() : f.slice(),
5098
+ [e, f]
5099
+ ), M = de.useRef(/* @__PURE__ */ new Set());
5091
5100
  K(() => {
5092
- const f = A.map((c) => ({ s: c, url: (c.apiUrl || "").trim() })).filter(({ url: c }) => !!c);
5093
- if (f.length)
5094
- for (const { s: c, url: d } of f) {
5095
- const v = `${c.id}|${d}`;
5096
- O.current.has(v) || (O.current.add(v), k((x) => ({ ...x, [c.id]: !0 })), M((x) => ({ ...x, [c.id]: "" })), (async () => {
5101
+ const h = A.map((c) => ({ s: c, url: (c.apiUrl || "").trim() })).filter(({ url: c }) => !!c);
5102
+ if (h.length)
5103
+ for (const { s: c, url: u } of h) {
5104
+ const v = `${c.id}|${u}`;
5105
+ M.current.has(v) || (M.current.add(v), T((x) => ({ ...x, [c.id]: !0 })), B((x) => ({ ...x, [c.id]: "" })), (async () => {
5097
5106
  try {
5098
- const x = await E(c);
5099
- y((I) => ({ ...I, [c.id]: x }));
5107
+ const x = await O(c);
5108
+ y((E) => ({ ...E, [c.id]: x }));
5100
5109
  } catch (x) {
5101
- let I = "Error desconocido";
5102
- x instanceof Ge ? I = `Error HTTP ${x.status} (${x.statusText}) en ${x.url}` : x instanceof SyntaxError ? I = "Respuesta no es JSON válido" : x instanceof TypeError ? I = "Fallo de red / CORS / conexión" : typeof x == "string" && (I = x.toString()), M(($) => ({ ...$, [c.id]: I }));
5110
+ let E = "Error desconocido";
5111
+ x instanceof Ge ? E = `Error HTTP ${x.status} (${x.statusText}) en ${x.url}` : x instanceof SyntaxError ? E = "Respuesta no es JSON válido" : x instanceof TypeError ? E = "Fallo de red / CORS / conexión" : typeof x == "string" && (E = x.toString()), B((k) => ({ ...k, [c.id]: E }));
5103
5112
  } finally {
5104
- k((x) => ({ ...x, [c.id]: !1 }));
5113
+ T((x) => ({ ...x, [c.id]: !1 }));
5105
5114
  }
5106
5115
  })());
5107
5116
  }
5108
5117
  }, [A]);
5109
- const B = Q(
5110
- () => A.filter((f) => f.visible).sort((f, c) => f.order - c.order),
5118
+ const N = Q(
5119
+ () => A.filter((h) => h.visible).sort((h, c) => h.order - c.order),
5111
5120
  [A]
5112
- ), w = (f) => Array.isArray(f) ? f.map((c) => {
5113
- const d = {};
5121
+ ), S = (h) => Array.isArray(h) ? h.map((c) => {
5122
+ const u = {};
5114
5123
  for (const v of c.fields || []) {
5115
5124
  const x = (v.type || "string").toLowerCase();
5116
5125
  if (x === "number") {
5117
- const I = String(v.value || "").trim();
5118
- if (I !== "") {
5119
- const $ = Number(I);
5120
- Number.isNaN($) || (d[v.name] = $);
5126
+ const E = String(v.value || "").trim();
5127
+ if (E !== "") {
5128
+ const k = Number(E);
5129
+ Number.isNaN(k) || (u[v.name] = k);
5121
5130
  }
5122
5131
  } else if (x === "boolean")
5123
- d[v.name] = String(v.value).toLowerCase() === "true";
5132
+ u[v.name] = String(v.value).toLowerCase() === "true";
5124
5133
  else if (x === "function") {
5125
- const I = String(v.value || "").trim();
5126
- if (I)
5134
+ const E = String(v.value || "").trim();
5135
+ if (E)
5127
5136
  try {
5128
- const $ = new Function(I);
5129
- d[v.name] = $;
5130
- } catch ($) {
5131
- console.error(`❌ Error creando función en item '${v.name}':`, $);
5137
+ const k = new Function(E);
5138
+ u[v.name] = k;
5139
+ } catch (k) {
5140
+ console.error(`❌ Error creando función en item '${v.name}':`, k);
5132
5141
  }
5133
- } else d[v.name] = v.value;
5142
+ } else u[v.name] = v.value;
5134
5143
  }
5135
- return d;
5136
- }) : [], R = (f) => {
5144
+ return u;
5145
+ }) : [], R = (h) => {
5137
5146
  const c = {};
5138
- if (!Array.isArray(f)) return c;
5139
- for (const d of f) {
5140
- if (!d.name) continue;
5141
- const v = (d.type || "string").toLowerCase();
5147
+ if (!Array.isArray(h)) return c;
5148
+ for (const u of h) {
5149
+ if (!u.name) continue;
5150
+ const v = (u.type || "string").toLowerCase();
5142
5151
  if (v === "number") {
5143
- const x = String(d.value || "").trim();
5152
+ const x = String(u.value || "").trim();
5144
5153
  if (x !== "") {
5145
- const I = Number(x);
5146
- Number.isNaN(I) || (c[d.name] = I);
5154
+ const E = Number(x);
5155
+ Number.isNaN(E) || (c[u.name] = E);
5147
5156
  }
5148
5157
  } else if (v === "boolean")
5149
- c[d.name] = String(d.value).toLowerCase() === "true";
5158
+ c[u.name] = String(u.value).toLowerCase() === "true";
5150
5159
  else if (v === "function") {
5151
- const x = String(d.value || "").trim();
5160
+ const x = String(u.value || "").trim();
5152
5161
  if (x)
5153
5162
  try {
5154
- const I = new Function(x);
5155
- c[d.name] = I;
5156
- } catch (I) {
5157
- console.error(`❌ Error creando función en item '${d.name}':`, I);
5163
+ const E = new Function(x);
5164
+ c[u.name] = E;
5165
+ } catch (E) {
5166
+ console.error(`❌ Error creando función en item '${u.name}':`, E);
5158
5167
  }
5159
- } else c[d.name] = d.value;
5168
+ } else c[u.name] = u.value;
5160
5169
  }
5161
5170
  return c;
5162
- }, z = (f, c, d, v) => {
5163
- const x = d ? { ...d } : {}, I = "items".trim() || "items";
5171
+ }, z = (h, c, u, v) => {
5172
+ const x = u ? { ...u } : {}, E = "items".trim() || "items";
5164
5173
  if (c)
5165
- return x[I] = c.arr || [], x;
5166
- const $ = f;
5167
- if (Array.isArray($))
5168
- return x[I] = $, x;
5169
- if ($ && typeof $ == "object") {
5170
- const F = $;
5171
- return Array.isArray(F.lobby) ? (x[I] = F.lobby, x) : Array.isArray(F.items) ? (x[I] = F.items, x) : (x[I] = $, x);
5174
+ return x[E] = c.arr || [], x;
5175
+ const k = h;
5176
+ if (Array.isArray(k))
5177
+ return x[E] = k, x;
5178
+ if (k && typeof k == "object") {
5179
+ const P = k;
5180
+ return Array.isArray(P.lobby) ? (x[E] = P.lobby, x) : Array.isArray(P.items) ? (x[E] = P.items, x) : (x[E] = k, x);
5172
5181
  }
5173
- return x[I] = [], x;
5174
- }, S = (f) => {
5175
- var I;
5176
- const c = !!((I = f.apiUrl) != null && I.trim()), d = c ? m[f.id] : void 0;
5177
- let v = f.props ? { ...f.props } : {};
5178
- const x = R(f.manualScalarFields);
5179
- if (je.includes(f.componentKey))
5180
- return { items: d, ...v, ...x };
5181
- if (v = { ...v, ...x }, c) v = z(d, null, v);
5182
- else if (f.dataMode === "manual") {
5183
- const $ = w(f.manualItems);
5182
+ return x[E] = [], x;
5183
+ }, w = (h) => {
5184
+ var E;
5185
+ const c = !!((E = h.apiUrl) != null && E.trim()), u = c ? d[h.id] : void 0;
5186
+ let v = h.props ? { ...h.props } : {};
5187
+ const x = R(h.manualScalarFields);
5188
+ if (je.includes(h.componentKey))
5189
+ return { items: u, ...v, ...x };
5190
+ if (v = { ...v, ...x }, c) v = z(u, null, v);
5191
+ else if (h.dataMode === "manual") {
5192
+ const k = S(h.manualItems);
5184
5193
  if (v = z(
5185
5194
  null,
5186
- { arr: $, variableName: f.variableName },
5195
+ { arr: k, variableName: h.variableName },
5187
5196
  v
5188
- ), f.variableName2 && f.manualItems2) {
5189
- const F = w(f.manualItems2), H = (f.variableName2 || "items2").trim() || "items2";
5190
- v[H] = F;
5197
+ ), h.variableName2 && h.manualItems2) {
5198
+ const P = S(h.manualItems2), H = (h.variableName2 || "items2").trim() || "items2";
5199
+ v[H] = P;
5191
5200
  }
5192
5201
  }
5193
5202
  return v;
5194
- }, T = (f, c, d) => /* @__PURE__ */ t("div", { className: `mx-4 p-4 rounded ${{
5203
+ }, I = (h, c, u) => /* @__PURE__ */ t("div", { className: `mx-4 p-4 rounded ${{
5195
5204
  loading: "bg-blue-100 text-blue-800",
5196
5205
  error: "bg-red-100 text-red-800",
5197
5206
  component: "bg-yellow-100 text-yellow-800"
5198
- }[c]}`, children: d }, f), P = (f) => {
5207
+ }[c]}`, children: u }, h), F = (h) => {
5199
5208
  var ue;
5200
- const c = f.componentKey, d = Na[c];
5201
- if (!d)
5202
- return console.warn(`No hay componente registrado para "${c}"`), T(
5203
- f.id,
5209
+ const c = h.componentKey, u = La[c];
5210
+ if (!u)
5211
+ return console.warn(`No hay componente registrado para "${c}"`), I(
5212
+ h.id,
5204
5213
  "component",
5205
5214
  `Componente "${c}" no encontrado`
5206
5215
  );
5207
- const v = !!((ue = f.apiUrl) != null && ue.trim()), x = v ? m[f.id] : void 0, I = v ? !!_[f.id] : !1, $ = v ? C[f.id] : "";
5216
+ const v = !!((ue = h.apiUrl) != null && ue.trim()), x = v ? d[h.id] : void 0, E = v ? !!_[h.id] : !1, k = v ? C[h.id] : "";
5208
5217
  if (v) {
5209
- if (I && !x)
5210
- return T(
5211
- f.id,
5218
+ if (E && !x)
5219
+ return I(
5220
+ h.id,
5212
5221
  "loading",
5213
- `Cargando datos desde ${f.apiUrl}...`
5222
+ `Cargando datos desde ${h.apiUrl}...`
5214
5223
  );
5215
- if ($ && !x)
5216
- return T(
5217
- f.id,
5224
+ if (k && !x)
5225
+ return I(
5226
+ h.id,
5218
5227
  "error",
5219
- `Error cargando ${f.apiUrl}: ${$}`
5228
+ `Error cargando ${h.apiUrl}: ${k}`
5220
5229
  );
5221
5230
  }
5222
- const F = S(f), j = (/* @__PURE__ */ new Set([
5231
+ const P = w(h), j = (/* @__PURE__ */ new Set([
5223
5232
  "OraculoSeccionBanners",
5224
5233
  "OraculoSeccionBonoBienvenida",
5225
5234
  "OraculoSeccionCasinoEnVivo",
5226
- ...N ? [] : [
5235
+ ...$ ? [] : [
5227
5236
  "OraculoSeccionClubOlimpo",
5228
5237
  "OraculoSeccionEventoEnVivo",
5229
5238
  "OraculoSeccionEventoSemana",
@@ -5232,18 +5241,18 @@ const je = [
5232
5241
  "OraculoSeccionDestacados",
5233
5242
  "OraculoSeccionCasino"
5234
5243
  ]
5235
- ])).has(f.componentKey), G = N ? 120 : 24, Y = (N ? 8 : 5) * 8, ie = f.componentKey === "OraculoSeccionCasinoEnVivo", fe = {
5244
+ ])).has(h.componentKey), G = $ ? 120 : 24, Y = ($ ? 8 : 5) * 8, re = h.componentKey === "OraculoSeccionCasinoEnVivo", fe = {
5236
5245
  width: "100%",
5237
5246
  boxSizing: "border-box",
5238
5247
  ...j ? {} : { paddingLeft: G, paddingRight: G },
5239
- ...ie ? {
5248
+ ...re ? {
5240
5249
  marginTop: -Y,
5241
5250
  marginBottom: -Y
5242
5251
  } : {}
5243
5252
  };
5244
- return /* @__PURE__ */ t("div", { style: fe, className: "oraculo-section-wrapper", children: /* @__PURE__ */ t(d, { ...F }) }, f.id);
5253
+ return /* @__PURE__ */ t("div", { style: fe, className: "oraculo-section-wrapper", children: /* @__PURE__ */ t(u, { ...P }) }, h.id);
5245
5254
  };
5246
- return l && !e ? g ? /* @__PURE__ */ t(g, {}) : /* @__PURE__ */ t("div", { children: "Cargando..." }) : !l && !e && h.length === 0 ? /* @__PURE__ */ t("div", { className: "text-xs text-gray-500", children: "Sin secciones (Firestore)" }) : r ? /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Me, { docId: n, children: /* @__PURE__ */ t(ee, { children: B.map(P) }) }) }) : /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Me, { docId: n, children: /* @__PURE__ */ t(
5255
+ return r && !e ? g ? /* @__PURE__ */ t(g, {}) : /* @__PURE__ */ t("div", { children: "Cargando..." }) : !r && !e && f.length === 0 ? /* @__PURE__ */ t("div", { className: "text-xs text-gray-500", children: "Sin secciones (Firestore)" }) : l ? /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Me, { docId: n, children: /* @__PURE__ */ t(ee, { children: N.map(F) }) }) }) : /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Me, { docId: n, children: /* @__PURE__ */ t(
5247
5256
  ct,
5248
5257
  {
5249
5258
  className: "oli-font",
@@ -5258,7 +5267,7 @@ const je = [
5258
5267
  maxWidth: "100%",
5259
5268
  overflowX: "hidden"
5260
5269
  },
5261
- children: /* @__PURE__ */ t(ve, { direction: "column", spacing: N ? 8 : 5, useFlexGap: !0, children: B.map(P) })
5270
+ children: /* @__PURE__ */ t(ve, { direction: "column", spacing: $ ? 8 : 5, useFlexGap: !0, children: N.map(F) })
5262
5271
  }
5263
5272
  ) }) });
5264
5273
  };
@@ -5284,24 +5293,24 @@ export {
5284
5293
  oe as OraculoGridGroup,
5285
5294
  rn as OraculoLiveCasinoCard,
5286
5295
  Re as OraculoLogoMediosPago,
5287
- Ja as OraculoPageLandingPreview,
5288
- Oa as OraculoSeccionBanners,
5289
- Xn as OraculoSeccionBonoBienvenida,
5290
- jn as OraculoSeccionCasino,
5296
+ Qa as OraculoPageLandingPreview,
5297
+ Ta as OraculoSeccionBanners,
5298
+ ea as OraculoSeccionBonoBienvenida,
5299
+ Zn as OraculoSeccionCasino,
5291
5300
  zn as OraculoSeccionCasinoEnVivo,
5292
- Yn as OraculoSeccionClubOlimpo,
5301
+ ta as OraculoSeccionClubOlimpo,
5293
5302
  Ln as OraculoSeccionDestacados,
5294
- ia as OraculoSeccionEventoCombinadas,
5295
- pa as OraculoSeccionEventoEnVivo,
5296
- Ca as OraculoSeccionEventoSemana,
5297
- Ia as OraculoSeccionMediosPago,
5303
+ sa as OraculoSeccionEventoCombinadas,
5304
+ ha as OraculoSeccionEventoEnVivo,
5305
+ Ia as OraculoSeccionEventoSemana,
5306
+ $a as OraculoSeccionMediosPago,
5298
5307
  Fn as OraculoSeccionTopJuegos,
5299
- Zn as OraculoSeccionVirtuales,
5300
- Za as OraculoSectionHost,
5308
+ Yn as OraculoSeccionVirtuales,
5309
+ Ya as OraculoSectionHost,
5301
5310
  le as OraculoSectionTitle,
5302
5311
  Be as OraculoThemeProvider,
5303
5312
  Fn as OraculoTopJuegoItem,
5304
5313
  Fe as OraculoWelcomeBanner,
5305
- Ja as default
5314
+ Qa as default
5306
5315
  };
5307
5316
  //# sourceMappingURL=index.es.js.map