oraculo-ui 0.1.49 → 0.1.50

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