oraculo-ui 0.2.1 → 0.2.3

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,75 @@ 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
+ background: e.background,
2044
+ room_name: (g = e.room_name) != null ? g : "",
2045
+ product: (f = e.product) != null ? f : "",
2046
+ service: (b = e.service) != null ? b : "",
2047
+ provider: (r = e.provider) != null ? r : "",
2048
+ game_type: (m = e.game_type) != null ? m : null,
2049
+ external_id: (d = e.external_id) != null ? d : ""
2047
2050
  };
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);
2051
+ }, Vn = (e) => e ? !Array.isArray(e) && Array.isArray(e.recommendations) ? e.recommendations.filter(Boolean).map((n) => String(n)) : [] : [], Dn = () => {
2052
+ var n, a, o;
2053
+ const e = ie("user");
2054
+ 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;
2055
+ }, Wn = async () => {
2056
+ const e = Dn(), n = new URLSearchParams({
2057
+ userId: String(e),
2058
+ productType: "Casino",
2059
+ filter: "high-payout"
2060
+ }), a = `${Un}?${n.toString()}`, o = await fetch(a);
2061
+ if (!o.ok)
2062
+ throw new Error(
2063
+ `No se pudo obtener recomendaciones. HTTP ${o.status} ${o.statusText}`
2064
+ );
2065
+ return o.json();
2066
+ }, Gn = (e, n = !1) => {
2067
+ const [a, o] = D([]), [i, l] = D(!1);
2060
2068
  return K(() => {
2061
2069
  let s = !1;
2062
2070
  return (async () => {
2063
2071
  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);
2072
+ o(Array.isArray(e) ? e : []), l(!1);
2070
2073
  return;
2071
2074
  }
2072
- r(!0);
2075
+ l(!0);
2073
2076
  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}`
2077
+ const f = await Wn(), b = Vn(f);
2078
+ if (!b.length) {
2079
+ s || o([]);
2080
+ return;
2081
+ }
2082
+ const r = await Promise.allSettled(
2083
+ b.map(async (d, y) => {
2084
+ const _ = await fetch(
2085
+ `https://api.mktolimpo.com/api/machine/${d}`
2078
2086
  );
2079
- if (!y.ok)
2080
- throw new Error(`No se pudo obtener machine ${u}`);
2081
- const _ = await y.json();
2082
- return Un(_, m);
2087
+ if (!_.ok)
2088
+ throw new Error(`No se pudo obtener machine ${d}`);
2089
+ const T = await _.json();
2090
+ return qn(T, y);
2083
2091
  })
2084
2092
  );
2085
2093
  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([]);
2094
+ const m = r.filter(
2095
+ (d) => d.status === "fulfilled"
2096
+ ).map((d) => d.value);
2097
+ o(m);
2098
+ } catch (f) {
2099
+ console.error("[usePersonalizeCasinoItems] error:", f), s || o([]);
2090
2100
  } finally {
2091
- s || r(!1);
2101
+ s || l(!1);
2092
2102
  }
2093
2103
  })(), () => {
2094
2104
  s = !0;
@@ -2097,7 +2107,7 @@ const Pn = (e, n) => {
2097
2107
  resolvedItems: a,
2098
2108
  loading: i
2099
2109
  };
2100
- }, Dn = (e) => {
2110
+ }, jn = (e) => {
2101
2111
  if (typeof e == "boolean") return e;
2102
2112
  if (typeof e == "string")
2103
2113
  return e.toLowerCase() === "true";
@@ -2110,37 +2120,37 @@ const Pn = (e, n) => {
2110
2120
  }, rt = (e, n) => {
2111
2121
  var a, o;
2112
2122
  return (o = (a = e.orden) != null ? a : e.machine) != null ? o : n;
2113
- }, Wn = (e, n = !0, a = 1) => {
2123
+ }, Hn = (e, n = !0, a = 1) => {
2114
2124
  const o = e.map((s, g) => {
2115
- var h;
2125
+ var f;
2116
2126
  return {
2117
2127
  id: rt(s, g),
2118
- imageUrl: (h = s.logo) != null ? h : "",
2128
+ imageUrl: (f = s.logo) != null ? f : "",
2119
2129
  ...s.background ? { background: s.background } : {}
2120
2130
  };
2121
2131
  });
2122
2132
  if (!o.length) return [];
2123
2133
  const i = [];
2124
- let r = 0;
2134
+ let l = 0;
2125
2135
  if (n) {
2126
2136
  const s = Math.min(o.length, 1);
2127
2137
  i.push({
2128
2138
  id: "mosaic-0",
2129
2139
  kind: "mosaic",
2130
2140
  items: o.slice(0, s)
2131
- }), r = s;
2141
+ }), l = s;
2132
2142
  }
2133
- for (; r < o.length; ) {
2134
- const s = Math.min(r + a, o.length);
2143
+ for (; l < o.length; ) {
2144
+ const s = Math.min(l + a, o.length);
2135
2145
  i.push({
2136
- id: `grid-${r}`,
2146
+ id: `grid-${l}`,
2137
2147
  kind: "grid",
2138
- items: o.slice(r, s)
2139
- }), r = s;
2148
+ items: o.slice(l, s)
2149
+ }), l = s;
2140
2150
  }
2141
2151
  return i;
2142
- }, Gn = (e = !0, n = 4) => {
2143
- const a = (i) => Array.from({ length: i }, (r, s) => ({
2152
+ }, Kn = (e = !0, n = 4) => {
2153
+ const a = (i) => Array.from({ length: i }, (l, s) => ({
2144
2154
  id: `sk-${i}-${s}`,
2145
2155
  imageUrl: ""
2146
2156
  })), o = [];
@@ -2153,22 +2163,22 @@ const Pn = (e, n) => {
2153
2163
  kind: "grid",
2154
2164
  items: a(n)
2155
2165
  }), o;
2156
- }, jn = ({
2166
+ }, Zn = ({
2157
2167
  items: e,
2158
2168
  title: n = "Casino",
2159
2169
  iconUrl: a = "/assets/img/home/Casino/diamante.svg",
2160
2170
  onItemClick: o,
2161
2171
  onViewMore: i,
2162
- mosaicFirst: r = !0,
2172
+ mosaicFirst: l = !0,
2163
2173
  gridSize: s = 1,
2164
2174
  isPersonalize: g = !1
2165
2175
  }) => {
2166
- const h = J(), b = X(), l = U(null), [u, m] = D({ isStart: !0, isEnd: !1 }), y = Dn(g), { resolvedItems: _, loading: k } = Vn(
2176
+ const f = J(), b = X(), r = U(null), [m, d] = D({ isStart: !0, isEnd: !1 }), y = jn(g), { resolvedItems: _, loading: T } = Gn(
2167
2177
  e,
2168
2178
  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({
2179
+ ), 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 = () => {
2180
+ var N;
2181
+ f({
2172
2182
  element: "casino_prev",
2173
2183
  label: `Landing: ${b} - OraculoSeccionCasino - Anterior`,
2174
2184
  target: "prev",
@@ -2178,10 +2188,10 @@ const Pn = (e, n) => {
2178
2188
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
2179
2189
  },
2180
2190
  tags: { section: "OraculoSeccionCasino" }
2181
- }), (O = l.current) == null || O.prev();
2182
- }, E = () => {
2183
- var O;
2184
- h({
2191
+ }), (N = r.current) == null || N.prev();
2192
+ }, A = () => {
2193
+ var N;
2194
+ f({
2185
2195
  element: "casino_next",
2186
2196
  label: `Landing: ${b} - OraculoSeccionCasino - Siguiente`,
2187
2197
  target: "next",
@@ -2191,9 +2201,9 @@ const Pn = (e, n) => {
2191
2201
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
2192
2202
  },
2193
2203
  tags: { section: "OraculoSeccionCasino" }
2194
- }), (O = l.current) == null || O.next();
2195
- }, A = () => {
2196
- if (h({
2204
+ }), (N = r.current) == null || N.next();
2205
+ }, M = () => {
2206
+ if (f({
2197
2207
  element: "casino_view_more",
2198
2208
  label: `Landing: ${b} - OraculoSeccionCasino - Ver más`,
2199
2209
  target: "https://www.olimpo.bet/casino",
@@ -2231,8 +2241,8 @@ const Pn = (e, n) => {
2231
2241
  variant: "secondary",
2232
2242
  iconOnly: !0,
2233
2243
  leftIcon: /* @__PURE__ */ t(Ze, {}),
2234
- onClick: N,
2235
- disabled: u.isStart
2244
+ onClick: O,
2245
+ disabled: m.isStart
2236
2246
  }
2237
2247
  ),
2238
2248
  /* @__PURE__ */ t(
@@ -2242,20 +2252,20 @@ const Pn = (e, n) => {
2242
2252
  variant: "secondary",
2243
2253
  iconOnly: !0,
2244
2254
  rightIcon: /* @__PURE__ */ t(Je, {}),
2245
- onClick: E,
2246
- disabled: u.isEnd
2255
+ onClick: A,
2256
+ disabled: m.isEnd
2247
2257
  }
2248
2258
  )
2249
2259
  ] }),
2250
- /* @__PURE__ */ t(L, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(W, { variant: "secondary", onClick: A, children: "Ver más" }) })
2260
+ /* @__PURE__ */ t(L, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(W, { variant: "secondary", onClick: M, children: "Ver más" }) })
2251
2261
  ]
2252
2262
  }
2253
2263
  ),
2254
2264
  /* @__PURE__ */ t(
2255
2265
  se,
2256
2266
  {
2257
- ref: l,
2258
- items: M,
2267
+ ref: r,
2268
+ items: $,
2259
2269
  perPage: void 0,
2260
2270
  gap: "16px",
2261
2271
  enableHorizontalWheel: !0,
@@ -2278,90 +2288,90 @@ const Pn = (e, n) => {
2278
2288
  padding: { left: "24px", right: "24px" }
2279
2289
  }
2280
2290
  },
2281
- renderItem: (O) => /* @__PURE__ */ t("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ t(
2291
+ renderItem: (N) => /* @__PURE__ */ t("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ t(
2282
2292
  tt,
2283
2293
  {
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)
2294
+ items: N.items,
2295
+ layout: N.kind === "mosaic" ? "mosaic" : "grid",
2296
+ loading: B,
2297
+ onClick: (S) => {
2298
+ if (B) return;
2299
+ const R = C.find(
2300
+ (I, F) => String(rt(I, F)) === String(S.id)
2291
2301
  );
2292
- if (!w) return;
2293
- o == null || o(w), h({
2302
+ if (!R) return;
2303
+ o == null || o(R), f({
2294
2304
  element: "casino_game_card",
2295
- label: `Landing: ${b} - OraculoSeccionCasino - Open game: ${String(w.machine) || "unknown"}`,
2296
- target: String(w.machine || "unknown"),
2305
+ label: `Landing: ${b} - OraculoSeccionCasino - Open game: ${String(R.machine) || "unknown"}`,
2306
+ target: String(R.machine || "unknown"),
2297
2307
  event_type: "click",
2298
2308
  module_id: 301,
2299
2309
  metadata: {
2300
2310
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
2301
2311
  },
2302
2312
  tags: {
2303
- game_name: String(w.machine || "unknown"),
2313
+ game_name: String(R.machine || "unknown"),
2304
2314
  section: n || "Casino"
2305
2315
  }
2306
2316
  });
2307
- const R = re("showIframe"), z = re("loadMachine");
2308
- R == null || R(), z == null || z(w, !1, "CASINO");
2317
+ const z = ie("showIframe"), w = ie("loadMachine");
2318
+ z == null || z(), w == null || w(R, !1, "CASINO");
2309
2319
  }
2310
2320
  }
2311
2321
  ) }),
2312
- onMove: ({ isStart: O, isEnd: B }) => m({ isStart: O, isEnd: B })
2322
+ onMove: ({ isStart: N, isEnd: S }) => d({ isStart: N, isEnd: S })
2313
2323
  }
2314
2324
  )
2315
2325
  ] }) });
