oraculo-ui 0.1.45 → 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.cjs.js +5 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +810 -745
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import { jsx as e, jsxs as p, Fragment as
|
|
2
|
-
import { Link as Ce, Box as z, Typography as
|
|
3
|
-
import $e, { forwardRef as
|
|
4
|
-
import { Splide as
|
|
5
|
-
import
|
|
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
6
|
import M from "@mui/material/Typography";
|
|
7
|
-
import
|
|
8
|
-
import { ChevronLeftRounded as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { onSnapshot as
|
|
13
|
-
function
|
|
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
|
+
function T({
|
|
14
14
|
children: t,
|
|
15
15
|
onClick: i,
|
|
16
16
|
href: r,
|
|
17
|
-
target:
|
|
17
|
+
target: n,
|
|
18
18
|
rel: c,
|
|
19
19
|
type: o = "button",
|
|
20
|
-
disabled:
|
|
20
|
+
disabled: a = !1,
|
|
21
21
|
variant: m = "primary",
|
|
22
22
|
size: g,
|
|
23
|
-
fullWidth:
|
|
24
|
-
fullHeight:
|
|
25
|
-
className:
|
|
23
|
+
fullWidth: v = !1,
|
|
24
|
+
fullHeight: x = !1,
|
|
25
|
+
className: w = "",
|
|
26
26
|
ariaLabel: s,
|
|
27
27
|
leftIcon: d,
|
|
28
28
|
rightIcon: l,
|
|
29
29
|
iconOnly: u
|
|
30
30
|
}) {
|
|
31
|
-
const
|
|
31
|
+
const _ = !!t && t !== !0, O = (!!d ? 1 : 0) + (!!l ? 1 : 0) == 1, P = u != null ? u : O && !_, I = [
|
|
32
32
|
"orc-btn",
|
|
33
33
|
m === "secondary" ? "orc-btn--secondary" : m === "tertiary" ? "orc-btn--tertiary" : "orc-btn--primary",
|
|
34
34
|
g ? `orc-btn--${g}` : "",
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
v ? "orc-btn--full" : "",
|
|
36
|
+
x ? "orc-btn--fullHeight" : "",
|
|
37
37
|
P ? "orc-btn--iconOnly" : "",
|
|
38
|
-
|
|
39
|
-
].filter(Boolean).join(" "), N = /* @__PURE__ */ p(
|
|
38
|
+
w
|
|
39
|
+
].filter(Boolean).join(" "), N = /* @__PURE__ */ p(V, { children: [
|
|
40
40
|
d && /* @__PURE__ */ e("span", { className: "orc-btn__icon", children: d }),
|
|
41
41
|
!P && /* @__PURE__ */ e("span", { className: "orc-btn__label", children: t }),
|
|
42
42
|
l && /* @__PURE__ */ e("span", { className: "orc-btn__icon", children: l })
|
|
43
|
-
] }),
|
|
43
|
+
] }), L = a ? !0 : void 0;
|
|
44
44
|
return r ? /* @__PURE__ */ e(
|
|
45
45
|
Ce,
|
|
46
46
|
{
|
|
47
47
|
href: r,
|
|
48
|
-
target:
|
|
48
|
+
target: n,
|
|
49
49
|
rel: c,
|
|
50
50
|
"aria-label": s,
|
|
51
|
-
"aria-disabled":
|
|
52
|
-
tabIndex:
|
|
53
|
-
className:
|
|
54
|
-
onClick:
|
|
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(
|
|
@@ -59,9 +59,9 @@ function R({
|
|
|
59
59
|
{
|
|
60
60
|
type: o,
|
|
61
61
|
onClick: i,
|
|
62
|
-
disabled: !!
|
|
62
|
+
disabled: !!L,
|
|
63
63
|
"aria-label": s,
|
|
64
|
-
className:
|
|
64
|
+
className: I,
|
|
65
65
|
children: N
|
|
66
66
|
}
|
|
67
67
|
);
|
|
@@ -70,12 +70,12 @@ function X({
|
|
|
70
70
|
title: t,
|
|
71
71
|
iconUrl: i,
|
|
72
72
|
size: r = "md",
|
|
73
|
-
className:
|
|
73
|
+
className: n = ""
|
|
74
74
|
}) {
|
|
75
75
|
const o = [
|
|
76
76
|
"orc-section-title",
|
|
77
77
|
r ? `orc-section-title--${r}` : "",
|
|
78
|
-
|
|
78
|
+
n
|
|
79
79
|
].filter(Boolean).join(" ");
|
|
80
80
|
return /* @__PURE__ */ p("div", { className: o, children: [
|
|
81
81
|
i && /* @__PURE__ */ e(
|
|
@@ -89,49 +89,49 @@ function X({
|
|
|
89
89
|
/* @__PURE__ */ e("h2", { className: "orc-section-title__title", children: t })
|
|
90
90
|
] });
|
|
91
91
|
}
|
|
92
|
-
const
|
|
92
|
+
const be = ({
|
|
93
93
|
total: t,
|
|
94
94
|
active: i,
|
|
95
95
|
onSelect: r,
|
|
96
|
-
className:
|
|
96
|
+
className: n = ""
|
|
97
97
|
}) => {
|
|
98
98
|
if (t <= 1) return null;
|
|
99
|
-
const c = ["orc-dots",
|
|
100
|
-
return /* @__PURE__ */ e("div", { className: c, role: "tablist", children: Array.from({ length: t }).map((o,
|
|
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":
|
|
106
|
-
"aria-label": `Ir al slide ${
|
|
107
|
-
className: "orc-dots__dot" + (
|
|
108
|
-
onClick: () => r == null ? void 0 : r(
|
|
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
|
-
) },
|
|
110
|
+
) }, a)) });
|
|
111
111
|
};
|
|
112
112
|
function D({
|
|
113
113
|
children: t,
|
|
114
114
|
minWidth: i = 32,
|
|
115
115
|
spacing: r = 2,
|
|
116
|
-
justify:
|
|
116
|
+
justify: n = "stretch",
|
|
117
117
|
columns: c = null
|
|
118
118
|
}) {
|
|
119
|
-
const o = c || `repeat(auto-fit, minmax(${i}px, 1fr))`,
|
|
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:
|
|
127
|
-
gap:
|
|
126
|
+
justifyItems: n,
|
|
127
|
+
gap: a,
|
|
128
128
|
height: "inherit"
|
|
129
129
|
},
|
|
130
130
|
children: t
|
|
131
131
|
}
|
|
132
132
|
);
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function ce({ src: t, alt: i }) {
|
|
135
135
|
return /* @__PURE__ */ e(
|
|
136
136
|
z,
|
|
137
137
|
{
|
|
@@ -162,7 +162,7 @@ function se({ src: t, alt: i }) {
|
|
|
162
162
|
}
|
|
163
163
|
);
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function Ue({ title: t, subtitle: i }) {
|
|
166
166
|
return /* @__PURE__ */ p(
|
|
167
167
|
"div",
|
|
168
168
|
{
|
|
@@ -217,7 +217,7 @@ function Fe({ title: t, subtitle: i }) {
|
|
|
217
217
|
}
|
|
218
218
|
);
|
|
219
219
|
}
|
|
220
|
-
function
|
|
220
|
+
function ze({ text: t, color: i = "#ff3b3b", textColor: r = "#fff" }) {
|
|
221
221
|
return /* @__PURE__ */ e(
|
|
222
222
|
"span",
|
|
223
223
|
{
|
|
@@ -238,13 +238,13 @@ function Ue({ text: t, color: i = "#ff3b3b", textColor: r = "#fff" }) {
|
|
|
238
238
|
}
|
|
239
239
|
);
|
|
240
240
|
}
|
|
241
|
-
function
|
|
241
|
+
function Le({ live: t, time: i }) {
|
|
242
242
|
return /* @__PURE__ */ p("div", { className: "oli-font", style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
|
|
243
|
-
t && /* @__PURE__ */ e(
|
|
243
|
+
t && /* @__PURE__ */ e(ze, { text: "En vivo" }),
|
|
244
244
|
i && /* @__PURE__ */ e("span", { style: { fontSize: "14px", fontWeight: 400, lineHeight: "18px", paddingTop: "4px" }, children: i })
|
|
245
245
|
] });
|
|
246
246
|
}
|
|
247
|
-
function
|
|
247
|
+
function Ae({ title: t, subtitle: i, live: r = !1, time: n = "" }) {
|
|
248
248
|
return /* @__PURE__ */ p(
|
|
249
249
|
"div",
|
|
250
250
|
{
|
|
@@ -255,32 +255,32 @@ function We({ title: t, subtitle: i, live: r = !1, time: a = "" }) {
|
|
|
255
255
|
color: "#FFFFFF"
|
|
256
256
|
},
|
|
257
257
|
children: [
|
|
258
|
-
/* @__PURE__ */ e(
|
|
259
|
-
/* @__PURE__ */ e(
|
|
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
|
|
265
|
-
label:
|
|
264
|
+
const We = "oraculo__OraculoEventLabel-module__label___c64Xw", Be = {
|
|
265
|
+
label: We
|
|
266
266
|
};
|
|
267
267
|
function ve({ text: t }) {
|
|
268
|
-
return /* @__PURE__ */ e("span", { className:
|
|
268
|
+
return /* @__PURE__ */ e("span", { className: Be.label, children: t });
|
|
269
269
|
}
|
|
270
|
-
const
|
|
271
|
-
container:
|
|
270
|
+
const je = "oraculo__OraculoEventLeague-module__container___rdk4F", Ge = {
|
|
271
|
+
container: je
|
|
272
272
|
};
|
|
273
|
-
function
|
|
273
|
+
function Me({ title: t }) {
|
|
274
274
|
return /* @__PURE__ */ e("div", { className: Ge.container, children: t.toUpperCase() });
|
|
275
275
|
}
|
|
276
|
-
const
|
|
277
|
-
scoreWrapper:
|
|
278
|
-
name:
|
|
279
|
-
score:
|
|
280
|
-
normal:
|
|
281
|
-
small:
|
|
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
|
|
283
|
+
function ye({ text: t, name: i, size: r = "normal" }) {
|
|
284
284
|
return /* @__PURE__ */ p(
|
|
285
285
|
"div",
|
|
286
286
|
{
|
|
@@ -292,57 +292,57 @@ function be({ text: t, name: i, size: r = "normal" }) {
|
|
|
292
292
|
}
|
|
293
293
|
);
|
|
294
294
|
}
|
|
295
|
-
const Ke = "oraculo__OraculoEventTeamInfo-module__team___UfpUs",
|
|
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
296
|
team: Ke,
|
|
297
|
-
logo:
|
|
298
|
-
name:
|
|
299
|
-
regular:
|
|
300
|
-
compact:
|
|
297
|
+
logo: Ye,
|
|
298
|
+
name: Qe,
|
|
299
|
+
regular: Ze,
|
|
300
|
+
compact: Ve
|
|
301
301
|
};
|
|
302
|
-
function
|
|
303
|
-
return /* @__PURE__ */ p("div", { className: `oli-font ${
|
|
304
|
-
/* @__PURE__ */ e("img", { src: i, alt: t, className:
|
|
305
|
-
/* @__PURE__ */ e("span", { className:
|
|
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
|
|
308
|
+
const et = Oe, tt = Re, J = Ie(
|
|
309
309
|
({
|
|
310
310
|
items: t = [],
|
|
311
311
|
renderItem: i,
|
|
312
312
|
perPage: r = 1,
|
|
313
|
-
gap:
|
|
313
|
+
gap: n = "0px",
|
|
314
314
|
breakpoints: c,
|
|
315
315
|
options: o = {},
|
|
316
|
-
className:
|
|
316
|
+
className: a = "",
|
|
317
317
|
onMove: m,
|
|
318
318
|
useIndexAsKey: g = !1
|
|
319
|
-
},
|
|
320
|
-
const
|
|
321
|
-
|
|
319
|
+
}, v) => {
|
|
320
|
+
const x = G(null);
|
|
321
|
+
ke(v, () => ({
|
|
322
322
|
next: () => {
|
|
323
323
|
var l;
|
|
324
|
-
return (l =
|
|
324
|
+
return (l = x.current) == null ? void 0 : l.go(">");
|
|
325
325
|
},
|
|
326
326
|
prev: () => {
|
|
327
327
|
var l;
|
|
328
|
-
return (l =
|
|
328
|
+
return (l = x.current) == null ? void 0 : l.go("<");
|
|
329
329
|
},
|
|
330
330
|
go: (l) => {
|
|
331
331
|
var u;
|
|
332
|
-
return (u =
|
|
332
|
+
return (u = x.current) == null ? void 0 : u.go(l);
|
|
333
333
|
}
|
|
334
334
|
}));
|
|
335
|
-
const
|
|
335
|
+
const w = se(
|
|
336
336
|
(l) => {
|
|
337
|
-
const u = l.index,
|
|
338
|
-
m == null || m({ index: u, isStart:
|
|
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
340
|
[m]
|
|
341
|
-
), s =
|
|
341
|
+
), s = se(
|
|
342
342
|
(l) => {
|
|
343
|
-
|
|
343
|
+
w(l);
|
|
344
344
|
},
|
|
345
|
-
[
|
|
345
|
+
[w]
|
|
346
346
|
), d = {
|
|
347
347
|
type: "slide",
|
|
348
348
|
trimSpace: !1,
|
|
@@ -353,35 +353,35 @@ const Ve = ke, et = Oe, J = Ee(
|
|
|
353
353
|
focus: "start",
|
|
354
354
|
autoWidth: !1,
|
|
355
355
|
perPage: r,
|
|
356
|
-
gap:
|
|
356
|
+
gap: n,
|
|
357
357
|
breakpoints: c,
|
|
358
358
|
...o
|
|
359
359
|
};
|
|
360
|
-
return /* @__PURE__ */ e("div", { className:
|
|
361
|
-
|
|
360
|
+
return /* @__PURE__ */ e("div", { className: a, style: { width: "100%" }, children: /* @__PURE__ */ e(
|
|
361
|
+
et,
|
|
362
362
|
{
|
|
363
|
-
ref:
|
|
363
|
+
ref: x,
|
|
364
364
|
options: d,
|
|
365
|
-
onMove:
|
|
365
|
+
onMove: w,
|
|
366
366
|
onMounted: s,
|
|
367
367
|
children: t.map((l, u) => {
|
|
368
|
-
var
|
|
369
|
-
return /* @__PURE__ */ e(
|
|
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
|
-
),
|
|
374
|
+
), Z = ({
|
|
375
375
|
imageUrl: t,
|
|
376
376
|
onClick: i,
|
|
377
377
|
size: r = "sm",
|
|
378
|
-
fillParent:
|
|
378
|
+
fillParent: n = !1
|
|
379
379
|
}) => {
|
|
380
380
|
const c = r === "lg" ? { w: 280, h: 352 } : { w: 152, h: 168 }, o = (m) => {
|
|
381
381
|
m.stopPropagation(), i == null || i();
|
|
382
|
-
},
|
|
382
|
+
}, a = n ? { width: "100%", height: "100%" } : { width: `${c.w}px`, height: `${c.h}px` };
|
|
383
383
|
return /* @__PURE__ */ p(
|
|
384
|
-
|
|
384
|
+
C,
|
|
385
385
|
{
|
|
386
386
|
onClick: i,
|
|
387
387
|
role: "button",
|
|
@@ -391,7 +391,7 @@ const Ve = ke, et = Oe, J = Ee(
|
|
|
391
391
|
overflow: "hidden",
|
|
392
392
|
boxSizing: "border-box",
|
|
393
393
|
transition: "transform .15s ease, box-shadow .15s ease",
|
|
394
|
-
...
|
|
394
|
+
...a,
|
|
395
395
|
"&:hover": {
|
|
396
396
|
transform: "translateY(-2px)",
|
|
397
397
|
boxShadow: 8,
|
|
@@ -423,7 +423,7 @@ const Ve = ke, et = Oe, J = Ee(
|
|
|
423
423
|
}
|
|
424
424
|
),
|
|
425
425
|
/* @__PURE__ */ e(
|
|
426
|
-
|
|
426
|
+
C,
|
|
427
427
|
{
|
|
428
428
|
className: "oraculo-game-card-overlay",
|
|
429
429
|
sx: {
|
|
@@ -438,7 +438,7 @@ const Ve = ke, et = Oe, J = Ee(
|
|
|
438
438
|
}
|
|
439
439
|
),
|
|
440
440
|
/* @__PURE__ */ e(
|
|
441
|
-
|
|
441
|
+
C,
|
|
442
442
|
{
|
|
443
443
|
className: "oraculo-game-card-btn",
|
|
444
444
|
sx: {
|
|
@@ -451,52 +451,52 @@ const Ve = ke, et = Oe, J = Ee(
|
|
|
451
451
|
transition: "opacity .15s ease, transform .15s ease",
|
|
452
452
|
pointerEvents: "none"
|
|
453
453
|
},
|
|
454
|
-
children: /* @__PURE__ */ e(
|
|
454
|
+
children: /* @__PURE__ */ e(T, { variant: "primary", size: "md", onClick: o, children: "JUGAR" })
|
|
455
455
|
}
|
|
456
456
|
)
|
|
457
457
|
]
|
|
458
458
|
}
|
|
459
459
|
);
|
|
460
460
|
};
|
|
461
|
-
function
|
|
461
|
+
function ot({
|
|
462
462
|
imageUrl: t,
|
|
463
463
|
orden: i = 1,
|
|
464
464
|
onClick: r,
|
|
465
|
-
sizes:
|
|
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
|
|
470
|
+
var x, w, s, d;
|
|
471
471
|
const c = (l, u) => {
|
|
472
|
-
var
|
|
472
|
+
var _, k, E, O;
|
|
473
473
|
return {
|
|
474
|
-
xs: (
|
|
475
|
-
md: (O = (
|
|
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),
|
|
478
|
-
xs: Math.round(((
|
|
479
|
-
md: Math.round(((d = (s =
|
|
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
481
|
return /* @__PURE__ */ p(
|
|
482
|
-
|
|
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}/${
|
|
490
|
-
md: `${o.md}/${
|
|
489
|
+
xs: `${o.xs}/${a.xs}`,
|
|
490
|
+
md: `${o.md}/${a.md}`
|
|
491
491
|
},
|
|
492
492
|
borderRadius: { xs: `${m.xs}px`, md: `${m.md}px` },
|
|
493
493
|
boxSizing: "border-box",
|
|
494
494
|
overflow: "visible",
|
|
495
|
-
pb: { xs: `${
|
|
495
|
+
pb: { xs: `${v.xs}px`, md: `${v.md}px` }
|
|
496
496
|
},
|
|
497
497
|
children: [
|
|
498
498
|
/* @__PURE__ */ e(
|
|
499
|
-
|
|
499
|
+
C,
|
|
500
500
|
{
|
|
501
501
|
sx: {
|
|
502
502
|
position: "absolute",
|
|
@@ -505,7 +505,7 @@ function tt({
|
|
|
505
505
|
overflow: "hidden"
|
|
506
506
|
},
|
|
507
507
|
children: /* @__PURE__ */ e(
|
|
508
|
-
|
|
508
|
+
Z,
|
|
509
509
|
{
|
|
510
510
|
imageUrl: t,
|
|
511
511
|
onClick: r,
|
|
@@ -516,15 +516,15 @@ function tt({
|
|
|
516
516
|
}
|
|
517
517
|
),
|
|
518
518
|
/* @__PURE__ */ e(
|
|
519
|
-
|
|
519
|
+
C,
|
|
520
520
|
{
|
|
521
521
|
component: "span",
|
|
522
522
|
sx: {
|
|
523
523
|
position: "absolute",
|
|
524
524
|
left: 8,
|
|
525
525
|
bottom: {
|
|
526
|
-
xs: `-${
|
|
527
|
-
md: `-${
|
|
526
|
+
xs: `-${v.xs}px`,
|
|
527
|
+
md: `-${v.md}px`
|
|
528
528
|
},
|
|
529
529
|
fontFamily: "secondary",
|
|
530
530
|
fontSize: {
|
|
@@ -544,16 +544,16 @@ function tt({
|
|
|
544
544
|
}
|
|
545
545
|
);
|
|
546
546
|
}
|
|
547
|
-
const
|
|
547
|
+
const nt = ({
|
|
548
548
|
logo: t,
|
|
549
549
|
provider: i,
|
|
550
550
|
providerName: r,
|
|
551
|
-
machine:
|
|
551
|
+
machine: n,
|
|
552
552
|
onClick: c
|
|
553
553
|
}) => {
|
|
554
554
|
var o;
|
|
555
555
|
return /* @__PURE__ */ p(
|
|
556
|
-
|
|
556
|
+
C,
|
|
557
557
|
{
|
|
558
558
|
onClick: c,
|
|
559
559
|
sx: {
|
|
@@ -577,11 +577,11 @@ const ot = ({
|
|
|
577
577
|
},
|
|
578
578
|
children: [
|
|
579
579
|
/* @__PURE__ */ e(
|
|
580
|
-
|
|
580
|
+
C,
|
|
581
581
|
{
|
|
582
582
|
component: "img",
|
|
583
583
|
src: t,
|
|
584
|
-
alt: `Juego ${
|
|
584
|
+
alt: `Juego ${n != null ? n : ""}`,
|
|
585
585
|
sx: {
|
|
586
586
|
position: "absolute",
|
|
587
587
|
inset: 0,
|
|
@@ -593,7 +593,7 @@ const ot = ({
|
|
|
593
593
|
}
|
|
594
594
|
),
|
|
595
595
|
/* @__PURE__ */ e(
|
|
596
|
-
|
|
596
|
+
C,
|
|
597
597
|
{
|
|
598
598
|
className: "orc-live-provider-label",
|
|
599
599
|
sx: {
|
|
@@ -623,16 +623,16 @@ const ot = ({
|
|
|
623
623
|
]
|
|
624
624
|
}
|
|
625
625
|
);
|
|
626
|
-
},
|
|
626
|
+
}, te = 12, _e = ({
|
|
627
627
|
items: t,
|
|
628
628
|
layout: i = "grid",
|
|
629
629
|
onClick: r
|
|
630
630
|
}) => {
|
|
631
|
-
var
|
|
631
|
+
var n;
|
|
632
632
|
if (i === "mosaic") {
|
|
633
633
|
const c = t[0], o = t.slice(1, 5);
|
|
634
634
|
return /* @__PURE__ */ p(
|
|
635
|
-
|
|
635
|
+
C,
|
|
636
636
|
{
|
|
637
637
|
sx: {
|
|
638
638
|
display: "grid",
|
|
@@ -649,14 +649,14 @@ const ot = ({
|
|
|
649
649
|
xs: "104px",
|
|
650
650
|
md: "152px"
|
|
651
651
|
},
|
|
652
|
-
columnGap: `${
|
|
653
|
-
rowGap: `${
|
|
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
|
-
|
|
659
|
+
C,
|
|
660
660
|
{
|
|
661
661
|
sx: {
|
|
662
662
|
width: { xs: 184, md: 280 },
|
|
@@ -666,9 +666,9 @@ const ot = ({
|
|
|
666
666
|
borderRadius: 2
|
|
667
667
|
},
|
|
668
668
|
children: /* @__PURE__ */ e(
|
|
669
|
-
|
|
669
|
+
Z,
|
|
670
670
|
{
|
|
671
|
-
imageUrl: `https://olimpo.bet${(
|
|
671
|
+
imageUrl: `https://olimpo.bet${(n = c.imageUrl) != null ? n : ""}`,
|
|
672
672
|
size: "lg",
|
|
673
673
|
fillParent: !0,
|
|
674
674
|
onClick: () => r == null ? void 0 : r(c, 0)
|
|
@@ -676,10 +676,10 @@ const ot = ({
|
|
|
676
676
|
)
|
|
677
677
|
}
|
|
678
678
|
),
|
|
679
|
-
o.map((
|
|
679
|
+
o.map((a, m) => {
|
|
680
680
|
var g;
|
|
681
681
|
return /* @__PURE__ */ e(
|
|
682
|
-
|
|
682
|
+
C,
|
|
683
683
|
{
|
|
684
684
|
sx: {
|
|
685
685
|
width: { xs: 104, md: 152 },
|
|
@@ -688,16 +688,16 @@ const ot = ({
|
|
|
688
688
|
borderRadius: 2
|
|
689
689
|
},
|
|
690
690
|
children: /* @__PURE__ */ e(
|
|
691
|
-
|
|
691
|
+
Z,
|
|
692
692
|
{
|
|
693
|
-
imageUrl: `https://olimpo.bet${(g =
|
|
693
|
+
imageUrl: `https://olimpo.bet${(g = a.imageUrl) != null ? g : ""}`,
|
|
694
694
|
size: "sm",
|
|
695
695
|
fillParent: !0,
|
|
696
|
-
onClick: () => r == null ? void 0 : r(
|
|
696
|
+
onClick: () => r == null ? void 0 : r(a, m + 1)
|
|
697
697
|
}
|
|
698
698
|
)
|
|
699
699
|
},
|
|
700
|
-
|
|
700
|
+
a.id
|
|
701
701
|
);
|
|
702
702
|
})
|
|
703
703
|
]
|
|
@@ -705,7 +705,7 @@ const ot = ({
|
|
|
705
705
|
);
|
|
706
706
|
}
|
|
707
707
|
return /* @__PURE__ */ e(
|
|
708
|
-
|
|
708
|
+
C,
|
|
709
709
|
{
|
|
710
710
|
sx: {
|
|
711
711
|
display: "grid",
|
|
@@ -717,22 +717,22 @@ const ot = ({
|
|
|
717
717
|
xs: "repeat(2, 112px)",
|
|
718
718
|
md: "repeat(2, 168px)"
|
|
719
719
|
},
|
|
720
|
-
gap: `${
|
|
720
|
+
gap: `${te}px`,
|
|
721
721
|
gridAutoFlow: "column"
|
|
722
722
|
},
|
|
723
723
|
children: t.map((c, o) => {
|
|
724
|
-
var
|
|
724
|
+
var a, m;
|
|
725
725
|
return /* @__PURE__ */ e(
|
|
726
|
-
|
|
726
|
+
C,
|
|
727
727
|
{
|
|
728
728
|
sx: {
|
|
729
729
|
overflow: "hidden",
|
|
730
730
|
borderRadius: 2
|
|
731
731
|
},
|
|
732
732
|
children: /* @__PURE__ */ e(
|
|
733
|
-
|
|
733
|
+
Z,
|
|
734
734
|
{
|
|
735
|
-
imageUrl: `https://olimpo.bet${(
|
|
735
|
+
imageUrl: `https://olimpo.bet${(a = c.imageUrl) != null ? a : ""}`,
|
|
736
736
|
size: "sm",
|
|
737
737
|
fillParent: !0,
|
|
738
738
|
onClick: () => r == null ? void 0 : r(c, o)
|
|
@@ -744,20 +744,20 @@ const ot = ({
|
|
|
744
744
|
})
|
|
745
745
|
}
|
|
746
746
|
);
|
|
747
|
-
},
|
|
747
|
+
}, le = ({
|
|
748
748
|
title: t,
|
|
749
749
|
amount: i,
|
|
750
750
|
subtitle: r,
|
|
751
|
-
buttonText:
|
|
751
|
+
buttonText: n,
|
|
752
752
|
onButtonClick: c,
|
|
753
753
|
backgroundImage: o,
|
|
754
|
-
alt:
|
|
754
|
+
alt: a,
|
|
755
755
|
className: m = "",
|
|
756
756
|
variant: g = "small"
|
|
757
757
|
}) => {
|
|
758
|
-
const
|
|
758
|
+
const v = i ? i.slice(0, 2) : "", x = i ? i.slice(2) : "", w = g === "large";
|
|
759
759
|
return /* @__PURE__ */ p(
|
|
760
|
-
|
|
760
|
+
C,
|
|
761
761
|
{
|
|
762
762
|
className: m,
|
|
763
763
|
sx: {
|
|
@@ -765,30 +765,30 @@ const ot = ({
|
|
|
765
765
|
width: "100%",
|
|
766
766
|
maxWidth: {
|
|
767
767
|
xs: 328,
|
|
768
|
-
lg:
|
|
768
|
+
lg: w ? 618 : 456
|
|
769
769
|
},
|
|
770
770
|
mx: "auto"
|
|
771
771
|
},
|
|
772
772
|
children: [
|
|
773
773
|
o && /* @__PURE__ */ e(
|
|
774
|
-
|
|
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:
|
|
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
|
-
|
|
787
|
+
C,
|
|
788
788
|
{
|
|
789
789
|
component: "img",
|
|
790
790
|
src: o,
|
|
791
|
-
alt:
|
|
791
|
+
alt: a != null ? a : "Fondo promocional",
|
|
792
792
|
sx: {
|
|
793
793
|
width: "100%",
|
|
794
794
|
height: "100%",
|
|
@@ -804,7 +804,7 @@ const ot = ({
|
|
|
804
804
|
}
|
|
805
805
|
),
|
|
806
806
|
/* @__PURE__ */ e(
|
|
807
|
-
|
|
807
|
+
C,
|
|
808
808
|
{
|
|
809
809
|
sx: {
|
|
810
810
|
position: "absolute",
|
|
@@ -818,7 +818,7 @@ const ot = ({
|
|
|
818
818
|
pr: { xs: "14%", lg: "15%" }
|
|
819
819
|
},
|
|
820
820
|
children: /* @__PURE__ */ p(
|
|
821
|
-
|
|
821
|
+
C,
|
|
822
822
|
{
|
|
823
823
|
sx: {
|
|
824
824
|
maxWidth: "60%",
|
|
@@ -839,7 +839,7 @@ const ot = ({
|
|
|
839
839
|
}
|
|
840
840
|
),
|
|
841
841
|
i && /* @__PURE__ */ p(
|
|
842
|
-
|
|
842
|
+
C,
|
|
843
843
|
{
|
|
844
844
|
component: "p",
|
|
845
845
|
sx: {
|
|
@@ -857,19 +857,19 @@ const ot = ({
|
|
|
857
857
|
},
|
|
858
858
|
children: [
|
|
859
859
|
/* @__PURE__ */ e(
|
|
860
|
-
|
|
860
|
+
C,
|
|
861
861
|
{
|
|
862
862
|
component: "span",
|
|
863
863
|
sx: { fontSize: { xs: 35, lg: 48 }, mr: 0.5 },
|
|
864
|
-
children:
|
|
864
|
+
children: v
|
|
865
865
|
}
|
|
866
866
|
),
|
|
867
867
|
/* @__PURE__ */ e(
|
|
868
|
-
|
|
868
|
+
C,
|
|
869
869
|
{
|
|
870
870
|
component: "span",
|
|
871
871
|
sx: { fontSize: { xs: 52, lg: 77 } },
|
|
872
|
-
children:
|
|
872
|
+
children: x
|
|
873
873
|
}
|
|
874
874
|
)
|
|
875
875
|
]
|
|
@@ -887,7 +887,7 @@ const ot = ({
|
|
|
887
887
|
children: r
|
|
888
888
|
}
|
|
889
889
|
),
|
|
890
|
-
|
|
890
|
+
n && /* @__PURE__ */ e(T, { onClick: c, children: n })
|
|
891
891
|
]
|
|
892
892
|
}
|
|
893
893
|
)
|
|
@@ -896,20 +896,20 @@ const ot = ({
|
|
|
896
896
|
]
|
|
897
897
|
}
|
|
898
898
|
);
|
|
899
|
-
},
|
|
899
|
+
}, rt = ({
|
|
900
900
|
text: t,
|
|
901
901
|
buttonLabel: i = "Conoce más",
|
|
902
902
|
onClick: r,
|
|
903
|
-
imgAlt:
|
|
903
|
+
imgAlt: n = "Club Olimpo",
|
|
904
904
|
imgSrcMobile: c,
|
|
905
905
|
imgSrcDesktopBg: o,
|
|
906
|
-
imgSrcDesktopLogo:
|
|
907
|
-
}) => /* @__PURE__ */ p(
|
|
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:
|
|
912
|
+
alt: n,
|
|
913
913
|
className: "orc-co-bgMobileImg"
|
|
914
914
|
}
|
|
915
915
|
) }),
|
|
@@ -918,60 +918,60 @@ const ot = ({
|
|
|
918
918
|
"img",
|
|
919
919
|
{
|
|
920
920
|
src: o,
|
|
921
|
-
alt: `${
|
|
921
|
+
alt: `${n} fondo`,
|
|
922
922
|
className: "orc-co-bgDesktopImg"
|
|
923
923
|
}
|
|
924
924
|
) }),
|
|
925
|
-
|
|
925
|
+
a && /* @__PURE__ */ e("div", { className: "orc-co-logo", children: /* @__PURE__ */ e(
|
|
926
926
|
"img",
|
|
927
927
|
{
|
|
928
|
-
src:
|
|
929
|
-
alt: `${
|
|
928
|
+
src: a,
|
|
929
|
+
alt: `${n} logo`,
|
|
930
930
|
className: "orc-co-logoImg"
|
|
931
931
|
}
|
|
932
932
|
) }),
|
|
933
933
|
/* @__PURE__ */ p("div", { className: "orc-co-desktopContent", children: [
|
|
934
934
|
/* @__PURE__ */ e("p", { className: "orc-co-captionDesktop", children: t }),
|
|
935
|
-
/* @__PURE__ */ e(
|
|
935
|
+
/* @__PURE__ */ e(T, { onClick: r, variant: "primary", size: "md", children: i })
|
|
936
936
|
] })
|
|
937
937
|
] }),
|
|
938
938
|
/* @__PURE__ */ p("div", { className: "orc-co-bottom", children: [
|
|
939
939
|
/* @__PURE__ */ e("p", { className: "orc-co-caption", children: t }),
|
|
940
|
-
/* @__PURE__ */ e(
|
|
940
|
+
/* @__PURE__ */ e(T, { onClick: r, variant: "primary", size: "md", children: i })
|
|
941
941
|
] })
|
|
942
|
-
] }),
|
|
943
|
-
card:
|
|
944
|
-
combinadas:
|
|
945
|
-
apuestaItem:
|
|
946
|
-
lineContainer:
|
|
947
|
-
circle:
|
|
948
|
-
line:
|
|
949
|
-
apuestaText:
|
|
950
|
-
cuotaTotal:
|
|
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
952
|
function ut({ event: t }) {
|
|
953
|
-
var
|
|
953
|
+
var n;
|
|
954
954
|
function i(c) {
|
|
955
|
-
var
|
|
956
|
-
const o = (
|
|
957
|
-
var u,
|
|
958
|
-
let s =
|
|
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 = `${
|
|
960
|
-
id: (
|
|
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
961
|
value: d,
|
|
962
|
-
label:
|
|
963
|
-
odds: (
|
|
964
|
-
bl: (
|
|
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
|
-
}),
|
|
966
|
+
}), v = g.reduce((w, s) => w + s.odds, 0) / 1e3;
|
|
967
967
|
return {
|
|
968
968
|
outcomes: g,
|
|
969
|
-
total:
|
|
969
|
+
total: v.toFixed(2)
|
|
970
970
|
};
|
|
971
971
|
}
|
|
972
972
|
const r = i(t);
|
|
973
973
|
return /* @__PURE__ */ p("div", { className: H.card, children: [
|
|
974
|
-
/* @__PURE__ */ e("div", { className: H.combinadas, children: /* @__PURE__ */ p(
|
|
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,7 +981,7 @@ function ut({ event: t }) {
|
|
|
981
981
|
}
|
|
982
982
|
),
|
|
983
983
|
/* @__PURE__ */ e("img", { src: "/assets/img/home/Combinadas/line.png" }),
|
|
984
|
-
/* @__PURE__ */ e(
|
|
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
985
|
/* @__PURE__ */ p("div", { className: H.lineContainer, children: [
|
|
986
986
|
/* @__PURE__ */ e("div", { className: H.circle }),
|
|
987
987
|
o < r.outcomes.length - 1 && /* @__PURE__ */ e("div", { className: H.line })
|
|
@@ -996,123 +996,123 @@ function ut({ event: t }) {
|
|
|
996
996
|
] }) }),
|
|
997
997
|
/* @__PURE__ */ p("button", { onClick: () => {
|
|
998
998
|
var c, o;
|
|
999
|
-
return console.log((o = (c = r == null ? void 0 : r.outcomes) == null ? void 0 : c.map((
|
|
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
1001
|
/* @__PURE__ */ p("span", { children: [
|
|
1002
1002
|
"Cuota total: ",
|
|
1003
|
-
/* @__PURE__ */ e("strong", { children: (((
|
|
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
|
|
1010
|
-
var c, o,
|
|
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(${
|
|
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__ */ p(
|
|
1019
|
-
/* @__PURE__ */ p(
|
|
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
|
-
|
|
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: (
|
|
1026
|
+
time: (a = (o = i == null ? void 0 : i.matchClock) == null ? void 0 : o.minute) != null ? a : ""
|
|
1027
1027
|
}
|
|
1028
1028
|
),
|
|
1029
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
|
-
|
|
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(
|
|
1038
|
-
/* @__PURE__ */ e(
|
|
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__ */ p(
|
|
1042
|
-
/* @__PURE__ */ e(D, { spacing: 1, children: ((s = (
|
|
1043
|
-
/* @__PURE__ */ e(D, { spacing: 2, children: ((l = (d = r == null ? void 0 : r[0]) == null ? void 0 : d.outcomes) != null ? l : []).map((u,
|
|
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
1044
|
console.log(u.id);
|
|
1045
|
-
}, children: u.odds === void 0 ? "X" : (u.odds / 1e3).toFixed(2) },
|
|
1045
|
+
}, children: u.odds === void 0 ? "X" : (u.odds / 1e3).toFixed(2) }, _)) })
|
|
1046
1046
|
] })
|
|
1047
1047
|
] }) });
|
|
1048
1048
|
}
|
|
1049
|
-
const
|
|
1050
|
-
date:
|
|
1049
|
+
const ht = "oraculo__OraculoEventDate-module__date___xhIlh", ft = {
|
|
1050
|
+
date: ht
|
|
1051
1051
|
};
|
|
1052
|
-
function
|
|
1053
|
-
return /* @__PURE__ */ e("div", { className: `oli-font ${
|
|
1052
|
+
function xt({ text: t }) {
|
|
1053
|
+
return /* @__PURE__ */ e("div", { className: `oli-font ${ft.date}`, children: t });
|
|
1054
1054
|
}
|
|
1055
|
-
const
|
|
1056
|
-
cardContainer:
|
|
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
1057
|
cardBackground: vt,
|
|
1058
|
-
jugadas:
|
|
1058
|
+
jugadas: yt
|
|
1059
1059
|
};
|
|
1060
|
-
function
|
|
1061
|
-
var r,
|
|
1062
|
-
function i(
|
|
1063
|
-
const
|
|
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(), s =
|
|
1066
|
-
let l =
|
|
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"), `${
|
|
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__ */ p("div", { className:
|
|
1074
|
-
/* @__PURE__ */ e(
|
|
1075
|
-
/* @__PURE__ */ e("div", { className:
|
|
1076
|
-
/* @__PURE__ */ p(
|
|
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
1077
|
/* @__PURE__ */ p(D, { spacing: 1, columns: "1fr auto 1fr", children: [
|
|
1078
1078
|
/* @__PURE__ */ e(
|
|
1079
|
-
|
|
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(
|
|
1087
|
-
/* @__PURE__ */ e(
|
|
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(
|
|
1089
|
+
/* @__PURE__ */ e(xt, { text: i(t.start) })
|
|
1090
1090
|
] }),
|
|
1091
|
-
/* @__PURE__ */ p(
|
|
1092
|
-
/* @__PURE__ */ e(D, { spacing: 1, children: ((o = (c = (
|
|
1093
|
-
/* @__PURE__ */ e("div", { className:
|
|
1094
|
-
console.log(
|
|
1095
|
-
}, children: (
|
|
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
|
|
1100
|
+
function St({
|
|
1101
1101
|
items: t,
|
|
1102
1102
|
title: i = "Destacados",
|
|
1103
1103
|
iconUrl: r,
|
|
1104
|
-
onViewMore:
|
|
1104
|
+
onViewMore: n,
|
|
1105
1105
|
className: c = ""
|
|
1106
1106
|
}) {
|
|
1107
|
-
const o =
|
|
1107
|
+
const o = G(null), [a, m] = U({ isStart: !0, isEnd: !1 }), g = () => {
|
|
1108
1108
|
var d;
|
|
1109
1109
|
(d = o.current) == null || d.prev();
|
|
1110
|
-
},
|
|
1110
|
+
}, v = () => {
|
|
1111
1111
|
var d;
|
|
1112
1112
|
(d = o.current) == null || d.next(), console.log("items: ", t);
|
|
1113
|
-
},
|
|
1114
|
-
|
|
1115
|
-
},
|
|
1113
|
+
}, x = () => {
|
|
1114
|
+
n == null || n();
|
|
1115
|
+
}, w = (d) => {
|
|
1116
1116
|
if (!d || typeof window == "undefined") return;
|
|
1117
1117
|
const u = `https://www.olimpo.bet/promociones/${encodeURIComponent(d)}`;
|
|
1118
1118
|
window.location.href = u;
|
|
@@ -1133,29 +1133,29 @@ function _t({
|
|
|
1133
1133
|
/* @__PURE__ */ e(X, { title: i, iconUrl: r, size: "md" }),
|
|
1134
1134
|
/* @__PURE__ */ p("div", { style: { display: "flex", gap: 8 }, children: [
|
|
1135
1135
|
/* @__PURE__ */ e(
|
|
1136
|
-
|
|
1136
|
+
T,
|
|
1137
1137
|
{
|
|
1138
1138
|
ariaLabel: "Anterior",
|
|
1139
1139
|
variant: "secondary",
|
|
1140
1140
|
iconOnly: !0,
|
|
1141
|
-
leftIcon: /* @__PURE__ */ e(
|
|
1141
|
+
leftIcon: /* @__PURE__ */ e(ae, {}),
|
|
1142
1142
|
onClick: g,
|
|
1143
|
-
disabled:
|
|
1143
|
+
disabled: a.isStart
|
|
1144
1144
|
}
|
|
1145
1145
|
),
|
|
1146
1146
|
/* @__PURE__ */ e(
|
|
1147
|
-
|
|
1147
|
+
T,
|
|
1148
1148
|
{
|
|
1149
1149
|
ariaLabel: "Siguiente",
|
|
1150
1150
|
variant: "secondary",
|
|
1151
1151
|
iconOnly: !0,
|
|
1152
|
-
rightIcon: /* @__PURE__ */ e(
|
|
1153
|
-
onClick:
|
|
1154
|
-
disabled:
|
|
1152
|
+
rightIcon: /* @__PURE__ */ e(ie, {}),
|
|
1153
|
+
onClick: v,
|
|
1154
|
+
disabled: a.isEnd
|
|
1155
1155
|
}
|
|
1156
1156
|
)
|
|
1157
1157
|
] }),
|
|
1158
|
-
/* @__PURE__ */ e(
|
|
1158
|
+
/* @__PURE__ */ e(T, { variant: "secondary", onClick: x, children: "Ver más" })
|
|
1159
1159
|
]
|
|
1160
1160
|
}
|
|
1161
1161
|
),
|
|
@@ -1179,7 +1179,7 @@ function _t({
|
|
|
1179
1179
|
marginTop: 16,
|
|
1180
1180
|
cursor: "pointer"
|
|
1181
1181
|
},
|
|
1182
|
-
onClick: () =>
|
|
1182
|
+
onClick: () => w(d.promotion),
|
|
1183
1183
|
children: /* @__PURE__ */ e(
|
|
1184
1184
|
"img",
|
|
1185
1185
|
{
|
|
@@ -1203,34 +1203,34 @@ function _t({
|
|
|
1203
1203
|
)
|
|
1204
1204
|
] });
|
|
1205
1205
|
}
|
|
1206
|
-
const
|
|
1207
|
-
var s, d, l, u,
|
|
1206
|
+
const wt = (t) => {
|
|
1207
|
+
var s, d, l, u, _, k;
|
|
1208
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 : "",
|
|
1210
|
-
window.location.href =
|
|
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
1211
|
};
|
|
1212
1212
|
function Ct({
|
|
1213
1213
|
items: t,
|
|
1214
1214
|
title: i = "Top Juegos",
|
|
1215
1215
|
iconUrl: r,
|
|
1216
|
-
onCardClick:
|
|
1216
|
+
onCardClick: n
|
|
1217
1217
|
}) {
|
|
1218
|
-
const c =
|
|
1219
|
-
() => t.map((o,
|
|
1218
|
+
const c = re(
|
|
1219
|
+
() => t.map((o, a) => {
|
|
1220
1220
|
var m;
|
|
1221
1221
|
return {
|
|
1222
1222
|
...o,
|
|
1223
1223
|
// si no viene orden, usamos el índice (1-based)
|
|
1224
|
-
orden: (m = o.orden) != null ? m :
|
|
1225
|
-
_originalIndex:
|
|
1224
|
+
orden: (m = o.orden) != null ? m : a + 1,
|
|
1225
|
+
_originalIndex: a
|
|
1226
1226
|
};
|
|
1227
|
-
}).sort((o,
|
|
1227
|
+
}).sort((o, a) => o.orden != null && a.orden != null ? o.orden - a.orden : o._originalIndex - a._originalIndex),
|
|
1228
1228
|
[t]
|
|
1229
1229
|
);
|
|
1230
|
-
return /* @__PURE__ */ e("section", { style: { width: "100%" }, children: /* @__PURE__ */ p(
|
|
1230
|
+
return /* @__PURE__ */ e("section", { style: { width: "100%" }, children: /* @__PURE__ */ p(A, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
1231
1231
|
/* @__PURE__ */ e(X, { title: i, iconUrl: r, size: "md" }),
|
|
1232
1232
|
/* @__PURE__ */ e(
|
|
1233
|
-
|
|
1233
|
+
C,
|
|
1234
1234
|
{
|
|
1235
1235
|
sx: {
|
|
1236
1236
|
display: "grid",
|
|
@@ -1243,14 +1243,14 @@ function Ct({
|
|
|
1243
1243
|
width: "100%"
|
|
1244
1244
|
},
|
|
1245
1245
|
children: c.slice(0, 6).map((o) => {
|
|
1246
|
-
var
|
|
1246
|
+
var a;
|
|
1247
1247
|
return /* @__PURE__ */ e(
|
|
1248
|
-
|
|
1248
|
+
ot,
|
|
1249
1249
|
{
|
|
1250
|
-
imageUrl: `https://olimpo.bet${(
|
|
1250
|
+
imageUrl: `https://olimpo.bet${(a = o.logo) != null ? a : ""}`,
|
|
1251
1251
|
orden: o.orden,
|
|
1252
1252
|
onClick: () => {
|
|
1253
|
-
|
|
1253
|
+
n ? n(o) : wt(o);
|
|
1254
1254
|
}
|
|
1255
1255
|
},
|
|
1256
1256
|
o.machine
|
|
@@ -1260,25 +1260,25 @@ function Ct({
|
|
|
1260
1260
|
)
|
|
1261
1261
|
] }) });
|
|
1262
1262
|
}
|
|
1263
|
-
const
|
|
1264
|
-
var r,
|
|
1265
|
-
return (
|
|
1263
|
+
const Et = (t, i) => {
|
|
1264
|
+
var r, n;
|
|
1265
|
+
return (n = (r = t.orden) != null ? r : t.machine) != null ? n : i;
|
|
1266
1266
|
}, $t = (t) => {
|
|
1267
|
-
var s, d, l, u,
|
|
1267
|
+
var s, d, l, u, _, k;
|
|
1268
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 : "",
|
|
1270
|
-
window.location.href =
|
|
1271
|
-
},
|
|
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 = ({
|
|
1272
1272
|
items: t,
|
|
1273
1273
|
title: i = "Casino en vivo",
|
|
1274
1274
|
subtitle: r = "Disfruta la emoción en tus juegos favoritos y gana en tiempo real.",
|
|
1275
|
-
backgroundMobileUrl:
|
|
1275
|
+
backgroundMobileUrl: n = "",
|
|
1276
1276
|
backgroundDesktopUrl: c = "",
|
|
1277
1277
|
onCardClick: o,
|
|
1278
|
-
onViewMore:
|
|
1278
|
+
onViewMore: a,
|
|
1279
1279
|
className: m
|
|
1280
1280
|
}) => /* @__PURE__ */ p(
|
|
1281
|
-
|
|
1281
|
+
C,
|
|
1282
1282
|
{
|
|
1283
1283
|
className: m,
|
|
1284
1284
|
sx: {
|
|
@@ -1292,7 +1292,7 @@ const wt = (t, i) => {
|
|
|
1292
1292
|
},
|
|
1293
1293
|
children: [
|
|
1294
1294
|
/* @__PURE__ */ e(
|
|
1295
|
-
|
|
1295
|
+
C,
|
|
1296
1296
|
{
|
|
1297
1297
|
sx: {
|
|
1298
1298
|
position: "absolute",
|
|
@@ -1301,7 +1301,7 @@ const wt = (t, i) => {
|
|
|
1301
1301
|
xs: `
|
|
1302
1302
|
linear-gradient(to bottom, #121212 0%, rgba(18,18,18,0) 10%),
|
|
1303
1303
|
linear-gradient(to top, #121212 0%, rgba(18,18,18,0) 10%),
|
|
1304
|
-
url('${
|
|
1304
|
+
url('${n}')
|
|
1305
1305
|
`,
|
|
1306
1306
|
md: `
|
|
1307
1307
|
linear-gradient(to bottom, #121212 0%, rgba(18,18,18,0) 10%),
|
|
@@ -1317,7 +1317,7 @@ const wt = (t, i) => {
|
|
|
1317
1317
|
}
|
|
1318
1318
|
),
|
|
1319
1319
|
/* @__PURE__ */ p(
|
|
1320
|
-
|
|
1320
|
+
C,
|
|
1321
1321
|
{
|
|
1322
1322
|
sx: {
|
|
1323
1323
|
position: "relative",
|
|
@@ -1334,7 +1334,7 @@ const wt = (t, i) => {
|
|
|
1334
1334
|
textAlign: { xs: "center", md: "left" }
|
|
1335
1335
|
},
|
|
1336
1336
|
children: [
|
|
1337
|
-
/* @__PURE__ */ p(
|
|
1337
|
+
/* @__PURE__ */ p(A, { spacing: 3, sx: { maxWidth: { md: 280 } }, children: [
|
|
1338
1338
|
/* @__PURE__ */ e(
|
|
1339
1339
|
M,
|
|
1340
1340
|
{
|
|
@@ -1360,18 +1360,18 @@ const wt = (t, i) => {
|
|
|
1360
1360
|
children: r
|
|
1361
1361
|
}
|
|
1362
1362
|
),
|
|
1363
|
-
/* @__PURE__ */ e(
|
|
1364
|
-
|
|
1363
|
+
/* @__PURE__ */ e(C, { sx: { display: { xs: "none", md: "block" } }, children: /* @__PURE__ */ e(
|
|
1364
|
+
T,
|
|
1365
1365
|
{
|
|
1366
1366
|
variant: "primary",
|
|
1367
1367
|
size: "md",
|
|
1368
|
-
onClick: () =>
|
|
1368
|
+
onClick: () => a == null ? void 0 : a(),
|
|
1369
1369
|
children: "Ver más"
|
|
1370
1370
|
}
|
|
1371
1371
|
) })
|
|
1372
1372
|
] }),
|
|
1373
1373
|
/* @__PURE__ */ e(
|
|
1374
|
-
|
|
1374
|
+
C,
|
|
1375
1375
|
{
|
|
1376
1376
|
sx: {
|
|
1377
1377
|
display: "flex",
|
|
@@ -1381,30 +1381,30 @@ const wt = (t, i) => {
|
|
|
1381
1381
|
py: { xs: 3, md: 0 },
|
|
1382
1382
|
alignItems: "center"
|
|
1383
1383
|
},
|
|
1384
|
-
children: (t != null ? t : []).slice(0, 3).map((g,
|
|
1385
|
-
var
|
|
1384
|
+
children: (t != null ? t : []).slice(0, 3).map((g, v) => {
|
|
1385
|
+
var x;
|
|
1386
1386
|
return /* @__PURE__ */ e(
|
|
1387
|
-
|
|
1387
|
+
nt,
|
|
1388
1388
|
{
|
|
1389
|
-
logo: `https://olimpo.bet${(
|
|
1389
|
+
logo: `https://olimpo.bet${(x = g.logo) != null ? x : ""}`,
|
|
1390
1390
|
provider: g.provider,
|
|
1391
1391
|
providerName: g.web_name,
|
|
1392
1392
|
machine: g.machine,
|
|
1393
1393
|
onClick: () => {
|
|
1394
|
-
o ? o(g,
|
|
1394
|
+
o ? o(g, v) : $t(g);
|
|
1395
1395
|
}
|
|
1396
1396
|
},
|
|
1397
|
-
|
|
1397
|
+
Et(g, v)
|
|
1398
1398
|
);
|
|
1399
1399
|
})
|
|
1400
1400
|
}
|
|
1401
1401
|
),
|
|
1402
|
-
/* @__PURE__ */ e(
|
|
1403
|
-
|
|
1402
|
+
/* @__PURE__ */ e(C, { sx: { display: { xs: "block", md: "none" } }, children: /* @__PURE__ */ e(
|
|
1403
|
+
T,
|
|
1404
1404
|
{
|
|
1405
1405
|
variant: "primary",
|
|
1406
1406
|
size: "lg",
|
|
1407
|
-
onClick: () =>
|
|
1407
|
+
onClick: () => a == null ? void 0 : a(),
|
|
1408
1408
|
children: "Ver más"
|
|
1409
1409
|
}
|
|
1410
1410
|
) })
|
|
@@ -1413,52 +1413,52 @@ const wt = (t, i) => {
|
|
|
1413
1413
|
)
|
|
1414
1414
|
]
|
|
1415
1415
|
}
|
|
1416
|
-
),
|
|
1417
|
-
var r,
|
|
1418
|
-
return (
|
|
1419
|
-
},
|
|
1420
|
-
var s, d, l, u,
|
|
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
1421
|
if (typeof window == "undefined") return;
|
|
1422
|
-
const i = (s = t.name) != null ? s : "", r = (d = t.provider) != null ? d : "",
|
|
1423
|
-
window.location.href =
|
|
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
1424
|
}, Nt = (t, i = !0, r = 4) => {
|
|
1425
|
-
const
|
|
1425
|
+
const n = t.map((a, m) => {
|
|
1426
1426
|
var g;
|
|
1427
1427
|
return {
|
|
1428
|
-
id:
|
|
1429
|
-
imageUrl: (g =
|
|
1428
|
+
id: Se(a, m),
|
|
1429
|
+
imageUrl: (g = a.logo) != null ? g : ""
|
|
1430
1430
|
};
|
|
1431
1431
|
});
|
|
1432
|
-
if (!
|
|
1432
|
+
if (!n.length) return [];
|
|
1433
1433
|
const c = [];
|
|
1434
1434
|
let o = 0;
|
|
1435
1435
|
if (i) {
|
|
1436
|
-
const
|
|
1436
|
+
const a = Math.min(n.length, 5);
|
|
1437
1437
|
c.push({
|
|
1438
1438
|
id: "mosaic-0",
|
|
1439
1439
|
kind: "mosaic",
|
|
1440
|
-
items:
|
|
1441
|
-
}), o =
|
|
1440
|
+
items: n.slice(0, a)
|
|
1441
|
+
}), o = a;
|
|
1442
1442
|
}
|
|
1443
|
-
for (; o <
|
|
1444
|
-
const
|
|
1443
|
+
for (; o < n.length; ) {
|
|
1444
|
+
const a = Math.min(o + r, n.length);
|
|
1445
1445
|
c.push({
|
|
1446
1446
|
id: `grid-${o}`,
|
|
1447
1447
|
kind: "grid",
|
|
1448
|
-
items:
|
|
1449
|
-
}), o =
|
|
1448
|
+
items: n.slice(o, a)
|
|
1449
|
+
}), o = a;
|
|
1450
1450
|
}
|
|
1451
1451
|
return c;
|
|
1452
|
-
},
|
|
1452
|
+
}, Ot = ({
|
|
1453
1453
|
items: t,
|
|
1454
1454
|
title: i = "Casino",
|
|
1455
1455
|
iconUrl: r = "/assets/img/home/Casino/diamante.svg",
|
|
1456
|
-
onItemClick:
|
|
1456
|
+
onItemClick: n,
|
|
1457
1457
|
onViewMore: c,
|
|
1458
1458
|
mosaicFirst: o = !0,
|
|
1459
|
-
gridSize:
|
|
1459
|
+
gridSize: a = 4
|
|
1460
1460
|
}) => {
|
|
1461
|
-
const m =
|
|
1461
|
+
const m = G(null), [g, v] = U({ isStart: !0, isEnd: !1 }), x = Nt(t, o, a), w = () => {
|
|
1462
1462
|
var l;
|
|
1463
1463
|
(l = m.current) == null || l.prev();
|
|
1464
1464
|
}, s = () => {
|
|
@@ -1467,9 +1467,9 @@ const wt = (t, i) => {
|
|
|
1467
1467
|
}, d = () => {
|
|
1468
1468
|
c == null || c();
|
|
1469
1469
|
};
|
|
1470
|
-
return /* @__PURE__ */ e("section", { children: /* @__PURE__ */ p(
|
|
1470
|
+
return /* @__PURE__ */ e("section", { children: /* @__PURE__ */ p(A, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
1471
1471
|
/* @__PURE__ */ p(
|
|
1472
|
-
|
|
1472
|
+
C,
|
|
1473
1473
|
{
|
|
1474
1474
|
sx: {
|
|
1475
1475
|
display: "grid",
|
|
@@ -1488,7 +1488,7 @@ const wt = (t, i) => {
|
|
|
1488
1488
|
}
|
|
1489
1489
|
),
|
|
1490
1490
|
/* @__PURE__ */ p(
|
|
1491
|
-
|
|
1491
|
+
C,
|
|
1492
1492
|
{
|
|
1493
1493
|
sx: {
|
|
1494
1494
|
display: "flex",
|
|
@@ -1497,23 +1497,23 @@ const wt = (t, i) => {
|
|
|
1497
1497
|
},
|
|
1498
1498
|
children: [
|
|
1499
1499
|
/* @__PURE__ */ e(
|
|
1500
|
-
|
|
1500
|
+
T,
|
|
1501
1501
|
{
|
|
1502
1502
|
ariaLabel: "Anterior",
|
|
1503
1503
|
variant: "secondary",
|
|
1504
1504
|
iconOnly: !0,
|
|
1505
|
-
leftIcon: /* @__PURE__ */ e(
|
|
1506
|
-
onClick:
|
|
1505
|
+
leftIcon: /* @__PURE__ */ e(fe, {}),
|
|
1506
|
+
onClick: w,
|
|
1507
1507
|
disabled: g.isStart
|
|
1508
1508
|
}
|
|
1509
1509
|
),
|
|
1510
1510
|
/* @__PURE__ */ e(
|
|
1511
|
-
|
|
1511
|
+
T,
|
|
1512
1512
|
{
|
|
1513
1513
|
ariaLabel: "Siguiente",
|
|
1514
1514
|
variant: "secondary",
|
|
1515
1515
|
iconOnly: !0,
|
|
1516
|
-
rightIcon: /* @__PURE__ */ e(
|
|
1516
|
+
rightIcon: /* @__PURE__ */ e(xe, {}),
|
|
1517
1517
|
onClick: s,
|
|
1518
1518
|
disabled: g.isEnd
|
|
1519
1519
|
}
|
|
@@ -1521,7 +1521,7 @@ const wt = (t, i) => {
|
|
|
1521
1521
|
]
|
|
1522
1522
|
}
|
|
1523
1523
|
),
|
|
1524
|
-
/* @__PURE__ */ e(
|
|
1524
|
+
/* @__PURE__ */ e(C, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ e(T, { variant: "secondary", onClick: d, children: "Ver más" }) })
|
|
1525
1525
|
]
|
|
1526
1526
|
}
|
|
1527
1527
|
),
|
|
@@ -1529,7 +1529,7 @@ const wt = (t, i) => {
|
|
|
1529
1529
|
J,
|
|
1530
1530
|
{
|
|
1531
1531
|
ref: m,
|
|
1532
|
-
items:
|
|
1532
|
+
items: x,
|
|
1533
1533
|
perPage: 1,
|
|
1534
1534
|
gap: "0px",
|
|
1535
1535
|
options: {
|
|
@@ -1542,68 +1542,68 @@ const wt = (t, i) => {
|
|
|
1542
1542
|
focus: "start"
|
|
1543
1543
|
},
|
|
1544
1544
|
renderItem: (l) => /* @__PURE__ */ e("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ e(
|
|
1545
|
-
|
|
1545
|
+
_e,
|
|
1546
1546
|
{
|
|
1547
1547
|
items: l.items,
|
|
1548
1548
|
layout: l.kind === "mosaic" ? "mosaic" : "grid",
|
|
1549
1549
|
onClick: (u) => {
|
|
1550
|
-
const
|
|
1551
|
-
(
|
|
1550
|
+
const _ = t.find(
|
|
1551
|
+
(k, E) => Se(k, E) === u.id
|
|
1552
1552
|
);
|
|
1553
|
-
|
|
1553
|
+
_ && (n ? n(_) : kt(_));
|
|
1554
1554
|
}
|
|
1555
1555
|
}
|
|
1556
1556
|
) }),
|
|
1557
|
-
onMove: ({ isStart: l, isEnd: u }) =>
|
|
1557
|
+
onMove: ({ isStart: l, isEnd: u }) => v({ isStart: l, isEnd: u })
|
|
1558
1558
|
}
|
|
1559
1559
|
)
|
|
1560
1560
|
] }) });
|
|
1561
|
-
},
|
|
1562
|
-
var r,
|
|
1563
|
-
return (
|
|
1564
|
-
},
|
|
1565
|
-
var s, d, l, u,
|
|
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
1566
|
if (typeof window == "undefined") return;
|
|
1567
|
-
const i = (s = t.name) != null ? s : "", r = (d = t.provider) != null ? d : "",
|
|
1568
|
-
window.location.href =
|
|
1569
|
-
},
|
|
1570
|
-
const
|
|
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
1571
|
var g;
|
|
1572
1572
|
return {
|
|
1573
|
-
id:
|
|
1574
|
-
imageUrl: (g =
|
|
1573
|
+
id: we(a, m),
|
|
1574
|
+
imageUrl: (g = a.logo) != null ? g : ""
|
|
1575
1575
|
};
|
|
1576
1576
|
});
|
|
1577
|
-
if (!
|
|
1577
|
+
if (!n.length) return [];
|
|
1578
1578
|
const c = [];
|
|
1579
1579
|
let o = 0;
|
|
1580
1580
|
if (i) {
|
|
1581
|
-
const
|
|
1581
|
+
const a = Math.min(n.length, 5);
|
|
1582
1582
|
c.push({
|
|
1583
1583
|
id: "mosaic-0",
|
|
1584
1584
|
kind: "mosaic",
|
|
1585
|
-
items:
|
|
1586
|
-
}), o =
|
|
1585
|
+
items: n.slice(0, a)
|
|
1586
|
+
}), o = a;
|
|
1587
1587
|
}
|
|
1588
|
-
for (; o <
|
|
1589
|
-
const
|
|
1588
|
+
for (; o < n.length; ) {
|
|
1589
|
+
const a = Math.min(o + r, n.length);
|
|
1590
1590
|
c.push({
|
|
1591
1591
|
id: `grid-${o}`,
|
|
1592
1592
|
kind: "grid",
|
|
1593
|
-
items:
|
|
1594
|
-
}), o =
|
|
1593
|
+
items: n.slice(o, a)
|
|
1594
|
+
}), o = a;
|
|
1595
1595
|
}
|
|
1596
1596
|
return c;
|
|
1597
|
-
},
|
|
1597
|
+
}, Pt = ({
|
|
1598
1598
|
items: t,
|
|
1599
1599
|
title: i = "Virtuales",
|
|
1600
1600
|
iconUrl: r = "/assets/img/home/Virtuales/virtuales.svg",
|
|
1601
|
-
onItemClick:
|
|
1601
|
+
onItemClick: n,
|
|
1602
1602
|
onViewMore: c,
|
|
1603
1603
|
mosaicFirst: o = !0,
|
|
1604
|
-
gridSize:
|
|
1604
|
+
gridSize: a = 4
|
|
1605
1605
|
}) => {
|
|
1606
|
-
const m =
|
|
1606
|
+
const m = G(null), [g, v] = U({ isStart: !0, isEnd: !1 }), x = Tt(t, o, a), w = () => {
|
|
1607
1607
|
var l;
|
|
1608
1608
|
(l = m.current) == null || l.prev();
|
|
1609
1609
|
}, s = () => {
|
|
@@ -1612,9 +1612,9 @@ const wt = (t, i) => {
|
|
|
1612
1612
|
}, d = () => {
|
|
1613
1613
|
c == null || c();
|
|
1614
1614
|
};
|
|
1615
|
-
return /* @__PURE__ */ e("section", { children: /* @__PURE__ */ p(
|
|
1615
|
+
return /* @__PURE__ */ e("section", { children: /* @__PURE__ */ p(A, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
1616
1616
|
/* @__PURE__ */ p(
|
|
1617
|
-
|
|
1617
|
+
C,
|
|
1618
1618
|
{
|
|
1619
1619
|
sx: {
|
|
1620
1620
|
display: "grid",
|
|
@@ -1633,7 +1633,7 @@ const wt = (t, i) => {
|
|
|
1633
1633
|
}
|
|
1634
1634
|
),
|
|
1635
1635
|
/* @__PURE__ */ p(
|
|
1636
|
-
|
|
1636
|
+
C,
|
|
1637
1637
|
{
|
|
1638
1638
|
sx: {
|
|
1639
1639
|
display: "flex",
|
|
@@ -1642,23 +1642,23 @@ const wt = (t, i) => {
|
|
|
1642
1642
|
},
|
|
1643
1643
|
children: [
|
|
1644
1644
|
/* @__PURE__ */ e(
|
|
1645
|
-
|
|
1645
|
+
T,
|
|
1646
1646
|
{
|
|
1647
1647
|
ariaLabel: "Anterior",
|
|
1648
1648
|
variant: "secondary",
|
|
1649
1649
|
iconOnly: !0,
|
|
1650
|
-
leftIcon: /* @__PURE__ */ e(
|
|
1651
|
-
onClick:
|
|
1650
|
+
leftIcon: /* @__PURE__ */ e(fe, {}),
|
|
1651
|
+
onClick: w,
|
|
1652
1652
|
disabled: g.isStart
|
|
1653
1653
|
}
|
|
1654
1654
|
),
|
|
1655
1655
|
/* @__PURE__ */ e(
|
|
1656
|
-
|
|
1656
|
+
T,
|
|
1657
1657
|
{
|
|
1658
1658
|
ariaLabel: "Siguiente",
|
|
1659
1659
|
variant: "secondary",
|
|
1660
1660
|
iconOnly: !0,
|
|
1661
|
-
rightIcon: /* @__PURE__ */ e(
|
|
1661
|
+
rightIcon: /* @__PURE__ */ e(xe, {}),
|
|
1662
1662
|
onClick: s,
|
|
1663
1663
|
disabled: g.isEnd
|
|
1664
1664
|
}
|
|
@@ -1666,7 +1666,7 @@ const wt = (t, i) => {
|
|
|
1666
1666
|
]
|
|
1667
1667
|
}
|
|
1668
1668
|
),
|
|
1669
|
-
/* @__PURE__ */ e(
|
|
1669
|
+
/* @__PURE__ */ e(C, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ e(T, { variant: "secondary", onClick: d, children: "Ver más" }) })
|
|
1670
1670
|
]
|
|
1671
1671
|
}
|
|
1672
1672
|
),
|
|
@@ -1674,7 +1674,7 @@ const wt = (t, i) => {
|
|
|
1674
1674
|
J,
|
|
1675
1675
|
{
|
|
1676
1676
|
ref: m,
|
|
1677
|
-
items:
|
|
1677
|
+
items: x,
|
|
1678
1678
|
perPage: 1,
|
|
1679
1679
|
gap: "0",
|
|
1680
1680
|
options: {
|
|
@@ -1688,23 +1688,23 @@ const wt = (t, i) => {
|
|
|
1688
1688
|
perMove: 1
|
|
1689
1689
|
},
|
|
1690
1690
|
renderItem: (l) => /* @__PURE__ */ e("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ e(
|
|
1691
|
-
|
|
1691
|
+
_e,
|
|
1692
1692
|
{
|
|
1693
1693
|
items: l.items,
|
|
1694
1694
|
layout: l.kind === "mosaic" ? "mosaic" : "grid",
|
|
1695
1695
|
onClick: (u) => {
|
|
1696
|
-
const
|
|
1697
|
-
(
|
|
1696
|
+
const _ = t.find(
|
|
1697
|
+
(k, E) => we(k, E) === u.id
|
|
1698
1698
|
);
|
|
1699
|
-
|
|
1699
|
+
_ && (n ? n(_) : Rt(_));
|
|
1700
1700
|
}
|
|
1701
1701
|
}
|
|
1702
1702
|
) }),
|
|
1703
|
-
onMove: ({ isStart: l, isEnd: u }) =>
|
|
1703
|
+
onMove: ({ isStart: l, isEnd: u }) => v({ isStart: l, isEnd: u })
|
|
1704
1704
|
}
|
|
1705
1705
|
)
|
|
1706
1706
|
] }) });
|
|
1707
|
-
},
|
|
1707
|
+
}, Ft = (t) => ({
|
|
1708
1708
|
// width: "100vw",
|
|
1709
1709
|
position: "relative",
|
|
1710
1710
|
// left: "50%",
|
|
@@ -1723,15 +1723,15 @@ const wt = (t, i) => {
|
|
|
1723
1723
|
backgroundRepeat: "no-repeat",
|
|
1724
1724
|
backgroundPosition: "center",
|
|
1725
1725
|
backgroundSize: "cover"
|
|
1726
|
-
}),
|
|
1726
|
+
}), de = {
|
|
1727
1727
|
textAlign: "center",
|
|
1728
1728
|
lineHeight: 1.1,
|
|
1729
1729
|
mb: 1.5
|
|
1730
|
-
},
|
|
1730
|
+
}, pe = {
|
|
1731
1731
|
display: "inline-block",
|
|
1732
1732
|
fontWeight: 600,
|
|
1733
1733
|
fontSize: 24
|
|
1734
|
-
},
|
|
1734
|
+
}, me = {
|
|
1735
1735
|
display: "inline-block",
|
|
1736
1736
|
fontSize: 24,
|
|
1737
1737
|
lineHeight: 1.1,
|
|
@@ -1741,34 +1741,34 @@ const wt = (t, i) => {
|
|
|
1741
1741
|
0 0 6px rgba(255, 255, 255, .6),
|
|
1742
1742
|
0 1px 0 rgba(137, 137, 137, .85)
|
|
1743
1743
|
`
|
|
1744
|
-
},
|
|
1744
|
+
}, Ut = ({
|
|
1745
1745
|
headline: t,
|
|
1746
1746
|
headline2: i,
|
|
1747
1747
|
items: r,
|
|
1748
|
-
backgroundImageUrl:
|
|
1748
|
+
backgroundImageUrl: n
|
|
1749
1749
|
}) => {
|
|
1750
|
-
const c = t, o = i,
|
|
1751
|
-
return
|
|
1752
|
-
|
|
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,
|
|
1753
1753
|
{
|
|
1754
1754
|
component: "section",
|
|
1755
1755
|
sx: {
|
|
1756
|
-
...
|
|
1756
|
+
...v,
|
|
1757
1757
|
textAlign: "center"
|
|
1758
1758
|
},
|
|
1759
1759
|
children: [
|
|
1760
|
-
(c || o) && /* @__PURE__ */ p(
|
|
1761
|
-
c && /* @__PURE__ */ e(M, { component: "span", sx:
|
|
1762
|
-
o && /* @__PURE__ */ p(
|
|
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: [
|
|
1763
1763
|
/* @__PURE__ */ e("br", {}),
|
|
1764
|
-
/* @__PURE__ */ e(M, { component: "span", sx:
|
|
1764
|
+
/* @__PURE__ */ e(M, { component: "span", sx: me, children: o })
|
|
1765
1765
|
] })
|
|
1766
1766
|
] }),
|
|
1767
|
-
/* @__PURE__ */ p(
|
|
1767
|
+
/* @__PURE__ */ p(C, { children: [
|
|
1768
1768
|
/* @__PURE__ */ e(
|
|
1769
1769
|
J,
|
|
1770
1770
|
{
|
|
1771
|
-
ref:
|
|
1771
|
+
ref: x,
|
|
1772
1772
|
items: r,
|
|
1773
1773
|
perPage: 1,
|
|
1774
1774
|
gap: "12px",
|
|
@@ -1787,28 +1787,28 @@ const wt = (t, i) => {
|
|
|
1787
1787
|
options: {
|
|
1788
1788
|
autoWidth: !1
|
|
1789
1789
|
},
|
|
1790
|
-
renderItem: (u) => /* @__PURE__ */ e(
|
|
1791
|
-
onMove: ({ index: u, isStart:
|
|
1792
|
-
s({ isStart:
|
|
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);
|
|
1793
1793
|
}
|
|
1794
1794
|
}
|
|
1795
1795
|
),
|
|
1796
1796
|
m && /* @__PURE__ */ e(
|
|
1797
|
-
|
|
1797
|
+
be,
|
|
1798
1798
|
{
|
|
1799
1799
|
total: r.length,
|
|
1800
1800
|
active: d,
|
|
1801
1801
|
onSelect: (u) => {
|
|
1802
|
-
var
|
|
1803
|
-
l(u), (
|
|
1802
|
+
var _;
|
|
1803
|
+
l(u), (_ = x.current) == null || _.go(u);
|
|
1804
1804
|
}
|
|
1805
1805
|
}
|
|
1806
1806
|
)
|
|
1807
1807
|
] })
|
|
1808
1808
|
]
|
|
1809
1809
|
}
|
|
1810
|
-
) : /* @__PURE__ */ e(
|
|
1811
|
-
|
|
1810
|
+
) : /* @__PURE__ */ e(C, { component: "section", sx: v, children: /* @__PURE__ */ p(
|
|
1811
|
+
C,
|
|
1812
1812
|
{
|
|
1813
1813
|
sx: {
|
|
1814
1814
|
maxWidth: 1200,
|
|
@@ -1820,7 +1820,7 @@ const wt = (t, i) => {
|
|
|
1820
1820
|
},
|
|
1821
1821
|
children: [
|
|
1822
1822
|
(c || o) && /* @__PURE__ */ e(
|
|
1823
|
-
|
|
1823
|
+
C,
|
|
1824
1824
|
{
|
|
1825
1825
|
sx: {
|
|
1826
1826
|
display: "flex",
|
|
@@ -1829,18 +1829,18 @@ const wt = (t, i) => {
|
|
|
1829
1829
|
minHeight: "100%"
|
|
1830
1830
|
},
|
|
1831
1831
|
children: /* @__PURE__ */ p(
|
|
1832
|
-
|
|
1832
|
+
C,
|
|
1833
1833
|
{
|
|
1834
1834
|
sx: {
|
|
1835
|
-
...
|
|
1835
|
+
...de,
|
|
1836
1836
|
textAlign: "left",
|
|
1837
1837
|
mb: 0
|
|
1838
1838
|
},
|
|
1839
1839
|
children: [
|
|
1840
|
-
c && /* @__PURE__ */ e(M, { component: "span", sx:
|
|
1841
|
-
o && /* @__PURE__ */ p(
|
|
1840
|
+
c && /* @__PURE__ */ e(M, { component: "span", sx: pe, children: c }),
|
|
1841
|
+
o && /* @__PURE__ */ p(V, { children: [
|
|
1842
1842
|
/* @__PURE__ */ e("br", {}),
|
|
1843
|
-
/* @__PURE__ */ e(M, { component: "span", sx:
|
|
1843
|
+
/* @__PURE__ */ e(M, { component: "span", sx: me, children: o })
|
|
1844
1844
|
] })
|
|
1845
1845
|
]
|
|
1846
1846
|
}
|
|
@@ -1848,7 +1848,7 @@ const wt = (t, i) => {
|
|
|
1848
1848
|
}
|
|
1849
1849
|
),
|
|
1850
1850
|
/* @__PURE__ */ e(
|
|
1851
|
-
|
|
1851
|
+
C,
|
|
1852
1852
|
{
|
|
1853
1853
|
sx: {
|
|
1854
1854
|
display: "flex",
|
|
@@ -1857,42 +1857,42 @@ const wt = (t, i) => {
|
|
|
1857
1857
|
flexWrap: "nowrap",
|
|
1858
1858
|
gap: 4
|
|
1859
1859
|
},
|
|
1860
|
-
children: r.map((u,
|
|
1861
|
-
|
|
1860
|
+
children: r.map((u, _) => /* @__PURE__ */ e(
|
|
1861
|
+
le,
|
|
1862
1862
|
{
|
|
1863
1863
|
onButtonClick: u.onButtonClick,
|
|
1864
1864
|
...u
|
|
1865
1865
|
},
|
|
1866
|
-
|
|
1866
|
+
_
|
|
1867
1867
|
))
|
|
1868
1868
|
}
|
|
1869
1869
|
)
|
|
1870
1870
|
]
|
|
1871
1871
|
}
|
|
1872
1872
|
) });
|
|
1873
|
-
},
|
|
1873
|
+
}, zt = ({
|
|
1874
1874
|
className: t = "",
|
|
1875
1875
|
fullBleed: i = !0,
|
|
1876
1876
|
items: r,
|
|
1877
|
-
selectedIndex:
|
|
1877
|
+
selectedIndex: n = 0,
|
|
1878
1878
|
ariaLabel: c
|
|
1879
1879
|
}) => {
|
|
1880
|
-
const o =
|
|
1880
|
+
const o = G(null), a = G(null);
|
|
1881
1881
|
if (!r) return null;
|
|
1882
1882
|
const m = () => {
|
|
1883
1883
|
window.location.href = "https://www.olimpo.bet/conoce-club-olimpo";
|
|
1884
|
-
}, g = r;
|
|
1884
|
+
}, g = Array.isArray(r) ? r[n] : r;
|
|
1885
1885
|
Ne(() => {
|
|
1886
|
-
if (!o.current || !
|
|
1887
|
-
const
|
|
1888
|
-
|
|
1886
|
+
if (!o.current || !a.current || typeof ResizeObserver == "undefined") return;
|
|
1887
|
+
const x = o.current, w = a.current, s = () => {
|
|
1888
|
+
x.style.setProperty(
|
|
1889
1889
|
"--orc-co-bottomH",
|
|
1890
|
-
`${
|
|
1890
|
+
`${w.offsetHeight + 16}px`
|
|
1891
1891
|
);
|
|
1892
1892
|
}, d = new ResizeObserver(s);
|
|
1893
|
-
return d.observe(
|
|
1893
|
+
return d.observe(w), s(), () => d.disconnect();
|
|
1894
1894
|
}, []);
|
|
1895
|
-
const
|
|
1895
|
+
const v = [
|
|
1896
1896
|
"orc-co-wrap",
|
|
1897
1897
|
i ? "orc-co-fullBleed" : "",
|
|
1898
1898
|
t
|
|
@@ -1901,10 +1901,10 @@ const wt = (t, i) => {
|
|
|
1901
1901
|
"section",
|
|
1902
1902
|
{
|
|
1903
1903
|
ref: o,
|
|
1904
|
-
className:
|
|
1904
|
+
className: v,
|
|
1905
1905
|
"aria-label": c || g.imgAlt || "Club Olimpo",
|
|
1906
|
-
children: /* @__PURE__ */ e("div", { ref:
|
|
1907
|
-
|
|
1906
|
+
children: /* @__PURE__ */ e("div", { ref: a, children: /* @__PURE__ */ e(
|
|
1907
|
+
rt,
|
|
1908
1908
|
{
|
|
1909
1909
|
text: g.text,
|
|
1910
1910
|
onClick: m,
|
|
@@ -1916,132 +1916,132 @@ const wt = (t, i) => {
|
|
|
1916
1916
|
) })
|
|
1917
1917
|
}
|
|
1918
1918
|
);
|
|
1919
|
-
},
|
|
1920
|
-
controls:
|
|
1919
|
+
}, Lt = "oraculo__OraculoSeccionEventoCombinadas-module__controls___Zsta4", At = {
|
|
1920
|
+
controls: Lt
|
|
1921
1921
|
};
|
|
1922
|
-
function
|
|
1922
|
+
function Wt({
|
|
1923
1923
|
items: t,
|
|
1924
1924
|
title: i = "Combinadas del Olimpo",
|
|
1925
1925
|
iconUrl: r,
|
|
1926
|
-
onViewMore:
|
|
1926
|
+
onViewMore: n,
|
|
1927
1927
|
className: c = ""
|
|
1928
1928
|
}) {
|
|
1929
|
-
const o =
|
|
1930
|
-
var
|
|
1931
|
-
(
|
|
1932
|
-
},
|
|
1933
|
-
var
|
|
1934
|
-
(
|
|
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
1935
|
}, s = () => {
|
|
1936
|
-
|
|
1936
|
+
n == null || n();
|
|
1937
1937
|
};
|
|
1938
|
-
function d(
|
|
1939
|
-
const
|
|
1938
|
+
function d(E, O, P) {
|
|
1939
|
+
const I = [];
|
|
1940
1940
|
for (const N of P) {
|
|
1941
|
-
const
|
|
1942
|
-
f
|
|
1943
|
-
const y =
|
|
1944
|
-
(
|
|
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)
|
|
1945
1945
|
);
|
|
1946
|
-
return y.length > 0 && f
|
|
1947
|
-
...
|
|
1946
|
+
return y.length > 0 && h[f.eventId].push({
|
|
1947
|
+
...f,
|
|
1948
1948
|
outcomes: y
|
|
1949
|
-
}),
|
|
1950
|
-
}, {}),
|
|
1951
|
-
|
|
1952
|
-
if (
|
|
1953
|
-
const
|
|
1949
|
+
}), h;
|
|
1950
|
+
}, {}), q = l(N);
|
|
1951
|
+
E.forEach((h) => {
|
|
1952
|
+
if (h.id !== N.prePackCouponRows[0].eventId) return;
|
|
1953
|
+
const f = L;
|
|
1954
1954
|
let y = null;
|
|
1955
|
-
for (const
|
|
1956
|
-
if ([...
|
|
1957
|
-
y =
|
|
1955
|
+
for (const b of q)
|
|
1956
|
+
if ([...b.requiredOutcomeIds].every(($) => f.has($))) {
|
|
1957
|
+
y = b.decimal;
|
|
1958
1958
|
break;
|
|
1959
1959
|
}
|
|
1960
|
-
|
|
1961
|
-
...
|
|
1960
|
+
I.push({
|
|
1961
|
+
...h,
|
|
1962
1962
|
combinadoTotal: y,
|
|
1963
|
-
betoffers:
|
|
1963
|
+
betoffers: F[h.id] || [],
|
|
1964
1964
|
couponId: N.id
|
|
1965
1965
|
// optional for tracking
|
|
1966
1966
|
});
|
|
1967
1967
|
});
|
|
1968
1968
|
}
|
|
1969
|
-
return
|
|
1969
|
+
return I;
|
|
1970
1970
|
}
|
|
1971
|
-
function l(
|
|
1971
|
+
function l(E) {
|
|
1972
1972
|
var P;
|
|
1973
1973
|
const O = [];
|
|
1974
|
-
for (const
|
|
1975
|
-
if (
|
|
1974
|
+
for (const I of E.prePackCouponRows)
|
|
1975
|
+
if (I.type === "BET_BUILDER" && ((P = I.group) != null && P.groups)) {
|
|
1976
1976
|
const N = /* @__PURE__ */ new Set();
|
|
1977
|
-
|
|
1978
|
-
var
|
|
1979
|
-
(
|
|
1977
|
+
I.group.groups.forEach((L) => {
|
|
1978
|
+
var F;
|
|
1979
|
+
(F = L.outcomes) == null || F.forEach((q) => N.add(q.id));
|
|
1980
1980
|
}), O.push({
|
|
1981
1981
|
requiredOutcomeIds: N,
|
|
1982
|
-
decimal:
|
|
1982
|
+
decimal: I.odds.decimal
|
|
1983
1983
|
});
|
|
1984
1984
|
}
|
|
1985
1985
|
return O;
|
|
1986
1986
|
}
|
|
1987
|
-
function u(
|
|
1987
|
+
function u(E) {
|
|
1988
1988
|
var P;
|
|
1989
1989
|
const O = /* @__PURE__ */ new Set();
|
|
1990
|
-
for (const
|
|
1991
|
-
for (const N of
|
|
1992
|
-
N.type === "BET_BUILDER" && ((P = N.group) != null && P.groups) && N.group.groups.forEach((
|
|
1993
|
-
var
|
|
1994
|
-
(
|
|
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));
|
|
1995
1995
|
}), N.type === "SIMPLE" && N.outcome && O.add(N.outcome.id);
|
|
1996
1996
|
return O;
|
|
1997
1997
|
}
|
|
1998
|
-
async function
|
|
1999
|
-
var
|
|
1998
|
+
async function _() {
|
|
1999
|
+
var E, O, P;
|
|
2000
2000
|
try {
|
|
2001
|
-
const
|
|
2002
|
-
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) {
|
|
2003
2003
|
console.error("Could not extract group ID");
|
|
2004
2004
|
return;
|
|
2005
2005
|
}
|
|
2006
|
-
const N = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${
|
|
2007
|
-
|
|
2008
|
-
d(
|
|
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)
|
|
2009
2009
|
);
|
|
2010
|
-
} catch (
|
|
2011
|
-
console.error("loadDataEventSpecial error:",
|
|
2010
|
+
} catch (I) {
|
|
2011
|
+
console.error("loadDataEventSpecial error:", I);
|
|
2012
2012
|
}
|
|
2013
2013
|
}
|
|
2014
|
-
return
|
|
2015
|
-
t &&
|
|
2016
|
-
}, [t]), /* @__PURE__ */ e("section", { className: c || void 0, style: { width: "100%" }, children: /* @__PURE__ */ p(
|
|
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
2017
|
/* @__PURE__ */ p(D, { spacing: 1.5, columns: "1fr auto auto", justify: "start", children: [
|
|
2018
2018
|
/* @__PURE__ */ e(X, { title: i, iconUrl: r, size: "md" }),
|
|
2019
|
-
/* @__PURE__ */ p("div", { className:
|
|
2019
|
+
/* @__PURE__ */ p("div", { className: At.controls, children: [
|
|
2020
2020
|
/* @__PURE__ */ p(D, { spacing: 1, columns: "auto auto", children: [
|
|
2021
2021
|
/* @__PURE__ */ e(
|
|
2022
|
-
|
|
2022
|
+
T,
|
|
2023
2023
|
{
|
|
2024
2024
|
ariaLabel: "Anterior",
|
|
2025
2025
|
variant: "secondary",
|
|
2026
2026
|
iconOnly: !0,
|
|
2027
|
-
leftIcon: /* @__PURE__ */ e(
|
|
2028
|
-
onClick:
|
|
2029
|
-
disabled:
|
|
2027
|
+
leftIcon: /* @__PURE__ */ e(ae, {}),
|
|
2028
|
+
onClick: x,
|
|
2029
|
+
disabled: a.isStart
|
|
2030
2030
|
}
|
|
2031
2031
|
),
|
|
2032
2032
|
/* @__PURE__ */ e(
|
|
2033
|
-
|
|
2033
|
+
T,
|
|
2034
2034
|
{
|
|
2035
2035
|
ariaLabel: "Siguiente",
|
|
2036
2036
|
variant: "secondary",
|
|
2037
2037
|
iconOnly: !0,
|
|
2038
|
-
rightIcon: /* @__PURE__ */ e(
|
|
2039
|
-
onClick:
|
|
2040
|
-
disabled:
|
|
2038
|
+
rightIcon: /* @__PURE__ */ e(ie, {}),
|
|
2039
|
+
onClick: w,
|
|
2040
|
+
disabled: a.isEnd
|
|
2041
2041
|
}
|
|
2042
2042
|
)
|
|
2043
2043
|
] }),
|
|
2044
|
-
/* @__PURE__ */ e(
|
|
2044
|
+
/* @__PURE__ */ e(T, { variant: "secondary", onClick: s, children: "Ver más" })
|
|
2045
2045
|
] })
|
|
2046
2046
|
] }),
|
|
2047
2047
|
/* @__PURE__ */ e(
|
|
@@ -2056,58 +2056,58 @@ function Lt({
|
|
|
2056
2056
|
breakpoints: {
|
|
2057
2057
|
768: { perPage: 1.2, gap: "12px", padding: { left: "0px", right: "0px" } }
|
|
2058
2058
|
},
|
|
2059
|
-
renderItem: (
|
|
2060
|
-
onMove: ({ isStart:
|
|
2059
|
+
renderItem: (E) => /* @__PURE__ */ e(ut, { event: E }),
|
|
2060
|
+
onMove: ({ isStart: E, isEnd: O }) => m({ isStart: E, isEnd: O })
|
|
2061
2061
|
}
|
|
2062
2062
|
)
|
|
2063
2063
|
] }) });
|
|
2064
2064
|
}
|
|
2065
|
-
function
|
|
2065
|
+
function Bt({
|
|
2066
2066
|
items: t,
|
|
2067
2067
|
title: i = "En vivo",
|
|
2068
2068
|
iconUrl: r,
|
|
2069
|
-
onViewMore:
|
|
2069
|
+
onViewMore: n,
|
|
2070
2070
|
className: c = ""
|
|
2071
2071
|
}) {
|
|
2072
2072
|
var s, d;
|
|
2073
2073
|
console.log("wefwef", t);
|
|
2074
|
-
const o =
|
|
2074
|
+
const o = G(null), [a, m] = U({ isStart: !0, isEnd: !1 }), g = () => {
|
|
2075
2075
|
var l;
|
|
2076
2076
|
(l = o.current) == null || l.prev();
|
|
2077
|
-
},
|
|
2077
|
+
}, v = () => {
|
|
2078
2078
|
var l;
|
|
2079
2079
|
(l = o.current) == null || l.next(), console.log("items: ", t);
|
|
2080
|
-
},
|
|
2081
|
-
|
|
2080
|
+
}, x = () => {
|
|
2081
|
+
n == null || n();
|
|
2082
2082
|
};
|
|
2083
2083
|
return /* @__PURE__ */ p("section", { className: c || void 0, style: { width: "100%" }, children: [
|
|
2084
2084
|
/* @__PURE__ */ p(D, { spacing: 1.5, columns: "1fr auto auto", justify: "start", children: [
|
|
2085
2085
|
/* @__PURE__ */ e(X, { title: i, iconUrl: r, size: "md" }),
|
|
2086
2086
|
/* @__PURE__ */ p("div", { style: { display: "flex", gap: 8 }, children: [
|
|
2087
2087
|
/* @__PURE__ */ e(
|
|
2088
|
-
|
|
2088
|
+
T,
|
|
2089
2089
|
{
|
|
2090
2090
|
ariaLabel: "Anterior",
|
|
2091
2091
|
variant: "secondary",
|
|
2092
2092
|
iconOnly: !0,
|
|
2093
|
-
leftIcon: /* @__PURE__ */ e(
|
|
2093
|
+
leftIcon: /* @__PURE__ */ e(ae, {}),
|
|
2094
2094
|
onClick: g,
|
|
2095
|
-
disabled:
|
|
2095
|
+
disabled: a.isStart
|
|
2096
2096
|
}
|
|
2097
2097
|
),
|
|
2098
2098
|
/* @__PURE__ */ e(
|
|
2099
|
-
|
|
2099
|
+
T,
|
|
2100
2100
|
{
|
|
2101
2101
|
ariaLabel: "Siguiente",
|
|
2102
2102
|
variant: "secondary",
|
|
2103
2103
|
iconOnly: !0,
|
|
2104
|
-
rightIcon: /* @__PURE__ */ e(
|
|
2105
|
-
onClick:
|
|
2106
|
-
disabled:
|
|
2104
|
+
rightIcon: /* @__PURE__ */ e(ie, {}),
|
|
2105
|
+
onClick: v,
|
|
2106
|
+
disabled: a.isEnd
|
|
2107
2107
|
}
|
|
2108
2108
|
)
|
|
2109
2109
|
] }),
|
|
2110
|
-
/* @__PURE__ */ e(
|
|
2110
|
+
/* @__PURE__ */ e(T, { variant: "secondary", onClick: x, children: "Ver más" })
|
|
2111
2111
|
] }),
|
|
2112
2112
|
/* @__PURE__ */ e(
|
|
2113
2113
|
J,
|
|
@@ -2121,66 +2121,66 @@ function jt({
|
|
|
2121
2121
|
768: { perPage: 1, gap: "8px", focus: "center", padding: { left: "16px", right: "16px" } },
|
|
2122
2122
|
1024: { perPage: 2.5, gap: "10px", padding: { right: "16px" } }
|
|
2123
2123
|
},
|
|
2124
|
-
renderItem: (l) => /* @__PURE__ */ e(
|
|
2124
|
+
renderItem: (l) => /* @__PURE__ */ e(gt, { ...l }),
|
|
2125
2125
|
onMove: ({ isStart: l, isEnd: u }) => m({ isStart: l, isEnd: u })
|
|
2126
2126
|
}
|
|
2127
2127
|
)
|
|
2128
2128
|
] });
|
|
2129
2129
|
}
|
|
2130
|
-
const
|
|
2131
|
-
wrapper:
|
|
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
2132
|
container: Gt,
|
|
2133
|
-
buttonWrapper:
|
|
2133
|
+
buttonWrapper: Mt
|
|
2134
2134
|
};
|
|
2135
|
-
function
|
|
2135
|
+
function Dt({
|
|
2136
2136
|
items: t,
|
|
2137
2137
|
title: i = "En vivo",
|
|
2138
2138
|
iconUrl: r,
|
|
2139
|
-
onViewMore:
|
|
2139
|
+
onViewMore: n,
|
|
2140
2140
|
className: c = ""
|
|
2141
2141
|
}) {
|
|
2142
2142
|
const o = /* @__PURE__ */ new Date();
|
|
2143
2143
|
o.toISOString();
|
|
2144
|
-
const
|
|
2145
|
-
|
|
2146
|
-
const m =
|
|
2147
|
-
|
|
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();
|
|
2148
2148
|
};
|
|
2149
2149
|
async function d() {
|
|
2150
2150
|
try {
|
|
2151
|
-
const
|
|
2151
|
+
const k = t.events.map((I) => {
|
|
2152
2152
|
var N;
|
|
2153
|
-
return (N =
|
|
2154
|
-
}),
|
|
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
2155
|
l(P);
|
|
2156
|
-
} catch (
|
|
2157
|
-
console.error(
|
|
2156
|
+
} catch (k) {
|
|
2157
|
+
console.error(k);
|
|
2158
2158
|
}
|
|
2159
2159
|
}
|
|
2160
|
-
async function l(
|
|
2160
|
+
async function l(k) {
|
|
2161
2161
|
try {
|
|
2162
|
-
const O = await (await fetch(
|
|
2163
|
-
|
|
2164
|
-
} catch (
|
|
2165
|
-
console.error(
|
|
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);
|
|
2166
2166
|
}
|
|
2167
2167
|
}
|
|
2168
|
-
function u(
|
|
2169
|
-
const P =
|
|
2168
|
+
function u(k, E) {
|
|
2169
|
+
const P = E.filter((I) => {
|
|
2170
2170
|
var N;
|
|
2171
|
-
return ((N =
|
|
2172
|
-
}).reduce((
|
|
2173
|
-
return
|
|
2174
|
-
...
|
|
2175
|
-
outcome: P[
|
|
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]
|
|
2176
2176
|
}));
|
|
2177
2177
|
}
|
|
2178
|
-
return
|
|
2178
|
+
return Y(() => {
|
|
2179
2179
|
t && t.events.length > 0 && d();
|
|
2180
|
-
}, [t]), /* @__PURE__ */ e("section", { className: c || void 0, style: { width: "100%" }, children: /* @__PURE__ */ p("div", { className:
|
|
2181
|
-
/* @__PURE__ */ e("div", { className:
|
|
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: [
|
|
2182
2182
|
/* @__PURE__ */ e(X, { title: "Eventos de la semana" }),
|
|
2183
|
-
/* @__PURE__ */ e("div", { className:
|
|
2183
|
+
/* @__PURE__ */ e("div", { className: ne.buttonWrapper, children: /* @__PURE__ */ e(T, { variant: "secondary", size: "lg", fullWidth: !0, onClick: () => {
|
|
2184
2184
|
s();
|
|
2185
2185
|
}, children: "Ver más" }) })
|
|
2186
2186
|
] }) }),
|
|
@@ -2188,24 +2188,61 @@ function Mt({
|
|
|
2188
2188
|
J,
|
|
2189
2189
|
{
|
|
2190
2190
|
ref: m,
|
|
2191
|
-
items:
|
|
2191
|
+
items: x,
|
|
2192
2192
|
perPage: 3.5,
|
|
2193
2193
|
gap: "16px",
|
|
2194
2194
|
options: { autoWidth: !0 },
|
|
2195
2195
|
breakpoints: {
|
|
2196
2196
|
1024: { perPage: 1.4, gap: "8px", focus: "center", padding: { left: "8px", right: "8px" } }
|
|
2197
2197
|
},
|
|
2198
|
-
renderItem: (
|
|
2199
|
-
onMove: ({ isStart:
|
|
2198
|
+
renderItem: (k) => /* @__PURE__ */ e(_t, { event: k }),
|
|
2199
|
+
onMove: ({ isStart: k, isEnd: E }) => v({ isStart: k, isEnd: E })
|
|
2200
2200
|
}
|
|
2201
2201
|
) })
|
|
2202
2202
|
] }) });
|
|
2203
2203
|
}
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
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
|
|
2207
2244
|
}) {
|
|
2208
|
-
const [r,
|
|
2245
|
+
const [r, n] = U(0), c = t.length || 1;
|
|
2209
2246
|
return /* @__PURE__ */ p(
|
|
2210
2247
|
z,
|
|
2211
2248
|
{
|
|
@@ -2243,9 +2280,9 @@ function Dt({
|
|
|
2243
2280
|
drag: !0,
|
|
2244
2281
|
focus: "center"
|
|
2245
2282
|
},
|
|
2246
|
-
onMove: ({ index: o }) =>
|
|
2283
|
+
onMove: ({ index: o }) => n(o),
|
|
2247
2284
|
renderItem: (o) => {
|
|
2248
|
-
var
|
|
2285
|
+
var a;
|
|
2249
2286
|
return /* @__PURE__ */ p(
|
|
2250
2287
|
z,
|
|
2251
2288
|
{
|
|
@@ -2278,7 +2315,7 @@ function Dt({
|
|
|
2278
2315
|
z,
|
|
2279
2316
|
{
|
|
2280
2317
|
component: "img",
|
|
2281
|
-
src: (
|
|
2318
|
+
src: (a = o.fallbackSrc) != null ? a : o.desktopSrc,
|
|
2282
2319
|
alt: "",
|
|
2283
2320
|
"aria-hidden": !0,
|
|
2284
2321
|
loading: "lazy",
|
|
@@ -2327,7 +2364,7 @@ function Dt({
|
|
|
2327
2364
|
justifyContent: "center",
|
|
2328
2365
|
zIndex: 2
|
|
2329
2366
|
},
|
|
2330
|
-
children: /* @__PURE__ */ e(
|
|
2367
|
+
children: /* @__PURE__ */ e(be, { total: c, active: r })
|
|
2331
2368
|
}
|
|
2332
2369
|
)
|
|
2333
2370
|
]
|
|
@@ -2364,8 +2401,8 @@ function Dt({
|
|
|
2364
2401
|
cursor: o.onclick ? "pointer" : "default"
|
|
2365
2402
|
},
|
|
2366
2403
|
onClick: () => {
|
|
2367
|
-
var
|
|
2368
|
-
return (
|
|
2404
|
+
var a;
|
|
2405
|
+
return (a = o.onclick) == null ? void 0 : a.call(o);
|
|
2369
2406
|
},
|
|
2370
2407
|
children: [
|
|
2371
2408
|
o.icon && /* @__PURE__ */ e(
|
|
@@ -2384,7 +2421,7 @@ function Dt({
|
|
|
2384
2421
|
}
|
|
2385
2422
|
),
|
|
2386
2423
|
/* @__PURE__ */ e(
|
|
2387
|
-
|
|
2424
|
+
ge,
|
|
2388
2425
|
{
|
|
2389
2426
|
sx: {
|
|
2390
2427
|
fontSize: 12,
|
|
@@ -2405,7 +2442,7 @@ function Dt({
|
|
|
2405
2442
|
}
|
|
2406
2443
|
);
|
|
2407
2444
|
}
|
|
2408
|
-
const
|
|
2445
|
+
const qt = [
|
|
2409
2446
|
[
|
|
2410
2447
|
{ src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/IBK.svg", alt: "Interbank" },
|
|
2411
2448
|
{ src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/Yape.svg", alt: "Yape" }
|
|
@@ -2416,14 +2453,14 @@ const Ht = [
|
|
|
2416
2453
|
{ src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/niubiz.svg", alt: "Niubiz" }
|
|
2417
2454
|
]
|
|
2418
2455
|
];
|
|
2419
|
-
function
|
|
2456
|
+
function Kt({
|
|
2420
2457
|
title: t = "Medios de pago",
|
|
2421
|
-
rows: i =
|
|
2458
|
+
rows: i = qt
|
|
2422
2459
|
}) {
|
|
2423
2460
|
const r = i.flat();
|
|
2424
2461
|
return /* @__PURE__ */ p(z, { component: "section", "aria-labelledby": "mp-title", sx: { color: "#fff" }, children: [
|
|
2425
2462
|
/* @__PURE__ */ e(
|
|
2426
|
-
|
|
2463
|
+
ge,
|
|
2427
2464
|
{
|
|
2428
2465
|
id: "mp-title",
|
|
2429
2466
|
variant: "h6",
|
|
@@ -2450,15 +2487,15 @@ function Xt({
|
|
|
2450
2487
|
}
|
|
2451
2488
|
}
|
|
2452
2489
|
),
|
|
2453
|
-
/* @__PURE__ */ e(z, { sx: { display: { xs: "block", md: "none" } }, children: i.map((
|
|
2454
|
-
|
|
2490
|
+
/* @__PURE__ */ e(z, { sx: { display: { xs: "block", md: "none" } }, children: i.map((n, c) => /* @__PURE__ */ e(
|
|
2491
|
+
he,
|
|
2455
2492
|
{
|
|
2456
2493
|
direction: "row",
|
|
2457
2494
|
justifyContent: "center",
|
|
2458
2495
|
alignItems: "center",
|
|
2459
2496
|
gap: 2.5,
|
|
2460
2497
|
flexWrap: "wrap",
|
|
2461
|
-
children:
|
|
2498
|
+
children: n.map((o) => /* @__PURE__ */ e(ce, { ...o }, `${o.src}-${o.alt}`))
|
|
2462
2499
|
},
|
|
2463
2500
|
c
|
|
2464
2501
|
)) }),
|
|
@@ -2474,216 +2511,244 @@ function Xt({
|
|
|
2474
2511
|
gridTemplateColumns: { md: "repeat(auto-fit, 160px)" },
|
|
2475
2512
|
justifyContent: { md: "center" }
|
|
2476
2513
|
},
|
|
2477
|
-
children: r.map((
|
|
2514
|
+
children: r.map((n) => /* @__PURE__ */ e(ce, { ...n }, `${n.src}-${n.alt}`))
|
|
2478
2515
|
}
|
|
2479
2516
|
)
|
|
2480
2517
|
] });
|
|
2481
2518
|
}
|
|
2482
|
-
const
|
|
2483
|
-
OraculoSeccionDestacados:
|
|
2519
|
+
const Yt = {
|
|
2520
|
+
OraculoSeccionDestacados: St,
|
|
2484
2521
|
OraculoSeccionTopJuegos: Ct,
|
|
2485
|
-
OraculoSeccionCasinoEnVivo:
|
|
2486
|
-
OraculoSeccionCasino:
|
|
2487
|
-
OraculoSeccionVirtuales:
|
|
2488
|
-
OraculoSeccionClubOlimpo:
|
|
2489
|
-
OraculoSeccionBonoBienvenida:
|
|
2490
|
-
OraculoSeccionBanners:
|
|
2491
|
-
OraculoSeccionMediosPago:
|
|
2492
|
-
OraculoSeccionEventoEnVivo:
|
|
2493
|
-
OraculoSeccionEventoSemana:
|
|
2494
|
-
OraculoSeccionEventoCombinadas:
|
|
2495
|
-
},
|
|
2496
|
-
Object.entries(
|
|
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
|
+
)
|
|
2497
2536
|
);
|
|
2498
2537
|
class ue extends Error {
|
|
2499
|
-
constructor(i, r,
|
|
2500
|
-
super(`HTTP ${i} ${
|
|
2538
|
+
constructor(i, r, n) {
|
|
2539
|
+
super(`HTTP ${i} ${n}`), this.status = i, this.url = r, this.statusText = n, this.name = "HttpError";
|
|
2501
2540
|
}
|
|
2502
2541
|
}
|
|
2503
|
-
const
|
|
2542
|
+
const uo = ({
|
|
2504
2543
|
sectionsOverride: t,
|
|
2505
2544
|
docId: i = "home",
|
|
2506
2545
|
db: r
|
|
2507
2546
|
}) => {
|
|
2508
|
-
const [
|
|
2509
|
-
|
|
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(() => {
|
|
2510
2551
|
if (t || !r) return;
|
|
2511
|
-
|
|
2512
|
-
const
|
|
2513
|
-
|
|
2552
|
+
a(!0);
|
|
2553
|
+
const h = Pe(
|
|
2554
|
+
Fe(r, "landings", i),
|
|
2514
2555
|
(f) => {
|
|
2515
|
-
var
|
|
2556
|
+
var y;
|
|
2516
2557
|
try {
|
|
2517
|
-
let
|
|
2518
|
-
|
|
2519
|
-
var
|
|
2520
|
-
return ((
|
|
2521
|
-
}).map((
|
|
2522
|
-
} catch (
|
|
2523
|
-
console.error("Error procesando landings/" + i,
|
|
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);
|
|
2563
|
+
} catch (b) {
|
|
2564
|
+
console.error("Error procesando landings/" + i, b);
|
|
2524
2565
|
} finally {
|
|
2525
|
-
|
|
2566
|
+
a(!1);
|
|
2526
2567
|
}
|
|
2527
2568
|
},
|
|
2528
2569
|
(f) => {
|
|
2529
|
-
console.error("Error escuchando landings/" + i, f),
|
|
2570
|
+
console.error("Error escuchando landings/" + i, f), a(!1);
|
|
2530
2571
|
}
|
|
2531
2572
|
);
|
|
2532
|
-
return () =>
|
|
2533
|
-
}, [t, i, r])
|
|
2534
|
-
|
|
2535
|
-
|
|
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();
|
|
2536
2582
|
if (!f) return;
|
|
2537
|
-
const
|
|
2538
|
-
let
|
|
2539
|
-
if (
|
|
2540
|
-
const
|
|
2583
|
+
const y = h.apiMethod || "GET", b = h.apiParams || [];
|
|
2584
|
+
let S = f, $, R;
|
|
2585
|
+
if (y === "GET") {
|
|
2586
|
+
const j = new URL(
|
|
2541
2587
|
f,
|
|
2542
2588
|
typeof window == "undefined" ? "http://localhost" : window.location.origin
|
|
2543
2589
|
);
|
|
2544
|
-
for (const
|
|
2545
|
-
|
|
2546
|
-
|
|
2590
|
+
for (const B of b)
|
|
2591
|
+
B.key && j.searchParams.append(B.key, B.value);
|
|
2592
|
+
S = j.toString();
|
|
2547
2593
|
} else {
|
|
2548
|
-
const
|
|
2549
|
-
for (const
|
|
2550
|
-
|
|
2551
|
-
|
|
2594
|
+
const j = new URLSearchParams();
|
|
2595
|
+
for (const B of b)
|
|
2596
|
+
B.key && j.append(B.key, B.value);
|
|
2597
|
+
$ = j.toString(), R = {
|
|
2552
2598
|
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
|
|
2553
2599
|
};
|
|
2554
2600
|
}
|
|
2555
|
-
const
|
|
2556
|
-
method:
|
|
2557
|
-
headers:
|
|
2558
|
-
body:
|
|
2601
|
+
const W = await fetch(S, {
|
|
2602
|
+
method: y,
|
|
2603
|
+
headers: R,
|
|
2604
|
+
body: $
|
|
2559
2605
|
});
|
|
2560
|
-
if (!
|
|
2561
|
-
return
|
|
2562
|
-
},
|
|
2563
|
-
() => t ? t.slice() :
|
|
2564
|
-
[t,
|
|
2565
|
-
),
|
|
2566
|
-
|
|
2567
|
-
const
|
|
2568
|
-
if (
|
|
2569
|
-
for (const { s: f, url:
|
|
2570
|
-
const
|
|
2571
|
-
|
|
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 () => {
|
|
2572
2618
|
try {
|
|
2573
|
-
const
|
|
2574
|
-
|
|
2575
|
-
} catch (
|
|
2576
|
-
let
|
|
2577
|
-
|
|
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]: $ }));
|
|
2578
2624
|
} finally {
|
|
2579
|
-
s((
|
|
2625
|
+
s((S) => ({ ...S, [f.id]: !1 }));
|
|
2580
2626
|
}
|
|
2581
2627
|
})());
|
|
2582
2628
|
}
|
|
2583
|
-
}, [
|
|
2584
|
-
const
|
|
2585
|
-
() =>
|
|
2586
|
-
[
|
|
2587
|
-
), O = (
|
|
2588
|
-
const
|
|
2589
|
-
for (const
|
|
2590
|
-
const
|
|
2591
|
-
if (
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
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;
|
|
2605
2655
|
}
|
|
2606
|
-
return
|
|
2607
|
-
}) : [], P = (
|
|
2656
|
+
return y;
|
|
2657
|
+
}) : [], P = (h) => {
|
|
2608
2658
|
const f = {};
|
|
2609
|
-
if (!Array.isArray(
|
|
2610
|
-
for (const
|
|
2611
|
-
if (!
|
|
2612
|
-
const
|
|
2613
|
-
if (
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
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";
|
|
2671
|
+
else if (b === "function") {
|
|
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;
|
|
2627
2681
|
}
|
|
2628
2682
|
return f;
|
|
2629
|
-
},
|
|
2630
|
-
const
|
|
2683
|
+
}, I = (h, f, y) => {
|
|
2684
|
+
const b = y ? { ...y } : {};
|
|
2631
2685
|
if (f) {
|
|
2632
|
-
const
|
|
2633
|
-
return
|
|
2686
|
+
const B = (f.variableName || "items").trim() || "items";
|
|
2687
|
+
return b[B] = f.arr || [], b;
|
|
2634
2688
|
}
|
|
2635
|
-
const
|
|
2636
|
-
return
|
|
2637
|
-
}, N = (
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
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(
|
|
2647
2714
|
null,
|
|
2648
|
-
{ arr:
|
|
2649
|
-
|
|
2715
|
+
{ arr: R, variableName: h.variableName },
|
|
2716
|
+
b
|
|
2650
2717
|
);
|
|
2651
|
-
const T = P(b.manualScalarFields);
|
|
2652
|
-
y = { ...y, ...T };
|
|
2653
2718
|
}
|
|
2654
|
-
return
|
|
2655
|
-
},
|
|
2719
|
+
return b;
|
|
2720
|
+
}, F = (h, f, y) => /* @__PURE__ */ e("div", { className: `mx-4 p-4 rounded ${{
|
|
2656
2721
|
loading: "bg-blue-100 text-blue-800",
|
|
2657
2722
|
error: "bg-red-100 text-red-800",
|
|
2658
2723
|
component: "bg-yellow-100 text-yellow-800"
|
|
2659
|
-
}[f]}`, children:
|
|
2660
|
-
var
|
|
2661
|
-
const f =
|
|
2724
|
+
}[f]}`, children: y }, h), q = (h) => {
|
|
2725
|
+
var j;
|
|
2726
|
+
const f = h.componentKey, y = (
|
|
2662
2727
|
// STATIC_COMPONENTS[rawKey] || componentMap[rawKey];
|
|
2663
|
-
|
|
2728
|
+
m[f] || Vt[f]
|
|
2664
2729
|
);
|
|
2665
|
-
if (!
|
|
2666
|
-
return console.warn(`No hay componente registrado para "${f}"`),
|
|
2667
|
-
|
|
2730
|
+
if (!y)
|
|
2731
|
+
return console.warn(`No hay componente registrado para "${f}"`), F(
|
|
2732
|
+
h.id,
|
|
2668
2733
|
"component",
|
|
2669
2734
|
`Componente "${f}" no encontrado`
|
|
2670
2735
|
);
|
|
2671
|
-
const
|
|
2672
|
-
if (
|
|
2673
|
-
if (
|
|
2674
|
-
return
|
|
2675
|
-
|
|
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] : "";
|
|
2737
|
+
if (b) {
|
|
2738
|
+
if ($ && !S)
|
|
2739
|
+
return F(
|
|
2740
|
+
h.id,
|
|
2676
2741
|
"loading",
|
|
2677
|
-
`Cargando datos desde ${
|
|
2742
|
+
`Cargando datos desde ${h.apiUrl}...`
|
|
2678
2743
|
);
|
|
2679
|
-
if (
|
|
2680
|
-
return
|
|
2681
|
-
|
|
2744
|
+
if (R && !S)
|
|
2745
|
+
return F(
|
|
2746
|
+
h.id,
|
|
2682
2747
|
"error",
|
|
2683
|
-
`Error cargando ${
|
|
2748
|
+
`Error cargando ${h.apiUrl}: ${R}`
|
|
2684
2749
|
);
|
|
2685
2750
|
}
|
|
2686
|
-
const
|
|
2751
|
+
const W = L(h);
|
|
2687
2752
|
return /* @__PURE__ */ e(
|
|
2688
2753
|
"div",
|
|
2689
2754
|
{
|
|
@@ -2693,13 +2758,13 @@ const lo = ({
|
|
|
2693
2758
|
width: "100%",
|
|
2694
2759
|
boxSizing: "border-box"
|
|
2695
2760
|
},
|
|
2696
|
-
children: /* @__PURE__ */ e(
|
|
2761
|
+
children: /* @__PURE__ */ e(y, { ...W })
|
|
2697
2762
|
},
|
|
2698
|
-
|
|
2763
|
+
h.id
|
|
2699
2764
|
);
|
|
2700
2765
|
};
|
|
2701
|
-
return o && !t ? /* @__PURE__ */ e("div", { className: "text-xs text-gray-400", children: "Cargando preview..." }) : !o && !t &&
|
|
2702
|
-
|
|
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,
|
|
2703
2768
|
{
|
|
2704
2769
|
className: "oli-font",
|
|
2705
2770
|
maxWidth: !1,
|
|
@@ -2713,46 +2778,46 @@ const lo = ({
|
|
|
2713
2778
|
maxWidth: "100%",
|
|
2714
2779
|
overflowX: "hidden"
|
|
2715
2780
|
},
|
|
2716
|
-
children: /* @__PURE__ */ e(
|
|
2781
|
+
children: /* @__PURE__ */ e(he, { direction: "column", spacing: 8, useFlexGap: !0, children: E.map(q) })
|
|
2717
2782
|
}
|
|
2718
2783
|
);
|
|
2719
2784
|
};
|
|
2720
2785
|
export {
|
|
2721
|
-
|
|
2786
|
+
T as OraculoButton,
|
|
2722
2787
|
J as OraculoCarousel,
|
|
2723
|
-
|
|
2724
|
-
|
|
2788
|
+
be as OraculoCarouselDots,
|
|
2789
|
+
rt as OraculoClubOlimpoVisual,
|
|
2725
2790
|
ut as OraculoEventCombinadasCard,
|
|
2726
|
-
|
|
2727
|
-
|
|
2791
|
+
gt as OraculoEventEnVivoCard,
|
|
2792
|
+
Ae as OraculoEventHeader,
|
|
2728
2793
|
ve as OraculoEventLabel,
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
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,
|
|
2738
2803
|
D as OraculoGridGroup,
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
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,
|
|
2751
2816
|
Ct as OraculoSeccionTopJuegos,
|
|
2752
|
-
|
|
2817
|
+
Pt as OraculoSeccionVirtuales,
|
|
2753
2818
|
X as OraculoSectionTitle,
|
|
2754
2819
|
Ct as OraculoTopJuegoItem,
|
|
2755
|
-
|
|
2756
|
-
|
|
2820
|
+
le as OraculoWelcomeBanner,
|
|
2821
|
+
uo as default
|
|
2757
2822
|
};
|
|
2758
2823
|
//# sourceMappingURL=index.es.js.map
|