oraculo-ui 0.2.18 → 0.2.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +3 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +954 -943
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import { Link as ot, Box as Y, useMediaQuery as De, IconButton as He, Typography as it, Stack as Oe, Container as
|
|
3
|
-
import fe, { useState as K, useEffect as Q, useRef as V, forwardRef as
|
|
1
|
+
import { jsx as t, jsxs as g, Fragment as me } from "react/jsx-runtime";
|
|
2
|
+
import { Link as ot, Box as Y, useMediaQuery as De, IconButton as He, Typography as it, Stack as Oe, Container as Ct } from "@mui/material";
|
|
3
|
+
import fe, { useState as K, useEffect as Q, useRef as V, forwardRef as Ot, useImperativeHandle as Et, useCallback as Ee, createContext as Tt, useContext as kt, useMemo as re, useLayoutEffect as $t } from "react";
|
|
4
4
|
import j from "@mui/material/Skeleton";
|
|
5
|
-
import { Splide as
|
|
5
|
+
import { Splide as Nt, SplideSlide as Mt } from "@splidejs/react-splide";
|
|
6
6
|
import q from "@mui/material/Box";
|
|
7
7
|
import de from "@mui/material/Typography";
|
|
8
8
|
import H from "@mui/material/Stack";
|
|
9
9
|
import { useCaptureInteraction as ae } from "@olimpo/capture-client";
|
|
10
|
-
import { ChevronLeftRounded as
|
|
10
|
+
import { ChevronLeftRounded as ze, ChevronRightRounded as Ae } from "@mui/icons-material";
|
|
11
11
|
import xe from "@mui/material/useMediaQuery";
|
|
12
12
|
import rt from "@mui/icons-material/ChevronLeftRounded";
|
|
13
13
|
import st from "@mui/icons-material/ChevronRightRounded";
|
|
14
|
-
import { useTheme as
|
|
15
|
-
import
|
|
16
|
-
import { onSnapshot as
|
|
14
|
+
import { useTheme as Bt, createTheme as zt, ThemeProvider as At } from "@mui/material/styles";
|
|
15
|
+
import Rt from "@mui/material/CssBaseline";
|
|
16
|
+
import { onSnapshot as Lt, doc as Pt } from "firebase/firestore";
|
|
17
17
|
function X({
|
|
18
18
|
children: e,
|
|
19
19
|
onClick: a,
|
|
@@ -28,11 +28,11 @@ function X({
|
|
|
28
28
|
fullHeight: d = !1,
|
|
29
29
|
className: l = "",
|
|
30
30
|
ariaLabel: c,
|
|
31
|
-
leftIcon:
|
|
32
|
-
rightIcon:
|
|
33
|
-
iconOnly:
|
|
31
|
+
leftIcon: b,
|
|
32
|
+
rightIcon: h,
|
|
33
|
+
iconOnly: O
|
|
34
34
|
}) {
|
|
35
|
-
const M = !!e && e !== !0,
|
|
35
|
+
const M = !!e && e !== !0, C = (!!b ? 1 : 0) + (!!h ? 1 : 0) == 1, D = O != null ? O : C && !M, I = [
|
|
36
36
|
"orc-btn",
|
|
37
37
|
m === "secondary" ? "orc-btn--secondary" : m === "tertiary" ? "orc-btn--tertiary" : "orc-btn--primary",
|
|
38
38
|
p ? `orc-btn--${p}` : "",
|
|
@@ -40,10 +40,10 @@ function X({
|
|
|
40
40
|
d ? "orc-btn--fullHeight" : "",
|
|
41
41
|
D ? "orc-btn--iconOnly" : "",
|
|
42
42
|
l
|
|
43
|
-
].filter(Boolean).join(" "),
|
|
44
|
-
|
|
43
|
+
].filter(Boolean).join(" "), T = /* @__PURE__ */ g(me, { children: [
|
|
44
|
+
b && /* @__PURE__ */ t("span", { className: "orc-btn__icon", children: b }),
|
|
45
45
|
!D && /* @__PURE__ */ t("span", { className: "orc-btn__label", children: e }),
|
|
46
|
-
|
|
46
|
+
h && /* @__PURE__ */ t("span", { className: "orc-btn__icon", children: h })
|
|
47
47
|
] }), w = s ? !0 : void 0;
|
|
48
48
|
return n ? /* @__PURE__ */ t(
|
|
49
49
|
ot,
|
|
@@ -56,7 +56,7 @@ function X({
|
|
|
56
56
|
tabIndex: w ? -1 : void 0,
|
|
57
57
|
className: I,
|
|
58
58
|
onClick: w ? (B) => B.preventDefault() : a,
|
|
59
|
-
children:
|
|
59
|
+
children: T
|
|
60
60
|
}
|
|
61
61
|
) : /* @__PURE__ */ t(
|
|
62
62
|
"button",
|
|
@@ -66,7 +66,7 @@ function X({
|
|
|
66
66
|
disabled: !!w,
|
|
67
67
|
"aria-label": c,
|
|
68
68
|
className: I,
|
|
69
|
-
children:
|
|
69
|
+
children: T
|
|
70
70
|
}
|
|
71
71
|
);
|
|
72
72
|
}
|
|
@@ -81,7 +81,7 @@ function ge({
|
|
|
81
81
|
n ? `orc-section-title--${n}` : "",
|
|
82
82
|
o
|
|
83
83
|
].filter(Boolean).join(" ");
|
|
84
|
-
return /* @__PURE__ */
|
|
84
|
+
return /* @__PURE__ */ g("div", { className: r, children: [
|
|
85
85
|
a && /* @__PURE__ */ t(
|
|
86
86
|
"img",
|
|
87
87
|
{
|
|
@@ -178,13 +178,13 @@ function Ke({ src: e, alt: a }) {
|
|
|
178
178
|
}
|
|
179
179
|
);
|
|
180
180
|
}
|
|
181
|
-
const Ft = "oraculo__OraculoEventTitle-module__contenedor___rg1vw",
|
|
181
|
+
const Ft = "oraculo__OraculoEventTitle-module__contenedor___rg1vw", qt = "oraculo__OraculoEventTitle-module__flexGroup___jMLFO", Dt = "oraculo__OraculoEventTitle-module__subtitle___TmHna", Le = {
|
|
182
182
|
contenedor: Ft,
|
|
183
|
-
flexGroup:
|
|
184
|
-
subtitle:
|
|
183
|
+
flexGroup: qt,
|
|
184
|
+
subtitle: Dt
|
|
185
185
|
};
|
|
186
|
-
function
|
|
187
|
-
return /* @__PURE__ */
|
|
186
|
+
function Ut({ title: e, subtitle: a }) {
|
|
187
|
+
return /* @__PURE__ */ g(
|
|
188
188
|
"div",
|
|
189
189
|
{
|
|
190
190
|
className: Le.contenedor,
|
|
@@ -200,12 +200,12 @@ function Dt({ title: e, subtitle: a }) {
|
|
|
200
200
|
children: e
|
|
201
201
|
}
|
|
202
202
|
),
|
|
203
|
-
a && /* @__PURE__ */
|
|
203
|
+
a && /* @__PURE__ */ g(
|
|
204
204
|
"div",
|
|
205
205
|
{
|
|
206
206
|
className: Le.flexGroup,
|
|
207
207
|
children: [
|
|
208
|
-
/* @__PURE__ */
|
|
208
|
+
/* @__PURE__ */ g("svg", { width: "4", height: "4", viewBox: "0 0 5 5", xmlns: "http://www.w3.org/2000/svg", style: { flexShrink: 0 }, children: [
|
|
209
209
|
" ",
|
|
210
210
|
/* @__PURE__ */ t("circle", { cx: "2.5", cy: "2.5", r: "2.5", fill: "white" }),
|
|
211
211
|
" "
|
|
@@ -219,7 +219,7 @@ function Dt({ title: e, subtitle: a }) {
|
|
|
219
219
|
}
|
|
220
220
|
);
|
|
221
221
|
}
|
|
222
|
-
function
|
|
222
|
+
function Vt({ text: e, color: a = "#ff3b3b", textColor: n = "#fff" }) {
|
|
223
223
|
return /* @__PURE__ */ t(
|
|
224
224
|
"span",
|
|
225
225
|
{
|
|
@@ -240,14 +240,14 @@ function Ut({ text: e, color: a = "#ff3b3b", textColor: n = "#fff" }) {
|
|
|
240
240
|
}
|
|
241
241
|
);
|
|
242
242
|
}
|
|
243
|
-
function
|
|
244
|
-
return /* @__PURE__ */
|
|
245
|
-
e && /* @__PURE__ */ t(
|
|
243
|
+
function Wt({ live: e, time: a }) {
|
|
244
|
+
return /* @__PURE__ */ g("div", { className: "oli-font", style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
|
|
245
|
+
e && /* @__PURE__ */ t(Vt, { text: "En vivo" }),
|
|
246
246
|
a && /* @__PURE__ */ t("span", { style: { fontSize: "14px", fontWeight: 400, lineHeight: "18px", paddingTop: "4px" }, children: a })
|
|
247
247
|
] });
|
|
248
248
|
}
|
|
249
|
-
function
|
|
250
|
-
return /* @__PURE__ */
|
|
249
|
+
function Gt({ title: e, subtitle: a, live: n = !1, time: o = "" }) {
|
|
250
|
+
return /* @__PURE__ */ g(
|
|
251
251
|
"div",
|
|
252
252
|
{
|
|
253
253
|
style: {
|
|
@@ -257,33 +257,33 @@ function Wt({ title: e, subtitle: a, live: n = !1, time: o = "" }) {
|
|
|
257
257
|
color: "#FFFFFF"
|
|
258
258
|
},
|
|
259
259
|
children: [
|
|
260
|
-
/* @__PURE__ */ t(
|
|
261
|
-
/* @__PURE__ */ t(
|
|
260
|
+
/* @__PURE__ */ t(Ut, { title: e, subtitle: a }),
|
|
261
|
+
/* @__PURE__ */ t(Wt, { live: n, time: o })
|
|
262
262
|
]
|
|
263
263
|
}
|
|
264
264
|
);
|
|
265
265
|
}
|
|
266
|
-
const
|
|
267
|
-
label:
|
|
266
|
+
const jt = "oraculo__OraculoEventLabel-module__label___c64Xw", Ht = {
|
|
267
|
+
label: jt
|
|
268
268
|
};
|
|
269
269
|
function ct({ text: e }) {
|
|
270
|
-
return /* @__PURE__ */ t("span", { className:
|
|
270
|
+
return /* @__PURE__ */ t("span", { className: Ht.label, children: e });
|
|
271
271
|
}
|
|
272
|
-
const
|
|
273
|
-
container:
|
|
272
|
+
const Kt = "oraculo__OraculoEventLeague-module__container___rdk4F", Zt = {
|
|
273
|
+
container: Kt
|
|
274
274
|
};
|
|
275
275
|
function dt({ title: e }) {
|
|
276
|
-
return /* @__PURE__ */ t("div", { className:
|
|
276
|
+
return /* @__PURE__ */ t("div", { className: Zt.container, children: e.toUpperCase() });
|
|
277
277
|
}
|
|
278
|
-
const
|
|
279
|
-
scoreWrapper:
|
|
280
|
-
name:
|
|
281
|
-
score:
|
|
282
|
-
normal:
|
|
283
|
-
small:
|
|
278
|
+
const Xt = "oraculo__OraculoEventScore-module__scoreWrapper___fWwEr", Jt = "oraculo__OraculoEventScore-module__name___r4uL6", Yt = "oraculo__OraculoEventScore-module__score___Xl03M", Qt = "oraculo__OraculoEventScore-module__normal___cCNFz", ea = "oraculo__OraculoEventScore-module__small___fVt8E", ve = {
|
|
279
|
+
scoreWrapper: Xt,
|
|
280
|
+
name: Jt,
|
|
281
|
+
score: Yt,
|
|
282
|
+
normal: Qt,
|
|
283
|
+
small: ea
|
|
284
284
|
};
|
|
285
285
|
function ut({ text: e, name: a, size: n = "normal" }) {
|
|
286
|
-
return /* @__PURE__ */
|
|
286
|
+
return /* @__PURE__ */ g(
|
|
287
287
|
"div",
|
|
288
288
|
{
|
|
289
289
|
className: `${ve.scoreWrapper} ${ve[n]}`,
|
|
@@ -294,23 +294,23 @@ function ut({ text: e, name: a, size: n = "normal" }) {
|
|
|
294
294
|
}
|
|
295
295
|
);
|
|
296
296
|
}
|
|
297
|
-
const
|
|
298
|
-
team:
|
|
299
|
-
regular:
|
|
300
|
-
compact:
|
|
301
|
-
logo:
|
|
302
|
-
name:
|
|
303
|
-
skeleton:
|
|
304
|
-
},
|
|
305
|
-
polo:
|
|
306
|
-
svgWrapper:
|
|
307
|
-
shadow:
|
|
308
|
-
highlight:
|
|
297
|
+
const ta = "oraculo__OraculoEventTeamInfo-module__team___UfpUs", aa = "oraculo__OraculoEventTeamInfo-module__regular___ag826", na = "oraculo__OraculoEventTeamInfo-module__compact___RCNOs", oa = "oraculo__OraculoEventTeamInfo-module__logo___fKCl3", ia = "oraculo__OraculoEventTeamInfo-module__name___4ikm-", ra = "oraculo__OraculoEventTeamInfo-module__skeleton___Yfaxh", _e = {
|
|
298
|
+
team: ta,
|
|
299
|
+
regular: aa,
|
|
300
|
+
compact: na,
|
|
301
|
+
logo: oa,
|
|
302
|
+
name: ia,
|
|
303
|
+
skeleton: ra
|
|
304
|
+
}, sa = "oraculo__OraculoTeamPolo-module__polo___BisRg", la = "oraculo__OraculoTeamPolo-module__svgWrapper___HRKNX", ca = "oraculo__OraculoTeamPolo-module__shadow___-3DXb", da = "oraculo__OraculoTeamPolo-module__highlight___1etm7", Se = {
|
|
305
|
+
polo: sa,
|
|
306
|
+
svgWrapper: la,
|
|
307
|
+
shadow: ca,
|
|
308
|
+
highlight: da
|
|
309
309
|
};
|
|
310
|
-
function
|
|
310
|
+
function ua({ jersey: e, className: a }) {
|
|
311
311
|
const n = `#${e.base}`, o = e.sleeve ? `#${e.sleeve}` : n, i = e.stripes ? `#${e.stripes}` : null, r = e.sleevelong ? `#${e.sleevelong}` : null;
|
|
312
|
-
return /* @__PURE__ */
|
|
313
|
-
/* @__PURE__ */ t("div", { className: Se.svgWrapper, children: /* @__PURE__ */
|
|
312
|
+
return /* @__PURE__ */ g("div", { className: `${Se.polo} ${a != null ? a : ""}`, children: [
|
|
313
|
+
/* @__PURE__ */ t("div", { className: Se.svgWrapper, children: /* @__PURE__ */ g("svg", { viewBox: "0 0 656 656", "aria-hidden": !0, children: [
|
|
314
314
|
/* @__PURE__ */ t(
|
|
315
315
|
"path",
|
|
316
316
|
{
|
|
@@ -318,7 +318,7 @@ function da({ jersey: e, className: a }) {
|
|
|
318
318
|
d: "m62 265 5.8-17c-.4-.7-.6-1.5-.4-2 .2-.7.8-1.2 1.2-1.4l1.2-4 9-21.6c.2-1 1-3.5 2.4-6.4a69.9 69.9 0 0 1 4.1-17.2l2.9-7 2.9-11.4c1.7-5.8 5.2-18.4 5.8-22 .6-3.6 6.8-19 9.8-26.2.4-.9 2.4-4.7 7.2-12.8 5.4-12.2 23.5-27.2 32-33.1l6.6-3.7 7.9-3.6 17.3-6.2 16.6-7.1L215 52c7-4.1 21.8-12.5 24.1-13.2 2.3-.8 5-3.5 6-4.7 1.2-1.2 4.2-3.8 6.6-4.7 2.3-1 8.2-6.8 10.8-9.6 1.6-1.4 3.8-4.7 9.2-7.5 5.3-2.9 20.4-4 27.2-4.3h25.6l16.7.3 14.1.6 10.3.7 9.5 1.7c6.4.6 12.6 4.3 15.4 8l2.7 3.1 8.9 8 1.8.7 4.9 3 2.7 3.5c4.2 2.2 13.1 7.1 15.2 8.7 2 1.6 30.1 15.4 44 22 8 3.2 39 12.3 55.3 30 5.2 4.3 7 7.8 11.4 12.4 5.1 5.3 15.1 29 16.9 32 1.4 2.6 5 17 6.8 24l4.8 20.5 8.4 29 8.9 22.7 2.3 5.4.6 1.5c.5.6 1.4 2 1 2.6-.2.6 0 2 .2 2.7l1 2.6 2 5.8 2.2 5.9c.3 1.3-4.3 4-6.6 5.2l-11.1 5-12.6 4.7-15 5-14.6 4.6-10.9 2.4a66 66 0 0 1-8.6 1.4c-3.4.3-4.7-.4-4.9-.8l-5-12.3-1.9-3.8-1.8-1.6.1-.8v-1l-.4-1.8-1.3-4.1-3.3-9-1.3-2-2.2-5.7-2.5-.3-1 .8v2l-2.7 13.1-8.7 58-.9 6.4-.2 7.9c0 3-1 16-1.7 18.3l-2.5 9-.2 7.6-.3 8.7-.3 7.5.3 4 .5 15c.3 1.9-.6 7-1.1 9.3-.6 2.4-1.6 7.5-1.4 8.8.3 1.4-.2 4.4-.5 5.8l-1.3 8.9c-.2 1.4-.8 5-1.3 7.2.7 1.6 4.7 14.6 5.9 17.8 1.2 3.3 4.8 19.4 5 20.7.3 1 1.1 7.8 1.5 11 .1 2.5.3 8 .2 10 0 2-.8 6.6-1.1 8.6-.2 1.7-.7 5.5-1.2 7s-1.2 8.5-1.4 11.8A81.1 81.1 0 0 1 477 552l.3 7.1.2 6.5 1.4 17.7.5 6 1.5 7.7.4 4.6c.3 2.1.7 7 .7 10.1.3 3-2.5 6-4 7 0 .2-1.2 1-4.6 3-6.4 5-26.3 11.6-35.5 14.3a379.2 379.2 0 0 1-58.6 11.2c-2.3.8-27 2.2-39 2.7-8.3 0-27 0-34.5-.4-11.5.9-47.4-4.8-63.9-7.7-6.3-.9-42.1-10.4-48-14.4-3.7-2.4-14.3-8-16.9-9.7a10.7 10.7 0 0 1-4.1-5.4c-.3-1 .1-8.6.4-12.3l.6-5 1.4-9.6 1-8 .3-4.3-.4-7.7-1-10.8v-13.8l.7-10 1.1-7.7 1.8-8 2.8-9.5 3.3-9.3a78 78 0 0 1-2.5-20.8 1112.2 1112.2 0 0 1 .6-14.1c-.1-.7 2.1-10.2 3.3-15l1-3.8-.1-.8c-1.4-8.3-1.5-14-1.9-15.4a78 78 0 0 1 .4-10.9l2-6.7.4-2-.4-1.5a67.6 67.6 0 0 1-7.3-27l-.2-7.7.5-5.4.3-1.5.4-3.9.7-5 .2-2.2-.2-.4-.3-6-1-3.1-.3-4-.7-7.6-1.5-8.3-.8-4.2-1.4-9.2-.4-4.3L172 279l-2.2-14.6a545 545 0 0 1-1.7-8.5c-.1-1-2-2.1-3-2.6 0 .6-.6 1.5-1.7 2-1.2.7-2.4 1.3-2.7 2.2l-.8 4.7a15 15 0 0 1-2.5 4.1 16.4 16.4 0 0 0-2.6 6.3l-.3 2.4v1.3l-1.4 1.1-.3.3-6 14.5c-.7 2.3-1.3 1.8-1.9 1.5l-10.5-3.1-9-3-18.3-6-20-6.8-13-4.8c-2.1-1-7-3-9.4-3.8-2.5-.8-3-1.3-2.8-1.4Z"
|
|
319
319
|
}
|
|
320
320
|
),
|
|
321
|
-
i && /* @__PURE__ */
|
|
321
|
+
i && /* @__PURE__ */ g(me, { children: [
|
|
322
322
|
/* @__PURE__ */ t("path", { fill: i, d: "m153 277.8-5.8 14.5c-1 2.8-2.5 1.4-4.6.7l-2-.5-7.8-2.4-15.6-5-19-6.5-16-5.7-12-4.4-5.5-2.2c-3.5-1.1-3.1-1.2-1.9-4l1.8-4.9 3.2-9.3c-1.1-1.9 0-3.1.8-3.5l.2-.7.5-2 4.3-10.3 2.4-6 2.6-6.2.8-2.6 1.7-4.1v-.4l.3-2.6.6-3.4 1-3.5 1-3.8c.1-.9 2-5.6 3-7.8l.7-1.5.7-2 .9-3.6 3.4-12.6 2.4-8.6 2.7-11.2 3.5-9.6 3.6-9.4 3-6 2-4.1 3.6-5.8 2.2-4.3 3-4.4 3.2-3.9 1.7-1.9 3.6-3.6 3-2.9a109.3 109.3 0 0 1 13.3-11.2l1.2-.8a79.3 79.3 0 0 1 18-9l11.4-4.2 4-1.4 6.3-2.7 3.3-1.4 2.8-1.2 4-1.6 3.9-2.1 10.1-5 4.8-2.4 5.7-3.2 13.8-7.7c1.5-.8 4.7-2.7 6-3a8.5 8.5 0 0 0 3-1.8c3.4-2.5 4.5-4.8 6-5.3.4-.4 2-1.6 5.2-3.2-4.4 3.3-3.2 11-2.1 14.6a77 77 0 0 0 8.7 18.8l-.6.4-3.9 2-9 5-6.6 3.7-10 3.2c-4.3.8-13.2 2.4-14.4 2.8-1.2.3-10.2 4-14.5 5.8l-11.8 5.6-8.8 3.2-12 3.4-19 8.7c-5.8 1.4-19.3 14.2-25.3 20.4L122 128l.3.4 6.6 16.6 10.5 22.6 6.2 10.8c2.9 3 8.7 9.7 9.1 11.7.5 2 4.3 5.1 6.1 6.5.2.8.8 3.1 1.7 5.4-3.2 4.8-.4 10.6 1.4 12.9l1 4.6.3 6.5-.5 1c-1.4 1.4-.3 4 .4 5l.1 3c.5 1.4 1.3 4.2.8 5.2s0 2.7.3 3.4v4.9c-3.1.5-2 3.7-1 5.2-.5.7-1.8 2.2-3.2 2.7-1.4.5-1.8 3.6-1.8 5.2a9 9 0 0 1-2.7 4.7c-1.8 1.6-2.8 7.4-3 10.1l-1.6 1.5ZM403.8 31.1l-1.6-.7c1.2 1 2 2.2 2.8 4 1.8 2.8.6 8-.7 12.2a78 78 0 0 1-7.6 17l.5.2 3.3 1.5 5.4 3.3 5.9 3 7.2 3 8.2 2.2c.7.2 3.3 1 8.4 2 5.5.1 21.1 8 28.2 11.8l14 4.5a517 517 0 0 1 23.8 9.3c6.3.5 24.7 17 33.1 25.2l-4.6 11.6-8.2 19.3-3.8 9-5.2 8.6c-2.2 3.2-7.3 10.2-9.4 12.4-1.3-.3-5.6 4.4-7.6 6.7.3 2 .6 6.7-1.4 9.1-2 2.5-1.8 6.9-1.4 8.7.3.8.5 3-1 5.3-1.4 2.4-1 4-.5 4.5-.2.8-.7 2.5-1.4 3.4-.8.8-.4 3.3 0 4.5l.1 3-.1 2.2c-.2.6-.6 2.6-1.1 6.2 3.6 3.3 1.3 5.7-.3 6.5l2.2.3 1.3 2.7 1.5 3.8 1.1 2.3 2.7 7.1 1.6 4.8.3 2.1v1.6l1.9 1.9 4 8.9 1.8 4.5c.5 4 5.5 3.6 8 3l5.9-1.1 7.3-1.7 5.2-1.2 7.3-2.1 8.3-2.7 7.5-2.5 9.8-3.6 8-3 6.3-2.8 3.4-1.6 3-1.3 2.5-1.6 1-.8c1.9-1 2-2.1 1.6-2.9l-.6-1.7-1-2.7-1.6-4.2-1.4-4-.5-1.4-.1-.7v-1.2c.7-1-.4-2.5-1-3v-.2l-1-2-2.4-6-3.3-8.3-2.3-6a3896.4 3896.4 0 0 0-3.1-8.4l-2.2-7.1-1.5-5.7-2.5-8.9-1-3.1-1.2-4.5-2-8.2-2.2-9.3-2.8-11.4-2.6-9.1-.9-3c0-.3-.6-1.5-1-2l-2.5-5.6-3-6.6-5.7-11.3-2.5-4.3-2.3-3.3-.7-.7-4.3-5-3-3.8a73 73 0 0 0-4.2-3.8c-1.1-2-7.6-7-10.8-9.4-6.2-5-23.4-12.8-34-16.7l-11-4-16-7.9-20.1-10-7.1-3.8-2.4-1.5-13-7.3-2.6-3.4-5-3Z" }),
|
|
323
323
|
/* @__PURE__ */ t("path", { fill: i, d: "M292.1 648.8c-15.7-1.4-37.7-5-49.7-7.1-4.3-.6-22.6-5.3-35.5-9.5 1.5-10 3-21 4.3-32.7 7-60.5 4.8-132.8 3.1-185.6l-.9-32c-1-49-2.4-83.5-3.6-112-1.2-29-2.1-51.7-2.1-77 0-29 2.9-77.3 5.3-112.9l2.6-1c1.3-.3 10.1-2 14.4-2.7l10-3.2 6.6-3.7 9-5 4-2 .5-.3c1.2 2 2.6 4.1 3.4 4.8l6.1 7.8 15 14.6 4.8 4c-.6 26.4-1.1 60.6-1.1 100.1 0 59.3 1.1 82.6 2.7 114.6.9 18.8 2 40.7 3 74.9 1.5 48.3.8 98.4 0 148.6l-.8 68.3c0 13-.6 32.8-1.1 49Zm157.5-16.4-11.2 3.6a379.2 379.2 0 0 1-67 12c.2-11 .3-25.6.3-44.6 0-49.2-1.2-74.9-2.4-99.5-1.3-27.2-2.5-53-2-107.5.6-50.4 1.7-81.5 2.6-109.3 1-29.3 1.8-54.9 1.8-95.6 0-35.5-.6-70.6-1.2-98.6l3.6-3 5.3-5.1 3.5-3.6 3.5-3.4 4-5 4.2-5.3 2.7-4 .5.3 3.2 1.5 5.5 3.3 5.8 3 7.3 3 8.1 2.2c.7.2 3.3 1 8.4 2 2.4 0 6.5 1.5 11 3.4 2.6 29 5.2 68 5.2 107.8 0 41.5-1.6 70.2-3.2 102-1.6 28.7-3.3 60-4 105.6-.7 41.1.4 82.5 1.4 124.4.7 25.7 1.4 51.6 1.6 77.8a435 435 0 0 0 1.5 32.6Z" })
|
|
324
324
|
] }),
|
|
@@ -367,9 +367,9 @@ function da({ jersey: e, className: a }) {
|
|
|
367
367
|
] });
|
|
368
368
|
}
|
|
369
369
|
function Ne({ name: e, jersey: a, size: n = "regular" }) {
|
|
370
|
-
return /* @__PURE__ */
|
|
370
|
+
return /* @__PURE__ */ g("div", { className: `oli-font ${_e.team} ${_e[n]}`, children: [
|
|
371
371
|
a != null && a.base ? /* @__PURE__ */ t(
|
|
372
|
-
|
|
372
|
+
ua,
|
|
373
373
|
{
|
|
374
374
|
jersey: a,
|
|
375
375
|
className: `${_e.logo}`
|
|
@@ -378,7 +378,7 @@ function Ne({ name: e, jersey: a, size: n = "regular" }) {
|
|
|
378
378
|
/* @__PURE__ */ t("span", { className: _e.name, children: e })
|
|
379
379
|
] });
|
|
380
380
|
}
|
|
381
|
-
function
|
|
381
|
+
function ma(e, a, {
|
|
382
382
|
enabled: n = !0,
|
|
383
383
|
threshold: o = 60,
|
|
384
384
|
cooldownMs: i = 500
|
|
@@ -394,22 +394,22 @@ function ua(e, a, {
|
|
|
394
394
|
const { deltaX: l, deltaY: c } = f;
|
|
395
395
|
if (Math.abs(l) <= Math.abs(c)) return;
|
|
396
396
|
f.preventDefault(), r.current += l;
|
|
397
|
-
const
|
|
398
|
-
if (
|
|
399
|
-
const
|
|
400
|
-
r.current = 0, s.current =
|
|
397
|
+
const b = Date.now();
|
|
398
|
+
if (b - s.current < i || Math.abs(r.current) < o) return;
|
|
399
|
+
const h = r.current > 0 ? ">" : "<";
|
|
400
|
+
r.current = 0, s.current = b, d.go(h);
|
|
401
401
|
};
|
|
402
402
|
return m.addEventListener("wheel", p, { passive: !1 }), () => {
|
|
403
403
|
m.removeEventListener("wheel", p), r.current = 0;
|
|
404
404
|
};
|
|
405
405
|
}, [n, o, i, e, a]);
|
|
406
406
|
}
|
|
407
|
-
const
|
|
408
|
-
gradientOverlay:
|
|
409
|
-
right:
|
|
410
|
-
left:
|
|
411
|
-
svg:
|
|
412
|
-
},
|
|
407
|
+
const pa = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", fa = "oraculo__OraculoCarousel-module__right___KwpOE", ga = "oraculo__OraculoCarousel-module__left___n3WQu", ha = "oraculo__OraculoCarousel-module__svg___0mGuX", ye = {
|
|
408
|
+
gradientOverlay: pa,
|
|
409
|
+
right: fa,
|
|
410
|
+
left: ga,
|
|
411
|
+
svg: ha
|
|
412
|
+
}, ba = Nt, va = Mt, he = Ot(
|
|
413
413
|
({
|
|
414
414
|
items: e = [],
|
|
415
415
|
renderItem: a,
|
|
@@ -423,10 +423,10 @@ const ma = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", pa = "ora
|
|
|
423
423
|
enableHorizontalWheel: f = !0,
|
|
424
424
|
showRightGradient: d = !1
|
|
425
425
|
}, l) => {
|
|
426
|
-
const c = V(null),
|
|
427
|
-
|
|
426
|
+
const c = V(null), b = V(null), h = V(e.length), O = V(null), M = V(null);
|
|
427
|
+
ma(b, c, {
|
|
428
428
|
enabled: f
|
|
429
|
-
}),
|
|
429
|
+
}), Et(l, () => ({
|
|
430
430
|
next: () => {
|
|
431
431
|
var w;
|
|
432
432
|
return (w = c.current) == null ? void 0 : w.go(">");
|
|
@@ -440,64 +440,64 @@ const ma = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", pa = "ora
|
|
|
440
440
|
return (B = c.current) == null ? void 0 : B.go(w);
|
|
441
441
|
}
|
|
442
442
|
}));
|
|
443
|
-
const
|
|
444
|
-
var
|
|
445
|
-
const B = w.Components.Slides,
|
|
446
|
-
let R = 0,
|
|
447
|
-
for (let U = L; U <
|
|
443
|
+
const y = (w) => {
|
|
444
|
+
var P;
|
|
445
|
+
const B = w.Components.Slides, k = w.Components.Controller, x = w.root.querySelector(".splide__track"), E = (P = x == null ? void 0 : x.clientWidth) != null ? P : 0, L = k.getIndex(), z = B.getLength();
|
|
446
|
+
let R = 0, _ = L;
|
|
447
|
+
for (let U = L; U < z; U++) {
|
|
448
448
|
const W = B.getAt(U);
|
|
449
|
-
if (!W || (R += W.slide.offsetWidth, R >
|
|
450
|
-
|
|
449
|
+
if (!W || (R += W.slide.offsetWidth, R > E)) break;
|
|
450
|
+
_ = U;
|
|
451
451
|
}
|
|
452
|
-
return { visibleStart: L, visibleEnd:
|
|
453
|
-
},
|
|
454
|
-
const B = w.root.querySelector(".splide__track"),
|
|
455
|
-
return !B || !
|
|
456
|
-
},
|
|
457
|
-
var
|
|
458
|
-
const
|
|
459
|
-
if (!
|
|
452
|
+
return { visibleStart: L, visibleEnd: _ };
|
|
453
|
+
}, v = (w) => {
|
|
454
|
+
const B = w.root.querySelector(".splide__track"), k = w.root.querySelector(".splide__list");
|
|
455
|
+
return !B || !k ? !1 : k.scrollWidth > B.clientWidth + 1;
|
|
456
|
+
}, C = Ee((w) => {
|
|
457
|
+
var _, P;
|
|
458
|
+
const k = w.Components.Slides.getLength();
|
|
459
|
+
if (!v(w)) {
|
|
460
460
|
m == null || m({
|
|
461
461
|
index: 0,
|
|
462
462
|
isStart: !0,
|
|
463
463
|
isEnd: !0,
|
|
464
|
-
total:
|
|
464
|
+
total: k,
|
|
465
465
|
visibleStart: 0,
|
|
466
|
-
visibleEnd:
|
|
466
|
+
visibleEnd: k - 1
|
|
467
467
|
});
|
|
468
468
|
return;
|
|
469
469
|
}
|
|
470
|
-
const { visibleStart:
|
|
471
|
-
d && ((
|
|
470
|
+
const { visibleStart: x, visibleEnd: E } = y(w), L = x === 0, z = E === k - 1;
|
|
471
|
+
d && ((_ = O.current) == null || _.style.setProperty("--gradient-opacity", L ? "0" : "1"), (P = M.current) == null || P.style.setProperty("--gradient-opacity", z ? "0" : "1"));
|
|
472
472
|
const R = w.Components.Controller.getIndex();
|
|
473
473
|
m == null || m({
|
|
474
474
|
index: R,
|
|
475
475
|
isStart: L,
|
|
476
|
-
isEnd:
|
|
477
|
-
total:
|
|
478
|
-
visibleStart:
|
|
479
|
-
visibleEnd:
|
|
476
|
+
isEnd: z,
|
|
477
|
+
total: k,
|
|
478
|
+
visibleStart: x,
|
|
479
|
+
visibleEnd: E
|
|
480
480
|
});
|
|
481
481
|
}, [m]);
|
|
482
482
|
fe.useEffect(() => {
|
|
483
|
-
var
|
|
484
|
-
const w = (
|
|
483
|
+
var k;
|
|
484
|
+
const w = (k = c.current) == null ? void 0 : k.splide;
|
|
485
485
|
if (!w) return;
|
|
486
|
-
const B =
|
|
487
|
-
|
|
488
|
-
w.refresh(),
|
|
486
|
+
const B = h.current !== e.length;
|
|
487
|
+
h.current = e.length, B && requestAnimationFrame(() => {
|
|
488
|
+
w.refresh(), C(w);
|
|
489
489
|
});
|
|
490
|
-
}, [e.length,
|
|
490
|
+
}, [e.length, C]);
|
|
491
491
|
const D = Ee(() => {
|
|
492
492
|
var B;
|
|
493
493
|
const w = (B = c.current) == null ? void 0 : B.splide;
|
|
494
|
-
w && (w.go(0, !1),
|
|
495
|
-
}, [
|
|
494
|
+
w && (w.go(0, !1), C(w));
|
|
495
|
+
}, [C]), I = Ee(
|
|
496
496
|
(w) => {
|
|
497
|
-
|
|
497
|
+
C(w);
|
|
498
498
|
},
|
|
499
|
-
[
|
|
500
|
-
),
|
|
499
|
+
[C]
|
|
500
|
+
), T = {
|
|
501
501
|
type: "slide",
|
|
502
502
|
trimSpace: !1,
|
|
503
503
|
drag: !0,
|
|
@@ -512,35 +512,35 @@ const ma = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", pa = "ora
|
|
|
512
512
|
...r,
|
|
513
513
|
...f ? { wheel: !1 } : {}
|
|
514
514
|
};
|
|
515
|
-
return /* @__PURE__ */
|
|
515
|
+
return /* @__PURE__ */ g(
|
|
516
516
|
"div",
|
|
517
517
|
{
|
|
518
|
-
ref:
|
|
518
|
+
ref: b,
|
|
519
519
|
className: s,
|
|
520
520
|
style: { width: "100%", position: "relative", height: "100%" },
|
|
521
521
|
children: [
|
|
522
522
|
/* @__PURE__ */ t(
|
|
523
|
-
|
|
523
|
+
ba,
|
|
524
524
|
{
|
|
525
525
|
ref: c,
|
|
526
|
-
options:
|
|
527
|
-
onMove:
|
|
526
|
+
options: T,
|
|
527
|
+
onMove: C,
|
|
528
528
|
onMounted: I,
|
|
529
529
|
onResize: D,
|
|
530
530
|
children: e.map((w, B) => {
|
|
531
|
-
var
|
|
532
|
-
return /* @__PURE__ */ t(
|
|
531
|
+
var k;
|
|
532
|
+
return /* @__PURE__ */ t(va, { children: a(w, B) }, p ? B : (k = w.id) != null ? k : B);
|
|
533
533
|
})
|
|
534
534
|
}
|
|
535
535
|
),
|
|
536
|
-
d && /* @__PURE__ */
|
|
536
|
+
d && /* @__PURE__ */ g(me, { children: [
|
|
537
537
|
/* @__PURE__ */ t(
|
|
538
538
|
"div",
|
|
539
539
|
{
|
|
540
|
-
ref:
|
|
540
|
+
ref: O,
|
|
541
541
|
className: `${ye.gradientOverlay} ${ye.left}`,
|
|
542
542
|
style: { "--gradient-opacity": "0" },
|
|
543
|
-
children: /* @__PURE__ */
|
|
543
|
+
children: /* @__PURE__ */ g(
|
|
544
544
|
"svg",
|
|
545
545
|
{
|
|
546
546
|
className: ye.svg,
|
|
@@ -550,7 +550,7 @@ const ma = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", pa = "ora
|
|
|
550
550
|
xmlns: "http://www.w3.org/2000/svg",
|
|
551
551
|
children: [
|
|
552
552
|
/* @__PURE__ */ t("path", { d: "M0 0H152V184H0V0Z", fill: "url(#paint_left)" }),
|
|
553
|
-
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */
|
|
553
|
+
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ g("linearGradient", { id: "paint_left", x1: "0", y1: "92", x2: "152", y2: "92", gradientUnits: "userSpaceOnUse", children: [
|
|
554
554
|
/* @__PURE__ */ t("stop", { offset: "0.59737", stopColor: "#121212", stopOpacity: "0" }),
|
|
555
555
|
/* @__PURE__ */ t("stop", { offset: "1", stopColor: "#121212" })
|
|
556
556
|
] }) })
|
|
@@ -565,7 +565,7 @@ const ma = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", pa = "ora
|
|
|
565
565
|
ref: M,
|
|
566
566
|
className: `${ye.gradientOverlay} ${ye.right}`,
|
|
567
567
|
style: { "--gradient-opacity": "1" },
|
|
568
|
-
children: /* @__PURE__ */
|
|
568
|
+
children: /* @__PURE__ */ g(
|
|
569
569
|
"svg",
|
|
570
570
|
{
|
|
571
571
|
className: ye.svg,
|
|
@@ -575,7 +575,7 @@ const ma = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", pa = "ora
|
|
|
575
575
|
xmlns: "http://www.w3.org/2000/svg",
|
|
576
576
|
children: [
|
|
577
577
|
/* @__PURE__ */ t("path", { d: "M0 0H152V184H0V0Z", fill: "url(#paint_right)" }),
|
|
578
|
-
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */
|
|
578
|
+
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ g("linearGradient", { id: "paint_right", x1: "0", y1: "92", x2: "152", y2: "92", gradientUnits: "userSpaceOnUse", children: [
|
|
579
579
|
/* @__PURE__ */ t("stop", { offset: "0.59737", stopColor: "#121212", stopOpacity: "0" }),
|
|
580
580
|
/* @__PURE__ */ t("stop", { offset: "1", stopColor: "#121212" })
|
|
581
581
|
] }) })
|
|
@@ -598,7 +598,7 @@ const ma = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", pa = "ora
|
|
|
598
598
|
const i = n === "lg" ? { w: 280, h: 352 } : { w: 152, h: 168 }, r = (m) => {
|
|
599
599
|
m.stopPropagation(), a == null || a();
|
|
600
600
|
}, s = o ? { width: "100%", height: "100%" } : { width: `${i.w}px`, height: `${i.h}px` };
|
|
601
|
-
return /* @__PURE__ */
|
|
601
|
+
return /* @__PURE__ */ g(
|
|
602
602
|
q,
|
|
603
603
|
{
|
|
604
604
|
onClick: a,
|
|
@@ -676,7 +676,7 @@ const ma = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", pa = "ora
|
|
|
676
676
|
}
|
|
677
677
|
);
|
|
678
678
|
};
|
|
679
|
-
function
|
|
679
|
+
function _a({
|
|
680
680
|
imageUrl: e,
|
|
681
681
|
orden: a = 1,
|
|
682
682
|
onClick: n,
|
|
@@ -686,18 +686,18 @@ function va({
|
|
|
686
686
|
md: { w: 186, h: 264, r: 22.6, font: 64 }
|
|
687
687
|
}
|
|
688
688
|
}) {
|
|
689
|
-
var l, c,
|
|
690
|
-
const r = (
|
|
691
|
-
var
|
|
689
|
+
var l, c, b, h;
|
|
690
|
+
const r = (O, M) => {
|
|
691
|
+
var y, v, C, D;
|
|
692
692
|
return {
|
|
693
|
-
xs: (
|
|
694
|
-
md: (D = (
|
|
693
|
+
xs: (v = (y = i.xs) == null ? void 0 : y[O]) != null ? v : M,
|
|
694
|
+
md: (D = (C = i.md) == null ? void 0 : C[O]) != null ? D : M
|
|
695
695
|
};
|
|
696
696
|
}, s = r("w", 186), m = r("h", 264), p = r("r", 22.6), f = r("font", 64), d = {
|
|
697
697
|
xs: Math.round(((c = (l = i.xs) == null ? void 0 : l.font) != null ? c : 64) * 0.28),
|
|
698
|
-
md: Math.round(((
|
|
698
|
+
md: Math.round(((h = (b = i.md) == null ? void 0 : b.font) != null ? h : 64) * 0.28)
|
|
699
699
|
};
|
|
700
|
-
return /* @__PURE__ */
|
|
700
|
+
return /* @__PURE__ */ g(
|
|
701
701
|
q,
|
|
702
702
|
{
|
|
703
703
|
sx: {
|
|
@@ -787,7 +787,7 @@ function va({
|
|
|
787
787
|
}
|
|
788
788
|
);
|
|
789
789
|
}
|
|
790
|
-
const
|
|
790
|
+
const ya = ({
|
|
791
791
|
logo: e,
|
|
792
792
|
provider: a,
|
|
793
793
|
providerName: n,
|
|
@@ -795,7 +795,7 @@ const _a = ({
|
|
|
795
795
|
onClick: i
|
|
796
796
|
}) => {
|
|
797
797
|
var r;
|
|
798
|
-
return /* @__PURE__ */
|
|
798
|
+
return /* @__PURE__ */ g(
|
|
799
799
|
q,
|
|
800
800
|
{
|
|
801
801
|
onClick: i,
|
|
@@ -866,7 +866,7 @@ const _a = ({
|
|
|
866
866
|
]
|
|
867
867
|
}
|
|
868
868
|
);
|
|
869
|
-
},
|
|
869
|
+
}, Pe = 12, Fe = ({ r: e = 16 }) => /* @__PURE__ */ t(q, { sx: { width: "100%", height: "100%", borderRadius: e, overflow: "hidden" }, children: /* @__PURE__ */ t(
|
|
870
870
|
j,
|
|
871
871
|
{
|
|
872
872
|
variant: "rectangular",
|
|
@@ -891,7 +891,7 @@ const _a = ({
|
|
|
891
891
|
var r, s;
|
|
892
892
|
if (a === "mosaic") {
|
|
893
893
|
const m = e[0], p = e.slice(1, 5);
|
|
894
|
-
return /* @__PURE__ */
|
|
894
|
+
return /* @__PURE__ */ g(
|
|
895
895
|
q,
|
|
896
896
|
{
|
|
897
897
|
sx: {
|
|
@@ -909,8 +909,8 @@ const _a = ({
|
|
|
909
909
|
xs: "104px",
|
|
910
910
|
md: "152px"
|
|
911
911
|
},
|
|
912
|
-
columnGap: `${
|
|
913
|
-
rowGap: `${
|
|
912
|
+
columnGap: `${Pe}px`,
|
|
913
|
+
rowGap: `${Pe}px`,
|
|
914
914
|
alignItems: "stretch",
|
|
915
915
|
justifyItems: "stretch"
|
|
916
916
|
},
|
|
@@ -925,7 +925,7 @@ const _a = ({
|
|
|
925
925
|
overflow: "hidden",
|
|
926
926
|
borderRadius: 2
|
|
927
927
|
},
|
|
928
|
-
children: o ? /* @__PURE__ */ t(
|
|
928
|
+
children: o ? /* @__PURE__ */ t(Fe, {}) : m && /* @__PURE__ */ t(
|
|
929
929
|
Te,
|
|
930
930
|
{
|
|
931
931
|
imageUrl: `https://olimpo.bet${(s = (r = m.background) != null ? r : m.imageUrl) != null ? s : ""}`,
|
|
@@ -947,7 +947,7 @@ const _a = ({
|
|
|
947
947
|
overflow: "hidden",
|
|
948
948
|
borderRadius: 2
|
|
949
949
|
},
|
|
950
|
-
children: o ? /* @__PURE__ */ t(
|
|
950
|
+
children: o ? /* @__PURE__ */ t(Fe, {}) : /* @__PURE__ */ t(
|
|
951
951
|
Te,
|
|
952
952
|
{
|
|
953
953
|
imageUrl: `https://olimpo.bet${(c = (l = f.background) != null ? l : f.imageUrl) != null ? c : ""}`,
|
|
@@ -977,7 +977,7 @@ const _a = ({
|
|
|
977
977
|
xs: "repeat(2, 112px)",
|
|
978
978
|
md: "repeat(2, 168px)"
|
|
979
979
|
},
|
|
980
|
-
gap: `${
|
|
980
|
+
gap: `${Pe}px`,
|
|
981
981
|
gridAutoFlow: "column"
|
|
982
982
|
},
|
|
983
983
|
children: (o ? Array.from({ length: i }) : e).map((m, p) => {
|
|
@@ -986,7 +986,7 @@ const _a = ({
|
|
|
986
986
|
q,
|
|
987
987
|
{
|
|
988
988
|
sx: { overflow: "hidden", borderRadius: 2 },
|
|
989
|
-
children: o ? /* @__PURE__ */ t(
|
|
989
|
+
children: o ? /* @__PURE__ */ t(Fe, {}) : /* @__PURE__ */ t(
|
|
990
990
|
Te,
|
|
991
991
|
{
|
|
992
992
|
imageUrl: `https://olimpo.bet${(d = (f = m.background) != null ? f : m.imageUrl) != null ? d : ""}`,
|
|
@@ -1013,7 +1013,7 @@ const _a = ({
|
|
|
1013
1013
|
variant: p = "small"
|
|
1014
1014
|
}) => {
|
|
1015
1015
|
const f = a ? a.slice(0, 2) : "", d = a ? a.slice(2) : "", l = p === "large";
|
|
1016
|
-
return /* @__PURE__ */
|
|
1016
|
+
return /* @__PURE__ */ g(
|
|
1017
1017
|
q,
|
|
1018
1018
|
{
|
|
1019
1019
|
className: m,
|
|
@@ -1074,7 +1074,7 @@ const _a = ({
|
|
|
1074
1074
|
pl: "14%",
|
|
1075
1075
|
pr: { xs: "14%", lg: "15%" }
|
|
1076
1076
|
},
|
|
1077
|
-
children: /* @__PURE__ */
|
|
1077
|
+
children: /* @__PURE__ */ g(
|
|
1078
1078
|
q,
|
|
1079
1079
|
{
|
|
1080
1080
|
sx: {
|
|
@@ -1095,7 +1095,7 @@ const _a = ({
|
|
|
1095
1095
|
children: e
|
|
1096
1096
|
}
|
|
1097
1097
|
),
|
|
1098
|
-
a && /* @__PURE__ */
|
|
1098
|
+
a && /* @__PURE__ */ g(
|
|
1099
1099
|
q,
|
|
1100
1100
|
{
|
|
1101
1101
|
component: "p",
|
|
@@ -1153,7 +1153,7 @@ const _a = ({
|
|
|
1153
1153
|
]
|
|
1154
1154
|
}
|
|
1155
1155
|
);
|
|
1156
|
-
},
|
|
1156
|
+
}, xa = ({
|
|
1157
1157
|
text: e,
|
|
1158
1158
|
buttonLabel: a = "Conoce más",
|
|
1159
1159
|
onClick: n,
|
|
@@ -1161,7 +1161,7 @@ const _a = ({
|
|
|
1161
1161
|
imgSrcMobile: i,
|
|
1162
1162
|
imgSrcDesktopBg: r,
|
|
1163
1163
|
imgSrcDesktopLogo: s
|
|
1164
|
-
}) => /* @__PURE__ */
|
|
1164
|
+
}) => /* @__PURE__ */ g(me, { children: [
|
|
1165
1165
|
/* @__PURE__ */ t("div", { className: "orc-co-bgMobile", children: /* @__PURE__ */ t(
|
|
1166
1166
|
"img",
|
|
1167
1167
|
{
|
|
@@ -1170,7 +1170,7 @@ const _a = ({
|
|
|
1170
1170
|
className: "orc-co-bgMobileImg"
|
|
1171
1171
|
}
|
|
1172
1172
|
) }),
|
|
1173
|
-
/* @__PURE__ */ t("div", { className: "orc-co-bgDesktop", children: /* @__PURE__ */
|
|
1173
|
+
/* @__PURE__ */ t("div", { className: "orc-co-bgDesktop", children: /* @__PURE__ */ g("div", { className: "orc-co-desktopInner", children: [
|
|
1174
1174
|
r && /* @__PURE__ */ t("div", { className: "orc-co-fillHost", children: /* @__PURE__ */ t(
|
|
1175
1175
|
"img",
|
|
1176
1176
|
{
|
|
@@ -1179,7 +1179,7 @@ const _a = ({
|
|
|
1179
1179
|
className: "orc-co-bgDesktopImg"
|
|
1180
1180
|
}
|
|
1181
1181
|
) }),
|
|
1182
|
-
/* @__PURE__ */
|
|
1182
|
+
/* @__PURE__ */ g("div", { className: "orc-co-desktopContent", children: [
|
|
1183
1183
|
s && /* @__PURE__ */ t(
|
|
1184
1184
|
"img",
|
|
1185
1185
|
{
|
|
@@ -1192,32 +1192,32 @@ const _a = ({
|
|
|
1192
1192
|
/* @__PURE__ */ t(X, { onClick: n, variant: "primary", size: "md", children: a })
|
|
1193
1193
|
] })
|
|
1194
1194
|
] }) }),
|
|
1195
|
-
/* @__PURE__ */
|
|
1195
|
+
/* @__PURE__ */ g("div", { className: "orc-co-bottom", children: [
|
|
1196
1196
|
/* @__PURE__ */ t("p", { className: "orc-co-caption", children: e }),
|
|
1197
1197
|
/* @__PURE__ */ t(X, { onClick: n, variant: "primary", size: "md", children: a })
|
|
1198
1198
|
] })
|
|
1199
|
-
] }),
|
|
1200
|
-
card:
|
|
1201
|
-
combinadas:
|
|
1202
|
-
combinadasScroll:
|
|
1203
|
-
apuestaItem:
|
|
1204
|
-
lineContainer:
|
|
1205
|
-
circle:
|
|
1206
|
-
line:
|
|
1207
|
-
apuestaText:
|
|
1208
|
-
cuotaTotal:
|
|
1199
|
+
] }), wa = "oraculo__OraculoEventCombinadasCard-module__card___ulQeY", Sa = "oraculo__OraculoEventCombinadasCard-module__combinadas___Gxrld", Ia = "oraculo__OraculoEventCombinadasCard-module__combinadasScroll___47cZl", Ca = "oraculo__OraculoEventCombinadasCard-module__apuestaItem___YnYMy", Oa = "oraculo__OraculoEventCombinadasCard-module__lineContainer___G5rbU", Ea = "oraculo__OraculoEventCombinadasCard-module__circle___eehm-", Ta = "oraculo__OraculoEventCombinadasCard-module__line___Eb2pK", ka = "oraculo__OraculoEventCombinadasCard-module__apuestaText___b5s7S", $a = "oraculo__OraculoEventCombinadasCard-module__cuotaTotal___Lohvu", le = {
|
|
1200
|
+
card: wa,
|
|
1201
|
+
combinadas: Sa,
|
|
1202
|
+
combinadasScroll: Ia,
|
|
1203
|
+
apuestaItem: Ca,
|
|
1204
|
+
lineContainer: Oa,
|
|
1205
|
+
circle: Ea,
|
|
1206
|
+
line: Ta,
|
|
1207
|
+
apuestaText: ka,
|
|
1208
|
+
cuotaTotal: $a
|
|
1209
1209
|
};
|
|
1210
1210
|
function Ue(e, a) {
|
|
1211
1211
|
const n = Array.isArray(a) ? a : [a];
|
|
1212
1212
|
sessionStorage.setItem("landingOutcomes", JSON.stringify(n)), window.location.href = e;
|
|
1213
1213
|
}
|
|
1214
|
-
function
|
|
1214
|
+
function Na() {
|
|
1215
1215
|
window.location.href = "/deportes#in-play";
|
|
1216
1216
|
}
|
|
1217
|
-
function
|
|
1217
|
+
function Ma() {
|
|
1218
1218
|
window.location.href = "/deportes#sports-hub/football";
|
|
1219
1219
|
}
|
|
1220
|
-
function
|
|
1220
|
+
function Ba() {
|
|
1221
1221
|
window.location.href = "/deportes#specials";
|
|
1222
1222
|
}
|
|
1223
1223
|
async function pt(e) {
|
|
@@ -1231,47 +1231,47 @@ async function pt(e) {
|
|
|
1231
1231
|
})
|
|
1232
1232
|
})).json();
|
|
1233
1233
|
}
|
|
1234
|
-
const ft =
|
|
1234
|
+
const ft = Tt(void 0), gt = ({ children: e, docId: a, moduleId: n }) => {
|
|
1235
1235
|
const o = fe.useMemo(() => ({ docId: a, moduleId: n }), [a, n]);
|
|
1236
1236
|
return /* @__PURE__ */ t(ft.Provider, { value: o, children: e });
|
|
1237
1237
|
}, ht = () => {
|
|
1238
|
-
const e =
|
|
1238
|
+
const e = kt(ft);
|
|
1239
1239
|
if (!e)
|
|
1240
1240
|
throw new Error("useDocContext debe usarse dentro de DocIdProvider");
|
|
1241
1241
|
return e;
|
|
1242
1242
|
}, ne = () => ht().docId, se = () => ht().moduleId;
|
|
1243
|
-
function
|
|
1243
|
+
function za({ coupon: e }) {
|
|
1244
1244
|
var f;
|
|
1245
1245
|
const a = ae(), n = ne();
|
|
1246
1246
|
function o(d) {
|
|
1247
|
-
var
|
|
1247
|
+
var b, h;
|
|
1248
1248
|
const l = [], c = Array.from(
|
|
1249
1249
|
new Map(
|
|
1250
|
-
((
|
|
1250
|
+
((b = d == null ? void 0 : d.events) != null ? b : []).filter(Boolean).map((O) => [O.id, O])
|
|
1251
1251
|
).values()
|
|
1252
1252
|
);
|
|
1253
|
-
return c.forEach((
|
|
1254
|
-
var
|
|
1255
|
-
const M = (
|
|
1253
|
+
return c.forEach((O) => {
|
|
1254
|
+
var C;
|
|
1255
|
+
const M = (C = O.betoffers) != null ? C : [], y = O.homeName, v = O.awayName;
|
|
1256
1256
|
M.forEach((D) => {
|
|
1257
|
-
var B,
|
|
1257
|
+
var B, k, x, E, L, z, R;
|
|
1258
1258
|
if (!((B = D == null ? void 0 : D.outcomes) != null && B.length)) return;
|
|
1259
1259
|
const I = D.outcomes[0];
|
|
1260
1260
|
if (!I) return;
|
|
1261
|
-
let
|
|
1261
|
+
let T = "";
|
|
1262
1262
|
const w = I != null && I.line ? I.line / 1e3 : "";
|
|
1263
|
-
["Más de", "Mas de", "Over"].includes(I.label) ? (
|
|
1263
|
+
["Más de", "Mas de", "Over"].includes(I.label) ? (T = `Más de ${w}`, I.participant && (T = `${I.participant} - ${T}`)) : ["Menos de", "Menos", "Under"].includes(I.label) ? (T = `Menos de ${w}`, I.participant && (T = `${I.participant} - ${T}`)) : ["Sí", "No"].includes(I.label) ? (T = I.label, I.participant && (T = `${I.participant} - ${T}`)) : ["1X", "12", "X2"].includes(I.label) ? (I.label === "1X" && (T = `${y} o Empate`), I.label === "12" && (T = `${y} o ${v}`), I.label === "X2" && (T = `${v} o Empate`)) : (T = (x = (k = I.participant) != null ? k : I.label) != null ? x : "", w !== "" && T === I.label && (T = `${I.label} ${w}`)), l.push({
|
|
1264
1264
|
id: I.id,
|
|
1265
|
-
value:
|
|
1266
|
-
label: (L = (
|
|
1267
|
-
odds: (
|
|
1265
|
+
value: T,
|
|
1266
|
+
label: (L = (E = D.criterion) == null ? void 0 : E.label) != null ? L : "",
|
|
1267
|
+
odds: (z = I.odds) != null ? z : 0,
|
|
1268
1268
|
position: (R = I.position) != null ? R : 0,
|
|
1269
|
-
eventId:
|
|
1269
|
+
eventId: O.id
|
|
1270
1270
|
});
|
|
1271
1271
|
});
|
|
1272
1272
|
}), {
|
|
1273
|
-
outcomes: l.sort((
|
|
1274
|
-
total: Number((
|
|
1273
|
+
outcomes: l.sort((O, M) => O.position - M.position),
|
|
1274
|
+
total: Number((h = d == null ? void 0 : d.combinadoTotal) != null ? h : 0).toLocaleString("en-US", {
|
|
1275
1275
|
minimumFractionDigits: 2,
|
|
1276
1276
|
maximumFractionDigits: 2
|
|
1277
1277
|
}),
|
|
@@ -1285,43 +1285,43 @@ function Ba({ coupon: e }) {
|
|
|
1285
1285
|
if (l.length === 1)
|
|
1286
1286
|
return `/deportes#event/${l[0].id}`;
|
|
1287
1287
|
const c = l[0].groupId;
|
|
1288
|
-
if (l.every((
|
|
1289
|
-
const
|
|
1290
|
-
if (Array.isArray(
|
|
1291
|
-
return `/deportes#sports-hub/${
|
|
1288
|
+
if (l.every((h) => h.groupId === c)) {
|
|
1289
|
+
const h = l[0].path;
|
|
1290
|
+
if (Array.isArray(h) && h.length > 0)
|
|
1291
|
+
return `/deportes#sports-hub/${h.map((M) => M.termKey).filter(Boolean).join("/")}`;
|
|
1292
1292
|
}
|
|
1293
1293
|
return "/deportes#home";
|
|
1294
1294
|
}
|
|
1295
1295
|
const r = (d, l) => {
|
|
1296
|
-
const c = Array.isArray(d) ? d : [d],
|
|
1296
|
+
const c = Array.isArray(d) ? d : [d], b = Array.from(
|
|
1297
1297
|
new Set(
|
|
1298
1298
|
s.outcomes.map((M) => {
|
|
1299
|
-
var
|
|
1300
|
-
const
|
|
1301
|
-
return (
|
|
1299
|
+
var v;
|
|
1300
|
+
const y = p.get(Number(M.eventId));
|
|
1301
|
+
return (v = y == null ? void 0 : y.name) != null ? v : "";
|
|
1302
1302
|
})
|
|
1303
1303
|
)
|
|
1304
|
-
).filter(Boolean),
|
|
1304
|
+
).filter(Boolean), h = b.length > 0 ? b.join(" + ") : JSON.stringify(c), O = l ? `${h} - Cuota: ${l}` : h;
|
|
1305
1305
|
a({
|
|
1306
1306
|
element: "evento_semana_outcome",
|
|
1307
|
-
label: `Landing: ${n} - OraculoEventCombinadasCard - Click: ${
|
|
1307
|
+
label: `Landing: ${n} - OraculoEventCombinadasCard - Click: ${O}`,
|
|
1308
1308
|
target: "/deportes#in-play",
|
|
1309
1309
|
event_type: "click",
|
|
1310
1310
|
module_id: 301,
|
|
1311
1311
|
metadata: {
|
|
1312
1312
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1313
1313
|
},
|
|
1314
|
-
tags: { section: "OraculoEventCombinadasCard", outcomes:
|
|
1314
|
+
tags: { section: "OraculoEventCombinadasCard", outcomes: O }
|
|
1315
1315
|
}), Ue(i(e), d);
|
|
1316
1316
|
};
|
|
1317
1317
|
if (!((f = e == null ? void 0 : e.events) != null && f.length)) return null;
|
|
1318
1318
|
const s = o(e), m = s.outcomes.reduce((d, l) => (d[l.eventId] || (d[l.eventId] = []), d[l.eventId].push(l), d), {}), p = new Map(
|
|
1319
1319
|
s.events.map((d) => [d.id, d])
|
|
1320
1320
|
);
|
|
1321
|
-
return /* @__PURE__ */
|
|
1321
|
+
return /* @__PURE__ */ g("div", { className: le.card, children: [
|
|
1322
1322
|
/* @__PURE__ */ t("div", { className: le.combinadas, children: /* @__PURE__ */ t("div", { className: le.combinadasScroll, children: /* @__PURE__ */ t(H, { direction: "column", spacing: 1.5, useFlexGap: !0, children: Object.entries(m).reverse().map(([d, l]) => {
|
|
1323
1323
|
const c = p.get(Number(d));
|
|
1324
|
-
return c ? /* @__PURE__ */
|
|
1324
|
+
return c ? /* @__PURE__ */ g(
|
|
1325
1325
|
H,
|
|
1326
1326
|
{
|
|
1327
1327
|
direction: "column",
|
|
@@ -1343,23 +1343,23 @@ function Ba({ coupon: e }) {
|
|
|
1343
1343
|
src: "/assets/img/home/Combinadas/line.png"
|
|
1344
1344
|
}
|
|
1345
1345
|
),
|
|
1346
|
-
l.map((
|
|
1347
|
-
/* @__PURE__ */
|
|
1346
|
+
l.map((b, h) => /* @__PURE__ */ g("div", { className: le.apuestaItem, children: [
|
|
1347
|
+
/* @__PURE__ */ g("div", { className: le.lineContainer, children: [
|
|
1348
1348
|
/* @__PURE__ */ t("div", { className: le.circle }),
|
|
1349
|
-
|
|
1349
|
+
h < l.length - 1 && /* @__PURE__ */ t("div", { className: le.line })
|
|
1350
1350
|
] }),
|
|
1351
|
-
/* @__PURE__ */
|
|
1352
|
-
/* @__PURE__ */ t("strong", { children:
|
|
1351
|
+
/* @__PURE__ */ g("div", { className: le.apuestaText, children: [
|
|
1352
|
+
/* @__PURE__ */ t("strong", { children: b.value }),
|
|
1353
1353
|
" | ",
|
|
1354
|
-
|
|
1354
|
+
b.label
|
|
1355
1355
|
] })
|
|
1356
|
-
] }, `${d}-${
|
|
1356
|
+
] }, `${d}-${h}`))
|
|
1357
1357
|
]
|
|
1358
1358
|
},
|
|
1359
1359
|
d
|
|
1360
1360
|
) : null;
|
|
1361
1361
|
}) }) }) }),
|
|
1362
|
-
/* @__PURE__ */
|
|
1362
|
+
/* @__PURE__ */ g(
|
|
1363
1363
|
"button",
|
|
1364
1364
|
{
|
|
1365
1365
|
onClick: () => r(
|
|
@@ -1368,7 +1368,7 @@ function Ba({ coupon: e }) {
|
|
|
1368
1368
|
),
|
|
1369
1369
|
className: le.cuotaTotal,
|
|
1370
1370
|
children: [
|
|
1371
|
-
/* @__PURE__ */
|
|
1371
|
+
/* @__PURE__ */ g("span", { children: [
|
|
1372
1372
|
"Cuota total: ",
|
|
1373
1373
|
/* @__PURE__ */ t("strong", { children: s.total })
|
|
1374
1374
|
] }),
|
|
@@ -1413,11 +1413,11 @@ function Aa({
|
|
|
1413
1413
|
fullHeight: d = !1,
|
|
1414
1414
|
className: l = "",
|
|
1415
1415
|
ariaLabel: c,
|
|
1416
|
-
leftIcon:
|
|
1417
|
-
rightIcon:
|
|
1418
|
-
iconOnly:
|
|
1416
|
+
leftIcon: b,
|
|
1417
|
+
rightIcon: h,
|
|
1418
|
+
iconOnly: O
|
|
1419
1419
|
}) {
|
|
1420
|
-
const M = !!e && e !== !0,
|
|
1420
|
+
const M = !!e && e !== !0, C = (!!b ? 1 : 0) + (!!h ? 1 : 0) == 1, D = O != null ? O : C && !M, I = [
|
|
1421
1421
|
ce["orc-btn"],
|
|
1422
1422
|
// base
|
|
1423
1423
|
ce[`orc-btn--${m}`],
|
|
@@ -1428,10 +1428,10 @@ function Aa({
|
|
|
1428
1428
|
d ? ce["orc-btn--fullHeight"] : "",
|
|
1429
1429
|
D ? ce["orc-btn--iconOnly"] : "",
|
|
1430
1430
|
l
|
|
1431
|
-
].filter(Boolean).join(" "),
|
|
1432
|
-
|
|
1431
|
+
].filter(Boolean).join(" "), T = /* @__PURE__ */ g(me, { children: [
|
|
1432
|
+
b && /* @__PURE__ */ t("span", { className: ce["orc-btn__icon"], children: b }),
|
|
1433
1433
|
!D && /* @__PURE__ */ t("span", { className: ce["orc-btn__label"], children: e }),
|
|
1434
|
-
|
|
1434
|
+
h && /* @__PURE__ */ t("span", { className: ce["orc-btn__icon"], children: h })
|
|
1435
1435
|
] }), w = s ? !0 : void 0;
|
|
1436
1436
|
return n ? /* @__PURE__ */ t(
|
|
1437
1437
|
ot,
|
|
@@ -1444,7 +1444,7 @@ function Aa({
|
|
|
1444
1444
|
tabIndex: w ? -1 : void 0,
|
|
1445
1445
|
className: I,
|
|
1446
1446
|
onClick: w ? (B) => B.preventDefault() : a,
|
|
1447
|
-
children:
|
|
1447
|
+
children: T
|
|
1448
1448
|
}
|
|
1449
1449
|
) : /* @__PURE__ */ t(
|
|
1450
1450
|
"button",
|
|
@@ -1454,14 +1454,14 @@ function Aa({
|
|
|
1454
1454
|
disabled: !!w,
|
|
1455
1455
|
"aria-label": c,
|
|
1456
1456
|
className: I,
|
|
1457
|
-
children:
|
|
1457
|
+
children: T
|
|
1458
1458
|
}
|
|
1459
1459
|
);
|
|
1460
1460
|
}
|
|
1461
|
-
const
|
|
1462
|
-
cardWrapper:
|
|
1463
|
-
customButtonLabel:
|
|
1464
|
-
customButtonDisabled:
|
|
1461
|
+
const Ra = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", La = "oraculo__OraculoEventEnVivoCard-module__customButtonLabel___QRhk7", Pa = "oraculo__OraculoEventEnVivoCard-module__customButtonDisabled___jwioF", ke = {
|
|
1462
|
+
cardWrapper: Ra,
|
|
1463
|
+
customButtonLabel: La,
|
|
1464
|
+
customButtonDisabled: Pa
|
|
1465
1465
|
}, Xe = {
|
|
1466
1466
|
base: "FFFFFF",
|
|
1467
1467
|
sleeve: "FFFFFF",
|
|
@@ -1484,11 +1484,11 @@ const za = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", Ra = "
|
|
|
1484
1484
|
return o || (a === "home" ? Xe : Je);
|
|
1485
1485
|
};
|
|
1486
1486
|
function Fa({ event: e, liveData: a, betOffers: n, jersey: o }) {
|
|
1487
|
-
var m, p, f, d, l, c,
|
|
1487
|
+
var m, p, f, d, l, c, b, h, O, M, y;
|
|
1488
1488
|
const i = n == null ? void 0 : n.find(
|
|
1489
|
-
(
|
|
1490
|
-
var
|
|
1491
|
-
return ((
|
|
1489
|
+
(v) => {
|
|
1490
|
+
var C;
|
|
1491
|
+
return ((C = v.betOfferType) == null ? void 0 : C.id) === 2;
|
|
1492
1492
|
}
|
|
1493
1493
|
), r = {
|
|
1494
1494
|
englishLabel: "",
|
|
@@ -1504,10 +1504,10 @@ function Fa({ event: e, liveData: a, betOffers: n, jersey: o }) {
|
|
|
1504
1504
|
{ ...r, id: -2, label: "X", odds: void 0 },
|
|
1505
1505
|
{ ...r, id: -3, label: "2", odds: void 0 }
|
|
1506
1506
|
];
|
|
1507
|
-
return /* @__PURE__ */ t("div", { className: ke.cardWrapper, children: /* @__PURE__ */
|
|
1508
|
-
/* @__PURE__ */
|
|
1507
|
+
return /* @__PURE__ */ t("div", { className: ke.cardWrapper, children: /* @__PURE__ */ g(H, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1508
|
+
/* @__PURE__ */ g(H, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
1509
1509
|
/* @__PURE__ */ t(
|
|
1510
|
-
|
|
1510
|
+
Gt,
|
|
1511
1511
|
{
|
|
1512
1512
|
title: (f = (p = (m = e == null ? void 0 : e.path) == null ? void 0 : m[0]) == null ? void 0 : p.name) != null ? f : "",
|
|
1513
1513
|
subtitle: (d = e == null ? void 0 : e.group) != null ? d : "",
|
|
@@ -1515,75 +1515,75 @@ function Fa({ event: e, liveData: a, betOffers: n, jersey: o }) {
|
|
|
1515
1515
|
time: ((l = a == null ? void 0 : a.matchClock) == null ? void 0 : l.minute) != null ? `${a.matchClock.minute}'` : ""
|
|
1516
1516
|
}
|
|
1517
1517
|
),
|
|
1518
|
-
/* @__PURE__ */ t("div", { style: { padding: "0 4px" }, children: /* @__PURE__ */
|
|
1518
|
+
/* @__PURE__ */ t("div", { style: { padding: "0 4px" }, children: /* @__PURE__ */ g(ue, { spacing: 1.5, columns: "1fr auto 1fr", children: [
|
|
1519
1519
|
/* @__PURE__ */ t(Ne, { name: e == null ? void 0 : e.homeName, jersey: Me(o, "home") }),
|
|
1520
|
-
/* @__PURE__ */ t(ut, { text: ((
|
|
1520
|
+
/* @__PURE__ */ t(ut, { text: ((b = (c = a == null ? void 0 : a.score) == null ? void 0 : c.home) != null ? b : 0) + ":" + ((O = (h = a == null ? void 0 : a.score) == null ? void 0 : h.away) != null ? O : 0), name: "En vivo" }),
|
|
1521
1521
|
/* @__PURE__ */ t(Ne, { name: e == null ? void 0 : e.awayName, jersey: Me(o, "away") })
|
|
1522
1522
|
] }) })
|
|
1523
1523
|
] }),
|
|
1524
|
-
/* @__PURE__ */
|
|
1525
|
-
/* @__PURE__ */ t(ue, { spacing: 1, children: ((M = i == null ? void 0 : i.outcomes) != null ? M : s).map((
|
|
1526
|
-
/* @__PURE__ */ t(ue, { spacing: 2, children: ((
|
|
1527
|
-
Ue("/deportes#event/live/" + e.id,
|
|
1528
|
-
}, className: ke.customButtonDisabled, children: /* @__PURE__ */ t("span", { className: ke.customButtonLabel, children:
|
|
1524
|
+
/* @__PURE__ */ g(H, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1525
|
+
/* @__PURE__ */ t(ue, { spacing: 1, children: ((M = i == null ? void 0 : i.outcomes) != null ? M : s).map((v, C) => /* @__PURE__ */ t(ct, { text: v.label.toUpperCase() }, C)) }),
|
|
1526
|
+
/* @__PURE__ */ t(ue, { spacing: 2, children: ((y = i == null ? void 0 : i.outcomes) != null ? y : s).map((v, C) => /* @__PURE__ */ t(Aa, { variant: "primary", disabled: v.odds == null || (i == null ? void 0 : i.cashOutStatus) == "SUSPENDED", onClick: () => {
|
|
1527
|
+
Ue("/deportes#event/live/" + e.id, v.id);
|
|
1528
|
+
}, className: ke.customButtonDisabled, children: /* @__PURE__ */ t("span", { className: ke.customButtonLabel, children: v.odds === void 0 ? "" : (v.odds / 1e3).toFixed(2) }) }, C)) })
|
|
1529
1529
|
] })
|
|
1530
1530
|
] }) });
|
|
1531
1531
|
}
|
|
1532
|
-
const
|
|
1533
|
-
date:
|
|
1532
|
+
const qa = "oraculo__OraculoEventDate-module__date___xhIlh", Da = {
|
|
1533
|
+
date: qa
|
|
1534
1534
|
};
|
|
1535
|
-
function
|
|
1536
|
-
return /* @__PURE__ */ t("div", { className: `oli-font ${
|
|
1535
|
+
function Ua({ text: e }) {
|
|
1536
|
+
return /* @__PURE__ */ t("div", { className: `oli-font ${Da.date}`, children: e });
|
|
1537
1537
|
}
|
|
1538
|
-
const
|
|
1539
|
-
cardContainer:
|
|
1540
|
-
cardBackground:
|
|
1541
|
-
jugadas:
|
|
1542
|
-
equipos:
|
|
1538
|
+
const Va = "oraculo__OraculoEventSemanaCard-module__cardContainer___4JuDe", Wa = "oraculo__OraculoEventSemanaCard-module__cardBackground___vfalD", Ga = "oraculo__OraculoEventSemanaCard-module__jugadas___W8b7H", ja = "oraculo__OraculoEventSemanaCard-module__equipos___G5hLn", be = {
|
|
1539
|
+
cardContainer: Va,
|
|
1540
|
+
cardBackground: Wa,
|
|
1541
|
+
jugadas: Ga,
|
|
1542
|
+
equipos: ja
|
|
1543
1543
|
};
|
|
1544
|
-
function
|
|
1544
|
+
function Ha({ event: e, jersey: a }) {
|
|
1545
1545
|
var s, m, p, f, d, l, c;
|
|
1546
1546
|
const n = ae(), o = ne();
|
|
1547
|
-
function i(
|
|
1548
|
-
const
|
|
1549
|
-
let
|
|
1550
|
-
return
|
|
1547
|
+
function i(b) {
|
|
1548
|
+
const h = new Date(b), O = h.toLocaleDateString("es-ES", { weekday: "short" }).toUpperCase(), M = h.getDate().toString().padStart(2, "0"), y = (h.getMonth() + 1).toString().padStart(2, "0");
|
|
1549
|
+
let v = h.toLocaleTimeString("es-PE", { hour: "numeric", minute: "2-digit", hour12: !0 }).toUpperCase();
|
|
1550
|
+
return v = v.replace(/\./g, "").replace(/A\s*M/i, "AM").replace(/P\s*M/i, "PM"), `${O} ${M}/${y} | ${v}`;
|
|
1551
1551
|
}
|
|
1552
|
-
const r = (
|
|
1553
|
-
const
|
|
1552
|
+
const r = (b, h) => {
|
|
1553
|
+
const O = `${e.homeName} vs ${e.awayName}`, M = h ? (h / 1e3).toFixed(2) : "", y = M ? `${O} - Cuota: ${M}` : O;
|
|
1554
1554
|
n({
|
|
1555
1555
|
element: "evento_semana_outcome",
|
|
1556
|
-
label: `Landing: ${o} - OraculoEventSemanaCard - Click: ${
|
|
1556
|
+
label: `Landing: ${o} - OraculoEventSemanaCard - Click: ${y}`,
|
|
1557
1557
|
target: "/deportes#in-play",
|
|
1558
1558
|
event_type: "click",
|
|
1559
1559
|
module_id: 301,
|
|
1560
1560
|
metadata: {
|
|
1561
1561
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1562
1562
|
},
|
|
1563
|
-
tags: { section: "OraculoEventSemanaCard", outcomes:
|
|
1564
|
-
}), Ue("/deportes#event/" + e.id,
|
|
1563
|
+
tags: { section: "OraculoEventSemanaCard", outcomes: y }
|
|
1564
|
+
}), Ue("/deportes#event/" + e.id, b);
|
|
1565
1565
|
};
|
|
1566
|
-
return /* @__PURE__ */
|
|
1566
|
+
return /* @__PURE__ */ g("div", { className: be.cardContainer, children: [
|
|
1567
1567
|
/* @__PURE__ */ t(dt, { title: (s = e == null ? void 0 : e.group) != null ? s : "" }),
|
|
1568
|
-
/* @__PURE__ */ t("div", { className: be.cardBackground, children: /* @__PURE__ */
|
|
1569
|
-
/* @__PURE__ */
|
|
1570
|
-
/* @__PURE__ */
|
|
1568
|
+
/* @__PURE__ */ t("div", { className: be.cardBackground, children: /* @__PURE__ */ g(H, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
1569
|
+
/* @__PURE__ */ g(H, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1570
|
+
/* @__PURE__ */ g("div", { className: be.equipos, children: [
|
|
1571
1571
|
/* @__PURE__ */ t(Ne, { name: e.homeName, size: "compact", jersey: Me(a, "home") }),
|
|
1572
1572
|
/* @__PURE__ */ t(ut, { text: "vs.", name: "", size: "small" }),
|
|
1573
1573
|
/* @__PURE__ */ t(Ne, { name: e.awayName, size: "compact", jersey: Me(a, "away") })
|
|
1574
1574
|
] }),
|
|
1575
|
-
/* @__PURE__ */ t(
|
|
1575
|
+
/* @__PURE__ */ t(Ua, { text: i(e.start) })
|
|
1576
1576
|
] }),
|
|
1577
|
-
/* @__PURE__ */
|
|
1578
|
-
/* @__PURE__ */ t(ue, { spacing: 1, children: ((f = (p = (m = e == null ? void 0 : e.outcome) == null ? void 0 : m[0]) == null ? void 0 : p.outcomes) != null ? f : []).map((
|
|
1579
|
-
/* @__PURE__ */ t("div", { className: be.jugadas, children: /* @__PURE__ */ t(ue, { spacing: 1, children: ((c = (l = (d = e == null ? void 0 : e.outcome) == null ? void 0 : d[0]) == null ? void 0 : l.outcomes) != null ? c : []).map((
|
|
1580
|
-
r(
|
|
1581
|
-
}, children: (
|
|
1577
|
+
/* @__PURE__ */ g(H, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
1578
|
+
/* @__PURE__ */ t(ue, { spacing: 1, children: ((f = (p = (m = e == null ? void 0 : e.outcome) == null ? void 0 : m[0]) == null ? void 0 : p.outcomes) != null ? f : []).map((b, h) => /* @__PURE__ */ t(ct, { text: b.label.toUpperCase() }, h)) }),
|
|
1579
|
+
/* @__PURE__ */ t("div", { className: be.jugadas, children: /* @__PURE__ */ t(ue, { spacing: 1, children: ((c = (l = (d = e == null ? void 0 : e.outcome) == null ? void 0 : d[0]) == null ? void 0 : l.outcomes) != null ? c : []).map((b, h) => /* @__PURE__ */ t(X, { variant: "primary", fullHeight: !0, onClick: () => {
|
|
1580
|
+
r(b.id, b.odds);
|
|
1581
|
+
}, children: (b.odds / 1e3).toFixed(2) }, h)) }) })
|
|
1582
1582
|
] })
|
|
1583
1583
|
] }) })
|
|
1584
1584
|
] });
|
|
1585
1585
|
}
|
|
1586
|
-
function
|
|
1586
|
+
function Ka({
|
|
1587
1587
|
items: e,
|
|
1588
1588
|
title: a = "Destacados",
|
|
1589
1589
|
iconUrl: n,
|
|
@@ -1591,7 +1591,7 @@ function Ha({
|
|
|
1591
1591
|
className: i = ""
|
|
1592
1592
|
}) {
|
|
1593
1593
|
const r = V(null), [s, m] = K({ isStart: !0, isEnd: !1 }), p = ae(), f = ne(), d = se(), l = !e || e.length === 0, c = () => {
|
|
1594
|
-
var
|
|
1594
|
+
var v;
|
|
1595
1595
|
p({
|
|
1596
1596
|
element: "destacados_carousel_prev",
|
|
1597
1597
|
label: `${f} - OraculoSeccionDestacados - Anterior`,
|
|
@@ -1602,9 +1602,9 @@ function Ha({
|
|
|
1602
1602
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1603
1603
|
},
|
|
1604
1604
|
tags: { section: "OraculoSeccionDestacados" }
|
|
1605
|
-
}), (
|
|
1606
|
-
},
|
|
1607
|
-
var
|
|
1605
|
+
}), (v = r.current) == null || v.prev();
|
|
1606
|
+
}, b = () => {
|
|
1607
|
+
var v;
|
|
1608
1608
|
p({
|
|
1609
1609
|
element: "destacados_carousel_next",
|
|
1610
1610
|
label: `${f} - OraculoSeccionDestacados - Siguiente`,
|
|
@@ -1615,8 +1615,8 @@ function Ha({
|
|
|
1615
1615
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1616
1616
|
},
|
|
1617
1617
|
tags: { section: "OraculoSeccionDestacados" }
|
|
1618
|
-
}), (
|
|
1619
|
-
},
|
|
1618
|
+
}), (v = r.current) == null || v.next();
|
|
1619
|
+
}, h = () => {
|
|
1620
1620
|
p({
|
|
1621
1621
|
element: "destacados_view_more",
|
|
1622
1622
|
label: `${f} - OraculoSeccionDestacados - Ver más`,
|
|
@@ -1628,12 +1628,12 @@ function Ha({
|
|
|
1628
1628
|
},
|
|
1629
1629
|
tags: { section: "OraculoSeccionDestacados" }
|
|
1630
1630
|
}), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/promociones");
|
|
1631
|
-
},
|
|
1632
|
-
if (!
|
|
1633
|
-
const D = `https://www.olimpo.bet/promociones/${encodeURIComponent(
|
|
1631
|
+
}, O = (v) => {
|
|
1632
|
+
if (!v) return;
|
|
1633
|
+
const D = `https://www.olimpo.bet/promociones/${encodeURIComponent(v)}`;
|
|
1634
1634
|
p({
|
|
1635
1635
|
element: "destacados_card",
|
|
1636
|
-
label: `${f} - OraculoSeccionDestacados - Click: ${String(
|
|
1636
|
+
label: `${f} - OraculoSeccionDestacados - Click: ${String(v)}`,
|
|
1637
1637
|
target: D,
|
|
1638
1638
|
event_type: "click",
|
|
1639
1639
|
module_id: d,
|
|
@@ -1642,12 +1642,12 @@ function Ha({
|
|
|
1642
1642
|
},
|
|
1643
1643
|
tags: {
|
|
1644
1644
|
section: "OraculoSeccionDestacados",
|
|
1645
|
-
promotion: String(
|
|
1645
|
+
promotion: String(v)
|
|
1646
1646
|
}
|
|
1647
1647
|
}), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(D);
|
|
1648
|
-
}, M = i || void 0,
|
|
1649
|
-
return /* @__PURE__ */
|
|
1650
|
-
/* @__PURE__ */
|
|
1648
|
+
}, M = i || void 0, y = xe("(max-width:950px)");
|
|
1649
|
+
return /* @__PURE__ */ g("section", { className: M, style: { width: "100%" }, children: [
|
|
1650
|
+
/* @__PURE__ */ g(
|
|
1651
1651
|
"header",
|
|
1652
1652
|
{
|
|
1653
1653
|
style: {
|
|
@@ -1657,19 +1657,19 @@ function Ha({
|
|
|
1657
1657
|
columnGap: 12,
|
|
1658
1658
|
rowGap: 8,
|
|
1659
1659
|
// marginBottom: 16,
|
|
1660
|
-
paddingLeft:
|
|
1661
|
-
paddingRight:
|
|
1660
|
+
paddingLeft: y ? 16 : 0,
|
|
1661
|
+
paddingRight: y ? 16 : 0
|
|
1662
1662
|
},
|
|
1663
1663
|
children: [
|
|
1664
1664
|
/* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
|
|
1665
|
-
/* @__PURE__ */
|
|
1665
|
+
/* @__PURE__ */ g("div", { style: { display: "flex", gap: 8 }, children: [
|
|
1666
1666
|
/* @__PURE__ */ t(
|
|
1667
1667
|
X,
|
|
1668
1668
|
{
|
|
1669
1669
|
ariaLabel: "Anterior",
|
|
1670
1670
|
variant: "secondary",
|
|
1671
1671
|
iconOnly: !0,
|
|
1672
|
-
leftIcon: /* @__PURE__ */ t(
|
|
1672
|
+
leftIcon: /* @__PURE__ */ t(ze, {}),
|
|
1673
1673
|
onClick: c,
|
|
1674
1674
|
disabled: s.isStart || l
|
|
1675
1675
|
}
|
|
@@ -1680,13 +1680,13 @@ function Ha({
|
|
|
1680
1680
|
ariaLabel: "Siguiente",
|
|
1681
1681
|
variant: "secondary",
|
|
1682
1682
|
iconOnly: !0,
|
|
1683
|
-
rightIcon: /* @__PURE__ */ t(
|
|
1684
|
-
onClick:
|
|
1683
|
+
rightIcon: /* @__PURE__ */ t(Ae, {}),
|
|
1684
|
+
onClick: b,
|
|
1685
1685
|
disabled: s.isEnd || l
|
|
1686
1686
|
}
|
|
1687
1687
|
)
|
|
1688
1688
|
] }),
|
|
1689
|
-
/* @__PURE__ */ t(X, { variant: "secondary", onClick:
|
|
1689
|
+
/* @__PURE__ */ t(X, { variant: "secondary", onClick: h, children: "Ver más" })
|
|
1690
1690
|
]
|
|
1691
1691
|
}
|
|
1692
1692
|
),
|
|
@@ -1698,13 +1698,13 @@ function Ha({
|
|
|
1698
1698
|
perPage: void 0,
|
|
1699
1699
|
gap: "16px",
|
|
1700
1700
|
enableHorizontalWheel: !0,
|
|
1701
|
-
showRightGradient: !
|
|
1701
|
+
showRightGradient: !y,
|
|
1702
1702
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
1703
1703
|
breakpoints: {
|
|
1704
1704
|
768: { perPage: 2, focus: "start", padding: { left: "24px", right: "24px" } },
|
|
1705
1705
|
1024: { perPage: 2.5, focus: "start", padding: { left: "24px", right: "24px" } }
|
|
1706
1706
|
},
|
|
1707
|
-
renderItem: (
|
|
1707
|
+
renderItem: (v) => /* @__PURE__ */ t(
|
|
1708
1708
|
"div",
|
|
1709
1709
|
{
|
|
1710
1710
|
style: {
|
|
@@ -1712,12 +1712,12 @@ function Ha({
|
|
|
1712
1712
|
marginTop: 16,
|
|
1713
1713
|
cursor: "pointer"
|
|
1714
1714
|
},
|
|
1715
|
-
onClick: () =>
|
|
1715
|
+
onClick: () => O(v.promotion),
|
|
1716
1716
|
children: /* @__PURE__ */ t(
|
|
1717
1717
|
"img",
|
|
1718
1718
|
{
|
|
1719
|
-
src: `https://olimpo.bet${
|
|
1720
|
-
alt:
|
|
1719
|
+
src: `https://olimpo.bet${v.image !== "" ? v.image : v.summary_image}`,
|
|
1720
|
+
alt: v.title,
|
|
1721
1721
|
style: {
|
|
1722
1722
|
width: "100%",
|
|
1723
1723
|
height: typeof window != "undefined" && window.innerWidth < 768 ? "80px" : "137px",
|
|
@@ -1728,10 +1728,10 @@ function Ha({
|
|
|
1728
1728
|
}
|
|
1729
1729
|
)
|
|
1730
1730
|
},
|
|
1731
|
-
`${
|
|
1731
|
+
`${v.title}-${v.image}`
|
|
1732
1732
|
),
|
|
1733
|
-
onMove: ({ isStart:
|
|
1734
|
-
m({ isStart:
|
|
1733
|
+
onMove: ({ isStart: v, isEnd: C }) => {
|
|
1734
|
+
m({ isStart: v, isEnd: C }), p({
|
|
1735
1735
|
element: "destacados_carousel_slide",
|
|
1736
1736
|
label: `${f} - OraculoSeccionDestacados - Slide Carousel`,
|
|
1737
1737
|
target: "carousel",
|
|
@@ -1739,8 +1739,8 @@ function Ha({
|
|
|
1739
1739
|
module_id: d,
|
|
1740
1740
|
metadata: {
|
|
1741
1741
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
1742
|
-
isStart:
|
|
1743
|
-
isEnd:
|
|
1742
|
+
isStart: v,
|
|
1743
|
+
isEnd: C
|
|
1744
1744
|
},
|
|
1745
1745
|
tags: { section: "OraculoSeccionDestacados" }
|
|
1746
1746
|
});
|
|
@@ -1754,17 +1754,17 @@ function bt() {
|
|
|
1754
1754
|
const e = globalThis;
|
|
1755
1755
|
return e[$e] || (e[$e] = {}), e[$e];
|
|
1756
1756
|
}
|
|
1757
|
-
function
|
|
1757
|
+
function Za(e) {
|
|
1758
1758
|
bt().extras = e;
|
|
1759
1759
|
}
|
|
1760
1760
|
function pe(e) {
|
|
1761
1761
|
var a;
|
|
1762
1762
|
return (a = bt().extras) == null ? void 0 : a[e];
|
|
1763
1763
|
}
|
|
1764
|
-
function
|
|
1764
|
+
function Xa() {
|
|
1765
1765
|
delete globalThis[$e];
|
|
1766
1766
|
}
|
|
1767
|
-
function
|
|
1767
|
+
function Ja({
|
|
1768
1768
|
items: e,
|
|
1769
1769
|
title: a = "Top Juegos",
|
|
1770
1770
|
iconUrl: n,
|
|
@@ -1772,10 +1772,10 @@ function Xa({
|
|
|
1772
1772
|
}) {
|
|
1773
1773
|
const i = ae(), r = ne(), s = se(), m = re(
|
|
1774
1774
|
() => (e != null ? e : []).map((l, c) => {
|
|
1775
|
-
var
|
|
1775
|
+
var b;
|
|
1776
1776
|
return {
|
|
1777
1777
|
...l,
|
|
1778
|
-
orden: (
|
|
1778
|
+
orden: (b = l.orden) != null ? b : c + 1,
|
|
1779
1779
|
_originalIndex: c
|
|
1780
1780
|
};
|
|
1781
1781
|
}).sort((l, c) => l.orden != null && c.orden != null ? l.orden - c.orden : l._originalIndex - c._originalIndex),
|
|
@@ -1795,12 +1795,12 @@ function Xa({
|
|
|
1795
1795
|
section: "OraculoSeccionTopJuegos"
|
|
1796
1796
|
}
|
|
1797
1797
|
});
|
|
1798
|
-
const c = pe("showIframe"),
|
|
1798
|
+
const c = pe("showIframe"), b = pe("loadMachine");
|
|
1799
1799
|
c == null || c(), requestAnimationFrame(() => {
|
|
1800
|
-
|
|
1800
|
+
b == null || b(l, !1, "CASINO");
|
|
1801
1801
|
});
|
|
1802
1802
|
};
|
|
1803
|
-
return /* @__PURE__ */ t("section", { style: { width: "100%" }, children: /* @__PURE__ */
|
|
1803
|
+
return /* @__PURE__ */ t("section", { style: { width: "100%" }, children: /* @__PURE__ */ g(H, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
1804
1804
|
/* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
|
|
1805
1805
|
/* @__PURE__ */ t(
|
|
1806
1806
|
q,
|
|
@@ -1816,26 +1816,26 @@ function Xa({
|
|
|
1816
1816
|
width: "100%"
|
|
1817
1817
|
},
|
|
1818
1818
|
children: f.map((l, c) => {
|
|
1819
|
-
var
|
|
1819
|
+
var b, h;
|
|
1820
1820
|
return /* @__PURE__ */ t(
|
|
1821
|
-
|
|
1821
|
+
_a,
|
|
1822
1822
|
{
|
|
1823
|
-
imageUrl: p ? "" : l.background ? `https://olimpo.bet${l.background}` : `https://olimpo.bet${(
|
|
1823
|
+
imageUrl: p ? "" : l.background ? `https://olimpo.bet${l.background}` : `https://olimpo.bet${(b = l.logo) != null ? b : ""}`,
|
|
1824
1824
|
orden: p ? c + 1 : l.orden,
|
|
1825
1825
|
loading: p,
|
|
1826
1826
|
onClick: p ? void 0 : () => {
|
|
1827
1827
|
o == null || o(l), d(l);
|
|
1828
1828
|
}
|
|
1829
1829
|
},
|
|
1830
|
-
p ? `sk-${c}` : (
|
|
1830
|
+
p ? `sk-${c}` : (h = l.machine) != null ? h : `${c}`
|
|
1831
1831
|
);
|
|
1832
1832
|
})
|
|
1833
1833
|
}
|
|
1834
1834
|
)
|
|
1835
1835
|
] }) });
|
|
1836
1836
|
}
|
|
1837
|
-
const
|
|
1838
|
-
var n, o, i, r, s, m, p, f, d, l, c,
|
|
1837
|
+
const Ya = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommendations", Qa = (e, a) => {
|
|
1838
|
+
var n, o, i, r, s, m, p, f, d, l, c, b, h, O;
|
|
1839
1839
|
return {
|
|
1840
1840
|
orden: Number(a),
|
|
1841
1841
|
machine: String(
|
|
@@ -1851,20 +1851,19 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1851
1851
|
tags: (d = e.tags) != null ? d : "",
|
|
1852
1852
|
lobby_tag: (l = e.lobby_tag) != null ? l : null,
|
|
1853
1853
|
background: (c = e.background) != null ? c : "",
|
|
1854
|
-
rtp: (
|
|
1855
|
-
demo_allowed: (
|
|
1856
|
-
gaming_session_required: (
|
|
1854
|
+
rtp: (b = e.rtp) != null ? b : null,
|
|
1855
|
+
demo_allowed: (h = e.demo_allowed) != null ? h : !1,
|
|
1856
|
+
gaming_session_required: (O = e.gaming_session_required) != null ? O : !1
|
|
1857
1857
|
};
|
|
1858
|
-
},
|
|
1858
|
+
}, en = (e) => e ? !Array.isArray(e) && Array.isArray(e.recommendations) ? e.recommendations.filter(Boolean).map((a) => String(a)) : [] : [], vt = () => {
|
|
1859
1859
|
var a, n, o;
|
|
1860
1860
|
const e = pe("user");
|
|
1861
1861
|
return (o = (n = (a = e == null ? void 0 : e.userId) != null ? a : e == null ? void 0 : e.user) != null ? n : e == null ? void 0 : e.id) != null ? o : null;
|
|
1862
1862
|
}, tn = async (e) => {
|
|
1863
|
-
const a =
|
|
1863
|
+
const a = vt(), n = new URLSearchParams({
|
|
1864
1864
|
userId: String(a),
|
|
1865
|
-
productType: e
|
|
1866
|
-
|
|
1867
|
-
}), o = `${Ja}?${n.toString()}`, i = await fetch(o);
|
|
1865
|
+
productType: e
|
|
1866
|
+
}), o = `${Ya}?${n.toString()}`, i = await fetch(o);
|
|
1868
1867
|
if (!i.ok)
|
|
1869
1868
|
throw new Error(
|
|
1870
1869
|
`No se pudo obtener recomendaciones. HTTP ${i.status} ${i.statusText}`
|
|
@@ -1874,6 +1873,14 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1874
1873
|
...r,
|
|
1875
1874
|
recommendations: Array.isArray(r == null ? void 0 : r.recommendations) ? r.recommendations.slice(0, 49) : []
|
|
1876
1875
|
};
|
|
1876
|
+
}, an = async (e, a) => {
|
|
1877
|
+
const o = `https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking?${new URLSearchParams({
|
|
1878
|
+
userId: String(e),
|
|
1879
|
+
items: JSON.stringify(a)
|
|
1880
|
+
}).toString()}`, i = await fetch(o);
|
|
1881
|
+
if (!i.ok)
|
|
1882
|
+
throw new Error(`No se pudo obtener el ranking. HTTP ${i.status} ${i.statusText}`);
|
|
1883
|
+
return (await i.json()).rankedItems;
|
|
1877
1884
|
}, Ve = (e, a = !1, n = "Casino") => {
|
|
1878
1885
|
const [o, i] = K([]), [r, s] = K(!1);
|
|
1879
1886
|
return Q(() => {
|
|
@@ -1885,27 +1892,31 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1885
1892
|
}
|
|
1886
1893
|
s(!0);
|
|
1887
1894
|
try {
|
|
1888
|
-
const f = await tn(n), d =
|
|
1895
|
+
const f = await tn(n), d = en(f);
|
|
1889
1896
|
if (!d.length) {
|
|
1890
1897
|
m || i([]);
|
|
1891
1898
|
return;
|
|
1892
1899
|
}
|
|
1893
|
-
const l = await Promise.allSettled(
|
|
1894
|
-
|
|
1895
|
-
const C = await fetch(
|
|
1896
|
-
`https://api.mktolimpo.com/api/machine/${g}`
|
|
1897
|
-
);
|
|
1900
|
+
const l = vt(), c = await an(l, d), b = c.map((y) => y.itemId), h = await Promise.allSettled(
|
|
1901
|
+
b.map(async (y, v) => {
|
|
1902
|
+
const C = await fetch(`https://api.mktolimpo.com/api/machine/${y}`);
|
|
1898
1903
|
if (!C.ok)
|
|
1899
|
-
throw new Error(`No se pudo obtener machine ${
|
|
1900
|
-
const
|
|
1901
|
-
return
|
|
1904
|
+
throw new Error(`No se pudo obtener machine ${y}`);
|
|
1905
|
+
const D = await C.json();
|
|
1906
|
+
return Qa(D, v);
|
|
1902
1907
|
})
|
|
1903
1908
|
);
|
|
1904
1909
|
if (m) return;
|
|
1905
|
-
const
|
|
1906
|
-
(
|
|
1907
|
-
).map((
|
|
1908
|
-
|
|
1910
|
+
const O = h.filter(
|
|
1911
|
+
(y) => y.status === "fulfilled"
|
|
1912
|
+
).map((y) => y.value), M = c.map((y) => {
|
|
1913
|
+
const v = O.find((C) => C.machine === y.itemId);
|
|
1914
|
+
return v ? { ...v, score: y.score } : null;
|
|
1915
|
+
}).filter(Boolean).sort((y, v) => {
|
|
1916
|
+
var C, D;
|
|
1917
|
+
return ((C = v.score) != null ? C : 0) - ((D = y.score) != null ? D : 0);
|
|
1918
|
+
});
|
|
1919
|
+
i(M);
|
|
1909
1920
|
} catch (f) {
|
|
1910
1921
|
console.error(`[usePersonalizeGameItems:${n}] error:`, f), m || i([]);
|
|
1911
1922
|
} finally {
|
|
@@ -1918,10 +1929,10 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1918
1929
|
resolvedItems: o,
|
|
1919
1930
|
loading: r
|
|
1920
1931
|
};
|
|
1921
|
-
},
|
|
1932
|
+
}, nn = (e, a = !1) => Ve(e, a, "Casino"), on = (e, a = !1) => Ve(e, a, "Deportes virtuales"), rn = (e, a = !1) => Ve(e, a, "Casino en vivo"), sn = (e, a) => {
|
|
1922
1933
|
var n, o;
|
|
1923
1934
|
return (o = (n = e.orden) != null ? n : e.machine) != null ? o : a;
|
|
1924
|
-
},
|
|
1935
|
+
}, ln = (e) => {
|
|
1925
1936
|
if (typeof e == "boolean") return e;
|
|
1926
1937
|
if (typeof e == "string")
|
|
1927
1938
|
return e.toLowerCase() === "true";
|
|
@@ -1931,7 +1942,7 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1931
1942
|
return e.value.toLowerCase() === "true";
|
|
1932
1943
|
}
|
|
1933
1944
|
return !1;
|
|
1934
|
-
},
|
|
1945
|
+
}, cn = ({
|
|
1935
1946
|
items: e,
|
|
1936
1947
|
title: a = "Casino en vivo",
|
|
1937
1948
|
subtitle: n = "Disfruta la emoción en tus juegos favoritos y gana en tiempo real.",
|
|
@@ -1942,39 +1953,39 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1942
1953
|
className: m,
|
|
1943
1954
|
isPersonalize: p = !1
|
|
1944
1955
|
}) => {
|
|
1945
|
-
const f = ae(), d = ne(), l = se(), c =
|
|
1956
|
+
const f = ae(), d = ne(), l = se(), c = ln(p), { resolvedItems: b } = rn(
|
|
1946
1957
|
e,
|
|
1947
1958
|
c
|
|
1948
|
-
),
|
|
1959
|
+
), h = c ? b : Array.isArray(e) ? e : [], O = (y) => {
|
|
1949
1960
|
f({
|
|
1950
1961
|
element: "live_casino_card",
|
|
1951
|
-
label: `${d} - OraculoSeccionCasinoEnVivo${c ? " - personalize" : ""} - Open game: ${String(
|
|
1952
|
-
target: String(
|
|
1962
|
+
label: `${d} - OraculoSeccionCasinoEnVivo${c ? " - personalize" : ""} - Open game: ${String(y.machine || "unknown")}`,
|
|
1963
|
+
target: String(y.machine || "unknown"),
|
|
1953
1964
|
event_type: "click",
|
|
1954
1965
|
module_id: l,
|
|
1955
1966
|
metadata: {
|
|
1956
1967
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1957
1968
|
},
|
|
1958
1969
|
tags: {
|
|
1959
|
-
game_name: String(
|
|
1960
|
-
provider:
|
|
1970
|
+
game_name: String(y.machine || "unknown"),
|
|
1971
|
+
provider: y.provider || "unknown",
|
|
1961
1972
|
section: "OraculoSeccionCasinoEnVivo"
|
|
1962
1973
|
}
|
|
1963
1974
|
});
|
|
1964
|
-
const
|
|
1965
|
-
if (
|
|
1975
|
+
const v = pe("showIframe"), C = pe("loadMachine");
|
|
1976
|
+
if (!C) {
|
|
1966
1977
|
if (i) {
|
|
1967
|
-
i(
|
|
1978
|
+
i(y);
|
|
1968
1979
|
return;
|
|
1969
1980
|
}
|
|
1970
1981
|
console.warn(
|
|
1971
1982
|
"[OraculoSeccionCasinoEnVivo] No existe loadMachine en extras ni onCardClick. No se puede abrir el juego.",
|
|
1972
|
-
{ machine:
|
|
1983
|
+
{ machine: y == null ? void 0 : y.machine, provider: y == null ? void 0 : y.provider }
|
|
1973
1984
|
);
|
|
1974
1985
|
return;
|
|
1975
1986
|
}
|
|
1976
|
-
|
|
1977
|
-
|
|
1987
|
+
v == null || v(), typeof window != "undefined" && window.scrollTo({ top: 0, behavior: "smooth" }), requestAnimationFrame(() => {
|
|
1988
|
+
C == null || C(y, !1, "casino_en_vivo");
|
|
1978
1989
|
});
|
|
1979
1990
|
}, M = () => {
|
|
1980
1991
|
f({
|
|
@@ -1989,7 +2000,7 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1989
2000
|
tags: { section: "OraculoSeccionCasinoEnVivo" }
|
|
1990
2001
|
}), typeof globalThis != "undefined" && globalThis.location && (s ? s() : globalThis.location.assign("https://www.olimpo.bet/casino-en-vivo"));
|
|
1991
2002
|
};
|
|
1992
|
-
return /* @__PURE__ */
|
|
2003
|
+
return /* @__PURE__ */ g(
|
|
1993
2004
|
q,
|
|
1994
2005
|
{
|
|
1995
2006
|
className: m,
|
|
@@ -2027,7 +2038,7 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2027
2038
|
}
|
|
2028
2039
|
}
|
|
2029
2040
|
),
|
|
2030
|
-
/* @__PURE__ */
|
|
2041
|
+
/* @__PURE__ */ g(
|
|
2031
2042
|
q,
|
|
2032
2043
|
{
|
|
2033
2044
|
sx: {
|
|
@@ -2045,7 +2056,7 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2045
2056
|
textAlign: { xs: "center", md: "left" }
|
|
2046
2057
|
},
|
|
2047
2058
|
children: [
|
|
2048
|
-
/* @__PURE__ */
|
|
2059
|
+
/* @__PURE__ */ g(H, { spacing: 3, sx: { maxWidth: { md: 280 } }, children: [
|
|
2049
2060
|
/* @__PURE__ */ t(
|
|
2050
2061
|
de,
|
|
2051
2062
|
{
|
|
@@ -2092,18 +2103,18 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2092
2103
|
py: { xs: 3, md: 0 },
|
|
2093
2104
|
alignItems: "center"
|
|
2094
2105
|
},
|
|
2095
|
-
children: (
|
|
2096
|
-
var
|
|
2106
|
+
children: (h != null ? h : []).slice(0, 3).map((y, v) => {
|
|
2107
|
+
var C;
|
|
2097
2108
|
return /* @__PURE__ */ t(
|
|
2098
|
-
|
|
2109
|
+
ya,
|
|
2099
2110
|
{
|
|
2100
|
-
logo: `https://olimpo.bet${
|
|
2101
|
-
provider:
|
|
2102
|
-
providerName:
|
|
2103
|
-
machine:
|
|
2104
|
-
onClick: () =>
|
|
2111
|
+
logo: `https://olimpo.bet${y.background ? y.background : (C = y.logo) != null ? C : ""}`,
|
|
2112
|
+
provider: y.provider,
|
|
2113
|
+
providerName: y.web_name,
|
|
2114
|
+
machine: y.machine,
|
|
2115
|
+
onClick: () => O(y)
|
|
2105
2116
|
},
|
|
2106
|
-
|
|
2117
|
+
sn(y, v)
|
|
2107
2118
|
);
|
|
2108
2119
|
})
|
|
2109
2120
|
}
|
|
@@ -2123,7 +2134,7 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2123
2134
|
]
|
|
2124
2135
|
}
|
|
2125
2136
|
);
|
|
2126
|
-
},
|
|
2137
|
+
}, dn = (e) => {
|
|
2127
2138
|
if (typeof e == "boolean") return e;
|
|
2128
2139
|
if (typeof e == "string")
|
|
2129
2140
|
return e.toLowerCase() === "true";
|
|
@@ -2133,14 +2144,14 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2133
2144
|
return e.value.toLowerCase() === "true";
|
|
2134
2145
|
}
|
|
2135
2146
|
return !1;
|
|
2136
|
-
},
|
|
2147
|
+
}, _t = (e, a) => {
|
|
2137
2148
|
var n, o;
|
|
2138
2149
|
return (o = (n = e.orden) != null ? n : e.machine) != null ? o : a;
|
|
2139
|
-
},
|
|
2150
|
+
}, un = (e, a = !0, n = 1) => {
|
|
2140
2151
|
const o = e.map((s, m) => {
|
|
2141
2152
|
var p;
|
|
2142
2153
|
return {
|
|
2143
|
-
id:
|
|
2154
|
+
id: _t(s, m),
|
|
2144
2155
|
imageUrl: (p = s.logo) != null ? p : "",
|
|
2145
2156
|
...s.background ? { background: s.background } : {}
|
|
2146
2157
|
};
|
|
@@ -2165,7 +2176,7 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2165
2176
|
}), r = s;
|
|
2166
2177
|
}
|
|
2167
2178
|
return i;
|
|
2168
|
-
},
|
|
2179
|
+
}, mn = ({
|
|
2169
2180
|
items: e,
|
|
2170
2181
|
title: a = "Casino",
|
|
2171
2182
|
iconUrl: n = "/assets/img/home/Casino/diamante.svg",
|
|
@@ -2175,11 +2186,11 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2175
2186
|
gridSize: s = 1,
|
|
2176
2187
|
isPersonalize: m = !1
|
|
2177
2188
|
}) => {
|
|
2178
|
-
const p = ae(), f = ne(), d = se(), l = V(null), [c,
|
|
2189
|
+
const p = ae(), f = ne(), d = se(), l = V(null), [c, b] = K({ isStart: !0, isEnd: !1 }), h = dn(m), { resolvedItems: O, loading: M } = nn(
|
|
2179
2190
|
e,
|
|
2180
|
-
|
|
2181
|
-
),
|
|
2182
|
-
var
|
|
2191
|
+
h
|
|
2192
|
+
), y = h ? O : Array.isArray(e) ? e : [], v = () => {
|
|
2193
|
+
var k;
|
|
2183
2194
|
p({
|
|
2184
2195
|
element: "casino_prev",
|
|
2185
2196
|
label: `${f} - OraculoSeccionCasino ${m ? " - personalize" : ""} - Anterior`,
|
|
@@ -2190,9 +2201,9 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2190
2201
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2191
2202
|
},
|
|
2192
2203
|
tags: { section: "OraculoSeccionCasino" }
|
|
2193
|
-
}), (
|
|
2194
|
-
},
|
|
2195
|
-
var
|
|
2204
|
+
}), (k = l.current) == null || k.prev();
|
|
2205
|
+
}, C = () => {
|
|
2206
|
+
var k;
|
|
2196
2207
|
p({
|
|
2197
2208
|
element: "casino_next",
|
|
2198
2209
|
label: `${f} - OraculoSeccionCasino ${m ? " - personalize" : ""} - Siguiente`,
|
|
@@ -2203,7 +2214,7 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2203
2214
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2204
2215
|
},
|
|
2205
2216
|
tags: { section: "OraculoSeccionCasino" }
|
|
2206
|
-
}), (
|
|
2217
|
+
}), (k = l.current) == null || k.next();
|
|
2207
2218
|
}, D = () => {
|
|
2208
2219
|
if (p({
|
|
2209
2220
|
element: "casino_view_more",
|
|
@@ -2220,15 +2231,15 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2220
2231
|
return;
|
|
2221
2232
|
}
|
|
2222
2233
|
typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/casino");
|
|
2223
|
-
}, I = (
|
|
2224
|
-
const
|
|
2225
|
-
id: `sk-${
|
|
2234
|
+
}, I = (k = !0, x = 4) => {
|
|
2235
|
+
const E = (z) => Array.from({ length: z }, (R, _) => ({
|
|
2236
|
+
id: `sk-${z}-${_}`,
|
|
2226
2237
|
imageUrl: ""
|
|
2227
2238
|
})), L = [];
|
|
2228
|
-
return
|
|
2229
|
-
},
|
|
2230
|
-
return /* @__PURE__ */ t("section", { children: /* @__PURE__ */
|
|
2231
|
-
/* @__PURE__ */
|
|
2239
|
+
return k && L.push({ id: "mosaic-loading", kind: "mosaic", items: E(5) }), L.push({ id: "grid-loading", kind: "grid", items: E(x) }), L;
|
|
2240
|
+
}, T = h ? M : !Array.isArray(e) || e.length === 0, w = De("(max-width:950px)"), B = T ? I(r, s) : un(y, r, s);
|
|
2241
|
+
return /* @__PURE__ */ t("section", { children: /* @__PURE__ */ g(H, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
2242
|
+
/* @__PURE__ */ g(
|
|
2232
2243
|
q,
|
|
2233
2244
|
{
|
|
2234
2245
|
sx: {
|
|
@@ -2244,7 +2255,7 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2244
2255
|
},
|
|
2245
2256
|
children: [
|
|
2246
2257
|
/* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
|
|
2247
|
-
/* @__PURE__ */
|
|
2258
|
+
/* @__PURE__ */ g(q, { sx: { display: "flex", gap: 1, justifyContent: "flex-end" }, children: [
|
|
2248
2259
|
/* @__PURE__ */ t(
|
|
2249
2260
|
X,
|
|
2250
2261
|
{
|
|
@@ -2252,7 +2263,7 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2252
2263
|
variant: "secondary",
|
|
2253
2264
|
iconOnly: !0,
|
|
2254
2265
|
leftIcon: /* @__PURE__ */ t(rt, {}),
|
|
2255
|
-
onClick:
|
|
2266
|
+
onClick: v,
|
|
2256
2267
|
disabled: c.isStart
|
|
2257
2268
|
}
|
|
2258
2269
|
),
|
|
@@ -2263,7 +2274,7 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2263
2274
|
variant: "secondary",
|
|
2264
2275
|
iconOnly: !0,
|
|
2265
2276
|
rightIcon: /* @__PURE__ */ t(st, {}),
|
|
2266
|
-
onClick:
|
|
2277
|
+
onClick: C,
|
|
2267
2278
|
disabled: c.isEnd
|
|
2268
2279
|
}
|
|
2269
2280
|
)
|
|
@@ -2299,42 +2310,42 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2299
2310
|
padding: { left: "24px", right: "24px" }
|
|
2300
2311
|
}
|
|
2301
2312
|
},
|
|
2302
|
-
renderItem: (
|
|
2313
|
+
renderItem: (k) => /* @__PURE__ */ t("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ t(
|
|
2303
2314
|
mt,
|
|
2304
2315
|
{
|
|
2305
|
-
items:
|
|
2306
|
-
layout:
|
|
2307
|
-
loading:
|
|
2308
|
-
onClick: (
|
|
2309
|
-
if (
|
|
2310
|
-
const
|
|
2311
|
-
(R,
|
|
2316
|
+
items: k.items,
|
|
2317
|
+
layout: k.kind === "mosaic" ? "mosaic" : "grid",
|
|
2318
|
+
loading: T,
|
|
2319
|
+
onClick: (x) => {
|
|
2320
|
+
if (T) return;
|
|
2321
|
+
const E = y.find(
|
|
2322
|
+
(R, _) => String(_t(R, _)) === String(x.id)
|
|
2312
2323
|
);
|
|
2313
|
-
if (!
|
|
2314
|
-
o == null || o(
|
|
2324
|
+
if (!E) return;
|
|
2325
|
+
o == null || o(E), p({
|
|
2315
2326
|
element: "casino_game_card",
|
|
2316
|
-
label: `${f} - OraculoSeccionCasino ${m ? " - personalize" : ""} - Game: ${String(
|
|
2317
|
-
target: String(
|
|
2327
|
+
label: `${f} - OraculoSeccionCasino ${m ? " - personalize" : ""} - Game: ${String(E.machine || "unknown")}`,
|
|
2328
|
+
target: String(E.machine || "unknown"),
|
|
2318
2329
|
event_type: "click",
|
|
2319
2330
|
module_id: d,
|
|
2320
2331
|
metadata: {
|
|
2321
2332
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2322
2333
|
},
|
|
2323
2334
|
tags: {
|
|
2324
|
-
game_name: String(
|
|
2335
|
+
game_name: String(E.machine || "unknown"),
|
|
2325
2336
|
section: a || "Casino"
|
|
2326
2337
|
}
|
|
2327
2338
|
});
|
|
2328
|
-
const L = pe("showIframe"),
|
|
2329
|
-
L == null || L(),
|
|
2339
|
+
const L = pe("showIframe"), z = pe("loadMachine");
|
|
2340
|
+
L == null || L(), z == null || z(E, !1, "CASINO");
|
|
2330
2341
|
}
|
|
2331
2342
|
}
|
|
2332
2343
|
) }),
|
|
2333
|
-
onMove: ({ isStart:
|
|
2344
|
+
onMove: ({ isStart: k, isEnd: x }) => b({ isStart: k, isEnd: x })
|
|
2334
2345
|
}
|
|
2335
2346
|
)
|
|
2336
2347
|
] }) });
|
|
2337
|
-
},
|
|
2348
|
+
}, pn = (e) => {
|
|
2338
2349
|
if (typeof e == "boolean") return e;
|
|
2339
2350
|
if (typeof e == "string")
|
|
2340
2351
|
return e.toLowerCase() === "true";
|
|
@@ -2344,14 +2355,14 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2344
2355
|
return e.value.toLowerCase() === "true";
|
|
2345
2356
|
}
|
|
2346
2357
|
return !1;
|
|
2347
|
-
},
|
|
2358
|
+
}, yt = (e, a) => {
|
|
2348
2359
|
var n, o;
|
|
2349
2360
|
return (o = (n = e.orden) != null ? n : e.machine) != null ? o : a;
|
|
2350
|
-
},
|
|
2361
|
+
}, fn = (e, a = !0, n = 1) => {
|
|
2351
2362
|
const o = e.map((s, m) => {
|
|
2352
2363
|
var p;
|
|
2353
2364
|
return {
|
|
2354
|
-
id:
|
|
2365
|
+
id: yt(s, m),
|
|
2355
2366
|
imageUrl: (p = s.logo) != null ? p : "",
|
|
2356
2367
|
...s.background ? { background: s.background } : {}
|
|
2357
2368
|
};
|
|
@@ -2376,7 +2387,7 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2376
2387
|
}), r = s;
|
|
2377
2388
|
}
|
|
2378
2389
|
return i;
|
|
2379
|
-
},
|
|
2390
|
+
}, gn = (e = !0, a = 4) => {
|
|
2380
2391
|
const n = (i) => Array.from({ length: i }, (r, s) => ({
|
|
2381
2392
|
id: `sk-${i}-${s}`,
|
|
2382
2393
|
imageUrl: ""
|
|
@@ -2390,7 +2401,7 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2390
2401
|
kind: "grid",
|
|
2391
2402
|
items: n(a)
|
|
2392
2403
|
}), o;
|
|
2393
|
-
},
|
|
2404
|
+
}, hn = ({
|
|
2394
2405
|
items: e,
|
|
2395
2406
|
title: a = "Virtuales",
|
|
2396
2407
|
iconUrl: n = "/assets/img/home/Virtuales/virtuales.svg",
|
|
@@ -2400,30 +2411,30 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2400
2411
|
gridSize: s = 1,
|
|
2401
2412
|
isPersonalize: m = !1
|
|
2402
2413
|
}) => {
|
|
2403
|
-
const p = V(null), [f, d] = K({ isStart: !0, isEnd: !1 }), l = ae(), c = ne(),
|
|
2414
|
+
const p = V(null), [f, d] = K({ isStart: !0, isEnd: !1 }), l = ae(), c = ne(), b = se(), h = pn(m), { resolvedItems: O, loading: M } = on(
|
|
2404
2415
|
e,
|
|
2405
|
-
|
|
2406
|
-
),
|
|
2416
|
+
h
|
|
2417
|
+
), y = h ? O : Array.isArray(e) ? e : [], v = () => {
|
|
2407
2418
|
var B;
|
|
2408
2419
|
l({
|
|
2409
2420
|
element: "virtuales_prev",
|
|
2410
|
-
label: `${c} - OraculoSeccionVirtuales${
|
|
2421
|
+
label: `${c} - OraculoSeccionVirtuales${h ? " - personalize" : ""} - Anterior`,
|
|
2411
2422
|
target: "prev",
|
|
2412
2423
|
event_type: "click",
|
|
2413
|
-
module_id:
|
|
2424
|
+
module_id: b,
|
|
2414
2425
|
metadata: {
|
|
2415
2426
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2416
2427
|
},
|
|
2417
2428
|
tags: { section: "OraculoSeccionVirtuales" }
|
|
2418
2429
|
}), (B = p.current) == null || B.prev();
|
|
2419
|
-
},
|
|
2430
|
+
}, C = () => {
|
|
2420
2431
|
var B;
|
|
2421
2432
|
l({
|
|
2422
2433
|
element: "virtuales_next",
|
|
2423
|
-
label: `${c} - OraculoSeccionVirtuales${
|
|
2434
|
+
label: `${c} - OraculoSeccionVirtuales${h ? " - personalize" : ""} - Siguiente`,
|
|
2424
2435
|
target: "next",
|
|
2425
2436
|
event_type: "click",
|
|
2426
|
-
module_id:
|
|
2437
|
+
module_id: b,
|
|
2427
2438
|
metadata: {
|
|
2428
2439
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2429
2440
|
},
|
|
@@ -2432,10 +2443,10 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2432
2443
|
}, D = () => {
|
|
2433
2444
|
if (l({
|
|
2434
2445
|
element: "virtuales_view_more",
|
|
2435
|
-
label: `${c} - OraculoSeccionVirtuales${
|
|
2446
|
+
label: `${c} - OraculoSeccionVirtuales${h ? " - personalize" : ""} - Ver más`,
|
|
2436
2447
|
target: "https://www.olimpo.bet/juegos-virtuales",
|
|
2437
2448
|
event_type: "click",
|
|
2438
|
-
module_id:
|
|
2449
|
+
module_id: b,
|
|
2439
2450
|
metadata: {
|
|
2440
2451
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2441
2452
|
},
|
|
@@ -2445,9 +2456,9 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2445
2456
|
return;
|
|
2446
2457
|
}
|
|
2447
2458
|
typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/juegos-virtuales");
|
|
2448
|
-
}, I =
|
|
2449
|
-
return /* @__PURE__ */ t("section", { children: /* @__PURE__ */
|
|
2450
|
-
/* @__PURE__ */
|
|
2459
|
+
}, I = h ? M : !Array.isArray(e) || e.length === 0, T = xe("(max-width:950px)"), w = I ? gn(r, s) : fn(y, r, s);
|
|
2460
|
+
return /* @__PURE__ */ t("section", { children: /* @__PURE__ */ g(H, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
2461
|
+
/* @__PURE__ */ g(
|
|
2451
2462
|
q,
|
|
2452
2463
|
{
|
|
2453
2464
|
sx: {
|
|
@@ -2463,7 +2474,7 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2463
2474
|
},
|
|
2464
2475
|
children: [
|
|
2465
2476
|
/* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
|
|
2466
|
-
/* @__PURE__ */
|
|
2477
|
+
/* @__PURE__ */ g(q, { sx: { display: "flex", gap: 1, justifyContent: "flex-end" }, children: [
|
|
2467
2478
|
/* @__PURE__ */ t(
|
|
2468
2479
|
X,
|
|
2469
2480
|
{
|
|
@@ -2471,7 +2482,7 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2471
2482
|
variant: "secondary",
|
|
2472
2483
|
iconOnly: !0,
|
|
2473
2484
|
leftIcon: /* @__PURE__ */ t(rt, {}),
|
|
2474
|
-
onClick:
|
|
2485
|
+
onClick: v,
|
|
2475
2486
|
disabled: f.isStart
|
|
2476
2487
|
}
|
|
2477
2488
|
),
|
|
@@ -2482,7 +2493,7 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2482
2493
|
variant: "secondary",
|
|
2483
2494
|
iconOnly: !0,
|
|
2484
2495
|
rightIcon: /* @__PURE__ */ t(st, {}),
|
|
2485
|
-
onClick:
|
|
2496
|
+
onClick: C,
|
|
2486
2497
|
disabled: f.isEnd
|
|
2487
2498
|
}
|
|
2488
2499
|
)
|
|
@@ -2516,7 +2527,7 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2516
2527
|
}
|
|
2517
2528
|
},
|
|
2518
2529
|
enableHorizontalWheel: !0,
|
|
2519
|
-
showRightGradient: !
|
|
2530
|
+
showRightGradient: !T,
|
|
2520
2531
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
2521
2532
|
renderItem: (B) => /* @__PURE__ */ t("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ t(
|
|
2522
2533
|
mt,
|
|
@@ -2524,46 +2535,46 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2524
2535
|
items: B.items,
|
|
2525
2536
|
layout: B.kind === "mosaic" ? "mosaic" : "grid",
|
|
2526
2537
|
loading: I,
|
|
2527
|
-
onClick: (
|
|
2538
|
+
onClick: (k) => {
|
|
2528
2539
|
if (I) return;
|
|
2529
|
-
const
|
|
2530
|
-
(
|
|
2540
|
+
const x = y.find(
|
|
2541
|
+
(z, R) => String(yt(z, R)) === String(k.id)
|
|
2531
2542
|
);
|
|
2532
|
-
if (!
|
|
2543
|
+
if (!x) {
|
|
2533
2544
|
console.warn(
|
|
2534
2545
|
"[virtuales] no se encontró game para id:",
|
|
2535
|
-
|
|
2546
|
+
k.id
|
|
2536
2547
|
);
|
|
2537
2548
|
return;
|
|
2538
2549
|
}
|
|
2539
|
-
o == null || o(
|
|
2550
|
+
o == null || o(x), l({
|
|
2540
2551
|
element: "virtuales_game_card",
|
|
2541
|
-
label: `${c} - OraculoSeccionVirtuales${
|
|
2542
|
-
target: String(
|
|
2552
|
+
label: `${c} - OraculoSeccionVirtuales${h ? " - personalize" : ""} - Game: ${String(x.machine || "unknown")}`,
|
|
2553
|
+
target: String(x.machine || "unknown"),
|
|
2543
2554
|
event_type: "click",
|
|
2544
|
-
module_id:
|
|
2555
|
+
module_id: b,
|
|
2545
2556
|
metadata: {
|
|
2546
2557
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2547
2558
|
},
|
|
2548
2559
|
tags: {
|
|
2549
|
-
game_name: String(
|
|
2560
|
+
game_name: String(x.machine || "unknown"),
|
|
2550
2561
|
section: a || "Virtuales"
|
|
2551
2562
|
}
|
|
2552
2563
|
});
|
|
2553
|
-
const
|
|
2554
|
-
|
|
2555
|
-
|
|
2564
|
+
const E = pe("showIframe"), L = pe("loadMachine");
|
|
2565
|
+
E == null || E(), L == null || L(
|
|
2566
|
+
x,
|
|
2556
2567
|
!1,
|
|
2557
|
-
|
|
2568
|
+
h ? "VIRTUALES_PERSONALIZE" : "VIRTUALES"
|
|
2558
2569
|
);
|
|
2559
2570
|
}
|
|
2560
2571
|
}
|
|
2561
2572
|
) }),
|
|
2562
|
-
onMove: ({ isStart: B, isEnd:
|
|
2573
|
+
onMove: ({ isStart: B, isEnd: k }) => d({ isStart: B, isEnd: k })
|
|
2563
2574
|
}
|
|
2564
2575
|
)
|
|
2565
2576
|
] }) });
|
|
2566
|
-
},
|
|
2577
|
+
}, bn = (e) => ({
|
|
2567
2578
|
position: "relative",
|
|
2568
2579
|
py: 8,
|
|
2569
2580
|
color: "#fff",
|
|
@@ -2595,92 +2606,92 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2595
2606
|
0 0 6px rgba(255, 255, 255, .6),
|
|
2596
2607
|
0 1px 0 rgba(137, 137, 137, .85)
|
|
2597
2608
|
`
|
|
2598
|
-
},
|
|
2609
|
+
}, vn = ({
|
|
2599
2610
|
headline: e,
|
|
2600
2611
|
headline2: a,
|
|
2601
2612
|
items: n,
|
|
2602
2613
|
backgroundImageUrl: o
|
|
2603
2614
|
}) => {
|
|
2604
|
-
const i = ae(), r = ne(), s = xe("(max-width: 767px)"), m = n.length > 1, p = V(null), f = V(null), d = V(!1), l = V(!1), [c,
|
|
2615
|
+
const i = ae(), r = ne(), s = xe("(max-width: 767px)"), m = n.length > 1, p = V(null), f = V(null), d = V(!1), l = V(!1), [c, b] = K(0), [h, O] = K({ isStart: !0, isEnd: !1 });
|
|
2605
2616
|
Q(() => {
|
|
2606
|
-
const
|
|
2617
|
+
const x = setTimeout(() => {
|
|
2607
2618
|
d.current = !0;
|
|
2608
2619
|
}, 500);
|
|
2609
|
-
return () => clearTimeout(
|
|
2620
|
+
return () => clearTimeout(x);
|
|
2610
2621
|
}, []);
|
|
2611
|
-
const M = V(
|
|
2622
|
+
const M = V(h);
|
|
2612
2623
|
Q(() => {
|
|
2613
|
-
M.current =
|
|
2614
|
-
}, [
|
|
2615
|
-
const
|
|
2624
|
+
M.current = h;
|
|
2625
|
+
}, [h]);
|
|
2626
|
+
const y = V(!1), v = V(null), C = n == null ? void 0 : n[c], D = re(
|
|
2616
2627
|
() => {
|
|
2617
|
-
var
|
|
2618
|
-
return (
|
|
2628
|
+
var x, E;
|
|
2629
|
+
return (E = (x = C == null ? void 0 : C.backgroundImageUrl) != null ? x : o) != null ? E : "";
|
|
2619
2630
|
},
|
|
2620
|
-
[
|
|
2621
|
-
), I =
|
|
2631
|
+
[C, o]
|
|
2632
|
+
), I = bn(D), T = !n || n.length === 0, w = (x, E) => {
|
|
2622
2633
|
i({
|
|
2623
2634
|
element: "welcome_banner_button",
|
|
2624
|
-
label: `OraculoSeccionBonoBienvenida - Banner button click: ${
|
|
2635
|
+
label: `OraculoSeccionBonoBienvenida - Banner button click: ${x.title || "OraculoSeccionBonoBienvenida - Banner " + (E + 1)}`,
|
|
2625
2636
|
target: "action",
|
|
2626
2637
|
event_type: "click",
|
|
2627
2638
|
module_id: 301,
|
|
2628
2639
|
metadata: {
|
|
2629
2640
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
2630
|
-
banner_position:
|
|
2641
|
+
banner_position: E + 1,
|
|
2631
2642
|
banner_total: (n == null ? void 0 : n.length) || 0
|
|
2632
2643
|
},
|
|
2633
2644
|
tags: {
|
|
2634
|
-
banner_title:
|
|
2635
|
-
button_text:
|
|
2645
|
+
banner_title: x.title || "no_title",
|
|
2646
|
+
button_text: x.buttonText || "no_text"
|
|
2636
2647
|
}
|
|
2637
|
-
}),
|
|
2638
|
-
}, B = (
|
|
2648
|
+
}), x.onButtonClick && x.onButtonClick();
|
|
2649
|
+
}, B = (x) => {
|
|
2639
2650
|
if (!d.current) return;
|
|
2640
2651
|
if (l.current) {
|
|
2641
2652
|
l.current = !1;
|
|
2642
2653
|
return;
|
|
2643
2654
|
}
|
|
2644
|
-
const
|
|
2655
|
+
const E = n == null ? void 0 : n[x];
|
|
2645
2656
|
i({
|
|
2646
2657
|
element: "welcome_banner_carousel",
|
|
2647
|
-
label: `Landing: ${r} - OraculoSeccionBonoBienvenida - Banner view: ${(
|
|
2658
|
+
label: `Landing: ${r} - OraculoSeccionBonoBienvenida - Banner view: ${(E == null ? void 0 : E.title) || "OraculoSeccionBonoBienvenida - Banner " + (x + 1)}`,
|
|
2648
2659
|
target: "no_url",
|
|
2649
2660
|
event_type: "view",
|
|
2650
2661
|
module_id: 301,
|
|
2651
2662
|
metadata: {
|
|
2652
2663
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
2653
|
-
slide_index:
|
|
2664
|
+
slide_index: x + 1,
|
|
2654
2665
|
total_slides: (n == null ? void 0 : n.length) || 0,
|
|
2655
2666
|
interaction_type: "manual_slide"
|
|
2656
2667
|
},
|
|
2657
2668
|
tags: {
|
|
2658
|
-
banner_position: String(
|
|
2659
|
-
banner_title: (
|
|
2669
|
+
banner_position: String(x + 1),
|
|
2670
|
+
banner_title: (E == null ? void 0 : E.title) || "no_title"
|
|
2660
2671
|
}
|
|
2661
2672
|
});
|
|
2662
2673
|
};
|
|
2663
2674
|
Q(() => {
|
|
2664
|
-
const
|
|
2665
|
-
if (!
|
|
2666
|
-
const
|
|
2675
|
+
const x = f.current;
|
|
2676
|
+
if (!x) return;
|
|
2677
|
+
const E = 6, L = 380, z = (R) => {
|
|
2667
2678
|
var W, G;
|
|
2668
|
-
if (
|
|
2669
|
-
const
|
|
2670
|
-
if (Math.abs(
|
|
2671
|
-
const U =
|
|
2672
|
-
U && M.current.isEnd || !U && M.current.isStart || (R.preventDefault(),
|
|
2673
|
-
|
|
2679
|
+
if (T || R.ctrlKey || y.current) return;
|
|
2680
|
+
const _ = R.deltaX, P = R.deltaY;
|
|
2681
|
+
if (Math.abs(_) <= Math.abs(P) || Math.abs(_) < E) return;
|
|
2682
|
+
const U = _ > 0;
|
|
2683
|
+
U && M.current.isEnd || !U && M.current.isStart || (R.preventDefault(), y.current = !0, U ? (W = p.current) == null || W.next() : (G = p.current) == null || G.prev(), v.current && window.clearTimeout(v.current), v.current = window.setTimeout(() => {
|
|
2684
|
+
y.current = !1;
|
|
2674
2685
|
}, L));
|
|
2675
2686
|
};
|
|
2676
|
-
return
|
|
2677
|
-
|
|
2687
|
+
return x.addEventListener("wheel", z, { passive: !1 }), () => {
|
|
2688
|
+
x.removeEventListener("wheel", z), v.current && window.clearTimeout(v.current);
|
|
2678
2689
|
};
|
|
2679
|
-
}, [
|
|
2680
|
-
const
|
|
2681
|
-
var
|
|
2682
|
-
const
|
|
2683
|
-
return
|
|
2690
|
+
}, [T]);
|
|
2691
|
+
const k = (x, E, L) => {
|
|
2692
|
+
var _, P;
|
|
2693
|
+
const z = (_ = x.headline) != null ? _ : e, R = (P = x.headline2) != null ? P : a;
|
|
2694
|
+
return E ? /* @__PURE__ */ g(
|
|
2684
2695
|
q,
|
|
2685
2696
|
{
|
|
2686
2697
|
sx: {
|
|
@@ -2693,7 +2704,7 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2693
2704
|
columnGap: 6
|
|
2694
2705
|
},
|
|
2695
2706
|
children: [
|
|
2696
|
-
(
|
|
2707
|
+
(z || R) && /* @__PURE__ */ t(
|
|
2697
2708
|
q,
|
|
2698
2709
|
{
|
|
2699
2710
|
sx: {
|
|
@@ -2702,9 +2713,9 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2702
2713
|
justifyContent: "flex-start",
|
|
2703
2714
|
minHeight: "100%"
|
|
2704
2715
|
},
|
|
2705
|
-
children: /* @__PURE__ */
|
|
2706
|
-
|
|
2707
|
-
R && /* @__PURE__ */
|
|
2716
|
+
children: /* @__PURE__ */ g(q, { sx: { ...Ye, textAlign: "left", mb: 0 }, children: [
|
|
2717
|
+
z && /* @__PURE__ */ t(de, { component: "span", sx: Qe, children: z }),
|
|
2718
|
+
R && /* @__PURE__ */ g(me, { children: [
|
|
2708
2719
|
/* @__PURE__ */ t("br", {}),
|
|
2709
2720
|
/* @__PURE__ */ t(de, { component: "span", sx: et, children: R })
|
|
2710
2721
|
] })
|
|
@@ -2714,17 +2725,17 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2714
2725
|
/* @__PURE__ */ t(q, { sx: { display: "flex", justifyContent: "center", alignItems: "center" }, children: /* @__PURE__ */ t(q, { sx: { width: "100%", maxWidth: 600, mx: "auto" }, children: /* @__PURE__ */ t(
|
|
2715
2726
|
Ze,
|
|
2716
2727
|
{
|
|
2717
|
-
...
|
|
2718
|
-
onButtonClick: () => w(
|
|
2728
|
+
...x,
|
|
2729
|
+
onButtonClick: () => w(x, L),
|
|
2719
2730
|
variant: "large"
|
|
2720
2731
|
}
|
|
2721
2732
|
) }) })
|
|
2722
2733
|
]
|
|
2723
2734
|
}
|
|
2724
|
-
) : /* @__PURE__ */
|
|
2725
|
-
(
|
|
2726
|
-
|
|
2727
|
-
R && /* @__PURE__ */
|
|
2735
|
+
) : /* @__PURE__ */ g(q, { sx: { textAlign: "center" }, children: [
|
|
2736
|
+
(z || R) && /* @__PURE__ */ g(q, { sx: Ye, children: [
|
|
2737
|
+
z && /* @__PURE__ */ t(de, { component: "span", sx: Qe, children: z }),
|
|
2738
|
+
R && /* @__PURE__ */ g(me, { children: [
|
|
2728
2739
|
/* @__PURE__ */ t("br", {}),
|
|
2729
2740
|
/* @__PURE__ */ t(de, { component: "span", sx: et, children: R })
|
|
2730
2741
|
] })
|
|
@@ -2732,14 +2743,14 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2732
2743
|
/* @__PURE__ */ t(q, { sx: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(
|
|
2733
2744
|
Ze,
|
|
2734
2745
|
{
|
|
2735
|
-
...
|
|
2736
|
-
onButtonClick: () => w(
|
|
2746
|
+
...x,
|
|
2747
|
+
onButtonClick: () => w(x, L),
|
|
2737
2748
|
variant: "small"
|
|
2738
2749
|
}
|
|
2739
2750
|
) })
|
|
2740
2751
|
] });
|
|
2741
2752
|
};
|
|
2742
|
-
return /* @__PURE__ */
|
|
2753
|
+
return /* @__PURE__ */ g(q, { component: "section", sx: I, children: [
|
|
2743
2754
|
/* @__PURE__ */ t("div", { ref: f, style: { width: "100%" }, children: /* @__PURE__ */ t(
|
|
2744
2755
|
he,
|
|
2745
2756
|
{
|
|
@@ -2757,9 +2768,9 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2757
2768
|
// arrows: false,
|
|
2758
2769
|
// drag: true,
|
|
2759
2770
|
},
|
|
2760
|
-
renderItem: (
|
|
2761
|
-
onMove: ({ index:
|
|
2762
|
-
|
|
2771
|
+
renderItem: (x, E) => /* @__PURE__ */ t(q, { sx: { width: "100%" }, children: k(x, !s, E) }),
|
|
2772
|
+
onMove: ({ index: x, isStart: E, isEnd: L }) => {
|
|
2773
|
+
b(x), typeof E == "boolean" && typeof L == "boolean" && O({ isStart: E, isEnd: L }), B(x);
|
|
2763
2774
|
}
|
|
2764
2775
|
}
|
|
2765
2776
|
) }),
|
|
@@ -2768,28 +2779,28 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2768
2779
|
{
|
|
2769
2780
|
total: n.length,
|
|
2770
2781
|
active: c,
|
|
2771
|
-
onSelect: (
|
|
2772
|
-
var
|
|
2782
|
+
onSelect: (x) => {
|
|
2783
|
+
var E;
|
|
2773
2784
|
i({
|
|
2774
2785
|
element: "welcome_banner_dots",
|
|
2775
|
-
label: `Landing: ${r} - OraculoSeccionBonoBienvenida - Dot navigation: Banner ${
|
|
2786
|
+
label: `Landing: ${r} - OraculoSeccionBonoBienvenida - Dot navigation: Banner ${x + 1}`,
|
|
2776
2787
|
target: "no_url",
|
|
2777
2788
|
event_type: "click",
|
|
2778
2789
|
module_id: 301,
|
|
2779
2790
|
metadata: {
|
|
2780
2791
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
2781
|
-
dot_index:
|
|
2792
|
+
dot_index: x + 1,
|
|
2782
2793
|
total_dots: n.length
|
|
2783
2794
|
},
|
|
2784
2795
|
tags: {
|
|
2785
2796
|
navigation_type: "dot_click"
|
|
2786
2797
|
}
|
|
2787
|
-
}),
|
|
2798
|
+
}), b(x), (E = p.current) == null || E.go(x);
|
|
2788
2799
|
}
|
|
2789
2800
|
}
|
|
2790
2801
|
) })
|
|
2791
2802
|
] });
|
|
2792
|
-
},
|
|
2803
|
+
}, _n = ({
|
|
2793
2804
|
className: e = "",
|
|
2794
2805
|
fullBleed: a = !0,
|
|
2795
2806
|
items: n,
|
|
@@ -2811,15 +2822,15 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2811
2822
|
tags: { section: "OraculoSeccionClubOlimpo" }
|
|
2812
2823
|
}), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/conoce-club-olimpo");
|
|
2813
2824
|
}, l = Array.isArray(n) ? n[o] : n;
|
|
2814
|
-
|
|
2825
|
+
$t(() => {
|
|
2815
2826
|
if (!r.current || !s.current || typeof ResizeObserver == "undefined") return;
|
|
2816
|
-
const
|
|
2817
|
-
|
|
2827
|
+
const b = r.current, h = s.current, O = () => {
|
|
2828
|
+
b.style.setProperty(
|
|
2818
2829
|
"--orc-co-bottomH",
|
|
2819
|
-
`${
|
|
2830
|
+
`${h.offsetHeight + 16}px`
|
|
2820
2831
|
);
|
|
2821
|
-
}, M = new ResizeObserver(
|
|
2822
|
-
return M.observe(
|
|
2832
|
+
}, M = new ResizeObserver(O);
|
|
2833
|
+
return M.observe(h), O(), () => M.disconnect();
|
|
2823
2834
|
}, []);
|
|
2824
2835
|
const c = [
|
|
2825
2836
|
"orc-co-wrap",
|
|
@@ -2833,7 +2844,7 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2833
2844
|
className: c,
|
|
2834
2845
|
"aria-label": i || l.imgAlt || "Club Olimpo",
|
|
2835
2846
|
children: /* @__PURE__ */ t("div", { ref: s, children: /* @__PURE__ */ t(
|
|
2836
|
-
|
|
2847
|
+
xa,
|
|
2837
2848
|
{
|
|
2838
2849
|
text: l.text,
|
|
2839
2850
|
onClick: d,
|
|
@@ -2846,38 +2857,38 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2846
2857
|
) })
|
|
2847
2858
|
}
|
|
2848
2859
|
);
|
|
2849
|
-
},
|
|
2850
|
-
controls:
|
|
2851
|
-
padding:
|
|
2852
|
-
},
|
|
2860
|
+
}, yn = "oraculo__OraculoSeccionEventoCombinadas-module__controls___Zsta4", xn = "oraculo__OraculoSeccionEventoCombinadas-module__padding___vf-yF", tt = {
|
|
2861
|
+
controls: yn,
|
|
2862
|
+
padding: xn
|
|
2863
|
+
}, wn = (e) => {
|
|
2853
2864
|
var a, n;
|
|
2854
2865
|
return (a = e.outcome) != null && a.id ? [e.outcome.id] : e.type === "BET_BUILDER" && ((n = e.group) != null && n.groups) ? e.group.groups.flatMap((o) => {
|
|
2855
2866
|
var i, r;
|
|
2856
2867
|
return (r = (i = o.outcomes) == null ? void 0 : i.map((s) => s.id)) != null ? r : [];
|
|
2857
2868
|
}) : [];
|
|
2858
2869
|
};
|
|
2859
|
-
function
|
|
2870
|
+
function Sn(e, a, n) {
|
|
2860
2871
|
return n ? n.map((o) => {
|
|
2861
2872
|
var d, l;
|
|
2862
|
-
const i = o.prePackCouponRows.flatMap((c) =>
|
|
2873
|
+
const i = o.prePackCouponRows.flatMap((c) => wn(c).map((b) => ({ eventId: c.eventId, outcomeId: b }))), r = new Set(i.map((c) => c.eventId)), s = new Set(i.map((c) => c.outcomeId)), m = new Map(i.map((c, b) => [c.outcomeId, b])), p = {};
|
|
2863
2874
|
for (const c of a) {
|
|
2864
2875
|
if (!r.has(c.eventId)) continue;
|
|
2865
|
-
const
|
|
2866
|
-
|
|
2876
|
+
const b = c.outcomes.filter((h) => s.has(h.id)).map((h) => ({ ...h, position: m.get(h.id) }));
|
|
2877
|
+
b.length && ((l = p[d = c.eventId]) != null || (p[d] = []), p[c.eventId].push({ ...c, outcomes: b }));
|
|
2867
2878
|
}
|
|
2868
2879
|
const f = e.filter((c) => r.has(c.id)).map((c) => {
|
|
2869
|
-
var
|
|
2870
|
-
return { ...c, betoffers: (
|
|
2880
|
+
var b;
|
|
2881
|
+
return { ...c, betoffers: (b = p[c.id]) != null ? b : [] };
|
|
2871
2882
|
});
|
|
2872
2883
|
return {
|
|
2873
2884
|
couponId: o.id,
|
|
2874
2885
|
status: o.status,
|
|
2875
|
-
combinadoTotal:
|
|
2886
|
+
combinadoTotal: In(o.prePackCouponRows),
|
|
2876
2887
|
events: f
|
|
2877
2888
|
};
|
|
2878
2889
|
}) : [];
|
|
2879
2890
|
}
|
|
2880
|
-
function
|
|
2891
|
+
function In(e) {
|
|
2881
2892
|
if (!Array.isArray(e) || e.length === 0) return 0;
|
|
2882
2893
|
let a = 1;
|
|
2883
2894
|
for (const n of e) {
|
|
@@ -2886,15 +2897,15 @@ function Sn(e) {
|
|
|
2886
2897
|
}
|
|
2887
2898
|
return Math.floor(a * 100) / 100;
|
|
2888
2899
|
}
|
|
2889
|
-
const
|
|
2890
|
-
function
|
|
2900
|
+
const Cn = fe.memo(za);
|
|
2901
|
+
function On({
|
|
2891
2902
|
items: e,
|
|
2892
2903
|
title: a = "Combinadas del Olimpo",
|
|
2893
2904
|
iconUrl: n = "https://stg-www.contodobet.com/static/img/landing/EventoCombinada/rayoIcon.svg",
|
|
2894
2905
|
onViewMore: o,
|
|
2895
2906
|
className: i = ""
|
|
2896
2907
|
}) {
|
|
2897
|
-
const r = ae(), s = ne(), m = se(), p = V(null), [f, d] = K({ isStart: !0, isEnd: !1 }), [l, c] = K([]),
|
|
2908
|
+
const r = ae(), s = ne(), m = se(), p = V(null), [f, d] = K({ isStart: !0, isEnd: !1 }), [l, c] = K([]), b = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group/prepackcoupon.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764284658793&prePackCouponTags=CUSTOM", h = () => {
|
|
2898
2909
|
var I;
|
|
2899
2910
|
r({
|
|
2900
2911
|
element: "evento_combinadas_prev",
|
|
@@ -2906,7 +2917,7 @@ function Cn({
|
|
|
2906
2917
|
},
|
|
2907
2918
|
tags: { section: "OraculoSeccionEventoCombinadas" }
|
|
2908
2919
|
}), (I = p.current) == null || I.prev();
|
|
2909
|
-
},
|
|
2920
|
+
}, O = () => {
|
|
2910
2921
|
var I;
|
|
2911
2922
|
r({
|
|
2912
2923
|
element: "evento_combinadas_next",
|
|
@@ -2928,44 +2939,44 @@ function Cn({
|
|
|
2928
2939
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2929
2940
|
},
|
|
2930
2941
|
tags: { section: "OraculoSeccionEventoCombinadas" }
|
|
2931
|
-
}),
|
|
2932
|
-
},
|
|
2933
|
-
async function
|
|
2934
|
-
var I,
|
|
2942
|
+
}), Ba();
|
|
2943
|
+
}, y = re(() => l.filter((I) => I.combinadoTotal !== null), [l]);
|
|
2944
|
+
async function v() {
|
|
2945
|
+
var I, T, w;
|
|
2935
2946
|
try {
|
|
2936
|
-
const
|
|
2937
|
-
if (!
|
|
2947
|
+
const k = await (await fetch(b)).json(), x = (w = (T = (I = k == null ? void 0 : k.group) == null ? void 0 : I.groups) == null ? void 0 : T[0]) == null ? void 0 : w.id;
|
|
2948
|
+
if (!x) {
|
|
2938
2949
|
console.error("Could not extract group ID");
|
|
2939
2950
|
return;
|
|
2940
2951
|
}
|
|
2941
|
-
const
|
|
2942
|
-
c(
|
|
2952
|
+
const E = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${x}.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764283566783&prePackCouponTags=CUSTOM`, z = await (await fetch(E)).json();
|
|
2953
|
+
c(Sn(z.events, z.betOffers, z.prePackCoupons));
|
|
2943
2954
|
} catch (B) {
|
|
2944
2955
|
console.error("loadDataEventSpecial error:", B);
|
|
2945
2956
|
}
|
|
2946
2957
|
}
|
|
2947
2958
|
Q(() => {
|
|
2948
|
-
|
|
2959
|
+
v();
|
|
2949
2960
|
}, []);
|
|
2950
|
-
const
|
|
2951
|
-
return
|
|
2961
|
+
const C = i || void 0, D = xe("(max-width:950px)");
|
|
2962
|
+
return y.length === 0 ? null : /* @__PURE__ */ t("section", { className: C, style: {
|
|
2952
2963
|
// paddingLeft: 16,
|
|
2953
2964
|
// paddingRight: 16,
|
|
2954
2965
|
width: "100%",
|
|
2955
2966
|
boxSizing: "border-box"
|
|
2956
|
-
}, children: /* @__PURE__ */
|
|
2957
|
-
/* @__PURE__ */ t("div", { className: tt.padding, children: /* @__PURE__ */
|
|
2967
|
+
}, children: /* @__PURE__ */ g(H, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
2968
|
+
/* @__PURE__ */ t("div", { className: tt.padding, children: /* @__PURE__ */ g(ue, { spacing: 1.5, columns: "1fr auto ", justify: "start", children: [
|
|
2958
2969
|
/* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
|
|
2959
|
-
/* @__PURE__ */
|
|
2960
|
-
/* @__PURE__ */
|
|
2970
|
+
/* @__PURE__ */ g("div", { className: tt.controls, children: [
|
|
2971
|
+
/* @__PURE__ */ g(ue, { spacing: 1, columns: "auto auto", children: [
|
|
2961
2972
|
/* @__PURE__ */ t(
|
|
2962
2973
|
X,
|
|
2963
2974
|
{
|
|
2964
2975
|
ariaLabel: "Anterior",
|
|
2965
2976
|
variant: "secondary",
|
|
2966
2977
|
iconOnly: !0,
|
|
2967
|
-
leftIcon: /* @__PURE__ */ t(
|
|
2968
|
-
onClick:
|
|
2978
|
+
leftIcon: /* @__PURE__ */ t(ze, {}),
|
|
2979
|
+
onClick: h,
|
|
2969
2980
|
disabled: f.isStart
|
|
2970
2981
|
}
|
|
2971
2982
|
),
|
|
@@ -2975,8 +2986,8 @@ function Cn({
|
|
|
2975
2986
|
ariaLabel: "Siguiente",
|
|
2976
2987
|
variant: "secondary",
|
|
2977
2988
|
iconOnly: !0,
|
|
2978
|
-
rightIcon: /* @__PURE__ */ t(
|
|
2979
|
-
onClick:
|
|
2989
|
+
rightIcon: /* @__PURE__ */ t(Ae, {}),
|
|
2990
|
+
onClick: O,
|
|
2980
2991
|
disabled: f.isEnd
|
|
2981
2992
|
}
|
|
2982
2993
|
)
|
|
@@ -2988,7 +2999,7 @@ function Cn({
|
|
|
2988
2999
|
he,
|
|
2989
3000
|
{
|
|
2990
3001
|
ref: p,
|
|
2991
|
-
items:
|
|
3002
|
+
items: y,
|
|
2992
3003
|
perPage: void 0,
|
|
2993
3004
|
gap: "16px",
|
|
2994
3005
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
@@ -2998,38 +3009,38 @@ function Cn({
|
|
|
2998
3009
|
breakpoints: {
|
|
2999
3010
|
768: { perPage: 1.2, gap: "12px", padding: { left: "24px", right: "24px" } }
|
|
3000
3011
|
},
|
|
3001
|
-
renderItem: (I) => /* @__PURE__ */ t(
|
|
3002
|
-
onMove: ({ isStart: I, isEnd:
|
|
3012
|
+
renderItem: (I) => /* @__PURE__ */ t(Cn, { coupon: I }),
|
|
3013
|
+
onMove: ({ isStart: I, isEnd: T }) => d({ isStart: I, isEnd: T })
|
|
3003
3014
|
}
|
|
3004
3015
|
)
|
|
3005
3016
|
] }) });
|
|
3006
3017
|
}
|
|
3007
|
-
function
|
|
3018
|
+
function En({}) {
|
|
3008
3019
|
return /* @__PURE__ */ t(
|
|
3009
3020
|
"div",
|
|
3010
3021
|
{
|
|
3011
3022
|
className: ke.cardWrapper,
|
|
3012
|
-
children: /* @__PURE__ */
|
|
3013
|
-
/* @__PURE__ */
|
|
3023
|
+
children: /* @__PURE__ */ g(H, { direction: "column", spacing: 1, children: [
|
|
3024
|
+
/* @__PURE__ */ g(H, { spacing: 1, direction: "row", children: [
|
|
3014
3025
|
/* @__PURE__ */ t(j, { variant: "text", width: "60%", height: 24 }),
|
|
3015
3026
|
/* @__PURE__ */ t(j, { variant: "text", width: "39%", height: 24 })
|
|
3016
3027
|
] }),
|
|
3017
|
-
/* @__PURE__ */
|
|
3028
|
+
/* @__PURE__ */ g(H, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
3018
3029
|
/* @__PURE__ */ t(j, { variant: "circular", width: 32, height: 40 }),
|
|
3019
3030
|
/* @__PURE__ */ t(j, { variant: "text", width: 40, height: 40 }),
|
|
3020
3031
|
/* @__PURE__ */ t(j, { variant: "circular", width: 32, height: 40 })
|
|
3021
3032
|
] }),
|
|
3022
|
-
/* @__PURE__ */
|
|
3033
|
+
/* @__PURE__ */ g(H, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
3023
3034
|
/* @__PURE__ */ t(j, { variant: "text", width: 32, height: 16 }),
|
|
3024
3035
|
/* @__PURE__ */ t(j, { variant: "text", width: 40, height: 16 }),
|
|
3025
3036
|
/* @__PURE__ */ t(j, { variant: "text", width: 32, height: 16 })
|
|
3026
3037
|
] }),
|
|
3027
|
-
/* @__PURE__ */
|
|
3038
|
+
/* @__PURE__ */ g(H, { spacing: 2, direction: "row", children: [
|
|
3028
3039
|
/* @__PURE__ */ t(j, { variant: "rounded", width: 88, height: 16 }),
|
|
3029
3040
|
/* @__PURE__ */ t(j, { variant: "rounded", width: 88, height: 16 }),
|
|
3030
3041
|
/* @__PURE__ */ t(j, { variant: "rounded", width: 88, height: 16 })
|
|
3031
3042
|
] }),
|
|
3032
|
-
/* @__PURE__ */
|
|
3043
|
+
/* @__PURE__ */ g(H, { spacing: 2, direction: "row", children: [
|
|
3033
3044
|
/* @__PURE__ */ t(j, { variant: "rounded", width: 88, height: 32 }),
|
|
3034
3045
|
/* @__PURE__ */ t(j, { variant: "rounded", width: 88, height: 32 }),
|
|
3035
3046
|
/* @__PURE__ */ t(j, { variant: "rounded", width: 88, height: 32 })
|
|
@@ -3038,16 +3049,16 @@ function On({}) {
|
|
|
3038
3049
|
}
|
|
3039
3050
|
);
|
|
3040
3051
|
}
|
|
3041
|
-
const
|
|
3042
|
-
fadeWrapper:
|
|
3052
|
+
const Tn = "oraculo__FadeItemWrapper-module__fadeWrapper___kFOH4", kn = {
|
|
3053
|
+
fadeWrapper: Tn
|
|
3043
3054
|
};
|
|
3044
3055
|
function Be({ children: e }) {
|
|
3045
|
-
return /* @__PURE__ */ t("div", { className:
|
|
3056
|
+
return /* @__PURE__ */ t("div", { className: kn.fadeWrapper, children: e });
|
|
3046
3057
|
}
|
|
3047
|
-
const
|
|
3048
|
-
padding:
|
|
3058
|
+
const $n = "oraculo__OraculoSeccionEventoEnVivo-module__padding___Sh8tD", Nn = {
|
|
3059
|
+
padding: $n
|
|
3049
3060
|
};
|
|
3050
|
-
function
|
|
3061
|
+
function xt({
|
|
3051
3062
|
events: e,
|
|
3052
3063
|
visibleRange: a,
|
|
3053
3064
|
fetchJerseys: n,
|
|
@@ -3059,45 +3070,45 @@ function yt({
|
|
|
3059
3070
|
if (!(!e || e.length === 0))
|
|
3060
3071
|
return f.current && clearTimeout(f.current), f.current = setTimeout(() => {
|
|
3061
3072
|
var D, I;
|
|
3062
|
-
const l = (D = a.start) != null ? D : 0, c = (I = a.end) != null ? I : 7,
|
|
3063
|
-
let
|
|
3064
|
-
const
|
|
3065
|
-
|
|
3066
|
-
const
|
|
3067
|
-
if (
|
|
3068
|
-
|
|
3069
|
-
const
|
|
3073
|
+
const l = (D = a.start) != null ? D : 0, c = (I = a.end) != null ? I : 7, b = Math.max(0, l - o), h = Math.min(e.length - 1, c + o);
|
|
3074
|
+
let O = b, M = h;
|
|
3075
|
+
const y = d.current;
|
|
3076
|
+
y && (b > y.end && (O = y.end + 1), h < y.start && (M = y.start - 1)), d.current = { start: b, end: h };
|
|
3077
|
+
const v = e.slice(O, M + 1).map((T) => T == null ? void 0 : T.id).filter((T) => !!T).filter((T) => !m.current.has(T)).filter((T) => !(T in r));
|
|
3078
|
+
if (v.length === 0) return;
|
|
3079
|
+
v.forEach((T) => m.current.add(T));
|
|
3080
|
+
const C = ++p.current;
|
|
3070
3081
|
(async () => {
|
|
3071
3082
|
try {
|
|
3072
|
-
const
|
|
3073
|
-
if (
|
|
3074
|
-
|
|
3083
|
+
const T = await n(v);
|
|
3084
|
+
if (C !== p.current) {
|
|
3085
|
+
v.forEach((B) => m.current.delete(B));
|
|
3075
3086
|
return;
|
|
3076
3087
|
}
|
|
3077
|
-
if (!(
|
|
3078
|
-
|
|
3088
|
+
if (!(T != null && T.events)) {
|
|
3089
|
+
v.forEach(
|
|
3079
3090
|
(B) => m.current.delete(B)
|
|
3080
3091
|
);
|
|
3081
3092
|
return;
|
|
3082
3093
|
}
|
|
3083
3094
|
s((B) => {
|
|
3084
|
-
const
|
|
3085
|
-
for (const [
|
|
3086
|
-
const L = Number(
|
|
3087
|
-
|
|
3095
|
+
const k = { ...B };
|
|
3096
|
+
for (const [x, E] of Object.entries(T.events)) {
|
|
3097
|
+
const L = Number(x);
|
|
3098
|
+
k[L] || (k[L] = E);
|
|
3088
3099
|
}
|
|
3089
|
-
return
|
|
3100
|
+
return k;
|
|
3090
3101
|
});
|
|
3091
3102
|
const w = new Set(
|
|
3092
|
-
Object.keys(
|
|
3103
|
+
Object.keys(T.events).map(Number)
|
|
3093
3104
|
);
|
|
3094
|
-
|
|
3105
|
+
v.forEach((B) => {
|
|
3095
3106
|
m.current.delete(B);
|
|
3096
3107
|
});
|
|
3097
|
-
} catch (
|
|
3098
|
-
|
|
3108
|
+
} catch (T) {
|
|
3109
|
+
v.forEach(
|
|
3099
3110
|
(w) => m.current.delete(w)
|
|
3100
|
-
), console.error("Jersey fetch error",
|
|
3111
|
+
), console.error("Jersey fetch error", T);
|
|
3101
3112
|
}
|
|
3102
3113
|
})();
|
|
3103
3114
|
}, i), () => {
|
|
@@ -3108,7 +3119,7 @@ function yt({
|
|
|
3108
3119
|
isPending: m.current
|
|
3109
3120
|
};
|
|
3110
3121
|
}
|
|
3111
|
-
const
|
|
3122
|
+
const Mn = (e) => {
|
|
3112
3123
|
const a = ["esports", "cyber"];
|
|
3113
3124
|
return e.filter((n) => {
|
|
3114
3125
|
var r, s;
|
|
@@ -3117,72 +3128,72 @@ const Nn = (e) => {
|
|
|
3117
3128
|
const i = typeof ((s = n == null ? void 0 : n.event) == null ? void 0 : s.group) == "string" ? n.event.group.toLowerCase() : "";
|
|
3118
3129
|
return !a.some((m) => i.includes(m));
|
|
3119
3130
|
});
|
|
3120
|
-
},
|
|
3121
|
-
function
|
|
3131
|
+
}, Bn = fe.memo(Fa);
|
|
3132
|
+
function zn({
|
|
3122
3133
|
items: e,
|
|
3123
3134
|
title: a = "En vivo",
|
|
3124
3135
|
iconUrl: n = "https://stg-www.contodobet.com/static/img/landing/EventoEnVivo/icon.svg",
|
|
3125
3136
|
onViewMore: o,
|
|
3126
3137
|
className: i = ""
|
|
3127
3138
|
}) {
|
|
3128
|
-
const r = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football/all/all/all/in-play.json?channel_id=3&channel_id=3&client_id=200&client_id=200&competitionId=undefined&lang=es_PE&lang=es_PE&market=PE&market=PE&useCombined=true&useCombinedLive=true", s = V(null), [m, p] = K({ isStart: !0, isEnd: !1 }), [f, d] = K(null), [l, c] = K({ start: null, end: null }), [
|
|
3129
|
-
var
|
|
3139
|
+
const r = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football/all/all/all/in-play.json?channel_id=3&channel_id=3&client_id=200&client_id=200&competitionId=undefined&lang=es_PE&lang=es_PE&market=PE&market=PE&useCombined=true&useCombinedLive=true", s = V(null), [m, p] = K({ isStart: !0, isEnd: !1 }), [f, d] = K(null), [l, c] = K({ start: null, end: null }), [b, h] = K(null), O = V(!1), M = ae(), y = ne(), v = se(), C = V(/* @__PURE__ */ new Map()), D = () => {
|
|
3140
|
+
var z;
|
|
3130
3141
|
M({
|
|
3131
3142
|
element: "evento_en_vivo_prev",
|
|
3132
|
-
label: `${
|
|
3143
|
+
label: `${y} - OraculoSeccionEventoEnVivo - Anterior`,
|
|
3133
3144
|
target: "prev",
|
|
3134
3145
|
event_type: "click",
|
|
3135
|
-
module_id:
|
|
3146
|
+
module_id: v,
|
|
3136
3147
|
metadata: {
|
|
3137
3148
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
3138
3149
|
},
|
|
3139
3150
|
tags: { section: "OraculoSeccionEventoEnVivo" }
|
|
3140
|
-
}), (
|
|
3151
|
+
}), (z = s.current) == null || z.prev();
|
|
3141
3152
|
}, I = () => {
|
|
3142
|
-
var
|
|
3153
|
+
var z;
|
|
3143
3154
|
M({
|
|
3144
3155
|
element: "evento_en_vivo_next",
|
|
3145
|
-
label: `${
|
|
3156
|
+
label: `${y} - OraculoSeccionEventoEnVivo - Siguiente`,
|
|
3146
3157
|
target: "next",
|
|
3147
3158
|
event_type: "click",
|
|
3148
|
-
module_id:
|
|
3159
|
+
module_id: v,
|
|
3149
3160
|
metadata: {
|
|
3150
3161
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
3151
3162
|
},
|
|
3152
3163
|
tags: { section: "OraculoSeccionEventoEnVivo" }
|
|
3153
|
-
}), (
|
|
3154
|
-
},
|
|
3164
|
+
}), (z = s.current) == null || z.next();
|
|
3165
|
+
}, T = () => {
|
|
3155
3166
|
M({
|
|
3156
3167
|
element: "evento_en_vivo_view_more",
|
|
3157
|
-
label: `${
|
|
3168
|
+
label: `${y} - OraculoSeccionEventoEnVivo - Ver más`,
|
|
3158
3169
|
target: "ver_mas",
|
|
3159
3170
|
event_type: "click",
|
|
3160
|
-
module_id:
|
|
3171
|
+
module_id: v,
|
|
3161
3172
|
metadata: {
|
|
3162
3173
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
3163
3174
|
},
|
|
3164
3175
|
tags: { section: "OraculoSeccionEventoEnVivo" }
|
|
3165
|
-
}),
|
|
3176
|
+
}), Na();
|
|
3166
3177
|
}, w = Ee(async () => {
|
|
3167
|
-
var
|
|
3178
|
+
var z;
|
|
3168
3179
|
try {
|
|
3169
|
-
if (!
|
|
3170
|
-
|
|
3180
|
+
if (!O.current) {
|
|
3181
|
+
O.current = !0;
|
|
3171
3182
|
try {
|
|
3172
|
-
const W = await (await fetch("https://api.mktolimpo.com/api/kambi/eventos/orden")).json(), G = ((
|
|
3173
|
-
G.forEach((ee, u) => J.set(String(ee), u)),
|
|
3183
|
+
const W = await (await fetch("https://api.mktolimpo.com/api/kambi/eventos/orden")).json(), G = ((z = W == null ? void 0 : W.data) == null ? void 0 : z.event_ids) || [], J = /* @__PURE__ */ new Map();
|
|
3184
|
+
G.forEach((ee, u) => J.set(String(ee), u)), C.current = J;
|
|
3174
3185
|
} catch (U) {
|
|
3175
3186
|
console.error("Order fetch failed, using default sorting", U);
|
|
3176
3187
|
}
|
|
3177
3188
|
}
|
|
3178
3189
|
const R = await fetch(r);
|
|
3179
3190
|
if (!R.ok) throw new Error("Failed to fetch live events");
|
|
3180
|
-
const
|
|
3181
|
-
if (
|
|
3182
|
-
d(
|
|
3191
|
+
const _ = await R.json(), P = Mn(_.events);
|
|
3192
|
+
if (C.current.size === 0)
|
|
3193
|
+
d(P);
|
|
3183
3194
|
else {
|
|
3184
|
-
const U = [...
|
|
3185
|
-
const J =
|
|
3195
|
+
const U = [...P].sort((W, G) => {
|
|
3196
|
+
const J = C.current.get(String(W.event.id)), ee = C.current.get(String(G.event.id));
|
|
3186
3197
|
return (J !== void 0 ? J : 1 / 0) - (ee !== void 0 ? ee : 1 / 0);
|
|
3187
3198
|
});
|
|
3188
3199
|
d(U);
|
|
@@ -3193,11 +3204,11 @@ function Bn({
|
|
|
3193
3204
|
}, []);
|
|
3194
3205
|
Q(() => {
|
|
3195
3206
|
w();
|
|
3196
|
-
const
|
|
3197
|
-
return () => clearInterval(
|
|
3207
|
+
const z = setInterval(w, 2e4);
|
|
3208
|
+
return () => clearInterval(z);
|
|
3198
3209
|
}, [w]);
|
|
3199
|
-
const { jerseys: B } =
|
|
3200
|
-
events: (f == null ? void 0 : f.map((
|
|
3210
|
+
const { jerseys: B } = xt({
|
|
3211
|
+
events: (f == null ? void 0 : f.map((z) => z.event)) || [],
|
|
3201
3212
|
// extract actual event objects
|
|
3202
3213
|
visibleRange: l,
|
|
3203
3214
|
fetchJerseys: pt,
|
|
@@ -3205,24 +3216,24 @@ function Bn({
|
|
|
3205
3216
|
// same as your previous BUFFER
|
|
3206
3217
|
debounceMs: 300
|
|
3207
3218
|
// same as your previous debouncedVisibleRange
|
|
3208
|
-
}),
|
|
3209
|
-
return !
|
|
3219
|
+
}), k = i || void 0, x = f === null, E = re(() => x ? Array(4).fill({}) : (f == null ? void 0 : f.slice(0, 20)) || [], [x, f]), L = xe("(max-width:950px)");
|
|
3220
|
+
return !x && f.length === 0 ? null : /* @__PURE__ */ t("section", { className: k, style: {
|
|
3210
3221
|
// paddingLeft: 16,
|
|
3211
3222
|
// paddingRight: 16,
|
|
3212
3223
|
width: "100%",
|
|
3213
3224
|
boxSizing: "border-box"
|
|
3214
|
-
}, children: /* @__PURE__ */
|
|
3215
|
-
/* @__PURE__ */ t("div", { className:
|
|
3225
|
+
}, children: /* @__PURE__ */ g(H, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
3226
|
+
/* @__PURE__ */ t("div", { className: Nn.padding, children: /* @__PURE__ */ g(ue, { spacing: 1.5, columns: "1fr auto ", justify: "start", children: [
|
|
3216
3227
|
/* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
|
|
3217
|
-
/* @__PURE__ */
|
|
3218
|
-
/* @__PURE__ */
|
|
3228
|
+
/* @__PURE__ */ g("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
|
|
3229
|
+
/* @__PURE__ */ g(ue, { spacing: 1, columns: "auto auto", children: [
|
|
3219
3230
|
/* @__PURE__ */ t(
|
|
3220
3231
|
X,
|
|
3221
3232
|
{
|
|
3222
3233
|
ariaLabel: "Anterior",
|
|
3223
3234
|
variant: "secondary",
|
|
3224
3235
|
iconOnly: !0,
|
|
3225
|
-
leftIcon: /* @__PURE__ */ t(
|
|
3236
|
+
leftIcon: /* @__PURE__ */ t(ze, {}),
|
|
3226
3237
|
onClick: D,
|
|
3227
3238
|
disabled: m.isStart
|
|
3228
3239
|
}
|
|
@@ -3233,20 +3244,20 @@ function Bn({
|
|
|
3233
3244
|
ariaLabel: "Siguiente",
|
|
3234
3245
|
variant: "secondary",
|
|
3235
3246
|
iconOnly: !0,
|
|
3236
|
-
rightIcon: /* @__PURE__ */ t(
|
|
3247
|
+
rightIcon: /* @__PURE__ */ t(Ae, {}),
|
|
3237
3248
|
onClick: I,
|
|
3238
3249
|
disabled: m.isEnd
|
|
3239
3250
|
}
|
|
3240
3251
|
)
|
|
3241
3252
|
] }),
|
|
3242
|
-
/* @__PURE__ */ t(X, { variant: "secondary", onClick:
|
|
3253
|
+
/* @__PURE__ */ t(X, { variant: "secondary", onClick: T, children: "Ver más" })
|
|
3243
3254
|
] })
|
|
3244
3255
|
] }) }),
|
|
3245
3256
|
/* @__PURE__ */ t(
|
|
3246
3257
|
he,
|
|
3247
3258
|
{
|
|
3248
3259
|
ref: s,
|
|
3249
|
-
items:
|
|
3260
|
+
items: E,
|
|
3250
3261
|
perPage: void 0,
|
|
3251
3262
|
showRightGradient: !L,
|
|
3252
3263
|
enableHorizontalWheel: !0,
|
|
@@ -3257,46 +3268,46 @@ function Bn({
|
|
|
3257
3268
|
768: { gap: "8px", focus: "center", padding: { left: "24px", right: "24px" } },
|
|
3258
3269
|
1024: { gap: "10px", focus: "center", padding: { left: "24px", right: "24px" } }
|
|
3259
3270
|
},
|
|
3260
|
-
renderItem: (
|
|
3261
|
-
var
|
|
3262
|
-
const R = ((
|
|
3263
|
-
return
|
|
3264
|
-
|
|
3271
|
+
renderItem: (z) => {
|
|
3272
|
+
var P;
|
|
3273
|
+
const R = ((P = z.event) == null ? void 0 : P.id) || z.eventId, _ = R in B ? B[R] : void 0;
|
|
3274
|
+
return x ? /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(En, {}) }) : /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(
|
|
3275
|
+
Bn,
|
|
3265
3276
|
{
|
|
3266
|
-
...
|
|
3267
|
-
jersey:
|
|
3277
|
+
...z,
|
|
3278
|
+
jersey: _
|
|
3268
3279
|
}
|
|
3269
3280
|
) });
|
|
3270
3281
|
},
|
|
3271
|
-
onMove: ({ isStart:
|
|
3282
|
+
onMove: ({ isStart: z, isEnd: R, visibleStart: _, visibleEnd: P }) => {
|
|
3272
3283
|
p(
|
|
3273
|
-
(U) => U.isStart ===
|
|
3274
|
-
), c({ start:
|
|
3284
|
+
(U) => U.isStart === z && U.isEnd === R ? U : { isStart: z, isEnd: R }
|
|
3285
|
+
), c({ start: _, end: P });
|
|
3275
3286
|
}
|
|
3276
3287
|
}
|
|
3277
3288
|
)
|
|
3278
3289
|
] }) });
|
|
3279
3290
|
}
|
|
3280
3291
|
function An() {
|
|
3281
|
-
return /* @__PURE__ */
|
|
3292
|
+
return /* @__PURE__ */ g("div", { className: be.cardContainer, children: [
|
|
3282
3293
|
/* @__PURE__ */ t(dt, { title: "" }),
|
|
3283
|
-
/* @__PURE__ */ t("div", { className: be.cardBackground, children: /* @__PURE__ */
|
|
3284
|
-
/* @__PURE__ */
|
|
3294
|
+
/* @__PURE__ */ t("div", { className: be.cardBackground, children: /* @__PURE__ */ g(H, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
3295
|
+
/* @__PURE__ */ g(H, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
3285
3296
|
/* @__PURE__ */ t(j, { variant: "circular", width: 48, height: 48 }),
|
|
3286
3297
|
/* @__PURE__ */ t(j, { variant: "circular", width: 48, height: 48 })
|
|
3287
3298
|
] }),
|
|
3288
|
-
/* @__PURE__ */
|
|
3289
|
-
/* @__PURE__ */
|
|
3299
|
+
/* @__PURE__ */ g(H, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
3300
|
+
/* @__PURE__ */ g(H, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
3290
3301
|
/* @__PURE__ */ t(j, { variant: "text", width: 80, height: 12 }),
|
|
3291
3302
|
/* @__PURE__ */ t(j, { variant: "text", width: 80, height: 12 })
|
|
3292
3303
|
] }),
|
|
3293
3304
|
/* @__PURE__ */ t(H, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ t(j, { variant: "text", width: 160, height: 12 }) }),
|
|
3294
|
-
/* @__PURE__ */
|
|
3305
|
+
/* @__PURE__ */ g(H, { direction: "row", spacing: 1, children: [
|
|
3295
3306
|
/* @__PURE__ */ t(j, { variant: "text", width: 80, height: 16 }),
|
|
3296
3307
|
/* @__PURE__ */ t(j, { variant: "text", width: 80, height: 16 }),
|
|
3297
3308
|
/* @__PURE__ */ t(j, { variant: "text", width: 80, height: 16 })
|
|
3298
3309
|
] }),
|
|
3299
|
-
/* @__PURE__ */ t("div", { className: be.jugadas, children: /* @__PURE__ */
|
|
3310
|
+
/* @__PURE__ */ t("div", { className: be.jugadas, children: /* @__PURE__ */ g(H, { direction: "row", spacing: 1, children: [
|
|
3300
3311
|
/* @__PURE__ */ t(j, { variant: "rounded", width: 80, height: 32 }),
|
|
3301
3312
|
/* @__PURE__ */ t(j, { variant: "rounded", width: 80, height: 32 }),
|
|
3302
3313
|
/* @__PURE__ */ t(j, { variant: "rounded", width: 80, height: 32 })
|
|
@@ -3305,13 +3316,13 @@ function An() {
|
|
|
3305
3316
|
] }) })
|
|
3306
3317
|
] });
|
|
3307
3318
|
}
|
|
3308
|
-
const
|
|
3309
|
-
wrapper:
|
|
3310
|
-
container:
|
|
3311
|
-
buttonWrapper:
|
|
3319
|
+
const Rn = "oraculo__OraculoSeccionEventoSemana-module__wrapper___eqVq-", Ln = "oraculo__OraculoSeccionEventoSemana-module__container___5yFQs", Pn = "oraculo__OraculoSeccionEventoSemana-module__buttonWrapper___-6IDT", Fn = "oraculo__OraculoSeccionEventoSemana-module__padding___vfUcV", Ie = {
|
|
3320
|
+
wrapper: Rn,
|
|
3321
|
+
container: Ln,
|
|
3322
|
+
buttonWrapper: Pn,
|
|
3312
3323
|
padding: Fn
|
|
3313
|
-
},
|
|
3314
|
-
async function
|
|
3324
|
+
}, qn = fe.memo(Ha);
|
|
3325
|
+
async function Dn(e, a = 2, n) {
|
|
3315
3326
|
const o = [];
|
|
3316
3327
|
for (let i = 0; i < e.length; i += a) {
|
|
3317
3328
|
if (n.aborted)
|
|
@@ -3323,12 +3334,12 @@ async function qn(e, a = 2, n) {
|
|
|
3323
3334
|
}
|
|
3324
3335
|
return o;
|
|
3325
3336
|
}
|
|
3326
|
-
function
|
|
3337
|
+
function Un(e) {
|
|
3327
3338
|
return [...e].sort(
|
|
3328
3339
|
(a, n) => new Date(a.start).getTime() - new Date(n.start).getTime()
|
|
3329
3340
|
);
|
|
3330
3341
|
}
|
|
3331
|
-
function
|
|
3342
|
+
function Vn(e) {
|
|
3332
3343
|
const a = /* @__PURE__ */ new Date(), n = new Date(a.getTime() + 480 * 60 * 60 * 1e3);
|
|
3333
3344
|
return e.filter((o) => {
|
|
3334
3345
|
if (!o.start) return !1;
|
|
@@ -3336,7 +3347,7 @@ function Un(e) {
|
|
|
3336
3347
|
return i >= a && i <= n;
|
|
3337
3348
|
});
|
|
3338
3349
|
}
|
|
3339
|
-
function
|
|
3350
|
+
function Wn(e, a) {
|
|
3340
3351
|
const o = a.filter((i) => {
|
|
3341
3352
|
var r;
|
|
3342
3353
|
return ((r = i.betOfferType) == null ? void 0 : r.id) === 2;
|
|
@@ -3346,14 +3357,14 @@ function Vn(e, a) {
|
|
|
3346
3357
|
outcome: o[i.id]
|
|
3347
3358
|
}));
|
|
3348
3359
|
}
|
|
3349
|
-
function
|
|
3360
|
+
function Gn({
|
|
3350
3361
|
items: e,
|
|
3351
3362
|
title: a = "En vivo",
|
|
3352
3363
|
iconUrl: n,
|
|
3353
3364
|
onViewMore: o,
|
|
3354
3365
|
className: i = ""
|
|
3355
3366
|
}) {
|
|
3356
|
-
const r = ae(), s = ne(), m = se(), p = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE", f = V(null), [d, l] = K({ isStart: !0, isEnd: !1 }), [c,
|
|
3367
|
+
const r = ae(), s = ne(), m = se(), p = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE", f = V(null), [d, l] = K({ isStart: !0, isEnd: !1 }), [c, b] = K(null), [h, O] = K({ start: null, end: null }), M = "channel_id=1&client_id=200&competitionId=undefined&lang=es_PE&market=PE&useCombined=true", y = () => {
|
|
3357
3368
|
r({
|
|
3358
3369
|
element: "evento_semana_view_more",
|
|
3359
3370
|
label: `${s} - OraculoSeccionEventoSemana - Ver más`,
|
|
@@ -3364,108 +3375,108 @@ function Wn({
|
|
|
3364
3375
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
3365
3376
|
},
|
|
3366
3377
|
tags: { section: "OraculoSeccionEventoSemana" }
|
|
3367
|
-
}),
|
|
3378
|
+
}), Ma();
|
|
3368
3379
|
};
|
|
3369
|
-
async function
|
|
3370
|
-
var L,
|
|
3371
|
-
let
|
|
3380
|
+
async function v(k) {
|
|
3381
|
+
var L, z;
|
|
3382
|
+
let x = [], E = [];
|
|
3372
3383
|
try {
|
|
3373
3384
|
const R = await fetch(
|
|
3374
3385
|
"https://api.mktolimpo.com/api/kambi/eventos/orden",
|
|
3375
|
-
{ signal:
|
|
3386
|
+
{ signal: k }
|
|
3376
3387
|
);
|
|
3377
3388
|
if (R.ok) {
|
|
3378
|
-
const
|
|
3379
|
-
|
|
3389
|
+
const _ = await R.json();
|
|
3390
|
+
x = ((L = _ == null ? void 0 : _.data) == null ? void 0 : L.group_ids) || [], E = ((z = _ == null ? void 0 : _.data) == null ? void 0 : z.event_ids) || [];
|
|
3380
3391
|
}
|
|
3381
3392
|
} catch (R) {
|
|
3382
3393
|
R.name !== "AbortError" && console.warn("Order API not available, using default group order");
|
|
3383
3394
|
return;
|
|
3384
3395
|
}
|
|
3385
3396
|
try {
|
|
3386
|
-
const
|
|
3397
|
+
const P = (await (await fetch(p, { signal: k })).json()).group.groups.find(
|
|
3387
3398
|
(u) => u.englishName === "Football"
|
|
3388
3399
|
);
|
|
3389
|
-
if (!
|
|
3400
|
+
if (!P || !Array.isArray(P.groups)) {
|
|
3390
3401
|
console.error("Football groups not found");
|
|
3391
3402
|
return;
|
|
3392
3403
|
}
|
|
3393
|
-
let U = [...
|
|
3394
|
-
if (
|
|
3404
|
+
let U = [...P.groups];
|
|
3405
|
+
if (x.length > 0) {
|
|
3395
3406
|
const u = new Map(
|
|
3396
|
-
|
|
3407
|
+
x.map((S, $) => [S, $])
|
|
3397
3408
|
);
|
|
3398
|
-
U.sort((S,
|
|
3399
|
-
const N = u.get(String(S.id)),
|
|
3400
|
-
return N !== void 0 &&
|
|
3409
|
+
U.sort((S, $) => {
|
|
3410
|
+
const N = u.get(String(S.id)), A = u.get(String($.id));
|
|
3411
|
+
return N !== void 0 && A !== void 0 ? N - A : N !== void 0 ? -1 : A !== void 0 ? 1 : 0;
|
|
3401
3412
|
});
|
|
3402
3413
|
}
|
|
3403
3414
|
const G = U.slice(0, 5), J = (u) => {
|
|
3404
3415
|
const S = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football";
|
|
3405
3416
|
if (u.groups && u.groups.length > 0) {
|
|
3406
|
-
const
|
|
3417
|
+
const $ = u.groups[0];
|
|
3407
3418
|
return [
|
|
3408
|
-
`${S}/${u.termKey}/${
|
|
3419
|
+
`${S}/${u.termKey}/${$.termKey}/all/matches.json?${M}`
|
|
3409
3420
|
];
|
|
3410
3421
|
}
|
|
3411
3422
|
return [
|
|
3412
3423
|
`${S}/${u.termKey}/all/all/matches.json?${M}`
|
|
3413
3424
|
];
|
|
3414
3425
|
}, ee = G.flatMap(J);
|
|
3415
|
-
|
|
3426
|
+
C(ee, E, k);
|
|
3416
3427
|
} catch (R) {
|
|
3417
3428
|
console.error(R);
|
|
3418
3429
|
}
|
|
3419
3430
|
}
|
|
3420
|
-
async function
|
|
3431
|
+
async function C(k, x, E) {
|
|
3421
3432
|
try {
|
|
3422
|
-
const L = await
|
|
3423
|
-
let
|
|
3433
|
+
const L = await Dn(k, 2, E);
|
|
3434
|
+
let z = [], R = [];
|
|
3424
3435
|
L.forEach((W) => {
|
|
3425
|
-
W.events && (
|
|
3436
|
+
W.events && (z.push(...W.events.map((G) => G.event)), R.push(
|
|
3426
3437
|
...W.events.flatMap((G) => G.betOffers || [])
|
|
3427
3438
|
));
|
|
3428
3439
|
});
|
|
3429
|
-
const
|
|
3430
|
-
let U =
|
|
3431
|
-
if (
|
|
3440
|
+
const _ = Wn(z, R), P = Un(Vn(_));
|
|
3441
|
+
let U = P;
|
|
3442
|
+
if (x.length > 0) {
|
|
3432
3443
|
const W = new Map(
|
|
3433
|
-
|
|
3444
|
+
x.map((G, J) => [
|
|
3434
3445
|
String(G),
|
|
3435
3446
|
J
|
|
3436
3447
|
])
|
|
3437
3448
|
);
|
|
3438
|
-
U = [...
|
|
3449
|
+
U = [...P].sort((G, J) => {
|
|
3439
3450
|
const ee = W.get(String(G.id)), u = W.get(String(J.id));
|
|
3440
3451
|
return ee !== void 0 && u !== void 0 ? ee - u : ee !== void 0 ? -1 : u !== void 0 ? 1 : 0;
|
|
3441
3452
|
});
|
|
3442
3453
|
}
|
|
3443
|
-
if (
|
|
3444
|
-
|
|
3454
|
+
if (E.aborted) return;
|
|
3455
|
+
b(U);
|
|
3445
3456
|
} catch (L) {
|
|
3446
3457
|
console.error("Error loading events:", L);
|
|
3447
3458
|
}
|
|
3448
3459
|
}
|
|
3449
3460
|
Q(() => {
|
|
3450
3461
|
if (!e) return;
|
|
3451
|
-
const
|
|
3452
|
-
return
|
|
3453
|
-
|
|
3462
|
+
const k = new AbortController();
|
|
3463
|
+
return v(k.signal), () => {
|
|
3464
|
+
k.abort();
|
|
3454
3465
|
};
|
|
3455
3466
|
}, [e]);
|
|
3456
3467
|
const D = i || void 0, I = {
|
|
3457
3468
|
paddingLeft: 0,
|
|
3458
3469
|
width: "100%",
|
|
3459
3470
|
boxSizing: "border-box"
|
|
3460
|
-
}, { jerseys:
|
|
3471
|
+
}, { jerseys: T } = xt({
|
|
3461
3472
|
events: c,
|
|
3462
|
-
visibleRange:
|
|
3473
|
+
visibleRange: h,
|
|
3463
3474
|
fetchJerseys: pt,
|
|
3464
3475
|
buffer: 2,
|
|
3465
3476
|
debounceMs: 250
|
|
3466
3477
|
}), w = c === null, B = xe("(max-width:950px)");
|
|
3467
|
-
return !w && c.length === 0 ? null : /* @__PURE__ */ t("section", { className: D, style: I, children: /* @__PURE__ */
|
|
3468
|
-
/* @__PURE__ */ t("div", { className: Ie.container, children: /* @__PURE__ */
|
|
3478
|
+
return !w && c.length === 0 ? null : /* @__PURE__ */ t("section", { className: D, style: I, children: /* @__PURE__ */ g("div", { className: `${Ie.wrapper} ${Ie.padding}`, children: [
|
|
3479
|
+
/* @__PURE__ */ t("div", { className: Ie.container, children: /* @__PURE__ */ g(H, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
3469
3480
|
/* @__PURE__ */ t(ge, { title: "Eventos de la semana" }),
|
|
3470
3481
|
/* @__PURE__ */ t("div", { className: Ie.buttonWrapper, children: /* @__PURE__ */ t(
|
|
3471
3482
|
X,
|
|
@@ -3474,7 +3485,7 @@ function Wn({
|
|
|
3474
3485
|
size: "lg",
|
|
3475
3486
|
fullWidth: !0,
|
|
3476
3487
|
onClick: () => {
|
|
3477
|
-
|
|
3488
|
+
y();
|
|
3478
3489
|
},
|
|
3479
3490
|
children: "Ver más"
|
|
3480
3491
|
}
|
|
@@ -3498,13 +3509,13 @@ function Wn({
|
|
|
3498
3509
|
padding: { left: "8px", right: "8px" }
|
|
3499
3510
|
}
|
|
3500
3511
|
},
|
|
3501
|
-
renderItem: (
|
|
3502
|
-
const
|
|
3503
|
-
return w ? /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(An, {}) }) : /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(
|
|
3512
|
+
renderItem: (k) => {
|
|
3513
|
+
const x = k.id, E = x in T ? T[x] : void 0;
|
|
3514
|
+
return w ? /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(An, {}) }) : /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(qn, { event: k, jersey: E }) });
|
|
3504
3515
|
},
|
|
3505
|
-
onMove: ({ isStart:
|
|
3506
|
-
l({ isStart:
|
|
3507
|
-
start:
|
|
3516
|
+
onMove: ({ isStart: k, isEnd: x, visibleStart: E, visibleEnd: L }) => {
|
|
3517
|
+
l({ isStart: k, isEnd: x }), O({
|
|
3518
|
+
start: E,
|
|
3508
3519
|
end: L
|
|
3509
3520
|
}), r({
|
|
3510
3521
|
element: "evento_semana_carousel_slide",
|
|
@@ -3514,10 +3525,10 @@ function Wn({
|
|
|
3514
3525
|
module_id: m,
|
|
3515
3526
|
metadata: {
|
|
3516
3527
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
3517
|
-
visibleStart:
|
|
3528
|
+
visibleStart: E,
|
|
3518
3529
|
visibleEnd: L,
|
|
3519
|
-
isStart:
|
|
3520
|
-
isEnd:
|
|
3530
|
+
isStart: k,
|
|
3531
|
+
isEnd: x
|
|
3521
3532
|
},
|
|
3522
3533
|
tags: { section: "OraculoSeccionEventoSemana" }
|
|
3523
3534
|
});
|
|
@@ -3526,15 +3537,15 @@ function Wn({
|
|
|
3526
3537
|
) })
|
|
3527
3538
|
] }) });
|
|
3528
3539
|
}
|
|
3529
|
-
function
|
|
3540
|
+
function jn({
|
|
3530
3541
|
backgrounds: e,
|
|
3531
3542
|
items: a,
|
|
3532
3543
|
hideItems: n
|
|
3533
3544
|
}) {
|
|
3534
|
-
var L,
|
|
3535
|
-
const [o, i] = K(0), r = ae(), s = ne(), m = se(), p = V(null), f = V(!1), d = V(!1), l = (e == null ? void 0 : e.length) || 1, c = !e || e.length === 0,
|
|
3545
|
+
var L, z, R;
|
|
3546
|
+
const [o, i] = K(0), r = ae(), s = ne(), m = se(), p = V(null), f = V(!1), d = V(!1), l = (e == null ? void 0 : e.length) || 1, c = !e || e.length === 0, b = !c && ((L = e == null ? void 0 : e.length) != null ? L : 0) > 1, h = !n && ((z = a == null ? void 0 : a.length) != null ? z : 0) > 0;
|
|
3536
3547
|
De("(max-width:950px)");
|
|
3537
|
-
const
|
|
3548
|
+
const O = "#B5B5B5", M = {
|
|
3538
3549
|
position: "absolute",
|
|
3539
3550
|
top: "50%",
|
|
3540
3551
|
transform: "translateY(-50%)",
|
|
@@ -3542,22 +3553,22 @@ function Gn({
|
|
|
3542
3553
|
width: 48,
|
|
3543
3554
|
height: 40,
|
|
3544
3555
|
borderRadius: "12px",
|
|
3545
|
-
border: `1.5px solid ${
|
|
3556
|
+
border: `1.5px solid ${O}`,
|
|
3546
3557
|
py: 1,
|
|
3547
3558
|
px: 1.5,
|
|
3548
|
-
color:
|
|
3559
|
+
color: O,
|
|
3549
3560
|
backgroundColor: "transparent",
|
|
3550
3561
|
"&:hover": {
|
|
3551
3562
|
backgroundColor: "rgba(181,181,181,0.08)"
|
|
3552
3563
|
},
|
|
3553
3564
|
"&.Mui-disabled": {
|
|
3554
3565
|
opacity: 0.35,
|
|
3555
|
-
borderColor:
|
|
3556
|
-
color:
|
|
3566
|
+
borderColor: O,
|
|
3567
|
+
color: O,
|
|
3557
3568
|
backgroundColor: "transparent",
|
|
3558
3569
|
cursor: "default"
|
|
3559
3570
|
}
|
|
3560
|
-
},
|
|
3571
|
+
}, y = re(
|
|
3561
3572
|
() => ({
|
|
3562
3573
|
type: "loop",
|
|
3563
3574
|
perMove: 1,
|
|
@@ -3569,96 +3580,96 @@ function Gn({
|
|
|
3569
3580
|
[]
|
|
3570
3581
|
);
|
|
3571
3582
|
Q(() => {
|
|
3572
|
-
const
|
|
3583
|
+
const _ = setTimeout(() => {
|
|
3573
3584
|
f.current = !0;
|
|
3574
3585
|
}, 500);
|
|
3575
|
-
return () => clearTimeout(
|
|
3586
|
+
return () => clearTimeout(_);
|
|
3576
3587
|
}, []);
|
|
3577
|
-
const
|
|
3588
|
+
const v = (_, P) => {
|
|
3578
3589
|
var W, G;
|
|
3579
|
-
const U = ((G = (W =
|
|
3590
|
+
const U = ((G = (W = _.href) == null ? void 0 : W.split("/").pop()) == null ? void 0 : G.split(".")[0]) || _.label || _.id || `banner_${P + 1}`;
|
|
3580
3591
|
r({
|
|
3581
3592
|
element: "banner_carousel",
|
|
3582
3593
|
label: `${s} - OraculoSeccionBanners - Banner click: ${U}`,
|
|
3583
|
-
target:
|
|
3594
|
+
target: _.href || "no_url",
|
|
3584
3595
|
event_type: "click",
|
|
3585
3596
|
module_id: m,
|
|
3586
3597
|
metadata: {
|
|
3587
3598
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
3588
|
-
banner_position:
|
|
3599
|
+
banner_position: P + 1,
|
|
3589
3600
|
banner_total: (e == null ? void 0 : e.length) || 0
|
|
3590
3601
|
},
|
|
3591
3602
|
tags: {
|
|
3592
3603
|
banner_type: "carousel",
|
|
3593
3604
|
banner_target: "_self",
|
|
3594
|
-
banner_url:
|
|
3605
|
+
banner_url: _.href || "no_url"
|
|
3595
3606
|
}
|
|
3596
3607
|
});
|
|
3597
|
-
},
|
|
3608
|
+
}, C = (_) => {
|
|
3598
3609
|
if (r({
|
|
3599
3610
|
element: "banner_menu_item",
|
|
3600
|
-
label: `${s} - OraculoSeccionBanners - Menu item click: ${
|
|
3601
|
-
target:
|
|
3611
|
+
label: `${s} - OraculoSeccionBanners - Menu item click: ${_.label || _.id}`,
|
|
3612
|
+
target: _.href || "action",
|
|
3602
3613
|
event_type: "click",
|
|
3603
3614
|
module_id: m,
|
|
3604
3615
|
metadata: {
|
|
3605
3616
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
3606
|
-
item_id:
|
|
3617
|
+
item_id: _.id
|
|
3607
3618
|
},
|
|
3608
3619
|
tags: {
|
|
3609
|
-
item_label:
|
|
3620
|
+
item_label: _.label || "no_label"
|
|
3610
3621
|
}
|
|
3611
|
-
}),
|
|
3612
|
-
|
|
3622
|
+
}), _.onClick) {
|
|
3623
|
+
_.onClick();
|
|
3613
3624
|
return;
|
|
3614
3625
|
}
|
|
3615
|
-
|
|
3616
|
-
}, D = 5e3, I = V(null),
|
|
3626
|
+
_.href && typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(_.href);
|
|
3627
|
+
}, D = 5e3, I = V(null), T = !c && ((R = e == null ? void 0 : e.length) != null ? R : 0) > 1, w = () => {
|
|
3617
3628
|
I.current != null && (window.clearTimeout(I.current), I.current = null);
|
|
3618
3629
|
}, B = () => {
|
|
3619
|
-
w(),
|
|
3620
|
-
var
|
|
3621
|
-
d.current = !0, (
|
|
3630
|
+
w(), T && (I.current = window.setTimeout(() => {
|
|
3631
|
+
var _;
|
|
3632
|
+
d.current = !0, (_ = p.current) == null || _.next();
|
|
3622
3633
|
}, D));
|
|
3623
3634
|
};
|
|
3624
|
-
Q(() => (B(), () => w()), [
|
|
3625
|
-
const
|
|
3626
|
-
var
|
|
3627
|
-
|
|
3628
|
-
},
|
|
3629
|
-
var
|
|
3630
|
-
|
|
3631
|
-
},
|
|
3635
|
+
Q(() => (B(), () => w()), [T, D]);
|
|
3636
|
+
const k = (_) => {
|
|
3637
|
+
var P;
|
|
3638
|
+
_.preventDefault(), _.stopPropagation(), w(), (P = p.current) == null || P.prev();
|
|
3639
|
+
}, x = (_) => {
|
|
3640
|
+
var P;
|
|
3641
|
+
_.preventDefault(), _.stopPropagation(), w(), (P = p.current) == null || P.next();
|
|
3642
|
+
}, E = (_) => {
|
|
3632
3643
|
var W, G, J, ee;
|
|
3633
|
-
const
|
|
3644
|
+
const P = (_ % l + l) % l;
|
|
3634
3645
|
if (!f.current) return;
|
|
3635
|
-
const U = (W = e == null ? void 0 : e[
|
|
3646
|
+
const U = (W = e == null ? void 0 : e[P]) != null && W.href ? ((J = (G = e[P].href) == null ? void 0 : G.split("/").pop()) == null ? void 0 : J.split(".")[0]) || `banner_${P + 1}` : `banner_${P + 1}`;
|
|
3636
3647
|
r({
|
|
3637
3648
|
element: "banner_carousel",
|
|
3638
|
-
label: `${s} - OraculoSeccionBanners - Banner view: Slide ${
|
|
3639
|
-
target: ((ee = e == null ? void 0 : e[
|
|
3649
|
+
label: `${s} - OraculoSeccionBanners - Banner view: Slide ${P + 1} - ${U}`,
|
|
3650
|
+
target: ((ee = e == null ? void 0 : e[P]) == null ? void 0 : ee.href) || "no_url",
|
|
3640
3651
|
event_type: "view",
|
|
3641
3652
|
module_id: m,
|
|
3642
3653
|
metadata: {
|
|
3643
3654
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
3644
|
-
slide_index:
|
|
3655
|
+
slide_index: P + 1,
|
|
3645
3656
|
total_slides: l,
|
|
3646
3657
|
interaction_type: "manual_slide"
|
|
3647
3658
|
},
|
|
3648
|
-
tags: { banner_position: String(
|
|
3659
|
+
tags: { banner_position: String(P + 1) }
|
|
3649
3660
|
});
|
|
3650
3661
|
};
|
|
3651
|
-
return /* @__PURE__ */
|
|
3662
|
+
return /* @__PURE__ */ g(
|
|
3652
3663
|
Y,
|
|
3653
3664
|
{
|
|
3654
3665
|
component: "section",
|
|
3655
3666
|
sx: {
|
|
3656
3667
|
position: "relative",
|
|
3657
3668
|
overflow: "visible",
|
|
3658
|
-
pb:
|
|
3669
|
+
pb: h ? { xs: "40px", sm: 0 } : 0
|
|
3659
3670
|
},
|
|
3660
3671
|
children: [
|
|
3661
|
-
/* @__PURE__ */
|
|
3672
|
+
/* @__PURE__ */ g(
|
|
3662
3673
|
Y,
|
|
3663
3674
|
{
|
|
3664
3675
|
sx: {
|
|
@@ -3690,23 +3701,23 @@ function Gn({
|
|
|
3690
3701
|
perPage: 1,
|
|
3691
3702
|
gap: "0px",
|
|
3692
3703
|
enableHorizontalWheel: !0,
|
|
3693
|
-
options:
|
|
3694
|
-
onMove: ({ index:
|
|
3695
|
-
const
|
|
3696
|
-
i(
|
|
3704
|
+
options: y,
|
|
3705
|
+
onMove: ({ index: _ }) => {
|
|
3706
|
+
const P = (_ % l + l) % l;
|
|
3707
|
+
i(P);
|
|
3697
3708
|
const U = d.current;
|
|
3698
|
-
d.current = !1, B(), U ||
|
|
3709
|
+
d.current = !1, B(), U || E(_);
|
|
3699
3710
|
},
|
|
3700
|
-
renderItem: (
|
|
3711
|
+
renderItem: (_, P) => {
|
|
3701
3712
|
var U, W, G;
|
|
3702
|
-
return /* @__PURE__ */
|
|
3713
|
+
return /* @__PURE__ */ g(
|
|
3703
3714
|
Y,
|
|
3704
3715
|
{
|
|
3705
3716
|
component: "a",
|
|
3706
|
-
href:
|
|
3707
|
-
target: (U =
|
|
3708
|
-
rel:
|
|
3709
|
-
onClick: () =>
|
|
3717
|
+
href: _.href,
|
|
3718
|
+
target: (U = _.target) != null ? U : "_self",
|
|
3719
|
+
rel: _.target === "_blank" ? "noopener noreferrer" : void 0,
|
|
3720
|
+
onClick: () => v(_, P),
|
|
3710
3721
|
sx: {
|
|
3711
3722
|
position: "relative",
|
|
3712
3723
|
width: "100%",
|
|
@@ -3716,14 +3727,14 @@ function Gn({
|
|
|
3716
3727
|
cursor: "pointer"
|
|
3717
3728
|
},
|
|
3718
3729
|
children: [
|
|
3719
|
-
/* @__PURE__ */
|
|
3720
|
-
/* @__PURE__ */ t("source", { srcSet:
|
|
3721
|
-
/* @__PURE__ */ t("source", { srcSet:
|
|
3730
|
+
/* @__PURE__ */ g(Y, { component: "picture", sx: { position: "absolute", inset: 0, lineHeight: 0 }, children: [
|
|
3731
|
+
/* @__PURE__ */ t("source", { srcSet: _.desktopSrc, media: "(min-width:950px)" }),
|
|
3732
|
+
/* @__PURE__ */ t("source", { srcSet: _.mobileSrc, media: "(max-width:949px)" }),
|
|
3722
3733
|
/* @__PURE__ */ t(
|
|
3723
3734
|
Y,
|
|
3724
3735
|
{
|
|
3725
3736
|
component: "img",
|
|
3726
|
-
src: (G = (W =
|
|
3737
|
+
src: (G = (W = _.fallbackSrc) != null ? W : _.desktopSrc) != null ? G : "",
|
|
3727
3738
|
alt: "",
|
|
3728
3739
|
"aria-hidden": !0,
|
|
3729
3740
|
loading: "lazy",
|
|
@@ -3763,33 +3774,33 @@ function Gn({
|
|
|
3763
3774
|
)
|
|
3764
3775
|
}
|
|
3765
3776
|
),
|
|
3766
|
-
|
|
3777
|
+
b && /* @__PURE__ */ g(me, { children: [
|
|
3767
3778
|
/* @__PURE__ */ t(
|
|
3768
3779
|
He,
|
|
3769
3780
|
{
|
|
3770
3781
|
"aria-label": "Anterior",
|
|
3771
|
-
onClick:
|
|
3782
|
+
onClick: k,
|
|
3772
3783
|
sx: {
|
|
3773
3784
|
...M,
|
|
3774
3785
|
left: "120px",
|
|
3775
3786
|
"@media (max-width:1024px)": { left: 24 },
|
|
3776
3787
|
"@media (max-width:786px)": { display: "none" }
|
|
3777
3788
|
},
|
|
3778
|
-
children: /* @__PURE__ */ t(
|
|
3789
|
+
children: /* @__PURE__ */ t(ze, {})
|
|
3779
3790
|
}
|
|
3780
3791
|
),
|
|
3781
3792
|
/* @__PURE__ */ t(
|
|
3782
3793
|
He,
|
|
3783
3794
|
{
|
|
3784
3795
|
"aria-label": "Siguiente",
|
|
3785
|
-
onClick:
|
|
3796
|
+
onClick: x,
|
|
3786
3797
|
sx: {
|
|
3787
3798
|
...M,
|
|
3788
3799
|
right: "120px",
|
|
3789
3800
|
"@media (max-width:1024px)": { right: 24 },
|
|
3790
3801
|
"@media (max-width:786px)": { display: "none" }
|
|
3791
3802
|
},
|
|
3792
|
-
children: /* @__PURE__ */ t(
|
|
3803
|
+
children: /* @__PURE__ */ t(Ae, {})
|
|
3793
3804
|
}
|
|
3794
3805
|
)
|
|
3795
3806
|
] }),
|
|
@@ -3819,7 +3830,7 @@ function Gn({
|
|
|
3819
3830
|
]
|
|
3820
3831
|
}
|
|
3821
3832
|
),
|
|
3822
|
-
|
|
3833
|
+
h && /* @__PURE__ */ t(
|
|
3823
3834
|
Y,
|
|
3824
3835
|
{
|
|
3825
3836
|
sx: {
|
|
@@ -3837,7 +3848,7 @@ function Gn({
|
|
|
3837
3848
|
boxShadow: "0 10px 24px rgba(0,0,0,.35)",
|
|
3838
3849
|
zIndex: 3
|
|
3839
3850
|
},
|
|
3840
|
-
children: a == null ? void 0 : a.map((
|
|
3851
|
+
children: a == null ? void 0 : a.map((_) => /* @__PURE__ */ g(
|
|
3841
3852
|
Y,
|
|
3842
3853
|
{
|
|
3843
3854
|
sx: {
|
|
@@ -3849,7 +3860,7 @@ function Gn({
|
|
|
3849
3860
|
gap: { xs: 0.5, md: 1 },
|
|
3850
3861
|
color: "#FFFFFF",
|
|
3851
3862
|
minWidth: 0,
|
|
3852
|
-
cursor:
|
|
3863
|
+
cursor: _.onClick || _.href ? "pointer" : "default",
|
|
3853
3864
|
whiteSpace: "nowrap",
|
|
3854
3865
|
"&::after": {
|
|
3855
3866
|
content: '""',
|
|
@@ -3873,7 +3884,7 @@ function Gn({
|
|
|
3873
3884
|
opacity: 1,
|
|
3874
3885
|
transform: "scaleX(1)"
|
|
3875
3886
|
},
|
|
3876
|
-
...
|
|
3887
|
+
..._.iconHover && {
|
|
3877
3888
|
"&:hover .menu-icon-default": {
|
|
3878
3889
|
display: "none"
|
|
3879
3890
|
},
|
|
@@ -3882,9 +3893,9 @@ function Gn({
|
|
|
3882
3893
|
}
|
|
3883
3894
|
}
|
|
3884
3895
|
},
|
|
3885
|
-
onClick: () =>
|
|
3896
|
+
onClick: () => C(_),
|
|
3886
3897
|
children: [
|
|
3887
|
-
|
|
3898
|
+
_.icon && /* @__PURE__ */ g(
|
|
3888
3899
|
Y,
|
|
3889
3900
|
{
|
|
3890
3901
|
sx: {
|
|
@@ -3898,8 +3909,8 @@ function Gn({
|
|
|
3898
3909
|
Y,
|
|
3899
3910
|
{
|
|
3900
3911
|
component: "img",
|
|
3901
|
-
src:
|
|
3902
|
-
alt:
|
|
3912
|
+
src: _.icon,
|
|
3913
|
+
alt: _.label || `icon-${_.id}`,
|
|
3903
3914
|
className: "menu-icon-default",
|
|
3904
3915
|
sx: {
|
|
3905
3916
|
display: "block",
|
|
@@ -3911,12 +3922,12 @@ function Gn({
|
|
|
3911
3922
|
}
|
|
3912
3923
|
}
|
|
3913
3924
|
),
|
|
3914
|
-
|
|
3925
|
+
_.iconHover && /* @__PURE__ */ t(
|
|
3915
3926
|
Y,
|
|
3916
3927
|
{
|
|
3917
3928
|
component: "img",
|
|
3918
|
-
src:
|
|
3919
|
-
alt:
|
|
3929
|
+
src: _.iconHover,
|
|
3930
|
+
alt: _.label || `icon-hover-${_.id}`,
|
|
3920
3931
|
className: "menu-icon-hover",
|
|
3921
3932
|
sx: {
|
|
3922
3933
|
display: "none",
|
|
@@ -3941,12 +3952,12 @@ function Gn({
|
|
|
3941
3952
|
color: "#E0E0E0",
|
|
3942
3953
|
textAlign: "center"
|
|
3943
3954
|
},
|
|
3944
|
-
children:
|
|
3955
|
+
children: _.label
|
|
3945
3956
|
}
|
|
3946
3957
|
)
|
|
3947
3958
|
]
|
|
3948
3959
|
},
|
|
3949
|
-
|
|
3960
|
+
_.id
|
|
3950
3961
|
))
|
|
3951
3962
|
}
|
|
3952
3963
|
)
|
|
@@ -3954,7 +3965,7 @@ function Gn({
|
|
|
3954
3965
|
}
|
|
3955
3966
|
);
|
|
3956
3967
|
}
|
|
3957
|
-
const
|
|
3968
|
+
const Hn = [
|
|
3958
3969
|
{ src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/IBK.svg", alt: "Interbank" },
|
|
3959
3970
|
{ src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/Yape.svg", alt: "Yape" },
|
|
3960
3971
|
{ src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/BCP.png", alt: "BCP" },
|
|
@@ -3963,12 +3974,12 @@ const jn = [
|
|
|
3963
3974
|
{ src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/monnet.svg", alt: "Monnet" },
|
|
3964
3975
|
{ src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/niubiz.svg", alt: "Niubiz" }
|
|
3965
3976
|
];
|
|
3966
|
-
function
|
|
3977
|
+
function Kn({
|
|
3967
3978
|
title: e = "Medios de pago",
|
|
3968
|
-
items: a =
|
|
3979
|
+
items: a = Hn
|
|
3969
3980
|
}) {
|
|
3970
3981
|
const n = Math.ceil(a.length / 2), o = a.slice(0, n), i = a.slice(n);
|
|
3971
|
-
return /* @__PURE__ */
|
|
3982
|
+
return /* @__PURE__ */ g(Y, { component: "section", "aria-labelledby": "mp-title", sx: { color: "#fff" }, children: [
|
|
3972
3983
|
/* @__PURE__ */ t(
|
|
3973
3984
|
it,
|
|
3974
3985
|
{
|
|
@@ -3997,7 +4008,7 @@ function Hn({
|
|
|
3997
4008
|
}
|
|
3998
4009
|
}
|
|
3999
4010
|
),
|
|
4000
|
-
/* @__PURE__ */
|
|
4011
|
+
/* @__PURE__ */ g(Oe, { spacing: { xs: 2, md: 3 }, alignItems: "center", children: [
|
|
4001
4012
|
/* @__PURE__ */ t(
|
|
4002
4013
|
Oe,
|
|
4003
4014
|
{
|
|
@@ -4023,11 +4034,11 @@ function Hn({
|
|
|
4023
4034
|
] })
|
|
4024
4035
|
] });
|
|
4025
4036
|
}
|
|
4026
|
-
function
|
|
4037
|
+
function wt({
|
|
4027
4038
|
children: e
|
|
4028
4039
|
}) {
|
|
4029
|
-
const a =
|
|
4030
|
-
() =>
|
|
4040
|
+
const a = Bt(), n = fe.useMemo(
|
|
4041
|
+
() => zt(a, {
|
|
4031
4042
|
typography: { fontFamily: "var(--orc-font)" },
|
|
4032
4043
|
components: {
|
|
4033
4044
|
MuiTypography: {
|
|
@@ -4039,31 +4050,31 @@ function xt({
|
|
|
4039
4050
|
}),
|
|
4040
4051
|
[a]
|
|
4041
4052
|
);
|
|
4042
|
-
return /* @__PURE__ */
|
|
4043
|
-
/* @__PURE__ */ t(
|
|
4053
|
+
return /* @__PURE__ */ g(At, { theme: n, children: [
|
|
4054
|
+
/* @__PURE__ */ t(Rt, {}),
|
|
4044
4055
|
e
|
|
4045
4056
|
] });
|
|
4046
4057
|
}
|
|
4047
|
-
function
|
|
4058
|
+
function vo({
|
|
4048
4059
|
docId: e = "Landing: home",
|
|
4049
4060
|
moduleId: a = 301,
|
|
4050
4061
|
children: n
|
|
4051
4062
|
}) {
|
|
4052
|
-
return /* @__PURE__ */ t(
|
|
4063
|
+
return /* @__PURE__ */ t(wt, { children: /* @__PURE__ */ t(gt, { docId: e, moduleId: a, children: n }) });
|
|
4053
4064
|
}
|
|
4054
|
-
const
|
|
4055
|
-
OraculoSeccionDestacados:
|
|
4056
|
-
OraculoSeccionTopJuegos:
|
|
4057
|
-
OraculoSeccionCasinoEnVivo:
|
|
4058
|
-
OraculoSeccionCasino:
|
|
4059
|
-
OraculoSeccionVirtuales:
|
|
4060
|
-
OraculoSeccionClubOlimpo:
|
|
4061
|
-
OraculoSeccionBonoBienvenida:
|
|
4062
|
-
OraculoSeccionBanners:
|
|
4063
|
-
OraculoSeccionMediosPago:
|
|
4064
|
-
OraculoSeccionEventoEnVivo:
|
|
4065
|
-
OraculoSeccionEventoSemana:
|
|
4066
|
-
OraculoSeccionEventoCombinadas:
|
|
4065
|
+
const Zn = {
|
|
4066
|
+
OraculoSeccionDestacados: Ka,
|
|
4067
|
+
OraculoSeccionTopJuegos: Ja,
|
|
4068
|
+
OraculoSeccionCasinoEnVivo: cn,
|
|
4069
|
+
OraculoSeccionCasino: mn,
|
|
4070
|
+
OraculoSeccionVirtuales: hn,
|
|
4071
|
+
OraculoSeccionClubOlimpo: _n,
|
|
4072
|
+
OraculoSeccionBonoBienvenida: vn,
|
|
4073
|
+
OraculoSeccionBanners: jn,
|
|
4074
|
+
OraculoSeccionMediosPago: Kn,
|
|
4075
|
+
OraculoSeccionEventoEnVivo: zn,
|
|
4076
|
+
OraculoSeccionEventoSemana: Gn,
|
|
4077
|
+
OraculoSeccionEventoCombinadas: On
|
|
4067
4078
|
}, qe = {
|
|
4068
4079
|
sections: [
|
|
4069
4080
|
{
|
|
@@ -5248,7 +5259,7 @@ const Kn = {
|
|
|
5248
5259
|
componentKey: "OraculoSeccionMediosPago"
|
|
5249
5260
|
}
|
|
5250
5261
|
]
|
|
5251
|
-
},
|
|
5262
|
+
}, Xn = (e) => typeof e == "function" || e && typeof e == "object" && "$$typeof" in e, Jn = (e) => /^OraculoSeccion[A-Z]/.test(e);
|
|
5252
5263
|
function Ce(e) {
|
|
5253
5264
|
return e && Array.isArray(e.sections) ? e.sections.slice().sort((a, n) => {
|
|
5254
5265
|
var o, i;
|
|
@@ -5274,11 +5285,11 @@ function Ce(e) {
|
|
|
5274
5285
|
};
|
|
5275
5286
|
}) : [];
|
|
5276
5287
|
}
|
|
5277
|
-
const
|
|
5278
|
-
Object.entries(
|
|
5279
|
-
([e, a]) =>
|
|
5288
|
+
const Yn = Object.fromEntries(
|
|
5289
|
+
Object.entries(Zn).filter(
|
|
5290
|
+
([e, a]) => Jn(e) && Xn(a)
|
|
5280
5291
|
)
|
|
5281
|
-
),
|
|
5292
|
+
), Qn = (e) => {
|
|
5282
5293
|
try {
|
|
5283
5294
|
return Object.fromEntries(e != null ? e : []);
|
|
5284
5295
|
} catch {
|
|
@@ -5290,7 +5301,7 @@ class at extends Error {
|
|
|
5290
5301
|
super(`HTTP ${a} ${o}`), this.status = a, this.url = n, this.statusText = o, this.name = "HttpError";
|
|
5291
5302
|
}
|
|
5292
5303
|
}
|
|
5293
|
-
class
|
|
5304
|
+
class eo extends fe.Component {
|
|
5294
5305
|
constructor(a) {
|
|
5295
5306
|
super(a), this.state = { hasError: !1 };
|
|
5296
5307
|
}
|
|
@@ -5314,7 +5325,7 @@ const nt = [
|
|
|
5314
5325
|
"OraculoSeccionEventoEnVivo",
|
|
5315
5326
|
"OraculoSeccionEventoSemana",
|
|
5316
5327
|
"OraculoSeccionEventoCombinadas"
|
|
5317
|
-
],
|
|
5328
|
+
], _o = ({
|
|
5318
5329
|
sectionsOverride: e,
|
|
5319
5330
|
docId: a = "Landing: home",
|
|
5320
5331
|
moduleId: n = 301,
|
|
@@ -5323,33 +5334,33 @@ const nt = [
|
|
|
5323
5334
|
loader: r,
|
|
5324
5335
|
disableWrapper: s = !1
|
|
5325
5336
|
}) => {
|
|
5326
|
-
const m = re(() =>
|
|
5337
|
+
const m = re(() => Qn(i), [i]), p = r || m.loader, [f, d] = K([]), [l, c] = K(!1), [b, h] = K({}), [O, M] = K({}), [y, v] = K({}), C = De("(min-width:1024px)"), D = re(
|
|
5327
5338
|
() => Ce(qe),
|
|
5328
5339
|
[]
|
|
5329
5340
|
), I = (u) => D.find(
|
|
5330
5341
|
(S) => S.id === u.id || S.componentKey === u.componentKey
|
|
5331
|
-
),
|
|
5342
|
+
), T = (u) => Array.isArray(u) ? u.map((S) => Number(S)).filter((S) => !Number.isNaN(S)) : [], w = re(() => {
|
|
5332
5343
|
const u = m.user;
|
|
5333
|
-
return
|
|
5344
|
+
return T(u == null ? void 0 : u.groups);
|
|
5334
5345
|
}, [m]), B = (u) => {
|
|
5335
5346
|
const S = u.manualScalarFields;
|
|
5336
5347
|
if (!Array.isArray(S)) return [];
|
|
5337
|
-
const
|
|
5338
|
-
(
|
|
5348
|
+
const $ = S.find(
|
|
5349
|
+
(F) => String((F == null ? void 0 : F.name) || "").trim().toLowerCase() === "groups"
|
|
5339
5350
|
);
|
|
5340
|
-
if (
|
|
5341
|
-
const N =
|
|
5351
|
+
if (!$) return [];
|
|
5352
|
+
const N = $.value;
|
|
5342
5353
|
if (N == null) return [];
|
|
5343
5354
|
if (Array.isArray(N))
|
|
5344
|
-
return N.map((
|
|
5345
|
-
const
|
|
5346
|
-
return
|
|
5347
|
-
},
|
|
5348
|
-
const
|
|
5349
|
-
if (
|
|
5355
|
+
return N.map((F) => Number(String(F).trim())).filter((F) => !Number.isNaN(F));
|
|
5356
|
+
const A = String(N).trim();
|
|
5357
|
+
return A ? A.split(",").map((F) => Number(F.trim())).filter((F) => !Number.isNaN(F)) : [];
|
|
5358
|
+
}, k = (u, S) => {
|
|
5359
|
+
const $ = B(u);
|
|
5360
|
+
if ($.length === 0) return !0;
|
|
5350
5361
|
if (!Array.isArray(S) || S.length === 0) return !1;
|
|
5351
5362
|
const N = new Set(S);
|
|
5352
|
-
return
|
|
5363
|
+
return $.some((A) => N.has(A));
|
|
5353
5364
|
};
|
|
5354
5365
|
Q(() => {
|
|
5355
5366
|
if (e) return;
|
|
@@ -5357,43 +5368,43 @@ const nt = [
|
|
|
5357
5368
|
console.warn("[landing] sin db -> fallback json"), d(Ce(qe));
|
|
5358
5369
|
return;
|
|
5359
5370
|
}
|
|
5360
|
-
const u = (
|
|
5361
|
-
console.warn("[landing] FALLBACK:",
|
|
5371
|
+
const u = ($, N) => {
|
|
5372
|
+
console.warn("[landing] FALLBACK:", $, N != null ? N : ""), d(Ce(qe)), c(!1);
|
|
5362
5373
|
};
|
|
5363
5374
|
if (process.env.NEXT_PUBLIC_LANDING_FORCE_FALLBACK === "1") {
|
|
5364
5375
|
c(!0), u("forzado por env");
|
|
5365
5376
|
return;
|
|
5366
5377
|
}
|
|
5367
5378
|
c(!0);
|
|
5368
|
-
const S =
|
|
5369
|
-
|
|
5370
|
-
(
|
|
5379
|
+
const S = Lt(
|
|
5380
|
+
Pt(o, "landings", a),
|
|
5381
|
+
($) => {
|
|
5371
5382
|
try {
|
|
5372
|
-
if (
|
|
5383
|
+
if (!$.exists()) {
|
|
5373
5384
|
u(`doc landings/${a} no existe`);
|
|
5374
5385
|
return;
|
|
5375
5386
|
}
|
|
5376
|
-
const N =
|
|
5377
|
-
if (!
|
|
5387
|
+
const N = $.data(), A = Ce(N);
|
|
5388
|
+
if (!A.length) {
|
|
5378
5389
|
u("JSON inválido o sin secciones normalizables", N);
|
|
5379
5390
|
return;
|
|
5380
5391
|
}
|
|
5381
|
-
console.log("[landing] Firestore OK (json grande):", N), d(
|
|
5392
|
+
console.log("[landing] Firestore OK (json grande):", N), d(A);
|
|
5382
5393
|
} catch (N) {
|
|
5383
5394
|
u("error procesando snapshot", N);
|
|
5384
5395
|
} finally {
|
|
5385
5396
|
c(!1);
|
|
5386
5397
|
}
|
|
5387
5398
|
},
|
|
5388
|
-
(
|
|
5389
|
-
u("error onSnapshot",
|
|
5399
|
+
($) => {
|
|
5400
|
+
u("error onSnapshot", $);
|
|
5390
5401
|
}
|
|
5391
5402
|
);
|
|
5392
5403
|
return () => S();
|
|
5393
|
-
}, [e, a, o]), Q(() => (
|
|
5394
|
-
(e ? e.slice() : f.slice()).map((
|
|
5404
|
+
}, [e, a, o]), Q(() => (Za(m), () => Xa()), [m]), Q(() => {
|
|
5405
|
+
(e ? e.slice() : f.slice()).map(($) => $.componentKey).filter(($) => !!$).length;
|
|
5395
5406
|
}, [e, f]);
|
|
5396
|
-
const
|
|
5407
|
+
const x = async (u) => {
|
|
5397
5408
|
if (nt.includes(u.componentKey))
|
|
5398
5409
|
return {
|
|
5399
5410
|
items: [],
|
|
@@ -5402,132 +5413,132 @@ const nt = [
|
|
|
5402
5413
|
};
|
|
5403
5414
|
const S = (u.apiUrl || "").trim();
|
|
5404
5415
|
if (!S) return;
|
|
5405
|
-
const
|
|
5406
|
-
let
|
|
5407
|
-
if (
|
|
5416
|
+
const $ = u.apiMethod || "GET", N = u.apiParams || [];
|
|
5417
|
+
let A = S, F, Z;
|
|
5418
|
+
if ($ === "GET") {
|
|
5408
5419
|
const ie = new URL(
|
|
5409
5420
|
S,
|
|
5410
5421
|
typeof window == "undefined" ? "http://localhost" : window.location.origin
|
|
5411
5422
|
);
|
|
5412
5423
|
for (const oe of N)
|
|
5413
5424
|
oe.key && ie.searchParams.append(oe.key, oe.value);
|
|
5414
|
-
|
|
5425
|
+
A = ie.toString();
|
|
5415
5426
|
} else {
|
|
5416
5427
|
const ie = new URLSearchParams();
|
|
5417
5428
|
for (const oe of N)
|
|
5418
5429
|
oe.key && ie.append(oe.key, oe.value);
|
|
5419
|
-
|
|
5430
|
+
F = ie.toString(), Z = {
|
|
5420
5431
|
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
|
|
5421
5432
|
};
|
|
5422
5433
|
}
|
|
5423
|
-
const te = await fetch(
|
|
5424
|
-
method:
|
|
5434
|
+
const te = await fetch(A, {
|
|
5435
|
+
method: $,
|
|
5425
5436
|
headers: Z,
|
|
5426
|
-
body:
|
|
5437
|
+
body: F
|
|
5427
5438
|
});
|
|
5428
|
-
if (!te.ok) throw new at(te.status,
|
|
5439
|
+
if (!te.ok) throw new at(te.status, A, te.statusText);
|
|
5429
5440
|
return te.json();
|
|
5430
|
-
},
|
|
5441
|
+
}, E = re(
|
|
5431
5442
|
() => e ? e.slice() : f.slice(),
|
|
5432
5443
|
[e, f]
|
|
5433
5444
|
), L = fe.useRef(/* @__PURE__ */ new Set());
|
|
5434
5445
|
Q(() => {
|
|
5435
|
-
const u =
|
|
5446
|
+
const u = E.map((S) => ({ s: S, url: (S.apiUrl || "").trim() })).filter(({ url: S }) => !!S);
|
|
5436
5447
|
if (u.length)
|
|
5437
|
-
for (const { s: S, url:
|
|
5438
|
-
const N = `${S.id}|${
|
|
5439
|
-
L.current.has(N) || (L.current.add(N), M((
|
|
5448
|
+
for (const { s: S, url: $ } of u) {
|
|
5449
|
+
const N = `${S.id}|${$}`;
|
|
5450
|
+
L.current.has(N) || (L.current.add(N), M((A) => ({ ...A, [S.id]: !0 })), v((A) => ({ ...A, [S.id]: "" })), (async () => {
|
|
5440
5451
|
try {
|
|
5441
|
-
const
|
|
5442
|
-
|
|
5443
|
-
} catch (
|
|
5444
|
-
let
|
|
5445
|
-
|
|
5452
|
+
const A = await x(S);
|
|
5453
|
+
h((F) => ({ ...F, [S.id]: A }));
|
|
5454
|
+
} catch (A) {
|
|
5455
|
+
let F = "Error desconocido";
|
|
5456
|
+
A instanceof at ? F = `Error HTTP ${A.status} (${A.statusText}) en ${A.url}` : A instanceof SyntaxError ? F = "Respuesta no es JSON válido" : A instanceof TypeError ? F = "Fallo de red / CORS / conexión" : typeof A == "string" && (F = A.toString()), v((Z) => ({ ...Z, [S.id]: F }));
|
|
5446
5457
|
} finally {
|
|
5447
|
-
M((
|
|
5458
|
+
M((A) => ({ ...A, [S.id]: !1 }));
|
|
5448
5459
|
}
|
|
5449
5460
|
})());
|
|
5450
5461
|
}
|
|
5451
|
-
}, [
|
|
5452
|
-
const
|
|
5453
|
-
() =>
|
|
5454
|
-
[
|
|
5462
|
+
}, [E]);
|
|
5463
|
+
const z = re(
|
|
5464
|
+
() => E.filter((u) => u.visible).filter((u) => k(u, w)).sort((u, S) => u.order - S.order),
|
|
5465
|
+
[E, w]
|
|
5455
5466
|
), R = (u) => Array.isArray(u) ? u.map((S) => {
|
|
5456
|
-
const
|
|
5467
|
+
const $ = {};
|
|
5457
5468
|
for (const N of S.fields || []) {
|
|
5458
|
-
const
|
|
5459
|
-
if (
|
|
5460
|
-
const
|
|
5461
|
-
if (
|
|
5462
|
-
const Z = Number(
|
|
5463
|
-
Number.isNaN(Z) || (
|
|
5469
|
+
const A = (N.type || "string").toLowerCase();
|
|
5470
|
+
if (A === "number") {
|
|
5471
|
+
const F = String(N.value || "").trim();
|
|
5472
|
+
if (F !== "") {
|
|
5473
|
+
const Z = Number(F);
|
|
5474
|
+
Number.isNaN(Z) || ($[N.name] = Z);
|
|
5464
5475
|
}
|
|
5465
|
-
} else if (
|
|
5466
|
-
|
|
5467
|
-
else if (
|
|
5468
|
-
const
|
|
5469
|
-
if (
|
|
5476
|
+
} else if (A === "boolean")
|
|
5477
|
+
$[N.name] = String(N.value).toLowerCase() === "true";
|
|
5478
|
+
else if (A === "function") {
|
|
5479
|
+
const F = String(N.value || "").trim();
|
|
5480
|
+
if (F)
|
|
5470
5481
|
try {
|
|
5471
|
-
const Z = new Function(
|
|
5472
|
-
|
|
5482
|
+
const Z = new Function(F);
|
|
5483
|
+
$[N.name] = Z;
|
|
5473
5484
|
} catch (Z) {
|
|
5474
5485
|
console.error(`❌ Error creando función en item '${N.name}':`, Z);
|
|
5475
5486
|
}
|
|
5476
5487
|
} else
|
|
5477
|
-
|
|
5488
|
+
$[N.name] = N.value;
|
|
5478
5489
|
}
|
|
5479
|
-
return
|
|
5480
|
-
}) : [],
|
|
5490
|
+
return $;
|
|
5491
|
+
}) : [], _ = (u) => {
|
|
5481
5492
|
const S = {};
|
|
5482
5493
|
if (!Array.isArray(u)) return S;
|
|
5483
|
-
for (const
|
|
5484
|
-
if (
|
|
5485
|
-
const N = (
|
|
5494
|
+
for (const $ of u) {
|
|
5495
|
+
if (!$.name) continue;
|
|
5496
|
+
const N = ($.type || "string").toLowerCase();
|
|
5486
5497
|
if (N === "number") {
|
|
5487
|
-
const
|
|
5488
|
-
if (
|
|
5489
|
-
const
|
|
5490
|
-
Number.isNaN(
|
|
5498
|
+
const A = String($.value || "").trim();
|
|
5499
|
+
if (A !== "") {
|
|
5500
|
+
const F = Number(A);
|
|
5501
|
+
Number.isNaN(F) || (S[$.name] = F);
|
|
5491
5502
|
}
|
|
5492
5503
|
} else if (N === "boolean")
|
|
5493
|
-
S[
|
|
5504
|
+
S[$.name] = String($.value).toLowerCase() === "true";
|
|
5494
5505
|
else if (N === "function") {
|
|
5495
|
-
const
|
|
5496
|
-
if (
|
|
5506
|
+
const A = String($.value || "").trim();
|
|
5507
|
+
if (A)
|
|
5497
5508
|
try {
|
|
5498
|
-
const
|
|
5499
|
-
S[
|
|
5500
|
-
} catch (
|
|
5501
|
-
console.error(`❌ Error creando función en item '${
|
|
5509
|
+
const F = new Function(A);
|
|
5510
|
+
S[$.name] = F;
|
|
5511
|
+
} catch (F) {
|
|
5512
|
+
console.error(`❌ Error creando función en item '${$.name}':`, F);
|
|
5502
5513
|
}
|
|
5503
5514
|
} else
|
|
5504
|
-
S[
|
|
5515
|
+
S[$.name] = $.value;
|
|
5505
5516
|
}
|
|
5506
5517
|
return S;
|
|
5507
|
-
},
|
|
5508
|
-
const
|
|
5518
|
+
}, P = (u, S, $, N) => {
|
|
5519
|
+
const A = $ ? { ...$ } : {}, F = (N || "items").trim() || "items";
|
|
5509
5520
|
if (S)
|
|
5510
|
-
return
|
|
5521
|
+
return A[F] = S.arr || [], A;
|
|
5511
5522
|
const Z = u;
|
|
5512
5523
|
if (Array.isArray(Z))
|
|
5513
|
-
return
|
|
5524
|
+
return A[F] = Z, A;
|
|
5514
5525
|
if (Z && typeof Z == "object") {
|
|
5515
5526
|
const te = Z;
|
|
5516
|
-
return Array.isArray(te.lobby) ? (
|
|
5527
|
+
return Array.isArray(te.lobby) ? (A[F] = te.lobby, A) : Array.isArray(te.items) ? (A[F] = te.items, A) : (A[F] = Z, A);
|
|
5517
5528
|
}
|
|
5518
|
-
return
|
|
5529
|
+
return A[F] = [], A;
|
|
5519
5530
|
}, U = (u) => {
|
|
5520
|
-
var
|
|
5521
|
-
const S = !!((
|
|
5531
|
+
var F;
|
|
5532
|
+
const S = !!((F = u.apiUrl) != null && F.trim()), $ = S ? b[u.id] : void 0;
|
|
5522
5533
|
let N = u.props ? { ...u.props } : {};
|
|
5523
|
-
const
|
|
5534
|
+
const A = _(u.manualScalarFields);
|
|
5524
5535
|
if (nt.includes(u.componentKey))
|
|
5525
|
-
return { items:
|
|
5526
|
-
if (N = { ...N, ...
|
|
5527
|
-
N =
|
|
5536
|
+
return { items: $, ...N, ...A };
|
|
5537
|
+
if (N = { ...N, ...A }, S)
|
|
5538
|
+
N = P($, null, N);
|
|
5528
5539
|
else if (u.dataMode === "manual") {
|
|
5529
5540
|
const Z = R(u.manualItems);
|
|
5530
|
-
if (N =
|
|
5541
|
+
if (N = P(
|
|
5531
5542
|
null,
|
|
5532
5543
|
{ arr: Z, variableName: u.variableName },
|
|
5533
5544
|
N,
|
|
@@ -5541,12 +5552,12 @@ const nt = [
|
|
|
5541
5552
|
}, W = (u) => {
|
|
5542
5553
|
const S = u.props ? { ...u.props } : {};
|
|
5543
5554
|
try {
|
|
5544
|
-
Object.assign(S,
|
|
5555
|
+
Object.assign(S, _(u.manualScalarFields));
|
|
5545
5556
|
} catch (N) {
|
|
5546
5557
|
console.error("❌ Error armando scalars vacíos:", u, N);
|
|
5547
5558
|
}
|
|
5548
|
-
const
|
|
5549
|
-
if (typeof S[
|
|
5559
|
+
const $ = (u.variableName || "items").trim() || "items";
|
|
5560
|
+
if (typeof S[$] == "undefined" && (S[$] = []), u.variableName2) {
|
|
5550
5561
|
const N = (u.variableName2 || "items2").trim() || "items2";
|
|
5551
5562
|
typeof S[N] == "undefined" && (S[N] = []);
|
|
5552
5563
|
}
|
|
@@ -5556,29 +5567,29 @@ const nt = [
|
|
|
5556
5567
|
return U(u);
|
|
5557
5568
|
} catch (S) {
|
|
5558
5569
|
console.error("🔥 ERROR EN buildCompProps:", u, S);
|
|
5559
|
-
const
|
|
5560
|
-
if (
|
|
5570
|
+
const $ = I(u);
|
|
5571
|
+
if ($ && $ !== u)
|
|
5561
5572
|
try {
|
|
5562
5573
|
return console.warn(
|
|
5563
5574
|
`[landing] usando fallback local para sección ${u.title} (${u.componentKey})`
|
|
5564
|
-
), U(
|
|
5575
|
+
), U($);
|
|
5565
5576
|
} catch (N) {
|
|
5566
|
-
console.error("🔥 ERROR EN fallback buildCompProps:",
|
|
5577
|
+
console.error("🔥 ERROR EN fallback buildCompProps:", $, N);
|
|
5567
5578
|
}
|
|
5568
5579
|
return W(u);
|
|
5569
5580
|
}
|
|
5570
|
-
}, J = (u, S,
|
|
5581
|
+
}, J = (u, S, $) => /* @__PURE__ */ t("div", { className: `mx-4 p-4 rounded ${{
|
|
5571
5582
|
loading: "bg-blue-100 text-blue-800",
|
|
5572
5583
|
error: "bg-red-100 text-red-800",
|
|
5573
5584
|
component: "bg-yellow-100 text-yellow-800"
|
|
5574
|
-
}[S]}`, children:
|
|
5585
|
+
}[S]}`, children: $ }, u), ee = (u) => {
|
|
5575
5586
|
var je;
|
|
5576
|
-
const S = u.componentKey,
|
|
5587
|
+
const S = u.componentKey, $ = Yn[S], A = (/* @__PURE__ */ new Set([
|
|
5577
5588
|
"OraculoSeccionBanners",
|
|
5578
5589
|
"OraculoSeccionBonoBienvenida",
|
|
5579
5590
|
"OraculoSeccionCasinoEnVivo",
|
|
5580
5591
|
"OraculoSeccionClubOlimpo",
|
|
5581
|
-
|
|
5592
|
+
...C ? [] : [
|
|
5582
5593
|
"OraculoSeccionEventoEnVivo",
|
|
5583
5594
|
"OraculoSeccionEventoSemana",
|
|
5584
5595
|
"OraculoSeccionEventoCombinadas",
|
|
@@ -5586,24 +5597,24 @@ const nt = [
|
|
|
5586
5597
|
"OraculoSeccionDestacados",
|
|
5587
5598
|
"OraculoSeccionCasino"
|
|
5588
5599
|
]
|
|
5589
|
-
])).has(u.componentKey),
|
|
5600
|
+
])).has(u.componentKey), F = C ? 120 : 24, Z = (C ? 8 : 5) * 8, te = u.componentKey === "OraculoSeccionCasinoEnVivo", ie = {
|
|
5590
5601
|
width: "100%",
|
|
5591
5602
|
boxSizing: "border-box",
|
|
5592
|
-
...
|
|
5603
|
+
...A ? {} : { paddingLeft: F, paddingRight: F },
|
|
5593
5604
|
...te ? {
|
|
5594
5605
|
marginTop: -Z,
|
|
5595
5606
|
marginBottom: -Z
|
|
5596
5607
|
} : {}
|
|
5597
5608
|
};
|
|
5598
|
-
if (
|
|
5609
|
+
if (!$)
|
|
5599
5610
|
return console.warn(`No hay componente registrado para "${S}"`), J(
|
|
5600
5611
|
u.id,
|
|
5601
5612
|
"component",
|
|
5602
5613
|
`Componente "${S}" no encontrado`
|
|
5603
5614
|
);
|
|
5604
|
-
const oe = !!((je = u.apiUrl) != null && je.trim()), We = oe ?
|
|
5615
|
+
const oe = !!((je = u.apiUrl) != null && je.trim()), We = oe ? b[u.id] : void 0, St = oe ? !!O[u.id] : !1, Ge = oe ? y[u.id] : "";
|
|
5605
5616
|
if (oe) {
|
|
5606
|
-
if (
|
|
5617
|
+
if (St && !We)
|
|
5607
5618
|
return J(
|
|
5608
5619
|
u.id,
|
|
5609
5620
|
"loading",
|
|
@@ -5614,7 +5625,7 @@ const nt = [
|
|
|
5614
5625
|
if (we && we.dataMode === "manual")
|
|
5615
5626
|
try {
|
|
5616
5627
|
const Re = G(we);
|
|
5617
|
-
return /* @__PURE__ */ t("div", { style: ie, className: "oraculo-section-wrapper", children: /* @__PURE__ */ t(
|
|
5628
|
+
return /* @__PURE__ */ t("div", { style: ie, className: "oraculo-section-wrapper", children: /* @__PURE__ */ t($, { ...Re }) }, u.id);
|
|
5618
5629
|
} catch (Re) {
|
|
5619
5630
|
console.error(
|
|
5620
5631
|
"🔥 ERROR renderizando fallback manual de sección:",
|
|
@@ -5629,19 +5640,19 @@ const nt = [
|
|
|
5629
5640
|
);
|
|
5630
5641
|
}
|
|
5631
5642
|
}
|
|
5632
|
-
const
|
|
5633
|
-
return /* @__PURE__ */ t(
|
|
5643
|
+
const It = G(u);
|
|
5644
|
+
return /* @__PURE__ */ t(eo, { section: u, children: /* @__PURE__ */ t(
|
|
5634
5645
|
"div",
|
|
5635
5646
|
{
|
|
5636
5647
|
style: ie,
|
|
5637
5648
|
className: "oraculo-section-wrapper",
|
|
5638
|
-
children: /* @__PURE__ */ t(
|
|
5649
|
+
children: /* @__PURE__ */ t($, { ...It })
|
|
5639
5650
|
},
|
|
5640
5651
|
u.id
|
|
5641
5652
|
) });
|
|
5642
5653
|
};
|
|
5643
|
-
return l && !e ? p ? /* @__PURE__ */ t(p, {}) : /* @__PURE__ */ t("div", { children: "Cargando..." }) : !l && !e && f.length === 0 ? /* @__PURE__ */ t("div", { className: "text-xs text-gray-500", children: "Sin secciones (Firestore)" }) : /* @__PURE__ */ t(
|
|
5644
|
-
|
|
5654
|
+
return l && !e ? p ? /* @__PURE__ */ t(p, {}) : /* @__PURE__ */ t("div", { children: "Cargando..." }) : !l && !e && f.length === 0 ? /* @__PURE__ */ t("div", { className: "text-xs text-gray-500", children: "Sin secciones (Firestore)" }) : /* @__PURE__ */ t(wt, { children: /* @__PURE__ */ t(gt, { docId: a, moduleId: n, children: /* @__PURE__ */ t(
|
|
5655
|
+
Ct,
|
|
5645
5656
|
{
|
|
5646
5657
|
className: "oli-font",
|
|
5647
5658
|
maxWidth: !1,
|
|
@@ -5654,7 +5665,7 @@ const nt = [
|
|
|
5654
5665
|
maxWidth: "100%",
|
|
5655
5666
|
overflowX: "hidden"
|
|
5656
5667
|
},
|
|
5657
|
-
children: /* @__PURE__ */ t(Oe, { direction: "column", spacing:
|
|
5668
|
+
children: /* @__PURE__ */ t(Oe, { direction: "column", spacing: C ? 8 : 5, useFlexGap: !0, children: z.map((u) => {
|
|
5658
5669
|
try {
|
|
5659
5670
|
return ee(u);
|
|
5660
5671
|
} catch (S) {
|
|
@@ -5669,41 +5680,41 @@ export {
|
|
|
5669
5680
|
X as OraculoButton,
|
|
5670
5681
|
he as OraculoCarousel,
|
|
5671
5682
|
lt as OraculoCarouselDots,
|
|
5672
|
-
|
|
5673
|
-
|
|
5683
|
+
xa as OraculoClubOlimpoVisual,
|
|
5684
|
+
za as OraculoEventCombinadasCard,
|
|
5674
5685
|
Fa as OraculoEventEnVivoCard,
|
|
5675
|
-
|
|
5686
|
+
Gt as OraculoEventHeader,
|
|
5676
5687
|
ct as OraculoEventLabel,
|
|
5677
5688
|
dt as OraculoEventLeague,
|
|
5678
5689
|
ut as OraculoEventScore,
|
|
5679
|
-
|
|
5680
|
-
|
|
5681
|
-
|
|
5690
|
+
Ha as OraculoEventSemanaCard,
|
|
5691
|
+
Wt as OraculoEventStatus,
|
|
5692
|
+
Vt as OraculoEventStatusBadge,
|
|
5682
5693
|
Ne as OraculoEventTeamInfo,
|
|
5683
5694
|
Te as OraculoGameCard,
|
|
5684
|
-
|
|
5695
|
+
_a as OraculoGameRankCard,
|
|
5685
5696
|
mt as OraculoGameSlide,
|
|
5686
5697
|
ue as OraculoGridGroup,
|
|
5687
|
-
|
|
5698
|
+
ya as OraculoLiveCasinoCard,
|
|
5688
5699
|
Ke as OraculoLogoMediosPago,
|
|
5689
|
-
|
|
5690
|
-
|
|
5691
|
-
|
|
5692
|
-
|
|
5693
|
-
|
|
5694
|
-
|
|
5695
|
-
|
|
5696
|
-
|
|
5697
|
-
|
|
5698
|
-
|
|
5699
|
-
|
|
5700
|
-
|
|
5701
|
-
|
|
5702
|
-
|
|
5700
|
+
_o as OraculoPageLandingPreview,
|
|
5701
|
+
jn as OraculoSeccionBanners,
|
|
5702
|
+
vn as OraculoSeccionBonoBienvenida,
|
|
5703
|
+
mn as OraculoSeccionCasino,
|
|
5704
|
+
cn as OraculoSeccionCasinoEnVivo,
|
|
5705
|
+
_n as OraculoSeccionClubOlimpo,
|
|
5706
|
+
Ka as OraculoSeccionDestacados,
|
|
5707
|
+
On as OraculoSeccionEventoCombinadas,
|
|
5708
|
+
zn as OraculoSeccionEventoEnVivo,
|
|
5709
|
+
Gn as OraculoSeccionEventoSemana,
|
|
5710
|
+
Kn as OraculoSeccionMediosPago,
|
|
5711
|
+
Ja as OraculoSeccionTopJuegos,
|
|
5712
|
+
hn as OraculoSeccionVirtuales,
|
|
5713
|
+
vo as OraculoSectionHost,
|
|
5703
5714
|
ge as OraculoSectionTitle,
|
|
5704
|
-
|
|
5705
|
-
|
|
5715
|
+
wt as OraculoThemeProvider,
|
|
5716
|
+
Ja as OraculoTopJuegoItem,
|
|
5706
5717
|
Ze as OraculoWelcomeBanner,
|
|
5707
|
-
|
|
5718
|
+
_o as default
|
|
5708
5719
|
};
|
|
5709
5720
|
//# sourceMappingURL=index.es.js.map
|