2316
2326
  }, lt = (e, n) => {
2317
2327
  var a, o;
2318
2328
  return (o = (a = e.orden) != null ? a : e.machine) != null ? o : n;
2319
- }, Hn = (e, n = !0, a = 1) => {
2329
+ }, Jn = (e, n = !0, a = 1) => {
2320
2330
  const o = e.map((s, g) => {
2321
- var h;
2331
+ var f;
2322
2332
  return {
2323
2333
  id: lt(s, g),
2324
- imageUrl: (h = s.logo) != null ? h : "",
2334
+ imageUrl: (f = s.logo) != null ? f : "",
2325
2335
  ...s.background ? { background: s.background } : {}
2326
2336
  };
2327
2337
  });
2328
2338
  if (!o.length) return [];
2329
2339
  const i = [];
2330
- let r = 0;
2340
+ let l = 0;
2331
2341
  if (n) {
2332
2342
  const s = Math.min(o.length, 1);
2333
2343
  i.push({
2334
2344
  id: "mosaic-0",
2335
2345
  kind: "mosaic",
2336
2346
  items: o.slice(0, s)
2337
- }), r = s;
2347
+ }), l = s;
2338
2348
  }
2339
- for (; r < o.length; ) {
2340
- const s = Math.min(r + a, o.length);
2349
+ for (; l < o.length; ) {
2350
+ const s = Math.min(l + a, o.length);
2341
2351
  i.push({
2342
- id: `grid-${r}`,
2352
+ id: `grid-${l}`,
2343
2353
  kind: "grid",
2344
- items: o.slice(r, s)
2345
- }), r = s;
2354
+ items: o.slice(l, s)
2355
+ }), l = s;
2346
2356
  }
2347
2357
  return i;
