oraculo-ui 0.1.61 → 0.1.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +5 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.es.js +947 -939
- package/dist/index.es.js.map +1 -1
- package/dist/templates/OraculoPageLandingPreview.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,58 +1,58 @@
|
|
|
1
1
|
import { jsx as e, jsxs as l, Fragment as Z } from "react/jsx-runtime";
|
|
2
|
-
import { Link as
|
|
3
|
-
import
|
|
4
|
-
import { Splide as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
2
|
+
import { Link as Se, Box as z, Typography as Ce, Stack as Ee, useMediaQuery as Fe, Container as Le } from "@mui/material";
|
|
3
|
+
import We, { forwardRef as je, useRef as U, useImperativeHandle as ze, useCallback as ge, useState as A, useMemo as oe, useLayoutEffect as Ae, useEffect as Y } from "react";
|
|
4
|
+
import { Splide as Ge, SplideSlide as Ue } from "@splidejs/react-splide";
|
|
5
|
+
import $ from "@mui/material/Box";
|
|
6
|
+
import F from "@mui/material/Skeleton";
|
|
7
|
+
import V from "@mui/material/Typography";
|
|
8
|
+
import M from "@mui/material/Stack";
|
|
9
9
|
import { ChevronLeftRounded as de, ChevronRightRounded as ue } from "@mui/icons-material";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { onSnapshot as
|
|
14
|
-
function
|
|
10
|
+
import ke from "@mui/icons-material/ChevronLeftRounded";
|
|
11
|
+
import $e from "@mui/icons-material/ChevronRightRounded";
|
|
12
|
+
import De from "@mui/material/useMediaQuery";
|
|
13
|
+
import { onSnapshot as Ve, doc as He } from "firebase/firestore";
|
|
14
|
+
function L({
|
|
15
15
|
children: t,
|
|
16
16
|
onClick: n,
|
|
17
17
|
href: r,
|
|
18
18
|
target: i,
|
|
19
|
-
rel:
|
|
19
|
+
rel: d,
|
|
20
20
|
type: o = "button",
|
|
21
21
|
disabled: a = !1,
|
|
22
|
-
variant:
|
|
23
|
-
size:
|
|
24
|
-
fullWidth:
|
|
25
|
-
fullHeight:
|
|
22
|
+
variant: u = "primary",
|
|
23
|
+
size: p,
|
|
24
|
+
fullWidth: h = !1,
|
|
25
|
+
fullHeight: _ = !1,
|
|
26
26
|
className: k = "",
|
|
27
27
|
ariaLabel: s,
|
|
28
28
|
leftIcon: c,
|
|
29
|
-
rightIcon:
|
|
30
|
-
iconOnly:
|
|
29
|
+
rightIcon: g,
|
|
30
|
+
iconOnly: O
|
|
31
31
|
}) {
|
|
32
|
-
const
|
|
32
|
+
const x = !!t && t !== !0, f = (!!c ? 1 : 0) + (!!g ? 1 : 0) == 1, E = O != null ? O : f && !x, P = [
|
|
33
33
|
"orc-btn",
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
u === "secondary" ? "orc-btn--secondary" : u === "tertiary" ? "orc-btn--tertiary" : "orc-btn--primary",
|
|
35
|
+
p ? `orc-btn--${p}` : "",
|
|
36
|
+
h ? "orc-btn--full" : "",
|
|
37
|
+
_ ? "orc-btn--fullHeight" : "",
|
|
38
|
+
E ? "orc-btn--iconOnly" : "",
|
|
39
39
|
k
|
|
40
40
|
].filter(Boolean).join(" "), T = /* @__PURE__ */ l(Z, { children: [
|
|
41
41
|
c && /* @__PURE__ */ e("span", { className: "orc-btn__icon", children: c }),
|
|
42
|
-
!
|
|
43
|
-
|
|
44
|
-
] }),
|
|
42
|
+
!E && /* @__PURE__ */ e("span", { className: "orc-btn__label", children: t }),
|
|
43
|
+
g && /* @__PURE__ */ e("span", { className: "orc-btn__icon", children: g })
|
|
44
|
+
] }), S = a ? !0 : void 0;
|
|
45
45
|
return r ? /* @__PURE__ */ e(
|
|
46
|
-
|
|
46
|
+
Se,
|
|
47
47
|
{
|
|
48
48
|
href: r,
|
|
49
49
|
target: i,
|
|
50
|
-
rel:
|
|
50
|
+
rel: d,
|
|
51
51
|
"aria-label": s,
|
|
52
|
-
"aria-disabled":
|
|
53
|
-
tabIndex:
|
|
52
|
+
"aria-disabled": S,
|
|
53
|
+
tabIndex: S ? -1 : void 0,
|
|
54
54
|
className: P,
|
|
55
|
-
onClick:
|
|
55
|
+
onClick: S ? (B) => B.preventDefault() : n,
|
|
56
56
|
children: T
|
|
57
57
|
}
|
|
58
58
|
) : /* @__PURE__ */ e(
|
|
@@ -60,14 +60,14 @@ function F({
|
|
|
60
60
|
{
|
|
61
61
|
type: o,
|
|
62
62
|
onClick: n,
|
|
63
|
-
disabled: !!
|
|
63
|
+
disabled: !!S,
|
|
64
64
|
"aria-label": s,
|
|
65
65
|
className: P,
|
|
66
66
|
children: T
|
|
67
67
|
}
|
|
68
68
|
);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function q({
|
|
71
71
|
title: t,
|
|
72
72
|
iconUrl: n,
|
|
73
73
|
size: r = "md",
|
|
@@ -90,15 +90,15 @@ function K({
|
|
|
90
90
|
/* @__PURE__ */ e("h2", { className: "orc-section-title__title", children: t })
|
|
91
91
|
] });
|
|
92
92
|
}
|
|
93
|
-
const
|
|
93
|
+
const Oe = ({
|
|
94
94
|
total: t,
|
|
95
95
|
active: n,
|
|
96
96
|
onSelect: r,
|
|
97
97
|
className: i = ""
|
|
98
98
|
}) => {
|
|
99
99
|
if (t <= 1) return null;
|
|
100
|
-
const
|
|
101
|
-
return /* @__PURE__ */ e("div", { className:
|
|
100
|
+
const d = ["orc-dots", i].filter(Boolean).join(" ");
|
|
101
|
+
return /* @__PURE__ */ e("div", { className: d, role: "tablist", children: Array.from({ length: t }).map((o, a) => /* @__PURE__ */ e("span", { className: "orc-dots__cell", children: /* @__PURE__ */ e(
|
|
102
102
|
"button",
|
|
103
103
|
{
|
|
104
104
|
type: "button",
|
|
@@ -110,14 +110,14 @@ const $e = ({
|
|
|
110
110
|
}
|
|
111
111
|
) }, a)) });
|
|
112
112
|
};
|
|
113
|
-
function
|
|
113
|
+
function H({
|
|
114
114
|
children: t,
|
|
115
115
|
minWidth: n = 32,
|
|
116
116
|
spacing: r = 2,
|
|
117
117
|
justify: i = "stretch",
|
|
118
|
-
columns:
|
|
118
|
+
columns: d = null
|
|
119
119
|
}) {
|
|
120
|
-
const o =
|
|
120
|
+
const o = d || `repeat(auto-fit, minmax(${n}px, 1fr))`, a = typeof r == "number" ? `${r * 8}px` : r;
|
|
121
121
|
return /* @__PURE__ */ e(
|
|
122
122
|
"div",
|
|
123
123
|
{
|
|
@@ -132,9 +132,9 @@ function V({
|
|
|
132
132
|
}
|
|
133
133
|
);
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function fe({ src: t, alt: n }) {
|
|
136
136
|
return /* @__PURE__ */ e(
|
|
137
|
-
|
|
137
|
+
z,
|
|
138
138
|
{
|
|
139
139
|
sx: {
|
|
140
140
|
position: "relative",
|
|
@@ -145,7 +145,7 @@ function ge({ src: t, alt: n }) {
|
|
|
145
145
|
display: "inline-block"
|
|
146
146
|
},
|
|
147
147
|
children: /* @__PURE__ */ e(
|
|
148
|
-
|
|
148
|
+
z,
|
|
149
149
|
{
|
|
150
150
|
component: "img",
|
|
151
151
|
src: t,
|
|
@@ -163,12 +163,12 @@ function ge({ src: t, alt: n }) {
|
|
|
163
163
|
}
|
|
164
164
|
);
|
|
165
165
|
}
|
|
166
|
-
const
|
|
167
|
-
contenedor:
|
|
168
|
-
flexGroup:
|
|
169
|
-
subtitle:
|
|
166
|
+
const Ke = "oraculo__OraculoEventTitle-module__contenedor___rg1vw", qe = "oraculo__OraculoEventTitle-module__flexGroup___jMLFO", Je = "oraculo__OraculoEventTitle-module__subtitle___TmHna", ie = {
|
|
167
|
+
contenedor: Ke,
|
|
168
|
+
flexGroup: qe,
|
|
169
|
+
subtitle: Je
|
|
170
170
|
};
|
|
171
|
-
function
|
|
171
|
+
function Xe({ title: t, subtitle: n }) {
|
|
172
172
|
return /* @__PURE__ */ l(
|
|
173
173
|
"div",
|
|
174
174
|
{
|
|
@@ -204,7 +204,7 @@ function Je({ title: t, subtitle: n }) {
|
|
|
204
204
|
}
|
|
205
205
|
);
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function Qe({ text: t, color: n = "#ff3b3b", textColor: r = "#fff" }) {
|
|
208
208
|
return /* @__PURE__ */ e(
|
|
209
209
|
"span",
|
|
210
210
|
{
|
|
@@ -225,13 +225,13 @@ function Xe({ text: t, color: n = "#ff3b3b", textColor: r = "#fff" }) {
|
|
|
225
225
|
}
|
|
226
226
|
);
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function Ye({ live: t, time: n }) {
|
|
229
229
|
return /* @__PURE__ */ l("div", { className: "oli-font", style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
|
|
230
|
-
t && /* @__PURE__ */ e(
|
|
230
|
+
t && /* @__PURE__ */ e(Qe, { text: "En vivo" }),
|
|
231
231
|
n && /* @__PURE__ */ e("span", { style: { fontSize: "14px", fontWeight: 400, lineHeight: "18px", paddingTop: "4px" }, children: n })
|
|
232
232
|
] });
|
|
233
233
|
}
|
|
234
|
-
function
|
|
234
|
+
function Ze({ title: t, subtitle: n, live: r = !1, time: i = "" }) {
|
|
235
235
|
return /* @__PURE__ */ l(
|
|
236
236
|
"div",
|
|
237
237
|
{
|
|
@@ -242,49 +242,49 @@ function Ye({ title: t, subtitle: n, live: r = !1, time: i = "" }) {
|
|
|
242
242
|
color: "#FFFFFF"
|
|
243
243
|
},
|
|
244
244
|
children: [
|
|
245
|
-
/* @__PURE__ */ e(
|
|
246
|
-
/* @__PURE__ */ e(
|
|
245
|
+
/* @__PURE__ */ e(Xe, { title: t, subtitle: n }),
|
|
246
|
+
/* @__PURE__ */ e(Ye, { live: r, time: i })
|
|
247
247
|
]
|
|
248
248
|
}
|
|
249
249
|
);
|
|
250
250
|
}
|
|
251
|
-
const
|
|
252
|
-
label:
|
|
251
|
+
const et = "oraculo__OraculoEventLabel-module__label___c64Xw", tt = {
|
|
252
|
+
label: et
|
|
253
253
|
};
|
|
254
|
-
function
|
|
255
|
-
return /* @__PURE__ */ e("span", { className:
|
|
254
|
+
function Ie({ text: t }) {
|
|
255
|
+
return /* @__PURE__ */ e("span", { className: tt.label, children: t });
|
|
256
256
|
}
|
|
257
|
-
const
|
|
258
|
-
container:
|
|
257
|
+
const ot = "oraculo__OraculoEventLeague-module__container___rdk4F", nt = {
|
|
258
|
+
container: ot
|
|
259
259
|
};
|
|
260
|
-
function
|
|
261
|
-
return /* @__PURE__ */ e("div", { className:
|
|
260
|
+
function Ne({ title: t }) {
|
|
261
|
+
return /* @__PURE__ */ e("div", { className: nt.container, children: t.toUpperCase() });
|
|
262
262
|
}
|
|
263
|
-
const
|
|
264
|
-
scoreWrapper:
|
|
265
|
-
name:
|
|
266
|
-
score:
|
|
267
|
-
normal:
|
|
268
|
-
small:
|
|
263
|
+
const rt = "oraculo__OraculoEventScore-module__scoreWrapper___fWwEr", at = "oraculo__OraculoEventScore-module__name___r4uL6", it = "oraculo__OraculoEventScore-module__score___Xl03M", st = "oraculo__OraculoEventScore-module__normal___cCNFz", ct = "oraculo__OraculoEventScore-module__small___fVt8E", Q = {
|
|
264
|
+
scoreWrapper: rt,
|
|
265
|
+
name: at,
|
|
266
|
+
score: it,
|
|
267
|
+
normal: st,
|
|
268
|
+
small: ct
|
|
269
269
|
};
|
|
270
|
-
function
|
|
270
|
+
function Te({ text: t, name: n, size: r = "normal" }) {
|
|
271
271
|
return /* @__PURE__ */ l(
|
|
272
272
|
"div",
|
|
273
273
|
{
|
|
274
|
-
className: `${
|
|
274
|
+
className: `${Q.scoreWrapper} ${Q[r]}`,
|
|
275
275
|
children: [
|
|
276
|
-
/* @__PURE__ */ e("div", { className: `${
|
|
277
|
-
n && /* @__PURE__ */ e("span", { className: `${
|
|
276
|
+
/* @__PURE__ */ e("div", { className: `${Q.score} ${Q[r]}`, children: t }),
|
|
277
|
+
n && /* @__PURE__ */ e("span", { className: `${Q.name} ${Q[r]}`, children: n })
|
|
278
278
|
]
|
|
279
279
|
}
|
|
280
280
|
);
|
|
281
281
|
}
|
|
282
|
-
const
|
|
283
|
-
team:
|
|
284
|
-
regular:
|
|
285
|
-
compact:
|
|
286
|
-
logo:
|
|
287
|
-
name:
|
|
282
|
+
const lt = "oraculo__OraculoEventTeamInfo-module__team___UfpUs", dt = "oraculo__OraculoEventTeamInfo-module__regular___ag826", ut = "oraculo__OraculoEventTeamInfo-module__compact___RCNOs", pt = "oraculo__OraculoEventTeamInfo-module__logo___fKCl3", mt = "oraculo__OraculoEventTeamInfo-module__name___4ikm-", ee = {
|
|
283
|
+
team: lt,
|
|
284
|
+
regular: dt,
|
|
285
|
+
compact: ut,
|
|
286
|
+
logo: pt,
|
|
287
|
+
name: mt
|
|
288
288
|
};
|
|
289
289
|
function ne({ name: t, logo: n, size: r = "regular" }) {
|
|
290
290
|
return /* @__PURE__ */ l("div", { className: `oli-font ${ee.team} ${ee[r]}`, children: [
|
|
@@ -292,39 +292,39 @@ function ne({ name: t, logo: n, size: r = "regular" }) {
|
|
|
292
292
|
/* @__PURE__ */ e("span", { className: ee.name, children: t })
|
|
293
293
|
] });
|
|
294
294
|
}
|
|
295
|
-
const
|
|
295
|
+
const ht = Ge, gt = Ue, J = je(
|
|
296
296
|
({
|
|
297
297
|
items: t = [],
|
|
298
298
|
renderItem: n,
|
|
299
299
|
perPage: r = 1,
|
|
300
300
|
gap: i = "0px",
|
|
301
|
-
breakpoints:
|
|
301
|
+
breakpoints: d,
|
|
302
302
|
options: o = {},
|
|
303
303
|
className: a = "",
|
|
304
|
-
onMove:
|
|
305
|
-
useIndexAsKey:
|
|
306
|
-
},
|
|
307
|
-
const
|
|
308
|
-
|
|
304
|
+
onMove: u,
|
|
305
|
+
useIndexAsKey: p = !1
|
|
306
|
+
}, h) => {
|
|
307
|
+
const _ = U(null);
|
|
308
|
+
ze(h, () => ({
|
|
309
309
|
next: () => {
|
|
310
|
-
var
|
|
311
|
-
return (
|
|
310
|
+
var g;
|
|
311
|
+
return (g = _.current) == null ? void 0 : g.go(">");
|
|
312
312
|
},
|
|
313
313
|
prev: () => {
|
|
314
|
-
var
|
|
315
|
-
return (
|
|
314
|
+
var g;
|
|
315
|
+
return (g = _.current) == null ? void 0 : g.go("<");
|
|
316
316
|
},
|
|
317
|
-
go: (
|
|
318
|
-
var
|
|
319
|
-
return (
|
|
317
|
+
go: (g) => {
|
|
318
|
+
var O;
|
|
319
|
+
return (O = _.current) == null ? void 0 : O.go(g);
|
|
320
320
|
}
|
|
321
321
|
}));
|
|
322
|
-
const k =
|
|
323
|
-
const
|
|
324
|
-
|
|
325
|
-
}, [
|
|
326
|
-
(
|
|
327
|
-
k(
|
|
322
|
+
const k = ge((g) => {
|
|
323
|
+
const O = g.Components.Controller, x = O.getIndex(), C = O.getEnd(), N = x === 0, f = x >= C, E = g.Components.Slides.getLength();
|
|
324
|
+
u == null || u({ index: x, isStart: N, isEnd: f, total: E });
|
|
325
|
+
}, [u]), s = ge(
|
|
326
|
+
(g) => {
|
|
327
|
+
k(g);
|
|
328
328
|
},
|
|
329
329
|
[k]
|
|
330
330
|
), c = {
|
|
@@ -338,19 +338,19 @@ const mt = Ae, ht = Ge, q = We(
|
|
|
338
338
|
autoWidth: !1,
|
|
339
339
|
perPage: r,
|
|
340
340
|
gap: i,
|
|
341
|
-
breakpoints:
|
|
341
|
+
breakpoints: d,
|
|
342
342
|
...o
|
|
343
343
|
};
|
|
344
344
|
return /* @__PURE__ */ e("div", { className: a, style: { width: "100%" }, children: /* @__PURE__ */ e(
|
|
345
|
-
|
|
345
|
+
ht,
|
|
346
346
|
{
|
|
347
|
-
ref:
|
|
347
|
+
ref: _,
|
|
348
348
|
options: c,
|
|
349
349
|
onMove: k,
|
|
350
350
|
onMounted: s,
|
|
351
|
-
children: t.map((
|
|
352
|
-
var
|
|
353
|
-
return /* @__PURE__ */ e(
|
|
351
|
+
children: t.map((g, O) => {
|
|
352
|
+
var x;
|
|
353
|
+
return /* @__PURE__ */ e(gt, { children: n(g, O) }, p ? O : (x = g.id) != null ? x : O);
|
|
354
354
|
})
|
|
355
355
|
}
|
|
356
356
|
) });
|
|
@@ -361,11 +361,11 @@ const mt = Ae, ht = Ge, q = We(
|
|
|
361
361
|
size: r = "sm",
|
|
362
362
|
fillParent: i = !1
|
|
363
363
|
}) => {
|
|
364
|
-
const
|
|
365
|
-
|
|
366
|
-
}, a = i ? { width: "100%", height: "100%" } : { width: `${
|
|
364
|
+
const d = r === "lg" ? { w: 280, h: 352 } : { w: 152, h: 168 }, o = (u) => {
|
|
365
|
+
u.stopPropagation(), n == null || n();
|
|
366
|
+
}, a = i ? { width: "100%", height: "100%" } : { width: `${d.w}px`, height: `${d.h}px` };
|
|
367
367
|
return /* @__PURE__ */ l(
|
|
368
|
-
|
|
368
|
+
$,
|
|
369
369
|
{
|
|
370
370
|
onClick: n,
|
|
371
371
|
role: "button",
|
|
@@ -407,7 +407,7 @@ const mt = Ae, ht = Ge, q = We(
|
|
|
407
407
|
}
|
|
408
408
|
),
|
|
409
409
|
/* @__PURE__ */ e(
|
|
410
|
-
|
|
410
|
+
$,
|
|
411
411
|
{
|
|
412
412
|
className: "oraculo-game-card-overlay",
|
|
413
413
|
sx: {
|
|
@@ -422,7 +422,7 @@ const mt = Ae, ht = Ge, q = We(
|
|
|
422
422
|
}
|
|
423
423
|
),
|
|
424
424
|
/* @__PURE__ */ e(
|
|
425
|
-
|
|
425
|
+
$,
|
|
426
426
|
{
|
|
427
427
|
className: "oraculo-game-card-btn",
|
|
428
428
|
sx: {
|
|
@@ -435,49 +435,49 @@ const mt = Ae, ht = Ge, q = We(
|
|
|
435
435
|
transition: "opacity .15s ease, transform .15s ease",
|
|
436
436
|
pointerEvents: "none"
|
|
437
437
|
},
|
|
438
|
-
children: /* @__PURE__ */ e(
|
|
438
|
+
children: /* @__PURE__ */ e(L, { variant: "primary", size: "md", onClick: o, children: "JUGAR" })
|
|
439
439
|
}
|
|
440
440
|
)
|
|
441
441
|
]
|
|
442
442
|
}
|
|
443
443
|
);
|
|
444
444
|
};
|
|
445
|
-
function
|
|
445
|
+
function ft({
|
|
446
446
|
imageUrl: t,
|
|
447
447
|
orden: n = 1,
|
|
448
448
|
onClick: r,
|
|
449
449
|
loading: i = !1,
|
|
450
|
-
sizes:
|
|
450
|
+
sizes: d = {
|
|
451
451
|
xs: { w: 104, h: 112, r: 18, font: 48 },
|
|
452
452
|
md: { w: 186, h: 264, r: 22.6, font: 64 }
|
|
453
453
|
}
|
|
454
454
|
}) {
|
|
455
|
-
var k, s, c,
|
|
456
|
-
const o = (
|
|
457
|
-
var C, N,
|
|
455
|
+
var k, s, c, g;
|
|
456
|
+
const o = (O, x) => {
|
|
457
|
+
var C, N, f, E;
|
|
458
458
|
return {
|
|
459
|
-
xs: (N = (C =
|
|
460
|
-
md: (
|
|
459
|
+
xs: (N = (C = d.xs) == null ? void 0 : C[O]) != null ? N : x,
|
|
460
|
+
md: (E = (f = d.md) == null ? void 0 : f[O]) != null ? E : x
|
|
461
461
|
};
|
|
462
|
-
}, a = o("w", 186),
|
|
463
|
-
xs: Math.round(((s = (k =
|
|
464
|
-
md: Math.round(((
|
|
462
|
+
}, a = o("w", 186), u = o("h", 264), p = o("r", 22.6), h = o("font", 64), _ = {
|
|
463
|
+
xs: Math.round(((s = (k = d.xs) == null ? void 0 : k.font) != null ? s : 64) * 0.28),
|
|
464
|
+
md: Math.round(((g = (c = d.md) == null ? void 0 : c.font) != null ? g : 64) * 0.28)
|
|
465
465
|
};
|
|
466
466
|
return /* @__PURE__ */ l(
|
|
467
|
-
|
|
467
|
+
$,
|
|
468
468
|
{
|
|
469
469
|
sx: {
|
|
470
470
|
position: "relative",
|
|
471
471
|
width: "100%",
|
|
472
472
|
maxWidth: { xs: `${a.xs}px`, md: `${a.md}px` },
|
|
473
473
|
aspectRatio: {
|
|
474
|
-
xs: `${a.xs}/${
|
|
475
|
-
md: `${a.md}/${
|
|
474
|
+
xs: `${a.xs}/${u.xs}`,
|
|
475
|
+
md: `${a.md}/${u.md}`
|
|
476
476
|
},
|
|
477
|
-
borderRadius: { xs: `${
|
|
477
|
+
borderRadius: { xs: `${p.xs}px`, md: `${p.md}px` },
|
|
478
478
|
boxSizing: "border-box",
|
|
479
479
|
overflow: "visible",
|
|
480
|
-
pb: { xs: `${
|
|
480
|
+
pb: { xs: `${_.xs}px`, md: `${_.md}px` },
|
|
481
481
|
"&::before": {
|
|
482
482
|
content: '""',
|
|
483
483
|
position: "absolute",
|
|
@@ -491,7 +491,7 @@ function gt({
|
|
|
491
491
|
},
|
|
492
492
|
children: [
|
|
493
493
|
/* @__PURE__ */ e(
|
|
494
|
-
|
|
494
|
+
$,
|
|
495
495
|
{
|
|
496
496
|
sx: {
|
|
497
497
|
position: "absolute",
|
|
@@ -500,7 +500,7 @@ function gt({
|
|
|
500
500
|
overflow: "hidden"
|
|
501
501
|
},
|
|
502
502
|
children: i ? /* @__PURE__ */ e(
|
|
503
|
-
|
|
503
|
+
F,
|
|
504
504
|
{
|
|
505
505
|
variant: "rectangular",
|
|
506
506
|
width: "100%",
|
|
@@ -525,20 +525,20 @@ function gt({
|
|
|
525
525
|
}
|
|
526
526
|
),
|
|
527
527
|
/* @__PURE__ */ e(
|
|
528
|
-
|
|
528
|
+
$,
|
|
529
529
|
{
|
|
530
530
|
component: "span",
|
|
531
531
|
sx: {
|
|
532
532
|
position: "absolute",
|
|
533
533
|
left: 8,
|
|
534
534
|
bottom: {
|
|
535
|
-
xs: `-${
|
|
536
|
-
md: `-${
|
|
535
|
+
xs: `-${_.xs}px`,
|
|
536
|
+
md: `-${_.md}px`
|
|
537
537
|
},
|
|
538
538
|
fontFamily: "secondary",
|
|
539
539
|
fontSize: {
|
|
540
|
-
xs: `${
|
|
541
|
-
md: `${
|
|
540
|
+
xs: `${h.xs}px`,
|
|
541
|
+
md: `${h.md}px`
|
|
542
542
|
},
|
|
543
543
|
lineHeight: 1,
|
|
544
544
|
color: "#3CC666",
|
|
@@ -553,18 +553,18 @@ function gt({
|
|
|
553
553
|
}
|
|
554
554
|
);
|
|
555
555
|
}
|
|
556
|
-
const
|
|
556
|
+
const xt = ({
|
|
557
557
|
logo: t,
|
|
558
558
|
provider: n,
|
|
559
559
|
providerName: r,
|
|
560
560
|
machine: i,
|
|
561
|
-
onClick:
|
|
561
|
+
onClick: d
|
|
562
562
|
}) => {
|
|
563
563
|
var o;
|
|
564
564
|
return /* @__PURE__ */ l(
|
|
565
|
-
|
|
565
|
+
$,
|
|
566
566
|
{
|
|
567
|
-
onClick:
|
|
567
|
+
onClick: d,
|
|
568
568
|
sx: {
|
|
569
569
|
flex: "0 0 auto",
|
|
570
570
|
position: "relative",
|
|
@@ -586,7 +586,7 @@ const ft = ({
|
|
|
586
586
|
},
|
|
587
587
|
children: [
|
|
588
588
|
/* @__PURE__ */ e(
|
|
589
|
-
|
|
589
|
+
$,
|
|
590
590
|
{
|
|
591
591
|
component: "img",
|
|
592
592
|
src: t,
|
|
@@ -602,7 +602,7 @@ const ft = ({
|
|
|
602
602
|
}
|
|
603
603
|
),
|
|
604
604
|
/* @__PURE__ */ e(
|
|
605
|
-
|
|
605
|
+
$,
|
|
606
606
|
{
|
|
607
607
|
className: "orc-live-provider-label",
|
|
608
608
|
sx: {
|
|
@@ -616,7 +616,7 @@ const ft = ({
|
|
|
616
616
|
pointerEvents: "none"
|
|
617
617
|
},
|
|
618
618
|
children: /* @__PURE__ */ e(
|
|
619
|
-
|
|
619
|
+
V,
|
|
620
620
|
{
|
|
621
621
|
sx: {
|
|
622
622
|
color: "#fff",
|
|
@@ -632,8 +632,8 @@ const ft = ({
|
|
|
632
632
|
]
|
|
633
633
|
}
|
|
634
634
|
);
|
|
635
|
-
}, se = 12, ce = ({ r: t = 16 }) => /* @__PURE__ */ e(
|
|
636
|
-
|
|
635
|
+
}, se = 12, ce = ({ r: t = 16 }) => /* @__PURE__ */ e($, { sx: { width: "100%", height: "100%", borderRadius: t, overflow: "hidden" }, children: /* @__PURE__ */ e(
|
|
636
|
+
F,
|
|
637
637
|
{
|
|
638
638
|
variant: "rectangular",
|
|
639
639
|
width: "100%",
|
|
@@ -647,20 +647,20 @@ const ft = ({
|
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
649
|
}
|
|
650
|
-
) }),
|
|
650
|
+
) }), Pe = ({
|
|
651
651
|
items: t,
|
|
652
652
|
layout: n = "grid",
|
|
653
653
|
onClick: r,
|
|
654
654
|
loading: i = !1,
|
|
655
|
-
gridSkeletonCount:
|
|
655
|
+
gridSkeletonCount: d = 4
|
|
656
656
|
}) => {
|
|
657
657
|
var o, a;
|
|
658
658
|
if (n === "mosaic") {
|
|
659
|
-
const
|
|
660
|
-
console.log("big: ",
|
|
661
|
-
const
|
|
659
|
+
const u = t[0];
|
|
660
|
+
console.log("big: ", u);
|
|
661
|
+
const p = t.slice(1, 5);
|
|
662
662
|
return /* @__PURE__ */ l(
|
|
663
|
-
|
|
663
|
+
$,
|
|
664
664
|
{
|
|
665
665
|
sx: {
|
|
666
666
|
display: "grid",
|
|
@@ -684,7 +684,7 @@ const ft = ({
|
|
|
684
684
|
},
|
|
685
685
|
children: [
|
|
686
686
|
/* @__PURE__ */ e(
|
|
687
|
-
|
|
687
|
+
$,
|
|
688
688
|
{
|
|
689
689
|
sx: {
|
|
690
690
|
width: { xs: 184, md: 280 },
|
|
@@ -693,21 +693,21 @@ const ft = ({
|
|
|
693
693
|
overflow: "hidden",
|
|
694
694
|
borderRadius: 2
|
|
695
695
|
},
|
|
696
|
-
children: i ? /* @__PURE__ */ e(ce, {}) :
|
|
696
|
+
children: i ? /* @__PURE__ */ e(ce, {}) : u && /* @__PURE__ */ e(
|
|
697
697
|
te,
|
|
698
698
|
{
|
|
699
|
-
imageUrl: `https://olimpo.bet${(a = (o =
|
|
699
|
+
imageUrl: `https://olimpo.bet${(a = (o = u.background) != null ? o : u.imageUrl) != null ? a : ""}`,
|
|
700
700
|
size: "lg",
|
|
701
701
|
fillParent: !0,
|
|
702
|
-
onClick: () => r == null ? void 0 : r(
|
|
702
|
+
onClick: () => r == null ? void 0 : r(u, 0)
|
|
703
703
|
}
|
|
704
704
|
)
|
|
705
705
|
}
|
|
706
706
|
),
|
|
707
|
-
(i ? Array.from({ length: 4 }) :
|
|
707
|
+
(i ? Array.from({ length: 4 }) : p).map((h, _) => {
|
|
708
708
|
var k, s;
|
|
709
709
|
return /* @__PURE__ */ e(
|
|
710
|
-
|
|
710
|
+
$,
|
|
711
711
|
{
|
|
712
712
|
sx: {
|
|
713
713
|
width: { xs: 104, md: 152 },
|
|
@@ -718,14 +718,14 @@ const ft = ({
|
|
|
718
718
|
children: i ? /* @__PURE__ */ e(ce, {}) : /* @__PURE__ */ e(
|
|
719
719
|
te,
|
|
720
720
|
{
|
|
721
|
-
imageUrl: `https://olimpo.bet${(s = (k =
|
|
721
|
+
imageUrl: `https://olimpo.bet${(s = (k = h.background) != null ? k : h.imageUrl) != null ? s : ""}`,
|
|
722
722
|
size: "sm",
|
|
723
723
|
fillParent: !0,
|
|
724
|
-
onClick: () => r == null ? void 0 : r(
|
|
724
|
+
onClick: () => r == null ? void 0 : r(h, _ + 1)
|
|
725
725
|
}
|
|
726
726
|
)
|
|
727
727
|
},
|
|
728
|
-
i ? `sk-${
|
|
728
|
+
i ? `sk-${_}` : h.id
|
|
729
729
|
);
|
|
730
730
|
})
|
|
731
731
|
]
|
|
@@ -733,7 +733,7 @@ const ft = ({
|
|
|
733
733
|
);
|
|
734
734
|
}
|
|
735
735
|
return /* @__PURE__ */ e(
|
|
736
|
-
|
|
736
|
+
$,
|
|
737
737
|
{
|
|
738
738
|
sx: {
|
|
739
739
|
display: "grid",
|
|
@@ -748,43 +748,43 @@ const ft = ({
|
|
|
748
748
|
gap: `${se}px`,
|
|
749
749
|
gridAutoFlow: "column"
|
|
750
750
|
},
|
|
751
|
-
children: (i ? Array.from({ length:
|
|
752
|
-
var
|
|
751
|
+
children: (i ? Array.from({ length: d }) : t).map((u, p) => {
|
|
752
|
+
var h, _, k;
|
|
753
753
|
return /* @__PURE__ */ e(
|
|
754
|
-
|
|
754
|
+
$,
|
|
755
755
|
{
|
|
756
756
|
sx: { overflow: "hidden", borderRadius: 2 },
|
|
757
757
|
children: i ? /* @__PURE__ */ e(ce, {}) : /* @__PURE__ */ e(
|
|
758
758
|
te,
|
|
759
759
|
{
|
|
760
|
-
imageUrl: `https://olimpo.bet${(
|
|
760
|
+
imageUrl: `https://olimpo.bet${(_ = (h = u.background) != null ? h : u.imageUrl) != null ? _ : ""}`,
|
|
761
761
|
size: "sm",
|
|
762
762
|
fillParent: !0,
|
|
763
|
-
onClick: () => r == null ? void 0 : r(
|
|
763
|
+
onClick: () => r == null ? void 0 : r(u, p)
|
|
764
764
|
}
|
|
765
765
|
)
|
|
766
766
|
},
|
|
767
|
-
i ? `sk-${
|
|
767
|
+
i ? `sk-${p}` : (k = u.id) != null ? k : p
|
|
768
768
|
);
|
|
769
769
|
})
|
|
770
770
|
}
|
|
771
771
|
);
|
|
772
|
-
},
|
|
772
|
+
}, xe = ({
|
|
773
773
|
title: t,
|
|
774
774
|
amount: n,
|
|
775
775
|
subtitle: r,
|
|
776
776
|
buttonText: i,
|
|
777
|
-
onButtonClick:
|
|
777
|
+
onButtonClick: d,
|
|
778
778
|
backgroundImage: o,
|
|
779
779
|
alt: a,
|
|
780
|
-
className:
|
|
781
|
-
variant:
|
|
780
|
+
className: u = "",
|
|
781
|
+
variant: p = "small"
|
|
782
782
|
}) => {
|
|
783
|
-
const
|
|
783
|
+
const h = n ? n.slice(0, 2) : "", _ = n ? n.slice(2) : "", k = p === "large";
|
|
784
784
|
return /* @__PURE__ */ l(
|
|
785
|
-
|
|
785
|
+
$,
|
|
786
786
|
{
|
|
787
|
-
className:
|
|
787
|
+
className: u,
|
|
788
788
|
sx: {
|
|
789
789
|
position: "relative",
|
|
790
790
|
width: "100%",
|
|
@@ -796,7 +796,7 @@ const ft = ({
|
|
|
796
796
|
},
|
|
797
797
|
children: [
|
|
798
798
|
o && /* @__PURE__ */ e(
|
|
799
|
-
|
|
799
|
+
$,
|
|
800
800
|
{
|
|
801
801
|
sx: {
|
|
802
802
|
position: "relative",
|
|
@@ -809,7 +809,7 @@ const ft = ({
|
|
|
809
809
|
overflow: "hidden"
|
|
810
810
|
},
|
|
811
811
|
children: /* @__PURE__ */ e(
|
|
812
|
-
|
|
812
|
+
$,
|
|
813
813
|
{
|
|
814
814
|
component: "img",
|
|
815
815
|
src: o,
|
|
@@ -829,7 +829,7 @@ const ft = ({
|
|
|
829
829
|
}
|
|
830
830
|
),
|
|
831
831
|
/* @__PURE__ */ e(
|
|
832
|
-
|
|
832
|
+
$,
|
|
833
833
|
{
|
|
834
834
|
sx: {
|
|
835
835
|
position: "absolute",
|
|
@@ -843,7 +843,7 @@ const ft = ({
|
|
|
843
843
|
pr: { xs: "14%", lg: "15%" }
|
|
844
844
|
},
|
|
845
845
|
children: /* @__PURE__ */ l(
|
|
846
|
-
|
|
846
|
+
$,
|
|
847
847
|
{
|
|
848
848
|
sx: {
|
|
849
849
|
maxWidth: "60%",
|
|
@@ -853,7 +853,7 @@ const ft = ({
|
|
|
853
853
|
},
|
|
854
854
|
children: [
|
|
855
855
|
t && /* @__PURE__ */ e(
|
|
856
|
-
|
|
856
|
+
V,
|
|
857
857
|
{
|
|
858
858
|
sx: {
|
|
859
859
|
fontSize: { xs: 12, md: 20 },
|
|
@@ -864,7 +864,7 @@ const ft = ({
|
|
|
864
864
|
}
|
|
865
865
|
),
|
|
866
866
|
n && /* @__PURE__ */ l(
|
|
867
|
-
|
|
867
|
+
$,
|
|
868
868
|
{
|
|
869
869
|
component: "p",
|
|
870
870
|
sx: {
|
|
@@ -882,26 +882,26 @@ const ft = ({
|
|
|
882
882
|
},
|
|
883
883
|
children: [
|
|
884
884
|
/* @__PURE__ */ e(
|
|
885
|
-
|
|
885
|
+
$,
|
|
886
886
|
{
|
|
887
887
|
component: "span",
|
|
888
888
|
sx: { fontSize: { xs: 35, md: 48 }, mr: 0.5 },
|
|
889
|
-
children:
|
|
889
|
+
children: h
|
|
890
890
|
}
|
|
891
891
|
),
|
|
892
892
|
/* @__PURE__ */ e(
|
|
893
|
-
|
|
893
|
+
$,
|
|
894
894
|
{
|
|
895
895
|
component: "span",
|
|
896
896
|
sx: { fontSize: { xs: 52, md: 77 } },
|
|
897
|
-
children:
|
|
897
|
+
children: _
|
|
898
898
|
}
|
|
899
899
|
)
|
|
900
900
|
]
|
|
901
901
|
}
|
|
902
902
|
),
|
|
903
903
|
r && /* @__PURE__ */ e(
|
|
904
|
-
|
|
904
|
+
V,
|
|
905
905
|
{
|
|
906
906
|
sx: {
|
|
907
907
|
pb: "20px",
|
|
@@ -912,7 +912,7 @@ const ft = ({
|
|
|
912
912
|
children: r
|
|
913
913
|
}
|
|
914
914
|
),
|
|
915
|
-
i && /* @__PURE__ */ e(
|
|
915
|
+
i && /* @__PURE__ */ e(L, { onClick: d, children: i })
|
|
916
916
|
]
|
|
917
917
|
}
|
|
918
918
|
)
|
|
@@ -921,19 +921,19 @@ const ft = ({
|
|
|
921
921
|
]
|
|
922
922
|
}
|
|
923
923
|
);
|
|
924
|
-
},
|
|
924
|
+
}, bt = ({
|
|
925
925
|
text: t,
|
|
926
926
|
buttonLabel: n = "Conoce más",
|
|
927
927
|
onClick: r,
|
|
928
928
|
imgAlt: i = "Club Olimpo",
|
|
929
|
-
imgSrcMobile:
|
|
929
|
+
imgSrcMobile: d,
|
|
930
930
|
imgSrcDesktopBg: o,
|
|
931
931
|
imgSrcDesktopLogo: a
|
|
932
932
|
}) => /* @__PURE__ */ l(Z, { children: [
|
|
933
933
|
/* @__PURE__ */ e("div", { className: "orc-co-bgMobile", children: /* @__PURE__ */ e(
|
|
934
934
|
"img",
|
|
935
935
|
{
|
|
936
|
-
src:
|
|
936
|
+
src: d,
|
|
937
937
|
alt: i,
|
|
938
938
|
className: "orc-co-bgMobileImg"
|
|
939
939
|
}
|
|
@@ -957,62 +957,62 @@ const ft = ({
|
|
|
957
957
|
}
|
|
958
958
|
),
|
|
959
959
|
/* @__PURE__ */ e("p", { className: "orc-co-captionDesktop", children: t }),
|
|
960
|
-
/* @__PURE__ */ e(
|
|
960
|
+
/* @__PURE__ */ e(L, { onClick: r, variant: "primary", size: "md", children: n })
|
|
961
961
|
] })
|
|
962
962
|
] }),
|
|
963
963
|
/* @__PURE__ */ l("div", { className: "orc-co-bottom", children: [
|
|
964
964
|
/* @__PURE__ */ e("p", { className: "orc-co-caption", children: t }),
|
|
965
|
-
/* @__PURE__ */ e(
|
|
965
|
+
/* @__PURE__ */ e(L, { onClick: r, variant: "primary", size: "md", children: n })
|
|
966
966
|
] })
|
|
967
|
-
] }),
|
|
968
|
-
card:
|
|
969
|
-
combinadas:
|
|
970
|
-
apuestaItem:
|
|
971
|
-
lineContainer:
|
|
972
|
-
circle:
|
|
973
|
-
line:
|
|
974
|
-
apuestaText:
|
|
975
|
-
cuotaTotal:
|
|
967
|
+
] }), _t = "oraculo__OraculoEventCombinadasCard-module__card___ulQeY", vt = "oraculo__OraculoEventCombinadasCard-module__combinadas___Gxrld", yt = "oraculo__OraculoEventCombinadasCard-module__apuestaItem___YnYMy", wt = "oraculo__OraculoEventCombinadasCard-module__lineContainer___G5rbU", St = "oraculo__OraculoEventCombinadasCard-module__circle___eehm-", Ct = "oraculo__OraculoEventCombinadasCard-module__line___Eb2pK", Et = "oraculo__OraculoEventCombinadasCard-module__apuestaText___b5s7S", kt = "oraculo__OraculoEventCombinadasCard-module__cuotaTotal___Lohvu", K = {
|
|
968
|
+
card: _t,
|
|
969
|
+
combinadas: vt,
|
|
970
|
+
apuestaItem: yt,
|
|
971
|
+
lineContainer: wt,
|
|
972
|
+
circle: St,
|
|
973
|
+
line: Ct,
|
|
974
|
+
apuestaText: Et,
|
|
975
|
+
cuotaTotal: kt
|
|
976
976
|
};
|
|
977
977
|
function pe(t) {
|
|
978
978
|
const n = Array.isArray(t) ? t : [t];
|
|
979
979
|
sessionStorage.setItem("landingOutcomes", JSON.stringify(n)), window.location.href = "/deportes#in-play";
|
|
980
980
|
}
|
|
981
|
-
function
|
|
981
|
+
function $t() {
|
|
982
982
|
window.location.href = "/deportes#in-play";
|
|
983
983
|
}
|
|
984
|
-
function
|
|
984
|
+
function Ot() {
|
|
985
985
|
window.location.href = "/deportes#sports-hub/football";
|
|
986
986
|
}
|
|
987
|
-
function
|
|
987
|
+
function It() {
|
|
988
988
|
window.location.href = "/deportes#specials";
|
|
989
989
|
}
|
|
990
|
-
function
|
|
990
|
+
function Nt({ event: t }) {
|
|
991
991
|
var i;
|
|
992
|
-
function n(
|
|
993
|
-
var
|
|
994
|
-
const o = (
|
|
995
|
-
var
|
|
996
|
-
let s = k.outcomes[0], c = "",
|
|
997
|
-
return ["Más de", "Mas de", "Over"].includes(s == null ? void 0 : s.label) ? (c = `Más de ${
|
|
998
|
-
id: (
|
|
992
|
+
function n(d) {
|
|
993
|
+
var _;
|
|
994
|
+
const o = (_ = d.betoffers) != null ? _ : [], a = d.homeName, u = d.awayName, p = o.map((k) => {
|
|
995
|
+
var O, x, C, N, f;
|
|
996
|
+
let s = k.outcomes[0], c = "", g = s != null && s.line ? s.line / 1e3 : "";
|
|
997
|
+
return ["Más de", "Mas de", "Over"].includes(s == null ? void 0 : s.label) ? (c = `Más de ${g}`, s != null && s.participant && (c = `${s.participant} - ${c}`)) : ["Menos de", "Menos"].includes(s == null ? void 0 : s.label) ? (c = `Menos de ${g}`, s != null && s.participant && (c = `${s.participant} - ${c}`)) : ["Sí", "No"].includes(s == null ? void 0 : s.label) ? (c = s == null ? void 0 : s.label, s != null && s.participant && (c = `${s.participant} - ${c}`)) : ["1X", "12", "X2"].includes(s == null ? void 0 : s.label) ? s.label === "1X" ? c = `${a} o Empate` : s.label === "12" ? c = `${a} o ${u}` : s.label === "X2" && (c = `${u} o Empate`) : (s != null && s.participant ? c = s.participant : c = (O = s == null ? void 0 : s.label) != null ? O : "", g !== "" && c === s.label && (c = `${s.label} ${g}`)), {
|
|
998
|
+
id: (x = s == null ? void 0 : s.id) != null ? x : 0,
|
|
999
999
|
value: c,
|
|
1000
1000
|
label: k.criterion.label,
|
|
1001
1001
|
odds: (C = s == null ? void 0 : s.odds) != null ? C : 0,
|
|
1002
1002
|
bl: (N = s == null ? void 0 : s.label) != null ? N : 0,
|
|
1003
|
-
position: (
|
|
1003
|
+
position: (f = s == null ? void 0 : s.position) != null ? f : 0
|
|
1004
1004
|
};
|
|
1005
|
-
}),
|
|
1005
|
+
}), h = p.reduce((k, s) => k + s.odds, 0) / 1e3;
|
|
1006
1006
|
return {
|
|
1007
|
-
outcomes:
|
|
1008
|
-
total:
|
|
1007
|
+
outcomes: p,
|
|
1008
|
+
total: h.toFixed(2)
|
|
1009
1009
|
};
|
|
1010
1010
|
}
|
|
1011
1011
|
const r = n(t);
|
|
1012
|
-
return /* @__PURE__ */ l("div", { className:
|
|
1013
|
-
/* @__PURE__ */ e("div", { className:
|
|
1012
|
+
return /* @__PURE__ */ l("div", { className: K.card, children: [
|
|
1013
|
+
/* @__PURE__ */ e("div", { className: K.combinadas, children: /* @__PURE__ */ l(M, { direction: "column", spacing: 0.5, useFlexGap: !0, children: [
|
|
1014
1014
|
/* @__PURE__ */ e(
|
|
1015
|
-
|
|
1015
|
+
q,
|
|
1016
1016
|
{
|
|
1017
1017
|
title: t.name,
|
|
1018
1018
|
iconUrl: "/assets/img/home/Combinadas/pelota.png",
|
|
@@ -1020,23 +1020,23 @@ function It({ event: t }) {
|
|
|
1020
1020
|
}
|
|
1021
1021
|
),
|
|
1022
1022
|
/* @__PURE__ */ e("img", { loading: "lazy", src: "/assets/img/home/Combinadas/line.png" }),
|
|
1023
|
-
/* @__PURE__ */ e(
|
|
1024
|
-
/* @__PURE__ */ l("div", { className:
|
|
1025
|
-
/* @__PURE__ */ e("div", { className:
|
|
1026
|
-
o < r.outcomes.length - 1 && /* @__PURE__ */ e("div", { className:
|
|
1023
|
+
/* @__PURE__ */ e(M, { direction: "column", spacing: 0.5, useFlexGap: !0, children: r.outcomes.sort((d, o) => d.position - o.position).map((d, o) => /* @__PURE__ */ l("div", { className: K.apuestaItem, children: [
|
|
1024
|
+
/* @__PURE__ */ l("div", { className: K.lineContainer, children: [
|
|
1025
|
+
/* @__PURE__ */ e("div", { className: K.circle }),
|
|
1026
|
+
o < r.outcomes.length - 1 && /* @__PURE__ */ e("div", { className: K.line })
|
|
1027
1027
|
] }),
|
|
1028
|
-
/* @__PURE__ */ l("div", { className:
|
|
1029
|
-
/* @__PURE__ */ e("strong", { children:
|
|
1028
|
+
/* @__PURE__ */ l("div", { className: K.apuestaText, children: [
|
|
1029
|
+
/* @__PURE__ */ e("strong", { children: d.value }),
|
|
1030
1030
|
" ",
|
|
1031
1031
|
"| ",
|
|
1032
|
-
|
|
1032
|
+
d.label
|
|
1033
1033
|
] })
|
|
1034
1034
|
] }, o)) })
|
|
1035
1035
|
] }) }),
|
|
1036
1036
|
/* @__PURE__ */ l("button", { onClick: () => {
|
|
1037
|
-
var
|
|
1038
|
-
return pe((o = (
|
|
1039
|
-
}, className:
|
|
1037
|
+
var d, o;
|
|
1038
|
+
return pe((o = (d = r == null ? void 0 : r.outcomes) == null ? void 0 : d.map((a) => a == null ? void 0 : a.id)) != null ? o : []);
|
|
1039
|
+
}, className: K.cuotaTotal, children: [
|
|
1040
1040
|
/* @__PURE__ */ l("span", { children: [
|
|
1041
1041
|
"Cuota total: ",
|
|
1042
1042
|
/* @__PURE__ */ e("strong", { children: (((i = t.combinadoTotal) != null ? i : 0) / 1e3).toFixed(2) })
|
|
@@ -1045,7 +1045,7 @@ function It({ event: t }) {
|
|
|
1045
1045
|
] })
|
|
1046
1046
|
] });
|
|
1047
1047
|
}
|
|
1048
|
-
const
|
|
1048
|
+
const D = {
|
|
1049
1049
|
"orc-btn": "oraculo__OraculoButtonBet-module__orc-btn___jakza",
|
|
1050
1050
|
"orc-btn__label": "oraculo__OraculoButtonBet-module__orc-btn__label___zNFEH",
|
|
1051
1051
|
"orc-btn__icon": "oraculo__OraculoButtonBet-module__orc-btn__icon___5Rhyd",
|
|
@@ -1059,51 +1059,51 @@ const U = {
|
|
|
1059
1059
|
"orc-btn--full": "oraculo__OraculoButtonBet-module__orc-btn--full___z-Myo",
|
|
1060
1060
|
"orc-btn--fullHeight": "oraculo__OraculoButtonBet-module__orc-btn--fullHeight___pCxq1"
|
|
1061
1061
|
};
|
|
1062
|
-
function
|
|
1062
|
+
function Tt({
|
|
1063
1063
|
children: t,
|
|
1064
1064
|
onClick: n,
|
|
1065
1065
|
href: r,
|
|
1066
1066
|
target: i,
|
|
1067
|
-
rel:
|
|
1067
|
+
rel: d,
|
|
1068
1068
|
type: o = "button",
|
|
1069
1069
|
disabled: a = !1,
|
|
1070
|
-
variant:
|
|
1071
|
-
size:
|
|
1072
|
-
fullWidth:
|
|
1073
|
-
fullHeight:
|
|
1070
|
+
variant: u = "primary",
|
|
1071
|
+
size: p,
|
|
1072
|
+
fullWidth: h = !1,
|
|
1073
|
+
fullHeight: _ = !1,
|
|
1074
1074
|
className: k = "",
|
|
1075
1075
|
ariaLabel: s,
|
|
1076
1076
|
leftIcon: c,
|
|
1077
|
-
rightIcon:
|
|
1078
|
-
iconOnly:
|
|
1077
|
+
rightIcon: g,
|
|
1078
|
+
iconOnly: O
|
|
1079
1079
|
}) {
|
|
1080
|
-
const
|
|
1081
|
-
|
|
1080
|
+
const x = !!t && t !== !0, f = (!!c ? 1 : 0) + (!!g ? 1 : 0) == 1, E = O != null ? O : f && !x, P = [
|
|
1081
|
+
D["orc-btn"],
|
|
1082
1082
|
// base
|
|
1083
|
-
|
|
1083
|
+
D[`orc-btn--${u}`],
|
|
1084
1084
|
// variant primary/secondary/tertiary
|
|
1085
|
-
|
|
1085
|
+
p ? D[`orc-btn--${p}`] : "",
|
|
1086
1086
|
// sm / md / lg
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1087
|
+
h ? D["orc-btn--full"] : "",
|
|
1088
|
+
_ ? D["orc-btn--fullHeight"] : "",
|
|
1089
|
+
E ? D["orc-btn--iconOnly"] : "",
|
|
1090
1090
|
k
|
|
1091
1091
|
].filter(Boolean).join(" "), T = /* @__PURE__ */ l(Z, { children: [
|
|
1092
|
-
c && /* @__PURE__ */ e("span", { className:
|
|
1093
|
-
!
|
|
1094
|
-
|
|
1095
|
-
] }),
|
|
1092
|
+
c && /* @__PURE__ */ e("span", { className: D["orc-btn__icon"], children: c }),
|
|
1093
|
+
!E && /* @__PURE__ */ e("span", { className: D["orc-btn__label"], children: t }),
|
|
1094
|
+
g && /* @__PURE__ */ e("span", { className: D["orc-btn__icon"], children: g })
|
|
1095
|
+
] }), S = a ? !0 : void 0;
|
|
1096
1096
|
return r ? /* @__PURE__ */ e(
|
|
1097
|
-
|
|
1097
|
+
Se,
|
|
1098
1098
|
{
|
|
1099
1099
|
href: r,
|
|
1100
1100
|
target: i,
|
|
1101
|
-
rel:
|
|
1101
|
+
rel: d,
|
|
1102
1102
|
"aria-label": s,
|
|
1103
|
-
"aria-disabled":
|
|
1104
|
-
tabIndex:
|
|
1103
|
+
"aria-disabled": S,
|
|
1104
|
+
tabIndex: S ? -1 : void 0,
|
|
1105
1105
|
className: P,
|
|
1106
|
-
onClick:
|
|
1106
|
+
onClick: S ? (B) => B.preventDefault() : n,
|
|
1107
1107
|
children: T
|
|
1108
1108
|
}
|
|
1109
1109
|
) : /* @__PURE__ */ e(
|
|
@@ -1111,36 +1111,36 @@ function Nt({
|
|
|
1111
1111
|
{
|
|
1112
1112
|
type: o,
|
|
1113
1113
|
onClick: n,
|
|
1114
|
-
disabled: !!
|
|
1114
|
+
disabled: !!S,
|
|
1115
1115
|
"aria-label": s,
|
|
1116
1116
|
className: P,
|
|
1117
1117
|
children: T
|
|
1118
1118
|
}
|
|
1119
1119
|
);
|
|
1120
1120
|
}
|
|
1121
|
-
const
|
|
1122
|
-
cardWrapper:
|
|
1121
|
+
const Pt = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", Be = {
|
|
1122
|
+
cardWrapper: Pt
|
|
1123
1123
|
};
|
|
1124
|
-
function
|
|
1125
|
-
var
|
|
1124
|
+
function Bt({ event: t, liveData: n, betOffers: r }) {
|
|
1125
|
+
var d, o, a, u, p, h, _, k;
|
|
1126
1126
|
const i = r == null ? void 0 : r.find(
|
|
1127
1127
|
(s) => {
|
|
1128
1128
|
var c;
|
|
1129
1129
|
return ((c = s.betOfferType) == null ? void 0 : c.id) === 2;
|
|
1130
1130
|
}
|
|
1131
1131
|
);
|
|
1132
|
-
return /* @__PURE__ */ e("div", { className:
|
|
1133
|
-
/* @__PURE__ */ l(
|
|
1132
|
+
return /* @__PURE__ */ e("div", { className: Be.cardWrapper, children: /* @__PURE__ */ l(M, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1133
|
+
/* @__PURE__ */ l(M, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
1134
1134
|
/* @__PURE__ */ e(
|
|
1135
|
-
|
|
1135
|
+
Ze,
|
|
1136
1136
|
{
|
|
1137
|
-
title: (
|
|
1137
|
+
title: (d = t.path[0].name) != null ? d : "",
|
|
1138
1138
|
subtitle: t.group,
|
|
1139
1139
|
live: !0,
|
|
1140
1140
|
time: ((o = n == null ? void 0 : n.matchClock) == null ? void 0 : o.minute) != null ? `${n.matchClock.minute}'` : ""
|
|
1141
1141
|
}
|
|
1142
1142
|
),
|
|
1143
|
-
/* @__PURE__ */ e("div", { style: { padding: "0 4px" }, children: /* @__PURE__ */ l(
|
|
1143
|
+
/* @__PURE__ */ e("div", { style: { padding: "0 4px" }, children: /* @__PURE__ */ l(H, { spacing: 1.5, columns: "1fr auto 1fr", children: [
|
|
1144
1144
|
/* @__PURE__ */ e(
|
|
1145
1145
|
ne,
|
|
1146
1146
|
{
|
|
@@ -1148,84 +1148,84 @@ function Pt({ event: t, liveData: n, betOffers: r }) {
|
|
|
1148
1148
|
logo: "https://stg-www.contodobet.com/static/img/landing/EventoEnVivo/Juventus.png"
|
|
1149
1149
|
}
|
|
1150
1150
|
),
|
|
1151
|
-
/* @__PURE__ */ e(
|
|
1151
|
+
/* @__PURE__ */ e(Te, { text: ((u = (a = n == null ? void 0 : n.score) == null ? void 0 : a.home) != null ? u : 0) + ":" + ((h = (p = n == null ? void 0 : n.score) == null ? void 0 : p.away) != null ? h : 0), name: "En vivo" }),
|
|
1152
1152
|
/* @__PURE__ */ e(ne, { name: t.awayName, logo: "https://stg-www.contodobet.com/static/img/landing/EventoEnVivo/Racing.png" })
|
|
1153
1153
|
] }) })
|
|
1154
1154
|
] }),
|
|
1155
|
-
/* @__PURE__ */ l(
|
|
1156
|
-
/* @__PURE__ */ e(
|
|
1157
|
-
/* @__PURE__ */ e(
|
|
1155
|
+
/* @__PURE__ */ l(M, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1156
|
+
/* @__PURE__ */ e(H, { spacing: 1, children: ((_ = i == null ? void 0 : i.outcomes) != null ? _ : []).map((s, c) => /* @__PURE__ */ e(Ie, { text: s.label.toUpperCase() }, c)) }),
|
|
1157
|
+
/* @__PURE__ */ e(H, { spacing: 2, children: ((k = i == null ? void 0 : i.outcomes) != null ? k : []).map((s, c) => /* @__PURE__ */ e(Tt, { variant: "primary", disabled: s.odds == null || (i == null ? void 0 : i.cashOutStatus) == "SUSPENDED", onClick: () => {
|
|
1158
1158
|
pe(s.id);
|
|
1159
1159
|
}, children: s.odds === void 0 ? "" : (s.odds / 1e3).toFixed(2) }, c)) })
|
|
1160
1160
|
] })
|
|
1161
1161
|
] }) });
|
|
1162
1162
|
}
|
|
1163
|
-
const
|
|
1164
|
-
date:
|
|
1163
|
+
const Rt = "oraculo__OraculoEventDate-module__date___xhIlh", Mt = {
|
|
1164
|
+
date: Rt
|
|
1165
1165
|
};
|
|
1166
|
-
function
|
|
1167
|
-
return /* @__PURE__ */ e("div", { className: `oli-font ${
|
|
1166
|
+
function Ft({ text: t }) {
|
|
1167
|
+
return /* @__PURE__ */ e("div", { className: `oli-font ${Mt.date}`, children: t });
|
|
1168
1168
|
}
|
|
1169
|
-
const
|
|
1170
|
-
cardContainer:
|
|
1171
|
-
cardBackground:
|
|
1172
|
-
jugadas:
|
|
1173
|
-
equipos:
|
|
1169
|
+
const Lt = "oraculo__OraculoEventSemanaCard-module__cardContainer___4JuDe", Wt = "oraculo__OraculoEventSemanaCard-module__cardBackground___vfalD", jt = "oraculo__OraculoEventSemanaCard-module__jugadas___W8b7H", zt = "oraculo__OraculoEventSemanaCard-module__equipos___G5hLn", X = {
|
|
1170
|
+
cardContainer: Lt,
|
|
1171
|
+
cardBackground: Wt,
|
|
1172
|
+
jugadas: jt,
|
|
1173
|
+
equipos: zt
|
|
1174
1174
|
};
|
|
1175
|
-
function
|
|
1176
|
-
var r, i,
|
|
1177
|
-
function n(
|
|
1178
|
-
const
|
|
1175
|
+
function At({ event: t }) {
|
|
1176
|
+
var r, i, d, o, a, u, p;
|
|
1177
|
+
function n(h) {
|
|
1178
|
+
const _ = new Date(h), k = _.toLocaleDateString("es-ES", {
|
|
1179
1179
|
weekday: "short"
|
|
1180
|
-
}).toUpperCase(), s =
|
|
1181
|
-
let
|
|
1180
|
+
}).toUpperCase(), s = _.getDate().toString().padStart(2, "0"), c = (_.getMonth() + 1).toString().padStart(2, "0");
|
|
1181
|
+
let g = _.toLocaleTimeString("es-PE", {
|
|
1182
1182
|
hour: "numeric",
|
|
1183
1183
|
minute: "2-digit",
|
|
1184
1184
|
hour12: !0
|
|
1185
1185
|
}).toUpperCase();
|
|
1186
|
-
return
|
|
1186
|
+
return g = g.replace(/\./g, "").replace(/A\s*M/i, "AM").replace(/P\s*M/i, "PM"), `${k} ${s}/${c} | ${g}`;
|
|
1187
1187
|
}
|
|
1188
|
-
return /* @__PURE__ */ l("div", { className:
|
|
1189
|
-
/* @__PURE__ */ e(
|
|
1190
|
-
/* @__PURE__ */ e("div", { className:
|
|
1191
|
-
/* @__PURE__ */ l(
|
|
1192
|
-
/* @__PURE__ */ l("div", { className:
|
|
1188
|
+
return /* @__PURE__ */ l("div", { className: X.cardContainer, children: [
|
|
1189
|
+
/* @__PURE__ */ e(Ne, { title: (r = t == null ? void 0 : t.group) != null ? r : "" }),
|
|
1190
|
+
/* @__PURE__ */ e("div", { className: X.cardBackground, children: /* @__PURE__ */ l(M, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
1191
|
+
/* @__PURE__ */ l(M, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1192
|
+
/* @__PURE__ */ l("div", { className: X.equipos, children: [
|
|
1193
1193
|
/* @__PURE__ */ e(ne, { name: t.awayName, logo: "https://stg-www.contodobet.com/static/img/landing/EventoSemana/Flamengo.png", size: "compact" }),
|
|
1194
|
-
/* @__PURE__ */ e(
|
|
1194
|
+
/* @__PURE__ */ e(Te, { text: "vs.", name: "", size: "small" }),
|
|
1195
1195
|
/* @__PURE__ */ e(ne, { name: t.homeName, logo: "https://stg-www.contodobet.com/static/img/landing/EventoSemana/RealMadrid.png", size: "compact" })
|
|
1196
1196
|
] }),
|
|
1197
|
-
/* @__PURE__ */ e(
|
|
1197
|
+
/* @__PURE__ */ e(Ft, { text: n(t.start) })
|
|
1198
1198
|
] }),
|
|
1199
|
-
/* @__PURE__ */ l(
|
|
1200
|
-
/* @__PURE__ */ e(
|
|
1201
|
-
/* @__PURE__ */ e("div", { className:
|
|
1202
|
-
pe(
|
|
1203
|
-
}, children: (
|
|
1199
|
+
/* @__PURE__ */ l(M, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
1200
|
+
/* @__PURE__ */ e(H, { spacing: 1, children: ((o = (d = (i = t == null ? void 0 : t.outcome) == null ? void 0 : i[0]) == null ? void 0 : d.outcomes) != null ? o : []).map((h, _) => /* @__PURE__ */ e(Ie, { text: h.label.toUpperCase() }, _)) }),
|
|
1201
|
+
/* @__PURE__ */ e("div", { className: X.jugadas, children: /* @__PURE__ */ e(H, { spacing: 1, children: ((p = (u = (a = t == null ? void 0 : t.outcome) == null ? void 0 : a[0]) == null ? void 0 : u.outcomes) != null ? p : []).map((h, _) => /* @__PURE__ */ e(L, { variant: "primary", fullHeight: !0, onClick: () => {
|
|
1202
|
+
pe(h.id);
|
|
1203
|
+
}, children: (h.odds / 1e3).toFixed(2) }, _)) }) })
|
|
1204
1204
|
] })
|
|
1205
1205
|
] }) })
|
|
1206
1206
|
] });
|
|
1207
1207
|
}
|
|
1208
|
-
function
|
|
1208
|
+
function Gt({
|
|
1209
1209
|
items: t,
|
|
1210
1210
|
title: n = "Destacados",
|
|
1211
1211
|
iconUrl: r,
|
|
1212
1212
|
onViewMore: i,
|
|
1213
|
-
className:
|
|
1213
|
+
className: d = ""
|
|
1214
1214
|
}) {
|
|
1215
|
-
const o =
|
|
1215
|
+
const o = U(null), [a, u] = A({ isStart: !0, isEnd: !1 }), p = () => {
|
|
1216
1216
|
var c;
|
|
1217
1217
|
(c = o.current) == null || c.prev();
|
|
1218
|
-
},
|
|
1218
|
+
}, h = () => {
|
|
1219
1219
|
var c;
|
|
1220
1220
|
(c = o.current) == null || c.next(), console.log("items: ", t);
|
|
1221
|
-
},
|
|
1221
|
+
}, _ = () => {
|
|
1222
1222
|
window.location.href = "https://www.olimpo.bet/promociones";
|
|
1223
1223
|
}, k = (c) => {
|
|
1224
1224
|
if (!c || typeof window == "undefined") return;
|
|
1225
|
-
const
|
|
1226
|
-
window.location.href =
|
|
1225
|
+
const O = `https://www.olimpo.bet/promociones/${encodeURIComponent(c)}`;
|
|
1226
|
+
window.location.href = O;
|
|
1227
1227
|
};
|
|
1228
|
-
return /* @__PURE__ */ l("section", { className:
|
|
1228
|
+
return /* @__PURE__ */ l("section", { className: d || void 0, style: { width: "100%" }, children: [
|
|
1229
1229
|
/* @__PURE__ */ l(
|
|
1230
1230
|
"header",
|
|
1231
1231
|
{
|
|
@@ -1238,37 +1238,37 @@ function At({
|
|
|
1238
1238
|
marginBottom: 16
|
|
1239
1239
|
},
|
|
1240
1240
|
children: [
|
|
1241
|
-
/* @__PURE__ */ e(
|
|
1241
|
+
/* @__PURE__ */ e(q, { title: n, iconUrl: r, size: "md" }),
|
|
1242
1242
|
/* @__PURE__ */ l("div", { style: { display: "flex", gap: 8 }, children: [
|
|
1243
1243
|
/* @__PURE__ */ e(
|
|
1244
|
-
|
|
1244
|
+
L,
|
|
1245
1245
|
{
|
|
1246
1246
|
ariaLabel: "Anterior",
|
|
1247
1247
|
variant: "secondary",
|
|
1248
1248
|
iconOnly: !0,
|
|
1249
1249
|
leftIcon: /* @__PURE__ */ e(de, {}),
|
|
1250
|
-
onClick:
|
|
1250
|
+
onClick: p,
|
|
1251
1251
|
disabled: a.isStart
|
|
1252
1252
|
}
|
|
1253
1253
|
),
|
|
1254
1254
|
/* @__PURE__ */ e(
|
|
1255
|
-
|
|
1255
|
+
L,
|
|
1256
1256
|
{
|
|
1257
1257
|
ariaLabel: "Siguiente",
|
|
1258
1258
|
variant: "secondary",
|
|
1259
1259
|
iconOnly: !0,
|
|
1260
1260
|
rightIcon: /* @__PURE__ */ e(ue, {}),
|
|
1261
|
-
onClick:
|
|
1261
|
+
onClick: h,
|
|
1262
1262
|
disabled: a.isEnd
|
|
1263
1263
|
}
|
|
1264
1264
|
)
|
|
1265
1265
|
] }),
|
|
1266
|
-
/* @__PURE__ */ e(
|
|
1266
|
+
/* @__PURE__ */ e(L, { variant: "secondary", onClick: _, children: "Ver más" })
|
|
1267
1267
|
]
|
|
1268
1268
|
}
|
|
1269
1269
|
),
|
|
1270
1270
|
/* @__PURE__ */ e(
|
|
1271
|
-
|
|
1271
|
+
J,
|
|
1272
1272
|
{
|
|
1273
1273
|
ref: o,
|
|
1274
1274
|
items: t,
|
|
@@ -1313,7 +1313,7 @@ function At({
|
|
|
1313
1313
|
},
|
|
1314
1314
|
`${c.title}-${c.image}`
|
|
1315
1315
|
),
|
|
1316
|
-
onMove: ({ isStart: c, isEnd:
|
|
1316
|
+
onMove: ({ isStart: c, isEnd: g }) => u({ isStart: c, isEnd: g })
|
|
1317
1317
|
}
|
|
1318
1318
|
)
|
|
1319
1319
|
] });
|
|
@@ -1322,36 +1322,36 @@ function ae(t, {
|
|
|
1322
1322
|
basePath: n = "/casino",
|
|
1323
1323
|
src: r,
|
|
1324
1324
|
demo: i = !1,
|
|
1325
|
-
host:
|
|
1325
|
+
host: d = "https://www.olimpo.bet"
|
|
1326
1326
|
} = {}) {
|
|
1327
1327
|
if (typeof window == "undefined") return;
|
|
1328
1328
|
const o = t == null ? void 0 : t.machine;
|
|
1329
1329
|
if (!o) return;
|
|
1330
1330
|
const a = new URLSearchParams();
|
|
1331
|
-
a.set("machine", String(o)), i && a.set("demo", "1"), window.location.href = `${
|
|
1331
|
+
a.set("machine", String(o)), i && a.set("demo", "1"), window.location.href = `${d}${n}?${a.toString()}`;
|
|
1332
1332
|
}
|
|
1333
|
-
function
|
|
1333
|
+
function Ut({
|
|
1334
1334
|
items: t,
|
|
1335
1335
|
title: n = "Top Juegos",
|
|
1336
1336
|
iconUrl: r,
|
|
1337
1337
|
onCardClick: i
|
|
1338
1338
|
}) {
|
|
1339
|
-
const
|
|
1340
|
-
() => (t != null ? t : []).map((
|
|
1341
|
-
var
|
|
1339
|
+
const d = oe(
|
|
1340
|
+
() => (t != null ? t : []).map((u, p) => {
|
|
1341
|
+
var h;
|
|
1342
1342
|
return {
|
|
1343
|
-
...
|
|
1343
|
+
...u,
|
|
1344
1344
|
// si no viene orden, usamos el índice (1-based)
|
|
1345
|
-
orden: (
|
|
1346
|
-
_originalIndex:
|
|
1345
|
+
orden: (h = u.orden) != null ? h : p + 1,
|
|
1346
|
+
_originalIndex: p
|
|
1347
1347
|
};
|
|
1348
|
-
}).sort((
|
|
1348
|
+
}).sort((u, p) => u.orden != null && p.orden != null ? u.orden - p.orden : u._originalIndex - p._originalIndex),
|
|
1349
1349
|
[t]
|
|
1350
|
-
), o = !t || t.length === 0, a = o ? Array.from({ length: 6 }) :
|
|
1351
|
-
return /* @__PURE__ */ e("section", { style: { width: "100%" }, children: /* @__PURE__ */ l(
|
|
1352
|
-
/* @__PURE__ */ e(
|
|
1350
|
+
), o = !t || t.length === 0, a = o ? Array.from({ length: 6 }) : d.slice(0, 6);
|
|
1351
|
+
return /* @__PURE__ */ e("section", { style: { width: "100%" }, children: /* @__PURE__ */ l(M, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
1352
|
+
/* @__PURE__ */ e(q, { title: n, iconUrl: r, size: "md" }),
|
|
1353
1353
|
/* @__PURE__ */ e(
|
|
1354
|
-
|
|
1354
|
+
$,
|
|
1355
1355
|
{
|
|
1356
1356
|
sx: {
|
|
1357
1357
|
display: "grid",
|
|
@@ -1363,41 +1363,41 @@ function Gt({
|
|
|
1363
1363
|
justifyItems: "center",
|
|
1364
1364
|
width: "100%"
|
|
1365
1365
|
},
|
|
1366
|
-
children: a.map((
|
|
1367
|
-
var
|
|
1366
|
+
children: a.map((u, p) => {
|
|
1367
|
+
var h, _;
|
|
1368
1368
|
return /* @__PURE__ */ e(
|
|
1369
|
-
|
|
1369
|
+
ft,
|
|
1370
1370
|
{
|
|
1371
|
-
imageUrl: o ? "" : `https://olimpo.bet${(
|
|
1372
|
-
orden: o ?
|
|
1371
|
+
imageUrl: o ? "" : `https://olimpo.bet${(h = u.logo) != null ? h : ""}`,
|
|
1372
|
+
orden: o ? p + 1 : u.orden,
|
|
1373
1373
|
loading: o,
|
|
1374
1374
|
onClick: o ? void 0 : () => {
|
|
1375
|
-
i ? i(
|
|
1375
|
+
i ? i(u) : ae(u, { basePath: "/casino" });
|
|
1376
1376
|
}
|
|
1377
1377
|
},
|
|
1378
|
-
o ? `sk-${
|
|
1378
|
+
o ? `sk-${p}` : (_ = u.machine) != null ? _ : `${p}`
|
|
1379
1379
|
);
|
|
1380
1380
|
})
|
|
1381
1381
|
}
|
|
1382
1382
|
)
|
|
1383
1383
|
] }) });
|
|
1384
1384
|
}
|
|
1385
|
-
const
|
|
1385
|
+
const Dt = (t, n) => {
|
|
1386
1386
|
var r, i;
|
|
1387
1387
|
return (i = (r = t.orden) != null ? r : t.machine) != null ? i : n;
|
|
1388
|
-
},
|
|
1388
|
+
}, Vt = ({
|
|
1389
1389
|
items: t,
|
|
1390
1390
|
title: n = "Casino en vivo",
|
|
1391
1391
|
subtitle: r = "Disfruta la emoción en tus juegos favoritos y gana en tiempo real.",
|
|
1392
1392
|
backgroundMobileUrl: i = "",
|
|
1393
|
-
backgroundDesktopUrl:
|
|
1393
|
+
backgroundDesktopUrl: d = "",
|
|
1394
1394
|
onCardClick: o,
|
|
1395
1395
|
onViewMore: a,
|
|
1396
|
-
className:
|
|
1396
|
+
className: u
|
|
1397
1397
|
}) => (console.log("items: ", t), /* @__PURE__ */ l(
|
|
1398
|
-
|
|
1398
|
+
$,
|
|
1399
1399
|
{
|
|
1400
|
-
className:
|
|
1400
|
+
className: u,
|
|
1401
1401
|
sx: {
|
|
1402
1402
|
position: "relative",
|
|
1403
1403
|
// width: "100vw",
|
|
@@ -1409,7 +1409,7 @@ const Ut = (t, n) => {
|
|
|
1409
1409
|
},
|
|
1410
1410
|
children: [
|
|
1411
1411
|
/* @__PURE__ */ e(
|
|
1412
|
-
|
|
1412
|
+
$,
|
|
1413
1413
|
{
|
|
1414
1414
|
sx: {
|
|
1415
1415
|
position: "absolute",
|
|
@@ -1423,7 +1423,7 @@ const Ut = (t, n) => {
|
|
|
1423
1423
|
md: `
|
|
1424
1424
|
linear-gradient(to bottom, #121212 0%, rgba(18,18,18,0) 10%),
|
|
1425
1425
|
linear-gradient(to top, #121212 0%, rgba(18,18,18,0) 10%),
|
|
1426
|
-
url('${
|
|
1426
|
+
url('${d}')
|
|
1427
1427
|
`
|
|
1428
1428
|
},
|
|
1429
1429
|
backgroundSize: "cover",
|
|
@@ -1434,7 +1434,7 @@ const Ut = (t, n) => {
|
|
|
1434
1434
|
}
|
|
1435
1435
|
),
|
|
1436
1436
|
/* @__PURE__ */ l(
|
|
1437
|
-
|
|
1437
|
+
$,
|
|
1438
1438
|
{
|
|
1439
1439
|
sx: {
|
|
1440
1440
|
position: "relative",
|
|
@@ -1451,9 +1451,9 @@ const Ut = (t, n) => {
|
|
|
1451
1451
|
textAlign: { xs: "center", md: "left" }
|
|
1452
1452
|
},
|
|
1453
1453
|
children: [
|
|
1454
|
-
/* @__PURE__ */ l(
|
|
1454
|
+
/* @__PURE__ */ l(M, { spacing: 3, sx: { maxWidth: { md: 280 } }, children: [
|
|
1455
1455
|
/* @__PURE__ */ e(
|
|
1456
|
-
|
|
1456
|
+
V,
|
|
1457
1457
|
{
|
|
1458
1458
|
variant: "h4",
|
|
1459
1459
|
sx: {
|
|
@@ -1466,7 +1466,7 @@ const Ut = (t, n) => {
|
|
|
1466
1466
|
}
|
|
1467
1467
|
),
|
|
1468
1468
|
/* @__PURE__ */ e(
|
|
1469
|
-
|
|
1469
|
+
V,
|
|
1470
1470
|
{
|
|
1471
1471
|
sx: {
|
|
1472
1472
|
fontSize: { xs: 14, md: 18 },
|
|
@@ -1477,8 +1477,8 @@ const Ut = (t, n) => {
|
|
|
1477
1477
|
children: r
|
|
1478
1478
|
}
|
|
1479
1479
|
),
|
|
1480
|
-
/* @__PURE__ */ e(
|
|
1481
|
-
|
|
1480
|
+
/* @__PURE__ */ e($, { sx: { display: { xs: "none", md: "block" } }, children: /* @__PURE__ */ e(
|
|
1481
|
+
L,
|
|
1482
1482
|
{
|
|
1483
1483
|
variant: "primary",
|
|
1484
1484
|
size: "md",
|
|
@@ -1488,7 +1488,7 @@ const Ut = (t, n) => {
|
|
|
1488
1488
|
) })
|
|
1489
1489
|
] }),
|
|
1490
1490
|
/* @__PURE__ */ e(
|
|
1491
|
-
|
|
1491
|
+
$,
|
|
1492
1492
|
{
|
|
1493
1493
|
sx: {
|
|
1494
1494
|
display: "flex",
|
|
@@ -1498,26 +1498,26 @@ const Ut = (t, n) => {
|
|
|
1498
1498
|
py: { xs: 3, md: 0 },
|
|
1499
1499
|
alignItems: "center"
|
|
1500
1500
|
},
|
|
1501
|
-
children: (t != null ? t : []).slice(0, 3).map((
|
|
1502
|
-
var
|
|
1501
|
+
children: (t != null ? t : []).slice(0, 3).map((p, h) => {
|
|
1502
|
+
var _;
|
|
1503
1503
|
return /* @__PURE__ */ e(
|
|
1504
|
-
|
|
1504
|
+
xt,
|
|
1505
1505
|
{
|
|
1506
|
-
logo: `https://olimpo.bet${(
|
|
1507
|
-
provider:
|
|
1508
|
-
providerName:
|
|
1509
|
-
machine:
|
|
1506
|
+
logo: `https://olimpo.bet${(_ = p.logo) != null ? _ : ""}`,
|
|
1507
|
+
provider: p.provider,
|
|
1508
|
+
providerName: p.web_name,
|
|
1509
|
+
machine: p.machine,
|
|
1510
1510
|
onClick: () => {
|
|
1511
|
-
ae(
|
|
1511
|
+
ae(p, { basePath: "/casino-en-vivo" });
|
|
1512
1512
|
}
|
|
1513
1513
|
},
|
|
1514
|
-
|
|
1514
|
+
Dt(p, h)
|
|
1515
1515
|
);
|
|
1516
1516
|
})
|
|
1517
1517
|
}
|
|
1518
1518
|
),
|
|
1519
|
-
/* @__PURE__ */ e(
|
|
1520
|
-
|
|
1519
|
+
/* @__PURE__ */ e($, { sx: { display: { xs: "block", md: "none" } }, children: /* @__PURE__ */ e(
|
|
1520
|
+
L,
|
|
1521
1521
|
{
|
|
1522
1522
|
variant: "primary",
|
|
1523
1523
|
size: "lg",
|
|
@@ -1530,25 +1530,25 @@ const Ut = (t, n) => {
|
|
|
1530
1530
|
)
|
|
1531
1531
|
]
|
|
1532
1532
|
}
|
|
1533
|
-
)),
|
|
1533
|
+
)), Re = (t, n) => {
|
|
1534
1534
|
var r, i;
|
|
1535
1535
|
return (i = (r = t.orden) != null ? r : t.machine) != null ? i : n;
|
|
1536
|
-
},
|
|
1537
|
-
const i = t.map((a,
|
|
1538
|
-
var
|
|
1536
|
+
}, Ht = (t, n = !0, r = 4) => {
|
|
1537
|
+
const i = t.map((a, u) => {
|
|
1538
|
+
var p;
|
|
1539
1539
|
return {
|
|
1540
|
-
id:
|
|
1541
|
-
imageUrl: (
|
|
1540
|
+
id: Re(a, u),
|
|
1541
|
+
imageUrl: (p = a.logo) != null ? p : "",
|
|
1542
1542
|
...a.background ? { background: a.background } : {}
|
|
1543
1543
|
// background: g.background,
|
|
1544
1544
|
};
|
|
1545
1545
|
});
|
|
1546
1546
|
if (!i.length) return [];
|
|
1547
|
-
const
|
|
1547
|
+
const d = [];
|
|
1548
1548
|
let o = 0;
|
|
1549
1549
|
if (n) {
|
|
1550
1550
|
const a = Math.min(i.length, 5);
|
|
1551
|
-
|
|
1551
|
+
d.push({
|
|
1552
1552
|
id: "mosaic-0",
|
|
1553
1553
|
kind: "mosaic",
|
|
1554
1554
|
items: i.slice(0, a)
|
|
@@ -1556,37 +1556,37 @@ const Ut = (t, n) => {
|
|
|
1556
1556
|
}
|
|
1557
1557
|
for (; o < i.length; ) {
|
|
1558
1558
|
const a = Math.min(o + r, i.length);
|
|
1559
|
-
|
|
1559
|
+
d.push({
|
|
1560
1560
|
id: `grid-${o}`,
|
|
1561
1561
|
kind: "grid",
|
|
1562
1562
|
items: i.slice(o, a)
|
|
1563
1563
|
}), o = a;
|
|
1564
1564
|
}
|
|
1565
|
-
return
|
|
1566
|
-
},
|
|
1565
|
+
return d;
|
|
1566
|
+
}, Kt = ({
|
|
1567
1567
|
items: t,
|
|
1568
1568
|
title: n = "Casino",
|
|
1569
1569
|
iconUrl: r = "/assets/img/home/Casino/diamante.svg",
|
|
1570
1570
|
onItemClick: i,
|
|
1571
|
-
onViewMore:
|
|
1571
|
+
onViewMore: d,
|
|
1572
1572
|
mosaicFirst: o = !0,
|
|
1573
1573
|
gridSize: a = 4
|
|
1574
1574
|
}) => {
|
|
1575
|
-
const
|
|
1576
|
-
var
|
|
1577
|
-
(
|
|
1575
|
+
const u = U(null), [p, h] = A({ isStart: !0, isEnd: !1 }), _ = () => {
|
|
1576
|
+
var x;
|
|
1577
|
+
(x = u.current) == null || x.prev();
|
|
1578
1578
|
}, k = () => {
|
|
1579
|
-
var
|
|
1580
|
-
(
|
|
1579
|
+
var x;
|
|
1580
|
+
(x = u.current) == null || x.next();
|
|
1581
1581
|
}, s = () => {
|
|
1582
1582
|
window.location.href = "https://www.olimpo.bet/casino";
|
|
1583
|
-
}, c = (
|
|
1584
|
-
const N = (
|
|
1585
|
-
return
|
|
1586
|
-
},
|
|
1587
|
-
return /* @__PURE__ */ e("section", { children: /* @__PURE__ */ l(
|
|
1583
|
+
}, c = (x = !0, C = 4) => {
|
|
1584
|
+
const N = (E) => Array.from({ length: E }, (P, T) => ({ id: `sk-${E}-${T}`, imageUrl: "" })), f = [];
|
|
1585
|
+
return x && f.push({ id: "mosaic-loading", kind: "mosaic", items: N(5) }), f.push({ id: "grid-loading", kind: "grid", items: N(C) }), f;
|
|
1586
|
+
}, g = !t || t.length === 0, O = g ? c(o, a) : Ht(t, o, a);
|
|
1587
|
+
return /* @__PURE__ */ e("section", { children: /* @__PURE__ */ l(M, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
1588
1588
|
/* @__PURE__ */ l(
|
|
1589
|
-
|
|
1589
|
+
$,
|
|
1590
1590
|
{
|
|
1591
1591
|
sx: {
|
|
1592
1592
|
display: "grid",
|
|
@@ -1597,7 +1597,7 @@ const Ut = (t, n) => {
|
|
|
1597
1597
|
},
|
|
1598
1598
|
children: [
|
|
1599
1599
|
/* @__PURE__ */ e(
|
|
1600
|
-
|
|
1600
|
+
q,
|
|
1601
1601
|
{
|
|
1602
1602
|
title: n,
|
|
1603
1603
|
iconUrl: r,
|
|
@@ -1605,7 +1605,7 @@ const Ut = (t, n) => {
|
|
|
1605
1605
|
}
|
|
1606
1606
|
),
|
|
1607
1607
|
/* @__PURE__ */ l(
|
|
1608
|
-
|
|
1608
|
+
$,
|
|
1609
1609
|
{
|
|
1610
1610
|
sx: {
|
|
1611
1611
|
display: "flex",
|
|
@@ -1614,39 +1614,39 @@ const Ut = (t, n) => {
|
|
|
1614
1614
|
},
|
|
1615
1615
|
children: [
|
|
1616
1616
|
/* @__PURE__ */ e(
|
|
1617
|
-
|
|
1617
|
+
L,
|
|
1618
1618
|
{
|
|
1619
1619
|
ariaLabel: "Anterior",
|
|
1620
1620
|
variant: "secondary",
|
|
1621
1621
|
iconOnly: !0,
|
|
1622
|
-
leftIcon: /* @__PURE__ */ e(
|
|
1623
|
-
onClick:
|
|
1624
|
-
disabled:
|
|
1622
|
+
leftIcon: /* @__PURE__ */ e(ke, {}),
|
|
1623
|
+
onClick: _,
|
|
1624
|
+
disabled: p.isStart
|
|
1625
1625
|
}
|
|
1626
1626
|
),
|
|
1627
1627
|
/* @__PURE__ */ e(
|
|
1628
|
-
|
|
1628
|
+
L,
|
|
1629
1629
|
{
|
|
1630
1630
|
ariaLabel: "Siguiente",
|
|
1631
1631
|
variant: "secondary",
|
|
1632
1632
|
iconOnly: !0,
|
|
1633
|
-
rightIcon: /* @__PURE__ */ e(
|
|
1633
|
+
rightIcon: /* @__PURE__ */ e($e, {}),
|
|
1634
1634
|
onClick: k,
|
|
1635
|
-
disabled:
|
|
1635
|
+
disabled: p.isEnd
|
|
1636
1636
|
}
|
|
1637
1637
|
)
|
|
1638
1638
|
]
|
|
1639
1639
|
}
|
|
1640
1640
|
),
|
|
1641
|
-
/* @__PURE__ */ e(
|
|
1641
|
+
/* @__PURE__ */ e($, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ e(L, { variant: "secondary", onClick: s, children: "Ver más" }) })
|
|
1642
1642
|
]
|
|
1643
1643
|
}
|
|
1644
1644
|
),
|
|
1645
1645
|
/* @__PURE__ */ e(
|
|
1646
|
-
|
|
1646
|
+
J,
|
|
1647
1647
|
{
|
|
1648
|
-
ref:
|
|
1649
|
-
items:
|
|
1648
|
+
ref: u,
|
|
1649
|
+
items: O,
|
|
1650
1650
|
perPage: 1,
|
|
1651
1651
|
gap: "0px",
|
|
1652
1652
|
options: {
|
|
@@ -1658,43 +1658,43 @@ const Ut = (t, n) => {
|
|
|
1658
1658
|
drag: !0,
|
|
1659
1659
|
focus: "start"
|
|
1660
1660
|
},
|
|
1661
|
-
renderItem: (
|
|
1662
|
-
|
|
1661
|
+
renderItem: (x) => /* @__PURE__ */ e("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ e(
|
|
1662
|
+
Pe,
|
|
1663
1663
|
{
|
|
1664
|
-
items:
|
|
1665
|
-
layout:
|
|
1666
|
-
loading:
|
|
1664
|
+
items: x.items,
|
|
1665
|
+
layout: x.kind === "mosaic" ? "mosaic" : "grid",
|
|
1666
|
+
loading: g,
|
|
1667
1667
|
onClick: (C) => {
|
|
1668
1668
|
const N = t.find(
|
|
1669
|
-
(
|
|
1669
|
+
(f, E) => Re(f, E) === C.id
|
|
1670
1670
|
);
|
|
1671
|
-
|
|
1671
|
+
g || N && ae(N, { basePath: "/casino" });
|
|
1672
1672
|
}
|
|
1673
1673
|
}
|
|
1674
1674
|
) }),
|
|
1675
|
-
onMove: ({ isStart:
|
|
1675
|
+
onMove: ({ isStart: x, isEnd: C }) => h({ isStart: x, isEnd: C })
|
|
1676
1676
|
}
|
|
1677
1677
|
)
|
|
1678
1678
|
] }) });
|
|
1679
|
-
},
|
|
1679
|
+
}, Me = (t, n) => {
|
|
1680
1680
|
var r, i;
|
|
1681
1681
|
return (i = (r = t.orden) != null ? r : t.machine) != null ? i : n;
|
|
1682
|
-
},
|
|
1683
|
-
const i = t.map((a,
|
|
1684
|
-
var
|
|
1682
|
+
}, qt = (t, n = !0, r = 4) => {
|
|
1683
|
+
const i = t.map((a, u) => {
|
|
1684
|
+
var p;
|
|
1685
1685
|
return {
|
|
1686
|
-
id:
|
|
1687
|
-
imageUrl: (
|
|
1686
|
+
id: Me(a, u),
|
|
1687
|
+
imageUrl: (p = a.logo) != null ? p : "",
|
|
1688
1688
|
...a.background ? { background: a.background } : {}
|
|
1689
1689
|
// background: g.background,
|
|
1690
1690
|
};
|
|
1691
1691
|
});
|
|
1692
1692
|
if (!i.length) return [];
|
|
1693
|
-
const
|
|
1693
|
+
const d = [];
|
|
1694
1694
|
let o = 0;
|
|
1695
1695
|
if (n) {
|
|
1696
1696
|
const a = Math.min(i.length, 5);
|
|
1697
|
-
|
|
1697
|
+
d.push({
|
|
1698
1698
|
id: "mosaic-0",
|
|
1699
1699
|
kind: "mosaic",
|
|
1700
1700
|
items: i.slice(0, a)
|
|
@@ -1702,37 +1702,37 @@ const Ut = (t, n) => {
|
|
|
1702
1702
|
}
|
|
1703
1703
|
for (; o < i.length; ) {
|
|
1704
1704
|
const a = Math.min(o + r, i.length);
|
|
1705
|
-
|
|
1705
|
+
d.push({
|
|
1706
1706
|
id: `grid-${o}`,
|
|
1707
1707
|
kind: "grid",
|
|
1708
1708
|
items: i.slice(o, a)
|
|
1709
1709
|
}), o = a;
|
|
1710
1710
|
}
|
|
1711
|
-
return
|
|
1712
|
-
},
|
|
1711
|
+
return d;
|
|
1712
|
+
}, Jt = ({
|
|
1713
1713
|
items: t,
|
|
1714
1714
|
title: n = "Virtuales",
|
|
1715
1715
|
iconUrl: r = "/assets/img/home/Virtuales/virtuales.svg",
|
|
1716
1716
|
onItemClick: i,
|
|
1717
|
-
onViewMore:
|
|
1717
|
+
onViewMore: d,
|
|
1718
1718
|
mosaicFirst: o = !0,
|
|
1719
1719
|
gridSize: a = 4
|
|
1720
1720
|
}) => {
|
|
1721
|
-
const
|
|
1722
|
-
var
|
|
1723
|
-
(
|
|
1721
|
+
const u = U(null), [p, h] = A({ isStart: !0, isEnd: !1 }), _ = () => {
|
|
1722
|
+
var x;
|
|
1723
|
+
(x = u.current) == null || x.prev();
|
|
1724
1724
|
}, k = () => {
|
|
1725
|
-
var
|
|
1726
|
-
(
|
|
1725
|
+
var x;
|
|
1726
|
+
(x = u.current) == null || x.next();
|
|
1727
1727
|
}, s = () => {
|
|
1728
1728
|
window.location.href = "https://www.olimpo.bet/juegos-virtuales";
|
|
1729
|
-
}, c = (
|
|
1730
|
-
const N = (
|
|
1731
|
-
return
|
|
1732
|
-
},
|
|
1733
|
-
return /* @__PURE__ */ e("section", { children: /* @__PURE__ */ l(
|
|
1729
|
+
}, c = (x = !0, C = 4) => {
|
|
1730
|
+
const N = (E) => Array.from({ length: E }, (P, T) => ({ id: `sk-${E}-${T}`, imageUrl: "" })), f = [];
|
|
1731
|
+
return x && f.push({ id: "mosaic-loading", kind: "mosaic", items: N(5) }), f.push({ id: "grid-loading", kind: "grid", items: N(C) }), f;
|
|
1732
|
+
}, g = !t || t.length === 0, O = g ? c(o, a) : qt(t, o, a);
|
|
1733
|
+
return /* @__PURE__ */ e("section", { children: /* @__PURE__ */ l(M, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
1734
1734
|
/* @__PURE__ */ l(
|
|
1735
|
-
|
|
1735
|
+
$,
|
|
1736
1736
|
{
|
|
1737
1737
|
sx: {
|
|
1738
1738
|
display: "grid",
|
|
@@ -1743,7 +1743,7 @@ const Ut = (t, n) => {
|
|
|
1743
1743
|
},
|
|
1744
1744
|
children: [
|
|
1745
1745
|
/* @__PURE__ */ e(
|
|
1746
|
-
|
|
1746
|
+
q,
|
|
1747
1747
|
{
|
|
1748
1748
|
title: n,
|
|
1749
1749
|
iconUrl: r,
|
|
@@ -1751,7 +1751,7 @@ const Ut = (t, n) => {
|
|
|
1751
1751
|
}
|
|
1752
1752
|
),
|
|
1753
1753
|
/* @__PURE__ */ l(
|
|
1754
|
-
|
|
1754
|
+
$,
|
|
1755
1755
|
{
|
|
1756
1756
|
sx: {
|
|
1757
1757
|
display: "flex",
|
|
@@ -1760,39 +1760,39 @@ const Ut = (t, n) => {
|
|
|
1760
1760
|
},
|
|
1761
1761
|
children: [
|
|
1762
1762
|
/* @__PURE__ */ e(
|
|
1763
|
-
|
|
1763
|
+
L,
|
|
1764
1764
|
{
|
|
1765
1765
|
ariaLabel: "Anterior",
|
|
1766
1766
|
variant: "secondary",
|
|
1767
1767
|
iconOnly: !0,
|
|
1768
|
-
leftIcon: /* @__PURE__ */ e(
|
|
1769
|
-
onClick:
|
|
1770
|
-
disabled:
|
|
1768
|
+
leftIcon: /* @__PURE__ */ e(ke, {}),
|
|
1769
|
+
onClick: _,
|
|
1770
|
+
disabled: p.isStart
|
|
1771
1771
|
}
|
|
1772
1772
|
),
|
|
1773
1773
|
/* @__PURE__ */ e(
|
|
1774
|
-
|
|
1774
|
+
L,
|
|
1775
1775
|
{
|
|
1776
1776
|
ariaLabel: "Siguiente",
|
|
1777
1777
|
variant: "secondary",
|
|
1778
1778
|
iconOnly: !0,
|
|
1779
|
-
rightIcon: /* @__PURE__ */ e(
|
|
1779
|
+
rightIcon: /* @__PURE__ */ e($e, {}),
|
|
1780
1780
|
onClick: k,
|
|
1781
|
-
disabled:
|
|
1781
|
+
disabled: p.isEnd
|
|
1782
1782
|
}
|
|
1783
1783
|
)
|
|
1784
1784
|
]
|
|
1785
1785
|
}
|
|
1786
1786
|
),
|
|
1787
|
-
/* @__PURE__ */ e(
|
|
1787
|
+
/* @__PURE__ */ e($, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ e(L, { variant: "secondary", onClick: s, children: "Ver más" }) })
|
|
1788
1788
|
]
|
|
1789
1789
|
}
|
|
1790
1790
|
),
|
|
1791
1791
|
/* @__PURE__ */ e(
|
|
1792
|
-
|
|
1792
|
+
J,
|
|
1793
1793
|
{
|
|
1794
|
-
ref:
|
|
1795
|
-
items:
|
|
1794
|
+
ref: u,
|
|
1795
|
+
items: O,
|
|
1796
1796
|
perPage: 1,
|
|
1797
1797
|
gap: "0",
|
|
1798
1798
|
options: {
|
|
@@ -1805,25 +1805,25 @@ const Ut = (t, n) => {
|
|
|
1805
1805
|
focus: "start",
|
|
1806
1806
|
perMove: 1
|
|
1807
1807
|
},
|
|
1808
|
-
renderItem: (
|
|
1809
|
-
|
|
1808
|
+
renderItem: (x) => /* @__PURE__ */ e("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ e(
|
|
1809
|
+
Pe,
|
|
1810
1810
|
{
|
|
1811
|
-
items:
|
|
1812
|
-
layout:
|
|
1813
|
-
loading:
|
|
1811
|
+
items: x.items,
|
|
1812
|
+
layout: x.kind === "mosaic" ? "mosaic" : "grid",
|
|
1813
|
+
loading: g,
|
|
1814
1814
|
onClick: (C) => {
|
|
1815
1815
|
const N = t.find(
|
|
1816
|
-
(
|
|
1816
|
+
(f, E) => Me(f, E) === C.id
|
|
1817
1817
|
);
|
|
1818
|
-
|
|
1818
|
+
g || N && ae(N, { basePath: "/casino" });
|
|
1819
1819
|
}
|
|
1820
1820
|
}
|
|
1821
1821
|
) }),
|
|
1822
|
-
onMove: ({ isStart:
|
|
1822
|
+
onMove: ({ isStart: x, isEnd: C }) => h({ isStart: x, isEnd: C })
|
|
1823
1823
|
}
|
|
1824
1824
|
)
|
|
1825
1825
|
] }) });
|
|
1826
|
-
},
|
|
1826
|
+
}, Xt = (t) => ({
|
|
1827
1827
|
position: "relative",
|
|
1828
1828
|
py: 8,
|
|
1829
1829
|
color: "#fff",
|
|
@@ -1837,15 +1837,15 @@ const Ut = (t, n) => {
|
|
|
1837
1837
|
backgroundRepeat: "no-repeat",
|
|
1838
1838
|
backgroundPosition: "center",
|
|
1839
1839
|
backgroundSize: "cover"
|
|
1840
|
-
}),
|
|
1840
|
+
}), be = {
|
|
1841
1841
|
textAlign: "center",
|
|
1842
1842
|
lineHeight: 1.1,
|
|
1843
1843
|
mb: 1.5
|
|
1844
|
-
},
|
|
1844
|
+
}, _e = {
|
|
1845
1845
|
display: "inline-block",
|
|
1846
1846
|
fontWeight: 600,
|
|
1847
1847
|
fontSize: 24
|
|
1848
|
-
},
|
|
1848
|
+
}, ve = {
|
|
1849
1849
|
display: "inline-block",
|
|
1850
1850
|
fontSize: 24,
|
|
1851
1851
|
lineHeight: 1.1,
|
|
@@ -1855,23 +1855,23 @@ const Ut = (t, n) => {
|
|
|
1855
1855
|
0 0 6px rgba(255, 255, 255, .6),
|
|
1856
1856
|
0 1px 0 rgba(137, 137, 137, .85)
|
|
1857
1857
|
`
|
|
1858
|
-
},
|
|
1858
|
+
}, Qt = ({
|
|
1859
1859
|
headline: t,
|
|
1860
1860
|
headline2: n,
|
|
1861
1861
|
items: r,
|
|
1862
1862
|
backgroundImageUrl: i
|
|
1863
1863
|
}) => {
|
|
1864
|
-
const
|
|
1864
|
+
const d = De("(max-width: 767px)"), o = r.length > 1, a = U(null), [u, p] = A(0), h = r == null ? void 0 : r[u], _ = oe(
|
|
1865
1865
|
() => {
|
|
1866
|
-
var c,
|
|
1867
|
-
return (
|
|
1866
|
+
var c, g;
|
|
1867
|
+
return (g = (c = h == null ? void 0 : h.backgroundImageUrl) != null ? c : i) != null ? g : "";
|
|
1868
1868
|
},
|
|
1869
|
-
[
|
|
1870
|
-
), k =
|
|
1869
|
+
[h, i]
|
|
1870
|
+
), k = Xt(_), s = (c, g) => {
|
|
1871
1871
|
var C, N;
|
|
1872
|
-
const
|
|
1873
|
-
return
|
|
1874
|
-
|
|
1872
|
+
const O = (C = c.headline) != null ? C : t, x = (N = c.headline2) != null ? N : n;
|
|
1873
|
+
return g ? /* @__PURE__ */ l(
|
|
1874
|
+
$,
|
|
1875
1875
|
{
|
|
1876
1876
|
sx: {
|
|
1877
1877
|
maxWidth: 1200,
|
|
@@ -1883,8 +1883,8 @@ const Ut = (t, n) => {
|
|
|
1883
1883
|
columnGap: 6
|
|
1884
1884
|
},
|
|
1885
1885
|
children: [
|
|
1886
|
-
(
|
|
1887
|
-
|
|
1886
|
+
(O || x) && /* @__PURE__ */ e(
|
|
1887
|
+
$,
|
|
1888
1888
|
{
|
|
1889
1889
|
sx: {
|
|
1890
1890
|
display: "flex",
|
|
@@ -1892,17 +1892,17 @@ const Ut = (t, n) => {
|
|
|
1892
1892
|
justifyContent: "flex-start",
|
|
1893
1893
|
minHeight: "100%"
|
|
1894
1894
|
},
|
|
1895
|
-
children: /* @__PURE__ */ l(
|
|
1896
|
-
|
|
1897
|
-
|
|
1895
|
+
children: /* @__PURE__ */ l($, { sx: { ...be, textAlign: "left", mb: 0 }, children: [
|
|
1896
|
+
O && /* @__PURE__ */ e(V, { component: "span", sx: _e, children: O }),
|
|
1897
|
+
x && /* @__PURE__ */ l(Z, { children: [
|
|
1898
1898
|
/* @__PURE__ */ e("br", {}),
|
|
1899
|
-
/* @__PURE__ */ e(
|
|
1899
|
+
/* @__PURE__ */ e(V, { component: "span", sx: ve, children: x })
|
|
1900
1900
|
] })
|
|
1901
1901
|
] })
|
|
1902
1902
|
}
|
|
1903
1903
|
),
|
|
1904
|
-
/* @__PURE__ */ e(
|
|
1905
|
-
|
|
1904
|
+
/* @__PURE__ */ e($, { sx: { display: "flex", justifyContent: "center", alignItems: "center" }, children: /* @__PURE__ */ e($, { sx: { width: "100%", maxWidth: 600, mx: "auto" }, children: /* @__PURE__ */ e(
|
|
1905
|
+
xe,
|
|
1906
1906
|
{
|
|
1907
1907
|
...c,
|
|
1908
1908
|
onButtonClick: c.onButtonClick,
|
|
@@ -1911,16 +1911,16 @@ const Ut = (t, n) => {
|
|
|
1911
1911
|
) }) })
|
|
1912
1912
|
]
|
|
1913
1913
|
}
|
|
1914
|
-
) : /* @__PURE__ */ l(
|
|
1915
|
-
(
|
|
1916
|
-
|
|
1917
|
-
|
|
1914
|
+
) : /* @__PURE__ */ l($, { sx: { textAlign: "center" }, children: [
|
|
1915
|
+
(O || x) && /* @__PURE__ */ l($, { sx: be, children: [
|
|
1916
|
+
O && /* @__PURE__ */ e(V, { component: "span", sx: _e, children: O }),
|
|
1917
|
+
x && /* @__PURE__ */ l(Z, { children: [
|
|
1918
1918
|
/* @__PURE__ */ e("br", {}),
|
|
1919
|
-
/* @__PURE__ */ e(
|
|
1919
|
+
/* @__PURE__ */ e(V, { component: "span", sx: ve, children: x })
|
|
1920
1920
|
] })
|
|
1921
1921
|
] }),
|
|
1922
|
-
/* @__PURE__ */ e(
|
|
1923
|
-
|
|
1922
|
+
/* @__PURE__ */ e($, { sx: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ e(
|
|
1923
|
+
xe,
|
|
1924
1924
|
{
|
|
1925
1925
|
...c,
|
|
1926
1926
|
onButtonClick: c.onButtonClick,
|
|
@@ -1929,56 +1929,56 @@ const Ut = (t, n) => {
|
|
|
1929
1929
|
) })
|
|
1930
1930
|
] });
|
|
1931
1931
|
};
|
|
1932
|
-
return /* @__PURE__ */ l(
|
|
1932
|
+
return /* @__PURE__ */ l($, { component: "section", sx: k, children: [
|
|
1933
1933
|
/* @__PURE__ */ e(
|
|
1934
|
-
|
|
1934
|
+
J,
|
|
1935
1935
|
{
|
|
1936
1936
|
ref: a,
|
|
1937
1937
|
items: r,
|
|
1938
1938
|
perPage: 1,
|
|
1939
1939
|
gap: "0px",
|
|
1940
1940
|
options: { autoWidth: !1 },
|
|
1941
|
-
renderItem: (c) => /* @__PURE__ */ e(
|
|
1941
|
+
renderItem: (c) => /* @__PURE__ */ e($, { sx: { width: "100%" }, children: s(c, !d) }),
|
|
1942
1942
|
onMove: ({ index: c }) => {
|
|
1943
|
-
|
|
1943
|
+
p(c);
|
|
1944
1944
|
}
|
|
1945
1945
|
}
|
|
1946
1946
|
),
|
|
1947
|
-
o && /* @__PURE__ */ e(
|
|
1948
|
-
|
|
1947
|
+
o && /* @__PURE__ */ e($, { sx: { mt: 2, display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ e(
|
|
1948
|
+
Oe,
|
|
1949
1949
|
{
|
|
1950
1950
|
total: r.length,
|
|
1951
|
-
active:
|
|
1951
|
+
active: u,
|
|
1952
1952
|
onSelect: (c) => {
|
|
1953
|
-
var
|
|
1954
|
-
|
|
1953
|
+
var g;
|
|
1954
|
+
p(c), (g = a.current) == null || g.go(c);
|
|
1955
1955
|
}
|
|
1956
1956
|
}
|
|
1957
1957
|
) })
|
|
1958
1958
|
] });
|
|
1959
|
-
},
|
|
1959
|
+
}, Yt = ({
|
|
1960
1960
|
className: t = "",
|
|
1961
1961
|
fullBleed: n = !0,
|
|
1962
1962
|
items: r,
|
|
1963
1963
|
selectedIndex: i = 0,
|
|
1964
|
-
ariaLabel:
|
|
1964
|
+
ariaLabel: d
|
|
1965
1965
|
}) => {
|
|
1966
|
-
const o =
|
|
1966
|
+
const o = U(null), a = U(null);
|
|
1967
1967
|
if (!r) return null;
|
|
1968
|
-
const
|
|
1968
|
+
const u = () => {
|
|
1969
1969
|
window.location.href = "https://www.olimpo.bet/conoce-club-olimpo";
|
|
1970
|
-
},
|
|
1971
|
-
|
|
1970
|
+
}, p = Array.isArray(r) ? r[i] : r;
|
|
1971
|
+
Ae(() => {
|
|
1972
1972
|
if (!o.current || !a.current || typeof ResizeObserver == "undefined") return;
|
|
1973
|
-
const
|
|
1974
|
-
|
|
1973
|
+
const _ = o.current, k = a.current, s = () => {
|
|
1974
|
+
_.style.setProperty(
|
|
1975
1975
|
"--orc-co-bottomH",
|
|
1976
1976
|
`${k.offsetHeight + 16}px`
|
|
1977
1977
|
);
|
|
1978
1978
|
}, c = new ResizeObserver(s);
|
|
1979
1979
|
return c.observe(k), s(), () => c.disconnect();
|
|
1980
1980
|
}, []);
|
|
1981
|
-
const
|
|
1981
|
+
const h = [
|
|
1982
1982
|
"orc-co-wrap",
|
|
1983
1983
|
n ? "orc-co-fullBleed" : "",
|
|
1984
1984
|
t
|
|
@@ -1987,142 +1987,142 @@ const Ut = (t, n) => {
|
|
|
1987
1987
|
"section",
|
|
1988
1988
|
{
|
|
1989
1989
|
ref: o,
|
|
1990
|
-
className:
|
|
1991
|
-
"aria-label":
|
|
1990
|
+
className: h,
|
|
1991
|
+
"aria-label": d || p.imgAlt || "Club Olimpo",
|
|
1992
1992
|
children: /* @__PURE__ */ e("div", { ref: a, children: /* @__PURE__ */ e(
|
|
1993
|
-
|
|
1993
|
+
bt,
|
|
1994
1994
|
{
|
|
1995
|
-
text:
|
|
1996
|
-
onClick:
|
|
1997
|
-
imgAlt:
|
|
1998
|
-
imgSrcMobile:
|
|
1999
|
-
imgSrcDesktopBg:
|
|
2000
|
-
imgSrcDesktopLogo:
|
|
1995
|
+
text: p.text,
|
|
1996
|
+
onClick: u,
|
|
1997
|
+
imgAlt: p.imgAlt,
|
|
1998
|
+
imgSrcMobile: p.imgMobile,
|
|
1999
|
+
imgSrcDesktopBg: p.imgDesktopBg,
|
|
2000
|
+
imgSrcDesktopLogo: p.imgDesktopLogo
|
|
2001
2001
|
}
|
|
2002
2002
|
) })
|
|
2003
2003
|
}
|
|
2004
2004
|
);
|
|
2005
|
-
},
|
|
2006
|
-
controls:
|
|
2005
|
+
}, Zt = "oraculo__OraculoSeccionEventoCombinadas-module__controls___Zsta4", eo = {
|
|
2006
|
+
controls: Zt
|
|
2007
2007
|
};
|
|
2008
|
-
function
|
|
2008
|
+
function to({
|
|
2009
2009
|
items: t,
|
|
2010
2010
|
title: n = "Combinadas del Olimpo",
|
|
2011
2011
|
iconUrl: r = "https://stg-www.contodobet.com/static/img/landing/EventoCombinada/rayoIcon.svg",
|
|
2012
2012
|
onViewMore: i,
|
|
2013
|
-
className:
|
|
2013
|
+
className: d = ""
|
|
2014
2014
|
}) {
|
|
2015
|
-
const o =
|
|
2016
|
-
var
|
|
2017
|
-
(
|
|
2015
|
+
const o = U(null), [a, u] = A({ isStart: !0, isEnd: !1 }), [p, h] = A([]), _ = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group/prepackcoupon.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764284658793&prePackCouponTags=CUSTOM", k = () => {
|
|
2016
|
+
var f;
|
|
2017
|
+
(f = o.current) == null || f.prev();
|
|
2018
2018
|
}, s = () => {
|
|
2019
|
-
var
|
|
2020
|
-
(
|
|
2019
|
+
var f;
|
|
2020
|
+
(f = o.current) == null || f.next();
|
|
2021
2021
|
}, c = () => {
|
|
2022
|
-
|
|
2022
|
+
It();
|
|
2023
2023
|
};
|
|
2024
|
-
async function
|
|
2025
|
-
var
|
|
2024
|
+
async function g() {
|
|
2025
|
+
var f, E, P;
|
|
2026
2026
|
try {
|
|
2027
|
-
const
|
|
2028
|
-
if (!
|
|
2027
|
+
const S = await (await fetch(_)).json(), B = (P = (E = (f = S == null ? void 0 : S.group) == null ? void 0 : f.groups) == null ? void 0 : E[0]) == null ? void 0 : P.id;
|
|
2028
|
+
if (!B) {
|
|
2029
2029
|
console.error("Could not extract group ID");
|
|
2030
2030
|
return;
|
|
2031
2031
|
}
|
|
2032
|
-
const
|
|
2033
|
-
|
|
2034
|
-
|
|
2032
|
+
const m = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${B}.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764283566783&prePackCouponTags=CUSTOM`, y = await (await fetch(m)).json();
|
|
2033
|
+
h(
|
|
2034
|
+
O(y.events, y.betOffers, y.prePackCoupons)
|
|
2035
2035
|
);
|
|
2036
2036
|
} catch (T) {
|
|
2037
2037
|
console.error("loadDataEventSpecial error:", T);
|
|
2038
2038
|
}
|
|
2039
2039
|
}
|
|
2040
|
-
function
|
|
2040
|
+
function O(f, E, P) {
|
|
2041
2041
|
const T = [];
|
|
2042
|
-
for (const
|
|
2043
|
-
const
|
|
2044
|
-
var
|
|
2045
|
-
|
|
2046
|
-
const
|
|
2047
|
-
(W) =>
|
|
2042
|
+
for (const S of P) {
|
|
2043
|
+
const B = C([S]), m = x(S), b = E.reduce((y, v) => {
|
|
2044
|
+
var I, R;
|
|
2045
|
+
y[v.eventId] || (y[v.eventId] = []);
|
|
2046
|
+
const w = v.outcomes.filter(
|
|
2047
|
+
(W) => B.has(W.id)
|
|
2048
2048
|
);
|
|
2049
|
-
if (
|
|
2049
|
+
if (w.length > 0) {
|
|
2050
2050
|
const W = Array.from(
|
|
2051
|
-
(
|
|
2052
|
-
),
|
|
2053
|
-
...
|
|
2054
|
-
position: W.indexOf(
|
|
2051
|
+
(R = (I = m == null ? void 0 : m[0]) == null ? void 0 : I.requiredOutcomeIds) != null ? R : []
|
|
2052
|
+
), G = w.map((j) => ({
|
|
2053
|
+
...j,
|
|
2054
|
+
position: W.indexOf(j.id)
|
|
2055
2055
|
}));
|
|
2056
|
-
|
|
2057
|
-
...
|
|
2058
|
-
outcomes:
|
|
2056
|
+
y[v.eventId].push({
|
|
2057
|
+
...v,
|
|
2058
|
+
outcomes: G
|
|
2059
2059
|
});
|
|
2060
2060
|
}
|
|
2061
|
-
return
|
|
2061
|
+
return y;
|
|
2062
2062
|
}, {});
|
|
2063
|
-
|
|
2064
|
-
if (
|
|
2065
|
-
const
|
|
2066
|
-
let
|
|
2067
|
-
for (const
|
|
2068
|
-
if ([...
|
|
2069
|
-
|
|
2063
|
+
f.forEach((y) => {
|
|
2064
|
+
if (y.id !== S.prePackCouponRows[0].eventId) return;
|
|
2065
|
+
const v = B;
|
|
2066
|
+
let w = null;
|
|
2067
|
+
for (const I of m)
|
|
2068
|
+
if ([...I.requiredOutcomeIds].every((W) => v.has(W))) {
|
|
2069
|
+
w = I.decimal;
|
|
2070
2070
|
break;
|
|
2071
2071
|
}
|
|
2072
2072
|
T.push({
|
|
2073
|
-
...
|
|
2074
|
-
combinadoTotal:
|
|
2075
|
-
betoffers:
|
|
2076
|
-
couponId:
|
|
2073
|
+
...y,
|
|
2074
|
+
combinadoTotal: w,
|
|
2075
|
+
betoffers: b[y.id] || [],
|
|
2076
|
+
couponId: S.id
|
|
2077
2077
|
// optional for tracking
|
|
2078
2078
|
});
|
|
2079
2079
|
});
|
|
2080
2080
|
}
|
|
2081
2081
|
return T;
|
|
2082
2082
|
}
|
|
2083
|
-
function
|
|
2083
|
+
function x(f) {
|
|
2084
2084
|
var P;
|
|
2085
|
-
const
|
|
2086
|
-
for (const T of
|
|
2085
|
+
const E = [];
|
|
2086
|
+
for (const T of f.prePackCouponRows)
|
|
2087
2087
|
if (T.type === "BET_BUILDER" && ((P = T.group) != null && P.groups)) {
|
|
2088
|
-
const
|
|
2089
|
-
T.group.groups.forEach((
|
|
2090
|
-
var
|
|
2091
|
-
(
|
|
2092
|
-
}),
|
|
2093
|
-
requiredOutcomeIds:
|
|
2088
|
+
const S = /* @__PURE__ */ new Set();
|
|
2089
|
+
T.group.groups.forEach((B) => {
|
|
2090
|
+
var m;
|
|
2091
|
+
(m = B.outcomes) == null || m.forEach((b) => S.add(b.id));
|
|
2092
|
+
}), E.push({
|
|
2093
|
+
requiredOutcomeIds: S,
|
|
2094
2094
|
decimal: T.odds.decimal
|
|
2095
2095
|
});
|
|
2096
2096
|
}
|
|
2097
|
-
return
|
|
2097
|
+
return E;
|
|
2098
2098
|
}
|
|
2099
|
-
function C(
|
|
2099
|
+
function C(f) {
|
|
2100
2100
|
var P;
|
|
2101
|
-
const
|
|
2102
|
-
for (const T of
|
|
2103
|
-
for (const
|
|
2104
|
-
|
|
2105
|
-
var
|
|
2106
|
-
(
|
|
2107
|
-
}),
|
|
2108
|
-
return
|
|
2101
|
+
const E = /* @__PURE__ */ new Set();
|
|
2102
|
+
for (const T of f)
|
|
2103
|
+
for (const S of T.prePackCouponRows)
|
|
2104
|
+
S.type === "BET_BUILDER" && ((P = S.group) != null && P.groups) && S.group.groups.forEach((B) => {
|
|
2105
|
+
var m;
|
|
2106
|
+
(m = B.outcomes) == null || m.forEach((b) => E.add(b.id));
|
|
2107
|
+
}), S.type === "SIMPLE" && S.outcome && E.add(S.outcome.id);
|
|
2108
|
+
return E;
|
|
2109
2109
|
}
|
|
2110
|
-
|
|
2111
|
-
|
|
2110
|
+
Y(() => {
|
|
2111
|
+
g();
|
|
2112
2112
|
}, []);
|
|
2113
|
-
const N =
|
|
2114
|
-
return !
|
|
2113
|
+
const N = d || void 0;
|
|
2114
|
+
return !p || p.length === 0 ? null : /* @__PURE__ */ e("section", { className: N, style: {
|
|
2115
2115
|
// paddingLeft: 16,
|
|
2116
2116
|
// paddingRight: 16,
|
|
2117
2117
|
width: "100%",
|
|
2118
2118
|
boxSizing: "border-box"
|
|
2119
|
-
}, children: /* @__PURE__ */ l(
|
|
2120
|
-
/* @__PURE__ */ l(
|
|
2121
|
-
/* @__PURE__ */ e(
|
|
2122
|
-
/* @__PURE__ */ l("div", { className:
|
|
2123
|
-
/* @__PURE__ */ l(
|
|
2119
|
+
}, children: /* @__PURE__ */ l(M, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
2120
|
+
/* @__PURE__ */ l(H, { spacing: 1.5, columns: "1fr auto ", justify: "start", children: [
|
|
2121
|
+
/* @__PURE__ */ e(q, { title: n, iconUrl: r, size: "md" }),
|
|
2122
|
+
/* @__PURE__ */ l("div", { className: eo.controls, children: [
|
|
2123
|
+
/* @__PURE__ */ l(H, { spacing: 1, columns: "auto auto", children: [
|
|
2124
2124
|
/* @__PURE__ */ e(
|
|
2125
|
-
|
|
2125
|
+
L,
|
|
2126
2126
|
{
|
|
2127
2127
|
ariaLabel: "Anterior",
|
|
2128
2128
|
variant: "secondary",
|
|
@@ -2133,7 +2133,7 @@ function eo({
|
|
|
2133
2133
|
}
|
|
2134
2134
|
),
|
|
2135
2135
|
/* @__PURE__ */ e(
|
|
2136
|
-
|
|
2136
|
+
L,
|
|
2137
2137
|
{
|
|
2138
2138
|
ariaLabel: "Siguiente",
|
|
2139
2139
|
variant: "secondary",
|
|
@@ -2144,14 +2144,14 @@ function eo({
|
|
|
2144
2144
|
}
|
|
2145
2145
|
)
|
|
2146
2146
|
] }),
|
|
2147
|
-
/* @__PURE__ */ e(
|
|
2147
|
+
/* @__PURE__ */ e(L, { variant: "secondary", onClick: c, children: "Ver más" })
|
|
2148
2148
|
] })
|
|
2149
2149
|
] }),
|
|
2150
2150
|
/* @__PURE__ */ e(
|
|
2151
|
-
|
|
2151
|
+
J,
|
|
2152
2152
|
{
|
|
2153
2153
|
ref: o,
|
|
2154
|
-
items:
|
|
2154
|
+
items: p.filter((f) => f.combinadoTotal !== null),
|
|
2155
2155
|
perPage: void 0,
|
|
2156
2156
|
gap: "16px",
|
|
2157
2157
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
@@ -2159,125 +2159,125 @@ function eo({
|
|
|
2159
2159
|
breakpoints: {
|
|
2160
2160
|
768: { perPage: 1.2, gap: "12px", padding: { left: "0px", right: "0px" } }
|
|
2161
2161
|
},
|
|
2162
|
-
renderItem: (
|
|
2163
|
-
onMove: ({ isStart:
|
|
2162
|
+
renderItem: (f) => /* @__PURE__ */ e(Nt, { event: f }),
|
|
2163
|
+
onMove: ({ isStart: f, isEnd: E }) => u({ isStart: f, isEnd: E })
|
|
2164
2164
|
}
|
|
2165
2165
|
)
|
|
2166
2166
|
] }) });
|
|
2167
2167
|
}
|
|
2168
|
-
function
|
|
2168
|
+
function oo({}) {
|
|
2169
2169
|
return /* @__PURE__ */ e(
|
|
2170
2170
|
"div",
|
|
2171
2171
|
{
|
|
2172
|
-
className:
|
|
2173
|
-
children: /* @__PURE__ */ l(
|
|
2174
|
-
/* @__PURE__ */ l(
|
|
2175
|
-
/* @__PURE__ */ e(
|
|
2176
|
-
/* @__PURE__ */ e(
|
|
2172
|
+
className: Be.cardWrapper,
|
|
2173
|
+
children: /* @__PURE__ */ l(M, { direction: "column", spacing: 1, children: [
|
|
2174
|
+
/* @__PURE__ */ l(M, { spacing: 1, direction: "row", children: [
|
|
2175
|
+
/* @__PURE__ */ e(F, { variant: "text", width: "60%", height: 24 }),
|
|
2176
|
+
/* @__PURE__ */ e(F, { variant: "text", width: "39%", height: 24 })
|
|
2177
2177
|
] }),
|
|
2178
|
-
/* @__PURE__ */ l(
|
|
2179
|
-
/* @__PURE__ */ e(
|
|
2180
|
-
/* @__PURE__ */ e(
|
|
2181
|
-
/* @__PURE__ */ e(
|
|
2178
|
+
/* @__PURE__ */ l(M, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
2179
|
+
/* @__PURE__ */ e(F, { variant: "circular", width: 32, height: 40 }),
|
|
2180
|
+
/* @__PURE__ */ e(F, { variant: "text", width: 40, height: 40 }),
|
|
2181
|
+
/* @__PURE__ */ e(F, { variant: "circular", width: 32, height: 40 })
|
|
2182
2182
|
] }),
|
|
2183
|
-
/* @__PURE__ */ l(
|
|
2184
|
-
/* @__PURE__ */ e(
|
|
2185
|
-
/* @__PURE__ */ e(
|
|
2186
|
-
/* @__PURE__ */ e(
|
|
2183
|
+
/* @__PURE__ */ l(M, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
2184
|
+
/* @__PURE__ */ e(F, { variant: "text", width: 32, height: 16 }),
|
|
2185
|
+
/* @__PURE__ */ e(F, { variant: "text", width: 40, height: 16 }),
|
|
2186
|
+
/* @__PURE__ */ e(F, { variant: "text", width: 32, height: 16 })
|
|
2187
2187
|
] }),
|
|
2188
|
-
/* @__PURE__ */ l(
|
|
2189
|
-
/* @__PURE__ */ e(
|
|
2190
|
-
/* @__PURE__ */ e(
|
|
2191
|
-
/* @__PURE__ */ e(
|
|
2188
|
+
/* @__PURE__ */ l(M, { spacing: 2, direction: "row", children: [
|
|
2189
|
+
/* @__PURE__ */ e(F, { variant: "rounded", width: 88, height: 16 }),
|
|
2190
|
+
/* @__PURE__ */ e(F, { variant: "rounded", width: 88, height: 16 }),
|
|
2191
|
+
/* @__PURE__ */ e(F, { variant: "rounded", width: 88, height: 16 })
|
|
2192
2192
|
] }),
|
|
2193
|
-
/* @__PURE__ */ l(
|
|
2194
|
-
/* @__PURE__ */ e(
|
|
2195
|
-
/* @__PURE__ */ e(
|
|
2196
|
-
/* @__PURE__ */ e(
|
|
2193
|
+
/* @__PURE__ */ l(M, { spacing: 2, direction: "row", children: [
|
|
2194
|
+
/* @__PURE__ */ e(F, { variant: "rounded", width: 88, height: 32 }),
|
|
2195
|
+
/* @__PURE__ */ e(F, { variant: "rounded", width: 88, height: 32 }),
|
|
2196
|
+
/* @__PURE__ */ e(F, { variant: "rounded", width: 88, height: 32 })
|
|
2197
2197
|
] })
|
|
2198
2198
|
] })
|
|
2199
2199
|
}
|
|
2200
2200
|
);
|
|
2201
2201
|
}
|
|
2202
|
-
const
|
|
2203
|
-
fadeWrapper:
|
|
2202
|
+
const no = "oraculo__FadeItemWrapper-module__fadeWrapper___kFOH4", ro = {
|
|
2203
|
+
fadeWrapper: no
|
|
2204
2204
|
};
|
|
2205
2205
|
function re({ children: t }) {
|
|
2206
|
-
return /* @__PURE__ */ e("div", { className:
|
|
2206
|
+
return /* @__PURE__ */ e("div", { className: ro.fadeWrapper, children: t });
|
|
2207
2207
|
}
|
|
2208
|
-
function
|
|
2208
|
+
function ao({
|
|
2209
2209
|
items: t,
|
|
2210
2210
|
title: n = "En vivo",
|
|
2211
2211
|
iconUrl: r = "https://stg-www.contodobet.com/static/img/landing/EventoEnVivo/icon.svg",
|
|
2212
2212
|
onViewMore: i,
|
|
2213
|
-
className:
|
|
2213
|
+
className: d = ""
|
|
2214
2214
|
}) {
|
|
2215
|
-
const o = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football/all/all/all/in-play.json?channel_id=3&channel_id=3&client_id=200&client_id=200&competitionId=undefined&lang=es_PE&lang=es_PE&market=PE&market=PE&useCombined=true&useCombinedLive=true", a =
|
|
2215
|
+
const o = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football/all/all/all/in-play.json?channel_id=3&channel_id=3&client_id=200&client_id=200&competitionId=undefined&lang=es_PE&lang=es_PE&market=PE&market=PE&useCombined=true&useCombinedLive=true", a = U(null), [u, p] = A({ isStart: !0, isEnd: !1 }), [h, _] = A([]), k = () => {
|
|
2216
2216
|
var C;
|
|
2217
2217
|
(C = a.current) == null || C.prev();
|
|
2218
2218
|
}, s = () => {
|
|
2219
2219
|
var C;
|
|
2220
2220
|
(C = a.current) == null || C.next();
|
|
2221
2221
|
}, c = () => {
|
|
2222
|
-
|
|
2222
|
+
$t();
|
|
2223
2223
|
};
|
|
2224
|
-
async function
|
|
2224
|
+
async function g() {
|
|
2225
2225
|
try {
|
|
2226
2226
|
const N = await (await fetch(o)).json();
|
|
2227
|
-
|
|
2227
|
+
_(N.events);
|
|
2228
2228
|
} catch (C) {
|
|
2229
2229
|
console.error(C);
|
|
2230
2230
|
}
|
|
2231
2231
|
}
|
|
2232
|
-
|
|
2233
|
-
|
|
2232
|
+
Y(() => {
|
|
2233
|
+
g();
|
|
2234
2234
|
const C = setInterval(() => {
|
|
2235
|
-
|
|
2235
|
+
g();
|
|
2236
2236
|
}, 2e4);
|
|
2237
2237
|
return () => clearInterval(C);
|
|
2238
2238
|
}, []);
|
|
2239
|
-
const
|
|
2240
|
-
return /* @__PURE__ */ e("section", { className:
|
|
2239
|
+
const O = d || void 0, x = !h || h.length === 0;
|
|
2240
|
+
return /* @__PURE__ */ e("section", { className: O, style: {
|
|
2241
2241
|
// paddingLeft: 16,
|
|
2242
2242
|
// paddingRight: 16,
|
|
2243
2243
|
width: "100%",
|
|
2244
2244
|
boxSizing: "border-box"
|
|
2245
|
-
}, children: /* @__PURE__ */ l(
|
|
2246
|
-
/* @__PURE__ */ l(
|
|
2247
|
-
/* @__PURE__ */ e(
|
|
2245
|
+
}, children: /* @__PURE__ */ l(M, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
2246
|
+
/* @__PURE__ */ l(H, { spacing: 1.5, columns: "1fr auto ", justify: "start", children: [
|
|
2247
|
+
/* @__PURE__ */ e(q, { title: n, iconUrl: r, size: "md" }),
|
|
2248
2248
|
/* @__PURE__ */ l("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
|
|
2249
|
-
/* @__PURE__ */ l(
|
|
2249
|
+
/* @__PURE__ */ l(H, { spacing: 1, columns: "auto auto", children: [
|
|
2250
2250
|
/* @__PURE__ */ e(
|
|
2251
|
-
|
|
2251
|
+
L,
|
|
2252
2252
|
{
|
|
2253
2253
|
ariaLabel: "Anterior",
|
|
2254
2254
|
variant: "secondary",
|
|
2255
2255
|
iconOnly: !0,
|
|
2256
2256
|
leftIcon: /* @__PURE__ */ e(de, {}),
|
|
2257
2257
|
onClick: k,
|
|
2258
|
-
disabled:
|
|
2258
|
+
disabled: u.isStart
|
|
2259
2259
|
}
|
|
2260
2260
|
),
|
|
2261
2261
|
/* @__PURE__ */ e(
|
|
2262
|
-
|
|
2262
|
+
L,
|
|
2263
2263
|
{
|
|
2264
2264
|
ariaLabel: "Siguiente",
|
|
2265
2265
|
variant: "secondary",
|
|
2266
2266
|
iconOnly: !0,
|
|
2267
2267
|
rightIcon: /* @__PURE__ */ e(ue, {}),
|
|
2268
2268
|
onClick: s,
|
|
2269
|
-
disabled:
|
|
2269
|
+
disabled: u.isEnd
|
|
2270
2270
|
}
|
|
2271
2271
|
)
|
|
2272
2272
|
] }),
|
|
2273
|
-
/* @__PURE__ */ e(
|
|
2273
|
+
/* @__PURE__ */ e(L, { variant: "secondary", onClick: c, children: "Ver más" })
|
|
2274
2274
|
] })
|
|
2275
2275
|
] }),
|
|
2276
2276
|
/* @__PURE__ */ e(
|
|
2277
|
-
|
|
2277
|
+
J,
|
|
2278
2278
|
{
|
|
2279
2279
|
ref: a,
|
|
2280
|
-
items:
|
|
2280
|
+
items: x ? Array(4).fill({}) : h == null ? void 0 : h.filter((C) => C.event.sport === "FOOTBALL").sort(
|
|
2281
2281
|
(C, N) => new Date(N.event.start).getTime() - new Date(C.event.start).getTime()
|
|
2282
2282
|
),
|
|
2283
2283
|
perPage: void 0,
|
|
@@ -2288,159 +2288,159 @@ function ro({
|
|
|
2288
2288
|
768: { gap: "8px", focus: "center" },
|
|
2289
2289
|
1024: { gap: "10px", focus: "center" }
|
|
2290
2290
|
},
|
|
2291
|
-
renderItem: (C) =>
|
|
2292
|
-
onMove: ({ isStart: C, isEnd: N }) =>
|
|
2291
|
+
renderItem: (C) => x ? /* @__PURE__ */ e(re, { children: /* @__PURE__ */ e(oo, {}) }) : /* @__PURE__ */ e(re, { children: /* @__PURE__ */ e(Bt, { ...C }) }),
|
|
2292
|
+
onMove: ({ isStart: C, isEnd: N }) => p({ isStart: C, isEnd: N })
|
|
2293
2293
|
}
|
|
2294
2294
|
)
|
|
2295
2295
|
] }) });
|
|
2296
2296
|
}
|
|
2297
|
-
function
|
|
2298
|
-
return /* @__PURE__ */ l("div", { className:
|
|
2299
|
-
/* @__PURE__ */ e(
|
|
2300
|
-
/* @__PURE__ */ e("div", { className:
|
|
2301
|
-
/* @__PURE__ */ l(
|
|
2302
|
-
/* @__PURE__ */ e(
|
|
2303
|
-
/* @__PURE__ */ e(
|
|
2297
|
+
function io() {
|
|
2298
|
+
return /* @__PURE__ */ l("div", { className: X.cardContainer, children: [
|
|
2299
|
+
/* @__PURE__ */ e(Ne, { title: "" }),
|
|
2300
|
+
/* @__PURE__ */ e("div", { className: X.cardBackground, children: /* @__PURE__ */ l(M, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
2301
|
+
/* @__PURE__ */ l(M, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
2302
|
+
/* @__PURE__ */ e(F, { variant: "circular", width: 48, height: 48 }),
|
|
2303
|
+
/* @__PURE__ */ e(F, { variant: "circular", width: 48, height: 48 })
|
|
2304
2304
|
] }),
|
|
2305
|
-
/* @__PURE__ */ l(
|
|
2306
|
-
/* @__PURE__ */ l(
|
|
2307
|
-
/* @__PURE__ */ e(
|
|
2308
|
-
/* @__PURE__ */ e(
|
|
2305
|
+
/* @__PURE__ */ l(M, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
2306
|
+
/* @__PURE__ */ l(M, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
2307
|
+
/* @__PURE__ */ e(F, { variant: "text", width: 80, height: 12 }),
|
|
2308
|
+
/* @__PURE__ */ e(F, { variant: "text", width: 80, height: 12 })
|
|
2309
2309
|
] }),
|
|
2310
|
-
/* @__PURE__ */ e(
|
|
2311
|
-
/* @__PURE__ */ l(
|
|
2312
|
-
/* @__PURE__ */ e(
|
|
2313
|
-
/* @__PURE__ */ e(
|
|
2314
|
-
/* @__PURE__ */ e(
|
|
2310
|
+
/* @__PURE__ */ e(M, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ e(F, { variant: "text", width: 160, height: 12 }) }),
|
|
2311
|
+
/* @__PURE__ */ l(M, { direction: "row", spacing: 1, children: [
|
|
2312
|
+
/* @__PURE__ */ e(F, { variant: "text", width: 80, height: 16 }),
|
|
2313
|
+
/* @__PURE__ */ e(F, { variant: "text", width: 80, height: 16 }),
|
|
2314
|
+
/* @__PURE__ */ e(F, { variant: "text", width: 80, height: 16 })
|
|
2315
2315
|
] }),
|
|
2316
|
-
/* @__PURE__ */ e("div", { className:
|
|
2317
|
-
/* @__PURE__ */ e(
|
|
2318
|
-
/* @__PURE__ */ e(
|
|
2319
|
-
/* @__PURE__ */ e(
|
|
2316
|
+
/* @__PURE__ */ e("div", { className: X.jugadas, children: /* @__PURE__ */ l(M, { direction: "row", spacing: 1, children: [
|
|
2317
|
+
/* @__PURE__ */ e(F, { variant: "rounded", width: 80, height: 32 }),
|
|
2318
|
+
/* @__PURE__ */ e(F, { variant: "rounded", width: 80, height: 32 }),
|
|
2319
|
+
/* @__PURE__ */ e(F, { variant: "rounded", width: 80, height: 32 })
|
|
2320
2320
|
] }) })
|
|
2321
2321
|
] })
|
|
2322
2322
|
] }) })
|
|
2323
2323
|
] });
|
|
2324
2324
|
}
|
|
2325
|
-
const
|
|
2326
|
-
wrapper:
|
|
2327
|
-
container:
|
|
2328
|
-
buttonWrapper:
|
|
2325
|
+
const so = "oraculo__OraculoSeccionEventoSemana-module__wrapper___eqVq-", co = "oraculo__OraculoSeccionEventoSemana-module__container___5yFQs", lo = "oraculo__OraculoSeccionEventoSemana-module__buttonWrapper___-6IDT", le = {
|
|
2326
|
+
wrapper: so,
|
|
2327
|
+
container: co,
|
|
2328
|
+
buttonWrapper: lo
|
|
2329
2329
|
};
|
|
2330
|
-
function
|
|
2330
|
+
function uo({
|
|
2331
2331
|
items: t,
|
|
2332
2332
|
title: n = "En vivo",
|
|
2333
2333
|
iconUrl: r,
|
|
2334
2334
|
onViewMore: i,
|
|
2335
|
-
className:
|
|
2335
|
+
className: d = ""
|
|
2336
2336
|
}) {
|
|
2337
|
-
const o = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE", a =
|
|
2338
|
-
function k(
|
|
2339
|
-
return [...
|
|
2340
|
-
(
|
|
2337
|
+
const o = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE", a = U(null), [u, p] = A({ isStart: !0, isEnd: !1 }), [h, _] = A([]);
|
|
2338
|
+
function k(f) {
|
|
2339
|
+
return [...f].sort(
|
|
2340
|
+
(E, P) => new Date(E.start).getTime() - new Date(P.start).getTime()
|
|
2341
2341
|
);
|
|
2342
2342
|
}
|
|
2343
|
-
function s(
|
|
2344
|
-
const
|
|
2345
|
-
return
|
|
2343
|
+
function s(f) {
|
|
2344
|
+
const E = /* @__PURE__ */ new Date(), P = new Date(E.getTime() + 10080 * 60 * 1e3);
|
|
2345
|
+
return f.filter((T) => {
|
|
2346
2346
|
if (!T.start) return !1;
|
|
2347
|
-
const
|
|
2348
|
-
return
|
|
2347
|
+
const S = new Date(T.start);
|
|
2348
|
+
return S >= E && S <= P;
|
|
2349
2349
|
});
|
|
2350
2350
|
}
|
|
2351
2351
|
const c = () => {
|
|
2352
|
-
|
|
2352
|
+
Ot();
|
|
2353
2353
|
};
|
|
2354
|
-
async function
|
|
2354
|
+
async function g() {
|
|
2355
2355
|
try {
|
|
2356
2356
|
const P = (await (await fetch(o)).json()).group.groups.find(
|
|
2357
|
-
(
|
|
2357
|
+
(b) => b.englishName === "Football"
|
|
2358
2358
|
);
|
|
2359
2359
|
if (!P || !Array.isArray(P.groups)) {
|
|
2360
2360
|
console.error("Football groups not found");
|
|
2361
2361
|
return;
|
|
2362
2362
|
}
|
|
2363
|
-
const
|
|
2364
|
-
const
|
|
2365
|
-
if (
|
|
2366
|
-
const
|
|
2363
|
+
const S = P.groups.slice(0, 5), B = (b) => {
|
|
2364
|
+
const y = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football";
|
|
2365
|
+
if (b.groups && b.groups.length > 0) {
|
|
2366
|
+
const v = b.groups[0];
|
|
2367
2367
|
return [
|
|
2368
|
-
`${
|
|
2368
|
+
`${y}/${b.termKey}/${v.termKey}/all/matches.json?channel_id=1&channel_id=1&client_id=200&client_id=200&competitionId=undefined&lang=es_PE&lang=es_PE&market=PE&market=PE&useCombined=true&useCombinedLive=true`
|
|
2369
2369
|
];
|
|
2370
2370
|
}
|
|
2371
2371
|
return [
|
|
2372
|
-
`${
|
|
2372
|
+
`${y}/${b.termKey}/all/all/matches.json?channel_id=1&channel_id=1&client_id=200&client_id=200&competitionId=undefined&lang=es_PE&lang=es_PE&market=PE&market=PE&useCombined=true&useCombinedLive=true`
|
|
2373
2373
|
];
|
|
2374
|
-
},
|
|
2375
|
-
|
|
2376
|
-
} catch (
|
|
2377
|
-
console.error(
|
|
2374
|
+
}, m = S.flatMap(B);
|
|
2375
|
+
O(m);
|
|
2376
|
+
} catch (f) {
|
|
2377
|
+
console.error(f);
|
|
2378
2378
|
}
|
|
2379
2379
|
}
|
|
2380
|
-
async function
|
|
2380
|
+
async function O(f) {
|
|
2381
2381
|
try {
|
|
2382
|
-
const
|
|
2383
|
-
|
|
2382
|
+
const E = await Promise.all(
|
|
2383
|
+
f.map((B) => fetch(B).then((m) => m.json()))
|
|
2384
2384
|
);
|
|
2385
2385
|
let P = [], T = [];
|
|
2386
|
-
|
|
2387
|
-
|
|
2386
|
+
E.forEach((B) => {
|
|
2387
|
+
B.events && (P.push(...B.events.map((m) => m.event)), T.push(...B.events.flatMap((m) => m.betOffers || [])));
|
|
2388
2388
|
});
|
|
2389
|
-
const
|
|
2390
|
-
|
|
2391
|
-
} catch (
|
|
2392
|
-
console.error("Error loading events:",
|
|
2389
|
+
const S = x(P, T);
|
|
2390
|
+
_(k(s(S)));
|
|
2391
|
+
} catch (E) {
|
|
2392
|
+
console.error("Error loading events:", E);
|
|
2393
2393
|
}
|
|
2394
2394
|
}
|
|
2395
|
-
function
|
|
2396
|
-
const T =
|
|
2397
|
-
var
|
|
2398
|
-
return ((
|
|
2399
|
-
}).reduce((
|
|
2400
|
-
return
|
|
2401
|
-
...
|
|
2402
|
-
outcome: T[
|
|
2395
|
+
function x(f, E) {
|
|
2396
|
+
const T = E.filter((S) => {
|
|
2397
|
+
var B;
|
|
2398
|
+
return ((B = S.betOfferType) == null ? void 0 : B.id) === 2;
|
|
2399
|
+
}).reduce((S, B) => (S[B.eventId] || (S[B.eventId] = []), S[B.eventId].push(B), S), {});
|
|
2400
|
+
return f.filter((S) => T[S.id]).map((S) => ({
|
|
2401
|
+
...S,
|
|
2402
|
+
outcome: T[S.id]
|
|
2403
2403
|
}));
|
|
2404
2404
|
}
|
|
2405
|
-
|
|
2406
|
-
t &&
|
|
2405
|
+
Y(() => {
|
|
2406
|
+
t && g();
|
|
2407
2407
|
}, [t]);
|
|
2408
|
-
const C =
|
|
2408
|
+
const C = d || void 0, N = !h || h.length === 0;
|
|
2409
2409
|
return /* @__PURE__ */ e("section", { className: C, style: {
|
|
2410
2410
|
// paddingLeft: 16,
|
|
2411
2411
|
width: "100%",
|
|
2412
2412
|
boxSizing: "border-box"
|
|
2413
2413
|
}, children: /* @__PURE__ */ l("div", { className: le.wrapper, children: [
|
|
2414
|
-
/* @__PURE__ */ e("div", { className: le.container, children: /* @__PURE__ */ l(
|
|
2415
|
-
/* @__PURE__ */ e(
|
|
2416
|
-
/* @__PURE__ */ e("div", { className: le.buttonWrapper, children: /* @__PURE__ */ e(
|
|
2414
|
+
/* @__PURE__ */ e("div", { className: le.container, children: /* @__PURE__ */ l(M, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
2415
|
+
/* @__PURE__ */ e(q, { title: "Eventos de la semana" }),
|
|
2416
|
+
/* @__PURE__ */ e("div", { className: le.buttonWrapper, children: /* @__PURE__ */ e(L, { variant: "secondary", size: "lg", fullWidth: !0, onClick: () => {
|
|
2417
2417
|
c();
|
|
2418
2418
|
}, children: "Ver más" }) })
|
|
2419
2419
|
] }) }),
|
|
2420
2420
|
/* @__PURE__ */ e("div", { style: { minWidth: "180px" }, children: /* @__PURE__ */ e(
|
|
2421
|
-
|
|
2421
|
+
J,
|
|
2422
2422
|
{
|
|
2423
2423
|
ref: a,
|
|
2424
|
-
items: N ? Array(6).fill({}) :
|
|
2424
|
+
items: N ? Array(6).fill({}) : h,
|
|
2425
2425
|
perPage: 3.5,
|
|
2426
2426
|
gap: "16px",
|
|
2427
2427
|
options: { autoWidth: !0, trimSpace: !0 },
|
|
2428
2428
|
breakpoints: {
|
|
2429
2429
|
1024: { perPage: 1.4, gap: "8px", focus: "center", padding: { left: "8px", right: "8px" } }
|
|
2430
2430
|
},
|
|
2431
|
-
renderItem: (
|
|
2432
|
-
onMove: ({ isStart:
|
|
2431
|
+
renderItem: (f) => N ? /* @__PURE__ */ e(re, { children: /* @__PURE__ */ e(io, {}) }) : /* @__PURE__ */ e(re, { children: /* @__PURE__ */ e(At, { event: f }) }),
|
|
2432
|
+
onMove: ({ isStart: f, isEnd: E }) => p({ isStart: f, isEnd: E })
|
|
2433
2433
|
}
|
|
2434
2434
|
) })
|
|
2435
2435
|
] }) });
|
|
2436
2436
|
}
|
|
2437
|
-
function
|
|
2437
|
+
function po({
|
|
2438
2438
|
backgrounds: t,
|
|
2439
2439
|
items: n
|
|
2440
2440
|
}) {
|
|
2441
|
-
const [r, i] =
|
|
2441
|
+
const [r, i] = A(0), d = (t == null ? void 0 : t.length) || 1;
|
|
2442
2442
|
return /* @__PURE__ */ l(
|
|
2443
|
-
|
|
2443
|
+
z,
|
|
2444
2444
|
{
|
|
2445
2445
|
component: "section",
|
|
2446
2446
|
sx: {
|
|
@@ -2454,7 +2454,7 @@ function uo({
|
|
|
2454
2454
|
},
|
|
2455
2455
|
children: [
|
|
2456
2456
|
/* @__PURE__ */ l(
|
|
2457
|
-
|
|
2457
|
+
z,
|
|
2458
2458
|
{
|
|
2459
2459
|
sx: {
|
|
2460
2460
|
position: "relative",
|
|
@@ -2464,7 +2464,7 @@ function uo({
|
|
|
2464
2464
|
},
|
|
2465
2465
|
children: [
|
|
2466
2466
|
/* @__PURE__ */ e(
|
|
2467
|
-
|
|
2467
|
+
J,
|
|
2468
2468
|
{
|
|
2469
2469
|
items: t,
|
|
2470
2470
|
perPage: 0,
|
|
@@ -2482,7 +2482,7 @@ function uo({
|
|
|
2482
2482
|
renderItem: (o) => {
|
|
2483
2483
|
var a;
|
|
2484
2484
|
return /* @__PURE__ */ l(
|
|
2485
|
-
|
|
2485
|
+
z,
|
|
2486
2486
|
{
|
|
2487
2487
|
sx: {
|
|
2488
2488
|
position: "relative",
|
|
@@ -2490,7 +2490,7 @@ function uo({
|
|
|
2490
2490
|
},
|
|
2491
2491
|
children: [
|
|
2492
2492
|
/* @__PURE__ */ l(
|
|
2493
|
-
|
|
2493
|
+
z,
|
|
2494
2494
|
{
|
|
2495
2495
|
component: "picture",
|
|
2496
2496
|
sx: { position: "absolute", inset: 0, lineHeight: 0 },
|
|
@@ -2510,7 +2510,7 @@ function uo({
|
|
|
2510
2510
|
}
|
|
2511
2511
|
),
|
|
2512
2512
|
/* @__PURE__ */ e(
|
|
2513
|
-
|
|
2513
|
+
z,
|
|
2514
2514
|
{
|
|
2515
2515
|
component: "img",
|
|
2516
2516
|
src: (a = o.fallbackSrc) != null ? a : o.desktopSrc,
|
|
@@ -2529,7 +2529,7 @@ function uo({
|
|
|
2529
2529
|
}
|
|
2530
2530
|
),
|
|
2531
2531
|
/* @__PURE__ */ e(
|
|
2532
|
-
|
|
2532
|
+
z,
|
|
2533
2533
|
{
|
|
2534
2534
|
sx: {
|
|
2535
2535
|
position: "absolute",
|
|
@@ -2554,7 +2554,7 @@ function uo({
|
|
|
2554
2554
|
}
|
|
2555
2555
|
),
|
|
2556
2556
|
/* @__PURE__ */ e(
|
|
2557
|
-
|
|
2557
|
+
z,
|
|
2558
2558
|
{
|
|
2559
2559
|
sx: {
|
|
2560
2560
|
position: "absolute",
|
|
@@ -2565,18 +2565,18 @@ function uo({
|
|
|
2565
2565
|
justifyContent: "center",
|
|
2566
2566
|
zIndex: 2
|
|
2567
2567
|
},
|
|
2568
|
-
children: /* @__PURE__ */ e(
|
|
2568
|
+
children: /* @__PURE__ */ e(Oe, { total: d, active: r })
|
|
2569
2569
|
}
|
|
2570
2570
|
)
|
|
2571
2571
|
]
|
|
2572
2572
|
}
|
|
2573
2573
|
),
|
|
2574
2574
|
/* @__PURE__ */ e(
|
|
2575
|
-
|
|
2575
|
+
z,
|
|
2576
2576
|
{
|
|
2577
2577
|
sx: {
|
|
2578
2578
|
position: "absolute",
|
|
2579
|
-
bottom: { xs:
|
|
2579
|
+
bottom: { xs: 0, sm: 12 },
|
|
2580
2580
|
left: 120,
|
|
2581
2581
|
right: 120,
|
|
2582
2582
|
"@media (max-width:1024px)": {
|
|
@@ -2585,8 +2585,7 @@ function uo({
|
|
|
2585
2585
|
},
|
|
2586
2586
|
backgroundColor: "#363636",
|
|
2587
2587
|
borderRadius: 2,
|
|
2588
|
-
|
|
2589
|
-
px: { xs: 1.5, md: 2 },
|
|
2588
|
+
p: 1.5,
|
|
2590
2589
|
display: "flex",
|
|
2591
2590
|
justifyContent: "space-around",
|
|
2592
2591
|
alignItems: "center",
|
|
@@ -2594,7 +2593,7 @@ function uo({
|
|
|
2594
2593
|
zIndex: 3
|
|
2595
2594
|
},
|
|
2596
2595
|
children: n == null ? void 0 : n.map((o) => /* @__PURE__ */ l(
|
|
2597
|
-
|
|
2596
|
+
z,
|
|
2598
2597
|
{
|
|
2599
2598
|
sx: {
|
|
2600
2599
|
display: "flex",
|
|
@@ -2614,7 +2613,7 @@ function uo({
|
|
|
2614
2613
|
},
|
|
2615
2614
|
children: [
|
|
2616
2615
|
o.icon && /* @__PURE__ */ e(
|
|
2617
|
-
|
|
2616
|
+
z,
|
|
2618
2617
|
{
|
|
2619
2618
|
component: "img",
|
|
2620
2619
|
src: o.icon,
|
|
@@ -2627,7 +2626,7 @@ function uo({
|
|
|
2627
2626
|
}
|
|
2628
2627
|
),
|
|
2629
2628
|
/* @__PURE__ */ e(
|
|
2630
|
-
|
|
2629
|
+
Ce,
|
|
2631
2630
|
{
|
|
2632
2631
|
sx: {
|
|
2633
2632
|
fontSize: { xs: 10, sm: 11, md: 12 },
|
|
@@ -2648,7 +2647,7 @@ function uo({
|
|
|
2648
2647
|
}
|
|
2649
2648
|
);
|
|
2650
2649
|
}
|
|
2651
|
-
const
|
|
2650
|
+
const mo = [
|
|
2652
2651
|
[
|
|
2653
2652
|
{ src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/IBK.svg", alt: "Interbank" },
|
|
2654
2653
|
{ src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/Yape.svg", alt: "Yape" }
|
|
@@ -2659,14 +2658,14 @@ const po = [
|
|
|
2659
2658
|
{ src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/niubiz.svg", alt: "Niubiz" }
|
|
2660
2659
|
]
|
|
2661
2660
|
];
|
|
2662
|
-
function
|
|
2661
|
+
function ho({
|
|
2663
2662
|
title: t = "Medios de pago",
|
|
2664
|
-
rows: n =
|
|
2663
|
+
rows: n = mo
|
|
2665
2664
|
}) {
|
|
2666
2665
|
const r = n.flat();
|
|
2667
|
-
return /* @__PURE__ */ l(
|
|
2666
|
+
return /* @__PURE__ */ l(z, { component: "section", "aria-labelledby": "mp-title", sx: { color: "#fff" }, children: [
|
|
2668
2667
|
/* @__PURE__ */ e(
|
|
2669
|
-
|
|
2668
|
+
Ce,
|
|
2670
2669
|
{
|
|
2671
2670
|
id: "mp-title",
|
|
2672
2671
|
variant: "h6",
|
|
@@ -2680,7 +2679,7 @@ function mo({
|
|
|
2680
2679
|
}
|
|
2681
2680
|
),
|
|
2682
2681
|
/* @__PURE__ */ e(
|
|
2683
|
-
|
|
2682
|
+
z,
|
|
2684
2683
|
{
|
|
2685
2684
|
sx: {
|
|
2686
2685
|
width: "288px",
|
|
@@ -2693,20 +2692,20 @@ function mo({
|
|
|
2693
2692
|
}
|
|
2694
2693
|
}
|
|
2695
2694
|
),
|
|
2696
|
-
/* @__PURE__ */ e(
|
|
2697
|
-
|
|
2695
|
+
/* @__PURE__ */ e(z, { sx: { display: { xs: "block", md: "none" } }, children: n.map((i, d) => /* @__PURE__ */ e(
|
|
2696
|
+
Ee,
|
|
2698
2697
|
{
|
|
2699
2698
|
direction: "row",
|
|
2700
2699
|
justifyContent: "center",
|
|
2701
2700
|
alignItems: "center",
|
|
2702
2701
|
gap: 2.5,
|
|
2703
2702
|
flexWrap: "wrap",
|
|
2704
|
-
children: i.map((o) => /* @__PURE__ */ e(
|
|
2703
|
+
children: i.map((o) => /* @__PURE__ */ e(fe, { ...o }, `${o.src}-${o.alt}`))
|
|
2705
2704
|
},
|
|
2706
|
-
|
|
2705
|
+
d
|
|
2707
2706
|
)) }),
|
|
2708
2707
|
/* @__PURE__ */ e(
|
|
2709
|
-
|
|
2708
|
+
z,
|
|
2710
2709
|
{
|
|
2711
2710
|
sx: {
|
|
2712
2711
|
mt: 3,
|
|
@@ -2717,257 +2716,258 @@ function mo({
|
|
|
2717
2716
|
gridTemplateColumns: { md: "repeat(auto-fit, 160px)" },
|
|
2718
2717
|
justifyContent: { md: "center" }
|
|
2719
2718
|
},
|
|
2720
|
-
children: r.map((i) => /* @__PURE__ */ e(
|
|
2719
|
+
children: r.map((i) => /* @__PURE__ */ e(fe, { ...i }, `${i.src}-${i.alt}`))
|
|
2721
2720
|
}
|
|
2722
2721
|
)
|
|
2723
2722
|
] });
|
|
2724
2723
|
}
|
|
2725
|
-
const
|
|
2726
|
-
OraculoSeccionDestacados:
|
|
2727
|
-
OraculoSeccionTopJuegos:
|
|
2728
|
-
OraculoSeccionCasinoEnVivo:
|
|
2729
|
-
OraculoSeccionCasino:
|
|
2730
|
-
OraculoSeccionVirtuales:
|
|
2731
|
-
OraculoSeccionClubOlimpo:
|
|
2732
|
-
OraculoSeccionBonoBienvenida:
|
|
2733
|
-
OraculoSeccionBanners:
|
|
2734
|
-
OraculoSeccionMediosPago:
|
|
2735
|
-
OraculoSeccionEventoEnVivo:
|
|
2736
|
-
OraculoSeccionEventoSemana:
|
|
2737
|
-
OraculoSeccionEventoCombinadas:
|
|
2738
|
-
},
|
|
2739
|
-
Object.entries(
|
|
2740
|
-
([t, n]) =>
|
|
2724
|
+
const go = {
|
|
2725
|
+
OraculoSeccionDestacados: Gt,
|
|
2726
|
+
OraculoSeccionTopJuegos: Ut,
|
|
2727
|
+
OraculoSeccionCasinoEnVivo: Vt,
|
|
2728
|
+
OraculoSeccionCasino: Kt,
|
|
2729
|
+
OraculoSeccionVirtuales: Jt,
|
|
2730
|
+
OraculoSeccionClubOlimpo: Yt,
|
|
2731
|
+
OraculoSeccionBonoBienvenida: Qt,
|
|
2732
|
+
OraculoSeccionBanners: po,
|
|
2733
|
+
OraculoSeccionMediosPago: ho,
|
|
2734
|
+
OraculoSeccionEventoEnVivo: ao,
|
|
2735
|
+
OraculoSeccionEventoSemana: uo,
|
|
2736
|
+
OraculoSeccionEventoCombinadas: to
|
|
2737
|
+
}, fo = (t) => typeof t == "function" || t && typeof t == "object" && "$$typeof" in t, xo = (t) => /^OraculoSeccion[A-Z]/.test(t), bo = Object.fromEntries(
|
|
2738
|
+
Object.entries(go).filter(
|
|
2739
|
+
([t, n]) => xo(t) && fo(n)
|
|
2741
2740
|
)
|
|
2742
2741
|
);
|
|
2743
|
-
class
|
|
2742
|
+
class ye extends Error {
|
|
2744
2743
|
constructor(n, r, i) {
|
|
2745
2744
|
super(`HTTP ${n} ${i}`), this.status = n, this.url = r, this.statusText = i, this.name = "HttpError";
|
|
2746
2745
|
}
|
|
2747
2746
|
}
|
|
2748
|
-
const
|
|
2747
|
+
const we = [
|
|
2749
2748
|
"OraculoSeccionEventoEnVivo",
|
|
2750
2749
|
"OraculoSeccionEventoSemana",
|
|
2751
2750
|
"OraculoSeccionEventoCombinadas"
|
|
2752
|
-
],
|
|
2751
|
+
], Bo = ({
|
|
2753
2752
|
sectionsOverride: t,
|
|
2754
2753
|
docId: n = "home",
|
|
2755
|
-
db: r
|
|
2754
|
+
db: r,
|
|
2755
|
+
loader: i
|
|
2756
2756
|
}) => {
|
|
2757
|
-
const [
|
|
2757
|
+
const [d, o] = A(
|
|
2758
2758
|
[]
|
|
2759
|
-
), [
|
|
2760
|
-
|
|
2759
|
+
), [a, u] = A(!1), [p, h] = A({}), [_, k] = A({}), [s, c] = A({}), g = Fe("(min-width:1024px)");
|
|
2760
|
+
Y(() => {
|
|
2761
2761
|
if (t || !r) return;
|
|
2762
|
-
|
|
2763
|
-
const
|
|
2764
|
-
|
|
2765
|
-
(
|
|
2766
|
-
var
|
|
2762
|
+
u(!0);
|
|
2763
|
+
const m = Ve(
|
|
2764
|
+
He(r, "landings", n),
|
|
2765
|
+
(b) => {
|
|
2766
|
+
var y;
|
|
2767
2767
|
try {
|
|
2768
|
-
let
|
|
2769
|
-
|
|
2770
|
-
var
|
|
2771
|
-
return ((
|
|
2772
|
-
}).map((
|
|
2773
|
-
} catch (
|
|
2774
|
-
console.error("Error procesando landings/" + n,
|
|
2768
|
+
let v = b.exists() ? ((y = b.data()) == null ? void 0 : y.sections) || [] : [];
|
|
2769
|
+
v = v.slice().sort((w, I) => {
|
|
2770
|
+
var R, W;
|
|
2771
|
+
return ((R = w.order) != null ? R : 0) - ((W = I.order) != null ? W : 0);
|
|
2772
|
+
}).map((w, I) => ({ ...w, order: I + 1 })), o(v), console.log("fetched: ", v);
|
|
2773
|
+
} catch (v) {
|
|
2774
|
+
console.error("Error procesando landings/" + n, v);
|
|
2775
2775
|
} finally {
|
|
2776
|
-
|
|
2776
|
+
u(!1);
|
|
2777
2777
|
}
|
|
2778
2778
|
},
|
|
2779
|
-
(
|
|
2780
|
-
console.error("Error escuchando landings/" + n,
|
|
2779
|
+
(b) => {
|
|
2780
|
+
console.error("Error escuchando landings/" + n, b), u(!1);
|
|
2781
2781
|
}
|
|
2782
2782
|
);
|
|
2783
|
-
return () =>
|
|
2784
|
-
}, [t, n, r]),
|
|
2785
|
-
(t ? t.slice() :
|
|
2786
|
-
}, [t,
|
|
2787
|
-
const
|
|
2788
|
-
if (
|
|
2783
|
+
return () => m();
|
|
2784
|
+
}, [t, n, r]), Y(() => {
|
|
2785
|
+
(t ? t.slice() : d.slice()).map((y) => y.componentKey).filter((y) => !!y).length;
|
|
2786
|
+
}, [t, d]);
|
|
2787
|
+
const O = async (m) => {
|
|
2788
|
+
if (we.includes(m.componentKey))
|
|
2789
2789
|
return {
|
|
2790
2790
|
// whatever empty structure your UI expects
|
|
2791
2791
|
items: [],
|
|
2792
2792
|
events: [],
|
|
2793
2793
|
data: {}
|
|
2794
2794
|
};
|
|
2795
|
-
const
|
|
2796
|
-
if (!
|
|
2797
|
-
const
|
|
2798
|
-
let
|
|
2799
|
-
if (
|
|
2800
|
-
const
|
|
2801
|
-
|
|
2795
|
+
const b = (m.apiUrl || "").trim();
|
|
2796
|
+
if (!b) return;
|
|
2797
|
+
const y = m.apiMethod || "GET", v = m.apiParams || [];
|
|
2798
|
+
let w = b, I, R;
|
|
2799
|
+
if (y === "GET") {
|
|
2800
|
+
const G = new URL(
|
|
2801
|
+
b,
|
|
2802
2802
|
typeof window == "undefined" ? "http://localhost" : window.location.origin
|
|
2803
2803
|
);
|
|
2804
|
-
for (const
|
|
2805
|
-
|
|
2806
|
-
|
|
2804
|
+
for (const j of v)
|
|
2805
|
+
j.key && G.searchParams.append(j.key, j.value);
|
|
2806
|
+
w = G.toString();
|
|
2807
2807
|
} else {
|
|
2808
|
-
const
|
|
2809
|
-
for (const
|
|
2810
|
-
|
|
2811
|
-
I =
|
|
2808
|
+
const G = new URLSearchParams();
|
|
2809
|
+
for (const j of v)
|
|
2810
|
+
j.key && G.append(j.key, j.value);
|
|
2811
|
+
I = G.toString(), R = {
|
|
2812
2812
|
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
|
|
2813
2813
|
};
|
|
2814
2814
|
}
|
|
2815
|
-
const
|
|
2816
|
-
method:
|
|
2817
|
-
headers:
|
|
2815
|
+
const W = await fetch(w, {
|
|
2816
|
+
method: y,
|
|
2817
|
+
headers: R,
|
|
2818
2818
|
body: I
|
|
2819
2819
|
});
|
|
2820
|
-
if (!
|
|
2821
|
-
return
|
|
2822
|
-
},
|
|
2823
|
-
() => t ? t.slice() :
|
|
2824
|
-
[t,
|
|
2825
|
-
),
|
|
2826
|
-
|
|
2827
|
-
const
|
|
2828
|
-
if (
|
|
2829
|
-
for (const { s:
|
|
2830
|
-
const
|
|
2831
|
-
|
|
2820
|
+
if (!W.ok) throw new ye(W.status, w, W.statusText);
|
|
2821
|
+
return W.json();
|
|
2822
|
+
}, x = oe(
|
|
2823
|
+
() => t ? t.slice() : d.slice(),
|
|
2824
|
+
[t, d]
|
|
2825
|
+
), C = We.useRef(/* @__PURE__ */ new Set());
|
|
2826
|
+
Y(() => {
|
|
2827
|
+
const m = x.map((b) => ({ s: b, url: (b.apiUrl || "").trim() })).filter(({ url: b }) => !!b);
|
|
2828
|
+
if (m.length)
|
|
2829
|
+
for (const { s: b, url: y } of m) {
|
|
2830
|
+
const v = `${b.id}|${y}`;
|
|
2831
|
+
C.current.has(v) || (C.current.add(v), k((w) => ({ ...w, [b.id]: !0 })), c((w) => ({ ...w, [b.id]: "" })), (async () => {
|
|
2832
2832
|
try {
|
|
2833
|
-
const
|
|
2834
|
-
|
|
2835
|
-
} catch (
|
|
2833
|
+
const w = await O(b);
|
|
2834
|
+
h((I) => ({ ...I, [b.id]: w }));
|
|
2835
|
+
} catch (w) {
|
|
2836
2836
|
let I = "Error desconocido";
|
|
2837
|
-
|
|
2837
|
+
w instanceof ye ? I = `Error HTTP ${w.status} (${w.statusText}) en ${w.url}` : w instanceof SyntaxError ? I = "Respuesta no es JSON válido" : w instanceof TypeError ? I = "Fallo de red / CORS / conexión" : typeof w == "string" && (I = w.toString()), c((R) => ({ ...R, [b.id]: I }));
|
|
2838
2838
|
} finally {
|
|
2839
|
-
|
|
2839
|
+
k((w) => ({ ...w, [b.id]: !1 }));
|
|
2840
2840
|
}
|
|
2841
2841
|
})());
|
|
2842
2842
|
}
|
|
2843
|
-
}, [
|
|
2844
|
-
const
|
|
2845
|
-
() =>
|
|
2846
|
-
[
|
|
2847
|
-
),
|
|
2848
|
-
const
|
|
2849
|
-
for (const
|
|
2850
|
-
const
|
|
2851
|
-
if (
|
|
2852
|
-
const I = String(
|
|
2843
|
+
}, [x]);
|
|
2844
|
+
const N = oe(
|
|
2845
|
+
() => x.filter((m) => m.visible).sort((m, b) => m.order - b.order),
|
|
2846
|
+
[x]
|
|
2847
|
+
), f = (m) => Array.isArray(m) ? m.map((b) => {
|
|
2848
|
+
const y = {};
|
|
2849
|
+
for (const v of b.fields || []) {
|
|
2850
|
+
const w = (v.type || "string").toLowerCase();
|
|
2851
|
+
if (w === "number") {
|
|
2852
|
+
const I = String(v.value || "").trim();
|
|
2853
2853
|
if (I !== "") {
|
|
2854
|
-
const
|
|
2855
|
-
Number.isNaN(
|
|
2854
|
+
const R = Number(I);
|
|
2855
|
+
Number.isNaN(R) || (y[v.name] = R);
|
|
2856
2856
|
}
|
|
2857
|
-
} else if (
|
|
2858
|
-
|
|
2859
|
-
else if (
|
|
2860
|
-
const I = String(
|
|
2857
|
+
} else if (w === "boolean")
|
|
2858
|
+
y[v.name] = String(v.value).toLowerCase() === "true";
|
|
2859
|
+
else if (w === "function") {
|
|
2860
|
+
const I = String(v.value || "").trim();
|
|
2861
2861
|
if (I)
|
|
2862
2862
|
try {
|
|
2863
|
-
const
|
|
2864
|
-
|
|
2865
|
-
} catch (
|
|
2866
|
-
console.error(`❌ Error creando función en item '${
|
|
2863
|
+
const R = new Function(I);
|
|
2864
|
+
y[v.name] = R;
|
|
2865
|
+
} catch (R) {
|
|
2866
|
+
console.error(`❌ Error creando función en item '${v.name}':`, R);
|
|
2867
2867
|
}
|
|
2868
|
-
} else
|
|
2868
|
+
} else y[v.name] = v.value;
|
|
2869
2869
|
}
|
|
2870
|
-
return
|
|
2871
|
-
}) : [],
|
|
2872
|
-
const
|
|
2873
|
-
if (!Array.isArray(
|
|
2874
|
-
for (const
|
|
2875
|
-
if (!
|
|
2876
|
-
const
|
|
2877
|
-
if (
|
|
2878
|
-
const
|
|
2879
|
-
if (
|
|
2880
|
-
const I = Number(
|
|
2881
|
-
Number.isNaN(I) || (
|
|
2870
|
+
return y;
|
|
2871
|
+
}) : [], E = (m) => {
|
|
2872
|
+
const b = {};
|
|
2873
|
+
if (!Array.isArray(m)) return b;
|
|
2874
|
+
for (const y of m) {
|
|
2875
|
+
if (!y.name) continue;
|
|
2876
|
+
const v = (y.type || "string").toLowerCase();
|
|
2877
|
+
if (v === "number") {
|
|
2878
|
+
const w = String(y.value || "").trim();
|
|
2879
|
+
if (w !== "") {
|
|
2880
|
+
const I = Number(w);
|
|
2881
|
+
Number.isNaN(I) || (b[y.name] = I);
|
|
2882
2882
|
}
|
|
2883
|
-
} else if (
|
|
2884
|
-
|
|
2885
|
-
else if (
|
|
2886
|
-
const
|
|
2887
|
-
if (
|
|
2883
|
+
} else if (v === "boolean")
|
|
2884
|
+
b[y.name] = String(y.value).toLowerCase() === "true";
|
|
2885
|
+
else if (v === "function") {
|
|
2886
|
+
const w = String(y.value || "").trim();
|
|
2887
|
+
if (w)
|
|
2888
2888
|
try {
|
|
2889
|
-
const I = new Function(
|
|
2890
|
-
|
|
2889
|
+
const I = new Function(w);
|
|
2890
|
+
b[y.name] = I;
|
|
2891
2891
|
} catch (I) {
|
|
2892
|
-
console.error(`❌ Error creando función en item '${
|
|
2892
|
+
console.error(`❌ Error creando función en item '${y.name}':`, I);
|
|
2893
2893
|
}
|
|
2894
|
-
} else
|
|
2894
|
+
} else b[y.name] = y.value;
|
|
2895
2895
|
}
|
|
2896
|
-
return
|
|
2897
|
-
},
|
|
2898
|
-
const
|
|
2899
|
-
if (
|
|
2900
|
-
const
|
|
2901
|
-
return
|
|
2896
|
+
return b;
|
|
2897
|
+
}, P = (m, b, y) => {
|
|
2898
|
+
const v = y ? { ...y } : {};
|
|
2899
|
+
if (b) {
|
|
2900
|
+
const j = (b.variableName || "items").trim() || "items";
|
|
2901
|
+
return v[j] = b.arr || [], v;
|
|
2902
2902
|
}
|
|
2903
|
-
const
|
|
2904
|
-
return
|
|
2905
|
-
},
|
|
2903
|
+
const w = m, I = Array.isArray(w), R = !I && typeof w == "object" && w !== null ? w : void 0, W = R && Array.isArray(R.lobby || R.items) ? R.lobby || R.items : void 0, G = (j) => I ? w : W || j;
|
|
2904
|
+
return v.items = G(W || []), v;
|
|
2905
|
+
}, T = (m) => {
|
|
2906
2906
|
var I;
|
|
2907
|
-
const
|
|
2908
|
-
let
|
|
2909
|
-
const
|
|
2910
|
-
if (
|
|
2911
|
-
return { items:
|
|
2912
|
-
if (
|
|
2913
|
-
else if (
|
|
2914
|
-
const
|
|
2915
|
-
if (
|
|
2907
|
+
const b = !!((I = m.apiUrl) != null && I.trim()), y = b ? p[m.id] : void 0;
|
|
2908
|
+
let v = m.props ? { ...m.props } : {};
|
|
2909
|
+
const w = E(m.manualScalarFields);
|
|
2910
|
+
if (we.includes(m.componentKey))
|
|
2911
|
+
return { items: y, ...v, ...w };
|
|
2912
|
+
if (v = { ...v, ...w }, b) v = P(y, null, v);
|
|
2913
|
+
else if (m.dataMode === "manual") {
|
|
2914
|
+
const R = f(m.manualItems);
|
|
2915
|
+
if (v = P(
|
|
2916
2916
|
null,
|
|
2917
|
-
{ arr:
|
|
2918
|
-
|
|
2919
|
-
),
|
|
2920
|
-
const
|
|
2921
|
-
|
|
2917
|
+
{ arr: R, variableName: m.variableName },
|
|
2918
|
+
v
|
|
2919
|
+
), m.variableName2 && m.manualItems2) {
|
|
2920
|
+
const W = f(m.manualItems2), G = (m.variableName2 || "items2").trim() || "items2";
|
|
2921
|
+
v[G] = W;
|
|
2922
2922
|
}
|
|
2923
2923
|
}
|
|
2924
|
-
return
|
|
2925
|
-
},
|
|
2924
|
+
return v;
|
|
2925
|
+
}, S = (m, b, y) => /* @__PURE__ */ e("div", { className: `mx-4 p-4 rounded ${{
|
|
2926
2926
|
loading: "bg-blue-100 text-blue-800",
|
|
2927
2927
|
error: "bg-red-100 text-red-800",
|
|
2928
2928
|
component: "bg-yellow-100 text-yellow-800"
|
|
2929
|
-
}[
|
|
2930
|
-
var
|
|
2931
|
-
const
|
|
2932
|
-
if (!
|
|
2933
|
-
return console.warn(`No hay componente registrado para "${
|
|
2934
|
-
|
|
2929
|
+
}[b]}`, children: y }, m), B = (m) => {
|
|
2930
|
+
var he;
|
|
2931
|
+
const b = m.componentKey, y = bo[b];
|
|
2932
|
+
if (!y)
|
|
2933
|
+
return console.warn(`No hay componente registrado para "${b}"`), S(
|
|
2934
|
+
m.id,
|
|
2935
2935
|
"component",
|
|
2936
|
-
`Componente "${
|
|
2936
|
+
`Componente "${b}" no encontrado`
|
|
2937
2937
|
);
|
|
2938
|
-
const
|
|
2939
|
-
if (
|
|
2940
|
-
if (I && !
|
|
2941
|
-
return
|
|
2942
|
-
|
|
2938
|
+
const v = !!((he = m.apiUrl) != null && he.trim()), w = v ? p[m.id] : void 0, I = v ? !!_[m.id] : !1, R = v ? s[m.id] : "";
|
|
2939
|
+
if (v) {
|
|
2940
|
+
if (I && !w)
|
|
2941
|
+
return S(
|
|
2942
|
+
m.id,
|
|
2943
2943
|
"loading",
|
|
2944
|
-
`Cargando datos desde ${
|
|
2944
|
+
`Cargando datos desde ${m.apiUrl}...`
|
|
2945
2945
|
);
|
|
2946
|
-
if (
|
|
2947
|
-
return
|
|
2948
|
-
|
|
2946
|
+
if (R && !w)
|
|
2947
|
+
return S(
|
|
2948
|
+
m.id,
|
|
2949
2949
|
"error",
|
|
2950
|
-
`Error cargando ${
|
|
2950
|
+
`Error cargando ${m.apiUrl}: ${R}`
|
|
2951
2951
|
);
|
|
2952
2952
|
}
|
|
2953
|
-
const
|
|
2953
|
+
const W = T(m), j = (/* @__PURE__ */ new Set([
|
|
2954
2954
|
"OraculoSeccionBanners",
|
|
2955
2955
|
"OraculoSeccionBonoBienvenida",
|
|
2956
2956
|
"OraculoSeccionCasinoEnVivo",
|
|
2957
|
-
|
|
2958
|
-
])).has(
|
|
2959
|
-
return /* @__PURE__ */ e("div", { style:
|
|
2957
|
+
g ? "" : "OraculoSeccionClubOlimpo"
|
|
2958
|
+
])).has(m.componentKey), me = g ? 120 : 24;
|
|
2959
|
+
return /* @__PURE__ */ e("div", { style: j ? {
|
|
2960
2960
|
width: "100%",
|
|
2961
2961
|
boxSizing: "border-box"
|
|
2962
2962
|
} : {
|
|
2963
|
-
paddingLeft:
|
|
2964
|
-
paddingRight:
|
|
2963
|
+
paddingLeft: me,
|
|
2964
|
+
paddingRight: me,
|
|
2965
2965
|
width: "100%",
|
|
2966
2966
|
boxSizing: "border-box"
|
|
2967
|
-
}, children: /* @__PURE__ */ e(
|
|
2967
|
+
}, children: /* @__PURE__ */ e(y, { ...W }) }, m.id);
|
|
2968
2968
|
};
|
|
2969
|
-
return
|
|
2970
|
-
|
|
2969
|
+
return a && !t ? i ? /* @__PURE__ */ e(i, {}) : /* @__PURE__ */ e("div", { children: "Cargando..." }) : !a && !t && d.length === 0 ? /* @__PURE__ */ e("div", { className: "text-xs text-gray-500", children: "Sin secciones (Firestore)" }) : /* @__PURE__ */ e(
|
|
2970
|
+
Le,
|
|
2971
2971
|
{
|
|
2972
2972
|
className: "oli-font",
|
|
2973
2973
|
maxWidth: !1,
|
|
@@ -2981,47 +2981,55 @@ const ye = [
|
|
|
2981
2981
|
maxWidth: "100%",
|
|
2982
2982
|
overflowX: "hidden"
|
|
2983
2983
|
},
|
|
2984
|
-
children: /* @__PURE__ */ e(
|
|
2984
|
+
children: /* @__PURE__ */ e(
|
|
2985
|
+
Ee,
|
|
2986
|
+
{
|
|
2987
|
+
direction: "column",
|
|
2988
|
+
spacing: g ? 8 : 5,
|
|
2989
|
+
useFlexGap: !0,
|
|
2990
|
+
children: N.map(B)
|
|
2991
|
+
}
|
|
2992
|
+
)
|
|
2985
2993
|
}
|
|
2986
2994
|
);
|
|
2987
2995
|
};
|
|
2988
2996
|
export {
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
2997
|
+
L as OraculoButton,
|
|
2998
|
+
J as OraculoCarousel,
|
|
2999
|
+
Oe as OraculoCarouselDots,
|
|
3000
|
+
bt as OraculoClubOlimpoVisual,
|
|
3001
|
+
Nt as OraculoEventCombinadasCard,
|
|
3002
|
+
Bt as OraculoEventEnVivoCard,
|
|
3003
|
+
Ze as OraculoEventHeader,
|
|
3004
|
+
Ie as OraculoEventLabel,
|
|
3005
|
+
Ne as OraculoEventLeague,
|
|
3006
|
+
Te as OraculoEventScore,
|
|
3007
|
+
At as OraculoEventSemanaCard,
|
|
3008
|
+
Ye as OraculoEventStatus,
|
|
3009
|
+
Qe as OraculoEventStatusBadge,
|
|
3002
3010
|
ne as OraculoEventTeamInfo,
|
|
3003
3011
|
te as OraculoGameCard,
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3012
|
+
ft as OraculoGameRankCard,
|
|
3013
|
+
Pe as OraculoGameSlide,
|
|
3014
|
+
H as OraculoGridGroup,
|
|
3015
|
+
xt as OraculoLiveCasinoCard,
|
|
3016
|
+
fe as OraculoLogoMediosPago,
|
|
3017
|
+
Bo as OraculoPageLandingPreview,
|
|
3018
|
+
po as OraculoSeccionBanners,
|
|
3019
|
+
Qt as OraculoSeccionBonoBienvenida,
|
|
3020
|
+
Kt as OraculoSeccionCasino,
|
|
3021
|
+
Vt as OraculoSeccionCasinoEnVivo,
|
|
3022
|
+
Yt as OraculoSeccionClubOlimpo,
|
|
3023
|
+
Gt as OraculoSeccionDestacados,
|
|
3024
|
+
to as OraculoSeccionEventoCombinadas,
|
|
3025
|
+
ao as OraculoSeccionEventoEnVivo,
|
|
3026
|
+
uo as OraculoSeccionEventoSemana,
|
|
3027
|
+
ho as OraculoSeccionMediosPago,
|
|
3028
|
+
Ut as OraculoSeccionTopJuegos,
|
|
3029
|
+
Jt as OraculoSeccionVirtuales,
|
|
3030
|
+
q as OraculoSectionTitle,
|
|
3031
|
+
Ut as OraculoTopJuegoItem,
|
|
3032
|
+
xe as OraculoWelcomeBanner,
|
|
3033
|
+
Bo as default
|
|
3026
3034
|
};
|
|
3027
3035
|
//# sourceMappingURL=index.es.js.map
|