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