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