oraculo-ui 0.1.44 → 0.1.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +6 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.es.js +1061 -959
- 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
|
|
8
|
-
import { ChevronLeftRounded as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { onSnapshot as
|
|
1
|
+
import { jsx as e, jsxs as p, Fragment as V } from "react/jsx-runtime";
|
|
2
|
+
import { Link as Ce, Box as z, Typography as ge, Stack as he, Container as Ee } from "@mui/material";
|
|
3
|
+
import $e, { forwardRef as Ie, useRef as G, useImperativeHandle as ke, useCallback as se, useState as U, useMemo as re, useLayoutEffect as Ne, useEffect as Y } from "react";
|
|
4
|
+
import { Splide as Oe, SplideSlide as Re } from "@splidejs/react-splide";
|
|
5
|
+
import C from "@mui/material/Box";
|
|
6
|
+
import M from "@mui/material/Typography";
|
|
7
|
+
import A from "@mui/material/Stack";
|
|
8
|
+
import { ChevronLeftRounded as ae, ChevronRightRounded as ie } from "@mui/icons-material";
|
|
9
|
+
import fe from "@mui/icons-material/ChevronLeftRounded";
|
|
10
|
+
import xe from "@mui/icons-material/ChevronRightRounded";
|
|
11
|
+
import Te from "@mui/material/useMediaQuery";
|
|
12
|
+
import { onSnapshot as Pe, doc as Fe } from "firebase/firestore";
|
|
13
13
|
function T({
|
|
14
14
|
children: t,
|
|
15
|
-
onClick:
|
|
16
|
-
href:
|
|
17
|
-
target:
|
|
15
|
+
onClick: i,
|
|
16
|
+
href: r,
|
|
17
|
+
target: n,
|
|
18
18
|
rel: c,
|
|
19
19
|
type: o = "button",
|
|
20
|
-
disabled:
|
|
21
|
-
variant:
|
|
20
|
+
disabled: a = !1,
|
|
21
|
+
variant: m = "primary",
|
|
22
22
|
size: g,
|
|
23
|
-
fullWidth:
|
|
24
|
-
fullHeight:
|
|
25
|
-
className:
|
|
26
|
-
ariaLabel:
|
|
27
|
-
leftIcon:
|
|
23
|
+
fullWidth: v = !1,
|
|
24
|
+
fullHeight: x = !1,
|
|
25
|
+
className: w = "",
|
|
26
|
+
ariaLabel: s,
|
|
27
|
+
leftIcon: d,
|
|
28
28
|
rightIcon: l,
|
|
29
|
-
iconOnly:
|
|
29
|
+
iconOnly: u
|
|
30
30
|
}) {
|
|
31
|
-
const
|
|
31
|
+
const _ = !!t && t !== !0, O = (!!d ? 1 : 0) + (!!l ? 1 : 0) == 1, P = u != null ? u : O && !_, I = [
|
|
32
32
|
"orc-btn",
|
|
33
|
-
|
|
33
|
+
m === "secondary" ? "orc-btn--secondary" : m === "tertiary" ? "orc-btn--tertiary" : "orc-btn--primary",
|
|
34
34
|
g ? `orc-btn--${g}` : "",
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
].filter(Boolean).join(" "), N = /* @__PURE__ */
|
|
40
|
-
|
|
41
|
-
!
|
|
35
|
+
v ? "orc-btn--full" : "",
|
|
36
|
+
x ? "orc-btn--fullHeight" : "",
|
|
37
|
+
P ? "orc-btn--iconOnly" : "",
|
|
38
|
+
w
|
|
39
|
+
].filter(Boolean).join(" "), N = /* @__PURE__ */ p(V, { 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
|
+
] }), L = a ? !0 : void 0;
|
|
44
|
+
return r ? /* @__PURE__ */ e(
|
|
45
|
+
Ce,
|
|
46
46
|
{
|
|
47
|
-
href:
|
|
48
|
-
target:
|
|
47
|
+
href: r,
|
|
48
|
+
target: n,
|
|
49
49
|
rel: c,
|
|
50
|
-
"aria-label":
|
|
51
|
-
"aria-disabled":
|
|
52
|
-
tabIndex:
|
|
53
|
-
className:
|
|
54
|
-
onClick:
|
|
50
|
+
"aria-label": s,
|
|
51
|
+
"aria-disabled": L,
|
|
52
|
+
tabIndex: L ? -1 : void 0,
|
|
53
|
+
className: I,
|
|
54
|
+
onClick: L ? (F) => F.preventDefault() : i,
|
|
55
55
|
children: N
|
|
56
56
|
}
|
|
57
57
|
) : /* @__PURE__ */ e(
|
|
58
58
|
"button",
|
|
59
59
|
{
|
|
60
60
|
type: o,
|
|
61
|
-
onClick:
|
|
62
|
-
disabled: !!
|
|
63
|
-
"aria-label":
|
|
64
|
-
className:
|
|
61
|
+
onClick: i,
|
|
62
|
+
disabled: !!L,
|
|
63
|
+
"aria-label": s,
|
|
64
|
+
className: I,
|
|
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: n = ""
|
|
74
74
|
}) {
|
|
75
75
|
const o = [
|
|
76
76
|
"orc-section-title",
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
r ? `orc-section-title--${r}` : "",
|
|
78
|
+
n
|
|
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
|
}
|
|
@@ -89,51 +89,51 @@ function X({
|
|
|
89
89
|
/* @__PURE__ */ e("h2", { className: "orc-section-title__title", children: t })
|
|
90
90
|
] });
|
|
91
91
|
}
|
|
92
|
-
const
|
|
92
|
+
const be = ({
|
|
93
93
|
total: t,
|
|
94
|
-
active:
|
|
95
|
-
onSelect:
|
|
96
|
-
className:
|
|
94
|
+
active: i,
|
|
95
|
+
onSelect: r,
|
|
96
|
+
className: n = ""
|
|
97
97
|
}) => {
|
|
98
98
|
if (t <= 1) return null;
|
|
99
|
-
const c = ["orc-dots",
|
|
100
|
-
return /* @__PURE__ */ e("div", { className: c, role: "tablist", children: Array.from({ length: t }).map((o,
|
|
99
|
+
const c = ["orc-dots", n].filter(Boolean).join(" ");
|
|
100
|
+
return /* @__PURE__ */ e("div", { className: c, role: "tablist", children: Array.from({ length: t }).map((o, a) => /* @__PURE__ */ e("span", { className: "orc-dots__cell", children: /* @__PURE__ */ e(
|
|
101
101
|
"button",
|
|
102
102
|
{
|
|
103
103
|
type: "button",
|
|
104
104
|
role: "tab",
|
|
105
|
-
"aria-selected":
|
|
106
|
-
"aria-label": `Ir al slide ${
|
|
107
|
-
className: "orc-dots__dot" + (
|
|
108
|
-
onClick: () =>
|
|
105
|
+
"aria-selected": a === i,
|
|
106
|
+
"aria-label": `Ir al slide ${a + 1}`,
|
|
107
|
+
className: "orc-dots__dot" + (a === i ? " orc-dots__dot--active" : ""),
|
|
108
|
+
onClick: () => r == null ? void 0 : r(a)
|
|
109
109
|
}
|
|
110
|
-
) },
|
|
110
|
+
) }, a)) });
|
|
111
111
|
};
|
|
112
112
|
function D({
|
|
113
113
|
children: t,
|
|
114
|
-
minWidth:
|
|
115
|
-
spacing:
|
|
116
|
-
justify:
|
|
114
|
+
minWidth: i = 32,
|
|
115
|
+
spacing: r = 2,
|
|
116
|
+
justify: n = "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))`, a = typeof r == "number" ? `${r * 8}px` : r;
|
|
120
120
|
return /* @__PURE__ */ e(
|
|
121
121
|
"div",
|
|
122
122
|
{
|
|
123
123
|
style: {
|
|
124
124
|
display: "grid",
|
|
125
125
|
gridTemplateColumns: o,
|
|
126
|
-
justifyItems:
|
|
127
|
-
gap:
|
|
126
|
+
justifyItems: n,
|
|
127
|
+
gap: a,
|
|
128
128
|
height: "inherit"
|
|
129
129
|
},
|
|
130
130
|
children: t
|
|
131
131
|
}
|
|
132
132
|
);
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function ce({ src: t, alt: i }) {
|
|
135
135
|
return /* @__PURE__ */ e(
|
|
136
|
-
|
|
136
|
+
z,
|
|
137
137
|
{
|
|
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 Ue({ 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 ze({ 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 Le({ live: t, time: i }) {
|
|
242
|
+
return /* @__PURE__ */ p("div", { className: "oli-font", style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
|
|
243
|
+
t && /* @__PURE__ */ e(ze, { 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 Ae({ title: t, subtitle: i, live: r = !1, time: n = "" }) {
|
|
248
|
+
return /* @__PURE__ */ p(
|
|
249
249
|
"div",
|
|
250
250
|
{
|
|
251
251
|
style: {
|
|
@@ -255,95 +255,95 @@ 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(Ue, { title: t, subtitle: i }),
|
|
259
|
+
/* @__PURE__ */ e(Le, { live: r, time: n })
|
|
260
260
|
]
|
|
261
261
|
}
|
|
262
262
|
);
|
|
263
263
|
}
|
|
264
|
-
const We = "oraculo__OraculoEventLabel-module__label___c64Xw",
|
|
264
|
+
const We = "oraculo__OraculoEventLabel-module__label___c64Xw", Be = {
|
|
265
265
|
label: We
|
|
266
266
|
};
|
|
267
|
-
function
|
|
268
|
-
return /* @__PURE__ */ e("span", { className:
|
|
267
|
+
function ve({ text: t }) {
|
|
268
|
+
return /* @__PURE__ */ e("span", { className: Be.label, children: t });
|
|
269
269
|
}
|
|
270
|
-
const je = "oraculo__OraculoEventLeague-module__container___rdk4F",
|
|
270
|
+
const je = "oraculo__OraculoEventLeague-module__container___rdk4F", Ge = {
|
|
271
271
|
container: je
|
|
272
272
|
};
|
|
273
|
-
function
|
|
274
|
-
return /* @__PURE__ */ e("div", { className:
|
|
273
|
+
function Me({ title: t }) {
|
|
274
|
+
return /* @__PURE__ */ e("div", { className: Ge.container, children: t.toUpperCase() });
|
|
275
275
|
}
|
|
276
|
-
const
|
|
277
|
-
scoreWrapper:
|
|
278
|
-
name:
|
|
279
|
-
score:
|
|
280
|
-
normal:
|
|
281
|
-
small:
|
|
276
|
+
const De = "oraculo__OraculoEventScore-module__scoreWrapper___fWwEr", He = "oraculo__OraculoEventScore-module__name___r4uL6", Xe = "oraculo__OraculoEventScore-module__score___Xl03M", Je = "oraculo__OraculoEventScore-module__normal___cCNFz", qe = "oraculo__OraculoEventScore-module__small___fVt8E", K = {
|
|
277
|
+
scoreWrapper: De,
|
|
278
|
+
name: He,
|
|
279
|
+
score: Xe,
|
|
280
|
+
normal: Je,
|
|
281
|
+
small: qe
|
|
282
282
|
};
|
|
283
|
-
function
|
|
284
|
-
return /* @__PURE__ */
|
|
283
|
+
function ye({ 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", Ye = "oraculo__OraculoEventTeamInfo-module__logo___fKCl3", Qe = "oraculo__OraculoEventTeamInfo-module__name___4ikm-", Ze = "oraculo__OraculoEventTeamInfo-module__regular___ag826", Ve = "oraculo__OraculoEventTeamInfo-module__compact___RCNOs", Q = {
|
|
296
|
+
team: Ke,
|
|
297
|
+
logo: Ye,
|
|
298
|
+
name: Qe,
|
|
299
|
+
regular: Ze,
|
|
300
|
+
compact: Ve
|
|
301
301
|
};
|
|
302
|
-
function
|
|
303
|
-
return /* @__PURE__ */
|
|
304
|
-
/* @__PURE__ */ e("img", { src:
|
|
305
|
-
/* @__PURE__ */ e("span", { className:
|
|
302
|
+
function ee({ name: t, logo: i, size: r = "regular" }) {
|
|
303
|
+
return /* @__PURE__ */ p("div", { className: `oli-font ${Q.team} ${Q[r]}`, children: [
|
|
304
|
+
/* @__PURE__ */ e("img", { src: i, alt: t, className: Q.logo }),
|
|
305
|
+
/* @__PURE__ */ e("span", { className: Q.name, children: t })
|
|
306
306
|
] });
|
|
307
307
|
}
|
|
308
|
-
const
|
|
308
|
+
const et = Oe, tt = Re, J = Ie(
|
|
309
309
|
({
|
|
310
310
|
items: t = [],
|
|
311
|
-
renderItem:
|
|
312
|
-
perPage:
|
|
313
|
-
gap:
|
|
311
|
+
renderItem: i,
|
|
312
|
+
perPage: r = 1,
|
|
313
|
+
gap: n = "0px",
|
|
314
314
|
breakpoints: c,
|
|
315
315
|
options: o = {},
|
|
316
|
-
className:
|
|
317
|
-
onMove:
|
|
316
|
+
className: a = "",
|
|
317
|
+
onMove: m,
|
|
318
318
|
useIndexAsKey: g = !1
|
|
319
|
-
},
|
|
320
|
-
const
|
|
321
|
-
|
|
319
|
+
}, v) => {
|
|
320
|
+
const x = G(null);
|
|
321
|
+
ke(v, () => ({
|
|
322
322
|
next: () => {
|
|
323
323
|
var l;
|
|
324
|
-
return (l =
|
|
324
|
+
return (l = x.current) == null ? void 0 : l.go(">");
|
|
325
325
|
},
|
|
326
326
|
prev: () => {
|
|
327
327
|
var l;
|
|
328
|
-
return (l =
|
|
328
|
+
return (l = x.current) == null ? void 0 : l.go("<");
|
|
329
329
|
},
|
|
330
330
|
go: (l) => {
|
|
331
|
-
var
|
|
332
|
-
return (
|
|
331
|
+
var u;
|
|
332
|
+
return (u = x.current) == null ? void 0 : u.go(l);
|
|
333
333
|
}
|
|
334
334
|
}));
|
|
335
|
-
const
|
|
335
|
+
const w = se(
|
|
336
336
|
(l) => {
|
|
337
|
-
const
|
|
338
|
-
|
|
337
|
+
const u = l.index, _ = l.length, k = l.options.perPage || 1, E = u === 0, O = u >= _ - k;
|
|
338
|
+
m == null || m({ index: u, isStart: E, isEnd: O, total: _ });
|
|
339
339
|
},
|
|
340
|
-
[
|
|
341
|
-
),
|
|
340
|
+
[m]
|
|
341
|
+
), s = se(
|
|
342
342
|
(l) => {
|
|
343
|
-
|
|
343
|
+
w(l);
|
|
344
344
|
},
|
|
345
|
-
[
|
|
346
|
-
),
|
|
345
|
+
[w]
|
|
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: n,
|
|
357
357
|
breakpoints: c,
|
|
358
358
|
...o
|
|
359
359
|
};
|
|
360
|
-
return /* @__PURE__ */ e("div", { className:
|
|
361
|
-
|
|
360
|
+
return /* @__PURE__ */ e("div", { className: a, style: { width: "100%" }, children: /* @__PURE__ */ e(
|
|
361
|
+
et,
|
|
362
362
|
{
|
|
363
|
-
ref:
|
|
364
|
-
options:
|
|
365
|
-
onMove:
|
|
366
|
-
onMounted:
|
|
367
|
-
children: t.map((l,
|
|
368
|
-
var
|
|
369
|
-
return /* @__PURE__ */ e(
|
|
363
|
+
ref: x,
|
|
364
|
+
options: d,
|
|
365
|
+
onMove: w,
|
|
366
|
+
onMounted: s,
|
|
367
|
+
children: t.map((l, u) => {
|
|
368
|
+
var _;
|
|
369
|
+
return /* @__PURE__ */ e(tt, { children: i(l, u) }, g ? u : (_ = l.id) != null ? _ : u);
|
|
370
370
|
})
|
|
371
371
|
}
|
|
372
372
|
) });
|
|
373
373
|
}
|
|
374
|
-
),
|
|
374
|
+
), Z = ({
|
|
375
375
|
imageUrl: t,
|
|
376
|
-
onClick:
|
|
377
|
-
size:
|
|
378
|
-
fillParent:
|
|
376
|
+
onClick: i,
|
|
377
|
+
size: r = "sm",
|
|
378
|
+
fillParent: n = !1
|
|
379
379
|
}) => {
|
|
380
|
-
const c =
|
|
381
|
-
|
|
382
|
-
},
|
|
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
|
+
}, a = n ? { width: "100%", height: "100%" } : { width: `${c.w}px`, height: `${c.h}px` };
|
|
383
|
+
return /* @__PURE__ */ p(
|
|
384
|
+
C,
|
|
385
385
|
{
|
|
386
|
-
onClick:
|
|
386
|
+
onClick: i,
|
|
387
387
|
role: "button",
|
|
388
388
|
sx: {
|
|
389
389
|
position: "relative",
|
|
@@ -391,7 +391,7 @@ const Qe = Ne, Ze = Oe, J = Ce(
|
|
|
391
391
|
overflow: "hidden",
|
|
392
392
|
boxSizing: "border-box",
|
|
393
393
|
transition: "transform .15s ease, box-shadow .15s ease",
|
|
394
|
-
...
|
|
394
|
+
...a,
|
|
395
395
|
"&:hover": {
|
|
396
396
|
transform: "translateY(-2px)",
|
|
397
397
|
boxShadow: 8,
|
|
@@ -423,7 +423,7 @@ const Qe = Ne, Ze = Oe, J = Ce(
|
|
|
423
423
|
}
|
|
424
424
|
),
|
|
425
425
|
/* @__PURE__ */ e(
|
|
426
|
-
|
|
426
|
+
C,
|
|
427
427
|
{
|
|
428
428
|
className: "oraculo-game-card-overlay",
|
|
429
429
|
sx: {
|
|
@@ -438,7 +438,7 @@ const Qe = Ne, Ze = Oe, J = Ce(
|
|
|
438
438
|
}
|
|
439
439
|
),
|
|
440
440
|
/* @__PURE__ */ e(
|
|
441
|
-
|
|
441
|
+
C,
|
|
442
442
|
{
|
|
443
443
|
className: "oraculo-game-card-btn",
|
|
444
444
|
sx: {
|
|
@@ -458,45 +458,45 @@ const Qe = Ne, Ze = Oe, J = Ce(
|
|
|
458
458
|
}
|
|
459
459
|
);
|
|
460
460
|
};
|
|
461
|
-
function
|
|
461
|
+
function ot({
|
|
462
462
|
imageUrl: t,
|
|
463
|
-
orden:
|
|
464
|
-
onClick:
|
|
465
|
-
sizes:
|
|
463
|
+
orden: i = 1,
|
|
464
|
+
onClick: r,
|
|
465
|
+
sizes: n = {
|
|
466
466
|
xs: { w: 104, h: 112, r: 18, font: 48 },
|
|
467
467
|
md: { w: 186, h: 264, r: 22.6, font: 64 }
|
|
468
468
|
}
|
|
469
469
|
}) {
|
|
470
|
-
var
|
|
471
|
-
const c = (l,
|
|
472
|
-
var
|
|
470
|
+
var x, w, s, d;
|
|
471
|
+
const c = (l, u) => {
|
|
472
|
+
var _, k, E, O;
|
|
473
473
|
return {
|
|
474
|
-
xs: (k = (
|
|
475
|
-
md: (O = (
|
|
474
|
+
xs: (k = (_ = n.xs) == null ? void 0 : _[l]) != null ? k : u,
|
|
475
|
+
md: (O = (E = n.md) == null ? void 0 : E[l]) != null ? O : u
|
|
476
476
|
};
|
|
477
|
-
}, o = c("w", 186),
|
|
478
|
-
xs: Math.round(((
|
|
479
|
-
md: Math.round(((
|
|
477
|
+
}, o = c("w", 186), a = c("h", 264), m = c("r", 22.6), g = c("font", 64), v = {
|
|
478
|
+
xs: Math.round(((w = (x = n.xs) == null ? void 0 : x.font) != null ? w : 64) * 0.28),
|
|
479
|
+
md: Math.round(((d = (s = n.md) == null ? void 0 : s.font) != null ? d : 64) * 0.28)
|
|
480
480
|
};
|
|
481
|
-
return /* @__PURE__ */
|
|
482
|
-
|
|
481
|
+
return /* @__PURE__ */ p(
|
|
482
|
+
C,
|
|
483
483
|
{
|
|
484
484
|
sx: {
|
|
485
485
|
position: "relative",
|
|
486
486
|
width: "100%",
|
|
487
487
|
maxWidth: { xs: `${o.xs}px`, md: `${o.md}px` },
|
|
488
488
|
aspectRatio: {
|
|
489
|
-
xs: `${o.xs}/${
|
|
490
|
-
md: `${o.md}/${
|
|
489
|
+
xs: `${o.xs}/${a.xs}`,
|
|
490
|
+
md: `${o.md}/${a.md}`
|
|
491
491
|
},
|
|
492
|
-
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: `${v.xs}px`, md: `${v.md}px` }
|
|
496
496
|
},
|
|
497
497
|
children: [
|
|
498
498
|
/* @__PURE__ */ e(
|
|
499
|
-
|
|
499
|
+
C,
|
|
500
500
|
{
|
|
501
501
|
sx: {
|
|
502
502
|
position: "absolute",
|
|
@@ -505,10 +505,10 @@ function Ve({
|
|
|
505
505
|
overflow: "hidden"
|
|
506
506
|
},
|
|
507
507
|
children: /* @__PURE__ */ e(
|
|
508
|
-
|
|
508
|
+
Z,
|
|
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
|
+
C,
|
|
520
520
|
{
|
|
521
521
|
component: "span",
|
|
522
522
|
sx: {
|
|
523
523
|
position: "absolute",
|
|
524
524
|
left: 8,
|
|
525
525
|
bottom: {
|
|
526
|
-
xs: `-${
|
|
527
|
-
md: `-${
|
|
526
|
+
xs: `-${v.xs}px`,
|
|
527
|
+
md: `-${v.md}px`
|
|
528
528
|
},
|
|
529
529
|
fontFamily: "secondary",
|
|
530
530
|
fontSize: {
|
|
@@ -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 nt = ({
|
|
548
548
|
logo: t,
|
|
549
|
-
provider:
|
|
550
|
-
providerName:
|
|
551
|
-
machine:
|
|
549
|
+
provider: i,
|
|
550
|
+
providerName: r,
|
|
551
|
+
machine: n,
|
|
552
552
|
onClick: c
|
|
553
553
|
}) => {
|
|
554
554
|
var o;
|
|
555
|
-
return /* @__PURE__ */
|
|
556
|
-
|
|
555
|
+
return /* @__PURE__ */ p(
|
|
556
|
+
C,
|
|
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
|
+
C,
|
|
581
581
|
{
|
|
582
582
|
component: "img",
|
|
583
583
|
src: t,
|
|
584
|
-
alt: `Juego ${
|
|
584
|
+
alt: `Juego ${n != null ? n : ""}`,
|
|
585
585
|
sx: {
|
|
586
586
|
position: "absolute",
|
|
587
587
|
inset: 0,
|
|
@@ -593,7 +593,7 @@ const et = ({
|
|
|
593
593
|
}
|
|
594
594
|
),
|
|
595
595
|
/* @__PURE__ */ e(
|
|
596
|
-
|
|
596
|
+
C,
|
|
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
|
}
|
|
@@ -623,16 +623,16 @@ const et = ({
|
|
|
623
623
|
]
|
|
624
624
|
}
|
|
625
625
|
);
|
|
626
|
-
},
|
|
626
|
+
}, te = 12, _e = ({
|
|
627
627
|
items: t,
|
|
628
|
-
layout:
|
|
629
|
-
onClick:
|
|
628
|
+
layout: i = "grid",
|
|
629
|
+
onClick: r
|
|
630
630
|
}) => {
|
|
631
|
-
var
|
|
632
|
-
if (
|
|
631
|
+
var n;
|
|
632
|
+
if (i === "mosaic") {
|
|
633
633
|
const c = t[0], o = t.slice(1, 5);
|
|
634
|
-
return /* @__PURE__ */
|
|
635
|
-
|
|
634
|
+
return /* @__PURE__ */ p(
|
|
635
|
+
C,
|
|
636
636
|
{
|
|
637
637
|
sx: {
|
|
638
638
|
display: "grid",
|
|
@@ -649,14 +649,14 @@ const et = ({
|
|
|
649
649
|
xs: "104px",
|
|
650
650
|
md: "152px"
|
|
651
651
|
},
|
|
652
|
-
columnGap: `${
|
|
653
|
-
rowGap: `${
|
|
652
|
+
columnGap: `${te}px`,
|
|
653
|
+
rowGap: `${te}px`,
|
|
654
654
|
alignItems: "stretch",
|
|
655
655
|
justifyItems: "stretch"
|
|
656
656
|
},
|
|
657
657
|
children: [
|
|
658
658
|
c && /* @__PURE__ */ e(
|
|
659
|
-
|
|
659
|
+
C,
|
|
660
660
|
{
|
|
661
661
|
sx: {
|
|
662
662
|
width: { xs: 184, md: 280 },
|
|
@@ -666,20 +666,20 @@ const et = ({
|
|
|
666
666
|
borderRadius: 2
|
|
667
667
|
},
|
|
668
668
|
children: /* @__PURE__ */ e(
|
|
669
|
-
|
|
669
|
+
Z,
|
|
670
670
|
{
|
|
671
|
-
imageUrl: `https://olimpo.bet${(
|
|
671
|
+
imageUrl: `https://olimpo.bet${(n = c.imageUrl) != null ? n : ""}`,
|
|
672
672
|
size: "lg",
|
|
673
673
|
fillParent: !0,
|
|
674
|
-
onClick: () =>
|
|
674
|
+
onClick: () => r == null ? void 0 : r(c, 0)
|
|
675
675
|
}
|
|
676
676
|
)
|
|
677
677
|
}
|
|
678
678
|
),
|
|
679
|
-
o.map((
|
|
679
|
+
o.map((a, m) => {
|
|
680
680
|
var g;
|
|
681
681
|
return /* @__PURE__ */ e(
|
|
682
|
-
|
|
682
|
+
C,
|
|
683
683
|
{
|
|
684
684
|
sx: {
|
|
685
685
|
width: { xs: 104, md: 152 },
|
|
@@ -688,16 +688,16 @@ const et = ({
|
|
|
688
688
|
borderRadius: 2
|
|
689
689
|
},
|
|
690
690
|
children: /* @__PURE__ */ e(
|
|
691
|
-
|
|
691
|
+
Z,
|
|
692
692
|
{
|
|
693
|
-
imageUrl: `https://olimpo.bet${(g =
|
|
693
|
+
imageUrl: `https://olimpo.bet${(g = a.imageUrl) != null ? g : ""}`,
|
|
694
694
|
size: "sm",
|
|
695
695
|
fillParent: !0,
|
|
696
|
-
onClick: () =>
|
|
696
|
+
onClick: () => r == null ? void 0 : r(a, m + 1)
|
|
697
697
|
}
|
|
698
698
|
)
|
|
699
699
|
},
|
|
700
|
-
|
|
700
|
+
a.id
|
|
701
701
|
);
|
|
702
702
|
})
|
|
703
703
|
]
|
|
@@ -705,7 +705,7 @@ const et = ({
|
|
|
705
705
|
);
|
|
706
706
|
}
|
|
707
707
|
return /* @__PURE__ */ e(
|
|
708
|
-
|
|
708
|
+
C,
|
|
709
709
|
{
|
|
710
710
|
sx: {
|
|
711
711
|
display: "grid",
|
|
@@ -717,78 +717,78 @@ const et = ({
|
|
|
717
717
|
xs: "repeat(2, 112px)",
|
|
718
718
|
md: "repeat(2, 168px)"
|
|
719
719
|
},
|
|
720
|
-
gap: `${
|
|
720
|
+
gap: `${te}px`,
|
|
721
721
|
gridAutoFlow: "column"
|
|
722
722
|
},
|
|
723
723
|
children: t.map((c, o) => {
|
|
724
|
-
var
|
|
724
|
+
var a, m;
|
|
725
725
|
return /* @__PURE__ */ e(
|
|
726
|
-
|
|
726
|
+
C,
|
|
727
727
|
{
|
|
728
728
|
sx: {
|
|
729
729
|
overflow: "hidden",
|
|
730
730
|
borderRadius: 2
|
|
731
731
|
},
|
|
732
732
|
children: /* @__PURE__ */ e(
|
|
733
|
-
|
|
733
|
+
Z,
|
|
734
734
|
{
|
|
735
|
-
imageUrl: `https://olimpo.bet${(
|
|
735
|
+
imageUrl: `https://olimpo.bet${(a = c.imageUrl) != null ? a : ""}`,
|
|
736
736
|
size: "sm",
|
|
737
737
|
fillParent: !0,
|
|
738
|
-
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
|
+
}, le = ({
|
|
748
748
|
title: t,
|
|
749
|
-
amount:
|
|
750
|
-
subtitle:
|
|
751
|
-
buttonText:
|
|
749
|
+
amount: i,
|
|
750
|
+
subtitle: r,
|
|
751
|
+
buttonText: n,
|
|
752
752
|
onButtonClick: c,
|
|
753
753
|
backgroundImage: o,
|
|
754
|
-
alt:
|
|
755
|
-
className:
|
|
754
|
+
alt: a,
|
|
755
|
+
className: m = "",
|
|
756
756
|
variant: g = "small"
|
|
757
757
|
}) => {
|
|
758
|
-
const
|
|
759
|
-
return /* @__PURE__ */
|
|
760
|
-
|
|
758
|
+
const v = i ? i.slice(0, 2) : "", x = i ? i.slice(2) : "", w = g === "large";
|
|
759
|
+
return /* @__PURE__ */ p(
|
|
760
|
+
C,
|
|
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: w ? 618 : 456
|
|
769
769
|
},
|
|
770
770
|
mx: "auto"
|
|
771
771
|
},
|
|
772
772
|
children: [
|
|
773
773
|
o && /* @__PURE__ */ e(
|
|
774
|
-
|
|
774
|
+
C,
|
|
775
775
|
{
|
|
776
776
|
sx: {
|
|
777
777
|
position: "relative",
|
|
778
778
|
width: "100%",
|
|
779
779
|
aspectRatio: {
|
|
780
780
|
xs: "328 / 188",
|
|
781
|
-
lg:
|
|
781
|
+
lg: w ? "618 / 346" : "456 / 272"
|
|
782
782
|
},
|
|
783
783
|
borderRadius: "14px",
|
|
784
784
|
overflow: "hidden"
|
|
785
785
|
},
|
|
786
786
|
children: /* @__PURE__ */ e(
|
|
787
|
-
|
|
787
|
+
C,
|
|
788
788
|
{
|
|
789
789
|
component: "img",
|
|
790
790
|
src: o,
|
|
791
|
-
alt:
|
|
791
|
+
alt: a != null ? a : "Fondo promocional",
|
|
792
792
|
sx: {
|
|
793
793
|
width: "100%",
|
|
794
794
|
height: "100%",
|
|
@@ -804,7 +804,7 @@ const et = ({
|
|
|
804
804
|
}
|
|
805
805
|
),
|
|
806
806
|
/* @__PURE__ */ e(
|
|
807
|
-
|
|
807
|
+
C,
|
|
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
|
+
C,
|
|
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
|
+
C,
|
|
843
843
|
{
|
|
844
844
|
component: "p",
|
|
845
845
|
sx: {
|
|
@@ -857,26 +857,26 @@ const et = ({
|
|
|
857
857
|
},
|
|
858
858
|
children: [
|
|
859
859
|
/* @__PURE__ */ e(
|
|
860
|
-
|
|
860
|
+
C,
|
|
861
861
|
{
|
|
862
862
|
component: "span",
|
|
863
863
|
sx: { fontSize: { xs: 35, lg: 48 }, mr: 0.5 },
|
|
864
|
-
children:
|
|
864
|
+
children: v
|
|
865
865
|
}
|
|
866
866
|
),
|
|
867
867
|
/* @__PURE__ */ e(
|
|
868
|
-
|
|
868
|
+
C,
|
|
869
869
|
{
|
|
870
870
|
component: "span",
|
|
871
871
|
sx: { fontSize: { xs: 52, lg: 77 } },
|
|
872
|
-
children:
|
|
872
|
+
children: x
|
|
873
873
|
}
|
|
874
874
|
)
|
|
875
875
|
]
|
|
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
|
+
n && /* @__PURE__ */ e(T, { onClick: c, children: n })
|
|
891
891
|
]
|
|
892
892
|
}
|
|
893
893
|
)
|
|
@@ -896,82 +896,82 @@ const et = ({
|
|
|
896
896
|
]
|
|
897
897
|
}
|
|
898
898
|
);
|
|
899
|
-
},
|
|
899
|
+
}, rt = ({
|
|
900
900
|
text: t,
|
|
901
|
-
buttonLabel:
|
|
902
|
-
onClick:
|
|
903
|
-
imgAlt:
|
|
901
|
+
buttonLabel: i = "Conoce más",
|
|
902
|
+
onClick: r,
|
|
903
|
+
imgAlt: n = "Club Olimpo",
|
|
904
904
|
imgSrcMobile: c,
|
|
905
905
|
imgSrcDesktopBg: o,
|
|
906
|
-
imgSrcDesktopLogo:
|
|
907
|
-
}) => /* @__PURE__ */
|
|
906
|
+
imgSrcDesktopLogo: a
|
|
907
|
+
}) => /* @__PURE__ */ p(V, { children: [
|
|
908
908
|
/* @__PURE__ */ e("div", { className: "orc-co-bgMobile", children: /* @__PURE__ */ e(
|
|
909
909
|
"img",
|
|
910
910
|
{
|
|
911
911
|
src: c,
|
|
912
|
-
alt:
|
|
912
|
+
alt: n,
|
|
913
913
|
className: "orc-co-bgMobileImg"
|
|
914
914
|
}
|
|
915
915
|
) }),
|
|
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: `${n} fondo`,
|
|
922
922
|
className: "orc-co-bgDesktopImg"
|
|
923
923
|
}
|
|
924
924
|
) }),
|
|
925
|
-
|
|
925
|
+
a && /* @__PURE__ */ e("div", { className: "orc-co-logo", children: /* @__PURE__ */ e(
|
|
926
926
|
"img",
|
|
927
927
|
{
|
|
928
|
-
src:
|
|
929
|
-
alt: `${
|
|
928
|
+
src: a,
|
|
929
|
+
alt: `${n} logo`,
|
|
930
930
|
className: "orc-co-logoImg"
|
|
931
931
|
}
|
|
932
932
|
) }),
|
|
933
|
-
/* @__PURE__ */
|
|
933
|
+
/* @__PURE__ */ p("div", { className: "orc-co-desktopContent", children: [
|
|
934
934
|
/* @__PURE__ */ e("p", { className: "orc-co-captionDesktop", children: t }),
|
|
935
|
-
/* @__PURE__ */ e(T, { onClick:
|
|
935
|
+
/* @__PURE__ */ e(T, { 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(T, { onClick:
|
|
940
|
+
/* @__PURE__ */ e(T, { onClick: r, variant: "primary", size: "md", children: i })
|
|
941
941
|
] })
|
|
942
|
-
] }),
|
|
943
|
-
card:
|
|
944
|
-
combinadas:
|
|
945
|
-
apuestaItem:
|
|
946
|
-
lineContainer:
|
|
947
|
-
circle:
|
|
948
|
-
line:
|
|
949
|
-
apuestaText:
|
|
950
|
-
cuotaTotal:
|
|
942
|
+
] }), at = "oraculo__OraculoEventCombinadasCard-module__card___ulQeY", it = "oraculo__OraculoEventCombinadasCard-module__combinadas___Gxrld", st = "oraculo__OraculoEventCombinadasCard-module__apuestaItem___YnYMy", ct = "oraculo__OraculoEventCombinadasCard-module__lineContainer___G5rbU", lt = "oraculo__OraculoEventCombinadasCard-module__circle___eehm-", dt = "oraculo__OraculoEventCombinadasCard-module__line___Eb2pK", pt = "oraculo__OraculoEventCombinadasCard-module__apuestaText___b5s7S", mt = "oraculo__OraculoEventCombinadasCard-module__cuotaTotal___Lohvu", H = {
|
|
943
|
+
card: at,
|
|
944
|
+
combinadas: it,
|
|
945
|
+
apuestaItem: st,
|
|
946
|
+
lineContainer: ct,
|
|
947
|
+
circle: lt,
|
|
948
|
+
line: dt,
|
|
949
|
+
apuestaText: pt,
|
|
950
|
+
cuotaTotal: mt
|
|
951
951
|
};
|
|
952
|
-
function
|
|
953
|
-
var
|
|
954
|
-
function
|
|
955
|
-
var
|
|
956
|
-
const o = (
|
|
957
|
-
var
|
|
958
|
-
let
|
|
959
|
-
return ["Más de", "Mas de", "Over"].includes(
|
|
960
|
-
id: (
|
|
961
|
-
value:
|
|
962
|
-
label:
|
|
963
|
-
odds: (k =
|
|
964
|
-
bl: (
|
|
952
|
+
function ut({ event: t }) {
|
|
953
|
+
var n;
|
|
954
|
+
function i(c) {
|
|
955
|
+
var x;
|
|
956
|
+
const o = (x = c.betoffers) != null ? x : [], a = c.homeName, m = c.awayName, g = o.map((w) => {
|
|
957
|
+
var u, _, k, E;
|
|
958
|
+
let s = w.outcomes[0], d = "", l = s != null && s.line ? s.line / 1e3 : "";
|
|
959
|
+
return ["Más de", "Mas de", "Over"].includes(s == null ? void 0 : s.label) ? (d = `Más de ${l}`, s != null && s.participant && (d = `${s.participant} - ${d}`)) : ["Menos de", "Menos"].includes(s == null ? void 0 : s.label) ? (d = `Menos de ${l}`, s != null && s.participant && (d = `${s.participant} - ${d}`)) : ["Sí", "No"].includes(s == null ? void 0 : s.label) ? (d = s == null ? void 0 : s.label, s != null && s.participant && (d = `${s.participant} - ${d}`)) : ["1X", "12", "X2"].includes(s == null ? void 0 : s.label) ? s.label === "1X" ? d = `${a} o Empate` : s.label === "12" ? d = `${a} o ${m}` : s.label === "X2" && (d = `${m} o Empate`) : (s != null && s.participant ? d = s.participant : d = (u = s == null ? void 0 : s.label) != null ? u : "", l !== "" && d === s.label && (d = `${s.label} ${l}`)), {
|
|
960
|
+
id: (_ = s == null ? void 0 : s.id) != null ? _ : 0,
|
|
961
|
+
value: d,
|
|
962
|
+
label: w.criterion.label,
|
|
963
|
+
odds: (k = s == null ? void 0 : s.odds) != null ? k : 0,
|
|
964
|
+
bl: (E = s == null ? void 0 : s.label) != null ? E : 0
|
|
965
965
|
};
|
|
966
|
-
}),
|
|
966
|
+
}), v = g.reduce((w, s) => w + s.odds, 0) / 1e3;
|
|
967
967
|
return {
|
|
968
968
|
outcomes: g,
|
|
969
|
-
total:
|
|
969
|
+
total: v.toFixed(2)
|
|
970
970
|
};
|
|
971
971
|
}
|
|
972
|
-
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(A, { 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(A, { 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,127 +994,131 @@ 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((a) => a == null ? void 0 : a.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: (((n = t.combinadoTotal) != null ? n : 0) / 1e3).toFixed(2) })
|
|
1004
1004
|
] }),
|
|
1005
1005
|
/* @__PURE__ */ e("img", { src: "/assets/img/home/Combinadas/cuotaTotal.svg", alt: "cuota total" })
|
|
1006
1006
|
] })
|
|
1007
1007
|
] });
|
|
1008
1008
|
}
|
|
1009
|
-
function
|
|
1010
|
-
var c, o,
|
|
1009
|
+
function gt({ event: t, liveData: i, betOffers: r, fondo: n = "/assets/img/home/EnVivo/fondo.png" }) {
|
|
1010
|
+
var c, o, a, m, g, v, x, w, s, d, l;
|
|
1011
1011
|
return /* @__PURE__ */ e("div", { style: {
|
|
1012
|
-
backgroundImage: `url(${
|
|
1012
|
+
backgroundImage: `url(${n})`,
|
|
1013
1013
|
backgroundSize: "cover",
|
|
1014
1014
|
height: "160px",
|
|
1015
1015
|
width: "296px",
|
|
1016
1016
|
padding: "12px 16px",
|
|
1017
1017
|
borderRadius: "16px"
|
|
1018
|
-
}, children: /* @__PURE__ */
|
|
1019
|
-
/* @__PURE__ */
|
|
1018
|
+
}, children: /* @__PURE__ */ p(A, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1019
|
+
/* @__PURE__ */ p(A, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
1020
1020
|
/* @__PURE__ */ e(
|
|
1021
|
-
|
|
1021
|
+
Ae,
|
|
1022
1022
|
{
|
|
1023
1023
|
title: (c = t.path[0].name) != null ? c : "",
|
|
1024
1024
|
subtitle: t.group,
|
|
1025
1025
|
live: !0,
|
|
1026
|
-
time: (
|
|
1026
|
+
time: (a = (o = i == null ? void 0 : i.matchClock) == null ? void 0 : o.minute) != null ? a : ""
|
|
1027
1027
|
}
|
|
1028
1028
|
),
|
|
1029
|
-
/* @__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
|
+
ee,
|
|
1032
1032
|
{
|
|
1033
1033
|
name: t.homeName,
|
|
1034
1034
|
logo: "/assets/img/home/EnVivo/Juventus.png"
|
|
1035
1035
|
}
|
|
1036
1036
|
),
|
|
1037
|
-
/* @__PURE__ */ e(
|
|
1038
|
-
/* @__PURE__ */ e(
|
|
1037
|
+
/* @__PURE__ */ e(ye, { text: ((g = (m = i == null ? void 0 : i.score) == null ? void 0 : m.home) != null ? g : 0) + ":" + ((x = (v = i == null ? void 0 : i.score) == null ? void 0 : v.away) != null ? x : 0), name: "En vivo" }),
|
|
1038
|
+
/* @__PURE__ */ e(ee, { name: t.awayName, logo: "/assets/img/home/EnVivo/Racing.png" })
|
|
1039
1039
|
] }) })
|
|
1040
1040
|
] }),
|
|
1041
|
-
/* @__PURE__ */
|
|
1042
|
-
/* @__PURE__ */ e(D, { spacing: 1, children: ((
|
|
1043
|
-
/* @__PURE__ */ e(D, { spacing: 2, children: ((l = (
|
|
1044
|
-
console.log(
|
|
1045
|
-
}, children:
|
|
1041
|
+
/* @__PURE__ */ p(A, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1042
|
+
/* @__PURE__ */ e(D, { spacing: 1, children: ((s = (w = r == null ? void 0 : r[0]) == null ? void 0 : w.outcomes) != null ? s : []).map((u, _) => /* @__PURE__ */ e(ve, { text: u.label.toUpperCase() }, _)) }),
|
|
1043
|
+
/* @__PURE__ */ e(D, { spacing: 2, children: ((l = (d = r == null ? void 0 : r[0]) == null ? void 0 : d.outcomes) != null ? l : []).map((u, _) => /* @__PURE__ */ e(T, { variant: "primary", disabled: u.odds == null, onClick: () => {
|
|
1044
|
+
console.log(u.id);
|
|
1045
|
+
}, children: u.odds === void 0 ? "X" : (u.odds / 1e3).toFixed(2) }, _)) })
|
|
1046
1046
|
] })
|
|
1047
1047
|
] }) });
|
|
1048
1048
|
}
|
|
1049
|
-
const
|
|
1050
|
-
date:
|
|
1049
|
+
const ht = "oraculo__OraculoEventDate-module__date___xhIlh", ft = {
|
|
1050
|
+
date: ht
|
|
1051
1051
|
};
|
|
1052
|
-
function
|
|
1053
|
-
return /* @__PURE__ */ e("div", { className: `oli-font ${
|
|
1052
|
+
function xt({ text: t }) {
|
|
1053
|
+
return /* @__PURE__ */ e("div", { className: `oli-font ${ft.date}`, children: t });
|
|
1054
1054
|
}
|
|
1055
|
-
const
|
|
1056
|
-
cardContainer:
|
|
1057
|
-
cardBackground:
|
|
1058
|
-
jugadas:
|
|
1055
|
+
const bt = "oraculo__OraculoEventSemanaCard-module__cardContainer___4JuDe", vt = "oraculo__OraculoEventSemanaCard-module__cardBackground___vfalD", yt = "oraculo__OraculoEventSemanaCard-module__jugadas___W8b7H", oe = {
|
|
1056
|
+
cardContainer: bt,
|
|
1057
|
+
cardBackground: vt,
|
|
1058
|
+
jugadas: yt
|
|
1059
1059
|
};
|
|
1060
|
-
function
|
|
1061
|
-
var
|
|
1062
|
-
function
|
|
1063
|
-
const
|
|
1060
|
+
function _t({ event: t }) {
|
|
1061
|
+
var r, n, c, o, a, m, g;
|
|
1062
|
+
function i(v) {
|
|
1063
|
+
const x = new Date(v), w = x.toLocaleDateString("es-ES", {
|
|
1064
1064
|
weekday: "short"
|
|
1065
|
-
}).toUpperCase(),
|
|
1066
|
-
let l =
|
|
1065
|
+
}).toUpperCase(), s = x.getDate().toString().padStart(2, "0"), d = (x.getMonth() + 1).toString().padStart(2, "0");
|
|
1066
|
+
let l = x.toLocaleTimeString("es-PE", {
|
|
1067
1067
|
hour: "numeric",
|
|
1068
1068
|
minute: "2-digit",
|
|
1069
1069
|
hour12: !0
|
|
1070
1070
|
}).toUpperCase();
|
|
1071
|
-
return l = l.replace(/\./g, "").replace(/A\s*M/i, "AM").replace(/P\s*M/i, "PM"), `${
|
|
1071
|
+
return l = l.replace(/\./g, "").replace(/A\s*M/i, "AM").replace(/P\s*M/i, "PM"), `${w} ${s}/${d} | ${l}`;
|
|
1072
1072
|
}
|
|
1073
|
-
return /* @__PURE__ */
|
|
1074
|
-
/* @__PURE__ */ e(
|
|
1075
|
-
/* @__PURE__ */ e("div", { className:
|
|
1076
|
-
/* @__PURE__ */
|
|
1077
|
-
/* @__PURE__ */
|
|
1073
|
+
return /* @__PURE__ */ p("div", { className: oe.cardContainer, children: [
|
|
1074
|
+
/* @__PURE__ */ e(Me, { title: (r = t.group) != null ? r : "" }),
|
|
1075
|
+
/* @__PURE__ */ e("div", { className: oe.cardBackground, children: /* @__PURE__ */ p(A, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
1076
|
+
/* @__PURE__ */ p(A, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1077
|
+
/* @__PURE__ */ p(D, { spacing: 1, columns: "1fr auto 1fr", children: [
|
|
1078
1078
|
/* @__PURE__ */ e(
|
|
1079
|
-
|
|
1079
|
+
ee,
|
|
1080
1080
|
{
|
|
1081
1081
|
name: t.awayName,
|
|
1082
1082
|
logo: "/assets/img/home/EventoSemana/Flamengo.png",
|
|
1083
1083
|
size: "compact"
|
|
1084
1084
|
}
|
|
1085
1085
|
),
|
|
1086
|
-
/* @__PURE__ */ e(
|
|
1087
|
-
/* @__PURE__ */ e(
|
|
1086
|
+
/* @__PURE__ */ e(ye, { text: "vs.", name: "", size: "small" }),
|
|
1087
|
+
/* @__PURE__ */ e(ee, { name: t.homeName, logo: "/assets/img/home/EventoSemana/RealMadrid.png", size: "compact" })
|
|
1088
1088
|
] }),
|
|
1089
|
-
/* @__PURE__ */ e(
|
|
1089
|
+
/* @__PURE__ */ e(xt, { text: i(t.start) })
|
|
1090
1090
|
] }),
|
|
1091
|
-
/* @__PURE__ */
|
|
1092
|
-
/* @__PURE__ */ e(D, { spacing: 1, children: ((o = (c = (
|
|
1093
|
-
/* @__PURE__ */ e("div", { className:
|
|
1094
|
-
console.log(
|
|
1095
|
-
}, children: (
|
|
1091
|
+
/* @__PURE__ */ p(A, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
1092
|
+
/* @__PURE__ */ e(D, { spacing: 1, children: ((o = (c = (n = t == null ? void 0 : t.outcome) == null ? void 0 : n[0]) == null ? void 0 : c.outcomes) != null ? o : []).map((v, x) => /* @__PURE__ */ e(ve, { text: v.label.toUpperCase() }, x)) }),
|
|
1093
|
+
/* @__PURE__ */ e("div", { className: oe.jugadas, children: /* @__PURE__ */ e(D, { spacing: 1, children: ((g = (m = (a = t == null ? void 0 : t.outcome) == null ? void 0 : a[0]) == null ? void 0 : m.outcomes) != null ? g : []).map((v, x) => /* @__PURE__ */ e(T, { variant: "primary", fullHeight: !0, onClick: () => {
|
|
1094
|
+
console.log(v.id);
|
|
1095
|
+
}, children: (v.odds / 1e3).toFixed(2) }, x)) }) })
|
|
1096
1096
|
] })
|
|
1097
1097
|
] }) })
|
|
1098
1098
|
] });
|
|
1099
1099
|
}
|
|
1100
|
-
function
|
|
1100
|
+
function St({
|
|
1101
1101
|
items: t,
|
|
1102
|
-
title:
|
|
1103
|
-
iconUrl:
|
|
1104
|
-
onViewMore:
|
|
1102
|
+
title: i = "Destacados",
|
|
1103
|
+
iconUrl: r,
|
|
1104
|
+
onViewMore: n,
|
|
1105
1105
|
className: c = ""
|
|
1106
1106
|
}) {
|
|
1107
|
-
const o =
|
|
1108
|
-
var
|
|
1109
|
-
(
|
|
1110
|
-
},
|
|
1111
|
-
var
|
|
1112
|
-
(
|
|
1113
|
-
},
|
|
1114
|
-
|
|
1107
|
+
const o = G(null), [a, m] = U({ isStart: !0, isEnd: !1 }), g = () => {
|
|
1108
|
+
var d;
|
|
1109
|
+
(d = o.current) == null || d.prev();
|
|
1110
|
+
}, v = () => {
|
|
1111
|
+
var d;
|
|
1112
|
+
(d = o.current) == null || d.next(), console.log("items: ", t);
|
|
1113
|
+
}, x = () => {
|
|
1114
|
+
n == null || n();
|
|
1115
|
+
}, w = (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,17 +1130,17 @@ 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
|
T,
|
|
1133
1137
|
{
|
|
1134
1138
|
ariaLabel: "Anterior",
|
|
1135
1139
|
variant: "secondary",
|
|
1136
1140
|
iconOnly: !0,
|
|
1137
|
-
leftIcon: /* @__PURE__ */ e(
|
|
1141
|
+
leftIcon: /* @__PURE__ */ e(ae, {}),
|
|
1138
1142
|
onClick: g,
|
|
1139
|
-
disabled:
|
|
1143
|
+
disabled: a.isStart
|
|
1140
1144
|
}
|
|
1141
1145
|
),
|
|
1142
1146
|
/* @__PURE__ */ e(
|
|
@@ -1145,13 +1149,13 @@ function vt({
|
|
|
1145
1149
|
ariaLabel: "Siguiente",
|
|
1146
1150
|
variant: "secondary",
|
|
1147
1151
|
iconOnly: !0,
|
|
1148
|
-
rightIcon: /* @__PURE__ */ e(
|
|
1149
|
-
onClick:
|
|
1150
|
-
disabled:
|
|
1152
|
+
rightIcon: /* @__PURE__ */ e(ie, {}),
|
|
1153
|
+
onClick: v,
|
|
1154
|
+
disabled: a.isEnd
|
|
1151
1155
|
}
|
|
1152
1156
|
)
|
|
1153
1157
|
] }),
|
|
1154
|
-
/* @__PURE__ */ e(T, { variant: "secondary", onClick:
|
|
1158
|
+
/* @__PURE__ */ e(T, { variant: "secondary", onClick: x, 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: () => w(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 wt = (t) => {
|
|
1207
|
+
var s, d, l, u, _, k;
|
|
1208
|
+
if (typeof window == "undefined") return;
|
|
1209
|
+
const i = (d = (s = t.name) != null ? s : t.web_name) != null ? d : "", r = (l = t.provider) != null ? l : "", n = (u = t.machine) != null ? u : "", c = (_ = t.external_id) != null ? _ : "", o = (k = t.type) != null ? k : "", a = encodeURIComponent(String(r)), m = encodeURIComponent(String(n)), g = encodeURIComponent(String(i)), v = encodeURIComponent(String(c)), x = encodeURIComponent(String(o)), w = `https://www.olimpo.bet/casino?${m}?provider=${a}&name=${g}&external_id=${v}&type=${x}`;
|
|
1210
|
+
window.location.href = w;
|
|
1211
|
+
};
|
|
1212
|
+
function Ct({
|
|
1201
1213
|
items: t,
|
|
1202
|
-
title:
|
|
1203
|
-
iconUrl:
|
|
1204
|
-
onCardClick:
|
|
1214
|
+
title: i = "Top Juegos",
|
|
1215
|
+
iconUrl: r,
|
|
1216
|
+
onCardClick: n
|
|
1205
1217
|
}) {
|
|
1206
|
-
const c =
|
|
1207
|
-
() => t.map((o,
|
|
1208
|
-
var
|
|
1218
|
+
const c = re(
|
|
1219
|
+
() => t.map((o, a) => {
|
|
1220
|
+
var m;
|
|
1209
1221
|
return {
|
|
1210
1222
|
...o,
|
|
1211
1223
|
// si no viene orden, usamos el índice (1-based)
|
|
1212
|
-
orden: (
|
|
1213
|
-
_originalIndex:
|
|
1224
|
+
orden: (m = o.orden) != null ? m : a + 1,
|
|
1225
|
+
_originalIndex: a
|
|
1214
1226
|
};
|
|
1215
|
-
}).sort((o,
|
|
1227
|
+
}).sort((o, a) => o.orden != null && a.orden != null ? o.orden - a.orden : o._originalIndex - a._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(A, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
1231
|
+
/* @__PURE__ */ e(X, { title: i, iconUrl: r, size: "md" }),
|
|
1220
1232
|
/* @__PURE__ */ e(
|
|
1221
|
-
|
|
1233
|
+
C,
|
|
1222
1234
|
{
|
|
1223
1235
|
sx: {
|
|
1224
1236
|
display: "grid",
|
|
@@ -1231,13 +1243,15 @@ function yt({
|
|
|
1231
1243
|
width: "100%"
|
|
1232
1244
|
},
|
|
1233
1245
|
children: c.slice(0, 6).map((o) => {
|
|
1234
|
-
var
|
|
1246
|
+
var a;
|
|
1235
1247
|
return /* @__PURE__ */ e(
|
|
1236
|
-
|
|
1248
|
+
ot,
|
|
1237
1249
|
{
|
|
1238
|
-
imageUrl: `https://olimpo.bet${(
|
|
1250
|
+
imageUrl: `https://olimpo.bet${(a = o.logo) != null ? a : ""}`,
|
|
1239
1251
|
orden: o.orden,
|
|
1240
|
-
onClick: () =>
|
|
1252
|
+
onClick: () => {
|
|
1253
|
+
n ? n(o) : wt(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 Et = (t, i) => {
|
|
1264
|
+
var r, n;
|
|
1265
|
+
return (n = (r = t.orden) != null ? r : t.machine) != null ? n : i;
|
|
1266
|
+
}, $t = (t) => {
|
|
1267
|
+
var s, d, l, u, _, k;
|
|
1268
|
+
if (typeof window == "undefined") return;
|
|
1269
|
+
const i = (d = (s = t.name) != null ? s : t.web_name) != null ? d : "", r = (l = t.provider) != null ? l : "", n = (u = t.machine) != null ? u : "", c = (_ = t.external_id) != null ? _ : "", o = (k = t.type) != null ? k : "Live", a = encodeURIComponent(String(r)), m = encodeURIComponent(String(n)), g = encodeURIComponent(String(i)), v = encodeURIComponent(String(c)), x = encodeURIComponent(String(o)), w = `https://www.olimpo.bet/casino-en-vivo?${m}?provider=${a}&name=${g}&external_id=${v}&type=${x}`;
|
|
1270
|
+
window.location.href = w;
|
|
1271
|
+
}, It = ({
|
|
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: n = "",
|
|
1254
1276
|
backgroundDesktopUrl: c = "",
|
|
1255
1277
|
onCardClick: o,
|
|
1256
|
-
onViewMore:
|
|
1257
|
-
className:
|
|
1258
|
-
}) => /* @__PURE__ */
|
|
1259
|
-
|
|
1278
|
+
onViewMore: a,
|
|
1279
|
+
className: m
|
|
1280
|
+
}) => /* @__PURE__ */ p(
|
|
1281
|
+
C,
|
|
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
|
+
C,
|
|
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('${n}')
|
|
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
|
+
C,
|
|
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(A, { 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,21 +1357,21 @@ 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(
|
|
1363
|
+
/* @__PURE__ */ e(C, { sx: { display: { xs: "none", md: "block" } }, children: /* @__PURE__ */ e(
|
|
1342
1364
|
T,
|
|
1343
1365
|
{
|
|
1344
1366
|
variant: "primary",
|
|
1345
1367
|
size: "md",
|
|
1346
|
-
onClick: () =>
|
|
1368
|
+
onClick: () => a == null ? void 0 : a(),
|
|
1347
1369
|
children: "Ver más"
|
|
1348
1370
|
}
|
|
1349
1371
|
) })
|
|
1350
1372
|
] }),
|
|
1351
1373
|
/* @__PURE__ */ e(
|
|
1352
|
-
|
|
1374
|
+
C,
|
|
1353
1375
|
{
|
|
1354
1376
|
sx: {
|
|
1355
1377
|
display: "flex",
|
|
@@ -1359,28 +1381,30 @@ 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
|
|
1384
|
+
children: (t != null ? t : []).slice(0, 3).map((g, v) => {
|
|
1385
|
+
var x;
|
|
1364
1386
|
return /* @__PURE__ */ e(
|
|
1365
|
-
|
|
1387
|
+
nt,
|
|
1366
1388
|
{
|
|
1367
|
-
logo: `https://olimpo.bet${(
|
|
1389
|
+
logo: `https://olimpo.bet${(x = g.logo) != null ? x : ""}`,
|
|
1368
1390
|
provider: g.provider,
|
|
1369
1391
|
providerName: g.web_name,
|
|
1370
1392
|
machine: g.machine,
|
|
1371
|
-
onClick: () =>
|
|
1393
|
+
onClick: () => {
|
|
1394
|
+
o ? o(g, v) : $t(g);
|
|
1395
|
+
}
|
|
1372
1396
|
},
|
|
1373
|
-
(
|
|
1397
|
+
Et(g, v)
|
|
1374
1398
|
);
|
|
1375
1399
|
})
|
|
1376
1400
|
}
|
|
1377
1401
|
),
|
|
1378
|
-
/* @__PURE__ */ e(
|
|
1402
|
+
/* @__PURE__ */ e(C, { sx: { display: { xs: "block", md: "none" } }, children: /* @__PURE__ */ e(
|
|
1379
1403
|
T,
|
|
1380
1404
|
{
|
|
1381
1405
|
variant: "primary",
|
|
1382
1406
|
size: "lg",
|
|
1383
|
-
onClick: () =>
|
|
1407
|
+
onClick: () => a == null ? void 0 : a(),
|
|
1384
1408
|
children: "Ver más"
|
|
1385
1409
|
}
|
|
1386
1410
|
) })
|
|
@@ -1389,55 +1413,63 @@ const _t = ({
|
|
|
1389
1413
|
)
|
|
1390
1414
|
]
|
|
1391
1415
|
}
|
|
1392
|
-
),
|
|
1393
|
-
|
|
1394
|
-
|
|
1416
|
+
), Se = (t, i) => {
|
|
1417
|
+
var r, n;
|
|
1418
|
+
return (n = (r = t.orden) != null ? r : t.machine) != null ? n : i;
|
|
1419
|
+
}, kt = (t) => {
|
|
1420
|
+
var s, d, l, u, _;
|
|
1421
|
+
if (typeof window == "undefined") return;
|
|
1422
|
+
const i = (s = t.name) != null ? s : "", r = (d = t.provider) != null ? d : "", n = (l = t.machine) != null ? l : "", c = (u = t.external_id) != null ? u : "", o = (_ = t.type) != null ? _ : "Casino", a = encodeURIComponent(String(r)), m = encodeURIComponent(String(n)), g = encodeURIComponent(String(i)), v = encodeURIComponent(String(c)), x = encodeURIComponent(String(o)), w = `https://www.olimpo.bet/casino?${m}?provider=${a}&name=${g}&external_id=${v}&type=${x}`;
|
|
1423
|
+
window.location.href = w;
|
|
1424
|
+
}, Nt = (t, i = !0, r = 4) => {
|
|
1425
|
+
const n = t.map((a, m) => {
|
|
1426
|
+
var g;
|
|
1395
1427
|
return {
|
|
1396
|
-
id: (
|
|
1397
|
-
imageUrl: (
|
|
1428
|
+
id: Se(a, m),
|
|
1429
|
+
imageUrl: (g = a.logo) != null ? g : ""
|
|
1398
1430
|
};
|
|
1399
1431
|
});
|
|
1400
|
-
if (!
|
|
1432
|
+
if (!n.length) return [];
|
|
1401
1433
|
const c = [];
|
|
1402
1434
|
let o = 0;
|
|
1403
|
-
if (
|
|
1404
|
-
const
|
|
1435
|
+
if (i) {
|
|
1436
|
+
const a = Math.min(n.length, 5);
|
|
1405
1437
|
c.push({
|
|
1406
1438
|
id: "mosaic-0",
|
|
1407
1439
|
kind: "mosaic",
|
|
1408
|
-
items:
|
|
1409
|
-
}), o =
|
|
1440
|
+
items: n.slice(0, a)
|
|
1441
|
+
}), o = a;
|
|
1410
1442
|
}
|
|
1411
|
-
for (; o <
|
|
1412
|
-
const
|
|
1443
|
+
for (; o < n.length; ) {
|
|
1444
|
+
const a = Math.min(o + r, n.length);
|
|
1413
1445
|
c.push({
|
|
1414
1446
|
id: `grid-${o}`,
|
|
1415
1447
|
kind: "grid",
|
|
1416
|
-
items:
|
|
1417
|
-
}), o =
|
|
1448
|
+
items: n.slice(o, a)
|
|
1449
|
+
}), o = a;
|
|
1418
1450
|
}
|
|
1419
1451
|
return c;
|
|
1420
|
-
},
|
|
1452
|
+
}, Ot = ({
|
|
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: n,
|
|
1425
1457
|
onViewMore: c,
|
|
1426
1458
|
mosaicFirst: o = !0,
|
|
1427
|
-
gridSize:
|
|
1459
|
+
gridSize: a = 4
|
|
1428
1460
|
}) => {
|
|
1429
|
-
const
|
|
1461
|
+
const m = G(null), [g, v] = U({ isStart: !0, isEnd: !1 }), x = Nt(t, o, a), w = () => {
|
|
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(A, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
1471
|
+
/* @__PURE__ */ p(
|
|
1472
|
+
C,
|
|
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
|
+
C,
|
|
1460
1492
|
{
|
|
1461
1493
|
sx: {
|
|
1462
1494
|
display: "flex",
|
|
@@ -1470,8 +1502,8 @@ const _t = ({
|
|
|
1470
1502
|
ariaLabel: "Anterior",
|
|
1471
1503
|
variant: "secondary",
|
|
1472
1504
|
iconOnly: !0,
|
|
1473
|
-
leftIcon: /* @__PURE__ */ e(
|
|
1474
|
-
onClick:
|
|
1505
|
+
leftIcon: /* @__PURE__ */ e(fe, {}),
|
|
1506
|
+
onClick: w,
|
|
1475
1507
|
disabled: g.isStart
|
|
1476
1508
|
}
|
|
1477
1509
|
),
|
|
@@ -1481,23 +1513,23 @@ const _t = ({
|
|
|
1481
1513
|
ariaLabel: "Siguiente",
|
|
1482
1514
|
variant: "secondary",
|
|
1483
1515
|
iconOnly: !0,
|
|
1484
|
-
rightIcon: /* @__PURE__ */ e(
|
|
1485
|
-
onClick:
|
|
1516
|
+
rightIcon: /* @__PURE__ */ e(xe, {}),
|
|
1517
|
+
onClick: s,
|
|
1486
1518
|
disabled: g.isEnd
|
|
1487
1519
|
}
|
|
1488
1520
|
)
|
|
1489
1521
|
]
|
|
1490
1522
|
}
|
|
1491
1523
|
),
|
|
1492
|
-
/* @__PURE__ */ e(
|
|
1524
|
+
/* @__PURE__ */ e(C, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ e(T, { 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:
|
|
1500
|
-
items:
|
|
1531
|
+
ref: m,
|
|
1532
|
+
items: x,
|
|
1501
1533
|
perPage: 1,
|
|
1502
1534
|
gap: "0px",
|
|
1503
1535
|
options: {
|
|
@@ -1510,74 +1542,79 @@ const _t = ({
|
|
|
1510
1542
|
focus: "start"
|
|
1511
1543
|
},
|
|
1512
1544
|
renderItem: (l) => /* @__PURE__ */ e("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ e(
|
|
1513
|
-
|
|
1545
|
+
_e,
|
|
1514
1546
|
{
|
|
1515
1547
|
items: l.items,
|
|
1516
1548
|
layout: l.kind === "mosaic" ? "mosaic" : "grid",
|
|
1517
|
-
onClick: (
|
|
1518
|
-
const
|
|
1519
|
-
(k,
|
|
1520
|
-
var O;
|
|
1521
|
-
return ((O = k.orden) != null ? O : w) === p.id;
|
|
1522
|
-
}
|
|
1549
|
+
onClick: (u) => {
|
|
1550
|
+
const _ = t.find(
|
|
1551
|
+
(k, E) => Se(k, E) === u.id
|
|
1523
1552
|
);
|
|
1524
|
-
|
|
1553
|
+
_ && (n ? n(_) : kt(_));
|
|
1525
1554
|
}
|
|
1526
1555
|
}
|
|
1527
1556
|
) }),
|
|
1528
|
-
onMove: ({ isStart: l, isEnd:
|
|
1557
|
+
onMove: ({ isStart: l, isEnd: u }) => v({ isStart: l, isEnd: u })
|
|
1529
1558
|
}
|
|
1530
1559
|
)
|
|
1531
1560
|
] }) });
|
|
1532
|
-
},
|
|
1533
|
-
|
|
1534
|
-
|
|
1561
|
+
}, we = (t, i) => {
|
|
1562
|
+
var r, n;
|
|
1563
|
+
return (n = (r = t.orden) != null ? r : t.machine) != null ? n : i;
|
|
1564
|
+
}, Rt = (t) => {
|
|
1565
|
+
var s, d, l, u, _;
|
|
1566
|
+
if (typeof window == "undefined") return;
|
|
1567
|
+
const i = (s = t.name) != null ? s : "", r = (d = t.provider) != null ? d : "", n = (l = t.machine) != null ? l : "", c = (u = t.external_id) != null ? u : "", o = (_ = t.type) != null ? _ : "Virtuales", a = encodeURIComponent(String(r)), m = encodeURIComponent(String(n)), g = encodeURIComponent(String(i)), v = encodeURIComponent(String(c)), x = encodeURIComponent(String(o)), w = `https://www.olimpo.bet/juegos-virtuales?${m}?provider=${a}&name=${g}&external_id=${v}&type=${x}`;
|
|
1568
|
+
window.location.href = w;
|
|
1569
|
+
}, Tt = (t, i = !0, r = 4) => {
|
|
1570
|
+
const n = t.map((a, m) => {
|
|
1571
|
+
var g;
|
|
1535
1572
|
return {
|
|
1536
|
-
id: (
|
|
1537
|
-
imageUrl: (
|
|
1573
|
+
id: we(a, m),
|
|
1574
|
+
imageUrl: (g = a.logo) != null ? g : ""
|
|
1538
1575
|
};
|
|
1539
1576
|
});
|
|
1540
|
-
if (!
|
|
1577
|
+
if (!n.length) return [];
|
|
1541
1578
|
const c = [];
|
|
1542
1579
|
let o = 0;
|
|
1543
|
-
if (
|
|
1544
|
-
const
|
|
1580
|
+
if (i) {
|
|
1581
|
+
const a = Math.min(n.length, 5);
|
|
1545
1582
|
c.push({
|
|
1546
1583
|
id: "mosaic-0",
|
|
1547
1584
|
kind: "mosaic",
|
|
1548
|
-
items:
|
|
1549
|
-
}), o =
|
|
1585
|
+
items: n.slice(0, a)
|
|
1586
|
+
}), o = a;
|
|
1550
1587
|
}
|
|
1551
|
-
for (; o <
|
|
1552
|
-
const
|
|
1588
|
+
for (; o < n.length; ) {
|
|
1589
|
+
const a = Math.min(o + r, n.length);
|
|
1553
1590
|
c.push({
|
|
1554
1591
|
id: `grid-${o}`,
|
|
1555
1592
|
kind: "grid",
|
|
1556
|
-
items:
|
|
1557
|
-
}), o =
|
|
1593
|
+
items: n.slice(o, a)
|
|
1594
|
+
}), o = a;
|
|
1558
1595
|
}
|
|
1559
1596
|
return c;
|
|
1560
|
-
},
|
|
1597
|
+
}, Pt = ({
|
|
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: n,
|
|
1565
1602
|
onViewMore: c,
|
|
1566
1603
|
mosaicFirst: o = !0,
|
|
1567
|
-
gridSize:
|
|
1604
|
+
gridSize: a = 4
|
|
1568
1605
|
}) => {
|
|
1569
|
-
const
|
|
1606
|
+
const m = G(null), [g, v] = U({ isStart: !0, isEnd: !1 }), x = Tt(t, o, a), w = () => {
|
|
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(A, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
1616
|
+
/* @__PURE__ */ p(
|
|
1617
|
+
C,
|
|
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
|
+
C,
|
|
1600
1637
|
{
|
|
1601
1638
|
sx: {
|
|
1602
1639
|
display: "flex",
|
|
@@ -1610,8 +1647,8 @@ const _t = ({
|
|
|
1610
1647
|
ariaLabel: "Anterior",
|
|
1611
1648
|
variant: "secondary",
|
|
1612
1649
|
iconOnly: !0,
|
|
1613
|
-
leftIcon: /* @__PURE__ */ e(
|
|
1614
|
-
onClick:
|
|
1650
|
+
leftIcon: /* @__PURE__ */ e(fe, {}),
|
|
1651
|
+
onClick: w,
|
|
1615
1652
|
disabled: g.isStart
|
|
1616
1653
|
}
|
|
1617
1654
|
),
|
|
@@ -1621,23 +1658,23 @@ const _t = ({
|
|
|
1621
1658
|
ariaLabel: "Siguiente",
|
|
1622
1659
|
variant: "secondary",
|
|
1623
1660
|
iconOnly: !0,
|
|
1624
|
-
rightIcon: /* @__PURE__ */ e(
|
|
1625
|
-
onClick:
|
|
1661
|
+
rightIcon: /* @__PURE__ */ e(xe, {}),
|
|
1662
|
+
onClick: s,
|
|
1626
1663
|
disabled: g.isEnd
|
|
1627
1664
|
}
|
|
1628
1665
|
)
|
|
1629
1666
|
]
|
|
1630
1667
|
}
|
|
1631
1668
|
),
|
|
1632
|
-
/* @__PURE__ */ e(
|
|
1669
|
+
/* @__PURE__ */ e(C, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ e(T, { 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:
|
|
1640
|
-
items:
|
|
1676
|
+
ref: m,
|
|
1677
|
+
items: x,
|
|
1641
1678
|
perPage: 1,
|
|
1642
1679
|
gap: "0",
|
|
1643
1680
|
options: {
|
|
@@ -1651,26 +1688,23 @@ const _t = ({
|
|
|
1651
1688
|
perMove: 1
|
|
1652
1689
|
},
|
|
1653
1690
|
renderItem: (l) => /* @__PURE__ */ e("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ e(
|
|
1654
|
-
|
|
1691
|
+
_e,
|
|
1655
1692
|
{
|
|
1656
1693
|
items: l.items,
|
|
1657
1694
|
layout: l.kind === "mosaic" ? "mosaic" : "grid",
|
|
1658
|
-
onClick: (
|
|
1659
|
-
const
|
|
1660
|
-
(k,
|
|
1661
|
-
var O;
|
|
1662
|
-
return ((O = k.orden) != null ? O : w) === p.id;
|
|
1663
|
-
}
|
|
1695
|
+
onClick: (u) => {
|
|
1696
|
+
const _ = t.find(
|
|
1697
|
+
(k, E) => we(k, E) === u.id
|
|
1664
1698
|
);
|
|
1665
|
-
|
|
1699
|
+
_ && (n ? n(_) : Rt(_));
|
|
1666
1700
|
}
|
|
1667
1701
|
}
|
|
1668
1702
|
) }),
|
|
1669
|
-
onMove: ({ isStart: l, isEnd:
|
|
1703
|
+
onMove: ({ isStart: l, isEnd: u }) => v({ isStart: l, isEnd: u })
|
|
1670
1704
|
}
|
|
1671
1705
|
)
|
|
1672
1706
|
] }) });
|
|
1673
|
-
},
|
|
1707
|
+
}, Ft = (t) => ({
|
|
1674
1708
|
// width: "100vw",
|
|
1675
1709
|
position: "relative",
|
|
1676
1710
|
// left: "50%",
|
|
@@ -1689,15 +1723,15 @@ const _t = ({
|
|
|
1689
1723
|
backgroundRepeat: "no-repeat",
|
|
1690
1724
|
backgroundPosition: "center",
|
|
1691
1725
|
backgroundSize: "cover"
|
|
1692
|
-
}),
|
|
1726
|
+
}), de = {
|
|
1693
1727
|
textAlign: "center",
|
|
1694
1728
|
lineHeight: 1.1,
|
|
1695
1729
|
mb: 1.5
|
|
1696
|
-
},
|
|
1730
|
+
}, pe = {
|
|
1697
1731
|
display: "inline-block",
|
|
1698
1732
|
fontWeight: 600,
|
|
1699
1733
|
fontSize: 24
|
|
1700
|
-
},
|
|
1734
|
+
}, me = {
|
|
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
|
+
}, Ut = ({
|
|
1711
1745
|
headline: t,
|
|
1712
|
-
headline2:
|
|
1713
|
-
items:
|
|
1714
|
-
backgroundImageUrl:
|
|
1746
|
+
headline2: i,
|
|
1747
|
+
items: r,
|
|
1748
|
+
backgroundImageUrl: n
|
|
1715
1749
|
}) => {
|
|
1716
|
-
const c = t, o =
|
|
1717
|
-
return
|
|
1718
|
-
|
|
1750
|
+
const c = t, o = i, a = Te("(max-width: 767px)"), m = r.length > 1, g = n != null ? n : "", v = Ft(g), x = G(null), [w, s] = U({ isStart: !0, isEnd: !1 }), [d, l] = U(0);
|
|
1751
|
+
return a ? /* @__PURE__ */ p(
|
|
1752
|
+
C,
|
|
1719
1753
|
{
|
|
1720
1754
|
component: "section",
|
|
1721
1755
|
sx: {
|
|
1722
|
-
...
|
|
1756
|
+
...v,
|
|
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(C, { sx: de, children: [
|
|
1761
|
+
c && /* @__PURE__ */ e(M, { component: "span", sx: pe, children: c }),
|
|
1762
|
+
o && /* @__PURE__ */ p(V, { children: [
|
|
1729
1763
|
/* @__PURE__ */ e("br", {}),
|
|
1730
|
-
/* @__PURE__ */ e(
|
|
1764
|
+
/* @__PURE__ */ e(M, { component: "span", sx: me, children: o })
|
|
1731
1765
|
] })
|
|
1732
1766
|
] }),
|
|
1733
|
-
/* @__PURE__ */
|
|
1767
|
+
/* @__PURE__ */ p(C, { children: [
|
|
1734
1768
|
/* @__PURE__ */ e(
|
|
1735
1769
|
J,
|
|
1736
1770
|
{
|
|
1737
|
-
ref:
|
|
1738
|
-
items:
|
|
1771
|
+
ref: x,
|
|
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(le, { ...u, onButtonClick: r[0].onButtonClick }),
|
|
1791
|
+
onMove: ({ index: u, isStart: _, isEnd: k }) => {
|
|
1792
|
+
s({ isStart: _, isEnd: k }), l(u);
|
|
1759
1793
|
}
|
|
1760
1794
|
}
|
|
1761
1795
|
),
|
|
1762
|
-
|
|
1763
|
-
|
|
1796
|
+
m && /* @__PURE__ */ e(
|
|
1797
|
+
be,
|
|
1764
1798
|
{
|
|
1765
|
-
total:
|
|
1766
|
-
active:
|
|
1767
|
-
onSelect: (
|
|
1768
|
-
var
|
|
1769
|
-
l(
|
|
1799
|
+
total: r.length,
|
|
1800
|
+
active: d,
|
|
1801
|
+
onSelect: (u) => {
|
|
1802
|
+
var _;
|
|
1803
|
+
l(u), (_ = x.current) == null || _.go(u);
|
|
1770
1804
|
}
|
|
1771
1805
|
}
|
|
1772
1806
|
)
|
|
1773
1807
|
] })
|
|
1774
1808
|
]
|
|
1775
1809
|
}
|
|
1776
|
-
) : /* @__PURE__ */ e(
|
|
1777
|
-
|
|
1810
|
+
) : /* @__PURE__ */ e(C, { component: "section", sx: v, children: /* @__PURE__ */ p(
|
|
1811
|
+
C,
|
|
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
|
+
C,
|
|
1790
1824
|
{
|
|
1791
1825
|
sx: {
|
|
1792
1826
|
display: "flex",
|
|
@@ -1794,19 +1828,19 @@ const _t = ({
|
|
|
1794
1828
|
justifyContent: "flex-start",
|
|
1795
1829
|
minHeight: "100%"
|
|
1796
1830
|
},
|
|
1797
|
-
children: /* @__PURE__ */
|
|
1798
|
-
|
|
1831
|
+
children: /* @__PURE__ */ p(
|
|
1832
|
+
C,
|
|
1799
1833
|
{
|
|
1800
1834
|
sx: {
|
|
1801
|
-
...
|
|
1835
|
+
...de,
|
|
1802
1836
|
textAlign: "left",
|
|
1803
1837
|
mb: 0
|
|
1804
1838
|
},
|
|
1805
1839
|
children: [
|
|
1806
|
-
c && /* @__PURE__ */ e(
|
|
1807
|
-
o && /* @__PURE__ */
|
|
1840
|
+
c && /* @__PURE__ */ e(M, { component: "span", sx: pe, children: c }),
|
|
1841
|
+
o && /* @__PURE__ */ p(V, { children: [
|
|
1808
1842
|
/* @__PURE__ */ e("br", {}),
|
|
1809
|
-
/* @__PURE__ */ e(
|
|
1843
|
+
/* @__PURE__ */ e(M, { component: "span", sx: me, children: o })
|
|
1810
1844
|
] })
|
|
1811
1845
|
]
|
|
1812
1846
|
}
|
|
@@ -1814,7 +1848,7 @@ const _t = ({
|
|
|
1814
1848
|
}
|
|
1815
1849
|
),
|
|
1816
1850
|
/* @__PURE__ */ e(
|
|
1817
|
-
|
|
1851
|
+
C,
|
|
1818
1852
|
{
|
|
1819
1853
|
sx: {
|
|
1820
1854
|
display: "flex",
|
|
@@ -1823,174 +1857,176 @@ const _t = ({
|
|
|
1823
1857
|
flexWrap: "nowrap",
|
|
1824
1858
|
gap: 4
|
|
1825
1859
|
},
|
|
1826
|
-
children:
|
|
1827
|
-
|
|
1860
|
+
children: r.map((u, _) => /* @__PURE__ */ e(
|
|
1861
|
+
le,
|
|
1828
1862
|
{
|
|
1829
|
-
onButtonClick:
|
|
1830
|
-
...
|
|
1863
|
+
onButtonClick: u.onButtonClick,
|
|
1864
|
+
...u
|
|
1831
1865
|
},
|
|
1832
|
-
|
|
1866
|
+
_
|
|
1833
1867
|
))
|
|
1834
1868
|
}
|
|
1835
1869
|
)
|
|
1836
1870
|
]
|
|
1837
1871
|
}
|
|
1838
1872
|
) });
|
|
1839
|
-
},
|
|
1873
|
+
}, zt = ({
|
|
1840
1874
|
className: t = "",
|
|
1841
|
-
fullBleed:
|
|
1842
|
-
items:
|
|
1843
|
-
selectedIndex:
|
|
1875
|
+
fullBleed: i = !0,
|
|
1876
|
+
items: r,
|
|
1877
|
+
selectedIndex: n = 0,
|
|
1844
1878
|
ariaLabel: c
|
|
1845
1879
|
}) => {
|
|
1846
|
-
const o =
|
|
1847
|
-
if (!
|
|
1848
|
-
const
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1880
|
+
const o = G(null), a = G(null);
|
|
1881
|
+
if (!r) return null;
|
|
1882
|
+
const m = () => {
|
|
1883
|
+
window.location.href = "https://www.olimpo.bet/conoce-club-olimpo";
|
|
1884
|
+
}, g = Array.isArray(r) ? r[n] : r;
|
|
1885
|
+
Ne(() => {
|
|
1886
|
+
if (!o.current || !a.current || typeof ResizeObserver == "undefined") return;
|
|
1887
|
+
const x = o.current, w = a.current, s = () => {
|
|
1888
|
+
x.style.setProperty(
|
|
1853
1889
|
"--orc-co-bottomH",
|
|
1854
|
-
`${
|
|
1890
|
+
`${w.offsetHeight + 16}px`
|
|
1855
1891
|
);
|
|
1856
|
-
},
|
|
1857
|
-
return
|
|
1892
|
+
}, d = new ResizeObserver(s);
|
|
1893
|
+
return d.observe(w), s(), () => d.disconnect();
|
|
1858
1894
|
}, []);
|
|
1859
|
-
const
|
|
1895
|
+
const v = [
|
|
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 ||
|
|
1870
|
-
children: /* @__PURE__ */ e("div", { ref:
|
|
1871
|
-
|
|
1904
|
+
className: v,
|
|
1905
|
+
"aria-label": c || g.imgAlt || "Club Olimpo",
|
|
1906
|
+
children: /* @__PURE__ */ e("div", { ref: a, children: /* @__PURE__ */ e(
|
|
1907
|
+
rt,
|
|
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
|
+
}, Lt = "oraculo__OraculoSeccionEventoCombinadas-module__controls___Zsta4", At = {
|
|
1920
|
+
controls: Lt
|
|
1885
1921
|
};
|
|
1886
|
-
function
|
|
1922
|
+
function Wt({
|
|
1887
1923
|
items: t,
|
|
1888
|
-
title:
|
|
1889
|
-
iconUrl:
|
|
1890
|
-
onViewMore:
|
|
1924
|
+
title: i = "Combinadas del Olimpo",
|
|
1925
|
+
iconUrl: r,
|
|
1926
|
+
onViewMore: n,
|
|
1891
1927
|
className: c = ""
|
|
1892
1928
|
}) {
|
|
1893
|
-
const o =
|
|
1894
|
-
var
|
|
1895
|
-
(
|
|
1896
|
-
},
|
|
1897
|
-
var
|
|
1898
|
-
(
|
|
1899
|
-
},
|
|
1900
|
-
|
|
1929
|
+
const o = G(null), [a, m] = U({ isStart: !0, isEnd: !1 }), [g, v] = U([]), x = () => {
|
|
1930
|
+
var E;
|
|
1931
|
+
(E = o.current) == null || E.prev();
|
|
1932
|
+
}, w = () => {
|
|
1933
|
+
var E;
|
|
1934
|
+
(E = o.current) == null || E.next(), console.log("items: ", t);
|
|
1935
|
+
}, s = () => {
|
|
1936
|
+
n == null || n();
|
|
1901
1937
|
};
|
|
1902
|
-
function
|
|
1903
|
-
const
|
|
1904
|
-
for (const N of
|
|
1905
|
-
const
|
|
1906
|
-
|
|
1907
|
-
const
|
|
1908
|
-
(
|
|
1938
|
+
function d(E, O, P) {
|
|
1939
|
+
const I = [];
|
|
1940
|
+
for (const N of P) {
|
|
1941
|
+
const L = u([N]), F = O.reduce((h, f) => {
|
|
1942
|
+
h[f.eventId] || (h[f.eventId] = []);
|
|
1943
|
+
const y = f.outcomes.filter(
|
|
1944
|
+
(b) => L.has(b.id)
|
|
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 && h[f.eventId].push({
|
|
1947
|
+
...f,
|
|
1948
|
+
outcomes: y
|
|
1949
|
+
}), h;
|
|
1950
|
+
}, {}), q = l(N);
|
|
1951
|
+
E.forEach((h) => {
|
|
1952
|
+
if (h.id !== N.prePackCouponRows[0].eventId) return;
|
|
1953
|
+
const f = L;
|
|
1954
|
+
let y = null;
|
|
1955
|
+
for (const b of q)
|
|
1956
|
+
if ([...b.requiredOutcomeIds].every(($) => f.has($))) {
|
|
1957
|
+
y = b.decimal;
|
|
1922
1958
|
break;
|
|
1923
1959
|
}
|
|
1924
|
-
|
|
1925
|
-
...
|
|
1926
|
-
combinadoTotal:
|
|
1927
|
-
betoffers:
|
|
1960
|
+
I.push({
|
|
1961
|
+
...h,
|
|
1962
|
+
combinadoTotal: y,
|
|
1963
|
+
betoffers: F[h.id] || [],
|
|
1928
1964
|
couponId: N.id
|
|
1929
1965
|
// optional for tracking
|
|
1930
1966
|
});
|
|
1931
1967
|
});
|
|
1932
1968
|
}
|
|
1933
|
-
return
|
|
1969
|
+
return I;
|
|
1934
1970
|
}
|
|
1935
|
-
function l(
|
|
1936
|
-
var
|
|
1971
|
+
function l(E) {
|
|
1972
|
+
var P;
|
|
1937
1973
|
const O = [];
|
|
1938
|
-
for (const
|
|
1939
|
-
if (
|
|
1974
|
+
for (const I of E.prePackCouponRows)
|
|
1975
|
+
if (I.type === "BET_BUILDER" && ((P = I.group) != null && P.groups)) {
|
|
1940
1976
|
const N = /* @__PURE__ */ new Set();
|
|
1941
|
-
|
|
1942
|
-
var
|
|
1943
|
-
(
|
|
1977
|
+
I.group.groups.forEach((L) => {
|
|
1978
|
+
var F;
|
|
1979
|
+
(F = L.outcomes) == null || F.forEach((q) => N.add(q.id));
|
|
1944
1980
|
}), O.push({
|
|
1945
1981
|
requiredOutcomeIds: N,
|
|
1946
|
-
decimal:
|
|
1982
|
+
decimal: I.odds.decimal
|
|
1947
1983
|
});
|
|
1948
1984
|
}
|
|
1949
1985
|
return O;
|
|
1950
1986
|
}
|
|
1951
|
-
function
|
|
1952
|
-
var
|
|
1987
|
+
function u(E) {
|
|
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 I of E)
|
|
1991
|
+
for (const N of I.prePackCouponRows)
|
|
1992
|
+
N.type === "BET_BUILDER" && ((P = N.group) != null && P.groups) && N.group.groups.forEach((L) => {
|
|
1993
|
+
var F;
|
|
1994
|
+
(F = L.outcomes) == null || F.forEach((q) => O.add(q.id));
|
|
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 _() {
|
|
1999
|
+
var E, O, P;
|
|
1964
2000
|
try {
|
|
1965
|
-
const
|
|
1966
|
-
if (
|
|
2001
|
+
const I = (P = (O = (E = t == null ? void 0 : t.group) == null ? void 0 : E.groups) == null ? void 0 : O[0]) == null ? void 0 : P.id;
|
|
2002
|
+
if (!I) {
|
|
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/${I}.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764283566783&prePackCouponTags=CUSTOM`, F = await (await fetch(N)).json();
|
|
2007
|
+
v(
|
|
2008
|
+
d(F.events, F.betOffers, F.prePackCoupons)
|
|
1973
2009
|
);
|
|
1974
|
-
} catch (
|
|
1975
|
-
console.error("loadDataEventSpecial error:",
|
|
2010
|
+
} catch (I) {
|
|
2011
|
+
console.error("loadDataEventSpecial error:", I);
|
|
1976
2012
|
}
|
|
1977
2013
|
}
|
|
1978
|
-
return
|
|
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__ */
|
|
2014
|
+
return Y(() => {
|
|
2015
|
+
t && _();
|
|
2016
|
+
}, [t]), /* @__PURE__ */ e("section", { className: c || void 0, style: { width: "100%" }, children: /* @__PURE__ */ p(A, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
2017
|
+
/* @__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: At.controls, children: [
|
|
2020
|
+
/* @__PURE__ */ p(D, { spacing: 1, columns: "auto auto", children: [
|
|
1985
2021
|
/* @__PURE__ */ e(
|
|
1986
2022
|
T,
|
|
1987
2023
|
{
|
|
1988
2024
|
ariaLabel: "Anterior",
|
|
1989
2025
|
variant: "secondary",
|
|
1990
2026
|
iconOnly: !0,
|
|
1991
|
-
leftIcon: /* @__PURE__ */ e(
|
|
1992
|
-
onClick:
|
|
1993
|
-
disabled:
|
|
2027
|
+
leftIcon: /* @__PURE__ */ e(ae, {}),
|
|
2028
|
+
onClick: x,
|
|
2029
|
+
disabled: a.isStart
|
|
1994
2030
|
}
|
|
1995
2031
|
),
|
|
1996
2032
|
/* @__PURE__ */ e(
|
|
@@ -1999,13 +2035,13 @@ function Tt({
|
|
|
1999
2035
|
ariaLabel: "Siguiente",
|
|
2000
2036
|
variant: "secondary",
|
|
2001
2037
|
iconOnly: !0,
|
|
2002
|
-
rightIcon: /* @__PURE__ */ e(
|
|
2003
|
-
onClick:
|
|
2004
|
-
disabled:
|
|
2038
|
+
rightIcon: /* @__PURE__ */ e(ie, {}),
|
|
2039
|
+
onClick: w,
|
|
2040
|
+
disabled: a.isEnd
|
|
2005
2041
|
}
|
|
2006
2042
|
)
|
|
2007
2043
|
] }),
|
|
2008
|
-
/* @__PURE__ */ e(T, { variant: "secondary", onClick:
|
|
2044
|
+
/* @__PURE__ */ e(T, { variant: "secondary", onClick: s, children: "Ver más" })
|
|
2009
2045
|
] })
|
|
2010
2046
|
] }),
|
|
2011
2047
|
/* @__PURE__ */ e(
|
|
@@ -2020,43 +2056,43 @@ 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: (E) => /* @__PURE__ */ e(ut, { event: E }),
|
|
2060
|
+
onMove: ({ isStart: E, isEnd: O }) => m({ isStart: E, isEnd: O })
|
|
2025
2061
|
}
|
|
2026
2062
|
)
|
|
2027
2063
|
] }) });
|
|
2028
2064
|
}
|
|
2029
|
-
function
|
|
2065
|
+
function Bt({
|
|
2030
2066
|
items: t,
|
|
2031
|
-
title:
|
|
2032
|
-
iconUrl:
|
|
2033
|
-
onViewMore:
|
|
2067
|
+
title: i = "En vivo",
|
|
2068
|
+
iconUrl: r,
|
|
2069
|
+
onViewMore: n,
|
|
2034
2070
|
className: c = ""
|
|
2035
2071
|
}) {
|
|
2036
|
-
var
|
|
2072
|
+
var s, d;
|
|
2037
2073
|
console.log("wefwef", t);
|
|
2038
|
-
const o =
|
|
2074
|
+
const o = G(null), [a, m] = U({ isStart: !0, isEnd: !1 }), g = () => {
|
|
2039
2075
|
var l;
|
|
2040
2076
|
(l = o.current) == null || l.prev();
|
|
2041
|
-
},
|
|
2077
|
+
}, v = () => {
|
|
2042
2078
|
var l;
|
|
2043
2079
|
(l = o.current) == null || l.next(), console.log("items: ", t);
|
|
2044
|
-
},
|
|
2045
|
-
|
|
2080
|
+
}, x = () => {
|
|
2081
|
+
n == null || n();
|
|
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
|
T,
|
|
2053
2089
|
{
|
|
2054
2090
|
ariaLabel: "Anterior",
|
|
2055
2091
|
variant: "secondary",
|
|
2056
2092
|
iconOnly: !0,
|
|
2057
|
-
leftIcon: /* @__PURE__ */ e(
|
|
2093
|
+
leftIcon: /* @__PURE__ */ e(ae, {}),
|
|
2058
2094
|
onClick: g,
|
|
2059
|
-
disabled:
|
|
2095
|
+
disabled: a.isStart
|
|
2060
2096
|
}
|
|
2061
2097
|
),
|
|
2062
2098
|
/* @__PURE__ */ e(
|
|
@@ -2065,19 +2101,19 @@ function Pt({
|
|
|
2065
2101
|
ariaLabel: "Siguiente",
|
|
2066
2102
|
variant: "secondary",
|
|
2067
2103
|
iconOnly: !0,
|
|
2068
|
-
rightIcon: /* @__PURE__ */ e(
|
|
2069
|
-
onClick:
|
|
2070
|
-
disabled:
|
|
2104
|
+
rightIcon: /* @__PURE__ */ e(ie, {}),
|
|
2105
|
+
onClick: v,
|
|
2106
|
+
disabled: a.isEnd
|
|
2071
2107
|
}
|
|
2072
2108
|
)
|
|
2073
2109
|
] }),
|
|
2074
|
-
/* @__PURE__ */ e(T, { variant: "secondary", onClick:
|
|
2110
|
+
/* @__PURE__ */ e(T, { variant: "secondary", onClick: x, 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,93 +2121,130 @@ 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(gt, { ...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 jt = "oraculo__OraculoSeccionEventoSemana-module__wrapper___eqVq-", Gt = "oraculo__OraculoSeccionEventoSemana-module__container___5yFQs", Mt = "oraculo__OraculoSeccionEventoSemana-module__buttonWrapper___-6IDT", ne = {
|
|
2131
|
+
wrapper: jt,
|
|
2132
|
+
container: Gt,
|
|
2133
|
+
buttonWrapper: Mt
|
|
2098
2134
|
};
|
|
2099
|
-
function
|
|
2135
|
+
function Dt({
|
|
2100
2136
|
items: t,
|
|
2101
|
-
title:
|
|
2102
|
-
iconUrl:
|
|
2103
|
-
onViewMore:
|
|
2137
|
+
title: i = "En vivo",
|
|
2138
|
+
iconUrl: r,
|
|
2139
|
+
onViewMore: n,
|
|
2104
2140
|
className: c = ""
|
|
2105
2141
|
}) {
|
|
2106
2142
|
const o = /* @__PURE__ */ new Date();
|
|
2107
2143
|
o.toISOString();
|
|
2108
|
-
const
|
|
2109
|
-
|
|
2110
|
-
const
|
|
2111
|
-
|
|
2144
|
+
const a = new Date(o);
|
|
2145
|
+
a.setDate(a.getDate() + 7), a.toISOString();
|
|
2146
|
+
const m = G(null), [g, v] = U({ isStart: !0, isEnd: !1 }), [x, w] = U([]), s = () => {
|
|
2147
|
+
n == null || n();
|
|
2112
2148
|
};
|
|
2113
|
-
async function
|
|
2149
|
+
async function d() {
|
|
2114
2150
|
try {
|
|
2115
|
-
const k = t.events.map((
|
|
2151
|
+
const k = t.events.map((I) => {
|
|
2116
2152
|
var N;
|
|
2117
|
-
return (N =
|
|
2118
|
-
}),
|
|
2119
|
-
l(
|
|
2153
|
+
return (N = I.event) == null ? void 0 : N.id;
|
|
2154
|
+
}), E = k.map((I) => `id=${I}`).join("&"), P = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/betoffer/selected/combined_layout/event/${k[0]}?${E}&lang=es_PE&market=PE`;
|
|
2155
|
+
l(P);
|
|
2120
2156
|
} catch (k) {
|
|
2121
2157
|
console.error(k);
|
|
2122
2158
|
}
|
|
2123
2159
|
}
|
|
2124
2160
|
async function l(k) {
|
|
2125
2161
|
try {
|
|
2126
|
-
const O = await (await fetch(k)).json(),
|
|
2127
|
-
|
|
2128
|
-
} catch (
|
|
2129
|
-
console.error(
|
|
2162
|
+
const O = await (await fetch(k)).json(), P = O.events.map((N) => N.event), I = O.events.flatMap((N) => N.betOffers || []);
|
|
2163
|
+
w(u(P, I));
|
|
2164
|
+
} catch (E) {
|
|
2165
|
+
console.error(E);
|
|
2130
2166
|
}
|
|
2131
2167
|
}
|
|
2132
|
-
function
|
|
2133
|
-
const
|
|
2168
|
+
function u(k, E) {
|
|
2169
|
+
const P = E.filter((I) => {
|
|
2134
2170
|
var N;
|
|
2135
|
-
return ((N =
|
|
2136
|
-
}).reduce((
|
|
2137
|
-
return k.filter((
|
|
2138
|
-
|
|
2139
|
-
outcome:
|
|
2171
|
+
return ((N = I.betOfferType) == null ? void 0 : N.id) === 2;
|
|
2172
|
+
}).reduce((I, N) => (I[N.eventId] || (I[N.eventId] = []), I[N.eventId].push(N), I), {});
|
|
2173
|
+
return k.filter((I) => P[I.id]).map((I) => ({
|
|
2174
|
+
...I,
|
|
2175
|
+
outcome: P[I.id]
|
|
2140
2176
|
}));
|
|
2141
2177
|
}
|
|
2142
|
-
return
|
|
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:
|
|
2178
|
+
return Y(() => {
|
|
2179
|
+
t && t.events.length > 0 && d();
|
|
2180
|
+
}, [t]), /* @__PURE__ */ e("section", { className: c || void 0, style: { width: "100%" }, children: /* @__PURE__ */ p("div", { className: ne.wrapper, children: [
|
|
2181
|
+
/* @__PURE__ */ e("div", { className: ne.container, children: /* @__PURE__ */ p(A, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
2146
2182
|
/* @__PURE__ */ e(X, { title: "Eventos de la semana" }),
|
|
2147
|
-
/* @__PURE__ */ e("div", { className:
|
|
2148
|
-
|
|
2183
|
+
/* @__PURE__ */ e("div", { className: ne.buttonWrapper, children: /* @__PURE__ */ e(T, { 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:
|
|
2155
|
-
items:
|
|
2190
|
+
ref: m,
|
|
2191
|
+
items: x,
|
|
2156
2192
|
perPage: 3.5,
|
|
2157
2193
|
gap: "16px",
|
|
2158
2194
|
options: { autoWidth: !0 },
|
|
2159
2195
|
breakpoints: {
|
|
2160
2196
|
1024: { perPage: 1.4, gap: "8px", focus: "center", padding: { left: "8px", right: "8px" } }
|
|
2161
2197
|
},
|
|
2162
|
-
renderItem: (k) => /* @__PURE__ */ e(
|
|
2163
|
-
onMove: ({ isStart: k, isEnd:
|
|
2198
|
+
renderItem: (k) => /* @__PURE__ */ e(_t, { event: k }),
|
|
2199
|
+
onMove: ({ isStart: k, isEnd: E }) => v({ isStart: k, isEnd: E })
|
|
2164
2200
|
}
|
|
2165
2201
|
) })
|
|
2166
2202
|
] }) });
|
|
2167
2203
|
}
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2204
|
+
const Ht = [
|
|
2205
|
+
{
|
|
2206
|
+
desktopSrc: "https://stg-www.contodobet.com/static/img/landing/Banner/FondoDesktop.png",
|
|
2207
|
+
mobileSrc: "https://stg-www.contodobet.com/static/img/landing/Banner/FondoMisiones.png",
|
|
2208
|
+
fallbackSrc: "https://stg-www.contodobet.com/static/img/landing/Banner/FondoMisiones.jpg"
|
|
2209
|
+
},
|
|
2210
|
+
{
|
|
2211
|
+
desktopSrc: "https://stg-www.contodobet.com/static/img/landing/Banner/FondoDesktop.png",
|
|
2212
|
+
mobileSrc: "https://stg-www.contodobet.com/static/img/landing/Banner/FondoMisiones.png",
|
|
2213
|
+
fallbackSrc: "https://stg-www.contodobet.com/static/img/landing/Banner/FondoMisiones.jpg"
|
|
2214
|
+
}
|
|
2215
|
+
], Xt = [
|
|
2216
|
+
{
|
|
2217
|
+
id: 1,
|
|
2218
|
+
label: "APUESTAS",
|
|
2219
|
+
icon: "https://stg-www.contodobet.com/static/img/landing/Banner/icon1.svg",
|
|
2220
|
+
onclick: () => console.log("APUESTAS")
|
|
2221
|
+
},
|
|
2222
|
+
{
|
|
2223
|
+
id: 2,
|
|
2224
|
+
label: "EXPLORAR",
|
|
2225
|
+
icon: "https://stg-www.contodobet.com/static/img/landing/Banner/icon2.svg",
|
|
2226
|
+
onclick: () => console.log("EXPLORAR")
|
|
2227
|
+
},
|
|
2228
|
+
{
|
|
2229
|
+
id: 3,
|
|
2230
|
+
label: "TOP JUEGOS",
|
|
2231
|
+
icon: "https://stg-www.contodobet.com/static/img/landing/Banner/icon3.svg",
|
|
2232
|
+
onclick: () => console.log("TOP JUEGOS")
|
|
2233
|
+
},
|
|
2234
|
+
{
|
|
2235
|
+
id: 4,
|
|
2236
|
+
label: "MISIONES",
|
|
2237
|
+
icon: "https://stg-www.contodobet.com/static/img/landing/Banner/icon4.svg",
|
|
2238
|
+
onclick: () => console.log("MISIONES")
|
|
2239
|
+
}
|
|
2240
|
+
];
|
|
2241
|
+
function Jt({
|
|
2242
|
+
backgrounds: t = Ht,
|
|
2243
|
+
items: i = Xt
|
|
2171
2244
|
}) {
|
|
2172
|
-
const [
|
|
2173
|
-
return /* @__PURE__ */
|
|
2174
|
-
|
|
2245
|
+
const [r, n] = U(0), c = t.length || 1;
|
|
2246
|
+
return /* @__PURE__ */ p(
|
|
2247
|
+
z,
|
|
2175
2248
|
{
|
|
2176
2249
|
component: "section",
|
|
2177
2250
|
sx: {
|
|
@@ -2184,8 +2257,8 @@ function Lt({
|
|
|
2184
2257
|
pb: { xs: 7, sm: 8 }
|
|
2185
2258
|
},
|
|
2186
2259
|
children: [
|
|
2187
|
-
/* @__PURE__ */
|
|
2188
|
-
|
|
2260
|
+
/* @__PURE__ */ p(
|
|
2261
|
+
z,
|
|
2189
2262
|
{
|
|
2190
2263
|
sx: {
|
|
2191
2264
|
position: "relative",
|
|
@@ -2207,19 +2280,19 @@ function Lt({
|
|
|
2207
2280
|
drag: !0,
|
|
2208
2281
|
focus: "center"
|
|
2209
2282
|
},
|
|
2210
|
-
onMove: ({ index: o }) =>
|
|
2283
|
+
onMove: ({ index: o }) => n(o),
|
|
2211
2284
|
renderItem: (o) => {
|
|
2212
|
-
var
|
|
2213
|
-
return /* @__PURE__ */
|
|
2214
|
-
|
|
2285
|
+
var a;
|
|
2286
|
+
return /* @__PURE__ */ p(
|
|
2287
|
+
z,
|
|
2215
2288
|
{
|
|
2216
2289
|
sx: {
|
|
2217
2290
|
position: "relative",
|
|
2218
2291
|
height: { xs: 300, sm: 360, md: 420 }
|
|
2219
2292
|
},
|
|
2220
2293
|
children: [
|
|
2221
|
-
/* @__PURE__ */
|
|
2222
|
-
|
|
2294
|
+
/* @__PURE__ */ p(
|
|
2295
|
+
z,
|
|
2223
2296
|
{
|
|
2224
2297
|
component: "picture",
|
|
2225
2298
|
sx: { position: "absolute", inset: 0, lineHeight: 0 },
|
|
@@ -2239,10 +2312,10 @@ function Lt({
|
|
|
2239
2312
|
}
|
|
2240
2313
|
),
|
|
2241
2314
|
/* @__PURE__ */ e(
|
|
2242
|
-
|
|
2315
|
+
z,
|
|
2243
2316
|
{
|
|
2244
2317
|
component: "img",
|
|
2245
|
-
src: (
|
|
2318
|
+
src: (a = o.fallbackSrc) != null ? a : o.desktopSrc,
|
|
2246
2319
|
alt: "",
|
|
2247
2320
|
"aria-hidden": !0,
|
|
2248
2321
|
loading: "lazy",
|
|
@@ -2258,7 +2331,7 @@ function Lt({
|
|
|
2258
2331
|
}
|
|
2259
2332
|
),
|
|
2260
2333
|
/* @__PURE__ */ e(
|
|
2261
|
-
|
|
2334
|
+
z,
|
|
2262
2335
|
{
|
|
2263
2336
|
sx: {
|
|
2264
2337
|
position: "absolute",
|
|
@@ -2280,7 +2353,7 @@ function Lt({
|
|
|
2280
2353
|
}
|
|
2281
2354
|
),
|
|
2282
2355
|
/* @__PURE__ */ e(
|
|
2283
|
-
|
|
2356
|
+
z,
|
|
2284
2357
|
{
|
|
2285
2358
|
sx: {
|
|
2286
2359
|
position: "absolute",
|
|
@@ -2291,14 +2364,14 @@ function Lt({
|
|
|
2291
2364
|
justifyContent: "center",
|
|
2292
2365
|
zIndex: 2
|
|
2293
2366
|
},
|
|
2294
|
-
children: /* @__PURE__ */ e(
|
|
2367
|
+
children: /* @__PURE__ */ e(be, { total: c, active: r })
|
|
2295
2368
|
}
|
|
2296
2369
|
)
|
|
2297
2370
|
]
|
|
2298
2371
|
}
|
|
2299
2372
|
),
|
|
2300
2373
|
/* @__PURE__ */ e(
|
|
2301
|
-
|
|
2374
|
+
z,
|
|
2302
2375
|
{
|
|
2303
2376
|
sx: {
|
|
2304
2377
|
position: "absolute",
|
|
@@ -2316,8 +2389,8 @@ function Lt({
|
|
|
2316
2389
|
boxShadow: "0 10px 24px rgba(0,0,0,.35)",
|
|
2317
2390
|
zIndex: 3
|
|
2318
2391
|
},
|
|
2319
|
-
children:
|
|
2320
|
-
|
|
2392
|
+
children: i.map((o) => /* @__PURE__ */ p(
|
|
2393
|
+
z,
|
|
2321
2394
|
{
|
|
2322
2395
|
sx: {
|
|
2323
2396
|
display: "flex",
|
|
@@ -2328,12 +2401,12 @@ function Lt({
|
|
|
2328
2401
|
cursor: o.onclick ? "pointer" : "default"
|
|
2329
2402
|
},
|
|
2330
2403
|
onClick: () => {
|
|
2331
|
-
var
|
|
2332
|
-
return (
|
|
2404
|
+
var a;
|
|
2405
|
+
return (a = o.onclick) == null ? void 0 : a.call(o);
|
|
2333
2406
|
},
|
|
2334
2407
|
children: [
|
|
2335
2408
|
o.icon && /* @__PURE__ */ e(
|
|
2336
|
-
|
|
2409
|
+
z,
|
|
2337
2410
|
{
|
|
2338
2411
|
component: "img",
|
|
2339
2412
|
src: o.icon,
|
|
@@ -2348,7 +2421,7 @@ function Lt({
|
|
|
2348
2421
|
}
|
|
2349
2422
|
),
|
|
2350
2423
|
/* @__PURE__ */ e(
|
|
2351
|
-
|
|
2424
|
+
ge,
|
|
2352
2425
|
{
|
|
2353
2426
|
sx: {
|
|
2354
2427
|
fontSize: 12,
|
|
@@ -2369,7 +2442,7 @@ function Lt({
|
|
|
2369
2442
|
}
|
|
2370
2443
|
);
|
|
2371
2444
|
}
|
|
2372
|
-
const
|
|
2445
|
+
const qt = [
|
|
2373
2446
|
[
|
|
2374
2447
|
{ src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/IBK.svg", alt: "Interbank" },
|
|
2375
2448
|
{ src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/Yape.svg", alt: "Yape" }
|
|
@@ -2380,14 +2453,14 @@ const jt = [
|
|
|
2380
2453
|
{ src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/niubiz.svg", alt: "Niubiz" }
|
|
2381
2454
|
]
|
|
2382
2455
|
];
|
|
2383
|
-
function
|
|
2456
|
+
function Kt({
|
|
2384
2457
|
title: t = "Medios de pago",
|
|
2385
|
-
rows:
|
|
2458
|
+
rows: i = qt
|
|
2386
2459
|
}) {
|
|
2387
|
-
const
|
|
2388
|
-
return /* @__PURE__ */
|
|
2460
|
+
const r = i.flat();
|
|
2461
|
+
return /* @__PURE__ */ p(z, { component: "section", "aria-labelledby": "mp-title", sx: { color: "#fff" }, children: [
|
|
2389
2462
|
/* @__PURE__ */ e(
|
|
2390
|
-
|
|
2463
|
+
ge,
|
|
2391
2464
|
{
|
|
2392
2465
|
id: "mp-title",
|
|
2393
2466
|
variant: "h6",
|
|
@@ -2401,7 +2474,7 @@ function At({
|
|
|
2401
2474
|
}
|
|
2402
2475
|
),
|
|
2403
2476
|
/* @__PURE__ */ e(
|
|
2404
|
-
|
|
2477
|
+
z,
|
|
2405
2478
|
{
|
|
2406
2479
|
sx: {
|
|
2407
2480
|
width: "288px",
|
|
@@ -2414,20 +2487,20 @@ function At({
|
|
|
2414
2487
|
}
|
|
2415
2488
|
}
|
|
2416
2489
|
),
|
|
2417
|
-
/* @__PURE__ */ e(
|
|
2418
|
-
|
|
2490
|
+
/* @__PURE__ */ e(z, { sx: { display: { xs: "block", md: "none" } }, children: i.map((n, c) => /* @__PURE__ */ e(
|
|
2491
|
+
he,
|
|
2419
2492
|
{
|
|
2420
2493
|
direction: "row",
|
|
2421
2494
|
justifyContent: "center",
|
|
2422
2495
|
alignItems: "center",
|
|
2423
2496
|
gap: 2.5,
|
|
2424
2497
|
flexWrap: "wrap",
|
|
2425
|
-
children:
|
|
2498
|
+
children: n.map((o) => /* @__PURE__ */ e(ce, { ...o }, `${o.src}-${o.alt}`))
|
|
2426
2499
|
},
|
|
2427
2500
|
c
|
|
2428
2501
|
)) }),
|
|
2429
2502
|
/* @__PURE__ */ e(
|
|
2430
|
-
|
|
2503
|
+
z,
|
|
2431
2504
|
{
|
|
2432
2505
|
sx: {
|
|
2433
2506
|
mt: 3,
|
|
@@ -2438,216 +2511,244 @@ function At({
|
|
|
2438
2511
|
gridTemplateColumns: { md: "repeat(auto-fit, 160px)" },
|
|
2439
2512
|
justifyContent: { md: "center" }
|
|
2440
2513
|
},
|
|
2441
|
-
children:
|
|
2514
|
+
children: r.map((n) => /* @__PURE__ */ e(ce, { ...n }, `${n.src}-${n.alt}`))
|
|
2442
2515
|
}
|
|
2443
2516
|
)
|
|
2444
2517
|
] });
|
|
2445
2518
|
}
|
|
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(
|
|
2519
|
+
const Yt = {
|
|
2520
|
+
OraculoSeccionDestacados: St,
|
|
2521
|
+
OraculoSeccionTopJuegos: Ct,
|
|
2522
|
+
OraculoSeccionCasinoEnVivo: It,
|
|
2523
|
+
OraculoSeccionCasino: Ot,
|
|
2524
|
+
OraculoSeccionVirtuales: Pt,
|
|
2525
|
+
OraculoSeccionClubOlimpo: zt,
|
|
2526
|
+
OraculoSeccionBonoBienvenida: Ut,
|
|
2527
|
+
OraculoSeccionBanners: Jt,
|
|
2528
|
+
OraculoSeccionMediosPago: Kt,
|
|
2529
|
+
OraculoSeccionEventoEnVivo: Bt,
|
|
2530
|
+
OraculoSeccionEventoSemana: Dt,
|
|
2531
|
+
OraculoSeccionEventoCombinadas: Wt
|
|
2532
|
+
}, Qt = (t) => typeof t == "function" || t && typeof t == "object" && "$$typeof" in t, Zt = (t) => /^OraculoSeccion[A-Z]/.test(t), Vt = Object.fromEntries(
|
|
2533
|
+
Object.entries(Yt).filter(
|
|
2534
|
+
([t, i]) => Zt(t) && Qt(i)
|
|
2535
|
+
)
|
|
2461
2536
|
);
|
|
2462
|
-
class
|
|
2463
|
-
constructor(
|
|
2464
|
-
super(`HTTP ${
|
|
2537
|
+
class ue extends Error {
|
|
2538
|
+
constructor(i, r, n) {
|
|
2539
|
+
super(`HTTP ${i} ${n}`), this.status = i, this.url = r, this.statusText = n, this.name = "HttpError";
|
|
2465
2540
|
}
|
|
2466
2541
|
}
|
|
2467
|
-
const
|
|
2542
|
+
const uo = ({
|
|
2468
2543
|
sectionsOverride: t,
|
|
2469
|
-
docId:
|
|
2470
|
-
db:
|
|
2544
|
+
docId: i = "home",
|
|
2545
|
+
db: r
|
|
2471
2546
|
}) => {
|
|
2472
|
-
const [
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2547
|
+
const [n, c] = U(
|
|
2548
|
+
[]
|
|
2549
|
+
), [o, a] = U(!1), [m, g] = U({}), [v, x] = U({}), [w, s] = U({}), [d, l] = U({});
|
|
2550
|
+
Y(() => {
|
|
2551
|
+
if (t || !r) return;
|
|
2552
|
+
a(!0);
|
|
2553
|
+
const h = Pe(
|
|
2554
|
+
Fe(r, "landings", i),
|
|
2555
|
+
(f) => {
|
|
2556
|
+
var y;
|
|
2480
2557
|
try {
|
|
2481
|
-
let b =
|
|
2482
|
-
b = b.slice().sort((
|
|
2483
|
-
var
|
|
2484
|
-
return ((
|
|
2485
|
-
}).map((
|
|
2558
|
+
let b = f.exists() ? ((y = f.data()) == null ? void 0 : y.sections) || [] : [];
|
|
2559
|
+
b = b.slice().sort((S, $) => {
|
|
2560
|
+
var R, W;
|
|
2561
|
+
return ((R = S.order) != null ? R : 0) - ((W = $.order) != null ? W : 0);
|
|
2562
|
+
}).map((S, $) => ({ ...S, order: $ + 1 })), c(b), console.log("fetched: ", b);
|
|
2486
2563
|
} catch (b) {
|
|
2487
|
-
console.error("Error procesando landings/" +
|
|
2564
|
+
console.error("Error procesando landings/" + i, b);
|
|
2488
2565
|
} finally {
|
|
2489
|
-
|
|
2566
|
+
a(!1);
|
|
2490
2567
|
}
|
|
2491
2568
|
},
|
|
2492
|
-
(
|
|
2493
|
-
console.error("Error escuchando landings/" +
|
|
2569
|
+
(f) => {
|
|
2570
|
+
console.error("Error escuchando landings/" + i, f), a(!1);
|
|
2494
2571
|
}
|
|
2495
2572
|
);
|
|
2496
|
-
return () =>
|
|
2497
|
-
}, [t,
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2573
|
+
return () => h();
|
|
2574
|
+
}, [t, i, r]), Y(() => {
|
|
2575
|
+
const f = (t ? t.slice() : n.slice()).map((y) => y.componentKey).filter((y) => !!y && !m[y]);
|
|
2576
|
+
if (f.length !== 0)
|
|
2577
|
+
for (const y of f)
|
|
2578
|
+
N(y);
|
|
2579
|
+
}, [t, n, m]);
|
|
2580
|
+
const u = async (h) => {
|
|
2581
|
+
const f = (h.apiUrl || "").trim();
|
|
2582
|
+
if (!f) return;
|
|
2583
|
+
const y = h.apiMethod || "GET", b = h.apiParams || [];
|
|
2584
|
+
let S = f, $, R;
|
|
2585
|
+
if (y === "GET") {
|
|
2586
|
+
const j = new URL(
|
|
2587
|
+
f,
|
|
2506
2588
|
typeof window == "undefined" ? "http://localhost" : window.location.origin
|
|
2507
2589
|
);
|
|
2508
2590
|
for (const B of b)
|
|
2509
|
-
B.key &&
|
|
2510
|
-
|
|
2591
|
+
B.key && j.searchParams.append(B.key, B.value);
|
|
2592
|
+
S = j.toString();
|
|
2511
2593
|
} else {
|
|
2512
|
-
const
|
|
2594
|
+
const j = new URLSearchParams();
|
|
2513
2595
|
for (const B of b)
|
|
2514
|
-
B.key &&
|
|
2515
|
-
|
|
2596
|
+
B.key && j.append(B.key, B.value);
|
|
2597
|
+
$ = j.toString(), R = {
|
|
2516
2598
|
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
|
|
2517
2599
|
};
|
|
2518
2600
|
}
|
|
2519
|
-
const
|
|
2520
|
-
method:
|
|
2521
|
-
headers:
|
|
2522
|
-
body:
|
|
2601
|
+
const W = await fetch(S, {
|
|
2602
|
+
method: y,
|
|
2603
|
+
headers: R,
|
|
2604
|
+
body: $
|
|
2523
2605
|
});
|
|
2524
|
-
if (!
|
|
2525
|
-
return
|
|
2526
|
-
},
|
|
2527
|
-
() => t ? t.slice() :
|
|
2528
|
-
[t,
|
|
2529
|
-
), k =
|
|
2530
|
-
|
|
2531
|
-
const
|
|
2532
|
-
if (
|
|
2533
|
-
for (const { s:
|
|
2534
|
-
const b = `${
|
|
2535
|
-
k.current.has(b) || (k.current.add(b),
|
|
2606
|
+
if (!W.ok) throw new ue(W.status, S, W.statusText);
|
|
2607
|
+
return W.json();
|
|
2608
|
+
}, _ = re(
|
|
2609
|
+
() => t ? t.slice() : n.slice(),
|
|
2610
|
+
[t, n]
|
|
2611
|
+
), k = $e.useRef(/* @__PURE__ */ new Set());
|
|
2612
|
+
Y(() => {
|
|
2613
|
+
const h = _.map((f) => ({ s: f, url: (f.apiUrl || "").trim() })).filter(({ url: f }) => !!f);
|
|
2614
|
+
if (h.length)
|
|
2615
|
+
for (const { s: f, url: y } of h) {
|
|
2616
|
+
const b = `${f.id}|${y}`;
|
|
2617
|
+
k.current.has(b) || (k.current.add(b), s((S) => ({ ...S, [f.id]: !0 })), l((S) => ({ ...S, [f.id]: "" })), (async () => {
|
|
2536
2618
|
try {
|
|
2537
|
-
const
|
|
2538
|
-
|
|
2539
|
-
} catch (
|
|
2540
|
-
let
|
|
2541
|
-
|
|
2619
|
+
const S = await u(f);
|
|
2620
|
+
x(($) => ({ ...$, [f.id]: S }));
|
|
2621
|
+
} catch (S) {
|
|
2622
|
+
let $ = "Error desconocido";
|
|
2623
|
+
S instanceof ue ? $ = `Error HTTP ${S.status} (${S.statusText}) en ${S.url}` : S instanceof SyntaxError ? $ = "Respuesta no es JSON válido" : S instanceof TypeError ? $ = "Fallo de red / CORS / conexión" : typeof S == "string" && ($ = S.toString()), l((R) => ({ ...R, [f.id]: $ }));
|
|
2542
2624
|
} finally {
|
|
2543
|
-
|
|
2625
|
+
s((S) => ({ ...S, [f.id]: !1 }));
|
|
2544
2626
|
}
|
|
2545
2627
|
})());
|
|
2546
2628
|
}
|
|
2547
|
-
}, [
|
|
2548
|
-
const
|
|
2549
|
-
() =>
|
|
2550
|
-
[
|
|
2551
|
-
), O = (
|
|
2552
|
-
const
|
|
2553
|
-
for (const b of
|
|
2554
|
-
const
|
|
2555
|
-
if (
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2629
|
+
}, [_]);
|
|
2630
|
+
const E = re(
|
|
2631
|
+
() => _.filter((h) => h.visible).sort((h, f) => h.order - f.order),
|
|
2632
|
+
[_]
|
|
2633
|
+
), O = (h) => Array.isArray(h) ? h.map((f) => {
|
|
2634
|
+
const y = {};
|
|
2635
|
+
for (const b of f.fields || []) {
|
|
2636
|
+
const S = (b.type || "string").toLowerCase();
|
|
2637
|
+
if (S === "number") {
|
|
2638
|
+
const $ = String(b.value || "").trim();
|
|
2639
|
+
if ($ !== "") {
|
|
2640
|
+
const R = Number($);
|
|
2641
|
+
Number.isNaN(R) || (y[b.name] = R);
|
|
2642
|
+
}
|
|
2643
|
+
} else if (S === "boolean")
|
|
2644
|
+
y[b.name] = String(b.value).toLowerCase() === "true";
|
|
2645
|
+
else if (S === "function") {
|
|
2646
|
+
const $ = String(b.value || "").trim();
|
|
2647
|
+
if ($)
|
|
2648
|
+
try {
|
|
2649
|
+
const R = new Function($);
|
|
2650
|
+
y[b.name] = R;
|
|
2651
|
+
} catch (R) {
|
|
2652
|
+
console.error(`❌ Error creando función en item '${b.name}':`, R);
|
|
2653
|
+
}
|
|
2654
|
+
} else y[b.name] = b.value;
|
|
2569
2655
|
}
|
|
2570
|
-
return
|
|
2571
|
-
}) : [],
|
|
2572
|
-
const
|
|
2573
|
-
if (!Array.isArray(
|
|
2574
|
-
for (const
|
|
2575
|
-
if (!
|
|
2576
|
-
const b = (
|
|
2577
|
-
if (b === "number")
|
|
2578
|
-
|
|
2579
|
-
|
|
2656
|
+
return y;
|
|
2657
|
+
}) : [], P = (h) => {
|
|
2658
|
+
const f = {};
|
|
2659
|
+
if (!Array.isArray(h)) return f;
|
|
2660
|
+
for (const y of h) {
|
|
2661
|
+
if (!y.name) continue;
|
|
2662
|
+
const b = (y.type || "string").toLowerCase();
|
|
2663
|
+
if (b === "number") {
|
|
2664
|
+
const S = String(y.value || "").trim();
|
|
2665
|
+
if (S !== "") {
|
|
2666
|
+
const $ = Number(S);
|
|
2667
|
+
Number.isNaN($) || (f[y.name] = $);
|
|
2668
|
+
}
|
|
2669
|
+
} else if (b === "boolean")
|
|
2670
|
+
f[y.name] = String(y.value).toLowerCase() === "true";
|
|
2580
2671
|
else if (b === "function") {
|
|
2581
|
-
const
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
} else m[_.name] = _.value;
|
|
2672
|
+
const S = String(y.value || "").trim();
|
|
2673
|
+
if (S)
|
|
2674
|
+
try {
|
|
2675
|
+
const $ = new Function(S);
|
|
2676
|
+
f[y.name] = $;
|
|
2677
|
+
} catch ($) {
|
|
2678
|
+
console.error(`❌ Error creando función en item '${y.name}':`, $);
|
|
2679
|
+
}
|
|
2680
|
+
} else f[y.name] = y.value;
|
|
2591
2681
|
}
|
|
2592
|
-
return
|
|
2593
|
-
},
|
|
2594
|
-
const b =
|
|
2595
|
-
if (
|
|
2596
|
-
const B = (
|
|
2597
|
-
return b[B] =
|
|
2682
|
+
return f;
|
|
2683
|
+
}, I = (h, f, y) => {
|
|
2684
|
+
const b = y ? { ...y } : {};
|
|
2685
|
+
if (f) {
|
|
2686
|
+
const B = (f.variableName || "items").trim() || "items";
|
|
2687
|
+
return b[B] = f.arr || [], b;
|
|
2598
2688
|
}
|
|
2599
|
-
const
|
|
2600
|
-
return b.items =
|
|
2601
|
-
}, N = (
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2689
|
+
const S = h, $ = Array.isArray(S), R = !$ && typeof S == "object" && S !== null ? S : void 0, W = R && Array.isArray(R.lobby || R.items) ? R.lobby || R.items : void 0, j = (B) => $ ? S : W || B;
|
|
2690
|
+
return b.items = j(W || []), b;
|
|
2691
|
+
}, N = (h) => {
|
|
2692
|
+
import(`../organisms/${h}/${h}`).then((f) => {
|
|
2693
|
+
var S;
|
|
2694
|
+
const y = f, b = (S = y.default) != null ? S : y[h];
|
|
2695
|
+
b && g(($) => ({ ...$, [h]: b }));
|
|
2696
|
+
}).catch((f) => {
|
|
2697
|
+
console.error(`Error cargando componente en OP ${h}:`, f);
|
|
2698
|
+
});
|
|
2699
|
+
}, L = (h) => {
|
|
2700
|
+
var $;
|
|
2701
|
+
const f = !!(($ = h.apiUrl) != null && $.trim()), y = f ? v[h.id] : void 0;
|
|
2702
|
+
let b = h.props ? { ...h.props } : {};
|
|
2703
|
+
const S = P(h.manualScalarFields);
|
|
2704
|
+
if ([
|
|
2705
|
+
"OraculoSeccionEventoEnVivo",
|
|
2706
|
+
"OraculoSeccionEventoSemana",
|
|
2707
|
+
"OraculoSeccionEventoCombinadas"
|
|
2708
|
+
].includes(h.componentKey))
|
|
2709
|
+
return console.log(y), { items: y, ...b, ...S };
|
|
2710
|
+
if (b = { ...b, ...S }, f) b = I(y, null, b);
|
|
2711
|
+
else if (h.dataMode === "manual") {
|
|
2712
|
+
const R = O(h.manualItems);
|
|
2713
|
+
b = I(
|
|
2611
2714
|
null,
|
|
2612
|
-
{ arr:
|
|
2715
|
+
{ arr: R, variableName: h.variableName },
|
|
2613
2716
|
b
|
|
2614
2717
|
);
|
|
2615
|
-
const P = R(x.manualScalarFields);
|
|
2616
|
-
b = { ...b, ...P };
|
|
2617
2718
|
}
|
|
2618
2719
|
return b;
|
|
2619
|
-
},
|
|
2720
|
+
}, F = (h, f, y) => /* @__PURE__ */ e("div", { className: `mx-4 p-4 rounded ${{
|
|
2620
2721
|
loading: "bg-blue-100 text-blue-800",
|
|
2621
2722
|
error: "bg-red-100 text-red-800",
|
|
2622
2723
|
component: "bg-yellow-100 text-yellow-800"
|
|
2623
|
-
}[
|
|
2624
|
-
var
|
|
2625
|
-
const
|
|
2724
|
+
}[f]}`, children: y }, h), q = (h) => {
|
|
2725
|
+
var j;
|
|
2726
|
+
const f = h.componentKey, y = (
|
|
2626
2727
|
// STATIC_COMPONENTS[rawKey] || componentMap[rawKey];
|
|
2627
|
-
|
|
2728
|
+
m[f] || Vt[f]
|
|
2628
2729
|
);
|
|
2629
|
-
if (!
|
|
2630
|
-
return console.warn(`No hay componente registrado para "${
|
|
2631
|
-
|
|
2730
|
+
if (!y)
|
|
2731
|
+
return console.warn(`No hay componente registrado para "${f}"`), F(
|
|
2732
|
+
h.id,
|
|
2632
2733
|
"component",
|
|
2633
|
-
`Componente "${
|
|
2734
|
+
`Componente "${f}" no encontrado`
|
|
2634
2735
|
);
|
|
2635
|
-
const b = !!((
|
|
2736
|
+
const b = !!((j = h.apiUrl) != null && j.trim()), S = b ? v[h.id] : void 0, $ = b ? !!w[h.id] : !1, R = b ? d[h.id] : "";
|
|
2636
2737
|
if (b) {
|
|
2637
|
-
if (
|
|
2638
|
-
return
|
|
2639
|
-
|
|
2738
|
+
if ($ && !S)
|
|
2739
|
+
return F(
|
|
2740
|
+
h.id,
|
|
2640
2741
|
"loading",
|
|
2641
|
-
`Cargando datos desde ${
|
|
2742
|
+
`Cargando datos desde ${h.apiUrl}...`
|
|
2642
2743
|
);
|
|
2643
|
-
if (
|
|
2644
|
-
return
|
|
2645
|
-
|
|
2744
|
+
if (R && !S)
|
|
2745
|
+
return F(
|
|
2746
|
+
h.id,
|
|
2646
2747
|
"error",
|
|
2647
|
-
`Error cargando ${
|
|
2748
|
+
`Error cargando ${h.apiUrl}: ${R}`
|
|
2648
2749
|
);
|
|
2649
2750
|
}
|
|
2650
|
-
const
|
|
2751
|
+
const W = L(h);
|
|
2651
2752
|
return /* @__PURE__ */ e(
|
|
2652
2753
|
"div",
|
|
2653
2754
|
{
|
|
@@ -2657,13 +2758,13 @@ const oo = ({
|
|
|
2657
2758
|
width: "100%",
|
|
2658
2759
|
boxSizing: "border-box"
|
|
2659
2760
|
},
|
|
2660
|
-
children: /* @__PURE__ */ e(
|
|
2761
|
+
children: /* @__PURE__ */ e(y, { ...W })
|
|
2661
2762
|
},
|
|
2662
|
-
|
|
2763
|
+
h.id
|
|
2663
2764
|
);
|
|
2664
2765
|
};
|
|
2665
|
-
return o && !t ? /* @__PURE__ */ e("div", { className: "text-xs text-gray-400", children: "Cargando preview..." }) : !o && !t &&
|
|
2666
|
-
|
|
2766
|
+
return o && !t ? /* @__PURE__ */ e("div", { className: "text-xs text-gray-400", children: "Cargando preview..." }) : !o && !t && n.length === 0 ? /* @__PURE__ */ e("div", { className: "text-xs text-gray-500", children: "Sin secciones (Firestore)" }) : /* @__PURE__ */ e(
|
|
2767
|
+
Ee,
|
|
2667
2768
|
{
|
|
2668
2769
|
className: "oli-font",
|
|
2669
2770
|
maxWidth: !1,
|
|
@@ -2677,45 +2778,46 @@ const oo = ({
|
|
|
2677
2778
|
maxWidth: "100%",
|
|
2678
2779
|
overflowX: "hidden"
|
|
2679
2780
|
},
|
|
2680
|
-
children: /* @__PURE__ */ e(
|
|
2781
|
+
children: /* @__PURE__ */ e(he, { direction: "column", spacing: 8, useFlexGap: !0, children: E.map(q) })
|
|
2681
2782
|
}
|
|
2682
2783
|
);
|
|
2683
2784
|
};
|
|
2684
2785
|
export {
|
|
2685
2786
|
T as OraculoButton,
|
|
2686
2787
|
J as OraculoCarousel,
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2788
|
+
be as OraculoCarouselDots,
|
|
2789
|
+
rt as OraculoClubOlimpoVisual,
|
|
2790
|
+
ut as OraculoEventCombinadasCard,
|
|
2791
|
+
gt as OraculoEventEnVivoCard,
|
|
2792
|
+
Ae as OraculoEventHeader,
|
|
2793
|
+
ve as OraculoEventLabel,
|
|
2794
|
+
Me as OraculoEventLeague,
|
|
2795
|
+
ye as OraculoEventScore,
|
|
2796
|
+
_t as OraculoEventSemanaCard,
|
|
2797
|
+
Le as OraculoEventStatus,
|
|
2798
|
+
ze as OraculoEventStatusBadge,
|
|
2799
|
+
ee as OraculoEventTeamInfo,
|
|
2800
|
+
Z as OraculoGameCard,
|
|
2801
|
+
ot as OraculoGameRankCard,
|
|
2802
|
+
_e as OraculoGameSlide,
|
|
2702
2803
|
D as OraculoGridGroup,
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2804
|
+
nt as OraculoLiveCasinoCard,
|
|
2805
|
+
ce as OraculoLogoMediosPago,
|
|
2806
|
+
uo as OraculoPageLandingPreview,
|
|
2807
|
+
Jt as OraculoSeccionBanners,
|
|
2808
|
+
Ut as OraculoSeccionBonoBienvenida,
|
|
2809
|
+
Ot as OraculoSeccionCasino,
|
|
2810
|
+
It as OraculoSeccionCasinoEnVivo,
|
|
2811
|
+
zt as OraculoSeccionClubOlimpo,
|
|
2812
|
+
St as OraculoSeccionDestacados,
|
|
2813
|
+
Wt as OraculoSeccionEventoCombinadas,
|
|
2814
|
+
Bt as OraculoSeccionEventoEnVivo,
|
|
2815
|
+
Dt as OraculoSeccionEventoSemana,
|
|
2816
|
+
Ct as OraculoSeccionTopJuegos,
|
|
2817
|
+
Pt as OraculoSeccionVirtuales,
|
|
2717
2818
|
X as OraculoSectionTitle,
|
|
2718
|
-
|
|
2719
|
-
|
|
2819
|
+
Ct as OraculoTopJuegoItem,
|
|
2820
|
+
le as OraculoWelcomeBanner,
|
|
2821
|
+
uo as default
|
|
2720
2822
|
};
|
|
2721
2823
|
//# sourceMappingURL=index.es.js.map
|