2348
- }, Kn = (e = !0, n = 4) => {
2349
- const a = (i) => Array.from({ length: i }, (r, s) => ({ id: `sk-${i}-${s}`, imageUrl: "" })), o = [];
2358
+ }, Xn = (e = !0, n = 4) => {
2359
+ const a = (i) => Array.from({ length: i }, (l, s) => ({ id: `sk-${i}-${s}`, imageUrl: "" })), o = [];
2350
2360
  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 = ({
2361
+ }, Yn = ({
2352
2362
  items: e,
2353
2363
  title: n = "Virtuales",
2354
2364
  iconUrl: a = "/assets/img/home/Virtuales/virtuales.svg",
2355
2365
  onItemClick: o,
2356
2366
  onViewMore: i,
2357
- mosaicFirst: r = !0,
2367
+ mosaicFirst: l = !0,
2358
2368
  gridSize: s = 1
2359
2369
  }) => {
2360
- const g = U(null), [h, b] = D({ isStart: !0, isEnd: !1 }), l = J(), u = X(), m = () => {
2361
- var M;
2362
- l({
2370
+ const g = U(null), [f, b] = D({ isStart: !0, isEnd: !1 }), r = J(), m = X(), d = () => {
2371
+ var B;
2372
+ r({
2363
2373
  element: "virtuales_prev",
2364
- label: `Landing: ${u} - OraculoSeccionVirtuales - Anterior`,
2374
+ label: `Landing: ${m} - OraculoSeccionVirtuales - Anterior`,
2365
2375
  target: "prev",
2366
2376
  event_type: "click",
2367
2377
  module_id: 301,
@@ -2369,12 +2379,12 @@ const Pn = (e, n) => {
2369
2379
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
2370
2380
  },
2371
2381
  tags: { section: "OraculoSeccionVirtuales" }
2372
- }), (M = g.current) == null || M.prev();
2382
+ }), (B = g.current) == null || B.prev();
2373
2383
  }, y = () => {
2374
- var M;
2375
- l({
2384
+ var B;
2385
+ r({
2376
2386
  element: "virtuales_next",
2377
- label: `Landing: ${u} - OraculoSeccionVirtuales - Siguiente`,
2387
+ label: `Landing: ${m} - OraculoSeccionVirtuales - Siguiente`,
2378
2388
  target: "next",
2379
2389
  event_type: "click",
2380
2390
  module_id: 301,
@@ -2382,11 +2392,11 @@ const Pn = (e, n) => {
2382
2392
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
2383
2393
  },
2384
2394
  tags: { section: "OraculoSeccionVirtuales" }
2385
- }), (M = g.current) == null || M.next();
2395
+ }), (B = g.current) == null || B.next();
2386
2396
  }, _ = () => {
2387
- l({
2397
+ r({
2388
2398
  element: "virtuales_view_more",
2389
- label: `Landing: ${u} - OraculoSeccionVirtuales - Ver más`,
2399
+ label: `Landing: ${m} - OraculoSeccionVirtuales - Ver más`,
2390
2400
  target: "https://www.olimpo.bet/juegos-virtuales",
2391
2401
  event_type: "click",
2392
2402
  module_id: 301,
@@ -2395,7 +2405,7 @@ const Pn = (e, n) => {
2395
2405
  },
2396
2406
  tags: { section: "OraculoSeccionVirtuales" }
2397
2407
  }), 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);
2408
+ }, T = !e || e.length === 0, C = T ? Xn(l, s) : Jn(e, l, s);
2399
2409
  return /* @__PURE__ */ t("section", { children: /* @__PURE__ */ p(V, { direction: "column", spacing: 2, useFlexGap: !0, children: [
2400
2410
  /* @__PURE__ */ p(
2401
2411
  L,
@@ -2418,8 +2428,8 @@ const Pn = (e, n) => {
2418
2428
  variant: "secondary",
2419
2429
  iconOnly: !0,
2420
2430
  leftIcon: /* @__PURE__ */ t(Ze, {}),
2421
- onClick: m,
2422
- disabled: h.isStart
2431
+ onClick: d,
2432
+ disabled: f.isStart
2423
2433
  }
2424
2434
  ),
2425
2435
  /* @__PURE__ */ t(
@@ -2430,7 +2440,7 @@ const Pn = (e, n) => {
2430
2440
  iconOnly: !0,
2431
2441
  rightIcon: /* @__PURE__ */ t(Je, {}),
2432
2442
  onClick: y,
2433
- disabled: h.isEnd
2443
+ disabled: f.isEnd
2434
2444
  }
2435
2445
  )
2436
2446
  ] }),
@@ -2453,48 +2463,48 @@ const Pn = (e, n) => {
2453
2463
  enableHorizontalWheel: !0,
2454
2464
  showRightGradient: !0,
2455
2465
  options: { autoWidth: !0, trimSpace: "move" },
2456
- renderItem: (M) => /* @__PURE__ */ t("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ t(
2466
+ renderItem: (B) => /* @__PURE__ */ t("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ t(
2457
2467
  tt,
2458
2468
  {
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)
2469
+ items: B.items,
2470
+ layout: B.kind === "mosaic" ? "mosaic" : "grid",
2471
+ loading: T,
2472
+ onClick: ($) => {
2473
+ if (T) return;
2474
+ const O = e.find(
2475
+ (N, S) => String(lt(N, S)) === String($.id)
2466
2476
  );
2467
- if (!E) {
2477
+ if (!O) {
2468
2478
  console.warn(
2469
2479
  "[virtuales] no se encontró game para id:",
2470
- N.id
2480
+ $.id
2471
2481
  );
2472
2482
  return;
2473
2483
  }
2474
- l({
2484
+ r({
2475
2485
  element: "virtuales_game_card",
2476
- label: `Landing: ${u} - OraculoSeccionVirtuales - Open game: ${String(E.machine || "unknown")}`,
2477
- target: String(E.machine || "unknown"),
2486
+ label: `Landing: ${m} - OraculoSeccionVirtuales - Open game: ${String(O.machine || "unknown")}`,
2487
+ target: String(O.machine || "unknown"),
2478
2488
  event_type: "click",
2479
2489
  module_id: 301,
2480
2490
  metadata: {
2481
2491
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
2482
2492
  },
2483
2493
  tags: {
2484
- game_name: String(E.machine || "unknown"),
2494
+ game_name: String(O.machine || "unknown"),
2485
2495
  section: "OraculoSeccionVirtuales"
2486
2496
  }
2487
2497
  });
2488
- const A = re("showIframe"), O = re("loadMachine");
2489
- A == null || A(), O == null || O(E, !1, "VIRTUALES");
2498
+ const A = ie("showIframe"), M = ie("loadMachine");
2499
+ A == null || A(), M == null || M(O, !1, "VIRTUALES");
2490
2500
  }
2491
2501
  }
2492
2502
  ) }),
2493
- onMove: ({ isStart: M, isEnd: N }) => b({ isStart: M, isEnd: N })
2503
+ onMove: ({ isStart: B, isEnd: $ }) => b({ isStart: B, isEnd: $ })
2494
2504
  }
2495
2505
  )
2496
2506
  ] }) });
2497
- }, Jn = (e) => ({
2507
+ }, Qn = (e) => ({
2498
2508
  position: "relative",
2499
2509
  py: 8,
2500
2510
  color: "#fff",
@@ -2526,92 +2536,92 @@ const Pn = (e, n) => {
2526
2536
  0 0 6px rgba(255, 255, 255, .6),
2527
2537
  0 1px 0 rgba(137, 137, 137, .85)
2528
2538
  `
2529
- }, Xn = ({
2539
+ }, ea = ({
2530
2540
  headline: e,
2531
2541
  headline2: n,
2532
2542
  items: a,
2533
2543
  backgroundImageUrl: o
2534
2544
  }) => {
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 });
2545
+ 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
2546
  K(() => {
2537
- const S = setTimeout(() => {
2538
- l.current = !0;
2547
+ const w = setTimeout(() => {
2548
+ r.current = !0;
2539
2549
  }, 500);
2540
- return () => clearTimeout(S);
2550
+ return () => clearTimeout(w);
2541
2551
  }, []);
2542
2552
  const C = U(_);
2543
2553
  K(() => {
2544
2554
  C.current = _;
2545
2555
  }, [_]);
2546
- const M = U(!1), N = U(null), E = a == null ? void 0 : a[m], A = Q(
2556
+ const B = U(!1), $ = U(null), O = a == null ? void 0 : a[d], A = Q(
2547
2557
  () => {
2548
- var S, T;
2549
- return (T = (S = E == null ? void 0 : E.backgroundImageUrl) != null ? S : o) != null ? T : "";
2558
+ var w, I;
2559
+ return (I = (w = O == null ? void 0 : O.backgroundImageUrl) != null ? w : o) != null ? I : "";
2550
2560
  },
2551
- [E, o]
2552
- ), O = Jn(A), B = !a || a.length === 0, w = (S, T) => {
2561
+ [O, o]
2562
+ ), M = Qn(A), N = !a || a.length === 0, S = (w, I) => {
2553
2563
  i({
2554
2564
  element: "welcome_banner_button",
2555
- label: `OraculoSeccionBonoBienvenida - Banner button click: ${S.title || "OraculoSeccionBonoBienvenida - Banner " + (T + 1)}`,
2565
+ label: `OraculoSeccionBonoBienvenida - Banner button click: ${w.title || "OraculoSeccionBonoBienvenida - Banner " + (I + 1)}`,
2556
2566
  target: "action",
2557
2567
  event_type: "click",
2558
2568
  module_id: 301,
2559
2569
  metadata: {
2560
2570
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
2561
- banner_position: T + 1,
2571
+ banner_position: I + 1,
2562
2572
  banner_total: (a == null ? void 0 : a.length) || 0
2563
2573
  },
2564
2574
  tags: {
2565
- banner_title: S.title || "no_title",
2566
- button_text: S.buttonText || "no_text"
2575
+ banner_title: w.title || "no_title",
2576
+ button_text: w.buttonText || "no_text"
2567
2577
  }
2568
- }), S.onButtonClick && S.onButtonClick();
2569
- }, R = (S) => {
2570
- if (!l.current) return;
2571
- if (u.current) {
2572
- u.current = !1;
2578
+ }), w.onButtonClick && w.onButtonClick();
2579
+ }, R = (w) => {
2580
+ if (!r.current) return;
2581
+ if (m.current) {
2582
+ m.current = !1;
2573
2583
  return;
2574
2584
  }
2575
- const T = a == null ? void 0 : a[S];
2585
+ const I = a == null ? void 0 : a[w];
2576
2586
  i({
2577
2587
  element: "welcome_banner_carousel",
2578
- label: `Landing: ${r} - OraculoSeccionBonoBienvenida - Banner view: ${(T == null ? void 0 : T.title) || "OraculoSeccionBonoBienvenida - Banner " + (S + 1)}`,
2588
+ label: `Landing: ${l} - OraculoSeccionBonoBienvenida - Banner view: ${(I == null ? void 0 : I.title) || "OraculoSeccionBonoBienvenida - Banner " + (w + 1)}`,
2579
2589
  target: "no_url",
2580
2590
  event_type: "view",
2581
2591
  module_id: 301,
2582
2592
  metadata: {
2583
2593
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
2584
- slide_index: S + 1,
2594
+ slide_index: w + 1,
2585
2595
  total_slides: (a == null ? void 0 : a.length) || 0,
2586
2596
  interaction_type: "manual_slide"
2587
2597
  },
2588
2598
  tags: {
2589
- banner_position: String(S + 1),
2590
- banner_title: (T == null ? void 0 : T.title) || "no_title"
2599
+ banner_position: String(w + 1),
2600
+ banner_title: (I == null ? void 0 : I.title) || "no_title"
2591
2601
  }
2592
2602
  });
2593
2603
  };
2594
2604
  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));
2605
+ const w = b.current;
2606
+ if (!w) return;
2607
+ const I = 6, F = 380, h = (c) => {
2608
+ var E, k;
2609
+ if (N || c.ctrlKey || B.current) return;
2610
+ const u = c.deltaX, v = c.deltaY;
2611
+ if (Math.abs(u) <= Math.abs(v) || Math.abs(u) < I) return;
2612
+ const x = u > 0;
2613
+ 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(() => {
2614
+ B.current = !1;
2615
+ }, F));
2606
2616
  };
2607
- return S.addEventListener("wheel", f, { passive: !1 }), () => {
2608
- S.removeEventListener("wheel", f), N.current && window.clearTimeout(N.current);
2617
+ return w.addEventListener("wheel", h, { passive: !1 }), () => {
2618
+ w.removeEventListener("wheel", h), $.current && window.clearTimeout($.current);
2609
2619
  };
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(
2620
+ }, [N]);
2621
+ const z = (w, I, F) => {
2622
+ var u, v;
2623
+ const h = (u = w.headline) != null ? u : e, c = (v = w.headline2) != null ? v : n;
2624
+ return I ? /* @__PURE__ */ p(
2615
2625
  L,
2616
2626
  {
2617
2627
  sx: {
@@ -2624,7 +2634,7 @@ const Pn = (e, n) => {
2624
2634
  columnGap: 6
2625
2635
  },
2626
2636
  children: [
2627
- (f || c) && /* @__PURE__ */ t(
2637
+ (h || c) && /* @__PURE__ */ t(
2628
2638
  L,
2629
2639
  {
2630
2640
  sx: {
@@ -2634,7 +2644,7 @@ const Pn = (e, n) => {
2634
2644
  minHeight: "100%"
2635
2645
  },
2636
2646
  children: /* @__PURE__ */ p(L, { sx: { ...Ue, textAlign: "left", mb: 0 }, children: [
2637
- f && /* @__PURE__ */ t(ae, { component: "span", sx: qe, children: f }),
2647
+ h && /* @__PURE__ */ t(ae, { component: "span", sx: qe, children: h }),
2638
2648
  c && /* @__PURE__ */ p(ee, { children: [
2639
2649
  /* @__PURE__ */ t("br", {}),
2640
2650
  /* @__PURE__ */ t(ae, { component: "span", sx: Ve, children: c })
@@ -2645,16 +2655,16 @@ const Pn = (e, n) => {
2645
2655
  /* @__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
2656
  Fe,
2647
2657
  {
2648
- ...S,
2649
- onButtonClick: () => w(S, P),
2658
+ ...w,
2659
+ onButtonClick: () => S(w, F),
2650
2660
  variant: "large"
2651
2661
  }
2652
2662
  ) }) })
2653
2663
  ]
2654
2664
  }
2655
2665
  ) : /* @__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 }),
2666
+ (h || c) && /* @__PURE__ */ p(L, { sx: Ue, children: [
2667
+ h && /* @__PURE__ */ t(ae, { component: "span", sx: qe, children: h }),
2658
2668
  c && /* @__PURE__ */ p(ee, { children: [
2659
2669
  /* @__PURE__ */ t("br", {}),
2660
2670
  /* @__PURE__ */ t(ae, { component: "span", sx: Ve, children: c })
@@ -2663,18 +2673,18 @@ const Pn = (e, n) => {
2663
2673
  /* @__PURE__ */ t(L, { sx: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(
2664
2674
  Fe,
2665
2675
  {
2666
- ...S,
2667
- onButtonClick: () => w(S, P),
2676
+ ...w,
2677
+ onButtonClick: () => S(w, F),
2668
2678
  variant: "small"
2669
2679
  }
2670
2680
  ) })
2671
2681
  ] });
2672
2682
  };
2673
- return /* @__PURE__ */ p(L, { component: "section", sx: O, children: [
2683
+ return /* @__PURE__ */ p(L, { component: "section", sx: M, children: [
2674
2684
  /* @__PURE__ */ t("div", { ref: b, style: { width: "100%" }, children: /* @__PURE__ */ t(
2675
2685
  se,
2676
2686
  {
2677
- ref: h,
2687
+ ref: f,
2678
2688
  items: a,
2679
2689
  perPage: 1,
2680
2690
  gap: "0px",
@@ -2688,9 +2698,9 @@ const Pn = (e, n) => {
2688
2698
  // arrows: false,
2689
2699
  // drag: true,
2690
2700
  },
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);
2701
+ renderItem: (w, I) => /* @__PURE__ */ t(L, { sx: { width: "100%" }, children: z(w, !s, I) }),
2702
+ onMove: ({ index: w, isStart: I, isEnd: F }) => {
2703
+ y(w), typeof I == "boolean" && typeof F == "boolean" && T({ isStart: I, isEnd: F }), R(w);
2694
2704
  }
2695
2705
  }
2696
2706
  ) }),
@@ -2698,41 +2708,41 @@ const Pn = (e, n) => {
2698
2708
  Xe,
2699
2709
  {
2700
2710
  total: a.length,
2701
- active: m,
2702
- onSelect: (S) => {
2703
- var T;
2711
+ active: d,
2712
+ onSelect: (w) => {
2713
+ var I;
2704
2714
  i({
2705
2715
  element: "welcome_banner_dots",
2706
- label: `Landing: ${r} - OraculoSeccionBonoBienvenida - Dot navigation: Banner ${S + 1}`,
2716
+ label: `Landing: ${l} - OraculoSeccionBonoBienvenida - Dot navigation: Banner ${w + 1}`,
2707
2717
  target: "no_url",
2708
2718
  event_type: "click",
2709
2719
  module_id: 301,
2710
2720
  metadata: {
2711
2721
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
2712
- dot_index: S + 1,
2722
+ dot_index: w + 1,
2713
2723
  total_dots: a.length
2714
2724
  },
2715
2725
  tags: {
2716
2726
  navigation_type: "dot_click"
2717
2727
  }
2718
- }), y(S), (T = h.current) == null || T.go(S);
2728
+ }), y(w), (I = f.current) == null || I.go(w);
2719
2729
  }
2720
2730
  }
2721
2731
  ) })
2722
2732
  ] });
2723
- }, Yn = ({
2733
+ }, ta = ({
2724
2734
  className: e = "",
2725
2735
  fullBleed: n = !0,
2726
2736
  items: a,
2727
2737
  selectedIndex: o = 0,
2728
2738
  ariaLabel: i
2729
2739
  }) => {
2730
- const r = U(null), s = U(null), g = J(), h = X();
2740
+ const l = U(null), s = U(null), g = J(), f = X();
2731
2741
  if (!a) return null;
2732
2742
  const b = () => {
2733
2743
  g({
2734
2744
  element: "club_olimpo_button",
2735
- label: `Landing: ${h} - OraculoSeccionClubOlimpo - Click: Club Olimpo`,
2745
+ label: `Landing: ${f} - OraculoSeccionClubOlimpo - Click: Club Olimpo`,
2736
2746
  target: "https://www.olimpo.bet/conoce-club-olimpo",
2737
2747
  event_type: "click",
2738
2748
  module_id: 301,
@@ -2741,18 +2751,18 @@ const Pn = (e, n) => {
2741
2751
  },
2742
2752
  tags: { section: "OraculoSeccionClubOlimpo" }
2743
2753
  }), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/conoce-club-olimpo");
2744
- }, l = Array.isArray(a) ? a[o] : a;
2754
+ }, r = Array.isArray(a) ? a[o] : a;
2745
2755
  gt(() => {
2746
- if (!r.current || !s.current || typeof ResizeObserver == "undefined") return;
2747
- const m = r.current, y = s.current, _ = () => {
2748
- m.style.setProperty(
2756
+ if (!l.current || !s.current || typeof ResizeObserver == "undefined") return;
2757
+ const d = l.current, y = s.current, _ = () => {
2758
+ d.style.setProperty(
2749
2759
  "--orc-co-bottomH",
2750
2760
  `${y.offsetHeight + 16}px`
2751
2761
  );
2752
- }, k = new ResizeObserver(_);
2753
- return k.observe(y), _(), () => k.disconnect();
2762
+ }, T = new ResizeObserver(_);
2763
+ return T.observe(y), _(), () => T.disconnect();
2754
2764
  }, []);
2755
- const u = [
2765
+ const m = [
2756
2766
  "orc-co-wrap",
2757
2767
  n ? "orc-co-fullBleed" : "",
2758
2768
  e
@@ -2760,55 +2770,55 @@ const Pn = (e, n) => {
2760
2770
  return /* @__PURE__ */ t(
2761
2771
  "section",
2762
2772
  {
2763
- ref: r,
2764
- className: u,
2765
- "aria-label": i || l.imgAlt || "Club Olimpo",
2773
+ ref: l,
2774
+ className: m,
2775
+ "aria-label": i || r.imgAlt || "Club Olimpo",
2766
2776
  children: /* @__PURE__ */ t("div", { ref: s, children: /* @__PURE__ */ t(
2767
2777
  ln,
2768
2778
  {
2769
- text: l.text,
2779
+ text: r.text,
2770
2780
  onClick: b,
2771
- imgAlt: l.imgAlt,
2772
- buttonLabel: l.buttonLabel,
2773
- imgSrcMobile: l.imgMobile,
2774
- imgSrcDesktopBg: l.imgDesktopBg,
2775
- imgSrcDesktopLogo: l.imgDesktopLogo
2781
+ imgAlt: r.imgAlt,
2782
+ buttonLabel: r.buttonLabel,
2783
+ imgSrcMobile: r.imgMobile,
2784
+ imgSrcDesktopBg: r.imgDesktopBg,
2785
+ imgSrcDesktopLogo: r.imgDesktopLogo
2776
2786
  }
2777
2787
  ) })
2778
2788
  }
2779
2789
  );
2780
- }, Qn = "oraculo__OraculoSeccionEventoCombinadas-module__controls___Zsta4", ea = "oraculo__OraculoSeccionEventoCombinadas-module__padding___vf-yF", De = {
2781
- controls: Qn,
2782
- padding: ea
2783
- }, ta = (e) => {
2790
+ }, na = "oraculo__OraculoSeccionEventoCombinadas-module__controls___Zsta4", aa = "oraculo__OraculoSeccionEventoCombinadas-module__padding___vf-yF", De = {
2791
+ controls: na,
2792
+ padding: aa
2793
+ }, oa = (e) => {
2784
2794
  var n, a;
2785
2795
  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 : [];
2796
+ var i, l;
2797
+ return (l = (i = o.outcomes) == null ? void 0 : i.map((s) => s.id)) != null ? l : [];
2788
2798
  }) : [];
2789
2799
  };
2790
- function na(e, n, a) {
2800
+ function ia(e, n, a) {
2791
2801
  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 }));
2802
+ var r, m;
2803
+ 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 = {};
2804
+ for (const d of n) {
2805
+ if (!l.has(d.eventId)) continue;
2806
+ const y = d.outcomes.filter((_) => s.has(_.id)).map((_) => ({ ..._, position: g.get(_.id) }));
2807
+ y.length && ((m = f[r = d.eventId]) != null || (f[r] = []), f[d.eventId].push({ ...d, outcomes: y }));
2798
2808
  }
2799
- const b = e.filter((m) => r.has(m.id)).map((m) => {
2809
+ const b = e.filter((d) => l.has(d.id)).map((d) => {
2800
2810
  var y;
2801
- return { ...m, betoffers: (y = h[m.id]) != null ? y : [] };
2811
+ return { ...d, betoffers: (y = f[d.id]) != null ? y : [] };
2802
2812
  });
2803
2813
  return {
2804
2814
  couponId: o.id,
2805
2815
  status: o.status,
2806
- combinadoTotal: aa(o.prePackCouponRows),
2816
+ combinadoTotal: ra(o.prePackCouponRows),
2807
2817
  events: b
2808
2818
  };
2809
2819
  }) : [];
2810
2820
  }
2811
- function aa(e) {
2821
+ function ra(e) {
2812
2822
  if (!Array.isArray(e) || e.length === 0) return 0;
2813
2823
  let n = 1;
2814
2824
  for (const a of e) {
@@ -2817,17 +2827,17 @@ function aa(e) {
2817
2827
  }
2818
2828
  return Math.floor(n * 100) / 100;
2819
2829
  }
2820
- const oa = de.memo(yn);
2821
- function ia({
2830
+ const la = de.memo(yn);
2831
+ function sa({
2822
2832
  items: e,
2823
2833
  title: n = "Combinadas del Olimpo",
2824
2834
  iconUrl: a = "https://stg-www.contodobet.com/static/img/landing/EventoCombinada/rayoIcon.svg",
2825
2835
  onViewMore: o,
2826
2836
  className: i = ""
2827
2837
  }) {
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({
2838
+ 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 = () => {
2839
+ var O;
2840
+ l({
2831
2841
  element: "evento_combinadas_prev",
2832
2842
  label: `Landing: ${s} - OraculoSeccionEventoCombinadas - Click: Anterior`,
2833
2843
  event_type: "click",
@@ -2836,10 +2846,10 @@ function ia({
2836
2846
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
2837
2847
  },
2838
2848
  tags: { section: "OraculoSeccionEventoCombinadas" }
2839
- }), (E = g.current) == null || E.prev();
2849
+ }), (O = g.current) == null || O.prev();
2840
2850
  }, _ = () => {
2841
- var E;
2842
- r({
2851
+ var O;
2852
+ l({
2843
2853
  element: "evento_combinadas_next",
2844
2854
  label: `Landing: ${s} - OraculoSeccionEventoCombinadas - Click: Siguiente`,
2845
2855
  event_type: "click",
@@ -2848,9 +2858,9 @@ function ia({
2848
2858
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
2849
2859
  },
2850
2860
  tags: { section: "OraculoSeccionEventoCombinadas" }
2851
- }), (E = g.current) == null || E.next();
2852
- }, k = () => {
2853
- r({
2861
+ }), (O = g.current) == null || O.next();
2862
+ }, T = () => {
2863
+ l({
2854
2864
  element: "evento_combinadas_ver_mas",
2855
2865
  label: `Landing: ${s} - OraculoSeccionEventoCombinadas - Click: Ver más`,
2856
2866
  event_type: "click",
@@ -2860,26 +2870,26 @@ function ia({
2860
2870
  },
2861
2871
  tags: { section: "OraculoSeccionEventoCombinadas" }
2862
2872
  }), _n();
2863
- }, C = Q(() => l.filter((E) => E.combinadoTotal !== null), [l]);
2864
- async function M() {
2865
- var E, A, O;
2873
+ }, C = Q(() => r.filter((O) => O.combinadoTotal !== null), [r]);
2874
+ async function B() {
2875
+ var O, A, M;
2866
2876
  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;
2877
+ 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
2878
  if (!R) {
2869
2879
  console.error("Could not extract group ID");
2870
2880
  return;
2871
2881
  }
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);
2882
+ 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();
2883
+ m(ia(I.events, I.betOffers, I.prePackCoupons));
2884
+ } catch (N) {
2885
+ console.error("loadDataEventSpecial error:", N);
2876
2886
  }
2877
2887
  }
2878
2888
  K(() => {
2879
- M();
2889
+ B();
2880
2890
  }, []);
2881
- const N = i || void 0;
2882
- return C.length === 0 ? null : /* @__PURE__ */ t("section", { className: N, style: {
2891
+ const $ = i || void 0;
2892
+ return C.length === 0 ? null : /* @__PURE__ */ t("section", { className: $, style: {
2883
2893
  // paddingLeft: 16,
2884
2894
  // paddingRight: 16,
2885
2895
  width: "100%",
@@ -2897,7 +2907,7 @@ function ia({
2897
2907
  iconOnly: !0,
2898
2908
  leftIcon: /* @__PURE__ */ t(Ee, {}),
2899
2909
  onClick: y,
2900
- disabled: h.isStart
2910
+ disabled: f.isStart
2901
2911
  }
2902
2912
  ),
2903
2913
  /* @__PURE__ */ t(
@@ -2908,11 +2918,11 @@ function ia({
2908
2918
  iconOnly: !0,
2909
2919
  rightIcon: /* @__PURE__ */ t(Ie, {}),
2910
2920
  onClick: _,
2911
- disabled: h.isEnd
2921
+ disabled: f.isEnd
2912
2922
  }
2913
2923
  )
2914
2924
  ] }),
2915
- /* @__PURE__ */ t(W, { variant: "secondary", onClick: k, children: "Ver más" })
2925
+ /* @__PURE__ */ t(W, { variant: "secondary", onClick: T, children: "Ver más" })
2916
2926
  ] })
2917
2927
  ] }) }),
2918
2928
  /* @__PURE__ */ t(
@@ -2929,13 +2939,13 @@ function ia({
2929
2939
  breakpoints: {
2930
2940
  768: { perPage: 1.2, gap: "12px", padding: { left: "24px", right: "24px" } }
2931
2941
  },
2932
- renderItem: (E) => /* @__PURE__ */ t(oa, { coupon: E }),
2933
- onMove: ({ isStart: E, isEnd: A }) => b({ isStart: E, isEnd: A })
2942
+ renderItem: (O) => /* @__PURE__ */ t(la, { coupon: O }),
2943
+ onMove: ({ isStart: O, isEnd: A }) => b({ isStart: O, isEnd: A })
2934
2944
  }
2935
2945
  )
2936
2946
  ] }) });
2937
2947
  }
2938
- function ra({}) {
2948
+ function ca({}) {
2939
2949
  return /* @__PURE__ */ t(
2940
2950
  "div",
2941
2951
  {
@@ -2969,33 +2979,33 @@ function ra({}) {
2969
2979
  }
2970
2980
  );
2971
2981
  }
2972
- const la = "oraculo__FadeItemWrapper-module__fadeWrapper___kFOH4", sa = {
2973
- fadeWrapper: la
2982
+ const da = "oraculo__FadeItemWrapper-module__fadeWrapper___kFOH4", ua = {
2983
+ fadeWrapper: da
2974
2984
  };
2975
2985
  function Oe({ children: e }) {
2976
- return /* @__PURE__ */ t("div", { className: sa.fadeWrapper, children: e });
2986
+ return /* @__PURE__ */ t("div", { className: ua.fadeWrapper, children: e });
2977
2987
  }
2978
- const ca = "oraculo__OraculoSeccionEventoEnVivo-module__padding___Sh8tD", da = {
2979
- padding: ca
2980
- }, ua = (e) => {
2988
+ const ma = "oraculo__OraculoSeccionEventoEnVivo-module__padding___Sh8tD", pa = {
2989
+ padding: ma
2990
+ }, ga = (e) => {
2981
2991
  const n = ["esports", "cyber"];
2982
2992
  return e.filter((a) => {
2983
2993
  var i;
2984
2994
  if (a.event.sport !== "FOOTBALL") return !1;
2985
2995
  const o = ((i = a.event.group) == null ? void 0 : i.toLowerCase()) || "";
2986
- return !n.some((r) => o.includes(r));
2996
+ return !n.some((l) => o.includes(l));
2987
2997
  });
2988
- }, ma = de.memo(On);
2989
- function pa({
2998
+ }, fa = de.memo(On);
2999
+ function ha({
2990
3000
  items: e,
2991
3001
  title: n = "En vivo",
2992
3002
  iconUrl: a = "https://stg-www.contodobet.com/static/img/landing/EventoEnVivo/icon.svg",
2993
3003
  onViewMore: o,
2994
3004
  className: i = ""
2995
3005
  }) {
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({
3006
+ 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 = () => {
3007
+ var u;
3008
+ O({
2999
3009
  element: "evento_en_vivo_prev",
3000
3010
  label: `Landing: ${A} - OraculoSeccionEventoEnVivo - Anterior`,
3001
3011
  target: "prev",
@@ -3005,10 +3015,10 @@ function pa({
3005
3015
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
3006
3016
  },
3007
3017
  tags: { section: "OraculoSeccionEventoEnVivo" }
3008
- }), (d = s.current) == null || d.prev();
3018
+ }), (u = s.current) == null || u.prev();
3009
3019
  }, z = () => {
3010
- var d;
3011
- E({
3020
+ var u;
3021
+ O({
3012
3022
  element: "evento_en_vivo_next",
3013
3023
  label: `Landing: ${A} - OraculoSeccionEventoEnVivo - Siguiente`,
3014
3024
  target: "next",
@@ -3018,9 +3028,9 @@ function pa({
3018
3028
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
3019
3029
  },
3020
3030
  tags: { section: "OraculoSeccionEventoEnVivo" }
3021
- }), (d = s.current) == null || d.next();
3022
- }, S = () => {
3023
- E({
3031
+ }), (u = s.current) == null || u.next();
3032
+ }, w = () => {
3033
+ O({
3024
3034
  element: "evento_en_vivo_view_more",
3025
3035
  label: `Landing: ${A} - OraculoSeccionEventoEnVivo - Ver más`,
3026
3036
  target: "ver_mas",
@@ -3031,67 +3041,67 @@ function pa({
3031
3041
  },
3032
3042
  tags: { section: "OraculoSeccionEventoEnVivo" }
3033
3043
  }), bn();
3034
- }, T = _e(async () => {
3035
- var d;
3044
+ }, I = _e(async () => {
3045
+ var u;
3036
3046
  try {
3037
- if (!N.current) {
3038
- N.current = !0;
3047
+ if (!$.current) {
3048
+ $.current = !0;
3039
3049
  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", $);
3050
+ 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();
3051
+ H.forEach((G, Y) => j.set(String(G), Y)), M.current = j;
3052
+ } catch (k) {
3053
+ console.error("Order fetch failed, using default sorting", k);
3044
3054
  }
3045
3055
  }
3046
- const v = await fetch(r);
3056
+ const v = await fetch(l);
3047
3057
  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);
3058
+ const x = await v.json(), E = ga(x.events);
3059
+ if (M.current.size === 0)
3060
+ r(E);
3051
3061
  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));
3062
+ const k = [...E].sort((P, H) => {
3063
+ const j = M.current.get(String(P.event.id)), G = M.current.get(String(H.event.id));
3054
3064
  return (j !== void 0 ? j : 1 / 0) - (G !== void 0 ? G : 1 / 0);
3055
3065
  });
3056
- l($);
3066
+ r(k);
3057
3067
  }
3058
3068
  } catch (v) {
3059
3069
  console.error("LoadData Error:", v);
3060
3070
  }
3061
3071
  }, []);
3062
3072
  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)
3073
+ I();
3074
+ const u = setInterval(I, 2e4);
3075
+ return () => clearInterval(u);
3076
+ }, [I]), K(() => {
3077
+ if (N.start === null || N.end === null || !(b != null && b.length) || T.current)
3068
3078
  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
3079
+ 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) => {
3080
+ var P;
3081
+ return (P = k == null ? void 0 : k.event) == null ? void 0 : P.id;
3082
+ }).filter((k) => k && !S.current.has(k));
3083
+ E.length !== 0 && (E.forEach((k) => S.current.add(k)), T.current = !0, nt(E).then((k) => {
3084
+ k != null && k.events && d((P) => ({
3085
+ ...P,
3086
+ ...k.events
3077
3087
  }));
3078
- }).catch(($) => {
3079
- console.error("Jersey fetch error", $), I.forEach((F) => w.current.delete(F));
3088
+ }).catch((k) => {
3089
+ console.error("Jersey fetch error", k), E.forEach((P) => S.current.delete(P));
3080
3090
  }).finally(() => {
3081
- k.current = !1;
3091
+ T.current = !1;
3082
3092
  }));
3083
- }, [B, b]);
3084
- const P = i || void 0, f = b === null;
3085
- if (!f && b.length === 0)
3093
+ }, [N, b]);
3094
+ const F = i || void 0, h = b === null;
3095
+ if (!h && b.length === 0)
3086
3096
  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: {
3097
+ const c = Q(() => h ? Array(4).fill({}) : (b == null ? void 0 : b.slice(0, 20)) || [], [h, b]);
3098
+ return /* @__PURE__ */ t("section", { className: F, style: {
3089
3099
  // paddingLeft: 16,
3090
3100
  // paddingRight: 16,
3091
3101
  width: "100%",
3092
3102
  boxSizing: "border-box"
3093
3103
  }, 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: [
3104
+ /* @__PURE__ */ t("div", { className: pa.padding, children: /* @__PURE__ */ p(oe, { spacing: 1.5, columns: "1fr auto ", justify: "start", children: [
3095
3105
  /* @__PURE__ */ t(le, { title: n, iconUrl: a, size: "md" }),
3096
3106
  /* @__PURE__ */ p("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
3097
3107
  /* @__PURE__ */ p(oe, { spacing: 1, columns: "auto auto", children: [
@@ -3118,7 +3128,7 @@ function pa({
3118
3128
  }
3119
3129
  )
3120
3130
  ] }),
3121
- /* @__PURE__ */ t(W, { variant: "secondary", onClick: S, children: "Ver más" })
3131
+ /* @__PURE__ */ t(W, { variant: "secondary", onClick: w, children: "Ver más" })
3122
3132
  ] })
3123
3133
  ] }) }),
3124
3134
  /* @__PURE__ */ t(
@@ -3136,27 +3146,27 @@ function pa({
3136
3146
  768: { gap: "8px", focus: "center", padding: { left: "24px", right: "24px" } },
3137
3147
  1024: { gap: "10px", focus: "center", padding: { left: "24px", right: "24px" } }
3138
3148
  },
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,
3149
+ renderItem: (u) => {
3150
+ var E;
3151
+ const v = ((E = u.event) == null ? void 0 : E.id) || u.eventId, x = v in m ? m[v] : void 0;
3152
+ return h ? /* @__PURE__ */ t(Oe, { children: /* @__PURE__ */ t(ca, {}) }) : /* @__PURE__ */ t(Oe, { children: /* @__PURE__ */ t(
3153
+ fa,
3144
3154
  {
3145
- ...d,
3155
+ ...u,
3146
3156
  jersey: x
3147
3157
  }
3148
3158
  ) });
3149
3159
  },
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 });
3160
+ onMove: ({ isStart: u, isEnd: v, visibleStart: x, visibleEnd: E }) => {
3161
+ f(
3162
+ (k) => k.isStart === u && k.isEnd === v ? k : { isStart: u, isEnd: v }
3163
+ ), _({ start: x, end: E });
3154
3164
  }
3155
3165
  }
3156
3166
  )
3157
3167
  ] }) });
3158
3168
  }
3159
- function ga() {
3169
+ function ba() {
3160
3170
  return /* @__PURE__ */ p("div", { className: ce.cardContainer, children: [
3161
3171
  /* @__PURE__ */ t(Qe, { title: "" }),
3162
3172
  /* @__PURE__ */ t("div", { className: ce.cardBackground, children: /* @__PURE__ */ p(V, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
@@ -3184,30 +3194,30 @@ function ga() {
3184
3194
  ] }) })
3185
3195
  ] });
3186
3196
  }
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) {
3197
+ 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 = {
3198
+ wrapper: va,
3199
+ container: _a,
3200
+ buttonWrapper: ya,
3201
+ padding: xa
3202
+ }, wa = de.memo(Bn);
3203
+ async function Sa(e, n = 2, a) {
3194
3204
  const o = [];
3195
3205
  for (let i = 0; i < e.length; i += n) {
3196
3206
  if (a.aborted)
3197
3207
  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()))
3208
+ const l = e.slice(i, i + n), s = await Promise.all(
3209
+ l.map((g) => fetch(g, { signal: a }).then((f) => f.json()))
3200
3210
  );
3201
3211
  o.push(...s);
3202
3212
  }
3203
3213
  return o;
3204
3214
  }
3205
- function xa(e) {
3215
+ function Ca(e) {
3206
3216
  return [...e].sort(
3207
3217
  (n, a) => new Date(n.start).getTime() - new Date(a.start).getTime()
3208
3218
  );
3209
3219
  }
3210
- function wa(e) {
3220
+ function Oa(e) {
3211
3221
  const n = /* @__PURE__ */ new Date(), a = new Date(n.getTime() + 480 * 60 * 60 * 1e3);
3212
3222
  return e.filter((o) => {
3213
3223
  if (!o.start) return !1;
@@ -3215,29 +3225,29 @@ function wa(e) {
3215
3225
  return i >= n && i <= a;
3216
3226
  });
3217
3227
  }
3218
- function Sa(e, n) {
3228
+ function Ea(e, n) {
3219
3229
  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), {});
3230
+ var l;
3231
+ return ((l = i.betOfferType) == null ? void 0 : l.id) === 2;
3232
+ }).reduce((i, l) => (i[l.eventId] || (i[l.eventId] = []), i[l.eventId].push(l), i), {});
3223
3233
  return e.filter((i) => o[i.id]).map((i) => ({
3224
3234
  ...i,
3225
3235
  outcome: o[i.id]
3226
3236
  }));
3227
3237
  }
3228
- function Ca({
3238
+ function Ia({
3229
3239
  items: e,
3230
3240
  title: n = "En vivo",
3231
3241
  iconUrl: a,
3232
3242
  onViewMore: o,
3233
3243
  className: i = ""
3234
3244
  }) {
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);
3245
+ 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
3246
  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]);
3247
+ 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);
3248
+ Q(() => m === null ? Array(6).fill({}) : m.slice(0, 20), [m]);
3239
3249
  const A = () => {
3240
- r({
3250
+ l({
3241
3251
  element: "evento_semana_view_more",
3242
3252
  label: `Landing: ${s} - OraculoSeccionEventoSemana - Ver más`,
3243
3253
  target: "ver_mas",
@@ -3249,120 +3259,120 @@ function Ca({
3249
3259
  tags: { section: "OraculoSeccionEventoSemana" }
3250
3260
  }), vn();
3251
3261
  };
3252
- async function O(S) {
3253
- var f, c;
3254
- let T = [], P = [];
3262
+ async function M(w) {
3263
+ var h, c;
3264
+ let I = [], F = [];
3255
3265
  try {
3256
- const d = await fetch(
3266
+ const u = await fetch(
3257
3267
  "https://api.mktolimpo.com/api/kambi/eventos/orden",
3258
- { signal: S }
3268
+ { signal: w }
3259
3269
  );
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) || [];
3270
+ if (u.ok) {
3271
+ const v = await u.json();
3272
+ 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
3273
  }
3264
- } catch (d) {
3265
- d.name !== "AbortError" && console.warn("Order API not available, using default group order");
3274
+ } catch (u) {
3275
+ u.name !== "AbortError" && console.warn("Order API not available, using default group order");
3266
3276
  return;
3267
3277
  }
3268
3278
  try {
3269
- const x = (await (await fetch(g, { signal: S })).json()).group.groups.find(
3279
+ const x = (await (await fetch(g, { signal: w })).json()).group.groups.find(
3270
3280
  (G) => G.englishName === "Football"
3271
3281
  );
3272
3282
  if (!x || !Array.isArray(x.groups)) {
3273
3283
  console.error("Football groups not found");
3274
3284
  return;
3275
3285
  }
3276
- let I = [...x.groups];
3277
- if (T.length > 0) {
3286
+ let E = [...x.groups];
3287
+ if (I.length > 0) {
3278
3288
  const G = new Map(
3279
- T.map((Y, ie) => [Y, ie])
3289
+ I.map((Y, re) => [Y, re])
3280
3290
  );
3281
- I.sort((Y, ie) => {
3282
- const fe = G.get(String(Y.id)), ue = G.get(String(ie.id));
3291
+ E.sort((Y, re) => {
3292
+ const fe = G.get(String(Y.id)), ue = G.get(String(re.id));
3283
3293
  return fe !== void 0 && ue !== void 0 ? fe - ue : fe !== void 0 ? -1 : ue !== void 0 ? 1 : 0;
3284
3294
  });
3285
3295
  }
3286
- const F = I.slice(0, 5), H = (G) => {
3296
+ const P = E.slice(0, 5), H = (G) => {
3287
3297
  const Y = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football";
3288
3298
  if (G.groups && G.groups.length > 0) {
3289
- const ie = G.groups[0];
3299
+ const re = G.groups[0];
3290
3300
  return [
3291
- `${Y}/${G.termKey}/${ie.termKey}/all/matches.json?${M}`
3301
+ `${Y}/${G.termKey}/${re.termKey}/all/matches.json?${B}`
3292
3302
  ];
3293
3303
  }
3294
3304
  return [
3295
- `${Y}/${G.termKey}/all/all/matches.json?${M}`
3305
+ `${Y}/${G.termKey}/all/all/matches.json?${B}`
3296
3306
  ];
3297
- }, j = F.flatMap(H);
3298
- B(j, P, S);
3299
- } catch (d) {
3300
- console.error(d);
3307
+ }, j = P.flatMap(H);
3308
+ N(j, F, w);
3309
+ } catch (u) {
3310
+ console.error(u);
3301
3311
  }
3302
3312
  }
3303
- async function B(S, T, P) {
3313
+ async function N(w, I, F) {
3304
3314
  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 || [])
3315
+ const h = await Sa(w, 2, F);
3316
+ let c = [], u = [];
3317
+ h.forEach((k) => {
3318
+ k.events && (c.push(...k.events.map((P) => P.event)), u.push(
3319
+ ...k.events.flatMap((P) => P.betOffers || [])
3310
3320
  ));
3311
3321
  });
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),
3322
+ const v = Ea(c, u), x = Ca(Oa(v));
3323
+ let E = x;
3324
+ if (I.length > 0) {
3325
+ const k = new Map(
3326
+ I.map((P, H) => [
3327
+ String(P),
3318
3328
  H
3319
3329
  ])
3320
3330
  );
3321
- I = [...x].sort((F, H) => {
3322
- const j = $.get(String(F.id)), G = $.get(String(H.id));
3331
+ E = [...x].sort((P, H) => {
3332
+ const j = k.get(String(P.id)), G = k.get(String(H.id));
3323
3333
  return j !== void 0 && G !== void 0 ? j - G : j !== void 0 ? -1 : G !== void 0 ? 1 : 0;
3324
3334
  });
3325
3335
  }
3326
- if (P.aborted) return;
3327
- m(I);
3328
- } catch (f) {
3329
- console.error("Error loading events:", f);
3336
+ if (F.aborted) return;
3337
+ d(E);
3338
+ } catch (h) {
3339
+ console.error("Error loading events:", h);
3330
3340
  }
3331
3341
  }
3332
3342
  K(() => {
3333
3343
  if (!e) return;
3334
- const S = new AbortController();
3335
- return O(S.signal), () => {
3336
- S.abort();
3344
+ const w = new AbortController();
3345
+ return M(w.signal), () => {
3346
+ w.abort();
3337
3347
  };
3338
3348
  }, [e]), K(() => {
3339
- if (N.start === null || N.end === null || !(u != null && u.length) || E.current)
3349
+ if ($.start === null || $.end === null || !(m != null && m.length) || O.current)
3340
3350
  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;
3351
+ 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);
3352
+ if (!h.length) return;
3343
3353
  let c = !1;
3344
- return E.current = !0, (async () => {
3354
+ return O.current = !0, (async () => {
3345
3355
  try {
3346
- const d = await nt(f);
3356
+ const u = await nt(h);
3347
3357
  c || _((v) => ({
3348
3358
  ...v,
3349
- ...d.events
3359
+ ...u.events
3350
3360
  }));
3351
- } catch (d) {
3352
- console.error("Jersey fetch error", d);
3361
+ } catch (u) {
3362
+ console.error("Jersey fetch error", u);
3353
3363
  } finally {
3354
- E.current = !1;
3364
+ O.current = !1;
3355
3365
  }
3356
3366
  })(), () => {
3357
3367
  c = !0;
3358
3368
  };
3359
- }, [N, u]);
3360
- const w = i || void 0, R = {
3369
+ }, [$, m]);
3370
+ const S = i || void 0, R = {
3361
3371
  paddingLeft: 0,
3362
3372
  width: "100%",
3363
3373
  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: [
3374
+ }, z = m === null;
3375
+ return !z && m.length === 0 ? null : /* @__PURE__ */ t("section", { className: S, style: R, children: /* @__PURE__ */ p("div", { className: `${be.wrapper} ${be.padding}`, children: [
3366
3376
  /* @__PURE__ */ t("div", { className: be.container, children: /* @__PURE__ */ p(V, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
3367
3377
  /* @__PURE__ */ t(le, { title: "Eventos de la semana" }),
3368
3378
  /* @__PURE__ */ t("div", { className: be.buttonWrapper, children: /* @__PURE__ */ t(
@@ -3381,8 +3391,8 @@ function Ca({
3381
3391
  /* @__PURE__ */ t("div", { style: { minWidth: "180px" }, children: /* @__PURE__ */ t(
3382
3392
  se,
3383
3393
  {
3384
- ref: h,
3385
- items: z ? Array(6).fill({}) : u.slice(0, 20),
3394
+ ref: f,
3395
+ items: z ? Array(6).fill({}) : m.slice(0, 20),
3386
3396
  perPage: 3.5,
3387
3397
  gap: "16px",
3388
3398
  enableHorizontalWheel: !0,
@@ -3396,15 +3406,15 @@ function Ca({
3396
3406
  padding: { left: "8px", right: "8px" }
3397
3407
  }
3398
3408
  },
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 }) });
3409
+ renderItem: (w) => {
3410
+ const I = w.id, F = I in y ? y[I] : void 0;
3411
+ return z ? /* @__PURE__ */ t(Oe, { children: /* @__PURE__ */ t(ba, {}) }) : /* @__PURE__ */ t(Oe, { children: /* @__PURE__ */ t(wa, { event: w, jersey: F }) });
3402
3412
  },
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({
3413
+ onMove: ({ isStart: w, isEnd: I, visibleStart: F, visibleEnd: h }) => {
3414
+ r({ isStart: w, isEnd: I }), C({
3415
+ start: F,
3416
+ end: h
3417
+ }), l({
3408
3418
  element: "evento_semana_carousel_slide",
3409
3419
  label: `Landing: ${s} - OraculoSeccionEventoSemana - Slide Carousel`,
3410
3420
  target: "carousel",
@@ -3412,10 +3422,10 @@ function Ca({
3412
3422
  module_id: 301,
3413
3423
  metadata: {
3414
3424
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
3415
- visibleStart: P,
3416
- visibleEnd: f,
3417
- isStart: S,
3418
- isEnd: T
3425
+ visibleStart: F,
3426
+ visibleEnd: h,
3427
+ isStart: w,
3428
+ isEnd: I
3419
3429
  },
3420
3430
  tags: { section: "OraculoSeccionEventoSemana" }
3421
3431
  });
@@ -3424,13 +3434,13 @@ function Ca({
3424
3434
  ) })
3425
3435
  ] }) });
3426
3436
  }
3427
- function Oa({
3437
+ function Ta({
3428
3438
  backgrounds: e,
3429
3439
  items: n,
3430
3440
  hideItems: a
3431
3441
  }) {
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 = {
3442
+ var I, F, h;
3443
+ 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
3444
  position: "absolute",
3435
3445
  top: "50%",
3436
3446
  transform: "translateY(-50%)",
@@ -3466,14 +3476,14 @@ function Oa({
3466
3476
  );
3467
3477
  K(() => {
3468
3478
  const c = setTimeout(() => {
3469
- h.current = !0;
3479
+ f.current = !0;
3470
3480
  }, 500);
3471
3481
  return () => clearTimeout(c);
3472
3482
  }, []);
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({
3483
+ const B = (c, u) => {
3484
+ var x, E;
3485
+ 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}`;
3486
+ l({
3477
3487
  element: "banner_carousel",
3478
3488
  label: `Landing: ${s} - OraculoSeccionBanners - Banner click: ${v}`,
3479
3489
  target: c.href || "no_url",
@@ -3481,7 +3491,7 @@ function Oa({
3481
3491
  module_id: 301,
3482
3492
  metadata: {
3483
3493
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
3484
- banner_position: d + 1,
3494
+ banner_position: u + 1,
3485
3495
  banner_total: (e == null ? void 0 : e.length) || 0
3486
3496
  },
3487
3497
  tags: {
@@ -3490,8 +3500,8 @@ function Oa({
3490
3500
  banner_url: c.href || "no_url"
3491
3501
  }
3492
3502
  });
3493
- }, N = (c) => {
3494
- if (r({
3503
+ }, $ = (c) => {
3504
+ if (l({
3495
3505
  element: "banner_menu_item",
3496
3506
  label: `Landing: ${s} - OraculoSeccionBanners - Menu item click: ${c.label || c.id}`,
3497
3507
  target: c.href || "action",
@@ -3509,39 +3519,39 @@ function Oa({
3509
3519
  return;
3510
3520
  }
3511
3521
  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 = () => {
3522
+ }, O = 5e3, A = U(null), M = !m && ((h = e == null ? void 0 : e.length) != null ? h : 0) > 1, N = () => {
3513
3523
  A.current != null && (window.clearTimeout(A.current), A.current = null);
3514
- }, w = () => {
3515
- B(), O && (A.current = window.setTimeout(() => {
3524
+ }, S = () => {
3525
+ N(), M && (A.current = window.setTimeout(() => {
3516
3526
  var c;
3517
3527
  b.current = !0, (c = g.current) == null || c.next();
3518
- }, E));
3528
+ }, O));
3519
3529
  };
3520
- K(() => (w(), () => B()), [O, E]);
3530
+ K(() => (S(), () => N()), [M, O]);
3521
3531
  const R = (c) => {
3522
- var d;
3523
- c.preventDefault(), c.stopPropagation(), B(), (d = g.current) == null || d.prev();
3532
+ var u;
3533
+ c.preventDefault(), c.stopPropagation(), N(), (u = g.current) == null || u.prev();
3524
3534
  }, 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({
3535
+ var u;
3536
+ c.preventDefault(), c.stopPropagation(), N(), (u = g.current) == null || u.next();
3537
+ }, w = (c) => {
3538
+ var x, E, k, P;
3539
+ const u = (c % r + r) % r;
3540
+ if (!f.current) return;
3541
+ 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}`;
3542
+ l({
3533
3543
  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",
3544
+ label: `Landing: ${s} - OraculoSeccionBanners - Banner view: Slide ${u + 1} - ${v}`,
3545
+ target: ((P = e == null ? void 0 : e[u]) == null ? void 0 : P.href) || "no_url",
3536
3546
  event_type: "view",
3537
3547
  module_id: 301,
3538
3548
  metadata: {
3539
3549
  location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
3540
- slide_index: d + 1,
3541
- total_slides: l,
3550
+ slide_index: u + 1,
3551
+ total_slides: r,
3542
3552
  interaction_type: "manual_slide"
3543
3553
  },
3544
- tags: { banner_position: String(d + 1) }
3554
+ tags: { banner_position: String(u + 1) }
3545
3555
  });
3546
3556
  };
3547
3557
  return /* @__PURE__ */ p(
@@ -3587,12 +3597,12 @@ function Oa({
3587
3597
  enableHorizontalWheel: !0,
3588
3598
  options: C,
3589
3599
  onMove: ({ index: c }) => {
3590
- const d = (c % l + l) % l;
3591
- i(d);
3600
+ const u = (c % r + r) % r;
3601
+ i(u);
3592
3602
  const v = b.current;
3593
- b.current = !1, w(), v || S(c);
3603
+ b.current = !1, S(), v || w(c);
3594
3604
  },
3595
- renderItem: (c, d) => {
3605
+ renderItem: (c, u) => {
3596
3606
  var v, x;
3597
3607
  return /* @__PURE__ */ p(
3598
3608
  Z,
@@ -3601,7 +3611,7 @@ function Oa({
3601
3611
  href: c.href,
3602
3612
  target: (v = c.target) != null ? v : "_self",
3603
3613
  rel: c.target === "_blank" ? "noopener noreferrer" : void 0,
3604
- onClick: () => M(c, d),
3614
+ onClick: () => B(c, u),
3605
3615
  sx: {
3606
3616
  position: "relative",
3607
3617
  width: "100%",
@@ -3658,14 +3668,14 @@ function Oa({
3658
3668
  )
3659
3669
  }
3660
3670
  ),
3661
- m && /* @__PURE__ */ p(ee, { children: [
3671
+ d && /* @__PURE__ */ p(ee, { children: [
3662
3672
  /* @__PURE__ */ t(
3663
3673
  Ae,
3664
3674
  {
3665
3675
  "aria-label": "Anterior",
3666
3676
  onClick: R,
3667
3677
  sx: {
3668
- ...k,
3678
+ ...T,
3669
3679
  left: "120px",
3670
3680
  "@media (max-width:1024px)": { left: 24 },
3671
3681
  "@media (max-width:786px)": { display: "none" }
@@ -3679,7 +3689,7 @@ function Oa({
3679
3689
  "aria-label": "Siguiente",
3680
3690
  onClick: z,
3681
3691
  sx: {
3682
- ...k,
3692
+ ...T,
3683
3693
  right: "120px",
3684
3694
  "@media (max-width:1024px)": { right: 24 },
3685
3695
  "@media (max-width:786px)": { display: "none" }
@@ -3703,11 +3713,11 @@ function Oa({
3703
3713
  children: /* @__PURE__ */ t(
3704
3714
  Xe,
3705
3715
  {
3706
- total: l,
3716
+ total: r,
3707
3717
  active: o,
3708
- durationMs: E
3718
+ durationMs: O
3709
3719
  },
3710
- `${o}-${l}`
3720
+ `${o}-${r}`
3711
3721
  )
3712
3722
  }
3713
3723
  )
@@ -3746,7 +3756,7 @@ function Oa({
3746
3756
  cursor: c.onClick || c.href ? "pointer" : "default",
3747
3757
  whiteSpace: "nowrap"
3748
3758
  },
3749
- onClick: () => N(c),
3759
+ onClick: () => $(c),
3750
3760
  children: [
3751
3761
  c.icon && /* @__PURE__ */ t(
3752
3762
  Z,
@@ -3783,7 +3793,7 @@ function Oa({
3783
3793
  }
3784
3794
  );
3785
3795
  }
3786
- const Ea = [
3796
+ const ka = [
3787
3797
  { src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/IBK.svg", alt: "Interbank" },
3788
3798
  { src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/Yape.svg", alt: "Yape" },
3789
3799
  { src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/BCP.png", alt: "BCP" },
@@ -3792,9 +3802,9 @@ const Ea = [
3792
3802
  { src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/monnet.svg", alt: "Monnet" },
3793
3803
  { src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/niubiz.svg", alt: "Niubiz" }
3794
3804
  ];
3795
- function Ia({
3805
+ function $a({
3796
3806
  title: e = "Medios de pago",
3797
- items: n = Ea
3807
+ items: n = ka
3798
3808
  }) {
3799
3809
  const a = Math.ceil(n.length / 2), o = n.slice(0, a), i = n.slice(a);
3800
3810
  return /* @__PURE__ */ p(Z, { component: "section", "aria-labelledby": "mp-title", sx: { color: "#fff" }, children: [
@@ -3835,7 +3845,7 @@ function Ia({
3835
3845
  alignItems: "center",
3836
3846
  gap: { xs: 2, md: 3 },
3837
3847
  flexWrap: "wrap",
3838
- children: o.map((r, s) => /* @__PURE__ */ t(Re, { ...r }, `${r.alt}-${r.src}-${s}`))
3848
+ children: o.map((l, s) => /* @__PURE__ */ t(Re, { ...l }, `${l.alt}-${l.src}-${s}`))
3839
3849
  }
3840
3850
  ),
3841
3851
  /* @__PURE__ */ t(
@@ -3846,7 +3856,7 @@ function Ia({
3846
3856
  alignItems: "center",
3847
3857
  gap: { xs: 2, md: 3 },
3848
3858
  flexWrap: "wrap",
3849
- children: i.map((r, s) => /* @__PURE__ */ t(Re, { ...r }, `${r.alt}-${r.src}-${s}`))
3859
+ children: i.map((l, s) => /* @__PURE__ */ t(Re, { ...l }, `${l.alt}-${l.src}-${s}`))
3850
3860
  }
3851
3861
  )
3852
3862
  ] })
@@ -3873,25 +3883,25 @@ function Be({
3873
3883
  e
3874
3884
  ] });
3875
3885
  }
3876
- function Za({
3886
+ function Ya({
3877
3887
  docId: e = "home",
3878
3888
  children: n
3879
3889
  }) {
3880
3890
  return /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Me, { docId: e, children: n }) });
3881
3891
  }
3882
- const Ta = {
3892
+ const Na = {
3883
3893
  OraculoSeccionDestacados: Ln,
3884
3894
  OraculoSeccionTopJuegos: Fn,
3885
3895
  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
3896
+ OraculoSeccionCasino: Zn,
3897
+ OraculoSeccionVirtuales: Yn,
3898
+ OraculoSeccionClubOlimpo: ta,
3899
+ OraculoSeccionBonoBienvenida: ea,
3900
+ OraculoSeccionBanners: Ta,
3901
+ OraculoSeccionMediosPago: $a,
3902
+ OraculoSeccionEventoEnVivo: ha,
3903
+ OraculoSeccionEventoSemana: Ia,
3904
+ OraculoSeccionEventoCombinadas: sa
3895
3905
  }, We = {
3896
3906
  sections: [
3897
3907
  {
@@ -4955,18 +4965,18 @@ const Ta = {
4955
4965
  updatedAt: "2026-01-22T04:11:09.501Z"
4956
4966
  }
4957
4967
  ]
4958
- }, ka = (e) => typeof e == "function" || e && typeof e == "object" && "$$typeof" in e, $a = (e) => /^OraculoSeccion[A-Z]/.test(e);
4968
+ }, Ma = (e) => typeof e == "function" || e && typeof e == "object" && "$$typeof" in e, Ba = (e) => /^OraculoSeccion[A-Z]/.test(e);
4959
4969
  function Ne(e) {
4960
4970
  return e && Array.isArray(e.sections) ? e.sections.slice().sort((n, a) => {
4961
4971
  var o, i;
4962
4972
  return ((o = n.order) != null ? o : 0) - ((i = a.order) != null ? i : 0);
4963
4973
  }).map((n, a) => ({ ...n, order: a + 1 })) : e && Array.isArray(e.components) ? e.components.map((n, a) => {
4964
- var o, i, r, s, g;
4974
+ var o, i, l, s, g;
4965
4975
  return {
4966
4976
  id: (o = n.id) != null ? o : a + 1,
4967
4977
  title: (i = n.title) != null ? i : "",
4968
4978
  componentKey: n.componentKey,
4969
- visible: (r = n.visible) != null ? r : !0,
4979
+ visible: (l = n.visible) != null ? l : !0,
4970
4980
  order: a + 1,
4971
4981
  props: (s = n.props) != null ? s : {},
4972
4982
  apiUrl: (g = n.apiUrl) != null ? g : "",
@@ -4978,11 +4988,11 @@ function Ne(e) {
4978
4988
  };
4979
4989
  }) : [];
4980
4990
  }
4981
- const Na = Object.fromEntries(
4982
- Object.entries(Ta).filter(
4983
- ([e, n]) => $a(e) && ka(n)
4991
+ const La = Object.fromEntries(
4992
+ Object.entries(Na).filter(
4993
+ ([e, n]) => Ba(e) && Ma(n)
4984
4994
  )
4985
- ), Ma = (e) => {
4995
+ ), Aa = (e) => {
4986
4996
  try {
4987
4997
  return Object.fromEntries(e != null ? e : []);
4988
4998
  } catch {
@@ -4998,70 +5008,70 @@ const je = [
4998
5008
  "OraculoSeccionEventoEnVivo",
4999
5009
  "OraculoSeccionEventoSemana",
5000
5010
  "OraculoSeccionEventoCombinadas"
5001
- ], Ja = ({
5011
+ ], Qa = ({
5002
5012
  sectionsOverride: e,
5003
5013
  docId: n = "home",
5004
5014
  db: a,
5005
5015
  extras: o,
5006
5016
  loader: i,
5007
- disableWrapper: r = !1
5017
+ disableWrapper: l = !1
5008
5018
  }) => {
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)");
5019
+ 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
5020
  K(() => {
5011
5021
  if (e) return;
5012
5022
  if (!a) {
5013
5023
  console.warn("[landing] sin db -> fallback json"), b(Ne(We));
5014
5024
  return;
5015
5025
  }
5016
- const f = (d, v) => {
5017
- console.warn("[landing] FALLBACK:", d, v != null ? v : ""), b(Ne(We)), u(!1);
5026
+ const h = (u, v) => {
5027
+ console.warn("[landing] FALLBACK:", u, v != null ? v : ""), b(Ne(We)), m(!1);
5018
5028
  };
5019
5029
  if (process.env.NEXT_PUBLIC_LANDING_FORCE_FALLBACK === "1") {
5020
- u(!0), f("forzado por env");
5030
+ m(!0), h("forzado por env");
5021
5031
  return;
5022
5032
  }
5023
- u(!0);
5033
+ m(!0);
5024
5034
  const c = wt(
5025
5035
  St(a, "landings", n),
5026
- (d) => {
5036
+ (u) => {
5027
5037
  try {
5028
- if (!d.exists()) {
5029
- f(`doc landings/${n} no existe`);
5038
+ if (!u.exists()) {
5039
+ h(`doc landings/${n} no existe`);
5030
5040
  return;
5031
5041
  }
5032
- const v = d.data(), x = Ne(v);
5042
+ const v = u.data(), x = Ne(v);
5033
5043
  if (!x.length) {
5034
- f("JSON inválido o sin secciones normalizables", v);
5044
+ h("JSON inválido o sin secciones normalizables", v);
5035
5045
  return;
5036
5046
  }
5037
5047
  console.log("[landing] Firestore OK (json grande):", v), b(x);
5038
5048
  } catch (v) {
5039
- f("error procesando snapshot", v);
5049
+ h("error procesando snapshot", v);
5040
5050
  } finally {
5041
- u(!1);
5051
+ m(!1);
5042
5052
  }
5043
5053
  },
5044
- (d) => {
5045
- f("error onSnapshot", d);
5054
+ (u) => {
5055
+ h("error onSnapshot", u);
5046
5056
  }
5047
5057
  );
5048
5058
  return () => c();
5049
5059
  }, [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))
5060
+ (e ? e.slice() : f.slice()).map((u) => u.componentKey).filter((u) => !!u).length;
5061
+ }, [e, f]);
5062
+ const O = async (h) => {
5063
+ if (je.includes(h.componentKey))
5054
5064
  return {
5055
5065
  // whatever empty structure your UI expects
5056
5066
  items: [],
5057
5067
  events: [],
5058
5068
  data: {}
5059
5069
  };
5060
- const c = (f.apiUrl || "").trim();
5070
+ const c = (h.apiUrl || "").trim();
5061
5071
  if (!c) return;
5062
- const d = f.apiMethod || "GET", v = f.apiParams || [];
5063
- let x = c, I, $;
5064
- if (d === "GET") {
5072
+ const u = h.apiMethod || "GET", v = h.apiParams || [];
5073
+ let x = c, E, k;
5074
+ if (u === "GET") {
5065
5075
  const H = new URL(
5066
5076
  c,
5067
5077
  typeof window == "undefined" ? "http://localhost" : window.location.origin
@@ -5073,157 +5083,157 @@ const je = [
5073
5083
  const H = new URLSearchParams();
5074
5084
  for (const j of v)
5075
5085
  j.key && H.append(j.key, j.value);
5076
- I = H.toString(), $ = {
5086
+ E = H.toString(), k = {
5077
5087
  "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
5078
5088
  };
5079
5089
  }
5080
- const F = await fetch(x, {
5081
- method: d,
5082
- headers: $,
5083
- body: I
5090
+ const P = await fetch(x, {
5091
+ method: u,
5092
+ headers: k,
5093
+ body: E
5084
5094
  });
5085
- if (!F.ok) throw new Ge(F.status, x, F.statusText);
5086
- return F.json();
5095
+ if (!P.ok) throw new Ge(P.status, x, P.statusText);
5096
+ return P.json();
5087
5097
  }, A = Q(
5088
- () => e ? e.slice() : h.slice(),
5089
- [e, h]
5090
- ), O = de.useRef(/* @__PURE__ */ new Set());
5098
+ () => e ? e.slice() : f.slice(),
5099
+ [e, f]
5100
+ ), M = de.useRef(/* @__PURE__ */ new Set());
5091
5101
  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 () => {
5102
+ const h = A.map((c) => ({ s: c, url: (c.apiUrl || "").trim() })).filter(({ url: c }) => !!c);
5103
+ if (h.length)
5104
+ for (const { s: c, url: u } of h) {
5105
+ const v = `${c.id}|${u}`;
5106
+ M.current.has(v) || (M.current.add(v), T((x) => ({ ...x, [c.id]: !0 })), B((x) => ({ ...x, [c.id]: "" })), (async () => {
5097
5107
  try {
5098
- const x = await E(c);
5099
- y((I) => ({ ...I, [c.id]: x }));
5108
+ const x = await O(c);
5109
+ y((E) => ({ ...E, [c.id]: x }));
5100
5110
  } 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 }));
5111
+ let E = "Error desconocido";
5112
+ 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
5113
  } finally {
5104
- k((x) => ({ ...x, [c.id]: !1 }));
5114
+ T((x) => ({ ...x, [c.id]: !1 }));
5105
5115
  }
5106
5116
  })());
5107
5117
  }
5108
5118
  }, [A]);
5109
- const B = Q(
5110
- () => A.filter((f) => f.visible).sort((f, c) => f.order - c.order),
5119
+ const N = Q(
5120
+ () => A.filter((h) => h.visible).sort((h, c) => h.order - c.order),
5111
5121
  [A]
5112
- ), w = (f) => Array.isArray(f) ? f.map((c) => {
5113
- const d = {};
5122
+ ), S = (h) => Array.isArray(h) ? h.map((c) => {
5123
+ const u = {};
5114
5124
  for (const v of c.fields || []) {
5115
5125
  const x = (v.type || "string").toLowerCase();
5116
5126
  if (x === "number") {
5117
- const I = String(v.value || "").trim();
5118
- if (I !== "") {
5119
- const $ = Number(I);
5120
- Number.isNaN($) || (d[v.name] = $);
5127
+ const E = String(v.value || "").trim();
5128
+ if (E !== "") {
5129
+ const k = Number(E);
5130
+ Number.isNaN(k) || (u[v.name] = k);
5121
5131
  }
5122
5132
  } else if (x === "boolean")
5123
- d[v.name] = String(v.value).toLowerCase() === "true";
5133
+ u[v.name] = String(v.value).toLowerCase() === "true";
5124
5134
  else if (x === "function") {
5125
- const I = String(v.value || "").trim();
5126
- if (I)
5135
+ const E = String(v.value || "").trim();
5136
+ if (E)
5127
5137
  try {
5128
- const $ = new Function(I);
5129
- d[v.name] = $;
5130
- } catch ($) {
5131
- console.error(`❌ Error creando función en item '${v.name}':`, $);
5138
+ const k = new Function(E);
5139
+ u[v.name] = k;
5140
+ } catch (k) {
5141
+ console.error(`❌ Error creando función en item '${v.name}':`, k);
5132
5142
  }
5133
- } else d[v.name] = v.value;
5143
+ } else u[v.name] = v.value;
5134
5144
  }
5135
- return d;
5136
- }) : [], R = (f) => {
5145
+ return u;
5146
+ }) : [], R = (h) => {
5137
5147
  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();
5148
+ if (!Array.isArray(h)) return c;
5149
+ for (const u of h) {
5150
+ if (!u.name) continue;
5151
+ const v = (u.type || "string").toLowerCase();
5142
5152
  if (v === "number") {
5143
- const x = String(d.value || "").trim();
5153
+ const x = String(u.value || "").trim();
5144
5154
  if (x !== "") {
5145
- const I = Number(x);
5146
- Number.isNaN(I) || (c[d.name] = I);
5155
+ const E = Number(x);
5156
+ Number.isNaN(E) || (c[u.name] = E);
5147
5157
  }
5148
5158
  } else if (v === "boolean")
5149
- c[d.name] = String(d.value).toLowerCase() === "true";
5159
+ c[u.name] = String(u.value).toLowerCase() === "true";
5150
5160
  else if (v === "function") {
5151
- const x = String(d.value || "").trim();
5161
+ const x = String(u.value || "").trim();
5152
5162
  if (x)
5153
5163
  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);
5164
+ const E = new Function(x);
5165
+ c[u.name] = E;
5166
+ } catch (E) {
5167
+ console.error(`❌ Error creando función en item '${u.name}':`, E);
5158
5168
  }
5159
- } else c[d.name] = d.value;
5169
+ } else c[u.name] = u.value;
5160
5170
  }
5161
5171
  return c;
5162
- }, z = (f, c, d, v) => {
5163
- const x = d ? { ...d } : {}, I = "items".trim() || "items";
5172
+ }, z = (h, c, u, v) => {
5173
+ const x = u ? { ...u } : {}, E = "items".trim() || "items";
5164
5174
  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);
5175
+ return x[E] = c.arr || [], x;
5176
+ const k = h;
5177
+ if (Array.isArray(k))
5178
+ return x[E] = k, x;
5179
+ if (k && typeof k == "object") {
5180
+ const P = k;
5181
+ return Array.isArray(P.lobby) ? (x[E] = P.lobby, x) : Array.isArray(P.items) ? (x[E] = P.items, x) : (x[E] = k, x);
5172
5182
  }
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);
5183
+ return x[E] = [], x;
5184
+ }, w = (h) => {
5185
+ var E;
5186
+ const c = !!((E = h.apiUrl) != null && E.trim()), u = c ? d[h.id] : void 0;
5187
+ let v = h.props ? { ...h.props } : {};
5188
+ const x = R(h.manualScalarFields);
5189
+ if (je.includes(h.componentKey))
5190
+ return { items: u, ...v, ...x };
5191
+ if (v = { ...v, ...x }, c) v = z(u, null, v);
5192
+ else if (h.dataMode === "manual") {
5193
+ const k = S(h.manualItems);
5184
5194
  if (v = z(
5185
5195
  null,
5186
- { arr: $, variableName: f.variableName },
5196
+ { arr: k, variableName: h.variableName },
5187
5197
  v
5188
- ), f.variableName2 && f.manualItems2) {
5189
- const F = w(f.manualItems2), H = (f.variableName2 || "items2").trim() || "items2";
5190
- v[H] = F;
5198
+ ), h.variableName2 && h.manualItems2) {
5199
+ const P = S(h.manualItems2), H = (h.variableName2 || "items2").trim() || "items2";
5200
+ v[H] = P;
5191
5201
  }
5192
5202
  }
5193
5203
  return v;
5194
- }, T = (f, c, d) => /* @__PURE__ */ t("div", { className: `mx-4 p-4 rounded ${{
5204
+ }, I = (h, c, u) => /* @__PURE__ */ t("div", { className: `mx-4 p-4 rounded ${{
5195
5205
  loading: "bg-blue-100 text-blue-800",
5196
5206
  error: "bg-red-100 text-red-800",
5197
5207
  component: "bg-yellow-100 text-yellow-800"
5198
- }[c]}`, children: d }, f), P = (f) => {
5208
+ }[c]}`, children: u }, h), F = (h) => {
5199
5209
  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,
5210
+ const c = h.componentKey, u = La[c];
5211
+ if (!u)
5212
+ return console.warn(`No hay componente registrado para "${c}"`), I(
5213
+ h.id,
5204
5214
  "component",
5205
5215
  `Componente "${c}" no encontrado`
5206
5216
  );
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] : "";
5217
+ 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
5218
  if (v) {
5209
- if (I && !x)
5210
- return T(
5211
- f.id,
5219
+ if (E && !x)
5220
+ return I(
5221
+ h.id,
5212
5222
  "loading",
5213
- `Cargando datos desde ${f.apiUrl}...`
5223
+ `Cargando datos desde ${h.apiUrl}...`
5214
5224
  );
5215
- if ($ && !x)
5216
- return T(
5217
- f.id,
5225
+ if (k && !x)
5226
+ return I(
5227
+ h.id,
5218
5228
  "error",
5219
- `Error cargando ${f.apiUrl}: ${$}`
5229
+ `Error cargando ${h.apiUrl}: ${k}`
5220
5230
  );
5221
5231
  }
5222
- const F = S(f), j = (/* @__PURE__ */ new Set([
5232
+ const P = w(h), j = (/* @__PURE__ */ new Set([
5223
5233
  "OraculoSeccionBanners",
5224
5234
  "OraculoSeccionBonoBienvenida",
5225
5235
  "OraculoSeccionCasinoEnVivo",
5226
- ...N ? [] : [
5236
+ ...$ ? [] : [
5227
5237
  "OraculoSeccionClubOlimpo",
5228
5238
  "OraculoSeccionEventoEnVivo",
5229
5239
  "OraculoSeccionEventoSemana",
@@ -5232,18 +5242,18 @@ const je = [
5232
5242
  "OraculoSeccionDestacados",
5233
5243
  "OraculoSeccionCasino"
5234
5244
  ]
5235
- ])).has(f.componentKey), G = N ? 120 : 24, Y = (N ? 8 : 5) * 8, ie = f.componentKey === "OraculoSeccionCasinoEnVivo", fe = {
5245
+ ])).has(h.componentKey), G = $ ? 120 : 24, Y = ($ ? 8 : 5) * 8, re = h.componentKey === "OraculoSeccionCasinoEnVivo", fe = {
5236
5246
  width: "100%",
5237
5247
  boxSizing: "border-box",
5238
5248
  ...j ? {} : { paddingLeft: G, paddingRight: G },
5239
- ...ie ? {
5249
+ ...re ? {
5240
5250
  marginTop: -Y,
5241
5251
  marginBottom: -Y
5242
5252
  } : {}
5243
5253
  };
5244
- return /* @__PURE__ */ t("div", { style: fe, className: "oraculo-section-wrapper", children: /* @__PURE__ */ t(d, { ...F }) }, f.id);
5254
+ return /* @__PURE__ */ t("div", { style: fe, className: "oraculo-section-wrapper", children: /* @__PURE__ */ t(u, { ...P }) }, h.id);
5245
5255
  };
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(
5256
+ 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
5257
  ct,
5248
5258
  {
5249
5259
  className: "oli-font",
@@ -5258,7 +5268,7 @@ const je = [
5258
5268
  maxWidth: "100%",
5259
5269
  overflowX: "hidden"
5260
5270
  },
5261
- children: /* @__PURE__ */ t(ve, { direction: "column", spacing: N ? 8 : 5, useFlexGap: !0, children: B.map(P) })
5271
+ children: /* @__PURE__ */ t(ve, { direction: "column", spacing: $ ? 8 : 5, useFlexGap: !0, children: N.map(F) })
5262
5272
  }
5263
5273
  ) }) });
5264
5274
  };
@@ -5284,24 +5294,24 @@ export {
5284
5294
  oe as OraculoGridGroup,
5285
5295
  rn as OraculoLiveCasinoCard,
5286
5296
  Re as OraculoLogoMediosPago,
5287
- Ja as OraculoPageLandingPreview,
5288
- Oa as OraculoSeccionBanners,
5289
- Xn as OraculoSeccionBonoBienvenida,
5290
- jn as OraculoSeccionCasino,
5297
+ Qa as OraculoPageLandingPreview,
5298
+ Ta as OraculoSeccionBanners,
5299
+ ea as OraculoSeccionBonoBienvenida,
5300
+ Zn as OraculoSeccionCasino,
5291
5301
  zn as OraculoSeccionCasinoEnVivo,
5292
- Yn as OraculoSeccionClubOlimpo,
5302
+ ta as OraculoSeccionClubOlimpo,
5293
5303
  Ln as OraculoSeccionDestacados,
5294
- ia as OraculoSeccionEventoCombinadas,
5295
- pa as OraculoSeccionEventoEnVivo,
5296
- Ca as OraculoSeccionEventoSemana,
5297
- Ia as OraculoSeccionMediosPago,
5304
+ sa as OraculoSeccionEventoCombinadas,
5305
+ ha as OraculoSeccionEventoEnVivo,
5306
+ Ia as OraculoSeccionEventoSemana,
5307
+ $a as OraculoSeccionMediosPago,
5298
5308
  Fn as OraculoSeccionTopJuegos,
5299
- Zn as OraculoSeccionVirtuales,
5300
- Za as OraculoSectionHost,
5309
+ Yn as OraculoSeccionVirtuales,
5310
+ Ya as OraculoSectionHost,
5301
5311
  le as OraculoSectionTitle,
5302
5312
  Be as OraculoThemeProvider,
5303
5313
  Fn as OraculoTopJuegoItem,
5304
5314
  Fe as OraculoWelcomeBanner,
5305
- Ja as default
5315
+ Qa as default
5306
5316
  };
5307
5317
  //# sourceMappingURL=index.es.js.map