oraculo-ui 0.1.54 → 0.1.56

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,88 +1,88 @@
1
- import { jsx as e, jsxs as u, Fragment as Z } from "react/jsx-runtime";
2
- import { Link as ve, Box as j, Typography as ye, Stack as we, useMediaQuery as Pe, Container as Be } from "@mui/material";
3
- import Fe, { forwardRef as Le, useRef as A, useImperativeHandle as We, useCallback as me, useState as U, useMemo as ce, useLayoutEffect as Ue, useEffect as Q } from "react";
4
- import { Splide as ze, SplideSlide as je } from "@splidejs/react-splide";
1
+ import { jsx as e, jsxs as c, Fragment as Z } from "react/jsx-runtime";
2
+ import { Link as ye, Box as j, Typography as we, Stack as Se, useMediaQuery as Be, Container as Me } from "@mui/material";
3
+ import Le, { forwardRef as Fe, useRef as G, useImperativeHandle as We, useCallback as he, useState as W, useMemo as le, useLayoutEffect as ze, useEffect as Q } from "react";
4
+ import { Splide as je, SplideSlide as Ae } from "@splidejs/react-splide";
5
5
  import k from "@mui/material/Box";
6
- import F from "@mui/material/Skeleton";
6
+ import M from "@mui/material/Skeleton";
7
7
  import D from "@mui/material/Typography";
8
8
  import B from "@mui/material/Stack";
9
- import { ChevronLeftRounded as le, ChevronRightRounded as de } from "@mui/icons-material";
10
- import Se from "@mui/icons-material/ChevronLeftRounded";
11
- import Ce from "@mui/icons-material/ChevronRightRounded";
12
- import Me from "@mui/material/useMediaQuery";
13
- import { onSnapshot as Ae, doc as Ge } from "firebase/firestore";
9
+ import { ChevronLeftRounded as de, ChevronRightRounded as ue } from "@mui/icons-material";
10
+ import Ce from "@mui/icons-material/ChevronLeftRounded";
11
+ import Ee from "@mui/icons-material/ChevronRightRounded";
12
+ import Ge from "@mui/material/useMediaQuery";
13
+ import { onSnapshot as Ue, doc as De } from "firebase/firestore";
14
14
  function L({
15
15
  children: t,
16
- onClick: r,
16
+ onClick: n,
17
17
  href: a,
18
- target: o,
19
- rel: c,
20
- type: n = "button",
21
- disabled: i = !1,
18
+ target: i,
19
+ rel: l,
20
+ type: o = "button",
21
+ disabled: r = !1,
22
22
  variant: m = "primary",
23
- size: d,
24
- fullWidth: f = !1,
25
- fullHeight: x = !1,
26
- className: I = "",
23
+ size: u,
24
+ fullWidth: x = !1,
25
+ fullHeight: b = !1,
26
+ className: O = "",
27
27
  ariaLabel: s,
28
- leftIcon: l,
29
- rightIcon: h,
30
- iconOnly: S
28
+ leftIcon: p,
29
+ rightIcon: _,
30
+ iconOnly: $
31
31
  }) {
32
- const g = !!t && t !== !0, v = (!!l ? 1 : 0) + (!!h ? 1 : 0) == 1, E = S != null ? S : v && !g, T = [
32
+ const v = !!t && t !== !0, f = (!!p ? 1 : 0) + (!!_ ? 1 : 0) == 1, C = $ != null ? $ : f && !v, T = [
33
33
  "orc-btn",
34
34
  m === "secondary" ? "orc-btn--secondary" : m === "tertiary" ? "orc-btn--tertiary" : "orc-btn--primary",
35
- d ? `orc-btn--${d}` : "",
36
- f ? "orc-btn--full" : "",
37
- x ? "orc-btn--fullHeight" : "",
38
- E ? "orc-btn--iconOnly" : "",
39
- I
40
- ].filter(Boolean).join(" "), R = /* @__PURE__ */ u(Z, { children: [
41
- l && /* @__PURE__ */ e("span", { className: "orc-btn__icon", children: l }),
42
- !E && /* @__PURE__ */ e("span", { className: "orc-btn__label", children: t }),
43
- h && /* @__PURE__ */ e("span", { className: "orc-btn__icon", children: h })
44
- ] }), $ = i ? !0 : void 0;
35
+ u ? `orc-btn--${u}` : "",
36
+ x ? "orc-btn--full" : "",
37
+ b ? "orc-btn--fullHeight" : "",
38
+ C ? "orc-btn--iconOnly" : "",
39
+ O
40
+ ].filter(Boolean).join(" "), P = /* @__PURE__ */ c(Z, { children: [
41
+ p && /* @__PURE__ */ e("span", { className: "orc-btn__icon", children: p }),
42
+ !C && /* @__PURE__ */ e("span", { className: "orc-btn__label", children: t }),
43
+ _ && /* @__PURE__ */ e("span", { className: "orc-btn__icon", children: _ })
44
+ ] }), E = r ? !0 : void 0;
45
45
  return a ? /* @__PURE__ */ e(
46
- ve,
46
+ ye,
47
47
  {
48
48
  href: a,
49
- target: o,
50
- rel: c,
49
+ target: i,
50
+ rel: l,
51
51
  "aria-label": s,
52
- "aria-disabled": $,
53
- tabIndex: $ ? -1 : void 0,
52
+ "aria-disabled": E,
53
+ tabIndex: E ? -1 : void 0,
54
54
  className: T,
55
- onClick: $ ? (p) => p.preventDefault() : r,
56
- children: R
55
+ onClick: E ? (d) => d.preventDefault() : n,
56
+ children: P
57
57
  }
58
58
  ) : /* @__PURE__ */ e(
59
59
  "button",
60
60
  {
61
- type: n,
62
- onClick: r,
63
- disabled: !!$,
61
+ type: o,
62
+ onClick: n,
63
+ disabled: !!E,
64
64
  "aria-label": s,
65
65
  className: T,
66
- children: R
66
+ children: P
67
67
  }
68
68
  );
69
69
  }
