oraculo-ui 0.1.140 → 0.1.142
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +4 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.es.js +1101 -1098
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
- package/dist/molecules/OraculoEventCard/OraculoRequestHelper.d.ts +0 -0
- package/dist/templates/OraculoOnlyBanners.d.ts +0 -0
package/dist/index.es.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import { Link as it, Box as ee, useMediaQuery as De, IconButton as Ke, Typography as st, Stack as
|
|
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 st, Stack as Ee, Container as Ct } from "@mui/material";
|
|
3
3
|
import fe, { useState as X, useEffect as Q, useRef as V, forwardRef as Tt, useImperativeHandle as kt, useCallback as Ce, createContext as Nt, useContext as $t, useMemo as re, useLayoutEffect as Mt } from "react";
|
|
4
|
-
import
|
|
4
|
+
import H from "@mui/material/Skeleton";
|
|
5
5
|
import { Splide as Bt, SplideSlide as At } from "@splidejs/react-splide";
|
|
6
|
-
import
|
|
6
|
+
import P from "@mui/material/Box";
|
|
7
7
|
import ue from "@mui/material/Typography";
|
|
8
|
-
import
|
|
8
|
+
import K from "@mui/material/Stack";
|
|
9
9
|
import { useCaptureInteraction as ae } from "@olimpo/capture-client";
|
|
10
|
-
import { ChevronLeftRounded as Ae, ChevronRightRounded as
|
|
10
|
+
import { ChevronLeftRounded as Ae, ChevronRightRounded as Re } from "@mui/icons-material";
|
|
11
11
|
import xe from "@mui/material/useMediaQuery";
|
|
12
12
|
import lt from "@mui/icons-material/ChevronLeftRounded";
|
|
13
13
|
import ct from "@mui/icons-material/ChevronRightRounded";
|
|
14
|
-
import { useTheme as
|
|
15
|
-
import
|
|
16
|
-
import { onSnapshot as
|
|
14
|
+
import { useTheme as Rt, createTheme as Lt, ThemeProvider as Ft } from "@mui/material/styles";
|
|
15
|
+
import qt from "@mui/material/CssBaseline";
|
|
16
|
+
import { onSnapshot as zt, doc as Pt } from "firebase/firestore";
|
|
17
17
|
function Y({
|
|
18
18
|
children: e,
|
|
19
19
|
onClick: a,
|
|
@@ -23,28 +23,28 @@ function Y({
|
|
|
23
23
|
type: i = "button",
|
|
24
24
|
disabled: s = !1,
|
|
25
25
|
variant: c = "primary",
|
|
26
|
-
size:
|
|
26
|
+
size: f,
|
|
27
27
|
fullWidth: h = !1,
|
|
28
28
|
fullHeight: u = !1,
|
|
29
29
|
className: m = "",
|
|
30
30
|
ariaLabel: d,
|
|
31
|
-
leftIcon:
|
|
32
|
-
rightIcon:
|
|
33
|
-
iconOnly:
|
|
31
|
+
leftIcon: g,
|
|
32
|
+
rightIcon: b,
|
|
33
|
+
iconOnly: x
|
|
34
34
|
}) {
|
|
35
|
-
const
|
|
35
|
+
const C = !!e && e !== !0, M = (!!g ? 1 : 0) + (!!b ? 1 : 0) == 1, z = x != null ? x : M && !C, y = [
|
|
36
36
|
"orc-btn",
|
|
37
37
|
c === "secondary" ? "orc-btn--secondary" : c === "tertiary" ? "orc-btn--tertiary" : "orc-btn--primary",
|
|
38
|
-
|
|
38
|
+
f ? `orc-btn--${f}` : "",
|
|
39
39
|
h ? "orc-btn--full" : "",
|
|
40
40
|
u ? "orc-btn--fullHeight" : "",
|
|
41
|
-
|
|
41
|
+
z ? "orc-btn--iconOnly" : "",
|
|
42
42
|
m
|
|
43
|
-
].filter(Boolean).join(" "),
|
|
44
|
-
|
|
45
|
-
!
|
|
46
|
-
|
|
47
|
-
] }),
|
|
43
|
+
].filter(Boolean).join(" "), k = /* @__PURE__ */ _(pe, { children: [
|
|
44
|
+
g && /* @__PURE__ */ t("span", { className: "orc-btn__icon", children: g }),
|
|
45
|
+
!z && /* @__PURE__ */ t("span", { className: "orc-btn__label", children: e }),
|
|
46
|
+
b && /* @__PURE__ */ t("span", { className: "orc-btn__icon", children: b })
|
|
47
|
+
] }), q = s ? !0 : void 0;
|
|
48
48
|
return n ? /* @__PURE__ */ t(
|
|
49
49
|
it,
|
|
50
50
|
{
|
|
@@ -52,21 +52,21 @@ function Y({
|
|
|
52
52
|
target: o,
|
|
53
53
|
rel: r,
|
|
54
54
|
"aria-label": d,
|
|
55
|
-
"aria-disabled":
|
|
56
|
-
tabIndex:
|
|
57
|
-
className:
|
|
58
|
-
onClick:
|
|
59
|
-
children:
|
|
55
|
+
"aria-disabled": q,
|
|
56
|
+
tabIndex: q ? -1 : void 0,
|
|
57
|
+
className: y,
|
|
58
|
+
onClick: q ? (D) => D.preventDefault() : a,
|
|
59
|
+
children: k
|
|
60
60
|
}
|
|
61
61
|
) : /* @__PURE__ */ t(
|
|
62
62
|
"button",
|
|
63
63
|
{
|
|
64
64
|
type: i,
|
|
65
65
|
onClick: a,
|
|
66
|
-
disabled: !!
|
|
66
|
+
disabled: !!q,
|
|
67
67
|
"aria-label": d,
|
|
68
|
-
className:
|
|
69
|
-
children:
|
|
68
|
+
className: y,
|
|
69
|
+
children: k
|
|
70
70
|
}
|
|
71
71
|
);
|
|
72
72
|
}
|
|
@@ -81,7 +81,7 @@ function ge({
|
|
|
81
81
|
n ? `orc-section-title--${n}` : "",
|
|
82
82
|
o
|
|
83
83
|
].filter(Boolean).join(" ");
|
|
84
|
-
return /* @__PURE__ */
|
|
84
|
+
return /* @__PURE__ */ _("div", { className: i, children: [
|
|
85
85
|
a && /* @__PURE__ */ t(
|
|
86
86
|
"img",
|
|
87
87
|
{
|
|
@@ -103,8 +103,8 @@ const dt = ({
|
|
|
103
103
|
if (e <= 1) return null;
|
|
104
104
|
const i = ["orc-dots", o].filter(Boolean).join(" "), [s, c] = X(0);
|
|
105
105
|
return Q(() => {
|
|
106
|
-
c((
|
|
107
|
-
}, [a, r]), /* @__PURE__ */ t("div", { className: i, role: "tablist", "aria-label": "Carousel pagination", children: Array.from({ length: e }).map((
|
|
106
|
+
c((f) => f + 1);
|
|
107
|
+
}, [a, r]), /* @__PURE__ */ t("div", { className: i, role: "tablist", "aria-label": "Carousel pagination", children: Array.from({ length: e }).map((f, h) => {
|
|
108
108
|
const u = h === a;
|
|
109
109
|
return /* @__PURE__ */ t("span", { className: "orc-dots__cell", children: /* @__PURE__ */ t(
|
|
110
110
|
"button",
|
|
@@ -178,16 +178,16 @@ function Ze({ src: e, alt: a }) {
|
|
|
178
178
|
}
|
|
179
179
|
);
|
|
180
180
|
}
|
|
181
|
-
const Dt = "oraculo__OraculoEventTitle-module__contenedor___rg1vw", Ut = "oraculo__OraculoEventTitle-module__flexGroup___jMLFO", Vt = "oraculo__OraculoEventTitle-module__subtitle___TmHna",
|
|
181
|
+
const Dt = "oraculo__OraculoEventTitle-module__contenedor___rg1vw", Ut = "oraculo__OraculoEventTitle-module__flexGroup___jMLFO", Vt = "oraculo__OraculoEventTitle-module__subtitle___TmHna", Fe = {
|
|
182
182
|
contenedor: Dt,
|
|
183
183
|
flexGroup: Ut,
|
|
184
184
|
subtitle: Vt
|
|
185
185
|
};
|
|
186
186
|
function Wt({ title: e, subtitle: a }) {
|
|
187
|
-
return /* @__PURE__ */
|
|
187
|
+
return /* @__PURE__ */ _(
|
|
188
188
|
"div",
|
|
189
189
|
{
|
|
190
|
-
className:
|
|
190
|
+
className: Fe.contenedor,
|
|
191
191
|
children: [
|
|
192
192
|
/* @__PURE__ */ t(
|
|
193
193
|
"span",
|
|
@@ -200,17 +200,17 @@ function Wt({ title: e, subtitle: a }) {
|
|
|
200
200
|
children: e
|
|
201
201
|
}
|
|
202
202
|
),
|
|
203
|
-
a && /* @__PURE__ */
|
|
203
|
+
a && /* @__PURE__ */ _(
|
|
204
204
|
"div",
|
|
205
205
|
{
|
|
206
|
-
className:
|
|
206
|
+
className: Fe.flexGroup,
|
|
207
207
|
children: [
|
|
208
|
-
/* @__PURE__ */
|
|
208
|
+
/* @__PURE__ */ _("svg", { width: "4", height: "4", viewBox: "0 0 5 5", xmlns: "http://www.w3.org/2000/svg", style: { flexShrink: 0 }, children: [
|
|
209
209
|
" ",
|
|
210
210
|
/* @__PURE__ */ t("circle", { cx: "2.5", cy: "2.5", r: "2.5", fill: "white" }),
|
|
211
211
|
" "
|
|
212
212
|
] }),
|
|
213
|
-
/* @__PURE__ */ t("span", { className:
|
|
213
|
+
/* @__PURE__ */ t("span", { className: Fe.subtitle, children: a }),
|
|
214
214
|
/* @__PURE__ */ t("div", {})
|
|
215
215
|
]
|
|
216
216
|
}
|
|
@@ -241,13 +241,13 @@ function Gt({ text: e, color: a = "#ff3b3b", textColor: n = "#fff" }) {
|
|
|
241
241
|
);
|
|
242
242
|
}
|
|
243
243
|
function jt({ live: e, time: a }) {
|
|
244
|
-
return /* @__PURE__ */
|
|
244
|
+
return /* @__PURE__ */ _("div", { className: "oli-font", style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
|
|
245
245
|
e && /* @__PURE__ */ t(Gt, { text: "En vivo" }),
|
|
246
246
|
a && /* @__PURE__ */ t("span", { style: { fontSize: "14px", fontWeight: 400, lineHeight: "18px", paddingTop: "4px" }, children: a })
|
|
247
247
|
] });
|
|
248
248
|
}
|
|
249
249
|
function Ht({ title: e, subtitle: a, live: n = !1, time: o = "" }) {
|
|
250
|
-
return /* @__PURE__ */
|
|
250
|
+
return /* @__PURE__ */ _(
|
|
251
251
|
"div",
|
|
252
252
|
{
|
|
253
253
|
style: {
|
|
@@ -283,7 +283,7 @@ const Yt = "oraculo__OraculoEventScore-module__scoreWrapper___fWwEr", Qt = "orac
|
|
|
283
283
|
small: aa
|
|
284
284
|
};
|
|
285
285
|
function pt({ text: e, name: a, size: n = "normal" }) {
|
|
286
|
-
return /* @__PURE__ */
|
|
286
|
+
return /* @__PURE__ */ _(
|
|
287
287
|
"div",
|
|
288
288
|
{
|
|
289
289
|
className: `${ve.scoreWrapper} ${ve[n]}`,
|
|
@@ -309,8 +309,8 @@ const na = "oraculo__OraculoEventTeamInfo-module__team___UfpUs", oa = "oraculo__
|
|
|
309
309
|
};
|
|
310
310
|
function pa({ jersey: e, className: a }) {
|
|
311
311
|
const n = `#${e.base}`, o = e.sleeve ? `#${e.sleeve}` : n, r = e.stripes ? `#${e.stripes}` : null, i = e.sleevelong ? `#${e.sleevelong}` : null;
|
|
312
|
-
return /* @__PURE__ */
|
|
313
|
-
/* @__PURE__ */ t("div", { className: Se.svgWrapper, children: /* @__PURE__ */
|
|
312
|
+
return /* @__PURE__ */ _("div", { className: `${Se.polo} ${a != null ? a : ""}`, children: [
|
|
313
|
+
/* @__PURE__ */ t("div", { className: Se.svgWrapper, children: /* @__PURE__ */ _("svg", { viewBox: "0 0 656 656", "aria-hidden": !0, children: [
|
|
314
314
|
/* @__PURE__ */ t(
|
|
315
315
|
"path",
|
|
316
316
|
{
|
|
@@ -318,7 +318,7 @@ function pa({ jersey: e, className: a }) {
|
|
|
318
318
|
d: "m62 265 5.8-17c-.4-.7-.6-1.5-.4-2 .2-.7.8-1.2 1.2-1.4l1.2-4 9-21.6c.2-1 1-3.5 2.4-6.4a69.9 69.9 0 0 1 4.1-17.2l2.9-7 2.9-11.4c1.7-5.8 5.2-18.4 5.8-22 .6-3.6 6.8-19 9.8-26.2.4-.9 2.4-4.7 7.2-12.8 5.4-12.2 23.5-27.2 32-33.1l6.6-3.7 7.9-3.6 17.3-6.2 16.6-7.1L215 52c7-4.1 21.8-12.5 24.1-13.2 2.3-.8 5-3.5 6-4.7 1.2-1.2 4.2-3.8 6.6-4.7 2.3-1 8.2-6.8 10.8-9.6 1.6-1.4 3.8-4.7 9.2-7.5 5.3-2.9 20.4-4 27.2-4.3h25.6l16.7.3 14.1.6 10.3.7 9.5 1.7c6.4.6 12.6 4.3 15.4 8l2.7 3.1 8.9 8 1.8.7 4.9 3 2.7 3.5c4.2 2.2 13.1 7.1 15.2 8.7 2 1.6 30.1 15.4 44 22 8 3.2 39 12.3 55.3 30 5.2 4.3 7 7.8 11.4 12.4 5.1 5.3 15.1 29 16.9 32 1.4 2.6 5 17 6.8 24l4.8 20.5 8.4 29 8.9 22.7 2.3 5.4.6 1.5c.5.6 1.4 2 1 2.6-.2.6 0 2 .2 2.7l1 2.6 2 5.8 2.2 5.9c.3 1.3-4.3 4-6.6 5.2l-11.1 5-12.6 4.7-15 5-14.6 4.6-10.9 2.4a66 66 0 0 1-8.6 1.4c-3.4.3-4.7-.4-4.9-.8l-5-12.3-1.9-3.8-1.8-1.6.1-.8v-1l-.4-1.8-1.3-4.1-3.3-9-1.3-2-2.2-5.7-2.5-.3-1 .8v2l-2.7 13.1-8.7 58-.9 6.4-.2 7.9c0 3-1 16-1.7 18.3l-2.5 9-.2 7.6-.3 8.7-.3 7.5.3 4 .5 15c.3 1.9-.6 7-1.1 9.3-.6 2.4-1.6 7.5-1.4 8.8.3 1.4-.2 4.4-.5 5.8l-1.3 8.9c-.2 1.4-.8 5-1.3 7.2.7 1.6 4.7 14.6 5.9 17.8 1.2 3.3 4.8 19.4 5 20.7.3 1 1.1 7.8 1.5 11 .1 2.5.3 8 .2 10 0 2-.8 6.6-1.1 8.6-.2 1.7-.7 5.5-1.2 7s-1.2 8.5-1.4 11.8A81.1 81.1 0 0 1 477 552l.3 7.1.2 6.5 1.4 17.7.5 6 1.5 7.7.4 4.6c.3 2.1.7 7 .7 10.1.3 3-2.5 6-4 7 0 .2-1.2 1-4.6 3-6.4 5-26.3 11.6-35.5 14.3a379.2 379.2 0 0 1-58.6 11.2c-2.3.8-27 2.2-39 2.7-8.3 0-27 0-34.5-.4-11.5.9-47.4-4.8-63.9-7.7-6.3-.9-42.1-10.4-48-14.4-3.7-2.4-14.3-8-16.9-9.7a10.7 10.7 0 0 1-4.1-5.4c-.3-1 .1-8.6.4-12.3l.6-5 1.4-9.6 1-8 .3-4.3-.4-7.7-1-10.8v-13.8l.7-10 1.1-7.7 1.8-8 2.8-9.5 3.3-9.3a78 78 0 0 1-2.5-20.8 1112.2 1112.2 0 0 1 .6-14.1c-.1-.7 2.1-10.2 3.3-15l1-3.8-.1-.8c-1.4-8.3-1.5-14-1.9-15.4a78 78 0 0 1 .4-10.9l2-6.7.4-2-.4-1.5a67.6 67.6 0 0 1-7.3-27l-.2-7.7.5-5.4.3-1.5.4-3.9.7-5 .2-2.2-.2-.4-.3-6-1-3.1-.3-4-.7-7.6-1.5-8.3-.8-4.2-1.4-9.2-.4-4.3L172 279l-2.2-14.6a545 545 0 0 1-1.7-8.5c-.1-1-2-2.1-3-2.6 0 .6-.6 1.5-1.7 2-1.2.7-2.4 1.3-2.7 2.2l-.8 4.7a15 15 0 0 1-2.5 4.1 16.4 16.4 0 0 0-2.6 6.3l-.3 2.4v1.3l-1.4 1.1-.3.3-6 14.5c-.7 2.3-1.3 1.8-1.9 1.5l-10.5-3.1-9-3-18.3-6-20-6.8-13-4.8c-2.1-1-7-3-9.4-3.8-2.5-.8-3-1.3-2.8-1.4Z"
|
|
319
319
|
}
|
|
320
320
|
),
|
|
321
|
-
r && /* @__PURE__ */
|
|
321
|
+
r && /* @__PURE__ */ _(pe, { children: [
|
|
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
|
] }),
|
|
@@ -367,14 +367,14 @@ function pa({ jersey: e, className: a }) {
|
|
|
367
367
|
] });
|
|
368
368
|
}
|
|
369
369
|
function $e({ name: e, jersey: a, size: n = "regular" }) {
|
|
370
|
-
return /* @__PURE__ */
|
|
370
|
+
return /* @__PURE__ */ _("div", { className: `oli-font ${_e.team} ${_e[n]}`, children: [
|
|
371
371
|
a != null && a.base ? /* @__PURE__ */ t(
|
|
372
372
|
pa,
|
|
373
373
|
{
|
|
374
374
|
jersey: a,
|
|
375
375
|
className: `${_e.logo}`
|
|
376
376
|
}
|
|
377
|
-
) : /* @__PURE__ */ t(
|
|
377
|
+
) : /* @__PURE__ */ t(H, { variant: "circular", className: `${_e.logo} ${_e.skeleton}` }),
|
|
378
378
|
/* @__PURE__ */ t("span", { className: _e.name, children: e })
|
|
379
379
|
] });
|
|
380
380
|
}
|
|
@@ -388,19 +388,19 @@ function fa(e, a, {
|
|
|
388
388
|
if (!n) return;
|
|
389
389
|
const c = e.current;
|
|
390
390
|
if (!c) return;
|
|
391
|
-
const
|
|
391
|
+
const f = (h) => {
|
|
392
392
|
const u = a.current;
|
|
393
393
|
if (!u || !u.go) return;
|
|
394
394
|
const { deltaX: m, deltaY: d } = h;
|
|
395
395
|
if (Math.abs(m) <= Math.abs(d)) return;
|
|
396
396
|
h.preventDefault(), i.current += m;
|
|
397
|
-
const
|
|
398
|
-
if (
|
|
399
|
-
const
|
|
400
|
-
i.current = 0, s.current =
|
|
397
|
+
const g = Date.now();
|
|
398
|
+
if (g - s.current < r || Math.abs(i.current) < o) return;
|
|
399
|
+
const b = i.current > 0 ? ">" : "<";
|
|
400
|
+
i.current = 0, s.current = g, u.go(b);
|
|
401
401
|
};
|
|
402
|
-
return c.addEventListener("wheel",
|
|
403
|
-
c.removeEventListener("wheel",
|
|
402
|
+
return c.addEventListener("wheel", f, { passive: !1 }), () => {
|
|
403
|
+
c.removeEventListener("wheel", f), i.current = 0;
|
|
404
404
|
};
|
|
405
405
|
}, [n, o, r, e, a]);
|
|
406
406
|
}
|
|
@@ -419,12 +419,12 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
|
|
|
419
419
|
options: i = {},
|
|
420
420
|
className: s = "",
|
|
421
421
|
onMove: c,
|
|
422
|
-
useIndexAsKey:
|
|
422
|
+
useIndexAsKey: f = !1,
|
|
423
423
|
enableHorizontalWheel: h = !0,
|
|
424
424
|
showRightGradient: u = !1
|
|
425
425
|
}, m) => {
|
|
426
|
-
const d = V(null),
|
|
427
|
-
fa(
|
|
426
|
+
const d = V(null), g = V(null), b = V(e.length), x = V(null), C = V(null), p = V("user");
|
|
427
|
+
fa(g, d, {
|
|
428
428
|
enabled: h
|
|
429
429
|
}), kt(m, () => ({
|
|
430
430
|
next: () => {
|
|
@@ -436,84 +436,84 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
|
|
|
436
436
|
return (O = d.current) == null ? void 0 : O.go("<");
|
|
437
437
|
},
|
|
438
438
|
go: (O) => {
|
|
439
|
-
var
|
|
440
|
-
return (
|
|
439
|
+
var v;
|
|
440
|
+
return (v = d.current) == null ? void 0 : v.go(O);
|
|
441
441
|
}
|
|
442
442
|
}));
|
|
443
|
-
const
|
|
444
|
-
var
|
|
445
|
-
const
|
|
446
|
-
let W = 0,
|
|
447
|
-
for (let
|
|
448
|
-
const
|
|
449
|
-
if (!
|
|
450
|
-
|
|
443
|
+
const w = (O) => {
|
|
444
|
+
var Z;
|
|
445
|
+
const v = O.Components.Slides, I = O.Components.Controller, R = O.root.querySelector(".splide__track"), B = (Z = R == null ? void 0 : R.clientWidth) != null ? Z : 0, A = I.getIndex(), U = v.getLength();
|
|
446
|
+
let W = 0, j = A;
|
|
447
|
+
for (let G = A; G < U; G++) {
|
|
448
|
+
const E = v.getAt(G);
|
|
449
|
+
if (!E || (W += E.slide.offsetWidth, W > B)) break;
|
|
450
|
+
j = G;
|
|
451
451
|
}
|
|
452
|
-
return { visibleStart: A, visibleEnd:
|
|
453
|
-
},
|
|
454
|
-
const
|
|
455
|
-
return !
|
|
456
|
-
},
|
|
457
|
-
var
|
|
458
|
-
if (
|
|
459
|
-
const
|
|
460
|
-
if (
|
|
452
|
+
return { visibleStart: A, visibleEnd: j };
|
|
453
|
+
}, M = (O) => {
|
|
454
|
+
const v = O.root.querySelector(".splide__track"), I = O.root.querySelector(".splide__list");
|
|
455
|
+
return !v || !I ? !1 : I.scrollWidth > v.clientWidth + 1;
|
|
456
|
+
}, z = V(!1), y = Ce((O) => {
|
|
457
|
+
var Z, G;
|
|
458
|
+
if (z.current) return;
|
|
459
|
+
const I = O.Components.Slides.getLength(), R = p.current;
|
|
460
|
+
if (p.current = "user", !M(O)) {
|
|
461
461
|
c == null || c({
|
|
462
462
|
index: 0,
|
|
463
463
|
isStart: !0,
|
|
464
464
|
isEnd: !0,
|
|
465
|
-
total:
|
|
465
|
+
total: I,
|
|
466
466
|
visibleStart: 0,
|
|
467
|
-
visibleEnd:
|
|
467
|
+
visibleEnd: I - 1,
|
|
468
468
|
source: R
|
|
469
469
|
});
|
|
470
470
|
return;
|
|
471
471
|
}
|
|
472
|
-
const { visibleStart: B, visibleEnd: A } =
|
|
473
|
-
u && ((
|
|
474
|
-
const
|
|
472
|
+
const { visibleStart: B, visibleEnd: A } = w(O), U = B === 0, W = A === I - 1;
|
|
473
|
+
u && ((Z = x.current) == null || Z.style.setProperty("--gradient-opacity", U ? "0" : "1"), (G = C.current) == null || G.style.setProperty("--gradient-opacity", W ? "0" : "1"));
|
|
474
|
+
const j = O.Components.Controller.getIndex();
|
|
475
475
|
c == null || c({
|
|
476
|
-
index:
|
|
476
|
+
index: j,
|
|
477
477
|
isStart: U,
|
|
478
478
|
isEnd: W,
|
|
479
|
-
total:
|
|
479
|
+
total: I,
|
|
480
480
|
visibleStart: B,
|
|
481
481
|
visibleEnd: A,
|
|
482
482
|
source: R
|
|
483
483
|
});
|
|
484
484
|
}, [c]);
|
|
485
485
|
fe.useEffect(() => {
|
|
486
|
-
var
|
|
487
|
-
const O = (
|
|
486
|
+
var I;
|
|
487
|
+
const O = (I = d.current) == null ? void 0 : I.splide;
|
|
488
488
|
if (!O) return;
|
|
489
|
-
const
|
|
490
|
-
|
|
491
|
-
|
|
489
|
+
const v = b.current !== e.length;
|
|
490
|
+
b.current = e.length, v && requestAnimationFrame(() => {
|
|
491
|
+
z.current = !0;
|
|
492
492
|
try {
|
|
493
493
|
O.refresh();
|
|
494
494
|
} finally {
|
|
495
|
-
|
|
495
|
+
z.current = !1;
|
|
496
496
|
}
|
|
497
|
-
|
|
497
|
+
p.current = "resize", y(O);
|
|
498
498
|
});
|
|
499
|
-
}, [e.length,
|
|
500
|
-
const
|
|
501
|
-
var
|
|
502
|
-
const O = (
|
|
499
|
+
}, [e.length, y]);
|
|
500
|
+
const k = Ce(() => {
|
|
501
|
+
var v;
|
|
502
|
+
const O = (v = d.current) == null ? void 0 : v.splide;
|
|
503
503
|
if (O) {
|
|
504
|
-
|
|
504
|
+
z.current = !0;
|
|
505
505
|
try {
|
|
506
506
|
O.go(0, !1);
|
|
507
507
|
} finally {
|
|
508
|
-
|
|
508
|
+
z.current = !1;
|
|
509
509
|
}
|
|
510
|
-
|
|
510
|
+
p.current = "resize", y(O);
|
|
511
511
|
}
|
|
512
|
-
}, [
|
|
512
|
+
}, [y]), q = Ce(
|
|
513
513
|
(O) => {
|
|
514
|
-
|
|
514
|
+
p.current = "mounted", y(O);
|
|
515
515
|
},
|
|
516
|
-
[
|
|
516
|
+
[y]
|
|
517
517
|
), D = {
|
|
518
518
|
type: "slide",
|
|
519
519
|
trimSpace: !1,
|
|
@@ -529,10 +529,10 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
|
|
|
529
529
|
...i,
|
|
530
530
|
...h ? { wheel: !1 } : {}
|
|
531
531
|
};
|
|
532
|
-
return /* @__PURE__ */
|
|
532
|
+
return /* @__PURE__ */ _(
|
|
533
533
|
"div",
|
|
534
534
|
{
|
|
535
|
-
ref:
|
|
535
|
+
ref: g,
|
|
536
536
|
className: s,
|
|
537
537
|
style: { width: "100%", position: "relative", height: "100%" },
|
|
538
538
|
children: [
|
|
@@ -541,23 +541,23 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
|
|
|
541
541
|
{
|
|
542
542
|
ref: d,
|
|
543
543
|
options: D,
|
|
544
|
-
onMove:
|
|
545
|
-
onMounted:
|
|
546
|
-
onResize:
|
|
547
|
-
children: e.map((O,
|
|
548
|
-
var
|
|
549
|
-
return /* @__PURE__ */ t(ya, { children: a(O,
|
|
544
|
+
onMove: y,
|
|
545
|
+
onMounted: q,
|
|
546
|
+
onResize: k,
|
|
547
|
+
children: e.map((O, v) => {
|
|
548
|
+
var I;
|
|
549
|
+
return /* @__PURE__ */ t(ya, { children: a(O, v) }, f ? v : (I = O.id) != null ? I : v);
|
|
550
550
|
})
|
|
551
551
|
}
|
|
552
552
|
),
|
|
553
|
-
u && /* @__PURE__ */
|
|
553
|
+
u && /* @__PURE__ */ _(pe, { children: [
|
|
554
554
|
/* @__PURE__ */ t(
|
|
555
555
|
"div",
|
|
556
556
|
{
|
|
557
|
-
ref:
|
|
557
|
+
ref: x,
|
|
558
558
|
className: `${ye.gradientOverlay} ${ye.left}`,
|
|
559
559
|
style: { "--gradient-opacity": "0" },
|
|
560
|
-
children: /* @__PURE__ */
|
|
560
|
+
children: /* @__PURE__ */ _(
|
|
561
561
|
"svg",
|
|
562
562
|
{
|
|
563
563
|
className: ye.svg,
|
|
@@ -567,7 +567,7 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
|
|
|
567
567
|
xmlns: "http://www.w3.org/2000/svg",
|
|
568
568
|
children: [
|
|
569
569
|
/* @__PURE__ */ t("path", { d: "M0 0H152V184H0V0Z", fill: "url(#paint_left)" }),
|
|
570
|
-
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */
|
|
570
|
+
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ _("linearGradient", { id: "paint_left", x1: "0", y1: "92", x2: "152", y2: "92", gradientUnits: "userSpaceOnUse", children: [
|
|
571
571
|
/* @__PURE__ */ t("stop", { offset: "0.59737", stopColor: "#121212", stopOpacity: "0" }),
|
|
572
572
|
/* @__PURE__ */ t("stop", { offset: "1", stopColor: "#121212" })
|
|
573
573
|
] }) })
|
|
@@ -579,10 +579,10 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
|
|
|
579
579
|
/* @__PURE__ */ t(
|
|
580
580
|
"div",
|
|
581
581
|
{
|
|
582
|
-
ref:
|
|
582
|
+
ref: C,
|
|
583
583
|
className: `${ye.gradientOverlay} ${ye.right}`,
|
|
584
584
|
style: { "--gradient-opacity": "1" },
|
|
585
|
-
children: /* @__PURE__ */
|
|
585
|
+
children: /* @__PURE__ */ _(
|
|
586
586
|
"svg",
|
|
587
587
|
{
|
|
588
588
|
className: ye.svg,
|
|
@@ -592,7 +592,7 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
|
|
|
592
592
|
xmlns: "http://www.w3.org/2000/svg",
|
|
593
593
|
children: [
|
|
594
594
|
/* @__PURE__ */ t("path", { d: "M0 0H152V184H0V0Z", fill: "url(#paint_right)" }),
|
|
595
|
-
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */
|
|
595
|
+
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ _("linearGradient", { id: "paint_right", x1: "0", y1: "92", x2: "152", y2: "92", gradientUnits: "userSpaceOnUse", children: [
|
|
596
596
|
/* @__PURE__ */ t("stop", { offset: "0.59737", stopColor: "#121212", stopOpacity: "0" }),
|
|
597
597
|
/* @__PURE__ */ t("stop", { offset: "1", stopColor: "#121212" })
|
|
598
598
|
] }) })
|
|
@@ -615,8 +615,8 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
|
|
|
615
615
|
const r = n === "lg" ? { w: 280, h: 352 } : { w: 152, h: 168 }, i = (c) => {
|
|
616
616
|
c.stopPropagation(), a == null || a();
|
|
617
617
|
}, s = o ? { width: "100%", height: "100%" } : { width: `${r.w}px`, height: `${r.h}px` };
|
|
618
|
-
return /* @__PURE__ */
|
|
619
|
-
|
|
618
|
+
return /* @__PURE__ */ _(
|
|
619
|
+
P,
|
|
620
620
|
{
|
|
621
621
|
onClick: a,
|
|
622
622
|
role: "button",
|
|
@@ -658,7 +658,7 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
|
|
|
658
658
|
}
|
|
659
659
|
),
|
|
660
660
|
/* @__PURE__ */ t(
|
|
661
|
-
|
|
661
|
+
P,
|
|
662
662
|
{
|
|
663
663
|
className: "oraculo-game-card-overlay",
|
|
664
664
|
sx: {
|
|
@@ -673,7 +673,7 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
|
|
|
673
673
|
}
|
|
674
674
|
),
|
|
675
675
|
/* @__PURE__ */ t(
|
|
676
|
-
|
|
676
|
+
P,
|
|
677
677
|
{
|
|
678
678
|
className: "oraculo-game-card-btn",
|
|
679
679
|
sx: {
|
|
@@ -703,19 +703,19 @@ function xa({
|
|
|
703
703
|
md: { w: 186, h: 264, r: 22.6, font: 64 }
|
|
704
704
|
}
|
|
705
705
|
}) {
|
|
706
|
-
var m, d,
|
|
707
|
-
const i = (
|
|
708
|
-
var
|
|
706
|
+
var m, d, g, b;
|
|
707
|
+
const i = (x, C) => {
|
|
708
|
+
var p, w, M, z;
|
|
709
709
|
return {
|
|
710
|
-
xs: (
|
|
711
|
-
md: (
|
|
710
|
+
xs: (w = (p = r.xs) == null ? void 0 : p[x]) != null ? w : C,
|
|
711
|
+
md: (z = (M = r.md) == null ? void 0 : M[x]) != null ? z : C
|
|
712
712
|
};
|
|
713
|
-
}, s = i("w", 186), c = i("h", 264),
|
|
713
|
+
}, s = i("w", 186), c = i("h", 264), f = i("r", 22.6), h = i("font", 64), u = {
|
|
714
714
|
xs: Math.round(((d = (m = r.xs) == null ? void 0 : m.font) != null ? d : 64) * 0.28),
|
|
715
|
-
md: Math.round(((
|
|
715
|
+
md: Math.round(((b = (g = r.md) == null ? void 0 : g.font) != null ? b : 64) * 0.28)
|
|
716
716
|
};
|
|
717
|
-
return /* @__PURE__ */
|
|
718
|
-
|
|
717
|
+
return /* @__PURE__ */ _(
|
|
718
|
+
P,
|
|
719
719
|
{
|
|
720
720
|
sx: {
|
|
721
721
|
position: "relative",
|
|
@@ -725,7 +725,7 @@ function xa({
|
|
|
725
725
|
xs: `${s.xs}/${c.xs}`,
|
|
726
726
|
md: `${s.md}/${c.md}`
|
|
727
727
|
},
|
|
728
|
-
borderRadius: { xs: `${
|
|
728
|
+
borderRadius: { xs: `${f.xs}px`, md: `${f.md}px` },
|
|
729
729
|
boxSizing: "border-box",
|
|
730
730
|
overflow: "visible",
|
|
731
731
|
pb: { xs: `${u.xs}px`, md: `${u.md}px` },
|
|
@@ -742,7 +742,7 @@ function xa({
|
|
|
742
742
|
},
|
|
743
743
|
children: [
|
|
744
744
|
/* @__PURE__ */ t(
|
|
745
|
-
|
|
745
|
+
P,
|
|
746
746
|
{
|
|
747
747
|
sx: {
|
|
748
748
|
position: "absolute",
|
|
@@ -751,7 +751,7 @@ function xa({
|
|
|
751
751
|
overflow: "hidden"
|
|
752
752
|
},
|
|
753
753
|
children: o ? /* @__PURE__ */ t(
|
|
754
|
-
|
|
754
|
+
H,
|
|
755
755
|
{
|
|
756
756
|
variant: "rectangular",
|
|
757
757
|
width: "100%",
|
|
@@ -776,7 +776,7 @@ function xa({
|
|
|
776
776
|
}
|
|
777
777
|
),
|
|
778
778
|
/* @__PURE__ */ t(
|
|
779
|
-
|
|
779
|
+
P,
|
|
780
780
|
{
|
|
781
781
|
component: "span",
|
|
782
782
|
sx: {
|
|
@@ -812,8 +812,8 @@ const wa = ({
|
|
|
812
812
|
onClick: r
|
|
813
813
|
}) => {
|
|
814
814
|
var i;
|
|
815
|
-
return /* @__PURE__ */
|
|
816
|
-
|
|
815
|
+
return /* @__PURE__ */ _(
|
|
816
|
+
P,
|
|
817
817
|
{
|
|
818
818
|
onClick: r,
|
|
819
819
|
sx: {
|
|
@@ -837,7 +837,7 @@ const wa = ({
|
|
|
837
837
|
},
|
|
838
838
|
children: [
|
|
839
839
|
/* @__PURE__ */ t(
|
|
840
|
-
|
|
840
|
+
P,
|
|
841
841
|
{
|
|
842
842
|
component: "img",
|
|
843
843
|
src: e,
|
|
@@ -853,7 +853,7 @@ const wa = ({
|
|
|
853
853
|
}
|
|
854
854
|
),
|
|
855
855
|
/* @__PURE__ */ t(
|
|
856
|
-
|
|
856
|
+
P,
|
|
857
857
|
{
|
|
858
858
|
className: "orc-live-provider-label",
|
|
859
859
|
sx: {
|
|
@@ -883,8 +883,8 @@ const wa = ({
|
|
|
883
883
|
]
|
|
884
884
|
}
|
|
885
885
|
);
|
|
886
|
-
},
|
|
887
|
-
|
|
886
|
+
}, qe = 12, ze = ({ r: e = 16 }) => /* @__PURE__ */ t(P, { sx: { width: "100%", height: "100%", borderRadius: e, overflow: "hidden" }, children: /* @__PURE__ */ t(
|
|
887
|
+
H,
|
|
888
888
|
{
|
|
889
889
|
variant: "rectangular",
|
|
890
890
|
width: "100%",
|
|
@@ -907,9 +907,9 @@ const wa = ({
|
|
|
907
907
|
}) => {
|
|
908
908
|
var i, s;
|
|
909
909
|
if (a === "mosaic") {
|
|
910
|
-
const c = e[0],
|
|
911
|
-
return /* @__PURE__ */
|
|
912
|
-
|
|
910
|
+
const c = e[0], f = e.slice(1, 5);
|
|
911
|
+
return /* @__PURE__ */ _(
|
|
912
|
+
P,
|
|
913
913
|
{
|
|
914
914
|
sx: {
|
|
915
915
|
display: "grid",
|
|
@@ -926,14 +926,14 @@ const wa = ({
|
|
|
926
926
|
xs: "104px",
|
|
927
927
|
md: "152px"
|
|
928
928
|
},
|
|
929
|
-
columnGap: `${
|
|
930
|
-
rowGap: `${
|
|
929
|
+
columnGap: `${qe}px`,
|
|
930
|
+
rowGap: `${qe}px`,
|
|
931
931
|
alignItems: "stretch",
|
|
932
932
|
justifyItems: "stretch"
|
|
933
933
|
},
|
|
934
934
|
children: [
|
|
935
935
|
/* @__PURE__ */ t(
|
|
936
|
-
|
|
936
|
+
P,
|
|
937
937
|
{
|
|
938
938
|
sx: {
|
|
939
939
|
width: { xs: 184, md: 280 },
|
|
@@ -942,7 +942,7 @@ const wa = ({
|
|
|
942
942
|
overflow: "hidden",
|
|
943
943
|
borderRadius: 2
|
|
944
944
|
},
|
|
945
|
-
children: o ? /* @__PURE__ */ t(
|
|
945
|
+
children: o ? /* @__PURE__ */ t(ze, {}) : c && /* @__PURE__ */ t(
|
|
946
946
|
Te,
|
|
947
947
|
{
|
|
948
948
|
imageUrl: `https://olimpo.bet${(s = (i = c.background) != null ? i : c.imageUrl) != null ? s : ""}`,
|
|
@@ -953,10 +953,10 @@ const wa = ({
|
|
|
953
953
|
)
|
|
954
954
|
}
|
|
955
955
|
),
|
|
956
|
-
(o ? Array.from({ length: 4 }) :
|
|
956
|
+
(o ? Array.from({ length: 4 }) : f).map((h, u) => {
|
|
957
957
|
var m, d;
|
|
958
958
|
return /* @__PURE__ */ t(
|
|
959
|
-
|
|
959
|
+
P,
|
|
960
960
|
{
|
|
961
961
|
sx: {
|
|
962
962
|
width: { xs: 104, md: 152 },
|
|
@@ -964,7 +964,7 @@ const wa = ({
|
|
|
964
964
|
overflow: "hidden",
|
|
965
965
|
borderRadius: 2
|
|
966
966
|
},
|
|
967
|
-
children: o ? /* @__PURE__ */ t(
|
|
967
|
+
children: o ? /* @__PURE__ */ t(ze, {}) : /* @__PURE__ */ t(
|
|
968
968
|
Te,
|
|
969
969
|
{
|
|
970
970
|
imageUrl: `https://olimpo.bet${(d = (m = h.background) != null ? m : h.imageUrl) != null ? d : ""}`,
|
|
@@ -982,7 +982,7 @@ const wa = ({
|
|
|
982
982
|
);
|
|
983
983
|
}
|
|
984
984
|
return /* @__PURE__ */ t(
|
|
985
|
-
|
|
985
|
+
P,
|
|
986
986
|
{
|
|
987
987
|
sx: {
|
|
988
988
|
display: "grid",
|
|
@@ -994,26 +994,26 @@ const wa = ({
|
|
|
994
994
|
xs: "repeat(2, 112px)",
|
|
995
995
|
md: "repeat(2, 168px)"
|
|
996
996
|
},
|
|
997
|
-
gap: `${
|
|
997
|
+
gap: `${qe}px`,
|
|
998
998
|
gridAutoFlow: "column"
|
|
999
999
|
},
|
|
1000
|
-
children: (o ? Array.from({ length: r }) : e).map((c,
|
|
1000
|
+
children: (o ? Array.from({ length: r }) : e).map((c, f) => {
|
|
1001
1001
|
var h, u, m;
|
|
1002
1002
|
return /* @__PURE__ */ t(
|
|
1003
|
-
|
|
1003
|
+
P,
|
|
1004
1004
|
{
|
|
1005
1005
|
sx: { overflow: "hidden", borderRadius: 2 },
|
|
1006
|
-
children: o ? /* @__PURE__ */ t(
|
|
1006
|
+
children: o ? /* @__PURE__ */ t(ze, {}) : /* @__PURE__ */ t(
|
|
1007
1007
|
Te,
|
|
1008
1008
|
{
|
|
1009
1009
|
imageUrl: `https://olimpo.bet${(u = (h = c.background) != null ? h : c.imageUrl) != null ? u : ""}`,
|
|
1010
1010
|
size: "sm",
|
|
1011
1011
|
fillParent: !0,
|
|
1012
|
-
onClick: () => n == null ? void 0 : n(c,
|
|
1012
|
+
onClick: () => n == null ? void 0 : n(c, f)
|
|
1013
1013
|
}
|
|
1014
1014
|
)
|
|
1015
1015
|
},
|
|
1016
|
-
o ? `sk-${
|
|
1016
|
+
o ? `sk-${f}` : (m = c.id) != null ? m : f
|
|
1017
1017
|
);
|
|
1018
1018
|
})
|
|
1019
1019
|
}
|
|
@@ -1027,11 +1027,11 @@ const wa = ({
|
|
|
1027
1027
|
backgroundImage: i,
|
|
1028
1028
|
alt: s,
|
|
1029
1029
|
className: c = "",
|
|
1030
|
-
variant:
|
|
1030
|
+
variant: f = "small"
|
|
1031
1031
|
}) => {
|
|
1032
|
-
const h = a ? a.slice(0, 2) : "", u = a ? a.slice(2) : "", m =
|
|
1033
|
-
return /* @__PURE__ */
|
|
1034
|
-
|
|
1032
|
+
const h = a ? a.slice(0, 2) : "", u = a ? a.slice(2) : "", m = f === "large";
|
|
1033
|
+
return /* @__PURE__ */ _(
|
|
1034
|
+
P,
|
|
1035
1035
|
{
|
|
1036
1036
|
className: c,
|
|
1037
1037
|
sx: {
|
|
@@ -1045,7 +1045,7 @@ const wa = ({
|
|
|
1045
1045
|
},
|
|
1046
1046
|
children: [
|
|
1047
1047
|
i && /* @__PURE__ */ t(
|
|
1048
|
-
|
|
1048
|
+
P,
|
|
1049
1049
|
{
|
|
1050
1050
|
sx: {
|
|
1051
1051
|
position: "relative",
|
|
@@ -1058,7 +1058,7 @@ const wa = ({
|
|
|
1058
1058
|
overflow: "hidden"
|
|
1059
1059
|
},
|
|
1060
1060
|
children: /* @__PURE__ */ t(
|
|
1061
|
-
|
|
1061
|
+
P,
|
|
1062
1062
|
{
|
|
1063
1063
|
component: "img",
|
|
1064
1064
|
src: i,
|
|
@@ -1078,7 +1078,7 @@ const wa = ({
|
|
|
1078
1078
|
}
|
|
1079
1079
|
),
|
|
1080
1080
|
/* @__PURE__ */ t(
|
|
1081
|
-
|
|
1081
|
+
P,
|
|
1082
1082
|
{
|
|
1083
1083
|
sx: {
|
|
1084
1084
|
position: "absolute",
|
|
@@ -1091,8 +1091,8 @@ const wa = ({
|
|
|
1091
1091
|
pl: "14%",
|
|
1092
1092
|
pr: { xs: "14%", lg: "15%" }
|
|
1093
1093
|
},
|
|
1094
|
-
children: /* @__PURE__ */
|
|
1095
|
-
|
|
1094
|
+
children: /* @__PURE__ */ _(
|
|
1095
|
+
P,
|
|
1096
1096
|
{
|
|
1097
1097
|
sx: {
|
|
1098
1098
|
maxWidth: "60%",
|
|
@@ -1112,8 +1112,8 @@ const wa = ({
|
|
|
1112
1112
|
children: e
|
|
1113
1113
|
}
|
|
1114
1114
|
),
|
|
1115
|
-
a && /* @__PURE__ */
|
|
1116
|
-
|
|
1115
|
+
a && /* @__PURE__ */ _(
|
|
1116
|
+
P,
|
|
1117
1117
|
{
|
|
1118
1118
|
component: "p",
|
|
1119
1119
|
sx: {
|
|
@@ -1131,7 +1131,7 @@ const wa = ({
|
|
|
1131
1131
|
},
|
|
1132
1132
|
children: [
|
|
1133
1133
|
/* @__PURE__ */ t(
|
|
1134
|
-
|
|
1134
|
+
P,
|
|
1135
1135
|
{
|
|
1136
1136
|
component: "span",
|
|
1137
1137
|
sx: { fontSize: { xs: 35, md: 48 }, mr: 0.5 },
|
|
@@ -1139,7 +1139,7 @@ const wa = ({
|
|
|
1139
1139
|
}
|
|
1140
1140
|
),
|
|
1141
1141
|
/* @__PURE__ */ t(
|
|
1142
|
-
|
|
1142
|
+
P,
|
|
1143
1143
|
{
|
|
1144
1144
|
component: "span",
|
|
1145
1145
|
sx: { fontSize: { xs: 52, md: 77 } },
|
|
@@ -1178,7 +1178,7 @@ const wa = ({
|
|
|
1178
1178
|
imgSrcMobile: r,
|
|
1179
1179
|
imgSrcDesktopBg: i,
|
|
1180
1180
|
imgSrcDesktopLogo: s
|
|
1181
|
-
}) => /* @__PURE__ */
|
|
1181
|
+
}) => /* @__PURE__ */ _(pe, { children: [
|
|
1182
1182
|
/* @__PURE__ */ t("div", { className: "orc-co-bgMobile", children: /* @__PURE__ */ t(
|
|
1183
1183
|
"img",
|
|
1184
1184
|
{
|
|
@@ -1187,7 +1187,7 @@ const wa = ({
|
|
|
1187
1187
|
className: "orc-co-bgMobileImg"
|
|
1188
1188
|
}
|
|
1189
1189
|
) }),
|
|
1190
|
-
/* @__PURE__ */ t("div", { className: "orc-co-bgDesktop", children: /* @__PURE__ */
|
|
1190
|
+
/* @__PURE__ */ t("div", { className: "orc-co-bgDesktop", children: /* @__PURE__ */ _("div", { className: "orc-co-desktopInner", children: [
|
|
1191
1191
|
i && /* @__PURE__ */ t("div", { className: "orc-co-fillHost", children: /* @__PURE__ */ t(
|
|
1192
1192
|
"img",
|
|
1193
1193
|
{
|
|
@@ -1196,7 +1196,7 @@ const wa = ({
|
|
|
1196
1196
|
className: "orc-co-bgDesktopImg"
|
|
1197
1197
|
}
|
|
1198
1198
|
) }),
|
|
1199
|
-
/* @__PURE__ */
|
|
1199
|
+
/* @__PURE__ */ _("div", { className: "orc-co-desktopContent", children: [
|
|
1200
1200
|
s && /* @__PURE__ */ t(
|
|
1201
1201
|
"img",
|
|
1202
1202
|
{
|
|
@@ -1209,14 +1209,14 @@ const wa = ({
|
|
|
1209
1209
|
/* @__PURE__ */ t(Y, { onClick: n, variant: "primary", size: "md", children: a })
|
|
1210
1210
|
] })
|
|
1211
1211
|
] }) }),
|
|
1212
|
-
/* @__PURE__ */
|
|
1212
|
+
/* @__PURE__ */ _("div", { className: "orc-co-bottom", children: [
|
|
1213
1213
|
/* @__PURE__ */ t("p", { className: "orc-co-caption", children: e }),
|
|
1214
1214
|
/* @__PURE__ */ t(Y, { onClick: n, variant: "primary", size: "md", children: a })
|
|
1215
1215
|
] })
|
|
1216
|
-
] }), Ia = "oraculo__OraculoEventCombinadasCard-module__card___ulQeY",
|
|
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,
|
|
1218
|
-
combinadas:
|
|
1219
|
-
combinadasScroll:
|
|
1218
|
+
combinadas: Oa,
|
|
1219
|
+
combinadasScroll: Ea,
|
|
1220
1220
|
apuestaItem: Ca,
|
|
1221
1221
|
lineContainer: Ta,
|
|
1222
1222
|
circle: ka,
|
|
@@ -1234,7 +1234,7 @@ function Ba() {
|
|
|
1234
1234
|
function Aa() {
|
|
1235
1235
|
window.location.href = "/deportes#sports-hub/football";
|
|
1236
1236
|
}
|
|
1237
|
-
function
|
|
1237
|
+
function Ra() {
|
|
1238
1238
|
window.location.href = "/deportes#specials";
|
|
1239
1239
|
}
|
|
1240
1240
|
async function gt(e) {
|
|
@@ -1257,38 +1257,38 @@ const ht = Nt(void 0), bt = ({ children: e, docId: a, moduleId: n }) => {
|
|
|
1257
1257
|
throw new Error("useDocContext debe usarse dentro de DocIdProvider");
|
|
1258
1258
|
return e;
|
|
1259
1259
|
}, ne = () => vt().docId, le = () => vt().moduleId;
|
|
1260
|
-
function
|
|
1260
|
+
function La({ coupon: e }) {
|
|
1261
1261
|
var h;
|
|
1262
1262
|
const a = ae(), n = ne();
|
|
1263
1263
|
function o(u) {
|
|
1264
|
-
var
|
|
1264
|
+
var g, b;
|
|
1265
1265
|
const m = [], d = Array.from(
|
|
1266
1266
|
new Map(
|
|
1267
|
-
((
|
|
1267
|
+
((g = u == null ? void 0 : u.events) != null ? g : []).filter(Boolean).map((x) => [x.id, x])
|
|
1268
1268
|
).values()
|
|
1269
1269
|
);
|
|
1270
|
-
return d.forEach((
|
|
1271
|
-
var
|
|
1272
|
-
const
|
|
1273
|
-
|
|
1274
|
-
var D, O,
|
|
1275
|
-
if (!((D =
|
|
1276
|
-
const
|
|
1277
|
-
if (!
|
|
1278
|
-
let
|
|
1279
|
-
const
|
|
1280
|
-
["Más de", "Mas de", "Over"].includes(
|
|
1281
|
-
id:
|
|
1282
|
-
value:
|
|
1283
|
-
label: (R = (
|
|
1284
|
-
odds: (B =
|
|
1285
|
-
position: (A =
|
|
1286
|
-
eventId:
|
|
1270
|
+
return d.forEach((x) => {
|
|
1271
|
+
var M;
|
|
1272
|
+
const C = (M = x.betoffers) != null ? M : [], p = x.homeName, w = x.awayName;
|
|
1273
|
+
C.forEach((z) => {
|
|
1274
|
+
var D, O, v, I, R, B, A;
|
|
1275
|
+
if (!((D = z == null ? void 0 : z.outcomes) != null && D.length)) return;
|
|
1276
|
+
const y = z.outcomes[0];
|
|
1277
|
+
if (!y) return;
|
|
1278
|
+
let k = "";
|
|
1279
|
+
const q = y != null && y.line ? y.line / 1e3 : "";
|
|
1280
|
+
["Más de", "Mas de", "Over"].includes(y.label) ? (k = `Más de ${q}`, y.participant && (k = `${y.participant} - ${k}`)) : ["Menos de", "Menos", "Under"].includes(y.label) ? (k = `Menos de ${q}`, y.participant && (k = `${y.participant} - ${k}`)) : ["Sí", "No"].includes(y.label) ? (k = y.label, y.participant && (k = `${y.participant} - ${k}`)) : ["1X", "12", "X2"].includes(y.label) ? (y.label === "1X" && (k = `${p} o Empate`), y.label === "12" && (k = `${p} o ${w}`), y.label === "X2" && (k = `${w} o Empate`)) : (k = (v = (O = y.participant) != null ? O : y.label) != null ? v : "", q !== "" && k === y.label && (k = `${y.label} ${q}`)), m.push({
|
|
1281
|
+
id: y.id,
|
|
1282
|
+
value: k,
|
|
1283
|
+
label: (R = (I = z.criterion) == null ? void 0 : I.label) != null ? R : "",
|
|
1284
|
+
odds: (B = y.odds) != null ? B : 0,
|
|
1285
|
+
position: (A = y.position) != null ? A : 0,
|
|
1286
|
+
eventId: x.id
|
|
1287
1287
|
});
|
|
1288
1288
|
});
|
|
1289
1289
|
}), {
|
|
1290
|
-
outcomes: m.sort((
|
|
1291
|
-
total: Number((
|
|
1290
|
+
outcomes: m.sort((x, C) => x.position - C.position),
|
|
1291
|
+
total: Number((b = u == null ? void 0 : u.combinadoTotal) != null ? b : 0).toLocaleString("en-US", {
|
|
1292
1292
|
minimumFractionDigits: 2,
|
|
1293
1293
|
maximumFractionDigits: 2
|
|
1294
1294
|
}),
|
|
@@ -1302,44 +1302,44 @@ function Ra({ coupon: e }) {
|
|
|
1302
1302
|
if (m.length === 1)
|
|
1303
1303
|
return `/deportes#event/${m[0].id}`;
|
|
1304
1304
|
const d = m[0].groupId;
|
|
1305
|
-
if (m.every((
|
|
1306
|
-
const
|
|
1307
|
-
if (Array.isArray(
|
|
1308
|
-
return `/deportes#sports-hub/${
|
|
1305
|
+
if (m.every((b) => b.groupId === d)) {
|
|
1306
|
+
const b = m[0].path;
|
|
1307
|
+
if (Array.isArray(b) && b.length > 0)
|
|
1308
|
+
return `/deportes#sports-hub/${b.map((C) => C.termKey).filter(Boolean).join("/")}`;
|
|
1309
1309
|
}
|
|
1310
1310
|
return "/deportes#home";
|
|
1311
1311
|
}
|
|
1312
1312
|
const i = (u, m) => {
|
|
1313
|
-
const d = Array.isArray(u) ? u : [u],
|
|
1313
|
+
const d = Array.isArray(u) ? u : [u], g = Array.from(
|
|
1314
1314
|
new Set(
|
|
1315
|
-
s.outcomes.map((
|
|
1316
|
-
var
|
|
1317
|
-
const
|
|
1318
|
-
return (
|
|
1315
|
+
s.outcomes.map((C) => {
|
|
1316
|
+
var w;
|
|
1317
|
+
const p = f.get(Number(C.eventId));
|
|
1318
|
+
return (w = p == null ? void 0 : p.name) != null ? w : "";
|
|
1319
1319
|
})
|
|
1320
1320
|
)
|
|
1321
|
-
).filter(Boolean),
|
|
1321
|
+
).filter(Boolean), b = g.length > 0 ? g.join(" + ") : JSON.stringify(d), x = m ? `${b} - Cuota: ${m}` : b;
|
|
1322
1322
|
a({
|
|
1323
1323
|
element: "evento_semana_outcome",
|
|
1324
|
-
label: `Landing: ${n} - OraculoEventCombinadasCard - Click: ${
|
|
1324
|
+
label: `Landing: ${n} - OraculoEventCombinadasCard - Click: ${x}`,
|
|
1325
1325
|
target: "/deportes#in-play",
|
|
1326
1326
|
event_type: "click",
|
|
1327
1327
|
module_id: 301,
|
|
1328
1328
|
metadata: {
|
|
1329
1329
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1330
1330
|
},
|
|
1331
|
-
tags: { section: "OraculoEventCombinadasCard", outcomes:
|
|
1331
|
+
tags: { section: "OraculoEventCombinadasCard", outcomes: x }
|
|
1332
1332
|
}), Ue(r(e), u);
|
|
1333
1333
|
};
|
|
1334
1334
|
if (!((h = e == null ? void 0 : e.events) != null && h.length)) return null;
|
|
1335
|
-
const s = o(e), c = s.outcomes.reduce((u, m) => (u[m.eventId] || (u[m.eventId] = []), u[m.eventId].push(m), u), {}),
|
|
1335
|
+
const s = o(e), c = s.outcomes.reduce((u, m) => (u[m.eventId] || (u[m.eventId] = []), u[m.eventId].push(m), u), {}), f = new Map(
|
|
1336
1336
|
s.events.map((u) => [u.id, u])
|
|
1337
1337
|
);
|
|
1338
|
-
return /* @__PURE__ */
|
|
1339
|
-
/* @__PURE__ */ t("div", { className: ce.combinadas, children: /* @__PURE__ */ t("div", { className: ce.combinadasScroll, children: /* @__PURE__ */ t(
|
|
1340
|
-
const d =
|
|
1341
|
-
return d ? /* @__PURE__ */
|
|
1342
|
-
|
|
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(c).reverse().map(([u, m]) => {
|
|
1340
|
+
const d = f.get(Number(u));
|
|
1341
|
+
return d ? /* @__PURE__ */ _(
|
|
1342
|
+
K,
|
|
1343
1343
|
{
|
|
1344
1344
|
direction: "column",
|
|
1345
1345
|
spacing: 0.5,
|
|
@@ -1360,23 +1360,23 @@ function Ra({ coupon: e }) {
|
|
|
1360
1360
|
src: "/assets/img/home/Combinadas/line.png"
|
|
1361
1361
|
}
|
|
1362
1362
|
),
|
|
1363
|
-
m.map((
|
|
1364
|
-
/* @__PURE__ */
|
|
1363
|
+
m.map((g, b) => /* @__PURE__ */ _("div", { className: ce.apuestaItem, children: [
|
|
1364
|
+
/* @__PURE__ */ _("div", { className: ce.lineContainer, children: [
|
|
1365
1365
|
/* @__PURE__ */ t("div", { className: ce.circle }),
|
|
1366
|
-
|
|
1366
|
+
b < m.length - 1 && /* @__PURE__ */ t("div", { className: ce.line })
|
|
1367
1367
|
] }),
|
|
1368
|
-
/* @__PURE__ */
|
|
1369
|
-
/* @__PURE__ */ t("strong", { children:
|
|
1368
|
+
/* @__PURE__ */ _("div", { className: ce.apuestaText, children: [
|
|
1369
|
+
/* @__PURE__ */ t("strong", { children: g.value }),
|
|
1370
1370
|
" | ",
|
|
1371
|
-
|
|
1371
|
+
g.label
|
|
1372
1372
|
] })
|
|
1373
|
-
] }, `${u}-${
|
|
1373
|
+
] }, `${u}-${b}`))
|
|
1374
1374
|
]
|
|
1375
1375
|
},
|
|
1376
1376
|
u
|
|
1377
1377
|
) : null;
|
|
1378
1378
|
}) }) }) }),
|
|
1379
|
-
/* @__PURE__ */
|
|
1379
|
+
/* @__PURE__ */ _(
|
|
1380
1380
|
"button",
|
|
1381
1381
|
{
|
|
1382
1382
|
onClick: () => i(
|
|
@@ -1385,7 +1385,7 @@ function Ra({ coupon: e }) {
|
|
|
1385
1385
|
),
|
|
1386
1386
|
className: ce.cuotaTotal,
|
|
1387
1387
|
children: [
|
|
1388
|
-
/* @__PURE__ */
|
|
1388
|
+
/* @__PURE__ */ _("span", { children: [
|
|
1389
1389
|
"Cuota total: ",
|
|
1390
1390
|
/* @__PURE__ */ t("strong", { children: s.total })
|
|
1391
1391
|
] }),
|
|
@@ -1416,7 +1416,7 @@ const de = {
|
|
|
1416
1416
|
"orc-btn--full": "oraculo__OraculoButtonBet-module__orc-btn--full___z-Myo",
|
|
1417
1417
|
"orc-btn--fullHeight": "oraculo__OraculoButtonBet-module__orc-btn--fullHeight___pCxq1"
|
|
1418
1418
|
};
|
|
1419
|
-
function
|
|
1419
|
+
function Fa({
|
|
1420
1420
|
children: e,
|
|
1421
1421
|
onClick: a,
|
|
1422
1422
|
href: n,
|
|
@@ -1425,31 +1425,31 @@ function Pa({
|
|
|
1425
1425
|
type: i = "button",
|
|
1426
1426
|
disabled: s = !1,
|
|
1427
1427
|
variant: c = "primary",
|
|
1428
|
-
size:
|
|
1428
|
+
size: f,
|
|
1429
1429
|
fullWidth: h = !1,
|
|
1430
1430
|
fullHeight: u = !1,
|
|
1431
1431
|
className: m = "",
|
|
1432
1432
|
ariaLabel: d,
|
|
1433
|
-
leftIcon:
|
|
1434
|
-
rightIcon:
|
|
1435
|
-
iconOnly:
|
|
1433
|
+
leftIcon: g,
|
|
1434
|
+
rightIcon: b,
|
|
1435
|
+
iconOnly: x
|
|
1436
1436
|
}) {
|
|
1437
|
-
const
|
|
1437
|
+
const C = !!e && e !== !0, M = (!!g ? 1 : 0) + (!!b ? 1 : 0) == 1, z = x != null ? x : M && !C, y = [
|
|
1438
1438
|
de["orc-btn"],
|
|
1439
1439
|
// base
|
|
1440
1440
|
de[`orc-btn--${c}`],
|
|
1441
1441
|
// variant primary/secondary/tertiary
|
|
1442
|
-
|
|
1442
|
+
f ? de[`orc-btn--${f}`] : "",
|
|
1443
1443
|
// sm / md / lg
|
|
1444
1444
|
h ? de["orc-btn--full"] : "",
|
|
1445
1445
|
u ? de["orc-btn--fullHeight"] : "",
|
|
1446
|
-
|
|
1446
|
+
z ? de["orc-btn--iconOnly"] : "",
|
|
1447
1447
|
m
|
|
1448
|
-
].filter(Boolean).join(" "),
|
|
1449
|
-
|
|
1450
|
-
!
|
|
1451
|
-
|
|
1452
|
-
] }),
|
|
1448
|
+
].filter(Boolean).join(" "), k = /* @__PURE__ */ _(pe, { children: [
|
|
1449
|
+
g && /* @__PURE__ */ t("span", { className: de["orc-btn__icon"], children: g }),
|
|
1450
|
+
!z && /* @__PURE__ */ t("span", { className: de["orc-btn__label"], children: e }),
|
|
1451
|
+
b && /* @__PURE__ */ t("span", { className: de["orc-btn__icon"], children: b })
|
|
1452
|
+
] }), q = s ? !0 : void 0;
|
|
1453
1453
|
return n ? /* @__PURE__ */ t(
|
|
1454
1454
|
it,
|
|
1455
1455
|
{
|
|
@@ -1457,28 +1457,28 @@ function Pa({
|
|
|
1457
1457
|
target: o,
|
|
1458
1458
|
rel: r,
|
|
1459
1459
|
"aria-label": d,
|
|
1460
|
-
"aria-disabled":
|
|
1461
|
-
tabIndex:
|
|
1462
|
-
className:
|
|
1463
|
-
onClick:
|
|
1464
|
-
children:
|
|
1460
|
+
"aria-disabled": q,
|
|
1461
|
+
tabIndex: q ? -1 : void 0,
|
|
1462
|
+
className: y,
|
|
1463
|
+
onClick: q ? (D) => D.preventDefault() : a,
|
|
1464
|
+
children: k
|
|
1465
1465
|
}
|
|
1466
1466
|
) : /* @__PURE__ */ t(
|
|
1467
1467
|
"button",
|
|
1468
1468
|
{
|
|
1469
1469
|
type: i,
|
|
1470
1470
|
onClick: a,
|
|
1471
|
-
disabled: !!
|
|
1471
|
+
disabled: !!q,
|
|
1472
1472
|
"aria-label": d,
|
|
1473
|
-
className:
|
|
1474
|
-
children:
|
|
1473
|
+
className: y,
|
|
1474
|
+
children: k
|
|
1475
1475
|
}
|
|
1476
1476
|
);
|
|
1477
1477
|
}
|
|
1478
|
-
const
|
|
1479
|
-
cardWrapper:
|
|
1480
|
-
customButtonLabel:
|
|
1481
|
-
customButtonDisabled:
|
|
1478
|
+
const qa = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", za = "oraculo__OraculoEventEnVivoCard-module__customButtonLabel___QRhk7", Pa = "oraculo__OraculoEventEnVivoCard-module__customButtonDisabled___jwioF", ke = {
|
|
1479
|
+
cardWrapper: qa,
|
|
1480
|
+
customButtonLabel: za,
|
|
1481
|
+
customButtonDisabled: Pa
|
|
1482
1482
|
}, Xe = {
|
|
1483
1483
|
base: "FFFFFF",
|
|
1484
1484
|
sleeve: "FFFFFF",
|
|
@@ -1501,11 +1501,11 @@ const La = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", Fa = "
|
|
|
1501
1501
|
return o || (a === "home" ? Xe : Ye);
|
|
1502
1502
|
};
|
|
1503
1503
|
function Da({ event: e, liveData: a, betOffers: n, jersey: o }) {
|
|
1504
|
-
var c,
|
|
1504
|
+
var c, f, h, u, m, d, g, b, x, C, p;
|
|
1505
1505
|
const r = n == null ? void 0 : n.find(
|
|
1506
|
-
(
|
|
1507
|
-
var
|
|
1508
|
-
return ((
|
|
1506
|
+
(w) => {
|
|
1507
|
+
var M;
|
|
1508
|
+
return ((M = w.betOfferType) == null ? void 0 : M.id) === 2;
|
|
1509
1509
|
}
|
|
1510
1510
|
), i = {
|
|
1511
1511
|
englishLabel: "",
|
|
@@ -1521,28 +1521,28 @@ function Da({ event: e, liveData: a, betOffers: n, jersey: o }) {
|
|
|
1521
1521
|
{ ...i, id: -2, label: "X", odds: void 0 },
|
|
1522
1522
|
{ ...i, id: -3, label: "2", odds: void 0 }
|
|
1523
1523
|
];
|
|
1524
|
-
return /* @__PURE__ */ t("div", { className: ke.cardWrapper, children: /* @__PURE__ */
|
|
1525
|
-
/* @__PURE__ */
|
|
1524
|
+
return /* @__PURE__ */ t("div", { className: ke.cardWrapper, children: /* @__PURE__ */ _(K, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1525
|
+
/* @__PURE__ */ _(K, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
1526
1526
|
/* @__PURE__ */ t(
|
|
1527
1527
|
Ht,
|
|
1528
1528
|
{
|
|
1529
|
-
title: (h = (
|
|
1529
|
+
title: (h = (f = (c = e == null ? void 0 : e.path) == null ? void 0 : c[0]) == null ? void 0 : f.name) != null ? h : "",
|
|
1530
1530
|
subtitle: (u = e == null ? void 0 : e.group) != null ? u : "",
|
|
1531
1531
|
live: !0,
|
|
1532
1532
|
time: ((m = a == null ? void 0 : a.matchClock) == null ? void 0 : m.minute) != null ? `${a.matchClock.minute}'` : ""
|
|
1533
1533
|
}
|
|
1534
1534
|
),
|
|
1535
|
-
/* @__PURE__ */ t("div", { style: { padding: "0 4px" }, children: /* @__PURE__ */
|
|
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: ((
|
|
1537
|
+
/* @__PURE__ */ t(pt, { text: ((g = (d = a == null ? void 0 : a.score) == null ? void 0 : d.home) != null ? g : 0) + ":" + ((x = (b = a == null ? void 0 : a.score) == null ? void 0 : b.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
|
-
/* @__PURE__ */
|
|
1542
|
-
/* @__PURE__ */ t(me, { spacing: 1, children: ((
|
|
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:
|
|
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((w, M) => /* @__PURE__ */ t(ut, { text: w.label.toUpperCase() }, M)) }),
|
|
1543
|
+
/* @__PURE__ */ t(me, { spacing: 2, children: ((p = r == null ? void 0 : r.outcomes) != null ? p : s).map((w, M) => /* @__PURE__ */ t(Fa, { variant: "primary", disabled: w.odds == null || (r == null ? void 0 : r.cashOutStatus) == "SUSPENDED", onClick: () => {
|
|
1544
|
+
Ue("/deportes#event/live/" + e.id, w.id);
|
|
1545
|
+
}, className: ke.customButtonDisabled, children: /* @__PURE__ */ t("span", { className: ke.customButtonLabel, children: w.odds === void 0 ? "" : (w.odds / 1e3).toFixed(2) }) }, M)) })
|
|
1546
1546
|
] })
|
|
1547
1547
|
] }) });
|
|
1548
1548
|
}
|
|
@@ -1559,43 +1559,43 @@ 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, c,
|
|
1562
|
+
var s, c, f, h, u, m, d;
|
|
1563
1563
|
const n = ae(), o = ne();
|
|
1564
|
-
function r(
|
|
1565
|
-
const
|
|
1566
|
-
let
|
|
1567
|
-
return
|
|
1564
|
+
function r(g) {
|
|
1565
|
+
const b = new Date(g), x = b.toLocaleDateString("es-ES", { weekday: "short" }).toUpperCase(), C = b.getDate().toString().padStart(2, "0"), p = (b.getMonth() + 1).toString().padStart(2, "0");
|
|
1566
|
+
let w = b.toLocaleTimeString("es-PE", { hour: "numeric", minute: "2-digit", hour12: !0 }).toUpperCase();
|
|
1567
|
+
return w = w.replace(/\./g, "").replace(/A\s*M/i, "AM").replace(/P\s*M/i, "PM"), `${x} ${C}/${p} | ${w}`;
|
|
1568
1568
|
}
|
|
1569
|
-
const i = (
|
|
1570
|
-
const
|
|
1569
|
+
const i = (g, b) => {
|
|
1570
|
+
const x = `${e.homeName} vs ${e.awayName}`, C = b ? (b / 1e3).toFixed(2) : "", p = 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: ${p}`,
|
|
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:
|
|
1581
|
-
}), Ue("/deportes#event/" + e.id,
|
|
1580
|
+
tags: { section: "OraculoEventSemanaCard", outcomes: p }
|
|
1581
|
+
}), Ue("/deportes#event/" + e.id, g);
|
|
1582
1582
|
};
|
|
1583
|
-
return /* @__PURE__ */
|
|
1583
|
+
return /* @__PURE__ */ _("div", { className: be.cardContainer, children: [
|
|
1584
1584
|
/* @__PURE__ */ t(mt, { title: (s = e == null ? void 0 : e.group) != null ? s : "" }),
|
|
1585
|
-
/* @__PURE__ */ t("div", { className: be.cardBackground, children: /* @__PURE__ */
|
|
1586
|
-
/* @__PURE__ */
|
|
1587
|
-
/* @__PURE__ */
|
|
1585
|
+
/* @__PURE__ */ t("div", { className: be.cardBackground, children: /* @__PURE__ */ _(K, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
1586
|
+
/* @__PURE__ */ _(K, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1587
|
+
/* @__PURE__ */ _("div", { className: be.equipos, children: [
|
|
1588
1588
|
/* @__PURE__ */ t($e, { name: e.homeName, size: "compact", jersey: Me(a, "home") }),
|
|
1589
1589
|
/* @__PURE__ */ t(pt, { text: "vs.", name: "", size: "small" }),
|
|
1590
1590
|
/* @__PURE__ */ t($e, { name: e.awayName, size: "compact", jersey: Me(a, "away") })
|
|
1591
1591
|
] }),
|
|
1592
1592
|
/* @__PURE__ */ t(Wa, { text: r(e.start) })
|
|
1593
1593
|
] }),
|
|
1594
|
-
/* @__PURE__ */
|
|
1595
|
-
/* @__PURE__ */ t(me, { spacing: 1, children: ((h = (
|
|
1596
|
-
/* @__PURE__ */ t("div", { className: be.jugadas, children: /* @__PURE__ */ t(me, { spacing: 1, children: ((d = (m = (u = e == null ? void 0 : e.outcome) == null ? void 0 : u[0]) == null ? void 0 : m.outcomes) != null ? d : []).map((
|
|
1597
|
-
i(
|
|
1598
|
-
}, children: (
|
|
1594
|
+
/* @__PURE__ */ _(K, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
1595
|
+
/* @__PURE__ */ t(me, { spacing: 1, children: ((h = (f = (c = e == null ? void 0 : e.outcome) == null ? void 0 : c[0]) == null ? void 0 : f.outcomes) != null ? h : []).map((g, b) => /* @__PURE__ */ t(ut, { text: g.label.toUpperCase() }, b)) }),
|
|
1596
|
+
/* @__PURE__ */ t("div", { className: be.jugadas, children: /* @__PURE__ */ t(me, { spacing: 1, children: ((d = (m = (u = e == null ? void 0 : e.outcome) == null ? void 0 : u[0]) == null ? void 0 : m.outcomes) != null ? d : []).map((g, b) => /* @__PURE__ */ t(Y, { variant: "primary", fullHeight: !0, onClick: () => {
|
|
1597
|
+
i(g.id, g.odds);
|
|
1598
|
+
}, children: (g.odds / 1e3).toFixed(2) }, b)) }) })
|
|
1599
1599
|
] })
|
|
1600
1600
|
] }) })
|
|
1601
1601
|
] });
|
|
@@ -1603,14 +1603,14 @@ function Za({ event: e, jersey: a }) {
|
|
|
1603
1603
|
function Ja({
|
|
1604
1604
|
items: e,
|
|
1605
1605
|
title: a = "Destacados",
|
|
1606
|
-
iconUrl: n,
|
|
1606
|
+
iconUrl: n = "https://d28gilnhu2bcbp.cloudfront.net/landing/1770307276612-lonuevo.webp",
|
|
1607
1607
|
onViewMore: o,
|
|
1608
1608
|
className: r = "",
|
|
1609
|
-
paddingMobile: i = "
|
|
1609
|
+
paddingMobile: i = "24px"
|
|
1610
1610
|
}) {
|
|
1611
|
-
var
|
|
1612
|
-
const s = V(null), [c,
|
|
1613
|
-
var
|
|
1611
|
+
var z;
|
|
1612
|
+
const s = V(null), [c, f] = X({ isStart: !0, isEnd: !1 }), h = ae(), u = ne(), m = le(), d = !e || e.length === 0, g = () => {
|
|
1613
|
+
var y;
|
|
1614
1614
|
h({
|
|
1615
1615
|
element: "destacados_carousel_prev",
|
|
1616
1616
|
label: `${u} - OraculoSeccionDestacados - Anterior`,
|
|
@@ -1621,9 +1621,9 @@ function Ja({
|
|
|
1621
1621
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1622
1622
|
},
|
|
1623
1623
|
tags: { section: "OraculoSeccionDestacados" }
|
|
1624
|
-
}), (
|
|
1625
|
-
},
|
|
1626
|
-
var
|
|
1624
|
+
}), (y = s.current) == null || y.prev();
|
|
1625
|
+
}, b = () => {
|
|
1626
|
+
var y;
|
|
1627
1627
|
h({
|
|
1628
1628
|
element: "destacados_carousel_next",
|
|
1629
1629
|
label: `${u} - OraculoSeccionDestacados - Siguiente`,
|
|
@@ -1634,8 +1634,8 @@ function Ja({
|
|
|
1634
1634
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1635
1635
|
},
|
|
1636
1636
|
tags: { section: "OraculoSeccionDestacados" }
|
|
1637
|
-
}), (
|
|
1638
|
-
},
|
|
1637
|
+
}), (y = s.current) == null || y.next();
|
|
1638
|
+
}, x = () => {
|
|
1639
1639
|
h({
|
|
1640
1640
|
element: "destacados_view_more",
|
|
1641
1641
|
label: `${u} - OraculoSeccionDestacados - Ver más`,
|
|
@@ -1647,13 +1647,13 @@ function Ja({
|
|
|
1647
1647
|
},
|
|
1648
1648
|
tags: { section: "OraculoSeccionDestacados" }
|
|
1649
1649
|
}), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/promociones");
|
|
1650
|
-
},
|
|
1651
|
-
if (!
|
|
1652
|
-
const
|
|
1650
|
+
}, C = (y) => {
|
|
1651
|
+
if (!y) return;
|
|
1652
|
+
const q = `https://www.olimpo.bet/promociones/${encodeURIComponent(y)}`;
|
|
1653
1653
|
h({
|
|
1654
1654
|
element: "destacados_card",
|
|
1655
|
-
label: `${u} - OraculoSeccionDestacados - Click: ${String(
|
|
1656
|
-
target:
|
|
1655
|
+
label: `${u} - OraculoSeccionDestacados - Click: ${String(y)}`,
|
|
1656
|
+
target: q,
|
|
1657
1657
|
event_type: "click",
|
|
1658
1658
|
module_id: m,
|
|
1659
1659
|
metadata: {
|
|
@@ -1661,18 +1661,18 @@ function Ja({
|
|
|
1661
1661
|
},
|
|
1662
1662
|
tags: {
|
|
1663
1663
|
section: "OraculoSeccionDestacados",
|
|
1664
|
-
promotion: String(
|
|
1664
|
+
promotion: String(y)
|
|
1665
1665
|
}
|
|
1666
|
-
}), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(
|
|
1667
|
-
},
|
|
1666
|
+
}), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(q);
|
|
1667
|
+
}, p = r || void 0, w = xe("(max-width:950px)"), M = (z = e == null ? void 0 : e.length) != null ? z : 0;
|
|
1668
1668
|
return Q(() => {
|
|
1669
|
-
if (
|
|
1670
|
-
|
|
1669
|
+
if (M === 0) {
|
|
1670
|
+
f({ isStart: !0, isEnd: !0 });
|
|
1671
1671
|
return;
|
|
1672
1672
|
}
|
|
1673
|
-
|
|
1674
|
-
}, [
|
|
1675
|
-
/* @__PURE__ */
|
|
1673
|
+
f({ isStart: !0, isEnd: !1 });
|
|
1674
|
+
}, [M, w, i]), /* @__PURE__ */ _("section", { className: p, style: { width: "100%" }, children: [
|
|
1675
|
+
/* @__PURE__ */ _(
|
|
1676
1676
|
"header",
|
|
1677
1677
|
{
|
|
1678
1678
|
style: {
|
|
@@ -1682,12 +1682,12 @@ function Ja({
|
|
|
1682
1682
|
columnGap: 12,
|
|
1683
1683
|
rowGap: 8,
|
|
1684
1684
|
marginBottom: 16,
|
|
1685
|
-
paddingLeft:
|
|
1686
|
-
paddingRight:
|
|
1685
|
+
paddingLeft: w ? i : 0,
|
|
1686
|
+
paddingRight: w ? i : 0
|
|
1687
1687
|
},
|
|
1688
1688
|
children: [
|
|
1689
1689
|
/* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
|
|
1690
|
-
/* @__PURE__ */
|
|
1690
|
+
/* @__PURE__ */ _("div", { style: { display: "flex", gap: 8 }, children: [
|
|
1691
1691
|
/* @__PURE__ */ t(
|
|
1692
1692
|
Y,
|
|
1693
1693
|
{
|
|
@@ -1695,7 +1695,7 @@ function Ja({
|
|
|
1695
1695
|
variant: "secondary",
|
|
1696
1696
|
iconOnly: !0,
|
|
1697
1697
|
leftIcon: /* @__PURE__ */ t(Ae, {}),
|
|
1698
|
-
onClick:
|
|
1698
|
+
onClick: g,
|
|
1699
1699
|
disabled: c.isStart || d
|
|
1700
1700
|
}
|
|
1701
1701
|
),
|
|
@@ -1705,13 +1705,13 @@ function Ja({
|
|
|
1705
1705
|
ariaLabel: "Siguiente",
|
|
1706
1706
|
variant: "secondary",
|
|
1707
1707
|
iconOnly: !0,
|
|
1708
|
-
rightIcon: /* @__PURE__ */ t(
|
|
1709
|
-
onClick:
|
|
1708
|
+
rightIcon: /* @__PURE__ */ t(Re, {}),
|
|
1709
|
+
onClick: b,
|
|
1710
1710
|
disabled: c.isEnd || d
|
|
1711
1711
|
}
|
|
1712
1712
|
)
|
|
1713
1713
|
] }),
|
|
1714
|
-
/* @__PURE__ */ t(Y, { variant: "secondary", onClick:
|
|
1714
|
+
/* @__PURE__ */ t(Y, { variant: "secondary", onClick: x, children: "Ver más" })
|
|
1715
1715
|
]
|
|
1716
1716
|
}
|
|
1717
1717
|
),
|
|
@@ -1723,25 +1723,25 @@ function Ja({
|
|
|
1723
1723
|
perPage: void 0,
|
|
1724
1724
|
gap: "16px",
|
|
1725
1725
|
enableHorizontalWheel: !0,
|
|
1726
|
-
showRightGradient: !
|
|
1726
|
+
showRightGradient: !w,
|
|
1727
1727
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
1728
1728
|
breakpoints: {
|
|
1729
1729
|
768: { perPage: 2, focus: "start", padding: { left: i, right: i } },
|
|
1730
1730
|
1024: { perPage: 2.5, focus: "start", padding: { left: "24px", right: "24px" } }
|
|
1731
1731
|
},
|
|
1732
|
-
renderItem: (
|
|
1732
|
+
renderItem: (y) => /* @__PURE__ */ t(
|
|
1733
1733
|
"div",
|
|
1734
1734
|
{
|
|
1735
1735
|
style: {
|
|
1736
1736
|
textAlign: "center",
|
|
1737
1737
|
cursor: "pointer"
|
|
1738
1738
|
},
|
|
1739
|
-
onClick: () =>
|
|
1739
|
+
onClick: () => C(y.promotion),
|
|
1740
1740
|
children: /* @__PURE__ */ t(
|
|
1741
1741
|
"img",
|
|
1742
1742
|
{
|
|
1743
|
-
src: `https://olimpo.bet${
|
|
1744
|
-
alt:
|
|
1743
|
+
src: `https://olimpo.bet${y.image !== "" ? y.image : y.summary_image}`,
|
|
1744
|
+
alt: y.title,
|
|
1745
1745
|
style: {
|
|
1746
1746
|
width: "100%",
|
|
1747
1747
|
height: typeof window != "undefined" && window.innerWidth < 768 ? "80px" : "137px",
|
|
@@ -1752,10 +1752,10 @@ function Ja({
|
|
|
1752
1752
|
}
|
|
1753
1753
|
)
|
|
1754
1754
|
},
|
|
1755
|
-
`${
|
|
1755
|
+
`${y.title}-${y.image}`
|
|
1756
1756
|
),
|
|
1757
|
-
onMove: ({ isStart:
|
|
1758
|
-
|
|
1757
|
+
onMove: ({ isStart: y, isEnd: k, source: q }) => {
|
|
1758
|
+
f({ isStart: y, isEnd: k }), q === "user" && h({
|
|
1759
1759
|
element: "destacados_carousel_slide",
|
|
1760
1760
|
label: `${u} - OraculoSeccionDestacados - Slide Carousel`,
|
|
1761
1761
|
target: "carousel",
|
|
@@ -1763,8 +1763,8 @@ function Ja({
|
|
|
1763
1763
|
module_id: m,
|
|
1764
1764
|
metadata: {
|
|
1765
1765
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
1766
|
-
isStart:
|
|
1767
|
-
isEnd:
|
|
1766
|
+
isStart: y,
|
|
1767
|
+
isEnd: k
|
|
1768
1768
|
},
|
|
1769
1769
|
tags: { section: "OraculoSeccionDestacados" }
|
|
1770
1770
|
});
|
|
@@ -1781,7 +1781,7 @@ function _t() {
|
|
|
1781
1781
|
function Xa(e) {
|
|
1782
1782
|
_t().extras = e;
|
|
1783
1783
|
}
|
|
1784
|
-
function
|
|
1784
|
+
function ie(e) {
|
|
1785
1785
|
var a;
|
|
1786
1786
|
return (a = _t().extras) == null ? void 0 : a[e];
|
|
1787
1787
|
}
|
|
@@ -1796,15 +1796,15 @@ function Qa({
|
|
|
1796
1796
|
}) {
|
|
1797
1797
|
const r = ae(), i = ne(), s = le(), c = re(
|
|
1798
1798
|
() => (e != null ? e : []).map((m, d) => {
|
|
1799
|
-
var
|
|
1799
|
+
var g;
|
|
1800
1800
|
return {
|
|
1801
1801
|
...m,
|
|
1802
|
-
orden: (
|
|
1802
|
+
orden: (g = m.orden) != null ? g : d + 1,
|
|
1803
1803
|
_originalIndex: d
|
|
1804
1804
|
};
|
|
1805
1805
|
}).sort((m, d) => m.orden != null && d.orden != null ? m.orden - d.orden : m._originalIndex - d._originalIndex),
|
|
1806
1806
|
[e]
|
|
1807
|
-
),
|
|
1807
|
+
), f = !e || e.length === 0, h = f ? Array.from({ length: 6 }) : c.slice(0, 6), u = (m) => {
|
|
1808
1808
|
r({
|
|
1809
1809
|
element: "top_juegos_card",
|
|
1810
1810
|
label: `${i} - OraculoSeccionTopJuegos - Open game: ${String(m.machine || "unknown")}`,
|
|
@@ -1819,15 +1819,15 @@ function Qa({
|
|
|
1819
1819
|
section: "OraculoSeccionTopJuegos"
|
|
1820
1820
|
}
|
|
1821
1821
|
});
|
|
1822
|
-
const d =
|
|
1822
|
+
const d = ie("showIframe"), g = ie("loadMachine");
|
|
1823
1823
|
d == null || d(), requestAnimationFrame(() => {
|
|
1824
|
-
|
|
1824
|
+
g == null || g(m, !1, "CASINO");
|
|
1825
1825
|
});
|
|
1826
1826
|
};
|
|
1827
|
-
return /* @__PURE__ */ t("section", { style: { width: "100%" }, children: /* @__PURE__ */
|
|
1827
|
+
return /* @__PURE__ */ t("section", { style: { width: "100%" }, children: /* @__PURE__ */ _(K, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
1828
1828
|
/* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
|
|
1829
1829
|
/* @__PURE__ */ t(
|
|
1830
|
-
|
|
1830
|
+
P,
|
|
1831
1831
|
{
|
|
1832
1832
|
sx: {
|
|
1833
1833
|
display: "grid",
|
|
@@ -1840,18 +1840,18 @@ function Qa({
|
|
|
1840
1840
|
width: "100%"
|
|
1841
1841
|
},
|
|
1842
1842
|
children: h.map((m, d) => {
|
|
1843
|
-
var
|
|
1843
|
+
var g, b;
|
|
1844
1844
|
return /* @__PURE__ */ t(
|
|
1845
1845
|
xa,
|
|
1846
1846
|
{
|
|
1847
|
-
imageUrl:
|
|
1848
|
-
orden:
|
|
1849
|
-
loading:
|
|
1850
|
-
onClick:
|
|
1847
|
+
imageUrl: f ? "" : m.background ? `https://olimpo.bet${m.background}` : `https://olimpo.bet${(g = m.logo) != null ? g : ""}`,
|
|
1848
|
+
orden: f ? d + 1 : m.orden,
|
|
1849
|
+
loading: f,
|
|
1850
|
+
onClick: f ? void 0 : () => {
|
|
1851
1851
|
o == null || o(m), u(m);
|
|
1852
1852
|
}
|
|
1853
1853
|
},
|
|
1854
|
-
|
|
1854
|
+
f ? `sk-${d}` : (b = m.machine) != null ? b : `${d}`
|
|
1855
1855
|
);
|
|
1856
1856
|
})
|
|
1857
1857
|
}
|
|
@@ -1859,7 +1859,7 @@ function Qa({
|
|
|
1859
1859
|
] }) });
|
|
1860
1860
|
}
|
|
1861
1861
|
const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommendations", tn = (e, a) => {
|
|
1862
|
-
var n, o, r, i, s, c,
|
|
1862
|
+
var n, o, r, i, s, c, f, h, u, m, d, g, b, x;
|
|
1863
1863
|
return {
|
|
1864
1864
|
orden: Number(a),
|
|
1865
1865
|
machine: String(
|
|
@@ -1870,18 +1870,18 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1870
1870
|
web_name: (i = e.product) != null ? i : "",
|
|
1871
1871
|
provider: (s = e.service) != null ? s : "",
|
|
1872
1872
|
sub_provider: (c = e.service) != null ? c : "",
|
|
1873
|
-
external_id: (
|
|
1873
|
+
external_id: (f = e.external_id) != null ? f : "",
|
|
1874
1874
|
type: (h = e.game_type) != null ? h : "",
|
|
1875
1875
|
tags: (u = e.tags) != null ? u : "",
|
|
1876
1876
|
lobby_tag: (m = e.lobby_tag) != null ? m : null,
|
|
1877
1877
|
background: (d = e.background) != null ? d : "",
|
|
1878
|
-
rtp: (
|
|
1879
|
-
demo_allowed: (
|
|
1880
|
-
gaming_session_required: (
|
|
1878
|
+
rtp: (g = e.rtp) != null ? g : null,
|
|
1879
|
+
demo_allowed: (b = e.demo_allowed) != null ? b : !1,
|
|
1880
|
+
gaming_session_required: (x = e.gaming_session_required) != null ? x : !1
|
|
1881
1881
|
};
|
|
1882
1882
|
}, an = (e) => e ? !Array.isArray(e) && Array.isArray(e.recommendations) ? e.recommendations.filter(Boolean).map((a) => String(a)) : [] : [], yt = () => {
|
|
1883
1883
|
var a, n, o;
|
|
1884
|
-
const e =
|
|
1884
|
+
const e = ie("user");
|
|
1885
1885
|
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;
|
|
1886
1886
|
}, nn = async (e) => {
|
|
1887
1887
|
const a = yt(), n = new URLSearchParams({
|
|
@@ -1927,26 +1927,26 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1927
1927
|
c || r([]);
|
|
1928
1928
|
return;
|
|
1929
1929
|
}
|
|
1930
|
-
const m = yt(), d = await on(m, u),
|
|
1931
|
-
|
|
1932
|
-
const
|
|
1933
|
-
if (
|
|
1934
|
-
throw new Error(`No se pudo obtener machine ${
|
|
1935
|
-
const
|
|
1936
|
-
return tn(
|
|
1930
|
+
const m = yt(), d = await on(m, u), g = d.map((p) => p.itemId), b = await Promise.allSettled(
|
|
1931
|
+
g.map(async (p, w) => {
|
|
1932
|
+
const M = await fetch(`https://api.mktolimpo.com/api/machine/${p}`);
|
|
1933
|
+
if (!M.ok)
|
|
1934
|
+
throw new Error(`No se pudo obtener machine ${p}`);
|
|
1935
|
+
const z = await M.json();
|
|
1936
|
+
return tn(z, w);
|
|
1937
1937
|
})
|
|
1938
1938
|
);
|
|
1939
1939
|
if (c) return;
|
|
1940
|
-
const
|
|
1941
|
-
(
|
|
1942
|
-
).map((
|
|
1943
|
-
const
|
|
1944
|
-
return
|
|
1945
|
-
}).filter(Boolean).sort((
|
|
1946
|
-
var
|
|
1947
|
-
return ((
|
|
1940
|
+
const x = b.filter(
|
|
1941
|
+
(p) => p.status === "fulfilled"
|
|
1942
|
+
).map((p) => p.value), C = d.map((p) => {
|
|
1943
|
+
const w = x.find((M) => M.machine === p.itemId);
|
|
1944
|
+
return w ? { ...w, score: p.score } : null;
|
|
1945
|
+
}).filter(Boolean).sort((p, w) => {
|
|
1946
|
+
var M, z;
|
|
1947
|
+
return ((M = w.score) != null ? M : 0) - ((z = p.score) != null ? z : 0);
|
|
1948
1948
|
});
|
|
1949
|
-
r(
|
|
1949
|
+
r(C);
|
|
1950
1950
|
} catch (h) {
|
|
1951
1951
|
console.error(`[usePersonalizeGameItems:${n}] error:`, h), c || r([]);
|
|
1952
1952
|
} finally {
|
|
@@ -1981,43 +1981,43 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1981
1981
|
backgroundDesktopUrl: i = "",
|
|
1982
1982
|
onViewMore: s,
|
|
1983
1983
|
className: c,
|
|
1984
|
-
isPersonalize:
|
|
1984
|
+
isPersonalize: f = !1
|
|
1985
1985
|
}) => {
|
|
1986
|
-
const h = ae(), u = ne(), m = le(), d = dn(
|
|
1986
|
+
const h = ae(), u = ne(), m = le(), d = dn(f), { resolvedItems: g } = ln(
|
|
1987
1987
|
e,
|
|
1988
1988
|
d
|
|
1989
|
-
),
|
|
1989
|
+
), b = d ? g : Array.isArray(e) ? e : [], x = (p) => {
|
|
1990
1990
|
h({
|
|
1991
1991
|
element: "live_casino_card",
|
|
1992
|
-
label: `${u} - OraculoSeccionCasinoEnVivo${d ? " - personalize" : ""} - Open game: ${String(
|
|
1993
|
-
target: String(
|
|
1992
|
+
label: `${u} - OraculoSeccionCasinoEnVivo${d ? " - personalize" : ""} - Open game: ${String(p.machine || "unknown")}`,
|
|
1993
|
+
target: String(p.machine || "unknown"),
|
|
1994
1994
|
event_type: "click",
|
|
1995
1995
|
module_id: m,
|
|
1996
1996
|
metadata: {
|
|
1997
1997
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1998
1998
|
},
|
|
1999
1999
|
tags: {
|
|
2000
|
-
game_name: String(
|
|
2001
|
-
provider:
|
|
2000
|
+
game_name: String(p.machine || "unknown"),
|
|
2001
|
+
provider: p.provider || "unknown",
|
|
2002
2002
|
section: "OraculoSeccionCasinoEnVivo"
|
|
2003
2003
|
}
|
|
2004
2004
|
});
|
|
2005
|
-
const
|
|
2006
|
-
if (
|
|
2005
|
+
const w = ie("showIframe"), M = ie("loadMachine");
|
|
2006
|
+
if (!M) {
|
|
2007
2007
|
if (r) {
|
|
2008
|
-
r(
|
|
2008
|
+
r(p);
|
|
2009
2009
|
return;
|
|
2010
2010
|
}
|
|
2011
2011
|
console.warn(
|
|
2012
2012
|
"[OraculoSeccionCasinoEnVivo] No existe loadMachine en extras ni onCardClick. No se puede abrir el juego.",
|
|
2013
|
-
{ machine:
|
|
2013
|
+
{ machine: p == null ? void 0 : p.machine, provider: p == null ? void 0 : p.provider }
|
|
2014
2014
|
);
|
|
2015
2015
|
return;
|
|
2016
2016
|
}
|
|
2017
|
-
|
|
2018
|
-
|
|
2017
|
+
w == null || w(), typeof window != "undefined" && window.scrollTo({ top: 0, behavior: "smooth" }), requestAnimationFrame(() => {
|
|
2018
|
+
M == null || M(p, !1, "casino_en_vivo");
|
|
2019
2019
|
});
|
|
2020
|
-
},
|
|
2020
|
+
}, C = () => {
|
|
2021
2021
|
h({
|
|
2022
2022
|
element: "casino_en_vivo_view_more",
|
|
2023
2023
|
label: `${u} - OraculoSeccionCasinoEnVivo${d ? " - personalize" : ""} - Ver más`,
|
|
@@ -2030,8 +2030,8 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2030
2030
|
tags: { section: "OraculoSeccionCasinoEnVivo" }
|
|
2031
2031
|
}), typeof globalThis != "undefined" && globalThis.location && (s ? s() : globalThis.location.assign("https://www.olimpo.bet/casino-en-vivo"));
|
|
2032
2032
|
};
|
|
2033
|
-
return /* @__PURE__ */
|
|
2034
|
-
|
|
2033
|
+
return /* @__PURE__ */ _(
|
|
2034
|
+
P,
|
|
2035
2035
|
{
|
|
2036
2036
|
className: c,
|
|
2037
2037
|
sx: {
|
|
@@ -2041,7 +2041,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2041
2041
|
},
|
|
2042
2042
|
children: [
|
|
2043
2043
|
/* @__PURE__ */ t(
|
|
2044
|
-
|
|
2044
|
+
P,
|
|
2045
2045
|
{
|
|
2046
2046
|
sx: {
|
|
2047
2047
|
position: "absolute",
|
|
@@ -2068,8 +2068,8 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2068
2068
|
}
|
|
2069
2069
|
}
|
|
2070
2070
|
),
|
|
2071
|
-
/* @__PURE__ */
|
|
2072
|
-
|
|
2071
|
+
/* @__PURE__ */ _(
|
|
2072
|
+
P,
|
|
2073
2073
|
{
|
|
2074
2074
|
sx: {
|
|
2075
2075
|
position: "relative",
|
|
@@ -2086,7 +2086,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2086
2086
|
textAlign: { xs: "center", md: "left" }
|
|
2087
2087
|
},
|
|
2088
2088
|
children: [
|
|
2089
|
-
/* @__PURE__ */
|
|
2089
|
+
/* @__PURE__ */ _(K, { spacing: 3, sx: { maxWidth: { md: 280 } }, children: [
|
|
2090
2090
|
/* @__PURE__ */ t(
|
|
2091
2091
|
ue,
|
|
2092
2092
|
{
|
|
@@ -2112,18 +2112,18 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2112
2112
|
children: n
|
|
2113
2113
|
}
|
|
2114
2114
|
),
|
|
2115
|
-
/* @__PURE__ */ t(
|
|
2115
|
+
/* @__PURE__ */ t(P, { sx: { display: { xs: "none", md: "block" } }, children: /* @__PURE__ */ t(
|
|
2116
2116
|
Y,
|
|
2117
2117
|
{
|
|
2118
2118
|
variant: "primary",
|
|
2119
2119
|
size: "md",
|
|
2120
|
-
onClick:
|
|
2120
|
+
onClick: C,
|
|
2121
2121
|
children: "Ver más"
|
|
2122
2122
|
}
|
|
2123
2123
|
) })
|
|
2124
2124
|
] }),
|
|
2125
2125
|
/* @__PURE__ */ t(
|
|
2126
|
-
|
|
2126
|
+
P,
|
|
2127
2127
|
{
|
|
2128
2128
|
sx: {
|
|
2129
2129
|
display: "flex",
|
|
@@ -2133,28 +2133,28 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2133
2133
|
py: { xs: 3, md: 0 },
|
|
2134
2134
|
alignItems: "center"
|
|
2135
2135
|
},
|
|
2136
|
-
children: (
|
|
2137
|
-
var
|
|
2136
|
+
children: (b != null ? b : []).slice(0, 3).map((p, w) => {
|
|
2137
|
+
var M;
|
|
2138
2138
|
return /* @__PURE__ */ t(
|
|
2139
2139
|
wa,
|
|
2140
2140
|
{
|
|
2141
|
-
logo: `https://olimpo.bet${
|
|
2142
|
-
provider:
|
|
2143
|
-
providerName:
|
|
2144
|
-
machine:
|
|
2145
|
-
onClick: () =>
|
|
2141
|
+
logo: `https://olimpo.bet${p.background ? p.background : (M = p.logo) != null ? M : ""}`,
|
|
2142
|
+
provider: p.provider,
|
|
2143
|
+
providerName: p.web_name,
|
|
2144
|
+
machine: p.machine,
|
|
2145
|
+
onClick: () => x(p)
|
|
2146
2146
|
},
|
|
2147
|
-
cn(
|
|
2147
|
+
cn(p, w)
|
|
2148
2148
|
);
|
|
2149
2149
|
})
|
|
2150
2150
|
}
|
|
2151
2151
|
),
|
|
2152
|
-
/* @__PURE__ */ t(
|
|
2152
|
+
/* @__PURE__ */ t(P, { sx: { display: { xs: "block", md: "none" } }, children: /* @__PURE__ */ t(
|
|
2153
2153
|
Y,
|
|
2154
2154
|
{
|
|
2155
2155
|
variant: "primary",
|
|
2156
2156
|
size: "lg",
|
|
2157
|
-
onClick:
|
|
2157
|
+
onClick: C,
|
|
2158
2158
|
children: "Ver más"
|
|
2159
2159
|
}
|
|
2160
2160
|
) })
|
|
@@ -2179,10 +2179,10 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2179
2179
|
return (o = (n = e.orden) != null ? n : e.machine) != null ? o : a;
|
|
2180
2180
|
}, pn = (e, a = !0, n = 1) => {
|
|
2181
2181
|
const o = e.map((s, c) => {
|
|
2182
|
-
var
|
|
2182
|
+
var f;
|
|
2183
2183
|
return {
|
|
2184
2184
|
id: xt(s, c),
|
|
2185
|
-
imageUrl: (
|
|
2185
|
+
imageUrl: (f = s.logo) != null ? f : "",
|
|
2186
2186
|
...s.background ? { background: s.background } : {}
|
|
2187
2187
|
};
|
|
2188
2188
|
});
|
|
@@ -2216,12 +2216,12 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2216
2216
|
gridSize: s = 1,
|
|
2217
2217
|
isPersonalize: c = !1
|
|
2218
2218
|
}) => {
|
|
2219
|
-
const
|
|
2219
|
+
const f = ae(), h = ne(), u = le(), m = V(null), [d, g] = X({ isStart: !0, isEnd: !1 }), b = mn(c), { resolvedItems: x, loading: C } = rn(
|
|
2220
2220
|
e,
|
|
2221
|
-
|
|
2222
|
-
),
|
|
2221
|
+
b
|
|
2222
|
+
), p = b ? x : Array.isArray(e) ? e : [], w = () => {
|
|
2223
2223
|
var O;
|
|
2224
|
-
|
|
2224
|
+
f({
|
|
2225
2225
|
element: "casino_prev",
|
|
2226
2226
|
label: `${h} - OraculoSeccionCasino ${c ? " - personalize" : ""} - Anterior`,
|
|
2227
2227
|
target: "prev",
|
|
@@ -2232,9 +2232,9 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2232
2232
|
},
|
|
2233
2233
|
tags: { section: "OraculoSeccionCasino" }
|
|
2234
2234
|
}), (O = m.current) == null || O.prev();
|
|
2235
|
-
},
|
|
2235
|
+
}, M = () => {
|
|
2236
2236
|
var O;
|
|
2237
|
-
|
|
2237
|
+
f({
|
|
2238
2238
|
element: "casino_next",
|
|
2239
2239
|
label: `${h} - OraculoSeccionCasino ${c ? " - personalize" : ""} - Siguiente`,
|
|
2240
2240
|
target: "next",
|
|
@@ -2245,8 +2245,8 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2245
2245
|
},
|
|
2246
2246
|
tags: { section: "OraculoSeccionCasino" }
|
|
2247
2247
|
}), (O = m.current) == null || O.next();
|
|
2248
|
-
},
|
|
2249
|
-
if (
|
|
2248
|
+
}, z = () => {
|
|
2249
|
+
if (f({
|
|
2250
2250
|
element: "casino_view_more",
|
|
2251
2251
|
label: `${h} - OraculoSeccionCasino ${c ? " - personalize" : ""} - Ver más`,
|
|
2252
2252
|
target: "https://www.olimpo.bet/casino",
|
|
@@ -2261,16 +2261,16 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2261
2261
|
return;
|
|
2262
2262
|
}
|
|
2263
2263
|
typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/casino");
|
|
2264
|
-
},
|
|
2265
|
-
const
|
|
2264
|
+
}, y = (O = !0, v = 4) => {
|
|
2265
|
+
const I = (B) => Array.from({ length: B }, (A, U) => ({
|
|
2266
2266
|
id: `sk-${B}-${U}`,
|
|
2267
2267
|
imageUrl: ""
|
|
2268
2268
|
})), R = [];
|
|
2269
|
-
return O && R.push({ id: "mosaic-loading", kind: "mosaic", items:
|
|
2270
|
-
},
|
|
2271
|
-
return /* @__PURE__ */ t("section", { children: /* @__PURE__ */
|
|
2272
|
-
/* @__PURE__ */
|
|
2273
|
-
|
|
2269
|
+
return O && R.push({ id: "mosaic-loading", kind: "mosaic", items: I(5) }), R.push({ id: "grid-loading", kind: "grid", items: I(v) }), R;
|
|
2270
|
+
}, k = b ? C : !Array.isArray(e) || e.length === 0, q = De("(max-width:950px)"), D = k ? y(i, s) : pn(p, i, s);
|
|
2271
|
+
return /* @__PURE__ */ t("section", { children: /* @__PURE__ */ _(K, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
2272
|
+
/* @__PURE__ */ _(
|
|
2273
|
+
P,
|
|
2274
2274
|
{
|
|
2275
2275
|
sx: {
|
|
2276
2276
|
display: "grid",
|
|
@@ -2280,12 +2280,12 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2280
2280
|
rowGap: 1,
|
|
2281
2281
|
px: 0,
|
|
2282
2282
|
"@media (max-width: 1024px)": {
|
|
2283
|
-
px:
|
|
2283
|
+
px: 3
|
|
2284
2284
|
}
|
|
2285
2285
|
},
|
|
2286
2286
|
children: [
|
|
2287
2287
|
/* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
|
|
2288
|
-
/* @__PURE__ */
|
|
2288
|
+
/* @__PURE__ */ _(P, { sx: { display: "flex", gap: 1, justifyContent: "flex-end" }, children: [
|
|
2289
2289
|
/* @__PURE__ */ t(
|
|
2290
2290
|
Y,
|
|
2291
2291
|
{
|
|
@@ -2293,7 +2293,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2293
2293
|
variant: "secondary",
|
|
2294
2294
|
iconOnly: !0,
|
|
2295
2295
|
leftIcon: /* @__PURE__ */ t(lt, {}),
|
|
2296
|
-
onClick:
|
|
2296
|
+
onClick: w,
|
|
2297
2297
|
disabled: d.isStart
|
|
2298
2298
|
}
|
|
2299
2299
|
),
|
|
@@ -2304,12 +2304,12 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2304
2304
|
variant: "secondary",
|
|
2305
2305
|
iconOnly: !0,
|
|
2306
2306
|
rightIcon: /* @__PURE__ */ t(ct, {}),
|
|
2307
|
-
onClick:
|
|
2307
|
+
onClick: M,
|
|
2308
2308
|
disabled: d.isEnd
|
|
2309
2309
|
}
|
|
2310
2310
|
)
|
|
2311
2311
|
] }),
|
|
2312
|
-
/* @__PURE__ */ t(
|
|
2312
|
+
/* @__PURE__ */ t(P, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(Y, { variant: "secondary", onClick: z, children: "Ver más" }) })
|
|
2313
2313
|
]
|
|
2314
2314
|
}
|
|
2315
2315
|
),
|
|
@@ -2322,7 +2322,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2322
2322
|
gap: "16px",
|
|
2323
2323
|
enableHorizontalWheel: !0,
|
|
2324
2324
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
2325
|
-
showRightGradient: !
|
|
2325
|
+
showRightGradient: !q,
|
|
2326
2326
|
breakpoints: {
|
|
2327
2327
|
400: {
|
|
2328
2328
|
gap: "4px",
|
|
@@ -2345,33 +2345,33 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2345
2345
|
{
|
|
2346
2346
|
items: O.items,
|
|
2347
2347
|
layout: O.kind === "mosaic" ? "mosaic" : "grid",
|
|
2348
|
-
loading:
|
|
2349
|
-
onClick: (
|
|
2350
|
-
if (
|
|
2351
|
-
const
|
|
2352
|
-
(A, U) => String(xt(A, U)) === String(
|
|
2348
|
+
loading: k,
|
|
2349
|
+
onClick: (v) => {
|
|
2350
|
+
if (k) return;
|
|
2351
|
+
const I = p.find(
|
|
2352
|
+
(A, U) => String(xt(A, U)) === String(v.id)
|
|
2353
2353
|
);
|
|
2354
|
-
if (!
|
|
2355
|
-
o == null || o(
|
|
2354
|
+
if (!I) return;
|
|
2355
|
+
o == null || o(I), f({
|
|
2356
2356
|
element: "casino_game_card",
|
|
2357
|
-
label: `${h} - OraculoSeccionCasino ${c ? " - personalize" : ""} - Game: ${String(
|
|
2358
|
-
target: String(
|
|
2357
|
+
label: `${h} - OraculoSeccionCasino ${c ? " - personalize" : ""} - Game: ${String(I.machine || "unknown")}`,
|
|
2358
|
+
target: String(I.machine || "unknown"),
|
|
2359
2359
|
event_type: "click",
|
|
2360
2360
|
module_id: u,
|
|
2361
2361
|
metadata: {
|
|
2362
2362
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2363
2363
|
},
|
|
2364
2364
|
tags: {
|
|
2365
|
-
game_name: String(
|
|
2365
|
+
game_name: String(I.machine || "unknown"),
|
|
2366
2366
|
section: a || "Casino"
|
|
2367
2367
|
}
|
|
2368
2368
|
});
|
|
2369
|
-
const R =
|
|
2370
|
-
R == null || R(), B == null || B(
|
|
2369
|
+
const R = ie("showIframe"), B = ie("loadMachine");
|
|
2370
|
+
R == null || R(), B == null || B(I, !1, "CASINO");
|
|
2371
2371
|
}
|
|
2372
2372
|
}
|
|
2373
2373
|
) }),
|
|
2374
|
-
onMove: ({ isStart: O, isEnd:
|
|
2374
|
+
onMove: ({ isStart: O, isEnd: v }) => g({ isStart: O, isEnd: v })
|
|
2375
2375
|
}
|
|
2376
2376
|
)
|
|
2377
2377
|
] }) });
|
|
@@ -2390,10 +2390,10 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2390
2390
|
return (o = (n = e.orden) != null ? n : e.machine) != null ? o : a;
|
|
2391
2391
|
}, hn = (e, a = !0, n = 1) => {
|
|
2392
2392
|
const o = e.map((s, c) => {
|
|
2393
|
-
var
|
|
2393
|
+
var f;
|
|
2394
2394
|
return {
|
|
2395
2395
|
id: wt(s, c),
|
|
2396
|
-
imageUrl: (
|
|
2396
|
+
imageUrl: (f = s.logo) != null ? f : "",
|
|
2397
2397
|
...s.background ? { background: s.background } : {}
|
|
2398
2398
|
};
|
|
2399
2399
|
});
|
|
@@ -2441,42 +2441,42 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2441
2441
|
gridSize: s = 1,
|
|
2442
2442
|
isPersonalize: c = !1
|
|
2443
2443
|
}) => {
|
|
2444
|
-
const
|
|
2444
|
+
const f = V(null), [h, u] = X({ isStart: !0, isEnd: !1 }), m = ae(), d = ne(), g = le(), b = gn(c), { resolvedItems: x, loading: C } = sn(
|
|
2445
2445
|
e,
|
|
2446
|
-
|
|
2447
|
-
),
|
|
2446
|
+
b
|
|
2447
|
+
), p = b ? x : Array.isArray(e) ? e : [], w = () => {
|
|
2448
2448
|
var D;
|
|
2449
2449
|
m({
|
|
2450
2450
|
element: "virtuales_prev",
|
|
2451
|
-
label: `${d} - OraculoSeccionVirtuales${
|
|
2451
|
+
label: `${d} - OraculoSeccionVirtuales${b ? " - personalize" : ""} - Anterior`,
|
|
2452
2452
|
target: "prev",
|
|
2453
2453
|
event_type: "click",
|
|
2454
|
-
module_id:
|
|
2454
|
+
module_id: g,
|
|
2455
2455
|
metadata: {
|
|
2456
2456
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2457
2457
|
},
|
|
2458
2458
|
tags: { section: "OraculoSeccionVirtuales" }
|
|
2459
|
-
}), (D =
|
|
2460
|
-
},
|
|
2459
|
+
}), (D = f.current) == null || D.prev();
|
|
2460
|
+
}, M = () => {
|
|
2461
2461
|
var D;
|
|
2462
2462
|
m({
|
|
2463
2463
|
element: "virtuales_next",
|
|
2464
|
-
label: `${d} - OraculoSeccionVirtuales${
|
|
2464
|
+
label: `${d} - OraculoSeccionVirtuales${b ? " - personalize" : ""} - Siguiente`,
|
|
2465
2465
|
target: "next",
|
|
2466
2466
|
event_type: "click",
|
|
2467
|
-
module_id:
|
|
2467
|
+
module_id: g,
|
|
2468
2468
|
metadata: {
|
|
2469
2469
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2470
2470
|
},
|
|
2471
2471
|
tags: { section: "OraculoSeccionVirtuales" }
|
|
2472
|
-
}), (D =
|
|
2473
|
-
},
|
|
2472
|
+
}), (D = f.current) == null || D.next();
|
|
2473
|
+
}, z = () => {
|
|
2474
2474
|
if (m({
|
|
2475
2475
|
element: "virtuales_view_more",
|
|
2476
|
-
label: `${d} - OraculoSeccionVirtuales${
|
|
2476
|
+
label: `${d} - OraculoSeccionVirtuales${b ? " - personalize" : ""} - Ver más`,
|
|
2477
2477
|
target: "https://www.olimpo.bet/juegos-virtuales",
|
|
2478
2478
|
event_type: "click",
|
|
2479
|
-
module_id:
|
|
2479
|
+
module_id: g,
|
|
2480
2480
|
metadata: {
|
|
2481
2481
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2482
2482
|
},
|
|
@@ -2486,10 +2486,10 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2486
2486
|
return;
|
|
2487
2487
|
}
|
|
2488
2488
|
typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/juegos-virtuales");
|
|
2489
|
-
},
|
|
2490
|
-
return /* @__PURE__ */ t("section", { children: /* @__PURE__ */
|
|
2491
|
-
/* @__PURE__ */
|
|
2492
|
-
|
|
2489
|
+
}, y = b ? C : !Array.isArray(e) || e.length === 0, k = xe("(max-width:950px)"), q = y ? bn(i, s) : hn(p, i, s);
|
|
2490
|
+
return /* @__PURE__ */ t("section", { children: /* @__PURE__ */ _(K, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
2491
|
+
/* @__PURE__ */ _(
|
|
2492
|
+
P,
|
|
2493
2493
|
{
|
|
2494
2494
|
sx: {
|
|
2495
2495
|
display: "grid",
|
|
@@ -2499,12 +2499,12 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2499
2499
|
rowGap: 1,
|
|
2500
2500
|
px: 0,
|
|
2501
2501
|
"@media (max-width: 1024px)": {
|
|
2502
|
-
px:
|
|
2502
|
+
px: 3
|
|
2503
2503
|
}
|
|
2504
2504
|
},
|
|
2505
2505
|
children: [
|
|
2506
2506
|
/* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
|
|
2507
|
-
/* @__PURE__ */
|
|
2507
|
+
/* @__PURE__ */ _(P, { sx: { display: "flex", gap: 1, justifyContent: "flex-end" }, children: [
|
|
2508
2508
|
/* @__PURE__ */ t(
|
|
2509
2509
|
Y,
|
|
2510
2510
|
{
|
|
@@ -2512,7 +2512,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2512
2512
|
variant: "secondary",
|
|
2513
2513
|
iconOnly: !0,
|
|
2514
2514
|
leftIcon: /* @__PURE__ */ t(lt, {}),
|
|
2515
|
-
onClick:
|
|
2515
|
+
onClick: w,
|
|
2516
2516
|
disabled: h.isStart
|
|
2517
2517
|
}
|
|
2518
2518
|
),
|
|
@@ -2523,20 +2523,20 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2523
2523
|
variant: "secondary",
|
|
2524
2524
|
iconOnly: !0,
|
|
2525
2525
|
rightIcon: /* @__PURE__ */ t(ct, {}),
|
|
2526
|
-
onClick:
|
|
2526
|
+
onClick: M,
|
|
2527
2527
|
disabled: h.isEnd
|
|
2528
2528
|
}
|
|
2529
2529
|
)
|
|
2530
2530
|
] }),
|
|
2531
|
-
/* @__PURE__ */ t(
|
|
2531
|
+
/* @__PURE__ */ t(P, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(Y, { variant: "secondary", onClick: z, children: "Ver más" }) })
|
|
2532
2532
|
]
|
|
2533
2533
|
}
|
|
2534
2534
|
),
|
|
2535
2535
|
/* @__PURE__ */ t(
|
|
2536
2536
|
he,
|
|
2537
2537
|
{
|
|
2538
|
-
ref:
|
|
2539
|
-
items:
|
|
2538
|
+
ref: f,
|
|
2539
|
+
items: q,
|
|
2540
2540
|
perPage: void 0,
|
|
2541
2541
|
gap: "16px",
|
|
2542
2542
|
breakpoints: {
|
|
@@ -2557,45 +2557,45 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2557
2557
|
}
|
|
2558
2558
|
},
|
|
2559
2559
|
enableHorizontalWheel: !0,
|
|
2560
|
-
showRightGradient: !
|
|
2560
|
+
showRightGradient: !k,
|
|
2561
2561
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
2562
2562
|
renderItem: (D) => /* @__PURE__ */ t("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ t(
|
|
2563
2563
|
ft,
|
|
2564
2564
|
{
|
|
2565
2565
|
items: D.items,
|
|
2566
2566
|
layout: D.kind === "mosaic" ? "mosaic" : "grid",
|
|
2567
|
-
loading:
|
|
2567
|
+
loading: y,
|
|
2568
2568
|
onClick: (O) => {
|
|
2569
|
-
if (
|
|
2570
|
-
const
|
|
2569
|
+
if (y) return;
|
|
2570
|
+
const v = p.find(
|
|
2571
2571
|
(B, A) => String(wt(B, A)) === String(O.id)
|
|
2572
2572
|
);
|
|
2573
|
-
if (!
|
|
2573
|
+
if (!v) {
|
|
2574
2574
|
console.warn(
|
|
2575
2575
|
"[virtuales] no se encontró game para id:",
|
|
2576
2576
|
O.id
|
|
2577
2577
|
);
|
|
2578
2578
|
return;
|
|
2579
2579
|
}
|
|
2580
|
-
o == null || o(
|
|
2580
|
+
o == null || o(v), m({
|
|
2581
2581
|
element: "virtuales_game_card",
|
|
2582
|
-
label: `${d} - OraculoSeccionVirtuales${
|
|
2583
|
-
target: String(
|
|
2582
|
+
label: `${d} - OraculoSeccionVirtuales${b ? " - personalize" : ""} - Game: ${String(v.machine || "unknown")}`,
|
|
2583
|
+
target: String(v.machine || "unknown"),
|
|
2584
2584
|
event_type: "click",
|
|
2585
|
-
module_id:
|
|
2585
|
+
module_id: g,
|
|
2586
2586
|
metadata: {
|
|
2587
2587
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2588
2588
|
},
|
|
2589
2589
|
tags: {
|
|
2590
|
-
game_name: String(
|
|
2590
|
+
game_name: String(v.machine || "unknown"),
|
|
2591
2591
|
section: a || "Virtuales"
|
|
2592
2592
|
}
|
|
2593
2593
|
});
|
|
2594
|
-
const
|
|
2595
|
-
|
|
2596
|
-
|
|
2594
|
+
const I = ie("showIframe"), R = ie("loadMachine");
|
|
2595
|
+
I == null || I(), R == null || R(
|
|
2596
|
+
v,
|
|
2597
2597
|
!1,
|
|
2598
|
-
|
|
2598
|
+
b ? "VIRTUALES_PERSONALIZE" : "VIRTUALES"
|
|
2599
2599
|
);
|
|
2600
2600
|
}
|
|
2601
2601
|
}
|
|
@@ -2642,87 +2642,87 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2642
2642
|
items: n,
|
|
2643
2643
|
backgroundImageUrl: o
|
|
2644
2644
|
}) => {
|
|
2645
|
-
const r = ae(), i = ne(), s = xe("(max-width: 767px)"), c = n.length > 1,
|
|
2645
|
+
const r = ae(), i = ne(), s = xe("(max-width: 767px)"), c = n.length > 1, f = V(null), h = V(null), u = V(!1), m = V(!1), [d, g] = X(0), [b, x] = X({ isStart: !0, isEnd: !1 });
|
|
2646
2646
|
Q(() => {
|
|
2647
|
-
const
|
|
2647
|
+
const v = setTimeout(() => {
|
|
2648
2648
|
u.current = !0;
|
|
2649
2649
|
}, 500);
|
|
2650
|
-
return () => clearTimeout(
|
|
2650
|
+
return () => clearTimeout(v);
|
|
2651
2651
|
}, []);
|
|
2652
|
-
const
|
|
2652
|
+
const C = V(b);
|
|
2653
2653
|
Q(() => {
|
|
2654
|
-
|
|
2655
|
-
}, [
|
|
2656
|
-
const
|
|
2654
|
+
C.current = b;
|
|
2655
|
+
}, [b]);
|
|
2656
|
+
const p = V(!1), w = V(null), M = n == null ? void 0 : n[d], z = re(
|
|
2657
2657
|
() => {
|
|
2658
|
-
var
|
|
2659
|
-
return (
|
|
2658
|
+
var v, I;
|
|
2659
|
+
return (I = (v = M == null ? void 0 : M.backgroundImageUrl) != null ? v : o) != null ? I : "";
|
|
2660
2660
|
},
|
|
2661
|
-
[
|
|
2662
|
-
),
|
|
2661
|
+
[M, o]
|
|
2662
|
+
), y = _n(z), k = !n || n.length === 0, q = (v, I) => {
|
|
2663
2663
|
r({
|
|
2664
2664
|
element: "welcome_banner_button",
|
|
2665
|
-
label: `OraculoSeccionBonoBienvenida - Banner button click: ${
|
|
2665
|
+
label: `OraculoSeccionBonoBienvenida - Banner button click: ${v.title || "OraculoSeccionBonoBienvenida - Banner " + (I + 1)}`,
|
|
2666
2666
|
target: "action",
|
|
2667
2667
|
event_type: "click",
|
|
2668
2668
|
module_id: 301,
|
|
2669
2669
|
metadata: {
|
|
2670
2670
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
2671
|
-
banner_position:
|
|
2671
|
+
banner_position: I + 1,
|
|
2672
2672
|
banner_total: (n == null ? void 0 : n.length) || 0
|
|
2673
2673
|
},
|
|
2674
2674
|
tags: {
|
|
2675
|
-
banner_title:
|
|
2676
|
-
button_text:
|
|
2675
|
+
banner_title: v.title || "no_title",
|
|
2676
|
+
button_text: v.buttonText || "no_text"
|
|
2677
2677
|
}
|
|
2678
|
-
}),
|
|
2679
|
-
}, D = (
|
|
2678
|
+
}), v.onButtonClick && v.onButtonClick();
|
|
2679
|
+
}, D = (v) => {
|
|
2680
2680
|
if (!u.current) return;
|
|
2681
2681
|
if (m.current) {
|
|
2682
2682
|
m.current = !1;
|
|
2683
2683
|
return;
|
|
2684
2684
|
}
|
|
2685
|
-
const
|
|
2685
|
+
const I = n == null ? void 0 : n[v];
|
|
2686
2686
|
r({
|
|
2687
2687
|
element: "welcome_banner_carousel",
|
|
2688
|
-
label: `Landing: ${i} - OraculoSeccionBonoBienvenida - Banner view: ${(
|
|
2688
|
+
label: `Landing: ${i} - OraculoSeccionBonoBienvenida - Banner view: ${(I == null ? void 0 : I.title) || "OraculoSeccionBonoBienvenida - Banner " + (v + 1)}`,
|
|
2689
2689
|
target: "no_url",
|
|
2690
2690
|
event_type: "view",
|
|
2691
2691
|
module_id: 301,
|
|
2692
2692
|
metadata: {
|
|
2693
2693
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
2694
|
-
slide_index:
|
|
2694
|
+
slide_index: v + 1,
|
|
2695
2695
|
total_slides: (n == null ? void 0 : n.length) || 0,
|
|
2696
2696
|
interaction_type: "manual_slide"
|
|
2697
2697
|
},
|
|
2698
2698
|
tags: {
|
|
2699
|
-
banner_position: String(
|
|
2700
|
-
banner_title: (
|
|
2699
|
+
banner_position: String(v + 1),
|
|
2700
|
+
banner_title: (I == null ? void 0 : I.title) || "no_title"
|
|
2701
2701
|
}
|
|
2702
2702
|
});
|
|
2703
2703
|
};
|
|
2704
2704
|
Q(() => {
|
|
2705
|
-
const
|
|
2706
|
-
if (!
|
|
2707
|
-
const
|
|
2708
|
-
var
|
|
2709
|
-
if (
|
|
2705
|
+
const v = h.current;
|
|
2706
|
+
if (!v) return;
|
|
2707
|
+
const I = 6, R = 380, B = (A) => {
|
|
2708
|
+
var Z, G;
|
|
2709
|
+
if (k || A.ctrlKey || p.current) return;
|
|
2710
2710
|
const U = A.deltaX, W = A.deltaY;
|
|
2711
|
-
if (Math.abs(U) <= Math.abs(W) || Math.abs(U) <
|
|
2712
|
-
const
|
|
2713
|
-
|
|
2714
|
-
|
|
2711
|
+
if (Math.abs(U) <= Math.abs(W) || Math.abs(U) < I) return;
|
|
2712
|
+
const j = U > 0;
|
|
2713
|
+
j && C.current.isEnd || !j && C.current.isStart || (A.preventDefault(), p.current = !0, j ? (Z = f.current) == null || Z.next() : (G = f.current) == null || G.prev(), w.current && window.clearTimeout(w.current), w.current = window.setTimeout(() => {
|
|
2714
|
+
p.current = !1;
|
|
2715
2715
|
}, R));
|
|
2716
2716
|
};
|
|
2717
|
-
return
|
|
2718
|
-
|
|
2717
|
+
return v.addEventListener("wheel", B, { passive: !1 }), () => {
|
|
2718
|
+
v.removeEventListener("wheel", B), w.current && window.clearTimeout(w.current);
|
|
2719
2719
|
};
|
|
2720
|
-
}, [
|
|
2721
|
-
const O = (
|
|
2720
|
+
}, [k]);
|
|
2721
|
+
const O = (v, I, R) => {
|
|
2722
2722
|
var U, W;
|
|
2723
|
-
const B = (U =
|
|
2724
|
-
return
|
|
2725
|
-
|
|
2723
|
+
const B = (U = v.headline) != null ? U : e, A = (W = v.headline2) != null ? W : a;
|
|
2724
|
+
return I ? /* @__PURE__ */ _(
|
|
2725
|
+
P,
|
|
2726
2726
|
{
|
|
2727
2727
|
sx: {
|
|
2728
2728
|
maxWidth: 1200,
|
|
@@ -2735,7 +2735,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2735
2735
|
},
|
|
2736
2736
|
children: [
|
|
2737
2737
|
(B || A) && /* @__PURE__ */ t(
|
|
2738
|
-
|
|
2738
|
+
P,
|
|
2739
2739
|
{
|
|
2740
2740
|
sx: {
|
|
2741
2741
|
display: "flex",
|
|
@@ -2743,48 +2743,48 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2743
2743
|
justifyContent: "flex-start",
|
|
2744
2744
|
minHeight: "100%"
|
|
2745
2745
|
},
|
|
2746
|
-
children: /* @__PURE__ */
|
|
2746
|
+
children: /* @__PURE__ */ _(P, { sx: { ...Qe, textAlign: "left", mb: 0 }, children: [
|
|
2747
2747
|
B && /* @__PURE__ */ t(ue, { component: "span", sx: et, children: B }),
|
|
2748
|
-
A && /* @__PURE__ */
|
|
2748
|
+
A && /* @__PURE__ */ _(pe, { children: [
|
|
2749
2749
|
/* @__PURE__ */ t("br", {}),
|
|
2750
2750
|
/* @__PURE__ */ t(ue, { component: "span", sx: tt, children: A })
|
|
2751
2751
|
] })
|
|
2752
2752
|
] })
|
|
2753
2753
|
}
|
|
2754
2754
|
),
|
|
2755
|
-
/* @__PURE__ */ t(
|
|
2755
|
+
/* @__PURE__ */ t(P, { sx: { display: "flex", justifyContent: "center", alignItems: "center" }, children: /* @__PURE__ */ t(P, { sx: { width: "100%", maxWidth: 600, mx: "auto" }, children: /* @__PURE__ */ t(
|
|
2756
2756
|
Je,
|
|
2757
2757
|
{
|
|
2758
|
-
...
|
|
2759
|
-
onButtonClick: () =>
|
|
2758
|
+
...v,
|
|
2759
|
+
onButtonClick: () => q(v, R),
|
|
2760
2760
|
variant: "large"
|
|
2761
2761
|
}
|
|
2762
2762
|
) }) })
|
|
2763
2763
|
]
|
|
2764
2764
|
}
|
|
2765
|
-
) : /* @__PURE__ */
|
|
2766
|
-
(B || A) && /* @__PURE__ */
|
|
2765
|
+
) : /* @__PURE__ */ _(P, { sx: { textAlign: "center" }, children: [
|
|
2766
|
+
(B || A) && /* @__PURE__ */ _(P, { sx: Qe, children: [
|
|
2767
2767
|
B && /* @__PURE__ */ t(ue, { component: "span", sx: et, children: B }),
|
|
2768
|
-
A && /* @__PURE__ */
|
|
2768
|
+
A && /* @__PURE__ */ _(pe, { children: [
|
|
2769
2769
|
/* @__PURE__ */ t("br", {}),
|
|
2770
2770
|
/* @__PURE__ */ t(ue, { component: "span", sx: tt, children: A })
|
|
2771
2771
|
] })
|
|
2772
2772
|
] }),
|
|
2773
|
-
/* @__PURE__ */ t(
|
|
2773
|
+
/* @__PURE__ */ t(P, { sx: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(
|
|
2774
2774
|
Je,
|
|
2775
2775
|
{
|
|
2776
|
-
...
|
|
2777
|
-
onButtonClick: () =>
|
|
2776
|
+
...v,
|
|
2777
|
+
onButtonClick: () => q(v, R),
|
|
2778
2778
|
variant: "small"
|
|
2779
2779
|
}
|
|
2780
2780
|
) })
|
|
2781
2781
|
] });
|
|
2782
2782
|
};
|
|
2783
|
-
return /* @__PURE__ */
|
|
2783
|
+
return /* @__PURE__ */ _(P, { component: "section", sx: y, children: [
|
|
2784
2784
|
/* @__PURE__ */ t("div", { ref: h, style: { width: "100%" }, children: /* @__PURE__ */ t(
|
|
2785
2785
|
he,
|
|
2786
2786
|
{
|
|
2787
|
-
ref:
|
|
2787
|
+
ref: f,
|
|
2788
2788
|
items: n,
|
|
2789
2789
|
perPage: 1,
|
|
2790
2790
|
gap: "0px",
|
|
@@ -2798,34 +2798,34 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2798
2798
|
// arrows: false,
|
|
2799
2799
|
// drag: true,
|
|
2800
2800
|
},
|
|
2801
|
-
renderItem: (
|
|
2802
|
-
onMove: ({ index:
|
|
2803
|
-
|
|
2801
|
+
renderItem: (v, I) => /* @__PURE__ */ t(P, { sx: { width: "100%" }, children: O(v, !s, I) }),
|
|
2802
|
+
onMove: ({ index: v, isStart: I, isEnd: R, source: B }) => {
|
|
2803
|
+
g(v), typeof I == "boolean" && typeof R == "boolean" && x({ isStart: I, isEnd: R }), B === "user" && D(v);
|
|
2804
2804
|
}
|
|
2805
2805
|
}
|
|
2806
2806
|
) }),
|
|
2807
|
-
c && /* @__PURE__ */ t(
|
|
2807
|
+
c && /* @__PURE__ */ t(P, { sx: { mt: 2, display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(
|
|
2808
2808
|
dt,
|
|
2809
2809
|
{
|
|
2810
2810
|
total: n.length,
|
|
2811
2811
|
active: d,
|
|
2812
|
-
onSelect: (
|
|
2813
|
-
var
|
|
2812
|
+
onSelect: (v) => {
|
|
2813
|
+
var I;
|
|
2814
2814
|
r({
|
|
2815
2815
|
element: "welcome_banner_dots",
|
|
2816
|
-
label: `Landing: ${i} - OraculoSeccionBonoBienvenida - Dot navigation: Banner ${
|
|
2816
|
+
label: `Landing: ${i} - OraculoSeccionBonoBienvenida - Dot navigation: Banner ${v + 1}`,
|
|
2817
2817
|
target: "no_url",
|
|
2818
2818
|
event_type: "click",
|
|
2819
2819
|
module_id: 301,
|
|
2820
2820
|
metadata: {
|
|
2821
2821
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
2822
|
-
dot_index:
|
|
2822
|
+
dot_index: v + 1,
|
|
2823
2823
|
total_dots: n.length
|
|
2824
2824
|
},
|
|
2825
2825
|
tags: {
|
|
2826
2826
|
navigation_type: "dot_click"
|
|
2827
2827
|
}
|
|
2828
|
-
}),
|
|
2828
|
+
}), g(v), (I = f.current) == null || I.go(v);
|
|
2829
2829
|
}
|
|
2830
2830
|
}
|
|
2831
2831
|
) })
|
|
@@ -2838,20 +2838,20 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2838
2838
|
ariaLabel: r,
|
|
2839
2839
|
user: i = null
|
|
2840
2840
|
}) => {
|
|
2841
|
-
const s = V(null), c = V(null),
|
|
2841
|
+
const s = V(null), c = V(null), f = ae(), h = ne(), u = le();
|
|
2842
2842
|
if (!n) return null;
|
|
2843
2843
|
const m = async () => {
|
|
2844
|
-
let
|
|
2845
|
-
if ((!(
|
|
2844
|
+
let x = i;
|
|
2845
|
+
if ((!(x != null && x.user) || !(x != null && x.session)) && typeof window != "undefined")
|
|
2846
2846
|
try {
|
|
2847
|
-
const
|
|
2848
|
-
|
|
2849
|
-
} catch (
|
|
2850
|
-
console.error("[getMarketPlaceUrl] Error parsing localStorage user",
|
|
2847
|
+
const C = localStorage.getItem("user");
|
|
2848
|
+
C && (x = JSON.parse(C));
|
|
2849
|
+
} catch (C) {
|
|
2850
|
+
console.error("[getMarketPlaceUrl] Error parsing localStorage user", C);
|
|
2851
2851
|
}
|
|
2852
|
-
if (!(
|
|
2852
|
+
if (!(x != null && x.user) || !(x != null && x.session))
|
|
2853
2853
|
return console.warn("User data missing"), null;
|
|
2854
|
-
|
|
2854
|
+
f({
|
|
2855
2855
|
element: "club_olimpo_button",
|
|
2856
2856
|
label: `${h} - OraculoSeccionClubOlimpo - Click: Club Olimpo`,
|
|
2857
2857
|
target: "https://www.clubolimpo.com/OlimpoBetWeb/",
|
|
@@ -2863,40 +2863,40 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2863
2863
|
tags: { section: "OraculoSeccionClubOlimpo" }
|
|
2864
2864
|
});
|
|
2865
2865
|
try {
|
|
2866
|
-
const
|
|
2867
|
-
idUsuario: "PE" +
|
|
2868
|
-
session_id:
|
|
2866
|
+
const C = {
|
|
2867
|
+
idUsuario: "PE" + x.user,
|
|
2868
|
+
session_id: x.session,
|
|
2869
2869
|
pagina: "home"
|
|
2870
|
-
},
|
|
2870
|
+
}, w = await fetch("https://apipe.mktolimpo.com/api/pm/token", {
|
|
2871
2871
|
method: "POST",
|
|
2872
2872
|
headers: {
|
|
2873
2873
|
"Content-Type": "application/json"
|
|
2874
2874
|
},
|
|
2875
|
-
body: JSON.stringify(
|
|
2875
|
+
body: JSON.stringify(C)
|
|
2876
2876
|
});
|
|
2877
|
-
if (
|
|
2878
|
-
const
|
|
2879
|
-
return
|
|
2877
|
+
if (w.ok) {
|
|
2878
|
+
const M = await w.json();
|
|
2879
|
+
return M == null ? void 0 : M.url;
|
|
2880
2880
|
}
|
|
2881
2881
|
return null;
|
|
2882
|
-
} catch (
|
|
2883
|
-
return console.error("[getMarketPlaceUrl]",
|
|
2882
|
+
} catch (C) {
|
|
2883
|
+
return console.error("[getMarketPlaceUrl]", C), null;
|
|
2884
2884
|
}
|
|
2885
2885
|
}, d = async () => {
|
|
2886
|
-
const
|
|
2887
|
-
|
|
2888
|
-
},
|
|
2886
|
+
const x = await m();
|
|
2887
|
+
x ? window.location.href = x : typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/conoce-club-olimpo");
|
|
2888
|
+
}, g = Array.isArray(n) ? n[o] : n;
|
|
2889
2889
|
Mt(() => {
|
|
2890
2890
|
if (!s.current || !c.current || typeof ResizeObserver == "undefined") return;
|
|
2891
|
-
const
|
|
2892
|
-
|
|
2891
|
+
const x = s.current, C = c.current, p = () => {
|
|
2892
|
+
x.style.setProperty(
|
|
2893
2893
|
"--orc-co-bottomH",
|
|
2894
|
-
`${
|
|
2894
|
+
`${C.offsetHeight + 16}px`
|
|
2895
2895
|
);
|
|
2896
|
-
},
|
|
2897
|
-
return
|
|
2896
|
+
}, w = new ResizeObserver(p);
|
|
2897
|
+
return w.observe(C), p(), () => w.disconnect();
|
|
2898
2898
|
}, []);
|
|
2899
|
-
const
|
|
2899
|
+
const b = [
|
|
2900
2900
|
"orc-co-wrap",
|
|
2901
2901
|
a ? "orc-co-fullBleed" : "",
|
|
2902
2902
|
e
|
|
@@ -2905,18 +2905,18 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2905
2905
|
"section",
|
|
2906
2906
|
{
|
|
2907
2907
|
ref: s,
|
|
2908
|
-
className:
|
|
2909
|
-
"aria-label": r ||
|
|
2908
|
+
className: b,
|
|
2909
|
+
"aria-label": r || g.imgAlt || "Club Olimpo",
|
|
2910
2910
|
children: /* @__PURE__ */ t("div", { ref: c, children: /* @__PURE__ */ t(
|
|
2911
2911
|
Sa,
|
|
2912
2912
|
{
|
|
2913
|
-
text:
|
|
2913
|
+
text: g.text,
|
|
2914
2914
|
onClick: d,
|
|
2915
|
-
imgAlt:
|
|
2916
|
-
buttonLabel:
|
|
2917
|
-
imgSrcMobile:
|
|
2918
|
-
imgSrcDesktopBg:
|
|
2919
|
-
imgSrcDesktopLogo:
|
|
2915
|
+
imgAlt: g.imgAlt,
|
|
2916
|
+
buttonLabel: g.buttonLabel,
|
|
2917
|
+
imgSrcMobile: g.imgMobile,
|
|
2918
|
+
imgSrcDesktopBg: g.imgDesktopBg,
|
|
2919
|
+
imgSrcDesktopLogo: g.imgDesktopLogo
|
|
2920
2920
|
}
|
|
2921
2921
|
) })
|
|
2922
2922
|
}
|
|
@@ -2931,28 +2931,28 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2931
2931
|
return (i = (r = o.outcomes) == null ? void 0 : r.map((s) => s.id)) != null ? i : [];
|
|
2932
2932
|
}) : [];
|
|
2933
2933
|
};
|
|
2934
|
-
function
|
|
2934
|
+
function On(e, a, n) {
|
|
2935
2935
|
return n ? n.map((o) => {
|
|
2936
2936
|
var u, m;
|
|
2937
|
-
const r = o.prePackCouponRows.flatMap((d) => In(d).map((
|
|
2937
|
+
const r = o.prePackCouponRows.flatMap((d) => In(d).map((g) => ({ eventId: d.eventId, outcomeId: g }))), i = new Set(r.map((d) => d.eventId)), s = new Set(r.map((d) => d.outcomeId)), c = new Map(r.map((d, g) => [d.outcomeId, g])), f = {};
|
|
2938
2938
|
for (const d of a) {
|
|
2939
2939
|
if (!i.has(d.eventId)) continue;
|
|
2940
|
-
const
|
|
2941
|
-
|
|
2940
|
+
const g = d.outcomes.filter((b) => s.has(b.id)).map((b) => ({ ...b, position: c.get(b.id) }));
|
|
2941
|
+
g.length && ((m = f[u = d.eventId]) != null || (f[u] = []), f[d.eventId].push({ ...d, outcomes: g }));
|
|
2942
2942
|
}
|
|
2943
2943
|
const h = e.filter((d) => i.has(d.id)).map((d) => {
|
|
2944
|
-
var
|
|
2945
|
-
return { ...d, betoffers: (
|
|
2944
|
+
var g;
|
|
2945
|
+
return { ...d, betoffers: (g = f[d.id]) != null ? g : [] };
|
|
2946
2946
|
});
|
|
2947
2947
|
return {
|
|
2948
2948
|
couponId: o.id,
|
|
2949
2949
|
status: o.status,
|
|
2950
|
-
combinadoTotal:
|
|
2950
|
+
combinadoTotal: En(o.prePackCouponRows),
|
|
2951
2951
|
events: h
|
|
2952
2952
|
};
|
|
2953
2953
|
}) : [];
|
|
2954
2954
|
}
|
|
2955
|
-
function
|
|
2955
|
+
function En(e) {
|
|
2956
2956
|
if (!Array.isArray(e) || e.length === 0) return 0;
|
|
2957
2957
|
let a = 1;
|
|
2958
2958
|
for (const n of e) {
|
|
@@ -2961,16 +2961,16 @@ function On(e) {
|
|
|
2961
2961
|
}
|
|
2962
2962
|
return Math.floor(a * 100) / 100;
|
|
2963
2963
|
}
|
|
2964
|
-
const Cn = fe.memo(
|
|
2964
|
+
const Cn = fe.memo(La);
|
|
2965
2965
|
function Tn({
|
|
2966
2966
|
items: e,
|
|
2967
2967
|
title: a = "Combinadas del Olimpo",
|
|
2968
|
-
iconUrl: n = "https://
|
|
2968
|
+
iconUrl: n = "https://d28gilnhu2bcbp.cloudfront.net/landing/rayoIcon.svg",
|
|
2969
2969
|
onViewMore: o,
|
|
2970
2970
|
className: r = ""
|
|
2971
2971
|
}) {
|
|
2972
|
-
const i = ae(), s = ne(), c = le(),
|
|
2973
|
-
var
|
|
2972
|
+
const i = ae(), s = ne(), c = le(), f = V(null), [h, u] = X({ isStart: !0, isEnd: !1 }), [m, d] = X([]), g = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group/prepackcoupon.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764284658793&prePackCouponTags=CUSTOM", b = () => {
|
|
2973
|
+
var y;
|
|
2974
2974
|
i({
|
|
2975
2975
|
element: "evento_combinadas_prev",
|
|
2976
2976
|
label: `${s} - OraculoSeccionEventoCombinadas - Click: Anterior`,
|
|
@@ -2980,9 +2980,9 @@ function Tn({
|
|
|
2980
2980
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2981
2981
|
},
|
|
2982
2982
|
tags: { section: "OraculoSeccionEventoCombinadas" }
|
|
2983
|
-
}), (
|
|
2984
|
-
},
|
|
2985
|
-
var
|
|
2983
|
+
}), (y = f.current) == null || y.prev();
|
|
2984
|
+
}, x = () => {
|
|
2985
|
+
var y;
|
|
2986
2986
|
i({
|
|
2987
2987
|
element: "evento_combinadas_next",
|
|
2988
2988
|
label: `${s} - OraculoSeccionEventoCombinadas - Click: Siguiente`,
|
|
@@ -2992,8 +2992,8 @@ function Tn({
|
|
|
2992
2992
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2993
2993
|
},
|
|
2994
2994
|
tags: { section: "OraculoSeccionEventoCombinadas" }
|
|
2995
|
-
}), (
|
|
2996
|
-
},
|
|
2995
|
+
}), (y = f.current) == null || y.next();
|
|
2996
|
+
}, C = () => {
|
|
2997
2997
|
i({
|
|
2998
2998
|
element: "evento_combinadas_ver_mas",
|
|
2999
2999
|
label: `${s} - OraculoSeccionEventoCombinadas - Click: Ver más`,
|
|
@@ -3003,36 +3003,36 @@ function Tn({
|
|
|
3003
3003
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
3004
3004
|
},
|
|
3005
3005
|
tags: { section: "OraculoSeccionEventoCombinadas" }
|
|
3006
|
-
}),
|
|
3007
|
-
},
|
|
3008
|
-
async function
|
|
3009
|
-
var
|
|
3006
|
+
}), Ra();
|
|
3007
|
+
}, p = re(() => m.filter((y) => y.combinadoTotal !== null), [m]);
|
|
3008
|
+
async function w() {
|
|
3009
|
+
var y, k, q, D;
|
|
3010
3010
|
try {
|
|
3011
|
-
const
|
|
3012
|
-
if (!
|
|
3011
|
+
const v = await (await fetch(g)).json(), I = (D = (q = (k = (y = v == null ? void 0 : v.group) == null ? void 0 : y.groups) == null ? void 0 : k.map((U) => U.id)) == null ? void 0 : q.filter(Boolean)) == null ? void 0 : D.join(",");
|
|
3012
|
+
if (!I) {
|
|
3013
3013
|
console.error("Could not extract group ID");
|
|
3014
3014
|
return;
|
|
3015
3015
|
}
|
|
3016
|
-
const R = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${
|
|
3017
|
-
d(
|
|
3016
|
+
const R = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${I}.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764283566783&prePackCouponTags=CUSTOM`, A = await (await fetch(R)).json();
|
|
3017
|
+
d(On(A.events, A.betOffers, A.prePackCoupons));
|
|
3018
3018
|
} catch (O) {
|
|
3019
3019
|
console.error("loadDataEventSpecial error:", O);
|
|
3020
3020
|
}
|
|
3021
3021
|
}
|
|
3022
3022
|
Q(() => {
|
|
3023
|
-
|
|
3023
|
+
w();
|
|
3024
3024
|
}, []);
|
|
3025
|
-
const
|
|
3026
|
-
return
|
|
3025
|
+
const M = r || void 0, z = xe("(max-width:950px)");
|
|
3026
|
+
return p.length === 0 ? null : /* @__PURE__ */ t("section", { className: M, style: {
|
|
3027
3027
|
// paddingLeft: 16,
|
|
3028
3028
|
// paddingRight: 16,
|
|
3029
3029
|
width: "100%",
|
|
3030
3030
|
boxSizing: "border-box"
|
|
3031
|
-
}, children: /* @__PURE__ */
|
|
3032
|
-
/* @__PURE__ */ t("div", { className: at.padding, children: /* @__PURE__ */
|
|
3031
|
+
}, children: /* @__PURE__ */ _(K, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
3032
|
+
/* @__PURE__ */ t("div", { className: at.padding, children: /* @__PURE__ */ _(me, { spacing: 1.5, columns: "1fr auto ", justify: "start", children: [
|
|
3033
3033
|
/* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
|
|
3034
|
-
/* @__PURE__ */
|
|
3035
|
-
/* @__PURE__ */
|
|
3034
|
+
/* @__PURE__ */ _("div", { className: at.controls, children: [
|
|
3035
|
+
/* @__PURE__ */ _(me, { spacing: 1, columns: "auto auto", children: [
|
|
3036
3036
|
/* @__PURE__ */ t(
|
|
3037
3037
|
Y,
|
|
3038
3038
|
{
|
|
@@ -3040,7 +3040,7 @@ function Tn({
|
|
|
3040
3040
|
variant: "secondary",
|
|
3041
3041
|
iconOnly: !0,
|
|
3042
3042
|
leftIcon: /* @__PURE__ */ t(Ae, {}),
|
|
3043
|
-
onClick:
|
|
3043
|
+
onClick: b,
|
|
3044
3044
|
disabled: h.isStart
|
|
3045
3045
|
}
|
|
3046
3046
|
),
|
|
@@ -3050,31 +3050,31 @@ function Tn({
|
|
|
3050
3050
|
ariaLabel: "Siguiente",
|
|
3051
3051
|
variant: "secondary",
|
|
3052
3052
|
iconOnly: !0,
|
|
3053
|
-
rightIcon: /* @__PURE__ */ t(
|
|
3054
|
-
onClick:
|
|
3053
|
+
rightIcon: /* @__PURE__ */ t(Re, {}),
|
|
3054
|
+
onClick: x,
|
|
3055
3055
|
disabled: h.isEnd
|
|
3056
3056
|
}
|
|
3057
3057
|
)
|
|
3058
3058
|
] }),
|
|
3059
|
-
/* @__PURE__ */ t(Y, { variant: "secondary", onClick:
|
|
3059
|
+
/* @__PURE__ */ t(Y, { variant: "secondary", onClick: C, children: "Ver más" })
|
|
3060
3060
|
] })
|
|
3061
3061
|
] }) }),
|
|
3062
3062
|
/* @__PURE__ */ t(
|
|
3063
3063
|
he,
|
|
3064
3064
|
{
|
|
3065
|
-
ref:
|
|
3066
|
-
items:
|
|
3065
|
+
ref: f,
|
|
3066
|
+
items: p,
|
|
3067
3067
|
perPage: void 0,
|
|
3068
3068
|
gap: "16px",
|
|
3069
3069
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
3070
3070
|
useIndexAsKey: !0,
|
|
3071
3071
|
enableHorizontalWheel: !0,
|
|
3072
|
-
showRightGradient: !
|
|
3072
|
+
showRightGradient: !z,
|
|
3073
3073
|
breakpoints: {
|
|
3074
3074
|
768: { perPage: 1.2, gap: "12px", padding: { left: "24px", right: "24px" } }
|
|
3075
3075
|
},
|
|
3076
|
-
renderItem: (
|
|
3077
|
-
onMove: ({ isStart:
|
|
3076
|
+
renderItem: (y) => /* @__PURE__ */ t(Cn, { coupon: y }),
|
|
3077
|
+
onMove: ({ isStart: y, isEnd: k }) => u({ isStart: y, isEnd: k })
|
|
3078
3078
|
}
|
|
3079
3079
|
)
|
|
3080
3080
|
] }) });
|
|
@@ -3084,30 +3084,30 @@ function kn({}) {
|
|
|
3084
3084
|
"div",
|
|
3085
3085
|
{
|
|
3086
3086
|
className: ke.cardWrapper,
|
|
3087
|
-
children: /* @__PURE__ */
|
|
3088
|
-
/* @__PURE__ */
|
|
3089
|
-
/* @__PURE__ */ t(
|
|
3090
|
-
/* @__PURE__ */ t(
|
|
3087
|
+
children: /* @__PURE__ */ _(K, { direction: "column", spacing: 1, children: [
|
|
3088
|
+
/* @__PURE__ */ _(K, { spacing: 1, direction: "row", children: [
|
|
3089
|
+
/* @__PURE__ */ t(H, { variant: "text", width: "60%", height: 24 }),
|
|
3090
|
+
/* @__PURE__ */ t(H, { variant: "text", width: "39%", height: 24 })
|
|
3091
3091
|
] }),
|
|
3092
|
-
/* @__PURE__ */
|
|
3093
|
-
/* @__PURE__ */ t(
|
|
3094
|
-
/* @__PURE__ */ t(
|
|
3095
|
-
/* @__PURE__ */ t(
|
|
3092
|
+
/* @__PURE__ */ _(K, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
3093
|
+
/* @__PURE__ */ t(H, { variant: "circular", width: 32, height: 40 }),
|
|
3094
|
+
/* @__PURE__ */ t(H, { variant: "text", width: 40, height: 40 }),
|
|
3095
|
+
/* @__PURE__ */ t(H, { variant: "circular", width: 32, height: 40 })
|
|
3096
3096
|
] }),
|
|
3097
|
-
/* @__PURE__ */
|
|
3098
|
-
/* @__PURE__ */ t(
|
|
3099
|
-
/* @__PURE__ */ t(
|
|
3100
|
-
/* @__PURE__ */ t(
|
|
3097
|
+
/* @__PURE__ */ _(K, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
3098
|
+
/* @__PURE__ */ t(H, { variant: "text", width: 32, height: 16 }),
|
|
3099
|
+
/* @__PURE__ */ t(H, { variant: "text", width: 40, height: 16 }),
|
|
3100
|
+
/* @__PURE__ */ t(H, { variant: "text", width: 32, height: 16 })
|
|
3101
3101
|
] }),
|
|
3102
|
-
/* @__PURE__ */
|
|
3103
|
-
/* @__PURE__ */ t(
|
|
3104
|
-
/* @__PURE__ */ t(
|
|
3105
|
-
/* @__PURE__ */ t(
|
|
3102
|
+
/* @__PURE__ */ _(K, { spacing: 2, direction: "row", children: [
|
|
3103
|
+
/* @__PURE__ */ t(H, { variant: "rounded", width: 88, height: 16 }),
|
|
3104
|
+
/* @__PURE__ */ t(H, { variant: "rounded", width: 88, height: 16 }),
|
|
3105
|
+
/* @__PURE__ */ t(H, { variant: "rounded", width: 88, height: 16 })
|
|
3106
3106
|
] }),
|
|
3107
|
-
/* @__PURE__ */
|
|
3108
|
-
/* @__PURE__ */ t(
|
|
3109
|
-
/* @__PURE__ */ t(
|
|
3110
|
-
/* @__PURE__ */ t(
|
|
3107
|
+
/* @__PURE__ */ _(K, { spacing: 2, direction: "row", children: [
|
|
3108
|
+
/* @__PURE__ */ t(H, { variant: "rounded", width: 88, height: 32 }),
|
|
3109
|
+
/* @__PURE__ */ t(H, { variant: "rounded", width: 88, height: 32 }),
|
|
3110
|
+
/* @__PURE__ */ t(H, { variant: "rounded", width: 88, height: 32 })
|
|
3111
3111
|
] })
|
|
3112
3112
|
] })
|
|
3113
3113
|
}
|
|
@@ -3129,50 +3129,50 @@ function St({
|
|
|
3129
3129
|
buffer: o = 2,
|
|
3130
3130
|
debounceMs: r = 250
|
|
3131
3131
|
}) {
|
|
3132
|
-
const [i, s] = X({}), c = V(/* @__PURE__ */ new Set()),
|
|
3132
|
+
const [i, s] = X({}), c = V(/* @__PURE__ */ new Set()), f = V(0), h = V(null), u = V(null);
|
|
3133
3133
|
return Q(() => {
|
|
3134
3134
|
if (!(!e || e.length === 0))
|
|
3135
3135
|
return h.current && clearTimeout(h.current), h.current = setTimeout(() => {
|
|
3136
|
-
var
|
|
3137
|
-
const m = (
|
|
3138
|
-
let
|
|
3139
|
-
const
|
|
3140
|
-
|
|
3141
|
-
const
|
|
3142
|
-
if (
|
|
3143
|
-
|
|
3144
|
-
const
|
|
3136
|
+
var z, y;
|
|
3137
|
+
const m = (z = a.start) != null ? z : 0, d = (y = a.end) != null ? y : 7, g = Math.max(0, m - o), b = Math.min(e.length - 1, d + o);
|
|
3138
|
+
let x = g, C = b;
|
|
3139
|
+
const p = u.current;
|
|
3140
|
+
p && (g > p.end && (x = p.end + 1), b < p.start && (C = p.start - 1)), u.current = { start: g, end: b };
|
|
3141
|
+
const w = e.slice(x, C + 1).map((k) => k == null ? void 0 : k.id).filter((k) => !!k).filter((k) => !c.current.has(k)).filter((k) => !(k in i));
|
|
3142
|
+
if (w.length === 0) return;
|
|
3143
|
+
w.forEach((k) => c.current.add(k));
|
|
3144
|
+
const M = ++f.current;
|
|
3145
3145
|
(async () => {
|
|
3146
3146
|
try {
|
|
3147
|
-
const
|
|
3148
|
-
if (
|
|
3149
|
-
|
|
3147
|
+
const k = await n(w);
|
|
3148
|
+
if (M !== f.current) {
|
|
3149
|
+
w.forEach((D) => c.current.delete(D));
|
|
3150
3150
|
return;
|
|
3151
3151
|
}
|
|
3152
|
-
if (!(
|
|
3153
|
-
|
|
3152
|
+
if (!(k != null && k.events)) {
|
|
3153
|
+
w.forEach(
|
|
3154
3154
|
(D) => c.current.delete(D)
|
|
3155
3155
|
);
|
|
3156
3156
|
return;
|
|
3157
3157
|
}
|
|
3158
3158
|
s((D) => {
|
|
3159
3159
|
const O = { ...D };
|
|
3160
|
-
for (const [
|
|
3161
|
-
const R = Number(
|
|
3162
|
-
O[R] || (O[R] =
|
|
3160
|
+
for (const [v, I] of Object.entries(k.events)) {
|
|
3161
|
+
const R = Number(v);
|
|
3162
|
+
O[R] || (O[R] = I);
|
|
3163
3163
|
}
|
|
3164
3164
|
return O;
|
|
3165
3165
|
});
|
|
3166
|
-
const
|
|
3167
|
-
Object.keys(
|
|
3166
|
+
const q = new Set(
|
|
3167
|
+
Object.keys(k.events).map(Number)
|
|
3168
3168
|
);
|
|
3169
|
-
|
|
3169
|
+
w.forEach((D) => {
|
|
3170
3170
|
c.current.delete(D);
|
|
3171
3171
|
});
|
|
3172
|
-
} catch (
|
|
3173
|
-
|
|
3174
|
-
(
|
|
3175
|
-
), console.error("Jersey fetch error",
|
|
3172
|
+
} catch (k) {
|
|
3173
|
+
w.forEach(
|
|
3174
|
+
(q) => c.current.delete(q)
|
|
3175
|
+
), console.error("Jersey fetch error", k);
|
|
3176
3176
|
}
|
|
3177
3177
|
})();
|
|
3178
3178
|
}, r), () => {
|
|
@@ -3192,85 +3192,85 @@ const An = (e) => {
|
|
|
3192
3192
|
const r = typeof ((s = n == null ? void 0 : n.event) == null ? void 0 : s.group) == "string" ? n.event.group.toLowerCase() : "";
|
|
3193
3193
|
return !a.some((c) => r.includes(c));
|
|
3194
3194
|
});
|
|
3195
|
-
},
|
|
3196
|
-
function
|
|
3195
|
+
}, Rn = fe.memo(Da);
|
|
3196
|
+
function Ln({
|
|
3197
3197
|
items: e,
|
|
3198
3198
|
title: a = "En vivo",
|
|
3199
|
-
iconUrl: n = "https://
|
|
3199
|
+
iconUrl: n = "https://d28gilnhu2bcbp.cloudfront.net/landing/1778868672728-evento-en-vivo.gif",
|
|
3200
3200
|
onViewMore: o,
|
|
3201
3201
|
className: r = ""
|
|
3202
3202
|
}) {
|
|
3203
|
-
const i = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football/all/all/all/in-play.json?channel_id=3&channel_id=3&client_id=200&client_id=200&competitionId=undefined&lang=es_PE&lang=es_PE&market=PE&market=PE&useCombined=true&useCombinedLive=true", s = V(null), [c,
|
|
3203
|
+
const i = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football/all/all/all/in-play.json?channel_id=3&channel_id=3&client_id=200&client_id=200&competitionId=undefined&lang=es_PE&lang=es_PE&market=PE&market=PE&useCombined=true&useCombinedLive=true", s = V(null), [c, f] = X({ isStart: !0, isEnd: !1 }), [h, u] = X(null), [m, d] = X({ start: null, end: null }), [g, b] = X(null), x = V(!1), C = ae(), p = ne(), w = le(), M = V(/* @__PURE__ */ new Map()), z = () => {
|
|
3204
3204
|
var B;
|
|
3205
|
-
|
|
3205
|
+
C({
|
|
3206
3206
|
element: "evento_en_vivo_prev",
|
|
3207
|
-
label: `${
|
|
3207
|
+
label: `${p} - OraculoSeccionEventoEnVivo - Anterior`,
|
|
3208
3208
|
target: "prev",
|
|
3209
3209
|
event_type: "click",
|
|
3210
|
-
module_id:
|
|
3210
|
+
module_id: w,
|
|
3211
3211
|
metadata: {
|
|
3212
3212
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
3213
3213
|
},
|
|
3214
3214
|
tags: { section: "OraculoSeccionEventoEnVivo" }
|
|
3215
3215
|
}), (B = s.current) == null || B.prev();
|
|
3216
|
-
},
|
|
3216
|
+
}, y = () => {
|
|
3217
3217
|
var B;
|
|
3218
|
-
|
|
3218
|
+
C({
|
|
3219
3219
|
element: "evento_en_vivo_next",
|
|
3220
|
-
label: `${
|
|
3220
|
+
label: `${p} - OraculoSeccionEventoEnVivo - Siguiente`,
|
|
3221
3221
|
target: "next",
|
|
3222
3222
|
event_type: "click",
|
|
3223
|
-
module_id:
|
|
3223
|
+
module_id: w,
|
|
3224
3224
|
metadata: {
|
|
3225
3225
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
3226
3226
|
},
|
|
3227
3227
|
tags: { section: "OraculoSeccionEventoEnVivo" }
|
|
3228
3228
|
}), (B = s.current) == null || B.next();
|
|
3229
|
-
},
|
|
3230
|
-
|
|
3229
|
+
}, k = () => {
|
|
3230
|
+
C({
|
|
3231
3231
|
element: "evento_en_vivo_view_more",
|
|
3232
|
-
label: `${
|
|
3232
|
+
label: `${p} - OraculoSeccionEventoEnVivo - Ver más`,
|
|
3233
3233
|
target: "ver_mas",
|
|
3234
3234
|
event_type: "click",
|
|
3235
|
-
module_id:
|
|
3235
|
+
module_id: w,
|
|
3236
3236
|
metadata: {
|
|
3237
3237
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
3238
3238
|
},
|
|
3239
3239
|
tags: { section: "OraculoSeccionEventoEnVivo" }
|
|
3240
3240
|
}), Ba();
|
|
3241
|
-
},
|
|
3241
|
+
}, q = Ce(async () => {
|
|
3242
3242
|
var B;
|
|
3243
3243
|
try {
|
|
3244
|
-
if (!
|
|
3245
|
-
|
|
3244
|
+
if (!x.current) {
|
|
3245
|
+
x.current = !0;
|
|
3246
3246
|
try {
|
|
3247
|
-
const
|
|
3248
|
-
|
|
3249
|
-
} catch (
|
|
3250
|
-
console.error("Order fetch failed, using default sorting",
|
|
3247
|
+
const Z = await (await fetch("https://api.mktolimpo.com/api/kambi/eventos/orden")).json(), G = ((B = Z == null ? void 0 : Z.data) == null ? void 0 : B.event_ids) || [], E = /* @__PURE__ */ new Map();
|
|
3248
|
+
G.forEach((F, l) => E.set(String(F), l)), M.current = E;
|
|
3249
|
+
} catch (j) {
|
|
3250
|
+
console.error("Order fetch failed, using default sorting", j);
|
|
3251
3251
|
}
|
|
3252
3252
|
}
|
|
3253
3253
|
const A = await fetch(i);
|
|
3254
3254
|
if (!A.ok) throw new Error("Failed to fetch live events");
|
|
3255
3255
|
const U = await A.json(), W = An(U.events);
|
|
3256
|
-
if (
|
|
3256
|
+
if (M.current.size === 0)
|
|
3257
3257
|
u(W);
|
|
3258
3258
|
else {
|
|
3259
|
-
const
|
|
3260
|
-
const
|
|
3261
|
-
return (
|
|
3259
|
+
const j = [...W].sort((Z, G) => {
|
|
3260
|
+
const E = M.current.get(String(Z.event.id)), F = M.current.get(String(G.event.id));
|
|
3261
|
+
return (E !== void 0 ? E : 1 / 0) - (F !== void 0 ? F : 1 / 0);
|
|
3262
3262
|
});
|
|
3263
|
-
u(
|
|
3263
|
+
u(j);
|
|
3264
3264
|
}
|
|
3265
3265
|
} catch (A) {
|
|
3266
3266
|
console.error("LoadData Error:", A);
|
|
3267
3267
|
}
|
|
3268
3268
|
}, []);
|
|
3269
3269
|
Q(() => {
|
|
3270
|
-
|
|
3271
|
-
const B = setInterval(
|
|
3270
|
+
q();
|
|
3271
|
+
const B = setInterval(q, 2e4);
|
|
3272
3272
|
return () => clearInterval(B);
|
|
3273
|
-
}, [
|
|
3273
|
+
}, [q]);
|
|
3274
3274
|
const { jerseys: D } = St({
|
|
3275
3275
|
events: (h == null ? void 0 : h.map((B) => B.event)) || [],
|
|
3276
3276
|
// extract actual event objects
|
|
@@ -3280,17 +3280,17 @@ function Rn({
|
|
|
3280
3280
|
// same as your previous BUFFER
|
|
3281
3281
|
debounceMs: 300
|
|
3282
3282
|
// same as your previous debouncedVisibleRange
|
|
3283
|
-
}), O = r || void 0,
|
|
3284
|
-
return !
|
|
3283
|
+
}), O = r || void 0, v = h === null, I = re(() => v ? Array(4).fill({}) : (h == null ? void 0 : h.slice(0, 20)) || [], [v, h]), R = xe("(max-width:950px)");
|
|
3284
|
+
return !v && h.length === 0 ? null : /* @__PURE__ */ t("section", { className: O, style: {
|
|
3285
3285
|
// paddingLeft: 16,
|
|
3286
3286
|
// paddingRight: 16,
|
|
3287
3287
|
width: "100%",
|
|
3288
3288
|
boxSizing: "border-box"
|
|
3289
|
-
}, children: /* @__PURE__ */
|
|
3290
|
-
/* @__PURE__ */ t("div", { className: Bn.padding, children: /* @__PURE__ */
|
|
3289
|
+
}, children: /* @__PURE__ */ _(K, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
3290
|
+
/* @__PURE__ */ t("div", { className: Bn.padding, children: /* @__PURE__ */ _(me, { spacing: 1.5, columns: "1fr auto ", justify: "start", children: [
|
|
3291
3291
|
/* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
|
|
3292
|
-
/* @__PURE__ */
|
|
3293
|
-
/* @__PURE__ */
|
|
3292
|
+
/* @__PURE__ */ _("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
|
|
3293
|
+
/* @__PURE__ */ _(me, { spacing: 1, columns: "auto auto", children: [
|
|
3294
3294
|
/* @__PURE__ */ t(
|
|
3295
3295
|
Y,
|
|
3296
3296
|
{
|
|
@@ -3298,7 +3298,7 @@ function Rn({
|
|
|
3298
3298
|
variant: "secondary",
|
|
3299
3299
|
iconOnly: !0,
|
|
3300
3300
|
leftIcon: /* @__PURE__ */ t(Ae, {}),
|
|
3301
|
-
onClick:
|
|
3301
|
+
onClick: z,
|
|
3302
3302
|
disabled: c.isStart
|
|
3303
3303
|
}
|
|
3304
3304
|
),
|
|
@@ -3308,20 +3308,20 @@ function Rn({
|
|
|
3308
3308
|
ariaLabel: "Siguiente",
|
|
3309
3309
|
variant: "secondary",
|
|
3310
3310
|
iconOnly: !0,
|
|
3311
|
-
rightIcon: /* @__PURE__ */ t(
|
|
3312
|
-
onClick:
|
|
3311
|
+
rightIcon: /* @__PURE__ */ t(Re, {}),
|
|
3312
|
+
onClick: y,
|
|
3313
3313
|
disabled: c.isEnd
|
|
3314
3314
|
}
|
|
3315
3315
|
)
|
|
3316
3316
|
] }),
|
|
3317
|
-
/* @__PURE__ */ t(Y, { variant: "secondary", onClick:
|
|
3317
|
+
/* @__PURE__ */ t(Y, { variant: "secondary", onClick: k, children: "Ver más" })
|
|
3318
3318
|
] })
|
|
3319
3319
|
] }) }),
|
|
3320
3320
|
/* @__PURE__ */ t(
|
|
3321
3321
|
he,
|
|
3322
3322
|
{
|
|
3323
3323
|
ref: s,
|
|
3324
|
-
items:
|
|
3324
|
+
items: I,
|
|
3325
3325
|
perPage: void 0,
|
|
3326
3326
|
showRightGradient: !R,
|
|
3327
3327
|
enableHorizontalWheel: !0,
|
|
@@ -3335,8 +3335,8 @@ function Rn({
|
|
|
3335
3335
|
renderItem: (B) => {
|
|
3336
3336
|
var W;
|
|
3337
3337
|
const A = ((W = B.event) == null ? void 0 : W.id) || B.eventId, U = A in D ? D[A] : void 0;
|
|
3338
|
-
return
|
|
3339
|
-
|
|
3338
|
+
return v ? /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(kn, {}) }) : /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(
|
|
3339
|
+
Rn,
|
|
3340
3340
|
{
|
|
3341
3341
|
...B,
|
|
3342
3342
|
jersey: U
|
|
@@ -3344,46 +3344,46 @@ function Rn({
|
|
|
3344
3344
|
) });
|
|
3345
3345
|
},
|
|
3346
3346
|
onMove: ({ isStart: B, isEnd: A, visibleStart: U, visibleEnd: W }) => {
|
|
3347
|
-
|
|
3348
|
-
(
|
|
3347
|
+
f(
|
|
3348
|
+
(j) => j.isStart === B && j.isEnd === A ? j : { isStart: B, isEnd: A }
|
|
3349
3349
|
), d({ start: U, end: W });
|
|
3350
3350
|
}
|
|
3351
3351
|
}
|
|
3352
3352
|
)
|
|
3353
3353
|
] }) });
|
|
3354
3354
|
}
|
|
3355
|
-
function
|
|
3356
|
-
return /* @__PURE__ */
|
|
3355
|
+
function Fn() {
|
|
3356
|
+
return /* @__PURE__ */ _("div", { className: be.cardContainer, children: [
|
|
3357
3357
|
/* @__PURE__ */ t(mt, { title: "" }),
|
|
3358
|
-
/* @__PURE__ */ t("div", { className: be.cardBackground, children: /* @__PURE__ */
|
|
3359
|
-
/* @__PURE__ */
|
|
3360
|
-
/* @__PURE__ */ t(
|
|
3361
|
-
/* @__PURE__ */ t(
|
|
3358
|
+
/* @__PURE__ */ t("div", { className: be.cardBackground, children: /* @__PURE__ */ _(K, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
3359
|
+
/* @__PURE__ */ _(K, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
3360
|
+
/* @__PURE__ */ t(H, { variant: "circular", width: 48, height: 48 }),
|
|
3361
|
+
/* @__PURE__ */ t(H, { variant: "circular", width: 48, height: 48 })
|
|
3362
3362
|
] }),
|
|
3363
|
-
/* @__PURE__ */
|
|
3364
|
-
/* @__PURE__ */
|
|
3365
|
-
/* @__PURE__ */ t(
|
|
3366
|
-
/* @__PURE__ */ t(
|
|
3363
|
+
/* @__PURE__ */ _(K, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
3364
|
+
/* @__PURE__ */ _(K, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
3365
|
+
/* @__PURE__ */ t(H, { variant: "text", width: 80, height: 12 }),
|
|
3366
|
+
/* @__PURE__ */ t(H, { variant: "text", width: 80, height: 12 })
|
|
3367
3367
|
] }),
|
|
3368
|
-
/* @__PURE__ */ t(
|
|
3369
|
-
/* @__PURE__ */
|
|
3370
|
-
/* @__PURE__ */ t(
|
|
3371
|
-
/* @__PURE__ */ t(
|
|
3372
|
-
/* @__PURE__ */ t(
|
|
3368
|
+
/* @__PURE__ */ t(K, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ t(H, { variant: "text", width: 160, height: 12 }) }),
|
|
3369
|
+
/* @__PURE__ */ _(K, { direction: "row", spacing: 1, children: [
|
|
3370
|
+
/* @__PURE__ */ t(H, { variant: "text", width: 80, height: 16 }),
|
|
3371
|
+
/* @__PURE__ */ t(H, { variant: "text", width: 80, height: 16 }),
|
|
3372
|
+
/* @__PURE__ */ t(H, { variant: "text", width: 80, height: 16 })
|
|
3373
3373
|
] }),
|
|
3374
|
-
/* @__PURE__ */ t("div", { className: be.jugadas, children: /* @__PURE__ */
|
|
3375
|
-
/* @__PURE__ */ t(
|
|
3376
|
-
/* @__PURE__ */ t(
|
|
3377
|
-
/* @__PURE__ */ t(
|
|
3374
|
+
/* @__PURE__ */ t("div", { className: be.jugadas, children: /* @__PURE__ */ _(K, { direction: "row", spacing: 1, children: [
|
|
3375
|
+
/* @__PURE__ */ t(H, { variant: "rounded", width: 80, height: 32 }),
|
|
3376
|
+
/* @__PURE__ */ t(H, { variant: "rounded", width: 80, height: 32 }),
|
|
3377
|
+
/* @__PURE__ */ t(H, { variant: "rounded", width: 80, height: 32 })
|
|
3378
3378
|
] }) })
|
|
3379
3379
|
] })
|
|
3380
3380
|
] }) })
|
|
3381
3381
|
] });
|
|
3382
3382
|
}
|
|
3383
|
-
const
|
|
3384
|
-
wrapper:
|
|
3385
|
-
container:
|
|
3386
|
-
buttonWrapper:
|
|
3383
|
+
const qn = "oraculo__OraculoSeccionEventoSemana-module__wrapper___eqVq-", zn = "oraculo__OraculoSeccionEventoSemana-module__container___5yFQs", Pn = "oraculo__OraculoSeccionEventoSemana-module__buttonWrapper___-6IDT", Dn = "oraculo__OraculoSeccionEventoSemana-module__padding___vfUcV", Ie = {
|
|
3384
|
+
wrapper: qn,
|
|
3385
|
+
container: zn,
|
|
3386
|
+
buttonWrapper: Pn,
|
|
3387
3387
|
padding: Dn
|
|
3388
3388
|
}, Un = fe.memo(Za);
|
|
3389
3389
|
async function Vn(e, a = 2, n) {
|
|
@@ -3392,7 +3392,7 @@ async function Vn(e, a = 2, n) {
|
|
|
3392
3392
|
if (n.aborted)
|
|
3393
3393
|
throw new DOMException("Aborted", "AbortError");
|
|
3394
3394
|
const i = e.slice(r, r + a), s = await Promise.all(
|
|
3395
|
-
i.map((c) => fetch(c, { signal: n }).then((
|
|
3395
|
+
i.map((c) => fetch(c, { signal: n }).then((f) => f.json()))
|
|
3396
3396
|
);
|
|
3397
3397
|
o.push(...s);
|
|
3398
3398
|
}
|
|
@@ -3428,7 +3428,7 @@ function Hn({
|
|
|
3428
3428
|
onViewMore: o,
|
|
3429
3429
|
className: r = ""
|
|
3430
3430
|
}) {
|
|
3431
|
-
const i = ae(), s = ne(), c = le(),
|
|
3431
|
+
const i = ae(), s = ne(), c = le(), f = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE", h = V(null), [u, m] = X({ isStart: !0, isEnd: !1 }), [d, g] = X(null), [b, x] = X({ start: null, end: null }), C = "channel_id=1&client_id=200&competitionId=undefined&lang=es_PE&market=PE&useCombined=true", p = () => {
|
|
3432
3432
|
i({
|
|
3433
3433
|
element: "evento_semana_view_more",
|
|
3434
3434
|
label: `${s} - OraculoSeccionEventoSemana - Ver más`,
|
|
@@ -3441,9 +3441,9 @@ function Hn({
|
|
|
3441
3441
|
tags: { section: "OraculoSeccionEventoSemana" }
|
|
3442
3442
|
}), Aa();
|
|
3443
3443
|
};
|
|
3444
|
-
async function
|
|
3444
|
+
async function w(O) {
|
|
3445
3445
|
var R, B;
|
|
3446
|
-
let
|
|
3446
|
+
let v = [], I = [];
|
|
3447
3447
|
try {
|
|
3448
3448
|
const A = await fetch(
|
|
3449
3449
|
"https://api.mktolimpo.com/api/kambi/eventos/orden",
|
|
@@ -3451,72 +3451,72 @@ function Hn({
|
|
|
3451
3451
|
);
|
|
3452
3452
|
if (A.ok) {
|
|
3453
3453
|
const U = await A.json();
|
|
3454
|
-
|
|
3454
|
+
v = ((R = U == null ? void 0 : U.data) == null ? void 0 : R.group_ids) || [], I = ((B = U == null ? void 0 : U.data) == null ? void 0 : B.event_ids) || [];
|
|
3455
3455
|
}
|
|
3456
3456
|
} catch (A) {
|
|
3457
3457
|
A.name !== "AbortError" && console.warn("Order API not available, using default group order");
|
|
3458
3458
|
return;
|
|
3459
3459
|
}
|
|
3460
3460
|
try {
|
|
3461
|
-
const W = (await (await fetch(
|
|
3461
|
+
const W = (await (await fetch(f, { signal: O })).json()).group.groups.find(
|
|
3462
3462
|
(l) => l.englishName === "Football"
|
|
3463
3463
|
);
|
|
3464
3464
|
if (!W || !Array.isArray(W.groups)) {
|
|
3465
3465
|
console.error("Football groups not found");
|
|
3466
3466
|
return;
|
|
3467
3467
|
}
|
|
3468
|
-
let
|
|
3469
|
-
if (
|
|
3468
|
+
let j = [...W.groups];
|
|
3469
|
+
if (v.length > 0) {
|
|
3470
3470
|
const l = new Map(
|
|
3471
|
-
|
|
3471
|
+
v.map((S, T) => [S, T])
|
|
3472
3472
|
);
|
|
3473
|
-
|
|
3474
|
-
const
|
|
3475
|
-
return
|
|
3473
|
+
j.sort((S, T) => {
|
|
3474
|
+
const N = l.get(String(S.id)), $ = l.get(String(T.id));
|
|
3475
|
+
return N !== void 0 && $ !== void 0 ? N - $ : N !== void 0 ? -1 : $ !== void 0 ? 1 : 0;
|
|
3476
3476
|
});
|
|
3477
3477
|
}
|
|
3478
|
-
const
|
|
3479
|
-
const
|
|
3478
|
+
const G = j.slice(0, 5), E = (l) => {
|
|
3479
|
+
const S = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football";
|
|
3480
3480
|
if (l.groups && l.groups.length > 0) {
|
|
3481
3481
|
const T = l.groups[0];
|
|
3482
3482
|
return [
|
|
3483
|
-
`${
|
|
3483
|
+
`${S}/${l.termKey}/${T.termKey}/all/matches.json?${C}`
|
|
3484
3484
|
];
|
|
3485
3485
|
}
|
|
3486
3486
|
return [
|
|
3487
|
-
`${
|
|
3487
|
+
`${S}/${l.termKey}/all/all/matches.json?${C}`
|
|
3488
3488
|
];
|
|
3489
|
-
},
|
|
3490
|
-
|
|
3489
|
+
}, F = G.flatMap(E);
|
|
3490
|
+
M(F, I, O);
|
|
3491
3491
|
} catch (A) {
|
|
3492
3492
|
console.error(A);
|
|
3493
3493
|
}
|
|
3494
3494
|
}
|
|
3495
|
-
async function
|
|
3495
|
+
async function M(O, v, I) {
|
|
3496
3496
|
try {
|
|
3497
|
-
const R = await Vn(O, 2,
|
|
3497
|
+
const R = await Vn(O, 2, I);
|
|
3498
3498
|
let B = [], A = [];
|
|
3499
|
-
R.forEach((
|
|
3500
|
-
|
|
3501
|
-
...
|
|
3499
|
+
R.forEach((Z) => {
|
|
3500
|
+
Z.events && (B.push(...Z.events.map((G) => G.event)), A.push(
|
|
3501
|
+
...Z.events.flatMap((G) => G.betOffers || [])
|
|
3502
3502
|
));
|
|
3503
3503
|
});
|
|
3504
3504
|
const U = jn(B, A), W = Wn(Gn(U));
|
|
3505
|
-
let
|
|
3506
|
-
if (
|
|
3507
|
-
const
|
|
3508
|
-
|
|
3509
|
-
String(
|
|
3510
|
-
|
|
3505
|
+
let j = W;
|
|
3506
|
+
if (v.length > 0) {
|
|
3507
|
+
const Z = new Map(
|
|
3508
|
+
v.map((G, E) => [
|
|
3509
|
+
String(G),
|
|
3510
|
+
E
|
|
3511
3511
|
])
|
|
3512
3512
|
);
|
|
3513
|
-
|
|
3514
|
-
const
|
|
3515
|
-
return
|
|
3513
|
+
j = [...W].sort((G, E) => {
|
|
3514
|
+
const F = Z.get(String(G.id)), l = Z.get(String(E.id));
|
|
3515
|
+
return F !== void 0 && l !== void 0 ? F - l : F !== void 0 ? -1 : l !== void 0 ? 1 : 0;
|
|
3516
3516
|
});
|
|
3517
3517
|
}
|
|
3518
|
-
if (
|
|
3519
|
-
|
|
3518
|
+
if (I.aborted) return;
|
|
3519
|
+
g(j);
|
|
3520
3520
|
} catch (R) {
|
|
3521
3521
|
console.error("Error loading events:", R);
|
|
3522
3522
|
}
|
|
@@ -3524,23 +3524,23 @@ function Hn({
|
|
|
3524
3524
|
Q(() => {
|
|
3525
3525
|
if (!e) return;
|
|
3526
3526
|
const O = new AbortController();
|
|
3527
|
-
return
|
|
3527
|
+
return w(O.signal), () => {
|
|
3528
3528
|
O.abort();
|
|
3529
3529
|
};
|
|
3530
3530
|
}, [e]);
|
|
3531
|
-
const
|
|
3531
|
+
const z = r || void 0, y = {
|
|
3532
3532
|
paddingLeft: 0,
|
|
3533
3533
|
width: "100%",
|
|
3534
3534
|
boxSizing: "border-box"
|
|
3535
|
-
}, { jerseys:
|
|
3535
|
+
}, { jerseys: k } = St({
|
|
3536
3536
|
events: d,
|
|
3537
|
-
visibleRange:
|
|
3537
|
+
visibleRange: b,
|
|
3538
3538
|
fetchJerseys: gt,
|
|
3539
3539
|
buffer: 2,
|
|
3540
3540
|
debounceMs: 250
|
|
3541
|
-
}),
|
|
3542
|
-
return !
|
|
3543
|
-
/* @__PURE__ */ t("div", { className: Ie.container, children: /* @__PURE__ */
|
|
3541
|
+
}), q = d === null, D = xe("(max-width:950px)");
|
|
3542
|
+
return !q && d.length === 0 ? null : /* @__PURE__ */ t("section", { className: z, style: y, children: /* @__PURE__ */ _("div", { className: `${Ie.wrapper} ${Ie.padding}`, children: [
|
|
3543
|
+
/* @__PURE__ */ t("div", { className: Ie.container, children: /* @__PURE__ */ _(K, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
3544
3544
|
/* @__PURE__ */ t(ge, { title: "Eventos de la semana" }),
|
|
3545
3545
|
/* @__PURE__ */ t("div", { className: Ie.buttonWrapper, children: /* @__PURE__ */ t(
|
|
3546
3546
|
Y,
|
|
@@ -3549,7 +3549,7 @@ function Hn({
|
|
|
3549
3549
|
size: "lg",
|
|
3550
3550
|
fullWidth: !0,
|
|
3551
3551
|
onClick: () => {
|
|
3552
|
-
|
|
3552
|
+
p();
|
|
3553
3553
|
},
|
|
3554
3554
|
children: "Ver más"
|
|
3555
3555
|
}
|
|
@@ -3559,7 +3559,7 @@ function Hn({
|
|
|
3559
3559
|
he,
|
|
3560
3560
|
{
|
|
3561
3561
|
ref: h,
|
|
3562
|
-
items:
|
|
3562
|
+
items: q ? Array(6).fill({}) : d.slice(0, 20),
|
|
3563
3563
|
perPage: 3.5,
|
|
3564
3564
|
gap: "16px",
|
|
3565
3565
|
enableHorizontalWheel: !0,
|
|
@@ -3574,12 +3574,12 @@ function Hn({
|
|
|
3574
3574
|
}
|
|
3575
3575
|
},
|
|
3576
3576
|
renderItem: (O) => {
|
|
3577
|
-
const
|
|
3578
|
-
return
|
|
3577
|
+
const v = O.id, I = v in k ? k[v] : void 0;
|
|
3578
|
+
return q ? /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Fn, {}) }) : /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Un, { event: O, jersey: I }) });
|
|
3579
3579
|
},
|
|
3580
|
-
onMove: ({ isStart: O, isEnd:
|
|
3581
|
-
m({ isStart: O, isEnd:
|
|
3582
|
-
start:
|
|
3580
|
+
onMove: ({ isStart: O, isEnd: v, visibleStart: I, visibleEnd: R, source: B }) => {
|
|
3581
|
+
m({ isStart: O, isEnd: v }), x({
|
|
3582
|
+
start: I,
|
|
3583
3583
|
end: R
|
|
3584
3584
|
}), B === "user" && i({
|
|
3585
3585
|
element: "evento_semana_carousel_slide",
|
|
@@ -3589,10 +3589,10 @@ function Hn({
|
|
|
3589
3589
|
module_id: c,
|
|
3590
3590
|
metadata: {
|
|
3591
3591
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
3592
|
-
visibleStart:
|
|
3592
|
+
visibleStart: I,
|
|
3593
3593
|
visibleEnd: R,
|
|
3594
3594
|
isStart: O,
|
|
3595
|
-
isEnd:
|
|
3595
|
+
isEnd: v
|
|
3596
3596
|
},
|
|
3597
3597
|
tags: { section: "OraculoSeccionEventoSemana" }
|
|
3598
3598
|
});
|
|
@@ -3604,8 +3604,8 @@ function Hn({
|
|
|
3604
3604
|
const Kn = -300, Zn = (e) => /[zZ]|[+-]\d{2}:\d{2}$/.test(e), nt = (e) => {
|
|
3605
3605
|
if (!e) return null;
|
|
3606
3606
|
if (Zn(e)) {
|
|
3607
|
-
const
|
|
3608
|
-
return Number.isNaN(
|
|
3607
|
+
const f = new Date(e).getTime();
|
|
3608
|
+
return Number.isNaN(f) ? null : f;
|
|
3609
3609
|
}
|
|
3610
3610
|
const a = e.match(
|
|
3611
3611
|
/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})(?::(\d{2}))?$/
|
|
@@ -3621,8 +3621,8 @@ const Kn = -300, Zn = (e) => /[zZ]|[+-]\d{2}:\d{2}$/.test(e), nt = (e) => {
|
|
|
3621
3621
|
Number(c)
|
|
3622
3622
|
);
|
|
3623
3623
|
}, Jn = (e, a) => {
|
|
3624
|
-
var c,
|
|
3625
|
-
const n = (h = (
|
|
3624
|
+
var c, f, h, u, m, d, g, b, x;
|
|
3625
|
+
const n = (h = (f = (c = e == null ? void 0 : e.fields) != null ? c : e == null ? void 0 : e.parameters) != null ? f : e == null ? void 0 : e.extraFields) != null ? h : [], o = (d = (m = e == null ? void 0 : e.startAt) != null ? m : (u = n.find((C) => (C == null ? void 0 : C.name) === "startAt")) == null ? void 0 : u.value) != null ? d : null, r = (x = (b = e == null ? void 0 : e.endAt) != null ? b : (g = n.find((C) => (C == null ? void 0 : C.name) === "endAt")) == null ? void 0 : g.value) != null ? x : null, i = nt(o), s = nt(r);
|
|
3626
3626
|
return !(i != null && a < i || s != null && a >= s);
|
|
3627
3627
|
};
|
|
3628
3628
|
function Xn({
|
|
@@ -3630,26 +3630,26 @@ function Xn({
|
|
|
3630
3630
|
items: a,
|
|
3631
3631
|
hideItems: n
|
|
3632
3632
|
}) {
|
|
3633
|
-
var
|
|
3634
|
-
const [o, r] = X(0), i = ae(), s = ne(), c = le(),
|
|
3635
|
-
var
|
|
3636
|
-
const
|
|
3637
|
-
return
|
|
3638
|
-
}).map(({ item:
|
|
3639
|
-
const
|
|
3640
|
-
(
|
|
3633
|
+
var G;
|
|
3634
|
+
const [o, r] = X(0), i = ae(), s = ne(), c = le(), f = V(null), h = V(!1), u = V(!1), [m, d] = X(() => Date.now()), g = ie("setDepositActionGlobal"), b = ie("setAbrirLiveActionGlobal"), x = (E) => [...E != null ? E : []].map((F, l) => ({ item: F, index: l })).sort((F, l) => {
|
|
3635
|
+
var N, $;
|
|
3636
|
+
const S = (N = F.item.order) != null ? N : Number.MAX_SAFE_INTEGER, T = ($ = l.item.order) != null ? $ : Number.MAX_SAFE_INTEGER;
|
|
3637
|
+
return S - T || F.index - l.index;
|
|
3638
|
+
}).map(({ item: F }) => F), C = re(() => x(a), [a]), p = re(() => {
|
|
3639
|
+
const E = (e != null ? e : []).filter(
|
|
3640
|
+
(F) => Jn(F, m)
|
|
3641
3641
|
);
|
|
3642
|
-
return
|
|
3643
|
-
}, [e, m]),
|
|
3642
|
+
return x(E);
|
|
3643
|
+
}, [e, m]), w = p.length || 1, M = !p || p.length === 0, z = !M && p.length > 1, y = !n && C.length > 0;
|
|
3644
3644
|
De("(max-width:950px)");
|
|
3645
|
-
const
|
|
3645
|
+
const k = "#B5B5B5";
|
|
3646
3646
|
Q(() => {
|
|
3647
|
-
const
|
|
3647
|
+
const E = window.setInterval(() => {
|
|
3648
3648
|
d(Date.now());
|
|
3649
3649
|
}, 3e4);
|
|
3650
|
-
return () => window.clearInterval(
|
|
3650
|
+
return () => window.clearInterval(E);
|
|
3651
3651
|
}, []);
|
|
3652
|
-
const
|
|
3652
|
+
const q = {
|
|
3653
3653
|
position: "absolute",
|
|
3654
3654
|
top: "50%",
|
|
3655
3655
|
transform: "translateY(-50%)",
|
|
@@ -3657,22 +3657,22 @@ function Xn({
|
|
|
3657
3657
|
width: 48,
|
|
3658
3658
|
height: 40,
|
|
3659
3659
|
borderRadius: "12px",
|
|
3660
|
-
border: `1.5px solid ${
|
|
3660
|
+
border: `1.5px solid ${k}`,
|
|
3661
3661
|
py: 1,
|
|
3662
3662
|
px: 1.5,
|
|
3663
|
-
color:
|
|
3663
|
+
color: k,
|
|
3664
3664
|
backgroundColor: "transparent",
|
|
3665
3665
|
"&:hover": {
|
|
3666
3666
|
backgroundColor: "rgba(181,181,181,0.08)"
|
|
3667
3667
|
},
|
|
3668
3668
|
"&.Mui-disabled": {
|
|
3669
3669
|
opacity: 0.35,
|
|
3670
|
-
borderColor:
|
|
3671
|
-
color:
|
|
3670
|
+
borderColor: k,
|
|
3671
|
+
color: k,
|
|
3672
3672
|
backgroundColor: "transparent",
|
|
3673
3673
|
cursor: "default"
|
|
3674
3674
|
}
|
|
3675
|
-
},
|
|
3675
|
+
}, D = re(
|
|
3676
3676
|
() => ({
|
|
3677
3677
|
type: "loop",
|
|
3678
3678
|
perMove: 1,
|
|
@@ -3684,109 +3684,112 @@ function Xn({
|
|
|
3684
3684
|
[]
|
|
3685
3685
|
);
|
|
3686
3686
|
Q(() => {
|
|
3687
|
-
const
|
|
3687
|
+
const E = setTimeout(() => {
|
|
3688
3688
|
h.current = !0;
|
|
3689
3689
|
}, 500);
|
|
3690
|
-
return () => clearTimeout(
|
|
3690
|
+
return () => clearTimeout(E);
|
|
3691
3691
|
}, []);
|
|
3692
|
-
const
|
|
3693
|
-
var
|
|
3694
|
-
const
|
|
3695
|
-
if (
|
|
3696
|
-
switch (
|
|
3692
|
+
const O = (E, F, l) => {
|
|
3693
|
+
var $, L;
|
|
3694
|
+
const S = !!F.idFunction, T = !!F.href;
|
|
3695
|
+
if (S)
|
|
3696
|
+
switch (E.preventDefault(), E.stopPropagation(), F.idFunction) {
|
|
3697
3697
|
case "deposito":
|
|
3698
|
-
|
|
3698
|
+
g == null || g(!0);
|
|
3699
|
+
return;
|
|
3700
|
+
case "abrirLive":
|
|
3701
|
+
b == null || b();
|
|
3699
3702
|
return;
|
|
3700
3703
|
default:
|
|
3701
3704
|
return;
|
|
3702
3705
|
}
|
|
3703
|
-
if (!
|
|
3704
|
-
|
|
3706
|
+
if (!T) {
|
|
3707
|
+
E.preventDefault(), E.stopPropagation();
|
|
3705
3708
|
return;
|
|
3706
3709
|
}
|
|
3707
|
-
const
|
|
3710
|
+
const N = ((L = ($ = F.href) == null ? void 0 : $.split("/").pop()) == null ? void 0 : L.split(".")[0]) || F.label || F.id || `banner_${l + 1}`;
|
|
3708
3711
|
i({
|
|
3709
3712
|
element: "banner_carousel",
|
|
3710
|
-
label: `${s} - OraculoSeccionBanners - Banner click: ${
|
|
3711
|
-
target:
|
|
3713
|
+
label: `${s} - OraculoSeccionBanners - Banner click: ${N}`,
|
|
3714
|
+
target: F.href || "no_url",
|
|
3712
3715
|
event_type: "click",
|
|
3713
3716
|
module_id: c,
|
|
3714
3717
|
metadata: {
|
|
3715
3718
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
3716
|
-
banner_position:
|
|
3717
|
-
banner_total: (
|
|
3719
|
+
banner_position: l + 1,
|
|
3720
|
+
banner_total: (p == null ? void 0 : p.length) || 0
|
|
3718
3721
|
},
|
|
3719
3722
|
tags: {
|
|
3720
3723
|
banner_type: "carousel",
|
|
3721
3724
|
banner_target: "_self",
|
|
3722
|
-
banner_url:
|
|
3725
|
+
banner_url: F.href || "no_url"
|
|
3723
3726
|
}
|
|
3724
3727
|
});
|
|
3725
|
-
},
|
|
3728
|
+
}, v = (E) => {
|
|
3726
3729
|
if (i({
|
|
3727
3730
|
element: "banner_menu_item",
|
|
3728
|
-
label: `${s} - OraculoSeccionBanners - Menu item click: ${
|
|
3729
|
-
target:
|
|
3731
|
+
label: `${s} - OraculoSeccionBanners - Menu item click: ${E.label || E.id}`,
|
|
3732
|
+
target: E.href || "action",
|
|
3730
3733
|
event_type: "click",
|
|
3731
3734
|
module_id: c,
|
|
3732
3735
|
metadata: {
|
|
3733
3736
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
3734
|
-
item_id:
|
|
3737
|
+
item_id: E.id
|
|
3735
3738
|
},
|
|
3736
3739
|
tags: {
|
|
3737
|
-
item_label:
|
|
3740
|
+
item_label: E.label || "no_label"
|
|
3738
3741
|
}
|
|
3739
|
-
}),
|
|
3740
|
-
|
|
3742
|
+
}), E.onClick) {
|
|
3743
|
+
E.onClick();
|
|
3741
3744
|
return;
|
|
3742
3745
|
}
|
|
3743
|
-
|
|
3744
|
-
},
|
|
3745
|
-
|
|
3746
|
-
},
|
|
3747
|
-
|
|
3748
|
-
var
|
|
3749
|
-
u.current = !0, (
|
|
3750
|
-
},
|
|
3746
|
+
E.href && typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(E.href);
|
|
3747
|
+
}, I = 5e3, R = V(null), B = !M && ((G = p == null ? void 0 : p.length) != null ? G : 0) > 1, A = () => {
|
|
3748
|
+
R.current != null && (window.clearTimeout(R.current), R.current = null);
|
|
3749
|
+
}, U = () => {
|
|
3750
|
+
A(), B && (R.current = window.setTimeout(() => {
|
|
3751
|
+
var E;
|
|
3752
|
+
u.current = !0, (E = f.current) == null || E.next();
|
|
3753
|
+
}, I));
|
|
3751
3754
|
};
|
|
3752
|
-
Q(() => (
|
|
3753
|
-
const
|
|
3754
|
-
var
|
|
3755
|
-
|
|
3756
|
-
},
|
|
3757
|
-
var
|
|
3758
|
-
|
|
3759
|
-
},
|
|
3760
|
-
var
|
|
3761
|
-
const
|
|
3755
|
+
Q(() => (U(), () => A()), [B, I]);
|
|
3756
|
+
const W = (E) => {
|
|
3757
|
+
var F;
|
|
3758
|
+
E.preventDefault(), E.stopPropagation(), A(), (F = f.current) == null || F.prev();
|
|
3759
|
+
}, j = (E) => {
|
|
3760
|
+
var F;
|
|
3761
|
+
E.preventDefault(), E.stopPropagation(), A(), (F = f.current) == null || F.next();
|
|
3762
|
+
}, Z = (E) => {
|
|
3763
|
+
var S, T, N, $;
|
|
3764
|
+
const F = (E % w + w) % w;
|
|
3762
3765
|
if (!h.current) return;
|
|
3763
|
-
const
|
|
3766
|
+
const l = (S = p == null ? void 0 : p[F]) != null && S.href ? ((N = (T = p[F].href) == null ? void 0 : T.split("/").pop()) == null ? void 0 : N.split(".")[0]) || `banner_${F + 1}` : `banner_${F + 1}`;
|
|
3764
3767
|
i({
|
|
3765
3768
|
element: "banner_carousel",
|
|
3766
|
-
label: `${s} - OraculoSeccionBanners - Banner view: Slide ${
|
|
3767
|
-
target: ((
|
|
3769
|
+
label: `${s} - OraculoSeccionBanners - Banner view: Slide ${F + 1} - ${l}`,
|
|
3770
|
+
target: (($ = p == null ? void 0 : p[F]) == null ? void 0 : $.href) || "no_url",
|
|
3768
3771
|
event_type: "view",
|
|
3769
3772
|
module_id: c,
|
|
3770
3773
|
metadata: {
|
|
3771
3774
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
3772
|
-
slide_index:
|
|
3773
|
-
total_slides:
|
|
3775
|
+
slide_index: F + 1,
|
|
3776
|
+
total_slides: w,
|
|
3774
3777
|
interaction_type: "manual_slide"
|
|
3775
3778
|
},
|
|
3776
|
-
tags: { banner_position: String(
|
|
3779
|
+
tags: { banner_position: String(F + 1) }
|
|
3777
3780
|
});
|
|
3778
3781
|
};
|
|
3779
|
-
return /* @__PURE__ */
|
|
3782
|
+
return /* @__PURE__ */ _(
|
|
3780
3783
|
ee,
|
|
3781
3784
|
{
|
|
3782
3785
|
component: "section",
|
|
3783
3786
|
sx: {
|
|
3784
3787
|
position: "relative",
|
|
3785
3788
|
overflow: "visible",
|
|
3786
|
-
pb:
|
|
3789
|
+
pb: y ? { xs: "40px", sm: 0 } : 0
|
|
3787
3790
|
},
|
|
3788
3791
|
children: [
|
|
3789
|
-
/* @__PURE__ */
|
|
3792
|
+
/* @__PURE__ */ _(
|
|
3790
3793
|
ee,
|
|
3791
3794
|
{
|
|
3792
3795
|
sx: {
|
|
@@ -3813,46 +3816,46 @@ function Xn({
|
|
|
3813
3816
|
children: /* @__PURE__ */ t(
|
|
3814
3817
|
he,
|
|
3815
3818
|
{
|
|
3816
|
-
ref:
|
|
3817
|
-
items:
|
|
3819
|
+
ref: f,
|
|
3820
|
+
items: p,
|
|
3818
3821
|
perPage: 1,
|
|
3819
3822
|
gap: "0px",
|
|
3820
3823
|
enableHorizontalWheel: !0,
|
|
3821
|
-
options:
|
|
3822
|
-
onMove: ({ index:
|
|
3823
|
-
const
|
|
3824
|
-
r(
|
|
3825
|
-
const
|
|
3826
|
-
u.current = !1,
|
|
3824
|
+
options: D,
|
|
3825
|
+
onMove: ({ index: E, source: F }) => {
|
|
3826
|
+
const l = (E % w + w) % w;
|
|
3827
|
+
r(l);
|
|
3828
|
+
const S = u.current;
|
|
3829
|
+
u.current = !1, F === "user" && (U(), S || Z(E));
|
|
3827
3830
|
},
|
|
3828
|
-
renderItem: (
|
|
3829
|
-
var
|
|
3830
|
-
const
|
|
3831
|
-
return /* @__PURE__ */
|
|
3831
|
+
renderItem: (E, F) => {
|
|
3832
|
+
var $, L, J;
|
|
3833
|
+
const l = !!E.idFunction, S = !!E.href, T = S && !l, N = l || S;
|
|
3834
|
+
return /* @__PURE__ */ _(
|
|
3832
3835
|
ee,
|
|
3833
3836
|
{
|
|
3834
|
-
component:
|
|
3835
|
-
href:
|
|
3836
|
-
target:
|
|
3837
|
-
rel:
|
|
3838
|
-
onClick: (
|
|
3837
|
+
component: T ? "a" : "div",
|
|
3838
|
+
href: T ? E.href : void 0,
|
|
3839
|
+
target: T ? ($ = E.target) != null ? $ : "_self" : void 0,
|
|
3840
|
+
rel: T && E.target === "_blank" ? "noopener noreferrer" : void 0,
|
|
3841
|
+
onClick: (te) => O(te, E, F),
|
|
3839
3842
|
sx: {
|
|
3840
3843
|
position: "relative",
|
|
3841
3844
|
width: "100%",
|
|
3842
3845
|
height: "100%",
|
|
3843
3846
|
display: "block",
|
|
3844
3847
|
textDecoration: "none",
|
|
3845
|
-
cursor:
|
|
3848
|
+
cursor: N ? "pointer" : "default"
|
|
3846
3849
|
},
|
|
3847
3850
|
children: [
|
|
3848
|
-
/* @__PURE__ */
|
|
3849
|
-
/* @__PURE__ */ t("source", { srcSet:
|
|
3850
|
-
/* @__PURE__ */ t("source", { srcSet:
|
|
3851
|
+
/* @__PURE__ */ _(ee, { component: "picture", sx: { position: "absolute", inset: 0, lineHeight: 0 }, children: [
|
|
3852
|
+
/* @__PURE__ */ t("source", { srcSet: E.desktopSrc, media: "(min-width:950px)" }),
|
|
3853
|
+
/* @__PURE__ */ t("source", { srcSet: E.mobileSrc, media: "(max-width:949px)" }),
|
|
3851
3854
|
/* @__PURE__ */ t(
|
|
3852
3855
|
ee,
|
|
3853
3856
|
{
|
|
3854
3857
|
component: "img",
|
|
3855
|
-
src: (
|
|
3858
|
+
src: (J = (L = E.fallbackSrc) != null ? L : E.desktopSrc) != null ? J : "",
|
|
3856
3859
|
alt: "",
|
|
3857
3860
|
"aria-hidden": !0,
|
|
3858
3861
|
loading: "lazy",
|
|
@@ -3892,14 +3895,14 @@ function Xn({
|
|
|
3892
3895
|
)
|
|
3893
3896
|
}
|
|
3894
3897
|
),
|
|
3895
|
-
|
|
3898
|
+
z && /* @__PURE__ */ _(pe, { children: [
|
|
3896
3899
|
/* @__PURE__ */ t(
|
|
3897
3900
|
Ke,
|
|
3898
3901
|
{
|
|
3899
3902
|
"aria-label": "Anterior",
|
|
3900
|
-
onClick:
|
|
3903
|
+
onClick: W,
|
|
3901
3904
|
sx: {
|
|
3902
|
-
...
|
|
3905
|
+
...q,
|
|
3903
3906
|
left: "120px",
|
|
3904
3907
|
"@media (max-width:1024px)": { left: 24 },
|
|
3905
3908
|
"@media (max-width:786px)": { display: "none" }
|
|
@@ -3911,14 +3914,14 @@ function Xn({
|
|
|
3911
3914
|
Ke,
|
|
3912
3915
|
{
|
|
3913
3916
|
"aria-label": "Siguiente",
|
|
3914
|
-
onClick:
|
|
3917
|
+
onClick: j,
|
|
3915
3918
|
sx: {
|
|
3916
|
-
...
|
|
3919
|
+
...q,
|
|
3917
3920
|
right: "120px",
|
|
3918
3921
|
"@media (max-width:1024px)": { right: 24 },
|
|
3919
3922
|
"@media (max-width:786px)": { display: "none" }
|
|
3920
3923
|
},
|
|
3921
|
-
children: /* @__PURE__ */ t(
|
|
3924
|
+
children: /* @__PURE__ */ t(Re, {})
|
|
3922
3925
|
}
|
|
3923
3926
|
)
|
|
3924
3927
|
] }),
|
|
@@ -3937,18 +3940,18 @@ function Xn({
|
|
|
3937
3940
|
children: /* @__PURE__ */ t(
|
|
3938
3941
|
dt,
|
|
3939
3942
|
{
|
|
3940
|
-
total:
|
|
3943
|
+
total: w,
|
|
3941
3944
|
active: o,
|
|
3942
|
-
durationMs:
|
|
3945
|
+
durationMs: I
|
|
3943
3946
|
},
|
|
3944
|
-
`${o}-${
|
|
3947
|
+
`${o}-${w}`
|
|
3945
3948
|
)
|
|
3946
3949
|
}
|
|
3947
3950
|
)
|
|
3948
3951
|
]
|
|
3949
3952
|
}
|
|
3950
3953
|
),
|
|
3951
|
-
|
|
3954
|
+
y && /* @__PURE__ */ t(
|
|
3952
3955
|
ee,
|
|
3953
3956
|
{
|
|
3954
3957
|
sx: {
|
|
@@ -3966,7 +3969,7 @@ function Xn({
|
|
|
3966
3969
|
boxShadow: "0 10px 24px rgba(0,0,0,.35)",
|
|
3967
3970
|
zIndex: 3
|
|
3968
3971
|
},
|
|
3969
|
-
children:
|
|
3972
|
+
children: C == null ? void 0 : C.map((E) => /* @__PURE__ */ _(
|
|
3970
3973
|
ee,
|
|
3971
3974
|
{
|
|
3972
3975
|
sx: {
|
|
@@ -3978,7 +3981,7 @@ function Xn({
|
|
|
3978
3981
|
gap: { xs: 0.5, md: 1 },
|
|
3979
3982
|
color: "#FFFFFF",
|
|
3980
3983
|
minWidth: 0,
|
|
3981
|
-
cursor:
|
|
3984
|
+
cursor: E.onClick || E.href ? "pointer" : "default",
|
|
3982
3985
|
whiteSpace: "nowrap",
|
|
3983
3986
|
"&::after": {
|
|
3984
3987
|
content: '""',
|
|
@@ -4002,7 +4005,7 @@ function Xn({
|
|
|
4002
4005
|
opacity: 1,
|
|
4003
4006
|
transform: "scaleX(1)"
|
|
4004
4007
|
},
|
|
4005
|
-
...
|
|
4008
|
+
...E.iconHover && {
|
|
4006
4009
|
"&:hover .menu-icon-default": {
|
|
4007
4010
|
display: "none"
|
|
4008
4011
|
},
|
|
@@ -4011,9 +4014,9 @@ function Xn({
|
|
|
4011
4014
|
}
|
|
4012
4015
|
}
|
|
4013
4016
|
},
|
|
4014
|
-
onClick: () =>
|
|
4017
|
+
onClick: () => v(E),
|
|
4015
4018
|
children: [
|
|
4016
|
-
|
|
4019
|
+
E.icon && /* @__PURE__ */ _(
|
|
4017
4020
|
ee,
|
|
4018
4021
|
{
|
|
4019
4022
|
sx: {
|
|
@@ -4027,8 +4030,8 @@ function Xn({
|
|
|
4027
4030
|
ee,
|
|
4028
4031
|
{
|
|
4029
4032
|
component: "img",
|
|
4030
|
-
src:
|
|
4031
|
-
alt:
|
|
4033
|
+
src: E.icon,
|
|
4034
|
+
alt: E.label || `icon-${E.id}`,
|
|
4032
4035
|
className: "menu-icon-default",
|
|
4033
4036
|
sx: {
|
|
4034
4037
|
display: "block",
|
|
@@ -4040,12 +4043,12 @@ function Xn({
|
|
|
4040
4043
|
}
|
|
4041
4044
|
}
|
|
4042
4045
|
),
|
|
4043
|
-
|
|
4046
|
+
E.iconHover && /* @__PURE__ */ t(
|
|
4044
4047
|
ee,
|
|
4045
4048
|
{
|
|
4046
4049
|
component: "img",
|
|
4047
|
-
src:
|
|
4048
|
-
alt:
|
|
4050
|
+
src: E.iconHover,
|
|
4051
|
+
alt: E.label || `icon-hover-${E.id}`,
|
|
4049
4052
|
className: "menu-icon-hover",
|
|
4050
4053
|
sx: {
|
|
4051
4054
|
display: "none",
|
|
@@ -4070,12 +4073,12 @@ function Xn({
|
|
|
4070
4073
|
color: "#E0E0E0",
|
|
4071
4074
|
textAlign: "center"
|
|
4072
4075
|
},
|
|
4073
|
-
children:
|
|
4076
|
+
children: E.label
|
|
4074
4077
|
}
|
|
4075
4078
|
)
|
|
4076
4079
|
]
|
|
4077
4080
|
},
|
|
4078
|
-
|
|
4081
|
+
E.id
|
|
4079
4082
|
))
|
|
4080
4083
|
}
|
|
4081
4084
|
)
|
|
@@ -4084,21 +4087,21 @@ function Xn({
|
|
|
4084
4087
|
);
|
|
4085
4088
|
}
|
|
4086
4089
|
const Yn = [
|
|
4087
|
-
{ src: "https://
|
|
4088
|
-
{ src: "https://
|
|
4089
|
-
{ src: "https://
|
|
4090
|
-
{ src: "https://
|
|
4091
|
-
{ src: "https://
|
|
4092
|
-
{ src: "https://
|
|
4093
|
-
{ src: "https://
|
|
4094
|
-
{ src: "
|
|
4090
|
+
{ src: "https://d28gilnhu2bcbp.cloudfront.net/landing/IBK.svg", alt: "Interbank" },
|
|
4091
|
+
{ src: "https://d28gilnhu2bcbp.cloudfront.net/landing/Yape.svg", alt: "Yape" },
|
|
4092
|
+
{ src: "https://d28gilnhu2bcbp.cloudfront.net/landing/BCP.png", alt: "BCP" },
|
|
4093
|
+
{ src: "https://d28gilnhu2bcbp.cloudfront.net/landing/pagoEfectivo.png", alt: "PagoEfectivo" },
|
|
4094
|
+
{ src: "https://d28gilnhu2bcbp.cloudfront.net/landing/tupay.svg", alt: "Tupay" },
|
|
4095
|
+
// { src: "https://d28gilnhu2bcbp.cloudfront.net/landing/monnet.svg", alt: "Monnet" },
|
|
4096
|
+
{ src: "https://d28gilnhu2bcbp.cloudfront.net/landing/niubiz.svg", alt: "Niubiz" },
|
|
4097
|
+
{ src: "https://d28gilnhu2bcbp.cloudfront.net/landing/bbva.png", alt: "BBVA" }
|
|
4095
4098
|
];
|
|
4096
4099
|
function Qn({
|
|
4097
4100
|
title: e = "Medios de pago",
|
|
4098
4101
|
items: a = Yn
|
|
4099
4102
|
}) {
|
|
4100
4103
|
const n = Math.ceil(a.length / 2), o = a.slice(0, n), r = a.slice(n);
|
|
4101
|
-
return /* @__PURE__ */
|
|
4104
|
+
return /* @__PURE__ */ _(ee, { component: "section", "aria-labelledby": "mp-title", sx: { color: "#fff" }, children: [
|
|
4102
4105
|
/* @__PURE__ */ t(
|
|
4103
4106
|
st,
|
|
4104
4107
|
{
|
|
@@ -4127,9 +4130,9 @@ function Qn({
|
|
|
4127
4130
|
}
|
|
4128
4131
|
}
|
|
4129
4132
|
),
|
|
4130
|
-
/* @__PURE__ */
|
|
4133
|
+
/* @__PURE__ */ _(Ee, { spacing: { xs: 2, md: 3 }, alignItems: "center", children: [
|
|
4131
4134
|
/* @__PURE__ */ t(
|
|
4132
|
-
|
|
4135
|
+
Ee,
|
|
4133
4136
|
{
|
|
4134
4137
|
direction: "row",
|
|
4135
4138
|
justifyContent: "center",
|
|
@@ -4140,7 +4143,7 @@ function Qn({
|
|
|
4140
4143
|
}
|
|
4141
4144
|
),
|
|
4142
4145
|
/* @__PURE__ */ t(
|
|
4143
|
-
|
|
4146
|
+
Ee,
|
|
4144
4147
|
{
|
|
4145
4148
|
direction: "row",
|
|
4146
4149
|
justifyContent: "center",
|
|
@@ -4156,8 +4159,8 @@ function Qn({
|
|
|
4156
4159
|
function It({
|
|
4157
4160
|
children: e
|
|
4158
4161
|
}) {
|
|
4159
|
-
const a =
|
|
4160
|
-
() =>
|
|
4162
|
+
const a = Rt(), n = fe.useMemo(
|
|
4163
|
+
() => Lt(a, {
|
|
4161
4164
|
typography: { fontFamily: "var(--orc-font)" },
|
|
4162
4165
|
components: {
|
|
4163
4166
|
MuiTypography: {
|
|
@@ -4169,8 +4172,8 @@ function It({
|
|
|
4169
4172
|
}),
|
|
4170
4173
|
[a]
|
|
4171
4174
|
);
|
|
4172
|
-
return /* @__PURE__ */
|
|
4173
|
-
/* @__PURE__ */ t(
|
|
4175
|
+
return /* @__PURE__ */ _(Ft, { theme: n, children: [
|
|
4176
|
+
/* @__PURE__ */ t(qt, {}),
|
|
4174
4177
|
e
|
|
4175
4178
|
] });
|
|
4176
4179
|
}
|
|
@@ -4191,10 +4194,10 @@ const eo = {
|
|
|
4191
4194
|
OraculoSeccionBonoBienvenida: yn,
|
|
4192
4195
|
OraculoSeccionBanners: Xn,
|
|
4193
4196
|
OraculoSeccionMediosPago: Qn,
|
|
4194
|
-
OraculoSeccionEventoEnVivo:
|
|
4197
|
+
OraculoSeccionEventoEnVivo: Ln,
|
|
4195
4198
|
OraculoSeccionEventoSemana: Hn,
|
|
4196
4199
|
OraculoSeccionEventoCombinadas: Tn
|
|
4197
|
-
},
|
|
4200
|
+
}, Pe = {
|
|
4198
4201
|
sections: [
|
|
4199
4202
|
{
|
|
4200
4203
|
title: "Banners",
|
|
@@ -4232,7 +4235,7 @@ const eo = {
|
|
|
4232
4235
|
name: "iconHover",
|
|
4233
4236
|
isImage: !0,
|
|
4234
4237
|
required: !1,
|
|
4235
|
-
value: "https://
|
|
4238
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1773756376881-icon1.png",
|
|
4236
4239
|
type: "string",
|
|
4237
4240
|
id: "8a5752de-6d6e-4ba7-b4a3-e001534d43a6",
|
|
4238
4241
|
maxSizeMB: 0.5
|
|
@@ -4290,7 +4293,7 @@ const eo = {
|
|
|
4290
4293
|
type: "string",
|
|
4291
4294
|
id: "42be2203-7dbf-418e-9181-9a2c022076ac",
|
|
4292
4295
|
maxSizeMB: 0.5,
|
|
4293
|
-
value: "https://
|
|
4296
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1773756386124-icon2.png"
|
|
4294
4297
|
},
|
|
4295
4298
|
{
|
|
4296
4299
|
value: "https://www.olimpo.bet/deportes#sports/a-z",
|
|
@@ -4333,13 +4336,13 @@ const eo = {
|
|
|
4333
4336
|
type: "string",
|
|
4334
4337
|
id: "6ede5815-7336-40fa-99f2-57ac6cb938cd",
|
|
4335
4338
|
maxSizeMB: 0.2,
|
|
4336
|
-
value: "https://
|
|
4339
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1765981473501-icon3.svg",
|
|
4337
4340
|
required: !0,
|
|
4338
4341
|
isImage: !0,
|
|
4339
4342
|
name: "icon"
|
|
4340
4343
|
},
|
|
4341
4344
|
{
|
|
4342
|
-
value: "https://
|
|
4345
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1773756400282-icon3.png",
|
|
4343
4346
|
id: "49c3a94a-dbb3-4a0a-9b03-cf04bcb2266f",
|
|
4344
4347
|
maxSizeMB: 0.5,
|
|
4345
4348
|
type: "string",
|
|
@@ -4397,7 +4400,7 @@ const eo = {
|
|
|
4397
4400
|
type: "string",
|
|
4398
4401
|
maxSizeMB: 0.5,
|
|
4399
4402
|
id: "aac10c8d-7aac-4051-82ed-a88706a6f6dc",
|
|
4400
|
-
value: "https://
|
|
4403
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1773756409593-icon.png",
|
|
4401
4404
|
required: !1,
|
|
4402
4405
|
isImage: !0,
|
|
4403
4406
|
name: "iconHover"
|
|
@@ -4448,7 +4451,7 @@ const eo = {
|
|
|
4448
4451
|
fields: [
|
|
4449
4452
|
{
|
|
4450
4453
|
validateDimensions: !1,
|
|
4451
|
-
value: "https://
|
|
4454
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1773204037917-comercial-misiones.webp",
|
|
4452
4455
|
id: "eea41214-3c26-41e9-a908-d87327147396",
|
|
4453
4456
|
name: "desktopSrc",
|
|
4454
4457
|
isImage: !0,
|
|
@@ -4476,7 +4479,7 @@ const eo = {
|
|
|
4476
4479
|
name: "fallbackSrc",
|
|
4477
4480
|
isImage: !0,
|
|
4478
4481
|
validateDimensions: !1,
|
|
4479
|
-
value: "https://
|
|
4482
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1773204045973-comercial-misiones.webp",
|
|
4480
4483
|
id: "2616b944-7cd1-4919-bc56-38ddb1a3093b"
|
|
4481
4484
|
},
|
|
4482
4485
|
{
|
|
@@ -4528,7 +4531,7 @@ const eo = {
|
|
|
4528
4531
|
name: "desktopSrc",
|
|
4529
4532
|
isImage: !0,
|
|
4530
4533
|
validateDimensions: !1,
|
|
4531
|
-
value: "https://
|
|
4534
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1773204060818-captacion-nuevahome.png",
|
|
4532
4535
|
id: "1ebab59e-f706-4795-81cb-7accfc9f33d7",
|
|
4533
4536
|
required: !1,
|
|
4534
4537
|
dimensions: "1440x400",
|
|
@@ -4537,7 +4540,7 @@ const eo = {
|
|
|
4537
4540
|
},
|
|
4538
4541
|
{
|
|
4539
4542
|
id: "bdebd1b0-d633-4b9e-9247-8e769cdc5b3b",
|
|
4540
|
-
value: "https://
|
|
4543
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1774473125247-captacion-nuevahomemobile4.png",
|
|
4541
4544
|
validateDimensions: !1,
|
|
4542
4545
|
isImage: !0,
|
|
4543
4546
|
name: "mobileSrc",
|
|
@@ -4548,7 +4551,7 @@ const eo = {
|
|
|
4548
4551
|
},
|
|
4549
4552
|
{
|
|
4550
4553
|
validateDimensions: !1,
|
|
4551
|
-
value: "https://
|
|
4554
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1773204124958-captacion-nuevahome.png",
|
|
4552
4555
|
id: "4bc20da7-b769-43dd-ba2e-ee9261ec73d7",
|
|
4553
4556
|
name: "fallbackSrc",
|
|
4554
4557
|
isImage: !0,
|
|
@@ -4597,7 +4600,7 @@ const eo = {
|
|
|
4597
4600
|
{
|
|
4598
4601
|
id: "28a44fd4-2f36-491e-a026-d797891eb420",
|
|
4599
4602
|
validateDimensions: !1,
|
|
4600
|
-
value: "https://
|
|
4603
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1770307101474-ftd_web_asesorlu.jpg",
|
|
4601
4604
|
isImage: !0,
|
|
4602
4605
|
name: "desktopSrc",
|
|
4603
4606
|
type: "string",
|
|
@@ -4611,7 +4614,7 @@ const eo = {
|
|
|
4611
4614
|
required: !1,
|
|
4612
4615
|
dimensions: "1080x840",
|
|
4613
4616
|
validateDimensions: !1,
|
|
4614
|
-
value: "https://
|
|
4617
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1770307108379-ftd_mobile_asesorlu.jpg",
|
|
4615
4618
|
id: "9ddef07e-6c33-44c6-a9de-3045bcce0a64",
|
|
4616
4619
|
name: "mobileSrc",
|
|
4617
4620
|
isImage: !0
|
|
@@ -4623,7 +4626,7 @@ const eo = {
|
|
|
4623
4626
|
type: "string",
|
|
4624
4627
|
name: "fallbackSrc",
|
|
4625
4628
|
isImage: !0,
|
|
4626
|
-
value: "https://
|
|
4629
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1770307112560-ftd_web_asesorlu.jpg",
|
|
4627
4630
|
validateDimensions: !1,
|
|
4628
4631
|
id: "9043d645-9494-4bb8-9706-e740a3c4aecb"
|
|
4629
4632
|
},
|
|
@@ -4669,7 +4672,7 @@ const eo = {
|
|
|
4669
4672
|
type: "string",
|
|
4670
4673
|
dimensions: "1440x400",
|
|
4671
4674
|
required: !1,
|
|
4672
|
-
value: "https://
|
|
4675
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1773203978730-nuevahomedesktop_asesorpersonalizado.jpg",
|
|
4673
4676
|
validateDimensions: !1,
|
|
4674
4677
|
id: "0a19727d-a6bd-4f3b-83b6-dc40be8f6790",
|
|
4675
4678
|
name: "desktopSrc",
|
|
@@ -4680,7 +4683,7 @@ const eo = {
|
|
|
4680
4683
|
type: "string",
|
|
4681
4684
|
dimensions: "1080x840",
|
|
4682
4685
|
required: !1,
|
|
4683
|
-
value: "https://
|
|
4686
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1772833893358-nueva-home-mobile_asesorlcas.jpg",
|
|
4684
4687
|
validateDimensions: !1,
|
|
4685
4688
|
id: "3ca28d62-53c0-4269-8ecf-ddbbe493db56",
|
|
4686
4689
|
name: "mobileSrc",
|
|
@@ -4694,7 +4697,7 @@ const eo = {
|
|
|
4694
4697
|
name: "fallbackSrc",
|
|
4695
4698
|
isImage: !0,
|
|
4696
4699
|
validateDimensions: !1,
|
|
4697
|
-
value: "https://
|
|
4700
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1773203997327-nuevahomedesktop_asesorpersonalizado.jpg",
|
|
4698
4701
|
id: "241c4be2-2f91-4c92-a0ef-d2013941a7de"
|
|
4699
4702
|
},
|
|
4700
4703
|
{
|
|
@@ -4740,7 +4743,7 @@ const eo = {
|
|
|
4740
4743
|
required: !1,
|
|
4741
4744
|
dimensions: "1440x400",
|
|
4742
4745
|
validateDimensions: !1,
|
|
4743
|
-
value: "https://
|
|
4746
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1773778766147-bannerweb_nuevomerch1920x460.png",
|
|
4744
4747
|
id: "1e4be1ce-774b-48ff-89db-f6148d1ce4a8",
|
|
4745
4748
|
name: "desktopSrc",
|
|
4746
4749
|
isImage: !0
|
|
@@ -4753,7 +4756,7 @@ const eo = {
|
|
|
4753
4756
|
name: "mobileSrc",
|
|
4754
4757
|
isImage: !0,
|
|
4755
4758
|
validateDimensions: !1,
|
|
4756
|
-
value: "https://
|
|
4759
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1773778933662-bannermobile_nuevomerch1080x840.png",
|
|
4757
4760
|
id: "05b790ea-cba0-4592-868a-b5e4cde116c3"
|
|
4758
4761
|
},
|
|
4759
4762
|
{
|
|
@@ -4761,7 +4764,7 @@ const eo = {
|
|
|
4761
4764
|
type: "string",
|
|
4762
4765
|
dimensions: "1440x400",
|
|
4763
4766
|
required: !1,
|
|
4764
|
-
value: "https://
|
|
4767
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1773778926345-bannerweb_nuevomerch1920x460.png",
|
|
4765
4768
|
validateDimensions: !1,
|
|
4766
4769
|
id: "b1ee5a81-f713-4b7c-882c-41088776fe09",
|
|
4767
4770
|
name: "fallbackSrc",
|
|
@@ -4812,20 +4815,20 @@ const eo = {
|
|
|
4812
4815
|
type: "string",
|
|
4813
4816
|
id: "35672057-20b1-48f6-b57e-8177c7ffb50c",
|
|
4814
4817
|
maxSizeMB: 2,
|
|
4815
|
-
value: "https://
|
|
4818
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1773931330007-sorteoiphonebannerhomedesktop_1920x460.png"
|
|
4816
4819
|
},
|
|
4817
4820
|
{
|
|
4818
4821
|
type: "string",
|
|
4819
4822
|
id: "dfe3c031-0577-499e-95f4-2a47363710c7",
|
|
4820
4823
|
maxSizeMB: 2,
|
|
4821
|
-
value: "https://
|
|
4824
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1773931336253-sorteoiphonebannerhomemobile_1080x840.png",
|
|
4822
4825
|
required: !1,
|
|
4823
4826
|
isImage: !0,
|
|
4824
4827
|
dimensions: "1080x840",
|
|
4825
4828
|
name: "mobileSrc"
|
|
4826
4829
|
},
|
|
4827
4830
|
{
|
|
4828
|
-
value: "https://
|
|
4831
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1773931341960-sorteoiphonebannerhomedesktop_1920x460.png",
|
|
4829
4832
|
type: "string",
|
|
4830
4833
|
maxSizeMB: 2,
|
|
4831
4834
|
id: "aac633b9-d6d3-45be-b93a-1aa73e486ed6",
|
|
@@ -5011,7 +5014,7 @@ const eo = {
|
|
|
5011
5014
|
dimensions: "40x40",
|
|
5012
5015
|
isImage: !0,
|
|
5013
5016
|
required: !1,
|
|
5014
|
-
value: "https://
|
|
5017
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1765894618836-frame181009.svg",
|
|
5015
5018
|
id: "95cd1489-206c-4a72-b4bd-b65161089f73",
|
|
5016
5019
|
maxSizeMB: 0.2,
|
|
5017
5020
|
type: "string"
|
|
@@ -5064,7 +5067,7 @@ const eo = {
|
|
|
5064
5067
|
id: "db4b6355-ed6c-4265-ad78-d8fffb660997",
|
|
5065
5068
|
maxSizeMB: 0.2,
|
|
5066
5069
|
type: "string",
|
|
5067
|
-
value: "https://
|
|
5070
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1771339214517-dotrecordinglightred.gif"
|
|
5068
5071
|
},
|
|
5069
5072
|
{
|
|
5070
5073
|
id: "a16ab6c6-321c-4ebe-bd36-a85ad49edf3e",
|
|
@@ -5280,7 +5283,7 @@ const eo = {
|
|
|
5280
5283
|
type: "string",
|
|
5281
5284
|
id: "2aa55855-0865-4cf1-a1ee-e52db864c6b4",
|
|
5282
5285
|
maxSizeMB: 2,
|
|
5283
|
-
value: "https://
|
|
5286
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1771942936688-fondo3.1.webp",
|
|
5284
5287
|
isImage: !0,
|
|
5285
5288
|
required: !1,
|
|
5286
5289
|
name: "backgroundDesktopUrl"
|
|
@@ -5384,7 +5387,7 @@ const eo = {
|
|
|
5384
5387
|
name: "iconUrl",
|
|
5385
5388
|
required: !0,
|
|
5386
5389
|
isImage: !0,
|
|
5387
|
-
value: "https://
|
|
5390
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1770307302930-top.webp",
|
|
5388
5391
|
type: "string",
|
|
5389
5392
|
id: "1960df1d-b07e-4461-b55f-39834ac30d8e",
|
|
5390
5393
|
maxSizeMB: 0.2
|
|
@@ -5451,7 +5454,7 @@ const eo = {
|
|
|
5451
5454
|
name: "iconUrl",
|
|
5452
5455
|
required: !0,
|
|
5453
5456
|
isImage: !0,
|
|
5454
|
-
value: "https://
|
|
5457
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1770307276612-lonuevo.webp",
|
|
5455
5458
|
id: "8f0dadc8-ff0f-4074-870f-2bbcd9f38cab",
|
|
5456
5459
|
maxSizeMB: 0.2,
|
|
5457
5460
|
type: "string"
|
|
@@ -5509,7 +5512,7 @@ const eo = {
|
|
|
5509
5512
|
name: "imgMobile",
|
|
5510
5513
|
required: !0,
|
|
5511
5514
|
isImage: !0,
|
|
5512
|
-
value: "https://
|
|
5515
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1770307329736-clubolimpo-mobile.webp",
|
|
5513
5516
|
type: "string",
|
|
5514
5517
|
maxSizeMB: 2,
|
|
5515
5518
|
id: "259ffa74-7e4f-48e6-90da-4837f2c37fe9"
|
|
@@ -5518,7 +5521,7 @@ const eo = {
|
|
|
5518
5521
|
type: "string",
|
|
5519
5522
|
id: "e7812141-42d8-419f-9d15-b8711139e980",
|
|
5520
5523
|
maxSizeMB: 2,
|
|
5521
|
-
value: "https://
|
|
5524
|
+
value: "https://d28gilnhu2bcbp.cloudfront.net/landing/1770307339455-clubolimpo.webp",
|
|
5522
5525
|
isImage: !0,
|
|
5523
5526
|
required: !1,
|
|
5524
5527
|
name: "imgDesktopBg"
|
|
@@ -5563,7 +5566,7 @@ const eo = {
|
|
|
5563
5566
|
}
|
|
5564
5567
|
]
|
|
5565
5568
|
}, to = (e) => typeof e == "function" || e && typeof e == "object" && "$$typeof" in e, ao = (e) => /^OraculoSeccion[A-Z]/.test(e);
|
|
5566
|
-
function
|
|
5569
|
+
function Oe(e) {
|
|
5567
5570
|
return e && Array.isArray(e.sections) ? e.sections.slice().sort((a, n) => {
|
|
5568
5571
|
var o, r;
|
|
5569
5572
|
return ((o = a.order) != null ? o : 0) - ((r = n.order) != null ? r : 0);
|
|
@@ -5637,60 +5640,60 @@ const rt = [
|
|
|
5637
5640
|
loader: i,
|
|
5638
5641
|
disableWrapper: s = !1
|
|
5639
5642
|
}) => {
|
|
5640
|
-
const c = re(() => oo(r), [r]),
|
|
5641
|
-
() =>
|
|
5643
|
+
const c = re(() => oo(r), [r]), f = i || c.loader, [h, u] = X([]), [m, d] = X(!1), [g, b] = X({}), [x, C] = X({}), [p, w] = X({}), M = De("(min-width:1024px)"), z = re(
|
|
5644
|
+
() => Oe(Pe),
|
|
5642
5645
|
[]
|
|
5643
|
-
),
|
|
5644
|
-
(
|
|
5645
|
-
),
|
|
5646
|
+
), y = (l) => z.find(
|
|
5647
|
+
(S) => S.id === l.id || S.componentKey === l.componentKey
|
|
5648
|
+
), k = (l) => Array.isArray(l) ? l.map((S) => Number(S)).filter((S) => !Number.isNaN(S)) : [], q = re(() => {
|
|
5646
5649
|
const l = c.user;
|
|
5647
|
-
return
|
|
5650
|
+
return k(l == null ? void 0 : l.groups);
|
|
5648
5651
|
}, [c]), D = (l) => {
|
|
5649
|
-
const
|
|
5650
|
-
if (!Array.isArray(
|
|
5651
|
-
const T =
|
|
5652
|
-
(
|
|
5652
|
+
const S = l.manualScalarFields;
|
|
5653
|
+
if (!Array.isArray(S)) return [];
|
|
5654
|
+
const T = S.find(
|
|
5655
|
+
(L) => String((L == null ? void 0 : L.name) || "").trim().toLowerCase() === "groups"
|
|
5653
5656
|
);
|
|
5654
5657
|
if (!T) return [];
|
|
5655
|
-
const
|
|
5656
|
-
if (
|
|
5657
|
-
if (Array.isArray(
|
|
5658
|
-
return
|
|
5659
|
-
const
|
|
5660
|
-
return
|
|
5661
|
-
}, O = (l,
|
|
5658
|
+
const N = T.value;
|
|
5659
|
+
if (N == null) return [];
|
|
5660
|
+
if (Array.isArray(N))
|
|
5661
|
+
return N.map((L) => Number(String(L).trim())).filter((L) => !Number.isNaN(L));
|
|
5662
|
+
const $ = String(N).trim();
|
|
5663
|
+
return $ ? $.split(",").map((L) => Number(L.trim())).filter((L) => !Number.isNaN(L)) : [];
|
|
5664
|
+
}, O = (l, S) => {
|
|
5662
5665
|
const T = D(l);
|
|
5663
5666
|
if (T.length === 0) return !0;
|
|
5664
|
-
if (!Array.isArray(
|
|
5665
|
-
const
|
|
5666
|
-
return T.some((
|
|
5667
|
+
if (!Array.isArray(S) || S.length === 0) return !1;
|
|
5668
|
+
const N = new Set(S);
|
|
5669
|
+
return T.some(($) => N.has($));
|
|
5667
5670
|
};
|
|
5668
5671
|
Q(() => {
|
|
5669
5672
|
if (e) return;
|
|
5670
5673
|
if (!o) {
|
|
5671
|
-
console.warn("[landing] sin db -> fallback json"), u(
|
|
5674
|
+
console.warn("[landing] sin db -> fallback json"), u(Oe(Pe));
|
|
5672
5675
|
return;
|
|
5673
5676
|
}
|
|
5674
|
-
const l = (T,
|
|
5675
|
-
console.warn("[landing] FALLBACK:", T,
|
|
5677
|
+
const l = (T, N) => {
|
|
5678
|
+
console.warn("[landing] FALLBACK:", T, N != null ? N : ""), u(Oe(Pe)), d(!1);
|
|
5676
5679
|
};
|
|
5677
5680
|
d(!0);
|
|
5678
|
-
const
|
|
5679
|
-
|
|
5681
|
+
const S = zt(
|
|
5682
|
+
Pt(o, "landings", a),
|
|
5680
5683
|
(T) => {
|
|
5681
5684
|
try {
|
|
5682
5685
|
if (!T.exists()) {
|
|
5683
5686
|
l(`doc landings/${a} no existe`);
|
|
5684
5687
|
return;
|
|
5685
5688
|
}
|
|
5686
|
-
const
|
|
5687
|
-
if (
|
|
5688
|
-
l("JSON inválido o sin secciones normalizables",
|
|
5689
|
+
const N = T.data(), $ = Oe(N);
|
|
5690
|
+
if (!$.length) {
|
|
5691
|
+
l("JSON inválido o sin secciones normalizables", N);
|
|
5689
5692
|
return;
|
|
5690
5693
|
}
|
|
5691
|
-
console.log("[landing] Firestore OK (json grande):",
|
|
5692
|
-
} catch (
|
|
5693
|
-
l("error procesando snapshot",
|
|
5694
|
+
console.log("[landing] Firestore OK (json grande):", N), u($);
|
|
5695
|
+
} catch (N) {
|
|
5696
|
+
l("error procesando snapshot", N);
|
|
5694
5697
|
} finally {
|
|
5695
5698
|
d(!1);
|
|
5696
5699
|
}
|
|
@@ -5699,196 +5702,196 @@ const rt = [
|
|
|
5699
5702
|
l("error onSnapshot", T);
|
|
5700
5703
|
}
|
|
5701
5704
|
);
|
|
5702
|
-
return () =>
|
|
5705
|
+
return () => S();
|
|
5703
5706
|
}, [e, a, o]), Q(() => (Xa(c), () => Ya()), [c]), Q(() => {
|
|
5704
5707
|
(e ? e.slice() : h.slice()).map((T) => T.componentKey).filter((T) => !!T).length;
|
|
5705
5708
|
}, [e, h]);
|
|
5706
|
-
const
|
|
5709
|
+
const v = async (l) => {
|
|
5707
5710
|
if (rt.includes(l.componentKey))
|
|
5708
5711
|
return {
|
|
5709
5712
|
items: [],
|
|
5710
5713
|
events: [],
|
|
5711
5714
|
data: {}
|
|
5712
5715
|
};
|
|
5713
|
-
const
|
|
5714
|
-
if (!
|
|
5715
|
-
const T = l.apiMethod || "GET",
|
|
5716
|
-
let
|
|
5716
|
+
const S = (l.apiUrl || "").trim();
|
|
5717
|
+
if (!S) return;
|
|
5718
|
+
const T = l.apiMethod || "GET", N = l.apiParams || [];
|
|
5719
|
+
let $ = S, L, J;
|
|
5717
5720
|
if (T === "GET") {
|
|
5718
|
-
const
|
|
5719
|
-
|
|
5721
|
+
const se = new URL(
|
|
5722
|
+
S,
|
|
5720
5723
|
typeof window == "undefined" ? "http://localhost" : window.location.origin
|
|
5721
5724
|
);
|
|
5722
|
-
for (const oe of
|
|
5723
|
-
oe.key &&
|
|
5724
|
-
|
|
5725
|
+
for (const oe of N)
|
|
5726
|
+
oe.key && se.searchParams.append(oe.key, oe.value);
|
|
5727
|
+
$ = se.toString();
|
|
5725
5728
|
} else {
|
|
5726
|
-
const
|
|
5727
|
-
for (const oe of
|
|
5728
|
-
oe.key &&
|
|
5729
|
-
|
|
5729
|
+
const se = new URLSearchParams();
|
|
5730
|
+
for (const oe of N)
|
|
5731
|
+
oe.key && se.append(oe.key, oe.value);
|
|
5732
|
+
L = se.toString(), J = {
|
|
5730
5733
|
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
|
|
5731
5734
|
};
|
|
5732
5735
|
}
|
|
5733
|
-
const te = await fetch(
|
|
5736
|
+
const te = await fetch($, {
|
|
5734
5737
|
method: T,
|
|
5735
5738
|
headers: J,
|
|
5736
|
-
body:
|
|
5739
|
+
body: L
|
|
5737
5740
|
});
|
|
5738
|
-
if (!te.ok) throw new ot(te.status,
|
|
5741
|
+
if (!te.ok) throw new ot(te.status, $, te.statusText);
|
|
5739
5742
|
return te.json();
|
|
5740
|
-
},
|
|
5743
|
+
}, I = re(
|
|
5741
5744
|
() => e ? e.slice() : h.slice(),
|
|
5742
5745
|
[e, h]
|
|
5743
5746
|
), R = fe.useRef(/* @__PURE__ */ new Set());
|
|
5744
5747
|
Q(() => {
|
|
5745
|
-
const l =
|
|
5748
|
+
const l = I.map((S) => ({ s: S, url: (S.apiUrl || "").trim() })).filter(({ url: S }) => !!S);
|
|
5746
5749
|
if (l.length)
|
|
5747
|
-
for (const { s:
|
|
5748
|
-
const
|
|
5749
|
-
R.current.has(
|
|
5750
|
+
for (const { s: S, url: T } of l) {
|
|
5751
|
+
const N = `${S.id}|${T}`;
|
|
5752
|
+
R.current.has(N) || (R.current.add(N), C(($) => ({ ...$, [S.id]: !0 })), w(($) => ({ ...$, [S.id]: "" })), (async () => {
|
|
5750
5753
|
try {
|
|
5751
|
-
const
|
|
5752
|
-
|
|
5753
|
-
} catch (
|
|
5754
|
-
let
|
|
5755
|
-
|
|
5754
|
+
const $ = await v(S);
|
|
5755
|
+
b((L) => ({ ...L, [S.id]: $ }));
|
|
5756
|
+
} catch ($) {
|
|
5757
|
+
let L = "Error desconocido";
|
|
5758
|
+
$ instanceof ot ? L = `Error HTTP ${$.status} (${$.statusText}) en ${$.url}` : $ instanceof SyntaxError ? L = "Respuesta no es JSON válido" : $ instanceof TypeError ? L = "Fallo de red / CORS / conexión" : typeof $ == "string" && (L = $.toString()), w((J) => ({ ...J, [S.id]: L }));
|
|
5756
5759
|
} finally {
|
|
5757
|
-
|
|
5760
|
+
C(($) => ({ ...$, [S.id]: !1 }));
|
|
5758
5761
|
}
|
|
5759
5762
|
})());
|
|
5760
5763
|
}
|
|
5761
|
-
}, [
|
|
5764
|
+
}, [I]);
|
|
5762
5765
|
const B = re(
|
|
5763
|
-
() =>
|
|
5764
|
-
[
|
|
5765
|
-
), A = (l) => Array.isArray(l) ? l.map((
|
|
5766
|
+
() => I.filter((l) => l.visible).filter((l) => O(l, q)).sort((l, S) => l.order - S.order),
|
|
5767
|
+
[I, q]
|
|
5768
|
+
), A = (l) => Array.isArray(l) ? l.map((S) => {
|
|
5766
5769
|
const T = {};
|
|
5767
|
-
for (const
|
|
5768
|
-
const
|
|
5769
|
-
if (
|
|
5770
|
-
const
|
|
5771
|
-
if (
|
|
5772
|
-
const J = Number(
|
|
5773
|
-
Number.isNaN(J) || (T[
|
|
5770
|
+
for (const N of S.fields || []) {
|
|
5771
|
+
const $ = (N.type || "string").toLowerCase();
|
|
5772
|
+
if ($ === "number") {
|
|
5773
|
+
const L = String(N.value || "").trim();
|
|
5774
|
+
if (L !== "") {
|
|
5775
|
+
const J = Number(L);
|
|
5776
|
+
Number.isNaN(J) || (T[N.name] = J);
|
|
5774
5777
|
}
|
|
5775
|
-
} else if (
|
|
5776
|
-
T[
|
|
5777
|
-
else if (
|
|
5778
|
-
const
|
|
5779
|
-
if (
|
|
5778
|
+
} else if ($ === "boolean")
|
|
5779
|
+
T[N.name] = String(N.value).toLowerCase() === "true";
|
|
5780
|
+
else if ($ === "function") {
|
|
5781
|
+
const L = String(N.value || "").trim();
|
|
5782
|
+
if (L)
|
|
5780
5783
|
try {
|
|
5781
|
-
const J = new Function(
|
|
5782
|
-
T[
|
|
5784
|
+
const J = new Function(L);
|
|
5785
|
+
T[N.name] = J;
|
|
5783
5786
|
} catch (J) {
|
|
5784
|
-
console.error(`❌ Error creando función en item '${
|
|
5787
|
+
console.error(`❌ Error creando función en item '${N.name}':`, J);
|
|
5785
5788
|
}
|
|
5786
5789
|
} else
|
|
5787
|
-
T[
|
|
5790
|
+
T[N.name] = N.value;
|
|
5788
5791
|
}
|
|
5789
5792
|
return T;
|
|
5790
5793
|
}) : [], U = (l) => {
|
|
5791
|
-
const
|
|
5792
|
-
if (!Array.isArray(l)) return
|
|
5794
|
+
const S = {};
|
|
5795
|
+
if (!Array.isArray(l)) return S;
|
|
5793
5796
|
for (const T of l) {
|
|
5794
5797
|
if (!T.name) continue;
|
|
5795
|
-
const
|
|
5796
|
-
if (
|
|
5797
|
-
const
|
|
5798
|
-
if (
|
|
5799
|
-
const
|
|
5800
|
-
Number.isNaN(
|
|
5798
|
+
const N = (T.type || "string").toLowerCase();
|
|
5799
|
+
if (N === "number") {
|
|
5800
|
+
const $ = String(T.value || "").trim();
|
|
5801
|
+
if ($ !== "") {
|
|
5802
|
+
const L = Number($);
|
|
5803
|
+
Number.isNaN(L) || (S[T.name] = L);
|
|
5801
5804
|
}
|
|
5802
|
-
} else if (
|
|
5803
|
-
|
|
5804
|
-
else if (
|
|
5805
|
-
const
|
|
5806
|
-
if (
|
|
5805
|
+
} else if (N === "boolean")
|
|
5806
|
+
S[T.name] = String(T.value).toLowerCase() === "true";
|
|
5807
|
+
else if (N === "function") {
|
|
5808
|
+
const $ = String(T.value || "").trim();
|
|
5809
|
+
if ($)
|
|
5807
5810
|
try {
|
|
5808
|
-
const
|
|
5809
|
-
|
|
5810
|
-
} catch (
|
|
5811
|
-
console.error(`❌ Error creando función en item '${T.name}':`,
|
|
5811
|
+
const L = new Function($);
|
|
5812
|
+
S[T.name] = L;
|
|
5813
|
+
} catch (L) {
|
|
5814
|
+
console.error(`❌ Error creando función en item '${T.name}':`, L);
|
|
5812
5815
|
}
|
|
5813
5816
|
} else
|
|
5814
|
-
|
|
5817
|
+
S[T.name] = T.value;
|
|
5815
5818
|
}
|
|
5816
|
-
return
|
|
5817
|
-
}, W = (l,
|
|
5818
|
-
const
|
|
5819
|
-
if (
|
|
5820
|
-
return
|
|
5819
|
+
return S;
|
|
5820
|
+
}, W = (l, S, T, N) => {
|
|
5821
|
+
const $ = T ? { ...T } : {}, L = (N || "items").trim() || "items";
|
|
5822
|
+
if (S)
|
|
5823
|
+
return $[L] = S.arr || [], $;
|
|
5821
5824
|
const J = l;
|
|
5822
5825
|
if (Array.isArray(J))
|
|
5823
|
-
return
|
|
5826
|
+
return $[L] = J, $;
|
|
5824
5827
|
if (J && typeof J == "object") {
|
|
5825
5828
|
const te = J;
|
|
5826
|
-
return Array.isArray(te.lobby) ? (
|
|
5829
|
+
return Array.isArray(te.lobby) ? ($[L] = te.lobby, $) : Array.isArray(te.items) ? ($[L] = te.items, $) : ($[L] = J, $);
|
|
5827
5830
|
}
|
|
5828
|
-
return
|
|
5829
|
-
},
|
|
5830
|
-
var
|
|
5831
|
-
const
|
|
5832
|
-
let
|
|
5833
|
-
const
|
|
5831
|
+
return $[L] = [], $;
|
|
5832
|
+
}, j = (l) => {
|
|
5833
|
+
var L;
|
|
5834
|
+
const S = !!((L = l.apiUrl) != null && L.trim()), T = S ? g[l.id] : void 0;
|
|
5835
|
+
let N = l.props ? { ...l.props } : {};
|
|
5836
|
+
const $ = U(l.manualScalarFields);
|
|
5834
5837
|
if (rt.includes(l.componentKey))
|
|
5835
|
-
return { items: T, ...
|
|
5836
|
-
if (
|
|
5837
|
-
|
|
5838
|
+
return { items: T, ...N, ...$ };
|
|
5839
|
+
if (N = { ...N, ...$ }, S)
|
|
5840
|
+
N = W(T, null, N);
|
|
5838
5841
|
else if (l.dataMode === "manual") {
|
|
5839
5842
|
const J = A(l.manualItems);
|
|
5840
|
-
if (
|
|
5843
|
+
if (N = W(
|
|
5841
5844
|
null,
|
|
5842
5845
|
{ arr: J, variableName: l.variableName },
|
|
5843
|
-
|
|
5846
|
+
N,
|
|
5844
5847
|
l.variableName
|
|
5845
5848
|
), l.variableName2 && l.manualItems2) {
|
|
5846
|
-
const te = A(l.manualItems2),
|
|
5847
|
-
|
|
5849
|
+
const te = A(l.manualItems2), se = (l.variableName2 || "items2").trim() || "items2";
|
|
5850
|
+
N[se] = te;
|
|
5848
5851
|
}
|
|
5849
5852
|
}
|
|
5850
|
-
return
|
|
5851
|
-
},
|
|
5852
|
-
const
|
|
5853
|
+
return N;
|
|
5854
|
+
}, Z = (l) => {
|
|
5855
|
+
const S = l.props ? { ...l.props } : {};
|
|
5853
5856
|
try {
|
|
5854
|
-
Object.assign(
|
|
5855
|
-
} catch (
|
|
5856
|
-
console.error("❌ Error armando scalars vacíos:", l,
|
|
5857
|
+
Object.assign(S, U(l.manualScalarFields));
|
|
5858
|
+
} catch (N) {
|
|
5859
|
+
console.error("❌ Error armando scalars vacíos:", l, N);
|
|
5857
5860
|
}
|
|
5858
5861
|
const T = (l.variableName || "items").trim() || "items";
|
|
5859
|
-
if (typeof
|
|
5860
|
-
const
|
|
5861
|
-
typeof
|
|
5862
|
+
if (typeof S[T] == "undefined" && (S[T] = []), l.variableName2) {
|
|
5863
|
+
const N = (l.variableName2 || "items2").trim() || "items2";
|
|
5864
|
+
typeof S[N] == "undefined" && (S[N] = []);
|
|
5862
5865
|
}
|
|
5863
|
-
return
|
|
5864
|
-
},
|
|
5866
|
+
return S;
|
|
5867
|
+
}, G = (l) => {
|
|
5865
5868
|
try {
|
|
5866
|
-
return
|
|
5867
|
-
} catch (
|
|
5868
|
-
console.error("🔥 ERROR EN buildCompProps:", l,
|
|
5869
|
-
const T =
|
|
5869
|
+
return j(l);
|
|
5870
|
+
} catch (S) {
|
|
5871
|
+
console.error("🔥 ERROR EN buildCompProps:", l, S);
|
|
5872
|
+
const T = y(l);
|
|
5870
5873
|
if (T && T !== l)
|
|
5871
5874
|
try {
|
|
5872
5875
|
return console.warn(
|
|
5873
5876
|
`[landing] usando fallback local para sección ${l.title} (${l.componentKey})`
|
|
5874
|
-
),
|
|
5875
|
-
} catch (
|
|
5876
|
-
console.error("🔥 ERROR EN fallback buildCompProps:", T,
|
|
5877
|
+
), j(T);
|
|
5878
|
+
} catch (N) {
|
|
5879
|
+
console.error("🔥 ERROR EN fallback buildCompProps:", T, N);
|
|
5877
5880
|
}
|
|
5878
|
-
return
|
|
5881
|
+
return Z(l);
|
|
5879
5882
|
}
|
|
5880
|
-
},
|
|
5883
|
+
}, E = (l, S, T) => /* @__PURE__ */ t("div", { className: `mx-4 p-4 rounded ${{
|
|
5881
5884
|
loading: "bg-blue-100 text-blue-800",
|
|
5882
5885
|
error: "bg-red-100 text-red-800",
|
|
5883
5886
|
component: "bg-yellow-100 text-yellow-800"
|
|
5884
|
-
}[
|
|
5887
|
+
}[S]}`, children: T }, l), F = (l) => {
|
|
5885
5888
|
var He;
|
|
5886
|
-
const
|
|
5889
|
+
const S = l.componentKey, T = no[S], $ = (/* @__PURE__ */ new Set([
|
|
5887
5890
|
"OraculoSeccionBanners",
|
|
5888
5891
|
"OraculoSeccionBonoBienvenida",
|
|
5889
5892
|
"OraculoSeccionCasinoEnVivo",
|
|
5890
5893
|
"OraculoSeccionClubOlimpo",
|
|
5891
|
-
|
|
5894
|
+
...M ? [] : [
|
|
5892
5895
|
"OraculoSeccionEventoEnVivo",
|
|
5893
5896
|
"OraculoSeccionEventoSemana",
|
|
5894
5897
|
"OraculoSeccionEventoCombinadas",
|
|
@@ -5896,64 +5899,64 @@ const rt = [
|
|
|
5896
5899
|
"OraculoSeccionDestacados",
|
|
5897
5900
|
"OraculoSeccionCasino"
|
|
5898
5901
|
]
|
|
5899
|
-
])).has(l.componentKey),
|
|
5902
|
+
])).has(l.componentKey), L = M ? 120 : 24, J = (M ? 8 : 5) * 8, te = l.componentKey === "OraculoSeccionCasinoEnVivo", se = {
|
|
5900
5903
|
width: "100%",
|
|
5901
5904
|
boxSizing: "border-box",
|
|
5902
|
-
|
|
5905
|
+
...$ ? {} : { paddingLeft: L, paddingRight: L },
|
|
5903
5906
|
...te ? {
|
|
5904
5907
|
marginTop: -J,
|
|
5905
5908
|
marginBottom: -J
|
|
5906
5909
|
} : {}
|
|
5907
5910
|
};
|
|
5908
5911
|
if (!T)
|
|
5909
|
-
return console.warn(`No hay componente registrado para "${
|
|
5912
|
+
return console.warn(`No hay componente registrado para "${S}"`), E(
|
|
5910
5913
|
l.id,
|
|
5911
5914
|
"component",
|
|
5912
|
-
`Componente "${
|
|
5915
|
+
`Componente "${S}" no encontrado`
|
|
5913
5916
|
);
|
|
5914
|
-
const oe = !!((He = l.apiUrl) != null && He.trim()), We = oe ?
|
|
5917
|
+
const oe = !!((He = l.apiUrl) != null && He.trim()), We = oe ? g[l.id] : void 0, Ot = oe ? !!x[l.id] : !1, Ge = oe ? p[l.id] : "";
|
|
5915
5918
|
if (oe) {
|
|
5916
|
-
if (
|
|
5917
|
-
return
|
|
5919
|
+
if (Ot && !We)
|
|
5920
|
+
return E(
|
|
5918
5921
|
l.id,
|
|
5919
5922
|
"loading",
|
|
5920
5923
|
`Cargando datos desde ${l.apiUrl}...`
|
|
5921
5924
|
);
|
|
5922
5925
|
if (Ge && !We) {
|
|
5923
|
-
const we =
|
|
5926
|
+
const we = y(l);
|
|
5924
5927
|
if (we && we.dataMode === "manual")
|
|
5925
5928
|
try {
|
|
5926
|
-
const
|
|
5927
|
-
return /* @__PURE__ */ t("div", { style:
|
|
5928
|
-
} catch (
|
|
5929
|
+
const Le = G(we);
|
|
5930
|
+
return /* @__PURE__ */ t("div", { style: se, className: "oraculo-section-wrapper", children: /* @__PURE__ */ t(T, { ...Le }) }, l.id);
|
|
5931
|
+
} catch (Le) {
|
|
5929
5932
|
console.error(
|
|
5930
5933
|
"🔥 ERROR renderizando fallback manual de sección:",
|
|
5931
5934
|
we,
|
|
5932
|
-
|
|
5935
|
+
Le
|
|
5933
5936
|
);
|
|
5934
5937
|
}
|
|
5935
|
-
return
|
|
5938
|
+
return E(
|
|
5936
5939
|
l.id,
|
|
5937
5940
|
"error",
|
|
5938
5941
|
`Error cargando ${l.apiUrl}: ${Ge}`
|
|
5939
5942
|
);
|
|
5940
5943
|
}
|
|
5941
5944
|
}
|
|
5942
|
-
const je =
|
|
5945
|
+
const je = G(l), Et = l.componentKey === "OraculoSeccionClubOlimpo" ? {
|
|
5943
5946
|
...je,
|
|
5944
5947
|
user: c.user
|
|
5945
5948
|
} : je;
|
|
5946
5949
|
return /* @__PURE__ */ t(ro, { section: l, children: /* @__PURE__ */ t(
|
|
5947
5950
|
"div",
|
|
5948
5951
|
{
|
|
5949
|
-
style:
|
|
5952
|
+
style: se,
|
|
5950
5953
|
className: "oraculo-section-wrapper",
|
|
5951
|
-
children: /* @__PURE__ */ t(T, { ...
|
|
5954
|
+
children: /* @__PURE__ */ t(T, { ...Et })
|
|
5952
5955
|
},
|
|
5953
5956
|
l.id
|
|
5954
5957
|
) });
|
|
5955
5958
|
};
|
|
5956
|
-
return m && !e ?
|
|
5959
|
+
return m && !e ? f ? /* @__PURE__ */ t(f, {}) : /* @__PURE__ */ t("div", { children: "Cargando..." }) : !m && !e && h.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(
|
|
5957
5960
|
Ct,
|
|
5958
5961
|
{
|
|
5959
5962
|
className: "oli-font",
|
|
@@ -5967,11 +5970,11 @@ const rt = [
|
|
|
5967
5970
|
maxWidth: "100%",
|
|
5968
5971
|
overflowX: "hidden"
|
|
5969
5972
|
},
|
|
5970
|
-
children: /* @__PURE__ */ t(
|
|
5973
|
+
children: /* @__PURE__ */ t(Ee, { direction: "column", spacing: M ? 8 : 5, useFlexGap: !0, children: B.map((l) => {
|
|
5971
5974
|
try {
|
|
5972
|
-
return
|
|
5973
|
-
} catch (
|
|
5974
|
-
return console.error("🔥 ERROR EN SECTION:", l,
|
|
5975
|
+
return F(l);
|
|
5976
|
+
} catch (S) {
|
|
5977
|
+
return console.error("🔥 ERROR EN SECTION:", l, S), null;
|
|
5975
5978
|
}
|
|
5976
5979
|
}) })
|
|
5977
5980
|
}
|
|
@@ -5983,7 +5986,7 @@ export {
|
|
|
5983
5986
|
he as OraculoCarousel,
|
|
5984
5987
|
dt as OraculoCarouselDots,
|
|
5985
5988
|
Sa as OraculoClubOlimpoVisual,
|
|
5986
|
-
|
|
5989
|
+
La as OraculoEventCombinadasCard,
|
|
5987
5990
|
Da as OraculoEventEnVivoCard,
|
|
5988
5991
|
Ht as OraculoEventHeader,
|
|
5989
5992
|
ut as OraculoEventLabel,
|
|
@@ -6007,7 +6010,7 @@ export {
|
|
|
6007
6010
|
xn as OraculoSeccionClubOlimpo,
|
|
6008
6011
|
Ja as OraculoSeccionDestacados,
|
|
6009
6012
|
Tn as OraculoSeccionEventoCombinadas,
|
|
6010
|
-
|
|
6013
|
+
Ln as OraculoSeccionEventoEnVivo,
|
|
6011
6014
|
Hn as OraculoSeccionEventoSemana,
|
|
6012
6015
|
Qn as OraculoSeccionMediosPago,
|
|
6013
6016
|
Qa as OraculoSeccionTopJuegos,
|