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