oraculo-ui 0.1.55 → 0.1.56

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