oraculo-ui 0.1.44 → 0.1.46

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