oraculo-ui 0.1.50 → 0.1.52

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