oraculo-ui 0.1.60 → 0.1.62

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