oraculo-ui 0.2.16 → 0.2.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +3 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +827 -827
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import { Link as
|
|
3
|
-
import fe, { useState as K, useEffect as
|
|
1
|
+
import { jsx as t, jsxs as h, Fragment as me } from "react/jsx-runtime";
|
|
2
|
+
import { Link as ot, Box as Y, useMediaQuery as De, IconButton as He, Typography as it, Stack as Oe, Container as It } from "@mui/material";
|
|
3
|
+
import fe, { useState as K, useEffect as Q, useRef as V, forwardRef as Ct, useImperativeHandle as Ot, useCallback as Ee, createContext as Et, useContext as Tt, useMemo as re, useLayoutEffect as kt } from "react";
|
|
4
4
|
import j from "@mui/material/Skeleton";
|
|
5
5
|
import { Splide as $t, SplideSlide as Nt } from "@splidejs/react-splide";
|
|
6
6
|
import q from "@mui/material/Box";
|
|
7
|
-
import
|
|
7
|
+
import de from "@mui/material/Typography";
|
|
8
8
|
import H from "@mui/material/Stack";
|
|
9
9
|
import { useCaptureInteraction as ae } from "@olimpo/capture-client";
|
|
10
10
|
import { ChevronLeftRounded as Ae, ChevronRightRounded as ze } from "@mui/icons-material";
|
|
11
11
|
import xe from "@mui/material/useMediaQuery";
|
|
12
|
-
import
|
|
13
|
-
import
|
|
12
|
+
import rt from "@mui/icons-material/ChevronLeftRounded";
|
|
13
|
+
import st from "@mui/icons-material/ChevronRightRounded";
|
|
14
14
|
import { useTheme as Mt, createTheme as Bt, ThemeProvider as At } from "@mui/material/styles";
|
|
15
15
|
import zt from "@mui/material/CssBaseline";
|
|
16
16
|
import { onSnapshot as Rt, doc as Lt } from "firebase/firestore";
|
|
@@ -27,12 +27,12 @@ function X({
|
|
|
27
27
|
fullWidth: f = !1,
|
|
28
28
|
fullHeight: u = !1,
|
|
29
29
|
className: l = "",
|
|
30
|
-
ariaLabel:
|
|
31
|
-
leftIcon:
|
|
30
|
+
ariaLabel: d,
|
|
31
|
+
leftIcon: g,
|
|
32
32
|
rightIcon: b,
|
|
33
|
-
iconOnly:
|
|
33
|
+
iconOnly: C
|
|
34
34
|
}) {
|
|
35
|
-
const
|
|
35
|
+
const M = !!e && e !== !0, $ = (!!g ? 1 : 0) + (!!b ? 1 : 0) == 1, D = C != null ? C : $ && !M, I = [
|
|
36
36
|
"orc-btn",
|
|
37
37
|
m === "secondary" ? "orc-btn--secondary" : m === "tertiary" ? "orc-btn--tertiary" : "orc-btn--primary",
|
|
38
38
|
p ? `orc-btn--${p}` : "",
|
|
@@ -40,33 +40,33 @@ function X({
|
|
|
40
40
|
u ? "orc-btn--fullHeight" : "",
|
|
41
41
|
D ? "orc-btn--iconOnly" : "",
|
|
42
42
|
l
|
|
43
|
-
].filter(Boolean).join(" "),
|
|
44
|
-
|
|
43
|
+
].filter(Boolean).join(" "), E = /* @__PURE__ */ h(me, { children: [
|
|
44
|
+
g && /* @__PURE__ */ t("span", { className: "orc-btn__icon", children: g }),
|
|
45
45
|
!D && /* @__PURE__ */ t("span", { className: "orc-btn__label", children: e }),
|
|
46
46
|
b && /* @__PURE__ */ t("span", { className: "orc-btn__icon", children: b })
|
|
47
|
-
] }),
|
|
47
|
+
] }), w = s ? !0 : void 0;
|
|
48
48
|
return n ? /* @__PURE__ */ t(
|
|
49
|
-
|
|
49
|
+
ot,
|
|
50
50
|
{
|
|
51
51
|
href: n,
|
|
52
52
|
target: o,
|
|
53
53
|
rel: i,
|
|
54
|
-
"aria-label":
|
|
55
|
-
"aria-disabled":
|
|
56
|
-
tabIndex:
|
|
54
|
+
"aria-label": d,
|
|
55
|
+
"aria-disabled": w,
|
|
56
|
+
tabIndex: w ? -1 : void 0,
|
|
57
57
|
className: I,
|
|
58
|
-
onClick:
|
|
59
|
-
children:
|
|
58
|
+
onClick: w ? (B) => B.preventDefault() : a,
|
|
59
|
+
children: E
|
|
60
60
|
}
|
|
61
61
|
) : /* @__PURE__ */ t(
|
|
62
62
|
"button",
|
|
63
63
|
{
|
|
64
64
|
type: r,
|
|
65
65
|
onClick: a,
|
|
66
|
-
disabled: !!
|
|
67
|
-
"aria-label":
|
|
66
|
+
disabled: !!w,
|
|
67
|
+
"aria-label": d,
|
|
68
68
|
className: I,
|
|
69
|
-
children:
|
|
69
|
+
children: E
|
|
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__ */ h("div", { className: r, children: [
|
|
85
85
|
a && /* @__PURE__ */ t(
|
|
86
86
|
"img",
|
|
87
87
|
{
|
|
@@ -93,7 +93,7 @@ function ge({
|
|
|
93
93
|
/* @__PURE__ */ t("h2", { className: "orc-section-title__title", children: e })
|
|
94
94
|
] });
|
|
95
95
|
}
|
|
96
|
-
const
|
|
96
|
+
const lt = ({
|
|
97
97
|
total: e,
|
|
98
98
|
active: a,
|
|
99
99
|
onSelect: n,
|
|
@@ -102,7 +102,7 @@ const dt = ({
|
|
|
102
102
|
}) => {
|
|
103
103
|
if (e <= 1) return null;
|
|
104
104
|
const r = ["orc-dots", o].filter(Boolean).join(" "), [s, m] = K(0);
|
|
105
|
-
return
|
|
105
|
+
return Q(() => {
|
|
106
106
|
m((p) => p + 1);
|
|
107
107
|
}, [a, i]), /* @__PURE__ */ t("div", { className: r, role: "tablist", "aria-label": "Carousel pagination", children: Array.from({ length: e }).map((p, f) => {
|
|
108
108
|
const u = f === a;
|
|
@@ -125,7 +125,7 @@ const dt = ({
|
|
|
125
125
|
) }, f);
|
|
126
126
|
}) });
|
|
127
127
|
};
|
|
128
|
-
function
|
|
128
|
+
function ue({
|
|
129
129
|
children: e,
|
|
130
130
|
minWidth: a = 32,
|
|
131
131
|
spacing: n = 2,
|
|
@@ -147,7 +147,7 @@ function me({
|
|
|
147
147
|
}
|
|
148
148
|
);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function Ke({ src: e, alt: a }) {
|
|
151
151
|
return /* @__PURE__ */ t(
|
|
152
152
|
Y,
|
|
153
153
|
{
|
|
@@ -184,7 +184,7 @@ const Ft = "oraculo__OraculoEventTitle-module__contenedor___rg1vw", Pt = "oracul
|
|
|
184
184
|
subtitle: qt
|
|
185
185
|
};
|
|
186
186
|
function Dt({ title: e, subtitle: a }) {
|
|
187
|
-
return /* @__PURE__ */
|
|
187
|
+
return /* @__PURE__ */ h(
|
|
188
188
|
"div",
|
|
189
189
|
{
|
|
190
190
|
className: Le.contenedor,
|
|
@@ -200,12 +200,12 @@ function Dt({ title: e, subtitle: a }) {
|
|
|
200
200
|
children: e
|
|
201
201
|
}
|
|
202
202
|
),
|
|
203
|
-
a && /* @__PURE__ */
|
|
203
|
+
a && /* @__PURE__ */ h(
|
|
204
204
|
"div",
|
|
205
205
|
{
|
|
206
206
|
className: Le.flexGroup,
|
|
207
207
|
children: [
|
|
208
|
-
/* @__PURE__ */
|
|
208
|
+
/* @__PURE__ */ h("svg", { width: "4", height: "4", viewBox: "0 0 5 5", xmlns: "http://www.w3.org/2000/svg", style: { flexShrink: 0 }, children: [
|
|
209
209
|
" ",
|
|
210
210
|
/* @__PURE__ */ t("circle", { cx: "2.5", cy: "2.5", r: "2.5", fill: "white" }),
|
|
211
211
|
" "
|
|
@@ -241,13 +241,13 @@ function Ut({ text: e, color: a = "#ff3b3b", textColor: n = "#fff" }) {
|
|
|
241
241
|
);
|
|
242
242
|
}
|
|
243
243
|
function Vt({ live: e, time: a }) {
|
|
244
|
-
return /* @__PURE__ */
|
|
244
|
+
return /* @__PURE__ */ h("div", { className: "oli-font", style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
|
|
245
245
|
e && /* @__PURE__ */ t(Ut, { 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 Wt({ title: e, subtitle: a, live: n = !1, time: o = "" }) {
|
|
250
|
-
return /* @__PURE__ */
|
|
250
|
+
return /* @__PURE__ */ h(
|
|
251
251
|
"div",
|
|
252
252
|
{
|
|
253
253
|
style: {
|
|
@@ -266,13 +266,13 @@ function Wt({ title: e, subtitle: a, live: n = !1, time: o = "" }) {
|
|
|
266
266
|
const Gt = "oraculo__OraculoEventLabel-module__label___c64Xw", jt = {
|
|
267
267
|
label: Gt
|
|
268
268
|
};
|
|
269
|
-
function
|
|
269
|
+
function ct({ text: e }) {
|
|
270
270
|
return /* @__PURE__ */ t("span", { className: jt.label, children: e });
|
|
271
271
|
}
|
|
272
272
|
const Ht = "oraculo__OraculoEventLeague-module__container___rdk4F", Kt = {
|
|
273
273
|
container: Ht
|
|
274
274
|
};
|
|
275
|
-
function
|
|
275
|
+
function dt({ title: e }) {
|
|
276
276
|
return /* @__PURE__ */ t("div", { className: Kt.container, children: e.toUpperCase() });
|
|
277
277
|
}
|
|
278
278
|
const Zt = "oraculo__OraculoEventScore-module__scoreWrapper___fWwEr", Xt = "oraculo__OraculoEventScore-module__name___r4uL6", Jt = "oraculo__OraculoEventScore-module__score___Xl03M", Yt = "oraculo__OraculoEventScore-module__normal___cCNFz", Qt = "oraculo__OraculoEventScore-module__small___fVt8E", ve = {
|
|
@@ -282,8 +282,8 @@ const Zt = "oraculo__OraculoEventScore-module__scoreWrapper___fWwEr", Xt = "orac
|
|
|
282
282
|
normal: Yt,
|
|
283
283
|
small: Qt
|
|
284
284
|
};
|
|
285
|
-
function
|
|
286
|
-
return /* @__PURE__ */
|
|
285
|
+
function ut({ text: e, name: a, size: n = "normal" }) {
|
|
286
|
+
return /* @__PURE__ */ h(
|
|
287
287
|
"div",
|
|
288
288
|
{
|
|
289
289
|
className: `${ve.scoreWrapper} ${ve[n]}`,
|
|
@@ -309,8 +309,8 @@ const ea = "oraculo__OraculoEventTeamInfo-module__team___UfpUs", ta = "oraculo__
|
|
|
309
309
|
};
|
|
310
310
|
function da({ jersey: e, className: a }) {
|
|
311
311
|
const n = `#${e.base}`, o = e.sleeve ? `#${e.sleeve}` : n, i = e.stripes ? `#${e.stripes}` : null, r = e.sleevelong ? `#${e.sleevelong}` : null;
|
|
312
|
-
return /* @__PURE__ */
|
|
313
|
-
/* @__PURE__ */ t("div", { className: Se.svgWrapper, children: /* @__PURE__ */
|
|
312
|
+
return /* @__PURE__ */ h("div", { className: `${Se.polo} ${a != null ? a : ""}`, children: [
|
|
313
|
+
/* @__PURE__ */ t("div", { className: Se.svgWrapper, children: /* @__PURE__ */ h("svg", { viewBox: "0 0 656 656", "aria-hidden": !0, children: [
|
|
314
314
|
/* @__PURE__ */ t(
|
|
315
315
|
"path",
|
|
316
316
|
{
|
|
@@ -318,11 +318,11 @@ function da({ jersey: e, className: a }) {
|
|
|
318
318
|
d: "m62 265 5.8-17c-.4-.7-.6-1.5-.4-2 .2-.7.8-1.2 1.2-1.4l1.2-4 9-21.6c.2-1 1-3.5 2.4-6.4a69.9 69.9 0 0 1 4.1-17.2l2.9-7 2.9-11.4c1.7-5.8 5.2-18.4 5.8-22 .6-3.6 6.8-19 9.8-26.2.4-.9 2.4-4.7 7.2-12.8 5.4-12.2 23.5-27.2 32-33.1l6.6-3.7 7.9-3.6 17.3-6.2 16.6-7.1L215 52c7-4.1 21.8-12.5 24.1-13.2 2.3-.8 5-3.5 6-4.7 1.2-1.2 4.2-3.8 6.6-4.7 2.3-1 8.2-6.8 10.8-9.6 1.6-1.4 3.8-4.7 9.2-7.5 5.3-2.9 20.4-4 27.2-4.3h25.6l16.7.3 14.1.6 10.3.7 9.5 1.7c6.4.6 12.6 4.3 15.4 8l2.7 3.1 8.9 8 1.8.7 4.9 3 2.7 3.5c4.2 2.2 13.1 7.1 15.2 8.7 2 1.6 30.1 15.4 44 22 8 3.2 39 12.3 55.3 30 5.2 4.3 7 7.8 11.4 12.4 5.1 5.3 15.1 29 16.9 32 1.4 2.6 5 17 6.8 24l4.8 20.5 8.4 29 8.9 22.7 2.3 5.4.6 1.5c.5.6 1.4 2 1 2.6-.2.6 0 2 .2 2.7l1 2.6 2 5.8 2.2 5.9c.3 1.3-4.3 4-6.6 5.2l-11.1 5-12.6 4.7-15 5-14.6 4.6-10.9 2.4a66 66 0 0 1-8.6 1.4c-3.4.3-4.7-.4-4.9-.8l-5-12.3-1.9-3.8-1.8-1.6.1-.8v-1l-.4-1.8-1.3-4.1-3.3-9-1.3-2-2.2-5.7-2.5-.3-1 .8v2l-2.7 13.1-8.7 58-.9 6.4-.2 7.9c0 3-1 16-1.7 18.3l-2.5 9-.2 7.6-.3 8.7-.3 7.5.3 4 .5 15c.3 1.9-.6 7-1.1 9.3-.6 2.4-1.6 7.5-1.4 8.8.3 1.4-.2 4.4-.5 5.8l-1.3 8.9c-.2 1.4-.8 5-1.3 7.2.7 1.6 4.7 14.6 5.9 17.8 1.2 3.3 4.8 19.4 5 20.7.3 1 1.1 7.8 1.5 11 .1 2.5.3 8 .2 10 0 2-.8 6.6-1.1 8.6-.2 1.7-.7 5.5-1.2 7s-1.2 8.5-1.4 11.8A81.1 81.1 0 0 1 477 552l.3 7.1.2 6.5 1.4 17.7.5 6 1.5 7.7.4 4.6c.3 2.1.7 7 .7 10.1.3 3-2.5 6-4 7 0 .2-1.2 1-4.6 3-6.4 5-26.3 11.6-35.5 14.3a379.2 379.2 0 0 1-58.6 11.2c-2.3.8-27 2.2-39 2.7-8.3 0-27 0-34.5-.4-11.5.9-47.4-4.8-63.9-7.7-6.3-.9-42.1-10.4-48-14.4-3.7-2.4-14.3-8-16.9-9.7a10.7 10.7 0 0 1-4.1-5.4c-.3-1 .1-8.6.4-12.3l.6-5 1.4-9.6 1-8 .3-4.3-.4-7.7-1-10.8v-13.8l.7-10 1.1-7.7 1.8-8 2.8-9.5 3.3-9.3a78 78 0 0 1-2.5-20.8 1112.2 1112.2 0 0 1 .6-14.1c-.1-.7 2.1-10.2 3.3-15l1-3.8-.1-.8c-1.4-8.3-1.5-14-1.9-15.4a78 78 0 0 1 .4-10.9l2-6.7.4-2-.4-1.5a67.6 67.6 0 0 1-7.3-27l-.2-7.7.5-5.4.3-1.5.4-3.9.7-5 .2-2.2-.2-.4-.3-6-1-3.1-.3-4-.7-7.6-1.5-8.3-.8-4.2-1.4-9.2-.4-4.3L172 279l-2.2-14.6a545 545 0 0 1-1.7-8.5c-.1-1-2-2.1-3-2.6 0 .6-.6 1.5-1.7 2-1.2.7-2.4 1.3-2.7 2.2l-.8 4.7a15 15 0 0 1-2.5 4.1 16.4 16.4 0 0 0-2.6 6.3l-.3 2.4v1.3l-1.4 1.1-.3.3-6 14.5c-.7 2.3-1.3 1.8-1.9 1.5l-10.5-3.1-9-3-18.3-6-20-6.8-13-4.8c-2.1-1-7-3-9.4-3.8-2.5-.8-3-1.3-2.8-1.4Z"
|
|
319
319
|
}
|
|
320
320
|
),
|
|
321
|
-
i && /* @__PURE__ */
|
|
321
|
+
i && /* @__PURE__ */ h(me, { children: [
|
|
322
322
|
/* @__PURE__ */ t("path", { fill: i, d: "m153 277.8-5.8 14.5c-1 2.8-2.5 1.4-4.6.7l-2-.5-7.8-2.4-15.6-5-19-6.5-16-5.7-12-4.4-5.5-2.2c-3.5-1.1-3.1-1.2-1.9-4l1.8-4.9 3.2-9.3c-1.1-1.9 0-3.1.8-3.5l.2-.7.5-2 4.3-10.3 2.4-6 2.6-6.2.8-2.6 1.7-4.1v-.4l.3-2.6.6-3.4 1-3.5 1-3.8c.1-.9 2-5.6 3-7.8l.7-1.5.7-2 .9-3.6 3.4-12.6 2.4-8.6 2.7-11.2 3.5-9.6 3.6-9.4 3-6 2-4.1 3.6-5.8 2.2-4.3 3-4.4 3.2-3.9 1.7-1.9 3.6-3.6 3-2.9a109.3 109.3 0 0 1 13.3-11.2l1.2-.8a79.3 79.3 0 0 1 18-9l11.4-4.2 4-1.4 6.3-2.7 3.3-1.4 2.8-1.2 4-1.6 3.9-2.1 10.1-5 4.8-2.4 5.7-3.2 13.8-7.7c1.5-.8 4.7-2.7 6-3a8.5 8.5 0 0 0 3-1.8c3.4-2.5 4.5-4.8 6-5.3.4-.4 2-1.6 5.2-3.2-4.4 3.3-3.2 11-2.1 14.6a77 77 0 0 0 8.7 18.8l-.6.4-3.9 2-9 5-6.6 3.7-10 3.2c-4.3.8-13.2 2.4-14.4 2.8-1.2.3-10.2 4-14.5 5.8l-11.8 5.6-8.8 3.2-12 3.4-19 8.7c-5.8 1.4-19.3 14.2-25.3 20.4L122 128l.3.4 6.6 16.6 10.5 22.6 6.2 10.8c2.9 3 8.7 9.7 9.1 11.7.5 2 4.3 5.1 6.1 6.5.2.8.8 3.1 1.7 5.4-3.2 4.8-.4 10.6 1.4 12.9l1 4.6.3 6.5-.5 1c-1.4 1.4-.3 4 .4 5l.1 3c.5 1.4 1.3 4.2.8 5.2s0 2.7.3 3.4v4.9c-3.1.5-2 3.7-1 5.2-.5.7-1.8 2.2-3.2 2.7-1.4.5-1.8 3.6-1.8 5.2a9 9 0 0 1-2.7 4.7c-1.8 1.6-2.8 7.4-3 10.1l-1.6 1.5ZM403.8 31.1l-1.6-.7c1.2 1 2 2.2 2.8 4 1.8 2.8.6 8-.7 12.2a78 78 0 0 1-7.6 17l.5.2 3.3 1.5 5.4 3.3 5.9 3 7.2 3 8.2 2.2c.7.2 3.3 1 8.4 2 5.5.1 21.1 8 28.2 11.8l14 4.5a517 517 0 0 1 23.8 9.3c6.3.5 24.7 17 33.1 25.2l-4.6 11.6-8.2 19.3-3.8 9-5.2 8.6c-2.2 3.2-7.3 10.2-9.4 12.4-1.3-.3-5.6 4.4-7.6 6.7.3 2 .6 6.7-1.4 9.1-2 2.5-1.8 6.9-1.4 8.7.3.8.5 3-1 5.3-1.4 2.4-1 4-.5 4.5-.2.8-.7 2.5-1.4 3.4-.8.8-.4 3.3 0 4.5l.1 3-.1 2.2c-.2.6-.6 2.6-1.1 6.2 3.6 3.3 1.3 5.7-.3 6.5l2.2.3 1.3 2.7 1.5 3.8 1.1 2.3 2.7 7.1 1.6 4.8.3 2.1v1.6l1.9 1.9 4 8.9 1.8 4.5c.5 4 5.5 3.6 8 3l5.9-1.1 7.3-1.7 5.2-1.2 7.3-2.1 8.3-2.7 7.5-2.5 9.8-3.6 8-3 6.3-2.8 3.4-1.6 3-1.3 2.5-1.6 1-.8c1.9-1 2-2.1 1.6-2.9l-.6-1.7-1-2.7-1.6-4.2-1.4-4-.5-1.4-.1-.7v-1.2c.7-1-.4-2.5-1-3v-.2l-1-2-2.4-6-3.3-8.3-2.3-6a3896.4 3896.4 0 0 0-3.1-8.4l-2.2-7.1-1.5-5.7-2.5-8.9-1-3.1-1.2-4.5-2-8.2-2.2-9.3-2.8-11.4-2.6-9.1-.9-3c0-.3-.6-1.5-1-2l-2.5-5.6-3-6.6-5.7-11.3-2.5-4.3-2.3-3.3-.7-.7-4.3-5-3-3.8a73 73 0 0 0-4.2-3.8c-1.1-2-7.6-7-10.8-9.4-6.2-5-23.4-12.8-34-16.7l-11-4-16-7.9-20.1-10-7.1-3.8-2.4-1.5-13-7.3-2.6-3.4-5-3Z" }),
|
|
323
323
|
/* @__PURE__ */ t("path", { fill: i, d: "M292.1 648.8c-15.7-1.4-37.7-5-49.7-7.1-4.3-.6-22.6-5.3-35.5-9.5 1.5-10 3-21 4.3-32.7 7-60.5 4.8-132.8 3.1-185.6l-.9-32c-1-49-2.4-83.5-3.6-112-1.2-29-2.1-51.7-2.1-77 0-29 2.9-77.3 5.3-112.9l2.6-1c1.3-.3 10.1-2 14.4-2.7l10-3.2 6.6-3.7 9-5 4-2 .5-.3c1.2 2 2.6 4.1 3.4 4.8l6.1 7.8 15 14.6 4.8 4c-.6 26.4-1.1 60.6-1.1 100.1 0 59.3 1.1 82.6 2.7 114.6.9 18.8 2 40.7 3 74.9 1.5 48.3.8 98.4 0 148.6l-.8 68.3c0 13-.6 32.8-1.1 49Zm157.5-16.4-11.2 3.6a379.2 379.2 0 0 1-67 12c.2-11 .3-25.6.3-44.6 0-49.2-1.2-74.9-2.4-99.5-1.3-27.2-2.5-53-2-107.5.6-50.4 1.7-81.5 2.6-109.3 1-29.3 1.8-54.9 1.8-95.6 0-35.5-.6-70.6-1.2-98.6l3.6-3 5.3-5.1 3.5-3.6 3.5-3.4 4-5 4.2-5.3 2.7-4 .5.3 3.2 1.5 5.5 3.3 5.8 3 7.3 3 8.1 2.2c.7.2 3.3 1 8.4 2 2.4 0 6.5 1.5 11 3.4 2.6 29 5.2 68 5.2 107.8 0 41.5-1.6 70.2-3.2 102-1.6 28.7-3.3 60-4 105.6-.7 41.1.4 82.5 1.4 124.4.7 25.7 1.4 51.6 1.6 77.8a435 435 0 0 0 1.5 32.6Z" })
|
|
324
324
|
] }),
|
|
325
|
-
r && /* @__PURE__ */ t(
|
|
325
|
+
r && /* @__PURE__ */ t(me, { children: /* @__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" }) }),
|
|
326
326
|
/* @__PURE__ */ t(
|
|
327
327
|
"path",
|
|
328
328
|
{
|
|
@@ -367,7 +367,7 @@ function da({ jersey: e, className: a }) {
|
|
|
367
367
|
] });
|
|
368
368
|
}
|
|
369
369
|
function Ne({ name: e, jersey: a, size: n = "regular" }) {
|
|
370
|
-
return /* @__PURE__ */
|
|
370
|
+
return /* @__PURE__ */ h("div", { className: `oli-font ${_e.team} ${_e[n]}`, children: [
|
|
371
371
|
a != null && a.base ? /* @__PURE__ */ t(
|
|
372
372
|
da,
|
|
373
373
|
{
|
|
@@ -384,20 +384,20 @@ function ua(e, a, {
|
|
|
384
384
|
cooldownMs: i = 500
|
|
385
385
|
} = {}) {
|
|
386
386
|
const r = V(0), s = V(0);
|
|
387
|
-
|
|
387
|
+
Q(() => {
|
|
388
388
|
if (!n) return;
|
|
389
389
|
const m = e.current;
|
|
390
390
|
if (!m) return;
|
|
391
391
|
const p = (f) => {
|
|
392
392
|
const u = a.current;
|
|
393
393
|
if (!u || !u.go) return;
|
|
394
|
-
const { deltaX: l, deltaY:
|
|
395
|
-
if (Math.abs(l) <= Math.abs(
|
|
394
|
+
const { deltaX: l, deltaY: d } = f;
|
|
395
|
+
if (Math.abs(l) <= Math.abs(d)) return;
|
|
396
396
|
f.preventDefault(), r.current += l;
|
|
397
|
-
const
|
|
398
|
-
if (
|
|
397
|
+
const g = Date.now();
|
|
398
|
+
if (g - s.current < i || Math.abs(r.current) < o) return;
|
|
399
399
|
const b = r.current > 0 ? ">" : "<";
|
|
400
|
-
r.current = 0, s.current =
|
|
400
|
+
r.current = 0, s.current = g, u.go(b);
|
|
401
401
|
};
|
|
402
402
|
return m.addEventListener("wheel", p, { passive: !1 }), () => {
|
|
403
403
|
m.removeEventListener("wheel", p), r.current = 0;
|
|
@@ -409,7 +409,7 @@ const ma = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", pa = "ora
|
|
|
409
409
|
right: pa,
|
|
410
410
|
left: fa,
|
|
411
411
|
svg: ga
|
|
412
|
-
}, ha = $t, ba = Nt, he =
|
|
412
|
+
}, ha = $t, ba = Nt, he = Ct(
|
|
413
413
|
({
|
|
414
414
|
items: e = [],
|
|
415
415
|
renderItem: a,
|
|
@@ -423,40 +423,40 @@ const ma = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", pa = "ora
|
|
|
423
423
|
enableHorizontalWheel: f = !0,
|
|
424
424
|
showRightGradient: u = !1
|
|
425
425
|
}, l) => {
|
|
426
|
-
const
|
|
427
|
-
ua(
|
|
426
|
+
const d = V(null), g = V(null), b = V(e.length), C = V(null), M = V(null);
|
|
427
|
+
ua(g, d, {
|
|
428
428
|
enabled: f
|
|
429
|
-
}),
|
|
429
|
+
}), Ot(l, () => ({
|
|
430
430
|
next: () => {
|
|
431
|
-
var
|
|
432
|
-
return (
|
|
431
|
+
var w;
|
|
432
|
+
return (w = d.current) == null ? void 0 : w.go(">");
|
|
433
433
|
},
|
|
434
434
|
prev: () => {
|
|
435
|
-
var
|
|
436
|
-
return (
|
|
435
|
+
var w;
|
|
436
|
+
return (w = d.current) == null ? void 0 : w.go("<");
|
|
437
437
|
},
|
|
438
|
-
go: (
|
|
439
|
-
var
|
|
440
|
-
return (
|
|
438
|
+
go: (w) => {
|
|
439
|
+
var B;
|
|
440
|
+
return (B = d.current) == null ? void 0 : B.go(w);
|
|
441
441
|
}
|
|
442
442
|
}));
|
|
443
|
-
const
|
|
443
|
+
const x = (w) => {
|
|
444
444
|
var F;
|
|
445
|
-
const
|
|
445
|
+
const B = w.Components.Slides, T = w.Components.Controller, _ = w.root.querySelector(".splide__track"), O = (F = _ == null ? void 0 : _.clientWidth) != null ? F : 0, L = T.getIndex(), A = B.getLength();
|
|
446
446
|
let R = 0, v = L;
|
|
447
|
-
for (let U = L; U <
|
|
448
|
-
const W =
|
|
449
|
-
if (!W || (R += W.slide.offsetWidth, R >
|
|
447
|
+
for (let U = L; U < A; U++) {
|
|
448
|
+
const W = B.getAt(U);
|
|
449
|
+
if (!W || (R += W.slide.offsetWidth, R > O)) break;
|
|
450
450
|
v = U;
|
|
451
451
|
}
|
|
452
452
|
return { visibleStart: L, visibleEnd: v };
|
|
453
|
-
}, y = (
|
|
454
|
-
const
|
|
455
|
-
return !
|
|
456
|
-
}, $ =
|
|
453
|
+
}, y = (w) => {
|
|
454
|
+
const B = w.root.querySelector(".splide__track"), T = w.root.querySelector(".splide__list");
|
|
455
|
+
return !B || !T ? !1 : T.scrollWidth > B.clientWidth + 1;
|
|
456
|
+
}, $ = Ee((w) => {
|
|
457
457
|
var v, F;
|
|
458
|
-
const T =
|
|
459
|
-
if (!y(
|
|
458
|
+
const T = w.Components.Slides.getLength();
|
|
459
|
+
if (!y(w)) {
|
|
460
460
|
m == null || m({
|
|
461
461
|
index: 0,
|
|
462
462
|
isStart: !0,
|
|
@@ -467,37 +467,37 @@ const ma = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", pa = "ora
|
|
|
467
467
|
});
|
|
468
468
|
return;
|
|
469
469
|
}
|
|
470
|
-
const { visibleStart: _, visibleEnd:
|
|
471
|
-
u && ((v =
|
|
472
|
-
const R =
|
|
470
|
+
const { visibleStart: _, visibleEnd: O } = x(w), L = _ === 0, A = O === T - 1;
|
|
471
|
+
u && ((v = C.current) == null || v.style.setProperty("--gradient-opacity", L ? "0" : "1"), (F = M.current) == null || F.style.setProperty("--gradient-opacity", A ? "0" : "1"));
|
|
472
|
+
const R = w.Components.Controller.getIndex();
|
|
473
473
|
m == null || m({
|
|
474
474
|
index: R,
|
|
475
475
|
isStart: L,
|
|
476
|
-
isEnd:
|
|
476
|
+
isEnd: A,
|
|
477
477
|
total: T,
|
|
478
478
|
visibleStart: _,
|
|
479
|
-
visibleEnd:
|
|
479
|
+
visibleEnd: O
|
|
480
480
|
});
|
|
481
481
|
}, [m]);
|
|
482
482
|
fe.useEffect(() => {
|
|
483
483
|
var T;
|
|
484
|
-
const
|
|
485
|
-
if (!
|
|
486
|
-
const
|
|
487
|
-
b.current = e.length,
|
|
488
|
-
|
|
484
|
+
const w = (T = d.current) == null ? void 0 : T.splide;
|
|
485
|
+
if (!w) return;
|
|
486
|
+
const B = b.current !== e.length;
|
|
487
|
+
b.current = e.length, B && requestAnimationFrame(() => {
|
|
488
|
+
w.refresh(), $(w);
|
|
489
489
|
});
|
|
490
490
|
}, [e.length, $]);
|
|
491
|
-
const D =
|
|
492
|
-
var
|
|
493
|
-
const
|
|
494
|
-
|
|
495
|
-
}, [$]), I =
|
|
496
|
-
(
|
|
497
|
-
$(
|
|
491
|
+
const D = Ee(() => {
|
|
492
|
+
var B;
|
|
493
|
+
const w = (B = d.current) == null ? void 0 : B.splide;
|
|
494
|
+
w && (w.go(0, !1), $(w));
|
|
495
|
+
}, [$]), I = Ee(
|
|
496
|
+
(w) => {
|
|
497
|
+
$(w);
|
|
498
498
|
},
|
|
499
499
|
[$]
|
|
500
|
-
),
|
|
500
|
+
), E = {
|
|
501
501
|
type: "slide",
|
|
502
502
|
trimSpace: !1,
|
|
503
503
|
drag: !0,
|
|
@@ -512,35 +512,35 @@ const ma = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", pa = "ora
|
|
|
512
512
|
...r,
|
|
513
513
|
...f ? { wheel: !1 } : {}
|
|
514
514
|
};
|
|
515
|
-
return /* @__PURE__ */
|
|
515
|
+
return /* @__PURE__ */ h(
|
|
516
516
|
"div",
|
|
517
517
|
{
|
|
518
|
-
ref:
|
|
518
|
+
ref: g,
|
|
519
519
|
className: s,
|
|
520
520
|
style: { width: "100%", position: "relative", height: "100%" },
|
|
521
521
|
children: [
|
|
522
522
|
/* @__PURE__ */ t(
|
|
523
523
|
ha,
|
|
524
524
|
{
|
|
525
|
-
ref:
|
|
526
|
-
options:
|
|
525
|
+
ref: d,
|
|
526
|
+
options: E,
|
|
527
527
|
onMove: $,
|
|
528
528
|
onMounted: I,
|
|
529
529
|
onResize: D,
|
|
530
|
-
children: e.map((
|
|
530
|
+
children: e.map((w, B) => {
|
|
531
531
|
var T;
|
|
532
|
-
return /* @__PURE__ */ t(ba, { children: a(
|
|
532
|
+
return /* @__PURE__ */ t(ba, { children: a(w, B) }, p ? B : (T = w.id) != null ? T : B);
|
|
533
533
|
})
|
|
534
534
|
}
|
|
535
535
|
),
|
|
536
|
-
u && /* @__PURE__ */
|
|
536
|
+
u && /* @__PURE__ */ h(me, { children: [
|
|
537
537
|
/* @__PURE__ */ t(
|
|
538
538
|
"div",
|
|
539
539
|
{
|
|
540
|
-
ref:
|
|
540
|
+
ref: C,
|
|
541
541
|
className: `${ye.gradientOverlay} ${ye.left}`,
|
|
542
542
|
style: { "--gradient-opacity": "0" },
|
|
543
|
-
children: /* @__PURE__ */
|
|
543
|
+
children: /* @__PURE__ */ h(
|
|
544
544
|
"svg",
|
|
545
545
|
{
|
|
546
546
|
className: ye.svg,
|
|
@@ -550,7 +550,7 @@ const ma = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", pa = "ora
|
|
|
550
550
|
xmlns: "http://www.w3.org/2000/svg",
|
|
551
551
|
children: [
|
|
552
552
|
/* @__PURE__ */ t("path", { d: "M0 0H152V184H0V0Z", fill: "url(#paint_left)" }),
|
|
553
|
-
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */
|
|
553
|
+
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ h("linearGradient", { id: "paint_left", x1: "0", y1: "92", x2: "152", y2: "92", gradientUnits: "userSpaceOnUse", children: [
|
|
554
554
|
/* @__PURE__ */ t("stop", { offset: "0.59737", stopColor: "#121212", stopOpacity: "0" }),
|
|
555
555
|
/* @__PURE__ */ t("stop", { offset: "1", stopColor: "#121212" })
|
|
556
556
|
] }) })
|
|
@@ -562,10 +562,10 @@ const ma = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", pa = "ora
|
|
|
562
562
|
/* @__PURE__ */ t(
|
|
563
563
|
"div",
|
|
564
564
|
{
|
|
565
|
-
ref:
|
|
565
|
+
ref: M,
|
|
566
566
|
className: `${ye.gradientOverlay} ${ye.right}`,
|
|
567
567
|
style: { "--gradient-opacity": "1" },
|
|
568
|
-
children: /* @__PURE__ */
|
|
568
|
+
children: /* @__PURE__ */ h(
|
|
569
569
|
"svg",
|
|
570
570
|
{
|
|
571
571
|
className: ye.svg,
|
|
@@ -575,7 +575,7 @@ const ma = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", pa = "ora
|
|
|
575
575
|
xmlns: "http://www.w3.org/2000/svg",
|
|
576
576
|
children: [
|
|
577
577
|
/* @__PURE__ */ t("path", { d: "M0 0H152V184H0V0Z", fill: "url(#paint_right)" }),
|
|
578
|
-
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */
|
|
578
|
+
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ h("linearGradient", { id: "paint_right", x1: "0", y1: "92", x2: "152", y2: "92", gradientUnits: "userSpaceOnUse", children: [
|
|
579
579
|
/* @__PURE__ */ t("stop", { offset: "0.59737", stopColor: "#121212", stopOpacity: "0" }),
|
|
580
580
|
/* @__PURE__ */ t("stop", { offset: "1", stopColor: "#121212" })
|
|
581
581
|
] }) })
|
|
@@ -598,7 +598,7 @@ const ma = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", pa = "ora
|
|
|
598
598
|
const i = n === "lg" ? { w: 280, h: 352 } : { w: 152, h: 168 }, r = (m) => {
|
|
599
599
|
m.stopPropagation(), a == null || a();
|
|
600
600
|
}, s = o ? { width: "100%", height: "100%" } : { width: `${i.w}px`, height: `${i.h}px` };
|
|
601
|
-
return /* @__PURE__ */
|
|
601
|
+
return /* @__PURE__ */ h(
|
|
602
602
|
q,
|
|
603
603
|
{
|
|
604
604
|
onClick: a,
|
|
@@ -686,18 +686,18 @@ function va({
|
|
|
686
686
|
md: { w: 186, h: 264, r: 22.6, font: 64 }
|
|
687
687
|
}
|
|
688
688
|
}) {
|
|
689
|
-
var l,
|
|
690
|
-
const r = (
|
|
691
|
-
var
|
|
689
|
+
var l, d, g, b;
|
|
690
|
+
const r = (C, M) => {
|
|
691
|
+
var x, y, $, D;
|
|
692
692
|
return {
|
|
693
|
-
xs: (y = (
|
|
694
|
-
md: (D = ($ = i.md) == null ? void 0 : $[
|
|
693
|
+
xs: (y = (x = i.xs) == null ? void 0 : x[C]) != null ? y : M,
|
|
694
|
+
md: (D = ($ = i.md) == null ? void 0 : $[C]) != null ? D : M
|
|
695
695
|
};
|
|
696
696
|
}, s = r("w", 186), m = r("h", 264), p = r("r", 22.6), f = r("font", 64), u = {
|
|
697
|
-
xs: Math.round(((
|
|
698
|
-
md: Math.round(((b = (
|
|
697
|
+
xs: Math.round(((d = (l = i.xs) == null ? void 0 : l.font) != null ? d : 64) * 0.28),
|
|
698
|
+
md: Math.round(((b = (g = i.md) == null ? void 0 : g.font) != null ? b : 64) * 0.28)
|
|
699
699
|
};
|
|
700
|
-
return /* @__PURE__ */
|
|
700
|
+
return /* @__PURE__ */ h(
|
|
701
701
|
q,
|
|
702
702
|
{
|
|
703
703
|
sx: {
|
|
@@ -795,7 +795,7 @@ const _a = ({
|
|
|
795
795
|
onClick: i
|
|
796
796
|
}) => {
|
|
797
797
|
var r;
|
|
798
|
-
return /* @__PURE__ */
|
|
798
|
+
return /* @__PURE__ */ h(
|
|
799
799
|
q,
|
|
800
800
|
{
|
|
801
801
|
onClick: i,
|
|
@@ -850,7 +850,7 @@ const _a = ({
|
|
|
850
850
|
pointerEvents: "none"
|
|
851
851
|
},
|
|
852
852
|
children: /* @__PURE__ */ t(
|
|
853
|
-
|
|
853
|
+
de,
|
|
854
854
|
{
|
|
855
855
|
sx: {
|
|
856
856
|
color: "#fff",
|
|
@@ -881,7 +881,7 @@ const _a = ({
|
|
|
881
881
|
}
|
|
882
882
|
}
|
|
883
883
|
}
|
|
884
|
-
) }),
|
|
884
|
+
) }), mt = ({
|
|
885
885
|
items: e,
|
|
886
886
|
layout: a = "grid",
|
|
887
887
|
onClick: n,
|
|
@@ -891,7 +891,7 @@ const _a = ({
|
|
|
891
891
|
var r, s;
|
|
892
892
|
if (a === "mosaic") {
|
|
893
893
|
const m = e[0], p = e.slice(1, 5);
|
|
894
|
-
return /* @__PURE__ */
|
|
894
|
+
return /* @__PURE__ */ h(
|
|
895
895
|
q,
|
|
896
896
|
{
|
|
897
897
|
sx: {
|
|
@@ -937,7 +937,7 @@ const _a = ({
|
|
|
937
937
|
}
|
|
938
938
|
),
|
|
939
939
|
(o ? Array.from({ length: 4 }) : p).map((f, u) => {
|
|
940
|
-
var l,
|
|
940
|
+
var l, d;
|
|
941
941
|
return /* @__PURE__ */ t(
|
|
942
942
|
q,
|
|
943
943
|
{
|
|
@@ -950,7 +950,7 @@ const _a = ({
|
|
|
950
950
|
children: o ? /* @__PURE__ */ t(Pe, {}) : /* @__PURE__ */ t(
|
|
951
951
|
Te,
|
|
952
952
|
{
|
|
953
|
-
imageUrl: `https://olimpo.bet${(
|
|
953
|
+
imageUrl: `https://olimpo.bet${(d = (l = f.background) != null ? l : f.imageUrl) != null ? d : ""}`,
|
|
954
954
|
size: "sm",
|
|
955
955
|
fillParent: !0,
|
|
956
956
|
onClick: () => n == null ? void 0 : n(f, u + 1)
|
|
@@ -1001,7 +1001,7 @@ const _a = ({
|
|
|
1001
1001
|
})
|
|
1002
1002
|
}
|
|
1003
1003
|
);
|
|
1004
|
-
},
|
|
1004
|
+
}, Ze = ({
|
|
1005
1005
|
title: e,
|
|
1006
1006
|
amount: a,
|
|
1007
1007
|
subtitle: n,
|
|
@@ -1013,7 +1013,7 @@ const _a = ({
|
|
|
1013
1013
|
variant: p = "small"
|
|
1014
1014
|
}) => {
|
|
1015
1015
|
const f = a ? a.slice(0, 2) : "", u = a ? a.slice(2) : "", l = p === "large";
|
|
1016
|
-
return /* @__PURE__ */
|
|
1016
|
+
return /* @__PURE__ */ h(
|
|
1017
1017
|
q,
|
|
1018
1018
|
{
|
|
1019
1019
|
className: m,
|
|
@@ -1074,7 +1074,7 @@ const _a = ({
|
|
|
1074
1074
|
pl: "14%",
|
|
1075
1075
|
pr: { xs: "14%", lg: "15%" }
|
|
1076
1076
|
},
|
|
1077
|
-
children: /* @__PURE__ */
|
|
1077
|
+
children: /* @__PURE__ */ h(
|
|
1078
1078
|
q,
|
|
1079
1079
|
{
|
|
1080
1080
|
sx: {
|
|
@@ -1085,7 +1085,7 @@ const _a = ({
|
|
|
1085
1085
|
},
|
|
1086
1086
|
children: [
|
|
1087
1087
|
e && /* @__PURE__ */ t(
|
|
1088
|
-
|
|
1088
|
+
de,
|
|
1089
1089
|
{
|
|
1090
1090
|
sx: {
|
|
1091
1091
|
fontSize: { xs: 12, md: 20 },
|
|
@@ -1095,7 +1095,7 @@ const _a = ({
|
|
|
1095
1095
|
children: e
|
|
1096
1096
|
}
|
|
1097
1097
|
),
|
|
1098
|
-
a && /* @__PURE__ */
|
|
1098
|
+
a && /* @__PURE__ */ h(
|
|
1099
1099
|
q,
|
|
1100
1100
|
{
|
|
1101
1101
|
component: "p",
|
|
@@ -1133,7 +1133,7 @@ const _a = ({
|
|
|
1133
1133
|
}
|
|
1134
1134
|
),
|
|
1135
1135
|
n && /* @__PURE__ */ t(
|
|
1136
|
-
|
|
1136
|
+
de,
|
|
1137
1137
|
{
|
|
1138
1138
|
sx: {
|
|
1139
1139
|
pb: "20px",
|
|
@@ -1161,7 +1161,7 @@ const _a = ({
|
|
|
1161
1161
|
imgSrcMobile: i,
|
|
1162
1162
|
imgSrcDesktopBg: r,
|
|
1163
1163
|
imgSrcDesktopLogo: s
|
|
1164
|
-
}) => /* @__PURE__ */
|
|
1164
|
+
}) => /* @__PURE__ */ h(me, { children: [
|
|
1165
1165
|
/* @__PURE__ */ t("div", { className: "orc-co-bgMobile", children: /* @__PURE__ */ t(
|
|
1166
1166
|
"img",
|
|
1167
1167
|
{
|
|
@@ -1170,7 +1170,7 @@ const _a = ({
|
|
|
1170
1170
|
className: "orc-co-bgMobileImg"
|
|
1171
1171
|
}
|
|
1172
1172
|
) }),
|
|
1173
|
-
/* @__PURE__ */ t("div", { className: "orc-co-bgDesktop", children: /* @__PURE__ */
|
|
1173
|
+
/* @__PURE__ */ t("div", { className: "orc-co-bgDesktop", children: /* @__PURE__ */ h("div", { className: "orc-co-desktopInner", children: [
|
|
1174
1174
|
r && /* @__PURE__ */ t("div", { className: "orc-co-fillHost", children: /* @__PURE__ */ t(
|
|
1175
1175
|
"img",
|
|
1176
1176
|
{
|
|
@@ -1179,7 +1179,7 @@ const _a = ({
|
|
|
1179
1179
|
className: "orc-co-bgDesktopImg"
|
|
1180
1180
|
}
|
|
1181
1181
|
) }),
|
|
1182
|
-
/* @__PURE__ */
|
|
1182
|
+
/* @__PURE__ */ h("div", { className: "orc-co-desktopContent", children: [
|
|
1183
1183
|
s && /* @__PURE__ */ t(
|
|
1184
1184
|
"img",
|
|
1185
1185
|
{
|
|
@@ -1192,22 +1192,22 @@ const _a = ({
|
|
|
1192
1192
|
/* @__PURE__ */ t(X, { onClick: n, variant: "primary", size: "md", children: a })
|
|
1193
1193
|
] })
|
|
1194
1194
|
] }) }),
|
|
1195
|
-
/* @__PURE__ */
|
|
1195
|
+
/* @__PURE__ */ h("div", { className: "orc-co-bottom", children: [
|
|
1196
1196
|
/* @__PURE__ */ t("p", { className: "orc-co-caption", children: e }),
|
|
1197
1197
|
/* @__PURE__ */ t(X, { onClick: n, variant: "primary", size: "md", children: a })
|
|
1198
1198
|
] })
|
|
1199
|
-
] }), xa = "oraculo__OraculoEventCombinadasCard-module__card___ulQeY", wa = "oraculo__OraculoEventCombinadasCard-module__combinadas___Gxrld", Sa = "oraculo__OraculoEventCombinadasCard-module__combinadasScroll___47cZl", Ia = "oraculo__OraculoEventCombinadasCard-module__apuestaItem___YnYMy",
|
|
1199
|
+
] }), xa = "oraculo__OraculoEventCombinadasCard-module__card___ulQeY", wa = "oraculo__OraculoEventCombinadasCard-module__combinadas___Gxrld", Sa = "oraculo__OraculoEventCombinadasCard-module__combinadasScroll___47cZl", Ia = "oraculo__OraculoEventCombinadasCard-module__apuestaItem___YnYMy", Ca = "oraculo__OraculoEventCombinadasCard-module__lineContainer___G5rbU", Oa = "oraculo__OraculoEventCombinadasCard-module__circle___eehm-", Ea = "oraculo__OraculoEventCombinadasCard-module__line___Eb2pK", Ta = "oraculo__OraculoEventCombinadasCard-module__apuestaText___b5s7S", ka = "oraculo__OraculoEventCombinadasCard-module__cuotaTotal___Lohvu", le = {
|
|
1200
1200
|
card: xa,
|
|
1201
1201
|
combinadas: wa,
|
|
1202
1202
|
combinadasScroll: Sa,
|
|
1203
1203
|
apuestaItem: Ia,
|
|
1204
|
-
lineContainer:
|
|
1205
|
-
circle:
|
|
1206
|
-
line:
|
|
1204
|
+
lineContainer: Ca,
|
|
1205
|
+
circle: Oa,
|
|
1206
|
+
line: Ea,
|
|
1207
1207
|
apuestaText: Ta,
|
|
1208
1208
|
cuotaTotal: ka
|
|
1209
1209
|
};
|
|
1210
|
-
function
|
|
1210
|
+
function Ue(e, a) {
|
|
1211
1211
|
const n = Array.isArray(a) ? a : [a];
|
|
1212
1212
|
sessionStorage.setItem("landingOutcomes", JSON.stringify(n)), window.location.href = e;
|
|
1213
1213
|
}
|
|
@@ -1220,7 +1220,7 @@ function Na() {
|
|
|
1220
1220
|
function Ma() {
|
|
1221
1221
|
window.location.href = "/deportes#specials";
|
|
1222
1222
|
}
|
|
1223
|
-
async function
|
|
1223
|
+
async function pt(e) {
|
|
1224
1224
|
return await (await fetch("https://api.mktolimpo.com/api/jerseys/search", {
|
|
1225
1225
|
method: "POST",
|
|
1226
1226
|
headers: {
|
|
@@ -1231,51 +1231,51 @@ async function gt(e) {
|
|
|
1231
1231
|
})
|
|
1232
1232
|
})).json();
|
|
1233
1233
|
}
|
|
1234
|
-
const
|
|
1234
|
+
const ft = Et(void 0), gt = ({ children: e, docId: a, moduleId: n }) => {
|
|
1235
1235
|
const o = fe.useMemo(() => ({ docId: a, moduleId: n }), [a, n]);
|
|
1236
|
-
return /* @__PURE__ */ t(
|
|
1237
|
-
},
|
|
1238
|
-
const e = Tt(
|
|
1236
|
+
return /* @__PURE__ */ t(ft.Provider, { value: o, children: e });
|
|
1237
|
+
}, ht = () => {
|
|
1238
|
+
const e = Tt(ft);
|
|
1239
1239
|
if (!e)
|
|
1240
1240
|
throw new Error("useDocContext debe usarse dentro de DocIdProvider");
|
|
1241
1241
|
return e;
|
|
1242
|
-
}, ne = () =>
|
|
1242
|
+
}, ne = () => ht().docId, se = () => ht().moduleId;
|
|
1243
1243
|
function Ba({ coupon: e }) {
|
|
1244
1244
|
var f;
|
|
1245
1245
|
const a = ae(), n = ne();
|
|
1246
1246
|
function o(u) {
|
|
1247
|
-
var
|
|
1248
|
-
const l = [],
|
|
1247
|
+
var g, b;
|
|
1248
|
+
const l = [], d = Array.from(
|
|
1249
1249
|
new Map(
|
|
1250
|
-
((
|
|
1250
|
+
((g = u == null ? void 0 : u.events) != null ? g : []).filter(Boolean).map((C) => [C.id, C])
|
|
1251
1251
|
).values()
|
|
1252
1252
|
);
|
|
1253
|
-
return
|
|
1253
|
+
return d.forEach((C) => {
|
|
1254
1254
|
var $;
|
|
1255
|
-
const
|
|
1256
|
-
|
|
1257
|
-
var
|
|
1258
|
-
if (!((
|
|
1255
|
+
const M = ($ = C.betoffers) != null ? $ : [], x = C.homeName, y = C.awayName;
|
|
1256
|
+
M.forEach((D) => {
|
|
1257
|
+
var B, T, _, O, L, A, R;
|
|
1258
|
+
if (!((B = D == null ? void 0 : D.outcomes) != null && B.length)) return;
|
|
1259
1259
|
const I = D.outcomes[0];
|
|
1260
1260
|
if (!I) return;
|
|
1261
|
-
let
|
|
1262
|
-
const
|
|
1263
|
-
["Más de", "Mas de", "Over"].includes(I.label) ? (
|
|
1261
|
+
let E = "";
|
|
1262
|
+
const w = I != null && I.line ? I.line / 1e3 : "";
|
|
1263
|
+
["Más de", "Mas de", "Over"].includes(I.label) ? (E = `Más de ${w}`, I.participant && (E = `${I.participant} - ${E}`)) : ["Menos de", "Menos", "Under"].includes(I.label) ? (E = `Menos de ${w}`, I.participant && (E = `${I.participant} - ${E}`)) : ["Sí", "No"].includes(I.label) ? (E = I.label, I.participant && (E = `${I.participant} - ${E}`)) : ["1X", "12", "X2"].includes(I.label) ? (I.label === "1X" && (E = `${x} o Empate`), I.label === "12" && (E = `${x} o ${y}`), I.label === "X2" && (E = `${y} o Empate`)) : (E = (_ = (T = I.participant) != null ? T : I.label) != null ? _ : "", w !== "" && E === I.label && (E = `${I.label} ${w}`)), l.push({
|
|
1264
1264
|
id: I.id,
|
|
1265
|
-
value:
|
|
1266
|
-
label: (L = (
|
|
1267
|
-
odds: (
|
|
1265
|
+
value: E,
|
|
1266
|
+
label: (L = (O = D.criterion) == null ? void 0 : O.label) != null ? L : "",
|
|
1267
|
+
odds: (A = I.odds) != null ? A : 0,
|
|
1268
1268
|
position: (R = I.position) != null ? R : 0,
|
|
1269
|
-
eventId:
|
|
1269
|
+
eventId: C.id
|
|
1270
1270
|
});
|
|
1271
1271
|
});
|
|
1272
1272
|
}), {
|
|
1273
|
-
outcomes: l.sort((
|
|
1273
|
+
outcomes: l.sort((C, M) => C.position - M.position),
|
|
1274
1274
|
total: Number((b = u == null ? void 0 : u.combinadoTotal) != null ? b : 0).toLocaleString("en-US", {
|
|
1275
1275
|
minimumFractionDigits: 2,
|
|
1276
1276
|
maximumFractionDigits: 2
|
|
1277
1277
|
}),
|
|
1278
|
-
events:
|
|
1278
|
+
events: d
|
|
1279
1279
|
};
|
|
1280
1280
|
}
|
|
1281
1281
|
function i(u) {
|
|
@@ -1284,44 +1284,44 @@ function Ba({ coupon: e }) {
|
|
|
1284
1284
|
const l = u.events;
|
|
1285
1285
|
if (l.length === 1)
|
|
1286
1286
|
return `/deportes#event/${l[0].id}`;
|
|
1287
|
-
const
|
|
1288
|
-
if (l.every((b) => b.groupId ===
|
|
1287
|
+
const d = l[0].groupId;
|
|
1288
|
+
if (l.every((b) => b.groupId === d)) {
|
|
1289
1289
|
const b = l[0].path;
|
|
1290
1290
|
if (Array.isArray(b) && b.length > 0)
|
|
1291
|
-
return `/deportes#sports-hub/${b.map((
|
|
1291
|
+
return `/deportes#sports-hub/${b.map((M) => M.termKey).filter(Boolean).join("/")}`;
|
|
1292
1292
|
}
|
|
1293
1293
|
return "/deportes#home";
|
|
1294
1294
|
}
|
|
1295
1295
|
const r = (u, l) => {
|
|
1296
|
-
const
|
|
1296
|
+
const d = Array.isArray(u) ? u : [u], g = Array.from(
|
|
1297
1297
|
new Set(
|
|
1298
|
-
s.outcomes.map((
|
|
1298
|
+
s.outcomes.map((M) => {
|
|
1299
1299
|
var y;
|
|
1300
|
-
const
|
|
1301
|
-
return (y =
|
|
1300
|
+
const x = p.get(Number(M.eventId));
|
|
1301
|
+
return (y = x == null ? void 0 : x.name) != null ? y : "";
|
|
1302
1302
|
})
|
|
1303
1303
|
)
|
|
1304
|
-
).filter(Boolean), b =
|
|
1304
|
+
).filter(Boolean), b = g.length > 0 ? g.join(" + ") : JSON.stringify(d), C = l ? `${b} - Cuota: ${l}` : b;
|
|
1305
1305
|
a({
|
|
1306
1306
|
element: "evento_semana_outcome",
|
|
1307
|
-
label: `Landing: ${n} - OraculoEventCombinadasCard - Click: ${
|
|
1307
|
+
label: `Landing: ${n} - OraculoEventCombinadasCard - Click: ${C}`,
|
|
1308
1308
|
target: "/deportes#in-play",
|
|
1309
1309
|
event_type: "click",
|
|
1310
1310
|
module_id: 301,
|
|
1311
1311
|
metadata: {
|
|
1312
1312
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1313
1313
|
},
|
|
1314
|
-
tags: { section: "OraculoEventCombinadasCard", outcomes:
|
|
1315
|
-
}),
|
|
1314
|
+
tags: { section: "OraculoEventCombinadasCard", outcomes: C }
|
|
1315
|
+
}), Ue(i(e), u);
|
|
1316
1316
|
};
|
|
1317
1317
|
if (!((f = e == null ? void 0 : e.events) != null && f.length)) return null;
|
|
1318
1318
|
const s = o(e), m = s.outcomes.reduce((u, l) => (u[l.eventId] || (u[l.eventId] = []), u[l.eventId].push(l), u), {}), p = new Map(
|
|
1319
1319
|
s.events.map((u) => [u.id, u])
|
|
1320
1320
|
);
|
|
1321
|
-
return /* @__PURE__ */
|
|
1322
|
-
/* @__PURE__ */ t("div", { className:
|
|
1323
|
-
const
|
|
1324
|
-
return
|
|
1321
|
+
return /* @__PURE__ */ h("div", { className: le.card, children: [
|
|
1322
|
+
/* @__PURE__ */ t("div", { className: le.combinadas, children: /* @__PURE__ */ t("div", { className: le.combinadasScroll, children: /* @__PURE__ */ t(H, { direction: "column", spacing: 1.5, useFlexGap: !0, children: Object.entries(m).reverse().map(([u, l]) => {
|
|
1323
|
+
const d = p.get(Number(u));
|
|
1324
|
+
return d ? /* @__PURE__ */ h(
|
|
1325
1325
|
H,
|
|
1326
1326
|
{
|
|
1327
1327
|
direction: "column",
|
|
@@ -1331,7 +1331,7 @@ function Ba({ coupon: e }) {
|
|
|
1331
1331
|
/* @__PURE__ */ t(
|
|
1332
1332
|
ge,
|
|
1333
1333
|
{
|
|
1334
|
-
title:
|
|
1334
|
+
title: d.name,
|
|
1335
1335
|
iconUrl: "/assets/img/home/Combinadas/pelota.png",
|
|
1336
1336
|
size: "xs"
|
|
1337
1337
|
}
|
|
@@ -1343,15 +1343,15 @@ function Ba({ coupon: e }) {
|
|
|
1343
1343
|
src: "/assets/img/home/Combinadas/line.png"
|
|
1344
1344
|
}
|
|
1345
1345
|
),
|
|
1346
|
-
l.map((
|
|
1347
|
-
/* @__PURE__ */
|
|
1348
|
-
/* @__PURE__ */ t("div", { className:
|
|
1349
|
-
b < l.length - 1 && /* @__PURE__ */ t("div", { className:
|
|
1346
|
+
l.map((g, b) => /* @__PURE__ */ h("div", { className: le.apuestaItem, children: [
|
|
1347
|
+
/* @__PURE__ */ h("div", { className: le.lineContainer, children: [
|
|
1348
|
+
/* @__PURE__ */ t("div", { className: le.circle }),
|
|
1349
|
+
b < l.length - 1 && /* @__PURE__ */ t("div", { className: le.line })
|
|
1350
1350
|
] }),
|
|
1351
|
-
/* @__PURE__ */
|
|
1352
|
-
/* @__PURE__ */ t("strong", { children:
|
|
1351
|
+
/* @__PURE__ */ h("div", { className: le.apuestaText, children: [
|
|
1352
|
+
/* @__PURE__ */ t("strong", { children: g.value }),
|
|
1353
1353
|
" | ",
|
|
1354
|
-
|
|
1354
|
+
g.label
|
|
1355
1355
|
] })
|
|
1356
1356
|
] }, `${u}-${b}`))
|
|
1357
1357
|
]
|
|
@@ -1359,16 +1359,16 @@ function Ba({ coupon: e }) {
|
|
|
1359
1359
|
u
|
|
1360
1360
|
) : null;
|
|
1361
1361
|
}) }) }) }),
|
|
1362
|
-
/* @__PURE__ */
|
|
1362
|
+
/* @__PURE__ */ h(
|
|
1363
1363
|
"button",
|
|
1364
1364
|
{
|
|
1365
1365
|
onClick: () => r(
|
|
1366
1366
|
s.outcomes.map((u) => u.id),
|
|
1367
1367
|
s.total
|
|
1368
1368
|
),
|
|
1369
|
-
className:
|
|
1369
|
+
className: le.cuotaTotal,
|
|
1370
1370
|
children: [
|
|
1371
|
-
/* @__PURE__ */
|
|
1371
|
+
/* @__PURE__ */ h("span", { children: [
|
|
1372
1372
|
"Cuota total: ",
|
|
1373
1373
|
/* @__PURE__ */ t("strong", { children: s.total })
|
|
1374
1374
|
] }),
|
|
@@ -1385,7 +1385,7 @@ function Ba({ coupon: e }) {
|
|
|
1385
1385
|
)
|
|
1386
1386
|
] });
|
|
1387
1387
|
}
|
|
1388
|
-
const
|
|
1388
|
+
const ce = {
|
|
1389
1389
|
"orc-btn": "oraculo__OraculoButtonBet-module__orc-btn___jakza",
|
|
1390
1390
|
"orc-btn__label": "oraculo__OraculoButtonBet-module__orc-btn__label___zNFEH",
|
|
1391
1391
|
"orc-btn__icon": "oraculo__OraculoButtonBet-module__orc-btn__icon___5Rhyd",
|
|
@@ -1412,49 +1412,49 @@ function Aa({
|
|
|
1412
1412
|
fullWidth: f = !1,
|
|
1413
1413
|
fullHeight: u = !1,
|
|
1414
1414
|
className: l = "",
|
|
1415
|
-
ariaLabel:
|
|
1416
|
-
leftIcon:
|
|
1415
|
+
ariaLabel: d,
|
|
1416
|
+
leftIcon: g,
|
|
1417
1417
|
rightIcon: b,
|
|
1418
|
-
iconOnly:
|
|
1418
|
+
iconOnly: C
|
|
1419
1419
|
}) {
|
|
1420
|
-
const
|
|
1421
|
-
|
|
1420
|
+
const M = !!e && e !== !0, $ = (!!g ? 1 : 0) + (!!b ? 1 : 0) == 1, D = C != null ? C : $ && !M, I = [
|
|
1421
|
+
ce["orc-btn"],
|
|
1422
1422
|
// base
|
|
1423
|
-
|
|
1423
|
+
ce[`orc-btn--${m}`],
|
|
1424
1424
|
// variant primary/secondary/tertiary
|
|
1425
|
-
p ?
|
|
1425
|
+
p ? ce[`orc-btn--${p}`] : "",
|
|
1426
1426
|
// sm / md / lg
|
|
1427
|
-
f ?
|
|
1428
|
-
u ?
|
|
1429
|
-
D ?
|
|
1427
|
+
f ? ce["orc-btn--full"] : "",
|
|
1428
|
+
u ? ce["orc-btn--fullHeight"] : "",
|
|
1429
|
+
D ? ce["orc-btn--iconOnly"] : "",
|
|
1430
1430
|
l
|
|
1431
|
-
].filter(Boolean).join(" "),
|
|
1432
|
-
|
|
1433
|
-
!D && /* @__PURE__ */ t("span", { className:
|
|
1434
|
-
b && /* @__PURE__ */ t("span", { className:
|
|
1435
|
-
] }),
|
|
1431
|
+
].filter(Boolean).join(" "), E = /* @__PURE__ */ h(me, { children: [
|
|
1432
|
+
g && /* @__PURE__ */ t("span", { className: ce["orc-btn__icon"], children: g }),
|
|
1433
|
+
!D && /* @__PURE__ */ t("span", { className: ce["orc-btn__label"], children: e }),
|
|
1434
|
+
b && /* @__PURE__ */ t("span", { className: ce["orc-btn__icon"], children: b })
|
|
1435
|
+
] }), w = s ? !0 : void 0;
|
|
1436
1436
|
return n ? /* @__PURE__ */ t(
|
|
1437
|
-
|
|
1437
|
+
ot,
|
|
1438
1438
|
{
|
|
1439
1439
|
href: n,
|
|
1440
1440
|
target: o,
|
|
1441
1441
|
rel: i,
|
|
1442
|
-
"aria-label":
|
|
1443
|
-
"aria-disabled":
|
|
1444
|
-
tabIndex:
|
|
1442
|
+
"aria-label": d,
|
|
1443
|
+
"aria-disabled": w,
|
|
1444
|
+
tabIndex: w ? -1 : void 0,
|
|
1445
1445
|
className: I,
|
|
1446
|
-
onClick:
|
|
1447
|
-
children:
|
|
1446
|
+
onClick: w ? (B) => B.preventDefault() : a,
|
|
1447
|
+
children: E
|
|
1448
1448
|
}
|
|
1449
1449
|
) : /* @__PURE__ */ t(
|
|
1450
1450
|
"button",
|
|
1451
1451
|
{
|
|
1452
1452
|
type: r,
|
|
1453
1453
|
onClick: a,
|
|
1454
|
-
disabled: !!
|
|
1455
|
-
"aria-label":
|
|
1454
|
+
disabled: !!w,
|
|
1455
|
+
"aria-label": d,
|
|
1456
1456
|
className: I,
|
|
1457
|
-
children:
|
|
1457
|
+
children: E
|
|
1458
1458
|
}
|
|
1459
1459
|
);
|
|
1460
1460
|
}
|
|
@@ -1462,13 +1462,13 @@ const za = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", Ra = "
|
|
|
1462
1462
|
cardWrapper: za,
|
|
1463
1463
|
customButtonLabel: Ra,
|
|
1464
1464
|
customButtonDisabled: La
|
|
1465
|
-
},
|
|
1465
|
+
}, Xe = {
|
|
1466
1466
|
base: "FFFFFF",
|
|
1467
1467
|
sleeve: "FFFFFF",
|
|
1468
1468
|
number: "000000",
|
|
1469
1469
|
real: !1,
|
|
1470
1470
|
type: "short_sleeves"
|
|
1471
|
-
},
|
|
1471
|
+
}, Je = {
|
|
1472
1472
|
base: "000000",
|
|
1473
1473
|
sleeve: "000000",
|
|
1474
1474
|
number: "FFFFFF",
|
|
@@ -1479,12 +1479,12 @@ const za = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", Ra = "
|
|
|
1479
1479
|
if (e === void 0)
|
|
1480
1480
|
return null;
|
|
1481
1481
|
if (e === null)
|
|
1482
|
-
return a === "home" ?
|
|
1482
|
+
return a === "home" ? Xe : Je;
|
|
1483
1483
|
const o = (r = (i = e == null ? void 0 : e.jerseys) == null ? void 0 : i[a]) == null ? void 0 : r[n];
|
|
1484
|
-
return o || (a === "home" ?
|
|
1484
|
+
return o || (a === "home" ? Xe : Je);
|
|
1485
1485
|
};
|
|
1486
1486
|
function Fa({ event: e, liveData: a, betOffers: n, jersey: o }) {
|
|
1487
|
-
var m, p, f, u, l,
|
|
1487
|
+
var m, p, f, u, l, d, g, b, C, M, x;
|
|
1488
1488
|
const i = n == null ? void 0 : n.find(
|
|
1489
1489
|
(y) => {
|
|
1490
1490
|
var $;
|
|
@@ -1504,8 +1504,8 @@ function Fa({ event: e, liveData: a, betOffers: n, jersey: o }) {
|
|
|
1504
1504
|
{ ...r, id: -2, label: "X", odds: void 0 },
|
|
1505
1505
|
{ ...r, id: -3, label: "2", odds: void 0 }
|
|
1506
1506
|
];
|
|
1507
|
-
return /* @__PURE__ */ t("div", { className: ke.cardWrapper, children: /* @__PURE__ */
|
|
1508
|
-
/* @__PURE__ */
|
|
1507
|
+
return /* @__PURE__ */ t("div", { className: ke.cardWrapper, children: /* @__PURE__ */ h(H, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1508
|
+
/* @__PURE__ */ h(H, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
1509
1509
|
/* @__PURE__ */ t(
|
|
1510
1510
|
Wt,
|
|
1511
1511
|
{
|
|
@@ -1515,16 +1515,16 @@ function Fa({ event: e, liveData: a, betOffers: n, jersey: o }) {
|
|
|
1515
1515
|
time: ((l = a == null ? void 0 : a.matchClock) == null ? void 0 : l.minute) != null ? `${a.matchClock.minute}'` : ""
|
|
1516
1516
|
}
|
|
1517
1517
|
),
|
|
1518
|
-
/* @__PURE__ */ t("div", { style: { padding: "0 4px" }, children: /* @__PURE__ */
|
|
1518
|
+
/* @__PURE__ */ t("div", { style: { padding: "0 4px" }, children: /* @__PURE__ */ h(ue, { spacing: 1.5, columns: "1fr auto 1fr", children: [
|
|
1519
1519
|
/* @__PURE__ */ t(Ne, { name: e == null ? void 0 : e.homeName, jersey: Me(o, "home") }),
|
|
1520
|
-
/* @__PURE__ */ t(
|
|
1520
|
+
/* @__PURE__ */ t(ut, { text: ((g = (d = a == null ? void 0 : a.score) == null ? void 0 : d.home) != null ? g : 0) + ":" + ((C = (b = a == null ? void 0 : a.score) == null ? void 0 : b.away) != null ? C : 0), name: "En vivo" }),
|
|
1521
1521
|
/* @__PURE__ */ t(Ne, { name: e == null ? void 0 : e.awayName, jersey: Me(o, "away") })
|
|
1522
1522
|
] }) })
|
|
1523
1523
|
] }),
|
|
1524
|
-
/* @__PURE__ */
|
|
1525
|
-
/* @__PURE__ */ t(
|
|
1526
|
-
/* @__PURE__ */ t(
|
|
1527
|
-
|
|
1524
|
+
/* @__PURE__ */ h(H, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1525
|
+
/* @__PURE__ */ t(ue, { spacing: 1, children: ((M = i == null ? void 0 : i.outcomes) != null ? M : s).map((y, $) => /* @__PURE__ */ t(ct, { text: y.label.toUpperCase() }, $)) }),
|
|
1526
|
+
/* @__PURE__ */ t(ue, { spacing: 2, children: ((x = i == null ? void 0 : i.outcomes) != null ? x : s).map((y, $) => /* @__PURE__ */ t(Aa, { variant: "primary", disabled: y.odds == null || (i == null ? void 0 : i.cashOutStatus) == "SUSPENDED", onClick: () => {
|
|
1527
|
+
Ue("/deportes#event/live/" + e.id, y.id);
|
|
1528
1528
|
}, className: ke.customButtonDisabled, children: /* @__PURE__ */ t("span", { className: ke.customButtonLabel, children: y.odds === void 0 ? "" : (y.odds / 1e3).toFixed(2) }) }, $)) })
|
|
1529
1529
|
] })
|
|
1530
1530
|
] }) });
|
|
@@ -1542,43 +1542,43 @@ const Ua = "oraculo__OraculoEventSemanaCard-module__cardContainer___4JuDe", Va =
|
|
|
1542
1542
|
equipos: Ga
|
|
1543
1543
|
};
|
|
1544
1544
|
function ja({ event: e, jersey: a }) {
|
|
1545
|
-
var s, m, p, f, u, l,
|
|
1545
|
+
var s, m, p, f, u, l, d;
|
|
1546
1546
|
const n = ae(), o = ne();
|
|
1547
|
-
function i(
|
|
1548
|
-
const b = new Date(
|
|
1547
|
+
function i(g) {
|
|
1548
|
+
const b = new Date(g), C = b.toLocaleDateString("es-ES", { weekday: "short" }).toUpperCase(), M = b.getDate().toString().padStart(2, "0"), x = (b.getMonth() + 1).toString().padStart(2, "0");
|
|
1549
1549
|
let y = b.toLocaleTimeString("es-PE", { hour: "numeric", minute: "2-digit", hour12: !0 }).toUpperCase();
|
|
1550
|
-
return y = y.replace(/\./g, "").replace(/A\s*M/i, "AM").replace(/P\s*M/i, "PM"), `${
|
|
1550
|
+
return y = y.replace(/\./g, "").replace(/A\s*M/i, "AM").replace(/P\s*M/i, "PM"), `${C} ${M}/${x} | ${y}`;
|
|
1551
1551
|
}
|
|
1552
|
-
const r = (
|
|
1553
|
-
const
|
|
1552
|
+
const r = (g, b) => {
|
|
1553
|
+
const C = `${e.homeName} vs ${e.awayName}`, M = b ? (b / 1e3).toFixed(2) : "", x = M ? `${C} - Cuota: ${M}` : C;
|
|
1554
1554
|
n({
|
|
1555
1555
|
element: "evento_semana_outcome",
|
|
1556
|
-
label: `Landing: ${o} - OraculoEventSemanaCard - Click: ${
|
|
1556
|
+
label: `Landing: ${o} - OraculoEventSemanaCard - Click: ${x}`,
|
|
1557
1557
|
target: "/deportes#in-play",
|
|
1558
1558
|
event_type: "click",
|
|
1559
1559
|
module_id: 301,
|
|
1560
1560
|
metadata: {
|
|
1561
1561
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1562
1562
|
},
|
|
1563
|
-
tags: { section: "OraculoEventSemanaCard", outcomes:
|
|
1564
|
-
}),
|
|
1563
|
+
tags: { section: "OraculoEventSemanaCard", outcomes: x }
|
|
1564
|
+
}), Ue("/deportes#event/" + e.id, g);
|
|
1565
1565
|
};
|
|
1566
|
-
return /* @__PURE__ */
|
|
1567
|
-
/* @__PURE__ */ t(
|
|
1568
|
-
/* @__PURE__ */ t("div", { className: be.cardBackground, children: /* @__PURE__ */
|
|
1569
|
-
/* @__PURE__ */
|
|
1570
|
-
/* @__PURE__ */
|
|
1566
|
+
return /* @__PURE__ */ h("div", { className: be.cardContainer, children: [
|
|
1567
|
+
/* @__PURE__ */ t(dt, { title: (s = e == null ? void 0 : e.group) != null ? s : "" }),
|
|
1568
|
+
/* @__PURE__ */ t("div", { className: be.cardBackground, children: /* @__PURE__ */ h(H, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
1569
|
+
/* @__PURE__ */ h(H, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1570
|
+
/* @__PURE__ */ h("div", { className: be.equipos, children: [
|
|
1571
1571
|
/* @__PURE__ */ t(Ne, { name: e.homeName, size: "compact", jersey: Me(a, "home") }),
|
|
1572
|
-
/* @__PURE__ */ t(
|
|
1572
|
+
/* @__PURE__ */ t(ut, { text: "vs.", name: "", size: "small" }),
|
|
1573
1573
|
/* @__PURE__ */ t(Ne, { name: e.awayName, size: "compact", jersey: Me(a, "away") })
|
|
1574
1574
|
] }),
|
|
1575
1575
|
/* @__PURE__ */ t(Da, { text: i(e.start) })
|
|
1576
1576
|
] }),
|
|
1577
|
-
/* @__PURE__ */
|
|
1578
|
-
/* @__PURE__ */ t(
|
|
1579
|
-
/* @__PURE__ */ t("div", { className: be.jugadas, children: /* @__PURE__ */ t(
|
|
1580
|
-
r(
|
|
1581
|
-
}, children: (
|
|
1577
|
+
/* @__PURE__ */ h(H, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
1578
|
+
/* @__PURE__ */ t(ue, { spacing: 1, children: ((f = (p = (m = e == null ? void 0 : e.outcome) == null ? void 0 : m[0]) == null ? void 0 : p.outcomes) != null ? f : []).map((g, b) => /* @__PURE__ */ t(ct, { text: g.label.toUpperCase() }, b)) }),
|
|
1579
|
+
/* @__PURE__ */ t("div", { className: be.jugadas, children: /* @__PURE__ */ t(ue, { spacing: 1, children: ((d = (l = (u = e == null ? void 0 : e.outcome) == null ? void 0 : u[0]) == null ? void 0 : l.outcomes) != null ? d : []).map((g, b) => /* @__PURE__ */ t(X, { variant: "primary", fullHeight: !0, onClick: () => {
|
|
1580
|
+
r(g.id, g.odds);
|
|
1581
|
+
}, children: (g.odds / 1e3).toFixed(2) }, b)) }) })
|
|
1582
1582
|
] })
|
|
1583
1583
|
] }) })
|
|
1584
1584
|
] });
|
|
@@ -1590,7 +1590,7 @@ function Ha({
|
|
|
1590
1590
|
onViewMore: o,
|
|
1591
1591
|
className: i = ""
|
|
1592
1592
|
}) {
|
|
1593
|
-
const r = V(null), [s, m] = K({ isStart: !0, isEnd: !1 }), p = ae(), f = ne(), u =
|
|
1593
|
+
const r = V(null), [s, m] = K({ isStart: !0, isEnd: !1 }), p = ae(), f = ne(), u = se(), l = !e || e.length === 0, d = () => {
|
|
1594
1594
|
var y;
|
|
1595
1595
|
p({
|
|
1596
1596
|
element: "destacados_carousel_prev",
|
|
@@ -1603,7 +1603,7 @@ function Ha({
|
|
|
1603
1603
|
},
|
|
1604
1604
|
tags: { section: "OraculoSeccionDestacados" }
|
|
1605
1605
|
}), (y = r.current) == null || y.prev();
|
|
1606
|
-
},
|
|
1606
|
+
}, g = () => {
|
|
1607
1607
|
var y;
|
|
1608
1608
|
p({
|
|
1609
1609
|
element: "destacados_carousel_next",
|
|
@@ -1628,7 +1628,7 @@ function Ha({
|
|
|
1628
1628
|
},
|
|
1629
1629
|
tags: { section: "OraculoSeccionDestacados" }
|
|
1630
1630
|
}), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/promociones");
|
|
1631
|
-
},
|
|
1631
|
+
}, C = (y) => {
|
|
1632
1632
|
if (!y) return;
|
|
1633
1633
|
const D = `https://www.olimpo.bet/promociones/${encodeURIComponent(y)}`;
|
|
1634
1634
|
p({
|
|
@@ -1645,9 +1645,9 @@ function Ha({
|
|
|
1645
1645
|
promotion: String(y)
|
|
1646
1646
|
}
|
|
1647
1647
|
}), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(D);
|
|
1648
|
-
},
|
|
1649
|
-
return /* @__PURE__ */
|
|
1650
|
-
/* @__PURE__ */
|
|
1648
|
+
}, M = i || void 0, x = xe("(max-width:950px)");
|
|
1649
|
+
return /* @__PURE__ */ h("section", { className: M, style: { width: "100%" }, children: [
|
|
1650
|
+
/* @__PURE__ */ h(
|
|
1651
1651
|
"header",
|
|
1652
1652
|
{
|
|
1653
1653
|
style: {
|
|
@@ -1657,12 +1657,12 @@ function Ha({
|
|
|
1657
1657
|
columnGap: 12,
|
|
1658
1658
|
rowGap: 8,
|
|
1659
1659
|
// marginBottom: 16,
|
|
1660
|
-
paddingLeft:
|
|
1661
|
-
paddingRight:
|
|
1660
|
+
paddingLeft: x ? 16 : 0,
|
|
1661
|
+
paddingRight: x ? 16 : 0
|
|
1662
1662
|
},
|
|
1663
1663
|
children: [
|
|
1664
1664
|
/* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
|
|
1665
|
-
/* @__PURE__ */
|
|
1665
|
+
/* @__PURE__ */ h("div", { style: { display: "flex", gap: 8 }, children: [
|
|
1666
1666
|
/* @__PURE__ */ t(
|
|
1667
1667
|
X,
|
|
1668
1668
|
{
|
|
@@ -1670,7 +1670,7 @@ function Ha({
|
|
|
1670
1670
|
variant: "secondary",
|
|
1671
1671
|
iconOnly: !0,
|
|
1672
1672
|
leftIcon: /* @__PURE__ */ t(Ae, {}),
|
|
1673
|
-
onClick:
|
|
1673
|
+
onClick: d,
|
|
1674
1674
|
disabled: s.isStart || l
|
|
1675
1675
|
}
|
|
1676
1676
|
),
|
|
@@ -1681,7 +1681,7 @@ function Ha({
|
|
|
1681
1681
|
variant: "secondary",
|
|
1682
1682
|
iconOnly: !0,
|
|
1683
1683
|
rightIcon: /* @__PURE__ */ t(ze, {}),
|
|
1684
|
-
onClick:
|
|
1684
|
+
onClick: g,
|
|
1685
1685
|
disabled: s.isEnd || l
|
|
1686
1686
|
}
|
|
1687
1687
|
)
|
|
@@ -1698,7 +1698,7 @@ function Ha({
|
|
|
1698
1698
|
perPage: void 0,
|
|
1699
1699
|
gap: "16px",
|
|
1700
1700
|
enableHorizontalWheel: !0,
|
|
1701
|
-
showRightGradient: !
|
|
1701
|
+
showRightGradient: !x,
|
|
1702
1702
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
1703
1703
|
breakpoints: {
|
|
1704
1704
|
768: { perPage: 2, focus: "start", padding: { left: "24px", right: "24px" } },
|
|
@@ -1712,7 +1712,7 @@ function Ha({
|
|
|
1712
1712
|
marginTop: 16,
|
|
1713
1713
|
cursor: "pointer"
|
|
1714
1714
|
},
|
|
1715
|
-
onClick: () =>
|
|
1715
|
+
onClick: () => C(y.promotion),
|
|
1716
1716
|
children: /* @__PURE__ */ t(
|
|
1717
1717
|
"img",
|
|
1718
1718
|
{
|
|
@@ -1750,16 +1750,16 @@ function Ha({
|
|
|
1750
1750
|
] });
|
|
1751
1751
|
}
|
|
1752
1752
|
const $e = "__ORACULO_EXTRAS__";
|
|
1753
|
-
function
|
|
1753
|
+
function bt() {
|
|
1754
1754
|
const e = globalThis;
|
|
1755
1755
|
return e[$e] || (e[$e] = {}), e[$e];
|
|
1756
1756
|
}
|
|
1757
1757
|
function Ka(e) {
|
|
1758
|
-
|
|
1758
|
+
bt().extras = e;
|
|
1759
1759
|
}
|
|
1760
1760
|
function pe(e) {
|
|
1761
1761
|
var a;
|
|
1762
|
-
return (a =
|
|
1762
|
+
return (a = bt().extras) == null ? void 0 : a[e];
|
|
1763
1763
|
}
|
|
1764
1764
|
function Za() {
|
|
1765
1765
|
delete globalThis[$e];
|
|
@@ -1770,15 +1770,15 @@ function Xa({
|
|
|
1770
1770
|
iconUrl: n,
|
|
1771
1771
|
onCardClick: o
|
|
1772
1772
|
}) {
|
|
1773
|
-
const i = ae(), r = ne(), s =
|
|
1774
|
-
() => (e != null ? e : []).map((l,
|
|
1775
|
-
var
|
|
1773
|
+
const i = ae(), r = ne(), s = se(), m = re(
|
|
1774
|
+
() => (e != null ? e : []).map((l, d) => {
|
|
1775
|
+
var g;
|
|
1776
1776
|
return {
|
|
1777
1777
|
...l,
|
|
1778
|
-
orden: (
|
|
1779
|
-
_originalIndex:
|
|
1778
|
+
orden: (g = l.orden) != null ? g : d + 1,
|
|
1779
|
+
_originalIndex: d
|
|
1780
1780
|
};
|
|
1781
|
-
}).sort((l,
|
|
1781
|
+
}).sort((l, d) => l.orden != null && d.orden != null ? l.orden - d.orden : l._originalIndex - d._originalIndex),
|
|
1782
1782
|
[e]
|
|
1783
1783
|
), p = !e || e.length === 0, f = p ? Array.from({ length: 6 }) : m.slice(0, 6), u = (l) => {
|
|
1784
1784
|
i({
|
|
@@ -1795,12 +1795,12 @@ function Xa({
|
|
|
1795
1795
|
section: "OraculoSeccionTopJuegos"
|
|
1796
1796
|
}
|
|
1797
1797
|
});
|
|
1798
|
-
const
|
|
1799
|
-
|
|
1800
|
-
|
|
1798
|
+
const d = pe("showIframe"), g = pe("loadMachine");
|
|
1799
|
+
d == null || d(), requestAnimationFrame(() => {
|
|
1800
|
+
g == null || g(l, !1, "CASINO");
|
|
1801
1801
|
});
|
|
1802
1802
|
};
|
|
1803
|
-
return /* @__PURE__ */ t("section", { style: { width: "100%" }, children: /* @__PURE__ */
|
|
1803
|
+
return /* @__PURE__ */ t("section", { style: { width: "100%" }, children: /* @__PURE__ */ h(H, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
1804
1804
|
/* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
|
|
1805
1805
|
/* @__PURE__ */ t(
|
|
1806
1806
|
q,
|
|
@@ -1815,19 +1815,19 @@ function Xa({
|
|
|
1815
1815
|
justifyItems: "center",
|
|
1816
1816
|
width: "100%"
|
|
1817
1817
|
},
|
|
1818
|
-
children: f.map((l,
|
|
1819
|
-
var
|
|
1818
|
+
children: f.map((l, d) => {
|
|
1819
|
+
var g, b;
|
|
1820
1820
|
return /* @__PURE__ */ t(
|
|
1821
1821
|
va,
|
|
1822
1822
|
{
|
|
1823
|
-
imageUrl: p ? "" : l.background ? `https://olimpo.bet${l.background}` : `https://olimpo.bet${(
|
|
1824
|
-
orden: p ?
|
|
1823
|
+
imageUrl: p ? "" : l.background ? `https://olimpo.bet${l.background}` : `https://olimpo.bet${(g = l.logo) != null ? g : ""}`,
|
|
1824
|
+
orden: p ? d + 1 : l.orden,
|
|
1825
1825
|
loading: p,
|
|
1826
1826
|
onClick: p ? void 0 : () => {
|
|
1827
1827
|
o == null || o(l), u(l);
|
|
1828
1828
|
}
|
|
1829
1829
|
},
|
|
1830
|
-
p ? `sk-${
|
|
1830
|
+
p ? `sk-${d}` : (b = l.machine) != null ? b : `${d}`
|
|
1831
1831
|
);
|
|
1832
1832
|
})
|
|
1833
1833
|
}
|
|
@@ -1835,7 +1835,7 @@ function Xa({
|
|
|
1835
1835
|
] }) });
|
|
1836
1836
|
}
|
|
1837
1837
|
const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommendations", Ya = (e, a) => {
|
|
1838
|
-
var n, o, i, r, s, m, p, f, u, l,
|
|
1838
|
+
var n, o, i, r, s, m, p, f, u, l, d, g, b, C;
|
|
1839
1839
|
return {
|
|
1840
1840
|
orden: Number(a),
|
|
1841
1841
|
machine: String(
|
|
@@ -1850,10 +1850,10 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1850
1850
|
type: (f = e.game_type) != null ? f : "",
|
|
1851
1851
|
tags: (u = e.tags) != null ? u : "",
|
|
1852
1852
|
lobby_tag: (l = e.lobby_tag) != null ? l : null,
|
|
1853
|
-
background: (
|
|
1854
|
-
rtp: (
|
|
1853
|
+
background: (d = e.background) != null ? d : "",
|
|
1854
|
+
rtp: (g = e.rtp) != null ? g : null,
|
|
1855
1855
|
demo_allowed: (b = e.demo_allowed) != null ? b : !1,
|
|
1856
|
-
gaming_session_required: (
|
|
1856
|
+
gaming_session_required: (C = e.gaming_session_required) != null ? C : !1
|
|
1857
1857
|
};
|
|
1858
1858
|
}, Qa = (e) => e ? !Array.isArray(e) && Array.isArray(e.recommendations) ? e.recommendations.filter(Boolean).map((a) => String(a)) : [] : [], en = () => {
|
|
1859
1859
|
var a, n, o;
|
|
@@ -1874,9 +1874,9 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1874
1874
|
...r,
|
|
1875
1875
|
recommendations: Array.isArray(r == null ? void 0 : r.recommendations) ? r.recommendations.slice(0, 49) : []
|
|
1876
1876
|
};
|
|
1877
|
-
},
|
|
1877
|
+
}, Ve = (e, a = !1, n = "Casino") => {
|
|
1878
1878
|
const [o, i] = K([]), [r, s] = K(!1);
|
|
1879
|
-
return
|
|
1879
|
+
return Q(() => {
|
|
1880
1880
|
let m = !1;
|
|
1881
1881
|
return (async () => {
|
|
1882
1882
|
if (!a) {
|
|
@@ -1891,21 +1891,21 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1891
1891
|
return;
|
|
1892
1892
|
}
|
|
1893
1893
|
const l = await Promise.allSettled(
|
|
1894
|
-
u.map(async (
|
|
1895
|
-
const
|
|
1896
|
-
`https://api.mktolimpo.com/api/machine/${
|
|
1894
|
+
u.map(async (g, b) => {
|
|
1895
|
+
const C = await fetch(
|
|
1896
|
+
`https://api.mktolimpo.com/api/machine/${g}`
|
|
1897
1897
|
);
|
|
1898
|
-
if (!
|
|
1899
|
-
throw new Error(`No se pudo obtener machine ${
|
|
1900
|
-
const
|
|
1901
|
-
return Ya(
|
|
1898
|
+
if (!C.ok)
|
|
1899
|
+
throw new Error(`No se pudo obtener machine ${g}`);
|
|
1900
|
+
const M = await C.json();
|
|
1901
|
+
return Ya(M, b);
|
|
1902
1902
|
})
|
|
1903
1903
|
);
|
|
1904
1904
|
if (m) return;
|
|
1905
|
-
const
|
|
1906
|
-
(
|
|
1907
|
-
).map((
|
|
1908
|
-
i(
|
|
1905
|
+
const d = l.filter(
|
|
1906
|
+
(g) => g.status === "fulfilled"
|
|
1907
|
+
).map((g) => g.value);
|
|
1908
|
+
i(d);
|
|
1909
1909
|
} catch (f) {
|
|
1910
1910
|
console.error(`[usePersonalizeGameItems:${n}] error:`, f), m || i([]);
|
|
1911
1911
|
} finally {
|
|
@@ -1918,7 +1918,7 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1918
1918
|
resolvedItems: o,
|
|
1919
1919
|
loading: r
|
|
1920
1920
|
};
|
|
1921
|
-
}, an = (e, a = !1) =>
|
|
1921
|
+
}, an = (e, a = !1) => Ve(e, a, "Casino"), nn = (e, a = !1) => Ve(e, a, "Deportes Virtuales"), on = (e, a = !1) => Ve(e, a, "Casino en vivo"), rn = (e, a) => {
|
|
1922
1922
|
var n, o;
|
|
1923
1923
|
return (o = (n = e.orden) != null ? n : e.machine) != null ? o : a;
|
|
1924
1924
|
}, sn = (e) => {
|
|
@@ -1942,44 +1942,44 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1942
1942
|
className: m,
|
|
1943
1943
|
isPersonalize: p = !1
|
|
1944
1944
|
}) => {
|
|
1945
|
-
const f = ae(), u = ne(), l =
|
|
1945
|
+
const f = ae(), u = ne(), l = se(), d = sn(p), { resolvedItems: g } = on(
|
|
1946
1946
|
e,
|
|
1947
|
-
|
|
1948
|
-
), b =
|
|
1947
|
+
d
|
|
1948
|
+
), b = d ? g : Array.isArray(e) ? e : [], C = (x) => {
|
|
1949
1949
|
f({
|
|
1950
1950
|
element: "live_casino_card",
|
|
1951
|
-
label: `${u} - OraculoSeccionCasinoEnVivo${
|
|
1952
|
-
target: String(
|
|
1951
|
+
label: `${u} - OraculoSeccionCasinoEnVivo${d ? " - personalize" : ""} - Open game: ${String(x.machine || "unknown")}`,
|
|
1952
|
+
target: String(x.machine || "unknown"),
|
|
1953
1953
|
event_type: "click",
|
|
1954
1954
|
module_id: l,
|
|
1955
1955
|
metadata: {
|
|
1956
1956
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1957
1957
|
},
|
|
1958
1958
|
tags: {
|
|
1959
|
-
game_name: String(
|
|
1960
|
-
provider:
|
|
1959
|
+
game_name: String(x.machine || "unknown"),
|
|
1960
|
+
provider: x.provider || "unknown",
|
|
1961
1961
|
section: "OraculoSeccionCasinoEnVivo"
|
|
1962
1962
|
}
|
|
1963
1963
|
});
|
|
1964
1964
|
const y = pe("showIframe"), $ = pe("loadMachine");
|
|
1965
1965
|
if (!$) {
|
|
1966
1966
|
if (i) {
|
|
1967
|
-
i(
|
|
1967
|
+
i(x);
|
|
1968
1968
|
return;
|
|
1969
1969
|
}
|
|
1970
1970
|
console.warn(
|
|
1971
1971
|
"[OraculoSeccionCasinoEnVivo] No existe loadMachine en extras ni onCardClick. No se puede abrir el juego.",
|
|
1972
|
-
{ machine:
|
|
1972
|
+
{ machine: x == null ? void 0 : x.machine, provider: x == null ? void 0 : x.provider }
|
|
1973
1973
|
);
|
|
1974
1974
|
return;
|
|
1975
1975
|
}
|
|
1976
1976
|
y == null || y(), typeof window != "undefined" && window.scrollTo({ top: 0, behavior: "smooth" }), requestAnimationFrame(() => {
|
|
1977
|
-
$ == null || $(
|
|
1977
|
+
$ == null || $(x, !1, "casino_en_vivo");
|
|
1978
1978
|
});
|
|
1979
|
-
},
|
|
1979
|
+
}, M = () => {
|
|
1980
1980
|
f({
|
|
1981
1981
|
element: "casino_en_vivo_view_more",
|
|
1982
|
-
label: `${u} - OraculoSeccionCasinoEnVivo${
|
|
1982
|
+
label: `${u} - OraculoSeccionCasinoEnVivo${d ? " - personalize" : ""} - Ver más`,
|
|
1983
1983
|
target: "https://www.olimpo.bet/casino-en-vivo",
|
|
1984
1984
|
event_type: "click",
|
|
1985
1985
|
module_id: l,
|
|
@@ -1989,7 +1989,7 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1989
1989
|
tags: { section: "OraculoSeccionCasinoEnVivo" }
|
|
1990
1990
|
}), typeof globalThis != "undefined" && globalThis.location && (s ? s() : globalThis.location.assign("https://www.olimpo.bet/casino-en-vivo"));
|
|
1991
1991
|
};
|
|
1992
|
-
return /* @__PURE__ */
|
|
1992
|
+
return /* @__PURE__ */ h(
|
|
1993
1993
|
q,
|
|
1994
1994
|
{
|
|
1995
1995
|
className: m,
|
|
@@ -2027,7 +2027,7 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2027
2027
|
}
|
|
2028
2028
|
}
|
|
2029
2029
|
),
|
|
2030
|
-
/* @__PURE__ */
|
|
2030
|
+
/* @__PURE__ */ h(
|
|
2031
2031
|
q,
|
|
2032
2032
|
{
|
|
2033
2033
|
sx: {
|
|
@@ -2045,9 +2045,9 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2045
2045
|
textAlign: { xs: "center", md: "left" }
|
|
2046
2046
|
},
|
|
2047
2047
|
children: [
|
|
2048
|
-
/* @__PURE__ */
|
|
2048
|
+
/* @__PURE__ */ h(H, { spacing: 3, sx: { maxWidth: { md: 280 } }, children: [
|
|
2049
2049
|
/* @__PURE__ */ t(
|
|
2050
|
-
|
|
2050
|
+
de,
|
|
2051
2051
|
{
|
|
2052
2052
|
variant: "h4",
|
|
2053
2053
|
sx: {
|
|
@@ -2060,7 +2060,7 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2060
2060
|
}
|
|
2061
2061
|
),
|
|
2062
2062
|
/* @__PURE__ */ t(
|
|
2063
|
-
|
|
2063
|
+
de,
|
|
2064
2064
|
{
|
|
2065
2065
|
sx: {
|
|
2066
2066
|
fontSize: { xs: 14, md: 18 },
|
|
@@ -2076,7 +2076,7 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2076
2076
|
{
|
|
2077
2077
|
variant: "primary",
|
|
2078
2078
|
size: "md",
|
|
2079
|
-
onClick:
|
|
2079
|
+
onClick: M,
|
|
2080
2080
|
children: "Ver más"
|
|
2081
2081
|
}
|
|
2082
2082
|
) })
|
|
@@ -2092,18 +2092,18 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2092
2092
|
py: { xs: 3, md: 0 },
|
|
2093
2093
|
alignItems: "center"
|
|
2094
2094
|
},
|
|
2095
|
-
children: (b != null ? b : []).slice(0, 3).map((
|
|
2095
|
+
children: (b != null ? b : []).slice(0, 3).map((x, y) => {
|
|
2096
2096
|
var $;
|
|
2097
2097
|
return /* @__PURE__ */ t(
|
|
2098
2098
|
_a,
|
|
2099
2099
|
{
|
|
2100
|
-
logo: `https://olimpo.bet${
|
|
2101
|
-
provider:
|
|
2102
|
-
providerName:
|
|
2103
|
-
machine:
|
|
2104
|
-
onClick: () =>
|
|
2100
|
+
logo: `https://olimpo.bet${x.background ? x.background : ($ = x.logo) != null ? $ : ""}`,
|
|
2101
|
+
provider: x.provider,
|
|
2102
|
+
providerName: x.web_name,
|
|
2103
|
+
machine: x.machine,
|
|
2104
|
+
onClick: () => C(x)
|
|
2105
2105
|
},
|
|
2106
|
-
rn(
|
|
2106
|
+
rn(x, y)
|
|
2107
2107
|
);
|
|
2108
2108
|
})
|
|
2109
2109
|
}
|
|
@@ -2113,7 +2113,7 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2113
2113
|
{
|
|
2114
2114
|
variant: "primary",
|
|
2115
2115
|
size: "lg",
|
|
2116
|
-
onClick:
|
|
2116
|
+
onClick: M,
|
|
2117
2117
|
children: "Ver más"
|
|
2118
2118
|
}
|
|
2119
2119
|
) })
|
|
@@ -2133,14 +2133,14 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2133
2133
|
return e.value.toLowerCase() === "true";
|
|
2134
2134
|
}
|
|
2135
2135
|
return !1;
|
|
2136
|
-
},
|
|
2136
|
+
}, vt = (e, a) => {
|
|
2137
2137
|
var n, o;
|
|
2138
2138
|
return (o = (n = e.orden) != null ? n : e.machine) != null ? o : a;
|
|
2139
2139
|
}, dn = (e, a = !0, n = 1) => {
|
|
2140
2140
|
const o = e.map((s, m) => {
|
|
2141
2141
|
var p;
|
|
2142
2142
|
return {
|
|
2143
|
-
id:
|
|
2143
|
+
id: vt(s, m),
|
|
2144
2144
|
imageUrl: (p = s.logo) != null ? p : "",
|
|
2145
2145
|
...s.background ? { background: s.background } : {}
|
|
2146
2146
|
};
|
|
@@ -2175,10 +2175,10 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2175
2175
|
gridSize: s = 1,
|
|
2176
2176
|
isPersonalize: m = !1
|
|
2177
2177
|
}) => {
|
|
2178
|
-
const p = ae(), f = ne(), u =
|
|
2178
|
+
const p = ae(), f = ne(), u = se(), l = V(null), [d, g] = K({ isStart: !0, isEnd: !1 }), b = cn(m), { resolvedItems: C, loading: M } = an(
|
|
2179
2179
|
e,
|
|
2180
2180
|
b
|
|
2181
|
-
),
|
|
2181
|
+
), x = b ? C : Array.isArray(e) ? e : [], y = () => {
|
|
2182
2182
|
var T;
|
|
2183
2183
|
p({
|
|
2184
2184
|
element: "casino_prev",
|
|
@@ -2221,14 +2221,14 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2221
2221
|
}
|
|
2222
2222
|
typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/casino");
|
|
2223
2223
|
}, I = (T = !0, _ = 4) => {
|
|
2224
|
-
const
|
|
2225
|
-
id: `sk-${
|
|
2224
|
+
const O = (A) => Array.from({ length: A }, (R, v) => ({
|
|
2225
|
+
id: `sk-${A}-${v}`,
|
|
2226
2226
|
imageUrl: ""
|
|
2227
2227
|
})), L = [];
|
|
2228
|
-
return T && L.push({ id: "mosaic-loading", kind: "mosaic", items:
|
|
2229
|
-
},
|
|
2230
|
-
return /* @__PURE__ */ t("section", { children: /* @__PURE__ */
|
|
2231
|
-
/* @__PURE__ */
|
|
2228
|
+
return T && L.push({ id: "mosaic-loading", kind: "mosaic", items: O(5) }), L.push({ id: "grid-loading", kind: "grid", items: O(_) }), L;
|
|
2229
|
+
}, E = b ? M : !Array.isArray(e) || e.length === 0, w = De("(max-width:950px)"), B = E ? I(r, s) : dn(x, r, s);
|
|
2230
|
+
return /* @__PURE__ */ t("section", { children: /* @__PURE__ */ h(H, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
2231
|
+
/* @__PURE__ */ h(
|
|
2232
2232
|
q,
|
|
2233
2233
|
{
|
|
2234
2234
|
sx: {
|
|
@@ -2244,16 +2244,16 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2244
2244
|
},
|
|
2245
2245
|
children: [
|
|
2246
2246
|
/* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
|
|
2247
|
-
/* @__PURE__ */
|
|
2247
|
+
/* @__PURE__ */ h(q, { sx: { display: "flex", gap: 1, justifyContent: "flex-end" }, children: [
|
|
2248
2248
|
/* @__PURE__ */ t(
|
|
2249
2249
|
X,
|
|
2250
2250
|
{
|
|
2251
2251
|
ariaLabel: "Anterior",
|
|
2252
2252
|
variant: "secondary",
|
|
2253
2253
|
iconOnly: !0,
|
|
2254
|
-
leftIcon: /* @__PURE__ */ t(
|
|
2254
|
+
leftIcon: /* @__PURE__ */ t(rt, {}),
|
|
2255
2255
|
onClick: y,
|
|
2256
|
-
disabled:
|
|
2256
|
+
disabled: d.isStart
|
|
2257
2257
|
}
|
|
2258
2258
|
),
|
|
2259
2259
|
/* @__PURE__ */ t(
|
|
@@ -2262,9 +2262,9 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2262
2262
|
ariaLabel: "Siguiente",
|
|
2263
2263
|
variant: "secondary",
|
|
2264
2264
|
iconOnly: !0,
|
|
2265
|
-
rightIcon: /* @__PURE__ */ t(
|
|
2265
|
+
rightIcon: /* @__PURE__ */ t(st, {}),
|
|
2266
2266
|
onClick: $,
|
|
2267
|
-
disabled:
|
|
2267
|
+
disabled: d.isEnd
|
|
2268
2268
|
}
|
|
2269
2269
|
)
|
|
2270
2270
|
] }),
|
|
@@ -2276,12 +2276,12 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2276
2276
|
he,
|
|
2277
2277
|
{
|
|
2278
2278
|
ref: l,
|
|
2279
|
-
items:
|
|
2279
|
+
items: B,
|
|
2280
2280
|
perPage: void 0,
|
|
2281
2281
|
gap: "16px",
|
|
2282
2282
|
enableHorizontalWheel: !0,
|
|
2283
2283
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
2284
|
-
showRightGradient: !
|
|
2284
|
+
showRightGradient: !w,
|
|
2285
2285
|
breakpoints: {
|
|
2286
2286
|
400: {
|
|
2287
2287
|
gap: "4px",
|
|
@@ -2300,37 +2300,37 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2300
2300
|
}
|
|
2301
2301
|
},
|
|
2302
2302
|
renderItem: (T) => /* @__PURE__ */ t("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ t(
|
|
2303
|
-
|
|
2303
|
+
mt,
|
|
2304
2304
|
{
|
|
2305
2305
|
items: T.items,
|
|
2306
2306
|
layout: T.kind === "mosaic" ? "mosaic" : "grid",
|
|
2307
|
-
loading:
|
|
2307
|
+
loading: E,
|
|
2308
2308
|
onClick: (_) => {
|
|
2309
|
-
if (
|
|
2310
|
-
const
|
|
2311
|
-
(R, v) => String(
|
|
2309
|
+
if (E) return;
|
|
2310
|
+
const O = x.find(
|
|
2311
|
+
(R, v) => String(vt(R, v)) === String(_.id)
|
|
2312
2312
|
);
|
|
2313
|
-
if (!
|
|
2314
|
-
o == null || o(
|
|
2313
|
+
if (!O) return;
|
|
2314
|
+
o == null || o(O), p({
|
|
2315
2315
|
element: "casino_game_card",
|
|
2316
|
-
label: `${f} - OraculoSeccionCasino ${m ? " - personalize" : ""} - Game: ${String(
|
|
2317
|
-
target: String(
|
|
2316
|
+
label: `${f} - OraculoSeccionCasino ${m ? " - personalize" : ""} - Game: ${String(O.machine || "unknown")}`,
|
|
2317
|
+
target: String(O.machine || "unknown"),
|
|
2318
2318
|
event_type: "click",
|
|
2319
2319
|
module_id: u,
|
|
2320
2320
|
metadata: {
|
|
2321
2321
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2322
2322
|
},
|
|
2323
2323
|
tags: {
|
|
2324
|
-
game_name: String(
|
|
2324
|
+
game_name: String(O.machine || "unknown"),
|
|
2325
2325
|
section: a || "Casino"
|
|
2326
2326
|
}
|
|
2327
2327
|
});
|
|
2328
|
-
const L = pe("showIframe"),
|
|
2329
|
-
L == null || L(),
|
|
2328
|
+
const L = pe("showIframe"), A = pe("loadMachine");
|
|
2329
|
+
L == null || L(), A == null || A(O, !1, "CASINO");
|
|
2330
2330
|
}
|
|
2331
2331
|
}
|
|
2332
2332
|
) }),
|
|
2333
|
-
onMove: ({ isStart: T, isEnd: _ }) =>
|
|
2333
|
+
onMove: ({ isStart: T, isEnd: _ }) => g({ isStart: T, isEnd: _ })
|
|
2334
2334
|
}
|
|
2335
2335
|
)
|
|
2336
2336
|
] }) });
|
|
@@ -2344,14 +2344,14 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2344
2344
|
return e.value.toLowerCase() === "true";
|
|
2345
2345
|
}
|
|
2346
2346
|
return !1;
|
|
2347
|
-
},
|
|
2347
|
+
}, _t = (e, a) => {
|
|
2348
2348
|
var n, o;
|
|
2349
2349
|
return (o = (n = e.orden) != null ? n : e.machine) != null ? o : a;
|
|
2350
2350
|
}, pn = (e, a = !0, n = 1) => {
|
|
2351
2351
|
const o = e.map((s, m) => {
|
|
2352
2352
|
var p;
|
|
2353
2353
|
return {
|
|
2354
|
-
id:
|
|
2354
|
+
id: _t(s, m),
|
|
2355
2355
|
imageUrl: (p = s.logo) != null ? p : "",
|
|
2356
2356
|
...s.background ? { background: s.background } : {}
|
|
2357
2357
|
};
|
|
@@ -2400,42 +2400,42 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2400
2400
|
gridSize: s = 1,
|
|
2401
2401
|
isPersonalize: m = !1
|
|
2402
2402
|
}) => {
|
|
2403
|
-
const p = V(null), [f, u] = K({ isStart: !0, isEnd: !1 }), l = ae(),
|
|
2403
|
+
const p = V(null), [f, u] = K({ isStart: !0, isEnd: !1 }), l = ae(), d = ne(), g = se(), b = mn(m), { resolvedItems: C, loading: M } = nn(
|
|
2404
2404
|
e,
|
|
2405
2405
|
b
|
|
2406
|
-
),
|
|
2407
|
-
var
|
|
2406
|
+
), x = b ? C : Array.isArray(e) ? e : [], y = () => {
|
|
2407
|
+
var B;
|
|
2408
2408
|
l({
|
|
2409
2409
|
element: "virtuales_prev",
|
|
2410
|
-
label: `${
|
|
2410
|
+
label: `${d} - OraculoSeccionVirtuales${b ? " - personalize" : ""} - Anterior`,
|
|
2411
2411
|
target: "prev",
|
|
2412
2412
|
event_type: "click",
|
|
2413
|
-
module_id:
|
|
2413
|
+
module_id: g,
|
|
2414
2414
|
metadata: {
|
|
2415
2415
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2416
2416
|
},
|
|
2417
2417
|
tags: { section: "OraculoSeccionVirtuales" }
|
|
2418
|
-
}), (
|
|
2418
|
+
}), (B = p.current) == null || B.prev();
|
|
2419
2419
|
}, $ = () => {
|
|
2420
|
-
var
|
|
2420
|
+
var B;
|
|
2421
2421
|
l({
|
|
2422
2422
|
element: "virtuales_next",
|
|
2423
|
-
label: `${
|
|
2423
|
+
label: `${d} - OraculoSeccionVirtuales${b ? " - personalize" : ""} - Siguiente`,
|
|
2424
2424
|
target: "next",
|
|
2425
2425
|
event_type: "click",
|
|
2426
|
-
module_id:
|
|
2426
|
+
module_id: g,
|
|
2427
2427
|
metadata: {
|
|
2428
2428
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2429
2429
|
},
|
|
2430
2430
|
tags: { section: "OraculoSeccionVirtuales" }
|
|
2431
|
-
}), (
|
|
2431
|
+
}), (B = p.current) == null || B.next();
|
|
2432
2432
|
}, D = () => {
|
|
2433
2433
|
if (l({
|
|
2434
2434
|
element: "virtuales_view_more",
|
|
2435
|
-
label: `${
|
|
2435
|
+
label: `${d} - OraculoSeccionVirtuales${b ? " - personalize" : ""} - Ver más`,
|
|
2436
2436
|
target: "https://www.olimpo.bet/juegos-virtuales",
|
|
2437
2437
|
event_type: "click",
|
|
2438
|
-
module_id:
|
|
2438
|
+
module_id: g,
|
|
2439
2439
|
metadata: {
|
|
2440
2440
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2441
2441
|
},
|
|
@@ -2445,9 +2445,9 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2445
2445
|
return;
|
|
2446
2446
|
}
|
|
2447
2447
|
typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/juegos-virtuales");
|
|
2448
|
-
}, I = b ?
|
|
2449
|
-
return /* @__PURE__ */ t("section", { children: /* @__PURE__ */
|
|
2450
|
-
/* @__PURE__ */
|
|
2448
|
+
}, I = b ? M : !Array.isArray(e) || e.length === 0, E = xe("(max-width:950px)"), w = I ? fn(r, s) : pn(x, r, s);
|
|
2449
|
+
return /* @__PURE__ */ t("section", { children: /* @__PURE__ */ h(H, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
2450
|
+
/* @__PURE__ */ h(
|
|
2451
2451
|
q,
|
|
2452
2452
|
{
|
|
2453
2453
|
sx: {
|
|
@@ -2463,14 +2463,14 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2463
2463
|
},
|
|
2464
2464
|
children: [
|
|
2465
2465
|
/* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
|
|
2466
|
-
/* @__PURE__ */
|
|
2466
|
+
/* @__PURE__ */ h(q, { sx: { display: "flex", gap: 1, justifyContent: "flex-end" }, children: [
|
|
2467
2467
|
/* @__PURE__ */ t(
|
|
2468
2468
|
X,
|
|
2469
2469
|
{
|
|
2470
2470
|
ariaLabel: "Anterior",
|
|
2471
2471
|
variant: "secondary",
|
|
2472
2472
|
iconOnly: !0,
|
|
2473
|
-
leftIcon: /* @__PURE__ */ t(
|
|
2473
|
+
leftIcon: /* @__PURE__ */ t(rt, {}),
|
|
2474
2474
|
onClick: y,
|
|
2475
2475
|
disabled: f.isStart
|
|
2476
2476
|
}
|
|
@@ -2481,7 +2481,7 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2481
2481
|
ariaLabel: "Siguiente",
|
|
2482
2482
|
variant: "secondary",
|
|
2483
2483
|
iconOnly: !0,
|
|
2484
|
-
rightIcon: /* @__PURE__ */ t(
|
|
2484
|
+
rightIcon: /* @__PURE__ */ t(st, {}),
|
|
2485
2485
|
onClick: $,
|
|
2486
2486
|
disabled: f.isEnd
|
|
2487
2487
|
}
|
|
@@ -2495,7 +2495,7 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2495
2495
|
he,
|
|
2496
2496
|
{
|
|
2497
2497
|
ref: p,
|
|
2498
|
-
items:
|
|
2498
|
+
items: w,
|
|
2499
2499
|
perPage: void 0,
|
|
2500
2500
|
gap: "16px",
|
|
2501
2501
|
breakpoints: {
|
|
@@ -2516,18 +2516,18 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2516
2516
|
}
|
|
2517
2517
|
},
|
|
2518
2518
|
enableHorizontalWheel: !0,
|
|
2519
|
-
showRightGradient: !
|
|
2519
|
+
showRightGradient: !E,
|
|
2520
2520
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
2521
|
-
renderItem: (
|
|
2522
|
-
|
|
2521
|
+
renderItem: (B) => /* @__PURE__ */ t("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ t(
|
|
2522
|
+
mt,
|
|
2523
2523
|
{
|
|
2524
|
-
items:
|
|
2525
|
-
layout:
|
|
2524
|
+
items: B.items,
|
|
2525
|
+
layout: B.kind === "mosaic" ? "mosaic" : "grid",
|
|
2526
2526
|
loading: I,
|
|
2527
2527
|
onClick: (T) => {
|
|
2528
2528
|
if (I) return;
|
|
2529
|
-
const _ =
|
|
2530
|
-
(
|
|
2529
|
+
const _ = x.find(
|
|
2530
|
+
(A, R) => String(_t(A, R)) === String(T.id)
|
|
2531
2531
|
);
|
|
2532
2532
|
if (!_) {
|
|
2533
2533
|
console.warn(
|
|
@@ -2538,10 +2538,10 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2538
2538
|
}
|
|
2539
2539
|
o == null || o(_), l({
|
|
2540
2540
|
element: "virtuales_game_card",
|
|
2541
|
-
label: `${
|
|
2541
|
+
label: `${d} - OraculoSeccionVirtuales${b ? " - personalize" : ""} - Game: ${String(_.machine || "unknown")}`,
|
|
2542
2542
|
target: String(_.machine || "unknown"),
|
|
2543
2543
|
event_type: "click",
|
|
2544
|
-
module_id:
|
|
2544
|
+
module_id: g,
|
|
2545
2545
|
metadata: {
|
|
2546
2546
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2547
2547
|
},
|
|
@@ -2550,8 +2550,8 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2550
2550
|
section: a || "Virtuales"
|
|
2551
2551
|
}
|
|
2552
2552
|
});
|
|
2553
|
-
const
|
|
2554
|
-
|
|
2553
|
+
const O = pe("showIframe"), L = pe("loadMachine");
|
|
2554
|
+
O == null || O(), L == null || L(
|
|
2555
2555
|
_,
|
|
2556
2556
|
!1,
|
|
2557
2557
|
b ? "VIRTUALES_PERSONALIZE" : "VIRTUALES"
|
|
@@ -2559,7 +2559,7 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2559
2559
|
}
|
|
2560
2560
|
}
|
|
2561
2561
|
) }),
|
|
2562
|
-
onMove: ({ isStart:
|
|
2562
|
+
onMove: ({ isStart: B, isEnd: T }) => u({ isStart: B, isEnd: T })
|
|
2563
2563
|
}
|
|
2564
2564
|
)
|
|
2565
2565
|
] }) });
|
|
@@ -2577,15 +2577,15 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2577
2577
|
backgroundRepeat: "no-repeat",
|
|
2578
2578
|
backgroundPosition: "center",
|
|
2579
2579
|
backgroundSize: "cover"
|
|
2580
|
-
}),
|
|
2580
|
+
}), Ye = {
|
|
2581
2581
|
textAlign: "center",
|
|
2582
2582
|
lineHeight: 1.1,
|
|
2583
2583
|
mb: 1.5
|
|
2584
|
-
},
|
|
2584
|
+
}, Qe = {
|
|
2585
2585
|
display: "inline-block",
|
|
2586
2586
|
fontWeight: 600,
|
|
2587
2587
|
fontSize: 24
|
|
2588
|
-
},
|
|
2588
|
+
}, et = {
|
|
2589
2589
|
display: "inline-block",
|
|
2590
2590
|
fontSize: 24,
|
|
2591
2591
|
lineHeight: 1.1,
|
|
@@ -2601,33 +2601,33 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2601
2601
|
items: n,
|
|
2602
2602
|
backgroundImageUrl: o
|
|
2603
2603
|
}) => {
|
|
2604
|
-
const i = ae(), r = ne(), s = xe("(max-width: 767px)"), m = n.length > 1, p = V(null), f = V(null), u = V(!1), l = V(!1), [
|
|
2605
|
-
|
|
2604
|
+
const i = ae(), r = ne(), s = xe("(max-width: 767px)"), m = n.length > 1, p = V(null), f = V(null), u = V(!1), l = V(!1), [d, g] = K(0), [b, C] = K({ isStart: !0, isEnd: !1 });
|
|
2605
|
+
Q(() => {
|
|
2606
2606
|
const _ = setTimeout(() => {
|
|
2607
2607
|
u.current = !0;
|
|
2608
2608
|
}, 500);
|
|
2609
2609
|
return () => clearTimeout(_);
|
|
2610
2610
|
}, []);
|
|
2611
|
-
const
|
|
2612
|
-
|
|
2613
|
-
|
|
2611
|
+
const M = V(b);
|
|
2612
|
+
Q(() => {
|
|
2613
|
+
M.current = b;
|
|
2614
2614
|
}, [b]);
|
|
2615
|
-
const
|
|
2615
|
+
const x = V(!1), y = V(null), $ = n == null ? void 0 : n[d], D = re(
|
|
2616
2616
|
() => {
|
|
2617
|
-
var _,
|
|
2618
|
-
return (
|
|
2617
|
+
var _, O;
|
|
2618
|
+
return (O = (_ = $ == null ? void 0 : $.backgroundImageUrl) != null ? _ : o) != null ? O : "";
|
|
2619
2619
|
},
|
|
2620
2620
|
[$, o]
|
|
2621
|
-
), I = hn(D),
|
|
2621
|
+
), I = hn(D), E = !n || n.length === 0, w = (_, O) => {
|
|
2622
2622
|
i({
|
|
2623
2623
|
element: "welcome_banner_button",
|
|
2624
|
-
label: `OraculoSeccionBonoBienvenida - Banner button click: ${_.title || "OraculoSeccionBonoBienvenida - Banner " + (
|
|
2624
|
+
label: `OraculoSeccionBonoBienvenida - Banner button click: ${_.title || "OraculoSeccionBonoBienvenida - Banner " + (O + 1)}`,
|
|
2625
2625
|
target: "action",
|
|
2626
2626
|
event_type: "click",
|
|
2627
2627
|
module_id: 301,
|
|
2628
2628
|
metadata: {
|
|
2629
2629
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
2630
|
-
banner_position:
|
|
2630
|
+
banner_position: O + 1,
|
|
2631
2631
|
banner_total: (n == null ? void 0 : n.length) || 0
|
|
2632
2632
|
},
|
|
2633
2633
|
tags: {
|
|
@@ -2635,16 +2635,16 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2635
2635
|
button_text: _.buttonText || "no_text"
|
|
2636
2636
|
}
|
|
2637
2637
|
}), _.onButtonClick && _.onButtonClick();
|
|
2638
|
-
},
|
|
2638
|
+
}, B = (_) => {
|
|
2639
2639
|
if (!u.current) return;
|
|
2640
2640
|
if (l.current) {
|
|
2641
2641
|
l.current = !1;
|
|
2642
2642
|
return;
|
|
2643
2643
|
}
|
|
2644
|
-
const
|
|
2644
|
+
const O = n == null ? void 0 : n[_];
|
|
2645
2645
|
i({
|
|
2646
2646
|
element: "welcome_banner_carousel",
|
|
2647
|
-
label: `Landing: ${r} - OraculoSeccionBonoBienvenida - Banner view: ${(
|
|
2647
|
+
label: `Landing: ${r} - OraculoSeccionBonoBienvenida - Banner view: ${(O == null ? void 0 : O.title) || "OraculoSeccionBonoBienvenida - Banner " + (_ + 1)}`,
|
|
2648
2648
|
target: "no_url",
|
|
2649
2649
|
event_type: "view",
|
|
2650
2650
|
module_id: 301,
|
|
@@ -2656,31 +2656,31 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2656
2656
|
},
|
|
2657
2657
|
tags: {
|
|
2658
2658
|
banner_position: String(_ + 1),
|
|
2659
|
-
banner_title: (
|
|
2659
|
+
banner_title: (O == null ? void 0 : O.title) || "no_title"
|
|
2660
2660
|
}
|
|
2661
2661
|
});
|
|
2662
2662
|
};
|
|
2663
|
-
|
|
2663
|
+
Q(() => {
|
|
2664
2664
|
const _ = f.current;
|
|
2665
2665
|
if (!_) return;
|
|
2666
|
-
const
|
|
2666
|
+
const O = 6, L = 380, A = (R) => {
|
|
2667
2667
|
var W, G;
|
|
2668
|
-
if (
|
|
2668
|
+
if (E || R.ctrlKey || x.current) return;
|
|
2669
2669
|
const v = R.deltaX, F = R.deltaY;
|
|
2670
|
-
if (Math.abs(v) <= Math.abs(F) || Math.abs(v) <
|
|
2670
|
+
if (Math.abs(v) <= Math.abs(F) || Math.abs(v) < O) return;
|
|
2671
2671
|
const U = v > 0;
|
|
2672
|
-
U &&
|
|
2673
|
-
|
|
2672
|
+
U && M.current.isEnd || !U && M.current.isStart || (R.preventDefault(), x.current = !0, U ? (W = p.current) == null || W.next() : (G = p.current) == null || G.prev(), y.current && window.clearTimeout(y.current), y.current = window.setTimeout(() => {
|
|
2673
|
+
x.current = !1;
|
|
2674
2674
|
}, L));
|
|
2675
2675
|
};
|
|
2676
|
-
return _.addEventListener("wheel",
|
|
2677
|
-
_.removeEventListener("wheel",
|
|
2676
|
+
return _.addEventListener("wheel", A, { passive: !1 }), () => {
|
|
2677
|
+
_.removeEventListener("wheel", A), y.current && window.clearTimeout(y.current);
|
|
2678
2678
|
};
|
|
2679
|
-
}, [
|
|
2680
|
-
const T = (_,
|
|
2679
|
+
}, [E]);
|
|
2680
|
+
const T = (_, O, L) => {
|
|
2681
2681
|
var v, F;
|
|
2682
|
-
const
|
|
2683
|
-
return
|
|
2682
|
+
const A = (v = _.headline) != null ? v : e, R = (F = _.headline2) != null ? F : a;
|
|
2683
|
+
return O ? /* @__PURE__ */ h(
|
|
2684
2684
|
q,
|
|
2685
2685
|
{
|
|
2686
2686
|
sx: {
|
|
@@ -2693,7 +2693,7 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2693
2693
|
columnGap: 6
|
|
2694
2694
|
},
|
|
2695
2695
|
children: [
|
|
2696
|
-
(
|
|
2696
|
+
(A || R) && /* @__PURE__ */ t(
|
|
2697
2697
|
q,
|
|
2698
2698
|
{
|
|
2699
2699
|
sx: {
|
|
@@ -2702,44 +2702,44 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2702
2702
|
justifyContent: "flex-start",
|
|
2703
2703
|
minHeight: "100%"
|
|
2704
2704
|
},
|
|
2705
|
-
children: /* @__PURE__ */
|
|
2706
|
-
|
|
2707
|
-
R && /* @__PURE__ */
|
|
2705
|
+
children: /* @__PURE__ */ h(q, { sx: { ...Ye, textAlign: "left", mb: 0 }, children: [
|
|
2706
|
+
A && /* @__PURE__ */ t(de, { component: "span", sx: Qe, children: A }),
|
|
2707
|
+
R && /* @__PURE__ */ h(me, { children: [
|
|
2708
2708
|
/* @__PURE__ */ t("br", {}),
|
|
2709
|
-
/* @__PURE__ */ t(
|
|
2709
|
+
/* @__PURE__ */ t(de, { component: "span", sx: et, children: R })
|
|
2710
2710
|
] })
|
|
2711
2711
|
] })
|
|
2712
2712
|
}
|
|
2713
2713
|
),
|
|
2714
2714
|
/* @__PURE__ */ t(q, { sx: { display: "flex", justifyContent: "center", alignItems: "center" }, children: /* @__PURE__ */ t(q, { sx: { width: "100%", maxWidth: 600, mx: "auto" }, children: /* @__PURE__ */ t(
|
|
2715
|
-
|
|
2715
|
+
Ze,
|
|
2716
2716
|
{
|
|
2717
2717
|
..._,
|
|
2718
|
-
onButtonClick: () =>
|
|
2718
|
+
onButtonClick: () => w(_, L),
|
|
2719
2719
|
variant: "large"
|
|
2720
2720
|
}
|
|
2721
2721
|
) }) })
|
|
2722
2722
|
]
|
|
2723
2723
|
}
|
|
2724
|
-
) : /* @__PURE__ */
|
|
2725
|
-
(
|
|
2726
|
-
|
|
2727
|
-
R && /* @__PURE__ */
|
|
2724
|
+
) : /* @__PURE__ */ h(q, { sx: { textAlign: "center" }, children: [
|
|
2725
|
+
(A || R) && /* @__PURE__ */ h(q, { sx: Ye, children: [
|
|
2726
|
+
A && /* @__PURE__ */ t(de, { component: "span", sx: Qe, children: A }),
|
|
2727
|
+
R && /* @__PURE__ */ h(me, { children: [
|
|
2728
2728
|
/* @__PURE__ */ t("br", {}),
|
|
2729
|
-
/* @__PURE__ */ t(
|
|
2729
|
+
/* @__PURE__ */ t(de, { component: "span", sx: et, children: R })
|
|
2730
2730
|
] })
|
|
2731
2731
|
] }),
|
|
2732
2732
|
/* @__PURE__ */ t(q, { sx: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(
|
|
2733
|
-
|
|
2733
|
+
Ze,
|
|
2734
2734
|
{
|
|
2735
2735
|
..._,
|
|
2736
|
-
onButtonClick: () =>
|
|
2736
|
+
onButtonClick: () => w(_, L),
|
|
2737
2737
|
variant: "small"
|
|
2738
2738
|
}
|
|
2739
2739
|
) })
|
|
2740
2740
|
] });
|
|
2741
2741
|
};
|
|
2742
|
-
return /* @__PURE__ */
|
|
2742
|
+
return /* @__PURE__ */ h(q, { component: "section", sx: I, children: [
|
|
2743
2743
|
/* @__PURE__ */ t("div", { ref: f, style: { width: "100%" }, children: /* @__PURE__ */ t(
|
|
2744
2744
|
he,
|
|
2745
2745
|
{
|
|
@@ -2757,19 +2757,19 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2757
2757
|
// arrows: false,
|
|
2758
2758
|
// drag: true,
|
|
2759
2759
|
},
|
|
2760
|
-
renderItem: (_,
|
|
2761
|
-
onMove: ({ index: _, isStart:
|
|
2762
|
-
|
|
2760
|
+
renderItem: (_, O) => /* @__PURE__ */ t(q, { sx: { width: "100%" }, children: T(_, !s, O) }),
|
|
2761
|
+
onMove: ({ index: _, isStart: O, isEnd: L }) => {
|
|
2762
|
+
g(_), typeof O == "boolean" && typeof L == "boolean" && C({ isStart: O, isEnd: L }), B(_);
|
|
2763
2763
|
}
|
|
2764
2764
|
}
|
|
2765
2765
|
) }),
|
|
2766
2766
|
m && /* @__PURE__ */ t(q, { sx: { mt: 2, display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(
|
|
2767
|
-
|
|
2767
|
+
lt,
|
|
2768
2768
|
{
|
|
2769
2769
|
total: n.length,
|
|
2770
|
-
active:
|
|
2770
|
+
active: d,
|
|
2771
2771
|
onSelect: (_) => {
|
|
2772
|
-
var
|
|
2772
|
+
var O;
|
|
2773
2773
|
i({
|
|
2774
2774
|
element: "welcome_banner_dots",
|
|
2775
2775
|
label: `Landing: ${r} - OraculoSeccionBonoBienvenida - Dot navigation: Banner ${_ + 1}`,
|
|
@@ -2784,7 +2784,7 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2784
2784
|
tags: {
|
|
2785
2785
|
navigation_type: "dot_click"
|
|
2786
2786
|
}
|
|
2787
|
-
}),
|
|
2787
|
+
}), g(_), (O = p.current) == null || O.go(_);
|
|
2788
2788
|
}
|
|
2789
2789
|
}
|
|
2790
2790
|
) })
|
|
@@ -2796,7 +2796,7 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2796
2796
|
selectedIndex: o = 0,
|
|
2797
2797
|
ariaLabel: i
|
|
2798
2798
|
}) => {
|
|
2799
|
-
const r = V(null), s = V(null), m = ae(), p = ne(), f =
|
|
2799
|
+
const r = V(null), s = V(null), m = ae(), p = ne(), f = se();
|
|
2800
2800
|
if (!n) return null;
|
|
2801
2801
|
const u = () => {
|
|
2802
2802
|
m({
|
|
@@ -2813,15 +2813,15 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2813
2813
|
}, l = Array.isArray(n) ? n[o] : n;
|
|
2814
2814
|
kt(() => {
|
|
2815
2815
|
if (!r.current || !s.current || typeof ResizeObserver == "undefined") return;
|
|
2816
|
-
const
|
|
2817
|
-
|
|
2816
|
+
const g = r.current, b = s.current, C = () => {
|
|
2817
|
+
g.style.setProperty(
|
|
2818
2818
|
"--orc-co-bottomH",
|
|
2819
2819
|
`${b.offsetHeight + 16}px`
|
|
2820
2820
|
);
|
|
2821
|
-
},
|
|
2822
|
-
return
|
|
2821
|
+
}, M = new ResizeObserver(C);
|
|
2822
|
+
return M.observe(b), C(), () => M.disconnect();
|
|
2823
2823
|
}, []);
|
|
2824
|
-
const
|
|
2824
|
+
const d = [
|
|
2825
2825
|
"orc-co-wrap",
|
|
2826
2826
|
a ? "orc-co-fullBleed" : "",
|
|
2827
2827
|
e
|
|
@@ -2830,7 +2830,7 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2830
2830
|
"section",
|
|
2831
2831
|
{
|
|
2832
2832
|
ref: r,
|
|
2833
|
-
className:
|
|
2833
|
+
className: d,
|
|
2834
2834
|
"aria-label": i || l.imgAlt || "Club Olimpo",
|
|
2835
2835
|
children: /* @__PURE__ */ t("div", { ref: s, children: /* @__PURE__ */ t(
|
|
2836
2836
|
ya,
|
|
@@ -2846,7 +2846,7 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2846
2846
|
) })
|
|
2847
2847
|
}
|
|
2848
2848
|
);
|
|
2849
|
-
}, _n = "oraculo__OraculoSeccionEventoCombinadas-module__controls___Zsta4", yn = "oraculo__OraculoSeccionEventoCombinadas-module__padding___vf-yF",
|
|
2849
|
+
}, _n = "oraculo__OraculoSeccionEventoCombinadas-module__controls___Zsta4", yn = "oraculo__OraculoSeccionEventoCombinadas-module__padding___vf-yF", tt = {
|
|
2850
2850
|
controls: _n,
|
|
2851
2851
|
padding: yn
|
|
2852
2852
|
}, xn = (e) => {
|
|
@@ -2859,15 +2859,15 @@ const Ja = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2859
2859
|
function wn(e, a, n) {
|
|
2860
2860
|
return n ? n.map((o) => {
|
|
2861
2861
|
var u, l;
|
|
2862
|
-
const i = o.prePackCouponRows.flatMap((
|
|
2863
|
-
for (const
|
|
2864
|
-
if (!r.has(
|
|
2865
|
-
const
|
|
2866
|
-
|
|
2862
|
+
const i = o.prePackCouponRows.flatMap((d) => xn(d).map((g) => ({ eventId: d.eventId, outcomeId: g }))), r = new Set(i.map((d) => d.eventId)), s = new Set(i.map((d) => d.outcomeId)), m = new Map(i.map((d, g) => [d.outcomeId, g])), p = {};
|
|
2863
|
+
for (const d of a) {
|
|
2864
|
+
if (!r.has(d.eventId)) continue;
|
|
2865
|
+
const g = d.outcomes.filter((b) => s.has(b.id)).map((b) => ({ ...b, position: m.get(b.id) }));
|
|
2866
|
+
g.length && ((l = p[u = d.eventId]) != null || (p[u] = []), p[d.eventId].push({ ...d, outcomes: g }));
|
|
2867
2867
|
}
|
|
2868
|
-
const f = e.filter((
|
|
2869
|
-
var
|
|
2870
|
-
return { ...
|
|
2868
|
+
const f = e.filter((d) => r.has(d.id)).map((d) => {
|
|
2869
|
+
var g;
|
|
2870
|
+
return { ...d, betoffers: (g = p[d.id]) != null ? g : [] };
|
|
2871
2871
|
});
|
|
2872
2872
|
return {
|
|
2873
2873
|
couponId: o.id,
|
|
@@ -2887,14 +2887,14 @@ function Sn(e) {
|
|
|
2887
2887
|
return Math.floor(a * 100) / 100;
|
|
2888
2888
|
}
|
|
2889
2889
|
const In = fe.memo(Ba);
|
|
2890
|
-
function
|
|
2890
|
+
function Cn({
|
|
2891
2891
|
items: e,
|
|
2892
2892
|
title: a = "Combinadas del Olimpo",
|
|
2893
2893
|
iconUrl: n = "https://stg-www.contodobet.com/static/img/landing/EventoCombinada/rayoIcon.svg",
|
|
2894
2894
|
onViewMore: o,
|
|
2895
2895
|
className: i = ""
|
|
2896
2896
|
}) {
|
|
2897
|
-
const r = ae(), s = ne(), m =
|
|
2897
|
+
const r = ae(), s = ne(), m = se(), p = V(null), [f, u] = K({ isStart: !0, isEnd: !1 }), [l, d] = K([]), g = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group/prepackcoupon.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764284658793&prePackCouponTags=CUSTOM", b = () => {
|
|
2898
2898
|
var I;
|
|
2899
2899
|
r({
|
|
2900
2900
|
element: "evento_combinadas_prev",
|
|
@@ -2906,7 +2906,7 @@ function En({
|
|
|
2906
2906
|
},
|
|
2907
2907
|
tags: { section: "OraculoSeccionEventoCombinadas" }
|
|
2908
2908
|
}), (I = p.current) == null || I.prev();
|
|
2909
|
-
},
|
|
2909
|
+
}, C = () => {
|
|
2910
2910
|
var I;
|
|
2911
2911
|
r({
|
|
2912
2912
|
element: "evento_combinadas_next",
|
|
@@ -2918,7 +2918,7 @@ function En({
|
|
|
2918
2918
|
},
|
|
2919
2919
|
tags: { section: "OraculoSeccionEventoCombinadas" }
|
|
2920
2920
|
}), (I = p.current) == null || I.next();
|
|
2921
|
-
},
|
|
2921
|
+
}, M = () => {
|
|
2922
2922
|
r({
|
|
2923
2923
|
element: "evento_combinadas_ver_mas",
|
|
2924
2924
|
label: `${s} - OraculoSeccionEventoCombinadas - Click: Ver más`,
|
|
@@ -2929,35 +2929,35 @@ function En({
|
|
|
2929
2929
|
},
|
|
2930
2930
|
tags: { section: "OraculoSeccionEventoCombinadas" }
|
|
2931
2931
|
}), Ma();
|
|
2932
|
-
},
|
|
2932
|
+
}, x = re(() => l.filter((I) => I.combinadoTotal !== null), [l]);
|
|
2933
2933
|
async function y() {
|
|
2934
|
-
var I,
|
|
2934
|
+
var I, E, w;
|
|
2935
2935
|
try {
|
|
2936
|
-
const T = await (await fetch(
|
|
2936
|
+
const T = await (await fetch(g)).json(), _ = (w = (E = (I = T == null ? void 0 : T.group) == null ? void 0 : I.groups) == null ? void 0 : E[0]) == null ? void 0 : w.id;
|
|
2937
2937
|
if (!_) {
|
|
2938
2938
|
console.error("Could not extract group ID");
|
|
2939
2939
|
return;
|
|
2940
2940
|
}
|
|
2941
|
-
const
|
|
2942
|
-
|
|
2943
|
-
} catch (
|
|
2944
|
-
console.error("loadDataEventSpecial error:",
|
|
2941
|
+
const O = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${_}.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764283566783&prePackCouponTags=CUSTOM`, A = await (await fetch(O)).json();
|
|
2942
|
+
d(wn(A.events, A.betOffers, A.prePackCoupons));
|
|
2943
|
+
} catch (B) {
|
|
2944
|
+
console.error("loadDataEventSpecial error:", B);
|
|
2945
2945
|
}
|
|
2946
2946
|
}
|
|
2947
|
-
|
|
2947
|
+
Q(() => {
|
|
2948
2948
|
y();
|
|
2949
2949
|
}, []);
|
|
2950
2950
|
const $ = i || void 0, D = xe("(max-width:950px)");
|
|
2951
|
-
return
|
|
2951
|
+
return x.length === 0 ? null : /* @__PURE__ */ t("section", { className: $, style: {
|
|
2952
2952
|
// paddingLeft: 16,
|
|
2953
2953
|
// paddingRight: 16,
|
|
2954
2954
|
width: "100%",
|
|
2955
2955
|
boxSizing: "border-box"
|
|
2956
|
-
}, children: /* @__PURE__ */
|
|
2957
|
-
/* @__PURE__ */ t("div", { className:
|
|
2956
|
+
}, children: /* @__PURE__ */ h(H, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
2957
|
+
/* @__PURE__ */ t("div", { className: tt.padding, children: /* @__PURE__ */ h(ue, { spacing: 1.5, columns: "1fr auto ", justify: "start", children: [
|
|
2958
2958
|
/* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
|
|
2959
|
-
/* @__PURE__ */
|
|
2960
|
-
/* @__PURE__ */
|
|
2959
|
+
/* @__PURE__ */ h("div", { className: tt.controls, children: [
|
|
2960
|
+
/* @__PURE__ */ h(ue, { spacing: 1, columns: "auto auto", children: [
|
|
2961
2961
|
/* @__PURE__ */ t(
|
|
2962
2962
|
X,
|
|
2963
2963
|
{
|
|
@@ -2976,19 +2976,19 @@ function En({
|
|
|
2976
2976
|
variant: "secondary",
|
|
2977
2977
|
iconOnly: !0,
|
|
2978
2978
|
rightIcon: /* @__PURE__ */ t(ze, {}),
|
|
2979
|
-
onClick:
|
|
2979
|
+
onClick: C,
|
|
2980
2980
|
disabled: f.isEnd
|
|
2981
2981
|
}
|
|
2982
2982
|
)
|
|
2983
2983
|
] }),
|
|
2984
|
-
/* @__PURE__ */ t(X, { variant: "secondary", onClick:
|
|
2984
|
+
/* @__PURE__ */ t(X, { variant: "secondary", onClick: M, children: "Ver más" })
|
|
2985
2985
|
] })
|
|
2986
2986
|
] }) }),
|
|
2987
2987
|
/* @__PURE__ */ t(
|
|
2988
2988
|
he,
|
|
2989
2989
|
{
|
|
2990
2990
|
ref: p,
|
|
2991
|
-
items:
|
|
2991
|
+
items: x,
|
|
2992
2992
|
perPage: void 0,
|
|
2993
2993
|
gap: "16px",
|
|
2994
2994
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
@@ -2999,37 +2999,37 @@ function En({
|
|
|
2999
2999
|
768: { perPage: 1.2, gap: "12px", padding: { left: "24px", right: "24px" } }
|
|
3000
3000
|
},
|
|
3001
3001
|
renderItem: (I) => /* @__PURE__ */ t(In, { coupon: I }),
|
|
3002
|
-
onMove: ({ isStart: I, isEnd:
|
|
3002
|
+
onMove: ({ isStart: I, isEnd: E }) => u({ isStart: I, isEnd: E })
|
|
3003
3003
|
}
|
|
3004
3004
|
)
|
|
3005
3005
|
] }) });
|
|
3006
3006
|
}
|
|
3007
|
-
function
|
|
3007
|
+
function On({}) {
|
|
3008
3008
|
return /* @__PURE__ */ t(
|
|
3009
3009
|
"div",
|
|
3010
3010
|
{
|
|
3011
3011
|
className: ke.cardWrapper,
|
|
3012
|
-
children: /* @__PURE__ */
|
|
3013
|
-
/* @__PURE__ */
|
|
3012
|
+
children: /* @__PURE__ */ h(H, { direction: "column", spacing: 1, children: [
|
|
3013
|
+
/* @__PURE__ */ h(H, { spacing: 1, direction: "row", children: [
|
|
3014
3014
|
/* @__PURE__ */ t(j, { variant: "text", width: "60%", height: 24 }),
|
|
3015
3015
|
/* @__PURE__ */ t(j, { variant: "text", width: "39%", height: 24 })
|
|
3016
3016
|
] }),
|
|
3017
|
-
/* @__PURE__ */
|
|
3017
|
+
/* @__PURE__ */ h(H, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
3018
3018
|
/* @__PURE__ */ t(j, { variant: "circular", width: 32, height: 40 }),
|
|
3019
3019
|
/* @__PURE__ */ t(j, { variant: "text", width: 40, height: 40 }),
|
|
3020
3020
|
/* @__PURE__ */ t(j, { variant: "circular", width: 32, height: 40 })
|
|
3021
3021
|
] }),
|
|
3022
|
-
/* @__PURE__ */
|
|
3022
|
+
/* @__PURE__ */ h(H, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
3023
3023
|
/* @__PURE__ */ t(j, { variant: "text", width: 32, height: 16 }),
|
|
3024
3024
|
/* @__PURE__ */ t(j, { variant: "text", width: 40, height: 16 }),
|
|
3025
3025
|
/* @__PURE__ */ t(j, { variant: "text", width: 32, height: 16 })
|
|
3026
3026
|
] }),
|
|
3027
|
-
/* @__PURE__ */
|
|
3027
|
+
/* @__PURE__ */ h(H, { spacing: 2, direction: "row", children: [
|
|
3028
3028
|
/* @__PURE__ */ t(j, { variant: "rounded", width: 88, height: 16 }),
|
|
3029
3029
|
/* @__PURE__ */ t(j, { variant: "rounded", width: 88, height: 16 }),
|
|
3030
3030
|
/* @__PURE__ */ t(j, { variant: "rounded", width: 88, height: 16 })
|
|
3031
3031
|
] }),
|
|
3032
|
-
/* @__PURE__ */
|
|
3032
|
+
/* @__PURE__ */ h(H, { spacing: 2, direction: "row", children: [
|
|
3033
3033
|
/* @__PURE__ */ t(j, { variant: "rounded", width: 88, height: 32 }),
|
|
3034
3034
|
/* @__PURE__ */ t(j, { variant: "rounded", width: 88, height: 32 }),
|
|
3035
3035
|
/* @__PURE__ */ t(j, { variant: "rounded", width: 88, height: 32 })
|
|
@@ -3038,8 +3038,8 @@ function Cn({}) {
|
|
|
3038
3038
|
}
|
|
3039
3039
|
);
|
|
3040
3040
|
}
|
|
3041
|
-
const
|
|
3042
|
-
fadeWrapper:
|
|
3041
|
+
const En = "oraculo__FadeItemWrapper-module__fadeWrapper___kFOH4", Tn = {
|
|
3042
|
+
fadeWrapper: En
|
|
3043
3043
|
};
|
|
3044
3044
|
function Be({ children: e }) {
|
|
3045
3045
|
return /* @__PURE__ */ t("div", { className: Tn.fadeWrapper, children: e });
|
|
@@ -3047,7 +3047,7 @@ function Be({ children: e }) {
|
|
|
3047
3047
|
const kn = "oraculo__OraculoSeccionEventoEnVivo-module__padding___Sh8tD", $n = {
|
|
3048
3048
|
padding: kn
|
|
3049
3049
|
};
|
|
3050
|
-
function
|
|
3050
|
+
function yt({
|
|
3051
3051
|
events: e,
|
|
3052
3052
|
visibleRange: a,
|
|
3053
3053
|
fetchJerseys: n,
|
|
@@ -3055,49 +3055,49 @@ function xt({
|
|
|
3055
3055
|
debounceMs: i = 250
|
|
3056
3056
|
}) {
|
|
3057
3057
|
const [r, s] = K({}), m = V(/* @__PURE__ */ new Set()), p = V(0), f = V(null), u = V(null);
|
|
3058
|
-
return
|
|
3058
|
+
return Q(() => {
|
|
3059
3059
|
if (!(!e || e.length === 0))
|
|
3060
3060
|
return f.current && clearTimeout(f.current), f.current = setTimeout(() => {
|
|
3061
3061
|
var D, I;
|
|
3062
|
-
const l = (D = a.start) != null ? D : 0,
|
|
3063
|
-
let
|
|
3064
|
-
const
|
|
3065
|
-
|
|
3066
|
-
const y = e.slice(
|
|
3062
|
+
const l = (D = a.start) != null ? D : 0, d = (I = a.end) != null ? I : 7, g = Math.max(0, l - o), b = Math.min(e.length - 1, d + o);
|
|
3063
|
+
let C = g, M = b;
|
|
3064
|
+
const x = u.current;
|
|
3065
|
+
x && (g > x.end && (C = x.end + 1), b < x.start && (M = x.start - 1)), u.current = { start: g, end: b };
|
|
3066
|
+
const y = e.slice(C, M + 1).map((E) => E == null ? void 0 : E.id).filter((E) => !!E).filter((E) => !m.current.has(E)).filter((E) => !(E in r));
|
|
3067
3067
|
if (y.length === 0) return;
|
|
3068
|
-
y.forEach((
|
|
3068
|
+
y.forEach((E) => m.current.add(E));
|
|
3069
3069
|
const $ = ++p.current;
|
|
3070
3070
|
(async () => {
|
|
3071
3071
|
try {
|
|
3072
|
-
const
|
|
3072
|
+
const E = await n(y);
|
|
3073
3073
|
if ($ !== p.current) {
|
|
3074
|
-
y.forEach((
|
|
3074
|
+
y.forEach((B) => m.current.delete(B));
|
|
3075
3075
|
return;
|
|
3076
3076
|
}
|
|
3077
|
-
if (!(
|
|
3077
|
+
if (!(E != null && E.events)) {
|
|
3078
3078
|
y.forEach(
|
|
3079
|
-
(
|
|
3079
|
+
(B) => m.current.delete(B)
|
|
3080
3080
|
);
|
|
3081
3081
|
return;
|
|
3082
3082
|
}
|
|
3083
|
-
s((
|
|
3084
|
-
const T = { ...
|
|
3085
|
-
for (const [_,
|
|
3083
|
+
s((B) => {
|
|
3084
|
+
const T = { ...B };
|
|
3085
|
+
for (const [_, O] of Object.entries(E.events)) {
|
|
3086
3086
|
const L = Number(_);
|
|
3087
|
-
T[L] || (T[L] =
|
|
3087
|
+
T[L] || (T[L] = O);
|
|
3088
3088
|
}
|
|
3089
3089
|
return T;
|
|
3090
3090
|
});
|
|
3091
|
-
const
|
|
3092
|
-
Object.keys(
|
|
3091
|
+
const w = new Set(
|
|
3092
|
+
Object.keys(E.events).map(Number)
|
|
3093
3093
|
);
|
|
3094
|
-
y.forEach((
|
|
3095
|
-
m.current.delete(
|
|
3094
|
+
y.forEach((B) => {
|
|
3095
|
+
m.current.delete(B);
|
|
3096
3096
|
});
|
|
3097
|
-
} catch (
|
|
3097
|
+
} catch (E) {
|
|
3098
3098
|
y.forEach(
|
|
3099
|
-
(
|
|
3100
|
-
), console.error("Jersey fetch error",
|
|
3099
|
+
(w) => m.current.delete(w)
|
|
3100
|
+
), console.error("Jersey fetch error", E);
|
|
3101
3101
|
}
|
|
3102
3102
|
})();
|
|
3103
3103
|
}, i), () => {
|
|
@@ -3124,11 +3124,11 @@ function Bn({
|
|
|
3124
3124
|
onViewMore: o,
|
|
3125
3125
|
className: i = ""
|
|
3126
3126
|
}) {
|
|
3127
|
-
const r = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football/all/all/all/in-play.json?channel_id=3&channel_id=3&client_id=200&client_id=200&competitionId=undefined&lang=es_PE&lang=es_PE&market=PE&market=PE&useCombined=true&useCombinedLive=true", s = V(null), [m, p] = K({ isStart: !0, isEnd: !1 }), [f, u] = K(null), [l,
|
|
3128
|
-
var
|
|
3129
|
-
|
|
3127
|
+
const r = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football/all/all/all/in-play.json?channel_id=3&channel_id=3&client_id=200&client_id=200&competitionId=undefined&lang=es_PE&lang=es_PE&market=PE&market=PE&useCombined=true&useCombinedLive=true", s = V(null), [m, p] = K({ isStart: !0, isEnd: !1 }), [f, u] = K(null), [l, d] = K({ start: null, end: null }), [g, b] = K(null), C = V(!1), M = ae(), x = ne(), y = se(), $ = V(/* @__PURE__ */ new Map()), D = () => {
|
|
3128
|
+
var A;
|
|
3129
|
+
M({
|
|
3130
3130
|
element: "evento_en_vivo_prev",
|
|
3131
|
-
label: `${
|
|
3131
|
+
label: `${x} - OraculoSeccionEventoEnVivo - Anterior`,
|
|
3132
3132
|
target: "prev",
|
|
3133
3133
|
event_type: "click",
|
|
3134
3134
|
module_id: y,
|
|
@@ -3136,12 +3136,12 @@ function Bn({
|
|
|
3136
3136
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
3137
3137
|
},
|
|
3138
3138
|
tags: { section: "OraculoSeccionEventoEnVivo" }
|
|
3139
|
-
}), (
|
|
3139
|
+
}), (A = s.current) == null || A.prev();
|
|
3140
3140
|
}, I = () => {
|
|
3141
|
-
var
|
|
3142
|
-
|
|
3141
|
+
var A;
|
|
3142
|
+
M({
|
|
3143
3143
|
element: "evento_en_vivo_next",
|
|
3144
|
-
label: `${
|
|
3144
|
+
label: `${x} - OraculoSeccionEventoEnVivo - Siguiente`,
|
|
3145
3145
|
target: "next",
|
|
3146
3146
|
event_type: "click",
|
|
3147
3147
|
module_id: y,
|
|
@@ -3149,11 +3149,11 @@ function Bn({
|
|
|
3149
3149
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
3150
3150
|
},
|
|
3151
3151
|
tags: { section: "OraculoSeccionEventoEnVivo" }
|
|
3152
|
-
}), (
|
|
3153
|
-
},
|
|
3154
|
-
|
|
3152
|
+
}), (A = s.current) == null || A.next();
|
|
3153
|
+
}, E = () => {
|
|
3154
|
+
M({
|
|
3155
3155
|
element: "evento_en_vivo_view_more",
|
|
3156
|
-
label: `${
|
|
3156
|
+
label: `${x} - OraculoSeccionEventoEnVivo - Ver más`,
|
|
3157
3157
|
target: "ver_mas",
|
|
3158
3158
|
event_type: "click",
|
|
3159
3159
|
module_id: y,
|
|
@@ -3162,14 +3162,14 @@ function Bn({
|
|
|
3162
3162
|
},
|
|
3163
3163
|
tags: { section: "OraculoSeccionEventoEnVivo" }
|
|
3164
3164
|
}), $a();
|
|
3165
|
-
},
|
|
3166
|
-
var
|
|
3165
|
+
}, w = Ee(async () => {
|
|
3166
|
+
var A;
|
|
3167
3167
|
try {
|
|
3168
|
-
if (!
|
|
3169
|
-
|
|
3168
|
+
if (!C.current) {
|
|
3169
|
+
C.current = !0;
|
|
3170
3170
|
try {
|
|
3171
|
-
const W = await (await fetch("https://api.mktolimpo.com/api/kambi/eventos/orden")).json(), G = ((
|
|
3172
|
-
G.forEach((
|
|
3171
|
+
const W = await (await fetch("https://api.mktolimpo.com/api/kambi/eventos/orden")).json(), G = ((A = W == null ? void 0 : W.data) == null ? void 0 : A.event_ids) || [], J = /* @__PURE__ */ new Map();
|
|
3172
|
+
G.forEach((ee, c) => J.set(String(ee), c)), $.current = J;
|
|
3173
3173
|
} catch (U) {
|
|
3174
3174
|
console.error("Order fetch failed, using default sorting", U);
|
|
3175
3175
|
}
|
|
@@ -3181,8 +3181,8 @@ function Bn({
|
|
|
3181
3181
|
u(F);
|
|
3182
3182
|
else {
|
|
3183
3183
|
const U = [...F].sort((W, G) => {
|
|
3184
|
-
const J = $.current.get(String(W.event.id)),
|
|
3185
|
-
return (J !== void 0 ? J : 1 / 0) - (
|
|
3184
|
+
const J = $.current.get(String(W.event.id)), ee = $.current.get(String(G.event.id));
|
|
3185
|
+
return (J !== void 0 ? J : 1 / 0) - (ee !== void 0 ? ee : 1 / 0);
|
|
3186
3186
|
});
|
|
3187
3187
|
u(U);
|
|
3188
3188
|
}
|
|
@@ -3190,16 +3190,16 @@ function Bn({
|
|
|
3190
3190
|
console.error("LoadData Error:", R);
|
|
3191
3191
|
}
|
|
3192
3192
|
}, []);
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
const
|
|
3196
|
-
return () => clearInterval(
|
|
3197
|
-
}, [
|
|
3198
|
-
const { jerseys:
|
|
3199
|
-
events: (f == null ? void 0 : f.map((
|
|
3193
|
+
Q(() => {
|
|
3194
|
+
w();
|
|
3195
|
+
const A = setInterval(w, 2e4);
|
|
3196
|
+
return () => clearInterval(A);
|
|
3197
|
+
}, [w]);
|
|
3198
|
+
const { jerseys: B } = yt({
|
|
3199
|
+
events: (f == null ? void 0 : f.map((A) => A.event)) || [],
|
|
3200
3200
|
// extract actual event objects
|
|
3201
3201
|
visibleRange: l,
|
|
3202
|
-
fetchJerseys:
|
|
3202
|
+
fetchJerseys: pt,
|
|
3203
3203
|
buffer: 3,
|
|
3204
3204
|
// same as your previous BUFFER
|
|
3205
3205
|
debounceMs: 300
|
|
@@ -3207,17 +3207,17 @@ function Bn({
|
|
|
3207
3207
|
}), T = i || void 0, _ = f === null;
|
|
3208
3208
|
if (!_ && f.length === 0)
|
|
3209
3209
|
return null;
|
|
3210
|
-
const
|
|
3210
|
+
const O = re(() => _ ? Array(4).fill({}) : (f == null ? void 0 : f.slice(0, 20)) || [], [_, f]), L = xe("(max-width:950px)");
|
|
3211
3211
|
return /* @__PURE__ */ t("section", { className: T, style: {
|
|
3212
3212
|
// paddingLeft: 16,
|
|
3213
3213
|
// paddingRight: 16,
|
|
3214
3214
|
width: "100%",
|
|
3215
3215
|
boxSizing: "border-box"
|
|
3216
|
-
}, children: /* @__PURE__ */
|
|
3217
|
-
/* @__PURE__ */ t("div", { className: $n.padding, children: /* @__PURE__ */
|
|
3216
|
+
}, children: /* @__PURE__ */ h(H, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
3217
|
+
/* @__PURE__ */ t("div", { className: $n.padding, children: /* @__PURE__ */ h(ue, { spacing: 1.5, columns: "1fr auto ", justify: "start", children: [
|
|
3218
3218
|
/* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
|
|
3219
|
-
/* @__PURE__ */
|
|
3220
|
-
/* @__PURE__ */
|
|
3219
|
+
/* @__PURE__ */ h("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
|
|
3220
|
+
/* @__PURE__ */ h(ue, { spacing: 1, columns: "auto auto", children: [
|
|
3221
3221
|
/* @__PURE__ */ t(
|
|
3222
3222
|
X,
|
|
3223
3223
|
{
|
|
@@ -3241,14 +3241,14 @@ function Bn({
|
|
|
3241
3241
|
}
|
|
3242
3242
|
)
|
|
3243
3243
|
] }),
|
|
3244
|
-
/* @__PURE__ */ t(X, { variant: "secondary", onClick:
|
|
3244
|
+
/* @__PURE__ */ t(X, { variant: "secondary", onClick: E, children: "Ver más" })
|
|
3245
3245
|
] })
|
|
3246
3246
|
] }) }),
|
|
3247
3247
|
/* @__PURE__ */ t(
|
|
3248
3248
|
he,
|
|
3249
3249
|
{
|
|
3250
3250
|
ref: s,
|
|
3251
|
-
items:
|
|
3251
|
+
items: O,
|
|
3252
3252
|
perPage: void 0,
|
|
3253
3253
|
showRightGradient: !L,
|
|
3254
3254
|
enableHorizontalWheel: !0,
|
|
@@ -3259,46 +3259,46 @@ function Bn({
|
|
|
3259
3259
|
768: { gap: "8px", focus: "center", padding: { left: "24px", right: "24px" } },
|
|
3260
3260
|
1024: { gap: "10px", focus: "center", padding: { left: "24px", right: "24px" } }
|
|
3261
3261
|
},
|
|
3262
|
-
renderItem: (
|
|
3262
|
+
renderItem: (A) => {
|
|
3263
3263
|
var F;
|
|
3264
|
-
const R = ((F =
|
|
3265
|
-
return _ ? /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(
|
|
3264
|
+
const R = ((F = A.event) == null ? void 0 : F.id) || A.eventId, v = R in B ? B[R] : void 0;
|
|
3265
|
+
return _ ? /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(On, {}) }) : /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(
|
|
3266
3266
|
Mn,
|
|
3267
3267
|
{
|
|
3268
|
-
...
|
|
3268
|
+
...A,
|
|
3269
3269
|
jersey: v
|
|
3270
3270
|
}
|
|
3271
3271
|
) });
|
|
3272
3272
|
},
|
|
3273
|
-
onMove: ({ isStart:
|
|
3273
|
+
onMove: ({ isStart: A, isEnd: R, visibleStart: v, visibleEnd: F }) => {
|
|
3274
3274
|
p(
|
|
3275
|
-
(U) => U.isStart ===
|
|
3276
|
-
),
|
|
3275
|
+
(U) => U.isStart === A && U.isEnd === R ? U : { isStart: A, isEnd: R }
|
|
3276
|
+
), d({ start: v, end: F });
|
|
3277
3277
|
}
|
|
3278
3278
|
}
|
|
3279
3279
|
)
|
|
3280
3280
|
] }) });
|
|
3281
3281
|
}
|
|
3282
3282
|
function An() {
|
|
3283
|
-
return /* @__PURE__ */
|
|
3284
|
-
/* @__PURE__ */ t(
|
|
3285
|
-
/* @__PURE__ */ t("div", { className: be.cardBackground, children: /* @__PURE__ */
|
|
3286
|
-
/* @__PURE__ */
|
|
3283
|
+
return /* @__PURE__ */ h("div", { className: be.cardContainer, children: [
|
|
3284
|
+
/* @__PURE__ */ t(dt, { title: "" }),
|
|
3285
|
+
/* @__PURE__ */ t("div", { className: be.cardBackground, children: /* @__PURE__ */ h(H, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
3286
|
+
/* @__PURE__ */ h(H, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
3287
3287
|
/* @__PURE__ */ t(j, { variant: "circular", width: 48, height: 48 }),
|
|
3288
3288
|
/* @__PURE__ */ t(j, { variant: "circular", width: 48, height: 48 })
|
|
3289
3289
|
] }),
|
|
3290
|
-
/* @__PURE__ */
|
|
3291
|
-
/* @__PURE__ */
|
|
3290
|
+
/* @__PURE__ */ h(H, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
3291
|
+
/* @__PURE__ */ h(H, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
3292
3292
|
/* @__PURE__ */ t(j, { variant: "text", width: 80, height: 12 }),
|
|
3293
3293
|
/* @__PURE__ */ t(j, { variant: "text", width: 80, height: 12 })
|
|
3294
3294
|
] }),
|
|
3295
3295
|
/* @__PURE__ */ t(H, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ t(j, { variant: "text", width: 160, height: 12 }) }),
|
|
3296
|
-
/* @__PURE__ */
|
|
3296
|
+
/* @__PURE__ */ h(H, { direction: "row", spacing: 1, children: [
|
|
3297
3297
|
/* @__PURE__ */ t(j, { variant: "text", width: 80, height: 16 }),
|
|
3298
3298
|
/* @__PURE__ */ t(j, { variant: "text", width: 80, height: 16 }),
|
|
3299
3299
|
/* @__PURE__ */ t(j, { variant: "text", width: 80, height: 16 })
|
|
3300
3300
|
] }),
|
|
3301
|
-
/* @__PURE__ */ t("div", { className: be.jugadas, children: /* @__PURE__ */
|
|
3301
|
+
/* @__PURE__ */ t("div", { className: be.jugadas, children: /* @__PURE__ */ h(H, { direction: "row", spacing: 1, children: [
|
|
3302
3302
|
/* @__PURE__ */ t(j, { variant: "rounded", width: 80, height: 32 }),
|
|
3303
3303
|
/* @__PURE__ */ t(j, { variant: "rounded", width: 80, height: 32 }),
|
|
3304
3304
|
/* @__PURE__ */ t(j, { variant: "rounded", width: 80, height: 32 })
|
|
@@ -3355,7 +3355,7 @@ function Wn({
|
|
|
3355
3355
|
onViewMore: o,
|
|
3356
3356
|
className: i = ""
|
|
3357
3357
|
}) {
|
|
3358
|
-
const r = ae(), s = ne(), m =
|
|
3358
|
+
const r = ae(), s = ne(), m = se(), p = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE", f = V(null), [u, l] = K({ isStart: !0, isEnd: !1 }), [d, g] = K(null), [b, C] = K({ start: null, end: null }), M = "channel_id=1&client_id=200&competitionId=undefined&lang=es_PE&market=PE&useCombined=true", x = () => {
|
|
3359
3359
|
r({
|
|
3360
3360
|
element: "evento_semana_view_more",
|
|
3361
3361
|
label: `${s} - OraculoSeccionEventoSemana - Ver más`,
|
|
@@ -3369,8 +3369,8 @@ function Wn({
|
|
|
3369
3369
|
}), Na();
|
|
3370
3370
|
};
|
|
3371
3371
|
async function y(T) {
|
|
3372
|
-
var L,
|
|
3373
|
-
let _ = [],
|
|
3372
|
+
var L, A;
|
|
3373
|
+
let _ = [], O = [];
|
|
3374
3374
|
try {
|
|
3375
3375
|
const R = await fetch(
|
|
3376
3376
|
"https://api.mktolimpo.com/api/kambi/eventos/orden",
|
|
@@ -3378,7 +3378,7 @@ function Wn({
|
|
|
3378
3378
|
);
|
|
3379
3379
|
if (R.ok) {
|
|
3380
3380
|
const v = await R.json();
|
|
3381
|
-
_ = ((L = v == null ? void 0 : v.data) == null ? void 0 : L.group_ids) || [],
|
|
3381
|
+
_ = ((L = v == null ? void 0 : v.data) == null ? void 0 : L.group_ids) || [], O = ((A = v == null ? void 0 : v.data) == null ? void 0 : A.event_ids) || [];
|
|
3382
3382
|
}
|
|
3383
3383
|
} catch (R) {
|
|
3384
3384
|
R.name !== "AbortError" && console.warn("Order API not available, using default group order");
|
|
@@ -3386,7 +3386,7 @@ function Wn({
|
|
|
3386
3386
|
}
|
|
3387
3387
|
try {
|
|
3388
3388
|
const F = (await (await fetch(p, { signal: T })).json()).group.groups.find(
|
|
3389
|
-
(
|
|
3389
|
+
(c) => c.englishName === "Football"
|
|
3390
3390
|
);
|
|
3391
3391
|
if (!F || !Array.isArray(F.groups)) {
|
|
3392
3392
|
console.error("Football groups not found");
|
|
@@ -3394,41 +3394,41 @@ function Wn({
|
|
|
3394
3394
|
}
|
|
3395
3395
|
let U = [...F.groups];
|
|
3396
3396
|
if (_.length > 0) {
|
|
3397
|
-
const
|
|
3398
|
-
_.map((
|
|
3397
|
+
const c = new Map(
|
|
3398
|
+
_.map((S, k) => [S, k])
|
|
3399
3399
|
);
|
|
3400
|
-
U.sort((
|
|
3401
|
-
const
|
|
3402
|
-
return
|
|
3400
|
+
U.sort((S, k) => {
|
|
3401
|
+
const N = c.get(String(S.id)), z = c.get(String(k.id));
|
|
3402
|
+
return N !== void 0 && z !== void 0 ? N - z : N !== void 0 ? -1 : z !== void 0 ? 1 : 0;
|
|
3403
3403
|
});
|
|
3404
3404
|
}
|
|
3405
|
-
const G = U.slice(0, 5), J = (
|
|
3406
|
-
const
|
|
3407
|
-
if (
|
|
3408
|
-
const k =
|
|
3405
|
+
const G = U.slice(0, 5), J = (c) => {
|
|
3406
|
+
const S = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football";
|
|
3407
|
+
if (c.groups && c.groups.length > 0) {
|
|
3408
|
+
const k = c.groups[0];
|
|
3409
3409
|
return [
|
|
3410
|
-
`${
|
|
3410
|
+
`${S}/${c.termKey}/${k.termKey}/all/matches.json?${M}`
|
|
3411
3411
|
];
|
|
3412
3412
|
}
|
|
3413
3413
|
return [
|
|
3414
|
-
`${
|
|
3414
|
+
`${S}/${c.termKey}/all/all/matches.json?${M}`
|
|
3415
3415
|
];
|
|
3416
|
-
},
|
|
3417
|
-
$(
|
|
3416
|
+
}, ee = G.flatMap(J);
|
|
3417
|
+
$(ee, O, T);
|
|
3418
3418
|
} catch (R) {
|
|
3419
3419
|
console.error(R);
|
|
3420
3420
|
}
|
|
3421
3421
|
}
|
|
3422
|
-
async function $(T, _,
|
|
3422
|
+
async function $(T, _, O) {
|
|
3423
3423
|
try {
|
|
3424
|
-
const L = await qn(T, 2,
|
|
3425
|
-
let
|
|
3424
|
+
const L = await qn(T, 2, O);
|
|
3425
|
+
let A = [], R = [];
|
|
3426
3426
|
L.forEach((W) => {
|
|
3427
|
-
W.events && (
|
|
3427
|
+
W.events && (A.push(...W.events.map((G) => G.event)), R.push(
|
|
3428
3428
|
...W.events.flatMap((G) => G.betOffers || [])
|
|
3429
3429
|
));
|
|
3430
3430
|
});
|
|
3431
|
-
const v = Vn(
|
|
3431
|
+
const v = Vn(A, R), F = Dn(Un(v));
|
|
3432
3432
|
let U = F;
|
|
3433
3433
|
if (_.length > 0) {
|
|
3434
3434
|
const W = new Map(
|
|
@@ -3438,17 +3438,17 @@ function Wn({
|
|
|
3438
3438
|
])
|
|
3439
3439
|
);
|
|
3440
3440
|
U = [...F].sort((G, J) => {
|
|
3441
|
-
const
|
|
3442
|
-
return
|
|
3441
|
+
const ee = W.get(String(G.id)), c = W.get(String(J.id));
|
|
3442
|
+
return ee !== void 0 && c !== void 0 ? ee - c : ee !== void 0 ? -1 : c !== void 0 ? 1 : 0;
|
|
3443
3443
|
});
|
|
3444
3444
|
}
|
|
3445
|
-
if (
|
|
3446
|
-
|
|
3445
|
+
if (O.aborted) return;
|
|
3446
|
+
g(U);
|
|
3447
3447
|
} catch (L) {
|
|
3448
3448
|
console.error("Error loading events:", L);
|
|
3449
3449
|
}
|
|
3450
3450
|
}
|
|
3451
|
-
|
|
3451
|
+
Q(() => {
|
|
3452
3452
|
if (!e) return;
|
|
3453
3453
|
const T = new AbortController();
|
|
3454
3454
|
return y(T.signal), () => {
|
|
@@ -3459,15 +3459,15 @@ function Wn({
|
|
|
3459
3459
|
paddingLeft: 0,
|
|
3460
3460
|
width: "100%",
|
|
3461
3461
|
boxSizing: "border-box"
|
|
3462
|
-
}, { jerseys:
|
|
3463
|
-
events:
|
|
3462
|
+
}, { jerseys: E } = yt({
|
|
3463
|
+
events: d,
|
|
3464
3464
|
visibleRange: b,
|
|
3465
|
-
fetchJerseys:
|
|
3465
|
+
fetchJerseys: pt,
|
|
3466
3466
|
buffer: 2,
|
|
3467
3467
|
debounceMs: 250
|
|
3468
|
-
}),
|
|
3469
|
-
return !
|
|
3470
|
-
/* @__PURE__ */ t("div", { className: Ie.container, children: /* @__PURE__ */
|
|
3468
|
+
}), w = d === null, B = xe("(max-width:950px)");
|
|
3469
|
+
return !w && d.length === 0 ? null : /* @__PURE__ */ t("section", { className: D, style: I, children: /* @__PURE__ */ h("div", { className: `${Ie.wrapper} ${Ie.padding}`, children: [
|
|
3470
|
+
/* @__PURE__ */ t("div", { className: Ie.container, children: /* @__PURE__ */ h(H, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
3471
3471
|
/* @__PURE__ */ t(ge, { title: "Eventos de la semana" }),
|
|
3472
3472
|
/* @__PURE__ */ t("div", { className: Ie.buttonWrapper, children: /* @__PURE__ */ t(
|
|
3473
3473
|
X,
|
|
@@ -3476,7 +3476,7 @@ function Wn({
|
|
|
3476
3476
|
size: "lg",
|
|
3477
3477
|
fullWidth: !0,
|
|
3478
3478
|
onClick: () => {
|
|
3479
|
-
|
|
3479
|
+
x();
|
|
3480
3480
|
},
|
|
3481
3481
|
children: "Ver más"
|
|
3482
3482
|
}
|
|
@@ -3486,11 +3486,11 @@ function Wn({
|
|
|
3486
3486
|
he,
|
|
3487
3487
|
{
|
|
3488
3488
|
ref: f,
|
|
3489
|
-
items:
|
|
3489
|
+
items: w ? Array(6).fill({}) : d.slice(0, 20),
|
|
3490
3490
|
perPage: 3.5,
|
|
3491
3491
|
gap: "16px",
|
|
3492
3492
|
enableHorizontalWheel: !0,
|
|
3493
|
-
showRightGradient: !
|
|
3493
|
+
showRightGradient: !B,
|
|
3494
3494
|
options: { autoWidth: !0, trimSpace: !0 },
|
|
3495
3495
|
breakpoints: {
|
|
3496
3496
|
1024: {
|
|
@@ -3501,12 +3501,12 @@ function Wn({
|
|
|
3501
3501
|
}
|
|
3502
3502
|
},
|
|
3503
3503
|
renderItem: (T) => {
|
|
3504
|
-
const _ = T.id,
|
|
3505
|
-
return
|
|
3504
|
+
const _ = T.id, O = _ in E ? E[_] : void 0;
|
|
3505
|
+
return w ? /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(An, {}) }) : /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Pn, { event: T, jersey: O }) });
|
|
3506
3506
|
},
|
|
3507
|
-
onMove: ({ isStart: T, isEnd: _, visibleStart:
|
|
3508
|
-
l({ isStart: T, isEnd: _ }),
|
|
3509
|
-
start:
|
|
3507
|
+
onMove: ({ isStart: T, isEnd: _, visibleStart: O, visibleEnd: L }) => {
|
|
3508
|
+
l({ isStart: T, isEnd: _ }), C({
|
|
3509
|
+
start: O,
|
|
3510
3510
|
end: L
|
|
3511
3511
|
}), r({
|
|
3512
3512
|
element: "evento_semana_carousel_slide",
|
|
@@ -3516,7 +3516,7 @@ function Wn({
|
|
|
3516
3516
|
module_id: m,
|
|
3517
3517
|
metadata: {
|
|
3518
3518
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
3519
|
-
visibleStart:
|
|
3519
|
+
visibleStart: O,
|
|
3520
3520
|
visibleEnd: L,
|
|
3521
3521
|
isStart: T,
|
|
3522
3522
|
isEnd: _
|
|
@@ -3533,10 +3533,10 @@ function Gn({
|
|
|
3533
3533
|
items: a,
|
|
3534
3534
|
hideItems: n
|
|
3535
3535
|
}) {
|
|
3536
|
-
var L,
|
|
3537
|
-
const [o, i] = K(0), r = ae(), s = ne(), m =
|
|
3538
|
-
|
|
3539
|
-
const
|
|
3536
|
+
var L, A, R;
|
|
3537
|
+
const [o, i] = K(0), r = ae(), s = ne(), m = se(), p = V(null), f = V(!1), u = V(!1), l = (e == null ? void 0 : e.length) || 1, d = !e || e.length === 0, g = !d && ((L = e == null ? void 0 : e.length) != null ? L : 0) > 1, b = !n && ((A = a == null ? void 0 : a.length) != null ? A : 0) > 0;
|
|
3538
|
+
De("(max-width:950px)");
|
|
3539
|
+
const C = "#B5B5B5", M = {
|
|
3540
3540
|
position: "absolute",
|
|
3541
3541
|
top: "50%",
|
|
3542
3542
|
transform: "translateY(-50%)",
|
|
@@ -3544,22 +3544,22 @@ function Gn({
|
|
|
3544
3544
|
width: 48,
|
|
3545
3545
|
height: 40,
|
|
3546
3546
|
borderRadius: "12px",
|
|
3547
|
-
border: `1.5px solid ${
|
|
3547
|
+
border: `1.5px solid ${C}`,
|
|
3548
3548
|
py: 1,
|
|
3549
3549
|
px: 1.5,
|
|
3550
|
-
color:
|
|
3550
|
+
color: C,
|
|
3551
3551
|
backgroundColor: "transparent",
|
|
3552
3552
|
"&:hover": {
|
|
3553
3553
|
backgroundColor: "rgba(181,181,181,0.08)"
|
|
3554
3554
|
},
|
|
3555
3555
|
"&.Mui-disabled": {
|
|
3556
3556
|
opacity: 0.35,
|
|
3557
|
-
borderColor:
|
|
3558
|
-
color:
|
|
3557
|
+
borderColor: C,
|
|
3558
|
+
color: C,
|
|
3559
3559
|
backgroundColor: "transparent",
|
|
3560
3560
|
cursor: "default"
|
|
3561
3561
|
}
|
|
3562
|
-
},
|
|
3562
|
+
}, x = re(
|
|
3563
3563
|
() => ({
|
|
3564
3564
|
type: "loop",
|
|
3565
3565
|
perMove: 1,
|
|
@@ -3570,7 +3570,7 @@ function Gn({
|
|
|
3570
3570
|
}),
|
|
3571
3571
|
[]
|
|
3572
3572
|
);
|
|
3573
|
-
|
|
3573
|
+
Q(() => {
|
|
3574
3574
|
const v = setTimeout(() => {
|
|
3575
3575
|
f.current = !0;
|
|
3576
3576
|
}, 500);
|
|
@@ -3615,30 +3615,30 @@ function Gn({
|
|
|
3615
3615
|
return;
|
|
3616
3616
|
}
|
|
3617
3617
|
v.href && typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(v.href);
|
|
3618
|
-
}, D = 5e3, I = V(null),
|
|
3618
|
+
}, D = 5e3, I = V(null), E = !d && ((R = e == null ? void 0 : e.length) != null ? R : 0) > 1, w = () => {
|
|
3619
3619
|
I.current != null && (window.clearTimeout(I.current), I.current = null);
|
|
3620
|
-
},
|
|
3621
|
-
|
|
3620
|
+
}, B = () => {
|
|
3621
|
+
w(), E && (I.current = window.setTimeout(() => {
|
|
3622
3622
|
var v;
|
|
3623
3623
|
u.current = !0, (v = p.current) == null || v.next();
|
|
3624
3624
|
}, D));
|
|
3625
3625
|
};
|
|
3626
|
-
|
|
3626
|
+
Q(() => (B(), () => w()), [E, D]);
|
|
3627
3627
|
const T = (v) => {
|
|
3628
3628
|
var F;
|
|
3629
|
-
v.preventDefault(), v.stopPropagation(),
|
|
3629
|
+
v.preventDefault(), v.stopPropagation(), w(), (F = p.current) == null || F.prev();
|
|
3630
3630
|
}, _ = (v) => {
|
|
3631
3631
|
var F;
|
|
3632
|
-
v.preventDefault(), v.stopPropagation(),
|
|
3633
|
-
},
|
|
3634
|
-
var W, G, J,
|
|
3632
|
+
v.preventDefault(), v.stopPropagation(), w(), (F = p.current) == null || F.next();
|
|
3633
|
+
}, O = (v) => {
|
|
3634
|
+
var W, G, J, ee;
|
|
3635
3635
|
const F = (v % l + l) % l;
|
|
3636
3636
|
if (!f.current) return;
|
|
3637
3637
|
const U = (W = e == null ? void 0 : e[F]) != null && W.href ? ((J = (G = e[F].href) == null ? void 0 : G.split("/").pop()) == null ? void 0 : J.split(".")[0]) || `banner_${F + 1}` : `banner_${F + 1}`;
|
|
3638
3638
|
r({
|
|
3639
3639
|
element: "banner_carousel",
|
|
3640
3640
|
label: `${s} - OraculoSeccionBanners - Banner view: Slide ${F + 1} - ${U}`,
|
|
3641
|
-
target: ((
|
|
3641
|
+
target: ((ee = e == null ? void 0 : e[F]) == null ? void 0 : ee.href) || "no_url",
|
|
3642
3642
|
event_type: "view",
|
|
3643
3643
|
module_id: m,
|
|
3644
3644
|
metadata: {
|
|
@@ -3650,7 +3650,7 @@ function Gn({
|
|
|
3650
3650
|
tags: { banner_position: String(F + 1) }
|
|
3651
3651
|
});
|
|
3652
3652
|
};
|
|
3653
|
-
return /* @__PURE__ */
|
|
3653
|
+
return /* @__PURE__ */ h(
|
|
3654
3654
|
Y,
|
|
3655
3655
|
{
|
|
3656
3656
|
component: "section",
|
|
@@ -3659,7 +3659,7 @@ function Gn({
|
|
|
3659
3659
|
overflow: "visible"
|
|
3660
3660
|
},
|
|
3661
3661
|
children: [
|
|
3662
|
-
/* @__PURE__ */
|
|
3662
|
+
/* @__PURE__ */ h(
|
|
3663
3663
|
Y,
|
|
3664
3664
|
{
|
|
3665
3665
|
sx: {
|
|
@@ -3694,16 +3694,16 @@ function Gn({
|
|
|
3694
3694
|
perPage: 1,
|
|
3695
3695
|
gap: "0px",
|
|
3696
3696
|
enableHorizontalWheel: !0,
|
|
3697
|
-
options:
|
|
3697
|
+
options: x,
|
|
3698
3698
|
onMove: ({ index: v }) => {
|
|
3699
3699
|
const F = (v % l + l) % l;
|
|
3700
3700
|
i(F);
|
|
3701
3701
|
const U = u.current;
|
|
3702
|
-
u.current = !1,
|
|
3702
|
+
u.current = !1, B(), U || O(v);
|
|
3703
3703
|
},
|
|
3704
3704
|
renderItem: (v, F) => {
|
|
3705
3705
|
var U, W, G;
|
|
3706
|
-
return /* @__PURE__ */
|
|
3706
|
+
return /* @__PURE__ */ h(
|
|
3707
3707
|
Y,
|
|
3708
3708
|
{
|
|
3709
3709
|
component: "a",
|
|
@@ -3720,7 +3720,7 @@ function Gn({
|
|
|
3720
3720
|
cursor: "pointer"
|
|
3721
3721
|
},
|
|
3722
3722
|
children: [
|
|
3723
|
-
/* @__PURE__ */
|
|
3723
|
+
/* @__PURE__ */ h(Y, { component: "picture", sx: { position: "absolute", inset: 0, lineHeight: 0 }, children: [
|
|
3724
3724
|
/* @__PURE__ */ t("source", { srcSet: v.desktopSrc, media: "(min-width:950px)" }),
|
|
3725
3725
|
/* @__PURE__ */ t("source", { srcSet: v.mobileSrc, media: "(max-width:949px)" }),
|
|
3726
3726
|
/* @__PURE__ */ t(
|
|
@@ -3767,14 +3767,14 @@ function Gn({
|
|
|
3767
3767
|
)
|
|
3768
3768
|
}
|
|
3769
3769
|
),
|
|
3770
|
-
|
|
3770
|
+
g && /* @__PURE__ */ h(me, { children: [
|
|
3771
3771
|
/* @__PURE__ */ t(
|
|
3772
|
-
|
|
3772
|
+
He,
|
|
3773
3773
|
{
|
|
3774
3774
|
"aria-label": "Anterior",
|
|
3775
3775
|
onClick: T,
|
|
3776
3776
|
sx: {
|
|
3777
|
-
...
|
|
3777
|
+
...M,
|
|
3778
3778
|
left: "120px",
|
|
3779
3779
|
"@media (max-width:1024px)": { left: 24 },
|
|
3780
3780
|
"@media (max-width:786px)": { display: "none" }
|
|
@@ -3783,12 +3783,12 @@ function Gn({
|
|
|
3783
3783
|
}
|
|
3784
3784
|
),
|
|
3785
3785
|
/* @__PURE__ */ t(
|
|
3786
|
-
|
|
3786
|
+
He,
|
|
3787
3787
|
{
|
|
3788
3788
|
"aria-label": "Siguiente",
|
|
3789
3789
|
onClick: _,
|
|
3790
3790
|
sx: {
|
|
3791
|
-
...
|
|
3791
|
+
...M,
|
|
3792
3792
|
right: "120px",
|
|
3793
3793
|
"@media (max-width:1024px)": { right: 24 },
|
|
3794
3794
|
"@media (max-width:786px)": { display: "none" }
|
|
@@ -3810,7 +3810,7 @@ function Gn({
|
|
|
3810
3810
|
zIndex: 2
|
|
3811
3811
|
},
|
|
3812
3812
|
children: /* @__PURE__ */ t(
|
|
3813
|
-
|
|
3813
|
+
lt,
|
|
3814
3814
|
{
|
|
3815
3815
|
total: l,
|
|
3816
3816
|
active: o,
|
|
@@ -3841,7 +3841,7 @@ function Gn({
|
|
|
3841
3841
|
boxShadow: "0 10px 24px rgba(0,0,0,.35)",
|
|
3842
3842
|
zIndex: 3
|
|
3843
3843
|
},
|
|
3844
|
-
children: a == null ? void 0 : a.map((v) => /* @__PURE__ */
|
|
3844
|
+
children: a == null ? void 0 : a.map((v) => /* @__PURE__ */ h(
|
|
3845
3845
|
Y,
|
|
3846
3846
|
{
|
|
3847
3847
|
sx: {
|
|
@@ -3888,7 +3888,7 @@ function Gn({
|
|
|
3888
3888
|
},
|
|
3889
3889
|
onClick: () => $(v),
|
|
3890
3890
|
children: [
|
|
3891
|
-
v.icon && /* @__PURE__ */
|
|
3891
|
+
v.icon && /* @__PURE__ */ h(
|
|
3892
3892
|
Y,
|
|
3893
3893
|
{
|
|
3894
3894
|
sx: {
|
|
@@ -3936,7 +3936,7 @@ function Gn({
|
|
|
3936
3936
|
}
|
|
3937
3937
|
),
|
|
3938
3938
|
/* @__PURE__ */ t(
|
|
3939
|
-
|
|
3939
|
+
it,
|
|
3940
3940
|
{
|
|
3941
3941
|
className: "menu-text",
|
|
3942
3942
|
sx: {
|
|
@@ -3972,9 +3972,9 @@ function Hn({
|
|
|
3972
3972
|
items: a = jn
|
|
3973
3973
|
}) {
|
|
3974
3974
|
const n = Math.ceil(a.length / 2), o = a.slice(0, n), i = a.slice(n);
|
|
3975
|
-
return /* @__PURE__ */
|
|
3975
|
+
return /* @__PURE__ */ h(Y, { component: "section", "aria-labelledby": "mp-title", sx: { color: "#fff" }, children: [
|
|
3976
3976
|
/* @__PURE__ */ t(
|
|
3977
|
-
|
|
3977
|
+
it,
|
|
3978
3978
|
{
|
|
3979
3979
|
id: "mp-title",
|
|
3980
3980
|
variant: "h6",
|
|
@@ -4001,33 +4001,33 @@ function Hn({
|
|
|
4001
4001
|
}
|
|
4002
4002
|
}
|
|
4003
4003
|
),
|
|
4004
|
-
/* @__PURE__ */
|
|
4004
|
+
/* @__PURE__ */ h(Oe, { spacing: { xs: 2, md: 3 }, alignItems: "center", children: [
|
|
4005
4005
|
/* @__PURE__ */ t(
|
|
4006
|
-
|
|
4006
|
+
Oe,
|
|
4007
4007
|
{
|
|
4008
4008
|
direction: "row",
|
|
4009
4009
|
justifyContent: "center",
|
|
4010
4010
|
alignItems: "center",
|
|
4011
4011
|
gap: { xs: 2, md: 3 },
|
|
4012
4012
|
flexWrap: "wrap",
|
|
4013
|
-
children: o.map((r, s) => /* @__PURE__ */ t(
|
|
4013
|
+
children: o.map((r, s) => /* @__PURE__ */ t(Ke, { ...r }, `${r.alt}-${r.src}-${s}`))
|
|
4014
4014
|
}
|
|
4015
4015
|
),
|
|
4016
4016
|
/* @__PURE__ */ t(
|
|
4017
|
-
|
|
4017
|
+
Oe,
|
|
4018
4018
|
{
|
|
4019
4019
|
direction: "row",
|
|
4020
4020
|
justifyContent: "center",
|
|
4021
4021
|
alignItems: "center",
|
|
4022
4022
|
gap: { xs: 2, md: 3 },
|
|
4023
4023
|
flexWrap: "wrap",
|
|
4024
|
-
children: i.map((r, s) => /* @__PURE__ */ t(
|
|
4024
|
+
children: i.map((r, s) => /* @__PURE__ */ t(Ke, { ...r }, `${r.alt}-${r.src}-${s}`))
|
|
4025
4025
|
}
|
|
4026
4026
|
)
|
|
4027
4027
|
] })
|
|
4028
4028
|
] });
|
|
4029
4029
|
}
|
|
4030
|
-
function
|
|
4030
|
+
function xt({
|
|
4031
4031
|
children: e
|
|
4032
4032
|
}) {
|
|
4033
4033
|
const a = Mt(), n = fe.useMemo(
|
|
@@ -4043,17 +4043,17 @@ function Ue({
|
|
|
4043
4043
|
}),
|
|
4044
4044
|
[a]
|
|
4045
4045
|
);
|
|
4046
|
-
return /* @__PURE__ */
|
|
4046
|
+
return /* @__PURE__ */ h(At, { theme: n, children: [
|
|
4047
4047
|
/* @__PURE__ */ t(zt, {}),
|
|
4048
4048
|
e
|
|
4049
4049
|
] });
|
|
4050
4050
|
}
|
|
4051
|
-
function
|
|
4051
|
+
function bo({
|
|
4052
4052
|
docId: e = "Landing: home",
|
|
4053
4053
|
moduleId: a = 301,
|
|
4054
4054
|
children: n
|
|
4055
4055
|
}) {
|
|
4056
|
-
return /* @__PURE__ */ t(
|
|
4056
|
+
return /* @__PURE__ */ t(xt, { children: /* @__PURE__ */ t(gt, { docId: e, moduleId: a, children: n }) });
|
|
4057
4057
|
}
|
|
4058
4058
|
const Kn = {
|
|
4059
4059
|
OraculoSeccionDestacados: Ha,
|
|
@@ -4067,7 +4067,7 @@ const Kn = {
|
|
|
4067
4067
|
OraculoSeccionMediosPago: Hn,
|
|
4068
4068
|
OraculoSeccionEventoEnVivo: Bn,
|
|
4069
4069
|
OraculoSeccionEventoSemana: Wn,
|
|
4070
|
-
OraculoSeccionEventoCombinadas:
|
|
4070
|
+
OraculoSeccionEventoCombinadas: Cn
|
|
4071
4071
|
}, qe = {
|
|
4072
4072
|
sections: [
|
|
4073
4073
|
{
|
|
@@ -5253,7 +5253,7 @@ const Kn = {
|
|
|
5253
5253
|
}
|
|
5254
5254
|
]
|
|
5255
5255
|
}, Zn = (e) => typeof e == "function" || e && typeof e == "object" && "$$typeof" in e, Xn = (e) => /^OraculoSeccion[A-Z]/.test(e);
|
|
5256
|
-
function
|
|
5256
|
+
function Ce(e) {
|
|
5257
5257
|
return e && Array.isArray(e.sections) ? e.sections.slice().sort((a, n) => {
|
|
5258
5258
|
var o, i;
|
|
5259
5259
|
return ((o = a.order) != null ? o : 0) - ((i = n.order) != null ? i : 0);
|
|
@@ -5289,38 +5289,32 @@ const Jn = Object.fromEntries(
|
|
|
5289
5289
|
return console.warn("[oraculo] extras inválidos. Debe ser Array<[string, unknown]>", e), {};
|
|
5290
5290
|
}
|
|
5291
5291
|
};
|
|
5292
|
-
class
|
|
5292
|
+
class at extends Error {
|
|
5293
5293
|
constructor(a, n, o) {
|
|
5294
5294
|
super(`HTTP ${a} ${o}`), this.status = a, this.url = n, this.statusText = o, this.name = "HttpError";
|
|
5295
5295
|
}
|
|
5296
5296
|
}
|
|
5297
|
-
class
|
|
5297
|
+
class Qn extends fe.Component {
|
|
5298
5298
|
constructor(a) {
|
|
5299
|
-
super(a), this.state = {
|
|
5300
|
-
hasError: !1,
|
|
5301
|
-
message: ""
|
|
5302
|
-
};
|
|
5299
|
+
super(a), this.state = { hasError: !1 };
|
|
5303
5300
|
}
|
|
5304
|
-
static getDerivedStateFromError(
|
|
5305
|
-
return {
|
|
5306
|
-
hasError: !0,
|
|
5307
|
-
message: a instanceof Error ? a.message : "Error inesperado"
|
|
5308
|
-
};
|
|
5301
|
+
static getDerivedStateFromError() {
|
|
5302
|
+
return { hasError: !0 };
|
|
5309
5303
|
}
|
|
5310
5304
|
componentDidCatch(a, n) {
|
|
5311
|
-
console.error("
|
|
5305
|
+
console.error("[landing] sección que falló:", {
|
|
5306
|
+
id: this.props.section.id,
|
|
5307
|
+
title: this.props.section.title,
|
|
5308
|
+
componentKey: this.props.section.componentKey,
|
|
5309
|
+
error: a,
|
|
5310
|
+
info: n
|
|
5311
|
+
});
|
|
5312
5312
|
}
|
|
5313
5313
|
render() {
|
|
5314
|
-
|
|
5315
|
-
return this.state.hasError ? (a = this.props.fallback) != null ? a : /* @__PURE__ */ g("div", { className: "mx-4 p-4 rounded bg-red-100 text-red-800", children: [
|
|
5316
|
-
'Error al renderizar la sección "',
|
|
5317
|
-
this.props.section.title,
|
|
5318
|
-
'".',
|
|
5319
|
-
this.state.message ? ` (${this.state.message})` : ""
|
|
5320
|
-
] }) : this.props.children;
|
|
5314
|
+
return this.state.hasError ? null : this.props.children;
|
|
5321
5315
|
}
|
|
5322
5316
|
}
|
|
5323
|
-
const
|
|
5317
|
+
const nt = [
|
|
5324
5318
|
"OraculoSeccionEventoEnVivo",
|
|
5325
5319
|
"OraculoSeccionEventoSemana",
|
|
5326
5320
|
"OraculoSeccionEventoCombinadas"
|
|
@@ -5333,98 +5327,98 @@ const it = [
|
|
|
5333
5327
|
loader: r,
|
|
5334
5328
|
disableWrapper: s = !1
|
|
5335
5329
|
}) => {
|
|
5336
|
-
const m = re(() => Yn(i), [i]), p = r || m.loader, [f, u] = K([]), [l,
|
|
5337
|
-
() =>
|
|
5330
|
+
const m = re(() => Yn(i), [i]), p = r || m.loader, [f, u] = K([]), [l, d] = K(!1), [g, b] = K({}), [C, M] = K({}), [x, y] = K({}), $ = De("(min-width:1024px)"), D = re(
|
|
5331
|
+
() => Ce(qe),
|
|
5338
5332
|
[]
|
|
5339
|
-
), I = (
|
|
5340
|
-
(
|
|
5341
|
-
),
|
|
5342
|
-
const
|
|
5343
|
-
return
|
|
5344
|
-
}, [m]),
|
|
5345
|
-
const
|
|
5346
|
-
if (!Array.isArray(
|
|
5347
|
-
const k =
|
|
5333
|
+
), I = (c) => D.find(
|
|
5334
|
+
(S) => S.id === c.id || S.componentKey === c.componentKey
|
|
5335
|
+
), E = (c) => Array.isArray(c) ? c.map((S) => Number(S)).filter((S) => !Number.isNaN(S)) : [], w = re(() => {
|
|
5336
|
+
const c = m.user;
|
|
5337
|
+
return E(c == null ? void 0 : c.groups);
|
|
5338
|
+
}, [m]), B = (c) => {
|
|
5339
|
+
const S = c.manualScalarFields;
|
|
5340
|
+
if (!Array.isArray(S)) return [];
|
|
5341
|
+
const k = S.find(
|
|
5348
5342
|
(P) => String((P == null ? void 0 : P.name) || "").trim().toLowerCase() === "groups"
|
|
5349
5343
|
);
|
|
5350
5344
|
if (!k) return [];
|
|
5351
|
-
const
|
|
5352
|
-
if (
|
|
5353
|
-
if (Array.isArray(
|
|
5354
|
-
return
|
|
5355
|
-
const z = String(
|
|
5345
|
+
const N = k.value;
|
|
5346
|
+
if (N == null) return [];
|
|
5347
|
+
if (Array.isArray(N))
|
|
5348
|
+
return N.map((P) => Number(String(P).trim())).filter((P) => !Number.isNaN(P));
|
|
5349
|
+
const z = String(N).trim();
|
|
5356
5350
|
return z ? z.split(",").map((P) => Number(P.trim())).filter((P) => !Number.isNaN(P)) : [];
|
|
5357
|
-
}, T = (
|
|
5358
|
-
const k =
|
|
5351
|
+
}, T = (c, S) => {
|
|
5352
|
+
const k = B(c);
|
|
5359
5353
|
if (k.length === 0) return !0;
|
|
5360
|
-
if (!Array.isArray(
|
|
5361
|
-
const
|
|
5362
|
-
return k.some((z) =>
|
|
5354
|
+
if (!Array.isArray(S) || S.length === 0) return !1;
|
|
5355
|
+
const N = new Set(S);
|
|
5356
|
+
return k.some((z) => N.has(z));
|
|
5363
5357
|
};
|
|
5364
|
-
|
|
5358
|
+
Q(() => {
|
|
5365
5359
|
if (e) return;
|
|
5366
5360
|
if (!o) {
|
|
5367
|
-
console.warn("[landing] sin db -> fallback json"), u(
|
|
5361
|
+
console.warn("[landing] sin db -> fallback json"), u(Ce(qe));
|
|
5368
5362
|
return;
|
|
5369
5363
|
}
|
|
5370
|
-
const
|
|
5371
|
-
console.warn("[landing] FALLBACK:", k,
|
|
5364
|
+
const c = (k, N) => {
|
|
5365
|
+
console.warn("[landing] FALLBACK:", k, N != null ? N : ""), u(Ce(qe)), d(!1);
|
|
5372
5366
|
};
|
|
5373
5367
|
if (process.env.NEXT_PUBLIC_LANDING_FORCE_FALLBACK === "1") {
|
|
5374
|
-
|
|
5368
|
+
d(!0), c("forzado por env");
|
|
5375
5369
|
return;
|
|
5376
5370
|
}
|
|
5377
|
-
|
|
5378
|
-
const
|
|
5371
|
+
d(!0);
|
|
5372
|
+
const S = Rt(
|
|
5379
5373
|
Lt(o, "landings", a),
|
|
5380
5374
|
(k) => {
|
|
5381
5375
|
try {
|
|
5382
5376
|
if (!k.exists()) {
|
|
5383
|
-
|
|
5377
|
+
c(`doc landings/${a} no existe`);
|
|
5384
5378
|
return;
|
|
5385
5379
|
}
|
|
5386
|
-
const
|
|
5380
|
+
const N = k.data(), z = Ce(N);
|
|
5387
5381
|
if (!z.length) {
|
|
5388
|
-
|
|
5382
|
+
c("JSON inválido o sin secciones normalizables", N);
|
|
5389
5383
|
return;
|
|
5390
5384
|
}
|
|
5391
|
-
console.log("[landing] Firestore OK (json grande):",
|
|
5392
|
-
} catch (
|
|
5393
|
-
|
|
5385
|
+
console.log("[landing] Firestore OK (json grande):", N), u(z);
|
|
5386
|
+
} catch (N) {
|
|
5387
|
+
c("error procesando snapshot", N);
|
|
5394
5388
|
} finally {
|
|
5395
|
-
|
|
5389
|
+
d(!1);
|
|
5396
5390
|
}
|
|
5397
5391
|
},
|
|
5398
5392
|
(k) => {
|
|
5399
|
-
|
|
5393
|
+
c("error onSnapshot", k);
|
|
5400
5394
|
}
|
|
5401
5395
|
);
|
|
5402
|
-
return () =>
|
|
5403
|
-
}, [e, a, o]),
|
|
5396
|
+
return () => S();
|
|
5397
|
+
}, [e, a, o]), Q(() => (Ka(m), () => Za()), [m]), Q(() => {
|
|
5404
5398
|
(e ? e.slice() : f.slice()).map((k) => k.componentKey).filter((k) => !!k).length;
|
|
5405
5399
|
}, [e, f]);
|
|
5406
|
-
const _ = async (
|
|
5407
|
-
if (
|
|
5400
|
+
const _ = async (c) => {
|
|
5401
|
+
if (nt.includes(c.componentKey))
|
|
5408
5402
|
return {
|
|
5409
5403
|
items: [],
|
|
5410
5404
|
events: [],
|
|
5411
5405
|
data: {}
|
|
5412
5406
|
};
|
|
5413
|
-
const
|
|
5414
|
-
if (!
|
|
5415
|
-
const k =
|
|
5416
|
-
let z =
|
|
5407
|
+
const S = (c.apiUrl || "").trim();
|
|
5408
|
+
if (!S) return;
|
|
5409
|
+
const k = c.apiMethod || "GET", N = c.apiParams || [];
|
|
5410
|
+
let z = S, P, Z;
|
|
5417
5411
|
if (k === "GET") {
|
|
5418
5412
|
const ie = new URL(
|
|
5419
|
-
|
|
5413
|
+
S,
|
|
5420
5414
|
typeof window == "undefined" ? "http://localhost" : window.location.origin
|
|
5421
5415
|
);
|
|
5422
|
-
for (const oe of
|
|
5416
|
+
for (const oe of N)
|
|
5423
5417
|
oe.key && ie.searchParams.append(oe.key, oe.value);
|
|
5424
5418
|
z = ie.toString();
|
|
5425
5419
|
} else {
|
|
5426
5420
|
const ie = new URLSearchParams();
|
|
5427
|
-
for (const oe of
|
|
5421
|
+
for (const oe of N)
|
|
5428
5422
|
oe.key && ie.append(oe.key, oe.value);
|
|
5429
5423
|
P = ie.toString(), Z = {
|
|
5430
5424
|
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
|
|
@@ -5435,90 +5429,90 @@ const it = [
|
|
|
5435
5429
|
headers: Z,
|
|
5436
5430
|
body: P
|
|
5437
5431
|
});
|
|
5438
|
-
if (!te.ok) throw new
|
|
5432
|
+
if (!te.ok) throw new at(te.status, z, te.statusText);
|
|
5439
5433
|
return te.json();
|
|
5440
|
-
},
|
|
5434
|
+
}, O = re(
|
|
5441
5435
|
() => e ? e.slice() : f.slice(),
|
|
5442
5436
|
[e, f]
|
|
5443
5437
|
), L = fe.useRef(/* @__PURE__ */ new Set());
|
|
5444
|
-
|
|
5445
|
-
const
|
|
5446
|
-
if (
|
|
5447
|
-
for (const { s:
|
|
5448
|
-
const
|
|
5449
|
-
L.current.has(
|
|
5438
|
+
Q(() => {
|
|
5439
|
+
const c = O.map((S) => ({ s: S, url: (S.apiUrl || "").trim() })).filter(({ url: S }) => !!S);
|
|
5440
|
+
if (c.length)
|
|
5441
|
+
for (const { s: S, url: k } of c) {
|
|
5442
|
+
const N = `${S.id}|${k}`;
|
|
5443
|
+
L.current.has(N) || (L.current.add(N), M((z) => ({ ...z, [S.id]: !0 })), y((z) => ({ ...z, [S.id]: "" })), (async () => {
|
|
5450
5444
|
try {
|
|
5451
|
-
const z = await _(
|
|
5452
|
-
b((P) => ({ ...P, [
|
|
5445
|
+
const z = await _(S);
|
|
5446
|
+
b((P) => ({ ...P, [S.id]: z }));
|
|
5453
5447
|
} catch (z) {
|
|
5454
5448
|
let P = "Error desconocido";
|
|
5455
|
-
z instanceof
|
|
5449
|
+
z instanceof at ? P = `Error HTTP ${z.status} (${z.statusText}) en ${z.url}` : z instanceof SyntaxError ? P = "Respuesta no es JSON válido" : z instanceof TypeError ? P = "Fallo de red / CORS / conexión" : typeof z == "string" && (P = z.toString()), y((Z) => ({ ...Z, [S.id]: P }));
|
|
5456
5450
|
} finally {
|
|
5457
|
-
|
|
5451
|
+
M((z) => ({ ...z, [S.id]: !1 }));
|
|
5458
5452
|
}
|
|
5459
5453
|
})());
|
|
5460
5454
|
}
|
|
5461
|
-
}, [
|
|
5462
|
-
const
|
|
5463
|
-
() =>
|
|
5464
|
-
[
|
|
5465
|
-
), R = (
|
|
5455
|
+
}, [O]);
|
|
5456
|
+
const A = re(
|
|
5457
|
+
() => O.filter((c) => c.visible).filter((c) => T(c, w)).sort((c, S) => c.order - S.order),
|
|
5458
|
+
[O, w]
|
|
5459
|
+
), R = (c) => Array.isArray(c) ? c.map((S) => {
|
|
5466
5460
|
const k = {};
|
|
5467
|
-
for (const
|
|
5468
|
-
const z = (
|
|
5461
|
+
for (const N of S.fields || []) {
|
|
5462
|
+
const z = (N.type || "string").toLowerCase();
|
|
5469
5463
|
if (z === "number") {
|
|
5470
|
-
const P = String(
|
|
5464
|
+
const P = String(N.value || "").trim();
|
|
5471
5465
|
if (P !== "") {
|
|
5472
5466
|
const Z = Number(P);
|
|
5473
|
-
Number.isNaN(Z) || (k[
|
|
5467
|
+
Number.isNaN(Z) || (k[N.name] = Z);
|
|
5474
5468
|
}
|
|
5475
5469
|
} else if (z === "boolean")
|
|
5476
|
-
k[
|
|
5470
|
+
k[N.name] = String(N.value).toLowerCase() === "true";
|
|
5477
5471
|
else if (z === "function") {
|
|
5478
|
-
const P = String(
|
|
5472
|
+
const P = String(N.value || "").trim();
|
|
5479
5473
|
if (P)
|
|
5480
5474
|
try {
|
|
5481
5475
|
const Z = new Function(P);
|
|
5482
|
-
k[
|
|
5476
|
+
k[N.name] = Z;
|
|
5483
5477
|
} catch (Z) {
|
|
5484
|
-
console.error(`❌ Error creando función en item '${
|
|
5478
|
+
console.error(`❌ Error creando función en item '${N.name}':`, Z);
|
|
5485
5479
|
}
|
|
5486
5480
|
} else
|
|
5487
|
-
k[
|
|
5481
|
+
k[N.name] = N.value;
|
|
5488
5482
|
}
|
|
5489
5483
|
return k;
|
|
5490
|
-
}) : [], v = (
|
|
5491
|
-
const
|
|
5492
|
-
if (!Array.isArray(
|
|
5493
|
-
for (const k of
|
|
5484
|
+
}) : [], v = (c) => {
|
|
5485
|
+
const S = {};
|
|
5486
|
+
if (!Array.isArray(c)) return S;
|
|
5487
|
+
for (const k of c) {
|
|
5494
5488
|
if (!k.name) continue;
|
|
5495
|
-
const
|
|
5496
|
-
if (
|
|
5489
|
+
const N = (k.type || "string").toLowerCase();
|
|
5490
|
+
if (N === "number") {
|
|
5497
5491
|
const z = String(k.value || "").trim();
|
|
5498
5492
|
if (z !== "") {
|
|
5499
5493
|
const P = Number(z);
|
|
5500
|
-
Number.isNaN(P) || (
|
|
5494
|
+
Number.isNaN(P) || (S[k.name] = P);
|
|
5501
5495
|
}
|
|
5502
|
-
} else if (
|
|
5503
|
-
|
|
5504
|
-
else if (
|
|
5496
|
+
} else if (N === "boolean")
|
|
5497
|
+
S[k.name] = String(k.value).toLowerCase() === "true";
|
|
5498
|
+
else if (N === "function") {
|
|
5505
5499
|
const z = String(k.value || "").trim();
|
|
5506
5500
|
if (z)
|
|
5507
5501
|
try {
|
|
5508
5502
|
const P = new Function(z);
|
|
5509
|
-
|
|
5503
|
+
S[k.name] = P;
|
|
5510
5504
|
} catch (P) {
|
|
5511
5505
|
console.error(`❌ Error creando función en item '${k.name}':`, P);
|
|
5512
5506
|
}
|
|
5513
5507
|
} else
|
|
5514
|
-
|
|
5508
|
+
S[k.name] = k.value;
|
|
5515
5509
|
}
|
|
5516
|
-
return
|
|
5517
|
-
}, F = (
|
|
5518
|
-
const z = k ? { ...k } : {}, P = (
|
|
5519
|
-
if (
|
|
5520
|
-
return z[P] =
|
|
5521
|
-
const Z =
|
|
5510
|
+
return S;
|
|
5511
|
+
}, F = (c, S, k, N) => {
|
|
5512
|
+
const z = k ? { ...k } : {}, P = (N || "items").trim() || "items";
|
|
5513
|
+
if (S)
|
|
5514
|
+
return z[P] = S.arr || [], z;
|
|
5515
|
+
const Z = c;
|
|
5522
5516
|
if (Array.isArray(Z))
|
|
5523
5517
|
return z[P] = Z, z;
|
|
5524
5518
|
if (Z && typeof Z == "object") {
|
|
@@ -5526,64 +5520,64 @@ const it = [
|
|
|
5526
5520
|
return Array.isArray(te.lobby) ? (z[P] = te.lobby, z) : Array.isArray(te.items) ? (z[P] = te.items, z) : (z[P] = Z, z);
|
|
5527
5521
|
}
|
|
5528
5522
|
return z[P] = [], z;
|
|
5529
|
-
}, U = (
|
|
5523
|
+
}, U = (c) => {
|
|
5530
5524
|
var P;
|
|
5531
|
-
const
|
|
5532
|
-
let
|
|
5533
|
-
const z = v(
|
|
5534
|
-
if (
|
|
5535
|
-
return { items: k, ...
|
|
5536
|
-
if (
|
|
5537
|
-
|
|
5538
|
-
else if (
|
|
5539
|
-
const Z = R(
|
|
5540
|
-
if (
|
|
5525
|
+
const S = !!((P = c.apiUrl) != null && P.trim()), k = S ? g[c.id] : void 0;
|
|
5526
|
+
let N = c.props ? { ...c.props } : {};
|
|
5527
|
+
const z = v(c.manualScalarFields);
|
|
5528
|
+
if (nt.includes(c.componentKey))
|
|
5529
|
+
return { items: k, ...N, ...z };
|
|
5530
|
+
if (N = { ...N, ...z }, S)
|
|
5531
|
+
N = F(k, null, N);
|
|
5532
|
+
else if (c.dataMode === "manual") {
|
|
5533
|
+
const Z = R(c.manualItems);
|
|
5534
|
+
if (N = F(
|
|
5541
5535
|
null,
|
|
5542
|
-
{ arr: Z, variableName:
|
|
5543
|
-
|
|
5544
|
-
|
|
5545
|
-
),
|
|
5546
|
-
const te = R(
|
|
5547
|
-
|
|
5536
|
+
{ arr: Z, variableName: c.variableName },
|
|
5537
|
+
N,
|
|
5538
|
+
c.variableName
|
|
5539
|
+
), c.variableName2 && c.manualItems2) {
|
|
5540
|
+
const te = R(c.manualItems2), ie = (c.variableName2 || "items2").trim() || "items2";
|
|
5541
|
+
N[ie] = te;
|
|
5548
5542
|
}
|
|
5549
5543
|
}
|
|
5550
|
-
return
|
|
5551
|
-
}, W = (
|
|
5552
|
-
const
|
|
5544
|
+
return N;
|
|
5545
|
+
}, W = (c) => {
|
|
5546
|
+
const S = c.props ? { ...c.props } : {};
|
|
5553
5547
|
try {
|
|
5554
|
-
Object.assign(
|
|
5555
|
-
} catch (
|
|
5556
|
-
console.error("❌ Error armando scalars vacíos:",
|
|
5548
|
+
Object.assign(S, v(c.manualScalarFields));
|
|
5549
|
+
} catch (N) {
|
|
5550
|
+
console.error("❌ Error armando scalars vacíos:", c, N);
|
|
5557
5551
|
}
|
|
5558
|
-
const k = (
|
|
5559
|
-
if (typeof
|
|
5560
|
-
const
|
|
5561
|
-
typeof
|
|
5552
|
+
const k = (c.variableName || "items").trim() || "items";
|
|
5553
|
+
if (typeof S[k] == "undefined" && (S[k] = []), c.variableName2) {
|
|
5554
|
+
const N = (c.variableName2 || "items2").trim() || "items2";
|
|
5555
|
+
typeof S[N] == "undefined" && (S[N] = []);
|
|
5562
5556
|
}
|
|
5563
|
-
return
|
|
5564
|
-
}, G = (
|
|
5557
|
+
return S;
|
|
5558
|
+
}, G = (c) => {
|
|
5565
5559
|
try {
|
|
5566
|
-
return U(
|
|
5567
|
-
} catch (
|
|
5568
|
-
console.error("🔥 ERROR EN buildCompProps:",
|
|
5569
|
-
const k = I(
|
|
5570
|
-
if (k && k !==
|
|
5560
|
+
return U(c);
|
|
5561
|
+
} catch (S) {
|
|
5562
|
+
console.error("🔥 ERROR EN buildCompProps:", c, S);
|
|
5563
|
+
const k = I(c);
|
|
5564
|
+
if (k && k !== c)
|
|
5571
5565
|
try {
|
|
5572
5566
|
return console.warn(
|
|
5573
|
-
`[landing] usando fallback local para sección ${
|
|
5567
|
+
`[landing] usando fallback local para sección ${c.title} (${c.componentKey})`
|
|
5574
5568
|
), U(k);
|
|
5575
|
-
} catch (
|
|
5576
|
-
console.error("🔥 ERROR EN fallback buildCompProps:", k,
|
|
5569
|
+
} catch (N) {
|
|
5570
|
+
console.error("🔥 ERROR EN fallback buildCompProps:", k, N);
|
|
5577
5571
|
}
|
|
5578
|
-
return W(
|
|
5572
|
+
return W(c);
|
|
5579
5573
|
}
|
|
5580
|
-
}, J = (
|
|
5574
|
+
}, J = (c, S, k) => /* @__PURE__ */ t("div", { className: `mx-4 p-4 rounded ${{
|
|
5581
5575
|
loading: "bg-blue-100 text-blue-800",
|
|
5582
5576
|
error: "bg-red-100 text-red-800",
|
|
5583
5577
|
component: "bg-yellow-100 text-yellow-800"
|
|
5584
|
-
}[
|
|
5585
|
-
var
|
|
5586
|
-
const
|
|
5578
|
+
}[S]}`, children: k }, c), ee = (c) => {
|
|
5579
|
+
var je;
|
|
5580
|
+
const S = c.componentKey, k = Jn[S], z = (/* @__PURE__ */ new Set([
|
|
5587
5581
|
"OraculoSeccionBanners",
|
|
5588
5582
|
"OraculoSeccionBonoBienvenida",
|
|
5589
5583
|
"OraculoSeccionCasinoEnVivo",
|
|
@@ -5596,7 +5590,7 @@ const it = [
|
|
|
5596
5590
|
"OraculoSeccionDestacados",
|
|
5597
5591
|
"OraculoSeccionCasino"
|
|
5598
5592
|
]
|
|
5599
|
-
])).has(
|
|
5593
|
+
])).has(c.componentKey), P = $ ? 120 : 24, Z = ($ ? 8 : 5) * 8, te = c.componentKey === "OraculoSeccionCasinoEnVivo", ie = {
|
|
5600
5594
|
width: "100%",
|
|
5601
5595
|
boxSizing: "border-box",
|
|
5602
5596
|
...z ? {} : { paddingLeft: P, paddingRight: P },
|
|
@@ -5606,25 +5600,25 @@ const it = [
|
|
|
5606
5600
|
} : {}
|
|
5607
5601
|
};
|
|
5608
5602
|
if (!k)
|
|
5609
|
-
return console.warn(`No hay componente registrado para "${
|
|
5610
|
-
|
|
5603
|
+
return console.warn(`No hay componente registrado para "${S}"`), J(
|
|
5604
|
+
c.id,
|
|
5611
5605
|
"component",
|
|
5612
|
-
`Componente "${
|
|
5606
|
+
`Componente "${S}" no encontrado`
|
|
5613
5607
|
);
|
|
5614
|
-
const oe = !!((
|
|
5608
|
+
const oe = !!((je = c.apiUrl) != null && je.trim()), We = oe ? g[c.id] : void 0, wt = oe ? !!C[c.id] : !1, Ge = oe ? x[c.id] : "";
|
|
5615
5609
|
if (oe) {
|
|
5616
|
-
if (wt && !
|
|
5610
|
+
if (wt && !We)
|
|
5617
5611
|
return J(
|
|
5618
|
-
|
|
5612
|
+
c.id,
|
|
5619
5613
|
"loading",
|
|
5620
|
-
`Cargando datos desde ${
|
|
5614
|
+
`Cargando datos desde ${c.apiUrl}...`
|
|
5621
5615
|
);
|
|
5622
|
-
if (
|
|
5623
|
-
const we = I(
|
|
5616
|
+
if (Ge && !We) {
|
|
5617
|
+
const we = I(c);
|
|
5624
5618
|
if (we && we.dataMode === "manual")
|
|
5625
5619
|
try {
|
|
5626
5620
|
const Re = G(we);
|
|
5627
|
-
return /* @__PURE__ */ t("div", { style: ie, className: "oraculo-section-wrapper", children: /* @__PURE__ */ t(k, { ...Re }) },
|
|
5621
|
+
return /* @__PURE__ */ t("div", { style: ie, className: "oraculo-section-wrapper", children: /* @__PURE__ */ t(k, { ...Re }) }, c.id);
|
|
5628
5622
|
} catch (Re) {
|
|
5629
5623
|
console.error(
|
|
5630
5624
|
"🔥 ERROR renderizando fallback manual de sección:",
|
|
@@ -5633,22 +5627,28 @@ const it = [
|
|
|
5633
5627
|
);
|
|
5634
5628
|
}
|
|
5635
5629
|
return J(
|
|
5636
|
-
|
|
5630
|
+
c.id,
|
|
5637
5631
|
"error",
|
|
5638
|
-
`Error cargando ${
|
|
5632
|
+
`Error cargando ${c.apiUrl}: ${Ge}`
|
|
5639
5633
|
);
|
|
5640
5634
|
}
|
|
5641
5635
|
}
|
|
5642
|
-
const St = G(
|
|
5643
|
-
return
|
|
5636
|
+
const St = G(c);
|
|
5637
|
+
return console.log("[landing] intentando render:", {
|
|
5638
|
+
id: c.id,
|
|
5639
|
+
title: c.title,
|
|
5640
|
+
componentKey: c.componentKey
|
|
5641
|
+
}), /* @__PURE__ */ t(Qn, { section: c, children: /* @__PURE__ */ t(
|
|
5642
|
+
"div",
|
|
5643
|
+
{
|
|
5644
|
+
style: ie,
|
|
5645
|
+
className: "oraculo-section-wrapper",
|
|
5646
|
+
children: /* @__PURE__ */ t(k, { ...St })
|
|
5647
|
+
},
|
|
5648
|
+
c.id
|
|
5649
|
+
) });
|
|
5644
5650
|
};
|
|
5645
|
-
return l && !e ? p ? /* @__PURE__ */ t(p, {}) : /* @__PURE__ */ t("div", { children: "Cargando..." }) : !l && !e && f.length === 0 ? /* @__PURE__ */ t("div", { className: "text-xs text-gray-500", children: "Sin secciones (Firestore)" }) :
|
|
5646
|
-
try {
|
|
5647
|
-
return Q(d);
|
|
5648
|
-
} catch (x) {
|
|
5649
|
-
return console.error("🔥 ERROR EN SECTION:", d, x), null;
|
|
5650
|
-
}
|
|
5651
|
-
}) }) }) }) : /* @__PURE__ */ t(Ue, { children: /* @__PURE__ */ t(De, { docId: a, moduleId: n, children: /* @__PURE__ */ t(
|
|
5651
|
+
return l && !e ? p ? /* @__PURE__ */ t(p, {}) : /* @__PURE__ */ t("div", { children: "Cargando..." }) : !l && !e && f.length === 0 ? /* @__PURE__ */ t("div", { className: "text-xs text-gray-500", children: "Sin secciones (Firestore)" }) : /* @__PURE__ */ t(xt, { children: /* @__PURE__ */ t(gt, { docId: a, moduleId: n, children: /* @__PURE__ */ t(
|
|
5652
5652
|
It,
|
|
5653
5653
|
{
|
|
5654
5654
|
className: "oli-font",
|
|
@@ -5662,38 +5662,38 @@ const it = [
|
|
|
5662
5662
|
maxWidth: "100%",
|
|
5663
5663
|
overflowX: "hidden"
|
|
5664
5664
|
},
|
|
5665
|
-
children: /* @__PURE__ */ t(
|
|
5665
|
+
children: /* @__PURE__ */ t(Oe, { direction: "column", spacing: $ ? 8 : 5, useFlexGap: !0, children: A.map((c) => {
|
|
5666
5666
|
try {
|
|
5667
|
-
return
|
|
5668
|
-
} catch (
|
|
5669
|
-
return console.error("🔥 ERROR EN SECTION:",
|
|
5667
|
+
return ee(c);
|
|
5668
|
+
} catch (S) {
|
|
5669
|
+
return console.error("🔥 ERROR EN SECTION:", c, S), null;
|
|
5670
5670
|
}
|
|
5671
5671
|
}) })
|
|
5672
5672
|
}
|
|
5673
5673
|
) }) });
|
|
5674
5674
|
};
|
|
5675
5675
|
export {
|
|
5676
|
-
|
|
5676
|
+
gt as DocIdProvider,
|
|
5677
5677
|
X as OraculoButton,
|
|
5678
5678
|
he as OraculoCarousel,
|
|
5679
|
-
|
|
5679
|
+
lt as OraculoCarouselDots,
|
|
5680
5680
|
ya as OraculoClubOlimpoVisual,
|
|
5681
5681
|
Ba as OraculoEventCombinadasCard,
|
|
5682
5682
|
Fa as OraculoEventEnVivoCard,
|
|
5683
5683
|
Wt as OraculoEventHeader,
|
|
5684
|
-
|
|
5685
|
-
|
|
5686
|
-
|
|
5684
|
+
ct as OraculoEventLabel,
|
|
5685
|
+
dt as OraculoEventLeague,
|
|
5686
|
+
ut as OraculoEventScore,
|
|
5687
5687
|
ja as OraculoEventSemanaCard,
|
|
5688
5688
|
Vt as OraculoEventStatus,
|
|
5689
5689
|
Ut as OraculoEventStatusBadge,
|
|
5690
5690
|
Ne as OraculoEventTeamInfo,
|
|
5691
5691
|
Te as OraculoGameCard,
|
|
5692
5692
|
va as OraculoGameRankCard,
|
|
5693
|
-
|
|
5694
|
-
|
|
5693
|
+
mt as OraculoGameSlide,
|
|
5694
|
+
ue as OraculoGridGroup,
|
|
5695
5695
|
_a as OraculoLiveCasinoCard,
|
|
5696
|
-
|
|
5696
|
+
Ke as OraculoLogoMediosPago,
|
|
5697
5697
|
vo as OraculoPageLandingPreview,
|
|
5698
5698
|
Gn as OraculoSeccionBanners,
|
|
5699
5699
|
bn as OraculoSeccionBonoBienvenida,
|
|
@@ -5701,17 +5701,17 @@ export {
|
|
|
5701
5701
|
ln as OraculoSeccionCasinoEnVivo,
|
|
5702
5702
|
vn as OraculoSeccionClubOlimpo,
|
|
5703
5703
|
Ha as OraculoSeccionDestacados,
|
|
5704
|
-
|
|
5704
|
+
Cn as OraculoSeccionEventoCombinadas,
|
|
5705
5705
|
Bn as OraculoSeccionEventoEnVivo,
|
|
5706
5706
|
Wn as OraculoSeccionEventoSemana,
|
|
5707
5707
|
Hn as OraculoSeccionMediosPago,
|
|
5708
5708
|
Xa as OraculoSeccionTopJuegos,
|
|
5709
5709
|
gn as OraculoSeccionVirtuales,
|
|
5710
|
-
|
|
5710
|
+
bo as OraculoSectionHost,
|
|
5711
5711
|
ge as OraculoSectionTitle,
|
|
5712
|
-
|
|
5712
|
+
xt as OraculoThemeProvider,
|
|
5713
5713
|
Xa as OraculoTopJuegoItem,
|
|
5714
|
-
|
|
5714
|
+
Ze as OraculoWelcomeBanner,
|
|
5715
5715
|
vo as default
|
|
5716
5716
|
};
|
|
5717
5717
|
//# sourceMappingURL=index.es.js.map
|