70
70
  function K({
71
71
  title: t,
72
- iconUrl: r,
72
+ iconUrl: n,
73
73
  size: a = "md",
74
- className: o = ""
74
+ className: i = ""
75
75
  }) {
76
- const n = [
76
+ const o = [
77
77
  "orc-section-title",
78
78
  a ? `orc-section-title--${a}` : "",
79
- o
79
+ i
80
80
  ].filter(Boolean).join(" ");
81
- return /* @__PURE__ */ u("div", { className: n, children: [
82
- r && /* @__PURE__ */ e(
81
+ return /* @__PURE__ */ c("div", { className: o, children: [
82
+ n && /* @__PURE__ */ e(
83
83
  "img",
84
84
  {
85
- src: r,
85
+ src: n,
86
86
  alt: "",
87
87
  className: "orc-section-title__icon"
88
88
  }
@@ -90,49 +90,49 @@ function K({
90
90
  /* @__PURE__ */ e("h2", { className: "orc-section-title__title", children: t })
91
91
  ] });
92
92
  }
93
- const Ee = ({
93
+ const ke = ({
94
94
  total: t,
95
- active: r,
95
+ active: n,
96
96
  onSelect: a,
97
- className: o = ""
97
+ className: i = ""
98
98
  }) => {
99
99
  if (t <= 1) return null;
100
- const c = ["orc-dots", o].filter(Boolean).join(" ");
101
- return /* @__PURE__ */ e("div", { className: c, role: "tablist", children: Array.from({ length: t }).map((n, i) => /* @__PURE__ */ e("span", { className: "orc-dots__cell", children: /* @__PURE__ */ e(
100
+ const l = ["orc-dots", i].filter(Boolean).join(" ");
101
+ return /* @__PURE__ */ e("div", { className: l, role: "tablist", children: Array.from({ length: t }).map((o, r) => /* @__PURE__ */ e("span", { className: "orc-dots__cell", children: /* @__PURE__ */ e(
102
102
  "button",
103
103
  {
104
104
  type: "button",
105
105
  role: "tab",
106
- "aria-selected": i === r,
107
- "aria-label": `Ir al slide ${i + 1}`,
108
- className: "orc-dots__dot" + (i === r ? " orc-dots__dot--active" : ""),
109
- onClick: () => a == null ? void 0 : a(i)
106
+ "aria-selected": r === n,
107
+ "aria-label": `Ir al slide ${r + 1}`,
108
+ className: "orc-dots__dot" + (r === n ? " orc-dots__dot--active" : ""),
109
+ onClick: () => a == null ? void 0 : a(r)
110
110
  }
111
- ) }, i)) });
111
+ ) }, r)) });
112
112
  };
113
- function H({
113
+ function V({
114
114
  children: t,
115
- minWidth: r = 32,
115
+ minWidth: n = 32,
116
116
  spacing: a = 2,
117
- justify: o = "stretch",
118
- columns: c = null
117
+ justify: i = "stretch",
118
+ columns: l = null
119
119
  }) {
120
- const n = c || `repeat(auto-fit, minmax(${r}px, 1fr))`, i = typeof a == "number" ? `${a * 8}px` : a;
120
+ const o = l || `repeat(auto-fit, minmax(${n}px, 1fr))`, r = typeof a == "number" ? `${a * 8}px` : a;
121
121
  return /* @__PURE__ */ e(
122
122
  "div",
123
123
  {
124
124
  style: {
125
125
  display: "grid",
126
- gridTemplateColumns: n,
127
- justifyItems: o,
128
- gap: i,
126
+ gridTemplateColumns: o,
127
+ justifyItems: i,
128
+ gap: r,
129
129
  height: "inherit"
130
130
  },
131
131
  children: t
132
132
  }
133
133
  );
134
134
  }
135
- function he({ src: t, alt: r }) {
135
+ function ge({ src: t, alt: n }) {
136
136
  return /* @__PURE__ */ e(
137
137
  j,
138
138
  {
@@ -149,7 +149,7 @@ function he({ src: t, alt: r }) {
149
149
  {
150
150
  component: "img",
151
151
  src: t,
152
- alt: r,
152
+ alt: n,
153
153
  sx: {
154
154
  position: "absolute",
155
155
  top: 0,
@@ -163,16 +163,16 @@ function he({ src: t, alt: r }) {
163
163
  }
164
164
  );
165
165
  }
166
- const De = "oraculo__OraculoEventTitle-module__contenedor___rg1vw", He = "oraculo__OraculoEventTitle-module__flexGroup___jMLFO", Ve = "oraculo__OraculoEventTitle-module__subtitle___TmHna", re = {
167
- contenedor: De,
166
+ const Ve = "oraculo__OraculoEventTitle-module__contenedor___rg1vw", He = "oraculo__OraculoEventTitle-module__flexGroup___jMLFO", Ke = "oraculo__OraculoEventTitle-module__subtitle___TmHna", ae = {
167
+ contenedor: Ve,
168
168
  flexGroup: He,
169
- subtitle: Ve
169
+ subtitle: Ke
170
170
  };
171
- function Ke({ title: t, subtitle: r }) {
172
- return /* @__PURE__ */ u(
171
+ function qe({ title: t, subtitle: n }) {
172
+ return /* @__PURE__ */ c(
173
173
  "div",
174
174
  {
175
- className: re.contenedor,
175
+ className: ae.contenedor,
176
176
  children: [
177
177
  /* @__PURE__ */ e(
178
178
  "span",
@@ -185,17 +185,17 @@ function Ke({ title: t, subtitle: r }) {
185
185
  children: t
186
186
  }
187
187
  ),
188
- r && /* @__PURE__ */ u(
188
+ n && /* @__PURE__ */ c(
189
189
  "div",
190
190
  {
191
- className: re.flexGroup,
191
+ className: ae.flexGroup,
192
192
  children: [
193
- /* @__PURE__ */ u("svg", { width: "4", height: "4", viewBox: "0 0 5 5", xmlns: "http://www.w3.org/2000/svg", style: { flexShrink: 0 }, children: [
193
+ /* @__PURE__ */ c("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: re.subtitle, children: r }),
198
+ /* @__PURE__ */ e("span", { className: ae.subtitle, children: n }),
199
199
  /* @__PURE__ */ e("div", {})
200
200
  ]
201
201
  }
@@ -204,13 +204,13 @@ function Ke({ title: t, subtitle: r }) {
204
204
  }
205
205
  );
206
206
  }
207
- function qe({ text: t, color: r = "#ff3b3b", textColor: a = "#fff" }) {
207
+ function Je({ text: t, color: n = "#ff3b3b", textColor: a = "#fff" }) {
208
208
  return /* @__PURE__ */ e(
209
209
  "span",
210
210
  {
211
211
  className: "oli-font",
212
212
  style: {
213
- backgroundColor: r,
213
+ backgroundColor: n,
214
214
  color: a,
215
215
  borderRadius: "8px",
216
216
  padding: "4px 8px",
@@ -225,14 +225,14 @@ function qe({ text: t, color: r = "#ff3b3b", textColor: a = "#fff" }) {
225
225
  }
226
226
  );
227
227
  }
228
- function Je({ live: t, time: r }) {
229
- return /* @__PURE__ */ u("div", { className: "oli-font", style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
230
- t && /* @__PURE__ */ e(qe, { text: "En vivo" }),
231
- r && /* @__PURE__ */ e("span", { style: { fontSize: "14px", fontWeight: 400, lineHeight: "18px", paddingTop: "4px" }, children: r })
228
+ function Xe({ live: t, time: n }) {
229
+ return /* @__PURE__ */ c("div", { className: "oli-font", style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
230
+ t && /* @__PURE__ */ e(Je, { text: "En vivo" }),
231
+ n && /* @__PURE__ */ e("span", { style: { fontSize: "14px", fontWeight: 400, lineHeight: "18px", paddingTop: "4px" }, children: n })
232
232
  ] });
233
233
  }
234
- function Xe({ title: t, subtitle: r, live: a = !1, time: o = "" }) {
235
- return /* @__PURE__ */ u(
234
+ function Qe({ title: t, subtitle: n, live: a = !1, time: i = "" }) {
235
+ return /* @__PURE__ */ c(
236
236
  "div",
237
237
  {
238
238
  style: {
@@ -242,92 +242,92 @@ function Xe({ title: t, subtitle: r, live: a = !1, time: o = "" }) {
242
242
  color: "#FFFFFF"
243
243
  },
244
244
  children: [
245
- /* @__PURE__ */ e(Ke, { title: t, subtitle: r }),
246
- /* @__PURE__ */ e(Je, { live: a, time: o })
245
+ /* @__PURE__ */ e(qe, { title: t, subtitle: n }),
246
+ /* @__PURE__ */ e(Xe, { live: a, time: i })
247
247
  ]
248
248
  }
249
249
  );
250
250
  }
251
- const Qe = "oraculo__OraculoEventLabel-module__label___c64Xw", Ye = {
252
- label: Qe
251
+ const Ye = "oraculo__OraculoEventLabel-module__label___c64Xw", Ze = {
252
+ label: Ye
253
253
  };
254
- function Ie({ text: t }) {
255
- return /* @__PURE__ */ e("span", { className: Ye.label, children: t });
254
+ function $e({ text: t }) {
255
+ return /* @__PURE__ */ e("span", { className: Ze.label, children: t });
256
256
  }
257
- const Ze = "oraculo__OraculoEventLeague-module__container___rdk4F", et = {
258
- container: Ze
257
+ const et = "oraculo__OraculoEventLeague-module__container___rdk4F", tt = {
258
+ container: et
259
259
  };
260
- function $e({ title: t }) {
261
- return /* @__PURE__ */ e("div", { className: et.container, children: t.toUpperCase() });
260
+ function Oe({ title: t }) {
261
+ return /* @__PURE__ */ e("div", { className: tt.container, children: t.toUpperCase() });
262
262
  }
263
- const tt = "oraculo__OraculoEventScore-module__scoreWrapper___fWwEr", nt = "oraculo__OraculoEventScore-module__name___r4uL6", ot = "oraculo__OraculoEventScore-module__score___Xl03M", rt = "oraculo__OraculoEventScore-module__normal___cCNFz", at = "oraculo__OraculoEventScore-module__small___fVt8E", X = {
264
- scoreWrapper: tt,
263
+ const ot = "oraculo__OraculoEventScore-module__scoreWrapper___fWwEr", nt = "oraculo__OraculoEventScore-module__name___r4uL6", rt = "oraculo__OraculoEventScore-module__score___Xl03M", at = "oraculo__OraculoEventScore-module__normal___cCNFz", it = "oraculo__OraculoEventScore-module__small___fVt8E", X = {
264
+ scoreWrapper: ot,
265
265
  name: nt,
266
- score: ot,
267
- normal: rt,
268
- small: at
266
+ score: rt,
267
+ normal: at,
268
+ small: it
269
269
  };
270
- function ke({ text: t, name: r, size: a = "normal" }) {
271
- return /* @__PURE__ */ u(
270
+ function Ne({ text: t, name: n, size: a = "normal" }) {
271
+ return /* @__PURE__ */ c(
272
272
  "div",
273
273
  {
274
274
  className: `${X.scoreWrapper} ${X[a]}`,
275
275
  children: [
276
276
  /* @__PURE__ */ e("div", { className: `${X.score} ${X[a]}`, children: t }),
277
- r && /* @__PURE__ */ e("span", { className: `${X.name} ${X[a]}`, children: r })
277
+ n && /* @__PURE__ */ e("span", { className: `${X.name} ${X[a]}`, children: n })
278
278
  ]
279
279
  }
280
280
  );
281
281
  }
282
- const it = "oraculo__OraculoEventTeamInfo-module__team___UfpUs", st = "oraculo__OraculoEventTeamInfo-module__regular___ag826", ct = "oraculo__OraculoEventTeamInfo-module__compact___RCNOs", lt = "oraculo__OraculoEventTeamInfo-module__logo___fKCl3", dt = "oraculo__OraculoEventTeamInfo-module__name___4ikm-", ee = {
283
- team: it,
284
- regular: st,
285
- compact: ct,
286
- logo: lt,
287
- name: dt
282
+ const st = "oraculo__OraculoEventTeamInfo-module__team___UfpUs", ct = "oraculo__OraculoEventTeamInfo-module__regular___ag826", lt = "oraculo__OraculoEventTeamInfo-module__compact___RCNOs", dt = "oraculo__OraculoEventTeamInfo-module__logo___fKCl3", ut = "oraculo__OraculoEventTeamInfo-module__name___4ikm-", ee = {
283
+ team: st,
284
+ regular: ct,
285
+ compact: lt,
286
+ logo: dt,
287
+ name: ut
288
288
  };
289
- function ne({ name: t, logo: r, size: a = "regular" }) {
290
- return /* @__PURE__ */ u("div", { className: `oli-font ${ee.team} ${ee[a]}`, children: [
291
- /* @__PURE__ */ e("img", { loading: "lazy", src: r, alt: t, className: ee.logo }),
289
+ function oe({ name: t, logo: n, size: a = "regular" }) {
290
+ return /* @__PURE__ */ c("div", { className: `oli-font ${ee.team} ${ee[a]}`, children: [
291
+ /* @__PURE__ */ e("img", { loading: "lazy", src: n, alt: t, className: ee.logo }),
292
292
  /* @__PURE__ */ e("span", { className: ee.name, children: t })
293
293
  ] });
294
294
  }
295
- const ut = ze, pt = je, q = Le(
295
+ const pt = je, mt = Ae, q = Fe(
296
296
  ({
297
297
  items: t = [],
298
- renderItem: r,
298
+ renderItem: n,
299
299
  perPage: a = 1,
300
- gap: o = "0px",
301
- breakpoints: c,
302
- options: n = {},
303
- className: i = "",
300
+ gap: i = "0px",
301
+ breakpoints: l,
302
+ options: o = {},
303
+ className: r = "",
304
304
  onMove: m,
305
- useIndexAsKey: d = !1
306
- }, f) => {
307
- const x = A(null);
308
- We(f, () => ({
305
+ useIndexAsKey: u = !1
306
+ }, x) => {
307
+ const b = G(null);
308
+ We(x, () => ({
309
309
  next: () => {
310
- var h;
311
- return (h = x.current) == null ? void 0 : h.go(">");
310
+ var _;
311
+ return (_ = b.current) == null ? void 0 : _.go(">");
312
312
  },
313
313
  prev: () => {
314
- var h;
315
- return (h = x.current) == null ? void 0 : h.go("<");
314
+ var _;
315
+ return (_ = b.current) == null ? void 0 : _.go("<");
316
316
  },
317
- go: (h) => {
318
- var S;
319
- return (S = x.current) == null ? void 0 : S.go(h);
317
+ go: (_) => {
318
+ var $;
319
+ return ($ = b.current) == null ? void 0 : $.go(_);
320
320
  }
321
321
  }));
322
- const I = me((h) => {
323
- const S = h.Components.Controller, g = S.getIndex(), y = S.getEnd(), O = g === 0, v = g >= y, E = h.Components.Slides.getLength();
324
- m == null || m({ index: g, isStart: O, isEnd: v, total: E });
325
- }, [m]), s = me(
326
- (h) => {
327
- I(h);
322
+ const O = he((_) => {
323
+ const $ = _.Components.Controller, v = $.getIndex(), S = $.getEnd(), I = v === 0, f = v >= S, C = _.Components.Slides.getLength();
324
+ m == null || m({ index: v, isStart: I, isEnd: f, total: C });
325
+ }, [m]), s = he(
326
+ (_) => {
327
+ O(_);
328
328
  },
329
- [I]
330
- ), l = {
329
+ [O]
330
+ ), p = {
331
331
  type: "slide",
332
332
  trimSpace: !1,
333
333
  drag: !0,
@@ -337,37 +337,37 @@ const ut = ze, pt = je, q = Le(
337
337
  focus: "start",
338
338
  autoWidth: !1,
339
339
  perPage: a,
340
- gap: o,
341
- breakpoints: c,
342
- ...n
340
+ gap: i,
341
+ breakpoints: l,
342
+ ...o
343
343
  };
344
- return /* @__PURE__ */ e("div", { className: i, style: { width: "100%" }, children: /* @__PURE__ */ e(
345
- ut,
344
+ return /* @__PURE__ */ e("div", { className: r, style: { width: "100%" }, children: /* @__PURE__ */ e(
345
+ pt,
346
346
  {
347
- ref: x,
348
- options: l,
349
- onMove: I,
347
+ ref: b,
348
+ options: p,
349
+ onMove: O,
350
350
  onMounted: s,
351
- children: t.map((h, S) => {
352
- var g;
353
- return /* @__PURE__ */ e(pt, { children: r(h, S) }, d ? S : (g = h.id) != null ? g : S);
351
+ children: t.map((_, $) => {
352
+ var v;
353
+ return /* @__PURE__ */ e(mt, { children: n(_, $) }, u ? $ : (v = _.id) != null ? v : $);
354
354
  })
355
355
  }
356
356
  ) });
357
357
  }
358
358
  ), te = ({
359
359
  imageUrl: t,
360
- onClick: r,
360
+ onClick: n,
361
361
  size: a = "sm",
362
- fillParent: o = !1
362
+ fillParent: i = !1
363
363
  }) => {
364
- const c = a === "lg" ? { w: 280, h: 352 } : { w: 152, h: 168 }, n = (m) => {
365
- m.stopPropagation(), r == null || r();
366
- }, i = o ? { width: "100%", height: "100%" } : { width: `${c.w}px`, height: `${c.h}px` };
367
- return /* @__PURE__ */ u(
364
+ const l = a === "lg" ? { w: 280, h: 352 } : { w: 152, h: 168 }, o = (m) => {
365
+ m.stopPropagation(), n == null || n();
366
+ }, r = i ? { width: "100%", height: "100%" } : { width: `${l.w}px`, height: `${l.h}px` };
367
+ return /* @__PURE__ */ c(
368
368
  k,
369
369
  {
370
- onClick: r,
370
+ onClick: n,
371
371
  role: "button",
372
372
  sx: {
373
373
  position: "relative",
@@ -375,7 +375,7 @@ const ut = ze, pt = je, q = Le(
375
375
  overflow: "hidden",
376
376
  boxSizing: "border-box",
377
377
  transition: "transform .15s ease, box-shadow .15s ease",
378
- ...i,
378
+ ...r,
379
379
  "&:hover": {
380
380
  transform: "translateY(-2px)",
381
381
  boxShadow: 8,
@@ -435,49 +435,49 @@ const ut = ze, pt = je, q = Le(
435
435
  transition: "opacity .15s ease, transform .15s ease",
436
436
  pointerEvents: "none"
437
437
  },
438
- children: /* @__PURE__ */ e(L, { variant: "primary", size: "md", onClick: n, children: "JUGAR" })
438
+ children: /* @__PURE__ */ e(L, { variant: "primary", size: "md", onClick: o, children: "JUGAR" })
439
439
  }
440
440
  )
441
441
  ]
442
442
  }
443
443
  );
444
444
  };
445
- function mt({
445
+ function ht({
446
446
  imageUrl: t,
447
- orden: r = 1,
447
+ orden: n = 1,
448
448
  onClick: a,
449
- loading: o = !1,
450
- sizes: c = {
449
+ loading: i = !1,
450
+ sizes: l = {
451
451
  xs: { w: 104, h: 112, r: 18, font: 48 },
452
452
  md: { w: 186, h: 264, r: 22.6, font: 64 }
453
453
  }
454
454
  }) {
455
- var I, s, l, h;
456
- const n = (S, g) => {
457
- var y, O, v, E;
455
+ var O, s, p, _;
456
+ const o = ($, v) => {
457
+ var S, I, f, C;
458
458
  return {
459
- xs: (O = (y = c.xs) == null ? void 0 : y[S]) != null ? O : g,
460
- md: (E = (v = c.md) == null ? void 0 : v[S]) != null ? E : g
459
+ xs: (I = (S = l.xs) == null ? void 0 : S[$]) != null ? I : v,
460
+ md: (C = (f = l.md) == null ? void 0 : f[$]) != null ? C : v
461
461
  };
462
- }, i = n("w", 186), m = n("h", 264), d = n("r", 22.6), f = n("font", 64), x = {
463
- xs: Math.round(((s = (I = c.xs) == null ? void 0 : I.font) != null ? s : 64) * 0.28),
464
- md: Math.round(((h = (l = c.md) == null ? void 0 : l.font) != null ? h : 64) * 0.28)
462
+ }, r = o("w", 186), m = o("h", 264), u = o("r", 22.6), x = o("font", 64), b = {
463
+ xs: Math.round(((s = (O = l.xs) == null ? void 0 : O.font) != null ? s : 64) * 0.28),
464
+ md: Math.round(((_ = (p = l.md) == null ? void 0 : p.font) != null ? _ : 64) * 0.28)
465
465
  };
466
- return /* @__PURE__ */ u(
466
+ return /* @__PURE__ */ c(
467
467
  k,
468
468
  {
469
469
  sx: {
470
470
  position: "relative",
471
471
  width: "100%",
472
- maxWidth: { xs: `${i.xs}px`, md: `${i.md}px` },
472
+ maxWidth: { xs: `${r.xs}px`, md: `${r.md}px` },
473
473
  aspectRatio: {
474
- xs: `${i.xs}/${m.xs}`,
475
- md: `${i.md}/${m.md}`
474
+ xs: `${r.xs}/${m.xs}`,
475
+ md: `${r.md}/${m.md}`
476
476
  },
477
- borderRadius: { xs: `${d.xs}px`, md: `${d.md}px` },
477
+ borderRadius: { xs: `${u.xs}px`, md: `${u.md}px` },
478
478
  boxSizing: "border-box",
479
479
  overflow: "visible",
480
- pb: { xs: `${x.xs}px`, md: `${x.md}px` },
480
+ pb: { xs: `${b.xs}px`, md: `${b.md}px` },
481
481
  "&::before": {
482
482
  content: '""',
483
483
  position: "absolute",
@@ -499,8 +499,8 @@ function mt({
499
499
  borderRadius: "inherit",
500
500
  overflow: "hidden"
501
501
  },
502
- children: o ? /* @__PURE__ */ e(
503
- F,
502
+ children: i ? /* @__PURE__ */ e(
503
+ M,
504
504
  {
505
505
  variant: "rectangular",
506
506
  width: "100%",
@@ -532,13 +532,13 @@ function mt({
532
532
  position: "absolute",
533
533
  left: 8,
534
534
  bottom: {
535
- xs: `-${x.xs}px`,
536
- md: `-${x.md}px`
535
+ xs: `-${b.xs}px`,
536
+ md: `-${b.md}px`
537
537
  },
538
538
  fontFamily: "secondary",
539
539
  fontSize: {
540
- xs: `${f.xs}px`,
541
- md: `${f.md}px`
540
+ xs: `${x.xs}px`,
541
+ md: `${x.md}px`
542
542
  },
543
543
  lineHeight: 1,
544
544
  color: "#3CC666",
@@ -546,25 +546,25 @@ function mt({
546
546
  zIndex: 3,
547
547
  userSelect: "none"
548
548
  },
549
- children: r
549
+ children: n
550
550
  }
551
551
  )
552
552
  ]
553
553
  }
554
554
  );
555
555
  }
556
- const ht = ({
556
+ const gt = ({
557
557
  logo: t,
558
- provider: r,
558
+ provider: n,
559
559
  providerName: a,
560
- machine: o,
561
- onClick: c
560
+ machine: i,
561
+ onClick: l
562
562
  }) => {
563
- var n;
564
- return /* @__PURE__ */ u(
563
+ var o;
564
+ return /* @__PURE__ */ c(
565
565
  k,
566
566
  {
567
- onClick: c,
567
+ onClick: l,
568
568
  sx: {
569
569
  flex: "0 0 auto",
570
570
  position: "relative",
@@ -590,7 +590,7 @@ const ht = ({
590
590
  {
591
591
  component: "img",
592
592
  src: t,
593
- alt: `Juego ${o != null ? o : ""}`,
593
+ alt: `Juego ${i != null ? i : ""}`,
594
594
  sx: {
595
595
  position: "absolute",
596
596
  inset: 0,
@@ -624,7 +624,7 @@ const ht = ({
624
624
  fontSize: { xs: 11, md: 14 },
625
625
  textTransform: "capitalize"
626
626
  },
627
- children: (n = r != null ? r : a) != null ? n : ""
627
+ children: (o = n != null ? n : a) != null ? o : ""
628
628
  }
629
629
  )
630
630
  }
@@ -632,8 +632,8 @@ const ht = ({
632
632
  ]
633
633
  }
634
634
  );
635
- }, ae = 12, ie = ({ r: t = 16 }) => /* @__PURE__ */ e(k, { sx: { width: "100%", height: "100%", borderRadius: t, overflow: "hidden" }, children: /* @__PURE__ */ e(
636
- F,
635
+ }, ie = 12, se = ({ r: t = 16 }) => /* @__PURE__ */ e(k, { sx: { width: "100%", height: "100%", borderRadius: t, overflow: "hidden" }, children: /* @__PURE__ */ e(
636
+ M,
637
637
  {
638
638
  variant: "rectangular",
639
639
  width: "100%",
@@ -647,17 +647,17 @@ const ht = ({
647
647
  }
648
648
  }
649
649
  }
650
- ) }), Ne = ({
650
+ ) }), Ie = ({
651
651
  items: t,
652
- layout: r = "grid",
652
+ layout: n = "grid",
653
653
  onClick: a,
654
- loading: o = !1,
655
- gridSkeletonCount: c = 4
654
+ loading: i = !1,
655
+ gridSkeletonCount: l = 4
656
656
  }) => {
657
- var n;
658
- if (r === "mosaic") {
659
- const i = t[0], m = t.slice(1, 5);
660
- return /* @__PURE__ */ u(
657
+ var o;
658
+ if (n === "mosaic") {
659
+ const r = t[0], m = t.slice(1, 5);
660
+ return /* @__PURE__ */ c(
661
661
  k,
662
662
  {
663
663
  sx: {
@@ -675,8 +675,8 @@ const ht = ({
675
675
  xs: "104px",
676
676
  md: "152px"
677
677
  },
678
- columnGap: `${ae}px`,
679
- rowGap: `${ae}px`,
678
+ columnGap: `${ie}px`,
679
+ rowGap: `${ie}px`,
680
680
  alignItems: "stretch",
681
681
  justifyItems: "stretch"
682
682
  },
@@ -691,19 +691,19 @@ const ht = ({
691
691
  overflow: "hidden",
692
692
  borderRadius: 2
693
693
  },
694
- children: o ? /* @__PURE__ */ e(ie, {}) : i && /* @__PURE__ */ e(
694
+ children: i ? /* @__PURE__ */ e(se, {}) : r && /* @__PURE__ */ e(
695
695
  te,
696
696
  {
697
- imageUrl: `https://olimpo.bet${(n = i.imageUrl) != null ? n : ""}`,
697
+ imageUrl: `https://olimpo.bet${(o = r.imageUrl) != null ? o : ""}`,
698
698
  size: "lg",
699
699
  fillParent: !0,
700
- onClick: () => a == null ? void 0 : a(i, 0)
700
+ onClick: () => a == null ? void 0 : a(r, 0)
701
701
  }
702
702
  )
703
703
  }
704
704
  ),
705
- (o ? Array.from({ length: 4 }) : m).map((d, f) => {
706
- var x;
705
+ (i ? Array.from({ length: 4 }) : m).map((u, x) => {
706
+ var b;
707
707
  return /* @__PURE__ */ e(
708
708
  k,
709
709
  {
@@ -713,17 +713,17 @@ const ht = ({
713
713
  overflow: "hidden",
714
714
  borderRadius: 2
715
715
  },
716
- children: o ? /* @__PURE__ */ e(ie, {}) : /* @__PURE__ */ e(
716
+ children: i ? /* @__PURE__ */ e(se, {}) : /* @__PURE__ */ e(
717
717
  te,
718
718
  {
719
- imageUrl: `https://olimpo.bet${(x = d.imageUrl) != null ? x : ""}`,
719
+ imageUrl: `https://olimpo.bet${(b = u.imageUrl) != null ? b : ""}`,
720
720
  size: "sm",
721
721
  fillParent: !0,
722
- onClick: () => a == null ? void 0 : a(d, f + 1)
722
+ onClick: () => a == null ? void 0 : a(u, x + 1)
723
723
  }
724
724
  )
725
725
  },
726
- o ? `sk-${f}` : d.id
726
+ i ? `sk-${x}` : u.id
727
727
  );
728
728
  })
729
729
  ]
@@ -743,43 +743,43 @@ const ht = ({
743
743
  xs: "repeat(2, 112px)",
744
744
  md: "repeat(2, 168px)"
745
745
  },
746
- gap: `${ae}px`,
746
+ gap: `${ie}px`,
747
747
  gridAutoFlow: "column"
748
748
  },
749
- children: (o ? Array.from({ length: c }) : t).map((i, m) => {
750
- var d, f;
749
+ children: (i ? Array.from({ length: l }) : t).map((r, m) => {
750
+ var u, x;
751
751
  return /* @__PURE__ */ e(
752
752
  k,
753
753
  {
754
754
  sx: { overflow: "hidden", borderRadius: 2 },
755
- children: o ? /* @__PURE__ */ e(ie, {}) : /* @__PURE__ */ e(
755
+ children: i ? /* @__PURE__ */ e(se, {}) : /* @__PURE__ */ e(
756
756
  te,
757
757
  {
758
- imageUrl: `https://olimpo.bet${(d = i.imageUrl) != null ? d : ""}`,
758
+ imageUrl: `https://olimpo.bet${(u = r.imageUrl) != null ? u : ""}`,
759
759
  size: "sm",
760
760
  fillParent: !0,
761
- onClick: () => a == null ? void 0 : a(i, m)
761
+ onClick: () => a == null ? void 0 : a(r, m)
762
762
  }
763
763
  )
764
764
  },
765
- o ? `sk-${m}` : (f = i.id) != null ? f : m
765
+ i ? `sk-${m}` : (x = r.id) != null ? x : m
766
766
  );
767
767
  })
768
768
  }
769
769
  );
770
- }, gt = ({
770
+ }, ft = ({
771
771
  title: t,
772
- amount: r,
772
+ amount: n,
773
773
  subtitle: a,
774
- buttonText: o,
775
- onButtonClick: c,
776
- backgroundImage: n,
777
- alt: i,
774
+ buttonText: i,
775
+ onButtonClick: l,
776
+ backgroundImage: o,
777
+ alt: r,
778
778
  className: m = "",
779
- variant: d = "small"
779
+ variant: u = "small"
780
780
  }) => {
781
- const f = r ? r.slice(0, 2) : "", x = r ? r.slice(2) : "", I = d === "large";
782
- return /* @__PURE__ */ u(
781
+ const x = n ? n.slice(0, 2) : "", b = n ? n.slice(2) : "", O = u === "large";
782
+ return /* @__PURE__ */ c(
783
783
  k,
784
784
  {
785
785
  className: m,
@@ -788,12 +788,12 @@ const ht = ({
788
788
  width: "100%",
789
789
  maxWidth: {
790
790
  xs: 328,
791
- md: I ? 618 : 456
791
+ md: O ? 618 : 456
792
792
  },
793
793
  mx: "auto"
794
794
  },
795
795
  children: [
796
- n && /* @__PURE__ */ e(
796
+ o && /* @__PURE__ */ e(
797
797
  k,
798
798
  {
799
799
  sx: {
@@ -801,7 +801,7 @@ const ht = ({
801
801
  width: "100%",
802
802
  aspectRatio: {
803
803
  xs: "328 / 188",
804
- md: I ? "618 / 346" : "456 / 272"
804
+ md: O ? "618 / 346" : "456 / 272"
805
805
  },
806
806
  borderRadius: "14px",
807
807
  overflow: "hidden"
@@ -810,8 +810,8 @@ const ht = ({
810
810
  k,
811
811
  {
812
812
  component: "img",
813
- src: n,
814
- alt: i != null ? i : "Fondo promocional",
813
+ src: o,
814
+ alt: r != null ? r : "Fondo promocional",
815
815
  sx: {
816
816
  width: "100%",
817
817
  height: "100%",
@@ -840,7 +840,7 @@ const ht = ({
840
840
  pl: "14%",
841
841
  pr: { xs: "14%", lg: "15%" }
842
842
  },
843
- children: /* @__PURE__ */ u(
843
+ children: /* @__PURE__ */ c(
844
844
  k,
845
845
  {
846
846
  sx: {
@@ -861,7 +861,7 @@ const ht = ({
861
861
  children: t
862
862
  }
863
863
  ),
864
- r && /* @__PURE__ */ u(
864
+ n && /* @__PURE__ */ c(
865
865
  k,
866
866
  {
867
867
  component: "p",
@@ -884,7 +884,7 @@ const ht = ({
884
884
  {
885
885
  component: "span",
886
886
  sx: { fontSize: { xs: 35, md: 48 }, mr: 0.5 },
887
- children: f
887
+ children: x
888
888
  }
889
889
  ),
890
890
  /* @__PURE__ */ e(
@@ -892,7 +892,7 @@ const ht = ({
892
892
  {
893
893
  component: "span",
894
894
  sx: { fontSize: { xs: 52, md: 77 } },
895
- children: x
895
+ children: b
896
896
  }
897
897
  )
898
898
  ]
@@ -910,7 +910,7 @@ const ht = ({
910
910
  children: a
911
911
  }
912
912
  ),
913
- o && /* @__PURE__ */ e(L, { onClick: c, children: o })
913
+ i && /* @__PURE__ */ e(L, { onClick: l, children: i })
914
914
  ]
915
915
  }
916
916
  )
@@ -919,87 +919,96 @@ const ht = ({
919
919
  ]
920
920
  }
921
921
  );
922
- }, ft = ({
922
+ }, xt = ({
923
923
  text: t,
924
- buttonLabel: r = "Conoce más",
924
+ buttonLabel: n = "Conoce más",
925
925
  onClick: a,
926
- imgAlt: o = "Club Olimpo",
927
- imgSrcMobile: c,
928
- imgSrcDesktopBg: n,
929
- imgSrcDesktopLogo: i
930
- }) => /* @__PURE__ */ u(Z, { children: [
926
+ imgAlt: i = "Club Olimpo",
927
+ imgSrcMobile: l,
928
+ imgSrcDesktopBg: o,
929
+ imgSrcDesktopLogo: r
930
+ }) => /* @__PURE__ */ c(Z, { children: [
931
931
  /* @__PURE__ */ e("div", { className: "orc-co-bgMobile", children: /* @__PURE__ */ e(
932
932
  "img",
933
933
  {
934
- src: c,
935
- alt: o,
934
+ src: l,
935
+ alt: i,
936
936
  className: "orc-co-bgMobileImg"
937
937
  }
938
938
  ) }),
939
- /* @__PURE__ */ u("div", { className: "orc-co-bgDesktop", children: [
940
- n && /* @__PURE__ */ e("div", { className: "orc-co-fillHost", children: /* @__PURE__ */ e(
939
+ /* @__PURE__ */ c("div", { className: "orc-co-bgDesktop", children: [
940
+ o && /* @__PURE__ */ e("div", { className: "orc-co-fillHost", children: /* @__PURE__ */ e(
941
941
  "img",
942
942
  {
943
- src: n,
944
- alt: `${o} fondo`,
943
+ src: o,
944
+ alt: `${i} fondo`,
945
945
  className: "orc-co-bgDesktopImg"
946
946
  }
947
947
  ) }),
948
- /* @__PURE__ */ u("div", { className: "orc-co-desktopContent", children: [
949
- i && /* @__PURE__ */ e(
948
+ /* @__PURE__ */ c("div", { className: "orc-co-desktopContent", children: [
949
+ r && /* @__PURE__ */ e(
950
950
  "img",
951
951
  {
952
- src: i,
953
- alt: `${o} logo`,
952
+ src: r,
953
+ alt: `${i} logo`,
954
954
  className: "orc-co-logoImg"
955
955
  }
956
956
  ),
957
957
  /* @__PURE__ */ e("p", { className: "orc-co-captionDesktop", children: t }),
958
- /* @__PURE__ */ e(L, { onClick: a, variant: "primary", size: "md", children: r })
958
+ /* @__PURE__ */ e(L, { onClick: a, variant: "primary", size: "md", children: n })
959
959
  ] })
960
960
  ] }),
961
- /* @__PURE__ */ u("div", { className: "orc-co-bottom", children: [
961
+ /* @__PURE__ */ c("div", { className: "orc-co-bottom", children: [
962
962
  /* @__PURE__ */ e("p", { className: "orc-co-caption", children: t }),
963
- /* @__PURE__ */ e(L, { onClick: a, variant: "primary", size: "md", children: r })
963
+ /* @__PURE__ */ e(L, { onClick: a, variant: "primary", size: "md", children: n })
964
964
  ] })
965
- ] }), xt = "oraculo__OraculoEventCombinadasCard-module__card___ulQeY", _t = "oraculo__OraculoEventCombinadasCard-module__combinadas___Gxrld", bt = "oraculo__OraculoEventCombinadasCard-module__apuestaItem___YnYMy", vt = "oraculo__OraculoEventCombinadasCard-module__lineContainer___G5rbU", yt = "oraculo__OraculoEventCombinadasCard-module__circle___eehm-", wt = "oraculo__OraculoEventCombinadasCard-module__line___Eb2pK", St = "oraculo__OraculoEventCombinadasCard-module__apuestaText___b5s7S", Ct = "oraculo__OraculoEventCombinadasCard-module__cuotaTotal___Lohvu", V = {
966
- card: xt,
965
+ ] }), bt = "oraculo__OraculoEventCombinadasCard-module__card___ulQeY", _t = "oraculo__OraculoEventCombinadasCard-module__combinadas___Gxrld", vt = "oraculo__OraculoEventCombinadasCard-module__apuestaItem___YnYMy", yt = "oraculo__OraculoEventCombinadasCard-module__lineContainer___G5rbU", wt = "oraculo__OraculoEventCombinadasCard-module__circle___eehm-", St = "oraculo__OraculoEventCombinadasCard-module__line___Eb2pK", Ct = "oraculo__OraculoEventCombinadasCard-module__apuestaText___b5s7S", Et = "oraculo__OraculoEventCombinadasCard-module__cuotaTotal___Lohvu", H = {
966
+ card: bt,
967
967
  combinadas: _t,
968
- apuestaItem: bt,
969
- lineContainer: vt,
970
- circle: yt,
971
- line: wt,
972
- apuestaText: St,
973
- cuotaTotal: Ct
968
+ apuestaItem: vt,
969
+ lineContainer: yt,
970
+ circle: wt,
971
+ line: St,
972
+ apuestaText: Ct,
973
+ cuotaTotal: Et
974
974
  };
975
- function ue(t) {
976
- const r = Array.isArray(t) ? t : [t];
977
- sessionStorage.setItem("landingOutcomes", JSON.stringify(r)), window.location.href = "/deportes";
975
+ function pe(t) {
976
+ const n = Array.isArray(t) ? t : [t];
977
+ sessionStorage.setItem("landingOutcomes", JSON.stringify(n)), window.location.href = "/deportes";
978
978
  }
979
- function Et({ event: t }) {
980
- var o;
981
- function r(c) {
982
- var x;
983
- const n = (x = c.betoffers) != null ? x : [], i = c.homeName, m = c.awayName, d = n.map((I) => {
984
- var S, g, y, O, v;
985
- let s = I.outcomes[0], l = "", h = s != null && s.line ? s.line / 1e3 : "";
986
- return ["Más de", "Mas de", "Over"].includes(s == null ? void 0 : s.label) ? (l = `Más de ${h}`, s != null && s.participant && (l = `${s.participant} - ${l}`)) : ["Menos de", "Menos"].includes(s == null ? void 0 : s.label) ? (l = `Menos de ${h}`, s != null && s.participant && (l = `${s.participant} - ${l}`)) : ["Sí", "No"].includes(s == null ? void 0 : s.label) ? (l = s == null ? void 0 : s.label, s != null && s.participant && (l = `${s.participant} - ${l}`)) : ["1X", "12", "X2"].includes(s == null ? void 0 : s.label) ? s.label === "1X" ? l = `${i} o Empate` : s.label === "12" ? l = `${i} o ${m}` : s.label === "X2" && (l = `${m} o Empate`) : (s != null && s.participant ? l = s.participant : l = (S = s == null ? void 0 : s.label) != null ? S : "", h !== "" && l === s.label && (l = `${s.label} ${h}`)), {
987
- id: (g = s == null ? void 0 : s.id) != null ? g : 0,
988
- value: l,
989
- label: I.criterion.label,
990
- odds: (y = s == null ? void 0 : s.odds) != null ? y : 0,
991
- bl: (O = s == null ? void 0 : s.label) != null ? O : 0,
992
- position: (v = s == null ? void 0 : s.position) != null ? v : 0
979
+ function kt() {
980
+ window.location.href = "/#in-play";
981
+ }
982
+ function $t() {
983
+ window.location.href = "/#sports-hub/football";
984
+ }
985
+ function Ot() {
986
+ window.location.href = "/#specials";
987
+ }
988
+ function Nt({ event: t }) {
989
+ var i;
990
+ function n(l) {
991
+ var b;
992
+ const o = (b = l.betoffers) != null ? b : [], r = l.homeName, m = l.awayName, u = o.map((O) => {
993
+ var $, v, S, I, f;
994
+ let s = O.outcomes[0], p = "", _ = s != null && s.line ? s.line / 1e3 : "";
995
+ return ["Más de", "Mas de", "Over"].includes(s == null ? void 0 : s.label) ? (p = `Más de ${_}`, s != null && s.participant && (p = `${s.participant} - ${p}`)) : ["Menos de", "Menos"].includes(s == null ? void 0 : s.label) ? (p = `Menos de ${_}`, s != null && s.participant && (p = `${s.participant} - ${p}`)) : ["Sí", "No"].includes(s == null ? void 0 : s.label) ? (p = s == null ? void 0 : s.label, s != null && s.participant && (p = `${s.participant} - ${p}`)) : ["1X", "12", "X2"].includes(s == null ? void 0 : s.label) ? s.label === "1X" ? p = `${r} o Empate` : s.label === "12" ? p = `${r} o ${m}` : s.label === "X2" && (p = `${m} o Empate`) : (s != null && s.participant ? p = s.participant : p = ($ = s == null ? void 0 : s.label) != null ? $ : "", _ !== "" && p === s.label && (p = `${s.label} ${_}`)), {
996
+ id: (v = s == null ? void 0 : s.id) != null ? v : 0,
997
+ value: p,
998
+ label: O.criterion.label,
999
+ odds: (S = s == null ? void 0 : s.odds) != null ? S : 0,
1000
+ bl: (I = s == null ? void 0 : s.label) != null ? I : 0,
1001
+ position: (f = s == null ? void 0 : s.position) != null ? f : 0
993
1002
  };
994
- }), f = d.reduce((I, s) => I + s.odds, 0) / 1e3;
1003
+ }), x = u.reduce((O, s) => O + s.odds, 0) / 1e3;
995
1004
  return {
996
- outcomes: d,
997
- total: f.toFixed(2)
1005
+ outcomes: u,
1006
+ total: x.toFixed(2)
998
1007
  };
999
1008
  }
1000
- const a = r(t);
1001
- return /* @__PURE__ */ u("div", { className: V.card, children: [
1002
- /* @__PURE__ */ e("div", { className: V.combinadas, children: /* @__PURE__ */ u(B, { direction: "column", spacing: 0.5, useFlexGap: !0, children: [
1009
+ const a = n(t);
1010
+ return /* @__PURE__ */ c("div", { className: H.card, children: [
1011
+ /* @__PURE__ */ e("div", { className: H.combinadas, children: /* @__PURE__ */ c(B, { direction: "column", spacing: 0.5, useFlexGap: !0, children: [
1003
1012
  /* @__PURE__ */ e(
1004
1013
  K,
1005
1014
  {
@@ -1009,32 +1018,32 @@ function Et({ event: t }) {
1009
1018
  }
1010
1019
  ),
1011
1020
  /* @__PURE__ */ e("img", { loading: "lazy", src: "/assets/img/home/Combinadas/line.png" }),
1012
- /* @__PURE__ */ e(B, { direction: "column", spacing: 0.5, useFlexGap: !0, children: a.outcomes.sort((c, n) => c.position - n.position).map((c, n) => /* @__PURE__ */ u("div", { className: V.apuestaItem, children: [
1013
- /* @__PURE__ */ u("div", { className: V.lineContainer, children: [
1014
- /* @__PURE__ */ e("div", { className: V.circle }),
1015
- n < a.outcomes.length - 1 && /* @__PURE__ */ e("div", { className: V.line })
1021
+ /* @__PURE__ */ e(B, { direction: "column", spacing: 0.5, useFlexGap: !0, children: a.outcomes.sort((l, o) => l.position - o.position).map((l, o) => /* @__PURE__ */ c("div", { className: H.apuestaItem, children: [
1022
+ /* @__PURE__ */ c("div", { className: H.lineContainer, children: [
1023
+ /* @__PURE__ */ e("div", { className: H.circle }),
1024
+ o < a.outcomes.length - 1 && /* @__PURE__ */ e("div", { className: H.line })
1016
1025
  ] }),
1017
- /* @__PURE__ */ u("div", { className: V.apuestaText, children: [
1018
- /* @__PURE__ */ e("strong", { children: c.value }),
1026
+ /* @__PURE__ */ c("div", { className: H.apuestaText, children: [
1027
+ /* @__PURE__ */ e("strong", { children: l.value }),
1019
1028
  " ",
1020
1029
  "| ",
1021
- c.label
1030
+ l.label
1022
1031
  ] })
1023
- ] }, n)) })
1032
+ ] }, o)) })
1024
1033
  ] }) }),
1025
- /* @__PURE__ */ u("button", { onClick: () => {
1026
- var c, n;
1027
- return ue((n = (c = a == null ? void 0 : a.outcomes) == null ? void 0 : c.map((i) => i == null ? void 0 : i.id)) != null ? n : []);
1028
- }, className: V.cuotaTotal, children: [
1029
- /* @__PURE__ */ u("span", { children: [
1034
+ /* @__PURE__ */ c("button", { onClick: () => {
1035
+ var l, o;
1036
+ return pe((o = (l = a == null ? void 0 : a.outcomes) == null ? void 0 : l.map((r) => r == null ? void 0 : r.id)) != null ? o : []);
1037
+ }, className: H.cuotaTotal, children: [
1038
+ /* @__PURE__ */ c("span", { children: [
1030
1039
  "Cuota total: ",
1031
- /* @__PURE__ */ e("strong", { children: (((o = t.combinadoTotal) != null ? o : 0) / 1e3).toFixed(2) })
1040
+ /* @__PURE__ */ e("strong", { children: (((i = t.combinadoTotal) != null ? i : 0) / 1e3).toFixed(2) })
1032
1041
  ] }),
1033
1042
  /* @__PURE__ */ e("img", { loading: "lazy", src: "/assets/img/home/Combinadas/cuotaTotal.svg", alt: "cuota total" })
1034
1043
  ] })
1035
1044
  ] });
1036
1045
  }
1037
- const G = {
1046
+ const U = {
1038
1047
  "orc-btn": "oraculo__OraculoButtonBet-module__orc-btn___jakza",
1039
1048
  "orc-btn__label": "oraculo__OraculoButtonBet-module__orc-btn__label___zNFEH",
1040
1049
  "orc-btn__icon": "oraculo__OraculoButtonBet-module__orc-btn__icon___5Rhyd",
@@ -1050,172 +1059,172 @@ const G = {
1050
1059
  };
1051
1060
  function It({
1052
1061
  children: t,
1053
- onClick: r,
1062
+ onClick: n,
1054
1063
  href: a,
1055
- target: o,
1056
- rel: c,
1057
- type: n = "button",
1058
- disabled: i = !1,
1064
+ target: i,
1065
+ rel: l,
1066
+ type: o = "button",
1067
+ disabled: r = !1,
1059
1068
  variant: m = "primary",
1060
- size: d,
1061
- fullWidth: f = !1,
1062
- fullHeight: x = !1,
1063
- className: I = "",
1069
+ size: u,
1070
+ fullWidth: x = !1,
1071
+ fullHeight: b = !1,
1072
+ className: O = "",
1064
1073
  ariaLabel: s,
1065
- leftIcon: l,
1066
- rightIcon: h,
1067
- iconOnly: S
1074
+ leftIcon: p,
1075
+ rightIcon: _,
1076
+ iconOnly: $
1068
1077
  }) {
1069
- const g = !!t && t !== !0, v = (!!l ? 1 : 0) + (!!h ? 1 : 0) == 1, E = S != null ? S : v && !g, T = [
1070
- G["orc-btn"],
1078
+ const v = !!t && t !== !0, f = (!!p ? 1 : 0) + (!!_ ? 1 : 0) == 1, C = $ != null ? $ : f && !v, T = [
1079
+ U["orc-btn"],
1071
1080
  // base
1072
- G[`orc-btn--${m}`],
1081
+ U[`orc-btn--${m}`],
1073
1082
  // variant primary/secondary/tertiary
1074
- d ? G[`orc-btn--${d}`] : "",
1083
+ u ? U[`orc-btn--${u}`] : "",
1075
1084
  // sm / md / lg
1076
- f ? G["orc-btn--full"] : "",
1077
- x ? G["orc-btn--fullHeight"] : "",
1078
- E ? G["orc-btn--iconOnly"] : "",
1079
- I
1080
- ].filter(Boolean).join(" "), R = /* @__PURE__ */ u(Z, { children: [
1081
- l && /* @__PURE__ */ e("span", { className: G["orc-btn__icon"], children: l }),
1082
- !E && /* @__PURE__ */ e("span", { className: G["orc-btn__label"], children: t }),
1083
- h && /* @__PURE__ */ e("span", { className: G["orc-btn__icon"], children: h })
1084
- ] }), $ = i ? !0 : void 0;
1085
+ x ? U["orc-btn--full"] : "",
1086
+ b ? U["orc-btn--fullHeight"] : "",
1087
+ C ? U["orc-btn--iconOnly"] : "",
1088
+ O
1089
+ ].filter(Boolean).join(" "), P = /* @__PURE__ */ c(Z, { children: [
1090
+ p && /* @__PURE__ */ e("span", { className: U["orc-btn__icon"], children: p }),
1091
+ !C && /* @__PURE__ */ e("span", { className: U["orc-btn__label"], children: t }),
1092
+ _ && /* @__PURE__ */ e("span", { className: U["orc-btn__icon"], children: _ })
1093
+ ] }), E = r ? !0 : void 0;
1085
1094
  return a ? /* @__PURE__ */ e(
1086
- ve,
1095
+ ye,
1087
1096
  {
1088
1097
  href: a,
1089
- target: o,
1090
- rel: c,
1098
+ target: i,
1099
+ rel: l,
1091
1100
  "aria-label": s,
1092
- "aria-disabled": $,
1093
- tabIndex: $ ? -1 : void 0,
1101
+ "aria-disabled": E,
1102
+ tabIndex: E ? -1 : void 0,
1094
1103
  className: T,
1095
- onClick: $ ? (p) => p.preventDefault() : r,
1096
- children: R
1104
+ onClick: E ? (d) => d.preventDefault() : n,
1105
+ children: P
1097
1106
  }
1098
1107
  ) : /* @__PURE__ */ e(
1099
1108
  "button",
1100
1109
  {
1101
- type: n,
1102
- onClick: r,
1103
- disabled: !!$,
1110
+ type: o,
1111
+ onClick: n,
1112
+ disabled: !!E,
1104
1113
  "aria-label": s,
1105
1114
  className: T,
1106
- children: R
1115
+ children: P
1107
1116
  }
1108
1117
  );
1109
1118
  }
1110
- const $t = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", Oe = {
1111
- cardWrapper: $t
1119
+ const Pt = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", Pe = {
1120
+ cardWrapper: Pt
1112
1121
  };
1113
- function kt({ event: t, liveData: r, betOffers: a }) {
1114
- var c, n, i, m, d, f, x, I;
1115
- const o = a == null ? void 0 : a.find(
1122
+ function Tt({ event: t, liveData: n, betOffers: a }) {
1123
+ var l, o, r, m, u, x, b, O;
1124
+ const i = a == null ? void 0 : a.find(
1116
1125
  (s) => {
1117
- var l;
1118
- return ((l = s.betOfferType) == null ? void 0 : l.id) === 2;
1126
+ var p;
1127
+ return ((p = s.betOfferType) == null ? void 0 : p.id) === 2;
1119
1128
  }
1120
1129
  );
1121
- return /* @__PURE__ */ e("div", { className: Oe.cardWrapper, children: /* @__PURE__ */ u(B, { direction: "column", spacing: 1, useFlexGap: !0, children: [
1122
- /* @__PURE__ */ u(B, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
1130
+ return /* @__PURE__ */ e("div", { className: Pe.cardWrapper, children: /* @__PURE__ */ c(B, { direction: "column", spacing: 1, useFlexGap: !0, children: [
1131
+ /* @__PURE__ */ c(B, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
1123
1132
  /* @__PURE__ */ e(
1124
- Xe,
1133
+ Qe,
1125
1134
  {
1126
- title: (c = t.path[0].name) != null ? c : "",
1135
+ title: (l = t.path[0].name) != null ? l : "",
1127
1136
  subtitle: t.group,
1128
1137
  live: !0,
1129
- time: ((n = r == null ? void 0 : r.matchClock) == null ? void 0 : n.minute) != null ? `${r.matchClock.minute}'` : ""
1138
+ time: ((o = n == null ? void 0 : n.matchClock) == null ? void 0 : o.minute) != null ? `${n.matchClock.minute}'` : ""
1130
1139
  }
1131
1140
  ),
1132
- /* @__PURE__ */ e("div", { style: { padding: "0 4px" }, children: /* @__PURE__ */ u(H, { spacing: 1.5, columns: "1fr auto 1fr", children: [
1141
+ /* @__PURE__ */ e("div", { style: { padding: "0 4px" }, children: /* @__PURE__ */ c(V, { spacing: 1.5, columns: "1fr auto 1fr", children: [
1133
1142
  /* @__PURE__ */ e(
1134
- ne,
1143
+ oe,
1135
1144
  {
1136
1145
  name: t.homeName,
1137
1146
  logo: "https://stg-www.contodobet.com/static/img/landing/EventoEnVivo/Juventus.png"
1138
1147
  }
1139
1148
  ),
1140
- /* @__PURE__ */ e(ke, { text: ((m = (i = r == null ? void 0 : r.score) == null ? void 0 : i.home) != null ? m : 0) + ":" + ((f = (d = r == null ? void 0 : r.score) == null ? void 0 : d.away) != null ? f : 0), name: "En vivo" }),
1141
- /* @__PURE__ */ e(ne, { name: t.awayName, logo: "https://stg-www.contodobet.com/static/img/landing/EventoEnVivo/Racing.png" })
1149
+ /* @__PURE__ */ e(Ne, { text: ((m = (r = n == null ? void 0 : n.score) == null ? void 0 : r.home) != null ? m : 0) + ":" + ((x = (u = n == null ? void 0 : n.score) == null ? void 0 : u.away) != null ? x : 0), name: "En vivo" }),
1150
+ /* @__PURE__ */ e(oe, { name: t.awayName, logo: "https://stg-www.contodobet.com/static/img/landing/EventoEnVivo/Racing.png" })
1142
1151
  ] }) })
1143
1152
  ] }),
1144
- /* @__PURE__ */ u(B, { direction: "column", spacing: 1, useFlexGap: !0, children: [
1145
- /* @__PURE__ */ e(H, { spacing: 1, children: ((x = o == null ? void 0 : o.outcomes) != null ? x : []).map((s, l) => /* @__PURE__ */ e(Ie, { text: s.label.toUpperCase() }, l)) }),
1146
- /* @__PURE__ */ e(H, { spacing: 2, children: ((I = o == null ? void 0 : o.outcomes) != null ? I : []).map((s, l) => /* @__PURE__ */ e(It, { variant: "primary", disabled: s.odds == null || (o == null ? void 0 : o.cashOutStatus) == "SUSPENDED", onClick: () => {
1147
- ue(s.id);
1148
- }, children: s.odds === void 0 ? "" : (s.odds / 1e3).toFixed(2) }, l)) })
1153
+ /* @__PURE__ */ c(B, { direction: "column", spacing: 1, useFlexGap: !0, children: [
1154
+ /* @__PURE__ */ e(V, { spacing: 1, children: ((b = i == null ? void 0 : i.outcomes) != null ? b : []).map((s, p) => /* @__PURE__ */ e($e, { text: s.label.toUpperCase() }, p)) }),
1155
+ /* @__PURE__ */ e(V, { spacing: 2, children: ((O = i == null ? void 0 : i.outcomes) != null ? O : []).map((s, p) => /* @__PURE__ */ e(It, { variant: "primary", disabled: s.odds == null || (i == null ? void 0 : i.cashOutStatus) == "SUSPENDED", onClick: () => {
1156
+ pe(s.id);
1157
+ }, children: s.odds === void 0 ? "" : (s.odds / 1e3).toFixed(2) }, p)) })
1149
1158
  ] })
1150
1159
  ] }) });
1151
1160
  }
1152
- const Nt = "oraculo__OraculoEventDate-module__date___xhIlh", Ot = {
1153
- date: Nt
1161
+ const Rt = "oraculo__OraculoEventDate-module__date___xhIlh", Bt = {
1162
+ date: Rt
1154
1163
  };
1155
- function Rt({ text: t }) {
1156
- return /* @__PURE__ */ e("div", { className: `oli-font ${Ot.date}`, children: t });
1164
+ function Mt({ text: t }) {
1165
+ return /* @__PURE__ */ e("div", { className: `oli-font ${Bt.date}`, children: t });
1157
1166
  }
1158
- const Tt = "oraculo__OraculoEventSemanaCard-module__cardContainer___4JuDe", Pt = "oraculo__OraculoEventSemanaCard-module__cardBackground___vfalD", Bt = "oraculo__OraculoEventSemanaCard-module__jugadas___W8b7H", Ft = "oraculo__OraculoEventSemanaCard-module__equipos___G5hLn", J = {
1159
- cardContainer: Tt,
1160
- cardBackground: Pt,
1161
- jugadas: Bt,
1162
- equipos: Ft
1167
+ const Lt = "oraculo__OraculoEventSemanaCard-module__cardContainer___4JuDe", Ft = "oraculo__OraculoEventSemanaCard-module__cardBackground___vfalD", Wt = "oraculo__OraculoEventSemanaCard-module__jugadas___W8b7H", zt = "oraculo__OraculoEventSemanaCard-module__equipos___G5hLn", J = {
1168
+ cardContainer: Lt,
1169
+ cardBackground: Ft,
1170
+ jugadas: Wt,
1171
+ equipos: zt
1163
1172
  };
1164
- function Lt({ event: t }) {
1165
- var a, o, c, n, i, m, d;
1166
- function r(f) {
1167
- const x = new Date(f), I = x.toLocaleDateString("es-ES", {
1173
+ function jt({ event: t }) {
1174
+ var a, i, l, o, r, m, u;
1175
+ function n(x) {
1176
+ const b = new Date(x), O = b.toLocaleDateString("es-ES", {
1168
1177
  weekday: "short"
1169
- }).toUpperCase(), s = x.getDate().toString().padStart(2, "0"), l = (x.getMonth() + 1).toString().padStart(2, "0");
1170
- let h = x.toLocaleTimeString("es-PE", {
1178
+ }).toUpperCase(), s = b.getDate().toString().padStart(2, "0"), p = (b.getMonth() + 1).toString().padStart(2, "0");
1179
+ let _ = b.toLocaleTimeString("es-PE", {
1171
1180
  hour: "numeric",
1172
1181
  minute: "2-digit",
1173
1182
  hour12: !0
1174
1183
  }).toUpperCase();
1175
- return h = h.replace(/\./g, "").replace(/A\s*M/i, "AM").replace(/P\s*M/i, "PM"), `${I} ${s}/${l} | ${h}`;
1184
+ return _ = _.replace(/\./g, "").replace(/A\s*M/i, "AM").replace(/P\s*M/i, "PM"), `${O} ${s}/${p} | ${_}`;
1176
1185
  }
1177
- return /* @__PURE__ */ u("div", { className: J.cardContainer, children: [
1178
- /* @__PURE__ */ e($e, { title: (a = t == null ? void 0 : t.group) != null ? a : "" }),
1179
- /* @__PURE__ */ e("div", { className: J.cardBackground, children: /* @__PURE__ */ u(B, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
1180
- /* @__PURE__ */ u(B, { direction: "column", spacing: 1, useFlexGap: !0, children: [
1181
- /* @__PURE__ */ u("div", { className: J.equipos, children: [
1182
- /* @__PURE__ */ e(ne, { name: t.awayName, logo: "https://stg-www.contodobet.com/static/img/landing/EventoSemana/Flamengo.png", size: "compact" }),
1183
- /* @__PURE__ */ e(ke, { text: "vs.", name: "", size: "small" }),
1184
- /* @__PURE__ */ e(ne, { name: t.homeName, logo: "https://stg-www.contodobet.com/static/img/landing/EventoSemana/RealMadrid.png", size: "compact" })
1186
+ return /* @__PURE__ */ c("div", { className: J.cardContainer, children: [
1187
+ /* @__PURE__ */ e(Oe, { title: (a = t == null ? void 0 : t.group) != null ? a : "" }),
1188
+ /* @__PURE__ */ e("div", { className: J.cardBackground, children: /* @__PURE__ */ c(B, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
1189
+ /* @__PURE__ */ c(B, { direction: "column", spacing: 1, useFlexGap: !0, children: [
1190
+ /* @__PURE__ */ c("div", { className: J.equipos, children: [
1191
+ /* @__PURE__ */ e(oe, { name: t.awayName, logo: "https://stg-www.contodobet.com/static/img/landing/EventoSemana/Flamengo.png", size: "compact" }),
1192
+ /* @__PURE__ */ e(Ne, { text: "vs.", name: "", size: "small" }),
1193
+ /* @__PURE__ */ e(oe, { name: t.homeName, logo: "https://stg-www.contodobet.com/static/img/landing/EventoSemana/RealMadrid.png", size: "compact" })
1185
1194
  ] }),
1186
- /* @__PURE__ */ e(Rt, { text: r(t.start) })
1195
+ /* @__PURE__ */ e(Mt, { text: n(t.start) })
1187
1196
  ] }),
1188
- /* @__PURE__ */ u(B, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
1189
- /* @__PURE__ */ e(H, { spacing: 1, children: ((n = (c = (o = t == null ? void 0 : t.outcome) == null ? void 0 : o[0]) == null ? void 0 : c.outcomes) != null ? n : []).map((f, x) => /* @__PURE__ */ e(Ie, { text: f.label.toUpperCase() }, x)) }),
1190
- /* @__PURE__ */ e("div", { className: J.jugadas, children: /* @__PURE__ */ e(H, { spacing: 1, children: ((d = (m = (i = t == null ? void 0 : t.outcome) == null ? void 0 : i[0]) == null ? void 0 : m.outcomes) != null ? d : []).map((f, x) => /* @__PURE__ */ e(L, { variant: "primary", fullHeight: !0, onClick: () => {
1191
- ue(f.id);
1192
- }, children: (f.odds / 1e3).toFixed(2) }, x)) }) })
1197
+ /* @__PURE__ */ c(B, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
1198
+ /* @__PURE__ */ e(V, { spacing: 1, children: ((o = (l = (i = t == null ? void 0 : t.outcome) == null ? void 0 : i[0]) == null ? void 0 : l.outcomes) != null ? o : []).map((x, b) => /* @__PURE__ */ e($e, { text: x.label.toUpperCase() }, b)) }),
1199
+ /* @__PURE__ */ e("div", { className: J.jugadas, children: /* @__PURE__ */ e(V, { spacing: 1, children: ((u = (m = (r = t == null ? void 0 : t.outcome) == null ? void 0 : r[0]) == null ? void 0 : m.outcomes) != null ? u : []).map((x, b) => /* @__PURE__ */ e(L, { variant: "primary", fullHeight: !0, onClick: () => {
1200
+ pe(x.id);
1201
+ }, children: (x.odds / 1e3).toFixed(2) }, b)) }) })
1193
1202
  ] })
1194
1203
  ] }) })
1195
1204
  ] });
1196
1205
  }
1197
- function Wt({
1206
+ function At({
1198
1207
  items: t,
1199
- title: r = "Destacados",
1208
+ title: n = "Destacados",
1200
1209
  iconUrl: a,
1201
- onViewMore: o,
1202
- className: c = ""
1210
+ onViewMore: i,
1211
+ className: l = ""
1203
1212
  }) {
1204
- const n = A(null), [i, m] = U({ isStart: !0, isEnd: !1 }), d = () => {
1205
- var l;
1206
- (l = n.current) == null || l.prev();
1207
- }, f = () => {
1208
- var l;
1209
- (l = n.current) == null || l.next(), console.log("items: ", t);
1213
+ const o = G(null), [r, m] = W({ isStart: !0, isEnd: !1 }), u = () => {
1214
+ var p;
1215
+ (p = o.current) == null || p.prev();
1210
1216
  }, x = () => {
1217
+ var p;
1218
+ (p = o.current) == null || p.next(), console.log("items: ", t);
1219
+ }, b = () => {
1211
1220
  window.location.href = "https://www.olimpo.bet/promociones";
1212
- }, I = (l) => {
1213
- if (!l || typeof window == "undefined") return;
1214
- const S = `https://www.olimpo.bet/promociones/${encodeURIComponent(l)}`;
1215
- window.location.href = S;
1221
+ }, O = (p) => {
1222
+ if (!p || typeof window == "undefined") return;
1223
+ const $ = `https://www.olimpo.bet/promociones/${encodeURIComponent(p)}`;
1224
+ window.location.href = $;
1216
1225
  };
1217
- return /* @__PURE__ */ u("section", { className: c || void 0, style: { width: "100%" }, children: [
1218
- /* @__PURE__ */ u(
1226
+ return /* @__PURE__ */ c("section", { className: l || void 0, style: { width: "100%" }, children: [
1227
+ /* @__PURE__ */ c(
1219
1228
  "header",
1220
1229
  {
1221
1230
  style: {
@@ -1227,17 +1236,17 @@ function Wt({
1227
1236
  marginBottom: 16
1228
1237
  },
1229
1238
  children: [
1230
- /* @__PURE__ */ e(K, { title: r, iconUrl: a, size: "md" }),
1231
- /* @__PURE__ */ u("div", { style: { display: "flex", gap: 8 }, children: [
1239
+ /* @__PURE__ */ e(K, { title: n, iconUrl: a, size: "md" }),
1240
+ /* @__PURE__ */ c("div", { style: { display: "flex", gap: 8 }, children: [
1232
1241
  /* @__PURE__ */ e(
1233
1242
  L,
1234
1243
  {
1235
1244
  ariaLabel: "Anterior",
1236
1245
  variant: "secondary",
1237
1246
  iconOnly: !0,
1238
- leftIcon: /* @__PURE__ */ e(le, {}),
1239
- onClick: d,
1240
- disabled: i.isStart
1247
+ leftIcon: /* @__PURE__ */ e(de, {}),
1248
+ onClick: u,
1249
+ disabled: r.isStart
1241
1250
  }
1242
1251
  ),
1243
1252
  /* @__PURE__ */ e(
@@ -1246,20 +1255,20 @@ function Wt({
1246
1255
  ariaLabel: "Siguiente",
1247
1256
  variant: "secondary",
1248
1257
  iconOnly: !0,
1249
- rightIcon: /* @__PURE__ */ e(de, {}),
1250
- onClick: f,
1251
- disabled: i.isEnd
1258
+ rightIcon: /* @__PURE__ */ e(ue, {}),
1259
+ onClick: x,
1260
+ disabled: r.isEnd
1252
1261
  }
1253
1262
  )
1254
1263
  ] }),
1255
- /* @__PURE__ */ e(L, { variant: "secondary", onClick: x, children: "Ver más" })
1264
+ /* @__PURE__ */ e(L, { variant: "secondary", onClick: b, children: "Ver más" })
1256
1265
  ]
1257
1266
  }
1258
1267
  ),
1259
1268
  /* @__PURE__ */ e(
1260
1269
  q,
1261
1270
  {
1262
- ref: n,
1271
+ ref: o,
1263
1272
  items: t,
1264
1273
  perPage: 2,
1265
1274
  gap: "16px",
@@ -1276,7 +1285,7 @@ function Wt({
1276
1285
  768: { perPage: 2, focus: "start" },
1277
1286
  1024: { perPage: 2.5, focus: "start" }
1278
1287
  },
1279
- renderItem: (l) => /* @__PURE__ */ e(
1288
+ renderItem: (p) => /* @__PURE__ */ e(
1280
1289
  "div",
1281
1290
  {
1282
1291
  style: {
@@ -1284,12 +1293,12 @@ function Wt({
1284
1293
  marginTop: 16,
1285
1294
  cursor: "pointer"
1286
1295
  },
1287
- onClick: () => I(l.promotion),
1296
+ onClick: () => O(p.promotion),
1288
1297
  children: /* @__PURE__ */ e(
1289
1298
  "img",
1290
1299
  {
1291
- src: `https://olimpo.bet${l.image !== "" ? l.image : l.summary_image}`,
1292
- alt: l.title,
1300
+ src: `https://olimpo.bet${p.image !== "" ? p.image : p.summary_image}`,
1301
+ alt: p.title,
1293
1302
  style: {
1294
1303
  width: "100%",
1295
1304
  height: window.innerWidth < 768 ? "80px" : "137px",
@@ -1300,39 +1309,45 @@ function Wt({
1300
1309
  }
1301
1310
  )
1302
1311
  },
1303
- `${l.title}-${l.image}`
1312
+ `${p.title}-${p.image}`
1304
1313
  ),
1305
- onMove: ({ isStart: l, isEnd: h }) => m({ isStart: l, isEnd: h })
1314
+ onMove: ({ isStart: p, isEnd: _ }) => m({ isStart: p, isEnd: _ })
1306
1315
  }
1307
1316
  )
1308
1317
  ] });
1309
1318
  }
1310
- const Ut = (t) => {
1311
- var s, l, h, S, g, y;
1319
+ function re(t, {
1320
+ basePath: n = "/casino",
1321
+ src: a,
1322
+ demo: i = !1,
1323
+ host: l = "https://www.olimpo.bet"
1324
+ } = {}) {
1312
1325
  if (typeof window == "undefined") return;
1313
- const r = (l = (s = t.name) != null ? s : t.web_name) != null ? l : "", a = (h = t.provider) != null ? h : "", o = (S = t.machine) != null ? S : "", c = (g = t.external_id) != null ? g : "", n = (y = t.type) != null ? y : "Casino", i = encodeURIComponent(String(a)), m = encodeURIComponent(String(o)), d = encodeURIComponent(String(r)), f = encodeURIComponent(String(c)), x = encodeURIComponent(String(n)), I = `https://www.olimpo.bet/casino?machine=${m}&provider=${i}&name=${d}&external_id=${f}&type=${x}`;
1314
- window.location.href = I;
1315
- };
1316
- function zt({
1326
+ const o = t == null ? void 0 : t.machine;
1327
+ if (!o) return;
1328
+ const r = new URLSearchParams();
1329
+ r.set("machine", String(o)), i && r.set("demo", "1"), window.location.href = `${l}${n}?${r.toString()}`;
1330
+ }
1331
+ function Gt({
1317
1332
  items: t,
1318
- title: r = "Top Juegos",
1333
+ title: n = "Top Juegos",
1319
1334
  iconUrl: a,
1320
- onCardClick: o
1335
+ onCardClick: i
1321
1336
  }) {
1322
- const c = ce(
1323
- () => (t != null ? t : []).map((m, d) => {
1324
- var f;
1337
+ const l = le(
1338
+ () => (t != null ? t : []).map((m, u) => {
1339
+ var x;
1325
1340
  return {
1326
1341
  ...m,
1327
1342
  // si no viene orden, usamos el índice (1-based)
1328
- orden: (f = m.orden) != null ? f : d + 1,
1329
- _originalIndex: d
1343
+ orden: (x = m.orden) != null ? x : u + 1,
1344
+ _originalIndex: u
1330
1345
  };
1331
- }).sort((m, d) => m.orden != null && d.orden != null ? m.orden - d.orden : m._originalIndex - d._originalIndex),
1346
+ }).sort((m, u) => m.orden != null && u.orden != null ? m.orden - u.orden : m._originalIndex - u._originalIndex),
1332
1347
  [t]
1333
- ), n = !t || t.length === 0, i = n ? Array.from({ length: 6 }) : c.slice(0, 6);
1334
- return /* @__PURE__ */ e("section", { style: { width: "100%" }, children: /* @__PURE__ */ u(B, { direction: "column", spacing: 2, useFlexGap: !0, children: [
1335
- /* @__PURE__ */ e(K, { title: r, iconUrl: a, size: "md" }),
1348
+ ), o = !t || t.length === 0, r = o ? Array.from({ length: 6 }) : l.slice(0, 6);
1349
+ return /* @__PURE__ */ e("section", { style: { width: "100%" }, children: /* @__PURE__ */ c(B, { direction: "column", spacing: 2, useFlexGap: !0, children: [
1350
+ /* @__PURE__ */ e(K, { title: n, iconUrl: a, size: "md" }),
1336
1351
  /* @__PURE__ */ e(
1337
1352
  k,
1338
1353
  {
@@ -1346,43 +1361,38 @@ function zt({
1346
1361
  justifyItems: "center",
1347
1362
  width: "100%"
1348
1363
  },
1349
- children: i.map((m, d) => {
1350
- var f, x;
1364
+ children: r.map((m, u) => {
1365
+ var x, b;
1351
1366
  return /* @__PURE__ */ e(
1352
- mt,
1367
+ ht,
1353
1368
  {
1354
- imageUrl: n ? "" : `https://olimpo.bet${(f = m.logo) != null ? f : ""}`,
1355
- orden: n ? d + 1 : m.orden,
1356
- loading: n,
1357
- onClick: n ? void 0 : () => {
1358
- o ? o(m) : Ut(m);
1369
+ imageUrl: o ? "" : `https://olimpo.bet${(x = m.logo) != null ? x : ""}`,
1370
+ orden: o ? u + 1 : m.orden,
1371
+ loading: o,
1372
+ onClick: o ? void 0 : () => {
1373
+ i ? i(m) : re(m, { basePath: "/casino" });
1359
1374
  }
1360
1375
  },
1361
- n ? `sk-${d}` : (x = m.machine) != null ? x : `${d}`
1376
+ o ? `sk-${u}` : (b = m.machine) != null ? b : `${u}`
1362
1377
  );
1363
1378
  })
1364
1379
  }
1365
1380
  )
1366
1381
  ] }) });
1367
1382
  }
1368
- const jt = (t, r) => {
1369
- var a, o;
1370
- return (o = (a = t.orden) != null ? a : t.machine) != null ? o : r;
1371
- }, Mt = (t) => {
1372
- var s, l, h, S, g, y;
1373
- if (typeof window == "undefined") return;
1374
- const r = (l = (s = t.name) != null ? s : t.web_name) != null ? l : "", a = (h = t.provider) != null ? h : "", o = (S = t.machine) != null ? S : "", c = (g = t.external_id) != null ? g : "", n = (y = t.type) != null ? y : "Live", i = encodeURIComponent(String(a)), m = encodeURIComponent(String(o)), d = encodeURIComponent(String(r)), f = encodeURIComponent(String(c)), x = encodeURIComponent(String(n)), I = `https://www.olimpo.bet/casino-en-vivo?${m}?provider=${i}&name=${d}&external_id=${f}&type=${x}`;
1375
- window.location.href = I;
1376
- }, At = ({
1383
+ const Ut = (t, n) => {
1384
+ var a, i;
1385
+ return (i = (a = t.orden) != null ? a : t.machine) != null ? i : n;
1386
+ }, Dt = ({
1377
1387
  items: t,
1378
- title: r = "Casino en vivo",
1388
+ title: n = "Casino en vivo",
1379
1389
  subtitle: a = "Disfruta la emoción en tus juegos favoritos y gana en tiempo real.",
1380
- backgroundMobileUrl: o = "",
1381
- backgroundDesktopUrl: c = "",
1382
- onCardClick: n,
1383
- onViewMore: i,
1390
+ backgroundMobileUrl: i = "",
1391
+ backgroundDesktopUrl: l = "",
1392
+ onCardClick: o,
1393
+ onViewMore: r,
1384
1394
  className: m
1385
- }) => (console.log("items: ", t), /* @__PURE__ */ u(
1395
+ }) => (console.log("items: ", t), /* @__PURE__ */ c(
1386
1396
  k,
1387
1397
  {
1388
1398
  className: m,
@@ -1406,12 +1416,12 @@ const jt = (t, r) => {
1406
1416
  xs: `
1407
1417
  linear-gradient(to bottom, #121212 0%, rgba(18,18,18,0) 10%),
1408
1418
  linear-gradient(to top, #121212 0%, rgba(18,18,18,0) 10%),
1409
- url('${o}')
1419
+ url('${i}')
1410
1420
  `,
1411
1421
  md: `
1412
1422
  linear-gradient(to bottom, #121212 0%, rgba(18,18,18,0) 10%),
1413
1423
  linear-gradient(to top, #121212 0%, rgba(18,18,18,0) 10%),
1414
- url('${c}')
1424
+ url('${l}')
1415
1425
  `
1416
1426
  },
1417
1427
  backgroundSize: "cover",
@@ -1421,7 +1431,7 @@ const jt = (t, r) => {
1421
1431
  }
1422
1432
  }
1423
1433
  ),
1424
- /* @__PURE__ */ u(
1434
+ /* @__PURE__ */ c(
1425
1435
  k,
1426
1436
  {
1427
1437
  sx: {
@@ -1439,7 +1449,7 @@ const jt = (t, r) => {
1439
1449
  textAlign: { xs: "center", md: "left" }
1440
1450
  },
1441
1451
  children: [
1442
- /* @__PURE__ */ u(B, { spacing: 3, sx: { maxWidth: { md: 280 } }, children: [
1452
+ /* @__PURE__ */ c(B, { spacing: 3, sx: { maxWidth: { md: 280 } }, children: [
1443
1453
  /* @__PURE__ */ e(
1444
1454
  D,
1445
1455
  {
@@ -1450,7 +1460,7 @@ const jt = (t, r) => {
1450
1460
  WebkitTextStroke: "0.5px rgba(255, 255, 255, .5)",
1451
1461
  textShadow: "0 0 2px rgba(255, 255, 255, .95),0 0 4px rgba(255, 255, 255, .6),0 1px 0 #898989"
1452
1462
  },
1453
- children: r
1463
+ children: n
1454
1464
  }
1455
1465
  ),
1456
1466
  /* @__PURE__ */ e(
@@ -1470,7 +1480,7 @@ const jt = (t, r) => {
1470
1480
  {
1471
1481
  variant: "primary",
1472
1482
  size: "md",
1473
- onClick: () => i == null ? void 0 : i(),
1483
+ onClick: () => r == null ? void 0 : r(),
1474
1484
  children: "Ver más"
1475
1485
  }
1476
1486
  ) })
@@ -1486,20 +1496,20 @@ const jt = (t, r) => {
1486
1496
  py: { xs: 3, md: 0 },
1487
1497
  alignItems: "center"
1488
1498
  },
1489
- children: (t != null ? t : []).slice(0, 3).map((d, f) => {
1490
- var x;
1499
+ children: (t != null ? t : []).slice(0, 3).map((u, x) => {
1500
+ var b;
1491
1501
  return /* @__PURE__ */ e(
1492
- ht,
1502
+ gt,
1493
1503
  {
1494
- logo: `https://olimpo.bet${(x = d.logo) != null ? x : ""}`,
1495
- provider: d.provider,
1496
- providerName: d.web_name,
1497
- machine: d.machine,
1504
+ logo: `https://olimpo.bet${(b = u.logo) != null ? b : ""}`,
1505
+ provider: u.provider,
1506
+ providerName: u.web_name,
1507
+ machine: u.machine,
1498
1508
  onClick: () => {
1499
- Mt(d);
1509
+ re(u, { basePath: "/casino-en-vivo" });
1500
1510
  }
1501
1511
  },
1502
- jt(d, f)
1512
+ Ut(u, x)
1503
1513
  );
1504
1514
  })
1505
1515
  }
@@ -1509,7 +1519,7 @@ const jt = (t, r) => {
1509
1519
  {
1510
1520
  variant: "primary",
1511
1521
  size: "lg",
1512
- onClick: () => i == null ? void 0 : i(),
1522
+ onClick: () => r == null ? void 0 : r(),
1513
1523
  children: "Ver más"
1514
1524
  }
1515
1525
  ) })
@@ -1518,65 +1528,60 @@ const jt = (t, r) => {
1518
1528
  )
1519
1529
  ]
1520
1530
  }
1521
- )), Re = (t, r) => {
1522
- var a, o;
1523
- return (o = (a = t.orden) != null ? a : t.machine) != null ? o : r;
1524
- }, Gt = (t) => {
1525
- var s, l, h, S, g;
1526
- if (typeof window == "undefined") return;
1527
- const r = (s = t.name) != null ? s : "", a = (l = t.provider) != null ? l : "", o = (h = t.machine) != null ? h : "", c = (S = t.external_id) != null ? S : "", n = (g = t.type) != null ? g : "Casino", i = encodeURIComponent(String(a)), m = encodeURIComponent(String(o)), d = encodeURIComponent(String(r)), f = encodeURIComponent(String(c)), x = encodeURIComponent(String(n)), I = `https://www.olimpo.bet/casino?${m}?provider=${i}&name=${d}&external_id=${f}&type=${x}`;
1528
- window.location.href = I;
1529
- }, Dt = (t, r = !0, a = 4) => {
1530
- const o = t.map((i, m) => {
1531
- var d;
1531
+ )), Te = (t, n) => {
1532
+ var a, i;
1533
+ return (i = (a = t.orden) != null ? a : t.machine) != null ? i : n;
1534
+ }, Vt = (t, n = !0, a = 4) => {
1535
+ const i = t.map((r, m) => {
1536
+ var u;
1532
1537
  return {
1533
- id: Re(i, m),
1534
- imageUrl: (d = i.logo) != null ? d : ""
1538
+ id: Te(r, m),
1539
+ imageUrl: (u = r.logo) != null ? u : ""
1535
1540
  };
1536
1541
  });
1537
- if (!o.length) return [];
1538
- const c = [];
1539
- let n = 0;
1540
- if (r) {
1541
- const i = Math.min(o.length, 5);
1542
- c.push({
1542
+ if (!i.length) return [];
1543
+ const l = [];
1544
+ let o = 0;
1545
+ if (n) {
1546
+ const r = Math.min(i.length, 5);
1547
+ l.push({
1543
1548
  id: "mosaic-0",
1544
1549
  kind: "mosaic",
1545
- items: o.slice(0, i)
1546
- }), n = i;
1550
+ items: i.slice(0, r)
1551
+ }), o = r;
1547
1552
  }
1548
- for (; n < o.length; ) {
1549
- const i = Math.min(n + a, o.length);
1550
- c.push({
1551
- id: `grid-${n}`,
1553
+ for (; o < i.length; ) {
1554
+ const r = Math.min(o + a, i.length);
1555
+ l.push({
1556
+ id: `grid-${o}`,
1552
1557
  kind: "grid",
1553
- items: o.slice(n, i)
1554
- }), n = i;
1558
+ items: i.slice(o, r)
1559
+ }), o = r;
1555
1560
  }
1556
- return c;
1561
+ return l;
1557
1562
  }, Ht = ({
1558
1563
  items: t,
1559
- title: r = "Casino",
1564
+ title: n = "Casino",
1560
1565
  iconUrl: a = "/assets/img/home/Casino/diamante.svg",
1561
- onItemClick: o,
1562
- onViewMore: c,
1563
- mosaicFirst: n = !0,
1564
- gridSize: i = 4
1566
+ onItemClick: i,
1567
+ onViewMore: l,
1568
+ mosaicFirst: o = !0,
1569
+ gridSize: r = 4
1565
1570
  }) => {
1566
- const m = A(null), [d, f] = U({ isStart: !0, isEnd: !1 }), x = () => {
1567
- var g;
1568
- (g = m.current) == null || g.prev();
1569
- }, I = () => {
1570
- var g;
1571
- (g = m.current) == null || g.next();
1571
+ const m = G(null), [u, x] = W({ isStart: !0, isEnd: !1 }), b = () => {
1572
+ var v;
1573
+ (v = m.current) == null || v.prev();
1574
+ }, O = () => {
1575
+ var v;
1576
+ (v = m.current) == null || v.next();
1572
1577
  }, s = () => {
1573
1578
  window.location.href = "https://www.olimpo.bet/casino";
1574
- }, l = (g = !0, y = 4) => {
1575
- const O = (E) => Array.from({ length: E }, (T, R) => ({ id: `sk-${E}-${R}`, imageUrl: "" })), v = [];
1576
- return g && v.push({ id: "mosaic-loading", kind: "mosaic", items: O(5) }), v.push({ id: "grid-loading", kind: "grid", items: O(y) }), v;
1577
- }, h = !t || t.length === 0, S = h ? l(n, i) : Dt(t, n, i);
1578
- return /* @__PURE__ */ e("section", { children: /* @__PURE__ */ u(B, { direction: "column", spacing: 2, useFlexGap: !0, children: [
1579
- /* @__PURE__ */ u(
1579
+ }, p = (v = !0, S = 4) => {
1580
+ const I = (C) => Array.from({ length: C }, (T, P) => ({ id: `sk-${C}-${P}`, imageUrl: "" })), f = [];
1581
+ return v && f.push({ id: "mosaic-loading", kind: "mosaic", items: I(5) }), f.push({ id: "grid-loading", kind: "grid", items: I(S) }), f;
1582
+ }, _ = !t || t.length === 0, $ = _ ? p(o, r) : Vt(t, o, r);
1583
+ return /* @__PURE__ */ e("section", { children: /* @__PURE__ */ c(B, { direction: "column", spacing: 2, useFlexGap: !0, children: [
1584
+ /* @__PURE__ */ c(
1580
1585
  k,
1581
1586
  {
1582
1587
  sx: {
@@ -1590,12 +1595,12 @@ const jt = (t, r) => {
1590
1595
  /* @__PURE__ */ e(
1591
1596
  K,
1592
1597
  {
1593
- title: r,
1598
+ title: n,
1594
1599
  iconUrl: a,
1595
1600
  size: "md"
1596
1601
  }
1597
1602
  ),
1598
- /* @__PURE__ */ u(
1603
+ /* @__PURE__ */ c(
1599
1604
  k,
1600
1605
  {
1601
1606
  sx: {
@@ -1610,9 +1615,9 @@ const jt = (t, r) => {
1610
1615
  ariaLabel: "Anterior",
1611
1616
  variant: "secondary",
1612
1617
  iconOnly: !0,
1613
- leftIcon: /* @__PURE__ */ e(Se, {}),
1614
- onClick: x,
1615
- disabled: d.isStart
1618
+ leftIcon: /* @__PURE__ */ e(Ce, {}),
1619
+ onClick: b,
1620
+ disabled: u.isStart
1616
1621
  }
1617
1622
  ),
1618
1623
  /* @__PURE__ */ e(
@@ -1621,9 +1626,9 @@ const jt = (t, r) => {
1621
1626
  ariaLabel: "Siguiente",
1622
1627
  variant: "secondary",
1623
1628
  iconOnly: !0,
1624
- rightIcon: /* @__PURE__ */ e(Ce, {}),
1625
- onClick: I,
1626
- disabled: d.isEnd
1629
+ rightIcon: /* @__PURE__ */ e(Ee, {}),
1630
+ onClick: O,
1631
+ disabled: u.isEnd
1627
1632
  }
1628
1633
  )
1629
1634
  ]
@@ -1637,7 +1642,7 @@ const jt = (t, r) => {
1637
1642
  q,
1638
1643
  {
1639
1644
  ref: m,
1640
- items: S,
1645
+ items: $,
1641
1646
  perPage: 1,
1642
1647
  gap: "0px",
1643
1648
  options: {
@@ -1649,83 +1654,78 @@ const jt = (t, r) => {
1649
1654
  drag: !0,
1650
1655
  focus: "start"
1651
1656
  },
1652
- renderItem: (g) => /* @__PURE__ */ e("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ e(
1653
- Ne,
1657
+ renderItem: (v) => /* @__PURE__ */ e("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ e(
1658
+ Ie,
1654
1659
  {
1655
- items: g.items,
1656
- layout: g.kind === "mosaic" ? "mosaic" : "grid",
1657
- loading: h,
1658
- onClick: (y) => {
1659
- const O = t.find(
1660
- (v, E) => Re(v, E) === y.id
1660
+ items: v.items,
1661
+ layout: v.kind === "mosaic" ? "mosaic" : "grid",
1662
+ loading: _,
1663
+ onClick: (S) => {
1664
+ const I = t.find(
1665
+ (f, C) => Te(f, C) === S.id
1661
1666
  );
1662
- h || O && Gt(O);
1667
+ _ || I && re(I, { basePath: "/casino" });
1663
1668
  }
1664
1669
  }
1665
1670
  ) }),
1666
- onMove: ({ isStart: g, isEnd: y }) => f({ isStart: g, isEnd: y })
1671
+ onMove: ({ isStart: v, isEnd: S }) => x({ isStart: v, isEnd: S })
1667
1672
  }
1668
1673
  )
1669
1674
  ] }) });
1670
- }, Te = (t, r) => {
1671
- var a, o;
1672
- return (o = (a = t.orden) != null ? a : t.machine) != null ? o : r;
1673
- }, Vt = (t) => {
1674
- var s, l, h, S, g;
1675
- if (typeof window == "undefined") return;
1676
- const r = (s = t.name) != null ? s : "", a = (l = t.provider) != null ? l : "", o = (h = t.machine) != null ? h : "", c = (S = t.external_id) != null ? S : "", n = (g = t.type) != null ? g : "Virtuales", i = encodeURIComponent(String(a)), m = encodeURIComponent(String(o)), d = encodeURIComponent(String(r)), f = encodeURIComponent(String(c)), x = encodeURIComponent(String(n)), I = `https://www.olimpo.bet/juegos-virtuales?${m}?provider=${i}&name=${d}&external_id=${f}&type=${x}`;
1677
- window.location.href = I;
1678
- }, Kt = (t, r = !0, a = 4) => {
1679
- const o = t.map((i, m) => {
1680
- var d;
1675
+ }, Re = (t, n) => {
1676
+ var a, i;
1677
+ return (i = (a = t.orden) != null ? a : t.machine) != null ? i : n;
1678
+ }, Kt = (t, n = !0, a = 4) => {
1679
+ const i = t.map((r, m) => {
1680
+ var u;
1681
1681
  return {
1682
- id: Te(i, m),
1683
- imageUrl: (d = i.logo) != null ? d : ""
1682
+ id: Re(r, m),
1683
+ imageUrl: (u = r.logo) != null ? u : ""
1684
1684
  };
1685
1685
  });
1686
- if (!o.length) return [];
1687
- const c = [];
1688
- let n = 0;
1689
- if (r) {
1690
- const i = Math.min(o.length, 5);
1691
- c.push({
1686
+ if (!i.length) return [];
1687
+ const l = [];
1688
+ let o = 0;
1689
+ if (n) {
1690
+ const r = Math.min(i.length, 5);
1691
+ l.push({
1692
1692
  id: "mosaic-0",
1693
1693
  kind: "mosaic",
1694
- items: o.slice(0, i)
1695
- }), n = i;
1694
+ items: i.slice(0, r)
1695
+ }), o = r;
1696
1696
  }
1697
- for (; n < o.length; ) {
1698
- const i = Math.min(n + a, o.length);
1699
- c.push({
1700
- id: `grid-${n}`,
1697
+ for (; o < i.length; ) {
1698
+ const r = Math.min(o + a, i.length);
1699
+ l.push({
1700
+ id: `grid-${o}`,
1701
1701
  kind: "grid",
1702
- items: o.slice(n, i)
1703
- }), n = i;
1702
+ items: i.slice(o, r)
1703
+ }), o = r;
1704
1704
  }
1705
- return c;
1705
+ return l;
1706
1706
  }, qt = ({
1707
1707
  items: t,
1708
- title: r = "Virtuales",
1708
+ title: n = "Virtuales",
1709
1709
  iconUrl: a = "/assets/img/home/Virtuales/virtuales.svg",
1710
- onItemClick: o,
1711
- onViewMore: c,
1712
- mosaicFirst: n = !0,
1713
- gridSize: i = 4
1710
+ onItemClick: i,
1711
+ onViewMore: l,
1712
+ mosaicFirst: o = !0,
1713
+ gridSize: r = 4
1714
1714
  }) => {
1715
- const m = A(null), [d, f] = U({ isStart: !0, isEnd: !1 }), x = () => {
1716
- var g;
1717
- (g = m.current) == null || g.prev();
1718
- }, I = () => {
1719
- var g;
1720
- (g = m.current) == null || g.next();
1715
+ const m = G(null), [u, x] = W({ isStart: !0, isEnd: !1 }), b = () => {
1716
+ var v;
1717
+ (v = m.current) == null || v.prev();
1718
+ }, O = () => {
1719
+ var v;
1720
+ (v = m.current) == null || v.next();
1721
1721
  }, s = () => {
1722
1722
  window.location.href = "https://www.olimpo.bet/virtuales";
1723
- }, l = (g = !0, y = 4) => {
1724
- const O = (E) => Array.from({ length: E }, (T, R) => ({ id: `sk-${E}-${R}`, imageUrl: "" })), v = [];
1725
- return g && v.push({ id: "mosaic-loading", kind: "mosaic", items: O(5) }), v.push({ id: "grid-loading", kind: "grid", items: O(y) }), v;
1726
- }, h = !t || t.length === 0, S = h ? l(n, i) : Kt(t, n, i);
1727
- return /* @__PURE__ */ e("section", { children: /* @__PURE__ */ u(B, { direction: "column", spacing: 2, useFlexGap: !0, children: [
1728
- /* @__PURE__ */ u(
1723
+ }, p = (v = !0, S = 4) => {
1724
+ const I = (C) => Array.from({ length: C }, (T, P) => ({ id: `sk-${C}-${P}`, imageUrl: "" })), f = [];
1725
+ return v && f.push({ id: "mosaic-loading", kind: "mosaic", items: I(5) }), f.push({ id: "grid-loading", kind: "grid", items: I(S) }), f;
1726
+ }, _ = !t || t.length === 0, $ = _ ? p(o, r) : Kt(t, o, r);
1727
+ return /* @__PURE__ */ e("section", { children: /* @__PURE__ */ c(B, { direction: "column", spacing: 2, useFlexGap: !0, children: [
1728
+ /* @__PURE__ */ c(
1729
1729
  k,
1730
1730
  {
1731
1731
  sx: {
@@ -1739,12 +1739,12 @@ const jt = (t, r) => {
1739
1739
  /* @__PURE__ */ e(
1740
1740
  K,
1741
1741
  {
1742
- title: r,
1742
+ title: n,
1743
1743
  iconUrl: a,
1744
1744
  size: "md"
1745
1745
  }
1746
1746
  ),
1747
- /* @__PURE__ */ u(
1747
+ /* @__PURE__ */ c(
1748
1748
  k,
1749
1749
  {
1750
1750
  sx: {
@@ -1759,9 +1759,9 @@ const jt = (t, r) => {
1759
1759
  ariaLabel: "Anterior",
1760
1760
  variant: "secondary",
1761
1761
  iconOnly: !0,
1762
- leftIcon: /* @__PURE__ */ e(Se, {}),
1763
- onClick: x,
1764
- disabled: d.isStart
1762
+ leftIcon: /* @__PURE__ */ e(Ce, {}),
1763
+ onClick: b,
1764
+ disabled: u.isStart
1765
1765
  }
1766
1766
  ),
1767
1767
  /* @__PURE__ */ e(
@@ -1770,9 +1770,9 @@ const jt = (t, r) => {
1770
1770
  ariaLabel: "Siguiente",
1771
1771
  variant: "secondary",
1772
1772
  iconOnly: !0,
1773
- rightIcon: /* @__PURE__ */ e(Ce, {}),
1774
- onClick: I,
1775
- disabled: d.isEnd
1773
+ rightIcon: /* @__PURE__ */ e(Ee, {}),
1774
+ onClick: O,
1775
+ disabled: u.isEnd
1776
1776
  }
1777
1777
  )
1778
1778
  ]
@@ -1786,7 +1786,7 @@ const jt = (t, r) => {
1786
1786
  q,
1787
1787
  {
1788
1788
  ref: m,
1789
- items: S,
1789
+ items: $,
1790
1790
  perPage: 1,
1791
1791
  gap: "0",
1792
1792
  options: {
@@ -1799,21 +1799,21 @@ const jt = (t, r) => {
1799
1799
  focus: "start",
1800
1800
  perMove: 1
1801
1801
  },
1802
- renderItem: (g) => /* @__PURE__ */ e("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ e(
1803
- Ne,
1802
+ renderItem: (v) => /* @__PURE__ */ e("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ e(
1803
+ Ie,
1804
1804
  {
1805
- items: g.items,
1806
- layout: g.kind === "mosaic" ? "mosaic" : "grid",
1807
- loading: h,
1808
- onClick: (y) => {
1809
- const O = t.find(
1810
- (v, E) => Te(v, E) === y.id
1805
+ items: v.items,
1806
+ layout: v.kind === "mosaic" ? "mosaic" : "grid",
1807
+ loading: _,
1808
+ onClick: (S) => {
1809
+ const I = t.find(
1810
+ (f, C) => Re(f, C) === S.id
1811
1811
  );
1812
- h || O && Vt(O);
1812
+ _ || I && re(I, { basePath: "/casino" });
1813
1813
  }
1814
1814
  }
1815
1815
  ) }),
1816
- onMove: ({ isStart: g, isEnd: y }) => f({ isStart: g, isEnd: y })
1816
+ onMove: ({ isStart: v, isEnd: S }) => x({ isStart: v, isEnd: S })
1817
1817
  }
1818
1818
  )
1819
1819
  ] }) });
@@ -1836,15 +1836,15 @@ const jt = (t, r) => {
1836
1836
  backgroundRepeat: "no-repeat",
1837
1837
  backgroundPosition: "center",
1838
1838
  backgroundSize: "cover"
1839
- }), ge = {
1839
+ }), fe = {
1840
1840
  textAlign: "center",
1841
1841
  lineHeight: 1.1,
1842
1842
  mb: 1.5
1843
- }, fe = {
1843
+ }, xe = {
1844
1844
  display: "inline-block",
1845
1845
  fontWeight: 600,
1846
1846
  fontSize: 24
1847
- }, xe = {
1847
+ }, be = {
1848
1848
  display: "inline-block",
1849
1849
  fontSize: 24,
1850
1850
  lineHeight: 1.1,
@@ -1856,27 +1856,27 @@ const jt = (t, r) => {
1856
1856
  `
1857
1857
  }, Xt = ({
1858
1858
  headline: t,
1859
- headline2: r,
1859
+ headline2: n,
1860
1860
  items: a,
1861
- backgroundImageUrl: o
1861
+ backgroundImageUrl: i
1862
1862
  }) => {
1863
- const c = t, n = r, i = Me("(max-width: 767px)"), m = a.length > 1, d = o != null ? o : "", f = Jt(d), x = A(null), [I, s] = U({ isStart: !0, isEnd: !1 }), [l, h] = U(0), S = (g) => /* @__PURE__ */ u(
1863
+ const l = t, o = n, r = Ge("(max-width: 767px)"), m = a.length > 1, u = i != null ? i : "", x = Jt(u), b = G(null), [O, s] = W({ isStart: !0, isEnd: !1 }), [p, _] = W(0), $ = (v) => /* @__PURE__ */ c(
1864
1864
  k,
1865
1865
  {
1866
1866
  sx: {
1867
1867
  width: "100%",
1868
- maxWidth: g ? 600 : "100%",
1869
- mx: g ? "auto" : 0
1868
+ maxWidth: v ? 600 : "100%",
1869
+ mx: v ? "auto" : 0
1870
1870
  },
1871
1871
  children: [
1872
1872
  /* @__PURE__ */ e(
1873
1873
  q,
1874
1874
  {
1875
- ref: x,
1875
+ ref: b,
1876
1876
  items: a,
1877
1877
  perPage: 1,
1878
- gap: g ? "24px" : "12px",
1879
- breakpoints: g ? void 0 : {
1878
+ gap: v ? "24px" : "12px",
1879
+ breakpoints: v ? void 0 : {
1880
1880
  480: {
1881
1881
  perPage: 1,
1882
1882
  gap: "8px",
@@ -1889,16 +1889,16 @@ const jt = (t, r) => {
1889
1889
  }
1890
1890
  },
1891
1891
  options: { autoWidth: !1 },
1892
- renderItem: (y) => /* @__PURE__ */ e(
1893
- gt,
1892
+ renderItem: (S) => /* @__PURE__ */ e(
1893
+ ft,
1894
1894
  {
1895
- ...y,
1896
- onButtonClick: y.onButtonClick,
1897
- isDesktop: g
1895
+ ...S,
1896
+ onButtonClick: S.onButtonClick,
1897
+ isDesktop: v
1898
1898
  }
1899
1899
  ),
1900
- onMove: ({ index: y, isStart: O, isEnd: v }) => {
1901
- s({ isStart: O, isEnd: v }), h(y);
1900
+ onMove: ({ index: S, isStart: I, isEnd: f }) => {
1901
+ s({ isStart: I, isEnd: f }), _(S);
1902
1902
  }
1903
1903
  }
1904
1904
  ),
@@ -1911,13 +1911,13 @@ const jt = (t, r) => {
1911
1911
  justifyContent: "center"
1912
1912
  },
1913
1913
  children: /* @__PURE__ */ e(
1914
- Ee,
1914
+ ke,
1915
1915
  {
1916
1916
  total: a.length,
1917
- active: l,
1918
- onSelect: (y) => {
1919
- var O;
1920
- h(y), (O = x.current) == null || O.go(y);
1917
+ active: p,
1918
+ onSelect: (S) => {
1919
+ var I;
1920
+ _(S), (I = b.current) == null || I.go(S);
1921
1921
  }
1922
1922
  }
1923
1923
  )
@@ -1926,26 +1926,26 @@ const jt = (t, r) => {
1926
1926
  ]
1927
1927
  }
1928
1928
  );
1929
- return i ? /* @__PURE__ */ u(
1929
+ return r ? /* @__PURE__ */ c(
1930
1930
  k,
1931
1931
  {
1932
1932
  component: "section",
1933
1933
  sx: {
1934
- ...f,
1934
+ ...x,
1935
1935
  textAlign: "center"
1936
1936
  },
1937
1937
  children: [
1938
- (c || n) && /* @__PURE__ */ u(k, { sx: ge, children: [
1939
- c && /* @__PURE__ */ e(D, { component: "span", sx: fe, children: c }),
1940
- n && /* @__PURE__ */ u(Z, { children: [
1938
+ (l || o) && /* @__PURE__ */ c(k, { sx: fe, children: [
1939
+ l && /* @__PURE__ */ e(D, { component: "span", sx: xe, children: l }),
1940
+ o && /* @__PURE__ */ c(Z, { children: [
1941
1941
  /* @__PURE__ */ e("br", {}),
1942
- /* @__PURE__ */ e(D, { component: "span", sx: xe, children: n })
1942
+ /* @__PURE__ */ e(D, { component: "span", sx: be, children: o })
1943
1943
  ] })
1944
1944
  ] }),
1945
- S(!1)
1945
+ $(!1)
1946
1946
  ]
1947
1947
  }
1948
- ) : /* @__PURE__ */ e(k, { component: "section", sx: f, children: /* @__PURE__ */ u(
1948
+ ) : /* @__PURE__ */ e(k, { component: "section", sx: x, children: /* @__PURE__ */ c(
1949
1949
  k,
1950
1950
  {
1951
1951
  sx: {
@@ -1958,7 +1958,7 @@ const jt = (t, r) => {
1958
1958
  columnGap: 6
1959
1959
  },
1960
1960
  children: [
1961
- (c || n) && /* @__PURE__ */ e(
1961
+ (l || o) && /* @__PURE__ */ e(
1962
1962
  k,
1963
1963
  {
1964
1964
  sx: {
@@ -1967,19 +1967,19 @@ const jt = (t, r) => {
1967
1967
  justifyContent: "flex-start",
1968
1968
  minHeight: "100%"
1969
1969
  },
1970
- children: /* @__PURE__ */ u(
1970
+ children: /* @__PURE__ */ c(
1971
1971
  k,
1972
1972
  {
1973
1973
  sx: {
1974
- ...ge,
1974
+ ...fe,
1975
1975
  textAlign: "left",
1976
1976
  mb: 0
1977
1977
  },
1978
1978
  children: [
1979
- c && /* @__PURE__ */ e(D, { component: "span", sx: fe, children: c }),
1980
- n && /* @__PURE__ */ u(Z, { children: [
1979
+ l && /* @__PURE__ */ e(D, { component: "span", sx: xe, children: l }),
1980
+ o && /* @__PURE__ */ c(Z, { children: [
1981
1981
  /* @__PURE__ */ e("br", {}),
1982
- /* @__PURE__ */ e(D, { component: "span", sx: xe, children: n })
1982
+ /* @__PURE__ */ e(D, { component: "span", sx: be, children: o })
1983
1983
  ] })
1984
1984
  ]
1985
1985
  }
@@ -1994,7 +1994,7 @@ const jt = (t, r) => {
1994
1994
  justifyContent: "center",
1995
1995
  alignItems: "center"
1996
1996
  },
1997
- children: S(!0)
1997
+ children: $(!0)
1998
1998
  }
1999
1999
  )
2000
2000
  ]
@@ -2002,46 +2002,46 @@ const jt = (t, r) => {
2002
2002
  ) });
2003
2003
  }, Qt = ({
2004
2004
  className: t = "",
2005
- fullBleed: r = !0,
2005
+ fullBleed: n = !0,
2006
2006
  items: a,
2007
- selectedIndex: o = 0,
2008
- ariaLabel: c
2007
+ selectedIndex: i = 0,
2008
+ ariaLabel: l
2009
2009
  }) => {
2010
- const n = A(null), i = A(null);
2010
+ const o = G(null), r = G(null);
2011
2011
  if (!a) return null;
2012
2012
  const m = () => {
2013
2013
  window.location.href = "https://www.olimpo.bet/conoce-club-olimpo";
2014
- }, d = Array.isArray(a) ? a[o] : a;
2015
- Ue(() => {
2016
- if (!n.current || !i.current || typeof ResizeObserver == "undefined") return;
2017
- const x = n.current, I = i.current, s = () => {
2018
- x.style.setProperty(
2014
+ }, u = Array.isArray(a) ? a[i] : a;
2015
+ ze(() => {
2016
+ if (!o.current || !r.current || typeof ResizeObserver == "undefined") return;
2017
+ const b = o.current, O = r.current, s = () => {
2018
+ b.style.setProperty(
2019
2019
  "--orc-co-bottomH",
2020
- `${I.offsetHeight + 16}px`
2020
+ `${O.offsetHeight + 16}px`
2021
2021
  );
2022
- }, l = new ResizeObserver(s);
2023
- return l.observe(I), s(), () => l.disconnect();
2022
+ }, p = new ResizeObserver(s);
2023
+ return p.observe(O), s(), () => p.disconnect();
2024
2024
  }, []);
2025
- const f = [
2025
+ const x = [
2026
2026
  "orc-co-wrap",
2027
- r ? "orc-co-fullBleed" : "",
2027
+ n ? "orc-co-fullBleed" : "",
2028
2028
  t
2029
2029
  ].filter(Boolean).join(" ");
2030
2030
  return /* @__PURE__ */ e(
2031
2031
  "section",
2032
2032
  {
2033
- ref: n,
2034
- className: f,
2035
- "aria-label": c || d.imgAlt || "Club Olimpo",
2036
- children: /* @__PURE__ */ e("div", { ref: i, children: /* @__PURE__ */ e(
2037
- ft,
2033
+ ref: o,
2034
+ className: x,
2035
+ "aria-label": l || u.imgAlt || "Club Olimpo",
2036
+ children: /* @__PURE__ */ e("div", { ref: r, children: /* @__PURE__ */ e(
2037
+ xt,
2038
2038
  {
2039
- text: d.text,
2039
+ text: u.text,
2040
2040
  onClick: m,
2041
- imgAlt: d.imgAlt,
2042
- imgSrcMobile: d.imgMobile,
2043
- imgSrcDesktopBg: d.imgDesktopBg,
2044
- imgSrcDesktopLogo: d.imgDesktopLogo
2041
+ imgAlt: u.imgAlt,
2042
+ imgSrcMobile: u.imgMobile,
2043
+ imgSrcDesktopBg: u.imgDesktopBg,
2044
+ imgSrcDesktopLogo: u.imgDesktopLogo
2045
2045
  }
2046
2046
  ) })
2047
2047
  }
@@ -2049,131 +2049,131 @@ const jt = (t, r) => {
2049
2049
  }, Yt = "oraculo__OraculoSeccionEventoCombinadas-module__controls___Zsta4", Zt = {
2050
2050
  controls: Yt
2051
2051
  };
2052
- function en({
2052
+ function eo({
2053
2053
  items: t,
2054
- title: r = "Combinadas del Olimpo",
2054
+ title: n = "Combinadas del Olimpo",
2055
2055
  iconUrl: a = "https://stg-www.contodobet.com/static/img/landing/EventoCombinada/rayoIcon.svg",
2056
- onViewMore: o,
2057
- className: c = ""
2056
+ onViewMore: i,
2057
+ className: l = ""
2058
2058
  }) {
2059
- const n = A(null), [i, m] = U({ isStart: !0, isEnd: !1 }), [d, f] = U([]), 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", I = () => {
2060
- var v;
2061
- (v = n.current) == null || v.prev();
2059
+ const o = G(null), [r, m] = W({ isStart: !0, isEnd: !1 }), [u, x] = W([]), 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", O = () => {
2060
+ var f;
2061
+ (f = o.current) == null || f.prev();
2062
2062
  }, s = () => {
2063
- var v;
2064
- (v = n.current) == null || v.next();
2065
- }, l = () => {
2066
- o == null || o();
2063
+ var f;
2064
+ (f = o.current) == null || f.next();
2065
+ }, p = () => {
2066
+ Ot();
2067
2067
  };
2068
- async function h() {
2069
- var v, E, T;
2068
+ async function _() {
2069
+ var f, C, T;
2070
2070
  try {
2071
- const $ = await (await fetch(x)).json(), p = (T = (E = (v = $ == null ? void 0 : $.group) == null ? void 0 : v.groups) == null ? void 0 : E[0]) == null ? void 0 : T.id;
2072
- if (!p) {
2071
+ const E = await (await fetch(b)).json(), d = (T = (C = (f = E == null ? void 0 : E.group) == null ? void 0 : f.groups) == null ? void 0 : C[0]) == null ? void 0 : T.id;
2072
+ if (!d) {
2073
2073
  console.error("Could not extract group ID");
2074
2074
  return;
2075
2075
  }
2076
- const _ = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${p}.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764283566783&prePackCouponTags=CUSTOM`, b = await (await fetch(_)).json();
2077
- f(
2078
- S(b.events, b.betOffers, b.prePackCoupons)
2076
+ const h = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${d}.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764283566783&prePackCouponTags=CUSTOM`, g = await (await fetch(h)).json();
2077
+ x(
2078
+ $(g.events, g.betOffers, g.prePackCoupons)
2079
2079
  );
2080
- } catch (R) {
2081
- console.error("loadDataEventSpecial error:", R);
2080
+ } catch (P) {
2081
+ console.error("loadDataEventSpecial error:", P);
2082
2082
  }
2083
2083
  }
2084
- function S(v, E, T) {
2085
- const R = [];
2086
- for (const $ of T) {
2087
- const p = y([$]), _ = g($), C = E.reduce((b, w) => {
2088
- var P, W;
2089
- b[w.eventId] || (b[w.eventId] = []);
2090
- const N = w.outcomes.filter(
2091
- (z) => p.has(z.id)
2084
+ function $(f, C, T) {
2085
+ const P = [];
2086
+ for (const E of T) {
2087
+ const d = S([E]), h = v(E), w = C.reduce((g, y) => {
2088
+ var R, F;
2089
+ g[y.eventId] || (g[y.eventId] = []);
2090
+ const N = y.outcomes.filter(
2091
+ (z) => d.has(z.id)
2092
2092
  );
2093
2093
  if (N.length > 0) {
2094
2094
  const z = Array.from(
2095
- (W = (P = _ == null ? void 0 : _[0]) == null ? void 0 : P.requiredOutcomeIds) != null ? W : []
2096
- ), M = N.map((Y) => ({
2095
+ (F = (R = h == null ? void 0 : h[0]) == null ? void 0 : R.requiredOutcomeIds) != null ? F : []
2096
+ ), A = N.map((Y) => ({
2097
2097
  ...Y,
2098
2098
  position: z.indexOf(Y.id)
2099
2099
  }));
2100
- b[w.eventId].push({
2101
- ...w,
2102
- outcomes: M
2100
+ g[y.eventId].push({
2101
+ ...y,
2102
+ outcomes: A
2103
2103
  });
2104
2104
  }
2105
- return b;
2105
+ return g;
2106
2106
  }, {});
2107
- v.forEach((b) => {
2108
- if (b.id !== $.prePackCouponRows[0].eventId) return;
2109
- const w = p;
2107
+ f.forEach((g) => {
2108
+ if (g.id !== E.prePackCouponRows[0].eventId) return;
2109
+ const y = d;
2110
2110
  let N = null;
2111
- for (const P of _)
2112
- if ([...P.requiredOutcomeIds].every((z) => w.has(z))) {
2113
- N = P.decimal;
2111
+ for (const R of h)
2112
+ if ([...R.requiredOutcomeIds].every((z) => y.has(z))) {
2113
+ N = R.decimal;
2114
2114
  break;
2115
2115
  }
2116
- R.push({
2117
- ...b,
2116
+ P.push({
2117
+ ...g,
2118
2118
  combinadoTotal: N,
2119
- betoffers: C[b.id] || [],
2120
- couponId: $.id
2119
+ betoffers: w[g.id] || [],
2120
+ couponId: E.id
2121
2121
  // optional for tracking
2122
2122
  });
2123
2123
  });
2124
2124
  }
2125
- return R;
2125
+ return P;
2126
2126
  }
2127
- function g(v) {
2127
+ function v(f) {
2128
2128
  var T;
2129
- const E = [];
2130
- for (const R of v.prePackCouponRows)
2131
- if (R.type === "BET_BUILDER" && ((T = R.group) != null && T.groups)) {
2132
- const $ = /* @__PURE__ */ new Set();
2133
- R.group.groups.forEach((p) => {
2134
- var _;
2135
- (_ = p.outcomes) == null || _.forEach((C) => $.add(C.id));
2136
- }), E.push({
2137
- requiredOutcomeIds: $,
2138
- decimal: R.odds.decimal
2129
+ const C = [];
2130
+ for (const P of f.prePackCouponRows)
2131
+ if (P.type === "BET_BUILDER" && ((T = P.group) != null && T.groups)) {
2132
+ const E = /* @__PURE__ */ new Set();
2133
+ P.group.groups.forEach((d) => {
2134
+ var h;
2135
+ (h = d.outcomes) == null || h.forEach((w) => E.add(w.id));
2136
+ }), C.push({
2137
+ requiredOutcomeIds: E,
2138
+ decimal: P.odds.decimal
2139
2139
  });
2140
2140
  }
2141
- return E;
2141
+ return C;
2142
2142
  }
2143
- function y(v) {
2143
+ function S(f) {
2144
2144
  var T;
2145
- const E = /* @__PURE__ */ new Set();
2146
- for (const R of v)
2147
- for (const $ of R.prePackCouponRows)
2148
- $.type === "BET_BUILDER" && ((T = $.group) != null && T.groups) && $.group.groups.forEach((p) => {
2149
- var _;
2150
- (_ = p.outcomes) == null || _.forEach((C) => E.add(C.id));
2151
- }), $.type === "SIMPLE" && $.outcome && E.add($.outcome.id);
2152
- return E;
2145
+ const C = /* @__PURE__ */ new Set();
2146
+ for (const P of f)
2147
+ for (const E of P.prePackCouponRows)
2148
+ E.type === "BET_BUILDER" && ((T = E.group) != null && T.groups) && E.group.groups.forEach((d) => {
2149
+ var h;
2150
+ (h = d.outcomes) == null || h.forEach((w) => C.add(w.id));
2151
+ }), E.type === "SIMPLE" && E.outcome && C.add(E.outcome.id);
2152
+ return C;
2153
2153
  }
2154
2154
  Q(() => {
2155
- h();
2155
+ _();
2156
2156
  }, []);
2157
- const O = c || void 0;
2158
- return !d || d.length === 0 ? null : /* @__PURE__ */ e("section", { className: O, style: {
2157
+ const I = l || void 0;
2158
+ return !u || u.length === 0 ? null : /* @__PURE__ */ e("section", { className: I, style: {
2159
2159
  paddingLeft: 16,
2160
2160
  paddingRight: 16,
2161
2161
  width: "100%",
2162
2162
  boxSizing: "border-box"
2163
- }, children: /* @__PURE__ */ u(B, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
2164
- /* @__PURE__ */ u(H, { spacing: 1.5, columns: "1fr auto ", justify: "start", children: [
2165
- /* @__PURE__ */ e(K, { title: r, iconUrl: a, size: "md" }),
2166
- /* @__PURE__ */ u("div", { className: Zt.controls, children: [
2167
- /* @__PURE__ */ u(H, { spacing: 1, columns: "auto auto", children: [
2163
+ }, children: /* @__PURE__ */ c(B, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
2164
+ /* @__PURE__ */ c(V, { spacing: 1.5, columns: "1fr auto ", justify: "start", children: [
2165
+ /* @__PURE__ */ e(K, { title: n, iconUrl: a, size: "md" }),
2166
+ /* @__PURE__ */ c("div", { className: Zt.controls, children: [
2167
+ /* @__PURE__ */ c(V, { spacing: 1, columns: "auto auto", children: [
2168
2168
  /* @__PURE__ */ e(
2169
2169
  L,
2170
2170
  {
2171
2171
  ariaLabel: "Anterior",
2172
2172
  variant: "secondary",
2173
2173
  iconOnly: !0,
2174
- leftIcon: /* @__PURE__ */ e(le, {}),
2175
- onClick: I,
2176
- disabled: i.isStart
2174
+ leftIcon: /* @__PURE__ */ e(de, {}),
2175
+ onClick: O,
2176
+ disabled: r.isStart
2177
2177
  }
2178
2178
  ),
2179
2179
  /* @__PURE__ */ e(
@@ -2182,20 +2182,20 @@ function en({
2182
2182
  ariaLabel: "Siguiente",
2183
2183
  variant: "secondary",
2184
2184
  iconOnly: !0,
2185
- rightIcon: /* @__PURE__ */ e(de, {}),
2185
+ rightIcon: /* @__PURE__ */ e(ue, {}),
2186
2186
  onClick: s,
2187
- disabled: i.isEnd
2187
+ disabled: r.isEnd
2188
2188
  }
2189
2189
  )
2190
2190
  ] }),
2191
- /* @__PURE__ */ e(L, { variant: "secondary", onClick: l, children: "Ver más" })
2191
+ /* @__PURE__ */ e(L, { variant: "secondary", onClick: p, children: "Ver más" })
2192
2192
  ] })
2193
2193
  ] }),
2194
2194
  /* @__PURE__ */ e(
2195
2195
  q,
2196
2196
  {
2197
- ref: n,
2198
- items: d.filter((v) => v.combinadoTotal !== null),
2197
+ ref: o,
2198
+ items: u.filter((f) => f.combinadoTotal !== null),
2199
2199
  perPage: void 0,
2200
2200
  gap: "16px",
2201
2201
  options: { autoWidth: !0, trimSpace: "move" },
@@ -2203,102 +2203,102 @@ function en({
2203
2203
  breakpoints: {
2204
2204
  768: { perPage: 1.2, gap: "12px", padding: { left: "0px", right: "0px" } }
2205
2205
  },
2206
- renderItem: (v) => /* @__PURE__ */ e(Et, { event: v }),
2207
- onMove: ({ isStart: v, isEnd: E }) => m({ isStart: v, isEnd: E })
2206
+ renderItem: (f) => /* @__PURE__ */ e(Nt, { event: f }),
2207
+ onMove: ({ isStart: f, isEnd: C }) => m({ isStart: f, isEnd: C })
2208
2208
  }
2209
2209
  )
2210
2210
  ] }) });
2211
2211
  }
2212
- function tn({}) {
2212
+ function to({}) {
2213
2213
  return /* @__PURE__ */ e(
2214
2214
  "div",
2215
2215
  {
2216
- className: Oe.cardWrapper,
2217
- children: /* @__PURE__ */ u(B, { direction: "column", spacing: 1, children: [
2218
- /* @__PURE__ */ u(B, { spacing: 1, direction: "row", children: [
2219
- /* @__PURE__ */ e(F, { variant: "text", width: "60%", height: 24 }),
2220
- /* @__PURE__ */ e(F, { variant: "text", width: "39%", height: 24 })
2216
+ className: Pe.cardWrapper,
2217
+ children: /* @__PURE__ */ c(B, { direction: "column", spacing: 1, children: [
2218
+ /* @__PURE__ */ c(B, { spacing: 1, direction: "row", children: [
2219
+ /* @__PURE__ */ e(M, { variant: "text", width: "60%", height: 24 }),
2220
+ /* @__PURE__ */ e(M, { variant: "text", width: "39%", height: 24 })
2221
2221
  ] }),
2222
- /* @__PURE__ */ u(B, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
2223
- /* @__PURE__ */ e(F, { variant: "circular", width: 32, height: 40 }),
2224
- /* @__PURE__ */ e(F, { variant: "text", width: 40, height: 40 }),
2225
- /* @__PURE__ */ e(F, { variant: "circular", width: 32, height: 40 })
2222
+ /* @__PURE__ */ c(B, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
2223
+ /* @__PURE__ */ e(M, { variant: "circular", width: 32, height: 40 }),
2224
+ /* @__PURE__ */ e(M, { variant: "text", width: 40, height: 40 }),
2225
+ /* @__PURE__ */ e(M, { variant: "circular", width: 32, height: 40 })
2226
2226
  ] }),
2227
- /* @__PURE__ */ u(B, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
2228
- /* @__PURE__ */ e(F, { variant: "text", width: 32, height: 16 }),
2229
- /* @__PURE__ */ e(F, { variant: "text", width: 40, height: 16 }),
2230
- /* @__PURE__ */ e(F, { variant: "text", width: 32, height: 16 })
2227
+ /* @__PURE__ */ c(B, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
2228
+ /* @__PURE__ */ e(M, { variant: "text", width: 32, height: 16 }),
2229
+ /* @__PURE__ */ e(M, { variant: "text", width: 40, height: 16 }),
2230
+ /* @__PURE__ */ e(M, { variant: "text", width: 32, height: 16 })
2231
2231
  ] }),
2232
- /* @__PURE__ */ u(B, { spacing: 2, direction: "row", children: [
2233
- /* @__PURE__ */ e(F, { variant: "rounded", width: 88, height: 16 }),
2234
- /* @__PURE__ */ e(F, { variant: "rounded", width: 88, height: 16 }),
2235
- /* @__PURE__ */ e(F, { variant: "rounded", width: 88, height: 16 })
2232
+ /* @__PURE__ */ c(B, { spacing: 2, direction: "row", children: [
2233
+ /* @__PURE__ */ e(M, { variant: "rounded", width: 88, height: 16 }),
2234
+ /* @__PURE__ */ e(M, { variant: "rounded", width: 88, height: 16 }),
2235
+ /* @__PURE__ */ e(M, { variant: "rounded", width: 88, height: 16 })
2236
2236
  ] }),
2237
- /* @__PURE__ */ u(B, { spacing: 2, direction: "row", children: [
2238
- /* @__PURE__ */ e(F, { variant: "rounded", width: 88, height: 32 }),
2239
- /* @__PURE__ */ e(F, { variant: "rounded", width: 88, height: 32 }),
2240
- /* @__PURE__ */ e(F, { variant: "rounded", width: 88, height: 32 })
2237
+ /* @__PURE__ */ c(B, { spacing: 2, direction: "row", children: [
2238
+ /* @__PURE__ */ e(M, { variant: "rounded", width: 88, height: 32 }),
2239
+ /* @__PURE__ */ e(M, { variant: "rounded", width: 88, height: 32 }),
2240
+ /* @__PURE__ */ e(M, { variant: "rounded", width: 88, height: 32 })
2241
2241
  ] })
2242
2242
  ] })
2243
2243
  }
2244
2244
  );
2245
2245
  }
2246
- const nn = "oraculo__FadeItemWrapper-module__fadeWrapper___kFOH4", on = {
2247
- fadeWrapper: nn
2246
+ const oo = "oraculo__FadeItemWrapper-module__fadeWrapper___kFOH4", no = {
2247
+ fadeWrapper: oo
2248
2248
  };
2249
- function oe({ children: t }) {
2250
- return /* @__PURE__ */ e("div", { className: on.fadeWrapper, children: t });
2249
+ function ne({ children: t }) {
2250
+ return /* @__PURE__ */ e("div", { className: no.fadeWrapper, children: t });
2251
2251
  }
2252
- function rn({
2252
+ function ro({
2253
2253
  items: t,
2254
- title: r = "En vivo",
2254
+ title: n = "En vivo",
2255
2255
  iconUrl: a = "https://stg-www.contodobet.com/static/img/landing/EventoEnVivo/icon.svg",
2256
- onViewMore: o,
2257
- className: c = ""
2256
+ onViewMore: i,
2257
+ className: l = ""
2258
2258
  }) {
2259
- const n = "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", i = A(null), [m, d] = U({ isStart: !0, isEnd: !1 }), [f, x] = U([]), I = () => {
2260
- var y;
2261
- (y = i.current) == null || y.prev();
2259
+ const o = "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", r = G(null), [m, u] = W({ isStart: !0, isEnd: !1 }), [x, b] = W([]), O = () => {
2260
+ var S;
2261
+ (S = r.current) == null || S.prev();
2262
2262
  }, s = () => {
2263
- var y;
2264
- (y = i.current) == null || y.next();
2265
- }, l = () => {
2266
- o == null || o();
2263
+ var S;
2264
+ (S = r.current) == null || S.next();
2265
+ }, p = () => {
2266
+ kt();
2267
2267
  };
2268
- async function h() {
2268
+ async function _() {
2269
2269
  try {
2270
- const O = await (await fetch(n)).json();
2271
- x(O.events);
2272
- } catch (y) {
2273
- console.error(y);
2270
+ const I = await (await fetch(o)).json();
2271
+ b(I.events);
2272
+ } catch (S) {
2273
+ console.error(S);
2274
2274
  }
2275
2275
  }
2276
2276
  Q(() => {
2277
- h();
2278
- const y = setInterval(() => {
2279
- h();
2277
+ _();
2278
+ const S = setInterval(() => {
2279
+ _();
2280
2280
  }, 2e4);
2281
- return () => clearInterval(y);
2281
+ return () => clearInterval(S);
2282
2282
  }, []);
2283
- const S = c || void 0, g = !f || f.length === 0;
2284
- return /* @__PURE__ */ e("section", { className: S, style: {
2283
+ const $ = l || void 0, v = !x || x.length === 0;
2284
+ return /* @__PURE__ */ e("section", { className: $, style: {
2285
2285
  // paddingLeft: 16,
2286
2286
  // paddingRight: 16,
2287
2287
  width: "100%",
2288
2288
  boxSizing: "border-box"
2289
- }, children: /* @__PURE__ */ u(B, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
2290
- /* @__PURE__ */ u(H, { spacing: 1.5, columns: "1fr auto ", justify: "start", children: [
2291
- /* @__PURE__ */ e(K, { title: r, iconUrl: a, size: "md" }),
2292
- /* @__PURE__ */ u("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
2293
- /* @__PURE__ */ u(H, { spacing: 1, columns: "auto auto", children: [
2289
+ }, children: /* @__PURE__ */ c(B, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
2290
+ /* @__PURE__ */ c(V, { spacing: 1.5, columns: "1fr auto ", justify: "start", children: [
2291
+ /* @__PURE__ */ e(K, { title: n, iconUrl: a, size: "md" }),
2292
+ /* @__PURE__ */ c("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
2293
+ /* @__PURE__ */ c(V, { spacing: 1, columns: "auto auto", children: [
2294
2294
  /* @__PURE__ */ e(
2295
2295
  L,
2296
2296
  {
2297
2297
  ariaLabel: "Anterior",
2298
2298
  variant: "secondary",
2299
2299
  iconOnly: !0,
2300
- leftIcon: /* @__PURE__ */ e(le, {}),
2301
- onClick: I,
2300
+ leftIcon: /* @__PURE__ */ e(de, {}),
2301
+ onClick: O,
2302
2302
  disabled: m.isStart
2303
2303
  }
2304
2304
  ),
@@ -2308,21 +2308,21 @@ function rn({
2308
2308
  ariaLabel: "Siguiente",
2309
2309
  variant: "secondary",
2310
2310
  iconOnly: !0,
2311
- rightIcon: /* @__PURE__ */ e(de, {}),
2311
+ rightIcon: /* @__PURE__ */ e(ue, {}),
2312
2312
  onClick: s,
2313
2313
  disabled: m.isEnd
2314
2314
  }
2315
2315
  )
2316
2316
  ] }),
2317
- /* @__PURE__ */ e(L, { variant: "secondary", onClick: l, children: "Ver más" })
2317
+ /* @__PURE__ */ e(L, { variant: "secondary", onClick: p, children: "Ver más" })
2318
2318
  ] })
2319
2319
  ] }),
2320
2320
  /* @__PURE__ */ e(
2321
2321
  q,
2322
2322
  {
2323
- ref: i,
2324
- items: g ? Array(4).fill({}) : f == null ? void 0 : f.filter((y) => y.event.sport === "FOOTBALL").sort(
2325
- (y, O) => new Date(O.event.start).getTime() - new Date(y.event.start).getTime()
2323
+ ref: r,
2324
+ items: v ? Array(4).fill({}) : x == null ? void 0 : x.filter((S) => S.event.sport === "FOOTBALL").sort(
2325
+ (S, I) => new Date(I.event.start).getTime() - new Date(S.event.start).getTime()
2326
2326
  ),
2327
2327
  perPage: void 0,
2328
2328
  gap: "16px",
@@ -2332,159 +2332,158 @@ function rn({
2332
2332
  768: { gap: "8px", focus: "center" },
2333
2333
  1024: { gap: "10px", focus: "center" }
2334
2334
  },
2335
- renderItem: (y) => g ? /* @__PURE__ */ e(oe, { children: /* @__PURE__ */ e(tn, {}) }) : /* @__PURE__ */ e(oe, { children: /* @__PURE__ */ e(kt, { ...y }) }),
2336
- onMove: ({ isStart: y, isEnd: O }) => d({ isStart: y, isEnd: O })
2335
+ renderItem: (S) => v ? /* @__PURE__ */ e(ne, { children: /* @__PURE__ */ e(to, {}) }) : /* @__PURE__ */ e(ne, { children: /* @__PURE__ */ e(Tt, { ...S }) }),
2336
+ onMove: ({ isStart: S, isEnd: I }) => u({ isStart: S, isEnd: I })
2337
2337
  }
2338
2338
  )
2339
2339
  ] }) });
2340
2340
  }
2341
- function an() {
2342
- return /* @__PURE__ */ u("div", { className: J.cardContainer, children: [
2343
- /* @__PURE__ */ e($e, { title: "" }),
2344
- /* @__PURE__ */ e("div", { className: J.cardBackground, children: /* @__PURE__ */ u(B, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
2345
- /* @__PURE__ */ u(B, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
2346
- /* @__PURE__ */ e(F, { variant: "circular", width: 48, height: 48 }),
2347
- /* @__PURE__ */ e(F, { variant: "circular", width: 48, height: 48 })
2341
+ function ao() {
2342
+ return /* @__PURE__ */ c("div", { className: J.cardContainer, children: [
2343
+ /* @__PURE__ */ e(Oe, { title: "" }),
2344
+ /* @__PURE__ */ e("div", { className: J.cardBackground, children: /* @__PURE__ */ c(B, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
2345
+ /* @__PURE__ */ c(B, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
2346
+ /* @__PURE__ */ e(M, { variant: "circular", width: 48, height: 48 }),
2347
+ /* @__PURE__ */ e(M, { variant: "circular", width: 48, height: 48 })
2348
2348
  ] }),
2349
- /* @__PURE__ */ u(B, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
2350
- /* @__PURE__ */ u(B, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
2351
- /* @__PURE__ */ e(F, { variant: "text", width: 80, height: 12 }),
2352
- /* @__PURE__ */ e(F, { variant: "text", width: 80, height: 12 })
2349
+ /* @__PURE__ */ c(B, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
2350
+ /* @__PURE__ */ c(B, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
2351
+ /* @__PURE__ */ e(M, { variant: "text", width: 80, height: 12 }),
2352
+ /* @__PURE__ */ e(M, { variant: "text", width: 80, height: 12 })
2353
2353
  ] }),
2354
- /* @__PURE__ */ e(B, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ e(F, { variant: "text", width: 160, height: 12 }) }),
2355
- /* @__PURE__ */ u(B, { direction: "row", spacing: 1, children: [
2356
- /* @__PURE__ */ e(F, { variant: "text", width: 80, height: 16 }),
2357
- /* @__PURE__ */ e(F, { variant: "text", width: 80, height: 16 }),
2358
- /* @__PURE__ */ e(F, { variant: "text", width: 80, height: 16 })
2354
+ /* @__PURE__ */ e(B, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ e(M, { variant: "text", width: 160, height: 12 }) }),
2355
+ /* @__PURE__ */ c(B, { direction: "row", spacing: 1, children: [
2356
+ /* @__PURE__ */ e(M, { variant: "text", width: 80, height: 16 }),
2357
+ /* @__PURE__ */ e(M, { variant: "text", width: 80, height: 16 }),
2358
+ /* @__PURE__ */ e(M, { variant: "text", width: 80, height: 16 })
2359
2359
  ] }),
2360
- /* @__PURE__ */ e("div", { className: J.jugadas, children: /* @__PURE__ */ u(B, { direction: "row", spacing: 1, children: [
2361
- /* @__PURE__ */ e(F, { variant: "rounded", width: 80, height: 32 }),
2362
- /* @__PURE__ */ e(F, { variant: "rounded", width: 80, height: 32 }),
2363
- /* @__PURE__ */ e(F, { variant: "rounded", width: 80, height: 32 })
2360
+ /* @__PURE__ */ e("div", { className: J.jugadas, children: /* @__PURE__ */ c(B, { direction: "row", spacing: 1, children: [
2361
+ /* @__PURE__ */ e(M, { variant: "rounded", width: 80, height: 32 }),
2362
+ /* @__PURE__ */ e(M, { variant: "rounded", width: 80, height: 32 }),
2363
+ /* @__PURE__ */ e(M, { variant: "rounded", width: 80, height: 32 })
2364
2364
  ] }) })
2365
2365
  ] })
2366
2366
  ] }) })
2367
2367
  ] });
2368
2368
  }
2369
- const sn = "oraculo__OraculoSeccionEventoSemana-module__wrapper___eqVq-", cn = "oraculo__OraculoSeccionEventoSemana-module__container___5yFQs", ln = "oraculo__OraculoSeccionEventoSemana-module__buttonWrapper___-6IDT", se = {
2370
- wrapper: sn,
2371
- container: cn,
2372
- buttonWrapper: ln
2369
+ const io = "oraculo__OraculoSeccionEventoSemana-module__wrapper___eqVq-", so = "oraculo__OraculoSeccionEventoSemana-module__container___5yFQs", co = "oraculo__OraculoSeccionEventoSemana-module__buttonWrapper___-6IDT", ce = {
2370
+ wrapper: io,
2371
+ container: so,
2372
+ buttonWrapper: co
2373
2373
  };
2374
- function dn({
2374
+ function lo({
2375
2375
  items: t,
2376
- title: r = "En vivo",
2376
+ title: n = "En vivo",
2377
2377
  iconUrl: a,
2378
- onViewMore: o,
2379
- className: c = ""
2378
+ onViewMore: i,
2379
+ className: l = ""
2380
2380
  }) {
2381
- const n = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE", i = A(null), [m, d] = U({ isStart: !0, isEnd: !1 }), [f, x] = U([]);
2382
- function I(v) {
2383
- return [...v].sort(
2384
- (E, T) => new Date(E.start).getTime() - new Date(T.start).getTime()
2381
+ const o = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE", r = G(null), [m, u] = W({ isStart: !0, isEnd: !1 }), [x, b] = W([]);
2382
+ function O(f) {
2383
+ return [...f].sort(
2384
+ (C, T) => new Date(C.start).getTime() - new Date(T.start).getTime()
2385
2385
  );
2386
2386
  }
2387
- function s(v) {
2388
- const E = /* @__PURE__ */ new Date(), T = new Date(E.getTime() + 10080 * 60 * 1e3);
2389
- return v.filter((R) => {
2390
- if (!R.start) return !1;
2391
- const $ = new Date(R.start);
2392
- return $ >= E && $ <= T;
2387
+ function s(f) {
2388
+ const C = /* @__PURE__ */ new Date(), T = new Date(C.getTime() + 10080 * 60 * 1e3);
2389
+ return f.filter((P) => {
2390
+ if (!P.start) return !1;
2391
+ const E = new Date(P.start);
2392
+ return E >= C && E <= T;
2393
2393
  });
2394
2394
  }
2395
- const l = () => {
2396
- o == null || o();
2395
+ const p = () => {
2396
+ $t();
2397
2397
  };
2398
- async function h() {
2398
+ async function _() {
2399
2399
  try {
2400
- const T = (await (await fetch(n)).json()).group.groups.find(
2401
- (C) => C.englishName === "Football"
2400
+ const T = (await (await fetch(o)).json()).group.groups.find(
2401
+ (w) => w.englishName === "Football"
2402
2402
  );
2403
2403
  if (!T || !Array.isArray(T.groups)) {
2404
2404
  console.error("Football groups not found");
2405
2405
  return;
2406
2406
  }
2407
- const $ = T.groups.slice(0, 5), p = (C) => {
2408
- const b = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football";
2409
- if (C.groups && C.groups.length > 0) {
2410
- const w = C.groups[0];
2407
+ const E = T.groups.slice(0, 5), d = (w) => {
2408
+ const g = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football";
2409
+ if (w.groups && w.groups.length > 0) {
2410
+ const y = w.groups[0];
2411
2411
  return [
2412
- `${b}/${C.termKey}/${w.termKey}/all/matches.json?channel_id=1&channel_id=1&client_id=200&client_id=200&competitionId=undefined&lang=es_PE&lang=es_PE&market=PE&market=PE&useCombined=true&useCombinedLive=true`
2412
+ `${g}/${w.termKey}/${y.termKey}/all/matches.json?channel_id=1&channel_id=1&client_id=200&client_id=200&competitionId=undefined&lang=es_PE&lang=es_PE&market=PE&market=PE&useCombined=true&useCombinedLive=true`
2413
2413
  ];
2414
2414
  }
2415
2415
  return [
2416
- `${b}/${C.termKey}/all/all/matches.json?channel_id=1&channel_id=1&client_id=200&client_id=200&competitionId=undefined&lang=es_PE&lang=es_PE&market=PE&market=PE&useCombined=true&useCombinedLive=true`
2416
+ `${g}/${w.termKey}/all/all/matches.json?channel_id=1&channel_id=1&client_id=200&client_id=200&competitionId=undefined&lang=es_PE&lang=es_PE&market=PE&market=PE&useCombined=true&useCombinedLive=true`
2417
2417
  ];
2418
- }, _ = $.flatMap(p);
2419
- S(_);
2420
- } catch (v) {
2421
- console.error(v);
2418
+ }, h = E.flatMap(d);
2419
+ $(h);
2420
+ } catch (f) {
2421
+ console.error(f);
2422
2422
  }
2423
2423
  }
2424
- async function S(v) {
2424
+ async function $(f) {
2425
2425
  try {
2426
- const E = await Promise.all(
2427
- v.map((p) => fetch(p).then((_) => _.json()))
2426
+ const C = await Promise.all(
2427
+ f.map((d) => fetch(d).then((h) => h.json()))
2428
2428
  );
2429
- let T = [], R = [];
2430
- E.forEach((p) => {
2431
- p.events && (T.push(...p.events.map((_) => _.event)), R.push(...p.events.flatMap((_) => _.betOffers || [])));
2429
+ let T = [], P = [];
2430
+ C.forEach((d) => {
2431
+ d.events && (T.push(...d.events.map((h) => h.event)), P.push(...d.events.flatMap((h) => h.betOffers || [])));
2432
2432
  });
2433
- const $ = g(T, R);
2434
- x(I(s($)));
2435
- } catch (E) {
2436
- console.error("Error loading events:", E);
2433
+ const E = v(T, P);
2434
+ b(O(s(E)));
2435
+ } catch (C) {
2436
+ console.error("Error loading events:", C);
2437
2437
  }
2438
2438
  }
2439
- function g(v, E) {
2440
- const R = E.filter(($) => {
2441
- var p;
2442
- return ((p = $.betOfferType) == null ? void 0 : p.id) === 2;
2443
- }).reduce(($, p) => ($[p.eventId] || ($[p.eventId] = []), $[p.eventId].push(p), $), {});
2444
- return v.filter(($) => R[$.id]).map(($) => ({
2445
- ...$,
2446
- outcome: R[$.id]
2439
+ function v(f, C) {
2440
+ const P = C.filter((E) => {
2441
+ var d;
2442
+ return ((d = E.betOfferType) == null ? void 0 : d.id) === 2;
2443
+ }).reduce((E, d) => (E[d.eventId] || (E[d.eventId] = []), E[d.eventId].push(d), E), {});
2444
+ return f.filter((E) => P[E.id]).map((E) => ({
2445
+ ...E,
2446
+ outcome: P[E.id]
2447
2447
  }));
2448
2448
  }
2449
2449
  Q(() => {
2450
- t && h();
2450
+ t && _();
2451
2451
  }, [t]);
2452
- const y = c || void 0, O = !f || f.length === 0;
2453
- return /* @__PURE__ */ e("section", { className: y, style: {
2452
+ const S = l || void 0, I = !x || x.length === 0;
2453
+ return /* @__PURE__ */ e("section", { className: S, style: {
2454
2454
  paddingLeft: 16,
2455
- paddingRight: 16,
2456
2455
  width: "100%",
2457
2456
  boxSizing: "border-box"
2458
- }, children: /* @__PURE__ */ u("div", { className: se.wrapper, children: [
2459
- /* @__PURE__ */ e("div", { className: se.container, children: /* @__PURE__ */ u(B, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
2457
+ }, children: /* @__PURE__ */ c("div", { className: ce.wrapper, children: [
2458
+ /* @__PURE__ */ e("div", { className: ce.container, children: /* @__PURE__ */ c(B, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
2460
2459
  /* @__PURE__ */ e(K, { title: "Eventos de la semana" }),
2461
- /* @__PURE__ */ e("div", { className: se.buttonWrapper, children: /* @__PURE__ */ e(L, { variant: "secondary", size: "lg", fullWidth: !0, onClick: () => {
2462
- l();
2460
+ /* @__PURE__ */ e("div", { className: ce.buttonWrapper, children: /* @__PURE__ */ e(L, { variant: "secondary", size: "lg", fullWidth: !0, onClick: () => {
2461
+ p();
2463
2462
  }, children: "Ver más" }) })
2464
2463
  ] }) }),
2465
2464
  /* @__PURE__ */ e("div", { style: { minWidth: "180px" }, children: /* @__PURE__ */ e(
2466
2465
  q,
2467
2466
  {
2468
- ref: i,
2469
- items: O ? Array(4).fill({}) : f,
2467
+ ref: r,
2468
+ items: I ? Array(6).fill({}) : x,
2470
2469
  perPage: 3.5,
2471
2470
  gap: "16px",
2472
2471
  options: { autoWidth: !0, trimSpace: !0 },
2473
2472
  breakpoints: {
2474
2473
  1024: { perPage: 1.4, gap: "8px", focus: "center", padding: { left: "8px", right: "8px" } }
2475
2474
  },
2476
- renderItem: (v) => O ? /* @__PURE__ */ e(oe, { children: /* @__PURE__ */ e(an, {}) }) : /* @__PURE__ */ e(oe, { children: /* @__PURE__ */ e(Lt, { event: v }) }),
2477
- onMove: ({ isStart: v, isEnd: E }) => d({ isStart: v, isEnd: E })
2475
+ renderItem: (f) => I ? /* @__PURE__ */ e(ne, { children: /* @__PURE__ */ e(ao, {}) }) : /* @__PURE__ */ e(ne, { children: /* @__PURE__ */ e(jt, { event: f }) }),
2476
+ onMove: ({ isStart: f, isEnd: C }) => u({ isStart: f, isEnd: C })
2478
2477
  }
2479
2478
  ) })
2480
2479
  ] }) });
2481
2480
  }
2482
- function un({
2481
+ function uo({
2483
2482
  backgrounds: t,
2484
- items: r
2483
+ items: n
2485
2484
  }) {
2486
- const [a, o] = U(0), c = (t == null ? void 0 : t.length) || 1;
2487
- return /* @__PURE__ */ u(
2485
+ const [a, i] = W(0), l = (t == null ? void 0 : t.length) || 1;
2486
+ return /* @__PURE__ */ c(
2488
2487
  j,
2489
2488
  {
2490
2489
  component: "section",
@@ -2498,7 +2497,7 @@ function un({
2498
2497
  // pb: { xs: 7, sm: 8 },
2499
2498
  },
2500
2499
  children: [
2501
- /* @__PURE__ */ u(
2500
+ /* @__PURE__ */ c(
2502
2501
  j,
2503
2502
  {
2504
2503
  sx: {
@@ -2523,10 +2522,10 @@ function un({
2523
2522
  // left: 0,
2524
2523
  // right: 0,
2525
2524
  },
2526
- onMove: ({ index: n }) => o(n),
2527
- renderItem: (n) => {
2528
- var i;
2529
- return /* @__PURE__ */ u(
2525
+ onMove: ({ index: o }) => i(o),
2526
+ renderItem: (o) => {
2527
+ var r;
2528
+ return /* @__PURE__ */ c(
2530
2529
  j,
2531
2530
  {
2532
2531
  sx: {
@@ -2534,7 +2533,7 @@ function un({
2534
2533
  height: { xs: 300, sm: 360, md: 420 }
2535
2534
  },
2536
2535
  children: [
2537
- /* @__PURE__ */ u(
2536
+ /* @__PURE__ */ c(
2538
2537
  j,
2539
2538
  {
2540
2539
  component: "picture",
@@ -2543,14 +2542,14 @@ function un({
2543
2542
  /* @__PURE__ */ e(
2544
2543
  "source",
2545
2544
  {
2546
- srcSet: n.desktopSrc,
2545
+ srcSet: o.desktopSrc,
2547
2546
  media: "(min-width:800px)"
2548
2547
  }
2549
2548
  ),
2550
2549
  /* @__PURE__ */ e(
2551
2550
  "source",
2552
2551
  {
2553
- srcSet: n.mobileSrc,
2552
+ srcSet: o.mobileSrc,
2554
2553
  media: "(max-width:799px)"
2555
2554
  }
2556
2555
  ),
@@ -2558,7 +2557,7 @@ function un({
2558
2557
  j,
2559
2558
  {
2560
2559
  component: "img",
2561
- src: (i = n.fallbackSrc) != null ? i : n.desktopSrc,
2560
+ src: (r = o.fallbackSrc) != null ? r : o.desktopSrc,
2562
2561
  alt: "",
2563
2562
  "aria-hidden": !0,
2564
2563
  loading: "lazy",
@@ -2610,7 +2609,7 @@ function un({
2610
2609
  justifyContent: "center",
2611
2610
  zIndex: 2
2612
2611
  },
2613
- children: /* @__PURE__ */ e(Ee, { total: c, active: a })
2612
+ children: /* @__PURE__ */ e(ke, { total: l, active: a })
2614
2613
  }
2615
2614
  )
2616
2615
  ]
@@ -2638,7 +2637,7 @@ function un({
2638
2637
  boxShadow: "0 10px 24px rgba(0,0,0,.35)",
2639
2638
  zIndex: 3
2640
2639
  },
2641
- children: r == null ? void 0 : r.map((n) => /* @__PURE__ */ u(
2640
+ children: n == null ? void 0 : n.map((o) => /* @__PURE__ */ c(
2642
2641
  j,
2643
2642
  {
2644
2643
  sx: {
@@ -2651,20 +2650,20 @@ function un({
2651
2650
  // espacio icono-texto
2652
2651
  color: "#FFFFFF",
2653
2652
  minWidth: 0,
2654
- cursor: n.onclick ? "pointer" : "default",
2653
+ cursor: o.onclick ? "pointer" : "default",
2655
2654
  whiteSpace: "nowrap"
2656
2655
  },
2657
2656
  onClick: () => {
2658
- var i;
2659
- return (i = n.onclick) == null ? void 0 : i.call(n);
2657
+ var r;
2658
+ return (r = o.onclick) == null ? void 0 : r.call(o);
2660
2659
  },
2661
2660
  children: [
2662
- n.icon && /* @__PURE__ */ e(
2661
+ o.icon && /* @__PURE__ */ e(
2663
2662
  j,
2664
2663
  {
2665
2664
  component: "img",
2666
- src: n.icon,
2667
- alt: n.label || `icon-${n.id}`,
2665
+ src: o.icon,
2666
+ alt: o.label || `icon-${o.id}`,
2668
2667
  sx: {
2669
2668
  width: { xs: 20, sm: 22, md: 24 },
2670
2669
  height: { xs: 20, sm: 22, md: 24 },
@@ -2673,7 +2672,7 @@ function un({
2673
2672
  }
2674
2673
  ),
2675
2674
  /* @__PURE__ */ e(
2676
- ye,
2675
+ we,
2677
2676
  {
2678
2677
  sx: {
2679
2678
  fontSize: { xs: 10, sm: 11, md: 12 },
@@ -2682,12 +2681,12 @@ function un({
2682
2681
  textAlign: "center"
2683
2682
  // en mobile queda centrado bajo el icono
2684
2683
  },
2685
- children: n.label
2684
+ children: o.label
2686
2685
  }
2687
2686
  )
2688
2687
  ]
2689
2688
  },
2690
- n.id
2689
+ o.id
2691
2690
  ))
2692
2691
  }
2693
2692
  )
@@ -2695,7 +2694,7 @@ function un({
2695
2694
  }
2696
2695
  );
2697
2696
  }
2698
- const pn = [
2697
+ const po = [
2699
2698
  [
2700
2699
  { src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/IBK.svg", alt: "Interbank" },
2701
2700
  { src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/Yape.svg", alt: "Yape" }
@@ -2706,14 +2705,14 @@ const pn = [
2706
2705
  { src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/niubiz.svg", alt: "Niubiz" }
2707
2706
  ]
2708
2707
  ];
2709
- function mn({
2708
+ function mo({
2710
2709
  title: t = "Medios de pago",
2711
- rows: r = pn
2710
+ rows: n = po
2712
2711
  }) {
2713
- const a = r.flat();
2714
- return /* @__PURE__ */ u(j, { component: "section", "aria-labelledby": "mp-title", sx: { color: "#fff" }, children: [
2712
+ const a = n.flat();
2713
+ return /* @__PURE__ */ c(j, { component: "section", "aria-labelledby": "mp-title", sx: { color: "#fff" }, children: [
2715
2714
  /* @__PURE__ */ e(
2716
- ye,
2715
+ we,
2717
2716
  {
2718
2717
  id: "mp-title",
2719
2718
  variant: "h6",
@@ -2740,17 +2739,17 @@ function mn({
2740
2739
  }
2741
2740
  }
2742
2741
  ),
2743
- /* @__PURE__ */ e(j, { sx: { display: { xs: "block", md: "none" } }, children: r.map((o, c) => /* @__PURE__ */ e(
2744
- we,
2742
+ /* @__PURE__ */ e(j, { sx: { display: { xs: "block", md: "none" } }, children: n.map((i, l) => /* @__PURE__ */ e(
2743
+ Se,
2745
2744
  {
2746
2745
  direction: "row",
2747
2746
  justifyContent: "center",
2748
2747
  alignItems: "center",
2749
2748
  gap: 2.5,
2750
2749
  flexWrap: "wrap",
2751
- children: o.map((n) => /* @__PURE__ */ e(he, { ...n }, `${n.src}-${n.alt}`))
2750
+ children: i.map((o) => /* @__PURE__ */ e(ge, { ...o }, `${o.src}-${o.alt}`))
2752
2751
  },
2753
- c
2752
+ l
2754
2753
  )) }),
2755
2754
  /* @__PURE__ */ e(
2756
2755
  j,
@@ -2764,246 +2763,246 @@ function mn({
2764
2763
  gridTemplateColumns: { md: "repeat(auto-fit, 160px)" },
2765
2764
  justifyContent: { md: "center" }
2766
2765
  },
2767
- children: a.map((o) => /* @__PURE__ */ e(he, { ...o }, `${o.src}-${o.alt}`))
2766
+ children: a.map((i) => /* @__PURE__ */ e(ge, { ...i }, `${i.src}-${i.alt}`))
2768
2767
  }
2769
2768
  )
2770
2769
  ] });
2771
2770
  }
2772
- const hn = {
2773
- OraculoSeccionDestacados: Wt,
2774
- OraculoSeccionTopJuegos: zt,
2775
- OraculoSeccionCasinoEnVivo: At,
2771
+ const ho = {
2772
+ OraculoSeccionDestacados: At,
2773
+ OraculoSeccionTopJuegos: Gt,
2774
+ OraculoSeccionCasinoEnVivo: Dt,
2776
2775
  OraculoSeccionCasino: Ht,
2777
2776
  OraculoSeccionVirtuales: qt,
2778
2777
  OraculoSeccionClubOlimpo: Qt,
2779
2778
  OraculoSeccionBonoBienvenida: Xt,
2780
- OraculoSeccionBanners: un,
2781
- OraculoSeccionMediosPago: mn,
2782
- OraculoSeccionEventoEnVivo: rn,
2783
- OraculoSeccionEventoSemana: dn,
2784
- OraculoSeccionEventoCombinadas: en
2785
- }, gn = (t) => typeof t == "function" || t && typeof t == "object" && "$$typeof" in t, fn = (t) => /^OraculoSeccion[A-Z]/.test(t), xn = Object.fromEntries(
2786
- Object.entries(hn).filter(
2787
- ([t, r]) => fn(t) && gn(r)
2779
+ OraculoSeccionBanners: uo,
2780
+ OraculoSeccionMediosPago: mo,
2781
+ OraculoSeccionEventoEnVivo: ro,
2782
+ OraculoSeccionEventoSemana: lo,
2783
+ OraculoSeccionEventoCombinadas: eo
2784
+ }, go = (t) => typeof t == "function" || t && typeof t == "object" && "$$typeof" in t, fo = (t) => /^OraculoSeccion[A-Z]/.test(t), xo = Object.fromEntries(
2785
+ Object.entries(ho).filter(
2786
+ ([t, n]) => fo(t) && go(n)
2788
2787
  )
2789
2788
  );
2790
2789
  class _e extends Error {
2791
- constructor(r, a, o) {
2792
- super(`HTTP ${r} ${o}`), this.status = r, this.url = a, this.statusText = o, this.name = "HttpError";
2790
+ constructor(n, a, i) {
2791
+ super(`HTTP ${n} ${i}`), this.status = n, this.url = a, this.statusText = i, this.name = "HttpError";
2793
2792
  }
2794
2793
  }
2795
- const be = [
2794
+ const ve = [
2796
2795
  "OraculoSeccionEventoEnVivo",
2797
2796
  "OraculoSeccionEventoSemana",
2798
2797
  "OraculoSeccionEventoCombinadas"
2799
- ], Tn = ({
2798
+ ], To = ({
2800
2799
  sectionsOverride: t,
2801
- docId: r = "home",
2800
+ docId: n = "home",
2802
2801
  db: a
2803
2802
  }) => {
2804
- const [o, c] = U(
2803
+ const [i, l] = W(
2805
2804
  []
2806
- ), [n, i] = U(!1), [m, d] = U({}), [f, x] = U({}), [I, s] = U({}), l = Pe("(min-width:1024px)");
2805
+ ), [o, r] = W(!1), [m, u] = W({}), [x, b] = W({}), [O, s] = W({}), p = Be("(min-width:1024px)");
2807
2806
  Q(() => {
2808
2807
  if (t || !a) return;
2809
- i(!0);
2810
- const p = Ae(
2811
- Ge(a, "landings", r),
2812
- (_) => {
2813
- var C;
2808
+ r(!0);
2809
+ const d = Ue(
2810
+ De(a, "landings", n),
2811
+ (h) => {
2812
+ var w;
2814
2813
  try {
2815
- let b = _.exists() ? ((C = _.data()) == null ? void 0 : C.sections) || [] : [];
2816
- b = b.slice().sort((w, N) => {
2817
- var P, W;
2818
- return ((P = w.order) != null ? P : 0) - ((W = N.order) != null ? W : 0);
2819
- }).map((w, N) => ({ ...w, order: N + 1 })), c(b), console.log("fetched: ", b);
2820
- } catch (b) {
2821
- console.error("Error procesando landings/" + r, b);
2814
+ let g = h.exists() ? ((w = h.data()) == null ? void 0 : w.sections) || [] : [];
2815
+ g = g.slice().sort((y, N) => {
2816
+ var R, F;
2817
+ return ((R = y.order) != null ? R : 0) - ((F = N.order) != null ? F : 0);
2818
+ }).map((y, N) => ({ ...y, order: N + 1 })), l(g), console.log("fetched: ", g);
2819
+ } catch (g) {
2820
+ console.error("Error procesando landings/" + n, g);
2822
2821
  } finally {
2823
- i(!1);
2822
+ r(!1);
2824
2823
  }
2825
2824
  },
2826
- (_) => {
2827
- console.error("Error escuchando landings/" + r, _), i(!1);
2825
+ (h) => {
2826
+ console.error("Error escuchando landings/" + n, h), r(!1);
2828
2827
  }
2829
2828
  );
2830
- return () => p();
2831
- }, [t, r, a]), Q(() => {
2832
- (t ? t.slice() : o.slice()).map((C) => C.componentKey).filter((C) => !!C).length;
2833
- }, [t, o]);
2834
- const h = async (p) => {
2835
- if (be.includes(p.componentKey))
2829
+ return () => d();
2830
+ }, [t, n, a]), Q(() => {
2831
+ (t ? t.slice() : i.slice()).map((w) => w.componentKey).filter((w) => !!w).length;
2832
+ }, [t, i]);
2833
+ const _ = async (d) => {
2834
+ if (ve.includes(d.componentKey))
2836
2835
  return {
2837
2836
  // whatever empty structure your UI expects
2838
2837
  items: [],
2839
2838
  events: [],
2840
2839
  data: {}
2841
2840
  };
2842
- const _ = (p.apiUrl || "").trim();
2843
- if (!_) return;
2844
- const C = p.apiMethod || "GET", b = p.apiParams || [];
2845
- let w = _, N, P;
2846
- if (C === "GET") {
2841
+ const h = (d.apiUrl || "").trim();
2842
+ if (!h) return;
2843
+ const w = d.apiMethod || "GET", g = d.apiParams || [];
2844
+ let y = h, N, R;
2845
+ if (w === "GET") {
2847
2846
  const z = new URL(
2848
- _,
2847
+ h,
2849
2848
  typeof window == "undefined" ? "http://localhost" : window.location.origin
2850
2849
  );
2851
- for (const M of b)
2852
- M.key && z.searchParams.append(M.key, M.value);
2853
- w = z.toString();
2850
+ for (const A of g)
2851
+ A.key && z.searchParams.append(A.key, A.value);
2852
+ y = z.toString();
2854
2853
  } else {
2855
2854
  const z = new URLSearchParams();
2856
- for (const M of b)
2857
- M.key && z.append(M.key, M.value);
2858
- N = z.toString(), P = {
2855
+ for (const A of g)
2856
+ A.key && z.append(A.key, A.value);
2857
+ N = z.toString(), R = {
2859
2858
  "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
2860
2859
  };
2861
2860
  }
2862
- const W = await fetch(w, {
2863
- method: C,
2864
- headers: P,
2861
+ const F = await fetch(y, {
2862
+ method: w,
2863
+ headers: R,
2865
2864
  body: N
2866
2865
  });
2867
- if (!W.ok) throw new _e(W.status, w, W.statusText);
2868
- return W.json();
2869
- }, S = ce(
2870
- () => t ? t.slice() : o.slice(),
2871
- [t, o]
2872
- ), g = Fe.useRef(/* @__PURE__ */ new Set());
2866
+ if (!F.ok) throw new _e(F.status, y, F.statusText);
2867
+ return F.json();
2868
+ }, $ = le(
2869
+ () => t ? t.slice() : i.slice(),
2870
+ [t, i]
2871
+ ), v = Le.useRef(/* @__PURE__ */ new Set());
2873
2872
  Q(() => {
2874
- const p = S.map((_) => ({ s: _, url: (_.apiUrl || "").trim() })).filter(({ url: _ }) => !!_);
2875
- if (p.length)
2876
- for (const { s: _, url: C } of p) {
2877
- const b = `${_.id}|${C}`;
2878
- g.current.has(b) || (g.current.add(b), x((w) => ({ ...w, [_.id]: !0 })), s((w) => ({ ...w, [_.id]: "" })), (async () => {
2873
+ const d = $.map((h) => ({ s: h, url: (h.apiUrl || "").trim() })).filter(({ url: h }) => !!h);
2874
+ if (d.length)
2875
+ for (const { s: h, url: w } of d) {
2876
+ const g = `${h.id}|${w}`;
2877
+ v.current.has(g) || (v.current.add(g), b((y) => ({ ...y, [h.id]: !0 })), s((y) => ({ ...y, [h.id]: "" })), (async () => {
2879
2878
  try {
2880
- const w = await h(_);
2881
- d((N) => ({ ...N, [_.id]: w }));
2882
- } catch (w) {
2879
+ const y = await _(h);
2880
+ u((N) => ({ ...N, [h.id]: y }));
2881
+ } catch (y) {
2883
2882
  let N = "Error desconocido";
2884
- w instanceof _e ? N = `Error HTTP ${w.status} (${w.statusText}) en ${w.url}` : w instanceof SyntaxError ? N = "Respuesta no es JSON válido" : w instanceof TypeError ? N = "Fallo de red / CORS / conexión" : typeof w == "string" && (N = w.toString()), s((P) => ({ ...P, [_.id]: N }));
2883
+ y instanceof _e ? N = `Error HTTP ${y.status} (${y.statusText}) en ${y.url}` : y instanceof SyntaxError ? N = "Respuesta no es JSON válido" : y instanceof TypeError ? N = "Fallo de red / CORS / conexión" : typeof y == "string" && (N = y.toString()), s((R) => ({ ...R, [h.id]: N }));
2885
2884
  } finally {
2886
- x((w) => ({ ...w, [_.id]: !1 }));
2885
+ b((y) => ({ ...y, [h.id]: !1 }));
2887
2886
  }
2888
2887
  })());
2889
2888
  }
2890
- }, [S]);
2891
- const y = ce(
2892
- () => S.filter((p) => p.visible).sort((p, _) => p.order - _.order),
2893
- [S]
2894
- ), O = (p) => Array.isArray(p) ? p.map((_) => {
2895
- const C = {};
2896
- for (const b of _.fields || []) {
2897
- const w = (b.type || "string").toLowerCase();
2898
- if (w === "number") {
2899
- const N = String(b.value || "").trim();
2889
+ }, [$]);
2890
+ const S = le(
2891
+ () => $.filter((d) => d.visible).sort((d, h) => d.order - h.order),
2892
+ [$]
2893
+ ), I = (d) => Array.isArray(d) ? d.map((h) => {
2894
+ const w = {};
2895
+ for (const g of h.fields || []) {
2896
+ const y = (g.type || "string").toLowerCase();
2897
+ if (y === "number") {
2898
+ const N = String(g.value || "").trim();
2900
2899
  if (N !== "") {
2901
- const P = Number(N);
2902
- Number.isNaN(P) || (C[b.name] = P);
2900
+ const R = Number(N);
2901
+ Number.isNaN(R) || (w[g.name] = R);
2903
2902
  }
2904
- } else if (w === "boolean")
2905
- C[b.name] = String(b.value).toLowerCase() === "true";
2906
- else if (w === "function") {
2907
- const N = String(b.value || "").trim();
2903
+ } else if (y === "boolean")
2904
+ w[g.name] = String(g.value).toLowerCase() === "true";
2905
+ else if (y === "function") {
2906
+ const N = String(g.value || "").trim();
2908
2907
  if (N)
2909
2908
  try {
2910
- const P = new Function(N);
2911
- C[b.name] = P;
2912
- } catch (P) {
2913
- console.error(`❌ Error creando función en item '${b.name}':`, P);
2909
+ const R = new Function(N);
2910
+ w[g.name] = R;
2911
+ } catch (R) {
2912
+ console.error(`❌ Error creando función en item '${g.name}':`, R);
2914
2913
  }
2915
- } else C[b.name] = b.value;
2914
+ } else w[g.name] = g.value;
2916
2915
  }
2917
- return C;
2918
- }) : [], v = (p) => {
2919
- const _ = {};
2920
- if (!Array.isArray(p)) return _;
2921
- for (const C of p) {
2922
- if (!C.name) continue;
2923
- const b = (C.type || "string").toLowerCase();
2924
- if (b === "number") {
2925
- const w = String(C.value || "").trim();
2926
- if (w !== "") {
2927
- const N = Number(w);
2928
- Number.isNaN(N) || (_[C.name] = N);
2916
+ return w;
2917
+ }) : [], f = (d) => {
2918
+ const h = {};
2919
+ if (!Array.isArray(d)) return h;
2920
+ for (const w of d) {
2921
+ if (!w.name) continue;
2922
+ const g = (w.type || "string").toLowerCase();
2923
+ if (g === "number") {
2924
+ const y = String(w.value || "").trim();
2925
+ if (y !== "") {
2926
+ const N = Number(y);
2927
+ Number.isNaN(N) || (h[w.name] = N);
2929
2928
  }
2930
- } else if (b === "boolean")
2931
- _[C.name] = String(C.value).toLowerCase() === "true";
2932
- else if (b === "function") {
2933
- const w = String(C.value || "").trim();
2934
- if (w)
2929
+ } else if (g === "boolean")
2930
+ h[w.name] = String(w.value).toLowerCase() === "true";
2931
+ else if (g === "function") {
2932
+ const y = String(w.value || "").trim();
2933
+ if (y)
2935
2934
  try {
2936
- const N = new Function(w);
2937
- _[C.name] = N;
2935
+ const N = new Function(y);
2936
+ h[w.name] = N;
2938
2937
  } catch (N) {
2939
- console.error(`❌ Error creando función en item '${C.name}':`, N);
2938
+ console.error(`❌ Error creando función en item '${w.name}':`, N);
2940
2939
  }
2941
- } else _[C.name] = C.value;
2940
+ } else h[w.name] = w.value;
2942
2941
  }
2943
- return _;
2944
- }, E = (p, _, C) => {
2945
- const b = C ? { ...C } : {};
2946
- if (_) {
2947
- const M = (_.variableName || "items").trim() || "items";
2948
- return b[M] = _.arr || [], b;
2942
+ return h;
2943
+ }, C = (d, h, w) => {
2944
+ const g = w ? { ...w } : {};
2945
+ if (h) {
2946
+ const A = (h.variableName || "items").trim() || "items";
2947
+ return g[A] = h.arr || [], g;
2949
2948
  }
2950
- const w = p, N = Array.isArray(w), P = !N && typeof w == "object" && w !== null ? w : void 0, W = P && Array.isArray(P.lobby || P.items) ? P.lobby || P.items : void 0, z = (M) => N ? w : W || M;
2951
- return b.items = z(W || []), b;
2952
- }, T = (p) => {
2949
+ const y = d, N = Array.isArray(y), R = !N && typeof y == "object" && y !== null ? y : void 0, F = R && Array.isArray(R.lobby || R.items) ? R.lobby || R.items : void 0, z = (A) => N ? y : F || A;
2950
+ return g.items = z(F || []), g;
2951
+ }, T = (d) => {
2953
2952
  var N;
2954
- const _ = !!((N = p.apiUrl) != null && N.trim()), C = _ ? m[p.id] : void 0;
2955
- let b = p.props ? { ...p.props } : {};
2956
- const w = v(p.manualScalarFields);
2957
- if (be.includes(p.componentKey))
2958
- return { items: C, ...b, ...w };
2959
- if (b = { ...b, ...w }, _) b = E(C, null, b);
2960
- else if (p.dataMode === "manual") {
2961
- const P = O(p.manualItems);
2962
- if (b = E(
2953
+ const h = !!((N = d.apiUrl) != null && N.trim()), w = h ? m[d.id] : void 0;
2954
+ let g = d.props ? { ...d.props } : {};
2955
+ const y = f(d.manualScalarFields);
2956
+ if (ve.includes(d.componentKey))
2957
+ return { items: w, ...g, ...y };
2958
+ if (g = { ...g, ...y }, h) g = C(w, null, g);
2959
+ else if (d.dataMode === "manual") {
2960
+ const R = I(d.manualItems);
2961
+ if (g = C(
2963
2962
  null,
2964
- { arr: P, variableName: p.variableName },
2965
- b
2966
- ), p.variableName2 && p.manualItems2) {
2967
- const W = O(p.manualItems2), z = (p.variableName2 || "items2").trim() || "items2";
2968
- b[z] = W;
2963
+ { arr: R, variableName: d.variableName },
2964
+ g
2965
+ ), d.variableName2 && d.manualItems2) {
2966
+ const F = I(d.manualItems2), z = (d.variableName2 || "items2").trim() || "items2";
2967
+ g[z] = F;
2969
2968
  }
2970
2969
  }
2971
- return b;
2972
- }, R = (p, _, C) => /* @__PURE__ */ e("div", { className: `mx-4 p-4 rounded ${{
2970
+ return g;
2971
+ }, P = (d, h, w) => /* @__PURE__ */ e("div", { className: `mx-4 p-4 rounded ${{
2973
2972
  loading: "bg-blue-100 text-blue-800",
2974
2973
  error: "bg-red-100 text-red-800",
2975
2974
  component: "bg-yellow-100 text-yellow-800"
2976
- }[_]}`, children: C }, p), $ = (p) => {
2977
- var pe;
2978
- const _ = p.componentKey, C = xn[_];
2979
- if (!C)
2980
- return console.warn(`No hay componente registrado para "${_}"`), R(
2981
- p.id,
2975
+ }[h]}`, children: w }, d), E = (d) => {
2976
+ var me;
2977
+ const h = d.componentKey, w = xo[h];
2978
+ if (!w)
2979
+ return console.warn(`No hay componente registrado para "${h}"`), P(
2980
+ d.id,
2982
2981
  "component",
2983
- `Componente "${_}" no encontrado`
2982
+ `Componente "${h}" no encontrado`
2984
2983
  );
2985
- const b = !!((pe = p.apiUrl) != null && pe.trim()), w = b ? m[p.id] : void 0, N = b ? !!f[p.id] : !1, P = b ? I[p.id] : "";
2986
- if (b) {
2987
- if (N && !w)
2988
- return R(
2989
- p.id,
2984
+ const g = !!((me = d.apiUrl) != null && me.trim()), y = g ? m[d.id] : void 0, N = g ? !!x[d.id] : !1, R = g ? O[d.id] : "";
2985
+ if (g) {
2986
+ if (N && !y)
2987
+ return P(
2988
+ d.id,
2990
2989
  "loading",
2991
- `Cargando datos desde ${p.apiUrl}...`
2990
+ `Cargando datos desde ${d.apiUrl}...`
2992
2991
  );
2993
- if (P && !w)
2994
- return R(
2995
- p.id,
2992
+ if (R && !y)
2993
+ return P(
2994
+ d.id,
2996
2995
  "error",
2997
- `Error cargando ${p.apiUrl}: ${P}`
2996
+ `Error cargando ${d.apiUrl}: ${R}`
2998
2997
  );
2999
2998
  }
3000
- const W = T(p), M = (/* @__PURE__ */ new Set([
2999
+ const F = T(d), A = (/* @__PURE__ */ new Set([
3001
3000
  "OraculoSeccionBanners",
3002
3001
  "OraculoSeccionBonoBienvenida",
3003
3002
  "OraculoSeccionCasinoEnVivo",
3004
- l ? "" : "OraculoSeccionClubOlimpo"
3005
- ])).has(p.componentKey), Y = l ? 120 : 24;
3006
- return /* @__PURE__ */ e("div", { style: M ? {
3003
+ p ? "" : "OraculoSeccionClubOlimpo"
3004
+ ])).has(d.componentKey), Y = p ? 120 : 24;
3005
+ return /* @__PURE__ */ e("div", { style: A ? {
3007
3006
  width: "100%",
3008
3007
  boxSizing: "border-box"
3009
3008
  } : {
@@ -3011,10 +3010,10 @@ const be = [
3011
3010
  paddingRight: Y,
3012
3011
  width: "100%",
3013
3012
  boxSizing: "border-box"
3014
- }, children: /* @__PURE__ */ e(C, { ...W }) }, p.id);
3013
+ }, children: /* @__PURE__ */ e(w, { ...F }) }, d.id);
3015
3014
  };
3016
- return n && !t ? /* @__PURE__ */ e("div", { className: "text-xs text-gray-400", children: "Cargando preview..." }) : !n && !t && o.length === 0 ? /* @__PURE__ */ e("div", { className: "text-xs text-gray-500", children: "Sin secciones (Firestore)" }) : /* @__PURE__ */ e(
3017
- Be,
3015
+ return o && !t ? /* @__PURE__ */ e("div", { className: "text-xs text-gray-400", children: "Cargando preview..." }) : !o && !t && i.length === 0 ? /* @__PURE__ */ e("div", { className: "text-xs text-gray-500", children: "Sin secciones (Firestore)" }) : /* @__PURE__ */ e(
3016
+ Me,
3018
3017
  {
3019
3018
  className: "oli-font",
3020
3019
  maxWidth: !1,
@@ -3028,47 +3027,47 @@ const be = [
3028
3027
  maxWidth: "100%",
3029
3028
  overflowX: "hidden"
3030
3029
  },
3031
- children: /* @__PURE__ */ e(we, { direction: "column", spacing: 8, useFlexGap: !0, children: y.map($) })
3030
+ children: /* @__PURE__ */ e(Se, { direction: "column", spacing: 8, useFlexGap: !0, children: S.map(E) })
3032
3031
  }
3033
3032
  );
3034
3033
  };
3035
3034
  export {
3036
3035
  L as OraculoButton,
3037
3036
  q as OraculoCarousel,
3038
- Ee as OraculoCarouselDots,
3039
- ft as OraculoClubOlimpoVisual,
3040
- Et as OraculoEventCombinadasCard,
3041
- kt as OraculoEventEnVivoCard,
3042
- Xe as OraculoEventHeader,
3043
- Ie as OraculoEventLabel,
3044
- $e as OraculoEventLeague,
3045
- ke as OraculoEventScore,
3046
- Lt as OraculoEventSemanaCard,
3047
- Je as OraculoEventStatus,
3048
- qe as OraculoEventStatusBadge,
3049
- ne as OraculoEventTeamInfo,
3037
+ ke as OraculoCarouselDots,
3038
+ xt as OraculoClubOlimpoVisual,
3039
+ Nt as OraculoEventCombinadasCard,
3040
+ Tt as OraculoEventEnVivoCard,
3041
+ Qe as OraculoEventHeader,
3042
+ $e as OraculoEventLabel,
3043
+ Oe as OraculoEventLeague,
3044
+ Ne as OraculoEventScore,
3045
+ jt as OraculoEventSemanaCard,
3046
+ Xe as OraculoEventStatus,
3047
+ Je as OraculoEventStatusBadge,
3048
+ oe as OraculoEventTeamInfo,
3050
3049
  te as OraculoGameCard,
3051
- mt as OraculoGameRankCard,
3052
- Ne as OraculoGameSlide,
3053
- H as OraculoGridGroup,
3054
- ht as OraculoLiveCasinoCard,
3055
- he as OraculoLogoMediosPago,
3056
- Tn as OraculoPageLandingPreview,
3057
- un as OraculoSeccionBanners,
3050
+ ht as OraculoGameRankCard,
3051
+ Ie as OraculoGameSlide,
3052
+ V as OraculoGridGroup,
3053
+ gt as OraculoLiveCasinoCard,
3054
+ ge as OraculoLogoMediosPago,
3055
+ To as OraculoPageLandingPreview,
3056
+ uo as OraculoSeccionBanners,
3058
3057
  Xt as OraculoSeccionBonoBienvenida,
3059
3058
  Ht as OraculoSeccionCasino,
3060
- At as OraculoSeccionCasinoEnVivo,
3059
+ Dt as OraculoSeccionCasinoEnVivo,
3061
3060
  Qt as OraculoSeccionClubOlimpo,
3062
- Wt as OraculoSeccionDestacados,
3063
- en as OraculoSeccionEventoCombinadas,
3064
- rn as OraculoSeccionEventoEnVivo,
3065
- dn as OraculoSeccionEventoSemana,
3066
- mn as OraculoSeccionMediosPago,
3067
- zt as OraculoSeccionTopJuegos,
3061
+ At as OraculoSeccionDestacados,
3062
+ eo as OraculoSeccionEventoCombinadas,
3063
+ ro as OraculoSeccionEventoEnVivo,
3064
+ lo as OraculoSeccionEventoSemana,
3065
+ mo as OraculoSeccionMediosPago,
3066
+ Gt as OraculoSeccionTopJuegos,
3068
3067
  qt as OraculoSeccionVirtuales,
3069
3068
  K as OraculoSectionTitle,
3070
- zt as OraculoTopJuegoItem,
3071
- gt as OraculoWelcomeBanner,
3072
- Tn as default
3069
+ Gt as OraculoTopJuegoItem,
3070
+ ft as OraculoWelcomeBanner,
3071
+ To as default
3073
3072
  };
3074
3073
  //# sourceMappingURL=index.es.js.map