oraculo-ui 0.1.103 → 0.1.104
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 +5 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +1112 -1110
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as e, jsxs as g, Fragment as Q } from "react/jsx-runtime";
|
|
2
2
|
import { Link as He, Box as Z, IconButton as Ae, Typography as Ke, Stack as ve, useMediaQuery as st, Container as ct } from "@mui/material";
|
|
3
|
-
import de, { useState as
|
|
4
|
-
import
|
|
3
|
+
import de, { useState as j, useEffect as K, useRef as U, forwardRef as dt, useImperativeHandle as ut, useCallback as _e, useContext as mt, createContext as pt, useMemo as ne, useLayoutEffect as gt } from "react";
|
|
4
|
+
import V from "@mui/material/Skeleton";
|
|
5
5
|
import { Splide as ft, SplideSlide as ht } from "@splidejs/react-splide";
|
|
6
6
|
import L from "@mui/material/Box";
|
|
7
7
|
import ae from "@mui/material/Typography";
|
|
8
|
-
import
|
|
8
|
+
import D from "@mui/material/Stack";
|
|
9
9
|
import { useCaptureInteraction as J } from "@olimpo/capture-client";
|
|
10
10
|
import { ChevronLeftRounded as Ee, ChevronRightRounded as Ie } from "@mui/icons-material";
|
|
11
11
|
import Ze from "@mui/icons-material/ChevronLeftRounded";
|
|
@@ -14,59 +14,59 @@ import bt from "@mui/material/useMediaQuery";
|
|
|
14
14
|
import { useTheme as vt, createTheme as _t, ThemeProvider as yt } from "@mui/material/styles";
|
|
15
15
|
import xt from "@mui/material/CssBaseline";
|
|
16
16
|
import { onSnapshot as wt, doc as St } from "firebase/firestore";
|
|
17
|
-
function
|
|
17
|
+
function H({
|
|
18
18
|
children: t,
|
|
19
19
|
onClick: a,
|
|
20
20
|
href: n,
|
|
21
|
-
target:
|
|
22
|
-
rel:
|
|
23
|
-
type:
|
|
24
|
-
disabled:
|
|
21
|
+
target: r,
|
|
22
|
+
rel: l,
|
|
23
|
+
type: i = "button",
|
|
24
|
+
disabled: c = !1,
|
|
25
25
|
variant: p = "primary",
|
|
26
26
|
size: b,
|
|
27
|
-
fullWidth:
|
|
28
|
-
fullHeight:
|
|
29
|
-
className:
|
|
27
|
+
fullWidth: u = !1,
|
|
28
|
+
fullHeight: s = !1,
|
|
29
|
+
className: d = "",
|
|
30
30
|
ariaLabel: _,
|
|
31
|
-
leftIcon:
|
|
32
|
-
rightIcon:
|
|
31
|
+
leftIcon: y,
|
|
32
|
+
rightIcon: E,
|
|
33
33
|
iconOnly: M
|
|
34
34
|
}) {
|
|
35
|
-
const v = !!t && t !== !0,
|
|
35
|
+
const v = !!t && t !== !0, S = (!!y ? 1 : 0) + (!!E ? 1 : 0) == 1, O = M != null ? M : S && !v, B = [
|
|
36
36
|
"orc-btn",
|
|
37
37
|
p === "secondary" ? "orc-btn--secondary" : p === "tertiary" ? "orc-btn--tertiary" : "orc-btn--primary",
|
|
38
38
|
b ? `orc-btn--${b}` : "",
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
].filter(Boolean).join(" "),
|
|
44
|
-
|
|
45
|
-
!
|
|
46
|
-
|
|
47
|
-
] }),
|
|
39
|
+
u ? "orc-btn--full" : "",
|
|
40
|
+
s ? "orc-btn--fullHeight" : "",
|
|
41
|
+
O ? "orc-btn--iconOnly" : "",
|
|
42
|
+
d
|
|
43
|
+
].filter(Boolean).join(" "), R = /* @__PURE__ */ g(Q, { children: [
|
|
44
|
+
y && /* @__PURE__ */ e("span", { className: "orc-btn__icon", children: y }),
|
|
45
|
+
!O && /* @__PURE__ */ e("span", { className: "orc-btn__label", children: t }),
|
|
46
|
+
E && /* @__PURE__ */ e("span", { className: "orc-btn__icon", children: E })
|
|
47
|
+
] }), I = c ? !0 : void 0;
|
|
48
48
|
return n ? /* @__PURE__ */ e(
|
|
49
49
|
He,
|
|
50
50
|
{
|
|
51
51
|
href: n,
|
|
52
|
-
target:
|
|
53
|
-
rel:
|
|
52
|
+
target: r,
|
|
53
|
+
rel: l,
|
|
54
54
|
"aria-label": _,
|
|
55
|
-
"aria-disabled":
|
|
56
|
-
tabIndex:
|
|
55
|
+
"aria-disabled": I,
|
|
56
|
+
tabIndex: I ? -1 : void 0,
|
|
57
57
|
className: B,
|
|
58
|
-
onClick:
|
|
59
|
-
children:
|
|
58
|
+
onClick: I ? (A) => A.preventDefault() : a,
|
|
59
|
+
children: R
|
|
60
60
|
}
|
|
61
61
|
) : /* @__PURE__ */ e(
|
|
62
62
|
"button",
|
|
63
63
|
{
|
|
64
|
-
type:
|
|
64
|
+
type: i,
|
|
65
65
|
onClick: a,
|
|
66
|
-
disabled: !!
|
|
66
|
+
disabled: !!I,
|
|
67
67
|
"aria-label": _,
|
|
68
68
|
className: B,
|
|
69
|
-
children:
|
|
69
|
+
children: R
|
|
70
70
|
}
|
|
71
71
|
);
|
|
72
72
|
}
|
|
@@ -74,14 +74,14 @@ function le({
|
|
|
74
74
|
title: t,
|
|
75
75
|
iconUrl: a,
|
|
76
76
|
size: n = "md",
|
|
77
|
-
className:
|
|
77
|
+
className: r = ""
|
|
78
78
|
}) {
|
|
79
|
-
const
|
|
79
|
+
const i = [
|
|
80
80
|
"orc-section-title",
|
|
81
81
|
n ? `orc-section-title--${n}` : "",
|
|
82
|
-
|
|
82
|
+
r
|
|
83
83
|
].filter(Boolean).join(" ");
|
|
84
|
-
return /* @__PURE__ */ g("div", { className:
|
|
84
|
+
return /* @__PURE__ */ g("div", { className: i, children: [
|
|
85
85
|
a && /* @__PURE__ */ e(
|
|
86
86
|
"img",
|
|
87
87
|
{
|
|
@@ -97,50 +97,50 @@ const Xe = ({
|
|
|
97
97
|
total: t,
|
|
98
98
|
active: a,
|
|
99
99
|
onSelect: n,
|
|
100
|
-
className:
|
|
101
|
-
durationMs:
|
|
100
|
+
className: r = "",
|
|
101
|
+
durationMs: l = 5e3
|
|
102
102
|
}) => {
|
|
103
103
|
if (t <= 1) return null;
|
|
104
|
-
const
|
|
104
|
+
const i = ["orc-dots", r].filter(Boolean).join(" "), [c, p] = j(0);
|
|
105
105
|
return K(() => {
|
|
106
106
|
p((b) => b + 1);
|
|
107
|
-
}, [a,
|
|
108
|
-
const
|
|
107
|
+
}, [a, l]), /* @__PURE__ */ e("div", { className: i, role: "tablist", "aria-label": "Carousel pagination", children: Array.from({ length: t }).map((b, u) => {
|
|
108
|
+
const s = u === a;
|
|
109
109
|
return /* @__PURE__ */ e("span", { className: "orc-dots__cell", children: /* @__PURE__ */ e(
|
|
110
110
|
"button",
|
|
111
111
|
{
|
|
112
112
|
type: "button",
|
|
113
113
|
role: "tab",
|
|
114
|
-
"aria-selected":
|
|
115
|
-
"aria-label": `Ir al slide ${
|
|
116
|
-
className: "orc-dots__dot" + (
|
|
117
|
-
style:
|
|
118
|
-
"--dot-progress-ms": `${
|
|
114
|
+
"aria-selected": s,
|
|
115
|
+
"aria-label": `Ir al slide ${u + 1}`,
|
|
116
|
+
className: "orc-dots__dot" + (s ? " orc-dots__dot--active" : ""),
|
|
117
|
+
style: s ? {
|
|
118
|
+
"--dot-progress-ms": `${l}ms`
|
|
119
119
|
} : void 0,
|
|
120
120
|
onClick: () => {
|
|
121
|
-
|
|
121
|
+
s && p((d) => d + 1), n == null || n(u);
|
|
122
122
|
}
|
|
123
123
|
},
|
|
124
|
-
|
|
125
|
-
) },
|
|
124
|
+
s ? `a-${u}-${c}` : `i-${u}`
|
|
125
|
+
) }, u);
|
|
126
126
|
}) });
|
|
127
127
|
};
|
|
128
128
|
function oe({
|
|
129
129
|
children: t,
|
|
130
130
|
minWidth: a = 32,
|
|
131
131
|
spacing: n = 2,
|
|
132
|
-
justify:
|
|
133
|
-
columns:
|
|
132
|
+
justify: r = "stretch",
|
|
133
|
+
columns: l = null
|
|
134
134
|
}) {
|
|
135
|
-
const
|
|
135
|
+
const i = l || `repeat(auto-fit, minmax(${a}px, 1fr))`, c = typeof n == "number" ? `${n * 8}px` : n;
|
|
136
136
|
return /* @__PURE__ */ e(
|
|
137
137
|
"div",
|
|
138
138
|
{
|
|
139
139
|
style: {
|
|
140
140
|
display: "grid",
|
|
141
|
-
gridTemplateColumns:
|
|
142
|
-
justifyItems:
|
|
143
|
-
gap:
|
|
141
|
+
gridTemplateColumns: i,
|
|
142
|
+
justifyItems: r,
|
|
143
|
+
gap: c,
|
|
144
144
|
height: "inherit"
|
|
145
145
|
},
|
|
146
146
|
children: t
|
|
@@ -246,7 +246,7 @@ function kt({ live: t, time: a }) {
|
|
|
246
246
|
a && /* @__PURE__ */ e("span", { style: { fontSize: "14px", fontWeight: 400, lineHeight: "18px", paddingTop: "4px" }, children: a })
|
|
247
247
|
] });
|
|
248
248
|
}
|
|
249
|
-
function $t({ title: t, subtitle: a, live: n = !1, time:
|
|
249
|
+
function $t({ title: t, subtitle: a, live: n = !1, time: r = "" }) {
|
|
250
250
|
return /* @__PURE__ */ g(
|
|
251
251
|
"div",
|
|
252
252
|
{
|
|
@@ -258,7 +258,7 @@ function $t({ title: t, subtitle: a, live: n = !1, time: i = "" }) {
|
|
|
258
258
|
},
|
|
259
259
|
children: [
|
|
260
260
|
/* @__PURE__ */ e(It, { title: t, subtitle: a }),
|
|
261
|
-
/* @__PURE__ */ e(kt, { live: n, time:
|
|
261
|
+
/* @__PURE__ */ e(kt, { live: n, time: r })
|
|
262
262
|
]
|
|
263
263
|
}
|
|
264
264
|
);
|
|
@@ -308,7 +308,7 @@ const Ut = "oraculo__OraculoEventTeamInfo-module__team___UfpUs", qt = "oraculo__
|
|
|
308
308
|
highlight: Zt
|
|
309
309
|
};
|
|
310
310
|
function Jt({ jersey: t, className: a }) {
|
|
311
|
-
const n = `#${t.base}`,
|
|
311
|
+
const n = `#${t.base}`, r = t.sleeve ? `#${t.sleeve}` : n, l = t.stripes ? `#${t.stripes}` : null, i = t.sleevelong ? `#${t.sleevelong}` : null;
|
|
312
312
|
return /* @__PURE__ */ g("div", { className: `${he.polo} ${a != null ? a : ""}`, children: [
|
|
313
313
|
/* @__PURE__ */ e("div", { className: he.svgWrapper, children: /* @__PURE__ */ g("svg", { viewBox: "0 0 656 656", "aria-hidden": !0, children: [
|
|
314
314
|
/* @__PURE__ */ e(
|
|
@@ -318,15 +318,15 @@ function Jt({ jersey: t, 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
|
-
|
|
322
|
-
/* @__PURE__ */ e("path", { fill:
|
|
323
|
-
/* @__PURE__ */ e("path", { fill:
|
|
321
|
+
l && /* @__PURE__ */ g(Q, { children: [
|
|
322
|
+
/* @__PURE__ */ e("path", { fill: l, 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
|
+
/* @__PURE__ */ e("path", { fill: l, 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
|
] }),
|
|
325
|
-
|
|
325
|
+
i && /* @__PURE__ */ e(Q, { children: /* @__PURE__ */ e("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" }) }),
|
|
326
326
|
/* @__PURE__ */ e(
|
|
327
327
|
"path",
|
|
328
328
|
{
|
|
329
|
-
fill:
|
|
329
|
+
fill: r,
|
|
330
330
|
fillRule: "evenodd",
|
|
331
331
|
d: "m262.9 19.6-3.7 3.8-3.5 3.3-2.7 2.1c-2 1.6-5 5.7-1 17.1 4 9.8 5.2 12 5.3 11.9 1.4 2.5 4.4 7.9 5.9 9.1l6 7.8 15 14.6 10.5 8.7 12.6 11.3 8.3 6.2 7.6.6 17 .8 9.2-6.6 7-5.6 10.3-9 7-5.7 5.3-5.2 3.6-3.6 3.4-3.4 4.2-5 4-5.3 2.7-4C403.5 53 407 40 406 37.3c0-1.3-.9-4.6-3.9-7.2A129 129 0 0 1 391.2 20c-.8-1.1-4.2-4.3-7.3-6a52 52 0 0 0-15.3-3.9L353.5 9l-10.2-.4-15.4-.4H301.6c-4.6.2-14.6.6-17.2 1.2l-3.4.6c-3.2.5-6.9 1-8.4 2l-1.4.8c-1.5.7-2.8 1.4-5 3.7l-3.3 3.2Zm4.3 14 1.9 5.5 4.6 8.2 5 6.7 5.3 6.6 11 10.7 10.8 9.8 12.8 11.7 7.4 7 3 3 15-13.3 16.7-15.7 6.7-6.2 6-6.6a104.1 104.1 0 0 0 13.8-19.6c1-1.9 1.8-4.5 2-5.6 2.7-7.9 1.4-13.8-1.5-17.8-4-5.2-14.9-6.6-18.5-7.1h-.7c-13.8-1.9-39.8-2-46-1.9-9-.2-28.1.2-32.5.7-.6 0-1.2 0-1.9.2-6.8.6-19.9 1.9-22.6 10.6a22.6 22.6 0 0 0 .9 10.3l.8 2.9Z"
|
|
332
332
|
}
|
|
@@ -334,14 +334,14 @@ function Jt({ jersey: t, className: a }) {
|
|
|
334
334
|
/* @__PURE__ */ e(
|
|
335
335
|
"path",
|
|
336
336
|
{
|
|
337
|
-
fill:
|
|
337
|
+
fill: r,
|
|
338
338
|
d: "m74.8 250.8-6.8-2.7-.3.7-3 8.7-2 5.7c-1 2.2-.5 1.9.1 2.3l2.2 1 8.8 3.3 10.4 3.8 10.7 3.8 14.3 4.8 13 4.3 7 2.3 13.8 4.3c2.2.7 3 1.4 3.8 0l6.3-15.6-4.6-1.8a88 88 0 0 1-9.4-3c-.8-.6-11.8-3.7-17.3-5.4l-7-2.4-13-4.3c-3.2-1.3-9.9-3.8-11-4-1.2-.2-11-3.8-16-5.8Z"
|
|
339
339
|
}
|
|
340
340
|
),
|
|
341
341
|
/* @__PURE__ */ e(
|
|
342
342
|
"path",
|
|
343
343
|
{
|
|
344
|
-
fill:
|
|
344
|
+
fill: r,
|
|
345
345
|
d: "m505 284.5-3.5-7.5c.2-.2 1.2-.4 3 0 1.6.4 11.3-1.7 16-2.7l22.5-6.6 13.7-4.5 16.8-6.7a90 90 0 0 0 13.7-7.7v1l.6 2 1.9 5.5 2.9 7.8c.6 1.6-5.5 4.8-8.6 6.3l-17 7.2-15.3 5.4-13 4.2-13 3.3-9.9 2c-6.8 1.2-7.2-.4-8-2l-2.7-7Z"
|
|
346
346
|
}
|
|
347
347
|
)
|
|
@@ -374,35 +374,35 @@ function Se({ name: t, jersey: a, size: n = "regular" }) {
|
|
|
374
374
|
jersey: a,
|
|
375
375
|
className: `${pe.logo}`
|
|
376
376
|
}
|
|
377
|
-
) : /* @__PURE__ */ e(
|
|
377
|
+
) : /* @__PURE__ */ e(V, { variant: "circular", className: `${pe.logo} ${pe.skeleton}` }),
|
|
378
378
|
/* @__PURE__ */ e("span", { className: pe.name, children: t })
|
|
379
379
|
] });
|
|
380
380
|
}
|
|
381
381
|
function Xt(t, a, {
|
|
382
382
|
enabled: n = !0,
|
|
383
|
-
threshold:
|
|
384
|
-
cooldownMs:
|
|
383
|
+
threshold: r = 60,
|
|
384
|
+
cooldownMs: l = 500
|
|
385
385
|
} = {}) {
|
|
386
|
-
const
|
|
386
|
+
const i = U(0), c = U(0);
|
|
387
387
|
K(() => {
|
|
388
388
|
if (!n) return;
|
|
389
389
|
const p = t.current;
|
|
390
390
|
if (!p) return;
|
|
391
|
-
const b = (
|
|
392
|
-
const
|
|
393
|
-
if (!
|
|
394
|
-
const { deltaX:
|
|
395
|
-
if (Math.abs(
|
|
396
|
-
|
|
397
|
-
const
|
|
398
|
-
if (
|
|
399
|
-
const
|
|
400
|
-
|
|
391
|
+
const b = (u) => {
|
|
392
|
+
const s = a.current;
|
|
393
|
+
if (!s || !s.go) return;
|
|
394
|
+
const { deltaX: d, deltaY: _ } = u;
|
|
395
|
+
if (Math.abs(d) <= Math.abs(_)) return;
|
|
396
|
+
u.preventDefault(), i.current += d;
|
|
397
|
+
const y = Date.now();
|
|
398
|
+
if (y - c.current < l || Math.abs(i.current) < r) return;
|
|
399
|
+
const E = i.current > 0 ? ">" : "<";
|
|
400
|
+
i.current = 0, c.current = y, s.go(E);
|
|
401
401
|
};
|
|
402
402
|
return p.addEventListener("wheel", b, { passive: !1 }), () => {
|
|
403
|
-
p.removeEventListener("wheel", b),
|
|
403
|
+
p.removeEventListener("wheel", b), i.current = 0;
|
|
404
404
|
};
|
|
405
|
-
}, [n,
|
|
405
|
+
}, [n, r, l, t, a]);
|
|
406
406
|
}
|
|
407
407
|
const Yt = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", Qt = "oraculo__OraculoCarousel-module__right___KwpOE", ea = "oraculo__OraculoCarousel-module__left___n3WQu", ta = "oraculo__OraculoCarousel-module__svg___0mGuX", ge = {
|
|
408
408
|
gradientOverlay: Yt,
|
|
@@ -414,49 +414,49 @@ const Yt = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", Qt = "ora
|
|
|
414
414
|
items: t = [],
|
|
415
415
|
renderItem: a,
|
|
416
416
|
perPage: n = 1,
|
|
417
|
-
gap:
|
|
418
|
-
breakpoints:
|
|
419
|
-
options:
|
|
420
|
-
className:
|
|
417
|
+
gap: r = "0px",
|
|
418
|
+
breakpoints: l,
|
|
419
|
+
options: i = {},
|
|
420
|
+
className: c = "",
|
|
421
421
|
onMove: p,
|
|
422
422
|
useIndexAsKey: b = !1,
|
|
423
|
-
enableHorizontalWheel:
|
|
424
|
-
showRightGradient:
|
|
425
|
-
},
|
|
426
|
-
const _ = U(null),
|
|
427
|
-
Xt(
|
|
428
|
-
enabled:
|
|
429
|
-
}), ut(
|
|
423
|
+
enableHorizontalWheel: u = !0,
|
|
424
|
+
showRightGradient: s = !1
|
|
425
|
+
}, d) => {
|
|
426
|
+
const _ = U(null), y = U(null), E = U(t.length), M = U(null), v = U(null);
|
|
427
|
+
Xt(y, _, {
|
|
428
|
+
enabled: u
|
|
429
|
+
}), ut(d, () => ({
|
|
430
430
|
next: () => {
|
|
431
|
-
var
|
|
432
|
-
return (
|
|
431
|
+
var I;
|
|
432
|
+
return (I = _.current) == null ? void 0 : I.go(">");
|
|
433
433
|
},
|
|
434
434
|
prev: () => {
|
|
435
|
-
var
|
|
436
|
-
return (
|
|
435
|
+
var I;
|
|
436
|
+
return (I = _.current) == null ? void 0 : I.go("<");
|
|
437
437
|
},
|
|
438
|
-
go: (
|
|
439
|
-
var
|
|
440
|
-
return (
|
|
438
|
+
go: (I) => {
|
|
439
|
+
var A;
|
|
440
|
+
return (A = _.current) == null ? void 0 : A.go(I);
|
|
441
441
|
}
|
|
442
442
|
}));
|
|
443
|
-
const
|
|
444
|
-
var
|
|
445
|
-
const
|
|
446
|
-
let
|
|
447
|
-
for (let
|
|
448
|
-
const $ =
|
|
449
|
-
if (!$ || (
|
|
450
|
-
|
|
443
|
+
const N = (I) => {
|
|
444
|
+
var o;
|
|
445
|
+
const A = I.Components.Slides, z = I.Components.Controller, C = I.root.querySelector(".splide__track"), k = (o = C == null ? void 0 : C.clientWidth) != null ? o : 0, P = z.getIndex(), f = A.getLength();
|
|
446
|
+
let w = 0, m = P;
|
|
447
|
+
for (let h = P; h < f; h++) {
|
|
448
|
+
const $ = A.getAt(h);
|
|
449
|
+
if (!$ || (w += $.slide.offsetWidth, w > k)) break;
|
|
450
|
+
m = h;
|
|
451
451
|
}
|
|
452
|
-
return { visibleStart:
|
|
453
|
-
},
|
|
454
|
-
const
|
|
455
|
-
return !
|
|
456
|
-
},
|
|
457
|
-
var
|
|
458
|
-
const z =
|
|
459
|
-
if (!
|
|
452
|
+
return { visibleStart: P, visibleEnd: m };
|
|
453
|
+
}, x = (I) => {
|
|
454
|
+
const A = I.root.querySelector(".splide__track"), z = I.root.querySelector(".splide__list");
|
|
455
|
+
return !A || !z ? !1 : z.scrollWidth > A.clientWidth + 1;
|
|
456
|
+
}, S = _e((I) => {
|
|
457
|
+
var m, o;
|
|
458
|
+
const z = I.Components.Slides.getLength();
|
|
459
|
+
if (!x(I)) {
|
|
460
460
|
p == null || p({
|
|
461
461
|
index: 0,
|
|
462
462
|
isStart: !0,
|
|
@@ -467,37 +467,37 @@ const Yt = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", Qt = "ora
|
|
|
467
467
|
});
|
|
468
468
|
return;
|
|
469
469
|
}
|
|
470
|
-
const { visibleStart:
|
|
471
|
-
|
|
472
|
-
const
|
|
470
|
+
const { visibleStart: C, visibleEnd: k } = N(I), P = C === 0, f = k === z - 1;
|
|
471
|
+
s && ((m = M.current) == null || m.style.setProperty("--gradient-opacity", P ? "0" : "1"), (o = v.current) == null || o.style.setProperty("--gradient-opacity", f ? "0" : "1"));
|
|
472
|
+
const w = I.Components.Controller.getIndex();
|
|
473
473
|
p == null || p({
|
|
474
|
-
index:
|
|
475
|
-
isStart:
|
|
474
|
+
index: w,
|
|
475
|
+
isStart: P,
|
|
476
476
|
isEnd: f,
|
|
477
477
|
total: z,
|
|
478
|
-
visibleStart:
|
|
478
|
+
visibleStart: C,
|
|
479
479
|
visibleEnd: k
|
|
480
480
|
});
|
|
481
481
|
}, [p]);
|
|
482
482
|
de.useEffect(() => {
|
|
483
483
|
var z;
|
|
484
|
-
const
|
|
485
|
-
if (!
|
|
486
|
-
const
|
|
487
|
-
|
|
488
|
-
|
|
484
|
+
const I = (z = _.current) == null ? void 0 : z.splide;
|
|
485
|
+
if (!I) return;
|
|
486
|
+
const A = E.current !== t.length;
|
|
487
|
+
E.current = t.length, A && requestAnimationFrame(() => {
|
|
488
|
+
I.refresh(), S(I);
|
|
489
489
|
});
|
|
490
|
-
}, [t.length,
|
|
491
|
-
const
|
|
492
|
-
var
|
|
493
|
-
const
|
|
494
|
-
|
|
495
|
-
}, [
|
|
496
|
-
(
|
|
497
|
-
|
|
490
|
+
}, [t.length, S]);
|
|
491
|
+
const O = _e(() => {
|
|
492
|
+
var A;
|
|
493
|
+
const I = (A = _.current) == null ? void 0 : A.splide;
|
|
494
|
+
I && (I.go(0, !1), S(I));
|
|
495
|
+
}, [S]), B = _e(
|
|
496
|
+
(I) => {
|
|
497
|
+
S(I);
|
|
498
498
|
},
|
|
499
|
-
[
|
|
500
|
-
),
|
|
499
|
+
[S]
|
|
500
|
+
), R = {
|
|
501
501
|
type: "slide",
|
|
502
502
|
trimSpace: !1,
|
|
503
503
|
drag: !0,
|
|
@@ -507,27 +507,27 @@ const Yt = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", Qt = "ora
|
|
|
507
507
|
focus: "start",
|
|
508
508
|
autoWidth: !1,
|
|
509
509
|
perPage: n,
|
|
510
|
-
gap:
|
|
511
|
-
breakpoints:
|
|
512
|
-
...
|
|
513
|
-
...
|
|
510
|
+
gap: r,
|
|
511
|
+
breakpoints: l,
|
|
512
|
+
...i,
|
|
513
|
+
...u ? { wheel: !1 } : {}
|
|
514
514
|
};
|
|
515
|
-
return /* @__PURE__ */ g("div", { ref:
|
|
515
|
+
return /* @__PURE__ */ g("div", { ref: y, className: c, style: { width: "100%", position: "relative" }, children: [
|
|
516
516
|
/* @__PURE__ */ e(
|
|
517
517
|
aa,
|
|
518
518
|
{
|
|
519
519
|
ref: _,
|
|
520
|
-
options:
|
|
521
|
-
onMove:
|
|
520
|
+
options: R,
|
|
521
|
+
onMove: S,
|
|
522
522
|
onMounted: B,
|
|
523
|
-
onResize:
|
|
524
|
-
children: t.map((
|
|
523
|
+
onResize: O,
|
|
524
|
+
children: t.map((I, A) => {
|
|
525
525
|
var z;
|
|
526
|
-
return /* @__PURE__ */ e(na, { children: a(
|
|
526
|
+
return /* @__PURE__ */ e(na, { children: a(I, A) }, b ? A : (z = I.id) != null ? z : A);
|
|
527
527
|
})
|
|
528
528
|
}
|
|
529
529
|
),
|
|
530
|
-
|
|
530
|
+
s && /* @__PURE__ */ g(Q, { children: [
|
|
531
531
|
/* @__PURE__ */ e(
|
|
532
532
|
"div",
|
|
533
533
|
{
|
|
@@ -585,11 +585,11 @@ const Yt = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", Qt = "ora
|
|
|
585
585
|
imageUrl: t,
|
|
586
586
|
onClick: a,
|
|
587
587
|
size: n = "sm",
|
|
588
|
-
fillParent:
|
|
588
|
+
fillParent: r = !1
|
|
589
589
|
}) => {
|
|
590
|
-
const
|
|
590
|
+
const l = n === "lg" ? { w: 280, h: 352 } : { w: 152, h: 168 }, i = (p) => {
|
|
591
591
|
p.stopPropagation(), a == null || a();
|
|
592
|
-
},
|
|
592
|
+
}, c = r ? { width: "100%", height: "100%" } : { width: `${l.w}px`, height: `${l.h}px` };
|
|
593
593
|
return /* @__PURE__ */ g(
|
|
594
594
|
L,
|
|
595
595
|
{
|
|
@@ -601,7 +601,7 @@ const Yt = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", Qt = "ora
|
|
|
601
601
|
overflow: "hidden",
|
|
602
602
|
boxSizing: "border-box",
|
|
603
603
|
transition: "transform .15s ease, box-shadow .15s ease",
|
|
604
|
-
...
|
|
604
|
+
...c,
|
|
605
605
|
"&:hover": {
|
|
606
606
|
transform: "translateY(-2px)",
|
|
607
607
|
boxShadow: 8,
|
|
@@ -661,7 +661,7 @@ const Yt = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", Qt = "ora
|
|
|
661
661
|
transition: "opacity .15s ease, transform .15s ease",
|
|
662
662
|
pointerEvents: "none"
|
|
663
663
|
},
|
|
664
|
-
children: /* @__PURE__ */ e(
|
|
664
|
+
children: /* @__PURE__ */ e(H, { variant: "primary", size: "md", onClick: i, children: "Jugar" })
|
|
665
665
|
}
|
|
666
666
|
)
|
|
667
667
|
]
|
|
@@ -672,22 +672,22 @@ function oa({
|
|
|
672
672
|
imageUrl: t,
|
|
673
673
|
orden: a = 1,
|
|
674
674
|
onClick: n,
|
|
675
|
-
loading:
|
|
676
|
-
sizes:
|
|
675
|
+
loading: r = !1,
|
|
676
|
+
sizes: l = {
|
|
677
677
|
xs: { w: 104, h: 112, r: 18, font: 48 },
|
|
678
678
|
md: { w: 186, h: 264, r: 22.6, font: 64 }
|
|
679
679
|
}
|
|
680
680
|
}) {
|
|
681
|
-
var
|
|
682
|
-
const
|
|
683
|
-
var
|
|
681
|
+
var d, _, y, E;
|
|
682
|
+
const i = (M, v) => {
|
|
683
|
+
var N, x, S, O;
|
|
684
684
|
return {
|
|
685
|
-
xs: (
|
|
686
|
-
md: (
|
|
685
|
+
xs: (x = (N = l.xs) == null ? void 0 : N[M]) != null ? x : v,
|
|
686
|
+
md: (O = (S = l.md) == null ? void 0 : S[M]) != null ? O : v
|
|
687
687
|
};
|
|
688
|
-
},
|
|
689
|
-
xs: Math.round(((_ = (
|
|
690
|
-
md: Math.round(((
|
|
688
|
+
}, c = i("w", 186), p = i("h", 264), b = i("r", 22.6), u = i("font", 64), s = {
|
|
689
|
+
xs: Math.round(((_ = (d = l.xs) == null ? void 0 : d.font) != null ? _ : 64) * 0.28),
|
|
690
|
+
md: Math.round(((E = (y = l.md) == null ? void 0 : y.font) != null ? E : 64) * 0.28)
|
|
691
691
|
};
|
|
692
692
|
return /* @__PURE__ */ g(
|
|
693
693
|
L,
|
|
@@ -695,15 +695,15 @@ function oa({
|
|
|
695
695
|
sx: {
|
|
696
696
|
position: "relative",
|
|
697
697
|
width: "100%",
|
|
698
|
-
maxWidth: { xs: `${
|
|
698
|
+
maxWidth: { xs: `${c.xs}px`, md: `${c.md}px` },
|
|
699
699
|
aspectRatio: {
|
|
700
|
-
xs: `${
|
|
701
|
-
md: `${
|
|
700
|
+
xs: `${c.xs}/${p.xs}`,
|
|
701
|
+
md: `${c.md}/${p.md}`
|
|
702
702
|
},
|
|
703
703
|
borderRadius: { xs: `${b.xs}px`, md: `${b.md}px` },
|
|
704
704
|
boxSizing: "border-box",
|
|
705
705
|
overflow: "visible",
|
|
706
|
-
pb: { xs: `${
|
|
706
|
+
pb: { xs: `${s.xs}px`, md: `${s.md}px` },
|
|
707
707
|
"&::before": {
|
|
708
708
|
content: '""',
|
|
709
709
|
position: "absolute",
|
|
@@ -725,8 +725,8 @@ function oa({
|
|
|
725
725
|
borderRadius: "inherit",
|
|
726
726
|
overflow: "hidden"
|
|
727
727
|
},
|
|
728
|
-
children:
|
|
729
|
-
|
|
728
|
+
children: r ? /* @__PURE__ */ e(
|
|
729
|
+
V,
|
|
730
730
|
{
|
|
731
731
|
variant: "rectangular",
|
|
732
732
|
width: "100%",
|
|
@@ -758,13 +758,13 @@ function oa({
|
|
|
758
758
|
position: "absolute",
|
|
759
759
|
left: 8,
|
|
760
760
|
bottom: {
|
|
761
|
-
xs: `-${
|
|
762
|
-
md: `-${
|
|
761
|
+
xs: `-${s.xs}px`,
|
|
762
|
+
md: `-${s.md}px`
|
|
763
763
|
},
|
|
764
764
|
fontFamily: '"secondary", sans-serif',
|
|
765
765
|
fontSize: {
|
|
766
|
-
xs: `${
|
|
767
|
-
md: `${
|
|
766
|
+
xs: `${u.xs}px`,
|
|
767
|
+
md: `${u.md}px`
|
|
768
768
|
},
|
|
769
769
|
lineHeight: 1,
|
|
770
770
|
color: "#3CC666",
|
|
@@ -783,14 +783,14 @@ const ia = ({
|
|
|
783
783
|
logo: t,
|
|
784
784
|
provider: a,
|
|
785
785
|
providerName: n,
|
|
786
|
-
machine:
|
|
787
|
-
onClick:
|
|
786
|
+
machine: r,
|
|
787
|
+
onClick: l
|
|
788
788
|
}) => {
|
|
789
|
-
var
|
|
789
|
+
var i;
|
|
790
790
|
return /* @__PURE__ */ g(
|
|
791
791
|
L,
|
|
792
792
|
{
|
|
793
|
-
onClick:
|
|
793
|
+
onClick: l,
|
|
794
794
|
sx: {
|
|
795
795
|
flex: "0 0 auto",
|
|
796
796
|
position: "relative",
|
|
@@ -816,7 +816,7 @@ const ia = ({
|
|
|
816
816
|
{
|
|
817
817
|
component: "img",
|
|
818
818
|
src: t,
|
|
819
|
-
alt: `Juego ${
|
|
819
|
+
alt: `Juego ${r != null ? r : ""}`,
|
|
820
820
|
sx: {
|
|
821
821
|
position: "absolute",
|
|
822
822
|
inset: 0,
|
|
@@ -850,7 +850,7 @@ const ia = ({
|
|
|
850
850
|
fontSize: { xs: 11, md: 14 },
|
|
851
851
|
textTransform: "capitalize"
|
|
852
852
|
},
|
|
853
|
-
children: (
|
|
853
|
+
children: (i = a != null ? a : n) != null ? i : ""
|
|
854
854
|
}
|
|
855
855
|
)
|
|
856
856
|
}
|
|
@@ -859,7 +859,7 @@ const ia = ({
|
|
|
859
859
|
}
|
|
860
860
|
);
|
|
861
861
|
}, ke = 12, $e = ({ r: t = 16 }) => /* @__PURE__ */ e(L, { sx: { width: "100%", height: "100%", borderRadius: t, overflow: "hidden" }, children: /* @__PURE__ */ e(
|
|
862
|
-
|
|
862
|
+
V,
|
|
863
863
|
{
|
|
864
864
|
variant: "rectangular",
|
|
865
865
|
width: "100%",
|
|
@@ -877,10 +877,10 @@ const ia = ({
|
|
|
877
877
|
items: t,
|
|
878
878
|
layout: a = "grid",
|
|
879
879
|
onClick: n,
|
|
880
|
-
loading:
|
|
881
|
-
gridSkeletonCount:
|
|
880
|
+
loading: r = !1,
|
|
881
|
+
gridSkeletonCount: l = 4
|
|
882
882
|
}) => {
|
|
883
|
-
var
|
|
883
|
+
var i, c;
|
|
884
884
|
if (a === "mosaic") {
|
|
885
885
|
const p = t[0], b = t.slice(1, 5);
|
|
886
886
|
return /* @__PURE__ */ g(
|
|
@@ -917,10 +917,10 @@ const ia = ({
|
|
|
917
917
|
overflow: "hidden",
|
|
918
918
|
borderRadius: 2
|
|
919
919
|
},
|
|
920
|
-
children:
|
|
920
|
+
children: r ? /* @__PURE__ */ e($e, {}) : p && /* @__PURE__ */ e(
|
|
921
921
|
ye,
|
|
922
922
|
{
|
|
923
|
-
imageUrl: `https://olimpo.bet${(
|
|
923
|
+
imageUrl: `https://olimpo.bet${(c = (i = p.background) != null ? i : p.imageUrl) != null ? c : ""}`,
|
|
924
924
|
size: "lg",
|
|
925
925
|
fillParent: !0,
|
|
926
926
|
onClick: () => n == null ? void 0 : n(p, 0)
|
|
@@ -928,8 +928,8 @@ const ia = ({
|
|
|
928
928
|
)
|
|
929
929
|
}
|
|
930
930
|
),
|
|
931
|
-
(
|
|
932
|
-
var
|
|
931
|
+
(r ? Array.from({ length: 4 }) : b).map((u, s) => {
|
|
932
|
+
var d, _;
|
|
933
933
|
return /* @__PURE__ */ e(
|
|
934
934
|
L,
|
|
935
935
|
{
|
|
@@ -939,17 +939,17 @@ const ia = ({
|
|
|
939
939
|
overflow: "hidden",
|
|
940
940
|
borderRadius: 2
|
|
941
941
|
},
|
|
942
|
-
children:
|
|
942
|
+
children: r ? /* @__PURE__ */ e($e, {}) : /* @__PURE__ */ e(
|
|
943
943
|
ye,
|
|
944
944
|
{
|
|
945
|
-
imageUrl: `https://olimpo.bet${(_ = (
|
|
945
|
+
imageUrl: `https://olimpo.bet${(_ = (d = u.background) != null ? d : u.imageUrl) != null ? _ : ""}`,
|
|
946
946
|
size: "sm",
|
|
947
947
|
fillParent: !0,
|
|
948
|
-
onClick: () => n == null ? void 0 : n(
|
|
948
|
+
onClick: () => n == null ? void 0 : n(u, s + 1)
|
|
949
949
|
}
|
|
950
950
|
)
|
|
951
951
|
},
|
|
952
|
-
|
|
952
|
+
r ? `sk-${s}` : u.id
|
|
953
953
|
);
|
|
954
954
|
})
|
|
955
955
|
]
|
|
@@ -972,23 +972,23 @@ const ia = ({
|
|
|
972
972
|
gap: `${ke}px`,
|
|
973
973
|
gridAutoFlow: "column"
|
|
974
974
|
},
|
|
975
|
-
children: (
|
|
976
|
-
var
|
|
975
|
+
children: (r ? Array.from({ length: l }) : t).map((p, b) => {
|
|
976
|
+
var u, s, d;
|
|
977
977
|
return /* @__PURE__ */ e(
|
|
978
978
|
L,
|
|
979
979
|
{
|
|
980
980
|
sx: { overflow: "hidden", borderRadius: 2 },
|
|
981
|
-
children:
|
|
981
|
+
children: r ? /* @__PURE__ */ e($e, {}) : /* @__PURE__ */ e(
|
|
982
982
|
ye,
|
|
983
983
|
{
|
|
984
|
-
imageUrl: `https://olimpo.bet${(
|
|
984
|
+
imageUrl: `https://olimpo.bet${(s = (u = p.background) != null ? u : p.imageUrl) != null ? s : ""}`,
|
|
985
985
|
size: "sm",
|
|
986
986
|
fillParent: !0,
|
|
987
987
|
onClick: () => n == null ? void 0 : n(p, b)
|
|
988
988
|
}
|
|
989
989
|
)
|
|
990
990
|
},
|
|
991
|
-
|
|
991
|
+
r ? `sk-${b}` : (d = p.id) != null ? d : b
|
|
992
992
|
);
|
|
993
993
|
})
|
|
994
994
|
}
|
|
@@ -997,14 +997,14 @@ const ia = ({
|
|
|
997
997
|
title: t,
|
|
998
998
|
amount: a,
|
|
999
999
|
subtitle: n,
|
|
1000
|
-
buttonText:
|
|
1001
|
-
onButtonClick:
|
|
1002
|
-
backgroundImage:
|
|
1003
|
-
alt:
|
|
1000
|
+
buttonText: r,
|
|
1001
|
+
onButtonClick: l,
|
|
1002
|
+
backgroundImage: i,
|
|
1003
|
+
alt: c,
|
|
1004
1004
|
className: p = "",
|
|
1005
1005
|
variant: b = "small"
|
|
1006
1006
|
}) => {
|
|
1007
|
-
const
|
|
1007
|
+
const u = a ? a.slice(0, 2) : "", s = a ? a.slice(2) : "", d = b === "large";
|
|
1008
1008
|
return /* @__PURE__ */ g(
|
|
1009
1009
|
L,
|
|
1010
1010
|
{
|
|
@@ -1014,12 +1014,12 @@ const ia = ({
|
|
|
1014
1014
|
width: "100%",
|
|
1015
1015
|
maxWidth: {
|
|
1016
1016
|
xs: 328,
|
|
1017
|
-
md:
|
|
1017
|
+
md: d ? 618 : 456
|
|
1018
1018
|
},
|
|
1019
1019
|
mx: "auto"
|
|
1020
1020
|
},
|
|
1021
1021
|
children: [
|
|
1022
|
-
|
|
1022
|
+
i && /* @__PURE__ */ e(
|
|
1023
1023
|
L,
|
|
1024
1024
|
{
|
|
1025
1025
|
sx: {
|
|
@@ -1027,7 +1027,7 @@ const ia = ({
|
|
|
1027
1027
|
width: "100%",
|
|
1028
1028
|
aspectRatio: {
|
|
1029
1029
|
xs: "328 / 188",
|
|
1030
|
-
md:
|
|
1030
|
+
md: d ? "618 / 346" : "456 / 272"
|
|
1031
1031
|
},
|
|
1032
1032
|
borderRadius: "14px",
|
|
1033
1033
|
overflow: "hidden"
|
|
@@ -1036,8 +1036,8 @@ const ia = ({
|
|
|
1036
1036
|
L,
|
|
1037
1037
|
{
|
|
1038
1038
|
component: "img",
|
|
1039
|
-
src:
|
|
1040
|
-
alt:
|
|
1039
|
+
src: i,
|
|
1040
|
+
alt: c != null ? c : "Fondo promocional",
|
|
1041
1041
|
sx: {
|
|
1042
1042
|
width: "100%",
|
|
1043
1043
|
height: "100%",
|
|
@@ -1110,7 +1110,7 @@ const ia = ({
|
|
|
1110
1110
|
{
|
|
1111
1111
|
component: "span",
|
|
1112
1112
|
sx: { fontSize: { xs: 35, md: 48 }, mr: 0.5 },
|
|
1113
|
-
children:
|
|
1113
|
+
children: u
|
|
1114
1114
|
}
|
|
1115
1115
|
),
|
|
1116
1116
|
/* @__PURE__ */ e(
|
|
@@ -1118,7 +1118,7 @@ const ia = ({
|
|
|
1118
1118
|
{
|
|
1119
1119
|
component: "span",
|
|
1120
1120
|
sx: { fontSize: { xs: 52, md: 77 } },
|
|
1121
|
-
children:
|
|
1121
|
+
children: s
|
|
1122
1122
|
}
|
|
1123
1123
|
)
|
|
1124
1124
|
]
|
|
@@ -1136,7 +1136,7 @@ const ia = ({
|
|
|
1136
1136
|
children: n
|
|
1137
1137
|
}
|
|
1138
1138
|
),
|
|
1139
|
-
|
|
1139
|
+
r && /* @__PURE__ */ e(H, { onClick: l, children: r })
|
|
1140
1140
|
]
|
|
1141
1141
|
}
|
|
1142
1142
|
)
|
|
@@ -1149,44 +1149,44 @@ const ia = ({
|
|
|
1149
1149
|
text: t,
|
|
1150
1150
|
buttonLabel: a = "Conoce más",
|
|
1151
1151
|
onClick: n,
|
|
1152
|
-
imgAlt:
|
|
1153
|
-
imgSrcMobile:
|
|
1154
|
-
imgSrcDesktopBg:
|
|
1155
|
-
imgSrcDesktopLogo:
|
|
1152
|
+
imgAlt: r = "Club Olimpo",
|
|
1153
|
+
imgSrcMobile: l,
|
|
1154
|
+
imgSrcDesktopBg: i,
|
|
1155
|
+
imgSrcDesktopLogo: c
|
|
1156
1156
|
}) => /* @__PURE__ */ g(Q, { children: [
|
|
1157
1157
|
/* @__PURE__ */ e("div", { className: "orc-co-bgMobile", children: /* @__PURE__ */ e(
|
|
1158
1158
|
"img",
|
|
1159
1159
|
{
|
|
1160
|
-
src:
|
|
1161
|
-
alt:
|
|
1160
|
+
src: l,
|
|
1161
|
+
alt: r,
|
|
1162
1162
|
className: "orc-co-bgMobileImg"
|
|
1163
1163
|
}
|
|
1164
1164
|
) }),
|
|
1165
1165
|
/* @__PURE__ */ g("div", { className: "orc-co-bgDesktop", children: [
|
|
1166
|
-
|
|
1166
|
+
i && /* @__PURE__ */ e("div", { className: "orc-co-fillHost", children: /* @__PURE__ */ e(
|
|
1167
1167
|
"img",
|
|
1168
1168
|
{
|
|
1169
|
-
src:
|
|
1170
|
-
alt: `${
|
|
1169
|
+
src: i,
|
|
1170
|
+
alt: `${r} fondo`,
|
|
1171
1171
|
className: "orc-co-bgDesktopImg"
|
|
1172
1172
|
}
|
|
1173
1173
|
) }),
|
|
1174
1174
|
/* @__PURE__ */ g("div", { className: "orc-co-desktopContent", children: [
|
|
1175
|
-
|
|
1175
|
+
c && /* @__PURE__ */ e(
|
|
1176
1176
|
"img",
|
|
1177
1177
|
{
|
|
1178
|
-
src:
|
|
1179
|
-
alt: `${
|
|
1178
|
+
src: c,
|
|
1179
|
+
alt: `${r} logo`,
|
|
1180
1180
|
className: "orc-co-logoImg"
|
|
1181
1181
|
}
|
|
1182
1182
|
),
|
|
1183
1183
|
/* @__PURE__ */ e("p", { className: "orc-co-captionDesktop", children: t }),
|
|
1184
|
-
/* @__PURE__ */ e(
|
|
1184
|
+
/* @__PURE__ */ e(H, { onClick: n, variant: "primary", size: "md", children: a })
|
|
1185
1185
|
] })
|
|
1186
1186
|
] }),
|
|
1187
1187
|
/* @__PURE__ */ g("div", { className: "orc-co-bottom", children: [
|
|
1188
1188
|
/* @__PURE__ */ e("p", { className: "orc-co-caption", children: t }),
|
|
1189
|
-
/* @__PURE__ */ e(
|
|
1189
|
+
/* @__PURE__ */ e(H, { onClick: n, variant: "primary", size: "md", children: a })
|
|
1190
1190
|
] })
|
|
1191
1191
|
] }), la = "oraculo__OraculoEventCombinadasCard-module__card___ulQeY", sa = "oraculo__OraculoEventCombinadasCard-module__combinadas___Gxrld", ca = "oraculo__OraculoEventCombinadasCard-module__combinadasScroll___47cZl", da = "oraculo__OraculoEventCombinadasCard-module__apuestaItem___YnYMy", ua = "oraculo__OraculoEventCombinadasCard-module__lineContainer___G5rbU", ma = "oraculo__OraculoEventCombinadasCard-module__circle___eehm-", pa = "oraculo__OraculoEventCombinadasCard-module__line___Eb2pK", ga = "oraculo__OraculoEventCombinadasCard-module__apuestaText___b5s7S", fa = "oraculo__OraculoEventCombinadasCard-module__cuotaTotal___Lohvu", ee = {
|
|
1192
1192
|
card: la,
|
|
@@ -1224,10 +1224,10 @@ async function at(t) {
|
|
|
1224
1224
|
})).json();
|
|
1225
1225
|
}
|
|
1226
1226
|
function nt(t, a = 250) {
|
|
1227
|
-
const [n,
|
|
1227
|
+
const [n, r] = j(t);
|
|
1228
1228
|
return K(() => {
|
|
1229
|
-
const
|
|
1230
|
-
return () => clearTimeout(
|
|
1229
|
+
const l = setTimeout(() => r(t), a);
|
|
1230
|
+
return () => clearTimeout(l);
|
|
1231
1231
|
}, [t, a]), n;
|
|
1232
1232
|
}
|
|
1233
1233
|
const ot = pt(void 0), Me = ({ children: t, docId: a }) => {
|
|
@@ -1242,69 +1242,69 @@ const ot = pt(void 0), Me = ({ children: t, docId: a }) => {
|
|
|
1242
1242
|
function _a({ coupon: t }) {
|
|
1243
1243
|
var b;
|
|
1244
1244
|
const a = J(), n = X();
|
|
1245
|
-
function
|
|
1246
|
-
var _,
|
|
1247
|
-
const
|
|
1245
|
+
function r(u) {
|
|
1246
|
+
var _, y;
|
|
1247
|
+
const s = [], d = Array.from(
|
|
1248
1248
|
new Map(
|
|
1249
|
-
((_ =
|
|
1249
|
+
((_ = u == null ? void 0 : u.events) != null ? _ : []).filter(Boolean).map((E) => [E.id, E])
|
|
1250
1250
|
).values()
|
|
1251
1251
|
);
|
|
1252
|
-
return
|
|
1253
|
-
var
|
|
1254
|
-
const M = (
|
|
1255
|
-
M.forEach((
|
|
1256
|
-
var
|
|
1257
|
-
if (!((
|
|
1258
|
-
const
|
|
1259
|
-
if (!
|
|
1252
|
+
return d.forEach((E) => {
|
|
1253
|
+
var x;
|
|
1254
|
+
const M = (x = E.betoffers) != null ? x : [], v = E.homeName, N = E.awayName;
|
|
1255
|
+
M.forEach((S) => {
|
|
1256
|
+
var I, A, z, C, k, P, f;
|
|
1257
|
+
if (!((I = S == null ? void 0 : S.outcomes) != null && I.length)) return;
|
|
1258
|
+
const O = S.outcomes[0];
|
|
1259
|
+
if (!O) return;
|
|
1260
1260
|
let B = "";
|
|
1261
|
-
const
|
|
1262
|
-
["Más de", "Mas de", "Over"].includes(
|
|
1263
|
-
id:
|
|
1261
|
+
const R = O != null && O.line ? O.line / 1e3 : "";
|
|
1262
|
+
["Más de", "Mas de", "Over"].includes(O.label) ? (B = `Más de ${R}`, O.participant && (B = `${O.participant} - ${B}`)) : ["Menos de", "Menos", "Under"].includes(O.label) ? (B = `Menos de ${R}`, O.participant && (B = `${O.participant} - ${B}`)) : ["Sí", "No"].includes(O.label) ? (B = O.label, O.participant && (B = `${O.participant} - ${B}`)) : ["1X", "12", "X2"].includes(O.label) ? (O.label === "1X" && (B = `${v} o Empate`), O.label === "12" && (B = `${v} o ${N}`), O.label === "X2" && (B = `${N} o Empate`)) : (B = (z = (A = O.participant) != null ? A : O.label) != null ? z : "", R !== "" && B === O.label && (B = `${O.label} ${R}`)), s.push({
|
|
1263
|
+
id: O.id,
|
|
1264
1264
|
value: B,
|
|
1265
|
-
label: (k = (
|
|
1266
|
-
odds: (
|
|
1267
|
-
position: (f =
|
|
1268
|
-
eventId:
|
|
1265
|
+
label: (k = (C = S.criterion) == null ? void 0 : C.label) != null ? k : "",
|
|
1266
|
+
odds: (P = O.odds) != null ? P : 0,
|
|
1267
|
+
position: (f = O.position) != null ? f : 0,
|
|
1268
|
+
eventId: E.id
|
|
1269
1269
|
});
|
|
1270
1270
|
});
|
|
1271
1271
|
}), {
|
|
1272
|
-
outcomes:
|
|
1273
|
-
total: (((
|
|
1274
|
-
events:
|
|
1272
|
+
outcomes: s.sort((E, M) => E.position - M.position),
|
|
1273
|
+
total: (((y = u == null ? void 0 : u.combinadoTotal) != null ? y : 0) / 1e3).toFixed(2),
|
|
1274
|
+
events: d
|
|
1275
1275
|
};
|
|
1276
1276
|
}
|
|
1277
|
-
const
|
|
1278
|
-
const
|
|
1277
|
+
const l = (u, s) => {
|
|
1278
|
+
const d = Array.isArray(u) ? u : [u], _ = Array.from(
|
|
1279
1279
|
new Set(
|
|
1280
|
-
|
|
1281
|
-
var
|
|
1280
|
+
i.outcomes.map((M) => {
|
|
1281
|
+
var N;
|
|
1282
1282
|
const v = p.get(Number(M.eventId));
|
|
1283
|
-
return (
|
|
1283
|
+
return (N = v == null ? void 0 : v.name) != null ? N : "";
|
|
1284
1284
|
})
|
|
1285
1285
|
)
|
|
1286
|
-
).filter(Boolean),
|
|
1286
|
+
).filter(Boolean), y = _.length > 0 ? _.join(" + ") : JSON.stringify(d), E = s ? `${y} - Cuota: ${s}` : y;
|
|
1287
1287
|
a({
|
|
1288
1288
|
element: "evento_semana_outcome",
|
|
1289
|
-
label: `Landing: ${n} - OraculoEventCombinadasCard - Click: ${
|
|
1289
|
+
label: `Landing: ${n} - OraculoEventCombinadasCard - Click: ${E}`,
|
|
1290
1290
|
target: "/deportes#in-play",
|
|
1291
1291
|
event_type: "click",
|
|
1292
1292
|
module_id: 301,
|
|
1293
1293
|
metadata: {
|
|
1294
1294
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1295
1295
|
},
|
|
1296
|
-
tags: { section: "OraculoEventCombinadasCard", outcomes:
|
|
1297
|
-
}), Le(
|
|
1296
|
+
tags: { section: "OraculoEventCombinadasCard", outcomes: E }
|
|
1297
|
+
}), Le(u);
|
|
1298
1298
|
};
|
|
1299
1299
|
if (!((b = t == null ? void 0 : t.events) != null && b.length)) return null;
|
|
1300
|
-
const
|
|
1301
|
-
|
|
1300
|
+
const i = r(t), c = i.outcomes.reduce((u, s) => (u[s.eventId] || (u[s.eventId] = []), u[s.eventId].push(s), u), {}), p = new Map(
|
|
1301
|
+
i.events.map((u) => [u.id, u])
|
|
1302
1302
|
);
|
|
1303
1303
|
return /* @__PURE__ */ g("div", { className: ee.card, children: [
|
|
1304
|
-
/* @__PURE__ */ e("div", { className: ee.combinadas, children: /* @__PURE__ */ e("div", { className: ee.combinadasScroll, children: /* @__PURE__ */ e(
|
|
1305
|
-
const
|
|
1306
|
-
return
|
|
1307
|
-
|
|
1304
|
+
/* @__PURE__ */ e("div", { className: ee.combinadas, children: /* @__PURE__ */ e("div", { className: ee.combinadasScroll, children: /* @__PURE__ */ e(D, { direction: "column", spacing: 1.5, useFlexGap: !0, children: Object.entries(c).reverse().map(([u, s]) => {
|
|
1305
|
+
const d = p.get(Number(u));
|
|
1306
|
+
return d ? /* @__PURE__ */ g(
|
|
1307
|
+
D,
|
|
1308
1308
|
{
|
|
1309
1309
|
direction: "column",
|
|
1310
1310
|
spacing: 0.5,
|
|
@@ -1313,7 +1313,7 @@ function _a({ coupon: t }) {
|
|
|
1313
1313
|
/* @__PURE__ */ e(
|
|
1314
1314
|
le,
|
|
1315
1315
|
{
|
|
1316
|
-
title:
|
|
1316
|
+
title: d.name,
|
|
1317
1317
|
iconUrl: "/assets/img/home/Combinadas/pelota.png",
|
|
1318
1318
|
size: "xs"
|
|
1319
1319
|
}
|
|
@@ -1325,34 +1325,34 @@ function _a({ coupon: t }) {
|
|
|
1325
1325
|
src: "/assets/img/home/Combinadas/line.png"
|
|
1326
1326
|
}
|
|
1327
1327
|
),
|
|
1328
|
-
|
|
1328
|
+
s.map((_, y) => /* @__PURE__ */ g("div", { className: ee.apuestaItem, children: [
|
|
1329
1329
|
/* @__PURE__ */ g("div", { className: ee.lineContainer, children: [
|
|
1330
1330
|
/* @__PURE__ */ e("div", { className: ee.circle }),
|
|
1331
|
-
|
|
1331
|
+
y < s.length - 1 && /* @__PURE__ */ e("div", { className: ee.line })
|
|
1332
1332
|
] }),
|
|
1333
1333
|
/* @__PURE__ */ g("div", { className: ee.apuestaText, children: [
|
|
1334
1334
|
/* @__PURE__ */ e("strong", { children: _.value }),
|
|
1335
1335
|
" | ",
|
|
1336
1336
|
_.label
|
|
1337
1337
|
] })
|
|
1338
|
-
] }, `${
|
|
1338
|
+
] }, `${u}-${y}`))
|
|
1339
1339
|
]
|
|
1340
1340
|
},
|
|
1341
|
-
|
|
1341
|
+
u
|
|
1342
1342
|
) : null;
|
|
1343
1343
|
}) }) }) }),
|
|
1344
1344
|
/* @__PURE__ */ g(
|
|
1345
1345
|
"button",
|
|
1346
1346
|
{
|
|
1347
|
-
onClick: () =>
|
|
1348
|
-
|
|
1349
|
-
|
|
1347
|
+
onClick: () => l(
|
|
1348
|
+
i.outcomes.map((u) => u.id),
|
|
1349
|
+
i.total
|
|
1350
1350
|
),
|
|
1351
1351
|
className: ee.cuotaTotal,
|
|
1352
1352
|
children: [
|
|
1353
1353
|
/* @__PURE__ */ g("span", { children: [
|
|
1354
1354
|
"Cuota total: ",
|
|
1355
|
-
/* @__PURE__ */ e("strong", { children:
|
|
1355
|
+
/* @__PURE__ */ e("strong", { children: i.total })
|
|
1356
1356
|
] }),
|
|
1357
1357
|
/* @__PURE__ */ e(
|
|
1358
1358
|
"img",
|
|
@@ -1385,58 +1385,58 @@ function ya({
|
|
|
1385
1385
|
children: t,
|
|
1386
1386
|
onClick: a,
|
|
1387
1387
|
href: n,
|
|
1388
|
-
target:
|
|
1389
|
-
rel:
|
|
1390
|
-
type:
|
|
1391
|
-
disabled:
|
|
1388
|
+
target: r,
|
|
1389
|
+
rel: l,
|
|
1390
|
+
type: i = "button",
|
|
1391
|
+
disabled: c = !1,
|
|
1392
1392
|
variant: p = "primary",
|
|
1393
1393
|
size: b,
|
|
1394
|
-
fullWidth:
|
|
1395
|
-
fullHeight:
|
|
1396
|
-
className:
|
|
1394
|
+
fullWidth: u = !1,
|
|
1395
|
+
fullHeight: s = !1,
|
|
1396
|
+
className: d = "",
|
|
1397
1397
|
ariaLabel: _,
|
|
1398
|
-
leftIcon:
|
|
1399
|
-
rightIcon:
|
|
1398
|
+
leftIcon: y,
|
|
1399
|
+
rightIcon: E,
|
|
1400
1400
|
iconOnly: M
|
|
1401
1401
|
}) {
|
|
1402
|
-
const v = !!t && t !== !0,
|
|
1402
|
+
const v = !!t && t !== !0, S = (!!y ? 1 : 0) + (!!E ? 1 : 0) == 1, O = M != null ? M : S && !v, B = [
|
|
1403
1403
|
te["orc-btn"],
|
|
1404
1404
|
// base
|
|
1405
1405
|
te[`orc-btn--${p}`],
|
|
1406
1406
|
// variant primary/secondary/tertiary
|
|
1407
1407
|
b ? te[`orc-btn--${b}`] : "",
|
|
1408
1408
|
// sm / md / lg
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
].filter(Boolean).join(" "),
|
|
1414
|
-
|
|
1415
|
-
!
|
|
1416
|
-
|
|
1417
|
-
] }),
|
|
1409
|
+
u ? te["orc-btn--full"] : "",
|
|
1410
|
+
s ? te["orc-btn--fullHeight"] : "",
|
|
1411
|
+
O ? te["orc-btn--iconOnly"] : "",
|
|
1412
|
+
d
|
|
1413
|
+
].filter(Boolean).join(" "), R = /* @__PURE__ */ g(Q, { children: [
|
|
1414
|
+
y && /* @__PURE__ */ e("span", { className: te["orc-btn__icon"], children: y }),
|
|
1415
|
+
!O && /* @__PURE__ */ e("span", { className: te["orc-btn__label"], children: t }),
|
|
1416
|
+
E && /* @__PURE__ */ e("span", { className: te["orc-btn__icon"], children: E })
|
|
1417
|
+
] }), I = c ? !0 : void 0;
|
|
1418
1418
|
return n ? /* @__PURE__ */ e(
|
|
1419
1419
|
He,
|
|
1420
1420
|
{
|
|
1421
1421
|
href: n,
|
|
1422
|
-
target:
|
|
1423
|
-
rel:
|
|
1422
|
+
target: r,
|
|
1423
|
+
rel: l,
|
|
1424
1424
|
"aria-label": _,
|
|
1425
|
-
"aria-disabled":
|
|
1426
|
-
tabIndex:
|
|
1425
|
+
"aria-disabled": I,
|
|
1426
|
+
tabIndex: I ? -1 : void 0,
|
|
1427
1427
|
className: B,
|
|
1428
|
-
onClick:
|
|
1429
|
-
children:
|
|
1428
|
+
onClick: I ? (A) => A.preventDefault() : a,
|
|
1429
|
+
children: R
|
|
1430
1430
|
}
|
|
1431
1431
|
) : /* @__PURE__ */ e(
|
|
1432
1432
|
"button",
|
|
1433
1433
|
{
|
|
1434
|
-
type:
|
|
1434
|
+
type: i,
|
|
1435
1435
|
onClick: a,
|
|
1436
|
-
disabled: !!
|
|
1436
|
+
disabled: !!I,
|
|
1437
1437
|
"aria-label": _,
|
|
1438
1438
|
className: B,
|
|
1439
|
-
children:
|
|
1439
|
+
children: R
|
|
1440
1440
|
}
|
|
1441
1441
|
);
|
|
1442
1442
|
}
|
|
@@ -1457,22 +1457,22 @@ const xa = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", wa = "
|
|
|
1457
1457
|
real: !1,
|
|
1458
1458
|
type: "short_sleeves"
|
|
1459
1459
|
}, Ce = (t, a, n = "player") => {
|
|
1460
|
-
var
|
|
1460
|
+
var l, i;
|
|
1461
1461
|
if (t === void 0)
|
|
1462
1462
|
return null;
|
|
1463
1463
|
if (t === null)
|
|
1464
1464
|
return a === "home" ? Pe : ze;
|
|
1465
|
-
const
|
|
1466
|
-
return
|
|
1465
|
+
const r = (i = (l = t == null ? void 0 : t.jerseys) == null ? void 0 : l[a]) == null ? void 0 : i[n];
|
|
1466
|
+
return r || (a === "home" ? Pe : ze);
|
|
1467
1467
|
};
|
|
1468
|
-
function Ca({ event: t, liveData: a, betOffers: n, jersey:
|
|
1469
|
-
var p, b,
|
|
1470
|
-
const
|
|
1471
|
-
(
|
|
1472
|
-
var
|
|
1473
|
-
return ((
|
|
1468
|
+
function Ca({ event: t, liveData: a, betOffers: n, jersey: r }) {
|
|
1469
|
+
var p, b, u, s, d, _, y, E, M, v, N;
|
|
1470
|
+
const l = n == null ? void 0 : n.find(
|
|
1471
|
+
(x) => {
|
|
1472
|
+
var S;
|
|
1473
|
+
return ((S = x.betOfferType) == null ? void 0 : S.id) === 2;
|
|
1474
1474
|
}
|
|
1475
|
-
),
|
|
1475
|
+
), i = {
|
|
1476
1476
|
englishLabel: "",
|
|
1477
1477
|
type: "",
|
|
1478
1478
|
betOfferId: 0,
|
|
@@ -1481,33 +1481,33 @@ function Ca({ event: t, liveData: a, betOffers: n, jersey: i }) {
|
|
|
1481
1481
|
oddsAmerican: "",
|
|
1482
1482
|
status: "INACTIVE",
|
|
1483
1483
|
cashOutStatus: "SUSPENDED"
|
|
1484
|
-
},
|
|
1485
|
-
{ ...
|
|
1486
|
-
{ ...
|
|
1487
|
-
{ ...
|
|
1484
|
+
}, c = [
|
|
1485
|
+
{ ...i, id: -1, label: "1", odds: void 0 },
|
|
1486
|
+
{ ...i, id: -2, label: "X", odds: void 0 },
|
|
1487
|
+
{ ...i, id: -3, label: "2", odds: void 0 }
|
|
1488
1488
|
];
|
|
1489
|
-
return /* @__PURE__ */ e("div", { className: xe.cardWrapper, children: /* @__PURE__ */ g(
|
|
1490
|
-
/* @__PURE__ */ g(
|
|
1489
|
+
return /* @__PURE__ */ e("div", { className: xe.cardWrapper, children: /* @__PURE__ */ g(D, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1490
|
+
/* @__PURE__ */ g(D, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
1491
1491
|
/* @__PURE__ */ e(
|
|
1492
1492
|
$t,
|
|
1493
1493
|
{
|
|
1494
|
-
title: (
|
|
1495
|
-
subtitle: (
|
|
1494
|
+
title: (u = (b = (p = t == null ? void 0 : t.path) == null ? void 0 : p[0]) == null ? void 0 : b.name) != null ? u : "",
|
|
1495
|
+
subtitle: (s = t == null ? void 0 : t.group) != null ? s : "",
|
|
1496
1496
|
live: !0,
|
|
1497
|
-
time: ((
|
|
1497
|
+
time: ((d = a == null ? void 0 : a.matchClock) == null ? void 0 : d.minute) != null ? `${a.matchClock.minute}'` : ""
|
|
1498
1498
|
}
|
|
1499
1499
|
),
|
|
1500
1500
|
/* @__PURE__ */ e("div", { style: { padding: "0 4px" }, children: /* @__PURE__ */ g(oe, { spacing: 1.5, columns: "1fr auto 1fr", children: [
|
|
1501
|
-
/* @__PURE__ */ e(Se, { name: t == null ? void 0 : t.homeName, jersey: Ce(
|
|
1502
|
-
/* @__PURE__ */ e(et, { text: ((
|
|
1503
|
-
/* @__PURE__ */ e(Se, { name: t == null ? void 0 : t.awayName, jersey: Ce(
|
|
1501
|
+
/* @__PURE__ */ e(Se, { name: t == null ? void 0 : t.homeName, jersey: Ce(r, "home") }),
|
|
1502
|
+
/* @__PURE__ */ e(et, { text: ((y = (_ = a == null ? void 0 : a.score) == null ? void 0 : _.home) != null ? y : 0) + ":" + ((M = (E = a == null ? void 0 : a.score) == null ? void 0 : E.away) != null ? M : 0), name: "En vivo" }),
|
|
1503
|
+
/* @__PURE__ */ e(Se, { name: t == null ? void 0 : t.awayName, jersey: Ce(r, "away") })
|
|
1504
1504
|
] }) })
|
|
1505
1505
|
] }),
|
|
1506
|
-
/* @__PURE__ */ g(
|
|
1507
|
-
/* @__PURE__ */ e(oe, { spacing: 1, children: ((v =
|
|
1508
|
-
/* @__PURE__ */ e(oe, { spacing: 2, children: ((
|
|
1509
|
-
Le(
|
|
1510
|
-
}, className: xe.customButtonDisabled, children: /* @__PURE__ */ e("span", { className: xe.customButtonLabel, children:
|
|
1506
|
+
/* @__PURE__ */ g(D, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1507
|
+
/* @__PURE__ */ e(oe, { spacing: 1, children: ((v = l == null ? void 0 : l.outcomes) != null ? v : c).map((x, S) => /* @__PURE__ */ e(Ye, { text: x.label.toUpperCase() }, S)) }),
|
|
1508
|
+
/* @__PURE__ */ e(oe, { spacing: 2, children: ((N = l == null ? void 0 : l.outcomes) != null ? N : c).map((x, S) => /* @__PURE__ */ e(ya, { variant: "primary", disabled: x.odds == null || (l == null ? void 0 : l.cashOutStatus) == "SUSPENDED", onClick: () => {
|
|
1509
|
+
Le(x.id);
|
|
1510
|
+
}, className: xe.customButtonDisabled, children: /* @__PURE__ */ e("span", { className: xe.customButtonLabel, children: x.odds === void 0 ? "" : (x.odds / 1e3).toFixed(2) }) }, S)) })
|
|
1511
1511
|
] })
|
|
1512
1512
|
] }) });
|
|
1513
1513
|
}
|
|
@@ -1524,43 +1524,43 @@ const Ta = "oraculo__OraculoEventSemanaCard-module__cardContainer___4JuDe", ka =
|
|
|
1524
1524
|
equipos: Na
|
|
1525
1525
|
};
|
|
1526
1526
|
function Ma({ event: t, jersey: a }) {
|
|
1527
|
-
var
|
|
1528
|
-
const n = J(),
|
|
1529
|
-
function
|
|
1530
|
-
const
|
|
1531
|
-
let
|
|
1532
|
-
return
|
|
1527
|
+
var c, p, b, u, s, d, _;
|
|
1528
|
+
const n = J(), r = X();
|
|
1529
|
+
function l(y) {
|
|
1530
|
+
const E = new Date(y), M = E.toLocaleDateString("es-ES", { weekday: "short" }).toUpperCase(), v = E.getDate().toString().padStart(2, "0"), N = (E.getMonth() + 1).toString().padStart(2, "0");
|
|
1531
|
+
let x = E.toLocaleTimeString("es-PE", { hour: "numeric", minute: "2-digit", hour12: !0 }).toUpperCase();
|
|
1532
|
+
return x = x.replace(/\./g, "").replace(/A\s*M/i, "AM").replace(/P\s*M/i, "PM"), `${M} ${v}/${N} | ${x}`;
|
|
1533
1533
|
}
|
|
1534
|
-
const
|
|
1535
|
-
const M = `${t.homeName} vs ${t.awayName}`, v =
|
|
1534
|
+
const i = (y, E) => {
|
|
1535
|
+
const M = `${t.homeName} vs ${t.awayName}`, v = E ? (E / 1e3).toFixed(2) : "", N = v ? `${M} - Cuota: ${v}` : M;
|
|
1536
1536
|
n({
|
|
1537
1537
|
element: "evento_semana_outcome",
|
|
1538
|
-
label: `Landing: ${
|
|
1538
|
+
label: `Landing: ${r} - OraculoEventSemanaCard - Click: ${N}`,
|
|
1539
1539
|
target: "/deportes#in-play",
|
|
1540
1540
|
event_type: "click",
|
|
1541
1541
|
module_id: 301,
|
|
1542
1542
|
metadata: {
|
|
1543
1543
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1544
1544
|
},
|
|
1545
|
-
tags: { section: "OraculoEventSemanaCard", outcomes:
|
|
1546
|
-
}), Le(
|
|
1545
|
+
tags: { section: "OraculoEventSemanaCard", outcomes: N }
|
|
1546
|
+
}), Le(y);
|
|
1547
1547
|
};
|
|
1548
1548
|
return /* @__PURE__ */ g("div", { className: ce.cardContainer, children: [
|
|
1549
|
-
/* @__PURE__ */ e(Qe, { title: (
|
|
1550
|
-
/* @__PURE__ */ e("div", { className: ce.cardBackground, children: /* @__PURE__ */ g(
|
|
1551
|
-
/* @__PURE__ */ g(
|
|
1549
|
+
/* @__PURE__ */ e(Qe, { title: (c = t == null ? void 0 : t.group) != null ? c : "" }),
|
|
1550
|
+
/* @__PURE__ */ e("div", { className: ce.cardBackground, children: /* @__PURE__ */ g(D, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
1551
|
+
/* @__PURE__ */ g(D, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1552
1552
|
/* @__PURE__ */ g("div", { className: ce.equipos, children: [
|
|
1553
1553
|
/* @__PURE__ */ e(Se, { name: t.homeName, size: "compact", jersey: Ce(a, "home") }),
|
|
1554
1554
|
/* @__PURE__ */ e(et, { text: "vs.", name: "", size: "small" }),
|
|
1555
1555
|
/* @__PURE__ */ e(Se, { name: t.awayName, size: "compact", jersey: Ce(a, "away") })
|
|
1556
1556
|
] }),
|
|
1557
|
-
/* @__PURE__ */ e(Ia, { text:
|
|
1557
|
+
/* @__PURE__ */ e(Ia, { text: l(t.start) })
|
|
1558
1558
|
] }),
|
|
1559
|
-
/* @__PURE__ */ g(
|
|
1560
|
-
/* @__PURE__ */ e(oe, { spacing: 1, children: ((
|
|
1561
|
-
/* @__PURE__ */ e("div", { className: ce.jugadas, children: /* @__PURE__ */ e(oe, { spacing: 1, children: ((_ = (
|
|
1562
|
-
|
|
1563
|
-
}, children: (
|
|
1559
|
+
/* @__PURE__ */ g(D, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
1560
|
+
/* @__PURE__ */ e(oe, { spacing: 1, children: ((u = (b = (p = t == null ? void 0 : t.outcome) == null ? void 0 : p[0]) == null ? void 0 : b.outcomes) != null ? u : []).map((y, E) => /* @__PURE__ */ e(Ye, { text: y.label.toUpperCase() }, E)) }),
|
|
1561
|
+
/* @__PURE__ */ e("div", { className: ce.jugadas, children: /* @__PURE__ */ e(oe, { spacing: 1, children: ((_ = (d = (s = t == null ? void 0 : t.outcome) == null ? void 0 : s[0]) == null ? void 0 : d.outcomes) != null ? _ : []).map((y, E) => /* @__PURE__ */ e(H, { variant: "primary", fullHeight: !0, onClick: () => {
|
|
1562
|
+
i(y.id, y.odds);
|
|
1563
|
+
}, children: (y.odds / 1e3).toFixed(2) }, E)) }) })
|
|
1564
1564
|
] })
|
|
1565
1565
|
] }) })
|
|
1566
1566
|
] });
|
|
@@ -1569,14 +1569,14 @@ function Ba({
|
|
|
1569
1569
|
items: t,
|
|
1570
1570
|
title: a = "Destacados",
|
|
1571
1571
|
iconUrl: n,
|
|
1572
|
-
onViewMore:
|
|
1573
|
-
className:
|
|
1572
|
+
onViewMore: r,
|
|
1573
|
+
className: l = ""
|
|
1574
1574
|
}) {
|
|
1575
|
-
const
|
|
1575
|
+
const i = U(null), [c, p] = j({ isStart: !0, isEnd: !1 }), b = J(), u = X(), s = !t || t.length === 0, d = () => {
|
|
1576
1576
|
var v;
|
|
1577
1577
|
b({
|
|
1578
1578
|
element: "destacados_carousel_prev",
|
|
1579
|
-
label: `Landing: ${
|
|
1579
|
+
label: `Landing: ${u} - OraculoSeccionDestacados - Anterior`,
|
|
1580
1580
|
target: "carousel",
|
|
1581
1581
|
event_type: "click",
|
|
1582
1582
|
module_id: 301,
|
|
@@ -1584,12 +1584,12 @@ function Ba({
|
|
|
1584
1584
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1585
1585
|
},
|
|
1586
1586
|
tags: { section: "OraculoSeccionDestacados" }
|
|
1587
|
-
}), (v =
|
|
1587
|
+
}), (v = i.current) == null || v.prev();
|
|
1588
1588
|
}, _ = () => {
|
|
1589
1589
|
var v;
|
|
1590
1590
|
b({
|
|
1591
1591
|
element: "destacados_carousel_next",
|
|
1592
|
-
label: `Landing: ${
|
|
1592
|
+
label: `Landing: ${u} - OraculoSeccionDestacados - Siguiente`,
|
|
1593
1593
|
target: "carousel",
|
|
1594
1594
|
event_type: "click",
|
|
1595
1595
|
module_id: 301,
|
|
@@ -1597,11 +1597,11 @@ function Ba({
|
|
|
1597
1597
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1598
1598
|
},
|
|
1599
1599
|
tags: { section: "OraculoSeccionDestacados" }
|
|
1600
|
-
}), (v =
|
|
1601
|
-
},
|
|
1600
|
+
}), (v = i.current) == null || v.next();
|
|
1601
|
+
}, y = () => {
|
|
1602
1602
|
b({
|
|
1603
1603
|
element: "destacados_view_more",
|
|
1604
|
-
label: `Landing: ${
|
|
1604
|
+
label: `Landing: ${u} - OraculoSeccionDestacados - Ver más`,
|
|
1605
1605
|
target: "https://www.olimpo.bet/promociones",
|
|
1606
1606
|
event_type: "click",
|
|
1607
1607
|
module_id: 301,
|
|
@@ -1610,13 +1610,13 @@ function Ba({
|
|
|
1610
1610
|
},
|
|
1611
1611
|
tags: { section: "OraculoSeccionDestacados" }
|
|
1612
1612
|
}), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/promociones");
|
|
1613
|
-
},
|
|
1613
|
+
}, E = (v) => {
|
|
1614
1614
|
if (!v) return;
|
|
1615
|
-
const
|
|
1615
|
+
const x = `https://www.olimpo.bet/promociones/${encodeURIComponent(v)}`;
|
|
1616
1616
|
b({
|
|
1617
1617
|
element: "destacados_card",
|
|
1618
|
-
label: `Landing: ${
|
|
1619
|
-
target:
|
|
1618
|
+
label: `Landing: ${u} - OraculoSeccionDestacados - Click: ${String(v)}`,
|
|
1619
|
+
target: x,
|
|
1620
1620
|
event_type: "click",
|
|
1621
1621
|
module_id: 301,
|
|
1622
1622
|
metadata: {
|
|
@@ -1626,9 +1626,9 @@ function Ba({
|
|
|
1626
1626
|
section: "OraculoSeccionDestacados",
|
|
1627
1627
|
promotion: String(v)
|
|
1628
1628
|
}
|
|
1629
|
-
}), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(
|
|
1629
|
+
}), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(x);
|
|
1630
1630
|
};
|
|
1631
|
-
return /* @__PURE__ */ g("section", { className:
|
|
1631
|
+
return /* @__PURE__ */ g("section", { className: l || void 0, style: { width: "100%" }, children: [
|
|
1632
1632
|
/* @__PURE__ */ g(
|
|
1633
1633
|
"header",
|
|
1634
1634
|
{
|
|
@@ -1646,36 +1646,36 @@ function Ba({
|
|
|
1646
1646
|
/* @__PURE__ */ e(le, { title: a, iconUrl: n, size: "md" }),
|
|
1647
1647
|
/* @__PURE__ */ g("div", { style: { display: "flex", gap: 8 }, children: [
|
|
1648
1648
|
/* @__PURE__ */ e(
|
|
1649
|
-
|
|
1649
|
+
H,
|
|
1650
1650
|
{
|
|
1651
1651
|
ariaLabel: "Anterior",
|
|
1652
1652
|
variant: "secondary",
|
|
1653
1653
|
iconOnly: !0,
|
|
1654
1654
|
leftIcon: /* @__PURE__ */ e(Ee, {}),
|
|
1655
|
-
onClick:
|
|
1656
|
-
disabled:
|
|
1655
|
+
onClick: d,
|
|
1656
|
+
disabled: c.isStart || s
|
|
1657
1657
|
}
|
|
1658
1658
|
),
|
|
1659
1659
|
/* @__PURE__ */ e(
|
|
1660
|
-
|
|
1660
|
+
H,
|
|
1661
1661
|
{
|
|
1662
1662
|
ariaLabel: "Siguiente",
|
|
1663
1663
|
variant: "secondary",
|
|
1664
1664
|
iconOnly: !0,
|
|
1665
1665
|
rightIcon: /* @__PURE__ */ e(Ie, {}),
|
|
1666
1666
|
onClick: _,
|
|
1667
|
-
disabled:
|
|
1667
|
+
disabled: c.isEnd || s
|
|
1668
1668
|
}
|
|
1669
1669
|
)
|
|
1670
1670
|
] }),
|
|
1671
|
-
/* @__PURE__ */ e(
|
|
1671
|
+
/* @__PURE__ */ e(H, { variant: "secondary", onClick: y, children: "Ver más" })
|
|
1672
1672
|
]
|
|
1673
1673
|
}
|
|
1674
1674
|
),
|
|
1675
1675
|
/* @__PURE__ */ e(
|
|
1676
1676
|
se,
|
|
1677
1677
|
{
|
|
1678
|
-
ref:
|
|
1678
|
+
ref: i,
|
|
1679
1679
|
items: t,
|
|
1680
1680
|
perPage: void 0,
|
|
1681
1681
|
gap: "16px",
|
|
@@ -1694,7 +1694,7 @@ function Ba({
|
|
|
1694
1694
|
marginTop: 16,
|
|
1695
1695
|
cursor: "pointer"
|
|
1696
1696
|
},
|
|
1697
|
-
onClick: () =>
|
|
1697
|
+
onClick: () => E(v.promotion),
|
|
1698
1698
|
children: /* @__PURE__ */ e(
|
|
1699
1699
|
"img",
|
|
1700
1700
|
{
|
|
@@ -1712,8 +1712,8 @@ function Ba({
|
|
|
1712
1712
|
},
|
|
1713
1713
|
`${v.title}-${v.image}`
|
|
1714
1714
|
),
|
|
1715
|
-
onMove: ({ isStart: v, isEnd:
|
|
1716
|
-
p({ isStart: v, isEnd:
|
|
1715
|
+
onMove: ({ isStart: v, isEnd: N }) => {
|
|
1716
|
+
p({ isStart: v, isEnd: N }), b({
|
|
1717
1717
|
element: "destacados_carousel_slide",
|
|
1718
1718
|
label: "OraculoSeccionDestacados - Slide Carousel",
|
|
1719
1719
|
target: "carousel",
|
|
@@ -1722,7 +1722,7 @@ function Ba({
|
|
|
1722
1722
|
metadata: {
|
|
1723
1723
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
1724
1724
|
isStart: v,
|
|
1725
|
-
isEnd:
|
|
1725
|
+
isEnd: N
|
|
1726
1726
|
},
|
|
1727
1727
|
tags: { section: "OraculoSeccionDestacados" }
|
|
1728
1728
|
});
|
|
@@ -1750,39 +1750,39 @@ function Ra({
|
|
|
1750
1750
|
items: t,
|
|
1751
1751
|
title: a = "Top Juegos",
|
|
1752
1752
|
iconUrl: n,
|
|
1753
|
-
onCardClick:
|
|
1753
|
+
onCardClick: r
|
|
1754
1754
|
}) {
|
|
1755
|
-
const
|
|
1756
|
-
() => (t != null ? t : []).map((
|
|
1755
|
+
const l = J(), i = X(), c = ne(
|
|
1756
|
+
() => (t != null ? t : []).map((s, d) => {
|
|
1757
1757
|
var _;
|
|
1758
1758
|
return {
|
|
1759
|
-
...
|
|
1760
|
-
orden: (_ =
|
|
1761
|
-
_originalIndex:
|
|
1759
|
+
...s,
|
|
1760
|
+
orden: (_ = s.orden) != null ? _ : d + 1,
|
|
1761
|
+
_originalIndex: d
|
|
1762
1762
|
};
|
|
1763
|
-
}).sort((
|
|
1763
|
+
}).sort((s, d) => s.orden != null && d.orden != null ? s.orden - d.orden : s._originalIndex - d._originalIndex),
|
|
1764
1764
|
[t]
|
|
1765
|
-
), p = !t || t.length === 0, b = p ? Array.from({ length: 6 }) :
|
|
1766
|
-
|
|
1765
|
+
), p = !t || t.length === 0, b = p ? Array.from({ length: 6 }) : c.slice(0, 6), u = (s) => {
|
|
1766
|
+
l({
|
|
1767
1767
|
element: "top_juegos_card",
|
|
1768
|
-
label: `Landing: ${
|
|
1769
|
-
target: String(
|
|
1768
|
+
label: `Landing: ${i} - OraculoSeccionTopJuegos - Open game: ${String(s.machine || "unknown")}`,
|
|
1769
|
+
target: String(s.machine || "unknown"),
|
|
1770
1770
|
event_type: "click",
|
|
1771
1771
|
module_id: 301,
|
|
1772
1772
|
metadata: {
|
|
1773
1773
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1774
1774
|
},
|
|
1775
1775
|
tags: {
|
|
1776
|
-
game_name: String(
|
|
1776
|
+
game_name: String(s.machine || "unknown"),
|
|
1777
1777
|
section: "OraculoSeccionTopJuegos"
|
|
1778
1778
|
}
|
|
1779
1779
|
});
|
|
1780
|
-
const
|
|
1781
|
-
|
|
1782
|
-
_ == null || _(
|
|
1780
|
+
const d = re("showIframe"), _ = re("loadMachine");
|
|
1781
|
+
d == null || d(), requestAnimationFrame(() => {
|
|
1782
|
+
_ == null || _(s, !1, "CASINO");
|
|
1783
1783
|
});
|
|
1784
1784
|
};
|
|
1785
|
-
return /* @__PURE__ */ e("section", { style: { width: "100%" }, children: /* @__PURE__ */ g(
|
|
1785
|
+
return /* @__PURE__ */ e("section", { style: { width: "100%" }, children: /* @__PURE__ */ g(D, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
1786
1786
|
/* @__PURE__ */ e(le, { title: a, iconUrl: n, size: "md" }),
|
|
1787
1787
|
/* @__PURE__ */ e(
|
|
1788
1788
|
L,
|
|
@@ -1797,19 +1797,19 @@ function Ra({
|
|
|
1797
1797
|
justifyItems: "center",
|
|
1798
1798
|
width: "100%"
|
|
1799
1799
|
},
|
|
1800
|
-
children: b.map((
|
|
1801
|
-
var _,
|
|
1800
|
+
children: b.map((s, d) => {
|
|
1801
|
+
var _, y;
|
|
1802
1802
|
return /* @__PURE__ */ e(
|
|
1803
1803
|
oa,
|
|
1804
1804
|
{
|
|
1805
|
-
imageUrl: p ? "" :
|
|
1806
|
-
orden: p ?
|
|
1805
|
+
imageUrl: p ? "" : s.background ? `https://olimpo.bet${s.background}` : `https://olimpo.bet${(_ = s.logo) != null ? _ : ""}`,
|
|
1806
|
+
orden: p ? d + 1 : s.orden,
|
|
1807
1807
|
loading: p,
|
|
1808
1808
|
onClick: p ? void 0 : () => {
|
|
1809
|
-
|
|
1809
|
+
r == null || r(s), u(s);
|
|
1810
1810
|
}
|
|
1811
1811
|
},
|
|
1812
|
-
p ? `sk-${
|
|
1812
|
+
p ? `sk-${d}` : (y = s.machine) != null ? y : `${d}`
|
|
1813
1813
|
);
|
|
1814
1814
|
})
|
|
1815
1815
|
}
|
|
@@ -1817,38 +1817,38 @@ function Ra({
|
|
|
1817
1817
|
] }) });
|
|
1818
1818
|
}
|
|
1819
1819
|
const Fa = (t, a) => {
|
|
1820
|
-
var n,
|
|
1821
|
-
return (
|
|
1820
|
+
var n, r;
|
|
1821
|
+
return (r = (n = t.orden) != null ? n : t.machine) != null ? r : a;
|
|
1822
1822
|
}, Pa = ({
|
|
1823
1823
|
items: t,
|
|
1824
1824
|
title: a = "Casino en vivo",
|
|
1825
1825
|
subtitle: n = "Disfruta la emoción en tus juegos favoritos y gana en tiempo real.",
|
|
1826
|
-
backgroundMobileUrl:
|
|
1827
|
-
backgroundDesktopUrl:
|
|
1828
|
-
onViewMore:
|
|
1829
|
-
className:
|
|
1826
|
+
backgroundMobileUrl: r = "",
|
|
1827
|
+
backgroundDesktopUrl: l = "",
|
|
1828
|
+
onViewMore: i,
|
|
1829
|
+
className: c
|
|
1830
1830
|
}) => {
|
|
1831
|
-
const p = J(), b = X(),
|
|
1831
|
+
const p = J(), b = X(), u = (d) => {
|
|
1832
1832
|
p({
|
|
1833
1833
|
element: "live_casino_card",
|
|
1834
|
-
label: `Landing: ${b} - OraculoSeccionCasinoEnVivo - Open game: ${String(
|
|
1835
|
-
target: String(
|
|
1834
|
+
label: `Landing: ${b} - OraculoSeccionCasinoEnVivo - Open game: ${String(d.machine || "unknown")}`,
|
|
1835
|
+
target: String(d.machine || "unknown"),
|
|
1836
1836
|
event_type: "click",
|
|
1837
1837
|
module_id: 301,
|
|
1838
1838
|
metadata: {
|
|
1839
1839
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1840
1840
|
},
|
|
1841
1841
|
tags: {
|
|
1842
|
-
game_name: String(
|
|
1843
|
-
provider:
|
|
1842
|
+
game_name: String(d.machine || "unknown"),
|
|
1843
|
+
provider: d.provider || "unknown",
|
|
1844
1844
|
section: "OraculoSeccionCasinoEnVivo"
|
|
1845
1845
|
}
|
|
1846
1846
|
});
|
|
1847
|
-
const _ = re("showIframe"),
|
|
1847
|
+
const _ = re("showIframe"), y = re("loadMachine");
|
|
1848
1848
|
_ == null || _(), typeof window != "undefined" && window.scrollTo({ top: 0, behavior: "smooth" }), requestAnimationFrame(() => {
|
|
1849
|
-
|
|
1849
|
+
y == null || y(d, !1, "casino_en_vivo");
|
|
1850
1850
|
});
|
|
1851
|
-
},
|
|
1851
|
+
}, s = () => {
|
|
1852
1852
|
p({
|
|
1853
1853
|
element: "casino_en_vivo_view_more",
|
|
1854
1854
|
label: `Landing: ${b} - OraculoSeccionCasinoEnVivo - Ver más`,
|
|
@@ -1859,12 +1859,12 @@ const Fa = (t, a) => {
|
|
|
1859
1859
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1860
1860
|
},
|
|
1861
1861
|
tags: { section: "OraculoSeccionCasinoEnVivo" }
|
|
1862
|
-
}), typeof globalThis != "undefined" && globalThis.location && (
|
|
1862
|
+
}), typeof globalThis != "undefined" && globalThis.location && (i ? i() : globalThis.location.assign("https://www.olimpo.bet/casino-en-vivo"));
|
|
1863
1863
|
};
|
|
1864
1864
|
return /* @__PURE__ */ g(
|
|
1865
1865
|
L,
|
|
1866
1866
|
{
|
|
1867
|
-
className:
|
|
1867
|
+
className: c,
|
|
1868
1868
|
sx: {
|
|
1869
1869
|
position: "relative",
|
|
1870
1870
|
color: "white",
|
|
@@ -1882,12 +1882,12 @@ const Fa = (t, a) => {
|
|
|
1882
1882
|
xs: `
|
|
1883
1883
|
linear-gradient(to bottom, #121212 0%, rgba(18,18,18,0) 10%),
|
|
1884
1884
|
linear-gradient(to top, #121212 0%, rgba(18,18,18,0) 10%),
|
|
1885
|
-
url('${
|
|
1885
|
+
url('${r}')
|
|
1886
1886
|
`,
|
|
1887
1887
|
md: `
|
|
1888
1888
|
linear-gradient(to bottom, #121212 0%, rgba(18,18,18,0) 10%),
|
|
1889
1889
|
linear-gradient(to top, #121212 0%, rgba(18,18,18,0) 10%),
|
|
1890
|
-
url('${
|
|
1890
|
+
url('${l}')
|
|
1891
1891
|
`
|
|
1892
1892
|
},
|
|
1893
1893
|
backgroundSize: "cover",
|
|
@@ -1915,7 +1915,7 @@ const Fa = (t, a) => {
|
|
|
1915
1915
|
textAlign: { xs: "center", md: "left" }
|
|
1916
1916
|
},
|
|
1917
1917
|
children: [
|
|
1918
|
-
/* @__PURE__ */ g(
|
|
1918
|
+
/* @__PURE__ */ g(D, { spacing: 3, sx: { maxWidth: { md: 280 } }, children: [
|
|
1919
1919
|
/* @__PURE__ */ e(
|
|
1920
1920
|
ae,
|
|
1921
1921
|
{
|
|
@@ -1942,11 +1942,11 @@ const Fa = (t, a) => {
|
|
|
1942
1942
|
}
|
|
1943
1943
|
),
|
|
1944
1944
|
/* @__PURE__ */ e(L, { sx: { display: { xs: "none", md: "block" } }, children: /* @__PURE__ */ e(
|
|
1945
|
-
|
|
1945
|
+
H,
|
|
1946
1946
|
{
|
|
1947
1947
|
variant: "primary",
|
|
1948
1948
|
size: "md",
|
|
1949
|
-
onClick:
|
|
1949
|
+
onClick: s,
|
|
1950
1950
|
children: "Ver más"
|
|
1951
1951
|
}
|
|
1952
1952
|
) })
|
|
@@ -1962,28 +1962,28 @@ const Fa = (t, a) => {
|
|
|
1962
1962
|
py: { xs: 3, md: 0 },
|
|
1963
1963
|
alignItems: "center"
|
|
1964
1964
|
},
|
|
1965
|
-
children: (t != null ? t : []).slice(0, 3).map((
|
|
1966
|
-
var
|
|
1965
|
+
children: (t != null ? t : []).slice(0, 3).map((d, _) => {
|
|
1966
|
+
var y;
|
|
1967
1967
|
return /* @__PURE__ */ e(
|
|
1968
1968
|
ia,
|
|
1969
1969
|
{
|
|
1970
|
-
logo: `https://olimpo.bet${
|
|
1971
|
-
provider:
|
|
1972
|
-
providerName:
|
|
1973
|
-
machine:
|
|
1974
|
-
onClick: () =>
|
|
1970
|
+
logo: `https://olimpo.bet${d.background ? d.background : (y = d.logo) != null ? y : ""}`,
|
|
1971
|
+
provider: d.provider,
|
|
1972
|
+
providerName: d.web_name,
|
|
1973
|
+
machine: d.machine,
|
|
1974
|
+
onClick: () => u(d)
|
|
1975
1975
|
},
|
|
1976
|
-
Fa(
|
|
1976
|
+
Fa(d, _)
|
|
1977
1977
|
);
|
|
1978
1978
|
})
|
|
1979
1979
|
}
|
|
1980
1980
|
),
|
|
1981
1981
|
/* @__PURE__ */ e(L, { sx: { display: { xs: "block", md: "none" } }, children: /* @__PURE__ */ e(
|
|
1982
|
-
|
|
1982
|
+
H,
|
|
1983
1983
|
{
|
|
1984
1984
|
variant: "primary",
|
|
1985
1985
|
size: "lg",
|
|
1986
|
-
onClick:
|
|
1986
|
+
onClick: s,
|
|
1987
1987
|
children: "Ver más"
|
|
1988
1988
|
}
|
|
1989
1989
|
) })
|
|
@@ -1994,48 +1994,48 @@ const Fa = (t, a) => {
|
|
|
1994
1994
|
}
|
|
1995
1995
|
);
|
|
1996
1996
|
}, rt = (t, a) => {
|
|
1997
|
-
var n,
|
|
1998
|
-
return (
|
|
1997
|
+
var n, r;
|
|
1998
|
+
return (r = (n = t.orden) != null ? n : t.machine) != null ? r : a;
|
|
1999
1999
|
}, za = (t, a = !0, n = 1) => {
|
|
2000
|
-
const
|
|
2000
|
+
const r = t.map((c, p) => {
|
|
2001
2001
|
var b;
|
|
2002
2002
|
return {
|
|
2003
|
-
id: rt(
|
|
2004
|
-
imageUrl: (b =
|
|
2005
|
-
...
|
|
2003
|
+
id: rt(c, p),
|
|
2004
|
+
imageUrl: (b = c.logo) != null ? b : "",
|
|
2005
|
+
...c.background ? { background: c.background } : {}
|
|
2006
2006
|
};
|
|
2007
2007
|
});
|
|
2008
|
-
if (!
|
|
2009
|
-
const
|
|
2010
|
-
let
|
|
2008
|
+
if (!r.length) return [];
|
|
2009
|
+
const l = [];
|
|
2010
|
+
let i = 0;
|
|
2011
2011
|
if (a) {
|
|
2012
|
-
const
|
|
2013
|
-
|
|
2012
|
+
const c = Math.min(r.length, 1);
|
|
2013
|
+
l.push({
|
|
2014
2014
|
id: "mosaic-0",
|
|
2015
2015
|
kind: "mosaic",
|
|
2016
|
-
items:
|
|
2017
|
-
}),
|
|
2016
|
+
items: r.slice(0, c)
|
|
2017
|
+
}), i = c;
|
|
2018
2018
|
}
|
|
2019
|
-
for (;
|
|
2020
|
-
const
|
|
2021
|
-
|
|
2022
|
-
id: `grid-${
|
|
2019
|
+
for (; i < r.length; ) {
|
|
2020
|
+
const c = Math.min(i + n, r.length);
|
|
2021
|
+
l.push({
|
|
2022
|
+
id: `grid-${i}`,
|
|
2023
2023
|
kind: "grid",
|
|
2024
|
-
items:
|
|
2025
|
-
}),
|
|
2024
|
+
items: r.slice(i, c)
|
|
2025
|
+
}), i = c;
|
|
2026
2026
|
}
|
|
2027
|
-
return
|
|
2027
|
+
return l;
|
|
2028
2028
|
}, Ua = ({
|
|
2029
2029
|
items: t,
|
|
2030
2030
|
title: a = "Casino",
|
|
2031
2031
|
iconUrl: n = "/assets/img/home/Casino/diamante.svg",
|
|
2032
|
-
onItemClick:
|
|
2033
|
-
onViewMore:
|
|
2034
|
-
mosaicFirst:
|
|
2035
|
-
gridSize:
|
|
2032
|
+
onItemClick: r,
|
|
2033
|
+
onViewMore: l,
|
|
2034
|
+
mosaicFirst: i = !0,
|
|
2035
|
+
gridSize: c = 1
|
|
2036
2036
|
}) => {
|
|
2037
|
-
const p = J(), b = X(),
|
|
2038
|
-
var
|
|
2037
|
+
const p = J(), b = X(), u = U(null), [s, d] = j({ isStart: !0, isEnd: !1 }), _ = () => {
|
|
2038
|
+
var x;
|
|
2039
2039
|
p({
|
|
2040
2040
|
element: "casino_prev",
|
|
2041
2041
|
label: `Landing: ${b} - OraculoSeccionCasino - Anterior`,
|
|
@@ -2046,9 +2046,9 @@ const Fa = (t, a) => {
|
|
|
2046
2046
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2047
2047
|
},
|
|
2048
2048
|
tags: { section: "OraculoSeccionCasino" }
|
|
2049
|
-
}), (
|
|
2050
|
-
},
|
|
2051
|
-
var
|
|
2049
|
+
}), (x = u.current) == null || x.prev();
|
|
2050
|
+
}, y = () => {
|
|
2051
|
+
var x;
|
|
2052
2052
|
p({
|
|
2053
2053
|
element: "casino_next",
|
|
2054
2054
|
label: `Landing: ${b} - OraculoSeccionCasino - Siguiente`,
|
|
@@ -2059,8 +2059,8 @@ const Fa = (t, a) => {
|
|
|
2059
2059
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2060
2060
|
},
|
|
2061
2061
|
tags: { section: "OraculoSeccionCasino" }
|
|
2062
|
-
}), (
|
|
2063
|
-
},
|
|
2062
|
+
}), (x = u.current) == null || x.next();
|
|
2063
|
+
}, E = () => {
|
|
2064
2064
|
p({
|
|
2065
2065
|
element: "casino_view_more",
|
|
2066
2066
|
label: `Landing: ${b} - OraculoSeccionCasino - Ver más`,
|
|
@@ -2072,14 +2072,14 @@ const Fa = (t, a) => {
|
|
|
2072
2072
|
},
|
|
2073
2073
|
tags: { section: "OraculoSeccionCasino" }
|
|
2074
2074
|
}), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/casino");
|
|
2075
|
-
}, M = (
|
|
2076
|
-
const
|
|
2077
|
-
id: `sk-${
|
|
2075
|
+
}, M = (x = !0, S = 4) => {
|
|
2076
|
+
const O = (R) => Array.from({ length: R }, (I, A) => ({
|
|
2077
|
+
id: `sk-${R}-${A}`,
|
|
2078
2078
|
imageUrl: ""
|
|
2079
2079
|
})), B = [];
|
|
2080
|
-
return
|
|
2081
|
-
}, v = !t || t.length === 0,
|
|
2082
|
-
return /* @__PURE__ */ e("section", { children: /* @__PURE__ */ g(
|
|
2080
|
+
return x && B.push({ id: "mosaic-loading", kind: "mosaic", items: O(5) }), B.push({ id: "grid-loading", kind: "grid", items: O(S) }), B;
|
|
2081
|
+
}, v = !t || t.length === 0, N = v ? M(i, c) : za(t, i, c);
|
|
2082
|
+
return /* @__PURE__ */ e("section", { children: /* @__PURE__ */ g(D, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
2083
2083
|
/* @__PURE__ */ g(
|
|
2084
2084
|
L,
|
|
2085
2085
|
{
|
|
@@ -2095,37 +2095,37 @@ const Fa = (t, a) => {
|
|
|
2095
2095
|
/* @__PURE__ */ e(le, { title: a, iconUrl: n, size: "md" }),
|
|
2096
2096
|
/* @__PURE__ */ g(L, { sx: { display: "flex", gap: 1, justifyContent: "flex-end" }, children: [
|
|
2097
2097
|
/* @__PURE__ */ e(
|
|
2098
|
-
|
|
2098
|
+
H,
|
|
2099
2099
|
{
|
|
2100
2100
|
ariaLabel: "Anterior",
|
|
2101
2101
|
variant: "secondary",
|
|
2102
2102
|
iconOnly: !0,
|
|
2103
2103
|
leftIcon: /* @__PURE__ */ e(Ze, {}),
|
|
2104
2104
|
onClick: _,
|
|
2105
|
-
disabled:
|
|
2105
|
+
disabled: s.isStart
|
|
2106
2106
|
}
|
|
2107
2107
|
),
|
|
2108
2108
|
/* @__PURE__ */ e(
|
|
2109
|
-
|
|
2109
|
+
H,
|
|
2110
2110
|
{
|
|
2111
2111
|
ariaLabel: "Siguiente",
|
|
2112
2112
|
variant: "secondary",
|
|
2113
2113
|
iconOnly: !0,
|
|
2114
2114
|
rightIcon: /* @__PURE__ */ e(Je, {}),
|
|
2115
|
-
onClick:
|
|
2116
|
-
disabled:
|
|
2115
|
+
onClick: y,
|
|
2116
|
+
disabled: s.isEnd
|
|
2117
2117
|
}
|
|
2118
2118
|
)
|
|
2119
2119
|
] }),
|
|
2120
|
-
/* @__PURE__ */ e(L, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ e(
|
|
2120
|
+
/* @__PURE__ */ e(L, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ e(H, { variant: "secondary", onClick: E, children: "Ver más" }) })
|
|
2121
2121
|
]
|
|
2122
2122
|
}
|
|
2123
2123
|
),
|
|
2124
2124
|
/* @__PURE__ */ e(
|
|
2125
2125
|
se,
|
|
2126
2126
|
{
|
|
2127
|
-
ref:
|
|
2128
|
-
items:
|
|
2127
|
+
ref: u,
|
|
2128
|
+
items: N,
|
|
2129
2129
|
perPage: void 0,
|
|
2130
2130
|
gap: "16px",
|
|
2131
2131
|
enableHorizontalWheel: !0,
|
|
@@ -2136,90 +2136,90 @@ const Fa = (t, a) => {
|
|
|
2136
2136
|
768: { gap: "8px", focus: "center", padding: { left: "24px", right: "24px" } },
|
|
2137
2137
|
1024: { gap: "10px", focus: "center", padding: { left: "24px", right: "24px" } }
|
|
2138
2138
|
},
|
|
2139
|
-
renderItem: (
|
|
2139
|
+
renderItem: (x) => /* @__PURE__ */ e("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ e(
|
|
2140
2140
|
tt,
|
|
2141
2141
|
{
|
|
2142
|
-
items:
|
|
2143
|
-
layout:
|
|
2142
|
+
items: x.items,
|
|
2143
|
+
layout: x.kind === "mosaic" ? "mosaic" : "grid",
|
|
2144
2144
|
loading: v,
|
|
2145
|
-
onClick: (
|
|
2145
|
+
onClick: (S) => {
|
|
2146
2146
|
if (v) return;
|
|
2147
|
-
const
|
|
2148
|
-
(
|
|
2147
|
+
const O = t.find(
|
|
2148
|
+
(I, A) => String(rt(I, A)) === String(S.id)
|
|
2149
2149
|
);
|
|
2150
|
-
if (!
|
|
2150
|
+
if (!O) return;
|
|
2151
2151
|
p({
|
|
2152
2152
|
element: "casino_game_card",
|
|
2153
|
-
label: `Landing: ${b} - OraculoSeccionCasino - Open game: ${String(
|
|
2154
|
-
target: String(
|
|
2153
|
+
label: `Landing: ${b} - OraculoSeccionCasino - Open game: ${String(O.machine) || "unknown"}`,
|
|
2154
|
+
target: String(O.machine || "unknown"),
|
|
2155
2155
|
event_type: "click",
|
|
2156
2156
|
module_id: 301,
|
|
2157
2157
|
metadata: {
|
|
2158
2158
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2159
2159
|
},
|
|
2160
2160
|
tags: {
|
|
2161
|
-
game_name: String(
|
|
2161
|
+
game_name: String(O.machine || "unknown"),
|
|
2162
2162
|
section: a || "Casino"
|
|
2163
2163
|
}
|
|
2164
2164
|
});
|
|
2165
|
-
const B = re("showIframe"),
|
|
2166
|
-
B == null || B(),
|
|
2165
|
+
const B = re("showIframe"), R = re("loadMachine");
|
|
2166
|
+
B == null || B(), R == null || R(O, !1, "CASINO");
|
|
2167
2167
|
}
|
|
2168
2168
|
}
|
|
2169
2169
|
) }),
|
|
2170
|
-
onMove: ({ isStart:
|
|
2170
|
+
onMove: ({ isStart: x, isEnd: S }) => d({ isStart: x, isEnd: S })
|
|
2171
2171
|
}
|
|
2172
2172
|
)
|
|
2173
2173
|
] }) });
|
|
2174
2174
|
}, lt = (t, a) => {
|
|
2175
|
-
var n,
|
|
2176
|
-
return (
|
|
2175
|
+
var n, r;
|
|
2176
|
+
return (r = (n = t.orden) != null ? n : t.machine) != null ? r : a;
|
|
2177
2177
|
}, qa = (t, a = !0, n = 1) => {
|
|
2178
|
-
const
|
|
2178
|
+
const r = t.map((c, p) => {
|
|
2179
2179
|
var b;
|
|
2180
2180
|
return {
|
|
2181
|
-
id: lt(
|
|
2182
|
-
imageUrl: (b =
|
|
2183
|
-
...
|
|
2181
|
+
id: lt(c, p),
|
|
2182
|
+
imageUrl: (b = c.logo) != null ? b : "",
|
|
2183
|
+
...c.background ? { background: c.background } : {}
|
|
2184
2184
|
};
|
|
2185
2185
|
});
|
|
2186
|
-
if (!
|
|
2187
|
-
const
|
|
2188
|
-
let
|
|
2186
|
+
if (!r.length) return [];
|
|
2187
|
+
const l = [];
|
|
2188
|
+
let i = 0;
|
|
2189
2189
|
if (a) {
|
|
2190
|
-
const
|
|
2191
|
-
|
|
2190
|
+
const c = Math.min(r.length, 1);
|
|
2191
|
+
l.push({
|
|
2192
2192
|
id: "mosaic-0",
|
|
2193
2193
|
kind: "mosaic",
|
|
2194
|
-
items:
|
|
2195
|
-
}),
|
|
2194
|
+
items: r.slice(0, c)
|
|
2195
|
+
}), i = c;
|
|
2196
2196
|
}
|
|
2197
|
-
for (;
|
|
2198
|
-
const
|
|
2199
|
-
|
|
2200
|
-
id: `grid-${
|
|
2197
|
+
for (; i < r.length; ) {
|
|
2198
|
+
const c = Math.min(i + n, r.length);
|
|
2199
|
+
l.push({
|
|
2200
|
+
id: `grid-${i}`,
|
|
2201
2201
|
kind: "grid",
|
|
2202
|
-
items:
|
|
2203
|
-
}),
|
|
2202
|
+
items: r.slice(i, c)
|
|
2203
|
+
}), i = c;
|
|
2204
2204
|
}
|
|
2205
|
-
return
|
|
2205
|
+
return l;
|
|
2206
2206
|
}, Va = (t = !0, a = 4) => {
|
|
2207
|
-
const n = (
|
|
2208
|
-
return t &&
|
|
2207
|
+
const n = (l) => Array.from({ length: l }, (i, c) => ({ id: `sk-${l}-${c}`, imageUrl: "" })), r = [];
|
|
2208
|
+
return t && r.push({ id: "mosaic-loading", kind: "mosaic", items: n(5) }), r.push({ id: "grid-loading", kind: "grid", items: n(a) }), r;
|
|
2209
2209
|
}, Da = ({
|
|
2210
2210
|
items: t,
|
|
2211
2211
|
title: a = "Virtuales",
|
|
2212
2212
|
iconUrl: n = "/assets/img/home/Virtuales/virtuales.svg",
|
|
2213
|
-
onItemClick:
|
|
2214
|
-
onViewMore:
|
|
2215
|
-
mosaicFirst:
|
|
2216
|
-
gridSize:
|
|
2213
|
+
onItemClick: r,
|
|
2214
|
+
onViewMore: l,
|
|
2215
|
+
mosaicFirst: i = !0,
|
|
2216
|
+
gridSize: c = 1
|
|
2217
2217
|
}) => {
|
|
2218
|
-
const p = U(null), [b,
|
|
2219
|
-
var
|
|
2220
|
-
|
|
2218
|
+
const p = U(null), [b, u] = j({ isStart: !0, isEnd: !1 }), s = J(), d = X(), _ = () => {
|
|
2219
|
+
var N;
|
|
2220
|
+
s({
|
|
2221
2221
|
element: "virtuales_prev",
|
|
2222
|
-
label: `Landing: ${
|
|
2222
|
+
label: `Landing: ${d} - OraculoSeccionVirtuales - Anterior`,
|
|
2223
2223
|
target: "prev",
|
|
2224
2224
|
event_type: "click",
|
|
2225
2225
|
module_id: 301,
|
|
@@ -2227,12 +2227,12 @@ const Fa = (t, a) => {
|
|
|
2227
2227
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2228
2228
|
},
|
|
2229
2229
|
tags: { section: "OraculoSeccionVirtuales" }
|
|
2230
|
-
}), (
|
|
2231
|
-
},
|
|
2232
|
-
var
|
|
2233
|
-
|
|
2230
|
+
}), (N = p.current) == null || N.prev();
|
|
2231
|
+
}, y = () => {
|
|
2232
|
+
var N;
|
|
2233
|
+
s({
|
|
2234
2234
|
element: "virtuales_next",
|
|
2235
|
-
label: `Landing: ${
|
|
2235
|
+
label: `Landing: ${d} - OraculoSeccionVirtuales - Siguiente`,
|
|
2236
2236
|
target: "next",
|
|
2237
2237
|
event_type: "click",
|
|
2238
2238
|
module_id: 301,
|
|
@@ -2240,11 +2240,11 @@ const Fa = (t, a) => {
|
|
|
2240
2240
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2241
2241
|
},
|
|
2242
2242
|
tags: { section: "OraculoSeccionVirtuales" }
|
|
2243
|
-
}), (
|
|
2244
|
-
},
|
|
2245
|
-
|
|
2243
|
+
}), (N = p.current) == null || N.next();
|
|
2244
|
+
}, E = () => {
|
|
2245
|
+
s({
|
|
2246
2246
|
element: "virtuales_view_more",
|
|
2247
|
-
label: `Landing: ${
|
|
2247
|
+
label: `Landing: ${d} - OraculoSeccionVirtuales - Ver más`,
|
|
2248
2248
|
target: "https://www.olimpo.bet/juegos-virtuales",
|
|
2249
2249
|
event_type: "click",
|
|
2250
2250
|
module_id: 301,
|
|
@@ -2253,8 +2253,8 @@ const Fa = (t, a) => {
|
|
|
2253
2253
|
},
|
|
2254
2254
|
tags: { section: "OraculoSeccionVirtuales" }
|
|
2255
2255
|
}), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/juegos-virtuales");
|
|
2256
|
-
}, M = !t || t.length === 0, v = M ? Va(
|
|
2257
|
-
return /* @__PURE__ */ e("section", { children: /* @__PURE__ */ g(
|
|
2256
|
+
}, M = !t || t.length === 0, v = M ? Va(i, c) : qa(t, i, c);
|
|
2257
|
+
return /* @__PURE__ */ e("section", { children: /* @__PURE__ */ g(D, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
2258
2258
|
/* @__PURE__ */ g(
|
|
2259
2259
|
L,
|
|
2260
2260
|
{
|
|
@@ -2270,7 +2270,7 @@ const Fa = (t, a) => {
|
|
|
2270
2270
|
/* @__PURE__ */ e(le, { title: a, iconUrl: n, size: "md" }),
|
|
2271
2271
|
/* @__PURE__ */ g(L, { sx: { display: "flex", gap: 1, justifyContent: "flex-end" }, children: [
|
|
2272
2272
|
/* @__PURE__ */ e(
|
|
2273
|
-
|
|
2273
|
+
H,
|
|
2274
2274
|
{
|
|
2275
2275
|
ariaLabel: "Anterior",
|
|
2276
2276
|
variant: "secondary",
|
|
@@ -2281,18 +2281,18 @@ const Fa = (t, a) => {
|
|
|
2281
2281
|
}
|
|
2282
2282
|
),
|
|
2283
2283
|
/* @__PURE__ */ e(
|
|
2284
|
-
|
|
2284
|
+
H,
|
|
2285
2285
|
{
|
|
2286
2286
|
ariaLabel: "Siguiente",
|
|
2287
2287
|
variant: "secondary",
|
|
2288
2288
|
iconOnly: !0,
|
|
2289
2289
|
rightIcon: /* @__PURE__ */ e(Je, {}),
|
|
2290
|
-
onClick:
|
|
2290
|
+
onClick: y,
|
|
2291
2291
|
disabled: b.isEnd
|
|
2292
2292
|
}
|
|
2293
2293
|
)
|
|
2294
2294
|
] }),
|
|
2295
|
-
/* @__PURE__ */ e(L, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ e(
|
|
2295
|
+
/* @__PURE__ */ e(L, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ e(H, { variant: "secondary", onClick: E, children: "Ver más" }) })
|
|
2296
2296
|
]
|
|
2297
2297
|
}
|
|
2298
2298
|
),
|
|
@@ -2311,44 +2311,44 @@ const Fa = (t, a) => {
|
|
|
2311
2311
|
enableHorizontalWheel: !0,
|
|
2312
2312
|
showRightGradient: !0,
|
|
2313
2313
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
2314
|
-
renderItem: (
|
|
2314
|
+
renderItem: (N) => /* @__PURE__ */ e("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ e(
|
|
2315
2315
|
tt,
|
|
2316
2316
|
{
|
|
2317
|
-
items:
|
|
2318
|
-
layout:
|
|
2317
|
+
items: N.items,
|
|
2318
|
+
layout: N.kind === "mosaic" ? "mosaic" : "grid",
|
|
2319
2319
|
loading: M,
|
|
2320
|
-
onClick: (
|
|
2320
|
+
onClick: (x) => {
|
|
2321
2321
|
if (M) return;
|
|
2322
|
-
const
|
|
2323
|
-
(
|
|
2322
|
+
const S = t.find(
|
|
2323
|
+
(R, I) => String(lt(R, I)) === String(x.id)
|
|
2324
2324
|
);
|
|
2325
|
-
if (!
|
|
2325
|
+
if (!S) {
|
|
2326
2326
|
console.warn(
|
|
2327
2327
|
"[virtuales] no se encontró game para id:",
|
|
2328
|
-
|
|
2328
|
+
x.id
|
|
2329
2329
|
);
|
|
2330
2330
|
return;
|
|
2331
2331
|
}
|
|
2332
|
-
|
|
2332
|
+
s({
|
|
2333
2333
|
element: "virtuales_game_card",
|
|
2334
|
-
label: `Landing: ${
|
|
2335
|
-
target: String(
|
|
2334
|
+
label: `Landing: ${d} - OraculoSeccionVirtuales - Open game: ${String(S.machine || "unknown")}`,
|
|
2335
|
+
target: String(S.machine || "unknown"),
|
|
2336
2336
|
event_type: "click",
|
|
2337
2337
|
module_id: 301,
|
|
2338
2338
|
metadata: {
|
|
2339
2339
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2340
2340
|
},
|
|
2341
2341
|
tags: {
|
|
2342
|
-
game_name: String(
|
|
2342
|
+
game_name: String(S.machine || "unknown"),
|
|
2343
2343
|
section: "OraculoSeccionVirtuales"
|
|
2344
2344
|
}
|
|
2345
2345
|
});
|
|
2346
|
-
const
|
|
2347
|
-
|
|
2346
|
+
const O = re("showIframe"), B = re("loadMachine");
|
|
2347
|
+
O == null || O(), B == null || B(S, !1, "VIRTUALES");
|
|
2348
2348
|
}
|
|
2349
2349
|
}
|
|
2350
2350
|
) }),
|
|
2351
|
-
onMove: ({ isStart:
|
|
2351
|
+
onMove: ({ isStart: N, isEnd: x }) => u({ isStart: N, isEnd: x })
|
|
2352
2352
|
}
|
|
2353
2353
|
)
|
|
2354
2354
|
] }) });
|
|
@@ -2388,29 +2388,29 @@ const Fa = (t, a) => {
|
|
|
2388
2388
|
headline: t,
|
|
2389
2389
|
headline2: a,
|
|
2390
2390
|
items: n,
|
|
2391
|
-
backgroundImageUrl:
|
|
2391
|
+
backgroundImageUrl: r
|
|
2392
2392
|
}) => {
|
|
2393
|
-
const
|
|
2393
|
+
const l = J(), i = X(), c = bt("(max-width: 767px)"), p = n.length > 1, b = U(null), u = U(null), s = U(!1), d = U(!1), [_, y] = j(0), [E, M] = j({ isStart: !0, isEnd: !1 });
|
|
2394
2394
|
K(() => {
|
|
2395
|
-
const
|
|
2396
|
-
|
|
2395
|
+
const C = setTimeout(() => {
|
|
2396
|
+
s.current = !0;
|
|
2397
2397
|
}, 500);
|
|
2398
|
-
return () => clearTimeout(
|
|
2398
|
+
return () => clearTimeout(C);
|
|
2399
2399
|
}, []);
|
|
2400
|
-
const v = U(
|
|
2400
|
+
const v = U(E);
|
|
2401
2401
|
K(() => {
|
|
2402
|
-
v.current =
|
|
2403
|
-
}, [
|
|
2404
|
-
const
|
|
2402
|
+
v.current = E;
|
|
2403
|
+
}, [E]);
|
|
2404
|
+
const N = U(!1), x = U(null), S = n == null ? void 0 : n[_], O = ne(
|
|
2405
2405
|
() => {
|
|
2406
|
-
var
|
|
2407
|
-
return (k = (
|
|
2406
|
+
var C, k;
|
|
2407
|
+
return (k = (C = S == null ? void 0 : S.backgroundImageUrl) != null ? C : r) != null ? k : "";
|
|
2408
2408
|
},
|
|
2409
|
-
[
|
|
2410
|
-
), B = Wa(
|
|
2411
|
-
|
|
2409
|
+
[S, r]
|
|
2410
|
+
), B = Wa(O), R = !n || n.length === 0, I = (C, k) => {
|
|
2411
|
+
l({
|
|
2412
2412
|
element: "welcome_banner_button",
|
|
2413
|
-
label: `OraculoSeccionBonoBienvenida - Banner button click: ${
|
|
2413
|
+
label: `OraculoSeccionBonoBienvenida - Banner button click: ${C.title || "OraculoSeccionBonoBienvenida - Banner " + (k + 1)}`,
|
|
2414
2414
|
target: "action",
|
|
2415
2415
|
event_type: "click",
|
|
2416
2416
|
module_id: 301,
|
|
@@ -2420,55 +2420,55 @@ const Fa = (t, a) => {
|
|
|
2420
2420
|
banner_total: (n == null ? void 0 : n.length) || 0
|
|
2421
2421
|
},
|
|
2422
2422
|
tags: {
|
|
2423
|
-
banner_title:
|
|
2424
|
-
button_text:
|
|
2423
|
+
banner_title: C.title || "no_title",
|
|
2424
|
+
button_text: C.buttonText || "no_text"
|
|
2425
2425
|
}
|
|
2426
|
-
}),
|
|
2427
|
-
},
|
|
2428
|
-
if (!
|
|
2429
|
-
if (
|
|
2430
|
-
|
|
2426
|
+
}), C.onButtonClick && C.onButtonClick();
|
|
2427
|
+
}, A = (C) => {
|
|
2428
|
+
if (!s.current) return;
|
|
2429
|
+
if (d.current) {
|
|
2430
|
+
d.current = !1;
|
|
2431
2431
|
return;
|
|
2432
2432
|
}
|
|
2433
|
-
const k = n == null ? void 0 : n[
|
|
2434
|
-
|
|
2433
|
+
const k = n == null ? void 0 : n[C];
|
|
2434
|
+
l({
|
|
2435
2435
|
element: "welcome_banner_carousel",
|
|
2436
|
-
label: `Landing: ${
|
|
2436
|
+
label: `Landing: ${i} - OraculoSeccionBonoBienvenida - Banner view: ${(k == null ? void 0 : k.title) || "OraculoSeccionBonoBienvenida - Banner " + (C + 1)}`,
|
|
2437
2437
|
target: "no_url",
|
|
2438
2438
|
event_type: "view",
|
|
2439
2439
|
module_id: 301,
|
|
2440
2440
|
metadata: {
|
|
2441
2441
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
2442
|
-
slide_index:
|
|
2442
|
+
slide_index: C + 1,
|
|
2443
2443
|
total_slides: (n == null ? void 0 : n.length) || 0,
|
|
2444
2444
|
interaction_type: "manual_slide"
|
|
2445
2445
|
},
|
|
2446
2446
|
tags: {
|
|
2447
|
-
banner_position: String(
|
|
2447
|
+
banner_position: String(C + 1),
|
|
2448
2448
|
banner_title: (k == null ? void 0 : k.title) || "no_title"
|
|
2449
2449
|
}
|
|
2450
2450
|
});
|
|
2451
2451
|
};
|
|
2452
2452
|
K(() => {
|
|
2453
|
-
const
|
|
2454
|
-
if (!
|
|
2455
|
-
const k = 6,
|
|
2456
|
-
var $,
|
|
2457
|
-
if (
|
|
2458
|
-
const
|
|
2459
|
-
if (Math.abs(
|
|
2460
|
-
const
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
},
|
|
2453
|
+
const C = u.current;
|
|
2454
|
+
if (!C) return;
|
|
2455
|
+
const k = 6, P = 380, f = (w) => {
|
|
2456
|
+
var $, T;
|
|
2457
|
+
if (R || w.ctrlKey || N.current) return;
|
|
2458
|
+
const m = w.deltaX, o = w.deltaY;
|
|
2459
|
+
if (Math.abs(m) <= Math.abs(o) || Math.abs(m) < k) return;
|
|
2460
|
+
const h = m > 0;
|
|
2461
|
+
h && v.current.isEnd || !h && v.current.isStart || (w.preventDefault(), N.current = !0, h ? ($ = b.current) == null || $.next() : (T = b.current) == null || T.prev(), x.current && window.clearTimeout(x.current), x.current = window.setTimeout(() => {
|
|
2462
|
+
N.current = !1;
|
|
2463
|
+
}, P));
|
|
2464
2464
|
};
|
|
2465
|
-
return
|
|
2466
|
-
|
|
2465
|
+
return C.addEventListener("wheel", f, { passive: !1 }), () => {
|
|
2466
|
+
C.removeEventListener("wheel", f), x.current && window.clearTimeout(x.current);
|
|
2467
2467
|
};
|
|
2468
|
-
}, [
|
|
2469
|
-
const z = (
|
|
2470
|
-
var
|
|
2471
|
-
const f = (
|
|
2468
|
+
}, [R]);
|
|
2469
|
+
const z = (C, k, P) => {
|
|
2470
|
+
var m, o;
|
|
2471
|
+
const f = (m = C.headline) != null ? m : t, w = (o = C.headline2) != null ? o : a;
|
|
2472
2472
|
return k ? /* @__PURE__ */ g(
|
|
2473
2473
|
L,
|
|
2474
2474
|
{
|
|
@@ -2482,7 +2482,7 @@ const Fa = (t, a) => {
|
|
|
2482
2482
|
columnGap: 6
|
|
2483
2483
|
},
|
|
2484
2484
|
children: [
|
|
2485
|
-
(f ||
|
|
2485
|
+
(f || w) && /* @__PURE__ */ e(
|
|
2486
2486
|
L,
|
|
2487
2487
|
{
|
|
2488
2488
|
sx: {
|
|
@@ -2493,9 +2493,9 @@ const Fa = (t, a) => {
|
|
|
2493
2493
|
},
|
|
2494
2494
|
children: /* @__PURE__ */ g(L, { sx: { ...Ue, textAlign: "left", mb: 0 }, children: [
|
|
2495
2495
|
f && /* @__PURE__ */ e(ae, { component: "span", sx: qe, children: f }),
|
|
2496
|
-
|
|
2496
|
+
w && /* @__PURE__ */ g(Q, { children: [
|
|
2497
2497
|
/* @__PURE__ */ e("br", {}),
|
|
2498
|
-
/* @__PURE__ */ e(ae, { component: "span", sx: Ve, children:
|
|
2498
|
+
/* @__PURE__ */ e(ae, { component: "span", sx: Ve, children: w })
|
|
2499
2499
|
] })
|
|
2500
2500
|
] })
|
|
2501
2501
|
}
|
|
@@ -2503,33 +2503,33 @@ const Fa = (t, a) => {
|
|
|
2503
2503
|
/* @__PURE__ */ e(L, { sx: { display: "flex", justifyContent: "center", alignItems: "center" }, children: /* @__PURE__ */ e(L, { sx: { width: "100%", maxWidth: 600, mx: "auto" }, children: /* @__PURE__ */ e(
|
|
2504
2504
|
Fe,
|
|
2505
2505
|
{
|
|
2506
|
-
...
|
|
2507
|
-
onButtonClick: () =>
|
|
2506
|
+
...C,
|
|
2507
|
+
onButtonClick: () => I(C, P),
|
|
2508
2508
|
variant: "large"
|
|
2509
2509
|
}
|
|
2510
2510
|
) }) })
|
|
2511
2511
|
]
|
|
2512
2512
|
}
|
|
2513
2513
|
) : /* @__PURE__ */ g(L, { sx: { textAlign: "center" }, children: [
|
|
2514
|
-
(f ||
|
|
2514
|
+
(f || w) && /* @__PURE__ */ g(L, { sx: Ue, children: [
|
|
2515
2515
|
f && /* @__PURE__ */ e(ae, { component: "span", sx: qe, children: f }),
|
|
2516
|
-
|
|
2516
|
+
w && /* @__PURE__ */ g(Q, { children: [
|
|
2517
2517
|
/* @__PURE__ */ e("br", {}),
|
|
2518
|
-
/* @__PURE__ */ e(ae, { component: "span", sx: Ve, children:
|
|
2518
|
+
/* @__PURE__ */ e(ae, { component: "span", sx: Ve, children: w })
|
|
2519
2519
|
] })
|
|
2520
2520
|
] }),
|
|
2521
2521
|
/* @__PURE__ */ e(L, { sx: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ e(
|
|
2522
2522
|
Fe,
|
|
2523
2523
|
{
|
|
2524
|
-
...
|
|
2525
|
-
onButtonClick: () =>
|
|
2524
|
+
...C,
|
|
2525
|
+
onButtonClick: () => I(C, P),
|
|
2526
2526
|
variant: "small"
|
|
2527
2527
|
}
|
|
2528
2528
|
) })
|
|
2529
2529
|
] });
|
|
2530
2530
|
};
|
|
2531
2531
|
return /* @__PURE__ */ g(L, { component: "section", sx: B, children: [
|
|
2532
|
-
/* @__PURE__ */ e("div", { ref:
|
|
2532
|
+
/* @__PURE__ */ e("div", { ref: u, style: { width: "100%" }, children: /* @__PURE__ */ e(
|
|
2533
2533
|
se,
|
|
2534
2534
|
{
|
|
2535
2535
|
ref: b,
|
|
@@ -2546,9 +2546,9 @@ const Fa = (t, a) => {
|
|
|
2546
2546
|
// arrows: false,
|
|
2547
2547
|
// drag: true,
|
|
2548
2548
|
},
|
|
2549
|
-
renderItem: (
|
|
2550
|
-
onMove: ({ index:
|
|
2551
|
-
|
|
2549
|
+
renderItem: (C, k) => /* @__PURE__ */ e(L, { sx: { width: "100%" }, children: z(C, !c, k) }),
|
|
2550
|
+
onMove: ({ index: C, isStart: k, isEnd: P }) => {
|
|
2551
|
+
y(C), typeof k == "boolean" && typeof P == "boolean" && M({ isStart: k, isEnd: P }), A(C);
|
|
2552
2552
|
}
|
|
2553
2553
|
}
|
|
2554
2554
|
) }),
|
|
@@ -2557,23 +2557,23 @@ const Fa = (t, a) => {
|
|
|
2557
2557
|
{
|
|
2558
2558
|
total: n.length,
|
|
2559
2559
|
active: _,
|
|
2560
|
-
onSelect: (
|
|
2560
|
+
onSelect: (C) => {
|
|
2561
2561
|
var k;
|
|
2562
|
-
|
|
2562
|
+
l({
|
|
2563
2563
|
element: "welcome_banner_dots",
|
|
2564
|
-
label: `Landing: ${
|
|
2564
|
+
label: `Landing: ${i} - OraculoSeccionBonoBienvenida - Dot navigation: Banner ${C + 1}`,
|
|
2565
2565
|
target: "no_url",
|
|
2566
2566
|
event_type: "click",
|
|
2567
2567
|
module_id: 301,
|
|
2568
2568
|
metadata: {
|
|
2569
2569
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
2570
|
-
dot_index:
|
|
2570
|
+
dot_index: C + 1,
|
|
2571
2571
|
total_dots: n.length
|
|
2572
2572
|
},
|
|
2573
2573
|
tags: {
|
|
2574
2574
|
navigation_type: "dot_click"
|
|
2575
2575
|
}
|
|
2576
|
-
}),
|
|
2576
|
+
}), y(C), (k = b.current) == null || k.go(C);
|
|
2577
2577
|
}
|
|
2578
2578
|
}
|
|
2579
2579
|
) })
|
|
@@ -2582,12 +2582,12 @@ const Fa = (t, a) => {
|
|
|
2582
2582
|
className: t = "",
|
|
2583
2583
|
fullBleed: a = !0,
|
|
2584
2584
|
items: n,
|
|
2585
|
-
selectedIndex:
|
|
2586
|
-
ariaLabel:
|
|
2585
|
+
selectedIndex: r = 0,
|
|
2586
|
+
ariaLabel: l
|
|
2587
2587
|
}) => {
|
|
2588
|
-
const
|
|
2588
|
+
const i = U(null), c = U(null), p = J(), b = X();
|
|
2589
2589
|
if (!n) return null;
|
|
2590
|
-
const
|
|
2590
|
+
const u = () => {
|
|
2591
2591
|
p({
|
|
2592
2592
|
element: "club_olimpo_button",
|
|
2593
2593
|
label: `Landing: ${b} - OraculoSeccionClubOlimpo - Click: Club Olimpo`,
|
|
@@ -2599,18 +2599,18 @@ const Fa = (t, a) => {
|
|
|
2599
2599
|
},
|
|
2600
2600
|
tags: { section: "OraculoSeccionClubOlimpo" }
|
|
2601
2601
|
}), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/conoce-club-olimpo");
|
|
2602
|
-
},
|
|
2602
|
+
}, s = Array.isArray(n) ? n[r] : n;
|
|
2603
2603
|
gt(() => {
|
|
2604
|
-
if (!
|
|
2605
|
-
const _ =
|
|
2604
|
+
if (!i.current || !c.current || typeof ResizeObserver == "undefined") return;
|
|
2605
|
+
const _ = i.current, y = c.current, E = () => {
|
|
2606
2606
|
_.style.setProperty(
|
|
2607
2607
|
"--orc-co-bottomH",
|
|
2608
|
-
`${
|
|
2608
|
+
`${y.offsetHeight + 16}px`
|
|
2609
2609
|
);
|
|
2610
|
-
}, M = new ResizeObserver(
|
|
2611
|
-
return M.observe(
|
|
2610
|
+
}, M = new ResizeObserver(E);
|
|
2611
|
+
return M.observe(y), E(), () => M.disconnect();
|
|
2612
2612
|
}, []);
|
|
2613
|
-
const
|
|
2613
|
+
const d = [
|
|
2614
2614
|
"orc-co-wrap",
|
|
2615
2615
|
a ? "orc-co-fullBleed" : "",
|
|
2616
2616
|
t
|
|
@@ -2618,18 +2618,18 @@ const Fa = (t, a) => {
|
|
|
2618
2618
|
return /* @__PURE__ */ e(
|
|
2619
2619
|
"section",
|
|
2620
2620
|
{
|
|
2621
|
-
ref:
|
|
2622
|
-
className:
|
|
2623
|
-
"aria-label":
|
|
2624
|
-
children: /* @__PURE__ */ e("div", { ref:
|
|
2621
|
+
ref: i,
|
|
2622
|
+
className: d,
|
|
2623
|
+
"aria-label": l || s.imgAlt || "Club Olimpo",
|
|
2624
|
+
children: /* @__PURE__ */ e("div", { ref: c, children: /* @__PURE__ */ e(
|
|
2625
2625
|
ra,
|
|
2626
2626
|
{
|
|
2627
|
-
text:
|
|
2628
|
-
onClick:
|
|
2629
|
-
imgAlt:
|
|
2630
|
-
imgSrcMobile:
|
|
2631
|
-
imgSrcDesktopBg:
|
|
2632
|
-
imgSrcDesktopLogo:
|
|
2627
|
+
text: s.text,
|
|
2628
|
+
onClick: u,
|
|
2629
|
+
imgAlt: s.imgAlt,
|
|
2630
|
+
imgSrcMobile: s.imgMobile,
|
|
2631
|
+
imgSrcDesktopBg: s.imgDesktopBg,
|
|
2632
|
+
imgSrcDesktopLogo: s.imgDesktopLogo
|
|
2633
2633
|
}
|
|
2634
2634
|
) })
|
|
2635
2635
|
}
|
|
@@ -2639,29 +2639,29 @@ const Fa = (t, a) => {
|
|
|
2639
2639
|
padding: Ka
|
|
2640
2640
|
}, Za = (t) => {
|
|
2641
2641
|
var a, n;
|
|
2642
|
-
return (a = t.outcome) != null && a.id ? [t.outcome.id] : t.type === "BET_BUILDER" && ((n = t.group) != null && n.groups) ? t.group.groups.flatMap((
|
|
2643
|
-
var
|
|
2644
|
-
return (
|
|
2642
|
+
return (a = t.outcome) != null && a.id ? [t.outcome.id] : t.type === "BET_BUILDER" && ((n = t.group) != null && n.groups) ? t.group.groups.flatMap((r) => {
|
|
2643
|
+
var l, i;
|
|
2644
|
+
return (i = (l = r.outcomes) == null ? void 0 : l.map((c) => c.id)) != null ? i : [];
|
|
2645
2645
|
}) : [];
|
|
2646
2646
|
};
|
|
2647
2647
|
function Ja(t, a, n) {
|
|
2648
|
-
return n ? n.map((
|
|
2649
|
-
var
|
|
2650
|
-
const
|
|
2648
|
+
return n ? n.map((r) => {
|
|
2649
|
+
var s, d, _, y, E, M;
|
|
2650
|
+
const l = r.prePackCouponRows.flatMap((v) => Za(v).map((N) => ({ eventId: v.eventId, outcomeId: N }))), i = new Set(l.map((v) => v.eventId)), c = new Set(l.map((v) => v.outcomeId)), p = new Map(l.map((v, N) => [v.outcomeId, N])), b = {};
|
|
2651
2651
|
for (const v of a) {
|
|
2652
|
-
if (!
|
|
2653
|
-
const
|
|
2654
|
-
|
|
2652
|
+
if (!i.has(v.eventId)) continue;
|
|
2653
|
+
const N = v.outcomes.filter((x) => c.has(x.id)).map((x) => ({ ...x, position: p.get(x.id) }));
|
|
2654
|
+
N.length && ((d = b[s = v.eventId]) != null || (b[s] = []), b[v.eventId].push({ ...v, outcomes: N }));
|
|
2655
2655
|
}
|
|
2656
|
-
const
|
|
2657
|
-
var
|
|
2658
|
-
return { ...v, betoffers: (
|
|
2656
|
+
const u = t.filter((v) => i.has(v.id)).map((v) => {
|
|
2657
|
+
var N;
|
|
2658
|
+
return { ...v, betoffers: (N = b[v.id]) != null ? N : [] };
|
|
2659
2659
|
});
|
|
2660
2660
|
return {
|
|
2661
|
-
couponId:
|
|
2662
|
-
status:
|
|
2663
|
-
combinadoTotal: (M = (
|
|
2664
|
-
events:
|
|
2661
|
+
couponId: r.id,
|
|
2662
|
+
status: r.status,
|
|
2663
|
+
combinadoTotal: (M = (E = (y = (_ = r.prePackCouponBets) == null ? void 0 : _[0]) == null ? void 0 : y.odds) == null ? void 0 : E.decimal) != null ? M : null,
|
|
2664
|
+
events: u
|
|
2665
2665
|
};
|
|
2666
2666
|
}) : [];
|
|
2667
2667
|
}
|
|
@@ -2670,37 +2670,37 @@ function Ya({
|
|
|
2670
2670
|
items: t,
|
|
2671
2671
|
title: a = "Combinadas del Olimpo",
|
|
2672
2672
|
iconUrl: n = "https://stg-www.contodobet.com/static/img/landing/EventoCombinada/rayoIcon.svg",
|
|
2673
|
-
onViewMore:
|
|
2674
|
-
className:
|
|
2673
|
+
onViewMore: r,
|
|
2674
|
+
className: l = ""
|
|
2675
2675
|
}) {
|
|
2676
|
-
const
|
|
2677
|
-
var
|
|
2678
|
-
|
|
2676
|
+
const i = J(), c = X(), p = U(null), [b, u] = j({ isStart: !0, isEnd: !1 }), [s, d] = j([]), _ = "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", y = () => {
|
|
2677
|
+
var S;
|
|
2678
|
+
i({
|
|
2679
2679
|
element: "evento_combinadas_prev",
|
|
2680
|
-
label: `Landing: ${
|
|
2680
|
+
label: `Landing: ${c} - OraculoSeccionEventoCombinadas - Click: Anterior`,
|
|
2681
2681
|
event_type: "click",
|
|
2682
2682
|
module_id: 301,
|
|
2683
2683
|
metadata: {
|
|
2684
2684
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2685
2685
|
},
|
|
2686
2686
|
tags: { section: "OraculoSeccionEventoCombinadas" }
|
|
2687
|
-
}), (
|
|
2688
|
-
},
|
|
2689
|
-
var
|
|
2690
|
-
|
|
2687
|
+
}), (S = p.current) == null || S.prev();
|
|
2688
|
+
}, E = () => {
|
|
2689
|
+
var S;
|
|
2690
|
+
i({
|
|
2691
2691
|
element: "evento_combinadas_next",
|
|
2692
|
-
label: `Landing: ${
|
|
2692
|
+
label: `Landing: ${c} - OraculoSeccionEventoCombinadas - Click: Siguiente`,
|
|
2693
2693
|
event_type: "click",
|
|
2694
2694
|
module_id: 301,
|
|
2695
2695
|
metadata: {
|
|
2696
2696
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2697
2697
|
},
|
|
2698
2698
|
tags: { section: "OraculoSeccionEventoCombinadas" }
|
|
2699
|
-
}), (
|
|
2699
|
+
}), (S = p.current) == null || S.next();
|
|
2700
2700
|
}, M = () => {
|
|
2701
|
-
|
|
2701
|
+
i({
|
|
2702
2702
|
element: "evento_combinadas_ver_mas",
|
|
2703
|
-
label: `Landing: ${
|
|
2703
|
+
label: `Landing: ${c} - OraculoSeccionEventoCombinadas - Click: Ver más`,
|
|
2704
2704
|
event_type: "click",
|
|
2705
2705
|
module_id: 301,
|
|
2706
2706
|
metadata: {
|
|
@@ -2708,59 +2708,59 @@ function Ya({
|
|
|
2708
2708
|
},
|
|
2709
2709
|
tags: { section: "OraculoSeccionEventoCombinadas" }
|
|
2710
2710
|
}), va();
|
|
2711
|
-
}, v = ne(() =>
|
|
2712
|
-
async function
|
|
2713
|
-
var
|
|
2711
|
+
}, v = ne(() => s.filter((S) => S.combinadoTotal !== null), [s]);
|
|
2712
|
+
async function N() {
|
|
2713
|
+
var S, O, B;
|
|
2714
2714
|
try {
|
|
2715
|
-
const
|
|
2716
|
-
if (!
|
|
2715
|
+
const I = await (await fetch(_)).json(), A = (B = (O = (S = I == null ? void 0 : I.group) == null ? void 0 : S.groups) == null ? void 0 : O[0]) == null ? void 0 : B.id;
|
|
2716
|
+
if (!A) {
|
|
2717
2717
|
console.error("Could not extract group ID");
|
|
2718
2718
|
return;
|
|
2719
2719
|
}
|
|
2720
|
-
const z = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${
|
|
2721
|
-
|
|
2722
|
-
} catch (
|
|
2723
|
-
console.error("loadDataEventSpecial error:",
|
|
2720
|
+
const z = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${A}.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764283566783&prePackCouponTags=CUSTOM`, k = await (await fetch(z)).json();
|
|
2721
|
+
d(Ja(k.events, k.betOffers, k.prePackCoupons));
|
|
2722
|
+
} catch (R) {
|
|
2723
|
+
console.error("loadDataEventSpecial error:", R);
|
|
2724
2724
|
}
|
|
2725
2725
|
}
|
|
2726
2726
|
K(() => {
|
|
2727
|
-
|
|
2727
|
+
N();
|
|
2728
2728
|
}, []);
|
|
2729
|
-
const
|
|
2730
|
-
return v.length === 0 ? null : /* @__PURE__ */ e("section", { className:
|
|
2729
|
+
const x = l || void 0;
|
|
2730
|
+
return v.length === 0 ? null : /* @__PURE__ */ e("section", { className: x, style: {
|
|
2731
2731
|
// paddingLeft: 16,
|
|
2732
2732
|
// paddingRight: 16,
|
|
2733
2733
|
width: "100%",
|
|
2734
2734
|
boxSizing: "border-box"
|
|
2735
|
-
}, children: /* @__PURE__ */ g(
|
|
2735
|
+
}, children: /* @__PURE__ */ g(D, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
2736
2736
|
/* @__PURE__ */ e("div", { className: De.padding, children: /* @__PURE__ */ g(oe, { spacing: 1.5, columns: "1fr auto ", justify: "start", children: [
|
|
2737
2737
|
/* @__PURE__ */ e(le, { title: a, iconUrl: n, size: "md" }),
|
|
2738
2738
|
/* @__PURE__ */ g("div", { className: De.controls, children: [
|
|
2739
2739
|
/* @__PURE__ */ g(oe, { spacing: 1, columns: "auto auto", children: [
|
|
2740
2740
|
/* @__PURE__ */ e(
|
|
2741
|
-
|
|
2741
|
+
H,
|
|
2742
2742
|
{
|
|
2743
2743
|
ariaLabel: "Anterior",
|
|
2744
2744
|
variant: "secondary",
|
|
2745
2745
|
iconOnly: !0,
|
|
2746
2746
|
leftIcon: /* @__PURE__ */ e(Ee, {}),
|
|
2747
|
-
onClick:
|
|
2747
|
+
onClick: y,
|
|
2748
2748
|
disabled: b.isStart
|
|
2749
2749
|
}
|
|
2750
2750
|
),
|
|
2751
2751
|
/* @__PURE__ */ e(
|
|
2752
|
-
|
|
2752
|
+
H,
|
|
2753
2753
|
{
|
|
2754
2754
|
ariaLabel: "Siguiente",
|
|
2755
2755
|
variant: "secondary",
|
|
2756
2756
|
iconOnly: !0,
|
|
2757
2757
|
rightIcon: /* @__PURE__ */ e(Ie, {}),
|
|
2758
|
-
onClick:
|
|
2758
|
+
onClick: E,
|
|
2759
2759
|
disabled: b.isEnd
|
|
2760
2760
|
}
|
|
2761
2761
|
)
|
|
2762
2762
|
] }),
|
|
2763
|
-
/* @__PURE__ */ e(
|
|
2763
|
+
/* @__PURE__ */ e(H, { variant: "secondary", onClick: M, children: "Ver más" })
|
|
2764
2764
|
] })
|
|
2765
2765
|
] }) }),
|
|
2766
2766
|
/* @__PURE__ */ e(
|
|
@@ -2777,8 +2777,8 @@ function Ya({
|
|
|
2777
2777
|
breakpoints: {
|
|
2778
2778
|
768: { perPage: 1.2, gap: "12px", padding: { left: "24px", right: "24px" } }
|
|
2779
2779
|
},
|
|
2780
|
-
renderItem: (
|
|
2781
|
-
onMove: ({ isStart:
|
|
2780
|
+
renderItem: (S) => /* @__PURE__ */ e(Xa, { coupon: S }),
|
|
2781
|
+
onMove: ({ isStart: S, isEnd: O }) => u({ isStart: S, isEnd: O })
|
|
2782
2782
|
}
|
|
2783
2783
|
)
|
|
2784
2784
|
] }) });
|
|
@@ -2788,30 +2788,30 @@ function Qa({}) {
|
|
|
2788
2788
|
"div",
|
|
2789
2789
|
{
|
|
2790
2790
|
className: xe.cardWrapper,
|
|
2791
|
-
children: /* @__PURE__ */ g(
|
|
2792
|
-
/* @__PURE__ */ g(
|
|
2793
|
-
/* @__PURE__ */ e(
|
|
2794
|
-
/* @__PURE__ */ e(
|
|
2791
|
+
children: /* @__PURE__ */ g(D, { direction: "column", spacing: 1, children: [
|
|
2792
|
+
/* @__PURE__ */ g(D, { spacing: 1, direction: "row", children: [
|
|
2793
|
+
/* @__PURE__ */ e(V, { variant: "text", width: "60%", height: 24 }),
|
|
2794
|
+
/* @__PURE__ */ e(V, { variant: "text", width: "39%", height: 24 })
|
|
2795
2795
|
] }),
|
|
2796
|
-
/* @__PURE__ */ g(
|
|
2797
|
-
/* @__PURE__ */ e(
|
|
2798
|
-
/* @__PURE__ */ e(
|
|
2799
|
-
/* @__PURE__ */ e(
|
|
2796
|
+
/* @__PURE__ */ g(D, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
2797
|
+
/* @__PURE__ */ e(V, { variant: "circular", width: 32, height: 40 }),
|
|
2798
|
+
/* @__PURE__ */ e(V, { variant: "text", width: 40, height: 40 }),
|
|
2799
|
+
/* @__PURE__ */ e(V, { variant: "circular", width: 32, height: 40 })
|
|
2800
2800
|
] }),
|
|
2801
|
-
/* @__PURE__ */ g(
|
|
2802
|
-
/* @__PURE__ */ e(
|
|
2803
|
-
/* @__PURE__ */ e(
|
|
2804
|
-
/* @__PURE__ */ e(
|
|
2801
|
+
/* @__PURE__ */ g(D, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
2802
|
+
/* @__PURE__ */ e(V, { variant: "text", width: 32, height: 16 }),
|
|
2803
|
+
/* @__PURE__ */ e(V, { variant: "text", width: 40, height: 16 }),
|
|
2804
|
+
/* @__PURE__ */ e(V, { variant: "text", width: 32, height: 16 })
|
|
2805
2805
|
] }),
|
|
2806
|
-
/* @__PURE__ */ g(
|
|
2807
|
-
/* @__PURE__ */ e(
|
|
2808
|
-
/* @__PURE__ */ e(
|
|
2809
|
-
/* @__PURE__ */ e(
|
|
2806
|
+
/* @__PURE__ */ g(D, { spacing: 2, direction: "row", children: [
|
|
2807
|
+
/* @__PURE__ */ e(V, { variant: "rounded", width: 88, height: 16 }),
|
|
2808
|
+
/* @__PURE__ */ e(V, { variant: "rounded", width: 88, height: 16 }),
|
|
2809
|
+
/* @__PURE__ */ e(V, { variant: "rounded", width: 88, height: 16 })
|
|
2810
2810
|
] }),
|
|
2811
|
-
/* @__PURE__ */ g(
|
|
2812
|
-
/* @__PURE__ */ e(
|
|
2813
|
-
/* @__PURE__ */ e(
|
|
2814
|
-
/* @__PURE__ */ e(
|
|
2811
|
+
/* @__PURE__ */ g(D, { spacing: 2, direction: "row", children: [
|
|
2812
|
+
/* @__PURE__ */ e(V, { variant: "rounded", width: 88, height: 32 }),
|
|
2813
|
+
/* @__PURE__ */ e(V, { variant: "rounded", width: 88, height: 32 }),
|
|
2814
|
+
/* @__PURE__ */ e(V, { variant: "rounded", width: 88, height: 32 })
|
|
2815
2815
|
] })
|
|
2816
2816
|
] })
|
|
2817
2817
|
}
|
|
@@ -2828,24 +2828,24 @@ const an = "oraculo__OraculoSeccionEventoEnVivo-module__padding___Sh8tD", nn = {
|
|
|
2828
2828
|
}, on = (t) => {
|
|
2829
2829
|
const a = ["esports", "cyber"];
|
|
2830
2830
|
return t.filter((n) => {
|
|
2831
|
-
var
|
|
2831
|
+
var l;
|
|
2832
2832
|
if (n.event.sport !== "FOOTBALL") return !1;
|
|
2833
|
-
const
|
|
2834
|
-
return !a.some((
|
|
2833
|
+
const r = ((l = n.event.group) == null ? void 0 : l.toLowerCase()) || "";
|
|
2834
|
+
return !a.some((i) => r.includes(i));
|
|
2835
2835
|
});
|
|
2836
2836
|
}, rn = de.memo(Ca);
|
|
2837
2837
|
function ln({
|
|
2838
2838
|
items: t,
|
|
2839
2839
|
title: a = "En vivo",
|
|
2840
2840
|
iconUrl: n = "https://stg-www.contodobet.com/static/img/landing/EventoEnVivo/icon.svg",
|
|
2841
|
-
onViewMore:
|
|
2842
|
-
className:
|
|
2841
|
+
onViewMore: r,
|
|
2842
|
+
className: l = ""
|
|
2843
2843
|
}) {
|
|
2844
|
-
const
|
|
2845
|
-
var
|
|
2846
|
-
|
|
2844
|
+
const i = "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", c = U(null), [p, b] = j({ isStart: !0, isEnd: !1 }), [u, s] = j(null), [d, _] = j({}), [y, E] = j({ start: null, end: null }), M = U(!1), [v, N] = j(null), x = U(!1), S = J(), O = X(), B = U(/* @__PURE__ */ new Map()), R = nt(y, 300), I = U(/* @__PURE__ */ new Set()), A = () => {
|
|
2845
|
+
var m;
|
|
2846
|
+
S({
|
|
2847
2847
|
element: "evento_en_vivo_prev",
|
|
2848
|
-
label: `Landing: ${
|
|
2848
|
+
label: `Landing: ${O} - OraculoSeccionEventoEnVivo - Anterior`,
|
|
2849
2849
|
target: "prev",
|
|
2850
2850
|
event_type: "click",
|
|
2851
2851
|
module_id: 301,
|
|
@@ -2853,12 +2853,12 @@ function ln({
|
|
|
2853
2853
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2854
2854
|
},
|
|
2855
2855
|
tags: { section: "OraculoSeccionEventoEnVivo" }
|
|
2856
|
-
}), (
|
|
2856
|
+
}), (m = c.current) == null || m.prev();
|
|
2857
2857
|
}, z = () => {
|
|
2858
|
-
var
|
|
2859
|
-
|
|
2858
|
+
var m;
|
|
2859
|
+
S({
|
|
2860
2860
|
element: "evento_en_vivo_next",
|
|
2861
|
-
label: `Landing: ${
|
|
2861
|
+
label: `Landing: ${O} - OraculoSeccionEventoEnVivo - Siguiente`,
|
|
2862
2862
|
target: "next",
|
|
2863
2863
|
event_type: "click",
|
|
2864
2864
|
module_id: 301,
|
|
@@ -2866,11 +2866,11 @@ function ln({
|
|
|
2866
2866
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2867
2867
|
},
|
|
2868
2868
|
tags: { section: "OraculoSeccionEventoEnVivo" }
|
|
2869
|
-
}), (
|
|
2870
|
-
},
|
|
2871
|
-
|
|
2869
|
+
}), (m = c.current) == null || m.next();
|
|
2870
|
+
}, C = () => {
|
|
2871
|
+
S({
|
|
2872
2872
|
element: "evento_en_vivo_view_more",
|
|
2873
|
-
label: `Landing: ${
|
|
2873
|
+
label: `Landing: ${O} - OraculoSeccionEventoEnVivo - Ver más`,
|
|
2874
2874
|
target: "ver_mas",
|
|
2875
2875
|
event_type: "click",
|
|
2876
2876
|
module_id: 301,
|
|
@@ -2880,82 +2880,82 @@ function ln({
|
|
|
2880
2880
|
tags: { section: "OraculoSeccionEventoEnVivo" }
|
|
2881
2881
|
}), ha();
|
|
2882
2882
|
}, k = _e(async () => {
|
|
2883
|
-
var
|
|
2883
|
+
var m;
|
|
2884
2884
|
try {
|
|
2885
|
-
if (!
|
|
2886
|
-
|
|
2885
|
+
if (!x.current) {
|
|
2886
|
+
x.current = !0;
|
|
2887
2887
|
try {
|
|
2888
|
-
const
|
|
2889
|
-
|
|
2890
|
-
} catch (
|
|
2891
|
-
console.error("Order fetch failed, using default sorting",
|
|
2888
|
+
const F = await (await fetch("https://api.mktolimpo.com/api/kambi/eventos/orden")).json(), G = ((m = F == null ? void 0 : F.data) == null ? void 0 : m.event_ids) || [], q = /* @__PURE__ */ new Map();
|
|
2889
|
+
G.forEach((W, Y) => q.set(String(W), Y)), B.current = q;
|
|
2890
|
+
} catch (T) {
|
|
2891
|
+
console.error("Order fetch failed, using default sorting", T);
|
|
2892
2892
|
}
|
|
2893
2893
|
}
|
|
2894
|
-
const
|
|
2895
|
-
if (!
|
|
2896
|
-
const
|
|
2894
|
+
const o = await fetch(i);
|
|
2895
|
+
if (!o.ok) throw new Error("Failed to fetch live events");
|
|
2896
|
+
const h = await o.json(), $ = on(h.events);
|
|
2897
2897
|
if (B.current.size === 0)
|
|
2898
|
-
|
|
2898
|
+
s($);
|
|
2899
2899
|
else {
|
|
2900
|
-
const
|
|
2901
|
-
const
|
|
2902
|
-
return (
|
|
2900
|
+
const T = [...$].sort((F, G) => {
|
|
2901
|
+
const q = B.current.get(String(F.event.id)), W = B.current.get(String(G.event.id));
|
|
2902
|
+
return (q !== void 0 ? q : 1 / 0) - (W !== void 0 ? W : 1 / 0);
|
|
2903
2903
|
});
|
|
2904
|
-
|
|
2904
|
+
s(T);
|
|
2905
2905
|
}
|
|
2906
|
-
} catch (
|
|
2907
|
-
console.error("LoadData Error:",
|
|
2906
|
+
} catch (o) {
|
|
2907
|
+
console.error("LoadData Error:", o);
|
|
2908
2908
|
}
|
|
2909
2909
|
}, []);
|
|
2910
2910
|
K(() => {
|
|
2911
2911
|
k();
|
|
2912
|
-
const
|
|
2913
|
-
return () => clearInterval(
|
|
2912
|
+
const m = setInterval(k, 2e4);
|
|
2913
|
+
return () => clearInterval(m);
|
|
2914
2914
|
}, [k]), K(() => {
|
|
2915
|
-
if (
|
|
2915
|
+
if (R.start === null || R.end === null || !(u != null && u.length) || M.current)
|
|
2916
2916
|
return;
|
|
2917
|
-
const
|
|
2918
|
-
var
|
|
2919
|
-
return (
|
|
2920
|
-
}).filter((
|
|
2921
|
-
$.length !== 0 && ($.forEach((
|
|
2922
|
-
|
|
2923
|
-
...
|
|
2924
|
-
...
|
|
2917
|
+
const m = 3, o = Math.max(0, R.start - m), h = Math.min(u.length - 1, R.end + m), $ = u.slice(o, h + 1).map((T) => {
|
|
2918
|
+
var F;
|
|
2919
|
+
return (F = T == null ? void 0 : T.event) == null ? void 0 : F.id;
|
|
2920
|
+
}).filter((T) => T && !I.current.has(T));
|
|
2921
|
+
$.length !== 0 && ($.forEach((T) => I.current.add(T)), M.current = !0, at($).then((T) => {
|
|
2922
|
+
T != null && T.events && _((F) => ({
|
|
2923
|
+
...F,
|
|
2924
|
+
...T.events
|
|
2925
2925
|
}));
|
|
2926
|
-
}).catch((
|
|
2927
|
-
console.error("Jersey fetch error",
|
|
2926
|
+
}).catch((T) => {
|
|
2927
|
+
console.error("Jersey fetch error", T), $.forEach((F) => I.current.delete(F));
|
|
2928
2928
|
}).finally(() => {
|
|
2929
2929
|
M.current = !1;
|
|
2930
2930
|
}));
|
|
2931
|
-
}, [
|
|
2932
|
-
const
|
|
2933
|
-
if (!f &&
|
|
2931
|
+
}, [R, u]);
|
|
2932
|
+
const P = l || void 0, f = u === null;
|
|
2933
|
+
if (!f && u.length === 0)
|
|
2934
2934
|
return null;
|
|
2935
|
-
const
|
|
2936
|
-
return /* @__PURE__ */ e("section", { className:
|
|
2935
|
+
const w = ne(() => f ? Array(4).fill({}) : (u == null ? void 0 : u.slice(0, 20)) || [], [f, u]);
|
|
2936
|
+
return /* @__PURE__ */ e("section", { className: P, style: {
|
|
2937
2937
|
// paddingLeft: 16,
|
|
2938
2938
|
// paddingRight: 16,
|
|
2939
2939
|
width: "100%",
|
|
2940
2940
|
boxSizing: "border-box"
|
|
2941
|
-
}, children: /* @__PURE__ */ g(
|
|
2941
|
+
}, children: /* @__PURE__ */ g(D, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
2942
2942
|
/* @__PURE__ */ e("div", { className: nn.padding, children: /* @__PURE__ */ g(oe, { spacing: 1.5, columns: "1fr auto ", justify: "start", children: [
|
|
2943
2943
|
/* @__PURE__ */ e(le, { title: a, iconUrl: n, size: "md" }),
|
|
2944
2944
|
/* @__PURE__ */ g("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
|
|
2945
2945
|
/* @__PURE__ */ g(oe, { spacing: 1, columns: "auto auto", children: [
|
|
2946
2946
|
/* @__PURE__ */ e(
|
|
2947
|
-
|
|
2947
|
+
H,
|
|
2948
2948
|
{
|
|
2949
2949
|
ariaLabel: "Anterior",
|
|
2950
2950
|
variant: "secondary",
|
|
2951
2951
|
iconOnly: !0,
|
|
2952
2952
|
leftIcon: /* @__PURE__ */ e(Ee, {}),
|
|
2953
|
-
onClick:
|
|
2953
|
+
onClick: A,
|
|
2954
2954
|
disabled: p.isStart
|
|
2955
2955
|
}
|
|
2956
2956
|
),
|
|
2957
2957
|
/* @__PURE__ */ e(
|
|
2958
|
-
|
|
2958
|
+
H,
|
|
2959
2959
|
{
|
|
2960
2960
|
ariaLabel: "Siguiente",
|
|
2961
2961
|
variant: "secondary",
|
|
@@ -2966,14 +2966,14 @@ function ln({
|
|
|
2966
2966
|
}
|
|
2967
2967
|
)
|
|
2968
2968
|
] }),
|
|
2969
|
-
/* @__PURE__ */ e(
|
|
2969
|
+
/* @__PURE__ */ e(H, { variant: "secondary", onClick: C, children: "Ver más" })
|
|
2970
2970
|
] })
|
|
2971
2971
|
] }) }),
|
|
2972
2972
|
/* @__PURE__ */ e(
|
|
2973
2973
|
se,
|
|
2974
2974
|
{
|
|
2975
|
-
ref:
|
|
2976
|
-
items:
|
|
2975
|
+
ref: c,
|
|
2976
|
+
items: w,
|
|
2977
2977
|
perPage: void 0,
|
|
2978
2978
|
showRightGradient: !0,
|
|
2979
2979
|
enableHorizontalWheel: !0,
|
|
@@ -2984,21 +2984,21 @@ function ln({
|
|
|
2984
2984
|
768: { gap: "8px", focus: "center", padding: { left: "24px", right: "24px" } },
|
|
2985
2985
|
1024: { gap: "10px", focus: "center", padding: { left: "24px", right: "24px" } }
|
|
2986
2986
|
},
|
|
2987
|
-
renderItem: (
|
|
2987
|
+
renderItem: (m) => {
|
|
2988
2988
|
var $;
|
|
2989
|
-
const
|
|
2989
|
+
const o = (($ = m.event) == null ? void 0 : $.id) || m.eventId, h = o in d ? d[o] : void 0;
|
|
2990
2990
|
return f ? /* @__PURE__ */ e(Oe, { children: /* @__PURE__ */ e(Qa, {}) }) : /* @__PURE__ */ e(Oe, { children: /* @__PURE__ */ e(
|
|
2991
2991
|
rn,
|
|
2992
2992
|
{
|
|
2993
|
-
...
|
|
2994
|
-
jersey:
|
|
2993
|
+
...m,
|
|
2994
|
+
jersey: h
|
|
2995
2995
|
}
|
|
2996
2996
|
) });
|
|
2997
2997
|
},
|
|
2998
|
-
onMove: ({ isStart:
|
|
2998
|
+
onMove: ({ isStart: m, isEnd: o, visibleStart: h, visibleEnd: $ }) => {
|
|
2999
2999
|
b(
|
|
3000
|
-
(
|
|
3001
|
-
),
|
|
3000
|
+
(T) => T.isStart === m && T.isEnd === o ? T : { isStart: m, isEnd: o }
|
|
3001
|
+
), E({ start: h, end: $ });
|
|
3002
3002
|
}
|
|
3003
3003
|
}
|
|
3004
3004
|
)
|
|
@@ -3007,26 +3007,26 @@ function ln({
|
|
|
3007
3007
|
function sn() {
|
|
3008
3008
|
return /* @__PURE__ */ g("div", { className: ce.cardContainer, children: [
|
|
3009
3009
|
/* @__PURE__ */ e(Qe, { title: "" }),
|
|
3010
|
-
/* @__PURE__ */ e("div", { className: ce.cardBackground, children: /* @__PURE__ */ g(
|
|
3011
|
-
/* @__PURE__ */ g(
|
|
3012
|
-
/* @__PURE__ */ e(
|
|
3013
|
-
/* @__PURE__ */ e(
|
|
3010
|
+
/* @__PURE__ */ e("div", { className: ce.cardBackground, children: /* @__PURE__ */ g(D, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
3011
|
+
/* @__PURE__ */ g(D, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
3012
|
+
/* @__PURE__ */ e(V, { variant: "circular", width: 48, height: 48 }),
|
|
3013
|
+
/* @__PURE__ */ e(V, { variant: "circular", width: 48, height: 48 })
|
|
3014
3014
|
] }),
|
|
3015
|
-
/* @__PURE__ */ g(
|
|
3016
|
-
/* @__PURE__ */ g(
|
|
3017
|
-
/* @__PURE__ */ e(
|
|
3018
|
-
/* @__PURE__ */ e(
|
|
3015
|
+
/* @__PURE__ */ g(D, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
3016
|
+
/* @__PURE__ */ g(D, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
3017
|
+
/* @__PURE__ */ e(V, { variant: "text", width: 80, height: 12 }),
|
|
3018
|
+
/* @__PURE__ */ e(V, { variant: "text", width: 80, height: 12 })
|
|
3019
3019
|
] }),
|
|
3020
|
-
/* @__PURE__ */ e(
|
|
3021
|
-
/* @__PURE__ */ g(
|
|
3022
|
-
/* @__PURE__ */ e(
|
|
3023
|
-
/* @__PURE__ */ e(
|
|
3024
|
-
/* @__PURE__ */ e(
|
|
3020
|
+
/* @__PURE__ */ e(D, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ e(V, { variant: "text", width: 160, height: 12 }) }),
|
|
3021
|
+
/* @__PURE__ */ g(D, { direction: "row", spacing: 1, children: [
|
|
3022
|
+
/* @__PURE__ */ e(V, { variant: "text", width: 80, height: 16 }),
|
|
3023
|
+
/* @__PURE__ */ e(V, { variant: "text", width: 80, height: 16 }),
|
|
3024
|
+
/* @__PURE__ */ e(V, { variant: "text", width: 80, height: 16 })
|
|
3025
3025
|
] }),
|
|
3026
|
-
/* @__PURE__ */ e("div", { className: ce.jugadas, children: /* @__PURE__ */ g(
|
|
3027
|
-
/* @__PURE__ */ e(
|
|
3028
|
-
/* @__PURE__ */ e(
|
|
3029
|
-
/* @__PURE__ */ e(
|
|
3026
|
+
/* @__PURE__ */ e("div", { className: ce.jugadas, children: /* @__PURE__ */ g(D, { direction: "row", spacing: 1, children: [
|
|
3027
|
+
/* @__PURE__ */ e(V, { variant: "rounded", width: 80, height: 32 }),
|
|
3028
|
+
/* @__PURE__ */ e(V, { variant: "rounded", width: 80, height: 32 }),
|
|
3029
|
+
/* @__PURE__ */ e(V, { variant: "rounded", width: 80, height: 32 })
|
|
3030
3030
|
] }) })
|
|
3031
3031
|
] })
|
|
3032
3032
|
] }) })
|
|
@@ -3039,16 +3039,16 @@ const cn = "oraculo__OraculoSeccionEventoSemana-module__wrapper___eqVq-", dn = "
|
|
|
3039
3039
|
padding: mn
|
|
3040
3040
|
}, pn = de.memo(Ma);
|
|
3041
3041
|
async function gn(t, a = 2, n) {
|
|
3042
|
-
const
|
|
3043
|
-
for (let
|
|
3042
|
+
const r = [];
|
|
3043
|
+
for (let l = 0; l < t.length; l += a) {
|
|
3044
3044
|
if (n.aborted)
|
|
3045
3045
|
throw new DOMException("Aborted", "AbortError");
|
|
3046
|
-
const
|
|
3047
|
-
|
|
3046
|
+
const i = t.slice(l, l + a), c = await Promise.all(
|
|
3047
|
+
i.map((p) => fetch(p, { signal: n }).then((b) => b.json()))
|
|
3048
3048
|
);
|
|
3049
|
-
|
|
3049
|
+
r.push(...c);
|
|
3050
3050
|
}
|
|
3051
|
-
return
|
|
3051
|
+
return r;
|
|
3052
3052
|
}
|
|
3053
3053
|
function fn(t) {
|
|
3054
3054
|
return [...t].sort(
|
|
@@ -3057,37 +3057,37 @@ function fn(t) {
|
|
|
3057
3057
|
}
|
|
3058
3058
|
function hn(t) {
|
|
3059
3059
|
const a = /* @__PURE__ */ new Date(), n = new Date(a.getTime() + 480 * 60 * 60 * 1e3);
|
|
3060
|
-
return t.filter((
|
|
3061
|
-
if (!
|
|
3062
|
-
const
|
|
3063
|
-
return
|
|
3060
|
+
return t.filter((r) => {
|
|
3061
|
+
if (!r.start) return !1;
|
|
3062
|
+
const l = new Date(r.start);
|
|
3063
|
+
return l >= a && l <= n;
|
|
3064
3064
|
});
|
|
3065
3065
|
}
|
|
3066
3066
|
function bn(t, a) {
|
|
3067
|
-
const
|
|
3068
|
-
var
|
|
3069
|
-
return ((
|
|
3070
|
-
}).reduce((
|
|
3071
|
-
return t.filter((
|
|
3072
|
-
...
|
|
3073
|
-
outcome:
|
|
3067
|
+
const r = a.filter((l) => {
|
|
3068
|
+
var i;
|
|
3069
|
+
return ((i = l.betOfferType) == null ? void 0 : i.id) === 2;
|
|
3070
|
+
}).reduce((l, i) => (l[i.eventId] || (l[i.eventId] = []), l[i.eventId].push(i), l), {});
|
|
3071
|
+
return t.filter((l) => r[l.id]).map((l) => ({
|
|
3072
|
+
...l,
|
|
3073
|
+
outcome: r[l.id]
|
|
3074
3074
|
}));
|
|
3075
3075
|
}
|
|
3076
3076
|
function vn({
|
|
3077
3077
|
items: t,
|
|
3078
3078
|
title: a = "En vivo",
|
|
3079
3079
|
iconUrl: n,
|
|
3080
|
-
onViewMore:
|
|
3081
|
-
className:
|
|
3080
|
+
onViewMore: r,
|
|
3081
|
+
className: l = ""
|
|
3082
3082
|
}) {
|
|
3083
|
-
const
|
|
3083
|
+
const i = J(), c = X(), p = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE", b = U(null), [u, s] = j({ isStart: !0, isEnd: !1 }), [d, _] = j(null);
|
|
3084
3084
|
U(/* @__PURE__ */ new Set());
|
|
3085
|
-
const [
|
|
3086
|
-
ne(() =>
|
|
3087
|
-
const
|
|
3088
|
-
|
|
3085
|
+
const [y, E] = j({}), [M, v] = j({ start: null, end: null }), N = "channel_id=1&client_id=200&competitionId=undefined&lang=es_PE&market=PE&useCombined=true", x = nt(M, 250), S = U(!1);
|
|
3086
|
+
ne(() => d === null ? Array(6).fill({}) : d.slice(0, 20), [d]);
|
|
3087
|
+
const O = () => {
|
|
3088
|
+
i({
|
|
3089
3089
|
element: "evento_semana_view_more",
|
|
3090
|
-
label: `Landing: ${
|
|
3090
|
+
label: `Landing: ${c} - OraculoSeccionEventoSemana - Ver más`,
|
|
3091
3091
|
target: "ver_mas",
|
|
3092
3092
|
event_type: "click",
|
|
3093
3093
|
module_id: 301,
|
|
@@ -3097,81 +3097,81 @@ function vn({
|
|
|
3097
3097
|
tags: { section: "OraculoSeccionEventoSemana" }
|
|
3098
3098
|
}), ba();
|
|
3099
3099
|
};
|
|
3100
|
-
async function B(
|
|
3101
|
-
var f,
|
|
3102
|
-
let k = [],
|
|
3100
|
+
async function B(C) {
|
|
3101
|
+
var f, w;
|
|
3102
|
+
let k = [], P = [];
|
|
3103
3103
|
try {
|
|
3104
|
-
const
|
|
3104
|
+
const m = await fetch(
|
|
3105
3105
|
"https://api.mktolimpo.com/api/kambi/eventos/orden",
|
|
3106
|
-
{ signal:
|
|
3106
|
+
{ signal: C }
|
|
3107
3107
|
);
|
|
3108
|
-
if (
|
|
3109
|
-
const
|
|
3110
|
-
k = ((f =
|
|
3108
|
+
if (m.ok) {
|
|
3109
|
+
const o = await m.json();
|
|
3110
|
+
k = ((f = o == null ? void 0 : o.data) == null ? void 0 : f.group_ids) || [], P = ((w = o == null ? void 0 : o.data) == null ? void 0 : w.event_ids) || [];
|
|
3111
3111
|
}
|
|
3112
|
-
} catch (
|
|
3113
|
-
|
|
3112
|
+
} catch (m) {
|
|
3113
|
+
m.name !== "AbortError" && console.warn("Order API not available, using default group order");
|
|
3114
3114
|
return;
|
|
3115
3115
|
}
|
|
3116
3116
|
try {
|
|
3117
|
-
const
|
|
3118
|
-
(
|
|
3117
|
+
const h = (await (await fetch(p, { signal: C })).json()).group.groups.find(
|
|
3118
|
+
(W) => W.englishName === "Football"
|
|
3119
3119
|
);
|
|
3120
|
-
if (!
|
|
3120
|
+
if (!h || !Array.isArray(h.groups)) {
|
|
3121
3121
|
console.error("Football groups not found");
|
|
3122
3122
|
return;
|
|
3123
3123
|
}
|
|
3124
|
-
let $ = [...
|
|
3124
|
+
let $ = [...h.groups];
|
|
3125
3125
|
if (k.length > 0) {
|
|
3126
|
-
const
|
|
3126
|
+
const W = new Map(
|
|
3127
3127
|
k.map((Y, ie) => [Y, ie])
|
|
3128
3128
|
);
|
|
3129
3129
|
$.sort((Y, ie) => {
|
|
3130
|
-
const fe =
|
|
3130
|
+
const fe = W.get(String(Y.id)), ue = W.get(String(ie.id));
|
|
3131
3131
|
return fe !== void 0 && ue !== void 0 ? fe - ue : fe !== void 0 ? -1 : ue !== void 0 ? 1 : 0;
|
|
3132
3132
|
});
|
|
3133
3133
|
}
|
|
3134
|
-
const
|
|
3134
|
+
const F = $.slice(0, 5), G = (W) => {
|
|
3135
3135
|
const Y = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football";
|
|
3136
|
-
if (
|
|
3137
|
-
const ie =
|
|
3136
|
+
if (W.groups && W.groups.length > 0) {
|
|
3137
|
+
const ie = W.groups[0];
|
|
3138
3138
|
return [
|
|
3139
|
-
`${Y}/${
|
|
3139
|
+
`${Y}/${W.termKey}/${ie.termKey}/all/matches.json?${N}`
|
|
3140
3140
|
];
|
|
3141
3141
|
}
|
|
3142
3142
|
return [
|
|
3143
|
-
`${Y}/${
|
|
3143
|
+
`${Y}/${W.termKey}/all/all/matches.json?${N}`
|
|
3144
3144
|
];
|
|
3145
|
-
},
|
|
3146
|
-
|
|
3147
|
-
} catch (
|
|
3148
|
-
console.error(
|
|
3145
|
+
}, q = F.flatMap(G);
|
|
3146
|
+
R(q, P, C);
|
|
3147
|
+
} catch (m) {
|
|
3148
|
+
console.error(m);
|
|
3149
3149
|
}
|
|
3150
3150
|
}
|
|
3151
|
-
async function
|
|
3151
|
+
async function R(C, k, P) {
|
|
3152
3152
|
try {
|
|
3153
|
-
const f = await gn(
|
|
3154
|
-
let
|
|
3155
|
-
f.forEach((
|
|
3156
|
-
|
|
3157
|
-
...
|
|
3153
|
+
const f = await gn(C, 2, P);
|
|
3154
|
+
let w = [], m = [];
|
|
3155
|
+
f.forEach((T) => {
|
|
3156
|
+
T.events && (w.push(...T.events.map((F) => F.event)), m.push(
|
|
3157
|
+
...T.events.flatMap((F) => F.betOffers || [])
|
|
3158
3158
|
));
|
|
3159
3159
|
});
|
|
3160
|
-
const
|
|
3161
|
-
let $ =
|
|
3160
|
+
const o = bn(w, m), h = fn(hn(o));
|
|
3161
|
+
let $ = h;
|
|
3162
3162
|
if (k.length > 0) {
|
|
3163
|
-
const
|
|
3164
|
-
k.map((
|
|
3165
|
-
String(
|
|
3166
|
-
|
|
3163
|
+
const T = new Map(
|
|
3164
|
+
k.map((F, G) => [
|
|
3165
|
+
String(F),
|
|
3166
|
+
G
|
|
3167
3167
|
])
|
|
3168
3168
|
);
|
|
3169
|
-
$ = [...
|
|
3170
|
-
const
|
|
3171
|
-
return
|
|
3169
|
+
$ = [...h].sort((F, G) => {
|
|
3170
|
+
const q = T.get(String(F.id)), W = T.get(String(G.id));
|
|
3171
|
+
return q !== void 0 && W !== void 0 ? q - W : q !== void 0 ? -1 : W !== void 0 ? 1 : 0;
|
|
3172
3172
|
});
|
|
3173
3173
|
}
|
|
3174
|
-
if (
|
|
3174
|
+
if (P.aborted) return;
|
|
3175
3175
|
_($);
|
|
3176
3176
|
} catch (f) {
|
|
3177
3177
|
console.error("Error loading events:", f);
|
|
@@ -3179,48 +3179,48 @@ function vn({
|
|
|
3179
3179
|
}
|
|
3180
3180
|
K(() => {
|
|
3181
3181
|
if (!t) return;
|
|
3182
|
-
const
|
|
3183
|
-
return B(
|
|
3184
|
-
|
|
3182
|
+
const C = new AbortController();
|
|
3183
|
+
return B(C.signal), () => {
|
|
3184
|
+
C.abort();
|
|
3185
3185
|
};
|
|
3186
3186
|
}, [t]), K(() => {
|
|
3187
|
-
if (
|
|
3187
|
+
if (x.start === null || x.end === null || !(d != null && d.length) || S.current)
|
|
3188
3188
|
return;
|
|
3189
|
-
const
|
|
3189
|
+
const C = 2, k = Math.max(0, x.start - C), P = Math.min(d.length - 1, x.end + C), f = d.slice(k, P + 1).map((m) => m == null ? void 0 : m.id).filter(Boolean).filter((m) => y[m] === void 0);
|
|
3190
3190
|
if (!f.length) return;
|
|
3191
|
-
let
|
|
3192
|
-
return
|
|
3191
|
+
let w = !1;
|
|
3192
|
+
return S.current = !0, (async () => {
|
|
3193
3193
|
try {
|
|
3194
|
-
const
|
|
3195
|
-
|
|
3196
|
-
...
|
|
3197
|
-
...
|
|
3194
|
+
const m = await at(f);
|
|
3195
|
+
w || E((o) => ({
|
|
3196
|
+
...o,
|
|
3197
|
+
...m.events
|
|
3198
3198
|
}));
|
|
3199
|
-
} catch (
|
|
3200
|
-
console.error("Jersey fetch error",
|
|
3199
|
+
} catch (m) {
|
|
3200
|
+
console.error("Jersey fetch error", m);
|
|
3201
3201
|
} finally {
|
|
3202
|
-
|
|
3202
|
+
S.current = !1;
|
|
3203
3203
|
}
|
|
3204
3204
|
})(), () => {
|
|
3205
|
-
|
|
3205
|
+
w = !0;
|
|
3206
3206
|
};
|
|
3207
|
-
}, [
|
|
3208
|
-
const
|
|
3207
|
+
}, [x, d]);
|
|
3208
|
+
const I = l || void 0, A = {
|
|
3209
3209
|
paddingLeft: 0,
|
|
3210
3210
|
width: "100%",
|
|
3211
3211
|
boxSizing: "border-box"
|
|
3212
|
-
}, z =
|
|
3213
|
-
return !z &&
|
|
3214
|
-
/* @__PURE__ */ e("div", { className: be.container, children: /* @__PURE__ */ g(
|
|
3212
|
+
}, z = d === null;
|
|
3213
|
+
return !z && d.length === 0 ? null : /* @__PURE__ */ e("section", { className: I, style: A, children: /* @__PURE__ */ g("div", { className: `${be.wrapper} ${be.padding}`, children: [
|
|
3214
|
+
/* @__PURE__ */ e("div", { className: be.container, children: /* @__PURE__ */ g(D, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
3215
3215
|
/* @__PURE__ */ e(le, { title: "Eventos de la semana" }),
|
|
3216
3216
|
/* @__PURE__ */ e("div", { className: be.buttonWrapper, children: /* @__PURE__ */ e(
|
|
3217
|
-
|
|
3217
|
+
H,
|
|
3218
3218
|
{
|
|
3219
3219
|
variant: "secondary",
|
|
3220
3220
|
size: "lg",
|
|
3221
3221
|
fullWidth: !0,
|
|
3222
3222
|
onClick: () => {
|
|
3223
|
-
|
|
3223
|
+
O();
|
|
3224
3224
|
},
|
|
3225
3225
|
children: "Ver más"
|
|
3226
3226
|
}
|
|
@@ -3230,7 +3230,7 @@ function vn({
|
|
|
3230
3230
|
se,
|
|
3231
3231
|
{
|
|
3232
3232
|
ref: b,
|
|
3233
|
-
items: z ? Array(6).fill({}) :
|
|
3233
|
+
items: z ? Array(6).fill({}) : d.slice(0, 20),
|
|
3234
3234
|
perPage: 3.5,
|
|
3235
3235
|
gap: "16px",
|
|
3236
3236
|
enableHorizontalWheel: !0,
|
|
@@ -3244,25 +3244,25 @@ function vn({
|
|
|
3244
3244
|
padding: { left: "8px", right: "8px" }
|
|
3245
3245
|
}
|
|
3246
3246
|
},
|
|
3247
|
-
renderItem: (
|
|
3248
|
-
const k =
|
|
3249
|
-
return z ? /* @__PURE__ */ e(Oe, { children: /* @__PURE__ */ e(sn, {}) }) : /* @__PURE__ */ e(Oe, { children: /* @__PURE__ */ e(pn, { event:
|
|
3247
|
+
renderItem: (C) => {
|
|
3248
|
+
const k = C.id, P = k in y ? y[k] : void 0;
|
|
3249
|
+
return z ? /* @__PURE__ */ e(Oe, { children: /* @__PURE__ */ e(sn, {}) }) : /* @__PURE__ */ e(Oe, { children: /* @__PURE__ */ e(pn, { event: C, jersey: P }) });
|
|
3250
3250
|
},
|
|
3251
|
-
onMove: ({ isStart:
|
|
3252
|
-
|
|
3253
|
-
start:
|
|
3251
|
+
onMove: ({ isStart: C, isEnd: k, visibleStart: P, visibleEnd: f }) => {
|
|
3252
|
+
s({ isStart: C, isEnd: k }), v({
|
|
3253
|
+
start: P,
|
|
3254
3254
|
end: f
|
|
3255
|
-
}),
|
|
3255
|
+
}), i({
|
|
3256
3256
|
element: "evento_semana_carousel_slide",
|
|
3257
|
-
label: `Landing: ${
|
|
3257
|
+
label: `Landing: ${c} - OraculoSeccionEventoSemana - Slide Carousel`,
|
|
3258
3258
|
target: "carousel",
|
|
3259
3259
|
event_type: "slide",
|
|
3260
3260
|
module_id: 301,
|
|
3261
3261
|
metadata: {
|
|
3262
3262
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
3263
|
-
visibleStart:
|
|
3263
|
+
visibleStart: P,
|
|
3264
3264
|
visibleEnd: f,
|
|
3265
|
-
isStart:
|
|
3265
|
+
isStart: C,
|
|
3266
3266
|
isEnd: k
|
|
3267
3267
|
},
|
|
3268
3268
|
tags: { section: "OraculoSeccionEventoSemana" }
|
|
@@ -3277,14 +3277,14 @@ function _n({
|
|
|
3277
3277
|
items: a,
|
|
3278
3278
|
hideItems: n
|
|
3279
3279
|
}) {
|
|
3280
|
-
var
|
|
3281
|
-
const [
|
|
3282
|
-
var
|
|
3283
|
-
|
|
3284
|
-
},
|
|
3285
|
-
var
|
|
3286
|
-
|
|
3287
|
-
},
|
|
3280
|
+
var f, w, m;
|
|
3281
|
+
const [r, l] = j(0), i = J(), c = X(), p = U(null), b = U(!1), u = U(!1), s = (t == null ? void 0 : t.length) || 1, d = !t || t.length === 0, _ = !d && ((f = t == null ? void 0 : t.length) != null ? f : 0) > 1, y = !n && ((w = a == null ? void 0 : a.length) != null ? w : 0) > 0, E = !_ || r === 0, M = !_ || r === s - 1, v = (o) => {
|
|
3282
|
+
var h;
|
|
3283
|
+
o.preventDefault(), o.stopPropagation(), k(), (h = p.current) == null || h.prev();
|
|
3284
|
+
}, N = (o) => {
|
|
3285
|
+
var h;
|
|
3286
|
+
o.preventDefault(), o.stopPropagation(), k(), (h = p.current) == null || h.next();
|
|
3287
|
+
}, x = "#B5B5B5", S = {
|
|
3288
3288
|
position: "absolute",
|
|
3289
3289
|
top: "50%",
|
|
3290
3290
|
transform: "translateY(-50%)",
|
|
@@ -3292,22 +3292,22 @@ function _n({
|
|
|
3292
3292
|
width: 48,
|
|
3293
3293
|
height: 40,
|
|
3294
3294
|
borderRadius: "12px",
|
|
3295
|
-
border: `1.5px solid ${
|
|
3295
|
+
border: `1.5px solid ${x}`,
|
|
3296
3296
|
py: 1,
|
|
3297
3297
|
px: 1.5,
|
|
3298
|
-
color:
|
|
3298
|
+
color: x,
|
|
3299
3299
|
backgroundColor: "transparent",
|
|
3300
3300
|
"&:hover": {
|
|
3301
3301
|
backgroundColor: "rgba(181,181,181,0.08)"
|
|
3302
3302
|
},
|
|
3303
3303
|
"&.Mui-disabled": {
|
|
3304
3304
|
opacity: 0.35,
|
|
3305
|
-
borderColor:
|
|
3306
|
-
color:
|
|
3305
|
+
borderColor: x,
|
|
3306
|
+
color: x,
|
|
3307
3307
|
backgroundColor: "transparent",
|
|
3308
3308
|
cursor: "default"
|
|
3309
3309
|
}
|
|
3310
|
-
},
|
|
3310
|
+
}, O = ne(
|
|
3311
3311
|
() => ({
|
|
3312
3312
|
type: "loop",
|
|
3313
3313
|
perMove: 1,
|
|
@@ -3319,80 +3319,80 @@ function _n({
|
|
|
3319
3319
|
[]
|
|
3320
3320
|
);
|
|
3321
3321
|
K(() => {
|
|
3322
|
-
const
|
|
3322
|
+
const o = setTimeout(() => {
|
|
3323
3323
|
b.current = !0;
|
|
3324
3324
|
}, 500);
|
|
3325
|
-
return () => clearTimeout(
|
|
3325
|
+
return () => clearTimeout(o);
|
|
3326
3326
|
}, []);
|
|
3327
|
-
const
|
|
3328
|
-
var
|
|
3329
|
-
const
|
|
3330
|
-
|
|
3327
|
+
const B = (o, h) => {
|
|
3328
|
+
var T, F;
|
|
3329
|
+
const $ = ((F = (T = o.href) == null ? void 0 : T.split("/").pop()) == null ? void 0 : F.split(".")[0]) || o.label || o.id || `banner_${h + 1}`;
|
|
3330
|
+
i({
|
|
3331
3331
|
element: "banner_carousel",
|
|
3332
|
-
label: `Landing: ${
|
|
3333
|
-
target:
|
|
3332
|
+
label: `Landing: ${c} - OraculoSeccionBanners - Banner click: ${$}`,
|
|
3333
|
+
target: o.href || "no_url",
|
|
3334
3334
|
event_type: "click",
|
|
3335
3335
|
module_id: 301,
|
|
3336
3336
|
metadata: {
|
|
3337
3337
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
3338
|
-
banner_position:
|
|
3338
|
+
banner_position: h + 1,
|
|
3339
3339
|
banner_total: (t == null ? void 0 : t.length) || 0
|
|
3340
3340
|
},
|
|
3341
3341
|
tags: {
|
|
3342
3342
|
banner_type: "carousel",
|
|
3343
3343
|
banner_target: "_self",
|
|
3344
|
-
banner_url:
|
|
3344
|
+
banner_url: o.href || "no_url"
|
|
3345
3345
|
}
|
|
3346
3346
|
});
|
|
3347
|
-
},
|
|
3348
|
-
if (
|
|
3347
|
+
}, R = (o) => {
|
|
3348
|
+
if (i({
|
|
3349
3349
|
element: "banner_menu_item",
|
|
3350
|
-
label: `Landing: ${
|
|
3351
|
-
target:
|
|
3350
|
+
label: `Landing: ${c} - OraculoSeccionBanners - Menu item click: ${o.label || o.id}`,
|
|
3351
|
+
target: o.href || "action",
|
|
3352
3352
|
event_type: "click",
|
|
3353
3353
|
module_id: 301,
|
|
3354
3354
|
metadata: {
|
|
3355
3355
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
3356
|
-
item_id:
|
|
3356
|
+
item_id: o.id
|
|
3357
3357
|
},
|
|
3358
3358
|
tags: {
|
|
3359
|
-
item_label:
|
|
3359
|
+
item_label: o.label || "no_label"
|
|
3360
3360
|
}
|
|
3361
|
-
}),
|
|
3362
|
-
|
|
3361
|
+
}), o.onClick) {
|
|
3362
|
+
o.onClick();
|
|
3363
3363
|
return;
|
|
3364
3364
|
}
|
|
3365
|
-
|
|
3366
|
-
},
|
|
3367
|
-
var
|
|
3368
|
-
const
|
|
3369
|
-
|
|
3370
|
-
const
|
|
3371
|
-
if (
|
|
3372
|
-
const
|
|
3373
|
-
|
|
3365
|
+
o.href && typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(o.href);
|
|
3366
|
+
}, I = (o) => {
|
|
3367
|
+
var F, G, q, W;
|
|
3368
|
+
const h = (o % s + s) % s;
|
|
3369
|
+
l(h);
|
|
3370
|
+
const $ = u.current;
|
|
3371
|
+
if (u.current = !1, $ || P(), !b.current || $) return;
|
|
3372
|
+
const T = (F = t == null ? void 0 : t[h]) != null && F.href ? ((q = (G = t[h].href) == null ? void 0 : G.split("/").pop()) == null ? void 0 : q.split(".")[0]) || `banner_${h + 1}` : `banner_${h + 1}`;
|
|
3373
|
+
i({
|
|
3374
3374
|
element: "banner_carousel",
|
|
3375
|
-
label: `Landing: ${
|
|
3376
|
-
target: ((
|
|
3375
|
+
label: `Landing: ${c} - OraculoSeccionBanners - Banner view: Slide ${h + 1} - ${T}`,
|
|
3376
|
+
target: ((W = t == null ? void 0 : t[h]) == null ? void 0 : W.href) || "no_url",
|
|
3377
3377
|
event_type: "view",
|
|
3378
3378
|
module_id: 301,
|
|
3379
3379
|
metadata: {
|
|
3380
3380
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
3381
|
-
slide_index:
|
|
3382
|
-
total_slides:
|
|
3381
|
+
slide_index: h + 1,
|
|
3382
|
+
total_slides: s,
|
|
3383
3383
|
interaction_type: "manual_slide"
|
|
3384
3384
|
},
|
|
3385
|
-
tags: { banner_position: String(
|
|
3385
|
+
tags: { banner_position: String(h + 1) }
|
|
3386
3386
|
});
|
|
3387
|
-
}, A = 5e3,
|
|
3388
|
-
|
|
3389
|
-
},
|
|
3390
|
-
|
|
3391
|
-
var
|
|
3392
|
-
|
|
3387
|
+
}, A = 5e3, z = U(null), C = !d && ((m = t == null ? void 0 : t.length) != null ? m : 0) > 1, k = () => {
|
|
3388
|
+
z.current != null && (window.clearInterval(z.current), z.current = null);
|
|
3389
|
+
}, P = () => {
|
|
3390
|
+
k(), C && (z.current = window.setInterval(() => {
|
|
3391
|
+
var o;
|
|
3392
|
+
u.current = !0, (o = p.current) == null || o.next();
|
|
3393
3393
|
}, A));
|
|
3394
3394
|
};
|
|
3395
|
-
return K(() => (
|
|
3395
|
+
return K(() => (P(), () => k()), [d, t == null ? void 0 : t.length, A]), /* @__PURE__ */ g(
|
|
3396
3396
|
Z,
|
|
3397
3397
|
{
|
|
3398
3398
|
component: "section",
|
|
@@ -3419,22 +3419,22 @@ function _n({
|
|
|
3419
3419
|
perPage: 1,
|
|
3420
3420
|
gap: "0px",
|
|
3421
3421
|
enableHorizontalWheel: !0,
|
|
3422
|
-
options:
|
|
3423
|
-
onMove: ({ index:
|
|
3424
|
-
const
|
|
3425
|
-
|
|
3422
|
+
options: O,
|
|
3423
|
+
onMove: ({ index: o }) => {
|
|
3424
|
+
const h = (o % s + s) % s;
|
|
3425
|
+
l(h), I(o);
|
|
3426
3426
|
},
|
|
3427
|
-
renderItem: (
|
|
3428
|
-
var
|
|
3427
|
+
renderItem: (o, h) => {
|
|
3428
|
+
var $, T;
|
|
3429
3429
|
return /* @__PURE__ */ g(
|
|
3430
3430
|
Z,
|
|
3431
3431
|
{
|
|
3432
3432
|
component: "a",
|
|
3433
|
-
href:
|
|
3434
|
-
target: (
|
|
3435
|
-
rel:
|
|
3433
|
+
href: o.href,
|
|
3434
|
+
target: ($ = o.target) != null ? $ : "_self",
|
|
3435
|
+
rel: o.target === "_blank" ? "noopener noreferrer" : void 0,
|
|
3436
3436
|
onClick: () => {
|
|
3437
|
-
|
|
3437
|
+
B(o, h);
|
|
3438
3438
|
},
|
|
3439
3439
|
sx: {
|
|
3440
3440
|
position: "relative",
|
|
@@ -3450,13 +3450,13 @@ function _n({
|
|
|
3450
3450
|
component: "picture",
|
|
3451
3451
|
sx: { position: "absolute", inset: 0, lineHeight: 0 },
|
|
3452
3452
|
children: [
|
|
3453
|
-
/* @__PURE__ */ e("source", { srcSet:
|
|
3454
|
-
/* @__PURE__ */ e("source", { srcSet:
|
|
3453
|
+
/* @__PURE__ */ e("source", { srcSet: o.desktopSrc, media: "(min-width:800px)" }),
|
|
3454
|
+
/* @__PURE__ */ e("source", { srcSet: o.mobileSrc, media: "(max-width:799px)" }),
|
|
3455
3455
|
/* @__PURE__ */ e(
|
|
3456
3456
|
Z,
|
|
3457
3457
|
{
|
|
3458
3458
|
component: "img",
|
|
3459
|
-
src: (
|
|
3459
|
+
src: (T = o.fallbackSrc) != null ? T : o.desktopSrc,
|
|
3460
3460
|
alt: "",
|
|
3461
3461
|
"aria-hidden": !0,
|
|
3462
3462
|
loading: "lazy",
|
|
@@ -3501,17 +3501,18 @@ function _n({
|
|
|
3501
3501
|
Ae,
|
|
3502
3502
|
{
|
|
3503
3503
|
"aria-label": "Anterior",
|
|
3504
|
-
onClick:
|
|
3504
|
+
onClick: v,
|
|
3505
3505
|
sx: {
|
|
3506
|
-
...
|
|
3506
|
+
...S,
|
|
3507
3507
|
left: "120px",
|
|
3508
3508
|
"@media (max-width:1024px)": {
|
|
3509
3509
|
left: 24
|
|
3510
3510
|
},
|
|
3511
|
-
"@media (max-width:
|
|
3512
|
-
|
|
3511
|
+
"@media (max-width:786px)": {
|
|
3512
|
+
display: "none"
|
|
3513
3513
|
}
|
|
3514
3514
|
},
|
|
3515
|
+
disabled: E,
|
|
3515
3516
|
children: /* @__PURE__ */ e(Ee, {})
|
|
3516
3517
|
}
|
|
3517
3518
|
),
|
|
@@ -3519,17 +3520,18 @@ function _n({
|
|
|
3519
3520
|
Ae,
|
|
3520
3521
|
{
|
|
3521
3522
|
"aria-label": "Siguiente",
|
|
3522
|
-
onClick:
|
|
3523
|
+
onClick: N,
|
|
3523
3524
|
sx: {
|
|
3524
|
-
...
|
|
3525
|
+
...S,
|
|
3525
3526
|
right: "120px",
|
|
3526
3527
|
"@media (max-width:1024px)": {
|
|
3527
3528
|
right: 24
|
|
3528
3529
|
},
|
|
3529
|
-
"@media (max-width:
|
|
3530
|
-
|
|
3530
|
+
"@media (max-width:786px)": {
|
|
3531
|
+
display: "none"
|
|
3531
3532
|
}
|
|
3532
3533
|
},
|
|
3534
|
+
disabled: M,
|
|
3533
3535
|
children: /* @__PURE__ */ e(Ie, {})
|
|
3534
3536
|
}
|
|
3535
3537
|
)
|
|
@@ -3546,13 +3548,13 @@ function _n({
|
|
|
3546
3548
|
justifyContent: "center",
|
|
3547
3549
|
zIndex: 2
|
|
3548
3550
|
},
|
|
3549
|
-
children: /* @__PURE__ */ e(Xe, { total:
|
|
3551
|
+
children: /* @__PURE__ */ e(Xe, { total: s, active: r, durationMs: A })
|
|
3550
3552
|
}
|
|
3551
3553
|
)
|
|
3552
3554
|
]
|
|
3553
3555
|
}
|
|
3554
3556
|
),
|
|
3555
|
-
|
|
3557
|
+
y && /* @__PURE__ */ e(
|
|
3556
3558
|
Z,
|
|
3557
3559
|
{
|
|
3558
3560
|
sx: {
|
|
@@ -3573,7 +3575,7 @@ function _n({
|
|
|
3573
3575
|
boxShadow: "0 10px 24px rgba(0,0,0,.35)",
|
|
3574
3576
|
zIndex: 3
|
|
3575
3577
|
},
|
|
3576
|
-
children: a == null ? void 0 : a.map((
|
|
3578
|
+
children: a == null ? void 0 : a.map((o) => /* @__PURE__ */ g(
|
|
3577
3579
|
Z,
|
|
3578
3580
|
{
|
|
3579
3581
|
sx: {
|
|
@@ -3584,17 +3586,17 @@ function _n({
|
|
|
3584
3586
|
gap: { xs: 0.5, md: 1 },
|
|
3585
3587
|
color: "#FFFFFF",
|
|
3586
3588
|
minWidth: 0,
|
|
3587
|
-
cursor:
|
|
3589
|
+
cursor: o.onClick || o.href ? "pointer" : "default",
|
|
3588
3590
|
whiteSpace: "nowrap"
|
|
3589
3591
|
},
|
|
3590
|
-
onClick: () =>
|
|
3592
|
+
onClick: () => R(o),
|
|
3591
3593
|
children: [
|
|
3592
|
-
|
|
3594
|
+
o.icon && /* @__PURE__ */ e(
|
|
3593
3595
|
Z,
|
|
3594
3596
|
{
|
|
3595
3597
|
component: "img",
|
|
3596
|
-
src:
|
|
3597
|
-
alt:
|
|
3598
|
+
src: o.icon,
|
|
3599
|
+
alt: o.label || `icon-${o.id}`,
|
|
3598
3600
|
sx: {
|
|
3599
3601
|
width: { xs: 20, sm: 22, md: 24 },
|
|
3600
3602
|
height: { xs: 20, sm: 22, md: 24 },
|
|
@@ -3611,12 +3613,12 @@ function _n({
|
|
|
3611
3613
|
color: "#E0E0E0",
|
|
3612
3614
|
textAlign: "center"
|
|
3613
3615
|
},
|
|
3614
|
-
children:
|
|
3616
|
+
children: o.label
|
|
3615
3617
|
}
|
|
3616
3618
|
)
|
|
3617
3619
|
]
|
|
3618
3620
|
},
|
|
3619
|
-
|
|
3621
|
+
o.id
|
|
3620
3622
|
))
|
|
3621
3623
|
}
|
|
3622
3624
|
)
|
|
@@ -3637,7 +3639,7 @@ function xn({
|
|
|
3637
3639
|
title: t = "Medios de pago",
|
|
3638
3640
|
items: a = yn
|
|
3639
3641
|
}) {
|
|
3640
|
-
const n = Math.ceil(a.length / 2),
|
|
3642
|
+
const n = Math.ceil(a.length / 2), r = a.slice(0, n), l = a.slice(n);
|
|
3641
3643
|
return /* @__PURE__ */ g(Z, { component: "section", "aria-labelledby": "mp-title", sx: { color: "#fff" }, children: [
|
|
3642
3644
|
/* @__PURE__ */ e(
|
|
3643
3645
|
Ke,
|
|
@@ -3676,7 +3678,7 @@ function xn({
|
|
|
3676
3678
|
alignItems: "center",
|
|
3677
3679
|
gap: { xs: 2, md: 3 },
|
|
3678
3680
|
flexWrap: "wrap",
|
|
3679
|
-
children:
|
|
3681
|
+
children: r.map((i, c) => /* @__PURE__ */ e(Re, { ...i }, `${i.alt}-${i.src}-${c}`))
|
|
3680
3682
|
}
|
|
3681
3683
|
),
|
|
3682
3684
|
/* @__PURE__ */ e(
|
|
@@ -3687,7 +3689,7 @@ function xn({
|
|
|
3687
3689
|
alignItems: "center",
|
|
3688
3690
|
gap: { xs: 2, md: 3 },
|
|
3689
3691
|
flexWrap: "wrap",
|
|
3690
|
-
children:
|
|
3692
|
+
children: l.map((i, c) => /* @__PURE__ */ e(Re, { ...i }, `${i.alt}-${i.src}-${c}`))
|
|
3691
3693
|
}
|
|
3692
3694
|
)
|
|
3693
3695
|
] })
|
|
@@ -4799,17 +4801,17 @@ const wn = {
|
|
|
4799
4801
|
}, Sn = (t) => typeof t == "function" || t && typeof t == "object" && "$$typeof" in t, Cn = (t) => /^OraculoSeccion[A-Z]/.test(t);
|
|
4800
4802
|
function Ne(t) {
|
|
4801
4803
|
return t && Array.isArray(t.sections) ? t.sections.slice().sort((a, n) => {
|
|
4802
|
-
var
|
|
4803
|
-
return ((
|
|
4804
|
+
var r, l;
|
|
4805
|
+
return ((r = a.order) != null ? r : 0) - ((l = n.order) != null ? l : 0);
|
|
4804
4806
|
}).map((a, n) => ({ ...a, order: n + 1 })) : t && Array.isArray(t.components) ? t.components.map((a, n) => {
|
|
4805
|
-
var
|
|
4807
|
+
var r, l, i, c, p;
|
|
4806
4808
|
return {
|
|
4807
|
-
id: (
|
|
4808
|
-
title: (
|
|
4809
|
+
id: (r = a.id) != null ? r : n + 1,
|
|
4810
|
+
title: (l = a.title) != null ? l : "",
|
|
4809
4811
|
componentKey: a.componentKey,
|
|
4810
|
-
visible: (
|
|
4812
|
+
visible: (i = a.visible) != null ? i : !0,
|
|
4811
4813
|
order: n + 1,
|
|
4812
|
-
props: (
|
|
4814
|
+
props: (c = a.props) != null ? c : {},
|
|
4813
4815
|
apiUrl: (p = a.apiUrl) != null ? p : "",
|
|
4814
4816
|
dataMode: a.dataMode,
|
|
4815
4817
|
variableName: a.variableName,
|
|
@@ -4831,8 +4833,8 @@ const On = Object.fromEntries(
|
|
|
4831
4833
|
}
|
|
4832
4834
|
};
|
|
4833
4835
|
class je extends Error {
|
|
4834
|
-
constructor(a, n,
|
|
4835
|
-
super(`HTTP ${a} ${
|
|
4836
|
+
constructor(a, n, r) {
|
|
4837
|
+
super(`HTTP ${a} ${r}`), this.status = a, this.url = n, this.statusText = r, this.name = "HttpError";
|
|
4836
4838
|
}
|
|
4837
4839
|
}
|
|
4838
4840
|
const Ge = [
|
|
@@ -4843,54 +4845,54 @@ const Ge = [
|
|
|
4843
4845
|
sectionsOverride: t,
|
|
4844
4846
|
docId: a = "home",
|
|
4845
4847
|
db: n,
|
|
4846
|
-
extras:
|
|
4847
|
-
loader:
|
|
4848
|
-
disableWrapper:
|
|
4848
|
+
extras: r,
|
|
4849
|
+
loader: l,
|
|
4850
|
+
disableWrapper: i = !1
|
|
4849
4851
|
}) => {
|
|
4850
|
-
const
|
|
4852
|
+
const c = ne(() => En(r), [r]), p = l || c.loader, [b, u] = j([]), [s, d] = j(!1), [_, y] = j({}), [E, M] = j({}), [v, N] = j({}), x = st("(min-width:1024px)");
|
|
4851
4853
|
K(() => {
|
|
4852
4854
|
if (t) return;
|
|
4853
4855
|
if (!n) {
|
|
4854
|
-
console.warn("[landing] sin db -> fallback json"),
|
|
4856
|
+
console.warn("[landing] sin db -> fallback json"), u(Ne(We));
|
|
4855
4857
|
return;
|
|
4856
4858
|
}
|
|
4857
|
-
const f = (
|
|
4858
|
-
console.warn("[landing] FALLBACK:",
|
|
4859
|
+
const f = (m, o) => {
|
|
4860
|
+
console.warn("[landing] FALLBACK:", m, o != null ? o : ""), u(Ne(We)), d(!1);
|
|
4859
4861
|
};
|
|
4860
4862
|
if (process.env.NEXT_PUBLIC_LANDING_FORCE_FALLBACK === "1") {
|
|
4861
|
-
|
|
4863
|
+
d(!0), f("forzado por env");
|
|
4862
4864
|
return;
|
|
4863
4865
|
}
|
|
4864
|
-
|
|
4865
|
-
const
|
|
4866
|
+
d(!0);
|
|
4867
|
+
const w = wt(
|
|
4866
4868
|
St(n, "landings", a),
|
|
4867
|
-
(
|
|
4869
|
+
(m) => {
|
|
4868
4870
|
try {
|
|
4869
|
-
if (!
|
|
4871
|
+
if (!m.exists()) {
|
|
4870
4872
|
f(`doc landings/${a} no existe`);
|
|
4871
4873
|
return;
|
|
4872
4874
|
}
|
|
4873
|
-
const
|
|
4874
|
-
if (!
|
|
4875
|
-
f("JSON inválido o sin secciones normalizables",
|
|
4875
|
+
const o = m.data(), h = Ne(o);
|
|
4876
|
+
if (!h.length) {
|
|
4877
|
+
f("JSON inválido o sin secciones normalizables", o);
|
|
4876
4878
|
return;
|
|
4877
4879
|
}
|
|
4878
|
-
console.log("[landing] Firestore OK (json grande):",
|
|
4879
|
-
} catch (
|
|
4880
|
-
f("error procesando snapshot",
|
|
4880
|
+
console.log("[landing] Firestore OK (json grande):", o), u(h);
|
|
4881
|
+
} catch (o) {
|
|
4882
|
+
f("error procesando snapshot", o);
|
|
4881
4883
|
} finally {
|
|
4882
|
-
|
|
4884
|
+
d(!1);
|
|
4883
4885
|
}
|
|
4884
4886
|
},
|
|
4885
|
-
(
|
|
4886
|
-
f("error onSnapshot",
|
|
4887
|
+
(m) => {
|
|
4888
|
+
f("error onSnapshot", m);
|
|
4887
4889
|
}
|
|
4888
4890
|
);
|
|
4889
|
-
return () =>
|
|
4890
|
-
}, [t, a, n]), K(() => (La(
|
|
4891
|
-
(t ? t.slice() : b.slice()).map((
|
|
4891
|
+
return () => w();
|
|
4892
|
+
}, [t, a, n]), K(() => (La(c), () => Aa()), [c]), K(() => {
|
|
4893
|
+
(t ? t.slice() : b.slice()).map((m) => m.componentKey).filter((m) => !!m).length;
|
|
4892
4894
|
}, [t, b]);
|
|
4893
|
-
const
|
|
4895
|
+
const S = async (f) => {
|
|
4894
4896
|
if (Ge.includes(f.componentKey))
|
|
4895
4897
|
return {
|
|
4896
4898
|
// whatever empty structure your UI expects
|
|
@@ -4898,169 +4900,169 @@ const Ge = [
|
|
|
4898
4900
|
events: [],
|
|
4899
4901
|
data: {}
|
|
4900
4902
|
};
|
|
4901
|
-
const
|
|
4902
|
-
if (!
|
|
4903
|
-
const
|
|
4904
|
-
let
|
|
4905
|
-
if (
|
|
4906
|
-
const
|
|
4907
|
-
|
|
4903
|
+
const w = (f.apiUrl || "").trim();
|
|
4904
|
+
if (!w) return;
|
|
4905
|
+
const m = f.apiMethod || "GET", o = f.apiParams || [];
|
|
4906
|
+
let h = w, $, T;
|
|
4907
|
+
if (m === "GET") {
|
|
4908
|
+
const G = new URL(
|
|
4909
|
+
w,
|
|
4908
4910
|
typeof window == "undefined" ? "http://localhost" : window.location.origin
|
|
4909
4911
|
);
|
|
4910
|
-
for (const
|
|
4911
|
-
|
|
4912
|
-
|
|
4912
|
+
for (const q of o)
|
|
4913
|
+
q.key && G.searchParams.append(q.key, q.value);
|
|
4914
|
+
h = G.toString();
|
|
4913
4915
|
} else {
|
|
4914
|
-
const
|
|
4915
|
-
for (const
|
|
4916
|
-
|
|
4917
|
-
$ =
|
|
4916
|
+
const G = new URLSearchParams();
|
|
4917
|
+
for (const q of o)
|
|
4918
|
+
q.key && G.append(q.key, q.value);
|
|
4919
|
+
$ = G.toString(), T = {
|
|
4918
4920
|
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
|
|
4919
4921
|
};
|
|
4920
4922
|
}
|
|
4921
|
-
const
|
|
4922
|
-
method:
|
|
4923
|
-
headers:
|
|
4923
|
+
const F = await fetch(h, {
|
|
4924
|
+
method: m,
|
|
4925
|
+
headers: T,
|
|
4924
4926
|
body: $
|
|
4925
4927
|
});
|
|
4926
|
-
if (!
|
|
4927
|
-
return
|
|
4928
|
-
},
|
|
4928
|
+
if (!F.ok) throw new je(F.status, h, F.statusText);
|
|
4929
|
+
return F.json();
|
|
4930
|
+
}, O = ne(
|
|
4929
4931
|
() => t ? t.slice() : b.slice(),
|
|
4930
4932
|
[t, b]
|
|
4931
4933
|
), B = de.useRef(/* @__PURE__ */ new Set());
|
|
4932
4934
|
K(() => {
|
|
4933
|
-
const f =
|
|
4935
|
+
const f = O.map((w) => ({ s: w, url: (w.apiUrl || "").trim() })).filter(({ url: w }) => !!w);
|
|
4934
4936
|
if (f.length)
|
|
4935
|
-
for (const { s:
|
|
4936
|
-
const
|
|
4937
|
-
B.current.has(
|
|
4937
|
+
for (const { s: w, url: m } of f) {
|
|
4938
|
+
const o = `${w.id}|${m}`;
|
|
4939
|
+
B.current.has(o) || (B.current.add(o), M((h) => ({ ...h, [w.id]: !0 })), N((h) => ({ ...h, [w.id]: "" })), (async () => {
|
|
4938
4940
|
try {
|
|
4939
|
-
const
|
|
4940
|
-
|
|
4941
|
-
} catch (
|
|
4941
|
+
const h = await S(w);
|
|
4942
|
+
y(($) => ({ ...$, [w.id]: h }));
|
|
4943
|
+
} catch (h) {
|
|
4942
4944
|
let $ = "Error desconocido";
|
|
4943
|
-
|
|
4945
|
+
h instanceof je ? $ = `Error HTTP ${h.status} (${h.statusText}) en ${h.url}` : h instanceof SyntaxError ? $ = "Respuesta no es JSON válido" : h instanceof TypeError ? $ = "Fallo de red / CORS / conexión" : typeof h == "string" && ($ = h.toString()), N((T) => ({ ...T, [w.id]: $ }));
|
|
4944
4946
|
} finally {
|
|
4945
|
-
M((
|
|
4947
|
+
M((h) => ({ ...h, [w.id]: !1 }));
|
|
4946
4948
|
}
|
|
4947
4949
|
})());
|
|
4948
4950
|
}
|
|
4949
|
-
}, [
|
|
4950
|
-
const
|
|
4951
|
-
() =>
|
|
4952
|
-
[
|
|
4953
|
-
),
|
|
4954
|
-
const
|
|
4955
|
-
for (const
|
|
4956
|
-
const
|
|
4957
|
-
if (
|
|
4958
|
-
const $ = String(
|
|
4951
|
+
}, [O]);
|
|
4952
|
+
const R = ne(
|
|
4953
|
+
() => O.filter((f) => f.visible).sort((f, w) => f.order - w.order),
|
|
4954
|
+
[O]
|
|
4955
|
+
), I = (f) => Array.isArray(f) ? f.map((w) => {
|
|
4956
|
+
const m = {};
|
|
4957
|
+
for (const o of w.fields || []) {
|
|
4958
|
+
const h = (o.type || "string").toLowerCase();
|
|
4959
|
+
if (h === "number") {
|
|
4960
|
+
const $ = String(o.value || "").trim();
|
|
4959
4961
|
if ($ !== "") {
|
|
4960
|
-
const
|
|
4961
|
-
Number.isNaN(
|
|
4962
|
+
const T = Number($);
|
|
4963
|
+
Number.isNaN(T) || (m[o.name] = T);
|
|
4962
4964
|
}
|
|
4963
|
-
} else if (
|
|
4964
|
-
|
|
4965
|
-
else if (
|
|
4966
|
-
const $ = String(
|
|
4965
|
+
} else if (h === "boolean")
|
|
4966
|
+
m[o.name] = String(o.value).toLowerCase() === "true";
|
|
4967
|
+
else if (h === "function") {
|
|
4968
|
+
const $ = String(o.value || "").trim();
|
|
4967
4969
|
if ($)
|
|
4968
4970
|
try {
|
|
4969
|
-
const
|
|
4970
|
-
|
|
4971
|
-
} catch (
|
|
4972
|
-
console.error(`❌ Error creando función en item '${
|
|
4971
|
+
const T = new Function($);
|
|
4972
|
+
m[o.name] = T;
|
|
4973
|
+
} catch (T) {
|
|
4974
|
+
console.error(`❌ Error creando función en item '${o.name}':`, T);
|
|
4973
4975
|
}
|
|
4974
|
-
} else
|
|
4976
|
+
} else m[o.name] = o.value;
|
|
4975
4977
|
}
|
|
4976
|
-
return
|
|
4977
|
-
}) : [],
|
|
4978
|
-
const
|
|
4979
|
-
if (!Array.isArray(f)) return
|
|
4980
|
-
for (const
|
|
4981
|
-
if (!
|
|
4982
|
-
const
|
|
4983
|
-
if (
|
|
4984
|
-
const
|
|
4985
|
-
if (
|
|
4986
|
-
const $ = Number(
|
|
4987
|
-
Number.isNaN($) || (
|
|
4978
|
+
return m;
|
|
4979
|
+
}) : [], A = (f) => {
|
|
4980
|
+
const w = {};
|
|
4981
|
+
if (!Array.isArray(f)) return w;
|
|
4982
|
+
for (const m of f) {
|
|
4983
|
+
if (!m.name) continue;
|
|
4984
|
+
const o = (m.type || "string").toLowerCase();
|
|
4985
|
+
if (o === "number") {
|
|
4986
|
+
const h = String(m.value || "").trim();
|
|
4987
|
+
if (h !== "") {
|
|
4988
|
+
const $ = Number(h);
|
|
4989
|
+
Number.isNaN($) || (w[m.name] = $);
|
|
4988
4990
|
}
|
|
4989
|
-
} else if (
|
|
4990
|
-
|
|
4991
|
-
else if (
|
|
4992
|
-
const
|
|
4993
|
-
if (
|
|
4991
|
+
} else if (o === "boolean")
|
|
4992
|
+
w[m.name] = String(m.value).toLowerCase() === "true";
|
|
4993
|
+
else if (o === "function") {
|
|
4994
|
+
const h = String(m.value || "").trim();
|
|
4995
|
+
if (h)
|
|
4994
4996
|
try {
|
|
4995
|
-
const $ = new Function(
|
|
4996
|
-
|
|
4997
|
+
const $ = new Function(h);
|
|
4998
|
+
w[m.name] = $;
|
|
4997
4999
|
} catch ($) {
|
|
4998
|
-
console.error(`❌ Error creando función en item '${
|
|
5000
|
+
console.error(`❌ Error creando función en item '${m.name}':`, $);
|
|
4999
5001
|
}
|
|
5000
|
-
} else
|
|
5002
|
+
} else w[m.name] = m.value;
|
|
5001
5003
|
}
|
|
5002
|
-
return
|
|
5003
|
-
}, z = (f,
|
|
5004
|
-
const
|
|
5005
|
-
if (
|
|
5006
|
-
const
|
|
5007
|
-
return
|
|
5004
|
+
return w;
|
|
5005
|
+
}, z = (f, w, m) => {
|
|
5006
|
+
const o = m ? { ...m } : {};
|
|
5007
|
+
if (w) {
|
|
5008
|
+
const q = (w.variableName || "items").trim() || "items";
|
|
5009
|
+
return o[q] = w.arr || [], o;
|
|
5008
5010
|
}
|
|
5009
|
-
const
|
|
5010
|
-
return
|
|
5011
|
-
},
|
|
5011
|
+
const h = f, $ = Array.isArray(h), T = !$ && typeof h == "object" && h !== null ? h : void 0, F = T && Array.isArray(T.lobby || T.items) ? T.lobby || T.items : void 0, G = (q) => $ ? h : F || q;
|
|
5012
|
+
return o.items = G(F || []), o;
|
|
5013
|
+
}, C = (f) => {
|
|
5012
5014
|
var $;
|
|
5013
|
-
const
|
|
5014
|
-
let
|
|
5015
|
-
const
|
|
5015
|
+
const w = !!(($ = f.apiUrl) != null && $.trim()), m = w ? _[f.id] : void 0;
|
|
5016
|
+
let o = f.props ? { ...f.props } : {};
|
|
5017
|
+
const h = A(f.manualScalarFields);
|
|
5016
5018
|
if (Ge.includes(f.componentKey))
|
|
5017
|
-
return { items:
|
|
5018
|
-
if (
|
|
5019
|
+
return { items: m, ...o, ...h };
|
|
5020
|
+
if (o = { ...o, ...h }, w) o = z(m, null, o);
|
|
5019
5021
|
else if (f.dataMode === "manual") {
|
|
5020
|
-
const
|
|
5021
|
-
if (
|
|
5022
|
+
const T = I(f.manualItems);
|
|
5023
|
+
if (o = z(
|
|
5022
5024
|
null,
|
|
5023
|
-
{ arr:
|
|
5024
|
-
|
|
5025
|
+
{ arr: T, variableName: f.variableName },
|
|
5026
|
+
o
|
|
5025
5027
|
), f.variableName2 && f.manualItems2) {
|
|
5026
|
-
const
|
|
5027
|
-
|
|
5028
|
+
const F = I(f.manualItems2), G = (f.variableName2 || "items2").trim() || "items2";
|
|
5029
|
+
o[G] = F;
|
|
5028
5030
|
}
|
|
5029
5031
|
}
|
|
5030
|
-
return
|
|
5031
|
-
}, k = (f,
|
|
5032
|
+
return o;
|
|
5033
|
+
}, k = (f, w, m) => /* @__PURE__ */ e("div", { className: `mx-4 p-4 rounded ${{
|
|
5032
5034
|
loading: "bg-blue-100 text-blue-800",
|
|
5033
5035
|
error: "bg-red-100 text-red-800",
|
|
5034
5036
|
component: "bg-yellow-100 text-yellow-800"
|
|
5035
|
-
}[
|
|
5037
|
+
}[w]}`, children: m }, f), P = (f) => {
|
|
5036
5038
|
var ue;
|
|
5037
|
-
const
|
|
5038
|
-
if (!
|
|
5039
|
-
return console.warn(`No hay componente registrado para "${
|
|
5039
|
+
const w = f.componentKey, m = On[w];
|
|
5040
|
+
if (!m)
|
|
5041
|
+
return console.warn(`No hay componente registrado para "${w}"`), k(
|
|
5040
5042
|
f.id,
|
|
5041
5043
|
"component",
|
|
5042
|
-
`Componente "${
|
|
5044
|
+
`Componente "${w}" no encontrado`
|
|
5043
5045
|
);
|
|
5044
|
-
const
|
|
5045
|
-
if (
|
|
5046
|
-
if ($ && !
|
|
5046
|
+
const o = !!((ue = f.apiUrl) != null && ue.trim()), h = o ? _[f.id] : void 0, $ = o ? !!E[f.id] : !1, T = o ? v[f.id] : "";
|
|
5047
|
+
if (o) {
|
|
5048
|
+
if ($ && !h)
|
|
5047
5049
|
return k(
|
|
5048
5050
|
f.id,
|
|
5049
5051
|
"loading",
|
|
5050
5052
|
`Cargando datos desde ${f.apiUrl}...`
|
|
5051
5053
|
);
|
|
5052
|
-
if (
|
|
5054
|
+
if (T && !h)
|
|
5053
5055
|
return k(
|
|
5054
5056
|
f.id,
|
|
5055
5057
|
"error",
|
|
5056
|
-
`Error cargando ${f.apiUrl}: ${
|
|
5058
|
+
`Error cargando ${f.apiUrl}: ${T}`
|
|
5057
5059
|
);
|
|
5058
5060
|
}
|
|
5059
|
-
const
|
|
5061
|
+
const F = C(f), q = (/* @__PURE__ */ new Set([
|
|
5060
5062
|
"OraculoSeccionBanners",
|
|
5061
5063
|
"OraculoSeccionBonoBienvenida",
|
|
5062
5064
|
"OraculoSeccionCasinoEnVivo",
|
|
5063
|
-
...
|
|
5065
|
+
...x ? [] : [
|
|
5064
5066
|
"OraculoSeccionClubOlimpo",
|
|
5065
5067
|
"OraculoSeccionEventoEnVivo",
|
|
5066
5068
|
"OraculoSeccionEventoSemana",
|
|
@@ -5069,18 +5071,18 @@ const Ge = [
|
|
|
5069
5071
|
"OraculoSeccionDestacados",
|
|
5070
5072
|
"OraculoSeccionCasino"
|
|
5071
5073
|
]
|
|
5072
|
-
])).has(f.componentKey),
|
|
5074
|
+
])).has(f.componentKey), W = x ? 120 : 24, Y = (x ? 8 : 5) * 8, ie = f.componentKey === "OraculoSeccionCasinoEnVivo", fe = {
|
|
5073
5075
|
width: "100%",
|
|
5074
5076
|
boxSizing: "border-box",
|
|
5075
|
-
...
|
|
5077
|
+
...q ? {} : { paddingLeft: W, paddingRight: W },
|
|
5076
5078
|
...ie ? {
|
|
5077
5079
|
marginTop: -Y,
|
|
5078
5080
|
marginBottom: -Y
|
|
5079
5081
|
} : {}
|
|
5080
5082
|
};
|
|
5081
|
-
return /* @__PURE__ */ e("div", { style: fe, className: "oraculo-section-wrapper", children: /* @__PURE__ */ e(
|
|
5083
|
+
return /* @__PURE__ */ e("div", { style: fe, className: "oraculo-section-wrapper", children: /* @__PURE__ */ e(m, { ...F }) }, f.id);
|
|
5082
5084
|
};
|
|
5083
|
-
return
|
|
5085
|
+
return s && !t ? p ? /* @__PURE__ */ e(p, {}) : /* @__PURE__ */ e("div", { children: "Cargando..." }) : !s && !t && b.length === 0 ? /* @__PURE__ */ e("div", { className: "text-xs text-gray-500", children: "Sin secciones (Firestore)" }) : i ? /* @__PURE__ */ e(Be, { children: /* @__PURE__ */ e(Me, { docId: a, children: /* @__PURE__ */ e(Q, { children: R.map(P) }) }) }) : /* @__PURE__ */ e(Be, { children: /* @__PURE__ */ e(Me, { docId: a, children: /* @__PURE__ */ e(
|
|
5084
5086
|
ct,
|
|
5085
5087
|
{
|
|
5086
5088
|
className: "oli-font",
|
|
@@ -5095,13 +5097,13 @@ const Ge = [
|
|
|
5095
5097
|
maxWidth: "100%",
|
|
5096
5098
|
overflowX: "hidden"
|
|
5097
5099
|
},
|
|
5098
|
-
children: /* @__PURE__ */ e(ve, { direction: "column", spacing:
|
|
5100
|
+
children: /* @__PURE__ */ e(ve, { direction: "column", spacing: x ? 8 : 5, useFlexGap: !0, children: R.map(P) })
|
|
5099
5101
|
}
|
|
5100
5102
|
) }) });
|
|
5101
5103
|
};
|
|
5102
5104
|
export {
|
|
5103
5105
|
Me as DocIdProvider,
|
|
5104
|
-
|
|
5106
|
+
H as OraculoButton,
|
|
5105
5107
|
se as OraculoCarousel,
|
|
5106
5108
|
Xe as OraculoCarouselDots,
|
|
5107
5109
|
ra as OraculoClubOlimpoVisual,
|