oraculo-ui 0.2.38 → 0.2.39
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,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t, jsxs as _, Fragment as pe } from "react/jsx-runtime";
|
|
2
|
-
import { Link as it, Box as ee, useMediaQuery as De, IconButton as Ke, Typography as
|
|
3
|
-
import fe, { useState as
|
|
2
|
+
import { Link as it, Box as ee, useMediaQuery as De, IconButton as Ke, Typography as lt, Stack as Ee, Container as Ct } from "@mui/material";
|
|
3
|
+
import fe, { useState as J, useEffect as Q, useRef as U, forwardRef as Tt, useImperativeHandle as kt, useCallback as Ce, createContext as Nt, useContext as $t, useMemo as ie, useLayoutEffect as Mt } from "react";
|
|
4
4
|
import H from "@mui/material/Skeleton";
|
|
5
5
|
import { Splide as Bt, SplideSlide as At } from "@splidejs/react-splide";
|
|
6
6
|
import P from "@mui/material/Box";
|
|
@@ -9,64 +9,64 @@ import K from "@mui/material/Stack";
|
|
|
9
9
|
import { useCaptureInteraction as ae } from "@olimpo/capture-client";
|
|
10
10
|
import { ChevronLeftRounded as Ae, ChevronRightRounded as Re } from "@mui/icons-material";
|
|
11
11
|
import xe from "@mui/material/useMediaQuery";
|
|
12
|
-
import
|
|
12
|
+
import st from "@mui/icons-material/ChevronLeftRounded";
|
|
13
13
|
import ct from "@mui/icons-material/ChevronRightRounded";
|
|
14
14
|
import { useTheme as Rt, createTheme as Lt, ThemeProvider as Ft } from "@mui/material/styles";
|
|
15
15
|
import qt from "@mui/material/CssBaseline";
|
|
16
16
|
import { onSnapshot as zt, doc as Pt } from "firebase/firestore";
|
|
17
|
-
function
|
|
17
|
+
function X({
|
|
18
18
|
children: e,
|
|
19
19
|
onClick: a,
|
|
20
20
|
href: n,
|
|
21
21
|
target: o,
|
|
22
22
|
rel: r,
|
|
23
|
-
type:
|
|
23
|
+
type: l = "button",
|
|
24
24
|
disabled: s = !1,
|
|
25
|
-
variant:
|
|
25
|
+
variant: d = "primary",
|
|
26
26
|
size: g,
|
|
27
|
-
fullWidth:
|
|
28
|
-
fullHeight:
|
|
29
|
-
className:
|
|
30
|
-
ariaLabel:
|
|
27
|
+
fullWidth: p = !1,
|
|
28
|
+
fullHeight: m = !1,
|
|
29
|
+
className: u = "",
|
|
30
|
+
ariaLabel: c,
|
|
31
31
|
leftIcon: f,
|
|
32
|
-
rightIcon:
|
|
32
|
+
rightIcon: h,
|
|
33
33
|
iconOnly: x
|
|
34
34
|
}) {
|
|
35
|
-
const C = !!e && e !== !0,
|
|
35
|
+
const C = !!e && e !== !0, N = (!!f ? 1 : 0) + (!!h ? 1 : 0) == 1, z = x != null ? x : N && !C, T = [
|
|
36
36
|
"orc-btn",
|
|
37
|
-
|
|
37
|
+
d === "secondary" ? "orc-btn--secondary" : d === "tertiary" ? "orc-btn--tertiary" : "orc-btn--primary",
|
|
38
38
|
g ? `orc-btn--${g}` : "",
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
].filter(Boolean).join(" "),
|
|
39
|
+
p ? "orc-btn--full" : "",
|
|
40
|
+
m ? "orc-btn--fullHeight" : "",
|
|
41
|
+
z ? "orc-btn--iconOnly" : "",
|
|
42
|
+
u
|
|
43
|
+
].filter(Boolean).join(" "), w = /* @__PURE__ */ _(pe, { children: [
|
|
44
44
|
f && /* @__PURE__ */ t("span", { className: "orc-btn__icon", children: f }),
|
|
45
|
-
!
|
|
46
|
-
|
|
47
|
-
] }),
|
|
45
|
+
!z && /* @__PURE__ */ t("span", { className: "orc-btn__label", children: e }),
|
|
46
|
+
h && /* @__PURE__ */ t("span", { className: "orc-btn__icon", children: h })
|
|
47
|
+
] }), L = 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: r,
|
|
54
|
-
"aria-label":
|
|
55
|
-
"aria-disabled":
|
|
56
|
-
tabIndex:
|
|
54
|
+
"aria-label": c,
|
|
55
|
+
"aria-disabled": L,
|
|
56
|
+
tabIndex: L ? -1 : void 0,
|
|
57
57
|
className: T,
|
|
58
|
-
onClick:
|
|
59
|
-
children:
|
|
58
|
+
onClick: L ? (q) => q.preventDefault() : a,
|
|
59
|
+
children: w
|
|
60
60
|
}
|
|
61
61
|
) : /* @__PURE__ */ t(
|
|
62
62
|
"button",
|
|
63
63
|
{
|
|
64
|
-
type:
|
|
64
|
+
type: l,
|
|
65
65
|
onClick: a,
|
|
66
|
-
disabled: !!
|
|
67
|
-
"aria-label":
|
|
66
|
+
disabled: !!L,
|
|
67
|
+
"aria-label": c,
|
|
68
68
|
className: T,
|
|
69
|
-
children:
|
|
69
|
+
children: w
|
|
70
70
|
}
|
|
71
71
|
);
|
|
72
72
|
}
|
|
@@ -76,12 +76,12 @@ function ge({
|
|
|
76
76
|
size: n = "md",
|
|
77
77
|
className: o = ""
|
|
78
78
|
}) {
|
|
79
|
-
const
|
|
79
|
+
const l = [
|
|
80
80
|
"orc-section-title",
|
|
81
81
|
n ? `orc-section-title--${n}` : "",
|
|
82
82
|
o
|
|
83
83
|
].filter(Boolean).join(" ");
|
|
84
|
-
return /* @__PURE__ */ _("div", { className:
|
|
84
|
+
return /* @__PURE__ */ _("div", { className: l, children: [
|
|
85
85
|
a && /* @__PURE__ */ t(
|
|
86
86
|
"img",
|
|
87
87
|
{
|
|
@@ -101,28 +101,28 @@ const dt = ({
|
|
|
101
101
|
durationMs: r = 5e3
|
|
102
102
|
}) => {
|
|
103
103
|
if (e <= 1) return null;
|
|
104
|
-
const
|
|
104
|
+
const l = ["orc-dots", o].filter(Boolean).join(" "), [s, d] = J(0);
|
|
105
105
|
return Q(() => {
|
|
106
|
-
|
|
107
|
-
}, [a, r]), /* @__PURE__ */ t("div", { className:
|
|
108
|
-
const
|
|
106
|
+
d((g) => g + 1);
|
|
107
|
+
}, [a, r]), /* @__PURE__ */ t("div", { className: l, role: "tablist", "aria-label": "Carousel pagination", children: Array.from({ length: e }).map((g, p) => {
|
|
108
|
+
const m = p === 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":
|
|
115
|
-
"aria-label": `Ir al slide ${
|
|
116
|
-
className: "orc-dots__dot" + (
|
|
117
|
-
style:
|
|
114
|
+
"aria-selected": m,
|
|
115
|
+
"aria-label": `Ir al slide ${p + 1}`,
|
|
116
|
+
className: "orc-dots__dot" + (m ? " orc-dots__dot--active" : ""),
|
|
117
|
+
style: m ? {
|
|
118
118
|
"--dot-progress-ms": `${r}ms`
|
|
119
119
|
} : void 0,
|
|
120
120
|
onClick: () => {
|
|
121
|
-
|
|
121
|
+
m && d((u) => u + 1), n == null || n(p);
|
|
122
122
|
}
|
|
123
123
|
},
|
|
124
|
-
|
|
125
|
-
) },
|
|
124
|
+
m ? `a-${p}-${s}` : `i-${p}`
|
|
125
|
+
) }, p);
|
|
126
126
|
}) });
|
|
127
127
|
};
|
|
128
128
|
function me({
|
|
@@ -132,13 +132,13 @@ function me({
|
|
|
132
132
|
justify: o = "stretch",
|
|
133
133
|
columns: r = null
|
|
134
134
|
}) {
|
|
135
|
-
const
|
|
135
|
+
const l = r || `repeat(auto-fit, minmax(${a}px, 1fr))`, s = typeof n == "number" ? `${n * 8}px` : n;
|
|
136
136
|
return /* @__PURE__ */ t(
|
|
137
137
|
"div",
|
|
138
138
|
{
|
|
139
139
|
style: {
|
|
140
140
|
display: "grid",
|
|
141
|
-
gridTemplateColumns:
|
|
141
|
+
gridTemplateColumns: l,
|
|
142
142
|
justifyItems: o,
|
|
143
143
|
gap: s,
|
|
144
144
|
height: "inherit"
|
|
@@ -294,23 +294,23 @@ function pt({ text: e, name: a, size: n = "normal" }) {
|
|
|
294
294
|
}
|
|
295
295
|
);
|
|
296
296
|
}
|
|
297
|
-
const na = "oraculo__OraculoEventTeamInfo-module__team___UfpUs", oa = "oraculo__OraculoEventTeamInfo-module__regular___ag826", ra = "oraculo__OraculoEventTeamInfo-module__compact___RCNOs", ia = "oraculo__OraculoEventTeamInfo-module__logo___fKCl3",
|
|
297
|
+
const na = "oraculo__OraculoEventTeamInfo-module__team___UfpUs", oa = "oraculo__OraculoEventTeamInfo-module__regular___ag826", ra = "oraculo__OraculoEventTeamInfo-module__compact___RCNOs", ia = "oraculo__OraculoEventTeamInfo-module__logo___fKCl3", la = "oraculo__OraculoEventTeamInfo-module__name___4ikm-", sa = "oraculo__OraculoEventTeamInfo-module__skeleton___Yfaxh", _e = {
|
|
298
298
|
team: na,
|
|
299
299
|
regular: oa,
|
|
300
300
|
compact: ra,
|
|
301
301
|
logo: ia,
|
|
302
|
-
name:
|
|
303
|
-
skeleton:
|
|
304
|
-
}, ca = "oraculo__OraculoTeamPolo-module__polo___BisRg", da = "oraculo__OraculoTeamPolo-module__svgWrapper___HRKNX", ua = "oraculo__OraculoTeamPolo-module__shadow___-3DXb", ma = "oraculo__OraculoTeamPolo-module__highlight___1etm7",
|
|
302
|
+
name: la,
|
|
303
|
+
skeleton: sa
|
|
304
|
+
}, ca = "oraculo__OraculoTeamPolo-module__polo___BisRg", da = "oraculo__OraculoTeamPolo-module__svgWrapper___HRKNX", ua = "oraculo__OraculoTeamPolo-module__shadow___-3DXb", ma = "oraculo__OraculoTeamPolo-module__highlight___1etm7", we = {
|
|
305
305
|
polo: ca,
|
|
306
306
|
svgWrapper: da,
|
|
307
307
|
shadow: ua,
|
|
308
308
|
highlight: ma
|
|
309
309
|
};
|
|
310
310
|
function pa({ jersey: e, className: a }) {
|
|
311
|
-
const n = `#${e.base}`, o = e.sleeve ? `#${e.sleeve}` : n, r = e.stripes ? `#${e.stripes}` : null,
|
|
312
|
-
return /* @__PURE__ */ _("div", { className: `${
|
|
313
|
-
/* @__PURE__ */ t("div", { className:
|
|
311
|
+
const n = `#${e.base}`, o = e.sleeve ? `#${e.sleeve}` : n, r = e.stripes ? `#${e.stripes}` : null, l = e.sleevelong ? `#${e.sleevelong}` : null;
|
|
312
|
+
return /* @__PURE__ */ _("div", { className: `${we.polo} ${a != null ? a : ""}`, children: [
|
|
313
|
+
/* @__PURE__ */ t("div", { className: we.svgWrapper, children: /* @__PURE__ */ _("svg", { viewBox: "0 0 656 656", "aria-hidden": !0, children: [
|
|
314
314
|
/* @__PURE__ */ t(
|
|
315
315
|
"path",
|
|
316
316
|
{
|
|
@@ -322,7 +322,7 @@ function pa({ jersey: e, className: a }) {
|
|
|
322
322
|
/* @__PURE__ */ t("path", { fill: r, 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: r, d: "M292.1 648.8c-15.7-1.4-37.7-5-49.7-7.1-4.3-.6-22.6-5.3-35.5-9.5 1.5-10 3-21 4.3-32.7 7-60.5 4.8-132.8 3.1-185.6l-.9-32c-1-49-2.4-83.5-3.6-112-1.2-29-2.1-51.7-2.1-77 0-29 2.9-77.3 5.3-112.9l2.6-1c1.3-.3 10.1-2 14.4-2.7l10-3.2 6.6-3.7 9-5 4-2 .5-.3c1.2 2 2.6 4.1 3.4 4.8l6.1 7.8 15 14.6 4.8 4c-.6 26.4-1.1 60.6-1.1 100.1 0 59.3 1.1 82.6 2.7 114.6.9 18.8 2 40.7 3 74.9 1.5 48.3.8 98.4 0 148.6l-.8 68.3c0 13-.6 32.8-1.1 49Zm157.5-16.4-11.2 3.6a379.2 379.2 0 0 1-67 12c.2-11 .3-25.6.3-44.6 0-49.2-1.2-74.9-2.4-99.5-1.3-27.2-2.5-53-2-107.5.6-50.4 1.7-81.5 2.6-109.3 1-29.3 1.8-54.9 1.8-95.6 0-35.5-.6-70.6-1.2-98.6l3.6-3 5.3-5.1 3.5-3.6 3.5-3.4 4-5 4.2-5.3 2.7-4 .5.3 3.2 1.5 5.5 3.3 5.8 3 7.3 3 8.1 2.2c.7.2 3.3 1 8.4 2 2.4 0 6.5 1.5 11 3.4 2.6 29 5.2 68 5.2 107.8 0 41.5-1.6 70.2-3.2 102-1.6 28.7-3.3 60-4 105.6-.7 41.1.4 82.5 1.4 124.4.7 25.7 1.4 51.6 1.6 77.8a435 435 0 0 0 1.5 32.6Z" })
|
|
324
324
|
] }),
|
|
325
|
-
|
|
325
|
+
l && /* @__PURE__ */ t(pe, { children: /* @__PURE__ */ t("path", { fill: l, d: "m153 277.8-5.8 14.5c-1 2.8-2.5 1.4-4.6.7l-2-.5-7.8-2.4-15.6-5-19-6.5-16-5.7-12-4.4-5.5-2.2c-3.5-1.1-3.1-1.2-1.9-4l1.8-4.9 3.2-9.3c-1.1-1.9 0-3.1.8-3.5l.2-.7.5-2 4.3-10.3 2.4-6 2.6-6.2.8-2.6 1.7-4.1v-.4l.3-2.6.6-3.4 1-3.5 1-3.8c.1-.9 2-5.6 3-7.8l.7-1.5.7-2 .9-3.6 3.4-12.6 2.4-8.6 2.7-11.2 3.5-9.6 3.6-9.4 3-6 2-4.1 3.6-5.8 2.2-4.3 3-4.4 3.2-3.9 1.7-1.9 3.6-3.6 3-2.9a109.3 109.3 0 0 1 13.3-11.2l1.2-.8a79.3 79.3 0 0 1 18-9l11.4-4.2 4-1.4 6.3-2.7 3.3-1.4 2.8-1.2 4-1.6 3.9-2.1 10.1-5 4.8-2.4 5.7-3.2 13.8-7.7c1.5-.8 4.7-2.7 6-3a8.5 8.5 0 0 0 3-1.8c3.4-2.5 4.5-4.8 6-5.3.4-.4 2-1.6 5.2-3.2-4.4 3.3-3.2 11-2.1 14.6a77 77 0 0 0 8.7 18.8l-.6.4-3.9 2-9 5-6.6 3.7-10 3.2c-4.3.8-13.2 2.4-14.4 2.8-1.2.3-10.2 4-14.5 5.8l-11.8 5.6-8.8 3.2-12 3.4-19 8.7c-5.8 1.4-19.3 14.2-25.3 20.4L122 128l.3.4 6.6 16.6 10.5 22.6 6.2 10.8c2.9 3 8.7 9.7 9.1 11.7.5 2 4.3 5.1 6.1 6.5.2.8.8 3.1 1.7 5.4-3.2 4.8-.4 10.6 1.4 12.9l1 4.6.3 6.5-.5 1c-1.4 1.4-.3 4 .4 5l.1 3c.5 1.4 1.3 4.2.8 5.2s0 2.7.3 3.4v4.9c-3.1.5-2 3.7-1 5.2-.5.7-1.8 2.2-3.2 2.7-1.4.5-1.8 3.6-1.8 5.2a9 9 0 0 1-2.7 4.7c-1.8 1.6-2.8 7.4-3 10.1l-1.6 1.5ZM403.8 31.1l-1.6-.7c1.2 1 2 2.2 2.8 4 1.8 2.8.6 8-.7 12.2a78 78 0 0 1-7.6 17l.5.2 3.3 1.5 5.4 3.3 5.9 3 7.2 3 8.2 2.2c.7.2 3.3 1 8.4 2 5.5.1 21.1 8 28.2 11.8l14 4.5a517 517 0 0 1 23.8 9.3c6.3.5 24.7 17 33.1 25.2l-4.6 11.6-8.2 19.3-3.8 9-5.2 8.6c-2.2 3.2-7.3 10.2-9.4 12.4-1.3-.3-5.6 4.4-7.6 6.7.3 2 .6 6.7-1.4 9.1-2 2.5-1.8 6.9-1.4 8.7.3.8.5 3-1 5.3-1.4 2.4-1 4-.5 4.5-.2.8-.7 2.5-1.4 3.4-.8.8-.4 3.3 0 4.5l.1 3-.1 2.2c-.2.6-.6 2.6-1.1 6.2 3.6 3.3 1.3 5.7-.3 6.5l2.2.3 1.3 2.7 1.5 3.8 1.1 2.3 2.7 7.1 1.6 4.8.3 2.1v1.6l1.9 1.9 4 8.9 1.8 4.5c.5 4 5.5 3.6 8 3l5.9-1.1 7.3-1.7 5.2-1.2 7.3-2.1 8.3-2.7 7.5-2.5 9.8-3.6 8-3 6.3-2.8 3.4-1.6 3-1.3 2.5-1.6 1-.8c1.9-1 2-2.1 1.6-2.9l-.6-1.7-1-2.7-1.6-4.2-1.4-4-.5-1.4-.1-.7v-1.2c.7-1-.4-2.5-1-3v-.2l-1-2-2.4-6-3.3-8.3-2.3-6a3896.4 3896.4 0 0 0-3.1-8.4l-2.2-7.1-1.5-5.7-2.5-8.9-1-3.1-1.2-4.5-2-8.2-2.2-9.3-2.8-11.4-2.6-9.1-.9-3c0-.3-.6-1.5-1-2l-2.5-5.6-3-6.6-5.7-11.3-2.5-4.3-2.3-3.3-.7-.7-4.3-5-3-3.8a73 73 0 0 0-4.2-3.8c-1.1-2-7.6-7-10.8-9.4-6.2-5-23.4-12.8-34-16.7l-11-4-16-7.9-20.1-10-7.1-3.8-2.4-1.5-13-7.3-2.6-3.4-5-3Z" }) }),
|
|
326
326
|
/* @__PURE__ */ t(
|
|
327
327
|
"path",
|
|
328
328
|
{
|
|
@@ -350,7 +350,7 @@ function pa({ jersey: e, className: a }) {
|
|
|
350
350
|
"img",
|
|
351
351
|
{
|
|
352
352
|
src: "https://widgets.sir.sportradar.com/assets/media/shadow.7a42eb6e.png",
|
|
353
|
-
className:
|
|
353
|
+
className: we.shadow,
|
|
354
354
|
alt: "",
|
|
355
355
|
"aria-hidden": !0
|
|
356
356
|
}
|
|
@@ -359,7 +359,7 @@ function pa({ jersey: e, className: a }) {
|
|
|
359
359
|
"img",
|
|
360
360
|
{
|
|
361
361
|
src: "https://widgets.sir.sportradar.com/assets/media/highlight.b1ac6c3e.png",
|
|
362
|
-
className:
|
|
362
|
+
className: we.highlight,
|
|
363
363
|
alt: "",
|
|
364
364
|
"aria-hidden": !0
|
|
365
365
|
}
|
|
@@ -383,24 +383,24 @@ function fa(e, a, {
|
|
|
383
383
|
threshold: o = 60,
|
|
384
384
|
cooldownMs: r = 500
|
|
385
385
|
} = {}) {
|
|
386
|
-
const
|
|
386
|
+
const l = U(0), s = U(0);
|
|
387
387
|
Q(() => {
|
|
388
388
|
if (!n) return;
|
|
389
|
-
const
|
|
390
|
-
if (!
|
|
391
|
-
const g = (
|
|
392
|
-
const
|
|
393
|
-
if (!
|
|
394
|
-
const { deltaX:
|
|
395
|
-
if (Math.abs(
|
|
396
|
-
|
|
389
|
+
const d = e.current;
|
|
390
|
+
if (!d) return;
|
|
391
|
+
const g = (p) => {
|
|
392
|
+
const m = a.current;
|
|
393
|
+
if (!m || !m.go) return;
|
|
394
|
+
const { deltaX: u, deltaY: c } = p;
|
|
395
|
+
if (Math.abs(u) <= Math.abs(c)) return;
|
|
396
|
+
p.preventDefault(), l.current += u;
|
|
397
397
|
const f = Date.now();
|
|
398
|
-
if (f - s.current < r || Math.abs(
|
|
399
|
-
const
|
|
400
|
-
|
|
398
|
+
if (f - s.current < r || Math.abs(l.current) < o) return;
|
|
399
|
+
const h = l.current > 0 ? ">" : "<";
|
|
400
|
+
l.current = 0, s.current = f, m.go(h);
|
|
401
401
|
};
|
|
402
|
-
return
|
|
403
|
-
|
|
402
|
+
return d.addEventListener("wheel", g, { passive: !1 }), () => {
|
|
403
|
+
d.removeEventListener("wheel", g), l.current = 0;
|
|
404
404
|
};
|
|
405
405
|
}, [n, o, r, e, a]);
|
|
406
406
|
}
|
|
@@ -416,102 +416,102 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
|
|
|
416
416
|
perPage: n = 1,
|
|
417
417
|
gap: o = "0px",
|
|
418
418
|
breakpoints: r,
|
|
419
|
-
options:
|
|
419
|
+
options: l = {},
|
|
420
420
|
className: s = "",
|
|
421
|
-
onMove:
|
|
421
|
+
onMove: d,
|
|
422
422
|
useIndexAsKey: g = !1,
|
|
423
|
-
enableHorizontalWheel:
|
|
424
|
-
showRightGradient:
|
|
425
|
-
},
|
|
426
|
-
const
|
|
427
|
-
fa(f,
|
|
428
|
-
enabled:
|
|
429
|
-
}), kt(
|
|
423
|
+
enableHorizontalWheel: p = !0,
|
|
424
|
+
showRightGradient: m = !1
|
|
425
|
+
}, u) => {
|
|
426
|
+
const c = U(null), f = U(null), h = U(e.length), x = U(null), C = U(null), b = U("user");
|
|
427
|
+
fa(f, c, {
|
|
428
|
+
enabled: p
|
|
429
|
+
}), kt(u, () => ({
|
|
430
430
|
next: () => {
|
|
431
|
-
var
|
|
432
|
-
return (
|
|
431
|
+
var I;
|
|
432
|
+
return (I = c.current) == null ? void 0 : I.go(">");
|
|
433
433
|
},
|
|
434
434
|
prev: () => {
|
|
435
|
-
var
|
|
436
|
-
return (
|
|
435
|
+
var I;
|
|
436
|
+
return (I = c.current) == null ? void 0 : I.go("<");
|
|
437
437
|
},
|
|
438
|
-
go: (
|
|
438
|
+
go: (I) => {
|
|
439
439
|
var v;
|
|
440
|
-
return (v =
|
|
440
|
+
return (v = c.current) == null ? void 0 : v.go(I);
|
|
441
441
|
}
|
|
442
442
|
}));
|
|
443
|
-
const
|
|
443
|
+
const y = (I) => {
|
|
444
444
|
var Z;
|
|
445
|
-
const v =
|
|
446
|
-
let
|
|
447
|
-
for (let
|
|
448
|
-
const
|
|
449
|
-
if (!
|
|
450
|
-
j =
|
|
445
|
+
const v = I.Components.Slides, O = I.Components.Controller, F = I.root.querySelector(".splide__track"), B = (Z = F == null ? void 0 : F.clientWidth) != null ? Z : 0, R = O.getIndex(), D = v.getLength();
|
|
446
|
+
let V = 0, j = R;
|
|
447
|
+
for (let W = R; W < D; W++) {
|
|
448
|
+
const Y = v.getAt(W);
|
|
449
|
+
if (!Y || (V += Y.slide.offsetWidth, V > B)) break;
|
|
450
|
+
j = W;
|
|
451
451
|
}
|
|
452
|
-
return { visibleStart:
|
|
453
|
-
},
|
|
454
|
-
const v =
|
|
455
|
-
return !v || !
|
|
456
|
-
},
|
|
457
|
-
var Z,
|
|
458
|
-
if (
|
|
459
|
-
const
|
|
460
|
-
if (
|
|
461
|
-
|
|
452
|
+
return { visibleStart: R, visibleEnd: j };
|
|
453
|
+
}, N = (I) => {
|
|
454
|
+
const v = I.root.querySelector(".splide__track"), O = I.root.querySelector(".splide__list");
|
|
455
|
+
return !v || !O ? !1 : O.scrollWidth > v.clientWidth + 1;
|
|
456
|
+
}, z = U(!1), T = Ce((I) => {
|
|
457
|
+
var Z, W;
|
|
458
|
+
if (z.current) return;
|
|
459
|
+
const O = I.Components.Slides.getLength(), F = b.current;
|
|
460
|
+
if (b.current = "user", !N(I)) {
|
|
461
|
+
d == null || d({
|
|
462
462
|
index: 0,
|
|
463
463
|
isStart: !0,
|
|
464
464
|
isEnd: !0,
|
|
465
|
-
total:
|
|
465
|
+
total: O,
|
|
466
466
|
visibleStart: 0,
|
|
467
|
-
visibleEnd:
|
|
468
|
-
source:
|
|
467
|
+
visibleEnd: O - 1,
|
|
468
|
+
source: F
|
|
469
469
|
});
|
|
470
470
|
return;
|
|
471
471
|
}
|
|
472
|
-
const { visibleStart: B, visibleEnd:
|
|
473
|
-
|
|
474
|
-
const j =
|
|
475
|
-
|
|
472
|
+
const { visibleStart: B, visibleEnd: R } = y(I), D = B === 0, V = R === O - 1;
|
|
473
|
+
m && ((Z = x.current) == null || Z.style.setProperty("--gradient-opacity", D ? "0" : "1"), (W = C.current) == null || W.style.setProperty("--gradient-opacity", V ? "0" : "1"));
|
|
474
|
+
const j = I.Components.Controller.getIndex();
|
|
475
|
+
d == null || d({
|
|
476
476
|
index: j,
|
|
477
|
-
isStart:
|
|
478
|
-
isEnd:
|
|
479
|
-
total:
|
|
477
|
+
isStart: D,
|
|
478
|
+
isEnd: V,
|
|
479
|
+
total: O,
|
|
480
480
|
visibleStart: B,
|
|
481
|
-
visibleEnd:
|
|
482
|
-
source:
|
|
481
|
+
visibleEnd: R,
|
|
482
|
+
source: F
|
|
483
483
|
});
|
|
484
|
-
}, [
|
|
484
|
+
}, [d]);
|
|
485
485
|
fe.useEffect(() => {
|
|
486
|
-
var
|
|
487
|
-
const
|
|
488
|
-
if (!
|
|
489
|
-
const v =
|
|
490
|
-
|
|
491
|
-
|
|
486
|
+
var O;
|
|
487
|
+
const I = (O = c.current) == null ? void 0 : O.splide;
|
|
488
|
+
if (!I) return;
|
|
489
|
+
const v = h.current !== e.length;
|
|
490
|
+
h.current = e.length, v && requestAnimationFrame(() => {
|
|
491
|
+
z.current = !0;
|
|
492
492
|
try {
|
|
493
|
-
|
|
493
|
+
I.refresh();
|
|
494
494
|
} finally {
|
|
495
|
-
|
|
495
|
+
z.current = !1;
|
|
496
496
|
}
|
|
497
|
-
|
|
497
|
+
b.current = "resize", T(I);
|
|
498
498
|
});
|
|
499
499
|
}, [e.length, T]);
|
|
500
|
-
const
|
|
500
|
+
const w = Ce(() => {
|
|
501
501
|
var v;
|
|
502
|
-
const
|
|
503
|
-
if (
|
|
504
|
-
|
|
502
|
+
const I = (v = c.current) == null ? void 0 : v.splide;
|
|
503
|
+
if (I) {
|
|
504
|
+
z.current = !0;
|
|
505
505
|
try {
|
|
506
|
-
|
|
506
|
+
I.go(0, !1);
|
|
507
507
|
} finally {
|
|
508
|
-
|
|
508
|
+
z.current = !1;
|
|
509
509
|
}
|
|
510
|
-
|
|
510
|
+
b.current = "resize", T(I);
|
|
511
511
|
}
|
|
512
|
-
}, [T]),
|
|
513
|
-
(
|
|
514
|
-
|
|
512
|
+
}, [T]), L = Ce(
|
|
513
|
+
(I) => {
|
|
514
|
+
b.current = "mounted", T(I);
|
|
515
515
|
},
|
|
516
516
|
[T]
|
|
517
517
|
), q = {
|
|
@@ -526,8 +526,8 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
|
|
|
526
526
|
perPage: n,
|
|
527
527
|
gap: o,
|
|
528
528
|
breakpoints: r,
|
|
529
|
-
...
|
|
530
|
-
...
|
|
529
|
+
...l,
|
|
530
|
+
...p ? { wheel: !1 } : {}
|
|
531
531
|
};
|
|
532
532
|
return /* @__PURE__ */ _(
|
|
533
533
|
"div",
|
|
@@ -539,18 +539,18 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
|
|
|
539
539
|
/* @__PURE__ */ t(
|
|
540
540
|
_a,
|
|
541
541
|
{
|
|
542
|
-
ref:
|
|
542
|
+
ref: c,
|
|
543
543
|
options: q,
|
|
544
544
|
onMove: T,
|
|
545
|
-
onMounted:
|
|
546
|
-
onResize:
|
|
547
|
-
children: e.map((
|
|
548
|
-
var
|
|
549
|
-
return /* @__PURE__ */ t(ya, { children: a(
|
|
545
|
+
onMounted: L,
|
|
546
|
+
onResize: w,
|
|
547
|
+
children: e.map((I, v) => {
|
|
548
|
+
var O;
|
|
549
|
+
return /* @__PURE__ */ t(ya, { children: a(I, v) }, g ? v : (O = I.id) != null ? O : v);
|
|
550
550
|
})
|
|
551
551
|
}
|
|
552
552
|
),
|
|
553
|
-
|
|
553
|
+
m && /* @__PURE__ */ _(pe, { children: [
|
|
554
554
|
/* @__PURE__ */ t(
|
|
555
555
|
"div",
|
|
556
556
|
{
|
|
@@ -612,8 +612,8 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
|
|
|
612
612
|
size: n = "sm",
|
|
613
613
|
fillParent: o = !1
|
|
614
614
|
}) => {
|
|
615
|
-
const r = n === "lg" ? { w: 280, h: 352 } : { w: 152, h: 168 },
|
|
616
|
-
|
|
615
|
+
const r = n === "lg" ? { w: 280, h: 352 } : { w: 152, h: 168 }, l = (d) => {
|
|
616
|
+
d.stopPropagation(), a == null || a();
|
|
617
617
|
}, s = o ? { width: "100%", height: "100%" } : { width: `${r.w}px`, height: `${r.h}px` };
|
|
618
618
|
return /* @__PURE__ */ _(
|
|
619
619
|
P,
|
|
@@ -686,7 +686,7 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
|
|
|
686
686
|
transition: "opacity .15s ease, transform .15s ease",
|
|
687
687
|
pointerEvents: "none"
|
|
688
688
|
},
|
|
689
|
-
children: /* @__PURE__ */ t(
|
|
689
|
+
children: /* @__PURE__ */ t(X, { variant: "primary", size: "md", onClick: l, children: "Jugar" })
|
|
690
690
|
}
|
|
691
691
|
)
|
|
692
692
|
]
|
|
@@ -703,16 +703,16 @@ function xa({
|
|
|
703
703
|
md: { w: 186, h: 264, r: 22.6, font: 64 }
|
|
704
704
|
}
|
|
705
705
|
}) {
|
|
706
|
-
var
|
|
707
|
-
const
|
|
708
|
-
var
|
|
706
|
+
var u, c, f, h;
|
|
707
|
+
const l = (x, C) => {
|
|
708
|
+
var b, y, N, z;
|
|
709
709
|
return {
|
|
710
|
-
xs: (
|
|
711
|
-
md: (
|
|
710
|
+
xs: (y = (b = r.xs) == null ? void 0 : b[x]) != null ? y : C,
|
|
711
|
+
md: (z = (N = r.md) == null ? void 0 : N[x]) != null ? z : C
|
|
712
712
|
};
|
|
713
|
-
}, s =
|
|
714
|
-
xs: Math.round(((
|
|
715
|
-
md: Math.round(((
|
|
713
|
+
}, s = l("w", 186), d = l("h", 264), g = l("r", 22.6), p = l("font", 64), m = {
|
|
714
|
+
xs: Math.round(((c = (u = r.xs) == null ? void 0 : u.font) != null ? c : 64) * 0.28),
|
|
715
|
+
md: Math.round(((h = (f = r.md) == null ? void 0 : f.font) != null ? h : 64) * 0.28)
|
|
716
716
|
};
|
|
717
717
|
return /* @__PURE__ */ _(
|
|
718
718
|
P,
|
|
@@ -722,13 +722,13 @@ function xa({
|
|
|
722
722
|
width: "100%",
|
|
723
723
|
maxWidth: { xs: `${s.xs}px`, md: `${s.md}px` },
|
|
724
724
|
aspectRatio: {
|
|
725
|
-
xs: `${s.xs}/${
|
|
726
|
-
md: `${s.md}/${
|
|
725
|
+
xs: `${s.xs}/${d.xs}`,
|
|
726
|
+
md: `${s.md}/${d.md}`
|
|
727
727
|
},
|
|
728
728
|
borderRadius: { xs: `${g.xs}px`, md: `${g.md}px` },
|
|
729
729
|
boxSizing: "border-box",
|
|
730
730
|
overflow: "visible",
|
|
731
|
-
pb: { xs: `${
|
|
731
|
+
pb: { xs: `${m.xs}px`, md: `${m.md}px` },
|
|
732
732
|
"&::before": {
|
|
733
733
|
content: '""',
|
|
734
734
|
position: "absolute",
|
|
@@ -783,13 +783,13 @@ function xa({
|
|
|
783
783
|
position: "absolute",
|
|
784
784
|
left: 8,
|
|
785
785
|
bottom: {
|
|
786
|
-
xs: `-${
|
|
787
|
-
md: `-${
|
|
786
|
+
xs: `-${m.xs}px`,
|
|
787
|
+
md: `-${m.md}px`
|
|
788
788
|
},
|
|
789
789
|
fontFamily: '"secondary", sans-serif',
|
|
790
790
|
fontSize: {
|
|
791
|
-
xs: `${
|
|
792
|
-
md: `${
|
|
791
|
+
xs: `${p.xs}px`,
|
|
792
|
+
md: `${p.md}px`
|
|
793
793
|
},
|
|
794
794
|
lineHeight: 1,
|
|
795
795
|
color: "#3CC666",
|
|
@@ -804,14 +804,14 @@ function xa({
|
|
|
804
804
|
}
|
|
805
805
|
);
|
|
806
806
|
}
|
|
807
|
-
const
|
|
807
|
+
const Sa = ({
|
|
808
808
|
logo: e,
|
|
809
809
|
provider: a,
|
|
810
810
|
providerName: n,
|
|
811
811
|
machine: o,
|
|
812
812
|
onClick: r
|
|
813
813
|
}) => {
|
|
814
|
-
var
|
|
814
|
+
var l;
|
|
815
815
|
return /* @__PURE__ */ _(
|
|
816
816
|
P,
|
|
817
817
|
{
|
|
@@ -875,7 +875,7 @@ const wa = ({
|
|
|
875
875
|
fontSize: { xs: 11, md: 14 },
|
|
876
876
|
textTransform: "capitalize"
|
|
877
877
|
},
|
|
878
|
-
children: (
|
|
878
|
+
children: (l = a != null ? a : n) != null ? l : ""
|
|
879
879
|
}
|
|
880
880
|
)
|
|
881
881
|
}
|
|
@@ -905,9 +905,9 @@ const wa = ({
|
|
|
905
905
|
loading: o = !1,
|
|
906
906
|
gridSkeletonCount: r = 4
|
|
907
907
|
}) => {
|
|
908
|
-
var
|
|
908
|
+
var l, s;
|
|
909
909
|
if (a === "mosaic") {
|
|
910
|
-
const
|
|
910
|
+
const d = e[0], g = e.slice(1, 5);
|
|
911
911
|
return /* @__PURE__ */ _(
|
|
912
912
|
P,
|
|
913
913
|
{
|
|
@@ -942,19 +942,19 @@ const wa = ({
|
|
|
942
942
|
overflow: "hidden",
|
|
943
943
|
borderRadius: 2
|
|
944
944
|
},
|
|
945
|
-
children: o ? /* @__PURE__ */ t(ze, {}) :
|
|
945
|
+
children: o ? /* @__PURE__ */ t(ze, {}) : d && /* @__PURE__ */ t(
|
|
946
946
|
Te,
|
|
947
947
|
{
|
|
948
|
-
imageUrl: `https://olimpo.bet${(s = (
|
|
948
|
+
imageUrl: `https://olimpo.bet${(s = (l = d.background) != null ? l : d.imageUrl) != null ? s : ""}`,
|
|
949
949
|
size: "lg",
|
|
950
950
|
fillParent: !0,
|
|
951
|
-
onClick: () => n == null ? void 0 : n(
|
|
951
|
+
onClick: () => n == null ? void 0 : n(d, 0)
|
|
952
952
|
}
|
|
953
953
|
)
|
|
954
954
|
}
|
|
955
955
|
),
|
|
956
|
-
(o ? Array.from({ length: 4 }) : g).map((
|
|
957
|
-
var
|
|
956
|
+
(o ? Array.from({ length: 4 }) : g).map((p, m) => {
|
|
957
|
+
var u, c;
|
|
958
958
|
return /* @__PURE__ */ t(
|
|
959
959
|
P,
|
|
960
960
|
{
|
|
@@ -967,14 +967,14 @@ const wa = ({
|
|
|
967
967
|
children: o ? /* @__PURE__ */ t(ze, {}) : /* @__PURE__ */ t(
|
|
968
968
|
Te,
|
|
969
969
|
{
|
|
970
|
-
imageUrl: `https://olimpo.bet${(
|
|
970
|
+
imageUrl: `https://olimpo.bet${(c = (u = p.background) != null ? u : p.imageUrl) != null ? c : ""}`,
|
|
971
971
|
size: "sm",
|
|
972
972
|
fillParent: !0,
|
|
973
|
-
onClick: () => n == null ? void 0 : n(
|
|
973
|
+
onClick: () => n == null ? void 0 : n(p, m + 1)
|
|
974
974
|
}
|
|
975
975
|
)
|
|
976
976
|
},
|
|
977
|
-
o ? `sk-${
|
|
977
|
+
o ? `sk-${m}` : p.id
|
|
978
978
|
);
|
|
979
979
|
})
|
|
980
980
|
]
|
|
@@ -997,8 +997,8 @@ const wa = ({
|
|
|
997
997
|
gap: `${qe}px`,
|
|
998
998
|
gridAutoFlow: "column"
|
|
999
999
|
},
|
|
1000
|
-
children: (o ? Array.from({ length: r }) : e).map((
|
|
1001
|
-
var
|
|
1000
|
+
children: (o ? Array.from({ length: r }) : e).map((d, g) => {
|
|
1001
|
+
var p, m, u;
|
|
1002
1002
|
return /* @__PURE__ */ t(
|
|
1003
1003
|
P,
|
|
1004
1004
|
{
|
|
@@ -1006,14 +1006,14 @@ const wa = ({
|
|
|
1006
1006
|
children: o ? /* @__PURE__ */ t(ze, {}) : /* @__PURE__ */ t(
|
|
1007
1007
|
Te,
|
|
1008
1008
|
{
|
|
1009
|
-
imageUrl: `https://olimpo.bet${(
|
|
1009
|
+
imageUrl: `https://olimpo.bet${(m = (p = d.background) != null ? p : d.imageUrl) != null ? m : ""}`,
|
|
1010
1010
|
size: "sm",
|
|
1011
1011
|
fillParent: !0,
|
|
1012
|
-
onClick: () => n == null ? void 0 : n(
|
|
1012
|
+
onClick: () => n == null ? void 0 : n(d, g)
|
|
1013
1013
|
}
|
|
1014
1014
|
)
|
|
1015
1015
|
},
|
|
1016
|
-
o ? `sk-${g}` : (
|
|
1016
|
+
o ? `sk-${g}` : (u = d.id) != null ? u : g
|
|
1017
1017
|
);
|
|
1018
1018
|
})
|
|
1019
1019
|
}
|
|
@@ -1024,27 +1024,27 @@ const wa = ({
|
|
|
1024
1024
|
subtitle: n,
|
|
1025
1025
|
buttonText: o,
|
|
1026
1026
|
onButtonClick: r,
|
|
1027
|
-
backgroundImage:
|
|
1027
|
+
backgroundImage: l,
|
|
1028
1028
|
alt: s,
|
|
1029
|
-
className:
|
|
1029
|
+
className: d = "",
|
|
1030
1030
|
variant: g = "small"
|
|
1031
1031
|
}) => {
|
|
1032
|
-
const
|
|
1032
|
+
const p = a ? a.slice(0, 2) : "", m = a ? a.slice(2) : "", u = g === "large";
|
|
1033
1033
|
return /* @__PURE__ */ _(
|
|
1034
1034
|
P,
|
|
1035
1035
|
{
|
|
1036
|
-
className:
|
|
1036
|
+
className: d,
|
|
1037
1037
|
sx: {
|
|
1038
1038
|
position: "relative",
|
|
1039
1039
|
width: "100%",
|
|
1040
1040
|
maxWidth: {
|
|
1041
1041
|
xs: 328,
|
|
1042
|
-
md:
|
|
1042
|
+
md: u ? 618 : 456
|
|
1043
1043
|
},
|
|
1044
1044
|
mx: "auto"
|
|
1045
1045
|
},
|
|
1046
1046
|
children: [
|
|
1047
|
-
|
|
1047
|
+
l && /* @__PURE__ */ t(
|
|
1048
1048
|
P,
|
|
1049
1049
|
{
|
|
1050
1050
|
sx: {
|
|
@@ -1052,7 +1052,7 @@ const wa = ({
|
|
|
1052
1052
|
width: "100%",
|
|
1053
1053
|
aspectRatio: {
|
|
1054
1054
|
xs: "328 / 188",
|
|
1055
|
-
md:
|
|
1055
|
+
md: u ? "618 / 346" : "456 / 272"
|
|
1056
1056
|
},
|
|
1057
1057
|
borderRadius: "14px",
|
|
1058
1058
|
overflow: "hidden"
|
|
@@ -1061,7 +1061,7 @@ const wa = ({
|
|
|
1061
1061
|
P,
|
|
1062
1062
|
{
|
|
1063
1063
|
component: "img",
|
|
1064
|
-
src:
|
|
1064
|
+
src: l,
|
|
1065
1065
|
alt: s != null ? s : "Fondo promocional",
|
|
1066
1066
|
sx: {
|
|
1067
1067
|
width: "100%",
|
|
@@ -1135,7 +1135,7 @@ const wa = ({
|
|
|
1135
1135
|
{
|
|
1136
1136
|
component: "span",
|
|
1137
1137
|
sx: { fontSize: { xs: 35, md: 48 }, mr: 0.5 },
|
|
1138
|
-
children:
|
|
1138
|
+
children: p
|
|
1139
1139
|
}
|
|
1140
1140
|
),
|
|
1141
1141
|
/* @__PURE__ */ t(
|
|
@@ -1143,7 +1143,7 @@ const wa = ({
|
|
|
1143
1143
|
{
|
|
1144
1144
|
component: "span",
|
|
1145
1145
|
sx: { fontSize: { xs: 52, md: 77 } },
|
|
1146
|
-
children:
|
|
1146
|
+
children: m
|
|
1147
1147
|
}
|
|
1148
1148
|
)
|
|
1149
1149
|
]
|
|
@@ -1161,7 +1161,7 @@ const wa = ({
|
|
|
1161
1161
|
children: n
|
|
1162
1162
|
}
|
|
1163
1163
|
),
|
|
1164
|
-
o && /* @__PURE__ */ t(
|
|
1164
|
+
o && /* @__PURE__ */ t(X, { onClick: r, children: o })
|
|
1165
1165
|
]
|
|
1166
1166
|
}
|
|
1167
1167
|
)
|
|
@@ -1170,13 +1170,13 @@ const wa = ({
|
|
|
1170
1170
|
]
|
|
1171
1171
|
}
|
|
1172
1172
|
);
|
|
1173
|
-
},
|
|
1173
|
+
}, wa = ({
|
|
1174
1174
|
text: e,
|
|
1175
1175
|
buttonLabel: a = "Conoce más",
|
|
1176
1176
|
onClick: n,
|
|
1177
1177
|
imgAlt: o = "Club Olimpo",
|
|
1178
1178
|
imgSrcMobile: r,
|
|
1179
|
-
imgSrcDesktopBg:
|
|
1179
|
+
imgSrcDesktopBg: l,
|
|
1180
1180
|
imgSrcDesktopLogo: s
|
|
1181
1181
|
}) => /* @__PURE__ */ _(pe, { children: [
|
|
1182
1182
|
/* @__PURE__ */ t("div", { className: "orc-co-bgMobile", children: /* @__PURE__ */ t(
|
|
@@ -1188,10 +1188,10 @@ const wa = ({
|
|
|
1188
1188
|
}
|
|
1189
1189
|
) }),
|
|
1190
1190
|
/* @__PURE__ */ t("div", { className: "orc-co-bgDesktop", children: /* @__PURE__ */ _("div", { className: "orc-co-desktopInner", children: [
|
|
1191
|
-
|
|
1191
|
+
l && /* @__PURE__ */ t("div", { className: "orc-co-fillHost", children: /* @__PURE__ */ t(
|
|
1192
1192
|
"img",
|
|
1193
1193
|
{
|
|
1194
|
-
src:
|
|
1194
|
+
src: l,
|
|
1195
1195
|
alt: `${o} fondo`,
|
|
1196
1196
|
className: "orc-co-bgDesktopImg"
|
|
1197
1197
|
}
|
|
@@ -1206,12 +1206,12 @@ const wa = ({
|
|
|
1206
1206
|
}
|
|
1207
1207
|
),
|
|
1208
1208
|
/* @__PURE__ */ t("p", { className: "orc-co-captionDesktop", children: e }),
|
|
1209
|
-
/* @__PURE__ */ t(
|
|
1209
|
+
/* @__PURE__ */ t(X, { onClick: n, variant: "primary", size: "md", children: a })
|
|
1210
1210
|
] })
|
|
1211
1211
|
] }) }),
|
|
1212
1212
|
/* @__PURE__ */ _("div", { className: "orc-co-bottom", children: [
|
|
1213
1213
|
/* @__PURE__ */ t("p", { className: "orc-co-caption", children: e }),
|
|
1214
|
-
/* @__PURE__ */ t(
|
|
1214
|
+
/* @__PURE__ */ t(X, { onClick: n, variant: "primary", size: "md", children: a })
|
|
1215
1215
|
] })
|
|
1216
1216
|
] }), Ia = "oraculo__OraculoEventCombinadasCard-module__card___ulQeY", Oa = "oraculo__OraculoEventCombinadasCard-module__combinadas___Gxrld", Ea = "oraculo__OraculoEventCombinadasCard-module__combinadasScroll___47cZl", Ca = "oraculo__OraculoEventCombinadasCard-module__apuestaItem___YnYMy", Ta = "oraculo__OraculoEventCombinadasCard-module__lineContainer___G5rbU", ka = "oraculo__OraculoEventCombinadasCard-module__circle___eehm-", Na = "oraculo__OraculoEventCombinadasCard-module__line___Eb2pK", $a = "oraculo__OraculoEventCombinadasCard-module__apuestaText___b5s7S", Ma = "oraculo__OraculoEventCombinadasCard-module__cuotaTotal___Lohvu", ce = {
|
|
1217
1217
|
card: Ia,
|
|
@@ -1256,69 +1256,69 @@ const ht = Nt(void 0), bt = ({ children: e, docId: a, moduleId: n }) => {
|
|
|
1256
1256
|
if (!e)
|
|
1257
1257
|
throw new Error("useDocContext debe usarse dentro de DocIdProvider");
|
|
1258
1258
|
return e;
|
|
1259
|
-
}, ne = () => vt().docId,
|
|
1259
|
+
}, ne = () => vt().docId, se = () => vt().moduleId;
|
|
1260
1260
|
function La({ coupon: e }) {
|
|
1261
|
-
var
|
|
1261
|
+
var p;
|
|
1262
1262
|
const a = ae(), n = ne();
|
|
1263
|
-
function o(
|
|
1264
|
-
var f,
|
|
1265
|
-
const
|
|
1263
|
+
function o(m) {
|
|
1264
|
+
var f, h;
|
|
1265
|
+
const u = [], c = Array.from(
|
|
1266
1266
|
new Map(
|
|
1267
|
-
((f =
|
|
1267
|
+
((f = m == null ? void 0 : m.events) != null ? f : []).filter(Boolean).map((x) => [x.id, x])
|
|
1268
1268
|
).values()
|
|
1269
1269
|
);
|
|
1270
|
-
return
|
|
1271
|
-
var
|
|
1272
|
-
const C = (
|
|
1273
|
-
C.forEach((
|
|
1274
|
-
var q,
|
|
1275
|
-
if (!((q =
|
|
1276
|
-
const T =
|
|
1270
|
+
return c.forEach((x) => {
|
|
1271
|
+
var N;
|
|
1272
|
+
const C = (N = x.betoffers) != null ? N : [], b = x.homeName, y = x.awayName;
|
|
1273
|
+
C.forEach((z) => {
|
|
1274
|
+
var q, I, v, O, F, B, R;
|
|
1275
|
+
if (!((q = z == null ? void 0 : z.outcomes) != null && q.length)) return;
|
|
1276
|
+
const T = z.outcomes[0];
|
|
1277
1277
|
if (!T) return;
|
|
1278
|
-
let
|
|
1279
|
-
const
|
|
1280
|
-
["Más de", "Mas de", "Over"].includes(T.label) ? (
|
|
1278
|
+
let w = "";
|
|
1279
|
+
const L = T != null && T.line ? T.line / 1e3 : "";
|
|
1280
|
+
["Más de", "Mas de", "Over"].includes(T.label) ? (w = `Más de ${L}`, T.participant && (w = `${T.participant} - ${w}`)) : ["Menos de", "Menos", "Under"].includes(T.label) ? (w = `Menos de ${L}`, T.participant && (w = `${T.participant} - ${w}`)) : ["Sí", "No"].includes(T.label) ? (w = T.label, T.participant && (w = `${T.participant} - ${w}`)) : ["1X", "12", "X2"].includes(T.label) ? (T.label === "1X" && (w = `${b} o Empate`), T.label === "12" && (w = `${b} o ${y}`), T.label === "X2" && (w = `${y} o Empate`)) : (w = (v = (I = T.participant) != null ? I : T.label) != null ? v : "", L !== "" && w === T.label && (w = `${T.label} ${L}`)), u.push({
|
|
1281
1281
|
id: T.id,
|
|
1282
|
-
value:
|
|
1283
|
-
label: (
|
|
1282
|
+
value: w,
|
|
1283
|
+
label: (F = (O = z.criterion) == null ? void 0 : O.label) != null ? F : "",
|
|
1284
1284
|
odds: (B = T.odds) != null ? B : 0,
|
|
1285
|
-
position: (
|
|
1285
|
+
position: (R = T.position) != null ? R : 0,
|
|
1286
1286
|
eventId: x.id
|
|
1287
1287
|
});
|
|
1288
1288
|
});
|
|
1289
1289
|
}), {
|
|
1290
|
-
outcomes:
|
|
1291
|
-
total: Number((
|
|
1290
|
+
outcomes: u.sort((x, C) => x.position - C.position),
|
|
1291
|
+
total: Number((h = m == null ? void 0 : m.combinadoTotal) != null ? h : 0).toLocaleString("en-US", {
|
|
1292
1292
|
minimumFractionDigits: 2,
|
|
1293
1293
|
maximumFractionDigits: 2
|
|
1294
1294
|
}),
|
|
1295
|
-
events:
|
|
1295
|
+
events: c
|
|
1296
1296
|
};
|
|
1297
1297
|
}
|
|
1298
|
-
function r(
|
|
1299
|
-
if (!
|
|
1298
|
+
function r(m) {
|
|
1299
|
+
if (!m || !Array.isArray(m.events) || m.events.length === 0)
|
|
1300
1300
|
return "/deportes#home";
|
|
1301
|
-
const
|
|
1302
|
-
if (
|
|
1303
|
-
return `/deportes#event/${
|
|
1304
|
-
const
|
|
1305
|
-
if (
|
|
1306
|
-
const
|
|
1307
|
-
if (Array.isArray(
|
|
1308
|
-
return `/deportes#sports-hub/${
|
|
1301
|
+
const u = m.events;
|
|
1302
|
+
if (u.length === 1)
|
|
1303
|
+
return `/deportes#event/${u[0].id}`;
|
|
1304
|
+
const c = u[0].groupId;
|
|
1305
|
+
if (u.every((h) => h.groupId === c)) {
|
|
1306
|
+
const h = u[0].path;
|
|
1307
|
+
if (Array.isArray(h) && h.length > 0)
|
|
1308
|
+
return `/deportes#sports-hub/${h.map((C) => C.termKey).filter(Boolean).join("/")}`;
|
|
1309
1309
|
}
|
|
1310
1310
|
return "/deportes#home";
|
|
1311
1311
|
}
|
|
1312
|
-
const
|
|
1313
|
-
const
|
|
1312
|
+
const l = (m, u) => {
|
|
1313
|
+
const c = Array.isArray(m) ? m : [m], f = Array.from(
|
|
1314
1314
|
new Set(
|
|
1315
1315
|
s.outcomes.map((C) => {
|
|
1316
|
-
var
|
|
1317
|
-
const
|
|
1318
|
-
return (
|
|
1316
|
+
var y;
|
|
1317
|
+
const b = g.get(Number(C.eventId));
|
|
1318
|
+
return (y = b == null ? void 0 : b.name) != null ? y : "";
|
|
1319
1319
|
})
|
|
1320
1320
|
)
|
|
1321
|
-
).filter(Boolean),
|
|
1321
|
+
).filter(Boolean), h = f.length > 0 ? f.join(" + ") : JSON.stringify(c), x = u ? `${h} - Cuota: ${u}` : h;
|
|
1322
1322
|
a({
|
|
1323
1323
|
element: "evento_semana_outcome",
|
|
1324
1324
|
label: `Landing: ${n} - OraculoEventCombinadasCard - Click: ${x}`,
|
|
@@ -1329,16 +1329,16 @@ function La({ coupon: e }) {
|
|
|
1329
1329
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1330
1330
|
},
|
|
1331
1331
|
tags: { section: "OraculoEventCombinadasCard", outcomes: x }
|
|
1332
|
-
}), Ue(r(e),
|
|
1332
|
+
}), Ue(r(e), m);
|
|
1333
1333
|
};
|
|
1334
|
-
if (!((
|
|
1335
|
-
const s = o(e),
|
|
1336
|
-
s.events.map((
|
|
1334
|
+
if (!((p = e == null ? void 0 : e.events) != null && p.length)) return null;
|
|
1335
|
+
const s = o(e), d = s.outcomes.reduce((m, u) => (m[u.eventId] || (m[u.eventId] = []), m[u.eventId].push(u), m), {}), g = new Map(
|
|
1336
|
+
s.events.map((m) => [m.id, m])
|
|
1337
1337
|
);
|
|
1338
1338
|
return /* @__PURE__ */ _("div", { className: ce.card, children: [
|
|
1339
|
-
/* @__PURE__ */ t("div", { className: ce.combinadas, children: /* @__PURE__ */ t("div", { className: ce.combinadasScroll, children: /* @__PURE__ */ t(K, { direction: "column", spacing: 1.5, useFlexGap: !0, children: Object.entries(
|
|
1340
|
-
const
|
|
1341
|
-
return
|
|
1339
|
+
/* @__PURE__ */ t("div", { className: ce.combinadas, children: /* @__PURE__ */ t("div", { className: ce.combinadasScroll, children: /* @__PURE__ */ t(K, { direction: "column", spacing: 1.5, useFlexGap: !0, children: Object.entries(d).reverse().map(([m, u]) => {
|
|
1340
|
+
const c = g.get(Number(m));
|
|
1341
|
+
return c ? /* @__PURE__ */ _(
|
|
1342
1342
|
K,
|
|
1343
1343
|
{
|
|
1344
1344
|
direction: "column",
|
|
@@ -1348,7 +1348,7 @@ function La({ coupon: e }) {
|
|
|
1348
1348
|
/* @__PURE__ */ t(
|
|
1349
1349
|
ge,
|
|
1350
1350
|
{
|
|
1351
|
-
title:
|
|
1351
|
+
title: c.name,
|
|
1352
1352
|
iconUrl: "/assets/img/home/Combinadas/pelota.png",
|
|
1353
1353
|
size: "xs"
|
|
1354
1354
|
}
|
|
@@ -1360,27 +1360,27 @@ function La({ coupon: e }) {
|
|
|
1360
1360
|
src: "/assets/img/home/Combinadas/line.png"
|
|
1361
1361
|
}
|
|
1362
1362
|
),
|
|
1363
|
-
|
|
1363
|
+
u.map((f, h) => /* @__PURE__ */ _("div", { className: ce.apuestaItem, children: [
|
|
1364
1364
|
/* @__PURE__ */ _("div", { className: ce.lineContainer, children: [
|
|
1365
1365
|
/* @__PURE__ */ t("div", { className: ce.circle }),
|
|
1366
|
-
|
|
1366
|
+
h < u.length - 1 && /* @__PURE__ */ t("div", { className: ce.line })
|
|
1367
1367
|
] }),
|
|
1368
1368
|
/* @__PURE__ */ _("div", { className: ce.apuestaText, children: [
|
|
1369
1369
|
/* @__PURE__ */ t("strong", { children: f.value }),
|
|
1370
1370
|
" | ",
|
|
1371
1371
|
f.label
|
|
1372
1372
|
] })
|
|
1373
|
-
] }, `${
|
|
1373
|
+
] }, `${m}-${h}`))
|
|
1374
1374
|
]
|
|
1375
1375
|
},
|
|
1376
|
-
|
|
1376
|
+
m
|
|
1377
1377
|
) : null;
|
|
1378
1378
|
}) }) }) }),
|
|
1379
1379
|
/* @__PURE__ */ _(
|
|
1380
1380
|
"button",
|
|
1381
1381
|
{
|
|
1382
|
-
onClick: () =>
|
|
1383
|
-
s.outcomes.map((
|
|
1382
|
+
onClick: () => l(
|
|
1383
|
+
s.outcomes.map((m) => m.id),
|
|
1384
1384
|
s.total
|
|
1385
1385
|
),
|
|
1386
1386
|
className: ce.cuotaTotal,
|
|
@@ -1422,56 +1422,56 @@ function Fa({
|
|
|
1422
1422
|
href: n,
|
|
1423
1423
|
target: o,
|
|
1424
1424
|
rel: r,
|
|
1425
|
-
type:
|
|
1425
|
+
type: l = "button",
|
|
1426
1426
|
disabled: s = !1,
|
|
1427
|
-
variant:
|
|
1427
|
+
variant: d = "primary",
|
|
1428
1428
|
size: g,
|
|
1429
|
-
fullWidth:
|
|
1430
|
-
fullHeight:
|
|
1431
|
-
className:
|
|
1432
|
-
ariaLabel:
|
|
1429
|
+
fullWidth: p = !1,
|
|
1430
|
+
fullHeight: m = !1,
|
|
1431
|
+
className: u = "",
|
|
1432
|
+
ariaLabel: c,
|
|
1433
1433
|
leftIcon: f,
|
|
1434
|
-
rightIcon:
|
|
1434
|
+
rightIcon: h,
|
|
1435
1435
|
iconOnly: x
|
|
1436
1436
|
}) {
|
|
1437
|
-
const C = !!e && e !== !0,
|
|
1437
|
+
const C = !!e && e !== !0, N = (!!f ? 1 : 0) + (!!h ? 1 : 0) == 1, z = x != null ? x : N && !C, T = [
|
|
1438
1438
|
de["orc-btn"],
|
|
1439
1439
|
// base
|
|
1440
|
-
de[`orc-btn--${
|
|
1440
|
+
de[`orc-btn--${d}`],
|
|
1441
1441
|
// variant primary/secondary/tertiary
|
|
1442
1442
|
g ? de[`orc-btn--${g}`] : "",
|
|
1443
1443
|
// sm / md / lg
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
].filter(Boolean).join(" "),
|
|
1444
|
+
p ? de["orc-btn--full"] : "",
|
|
1445
|
+
m ? de["orc-btn--fullHeight"] : "",
|
|
1446
|
+
z ? de["orc-btn--iconOnly"] : "",
|
|
1447
|
+
u
|
|
1448
|
+
].filter(Boolean).join(" "), w = /* @__PURE__ */ _(pe, { children: [
|
|
1449
1449
|
f && /* @__PURE__ */ t("span", { className: de["orc-btn__icon"], children: f }),
|
|
1450
|
-
!
|
|
1451
|
-
|
|
1452
|
-
] }),
|
|
1450
|
+
!z && /* @__PURE__ */ t("span", { className: de["orc-btn__label"], children: e }),
|
|
1451
|
+
h && /* @__PURE__ */ t("span", { className: de["orc-btn__icon"], children: h })
|
|
1452
|
+
] }), L = s ? !0 : void 0;
|
|
1453
1453
|
return n ? /* @__PURE__ */ t(
|
|
1454
1454
|
it,
|
|
1455
1455
|
{
|
|
1456
1456
|
href: n,
|
|
1457
1457
|
target: o,
|
|
1458
1458
|
rel: r,
|
|
1459
|
-
"aria-label":
|
|
1460
|
-
"aria-disabled":
|
|
1461
|
-
tabIndex:
|
|
1459
|
+
"aria-label": c,
|
|
1460
|
+
"aria-disabled": L,
|
|
1461
|
+
tabIndex: L ? -1 : void 0,
|
|
1462
1462
|
className: T,
|
|
1463
|
-
onClick:
|
|
1464
|
-
children:
|
|
1463
|
+
onClick: L ? (q) => q.preventDefault() : a,
|
|
1464
|
+
children: w
|
|
1465
1465
|
}
|
|
1466
1466
|
) : /* @__PURE__ */ t(
|
|
1467
1467
|
"button",
|
|
1468
1468
|
{
|
|
1469
|
-
type:
|
|
1469
|
+
type: l,
|
|
1470
1470
|
onClick: a,
|
|
1471
|
-
disabled: !!
|
|
1472
|
-
"aria-label":
|
|
1471
|
+
disabled: !!L,
|
|
1472
|
+
"aria-label": c,
|
|
1473
1473
|
className: T,
|
|
1474
|
-
children:
|
|
1474
|
+
children: w
|
|
1475
1475
|
}
|
|
1476
1476
|
);
|
|
1477
1477
|
}
|
|
@@ -1492,22 +1492,22 @@ const qa = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", za = "
|
|
|
1492
1492
|
real: !1,
|
|
1493
1493
|
type: "short_sleeves"
|
|
1494
1494
|
}, Me = (e, a, n = "player") => {
|
|
1495
|
-
var r,
|
|
1495
|
+
var r, l;
|
|
1496
1496
|
if (e === void 0)
|
|
1497
1497
|
return null;
|
|
1498
1498
|
if (e === null)
|
|
1499
1499
|
return a === "home" ? Xe : Ye;
|
|
1500
|
-
const o = (
|
|
1500
|
+
const o = (l = (r = e == null ? void 0 : e.jerseys) == null ? void 0 : r[a]) == null ? void 0 : l[n];
|
|
1501
1501
|
return o || (a === "home" ? Xe : Ye);
|
|
1502
1502
|
};
|
|
1503
1503
|
function Da({ event: e, liveData: a, betOffers: n, jersey: o }) {
|
|
1504
|
-
var
|
|
1504
|
+
var d, g, p, m, u, c, f, h, x, C, b;
|
|
1505
1505
|
const r = n == null ? void 0 : n.find(
|
|
1506
|
-
(
|
|
1507
|
-
var
|
|
1508
|
-
return ((
|
|
1506
|
+
(y) => {
|
|
1507
|
+
var N;
|
|
1508
|
+
return ((N = y.betOfferType) == null ? void 0 : N.id) === 2;
|
|
1509
1509
|
}
|
|
1510
|
-
),
|
|
1510
|
+
), l = {
|
|
1511
1511
|
englishLabel: "",
|
|
1512
1512
|
type: "",
|
|
1513
1513
|
betOfferId: 0,
|
|
@@ -1517,32 +1517,32 @@ function Da({ event: e, liveData: a, betOffers: n, jersey: o }) {
|
|
|
1517
1517
|
status: "INACTIVE",
|
|
1518
1518
|
cashOutStatus: "SUSPENDED"
|
|
1519
1519
|
}, s = [
|
|
1520
|
-
{ ...
|
|
1521
|
-
{ ...
|
|
1522
|
-
{ ...
|
|
1520
|
+
{ ...l, id: -1, label: "1", odds: void 0 },
|
|
1521
|
+
{ ...l, id: -2, label: "X", odds: void 0 },
|
|
1522
|
+
{ ...l, id: -3, label: "2", odds: void 0 }
|
|
1523
1523
|
];
|
|
1524
1524
|
return /* @__PURE__ */ t("div", { className: ke.cardWrapper, children: /* @__PURE__ */ _(K, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1525
1525
|
/* @__PURE__ */ _(K, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
1526
1526
|
/* @__PURE__ */ t(
|
|
1527
1527
|
Ht,
|
|
1528
1528
|
{
|
|
1529
|
-
title: (
|
|
1530
|
-
subtitle: (
|
|
1529
|
+
title: (p = (g = (d = e == null ? void 0 : e.path) == null ? void 0 : d[0]) == null ? void 0 : g.name) != null ? p : "",
|
|
1530
|
+
subtitle: (m = e == null ? void 0 : e.group) != null ? m : "",
|
|
1531
1531
|
live: !0,
|
|
1532
|
-
time: ((
|
|
1532
|
+
time: ((u = a == null ? void 0 : a.matchClock) == null ? void 0 : u.minute) != null ? `${a.matchClock.minute}'` : ""
|
|
1533
1533
|
}
|
|
1534
1534
|
),
|
|
1535
1535
|
/* @__PURE__ */ t("div", { style: { padding: "0 4px" }, children: /* @__PURE__ */ _(me, { spacing: 1.5, columns: "1fr auto 1fr", children: [
|
|
1536
1536
|
/* @__PURE__ */ t($e, { name: e == null ? void 0 : e.homeName, jersey: Me(o, "home") }),
|
|
1537
|
-
/* @__PURE__ */ t(pt, { text: ((f = (
|
|
1537
|
+
/* @__PURE__ */ t(pt, { text: ((f = (c = a == null ? void 0 : a.score) == null ? void 0 : c.home) != null ? f : 0) + ":" + ((x = (h = a == null ? void 0 : a.score) == null ? void 0 : h.away) != null ? x : 0), name: "En vivo" }),
|
|
1538
1538
|
/* @__PURE__ */ t($e, { name: e == null ? void 0 : e.awayName, jersey: Me(o, "away") })
|
|
1539
1539
|
] }) })
|
|
1540
1540
|
] }),
|
|
1541
1541
|
/* @__PURE__ */ _(K, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1542
|
-
/* @__PURE__ */ t(me, { spacing: 1, children: ((C = r == null ? void 0 : r.outcomes) != null ? C : s).map((
|
|
1543
|
-
/* @__PURE__ */ t(me, { spacing: 2, children: ((
|
|
1544
|
-
Ue("/deportes#event/live/" + e.id,
|
|
1545
|
-
}, className: ke.customButtonDisabled, children: /* @__PURE__ */ t("span", { className: ke.customButtonLabel, children:
|
|
1542
|
+
/* @__PURE__ */ t(me, { spacing: 1, children: ((C = r == null ? void 0 : r.outcomes) != null ? C : s).map((y, N) => /* @__PURE__ */ t(ut, { text: y.label.toUpperCase() }, N)) }),
|
|
1543
|
+
/* @__PURE__ */ t(me, { spacing: 2, children: ((b = r == null ? void 0 : r.outcomes) != null ? b : s).map((y, N) => /* @__PURE__ */ t(Fa, { variant: "primary", disabled: y.odds == null || (r == null ? void 0 : r.cashOutStatus) == "SUSPENDED", onClick: () => {
|
|
1544
|
+
Ue("/deportes#event/live/" + e.id, y.id);
|
|
1545
|
+
}, className: ke.customButtonDisabled, children: /* @__PURE__ */ t("span", { className: ke.customButtonLabel, children: y.odds === void 0 ? "" : (y.odds / 1e3).toFixed(2) }) }, N)) })
|
|
1546
1546
|
] })
|
|
1547
1547
|
] }) });
|
|
1548
1548
|
}
|
|
@@ -1559,25 +1559,25 @@ const Ga = "oraculo__OraculoEventSemanaCard-module__cardContainer___4JuDe", ja =
|
|
|
1559
1559
|
equipos: Ka
|
|
1560
1560
|
};
|
|
1561
1561
|
function Za({ event: e, jersey: a }) {
|
|
1562
|
-
var s,
|
|
1562
|
+
var s, d, g, p, m, u, c;
|
|
1563
1563
|
const n = ae(), o = ne();
|
|
1564
1564
|
function r(f) {
|
|
1565
|
-
const
|
|
1566
|
-
let
|
|
1567
|
-
return
|
|
1565
|
+
const h = new Date(f), x = h.toLocaleDateString("es-ES", { weekday: "short" }).toUpperCase(), C = h.getDate().toString().padStart(2, "0"), b = (h.getMonth() + 1).toString().padStart(2, "0");
|
|
1566
|
+
let y = h.toLocaleTimeString("es-PE", { hour: "numeric", minute: "2-digit", hour12: !0 }).toUpperCase();
|
|
1567
|
+
return y = y.replace(/\./g, "").replace(/A\s*M/i, "AM").replace(/P\s*M/i, "PM"), `${x} ${C}/${b} | ${y}`;
|
|
1568
1568
|
}
|
|
1569
|
-
const
|
|
1570
|
-
const x = `${e.homeName} vs ${e.awayName}`, C =
|
|
1569
|
+
const l = (f, h) => {
|
|
1570
|
+
const x = `${e.homeName} vs ${e.awayName}`, C = h ? (h / 1e3).toFixed(2) : "", b = C ? `${x} - Cuota: ${C}` : x;
|
|
1571
1571
|
n({
|
|
1572
1572
|
element: "evento_semana_outcome",
|
|
1573
|
-
label: `Landing: ${o} - OraculoEventSemanaCard - Click: ${
|
|
1573
|
+
label: `Landing: ${o} - OraculoEventSemanaCard - Click: ${b}`,
|
|
1574
1574
|
target: "/deportes#in-play",
|
|
1575
1575
|
event_type: "click",
|
|
1576
1576
|
module_id: 301,
|
|
1577
1577
|
metadata: {
|
|
1578
1578
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1579
1579
|
},
|
|
1580
|
-
tags: { section: "OraculoEventSemanaCard", outcomes:
|
|
1580
|
+
tags: { section: "OraculoEventSemanaCard", outcomes: b }
|
|
1581
1581
|
}), Ue("/deportes#event/" + e.id, f);
|
|
1582
1582
|
};
|
|
1583
1583
|
return /* @__PURE__ */ _("div", { className: be.cardContainer, children: [
|
|
@@ -1592,10 +1592,10 @@ function Za({ event: e, jersey: a }) {
|
|
|
1592
1592
|
/* @__PURE__ */ t(Wa, { text: r(e.start) })
|
|
1593
1593
|
] }),
|
|
1594
1594
|
/* @__PURE__ */ _(K, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
1595
|
-
/* @__PURE__ */ t(me, { spacing: 1, children: ((
|
|
1596
|
-
/* @__PURE__ */ t("div", { className: be.jugadas, children: /* @__PURE__ */ t(me, { spacing: 1, children: ((
|
|
1597
|
-
|
|
1598
|
-
}, children: (f.odds / 1e3).toFixed(2) },
|
|
1595
|
+
/* @__PURE__ */ t(me, { spacing: 1, children: ((p = (g = (d = e == null ? void 0 : e.outcome) == null ? void 0 : d[0]) == null ? void 0 : g.outcomes) != null ? p : []).map((f, h) => /* @__PURE__ */ t(ut, { text: f.label.toUpperCase() }, h)) }),
|
|
1596
|
+
/* @__PURE__ */ t("div", { className: be.jugadas, children: /* @__PURE__ */ t(me, { spacing: 1, children: ((c = (u = (m = e == null ? void 0 : e.outcome) == null ? void 0 : m[0]) == null ? void 0 : u.outcomes) != null ? c : []).map((f, h) => /* @__PURE__ */ t(X, { variant: "primary", fullHeight: !0, onClick: () => {
|
|
1597
|
+
l(f.id, f.odds);
|
|
1598
|
+
}, children: (f.odds / 1e3).toFixed(2) }, h)) }) })
|
|
1599
1599
|
] })
|
|
1600
1600
|
] }) })
|
|
1601
1601
|
] });
|
|
@@ -1606,78 +1606,78 @@ function Ja({
|
|
|
1606
1606
|
iconUrl: n = "https://d28gilnhu2bcbp.cloudfront.net/landing/1770307276612-lonuevo.webp",
|
|
1607
1607
|
onViewMore: o,
|
|
1608
1608
|
onItemClick: r,
|
|
1609
|
-
className:
|
|
1609
|
+
className: l = "",
|
|
1610
1610
|
paddingMobile: s = "24px"
|
|
1611
1611
|
}) {
|
|
1612
1612
|
var T;
|
|
1613
|
-
const
|
|
1614
|
-
var
|
|
1615
|
-
|
|
1613
|
+
const d = U(null), [g, p] = J({ isStart: !0, isEnd: !1 }), m = ae(), u = ne(), c = se(), f = !e || e.length === 0, h = () => {
|
|
1614
|
+
var w;
|
|
1615
|
+
m({
|
|
1616
1616
|
element: "destacados_carousel_prev",
|
|
1617
|
-
label: `${
|
|
1617
|
+
label: `${u} - OraculoSeccionDestacados - Anterior`,
|
|
1618
1618
|
target: "carousel",
|
|
1619
1619
|
event_type: "click",
|
|
1620
|
-
module_id:
|
|
1620
|
+
module_id: c,
|
|
1621
1621
|
metadata: {
|
|
1622
1622
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1623
1623
|
},
|
|
1624
1624
|
tags: { section: "OraculoSeccionDestacados" }
|
|
1625
|
-
}), (
|
|
1625
|
+
}), (w = d.current) == null || w.prev();
|
|
1626
1626
|
}, x = () => {
|
|
1627
|
-
var
|
|
1628
|
-
|
|
1627
|
+
var w;
|
|
1628
|
+
m({
|
|
1629
1629
|
element: "destacados_carousel_next",
|
|
1630
|
-
label: `${
|
|
1630
|
+
label: `${u} - OraculoSeccionDestacados - Siguiente`,
|
|
1631
1631
|
target: "carousel",
|
|
1632
1632
|
event_type: "click",
|
|
1633
|
-
module_id:
|
|
1633
|
+
module_id: c,
|
|
1634
1634
|
metadata: {
|
|
1635
1635
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1636
1636
|
},
|
|
1637
1637
|
tags: { section: "OraculoSeccionDestacados" }
|
|
1638
|
-
}), (
|
|
1638
|
+
}), (w = d.current) == null || w.next();
|
|
1639
1639
|
}, C = () => {
|
|
1640
|
-
|
|
1640
|
+
m({
|
|
1641
1641
|
element: "destacados_view_more",
|
|
1642
|
-
label: `${
|
|
1642
|
+
label: `${u} - OraculoSeccionDestacados - Ver más`,
|
|
1643
1643
|
target: "https://www.olimpo.bet/promociones",
|
|
1644
1644
|
event_type: "click",
|
|
1645
|
-
module_id:
|
|
1645
|
+
module_id: c,
|
|
1646
1646
|
metadata: {
|
|
1647
1647
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1648
1648
|
},
|
|
1649
1649
|
tags: { section: "OraculoSeccionDestacados" }
|
|
1650
1650
|
}), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/promociones");
|
|
1651
|
-
},
|
|
1651
|
+
}, b = l || void 0, y = xe("(max-width:950px)"), N = (T = e == null ? void 0 : e.length) != null ? T : 0;
|
|
1652
1652
|
Q(() => {
|
|
1653
|
-
if (
|
|
1654
|
-
|
|
1653
|
+
if (N === 0) {
|
|
1654
|
+
p({ isStart: !0, isEnd: !0 });
|
|
1655
1655
|
return;
|
|
1656
1656
|
}
|
|
1657
|
-
|
|
1658
|
-
}, [
|
|
1659
|
-
const
|
|
1660
|
-
const
|
|
1661
|
-
if (
|
|
1657
|
+
p({ isStart: !0, isEnd: !1 });
|
|
1658
|
+
}, [N, y, s]);
|
|
1659
|
+
const z = (w) => {
|
|
1660
|
+
const L = w.promotion, q = L ? `https://www.olimpo.bet/promociones/${encodeURIComponent(L)}` : "";
|
|
1661
|
+
if (m({
|
|
1662
1662
|
element: "destacados_card",
|
|
1663
|
-
label: `${
|
|
1663
|
+
label: `${u} - OraculoSeccionDestacados - Click: ${L || w.title}`,
|
|
1664
1664
|
target: q || "custom_item_action",
|
|
1665
1665
|
event_type: "click",
|
|
1666
|
-
module_id:
|
|
1666
|
+
module_id: c,
|
|
1667
1667
|
metadata: {
|
|
1668
1668
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1669
1669
|
},
|
|
1670
1670
|
tags: {
|
|
1671
1671
|
section: "OraculoSeccionDestacados",
|
|
1672
|
-
promotion: String(
|
|
1672
|
+
promotion: String(L || "")
|
|
1673
1673
|
}
|
|
1674
1674
|
}), r) {
|
|
1675
|
-
r(
|
|
1675
|
+
r(w);
|
|
1676
1676
|
return;
|
|
1677
1677
|
}
|
|
1678
1678
|
q && typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(q);
|
|
1679
1679
|
};
|
|
1680
|
-
return /* @__PURE__ */ _("section", { className:
|
|
1680
|
+
return /* @__PURE__ */ _("section", { className: b, style: { width: "100%" }, children: [
|
|
1681
1681
|
/* @__PURE__ */ _(
|
|
1682
1682
|
"header",
|
|
1683
1683
|
{
|
|
@@ -1688,25 +1688,25 @@ function Ja({
|
|
|
1688
1688
|
columnGap: 12,
|
|
1689
1689
|
rowGap: 8,
|
|
1690
1690
|
marginBottom: 16,
|
|
1691
|
-
paddingLeft:
|
|
1692
|
-
paddingRight:
|
|
1691
|
+
paddingLeft: y ? s : 0,
|
|
1692
|
+
paddingRight: y ? s : 0
|
|
1693
1693
|
},
|
|
1694
1694
|
children: [
|
|
1695
1695
|
/* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
|
|
1696
1696
|
/* @__PURE__ */ _("div", { style: { display: "flex", gap: 8 }, children: [
|
|
1697
1697
|
/* @__PURE__ */ t(
|
|
1698
|
-
|
|
1698
|
+
X,
|
|
1699
1699
|
{
|
|
1700
1700
|
ariaLabel: "Anterior",
|
|
1701
1701
|
variant: "secondary",
|
|
1702
1702
|
iconOnly: !0,
|
|
1703
1703
|
leftIcon: /* @__PURE__ */ t(Ae, {}),
|
|
1704
|
-
onClick:
|
|
1704
|
+
onClick: h,
|
|
1705
1705
|
disabled: g.isStart || f
|
|
1706
1706
|
}
|
|
1707
1707
|
),
|
|
1708
1708
|
/* @__PURE__ */ t(
|
|
1709
|
-
|
|
1709
|
+
X,
|
|
1710
1710
|
{
|
|
1711
1711
|
ariaLabel: "Siguiente",
|
|
1712
1712
|
variant: "secondary",
|
|
@@ -1717,37 +1717,37 @@ function Ja({
|
|
|
1717
1717
|
}
|
|
1718
1718
|
)
|
|
1719
1719
|
] }),
|
|
1720
|
-
/* @__PURE__ */ t(
|
|
1720
|
+
/* @__PURE__ */ t(X, { variant: "secondary", onClick: C, children: "Ver más" })
|
|
1721
1721
|
]
|
|
1722
1722
|
}
|
|
1723
1723
|
),
|
|
1724
1724
|
/* @__PURE__ */ t(
|
|
1725
1725
|
he,
|
|
1726
1726
|
{
|
|
1727
|
-
ref:
|
|
1727
|
+
ref: d,
|
|
1728
1728
|
items: e,
|
|
1729
1729
|
perPage: void 0,
|
|
1730
1730
|
gap: "16px",
|
|
1731
1731
|
enableHorizontalWheel: !0,
|
|
1732
|
-
showRightGradient: !
|
|
1732
|
+
showRightGradient: !y,
|
|
1733
1733
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
1734
1734
|
breakpoints: {
|
|
1735
1735
|
768: { perPage: 2, focus: "start", padding: { left: s, right: s } },
|
|
1736
1736
|
1024: { perPage: 2.5, focus: "start", padding: { left: "24px", right: "24px" } }
|
|
1737
1737
|
},
|
|
1738
|
-
renderItem: (
|
|
1738
|
+
renderItem: (w) => /* @__PURE__ */ t(
|
|
1739
1739
|
"div",
|
|
1740
1740
|
{
|
|
1741
1741
|
style: {
|
|
1742
1742
|
textAlign: "center",
|
|
1743
1743
|
cursor: "pointer"
|
|
1744
1744
|
},
|
|
1745
|
-
onClick: () =>
|
|
1745
|
+
onClick: () => z(w),
|
|
1746
1746
|
children: /* @__PURE__ */ t(
|
|
1747
1747
|
"img",
|
|
1748
1748
|
{
|
|
1749
|
-
src: `https://olimpo.bet${
|
|
1750
|
-
alt:
|
|
1749
|
+
src: `https://olimpo.bet${w.image !== "" ? w.image : w.summary_image}`,
|
|
1750
|
+
alt: w.title,
|
|
1751
1751
|
style: {
|
|
1752
1752
|
width: "100%",
|
|
1753
1753
|
height: typeof window != "undefined" && window.innerWidth < 768 ? "80px" : "137px",
|
|
@@ -1758,19 +1758,19 @@ function Ja({
|
|
|
1758
1758
|
}
|
|
1759
1759
|
)
|
|
1760
1760
|
},
|
|
1761
|
-
`${
|
|
1761
|
+
`${w.title}-${w.image}`
|
|
1762
1762
|
),
|
|
1763
|
-
onMove: ({ isStart:
|
|
1764
|
-
|
|
1763
|
+
onMove: ({ isStart: w, isEnd: L, source: q }) => {
|
|
1764
|
+
p({ isStart: w, isEnd: L }), q === "user" && m({
|
|
1765
1765
|
element: "destacados_carousel_slide",
|
|
1766
|
-
label: `${
|
|
1766
|
+
label: `${u} - OraculoSeccionDestacados - Slide Carousel`,
|
|
1767
1767
|
target: "carousel",
|
|
1768
1768
|
event_type: "slide",
|
|
1769
|
-
module_id:
|
|
1769
|
+
module_id: c,
|
|
1770
1770
|
metadata: {
|
|
1771
1771
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
1772
|
-
isStart:
|
|
1773
|
-
isEnd:
|
|
1772
|
+
isStart: w,
|
|
1773
|
+
isEnd: L
|
|
1774
1774
|
},
|
|
1775
1775
|
tags: { section: "OraculoSeccionDestacados" }
|
|
1776
1776
|
});
|
|
@@ -1787,7 +1787,7 @@ function _t() {
|
|
|
1787
1787
|
function Xa(e) {
|
|
1788
1788
|
_t().extras = e;
|
|
1789
1789
|
}
|
|
1790
|
-
function
|
|
1790
|
+
function le(e) {
|
|
1791
1791
|
var a;
|
|
1792
1792
|
return (a = _t().extras) == null ? void 0 : a[e];
|
|
1793
1793
|
}
|
|
@@ -1800,34 +1800,34 @@ function Qa({
|
|
|
1800
1800
|
iconUrl: n,
|
|
1801
1801
|
onCardClick: o
|
|
1802
1802
|
}) {
|
|
1803
|
-
const r = ae(),
|
|
1804
|
-
() => (e != null ? e : []).map((
|
|
1803
|
+
const r = ae(), l = ne(), s = se(), d = ie(
|
|
1804
|
+
() => (e != null ? e : []).map((u, c) => {
|
|
1805
1805
|
var f;
|
|
1806
1806
|
return {
|
|
1807
|
-
...
|
|
1808
|
-
orden: (f =
|
|
1809
|
-
_originalIndex:
|
|
1807
|
+
...u,
|
|
1808
|
+
orden: (f = u.orden) != null ? f : c + 1,
|
|
1809
|
+
_originalIndex: c
|
|
1810
1810
|
};
|
|
1811
|
-
}).sort((
|
|
1811
|
+
}).sort((u, c) => u.orden != null && c.orden != null ? u.orden - c.orden : u._originalIndex - c._originalIndex),
|
|
1812
1812
|
[e]
|
|
1813
|
-
), g = !e || e.length === 0,
|
|
1813
|
+
), g = !e || e.length === 0, p = g ? Array.from({ length: 6 }) : d.slice(0, 6), m = (u) => {
|
|
1814
1814
|
r({
|
|
1815
1815
|
element: "top_juegos_card",
|
|
1816
|
-
label: `${
|
|
1817
|
-
target: String(
|
|
1816
|
+
label: `${l} - OraculoSeccionTopJuegos - Open game: ${String(u.machine || "unknown")}`,
|
|
1817
|
+
target: String(u.machine || "unknown"),
|
|
1818
1818
|
event_type: "click",
|
|
1819
1819
|
module_id: s,
|
|
1820
1820
|
metadata: {
|
|
1821
1821
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1822
1822
|
},
|
|
1823
1823
|
tags: {
|
|
1824
|
-
game_name: String(
|
|
1824
|
+
game_name: String(u.machine || "unknown"),
|
|
1825
1825
|
section: "OraculoSeccionTopJuegos"
|
|
1826
1826
|
}
|
|
1827
1827
|
});
|
|
1828
|
-
const
|
|
1829
|
-
|
|
1830
|
-
f == null || f(
|
|
1828
|
+
const c = le("showIframe"), f = le("loadMachine");
|
|
1829
|
+
c == null || c(), requestAnimationFrame(() => {
|
|
1830
|
+
f == null || f(u, !1, "CASINO");
|
|
1831
1831
|
});
|
|
1832
1832
|
};
|
|
1833
1833
|
return /* @__PURE__ */ t("section", { style: { width: "100%" }, children: /* @__PURE__ */ _(K, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
@@ -1845,19 +1845,19 @@ function Qa({
|
|
|
1845
1845
|
justifyItems: "center",
|
|
1846
1846
|
width: "100%"
|
|
1847
1847
|
},
|
|
1848
|
-
children:
|
|
1849
|
-
var f,
|
|
1848
|
+
children: p.map((u, c) => {
|
|
1849
|
+
var f, h;
|
|
1850
1850
|
return /* @__PURE__ */ t(
|
|
1851
1851
|
xa,
|
|
1852
1852
|
{
|
|
1853
|
-
imageUrl: g ? "" :
|
|
1854
|
-
orden: g ?
|
|
1853
|
+
imageUrl: g ? "" : u.background ? `https://olimpo.bet${u.background}` : `https://olimpo.bet${(f = u.logo) != null ? f : ""}`,
|
|
1854
|
+
orden: g ? c + 1 : u.orden,
|
|
1855
1855
|
loading: g,
|
|
1856
1856
|
onClick: g ? void 0 : () => {
|
|
1857
|
-
o == null || o(
|
|
1857
|
+
o == null || o(u), m(u);
|
|
1858
1858
|
}
|
|
1859
1859
|
},
|
|
1860
|
-
g ? `sk-${
|
|
1860
|
+
g ? `sk-${c}` : (h = u.machine) != null ? h : `${c}`
|
|
1861
1861
|
);
|
|
1862
1862
|
})
|
|
1863
1863
|
}
|
|
@@ -1865,7 +1865,7 @@ function Qa({
|
|
|
1865
1865
|
] }) });
|
|
1866
1866
|
}
|
|
1867
1867
|
const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommendations", tn = (e, a) => {
|
|
1868
|
-
var n, o, r,
|
|
1868
|
+
var n, o, r, l, s, d, g, p, m, u, c, f, h, x;
|
|
1869
1869
|
return {
|
|
1870
1870
|
orden: Number(a),
|
|
1871
1871
|
machine: String(
|
|
@@ -1873,21 +1873,21 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1873
1873
|
),
|
|
1874
1874
|
logo: (o = e.logo) != null ? o : "",
|
|
1875
1875
|
name: (r = e.room_name) != null ? r : "",
|
|
1876
|
-
web_name: (
|
|
1876
|
+
web_name: (l = e.product) != null ? l : "",
|
|
1877
1877
|
provider: (s = e.service) != null ? s : "",
|
|
1878
|
-
sub_provider: (
|
|
1878
|
+
sub_provider: (d = e.service) != null ? d : "",
|
|
1879
1879
|
external_id: (g = e.external_id) != null ? g : "",
|
|
1880
|
-
type: (
|
|
1881
|
-
tags: (
|
|
1882
|
-
lobby_tag: (
|
|
1883
|
-
background: (
|
|
1880
|
+
type: (p = e.game_type) != null ? p : "",
|
|
1881
|
+
tags: (m = e.tags) != null ? m : "",
|
|
1882
|
+
lobby_tag: (u = e.lobby_tag) != null ? u : null,
|
|
1883
|
+
background: (c = e.background) != null ? c : "",
|
|
1884
1884
|
rtp: (f = e.rtp) != null ? f : null,
|
|
1885
|
-
demo_allowed: (
|
|
1885
|
+
demo_allowed: (h = e.demo_allowed) != null ? h : !1,
|
|
1886
1886
|
gaming_session_required: (x = e.gaming_session_required) != null ? x : !1
|
|
1887
1887
|
};
|
|
1888
1888
|
}, an = (e) => e ? !Array.isArray(e) && Array.isArray(e.recommendations) ? e.recommendations.filter(Boolean).map((a) => String(a)) : [] : [], yt = () => {
|
|
1889
1889
|
var a, n, o;
|
|
1890
|
-
const e =
|
|
1890
|
+
const e = le("user");
|
|
1891
1891
|
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;
|
|
1892
1892
|
}, nn = async (e) => {
|
|
1893
1893
|
const a = yt(), n = new URLSearchParams({
|
|
@@ -1898,10 +1898,10 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1898
1898
|
throw new Error(
|
|
1899
1899
|
`No se pudo obtener recomendaciones. HTTP ${r.status} ${r.statusText}`
|
|
1900
1900
|
);
|
|
1901
|
-
const
|
|
1901
|
+
const l = await r.json();
|
|
1902
1902
|
return {
|
|
1903
|
-
...
|
|
1904
|
-
recommendations: Array.isArray(
|
|
1903
|
+
...l,
|
|
1904
|
+
recommendations: Array.isArray(l == null ? void 0 : l.recommendations) ? l.recommendations.slice(0, 49) : []
|
|
1905
1905
|
};
|
|
1906
1906
|
}, on = async (e, a) => {
|
|
1907
1907
|
const n = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking", o = JSON.stringify({
|
|
@@ -1918,9 +1918,9 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1918
1918
|
throw new Error(`No se pudo obtener el ranking. HTTP ${r.status} ${r.statusText}`);
|
|
1919
1919
|
return (await r.json()).rankedItems;
|
|
1920
1920
|
}, Ve = (e, a = !1, n = "Casino") => {
|
|
1921
|
-
const [o, r] =
|
|
1921
|
+
const [o, r] = J([]), [l, s] = J(!1);
|
|
1922
1922
|
return Q(() => {
|
|
1923
|
-
let
|
|
1923
|
+
let d = !1;
|
|
1924
1924
|
return (async () => {
|
|
1925
1925
|
if (!a) {
|
|
1926
1926
|
r(Array.isArray(e) ? e : []), s(!1);
|
|
@@ -1928,44 +1928,44 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1928
1928
|
}
|
|
1929
1929
|
s(!0);
|
|
1930
1930
|
try {
|
|
1931
|
-
const
|
|
1932
|
-
if (!
|
|
1933
|
-
|
|
1931
|
+
const p = await nn(n), m = an(p);
|
|
1932
|
+
if (!m.length) {
|
|
1933
|
+
d || r([]);
|
|
1934
1934
|
return;
|
|
1935
1935
|
}
|
|
1936
|
-
const
|
|
1937
|
-
f.map(async (
|
|
1938
|
-
const
|
|
1939
|
-
if (!
|
|
1940
|
-
throw new Error(`No se pudo obtener machine ${
|
|
1941
|
-
const
|
|
1942
|
-
return tn(
|
|
1936
|
+
const u = yt(), c = await on(u, m), f = c.map((b) => b.itemId), h = await Promise.allSettled(
|
|
1937
|
+
f.map(async (b, y) => {
|
|
1938
|
+
const N = await fetch(`https://api.mktolimpo.com/api/machine/${b}`);
|
|
1939
|
+
if (!N.ok)
|
|
1940
|
+
throw new Error(`No se pudo obtener machine ${b}`);
|
|
1941
|
+
const z = await N.json();
|
|
1942
|
+
return tn(z, y);
|
|
1943
1943
|
})
|
|
1944
1944
|
);
|
|
1945
|
-
if (
|
|
1946
|
-
const x =
|
|
1947
|
-
(
|
|
1948
|
-
).map((
|
|
1949
|
-
const
|
|
1950
|
-
return
|
|
1951
|
-
}).filter(Boolean).sort((
|
|
1952
|
-
var
|
|
1953
|
-
return ((
|
|
1945
|
+
if (d) return;
|
|
1946
|
+
const x = h.filter(
|
|
1947
|
+
(b) => b.status === "fulfilled"
|
|
1948
|
+
).map((b) => b.value), C = c.map((b) => {
|
|
1949
|
+
const y = x.find((N) => N.machine === b.itemId);
|
|
1950
|
+
return y ? { ...y, score: b.score } : null;
|
|
1951
|
+
}).filter(Boolean).sort((b, y) => {
|
|
1952
|
+
var N, z;
|
|
1953
|
+
return ((N = y.score) != null ? N : 0) - ((z = b.score) != null ? z : 0);
|
|
1954
1954
|
});
|
|
1955
1955
|
r(C);
|
|
1956
|
-
} catch (
|
|
1957
|
-
console.error(`[usePersonalizeGameItems:${n}] error:`,
|
|
1956
|
+
} catch (p) {
|
|
1957
|
+
console.error(`[usePersonalizeGameItems:${n}] error:`, p), d || r([]);
|
|
1958
1958
|
} finally {
|
|
1959
|
-
|
|
1959
|
+
d || s(!1);
|
|
1960
1960
|
}
|
|
1961
1961
|
})(), () => {
|
|
1962
|
-
|
|
1962
|
+
d = !0;
|
|
1963
1963
|
};
|
|
1964
1964
|
}, [e, a, n]), {
|
|
1965
1965
|
resolvedItems: o,
|
|
1966
|
-
loading:
|
|
1966
|
+
loading: l
|
|
1967
1967
|
};
|
|
1968
|
-
}, rn = (e, a = !1) => Ve(e, a, "Casino"),
|
|
1968
|
+
}, rn = (e, a = !1) => Ve(e, a, "Casino"), ln = (e, a = !1) => Ve(e, a, "Deportes virtuales"), sn = (e, a = !1) => Ve(e, a, "Casino en vivo"), cn = (e, a) => {
|
|
1969
1969
|
var n, o;
|
|
1970
1970
|
return (o = (n = e.orden) != null ? n : e.machine) != null ? o : a;
|
|
1971
1971
|
}, dn = (e) => {
|
|
@@ -1984,52 +1984,52 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1984
1984
|
subtitle: n = "Disfruta la emoción en tus juegos favoritos y gana en tiempo real.",
|
|
1985
1985
|
backgroundMobileUrl: o = "",
|
|
1986
1986
|
onCardClick: r,
|
|
1987
|
-
backgroundDesktopUrl:
|
|
1987
|
+
backgroundDesktopUrl: l = "",
|
|
1988
1988
|
onViewMore: s,
|
|
1989
|
-
className:
|
|
1989
|
+
className: d,
|
|
1990
1990
|
isPersonalize: g = !1
|
|
1991
1991
|
}) => {
|
|
1992
|
-
const
|
|
1992
|
+
const p = ae(), m = ne(), u = se(), c = dn(g), { resolvedItems: f } = sn(
|
|
1993
1993
|
e,
|
|
1994
|
-
|
|
1995
|
-
),
|
|
1996
|
-
|
|
1994
|
+
c
|
|
1995
|
+
), h = c ? f : Array.isArray(e) ? e : [], x = (b) => {
|
|
1996
|
+
p({
|
|
1997
1997
|
element: "live_casino_card",
|
|
1998
|
-
label: `${
|
|
1999
|
-
target: String(
|
|
1998
|
+
label: `${m} - OraculoSeccionCasinoEnVivo${c ? " - personalize" : ""} - Open game: ${String(b.machine || "unknown")}`,
|
|
1999
|
+
target: String(b.machine || "unknown"),
|
|
2000
2000
|
event_type: "click",
|
|
2001
|
-
module_id:
|
|
2001
|
+
module_id: u,
|
|
2002
2002
|
metadata: {
|
|
2003
2003
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2004
2004
|
},
|
|
2005
2005
|
tags: {
|
|
2006
|
-
game_name: String(
|
|
2007
|
-
provider:
|
|
2006
|
+
game_name: String(b.machine || "unknown"),
|
|
2007
|
+
provider: b.provider || "unknown",
|
|
2008
2008
|
section: "OraculoSeccionCasinoEnVivo"
|
|
2009
2009
|
}
|
|
2010
2010
|
});
|
|
2011
|
-
const
|
|
2012
|
-
if (!
|
|
2011
|
+
const y = le("showIframe"), N = le("loadMachine");
|
|
2012
|
+
if (!N) {
|
|
2013
2013
|
if (r) {
|
|
2014
|
-
r(
|
|
2014
|
+
r(b);
|
|
2015
2015
|
return;
|
|
2016
2016
|
}
|
|
2017
2017
|
console.warn(
|
|
2018
2018
|
"[OraculoSeccionCasinoEnVivo] No existe loadMachine en extras ni onCardClick. No se puede abrir el juego.",
|
|
2019
|
-
{ machine:
|
|
2019
|
+
{ machine: b == null ? void 0 : b.machine, provider: b == null ? void 0 : b.provider }
|
|
2020
2020
|
);
|
|
2021
2021
|
return;
|
|
2022
2022
|
}
|
|
2023
|
-
|
|
2024
|
-
|
|
2023
|
+
y == null || y(), typeof window != "undefined" && window.scrollTo({ top: 0, behavior: "smooth" }), requestAnimationFrame(() => {
|
|
2024
|
+
N == null || N(b, !1, "casino_en_vivo");
|
|
2025
2025
|
});
|
|
2026
2026
|
}, C = () => {
|
|
2027
|
-
|
|
2027
|
+
p({
|
|
2028
2028
|
element: "casino_en_vivo_view_more",
|
|
2029
|
-
label: `${
|
|
2029
|
+
label: `${m} - OraculoSeccionCasinoEnVivo${c ? " - personalize" : ""} - Ver más`,
|
|
2030
2030
|
target: "https://www.olimpo.bet/casino-en-vivo",
|
|
2031
2031
|
event_type: "click",
|
|
2032
|
-
module_id:
|
|
2032
|
+
module_id: u,
|
|
2033
2033
|
metadata: {
|
|
2034
2034
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2035
2035
|
},
|
|
@@ -2039,7 +2039,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2039
2039
|
return /* @__PURE__ */ _(
|
|
2040
2040
|
P,
|
|
2041
2041
|
{
|
|
2042
|
-
className:
|
|
2042
|
+
className: d,
|
|
2043
2043
|
sx: {
|
|
2044
2044
|
position: "relative",
|
|
2045
2045
|
color: "white",
|
|
@@ -2061,7 +2061,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2061
2061
|
md: `
|
|
2062
2062
|
linear-gradient(to bottom, #121212 0%, rgba(18,18,18,0) 10%),
|
|
2063
2063
|
linear-gradient(to top, #121212 0%, rgba(18,18,18,0) 10%),
|
|
2064
|
-
url('${
|
|
2064
|
+
url('${l}')
|
|
2065
2065
|
`
|
|
2066
2066
|
},
|
|
2067
2067
|
backgroundSize: {
|
|
@@ -2119,7 +2119,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2119
2119
|
}
|
|
2120
2120
|
),
|
|
2121
2121
|
/* @__PURE__ */ t(P, { sx: { display: { xs: "none", md: "block" } }, children: /* @__PURE__ */ t(
|
|
2122
|
-
|
|
2122
|
+
X,
|
|
2123
2123
|
{
|
|
2124
2124
|
variant: "primary",
|
|
2125
2125
|
size: "md",
|
|
@@ -2139,24 +2139,24 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2139
2139
|
py: { xs: 3, md: 0 },
|
|
2140
2140
|
alignItems: "center"
|
|
2141
2141
|
},
|
|
2142
|
-
children: (
|
|
2143
|
-
var
|
|
2142
|
+
children: (h != null ? h : []).slice(0, 3).map((b, y) => {
|
|
2143
|
+
var N;
|
|
2144
2144
|
return /* @__PURE__ */ t(
|
|
2145
|
-
|
|
2145
|
+
Sa,
|
|
2146
2146
|
{
|
|
2147
|
-
logo: `https://olimpo.bet${
|
|
2148
|
-
provider:
|
|
2149
|
-
providerName:
|
|
2150
|
-
machine:
|
|
2151
|
-
onClick: () => x(
|
|
2147
|
+
logo: `https://olimpo.bet${b.background ? b.background : (N = b.logo) != null ? N : ""}`,
|
|
2148
|
+
provider: b.provider,
|
|
2149
|
+
providerName: b.web_name,
|
|
2150
|
+
machine: b.machine,
|
|
2151
|
+
onClick: () => x(b)
|
|
2152
2152
|
},
|
|
2153
|
-
cn(
|
|
2153
|
+
cn(b, y)
|
|
2154
2154
|
);
|
|
2155
2155
|
})
|
|
2156
2156
|
}
|
|
2157
2157
|
),
|
|
2158
2158
|
/* @__PURE__ */ t(P, { sx: { display: { xs: "block", md: "none" } }, children: /* @__PURE__ */ t(
|
|
2159
|
-
|
|
2159
|
+
X,
|
|
2160
2160
|
{
|
|
2161
2161
|
variant: "primary",
|
|
2162
2162
|
size: "lg",
|
|
@@ -2184,32 +2184,32 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2184
2184
|
var n, o;
|
|
2185
2185
|
return (o = (n = e.orden) != null ? n : e.machine) != null ? o : a;
|
|
2186
2186
|
}, pn = (e, a = !0, n = 1) => {
|
|
2187
|
-
const o = e.map((s,
|
|
2187
|
+
const o = e.map((s, d) => {
|
|
2188
2188
|
var g;
|
|
2189
2189
|
return {
|
|
2190
|
-
id: xt(s,
|
|
2190
|
+
id: xt(s, d),
|
|
2191
2191
|
imageUrl: (g = s.logo) != null ? g : "",
|
|
2192
2192
|
...s.background ? { background: s.background } : {}
|
|
2193
2193
|
};
|
|
2194
2194
|
});
|
|
2195
2195
|
if (!o.length) return [];
|
|
2196
2196
|
const r = [];
|
|
2197
|
-
let
|
|
2197
|
+
let l = 0;
|
|
2198
2198
|
if (a) {
|
|
2199
2199
|
const s = Math.min(o.length, 1);
|
|
2200
2200
|
r.push({
|
|
2201
2201
|
id: "mosaic-0",
|
|
2202
2202
|
kind: "mosaic",
|
|
2203
2203
|
items: o.slice(0, s)
|
|
2204
|
-
}),
|
|
2204
|
+
}), l = s;
|
|
2205
2205
|
}
|
|
2206
|
-
for (;
|
|
2207
|
-
const s = Math.min(
|
|
2206
|
+
for (; l < o.length; ) {
|
|
2207
|
+
const s = Math.min(l + n, o.length);
|
|
2208
2208
|
r.push({
|
|
2209
|
-
id: `grid-${
|
|
2209
|
+
id: `grid-${l}`,
|
|
2210
2210
|
kind: "grid",
|
|
2211
|
-
items: o.slice(
|
|
2212
|
-
}),
|
|
2211
|
+
items: o.slice(l, s)
|
|
2212
|
+
}), l = s;
|
|
2213
2213
|
}
|
|
2214
2214
|
return r;
|
|
2215
2215
|
}, fn = ({
|
|
@@ -2218,46 +2218,46 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2218
2218
|
iconUrl: n = "/assets/img/home/Casino/diamante.svg",
|
|
2219
2219
|
onItemClick: o,
|
|
2220
2220
|
onViewMore: r,
|
|
2221
|
-
mosaicFirst:
|
|
2221
|
+
mosaicFirst: l = !0,
|
|
2222
2222
|
gridSize: s = 1,
|
|
2223
|
-
isPersonalize:
|
|
2223
|
+
isPersonalize: d = !1
|
|
2224
2224
|
}) => {
|
|
2225
|
-
const g = ae(),
|
|
2225
|
+
const g = ae(), p = ne(), m = se(), u = U(null), [c, f] = J({ isStart: !0, isEnd: !1 }), h = mn(d), { resolvedItems: x, loading: C } = rn(
|
|
2226
2226
|
e,
|
|
2227
|
-
|
|
2228
|
-
),
|
|
2229
|
-
var
|
|
2227
|
+
h
|
|
2228
|
+
), b = h ? x : Array.isArray(e) ? e : [], y = () => {
|
|
2229
|
+
var I;
|
|
2230
2230
|
g({
|
|
2231
2231
|
element: "casino_prev",
|
|
2232
|
-
label: `${
|
|
2232
|
+
label: `${p} - OraculoSeccionCasino ${d ? " - personalize" : ""} - Anterior`,
|
|
2233
2233
|
target: "prev",
|
|
2234
2234
|
event_type: "click",
|
|
2235
|
-
module_id:
|
|
2235
|
+
module_id: m,
|
|
2236
2236
|
metadata: {
|
|
2237
2237
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2238
2238
|
},
|
|
2239
2239
|
tags: { section: "OraculoSeccionCasino" }
|
|
2240
|
-
}), (
|
|
2241
|
-
},
|
|
2242
|
-
var
|
|
2240
|
+
}), (I = u.current) == null || I.prev();
|
|
2241
|
+
}, N = () => {
|
|
2242
|
+
var I;
|
|
2243
2243
|
g({
|
|
2244
2244
|
element: "casino_next",
|
|
2245
|
-
label: `${
|
|
2245
|
+
label: `${p} - OraculoSeccionCasino ${d ? " - personalize" : ""} - Siguiente`,
|
|
2246
2246
|
target: "next",
|
|
2247
2247
|
event_type: "click",
|
|
2248
|
-
module_id:
|
|
2248
|
+
module_id: m,
|
|
2249
2249
|
metadata: {
|
|
2250
2250
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2251
2251
|
},
|
|
2252
2252
|
tags: { section: "OraculoSeccionCasino" }
|
|
2253
|
-
}), (
|
|
2254
|
-
},
|
|
2253
|
+
}), (I = u.current) == null || I.next();
|
|
2254
|
+
}, z = () => {
|
|
2255
2255
|
if (g({
|
|
2256
2256
|
element: "casino_view_more",
|
|
2257
|
-
label: `${
|
|
2257
|
+
label: `${p} - OraculoSeccionCasino ${d ? " - personalize" : ""} - Ver más`,
|
|
2258
2258
|
target: "https://www.olimpo.bet/casino",
|
|
2259
2259
|
event_type: "click",
|
|
2260
|
-
module_id:
|
|
2260
|
+
module_id: m,
|
|
2261
2261
|
metadata: {
|
|
2262
2262
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2263
2263
|
},
|
|
@@ -2267,13 +2267,13 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2267
2267
|
return;
|
|
2268
2268
|
}
|
|
2269
2269
|
typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/casino");
|
|
2270
|
-
}, T = (
|
|
2271
|
-
const
|
|
2272
|
-
id: `sk-${B}-${
|
|
2270
|
+
}, T = (I = !0, v = 4) => {
|
|
2271
|
+
const O = (B) => Array.from({ length: B }, (R, D) => ({
|
|
2272
|
+
id: `sk-${B}-${D}`,
|
|
2273
2273
|
imageUrl: ""
|
|
2274
|
-
})),
|
|
2275
|
-
return
|
|
2276
|
-
},
|
|
2274
|
+
})), F = [];
|
|
2275
|
+
return I && F.push({ id: "mosaic-loading", kind: "mosaic", items: O(5) }), F.push({ id: "grid-loading", kind: "grid", items: O(v) }), F;
|
|
2276
|
+
}, w = h ? C : !Array.isArray(e) || e.length === 0, L = De("(max-width:950px)"), q = w ? T(l, s) : pn(b, l, s);
|
|
2277
2277
|
return /* @__PURE__ */ t("section", { children: /* @__PURE__ */ _(K, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
2278
2278
|
/* @__PURE__ */ _(
|
|
2279
2279
|
P,
|
|
@@ -2293,42 +2293,42 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2293
2293
|
/* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
|
|
2294
2294
|
/* @__PURE__ */ _(P, { sx: { display: "flex", gap: 1, justifyContent: "flex-end" }, children: [
|
|
2295
2295
|
/* @__PURE__ */ t(
|
|
2296
|
-
|
|
2296
|
+
X,
|
|
2297
2297
|
{
|
|
2298
2298
|
ariaLabel: "Anterior",
|
|
2299
2299
|
variant: "secondary",
|
|
2300
2300
|
iconOnly: !0,
|
|
2301
|
-
leftIcon: /* @__PURE__ */ t(
|
|
2302
|
-
onClick:
|
|
2303
|
-
disabled:
|
|
2301
|
+
leftIcon: /* @__PURE__ */ t(st, {}),
|
|
2302
|
+
onClick: y,
|
|
2303
|
+
disabled: c.isStart
|
|
2304
2304
|
}
|
|
2305
2305
|
),
|
|
2306
2306
|
/* @__PURE__ */ t(
|
|
2307
|
-
|
|
2307
|
+
X,
|
|
2308
2308
|
{
|
|
2309
2309
|
ariaLabel: "Siguiente",
|
|
2310
2310
|
variant: "secondary",
|
|
2311
2311
|
iconOnly: !0,
|
|
2312
2312
|
rightIcon: /* @__PURE__ */ t(ct, {}),
|
|
2313
|
-
onClick:
|
|
2314
|
-
disabled:
|
|
2313
|
+
onClick: N,
|
|
2314
|
+
disabled: c.isEnd
|
|
2315
2315
|
}
|
|
2316
2316
|
)
|
|
2317
2317
|
] }),
|
|
2318
|
-
/* @__PURE__ */ t(P, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(
|
|
2318
|
+
/* @__PURE__ */ t(P, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(X, { variant: "secondary", onClick: z, children: "Ver más" }) })
|
|
2319
2319
|
]
|
|
2320
2320
|
}
|
|
2321
2321
|
),
|
|
2322
2322
|
/* @__PURE__ */ t(
|
|
2323
2323
|
he,
|
|
2324
2324
|
{
|
|
2325
|
-
ref:
|
|
2325
|
+
ref: u,
|
|
2326
2326
|
items: q,
|
|
2327
2327
|
perPage: void 0,
|
|
2328
2328
|
gap: "16px",
|
|
2329
2329
|
enableHorizontalWheel: !0,
|
|
2330
2330
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
2331
|
-
showRightGradient: !
|
|
2331
|
+
showRightGradient: !L,
|
|
2332
2332
|
breakpoints: {
|
|
2333
2333
|
400: {
|
|
2334
2334
|
gap: "4px",
|
|
@@ -2346,38 +2346,38 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2346
2346
|
padding: { left: "24px", right: "24px" }
|
|
2347
2347
|
}
|
|
2348
2348
|
},
|
|
2349
|
-
renderItem: (
|
|
2349
|
+
renderItem: (I) => /* @__PURE__ */ t("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ t(
|
|
2350
2350
|
ft,
|
|
2351
2351
|
{
|
|
2352
|
-
items:
|
|
2353
|
-
layout:
|
|
2354
|
-
loading:
|
|
2352
|
+
items: I.items,
|
|
2353
|
+
layout: I.kind === "mosaic" ? "mosaic" : "grid",
|
|
2354
|
+
loading: w,
|
|
2355
2355
|
onClick: (v) => {
|
|
2356
|
-
if (
|
|
2357
|
-
const
|
|
2358
|
-
(
|
|
2356
|
+
if (w) return;
|
|
2357
|
+
const O = b.find(
|
|
2358
|
+
(R, D) => String(xt(R, D)) === String(v.id)
|
|
2359
2359
|
);
|
|
2360
|
-
if (!
|
|
2361
|
-
o == null || o(
|
|
2360
|
+
if (!O) return;
|
|
2361
|
+
o == null || o(O), g({
|
|
2362
2362
|
element: "casino_game_card",
|
|
2363
|
-
label: `${
|
|
2364
|
-
target: String(
|
|
2363
|
+
label: `${p} - OraculoSeccionCasino ${d ? " - personalize" : ""} - Game: ${String(O.machine || "unknown")}`,
|
|
2364
|
+
target: String(O.machine || "unknown"),
|
|
2365
2365
|
event_type: "click",
|
|
2366
|
-
module_id:
|
|
2366
|
+
module_id: m,
|
|
2367
2367
|
metadata: {
|
|
2368
2368
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2369
2369
|
},
|
|
2370
2370
|
tags: {
|
|
2371
|
-
game_name: String(
|
|
2371
|
+
game_name: String(O.machine || "unknown"),
|
|
2372
2372
|
section: a || "Casino"
|
|
2373
2373
|
}
|
|
2374
2374
|
});
|
|
2375
|
-
const
|
|
2376
|
-
|
|
2375
|
+
const F = le("showIframe"), B = le("loadMachine");
|
|
2376
|
+
F == null || F(), B == null || B(O, !1, "CASINO");
|
|
2377
2377
|
}
|
|
2378
2378
|
}
|
|
2379
2379
|
) }),
|
|
2380
|
-
onMove: ({ isStart:
|
|
2380
|
+
onMove: ({ isStart: I, isEnd: v }) => f({ isStart: I, isEnd: v })
|
|
2381
2381
|
}
|
|
2382
2382
|
)
|
|
2383
2383
|
] }) });
|
|
@@ -2391,40 +2391,40 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2391
2391
|
return e.value.toLowerCase() === "true";
|
|
2392
2392
|
}
|
|
2393
2393
|
return !1;
|
|
2394
|
-
},
|
|
2394
|
+
}, St = (e, a) => {
|
|
2395
2395
|
var n, o;
|
|
2396
2396
|
return (o = (n = e.orden) != null ? n : e.machine) != null ? o : a;
|
|
2397
2397
|
}, hn = (e, a = !0, n = 1) => {
|
|
2398
|
-
const o = e.map((s,
|
|
2398
|
+
const o = e.map((s, d) => {
|
|
2399
2399
|
var g;
|
|
2400
2400
|
return {
|
|
2401
|
-
id:
|
|
2401
|
+
id: St(s, d),
|
|
2402
2402
|
imageUrl: (g = s.logo) != null ? g : "",
|
|
2403
2403
|
...s.background ? { background: s.background } : {}
|
|
2404
2404
|
};
|
|
2405
2405
|
});
|
|
2406
2406
|
if (!o.length) return [];
|
|
2407
2407
|
const r = [];
|
|
2408
|
-
let
|
|
2408
|
+
let l = 0;
|
|
2409
2409
|
if (a) {
|
|
2410
2410
|
const s = Math.min(o.length, 1);
|
|
2411
2411
|
r.push({
|
|
2412
2412
|
id: "mosaic-0",
|
|
2413
2413
|
kind: "mosaic",
|
|
2414
2414
|
items: o.slice(0, s)
|
|
2415
|
-
}),
|
|
2415
|
+
}), l = s;
|
|
2416
2416
|
}
|
|
2417
|
-
for (;
|
|
2418
|
-
const s = Math.min(
|
|
2417
|
+
for (; l < o.length; ) {
|
|
2418
|
+
const s = Math.min(l + n, o.length);
|
|
2419
2419
|
r.push({
|
|
2420
|
-
id: `grid-${
|
|
2420
|
+
id: `grid-${l}`,
|
|
2421
2421
|
kind: "grid",
|
|
2422
|
-
items: o.slice(
|
|
2423
|
-
}),
|
|
2422
|
+
items: o.slice(l, s)
|
|
2423
|
+
}), l = s;
|
|
2424
2424
|
}
|
|
2425
2425
|
return r;
|
|
2426
2426
|
}, bn = (e = !0, a = 4) => {
|
|
2427
|
-
const n = (r) => Array.from({ length: r }, (
|
|
2427
|
+
const n = (r) => Array.from({ length: r }, (l, s) => ({
|
|
2428
2428
|
id: `sk-${r}-${s}`,
|
|
2429
2429
|
imageUrl: ""
|
|
2430
2430
|
})), o = [];
|
|
@@ -2443,18 +2443,18 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2443
2443
|
iconUrl: n = "/assets/img/home/Virtuales/virtuales.svg",
|
|
2444
2444
|
onItemClick: o,
|
|
2445
2445
|
onViewMore: r,
|
|
2446
|
-
mosaicFirst:
|
|
2446
|
+
mosaicFirst: l = !0,
|
|
2447
2447
|
gridSize: s = 1,
|
|
2448
|
-
isPersonalize:
|
|
2448
|
+
isPersonalize: d = !1
|
|
2449
2449
|
}) => {
|
|
2450
|
-
const g =
|
|
2450
|
+
const g = U(null), [p, m] = J({ isStart: !0, isEnd: !1 }), u = ae(), c = ne(), f = se(), h = gn(d), { resolvedItems: x, loading: C } = ln(
|
|
2451
2451
|
e,
|
|
2452
|
-
|
|
2453
|
-
),
|
|
2452
|
+
h
|
|
2453
|
+
), b = h ? x : Array.isArray(e) ? e : [], y = () => {
|
|
2454
2454
|
var q;
|
|
2455
|
-
|
|
2455
|
+
u({
|
|
2456
2456
|
element: "virtuales_prev",
|
|
2457
|
-
label: `${
|
|
2457
|
+
label: `${c} - OraculoSeccionVirtuales${h ? " - personalize" : ""} - Anterior`,
|
|
2458
2458
|
target: "prev",
|
|
2459
2459
|
event_type: "click",
|
|
2460
2460
|
module_id: f,
|
|
@@ -2463,11 +2463,11 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2463
2463
|
},
|
|
2464
2464
|
tags: { section: "OraculoSeccionVirtuales" }
|
|
2465
2465
|
}), (q = g.current) == null || q.prev();
|
|
2466
|
-
},
|
|
2466
|
+
}, N = () => {
|
|
2467
2467
|
var q;
|
|
2468
|
-
|
|
2468
|
+
u({
|
|
2469
2469
|
element: "virtuales_next",
|
|
2470
|
-
label: `${
|
|
2470
|
+
label: `${c} - OraculoSeccionVirtuales${h ? " - personalize" : ""} - Siguiente`,
|
|
2471
2471
|
target: "next",
|
|
2472
2472
|
event_type: "click",
|
|
2473
2473
|
module_id: f,
|
|
@@ -2476,10 +2476,10 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2476
2476
|
},
|
|
2477
2477
|
tags: { section: "OraculoSeccionVirtuales" }
|
|
2478
2478
|
}), (q = g.current) == null || q.next();
|
|
2479
|
-
},
|
|
2480
|
-
if (
|
|
2479
|
+
}, z = () => {
|
|
2480
|
+
if (u({
|
|
2481
2481
|
element: "virtuales_view_more",
|
|
2482
|
-
label: `${
|
|
2482
|
+
label: `${c} - OraculoSeccionVirtuales${h ? " - personalize" : ""} - Ver más`,
|
|
2483
2483
|
target: "https://www.olimpo.bet/juegos-virtuales",
|
|
2484
2484
|
event_type: "click",
|
|
2485
2485
|
module_id: f,
|
|
@@ -2492,7 +2492,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2492
2492
|
return;
|
|
2493
2493
|
}
|
|
2494
2494
|
typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/juegos-virtuales");
|
|
2495
|
-
}, T =
|
|
2495
|
+
}, T = h ? C : !Array.isArray(e) || e.length === 0, w = xe("(max-width:950px)"), L = T ? bn(l, s) : hn(b, l, s);
|
|
2496
2496
|
return /* @__PURE__ */ t("section", { children: /* @__PURE__ */ _(K, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
2497
2497
|
/* @__PURE__ */ _(
|
|
2498
2498
|
P,
|
|
@@ -2512,29 +2512,29 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2512
2512
|
/* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
|
|
2513
2513
|
/* @__PURE__ */ _(P, { sx: { display: "flex", gap: 1, justifyContent: "flex-end" }, children: [
|
|
2514
2514
|
/* @__PURE__ */ t(
|
|
2515
|
-
|
|
2515
|
+
X,
|
|
2516
2516
|
{
|
|
2517
2517
|
ariaLabel: "Anterior",
|
|
2518
2518
|
variant: "secondary",
|
|
2519
2519
|
iconOnly: !0,
|
|
2520
|
-
leftIcon: /* @__PURE__ */ t(
|
|
2521
|
-
onClick:
|
|
2522
|
-
disabled:
|
|
2520
|
+
leftIcon: /* @__PURE__ */ t(st, {}),
|
|
2521
|
+
onClick: y,
|
|
2522
|
+
disabled: p.isStart
|
|
2523
2523
|
}
|
|
2524
2524
|
),
|
|
2525
2525
|
/* @__PURE__ */ t(
|
|
2526
|
-
|
|
2526
|
+
X,
|
|
2527
2527
|
{
|
|
2528
2528
|
ariaLabel: "Siguiente",
|
|
2529
2529
|
variant: "secondary",
|
|
2530
2530
|
iconOnly: !0,
|
|
2531
2531
|
rightIcon: /* @__PURE__ */ t(ct, {}),
|
|
2532
|
-
onClick:
|
|
2533
|
-
disabled:
|
|
2532
|
+
onClick: N,
|
|
2533
|
+
disabled: p.isEnd
|
|
2534
2534
|
}
|
|
2535
2535
|
)
|
|
2536
2536
|
] }),
|
|
2537
|
-
/* @__PURE__ */ t(P, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(
|
|
2537
|
+
/* @__PURE__ */ t(P, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(X, { variant: "secondary", onClick: z, children: "Ver más" }) })
|
|
2538
2538
|
]
|
|
2539
2539
|
}
|
|
2540
2540
|
),
|
|
@@ -2542,7 +2542,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2542
2542
|
he,
|
|
2543
2543
|
{
|
|
2544
2544
|
ref: g,
|
|
2545
|
-
items:
|
|
2545
|
+
items: L,
|
|
2546
2546
|
perPage: void 0,
|
|
2547
2547
|
gap: "16px",
|
|
2548
2548
|
breakpoints: {
|
|
@@ -2563,7 +2563,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2563
2563
|
}
|
|
2564
2564
|
},
|
|
2565
2565
|
enableHorizontalWheel: !0,
|
|
2566
|
-
showRightGradient: !
|
|
2566
|
+
showRightGradient: !w,
|
|
2567
2567
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
2568
2568
|
renderItem: (q) => /* @__PURE__ */ t("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ t(
|
|
2569
2569
|
ft,
|
|
@@ -2571,21 +2571,21 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2571
2571
|
items: q.items,
|
|
2572
2572
|
layout: q.kind === "mosaic" ? "mosaic" : "grid",
|
|
2573
2573
|
loading: T,
|
|
2574
|
-
onClick: (
|
|
2574
|
+
onClick: (I) => {
|
|
2575
2575
|
if (T) return;
|
|
2576
|
-
const v =
|
|
2577
|
-
(B,
|
|
2576
|
+
const v = b.find(
|
|
2577
|
+
(B, R) => String(St(B, R)) === String(I.id)
|
|
2578
2578
|
);
|
|
2579
2579
|
if (!v) {
|
|
2580
2580
|
console.warn(
|
|
2581
2581
|
"[virtuales] no se encontró game para id:",
|
|
2582
|
-
|
|
2582
|
+
I.id
|
|
2583
2583
|
);
|
|
2584
2584
|
return;
|
|
2585
2585
|
}
|
|
2586
|
-
o == null || o(v),
|
|
2586
|
+
o == null || o(v), u({
|
|
2587
2587
|
element: "virtuales_game_card",
|
|
2588
|
-
label: `${
|
|
2588
|
+
label: `${c} - OraculoSeccionVirtuales${h ? " - personalize" : ""} - Game: ${String(v.machine || "unknown")}`,
|
|
2589
2589
|
target: String(v.machine || "unknown"),
|
|
2590
2590
|
event_type: "click",
|
|
2591
2591
|
module_id: f,
|
|
@@ -2597,16 +2597,16 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2597
2597
|
section: a || "Virtuales"
|
|
2598
2598
|
}
|
|
2599
2599
|
});
|
|
2600
|
-
const
|
|
2601
|
-
|
|
2600
|
+
const O = le("showIframe"), F = le("loadMachine");
|
|
2601
|
+
O == null || O(), F == null || F(
|
|
2602
2602
|
v,
|
|
2603
2603
|
!1,
|
|
2604
|
-
|
|
2604
|
+
h ? "VIRTUALES_PERSONALIZE" : "VIRTUALES"
|
|
2605
2605
|
);
|
|
2606
2606
|
}
|
|
2607
2607
|
}
|
|
2608
2608
|
) }),
|
|
2609
|
-
onMove: ({ isStart: q, isEnd:
|
|
2609
|
+
onMove: ({ isStart: q, isEnd: I }) => m({ isStart: q, isEnd: I })
|
|
2610
2610
|
}
|
|
2611
2611
|
)
|
|
2612
2612
|
] }) });
|
|
@@ -2648,33 +2648,33 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2648
2648
|
items: n,
|
|
2649
2649
|
backgroundImageUrl: o
|
|
2650
2650
|
}) => {
|
|
2651
|
-
const r = ae(),
|
|
2651
|
+
const r = ae(), l = ne(), s = xe("(max-width: 767px)"), d = n.length > 1, g = U(null), p = U(null), m = U(!1), u = U(!1), [c, f] = J(0), [h, x] = J({ isStart: !0, isEnd: !1 });
|
|
2652
2652
|
Q(() => {
|
|
2653
2653
|
const v = setTimeout(() => {
|
|
2654
|
-
|
|
2654
|
+
m.current = !0;
|
|
2655
2655
|
}, 500);
|
|
2656
2656
|
return () => clearTimeout(v);
|
|
2657
2657
|
}, []);
|
|
2658
|
-
const C =
|
|
2658
|
+
const C = U(h);
|
|
2659
2659
|
Q(() => {
|
|
2660
|
-
C.current =
|
|
2661
|
-
}, [
|
|
2662
|
-
const
|
|
2660
|
+
C.current = h;
|
|
2661
|
+
}, [h]);
|
|
2662
|
+
const b = U(!1), y = U(null), N = n == null ? void 0 : n[c], z = ie(
|
|
2663
2663
|
() => {
|
|
2664
|
-
var v,
|
|
2665
|
-
return (
|
|
2664
|
+
var v, O;
|
|
2665
|
+
return (O = (v = N == null ? void 0 : N.backgroundImageUrl) != null ? v : o) != null ? O : "";
|
|
2666
2666
|
},
|
|
2667
|
-
[
|
|
2668
|
-
), T = _n(
|
|
2667
|
+
[N, o]
|
|
2668
|
+
), T = _n(z), w = !n || n.length === 0, L = (v, O) => {
|
|
2669
2669
|
r({
|
|
2670
2670
|
element: "welcome_banner_button",
|
|
2671
|
-
label: `OraculoSeccionBonoBienvenida - Banner button click: ${v.title || "OraculoSeccionBonoBienvenida - Banner " + (
|
|
2671
|
+
label: `OraculoSeccionBonoBienvenida - Banner button click: ${v.title || "OraculoSeccionBonoBienvenida - Banner " + (O + 1)}`,
|
|
2672
2672
|
target: "action",
|
|
2673
2673
|
event_type: "click",
|
|
2674
2674
|
module_id: 301,
|
|
2675
2675
|
metadata: {
|
|
2676
2676
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
2677
|
-
banner_position:
|
|
2677
|
+
banner_position: O + 1,
|
|
2678
2678
|
banner_total: (n == null ? void 0 : n.length) || 0
|
|
2679
2679
|
},
|
|
2680
2680
|
tags: {
|
|
@@ -2683,15 +2683,15 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2683
2683
|
}
|
|
2684
2684
|
}), v.onButtonClick && v.onButtonClick();
|
|
2685
2685
|
}, q = (v) => {
|
|
2686
|
-
if (!
|
|
2687
|
-
if (
|
|
2688
|
-
|
|
2686
|
+
if (!m.current) return;
|
|
2687
|
+
if (u.current) {
|
|
2688
|
+
u.current = !1;
|
|
2689
2689
|
return;
|
|
2690
2690
|
}
|
|
2691
|
-
const
|
|
2691
|
+
const O = n == null ? void 0 : n[v];
|
|
2692
2692
|
r({
|
|
2693
2693
|
element: "welcome_banner_carousel",
|
|
2694
|
-
label: `Landing: ${
|
|
2694
|
+
label: `Landing: ${l} - OraculoSeccionBonoBienvenida - Banner view: ${(O == null ? void 0 : O.title) || "OraculoSeccionBonoBienvenida - Banner " + (v + 1)}`,
|
|
2695
2695
|
target: "no_url",
|
|
2696
2696
|
event_type: "view",
|
|
2697
2697
|
module_id: 301,
|
|
@@ -2703,31 +2703,31 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2703
2703
|
},
|
|
2704
2704
|
tags: {
|
|
2705
2705
|
banner_position: String(v + 1),
|
|
2706
|
-
banner_title: (
|
|
2706
|
+
banner_title: (O == null ? void 0 : O.title) || "no_title"
|
|
2707
2707
|
}
|
|
2708
2708
|
});
|
|
2709
2709
|
};
|
|
2710
2710
|
Q(() => {
|
|
2711
|
-
const v =
|
|
2711
|
+
const v = p.current;
|
|
2712
2712
|
if (!v) return;
|
|
2713
|
-
const
|
|
2714
|
-
var Z,
|
|
2715
|
-
if (
|
|
2716
|
-
const
|
|
2717
|
-
if (Math.abs(
|
|
2718
|
-
const j =
|
|
2719
|
-
j && C.current.isEnd || !j && C.current.isStart || (
|
|
2720
|
-
|
|
2721
|
-
},
|
|
2713
|
+
const O = 6, F = 380, B = (R) => {
|
|
2714
|
+
var Z, W;
|
|
2715
|
+
if (w || R.ctrlKey || b.current) return;
|
|
2716
|
+
const D = R.deltaX, V = R.deltaY;
|
|
2717
|
+
if (Math.abs(D) <= Math.abs(V) || Math.abs(D) < O) return;
|
|
2718
|
+
const j = D > 0;
|
|
2719
|
+
j && C.current.isEnd || !j && C.current.isStart || (R.preventDefault(), b.current = !0, j ? (Z = g.current) == null || Z.next() : (W = g.current) == null || W.prev(), y.current && window.clearTimeout(y.current), y.current = window.setTimeout(() => {
|
|
2720
|
+
b.current = !1;
|
|
2721
|
+
}, F));
|
|
2722
2722
|
};
|
|
2723
2723
|
return v.addEventListener("wheel", B, { passive: !1 }), () => {
|
|
2724
|
-
v.removeEventListener("wheel", B),
|
|
2724
|
+
v.removeEventListener("wheel", B), y.current && window.clearTimeout(y.current);
|
|
2725
2725
|
};
|
|
2726
|
-
}, [
|
|
2727
|
-
const
|
|
2728
|
-
var
|
|
2729
|
-
const B = (
|
|
2730
|
-
return
|
|
2726
|
+
}, [w]);
|
|
2727
|
+
const I = (v, O, F) => {
|
|
2728
|
+
var D, V;
|
|
2729
|
+
const B = (D = v.headline) != null ? D : e, R = (V = v.headline2) != null ? V : a;
|
|
2730
|
+
return O ? /* @__PURE__ */ _(
|
|
2731
2731
|
P,
|
|
2732
2732
|
{
|
|
2733
2733
|
sx: {
|
|
@@ -2740,7 +2740,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2740
2740
|
columnGap: 6
|
|
2741
2741
|
},
|
|
2742
2742
|
children: [
|
|
2743
|
-
(B ||
|
|
2743
|
+
(B || R) && /* @__PURE__ */ t(
|
|
2744
2744
|
P,
|
|
2745
2745
|
{
|
|
2746
2746
|
sx: {
|
|
@@ -2751,9 +2751,9 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2751
2751
|
},
|
|
2752
2752
|
children: /* @__PURE__ */ _(P, { sx: { ...Qe, textAlign: "left", mb: 0 }, children: [
|
|
2753
2753
|
B && /* @__PURE__ */ t(ue, { component: "span", sx: et, children: B }),
|
|
2754
|
-
|
|
2754
|
+
R && /* @__PURE__ */ _(pe, { children: [
|
|
2755
2755
|
/* @__PURE__ */ t("br", {}),
|
|
2756
|
-
/* @__PURE__ */ t(ue, { component: "span", sx: tt, children:
|
|
2756
|
+
/* @__PURE__ */ t(ue, { component: "span", sx: tt, children: R })
|
|
2757
2757
|
] })
|
|
2758
2758
|
] })
|
|
2759
2759
|
}
|
|
@@ -2762,32 +2762,32 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2762
2762
|
Je,
|
|
2763
2763
|
{
|
|
2764
2764
|
...v,
|
|
2765
|
-
onButtonClick: () =>
|
|
2765
|
+
onButtonClick: () => L(v, F),
|
|
2766
2766
|
variant: "large"
|
|
2767
2767
|
}
|
|
2768
2768
|
) }) })
|
|
2769
2769
|
]
|
|
2770
2770
|
}
|
|
2771
2771
|
) : /* @__PURE__ */ _(P, { sx: { textAlign: "center" }, children: [
|
|
2772
|
-
(B ||
|
|
2772
|
+
(B || R) && /* @__PURE__ */ _(P, { sx: Qe, children: [
|
|
2773
2773
|
B && /* @__PURE__ */ t(ue, { component: "span", sx: et, children: B }),
|
|
2774
|
-
|
|
2774
|
+
R && /* @__PURE__ */ _(pe, { children: [
|
|
2775
2775
|
/* @__PURE__ */ t("br", {}),
|
|
2776
|
-
/* @__PURE__ */ t(ue, { component: "span", sx: tt, children:
|
|
2776
|
+
/* @__PURE__ */ t(ue, { component: "span", sx: tt, children: R })
|
|
2777
2777
|
] })
|
|
2778
2778
|
] }),
|
|
2779
2779
|
/* @__PURE__ */ t(P, { sx: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(
|
|
2780
2780
|
Je,
|
|
2781
2781
|
{
|
|
2782
2782
|
...v,
|
|
2783
|
-
onButtonClick: () =>
|
|
2783
|
+
onButtonClick: () => L(v, F),
|
|
2784
2784
|
variant: "small"
|
|
2785
2785
|
}
|
|
2786
2786
|
) })
|
|
2787
2787
|
] });
|
|
2788
2788
|
};
|
|
2789
2789
|
return /* @__PURE__ */ _(P, { component: "section", sx: T, children: [
|
|
2790
|
-
/* @__PURE__ */ t("div", { ref:
|
|
2790
|
+
/* @__PURE__ */ t("div", { ref: p, style: { width: "100%" }, children: /* @__PURE__ */ t(
|
|
2791
2791
|
he,
|
|
2792
2792
|
{
|
|
2793
2793
|
ref: g,
|
|
@@ -2804,22 +2804,22 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2804
2804
|
// arrows: false,
|
|
2805
2805
|
// drag: true,
|
|
2806
2806
|
},
|
|
2807
|
-
renderItem: (v,
|
|
2808
|
-
onMove: ({ index: v, isStart:
|
|
2809
|
-
f(v), typeof
|
|
2807
|
+
renderItem: (v, O) => /* @__PURE__ */ t(P, { sx: { width: "100%" }, children: I(v, !s, O) }),
|
|
2808
|
+
onMove: ({ index: v, isStart: O, isEnd: F, source: B }) => {
|
|
2809
|
+
f(v), typeof O == "boolean" && typeof F == "boolean" && x({ isStart: O, isEnd: F }), B === "user" && q(v);
|
|
2810
2810
|
}
|
|
2811
2811
|
}
|
|
2812
2812
|
) }),
|
|
2813
|
-
|
|
2813
|
+
d && /* @__PURE__ */ t(P, { sx: { mt: 2, display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(
|
|
2814
2814
|
dt,
|
|
2815
2815
|
{
|
|
2816
2816
|
total: n.length,
|
|
2817
|
-
active:
|
|
2817
|
+
active: c,
|
|
2818
2818
|
onSelect: (v) => {
|
|
2819
|
-
var
|
|
2819
|
+
var O;
|
|
2820
2820
|
r({
|
|
2821
2821
|
element: "welcome_banner_dots",
|
|
2822
|
-
label: `Landing: ${
|
|
2822
|
+
label: `Landing: ${l} - OraculoSeccionBonoBienvenida - Dot navigation: Banner ${v + 1}`,
|
|
2823
2823
|
target: "no_url",
|
|
2824
2824
|
event_type: "click",
|
|
2825
2825
|
module_id: 301,
|
|
@@ -2831,7 +2831,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2831
2831
|
tags: {
|
|
2832
2832
|
navigation_type: "dot_click"
|
|
2833
2833
|
}
|
|
2834
|
-
}), f(v), (
|
|
2834
|
+
}), f(v), (O = g.current) == null || O.go(v);
|
|
2835
2835
|
}
|
|
2836
2836
|
}
|
|
2837
2837
|
) })
|
|
@@ -2842,12 +2842,12 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2842
2842
|
items: n,
|
|
2843
2843
|
selectedIndex: o = 0,
|
|
2844
2844
|
ariaLabel: r,
|
|
2845
|
-
user:
|
|
2845
|
+
user: l = null
|
|
2846
2846
|
}) => {
|
|
2847
|
-
const s =
|
|
2847
|
+
const s = U(null), d = U(null), g = ae(), p = ne(), m = se();
|
|
2848
2848
|
if (!n) return null;
|
|
2849
|
-
const
|
|
2850
|
-
let x =
|
|
2849
|
+
const u = async () => {
|
|
2850
|
+
let x = l;
|
|
2851
2851
|
if ((!(x != null && x.user) || !(x != null && x.session)) && typeof window != "undefined")
|
|
2852
2852
|
try {
|
|
2853
2853
|
const C = localStorage.getItem("user");
|
|
@@ -2859,10 +2859,10 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2859
2859
|
return console.warn("User data missing"), null;
|
|
2860
2860
|
g({
|
|
2861
2861
|
element: "club_olimpo_button",
|
|
2862
|
-
label: `${
|
|
2862
|
+
label: `${p} - OraculoSeccionClubOlimpo - Click: Club Olimpo`,
|
|
2863
2863
|
target: "https://www.clubolimpo.com/OlimpoBetWeb/",
|
|
2864
2864
|
event_type: "click",
|
|
2865
|
-
module_id:
|
|
2865
|
+
module_id: m,
|
|
2866
2866
|
metadata: {
|
|
2867
2867
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2868
2868
|
},
|
|
@@ -2873,36 +2873,36 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2873
2873
|
idUsuario: "PE" + x.user,
|
|
2874
2874
|
session_id: x.session,
|
|
2875
2875
|
pagina: "home"
|
|
2876
|
-
},
|
|
2876
|
+
}, y = await fetch("https://apipe.mktolimpo.com/api/pm/token", {
|
|
2877
2877
|
method: "POST",
|
|
2878
2878
|
headers: {
|
|
2879
2879
|
"Content-Type": "application/json"
|
|
2880
2880
|
},
|
|
2881
2881
|
body: JSON.stringify(C)
|
|
2882
2882
|
});
|
|
2883
|
-
if (
|
|
2884
|
-
const
|
|
2885
|
-
return
|
|
2883
|
+
if (y.ok) {
|
|
2884
|
+
const N = await y.json();
|
|
2885
|
+
return N == null ? void 0 : N.url;
|
|
2886
2886
|
}
|
|
2887
2887
|
return null;
|
|
2888
2888
|
} catch (C) {
|
|
2889
2889
|
return console.error("[getMarketPlaceUrl]", C), null;
|
|
2890
2890
|
}
|
|
2891
|
-
},
|
|
2892
|
-
const x = await
|
|
2891
|
+
}, c = async () => {
|
|
2892
|
+
const x = await u();
|
|
2893
2893
|
x ? window.location.href = x : typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/conoce-club-olimpo");
|
|
2894
2894
|
}, f = Array.isArray(n) ? n[o] : n;
|
|
2895
2895
|
Mt(() => {
|
|
2896
|
-
if (!s.current || !
|
|
2897
|
-
const x = s.current, C =
|
|
2896
|
+
if (!s.current || !d.current || typeof ResizeObserver == "undefined") return;
|
|
2897
|
+
const x = s.current, C = d.current, b = () => {
|
|
2898
2898
|
x.style.setProperty(
|
|
2899
2899
|
"--orc-co-bottomH",
|
|
2900
2900
|
`${C.offsetHeight + 16}px`
|
|
2901
2901
|
);
|
|
2902
|
-
},
|
|
2903
|
-
return
|
|
2902
|
+
}, y = new ResizeObserver(b);
|
|
2903
|
+
return y.observe(C), b(), () => y.disconnect();
|
|
2904
2904
|
}, []);
|
|
2905
|
-
const
|
|
2905
|
+
const h = [
|
|
2906
2906
|
"orc-co-wrap",
|
|
2907
2907
|
a ? "orc-co-fullBleed" : "",
|
|
2908
2908
|
e
|
|
@@ -2911,13 +2911,13 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2911
2911
|
"section",
|
|
2912
2912
|
{
|
|
2913
2913
|
ref: s,
|
|
2914
|
-
className:
|
|
2914
|
+
className: h,
|
|
2915
2915
|
"aria-label": r || f.imgAlt || "Club Olimpo",
|
|
2916
|
-
children: /* @__PURE__ */ t("div", { ref:
|
|
2917
|
-
|
|
2916
|
+
children: /* @__PURE__ */ t("div", { ref: d, children: /* @__PURE__ */ t(
|
|
2917
|
+
wa,
|
|
2918
2918
|
{
|
|
2919
2919
|
text: f.text,
|
|
2920
|
-
onClick:
|
|
2920
|
+
onClick: c,
|
|
2921
2921
|
imgAlt: f.imgAlt,
|
|
2922
2922
|
buttonLabel: f.buttonLabel,
|
|
2923
2923
|
imgSrcMobile: f.imgMobile,
|
|
@@ -2927,34 +2927,34 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2927
2927
|
) })
|
|
2928
2928
|
}
|
|
2929
2929
|
);
|
|
2930
|
-
},
|
|
2931
|
-
controls:
|
|
2932
|
-
padding:
|
|
2930
|
+
}, Sn = "oraculo__OraculoSeccionEventoCombinadas-module__controls___Zsta4", wn = "oraculo__OraculoSeccionEventoCombinadas-module__padding___vf-yF", at = {
|
|
2931
|
+
controls: Sn,
|
|
2932
|
+
padding: wn
|
|
2933
2933
|
}, In = (e) => {
|
|
2934
2934
|
var a, n;
|
|
2935
2935
|
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) => {
|
|
2936
|
-
var r,
|
|
2937
|
-
return (
|
|
2936
|
+
var r, l;
|
|
2937
|
+
return (l = (r = o.outcomes) == null ? void 0 : r.map((s) => s.id)) != null ? l : [];
|
|
2938
2938
|
}) : [];
|
|
2939
2939
|
};
|
|
2940
2940
|
function On(e, a, n) {
|
|
2941
2941
|
return n ? n.map((o) => {
|
|
2942
|
-
var
|
|
2943
|
-
const r = o.prePackCouponRows.flatMap((
|
|
2944
|
-
for (const
|
|
2945
|
-
if (!
|
|
2946
|
-
const f =
|
|
2947
|
-
f.length && ((
|
|
2942
|
+
var m, u;
|
|
2943
|
+
const r = o.prePackCouponRows.flatMap((c) => In(c).map((f) => ({ eventId: c.eventId, outcomeId: f }))), l = new Set(r.map((c) => c.eventId)), s = new Set(r.map((c) => c.outcomeId)), d = new Map(r.map((c, f) => [c.outcomeId, f])), g = {};
|
|
2944
|
+
for (const c of a) {
|
|
2945
|
+
if (!l.has(c.eventId)) continue;
|
|
2946
|
+
const f = c.outcomes.filter((h) => s.has(h.id)).map((h) => ({ ...h, position: d.get(h.id) }));
|
|
2947
|
+
f.length && ((u = g[m = c.eventId]) != null || (g[m] = []), g[c.eventId].push({ ...c, outcomes: f }));
|
|
2948
2948
|
}
|
|
2949
|
-
const
|
|
2949
|
+
const p = e.filter((c) => l.has(c.id)).map((c) => {
|
|
2950
2950
|
var f;
|
|
2951
|
-
return { ...
|
|
2951
|
+
return { ...c, betoffers: (f = g[c.id]) != null ? f : [] };
|
|
2952
2952
|
});
|
|
2953
2953
|
return {
|
|
2954
2954
|
couponId: o.id,
|
|
2955
2955
|
status: o.status,
|
|
2956
2956
|
combinadoTotal: En(o.prePackCouponRows),
|
|
2957
|
-
events:
|
|
2957
|
+
events: p
|
|
2958
2958
|
};
|
|
2959
2959
|
}) : [];
|
|
2960
2960
|
}
|
|
@@ -2975,13 +2975,13 @@ function Tn({
|
|
|
2975
2975
|
onViewMore: o,
|
|
2976
2976
|
className: r = ""
|
|
2977
2977
|
}) {
|
|
2978
|
-
const
|
|
2978
|
+
const l = ae(), s = ne(), d = se(), g = U(null), [p, m] = J({ isStart: !0, isEnd: !1 }), [u, c] = J([]), f = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group/prepackcoupon.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764284658793&prePackCouponTags=CUSTOM", h = () => {
|
|
2979
2979
|
var T;
|
|
2980
|
-
|
|
2980
|
+
l({
|
|
2981
2981
|
element: "evento_combinadas_prev",
|
|
2982
2982
|
label: `${s} - OraculoSeccionEventoCombinadas - Click: Anterior`,
|
|
2983
2983
|
event_type: "click",
|
|
2984
|
-
module_id:
|
|
2984
|
+
module_id: d,
|
|
2985
2985
|
metadata: {
|
|
2986
2986
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2987
2987
|
},
|
|
@@ -2989,47 +2989,47 @@ function Tn({
|
|
|
2989
2989
|
}), (T = g.current) == null || T.prev();
|
|
2990
2990
|
}, x = () => {
|
|
2991
2991
|
var T;
|
|
2992
|
-
|
|
2992
|
+
l({
|
|
2993
2993
|
element: "evento_combinadas_next",
|
|
2994
2994
|
label: `${s} - OraculoSeccionEventoCombinadas - Click: Siguiente`,
|
|
2995
2995
|
event_type: "click",
|
|
2996
|
-
module_id:
|
|
2996
|
+
module_id: d,
|
|
2997
2997
|
metadata: {
|
|
2998
2998
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2999
2999
|
},
|
|
3000
3000
|
tags: { section: "OraculoSeccionEventoCombinadas" }
|
|
3001
3001
|
}), (T = g.current) == null || T.next();
|
|
3002
3002
|
}, C = () => {
|
|
3003
|
-
|
|
3003
|
+
l({
|
|
3004
3004
|
element: "evento_combinadas_ver_mas",
|
|
3005
3005
|
label: `${s} - OraculoSeccionEventoCombinadas - Click: Ver más`,
|
|
3006
3006
|
event_type: "click",
|
|
3007
|
-
module_id:
|
|
3007
|
+
module_id: d,
|
|
3008
3008
|
metadata: {
|
|
3009
3009
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
3010
3010
|
},
|
|
3011
3011
|
tags: { section: "OraculoSeccionEventoCombinadas" }
|
|
3012
3012
|
}), Ra();
|
|
3013
|
-
},
|
|
3014
|
-
async function
|
|
3015
|
-
var T,
|
|
3013
|
+
}, b = ie(() => u.filter((T) => T.combinadoTotal !== null), [u]);
|
|
3014
|
+
async function y() {
|
|
3015
|
+
var T, w, L, q;
|
|
3016
3016
|
try {
|
|
3017
|
-
const v = await (await fetch(f)).json(),
|
|
3018
|
-
if (!
|
|
3017
|
+
const v = await (await fetch(f)).json(), O = (q = (L = (w = (T = v == null ? void 0 : v.group) == null ? void 0 : T.groups) == null ? void 0 : w.map((D) => D.id)) == null ? void 0 : L.filter(Boolean)) == null ? void 0 : q.join(",");
|
|
3018
|
+
if (!O) {
|
|
3019
3019
|
console.error("Could not extract group ID");
|
|
3020
3020
|
return;
|
|
3021
3021
|
}
|
|
3022
|
-
const
|
|
3023
|
-
|
|
3024
|
-
} catch (
|
|
3025
|
-
console.error("loadDataEventSpecial error:",
|
|
3022
|
+
const F = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${O}.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764283566783&prePackCouponTags=CUSTOM`, R = await (await fetch(F)).json();
|
|
3023
|
+
c(On(R.events, R.betOffers, R.prePackCoupons));
|
|
3024
|
+
} catch (I) {
|
|
3025
|
+
console.error("loadDataEventSpecial error:", I);
|
|
3026
3026
|
}
|
|
3027
3027
|
}
|
|
3028
3028
|
Q(() => {
|
|
3029
|
-
|
|
3029
|
+
y();
|
|
3030
3030
|
}, []);
|
|
3031
|
-
const
|
|
3032
|
-
return
|
|
3031
|
+
const N = r || void 0, z = xe("(max-width:950px)");
|
|
3032
|
+
return b.length === 0 ? null : /* @__PURE__ */ t("section", { className: N, style: {
|
|
3033
3033
|
// paddingLeft: 16,
|
|
3034
3034
|
// paddingRight: 16,
|
|
3035
3035
|
width: "100%",
|
|
@@ -3040,47 +3040,47 @@ function Tn({
|
|
|
3040
3040
|
/* @__PURE__ */ _("div", { className: at.controls, children: [
|
|
3041
3041
|
/* @__PURE__ */ _(me, { spacing: 1, columns: "auto auto", children: [
|
|
3042
3042
|
/* @__PURE__ */ t(
|
|
3043
|
-
|
|
3043
|
+
X,
|
|
3044
3044
|
{
|
|
3045
3045
|
ariaLabel: "Anterior",
|
|
3046
3046
|
variant: "secondary",
|
|
3047
3047
|
iconOnly: !0,
|
|
3048
3048
|
leftIcon: /* @__PURE__ */ t(Ae, {}),
|
|
3049
|
-
onClick:
|
|
3050
|
-
disabled:
|
|
3049
|
+
onClick: h,
|
|
3050
|
+
disabled: p.isStart
|
|
3051
3051
|
}
|
|
3052
3052
|
),
|
|
3053
3053
|
/* @__PURE__ */ t(
|
|
3054
|
-
|
|
3054
|
+
X,
|
|
3055
3055
|
{
|
|
3056
3056
|
ariaLabel: "Siguiente",
|
|
3057
3057
|
variant: "secondary",
|
|
3058
3058
|
iconOnly: !0,
|
|
3059
3059
|
rightIcon: /* @__PURE__ */ t(Re, {}),
|
|
3060
3060
|
onClick: x,
|
|
3061
|
-
disabled:
|
|
3061
|
+
disabled: p.isEnd
|
|
3062
3062
|
}
|
|
3063
3063
|
)
|
|
3064
3064
|
] }),
|
|
3065
|
-
/* @__PURE__ */ t(
|
|
3065
|
+
/* @__PURE__ */ t(X, { variant: "secondary", onClick: C, children: "Ver más" })
|
|
3066
3066
|
] })
|
|
3067
3067
|
] }) }),
|
|
3068
3068
|
/* @__PURE__ */ t(
|
|
3069
3069
|
he,
|
|
3070
3070
|
{
|
|
3071
3071
|
ref: g,
|
|
3072
|
-
items:
|
|
3072
|
+
items: b,
|
|
3073
3073
|
perPage: void 0,
|
|
3074
3074
|
gap: "16px",
|
|
3075
3075
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
3076
3076
|
useIndexAsKey: !0,
|
|
3077
3077
|
enableHorizontalWheel: !0,
|
|
3078
|
-
showRightGradient: !
|
|
3078
|
+
showRightGradient: !z,
|
|
3079
3079
|
breakpoints: {
|
|
3080
3080
|
768: { perPage: 1.2, gap: "12px", padding: { left: "24px", right: "24px" } }
|
|
3081
3081
|
},
|
|
3082
3082
|
renderItem: (T) => /* @__PURE__ */ t(Cn, { coupon: T }),
|
|
3083
|
-
onMove: ({ isStart: T, isEnd:
|
|
3083
|
+
onMove: ({ isStart: T, isEnd: w }) => m({ isStart: T, isEnd: w })
|
|
3084
3084
|
}
|
|
3085
3085
|
)
|
|
3086
3086
|
] }) });
|
|
@@ -3128,75 +3128,75 @@ function Be({ children: e }) {
|
|
|
3128
3128
|
const Mn = "oraculo__OraculoSeccionEventoEnVivo-module__padding___Sh8tD", Bn = {
|
|
3129
3129
|
padding: Mn
|
|
3130
3130
|
};
|
|
3131
|
-
function
|
|
3131
|
+
function wt({
|
|
3132
3132
|
events: e,
|
|
3133
3133
|
visibleRange: a,
|
|
3134
3134
|
fetchJerseys: n,
|
|
3135
3135
|
buffer: o = 2,
|
|
3136
3136
|
debounceMs: r = 250
|
|
3137
3137
|
}) {
|
|
3138
|
-
const [
|
|
3138
|
+
const [l, s] = J({}), d = U(/* @__PURE__ */ new Set()), g = U(0), p = U(null), m = U(null);
|
|
3139
3139
|
return Q(() => {
|
|
3140
3140
|
if (!(!e || e.length === 0))
|
|
3141
|
-
return
|
|
3142
|
-
var
|
|
3143
|
-
const
|
|
3144
|
-
let x = f, C =
|
|
3145
|
-
const
|
|
3146
|
-
|
|
3147
|
-
const
|
|
3148
|
-
if (
|
|
3149
|
-
|
|
3150
|
-
const
|
|
3141
|
+
return p.current && clearTimeout(p.current), p.current = setTimeout(() => {
|
|
3142
|
+
var z, T;
|
|
3143
|
+
const u = (z = a.start) != null ? z : 0, c = (T = a.end) != null ? T : 7, f = Math.max(0, u - o), h = Math.min(e.length - 1, c + o);
|
|
3144
|
+
let x = f, C = h;
|
|
3145
|
+
const b = m.current;
|
|
3146
|
+
b && (f > b.end && (x = b.end + 1), h < b.start && (C = b.start - 1)), m.current = { start: f, end: h };
|
|
3147
|
+
const y = e.slice(x, C + 1).map((w) => w == null ? void 0 : w.id).filter((w) => !!w).filter((w) => !d.current.has(w)).filter((w) => !(w in l));
|
|
3148
|
+
if (y.length === 0) return;
|
|
3149
|
+
y.forEach((w) => d.current.add(w));
|
|
3150
|
+
const N = ++g.current;
|
|
3151
3151
|
(async () => {
|
|
3152
3152
|
try {
|
|
3153
|
-
const
|
|
3154
|
-
if (
|
|
3155
|
-
|
|
3153
|
+
const w = await n(y);
|
|
3154
|
+
if (N !== g.current) {
|
|
3155
|
+
y.forEach((q) => d.current.delete(q));
|
|
3156
3156
|
return;
|
|
3157
3157
|
}
|
|
3158
|
-
if (!(
|
|
3159
|
-
|
|
3160
|
-
(q) =>
|
|
3158
|
+
if (!(w != null && w.events)) {
|
|
3159
|
+
y.forEach(
|
|
3160
|
+
(q) => d.current.delete(q)
|
|
3161
3161
|
);
|
|
3162
3162
|
return;
|
|
3163
3163
|
}
|
|
3164
3164
|
s((q) => {
|
|
3165
|
-
const
|
|
3166
|
-
for (const [v,
|
|
3167
|
-
const
|
|
3168
|
-
|
|
3165
|
+
const I = { ...q };
|
|
3166
|
+
for (const [v, O] of Object.entries(w.events)) {
|
|
3167
|
+
const F = Number(v);
|
|
3168
|
+
I[F] || (I[F] = O);
|
|
3169
3169
|
}
|
|
3170
|
-
return
|
|
3170
|
+
return I;
|
|
3171
3171
|
});
|
|
3172
|
-
const
|
|
3173
|
-
Object.keys(
|
|
3172
|
+
const L = new Set(
|
|
3173
|
+
Object.keys(w.events).map(Number)
|
|
3174
3174
|
);
|
|
3175
|
-
|
|
3176
|
-
|
|
3175
|
+
y.forEach((q) => {
|
|
3176
|
+
d.current.delete(q);
|
|
3177
3177
|
});
|
|
3178
|
-
} catch (
|
|
3179
|
-
|
|
3180
|
-
(
|
|
3181
|
-
), console.error("Jersey fetch error",
|
|
3178
|
+
} catch (w) {
|
|
3179
|
+
y.forEach(
|
|
3180
|
+
(L) => d.current.delete(L)
|
|
3181
|
+
), console.error("Jersey fetch error", w);
|
|
3182
3182
|
}
|
|
3183
3183
|
})();
|
|
3184
3184
|
}, r), () => {
|
|
3185
|
-
|
|
3185
|
+
p.current && clearTimeout(p.current);
|
|
3186
3186
|
};
|
|
3187
3187
|
}, [e, a, o, r, n]), {
|
|
3188
|
-
jerseys:
|
|
3189
|
-
isPending:
|
|
3188
|
+
jerseys: l,
|
|
3189
|
+
isPending: d.current
|
|
3190
3190
|
};
|
|
3191
3191
|
}
|
|
3192
3192
|
const An = (e) => {
|
|
3193
3193
|
const a = ["esports", "cyber"];
|
|
3194
3194
|
return e.filter((n) => {
|
|
3195
|
-
var
|
|
3196
|
-
const o = (
|
|
3195
|
+
var l, s;
|
|
3196
|
+
const o = (l = n == null ? void 0 : n.event) == null ? void 0 : l.sport;
|
|
3197
3197
|
if (typeof o != "string" || o !== "FOOTBALL") return !1;
|
|
3198
3198
|
const r = typeof ((s = n == null ? void 0 : n.event) == null ? void 0 : s.group) == "string" ? n.event.group.toLowerCase() : "";
|
|
3199
|
-
return !a.some((
|
|
3199
|
+
return !a.some((d) => r.includes(d));
|
|
3200
3200
|
});
|
|
3201
3201
|
}, Rn = fe.memo(Da);
|
|
3202
3202
|
function Ln({
|
|
@@ -3206,14 +3206,14 @@ function Ln({
|
|
|
3206
3206
|
onViewMore: o,
|
|
3207
3207
|
className: r = ""
|
|
3208
3208
|
}) {
|
|
3209
|
-
const
|
|
3209
|
+
const l = "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 = U(null), [d, g] = J({ isStart: !0, isEnd: !1 }), [p, m] = J(null), [u, c] = J({ start: null, end: null }), [f, h] = J(null), x = U(!1), C = ae(), b = ne(), y = se(), N = U(/* @__PURE__ */ new Map()), z = () => {
|
|
3210
3210
|
var B;
|
|
3211
3211
|
C({
|
|
3212
3212
|
element: "evento_en_vivo_prev",
|
|
3213
|
-
label: `${
|
|
3213
|
+
label: `${b} - OraculoSeccionEventoEnVivo - Anterior`,
|
|
3214
3214
|
target: "prev",
|
|
3215
3215
|
event_type: "click",
|
|
3216
|
-
module_id:
|
|
3216
|
+
module_id: y,
|
|
3217
3217
|
metadata: {
|
|
3218
3218
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
3219
3219
|
},
|
|
@@ -3223,71 +3223,71 @@ function Ln({
|
|
|
3223
3223
|
var B;
|
|
3224
3224
|
C({
|
|
3225
3225
|
element: "evento_en_vivo_next",
|
|
3226
|
-
label: `${
|
|
3226
|
+
label: `${b} - OraculoSeccionEventoEnVivo - Siguiente`,
|
|
3227
3227
|
target: "next",
|
|
3228
3228
|
event_type: "click",
|
|
3229
|
-
module_id:
|
|
3229
|
+
module_id: y,
|
|
3230
3230
|
metadata: {
|
|
3231
3231
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
3232
3232
|
},
|
|
3233
3233
|
tags: { section: "OraculoSeccionEventoEnVivo" }
|
|
3234
3234
|
}), (B = s.current) == null || B.next();
|
|
3235
|
-
},
|
|
3235
|
+
}, w = () => {
|
|
3236
3236
|
C({
|
|
3237
3237
|
element: "evento_en_vivo_view_more",
|
|
3238
|
-
label: `${
|
|
3238
|
+
label: `${b} - OraculoSeccionEventoEnVivo - Ver más`,
|
|
3239
3239
|
target: "ver_mas",
|
|
3240
3240
|
event_type: "click",
|
|
3241
|
-
module_id:
|
|
3241
|
+
module_id: y,
|
|
3242
3242
|
metadata: {
|
|
3243
3243
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
3244
3244
|
},
|
|
3245
3245
|
tags: { section: "OraculoSeccionEventoEnVivo" }
|
|
3246
3246
|
}), Ba();
|
|
3247
|
-
},
|
|
3247
|
+
}, L = Ce(async () => {
|
|
3248
3248
|
var B;
|
|
3249
3249
|
try {
|
|
3250
3250
|
if (!x.current) {
|
|
3251
3251
|
x.current = !0;
|
|
3252
3252
|
try {
|
|
3253
|
-
const Z = await (await fetch("https://api.mktolimpo.com/api/kambi/eventos/orden")).json(),
|
|
3254
|
-
|
|
3253
|
+
const Z = await (await fetch("https://api.mktolimpo.com/api/kambi/eventos/orden")).json(), W = ((B = Z == null ? void 0 : Z.data) == null ? void 0 : B.event_ids) || [], Y = /* @__PURE__ */ new Map();
|
|
3254
|
+
W.forEach((E, i) => Y.set(String(E), i)), N.current = Y;
|
|
3255
3255
|
} catch (j) {
|
|
3256
3256
|
console.error("Order fetch failed, using default sorting", j);
|
|
3257
3257
|
}
|
|
3258
3258
|
}
|
|
3259
|
-
const
|
|
3260
|
-
if (!
|
|
3261
|
-
const
|
|
3262
|
-
if (
|
|
3263
|
-
|
|
3259
|
+
const R = await fetch(l);
|
|
3260
|
+
if (!R.ok) throw new Error("Failed to fetch live events");
|
|
3261
|
+
const D = await R.json(), V = An(D.events);
|
|
3262
|
+
if (N.current.size === 0)
|
|
3263
|
+
m(V);
|
|
3264
3264
|
else {
|
|
3265
|
-
const j = [...
|
|
3266
|
-
const
|
|
3267
|
-
return (
|
|
3265
|
+
const j = [...V].sort((Z, W) => {
|
|
3266
|
+
const Y = N.current.get(String(Z.event.id)), E = N.current.get(String(W.event.id));
|
|
3267
|
+
return (Y !== void 0 ? Y : 1 / 0) - (E !== void 0 ? E : 1 / 0);
|
|
3268
3268
|
});
|
|
3269
|
-
|
|
3269
|
+
m(j);
|
|
3270
3270
|
}
|
|
3271
|
-
} catch (
|
|
3272
|
-
console.error("LoadData Error:",
|
|
3271
|
+
} catch (R) {
|
|
3272
|
+
console.error("LoadData Error:", R);
|
|
3273
3273
|
}
|
|
3274
3274
|
}, []);
|
|
3275
3275
|
Q(() => {
|
|
3276
|
-
|
|
3277
|
-
const B = setInterval(
|
|
3276
|
+
L();
|
|
3277
|
+
const B = setInterval(L, 2e4);
|
|
3278
3278
|
return () => clearInterval(B);
|
|
3279
|
-
}, [
|
|
3280
|
-
const { jerseys: q } =
|
|
3281
|
-
events: (
|
|
3279
|
+
}, [L]);
|
|
3280
|
+
const { jerseys: q } = wt({
|
|
3281
|
+
events: (p == null ? void 0 : p.map((B) => B.event)) || [],
|
|
3282
3282
|
// extract actual event objects
|
|
3283
|
-
visibleRange:
|
|
3283
|
+
visibleRange: u,
|
|
3284
3284
|
fetchJerseys: gt,
|
|
3285
3285
|
buffer: 3,
|
|
3286
3286
|
// same as your previous BUFFER
|
|
3287
3287
|
debounceMs: 300
|
|
3288
3288
|
// same as your previous debouncedVisibleRange
|
|
3289
|
-
}),
|
|
3290
|
-
return !v &&
|
|
3289
|
+
}), I = r || void 0, v = p === null, O = ie(() => v ? Array(4).fill({}) : (p == null ? void 0 : p.slice(0, 20)) || [], [v, p]), F = xe("(max-width:950px)");
|
|
3290
|
+
return !v && p.length === 0 ? null : /* @__PURE__ */ t("section", { className: I, style: {
|
|
3291
3291
|
// paddingLeft: 16,
|
|
3292
3292
|
// paddingRight: 16,
|
|
3293
3293
|
width: "100%",
|
|
@@ -3298,38 +3298,38 @@ function Ln({
|
|
|
3298
3298
|
/* @__PURE__ */ _("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
|
|
3299
3299
|
/* @__PURE__ */ _(me, { spacing: 1, columns: "auto auto", children: [
|
|
3300
3300
|
/* @__PURE__ */ t(
|
|
3301
|
-
|
|
3301
|
+
X,
|
|
3302
3302
|
{
|
|
3303
3303
|
ariaLabel: "Anterior",
|
|
3304
3304
|
variant: "secondary",
|
|
3305
3305
|
iconOnly: !0,
|
|
3306
3306
|
leftIcon: /* @__PURE__ */ t(Ae, {}),
|
|
3307
|
-
onClick:
|
|
3308
|
-
disabled:
|
|
3307
|
+
onClick: z,
|
|
3308
|
+
disabled: d.isStart
|
|
3309
3309
|
}
|
|
3310
3310
|
),
|
|
3311
3311
|
/* @__PURE__ */ t(
|
|
3312
|
-
|
|
3312
|
+
X,
|
|
3313
3313
|
{
|
|
3314
3314
|
ariaLabel: "Siguiente",
|
|
3315
3315
|
variant: "secondary",
|
|
3316
3316
|
iconOnly: !0,
|
|
3317
3317
|
rightIcon: /* @__PURE__ */ t(Re, {}),
|
|
3318
3318
|
onClick: T,
|
|
3319
|
-
disabled:
|
|
3319
|
+
disabled: d.isEnd
|
|
3320
3320
|
}
|
|
3321
3321
|
)
|
|
3322
3322
|
] }),
|
|
3323
|
-
/* @__PURE__ */ t(
|
|
3323
|
+
/* @__PURE__ */ t(X, { variant: "secondary", onClick: w, children: "Ver más" })
|
|
3324
3324
|
] })
|
|
3325
3325
|
] }) }),
|
|
3326
3326
|
/* @__PURE__ */ t(
|
|
3327
3327
|
he,
|
|
3328
3328
|
{
|
|
3329
3329
|
ref: s,
|
|
3330
|
-
items:
|
|
3330
|
+
items: O,
|
|
3331
3331
|
perPage: void 0,
|
|
3332
|
-
showRightGradient: !
|
|
3332
|
+
showRightGradient: !F,
|
|
3333
3333
|
enableHorizontalWheel: !0,
|
|
3334
3334
|
gap: "16px",
|
|
3335
3335
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
@@ -3339,20 +3339,20 @@ function Ln({
|
|
|
3339
3339
|
1024: { gap: "10px", focus: "center", padding: { left: "24px", right: "24px" } }
|
|
3340
3340
|
},
|
|
3341
3341
|
renderItem: (B) => {
|
|
3342
|
-
var
|
|
3343
|
-
const
|
|
3342
|
+
var V;
|
|
3343
|
+
const R = ((V = B.event) == null ? void 0 : V.id) || B.eventId, D = R in q ? q[R] : void 0;
|
|
3344
3344
|
return v ? /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(kn, {}) }) : /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(
|
|
3345
3345
|
Rn,
|
|
3346
3346
|
{
|
|
3347
3347
|
...B,
|
|
3348
|
-
jersey:
|
|
3348
|
+
jersey: D
|
|
3349
3349
|
}
|
|
3350
3350
|
) });
|
|
3351
3351
|
},
|
|
3352
|
-
onMove: ({ isStart: B, isEnd:
|
|
3352
|
+
onMove: ({ isStart: B, isEnd: R, visibleStart: D, visibleEnd: V }) => {
|
|
3353
3353
|
g(
|
|
3354
|
-
(j) => j.isStart === B && j.isEnd ===
|
|
3355
|
-
),
|
|
3354
|
+
(j) => j.isStart === B && j.isEnd === R ? j : { isStart: B, isEnd: R }
|
|
3355
|
+
), c({ start: D, end: V });
|
|
3356
3356
|
}
|
|
3357
3357
|
}
|
|
3358
3358
|
)
|
|
@@ -3397,8 +3397,8 @@ async function Vn(e, a = 2, n) {
|
|
|
3397
3397
|
for (let r = 0; r < e.length; r += a) {
|
|
3398
3398
|
if (n.aborted)
|
|
3399
3399
|
throw new DOMException("Aborted", "AbortError");
|
|
3400
|
-
const
|
|
3401
|
-
|
|
3400
|
+
const l = e.slice(r, r + a), s = await Promise.all(
|
|
3401
|
+
l.map((d) => fetch(d, { signal: n }).then((g) => g.json()))
|
|
3402
3402
|
);
|
|
3403
3403
|
o.push(...s);
|
|
3404
3404
|
}
|
|
@@ -3419,9 +3419,9 @@ function Gn(e) {
|
|
|
3419
3419
|
}
|
|
3420
3420
|
function jn(e, a) {
|
|
3421
3421
|
const o = a.filter((r) => {
|
|
3422
|
-
var
|
|
3423
|
-
return ((
|
|
3424
|
-
}).reduce((r,
|
|
3422
|
+
var l;
|
|
3423
|
+
return ((l = r.betOfferType) == null ? void 0 : l.id) === 2;
|
|
3424
|
+
}).reduce((r, l) => (r[l.eventId] || (r[l.eventId] = []), r[l.eventId].push(l), r), {});
|
|
3425
3425
|
return e.filter((r) => o[r.id]).map((r) => ({
|
|
3426
3426
|
...r,
|
|
3427
3427
|
outcome: o[r.id]
|
|
@@ -3434,128 +3434,128 @@ function Hn({
|
|
|
3434
3434
|
onViewMore: o,
|
|
3435
3435
|
className: r = ""
|
|
3436
3436
|
}) {
|
|
3437
|
-
const
|
|
3438
|
-
|
|
3437
|
+
const l = ae(), s = ne(), d = se(), g = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE", p = U(null), [m, u] = J({ isStart: !0, isEnd: !1 }), [c, f] = J(null), [h, x] = J({ start: null, end: null }), C = "channel_id=1&client_id=200&competitionId=undefined&lang=es_PE&market=PE&useCombined=true", b = () => {
|
|
3438
|
+
l({
|
|
3439
3439
|
element: "evento_semana_view_more",
|
|
3440
3440
|
label: `${s} - OraculoSeccionEventoSemana - Ver más`,
|
|
3441
3441
|
target: "ver_mas",
|
|
3442
3442
|
event_type: "click",
|
|
3443
|
-
module_id:
|
|
3443
|
+
module_id: d,
|
|
3444
3444
|
metadata: {
|
|
3445
3445
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
3446
3446
|
},
|
|
3447
3447
|
tags: { section: "OraculoSeccionEventoSemana" }
|
|
3448
3448
|
}), Aa();
|
|
3449
3449
|
};
|
|
3450
|
-
async function
|
|
3451
|
-
var
|
|
3452
|
-
let v = [],
|
|
3450
|
+
async function y(I) {
|
|
3451
|
+
var F, B;
|
|
3452
|
+
let v = [], O = [];
|
|
3453
3453
|
try {
|
|
3454
|
-
const
|
|
3454
|
+
const R = await fetch(
|
|
3455
3455
|
"https://api.mktolimpo.com/api/kambi/eventos/orden",
|
|
3456
|
-
{ signal:
|
|
3456
|
+
{ signal: I }
|
|
3457
3457
|
);
|
|
3458
|
-
if (
|
|
3459
|
-
const
|
|
3460
|
-
v = ((
|
|
3458
|
+
if (R.ok) {
|
|
3459
|
+
const D = await R.json();
|
|
3460
|
+
v = ((F = D == null ? void 0 : D.data) == null ? void 0 : F.group_ids) || [], O = ((B = D == null ? void 0 : D.data) == null ? void 0 : B.event_ids) || [];
|
|
3461
3461
|
}
|
|
3462
|
-
} catch (
|
|
3463
|
-
|
|
3462
|
+
} catch (R) {
|
|
3463
|
+
R.name !== "AbortError" && console.warn("Order API not available, using default group order");
|
|
3464
3464
|
return;
|
|
3465
3465
|
}
|
|
3466
3466
|
try {
|
|
3467
|
-
const
|
|
3468
|
-
(
|
|
3467
|
+
const V = (await (await fetch(g, { signal: I })).json()).group.groups.find(
|
|
3468
|
+
(i) => i.englishName === "Football"
|
|
3469
3469
|
);
|
|
3470
|
-
if (!
|
|
3470
|
+
if (!V || !Array.isArray(V.groups)) {
|
|
3471
3471
|
console.error("Football groups not found");
|
|
3472
3472
|
return;
|
|
3473
3473
|
}
|
|
3474
|
-
let j = [...
|
|
3474
|
+
let j = [...V.groups];
|
|
3475
3475
|
if (v.length > 0) {
|
|
3476
|
-
const
|
|
3476
|
+
const i = new Map(
|
|
3477
3477
|
v.map((S, k) => [S, k])
|
|
3478
3478
|
);
|
|
3479
3479
|
j.sort((S, k) => {
|
|
3480
|
-
const
|
|
3481
|
-
return
|
|
3480
|
+
const $ = i.get(String(S.id)), M = i.get(String(k.id));
|
|
3481
|
+
return $ !== void 0 && M !== void 0 ? $ - M : $ !== void 0 ? -1 : M !== void 0 ? 1 : 0;
|
|
3482
3482
|
});
|
|
3483
3483
|
}
|
|
3484
|
-
const
|
|
3484
|
+
const W = j.slice(0, 5), Y = (i) => {
|
|
3485
3485
|
const S = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football";
|
|
3486
|
-
if (
|
|
3487
|
-
const k =
|
|
3486
|
+
if (i.groups && i.groups.length > 0) {
|
|
3487
|
+
const k = i.groups[0];
|
|
3488
3488
|
return [
|
|
3489
|
-
`${S}/${
|
|
3489
|
+
`${S}/${i.termKey}/${k.termKey}/all/matches.json?${C}`
|
|
3490
3490
|
];
|
|
3491
3491
|
}
|
|
3492
3492
|
return [
|
|
3493
|
-
`${S}/${
|
|
3493
|
+
`${S}/${i.termKey}/all/all/matches.json?${C}`
|
|
3494
3494
|
];
|
|
3495
|
-
},
|
|
3496
|
-
|
|
3497
|
-
} catch (
|
|
3498
|
-
console.error(
|
|
3495
|
+
}, E = W.flatMap(Y);
|
|
3496
|
+
N(E, O, I);
|
|
3497
|
+
} catch (R) {
|
|
3498
|
+
console.error(R);
|
|
3499
3499
|
}
|
|
3500
3500
|
}
|
|
3501
|
-
async function
|
|
3501
|
+
async function N(I, v, O) {
|
|
3502
3502
|
try {
|
|
3503
|
-
const
|
|
3504
|
-
let B = [],
|
|
3505
|
-
|
|
3506
|
-
Z.events && (B.push(...Z.events.map((
|
|
3507
|
-
...Z.events.flatMap((
|
|
3503
|
+
const F = await Vn(I, 2, O);
|
|
3504
|
+
let B = [], R = [];
|
|
3505
|
+
F.forEach((Z) => {
|
|
3506
|
+
Z.events && (B.push(...Z.events.map((W) => W.event)), R.push(
|
|
3507
|
+
...Z.events.flatMap((W) => W.betOffers || [])
|
|
3508
3508
|
));
|
|
3509
3509
|
});
|
|
3510
|
-
const
|
|
3511
|
-
let j =
|
|
3510
|
+
const D = jn(B, R), V = Wn(Gn(D));
|
|
3511
|
+
let j = V;
|
|
3512
3512
|
if (v.length > 0) {
|
|
3513
3513
|
const Z = new Map(
|
|
3514
|
-
v.map((
|
|
3515
|
-
String(
|
|
3516
|
-
|
|
3514
|
+
v.map((W, Y) => [
|
|
3515
|
+
String(W),
|
|
3516
|
+
Y
|
|
3517
3517
|
])
|
|
3518
3518
|
);
|
|
3519
|
-
j = [...
|
|
3520
|
-
const
|
|
3521
|
-
return
|
|
3519
|
+
j = [...V].sort((W, Y) => {
|
|
3520
|
+
const E = Z.get(String(W.id)), i = Z.get(String(Y.id));
|
|
3521
|
+
return E !== void 0 && i !== void 0 ? E - i : E !== void 0 ? -1 : i !== void 0 ? 1 : 0;
|
|
3522
3522
|
});
|
|
3523
3523
|
}
|
|
3524
|
-
if (
|
|
3524
|
+
if (O.aborted) return;
|
|
3525
3525
|
f(j);
|
|
3526
|
-
} catch (
|
|
3527
|
-
console.error("Error loading events:",
|
|
3526
|
+
} catch (F) {
|
|
3527
|
+
console.error("Error loading events:", F);
|
|
3528
3528
|
}
|
|
3529
3529
|
}
|
|
3530
3530
|
Q(() => {
|
|
3531
3531
|
if (!e) return;
|
|
3532
|
-
const
|
|
3533
|
-
return
|
|
3534
|
-
|
|
3532
|
+
const I = new AbortController();
|
|
3533
|
+
return y(I.signal), () => {
|
|
3534
|
+
I.abort();
|
|
3535
3535
|
};
|
|
3536
3536
|
}, [e]);
|
|
3537
|
-
const
|
|
3537
|
+
const z = r || void 0, T = {
|
|
3538
3538
|
paddingLeft: 0,
|
|
3539
3539
|
width: "100%",
|
|
3540
3540
|
boxSizing: "border-box"
|
|
3541
|
-
}, { jerseys:
|
|
3542
|
-
events:
|
|
3543
|
-
visibleRange:
|
|
3541
|
+
}, { jerseys: w } = wt({
|
|
3542
|
+
events: c,
|
|
3543
|
+
visibleRange: h,
|
|
3544
3544
|
fetchJerseys: gt,
|
|
3545
3545
|
buffer: 2,
|
|
3546
3546
|
debounceMs: 250
|
|
3547
|
-
}),
|
|
3548
|
-
return !
|
|
3547
|
+
}), L = c === null, q = xe("(max-width:950px)");
|
|
3548
|
+
return !L && c.length === 0 ? null : /* @__PURE__ */ t("section", { className: z, style: T, children: /* @__PURE__ */ _("div", { className: `${Ie.wrapper} ${Ie.padding}`, children: [
|
|
3549
3549
|
/* @__PURE__ */ t("div", { className: Ie.container, children: /* @__PURE__ */ _(K, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
3550
3550
|
/* @__PURE__ */ t(ge, { title: "Eventos de la semana" }),
|
|
3551
3551
|
/* @__PURE__ */ t("div", { className: Ie.buttonWrapper, children: /* @__PURE__ */ t(
|
|
3552
|
-
|
|
3552
|
+
X,
|
|
3553
3553
|
{
|
|
3554
3554
|
variant: "secondary",
|
|
3555
3555
|
size: "lg",
|
|
3556
3556
|
fullWidth: !0,
|
|
3557
3557
|
onClick: () => {
|
|
3558
|
-
|
|
3558
|
+
b();
|
|
3559
3559
|
},
|
|
3560
3560
|
children: "Ver más"
|
|
3561
3561
|
}
|
|
@@ -3564,8 +3564,8 @@ function Hn({
|
|
|
3564
3564
|
/* @__PURE__ */ t("div", { style: { minWidth: "180px" }, children: /* @__PURE__ */ t(
|
|
3565
3565
|
he,
|
|
3566
3566
|
{
|
|
3567
|
-
ref:
|
|
3568
|
-
items:
|
|
3567
|
+
ref: p,
|
|
3568
|
+
items: L ? Array(6).fill({}) : c.slice(0, 20),
|
|
3569
3569
|
perPage: 3.5,
|
|
3570
3570
|
gap: "16px",
|
|
3571
3571
|
enableHorizontalWheel: !0,
|
|
@@ -3579,25 +3579,25 @@ function Hn({
|
|
|
3579
3579
|
padding: { left: "8px", right: "8px" }
|
|
3580
3580
|
}
|
|
3581
3581
|
},
|
|
3582
|
-
renderItem: (
|
|
3583
|
-
const v =
|
|
3584
|
-
return
|
|
3582
|
+
renderItem: (I) => {
|
|
3583
|
+
const v = I.id, O = v in w ? w[v] : void 0;
|
|
3584
|
+
return L ? /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Fn, {}) }) : /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Un, { event: I, jersey: O }) });
|
|
3585
3585
|
},
|
|
3586
|
-
onMove: ({ isStart:
|
|
3587
|
-
|
|
3588
|
-
start:
|
|
3589
|
-
end:
|
|
3590
|
-
}), B === "user" &&
|
|
3586
|
+
onMove: ({ isStart: I, isEnd: v, visibleStart: O, visibleEnd: F, source: B }) => {
|
|
3587
|
+
u({ isStart: I, isEnd: v }), x({
|
|
3588
|
+
start: O,
|
|
3589
|
+
end: F
|
|
3590
|
+
}), B === "user" && l({
|
|
3591
3591
|
element: "evento_semana_carousel_slide",
|
|
3592
3592
|
label: `${s} - OraculoSeccionEventoSemana - Slide Carousel`,
|
|
3593
3593
|
target: "carousel",
|
|
3594
3594
|
event_type: "slide",
|
|
3595
|
-
module_id:
|
|
3595
|
+
module_id: d,
|
|
3596
3596
|
metadata: {
|
|
3597
3597
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
3598
|
-
visibleStart:
|
|
3599
|
-
visibleEnd:
|
|
3600
|
-
isStart:
|
|
3598
|
+
visibleStart: O,
|
|
3599
|
+
visibleEnd: F,
|
|
3600
|
+
isStart: I,
|
|
3601
3601
|
isEnd: v
|
|
3602
3602
|
},
|
|
3603
3603
|
tags: { section: "OraculoSeccionEventoSemana" }
|
|
@@ -3617,45 +3617,49 @@ const Kn = -300, Zn = (e) => /[zZ]|[+-]\d{2}:\d{2}$/.test(e), nt = (e) => {
|
|
|
3617
3617
|
/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})(?::(\d{2}))?$/
|
|
3618
3618
|
);
|
|
3619
3619
|
if (!a) return null;
|
|
3620
|
-
const [, n, o, r,
|
|
3620
|
+
const [, n, o, r, l, s, d = "00"] = a;
|
|
3621
3621
|
return Date.UTC(
|
|
3622
3622
|
Number(n),
|
|
3623
3623
|
Number(o) - 1,
|
|
3624
3624
|
Number(r),
|
|
3625
|
-
Number(
|
|
3625
|
+
Number(l) - Kn / 60,
|
|
3626
3626
|
Number(s),
|
|
3627
|
-
Number(
|
|
3627
|
+
Number(d)
|
|
3628
3628
|
);
|
|
3629
3629
|
}, Jn = (e, a) => {
|
|
3630
|
-
var
|
|
3631
|
-
const n = (
|
|
3632
|
-
return !(
|
|
3630
|
+
var d, g, p, m, u, c, f, h, x;
|
|
3631
|
+
const n = (p = (g = (d = e == null ? void 0 : e.fields) != null ? d : e == null ? void 0 : e.parameters) != null ? g : e == null ? void 0 : e.extraFields) != null ? p : [], o = (c = (u = e == null ? void 0 : e.startAt) != null ? u : (m = n.find((C) => (C == null ? void 0 : C.name) === "startAt")) == null ? void 0 : m.value) != null ? c : null, r = (x = (h = e == null ? void 0 : e.endAt) != null ? h : (f = n.find((C) => (C == null ? void 0 : C.name) === "endAt")) == null ? void 0 : f.value) != null ? x : null, l = nt(o), s = nt(r);
|
|
3632
|
+
return !(l != null && a < l || s != null && a >= s);
|
|
3633
3633
|
};
|
|
3634
3634
|
function Xn({
|
|
3635
3635
|
backgrounds: e,
|
|
3636
3636
|
items: a,
|
|
3637
|
-
hideItems: n
|
|
3637
|
+
hideItems: n,
|
|
3638
|
+
user: o = null
|
|
3638
3639
|
}) {
|
|
3639
|
-
var
|
|
3640
|
-
const [
|
|
3641
|
-
var
|
|
3642
|
-
const
|
|
3643
|
-
return
|
|
3644
|
-
}).map(({ item:
|
|
3640
|
+
var Y;
|
|
3641
|
+
const [r, l] = J(0), s = ae(), d = ne(), g = se(), p = U(null), m = U(!1), u = U(!1), [c, f] = J(() => Date.now()), h = le("setDepositActionGlobal"), x = le("setAbrirLiveActionGlobal"), C = (E) => [...E != null ? E : []].map((i, S) => ({ item: i, index: S })).sort((i, S) => {
|
|
3642
|
+
var M, A;
|
|
3643
|
+
const k = (M = i.item.order) != null ? M : Number.MAX_SAFE_INTEGER, $ = (A = S.item.order) != null ? A : Number.MAX_SAFE_INTEGER;
|
|
3644
|
+
return k - $ || i.index - S.index;
|
|
3645
|
+
}).map(({ item: i }) => i), b = ie(() => {
|
|
3646
|
+
const E = o === null ? a.filter((i) => i.label !== "MISIONES") : a;
|
|
3647
|
+
return C(E);
|
|
3648
|
+
}, [a, o]), y = ie(() => {
|
|
3645
3649
|
const E = (e != null ? e : []).filter(
|
|
3646
|
-
(
|
|
3650
|
+
(i) => Jn(i, c)
|
|
3647
3651
|
);
|
|
3648
|
-
return
|
|
3649
|
-
}, [e,
|
|
3652
|
+
return C(E);
|
|
3653
|
+
}, [e, c]), N = y.length || 1, z = !y || y.length === 0, T = !z && y.length > 1, w = !n && b.length > 0;
|
|
3650
3654
|
De("(max-width:950px)");
|
|
3651
|
-
const
|
|
3655
|
+
const L = "#B5B5B5";
|
|
3652
3656
|
Q(() => {
|
|
3653
3657
|
const E = window.setInterval(() => {
|
|
3654
|
-
|
|
3658
|
+
f(Date.now());
|
|
3655
3659
|
}, 3e4);
|
|
3656
3660
|
return () => window.clearInterval(E);
|
|
3657
3661
|
}, []);
|
|
3658
|
-
const
|
|
3662
|
+
const q = {
|
|
3659
3663
|
position: "absolute",
|
|
3660
3664
|
top: "50%",
|
|
3661
3665
|
transform: "translateY(-50%)",
|
|
@@ -3663,22 +3667,22 @@ function Xn({
|
|
|
3663
3667
|
width: 48,
|
|
3664
3668
|
height: 40,
|
|
3665
3669
|
borderRadius: "12px",
|
|
3666
|
-
border: `1.5px solid ${
|
|
3670
|
+
border: `1.5px solid ${L}`,
|
|
3667
3671
|
py: 1,
|
|
3668
3672
|
px: 1.5,
|
|
3669
|
-
color:
|
|
3673
|
+
color: L,
|
|
3670
3674
|
backgroundColor: "transparent",
|
|
3671
3675
|
"&:hover": {
|
|
3672
3676
|
backgroundColor: "rgba(181,181,181,0.08)"
|
|
3673
3677
|
},
|
|
3674
3678
|
"&.Mui-disabled": {
|
|
3675
3679
|
opacity: 0.35,
|
|
3676
|
-
borderColor:
|
|
3677
|
-
color:
|
|
3680
|
+
borderColor: L,
|
|
3681
|
+
color: L,
|
|
3678
3682
|
backgroundColor: "transparent",
|
|
3679
3683
|
cursor: "default"
|
|
3680
3684
|
}
|
|
3681
|
-
},
|
|
3685
|
+
}, I = ie(
|
|
3682
3686
|
() => ({
|
|
3683
3687
|
type: "loop",
|
|
3684
3688
|
perMove: 1,
|
|
@@ -3691,53 +3695,53 @@ function Xn({
|
|
|
3691
3695
|
);
|
|
3692
3696
|
Q(() => {
|
|
3693
3697
|
const E = setTimeout(() => {
|
|
3694
|
-
|
|
3698
|
+
m.current = !0;
|
|
3695
3699
|
}, 500);
|
|
3696
3700
|
return () => clearTimeout(E);
|
|
3697
3701
|
}, []);
|
|
3698
|
-
const
|
|
3699
|
-
var
|
|
3700
|
-
const
|
|
3701
|
-
if (
|
|
3702
|
-
switch (E.preventDefault(), E.stopPropagation(),
|
|
3702
|
+
const v = (E, i, S) => {
|
|
3703
|
+
var A, G;
|
|
3704
|
+
const k = !!i.idFunction, $ = !!i.href;
|
|
3705
|
+
if (k)
|
|
3706
|
+
switch (E.preventDefault(), E.stopPropagation(), i.idFunction) {
|
|
3703
3707
|
case "deposito":
|
|
3704
|
-
|
|
3708
|
+
h == null || h(!0);
|
|
3705
3709
|
return;
|
|
3706
3710
|
case "abrirLive":
|
|
3707
|
-
|
|
3711
|
+
x == null || x();
|
|
3708
3712
|
return;
|
|
3709
3713
|
default:
|
|
3710
3714
|
return;
|
|
3711
3715
|
}
|
|
3712
|
-
if (
|
|
3716
|
+
if (!$) {
|
|
3713
3717
|
E.preventDefault(), E.stopPropagation();
|
|
3714
3718
|
return;
|
|
3715
3719
|
}
|
|
3716
|
-
const
|
|
3717
|
-
|
|
3720
|
+
const M = ((G = (A = i.href) == null ? void 0 : A.split("/").pop()) == null ? void 0 : G.split(".")[0]) || i.label || i.id || `banner_${S + 1}`;
|
|
3721
|
+
s({
|
|
3718
3722
|
element: "banner_carousel",
|
|
3719
|
-
label: `${
|
|
3720
|
-
target:
|
|
3723
|
+
label: `${d} - OraculoSeccionBanners - Banner click: ${M}`,
|
|
3724
|
+
target: i.href || "no_url",
|
|
3721
3725
|
event_type: "click",
|
|
3722
|
-
module_id:
|
|
3726
|
+
module_id: g,
|
|
3723
3727
|
metadata: {
|
|
3724
3728
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
3725
|
-
banner_position:
|
|
3726
|
-
banner_total: (
|
|
3729
|
+
banner_position: S + 1,
|
|
3730
|
+
banner_total: (y == null ? void 0 : y.length) || 0
|
|
3727
3731
|
},
|
|
3728
3732
|
tags: {
|
|
3729
3733
|
banner_type: "carousel",
|
|
3730
3734
|
banner_target: "_self",
|
|
3731
|
-
banner_url:
|
|
3735
|
+
banner_url: i.href || "no_url"
|
|
3732
3736
|
}
|
|
3733
3737
|
});
|
|
3734
|
-
},
|
|
3735
|
-
if (
|
|
3738
|
+
}, O = (E) => {
|
|
3739
|
+
if (s({
|
|
3736
3740
|
element: "banner_menu_item",
|
|
3737
|
-
label: `${
|
|
3741
|
+
label: `${d} - OraculoSeccionBanners - Menu item click: ${E.label || E.id}`,
|
|
3738
3742
|
target: E.href || "action",
|
|
3739
3743
|
event_type: "click",
|
|
3740
|
-
module_id:
|
|
3744
|
+
module_id: g,
|
|
3741
3745
|
metadata: {
|
|
3742
3746
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
3743
3747
|
item_id: E.id
|
|
@@ -3750,39 +3754,39 @@ function Xn({
|
|
|
3750
3754
|
return;
|
|
3751
3755
|
}
|
|
3752
3756
|
E.href && typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(E.href);
|
|
3753
|
-
},
|
|
3754
|
-
|
|
3755
|
-
},
|
|
3756
|
-
|
|
3757
|
+
}, F = 5e3, B = U(null), R = !z && ((Y = y == null ? void 0 : y.length) != null ? Y : 0) > 1, D = () => {
|
|
3758
|
+
B.current != null && (window.clearTimeout(B.current), B.current = null);
|
|
3759
|
+
}, V = () => {
|
|
3760
|
+
D(), R && (B.current = window.setTimeout(() => {
|
|
3757
3761
|
var E;
|
|
3758
|
-
u.current = !0, (E =
|
|
3759
|
-
},
|
|
3762
|
+
u.current = !0, (E = p.current) == null || E.next();
|
|
3763
|
+
}, F));
|
|
3760
3764
|
};
|
|
3761
|
-
Q(() => (
|
|
3762
|
-
const
|
|
3763
|
-
var
|
|
3764
|
-
E.preventDefault(), E.stopPropagation(),
|
|
3765
|
-
}, j = (E) => {
|
|
3766
|
-
var z;
|
|
3767
|
-
E.preventDefault(), E.stopPropagation(), A(), (z = g.current) == null || z.next();
|
|
3765
|
+
Q(() => (V(), () => D()), [R, F]);
|
|
3766
|
+
const j = (E) => {
|
|
3767
|
+
var i;
|
|
3768
|
+
E.preventDefault(), E.stopPropagation(), D(), (i = p.current) == null || i.prev();
|
|
3768
3769
|
}, Z = (E) => {
|
|
3769
|
-
var
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
i(
|
|
3770
|
+
var i;
|
|
3771
|
+
E.preventDefault(), E.stopPropagation(), D(), (i = p.current) == null || i.next();
|
|
3772
|
+
}, W = (E) => {
|
|
3773
|
+
var k, $, M, A;
|
|
3774
|
+
const i = (E % N + N) % N;
|
|
3775
|
+
if (!m.current) return;
|
|
3776
|
+
const S = (k = y == null ? void 0 : y[i]) != null && k.href ? ((M = ($ = y[i].href) == null ? void 0 : $.split("/").pop()) == null ? void 0 : M.split(".")[0]) || `banner_${i + 1}` : `banner_${i + 1}`;
|
|
3777
|
+
s({
|
|
3774
3778
|
element: "banner_carousel",
|
|
3775
|
-
label: `${
|
|
3776
|
-
target: ((
|
|
3779
|
+
label: `${d} - OraculoSeccionBanners - Banner view: Slide ${i + 1} - ${S}`,
|
|
3780
|
+
target: ((A = y == null ? void 0 : y[i]) == null ? void 0 : A.href) || "no_url",
|
|
3777
3781
|
event_type: "view",
|
|
3778
|
-
module_id:
|
|
3782
|
+
module_id: g,
|
|
3779
3783
|
metadata: {
|
|
3780
3784
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
3781
|
-
slide_index:
|
|
3782
|
-
total_slides:
|
|
3785
|
+
slide_index: i + 1,
|
|
3786
|
+
total_slides: N,
|
|
3783
3787
|
interaction_type: "manual_slide"
|
|
3784
3788
|
},
|
|
3785
|
-
tags: { banner_position: String(
|
|
3789
|
+
tags: { banner_position: String(i + 1) }
|
|
3786
3790
|
});
|
|
3787
3791
|
};
|
|
3788
3792
|
return /* @__PURE__ */ _(
|
|
@@ -3792,7 +3796,7 @@ function Xn({
|
|
|
3792
3796
|
sx: {
|
|
3793
3797
|
position: "relative",
|
|
3794
3798
|
overflow: "visible",
|
|
3795
|
-
pb:
|
|
3799
|
+
pb: w ? { xs: "40px", sm: 0 } : 0
|
|
3796
3800
|
},
|
|
3797
3801
|
children: [
|
|
3798
3802
|
/* @__PURE__ */ _(
|
|
@@ -3822,36 +3826,36 @@ function Xn({
|
|
|
3822
3826
|
children: /* @__PURE__ */ t(
|
|
3823
3827
|
he,
|
|
3824
3828
|
{
|
|
3825
|
-
ref:
|
|
3826
|
-
items:
|
|
3829
|
+
ref: p,
|
|
3830
|
+
items: y,
|
|
3827
3831
|
perPage: 1,
|
|
3828
3832
|
gap: "0px",
|
|
3829
3833
|
enableHorizontalWheel: !0,
|
|
3830
|
-
options:
|
|
3831
|
-
onMove: ({ index: E, source:
|
|
3832
|
-
const
|
|
3833
|
-
|
|
3834
|
-
const
|
|
3835
|
-
u.current = !1,
|
|
3834
|
+
options: I,
|
|
3835
|
+
onMove: ({ index: E, source: i }) => {
|
|
3836
|
+
const S = (E % N + N) % N;
|
|
3837
|
+
l(S);
|
|
3838
|
+
const k = u.current;
|
|
3839
|
+
u.current = !1, i === "user" && (V(), k || W(E));
|
|
3836
3840
|
},
|
|
3837
|
-
renderItem: (E,
|
|
3838
|
-
var
|
|
3839
|
-
const
|
|
3841
|
+
renderItem: (E, i) => {
|
|
3842
|
+
var A, G, te;
|
|
3843
|
+
const S = !!E.idFunction, k = !!E.href, $ = k && !S, M = S || k;
|
|
3840
3844
|
return /* @__PURE__ */ _(
|
|
3841
3845
|
ee,
|
|
3842
3846
|
{
|
|
3843
|
-
component:
|
|
3844
|
-
href:
|
|
3845
|
-
target:
|
|
3846
|
-
rel:
|
|
3847
|
-
onClick: (
|
|
3847
|
+
component: $ ? "a" : "div",
|
|
3848
|
+
href: $ ? E.href : void 0,
|
|
3849
|
+
target: $ ? (A = E.target) != null ? A : "_self" : void 0,
|
|
3850
|
+
rel: $ && E.target === "_blank" ? "noopener noreferrer" : void 0,
|
|
3851
|
+
onClick: (oe) => v(oe, E, i),
|
|
3848
3852
|
sx: {
|
|
3849
3853
|
position: "relative",
|
|
3850
3854
|
width: "100%",
|
|
3851
3855
|
height: "100%",
|
|
3852
3856
|
display: "block",
|
|
3853
3857
|
textDecoration: "none",
|
|
3854
|
-
cursor:
|
|
3858
|
+
cursor: M ? "pointer" : "default"
|
|
3855
3859
|
},
|
|
3856
3860
|
children: [
|
|
3857
3861
|
/* @__PURE__ */ _(ee, { component: "picture", sx: { position: "absolute", inset: 0, lineHeight: 0 }, children: [
|
|
@@ -3861,7 +3865,7 @@ function Xn({
|
|
|
3861
3865
|
ee,
|
|
3862
3866
|
{
|
|
3863
3867
|
component: "img",
|
|
3864
|
-
src: (
|
|
3868
|
+
src: (te = (G = E.fallbackSrc) != null ? G : E.desktopSrc) != null ? te : "",
|
|
3865
3869
|
alt: "",
|
|
3866
3870
|
"aria-hidden": !0,
|
|
3867
3871
|
loading: "lazy",
|
|
@@ -3901,14 +3905,14 @@ function Xn({
|
|
|
3901
3905
|
)
|
|
3902
3906
|
}
|
|
3903
3907
|
),
|
|
3904
|
-
|
|
3908
|
+
T && /* @__PURE__ */ _(pe, { children: [
|
|
3905
3909
|
/* @__PURE__ */ t(
|
|
3906
3910
|
Ke,
|
|
3907
3911
|
{
|
|
3908
3912
|
"aria-label": "Anterior",
|
|
3909
|
-
onClick:
|
|
3913
|
+
onClick: j,
|
|
3910
3914
|
sx: {
|
|
3911
|
-
...
|
|
3915
|
+
...q,
|
|
3912
3916
|
left: "120px",
|
|
3913
3917
|
"@media (max-width:1024px)": { left: 24 },
|
|
3914
3918
|
"@media (max-width:786px)": { display: "none" }
|
|
@@ -3920,9 +3924,9 @@ function Xn({
|
|
|
3920
3924
|
Ke,
|
|
3921
3925
|
{
|
|
3922
3926
|
"aria-label": "Siguiente",
|
|
3923
|
-
onClick:
|
|
3927
|
+
onClick: Z,
|
|
3924
3928
|
sx: {
|
|
3925
|
-
...
|
|
3929
|
+
...q,
|
|
3926
3930
|
right: "120px",
|
|
3927
3931
|
"@media (max-width:1024px)": { right: 24 },
|
|
3928
3932
|
"@media (max-width:786px)": { display: "none" }
|
|
@@ -3946,18 +3950,18 @@ function Xn({
|
|
|
3946
3950
|
children: /* @__PURE__ */ t(
|
|
3947
3951
|
dt,
|
|
3948
3952
|
{
|
|
3949
|
-
total:
|
|
3950
|
-
active:
|
|
3951
|
-
durationMs:
|
|
3953
|
+
total: N,
|
|
3954
|
+
active: r,
|
|
3955
|
+
durationMs: F
|
|
3952
3956
|
},
|
|
3953
|
-
`${
|
|
3957
|
+
`${r}-${N}`
|
|
3954
3958
|
)
|
|
3955
3959
|
}
|
|
3956
3960
|
)
|
|
3957
3961
|
]
|
|
3958
3962
|
}
|
|
3959
3963
|
),
|
|
3960
|
-
|
|
3964
|
+
w && /* @__PURE__ */ t(
|
|
3961
3965
|
ee,
|
|
3962
3966
|
{
|
|
3963
3967
|
sx: {
|
|
@@ -3975,7 +3979,7 @@ function Xn({
|
|
|
3975
3979
|
boxShadow: "0 10px 24px rgba(0,0,0,.35)",
|
|
3976
3980
|
zIndex: 3
|
|
3977
3981
|
},
|
|
3978
|
-
children:
|
|
3982
|
+
children: b == null ? void 0 : b.map((E) => /* @__PURE__ */ _(
|
|
3979
3983
|
ee,
|
|
3980
3984
|
{
|
|
3981
3985
|
sx: {
|
|
@@ -4020,7 +4024,7 @@ function Xn({
|
|
|
4020
4024
|
}
|
|
4021
4025
|
}
|
|
4022
4026
|
},
|
|
4023
|
-
onClick: () =>
|
|
4027
|
+
onClick: () => O(E),
|
|
4024
4028
|
children: [
|
|
4025
4029
|
E.icon && /* @__PURE__ */ _(
|
|
4026
4030
|
ee,
|
|
@@ -4070,7 +4074,7 @@ function Xn({
|
|
|
4070
4074
|
}
|
|
4071
4075
|
),
|
|
4072
4076
|
/* @__PURE__ */ t(
|
|
4073
|
-
|
|
4077
|
+
lt,
|
|
4074
4078
|
{
|
|
4075
4079
|
className: "menu-text",
|
|
4076
4080
|
sx: {
|
|
@@ -4109,7 +4113,7 @@ function Qn({
|
|
|
4109
4113
|
const n = Math.ceil(a.length / 2), o = a.slice(0, n), r = a.slice(n);
|
|
4110
4114
|
return /* @__PURE__ */ _(ee, { component: "section", "aria-labelledby": "mp-title", sx: { color: "#fff" }, children: [
|
|
4111
4115
|
/* @__PURE__ */ t(
|
|
4112
|
-
|
|
4116
|
+
lt,
|
|
4113
4117
|
{
|
|
4114
4118
|
id: "mp-title",
|
|
4115
4119
|
variant: "h6",
|
|
@@ -4145,7 +4149,7 @@ function Qn({
|
|
|
4145
4149
|
alignItems: "center",
|
|
4146
4150
|
gap: { xs: 2, md: 3 },
|
|
4147
4151
|
flexWrap: "wrap",
|
|
4148
|
-
children: o.map((
|
|
4152
|
+
children: o.map((l, s) => /* @__PURE__ */ t(Ze, { ...l }, `${l.alt}-${l.src}-${s}`))
|
|
4149
4153
|
}
|
|
4150
4154
|
),
|
|
4151
4155
|
/* @__PURE__ */ t(
|
|
@@ -4156,7 +4160,7 @@ function Qn({
|
|
|
4156
4160
|
alignItems: "center",
|
|
4157
4161
|
gap: { xs: 2, md: 3 },
|
|
4158
4162
|
flexWrap: "wrap",
|
|
4159
|
-
children: r.map((
|
|
4163
|
+
children: r.map((l, s) => /* @__PURE__ */ t(Ze, { ...l }, `${l.alt}-${l.src}-${s}`))
|
|
4160
4164
|
}
|
|
4161
4165
|
)
|
|
4162
4166
|
] })
|
|
@@ -4183,7 +4187,7 @@ function It({
|
|
|
4183
4187
|
e
|
|
4184
4188
|
] });
|
|
4185
4189
|
}
|
|
4186
|
-
function
|
|
4190
|
+
function wo({
|
|
4187
4191
|
docId: e = "Landing: home",
|
|
4188
4192
|
moduleId: a = 301,
|
|
4189
4193
|
children: n
|
|
@@ -5577,15 +5581,15 @@ function Oe(e) {
|
|
|
5577
5581
|
var o, r;
|
|
5578
5582
|
return ((o = a.order) != null ? o : 0) - ((r = n.order) != null ? r : 0);
|
|
5579
5583
|
}).map((a, n) => ({ ...a, order: n + 1 })) : e && Array.isArray(e.components) ? e.components.map((a, n) => {
|
|
5580
|
-
var o, r,
|
|
5584
|
+
var o, r, l, s, d;
|
|
5581
5585
|
return {
|
|
5582
5586
|
id: (o = a.id) != null ? o : n + 1,
|
|
5583
5587
|
title: (r = a.title) != null ? r : "",
|
|
5584
5588
|
componentKey: a.componentKey,
|
|
5585
|
-
visible: (
|
|
5589
|
+
visible: (l = a.visible) != null ? l : !0,
|
|
5586
5590
|
order: n + 1,
|
|
5587
5591
|
props: (s = a.props) != null ? s : {},
|
|
5588
|
-
apiUrl: (
|
|
5592
|
+
apiUrl: (d = a.apiUrl) != null ? d : "",
|
|
5589
5593
|
dataMode: a.dataMode,
|
|
5590
5594
|
variableName: a.variableName,
|
|
5591
5595
|
manualItems: a.manualItems,
|
|
@@ -5643,261 +5647,261 @@ const rt = [
|
|
|
5643
5647
|
moduleId: n = 301,
|
|
5644
5648
|
db: o,
|
|
5645
5649
|
extras: r,
|
|
5646
|
-
loader:
|
|
5650
|
+
loader: l,
|
|
5647
5651
|
disableWrapper: s = !1
|
|
5648
5652
|
}) => {
|
|
5649
|
-
const
|
|
5653
|
+
const d = ie(() => oo(r), [r]), g = l || d.loader, [p, m] = J([]), [u, c] = J(!1), [f, h] = J({}), [x, C] = J({}), [b, y] = J({}), N = De("(min-width:1024px)"), z = ie(
|
|
5650
5654
|
() => Oe(Pe),
|
|
5651
5655
|
[]
|
|
5652
|
-
), T = (
|
|
5653
|
-
(S) => S.id ===
|
|
5654
|
-
),
|
|
5655
|
-
const
|
|
5656
|
-
return
|
|
5657
|
-
}, [
|
|
5658
|
-
const S =
|
|
5656
|
+
), T = (i) => z.find(
|
|
5657
|
+
(S) => S.id === i.id || S.componentKey === i.componentKey
|
|
5658
|
+
), w = (i) => Array.isArray(i) ? i.map((S) => Number(S)).filter((S) => !Number.isNaN(S)) : [], L = ie(() => {
|
|
5659
|
+
const i = d.user;
|
|
5660
|
+
return w(i == null ? void 0 : i.groups);
|
|
5661
|
+
}, [d]), q = (i) => {
|
|
5662
|
+
const S = i.manualScalarFields;
|
|
5659
5663
|
if (!Array.isArray(S)) return [];
|
|
5660
5664
|
const k = S.find(
|
|
5661
|
-
(
|
|
5665
|
+
(A) => String((A == null ? void 0 : A.name) || "").trim().toLowerCase() === "groups"
|
|
5662
5666
|
);
|
|
5663
5667
|
if (!k) return [];
|
|
5664
|
-
const
|
|
5665
|
-
if (
|
|
5666
|
-
if (Array.isArray(
|
|
5667
|
-
return
|
|
5668
|
-
const
|
|
5669
|
-
return
|
|
5670
|
-
},
|
|
5671
|
-
const k = q(
|
|
5668
|
+
const $ = k.value;
|
|
5669
|
+
if ($ == null) return [];
|
|
5670
|
+
if (Array.isArray($))
|
|
5671
|
+
return $.map((A) => Number(String(A).trim())).filter((A) => !Number.isNaN(A));
|
|
5672
|
+
const M = String($).trim();
|
|
5673
|
+
return M ? M.split(",").map((A) => Number(A.trim())).filter((A) => !Number.isNaN(A)) : [];
|
|
5674
|
+
}, I = (i, S) => {
|
|
5675
|
+
const k = q(i);
|
|
5672
5676
|
if (k.length === 0) return !0;
|
|
5673
5677
|
if (!Array.isArray(S) || S.length === 0) return !1;
|
|
5674
|
-
const
|
|
5675
|
-
return k.some((
|
|
5678
|
+
const $ = new Set(S);
|
|
5679
|
+
return k.some((M) => $.has(M));
|
|
5676
5680
|
};
|
|
5677
5681
|
Q(() => {
|
|
5678
5682
|
if (e) return;
|
|
5679
5683
|
if (!o) {
|
|
5680
|
-
console.warn("[landing] sin db -> fallback json"),
|
|
5684
|
+
console.warn("[landing] sin db -> fallback json"), m(Oe(Pe));
|
|
5681
5685
|
return;
|
|
5682
5686
|
}
|
|
5683
|
-
const
|
|
5684
|
-
console.warn("[landing] FALLBACK:", k,
|
|
5687
|
+
const i = (k, $) => {
|
|
5688
|
+
console.warn("[landing] FALLBACK:", k, $ != null ? $ : ""), m(Oe(Pe)), c(!1);
|
|
5685
5689
|
};
|
|
5686
|
-
|
|
5690
|
+
c(!0);
|
|
5687
5691
|
const S = zt(
|
|
5688
5692
|
Pt(o, "landings", a),
|
|
5689
5693
|
(k) => {
|
|
5690
5694
|
try {
|
|
5691
5695
|
if (!k.exists()) {
|
|
5692
|
-
|
|
5696
|
+
i(`doc landings/${a} no existe`);
|
|
5693
5697
|
return;
|
|
5694
5698
|
}
|
|
5695
|
-
const
|
|
5696
|
-
if (
|
|
5697
|
-
|
|
5699
|
+
const $ = k.data(), M = Oe($);
|
|
5700
|
+
if (!M.length) {
|
|
5701
|
+
i("JSON inválido o sin secciones normalizables", $);
|
|
5698
5702
|
return;
|
|
5699
5703
|
}
|
|
5700
|
-
console.log("[landing] Firestore OK (json grande):",
|
|
5701
|
-
} catch (
|
|
5702
|
-
|
|
5704
|
+
console.log("[landing] Firestore OK (json grande):", $), m(M);
|
|
5705
|
+
} catch ($) {
|
|
5706
|
+
i("error procesando snapshot", $);
|
|
5703
5707
|
} finally {
|
|
5704
|
-
|
|
5708
|
+
c(!1);
|
|
5705
5709
|
}
|
|
5706
5710
|
},
|
|
5707
5711
|
(k) => {
|
|
5708
|
-
|
|
5712
|
+
i("error onSnapshot", k);
|
|
5709
5713
|
}
|
|
5710
5714
|
);
|
|
5711
5715
|
return () => S();
|
|
5712
|
-
}, [e, a, o]), Q(() => (Xa(
|
|
5713
|
-
(e ? e.slice() :
|
|
5714
|
-
}, [e,
|
|
5715
|
-
const v = async (
|
|
5716
|
-
if (rt.includes(
|
|
5716
|
+
}, [e, a, o]), Q(() => (Xa(d), () => Ya()), [d]), Q(() => {
|
|
5717
|
+
(e ? e.slice() : p.slice()).map((k) => k.componentKey).filter((k) => !!k).length;
|
|
5718
|
+
}, [e, p]);
|
|
5719
|
+
const v = async (i) => {
|
|
5720
|
+
if (rt.includes(i.componentKey))
|
|
5717
5721
|
return {
|
|
5718
5722
|
items: [],
|
|
5719
5723
|
events: [],
|
|
5720
5724
|
data: {}
|
|
5721
5725
|
};
|
|
5722
|
-
const S = (
|
|
5726
|
+
const S = (i.apiUrl || "").trim();
|
|
5723
5727
|
if (!S) return;
|
|
5724
|
-
const k =
|
|
5725
|
-
let
|
|
5728
|
+
const k = i.apiMethod || "GET", $ = i.apiParams || [];
|
|
5729
|
+
let M = S, A, G;
|
|
5726
5730
|
if (k === "GET") {
|
|
5727
|
-
const
|
|
5731
|
+
const oe = new URL(
|
|
5728
5732
|
S,
|
|
5729
5733
|
typeof window == "undefined" ? "http://localhost" : window.location.origin
|
|
5730
5734
|
);
|
|
5731
|
-
for (const
|
|
5732
|
-
|
|
5733
|
-
|
|
5735
|
+
for (const re of $)
|
|
5736
|
+
re.key && oe.searchParams.append(re.key, re.value);
|
|
5737
|
+
M = oe.toString();
|
|
5734
5738
|
} else {
|
|
5735
|
-
const
|
|
5736
|
-
for (const
|
|
5737
|
-
|
|
5738
|
-
|
|
5739
|
+
const oe = new URLSearchParams();
|
|
5740
|
+
for (const re of $)
|
|
5741
|
+
re.key && oe.append(re.key, re.value);
|
|
5742
|
+
A = oe.toString(), G = {
|
|
5739
5743
|
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
|
|
5740
5744
|
};
|
|
5741
5745
|
}
|
|
5742
|
-
const te = await fetch(
|
|
5746
|
+
const te = await fetch(M, {
|
|
5743
5747
|
method: k,
|
|
5744
|
-
headers:
|
|
5745
|
-
body:
|
|
5748
|
+
headers: G,
|
|
5749
|
+
body: A
|
|
5746
5750
|
});
|
|
5747
|
-
if (!te.ok) throw new ot(te.status,
|
|
5751
|
+
if (!te.ok) throw new ot(te.status, M, te.statusText);
|
|
5748
5752
|
return te.json();
|
|
5749
|
-
},
|
|
5750
|
-
() => e ? e.slice() :
|
|
5751
|
-
[e,
|
|
5752
|
-
),
|
|
5753
|
+
}, O = ie(
|
|
5754
|
+
() => e ? e.slice() : p.slice(),
|
|
5755
|
+
[e, p]
|
|
5756
|
+
), F = fe.useRef(/* @__PURE__ */ new Set());
|
|
5753
5757
|
Q(() => {
|
|
5754
|
-
const
|
|
5755
|
-
if (
|
|
5756
|
-
for (const { s: S, url: k } of
|
|
5757
|
-
const
|
|
5758
|
-
|
|
5758
|
+
const i = O.map((S) => ({ s: S, url: (S.apiUrl || "").trim() })).filter(({ url: S }) => !!S);
|
|
5759
|
+
if (i.length)
|
|
5760
|
+
for (const { s: S, url: k } of i) {
|
|
5761
|
+
const $ = `${S.id}|${k}`;
|
|
5762
|
+
F.current.has($) || (F.current.add($), C((M) => ({ ...M, [S.id]: !0 })), y((M) => ({ ...M, [S.id]: "" })), (async () => {
|
|
5759
5763
|
try {
|
|
5760
|
-
const
|
|
5761
|
-
|
|
5762
|
-
} catch (
|
|
5763
|
-
let
|
|
5764
|
-
|
|
5764
|
+
const M = await v(S);
|
|
5765
|
+
h((A) => ({ ...A, [S.id]: M }));
|
|
5766
|
+
} catch (M) {
|
|
5767
|
+
let A = "Error desconocido";
|
|
5768
|
+
M instanceof ot ? A = `Error HTTP ${M.status} (${M.statusText}) en ${M.url}` : M instanceof SyntaxError ? A = "Respuesta no es JSON válido" : M instanceof TypeError ? A = "Fallo de red / CORS / conexión" : typeof M == "string" && (A = M.toString()), y((G) => ({ ...G, [S.id]: A }));
|
|
5765
5769
|
} finally {
|
|
5766
|
-
C((
|
|
5770
|
+
C((M) => ({ ...M, [S.id]: !1 }));
|
|
5767
5771
|
}
|
|
5768
5772
|
})());
|
|
5769
5773
|
}
|
|
5770
|
-
}, [
|
|
5771
|
-
const B =
|
|
5772
|
-
() =>
|
|
5773
|
-
[
|
|
5774
|
-
),
|
|
5774
|
+
}, [O]);
|
|
5775
|
+
const B = ie(
|
|
5776
|
+
() => O.filter((i) => i.visible).filter((i) => I(i, L)).sort((i, S) => i.order - S.order),
|
|
5777
|
+
[O, L]
|
|
5778
|
+
), R = (i) => Array.isArray(i) ? i.map((S) => {
|
|
5775
5779
|
const k = {};
|
|
5776
|
-
for (const
|
|
5777
|
-
const
|
|
5778
|
-
if (
|
|
5779
|
-
const
|
|
5780
|
-
if (
|
|
5781
|
-
const
|
|
5782
|
-
Number.isNaN(
|
|
5780
|
+
for (const $ of S.fields || []) {
|
|
5781
|
+
const M = ($.type || "string").toLowerCase();
|
|
5782
|
+
if (M === "number") {
|
|
5783
|
+
const A = String($.value || "").trim();
|
|
5784
|
+
if (A !== "") {
|
|
5785
|
+
const G = Number(A);
|
|
5786
|
+
Number.isNaN(G) || (k[$.name] = G);
|
|
5783
5787
|
}
|
|
5784
|
-
} else if (
|
|
5785
|
-
k[
|
|
5786
|
-
else if (
|
|
5787
|
-
const
|
|
5788
|
-
if (
|
|
5788
|
+
} else if (M === "boolean")
|
|
5789
|
+
k[$.name] = String($.value).toLowerCase() === "true";
|
|
5790
|
+
else if (M === "function") {
|
|
5791
|
+
const A = String($.value || "").trim();
|
|
5792
|
+
if (A)
|
|
5789
5793
|
try {
|
|
5790
|
-
const
|
|
5791
|
-
k[
|
|
5792
|
-
} catch (
|
|
5793
|
-
console.error(`❌ Error creando función en item '${
|
|
5794
|
+
const G = new Function(A);
|
|
5795
|
+
k[$.name] = G;
|
|
5796
|
+
} catch (G) {
|
|
5797
|
+
console.error(`❌ Error creando función en item '${$.name}':`, G);
|
|
5794
5798
|
}
|
|
5795
5799
|
} else
|
|
5796
|
-
k[
|
|
5800
|
+
k[$.name] = $.value;
|
|
5797
5801
|
}
|
|
5798
5802
|
return k;
|
|
5799
|
-
}) : [],
|
|
5803
|
+
}) : [], D = (i) => {
|
|
5800
5804
|
const S = {};
|
|
5801
|
-
if (!Array.isArray(
|
|
5802
|
-
for (const k of
|
|
5805
|
+
if (!Array.isArray(i)) return S;
|
|
5806
|
+
for (const k of i) {
|
|
5803
5807
|
if (!k.name) continue;
|
|
5804
|
-
const
|
|
5805
|
-
if (
|
|
5806
|
-
const
|
|
5807
|
-
if (
|
|
5808
|
-
const
|
|
5809
|
-
Number.isNaN(
|
|
5808
|
+
const $ = (k.type || "string").toLowerCase();
|
|
5809
|
+
if ($ === "number") {
|
|
5810
|
+
const M = String(k.value || "").trim();
|
|
5811
|
+
if (M !== "") {
|
|
5812
|
+
const A = Number(M);
|
|
5813
|
+
Number.isNaN(A) || (S[k.name] = A);
|
|
5810
5814
|
}
|
|
5811
|
-
} else if (
|
|
5815
|
+
} else if ($ === "boolean")
|
|
5812
5816
|
S[k.name] = String(k.value).toLowerCase() === "true";
|
|
5813
|
-
else if (
|
|
5814
|
-
const
|
|
5815
|
-
if (
|
|
5817
|
+
else if ($ === "function") {
|
|
5818
|
+
const M = String(k.value || "").trim();
|
|
5819
|
+
if (M)
|
|
5816
5820
|
try {
|
|
5817
|
-
const
|
|
5818
|
-
S[k.name] =
|
|
5819
|
-
} catch (
|
|
5820
|
-
console.error(`❌ Error creando función en item '${k.name}':`,
|
|
5821
|
+
const A = new Function(M);
|
|
5822
|
+
S[k.name] = A;
|
|
5823
|
+
} catch (A) {
|
|
5824
|
+
console.error(`❌ Error creando función en item '${k.name}':`, A);
|
|
5821
5825
|
}
|
|
5822
5826
|
} else
|
|
5823
5827
|
S[k.name] = k.value;
|
|
5824
5828
|
}
|
|
5825
5829
|
return S;
|
|
5826
|
-
},
|
|
5827
|
-
const
|
|
5830
|
+
}, V = (i, S, k, $) => {
|
|
5831
|
+
const M = k ? { ...k } : {}, A = ($ || "items").trim() || "items";
|
|
5828
5832
|
if (S)
|
|
5829
|
-
return
|
|
5830
|
-
const
|
|
5831
|
-
if (Array.isArray(
|
|
5832
|
-
return
|
|
5833
|
-
if (
|
|
5834
|
-
const te =
|
|
5835
|
-
return Array.isArray(te.lobby) ? (
|
|
5833
|
+
return M[A] = S.arr || [], M;
|
|
5834
|
+
const G = i;
|
|
5835
|
+
if (Array.isArray(G))
|
|
5836
|
+
return M[A] = G, M;
|
|
5837
|
+
if (G && typeof G == "object") {
|
|
5838
|
+
const te = G;
|
|
5839
|
+
return Array.isArray(te.lobby) ? (M[A] = te.lobby, M) : Array.isArray(te.items) ? (M[A] = te.items, M) : (M[A] = G, M);
|
|
5836
5840
|
}
|
|
5837
|
-
return
|
|
5838
|
-
}, j = (
|
|
5839
|
-
var
|
|
5840
|
-
const S = !!((
|
|
5841
|
-
let
|
|
5842
|
-
const
|
|
5843
|
-
if (rt.includes(
|
|
5844
|
-
return { items: k, ...
|
|
5845
|
-
if (
|
|
5846
|
-
|
|
5847
|
-
else if (
|
|
5848
|
-
const
|
|
5849
|
-
if (
|
|
5841
|
+
return M[A] = [], M;
|
|
5842
|
+
}, j = (i) => {
|
|
5843
|
+
var A;
|
|
5844
|
+
const S = !!((A = i.apiUrl) != null && A.trim()), k = S ? f[i.id] : void 0;
|
|
5845
|
+
let $ = i.props ? { ...i.props } : {};
|
|
5846
|
+
const M = D(i.manualScalarFields);
|
|
5847
|
+
if (rt.includes(i.componentKey))
|
|
5848
|
+
return { items: k, ...$, ...M };
|
|
5849
|
+
if ($ = { ...$, ...M }, S)
|
|
5850
|
+
$ = V(k, null, $);
|
|
5851
|
+
else if (i.dataMode === "manual") {
|
|
5852
|
+
const G = R(i.manualItems);
|
|
5853
|
+
if ($ = V(
|
|
5850
5854
|
null,
|
|
5851
|
-
{ arr:
|
|
5852
|
-
|
|
5853
|
-
|
|
5854
|
-
),
|
|
5855
|
-
const te =
|
|
5856
|
-
|
|
5855
|
+
{ arr: G, variableName: i.variableName },
|
|
5856
|
+
$,
|
|
5857
|
+
i.variableName
|
|
5858
|
+
), i.variableName2 && i.manualItems2) {
|
|
5859
|
+
const te = R(i.manualItems2), oe = (i.variableName2 || "items2").trim() || "items2";
|
|
5860
|
+
$[oe] = te;
|
|
5857
5861
|
}
|
|
5858
5862
|
}
|
|
5859
|
-
return
|
|
5860
|
-
}, Z = (
|
|
5861
|
-
const S =
|
|
5863
|
+
return $;
|
|
5864
|
+
}, Z = (i) => {
|
|
5865
|
+
const S = i.props ? { ...i.props } : {};
|
|
5862
5866
|
try {
|
|
5863
|
-
Object.assign(S,
|
|
5864
|
-
} catch (
|
|
5865
|
-
console.error("❌ Error armando scalars vacíos:",
|
|
5867
|
+
Object.assign(S, D(i.manualScalarFields));
|
|
5868
|
+
} catch ($) {
|
|
5869
|
+
console.error("❌ Error armando scalars vacíos:", i, $);
|
|
5866
5870
|
}
|
|
5867
|
-
const k = (
|
|
5868
|
-
if (typeof S[k] == "undefined" && (S[k] = []),
|
|
5869
|
-
const
|
|
5870
|
-
typeof S[
|
|
5871
|
+
const k = (i.variableName || "items").trim() || "items";
|
|
5872
|
+
if (typeof S[k] == "undefined" && (S[k] = []), i.variableName2) {
|
|
5873
|
+
const $ = (i.variableName2 || "items2").trim() || "items2";
|
|
5874
|
+
typeof S[$] == "undefined" && (S[$] = []);
|
|
5871
5875
|
}
|
|
5872
5876
|
return S;
|
|
5873
|
-
},
|
|
5877
|
+
}, W = (i) => {
|
|
5874
5878
|
try {
|
|
5875
|
-
return j(
|
|
5879
|
+
return j(i);
|
|
5876
5880
|
} catch (S) {
|
|
5877
|
-
console.error("🔥 ERROR EN buildCompProps:",
|
|
5878
|
-
const k = T(
|
|
5879
|
-
if (k && k !==
|
|
5881
|
+
console.error("🔥 ERROR EN buildCompProps:", i, S);
|
|
5882
|
+
const k = T(i);
|
|
5883
|
+
if (k && k !== i)
|
|
5880
5884
|
try {
|
|
5881
5885
|
return console.warn(
|
|
5882
|
-
`[landing] usando fallback local para sección ${
|
|
5886
|
+
`[landing] usando fallback local para sección ${i.title} (${i.componentKey})`
|
|
5883
5887
|
), j(k);
|
|
5884
|
-
} catch (
|
|
5885
|
-
console.error("🔥 ERROR EN fallback buildCompProps:", k,
|
|
5888
|
+
} catch ($) {
|
|
5889
|
+
console.error("🔥 ERROR EN fallback buildCompProps:", k, $);
|
|
5886
5890
|
}
|
|
5887
|
-
return Z(
|
|
5891
|
+
return Z(i);
|
|
5888
5892
|
}
|
|
5889
|
-
},
|
|
5893
|
+
}, Y = (i, S, k) => /* @__PURE__ */ t("div", { className: `mx-4 p-4 rounded ${{
|
|
5890
5894
|
loading: "bg-blue-100 text-blue-800",
|
|
5891
5895
|
error: "bg-red-100 text-red-800",
|
|
5892
5896
|
component: "bg-yellow-100 text-yellow-800"
|
|
5893
|
-
}[S]}`, children: k },
|
|
5897
|
+
}[S]}`, children: k }, i), E = (i) => {
|
|
5894
5898
|
var He;
|
|
5895
|
-
const S =
|
|
5899
|
+
const S = i.componentKey, k = no[S], M = (/* @__PURE__ */ new Set([
|
|
5896
5900
|
"OraculoSeccionBanners",
|
|
5897
5901
|
"OraculoSeccionBonoBienvenida",
|
|
5898
5902
|
"OraculoSeccionCasinoEnVivo",
|
|
5899
5903
|
"OraculoSeccionClubOlimpo",
|
|
5900
|
-
...
|
|
5904
|
+
...N ? [] : [
|
|
5901
5905
|
"OraculoSeccionEventoEnVivo",
|
|
5902
5906
|
"OraculoSeccionEventoSemana",
|
|
5903
5907
|
"OraculoSeccionEventoCombinadas",
|
|
@@ -5905,64 +5909,64 @@ const rt = [
|
|
|
5905
5909
|
"OraculoSeccionDestacados",
|
|
5906
5910
|
"OraculoSeccionCasino"
|
|
5907
5911
|
]
|
|
5908
|
-
])).has(
|
|
5912
|
+
])).has(i.componentKey), A = N ? 120 : 24, G = (N ? 8 : 5) * 8, te = i.componentKey === "OraculoSeccionCasinoEnVivo", oe = {
|
|
5909
5913
|
width: "100%",
|
|
5910
5914
|
boxSizing: "border-box",
|
|
5911
|
-
|
|
5915
|
+
...M ? {} : { paddingLeft: A, paddingRight: A },
|
|
5912
5916
|
...te ? {
|
|
5913
|
-
marginTop: -
|
|
5914
|
-
marginBottom: -
|
|
5917
|
+
marginTop: -G,
|
|
5918
|
+
marginBottom: -G
|
|
5915
5919
|
} : {}
|
|
5916
5920
|
};
|
|
5917
5921
|
if (!k)
|
|
5918
|
-
return console.warn(`No hay componente registrado para "${S}"`),
|
|
5919
|
-
|
|
5922
|
+
return console.warn(`No hay componente registrado para "${S}"`), Y(
|
|
5923
|
+
i.id,
|
|
5920
5924
|
"component",
|
|
5921
5925
|
`Componente "${S}" no encontrado`
|
|
5922
5926
|
);
|
|
5923
|
-
const
|
|
5924
|
-
if (
|
|
5927
|
+
const re = !!((He = i.apiUrl) != null && He.trim()), We = re ? f[i.id] : void 0, Ot = re ? !!x[i.id] : !1, Ge = re ? b[i.id] : "";
|
|
5928
|
+
if (re) {
|
|
5925
5929
|
if (Ot && !We)
|
|
5926
|
-
return
|
|
5927
|
-
|
|
5930
|
+
return Y(
|
|
5931
|
+
i.id,
|
|
5928
5932
|
"loading",
|
|
5929
|
-
`Cargando datos desde ${
|
|
5933
|
+
`Cargando datos desde ${i.apiUrl}...`
|
|
5930
5934
|
);
|
|
5931
5935
|
if (Ge && !We) {
|
|
5932
|
-
const
|
|
5933
|
-
if (
|
|
5936
|
+
const Se = T(i);
|
|
5937
|
+
if (Se && Se.dataMode === "manual")
|
|
5934
5938
|
try {
|
|
5935
|
-
const Le =
|
|
5936
|
-
return /* @__PURE__ */ t("div", { style:
|
|
5939
|
+
const Le = W(Se);
|
|
5940
|
+
return /* @__PURE__ */ t("div", { style: oe, className: "oraculo-section-wrapper", children: /* @__PURE__ */ t(k, { ...Le }) }, i.id);
|
|
5937
5941
|
} catch (Le) {
|
|
5938
5942
|
console.error(
|
|
5939
5943
|
"🔥 ERROR renderizando fallback manual de sección:",
|
|
5940
|
-
|
|
5944
|
+
Se,
|
|
5941
5945
|
Le
|
|
5942
5946
|
);
|
|
5943
5947
|
}
|
|
5944
|
-
return
|
|
5945
|
-
|
|
5948
|
+
return Y(
|
|
5949
|
+
i.id,
|
|
5946
5950
|
"error",
|
|
5947
|
-
`Error cargando ${
|
|
5951
|
+
`Error cargando ${i.apiUrl}: ${Ge}`
|
|
5948
5952
|
);
|
|
5949
5953
|
}
|
|
5950
5954
|
}
|
|
5951
|
-
const je =
|
|
5955
|
+
const je = W(i), Et = i.componentKey === "OraculoSeccionClubOlimpo" || i.componentKey === "OraculoSeccionBanners" ? {
|
|
5952
5956
|
...je,
|
|
5953
|
-
user:
|
|
5957
|
+
user: d.user
|
|
5954
5958
|
} : je;
|
|
5955
|
-
return /* @__PURE__ */ t(ro, { section:
|
|
5959
|
+
return /* @__PURE__ */ t(ro, { section: i, children: /* @__PURE__ */ t(
|
|
5956
5960
|
"div",
|
|
5957
5961
|
{
|
|
5958
|
-
style:
|
|
5962
|
+
style: oe,
|
|
5959
5963
|
className: "oraculo-section-wrapper",
|
|
5960
5964
|
children: /* @__PURE__ */ t(k, { ...Et })
|
|
5961
5965
|
},
|
|
5962
|
-
|
|
5966
|
+
i.id
|
|
5963
5967
|
) });
|
|
5964
5968
|
};
|
|
5965
|
-
return
|
|
5969
|
+
return u && !e ? g ? /* @__PURE__ */ t(g, {}) : /* @__PURE__ */ t("div", { children: "Cargando..." }) : !u && !e && p.length === 0 ? /* @__PURE__ */ t("div", { className: "text-xs text-gray-500", children: "Sin secciones (Firestore)" }) : /* @__PURE__ */ t(It, { children: /* @__PURE__ */ t(bt, { docId: a, moduleId: n, children: /* @__PURE__ */ t(
|
|
5966
5970
|
Ct,
|
|
5967
5971
|
{
|
|
5968
5972
|
className: "oli-font",
|
|
@@ -5976,11 +5980,11 @@ const rt = [
|
|
|
5976
5980
|
maxWidth: "100%",
|
|
5977
5981
|
overflowX: "hidden"
|
|
5978
5982
|
},
|
|
5979
|
-
children: /* @__PURE__ */ t(Ee, { direction: "column", spacing:
|
|
5983
|
+
children: /* @__PURE__ */ t(Ee, { direction: "column", spacing: N ? 8 : 5, useFlexGap: !0, children: B.map((i) => {
|
|
5980
5984
|
try {
|
|
5981
|
-
return
|
|
5985
|
+
return E(i);
|
|
5982
5986
|
} catch (S) {
|
|
5983
|
-
return console.error("🔥 ERROR EN SECTION:",
|
|
5987
|
+
return console.error("🔥 ERROR EN SECTION:", i, S), null;
|
|
5984
5988
|
}
|
|
5985
5989
|
}) })
|
|
5986
5990
|
}
|
|
@@ -5988,10 +5992,10 @@ const rt = [
|
|
|
5988
5992
|
};
|
|
5989
5993
|
export {
|
|
5990
5994
|
bt as DocIdProvider,
|
|
5991
|
-
|
|
5995
|
+
X as OraculoButton,
|
|
5992
5996
|
he as OraculoCarousel,
|
|
5993
5997
|
dt as OraculoCarouselDots,
|
|
5994
|
-
|
|
5998
|
+
wa as OraculoClubOlimpoVisual,
|
|
5995
5999
|
La as OraculoEventCombinadasCard,
|
|
5996
6000
|
Da as OraculoEventEnVivoCard,
|
|
5997
6001
|
Ht as OraculoEventHeader,
|
|
@@ -6006,7 +6010,7 @@ export {
|
|
|
6006
6010
|
xa as OraculoGameRankCard,
|
|
6007
6011
|
ft as OraculoGameSlide,
|
|
6008
6012
|
me as OraculoGridGroup,
|
|
6009
|
-
|
|
6013
|
+
Sa as OraculoLiveCasinoCard,
|
|
6010
6014
|
Ze as OraculoLogoMediosPago,
|
|
6011
6015
|
Io as OraculoPageLandingPreview,
|
|
6012
6016
|
Xn as OraculoSeccionBanners,
|
|
@@ -6021,7 +6025,7 @@ export {
|
|
|
6021
6025
|
Qn as OraculoSeccionMediosPago,
|
|
6022
6026
|
Qa as OraculoSeccionTopJuegos,
|
|
6023
6027
|
vn as OraculoSeccionVirtuales,
|
|
6024
|
-
|
|
6028
|
+
wo as OraculoSectionHost,
|
|
6025
6029
|
ge as OraculoSectionTitle,
|
|
6026
6030
|
It as OraculoThemeProvider,
|
|
6027
6031
|
Qa as OraculoTopJuegoItem,
|