oraculo-ui 0.1.76 → 0.1.78

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,17 +1,17 @@
1
- import { jsx as e, jsxs as m, Fragment as oe } from "react/jsx-runtime";
2
- import { Link as Te, Box as V, Typography as Me, Stack as de, useMediaQuery as Ve, Container as Ke } from "@mui/material";
1
+ import { jsx as e, jsxs as h, Fragment as oe } from "react/jsx-runtime";
2
+ import { Link as Me, Box as V, Typography as Le, Stack as de, useMediaQuery as Xe, Container as Ye } from "@mui/material";
3
3
  import A from "@mui/material/Skeleton";
4
- import qe, { useRef as H, useEffect as K, forwardRef as Xe, useImperativeHandle as Je, useCallback as ve, useState as D, useMemo as ce, useLayoutEffect as Ze } from "react";
5
- import { Splide as Ye, SplideSlide as Qe } from "@splidejs/react-splide";
6
- import M from "@mui/material/Box";
7
- import J from "@mui/material/Typography";
4
+ import We, { useRef as H, useEffect as q, forwardRef as Ze, useImperativeHandle as Qe, useCallback as ue, useState as D, useMemo as ce, useLayoutEffect as et } from "react";
5
+ import { Splide as tt, SplideSlide as nt } from "@splidejs/react-splide";
6
+ import T from "@mui/material/Box";
7
+ import X from "@mui/material/Typography";
8
8
  import z from "@mui/material/Stack";
