oraculo-ui 0.2.24 → 0.2.26
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 +1123 -1094
- package/dist/index.es.js.map +1 -1
- package/dist/interfaces/oraculo/InterfaceBanner.d.ts +1 -0
- package/dist/interfaces/oraculo/InterfaceDestacados.d.ts +1 -0
- package/dist/organisms/OraculoSeccionDestacados/OraculoSeccionDestacados.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import { Link as rt, Box as
|
|
3
|
-
import fe, { useState as
|
|
1
|
+
import { jsx as t, jsxs as b, Fragment as pe } from "react/jsx-runtime";
|
|
2
|
+
import { Link as rt, Box as ee, useMediaQuery as De, IconButton as Ke, Typography as st, Stack as Oe, Container as Et } from "@mui/material";
|
|
3
|
+
import fe, { useState as Z, useEffect as Q, useRef as V, forwardRef as Tt, useImperativeHandle as kt, useCallback as Ee, createContext as $t, useContext as Nt, useMemo as ie, useLayoutEffect as Mt } from "react";
|
|
4
4
|
import j from "@mui/material/Skeleton";
|
|
5
|
-
import { Splide as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
5
|
+
import { Splide as Bt, SplideSlide as At } from "@splidejs/react-splide";
|
|
6
|
+
import q from "@mui/material/Box";
|
|
7
|
+
import ue from "@mui/material/Typography";
|
|
8
8
|
import H from "@mui/material/Stack";
|
|
9
9
|
import { useCaptureInteraction as ae } from "@olimpo/capture-client";
|
|
10
|
-
import { ChevronLeftRounded as
|
|
10
|
+
import { ChevronLeftRounded as Ae, ChevronRightRounded as ze } from "@mui/icons-material";
|
|
11
11
|
import xe from "@mui/material/useMediaQuery";
|
|
12
12
|
import lt from "@mui/icons-material/ChevronLeftRounded";
|
|
13
13
|
import ct from "@mui/icons-material/ChevronRightRounded";
|
|
@@ -22,29 +22,29 @@ function X({
|
|
|
22
22
|
rel: i,
|
|
23
23
|
type: r = "button",
|
|
24
24
|
disabled: s = !1,
|
|
25
|
-
variant:
|
|
25
|
+
variant: c = "primary",
|
|
26
26
|
size: f,
|
|
27
27
|
fullWidth: h = !1,
|
|
28
28
|
fullHeight: u = !1,
|
|
29
|
-
className:
|
|
29
|
+
className: m = "",
|
|
30
30
|
ariaLabel: d,
|
|
31
|
-
leftIcon:
|
|
32
|
-
rightIcon:
|
|
33
|
-
iconOnly:
|
|
31
|
+
leftIcon: g,
|
|
32
|
+
rightIcon: p,
|
|
33
|
+
iconOnly: v
|
|
34
34
|
}) {
|
|
35
|
-
const
|
|
35
|
+
const C = !!e && e !== !0, O = (!!g ? 1 : 0) + (!!p ? 1 : 0) == 1, D = v != null ? v : O && !C, y = [
|
|
36
36
|
"orc-btn",
|
|
37
|
-
|
|
37
|
+
c === "secondary" ? "orc-btn--secondary" : c === "tertiary" ? "orc-btn--tertiary" : "orc-btn--primary",
|
|
38
38
|
f ? `orc-btn--${f}` : "",
|
|
39
39
|
h ? "orc-btn--full" : "",
|
|
40
40
|
u ? "orc-btn--fullHeight" : "",
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
].filter(Boolean).join(" "),
|
|
44
|
-
|
|
45
|
-
!
|
|
46
|
-
|
|
47
|
-
] }),
|
|
41
|
+
D ? "orc-btn--iconOnly" : "",
|
|
42
|
+
m
|
|
43
|
+
].filter(Boolean).join(" "), $ = /* @__PURE__ */ b(pe, { children: [
|
|
44
|
+
g && /* @__PURE__ */ t("span", { className: "orc-btn__icon", children: g }),
|
|
45
|
+
!D && /* @__PURE__ */ t("span", { className: "orc-btn__label", children: e }),
|
|
46
|
+
p && /* @__PURE__ */ t("span", { className: "orc-btn__icon", children: p })
|
|
47
|
+
] }), E = s ? !0 : void 0;
|
|
48
48
|
return n ? /* @__PURE__ */ t(
|
|
49
49
|
rt,
|
|
50
50
|
{
|
|
@@ -52,21 +52,21 @@ function X({
|
|
|
52
52
|
target: o,
|
|
53
53
|
rel: i,
|
|
54
54
|
"aria-label": d,
|
|
55
|
-
"aria-disabled":
|
|
56
|
-
tabIndex:
|
|
57
|
-
className:
|
|
58
|
-
onClick:
|
|
59
|
-
children:
|
|
55
|
+
"aria-disabled": E,
|
|
56
|
+
tabIndex: E ? -1 : void 0,
|
|
57
|
+
className: y,
|
|
58
|
+
onClick: E ? (A) => A.preventDefault() : a,
|
|
59
|
+
children: $
|
|
60
60
|
}
|
|
61
61
|
) : /* @__PURE__ */ t(
|
|
62
62
|
"button",
|
|
63
63
|
{
|
|
64
64
|
type: r,
|
|
65
65
|
onClick: a,
|
|
66
|
-
disabled: !!
|
|
66
|
+
disabled: !!E,
|
|
67
67
|
"aria-label": d,
|
|
68
|
-
className:
|
|
69
|
-
children:
|
|
68
|
+
className: y,
|
|
69
|
+
children: $
|
|
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__ */ b("div", { className: r, children: [
|
|
85
85
|
a && /* @__PURE__ */ t(
|
|
86
86
|
"img",
|
|
87
87
|
{
|
|
@@ -101,9 +101,9 @@ const dt = ({
|
|
|
101
101
|
durationMs: i = 5e3
|
|
102
102
|
}) => {
|
|
103
103
|
if (e <= 1) return null;
|
|
104
|
-
const r = ["orc-dots", o].filter(Boolean).join(" "), [s,
|
|
105
|
-
return
|
|
106
|
-
|
|
104
|
+
const r = ["orc-dots", o].filter(Boolean).join(" "), [s, c] = Z(0);
|
|
105
|
+
return Q(() => {
|
|
106
|
+
c((f) => f + 1);
|
|
107
107
|
}, [a, i]), /* @__PURE__ */ t("div", { className: r, role: "tablist", "aria-label": "Carousel pagination", children: Array.from({ length: e }).map((f, h) => {
|
|
108
108
|
const u = h === a;
|
|
109
109
|
return /* @__PURE__ */ t("span", { className: "orc-dots__cell", children: /* @__PURE__ */ t(
|
|
@@ -118,14 +118,14 @@ const dt = ({
|
|
|
118
118
|
"--dot-progress-ms": `${i}ms`
|
|
119
119
|
} : void 0,
|
|
120
120
|
onClick: () => {
|
|
121
|
-
u &&
|
|
121
|
+
u && c((m) => m + 1), n == null || n(h);
|
|
122
122
|
}
|
|
123
123
|
},
|
|
124
124
|
u ? `a-${h}-${s}` : `i-${h}`
|
|
125
125
|
) }, h);
|
|
126
126
|
}) });
|
|
127
127
|
};
|
|
128
|
-
function
|
|
128
|
+
function me({
|
|
129
129
|
children: e,
|
|
130
130
|
minWidth: a = 32,
|
|
131
131
|
spacing: n = 2,
|
|
@@ -149,7 +149,7 @@ function ue({
|
|
|
149
149
|
}
|
|
150
150
|
function Ze({ src: e, alt: a }) {
|
|
151
151
|
return /* @__PURE__ */ t(
|
|
152
|
-
|
|
152
|
+
ee,
|
|
153
153
|
{
|
|
154
154
|
sx: {
|
|
155
155
|
position: "relative",
|
|
@@ -160,7 +160,7 @@ function Ze({ src: e, alt: a }) {
|
|
|
160
160
|
display: "inline-block"
|
|
161
161
|
},
|
|
162
162
|
children: /* @__PURE__ */ t(
|
|
163
|
-
|
|
163
|
+
ee,
|
|
164
164
|
{
|
|
165
165
|
component: "img",
|
|
166
166
|
src: e,
|
|
@@ -184,7 +184,7 @@ const Dt = "oraculo__OraculoEventTitle-module__contenedor___rg1vw", Ut = "oracul
|
|
|
184
184
|
subtitle: Vt
|
|
185
185
|
};
|
|
186
186
|
function Wt({ title: e, subtitle: a }) {
|
|
187
|
-
return /* @__PURE__ */
|
|
187
|
+
return /* @__PURE__ */ b(
|
|
188
188
|
"div",
|
|
189
189
|
{
|
|
190
190
|
className: Le.contenedor,
|
|
@@ -200,12 +200,12 @@ function Wt({ title: e, subtitle: a }) {
|
|
|
200
200
|
children: e
|
|
201
201
|
}
|
|
202
202
|
),
|
|
203
|
-
a && /* @__PURE__ */
|
|
203
|
+
a && /* @__PURE__ */ b(
|
|
204
204
|
"div",
|
|
205
205
|
{
|
|
206
206
|
className: Le.flexGroup,
|
|
207
207
|
children: [
|
|
208
|
-
/* @__PURE__ */
|
|
208
|
+
/* @__PURE__ */ b("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 Gt({ text: e, color: a = "#ff3b3b", textColor: n = "#fff" }) {
|
|
|
241
241
|
);
|
|
242
242
|
}
|
|
243
243
|
function jt({ live: e, time: a }) {
|
|
244
|
-
return /* @__PURE__ */
|
|
244
|
+
return /* @__PURE__ */ b("div", { className: "oli-font", style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
|
|
245
245
|
e && /* @__PURE__ */ t(Gt, { text: "En vivo" }),
|
|
246
246
|
a && /* @__PURE__ */ t("span", { style: { fontSize: "14px", fontWeight: 400, lineHeight: "18px", paddingTop: "4px" }, children: a })
|
|
247
247
|
] });
|
|
248
248
|
}
|
|
249
249
|
function Ht({ title: e, subtitle: a, live: n = !1, time: o = "" }) {
|
|
250
|
-
return /* @__PURE__ */
|
|
250
|
+
return /* @__PURE__ */ b(
|
|
251
251
|
"div",
|
|
252
252
|
{
|
|
253
253
|
style: {
|
|
@@ -283,7 +283,7 @@ const Yt = "oraculo__OraculoEventScore-module__scoreWrapper___fWwEr", Qt = "orac
|
|
|
283
283
|
small: aa
|
|
284
284
|
};
|
|
285
285
|
function pt({ text: e, name: a, size: n = "normal" }) {
|
|
286
|
-
return /* @__PURE__ */
|
|
286
|
+
return /* @__PURE__ */ b(
|
|
287
287
|
"div",
|
|
288
288
|
{
|
|
289
289
|
className: `${ve.scoreWrapper} ${ve[n]}`,
|
|
@@ -309,8 +309,8 @@ const na = "oraculo__OraculoEventTeamInfo-module__team___UfpUs", oa = "oraculo__
|
|
|
309
309
|
};
|
|
310
310
|
function pa({ jersey: e, className: a }) {
|
|
311
311
|
const n = `#${e.base}`, o = e.sleeve ? `#${e.sleeve}` : n, 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__ */ b("div", { className: `${Se.polo} ${a != null ? a : ""}`, children: [
|
|
313
|
+
/* @__PURE__ */ t("div", { className: Se.svgWrapper, children: /* @__PURE__ */ b("svg", { viewBox: "0 0 656 656", "aria-hidden": !0, children: [
|
|
314
314
|
/* @__PURE__ */ t(
|
|
315
315
|
"path",
|
|
316
316
|
{
|
|
@@ -318,11 +318,11 @@ function pa({ jersey: e, className: a }) {
|
|
|
318
318
|
d: "m62 265 5.8-17c-.4-.7-.6-1.5-.4-2 .2-.7.8-1.2 1.2-1.4l1.2-4 9-21.6c.2-1 1-3.5 2.4-6.4a69.9 69.9 0 0 1 4.1-17.2l2.9-7 2.9-11.4c1.7-5.8 5.2-18.4 5.8-22 .6-3.6 6.8-19 9.8-26.2.4-.9 2.4-4.7 7.2-12.8 5.4-12.2 23.5-27.2 32-33.1l6.6-3.7 7.9-3.6 17.3-6.2 16.6-7.1L215 52c7-4.1 21.8-12.5 24.1-13.2 2.3-.8 5-3.5 6-4.7 1.2-1.2 4.2-3.8 6.6-4.7 2.3-1 8.2-6.8 10.8-9.6 1.6-1.4 3.8-4.7 9.2-7.5 5.3-2.9 20.4-4 27.2-4.3h25.6l16.7.3 14.1.6 10.3.7 9.5 1.7c6.4.6 12.6 4.3 15.4 8l2.7 3.1 8.9 8 1.8.7 4.9 3 2.7 3.5c4.2 2.2 13.1 7.1 15.2 8.7 2 1.6 30.1 15.4 44 22 8 3.2 39 12.3 55.3 30 5.2 4.3 7 7.8 11.4 12.4 5.1 5.3 15.1 29 16.9 32 1.4 2.6 5 17 6.8 24l4.8 20.5 8.4 29 8.9 22.7 2.3 5.4.6 1.5c.5.6 1.4 2 1 2.6-.2.6 0 2 .2 2.7l1 2.6 2 5.8 2.2 5.9c.3 1.3-4.3 4-6.6 5.2l-11.1 5-12.6 4.7-15 5-14.6 4.6-10.9 2.4a66 66 0 0 1-8.6 1.4c-3.4.3-4.7-.4-4.9-.8l-5-12.3-1.9-3.8-1.8-1.6.1-.8v-1l-.4-1.8-1.3-4.1-3.3-9-1.3-2-2.2-5.7-2.5-.3-1 .8v2l-2.7 13.1-8.7 58-.9 6.4-.2 7.9c0 3-1 16-1.7 18.3l-2.5 9-.2 7.6-.3 8.7-.3 7.5.3 4 .5 15c.3 1.9-.6 7-1.1 9.3-.6 2.4-1.6 7.5-1.4 8.8.3 1.4-.2 4.4-.5 5.8l-1.3 8.9c-.2 1.4-.8 5-1.3 7.2.7 1.6 4.7 14.6 5.9 17.8 1.2 3.3 4.8 19.4 5 20.7.3 1 1.1 7.8 1.5 11 .1 2.5.3 8 .2 10 0 2-.8 6.6-1.1 8.6-.2 1.7-.7 5.5-1.2 7s-1.2 8.5-1.4 11.8A81.1 81.1 0 0 1 477 552l.3 7.1.2 6.5 1.4 17.7.5 6 1.5 7.7.4 4.6c.3 2.1.7 7 .7 10.1.3 3-2.5 6-4 7 0 .2-1.2 1-4.6 3-6.4 5-26.3 11.6-35.5 14.3a379.2 379.2 0 0 1-58.6 11.2c-2.3.8-27 2.2-39 2.7-8.3 0-27 0-34.5-.4-11.5.9-47.4-4.8-63.9-7.7-6.3-.9-42.1-10.4-48-14.4-3.7-2.4-14.3-8-16.9-9.7a10.7 10.7 0 0 1-4.1-5.4c-.3-1 .1-8.6.4-12.3l.6-5 1.4-9.6 1-8 .3-4.3-.4-7.7-1-10.8v-13.8l.7-10 1.1-7.7 1.8-8 2.8-9.5 3.3-9.3a78 78 0 0 1-2.5-20.8 1112.2 1112.2 0 0 1 .6-14.1c-.1-.7 2.1-10.2 3.3-15l1-3.8-.1-.8c-1.4-8.3-1.5-14-1.9-15.4a78 78 0 0 1 .4-10.9l2-6.7.4-2-.4-1.5a67.6 67.6 0 0 1-7.3-27l-.2-7.7.5-5.4.3-1.5.4-3.9.7-5 .2-2.2-.2-.4-.3-6-1-3.1-.3-4-.7-7.6-1.5-8.3-.8-4.2-1.4-9.2-.4-4.3L172 279l-2.2-14.6a545 545 0 0 1-1.7-8.5c-.1-1-2-2.1-3-2.6 0 .6-.6 1.5-1.7 2-1.2.7-2.4 1.3-2.7 2.2l-.8 4.7a15 15 0 0 1-2.5 4.1 16.4 16.4 0 0 0-2.6 6.3l-.3 2.4v1.3l-1.4 1.1-.3.3-6 14.5c-.7 2.3-1.3 1.8-1.9 1.5l-10.5-3.1-9-3-18.3-6-20-6.8-13-4.8c-2.1-1-7-3-9.4-3.8-2.5-.8-3-1.3-2.8-1.4Z"
|
|
319
319
|
}
|
|
320
320
|
),
|
|
321
|
-
i && /* @__PURE__ */
|
|
321
|
+
i && /* @__PURE__ */ b(pe, { 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(pe, { 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 pa({ 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__ */ b("div", { className: `oli-font ${_e.team} ${_e[n]}`, children: [
|
|
371
371
|
a != null && a.base ? /* @__PURE__ */ t(
|
|
372
372
|
pa,
|
|
373
373
|
{
|
|
@@ -384,23 +384,23 @@ function fa(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
|
-
const
|
|
390
|
-
if (!
|
|
389
|
+
const c = e.current;
|
|
390
|
+
if (!c) return;
|
|
391
391
|
const f = (h) => {
|
|
392
392
|
const u = a.current;
|
|
393
393
|
if (!u || !u.go) return;
|
|
394
|
-
const { deltaX:
|
|
395
|
-
if (Math.abs(
|
|
396
|
-
h.preventDefault(), r.current +=
|
|
397
|
-
const
|
|
398
|
-
if (
|
|
399
|
-
const
|
|
400
|
-
r.current = 0, s.current =
|
|
394
|
+
const { deltaX: m, deltaY: d } = h;
|
|
395
|
+
if (Math.abs(m) <= Math.abs(d)) return;
|
|
396
|
+
h.preventDefault(), r.current += m;
|
|
397
|
+
const g = Date.now();
|
|
398
|
+
if (g - s.current < i || Math.abs(r.current) < o) return;
|
|
399
|
+
const p = r.current > 0 ? ">" : "<";
|
|
400
|
+
r.current = 0, s.current = g, u.go(p);
|
|
401
401
|
};
|
|
402
|
-
return
|
|
403
|
-
|
|
402
|
+
return c.addEventListener("wheel", f, { passive: !1 }), () => {
|
|
403
|
+
c.removeEventListener("wheel", f), r.current = 0;
|
|
404
404
|
};
|
|
405
405
|
}, [n, o, i, e, a]);
|
|
406
406
|
}
|
|
@@ -409,7 +409,7 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
|
|
|
409
409
|
right: ha,
|
|
410
410
|
left: ba,
|
|
411
411
|
svg: va
|
|
412
|
-
}, _a =
|
|
412
|
+
}, _a = Bt, ya = At, he = Tt(
|
|
413
413
|
({
|
|
414
414
|
items: e = [],
|
|
415
415
|
renderItem: a,
|
|
@@ -418,86 +418,86 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
|
|
|
418
418
|
breakpoints: i,
|
|
419
419
|
options: r = {},
|
|
420
420
|
className: s = "",
|
|
421
|
-
onMove:
|
|
421
|
+
onMove: c,
|
|
422
422
|
useIndexAsKey: f = !1,
|
|
423
423
|
enableHorizontalWheel: h = !0,
|
|
424
424
|
showRightGradient: u = !1
|
|
425
|
-
},
|
|
426
|
-
const d = V(null),
|
|
427
|
-
fa(
|
|
425
|
+
}, m) => {
|
|
426
|
+
const d = V(null), g = V(null), p = V(e.length), v = V(null), C = V(null);
|
|
427
|
+
fa(g, d, {
|
|
428
428
|
enabled: h
|
|
429
|
-
}), kt(
|
|
429
|
+
}), kt(m, () => ({
|
|
430
430
|
next: () => {
|
|
431
|
-
var
|
|
432
|
-
return (
|
|
431
|
+
var E;
|
|
432
|
+
return (E = d.current) == null ? void 0 : E.go(">");
|
|
433
433
|
},
|
|
434
434
|
prev: () => {
|
|
435
|
-
var
|
|
436
|
-
return (
|
|
435
|
+
var E;
|
|
436
|
+
return (E = d.current) == null ? void 0 : E.go("<");
|
|
437
437
|
},
|
|
438
|
-
go: (
|
|
439
|
-
var
|
|
440
|
-
return (
|
|
438
|
+
go: (E) => {
|
|
439
|
+
var A;
|
|
440
|
+
return (A = d.current) == null ? void 0 : A.go(E);
|
|
441
441
|
}
|
|
442
442
|
}));
|
|
443
|
-
const _ = (
|
|
443
|
+
const _ = (E) => {
|
|
444
444
|
var W;
|
|
445
|
-
const
|
|
445
|
+
const A = E.Components.Slides, N = E.Components.Controller, x = E.root.querySelector(".splide__track"), T = (W = x == null ? void 0 : x.clientWidth) != null ? W : 0, L = N.getIndex(), z = A.getLength();
|
|
446
446
|
let R = 0, U = L;
|
|
447
|
-
for (let
|
|
448
|
-
const
|
|
449
|
-
if (!
|
|
450
|
-
U =
|
|
447
|
+
for (let G = L; G < z; G++) {
|
|
448
|
+
const w = A.getAt(G);
|
|
449
|
+
if (!w || (R += w.slide.offsetWidth, R > T)) break;
|
|
450
|
+
U = G;
|
|
451
451
|
}
|
|
452
452
|
return { visibleStart: L, visibleEnd: U };
|
|
453
|
-
},
|
|
454
|
-
const
|
|
455
|
-
return !
|
|
456
|
-
},
|
|
453
|
+
}, I = (E) => {
|
|
454
|
+
const A = E.root.querySelector(".splide__track"), N = E.root.querySelector(".splide__list");
|
|
455
|
+
return !A || !N ? !1 : N.scrollWidth > A.clientWidth + 1;
|
|
456
|
+
}, O = Ee((E) => {
|
|
457
457
|
var U, W;
|
|
458
|
-
const
|
|
459
|
-
if (!
|
|
460
|
-
|
|
458
|
+
const N = E.Components.Slides.getLength();
|
|
459
|
+
if (!I(E)) {
|
|
460
|
+
c == null || c({
|
|
461
461
|
index: 0,
|
|
462
462
|
isStart: !0,
|
|
463
463
|
isEnd: !0,
|
|
464
|
-
total:
|
|
464
|
+
total: N,
|
|
465
465
|
visibleStart: 0,
|
|
466
|
-
visibleEnd:
|
|
466
|
+
visibleEnd: N - 1
|
|
467
467
|
});
|
|
468
468
|
return;
|
|
469
469
|
}
|
|
470
|
-
const { visibleStart:
|
|
471
|
-
u && ((U =
|
|
472
|
-
const R =
|
|
473
|
-
|
|
470
|
+
const { visibleStart: x, visibleEnd: T } = _(E), L = x === 0, z = T === N - 1;
|
|
471
|
+
u && ((U = v.current) == null || U.style.setProperty("--gradient-opacity", L ? "0" : "1"), (W = C.current) == null || W.style.setProperty("--gradient-opacity", z ? "0" : "1"));
|
|
472
|
+
const R = E.Components.Controller.getIndex();
|
|
473
|
+
c == null || c({
|
|
474
474
|
index: R,
|
|
475
475
|
isStart: L,
|
|
476
476
|
isEnd: z,
|
|
477
|
-
total:
|
|
478
|
-
visibleStart:
|
|
479
|
-
visibleEnd:
|
|
477
|
+
total: N,
|
|
478
|
+
visibleStart: x,
|
|
479
|
+
visibleEnd: T
|
|
480
480
|
});
|
|
481
|
-
}, [
|
|
481
|
+
}, [c]);
|
|
482
482
|
fe.useEffect(() => {
|
|
483
|
-
var
|
|
484
|
-
const
|
|
485
|
-
if (!
|
|
486
|
-
const
|
|
487
|
-
|
|
488
|
-
|
|
483
|
+
var N;
|
|
484
|
+
const E = (N = d.current) == null ? void 0 : N.splide;
|
|
485
|
+
if (!E) return;
|
|
486
|
+
const A = p.current !== e.length;
|
|
487
|
+
p.current = e.length, A && requestAnimationFrame(() => {
|
|
488
|
+
E.refresh(), O(E);
|
|
489
489
|
});
|
|
490
|
-
}, [e.length,
|
|
491
|
-
const
|
|
492
|
-
var
|
|
493
|
-
const
|
|
494
|
-
|
|
495
|
-
}, [
|
|
496
|
-
(
|
|
497
|
-
|
|
490
|
+
}, [e.length, O]);
|
|
491
|
+
const D = Ee(() => {
|
|
492
|
+
var A;
|
|
493
|
+
const E = (A = d.current) == null ? void 0 : A.splide;
|
|
494
|
+
E && (E.go(0, !1), O(E));
|
|
495
|
+
}, [O]), y = Ee(
|
|
496
|
+
(E) => {
|
|
497
|
+
O(E);
|
|
498
498
|
},
|
|
499
|
-
[
|
|
500
|
-
),
|
|
499
|
+
[O]
|
|
500
|
+
), $ = {
|
|
501
501
|
type: "slide",
|
|
502
502
|
trimSpace: !1,
|
|
503
503
|
drag: !0,
|
|
@@ -512,10 +512,10 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
|
|
|
512
512
|
...r,
|
|
513
513
|
...h ? { wheel: !1 } : {}
|
|
514
514
|
};
|
|
515
|
-
return /* @__PURE__ */
|
|
515
|
+
return /* @__PURE__ */ b(
|
|
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: [
|
|
@@ -523,24 +523,24 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
|
|
|
523
523
|
_a,
|
|
524
524
|
{
|
|
525
525
|
ref: d,
|
|
526
|
-
options:
|
|
527
|
-
onMove:
|
|
528
|
-
onMounted:
|
|
529
|
-
onResize:
|
|
530
|
-
children: e.map((
|
|
531
|
-
var
|
|
532
|
-
return /* @__PURE__ */ t(ya, { children: a(
|
|
526
|
+
options: $,
|
|
527
|
+
onMove: O,
|
|
528
|
+
onMounted: y,
|
|
529
|
+
onResize: D,
|
|
530
|
+
children: e.map((E, A) => {
|
|
531
|
+
var N;
|
|
532
|
+
return /* @__PURE__ */ t(ya, { children: a(E, A) }, f ? A : (N = E.id) != null ? N : A);
|
|
533
533
|
})
|
|
534
534
|
}
|
|
535
535
|
),
|
|
536
|
-
u && /* @__PURE__ */
|
|
536
|
+
u && /* @__PURE__ */ b(pe, { children: [
|
|
537
537
|
/* @__PURE__ */ t(
|
|
538
538
|
"div",
|
|
539
539
|
{
|
|
540
|
-
ref:
|
|
540
|
+
ref: v,
|
|
541
541
|
className: `${ye.gradientOverlay} ${ye.left}`,
|
|
542
542
|
style: { "--gradient-opacity": "0" },
|
|
543
|
-
children: /* @__PURE__ */
|
|
543
|
+
children: /* @__PURE__ */ b(
|
|
544
544
|
"svg",
|
|
545
545
|
{
|
|
546
546
|
className: ye.svg,
|
|
@@ -550,7 +550,7 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "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__ */ b("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 ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
|
|
|
562
562
|
/* @__PURE__ */ t(
|
|
563
563
|
"div",
|
|
564
564
|
{
|
|
565
|
-
ref:
|
|
565
|
+
ref: C,
|
|
566
566
|
className: `${ye.gradientOverlay} ${ye.right}`,
|
|
567
567
|
style: { "--gradient-opacity": "1" },
|
|
568
|
-
children: /* @__PURE__ */
|
|
568
|
+
children: /* @__PURE__ */ b(
|
|
569
569
|
"svg",
|
|
570
570
|
{
|
|
571
571
|
className: ye.svg,
|
|
@@ -575,7 +575,7 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "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__ */ b("linearGradient", { id: "paint_right", x1: "0", y1: "92", x2: "152", y2: "92", gradientUnits: "userSpaceOnUse", children: [
|
|
579
579
|
/* @__PURE__ */ t("stop", { offset: "0.59737", stopColor: "#121212", stopOpacity: "0" }),
|
|
580
580
|
/* @__PURE__ */ t("stop", { offset: "1", stopColor: "#121212" })
|
|
581
581
|
] }) })
|
|
@@ -595,11 +595,11 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
|
|
|
595
595
|
size: n = "sm",
|
|
596
596
|
fillParent: o = !1
|
|
597
597
|
}) => {
|
|
598
|
-
const i = n === "lg" ? { w: 280, h: 352 } : { w: 152, h: 168 }, r = (
|
|
599
|
-
|
|
598
|
+
const i = n === "lg" ? { w: 280, h: 352 } : { w: 152, h: 168 }, r = (c) => {
|
|
599
|
+
c.stopPropagation(), a == null || a();
|
|
600
600
|
}, s = o ? { width: "100%", height: "100%" } : { width: `${i.w}px`, height: `${i.h}px` };
|
|
601
|
-
return /* @__PURE__ */
|
|
602
|
-
|
|
601
|
+
return /* @__PURE__ */ b(
|
|
602
|
+
q,
|
|
603
603
|
{
|
|
604
604
|
onClick: a,
|
|
605
605
|
role: "button",
|
|
@@ -641,7 +641,7 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
|
|
|
641
641
|
}
|
|
642
642
|
),
|
|
643
643
|
/* @__PURE__ */ t(
|
|
644
|
-
|
|
644
|
+
q,
|
|
645
645
|
{
|
|
646
646
|
className: "oraculo-game-card-overlay",
|
|
647
647
|
sx: {
|
|
@@ -656,7 +656,7 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
|
|
|
656
656
|
}
|
|
657
657
|
),
|
|
658
658
|
/* @__PURE__ */ t(
|
|
659
|
-
|
|
659
|
+
q,
|
|
660
660
|
{
|
|
661
661
|
className: "oraculo-game-card-btn",
|
|
662
662
|
sx: {
|
|
@@ -686,27 +686,27 @@ function xa({
|
|
|
686
686
|
md: { w: 186, h: 264, r: 22.6, font: 64 }
|
|
687
687
|
}
|
|
688
688
|
}) {
|
|
689
|
-
var
|
|
690
|
-
const r = (
|
|
691
|
-
var _,
|
|
689
|
+
var m, d, g, p;
|
|
690
|
+
const r = (v, C) => {
|
|
691
|
+
var _, I, O, D;
|
|
692
692
|
return {
|
|
693
|
-
xs: (
|
|
694
|
-
md: (
|
|
693
|
+
xs: (I = (_ = i.xs) == null ? void 0 : _[v]) != null ? I : C,
|
|
694
|
+
md: (D = (O = i.md) == null ? void 0 : O[v]) != null ? D : C
|
|
695
695
|
};
|
|
696
|
-
}, s = r("w", 186),
|
|
697
|
-
xs: Math.round(((d = (
|
|
698
|
-
md: Math.round(((
|
|
696
|
+
}, s = r("w", 186), c = r("h", 264), f = r("r", 22.6), h = r("font", 64), u = {
|
|
697
|
+
xs: Math.round(((d = (m = i.xs) == null ? void 0 : m.font) != null ? d : 64) * 0.28),
|
|
698
|
+
md: Math.round(((p = (g = i.md) == null ? void 0 : g.font) != null ? p : 64) * 0.28)
|
|
699
699
|
};
|
|
700
|
-
return /* @__PURE__ */
|
|
701
|
-
|
|
700
|
+
return /* @__PURE__ */ b(
|
|
701
|
+
q,
|
|
702
702
|
{
|
|
703
703
|
sx: {
|
|
704
704
|
position: "relative",
|
|
705
705
|
width: "100%",
|
|
706
706
|
maxWidth: { xs: `${s.xs}px`, md: `${s.md}px` },
|
|
707
707
|
aspectRatio: {
|
|
708
|
-
xs: `${s.xs}/${
|
|
709
|
-
md: `${s.md}/${
|
|
708
|
+
xs: `${s.xs}/${c.xs}`,
|
|
709
|
+
md: `${s.md}/${c.md}`
|
|
710
710
|
},
|
|
711
711
|
borderRadius: { xs: `${f.xs}px`, md: `${f.md}px` },
|
|
712
712
|
boxSizing: "border-box",
|
|
@@ -725,7 +725,7 @@ function xa({
|
|
|
725
725
|
},
|
|
726
726
|
children: [
|
|
727
727
|
/* @__PURE__ */ t(
|
|
728
|
-
|
|
728
|
+
q,
|
|
729
729
|
{
|
|
730
730
|
sx: {
|
|
731
731
|
position: "absolute",
|
|
@@ -759,7 +759,7 @@ function xa({
|
|
|
759
759
|
}
|
|
760
760
|
),
|
|
761
761
|
/* @__PURE__ */ t(
|
|
762
|
-
|
|
762
|
+
q,
|
|
763
763
|
{
|
|
764
764
|
component: "span",
|
|
765
765
|
sx: {
|
|
@@ -795,8 +795,8 @@ const wa = ({
|
|
|
795
795
|
onClick: i
|
|
796
796
|
}) => {
|
|
797
797
|
var r;
|
|
798
|
-
return /* @__PURE__ */
|
|
799
|
-
|
|
798
|
+
return /* @__PURE__ */ b(
|
|
799
|
+
q,
|
|
800
800
|
{
|
|
801
801
|
onClick: i,
|
|
802
802
|
sx: {
|
|
@@ -820,7 +820,7 @@ const wa = ({
|
|
|
820
820
|
},
|
|
821
821
|
children: [
|
|
822
822
|
/* @__PURE__ */ t(
|
|
823
|
-
|
|
823
|
+
q,
|
|
824
824
|
{
|
|
825
825
|
component: "img",
|
|
826
826
|
src: e,
|
|
@@ -836,7 +836,7 @@ const wa = ({
|
|
|
836
836
|
}
|
|
837
837
|
),
|
|
838
838
|
/* @__PURE__ */ t(
|
|
839
|
-
|
|
839
|
+
q,
|
|
840
840
|
{
|
|
841
841
|
className: "orc-live-provider-label",
|
|
842
842
|
sx: {
|
|
@@ -850,7 +850,7 @@ const wa = ({
|
|
|
850
850
|
pointerEvents: "none"
|
|
851
851
|
},
|
|
852
852
|
children: /* @__PURE__ */ t(
|
|
853
|
-
|
|
853
|
+
ue,
|
|
854
854
|
{
|
|
855
855
|
sx: {
|
|
856
856
|
color: "#fff",
|
|
@@ -866,7 +866,7 @@ const wa = ({
|
|
|
866
866
|
]
|
|
867
867
|
}
|
|
868
868
|
);
|
|
869
|
-
}, Pe = 12, Fe = ({ r: e = 16 }) => /* @__PURE__ */ t(
|
|
869
|
+
}, Pe = 12, Fe = ({ r: e = 16 }) => /* @__PURE__ */ t(q, { sx: { width: "100%", height: "100%", borderRadius: e, overflow: "hidden" }, children: /* @__PURE__ */ t(
|
|
870
870
|
j,
|
|
871
871
|
{
|
|
872
872
|
variant: "rectangular",
|
|
@@ -890,9 +890,9 @@ const wa = ({
|
|
|
890
890
|
}) => {
|
|
891
891
|
var r, s;
|
|
892
892
|
if (a === "mosaic") {
|
|
893
|
-
const
|
|
894
|
-
return /* @__PURE__ */
|
|
895
|
-
|
|
893
|
+
const c = e[0], f = e.slice(1, 5);
|
|
894
|
+
return /* @__PURE__ */ b(
|
|
895
|
+
q,
|
|
896
896
|
{
|
|
897
897
|
sx: {
|
|
898
898
|
display: "grid",
|
|
@@ -916,7 +916,7 @@ const wa = ({
|
|
|
916
916
|
},
|
|
917
917
|
children: [
|
|
918
918
|
/* @__PURE__ */ t(
|
|
919
|
-
|
|
919
|
+
q,
|
|
920
920
|
{
|
|
921
921
|
sx: {
|
|
922
922
|
width: { xs: 184, md: 280 },
|
|
@@ -925,21 +925,21 @@ const wa = ({
|
|
|
925
925
|
overflow: "hidden",
|
|
926
926
|
borderRadius: 2
|
|
927
927
|
},
|
|
928
|
-
children: o ? /* @__PURE__ */ t(Fe, {}) :
|
|
928
|
+
children: o ? /* @__PURE__ */ t(Fe, {}) : c && /* @__PURE__ */ t(
|
|
929
929
|
Te,
|
|
930
930
|
{
|
|
931
|
-
imageUrl: `https://olimpo.bet${(s = (r =
|
|
931
|
+
imageUrl: `https://olimpo.bet${(s = (r = c.background) != null ? r : c.imageUrl) != null ? s : ""}`,
|
|
932
932
|
size: "lg",
|
|
933
933
|
fillParent: !0,
|
|
934
|
-
onClick: () => n == null ? void 0 : n(
|
|
934
|
+
onClick: () => n == null ? void 0 : n(c, 0)
|
|
935
935
|
}
|
|
936
936
|
)
|
|
937
937
|
}
|
|
938
938
|
),
|
|
939
939
|
(o ? Array.from({ length: 4 }) : f).map((h, u) => {
|
|
940
|
-
var
|
|
940
|
+
var m, d;
|
|
941
941
|
return /* @__PURE__ */ t(
|
|
942
|
-
|
|
942
|
+
q,
|
|
943
943
|
{
|
|
944
944
|
sx: {
|
|
945
945
|
width: { xs: 104, md: 152 },
|
|
@@ -950,7 +950,7 @@ const wa = ({
|
|
|
950
950
|
children: o ? /* @__PURE__ */ t(Fe, {}) : /* @__PURE__ */ t(
|
|
951
951
|
Te,
|
|
952
952
|
{
|
|
953
|
-
imageUrl: `https://olimpo.bet${(d = (
|
|
953
|
+
imageUrl: `https://olimpo.bet${(d = (m = h.background) != null ? m : h.imageUrl) != null ? d : ""}`,
|
|
954
954
|
size: "sm",
|
|
955
955
|
fillParent: !0,
|
|
956
956
|
onClick: () => n == null ? void 0 : n(h, u + 1)
|
|
@@ -965,7 +965,7 @@ const wa = ({
|
|
|
965
965
|
);
|
|
966
966
|
}
|
|
967
967
|
return /* @__PURE__ */ t(
|
|
968
|
-
|
|
968
|
+
q,
|
|
969
969
|
{
|
|
970
970
|
sx: {
|
|
971
971
|
display: "grid",
|
|
@@ -980,23 +980,23 @@ const wa = ({
|
|
|
980
980
|
gap: `${Pe}px`,
|
|
981
981
|
gridAutoFlow: "column"
|
|
982
982
|
},
|
|
983
|
-
children: (o ? Array.from({ length: i }) : e).map((
|
|
984
|
-
var h, u,
|
|
983
|
+
children: (o ? Array.from({ length: i }) : e).map((c, f) => {
|
|
984
|
+
var h, u, m;
|
|
985
985
|
return /* @__PURE__ */ t(
|
|
986
|
-
|
|
986
|
+
q,
|
|
987
987
|
{
|
|
988
988
|
sx: { overflow: "hidden", borderRadius: 2 },
|
|
989
989
|
children: o ? /* @__PURE__ */ t(Fe, {}) : /* @__PURE__ */ t(
|
|
990
990
|
Te,
|
|
991
991
|
{
|
|
992
|
-
imageUrl: `https://olimpo.bet${(u = (h =
|
|
992
|
+
imageUrl: `https://olimpo.bet${(u = (h = c.background) != null ? h : c.imageUrl) != null ? u : ""}`,
|
|
993
993
|
size: "sm",
|
|
994
994
|
fillParent: !0,
|
|
995
|
-
onClick: () => n == null ? void 0 : n(
|
|
995
|
+
onClick: () => n == null ? void 0 : n(c, f)
|
|
996
996
|
}
|
|
997
997
|
)
|
|
998
998
|
},
|
|
999
|
-
o ? `sk-${f}` : (
|
|
999
|
+
o ? `sk-${f}` : (m = c.id) != null ? m : f
|
|
1000
1000
|
);
|
|
1001
1001
|
})
|
|
1002
1002
|
}
|
|
@@ -1009,39 +1009,39 @@ const wa = ({
|
|
|
1009
1009
|
onButtonClick: i,
|
|
1010
1010
|
backgroundImage: r,
|
|
1011
1011
|
alt: s,
|
|
1012
|
-
className:
|
|
1012
|
+
className: c = "",
|
|
1013
1013
|
variant: f = "small"
|
|
1014
1014
|
}) => {
|
|
1015
|
-
const h = a ? a.slice(0, 2) : "", u = a ? a.slice(2) : "",
|
|
1016
|
-
return /* @__PURE__ */
|
|
1017
|
-
|
|
1015
|
+
const h = a ? a.slice(0, 2) : "", u = a ? a.slice(2) : "", m = f === "large";
|
|
1016
|
+
return /* @__PURE__ */ b(
|
|
1017
|
+
q,
|
|
1018
1018
|
{
|
|
1019
|
-
className:
|
|
1019
|
+
className: c,
|
|
1020
1020
|
sx: {
|
|
1021
1021
|
position: "relative",
|
|
1022
1022
|
width: "100%",
|
|
1023
1023
|
maxWidth: {
|
|
1024
1024
|
xs: 328,
|
|
1025
|
-
md:
|
|
1025
|
+
md: m ? 618 : 456
|
|
1026
1026
|
},
|
|
1027
1027
|
mx: "auto"
|
|
1028
1028
|
},
|
|
1029
1029
|
children: [
|
|
1030
1030
|
r && /* @__PURE__ */ t(
|
|
1031
|
-
|
|
1031
|
+
q,
|
|
1032
1032
|
{
|
|
1033
1033
|
sx: {
|
|
1034
1034
|
position: "relative",
|
|
1035
1035
|
width: "100%",
|
|
1036
1036
|
aspectRatio: {
|
|
1037
1037
|
xs: "328 / 188",
|
|
1038
|
-
md:
|
|
1038
|
+
md: m ? "618 / 346" : "456 / 272"
|
|
1039
1039
|
},
|
|
1040
1040
|
borderRadius: "14px",
|
|
1041
1041
|
overflow: "hidden"
|
|
1042
1042
|
},
|
|
1043
1043
|
children: /* @__PURE__ */ t(
|
|
1044
|
-
|
|
1044
|
+
q,
|
|
1045
1045
|
{
|
|
1046
1046
|
component: "img",
|
|
1047
1047
|
src: r,
|
|
@@ -1061,7 +1061,7 @@ const wa = ({
|
|
|
1061
1061
|
}
|
|
1062
1062
|
),
|
|
1063
1063
|
/* @__PURE__ */ t(
|
|
1064
|
-
|
|
1064
|
+
q,
|
|
1065
1065
|
{
|
|
1066
1066
|
sx: {
|
|
1067
1067
|
position: "absolute",
|
|
@@ -1074,8 +1074,8 @@ const wa = ({
|
|
|
1074
1074
|
pl: "14%",
|
|
1075
1075
|
pr: { xs: "14%", lg: "15%" }
|
|
1076
1076
|
},
|
|
1077
|
-
children: /* @__PURE__ */
|
|
1078
|
-
|
|
1077
|
+
children: /* @__PURE__ */ b(
|
|
1078
|
+
q,
|
|
1079
1079
|
{
|
|
1080
1080
|
sx: {
|
|
1081
1081
|
maxWidth: "60%",
|
|
@@ -1085,7 +1085,7 @@ const wa = ({
|
|
|
1085
1085
|
},
|
|
1086
1086
|
children: [
|
|
1087
1087
|
e && /* @__PURE__ */ t(
|
|
1088
|
-
|
|
1088
|
+
ue,
|
|
1089
1089
|
{
|
|
1090
1090
|
sx: {
|
|
1091
1091
|
fontSize: { xs: 12, md: 20 },
|
|
@@ -1095,8 +1095,8 @@ const wa = ({
|
|
|
1095
1095
|
children: e
|
|
1096
1096
|
}
|
|
1097
1097
|
),
|
|
1098
|
-
a && /* @__PURE__ */
|
|
1099
|
-
|
|
1098
|
+
a && /* @__PURE__ */ b(
|
|
1099
|
+
q,
|
|
1100
1100
|
{
|
|
1101
1101
|
component: "p",
|
|
1102
1102
|
sx: {
|
|
@@ -1114,7 +1114,7 @@ const wa = ({
|
|
|
1114
1114
|
},
|
|
1115
1115
|
children: [
|
|
1116
1116
|
/* @__PURE__ */ t(
|
|
1117
|
-
|
|
1117
|
+
q,
|
|
1118
1118
|
{
|
|
1119
1119
|
component: "span",
|
|
1120
1120
|
sx: { fontSize: { xs: 35, md: 48 }, mr: 0.5 },
|
|
@@ -1122,7 +1122,7 @@ const wa = ({
|
|
|
1122
1122
|
}
|
|
1123
1123
|
),
|
|
1124
1124
|
/* @__PURE__ */ t(
|
|
1125
|
-
|
|
1125
|
+
q,
|
|
1126
1126
|
{
|
|
1127
1127
|
component: "span",
|
|
1128
1128
|
sx: { fontSize: { xs: 52, md: 77 } },
|
|
@@ -1133,7 +1133,7 @@ const wa = ({
|
|
|
1133
1133
|
}
|
|
1134
1134
|
),
|
|
1135
1135
|
n && /* @__PURE__ */ t(
|
|
1136
|
-
|
|
1136
|
+
ue,
|
|
1137
1137
|
{
|
|
1138
1138
|
sx: {
|
|
1139
1139
|
pb: "20px",
|
|
@@ -1161,7 +1161,7 @@ const wa = ({
|
|
|
1161
1161
|
imgSrcMobile: i,
|
|
1162
1162
|
imgSrcDesktopBg: r,
|
|
1163
1163
|
imgSrcDesktopLogo: s
|
|
1164
|
-
}) => /* @__PURE__ */
|
|
1164
|
+
}) => /* @__PURE__ */ b(pe, { children: [
|
|
1165
1165
|
/* @__PURE__ */ t("div", { className: "orc-co-bgMobile", children: /* @__PURE__ */ t(
|
|
1166
1166
|
"img",
|
|
1167
1167
|
{
|
|
@@ -1170,7 +1170,7 @@ const wa = ({
|
|
|
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__ */ b("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 wa = ({
|
|
|
1179
1179
|
className: "orc-co-bgDesktopImg"
|
|
1180
1180
|
}
|
|
1181
1181
|
) }),
|
|
1182
|
-
/* @__PURE__ */
|
|
1182
|
+
/* @__PURE__ */ b("div", { className: "orc-co-desktopContent", children: [
|
|
1183
1183
|
s && /* @__PURE__ */ t(
|
|
1184
1184
|
"img",
|
|
1185
1185
|
{
|
|
@@ -1192,11 +1192,11 @@ const wa = ({
|
|
|
1192
1192
|
/* @__PURE__ */ t(X, { onClick: n, variant: "primary", size: "md", children: a })
|
|
1193
1193
|
] })
|
|
1194
1194
|
] }) }),
|
|
1195
|
-
/* @__PURE__ */
|
|
1195
|
+
/* @__PURE__ */ b("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
|
-
] }), Ia = "oraculo__OraculoEventCombinadasCard-module__card___ulQeY", Ca = "oraculo__OraculoEventCombinadasCard-module__combinadas___Gxrld", Oa = "oraculo__OraculoEventCombinadasCard-module__combinadasScroll___47cZl", Ea = "oraculo__OraculoEventCombinadasCard-module__apuestaItem___YnYMy", Ta = "oraculo__OraculoEventCombinadasCard-module__lineContainer___G5rbU", ka = "oraculo__OraculoEventCombinadasCard-module__circle___eehm-", $a = "oraculo__OraculoEventCombinadasCard-module__line___Eb2pK", Na = "oraculo__OraculoEventCombinadasCard-module__apuestaText___b5s7S", Ma = "oraculo__OraculoEventCombinadasCard-module__cuotaTotal___Lohvu",
|
|
1199
|
+
] }), Ia = "oraculo__OraculoEventCombinadasCard-module__card___ulQeY", Ca = "oraculo__OraculoEventCombinadasCard-module__combinadas___Gxrld", Oa = "oraculo__OraculoEventCombinadasCard-module__combinadasScroll___47cZl", Ea = "oraculo__OraculoEventCombinadasCard-module__apuestaItem___YnYMy", Ta = "oraculo__OraculoEventCombinadasCard-module__lineContainer___G5rbU", ka = "oraculo__OraculoEventCombinadasCard-module__circle___eehm-", $a = "oraculo__OraculoEventCombinadasCard-module__line___Eb2pK", Na = "oraculo__OraculoEventCombinadasCard-module__apuestaText___b5s7S", Ma = "oraculo__OraculoEventCombinadasCard-module__cuotaTotal___Lohvu", ce = {
|
|
1200
1200
|
card: Ia,
|
|
1201
1201
|
combinadas: Ca,
|
|
1202
1202
|
combinadasScroll: Oa,
|
|
@@ -1211,10 +1211,10 @@ 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
|
}
|
|
1214
|
-
function
|
|
1214
|
+
function Ba() {
|
|
1215
1215
|
window.location.href = "/deportes#in-play";
|
|
1216
1216
|
}
|
|
1217
|
-
function
|
|
1217
|
+
function Aa() {
|
|
1218
1218
|
window.location.href = "/deportes#sports-hub/football";
|
|
1219
1219
|
}
|
|
1220
1220
|
function za() {
|
|
@@ -1239,39 +1239,39 @@ const ht = $t(void 0), bt = ({ children: e, docId: a, moduleId: n }) => {
|
|
|
1239
1239
|
if (!e)
|
|
1240
1240
|
throw new Error("useDocContext debe usarse dentro de DocIdProvider");
|
|
1241
1241
|
return e;
|
|
1242
|
-
}, ne = () => vt().docId,
|
|
1242
|
+
}, ne = () => vt().docId, le = () => vt().moduleId;
|
|
1243
1243
|
function Ra({ coupon: e }) {
|
|
1244
1244
|
var h;
|
|
1245
1245
|
const a = ae(), n = ne();
|
|
1246
1246
|
function o(u) {
|
|
1247
|
-
var
|
|
1248
|
-
const
|
|
1247
|
+
var g, p;
|
|
1248
|
+
const m = [], d = Array.from(
|
|
1249
1249
|
new Map(
|
|
1250
|
-
((
|
|
1250
|
+
((g = u == null ? void 0 : u.events) != null ? g : []).filter(Boolean).map((v) => [v.id, v])
|
|
1251
1251
|
).values()
|
|
1252
1252
|
);
|
|
1253
|
-
return d.forEach((
|
|
1254
|
-
var
|
|
1255
|
-
const
|
|
1256
|
-
|
|
1257
|
-
var
|
|
1258
|
-
if (!((
|
|
1259
|
-
const
|
|
1260
|
-
if (!
|
|
1261
|
-
let
|
|
1262
|
-
const
|
|
1263
|
-
["Más de", "Mas de", "Over"].includes(
|
|
1264
|
-
id:
|
|
1265
|
-
value:
|
|
1266
|
-
label: (L = (
|
|
1267
|
-
odds: (z =
|
|
1268
|
-
position: (R =
|
|
1269
|
-
eventId:
|
|
1253
|
+
return d.forEach((v) => {
|
|
1254
|
+
var O;
|
|
1255
|
+
const C = (O = v.betoffers) != null ? O : [], _ = v.homeName, I = v.awayName;
|
|
1256
|
+
C.forEach((D) => {
|
|
1257
|
+
var A, N, x, T, L, z, R;
|
|
1258
|
+
if (!((A = D == null ? void 0 : D.outcomes) != null && A.length)) return;
|
|
1259
|
+
const y = D.outcomes[0];
|
|
1260
|
+
if (!y) return;
|
|
1261
|
+
let $ = "";
|
|
1262
|
+
const E = y != null && y.line ? y.line / 1e3 : "";
|
|
1263
|
+
["Más de", "Mas de", "Over"].includes(y.label) ? ($ = `Más de ${E}`, y.participant && ($ = `${y.participant} - ${$}`)) : ["Menos de", "Menos", "Under"].includes(y.label) ? ($ = `Menos de ${E}`, y.participant && ($ = `${y.participant} - ${$}`)) : ["Sí", "No"].includes(y.label) ? ($ = y.label, y.participant && ($ = `${y.participant} - ${$}`)) : ["1X", "12", "X2"].includes(y.label) ? (y.label === "1X" && ($ = `${_} o Empate`), y.label === "12" && ($ = `${_} o ${I}`), y.label === "X2" && ($ = `${I} o Empate`)) : ($ = (x = (N = y.participant) != null ? N : y.label) != null ? x : "", E !== "" && $ === y.label && ($ = `${y.label} ${E}`)), m.push({
|
|
1264
|
+
id: y.id,
|
|
1265
|
+
value: $,
|
|
1266
|
+
label: (L = (T = D.criterion) == null ? void 0 : T.label) != null ? L : "",
|
|
1267
|
+
odds: (z = y.odds) != null ? z : 0,
|
|
1268
|
+
position: (R = y.position) != null ? R : 0,
|
|
1269
|
+
eventId: v.id
|
|
1270
1270
|
});
|
|
1271
1271
|
});
|
|
1272
1272
|
}), {
|
|
1273
|
-
outcomes:
|
|
1274
|
-
total: Number((
|
|
1273
|
+
outcomes: m.sort((v, C) => v.position - C.position),
|
|
1274
|
+
total: Number((p = u == null ? void 0 : u.combinadoTotal) != null ? p : 0).toLocaleString("en-US", {
|
|
1275
1275
|
minimumFractionDigits: 2,
|
|
1276
1276
|
maximumFractionDigits: 2
|
|
1277
1277
|
}),
|
|
@@ -1281,47 +1281,47 @@ function Ra({ coupon: e }) {
|
|
|
1281
1281
|
function i(u) {
|
|
1282
1282
|
if (!u || !Array.isArray(u.events) || u.events.length === 0)
|
|
1283
1283
|
return "/deportes#home";
|
|
1284
|
-
const
|
|
1285
|
-
if (
|
|
1286
|
-
return `/deportes#event/${
|
|
1287
|
-
const d =
|
|
1288
|
-
if (
|
|
1289
|
-
const
|
|
1290
|
-
if (Array.isArray(
|
|
1291
|
-
return `/deportes#sports-hub/${
|
|
1284
|
+
const m = u.events;
|
|
1285
|
+
if (m.length === 1)
|
|
1286
|
+
return `/deportes#event/${m[0].id}`;
|
|
1287
|
+
const d = m[0].groupId;
|
|
1288
|
+
if (m.every((p) => p.groupId === d)) {
|
|
1289
|
+
const p = m[0].path;
|
|
1290
|
+
if (Array.isArray(p) && p.length > 0)
|
|
1291
|
+
return `/deportes#sports-hub/${p.map((C) => C.termKey).filter(Boolean).join("/")}`;
|
|
1292
1292
|
}
|
|
1293
1293
|
return "/deportes#home";
|
|
1294
1294
|
}
|
|
1295
|
-
const r = (u,
|
|
1296
|
-
const d = Array.isArray(u) ? u : [u],
|
|
1295
|
+
const r = (u, m) => {
|
|
1296
|
+
const d = Array.isArray(u) ? u : [u], g = Array.from(
|
|
1297
1297
|
new Set(
|
|
1298
|
-
s.outcomes.map((
|
|
1299
|
-
var
|
|
1300
|
-
const _ = f.get(Number(
|
|
1301
|
-
return (
|
|
1298
|
+
s.outcomes.map((C) => {
|
|
1299
|
+
var I;
|
|
1300
|
+
const _ = f.get(Number(C.eventId));
|
|
1301
|
+
return (I = _ == null ? void 0 : _.name) != null ? I : "";
|
|
1302
1302
|
})
|
|
1303
1303
|
)
|
|
1304
|
-
).filter(Boolean),
|
|
1304
|
+
).filter(Boolean), p = g.length > 0 ? g.join(" + ") : JSON.stringify(d), v = m ? `${p} - Cuota: ${m}` : p;
|
|
1305
1305
|
a({
|
|
1306
1306
|
element: "evento_semana_outcome",
|
|
1307
|
-
label: `Landing: ${n} - OraculoEventCombinadasCard - Click: ${
|
|
1307
|
+
label: `Landing: ${n} - OraculoEventCombinadasCard - Click: ${v}`,
|
|
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:
|
|
1314
|
+
tags: { section: "OraculoEventCombinadasCard", outcomes: v }
|
|
1315
1315
|
}), Ue(i(e), u);
|
|
1316
1316
|
};
|
|
1317
1317
|
if (!((h = e == null ? void 0 : e.events) != null && h.length)) return null;
|
|
1318
|
-
const s = o(e),
|
|
1318
|
+
const s = o(e), c = s.outcomes.reduce((u, m) => (u[m.eventId] || (u[m.eventId] = []), u[m.eventId].push(m), u), {}), f = new Map(
|
|
1319
1319
|
s.events.map((u) => [u.id, u])
|
|
1320
1320
|
);
|
|
1321
|
-
return /* @__PURE__ */
|
|
1322
|
-
/* @__PURE__ */ t("div", { className:
|
|
1321
|
+
return /* @__PURE__ */ b("div", { className: ce.card, children: [
|
|
1322
|
+
/* @__PURE__ */ t("div", { className: ce.combinadas, children: /* @__PURE__ */ t("div", { className: ce.combinadasScroll, children: /* @__PURE__ */ t(H, { direction: "column", spacing: 1.5, useFlexGap: !0, children: Object.entries(c).reverse().map(([u, m]) => {
|
|
1323
1323
|
const d = f.get(Number(u));
|
|
1324
|
-
return d ? /* @__PURE__ */
|
|
1324
|
+
return d ? /* @__PURE__ */ b(
|
|
1325
1325
|
H,
|
|
1326
1326
|
{
|
|
1327
1327
|
direction: "column",
|
|
@@ -1343,32 +1343,32 @@ function Ra({ coupon: e }) {
|
|
|
1343
1343
|
src: "/assets/img/home/Combinadas/line.png"
|
|
1344
1344
|
}
|
|
1345
1345
|
),
|
|
1346
|
-
|
|
1347
|
-
/* @__PURE__ */
|
|
1348
|
-
/* @__PURE__ */ t("div", { className:
|
|
1349
|
-
|
|
1346
|
+
m.map((g, p) => /* @__PURE__ */ b("div", { className: ce.apuestaItem, children: [
|
|
1347
|
+
/* @__PURE__ */ b("div", { className: ce.lineContainer, children: [
|
|
1348
|
+
/* @__PURE__ */ t("div", { className: ce.circle }),
|
|
1349
|
+
p < m.length - 1 && /* @__PURE__ */ t("div", { className: ce.line })
|
|
1350
1350
|
] }),
|
|
1351
|
-
/* @__PURE__ */
|
|
1352
|
-
/* @__PURE__ */ t("strong", { children:
|
|
1351
|
+
/* @__PURE__ */ b("div", { className: ce.apuestaText, children: [
|
|
1352
|
+
/* @__PURE__ */ t("strong", { children: g.value }),
|
|
1353
1353
|
" | ",
|
|
1354
|
-
|
|
1354
|
+
g.label
|
|
1355
1355
|
] })
|
|
1356
|
-
] }, `${u}-${
|
|
1356
|
+
] }, `${u}-${p}`))
|
|
1357
1357
|
]
|
|
1358
1358
|
},
|
|
1359
1359
|
u
|
|
1360
1360
|
) : null;
|
|
1361
1361
|
}) }) }) }),
|
|
1362
|
-
/* @__PURE__ */
|
|
1362
|
+
/* @__PURE__ */ b(
|
|
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: ce.cuotaTotal,
|
|
1370
1370
|
children: [
|
|
1371
|
-
/* @__PURE__ */
|
|
1371
|
+
/* @__PURE__ */ b("span", { children: [
|
|
1372
1372
|
"Cuota total: ",
|
|
1373
1373
|
/* @__PURE__ */ t("strong", { children: s.total })
|
|
1374
1374
|
] }),
|
|
@@ -1385,7 +1385,7 @@ function Ra({ coupon: e }) {
|
|
|
1385
1385
|
)
|
|
1386
1386
|
] });
|
|
1387
1387
|
}
|
|
1388
|
-
const
|
|
1388
|
+
const de = {
|
|
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",
|
|
@@ -1407,32 +1407,32 @@ function La({
|
|
|
1407
1407
|
rel: i,
|
|
1408
1408
|
type: r = "button",
|
|
1409
1409
|
disabled: s = !1,
|
|
1410
|
-
variant:
|
|
1410
|
+
variant: c = "primary",
|
|
1411
1411
|
size: f,
|
|
1412
1412
|
fullWidth: h = !1,
|
|
1413
1413
|
fullHeight: u = !1,
|
|
1414
|
-
className:
|
|
1414
|
+
className: m = "",
|
|
1415
1415
|
ariaLabel: d,
|
|
1416
|
-
leftIcon:
|
|
1417
|
-
rightIcon:
|
|
1418
|
-
iconOnly:
|
|
1416
|
+
leftIcon: g,
|
|
1417
|
+
rightIcon: p,
|
|
1418
|
+
iconOnly: v
|
|
1419
1419
|
}) {
|
|
1420
|
-
const
|
|
1421
|
-
|
|
1420
|
+
const C = !!e && e !== !0, O = (!!g ? 1 : 0) + (!!p ? 1 : 0) == 1, D = v != null ? v : O && !C, y = [
|
|
1421
|
+
de["orc-btn"],
|
|
1422
1422
|
// base
|
|
1423
|
-
|
|
1423
|
+
de[`orc-btn--${c}`],
|
|
1424
1424
|
// variant primary/secondary/tertiary
|
|
1425
|
-
f ?
|
|
1425
|
+
f ? de[`orc-btn--${f}`] : "",
|
|
1426
1426
|
// sm / md / lg
|
|
1427
|
-
h ?
|
|
1428
|
-
u ?
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
].filter(Boolean).join(" "),
|
|
1432
|
-
|
|
1433
|
-
!
|
|
1434
|
-
|
|
1435
|
-
] }),
|
|
1427
|
+
h ? de["orc-btn--full"] : "",
|
|
1428
|
+
u ? de["orc-btn--fullHeight"] : "",
|
|
1429
|
+
D ? de["orc-btn--iconOnly"] : "",
|
|
1430
|
+
m
|
|
1431
|
+
].filter(Boolean).join(" "), $ = /* @__PURE__ */ b(pe, { children: [
|
|
1432
|
+
g && /* @__PURE__ */ t("span", { className: de["orc-btn__icon"], children: g }),
|
|
1433
|
+
!D && /* @__PURE__ */ t("span", { className: de["orc-btn__label"], children: e }),
|
|
1434
|
+
p && /* @__PURE__ */ t("span", { className: de["orc-btn__icon"], children: p })
|
|
1435
|
+
] }), E = s ? !0 : void 0;
|
|
1436
1436
|
return n ? /* @__PURE__ */ t(
|
|
1437
1437
|
rt,
|
|
1438
1438
|
{
|
|
@@ -1440,21 +1440,21 @@ function La({
|
|
|
1440
1440
|
target: o,
|
|
1441
1441
|
rel: i,
|
|
1442
1442
|
"aria-label": d,
|
|
1443
|
-
"aria-disabled":
|
|
1444
|
-
tabIndex:
|
|
1445
|
-
className:
|
|
1446
|
-
onClick:
|
|
1447
|
-
children:
|
|
1443
|
+
"aria-disabled": E,
|
|
1444
|
+
tabIndex: E ? -1 : void 0,
|
|
1445
|
+
className: y,
|
|
1446
|
+
onClick: E ? (A) => A.preventDefault() : a,
|
|
1447
|
+
children: $
|
|
1448
1448
|
}
|
|
1449
1449
|
) : /* @__PURE__ */ t(
|
|
1450
1450
|
"button",
|
|
1451
1451
|
{
|
|
1452
1452
|
type: r,
|
|
1453
1453
|
onClick: a,
|
|
1454
|
-
disabled: !!
|
|
1454
|
+
disabled: !!E,
|
|
1455
1455
|
"aria-label": d,
|
|
1456
|
-
className:
|
|
1457
|
-
children:
|
|
1456
|
+
className: y,
|
|
1457
|
+
children: $
|
|
1458
1458
|
}
|
|
1459
1459
|
);
|
|
1460
1460
|
}
|
|
@@ -1484,11 +1484,11 @@ const Pa = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", Fa = "
|
|
|
1484
1484
|
return o || (a === "home" ? Xe : Ye);
|
|
1485
1485
|
};
|
|
1486
1486
|
function Da({ event: e, liveData: a, betOffers: n, jersey: o }) {
|
|
1487
|
-
var
|
|
1487
|
+
var c, f, h, u, m, d, g, p, v, C, _;
|
|
1488
1488
|
const i = n == null ? void 0 : n.find(
|
|
1489
|
-
(
|
|
1490
|
-
var
|
|
1491
|
-
return ((
|
|
1489
|
+
(I) => {
|
|
1490
|
+
var O;
|
|
1491
|
+
return ((O = I.betOfferType) == null ? void 0 : O.id) === 2;
|
|
1492
1492
|
}
|
|
1493
1493
|
), r = {
|
|
1494
1494
|
englishLabel: "",
|
|
@@ -1504,28 +1504,28 @@ function Da({ 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__ */ b(H, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1508
|
+
/* @__PURE__ */ b(H, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
1509
1509
|
/* @__PURE__ */ t(
|
|
1510
1510
|
Ht,
|
|
1511
1511
|
{
|
|
1512
|
-
title: (h = (f = (
|
|
1512
|
+
title: (h = (f = (c = e == null ? void 0 : e.path) == null ? void 0 : c[0]) == null ? void 0 : f.name) != null ? h : "",
|
|
1513
1513
|
subtitle: (u = e == null ? void 0 : e.group) != null ? u : "",
|
|
1514
1514
|
live: !0,
|
|
1515
|
-
time: ((
|
|
1515
|
+
time: ((m = a == null ? void 0 : a.matchClock) == null ? void 0 : m.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__ */ b(me, { 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(pt, { text: ((
|
|
1520
|
+
/* @__PURE__ */ t(pt, { text: ((g = (d = a == null ? void 0 : a.score) == null ? void 0 : d.home) != null ? g : 0) + ":" + ((v = (p = a == null ? void 0 : a.score) == null ? void 0 : p.away) != null ? v : 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
|
-
Ue("/deportes#event/live/" + e.id,
|
|
1528
|
-
}, className: ke.customButtonDisabled, children: /* @__PURE__ */ t("span", { className: ke.customButtonLabel, children:
|
|
1524
|
+
/* @__PURE__ */ b(H, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1525
|
+
/* @__PURE__ */ t(me, { spacing: 1, children: ((C = i == null ? void 0 : i.outcomes) != null ? C : s).map((I, O) => /* @__PURE__ */ t(ut, { text: I.label.toUpperCase() }, O)) }),
|
|
1526
|
+
/* @__PURE__ */ t(me, { spacing: 2, children: ((_ = i == null ? void 0 : i.outcomes) != null ? _ : s).map((I, O) => /* @__PURE__ */ t(La, { variant: "primary", disabled: I.odds == null || (i == null ? void 0 : i.cashOutStatus) == "SUSPENDED", onClick: () => {
|
|
1527
|
+
Ue("/deportes#event/live/" + e.id, I.id);
|
|
1528
|
+
}, className: ke.customButtonDisabled, children: /* @__PURE__ */ t("span", { className: ke.customButtonLabel, children: I.odds === void 0 ? "" : (I.odds / 1e3).toFixed(2) }) }, O)) })
|
|
1529
1529
|
] })
|
|
1530
1530
|
] }) });
|
|
1531
1531
|
}
|
|
@@ -1542,15 +1542,15 @@ const Ga = "oraculo__OraculoEventSemanaCard-module__cardContainer___4JuDe", ja =
|
|
|
1542
1542
|
equipos: Ka
|
|
1543
1543
|
};
|
|
1544
1544
|
function Za({ event: e, jersey: a }) {
|
|
1545
|
-
var s,
|
|
1545
|
+
var s, c, f, h, u, m, d;
|
|
1546
1546
|
const n = ae(), o = ne();
|
|
1547
|
-
function i(
|
|
1548
|
-
const
|
|
1549
|
-
let
|
|
1550
|
-
return
|
|
1547
|
+
function i(g) {
|
|
1548
|
+
const p = new Date(g), v = p.toLocaleDateString("es-ES", { weekday: "short" }).toUpperCase(), C = p.getDate().toString().padStart(2, "0"), _ = (p.getMonth() + 1).toString().padStart(2, "0");
|
|
1549
|
+
let I = p.toLocaleTimeString("es-PE", { hour: "numeric", minute: "2-digit", hour12: !0 }).toUpperCase();
|
|
1550
|
+
return I = I.replace(/\./g, "").replace(/A\s*M/i, "AM").replace(/P\s*M/i, "PM"), `${v} ${C}/${_} | ${I}`;
|
|
1551
1551
|
}
|
|
1552
|
-
const r = (
|
|
1553
|
-
const
|
|
1552
|
+
const r = (g, p) => {
|
|
1553
|
+
const v = `${e.homeName} vs ${e.awayName}`, C = p ? (p / 1e3).toFixed(2) : "", _ = C ? `${v} - Cuota: ${C}` : v;
|
|
1554
1554
|
n({
|
|
1555
1555
|
element: "evento_semana_outcome",
|
|
1556
1556
|
label: `Landing: ${o} - OraculoEventSemanaCard - Click: ${_}`,
|
|
@@ -1561,24 +1561,24 @@ function Za({ event: e, jersey: a }) {
|
|
|
1561
1561
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1562
1562
|
},
|
|
1563
1563
|
tags: { section: "OraculoEventSemanaCard", outcomes: _ }
|
|
1564
|
-
}), Ue("/deportes#event/" + e.id,
|
|
1564
|
+
}), Ue("/deportes#event/" + e.id, g);
|
|
1565
1565
|
};
|
|
1566
|
-
return /* @__PURE__ */
|
|
1566
|
+
return /* @__PURE__ */ b("div", { className: be.cardContainer, children: [
|
|
1567
1567
|
/* @__PURE__ */ t(mt, { title: (s = e == null ? void 0 : e.group) != null ? s : "" }),
|
|
1568
|
-
/* @__PURE__ */ t("div", { className: be.cardBackground, children: /* @__PURE__ */
|
|
1569
|
-
/* @__PURE__ */
|
|
1570
|
-
/* @__PURE__ */
|
|
1568
|
+
/* @__PURE__ */ t("div", { className: be.cardBackground, children: /* @__PURE__ */ b(H, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
1569
|
+
/* @__PURE__ */ b(H, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1570
|
+
/* @__PURE__ */ b("div", { className: be.equipos, children: [
|
|
1571
1571
|
/* @__PURE__ */ t(Ne, { name: e.homeName, size: "compact", jersey: Me(a, "home") }),
|
|
1572
1572
|
/* @__PURE__ */ t(pt, { 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(Wa, { 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__ */ b(H, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
1578
|
+
/* @__PURE__ */ t(me, { spacing: 1, children: ((h = (f = (c = e == null ? void 0 : e.outcome) == null ? void 0 : c[0]) == null ? void 0 : f.outcomes) != null ? h : []).map((g, p) => /* @__PURE__ */ t(ut, { text: g.label.toUpperCase() }, p)) }),
|
|
1579
|
+
/* @__PURE__ */ t("div", { className: be.jugadas, children: /* @__PURE__ */ t(me, { spacing: 1, children: ((d = (m = (u = e == null ? void 0 : e.outcome) == null ? void 0 : u[0]) == null ? void 0 : m.outcomes) != null ? d : []).map((g, p) => /* @__PURE__ */ t(X, { variant: "primary", fullHeight: !0, onClick: () => {
|
|
1580
|
+
r(g.id, g.odds);
|
|
1581
|
+
}, children: (g.odds / 1e3).toFixed(2) }, p)) }) })
|
|
1582
1582
|
] })
|
|
1583
1583
|
] }) })
|
|
1584
1584
|
] });
|
|
@@ -1588,66 +1588,74 @@ function Ja({
|
|
|
1588
1588
|
title: a = "Destacados",
|
|
1589
1589
|
iconUrl: n,
|
|
1590
1590
|
onViewMore: o,
|
|
1591
|
-
className: i = ""
|
|
1591
|
+
className: i = "",
|
|
1592
|
+
paddingMobile: r = "16px"
|
|
1592
1593
|
}) {
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1594
|
+
var D;
|
|
1595
|
+
const s = V(null), [c, f] = Z({ isStart: !0, isEnd: !1 }), h = ae(), u = ne(), m = le(), d = !e || e.length === 0, g = () => {
|
|
1596
|
+
var y;
|
|
1597
|
+
h({
|
|
1596
1598
|
element: "destacados_carousel_prev",
|
|
1597
|
-
label: `${
|
|
1599
|
+
label: `${u} - OraculoSeccionDestacados - Anterior`,
|
|
1598
1600
|
target: "carousel",
|
|
1599
1601
|
event_type: "click",
|
|
1600
|
-
module_id:
|
|
1602
|
+
module_id: m,
|
|
1601
1603
|
metadata: {
|
|
1602
1604
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1603
1605
|
},
|
|
1604
1606
|
tags: { section: "OraculoSeccionDestacados" }
|
|
1605
|
-
}), (
|
|
1606
|
-
},
|
|
1607
|
-
var
|
|
1608
|
-
|
|
1607
|
+
}), (y = s.current) == null || y.prev();
|
|
1608
|
+
}, p = () => {
|
|
1609
|
+
var y;
|
|
1610
|
+
h({
|
|
1609
1611
|
element: "destacados_carousel_next",
|
|
1610
|
-
label: `${
|
|
1612
|
+
label: `${u} - OraculoSeccionDestacados - Siguiente`,
|
|
1611
1613
|
target: "carousel",
|
|
1612
1614
|
event_type: "click",
|
|
1613
|
-
module_id:
|
|
1615
|
+
module_id: m,
|
|
1614
1616
|
metadata: {
|
|
1615
1617
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1616
1618
|
},
|
|
1617
1619
|
tags: { section: "OraculoSeccionDestacados" }
|
|
1618
|
-
}), (
|
|
1619
|
-
},
|
|
1620
|
-
|
|
1620
|
+
}), (y = s.current) == null || y.next();
|
|
1621
|
+
}, v = () => {
|
|
1622
|
+
h({
|
|
1621
1623
|
element: "destacados_view_more",
|
|
1622
|
-
label: `${
|
|
1624
|
+
label: `${u} - OraculoSeccionDestacados - Ver más`,
|
|
1623
1625
|
target: "https://www.olimpo.bet/promociones",
|
|
1624
1626
|
event_type: "click",
|
|
1625
|
-
module_id:
|
|
1627
|
+
module_id: m,
|
|
1626
1628
|
metadata: {
|
|
1627
1629
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1628
1630
|
},
|
|
1629
1631
|
tags: { section: "OraculoSeccionDestacados" }
|
|
1630
1632
|
}), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/promociones");
|
|
1631
|
-
},
|
|
1632
|
-
if (!
|
|
1633
|
-
const
|
|
1634
|
-
|
|
1633
|
+
}, C = (y) => {
|
|
1634
|
+
if (!y) return;
|
|
1635
|
+
const E = `https://www.olimpo.bet/promociones/${encodeURIComponent(y)}`;
|
|
1636
|
+
h({
|
|
1635
1637
|
element: "destacados_card",
|
|
1636
|
-
label: `${
|
|
1637
|
-
target:
|
|
1638
|
+
label: `${u} - OraculoSeccionDestacados - Click: ${String(y)}`,
|
|
1639
|
+
target: E,
|
|
1638
1640
|
event_type: "click",
|
|
1639
|
-
module_id:
|
|
1641
|
+
module_id: m,
|
|
1640
1642
|
metadata: {
|
|
1641
1643
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1642
1644
|
},
|
|
1643
1645
|
tags: {
|
|
1644
1646
|
section: "OraculoSeccionDestacados",
|
|
1645
|
-
promotion: String(
|
|
1647
|
+
promotion: String(y)
|
|
1646
1648
|
}
|
|
1647
|
-
}), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(
|
|
1648
|
-
},
|
|
1649
|
-
return
|
|
1650
|
-
|
|
1649
|
+
}), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(E);
|
|
1650
|
+
}, _ = i || void 0, I = xe("(max-width:950px)"), O = (D = e == null ? void 0 : e.length) != null ? D : 0;
|
|
1651
|
+
return Q(() => {
|
|
1652
|
+
if (O === 0) {
|
|
1653
|
+
f({ isStart: !0, isEnd: !0 });
|
|
1654
|
+
return;
|
|
1655
|
+
}
|
|
1656
|
+
f({ isStart: !0, isEnd: !1 });
|
|
1657
|
+
}, [O, I, r]), /* @__PURE__ */ b("section", { className: _, style: { width: "100%" }, children: [
|
|
1658
|
+
/* @__PURE__ */ b(
|
|
1651
1659
|
"header",
|
|
1652
1660
|
{
|
|
1653
1661
|
style: {
|
|
@@ -1656,22 +1664,22 @@ function Ja({
|
|
|
1656
1664
|
alignItems: "center",
|
|
1657
1665
|
columnGap: 12,
|
|
1658
1666
|
rowGap: 8,
|
|
1659
|
-
|
|
1660
|
-
paddingLeft:
|
|
1661
|
-
paddingRight:
|
|
1667
|
+
marginBottom: 16,
|
|
1668
|
+
paddingLeft: I ? r : 0,
|
|
1669
|
+
paddingRight: I ? r : 0
|
|
1662
1670
|
},
|
|
1663
1671
|
children: [
|
|
1664
1672
|
/* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
|
|
1665
|
-
/* @__PURE__ */
|
|
1673
|
+
/* @__PURE__ */ b("div", { style: { display: "flex", gap: 8 }, children: [
|
|
1666
1674
|
/* @__PURE__ */ t(
|
|
1667
1675
|
X,
|
|
1668
1676
|
{
|
|
1669
1677
|
ariaLabel: "Anterior",
|
|
1670
1678
|
variant: "secondary",
|
|
1671
1679
|
iconOnly: !0,
|
|
1672
|
-
leftIcon: /* @__PURE__ */ t(
|
|
1673
|
-
onClick:
|
|
1674
|
-
disabled:
|
|
1680
|
+
leftIcon: /* @__PURE__ */ t(Ae, {}),
|
|
1681
|
+
onClick: g,
|
|
1682
|
+
disabled: c.isStart || d
|
|
1675
1683
|
}
|
|
1676
1684
|
),
|
|
1677
1685
|
/* @__PURE__ */ t(
|
|
@@ -1681,43 +1689,42 @@ function Ja({
|
|
|
1681
1689
|
variant: "secondary",
|
|
1682
1690
|
iconOnly: !0,
|
|
1683
1691
|
rightIcon: /* @__PURE__ */ t(ze, {}),
|
|
1684
|
-
onClick:
|
|
1685
|
-
disabled:
|
|
1692
|
+
onClick: p,
|
|
1693
|
+
disabled: c.isEnd || d
|
|
1686
1694
|
}
|
|
1687
1695
|
)
|
|
1688
1696
|
] }),
|
|
1689
|
-
/* @__PURE__ */ t(X, { variant: "secondary", onClick:
|
|
1697
|
+
/* @__PURE__ */ t(X, { variant: "secondary", onClick: v, children: "Ver más" })
|
|
1690
1698
|
]
|
|
1691
1699
|
}
|
|
1692
1700
|
),
|
|
1693
1701
|
/* @__PURE__ */ t(
|
|
1694
1702
|
he,
|
|
1695
1703
|
{
|
|
1696
|
-
ref:
|
|
1704
|
+
ref: s,
|
|
1697
1705
|
items: e,
|
|
1698
1706
|
perPage: void 0,
|
|
1699
1707
|
gap: "16px",
|
|
1700
1708
|
enableHorizontalWheel: !0,
|
|
1701
|
-
showRightGradient: !
|
|
1709
|
+
showRightGradient: !I,
|
|
1702
1710
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
1703
1711
|
breakpoints: {
|
|
1704
|
-
768: { perPage: 2, focus: "start", padding: { left:
|
|
1712
|
+
768: { perPage: 2, focus: "start", padding: { left: r, right: r } },
|
|
1705
1713
|
1024: { perPage: 2.5, focus: "start", padding: { left: "24px", right: "24px" } }
|
|
1706
1714
|
},
|
|
1707
|
-
renderItem: (
|
|
1715
|
+
renderItem: (y) => /* @__PURE__ */ t(
|
|
1708
1716
|
"div",
|
|
1709
1717
|
{
|
|
1710
1718
|
style: {
|
|
1711
1719
|
textAlign: "center",
|
|
1712
|
-
marginTop: 16,
|
|
1713
1720
|
cursor: "pointer"
|
|
1714
1721
|
},
|
|
1715
|
-
onClick: () =>
|
|
1722
|
+
onClick: () => C(y.promotion),
|
|
1716
1723
|
children: /* @__PURE__ */ t(
|
|
1717
1724
|
"img",
|
|
1718
1725
|
{
|
|
1719
|
-
src: `https://olimpo.bet${
|
|
1720
|
-
alt:
|
|
1726
|
+
src: `https://olimpo.bet${y.image !== "" ? y.image : y.summary_image}`,
|
|
1727
|
+
alt: y.title,
|
|
1721
1728
|
style: {
|
|
1722
1729
|
width: "100%",
|
|
1723
1730
|
height: typeof window != "undefined" && window.innerWidth < 768 ? "80px" : "137px",
|
|
@@ -1728,19 +1735,19 @@ function Ja({
|
|
|
1728
1735
|
}
|
|
1729
1736
|
)
|
|
1730
1737
|
},
|
|
1731
|
-
`${
|
|
1738
|
+
`${y.title}-${y.image}`
|
|
1732
1739
|
),
|
|
1733
|
-
onMove: ({ isStart:
|
|
1734
|
-
|
|
1740
|
+
onMove: ({ isStart: y, isEnd: $ }) => {
|
|
1741
|
+
f({ isStart: y, isEnd: $ }), h({
|
|
1735
1742
|
element: "destacados_carousel_slide",
|
|
1736
|
-
label: `${
|
|
1743
|
+
label: `${u} - OraculoSeccionDestacados - Slide Carousel`,
|
|
1737
1744
|
target: "carousel",
|
|
1738
1745
|
event_type: "slide",
|
|
1739
|
-
module_id:
|
|
1746
|
+
module_id: m,
|
|
1740
1747
|
metadata: {
|
|
1741
1748
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
1742
|
-
isStart:
|
|
1743
|
-
isEnd:
|
|
1749
|
+
isStart: y,
|
|
1750
|
+
isEnd: $
|
|
1744
1751
|
},
|
|
1745
1752
|
tags: { section: "OraculoSeccionDestacados" }
|
|
1746
1753
|
});
|
|
@@ -1757,7 +1764,7 @@ function _t() {
|
|
|
1757
1764
|
function Xa(e) {
|
|
1758
1765
|
_t().extras = e;
|
|
1759
1766
|
}
|
|
1760
|
-
function
|
|
1767
|
+
function se(e) {
|
|
1761
1768
|
var a;
|
|
1762
1769
|
return (a = _t().extras) == null ? void 0 : a[e];
|
|
1763
1770
|
}
|
|
@@ -1770,40 +1777,40 @@ function Qa({
|
|
|
1770
1777
|
iconUrl: n,
|
|
1771
1778
|
onCardClick: o
|
|
1772
1779
|
}) {
|
|
1773
|
-
const i = ae(), r = ne(), s =
|
|
1774
|
-
() => (e != null ? e : []).map((
|
|
1775
|
-
var
|
|
1780
|
+
const i = ae(), r = ne(), s = le(), c = ie(
|
|
1781
|
+
() => (e != null ? e : []).map((m, d) => {
|
|
1782
|
+
var g;
|
|
1776
1783
|
return {
|
|
1777
|
-
...
|
|
1778
|
-
orden: (
|
|
1784
|
+
...m,
|
|
1785
|
+
orden: (g = m.orden) != null ? g : d + 1,
|
|
1779
1786
|
_originalIndex: d
|
|
1780
1787
|
};
|
|
1781
|
-
}).sort((
|
|
1788
|
+
}).sort((m, d) => m.orden != null && d.orden != null ? m.orden - d.orden : m._originalIndex - d._originalIndex),
|
|
1782
1789
|
[e]
|
|
1783
|
-
), f = !e || e.length === 0, h = f ? Array.from({ length: 6 }) :
|
|
1790
|
+
), f = !e || e.length === 0, h = f ? Array.from({ length: 6 }) : c.slice(0, 6), u = (m) => {
|
|
1784
1791
|
i({
|
|
1785
1792
|
element: "top_juegos_card",
|
|
1786
|
-
label: `${r} - OraculoSeccionTopJuegos - Open game: ${String(
|
|
1787
|
-
target: String(
|
|
1793
|
+
label: `${r} - OraculoSeccionTopJuegos - Open game: ${String(m.machine || "unknown")}`,
|
|
1794
|
+
target: String(m.machine || "unknown"),
|
|
1788
1795
|
event_type: "click",
|
|
1789
1796
|
module_id: s,
|
|
1790
1797
|
metadata: {
|
|
1791
1798
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1792
1799
|
},
|
|
1793
1800
|
tags: {
|
|
1794
|
-
game_name: String(
|
|
1801
|
+
game_name: String(m.machine || "unknown"),
|
|
1795
1802
|
section: "OraculoSeccionTopJuegos"
|
|
1796
1803
|
}
|
|
1797
1804
|
});
|
|
1798
|
-
const d =
|
|
1805
|
+
const d = se("showIframe"), g = se("loadMachine");
|
|
1799
1806
|
d == null || d(), requestAnimationFrame(() => {
|
|
1800
|
-
|
|
1807
|
+
g == null || g(m, !1, "CASINO");
|
|
1801
1808
|
});
|
|
1802
1809
|
};
|
|
1803
|
-
return /* @__PURE__ */ t("section", { style: { width: "100%" }, children: /* @__PURE__ */
|
|
1810
|
+
return /* @__PURE__ */ t("section", { style: { width: "100%" }, children: /* @__PURE__ */ b(H, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
1804
1811
|
/* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
|
|
1805
1812
|
/* @__PURE__ */ t(
|
|
1806
|
-
|
|
1813
|
+
q,
|
|
1807
1814
|
{
|
|
1808
1815
|
sx: {
|
|
1809
1816
|
display: "grid",
|
|
@@ -1815,19 +1822,19 @@ function Qa({
|
|
|
1815
1822
|
justifyItems: "center",
|
|
1816
1823
|
width: "100%"
|
|
1817
1824
|
},
|
|
1818
|
-
children: h.map((
|
|
1819
|
-
var
|
|
1825
|
+
children: h.map((m, d) => {
|
|
1826
|
+
var g, p;
|
|
1820
1827
|
return /* @__PURE__ */ t(
|
|
1821
1828
|
xa,
|
|
1822
1829
|
{
|
|
1823
|
-
imageUrl: f ? "" :
|
|
1824
|
-
orden: f ? d + 1 :
|
|
1830
|
+
imageUrl: f ? "" : m.background ? `https://olimpo.bet${m.background}` : `https://olimpo.bet${(g = m.logo) != null ? g : ""}`,
|
|
1831
|
+
orden: f ? d + 1 : m.orden,
|
|
1825
1832
|
loading: f,
|
|
1826
1833
|
onClick: f ? void 0 : () => {
|
|
1827
|
-
o == null || o(
|
|
1834
|
+
o == null || o(m), u(m);
|
|
1828
1835
|
}
|
|
1829
1836
|
},
|
|
1830
|
-
f ? `sk-${d}` : (
|
|
1837
|
+
f ? `sk-${d}` : (p = m.machine) != null ? p : `${d}`
|
|
1831
1838
|
);
|
|
1832
1839
|
})
|
|
1833
1840
|
}
|
|
@@ -1835,7 +1842,7 @@ function Qa({
|
|
|
1835
1842
|
] }) });
|
|
1836
1843
|
}
|
|
1837
1844
|
const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommendations", tn = (e, a) => {
|
|
1838
|
-
var n, o, i, r, s,
|
|
1845
|
+
var n, o, i, r, s, c, f, h, u, m, d, g, p, v;
|
|
1839
1846
|
return {
|
|
1840
1847
|
orden: Number(a),
|
|
1841
1848
|
machine: String(
|
|
@@ -1845,19 +1852,19 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1845
1852
|
name: (i = e.room_name) != null ? i : "",
|
|
1846
1853
|
web_name: (r = e.product) != null ? r : "",
|
|
1847
1854
|
provider: (s = e.service) != null ? s : "",
|
|
1848
|
-
sub_provider: (
|
|
1855
|
+
sub_provider: (c = e.service) != null ? c : "",
|
|
1849
1856
|
external_id: (f = e.external_id) != null ? f : "",
|
|
1850
1857
|
type: (h = e.game_type) != null ? h : "",
|
|
1851
1858
|
tags: (u = e.tags) != null ? u : "",
|
|
1852
|
-
lobby_tag: (
|
|
1859
|
+
lobby_tag: (m = e.lobby_tag) != null ? m : null,
|
|
1853
1860
|
background: (d = e.background) != null ? d : "",
|
|
1854
|
-
rtp: (
|
|
1855
|
-
demo_allowed: (
|
|
1856
|
-
gaming_session_required: (
|
|
1861
|
+
rtp: (g = e.rtp) != null ? g : null,
|
|
1862
|
+
demo_allowed: (p = e.demo_allowed) != null ? p : !1,
|
|
1863
|
+
gaming_session_required: (v = e.gaming_session_required) != null ? v : !1
|
|
1857
1864
|
};
|
|
1858
1865
|
}, an = (e) => e ? !Array.isArray(e) && Array.isArray(e.recommendations) ? e.recommendations.filter(Boolean).map((a) => String(a)) : [] : [], yt = () => {
|
|
1859
1866
|
var a, n, o;
|
|
1860
|
-
const e =
|
|
1867
|
+
const e = se("user");
|
|
1861
1868
|
return (o = (n = (a = e == null ? void 0 : e.userId) != null ? a : e == null ? void 0 : e.user) != null ? n : e == null ? void 0 : e.id) != null ? o : null;
|
|
1862
1869
|
}, nn = async (e) => {
|
|
1863
1870
|
const a = yt(), n = new URLSearchParams({
|
|
@@ -1888,9 +1895,9 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1888
1895
|
throw new Error(`No se pudo obtener el ranking. HTTP ${i.status} ${i.statusText}`);
|
|
1889
1896
|
return (await i.json()).rankedItems;
|
|
1890
1897
|
}, Ve = (e, a = !1, n = "Casino") => {
|
|
1891
|
-
const [o, i] =
|
|
1892
|
-
return
|
|
1893
|
-
let
|
|
1898
|
+
const [o, i] = Z([]), [r, s] = Z(!1);
|
|
1899
|
+
return Q(() => {
|
|
1900
|
+
let c = !1;
|
|
1894
1901
|
return (async () => {
|
|
1895
1902
|
if (!a) {
|
|
1896
1903
|
i(Array.isArray(e) ? e : []), s(!1);
|
|
@@ -1900,36 +1907,36 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1900
1907
|
try {
|
|
1901
1908
|
const h = await nn(n), u = an(h);
|
|
1902
1909
|
if (!u.length) {
|
|
1903
|
-
|
|
1910
|
+
c || i([]);
|
|
1904
1911
|
return;
|
|
1905
1912
|
}
|
|
1906
|
-
const
|
|
1907
|
-
|
|
1908
|
-
const
|
|
1909
|
-
if (!
|
|
1913
|
+
const m = yt(), d = await on(m, u), g = d.map((_) => _.itemId), p = await Promise.allSettled(
|
|
1914
|
+
g.map(async (_, I) => {
|
|
1915
|
+
const O = await fetch(`https://api.mktolimpo.com/api/machine/${_}`);
|
|
1916
|
+
if (!O.ok)
|
|
1910
1917
|
throw new Error(`No se pudo obtener machine ${_}`);
|
|
1911
|
-
const
|
|
1912
|
-
return tn(
|
|
1918
|
+
const D = await O.json();
|
|
1919
|
+
return tn(D, I);
|
|
1913
1920
|
})
|
|
1914
1921
|
);
|
|
1915
|
-
if (
|
|
1916
|
-
const
|
|
1922
|
+
if (c) return;
|
|
1923
|
+
const v = p.filter(
|
|
1917
1924
|
(_) => _.status === "fulfilled"
|
|
1918
|
-
).map((_) => _.value),
|
|
1919
|
-
const
|
|
1920
|
-
return
|
|
1921
|
-
}).filter(Boolean).sort((_,
|
|
1922
|
-
var
|
|
1923
|
-
return ((
|
|
1925
|
+
).map((_) => _.value), C = d.map((_) => {
|
|
1926
|
+
const I = v.find((O) => O.machine === _.itemId);
|
|
1927
|
+
return I ? { ...I, score: _.score } : null;
|
|
1928
|
+
}).filter(Boolean).sort((_, I) => {
|
|
1929
|
+
var O, D;
|
|
1930
|
+
return ((O = I.score) != null ? O : 0) - ((D = _.score) != null ? D : 0);
|
|
1924
1931
|
});
|
|
1925
|
-
i(
|
|
1932
|
+
i(C);
|
|
1926
1933
|
} catch (h) {
|
|
1927
|
-
console.error(`[usePersonalizeGameItems:${n}] error:`, h),
|
|
1934
|
+
console.error(`[usePersonalizeGameItems:${n}] error:`, h), c || i([]);
|
|
1928
1935
|
} finally {
|
|
1929
|
-
|
|
1936
|
+
c || s(!1);
|
|
1930
1937
|
}
|
|
1931
1938
|
})(), () => {
|
|
1932
|
-
|
|
1939
|
+
c = !0;
|
|
1933
1940
|
};
|
|
1934
1941
|
}, [e, a, n]), {
|
|
1935
1942
|
resolvedItems: o,
|
|
@@ -1956,19 +1963,19 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1956
1963
|
onCardClick: i,
|
|
1957
1964
|
backgroundDesktopUrl: r = "",
|
|
1958
1965
|
onViewMore: s,
|
|
1959
|
-
className:
|
|
1966
|
+
className: c,
|
|
1960
1967
|
isPersonalize: f = !1
|
|
1961
1968
|
}) => {
|
|
1962
|
-
const h = ae(), u = ne(),
|
|
1969
|
+
const h = ae(), u = ne(), m = le(), d = dn(f), { resolvedItems: g } = ln(
|
|
1963
1970
|
e,
|
|
1964
1971
|
d
|
|
1965
|
-
),
|
|
1972
|
+
), p = d ? g : Array.isArray(e) ? e : [], v = (_) => {
|
|
1966
1973
|
h({
|
|
1967
1974
|
element: "live_casino_card",
|
|
1968
1975
|
label: `${u} - OraculoSeccionCasinoEnVivo${d ? " - personalize" : ""} - Open game: ${String(_.machine || "unknown")}`,
|
|
1969
1976
|
target: String(_.machine || "unknown"),
|
|
1970
1977
|
event_type: "click",
|
|
1971
|
-
module_id:
|
|
1978
|
+
module_id: m,
|
|
1972
1979
|
metadata: {
|
|
1973
1980
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1974
1981
|
},
|
|
@@ -1978,8 +1985,8 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1978
1985
|
section: "OraculoSeccionCasinoEnVivo"
|
|
1979
1986
|
}
|
|
1980
1987
|
});
|
|
1981
|
-
const
|
|
1982
|
-
if (!
|
|
1988
|
+
const I = se("showIframe"), O = se("loadMachine");
|
|
1989
|
+
if (!O) {
|
|
1983
1990
|
if (i) {
|
|
1984
1991
|
i(_);
|
|
1985
1992
|
return;
|
|
@@ -1990,26 +1997,26 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1990
1997
|
);
|
|
1991
1998
|
return;
|
|
1992
1999
|
}
|
|
1993
|
-
|
|
1994
|
-
|
|
2000
|
+
I == null || I(), typeof window != "undefined" && window.scrollTo({ top: 0, behavior: "smooth" }), requestAnimationFrame(() => {
|
|
2001
|
+
O == null || O(_, !1, "casino_en_vivo");
|
|
1995
2002
|
});
|
|
1996
|
-
},
|
|
2003
|
+
}, C = () => {
|
|
1997
2004
|
h({
|
|
1998
2005
|
element: "casino_en_vivo_view_more",
|
|
1999
2006
|
label: `${u} - OraculoSeccionCasinoEnVivo${d ? " - personalize" : ""} - Ver más`,
|
|
2000
2007
|
target: "https://www.olimpo.bet/casino-en-vivo",
|
|
2001
2008
|
event_type: "click",
|
|
2002
|
-
module_id:
|
|
2009
|
+
module_id: m,
|
|
2003
2010
|
metadata: {
|
|
2004
2011
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2005
2012
|
},
|
|
2006
2013
|
tags: { section: "OraculoSeccionCasinoEnVivo" }
|
|
2007
2014
|
}), typeof globalThis != "undefined" && globalThis.location && (s ? s() : globalThis.location.assign("https://www.olimpo.bet/casino-en-vivo"));
|
|
2008
2015
|
};
|
|
2009
|
-
return /* @__PURE__ */
|
|
2010
|
-
|
|
2016
|
+
return /* @__PURE__ */ b(
|
|
2017
|
+
q,
|
|
2011
2018
|
{
|
|
2012
|
-
className:
|
|
2019
|
+
className: c,
|
|
2013
2020
|
sx: {
|
|
2014
2021
|
position: "relative",
|
|
2015
2022
|
color: "white",
|
|
@@ -2017,7 +2024,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2017
2024
|
},
|
|
2018
2025
|
children: [
|
|
2019
2026
|
/* @__PURE__ */ t(
|
|
2020
|
-
|
|
2027
|
+
q,
|
|
2021
2028
|
{
|
|
2022
2029
|
sx: {
|
|
2023
2030
|
position: "absolute",
|
|
@@ -2044,8 +2051,8 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2044
2051
|
}
|
|
2045
2052
|
}
|
|
2046
2053
|
),
|
|
2047
|
-
/* @__PURE__ */
|
|
2048
|
-
|
|
2054
|
+
/* @__PURE__ */ b(
|
|
2055
|
+
q,
|
|
2049
2056
|
{
|
|
2050
2057
|
sx: {
|
|
2051
2058
|
position: "relative",
|
|
@@ -2062,9 +2069,9 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2062
2069
|
textAlign: { xs: "center", md: "left" }
|
|
2063
2070
|
},
|
|
2064
2071
|
children: [
|
|
2065
|
-
/* @__PURE__ */
|
|
2072
|
+
/* @__PURE__ */ b(H, { spacing: 3, sx: { maxWidth: { md: 280 } }, children: [
|
|
2066
2073
|
/* @__PURE__ */ t(
|
|
2067
|
-
|
|
2074
|
+
ue,
|
|
2068
2075
|
{
|
|
2069
2076
|
variant: "h4",
|
|
2070
2077
|
sx: {
|
|
@@ -2077,7 +2084,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2077
2084
|
}
|
|
2078
2085
|
),
|
|
2079
2086
|
/* @__PURE__ */ t(
|
|
2080
|
-
|
|
2087
|
+
ue,
|
|
2081
2088
|
{
|
|
2082
2089
|
sx: {
|
|
2083
2090
|
fontSize: { xs: 14, md: 18 },
|
|
@@ -2088,18 +2095,18 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2088
2095
|
children: n
|
|
2089
2096
|
}
|
|
2090
2097
|
),
|
|
2091
|
-
/* @__PURE__ */ t(
|
|
2098
|
+
/* @__PURE__ */ t(q, { sx: { display: { xs: "none", md: "block" } }, children: /* @__PURE__ */ t(
|
|
2092
2099
|
X,
|
|
2093
2100
|
{
|
|
2094
2101
|
variant: "primary",
|
|
2095
2102
|
size: "md",
|
|
2096
|
-
onClick:
|
|
2103
|
+
onClick: C,
|
|
2097
2104
|
children: "Ver más"
|
|
2098
2105
|
}
|
|
2099
2106
|
) })
|
|
2100
2107
|
] }),
|
|
2101
2108
|
/* @__PURE__ */ t(
|
|
2102
|
-
|
|
2109
|
+
q,
|
|
2103
2110
|
{
|
|
2104
2111
|
sx: {
|
|
2105
2112
|
display: "flex",
|
|
@@ -2109,28 +2116,28 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2109
2116
|
py: { xs: 3, md: 0 },
|
|
2110
2117
|
alignItems: "center"
|
|
2111
2118
|
},
|
|
2112
|
-
children: (
|
|
2113
|
-
var
|
|
2119
|
+
children: (p != null ? p : []).slice(0, 3).map((_, I) => {
|
|
2120
|
+
var O;
|
|
2114
2121
|
return /* @__PURE__ */ t(
|
|
2115
2122
|
wa,
|
|
2116
2123
|
{
|
|
2117
|
-
logo: `https://olimpo.bet${_.background ? _.background : (
|
|
2124
|
+
logo: `https://olimpo.bet${_.background ? _.background : (O = _.logo) != null ? O : ""}`,
|
|
2118
2125
|
provider: _.provider,
|
|
2119
2126
|
providerName: _.web_name,
|
|
2120
2127
|
machine: _.machine,
|
|
2121
|
-
onClick: () =>
|
|
2128
|
+
onClick: () => v(_)
|
|
2122
2129
|
},
|
|
2123
|
-
cn(_,
|
|
2130
|
+
cn(_, I)
|
|
2124
2131
|
);
|
|
2125
2132
|
})
|
|
2126
2133
|
}
|
|
2127
2134
|
),
|
|
2128
|
-
/* @__PURE__ */ t(
|
|
2135
|
+
/* @__PURE__ */ t(q, { sx: { display: { xs: "block", md: "none" } }, children: /* @__PURE__ */ t(
|
|
2129
2136
|
X,
|
|
2130
2137
|
{
|
|
2131
2138
|
variant: "primary",
|
|
2132
2139
|
size: "lg",
|
|
2133
|
-
onClick:
|
|
2140
|
+
onClick: C,
|
|
2134
2141
|
children: "Ver más"
|
|
2135
2142
|
}
|
|
2136
2143
|
) })
|
|
@@ -2154,10 +2161,10 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2154
2161
|
var n, o;
|
|
2155
2162
|
return (o = (n = e.orden) != null ? n : e.machine) != null ? o : a;
|
|
2156
2163
|
}, pn = (e, a = !0, n = 1) => {
|
|
2157
|
-
const o = e.map((s,
|
|
2164
|
+
const o = e.map((s, c) => {
|
|
2158
2165
|
var f;
|
|
2159
2166
|
return {
|
|
2160
|
-
id: xt(s,
|
|
2167
|
+
id: xt(s, c),
|
|
2161
2168
|
imageUrl: (f = s.logo) != null ? f : "",
|
|
2162
2169
|
...s.background ? { background: s.background } : {}
|
|
2163
2170
|
};
|
|
@@ -2190,16 +2197,16 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2190
2197
|
onViewMore: i,
|
|
2191
2198
|
mosaicFirst: r = !0,
|
|
2192
2199
|
gridSize: s = 1,
|
|
2193
|
-
isPersonalize:
|
|
2200
|
+
isPersonalize: c = !1
|
|
2194
2201
|
}) => {
|
|
2195
|
-
const f = ae(), h = ne(), u =
|
|
2202
|
+
const f = ae(), h = ne(), u = le(), m = V(null), [d, g] = Z({ isStart: !0, isEnd: !1 }), p = mn(c), { resolvedItems: v, loading: C } = rn(
|
|
2196
2203
|
e,
|
|
2197
|
-
|
|
2198
|
-
), _ =
|
|
2199
|
-
var
|
|
2204
|
+
p
|
|
2205
|
+
), _ = p ? v : Array.isArray(e) ? e : [], I = () => {
|
|
2206
|
+
var N;
|
|
2200
2207
|
f({
|
|
2201
2208
|
element: "casino_prev",
|
|
2202
|
-
label: `${h} - OraculoSeccionCasino ${
|
|
2209
|
+
label: `${h} - OraculoSeccionCasino ${c ? " - personalize" : ""} - Anterior`,
|
|
2203
2210
|
target: "prev",
|
|
2204
2211
|
event_type: "click",
|
|
2205
2212
|
module_id: u,
|
|
@@ -2207,12 +2214,12 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2207
2214
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2208
2215
|
},
|
|
2209
2216
|
tags: { section: "OraculoSeccionCasino" }
|
|
2210
|
-
}), (
|
|
2211
|
-
},
|
|
2212
|
-
var
|
|
2217
|
+
}), (N = m.current) == null || N.prev();
|
|
2218
|
+
}, O = () => {
|
|
2219
|
+
var N;
|
|
2213
2220
|
f({
|
|
2214
2221
|
element: "casino_next",
|
|
2215
|
-
label: `${h} - OraculoSeccionCasino ${
|
|
2222
|
+
label: `${h} - OraculoSeccionCasino ${c ? " - personalize" : ""} - Siguiente`,
|
|
2216
2223
|
target: "next",
|
|
2217
2224
|
event_type: "click",
|
|
2218
2225
|
module_id: u,
|
|
@@ -2220,11 +2227,11 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2220
2227
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2221
2228
|
},
|
|
2222
2229
|
tags: { section: "OraculoSeccionCasino" }
|
|
2223
|
-
}), (
|
|
2224
|
-
},
|
|
2230
|
+
}), (N = m.current) == null || N.next();
|
|
2231
|
+
}, D = () => {
|
|
2225
2232
|
if (f({
|
|
2226
2233
|
element: "casino_view_more",
|
|
2227
|
-
label: `${h} - OraculoSeccionCasino ${
|
|
2234
|
+
label: `${h} - OraculoSeccionCasino ${c ? " - personalize" : ""} - Ver más`,
|
|
2228
2235
|
target: "https://www.olimpo.bet/casino",
|
|
2229
2236
|
event_type: "click",
|
|
2230
2237
|
module_id: u,
|
|
@@ -2237,16 +2244,16 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2237
2244
|
return;
|
|
2238
2245
|
}
|
|
2239
2246
|
typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/casino");
|
|
2240
|
-
},
|
|
2241
|
-
const
|
|
2247
|
+
}, y = (N = !0, x = 4) => {
|
|
2248
|
+
const T = (z) => Array.from({ length: z }, (R, U) => ({
|
|
2242
2249
|
id: `sk-${z}-${U}`,
|
|
2243
2250
|
imageUrl: ""
|
|
2244
2251
|
})), L = [];
|
|
2245
|
-
return
|
|
2246
|
-
},
|
|
2247
|
-
return /* @__PURE__ */ t("section", { children: /* @__PURE__ */
|
|
2248
|
-
/* @__PURE__ */
|
|
2249
|
-
|
|
2252
|
+
return N && L.push({ id: "mosaic-loading", kind: "mosaic", items: T(5) }), L.push({ id: "grid-loading", kind: "grid", items: T(x) }), L;
|
|
2253
|
+
}, $ = p ? C : !Array.isArray(e) || e.length === 0, E = De("(max-width:950px)"), A = $ ? y(r, s) : pn(_, r, s);
|
|
2254
|
+
return /* @__PURE__ */ t("section", { children: /* @__PURE__ */ b(H, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
2255
|
+
/* @__PURE__ */ b(
|
|
2256
|
+
q,
|
|
2250
2257
|
{
|
|
2251
2258
|
sx: {
|
|
2252
2259
|
display: "grid",
|
|
@@ -2261,7 +2268,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2261
2268
|
},
|
|
2262
2269
|
children: [
|
|
2263
2270
|
/* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
|
|
2264
|
-
/* @__PURE__ */
|
|
2271
|
+
/* @__PURE__ */ b(q, { sx: { display: "flex", gap: 1, justifyContent: "flex-end" }, children: [
|
|
2265
2272
|
/* @__PURE__ */ t(
|
|
2266
2273
|
X,
|
|
2267
2274
|
{
|
|
@@ -2269,7 +2276,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2269
2276
|
variant: "secondary",
|
|
2270
2277
|
iconOnly: !0,
|
|
2271
2278
|
leftIcon: /* @__PURE__ */ t(lt, {}),
|
|
2272
|
-
onClick:
|
|
2279
|
+
onClick: I,
|
|
2273
2280
|
disabled: d.isStart
|
|
2274
2281
|
}
|
|
2275
2282
|
),
|
|
@@ -2280,25 +2287,25 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2280
2287
|
variant: "secondary",
|
|
2281
2288
|
iconOnly: !0,
|
|
2282
2289
|
rightIcon: /* @__PURE__ */ t(ct, {}),
|
|
2283
|
-
onClick:
|
|
2290
|
+
onClick: O,
|
|
2284
2291
|
disabled: d.isEnd
|
|
2285
2292
|
}
|
|
2286
2293
|
)
|
|
2287
2294
|
] }),
|
|
2288
|
-
/* @__PURE__ */ t(
|
|
2295
|
+
/* @__PURE__ */ t(q, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(X, { variant: "secondary", onClick: D, children: "Ver más" }) })
|
|
2289
2296
|
]
|
|
2290
2297
|
}
|
|
2291
2298
|
),
|
|
2292
2299
|
/* @__PURE__ */ t(
|
|
2293
2300
|
he,
|
|
2294
2301
|
{
|
|
2295
|
-
ref:
|
|
2296
|
-
items:
|
|
2302
|
+
ref: m,
|
|
2303
|
+
items: A,
|
|
2297
2304
|
perPage: void 0,
|
|
2298
2305
|
gap: "16px",
|
|
2299
2306
|
enableHorizontalWheel: !0,
|
|
2300
2307
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
2301
|
-
showRightGradient: !
|
|
2308
|
+
showRightGradient: !E,
|
|
2302
2309
|
breakpoints: {
|
|
2303
2310
|
400: {
|
|
2304
2311
|
gap: "4px",
|
|
@@ -2316,38 +2323,38 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2316
2323
|
padding: { left: "24px", right: "24px" }
|
|
2317
2324
|
}
|
|
2318
2325
|
},
|
|
2319
|
-
renderItem: (
|
|
2326
|
+
renderItem: (N) => /* @__PURE__ */ t("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ t(
|
|
2320
2327
|
ft,
|
|
2321
2328
|
{
|
|
2322
|
-
items:
|
|
2323
|
-
layout:
|
|
2324
|
-
loading:
|
|
2325
|
-
onClick: (
|
|
2326
|
-
if (
|
|
2327
|
-
const
|
|
2328
|
-
(R, U) => String(xt(R, U)) === String(
|
|
2329
|
+
items: N.items,
|
|
2330
|
+
layout: N.kind === "mosaic" ? "mosaic" : "grid",
|
|
2331
|
+
loading: $,
|
|
2332
|
+
onClick: (x) => {
|
|
2333
|
+
if ($) return;
|
|
2334
|
+
const T = _.find(
|
|
2335
|
+
(R, U) => String(xt(R, U)) === String(x.id)
|
|
2329
2336
|
);
|
|
2330
|
-
if (!
|
|
2331
|
-
o == null || o(
|
|
2337
|
+
if (!T) return;
|
|
2338
|
+
o == null || o(T), f({
|
|
2332
2339
|
element: "casino_game_card",
|
|
2333
|
-
label: `${h} - OraculoSeccionCasino ${
|
|
2334
|
-
target: String(
|
|
2340
|
+
label: `${h} - OraculoSeccionCasino ${c ? " - personalize" : ""} - Game: ${String(T.machine || "unknown")}`,
|
|
2341
|
+
target: String(T.machine || "unknown"),
|
|
2335
2342
|
event_type: "click",
|
|
2336
2343
|
module_id: u,
|
|
2337
2344
|
metadata: {
|
|
2338
2345
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2339
2346
|
},
|
|
2340
2347
|
tags: {
|
|
2341
|
-
game_name: String(
|
|
2348
|
+
game_name: String(T.machine || "unknown"),
|
|
2342
2349
|
section: a || "Casino"
|
|
2343
2350
|
}
|
|
2344
2351
|
});
|
|
2345
|
-
const L =
|
|
2346
|
-
L == null || L(), z == null || z(
|
|
2352
|
+
const L = se("showIframe"), z = se("loadMachine");
|
|
2353
|
+
L == null || L(), z == null || z(T, !1, "CASINO");
|
|
2347
2354
|
}
|
|
2348
2355
|
}
|
|
2349
2356
|
) }),
|
|
2350
|
-
onMove: ({ isStart:
|
|
2357
|
+
onMove: ({ isStart: N, isEnd: x }) => g({ isStart: N, isEnd: x })
|
|
2351
2358
|
}
|
|
2352
2359
|
)
|
|
2353
2360
|
] }) });
|
|
@@ -2365,10 +2372,10 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2365
2372
|
var n, o;
|
|
2366
2373
|
return (o = (n = e.orden) != null ? n : e.machine) != null ? o : a;
|
|
2367
2374
|
}, hn = (e, a = !0, n = 1) => {
|
|
2368
|
-
const o = e.map((s,
|
|
2375
|
+
const o = e.map((s, c) => {
|
|
2369
2376
|
var f;
|
|
2370
2377
|
return {
|
|
2371
|
-
id: wt(s,
|
|
2378
|
+
id: wt(s, c),
|
|
2372
2379
|
imageUrl: (f = s.logo) != null ? f : "",
|
|
2373
2380
|
...s.background ? { background: s.background } : {}
|
|
2374
2381
|
};
|
|
@@ -2415,44 +2422,44 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2415
2422
|
onViewMore: i,
|
|
2416
2423
|
mosaicFirst: r = !0,
|
|
2417
2424
|
gridSize: s = 1,
|
|
2418
|
-
isPersonalize:
|
|
2425
|
+
isPersonalize: c = !1
|
|
2419
2426
|
}) => {
|
|
2420
|
-
const f = V(null), [h, u] =
|
|
2427
|
+
const f = V(null), [h, u] = Z({ isStart: !0, isEnd: !1 }), m = ae(), d = ne(), g = le(), p = gn(c), { resolvedItems: v, loading: C } = sn(
|
|
2421
2428
|
e,
|
|
2422
|
-
|
|
2423
|
-
), _ =
|
|
2424
|
-
var
|
|
2425
|
-
|
|
2429
|
+
p
|
|
2430
|
+
), _ = p ? v : Array.isArray(e) ? e : [], I = () => {
|
|
2431
|
+
var A;
|
|
2432
|
+
m({
|
|
2426
2433
|
element: "virtuales_prev",
|
|
2427
|
-
label: `${d} - OraculoSeccionVirtuales${
|
|
2434
|
+
label: `${d} - OraculoSeccionVirtuales${p ? " - personalize" : ""} - Anterior`,
|
|
2428
2435
|
target: "prev",
|
|
2429
2436
|
event_type: "click",
|
|
2430
|
-
module_id:
|
|
2437
|
+
module_id: g,
|
|
2431
2438
|
metadata: {
|
|
2432
2439
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2433
2440
|
},
|
|
2434
2441
|
tags: { section: "OraculoSeccionVirtuales" }
|
|
2435
|
-
}), (
|
|
2436
|
-
},
|
|
2437
|
-
var
|
|
2438
|
-
|
|
2442
|
+
}), (A = f.current) == null || A.prev();
|
|
2443
|
+
}, O = () => {
|
|
2444
|
+
var A;
|
|
2445
|
+
m({
|
|
2439
2446
|
element: "virtuales_next",
|
|
2440
|
-
label: `${d} - OraculoSeccionVirtuales${
|
|
2447
|
+
label: `${d} - OraculoSeccionVirtuales${p ? " - personalize" : ""} - Siguiente`,
|
|
2441
2448
|
target: "next",
|
|
2442
2449
|
event_type: "click",
|
|
2443
|
-
module_id:
|
|
2450
|
+
module_id: g,
|
|
2444
2451
|
metadata: {
|
|
2445
2452
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2446
2453
|
},
|
|
2447
2454
|
tags: { section: "OraculoSeccionVirtuales" }
|
|
2448
|
-
}), (
|
|
2449
|
-
},
|
|
2450
|
-
if (
|
|
2455
|
+
}), (A = f.current) == null || A.next();
|
|
2456
|
+
}, D = () => {
|
|
2457
|
+
if (m({
|
|
2451
2458
|
element: "virtuales_view_more",
|
|
2452
|
-
label: `${d} - OraculoSeccionVirtuales${
|
|
2459
|
+
label: `${d} - OraculoSeccionVirtuales${p ? " - personalize" : ""} - Ver más`,
|
|
2453
2460
|
target: "https://www.olimpo.bet/juegos-virtuales",
|
|
2454
2461
|
event_type: "click",
|
|
2455
|
-
module_id:
|
|
2462
|
+
module_id: g,
|
|
2456
2463
|
metadata: {
|
|
2457
2464
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2458
2465
|
},
|
|
@@ -2462,10 +2469,10 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2462
2469
|
return;
|
|
2463
2470
|
}
|
|
2464
2471
|
typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/juegos-virtuales");
|
|
2465
|
-
},
|
|
2466
|
-
return /* @__PURE__ */ t("section", { children: /* @__PURE__ */
|
|
2467
|
-
/* @__PURE__ */
|
|
2468
|
-
|
|
2472
|
+
}, y = p ? C : !Array.isArray(e) || e.length === 0, $ = xe("(max-width:950px)"), E = y ? bn(r, s) : hn(_, r, s);
|
|
2473
|
+
return /* @__PURE__ */ t("section", { children: /* @__PURE__ */ b(H, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
2474
|
+
/* @__PURE__ */ b(
|
|
2475
|
+
q,
|
|
2469
2476
|
{
|
|
2470
2477
|
sx: {
|
|
2471
2478
|
display: "grid",
|
|
@@ -2480,7 +2487,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2480
2487
|
},
|
|
2481
2488
|
children: [
|
|
2482
2489
|
/* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
|
|
2483
|
-
/* @__PURE__ */
|
|
2490
|
+
/* @__PURE__ */ b(q, { sx: { display: "flex", gap: 1, justifyContent: "flex-end" }, children: [
|
|
2484
2491
|
/* @__PURE__ */ t(
|
|
2485
2492
|
X,
|
|
2486
2493
|
{
|
|
@@ -2488,7 +2495,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2488
2495
|
variant: "secondary",
|
|
2489
2496
|
iconOnly: !0,
|
|
2490
2497
|
leftIcon: /* @__PURE__ */ t(lt, {}),
|
|
2491
|
-
onClick:
|
|
2498
|
+
onClick: I,
|
|
2492
2499
|
disabled: h.isStart
|
|
2493
2500
|
}
|
|
2494
2501
|
),
|
|
@@ -2499,12 +2506,12 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2499
2506
|
variant: "secondary",
|
|
2500
2507
|
iconOnly: !0,
|
|
2501
2508
|
rightIcon: /* @__PURE__ */ t(ct, {}),
|
|
2502
|
-
onClick:
|
|
2509
|
+
onClick: O,
|
|
2503
2510
|
disabled: h.isEnd
|
|
2504
2511
|
}
|
|
2505
2512
|
)
|
|
2506
2513
|
] }),
|
|
2507
|
-
/* @__PURE__ */ t(
|
|
2514
|
+
/* @__PURE__ */ t(q, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(X, { variant: "secondary", onClick: D, children: "Ver más" }) })
|
|
2508
2515
|
]
|
|
2509
2516
|
}
|
|
2510
2517
|
),
|
|
@@ -2512,7 +2519,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2512
2519
|
he,
|
|
2513
2520
|
{
|
|
2514
2521
|
ref: f,
|
|
2515
|
-
items:
|
|
2522
|
+
items: E,
|
|
2516
2523
|
perPage: void 0,
|
|
2517
2524
|
gap: "16px",
|
|
2518
2525
|
breakpoints: {
|
|
@@ -2533,50 +2540,50 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2533
2540
|
}
|
|
2534
2541
|
},
|
|
2535
2542
|
enableHorizontalWheel: !0,
|
|
2536
|
-
showRightGradient:
|
|
2543
|
+
showRightGradient: !$,
|
|
2537
2544
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
2538
|
-
renderItem: (
|
|
2545
|
+
renderItem: (A) => /* @__PURE__ */ t("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ t(
|
|
2539
2546
|
ft,
|
|
2540
2547
|
{
|
|
2541
|
-
items:
|
|
2542
|
-
layout:
|
|
2543
|
-
loading:
|
|
2544
|
-
onClick: (
|
|
2545
|
-
if (
|
|
2546
|
-
const
|
|
2547
|
-
(z, R) => String(wt(z, R)) === String(
|
|
2548
|
+
items: A.items,
|
|
2549
|
+
layout: A.kind === "mosaic" ? "mosaic" : "grid",
|
|
2550
|
+
loading: y,
|
|
2551
|
+
onClick: (N) => {
|
|
2552
|
+
if (y) return;
|
|
2553
|
+
const x = _.find(
|
|
2554
|
+
(z, R) => String(wt(z, R)) === String(N.id)
|
|
2548
2555
|
);
|
|
2549
|
-
if (!
|
|
2556
|
+
if (!x) {
|
|
2550
2557
|
console.warn(
|
|
2551
2558
|
"[virtuales] no se encontró game para id:",
|
|
2552
|
-
|
|
2559
|
+
N.id
|
|
2553
2560
|
);
|
|
2554
2561
|
return;
|
|
2555
2562
|
}
|
|
2556
|
-
o == null || o(
|
|
2563
|
+
o == null || o(x), m({
|
|
2557
2564
|
element: "virtuales_game_card",
|
|
2558
|
-
label: `${d} - OraculoSeccionVirtuales${
|
|
2559
|
-
target: String(
|
|
2565
|
+
label: `${d} - OraculoSeccionVirtuales${p ? " - personalize" : ""} - Game: ${String(x.machine || "unknown")}`,
|
|
2566
|
+
target: String(x.machine || "unknown"),
|
|
2560
2567
|
event_type: "click",
|
|
2561
|
-
module_id:
|
|
2568
|
+
module_id: g,
|
|
2562
2569
|
metadata: {
|
|
2563
2570
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2564
2571
|
},
|
|
2565
2572
|
tags: {
|
|
2566
|
-
game_name: String(
|
|
2573
|
+
game_name: String(x.machine || "unknown"),
|
|
2567
2574
|
section: a || "Virtuales"
|
|
2568
2575
|
}
|
|
2569
2576
|
});
|
|
2570
|
-
const
|
|
2571
|
-
|
|
2572
|
-
|
|
2577
|
+
const T = se("showIframe"), L = se("loadMachine");
|
|
2578
|
+
T == null || T(), L == null || L(
|
|
2579
|
+
x,
|
|
2573
2580
|
!1,
|
|
2574
|
-
|
|
2581
|
+
p ? "VIRTUALES_PERSONALIZE" : "VIRTUALES"
|
|
2575
2582
|
);
|
|
2576
2583
|
}
|
|
2577
2584
|
}
|
|
2578
2585
|
) }),
|
|
2579
|
-
onMove: ({ isStart:
|
|
2586
|
+
onMove: ({ isStart: A, isEnd: N }) => u({ isStart: A, isEnd: N })
|
|
2580
2587
|
}
|
|
2581
2588
|
)
|
|
2582
2589
|
] }) });
|
|
@@ -2618,87 +2625,87 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2618
2625
|
items: n,
|
|
2619
2626
|
backgroundImageUrl: o
|
|
2620
2627
|
}) => {
|
|
2621
|
-
const i = ae(), r = ne(), s = xe("(max-width: 767px)"),
|
|
2622
|
-
|
|
2623
|
-
const
|
|
2628
|
+
const i = ae(), r = ne(), s = xe("(max-width: 767px)"), c = n.length > 1, f = V(null), h = V(null), u = V(!1), m = V(!1), [d, g] = Z(0), [p, v] = Z({ isStart: !0, isEnd: !1 });
|
|
2629
|
+
Q(() => {
|
|
2630
|
+
const x = setTimeout(() => {
|
|
2624
2631
|
u.current = !0;
|
|
2625
2632
|
}, 500);
|
|
2626
|
-
return () => clearTimeout(
|
|
2633
|
+
return () => clearTimeout(x);
|
|
2627
2634
|
}, []);
|
|
2628
|
-
const
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
}, [
|
|
2632
|
-
const _ = V(!1),
|
|
2635
|
+
const C = V(p);
|
|
2636
|
+
Q(() => {
|
|
2637
|
+
C.current = p;
|
|
2638
|
+
}, [p]);
|
|
2639
|
+
const _ = V(!1), I = V(null), O = n == null ? void 0 : n[d], D = ie(
|
|
2633
2640
|
() => {
|
|
2634
|
-
var
|
|
2635
|
-
return (
|
|
2641
|
+
var x, T;
|
|
2642
|
+
return (T = (x = O == null ? void 0 : O.backgroundImageUrl) != null ? x : o) != null ? T : "";
|
|
2636
2643
|
},
|
|
2637
|
-
[
|
|
2638
|
-
),
|
|
2644
|
+
[O, o]
|
|
2645
|
+
), y = _n(D), $ = !n || n.length === 0, E = (x, T) => {
|
|
2639
2646
|
i({
|
|
2640
2647
|
element: "welcome_banner_button",
|
|
2641
|
-
label: `OraculoSeccionBonoBienvenida - Banner button click: ${
|
|
2648
|
+
label: `OraculoSeccionBonoBienvenida - Banner button click: ${x.title || "OraculoSeccionBonoBienvenida - Banner " + (T + 1)}`,
|
|
2642
2649
|
target: "action",
|
|
2643
2650
|
event_type: "click",
|
|
2644
2651
|
module_id: 301,
|
|
2645
2652
|
metadata: {
|
|
2646
2653
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
2647
|
-
banner_position:
|
|
2654
|
+
banner_position: T + 1,
|
|
2648
2655
|
banner_total: (n == null ? void 0 : n.length) || 0
|
|
2649
2656
|
},
|
|
2650
2657
|
tags: {
|
|
2651
|
-
banner_title:
|
|
2652
|
-
button_text:
|
|
2658
|
+
banner_title: x.title || "no_title",
|
|
2659
|
+
button_text: x.buttonText || "no_text"
|
|
2653
2660
|
}
|
|
2654
|
-
}),
|
|
2655
|
-
},
|
|
2661
|
+
}), x.onButtonClick && x.onButtonClick();
|
|
2662
|
+
}, A = (x) => {
|
|
2656
2663
|
if (!u.current) return;
|
|
2657
|
-
if (
|
|
2658
|
-
|
|
2664
|
+
if (m.current) {
|
|
2665
|
+
m.current = !1;
|
|
2659
2666
|
return;
|
|
2660
2667
|
}
|
|
2661
|
-
const
|
|
2668
|
+
const T = n == null ? void 0 : n[x];
|
|
2662
2669
|
i({
|
|
2663
2670
|
element: "welcome_banner_carousel",
|
|
2664
|
-
label: `Landing: ${r} - OraculoSeccionBonoBienvenida - Banner view: ${(
|
|
2671
|
+
label: `Landing: ${r} - OraculoSeccionBonoBienvenida - Banner view: ${(T == null ? void 0 : T.title) || "OraculoSeccionBonoBienvenida - Banner " + (x + 1)}`,
|
|
2665
2672
|
target: "no_url",
|
|
2666
2673
|
event_type: "view",
|
|
2667
2674
|
module_id: 301,
|
|
2668
2675
|
metadata: {
|
|
2669
2676
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
2670
|
-
slide_index:
|
|
2677
|
+
slide_index: x + 1,
|
|
2671
2678
|
total_slides: (n == null ? void 0 : n.length) || 0,
|
|
2672
2679
|
interaction_type: "manual_slide"
|
|
2673
2680
|
},
|
|
2674
2681
|
tags: {
|
|
2675
|
-
banner_position: String(
|
|
2676
|
-
banner_title: (
|
|
2682
|
+
banner_position: String(x + 1),
|
|
2683
|
+
banner_title: (T == null ? void 0 : T.title) || "no_title"
|
|
2677
2684
|
}
|
|
2678
2685
|
});
|
|
2679
2686
|
};
|
|
2680
|
-
|
|
2681
|
-
const
|
|
2682
|
-
if (!
|
|
2683
|
-
const
|
|
2684
|
-
var
|
|
2685
|
-
if (
|
|
2687
|
+
Q(() => {
|
|
2688
|
+
const x = h.current;
|
|
2689
|
+
if (!x) return;
|
|
2690
|
+
const T = 6, L = 380, z = (R) => {
|
|
2691
|
+
var w, F;
|
|
2692
|
+
if ($ || R.ctrlKey || _.current) return;
|
|
2686
2693
|
const U = R.deltaX, W = R.deltaY;
|
|
2687
|
-
if (Math.abs(U) <= Math.abs(W) || Math.abs(U) <
|
|
2688
|
-
const
|
|
2689
|
-
|
|
2694
|
+
if (Math.abs(U) <= Math.abs(W) || Math.abs(U) < T) return;
|
|
2695
|
+
const G = U > 0;
|
|
2696
|
+
G && C.current.isEnd || !G && C.current.isStart || (R.preventDefault(), _.current = !0, G ? (w = f.current) == null || w.next() : (F = f.current) == null || F.prev(), I.current && window.clearTimeout(I.current), I.current = window.setTimeout(() => {
|
|
2690
2697
|
_.current = !1;
|
|
2691
2698
|
}, L));
|
|
2692
2699
|
};
|
|
2693
|
-
return
|
|
2694
|
-
|
|
2700
|
+
return x.addEventListener("wheel", z, { passive: !1 }), () => {
|
|
2701
|
+
x.removeEventListener("wheel", z), I.current && window.clearTimeout(I.current);
|
|
2695
2702
|
};
|
|
2696
|
-
}, [
|
|
2697
|
-
const
|
|
2703
|
+
}, [$]);
|
|
2704
|
+
const N = (x, T, L) => {
|
|
2698
2705
|
var U, W;
|
|
2699
|
-
const z = (U =
|
|
2700
|
-
return
|
|
2701
|
-
|
|
2706
|
+
const z = (U = x.headline) != null ? U : e, R = (W = x.headline2) != null ? W : a;
|
|
2707
|
+
return T ? /* @__PURE__ */ b(
|
|
2708
|
+
q,
|
|
2702
2709
|
{
|
|
2703
2710
|
sx: {
|
|
2704
2711
|
maxWidth: 1200,
|
|
@@ -2711,7 +2718,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2711
2718
|
},
|
|
2712
2719
|
children: [
|
|
2713
2720
|
(z || R) && /* @__PURE__ */ t(
|
|
2714
|
-
|
|
2721
|
+
q,
|
|
2715
2722
|
{
|
|
2716
2723
|
sx: {
|
|
2717
2724
|
display: "flex",
|
|
@@ -2719,44 +2726,44 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2719
2726
|
justifyContent: "flex-start",
|
|
2720
2727
|
minHeight: "100%"
|
|
2721
2728
|
},
|
|
2722
|
-
children: /* @__PURE__ */
|
|
2723
|
-
z && /* @__PURE__ */ t(
|
|
2724
|
-
R && /* @__PURE__ */
|
|
2729
|
+
children: /* @__PURE__ */ b(q, { sx: { ...Qe, textAlign: "left", mb: 0 }, children: [
|
|
2730
|
+
z && /* @__PURE__ */ t(ue, { component: "span", sx: et, children: z }),
|
|
2731
|
+
R && /* @__PURE__ */ b(pe, { children: [
|
|
2725
2732
|
/* @__PURE__ */ t("br", {}),
|
|
2726
|
-
/* @__PURE__ */ t(
|
|
2733
|
+
/* @__PURE__ */ t(ue, { component: "span", sx: tt, children: R })
|
|
2727
2734
|
] })
|
|
2728
2735
|
] })
|
|
2729
2736
|
}
|
|
2730
2737
|
),
|
|
2731
|
-
/* @__PURE__ */ t(
|
|
2738
|
+
/* @__PURE__ */ t(q, { sx: { display: "flex", justifyContent: "center", alignItems: "center" }, children: /* @__PURE__ */ t(q, { sx: { width: "100%", maxWidth: 600, mx: "auto" }, children: /* @__PURE__ */ t(
|
|
2732
2739
|
Je,
|
|
2733
2740
|
{
|
|
2734
|
-
...
|
|
2735
|
-
onButtonClick: () =>
|
|
2741
|
+
...x,
|
|
2742
|
+
onButtonClick: () => E(x, L),
|
|
2736
2743
|
variant: "large"
|
|
2737
2744
|
}
|
|
2738
2745
|
) }) })
|
|
2739
2746
|
]
|
|
2740
2747
|
}
|
|
2741
|
-
) : /* @__PURE__ */
|
|
2742
|
-
(z || R) && /* @__PURE__ */
|
|
2743
|
-
z && /* @__PURE__ */ t(
|
|
2744
|
-
R && /* @__PURE__ */
|
|
2748
|
+
) : /* @__PURE__ */ b(q, { sx: { textAlign: "center" }, children: [
|
|
2749
|
+
(z || R) && /* @__PURE__ */ b(q, { sx: Qe, children: [
|
|
2750
|
+
z && /* @__PURE__ */ t(ue, { component: "span", sx: et, children: z }),
|
|
2751
|
+
R && /* @__PURE__ */ b(pe, { children: [
|
|
2745
2752
|
/* @__PURE__ */ t("br", {}),
|
|
2746
|
-
/* @__PURE__ */ t(
|
|
2753
|
+
/* @__PURE__ */ t(ue, { component: "span", sx: tt, children: R })
|
|
2747
2754
|
] })
|
|
2748
2755
|
] }),
|
|
2749
|
-
/* @__PURE__ */ t(
|
|
2756
|
+
/* @__PURE__ */ t(q, { sx: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(
|
|
2750
2757
|
Je,
|
|
2751
2758
|
{
|
|
2752
|
-
...
|
|
2753
|
-
onButtonClick: () =>
|
|
2759
|
+
...x,
|
|
2760
|
+
onButtonClick: () => E(x, L),
|
|
2754
2761
|
variant: "small"
|
|
2755
2762
|
}
|
|
2756
2763
|
) })
|
|
2757
2764
|
] });
|
|
2758
2765
|
};
|
|
2759
|
-
return /* @__PURE__ */
|
|
2766
|
+
return /* @__PURE__ */ b(q, { component: "section", sx: y, children: [
|
|
2760
2767
|
/* @__PURE__ */ t("div", { ref: h, style: { width: "100%" }, children: /* @__PURE__ */ t(
|
|
2761
2768
|
he,
|
|
2762
2769
|
{
|
|
@@ -2774,34 +2781,34 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2774
2781
|
// arrows: false,
|
|
2775
2782
|
// drag: true,
|
|
2776
2783
|
},
|
|
2777
|
-
renderItem: (
|
|
2778
|
-
onMove: ({ index:
|
|
2779
|
-
|
|
2784
|
+
renderItem: (x, T) => /* @__PURE__ */ t(q, { sx: { width: "100%" }, children: N(x, !s, T) }),
|
|
2785
|
+
onMove: ({ index: x, isStart: T, isEnd: L }) => {
|
|
2786
|
+
g(x), typeof T == "boolean" && typeof L == "boolean" && v({ isStart: T, isEnd: L }), A(x);
|
|
2780
2787
|
}
|
|
2781
2788
|
}
|
|
2782
2789
|
) }),
|
|
2783
|
-
|
|
2790
|
+
c && /* @__PURE__ */ t(q, { sx: { mt: 2, display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(
|
|
2784
2791
|
dt,
|
|
2785
2792
|
{
|
|
2786
2793
|
total: n.length,
|
|
2787
2794
|
active: d,
|
|
2788
|
-
onSelect: (
|
|
2789
|
-
var
|
|
2795
|
+
onSelect: (x) => {
|
|
2796
|
+
var T;
|
|
2790
2797
|
i({
|
|
2791
2798
|
element: "welcome_banner_dots",
|
|
2792
|
-
label: `Landing: ${r} - OraculoSeccionBonoBienvenida - Dot navigation: Banner ${
|
|
2799
|
+
label: `Landing: ${r} - OraculoSeccionBonoBienvenida - Dot navigation: Banner ${x + 1}`,
|
|
2793
2800
|
target: "no_url",
|
|
2794
2801
|
event_type: "click",
|
|
2795
2802
|
module_id: 301,
|
|
2796
2803
|
metadata: {
|
|
2797
2804
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
2798
|
-
dot_index:
|
|
2805
|
+
dot_index: x + 1,
|
|
2799
2806
|
total_dots: n.length
|
|
2800
2807
|
},
|
|
2801
2808
|
tags: {
|
|
2802
2809
|
navigation_type: "dot_click"
|
|
2803
2810
|
}
|
|
2804
|
-
}),
|
|
2811
|
+
}), g(x), (T = f.current) == null || T.go(x);
|
|
2805
2812
|
}
|
|
2806
2813
|
}
|
|
2807
2814
|
) })
|
|
@@ -2814,18 +2821,18 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2814
2821
|
ariaLabel: i,
|
|
2815
2822
|
user: r = null
|
|
2816
2823
|
}) => {
|
|
2817
|
-
const s = V(null),
|
|
2824
|
+
const s = V(null), c = V(null), f = ae(), h = ne(), u = le();
|
|
2818
2825
|
if (!n) return null;
|
|
2819
|
-
const
|
|
2820
|
-
let
|
|
2821
|
-
if ((!(
|
|
2826
|
+
const m = async () => {
|
|
2827
|
+
let v = r;
|
|
2828
|
+
if ((!(v != null && v.user) || !(v != null && v.session)) && typeof window != "undefined")
|
|
2822
2829
|
try {
|
|
2823
|
-
const
|
|
2824
|
-
|
|
2825
|
-
} catch (
|
|
2826
|
-
console.error("[getMarketPlaceUrl] Error parsing localStorage user",
|
|
2830
|
+
const C = localStorage.getItem("user");
|
|
2831
|
+
C && (v = JSON.parse(C));
|
|
2832
|
+
} catch (C) {
|
|
2833
|
+
console.error("[getMarketPlaceUrl] Error parsing localStorage user", C);
|
|
2827
2834
|
}
|
|
2828
|
-
if (!(
|
|
2835
|
+
if (!(v != null && v.user) || !(v != null && v.session))
|
|
2829
2836
|
return console.warn("User data missing"), null;
|
|
2830
2837
|
f({
|
|
2831
2838
|
element: "club_olimpo_button",
|
|
@@ -2839,40 +2846,40 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2839
2846
|
tags: { section: "OraculoSeccionClubOlimpo" }
|
|
2840
2847
|
});
|
|
2841
2848
|
try {
|
|
2842
|
-
const
|
|
2843
|
-
idUsuario: "PE" +
|
|
2844
|
-
session_id:
|
|
2849
|
+
const C = {
|
|
2850
|
+
idUsuario: "PE" + v.user,
|
|
2851
|
+
session_id: v.session,
|
|
2845
2852
|
pagina: "home"
|
|
2846
|
-
},
|
|
2853
|
+
}, I = await fetch("https://apipe.mktolimpo.com/api/pm/token", {
|
|
2847
2854
|
method: "POST",
|
|
2848
2855
|
headers: {
|
|
2849
2856
|
"Content-Type": "application/json"
|
|
2850
2857
|
},
|
|
2851
|
-
body: JSON.stringify(
|
|
2858
|
+
body: JSON.stringify(C)
|
|
2852
2859
|
});
|
|
2853
|
-
if (
|
|
2854
|
-
const
|
|
2855
|
-
return
|
|
2860
|
+
if (I.ok) {
|
|
2861
|
+
const O = await I.json();
|
|
2862
|
+
return O == null ? void 0 : O.url;
|
|
2856
2863
|
}
|
|
2857
2864
|
return null;
|
|
2858
|
-
} catch (
|
|
2859
|
-
return console.error("[getMarketPlaceUrl]",
|
|
2865
|
+
} catch (C) {
|
|
2866
|
+
return console.error("[getMarketPlaceUrl]", C), null;
|
|
2860
2867
|
}
|
|
2861
2868
|
}, d = async () => {
|
|
2862
|
-
const
|
|
2863
|
-
|
|
2864
|
-
},
|
|
2869
|
+
const v = await m();
|
|
2870
|
+
v ? window.location.href = v : typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/conoce-club-olimpo");
|
|
2871
|
+
}, g = Array.isArray(n) ? n[o] : n;
|
|
2865
2872
|
Mt(() => {
|
|
2866
|
-
if (!s.current || !
|
|
2867
|
-
const
|
|
2868
|
-
|
|
2873
|
+
if (!s.current || !c.current || typeof ResizeObserver == "undefined") return;
|
|
2874
|
+
const v = s.current, C = c.current, _ = () => {
|
|
2875
|
+
v.style.setProperty(
|
|
2869
2876
|
"--orc-co-bottomH",
|
|
2870
|
-
`${
|
|
2877
|
+
`${C.offsetHeight + 16}px`
|
|
2871
2878
|
);
|
|
2872
|
-
},
|
|
2873
|
-
return
|
|
2879
|
+
}, I = new ResizeObserver(_);
|
|
2880
|
+
return I.observe(C), _(), () => I.disconnect();
|
|
2874
2881
|
}, []);
|
|
2875
|
-
const
|
|
2882
|
+
const p = [
|
|
2876
2883
|
"orc-co-wrap",
|
|
2877
2884
|
a ? "orc-co-fullBleed" : "",
|
|
2878
2885
|
e
|
|
@@ -2881,18 +2888,18 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2881
2888
|
"section",
|
|
2882
2889
|
{
|
|
2883
2890
|
ref: s,
|
|
2884
|
-
className:
|
|
2885
|
-
"aria-label": i ||
|
|
2886
|
-
children: /* @__PURE__ */ t("div", { ref:
|
|
2891
|
+
className: p,
|
|
2892
|
+
"aria-label": i || g.imgAlt || "Club Olimpo",
|
|
2893
|
+
children: /* @__PURE__ */ t("div", { ref: c, children: /* @__PURE__ */ t(
|
|
2887
2894
|
Sa,
|
|
2888
2895
|
{
|
|
2889
|
-
text:
|
|
2896
|
+
text: g.text,
|
|
2890
2897
|
onClick: d,
|
|
2891
|
-
imgAlt:
|
|
2892
|
-
buttonLabel:
|
|
2893
|
-
imgSrcMobile:
|
|
2894
|
-
imgSrcDesktopBg:
|
|
2895
|
-
imgSrcDesktopLogo:
|
|
2898
|
+
imgAlt: g.imgAlt,
|
|
2899
|
+
buttonLabel: g.buttonLabel,
|
|
2900
|
+
imgSrcMobile: g.imgMobile,
|
|
2901
|
+
imgSrcDesktopBg: g.imgDesktopBg,
|
|
2902
|
+
imgSrcDesktopLogo: g.imgDesktopLogo
|
|
2896
2903
|
}
|
|
2897
2904
|
) })
|
|
2898
2905
|
}
|
|
@@ -2909,16 +2916,16 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2909
2916
|
};
|
|
2910
2917
|
function Cn(e, a, n) {
|
|
2911
2918
|
return n ? n.map((o) => {
|
|
2912
|
-
var u,
|
|
2913
|
-
const i = o.prePackCouponRows.flatMap((d) => In(d).map((
|
|
2919
|
+
var u, m;
|
|
2920
|
+
const i = o.prePackCouponRows.flatMap((d) => In(d).map((g) => ({ eventId: d.eventId, outcomeId: g }))), r = new Set(i.map((d) => d.eventId)), s = new Set(i.map((d) => d.outcomeId)), c = new Map(i.map((d, g) => [d.outcomeId, g])), f = {};
|
|
2914
2921
|
for (const d of a) {
|
|
2915
2922
|
if (!r.has(d.eventId)) continue;
|
|
2916
|
-
const
|
|
2917
|
-
|
|
2923
|
+
const g = d.outcomes.filter((p) => s.has(p.id)).map((p) => ({ ...p, position: c.get(p.id) }));
|
|
2924
|
+
g.length && ((m = f[u = d.eventId]) != null || (f[u] = []), f[d.eventId].push({ ...d, outcomes: g }));
|
|
2918
2925
|
}
|
|
2919
2926
|
const h = e.filter((d) => r.has(d.id)).map((d) => {
|
|
2920
|
-
var
|
|
2921
|
-
return { ...d, betoffers: (
|
|
2927
|
+
var g;
|
|
2928
|
+
return { ...d, betoffers: (g = f[d.id]) != null ? g : [] };
|
|
2922
2929
|
});
|
|
2923
2930
|
return {
|
|
2924
2931
|
couponId: o.id,
|
|
@@ -2945,78 +2952,78 @@ function Tn({
|
|
|
2945
2952
|
onViewMore: o,
|
|
2946
2953
|
className: i = ""
|
|
2947
2954
|
}) {
|
|
2948
|
-
const r = ae(), s = ne(),
|
|
2949
|
-
var
|
|
2955
|
+
const r = ae(), s = ne(), c = le(), f = V(null), [h, u] = Z({ isStart: !0, isEnd: !1 }), [m, d] = Z([]), 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", p = () => {
|
|
2956
|
+
var y;
|
|
2950
2957
|
r({
|
|
2951
2958
|
element: "evento_combinadas_prev",
|
|
2952
2959
|
label: `${s} - OraculoSeccionEventoCombinadas - Click: Anterior`,
|
|
2953
2960
|
event_type: "click",
|
|
2954
|
-
module_id:
|
|
2961
|
+
module_id: c,
|
|
2955
2962
|
metadata: {
|
|
2956
2963
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2957
2964
|
},
|
|
2958
2965
|
tags: { section: "OraculoSeccionEventoCombinadas" }
|
|
2959
|
-
}), (
|
|
2960
|
-
},
|
|
2961
|
-
var
|
|
2966
|
+
}), (y = f.current) == null || y.prev();
|
|
2967
|
+
}, v = () => {
|
|
2968
|
+
var y;
|
|
2962
2969
|
r({
|
|
2963
2970
|
element: "evento_combinadas_next",
|
|
2964
2971
|
label: `${s} - OraculoSeccionEventoCombinadas - Click: Siguiente`,
|
|
2965
2972
|
event_type: "click",
|
|
2966
|
-
module_id:
|
|
2973
|
+
module_id: c,
|
|
2967
2974
|
metadata: {
|
|
2968
2975
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2969
2976
|
},
|
|
2970
2977
|
tags: { section: "OraculoSeccionEventoCombinadas" }
|
|
2971
|
-
}), (
|
|
2972
|
-
},
|
|
2978
|
+
}), (y = f.current) == null || y.next();
|
|
2979
|
+
}, C = () => {
|
|
2973
2980
|
r({
|
|
2974
2981
|
element: "evento_combinadas_ver_mas",
|
|
2975
2982
|
label: `${s} - OraculoSeccionEventoCombinadas - Click: Ver más`,
|
|
2976
2983
|
event_type: "click",
|
|
2977
|
-
module_id:
|
|
2984
|
+
module_id: c,
|
|
2978
2985
|
metadata: {
|
|
2979
2986
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2980
2987
|
},
|
|
2981
2988
|
tags: { section: "OraculoSeccionEventoCombinadas" }
|
|
2982
2989
|
}), za();
|
|
2983
|
-
}, _ = ie(() =>
|
|
2984
|
-
async function
|
|
2985
|
-
var
|
|
2990
|
+
}, _ = ie(() => m.filter((y) => y.combinadoTotal !== null), [m]);
|
|
2991
|
+
async function I() {
|
|
2992
|
+
var y, $, E, A;
|
|
2986
2993
|
try {
|
|
2987
|
-
const
|
|
2988
|
-
if (!
|
|
2994
|
+
const x = await (await fetch(g)).json(), T = (A = (E = ($ = (y = x == null ? void 0 : x.group) == null ? void 0 : y.groups) == null ? void 0 : $.map((U) => U.id)) == null ? void 0 : E.filter(Boolean)) == null ? void 0 : A.join(",");
|
|
2995
|
+
if (!T) {
|
|
2989
2996
|
console.error("Could not extract group ID");
|
|
2990
2997
|
return;
|
|
2991
2998
|
}
|
|
2992
|
-
const L = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${
|
|
2999
|
+
const L = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${T}.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764283566783&prePackCouponTags=CUSTOM`, R = await (await fetch(L)).json();
|
|
2993
3000
|
d(Cn(R.events, R.betOffers, R.prePackCoupons));
|
|
2994
|
-
} catch (
|
|
2995
|
-
console.error("loadDataEventSpecial error:",
|
|
3001
|
+
} catch (N) {
|
|
3002
|
+
console.error("loadDataEventSpecial error:", N);
|
|
2996
3003
|
}
|
|
2997
3004
|
}
|
|
2998
|
-
|
|
2999
|
-
|
|
3005
|
+
Q(() => {
|
|
3006
|
+
I();
|
|
3000
3007
|
}, []);
|
|
3001
|
-
const
|
|
3002
|
-
return _.length === 0 ? null : /* @__PURE__ */ t("section", { className:
|
|
3008
|
+
const O = i || void 0, D = xe("(max-width:950px)");
|
|
3009
|
+
return _.length === 0 ? null : /* @__PURE__ */ t("section", { className: O, style: {
|
|
3003
3010
|
// paddingLeft: 16,
|
|
3004
3011
|
// paddingRight: 16,
|
|
3005
3012
|
width: "100%",
|
|
3006
3013
|
boxSizing: "border-box"
|
|
3007
|
-
}, children: /* @__PURE__ */
|
|
3008
|
-
/* @__PURE__ */ t("div", { className: at.padding, children: /* @__PURE__ */
|
|
3014
|
+
}, children: /* @__PURE__ */ b(H, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
3015
|
+
/* @__PURE__ */ t("div", { className: at.padding, children: /* @__PURE__ */ b(me, { spacing: 1.5, columns: "1fr auto ", justify: "start", children: [
|
|
3009
3016
|
/* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
|
|
3010
|
-
/* @__PURE__ */
|
|
3011
|
-
/* @__PURE__ */
|
|
3017
|
+
/* @__PURE__ */ b("div", { className: at.controls, children: [
|
|
3018
|
+
/* @__PURE__ */ b(me, { spacing: 1, columns: "auto auto", children: [
|
|
3012
3019
|
/* @__PURE__ */ t(
|
|
3013
3020
|
X,
|
|
3014
3021
|
{
|
|
3015
3022
|
ariaLabel: "Anterior",
|
|
3016
3023
|
variant: "secondary",
|
|
3017
3024
|
iconOnly: !0,
|
|
3018
|
-
leftIcon: /* @__PURE__ */ t(
|
|
3019
|
-
onClick:
|
|
3025
|
+
leftIcon: /* @__PURE__ */ t(Ae, {}),
|
|
3026
|
+
onClick: p,
|
|
3020
3027
|
disabled: h.isStart
|
|
3021
3028
|
}
|
|
3022
3029
|
),
|
|
@@ -3027,12 +3034,12 @@ function Tn({
|
|
|
3027
3034
|
variant: "secondary",
|
|
3028
3035
|
iconOnly: !0,
|
|
3029
3036
|
rightIcon: /* @__PURE__ */ t(ze, {}),
|
|
3030
|
-
onClick:
|
|
3037
|
+
onClick: v,
|
|
3031
3038
|
disabled: h.isEnd
|
|
3032
3039
|
}
|
|
3033
3040
|
)
|
|
3034
3041
|
] }),
|
|
3035
|
-
/* @__PURE__ */ t(X, { variant: "secondary", onClick:
|
|
3042
|
+
/* @__PURE__ */ t(X, { variant: "secondary", onClick: C, children: "Ver más" })
|
|
3036
3043
|
] })
|
|
3037
3044
|
] }) }),
|
|
3038
3045
|
/* @__PURE__ */ t(
|
|
@@ -3045,12 +3052,12 @@ function Tn({
|
|
|
3045
3052
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
3046
3053
|
useIndexAsKey: !0,
|
|
3047
3054
|
enableHorizontalWheel: !0,
|
|
3048
|
-
showRightGradient: !
|
|
3055
|
+
showRightGradient: !D,
|
|
3049
3056
|
breakpoints: {
|
|
3050
3057
|
768: { perPage: 1.2, gap: "12px", padding: { left: "24px", right: "24px" } }
|
|
3051
3058
|
},
|
|
3052
|
-
renderItem: (
|
|
3053
|
-
onMove: ({ isStart:
|
|
3059
|
+
renderItem: (y) => /* @__PURE__ */ t(En, { coupon: y }),
|
|
3060
|
+
onMove: ({ isStart: y, isEnd: $ }) => u({ isStart: y, isEnd: $ })
|
|
3054
3061
|
}
|
|
3055
3062
|
)
|
|
3056
3063
|
] }) });
|
|
@@ -3060,27 +3067,27 @@ function kn({}) {
|
|
|
3060
3067
|
"div",
|
|
3061
3068
|
{
|
|
3062
3069
|
className: ke.cardWrapper,
|
|
3063
|
-
children: /* @__PURE__ */
|
|
3064
|
-
/* @__PURE__ */
|
|
3070
|
+
children: /* @__PURE__ */ b(H, { direction: "column", spacing: 1, children: [
|
|
3071
|
+
/* @__PURE__ */ b(H, { spacing: 1, direction: "row", children: [
|
|
3065
3072
|
/* @__PURE__ */ t(j, { variant: "text", width: "60%", height: 24 }),
|
|
3066
3073
|
/* @__PURE__ */ t(j, { variant: "text", width: "39%", height: 24 })
|
|
3067
3074
|
] }),
|
|
3068
|
-
/* @__PURE__ */
|
|
3075
|
+
/* @__PURE__ */ b(H, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
3069
3076
|
/* @__PURE__ */ t(j, { variant: "circular", width: 32, height: 40 }),
|
|
3070
3077
|
/* @__PURE__ */ t(j, { variant: "text", width: 40, height: 40 }),
|
|
3071
3078
|
/* @__PURE__ */ t(j, { variant: "circular", width: 32, height: 40 })
|
|
3072
3079
|
] }),
|
|
3073
|
-
/* @__PURE__ */
|
|
3080
|
+
/* @__PURE__ */ b(H, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
3074
3081
|
/* @__PURE__ */ t(j, { variant: "text", width: 32, height: 16 }),
|
|
3075
3082
|
/* @__PURE__ */ t(j, { variant: "text", width: 40, height: 16 }),
|
|
3076
3083
|
/* @__PURE__ */ t(j, { variant: "text", width: 32, height: 16 })
|
|
3077
3084
|
] }),
|
|
3078
|
-
/* @__PURE__ */
|
|
3085
|
+
/* @__PURE__ */ b(H, { spacing: 2, direction: "row", children: [
|
|
3079
3086
|
/* @__PURE__ */ t(j, { variant: "rounded", width: 88, height: 16 }),
|
|
3080
3087
|
/* @__PURE__ */ t(j, { variant: "rounded", width: 88, height: 16 }),
|
|
3081
3088
|
/* @__PURE__ */ t(j, { variant: "rounded", width: 88, height: 16 })
|
|
3082
3089
|
] }),
|
|
3083
|
-
/* @__PURE__ */
|
|
3090
|
+
/* @__PURE__ */ b(H, { spacing: 2, direction: "row", children: [
|
|
3084
3091
|
/* @__PURE__ */ t(j, { variant: "rounded", width: 88, height: 32 }),
|
|
3085
3092
|
/* @__PURE__ */ t(j, { variant: "rounded", width: 88, height: 32 }),
|
|
3086
3093
|
/* @__PURE__ */ t(j, { variant: "rounded", width: 88, height: 32 })
|
|
@@ -3092,10 +3099,10 @@ function kn({}) {
|
|
|
3092
3099
|
const $n = "oraculo__FadeItemWrapper-module__fadeWrapper___kFOH4", Nn = {
|
|
3093
3100
|
fadeWrapper: $n
|
|
3094
3101
|
};
|
|
3095
|
-
function
|
|
3102
|
+
function Be({ children: e }) {
|
|
3096
3103
|
return /* @__PURE__ */ t("div", { className: Nn.fadeWrapper, children: e });
|
|
3097
3104
|
}
|
|
3098
|
-
const Mn = "oraculo__OraculoSeccionEventoEnVivo-module__padding___Sh8tD",
|
|
3105
|
+
const Mn = "oraculo__OraculoSeccionEventoEnVivo-module__padding___Sh8tD", Bn = {
|
|
3099
3106
|
padding: Mn
|
|
3100
3107
|
};
|
|
3101
3108
|
function St({
|
|
@@ -3105,50 +3112,50 @@ function St({
|
|
|
3105
3112
|
buffer: o = 2,
|
|
3106
3113
|
debounceMs: i = 250
|
|
3107
3114
|
}) {
|
|
3108
|
-
const [r, s] =
|
|
3109
|
-
return
|
|
3115
|
+
const [r, s] = Z({}), c = V(/* @__PURE__ */ new Set()), f = V(0), h = V(null), u = V(null);
|
|
3116
|
+
return Q(() => {
|
|
3110
3117
|
if (!(!e || e.length === 0))
|
|
3111
3118
|
return h.current && clearTimeout(h.current), h.current = setTimeout(() => {
|
|
3112
|
-
var
|
|
3113
|
-
const
|
|
3114
|
-
let
|
|
3119
|
+
var D, y;
|
|
3120
|
+
const m = (D = a.start) != null ? D : 0, d = (y = a.end) != null ? y : 7, g = Math.max(0, m - o), p = Math.min(e.length - 1, d + o);
|
|
3121
|
+
let v = g, C = p;
|
|
3115
3122
|
const _ = u.current;
|
|
3116
|
-
_ && (
|
|
3117
|
-
const
|
|
3118
|
-
if (
|
|
3119
|
-
|
|
3120
|
-
const
|
|
3123
|
+
_ && (g > _.end && (v = _.end + 1), p < _.start && (C = _.start - 1)), u.current = { start: g, end: p };
|
|
3124
|
+
const I = e.slice(v, C + 1).map(($) => $ == null ? void 0 : $.id).filter(($) => !!$).filter(($) => !c.current.has($)).filter(($) => !($ in r));
|
|
3125
|
+
if (I.length === 0) return;
|
|
3126
|
+
I.forEach(($) => c.current.add($));
|
|
3127
|
+
const O = ++f.current;
|
|
3121
3128
|
(async () => {
|
|
3122
3129
|
try {
|
|
3123
|
-
const
|
|
3124
|
-
if (
|
|
3125
|
-
|
|
3130
|
+
const $ = await n(I);
|
|
3131
|
+
if (O !== f.current) {
|
|
3132
|
+
I.forEach((A) => c.current.delete(A));
|
|
3126
3133
|
return;
|
|
3127
3134
|
}
|
|
3128
|
-
if (!(
|
|
3129
|
-
|
|
3130
|
-
(
|
|
3135
|
+
if (!($ != null && $.events)) {
|
|
3136
|
+
I.forEach(
|
|
3137
|
+
(A) => c.current.delete(A)
|
|
3131
3138
|
);
|
|
3132
3139
|
return;
|
|
3133
3140
|
}
|
|
3134
|
-
s((
|
|
3135
|
-
const
|
|
3136
|
-
for (const [
|
|
3137
|
-
const L = Number(
|
|
3138
|
-
|
|
3141
|
+
s((A) => {
|
|
3142
|
+
const N = { ...A };
|
|
3143
|
+
for (const [x, T] of Object.entries($.events)) {
|
|
3144
|
+
const L = Number(x);
|
|
3145
|
+
N[L] || (N[L] = T);
|
|
3139
3146
|
}
|
|
3140
|
-
return
|
|
3147
|
+
return N;
|
|
3141
3148
|
});
|
|
3142
|
-
const
|
|
3143
|
-
Object.keys(
|
|
3149
|
+
const E = new Set(
|
|
3150
|
+
Object.keys($.events).map(Number)
|
|
3144
3151
|
);
|
|
3145
|
-
|
|
3146
|
-
|
|
3152
|
+
I.forEach((A) => {
|
|
3153
|
+
c.current.delete(A);
|
|
3147
3154
|
});
|
|
3148
|
-
} catch (
|
|
3149
|
-
|
|
3150
|
-
(
|
|
3151
|
-
), console.error("Jersey fetch error",
|
|
3155
|
+
} catch ($) {
|
|
3156
|
+
I.forEach(
|
|
3157
|
+
(E) => c.current.delete(E)
|
|
3158
|
+
), console.error("Jersey fetch error", $);
|
|
3152
3159
|
}
|
|
3153
3160
|
})();
|
|
3154
3161
|
}, i), () => {
|
|
@@ -3156,17 +3163,17 @@ function St({
|
|
|
3156
3163
|
};
|
|
3157
3164
|
}, [e, a, o, i, n]), {
|
|
3158
3165
|
jerseys: r,
|
|
3159
|
-
isPending:
|
|
3166
|
+
isPending: c.current
|
|
3160
3167
|
};
|
|
3161
3168
|
}
|
|
3162
|
-
const
|
|
3169
|
+
const An = (e) => {
|
|
3163
3170
|
const a = ["esports", "cyber"];
|
|
3164
3171
|
return e.filter((n) => {
|
|
3165
3172
|
var r, s;
|
|
3166
3173
|
const o = (r = n == null ? void 0 : n.event) == null ? void 0 : r.sport;
|
|
3167
3174
|
if (typeof o != "string" || o !== "FOOTBALL") return !1;
|
|
3168
3175
|
const i = typeof ((s = n == null ? void 0 : n.event) == null ? void 0 : s.group) == "string" ? n.event.group.toLowerCase() : "";
|
|
3169
|
-
return !a.some((
|
|
3176
|
+
return !a.some((c) => i.includes(c));
|
|
3170
3177
|
});
|
|
3171
3178
|
}, zn = fe.memo(Da);
|
|
3172
3179
|
function Rn({
|
|
@@ -3176,106 +3183,106 @@ function Rn({
|
|
|
3176
3183
|
onViewMore: o,
|
|
3177
3184
|
className: i = ""
|
|
3178
3185
|
}) {
|
|
3179
|
-
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), [
|
|
3186
|
+
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), [c, f] = Z({ isStart: !0, isEnd: !1 }), [h, u] = Z(null), [m, d] = Z({ start: null, end: null }), [g, p] = Z(null), v = V(!1), C = ae(), _ = ne(), I = le(), O = V(/* @__PURE__ */ new Map()), D = () => {
|
|
3180
3187
|
var z;
|
|
3181
|
-
|
|
3188
|
+
C({
|
|
3182
3189
|
element: "evento_en_vivo_prev",
|
|
3183
3190
|
label: `${_} - OraculoSeccionEventoEnVivo - Anterior`,
|
|
3184
3191
|
target: "prev",
|
|
3185
3192
|
event_type: "click",
|
|
3186
|
-
module_id:
|
|
3193
|
+
module_id: I,
|
|
3187
3194
|
metadata: {
|
|
3188
3195
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
3189
3196
|
},
|
|
3190
3197
|
tags: { section: "OraculoSeccionEventoEnVivo" }
|
|
3191
3198
|
}), (z = s.current) == null || z.prev();
|
|
3192
|
-
},
|
|
3199
|
+
}, y = () => {
|
|
3193
3200
|
var z;
|
|
3194
|
-
|
|
3201
|
+
C({
|
|
3195
3202
|
element: "evento_en_vivo_next",
|
|
3196
3203
|
label: `${_} - OraculoSeccionEventoEnVivo - Siguiente`,
|
|
3197
3204
|
target: "next",
|
|
3198
3205
|
event_type: "click",
|
|
3199
|
-
module_id:
|
|
3206
|
+
module_id: I,
|
|
3200
3207
|
metadata: {
|
|
3201
3208
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
3202
3209
|
},
|
|
3203
3210
|
tags: { section: "OraculoSeccionEventoEnVivo" }
|
|
3204
3211
|
}), (z = s.current) == null || z.next();
|
|
3205
|
-
},
|
|
3206
|
-
|
|
3212
|
+
}, $ = () => {
|
|
3213
|
+
C({
|
|
3207
3214
|
element: "evento_en_vivo_view_more",
|
|
3208
3215
|
label: `${_} - OraculoSeccionEventoEnVivo - Ver más`,
|
|
3209
3216
|
target: "ver_mas",
|
|
3210
3217
|
event_type: "click",
|
|
3211
|
-
module_id:
|
|
3218
|
+
module_id: I,
|
|
3212
3219
|
metadata: {
|
|
3213
3220
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
3214
3221
|
},
|
|
3215
3222
|
tags: { section: "OraculoSeccionEventoEnVivo" }
|
|
3216
|
-
}),
|
|
3217
|
-
},
|
|
3223
|
+
}), Ba();
|
|
3224
|
+
}, E = Ee(async () => {
|
|
3218
3225
|
var z;
|
|
3219
3226
|
try {
|
|
3220
|
-
if (!
|
|
3221
|
-
|
|
3227
|
+
if (!v.current) {
|
|
3228
|
+
v.current = !0;
|
|
3222
3229
|
try {
|
|
3223
|
-
const
|
|
3224
|
-
|
|
3225
|
-
} catch (
|
|
3226
|
-
console.error("Order fetch failed, using default sorting",
|
|
3230
|
+
const w = await (await fetch("https://api.mktolimpo.com/api/kambi/eventos/orden")).json(), F = ((z = w == null ? void 0 : w.data) == null ? void 0 : z.event_ids) || [], K = /* @__PURE__ */ new Map();
|
|
3231
|
+
F.forEach((Y, l) => K.set(String(Y), l)), O.current = K;
|
|
3232
|
+
} catch (G) {
|
|
3233
|
+
console.error("Order fetch failed, using default sorting", G);
|
|
3227
3234
|
}
|
|
3228
3235
|
}
|
|
3229
3236
|
const R = await fetch(r);
|
|
3230
3237
|
if (!R.ok) throw new Error("Failed to fetch live events");
|
|
3231
|
-
const U = await R.json(), W =
|
|
3232
|
-
if (
|
|
3238
|
+
const U = await R.json(), W = An(U.events);
|
|
3239
|
+
if (O.current.size === 0)
|
|
3233
3240
|
u(W);
|
|
3234
3241
|
else {
|
|
3235
|
-
const
|
|
3236
|
-
const
|
|
3237
|
-
return (
|
|
3242
|
+
const G = [...W].sort((w, F) => {
|
|
3243
|
+
const K = O.current.get(String(w.event.id)), Y = O.current.get(String(F.event.id));
|
|
3244
|
+
return (K !== void 0 ? K : 1 / 0) - (Y !== void 0 ? Y : 1 / 0);
|
|
3238
3245
|
});
|
|
3239
|
-
u(
|
|
3246
|
+
u(G);
|
|
3240
3247
|
}
|
|
3241
3248
|
} catch (R) {
|
|
3242
3249
|
console.error("LoadData Error:", R);
|
|
3243
3250
|
}
|
|
3244
3251
|
}, []);
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
const z = setInterval(
|
|
3252
|
+
Q(() => {
|
|
3253
|
+
E();
|
|
3254
|
+
const z = setInterval(E, 2e4);
|
|
3248
3255
|
return () => clearInterval(z);
|
|
3249
|
-
}, [
|
|
3250
|
-
const { jerseys:
|
|
3256
|
+
}, [E]);
|
|
3257
|
+
const { jerseys: A } = St({
|
|
3251
3258
|
events: (h == null ? void 0 : h.map((z) => z.event)) || [],
|
|
3252
3259
|
// extract actual event objects
|
|
3253
|
-
visibleRange:
|
|
3260
|
+
visibleRange: m,
|
|
3254
3261
|
fetchJerseys: gt,
|
|
3255
3262
|
buffer: 3,
|
|
3256
3263
|
// same as your previous BUFFER
|
|
3257
3264
|
debounceMs: 300
|
|
3258
3265
|
// same as your previous debouncedVisibleRange
|
|
3259
|
-
}),
|
|
3260
|
-
return !
|
|
3266
|
+
}), N = i || void 0, x = h === null, T = ie(() => x ? Array(4).fill({}) : (h == null ? void 0 : h.slice(0, 20)) || [], [x, h]), L = xe("(max-width:950px)");
|
|
3267
|
+
return !x && h.length === 0 ? null : /* @__PURE__ */ t("section", { className: N, style: {
|
|
3261
3268
|
// paddingLeft: 16,
|
|
3262
3269
|
// paddingRight: 16,
|
|
3263
3270
|
width: "100%",
|
|
3264
3271
|
boxSizing: "border-box"
|
|
3265
|
-
}, children: /* @__PURE__ */
|
|
3266
|
-
/* @__PURE__ */ t("div", { className:
|
|
3272
|
+
}, children: /* @__PURE__ */ b(H, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
3273
|
+
/* @__PURE__ */ t("div", { className: Bn.padding, children: /* @__PURE__ */ b(me, { spacing: 1.5, columns: "1fr auto ", justify: "start", children: [
|
|
3267
3274
|
/* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
|
|
3268
|
-
/* @__PURE__ */
|
|
3269
|
-
/* @__PURE__ */
|
|
3275
|
+
/* @__PURE__ */ b("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
|
|
3276
|
+
/* @__PURE__ */ b(me, { spacing: 1, columns: "auto auto", children: [
|
|
3270
3277
|
/* @__PURE__ */ t(
|
|
3271
3278
|
X,
|
|
3272
3279
|
{
|
|
3273
3280
|
ariaLabel: "Anterior",
|
|
3274
3281
|
variant: "secondary",
|
|
3275
3282
|
iconOnly: !0,
|
|
3276
|
-
leftIcon: /* @__PURE__ */ t(
|
|
3277
|
-
onClick:
|
|
3278
|
-
disabled:
|
|
3283
|
+
leftIcon: /* @__PURE__ */ t(Ae, {}),
|
|
3284
|
+
onClick: D,
|
|
3285
|
+
disabled: c.isStart
|
|
3279
3286
|
}
|
|
3280
3287
|
),
|
|
3281
3288
|
/* @__PURE__ */ t(
|
|
@@ -3285,19 +3292,19 @@ function Rn({
|
|
|
3285
3292
|
variant: "secondary",
|
|
3286
3293
|
iconOnly: !0,
|
|
3287
3294
|
rightIcon: /* @__PURE__ */ t(ze, {}),
|
|
3288
|
-
onClick:
|
|
3289
|
-
disabled:
|
|
3295
|
+
onClick: y,
|
|
3296
|
+
disabled: c.isEnd
|
|
3290
3297
|
}
|
|
3291
3298
|
)
|
|
3292
3299
|
] }),
|
|
3293
|
-
/* @__PURE__ */ t(X, { variant: "secondary", onClick:
|
|
3300
|
+
/* @__PURE__ */ t(X, { variant: "secondary", onClick: $, children: "Ver más" })
|
|
3294
3301
|
] })
|
|
3295
3302
|
] }) }),
|
|
3296
3303
|
/* @__PURE__ */ t(
|
|
3297
3304
|
he,
|
|
3298
3305
|
{
|
|
3299
3306
|
ref: s,
|
|
3300
|
-
items:
|
|
3307
|
+
items: T,
|
|
3301
3308
|
perPage: void 0,
|
|
3302
3309
|
showRightGradient: !L,
|
|
3303
3310
|
enableHorizontalWheel: !0,
|
|
@@ -3310,8 +3317,8 @@ function Rn({
|
|
|
3310
3317
|
},
|
|
3311
3318
|
renderItem: (z) => {
|
|
3312
3319
|
var W;
|
|
3313
|
-
const R = ((W = z.event) == null ? void 0 : W.id) || z.eventId, U = R in
|
|
3314
|
-
return
|
|
3320
|
+
const R = ((W = z.event) == null ? void 0 : W.id) || z.eventId, U = R in A ? A[R] : void 0;
|
|
3321
|
+
return x ? /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(kn, {}) }) : /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(
|
|
3315
3322
|
zn,
|
|
3316
3323
|
{
|
|
3317
3324
|
...z,
|
|
@@ -3321,7 +3328,7 @@ function Rn({
|
|
|
3321
3328
|
},
|
|
3322
3329
|
onMove: ({ isStart: z, isEnd: R, visibleStart: U, visibleEnd: W }) => {
|
|
3323
3330
|
f(
|
|
3324
|
-
(
|
|
3331
|
+
(G) => G.isStart === z && G.isEnd === R ? G : { isStart: z, isEnd: R }
|
|
3325
3332
|
), d({ start: U, end: W });
|
|
3326
3333
|
}
|
|
3327
3334
|
}
|
|
@@ -3329,25 +3336,25 @@ function Rn({
|
|
|
3329
3336
|
] }) });
|
|
3330
3337
|
}
|
|
3331
3338
|
function Ln() {
|
|
3332
|
-
return /* @__PURE__ */
|
|
3339
|
+
return /* @__PURE__ */ b("div", { className: be.cardContainer, children: [
|
|
3333
3340
|
/* @__PURE__ */ t(mt, { title: "" }),
|
|
3334
|
-
/* @__PURE__ */ t("div", { className: be.cardBackground, children: /* @__PURE__ */
|
|
3335
|
-
/* @__PURE__ */
|
|
3341
|
+
/* @__PURE__ */ t("div", { className: be.cardBackground, children: /* @__PURE__ */ b(H, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
3342
|
+
/* @__PURE__ */ b(H, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
3336
3343
|
/* @__PURE__ */ t(j, { variant: "circular", width: 48, height: 48 }),
|
|
3337
3344
|
/* @__PURE__ */ t(j, { variant: "circular", width: 48, height: 48 })
|
|
3338
3345
|
] }),
|
|
3339
|
-
/* @__PURE__ */
|
|
3340
|
-
/* @__PURE__ */
|
|
3346
|
+
/* @__PURE__ */ b(H, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
3347
|
+
/* @__PURE__ */ b(H, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
3341
3348
|
/* @__PURE__ */ t(j, { variant: "text", width: 80, height: 12 }),
|
|
3342
3349
|
/* @__PURE__ */ t(j, { variant: "text", width: 80, height: 12 })
|
|
3343
3350
|
] }),
|
|
3344
3351
|
/* @__PURE__ */ t(H, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ t(j, { variant: "text", width: 160, height: 12 }) }),
|
|
3345
|
-
/* @__PURE__ */
|
|
3352
|
+
/* @__PURE__ */ b(H, { direction: "row", spacing: 1, children: [
|
|
3346
3353
|
/* @__PURE__ */ t(j, { variant: "text", width: 80, height: 16 }),
|
|
3347
3354
|
/* @__PURE__ */ t(j, { variant: "text", width: 80, height: 16 }),
|
|
3348
3355
|
/* @__PURE__ */ t(j, { variant: "text", width: 80, height: 16 })
|
|
3349
3356
|
] }),
|
|
3350
|
-
/* @__PURE__ */ t("div", { className: be.jugadas, children: /* @__PURE__ */
|
|
3357
|
+
/* @__PURE__ */ t("div", { className: be.jugadas, children: /* @__PURE__ */ b(H, { direction: "row", spacing: 1, children: [
|
|
3351
3358
|
/* @__PURE__ */ t(j, { variant: "rounded", width: 80, height: 32 }),
|
|
3352
3359
|
/* @__PURE__ */ t(j, { variant: "rounded", width: 80, height: 32 }),
|
|
3353
3360
|
/* @__PURE__ */ t(j, { variant: "rounded", width: 80, height: 32 })
|
|
@@ -3368,7 +3375,7 @@ async function Vn(e, a = 2, n) {
|
|
|
3368
3375
|
if (n.aborted)
|
|
3369
3376
|
throw new DOMException("Aborted", "AbortError");
|
|
3370
3377
|
const r = e.slice(i, i + a), s = await Promise.all(
|
|
3371
|
-
r.map((
|
|
3378
|
+
r.map((c) => fetch(c, { signal: n }).then((f) => f.json()))
|
|
3372
3379
|
);
|
|
3373
3380
|
o.push(...s);
|
|
3374
3381
|
}
|
|
@@ -3404,119 +3411,119 @@ function Hn({
|
|
|
3404
3411
|
onViewMore: o,
|
|
3405
3412
|
className: i = ""
|
|
3406
3413
|
}) {
|
|
3407
|
-
const r = ae(), s = ne(),
|
|
3414
|
+
const r = ae(), s = ne(), c = le(), f = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE", h = V(null), [u, m] = Z({ isStart: !0, isEnd: !1 }), [d, g] = Z(null), [p, v] = Z({ start: null, end: null }), C = "channel_id=1&client_id=200&competitionId=undefined&lang=es_PE&market=PE&useCombined=true", _ = () => {
|
|
3408
3415
|
r({
|
|
3409
3416
|
element: "evento_semana_view_more",
|
|
3410
3417
|
label: `${s} - OraculoSeccionEventoSemana - Ver más`,
|
|
3411
3418
|
target: "ver_mas",
|
|
3412
3419
|
event_type: "click",
|
|
3413
|
-
module_id:
|
|
3420
|
+
module_id: c,
|
|
3414
3421
|
metadata: {
|
|
3415
3422
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
3416
3423
|
},
|
|
3417
3424
|
tags: { section: "OraculoSeccionEventoSemana" }
|
|
3418
|
-
}),
|
|
3425
|
+
}), Aa();
|
|
3419
3426
|
};
|
|
3420
|
-
async function
|
|
3427
|
+
async function I(N) {
|
|
3421
3428
|
var L, z;
|
|
3422
|
-
let
|
|
3429
|
+
let x = [], T = [];
|
|
3423
3430
|
try {
|
|
3424
3431
|
const R = await fetch(
|
|
3425
3432
|
"https://api.mktolimpo.com/api/kambi/eventos/orden",
|
|
3426
|
-
{ signal:
|
|
3433
|
+
{ signal: N }
|
|
3427
3434
|
);
|
|
3428
3435
|
if (R.ok) {
|
|
3429
3436
|
const U = await R.json();
|
|
3430
|
-
|
|
3437
|
+
x = ((L = U == null ? void 0 : U.data) == null ? void 0 : L.group_ids) || [], T = ((z = U == null ? void 0 : U.data) == null ? void 0 : z.event_ids) || [];
|
|
3431
3438
|
}
|
|
3432
3439
|
} catch (R) {
|
|
3433
3440
|
R.name !== "AbortError" && console.warn("Order API not available, using default group order");
|
|
3434
3441
|
return;
|
|
3435
3442
|
}
|
|
3436
3443
|
try {
|
|
3437
|
-
const W = (await (await fetch(f, { signal:
|
|
3438
|
-
(
|
|
3444
|
+
const W = (await (await fetch(f, { signal: N })).json()).group.groups.find(
|
|
3445
|
+
(l) => l.englishName === "Football"
|
|
3439
3446
|
);
|
|
3440
3447
|
if (!W || !Array.isArray(W.groups)) {
|
|
3441
3448
|
console.error("Football groups not found");
|
|
3442
3449
|
return;
|
|
3443
3450
|
}
|
|
3444
|
-
let
|
|
3445
|
-
if (
|
|
3446
|
-
const
|
|
3447
|
-
|
|
3451
|
+
let G = [...W.groups];
|
|
3452
|
+
if (x.length > 0) {
|
|
3453
|
+
const l = new Map(
|
|
3454
|
+
x.map((S, k) => [S, k])
|
|
3448
3455
|
);
|
|
3449
|
-
|
|
3450
|
-
const
|
|
3451
|
-
return
|
|
3456
|
+
G.sort((S, k) => {
|
|
3457
|
+
const M = l.get(String(S.id)), B = l.get(String(k.id));
|
|
3458
|
+
return M !== void 0 && B !== void 0 ? M - B : M !== void 0 ? -1 : B !== void 0 ? 1 : 0;
|
|
3452
3459
|
});
|
|
3453
3460
|
}
|
|
3454
|
-
const
|
|
3461
|
+
const F = G.slice(0, 5), K = (l) => {
|
|
3455
3462
|
const S = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football";
|
|
3456
|
-
if (
|
|
3457
|
-
const
|
|
3463
|
+
if (l.groups && l.groups.length > 0) {
|
|
3464
|
+
const k = l.groups[0];
|
|
3458
3465
|
return [
|
|
3459
|
-
`${S}/${
|
|
3466
|
+
`${S}/${l.termKey}/${k.termKey}/all/matches.json?${C}`
|
|
3460
3467
|
];
|
|
3461
3468
|
}
|
|
3462
3469
|
return [
|
|
3463
|
-
`${S}/${
|
|
3470
|
+
`${S}/${l.termKey}/all/all/matches.json?${C}`
|
|
3464
3471
|
];
|
|
3465
|
-
}, Y =
|
|
3466
|
-
|
|
3472
|
+
}, Y = F.flatMap(K);
|
|
3473
|
+
O(Y, T, N);
|
|
3467
3474
|
} catch (R) {
|
|
3468
3475
|
console.error(R);
|
|
3469
3476
|
}
|
|
3470
3477
|
}
|
|
3471
|
-
async function
|
|
3478
|
+
async function O(N, x, T) {
|
|
3472
3479
|
try {
|
|
3473
|
-
const L = await Vn(
|
|
3480
|
+
const L = await Vn(N, 2, T);
|
|
3474
3481
|
let z = [], R = [];
|
|
3475
|
-
L.forEach((
|
|
3476
|
-
|
|
3477
|
-
...
|
|
3482
|
+
L.forEach((w) => {
|
|
3483
|
+
w.events && (z.push(...w.events.map((F) => F.event)), R.push(
|
|
3484
|
+
...w.events.flatMap((F) => F.betOffers || [])
|
|
3478
3485
|
));
|
|
3479
3486
|
});
|
|
3480
3487
|
const U = jn(z, R), W = Wn(Gn(U));
|
|
3481
|
-
let
|
|
3482
|
-
if (
|
|
3483
|
-
const
|
|
3484
|
-
|
|
3485
|
-
String(
|
|
3486
|
-
|
|
3488
|
+
let G = W;
|
|
3489
|
+
if (x.length > 0) {
|
|
3490
|
+
const w = new Map(
|
|
3491
|
+
x.map((F, K) => [
|
|
3492
|
+
String(F),
|
|
3493
|
+
K
|
|
3487
3494
|
])
|
|
3488
3495
|
);
|
|
3489
|
-
|
|
3490
|
-
const Y =
|
|
3491
|
-
return Y !== void 0 &&
|
|
3496
|
+
G = [...W].sort((F, K) => {
|
|
3497
|
+
const Y = w.get(String(F.id)), l = w.get(String(K.id));
|
|
3498
|
+
return Y !== void 0 && l !== void 0 ? Y - l : Y !== void 0 ? -1 : l !== void 0 ? 1 : 0;
|
|
3492
3499
|
});
|
|
3493
3500
|
}
|
|
3494
|
-
if (
|
|
3495
|
-
|
|
3501
|
+
if (T.aborted) return;
|
|
3502
|
+
g(G);
|
|
3496
3503
|
} catch (L) {
|
|
3497
3504
|
console.error("Error loading events:", L);
|
|
3498
3505
|
}
|
|
3499
3506
|
}
|
|
3500
|
-
|
|
3507
|
+
Q(() => {
|
|
3501
3508
|
if (!e) return;
|
|
3502
|
-
const
|
|
3503
|
-
return
|
|
3504
|
-
|
|
3509
|
+
const N = new AbortController();
|
|
3510
|
+
return I(N.signal), () => {
|
|
3511
|
+
N.abort();
|
|
3505
3512
|
};
|
|
3506
3513
|
}, [e]);
|
|
3507
|
-
const
|
|
3514
|
+
const D = i || void 0, y = {
|
|
3508
3515
|
paddingLeft: 0,
|
|
3509
3516
|
width: "100%",
|
|
3510
3517
|
boxSizing: "border-box"
|
|
3511
|
-
}, { jerseys:
|
|
3518
|
+
}, { jerseys: $ } = St({
|
|
3512
3519
|
events: d,
|
|
3513
|
-
visibleRange:
|
|
3520
|
+
visibleRange: p,
|
|
3514
3521
|
fetchJerseys: gt,
|
|
3515
3522
|
buffer: 2,
|
|
3516
3523
|
debounceMs: 250
|
|
3517
|
-
}),
|
|
3518
|
-
return !
|
|
3519
|
-
/* @__PURE__ */ t("div", { className: Ie.container, children: /* @__PURE__ */
|
|
3524
|
+
}), E = d === null, A = xe("(max-width:950px)");
|
|
3525
|
+
return !E && d.length === 0 ? null : /* @__PURE__ */ t("section", { className: D, style: y, children: /* @__PURE__ */ b("div", { className: `${Ie.wrapper} ${Ie.padding}`, children: [
|
|
3526
|
+
/* @__PURE__ */ t("div", { className: Ie.container, children: /* @__PURE__ */ b(H, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
3520
3527
|
/* @__PURE__ */ t(ge, { title: "Eventos de la semana" }),
|
|
3521
3528
|
/* @__PURE__ */ t("div", { className: Ie.buttonWrapper, children: /* @__PURE__ */ t(
|
|
3522
3529
|
X,
|
|
@@ -3535,11 +3542,11 @@ function Hn({
|
|
|
3535
3542
|
he,
|
|
3536
3543
|
{
|
|
3537
3544
|
ref: h,
|
|
3538
|
-
items:
|
|
3545
|
+
items: E ? Array(6).fill({}) : d.slice(0, 20),
|
|
3539
3546
|
perPage: 3.5,
|
|
3540
3547
|
gap: "16px",
|
|
3541
3548
|
enableHorizontalWheel: !0,
|
|
3542
|
-
showRightGradient: !
|
|
3549
|
+
showRightGradient: !A,
|
|
3543
3550
|
options: { autoWidth: !0, trimSpace: !0 },
|
|
3544
3551
|
breakpoints: {
|
|
3545
3552
|
1024: {
|
|
@@ -3549,26 +3556,26 @@ function Hn({
|
|
|
3549
3556
|
padding: { left: "8px", right: "8px" }
|
|
3550
3557
|
}
|
|
3551
3558
|
},
|
|
3552
|
-
renderItem: (
|
|
3553
|
-
const
|
|
3554
|
-
return
|
|
3559
|
+
renderItem: (N) => {
|
|
3560
|
+
const x = N.id, T = x in $ ? $[x] : void 0;
|
|
3561
|
+
return E ? /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Ln, {}) }) : /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Un, { event: N, jersey: T }) });
|
|
3555
3562
|
},
|
|
3556
|
-
onMove: ({ isStart:
|
|
3557
|
-
|
|
3558
|
-
start:
|
|
3563
|
+
onMove: ({ isStart: N, isEnd: x, visibleStart: T, visibleEnd: L }) => {
|
|
3564
|
+
m({ isStart: N, isEnd: x }), v({
|
|
3565
|
+
start: T,
|
|
3559
3566
|
end: L
|
|
3560
3567
|
}), r({
|
|
3561
3568
|
element: "evento_semana_carousel_slide",
|
|
3562
3569
|
label: `${s} - OraculoSeccionEventoSemana - Slide Carousel`,
|
|
3563
3570
|
target: "carousel",
|
|
3564
3571
|
event_type: "slide",
|
|
3565
|
-
module_id:
|
|
3572
|
+
module_id: c,
|
|
3566
3573
|
metadata: {
|
|
3567
3574
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
3568
|
-
visibleStart:
|
|
3575
|
+
visibleStart: T,
|
|
3569
3576
|
visibleEnd: L,
|
|
3570
|
-
isStart:
|
|
3571
|
-
isEnd:
|
|
3577
|
+
isStart: N,
|
|
3578
|
+
isEnd: x
|
|
3572
3579
|
},
|
|
3573
3580
|
tags: { section: "OraculoSeccionEventoSemana" }
|
|
3574
3581
|
});
|
|
@@ -3587,18 +3594,18 @@ const Kn = -300, Zn = (e) => /[zZ]|[+-]\d{2}:\d{2}$/.test(e), nt = (e) => {
|
|
|
3587
3594
|
/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})(?::(\d{2}))?$/
|
|
3588
3595
|
);
|
|
3589
3596
|
if (!a) return null;
|
|
3590
|
-
const [, n, o, i, r, s,
|
|
3597
|
+
const [, n, o, i, r, s, c = "00"] = a;
|
|
3591
3598
|
return Date.UTC(
|
|
3592
3599
|
Number(n),
|
|
3593
3600
|
Number(o) - 1,
|
|
3594
3601
|
Number(i),
|
|
3595
3602
|
Number(r) - Kn / 60,
|
|
3596
3603
|
Number(s),
|
|
3597
|
-
Number(
|
|
3604
|
+
Number(c)
|
|
3598
3605
|
);
|
|
3599
3606
|
}, Jn = (e, a) => {
|
|
3600
|
-
var
|
|
3601
|
-
const n = (h = (f = (
|
|
3607
|
+
var c, f, h, u, m, d, g, p, v;
|
|
3608
|
+
const n = (h = (f = (c = e == null ? void 0 : e.fields) != null ? c : e == null ? void 0 : e.parameters) != null ? f : e == null ? void 0 : e.extraFields) != null ? h : [], o = (d = (m = e == null ? void 0 : e.startAt) != null ? m : (u = n.find((C) => (C == null ? void 0 : C.name) === "startAt")) == null ? void 0 : u.value) != null ? d : null, i = (v = (p = e == null ? void 0 : e.endAt) != null ? p : (g = n.find((C) => (C == null ? void 0 : C.name) === "endAt")) == null ? void 0 : g.value) != null ? v : null, r = nt(o), s = nt(i);
|
|
3602
3609
|
return !(r != null && a < r || s != null && a >= s);
|
|
3603
3610
|
};
|
|
3604
3611
|
function Xn({
|
|
@@ -3606,17 +3613,17 @@ function Xn({
|
|
|
3606
3613
|
items: a,
|
|
3607
3614
|
hideItems: n
|
|
3608
3615
|
}) {
|
|
3609
|
-
var
|
|
3610
|
-
const [o, i] =
|
|
3616
|
+
var W, G;
|
|
3617
|
+
const [o, i] = Z(0), r = ae(), s = ne(), c = le(), f = V(null), h = V(!1), u = V(!1), [m, d] = Z(() => Date.now()), g = se("setDepositActionGlobal"), p = ie(() => (e != null ? e : []).filter((w) => Jn(w, m)), [e, m]), v = p.length || 1, C = !p || p.length === 0, _ = !C && p.length > 1, I = !n && ((W = a == null ? void 0 : a.length) != null ? W : 0) > 0;
|
|
3611
3618
|
De("(max-width:950px)");
|
|
3612
|
-
const
|
|
3613
|
-
|
|
3619
|
+
const O = "#B5B5B5";
|
|
3620
|
+
Q(() => {
|
|
3614
3621
|
const w = window.setInterval(() => {
|
|
3615
3622
|
d(Date.now());
|
|
3616
3623
|
}, 3e4);
|
|
3617
3624
|
return () => window.clearInterval(w);
|
|
3618
3625
|
}, []);
|
|
3619
|
-
const
|
|
3626
|
+
const D = {
|
|
3620
3627
|
position: "absolute",
|
|
3621
3628
|
top: "50%",
|
|
3622
3629
|
transform: "translateY(-50%)",
|
|
@@ -3624,22 +3631,22 @@ function Xn({
|
|
|
3624
3631
|
width: 48,
|
|
3625
3632
|
height: 40,
|
|
3626
3633
|
borderRadius: "12px",
|
|
3627
|
-
border: `1.5px solid ${
|
|
3634
|
+
border: `1.5px solid ${O}`,
|
|
3628
3635
|
py: 1,
|
|
3629
3636
|
px: 1.5,
|
|
3630
|
-
color:
|
|
3637
|
+
color: O,
|
|
3631
3638
|
backgroundColor: "transparent",
|
|
3632
3639
|
"&:hover": {
|
|
3633
3640
|
backgroundColor: "rgba(181,181,181,0.08)"
|
|
3634
3641
|
},
|
|
3635
3642
|
"&.Mui-disabled": {
|
|
3636
3643
|
opacity: 0.35,
|
|
3637
|
-
borderColor:
|
|
3638
|
-
color:
|
|
3644
|
+
borderColor: O,
|
|
3645
|
+
color: O,
|
|
3639
3646
|
backgroundColor: "transparent",
|
|
3640
3647
|
cursor: "default"
|
|
3641
3648
|
}
|
|
3642
|
-
},
|
|
3649
|
+
}, y = ie(
|
|
3643
3650
|
() => ({
|
|
3644
3651
|
type: "loop",
|
|
3645
3652
|
perMove: 1,
|
|
@@ -3650,39 +3657,52 @@ function Xn({
|
|
|
3650
3657
|
}),
|
|
3651
3658
|
[]
|
|
3652
3659
|
);
|
|
3653
|
-
|
|
3660
|
+
Q(() => {
|
|
3654
3661
|
const w = setTimeout(() => {
|
|
3655
3662
|
h.current = !0;
|
|
3656
3663
|
}, 500);
|
|
3657
3664
|
return () => clearTimeout(w);
|
|
3658
3665
|
}, []);
|
|
3659
|
-
const
|
|
3660
|
-
var
|
|
3661
|
-
const
|
|
3666
|
+
const $ = (w, F, K) => {
|
|
3667
|
+
var k, M;
|
|
3668
|
+
const Y = !!F.idFunction, l = !!F.href;
|
|
3669
|
+
if (Y)
|
|
3670
|
+
switch (w.preventDefault(), w.stopPropagation(), F.idFunction) {
|
|
3671
|
+
case "deposito":
|
|
3672
|
+
g == null || g(!0);
|
|
3673
|
+
return;
|
|
3674
|
+
default:
|
|
3675
|
+
return;
|
|
3676
|
+
}
|
|
3677
|
+
if (!l) {
|
|
3678
|
+
w.preventDefault(), w.stopPropagation();
|
|
3679
|
+
return;
|
|
3680
|
+
}
|
|
3681
|
+
const S = ((M = (k = F.href) == null ? void 0 : k.split("/").pop()) == null ? void 0 : M.split(".")[0]) || F.label || F.id || `banner_${K + 1}`;
|
|
3662
3682
|
r({
|
|
3663
3683
|
element: "banner_carousel",
|
|
3664
|
-
label: `${s} - OraculoSeccionBanners - Banner click: ${
|
|
3665
|
-
target:
|
|
3684
|
+
label: `${s} - OraculoSeccionBanners - Banner click: ${S}`,
|
|
3685
|
+
target: F.href || "no_url",
|
|
3666
3686
|
event_type: "click",
|
|
3667
|
-
module_id:
|
|
3687
|
+
module_id: c,
|
|
3668
3688
|
metadata: {
|
|
3669
3689
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
3670
|
-
banner_position:
|
|
3671
|
-
banner_total: (
|
|
3690
|
+
banner_position: K + 1,
|
|
3691
|
+
banner_total: (p == null ? void 0 : p.length) || 0
|
|
3672
3692
|
},
|
|
3673
3693
|
tags: {
|
|
3674
3694
|
banner_type: "carousel",
|
|
3675
3695
|
banner_target: "_self",
|
|
3676
|
-
banner_url:
|
|
3696
|
+
banner_url: F.href || "no_url"
|
|
3677
3697
|
}
|
|
3678
3698
|
});
|
|
3679
|
-
},
|
|
3699
|
+
}, E = (w) => {
|
|
3680
3700
|
if (r({
|
|
3681
3701
|
element: "banner_menu_item",
|
|
3682
3702
|
label: `${s} - OraculoSeccionBanners - Menu item click: ${w.label || w.id}`,
|
|
3683
3703
|
target: w.href || "action",
|
|
3684
3704
|
event_type: "click",
|
|
3685
|
-
module_id:
|
|
3705
|
+
module_id: c,
|
|
3686
3706
|
metadata: {
|
|
3687
3707
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
3688
3708
|
item_id: w.id
|
|
@@ -3695,53 +3715,53 @@ function Xn({
|
|
|
3695
3715
|
return;
|
|
3696
3716
|
}
|
|
3697
3717
|
w.href && typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(w.href);
|
|
3698
|
-
},
|
|
3699
|
-
|
|
3700
|
-
},
|
|
3701
|
-
|
|
3718
|
+
}, A = 5e3, N = V(null), x = !C && ((G = p == null ? void 0 : p.length) != null ? G : 0) > 1, T = () => {
|
|
3719
|
+
N.current != null && (window.clearTimeout(N.current), N.current = null);
|
|
3720
|
+
}, L = () => {
|
|
3721
|
+
T(), x && (N.current = window.setTimeout(() => {
|
|
3702
3722
|
var w;
|
|
3703
3723
|
u.current = !0, (w = f.current) == null || w.next();
|
|
3704
|
-
},
|
|
3724
|
+
}, A));
|
|
3705
3725
|
};
|
|
3706
|
-
|
|
3707
|
-
const
|
|
3708
|
-
var
|
|
3709
|
-
w.preventDefault(), w.stopPropagation(),
|
|
3710
|
-
}, z = (w) => {
|
|
3711
|
-
var D;
|
|
3712
|
-
w.preventDefault(), w.stopPropagation(), y(), (D = f.current) == null || D.next();
|
|
3726
|
+
Q(() => (L(), () => T()), [x, A]);
|
|
3727
|
+
const z = (w) => {
|
|
3728
|
+
var F;
|
|
3729
|
+
w.preventDefault(), w.stopPropagation(), T(), (F = f.current) == null || F.prev();
|
|
3713
3730
|
}, R = (w) => {
|
|
3714
|
-
var
|
|
3715
|
-
|
|
3731
|
+
var F;
|
|
3732
|
+
w.preventDefault(), w.stopPropagation(), T(), (F = f.current) == null || F.next();
|
|
3733
|
+
}, U = (w) => {
|
|
3734
|
+
var Y, l, S, k;
|
|
3735
|
+
const F = (w % v + v) % v;
|
|
3716
3736
|
if (!h.current) return;
|
|
3717
|
-
const
|
|
3737
|
+
const K = (Y = p == null ? void 0 : p[F]) != null && Y.href ? ((S = (l = p[F].href) == null ? void 0 : l.split("/").pop()) == null ? void 0 : S.split(".")[0]) || `banner_${F + 1}` : `banner_${F + 1}`;
|
|
3718
3738
|
r({
|
|
3719
3739
|
element: "banner_carousel",
|
|
3720
|
-
label: `${s} - OraculoSeccionBanners - Banner view: Slide ${
|
|
3721
|
-
target: ((
|
|
3740
|
+
label: `${s} - OraculoSeccionBanners - Banner view: Slide ${F + 1} - ${K}`,
|
|
3741
|
+
target: ((k = p == null ? void 0 : p[F]) == null ? void 0 : k.href) || "no_url",
|
|
3722
3742
|
event_type: "view",
|
|
3723
|
-
module_id:
|
|
3743
|
+
module_id: c,
|
|
3724
3744
|
metadata: {
|
|
3725
3745
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
3726
|
-
slide_index:
|
|
3727
|
-
total_slides:
|
|
3746
|
+
slide_index: F + 1,
|
|
3747
|
+
total_slides: v,
|
|
3728
3748
|
interaction_type: "manual_slide"
|
|
3729
3749
|
},
|
|
3730
|
-
tags: { banner_position: String(
|
|
3750
|
+
tags: { banner_position: String(F + 1) }
|
|
3731
3751
|
});
|
|
3732
3752
|
};
|
|
3733
|
-
return /* @__PURE__ */
|
|
3734
|
-
|
|
3753
|
+
return /* @__PURE__ */ b(
|
|
3754
|
+
ee,
|
|
3735
3755
|
{
|
|
3736
3756
|
component: "section",
|
|
3737
3757
|
sx: {
|
|
3738
3758
|
position: "relative",
|
|
3739
3759
|
overflow: "visible",
|
|
3740
|
-
pb:
|
|
3760
|
+
pb: I ? { xs: "40px", sm: 0 } : 0
|
|
3741
3761
|
},
|
|
3742
3762
|
children: [
|
|
3743
|
-
/* @__PURE__ */
|
|
3744
|
-
|
|
3763
|
+
/* @__PURE__ */ b(
|
|
3764
|
+
ee,
|
|
3745
3765
|
{
|
|
3746
3766
|
sx: {
|
|
3747
3767
|
position: "relative",
|
|
@@ -3757,7 +3777,7 @@ function Xn({
|
|
|
3757
3777
|
},
|
|
3758
3778
|
children: [
|
|
3759
3779
|
/* @__PURE__ */ t(
|
|
3760
|
-
|
|
3780
|
+
ee,
|
|
3761
3781
|
{
|
|
3762
3782
|
sx: {
|
|
3763
3783
|
height: "100%",
|
|
@@ -3768,44 +3788,45 @@ function Xn({
|
|
|
3768
3788
|
he,
|
|
3769
3789
|
{
|
|
3770
3790
|
ref: f,
|
|
3771
|
-
items:
|
|
3791
|
+
items: p,
|
|
3772
3792
|
perPage: 1,
|
|
3773
3793
|
gap: "0px",
|
|
3774
3794
|
enableHorizontalWheel: !0,
|
|
3775
|
-
options:
|
|
3795
|
+
options: y,
|
|
3776
3796
|
onMove: ({ index: w }) => {
|
|
3777
|
-
const
|
|
3778
|
-
i(
|
|
3779
|
-
const
|
|
3780
|
-
u.current = !1,
|
|
3797
|
+
const F = (w % v + v) % v;
|
|
3798
|
+
i(F);
|
|
3799
|
+
const K = u.current;
|
|
3800
|
+
u.current = !1, L(), K || U(w);
|
|
3781
3801
|
},
|
|
3782
|
-
renderItem: (w,
|
|
3783
|
-
var
|
|
3784
|
-
|
|
3785
|
-
|
|
3802
|
+
renderItem: (w, F) => {
|
|
3803
|
+
var k, M, B;
|
|
3804
|
+
const K = !!w.idFunction, Y = !!w.href, l = Y && !K, S = K || Y;
|
|
3805
|
+
return /* @__PURE__ */ b(
|
|
3806
|
+
ee,
|
|
3786
3807
|
{
|
|
3787
|
-
component: "a",
|
|
3788
|
-
href: w.href,
|
|
3789
|
-
target: (
|
|
3790
|
-
rel: w.target === "_blank" ? "noopener noreferrer" : void 0,
|
|
3791
|
-
onClick: () =>
|
|
3808
|
+
component: l ? "a" : "div",
|
|
3809
|
+
href: l ? w.href : void 0,
|
|
3810
|
+
target: l ? (k = w.target) != null ? k : "_self" : void 0,
|
|
3811
|
+
rel: l && w.target === "_blank" ? "noopener noreferrer" : void 0,
|
|
3812
|
+
onClick: (P) => $(P, w, F),
|
|
3792
3813
|
sx: {
|
|
3793
3814
|
position: "relative",
|
|
3794
3815
|
width: "100%",
|
|
3795
3816
|
height: "100%",
|
|
3796
3817
|
display: "block",
|
|
3797
3818
|
textDecoration: "none",
|
|
3798
|
-
cursor: "pointer"
|
|
3819
|
+
cursor: S ? "pointer" : "default"
|
|
3799
3820
|
},
|
|
3800
3821
|
children: [
|
|
3801
|
-
/* @__PURE__ */
|
|
3822
|
+
/* @__PURE__ */ b(ee, { component: "picture", sx: { position: "absolute", inset: 0, lineHeight: 0 }, children: [
|
|
3802
3823
|
/* @__PURE__ */ t("source", { srcSet: w.desktopSrc, media: "(min-width:950px)" }),
|
|
3803
3824
|
/* @__PURE__ */ t("source", { srcSet: w.mobileSrc, media: "(max-width:949px)" }),
|
|
3804
3825
|
/* @__PURE__ */ t(
|
|
3805
|
-
|
|
3826
|
+
ee,
|
|
3806
3827
|
{
|
|
3807
3828
|
component: "img",
|
|
3808
|
-
src: (
|
|
3829
|
+
src: (B = (M = w.fallbackSrc) != null ? M : w.desktopSrc) != null ? B : "",
|
|
3809
3830
|
alt: "",
|
|
3810
3831
|
"aria-hidden": !0,
|
|
3811
3832
|
loading: "lazy",
|
|
@@ -3819,7 +3840,7 @@ function Xn({
|
|
|
3819
3840
|
)
|
|
3820
3841
|
] }),
|
|
3821
3842
|
/* @__PURE__ */ t(
|
|
3822
|
-
|
|
3843
|
+
ee,
|
|
3823
3844
|
{
|
|
3824
3845
|
sx: {
|
|
3825
3846
|
position: "absolute",
|
|
@@ -3845,28 +3866,28 @@ function Xn({
|
|
|
3845
3866
|
)
|
|
3846
3867
|
}
|
|
3847
3868
|
),
|
|
3848
|
-
|
|
3869
|
+
_ && /* @__PURE__ */ b(pe, { children: [
|
|
3849
3870
|
/* @__PURE__ */ t(
|
|
3850
3871
|
Ke,
|
|
3851
3872
|
{
|
|
3852
3873
|
"aria-label": "Anterior",
|
|
3853
|
-
onClick:
|
|
3874
|
+
onClick: z,
|
|
3854
3875
|
sx: {
|
|
3855
|
-
...
|
|
3876
|
+
...D,
|
|
3856
3877
|
left: "120px",
|
|
3857
3878
|
"@media (max-width:1024px)": { left: 24 },
|
|
3858
3879
|
"@media (max-width:786px)": { display: "none" }
|
|
3859
3880
|
},
|
|
3860
|
-
children: /* @__PURE__ */ t(
|
|
3881
|
+
children: /* @__PURE__ */ t(Ae, {})
|
|
3861
3882
|
}
|
|
3862
3883
|
),
|
|
3863
3884
|
/* @__PURE__ */ t(
|
|
3864
3885
|
Ke,
|
|
3865
3886
|
{
|
|
3866
3887
|
"aria-label": "Siguiente",
|
|
3867
|
-
onClick:
|
|
3888
|
+
onClick: R,
|
|
3868
3889
|
sx: {
|
|
3869
|
-
...
|
|
3890
|
+
...D,
|
|
3870
3891
|
right: "120px",
|
|
3871
3892
|
"@media (max-width:1024px)": { right: 24 },
|
|
3872
3893
|
"@media (max-width:786px)": { display: "none" }
|
|
@@ -3876,7 +3897,7 @@ function Xn({
|
|
|
3876
3897
|
)
|
|
3877
3898
|
] }),
|
|
3878
3899
|
/* @__PURE__ */ t(
|
|
3879
|
-
|
|
3900
|
+
ee,
|
|
3880
3901
|
{
|
|
3881
3902
|
sx: {
|
|
3882
3903
|
position: "absolute",
|
|
@@ -3890,19 +3911,19 @@ function Xn({
|
|
|
3890
3911
|
children: /* @__PURE__ */ t(
|
|
3891
3912
|
dt,
|
|
3892
3913
|
{
|
|
3893
|
-
total:
|
|
3914
|
+
total: v,
|
|
3894
3915
|
active: o,
|
|
3895
|
-
durationMs:
|
|
3916
|
+
durationMs: A
|
|
3896
3917
|
},
|
|
3897
|
-
`${o}-${
|
|
3918
|
+
`${o}-${v}`
|
|
3898
3919
|
)
|
|
3899
3920
|
}
|
|
3900
3921
|
)
|
|
3901
3922
|
]
|
|
3902
3923
|
}
|
|
3903
3924
|
),
|
|
3904
|
-
|
|
3905
|
-
|
|
3925
|
+
I && /* @__PURE__ */ t(
|
|
3926
|
+
ee,
|
|
3906
3927
|
{
|
|
3907
3928
|
sx: {
|
|
3908
3929
|
position: "absolute",
|
|
@@ -3919,8 +3940,8 @@ function Xn({
|
|
|
3919
3940
|
boxShadow: "0 10px 24px rgba(0,0,0,.35)",
|
|
3920
3941
|
zIndex: 3
|
|
3921
3942
|
},
|
|
3922
|
-
children: a == null ? void 0 : a.map((w) => /* @__PURE__ */
|
|
3923
|
-
|
|
3943
|
+
children: a == null ? void 0 : a.map((w) => /* @__PURE__ */ b(
|
|
3944
|
+
ee,
|
|
3924
3945
|
{
|
|
3925
3946
|
sx: {
|
|
3926
3947
|
position: "relative",
|
|
@@ -3964,10 +3985,10 @@ function Xn({
|
|
|
3964
3985
|
}
|
|
3965
3986
|
}
|
|
3966
3987
|
},
|
|
3967
|
-
onClick: () =>
|
|
3988
|
+
onClick: () => E(w),
|
|
3968
3989
|
children: [
|
|
3969
|
-
w.icon && /* @__PURE__ */
|
|
3970
|
-
|
|
3990
|
+
w.icon && /* @__PURE__ */ b(
|
|
3991
|
+
ee,
|
|
3971
3992
|
{
|
|
3972
3993
|
sx: {
|
|
3973
3994
|
position: "relative",
|
|
@@ -3977,7 +3998,7 @@ function Xn({
|
|
|
3977
3998
|
},
|
|
3978
3999
|
children: [
|
|
3979
4000
|
/* @__PURE__ */ t(
|
|
3980
|
-
|
|
4001
|
+
ee,
|
|
3981
4002
|
{
|
|
3982
4003
|
component: "img",
|
|
3983
4004
|
src: w.icon,
|
|
@@ -3994,7 +4015,7 @@ function Xn({
|
|
|
3994
4015
|
}
|
|
3995
4016
|
),
|
|
3996
4017
|
w.iconHover && /* @__PURE__ */ t(
|
|
3997
|
-
|
|
4018
|
+
ee,
|
|
3998
4019
|
{
|
|
3999
4020
|
component: "img",
|
|
4000
4021
|
src: w.iconHover,
|
|
@@ -4050,7 +4071,7 @@ function Qn({
|
|
|
4050
4071
|
items: a = Yn
|
|
4051
4072
|
}) {
|
|
4052
4073
|
const n = Math.ceil(a.length / 2), o = a.slice(0, n), i = a.slice(n);
|
|
4053
|
-
return /* @__PURE__ */
|
|
4074
|
+
return /* @__PURE__ */ b(ee, { component: "section", "aria-labelledby": "mp-title", sx: { color: "#fff" }, children: [
|
|
4054
4075
|
/* @__PURE__ */ t(
|
|
4055
4076
|
st,
|
|
4056
4077
|
{
|
|
@@ -4066,7 +4087,7 @@ function Qn({
|
|
|
4066
4087
|
}
|
|
4067
4088
|
),
|
|
4068
4089
|
/* @__PURE__ */ t(
|
|
4069
|
-
|
|
4090
|
+
ee,
|
|
4070
4091
|
{
|
|
4071
4092
|
sx: {
|
|
4072
4093
|
width: "288px",
|
|
@@ -4079,7 +4100,7 @@ function Qn({
|
|
|
4079
4100
|
}
|
|
4080
4101
|
}
|
|
4081
4102
|
),
|
|
4082
|
-
/* @__PURE__ */
|
|
4103
|
+
/* @__PURE__ */ b(Oe, { spacing: { xs: 2, md: 3 }, alignItems: "center", children: [
|
|
4083
4104
|
/* @__PURE__ */ t(
|
|
4084
4105
|
Oe,
|
|
4085
4106
|
{
|
|
@@ -4121,7 +4142,7 @@ function It({
|
|
|
4121
4142
|
}),
|
|
4122
4143
|
[a]
|
|
4123
4144
|
);
|
|
4124
|
-
return /* @__PURE__ */
|
|
4145
|
+
return /* @__PURE__ */ b(Lt, { theme: n, children: [
|
|
4125
4146
|
/* @__PURE__ */ t(Pt, {}),
|
|
4126
4147
|
e
|
|
4127
4148
|
] });
|
|
@@ -4422,6 +4443,14 @@ const eo = {
|
|
|
4422
4443
|
required: !1,
|
|
4423
4444
|
type: "string",
|
|
4424
4445
|
value: ""
|
|
4446
|
+
},
|
|
4447
|
+
{
|
|
4448
|
+
id: "fa9c467f-4f33-4bee-b502-a413d7212321",
|
|
4449
|
+
isImage: !1,
|
|
4450
|
+
name: "idFunction",
|
|
4451
|
+
required: !1,
|
|
4452
|
+
type: "string",
|
|
4453
|
+
value: "deposito"
|
|
4425
4454
|
}
|
|
4426
4455
|
],
|
|
4427
4456
|
id: "13b35362-5695-4687-b6a8-645f8effd264"
|
|
@@ -4475,7 +4504,7 @@ const eo = {
|
|
|
4475
4504
|
name: "startAt",
|
|
4476
4505
|
required: !1,
|
|
4477
4506
|
type: "string",
|
|
4478
|
-
value: "
|
|
4507
|
+
value: ""
|
|
4479
4508
|
},
|
|
4480
4509
|
{
|
|
4481
4510
|
id: "fa9c467f-4f33-4bee-b502-a413d726bbb2",
|
|
@@ -4483,7 +4512,7 @@ const eo = {
|
|
|
4483
4512
|
name: "endAt",
|
|
4484
4513
|
required: !1,
|
|
4485
4514
|
type: "string",
|
|
4486
|
-
value: "
|
|
4515
|
+
value: ""
|
|
4487
4516
|
}
|
|
4488
4517
|
],
|
|
4489
4518
|
id: "024f8130-91e1-4296-b826-cffa32ab1a96"
|
|
@@ -4537,7 +4566,7 @@ const eo = {
|
|
|
4537
4566
|
name: "startAt",
|
|
4538
4567
|
required: !1,
|
|
4539
4568
|
type: "string",
|
|
4540
|
-
value: "
|
|
4569
|
+
value: ""
|
|
4541
4570
|
},
|
|
4542
4571
|
{
|
|
4543
4572
|
id: "fa9c467f-4f33-4bee-b502-a413d726bbb2",
|
|
@@ -4545,7 +4574,7 @@ const eo = {
|
|
|
4545
4574
|
name: "endAt",
|
|
4546
4575
|
required: !1,
|
|
4547
4576
|
type: "string",
|
|
4548
|
-
value: "
|
|
4577
|
+
value: ""
|
|
4549
4578
|
}
|
|
4550
4579
|
],
|
|
4551
4580
|
id: "cdfce77c-a814-43f1-911d-3715803252c2"
|
|
@@ -5432,7 +5461,7 @@ function Ce(e) {
|
|
|
5432
5461
|
var o, i;
|
|
5433
5462
|
return ((o = a.order) != null ? o : 0) - ((i = n.order) != null ? i : 0);
|
|
5434
5463
|
}).map((a, n) => ({ ...a, order: n + 1 })) : e && Array.isArray(e.components) ? e.components.map((a, n) => {
|
|
5435
|
-
var o, i, r, s,
|
|
5464
|
+
var o, i, r, s, c;
|
|
5436
5465
|
return {
|
|
5437
5466
|
id: (o = a.id) != null ? o : n + 1,
|
|
5438
5467
|
title: (i = a.title) != null ? i : "",
|
|
@@ -5440,7 +5469,7 @@ function Ce(e) {
|
|
|
5440
5469
|
visible: (r = a.visible) != null ? r : !0,
|
|
5441
5470
|
order: n + 1,
|
|
5442
5471
|
props: (s = a.props) != null ? s : {},
|
|
5443
|
-
apiUrl: (
|
|
5472
|
+
apiUrl: (c = a.apiUrl) != null ? c : "",
|
|
5444
5473
|
dataMode: a.dataMode,
|
|
5445
5474
|
variableName: a.variableName,
|
|
5446
5475
|
manualItems: a.manualItems,
|
|
@@ -5501,192 +5530,192 @@ const it = [
|
|
|
5501
5530
|
loader: r,
|
|
5502
5531
|
disableWrapper: s = !1
|
|
5503
5532
|
}) => {
|
|
5504
|
-
const
|
|
5533
|
+
const c = ie(() => oo(i), [i]), f = r || c.loader, [h, u] = Z([]), [m, d] = Z(!1), [g, p] = Z({}), [v, C] = Z({}), [_, I] = Z({}), O = De("(min-width:1024px)"), D = ie(
|
|
5505
5534
|
() => Ce(qe),
|
|
5506
5535
|
[]
|
|
5507
|
-
),
|
|
5508
|
-
(S) => S.id ===
|
|
5509
|
-
),
|
|
5510
|
-
const
|
|
5511
|
-
return
|
|
5512
|
-
}, [
|
|
5513
|
-
const S =
|
|
5536
|
+
), y = (l) => D.find(
|
|
5537
|
+
(S) => S.id === l.id || S.componentKey === l.componentKey
|
|
5538
|
+
), $ = (l) => Array.isArray(l) ? l.map((S) => Number(S)).filter((S) => !Number.isNaN(S)) : [], E = ie(() => {
|
|
5539
|
+
const l = c.user;
|
|
5540
|
+
return $(l == null ? void 0 : l.groups);
|
|
5541
|
+
}, [c]), A = (l) => {
|
|
5542
|
+
const S = l.manualScalarFields;
|
|
5514
5543
|
if (!Array.isArray(S)) return [];
|
|
5515
|
-
const
|
|
5544
|
+
const k = S.find(
|
|
5516
5545
|
(P) => String((P == null ? void 0 : P.name) || "").trim().toLowerCase() === "groups"
|
|
5517
5546
|
);
|
|
5518
|
-
if (!
|
|
5519
|
-
const
|
|
5520
|
-
if (
|
|
5521
|
-
if (Array.isArray(
|
|
5522
|
-
return
|
|
5523
|
-
const B = String(
|
|
5547
|
+
if (!k) return [];
|
|
5548
|
+
const M = k.value;
|
|
5549
|
+
if (M == null) return [];
|
|
5550
|
+
if (Array.isArray(M))
|
|
5551
|
+
return M.map((P) => Number(String(P).trim())).filter((P) => !Number.isNaN(P));
|
|
5552
|
+
const B = String(M).trim();
|
|
5524
5553
|
return B ? B.split(",").map((P) => Number(P.trim())).filter((P) => !Number.isNaN(P)) : [];
|
|
5525
|
-
},
|
|
5526
|
-
const
|
|
5527
|
-
if (
|
|
5554
|
+
}, N = (l, S) => {
|
|
5555
|
+
const k = A(l);
|
|
5556
|
+
if (k.length === 0) return !0;
|
|
5528
5557
|
if (!Array.isArray(S) || S.length === 0) return !1;
|
|
5529
|
-
const
|
|
5530
|
-
return
|
|
5558
|
+
const M = new Set(S);
|
|
5559
|
+
return k.some((B) => M.has(B));
|
|
5531
5560
|
};
|
|
5532
|
-
|
|
5561
|
+
Q(() => {
|
|
5533
5562
|
if (e) return;
|
|
5534
5563
|
if (!o) {
|
|
5535
5564
|
console.warn("[landing] sin db -> fallback json"), u(Ce(qe));
|
|
5536
5565
|
return;
|
|
5537
5566
|
}
|
|
5538
|
-
const
|
|
5539
|
-
console.warn("[landing] FALLBACK:",
|
|
5567
|
+
const l = (k, M) => {
|
|
5568
|
+
console.warn("[landing] FALLBACK:", k, M != null ? M : ""), u(Ce(qe)), d(!1);
|
|
5540
5569
|
};
|
|
5541
5570
|
if (process.env.NEXT_PUBLIC_LANDING_FORCE_FALLBACK === "1") {
|
|
5542
|
-
d(!0),
|
|
5571
|
+
d(!0), l("forzado por env");
|
|
5543
5572
|
return;
|
|
5544
5573
|
}
|
|
5545
5574
|
d(!0);
|
|
5546
5575
|
const S = Ft(
|
|
5547
5576
|
qt(o, "landings", a),
|
|
5548
|
-
(
|
|
5577
|
+
(k) => {
|
|
5549
5578
|
try {
|
|
5550
|
-
if (!
|
|
5551
|
-
|
|
5579
|
+
if (!k.exists()) {
|
|
5580
|
+
l(`doc landings/${a} no existe`);
|
|
5552
5581
|
return;
|
|
5553
5582
|
}
|
|
5554
|
-
const
|
|
5583
|
+
const M = k.data(), B = Ce(M);
|
|
5555
5584
|
if (!B.length) {
|
|
5556
|
-
|
|
5585
|
+
l("JSON inválido o sin secciones normalizables", M);
|
|
5557
5586
|
return;
|
|
5558
5587
|
}
|
|
5559
|
-
console.log("[landing] Firestore OK (json grande):",
|
|
5560
|
-
} catch (
|
|
5561
|
-
|
|
5588
|
+
console.log("[landing] Firestore OK (json grande):", M), u(B);
|
|
5589
|
+
} catch (M) {
|
|
5590
|
+
l("error procesando snapshot", M);
|
|
5562
5591
|
} finally {
|
|
5563
5592
|
d(!1);
|
|
5564
5593
|
}
|
|
5565
5594
|
},
|
|
5566
|
-
(
|
|
5567
|
-
|
|
5595
|
+
(k) => {
|
|
5596
|
+
l("error onSnapshot", k);
|
|
5568
5597
|
}
|
|
5569
5598
|
);
|
|
5570
5599
|
return () => S();
|
|
5571
|
-
}, [e, a, o]),
|
|
5572
|
-
(e ? e.slice() : h.slice()).map((
|
|
5600
|
+
}, [e, a, o]), Q(() => (Xa(c), () => Ya()), [c]), Q(() => {
|
|
5601
|
+
(e ? e.slice() : h.slice()).map((k) => k.componentKey).filter((k) => !!k).length;
|
|
5573
5602
|
}, [e, h]);
|
|
5574
|
-
const
|
|
5575
|
-
if (it.includes(
|
|
5603
|
+
const x = async (l) => {
|
|
5604
|
+
if (it.includes(l.componentKey))
|
|
5576
5605
|
return {
|
|
5577
5606
|
items: [],
|
|
5578
5607
|
events: [],
|
|
5579
5608
|
data: {}
|
|
5580
5609
|
};
|
|
5581
|
-
const S = (
|
|
5610
|
+
const S = (l.apiUrl || "").trim();
|
|
5582
5611
|
if (!S) return;
|
|
5583
|
-
const
|
|
5612
|
+
const k = l.apiMethod || "GET", M = l.apiParams || [];
|
|
5584
5613
|
let B = S, P, J;
|
|
5585
|
-
if (
|
|
5614
|
+
if (k === "GET") {
|
|
5586
5615
|
const re = new URL(
|
|
5587
5616
|
S,
|
|
5588
5617
|
typeof window == "undefined" ? "http://localhost" : window.location.origin
|
|
5589
5618
|
);
|
|
5590
|
-
for (const oe of
|
|
5619
|
+
for (const oe of M)
|
|
5591
5620
|
oe.key && re.searchParams.append(oe.key, oe.value);
|
|
5592
5621
|
B = re.toString();
|
|
5593
5622
|
} else {
|
|
5594
5623
|
const re = new URLSearchParams();
|
|
5595
|
-
for (const oe of
|
|
5624
|
+
for (const oe of M)
|
|
5596
5625
|
oe.key && re.append(oe.key, oe.value);
|
|
5597
5626
|
P = re.toString(), J = {
|
|
5598
5627
|
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
|
|
5599
5628
|
};
|
|
5600
5629
|
}
|
|
5601
5630
|
const te = await fetch(B, {
|
|
5602
|
-
method:
|
|
5631
|
+
method: k,
|
|
5603
5632
|
headers: J,
|
|
5604
5633
|
body: P
|
|
5605
5634
|
});
|
|
5606
5635
|
if (!te.ok) throw new ot(te.status, B, te.statusText);
|
|
5607
5636
|
return te.json();
|
|
5608
|
-
},
|
|
5637
|
+
}, T = ie(
|
|
5609
5638
|
() => e ? e.slice() : h.slice(),
|
|
5610
5639
|
[e, h]
|
|
5611
5640
|
), L = fe.useRef(/* @__PURE__ */ new Set());
|
|
5612
|
-
|
|
5613
|
-
const
|
|
5614
|
-
if (
|
|
5615
|
-
for (const { s: S, url:
|
|
5616
|
-
const
|
|
5617
|
-
L.current.has(
|
|
5641
|
+
Q(() => {
|
|
5642
|
+
const l = T.map((S) => ({ s: S, url: (S.apiUrl || "").trim() })).filter(({ url: S }) => !!S);
|
|
5643
|
+
if (l.length)
|
|
5644
|
+
for (const { s: S, url: k } of l) {
|
|
5645
|
+
const M = `${S.id}|${k}`;
|
|
5646
|
+
L.current.has(M) || (L.current.add(M), C((B) => ({ ...B, [S.id]: !0 })), I((B) => ({ ...B, [S.id]: "" })), (async () => {
|
|
5618
5647
|
try {
|
|
5619
|
-
const B = await
|
|
5620
|
-
|
|
5648
|
+
const B = await x(S);
|
|
5649
|
+
p((P) => ({ ...P, [S.id]: B }));
|
|
5621
5650
|
} catch (B) {
|
|
5622
5651
|
let P = "Error desconocido";
|
|
5623
|
-
B instanceof ot ? P = `Error HTTP ${B.status} (${B.statusText}) en ${B.url}` : B instanceof SyntaxError ? P = "Respuesta no es JSON válido" : B instanceof TypeError ? P = "Fallo de red / CORS / conexión" : typeof B == "string" && (P = B.toString()),
|
|
5652
|
+
B instanceof ot ? P = `Error HTTP ${B.status} (${B.statusText}) en ${B.url}` : B instanceof SyntaxError ? P = "Respuesta no es JSON válido" : B instanceof TypeError ? P = "Fallo de red / CORS / conexión" : typeof B == "string" && (P = B.toString()), I((J) => ({ ...J, [S.id]: P }));
|
|
5624
5653
|
} finally {
|
|
5625
|
-
|
|
5654
|
+
C((B) => ({ ...B, [S.id]: !1 }));
|
|
5626
5655
|
}
|
|
5627
5656
|
})());
|
|
5628
5657
|
}
|
|
5629
|
-
}, [
|
|
5658
|
+
}, [T]);
|
|
5630
5659
|
const z = ie(
|
|
5631
|
-
() =>
|
|
5632
|
-
[
|
|
5633
|
-
), R = (
|
|
5634
|
-
const
|
|
5635
|
-
for (const
|
|
5636
|
-
const B = (
|
|
5660
|
+
() => T.filter((l) => l.visible).filter((l) => N(l, E)).sort((l, S) => l.order - S.order),
|
|
5661
|
+
[T, E]
|
|
5662
|
+
), R = (l) => Array.isArray(l) ? l.map((S) => {
|
|
5663
|
+
const k = {};
|
|
5664
|
+
for (const M of S.fields || []) {
|
|
5665
|
+
const B = (M.type || "string").toLowerCase();
|
|
5637
5666
|
if (B === "number") {
|
|
5638
|
-
const P = String(
|
|
5667
|
+
const P = String(M.value || "").trim();
|
|
5639
5668
|
if (P !== "") {
|
|
5640
5669
|
const J = Number(P);
|
|
5641
|
-
Number.isNaN(J) || (
|
|
5670
|
+
Number.isNaN(J) || (k[M.name] = J);
|
|
5642
5671
|
}
|
|
5643
5672
|
} else if (B === "boolean")
|
|
5644
|
-
|
|
5673
|
+
k[M.name] = String(M.value).toLowerCase() === "true";
|
|
5645
5674
|
else if (B === "function") {
|
|
5646
|
-
const P = String(
|
|
5675
|
+
const P = String(M.value || "").trim();
|
|
5647
5676
|
if (P)
|
|
5648
5677
|
try {
|
|
5649
5678
|
const J = new Function(P);
|
|
5650
|
-
|
|
5679
|
+
k[M.name] = J;
|
|
5651
5680
|
} catch (J) {
|
|
5652
|
-
console.error(`❌ Error creando función en item '${
|
|
5681
|
+
console.error(`❌ Error creando función en item '${M.name}':`, J);
|
|
5653
5682
|
}
|
|
5654
5683
|
} else
|
|
5655
|
-
|
|
5684
|
+
k[M.name] = M.value;
|
|
5656
5685
|
}
|
|
5657
|
-
return
|
|
5658
|
-
}) : [], U = (
|
|
5686
|
+
return k;
|
|
5687
|
+
}) : [], U = (l) => {
|
|
5659
5688
|
const S = {};
|
|
5660
|
-
if (!Array.isArray(
|
|
5661
|
-
for (const
|
|
5662
|
-
if (!
|
|
5663
|
-
const
|
|
5664
|
-
if (
|
|
5665
|
-
const B = String(
|
|
5689
|
+
if (!Array.isArray(l)) return S;
|
|
5690
|
+
for (const k of l) {
|
|
5691
|
+
if (!k.name) continue;
|
|
5692
|
+
const M = (k.type || "string").toLowerCase();
|
|
5693
|
+
if (M === "number") {
|
|
5694
|
+
const B = String(k.value || "").trim();
|
|
5666
5695
|
if (B !== "") {
|
|
5667
5696
|
const P = Number(B);
|
|
5668
|
-
Number.isNaN(P) || (S[
|
|
5697
|
+
Number.isNaN(P) || (S[k.name] = P);
|
|
5669
5698
|
}
|
|
5670
|
-
} else if (
|
|
5671
|
-
S[
|
|
5672
|
-
else if (
|
|
5673
|
-
const B = String(
|
|
5699
|
+
} else if (M === "boolean")
|
|
5700
|
+
S[k.name] = String(k.value).toLowerCase() === "true";
|
|
5701
|
+
else if (M === "function") {
|
|
5702
|
+
const B = String(k.value || "").trim();
|
|
5674
5703
|
if (B)
|
|
5675
5704
|
try {
|
|
5676
5705
|
const P = new Function(B);
|
|
5677
|
-
S[
|
|
5706
|
+
S[k.name] = P;
|
|
5678
5707
|
} catch (P) {
|
|
5679
|
-
console.error(`❌ Error creando función en item '${
|
|
5708
|
+
console.error(`❌ Error creando función en item '${k.name}':`, P);
|
|
5680
5709
|
}
|
|
5681
5710
|
} else
|
|
5682
|
-
S[
|
|
5711
|
+
S[k.name] = k.value;
|
|
5683
5712
|
}
|
|
5684
5713
|
return S;
|
|
5685
|
-
}, W = (
|
|
5686
|
-
const B =
|
|
5714
|
+
}, W = (l, S, k, M) => {
|
|
5715
|
+
const B = k ? { ...k } : {}, P = (M || "items").trim() || "items";
|
|
5687
5716
|
if (S)
|
|
5688
5717
|
return B[P] = S.arr || [], B;
|
|
5689
|
-
const J =
|
|
5718
|
+
const J = l;
|
|
5690
5719
|
if (Array.isArray(J))
|
|
5691
5720
|
return B[P] = J, B;
|
|
5692
5721
|
if (J && typeof J == "object") {
|
|
@@ -5694,69 +5723,69 @@ const it = [
|
|
|
5694
5723
|
return Array.isArray(te.lobby) ? (B[P] = te.lobby, B) : Array.isArray(te.items) ? (B[P] = te.items, B) : (B[P] = J, B);
|
|
5695
5724
|
}
|
|
5696
5725
|
return B[P] = [], B;
|
|
5697
|
-
},
|
|
5726
|
+
}, G = (l) => {
|
|
5698
5727
|
var P;
|
|
5699
|
-
const S = !!((P =
|
|
5700
|
-
let
|
|
5701
|
-
const B = U(
|
|
5702
|
-
if (it.includes(
|
|
5703
|
-
return { items:
|
|
5704
|
-
if (
|
|
5705
|
-
|
|
5706
|
-
else if (
|
|
5707
|
-
const J = R(
|
|
5708
|
-
if (
|
|
5728
|
+
const S = !!((P = l.apiUrl) != null && P.trim()), k = S ? g[l.id] : void 0;
|
|
5729
|
+
let M = l.props ? { ...l.props } : {};
|
|
5730
|
+
const B = U(l.manualScalarFields);
|
|
5731
|
+
if (it.includes(l.componentKey))
|
|
5732
|
+
return { items: k, ...M, ...B };
|
|
5733
|
+
if (M = { ...M, ...B }, S)
|
|
5734
|
+
M = W(k, null, M);
|
|
5735
|
+
else if (l.dataMode === "manual") {
|
|
5736
|
+
const J = R(l.manualItems);
|
|
5737
|
+
if (M = W(
|
|
5709
5738
|
null,
|
|
5710
|
-
{ arr: J, variableName:
|
|
5711
|
-
|
|
5712
|
-
|
|
5713
|
-
),
|
|
5714
|
-
const te = R(
|
|
5715
|
-
|
|
5739
|
+
{ arr: J, variableName: l.variableName },
|
|
5740
|
+
M,
|
|
5741
|
+
l.variableName
|
|
5742
|
+
), l.variableName2 && l.manualItems2) {
|
|
5743
|
+
const te = R(l.manualItems2), re = (l.variableName2 || "items2").trim() || "items2";
|
|
5744
|
+
M[re] = te;
|
|
5716
5745
|
}
|
|
5717
5746
|
}
|
|
5718
|
-
return
|
|
5719
|
-
},
|
|
5720
|
-
const S =
|
|
5747
|
+
return M;
|
|
5748
|
+
}, w = (l) => {
|
|
5749
|
+
const S = l.props ? { ...l.props } : {};
|
|
5721
5750
|
try {
|
|
5722
|
-
Object.assign(S, U(
|
|
5723
|
-
} catch (
|
|
5724
|
-
console.error("❌ Error armando scalars vacíos:",
|
|
5751
|
+
Object.assign(S, U(l.manualScalarFields));
|
|
5752
|
+
} catch (M) {
|
|
5753
|
+
console.error("❌ Error armando scalars vacíos:", l, M);
|
|
5725
5754
|
}
|
|
5726
|
-
const
|
|
5727
|
-
if (typeof S[
|
|
5728
|
-
const
|
|
5729
|
-
typeof S[
|
|
5755
|
+
const k = (l.variableName || "items").trim() || "items";
|
|
5756
|
+
if (typeof S[k] == "undefined" && (S[k] = []), l.variableName2) {
|
|
5757
|
+
const M = (l.variableName2 || "items2").trim() || "items2";
|
|
5758
|
+
typeof S[M] == "undefined" && (S[M] = []);
|
|
5730
5759
|
}
|
|
5731
5760
|
return S;
|
|
5732
|
-
},
|
|
5761
|
+
}, F = (l) => {
|
|
5733
5762
|
try {
|
|
5734
|
-
return
|
|
5763
|
+
return G(l);
|
|
5735
5764
|
} catch (S) {
|
|
5736
|
-
console.error("🔥 ERROR EN buildCompProps:",
|
|
5737
|
-
const
|
|
5738
|
-
if (
|
|
5765
|
+
console.error("🔥 ERROR EN buildCompProps:", l, S);
|
|
5766
|
+
const k = y(l);
|
|
5767
|
+
if (k && k !== l)
|
|
5739
5768
|
try {
|
|
5740
5769
|
return console.warn(
|
|
5741
|
-
`[landing] usando fallback local para sección ${
|
|
5742
|
-
),
|
|
5743
|
-
} catch (
|
|
5744
|
-
console.error("🔥 ERROR EN fallback buildCompProps:",
|
|
5770
|
+
`[landing] usando fallback local para sección ${l.title} (${l.componentKey})`
|
|
5771
|
+
), G(k);
|
|
5772
|
+
} catch (M) {
|
|
5773
|
+
console.error("🔥 ERROR EN fallback buildCompProps:", k, M);
|
|
5745
5774
|
}
|
|
5746
|
-
return
|
|
5775
|
+
return w(l);
|
|
5747
5776
|
}
|
|
5748
|
-
},
|
|
5777
|
+
}, K = (l, S, k) => /* @__PURE__ */ t("div", { className: `mx-4 p-4 rounded ${{
|
|
5749
5778
|
loading: "bg-blue-100 text-blue-800",
|
|
5750
5779
|
error: "bg-red-100 text-red-800",
|
|
5751
5780
|
component: "bg-yellow-100 text-yellow-800"
|
|
5752
|
-
}[S]}`, children:
|
|
5781
|
+
}[S]}`, children: k }, l), Y = (l) => {
|
|
5753
5782
|
var He;
|
|
5754
|
-
const S =
|
|
5783
|
+
const S = l.componentKey, k = no[S], B = (/* @__PURE__ */ new Set([
|
|
5755
5784
|
"OraculoSeccionBanners",
|
|
5756
5785
|
"OraculoSeccionBonoBienvenida",
|
|
5757
5786
|
"OraculoSeccionCasinoEnVivo",
|
|
5758
5787
|
"OraculoSeccionClubOlimpo",
|
|
5759
|
-
...
|
|
5788
|
+
...O ? [] : [
|
|
5760
5789
|
"OraculoSeccionEventoEnVivo",
|
|
5761
5790
|
"OraculoSeccionEventoSemana",
|
|
5762
5791
|
"OraculoSeccionEventoCombinadas",
|
|
@@ -5764,7 +5793,7 @@ const it = [
|
|
|
5764
5793
|
"OraculoSeccionDestacados",
|
|
5765
5794
|
"OraculoSeccionCasino"
|
|
5766
5795
|
]
|
|
5767
|
-
])).has(
|
|
5796
|
+
])).has(l.componentKey), P = O ? 120 : 24, J = (O ? 8 : 5) * 8, te = l.componentKey === "OraculoSeccionCasinoEnVivo", re = {
|
|
5768
5797
|
width: "100%",
|
|
5769
5798
|
boxSizing: "border-box",
|
|
5770
5799
|
...B ? {} : { paddingLeft: P, paddingRight: P },
|
|
@@ -5773,26 +5802,26 @@ const it = [
|
|
|
5773
5802
|
marginBottom: -J
|
|
5774
5803
|
} : {}
|
|
5775
5804
|
};
|
|
5776
|
-
if (!
|
|
5777
|
-
return console.warn(`No hay componente registrado para "${S}"`),
|
|
5778
|
-
|
|
5805
|
+
if (!k)
|
|
5806
|
+
return console.warn(`No hay componente registrado para "${S}"`), K(
|
|
5807
|
+
l.id,
|
|
5779
5808
|
"component",
|
|
5780
5809
|
`Componente "${S}" no encontrado`
|
|
5781
5810
|
);
|
|
5782
|
-
const oe = !!((He =
|
|
5811
|
+
const oe = !!((He = l.apiUrl) != null && He.trim()), We = oe ? g[l.id] : void 0, Ct = oe ? !!v[l.id] : !1, Ge = oe ? _[l.id] : "";
|
|
5783
5812
|
if (oe) {
|
|
5784
5813
|
if (Ct && !We)
|
|
5785
|
-
return
|
|
5786
|
-
|
|
5814
|
+
return K(
|
|
5815
|
+
l.id,
|
|
5787
5816
|
"loading",
|
|
5788
|
-
`Cargando datos desde ${
|
|
5817
|
+
`Cargando datos desde ${l.apiUrl}...`
|
|
5789
5818
|
);
|
|
5790
5819
|
if (Ge && !We) {
|
|
5791
|
-
const we =
|
|
5820
|
+
const we = y(l);
|
|
5792
5821
|
if (we && we.dataMode === "manual")
|
|
5793
5822
|
try {
|
|
5794
|
-
const Re =
|
|
5795
|
-
return /* @__PURE__ */ t("div", { style: re, className: "oraculo-section-wrapper", children: /* @__PURE__ */ t(
|
|
5823
|
+
const Re = F(we);
|
|
5824
|
+
return /* @__PURE__ */ t("div", { style: re, className: "oraculo-section-wrapper", children: /* @__PURE__ */ t(k, { ...Re }) }, l.id);
|
|
5796
5825
|
} catch (Re) {
|
|
5797
5826
|
console.error(
|
|
5798
5827
|
"🔥 ERROR renderizando fallback manual de sección:",
|
|
@@ -5800,28 +5829,28 @@ const it = [
|
|
|
5800
5829
|
Re
|
|
5801
5830
|
);
|
|
5802
5831
|
}
|
|
5803
|
-
return
|
|
5804
|
-
|
|
5832
|
+
return K(
|
|
5833
|
+
l.id,
|
|
5805
5834
|
"error",
|
|
5806
|
-
`Error cargando ${
|
|
5835
|
+
`Error cargando ${l.apiUrl}: ${Ge}`
|
|
5807
5836
|
);
|
|
5808
5837
|
}
|
|
5809
5838
|
}
|
|
5810
|
-
const je =
|
|
5839
|
+
const je = F(l), Ot = l.componentKey === "OraculoSeccionClubOlimpo" ? {
|
|
5811
5840
|
...je,
|
|
5812
|
-
user:
|
|
5841
|
+
user: c.user
|
|
5813
5842
|
} : je;
|
|
5814
|
-
return /* @__PURE__ */ t(io, { section:
|
|
5843
|
+
return /* @__PURE__ */ t(io, { section: l, children: /* @__PURE__ */ t(
|
|
5815
5844
|
"div",
|
|
5816
5845
|
{
|
|
5817
5846
|
style: re,
|
|
5818
5847
|
className: "oraculo-section-wrapper",
|
|
5819
|
-
children: /* @__PURE__ */ t(
|
|
5848
|
+
children: /* @__PURE__ */ t(k, { ...Ot })
|
|
5820
5849
|
},
|
|
5821
|
-
|
|
5850
|
+
l.id
|
|
5822
5851
|
) });
|
|
5823
5852
|
};
|
|
5824
|
-
return
|
|
5853
|
+
return m && !e ? f ? /* @__PURE__ */ t(f, {}) : /* @__PURE__ */ t("div", { children: "Cargando..." }) : !m && !e && h.length === 0 ? /* @__PURE__ */ t("div", { className: "text-xs text-gray-500", children: "Sin secciones (Firestore)" }) : /* @__PURE__ */ t(It, { children: /* @__PURE__ */ t(bt, { docId: a, moduleId: n, children: /* @__PURE__ */ t(
|
|
5825
5854
|
Et,
|
|
5826
5855
|
{
|
|
5827
5856
|
className: "oli-font",
|
|
@@ -5835,11 +5864,11 @@ const it = [
|
|
|
5835
5864
|
maxWidth: "100%",
|
|
5836
5865
|
overflowX: "hidden"
|
|
5837
5866
|
},
|
|
5838
|
-
children: /* @__PURE__ */ t(Oe, { direction: "column", spacing:
|
|
5867
|
+
children: /* @__PURE__ */ t(Oe, { direction: "column", spacing: O ? 8 : 5, useFlexGap: !0, children: z.map((l) => {
|
|
5839
5868
|
try {
|
|
5840
|
-
return Y(
|
|
5869
|
+
return Y(l);
|
|
5841
5870
|
} catch (S) {
|
|
5842
|
-
return console.error("🔥 ERROR EN SECTION:",
|
|
5871
|
+
return console.error("🔥 ERROR EN SECTION:", l, S), null;
|
|
5843
5872
|
}
|
|
5844
5873
|
}) })
|
|
5845
5874
|
}
|
|
@@ -5864,7 +5893,7 @@ export {
|
|
|
5864
5893
|
Te as OraculoGameCard,
|
|
5865
5894
|
xa as OraculoGameRankCard,
|
|
5866
5895
|
ft as OraculoGameSlide,
|
|
5867
|
-
|
|
5896
|
+
me as OraculoGridGroup,
|
|
5868
5897
|
wa as OraculoLiveCasinoCard,
|
|
5869
5898
|
Ze as OraculoLogoMediosPago,
|
|
5870
5899
|
Io as OraculoPageLandingPreview,
|