oraculo-ui 0.1.46 → 0.1.47
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 +4 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +589 -603
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsx as e, jsxs as p, Fragment as
|
|
2
|
-
import { Link as
|
|
3
|
-
import
|
|
4
|
-
import { Splide as
|
|
1
|
+
import { jsx as e, jsxs as p, Fragment as Y } from "react/jsx-runtime";
|
|
2
|
+
import { Link as _e, Box as F, Typography as pe, Stack as me, Container as Se } from "@mui/material";
|
|
3
|
+
import we, { forwardRef as Ce, useRef as B, useImperativeHandle as Ee, useCallback as re, useState as U, useMemo as te, useLayoutEffect as $e, useEffect as J } from "react";
|
|
4
|
+
import { Splide as Ie, SplideSlide as ke } from "@splidejs/react-splide";
|
|
5
5
|
import C from "@mui/material/Box";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { ChevronLeftRounded as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { onSnapshot as
|
|
6
|
+
import j from "@mui/material/Typography";
|
|
7
|
+
import z from "@mui/material/Stack";
|
|
8
|
+
import { ChevronLeftRounded as oe, ChevronRightRounded as ne } from "@mui/icons-material";
|
|
9
|
+
import ue from "@mui/icons-material/ChevronLeftRounded";
|
|
10
|
+
import ge from "@mui/icons-material/ChevronRightRounded";
|
|
11
|
+
import Ne from "@mui/material/useMediaQuery";
|
|
12
|
+
import { onSnapshot as Oe, doc as Re } from "firebase/firestore";
|
|
13
13
|
function T({
|
|
14
14
|
children: t,
|
|
15
15
|
onClick: i,
|
|
@@ -18,40 +18,40 @@ function T({
|
|
|
18
18
|
rel: c,
|
|
19
19
|
type: o = "button",
|
|
20
20
|
disabled: a = !1,
|
|
21
|
-
variant:
|
|
21
|
+
variant: u = "primary",
|
|
22
22
|
size: g,
|
|
23
|
-
fullWidth:
|
|
23
|
+
fullWidth: y = !1,
|
|
24
24
|
fullHeight: x = !1,
|
|
25
25
|
className: w = "",
|
|
26
26
|
ariaLabel: s,
|
|
27
27
|
leftIcon: d,
|
|
28
28
|
rightIcon: l,
|
|
29
|
-
iconOnly:
|
|
29
|
+
iconOnly: m
|
|
30
30
|
}) {
|
|
31
|
-
const _ = !!t && t !== !0,
|
|
31
|
+
const _ = !!t && t !== !0, R = (!!d ? 1 : 0) + (!!l ? 1 : 0) == 1, P = m != null ? m : R && !_, I = [
|
|
32
32
|
"orc-btn",
|
|
33
|
-
|
|
33
|
+
u === "secondary" ? "orc-btn--secondary" : u === "tertiary" ? "orc-btn--tertiary" : "orc-btn--primary",
|
|
34
34
|
g ? `orc-btn--${g}` : "",
|
|
35
|
-
|
|
35
|
+
y ? "orc-btn--full" : "",
|
|
36
36
|
x ? "orc-btn--fullHeight" : "",
|
|
37
37
|
P ? "orc-btn--iconOnly" : "",
|
|
38
38
|
w
|
|
39
|
-
].filter(Boolean).join(" "), N = /* @__PURE__ */ p(
|
|
39
|
+
].filter(Boolean).join(" "), N = /* @__PURE__ */ p(Y, { 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
|
+
] }), f = a ? !0 : void 0;
|
|
44
44
|
return r ? /* @__PURE__ */ e(
|
|
45
|
-
|
|
45
|
+
_e,
|
|
46
46
|
{
|
|
47
47
|
href: r,
|
|
48
48
|
target: n,
|
|
49
49
|
rel: c,
|
|
50
50
|
"aria-label": s,
|
|
51
|
-
"aria-disabled":
|
|
52
|
-
tabIndex:
|
|
51
|
+
"aria-disabled": f,
|
|
52
|
+
tabIndex: f ? -1 : void 0,
|
|
53
53
|
className: I,
|
|
54
|
-
onClick:
|
|
54
|
+
onClick: f ? (h) => h.preventDefault() : i,
|
|
55
55
|
children: N
|
|
56
56
|
}
|
|
57
57
|
) : /* @__PURE__ */ e(
|
|
@@ -59,14 +59,14 @@ function T({
|
|
|
59
59
|
{
|
|
60
60
|
type: o,
|
|
61
61
|
onClick: i,
|
|
62
|
-
disabled: !!
|
|
62
|
+
disabled: !!f,
|
|
63
63
|
"aria-label": s,
|
|
64
64
|
className: I,
|
|
65
65
|
children: N
|
|
66
66
|
}
|
|
67
67
|
);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function D({
|
|
70
70
|
title: t,
|
|
71
71
|
iconUrl: i,
|
|
72
72
|
size: r = "md",
|
|
@@ -89,7 +89,7 @@ function X({
|
|
|
89
89
|
/* @__PURE__ */ e("h2", { className: "orc-section-title__title", children: t })
|
|
90
90
|
] });
|
|
91
91
|
}
|
|
92
|
-
const
|
|
92
|
+
const he = ({
|
|
93
93
|
total: t,
|
|
94
94
|
active: i,
|
|
95
95
|
onSelect: r,
|
|
@@ -109,7 +109,7 @@ const be = ({
|
|
|
109
109
|
}
|
|
110
110
|
) }, a)) });
|
|
111
111
|
};
|
|
112
|
-
function
|
|
112
|
+
function G({
|
|
113
113
|
children: t,
|
|
114
114
|
minWidth: i = 32,
|
|
115
115
|
spacing: r = 2,
|
|
@@ -131,9 +131,9 @@ function D({
|
|
|
131
131
|
}
|
|
132
132
|
);
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function ae({ src: t, alt: i }) {
|
|
135
135
|
return /* @__PURE__ */ e(
|
|
136
|
-
|
|
136
|
+
F,
|
|
137
137
|
{
|
|
138
138
|
sx: {
|
|
139
139
|
position: "relative",
|
|
@@ -144,7 +144,7 @@ function ce({ src: t, alt: i }) {
|
|
|
144
144
|
display: "inline-block"
|
|
145
145
|
},
|
|
146
146
|
children: /* @__PURE__ */ e(
|
|
147
|
-
|
|
147
|
+
F,
|
|
148
148
|
{
|
|
149
149
|
component: "img",
|
|
150
150
|
src: t,
|
|
@@ -162,7 +162,7 @@ function ce({ src: t, alt: i }) {
|
|
|
162
162
|
}
|
|
163
163
|
);
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function Te({ title: t, subtitle: i }) {
|
|
166
166
|
return /* @__PURE__ */ p(
|
|
167
167
|
"div",
|
|
168
168
|
{
|
|
@@ -217,7 +217,7 @@ function Ue({ title: t, subtitle: i }) {
|
|
|
217
217
|
}
|
|
218
218
|
);
|
|
219
219
|
}
|
|
220
|
-
function
|
|
220
|
+
function Pe({ text: t, color: i = "#ff3b3b", textColor: r = "#fff" }) {
|
|
221
221
|
return /* @__PURE__ */ e(
|
|
222
222
|
"span",
|
|
223
223
|
{
|
|
@@ -238,13 +238,13 @@ function ze({ text: t, color: i = "#ff3b3b", textColor: r = "#fff" }) {
|
|
|
238
238
|
}
|
|
239
239
|
);
|
|
240
240
|
}
|
|
241
|
-
function
|
|
241
|
+
function Fe({ 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(Pe, { 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 Ue({ title: t, subtitle: i, live: r = !1, time: n = "" }) {
|
|
248
248
|
return /* @__PURE__ */ p(
|
|
249
249
|
"div",
|
|
250
250
|
{
|
|
@@ -255,57 +255,57 @@ function Ae({ title: t, subtitle: i, live: r = !1, time: n = "" }) {
|
|
|
255
255
|
color: "#FFFFFF"
|
|
256
256
|
},
|
|
257
257
|
children: [
|
|
258
|
-
/* @__PURE__ */ e(
|
|
259
|
-
/* @__PURE__ */ e(
|
|
258
|
+
/* @__PURE__ */ e(Te, { title: t, subtitle: i }),
|
|
259
|
+
/* @__PURE__ */ e(Fe, { live: r, time: n })
|
|
260
260
|
]
|
|
261
261
|
}
|
|
262
262
|
);
|
|
263
263
|
}
|
|
264
|
-
const
|
|
265
|
-
label:
|
|
264
|
+
const ze = "oraculo__OraculoEventLabel-module__label___c64Xw", Le = {
|
|
265
|
+
label: ze
|
|
266
266
|
};
|
|
267
|
-
function
|
|
268
|
-
return /* @__PURE__ */ e("span", { className:
|
|
267
|
+
function fe({ text: t }) {
|
|
268
|
+
return /* @__PURE__ */ e("span", { className: Le.label, children: t });
|
|
269
269
|
}
|
|
270
|
-
const
|
|
271
|
-
container:
|
|
270
|
+
const Ae = "oraculo__OraculoEventLeague-module__container___rdk4F", We = {
|
|
271
|
+
container: Ae
|
|
272
272
|
};
|
|
273
|
-
function
|
|
274
|
-
return /* @__PURE__ */ e("div", { className:
|
|
273
|
+
function Be({ title: t }) {
|
|
274
|
+
return /* @__PURE__ */ e("div", { className: We.container, children: t.toUpperCase() });
|
|
275
275
|
}
|
|
276
|
-
const
|
|
277
|
-
scoreWrapper:
|
|
278
|
-
name:
|
|
279
|
-
score:
|
|
280
|
-
normal:
|
|
281
|
-
small:
|
|
276
|
+
const je = "oraculo__OraculoEventScore-module__scoreWrapper___fWwEr", Ge = "oraculo__OraculoEventScore-module__name___r4uL6", Me = "oraculo__OraculoEventScore-module__score___Xl03M", De = "oraculo__OraculoEventScore-module__normal___cCNFz", He = "oraculo__OraculoEventScore-module__small___fVt8E", X = {
|
|
277
|
+
scoreWrapper: je,
|
|
278
|
+
name: Ge,
|
|
279
|
+
score: Me,
|
|
280
|
+
normal: De,
|
|
281
|
+
small: He
|
|
282
282
|
};
|
|
283
|
-
function
|
|
283
|
+
function xe({ text: t, name: i, size: r = "normal" }) {
|
|
284
284
|
return /* @__PURE__ */ p(
|
|
285
285
|
"div",
|
|
286
286
|
{
|
|
287
|
-
className: `${
|
|
287
|
+
className: `${X.scoreWrapper} ${X[r]}`,
|
|
288
288
|
children: [
|
|
289
|
-
/* @__PURE__ */ e("div", { className: `${
|
|
290
|
-
i && /* @__PURE__ */ e("span", { className: `${
|
|
289
|
+
/* @__PURE__ */ e("div", { className: `${X.score} ${X[r]}`, children: t }),
|
|
290
|
+
i && /* @__PURE__ */ e("span", { className: `${X.name} ${X[r]}`, children: i })
|
|
291
291
|
]
|
|
292
292
|
}
|
|
293
293
|
);
|
|
294
294
|
}
|
|
295
|
-
const
|
|
296
|
-
team:
|
|
297
|
-
logo:
|
|
298
|
-
name:
|
|
299
|
-
regular:
|
|
300
|
-
compact:
|
|
295
|
+
const Xe = "oraculo__OraculoEventTeamInfo-module__team___UfpUs", Je = "oraculo__OraculoEventTeamInfo-module__logo___fKCl3", Ke = "oraculo__OraculoEventTeamInfo-module__name___4ikm-", qe = "oraculo__OraculoEventTeamInfo-module__regular___ag826", Ye = "oraculo__OraculoEventTeamInfo-module__compact___RCNOs", K = {
|
|
296
|
+
team: Xe,
|
|
297
|
+
logo: Je,
|
|
298
|
+
name: Ke,
|
|
299
|
+
regular: qe,
|
|
300
|
+
compact: Ye
|
|
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 Q({ name: t, logo: i, size: r = "regular" }) {
|
|
303
|
+
return /* @__PURE__ */ p("div", { className: `oli-font ${K.team} ${K[r]}`, children: [
|
|
304
|
+
/* @__PURE__ */ e("img", { src: i, alt: t, className: K.logo }),
|
|
305
|
+
/* @__PURE__ */ e("span", { className: K.name, children: t })
|
|
306
306
|
] });
|
|
307
307
|
}
|
|
308
|
-
const
|
|
308
|
+
const Qe = Ie, Ze = ke, H = Ce(
|
|
309
309
|
({
|
|
310
310
|
items: t = [],
|
|
311
311
|
renderItem: i,
|
|
@@ -314,11 +314,11 @@ const et = Oe, tt = Re, J = Ie(
|
|
|
314
314
|
breakpoints: c,
|
|
315
315
|
options: o = {},
|
|
316
316
|
className: a = "",
|
|
317
|
-
onMove:
|
|
317
|
+
onMove: u,
|
|
318
318
|
useIndexAsKey: g = !1
|
|
319
|
-
},
|
|
320
|
-
const x =
|
|
321
|
-
|
|
319
|
+
}, y) => {
|
|
320
|
+
const x = B(null);
|
|
321
|
+
Ee(y, () => ({
|
|
322
322
|
next: () => {
|
|
323
323
|
var l;
|
|
324
324
|
return (l = x.current) == null ? void 0 : l.go(">");
|
|
@@ -328,17 +328,17 @@ const et = Oe, tt = Re, J = Ie(
|
|
|
328
328
|
return (l = x.current) == null ? void 0 : l.go("<");
|
|
329
329
|
},
|
|
330
330
|
go: (l) => {
|
|
331
|
-
var
|
|
332
|
-
return (
|
|
331
|
+
var m;
|
|
332
|
+
return (m = x.current) == null ? void 0 : m.go(l);
|
|
333
333
|
}
|
|
334
334
|
}));
|
|
335
|
-
const w =
|
|
335
|
+
const w = re(
|
|
336
336
|
(l) => {
|
|
337
|
-
const
|
|
338
|
-
|
|
337
|
+
const m = l.index, _ = l.length, k = l.options.perPage || 1, E = m === 0, R = m >= _ - k;
|
|
338
|
+
u == null || u({ index: m, isStart: E, isEnd: R, total: _ });
|
|
339
339
|
},
|
|
340
|
-
[
|
|
341
|
-
), s =
|
|
340
|
+
[u]
|
|
341
|
+
), s = re(
|
|
342
342
|
(l) => {
|
|
343
343
|
w(l);
|
|
344
344
|
},
|
|
@@ -358,27 +358,27 @@ const et = Oe, tt = Re, J = Ie(
|
|
|
358
358
|
...o
|
|
359
359
|
};
|
|
360
360
|
return /* @__PURE__ */ e("div", { className: a, style: { width: "100%" }, children: /* @__PURE__ */ e(
|
|
361
|
-
|
|
361
|
+
Qe,
|
|
362
362
|
{
|
|
363
363
|
ref: x,
|
|
364
364
|
options: d,
|
|
365
365
|
onMove: w,
|
|
366
366
|
onMounted: s,
|
|
367
|
-
children: t.map((l,
|
|
367
|
+
children: t.map((l, m) => {
|
|
368
368
|
var _;
|
|
369
|
-
return /* @__PURE__ */ e(
|
|
369
|
+
return /* @__PURE__ */ e(Ze, { children: i(l, m) }, g ? m : (_ = l.id) != null ? _ : m);
|
|
370
370
|
})
|
|
371
371
|
}
|
|
372
372
|
) });
|
|
373
373
|
}
|
|
374
|
-
),
|
|
374
|
+
), q = ({
|
|
375
375
|
imageUrl: t,
|
|
376
376
|
onClick: i,
|
|
377
377
|
size: r = "sm",
|
|
378
378
|
fillParent: n = !1
|
|
379
379
|
}) => {
|
|
380
|
-
const c = r === "lg" ? { w: 280, h: 352 } : { w: 152, h: 168 }, o = (
|
|
381
|
-
|
|
380
|
+
const c = r === "lg" ? { w: 280, h: 352 } : { w: 152, h: 168 }, o = (u) => {
|
|
381
|
+
u.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,
|
|
@@ -458,7 +458,7 @@ const et = Oe, tt = Re, J = Ie(
|
|
|
458
458
|
}
|
|
459
459
|
);
|
|
460
460
|
};
|
|
461
|
-
function
|
|
461
|
+
function Ve({
|
|
462
462
|
imageUrl: t,
|
|
463
463
|
orden: i = 1,
|
|
464
464
|
onClick: r,
|
|
@@ -468,13 +468,13 @@ function ot({
|
|
|
468
468
|
}
|
|
469
469
|
}) {
|
|
470
470
|
var x, w, s, d;
|
|
471
|
-
const c = (l,
|
|
472
|
-
var _, k, E,
|
|
471
|
+
const c = (l, m) => {
|
|
472
|
+
var _, k, E, R;
|
|
473
473
|
return {
|
|
474
|
-
xs: (k = (_ = n.xs) == null ? void 0 : _[l]) != null ? k :
|
|
475
|
-
md: (
|
|
474
|
+
xs: (k = (_ = n.xs) == null ? void 0 : _[l]) != null ? k : m,
|
|
475
|
+
md: (R = (E = n.md) == null ? void 0 : E[l]) != null ? R : m
|
|
476
476
|
};
|
|
477
|
-
}, o = c("w", 186), a = c("h", 264),
|
|
477
|
+
}, o = c("w", 186), a = c("h", 264), u = c("r", 22.6), g = c("font", 64), y = {
|
|
478
478
|
xs: Math.round(((w = (x = n.xs) == null ? void 0 : x.font) != null ? w : 64) * 0.28),
|
|
479
479
|
md: Math.round(((d = (s = n.md) == null ? void 0 : s.font) != null ? d : 64) * 0.28)
|
|
480
480
|
};
|
|
@@ -489,10 +489,10 @@ function ot({
|
|
|
489
489
|
xs: `${o.xs}/${a.xs}`,
|
|
490
490
|
md: `${o.md}/${a.md}`
|
|
491
491
|
},
|
|
492
|
-
borderRadius: { xs: `${
|
|
492
|
+
borderRadius: { xs: `${u.xs}px`, md: `${u.md}px` },
|
|
493
493
|
boxSizing: "border-box",
|
|
494
494
|
overflow: "visible",
|
|
495
|
-
pb: { xs: `${
|
|
495
|
+
pb: { xs: `${y.xs}px`, md: `${y.md}px` }
|
|
496
496
|
},
|
|
497
497
|
children: [
|
|
498
498
|
/* @__PURE__ */ e(
|
|
@@ -505,7 +505,7 @@ function ot({
|
|
|
505
505
|
overflow: "hidden"
|
|
506
506
|
},
|
|
507
507
|
children: /* @__PURE__ */ e(
|
|
508
|
-
|
|
508
|
+
q,
|
|
509
509
|
{
|
|
510
510
|
imageUrl: t,
|
|
511
511
|
onClick: r,
|
|
@@ -523,8 +523,8 @@ function ot({
|
|
|
523
523
|
position: "absolute",
|
|
524
524
|
left: 8,
|
|
525
525
|
bottom: {
|
|
526
|
-
xs: `-${
|
|
527
|
-
md: `-${
|
|
526
|
+
xs: `-${y.xs}px`,
|
|
527
|
+
md: `-${y.md}px`
|
|
528
528
|
},
|
|
529
529
|
fontFamily: "secondary",
|
|
530
530
|
fontSize: {
|
|
@@ -544,7 +544,7 @@ function ot({
|
|
|
544
544
|
}
|
|
545
545
|
);
|
|
546
546
|
}
|
|
547
|
-
const
|
|
547
|
+
const et = ({
|
|
548
548
|
logo: t,
|
|
549
549
|
provider: i,
|
|
550
550
|
providerName: r,
|
|
@@ -607,7 +607,7 @@ const nt = ({
|
|
|
607
607
|
pointerEvents: "none"
|
|
608
608
|
},
|
|
609
609
|
children: /* @__PURE__ */ e(
|
|
610
|
-
|
|
610
|
+
j,
|
|
611
611
|
{
|
|
612
612
|
sx: {
|
|
613
613
|
color: "#fff",
|
|
@@ -623,7 +623,7 @@ const nt = ({
|
|
|
623
623
|
]
|
|
624
624
|
}
|
|
625
625
|
);
|
|
626
|
-
},
|
|
626
|
+
}, Z = 12, be = ({
|
|
627
627
|
items: t,
|
|
628
628
|
layout: i = "grid",
|
|
629
629
|
onClick: r
|
|
@@ -649,8 +649,8 @@ const nt = ({
|
|
|
649
649
|
xs: "104px",
|
|
650
650
|
md: "152px"
|
|
651
651
|
},
|
|
652
|
-
columnGap: `${
|
|
653
|
-
rowGap: `${
|
|
652
|
+
columnGap: `${Z}px`,
|
|
653
|
+
rowGap: `${Z}px`,
|
|
654
654
|
alignItems: "stretch",
|
|
655
655
|
justifyItems: "stretch"
|
|
656
656
|
},
|
|
@@ -666,7 +666,7 @@ const nt = ({
|
|
|
666
666
|
borderRadius: 2
|
|
667
667
|
},
|
|
668
668
|
children: /* @__PURE__ */ e(
|
|
669
|
-
|
|
669
|
+
q,
|
|
670
670
|
{
|
|
671
671
|
imageUrl: `https://olimpo.bet${(n = c.imageUrl) != null ? n : ""}`,
|
|
672
672
|
size: "lg",
|
|
@@ -676,7 +676,7 @@ const nt = ({
|
|
|
676
676
|
)
|
|
677
677
|
}
|
|
678
678
|
),
|
|
679
|
-
o.map((a,
|
|
679
|
+
o.map((a, u) => {
|
|
680
680
|
var g;
|
|
681
681
|
return /* @__PURE__ */ e(
|
|
682
682
|
C,
|
|
@@ -688,12 +688,12 @@ const nt = ({
|
|
|
688
688
|
borderRadius: 2
|
|
689
689
|
},
|
|
690
690
|
children: /* @__PURE__ */ e(
|
|
691
|
-
|
|
691
|
+
q,
|
|
692
692
|
{
|
|
693
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(a,
|
|
696
|
+
onClick: () => r == null ? void 0 : r(a, u + 1)
|
|
697
697
|
}
|
|
698
698
|
)
|
|
699
699
|
},
|
|
@@ -717,11 +717,11 @@ const nt = ({
|
|
|
717
717
|
xs: "repeat(2, 112px)",
|
|
718
718
|
md: "repeat(2, 168px)"
|
|
719
719
|
},
|
|
720
|
-
gap: `${
|
|
720
|
+
gap: `${Z}px`,
|
|
721
721
|
gridAutoFlow: "column"
|
|
722
722
|
},
|
|
723
723
|
children: t.map((c, o) => {
|
|
724
|
-
var a,
|
|
724
|
+
var a, u;
|
|
725
725
|
return /* @__PURE__ */ e(
|
|
726
726
|
C,
|
|
727
727
|
{
|
|
@@ -730,7 +730,7 @@ const nt = ({
|
|
|
730
730
|
borderRadius: 2
|
|
731
731
|
},
|
|
732
732
|
children: /* @__PURE__ */ e(
|
|
733
|
-
|
|
733
|
+
q,
|
|
734
734
|
{
|
|
735
735
|
imageUrl: `https://olimpo.bet${(a = c.imageUrl) != null ? a : ""}`,
|
|
736
736
|
size: "sm",
|
|
@@ -739,12 +739,12 @@ const nt = ({
|
|
|
739
739
|
}
|
|
740
740
|
)
|
|
741
741
|
},
|
|
742
|
-
(
|
|
742
|
+
(u = c.id) != null ? u : o
|
|
743
743
|
);
|
|
744
744
|
})
|
|
745
745
|
}
|
|
746
746
|
);
|
|
747
|
-
},
|
|
747
|
+
}, ie = ({
|
|
748
748
|
title: t,
|
|
749
749
|
amount: i,
|
|
750
750
|
subtitle: r,
|
|
@@ -752,14 +752,14 @@ const nt = ({
|
|
|
752
752
|
onButtonClick: c,
|
|
753
753
|
backgroundImage: o,
|
|
754
754
|
alt: a,
|
|
755
|
-
className:
|
|
755
|
+
className: u = "",
|
|
756
756
|
variant: g = "small"
|
|
757
757
|
}) => {
|
|
758
|
-
const
|
|
758
|
+
const y = i ? i.slice(0, 2) : "", x = i ? i.slice(2) : "", w = g === "large";
|
|
759
759
|
return /* @__PURE__ */ p(
|
|
760
760
|
C,
|
|
761
761
|
{
|
|
762
|
-
className:
|
|
762
|
+
className: u,
|
|
763
763
|
sx: {
|
|
764
764
|
position: "relative",
|
|
765
765
|
width: "100%",
|
|
@@ -828,7 +828,7 @@ const nt = ({
|
|
|
828
828
|
},
|
|
829
829
|
children: [
|
|
830
830
|
t && /* @__PURE__ */ e(
|
|
831
|
-
|
|
831
|
+
j,
|
|
832
832
|
{
|
|
833
833
|
sx: {
|
|
834
834
|
fontSize: { xs: 12, lg: 20 },
|
|
@@ -861,7 +861,7 @@ const nt = ({
|
|
|
861
861
|
{
|
|
862
862
|
component: "span",
|
|
863
863
|
sx: { fontSize: { xs: 35, lg: 48 }, mr: 0.5 },
|
|
864
|
-
children:
|
|
864
|
+
children: y
|
|
865
865
|
}
|
|
866
866
|
),
|
|
867
867
|
/* @__PURE__ */ e(
|
|
@@ -876,7 +876,7 @@ const nt = ({
|
|
|
876
876
|
}
|
|
877
877
|
),
|
|
878
878
|
r && /* @__PURE__ */ e(
|
|
879
|
-
|
|
879
|
+
j,
|
|
880
880
|
{
|
|
881
881
|
sx: {
|
|
882
882
|
pb: "20px",
|
|
@@ -896,7 +896,7 @@ const nt = ({
|
|
|
896
896
|
]
|
|
897
897
|
}
|
|
898
898
|
);
|
|
899
|
-
},
|
|
899
|
+
}, tt = ({
|
|
900
900
|
text: t,
|
|
901
901
|
buttonLabel: i = "Conoce más",
|
|
902
902
|
onClick: r,
|
|
@@ -904,7 +904,7 @@ const nt = ({
|
|
|
904
904
|
imgSrcMobile: c,
|
|
905
905
|
imgSrcDesktopBg: o,
|
|
906
906
|
imgSrcDesktopLogo: a
|
|
907
|
-
}) => /* @__PURE__ */ p(
|
|
907
|
+
}) => /* @__PURE__ */ p(Y, { children: [
|
|
908
908
|
/* @__PURE__ */ e("div", { className: "orc-co-bgMobile", children: /* @__PURE__ */ e(
|
|
909
909
|
"img",
|
|
910
910
|
{
|
|
@@ -939,41 +939,41 @@ const nt = ({
|
|
|
939
939
|
/* @__PURE__ */ e("p", { className: "orc-co-caption", children: t }),
|
|
940
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
|
+
] }), ot = "oraculo__OraculoEventCombinadasCard-module__card___ulQeY", nt = "oraculo__OraculoEventCombinadasCard-module__combinadas___Gxrld", rt = "oraculo__OraculoEventCombinadasCard-module__apuestaItem___YnYMy", at = "oraculo__OraculoEventCombinadasCard-module__lineContainer___G5rbU", it = "oraculo__OraculoEventCombinadasCard-module__circle___eehm-", st = "oraculo__OraculoEventCombinadasCard-module__line___Eb2pK", ct = "oraculo__OraculoEventCombinadasCard-module__apuestaText___b5s7S", lt = "oraculo__OraculoEventCombinadasCard-module__cuotaTotal___Lohvu", M = {
|
|
943
|
+
card: ot,
|
|
944
|
+
combinadas: nt,
|
|
945
|
+
apuestaItem: rt,
|
|
946
|
+
lineContainer: at,
|
|
947
|
+
circle: it,
|
|
948
|
+
line: st,
|
|
949
|
+
apuestaText: ct,
|
|
950
|
+
cuotaTotal: lt
|
|
951
951
|
};
|
|
952
|
-
function
|
|
952
|
+
function dt({ event: t }) {
|
|
953
953
|
var n;
|
|
954
954
|
function i(c) {
|
|
955
955
|
var x;
|
|
956
|
-
const o = (x = c.betoffers) != null ? x : [], a = c.homeName,
|
|
957
|
-
var
|
|
956
|
+
const o = (x = c.betoffers) != null ? x : [], a = c.homeName, u = c.awayName, g = o.map((w) => {
|
|
957
|
+
var m, _, k, E;
|
|
958
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 ${
|
|
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 ${u}` : s.label === "X2" && (d = `${u} o Empate`) : (s != null && s.participant ? d = s.participant : d = (m = s == null ? void 0 : s.label) != null ? m : "", l !== "" && d === s.label && (d = `${s.label} ${l}`)), {
|
|
960
960
|
id: (_ = s == null ? void 0 : s.id) != null ? _ : 0,
|
|
961
961
|
value: d,
|
|
962
962
|
label: w.criterion.label,
|
|
963
963
|
odds: (k = s == null ? void 0 : s.odds) != null ? k : 0,
|
|
964
964
|
bl: (E = s == null ? void 0 : s.label) != null ? E : 0
|
|
965
965
|
};
|
|
966
|
-
}),
|
|
966
|
+
}), y = g.reduce((w, s) => w + s.odds, 0) / 1e3;
|
|
967
967
|
return {
|
|
968
968
|
outcomes: g,
|
|
969
|
-
total:
|
|
969
|
+
total: y.toFixed(2)
|
|
970
970
|
};
|
|
971
971
|
}
|
|
972
972
|
const r = i(t);
|
|
973
|
-
return /* @__PURE__ */ p("div", { className:
|
|
974
|
-
/* @__PURE__ */ e("div", { className:
|
|
973
|
+
return /* @__PURE__ */ p("div", { className: M.card, children: [
|
|
974
|
+
/* @__PURE__ */ e("div", { className: M.combinadas, children: /* @__PURE__ */ p(z, { direction: "column", spacing: 0.5, useFlexGap: !0, children: [
|
|
975
975
|
/* @__PURE__ */ e(
|
|
976
|
-
|
|
976
|
+
D,
|
|
977
977
|
{
|
|
978
978
|
title: t.name,
|
|
979
979
|
iconUrl: "/assets/img/home/Combinadas/pelota.png",
|
|
@@ -981,12 +981,12 @@ function ut({ event: t }) {
|
|
|
981
981
|
}
|
|
982
982
|
),
|
|
983
983
|
/* @__PURE__ */ e("img", { src: "/assets/img/home/Combinadas/line.png" }),
|
|
984
|
-
/* @__PURE__ */ e(
|
|
985
|
-
/* @__PURE__ */ p("div", { className:
|
|
986
|
-
/* @__PURE__ */ e("div", { className:
|
|
987
|
-
o < r.outcomes.length - 1 && /* @__PURE__ */ e("div", { className:
|
|
984
|
+
/* @__PURE__ */ e(z, { direction: "column", spacing: 0.5, useFlexGap: !0, children: r.outcomes.map((c, o) => /* @__PURE__ */ p("div", { className: M.apuestaItem, children: [
|
|
985
|
+
/* @__PURE__ */ p("div", { className: M.lineContainer, children: [
|
|
986
|
+
/* @__PURE__ */ e("div", { className: M.circle }),
|
|
987
|
+
o < r.outcomes.length - 1 && /* @__PURE__ */ e("div", { className: M.line })
|
|
988
988
|
] }),
|
|
989
|
-
/* @__PURE__ */ p("div", { className:
|
|
989
|
+
/* @__PURE__ */ p("div", { className: M.apuestaText, children: [
|
|
990
990
|
/* @__PURE__ */ e("strong", { children: c.value }),
|
|
991
991
|
" ",
|
|
992
992
|
"| ",
|
|
@@ -997,7 +997,7 @@ function ut({ event: t }) {
|
|
|
997
997
|
/* @__PURE__ */ p("button", { onClick: () => {
|
|
998
998
|
var c, o;
|
|
999
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
|
-
}, className:
|
|
1000
|
+
}, className: M.cuotaTotal, children: [
|
|
1001
1001
|
/* @__PURE__ */ p("span", { children: [
|
|
1002
1002
|
"Cuota total: ",
|
|
1003
1003
|
/* @__PURE__ */ e("strong", { children: (((n = t.combinadoTotal) != null ? n : 0) / 1e3).toFixed(2) })
|
|
@@ -1006,8 +1006,8 @@ function ut({ event: t }) {
|
|
|
1006
1006
|
] })
|
|
1007
1007
|
] });
|
|
1008
1008
|
}
|
|
1009
|
-
function
|
|
1010
|
-
var c, o, a,
|
|
1009
|
+
function pt({ event: t, liveData: i, betOffers: r, fondo: n = "/assets/img/home/EnVivo/fondo.png" }) {
|
|
1010
|
+
var c, o, a, u, g, y, x, w, s, d, l;
|
|
1011
1011
|
return /* @__PURE__ */ e("div", { style: {
|
|
1012
1012
|
backgroundImage: `url(${n})`,
|
|
1013
1013
|
backgroundSize: "cover",
|
|
@@ -1015,10 +1015,10 @@ function gt({ event: t, liveData: i, betOffers: r, fondo: n = "/assets/img/home/
|
|
|
1015
1015
|
width: "296px",
|
|
1016
1016
|
padding: "12px 16px",
|
|
1017
1017
|
borderRadius: "16px"
|
|
1018
|
-
}, children: /* @__PURE__ */ p(
|
|
1019
|
-
/* @__PURE__ */ p(
|
|
1018
|
+
}, children: /* @__PURE__ */ p(z, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1019
|
+
/* @__PURE__ */ p(z, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
1020
1020
|
/* @__PURE__ */ e(
|
|
1021
|
-
|
|
1021
|
+
Ue,
|
|
1022
1022
|
{
|
|
1023
1023
|
title: (c = t.path[0].name) != null ? c : "",
|
|
1024
1024
|
subtitle: t.group,
|
|
@@ -1026,41 +1026,41 @@ function gt({ event: t, liveData: i, betOffers: r, fondo: n = "/assets/img/home/
|
|
|
1026
1026
|
time: (a = (o = i == null ? void 0 : i.matchClock) == null ? void 0 : o.minute) != null ? a : ""
|
|
1027
1027
|
}
|
|
1028
1028
|
),
|
|
1029
|
-
/* @__PURE__ */ e("div", { style: { padding: "0 4px" }, children: /* @__PURE__ */ p(
|
|
1029
|
+
/* @__PURE__ */ e("div", { style: { padding: "0 4px" }, children: /* @__PURE__ */ p(G, { spacing: 1.5, columns: "1fr auto 1fr", children: [
|
|
1030
1030
|
/* @__PURE__ */ e(
|
|
1031
|
-
|
|
1031
|
+
Q,
|
|
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(xe, { text: ((g = (u = i == null ? void 0 : i.score) == null ? void 0 : u.home) != null ? g : 0) + ":" + ((x = (y = i == null ? void 0 : i.score) == null ? void 0 : y.away) != null ? x : 0), name: "En vivo" }),
|
|
1038
|
+
/* @__PURE__ */ e(Q, { name: t.awayName, logo: "/assets/img/home/EnVivo/Racing.png" })
|
|
1039
1039
|
] }) })
|
|
1040
1040
|
] }),
|
|
1041
|
-
/* @__PURE__ */ p(
|
|
1042
|
-
/* @__PURE__ */ e(
|
|
1043
|
-
/* @__PURE__ */ e(
|
|
1044
|
-
console.log(
|
|
1045
|
-
}, children:
|
|
1041
|
+
/* @__PURE__ */ p(z, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1042
|
+
/* @__PURE__ */ e(G, { spacing: 1, children: ((s = (w = r == null ? void 0 : r[0]) == null ? void 0 : w.outcomes) != null ? s : []).map((m, _) => /* @__PURE__ */ e(fe, { text: m.label.toUpperCase() }, _)) }),
|
|
1043
|
+
/* @__PURE__ */ e(G, { spacing: 2, children: ((l = (d = r == null ? void 0 : r[0]) == null ? void 0 : d.outcomes) != null ? l : []).map((m, _) => /* @__PURE__ */ e(T, { variant: "primary", disabled: m.odds == null, onClick: () => {
|
|
1044
|
+
console.log(m.id);
|
|
1045
|
+
}, children: m.odds === void 0 ? "X" : (m.odds / 1e3).toFixed(2) }, _)) })
|
|
1046
1046
|
] })
|
|
1047
1047
|
] }) });
|
|
1048
1048
|
}
|
|
1049
|
-
const
|
|
1050
|
-
date:
|
|
1049
|
+
const mt = "oraculo__OraculoEventDate-module__date___xhIlh", ut = {
|
|
1050
|
+
date: mt
|
|
1051
1051
|
};
|
|
1052
|
-
function
|
|
1053
|
-
return /* @__PURE__ */ e("div", { className: `oli-font ${
|
|
1052
|
+
function gt({ text: t }) {
|
|
1053
|
+
return /* @__PURE__ */ e("div", { className: `oli-font ${ut.date}`, children: t });
|
|
1054
1054
|
}
|
|
1055
|
-
const
|
|
1056
|
-
cardContainer:
|
|
1057
|
-
cardBackground:
|
|
1058
|
-
jugadas:
|
|
1055
|
+
const ht = "oraculo__OraculoEventSemanaCard-module__cardContainer___4JuDe", ft = "oraculo__OraculoEventSemanaCard-module__cardBackground___vfalD", xt = "oraculo__OraculoEventSemanaCard-module__jugadas___W8b7H", V = {
|
|
1056
|
+
cardContainer: ht,
|
|
1057
|
+
cardBackground: ft,
|
|
1058
|
+
jugadas: xt
|
|
1059
1059
|
};
|
|
1060
|
-
function
|
|
1061
|
-
var r, n, c, o, a,
|
|
1062
|
-
function i(
|
|
1063
|
-
const x = new Date(
|
|
1060
|
+
function bt({ event: t }) {
|
|
1061
|
+
var r, n, c, o, a, u, g;
|
|
1062
|
+
function i(y) {
|
|
1063
|
+
const x = new Date(y), w = x.toLocaleDateString("es-ES", {
|
|
1064
1064
|
weekday: "short"
|
|
1065
1065
|
}).toUpperCase(), s = x.getDate().toString().padStart(2, "0"), d = (x.getMonth() + 1).toString().padStart(2, "0");
|
|
1066
1066
|
let l = x.toLocaleTimeString("es-PE", {
|
|
@@ -1070,52 +1070,52 @@ function _t({ event: t }) {
|
|
|
1070
1070
|
}).toUpperCase();
|
|
1071
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(
|
|
1077
|
-
/* @__PURE__ */ p(
|
|
1073
|
+
return /* @__PURE__ */ p("div", { className: V.cardContainer, children: [
|
|
1074
|
+
/* @__PURE__ */ e(Be, { title: (r = t.group) != null ? r : "" }),
|
|
1075
|
+
/* @__PURE__ */ e("div", { className: V.cardBackground, children: /* @__PURE__ */ p(z, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
1076
|
+
/* @__PURE__ */ p(z, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1077
|
+
/* @__PURE__ */ p(G, { spacing: 1, columns: "1fr auto 1fr", children: [
|
|
1078
1078
|
/* @__PURE__ */ e(
|
|
1079
|
-
|
|
1079
|
+
Q,
|
|
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(xe, { text: "vs.", name: "", size: "small" }),
|
|
1087
|
+
/* @__PURE__ */ e(Q, { name: t.homeName, logo: "/assets/img/home/EventoSemana/RealMadrid.png", size: "compact" })
|
|
1088
1088
|
] }),
|
|
1089
|
-
/* @__PURE__ */ e(
|
|
1089
|
+
/* @__PURE__ */ e(gt, { text: i(t.start) })
|
|
1090
1090
|
] }),
|
|
1091
|
-
/* @__PURE__ */ p(
|
|
1092
|
-
/* @__PURE__ */ e(
|
|
1093
|
-
/* @__PURE__ */ e("div", { className:
|
|
1094
|
-
console.log(
|
|
1095
|
-
}, children: (
|
|
1091
|
+
/* @__PURE__ */ p(z, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
1092
|
+
/* @__PURE__ */ e(G, { 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((y, x) => /* @__PURE__ */ e(fe, { text: y.label.toUpperCase() }, x)) }),
|
|
1093
|
+
/* @__PURE__ */ e("div", { className: V.jugadas, children: /* @__PURE__ */ e(G, { spacing: 1, children: ((g = (u = (a = t == null ? void 0 : t.outcome) == null ? void 0 : a[0]) == null ? void 0 : u.outcomes) != null ? g : []).map((y, x) => /* @__PURE__ */ e(T, { variant: "primary", fullHeight: !0, onClick: () => {
|
|
1094
|
+
console.log(y.id);
|
|
1095
|
+
}, children: (y.odds / 1e3).toFixed(2) }, x)) }) })
|
|
1096
1096
|
] })
|
|
1097
1097
|
] }) })
|
|
1098
1098
|
] });
|
|
1099
1099
|
}
|
|
1100
|
-
function
|
|
1100
|
+
function vt({
|
|
1101
1101
|
items: t,
|
|
1102
1102
|
title: i = "Destacados",
|
|
1103
1103
|
iconUrl: r,
|
|
1104
1104
|
onViewMore: n,
|
|
1105
1105
|
className: c = ""
|
|
1106
1106
|
}) {
|
|
1107
|
-
const o =
|
|
1107
|
+
const o = B(null), [a, u] = U({ isStart: !0, isEnd: !1 }), g = () => {
|
|
1108
1108
|
var d;
|
|
1109
1109
|
(d = o.current) == null || d.prev();
|
|
1110
|
-
},
|
|
1110
|
+
}, y = () => {
|
|
1111
1111
|
var d;
|
|
1112
1112
|
(d = o.current) == null || d.next(), console.log("items: ", t);
|
|
1113
1113
|
}, x = () => {
|
|
1114
1114
|
n == null || n();
|
|
1115
1115
|
}, w = (d) => {
|
|
1116
1116
|
if (!d || typeof window == "undefined") return;
|
|
1117
|
-
const
|
|
1118
|
-
window.location.href =
|
|
1117
|
+
const m = `https://www.olimpo.bet/promociones/${encodeURIComponent(d)}`;
|
|
1118
|
+
window.location.href = m;
|
|
1119
1119
|
};
|
|
1120
1120
|
return /* @__PURE__ */ p("section", { className: c || void 0, style: { width: "100%" }, children: [
|
|
1121
1121
|
/* @__PURE__ */ p(
|
|
@@ -1130,7 +1130,7 @@ function St({
|
|
|
1130
1130
|
marginBottom: 16
|
|
1131
1131
|
},
|
|
1132
1132
|
children: [
|
|
1133
|
-
/* @__PURE__ */ e(
|
|
1133
|
+
/* @__PURE__ */ e(D, { title: i, iconUrl: r, size: "md" }),
|
|
1134
1134
|
/* @__PURE__ */ p("div", { style: { display: "flex", gap: 8 }, children: [
|
|
1135
1135
|
/* @__PURE__ */ e(
|
|
1136
1136
|
T,
|
|
@@ -1138,7 +1138,7 @@ function St({
|
|
|
1138
1138
|
ariaLabel: "Anterior",
|
|
1139
1139
|
variant: "secondary",
|
|
1140
1140
|
iconOnly: !0,
|
|
1141
|
-
leftIcon: /* @__PURE__ */ e(
|
|
1141
|
+
leftIcon: /* @__PURE__ */ e(oe, {}),
|
|
1142
1142
|
onClick: g,
|
|
1143
1143
|
disabled: a.isStart
|
|
1144
1144
|
}
|
|
@@ -1149,8 +1149,8 @@ function St({
|
|
|
1149
1149
|
ariaLabel: "Siguiente",
|
|
1150
1150
|
variant: "secondary",
|
|
1151
1151
|
iconOnly: !0,
|
|
1152
|
-
rightIcon: /* @__PURE__ */ e(
|
|
1153
|
-
onClick:
|
|
1152
|
+
rightIcon: /* @__PURE__ */ e(ne, {}),
|
|
1153
|
+
onClick: y,
|
|
1154
1154
|
disabled: a.isEnd
|
|
1155
1155
|
}
|
|
1156
1156
|
)
|
|
@@ -1160,7 +1160,7 @@ function St({
|
|
|
1160
1160
|
}
|
|
1161
1161
|
),
|
|
1162
1162
|
/* @__PURE__ */ e(
|
|
1163
|
-
|
|
1163
|
+
H,
|
|
1164
1164
|
{
|
|
1165
1165
|
ref: o,
|
|
1166
1166
|
items: t,
|
|
@@ -1198,37 +1198,37 @@ function St({
|
|
|
1198
1198
|
},
|
|
1199
1199
|
`${d.title}-${d.image}`
|
|
1200
1200
|
),
|
|
1201
|
-
onMove: ({ isStart: d, isEnd: l }) =>
|
|
1201
|
+
onMove: ({ isStart: d, isEnd: l }) => u({ isStart: d, isEnd: l })
|
|
1202
1202
|
}
|
|
1203
1203
|
)
|
|
1204
1204
|
] });
|
|
1205
1205
|
}
|
|
1206
|
-
const
|
|
1207
|
-
var s, d, l,
|
|
1206
|
+
const yt = (t) => {
|
|
1207
|
+
var s, d, l, m, _, 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 : "", n = (
|
|
1209
|
+
const i = (d = (s = t.name) != null ? s : t.web_name) != null ? d : "", r = (l = t.provider) != null ? l : "", n = (m = t.machine) != null ? m : "", c = (_ = t.external_id) != null ? _ : "", o = (k = t.type) != null ? k : "", a = encodeURIComponent(String(r)), u = encodeURIComponent(String(n)), g = encodeURIComponent(String(i)), y = encodeURIComponent(String(c)), x = encodeURIComponent(String(o)), w = `https://www.olimpo.bet/casino?${u}?provider=${a}&name=${g}&external_id=${y}&type=${x}`;
|
|
1210
1210
|
window.location.href = w;
|
|
1211
1211
|
};
|
|
1212
|
-
function
|
|
1212
|
+
function _t({
|
|
1213
1213
|
items: t,
|
|
1214
1214
|
title: i = "Top Juegos",
|
|
1215
1215
|
iconUrl: r,
|
|
1216
1216
|
onCardClick: n
|
|
1217
1217
|
}) {
|
|
1218
|
-
const c =
|
|
1218
|
+
const c = te(
|
|
1219
1219
|
() => t.map((o, a) => {
|
|
1220
|
-
var
|
|
1220
|
+
var u;
|
|
1221
1221
|
return {
|
|
1222
1222
|
...o,
|
|
1223
1223
|
// si no viene orden, usamos el índice (1-based)
|
|
1224
|
-
orden: (
|
|
1224
|
+
orden: (u = o.orden) != null ? u : a + 1,
|
|
1225
1225
|
_originalIndex: a
|
|
1226
1226
|
};
|
|
1227
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(
|
|
1231
|
-
/* @__PURE__ */ e(
|
|
1230
|
+
return /* @__PURE__ */ e("section", { style: { width: "100%" }, children: /* @__PURE__ */ p(z, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
1231
|
+
/* @__PURE__ */ e(D, { title: i, iconUrl: r, size: "md" }),
|
|
1232
1232
|
/* @__PURE__ */ e(
|
|
1233
1233
|
C,
|
|
1234
1234
|
{
|
|
@@ -1245,12 +1245,12 @@ function Ct({
|
|
|
1245
1245
|
children: c.slice(0, 6).map((o) => {
|
|
1246
1246
|
var a;
|
|
1247
1247
|
return /* @__PURE__ */ e(
|
|
1248
|
-
|
|
1248
|
+
Ve,
|
|
1249
1249
|
{
|
|
1250
1250
|
imageUrl: `https://olimpo.bet${(a = o.logo) != null ? a : ""}`,
|
|
1251
1251
|
orden: o.orden,
|
|
1252
1252
|
onClick: () => {
|
|
1253
|
-
n ? n(o) :
|
|
1253
|
+
n ? n(o) : yt(o);
|
|
1254
1254
|
}
|
|
1255
1255
|
},
|
|
1256
1256
|
o.machine
|
|
@@ -1260,15 +1260,15 @@ function Ct({
|
|
|
1260
1260
|
)
|
|
1261
1261
|
] }) });
|
|
1262
1262
|
}
|
|
1263
|
-
const
|
|
1263
|
+
const St = (t, i) => {
|
|
1264
1264
|
var r, n;
|
|
1265
1265
|
return (n = (r = t.orden) != null ? r : t.machine) != null ? n : i;
|
|
1266
|
-
},
|
|
1267
|
-
var s, d, l,
|
|
1266
|
+
}, wt = (t) => {
|
|
1267
|
+
var s, d, l, m, _, 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 : "", n = (
|
|
1269
|
+
const i = (d = (s = t.name) != null ? s : t.web_name) != null ? d : "", r = (l = t.provider) != null ? l : "", n = (m = t.machine) != null ? m : "", c = (_ = t.external_id) != null ? _ : "", o = (k = t.type) != null ? k : "Live", a = encodeURIComponent(String(r)), u = encodeURIComponent(String(n)), g = encodeURIComponent(String(i)), y = encodeURIComponent(String(c)), x = encodeURIComponent(String(o)), w = `https://www.olimpo.bet/casino-en-vivo?${u}?provider=${a}&name=${g}&external_id=${y}&type=${x}`;
|
|
1270
1270
|
window.location.href = w;
|
|
1271
|
-
},
|
|
1271
|
+
}, Ct = ({
|
|
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.",
|
|
@@ -1276,11 +1276,11 @@ const Et = (t, i) => {
|
|
|
1276
1276
|
backgroundDesktopUrl: c = "",
|
|
1277
1277
|
onCardClick: o,
|
|
1278
1278
|
onViewMore: a,
|
|
1279
|
-
className:
|
|
1279
|
+
className: u
|
|
1280
1280
|
}) => /* @__PURE__ */ p(
|
|
1281
1281
|
C,
|
|
1282
1282
|
{
|
|
1283
|
-
className:
|
|
1283
|
+
className: u,
|
|
1284
1284
|
sx: {
|
|
1285
1285
|
position: "relative",
|
|
1286
1286
|
// width: "100vw",
|
|
@@ -1334,9 +1334,9 @@ const Et = (t, i) => {
|
|
|
1334
1334
|
textAlign: { xs: "center", md: "left" }
|
|
1335
1335
|
},
|
|
1336
1336
|
children: [
|
|
1337
|
-
/* @__PURE__ */ p(
|
|
1337
|
+
/* @__PURE__ */ p(z, { spacing: 3, sx: { maxWidth: { md: 280 } }, children: [
|
|
1338
1338
|
/* @__PURE__ */ e(
|
|
1339
|
-
|
|
1339
|
+
j,
|
|
1340
1340
|
{
|
|
1341
1341
|
variant: "h4",
|
|
1342
1342
|
sx: {
|
|
@@ -1349,7 +1349,7 @@ const Et = (t, i) => {
|
|
|
1349
1349
|
}
|
|
1350
1350
|
),
|
|
1351
1351
|
/* @__PURE__ */ e(
|
|
1352
|
-
|
|
1352
|
+
j,
|
|
1353
1353
|
{
|
|
1354
1354
|
sx: {
|
|
1355
1355
|
fontSize: { xs: 14, md: 18 },
|
|
@@ -1381,20 +1381,20 @@ const Et = (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,
|
|
1384
|
+
children: (t != null ? t : []).slice(0, 3).map((g, y) => {
|
|
1385
1385
|
var x;
|
|
1386
1386
|
return /* @__PURE__ */ e(
|
|
1387
|
-
|
|
1387
|
+
et,
|
|
1388
1388
|
{
|
|
1389
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, y) : wt(g);
|
|
1395
1395
|
}
|
|
1396
1396
|
},
|
|
1397
|
-
|
|
1397
|
+
St(g, y)
|
|
1398
1398
|
);
|
|
1399
1399
|
})
|
|
1400
1400
|
}
|
|
@@ -1413,19 +1413,19 @@ const Et = (t, i) => {
|
|
|
1413
1413
|
)
|
|
1414
1414
|
]
|
|
1415
1415
|
}
|
|
1416
|
-
),
|
|
1416
|
+
), ve = (t, i) => {
|
|
1417
1417
|
var r, n;
|
|
1418
1418
|
return (n = (r = t.orden) != null ? r : t.machine) != null ? n : i;
|
|
1419
|
-
},
|
|
1420
|
-
var s, d, l,
|
|
1419
|
+
}, Et = (t) => {
|
|
1420
|
+
var s, d, l, m, _;
|
|
1421
1421
|
if (typeof window == "undefined") return;
|
|
1422
|
-
const i = (s = t.name) != null ? s : "", r = (d = t.provider) != null ? d : "", n = (l = t.machine) != null ? l : "", c = (
|
|
1422
|
+
const i = (s = t.name) != null ? s : "", r = (d = t.provider) != null ? d : "", n = (l = t.machine) != null ? l : "", c = (m = t.external_id) != null ? m : "", o = (_ = t.type) != null ? _ : "Casino", a = encodeURIComponent(String(r)), u = encodeURIComponent(String(n)), g = encodeURIComponent(String(i)), y = encodeURIComponent(String(c)), x = encodeURIComponent(String(o)), w = `https://www.olimpo.bet/casino?${u}?provider=${a}&name=${g}&external_id=${y}&type=${x}`;
|
|
1423
1423
|
window.location.href = w;
|
|
1424
|
-
},
|
|
1425
|
-
const n = t.map((a,
|
|
1424
|
+
}, $t = (t, i = !0, r = 4) => {
|
|
1425
|
+
const n = t.map((a, u) => {
|
|
1426
1426
|
var g;
|
|
1427
1427
|
return {
|
|
1428
|
-
id:
|
|
1428
|
+
id: ve(a, u),
|
|
1429
1429
|
imageUrl: (g = a.logo) != null ? g : ""
|
|
1430
1430
|
};
|
|
1431
1431
|
});
|
|
@@ -1449,7 +1449,7 @@ const Et = (t, i) => {
|
|
|
1449
1449
|
}), o = a;
|
|
1450
1450
|
}
|
|
1451
1451
|
return c;
|
|
1452
|
-
},
|
|
1452
|
+
}, It = ({
|
|
1453
1453
|
items: t,
|
|
1454
1454
|
title: i = "Casino",
|
|
1455
1455
|
iconUrl: r = "/assets/img/home/Casino/diamante.svg",
|
|
@@ -1458,16 +1458,16 @@ const Et = (t, i) => {
|
|
|
1458
1458
|
mosaicFirst: o = !0,
|
|
1459
1459
|
gridSize: a = 4
|
|
1460
1460
|
}) => {
|
|
1461
|
-
const
|
|
1461
|
+
const u = B(null), [g, y] = U({ isStart: !0, isEnd: !1 }), x = $t(t, o, a), w = () => {
|
|
1462
1462
|
var l;
|
|
1463
|
-
(l =
|
|
1463
|
+
(l = u.current) == null || l.prev();
|
|
1464
1464
|
}, s = () => {
|
|
1465
1465
|
var l;
|
|
1466
|
-
(l =
|
|
1466
|
+
(l = u.current) == null || l.next();
|
|
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(z, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
1471
1471
|
/* @__PURE__ */ p(
|
|
1472
1472
|
C,
|
|
1473
1473
|
{
|
|
@@ -1480,7 +1480,7 @@ const Et = (t, i) => {
|
|
|
1480
1480
|
},
|
|
1481
1481
|
children: [
|
|
1482
1482
|
/* @__PURE__ */ e(
|
|
1483
|
-
|
|
1483
|
+
D,
|
|
1484
1484
|
{
|
|
1485
1485
|
title: i,
|
|
1486
1486
|
iconUrl: r,
|
|
@@ -1502,7 +1502,7 @@ const Et = (t, i) => {
|
|
|
1502
1502
|
ariaLabel: "Anterior",
|
|
1503
1503
|
variant: "secondary",
|
|
1504
1504
|
iconOnly: !0,
|
|
1505
|
-
leftIcon: /* @__PURE__ */ e(
|
|
1505
|
+
leftIcon: /* @__PURE__ */ e(ue, {}),
|
|
1506
1506
|
onClick: w,
|
|
1507
1507
|
disabled: g.isStart
|
|
1508
1508
|
}
|
|
@@ -1513,7 +1513,7 @@ const Et = (t, i) => {
|
|
|
1513
1513
|
ariaLabel: "Siguiente",
|
|
1514
1514
|
variant: "secondary",
|
|
1515
1515
|
iconOnly: !0,
|
|
1516
|
-
rightIcon: /* @__PURE__ */ e(
|
|
1516
|
+
rightIcon: /* @__PURE__ */ e(ge, {}),
|
|
1517
1517
|
onClick: s,
|
|
1518
1518
|
disabled: g.isEnd
|
|
1519
1519
|
}
|
|
@@ -1526,9 +1526,9 @@ const Et = (t, i) => {
|
|
|
1526
1526
|
}
|
|
1527
1527
|
),
|
|
1528
1528
|
/* @__PURE__ */ e(
|
|
1529
|
-
|
|
1529
|
+
H,
|
|
1530
1530
|
{
|
|
1531
|
-
ref:
|
|
1531
|
+
ref: u,
|
|
1532
1532
|
items: x,
|
|
1533
1533
|
perPage: 1,
|
|
1534
1534
|
gap: "0px",
|
|
@@ -1542,35 +1542,35 @@ const Et = (t, i) => {
|
|
|
1542
1542
|
focus: "start"
|
|
1543
1543
|
},
|
|
1544
1544
|
renderItem: (l) => /* @__PURE__ */ e("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ e(
|
|
1545
|
-
|
|
1545
|
+
be,
|
|
1546
1546
|
{
|
|
1547
1547
|
items: l.items,
|
|
1548
1548
|
layout: l.kind === "mosaic" ? "mosaic" : "grid",
|
|
1549
|
-
onClick: (
|
|
1549
|
+
onClick: (m) => {
|
|
1550
1550
|
const _ = t.find(
|
|
1551
|
-
(k, E) =>
|
|
1551
|
+
(k, E) => ve(k, E) === m.id
|
|
1552
1552
|
);
|
|
1553
|
-
_ && (n ? n(_) :
|
|
1553
|
+
_ && (n ? n(_) : Et(_));
|
|
1554
1554
|
}
|
|
1555
1555
|
}
|
|
1556
1556
|
) }),
|
|
1557
|
-
onMove: ({ isStart: l, isEnd:
|
|
1557
|
+
onMove: ({ isStart: l, isEnd: m }) => y({ isStart: l, isEnd: m })
|
|
1558
1558
|
}
|
|
1559
1559
|
)
|
|
1560
1560
|
] }) });
|
|
1561
|
-
},
|
|
1561
|
+
}, ye = (t, i) => {
|
|
1562
1562
|
var r, n;
|
|
1563
1563
|
return (n = (r = t.orden) != null ? r : t.machine) != null ? n : i;
|
|
1564
|
-
},
|
|
1565
|
-
var s, d, l,
|
|
1564
|
+
}, kt = (t) => {
|
|
1565
|
+
var s, d, l, m, _;
|
|
1566
1566
|
if (typeof window == "undefined") return;
|
|
1567
|
-
const i = (s = t.name) != null ? s : "", r = (d = t.provider) != null ? d : "", n = (l = t.machine) != null ? l : "", c = (
|
|
1567
|
+
const i = (s = t.name) != null ? s : "", r = (d = t.provider) != null ? d : "", n = (l = t.machine) != null ? l : "", c = (m = t.external_id) != null ? m : "", o = (_ = t.type) != null ? _ : "Virtuales", a = encodeURIComponent(String(r)), u = encodeURIComponent(String(n)), g = encodeURIComponent(String(i)), y = encodeURIComponent(String(c)), x = encodeURIComponent(String(o)), w = `https://www.olimpo.bet/juegos-virtuales?${u}?provider=${a}&name=${g}&external_id=${y}&type=${x}`;
|
|
1568
1568
|
window.location.href = w;
|
|
1569
|
-
},
|
|
1570
|
-
const n = t.map((a,
|
|
1569
|
+
}, Nt = (t, i = !0, r = 4) => {
|
|
1570
|
+
const n = t.map((a, u) => {
|
|
1571
1571
|
var g;
|
|
1572
1572
|
return {
|
|
1573
|
-
id:
|
|
1573
|
+
id: ye(a, u),
|
|
1574
1574
|
imageUrl: (g = a.logo) != null ? g : ""
|
|
1575
1575
|
};
|
|
1576
1576
|
});
|
|
@@ -1594,7 +1594,7 @@ const Et = (t, i) => {
|
|
|
1594
1594
|
}), o = a;
|
|
1595
1595
|
}
|
|
1596
1596
|
return c;
|
|
1597
|
-
},
|
|
1597
|
+
}, Ot = ({
|
|
1598
1598
|
items: t,
|
|
1599
1599
|
title: i = "Virtuales",
|
|
1600
1600
|
iconUrl: r = "/assets/img/home/Virtuales/virtuales.svg",
|
|
@@ -1603,16 +1603,16 @@ const Et = (t, i) => {
|
|
|
1603
1603
|
mosaicFirst: o = !0,
|
|
1604
1604
|
gridSize: a = 4
|
|
1605
1605
|
}) => {
|
|
1606
|
-
const
|
|
1606
|
+
const u = B(null), [g, y] = U({ isStart: !0, isEnd: !1 }), x = Nt(t, o, a), w = () => {
|
|
1607
1607
|
var l;
|
|
1608
|
-
(l =
|
|
1608
|
+
(l = u.current) == null || l.prev();
|
|
1609
1609
|
}, s = () => {
|
|
1610
1610
|
var l;
|
|
1611
|
-
(l =
|
|
1611
|
+
(l = u.current) == null || l.next();
|
|
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(z, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
1616
1616
|
/* @__PURE__ */ p(
|
|
1617
1617
|
C,
|
|
1618
1618
|
{
|
|
@@ -1625,7 +1625,7 @@ const Et = (t, i) => {
|
|
|
1625
1625
|
},
|
|
1626
1626
|
children: [
|
|
1627
1627
|
/* @__PURE__ */ e(
|
|
1628
|
-
|
|
1628
|
+
D,
|
|
1629
1629
|
{
|
|
1630
1630
|
title: i,
|
|
1631
1631
|
iconUrl: r,
|
|
@@ -1647,7 +1647,7 @@ const Et = (t, i) => {
|
|
|
1647
1647
|
ariaLabel: "Anterior",
|
|
1648
1648
|
variant: "secondary",
|
|
1649
1649
|
iconOnly: !0,
|
|
1650
|
-
leftIcon: /* @__PURE__ */ e(
|
|
1650
|
+
leftIcon: /* @__PURE__ */ e(ue, {}),
|
|
1651
1651
|
onClick: w,
|
|
1652
1652
|
disabled: g.isStart
|
|
1653
1653
|
}
|
|
@@ -1658,7 +1658,7 @@ const Et = (t, i) => {
|
|
|
1658
1658
|
ariaLabel: "Siguiente",
|
|
1659
1659
|
variant: "secondary",
|
|
1660
1660
|
iconOnly: !0,
|
|
1661
|
-
rightIcon: /* @__PURE__ */ e(
|
|
1661
|
+
rightIcon: /* @__PURE__ */ e(ge, {}),
|
|
1662
1662
|
onClick: s,
|
|
1663
1663
|
disabled: g.isEnd
|
|
1664
1664
|
}
|
|
@@ -1671,9 +1671,9 @@ const Et = (t, i) => {
|
|
|
1671
1671
|
}
|
|
1672
1672
|
),
|
|
1673
1673
|
/* @__PURE__ */ e(
|
|
1674
|
-
|
|
1674
|
+
H,
|
|
1675
1675
|
{
|
|
1676
|
-
ref:
|
|
1676
|
+
ref: u,
|
|
1677
1677
|
items: x,
|
|
1678
1678
|
perPage: 1,
|
|
1679
1679
|
gap: "0",
|
|
@@ -1688,23 +1688,23 @@ const Et = (t, i) => {
|
|
|
1688
1688
|
perMove: 1
|
|
1689
1689
|
},
|
|
1690
1690
|
renderItem: (l) => /* @__PURE__ */ e("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ e(
|
|
1691
|
-
|
|
1691
|
+
be,
|
|
1692
1692
|
{
|
|
1693
1693
|
items: l.items,
|
|
1694
1694
|
layout: l.kind === "mosaic" ? "mosaic" : "grid",
|
|
1695
|
-
onClick: (
|
|
1695
|
+
onClick: (m) => {
|
|
1696
1696
|
const _ = t.find(
|
|
1697
|
-
(k, E) =>
|
|
1697
|
+
(k, E) => ye(k, E) === m.id
|
|
1698
1698
|
);
|
|
1699
|
-
_ && (n ? n(_) :
|
|
1699
|
+
_ && (n ? n(_) : kt(_));
|
|
1700
1700
|
}
|
|
1701
1701
|
}
|
|
1702
1702
|
) }),
|
|
1703
|
-
onMove: ({ isStart: l, isEnd:
|
|
1703
|
+
onMove: ({ isStart: l, isEnd: m }) => y({ isStart: l, isEnd: m })
|
|
1704
1704
|
}
|
|
1705
1705
|
)
|
|
1706
1706
|
] }) });
|
|
1707
|
-
},
|
|
1707
|
+
}, Rt = (t) => ({
|
|
1708
1708
|
// width: "100vw",
|
|
1709
1709
|
position: "relative",
|
|
1710
1710
|
// left: "50%",
|
|
@@ -1723,15 +1723,15 @@ const Et = (t, i) => {
|
|
|
1723
1723
|
backgroundRepeat: "no-repeat",
|
|
1724
1724
|
backgroundPosition: "center",
|
|
1725
1725
|
backgroundSize: "cover"
|
|
1726
|
-
}),
|
|
1726
|
+
}), se = {
|
|
1727
1727
|
textAlign: "center",
|
|
1728
1728
|
lineHeight: 1.1,
|
|
1729
1729
|
mb: 1.5
|
|
1730
|
-
},
|
|
1730
|
+
}, ce = {
|
|
1731
1731
|
display: "inline-block",
|
|
1732
1732
|
fontWeight: 600,
|
|
1733
1733
|
fontSize: 24
|
|
1734
|
-
},
|
|
1734
|
+
}, le = {
|
|
1735
1735
|
display: "inline-block",
|
|
1736
1736
|
fontSize: 24,
|
|
1737
1737
|
lineHeight: 1.1,
|
|
@@ -1741,32 +1741,32 @@ const Et = (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
|
+
}, Tt = ({
|
|
1745
1745
|
headline: t,
|
|
1746
1746
|
headline2: i,
|
|
1747
1747
|
items: r,
|
|
1748
1748
|
backgroundImageUrl: n
|
|
1749
1749
|
}) => {
|
|
1750
|
-
const c = t, o = i, a =
|
|
1750
|
+
const c = t, o = i, a = Ne("(max-width: 767px)"), u = r.length > 1, g = n != null ? n : "", y = Rt(g), x = B(null), [w, s] = U({ isStart: !0, isEnd: !1 }), [d, l] = U(0);
|
|
1751
1751
|
return a ? /* @__PURE__ */ p(
|
|
1752
1752
|
C,
|
|
1753
1753
|
{
|
|
1754
1754
|
component: "section",
|
|
1755
1755
|
sx: {
|
|
1756
|
-
...
|
|
1756
|
+
...y,
|
|
1757
1757
|
textAlign: "center"
|
|
1758
1758
|
},
|
|
1759
1759
|
children: [
|
|
1760
|
-
(c || o) && /* @__PURE__ */ p(C, { sx:
|
|
1761
|
-
c && /* @__PURE__ */ e(
|
|
1762
|
-
o && /* @__PURE__ */ p(
|
|
1760
|
+
(c || o) && /* @__PURE__ */ p(C, { sx: se, children: [
|
|
1761
|
+
c && /* @__PURE__ */ e(j, { component: "span", sx: ce, children: c }),
|
|
1762
|
+
o && /* @__PURE__ */ p(Y, { children: [
|
|
1763
1763
|
/* @__PURE__ */ e("br", {}),
|
|
1764
|
-
/* @__PURE__ */ e(
|
|
1764
|
+
/* @__PURE__ */ e(j, { component: "span", sx: le, children: o })
|
|
1765
1765
|
] })
|
|
1766
1766
|
] }),
|
|
1767
1767
|
/* @__PURE__ */ p(C, { children: [
|
|
1768
1768
|
/* @__PURE__ */ e(
|
|
1769
|
-
|
|
1769
|
+
H,
|
|
1770
1770
|
{
|
|
1771
1771
|
ref: x,
|
|
1772
1772
|
items: r,
|
|
@@ -1787,27 +1787,27 @@ const Et = (t, i) => {
|
|
|
1787
1787
|
options: {
|
|
1788
1788
|
autoWidth: !1
|
|
1789
1789
|
},
|
|
1790
|
-
renderItem: (
|
|
1791
|
-
onMove: ({ index:
|
|
1792
|
-
s({ isStart: _, isEnd: k }), l(
|
|
1790
|
+
renderItem: (m) => /* @__PURE__ */ e(ie, { ...m, onButtonClick: r[0].onButtonClick }),
|
|
1791
|
+
onMove: ({ index: m, isStart: _, isEnd: k }) => {
|
|
1792
|
+
s({ isStart: _, isEnd: k }), l(m);
|
|
1793
1793
|
}
|
|
1794
1794
|
}
|
|
1795
1795
|
),
|
|
1796
|
-
|
|
1797
|
-
|
|
1796
|
+
u && /* @__PURE__ */ e(
|
|
1797
|
+
he,
|
|
1798
1798
|
{
|
|
1799
1799
|
total: r.length,
|
|
1800
1800
|
active: d,
|
|
1801
|
-
onSelect: (
|
|
1801
|
+
onSelect: (m) => {
|
|
1802
1802
|
var _;
|
|
1803
|
-
l(
|
|
1803
|
+
l(m), (_ = x.current) == null || _.go(m);
|
|
1804
1804
|
}
|
|
1805
1805
|
}
|
|
1806
1806
|
)
|
|
1807
1807
|
] })
|
|
1808
1808
|
]
|
|
1809
1809
|
}
|
|
1810
|
-
) : /* @__PURE__ */ e(C, { component: "section", sx:
|
|
1810
|
+
) : /* @__PURE__ */ e(C, { component: "section", sx: y, children: /* @__PURE__ */ p(
|
|
1811
1811
|
C,
|
|
1812
1812
|
{
|
|
1813
1813
|
sx: {
|
|
@@ -1832,15 +1832,15 @@ const Et = (t, i) => {
|
|
|
1832
1832
|
C,
|
|
1833
1833
|
{
|
|
1834
1834
|
sx: {
|
|
1835
|
-
...
|
|
1835
|
+
...se,
|
|
1836
1836
|
textAlign: "left",
|
|
1837
1837
|
mb: 0
|
|
1838
1838
|
},
|
|
1839
1839
|
children: [
|
|
1840
|
-
c && /* @__PURE__ */ e(
|
|
1841
|
-
o && /* @__PURE__ */ p(
|
|
1840
|
+
c && /* @__PURE__ */ e(j, { component: "span", sx: ce, children: c }),
|
|
1841
|
+
o && /* @__PURE__ */ p(Y, { children: [
|
|
1842
1842
|
/* @__PURE__ */ e("br", {}),
|
|
1843
|
-
/* @__PURE__ */ e(
|
|
1843
|
+
/* @__PURE__ */ e(j, { component: "span", sx: le, children: o })
|
|
1844
1844
|
] })
|
|
1845
1845
|
]
|
|
1846
1846
|
}
|
|
@@ -1857,11 +1857,11 @@ const Et = (t, i) => {
|
|
|
1857
1857
|
flexWrap: "nowrap",
|
|
1858
1858
|
gap: 4
|
|
1859
1859
|
},
|
|
1860
|
-
children: r.map((
|
|
1861
|
-
|
|
1860
|
+
children: r.map((m, _) => /* @__PURE__ */ e(
|
|
1861
|
+
ie,
|
|
1862
1862
|
{
|
|
1863
|
-
onButtonClick:
|
|
1864
|
-
...
|
|
1863
|
+
onButtonClick: m.onButtonClick,
|
|
1864
|
+
...m
|
|
1865
1865
|
},
|
|
1866
1866
|
_
|
|
1867
1867
|
))
|
|
@@ -1870,19 +1870,19 @@ const Et = (t, i) => {
|
|
|
1870
1870
|
]
|
|
1871
1871
|
}
|
|
1872
1872
|
) });
|
|
1873
|
-
},
|
|
1873
|
+
}, Pt = ({
|
|
1874
1874
|
className: t = "",
|
|
1875
1875
|
fullBleed: i = !0,
|
|
1876
1876
|
items: r,
|
|
1877
1877
|
selectedIndex: n = 0,
|
|
1878
1878
|
ariaLabel: c
|
|
1879
1879
|
}) => {
|
|
1880
|
-
const o =
|
|
1880
|
+
const o = B(null), a = B(null);
|
|
1881
1881
|
if (!r) return null;
|
|
1882
|
-
const
|
|
1882
|
+
const u = () => {
|
|
1883
1883
|
window.location.href = "https://www.olimpo.bet/conoce-club-olimpo";
|
|
1884
1884
|
}, g = Array.isArray(r) ? r[n] : r;
|
|
1885
|
-
|
|
1885
|
+
$e(() => {
|
|
1886
1886
|
if (!o.current || !a.current || typeof ResizeObserver == "undefined") return;
|
|
1887
1887
|
const x = o.current, w = a.current, s = () => {
|
|
1888
1888
|
x.style.setProperty(
|
|
@@ -1892,7 +1892,7 @@ const Et = (t, i) => {
|
|
|
1892
1892
|
}, d = new ResizeObserver(s);
|
|
1893
1893
|
return d.observe(w), s(), () => d.disconnect();
|
|
1894
1894
|
}, []);
|
|
1895
|
-
const
|
|
1895
|
+
const y = [
|
|
1896
1896
|
"orc-co-wrap",
|
|
1897
1897
|
i ? "orc-co-fullBleed" : "",
|
|
1898
1898
|
t
|
|
@@ -1901,13 +1901,13 @@ const Et = (t, i) => {
|
|
|
1901
1901
|
"section",
|
|
1902
1902
|
{
|
|
1903
1903
|
ref: o,
|
|
1904
|
-
className:
|
|
1904
|
+
className: y,
|
|
1905
1905
|
"aria-label": c || g.imgAlt || "Club Olimpo",
|
|
1906
1906
|
children: /* @__PURE__ */ e("div", { ref: a, children: /* @__PURE__ */ e(
|
|
1907
|
-
|
|
1907
|
+
tt,
|
|
1908
1908
|
{
|
|
1909
1909
|
text: g.text,
|
|
1910
|
-
onClick:
|
|
1910
|
+
onClick: u,
|
|
1911
1911
|
imgAlt: g.imgAlt,
|
|
1912
1912
|
imgSrcMobile: g.imgMobile,
|
|
1913
1913
|
imgSrcDesktopBg: g.imgDesktopBg,
|
|
@@ -1916,17 +1916,17 @@ const Et = (t, i) => {
|
|
|
1916
1916
|
) })
|
|
1917
1917
|
}
|
|
1918
1918
|
);
|
|
1919
|
-
},
|
|
1920
|
-
controls:
|
|
1919
|
+
}, Ft = "oraculo__OraculoSeccionEventoCombinadas-module__controls___Zsta4", Ut = {
|
|
1920
|
+
controls: Ft
|
|
1921
1921
|
};
|
|
1922
|
-
function
|
|
1922
|
+
function zt({
|
|
1923
1923
|
items: t,
|
|
1924
1924
|
title: i = "Combinadas del Olimpo",
|
|
1925
1925
|
iconUrl: r,
|
|
1926
1926
|
onViewMore: n,
|
|
1927
1927
|
className: c = ""
|
|
1928
1928
|
}) {
|
|
1929
|
-
const o =
|
|
1929
|
+
const o = B(null), [a, u] = U({ isStart: !0, isEnd: !1 }), [g, y] = U([]), x = () => {
|
|
1930
1930
|
var E;
|
|
1931
1931
|
(E = o.current) == null || E.prev();
|
|
1932
1932
|
}, w = () => {
|
|
@@ -1935,32 +1935,32 @@ function Wt({
|
|
|
1935
1935
|
}, s = () => {
|
|
1936
1936
|
n == null || n();
|
|
1937
1937
|
};
|
|
1938
|
-
function d(E,
|
|
1938
|
+
function d(E, R, P) {
|
|
1939
1939
|
const I = [];
|
|
1940
1940
|
for (const N of P) {
|
|
1941
|
-
const
|
|
1942
|
-
|
|
1943
|
-
const
|
|
1944
|
-
(
|
|
1941
|
+
const f = m([N]), h = R.reduce((b, v) => {
|
|
1942
|
+
b[v.eventId] || (b[v.eventId] = []);
|
|
1943
|
+
const $ = v.outcomes.filter(
|
|
1944
|
+
(O) => f.has(O.id)
|
|
1945
1945
|
);
|
|
1946
|
-
return
|
|
1947
|
-
...
|
|
1948
|
-
outcomes:
|
|
1949
|
-
}),
|
|
1950
|
-
}, {}),
|
|
1951
|
-
E.forEach((
|
|
1952
|
-
if (
|
|
1953
|
-
const
|
|
1954
|
-
let
|
|
1955
|
-
for (const
|
|
1956
|
-
if ([...
|
|
1957
|
-
|
|
1946
|
+
return $.length > 0 && b[v.eventId].push({
|
|
1947
|
+
...v,
|
|
1948
|
+
outcomes: $
|
|
1949
|
+
}), b;
|
|
1950
|
+
}, {}), S = l(N);
|
|
1951
|
+
E.forEach((b) => {
|
|
1952
|
+
if (b.id !== N.prePackCouponRows[0].eventId) return;
|
|
1953
|
+
const v = f;
|
|
1954
|
+
let $ = null;
|
|
1955
|
+
for (const O of S)
|
|
1956
|
+
if ([...O.requiredOutcomeIds].every((A) => v.has(A))) {
|
|
1957
|
+
$ = O.decimal;
|
|
1958
1958
|
break;
|
|
1959
1959
|
}
|
|
1960
1960
|
I.push({
|
|
1961
|
-
...
|
|
1962
|
-
combinadoTotal:
|
|
1963
|
-
betoffers:
|
|
1961
|
+
...b,
|
|
1962
|
+
combinadoTotal: $,
|
|
1963
|
+
betoffers: h[b.id] || [],
|
|
1964
1964
|
couponId: N.id
|
|
1965
1965
|
// optional for tracking
|
|
1966
1966
|
});
|
|
@@ -1970,61 +1970,61 @@ function Wt({
|
|
|
1970
1970
|
}
|
|
1971
1971
|
function l(E) {
|
|
1972
1972
|
var P;
|
|
1973
|
-
const
|
|
1973
|
+
const R = [];
|
|
1974
1974
|
for (const I of E.prePackCouponRows)
|
|
1975
1975
|
if (I.type === "BET_BUILDER" && ((P = I.group) != null && P.groups)) {
|
|
1976
1976
|
const N = /* @__PURE__ */ new Set();
|
|
1977
|
-
I.group.groups.forEach((
|
|
1978
|
-
var
|
|
1979
|
-
(
|
|
1980
|
-
}),
|
|
1977
|
+
I.group.groups.forEach((f) => {
|
|
1978
|
+
var h;
|
|
1979
|
+
(h = f.outcomes) == null || h.forEach((S) => N.add(S.id));
|
|
1980
|
+
}), R.push({
|
|
1981
1981
|
requiredOutcomeIds: N,
|
|
1982
1982
|
decimal: I.odds.decimal
|
|
1983
1983
|
});
|
|
1984
1984
|
}
|
|
1985
|
-
return
|
|
1985
|
+
return R;
|
|
1986
1986
|
}
|
|
1987
|
-
function
|
|
1987
|
+
function m(E) {
|
|
1988
1988
|
var P;
|
|
1989
|
-
const
|
|
1989
|
+
const R = /* @__PURE__ */ new Set();
|
|
1990
1990
|
for (const I of E)
|
|
1991
1991
|
for (const N of I.prePackCouponRows)
|
|
1992
|
-
N.type === "BET_BUILDER" && ((P = N.group) != null && P.groups) && N.group.groups.forEach((
|
|
1993
|
-
var
|
|
1994
|
-
(
|
|
1995
|
-
}), N.type === "SIMPLE" && N.outcome &&
|
|
1996
|
-
return
|
|
1992
|
+
N.type === "BET_BUILDER" && ((P = N.group) != null && P.groups) && N.group.groups.forEach((f) => {
|
|
1993
|
+
var h;
|
|
1994
|
+
(h = f.outcomes) == null || h.forEach((S) => R.add(S.id));
|
|
1995
|
+
}), N.type === "SIMPLE" && N.outcome && R.add(N.outcome.id);
|
|
1996
|
+
return R;
|
|
1997
1997
|
}
|
|
1998
1998
|
async function _() {
|
|
1999
|
-
var E,
|
|
1999
|
+
var E, R, P;
|
|
2000
2000
|
try {
|
|
2001
|
-
const I = (P = (
|
|
2001
|
+
const I = (P = (R = (E = t == null ? void 0 : t.group) == null ? void 0 : E.groups) == null ? void 0 : R[0]) == null ? void 0 : P.id;
|
|
2002
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/${I}.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764283566783&prePackCouponTags=CUSTOM`,
|
|
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`, h = await (await fetch(N)).json();
|
|
2007
|
+
y(
|
|
2008
|
+
d(h.events, h.betOffers, h.prePackCoupons)
|
|
2009
2009
|
);
|
|
2010
2010
|
} catch (I) {
|
|
2011
2011
|
console.error("loadDataEventSpecial error:", I);
|
|
2012
2012
|
}
|
|
2013
2013
|
}
|
|
2014
|
-
return
|
|
2014
|
+
return J(() => {
|
|
2015
2015
|
t && _();
|
|
2016
|
-
}, [t]), /* @__PURE__ */ e("section", { className: c || void 0, style: { width: "100%" }, children: /* @__PURE__ */ p(
|
|
2017
|
-
/* @__PURE__ */ p(
|
|
2018
|
-
/* @__PURE__ */ e(
|
|
2019
|
-
/* @__PURE__ */ p("div", { className:
|
|
2020
|
-
/* @__PURE__ */ p(
|
|
2016
|
+
}, [t]), /* @__PURE__ */ e("section", { className: c || void 0, style: { width: "100%" }, children: /* @__PURE__ */ p(z, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
2017
|
+
/* @__PURE__ */ p(G, { spacing: 1.5, columns: "1fr auto auto", justify: "start", children: [
|
|
2018
|
+
/* @__PURE__ */ e(D, { title: i, iconUrl: r, size: "md" }),
|
|
2019
|
+
/* @__PURE__ */ p("div", { className: Ut.controls, children: [
|
|
2020
|
+
/* @__PURE__ */ p(G, { 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(
|
|
2027
|
+
leftIcon: /* @__PURE__ */ e(oe, {}),
|
|
2028
2028
|
onClick: x,
|
|
2029
2029
|
disabled: a.isStart
|
|
2030
2030
|
}
|
|
@@ -2035,7 +2035,7 @@ function Wt({
|
|
|
2035
2035
|
ariaLabel: "Siguiente",
|
|
2036
2036
|
variant: "secondary",
|
|
2037
2037
|
iconOnly: !0,
|
|
2038
|
-
rightIcon: /* @__PURE__ */ e(
|
|
2038
|
+
rightIcon: /* @__PURE__ */ e(ne, {}),
|
|
2039
2039
|
onClick: w,
|
|
2040
2040
|
disabled: a.isEnd
|
|
2041
2041
|
}
|
|
@@ -2045,7 +2045,7 @@ function Wt({
|
|
|
2045
2045
|
] })
|
|
2046
2046
|
] }),
|
|
2047
2047
|
/* @__PURE__ */ e(
|
|
2048
|
-
|
|
2048
|
+
H,
|
|
2049
2049
|
{
|
|
2050
2050
|
ref: o,
|
|
2051
2051
|
items: g,
|
|
@@ -2056,13 +2056,13 @@ function Wt({
|
|
|
2056
2056
|
breakpoints: {
|
|
2057
2057
|
768: { perPage: 1.2, gap: "12px", padding: { left: "0px", right: "0px" } }
|
|
2058
2058
|
},
|
|
2059
|
-
renderItem: (E) => /* @__PURE__ */ e(
|
|
2060
|
-
onMove: ({ isStart: E, isEnd:
|
|
2059
|
+
renderItem: (E) => /* @__PURE__ */ e(dt, { event: E }),
|
|
2060
|
+
onMove: ({ isStart: E, isEnd: R }) => u({ isStart: E, isEnd: R })
|
|
2061
2061
|
}
|
|
2062
2062
|
)
|
|
2063
2063
|
] }) });
|
|
2064
2064
|
}
|
|
2065
|
-
function
|
|
2065
|
+
function Lt({
|
|
2066
2066
|
items: t,
|
|
2067
2067
|
title: i = "En vivo",
|
|
2068
2068
|
iconUrl: r,
|
|
@@ -2071,18 +2071,18 @@ function Bt({
|
|
|
2071
2071
|
}) {
|
|
2072
2072
|
var s, d;
|
|
2073
2073
|
console.log("wefwef", t);
|
|
2074
|
-
const o =
|
|
2074
|
+
const o = B(null), [a, u] = U({ isStart: !0, isEnd: !1 }), g = () => {
|
|
2075
2075
|
var l;
|
|
2076
2076
|
(l = o.current) == null || l.prev();
|
|
2077
|
-
},
|
|
2077
|
+
}, y = () => {
|
|
2078
2078
|
var l;
|
|
2079
2079
|
(l = o.current) == null || l.next(), console.log("items: ", t);
|
|
2080
2080
|
}, x = () => {
|
|
2081
2081
|
n == null || n();
|
|
2082
2082
|
};
|
|
2083
2083
|
return /* @__PURE__ */ p("section", { className: c || void 0, style: { width: "100%" }, children: [
|
|
2084
|
-
/* @__PURE__ */ p(
|
|
2085
|
-
/* @__PURE__ */ e(
|
|
2084
|
+
/* @__PURE__ */ p(G, { spacing: 1.5, columns: "1fr auto auto", justify: "start", children: [
|
|
2085
|
+
/* @__PURE__ */ e(D, { title: i, iconUrl: r, size: "md" }),
|
|
2086
2086
|
/* @__PURE__ */ p("div", { style: { display: "flex", gap: 8 }, children: [
|
|
2087
2087
|
/* @__PURE__ */ e(
|
|
2088
2088
|
T,
|
|
@@ -2090,7 +2090,7 @@ function Bt({
|
|
|
2090
2090
|
ariaLabel: "Anterior",
|
|
2091
2091
|
variant: "secondary",
|
|
2092
2092
|
iconOnly: !0,
|
|
2093
|
-
leftIcon: /* @__PURE__ */ e(
|
|
2093
|
+
leftIcon: /* @__PURE__ */ e(oe, {}),
|
|
2094
2094
|
onClick: g,
|
|
2095
2095
|
disabled: a.isStart
|
|
2096
2096
|
}
|
|
@@ -2101,8 +2101,8 @@ function Bt({
|
|
|
2101
2101
|
ariaLabel: "Siguiente",
|
|
2102
2102
|
variant: "secondary",
|
|
2103
2103
|
iconOnly: !0,
|
|
2104
|
-
rightIcon: /* @__PURE__ */ e(
|
|
2105
|
-
onClick:
|
|
2104
|
+
rightIcon: /* @__PURE__ */ e(ne, {}),
|
|
2105
|
+
onClick: y,
|
|
2106
2106
|
disabled: a.isEnd
|
|
2107
2107
|
}
|
|
2108
2108
|
)
|
|
@@ -2110,10 +2110,10 @@ function Bt({
|
|
|
2110
2110
|
/* @__PURE__ */ e(T, { variant: "secondary", onClick: x, children: "Ver más" })
|
|
2111
2111
|
] }),
|
|
2112
2112
|
/* @__PURE__ */ e(
|
|
2113
|
-
|
|
2113
|
+
H,
|
|
2114
2114
|
{
|
|
2115
2115
|
ref: o,
|
|
2116
|
-
items: (d = (s = t == null ? void 0 : t.events) == null ? void 0 : s.filter((l) => l.event.sport === "FOOTBALL").sort((l,
|
|
2116
|
+
items: (d = (s = t == null ? void 0 : t.events) == null ? void 0 : s.filter((l) => l.event.sport === "FOOTBALL").sort((l, m) => new Date(m.event.start).getTime() - new Date(l.event.start).getTime())) != null ? d : [],
|
|
2117
2117
|
perPage: 3.395,
|
|
2118
2118
|
gap: "16px",
|
|
2119
2119
|
options: { autoWidth: !0 },
|
|
@@ -2121,18 +2121,18 @@ function Bt({
|
|
|
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(
|
|
2125
|
-
onMove: ({ isStart: l, isEnd:
|
|
2124
|
+
renderItem: (l) => /* @__PURE__ */ e(pt, { ...l }),
|
|
2125
|
+
onMove: ({ isStart: l, isEnd: m }) => u({ isStart: l, isEnd: m })
|
|
2126
2126
|
}
|
|
2127
2127
|
)
|
|
2128
2128
|
] });
|
|
2129
2129
|
}
|
|
2130
|
-
const
|
|
2131
|
-
wrapper:
|
|
2132
|
-
container:
|
|
2133
|
-
buttonWrapper:
|
|
2130
|
+
const At = "oraculo__OraculoSeccionEventoSemana-module__wrapper___eqVq-", Wt = "oraculo__OraculoSeccionEventoSemana-module__container___5yFQs", Bt = "oraculo__OraculoSeccionEventoSemana-module__buttonWrapper___-6IDT", ee = {
|
|
2131
|
+
wrapper: At,
|
|
2132
|
+
container: Wt,
|
|
2133
|
+
buttonWrapper: Bt
|
|
2134
2134
|
};
|
|
2135
|
-
function
|
|
2135
|
+
function jt({
|
|
2136
2136
|
items: t,
|
|
2137
2137
|
title: i = "En vivo",
|
|
2138
2138
|
iconUrl: r,
|
|
@@ -2143,7 +2143,7 @@ function Dt({
|
|
|
2143
2143
|
o.toISOString();
|
|
2144
2144
|
const a = new Date(o);
|
|
2145
2145
|
a.setDate(a.getDate() + 7), a.toISOString();
|
|
2146
|
-
const
|
|
2146
|
+
const u = B(null), [g, y] = U({ isStart: !0, isEnd: !1 }), [x, w] = U([]), s = () => {
|
|
2147
2147
|
n == null || n();
|
|
2148
2148
|
};
|
|
2149
2149
|
async function d() {
|
|
@@ -2159,13 +2159,13 @@ function Dt({
|
|
|
2159
2159
|
}
|
|
2160
2160
|
async function l(k) {
|
|
2161
2161
|
try {
|
|
2162
|
-
const
|
|
2163
|
-
w(
|
|
2162
|
+
const R = await (await fetch(k)).json(), P = R.events.map((N) => N.event), I = R.events.flatMap((N) => N.betOffers || []);
|
|
2163
|
+
w(m(P, I));
|
|
2164
2164
|
} catch (E) {
|
|
2165
2165
|
console.error(E);
|
|
2166
2166
|
}
|
|
2167
2167
|
}
|
|
2168
|
-
function
|
|
2168
|
+
function m(k, E) {
|
|
2169
2169
|
const P = E.filter((I) => {
|
|
2170
2170
|
var N;
|
|
2171
2171
|
return ((N = I.betOfferType) == null ? void 0 : N.id) === 2;
|
|
@@ -2175,19 +2175,19 @@ function Dt({
|
|
|
2175
2175
|
outcome: P[I.id]
|
|
2176
2176
|
}));
|
|
2177
2177
|
}
|
|
2178
|
-
return
|
|
2178
|
+
return J(() => {
|
|
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:
|
|
2182
|
-
/* @__PURE__ */ e(
|
|
2183
|
-
/* @__PURE__ */ e("div", { className:
|
|
2180
|
+
}, [t]), /* @__PURE__ */ e("section", { className: c || void 0, style: { width: "100%" }, children: /* @__PURE__ */ p("div", { className: ee.wrapper, children: [
|
|
2181
|
+
/* @__PURE__ */ e("div", { className: ee.container, children: /* @__PURE__ */ p(z, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
2182
|
+
/* @__PURE__ */ e(D, { title: "Eventos de la semana" }),
|
|
2183
|
+
/* @__PURE__ */ e("div", { className: ee.buttonWrapper, children: /* @__PURE__ */ e(T, { variant: "secondary", size: "lg", fullWidth: !0, onClick: () => {
|
|
2184
2184
|
s();
|
|
2185
2185
|
}, children: "Ver más" }) })
|
|
2186
2186
|
] }) }),
|
|
2187
2187
|
/* @__PURE__ */ e("div", { style: { minWidth: 0 }, children: /* @__PURE__ */ e(
|
|
2188
|
-
|
|
2188
|
+
H,
|
|
2189
2189
|
{
|
|
2190
|
-
ref:
|
|
2190
|
+
ref: u,
|
|
2191
2191
|
items: x,
|
|
2192
2192
|
perPage: 3.5,
|
|
2193
2193
|
gap: "16px",
|
|
@@ -2195,13 +2195,13 @@ function Dt({
|
|
|
2195
2195
|
breakpoints: {
|
|
2196
2196
|
1024: { perPage: 1.4, gap: "8px", focus: "center", padding: { left: "8px", right: "8px" } }
|
|
2197
2197
|
},
|
|
2198
|
-
renderItem: (k) => /* @__PURE__ */ e(
|
|
2199
|
-
onMove: ({ isStart: k, isEnd: E }) =>
|
|
2198
|
+
renderItem: (k) => /* @__PURE__ */ e(bt, { event: k }),
|
|
2199
|
+
onMove: ({ isStart: k, isEnd: E }) => y({ isStart: k, isEnd: E })
|
|
2200
2200
|
}
|
|
2201
2201
|
) })
|
|
2202
2202
|
] }) });
|
|
2203
2203
|
}
|
|
2204
|
-
const
|
|
2204
|
+
const Gt = [
|
|
2205
2205
|
{
|
|
2206
2206
|
desktopSrc: "https://stg-www.contodobet.com/static/img/landing/Banner/FondoDesktop.png",
|
|
2207
2207
|
mobileSrc: "https://stg-www.contodobet.com/static/img/landing/Banner/FondoMisiones.png",
|
|
@@ -2212,7 +2212,7 @@ const Ht = [
|
|
|
2212
2212
|
mobileSrc: "https://stg-www.contodobet.com/static/img/landing/Banner/FondoMisiones.png",
|
|
2213
2213
|
fallbackSrc: "https://stg-www.contodobet.com/static/img/landing/Banner/FondoMisiones.jpg"
|
|
2214
2214
|
}
|
|
2215
|
-
],
|
|
2215
|
+
], Mt = [
|
|
2216
2216
|
{
|
|
2217
2217
|
id: 1,
|
|
2218
2218
|
label: "APUESTAS",
|
|
@@ -2238,13 +2238,13 @@ const Ht = [
|
|
|
2238
2238
|
onclick: () => console.log("MISIONES")
|
|
2239
2239
|
}
|
|
2240
2240
|
];
|
|
2241
|
-
function
|
|
2242
|
-
backgrounds: t =
|
|
2243
|
-
items: i =
|
|
2241
|
+
function Dt({
|
|
2242
|
+
backgrounds: t = Gt,
|
|
2243
|
+
items: i = Mt
|
|
2244
2244
|
}) {
|
|
2245
2245
|
const [r, n] = U(0), c = t.length || 1;
|
|
2246
2246
|
return /* @__PURE__ */ p(
|
|
2247
|
-
|
|
2247
|
+
F,
|
|
2248
2248
|
{
|
|
2249
2249
|
component: "section",
|
|
2250
2250
|
sx: {
|
|
@@ -2258,7 +2258,7 @@ function Jt({
|
|
|
2258
2258
|
},
|
|
2259
2259
|
children: [
|
|
2260
2260
|
/* @__PURE__ */ p(
|
|
2261
|
-
|
|
2261
|
+
F,
|
|
2262
2262
|
{
|
|
2263
2263
|
sx: {
|
|
2264
2264
|
position: "relative",
|
|
@@ -2268,7 +2268,7 @@ function Jt({
|
|
|
2268
2268
|
},
|
|
2269
2269
|
children: [
|
|
2270
2270
|
/* @__PURE__ */ e(
|
|
2271
|
-
|
|
2271
|
+
H,
|
|
2272
2272
|
{
|
|
2273
2273
|
items: t,
|
|
2274
2274
|
perPage: 1,
|
|
@@ -2284,7 +2284,7 @@ function Jt({
|
|
|
2284
2284
|
renderItem: (o) => {
|
|
2285
2285
|
var a;
|
|
2286
2286
|
return /* @__PURE__ */ p(
|
|
2287
|
-
|
|
2287
|
+
F,
|
|
2288
2288
|
{
|
|
2289
2289
|
sx: {
|
|
2290
2290
|
position: "relative",
|
|
@@ -2292,7 +2292,7 @@ function Jt({
|
|
|
2292
2292
|
},
|
|
2293
2293
|
children: [
|
|
2294
2294
|
/* @__PURE__ */ p(
|
|
2295
|
-
|
|
2295
|
+
F,
|
|
2296
2296
|
{
|
|
2297
2297
|
component: "picture",
|
|
2298
2298
|
sx: { position: "absolute", inset: 0, lineHeight: 0 },
|
|
@@ -2312,7 +2312,7 @@ function Jt({
|
|
|
2312
2312
|
}
|
|
2313
2313
|
),
|
|
2314
2314
|
/* @__PURE__ */ e(
|
|
2315
|
-
|
|
2315
|
+
F,
|
|
2316
2316
|
{
|
|
2317
2317
|
component: "img",
|
|
2318
2318
|
src: (a = o.fallbackSrc) != null ? a : o.desktopSrc,
|
|
@@ -2331,7 +2331,7 @@ function Jt({
|
|
|
2331
2331
|
}
|
|
2332
2332
|
),
|
|
2333
2333
|
/* @__PURE__ */ e(
|
|
2334
|
-
|
|
2334
|
+
F,
|
|
2335
2335
|
{
|
|
2336
2336
|
sx: {
|
|
2337
2337
|
position: "absolute",
|
|
@@ -2353,7 +2353,7 @@ function Jt({
|
|
|
2353
2353
|
}
|
|
2354
2354
|
),
|
|
2355
2355
|
/* @__PURE__ */ e(
|
|
2356
|
-
|
|
2356
|
+
F,
|
|
2357
2357
|
{
|
|
2358
2358
|
sx: {
|
|
2359
2359
|
position: "absolute",
|
|
@@ -2364,14 +2364,14 @@ function Jt({
|
|
|
2364
2364
|
justifyContent: "center",
|
|
2365
2365
|
zIndex: 2
|
|
2366
2366
|
},
|
|
2367
|
-
children: /* @__PURE__ */ e(
|
|
2367
|
+
children: /* @__PURE__ */ e(he, { total: c, active: r })
|
|
2368
2368
|
}
|
|
2369
2369
|
)
|
|
2370
2370
|
]
|
|
2371
2371
|
}
|
|
2372
2372
|
),
|
|
2373
2373
|
/* @__PURE__ */ e(
|
|
2374
|
-
|
|
2374
|
+
F,
|
|
2375
2375
|
{
|
|
2376
2376
|
sx: {
|
|
2377
2377
|
position: "absolute",
|
|
@@ -2390,7 +2390,7 @@ function Jt({
|
|
|
2390
2390
|
zIndex: 3
|
|
2391
2391
|
},
|
|
2392
2392
|
children: i.map((o) => /* @__PURE__ */ p(
|
|
2393
|
-
|
|
2393
|
+
F,
|
|
2394
2394
|
{
|
|
2395
2395
|
sx: {
|
|
2396
2396
|
display: "flex",
|
|
@@ -2406,7 +2406,7 @@ function Jt({
|
|
|
2406
2406
|
},
|
|
2407
2407
|
children: [
|
|
2408
2408
|
o.icon && /* @__PURE__ */ e(
|
|
2409
|
-
|
|
2409
|
+
F,
|
|
2410
2410
|
{
|
|
2411
2411
|
component: "img",
|
|
2412
2412
|
src: o.icon,
|
|
@@ -2421,7 +2421,7 @@ function Jt({
|
|
|
2421
2421
|
}
|
|
2422
2422
|
),
|
|
2423
2423
|
/* @__PURE__ */ e(
|
|
2424
|
-
|
|
2424
|
+
pe,
|
|
2425
2425
|
{
|
|
2426
2426
|
sx: {
|
|
2427
2427
|
fontSize: 12,
|
|
@@ -2442,7 +2442,7 @@ function Jt({
|
|
|
2442
2442
|
}
|
|
2443
2443
|
);
|
|
2444
2444
|
}
|
|
2445
|
-
const
|
|
2445
|
+
const Ht = [
|
|
2446
2446
|
[
|
|
2447
2447
|
{ src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/IBK.svg", alt: "Interbank" },
|
|
2448
2448
|
{ src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/Yape.svg", alt: "Yape" }
|
|
@@ -2453,14 +2453,14 @@ const qt = [
|
|
|
2453
2453
|
{ src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/niubiz.svg", alt: "Niubiz" }
|
|
2454
2454
|
]
|
|
2455
2455
|
];
|
|
2456
|
-
function
|
|
2456
|
+
function Xt({
|
|
2457
2457
|
title: t = "Medios de pago",
|
|
2458
|
-
rows: i =
|
|
2458
|
+
rows: i = Ht
|
|
2459
2459
|
}) {
|
|
2460
2460
|
const r = i.flat();
|
|
2461
|
-
return /* @__PURE__ */ p(
|
|
2461
|
+
return /* @__PURE__ */ p(F, { component: "section", "aria-labelledby": "mp-title", sx: { color: "#fff" }, children: [
|
|
2462
2462
|
/* @__PURE__ */ e(
|
|
2463
|
-
|
|
2463
|
+
pe,
|
|
2464
2464
|
{
|
|
2465
2465
|
id: "mp-title",
|
|
2466
2466
|
variant: "h6",
|
|
@@ -2474,7 +2474,7 @@ function Kt({
|
|
|
2474
2474
|
}
|
|
2475
2475
|
),
|
|
2476
2476
|
/* @__PURE__ */ e(
|
|
2477
|
-
|
|
2477
|
+
F,
|
|
2478
2478
|
{
|
|
2479
2479
|
sx: {
|
|
2480
2480
|
width: "288px",
|
|
@@ -2487,20 +2487,20 @@ function Kt({
|
|
|
2487
2487
|
}
|
|
2488
2488
|
}
|
|
2489
2489
|
),
|
|
2490
|
-
/* @__PURE__ */ e(
|
|
2491
|
-
|
|
2490
|
+
/* @__PURE__ */ e(F, { sx: { display: { xs: "block", md: "none" } }, children: i.map((n, c) => /* @__PURE__ */ e(
|
|
2491
|
+
me,
|
|
2492
2492
|
{
|
|
2493
2493
|
direction: "row",
|
|
2494
2494
|
justifyContent: "center",
|
|
2495
2495
|
alignItems: "center",
|
|
2496
2496
|
gap: 2.5,
|
|
2497
2497
|
flexWrap: "wrap",
|
|
2498
|
-
children: n.map((o) => /* @__PURE__ */ e(
|
|
2498
|
+
children: n.map((o) => /* @__PURE__ */ e(ae, { ...o }, `${o.src}-${o.alt}`))
|
|
2499
2499
|
},
|
|
2500
2500
|
c
|
|
2501
2501
|
)) }),
|
|
2502
2502
|
/* @__PURE__ */ e(
|
|
2503
|
-
|
|
2503
|
+
F,
|
|
2504
2504
|
{
|
|
2505
2505
|
sx: {
|
|
2506
2506
|
mt: 3,
|
|
@@ -2511,244 +2511,230 @@ function Kt({
|
|
|
2511
2511
|
gridTemplateColumns: { md: "repeat(auto-fit, 160px)" },
|
|
2512
2512
|
justifyContent: { md: "center" }
|
|
2513
2513
|
},
|
|
2514
|
-
children: r.map((n) => /* @__PURE__ */ e(
|
|
2514
|
+
children: r.map((n) => /* @__PURE__ */ e(ae, { ...n }, `${n.src}-${n.alt}`))
|
|
2515
2515
|
}
|
|
2516
2516
|
)
|
|
2517
2517
|
] });
|
|
2518
2518
|
}
|
|
2519
|
-
const
|
|
2520
|
-
OraculoSeccionDestacados:
|
|
2521
|
-
OraculoSeccionTopJuegos:
|
|
2522
|
-
OraculoSeccionCasinoEnVivo:
|
|
2523
|
-
OraculoSeccionCasino:
|
|
2524
|
-
OraculoSeccionVirtuales:
|
|
2525
|
-
OraculoSeccionClubOlimpo:
|
|
2526
|
-
OraculoSeccionBonoBienvenida:
|
|
2527
|
-
OraculoSeccionBanners:
|
|
2528
|
-
OraculoSeccionMediosPago:
|
|
2529
|
-
OraculoSeccionEventoEnVivo:
|
|
2530
|
-
OraculoSeccionEventoSemana:
|
|
2531
|
-
OraculoSeccionEventoCombinadas:
|
|
2532
|
-
},
|
|
2533
|
-
Object.entries(
|
|
2534
|
-
([t, i]) =>
|
|
2519
|
+
const Jt = {
|
|
2520
|
+
OraculoSeccionDestacados: vt,
|
|
2521
|
+
OraculoSeccionTopJuegos: _t,
|
|
2522
|
+
OraculoSeccionCasinoEnVivo: Ct,
|
|
2523
|
+
OraculoSeccionCasino: It,
|
|
2524
|
+
OraculoSeccionVirtuales: Ot,
|
|
2525
|
+
OraculoSeccionClubOlimpo: Pt,
|
|
2526
|
+
OraculoSeccionBonoBienvenida: Tt,
|
|
2527
|
+
OraculoSeccionBanners: Dt,
|
|
2528
|
+
OraculoSeccionMediosPago: Xt,
|
|
2529
|
+
OraculoSeccionEventoEnVivo: Lt,
|
|
2530
|
+
OraculoSeccionEventoSemana: jt,
|
|
2531
|
+
OraculoSeccionEventoCombinadas: zt
|
|
2532
|
+
}, Kt = (t) => typeof t == "function" || t && typeof t == "object" && "$$typeof" in t, qt = (t) => /^OraculoSeccion[A-Z]/.test(t), Yt = Object.fromEntries(
|
|
2533
|
+
Object.entries(Jt).filter(
|
|
2534
|
+
([t, i]) => qt(t) && Kt(i)
|
|
2535
2535
|
)
|
|
2536
2536
|
);
|
|
2537
|
-
class
|
|
2537
|
+
class de extends Error {
|
|
2538
2538
|
constructor(i, r, n) {
|
|
2539
2539
|
super(`HTTP ${i} ${n}`), this.status = i, this.url = r, this.statusText = n, this.name = "HttpError";
|
|
2540
2540
|
}
|
|
2541
2541
|
}
|
|
2542
|
-
const
|
|
2542
|
+
const lo = ({
|
|
2543
2543
|
sectionsOverride: t,
|
|
2544
2544
|
docId: i = "home",
|
|
2545
2545
|
db: r
|
|
2546
2546
|
}) => {
|
|
2547
2547
|
const [n, c] = U(
|
|
2548
2548
|
[]
|
|
2549
|
-
), [o, a] = U(!1), [
|
|
2550
|
-
|
|
2549
|
+
), [o, a] = U(!1), [u, g] = U({}), [y, x] = U({}), [w, s] = U({});
|
|
2550
|
+
J(() => {
|
|
2551
2551
|
if (t || !r) return;
|
|
2552
2552
|
a(!0);
|
|
2553
|
-
const
|
|
2554
|
-
|
|
2555
|
-
(
|
|
2556
|
-
var
|
|
2553
|
+
const f = Oe(
|
|
2554
|
+
Re(r, "landings", i),
|
|
2555
|
+
(h) => {
|
|
2556
|
+
var S;
|
|
2557
2557
|
try {
|
|
2558
|
-
let b =
|
|
2559
|
-
b = b.slice().sort((
|
|
2560
|
-
var
|
|
2561
|
-
return ((
|
|
2562
|
-
}).map((
|
|
2558
|
+
let b = h.exists() ? ((S = h.data()) == null ? void 0 : S.sections) || [] : [];
|
|
2559
|
+
b = b.slice().sort((v, $) => {
|
|
2560
|
+
var O, L;
|
|
2561
|
+
return ((O = v.order) != null ? O : 0) - ((L = $.order) != null ? L : 0);
|
|
2562
|
+
}).map((v, $) => ({ ...v, order: $ + 1 })), c(b), console.log("fetched: ", b);
|
|
2563
2563
|
} catch (b) {
|
|
2564
2564
|
console.error("Error procesando landings/" + i, b);
|
|
2565
2565
|
} finally {
|
|
2566
2566
|
a(!1);
|
|
2567
2567
|
}
|
|
2568
2568
|
},
|
|
2569
|
-
(
|
|
2570
|
-
console.error("Error escuchando landings/" + i,
|
|
2569
|
+
(h) => {
|
|
2570
|
+
console.error("Error escuchando landings/" + i, h), a(!1);
|
|
2571
2571
|
}
|
|
2572
2572
|
);
|
|
2573
|
-
return () =>
|
|
2574
|
-
}, [t, i, r]),
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
if (
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
if (y === "GET") {
|
|
2586
|
-
const j = new URL(
|
|
2587
|
-
f,
|
|
2573
|
+
return () => f();
|
|
2574
|
+
}, [t, i, r]), J(() => {
|
|
2575
|
+
(t ? t.slice() : n.slice()).map((S) => S.componentKey).filter((S) => !!S).length;
|
|
2576
|
+
}, [t, n]);
|
|
2577
|
+
const d = async (f) => {
|
|
2578
|
+
const h = (f.apiUrl || "").trim();
|
|
2579
|
+
if (!h) return;
|
|
2580
|
+
const S = f.apiMethod || "GET", b = f.apiParams || [];
|
|
2581
|
+
let v = h, $, O;
|
|
2582
|
+
if (S === "GET") {
|
|
2583
|
+
const A = new URL(
|
|
2584
|
+
h,
|
|
2588
2585
|
typeof window == "undefined" ? "http://localhost" : window.location.origin
|
|
2589
2586
|
);
|
|
2590
|
-
for (const
|
|
2591
|
-
|
|
2592
|
-
|
|
2587
|
+
for (const W of b)
|
|
2588
|
+
W.key && A.searchParams.append(W.key, W.value);
|
|
2589
|
+
v = A.toString();
|
|
2593
2590
|
} else {
|
|
2594
|
-
const
|
|
2595
|
-
for (const
|
|
2596
|
-
|
|
2597
|
-
$ =
|
|
2591
|
+
const A = new URLSearchParams();
|
|
2592
|
+
for (const W of b)
|
|
2593
|
+
W.key && A.append(W.key, W.value);
|
|
2594
|
+
$ = A.toString(), O = {
|
|
2598
2595
|
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
|
|
2599
2596
|
};
|
|
2600
2597
|
}
|
|
2601
|
-
const
|
|
2602
|
-
method:
|
|
2603
|
-
headers:
|
|
2598
|
+
const L = await fetch(v, {
|
|
2599
|
+
method: S,
|
|
2600
|
+
headers: O,
|
|
2604
2601
|
body: $
|
|
2605
2602
|
});
|
|
2606
|
-
if (!
|
|
2607
|
-
return
|
|
2608
|
-
},
|
|
2603
|
+
if (!L.ok) throw new de(L.status, v, L.statusText);
|
|
2604
|
+
return L.json();
|
|
2605
|
+
}, l = te(
|
|
2609
2606
|
() => t ? t.slice() : n.slice(),
|
|
2610
2607
|
[t, n]
|
|
2611
|
-
),
|
|
2612
|
-
|
|
2613
|
-
const
|
|
2614
|
-
if (
|
|
2615
|
-
for (const { s:
|
|
2616
|
-
const b = `${
|
|
2617
|
-
|
|
2608
|
+
), m = we.useRef(/* @__PURE__ */ new Set());
|
|
2609
|
+
J(() => {
|
|
2610
|
+
const f = l.map((h) => ({ s: h, url: (h.apiUrl || "").trim() })).filter(({ url: h }) => !!h);
|
|
2611
|
+
if (f.length)
|
|
2612
|
+
for (const { s: h, url: S } of f) {
|
|
2613
|
+
const b = `${h.id}|${S}`;
|
|
2614
|
+
m.current.has(b) || (m.current.add(b), x((v) => ({ ...v, [h.id]: !0 })), s((v) => ({ ...v, [h.id]: "" })), (async () => {
|
|
2618
2615
|
try {
|
|
2619
|
-
const
|
|
2620
|
-
|
|
2621
|
-
} catch (
|
|
2616
|
+
const v = await d(h);
|
|
2617
|
+
g(($) => ({ ...$, [h.id]: v }));
|
|
2618
|
+
} catch (v) {
|
|
2622
2619
|
let $ = "Error desconocido";
|
|
2623
|
-
|
|
2620
|
+
v instanceof de ? $ = `Error HTTP ${v.status} (${v.statusText}) en ${v.url}` : v instanceof SyntaxError ? $ = "Respuesta no es JSON válido" : v instanceof TypeError ? $ = "Fallo de red / CORS / conexión" : typeof v == "string" && ($ = v.toString()), s((O) => ({ ...O, [h.id]: $ }));
|
|
2624
2621
|
} finally {
|
|
2625
|
-
|
|
2622
|
+
x((v) => ({ ...v, [h.id]: !1 }));
|
|
2626
2623
|
}
|
|
2627
2624
|
})());
|
|
2628
2625
|
}
|
|
2629
|
-
}, [
|
|
2630
|
-
const
|
|
2631
|
-
() =>
|
|
2632
|
-
[
|
|
2633
|
-
),
|
|
2634
|
-
const
|
|
2635
|
-
for (const b of
|
|
2636
|
-
const
|
|
2637
|
-
if (
|
|
2626
|
+
}, [l]);
|
|
2627
|
+
const _ = te(
|
|
2628
|
+
() => l.filter((f) => f.visible).sort((f, h) => f.order - h.order),
|
|
2629
|
+
[l]
|
|
2630
|
+
), k = (f) => Array.isArray(f) ? f.map((h) => {
|
|
2631
|
+
const S = {};
|
|
2632
|
+
for (const b of h.fields || []) {
|
|
2633
|
+
const v = (b.type || "string").toLowerCase();
|
|
2634
|
+
if (v === "number") {
|
|
2638
2635
|
const $ = String(b.value || "").trim();
|
|
2639
2636
|
if ($ !== "") {
|
|
2640
|
-
const
|
|
2641
|
-
Number.isNaN(
|
|
2637
|
+
const O = Number($);
|
|
2638
|
+
Number.isNaN(O) || (S[b.name] = O);
|
|
2642
2639
|
}
|
|
2643
|
-
} else if (
|
|
2644
|
-
|
|
2645
|
-
else if (
|
|
2640
|
+
} else if (v === "boolean")
|
|
2641
|
+
S[b.name] = String(b.value).toLowerCase() === "true";
|
|
2642
|
+
else if (v === "function") {
|
|
2646
2643
|
const $ = String(b.value || "").trim();
|
|
2647
2644
|
if ($)
|
|
2648
2645
|
try {
|
|
2649
|
-
const
|
|
2650
|
-
|
|
2651
|
-
} catch (
|
|
2652
|
-
console.error(`❌ Error creando función en item '${b.name}':`,
|
|
2646
|
+
const O = new Function($);
|
|
2647
|
+
S[b.name] = O;
|
|
2648
|
+
} catch (O) {
|
|
2649
|
+
console.error(`❌ Error creando función en item '${b.name}':`, O);
|
|
2653
2650
|
}
|
|
2654
|
-
} else
|
|
2651
|
+
} else S[b.name] = b.value;
|
|
2655
2652
|
}
|
|
2656
|
-
return
|
|
2657
|
-
}) : [],
|
|
2658
|
-
const
|
|
2659
|
-
if (!Array.isArray(
|
|
2660
|
-
for (const
|
|
2661
|
-
if (!
|
|
2662
|
-
const b = (
|
|
2653
|
+
return S;
|
|
2654
|
+
}) : [], E = (f) => {
|
|
2655
|
+
const h = {};
|
|
2656
|
+
if (!Array.isArray(f)) return h;
|
|
2657
|
+
for (const S of f) {
|
|
2658
|
+
if (!S.name) continue;
|
|
2659
|
+
const b = (S.type || "string").toLowerCase();
|
|
2663
2660
|
if (b === "number") {
|
|
2664
|
-
const
|
|
2665
|
-
if (
|
|
2666
|
-
const $ = Number(
|
|
2667
|
-
Number.isNaN($) || (
|
|
2661
|
+
const v = String(S.value || "").trim();
|
|
2662
|
+
if (v !== "") {
|
|
2663
|
+
const $ = Number(v);
|
|
2664
|
+
Number.isNaN($) || (h[S.name] = $);
|
|
2668
2665
|
}
|
|
2669
2666
|
} else if (b === "boolean")
|
|
2670
|
-
|
|
2667
|
+
h[S.name] = String(S.value).toLowerCase() === "true";
|
|
2671
2668
|
else if (b === "function") {
|
|
2672
|
-
const
|
|
2673
|
-
if (
|
|
2669
|
+
const v = String(S.value || "").trim();
|
|
2670
|
+
if (v)
|
|
2674
2671
|
try {
|
|
2675
|
-
const $ = new Function(
|
|
2676
|
-
|
|
2672
|
+
const $ = new Function(v);
|
|
2673
|
+
h[S.name] = $;
|
|
2677
2674
|
} catch ($) {
|
|
2678
|
-
console.error(`❌ Error creando función en item '${
|
|
2675
|
+
console.error(`❌ Error creando función en item '${S.name}':`, $);
|
|
2679
2676
|
}
|
|
2680
|
-
} else
|
|
2677
|
+
} else h[S.name] = S.value;
|
|
2681
2678
|
}
|
|
2682
|
-
return
|
|
2683
|
-
},
|
|
2684
|
-
const b =
|
|
2685
|
-
if (
|
|
2686
|
-
const
|
|
2687
|
-
return b[
|
|
2679
|
+
return h;
|
|
2680
|
+
}, R = (f, h, S) => {
|
|
2681
|
+
const b = S ? { ...S } : {};
|
|
2682
|
+
if (h) {
|
|
2683
|
+
const W = (h.variableName || "items").trim() || "items";
|
|
2684
|
+
return b[W] = h.arr || [], b;
|
|
2688
2685
|
}
|
|
2689
|
-
const
|
|
2690
|
-
return b.items =
|
|
2691
|
-
},
|
|
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) => {
|
|
2686
|
+
const v = f, $ = Array.isArray(v), O = !$ && typeof v == "object" && v !== null ? v : void 0, L = O && Array.isArray(O.lobby || O.items) ? O.lobby || O.items : void 0, A = (W) => $ ? v : L || W;
|
|
2687
|
+
return b.items = A(L || []), b;
|
|
2688
|
+
}, P = (f) => {
|
|
2700
2689
|
var $;
|
|
2701
|
-
const
|
|
2702
|
-
let b =
|
|
2703
|
-
const
|
|
2690
|
+
const h = !!(($ = f.apiUrl) != null && $.trim()), S = h ? u[f.id] : void 0;
|
|
2691
|
+
let b = f.props ? { ...f.props } : {};
|
|
2692
|
+
const v = E(f.manualScalarFields);
|
|
2704
2693
|
if ([
|
|
2705
2694
|
"OraculoSeccionEventoEnVivo",
|
|
2706
2695
|
"OraculoSeccionEventoSemana",
|
|
2707
2696
|
"OraculoSeccionEventoCombinadas"
|
|
2708
|
-
].includes(
|
|
2709
|
-
return console.log(
|
|
2710
|
-
if (b = { ...b, ...
|
|
2711
|
-
else if (
|
|
2712
|
-
const
|
|
2713
|
-
b =
|
|
2697
|
+
].includes(f.componentKey))
|
|
2698
|
+
return console.log(S), { items: S, ...b, ...v };
|
|
2699
|
+
if (b = { ...b, ...v }, h) b = R(S, null, b);
|
|
2700
|
+
else if (f.dataMode === "manual") {
|
|
2701
|
+
const O = k(f.manualItems);
|
|
2702
|
+
b = R(
|
|
2714
2703
|
null,
|
|
2715
|
-
{ arr:
|
|
2704
|
+
{ arr: O, variableName: f.variableName },
|
|
2716
2705
|
b
|
|
2717
2706
|
);
|
|
2718
2707
|
}
|
|
2719
2708
|
return b;
|
|
2720
|
-
},
|
|
2709
|
+
}, I = (f, h, S) => /* @__PURE__ */ e("div", { className: `mx-4 p-4 rounded ${{
|
|
2721
2710
|
loading: "bg-blue-100 text-blue-800",
|
|
2722
2711
|
error: "bg-red-100 text-red-800",
|
|
2723
2712
|
component: "bg-yellow-100 text-yellow-800"
|
|
2724
|
-
}[
|
|
2725
|
-
var
|
|
2726
|
-
const
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
if (!y)
|
|
2731
|
-
return console.warn(`No hay componente registrado para "${f}"`), F(
|
|
2732
|
-
h.id,
|
|
2713
|
+
}[h]}`, children: S }, f), N = (f) => {
|
|
2714
|
+
var A;
|
|
2715
|
+
const h = f.componentKey, S = Yt[h];
|
|
2716
|
+
if (!S)
|
|
2717
|
+
return console.warn(`No hay componente registrado para "${h}"`), I(
|
|
2718
|
+
f.id,
|
|
2733
2719
|
"component",
|
|
2734
|
-
`Componente "${
|
|
2720
|
+
`Componente "${h}" no encontrado`
|
|
2735
2721
|
);
|
|
2736
|
-
const b = !!((
|
|
2722
|
+
const b = !!((A = f.apiUrl) != null && A.trim()), v = b ? u[f.id] : void 0, $ = b ? !!y[f.id] : !1, O = b ? w[f.id] : "";
|
|
2737
2723
|
if (b) {
|
|
2738
|
-
if ($ && !
|
|
2739
|
-
return
|
|
2740
|
-
|
|
2724
|
+
if ($ && !v)
|
|
2725
|
+
return I(
|
|
2726
|
+
f.id,
|
|
2741
2727
|
"loading",
|
|
2742
|
-
`Cargando datos desde ${
|
|
2728
|
+
`Cargando datos desde ${f.apiUrl}...`
|
|
2743
2729
|
);
|
|
2744
|
-
if (
|
|
2745
|
-
return
|
|
2746
|
-
|
|
2730
|
+
if (O && !v)
|
|
2731
|
+
return I(
|
|
2732
|
+
f.id,
|
|
2747
2733
|
"error",
|
|
2748
|
-
`Error cargando ${
|
|
2734
|
+
`Error cargando ${f.apiUrl}: ${O}`
|
|
2749
2735
|
);
|
|
2750
2736
|
}
|
|
2751
|
-
const
|
|
2737
|
+
const L = P(f);
|
|
2752
2738
|
return /* @__PURE__ */ e(
|
|
2753
2739
|
"div",
|
|
2754
2740
|
{
|
|
@@ -2758,13 +2744,13 @@ const uo = ({
|
|
|
2758
2744
|
width: "100%",
|
|
2759
2745
|
boxSizing: "border-box"
|
|
2760
2746
|
},
|
|
2761
|
-
children: /* @__PURE__ */ e(
|
|
2747
|
+
children: /* @__PURE__ */ e(S, { ...L })
|
|
2762
2748
|
},
|
|
2763
|
-
|
|
2749
|
+
f.id
|
|
2764
2750
|
);
|
|
2765
2751
|
};
|
|
2766
2752
|
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
|
-
|
|
2753
|
+
Se,
|
|
2768
2754
|
{
|
|
2769
2755
|
className: "oli-font",
|
|
2770
2756
|
maxWidth: !1,
|
|
@@ -2778,46 +2764,46 @@ const uo = ({
|
|
|
2778
2764
|
maxWidth: "100%",
|
|
2779
2765
|
overflowX: "hidden"
|
|
2780
2766
|
},
|
|
2781
|
-
children: /* @__PURE__ */ e(
|
|
2767
|
+
children: /* @__PURE__ */ e(me, { direction: "column", spacing: 8, useFlexGap: !0, children: _.map(N) })
|
|
2782
2768
|
}
|
|
2783
2769
|
);
|
|
2784
2770
|
};
|
|
2785
2771
|
export {
|
|
2786
2772
|
T as OraculoButton,
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2773
|
+
H as OraculoCarousel,
|
|
2774
|
+
he as OraculoCarouselDots,
|
|
2775
|
+
tt as OraculoClubOlimpoVisual,
|
|
2776
|
+
dt as OraculoEventCombinadasCard,
|
|
2777
|
+
pt as OraculoEventEnVivoCard,
|
|
2778
|
+
Ue as OraculoEventHeader,
|
|
2779
|
+
fe as OraculoEventLabel,
|
|
2780
|
+
Be as OraculoEventLeague,
|
|
2781
|
+
xe as OraculoEventScore,
|
|
2782
|
+
bt as OraculoEventSemanaCard,
|
|
2783
|
+
Fe as OraculoEventStatus,
|
|
2784
|
+
Pe as OraculoEventStatusBadge,
|
|
2785
|
+
Q as OraculoEventTeamInfo,
|
|
2786
|
+
q as OraculoGameCard,
|
|
2787
|
+
Ve as OraculoGameRankCard,
|
|
2788
|
+
be as OraculoGameSlide,
|
|
2789
|
+
G as OraculoGridGroup,
|
|
2790
|
+
et as OraculoLiveCasinoCard,
|
|
2791
|
+
ae as OraculoLogoMediosPago,
|
|
2792
|
+
lo as OraculoPageLandingPreview,
|
|
2793
|
+
Dt as OraculoSeccionBanners,
|
|
2794
|
+
Tt as OraculoSeccionBonoBienvenida,
|
|
2795
|
+
It as OraculoSeccionCasino,
|
|
2796
|
+
Ct as OraculoSeccionCasinoEnVivo,
|
|
2797
|
+
Pt as OraculoSeccionClubOlimpo,
|
|
2798
|
+
vt as OraculoSeccionDestacados,
|
|
2799
|
+
zt as OraculoSeccionEventoCombinadas,
|
|
2800
|
+
Lt as OraculoSeccionEventoEnVivo,
|
|
2801
|
+
jt as OraculoSeccionEventoSemana,
|
|
2802
|
+
_t as OraculoSeccionTopJuegos,
|
|
2803
|
+
Ot as OraculoSeccionVirtuales,
|
|
2804
|
+
D as OraculoSectionTitle,
|
|
2805
|
+
_t as OraculoTopJuegoItem,
|
|
2806
|
+
ie as OraculoWelcomeBanner,
|
|
2807
|
+
lo as default
|
|
2822
2808
|
};
|
|
2823
2809
|
//# sourceMappingURL=index.es.js.map
|