9
- import { ChevronLeftRounded as we, ChevronRightRounded as ye } from "@mui/icons-material";
10
- import Re from "@mui/icons-material/ChevronLeftRounded";
11
- import Le from "@mui/icons-material/ChevronRightRounded";
12
- import et from "@mui/material/useMediaQuery";
13
- import { onSnapshot as tt, doc as nt } from "firebase/firestore";
14
- function j({
9
+ import { ChevronLeftRounded as ye, ChevronRightRounded as Se } from "@mui/icons-material";
10
+ import Be from "@mui/icons-material/ChevronLeftRounded";
11
+ import Pe from "@mui/icons-material/ChevronRightRounded";
12
+ import ot from "@mui/material/useMediaQuery";
13
+ import { onSnapshot as rt, doc as at } from "firebase/firestore";
14
+ function G({
15
15
  children: t,
16
16
  onClick: n,
17
17
  href: o,
@@ -19,51 +19,51 @@ function j({
19
19
  rel: i,
20
20
  type: r = "button",
21
21
  disabled: s = !1,
22
- variant: d = "primary",
22
+ variant: l = "primary",
23
23
  size: c,
24
- fullWidth: h = !1,
25
- fullHeight: b = !1,
26
- className: S = "",
27
- ariaLabel: l,
28
- leftIcon: w,
24
+ fullWidth: f = !1,
25
+ fullHeight: x = !1,
26
+ className: v = "",
27
+ ariaLabel: d,
28
+ leftIcon: C,
29
29
  rightIcon: y,
30
- iconOnly: k
30
+ iconOnly: O
31
31
  }) {
32
- const C = !!t && t !== !0, f = (!!w ? 1 : 0) + (!!y ? 1 : 0) == 1, v = k != null ? k : f && !C, R = [
32
+ const w = !!t && t !== !0, S = (!!C ? 1 : 0) + (!!y ? 1 : 0) == 1, m = O != null ? O : S && !w, E = [
33
33
  "orc-btn",
34
- d === "secondary" ? "orc-btn--secondary" : d === "tertiary" ? "orc-btn--tertiary" : "orc-btn--primary",
34
+ l === "secondary" ? "orc-btn--secondary" : l === "tertiary" ? "orc-btn--tertiary" : "orc-btn--primary",
35
35
  c ? `orc-btn--${c}` : "",
36
- h ? "orc-btn--full" : "",
37
- b ? "orc-btn--fullHeight" : "",
38
- v ? "orc-btn--iconOnly" : "",
39
- S
40
- ].filter(Boolean).join(" "), $ = /* @__PURE__ */ m(oe, { children: [
41
- w && /* @__PURE__ */ e("span", { className: "orc-btn__icon", children: w }),
42
- !v && /* @__PURE__ */ e("span", { className: "orc-btn__label", children: t }),
36
+ f ? "orc-btn--full" : "",
37
+ x ? "orc-btn--fullHeight" : "",
38
+ m ? "orc-btn--iconOnly" : "",
39
+ v
40
+ ].filter(Boolean).join(" "), k = /* @__PURE__ */ h(oe, { children: [
41
+ C && /* @__PURE__ */ e("span", { className: "orc-btn__icon", children: C }),
42
+ !m && /* @__PURE__ */ e("span", { className: "orc-btn__label", children: t }),
43
43
  y && /* @__PURE__ */ e("span", { className: "orc-btn__icon", children: y })
44
- ] }), T = s ? !0 : void 0;
44
+ ] }), I = s ? !0 : void 0;
45
45
  return o ? /* @__PURE__ */ e(
46
- Te,
46
+ Me,
47
47
  {
48
48
  href: o,
49
49
  target: a,
50
50
  rel: i,
51
- "aria-label": l,
52
- "aria-disabled": T,
53
- tabIndex: T ? -1 : void 0,
54
- className: R,
55
- onClick: T ? (N) => N.preventDefault() : n,
56
- children: $
51
+ "aria-label": d,
52
+ "aria-disabled": I,
53
+ tabIndex: I ? -1 : void 0,
54
+ className: E,
55
+ onClick: I ? (N) => N.preventDefault() : n,
56
+ children: k
57
57
  }
58
58
  ) : /* @__PURE__ */ e(
59
59
  "button",
60
60
  {
61
61
  type: r,
62
62
  onClick: n,
63
- disabled: !!T,
64
- "aria-label": l,
65
- className: R,
66
- children: $
63
+ disabled: !!I,
64
+ "aria-label": d,
65
+ className: E,
66
+ children: k
67
67
  }
68
68
  );
69
69
  }
@@ -78,7 +78,7 @@ function ee({
78
78
  o ? `orc-section-title--${o}` : "",
79
79
  a
80
80
  ].filter(Boolean).join(" ");
81
- return /* @__PURE__ */ m("div", { className: r, children: [
81
+ return /* @__PURE__ */ h("div", { className: r, children: [
82
82
  n && /* @__PURE__ */ e(
83
83
  "img",
84
84
  {
@@ -90,7 +90,7 @@ function ee({
90
90
  /* @__PURE__ */ e("h2", { className: "orc-section-title__title", children: t })
91
91
  ] });
92
92
  }
93
- const Be = ({
93
+ const Ae = ({
94
94
  total: t,
95
95
  active: n,
96
96
  onSelect: o,
@@ -110,7 +110,7 @@ const Be = ({
110
110
  }
111
111
  ) }, s)) });
112
112
  };
113
- function Z({
113
+ function Y({
114
114
  children: t,
115
115
  minWidth: n = 32,
116
116
  spacing: o = 2,
@@ -132,7 +132,7 @@ function Z({
132
132
  }
133
133
  );
134
134
  }
135
- function Ee({ src: t, alt: n }) {
135
+ function Ce({ src: t, alt: n }) {
136
136
  return /* @__PURE__ */ e(
137
137
  V,
138
138
  {
@@ -163,16 +163,16 @@ function Ee({ src: t, alt: n }) {
163
163
  }
164
164
  );
165
165
  }
166
- const ot = "oraculo__OraculoEventTitle-module__contenedor___rg1vw", rt = "oraculo__OraculoEventTitle-module__flexGroup___jMLFO", at = "oraculo__OraculoEventTitle-module__subtitle___TmHna", ge = {
167
- contenedor: ot,
168
- flexGroup: rt,
169
- subtitle: at
166
+ const it = "oraculo__OraculoEventTitle-module__contenedor___rg1vw", st = "oraculo__OraculoEventTitle-module__flexGroup___jMLFO", ct = "oraculo__OraculoEventTitle-module__subtitle___TmHna", be = {
167
+ contenedor: it,
168
+ flexGroup: st,
169
+ subtitle: ct
170
170
  };
171
- function it({ title: t, subtitle: n }) {
172
- return /* @__PURE__ */ m(
171
+ function lt({ title: t, subtitle: n }) {
172
+ return /* @__PURE__ */ h(
173
173
  "div",
174
174
  {
175
- className: ge.contenedor,
175
+ className: be.contenedor,
176
176
  children: [
177
177
  /* @__PURE__ */ e(
178
178
  "span",
@@ -185,17 +185,17 @@ function it({ title: t, subtitle: n }) {
185
185
  children: t
186
186
  }
187
187
  ),
188
- n && /* @__PURE__ */ m(
188
+ n && /* @__PURE__ */ h(
189
189
  "div",
190
190
  {
191
- className: ge.flexGroup,
191
+ className: be.flexGroup,
192
192
  children: [
193
- /* @__PURE__ */ m("svg", { width: "4", height: "4", viewBox: "0 0 5 5", xmlns: "http://www.w3.org/2000/svg", style: { flexShrink: 0 }, children: [
193
+ /* @__PURE__ */ h("svg", { width: "4", height: "4", viewBox: "0 0 5 5", xmlns: "http://www.w3.org/2000/svg", style: { flexShrink: 0 }, children: [
194
194
  " ",
195
195
  /* @__PURE__ */ e("circle", { cx: "2.5", cy: "2.5", r: "2.5", fill: "white" }),
196
196
  " "
197
197
  ] }),
198
- /* @__PURE__ */ e("span", { className: ge.subtitle, children: n }),
198
+ /* @__PURE__ */ e("span", { className: be.subtitle, children: n }),
199
199
  /* @__PURE__ */ e("div", {})
200
200
  ]
201
201
  }
@@ -204,7 +204,7 @@ function it({ title: t, subtitle: n }) {
204
204
  }
205
205
  );
206
206
  }
207
- function st({ text: t, color: n = "#ff3b3b", textColor: o = "#fff" }) {
207
+ function dt({ text: t, color: n = "#ff3b3b", textColor: o = "#fff" }) {
208
208
  return /* @__PURE__ */ e(
209
209
  "span",
210
210
  {
@@ -225,14 +225,14 @@ function st({ text: t, color: n = "#ff3b3b", textColor: o = "#fff" }) {
225
225
  }
226
226
  );
227
227
  }
228
- function ct({ live: t, time: n }) {
229
- return /* @__PURE__ */ m("div", { className: "oli-font", style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
230
- t && /* @__PURE__ */ e(st, { text: "En vivo" }),
228
+ function ut({ live: t, time: n }) {
229
+ return /* @__PURE__ */ h("div", { className: "oli-font", style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
230
+ t && /* @__PURE__ */ e(dt, { text: "En vivo" }),
231
231
  n && /* @__PURE__ */ e("span", { style: { fontSize: "14px", fontWeight: 400, lineHeight: "18px", paddingTop: "4px" }, children: n })
232
232
  ] });
233
233
  }
234
- function lt({ title: t, subtitle: n, live: o = !1, time: a = "" }) {
235
- return /* @__PURE__ */ m(
234
+ function pt({ title: t, subtitle: n, live: o = !1, time: a = "" }) {
235
+ return /* @__PURE__ */ h(
236
236
  "div",
237
237
  {
238
238
  style: {
@@ -242,33 +242,33 @@ function lt({ title: t, subtitle: n, live: o = !1, time: a = "" }) {
242
242
  color: "#FFFFFF"
243
243
  },
244
244
  children: [
245
- /* @__PURE__ */ e(it, { title: t, subtitle: n }),
246
- /* @__PURE__ */ e(ct, { live: o, time: a })
245
+ /* @__PURE__ */ e(lt, { title: t, subtitle: n }),
246
+ /* @__PURE__ */ e(ut, { live: o, time: a })
247
247
  ]
248
248
  }
249
249
  );
250
250
  }
251
- const dt = "oraculo__OraculoEventLabel-module__label___c64Xw", ut = {
252
- label: dt
251
+ const mt = "oraculo__OraculoEventLabel-module__label___c64Xw", ht = {
252
+ label: mt
253
253
  };
254
- function Pe({ text: t }) {
255
- return /* @__PURE__ */ e("span", { className: ut.label, children: t });
254
+ function ze({ text: t }) {
255
+ return /* @__PURE__ */ e("span", { className: ht.label, children: t });
256
256
  }
257
- const pt = "oraculo__OraculoEventLeague-module__container___rdk4F", mt = {
258
- container: pt
257
+ const ft = "oraculo__OraculoEventLeague-module__container___rdk4F", gt = {
258
+ container: ft
259
259
  };
260
- function We({ title: t }) {
261
- return /* @__PURE__ */ e("div", { className: mt.container, children: t.toUpperCase() });
260
+ function je({ title: t }) {
261
+ return /* @__PURE__ */ e("div", { className: gt.container, children: t.toUpperCase() });
262
262
  }
263
- const ht = "oraculo__OraculoEventScore-module__scoreWrapper___fWwEr", ft = "oraculo__OraculoEventScore-module__name___r4uL6", gt = "oraculo__OraculoEventScore-module__score___Xl03M", xt = "oraculo__OraculoEventScore-module__normal___cCNFz", bt = "oraculo__OraculoEventScore-module__small___fVt8E", ie = {
264
- scoreWrapper: ht,
265
- name: ft,
266
- score: gt,
267
- normal: xt,
268
- small: bt
263
+ const xt = "oraculo__OraculoEventScore-module__scoreWrapper___fWwEr", bt = "oraculo__OraculoEventScore-module__name___r4uL6", _t = "oraculo__OraculoEventScore-module__score___Xl03M", vt = "oraculo__OraculoEventScore-module__normal___cCNFz", wt = "oraculo__OraculoEventScore-module__small___fVt8E", ie = {
264
+ scoreWrapper: xt,
265
+ name: bt,
266
+ score: _t,
267
+ normal: vt,
268
+ small: wt
269
269
  };
270
- function Fe({ text: t, name: n, size: o = "normal" }) {
271
- return /* @__PURE__ */ m(
270
+ function Ue({ text: t, name: n, size: o = "normal" }) {
271
+ return /* @__PURE__ */ h(
272
272
  "div",
273
273
  {
274
274
  className: `${ie.scoreWrapper} ${ie[o]}`,
@@ -279,23 +279,23 @@ function Fe({ text: t, name: n, size: o = "normal" }) {
279
279
  }
280
280
  );
281
281
  }
282
- const _t = "oraculo__OraculoEventTeamInfo-module__team___UfpUs", vt = "oraculo__OraculoEventTeamInfo-module__regular___ag826", wt = "oraculo__OraculoEventTeamInfo-module__compact___RCNOs", yt = "oraculo__OraculoEventTeamInfo-module__logo___fKCl3", St = "oraculo__OraculoEventTeamInfo-module__name___4ikm-", Et = "oraculo__OraculoEventTeamInfo-module__skeleton___Yfaxh", se = {
283
- team: _t,
284
- regular: vt,
285
- compact: wt,
286
- logo: yt,
287
- name: St,
288
- skeleton: Et
289
- }, Ct = "oraculo__OraculoTeamPolo-module__polo___BisRg", kt = "oraculo__OraculoTeamPolo-module__svgWrapper___HRKNX", Ot = "oraculo__OraculoTeamPolo-module__shadow___-3DXb", It = "oraculo__OraculoTeamPolo-module__highlight___1etm7", le = {
290
- polo: Ct,
291
- svgWrapper: kt,
292
- shadow: Ot,
293
- highlight: It
282
+ const yt = "oraculo__OraculoEventTeamInfo-module__team___UfpUs", St = "oraculo__OraculoEventTeamInfo-module__regular___ag826", Et = "oraculo__OraculoEventTeamInfo-module__compact___RCNOs", Ct = "oraculo__OraculoEventTeamInfo-module__logo___fKCl3", kt = "oraculo__OraculoEventTeamInfo-module__name___4ikm-", Ot = "oraculo__OraculoEventTeamInfo-module__skeleton___Yfaxh", se = {
283
+ team: yt,
284
+ regular: St,
285
+ compact: Et,
286
+ logo: Ct,
287
+ name: kt,
288
+ skeleton: Ot
289
+ }, It = "oraculo__OraculoTeamPolo-module__polo___BisRg", $t = "oraculo__OraculoTeamPolo-module__svgWrapper___HRKNX", Nt = "oraculo__OraculoTeamPolo-module__shadow___-3DXb", Tt = "oraculo__OraculoTeamPolo-module__highlight___1etm7", le = {
290
+ polo: It,
291
+ svgWrapper: $t,
292
+ shadow: Nt,
293
+ highlight: Tt
294
294
  };
295
- function $t({ jersey: t, className: n }) {
295
+ function Ft({ jersey: t, className: n }) {
296
296
  const o = `#${t.base}`, a = t.sleeve ? `#${t.sleeve}` : o, i = t.stripes ? `#${t.stripes}` : null, r = t.sleevelong ? `#${t.sleevelong}` : null;
297
- return /* @__PURE__ */ m("div", { className: `${le.polo} ${n != null ? n : ""}`, children: [
298
- /* @__PURE__ */ e("div", { className: le.svgWrapper, children: /* @__PURE__ */ m("svg", { viewBox: "0 0 656 656", "aria-hidden": !0, children: [
297
+ return /* @__PURE__ */ h("div", { className: `${le.polo} ${n != null ? n : ""}`, children: [
298
+ /* @__PURE__ */ e("div", { className: le.svgWrapper, children: /* @__PURE__ */ h("svg", { viewBox: "0 0 656 656", "aria-hidden": !0, children: [
299
299
  /* @__PURE__ */ e(
300
300
  "path",
301
301
  {
@@ -303,7 +303,7 @@ function $t({ jersey: t, className: n }) {
303
303
  d: "m62 265 5.8-17c-.4-.7-.6-1.5-.4-2 .2-.7.8-1.2 1.2-1.4l1.2-4 9-21.6c.2-1 1-3.5 2.4-6.4a69.9 69.9 0 0 1 4.1-17.2l2.9-7 2.9-11.4c1.7-5.8 5.2-18.4 5.8-22 .6-3.6 6.8-19 9.8-26.2.4-.9 2.4-4.7 7.2-12.8 5.4-12.2 23.5-27.2 32-33.1l6.6-3.7 7.9-3.6 17.3-6.2 16.6-7.1L215 52c7-4.1 21.8-12.5 24.1-13.2 2.3-.8 5-3.5 6-4.7 1.2-1.2 4.2-3.8 6.6-4.7 2.3-1 8.2-6.8 10.8-9.6 1.6-1.4 3.8-4.7 9.2-7.5 5.3-2.9 20.4-4 27.2-4.3h25.6l16.7.3 14.1.6 10.3.7 9.5 1.7c6.4.6 12.6 4.3 15.4 8l2.7 3.1 8.9 8 1.8.7 4.9 3 2.7 3.5c4.2 2.2 13.1 7.1 15.2 8.7 2 1.6 30.1 15.4 44 22 8 3.2 39 12.3 55.3 30 5.2 4.3 7 7.8 11.4 12.4 5.1 5.3 15.1 29 16.9 32 1.4 2.6 5 17 6.8 24l4.8 20.5 8.4 29 8.9 22.7 2.3 5.4.6 1.5c.5.6 1.4 2 1 2.6-.2.6 0 2 .2 2.7l1 2.6 2 5.8 2.2 5.9c.3 1.3-4.3 4-6.6 5.2l-11.1 5-12.6 4.7-15 5-14.6 4.6-10.9 2.4a66 66 0 0 1-8.6 1.4c-3.4.3-4.7-.4-4.9-.8l-5-12.3-1.9-3.8-1.8-1.6.1-.8v-1l-.4-1.8-1.3-4.1-3.3-9-1.3-2-2.2-5.7-2.5-.3-1 .8v2l-2.7 13.1-8.7 58-.9 6.4-.2 7.9c0 3-1 16-1.7 18.3l-2.5 9-.2 7.6-.3 8.7-.3 7.5.3 4 .5 15c.3 1.9-.6 7-1.1 9.3-.6 2.4-1.6 7.5-1.4 8.8.3 1.4-.2 4.4-.5 5.8l-1.3 8.9c-.2 1.4-.8 5-1.3 7.2.7 1.6 4.7 14.6 5.9 17.8 1.2 3.3 4.8 19.4 5 20.7.3 1 1.1 7.8 1.5 11 .1 2.5.3 8 .2 10 0 2-.8 6.6-1.1 8.6-.2 1.7-.7 5.5-1.2 7s-1.2 8.5-1.4 11.8A81.1 81.1 0 0 1 477 552l.3 7.1.2 6.5 1.4 17.7.5 6 1.5 7.7.4 4.6c.3 2.1.7 7 .7 10.1.3 3-2.5 6-4 7 0 .2-1.2 1-4.6 3-6.4 5-26.3 11.6-35.5 14.3a379.2 379.2 0 0 1-58.6 11.2c-2.3.8-27 2.2-39 2.7-8.3 0-27 0-34.5-.4-11.5.9-47.4-4.8-63.9-7.7-6.3-.9-42.1-10.4-48-14.4-3.7-2.4-14.3-8-16.9-9.7a10.7 10.7 0 0 1-4.1-5.4c-.3-1 .1-8.6.4-12.3l.6-5 1.4-9.6 1-8 .3-4.3-.4-7.7-1-10.8v-13.8l.7-10 1.1-7.7 1.8-8 2.8-9.5 3.3-9.3a78 78 0 0 1-2.5-20.8 1112.2 1112.2 0 0 1 .6-14.1c-.1-.7 2.1-10.2 3.3-15l1-3.8-.1-.8c-1.4-8.3-1.5-14-1.9-15.4a78 78 0 0 1 .4-10.9l2-6.7.4-2-.4-1.5a67.6 67.6 0 0 1-7.3-27l-.2-7.7.5-5.4.3-1.5.4-3.9.7-5 .2-2.2-.2-.4-.3-6-1-3.1-.3-4-.7-7.6-1.5-8.3-.8-4.2-1.4-9.2-.4-4.3L172 279l-2.2-14.6a545 545 0 0 1-1.7-8.5c-.1-1-2-2.1-3-2.6 0 .6-.6 1.5-1.7 2-1.2.7-2.4 1.3-2.7 2.2l-.8 4.7a15 15 0 0 1-2.5 4.1 16.4 16.4 0 0 0-2.6 6.3l-.3 2.4v1.3l-1.4 1.1-.3.3-6 14.5c-.7 2.3-1.3 1.8-1.9 1.5l-10.5-3.1-9-3-18.3-6-20-6.8-13-4.8c-2.1-1-7-3-9.4-3.8-2.5-.8-3-1.3-2.8-1.4Z"
304
304
  }
305
305
  ),
306
- i && /* @__PURE__ */ m(oe, { children: [
306
+ i && /* @__PURE__ */ h(oe, { children: [
307
307
  /* @__PURE__ */ e("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" }),
308
308
  /* @__PURE__ */ e("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" })
309
309
  ] }),
@@ -351,10 +351,10 @@ function $t({ jersey: t, className: n }) {
351
351
  )
352
352
  ] });
353
353
  }
354
- function me({ name: t, jersey: n, size: o = "regular" }) {
355
- return /* @__PURE__ */ m("div", { className: `oli-font ${se.team} ${se[o]}`, children: [
354
+ function he({ name: t, jersey: n, size: o = "regular" }) {
355
+ return /* @__PURE__ */ h("div", { className: `oli-font ${se.team} ${se[o]}`, children: [
356
356
  n != null && n.base ? /* @__PURE__ */ e(
357
- $t,
357
+ Ft,
358
358
  {
359
359
  jersey: n,
360
360
  className: `${se.logo}`
@@ -363,21 +363,21 @@ function me({ name: t, jersey: n, size: o = "regular" }) {
363
363
  /* @__PURE__ */ e("span", { className: se.name, children: t })
364
364
  ] });
365
365
  }
366
- function Nt(t, n, { enabled: o = !0 } = {}) {
366
+ function Rt(t, n, { enabled: o = !0 } = {}) {
367
367
  const a = H(null);
368
- K(() => {
368
+ q(() => {
369
369
  if (!o) return;
370
370
  const i = t.current;
371
371
  if (!i) return;
372
372
  const r = (s) => {
373
- const d = n.current;
374
- if (!d || !d.go) return;
375
- const { deltaX: c, deltaY: h } = s;
376
- if (Math.abs(c) <= Math.abs(h) || Math.abs(c) < 2) return;
373
+ const l = n.current;
374
+ if (!l || !l.go) return;
375
+ const { deltaX: c, deltaY: f } = s;
376
+ if (Math.abs(c) <= Math.abs(f) || Math.abs(c) < 2) return;
377
377
  s.preventDefault();
378
- const b = c > 0 ? ">" : "<";
378
+ const x = c > 0 ? ">" : "<";
379
379
  a.current === null && (a.current = requestAnimationFrame(() => {
380
- a.current = null, d.go(b);
380
+ a.current = null, l.go(x);
381
381
  }));
382
382
  };
383
383
  return i.addEventListener("wheel", r, { passive: !1 }), () => {
@@ -385,7 +385,7 @@ function Nt(t, n, { enabled: o = !0 } = {}) {
385
385
  };
386
386
  }, [o, t, n]);
387
387
  }
388
- const Tt = Ye, Mt = Qe, te = Xe(
388
+ const Mt = tt, Lt = nt, te = Ze(
389
389
  ({
390
390
  items: t = [],
391
391
  renderItem: n,
@@ -394,47 +394,82 @@ const Tt = Ye, Mt = Qe, te = Xe(
394
394
  breakpoints: i,
395
395
  options: r = {},
396
396
  className: s = "",
397
- onMove: d,
397
+ onMove: l,
398
398
  useIndexAsKey: c = !1,
399
- enableHorizontalWheel: h = !0
400
- }, b) => {
401
- const S = H(null), l = H(null);
402
- Nt(l, S, {
403
- enabled: h
404
- }), Je(b, () => ({
399
+ enableHorizontalWheel: f = !0
400
+ }, x) => {
401
+ const v = H(null), d = H(null), C = H(t.length);
402
+ Rt(d, v, {
403
+ enabled: f
404
+ }), Qe(x, () => ({
405
405
  next: () => {
406
- var E;
407
- return (E = S.current) == null ? void 0 : E.go(">");
406
+ var m;
407
+ return (m = v.current) == null ? void 0 : m.go(">");
408
408
  },
409
409
  prev: () => {
410
- var E;
411
- return (E = S.current) == null ? void 0 : E.go("<");
410
+ var m;
411
+ return (m = v.current) == null ? void 0 : m.go("<");
412
412
  },
413
- go: (E) => {
414
- var O;
415
- return (O = S.current) == null ? void 0 : O.go(E);
413
+ go: (m) => {
414
+ var E;
415
+ return (E = v.current) == null ? void 0 : E.go(m);
416
416
  }
417
417
  }));
418
- const w = (E) => {
419
- var F;
420
- const O = E.Components.Slides, f = E.Components.Controller, v = E.root.querySelector(".splide__track"), R = (F = v == null ? void 0 : v.clientWidth) != null ? F : 0, $ = f.getIndex(), T = O.getLength();
421
- let N = 0, L = $;
422
- for (let P = $; P < T; P++) {
423
- const u = O.getAt(P);
424
- if (!u || (N += u.slide.getBoundingClientRect().width, N > R))
425
- break;
426
- L = P;
418
+ const y = (m) => {
419
+ var u;
420
+ const E = m.Components.Slides, k = m.Components.Controller, I = m.root.querySelector(".splide__track"), N = (u = I == null ? void 0 : I.clientWidth) != null ? u : 0, F = k.getIndex(), P = E.getLength();
421
+ let L = 0, p = F;
422
+ for (let _ = F; _ < P; _++) {
423
+ const g = E.getAt(_);
424
+ if (!g || (L += g.slide.offsetWidth, L > N)) break;
425
+ p = _;
426
+ }
427
+ return { visibleStart: F, visibleEnd: p };
428
+ }, O = (m) => {
429
+ const E = m.root.querySelector(".splide__track"), k = m.root.querySelector(".splide__list");
430
+ return !E || !k ? !1 : k.scrollWidth > E.clientWidth + 1;
431
+ }, w = ue((m) => {
432
+ const k = m.Components.Slides.getLength();
433
+ if (!O(m)) {
434
+ l == null || l({
435
+ index: 0,
436
+ isStart: !0,
437
+ isEnd: !0,
438
+ total: k,
439
+ visibleStart: 0,
440
+ visibleEnd: k - 1
441
+ });
442
+ return;
427
443
  }
428
- return { visibleStart: $, visibleEnd: L };
429
- }, y = ve((E) => {
430
- const O = E.Components.Controller, f = O.getIndex(), v = O.getEnd(), R = f === 0, $ = f >= v, T = E.Components.Slides.getLength(), { visibleStart: N, visibleEnd: L } = w(E);
431
- d == null || d({ index: f, isStart: R, isEnd: $, total: T, visibleEnd: L, visibleStart: N });
432
- }, [d]), k = ve(
433
- (E) => {
434
- y(E);
444
+ const { visibleStart: I, visibleEnd: N } = y(m), F = I === 0, P = N === k - 1, L = m.Components.Controller.getIndex();
445
+ l == null || l({
446
+ index: L,
447
+ isStart: F,
448
+ isEnd: P,
449
+ total: k,
450
+ visibleStart: I,
451
+ visibleEnd: N
452
+ });
453
+ }, [l]);
454
+ We.useEffect(() => {
455
+ var k;
456
+ const m = (k = v.current) == null ? void 0 : k.splide;
457
+ if (!m) return;
458
+ const E = C.current !== t.length;
459
+ C.current = t.length, E && requestAnimationFrame(() => {
460
+ m.refresh(), w(m);
461
+ });
462
+ }, [t.length, w]);
463
+ const M = ue(() => {
464
+ var E;
465
+ const m = (E = v.current) == null ? void 0 : E.splide;
466
+ m && (m.go(0, !1), w(m));
467
+ }, [w]), B = ue(
468
+ (m) => {
469
+ w(m);
435
470
  },
436
- [y]
437
- ), C = {
471
+ [w]
472
+ ), S = {
438
473
  type: "slide",
439
474
  trimSpace: !1,
440
475
  drag: !0,
@@ -447,33 +482,34 @@ const Tt = Ye, Mt = Qe, te = Xe(
447
482
  gap: a,
448
483
  breakpoints: i,
449
484
  ...r,
450
- ...h ? { wheel: !1 } : {}
485
+ ...f ? { wheel: !1 } : {}
451
486
  };
452
- return /* @__PURE__ */ e("div", { ref: l, className: s, style: { width: "100%" }, children: /* @__PURE__ */ e(
453
- Tt,
487
+ return /* @__PURE__ */ e("div", { ref: d, className: s, style: { width: "100%" }, children: /* @__PURE__ */ e(
488
+ Mt,
454
489
  {
455
- ref: S,
456
- options: C,
457
- onMove: y,
458
- onMounted: k,
459
- children: t.map((E, O) => {
460
- var f;
461
- return /* @__PURE__ */ e(Mt, { children: n(E, O) }, c ? O : (f = E.id) != null ? f : O);
490
+ ref: v,
491
+ options: S,
492
+ onMove: w,
493
+ onMounted: B,
494
+ onResize: M,
495
+ children: t.map((m, E) => {
496
+ var k;
497
+ return /* @__PURE__ */ e(Lt, { children: n(m, E) }, c ? E : (k = m.id) != null ? k : E);
462
498
  })
463
499
  }
464
500
  ) });
465
501
  }
466
- ), ue = ({
502
+ ), pe = ({
467
503
  imageUrl: t,
468
504
  onClick: n,
469
505
  size: o = "sm",
470
506
  fillParent: a = !1
471
507
  }) => {
472
- const i = o === "lg" ? { w: 280, h: 352 } : { w: 152, h: 168 }, r = (d) => {
473
- d.stopPropagation(), n == null || n();
508
+ const i = o === "lg" ? { w: 280, h: 352 } : { w: 152, h: 168 }, r = (l) => {
509
+ l.stopPropagation(), n == null || n();
474
510
  }, s = a ? { width: "100%", height: "100%" } : { width: `${i.w}px`, height: `${i.h}px` };
475
- return /* @__PURE__ */ m(
476
- M,
511
+ return /* @__PURE__ */ h(
512
+ T,
477
513
  {
478
514
  onClick: n,
479
515
  role: "button",
@@ -515,7 +551,7 @@ const Tt = Ye, Mt = Qe, te = Xe(
515
551
  }
516
552
  ),
517
553
  /* @__PURE__ */ e(
518
- M,
554
+ T,
519
555
  {
520
556
  className: "oraculo-game-card-overlay",
521
557
  sx: {
@@ -530,7 +566,7 @@ const Tt = Ye, Mt = Qe, te = Xe(
530
566
  }
531
567
  ),
532
568
  /* @__PURE__ */ e(
533
- M,
569
+ T,
534
570
  {
535
571
  className: "oraculo-game-card-btn",
536
572
  sx: {
@@ -543,14 +579,14 @@ const Tt = Ye, Mt = Qe, te = Xe(
543
579
  transition: "opacity .15s ease, transform .15s ease",
544
580
  pointerEvents: "none"
545
581
  },
546
- children: /* @__PURE__ */ e(j, { variant: "primary", size: "md", onClick: r, children: "Jugar" })
582
+ children: /* @__PURE__ */ e(G, { variant: "primary", size: "md", onClick: r, children: "Jugar" })
547
583
  }
548
584
  )
549
585
  ]
550
586
  }
551
587
  );
552
588
  };
553
- function Rt({
589
+ function Wt({
554
590
  imageUrl: t,
555
591
  orden: n = 1,
556
592
  onClick: o,
@@ -560,32 +596,32 @@ function Rt({
560
596
  md: { w: 186, h: 264, r: 22.6, font: 64 }
561
597
  }
562
598
  }) {
563
- var S, l, w, y;
564
- const r = (k, C) => {
565
- var E, O, f, v;
599
+ var v, d, C, y;
600
+ const r = (O, w) => {
601
+ var M, B, S, m;
566
602
  return {
567
- xs: (O = (E = i.xs) == null ? void 0 : E[k]) != null ? O : C,
568
- md: (v = (f = i.md) == null ? void 0 : f[k]) != null ? v : C
603
+ xs: (B = (M = i.xs) == null ? void 0 : M[O]) != null ? B : w,
604
+ md: (m = (S = i.md) == null ? void 0 : S[O]) != null ? m : w
569
605
  };
570
- }, s = r("w", 186), d = r("h", 264), c = r("r", 22.6), h = r("font", 64), b = {
571
- xs: Math.round(((l = (S = i.xs) == null ? void 0 : S.font) != null ? l : 64) * 0.28),
572
- md: Math.round(((y = (w = i.md) == null ? void 0 : w.font) != null ? y : 64) * 0.28)
606
+ }, s = r("w", 186), l = r("h", 264), c = r("r", 22.6), f = r("font", 64), x = {
607
+ xs: Math.round(((d = (v = i.xs) == null ? void 0 : v.font) != null ? d : 64) * 0.28),
608
+ md: Math.round(((y = (C = i.md) == null ? void 0 : C.font) != null ? y : 64) * 0.28)
573
609
  };
574
- return /* @__PURE__ */ m(
575
- M,
610
+ return /* @__PURE__ */ h(
611
+ T,
576
612
  {
577
613
  sx: {
578
614
  position: "relative",
579
615
  width: "100%",
580
616
  maxWidth: { xs: `${s.xs}px`, md: `${s.md}px` },
581
617
  aspectRatio: {
582
- xs: `${s.xs}/${d.xs}`,
583
- md: `${s.md}/${d.md}`
618
+ xs: `${s.xs}/${l.xs}`,
619
+ md: `${s.md}/${l.md}`
584
620
  },
585
621
  borderRadius: { xs: `${c.xs}px`, md: `${c.md}px` },
586
622
  boxSizing: "border-box",
587
623
  overflow: "visible",
588
- pb: { xs: `${b.xs}px`, md: `${b.md}px` },
624
+ pb: { xs: `${x.xs}px`, md: `${x.md}px` },
589
625
  "&::before": {
590
626
  content: '""',
591
627
  position: "absolute",
@@ -599,7 +635,7 @@ function Rt({
599
635
  },
600
636
  children: [
601
637
  /* @__PURE__ */ e(
602
- M,
638
+ T,
603
639
  {
604
640
  sx: {
605
641
  position: "absolute",
@@ -622,7 +658,7 @@ function Rt({
622
658
  }
623
659
  }
624
660
  ) : /* @__PURE__ */ e(
625
- ue,
661
+ pe,
626
662
  {
627
663
  imageUrl: t,
628
664
  onClick: o,
@@ -633,20 +669,20 @@ function Rt({
633
669
  }
634
670
  ),
635
671
  /* @__PURE__ */ e(
636
- M,
672
+ T,
637
673
  {
638
674
  component: "span",
639
675
  sx: {
640
676
  position: "absolute",
641
677
  left: 8,
642
678
  bottom: {
643
- xs: `-${b.xs}px`,
644
- md: `-${b.md}px`
679
+ xs: `-${x.xs}px`,
680
+ md: `-${x.md}px`
645
681
  },
646
682
  fontFamily: "secondary",
647
683
  fontSize: {
648
- xs: `${h.xs}px`,
649
- md: `${h.md}px`
684
+ xs: `${f.xs}px`,
685
+ md: `${f.md}px`
650
686
  },
651
687
  lineHeight: 1,
652
688
  color: "#3CC666",
@@ -661,7 +697,7 @@ function Rt({
661
697
  }
662
698
  );
663
699
  }
664
- const Lt = ({
700
+ const Bt = ({
665
701
  logo: t,
666
702
  provider: n,
667
703
  providerName: o,
@@ -669,8 +705,8 @@ const Lt = ({
669
705
  onClick: i
670
706
  }) => {
671
707
  var r;
672
- return /* @__PURE__ */ m(
673
- M,
708
+ return /* @__PURE__ */ h(
709
+ T,
674
710
  {
675
711
  onClick: i,
676
712
  sx: {
@@ -694,7 +730,7 @@ const Lt = ({
694
730
  },
695
731
  children: [
696
732
  /* @__PURE__ */ e(
697
- M,
733
+ T,
698
734
  {
699
735
  component: "img",
700
736
  src: t,
@@ -710,7 +746,7 @@ const Lt = ({
710
746
  }
711
747
  ),
712
748
  /* @__PURE__ */ e(
713
- M,
749
+ T,
714
750
  {
715
751
  className: "orc-live-provider-label",
716
752
  sx: {
@@ -724,7 +760,7 @@ const Lt = ({
724
760
  pointerEvents: "none"
725
761
  },
726
762
  children: /* @__PURE__ */ e(
727
- J,
763
+ X,
728
764
  {
729
765
  sx: {
730
766
  color: "#fff",
@@ -740,7 +776,7 @@ const Lt = ({
740
776
  ]
741
777
  }
742
778
  );
743
- }, xe = 12, be = ({ r: t = 16 }) => /* @__PURE__ */ e(M, { sx: { width: "100%", height: "100%", borderRadius: t, overflow: "hidden" }, children: /* @__PURE__ */ e(
779
+ }, _e = 12, ve = ({ r: t = 16 }) => /* @__PURE__ */ e(T, { sx: { width: "100%", height: "100%", borderRadius: t, overflow: "hidden" }, children: /* @__PURE__ */ e(
744
780
  A,
745
781
  {
746
782
  variant: "rectangular",
@@ -755,7 +791,7 @@ const Lt = ({
755
791
  }
756
792
  }
757
793
  }
758
- ) }), Ae = ({
794
+ ) }), De = ({
759
795
  items: t,
760
796
  layout: n = "grid",
761
797
  onClick: o,
@@ -764,11 +800,9 @@ const Lt = ({
764
800
  }) => {
765
801
  var r, s;
766
802
  if (n === "mosaic") {
767
- const d = t[0];
768
- console.log("big: ", d);
769
- const c = t.slice(1, 5);
770
- return /* @__PURE__ */ m(
771
- M,
803
+ const l = t[0], c = t.slice(1, 5);
804
+ return /* @__PURE__ */ h(
805
+ T,
772
806
  {
773
807
  sx: {
774
808
  display: "grid",
@@ -785,14 +819,14 @@ const Lt = ({
785
819
  xs: "104px",
786
820
  md: "152px"
787
821
  },
788
- columnGap: `${xe}px`,
789
- rowGap: `${xe}px`,
822
+ columnGap: `${_e}px`,
823
+ rowGap: `${_e}px`,
790
824
  alignItems: "stretch",
791
825
  justifyItems: "stretch"
792
826
  },
793
827
  children: [
794
828
  /* @__PURE__ */ e(
795
- M,
829
+ T,
796
830
  {
797
831
  sx: {
798
832
  width: { xs: 184, md: 280 },
@@ -801,21 +835,21 @@ const Lt = ({
801
835
  overflow: "hidden",
802
836
  borderRadius: 2
803
837
  },
804
- children: a ? /* @__PURE__ */ e(be, {}) : d && /* @__PURE__ */ e(
805
- ue,
838
+ children: a ? /* @__PURE__ */ e(ve, {}) : l && /* @__PURE__ */ e(
839
+ pe,
806
840
  {
807
- imageUrl: `https://olimpo.bet${(s = (r = d.background) != null ? r : d.imageUrl) != null ? s : ""}`,
841
+ imageUrl: `https://olimpo.bet${(s = (r = l.background) != null ? r : l.imageUrl) != null ? s : ""}`,
808
842
  size: "lg",
809
843
  fillParent: !0,
810
- onClick: () => o == null ? void 0 : o(d, 0)
844
+ onClick: () => o == null ? void 0 : o(l, 0)
811
845
  }
812
846
  )
813
847
  }
814
848
  ),
815
- (a ? Array.from({ length: 4 }) : c).map((h, b) => {
816
- var S, l;
849
+ (a ? Array.from({ length: 4 }) : c).map((f, x) => {
850
+ var v, d;
817
851
  return /* @__PURE__ */ e(
818
- M,
852
+ T,
819
853
  {
820
854
  sx: {
821
855
  width: { xs: 104, md: 152 },
@@ -823,17 +857,17 @@ const Lt = ({
823
857
  overflow: "hidden",
824
858
  borderRadius: 2
825
859
  },
826
- children: a ? /* @__PURE__ */ e(be, {}) : /* @__PURE__ */ e(
827
- ue,
860
+ children: a ? /* @__PURE__ */ e(ve, {}) : /* @__PURE__ */ e(
861
+ pe,
828
862
  {
829
- imageUrl: `https://olimpo.bet${(l = (S = h.background) != null ? S : h.imageUrl) != null ? l : ""}`,
863
+ imageUrl: `https://olimpo.bet${(d = (v = f.background) != null ? v : f.imageUrl) != null ? d : ""}`,
830
864
  size: "sm",
831
865
  fillParent: !0,
832
- onClick: () => o == null ? void 0 : o(h, b + 1)
866
+ onClick: () => o == null ? void 0 : o(f, x + 1)
833
867
  }
834
868
  )
835
869
  },
836
- a ? `sk-${b}` : h.id
870
+ a ? `sk-${x}` : f.id
837
871
  );
838
872
  })
839
873
  ]
@@ -841,7 +875,7 @@ const Lt = ({
841
875
  );
842
876
  }
843
877
  return /* @__PURE__ */ e(
844
- M,
878
+ T,
845
879
  {
846
880
  sx: {
847
881
  display: "grid",
@@ -853,31 +887,31 @@ const Lt = ({
853
887
  xs: "repeat(2, 112px)",
854
888
  md: "repeat(2, 168px)"
855
889
  },
856
- gap: `${xe}px`,
890
+ gap: `${_e}px`,
857
891
  gridAutoFlow: "column"
858
892
  },
859
- children: (a ? Array.from({ length: i }) : t).map((d, c) => {
860
- var h, b, S;
893
+ children: (a ? Array.from({ length: i }) : t).map((l, c) => {
894
+ var f, x, v;
861
895
  return /* @__PURE__ */ e(
862
- M,
896
+ T,
863
897
  {
864
898
  sx: { overflow: "hidden", borderRadius: 2 },
865
- children: a ? /* @__PURE__ */ e(be, {}) : /* @__PURE__ */ e(
866
- ue,
899
+ children: a ? /* @__PURE__ */ e(ve, {}) : /* @__PURE__ */ e(
900
+ pe,
867
901
  {
868
- imageUrl: `https://olimpo.bet${(b = (h = d.background) != null ? h : d.imageUrl) != null ? b : ""}`,
902
+ imageUrl: `https://olimpo.bet${(x = (f = l.background) != null ? f : l.imageUrl) != null ? x : ""}`,
869
903
  size: "sm",
870
904
  fillParent: !0,
871
- onClick: () => o == null ? void 0 : o(d, c)
905
+ onClick: () => o == null ? void 0 : o(l, c)
872
906
  }
873
907
  )
874
908
  },
875
- a ? `sk-${c}` : (S = d.id) != null ? S : c
909
+ a ? `sk-${c}` : (v = l.id) != null ? v : c
876
910
  );
877
911
  })
878
912
  }
879
913
  );
880
- }, Ce = ({
914
+ }, ke = ({
881
915
  title: t,
882
916
  amount: n,
883
917
  subtitle: o,
@@ -885,39 +919,39 @@ const Lt = ({
885
919
  onButtonClick: i,
886
920
  backgroundImage: r,
887
921
  alt: s,
888
- className: d = "",
922
+ className: l = "",
889
923
  variant: c = "small"
890
924
  }) => {
891
- const h = n ? n.slice(0, 2) : "", b = n ? n.slice(2) : "", S = c === "large";
892
- return /* @__PURE__ */ m(
893
- M,
925
+ const f = n ? n.slice(0, 2) : "", x = n ? n.slice(2) : "", v = c === "large";
926
+ return /* @__PURE__ */ h(
927
+ T,
894
928
  {
895
- className: d,
929
+ className: l,
896
930
  sx: {
897
931
  position: "relative",
898
932
  width: "100%",
899
933
  maxWidth: {
900
934
  xs: 328,
901
- md: S ? 618 : 456
935
+ md: v ? 618 : 456
902
936
  },
903
937
  mx: "auto"
904
938
  },
905
939
  children: [
906
940
  r && /* @__PURE__ */ e(
907
- M,
941
+ T,
908
942
  {
909
943
  sx: {
910
944
  position: "relative",
911
945
  width: "100%",
912
946
  aspectRatio: {
913
947
  xs: "328 / 188",
914
- md: S ? "618 / 346" : "456 / 272"
948
+ md: v ? "618 / 346" : "456 / 272"
915
949
  },
916
950
  borderRadius: "14px",
917
951
  overflow: "hidden"
918
952
  },
919
953
  children: /* @__PURE__ */ e(
920
- M,
954
+ T,
921
955
  {
922
956
  component: "img",
923
957
  src: r,
@@ -937,7 +971,7 @@ const Lt = ({
937
971
  }
938
972
  ),
939
973
  /* @__PURE__ */ e(
940
- M,
974
+ T,
941
975
  {
942
976
  sx: {
943
977
  position: "absolute",
@@ -950,8 +984,8 @@ const Lt = ({
950
984
  pl: "14%",
951
985
  pr: { xs: "14%", lg: "15%" }
952
986
  },
953
- children: /* @__PURE__ */ m(
954
- M,
987
+ children: /* @__PURE__ */ h(
988
+ T,
955
989
  {
956
990
  sx: {
957
991
  maxWidth: "60%",
@@ -961,7 +995,7 @@ const Lt = ({
961
995
  },
962
996
  children: [
963
997
  t && /* @__PURE__ */ e(
964
- J,
998
+ X,
965
999
  {
966
1000
  sx: {
967
1001
  fontSize: { xs: 12, md: 20 },
@@ -971,8 +1005,8 @@ const Lt = ({
971
1005
  children: t
972
1006
  }
973
1007
  ),
974
- n && /* @__PURE__ */ m(
975
- M,
1008
+ n && /* @__PURE__ */ h(
1009
+ T,
976
1010
  {
977
1011
  component: "p",
978
1012
  sx: {
@@ -990,26 +1024,26 @@ const Lt = ({
990
1024
  },
991
1025
  children: [
992
1026
  /* @__PURE__ */ e(
993
- M,
1027
+ T,
994
1028
  {
995
1029
  component: "span",
996
1030
  sx: { fontSize: { xs: 35, md: 48 }, mr: 0.5 },
997
- children: h
1031
+ children: f
998
1032
  }
999
1033
  ),
1000
1034
  /* @__PURE__ */ e(
1001
- M,
1035
+ T,
1002
1036
  {
1003
1037
  component: "span",
1004
1038
  sx: { fontSize: { xs: 52, md: 77 } },
1005
- children: b
1039
+ children: x
1006
1040
  }
1007
1041
  )
1008
1042
  ]
1009
1043
  }
1010
1044
  ),
1011
1045
  o && /* @__PURE__ */ e(
1012
- J,
1046
+ X,
1013
1047
  {
1014
1048
  sx: {
1015
1049
  pb: "20px",
@@ -1020,7 +1054,7 @@ const Lt = ({
1020
1054
  children: o
1021
1055
  }
1022
1056
  ),
1023
- a && /* @__PURE__ */ e(j, { onClick: i, children: a })
1057
+ a && /* @__PURE__ */ e(G, { onClick: i, children: a })
1024
1058
  ]
1025
1059
  }
1026
1060
  )
@@ -1029,7 +1063,7 @@ const Lt = ({
1029
1063
  ]
1030
1064
  }
1031
1065
  );
1032
- }, Bt = ({
1066
+ }, Pt = ({
1033
1067
  text: t,
1034
1068
  buttonLabel: n = "Conoce más",
1035
1069
  onClick: o,
@@ -1037,7 +1071,7 @@ const Lt = ({
1037
1071
  imgSrcMobile: i,
1038
1072
  imgSrcDesktopBg: r,
1039
1073
  imgSrcDesktopLogo: s
1040
- }) => /* @__PURE__ */ m(oe, { children: [
1074
+ }) => /* @__PURE__ */ h(oe, { children: [
1041
1075
  /* @__PURE__ */ e("div", { className: "orc-co-bgMobile", children: /* @__PURE__ */ e(
1042
1076
  "img",
1043
1077
  {
@@ -1046,7 +1080,7 @@ const Lt = ({
1046
1080
  className: "orc-co-bgMobileImg"
1047
1081
  }
1048
1082
  ) }),
1049
- /* @__PURE__ */ m("div", { className: "orc-co-bgDesktop", children: [
1083
+ /* @__PURE__ */ h("div", { className: "orc-co-bgDesktop", children: [
1050
1084
  r && /* @__PURE__ */ e("div", { className: "orc-co-fillHost", children: /* @__PURE__ */ e(
1051
1085
  "img",
1052
1086
  {
@@ -1055,7 +1089,7 @@ const Lt = ({
1055
1089
  className: "orc-co-bgDesktopImg"
1056
1090
  }
1057
1091
  ) }),
1058
- /* @__PURE__ */ m("div", { className: "orc-co-desktopContent", children: [
1092
+ /* @__PURE__ */ h("div", { className: "orc-co-desktopContent", children: [
1059
1093
  s && /* @__PURE__ */ e(
1060
1094
  "img",
1061
1095
  {
@@ -1065,37 +1099,37 @@ const Lt = ({
1065
1099
  }
1066
1100
  ),
1067
1101
  /* @__PURE__ */ e("p", { className: "orc-co-captionDesktop", children: t }),
1068
- /* @__PURE__ */ e(j, { onClick: o, variant: "primary", size: "md", children: n })
1102
+ /* @__PURE__ */ e(G, { onClick: o, variant: "primary", size: "md", children: n })
1069
1103
  ] })
1070
1104
  ] }),
1071
- /* @__PURE__ */ m("div", { className: "orc-co-bottom", children: [
1105
+ /* @__PURE__ */ h("div", { className: "orc-co-bottom", children: [
1072
1106
  /* @__PURE__ */ e("p", { className: "orc-co-caption", children: t }),
1073
- /* @__PURE__ */ e(j, { onClick: o, variant: "primary", size: "md", children: n })
1107
+ /* @__PURE__ */ e(G, { onClick: o, variant: "primary", size: "md", children: n })
1074
1108
  ] })
1075
- ] }), Pt = "oraculo__OraculoEventCombinadasCard-module__card___ulQeY", Wt = "oraculo__OraculoEventCombinadasCard-module__combinadas___Gxrld", Ft = "oraculo__OraculoEventCombinadasCard-module__apuestaItem___YnYMy", At = "oraculo__OraculoEventCombinadasCard-module__lineContainer___G5rbU", zt = "oraculo__OraculoEventCombinadasCard-module__circle___eehm-", Ut = "oraculo__OraculoEventCombinadasCard-module__line___Eb2pK", Gt = "oraculo__OraculoEventCombinadasCard-module__apuestaText___b5s7S", Dt = "oraculo__OraculoEventCombinadasCard-module__cuotaTotal___Lohvu", Y = {
1076
- card: Pt,
1077
- combinadas: Wt,
1078
- apuestaItem: Ft,
1079
- lineContainer: At,
1080
- circle: zt,
1081
- line: Ut,
1082
- apuestaText: Gt,
1083
- cuotaTotal: Dt
1109
+ ] }), At = "oraculo__OraculoEventCombinadasCard-module__card___ulQeY", zt = "oraculo__OraculoEventCombinadasCard-module__combinadas___Gxrld", jt = "oraculo__OraculoEventCombinadasCard-module__apuestaItem___YnYMy", Ut = "oraculo__OraculoEventCombinadasCard-module__lineContainer___G5rbU", Dt = "oraculo__OraculoEventCombinadasCard-module__circle___eehm-", Gt = "oraculo__OraculoEventCombinadasCard-module__line___Eb2pK", Ht = "oraculo__OraculoEventCombinadasCard-module__apuestaText___b5s7S", Vt = "oraculo__OraculoEventCombinadasCard-module__cuotaTotal___Lohvu", Z = {
1110
+ card: At,
1111
+ combinadas: zt,
1112
+ apuestaItem: jt,
1113
+ lineContainer: Ut,
1114
+ circle: Dt,
1115
+ line: Gt,
1116
+ apuestaText: Ht,
1117
+ cuotaTotal: Vt
1084
1118
  };
1085
- function Se(t) {
1119
+ function Ee(t) {
1086
1120
  const n = Array.isArray(t) ? t : [t];
1087
1121
  sessionStorage.setItem("landingOutcomes", JSON.stringify(n)), window.location.href = "/deportes#in-play";
1088
1122
  }
1089
- function jt() {
1123
+ function qt() {
1090
1124
  window.location.href = "/deportes#in-play";
1091
1125
  }
1092
- function Ht() {
1126
+ function Kt() {
1093
1127
  window.location.href = "/deportes#sports-hub/football";
1094
1128
  }
1095
- function Vt() {
1129
+ function Jt() {
1096
1130
  window.location.href = "/deportes#specials";
1097
1131
  }
1098
- async function ze(t) {
1132
+ async function Ge(t) {
1099
1133
  return await (await fetch("https://api.mktolimpo.com/api/jerseys/search", {
1100
1134
  method: "POST",
1101
1135
  headers: {
@@ -1106,37 +1140,37 @@ async function ze(t) {
1106
1140
  })
1107
1141
  })).json();
1108
1142
  }
1109
- function Ue(t, n = 250) {
1143
+ function He(t, n = 250) {
1110
1144
  const [o, a] = D(t);
1111
- return K(() => {
1145
+ return q(() => {
1112
1146
  const i = setTimeout(() => a(t), n);
1113
1147
  return () => clearTimeout(i);
1114
1148
  }, [t, n]), o;
1115
1149
  }
1116
- function Kt({ event: t }) {
1150
+ function Xt({ event: t }) {
1117
1151
  var a;
1118
1152
  function n(i) {
1119
- var b;
1120
- const r = (b = i.betoffers) != null ? b : [], s = i.homeName, d = i.awayName, c = r.map((S) => {
1121
- var k, C, E, O, f;
1122
- let l = S.outcomes[0], w = "", y = l != null && l.line ? l.line / 1e3 : "";
1123
- return ["Más de", "Mas de", "Over"].includes(l == null ? void 0 : l.label) ? (w = `Más de ${y}`, l != null && l.participant && (w = `${l.participant} - ${w}`)) : ["Menos de", "Menos"].includes(l == null ? void 0 : l.label) ? (w = `Menos de ${y}`, l != null && l.participant && (w = `${l.participant} - ${w}`)) : ["Sí", "No"].includes(l == null ? void 0 : l.label) ? (w = l == null ? void 0 : l.label, l != null && l.participant && (w = `${l.participant} - ${w}`)) : ["1X", "12", "X2"].includes(l == null ? void 0 : l.label) ? l.label === "1X" ? w = `${s} o Empate` : l.label === "12" ? w = `${s} o ${d}` : l.label === "X2" && (w = `${d} o Empate`) : (l != null && l.participant ? w = l.participant : w = (k = l == null ? void 0 : l.label) != null ? k : "", y !== "" && w === l.label && (w = `${l.label} ${y}`)), {
1124
- id: (C = l == null ? void 0 : l.id) != null ? C : 0,
1125
- value: w,
1126
- label: S.criterion.label,
1127
- odds: (E = l == null ? void 0 : l.odds) != null ? E : 0,
1128
- bl: (O = l == null ? void 0 : l.label) != null ? O : 0,
1129
- position: (f = l == null ? void 0 : l.position) != null ? f : 0
1153
+ var x;
1154
+ const r = (x = i.betoffers) != null ? x : [], s = i.homeName, l = i.awayName, c = r.map((v) => {
1155
+ var O, w, M, B, S;
1156
+ let d = v.outcomes[0], C = "", y = d != null && d.line ? d.line / 1e3 : "";
1157
+ return ["Más de", "Mas de", "Over"].includes(d == null ? void 0 : d.label) ? (C = `Más de ${y}`, d != null && d.participant && (C = `${d.participant} - ${C}`)) : ["Menos de", "Menos"].includes(d == null ? void 0 : d.label) ? (C = `Menos de ${y}`, d != null && d.participant && (C = `${d.participant} - ${C}`)) : ["Sí", "No"].includes(d == null ? void 0 : d.label) ? (C = d == null ? void 0 : d.label, d != null && d.participant && (C = `${d.participant} - ${C}`)) : ["1X", "12", "X2"].includes(d == null ? void 0 : d.label) ? d.label === "1X" ? C = `${s} o Empate` : d.label === "12" ? C = `${s} o ${l}` : d.label === "X2" && (C = `${l} o Empate`) : (d != null && d.participant ? C = d.participant : C = (O = d == null ? void 0 : d.label) != null ? O : "", y !== "" && C === d.label && (C = `${d.label} ${y}`)), {
1158
+ id: (w = d == null ? void 0 : d.id) != null ? w : 0,
1159
+ value: C,
1160
+ label: v.criterion.label,
1161
+ odds: (M = d == null ? void 0 : d.odds) != null ? M : 0,
1162
+ bl: (B = d == null ? void 0 : d.label) != null ? B : 0,
1163
+ position: (S = d == null ? void 0 : d.position) != null ? S : 0
1130
1164
  };
1131
- }), h = c.reduce((S, l) => S + l.odds, 0) / 1e3;
1165
+ }), f = c.reduce((v, d) => v + d.odds, 0) / 1e3;
1132
1166
  return {
1133
1167
  outcomes: c,
1134
- total: h.toFixed(2)
1168
+ total: f.toFixed(2)
1135
1169
  };
1136
1170
  }
1137
1171
  const o = n(t);
1138
- return /* @__PURE__ */ m("div", { className: Y.card, children: [
1139
- /* @__PURE__ */ e("div", { className: Y.combinadas, children: /* @__PURE__ */ m(z, { direction: "column", spacing: 0.5, useFlexGap: !0, children: [
1172
+ return /* @__PURE__ */ h("div", { className: Z.card, children: [
1173
+ /* @__PURE__ */ e("div", { className: Z.combinadas, children: /* @__PURE__ */ h(z, { direction: "column", spacing: 0.5, useFlexGap: !0, children: [
1140
1174
  /* @__PURE__ */ e(
1141
1175
  ee,
1142
1176
  {
@@ -1146,12 +1180,12 @@ function Kt({ event: t }) {
1146
1180
  }
1147
1181
  ),
1148
1182
  /* @__PURE__ */ e("img", { loading: "lazy", src: "/assets/img/home/Combinadas/line.png" }),
1149
- /* @__PURE__ */ e(z, { direction: "column", spacing: 0.5, useFlexGap: !0, children: o.outcomes.sort((i, r) => i.position - r.position).map((i, r) => /* @__PURE__ */ m("div", { className: Y.apuestaItem, children: [
1150
- /* @__PURE__ */ m("div", { className: Y.lineContainer, children: [
1151
- /* @__PURE__ */ e("div", { className: Y.circle }),
1152
- r < o.outcomes.length - 1 && /* @__PURE__ */ e("div", { className: Y.line })
1183
+ /* @__PURE__ */ e(z, { direction: "column", spacing: 0.5, useFlexGap: !0, children: o.outcomes.sort((i, r) => i.position - r.position).map((i, r) => /* @__PURE__ */ h("div", { className: Z.apuestaItem, children: [
1184
+ /* @__PURE__ */ h("div", { className: Z.lineContainer, children: [
1185
+ /* @__PURE__ */ e("div", { className: Z.circle }),
1186
+ r < o.outcomes.length - 1 && /* @__PURE__ */ e("div", { className: Z.line })
1153
1187
  ] }),
1154
- /* @__PURE__ */ m("div", { className: Y.apuestaText, children: [
1188
+ /* @__PURE__ */ h("div", { className: Z.apuestaText, children: [
1155
1189
  /* @__PURE__ */ e("strong", { children: i.value }),
1156
1190
  " ",
1157
1191
  "| ",
@@ -1159,11 +1193,11 @@ function Kt({ event: t }) {
1159
1193
  ] })
1160
1194
  ] }, r)) })
1161
1195
  ] }) }),
1162
- /* @__PURE__ */ m("button", { onClick: () => {
1196
+ /* @__PURE__ */ h("button", { onClick: () => {
1163
1197
  var i, r;
1164
- return Se((r = (i = o == null ? void 0 : o.outcomes) == null ? void 0 : i.map((s) => s == null ? void 0 : s.id)) != null ? r : []);
1165
- }, className: Y.cuotaTotal, children: [
1166
- /* @__PURE__ */ m("span", { children: [
1198
+ return Ee((r = (i = o == null ? void 0 : o.outcomes) == null ? void 0 : i.map((s) => s == null ? void 0 : s.id)) != null ? r : []);
1199
+ }, className: Z.cuotaTotal, children: [
1200
+ /* @__PURE__ */ h("span", { children: [
1167
1201
  "Cuota total: ",
1168
1202
  /* @__PURE__ */ e("strong", { children: (((a = t.combinadoTotal) != null ? a : 0) / 1e3).toFixed(2) })
1169
1203
  ] }),
@@ -1171,7 +1205,7 @@ function Kt({ event: t }) {
1171
1205
  ] })
1172
1206
  ] });
1173
1207
  }
1174
- const X = {
1208
+ const J = {
1175
1209
  "orc-btn": "oraculo__OraculoButtonBet-module__orc-btn___jakza",
1176
1210
  "orc-btn__label": "oraculo__OraculoButtonBet-module__orc-btn__label___zNFEH",
1177
1211
  "orc-btn__icon": "oraculo__OraculoButtonBet-module__orc-btn__icon___5Rhyd",
@@ -1185,7 +1219,7 @@ const X = {
1185
1219
  "orc-btn--full": "oraculo__OraculoButtonBet-module__orc-btn--full___z-Myo",
1186
1220
  "orc-btn--fullHeight": "oraculo__OraculoButtonBet-module__orc-btn--fullHeight___pCxq1"
1187
1221
  };
1188
- function qt({
1222
+ function Yt({
1189
1223
  children: t,
1190
1224
  onClick: n,
1191
1225
  href: o,
@@ -1193,154 +1227,174 @@ function qt({
1193
1227
  rel: i,
1194
1228
  type: r = "button",
1195
1229
  disabled: s = !1,
1196
- variant: d = "primary",
1230
+ variant: l = "primary",
1197
1231
  size: c,
1198
- fullWidth: h = !1,
1199
- fullHeight: b = !1,
1200
- className: S = "",
1201
- ariaLabel: l,
1202
- leftIcon: w,
1232
+ fullWidth: f = !1,
1233
+ fullHeight: x = !1,
1234
+ className: v = "",
1235
+ ariaLabel: d,
1236
+ leftIcon: C,
1203
1237
  rightIcon: y,
1204
- iconOnly: k
1238
+ iconOnly: O
1205
1239
  }) {
1206
- const C = !!t && t !== !0, f = (!!w ? 1 : 0) + (!!y ? 1 : 0) == 1, v = k != null ? k : f && !C, R = [
1207
- X["orc-btn"],
1240
+ const w = !!t && t !== !0, S = (!!C ? 1 : 0) + (!!y ? 1 : 0) == 1, m = O != null ? O : S && !w, E = [
1241
+ J["orc-btn"],
1208
1242
  // base
1209
- X[`orc-btn--${d}`],
1243
+ J[`orc-btn--${l}`],
1210
1244
  // variant primary/secondary/tertiary
1211
- c ? X[`orc-btn--${c}`] : "",
1245
+ c ? J[`orc-btn--${c}`] : "",
1212
1246
  // sm / md / lg
1213
- h ? X["orc-btn--full"] : "",
1214
- b ? X["orc-btn--fullHeight"] : "",
1215
- v ? X["orc-btn--iconOnly"] : "",
1216
- S
1217
- ].filter(Boolean).join(" "), $ = /* @__PURE__ */ m(oe, { children: [
1218
- w && /* @__PURE__ */ e("span", { className: X["orc-btn__icon"], children: w }),
1219
- !v && /* @__PURE__ */ e("span", { className: X["orc-btn__label"], children: t }),
1220
- y && /* @__PURE__ */ e("span", { className: X["orc-btn__icon"], children: y })
1221
- ] }), T = s ? !0 : void 0;
1247
+ f ? J["orc-btn--full"] : "",
1248
+ x ? J["orc-btn--fullHeight"] : "",
1249
+ m ? J["orc-btn--iconOnly"] : "",
1250
+ v
1251
+ ].filter(Boolean).join(" "), k = /* @__PURE__ */ h(oe, { children: [
1252
+ C && /* @__PURE__ */ e("span", { className: J["orc-btn__icon"], children: C }),
1253
+ !m && /* @__PURE__ */ e("span", { className: J["orc-btn__label"], children: t }),
1254
+ y && /* @__PURE__ */ e("span", { className: J["orc-btn__icon"], children: y })
1255
+ ] }), I = s ? !0 : void 0;
1222
1256
  return o ? /* @__PURE__ */ e(
1223
- Te,
1257
+ Me,
1224
1258
  {
1225
1259
  href: o,
1226
1260
  target: a,
1227
1261
  rel: i,
1228
- "aria-label": l,
1229
- "aria-disabled": T,
1230
- tabIndex: T ? -1 : void 0,
1231
- className: R,
1232
- onClick: T ? (N) => N.preventDefault() : n,
1233
- children: $
1262
+ "aria-label": d,
1263
+ "aria-disabled": I,
1264
+ tabIndex: I ? -1 : void 0,
1265
+ className: E,
1266
+ onClick: I ? (N) => N.preventDefault() : n,
1267
+ children: k
1234
1268
  }
1235
1269
  ) : /* @__PURE__ */ e(
1236
1270
  "button",
1237
1271
  {
1238
1272
  type: r,
1239
1273
  onClick: n,
1240
- disabled: !!T,
1241
- "aria-label": l,
1242
- className: R,
1243
- children: $
1274
+ disabled: !!I,
1275
+ "aria-label": d,
1276
+ className: E,
1277
+ children: k
1244
1278
  }
1245
1279
  );
1246
1280
  }
1247
- const Xt = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", Ge = {
1248
- cardWrapper: Xt
1281
+ const Zt = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", Ve = {
1282
+ cardWrapper: Zt
1283
+ }, Oe = {
1284
+ base: "FFFFFF",
1285
+ sleeve: "FFFFFF",
1286
+ number: "000000",
1287
+ real: !1,
1288
+ type: "short_sleeves"
1289
+ }, Ie = {
1290
+ base: "000000",
1291
+ sleeve: "000000",
1292
+ number: "FFFFFF",
1293
+ real: !1,
1294
+ type: "short_sleeves"
1295
+ }, fe = (t, n, o = "player") => {
1296
+ var i, r;
1297
+ if (t === void 0)
1298
+ return null;
1299
+ if (t === null)
1300
+ return n === "home" ? Oe : Ie;
1301
+ const a = (r = (i = t == null ? void 0 : t.jerseys) == null ? void 0 : i[n]) == null ? void 0 : r[o];
1302
+ return a || (n === "home" ? Oe : Ie);
1249
1303
  };
1250
- function Jt({ event: t, liveData: n, betOffers: o, jersey: a }) {
1251
- var r, s, d, c, h, b, S, l, w, y, k, C, E;
1304
+ function Qt({ event: t, liveData: n, betOffers: o, jersey: a }) {
1305
+ var r, s, l, c, f, x, v, d, C, y, O;
1252
1306
  const i = o == null ? void 0 : o.find(
1253
- (O) => {
1254
- var f;
1255
- return ((f = O.betOfferType) == null ? void 0 : f.id) === 2;
1307
+ (w) => {
1308
+ var M;
1309
+ return ((M = w.betOfferType) == null ? void 0 : M.id) === 2;
1256
1310
  }
1257
1311
  );
1258
- return /* @__PURE__ */ e("div", { className: Ge.cardWrapper, children: /* @__PURE__ */ m(z, { direction: "column", spacing: 1, useFlexGap: !0, children: [
1259
- /* @__PURE__ */ m(z, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
1312
+ return /* @__PURE__ */ e("div", { className: Ve.cardWrapper, children: /* @__PURE__ */ h(z, { direction: "column", spacing: 1, useFlexGap: !0, children: [
1313
+ /* @__PURE__ */ h(z, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
1260
1314
  /* @__PURE__ */ e(
1261
- lt,
1315
+ pt,
1262
1316
  {
1263
- title: (d = (s = (r = t == null ? void 0 : t.path) == null ? void 0 : r[0]) == null ? void 0 : s.name) != null ? d : "",
1317
+ title: (l = (s = (r = t == null ? void 0 : t.path) == null ? void 0 : r[0]) == null ? void 0 : s.name) != null ? l : "",
1264
1318
  subtitle: (c = t == null ? void 0 : t.group) != null ? c : "",
1265
1319
  live: !0,
1266
- time: ((h = n == null ? void 0 : n.matchClock) == null ? void 0 : h.minute) != null ? `${n.matchClock.minute}'` : ""
1320
+ time: ((f = n == null ? void 0 : n.matchClock) == null ? void 0 : f.minute) != null ? `${n.matchClock.minute}'` : ""
1267
1321
  }
1268
1322
  ),
1269
- /* @__PURE__ */ e("div", { style: { padding: "0 4px" }, children: /* @__PURE__ */ m(Z, { spacing: 1.5, columns: "1fr auto 1fr", children: [
1270
- /* @__PURE__ */ e(me, { name: t == null ? void 0 : t.homeName, jersey: (b = a == null ? void 0 : a.home) == null ? void 0 : b.player }),
1271
- /* @__PURE__ */ e(Fe, { text: ((l = (S = n == null ? void 0 : n.score) == null ? void 0 : S.home) != null ? l : 0) + ":" + ((y = (w = n == null ? void 0 : n.score) == null ? void 0 : w.away) != null ? y : 0), name: "En vivo" }),
1272
- /* @__PURE__ */ e(me, { name: t == null ? void 0 : t.awayName, jersey: (k = a == null ? void 0 : a.away) == null ? void 0 : k.player })
1323
+ /* @__PURE__ */ e("div", { style: { padding: "0 4px" }, children: /* @__PURE__ */ h(Y, { spacing: 1.5, columns: "1fr auto 1fr", children: [
1324
+ /* @__PURE__ */ e(he, { name: t == null ? void 0 : t.homeName, jersey: fe(a, "home") }),
1325
+ /* @__PURE__ */ e(Ue, { text: ((v = (x = n == null ? void 0 : n.score) == null ? void 0 : x.home) != null ? v : 0) + ":" + ((C = (d = n == null ? void 0 : n.score) == null ? void 0 : d.away) != null ? C : 0), name: "En vivo" }),
1326
+ /* @__PURE__ */ e(he, { name: t == null ? void 0 : t.awayName, jersey: fe(a, "away") })
1273
1327
  ] }) })
1274
1328
  ] }),
1275
- /* @__PURE__ */ m(z, { direction: "column", spacing: 1, useFlexGap: !0, children: [
1276
- /* @__PURE__ */ e(Z, { spacing: 1, children: ((C = i == null ? void 0 : i.outcomes) != null ? C : []).map((O, f) => /* @__PURE__ */ e(Pe, { text: O.label.toUpperCase() }, f)) }),
1277
- /* @__PURE__ */ e(Z, { spacing: 2, children: ((E = i == null ? void 0 : i.outcomes) != null ? E : []).map((O, f) => /* @__PURE__ */ e(qt, { variant: "primary", disabled: O.odds == null || (i == null ? void 0 : i.cashOutStatus) == "SUSPENDED", onClick: () => {
1278
- Se(O.id);
1279
- }, children: O.odds === void 0 ? "" : (O.odds / 1e3).toFixed(2) }, f)) })
1329
+ /* @__PURE__ */ h(z, { direction: "column", spacing: 1, useFlexGap: !0, children: [
1330
+ /* @__PURE__ */ e(Y, { spacing: 1, children: ((y = i == null ? void 0 : i.outcomes) != null ? y : []).map((w, M) => /* @__PURE__ */ e(ze, { text: w.label.toUpperCase() }, M)) }),
1331
+ /* @__PURE__ */ e(Y, { spacing: 2, children: ((O = i == null ? void 0 : i.outcomes) != null ? O : []).map((w, M) => /* @__PURE__ */ e(Yt, { variant: "primary", disabled: w.odds == null || (i == null ? void 0 : i.cashOutStatus) == "SUSPENDED", onClick: () => {
1332
+ Ee(w.id);
1333
+ }, children: w.odds === void 0 ? "" : (w.odds / 1e3).toFixed(2) }, M)) })
1280
1334
  ] })
1281
1335
  ] }) });
1282
1336
  }
1283
- const Zt = "oraculo__OraculoEventDate-module__date___xhIlh", Yt = {
1284
- date: Zt
1337
+ const en = "oraculo__OraculoEventDate-module__date___xhIlh", tn = {
1338
+ date: en
1285
1339
  };
1286
- function Qt({ text: t }) {
1287
- return /* @__PURE__ */ e("div", { className: `oli-font ${Yt.date}`, children: t });
1340
+ function nn({ text: t }) {
1341
+ return /* @__PURE__ */ e("div", { className: `oli-font ${tn.date}`, children: t });
1288
1342
  }
1289
- const en = "oraculo__OraculoEventSemanaCard-module__cardContainer___4JuDe", tn = "oraculo__OraculoEventSemanaCard-module__cardBackground___vfalD", nn = "oraculo__OraculoEventSemanaCard-module__jugadas___W8b7H", on = "oraculo__OraculoEventSemanaCard-module__equipos___G5hLn", ne = {
1290
- cardContainer: en,
1291
- cardBackground: tn,
1292
- jugadas: nn,
1293
- equipos: on
1343
+ const on = "oraculo__OraculoEventSemanaCard-module__cardContainer___4JuDe", rn = "oraculo__OraculoEventSemanaCard-module__cardBackground___vfalD", an = "oraculo__OraculoEventSemanaCard-module__jugadas___W8b7H", sn = "oraculo__OraculoEventSemanaCard-module__equipos___G5hLn", ne = {
1344
+ cardContainer: on,
1345
+ cardBackground: rn,
1346
+ jugadas: an,
1347
+ equipos: sn
1294
1348
  };
1295
- function rn({ event: t, jersey: n }) {
1296
- var a, i, r, s, d, c, h, b, S;
1297
- function o(l) {
1298
- const w = new Date(l), y = w.toLocaleDateString("es-ES", { weekday: "short" }).toUpperCase(), k = w.getDate().toString().padStart(2, "0"), C = (w.getMonth() + 1).toString().padStart(2, "0");
1299
- let E = w.toLocaleTimeString("es-PE", { hour: "numeric", minute: "2-digit", hour12: !0 }).toUpperCase();
1300
- return E = E.replace(/\./g, "").replace(/A\s*M/i, "AM").replace(/P\s*M/i, "PM"), `${y} ${k}/${C} | ${E}`;
1349
+ function cn({ event: t, jersey: n }) {
1350
+ var a, i, r, s, l, c, f;
1351
+ function o(x) {
1352
+ const v = new Date(x), d = v.toLocaleDateString("es-ES", { weekday: "short" }).toUpperCase(), C = v.getDate().toString().padStart(2, "0"), y = (v.getMonth() + 1).toString().padStart(2, "0");
1353
+ let O = v.toLocaleTimeString("es-PE", { hour: "numeric", minute: "2-digit", hour12: !0 }).toUpperCase();
1354
+ return O = O.replace(/\./g, "").replace(/A\s*M/i, "AM").replace(/P\s*M/i, "PM"), `${d} ${C}/${y} | ${O}`;
1301
1355
  }
1302
- return /* @__PURE__ */ m("div", { className: ne.cardContainer, children: [
1303
- /* @__PURE__ */ e(We, { title: (a = t == null ? void 0 : t.group) != null ? a : "" }),
1304
- /* @__PURE__ */ e("div", { className: ne.cardBackground, children: /* @__PURE__ */ m(z, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
1305
- /* @__PURE__ */ m(z, { direction: "column", spacing: 1, useFlexGap: !0, children: [
1306
- /* @__PURE__ */ m("div", { className: ne.equipos, children: [
1307
- /* @__PURE__ */ e(me, { name: t.homeName, size: "compact", jersey: (i = n == null ? void 0 : n.home) == null ? void 0 : i.player }),
1308
- /* @__PURE__ */ e(Fe, { text: "vs.", name: "", size: "small" }),
1309
- /* @__PURE__ */ e(me, { name: t.awayName, size: "compact", jersey: (r = n == null ? void 0 : n.away) == null ? void 0 : r.player })
1356
+ return /* @__PURE__ */ h("div", { className: ne.cardContainer, children: [
1357
+ /* @__PURE__ */ e(je, { title: (a = t == null ? void 0 : t.group) != null ? a : "" }),
1358
+ /* @__PURE__ */ e("div", { className: ne.cardBackground, children: /* @__PURE__ */ h(z, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
1359
+ /* @__PURE__ */ h(z, { direction: "column", spacing: 1, useFlexGap: !0, children: [
1360
+ /* @__PURE__ */ h("div", { className: ne.equipos, children: [
1361
+ /* @__PURE__ */ e(he, { name: t.homeName, size: "compact", jersey: fe(n, "home") }),
1362
+ /* @__PURE__ */ e(Ue, { text: "vs.", name: "", size: "small" }),
1363
+ /* @__PURE__ */ e(he, { name: t.awayName, size: "compact", jersey: fe(n, "away") })
1310
1364
  ] }),
1311
- /* @__PURE__ */ e(Qt, { text: o(t.start) })
1365
+ /* @__PURE__ */ e(nn, { text: o(t.start) })
1312
1366
  ] }),
1313
- /* @__PURE__ */ m(z, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
1314
- /* @__PURE__ */ e(Z, { spacing: 1, children: ((c = (d = (s = t == null ? void 0 : t.outcome) == null ? void 0 : s[0]) == null ? void 0 : d.outcomes) != null ? c : []).map((l, w) => /* @__PURE__ */ e(Pe, { text: l.label.toUpperCase() }, w)) }),
1315
- /* @__PURE__ */ e("div", { className: ne.jugadas, children: /* @__PURE__ */ e(Z, { spacing: 1, children: ((S = (b = (h = t == null ? void 0 : t.outcome) == null ? void 0 : h[0]) == null ? void 0 : b.outcomes) != null ? S : []).map((l, w) => /* @__PURE__ */ e(j, { variant: "primary", fullHeight: !0, onClick: () => {
1316
- Se(l.id);
1317
- }, children: (l.odds / 1e3).toFixed(2) }, w)) }) })
1367
+ /* @__PURE__ */ h(z, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
1368
+ /* @__PURE__ */ e(Y, { spacing: 1, children: ((s = (r = (i = t == null ? void 0 : t.outcome) == null ? void 0 : i[0]) == null ? void 0 : r.outcomes) != null ? s : []).map((x, v) => /* @__PURE__ */ e(ze, { text: x.label.toUpperCase() }, v)) }),
1369
+ /* @__PURE__ */ e("div", { className: ne.jugadas, children: /* @__PURE__ */ e(Y, { spacing: 1, children: ((f = (c = (l = t == null ? void 0 : t.outcome) == null ? void 0 : l[0]) == null ? void 0 : c.outcomes) != null ? f : []).map((x, v) => /* @__PURE__ */ e(G, { variant: "primary", fullHeight: !0, onClick: () => {
1370
+ Ee(x.id);
1371
+ }, children: (x.odds / 1e3).toFixed(2) }, v)) }) })
1318
1372
  ] })
1319
1373
  ] }) })
1320
1374
  ] });
1321
1375
  }
1322
- function an({
1376
+ function ln({
1323
1377
  items: t,
1324
1378
  title: n = "Destacados",
1325
1379
  iconUrl: o,
1326
1380
  onViewMore: a,
1327
1381
  className: i = ""
1328
1382
  }) {
1329
- const r = H(null), [s, d] = D({ isStart: !0, isEnd: !1 }), c = !t || t.length === 0, h = () => {
1383
+ const r = H(null), [s, l] = D({ isStart: !0, isEnd: !1 }), c = !t || t.length === 0, f = () => {
1330
1384
  var y;
1331
1385
  return (y = r.current) == null ? void 0 : y.prev();
1332
- }, b = () => {
1386
+ }, x = () => {
1333
1387
  var y;
1334
1388
  return (y = r.current) == null ? void 0 : y.next();
1335
- }, S = () => {
1389
+ }, v = () => {
1336
1390
  window.location.href = "https://www.olimpo.bet/promociones";
1337
- }, l = (y) => {
1391
+ }, d = (y) => {
1338
1392
  if (!y || typeof window == "undefined") return;
1339
- const C = `https://www.olimpo.bet/promociones/${encodeURIComponent(y)}`;
1340
- window.location.href = C;
1393
+ const w = `https://www.olimpo.bet/promociones/${encodeURIComponent(y)}`;
1394
+ window.location.href = w;
1341
1395
  };
1342
- return /* @__PURE__ */ m("section", { className: i || void 0, style: { width: "100%" }, children: [
1343
- /* @__PURE__ */ m(
1396
+ return /* @__PURE__ */ h("section", { className: i || void 0, style: { width: "100%" }, children: [
1397
+ /* @__PURE__ */ h(
1344
1398
  "header",
1345
1399
  {
1346
1400
  style: {
@@ -1353,31 +1407,31 @@ function an({
1353
1407
  },
1354
1408
  children: [
1355
1409
  /* @__PURE__ */ e(ee, { title: n, iconUrl: o, size: "md" }),
1356
- /* @__PURE__ */ m("div", { style: { display: "flex", gap: 8 }, children: [
1410
+ /* @__PURE__ */ h("div", { style: { display: "flex", gap: 8 }, children: [
1357
1411
  /* @__PURE__ */ e(
1358
- j,
1412
+ G,
1359
1413
  {
1360
1414
  ariaLabel: "Anterior",
1361
1415
  variant: "secondary",
1362
1416
  iconOnly: !0,
1363
- leftIcon: /* @__PURE__ */ e(we, {}),
1364
- onClick: h,
1417
+ leftIcon: /* @__PURE__ */ e(ye, {}),
1418
+ onClick: f,
1365
1419
  disabled: s.isStart || c
1366
1420
  }
1367
1421
  ),
1368
1422
  /* @__PURE__ */ e(
1369
- j,
1423
+ G,
1370
1424
  {
1371
1425
  ariaLabel: "Siguiente",
1372
1426
  variant: "secondary",
1373
1427
  iconOnly: !0,
1374
- rightIcon: /* @__PURE__ */ e(ye, {}),
1375
- onClick: b,
1428
+ rightIcon: /* @__PURE__ */ e(Se, {}),
1429
+ onClick: x,
1376
1430
  disabled: s.isEnd || c
1377
1431
  }
1378
1432
  )
1379
1433
  ] }),
1380
- /* @__PURE__ */ e(j, { variant: "secondary", onClick: S, children: "Ver más" })
1434
+ /* @__PURE__ */ e(G, { variant: "secondary", onClick: v, children: "Ver más" })
1381
1435
  ]
1382
1436
  }
1383
1437
  ),
@@ -1410,7 +1464,7 @@ function an({
1410
1464
  marginTop: 16,
1411
1465
  cursor: "pointer"
1412
1466
  },
1413
- onClick: () => l(y.promotion),
1467
+ onClick: () => d(y.promotion),
1414
1468
  children: /* @__PURE__ */ e(
1415
1469
  "img",
1416
1470
  {
@@ -1428,52 +1482,52 @@ function an({
1428
1482
  },
1429
1483
  `${y.title}-${y.image}`
1430
1484
  ),
1431
- onMove: ({ isStart: y, isEnd: k }) => d({ isStart: y, isEnd: k })
1485
+ onMove: ({ isStart: y, isEnd: O }) => l({ isStart: y, isEnd: O })
1432
1486
  }
1433
1487
  )
1434
1488
  ] });
1435
1489
  }
1436
- const pe = "__ORACULO_EXTRAS__";
1437
- function De() {
1490
+ const me = "__ORACULO_EXTRAS__";
1491
+ function qe() {
1438
1492
  const t = globalThis;
1439
- return t[pe] || (t[pe] = {}), t[pe];
1493
+ return t[me] || (t[me] = {}), t[me];
1440
1494
  }
1441
- function sn(t) {
1442
- De().extras = t;
1495
+ function dn(t) {
1496
+ qe().extras = t;
1443
1497
  }
1444
1498
  function Q(t) {
1445
1499
  var n;
1446
- return (n = De().extras) == null ? void 0 : n[t];
1500
+ return (n = qe().extras) == null ? void 0 : n[t];
1447
1501
  }
1448
- function cn() {
1449
- delete globalThis[pe];
1502
+ function un() {
1503
+ delete globalThis[me];
1450
1504
  }
1451
- function ln({
1505
+ function pn({
1452
1506
  items: t,
1453
1507
  title: n = "Top Juegos",
1454
1508
  iconUrl: o,
1455
1509
  onCardClick: a
1456
1510
  }) {
1457
1511
  const i = ce(
1458
- () => (t != null ? t : []).map((c, h) => {
1459
- var b;
1512
+ () => (t != null ? t : []).map((c, f) => {
1513
+ var x;
1460
1514
  return {
1461
1515
  ...c,
1462
- orden: (b = c.orden) != null ? b : h + 1,
1463
- _originalIndex: h
1516
+ orden: (x = c.orden) != null ? x : f + 1,
1517
+ _originalIndex: f
1464
1518
  };
1465
- }).sort((c, h) => c.orden != null && h.orden != null ? c.orden - h.orden : c._originalIndex - h._originalIndex),
1519
+ }).sort((c, f) => c.orden != null && f.orden != null ? c.orden - f.orden : c._originalIndex - f._originalIndex),
1466
1520
  [t]
1467
- ), r = !t || t.length === 0, s = r ? Array.from({ length: 6 }) : i.slice(0, 6), d = (c) => {
1468
- const h = Q("showIframe"), b = Q("loadMachine");
1469
- h == null || h(), requestAnimationFrame(() => {
1470
- b == null || b(c, !1, "CASINO");
1521
+ ), r = !t || t.length === 0, s = r ? Array.from({ length: 6 }) : i.slice(0, 6), l = (c) => {
1522
+ const f = Q("showIframe"), x = Q("loadMachine");
1523
+ f == null || f(), requestAnimationFrame(() => {
1524
+ x == null || x(c, !1, "CASINO");
1471
1525
  });
1472
1526
  };
1473
- return /* @__PURE__ */ e("section", { style: { width: "100%" }, children: /* @__PURE__ */ m(z, { direction: "column", spacing: 2, useFlexGap: !0, children: [
1527
+ return /* @__PURE__ */ e("section", { style: { width: "100%" }, children: /* @__PURE__ */ h(z, { direction: "column", spacing: 2, useFlexGap: !0, children: [
1474
1528
  /* @__PURE__ */ e(ee, { title: n, iconUrl: o, size: "md" }),
1475
1529
  /* @__PURE__ */ e(
1476
- M,
1530
+ T,
1477
1531
  {
1478
1532
  sx: {
1479
1533
  display: "grid",
@@ -1485,29 +1539,29 @@ function ln({
1485
1539
  justifyItems: "center",
1486
1540
  width: "100%"
1487
1541
  },
1488
- children: s.map((c, h) => {
1489
- var b, S;
1542
+ children: s.map((c, f) => {
1543
+ var x, v;
1490
1544
  return /* @__PURE__ */ e(
1491
- Rt,
1545
+ Wt,
1492
1546
  {
1493
- imageUrl: r ? "" : c.background ? `https://olimpo.bet${c.background}` : `https://olimpo.bet${(b = c.logo) != null ? b : ""}`,
1494
- orden: r ? h + 1 : c.orden,
1547
+ imageUrl: r ? "" : c.background ? `https://olimpo.bet${c.background}` : `https://olimpo.bet${(x = c.logo) != null ? x : ""}`,
1548
+ orden: r ? f + 1 : c.orden,
1495
1549
  loading: r,
1496
1550
  onClick: r ? void 0 : () => {
1497
- a == null || a(c), d(c);
1551
+ a == null || a(c), l(c);
1498
1552
  }
1499
1553
  },
1500
- r ? `sk-${h}` : (S = c.machine) != null ? S : `${h}`
1554
+ r ? `sk-${f}` : (v = c.machine) != null ? v : `${f}`
1501
1555
  );
1502
1556
  })
1503
1557
  }
1504
1558
  )
1505
1559
  ] }) });
1506
1560
  }
1507
- const dn = (t, n) => {
1561
+ const mn = (t, n) => {
1508
1562
  var o, a;
1509
1563
  return (a = (o = t.orden) != null ? o : t.machine) != null ? a : n;
1510
- }, un = ({
1564
+ }, hn = ({
1511
1565
  items: t,
1512
1566
  title: n = "Casino en vivo",
1513
1567
  subtitle: o = "Disfruta la emoción en tus juegos favoritos y gana en tiempo real.",
@@ -1516,14 +1570,14 @@ const dn = (t, n) => {
1516
1570
  onViewMore: r,
1517
1571
  className: s
1518
1572
  }) => {
1519
- const d = (c) => {
1520
- const h = Q("showIframe"), b = Q("loadMachine");
1521
- h == null || h(), typeof window != "undefined" && window.scrollTo({ top: 0, behavior: "smooth" }), requestAnimationFrame(() => {
1522
- b == null || b(c, !1, "casino_en_vivo");
1573
+ const l = (c) => {
1574
+ const f = Q("showIframe"), x = Q("loadMachine");
1575
+ f == null || f(), typeof window != "undefined" && window.scrollTo({ top: 0, behavior: "smooth" }), requestAnimationFrame(() => {
1576
+ x == null || x(c, !1, "casino_en_vivo");
1523
1577
  });
1524
1578
  };
1525
- return /* @__PURE__ */ m(
1526
- M,
1579
+ return /* @__PURE__ */ h(
1580
+ T,
1527
1581
  {
1528
1582
  className: s,
1529
1583
  sx: {
@@ -1533,7 +1587,7 @@ const dn = (t, n) => {
1533
1587
  },
1534
1588
  children: [
1535
1589
  /* @__PURE__ */ e(
1536
- M,
1590
+ T,
1537
1591
  {
1538
1592
  sx: {
1539
1593
  position: "absolute",
@@ -1557,8 +1611,8 @@ const dn = (t, n) => {
1557
1611
  }
1558
1612
  }
1559
1613
  ),
1560
- /* @__PURE__ */ m(
1561
- M,
1614
+ /* @__PURE__ */ h(
1615
+ T,
1562
1616
  {
1563
1617
  sx: {
1564
1618
  position: "relative",
@@ -1575,9 +1629,9 @@ const dn = (t, n) => {
1575
1629
  textAlign: { xs: "center", md: "left" }
1576
1630
  },
1577
1631
  children: [
1578
- /* @__PURE__ */ m(z, { spacing: 3, sx: { maxWidth: { md: 280 } }, children: [
1632
+ /* @__PURE__ */ h(z, { spacing: 3, sx: { maxWidth: { md: 280 } }, children: [
1579
1633
  /* @__PURE__ */ e(
1580
- J,
1634
+ X,
1581
1635
  {
1582
1636
  variant: "h4",
1583
1637
  sx: {
@@ -1590,7 +1644,7 @@ const dn = (t, n) => {
1590
1644
  }
1591
1645
  ),
1592
1646
  /* @__PURE__ */ e(
1593
- J,
1647
+ X,
1594
1648
  {
1595
1649
  sx: {
1596
1650
  fontSize: { xs: 14, md: 18 },
@@ -1601,8 +1655,8 @@ const dn = (t, n) => {
1601
1655
  children: o
1602
1656
  }
1603
1657
  ),
1604
- /* @__PURE__ */ e(M, { sx: { display: { xs: "none", md: "block" } }, children: /* @__PURE__ */ e(
1605
- j,
1658
+ /* @__PURE__ */ e(T, { sx: { display: { xs: "none", md: "block" } }, children: /* @__PURE__ */ e(
1659
+ G,
1606
1660
  {
1607
1661
  variant: "primary",
1608
1662
  size: "md",
@@ -1612,7 +1666,7 @@ const dn = (t, n) => {
1612
1666
  ) })
1613
1667
  ] }),
1614
1668
  /* @__PURE__ */ e(
1615
- M,
1669
+ T,
1616
1670
  {
1617
1671
  sx: {
1618
1672
  display: "flex",
@@ -1622,24 +1676,24 @@ const dn = (t, n) => {
1622
1676
  py: { xs: 3, md: 0 },
1623
1677
  alignItems: "center"
1624
1678
  },
1625
- children: (t != null ? t : []).slice(0, 3).map((c, h) => {
1626
- var b;
1679
+ children: (t != null ? t : []).slice(0, 3).map((c, f) => {
1680
+ var x;
1627
1681
  return /* @__PURE__ */ e(
1628
- Lt,
1682
+ Bt,
1629
1683
  {
1630
- logo: `https://olimpo.bet${c.background ? c.background : (b = c.logo) != null ? b : ""}`,
1684
+ logo: `https://olimpo.bet${c.background ? c.background : (x = c.logo) != null ? x : ""}`,
1631
1685
  provider: c.provider,
1632
1686
  providerName: c.web_name,
1633
1687
  machine: c.machine,
1634
- onClick: () => d(c)
1688
+ onClick: () => l(c)
1635
1689
  },
1636
- dn(c, h)
1690
+ mn(c, f)
1637
1691
  );
1638
1692
  })
1639
1693
  }
1640
1694
  ),
1641
- /* @__PURE__ */ e(M, { sx: { display: { xs: "block", md: "none" } }, children: /* @__PURE__ */ e(
1642
- j,
1695
+ /* @__PURE__ */ e(T, { sx: { display: { xs: "block", md: "none" } }, children: /* @__PURE__ */ e(
1696
+ G,
1643
1697
  {
1644
1698
  variant: "primary",
1645
1699
  size: "lg",
@@ -1653,14 +1707,14 @@ const dn = (t, n) => {
1653
1707
  ]
1654
1708
  }
1655
1709
  );
1656
- }, je = (t, n) => {
1710
+ }, Ke = (t, n) => {
1657
1711
  var o, a;
1658
1712
  return (a = (o = t.orden) != null ? o : t.machine) != null ? a : n;
1659
- }, pn = (t, n = !0, o = 4) => {
1660
- const a = t.map((s, d) => {
1713
+ }, fn = (t, n = !0, o = 1) => {
1714
+ const a = t.map((s, l) => {
1661
1715
  var c;
1662
1716
  return {
1663
- id: je(s, d),
1717
+ id: Ke(s, l),
1664
1718
  imageUrl: (c = s.logo) != null ? c : "",
1665
1719
  ...s.background ? { background: s.background } : {}
1666
1720
  };
@@ -1669,7 +1723,7 @@ const dn = (t, n) => {
1669
1723
  const i = [];
1670
1724
  let r = 0;
1671
1725
  if (n) {
1672
- const s = Math.min(a.length, 5);
1726
+ const s = Math.min(a.length, 1);
1673
1727
  i.push({ id: "mosaic-0", kind: "mosaic", items: a.slice(0, s) }), r = s;
1674
1728
  }
1675
1729
  for (; r < a.length; ) {
@@ -1677,30 +1731,30 @@ const dn = (t, n) => {
1677
1731
  i.push({ id: `grid-${r}`, kind: "grid", items: a.slice(r, s) }), r = s;
1678
1732
  }
1679
1733
  return i;
1680
- }, mn = ({
1734
+ }, gn = ({
1681
1735
  items: t,
1682
1736
  title: n = "Casino",
1683
1737
  iconUrl: o = "/assets/img/home/Casino/diamante.svg",
1684
1738
  onItemClick: a,
1685
1739
  onViewMore: i,
1686
1740
  mosaicFirst: r = !0,
1687
- gridSize: s = 4
1741
+ gridSize: s = 1
1688
1742
  }) => {
1689
- const d = H(null), [c, h] = D({ isStart: !0, isEnd: !1 }), b = () => {
1690
- var C;
1691
- return (C = d.current) == null ? void 0 : C.prev();
1692
- }, S = () => {
1693
- var C;
1694
- return (C = d.current) == null ? void 0 : C.next();
1695
- }, l = () => {
1743
+ const l = H(null), [c, f] = D({ isStart: !0, isEnd: !1 }), x = () => {
1744
+ var w;
1745
+ return (w = l.current) == null ? void 0 : w.prev();
1746
+ }, v = () => {
1747
+ var w;
1748
+ return (w = l.current) == null ? void 0 : w.next();
1749
+ }, d = () => {
1696
1750
  window.location.href = "https://www.olimpo.bet/casino";
1697
- }, w = (C = !0, E = 4) => {
1698
- const O = (v) => Array.from({ length: v }, (R, $) => ({ id: `sk-${v}-${$}`, imageUrl: "" })), f = [];
1699
- return C && f.push({ id: "mosaic-loading", kind: "mosaic", items: O(5) }), f.push({ id: "grid-loading", kind: "grid", items: O(E) }), f;
1700
- }, y = !t || t.length === 0, k = y ? w(r, s) : pn(t, r, s);
1701
- return /* @__PURE__ */ e("section", { children: /* @__PURE__ */ m(z, { direction: "column", spacing: 2, useFlexGap: !0, children: [
1702
- /* @__PURE__ */ m(
1703
- M,
1751
+ }, C = (w = !0, M = 4) => {
1752
+ const B = (m) => Array.from({ length: m }, (E, k) => ({ id: `sk-${m}-${k}`, imageUrl: "" })), S = [];
1753
+ return w && S.push({ id: "mosaic-loading", kind: "mosaic", items: B(5) }), S.push({ id: "grid-loading", kind: "grid", items: B(M) }), S;
1754
+ }, y = !t || t.length === 0, O = y ? C(r, s) : fn(t, r, s);
1755
+ return /* @__PURE__ */ e("section", { children: /* @__PURE__ */ h(z, { direction: "column", spacing: 2, useFlexGap: !0, children: [
1756
+ /* @__PURE__ */ h(
1757
+ T,
1704
1758
  {
1705
1759
  sx: {
1706
1760
  display: "grid",
@@ -1711,39 +1765,39 @@ const dn = (t, n) => {
1711
1765
  },
1712
1766
  children: [
1713
1767
  /* @__PURE__ */ e(ee, { title: n, iconUrl: o, size: "md" }),
1714
- /* @__PURE__ */ m(M, { sx: { display: "flex", gap: 1, justifyContent: "flex-end" }, children: [
1768
+ /* @__PURE__ */ h(T, { sx: { display: "flex", gap: 1, justifyContent: "flex-end" }, children: [
1715
1769
  /* @__PURE__ */ e(
1716
- j,
1770
+ G,
1717
1771
  {
1718
1772
  ariaLabel: "Anterior",
1719
1773
  variant: "secondary",
1720
1774
  iconOnly: !0,
1721
- leftIcon: /* @__PURE__ */ e(Re, {}),
1722
- onClick: b,
1775
+ leftIcon: /* @__PURE__ */ e(Be, {}),
1776
+ onClick: x,
1723
1777
  disabled: c.isStart
1724
1778
  }
1725
1779
  ),
1726
1780
  /* @__PURE__ */ e(
1727
- j,
1781
+ G,
1728
1782
  {
1729
1783
  ariaLabel: "Siguiente",
1730
1784
  variant: "secondary",
1731
1785
  iconOnly: !0,
1732
- rightIcon: /* @__PURE__ */ e(Le, {}),
1733
- onClick: S,
1786
+ rightIcon: /* @__PURE__ */ e(Pe, {}),
1787
+ onClick: v,
1734
1788
  disabled: c.isEnd
1735
1789
  }
1736
1790
  )
1737
1791
  ] }),
1738
- /* @__PURE__ */ e(M, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ e(j, { variant: "secondary", onClick: l, children: "Ver más" }) })
1792
+ /* @__PURE__ */ e(T, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ e(G, { variant: "secondary", onClick: d, children: "Ver más" }) })
1739
1793
  ]
1740
1794
  }
1741
1795
  ),
1742
1796
  /* @__PURE__ */ e(
1743
1797
  te,
1744
1798
  {
1745
- ref: d,
1746
- items: k,
1799
+ ref: l,
1800
+ items: O,
1747
1801
  perPage: 1,
1748
1802
  gap: "0px",
1749
1803
  enableHorizontalWheel: !0,
@@ -1756,33 +1810,33 @@ const dn = (t, n) => {
1756
1810
  drag: !0,
1757
1811
  focus: "start"
1758
1812
  },
1759
- renderItem: (C) => /* @__PURE__ */ e("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ e(
1760
- Ae,
1813
+ renderItem: (w) => /* @__PURE__ */ e("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ e(
1814
+ De,
1761
1815
  {
1762
- items: C.items,
1763
- layout: C.kind === "mosaic" ? "mosaic" : "grid",
1816
+ items: w.items,
1817
+ layout: w.kind === "mosaic" ? "mosaic" : "grid",
1764
1818
  loading: y,
1765
- onClick: (E) => {
1819
+ onClick: (M) => {
1766
1820
  if (y) return;
1767
- const O = t.find((R, $) => String(je(R, $)) === String(E.id));
1768
- if (!O) return;
1769
- const f = Q("showIframe"), v = Q("loadMachine");
1770
- f == null || f(), v == null || v(O, !1, "CASINO");
1821
+ const B = t.find((E, k) => String(Ke(E, k)) === String(M.id));
1822
+ if (!B) return;
1823
+ const S = Q("showIframe"), m = Q("loadMachine");
1824
+ S == null || S(), m == null || m(B, !1, "CASINO");
1771
1825
  }
1772
1826
  }
1773
1827
  ) }),
1774
- onMove: ({ isStart: C, isEnd: E }) => h({ isStart: C, isEnd: E })
1828
+ onMove: ({ isStart: w, isEnd: M }) => f({ isStart: w, isEnd: M })
1775
1829
  }
1776
1830
  )
1777
1831
  ] }) });
1778
- }, He = (t, n) => {
1832
+ }, Je = (t, n) => {
1779
1833
  var o, a;
1780
1834
  return (a = (o = t.orden) != null ? o : t.machine) != null ? a : n;
1781
- }, hn = (t, n = !0, o = 4) => {
1782
- const a = t.map((s, d) => {
1835
+ }, xn = (t, n = !0, o = 1) => {
1836
+ const a = t.map((s, l) => {
1783
1837
  var c;
1784
1838
  return {
1785
- id: He(s, d),
1839
+ id: Je(s, l),
1786
1840
  imageUrl: (c = s.logo) != null ? c : "",
1787
1841
  ...s.background ? { background: s.background } : {}
1788
1842
  };
@@ -1791,7 +1845,7 @@ const dn = (t, n) => {
1791
1845
  const i = [];
1792
1846
  let r = 0;
1793
1847
  if (n) {
1794
- const s = Math.min(a.length, 5);
1848
+ const s = Math.min(a.length, 1);
1795
1849
  i.push({ id: "mosaic-0", kind: "mosaic", items: a.slice(0, s) }), r = s;
1796
1850
  }
1797
1851
  for (; r < a.length; ) {
@@ -1799,30 +1853,30 @@ const dn = (t, n) => {
1799
1853
  i.push({ id: `grid-${r}`, kind: "grid", items: a.slice(r, s) }), r = s;
1800
1854
  }
1801
1855
  return i;
1802
- }, fn = (t = !0, n = 4) => {
1856
+ }, bn = (t = !0, n = 4) => {
1803
1857
  const o = (i) => Array.from({ length: i }, (r, s) => ({ id: `sk-${i}-${s}`, imageUrl: "" })), a = [];
1804
1858
  return t && a.push({ id: "mosaic-loading", kind: "mosaic", items: o(5) }), a.push({ id: "grid-loading", kind: "grid", items: o(n) }), a;
1805
- }, gn = ({
1859
+ }, _n = ({
1806
1860
  items: t,
1807
1861
  title: n = "Virtuales",
1808
1862
  iconUrl: o = "/assets/img/home/Virtuales/virtuales.svg",
1809
1863
  onItemClick: a,
1810
1864
  onViewMore: i,
1811
1865
  mosaicFirst: r = !0,
1812
- gridSize: s = 4
1866
+ gridSize: s = 1
1813
1867
  }) => {
1814
- const d = H(null), [c, h] = D({ isStart: !0, isEnd: !1 }), b = () => {
1815
- var k;
1816
- return (k = d.current) == null ? void 0 : k.prev();
1817
- }, S = () => {
1818
- var k;
1819
- return (k = d.current) == null ? void 0 : k.next();
1820
- }, l = () => {
1868
+ const l = H(null), [c, f] = D({ isStart: !0, isEnd: !1 }), x = () => {
1869
+ var O;
1870
+ return (O = l.current) == null ? void 0 : O.prev();
1871
+ }, v = () => {
1872
+ var O;
1873
+ return (O = l.current) == null ? void 0 : O.next();
1874
+ }, d = () => {
1821
1875
  window.location.href = "https://www.olimpo.bet/juegos-virtuales";
1822
- }, w = !t || t.length === 0, y = w ? fn(r, s) : hn(t, r, s);
1823
- return /* @__PURE__ */ e("section", { children: /* @__PURE__ */ m(z, { direction: "column", spacing: 2, useFlexGap: !0, children: [
1824
- /* @__PURE__ */ m(
1825
- M,
1876
+ }, C = !t || t.length === 0, y = C ? bn(r, s) : xn(t, r, s);
1877
+ return /* @__PURE__ */ e("section", { children: /* @__PURE__ */ h(z, { direction: "column", spacing: 2, useFlexGap: !0, children: [
1878
+ /* @__PURE__ */ h(
1879
+ T,
1826
1880
  {
1827
1881
  sx: {
1828
1882
  display: "grid",
@@ -1833,38 +1887,38 @@ const dn = (t, n) => {
1833
1887
  },
1834
1888
  children: [
1835
1889
  /* @__PURE__ */ e(ee, { title: n, iconUrl: o, size: "md" }),
1836
- /* @__PURE__ */ m(M, { sx: { display: "flex", gap: 1, justifyContent: "flex-end" }, children: [
1890
+ /* @__PURE__ */ h(T, { sx: { display: "flex", gap: 1, justifyContent: "flex-end" }, children: [
1837
1891
  /* @__PURE__ */ e(
1838
- j,
1892
+ G,
1839
1893
  {
1840
1894
  ariaLabel: "Anterior",
1841
1895
  variant: "secondary",
1842
1896
  iconOnly: !0,
1843
- leftIcon: /* @__PURE__ */ e(Re, {}),
1844
- onClick: b,
1897
+ leftIcon: /* @__PURE__ */ e(Be, {}),
1898
+ onClick: x,
1845
1899
  disabled: c.isStart
1846
1900
  }
1847
1901
  ),
1848
1902
  /* @__PURE__ */ e(
1849
- j,
1903
+ G,
1850
1904
  {
1851
1905
  ariaLabel: "Siguiente",
1852
1906
  variant: "secondary",
1853
1907
  iconOnly: !0,
1854
- rightIcon: /* @__PURE__ */ e(Le, {}),
1855
- onClick: S,
1908
+ rightIcon: /* @__PURE__ */ e(Pe, {}),
1909
+ onClick: v,
1856
1910
  disabled: c.isEnd
1857
1911
  }
1858
1912
  )
1859
1913
  ] }),
1860
- /* @__PURE__ */ e(M, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ e(j, { variant: "secondary", onClick: l, children: "Ver más" }) })
1914
+ /* @__PURE__ */ e(T, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ e(G, { variant: "secondary", onClick: d, children: "Ver más" }) })
1861
1915
  ]
1862
1916
  }
1863
1917
  ),
1864
1918
  /* @__PURE__ */ e(
1865
1919
  te,
1866
1920
  {
1867
- ref: d,
1921
+ ref: l,
1868
1922
  items: y,
1869
1923
  perPage: 1,
1870
1924
  gap: "0",
@@ -1879,29 +1933,29 @@ const dn = (t, n) => {
1879
1933
  focus: "start",
1880
1934
  perMove: 1
1881
1935
  },
1882
- renderItem: (k) => /* @__PURE__ */ e("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ e(
1883
- Ae,
1936
+ renderItem: (O) => /* @__PURE__ */ e("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ e(
1937
+ De,
1884
1938
  {
1885
- items: k.items,
1886
- layout: k.kind === "mosaic" ? "mosaic" : "grid",
1887
- loading: w,
1888
- onClick: (C) => {
1889
- if (w) return;
1890
- const E = t.find((v, R) => String(He(v, R)) === String(C.id));
1891
- if (!E) {
1892
- console.warn("[virtuales] no se encontró game para id:", C.id);
1939
+ items: O.items,
1940
+ layout: O.kind === "mosaic" ? "mosaic" : "grid",
1941
+ loading: C,
1942
+ onClick: (w) => {
1943
+ if (C) return;
1944
+ const M = t.find((m, E) => String(Je(m, E)) === String(w.id));
1945
+ if (!M) {
1946
+ console.warn("[virtuales] no se encontró game para id:", w.id);
1893
1947
  return;
1894
1948
  }
1895
- const O = Q("showIframe"), f = Q("loadMachine");
1896
- O == null || O(), f == null || f(E, !1, "VIRTUALES");
1949
+ const B = Q("showIframe"), S = Q("loadMachine");
1950
+ B == null || B(), S == null || S(M, !1, "VIRTUALES");
1897
1951
  }
1898
1952
  }
1899
1953
  ) }),
1900
- onMove: ({ isStart: k, isEnd: C }) => h({ isStart: k, isEnd: C })
1954
+ onMove: ({ isStart: O, isEnd: w }) => f({ isStart: O, isEnd: w })
1901
1955
  }
1902
1956
  )
1903
1957
  ] }) });
1904
- }, xn = (t) => ({
1958
+ }, vn = (t) => ({
1905
1959
  position: "relative",
1906
1960
  py: 8,
1907
1961
  color: "#fff",
@@ -1915,15 +1969,15 @@ const dn = (t, n) => {
1915
1969
  backgroundRepeat: "no-repeat",
1916
1970
  backgroundPosition: "center",
1917
1971
  backgroundSize: "cover"
1918
- }), ke = {
1972
+ }), $e = {
1919
1973
  textAlign: "center",
1920
1974
  lineHeight: 1.1,
1921
1975
  mb: 1.5
1922
- }, Oe = {
1976
+ }, Ne = {
1923
1977
  display: "inline-block",
1924
1978
  fontWeight: 600,
1925
1979
  fontSize: 24
1926
- }, Ie = {
1980
+ }, Te = {
1927
1981
  display: "inline-block",
1928
1982
  fontSize: 24,
1929
1983
  lineHeight: 1.1,
@@ -1933,45 +1987,45 @@ const dn = (t, n) => {
1933
1987
  0 0 6px rgba(255, 255, 255, .6),
1934
1988
  0 1px 0 rgba(137, 137, 137, .85)
1935
1989
  `
1936
- }, bn = ({
1990
+ }, wn = ({
1937
1991
  headline: t,
1938
1992
  headline2: n,
1939
1993
  items: o,
1940
1994
  backgroundImageUrl: a
1941
1995
  }) => {
1942
- const i = et("(max-width: 767px)"), r = o.length > 1, s = H(null), d = H(null), [c, h] = D(0), [b, S] = D({ isStart: !0, isEnd: !1 }), l = H(b);
1943
- K(() => {
1944
- l.current = b;
1945
- }, [b]);
1946
- const w = H(!1), y = H(null), k = o == null ? void 0 : o[c], C = ce(
1996
+ const i = ot("(max-width: 767px)"), r = o.length > 1, s = H(null), l = H(null), [c, f] = D(0), [x, v] = D({ isStart: !0, isEnd: !1 }), d = H(x);
1997
+ q(() => {
1998
+ d.current = x;
1999
+ }, [x]);
2000
+ const C = H(!1), y = H(null), O = o == null ? void 0 : o[c], w = ce(
1947
2001
  () => {
1948
- var v, R;
1949
- return (R = (v = k == null ? void 0 : k.backgroundImageUrl) != null ? v : a) != null ? R : "";
2002
+ var m, E;
2003
+ return (E = (m = O == null ? void 0 : O.backgroundImageUrl) != null ? m : a) != null ? E : "";
1950
2004
  },
1951
- [k, a]
1952
- ), E = xn(C), O = !o || o.length === 0;
1953
- K(() => {
1954
- const v = d.current;
1955
- if (!v) return;
1956
- const R = 6, $ = 380, T = (N) => {
1957
- var u, p;
1958
- if (O || N.ctrlKey || w.current) return;
1959
- const L = N.deltaX, F = N.deltaY;
1960
- if (Math.abs(L) <= Math.abs(F) || Math.abs(L) < R) return;
1961
- const P = L > 0;
1962
- P && l.current.isEnd || !P && l.current.isStart || (N.preventDefault(), w.current = !0, P ? (u = s.current) == null || u.next() : (p = s.current) == null || p.prev(), y.current && window.clearTimeout(y.current), y.current = window.setTimeout(() => {
1963
- w.current = !1;
1964
- }, $));
2005
+ [O, a]
2006
+ ), M = vn(w), B = !o || o.length === 0;
2007
+ q(() => {
2008
+ const m = l.current;
2009
+ if (!m) return;
2010
+ const E = 6, k = 380, I = (N) => {
2011
+ var p, u;
2012
+ if (B || N.ctrlKey || C.current) return;
2013
+ const F = N.deltaX, P = N.deltaY;
2014
+ if (Math.abs(F) <= Math.abs(P) || Math.abs(F) < E) return;
2015
+ const L = F > 0;
2016
+ L && d.current.isEnd || !L && d.current.isStart || (N.preventDefault(), C.current = !0, L ? (p = s.current) == null || p.next() : (u = s.current) == null || u.prev(), y.current && window.clearTimeout(y.current), y.current = window.setTimeout(() => {
2017
+ C.current = !1;
2018
+ }, k));
1965
2019
  };
1966
- return v.addEventListener("wheel", T, { passive: !1 }), () => {
1967
- v.removeEventListener("wheel", T), y.current && window.clearTimeout(y.current);
2020
+ return m.addEventListener("wheel", I, { passive: !1 }), () => {
2021
+ m.removeEventListener("wheel", I), y.current && window.clearTimeout(y.current);
1968
2022
  };
1969
- }, [O]);
1970
- const f = (v, R) => {
1971
- var N, L;
1972
- const $ = (N = v.headline) != null ? N : t, T = (L = v.headline2) != null ? L : n;
1973
- return R ? /* @__PURE__ */ m(
1974
- M,
2023
+ }, [B]);
2024
+ const S = (m, E) => {
2025
+ var N, F;
2026
+ const k = (N = m.headline) != null ? N : t, I = (F = m.headline2) != null ? F : n;
2027
+ return E ? /* @__PURE__ */ h(
2028
+ T,
1975
2029
  {
1976
2030
  sx: {
1977
2031
  maxWidth: 1200,
@@ -1983,8 +2037,8 @@ const dn = (t, n) => {
1983
2037
  columnGap: 6
1984
2038
  },
1985
2039
  children: [
1986
- ($ || T) && /* @__PURE__ */ e(
1987
- M,
2040
+ (k || I) && /* @__PURE__ */ e(
2041
+ T,
1988
2042
  {
1989
2043
  sx: {
1990
2044
  display: "flex",
@@ -1992,31 +2046,31 @@ const dn = (t, n) => {
1992
2046
  justifyContent: "flex-start",
1993
2047
  minHeight: "100%"
1994
2048
  },
1995
- children: /* @__PURE__ */ m(M, { sx: { ...ke, textAlign: "left", mb: 0 }, children: [
1996
- $ && /* @__PURE__ */ e(J, { component: "span", sx: Oe, children: $ }),
1997
- T && /* @__PURE__ */ m(oe, { children: [
2049
+ children: /* @__PURE__ */ h(T, { sx: { ...$e, textAlign: "left", mb: 0 }, children: [
2050
+ k && /* @__PURE__ */ e(X, { component: "span", sx: Ne, children: k }),
2051
+ I && /* @__PURE__ */ h(oe, { children: [
1998
2052
  /* @__PURE__ */ e("br", {}),
1999
- /* @__PURE__ */ e(J, { component: "span", sx: Ie, children: T })
2053
+ /* @__PURE__ */ e(X, { component: "span", sx: Te, children: I })
2000
2054
  ] })
2001
2055
  ] })
2002
2056
  }
2003
2057
  ),
2004
- /* @__PURE__ */ e(M, { sx: { display: "flex", justifyContent: "center", alignItems: "center" }, children: /* @__PURE__ */ e(M, { sx: { width: "100%", maxWidth: 600, mx: "auto" }, children: /* @__PURE__ */ e(Ce, { ...v, onButtonClick: v.onButtonClick, variant: "large" }) }) })
2058
+ /* @__PURE__ */ e(T, { sx: { display: "flex", justifyContent: "center", alignItems: "center" }, children: /* @__PURE__ */ e(T, { sx: { width: "100%", maxWidth: 600, mx: "auto" }, children: /* @__PURE__ */ e(ke, { ...m, onButtonClick: m.onButtonClick, variant: "large" }) }) })
2005
2059
  ]
2006
2060
  }
2007
- ) : /* @__PURE__ */ m(M, { sx: { textAlign: "center" }, children: [
2008
- ($ || T) && /* @__PURE__ */ m(M, { sx: ke, children: [
2009
- $ && /* @__PURE__ */ e(J, { component: "span", sx: Oe, children: $ }),
2010
- T && /* @__PURE__ */ m(oe, { children: [
2061
+ ) : /* @__PURE__ */ h(T, { sx: { textAlign: "center" }, children: [
2062
+ (k || I) && /* @__PURE__ */ h(T, { sx: $e, children: [
2063
+ k && /* @__PURE__ */ e(X, { component: "span", sx: Ne, children: k }),
2064
+ I && /* @__PURE__ */ h(oe, { children: [
2011
2065
  /* @__PURE__ */ e("br", {}),
2012
- /* @__PURE__ */ e(J, { component: "span", sx: Ie, children: T })
2066
+ /* @__PURE__ */ e(X, { component: "span", sx: Te, children: I })
2013
2067
  ] })
2014
2068
  ] }),
2015
- /* @__PURE__ */ e(M, { sx: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ e(Ce, { ...v, onButtonClick: v.onButtonClick, variant: "small" }) })
2069
+ /* @__PURE__ */ e(T, { sx: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ e(ke, { ...m, onButtonClick: m.onButtonClick, variant: "small" }) })
2016
2070
  ] });
2017
2071
  };
2018
- return /* @__PURE__ */ m(M, { component: "section", sx: E, children: [
2019
- /* @__PURE__ */ e("div", { ref: d, style: { width: "100%" }, children: /* @__PURE__ */ e(
2072
+ return /* @__PURE__ */ h(T, { component: "section", sx: M, children: [
2073
+ /* @__PURE__ */ e("div", { ref: l, style: { width: "100%" }, children: /* @__PURE__ */ e(
2020
2074
  te,
2021
2075
  {
2022
2076
  ref: s,
@@ -2033,25 +2087,25 @@ const dn = (t, n) => {
2033
2087
  // arrows: false,
2034
2088
  // drag: true,
2035
2089
  },
2036
- renderItem: (v) => /* @__PURE__ */ e(M, { sx: { width: "100%" }, children: f(v, !i) }),
2037
- onMove: ({ index: v, isStart: R, isEnd: $ }) => {
2038
- h(v), typeof R == "boolean" && typeof $ == "boolean" && S({ isStart: R, isEnd: $ });
2090
+ renderItem: (m) => /* @__PURE__ */ e(T, { sx: { width: "100%" }, children: S(m, !i) }),
2091
+ onMove: ({ index: m, isStart: E, isEnd: k }) => {
2092
+ f(m), typeof E == "boolean" && typeof k == "boolean" && v({ isStart: E, isEnd: k });
2039
2093
  }
2040
2094
  }
2041
2095
  ) }),
2042
- r && /* @__PURE__ */ e(M, { sx: { mt: 2, display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ e(
2043
- Be,
2096
+ r && /* @__PURE__ */ e(T, { sx: { mt: 2, display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ e(
2097
+ Ae,
2044
2098
  {
2045
2099
  total: o.length,
2046
2100
  active: c,
2047
- onSelect: (v) => {
2048
- var R;
2049
- h(v), (R = s.current) == null || R.go(v);
2101
+ onSelect: (m) => {
2102
+ var E;
2103
+ f(m), (E = s.current) == null || E.go(m);
2050
2104
  }
2051
2105
  }
2052
2106
  ) })
2053
2107
  ] });
2054
- }, _n = ({
2108
+ }, yn = ({
2055
2109
  className: t = "",
2056
2110
  fullBleed: n = !0,
2057
2111
  items: o,
@@ -2060,20 +2114,20 @@ const dn = (t, n) => {
2060
2114
  }) => {
2061
2115
  const r = H(null), s = H(null);
2062
2116
  if (!o) return null;
2063
- const d = () => {
2117
+ const l = () => {
2064
2118
  window.location.href = "https://www.olimpo.bet/conoce-club-olimpo";
2065
2119
  }, c = Array.isArray(o) ? o[a] : o;
2066
- Ze(() => {
2120
+ et(() => {
2067
2121
  if (!r.current || !s.current || typeof ResizeObserver == "undefined") return;
2068
- const b = r.current, S = s.current, l = () => {
2069
- b.style.setProperty(
2122
+ const x = r.current, v = s.current, d = () => {
2123
+ x.style.setProperty(
2070
2124
  "--orc-co-bottomH",
2071
- `${S.offsetHeight + 16}px`
2125
+ `${v.offsetHeight + 16}px`
2072
2126
  );
2073
- }, w = new ResizeObserver(l);
2074
- return w.observe(S), l(), () => w.disconnect();
2127
+ }, C = new ResizeObserver(d);
2128
+ return C.observe(v), d(), () => C.disconnect();
2075
2129
  }, []);
2076
- const h = [
2130
+ const f = [
2077
2131
  "orc-co-wrap",
2078
2132
  n ? "orc-co-fullBleed" : "",
2079
2133
  t
@@ -2082,13 +2136,13 @@ const dn = (t, n) => {
2082
2136
  "section",
2083
2137
  {
2084
2138
  ref: r,
2085
- className: h,
2139
+ className: f,
2086
2140
  "aria-label": i || c.imgAlt || "Club Olimpo",
2087
2141
  children: /* @__PURE__ */ e("div", { ref: s, children: /* @__PURE__ */ e(
2088
- Bt,
2142
+ Pt,
2089
2143
  {
2090
2144
  text: c.text,
2091
- onClick: d,
2145
+ onClick: l,
2092
2146
  imgAlt: c.imgAlt,
2093
2147
  imgSrcMobile: c.imgMobile,
2094
2148
  imgSrcDesktopBg: c.imgDesktopBg,
@@ -2097,156 +2151,156 @@ const dn = (t, n) => {
2097
2151
  ) })
2098
2152
  }
2099
2153
  );
2100
- }, vn = "oraculo__OraculoSeccionEventoCombinadas-module__controls___Zsta4", wn = {
2101
- controls: vn
2154
+ }, Sn = "oraculo__OraculoSeccionEventoCombinadas-module__controls___Zsta4", En = {
2155
+ controls: Sn
2102
2156
  };
2103
- function yn({
2157
+ function Cn({
2104
2158
  items: t,
2105
2159
  title: n = "Combinadas del Olimpo",
2106
2160
  iconUrl: o = "https://stg-www.contodobet.com/static/img/landing/EventoCombinada/rayoIcon.svg",
2107
2161
  onViewMore: a,
2108
2162
  className: i = ""
2109
2163
  }) {
2110
- const r = H(null), [s, d] = D({ isStart: !0, isEnd: !1 }), [c, h] = D([]), b = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group/prepackcoupon.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764284658793&prePackCouponTags=CUSTOM", S = () => {
2111
- var f;
2112
- (f = r.current) == null || f.prev();
2113
- }, l = () => {
2114
- var f;
2115
- (f = r.current) == null || f.next();
2116
- }, w = () => {
2117
- Vt();
2164
+ const r = H(null), [s, l] = D({ isStart: !0, isEnd: !1 }), [c, f] = D([]), x = "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", v = () => {
2165
+ var S;
2166
+ (S = r.current) == null || S.prev();
2167
+ }, d = () => {
2168
+ var S;
2169
+ (S = r.current) == null || S.next();
2170
+ }, C = () => {
2171
+ Jt();
2118
2172
  };
2119
2173
  async function y() {
2120
- var f, v, R;
2174
+ var S, m, E;
2121
2175
  try {
2122
- const T = await (await fetch(b)).json(), N = (R = (v = (f = T == null ? void 0 : T.group) == null ? void 0 : f.groups) == null ? void 0 : v[0]) == null ? void 0 : R.id;
2176
+ const I = await (await fetch(x)).json(), N = (E = (m = (S = I == null ? void 0 : I.group) == null ? void 0 : S.groups) == null ? void 0 : m[0]) == null ? void 0 : E.id;
2123
2177
  if (!N) {
2124
2178
  console.error("Could not extract group ID");
2125
2179
  return;
2126
2180
  }
2127
- const L = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${N}.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764283566783&prePackCouponTags=CUSTOM`, P = await (await fetch(L)).json();
2128
- h(
2129
- k(P.events, P.betOffers, P.prePackCoupons)
2181
+ const F = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${N}.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764283566783&prePackCouponTags=CUSTOM`, L = await (await fetch(F)).json();
2182
+ f(
2183
+ O(L.events, L.betOffers, L.prePackCoupons)
2130
2184
  );
2131
- } catch ($) {
2132
- console.error("loadDataEventSpecial error:", $);
2185
+ } catch (k) {
2186
+ console.error("loadDataEventSpecial error:", k);
2133
2187
  }
2134
2188
  }
2135
- function k(f, v, R) {
2136
- const $ = [];
2137
- for (const T of R) {
2138
- const N = E([T]), L = C(T), F = v.reduce((P, u) => {
2139
- var _, x;
2140
- P[u.eventId] || (P[u.eventId] = []);
2141
- const p = u.outcomes.filter(
2142
- (g) => N.has(g.id)
2189
+ function O(S, m, E) {
2190
+ const k = [];
2191
+ for (const I of E) {
2192
+ const N = M([I]), F = w(I), P = m.reduce((L, p) => {
2193
+ var _, g;
2194
+ L[p.eventId] || (L[p.eventId] = []);
2195
+ const u = p.outcomes.filter(
2196
+ (b) => N.has(b.id)
2143
2197
  );
2144
- if (p.length > 0) {
2145
- const g = Array.from(
2146
- (x = (_ = L == null ? void 0 : L[0]) == null ? void 0 : _.requiredOutcomeIds) != null ? x : []
2147
- ), I = p.map((B) => ({
2148
- ...B,
2149
- position: g.indexOf(B.id)
2198
+ if (u.length > 0) {
2199
+ const b = Array.from(
2200
+ (g = (_ = F == null ? void 0 : F[0]) == null ? void 0 : _.requiredOutcomeIds) != null ? g : []
2201
+ ), $ = u.map((R) => ({
2202
+ ...R,
2203
+ position: b.indexOf(R.id)
2150
2204
  }));
2151
- P[u.eventId].push({
2152
- ...u,
2153
- outcomes: I
2205
+ L[p.eventId].push({
2206
+ ...p,
2207
+ outcomes: $
2154
2208
  });
2155
2209
  }
2156
- return P;
2210
+ return L;
2157
2211
  }, {});
2158
- f.forEach((P) => {
2159
- if (P.id !== T.prePackCouponRows[0].eventId) return;
2160
- const u = N;
2161
- let p = null;
2162
- for (const _ of L)
2163
- if ([..._.requiredOutcomeIds].every((g) => u.has(g))) {
2164
- p = _.decimal;
2212
+ S.forEach((L) => {
2213
+ if (L.id !== I.prePackCouponRows[0].eventId) return;
2214
+ const p = N;
2215
+ let u = null;
2216
+ for (const _ of F)
2217
+ if ([..._.requiredOutcomeIds].every((b) => p.has(b))) {
2218
+ u = _.decimal;
2165
2219
  break;
2166
2220
  }
2167
- $.push({
2168
- ...P,
2169
- combinadoTotal: p,
2170
- betoffers: F[P.id] || [],
2171
- couponId: T.id
2221
+ k.push({
2222
+ ...L,
2223
+ combinadoTotal: u,
2224
+ betoffers: P[L.id] || [],
2225
+ couponId: I.id
2172
2226
  // optional for tracking
2173
2227
  });
2174
2228
  });
2175
2229
  }
2176
- return $;
2230
+ return k;
2177
2231
  }
2178
- function C(f) {
2179
- var R;
2180
- const v = [];
2181
- for (const $ of f.prePackCouponRows)
2182
- if ($.type === "BET_BUILDER" && ((R = $.group) != null && R.groups)) {
2183
- const T = /* @__PURE__ */ new Set();
2184
- $.group.groups.forEach((N) => {
2185
- var L;
2186
- (L = N.outcomes) == null || L.forEach((F) => T.add(F.id));
2187
- }), v.push({
2188
- requiredOutcomeIds: T,
2189
- decimal: $.odds.decimal
2232
+ function w(S) {
2233
+ var E;
2234
+ const m = [];
2235
+ for (const k of S.prePackCouponRows)
2236
+ if (k.type === "BET_BUILDER" && ((E = k.group) != null && E.groups)) {
2237
+ const I = /* @__PURE__ */ new Set();
2238
+ k.group.groups.forEach((N) => {
2239
+ var F;
2240
+ (F = N.outcomes) == null || F.forEach((P) => I.add(P.id));
2241
+ }), m.push({
2242
+ requiredOutcomeIds: I,
2243
+ decimal: k.odds.decimal
2190
2244
  });
2191
2245
  }
2192
- return v;
2246
+ return m;
2193
2247
  }
2194
- function E(f) {
2195
- var R;
2196
- const v = /* @__PURE__ */ new Set();
2197
- for (const $ of f)
2198
- for (const T of $.prePackCouponRows)
2199
- T.type === "BET_BUILDER" && ((R = T.group) != null && R.groups) && T.group.groups.forEach((N) => {
2200
- var L;
2201
- (L = N.outcomes) == null || L.forEach((F) => v.add(F.id));
2202
- }), T.type === "SIMPLE" && T.outcome && v.add(T.outcome.id);
2203
- return v;
2248
+ function M(S) {
2249
+ var E;
2250
+ const m = /* @__PURE__ */ new Set();
2251
+ for (const k of S)
2252
+ for (const I of k.prePackCouponRows)
2253
+ I.type === "BET_BUILDER" && ((E = I.group) != null && E.groups) && I.group.groups.forEach((N) => {
2254
+ var F;
2255
+ (F = N.outcomes) == null || F.forEach((P) => m.add(P.id));
2256
+ }), I.type === "SIMPLE" && I.outcome && m.add(I.outcome.id);
2257
+ return m;
2204
2258
  }
2205
- K(() => {
2259
+ q(() => {
2206
2260
  y();
2207
2261
  }, []);
2208
- const O = i || void 0;
2209
- return !c || c.length === 0 ? null : /* @__PURE__ */ e("section", { className: O, style: {
2262
+ const B = i || void 0;
2263
+ return !c || c.length === 0 ? null : /* @__PURE__ */ e("section", { className: B, style: {
2210
2264
  // paddingLeft: 16,
2211
2265
  // paddingRight: 16,
2212
2266
  width: "100%",
2213
2267
  boxSizing: "border-box"
2214
- }, children: /* @__PURE__ */ m(z, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
2215
- /* @__PURE__ */ m(Z, { spacing: 1.5, columns: "1fr auto ", justify: "start", children: [
2268
+ }, children: /* @__PURE__ */ h(z, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
2269
+ /* @__PURE__ */ h(Y, { spacing: 1.5, columns: "1fr auto ", justify: "start", children: [
2216
2270
  /* @__PURE__ */ e(ee, { title: n, iconUrl: o, size: "md" }),
2217
- /* @__PURE__ */ m("div", { className: wn.controls, children: [
2218
- /* @__PURE__ */ m(Z, { spacing: 1, columns: "auto auto", children: [
2271
+ /* @__PURE__ */ h("div", { className: En.controls, children: [
2272
+ /* @__PURE__ */ h(Y, { spacing: 1, columns: "auto auto", children: [
2219
2273
  /* @__PURE__ */ e(
2220
- j,
2274
+ G,
2221
2275
  {
2222
2276
  ariaLabel: "Anterior",
2223
2277
  variant: "secondary",
2224
2278
  iconOnly: !0,
2225
- leftIcon: /* @__PURE__ */ e(we, {}),
2226
- onClick: S,
2279
+ leftIcon: /* @__PURE__ */ e(ye, {}),
2280
+ onClick: v,
2227
2281
  disabled: s.isStart
2228
2282
  }
2229
2283
  ),
2230
2284
  /* @__PURE__ */ e(
2231
- j,
2285
+ G,
2232
2286
  {
2233
2287
  ariaLabel: "Siguiente",
2234
2288
  variant: "secondary",
2235
2289
  iconOnly: !0,
2236
- rightIcon: /* @__PURE__ */ e(ye, {}),
2237
- onClick: l,
2290
+ rightIcon: /* @__PURE__ */ e(Se, {}),
2291
+ onClick: d,
2238
2292
  disabled: s.isEnd
2239
2293
  }
2240
2294
  )
2241
2295
  ] }),
2242
- /* @__PURE__ */ e(j, { variant: "secondary", onClick: w, children: "Ver más" })
2296
+ /* @__PURE__ */ e(G, { variant: "secondary", onClick: C, children: "Ver más" })
2243
2297
  ] })
2244
2298
  ] }),
2245
2299
  /* @__PURE__ */ e(
2246
2300
  te,
2247
2301
  {
2248
2302
  ref: r,
2249
- items: c.filter((f) => f.combinadoTotal !== null),
2303
+ items: c.filter((S) => S.combinadoTotal !== null),
2250
2304
  perPage: void 0,
2251
2305
  gap: "16px",
2252
2306
  options: { autoWidth: !0, trimSpace: "move" },
@@ -2255,38 +2309,38 @@ function yn({
2255
2309
  breakpoints: {
2256
2310
  768: { perPage: 1.2, gap: "12px", padding: { left: "0px", right: "0px" } }
2257
2311
  },
2258
- renderItem: (f) => /* @__PURE__ */ e(Kt, { event: f }),
2259
- onMove: ({ isStart: f, isEnd: v }) => d({ isStart: f, isEnd: v })
2312
+ renderItem: (S) => /* @__PURE__ */ e(Xt, { event: S }),
2313
+ onMove: ({ isStart: S, isEnd: m }) => l({ isStart: S, isEnd: m })
2260
2314
  }
2261
2315
  )
2262
2316
  ] }) });
2263
2317
  }
2264
- function Sn({}) {
2318
+ function kn({}) {
2265
2319
  return /* @__PURE__ */ e(
2266
2320
  "div",
2267
2321
  {
2268
- className: Ge.cardWrapper,
2269
- children: /* @__PURE__ */ m(z, { direction: "column", spacing: 1, children: [
2270
- /* @__PURE__ */ m(z, { spacing: 1, direction: "row", children: [
2322
+ className: Ve.cardWrapper,
2323
+ children: /* @__PURE__ */ h(z, { direction: "column", spacing: 1, children: [
2324
+ /* @__PURE__ */ h(z, { spacing: 1, direction: "row", children: [
2271
2325
  /* @__PURE__ */ e(A, { variant: "text", width: "60%", height: 24 }),
2272
2326
  /* @__PURE__ */ e(A, { variant: "text", width: "39%", height: 24 })
2273
2327
  ] }),
2274
- /* @__PURE__ */ m(z, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
2328
+ /* @__PURE__ */ h(z, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
2275
2329
  /* @__PURE__ */ e(A, { variant: "circular", width: 32, height: 40 }),
2276
2330
  /* @__PURE__ */ e(A, { variant: "text", width: 40, height: 40 }),
2277
2331
  /* @__PURE__ */ e(A, { variant: "circular", width: 32, height: 40 })
2278
2332
  ] }),
2279
- /* @__PURE__ */ m(z, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
2333
+ /* @__PURE__ */ h(z, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
2280
2334
  /* @__PURE__ */ e(A, { variant: "text", width: 32, height: 16 }),
2281
2335
  /* @__PURE__ */ e(A, { variant: "text", width: 40, height: 16 }),
2282
2336
  /* @__PURE__ */ e(A, { variant: "text", width: 32, height: 16 })
2283
2337
  ] }),
2284
- /* @__PURE__ */ m(z, { spacing: 2, direction: "row", children: [
2338
+ /* @__PURE__ */ h(z, { spacing: 2, direction: "row", children: [
2285
2339
  /* @__PURE__ */ e(A, { variant: "rounded", width: 88, height: 16 }),
2286
2340
  /* @__PURE__ */ e(A, { variant: "rounded", width: 88, height: 16 }),
2287
2341
  /* @__PURE__ */ e(A, { variant: "rounded", width: 88, height: 16 })
2288
2342
  ] }),
2289
- /* @__PURE__ */ m(z, { spacing: 2, direction: "row", children: [
2343
+ /* @__PURE__ */ h(z, { spacing: 2, direction: "row", children: [
2290
2344
  /* @__PURE__ */ e(A, { variant: "rounded", width: 88, height: 32 }),
2291
2345
  /* @__PURE__ */ e(A, { variant: "rounded", width: 88, height: 32 }),
2292
2346
  /* @__PURE__ */ e(A, { variant: "rounded", width: 88, height: 32 })
@@ -2295,127 +2349,125 @@ function Sn({}) {
2295
2349
  }
2296
2350
  );
2297
2351
  }
2298
- const En = "oraculo__FadeItemWrapper-module__fadeWrapper___kFOH4", Cn = {
2299
- fadeWrapper: En
2352
+ const On = "oraculo__FadeItemWrapper-module__fadeWrapper___kFOH4", In = {
2353
+ fadeWrapper: On
2300
2354
  };
2301
- function he({ children: t }) {
2302
- return /* @__PURE__ */ e("div", { className: Cn.fadeWrapper, children: t });
2355
+ function ge({ children: t }) {
2356
+ return /* @__PURE__ */ e("div", { className: In.fadeWrapper, children: t });
2303
2357
  }
2304
- function kn({
2358
+ function $n({
2305
2359
  items: t,
2306
2360
  title: n = "En vivo",
2307
2361
  iconUrl: o = "https://stg-www.contodobet.com/static/img/landing/EventoEnVivo/icon.svg",
2308
2362
  onViewMore: a,
2309
2363
  className: i = ""
2310
2364
  }) {
2311
- 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 = H(null), [d, c] = D({ isStart: !0, isEnd: !1 }), [h, b] = D([]), [S, l] = D({}), [w, y] = D({ start: null, end: null }), k = H(!1), [C, E] = D(null), O = H(!1);
2312
- H(/* @__PURE__ */ new Set());
2313
- const f = Ue(w, 300), v = () => {
2314
- var u;
2315
- (u = s.current) == null || u.prev();
2316
- }, R = () => {
2317
- var u;
2318
- (u = s.current) == null || u.next();
2319
- }, $ = () => {
2320
- jt();
2321
- }, T = ["esports", "cyber"], N = (u) => u.filter((p) => {
2322
- var x;
2323
- if (p.event.sport !== "FOOTBALL") return !1;
2324
- const _ = ((x = p.event.group) == null ? void 0 : x.toLowerCase()) || "";
2325
- return !T.some((g) => _.includes(g));
2326
- }), L = ve(async () => {
2327
- var u;
2365
+ 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 = H(null), [l, c] = D({ isStart: !0, isEnd: !1 }), [f, x] = D(null), [v, d] = D({}), [C, y] = D({ start: null, end: null }), O = H(!1), [w, M] = D(null), B = H(!1), S = He(C, 300), m = () => {
2366
+ var p;
2367
+ (p = s.current) == null || p.prev();
2368
+ }, E = () => {
2369
+ var p;
2370
+ (p = s.current) == null || p.next();
2371
+ }, k = () => {
2372
+ qt();
2373
+ }, I = ["esports", "cyber"], N = (p) => p.filter((u) => {
2374
+ var g;
2375
+ if (u.event.sport !== "FOOTBALL") return !1;
2376
+ const _ = ((g = u.event.group) == null ? void 0 : g.toLowerCase()) || "";
2377
+ return !I.some((b) => _.includes(b));
2378
+ }), F = ue(async () => {
2379
+ var p;
2328
2380
  try {
2329
- let p = C;
2330
- if (!O.current && C === null) {
2331
- O.current = !0;
2381
+ let u = w;
2382
+ if (!B.current && w === null) {
2383
+ B.current = !0;
2332
2384
  try {
2333
- const U = await fetch(
2385
+ const j = await fetch(
2334
2386
  "https://api.mktolimpo.com/api/kambi/eventos/orden"
2335
- ), G = U.ok ? await U.json() : null;
2336
- p = ((u = G == null ? void 0 : G.data) == null ? void 0 : u.event_ids) || [];
2387
+ ), U = j.ok ? await j.json() : null;
2388
+ u = ((p = U == null ? void 0 : U.data) == null ? void 0 : p.event_ids) || [];
2337
2389
  } catch {
2338
- p = [];
2390
+ u = [];
2339
2391
  }
2340
- E(p);
2392
+ M(u);
2341
2393
  }
2342
- const x = await (await fetch(r)).json(), g = N(x.events);
2343
- if (!p || p.length === 0) {
2344
- b(g);
2394
+ const g = await (await fetch(r)).json(), b = N(g.events);
2395
+ if (!u || u.length === 0) {
2396
+ x(b);
2345
2397
  return;
2346
2398
  }
2347
- const I = new Map(
2348
- p.map((U, G) => [String(U), G])
2349
- ), B = [...g].sort((U, G) => {
2350
- const W = I.get(String(U.event.id)), q = I.get(String(G.event.id));
2351
- return W !== void 0 && q !== void 0 ? W - q : W !== void 0 ? -1 : q !== void 0 ? 1 : 0;
2399
+ const $ = new Map(
2400
+ u.map((j, U) => [String(j), U])
2401
+ ), R = [...b].sort((j, U) => {
2402
+ const W = $.get(String(j.event.id)), K = $.get(String(U.event.id));
2403
+ return W !== void 0 && K !== void 0 ? W - K : W !== void 0 ? -1 : K !== void 0 ? 1 : 0;
2352
2404
  });
2353
- b(B);
2354
- } catch (p) {
2355
- console.error(p);
2405
+ x(R);
2406
+ } catch (u) {
2407
+ console.error(u);
2356
2408
  }
2357
- }, [C]);
2358
- K(() => {
2359
- L();
2360
- const u = setInterval(L, 2e4);
2361
- return () => clearInterval(u);
2362
- }, [L]), K(() => {
2363
- if (f.start === null || f.end === null || !h.length || k.current)
2409
+ }, [w]);
2410
+ q(() => {
2411
+ F();
2412
+ const p = setInterval(F, 2e4);
2413
+ return () => clearInterval(p);
2414
+ }, [F]), q(() => {
2415
+ if (S.start === null || S.end === null || !(f != null && f.length) || O.current)
2364
2416
  return;
2365
- const u = 1, p = Math.max(0, f.start - u), _ = Math.min(h.length - 1, f.end + u), x = h.slice(p, _ + 1).map((g) => g == null ? void 0 : g.event.id).filter(Boolean).filter((g) => S[g] === void 0);
2366
- x.length && (k.current = !0, ze(x).then((g) => {
2367
- l((I) => ({
2368
- ...I,
2369
- ...g.events
2417
+ const p = 3, u = Math.max(0, S.start - p), _ = Math.min(f.length - 1, S.end + p), g = f.slice(u, _ + 1).map((b) => b == null ? void 0 : b.event.id).filter(Boolean).filter((b) => v[b] === void 0);
2418
+ g.length && (O.current = !0, Ge(g).then((b) => {
2419
+ d(($) => ({
2420
+ ...$,
2421
+ ...b.events
2370
2422
  }));
2371
- }).catch((g) => {
2372
- console.error("Jersey fetch error", g);
2423
+ }).catch((b) => {
2424
+ console.error("Jersey fetch error", b);
2373
2425
  }).finally(() => {
2374
- k.current = !1;
2426
+ O.current = !1;
2375
2427
  }));
2376
- }, [f, h, S]);
2377
- const F = i || void 0, P = !h || h.length === 0;
2378
- return /* @__PURE__ */ e("section", { className: F, style: {
2428
+ }, [S, f, v]);
2429
+ const P = i || void 0, L = f === null;
2430
+ return !L && f.length === 0 ? null : /* @__PURE__ */ e("section", { className: P, style: {
2379
2431
  // paddingLeft: 16,
2380
2432
  // paddingRight: 16,
2381
2433
  width: "100%",
2382
2434
  boxSizing: "border-box"
2383
- }, children: /* @__PURE__ */ m(z, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
2384
- /* @__PURE__ */ m(Z, { spacing: 1.5, columns: "1fr auto ", justify: "start", children: [
2435
+ }, children: /* @__PURE__ */ h(z, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
2436
+ /* @__PURE__ */ h(Y, { spacing: 1.5, columns: "1fr auto ", justify: "start", children: [
2385
2437
  /* @__PURE__ */ e(ee, { title: n, iconUrl: o, size: "md" }),
2386
- /* @__PURE__ */ m("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
2387
- /* @__PURE__ */ m(Z, { spacing: 1, columns: "auto auto", children: [
2438
+ /* @__PURE__ */ h("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
2439
+ /* @__PURE__ */ h(Y, { spacing: 1, columns: "auto auto", children: [
2388
2440
  /* @__PURE__ */ e(
2389
- j,
2441
+ G,
2390
2442
  {
2391
2443
  ariaLabel: "Anterior",
2392
2444
  variant: "secondary",
2393
2445
  iconOnly: !0,
2394
- leftIcon: /* @__PURE__ */ e(we, {}),
2395
- onClick: v,
2396
- disabled: d.isStart
2446
+ leftIcon: /* @__PURE__ */ e(ye, {}),
2447
+ onClick: m,
2448
+ disabled: l.isStart
2397
2449
  }
2398
2450
  ),
2399
2451
  /* @__PURE__ */ e(
2400
- j,
2452
+ G,
2401
2453
  {
2402
2454
  ariaLabel: "Siguiente",
2403
2455
  variant: "secondary",
2404
2456
  iconOnly: !0,
2405
- rightIcon: /* @__PURE__ */ e(ye, {}),
2406
- onClick: R,
2407
- disabled: d.isEnd
2457
+ rightIcon: /* @__PURE__ */ e(Se, {}),
2458
+ onClick: E,
2459
+ disabled: l.isEnd
2408
2460
  }
2409
2461
  )
2410
2462
  ] }),
2411
- /* @__PURE__ */ e(j, { variant: "secondary", onClick: $, children: "Ver más" })
2463
+ /* @__PURE__ */ e(G, { variant: "secondary", onClick: k, children: "Ver más" })
2412
2464
  ] })
2413
2465
  ] }),
2414
2466
  /* @__PURE__ */ e(
2415
2467
  te,
2416
2468
  {
2417
2469
  ref: s,
2418
- items: P ? Array(4).fill({}) : h.slice(0, 20),
2470
+ items: L ? Array(4).fill({}) : f.slice(0, 20),
2419
2471
  perPage: void 0,
2420
2472
  enableHorizontalWheel: !0,
2421
2473
  gap: "16px",
@@ -2425,47 +2477,47 @@ function kn({
2425
2477
  768: { gap: "8px", focus: "center" },
2426
2478
  1024: { gap: "10px", focus: "center" }
2427
2479
  },
2428
- renderItem: (u) => {
2429
- var x;
2430
- const p = ((x = u.event) == null ? void 0 : x.id) || u.eventId, _ = S[p];
2431
- return P ? /* @__PURE__ */ e(he, { children: /* @__PURE__ */ e(Sn, {}) }) : /* @__PURE__ */ e(he, { children: /* @__PURE__ */ e(
2432
- Jt,
2480
+ renderItem: (p) => {
2481
+ var g;
2482
+ const u = ((g = p.event) == null ? void 0 : g.id) || p.eventId, _ = u in v ? v[u] : void 0;
2483
+ return L ? /* @__PURE__ */ e(ge, { children: /* @__PURE__ */ e(kn, {}) }) : /* @__PURE__ */ e(ge, { children: /* @__PURE__ */ e(
2484
+ Qt,
2433
2485
  {
2434
- ...u,
2435
- jersey: _ == null ? void 0 : _.jerseys
2486
+ ...p,
2487
+ jersey: _
2436
2488
  }
2437
2489
  ) });
2438
2490
  },
2439
- onMove: ({ isStart: u, isEnd: p, visibleStart: _, visibleEnd: x }) => {
2440
- c({ isStart: u, isEnd: p }), y({
2491
+ onMove: ({ isStart: p, isEnd: u, visibleStart: _, visibleEnd: g }) => {
2492
+ c({ isStart: p, isEnd: u }), y({
2441
2493
  start: _,
2442
- end: x
2494
+ end: g
2443
2495
  });
2444
2496
  }
2445
2497
  }
2446
2498
  )
2447
2499
  ] }) });
2448
2500
  }
2449
- function On() {
2450
- return /* @__PURE__ */ m("div", { className: ne.cardContainer, children: [
2451
- /* @__PURE__ */ e(We, { title: "" }),
2452
- /* @__PURE__ */ e("div", { className: ne.cardBackground, children: /* @__PURE__ */ m(z, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
2453
- /* @__PURE__ */ m(z, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
2501
+ function Nn() {
2502
+ return /* @__PURE__ */ h("div", { className: ne.cardContainer, children: [
2503
+ /* @__PURE__ */ e(je, { title: "" }),
2504
+ /* @__PURE__ */ e("div", { className: ne.cardBackground, children: /* @__PURE__ */ h(z, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
2505
+ /* @__PURE__ */ h(z, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
2454
2506
  /* @__PURE__ */ e(A, { variant: "circular", width: 48, height: 48 }),
2455
2507
  /* @__PURE__ */ e(A, { variant: "circular", width: 48, height: 48 })
2456
2508
  ] }),
2457
- /* @__PURE__ */ m(z, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
2458
- /* @__PURE__ */ m(z, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
2509
+ /* @__PURE__ */ h(z, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
2510
+ /* @__PURE__ */ h(z, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
2459
2511
  /* @__PURE__ */ e(A, { variant: "text", width: 80, height: 12 }),
2460
2512
  /* @__PURE__ */ e(A, { variant: "text", width: 80, height: 12 })
2461
2513
  ] }),
2462
2514
  /* @__PURE__ */ e(z, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ e(A, { variant: "text", width: 160, height: 12 }) }),
2463
- /* @__PURE__ */ m(z, { direction: "row", spacing: 1, children: [
2515
+ /* @__PURE__ */ h(z, { direction: "row", spacing: 1, children: [
2464
2516
  /* @__PURE__ */ e(A, { variant: "text", width: 80, height: 16 }),
2465
2517
  /* @__PURE__ */ e(A, { variant: "text", width: 80, height: 16 }),
2466
2518
  /* @__PURE__ */ e(A, { variant: "text", width: 80, height: 16 })
2467
2519
  ] }),
2468
- /* @__PURE__ */ e("div", { className: ne.jugadas, children: /* @__PURE__ */ m(z, { direction: "row", spacing: 1, children: [
2520
+ /* @__PURE__ */ e("div", { className: ne.jugadas, children: /* @__PURE__ */ h(z, { direction: "row", spacing: 1, children: [
2469
2521
  /* @__PURE__ */ e(A, { variant: "rounded", width: 80, height: 32 }),
2470
2522
  /* @__PURE__ */ e(A, { variant: "rounded", width: 80, height: 32 }),
2471
2523
  /* @__PURE__ */ e(A, { variant: "rounded", width: 80, height: 32 })
@@ -2474,29 +2526,29 @@ function On() {
2474
2526
  ] }) })
2475
2527
  ] });
2476
2528
  }
2477
- const In = "oraculo__OraculoSeccionEventoSemana-module__wrapper___eqVq-", $n = "oraculo__OraculoSeccionEventoSemana-module__container___5yFQs", Nn = "oraculo__OraculoSeccionEventoSemana-module__buttonWrapper___-6IDT", _e = {
2478
- wrapper: In,
2479
- container: $n,
2480
- buttonWrapper: Nn
2529
+ const Tn = "oraculo__OraculoSeccionEventoSemana-module__wrapper___eqVq-", Fn = "oraculo__OraculoSeccionEventoSemana-module__container___5yFQs", Rn = "oraculo__OraculoSeccionEventoSemana-module__buttonWrapper___-6IDT", we = {
2530
+ wrapper: Tn,
2531
+ container: Fn,
2532
+ buttonWrapper: Rn
2481
2533
  };
2482
- async function Tn(t, n = 2, o) {
2534
+ async function Mn(t, n = 2, o) {
2483
2535
  const a = [];
2484
2536
  for (let i = 0; i < t.length; i += n) {
2485
2537
  if (o.aborted)
2486
2538
  throw new DOMException("Aborted", "AbortError");
2487
2539
  const r = t.slice(i, i + n), s = await Promise.all(
2488
- r.map((d) => fetch(d, { signal: o }).then((c) => c.json()))
2540
+ r.map((l) => fetch(l, { signal: o }).then((c) => c.json()))
2489
2541
  );
2490
2542
  a.push(...s);
2491
2543
  }
2492
2544
  return a;
2493
2545
  }
2494
- function Mn(t) {
2546
+ function Ln(t) {
2495
2547
  return [...t].sort(
2496
2548
  (n, o) => new Date(n.start).getTime() - new Date(o.start).getTime()
2497
2549
  );
2498
2550
  }
2499
- function Rn(t) {
2551
+ function Wn(t) {
2500
2552
  const n = /* @__PURE__ */ new Date(), o = new Date(n.getTime() + 480 * 60 * 60 * 1e3);
2501
2553
  return t.filter((a) => {
2502
2554
  if (!a.start) return !1;
@@ -2504,7 +2556,7 @@ function Rn(t) {
2504
2556
  return i >= n && i <= o;
2505
2557
  });
2506
2558
  }
2507
- function Ln(t, n) {
2559
+ function Bn(t, n) {
2508
2560
  const a = n.filter((i) => {
2509
2561
  var r;
2510
2562
  return ((r = i.betOfferType) == null ? void 0 : r.id) === 2;
@@ -2514,141 +2566,141 @@ function Ln(t, n) {
2514
2566
  outcome: a[i.id]
2515
2567
  }));
2516
2568
  }
2517
- function Bn({
2569
+ function Pn({
2518
2570
  items: t,
2519
2571
  title: n = "En vivo",
2520
2572
  iconUrl: o,
2521
2573
  onViewMore: a,
2522
2574
  className: i = ""
2523
2575
  }) {
2524
- const r = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE", s = H(null), [d, c] = D({ isStart: !0, isEnd: !1 }), [h, b] = D([]);
2576
+ const r = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE", s = H(null), [l, c] = D({ isStart: !0, isEnd: !1 }), [f, x] = D(null);
2525
2577
  H(/* @__PURE__ */ new Set());
2526
- const [S, l] = D({}), [w, y] = D({ start: null, end: null }), k = "channel_id=1&client_id=200&competitionId=undefined&lang=es_PE&market=PE&useCombined=true", C = Ue(w, 250), E = H(!1), O = () => {
2527
- Ht();
2578
+ const [v, d] = D({}), [C, y] = D({ start: null, end: null }), O = "channel_id=1&client_id=200&competitionId=undefined&lang=es_PE&market=PE&useCombined=true", w = He(C, 250), M = H(!1), B = () => {
2579
+ Kt();
2528
2580
  };
2529
- async function f(N) {
2530
- var P, u;
2531
- let L = [], F = [];
2581
+ async function S(N) {
2582
+ var L, p;
2583
+ let F = [], P = [];
2532
2584
  try {
2533
- const p = await fetch(
2585
+ const u = await fetch(
2534
2586
  "https://api.mktolimpo.com/api/kambi/eventos/orden",
2535
2587
  { signal: N }
2536
2588
  );
2537
- if (p.ok) {
2538
- const _ = await p.json();
2539
- L = ((P = _ == null ? void 0 : _.data) == null ? void 0 : P.group_ids) || [], F = ((u = _ == null ? void 0 : _.data) == null ? void 0 : u.event_ids) || [];
2589
+ if (u.ok) {
2590
+ const _ = await u.json();
2591
+ F = ((L = _ == null ? void 0 : _.data) == null ? void 0 : L.group_ids) || [], P = ((p = _ == null ? void 0 : _.data) == null ? void 0 : p.event_ids) || [];
2540
2592
  }
2541
- } catch (p) {
2542
- p.name !== "AbortError" && console.warn("Order API not available, using default group order");
2593
+ } catch (u) {
2594
+ u.name !== "AbortError" && console.warn("Order API not available, using default group order");
2543
2595
  return;
2544
2596
  }
2545
2597
  try {
2546
- const x = (await (await fetch(r, { signal: N })).json()).group.groups.find(
2598
+ const g = (await (await fetch(r, { signal: N })).json()).group.groups.find(
2547
2599
  (W) => W.englishName === "Football"
2548
2600
  );
2549
- if (!x || !Array.isArray(x.groups)) {
2601
+ if (!g || !Array.isArray(g.groups)) {
2550
2602
  console.error("Football groups not found");
2551
2603
  return;
2552
2604
  }
2553
- let g = [...x.groups];
2554
- if (L.length > 0) {
2605
+ let b = [...g.groups];
2606
+ if (F.length > 0) {
2555
2607
  const W = new Map(
2556
- L.map((q, re) => [q, re])
2608
+ F.map((K, re) => [K, re])
2557
2609
  );
2558
- g.sort((q, re) => {
2559
- const ae = W.get(String(q.id)), fe = W.get(String(re.id));
2560
- return ae !== void 0 && fe !== void 0 ? ae - fe : ae !== void 0 ? -1 : fe !== void 0 ? 1 : 0;
2610
+ b.sort((K, re) => {
2611
+ const ae = W.get(String(K.id)), xe = W.get(String(re.id));
2612
+ return ae !== void 0 && xe !== void 0 ? ae - xe : ae !== void 0 ? -1 : xe !== void 0 ? 1 : 0;
2561
2613
  });
2562
2614
  }
2563
- const B = g.slice(0, 5), U = (W) => {
2564
- const q = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football";
2615
+ const R = b.slice(0, 5), j = (W) => {
2616
+ const K = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football";
2565
2617
  if (W.groups && W.groups.length > 0) {
2566
2618
  const re = W.groups[0];
2567
2619
  return [
2568
- `${q}/${W.termKey}/${re.termKey}/all/matches.json?${k}`
2620
+ `${K}/${W.termKey}/${re.termKey}/all/matches.json?${O}`
2569
2621
  ];
2570
2622
  }
2571
2623
  return [
2572
- `${q}/${W.termKey}/all/all/matches.json?${k}`
2624
+ `${K}/${W.termKey}/all/all/matches.json?${O}`
2573
2625
  ];
2574
- }, G = B.flatMap(U);
2575
- v(
2576
- G,
2577
- F,
2626
+ }, U = R.flatMap(j);
2627
+ m(
2628
+ U,
2629
+ P,
2578
2630
  N
2579
2631
  );
2580
- } catch (p) {
2581
- console.error(p);
2632
+ } catch (u) {
2633
+ console.error(u);
2582
2634
  }
2583
2635
  }
2584
- async function v(N, L, F) {
2636
+ async function m(N, F, P) {
2585
2637
  try {
2586
- const P = await Tn(N, 2, F);
2587
- let u = [], p = [];
2588
- P.forEach((I) => {
2589
- I.events && (u.push(...I.events.map((B) => B.event)), p.push(...I.events.flatMap((B) => B.betOffers || [])));
2638
+ const L = await Mn(N, 2, P);
2639
+ let p = [], u = [];
2640
+ L.forEach(($) => {
2641
+ $.events && (p.push(...$.events.map((R) => R.event)), u.push(...$.events.flatMap((R) => R.betOffers || [])));
2590
2642
  });
2591
- const _ = Ln(u, p), x = Mn(Rn(_));
2592
- let g = x;
2593
- if (L.length > 0) {
2594
- const I = new Map(
2595
- L.map((B, U) => [
2596
- String(B),
2597
- U
2643
+ const _ = Bn(p, u), g = Ln(Wn(_));
2644
+ let b = g;
2645
+ if (F.length > 0) {
2646
+ const $ = new Map(
2647
+ F.map((R, j) => [
2648
+ String(R),
2649
+ j
2598
2650
  ])
2599
2651
  );
2600
- g = [...x].sort((B, U) => {
2601
- const G = I.get(String(B.id)), W = I.get(String(U.id));
2602
- return G !== void 0 && W !== void 0 ? G - W : G !== void 0 ? -1 : W !== void 0 ? 1 : 0;
2652
+ b = [...g].sort((R, j) => {
2653
+ const U = $.get(String(R.id)), W = $.get(String(j.id));
2654
+ return U !== void 0 && W !== void 0 ? U - W : U !== void 0 ? -1 : W !== void 0 ? 1 : 0;
2603
2655
  });
2604
2656
  }
2605
- if (F.aborted) return;
2606
- b(g);
2607
- } catch (P) {
2608
- console.error("Error loading events:", P);
2657
+ if (P.aborted) return;
2658
+ x(b);
2659
+ } catch (L) {
2660
+ console.error("Error loading events:", L);
2609
2661
  }
2610
2662
  }
2611
- K(() => {
2663
+ q(() => {
2612
2664
  if (!t) return;
2613
2665
  const N = new AbortController();
2614
- return f(N.signal), () => {
2666
+ return S(N.signal), () => {
2615
2667
  N.abort();
2616
2668
  };
2617
- }, [t]), K(() => {
2618
- if (C.start === null || C.end === null || !h.length || E.current)
2669
+ }, [t]), q(() => {
2670
+ if (w.start === null || w.end === null || !(f != null && f.length) || M.current)
2619
2671
  return;
2620
- const N = 1, L = Math.max(0, C.start - N), F = Math.min(h.length - 1, C.end + N), P = h.slice(L, F + 1).map((p) => p == null ? void 0 : p.id).filter(Boolean).filter((p) => S[p] === void 0);
2621
- if (!P.length) return;
2622
- let u = !1;
2623
- return E.current = !0, (async () => {
2672
+ const N = 2, F = Math.max(0, w.start - N), P = Math.min(f.length - 1, w.end + N), L = f.slice(F, P + 1).map((u) => u == null ? void 0 : u.id).filter(Boolean).filter((u) => v[u] === void 0);
2673
+ if (!L.length) return;
2674
+ let p = !1;
2675
+ return M.current = !0, (async () => {
2624
2676
  try {
2625
- const p = await ze(P);
2626
- u || l((_) => ({
2677
+ const u = await Ge(L);
2678
+ p || d((_) => ({
2627
2679
  ..._,
2628
- ...p.events
2680
+ ...u.events
2629
2681
  }));
2630
- } catch (p) {
2631
- console.error("Jersey fetch error", p);
2682
+ } catch (u) {
2683
+ console.error("Jersey fetch error", u);
2632
2684
  } finally {
2633
- E.current = !1;
2685
+ M.current = !1;
2634
2686
  }
2635
2687
  })(), () => {
2636
- u = !0;
2688
+ p = !0;
2637
2689
  };
2638
- }, [C, h]);
2639
- const R = i || void 0, $ = !h || h.length === 0;
2640
- return /* @__PURE__ */ e("section", { className: R, style: { paddingLeft: 0, width: "100%", boxSizing: "border-box" }, children: /* @__PURE__ */ m("div", { className: _e.wrapper, children: [
2641
- /* @__PURE__ */ e("div", { className: _e.container, children: /* @__PURE__ */ m(z, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
2690
+ }, [w, f]);
2691
+ const E = i || void 0, k = { paddingLeft: 0, width: "100%", boxSizing: "border-box" }, I = f === null;
2692
+ return !I && f.length === 0 ? null : /* @__PURE__ */ e("section", { className: E, style: k, children: /* @__PURE__ */ h("div", { className: we.wrapper, children: [
2693
+ /* @__PURE__ */ e("div", { className: we.container, children: /* @__PURE__ */ h(z, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
2642
2694
  /* @__PURE__ */ e(ee, { title: "Eventos de la semana" }),
2643
- /* @__PURE__ */ e("div", { className: _e.buttonWrapper, children: /* @__PURE__ */ e(j, { variant: "secondary", size: "lg", fullWidth: !0, onClick: () => {
2644
- O();
2695
+ /* @__PURE__ */ e("div", { className: we.buttonWrapper, children: /* @__PURE__ */ e(G, { variant: "secondary", size: "lg", fullWidth: !0, onClick: () => {
2696
+ B();
2645
2697
  }, children: "Ver más" }) })
2646
2698
  ] }) }),
2647
2699
  /* @__PURE__ */ e("div", { style: { minWidth: "180px" }, children: /* @__PURE__ */ e(
2648
2700
  te,
2649
2701
  {
2650
2702
  ref: s,
2651
- items: $ ? Array(6).fill({}) : h.slice(0, 20),
2703
+ items: I ? Array(6).fill({}) : f.slice(0, 20),
2652
2704
  perPage: 3.5,
2653
2705
  gap: "16px",
2654
2706
  enableHorizontalWheel: !0,
@@ -2657,32 +2709,32 @@ function Bn({
2657
2709
  1024: { perPage: 1.4, gap: "8px", focus: "center", padding: { left: "8px", right: "8px" } }
2658
2710
  },
2659
2711
  renderItem: (N) => {
2660
- const L = N.id, F = S[L];
2661
- return $ ? /* @__PURE__ */ e(he, { children: /* @__PURE__ */ e(On, {}) }) : /* @__PURE__ */ e(he, { children: /* @__PURE__ */ e(rn, { event: N, jersey: F == null ? void 0 : F.jerseys }) });
2712
+ const F = N.id, P = F in v ? v[F] : void 0;
2713
+ return I ? /* @__PURE__ */ e(ge, { children: /* @__PURE__ */ e(Nn, {}) }) : /* @__PURE__ */ e(ge, { children: /* @__PURE__ */ e(cn, { event: N, jersey: P }) });
2662
2714
  },
2663
- onMove: ({ isStart: N, isEnd: L, visibleStart: F, visibleEnd: P }) => {
2664
- c({ isStart: N, isEnd: L }), y({
2665
- start: F,
2666
- end: P
2715
+ onMove: ({ isStart: N, isEnd: F, visibleStart: P, visibleEnd: L }) => {
2716
+ c({ isStart: N, isEnd: F }), y({
2717
+ start: P,
2718
+ end: L
2667
2719
  });
2668
2720
  }
2669
2721
  }
2670
2722
  ) })
2671
2723
  ] }) });
2672
2724
  }
2673
- function Pn({
2725
+ function An({
2674
2726
  backgrounds: t,
2675
2727
  items: n
2676
2728
  }) {
2677
2729
  const [o, a] = D(0), i = H(null), r = (t == null ? void 0 : t.length) || 1, s = !t || t.length === 0;
2678
- return K(() => {
2730
+ return q(() => {
2679
2731
  if (s || !t || t.length <= 1) return;
2680
- const d = window.setInterval(() => {
2732
+ const l = window.setInterval(() => {
2681
2733
  var c;
2682
2734
  (c = i.current) == null || c.next();
2683
- }, 3e3);
2684
- return () => window.clearInterval(d);
2685
- }, [s, t == null ? void 0 : t.length]), /* @__PURE__ */ m(
2735
+ }, 5e3);
2736
+ return () => window.clearInterval(l);
2737
+ }, [s, t == null ? void 0 : t.length]), /* @__PURE__ */ h(
2686
2738
  V,
2687
2739
  {
2688
2740
  component: "section",
@@ -2691,7 +2743,7 @@ function Pn({
2691
2743
  overflow: "visible"
2692
2744
  },
2693
2745
  children: [
2694
- /* @__PURE__ */ m(
2746
+ /* @__PURE__ */ h(
2695
2747
  V,
2696
2748
  {
2697
2749
  sx: {
@@ -2717,19 +2769,19 @@ function Pn({
2717
2769
  drag: !0,
2718
2770
  focus: "center"
2719
2771
  },
2720
- onMove: ({ index: d }) => {
2721
- const c = (d % r + r) % r;
2772
+ onMove: ({ index: l }) => {
2773
+ const c = (l % r + r) % r;
2722
2774
  a(c);
2723
2775
  },
2724
- renderItem: (d) => {
2725
- var c, h;
2726
- return /* @__PURE__ */ m(
2776
+ renderItem: (l) => {
2777
+ var c, f;
2778
+ return /* @__PURE__ */ h(
2727
2779
  V,
2728
2780
  {
2729
2781
  component: "a",
2730
- href: d.href,
2731
- target: (c = d.target) != null ? c : "_self",
2732
- rel: d.target === "_blank" ? "noopener noreferrer" : void 0,
2782
+ href: l.href,
2783
+ target: (c = l.target) != null ? c : "_self",
2784
+ rel: l.target === "_blank" ? "noopener noreferrer" : void 0,
2733
2785
  sx: {
2734
2786
  position: "relative",
2735
2787
  height: { xs: 300, sm: 360, md: 420 },
@@ -2738,19 +2790,19 @@ function Pn({
2738
2790
  cursor: "pointer"
2739
2791
  },
2740
2792
  children: [
2741
- /* @__PURE__ */ m(
2793
+ /* @__PURE__ */ h(
2742
2794
  V,
2743
2795
  {
2744
2796
  component: "picture",
2745
2797
  sx: { position: "absolute", inset: 0, lineHeight: 0 },
2746
2798
  children: [
2747
- /* @__PURE__ */ e("source", { srcSet: d.desktopSrc, media: "(min-width:800px)" }),
2748
- /* @__PURE__ */ e("source", { srcSet: d.mobileSrc, media: "(max-width:799px)" }),
2799
+ /* @__PURE__ */ e("source", { srcSet: l.desktopSrc, media: "(min-width:800px)" }),
2800
+ /* @__PURE__ */ e("source", { srcSet: l.mobileSrc, media: "(max-width:799px)" }),
2749
2801
  /* @__PURE__ */ e(
2750
2802
  V,
2751
2803
  {
2752
2804
  component: "img",
2753
- src: (h = d.fallbackSrc) != null ? h : d.desktopSrc,
2805
+ src: (f = l.fallbackSrc) != null ? f : l.desktopSrc,
2754
2806
  alt: "",
2755
2807
  "aria-hidden": !0,
2756
2808
  loading: "lazy",
@@ -2802,7 +2854,7 @@ function Pn({
2802
2854
  justifyContent: "center",
2803
2855
  zIndex: 2
2804
2856
  },
2805
- children: /* @__PURE__ */ e(Be, { total: r, active: o })
2857
+ children: /* @__PURE__ */ e(Ae, { total: r, active: o })
2806
2858
  }
2807
2859
  )
2808
2860
  ]
@@ -2829,7 +2881,7 @@ function Pn({
2829
2881
  boxShadow: "0 10px 24px rgba(0,0,0,.35)",
2830
2882
  zIndex: 3
2831
2883
  },
2832
- children: n == null ? void 0 : n.map((d) => /* @__PURE__ */ m(
2884
+ children: n == null ? void 0 : n.map((l) => /* @__PURE__ */ h(
2833
2885
  V,
2834
2886
  {
2835
2887
  sx: {
@@ -2840,21 +2892,21 @@ function Pn({
2840
2892
  gap: { xs: 0.5, md: 1 },
2841
2893
  color: "#FFFFFF",
2842
2894
  minWidth: 0,
2843
- cursor: d.onClick || d.href ? "pointer" : "default",
2895
+ cursor: l.onClick || l.href ? "pointer" : "default",
2844
2896
  whiteSpace: "nowrap"
2845
2897
  },
2846
2898
  onClick: () => {
2847
2899
  var c;
2848
- if (d.onClick) return d.onClick();
2849
- if (d.href) return window.location.href = (c = d.href) != null ? c : "/#";
2900
+ if (l.onClick) return l.onClick();
2901
+ if (l.href) return window.location.href = (c = l.href) != null ? c : "/#";
2850
2902
  },
2851
2903
  children: [
2852
- d.icon && /* @__PURE__ */ e(
2904
+ l.icon && /* @__PURE__ */ e(
2853
2905
  V,
2854
2906
  {
2855
2907
  component: "img",
2856
- src: d.icon,
2857
- alt: d.label || `icon-${d.id}`,
2908
+ src: l.icon,
2909
+ alt: l.label || `icon-${l.id}`,
2858
2910
  sx: {
2859
2911
  width: { xs: 20, sm: 22, md: 24 },
2860
2912
  height: { xs: 20, sm: 22, md: 24 },
@@ -2863,7 +2915,7 @@ function Pn({
2863
2915
  }
2864
2916
  ),
2865
2917
  /* @__PURE__ */ e(
2866
- Me,
2918
+ Le,
2867
2919
  {
2868
2920
  sx: {
2869
2921
  fontSize: { xs: 10, sm: 11, md: 12 },
@@ -2871,12 +2923,12 @@ function Pn({
2871
2923
  color: "#E0E0E0",
2872
2924
  textAlign: "center"
2873
2925
  },
2874
- children: d.label
2926
+ children: l.label
2875
2927
  }
2876
2928
  )
2877
2929
  ]
2878
2930
  },
2879
- d.id
2931
+ l.id
2880
2932
  ))
2881
2933
  }
2882
2934
  )
@@ -2884,7 +2936,7 @@ function Pn({
2884
2936
  }
2885
2937
  );
2886
2938
  }
2887
- const Wn = [
2939
+ const zn = [
2888
2940
  { src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/IBK.svg", alt: "Interbank" },
2889
2941
  { src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/Yape.svg", alt: "Yape" },
2890
2942
  { src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/BCP.png", alt: "BCP" },
@@ -2893,14 +2945,14 @@ const Wn = [
2893
2945
  { src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/monnet.svg", alt: "Monnet" },
2894
2946
  { src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/niubiz.svg", alt: "Niubiz" }
2895
2947
  ];
2896
- function Fn({
2948
+ function jn({
2897
2949
  title: t = "Medios de pago",
2898
- items: n = Wn
2950
+ items: n = zn
2899
2951
  }) {
2900
2952
  const o = Math.ceil(n.length / 2), a = n.slice(0, o), i = n.slice(o);
2901
- return /* @__PURE__ */ m(V, { component: "section", "aria-labelledby": "mp-title", sx: { color: "#fff" }, children: [
2953
+ return /* @__PURE__ */ h(V, { component: "section", "aria-labelledby": "mp-title", sx: { color: "#fff" }, children: [
2902
2954
  /* @__PURE__ */ e(
2903
- Me,
2955
+ Le,
2904
2956
  {
2905
2957
  id: "mp-title",
2906
2958
  variant: "h6",
@@ -2927,7 +2979,7 @@ function Fn({
2927
2979
  }
2928
2980
  }
2929
2981
  ),
2930
- /* @__PURE__ */ m(de, { spacing: { xs: 2, md: 3 }, alignItems: "center", children: [
2982
+ /* @__PURE__ */ h(de, { spacing: { xs: 2, md: 3 }, alignItems: "center", children: [
2931
2983
  /* @__PURE__ */ e(
2932
2984
  de,
2933
2985
  {
@@ -2936,7 +2988,7 @@ function Fn({
2936
2988
  alignItems: "center",
2937
2989
  gap: { xs: 2, md: 3 },
2938
2990
  flexWrap: "wrap",
2939
- children: a.map((r, s) => /* @__PURE__ */ e(Ee, { ...r }, `${r.alt}-${r.src}-${s}`))
2991
+ children: a.map((r, s) => /* @__PURE__ */ e(Ce, { ...r }, `${r.alt}-${r.src}-${s}`))
2940
2992
  }
2941
2993
  ),
2942
2994
  /* @__PURE__ */ e(
@@ -2947,264 +2999,264 @@ function Fn({
2947
2999
  alignItems: "center",
2948
3000
  gap: { xs: 2, md: 3 },
2949
3001
  flexWrap: "wrap",
2950
- children: i.map((r, s) => /* @__PURE__ */ e(Ee, { ...r }, `${r.alt}-${r.src}-${s}`))
3002
+ children: i.map((r, s) => /* @__PURE__ */ e(Ce, { ...r }, `${r.alt}-${r.src}-${s}`))
2951
3003
  }
2952
3004
  )
2953
3005
  ] })
2954
3006
  ] });
2955
3007
  }
2956
- const An = {
2957
- OraculoSeccionDestacados: an,
2958
- OraculoSeccionTopJuegos: ln,
2959
- OraculoSeccionCasinoEnVivo: un,
2960
- OraculoSeccionCasino: mn,
2961
- OraculoSeccionVirtuales: gn,
2962
- OraculoSeccionClubOlimpo: _n,
2963
- OraculoSeccionBonoBienvenida: bn,
2964
- OraculoSeccionBanners: Pn,
2965
- OraculoSeccionMediosPago: Fn,
2966
- OraculoSeccionEventoEnVivo: kn,
2967
- OraculoSeccionEventoSemana: Bn,
2968
- OraculoSeccionEventoCombinadas: yn
2969
- }, zn = (t) => typeof t == "function" || t && typeof t == "object" && "$$typeof" in t, Un = (t) => /^OraculoSeccion[A-Z]/.test(t), Gn = Object.fromEntries(
2970
- Object.entries(An).filter(
2971
- ([t, n]) => Un(t) && zn(n)
3008
+ const Un = {
3009
+ OraculoSeccionDestacados: ln,
3010
+ OraculoSeccionTopJuegos: pn,
3011
+ OraculoSeccionCasinoEnVivo: hn,
3012
+ OraculoSeccionCasino: gn,
3013
+ OraculoSeccionVirtuales: _n,
3014
+ OraculoSeccionClubOlimpo: yn,
3015
+ OraculoSeccionBonoBienvenida: wn,
3016
+ OraculoSeccionBanners: An,
3017
+ OraculoSeccionMediosPago: jn,
3018
+ OraculoSeccionEventoEnVivo: $n,
3019
+ OraculoSeccionEventoSemana: Pn,
3020
+ OraculoSeccionEventoCombinadas: Cn
3021
+ }, Dn = (t) => typeof t == "function" || t && typeof t == "object" && "$$typeof" in t, Gn = (t) => /^OraculoSeccion[A-Z]/.test(t), Hn = Object.fromEntries(
3022
+ Object.entries(Un).filter(
3023
+ ([t, n]) => Gn(t) && Dn(n)
2972
3024
  )
2973
- ), Dn = (t) => {
3025
+ ), Vn = (t) => {
2974
3026
  try {
2975
3027
  return Object.fromEntries(t != null ? t : []);
2976
3028
  } catch {
2977
3029
  return console.warn("[oraculo] extras inválidos. Debe ser Array<[string, unknown]>", t), {};
2978
3030
  }
2979
3031
  };
2980
- class $e extends Error {
3032
+ class Fe extends Error {
2981
3033
  constructor(n, o, a) {
2982
3034
  super(`HTTP ${n} ${a}`), this.status = n, this.url = o, this.statusText = a, this.name = "HttpError";
2983
3035
  }
2984
3036
  }
2985
- const Ne = [
3037
+ const Re = [
2986
3038
  "OraculoSeccionEventoEnVivo",
2987
3039
  "OraculoSeccionEventoSemana",
2988
3040
  "OraculoSeccionEventoCombinadas"
2989
- ], oo = ({
3041
+ ], io = ({
2990
3042
  sectionsOverride: t,
2991
3043
  docId: n = "home",
2992
3044
  db: o,
2993
3045
  extras: a,
2994
3046
  loader: i
2995
3047
  }) => {
2996
- const r = ce(() => Dn(a), [a]), s = i || r.loader, [d, c] = D([]), [h, b] = D(!1), [S, l] = D({}), [w, y] = D({}), [k, C] = D({}), E = Ve("(min-width:1024px)");
2997
- K(() => {
3048
+ const r = ce(() => Vn(a), [a]), s = i || r.loader, [l, c] = D([]), [f, x] = D(!1), [v, d] = D({}), [C, y] = D({}), [O, w] = D({}), M = Xe("(min-width:1024px)");
3049
+ q(() => {
2998
3050
  if (t || !o) return;
2999
- b(!0);
3000
- const u = tt(
3001
- nt(o, "landings", n),
3002
- (p) => {
3051
+ x(!0);
3052
+ const p = rt(
3053
+ at(o, "landings", n),
3054
+ (u) => {
3003
3055
  var _;
3004
3056
  try {
3005
- let x = p.exists() ? ((_ = p.data()) == null ? void 0 : _.sections) || [] : [];
3006
- x = x.slice().sort((g, I) => {
3007
- var B, U;
3008
- return ((B = g.order) != null ? B : 0) - ((U = I.order) != null ? U : 0);
3009
- }).map((g, I) => ({ ...g, order: I + 1 })), c(x), console.log("fetched: ", x);
3010
- } catch (x) {
3011
- console.error("Error procesando landings/" + n, x);
3057
+ let g = u.exists() ? ((_ = u.data()) == null ? void 0 : _.sections) || [] : [];
3058
+ g = g.slice().sort((b, $) => {
3059
+ var R, j;
3060
+ return ((R = b.order) != null ? R : 0) - ((j = $.order) != null ? j : 0);
3061
+ }).map((b, $) => ({ ...b, order: $ + 1 })), c(g), console.log("fetched: ", g);
3062
+ } catch (g) {
3063
+ console.error("Error procesando landings/" + n, g);
3012
3064
  } finally {
3013
- b(!1);
3065
+ x(!1);
3014
3066
  }
3015
3067
  },
3016
- (p) => {
3017
- console.error("Error escuchando landings/" + n, p), b(!1);
3068
+ (u) => {
3069
+ console.error("Error escuchando landings/" + n, u), x(!1);
3018
3070
  }
3019
3071
  );
3020
- return () => u();
3021
- }, [t, n, o]), K(() => (sn(r), () => cn()), [r]), K(() => {
3022
- (t ? t.slice() : d.slice()).map((_) => _.componentKey).filter((_) => !!_).length;
3023
- }, [t, d]);
3024
- const O = async (u) => {
3025
- if (Ne.includes(u.componentKey))
3072
+ return () => p();
3073
+ }, [t, n, o]), q(() => (dn(r), () => un()), [r]), q(() => {
3074
+ (t ? t.slice() : l.slice()).map((_) => _.componentKey).filter((_) => !!_).length;
3075
+ }, [t, l]);
3076
+ const B = async (p) => {
3077
+ if (Re.includes(p.componentKey))
3026
3078
  return {
3027
3079
  // whatever empty structure your UI expects
3028
3080
  items: [],
3029
3081
  events: [],
3030
3082
  data: {}
3031
3083
  };
3032
- const p = (u.apiUrl || "").trim();
3033
- if (!p) return;
3034
- const _ = u.apiMethod || "GET", x = u.apiParams || [];
3035
- let g = p, I, B;
3084
+ const u = (p.apiUrl || "").trim();
3085
+ if (!u) return;
3086
+ const _ = p.apiMethod || "GET", g = p.apiParams || [];
3087
+ let b = u, $, R;
3036
3088
  if (_ === "GET") {
3037
- const G = new URL(
3038
- p,
3089
+ const U = new URL(
3090
+ u,
3039
3091
  typeof window == "undefined" ? "http://localhost" : window.location.origin
3040
3092
  );
3041
- for (const W of x)
3042
- W.key && G.searchParams.append(W.key, W.value);
3043
- g = G.toString();
3093
+ for (const W of g)
3094
+ W.key && U.searchParams.append(W.key, W.value);
3095
+ b = U.toString();
3044
3096
  } else {
3045
- const G = new URLSearchParams();
3046
- for (const W of x)
3047
- W.key && G.append(W.key, W.value);
3048
- I = G.toString(), B = {
3097
+ const U = new URLSearchParams();
3098
+ for (const W of g)
3099
+ W.key && U.append(W.key, W.value);
3100
+ $ = U.toString(), R = {
3049
3101
  "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
3050
3102
  };
3051
3103
  }
3052
- const U = await fetch(g, {
3104
+ const j = await fetch(b, {
3053
3105
  method: _,
3054
- headers: B,
3055
- body: I
3106
+ headers: R,
3107
+ body: $
3056
3108
  });
3057
- if (!U.ok) throw new $e(U.status, g, U.statusText);
3058
- return U.json();
3059
- }, f = ce(
3060
- () => t ? t.slice() : d.slice(),
3061
- [t, d]
3062
- ), v = qe.useRef(/* @__PURE__ */ new Set());
3063
- K(() => {
3064
- const u = f.map((p) => ({ s: p, url: (p.apiUrl || "").trim() })).filter(({ url: p }) => !!p);
3065
- if (u.length)
3066
- for (const { s: p, url: _ } of u) {
3067
- const x = `${p.id}|${_}`;
3068
- v.current.has(x) || (v.current.add(x), y((g) => ({ ...g, [p.id]: !0 })), C((g) => ({ ...g, [p.id]: "" })), (async () => {
3109
+ if (!j.ok) throw new Fe(j.status, b, j.statusText);
3110
+ return j.json();
3111
+ }, S = ce(
3112
+ () => t ? t.slice() : l.slice(),
3113
+ [t, l]
3114
+ ), m = We.useRef(/* @__PURE__ */ new Set());
3115
+ q(() => {
3116
+ const p = S.map((u) => ({ s: u, url: (u.apiUrl || "").trim() })).filter(({ url: u }) => !!u);
3117
+ if (p.length)
3118
+ for (const { s: u, url: _ } of p) {
3119
+ const g = `${u.id}|${_}`;
3120
+ m.current.has(g) || (m.current.add(g), y((b) => ({ ...b, [u.id]: !0 })), w((b) => ({ ...b, [u.id]: "" })), (async () => {
3069
3121
  try {
3070
- const g = await O(p);
3071
- l((I) => ({ ...I, [p.id]: g }));
3072
- } catch (g) {
3073
- let I = "Error desconocido";
3074
- g instanceof $e ? I = `Error HTTP ${g.status} (${g.statusText}) en ${g.url}` : g instanceof SyntaxError ? I = "Respuesta no es JSON válido" : g instanceof TypeError ? I = "Fallo de red / CORS / conexión" : typeof g == "string" && (I = g.toString()), C((B) => ({ ...B, [p.id]: I }));
3122
+ const b = await B(u);
3123
+ d(($) => ({ ...$, [u.id]: b }));
3124
+ } catch (b) {
3125
+ let $ = "Error desconocido";
3126
+ b instanceof Fe ? $ = `Error HTTP ${b.status} (${b.statusText}) en ${b.url}` : b instanceof SyntaxError ? $ = "Respuesta no es JSON válido" : b instanceof TypeError ? $ = "Fallo de red / CORS / conexión" : typeof b == "string" && ($ = b.toString()), w((R) => ({ ...R, [u.id]: $ }));
3075
3127
  } finally {
3076
- y((g) => ({ ...g, [p.id]: !1 }));
3128
+ y((b) => ({ ...b, [u.id]: !1 }));
3077
3129
  }
3078
3130
  })());
3079
3131
  }
3080
- }, [f]);
3081
- const R = ce(
3082
- () => f.filter((u) => u.visible).sort((u, p) => u.order - p.order),
3083
- [f]
3084
- ), $ = (u) => Array.isArray(u) ? u.map((p) => {
3132
+ }, [S]);
3133
+ const E = ce(
3134
+ () => S.filter((p) => p.visible).sort((p, u) => p.order - u.order),
3135
+ [S]
3136
+ ), k = (p) => Array.isArray(p) ? p.map((u) => {
3085
3137
  const _ = {};
3086
- for (const x of p.fields || []) {
3087
- const g = (x.type || "string").toLowerCase();
3088
- if (g === "number") {
3089
- const I = String(x.value || "").trim();
3090
- if (I !== "") {
3091
- const B = Number(I);
3092
- Number.isNaN(B) || (_[x.name] = B);
3138
+ for (const g of u.fields || []) {
3139
+ const b = (g.type || "string").toLowerCase();
3140
+ if (b === "number") {
3141
+ const $ = String(g.value || "").trim();
3142
+ if ($ !== "") {
3143
+ const R = Number($);
3144
+ Number.isNaN(R) || (_[g.name] = R);
3093
3145
  }
3094
- } else if (g === "boolean")
3095
- _[x.name] = String(x.value).toLowerCase() === "true";
3096
- else if (g === "function") {
3097
- const I = String(x.value || "").trim();
3098
- if (I)
3146
+ } else if (b === "boolean")
3147
+ _[g.name] = String(g.value).toLowerCase() === "true";
3148
+ else if (b === "function") {
3149
+ const $ = String(g.value || "").trim();
3150
+ if ($)
3099
3151
  try {
3100
- const B = new Function(I);
3101
- _[x.name] = B;
3102
- } catch (B) {
3103
- console.error(`❌ Error creando función en item '${x.name}':`, B);
3152
+ const R = new Function($);
3153
+ _[g.name] = R;
3154
+ } catch (R) {
3155
+ console.error(`❌ Error creando función en item '${g.name}':`, R);
3104
3156
  }
3105
- } else _[x.name] = x.value;
3157
+ } else _[g.name] = g.value;
3106
3158
  }
3107
3159
  return _;
3108
- }) : [], T = (u) => {
3109
- const p = {};
3110
- if (!Array.isArray(u)) return p;
3111
- for (const _ of u) {
3160
+ }) : [], I = (p) => {
3161
+ const u = {};
3162
+ if (!Array.isArray(p)) return u;
3163
+ for (const _ of p) {
3112
3164
  if (!_.name) continue;
3113
- const x = (_.type || "string").toLowerCase();
3114
- if (x === "number") {
3115
- const g = String(_.value || "").trim();
3116
- if (g !== "") {
3117
- const I = Number(g);
3118
- Number.isNaN(I) || (p[_.name] = I);
3165
+ const g = (_.type || "string").toLowerCase();
3166
+ if (g === "number") {
3167
+ const b = String(_.value || "").trim();
3168
+ if (b !== "") {
3169
+ const $ = Number(b);
3170
+ Number.isNaN($) || (u[_.name] = $);
3119
3171
  }
3120
- } else if (x === "boolean")
3121
- p[_.name] = String(_.value).toLowerCase() === "true";
3122
- else if (x === "function") {
3123
- const g = String(_.value || "").trim();
3124
- if (g)
3172
+ } else if (g === "boolean")
3173
+ u[_.name] = String(_.value).toLowerCase() === "true";
3174
+ else if (g === "function") {
3175
+ const b = String(_.value || "").trim();
3176
+ if (b)
3125
3177
  try {
3126
- const I = new Function(g);
3127
- p[_.name] = I;
3128
- } catch (I) {
3129
- console.error(`❌ Error creando función en item '${_.name}':`, I);
3178
+ const $ = new Function(b);
3179
+ u[_.name] = $;
3180
+ } catch ($) {
3181
+ console.error(`❌ Error creando función en item '${_.name}':`, $);
3130
3182
  }
3131
- } else p[_.name] = _.value;
3183
+ } else u[_.name] = _.value;
3132
3184
  }
3133
- return p;
3134
- }, N = (u, p, _) => {
3135
- const x = _ ? { ..._ } : {};
3136
- if (p) {
3137
- const W = (p.variableName || "items").trim() || "items";
3138
- return x[W] = p.arr || [], x;
3185
+ return u;
3186
+ }, N = (p, u, _) => {
3187
+ const g = _ ? { ..._ } : {};
3188
+ if (u) {
3189
+ const W = (u.variableName || "items").trim() || "items";
3190
+ return g[W] = u.arr || [], g;
3139
3191
  }
3140
- const g = u, I = Array.isArray(g), B = !I && typeof g == "object" && g !== null ? g : void 0, U = B && Array.isArray(B.lobby || B.items) ? B.lobby || B.items : void 0, G = (W) => I ? g : U || W;
3141
- return x.items = G(U || []), x;
3142
- }, L = (u) => {
3143
- var I;
3144
- const p = !!((I = u.apiUrl) != null && I.trim()), _ = p ? S[u.id] : void 0;
3145
- let x = u.props ? { ...u.props } : {};
3146
- const g = T(u.manualScalarFields);
3147
- if (Ne.includes(u.componentKey))
3148
- return { items: _, ...x, ...g };
3149
- if (x = { ...x, ...g }, p) x = N(_, null, x);
3150
- else if (u.dataMode === "manual") {
3151
- const B = $(u.manualItems);
3152
- if (x = N(
3192
+ const b = p, $ = Array.isArray(b), R = !$ && typeof b == "object" && b !== null ? b : void 0, j = R && Array.isArray(R.lobby || R.items) ? R.lobby || R.items : void 0, U = (W) => $ ? b : j || W;
3193
+ return g.items = U(j || []), g;
3194
+ }, F = (p) => {
3195
+ var $;
3196
+ const u = !!(($ = p.apiUrl) != null && $.trim()), _ = u ? v[p.id] : void 0;
3197
+ let g = p.props ? { ...p.props } : {};
3198
+ const b = I(p.manualScalarFields);
3199
+ if (Re.includes(p.componentKey))
3200
+ return { items: _, ...g, ...b };
3201
+ if (g = { ...g, ...b }, u) g = N(_, null, g);
3202
+ else if (p.dataMode === "manual") {
3203
+ const R = k(p.manualItems);
3204
+ if (g = N(
3153
3205
  null,
3154
- { arr: B, variableName: u.variableName },
3155
- x
3156
- ), u.variableName2 && u.manualItems2) {
3157
- const U = $(u.manualItems2), G = (u.variableName2 || "items2").trim() || "items2";
3158
- x[G] = U;
3206
+ { arr: R, variableName: p.variableName },
3207
+ g
3208
+ ), p.variableName2 && p.manualItems2) {
3209
+ const j = k(p.manualItems2), U = (p.variableName2 || "items2").trim() || "items2";
3210
+ g[U] = j;
3159
3211
  }
3160
3212
  }
3161
- return x;
3162
- }, F = (u, p, _) => /* @__PURE__ */ e("div", { className: `mx-4 p-4 rounded ${{
3213
+ return g;
3214
+ }, P = (p, u, _) => /* @__PURE__ */ e("div", { className: `mx-4 p-4 rounded ${{
3163
3215
  loading: "bg-blue-100 text-blue-800",
3164
3216
  error: "bg-red-100 text-red-800",
3165
3217
  component: "bg-yellow-100 text-yellow-800"
3166
- }[p]}`, children: _ }, u), P = (u) => {
3218
+ }[u]}`, children: _ }, p), L = (p) => {
3167
3219
  var ae;
3168
- const p = u.componentKey, _ = Gn[p];
3220
+ const u = p.componentKey, _ = Hn[u];
3169
3221
  if (!_)
3170
- return console.warn(`No hay componente registrado para "${p}"`), F(
3171
- u.id,
3222
+ return console.warn(`No hay componente registrado para "${u}"`), P(
3223
+ p.id,
3172
3224
  "component",
3173
- `Componente "${p}" no encontrado`
3225
+ `Componente "${u}" no encontrado`
3174
3226
  );
3175
- const x = !!((ae = u.apiUrl) != null && ae.trim()), g = x ? S[u.id] : void 0, I = x ? !!w[u.id] : !1, B = x ? k[u.id] : "";
3176
- if (x) {
3177
- if (I && !g)
3178
- return F(
3179
- u.id,
3227
+ const g = !!((ae = p.apiUrl) != null && ae.trim()), b = g ? v[p.id] : void 0, $ = g ? !!C[p.id] : !1, R = g ? O[p.id] : "";
3228
+ if (g) {
3229
+ if ($ && !b)
3230
+ return P(
3231
+ p.id,
3180
3232
  "loading",
3181
- `Cargando datos desde ${u.apiUrl}...`
3233
+ `Cargando datos desde ${p.apiUrl}...`
3182
3234
  );
3183
- if (B && !g)
3184
- return F(
3185
- u.id,
3235
+ if (R && !b)
3236
+ return P(
3237
+ p.id,
3186
3238
  "error",
3187
- `Error cargando ${u.apiUrl}: ${B}`
3239
+ `Error cargando ${p.apiUrl}: ${R}`
3188
3240
  );
3189
3241
  }
3190
- const U = L(u), W = (/* @__PURE__ */ new Set([
3242
+ const j = F(p), W = (/* @__PURE__ */ new Set([
3191
3243
  "OraculoSeccionBanners",
3192
3244
  "OraculoSeccionBonoBienvenida",
3193
3245
  "OraculoSeccionCasinoEnVivo",
3194
- E ? "" : "OraculoSeccionClubOlimpo"
3195
- ])).has(u.componentKey), q = E ? 120 : 24;
3246
+ M ? "" : "OraculoSeccionClubOlimpo"
3247
+ ])).has(p.componentKey), K = M ? 120 : 24;
3196
3248
  return /* @__PURE__ */ e("div", { style: W ? {
3197
3249
  width: "100%",
3198
3250
  boxSizing: "border-box"
3199
3251
  } : {
3200
- paddingLeft: q,
3201
- paddingRight: q,
3252
+ paddingLeft: K,
3253
+ paddingRight: K,
3202
3254
  width: "100%",
3203
3255
  boxSizing: "border-box"
3204
- }, className: "oraculo-section-wrapper", children: /* @__PURE__ */ e(_, { ...U }) }, u.id);
3256
+ }, className: "oraculo-section-wrapper", children: /* @__PURE__ */ e(_, { ...j }) }, p.id);
3205
3257
  };
3206
- return h && !t ? s ? /* @__PURE__ */ e(s, {}) : /* @__PURE__ */ e("div", { children: "Cargando..." }) : !h && !t && d.length === 0 ? /* @__PURE__ */ e("div", { className: "text-xs text-gray-500", children: "Sin secciones (Firestore)" }) : /* @__PURE__ */ e(
3207
- Ke,
3258
+ return f && !t ? s ? /* @__PURE__ */ e(s, {}) : /* @__PURE__ */ e("div", { children: "Cargando..." }) : !f && !t && l.length === 0 ? /* @__PURE__ */ e("div", { className: "text-xs text-gray-500", children: "Sin secciones (Firestore)" }) : /* @__PURE__ */ e(
3259
+ Ye,
3208
3260
  {
3209
3261
  className: "oli-font",
3210
3262
  maxWidth: !1,
@@ -3222,51 +3274,51 @@ const Ne = [
3222
3274
  de,
3223
3275
  {
3224
3276
  direction: "column",
3225
- spacing: E ? 8 : 5,
3277
+ spacing: M ? 8 : 5,
3226
3278
  useFlexGap: !0,
3227
- children: R.map(P)
3279
+ children: E.map(L)
3228
3280
  }
3229
3281
  )
3230
3282
  }
3231
3283
  );
3232
3284
  };
3233
3285
  export {
3234
- j as OraculoButton,
3286
+ G as OraculoButton,
3235
3287
  te as OraculoCarousel,
3236
- Be as OraculoCarouselDots,
3237
- Bt as OraculoClubOlimpoVisual,
3238
- Kt as OraculoEventCombinadasCard,
3239
- Jt as OraculoEventEnVivoCard,
3240
- lt as OraculoEventHeader,
3241
- Pe as OraculoEventLabel,
3242
- We as OraculoEventLeague,
3243
- Fe as OraculoEventScore,
3244
- rn as OraculoEventSemanaCard,
3245
- ct as OraculoEventStatus,
3246
- st as OraculoEventStatusBadge,
3247
- me as OraculoEventTeamInfo,
3248
- ue as OraculoGameCard,
3249
- Rt as OraculoGameRankCard,
3250
- Ae as OraculoGameSlide,
3251
- Z as OraculoGridGroup,
3252
- Lt as OraculoLiveCasinoCard,
3253
- Ee as OraculoLogoMediosPago,
3254
- oo as OraculoPageLandingPreview,
3255
- Pn as OraculoSeccionBanners,
3256
- bn as OraculoSeccionBonoBienvenida,
3257
- mn as OraculoSeccionCasino,
3258
- un as OraculoSeccionCasinoEnVivo,
3259
- _n as OraculoSeccionClubOlimpo,
3260
- an as OraculoSeccionDestacados,
3261
- yn as OraculoSeccionEventoCombinadas,
3262
- kn as OraculoSeccionEventoEnVivo,
3263
- Bn as OraculoSeccionEventoSemana,
3264
- Fn as OraculoSeccionMediosPago,
3265
- ln as OraculoSeccionTopJuegos,
3266
- gn as OraculoSeccionVirtuales,
3288
+ Ae as OraculoCarouselDots,
3289
+ Pt as OraculoClubOlimpoVisual,
3290
+ Xt as OraculoEventCombinadasCard,
3291
+ Qt as OraculoEventEnVivoCard,
3292
+ pt as OraculoEventHeader,
3293
+ ze as OraculoEventLabel,
3294
+ je as OraculoEventLeague,
3295
+ Ue as OraculoEventScore,
3296
+ cn as OraculoEventSemanaCard,
3297
+ ut as OraculoEventStatus,
3298
+ dt as OraculoEventStatusBadge,
3299
+ he as OraculoEventTeamInfo,
3300
+ pe as OraculoGameCard,
3301
+ Wt as OraculoGameRankCard,
3302
+ De as OraculoGameSlide,
3303
+ Y as OraculoGridGroup,
3304
+ Bt as OraculoLiveCasinoCard,
3305
+ Ce as OraculoLogoMediosPago,
3306
+ io as OraculoPageLandingPreview,
3307
+ An as OraculoSeccionBanners,
3308
+ wn as OraculoSeccionBonoBienvenida,
3309
+ gn as OraculoSeccionCasino,
3310
+ hn as OraculoSeccionCasinoEnVivo,
3311
+ yn as OraculoSeccionClubOlimpo,
3312
+ ln as OraculoSeccionDestacados,
3313
+ Cn as OraculoSeccionEventoCombinadas,
3314
+ $n as OraculoSeccionEventoEnVivo,
3315
+ Pn as OraculoSeccionEventoSemana,
3316
+ jn as OraculoSeccionMediosPago,
3317
+ pn as OraculoSeccionTopJuegos,
3318
+ _n as OraculoSeccionVirtuales,
3267
3319
  ee as OraculoSectionTitle,
3268
- ln as OraculoTopJuegoItem,
3269
- Ce as OraculoWelcomeBanner,
3270
- oo as default
3320
+ pn as OraculoTopJuegoItem,
3321
+ ke as OraculoWelcomeBanner,
3322
+ io as default
3271
3323
  };
3272
3324
  //# sourceMappingURL=index.es.js.map