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