oraculo-ui 0.2.7 → 0.2.9
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 +760 -757
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
1
|
+
import { jsx as t, jsxs as f, Fragment as ae } from "react/jsx-runtime";
|
|
2
2
|
import { Link as Xe, Box as X, useMediaQuery as Ye, IconButton as Pe, Typography as Qe, Stack as ye, Container as gt } from "@mui/material";
|
|
3
3
|
import ue, { useState as H, useEffect as J, useRef as W, forwardRef as ht, useImperativeHandle as bt, useCallback as xe, useContext as vt, createContext as _t, useMemo as te, useLayoutEffect as yt } from "react";
|
|
4
4
|
import G from "@mui/material/Skeleton";
|
|
@@ -23,28 +23,28 @@ function K({
|
|
|
23
23
|
type: l = "button",
|
|
24
24
|
disabled: s = !1,
|
|
25
25
|
variant: u = "primary",
|
|
26
|
-
size:
|
|
27
|
-
fullWidth:
|
|
26
|
+
size: b,
|
|
27
|
+
fullWidth: h = !1,
|
|
28
28
|
fullHeight: r = !1,
|
|
29
29
|
className: c = "",
|
|
30
30
|
ariaLabel: m,
|
|
31
|
-
leftIcon:
|
|
32
|
-
rightIcon:
|
|
33
|
-
iconOnly:
|
|
31
|
+
leftIcon: p,
|
|
32
|
+
rightIcon: _,
|
|
33
|
+
iconOnly: I
|
|
34
34
|
}) {
|
|
35
|
-
const C = !!e && e !== !0, A = (!!
|
|
35
|
+
const C = !!e && e !== !0, A = (!!p ? 1 : 0) + (!!_ ? 1 : 0) == 1, L = I != null ? I : A && !C, M = [
|
|
36
36
|
"orc-btn",
|
|
37
37
|
u === "secondary" ? "orc-btn--secondary" : u === "tertiary" ? "orc-btn--tertiary" : "orc-btn--primary",
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
b ? `orc-btn--${b}` : "",
|
|
39
|
+
h ? "orc-btn--full" : "",
|
|
40
40
|
r ? "orc-btn--fullHeight" : "",
|
|
41
|
-
|
|
41
|
+
L ? "orc-btn--iconOnly" : "",
|
|
42
42
|
c
|
|
43
|
-
].filter(Boolean).join(" "),
|
|
44
|
-
|
|
45
|
-
!
|
|
46
|
-
|
|
47
|
-
] }),
|
|
43
|
+
].filter(Boolean).join(" "), F = /* @__PURE__ */ f(ae, { children: [
|
|
44
|
+
p && /* @__PURE__ */ t("span", { className: "orc-btn__icon", children: p }),
|
|
45
|
+
!L && /* @__PURE__ */ t("span", { className: "orc-btn__label", children: e }),
|
|
46
|
+
_ && /* @__PURE__ */ t("span", { className: "orc-btn__icon", children: _ })
|
|
47
|
+
] }), w = s ? !0 : void 0;
|
|
48
48
|
return n ? /* @__PURE__ */ t(
|
|
49
49
|
Xe,
|
|
50
50
|
{
|
|
@@ -52,21 +52,21 @@ function K({
|
|
|
52
52
|
target: o,
|
|
53
53
|
rel: i,
|
|
54
54
|
"aria-label": m,
|
|
55
|
-
"aria-disabled":
|
|
56
|
-
tabIndex:
|
|
55
|
+
"aria-disabled": w,
|
|
56
|
+
tabIndex: w ? -1 : void 0,
|
|
57
57
|
className: M,
|
|
58
|
-
onClick:
|
|
59
|
-
children:
|
|
58
|
+
onClick: w ? (N) => N.preventDefault() : a,
|
|
59
|
+
children: F
|
|
60
60
|
}
|
|
61
61
|
) : /* @__PURE__ */ t(
|
|
62
62
|
"button",
|
|
63
63
|
{
|
|
64
64
|
type: l,
|
|
65
65
|
onClick: a,
|
|
66
|
-
disabled: !!
|
|
66
|
+
disabled: !!w,
|
|
67
67
|
"aria-label": m,
|
|
68
68
|
className: M,
|
|
69
|
-
children:
|
|
69
|
+
children: F
|
|
70
70
|
}
|
|
71
71
|
);
|
|
72
72
|
}
|
|
@@ -81,7 +81,7 @@ function se({
|
|
|
81
81
|
n ? `orc-section-title--${n}` : "",
|
|
82
82
|
o
|
|
83
83
|
].filter(Boolean).join(" ");
|
|
84
|
-
return /* @__PURE__ */
|
|
84
|
+
return /* @__PURE__ */ f("div", { className: l, children: [
|
|
85
85
|
a && /* @__PURE__ */ t(
|
|
86
86
|
"img",
|
|
87
87
|
{
|
|
@@ -103,26 +103,26 @@ const at = ({
|
|
|
103
103
|
if (e <= 1) return null;
|
|
104
104
|
const l = ["orc-dots", o].filter(Boolean).join(" "), [s, u] = H(0);
|
|
105
105
|
return J(() => {
|
|
106
|
-
u((
|
|
107
|
-
}, [a, i]), /* @__PURE__ */ t("div", { className: l, role: "tablist", "aria-label": "Carousel pagination", children: Array.from({ length: e }).map((
|
|
108
|
-
const r =
|
|
106
|
+
u((b) => b + 1);
|
|
107
|
+
}, [a, i]), /* @__PURE__ */ t("div", { className: l, role: "tablist", "aria-label": "Carousel pagination", children: Array.from({ length: e }).map((b, h) => {
|
|
108
|
+
const r = h === a;
|
|
109
109
|
return /* @__PURE__ */ t("span", { className: "orc-dots__cell", children: /* @__PURE__ */ t(
|
|
110
110
|
"button",
|
|
111
111
|
{
|
|
112
112
|
type: "button",
|
|
113
113
|
role: "tab",
|
|
114
114
|
"aria-selected": r,
|
|
115
|
-
"aria-label": `Ir al slide ${
|
|
115
|
+
"aria-label": `Ir al slide ${h + 1}`,
|
|
116
116
|
className: "orc-dots__dot" + (r ? " orc-dots__dot--active" : ""),
|
|
117
117
|
style: r ? {
|
|
118
118
|
"--dot-progress-ms": `${i}ms`
|
|
119
119
|
} : void 0,
|
|
120
120
|
onClick: () => {
|
|
121
|
-
r && u((c) => c + 1), n == null || n(
|
|
121
|
+
r && u((c) => c + 1), n == null || n(h);
|
|
122
122
|
}
|
|
123
123
|
},
|
|
124
|
-
r ? `a-${
|
|
125
|
-
) },
|
|
124
|
+
r ? `a-${h}-${s}` : `i-${h}`
|
|
125
|
+
) }, h);
|
|
126
126
|
}) });
|
|
127
127
|
};
|
|
128
128
|
function re({
|
|
@@ -184,7 +184,7 @@ const kt = "oraculo__OraculoEventTitle-module__contenedor___rg1vw", $t = "oracul
|
|
|
184
184
|
subtitle: Nt
|
|
185
185
|
};
|
|
186
186
|
function Mt({ title: e, subtitle: a }) {
|
|
187
|
-
return /* @__PURE__ */
|
|
187
|
+
return /* @__PURE__ */ f(
|
|
188
188
|
"div",
|
|
189
189
|
{
|
|
190
190
|
className: $e.contenedor,
|
|
@@ -200,12 +200,12 @@ function Mt({ title: e, subtitle: a }) {
|
|
|
200
200
|
children: e
|
|
201
201
|
}
|
|
202
202
|
),
|
|
203
|
-
a && /* @__PURE__ */
|
|
203
|
+
a && /* @__PURE__ */ f(
|
|
204
204
|
"div",
|
|
205
205
|
{
|
|
206
206
|
className: $e.flexGroup,
|
|
207
207
|
children: [
|
|
208
|
-
/* @__PURE__ */
|
|
208
|
+
/* @__PURE__ */ f("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 Bt({ text: e, color: a = "#ff3b3b", textColor: n = "#fff" }) {
|
|
|
241
241
|
);
|
|
242
242
|
}
|
|
243
243
|
function Lt({ live: e, time: a }) {
|
|
244
|
-
return /* @__PURE__ */
|
|
244
|
+
return /* @__PURE__ */ f("div", { className: "oli-font", style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
|
|
245
245
|
e && /* @__PURE__ */ t(Bt, { 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 At({ title: e, subtitle: a, live: n = !1, time: o = "" }) {
|
|
250
|
-
return /* @__PURE__ */
|
|
250
|
+
return /* @__PURE__ */ f(
|
|
251
251
|
"div",
|
|
252
252
|
{
|
|
253
253
|
style: {
|
|
@@ -283,7 +283,7 @@ const Ut = "oraculo__OraculoEventScore-module__scoreWrapper___fWwEr", qt = "orac
|
|
|
283
283
|
small: Wt
|
|
284
284
|
};
|
|
285
285
|
function it({ text: e, name: a, size: n = "normal" }) {
|
|
286
|
-
return /* @__PURE__ */
|
|
286
|
+
return /* @__PURE__ */ f(
|
|
287
287
|
"div",
|
|
288
288
|
{
|
|
289
289
|
className: `${fe.scoreWrapper} ${fe[n]}`,
|
|
@@ -309,8 +309,8 @@ const Gt = "oraculo__OraculoEventTeamInfo-module__team___UfpUs", jt = "oraculo__
|
|
|
309
309
|
};
|
|
310
310
|
function ta({ jersey: e, className: a }) {
|
|
311
311
|
const n = `#${e.base}`, o = e.sleeve ? `#${e.sleeve}` : n, i = e.stripes ? `#${e.stripes}` : null, l = e.sleevelong ? `#${e.sleevelong}` : null;
|
|
312
|
-
return /* @__PURE__ */
|
|
313
|
-
/* @__PURE__ */ t("div", { className: ve.svgWrapper, children: /* @__PURE__ */
|
|
312
|
+
return /* @__PURE__ */ f("div", { className: `${ve.polo} ${a != null ? a : ""}`, children: [
|
|
313
|
+
/* @__PURE__ */ t("div", { className: ve.svgWrapper, children: /* @__PURE__ */ f("svg", { viewBox: "0 0 656 656", "aria-hidden": !0, children: [
|
|
314
314
|
/* @__PURE__ */ t(
|
|
315
315
|
"path",
|
|
316
316
|
{
|
|
@@ -318,7 +318,7 @@ function ta({ 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__ */ f(ae, { children: [
|
|
322
322
|
/* @__PURE__ */ t("path", { fill: i, d: "m153 277.8-5.8 14.5c-1 2.8-2.5 1.4-4.6.7l-2-.5-7.8-2.4-15.6-5-19-6.5-16-5.7-12-4.4-5.5-2.2c-3.5-1.1-3.1-1.2-1.9-4l1.8-4.9 3.2-9.3c-1.1-1.9 0-3.1.8-3.5l.2-.7.5-2 4.3-10.3 2.4-6 2.6-6.2.8-2.6 1.7-4.1v-.4l.3-2.6.6-3.4 1-3.5 1-3.8c.1-.9 2-5.6 3-7.8l.7-1.5.7-2 .9-3.6 3.4-12.6 2.4-8.6 2.7-11.2 3.5-9.6 3.6-9.4 3-6 2-4.1 3.6-5.8 2.2-4.3 3-4.4 3.2-3.9 1.7-1.9 3.6-3.6 3-2.9a109.3 109.3 0 0 1 13.3-11.2l1.2-.8a79.3 79.3 0 0 1 18-9l11.4-4.2 4-1.4 6.3-2.7 3.3-1.4 2.8-1.2 4-1.6 3.9-2.1 10.1-5 4.8-2.4 5.7-3.2 13.8-7.7c1.5-.8 4.7-2.7 6-3a8.5 8.5 0 0 0 3-1.8c3.4-2.5 4.5-4.8 6-5.3.4-.4 2-1.6 5.2-3.2-4.4 3.3-3.2 11-2.1 14.6a77 77 0 0 0 8.7 18.8l-.6.4-3.9 2-9 5-6.6 3.7-10 3.2c-4.3.8-13.2 2.4-14.4 2.8-1.2.3-10.2 4-14.5 5.8l-11.8 5.6-8.8 3.2-12 3.4-19 8.7c-5.8 1.4-19.3 14.2-25.3 20.4L122 128l.3.4 6.6 16.6 10.5 22.6 6.2 10.8c2.9 3 8.7 9.7 9.1 11.7.5 2 4.3 5.1 6.1 6.5.2.8.8 3.1 1.7 5.4-3.2 4.8-.4 10.6 1.4 12.9l1 4.6.3 6.5-.5 1c-1.4 1.4-.3 4 .4 5l.1 3c.5 1.4 1.3 4.2.8 5.2s0 2.7.3 3.4v4.9c-3.1.5-2 3.7-1 5.2-.5.7-1.8 2.2-3.2 2.7-1.4.5-1.8 3.6-1.8 5.2a9 9 0 0 1-2.7 4.7c-1.8 1.6-2.8 7.4-3 10.1l-1.6 1.5ZM403.8 31.1l-1.6-.7c1.2 1 2 2.2 2.8 4 1.8 2.8.6 8-.7 12.2a78 78 0 0 1-7.6 17l.5.2 3.3 1.5 5.4 3.3 5.9 3 7.2 3 8.2 2.2c.7.2 3.3 1 8.4 2 5.5.1 21.1 8 28.2 11.8l14 4.5a517 517 0 0 1 23.8 9.3c6.3.5 24.7 17 33.1 25.2l-4.6 11.6-8.2 19.3-3.8 9-5.2 8.6c-2.2 3.2-7.3 10.2-9.4 12.4-1.3-.3-5.6 4.4-7.6 6.7.3 2 .6 6.7-1.4 9.1-2 2.5-1.8 6.9-1.4 8.7.3.8.5 3-1 5.3-1.4 2.4-1 4-.5 4.5-.2.8-.7 2.5-1.4 3.4-.8.8-.4 3.3 0 4.5l.1 3-.1 2.2c-.2.6-.6 2.6-1.1 6.2 3.6 3.3 1.3 5.7-.3 6.5l2.2.3 1.3 2.7 1.5 3.8 1.1 2.3 2.7 7.1 1.6 4.8.3 2.1v1.6l1.9 1.9 4 8.9 1.8 4.5c.5 4 5.5 3.6 8 3l5.9-1.1 7.3-1.7 5.2-1.2 7.3-2.1 8.3-2.7 7.5-2.5 9.8-3.6 8-3 6.3-2.8 3.4-1.6 3-1.3 2.5-1.6 1-.8c1.9-1 2-2.1 1.6-2.9l-.6-1.7-1-2.7-1.6-4.2-1.4-4-.5-1.4-.1-.7v-1.2c.7-1-.4-2.5-1-3v-.2l-1-2-2.4-6-3.3-8.3-2.3-6a3896.4 3896.4 0 0 0-3.1-8.4l-2.2-7.1-1.5-5.7-2.5-8.9-1-3.1-1.2-4.5-2-8.2-2.2-9.3-2.8-11.4-2.6-9.1-.9-3c0-.3-.6-1.5-1-2l-2.5-5.6-3-6.6-5.7-11.3-2.5-4.3-2.3-3.3-.7-.7-4.3-5-3-3.8a73 73 0 0 0-4.2-3.8c-1.1-2-7.6-7-10.8-9.4-6.2-5-23.4-12.8-34-16.7l-11-4-16-7.9-20.1-10-7.1-3.8-2.4-1.5-13-7.3-2.6-3.4-5-3Z" }),
|
|
323
323
|
/* @__PURE__ */ t("path", { fill: i, d: "M292.1 648.8c-15.7-1.4-37.7-5-49.7-7.1-4.3-.6-22.6-5.3-35.5-9.5 1.5-10 3-21 4.3-32.7 7-60.5 4.8-132.8 3.1-185.6l-.9-32c-1-49-2.4-83.5-3.6-112-1.2-29-2.1-51.7-2.1-77 0-29 2.9-77.3 5.3-112.9l2.6-1c1.3-.3 10.1-2 14.4-2.7l10-3.2 6.6-3.7 9-5 4-2 .5-.3c1.2 2 2.6 4.1 3.4 4.8l6.1 7.8 15 14.6 4.8 4c-.6 26.4-1.1 60.6-1.1 100.1 0 59.3 1.1 82.6 2.7 114.6.9 18.8 2 40.7 3 74.9 1.5 48.3.8 98.4 0 148.6l-.8 68.3c0 13-.6 32.8-1.1 49Zm157.5-16.4-11.2 3.6a379.2 379.2 0 0 1-67 12c.2-11 .3-25.6.3-44.6 0-49.2-1.2-74.9-2.4-99.5-1.3-27.2-2.5-53-2-107.5.6-50.4 1.7-81.5 2.6-109.3 1-29.3 1.8-54.9 1.8-95.6 0-35.5-.6-70.6-1.2-98.6l3.6-3 5.3-5.1 3.5-3.6 3.5-3.4 4-5 4.2-5.3 2.7-4 .5.3 3.2 1.5 5.5 3.3 5.8 3 7.3 3 8.1 2.2c.7.2 3.3 1 8.4 2 2.4 0 6.5 1.5 11 3.4 2.6 29 5.2 68 5.2 107.8 0 41.5-1.6 70.2-3.2 102-1.6 28.7-3.3 60-4 105.6-.7 41.1.4 82.5 1.4 124.4.7 25.7 1.4 51.6 1.6 77.8a435 435 0 0 0 1.5 32.6Z" })
|
|
324
324
|
] }),
|
|
@@ -367,7 +367,7 @@ function ta({ jersey: e, className: a }) {
|
|
|
367
367
|
] });
|
|
368
368
|
}
|
|
369
369
|
function Oe({ name: e, jersey: a, size: n = "regular" }) {
|
|
370
|
-
return /* @__PURE__ */
|
|
370
|
+
return /* @__PURE__ */ f("div", { className: `oli-font ${ge.team} ${ge[n]}`, children: [
|
|
371
371
|
a != null && a.base ? /* @__PURE__ */ t(
|
|
372
372
|
ta,
|
|
373
373
|
{
|
|
@@ -388,19 +388,19 @@ function aa(e, a, {
|
|
|
388
388
|
if (!n) return;
|
|
389
389
|
const u = e.current;
|
|
390
390
|
if (!u) return;
|
|
391
|
-
const
|
|
391
|
+
const b = (h) => {
|
|
392
392
|
const r = a.current;
|
|
393
393
|
if (!r || !r.go) return;
|
|
394
|
-
const { deltaX: c, deltaY: m } =
|
|
394
|
+
const { deltaX: c, deltaY: m } = h;
|
|
395
395
|
if (Math.abs(c) <= Math.abs(m)) return;
|
|
396
|
-
|
|
397
|
-
const
|
|
398
|
-
if (
|
|
399
|
-
const
|
|
400
|
-
l.current = 0, s.current =
|
|
396
|
+
h.preventDefault(), l.current += c;
|
|
397
|
+
const p = Date.now();
|
|
398
|
+
if (p - s.current < i || Math.abs(l.current) < o) return;
|
|
399
|
+
const _ = l.current > 0 ? ">" : "<";
|
|
400
|
+
l.current = 0, s.current = p, r.go(_);
|
|
401
401
|
};
|
|
402
|
-
return u.addEventListener("wheel",
|
|
403
|
-
u.removeEventListener("wheel",
|
|
402
|
+
return u.addEventListener("wheel", b, { passive: !1 }), () => {
|
|
403
|
+
u.removeEventListener("wheel", b), l.current = 0;
|
|
404
404
|
};
|
|
405
405
|
}, [n, o, i, e, a]);
|
|
406
406
|
}
|
|
@@ -419,85 +419,85 @@ const na = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", oa = "ora
|
|
|
419
419
|
options: l = {},
|
|
420
420
|
className: s = "",
|
|
421
421
|
onMove: u,
|
|
422
|
-
useIndexAsKey:
|
|
423
|
-
enableHorizontalWheel:
|
|
422
|
+
useIndexAsKey: b = !1,
|
|
423
|
+
enableHorizontalWheel: h = !0,
|
|
424
424
|
showRightGradient: r = !1
|
|
425
425
|
}, c) => {
|
|
426
|
-
const m = W(null),
|
|
427
|
-
aa(
|
|
428
|
-
enabled:
|
|
426
|
+
const m = W(null), p = W(null), _ = W(e.length), I = W(null), C = W(null);
|
|
427
|
+
aa(p, m, {
|
|
428
|
+
enabled: h
|
|
429
429
|
}), bt(c, () => ({
|
|
430
430
|
next: () => {
|
|
431
|
-
var
|
|
432
|
-
return (
|
|
431
|
+
var w;
|
|
432
|
+
return (w = m.current) == null ? void 0 : w.go(">");
|
|
433
433
|
},
|
|
434
434
|
prev: () => {
|
|
435
|
-
var
|
|
436
|
-
return (
|
|
435
|
+
var w;
|
|
436
|
+
return (w = m.current) == null ? void 0 : w.go("<");
|
|
437
437
|
},
|
|
438
|
-
go: (
|
|
439
|
-
var
|
|
440
|
-
return (
|
|
438
|
+
go: (w) => {
|
|
439
|
+
var N;
|
|
440
|
+
return (N = m.current) == null ? void 0 : N.go(w);
|
|
441
441
|
}
|
|
442
442
|
}));
|
|
443
|
-
const
|
|
443
|
+
const T = (w) => {
|
|
444
444
|
var $;
|
|
445
|
-
const
|
|
446
|
-
let
|
|
447
|
-
for (let d =
|
|
448
|
-
const
|
|
449
|
-
if (!
|
|
450
|
-
|
|
445
|
+
const N = w.Components.Slides, P = w.Components.Controller, E = w.root.querySelector(".splide__track"), O = ($ = E == null ? void 0 : E.clientWidth) != null ? $ : 0, R = P.getIndex(), q = N.getLength();
|
|
446
|
+
let g = 0, z = R;
|
|
447
|
+
for (let d = R; d < q; d++) {
|
|
448
|
+
const y = N.getAt(d);
|
|
449
|
+
if (!y || (g += y.slide.offsetWidth, g > O)) break;
|
|
450
|
+
z = d;
|
|
451
451
|
}
|
|
452
|
-
return { visibleStart:
|
|
453
|
-
}, k = (
|
|
454
|
-
const
|
|
455
|
-
return !
|
|
456
|
-
}, A = xe((
|
|
457
|
-
var
|
|
458
|
-
const
|
|
459
|
-
if (!k(
|
|
452
|
+
return { visibleStart: R, visibleEnd: z };
|
|
453
|
+
}, k = (w) => {
|
|
454
|
+
const N = w.root.querySelector(".splide__track"), P = w.root.querySelector(".splide__list");
|
|
455
|
+
return !N || !P ? !1 : P.scrollWidth > N.clientWidth + 1;
|
|
456
|
+
}, A = xe((w) => {
|
|
457
|
+
var z, $;
|
|
458
|
+
const P = w.Components.Slides.getLength();
|
|
459
|
+
if (!k(w)) {
|
|
460
460
|
u == null || u({
|
|
461
461
|
index: 0,
|
|
462
462
|
isStart: !0,
|
|
463
463
|
isEnd: !0,
|
|
464
|
-
total:
|
|
464
|
+
total: P,
|
|
465
465
|
visibleStart: 0,
|
|
466
|
-
visibleEnd:
|
|
466
|
+
visibleEnd: P - 1
|
|
467
467
|
});
|
|
468
468
|
return;
|
|
469
469
|
}
|
|
470
|
-
const { visibleStart: E, visibleEnd: O } =
|
|
471
|
-
r && ((
|
|
472
|
-
const
|
|
470
|
+
const { visibleStart: E, visibleEnd: O } = T(w), R = E === 0, q = O === P - 1;
|
|
471
|
+
r && ((z = I.current) == null || z.style.setProperty("--gradient-opacity", R ? "0" : "1"), ($ = C.current) == null || $.style.setProperty("--gradient-opacity", q ? "0" : "1"));
|
|
472
|
+
const g = w.Components.Controller.getIndex();
|
|
473
473
|
u == null || u({
|
|
474
|
-
index:
|
|
475
|
-
isStart:
|
|
474
|
+
index: g,
|
|
475
|
+
isStart: R,
|
|
476
476
|
isEnd: q,
|
|
477
|
-
total:
|
|
477
|
+
total: P,
|
|
478
478
|
visibleStart: E,
|
|
479
479
|
visibleEnd: O
|
|
480
480
|
});
|
|
481
481
|
}, [u]);
|
|
482
482
|
ue.useEffect(() => {
|
|
483
|
-
var
|
|
484
|
-
const
|
|
485
|
-
if (!
|
|
486
|
-
const
|
|
487
|
-
|
|
488
|
-
|
|
483
|
+
var P;
|
|
484
|
+
const w = (P = m.current) == null ? void 0 : P.splide;
|
|
485
|
+
if (!w) return;
|
|
486
|
+
const N = _.current !== e.length;
|
|
487
|
+
_.current = e.length, N && requestAnimationFrame(() => {
|
|
488
|
+
w.refresh(), A(w);
|
|
489
489
|
});
|
|
490
490
|
}, [e.length, A]);
|
|
491
|
-
const
|
|
492
|
-
var
|
|
493
|
-
const
|
|
494
|
-
|
|
491
|
+
const L = xe(() => {
|
|
492
|
+
var N;
|
|
493
|
+
const w = (N = m.current) == null ? void 0 : N.splide;
|
|
494
|
+
w && (w.go(0, !1), A(w));
|
|
495
495
|
}, [A]), M = xe(
|
|
496
|
-
(
|
|
497
|
-
A(
|
|
496
|
+
(w) => {
|
|
497
|
+
A(w);
|
|
498
498
|
},
|
|
499
499
|
[A]
|
|
500
|
-
),
|
|
500
|
+
), F = {
|
|
501
501
|
type: "slide",
|
|
502
502
|
trimSpace: !1,
|
|
503
503
|
drag: !0,
|
|
@@ -510,12 +510,12 @@ const na = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", oa = "ora
|
|
|
510
510
|
gap: o,
|
|
511
511
|
breakpoints: i,
|
|
512
512
|
...l,
|
|
513
|
-
...
|
|
513
|
+
...h ? { wheel: !1 } : {}
|
|
514
514
|
};
|
|
515
|
-
return /* @__PURE__ */
|
|
515
|
+
return /* @__PURE__ */ f(
|
|
516
516
|
"div",
|
|
517
517
|
{
|
|
518
|
-
ref:
|
|
518
|
+
ref: p,
|
|
519
519
|
className: s,
|
|
520
520
|
style: { width: "100%", position: "relative", height: "100%" },
|
|
521
521
|
children: [
|
|
@@ -523,24 +523,24 @@ const na = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", oa = "ora
|
|
|
523
523
|
la,
|
|
524
524
|
{
|
|
525
525
|
ref: m,
|
|
526
|
-
options:
|
|
526
|
+
options: F,
|
|
527
527
|
onMove: A,
|
|
528
528
|
onMounted: M,
|
|
529
|
-
onResize:
|
|
530
|
-
children: e.map((
|
|
531
|
-
var
|
|
532
|
-
return /* @__PURE__ */ t(sa, { children: a(
|
|
529
|
+
onResize: L,
|
|
530
|
+
children: e.map((w, N) => {
|
|
531
|
+
var P;
|
|
532
|
+
return /* @__PURE__ */ t(sa, { children: a(w, N) }, b ? N : (P = w.id) != null ? P : N);
|
|
533
533
|
})
|
|
534
534
|
}
|
|
535
535
|
),
|
|
536
|
-
r && /* @__PURE__ */
|
|
536
|
+
r && /* @__PURE__ */ f(ae, { children: [
|
|
537
537
|
/* @__PURE__ */ t(
|
|
538
538
|
"div",
|
|
539
539
|
{
|
|
540
|
-
ref:
|
|
540
|
+
ref: I,
|
|
541
541
|
className: `${he.gradientOverlay} ${he.left}`,
|
|
542
542
|
style: { "--gradient-opacity": "0" },
|
|
543
|
-
children: /* @__PURE__ */
|
|
543
|
+
children: /* @__PURE__ */ f(
|
|
544
544
|
"svg",
|
|
545
545
|
{
|
|
546
546
|
className: he.svg,
|
|
@@ -550,7 +550,7 @@ const na = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", oa = "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__ */ f("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
|
] }) })
|
|
@@ -565,7 +565,7 @@ const na = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", oa = "ora
|
|
|
565
565
|
ref: C,
|
|
566
566
|
className: `${he.gradientOverlay} ${he.right}`,
|
|
567
567
|
style: { "--gradient-opacity": "1" },
|
|
568
|
-
children: /* @__PURE__ */
|
|
568
|
+
children: /* @__PURE__ */ f(
|
|
569
569
|
"svg",
|
|
570
570
|
{
|
|
571
571
|
className: he.svg,
|
|
@@ -575,7 +575,7 @@ const na = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", oa = "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__ */ f("linearGradient", { id: "paint_right", x1: "0", y1: "92", x2: "152", y2: "92", gradientUnits: "userSpaceOnUse", children: [
|
|
579
579
|
/* @__PURE__ */ t("stop", { offset: "0.59737", stopColor: "#121212", stopOpacity: "0" }),
|
|
580
580
|
/* @__PURE__ */ t("stop", { offset: "1", stopColor: "#121212" })
|
|
581
581
|
] }) })
|
|
@@ -598,7 +598,7 @@ const na = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", oa = "ora
|
|
|
598
598
|
const i = n === "lg" ? { w: 280, h: 352 } : { w: 152, h: 168 }, l = (u) => {
|
|
599
599
|
u.stopPropagation(), a == null || a();
|
|
600
600
|
}, s = o ? { width: "100%", height: "100%" } : { width: `${i.w}px`, height: `${i.h}px` };
|
|
601
|
-
return /* @__PURE__ */
|
|
601
|
+
return /* @__PURE__ */ f(
|
|
602
602
|
U,
|
|
603
603
|
{
|
|
604
604
|
onClick: a,
|
|
@@ -686,18 +686,18 @@ function ca({
|
|
|
686
686
|
md: { w: 186, h: 264, r: 22.6, font: 64 }
|
|
687
687
|
}
|
|
688
688
|
}) {
|
|
689
|
-
var c, m,
|
|
690
|
-
const l = (
|
|
691
|
-
var
|
|
689
|
+
var c, m, p, _;
|
|
690
|
+
const l = (I, C) => {
|
|
691
|
+
var T, k, A, L;
|
|
692
692
|
return {
|
|
693
|
-
xs: (k = (
|
|
694
|
-
md: (
|
|
693
|
+
xs: (k = (T = i.xs) == null ? void 0 : T[I]) != null ? k : C,
|
|
694
|
+
md: (L = (A = i.md) == null ? void 0 : A[I]) != null ? L : C
|
|
695
695
|
};
|
|
696
|
-
}, s = l("w", 186), u = l("h", 264),
|
|
696
|
+
}, s = l("w", 186), u = l("h", 264), b = l("r", 22.6), h = l("font", 64), r = {
|
|
697
697
|
xs: Math.round(((m = (c = i.xs) == null ? void 0 : c.font) != null ? m : 64) * 0.28),
|
|
698
|
-
md: Math.round(((
|
|
698
|
+
md: Math.round(((_ = (p = i.md) == null ? void 0 : p.font) != null ? _ : 64) * 0.28)
|
|
699
699
|
};
|
|
700
|
-
return /* @__PURE__ */
|
|
700
|
+
return /* @__PURE__ */ f(
|
|
701
701
|
U,
|
|
702
702
|
{
|
|
703
703
|
sx: {
|
|
@@ -708,7 +708,7 @@ function ca({
|
|
|
708
708
|
xs: `${s.xs}/${u.xs}`,
|
|
709
709
|
md: `${s.md}/${u.md}`
|
|
710
710
|
},
|
|
711
|
-
borderRadius: { xs: `${
|
|
711
|
+
borderRadius: { xs: `${b.xs}px`, md: `${b.md}px` },
|
|
712
712
|
boxSizing: "border-box",
|
|
713
713
|
overflow: "visible",
|
|
714
714
|
pb: { xs: `${r.xs}px`, md: `${r.md}px` },
|
|
@@ -771,8 +771,8 @@ function ca({
|
|
|
771
771
|
},
|
|
772
772
|
fontFamily: '"secondary", sans-serif',
|
|
773
773
|
fontSize: {
|
|
774
|
-
xs: `${
|
|
775
|
-
md: `${
|
|
774
|
+
xs: `${h.xs}px`,
|
|
775
|
+
md: `${h.md}px`
|
|
776
776
|
},
|
|
777
777
|
lineHeight: 1,
|
|
778
778
|
color: "#3CC666",
|
|
@@ -795,7 +795,7 @@ const da = ({
|
|
|
795
795
|
onClick: i
|
|
796
796
|
}) => {
|
|
797
797
|
var l;
|
|
798
|
-
return /* @__PURE__ */
|
|
798
|
+
return /* @__PURE__ */ f(
|
|
799
799
|
U,
|
|
800
800
|
{
|
|
801
801
|
onClick: i,
|
|
@@ -890,8 +890,8 @@ const da = ({
|
|
|
890
890
|
}) => {
|
|
891
891
|
var l, s;
|
|
892
892
|
if (a === "mosaic") {
|
|
893
|
-
const u = e[0],
|
|
894
|
-
return /* @__PURE__ */
|
|
893
|
+
const u = e[0], b = e.slice(1, 5);
|
|
894
|
+
return /* @__PURE__ */ f(
|
|
895
895
|
U,
|
|
896
896
|
{
|
|
897
897
|
sx: {
|
|
@@ -936,7 +936,7 @@ const da = ({
|
|
|
936
936
|
)
|
|
937
937
|
}
|
|
938
938
|
),
|
|
939
|
-
(o ? Array.from({ length: 4 }) :
|
|
939
|
+
(o ? Array.from({ length: 4 }) : b).map((h, r) => {
|
|
940
940
|
var c, m;
|
|
941
941
|
return /* @__PURE__ */ t(
|
|
942
942
|
U,
|
|
@@ -950,14 +950,14 @@ const da = ({
|
|
|
950
950
|
children: o ? /* @__PURE__ */ t(Me, {}) : /* @__PURE__ */ t(
|
|
951
951
|
we,
|
|
952
952
|
{
|
|
953
|
-
imageUrl: `https://olimpo.bet${(m = (c =
|
|
953
|
+
imageUrl: `https://olimpo.bet${(m = (c = h.background) != null ? c : h.imageUrl) != null ? m : ""}`,
|
|
954
954
|
size: "sm",
|
|
955
955
|
fillParent: !0,
|
|
956
|
-
onClick: () => n == null ? void 0 : n(
|
|
956
|
+
onClick: () => n == null ? void 0 : n(h, r + 1)
|
|
957
957
|
}
|
|
958
958
|
)
|
|
959
959
|
},
|
|
960
|
-
o ? `sk-${r}` :
|
|
960
|
+
o ? `sk-${r}` : h.id
|
|
961
961
|
);
|
|
962
962
|
})
|
|
963
963
|
]
|
|
@@ -980,8 +980,8 @@ const da = ({
|
|
|
980
980
|
gap: `${Ne}px`,
|
|
981
981
|
gridAutoFlow: "column"
|
|
982
982
|
},
|
|
983
|
-
children: (o ? Array.from({ length: i }) : e).map((u,
|
|
984
|
-
var
|
|
983
|
+
children: (o ? Array.from({ length: i }) : e).map((u, b) => {
|
|
984
|
+
var h, r, c;
|
|
985
985
|
return /* @__PURE__ */ t(
|
|
986
986
|
U,
|
|
987
987
|
{
|
|
@@ -989,14 +989,14 @@ const da = ({
|
|
|
989
989
|
children: o ? /* @__PURE__ */ t(Me, {}) : /* @__PURE__ */ t(
|
|
990
990
|
we,
|
|
991
991
|
{
|
|
992
|
-
imageUrl: `https://olimpo.bet${(r = (
|
|
992
|
+
imageUrl: `https://olimpo.bet${(r = (h = u.background) != null ? h : u.imageUrl) != null ? r : ""}`,
|
|
993
993
|
size: "sm",
|
|
994
994
|
fillParent: !0,
|
|
995
|
-
onClick: () => n == null ? void 0 : n(u,
|
|
995
|
+
onClick: () => n == null ? void 0 : n(u, b)
|
|
996
996
|
}
|
|
997
997
|
)
|
|
998
998
|
},
|
|
999
|
-
o ? `sk-${
|
|
999
|
+
o ? `sk-${b}` : (c = u.id) != null ? c : b
|
|
1000
1000
|
);
|
|
1001
1001
|
})
|
|
1002
1002
|
}
|
|
@@ -1010,10 +1010,10 @@ const da = ({
|
|
|
1010
1010
|
backgroundImage: l,
|
|
1011
1011
|
alt: s,
|
|
1012
1012
|
className: u = "",
|
|
1013
|
-
variant:
|
|
1013
|
+
variant: b = "small"
|
|
1014
1014
|
}) => {
|
|
1015
|
-
const
|
|
1016
|
-
return /* @__PURE__ */
|
|
1015
|
+
const h = a ? a.slice(0, 2) : "", r = a ? a.slice(2) : "", c = b === "large";
|
|
1016
|
+
return /* @__PURE__ */ f(
|
|
1017
1017
|
U,
|
|
1018
1018
|
{
|
|
1019
1019
|
className: u,
|
|
@@ -1074,7 +1074,7 @@ const da = ({
|
|
|
1074
1074
|
pl: "14%",
|
|
1075
1075
|
pr: { xs: "14%", lg: "15%" }
|
|
1076
1076
|
},
|
|
1077
|
-
children: /* @__PURE__ */
|
|
1077
|
+
children: /* @__PURE__ */ f(
|
|
1078
1078
|
U,
|
|
1079
1079
|
{
|
|
1080
1080
|
sx: {
|
|
@@ -1095,7 +1095,7 @@ const da = ({
|
|
|
1095
1095
|
children: e
|
|
1096
1096
|
}
|
|
1097
1097
|
),
|
|
1098
|
-
a && /* @__PURE__ */
|
|
1098
|
+
a && /* @__PURE__ */ f(
|
|
1099
1099
|
U,
|
|
1100
1100
|
{
|
|
1101
1101
|
component: "p",
|
|
@@ -1118,7 +1118,7 @@ const da = ({
|
|
|
1118
1118
|
{
|
|
1119
1119
|
component: "span",
|
|
1120
1120
|
sx: { fontSize: { xs: 35, md: 48 }, mr: 0.5 },
|
|
1121
|
-
children:
|
|
1121
|
+
children: h
|
|
1122
1122
|
}
|
|
1123
1123
|
),
|
|
1124
1124
|
/* @__PURE__ */ t(
|
|
@@ -1161,7 +1161,7 @@ const da = ({
|
|
|
1161
1161
|
imgSrcMobile: i,
|
|
1162
1162
|
imgSrcDesktopBg: l,
|
|
1163
1163
|
imgSrcDesktopLogo: s
|
|
1164
|
-
}) => /* @__PURE__ */
|
|
1164
|
+
}) => /* @__PURE__ */ f(ae, { children: [
|
|
1165
1165
|
/* @__PURE__ */ t("div", { className: "orc-co-bgMobile", children: /* @__PURE__ */ t(
|
|
1166
1166
|
"img",
|
|
1167
1167
|
{
|
|
@@ -1170,7 +1170,7 @@ const da = ({
|
|
|
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__ */ f("div", { className: "orc-co-desktopInner", children: [
|
|
1174
1174
|
l && /* @__PURE__ */ t("div", { className: "orc-co-fillHost", children: /* @__PURE__ */ t(
|
|
1175
1175
|
"img",
|
|
1176
1176
|
{
|
|
@@ -1179,7 +1179,7 @@ const da = ({
|
|
|
1179
1179
|
className: "orc-co-bgDesktopImg"
|
|
1180
1180
|
}
|
|
1181
1181
|
) }),
|
|
1182
|
-
/* @__PURE__ */
|
|
1182
|
+
/* @__PURE__ */ f("div", { className: "orc-co-desktopContent", children: [
|
|
1183
1183
|
s && /* @__PURE__ */ t(
|
|
1184
1184
|
"img",
|
|
1185
1185
|
{
|
|
@@ -1192,7 +1192,7 @@ const da = ({
|
|
|
1192
1192
|
/* @__PURE__ */ t(K, { onClick: n, variant: "primary", size: "md", children: a })
|
|
1193
1193
|
] })
|
|
1194
1194
|
] }) }),
|
|
1195
|
-
/* @__PURE__ */
|
|
1195
|
+
/* @__PURE__ */ f("div", { className: "orc-co-bottom", children: [
|
|
1196
1196
|
/* @__PURE__ */ t("p", { className: "orc-co-caption", children: e }),
|
|
1197
1197
|
/* @__PURE__ */ t(K, { onClick: n, variant: "primary", size: "md", children: a })
|
|
1198
1198
|
] })
|
|
@@ -1248,37 +1248,37 @@ const ct = _t(void 0), Le = ({ children: e, docId: a }) => {
|
|
|
1248
1248
|
return e.docId;
|
|
1249
1249
|
};
|
|
1250
1250
|
function Ca({ coupon: e }) {
|
|
1251
|
-
var
|
|
1251
|
+
var h;
|
|
1252
1252
|
const a = Q(), n = ee();
|
|
1253
1253
|
function o(r) {
|
|
1254
|
-
var
|
|
1254
|
+
var p, _;
|
|
1255
1255
|
const c = [], m = Array.from(
|
|
1256
1256
|
new Map(
|
|
1257
|
-
((
|
|
1257
|
+
((p = r == null ? void 0 : r.events) != null ? p : []).filter(Boolean).map((I) => [I.id, I])
|
|
1258
1258
|
).values()
|
|
1259
1259
|
);
|
|
1260
|
-
return m.forEach((
|
|
1260
|
+
return m.forEach((I) => {
|
|
1261
1261
|
var A;
|
|
1262
|
-
const C = (A =
|
|
1263
|
-
C.forEach((
|
|
1264
|
-
var
|
|
1265
|
-
if (!((
|
|
1266
|
-
const M =
|
|
1262
|
+
const C = (A = I.betoffers) != null ? A : [], T = I.homeName, k = I.awayName;
|
|
1263
|
+
C.forEach((L) => {
|
|
1264
|
+
var N, P, E, O, R, q, g;
|
|
1265
|
+
if (!((N = L == null ? void 0 : L.outcomes) != null && N.length)) return;
|
|
1266
|
+
const M = L.outcomes[0];
|
|
1267
1267
|
if (!M) return;
|
|
1268
|
-
let
|
|
1269
|
-
const
|
|
1270
|
-
["Más de", "Mas de", "Over"].includes(M.label) ? (
|
|
1268
|
+
let F = "";
|
|
1269
|
+
const w = M != null && M.line ? M.line / 1e3 : "";
|
|
1270
|
+
["Más de", "Mas de", "Over"].includes(M.label) ? (F = `Más de ${w}`, M.participant && (F = `${M.participant} - ${F}`)) : ["Menos de", "Menos", "Under"].includes(M.label) ? (F = `Menos de ${w}`, M.participant && (F = `${M.participant} - ${F}`)) : ["Sí", "No"].includes(M.label) ? (F = M.label, M.participant && (F = `${M.participant} - ${F}`)) : ["1X", "12", "X2"].includes(M.label) ? (M.label === "1X" && (F = `${T} o Empate`), M.label === "12" && (F = `${T} o ${k}`), M.label === "X2" && (F = `${k} o Empate`)) : (F = (E = (P = M.participant) != null ? P : M.label) != null ? E : "", w !== "" && F === M.label && (F = `${M.label} ${w}`)), c.push({
|
|
1271
1271
|
id: M.id,
|
|
1272
|
-
value:
|
|
1273
|
-
label: (
|
|
1272
|
+
value: F,
|
|
1273
|
+
label: (R = (O = L.criterion) == null ? void 0 : O.label) != null ? R : "",
|
|
1274
1274
|
odds: (q = M.odds) != null ? q : 0,
|
|
1275
|
-
position: (
|
|
1276
|
-
eventId:
|
|
1275
|
+
position: (g = M.position) != null ? g : 0,
|
|
1276
|
+
eventId: I.id
|
|
1277
1277
|
});
|
|
1278
1278
|
});
|
|
1279
1279
|
}), {
|
|
1280
|
-
outcomes: c.sort((
|
|
1281
|
-
total: Number((
|
|
1280
|
+
outcomes: c.sort((I, C) => I.position - C.position),
|
|
1281
|
+
total: Number((_ = r == null ? void 0 : r.combinadoTotal) != null ? _ : 0).toLocaleString("en-US", {
|
|
1282
1282
|
minimumFractionDigits: 2,
|
|
1283
1283
|
maximumFractionDigits: 2
|
|
1284
1284
|
}),
|
|
@@ -1292,43 +1292,43 @@ function Ca({ coupon: e }) {
|
|
|
1292
1292
|
if (c.length === 1)
|
|
1293
1293
|
return `/deportes#event/${c[0].id}`;
|
|
1294
1294
|
const m = c[0].groupId;
|
|
1295
|
-
if (c.every((
|
|
1296
|
-
const
|
|
1297
|
-
if (Array.isArray(
|
|
1298
|
-
return `/deportes#sports-hub/${
|
|
1295
|
+
if (c.every((_) => _.groupId === m)) {
|
|
1296
|
+
const _ = c[0].path;
|
|
1297
|
+
if (Array.isArray(_) && _.length > 0)
|
|
1298
|
+
return `/deportes#sports-hub/${_.map((C) => C.termKey).filter(Boolean).join("/")}`;
|
|
1299
1299
|
}
|
|
1300
1300
|
return "/deportes#home";
|
|
1301
1301
|
}
|
|
1302
1302
|
const l = (r, c) => {
|
|
1303
|
-
const m = Array.isArray(r) ? r : [r],
|
|
1303
|
+
const m = Array.isArray(r) ? r : [r], p = Array.from(
|
|
1304
1304
|
new Set(
|
|
1305
1305
|
s.outcomes.map((C) => {
|
|
1306
1306
|
var k;
|
|
1307
|
-
const
|
|
1308
|
-
return (k =
|
|
1307
|
+
const T = b.get(Number(C.eventId));
|
|
1308
|
+
return (k = T == null ? void 0 : T.name) != null ? k : "";
|
|
1309
1309
|
})
|
|
1310
1310
|
)
|
|
1311
|
-
).filter(Boolean),
|
|
1311
|
+
).filter(Boolean), _ = p.length > 0 ? p.join(" + ") : JSON.stringify(m), I = c ? `${_} - Cuota: ${c}` : _;
|
|
1312
1312
|
a({
|
|
1313
1313
|
element: "evento_semana_outcome",
|
|
1314
|
-
label: `Landing: ${n} - OraculoEventCombinadasCard - Click: ${
|
|
1314
|
+
label: `Landing: ${n} - OraculoEventCombinadasCard - Click: ${I}`,
|
|
1315
1315
|
target: "/deportes#in-play",
|
|
1316
1316
|
event_type: "click",
|
|
1317
1317
|
module_id: 301,
|
|
1318
1318
|
metadata: {
|
|
1319
1319
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1320
1320
|
},
|
|
1321
|
-
tags: { section: "OraculoEventCombinadasCard", outcomes:
|
|
1321
|
+
tags: { section: "OraculoEventCombinadasCard", outcomes: I }
|
|
1322
1322
|
}), Re(i(e), r);
|
|
1323
1323
|
};
|
|
1324
|
-
if (!((
|
|
1325
|
-
const s = o(e), u = s.outcomes.reduce((r, c) => (r[c.eventId] || (r[c.eventId] = []), r[c.eventId].push(c), r), {}),
|
|
1324
|
+
if (!((h = e == null ? void 0 : e.events) != null && h.length)) return null;
|
|
1325
|
+
const s = o(e), u = s.outcomes.reduce((r, c) => (r[c.eventId] || (r[c.eventId] = []), r[c.eventId].push(c), r), {}), b = new Map(
|
|
1326
1326
|
s.events.map((r) => [r.id, r])
|
|
1327
1327
|
);
|
|
1328
|
-
return /* @__PURE__ */
|
|
1328
|
+
return /* @__PURE__ */ f("div", { className: ne.card, children: [
|
|
1329
1329
|
/* @__PURE__ */ t("div", { className: ne.combinadas, children: /* @__PURE__ */ t("div", { className: ne.combinadasScroll, children: /* @__PURE__ */ t(j, { direction: "column", spacing: 1.5, useFlexGap: !0, children: Object.entries(u).reverse().map(([r, c]) => {
|
|
1330
|
-
const m =
|
|
1331
|
-
return m ? /* @__PURE__ */
|
|
1330
|
+
const m = b.get(Number(r));
|
|
1331
|
+
return m ? /* @__PURE__ */ f(
|
|
1332
1332
|
j,
|
|
1333
1333
|
{
|
|
1334
1334
|
direction: "column",
|
|
@@ -1350,23 +1350,23 @@ function Ca({ coupon: e }) {
|
|
|
1350
1350
|
src: "/assets/img/home/Combinadas/line.png"
|
|
1351
1351
|
}
|
|
1352
1352
|
),
|
|
1353
|
-
c.map((
|
|
1354
|
-
/* @__PURE__ */
|
|
1353
|
+
c.map((p, _) => /* @__PURE__ */ f("div", { className: ne.apuestaItem, children: [
|
|
1354
|
+
/* @__PURE__ */ f("div", { className: ne.lineContainer, children: [
|
|
1355
1355
|
/* @__PURE__ */ t("div", { className: ne.circle }),
|
|
1356
|
-
|
|
1356
|
+
_ < c.length - 1 && /* @__PURE__ */ t("div", { className: ne.line })
|
|
1357
1357
|
] }),
|
|
1358
|
-
/* @__PURE__ */
|
|
1359
|
-
/* @__PURE__ */ t("strong", { children:
|
|
1358
|
+
/* @__PURE__ */ f("div", { className: ne.apuestaText, children: [
|
|
1359
|
+
/* @__PURE__ */ t("strong", { children: p.value }),
|
|
1360
1360
|
" | ",
|
|
1361
|
-
|
|
1361
|
+
p.label
|
|
1362
1362
|
] })
|
|
1363
|
-
] }, `${r}-${
|
|
1363
|
+
] }, `${r}-${_}`))
|
|
1364
1364
|
]
|
|
1365
1365
|
},
|
|
1366
1366
|
r
|
|
1367
1367
|
) : null;
|
|
1368
1368
|
}) }) }) }),
|
|
1369
|
-
/* @__PURE__ */
|
|
1369
|
+
/* @__PURE__ */ f(
|
|
1370
1370
|
"button",
|
|
1371
1371
|
{
|
|
1372
1372
|
onClick: () => l(
|
|
@@ -1375,7 +1375,7 @@ function Ca({ coupon: e }) {
|
|
|
1375
1375
|
),
|
|
1376
1376
|
className: ne.cuotaTotal,
|
|
1377
1377
|
children: [
|
|
1378
|
-
/* @__PURE__ */
|
|
1378
|
+
/* @__PURE__ */ f("span", { children: [
|
|
1379
1379
|
"Cuota total: ",
|
|
1380
1380
|
/* @__PURE__ */ t("strong", { children: s.total })
|
|
1381
1381
|
] }),
|
|
@@ -1415,31 +1415,31 @@ function Oa({
|
|
|
1415
1415
|
type: l = "button",
|
|
1416
1416
|
disabled: s = !1,
|
|
1417
1417
|
variant: u = "primary",
|
|
1418
|
-
size:
|
|
1419
|
-
fullWidth:
|
|
1418
|
+
size: b,
|
|
1419
|
+
fullWidth: h = !1,
|
|
1420
1420
|
fullHeight: r = !1,
|
|
1421
1421
|
className: c = "",
|
|
1422
1422
|
ariaLabel: m,
|
|
1423
|
-
leftIcon:
|
|
1424
|
-
rightIcon:
|
|
1425
|
-
iconOnly:
|
|
1423
|
+
leftIcon: p,
|
|
1424
|
+
rightIcon: _,
|
|
1425
|
+
iconOnly: I
|
|
1426
1426
|
}) {
|
|
1427
|
-
const C = !!e && e !== !0, A = (!!
|
|
1427
|
+
const C = !!e && e !== !0, A = (!!p ? 1 : 0) + (!!_ ? 1 : 0) == 1, L = I != null ? I : A && !C, M = [
|
|
1428
1428
|
oe["orc-btn"],
|
|
1429
1429
|
// base
|
|
1430
1430
|
oe[`orc-btn--${u}`],
|
|
1431
1431
|
// variant primary/secondary/tertiary
|
|
1432
|
-
|
|
1432
|
+
b ? oe[`orc-btn--${b}`] : "",
|
|
1433
1433
|
// sm / md / lg
|
|
1434
|
-
|
|
1434
|
+
h ? oe["orc-btn--full"] : "",
|
|
1435
1435
|
r ? oe["orc-btn--fullHeight"] : "",
|
|
1436
|
-
|
|
1436
|
+
L ? oe["orc-btn--iconOnly"] : "",
|
|
1437
1437
|
c
|
|
1438
|
-
].filter(Boolean).join(" "),
|
|
1439
|
-
|
|
1440
|
-
!
|
|
1441
|
-
|
|
1442
|
-
] }),
|
|
1438
|
+
].filter(Boolean).join(" "), F = /* @__PURE__ */ f(ae, { children: [
|
|
1439
|
+
p && /* @__PURE__ */ t("span", { className: oe["orc-btn__icon"], children: p }),
|
|
1440
|
+
!L && /* @__PURE__ */ t("span", { className: oe["orc-btn__label"], children: e }),
|
|
1441
|
+
_ && /* @__PURE__ */ t("span", { className: oe["orc-btn__icon"], children: _ })
|
|
1442
|
+
] }), w = s ? !0 : void 0;
|
|
1443
1443
|
return n ? /* @__PURE__ */ t(
|
|
1444
1444
|
Xe,
|
|
1445
1445
|
{
|
|
@@ -1447,21 +1447,21 @@ function Oa({
|
|
|
1447
1447
|
target: o,
|
|
1448
1448
|
rel: i,
|
|
1449
1449
|
"aria-label": m,
|
|
1450
|
-
"aria-disabled":
|
|
1451
|
-
tabIndex:
|
|
1450
|
+
"aria-disabled": w,
|
|
1451
|
+
tabIndex: w ? -1 : void 0,
|
|
1452
1452
|
className: M,
|
|
1453
|
-
onClick:
|
|
1454
|
-
children:
|
|
1453
|
+
onClick: w ? (N) => N.preventDefault() : a,
|
|
1454
|
+
children: F
|
|
1455
1455
|
}
|
|
1456
1456
|
) : /* @__PURE__ */ t(
|
|
1457
1457
|
"button",
|
|
1458
1458
|
{
|
|
1459
1459
|
type: l,
|
|
1460
1460
|
onClick: a,
|
|
1461
|
-
disabled: !!
|
|
1461
|
+
disabled: !!w,
|
|
1462
1462
|
"aria-label": m,
|
|
1463
1463
|
className: M,
|
|
1464
|
-
children:
|
|
1464
|
+
children: F
|
|
1465
1465
|
}
|
|
1466
1466
|
);
|
|
1467
1467
|
}
|
|
@@ -1491,7 +1491,7 @@ const Ea = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", Ia = "
|
|
|
1491
1491
|
return o || (a === "home" ? Ve : De);
|
|
1492
1492
|
};
|
|
1493
1493
|
function ka({ event: e, liveData: a, betOffers: n, jersey: o }) {
|
|
1494
|
-
var u,
|
|
1494
|
+
var u, b, h, r, c, m, p, _, I, C, T;
|
|
1495
1495
|
const i = n == null ? void 0 : n.find(
|
|
1496
1496
|
(k) => {
|
|
1497
1497
|
var A;
|
|
@@ -1511,26 +1511,26 @@ function ka({ event: e, liveData: a, betOffers: n, jersey: o }) {
|
|
|
1511
1511
|
{ ...l, id: -2, label: "X", odds: void 0 },
|
|
1512
1512
|
{ ...l, id: -3, label: "2", odds: void 0 }
|
|
1513
1513
|
];
|
|
1514
|
-
return /* @__PURE__ */ t("div", { className: Se.cardWrapper, children: /* @__PURE__ */
|
|
1515
|
-
/* @__PURE__ */
|
|
1514
|
+
return /* @__PURE__ */ t("div", { className: Se.cardWrapper, children: /* @__PURE__ */ f(j, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1515
|
+
/* @__PURE__ */ f(j, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
1516
1516
|
/* @__PURE__ */ t(
|
|
1517
1517
|
At,
|
|
1518
1518
|
{
|
|
1519
|
-
title: (
|
|
1519
|
+
title: (h = (b = (u = e == null ? void 0 : e.path) == null ? void 0 : u[0]) == null ? void 0 : b.name) != null ? h : "",
|
|
1520
1520
|
subtitle: (r = e == null ? void 0 : e.group) != null ? r : "",
|
|
1521
1521
|
live: !0,
|
|
1522
1522
|
time: ((c = a == null ? void 0 : a.matchClock) == null ? void 0 : c.minute) != null ? `${a.matchClock.minute}'` : ""
|
|
1523
1523
|
}
|
|
1524
1524
|
),
|
|
1525
|
-
/* @__PURE__ */ t("div", { style: { padding: "0 4px" }, children: /* @__PURE__ */
|
|
1525
|
+
/* @__PURE__ */ t("div", { style: { padding: "0 4px" }, children: /* @__PURE__ */ f(re, { spacing: 1.5, columns: "1fr auto 1fr", children: [
|
|
1526
1526
|
/* @__PURE__ */ t(Oe, { name: e == null ? void 0 : e.homeName, jersey: Ee(o, "home") }),
|
|
1527
|
-
/* @__PURE__ */ t(it, { text: ((
|
|
1527
|
+
/* @__PURE__ */ t(it, { text: ((p = (m = a == null ? void 0 : a.score) == null ? void 0 : m.home) != null ? p : 0) + ":" + ((I = (_ = a == null ? void 0 : a.score) == null ? void 0 : _.away) != null ? I : 0), name: "En vivo" }),
|
|
1528
1528
|
/* @__PURE__ */ t(Oe, { name: e == null ? void 0 : e.awayName, jersey: Ee(o, "away") })
|
|
1529
1529
|
] }) })
|
|
1530
1530
|
] }),
|
|
1531
|
-
/* @__PURE__ */
|
|
1531
|
+
/* @__PURE__ */ f(j, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1532
1532
|
/* @__PURE__ */ t(re, { spacing: 1, children: ((C = i == null ? void 0 : i.outcomes) != null ? C : s).map((k, A) => /* @__PURE__ */ t(nt, { text: k.label.toUpperCase() }, A)) }),
|
|
1533
|
-
/* @__PURE__ */ t(re, { spacing: 2, children: ((
|
|
1533
|
+
/* @__PURE__ */ t(re, { spacing: 2, children: ((T = i == null ? void 0 : i.outcomes) != null ? T : s).map((k, A) => /* @__PURE__ */ t(Oa, { variant: "primary", disabled: k.odds == null || (i == null ? void 0 : i.cashOutStatus) == "SUSPENDED", onClick: () => {
|
|
1534
1534
|
Re("/deportes#event/live/" + e.id, k.id);
|
|
1535
1535
|
}, className: Se.customButtonDisabled, children: /* @__PURE__ */ t("span", { className: Se.customButtonLabel, children: k.odds === void 0 ? "" : (k.odds / 1e3).toFixed(2) }) }, A)) })
|
|
1536
1536
|
] })
|
|
@@ -1549,43 +1549,43 @@ const Ba = "oraculo__OraculoEventSemanaCard-module__cardContainer___4JuDe", La =
|
|
|
1549
1549
|
equipos: Ra
|
|
1550
1550
|
};
|
|
1551
1551
|
function Fa({ event: e, jersey: a }) {
|
|
1552
|
-
var s, u,
|
|
1552
|
+
var s, u, b, h, r, c, m;
|
|
1553
1553
|
const n = Q(), o = ee();
|
|
1554
|
-
function i(
|
|
1555
|
-
const
|
|
1556
|
-
let k =
|
|
1557
|
-
return k = k.replace(/\./g, "").replace(/A\s*M/i, "AM").replace(/P\s*M/i, "PM"), `${
|
|
1554
|
+
function i(p) {
|
|
1555
|
+
const _ = new Date(p), I = _.toLocaleDateString("es-ES", { weekday: "short" }).toUpperCase(), C = _.getDate().toString().padStart(2, "0"), T = (_.getMonth() + 1).toString().padStart(2, "0");
|
|
1556
|
+
let k = _.toLocaleTimeString("es-PE", { hour: "numeric", minute: "2-digit", hour12: !0 }).toUpperCase();
|
|
1557
|
+
return k = k.replace(/\./g, "").replace(/A\s*M/i, "AM").replace(/P\s*M/i, "PM"), `${I} ${C}/${T} | ${k}`;
|
|
1558
1558
|
}
|
|
1559
|
-
const l = (
|
|
1560
|
-
const
|
|
1559
|
+
const l = (p, _) => {
|
|
1560
|
+
const I = `${e.homeName} vs ${e.awayName}`, C = _ ? (_ / 1e3).toFixed(2) : "", T = C ? `${I} - Cuota: ${C}` : I;
|
|
1561
1561
|
n({
|
|
1562
1562
|
element: "evento_semana_outcome",
|
|
1563
|
-
label: `Landing: ${o} - OraculoEventSemanaCard - Click: ${
|
|
1563
|
+
label: `Landing: ${o} - OraculoEventSemanaCard - Click: ${T}`,
|
|
1564
1564
|
target: "/deportes#in-play",
|
|
1565
1565
|
event_type: "click",
|
|
1566
1566
|
module_id: 301,
|
|
1567
1567
|
metadata: {
|
|
1568
1568
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1569
1569
|
},
|
|
1570
|
-
tags: { section: "OraculoEventSemanaCard", outcomes:
|
|
1571
|
-
}), Re("/deportes#event/" + e.id,
|
|
1570
|
+
tags: { section: "OraculoEventSemanaCard", outcomes: T }
|
|
1571
|
+
}), Re("/deportes#event/" + e.id, p);
|
|
1572
1572
|
};
|
|
1573
|
-
return /* @__PURE__ */
|
|
1573
|
+
return /* @__PURE__ */ f("div", { className: de.cardContainer, children: [
|
|
1574
1574
|
/* @__PURE__ */ t(ot, { title: (s = e == null ? void 0 : e.group) != null ? s : "" }),
|
|
1575
|
-
/* @__PURE__ */ t("div", { className: de.cardBackground, children: /* @__PURE__ */
|
|
1576
|
-
/* @__PURE__ */
|
|
1577
|
-
/* @__PURE__ */
|
|
1575
|
+
/* @__PURE__ */ t("div", { className: de.cardBackground, children: /* @__PURE__ */ f(j, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
1576
|
+
/* @__PURE__ */ f(j, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1577
|
+
/* @__PURE__ */ f("div", { className: de.equipos, children: [
|
|
1578
1578
|
/* @__PURE__ */ t(Oe, { name: e.homeName, size: "compact", jersey: Ee(a, "home") }),
|
|
1579
1579
|
/* @__PURE__ */ t(it, { text: "vs.", name: "", size: "small" }),
|
|
1580
1580
|
/* @__PURE__ */ t(Oe, { name: e.awayName, size: "compact", jersey: Ee(a, "away") })
|
|
1581
1581
|
] }),
|
|
1582
1582
|
/* @__PURE__ */ t(Ma, { text: i(e.start) })
|
|
1583
1583
|
] }),
|
|
1584
|
-
/* @__PURE__ */
|
|
1585
|
-
/* @__PURE__ */ t(re, { spacing: 1, children: ((
|
|
1586
|
-
/* @__PURE__ */ t("div", { className: de.jugadas, children: /* @__PURE__ */ t(re, { spacing: 1, children: ((m = (c = (r = e == null ? void 0 : e.outcome) == null ? void 0 : r[0]) == null ? void 0 : c.outcomes) != null ? m : []).map((
|
|
1587
|
-
l(
|
|
1588
|
-
}, children: (
|
|
1584
|
+
/* @__PURE__ */ f(j, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
1585
|
+
/* @__PURE__ */ t(re, { spacing: 1, children: ((h = (b = (u = e == null ? void 0 : e.outcome) == null ? void 0 : u[0]) == null ? void 0 : b.outcomes) != null ? h : []).map((p, _) => /* @__PURE__ */ t(nt, { text: p.label.toUpperCase() }, _)) }),
|
|
1586
|
+
/* @__PURE__ */ t("div", { className: de.jugadas, children: /* @__PURE__ */ t(re, { spacing: 1, children: ((m = (c = (r = e == null ? void 0 : e.outcome) == null ? void 0 : r[0]) == null ? void 0 : c.outcomes) != null ? m : []).map((p, _) => /* @__PURE__ */ t(K, { variant: "primary", fullHeight: !0, onClick: () => {
|
|
1587
|
+
l(p.id, p.odds);
|
|
1588
|
+
}, children: (p.odds / 1e3).toFixed(2) }, _)) }) })
|
|
1589
1589
|
] })
|
|
1590
1590
|
] }) })
|
|
1591
1591
|
] });
|
|
@@ -1597,11 +1597,11 @@ function za({
|
|
|
1597
1597
|
onViewMore: o,
|
|
1598
1598
|
className: i = ""
|
|
1599
1599
|
}) {
|
|
1600
|
-
const l = W(null), [s, u] = H({ isStart: !0, isEnd: !1 }),
|
|
1601
|
-
var
|
|
1602
|
-
|
|
1600
|
+
const l = W(null), [s, u] = H({ isStart: !0, isEnd: !1 }), b = Q(), h = ee(), r = !e || e.length === 0, c = () => {
|
|
1601
|
+
var T;
|
|
1602
|
+
b({
|
|
1603
1603
|
element: "destacados_carousel_prev",
|
|
1604
|
-
label: `Landing: ${
|
|
1604
|
+
label: `Landing: ${h} - OraculoSeccionDestacados - Anterior`,
|
|
1605
1605
|
target: "carousel",
|
|
1606
1606
|
event_type: "click",
|
|
1607
1607
|
module_id: 301,
|
|
@@ -1609,12 +1609,12 @@ function za({
|
|
|
1609
1609
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1610
1610
|
},
|
|
1611
1611
|
tags: { section: "OraculoSeccionDestacados" }
|
|
1612
|
-
}), (
|
|
1612
|
+
}), (T = l.current) == null || T.prev();
|
|
1613
1613
|
}, m = () => {
|
|
1614
|
-
var
|
|
1615
|
-
|
|
1614
|
+
var T;
|
|
1615
|
+
b({
|
|
1616
1616
|
element: "destacados_carousel_next",
|
|
1617
|
-
label: `Landing: ${
|
|
1617
|
+
label: `Landing: ${h} - OraculoSeccionDestacados - Siguiente`,
|
|
1618
1618
|
target: "carousel",
|
|
1619
1619
|
event_type: "click",
|
|
1620
1620
|
module_id: 301,
|
|
@@ -1622,11 +1622,11 @@ function za({
|
|
|
1622
1622
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1623
1623
|
},
|
|
1624
1624
|
tags: { section: "OraculoSeccionDestacados" }
|
|
1625
|
-
}), (
|
|
1626
|
-
},
|
|
1627
|
-
|
|
1625
|
+
}), (T = l.current) == null || T.next();
|
|
1626
|
+
}, p = () => {
|
|
1627
|
+
b({
|
|
1628
1628
|
element: "destacados_view_more",
|
|
1629
|
-
label: `Landing: ${
|
|
1629
|
+
label: `Landing: ${h} - OraculoSeccionDestacados - Ver más`,
|
|
1630
1630
|
target: "https://www.olimpo.bet/promociones",
|
|
1631
1631
|
event_type: "click",
|
|
1632
1632
|
module_id: 301,
|
|
@@ -1635,12 +1635,12 @@ function za({
|
|
|
1635
1635
|
},
|
|
1636
1636
|
tags: { section: "OraculoSeccionDestacados" }
|
|
1637
1637
|
}), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/promociones");
|
|
1638
|
-
},
|
|
1639
|
-
if (!
|
|
1640
|
-
const A = `https://www.olimpo.bet/promociones/${encodeURIComponent(
|
|
1641
|
-
|
|
1638
|
+
}, _ = (T) => {
|
|
1639
|
+
if (!T) return;
|
|
1640
|
+
const A = `https://www.olimpo.bet/promociones/${encodeURIComponent(T)}`;
|
|
1641
|
+
b({
|
|
1642
1642
|
element: "destacados_card",
|
|
1643
|
-
label: `Landing: ${
|
|
1643
|
+
label: `Landing: ${h} - OraculoSeccionDestacados - Click: ${String(T)}`,
|
|
1644
1644
|
target: A,
|
|
1645
1645
|
event_type: "click",
|
|
1646
1646
|
module_id: 301,
|
|
@@ -1649,12 +1649,12 @@ function za({
|
|
|
1649
1649
|
},
|
|
1650
1650
|
tags: {
|
|
1651
1651
|
section: "OraculoSeccionDestacados",
|
|
1652
|
-
promotion: String(
|
|
1652
|
+
promotion: String(T)
|
|
1653
1653
|
}
|
|
1654
1654
|
}), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(A);
|
|
1655
|
-
},
|
|
1656
|
-
return /* @__PURE__ */
|
|
1657
|
-
/* @__PURE__ */
|
|
1655
|
+
}, I = i || void 0, C = be("(max-width:768px)");
|
|
1656
|
+
return /* @__PURE__ */ f("section", { className: I, style: { width: "100%" }, children: [
|
|
1657
|
+
/* @__PURE__ */ f(
|
|
1658
1658
|
"header",
|
|
1659
1659
|
{
|
|
1660
1660
|
style: {
|
|
@@ -1669,7 +1669,7 @@ function za({
|
|
|
1669
1669
|
},
|
|
1670
1670
|
children: [
|
|
1671
1671
|
/* @__PURE__ */ t(se, { title: a, iconUrl: n, size: "md" }),
|
|
1672
|
-
/* @__PURE__ */
|
|
1672
|
+
/* @__PURE__ */ f("div", { style: { display: "flex", gap: 8 }, children: [
|
|
1673
1673
|
/* @__PURE__ */ t(
|
|
1674
1674
|
K,
|
|
1675
1675
|
{
|
|
@@ -1693,7 +1693,7 @@ function za({
|
|
|
1693
1693
|
}
|
|
1694
1694
|
)
|
|
1695
1695
|
] }),
|
|
1696
|
-
/* @__PURE__ */ t(K, { variant: "secondary", onClick:
|
|
1696
|
+
/* @__PURE__ */ t(K, { variant: "secondary", onClick: p, children: "Ver más" })
|
|
1697
1697
|
]
|
|
1698
1698
|
}
|
|
1699
1699
|
),
|
|
@@ -1711,7 +1711,7 @@ function za({
|
|
|
1711
1711
|
768: { perPage: 2, focus: "start", padding: { left: "24px", right: "24px" } },
|
|
1712
1712
|
1024: { perPage: 2.5, focus: "start", padding: { left: "24px", right: "24px" } }
|
|
1713
1713
|
},
|
|
1714
|
-
renderItem: (
|
|
1714
|
+
renderItem: (T) => /* @__PURE__ */ t(
|
|
1715
1715
|
"div",
|
|
1716
1716
|
{
|
|
1717
1717
|
style: {
|
|
@@ -1719,12 +1719,12 @@ function za({
|
|
|
1719
1719
|
marginTop: 16,
|
|
1720
1720
|
cursor: "pointer"
|
|
1721
1721
|
},
|
|
1722
|
-
onClick: () =>
|
|
1722
|
+
onClick: () => _(T.promotion),
|
|
1723
1723
|
children: /* @__PURE__ */ t(
|
|
1724
1724
|
"img",
|
|
1725
1725
|
{
|
|
1726
|
-
src: `https://olimpo.bet${
|
|
1727
|
-
alt:
|
|
1726
|
+
src: `https://olimpo.bet${T.image !== "" ? T.image : T.summary_image}`,
|
|
1727
|
+
alt: T.title,
|
|
1728
1728
|
style: {
|
|
1729
1729
|
width: "100%",
|
|
1730
1730
|
height: typeof window != "undefined" && window.innerWidth < 768 ? "80px" : "137px",
|
|
@@ -1735,10 +1735,10 @@ function za({
|
|
|
1735
1735
|
}
|
|
1736
1736
|
)
|
|
1737
1737
|
},
|
|
1738
|
-
`${
|
|
1738
|
+
`${T.title}-${T.image}`
|
|
1739
1739
|
),
|
|
1740
|
-
onMove: ({ isStart:
|
|
1741
|
-
u({ isStart:
|
|
1740
|
+
onMove: ({ isStart: T, isEnd: k }) => {
|
|
1741
|
+
u({ isStart: T, isEnd: k }), b({
|
|
1742
1742
|
element: "destacados_carousel_slide",
|
|
1743
1743
|
label: "OraculoSeccionDestacados - Slide Carousel",
|
|
1744
1744
|
target: "carousel",
|
|
@@ -1746,7 +1746,7 @@ function za({
|
|
|
1746
1746
|
module_id: 301,
|
|
1747
1747
|
metadata: {
|
|
1748
1748
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
1749
|
-
isStart:
|
|
1749
|
+
isStart: T,
|
|
1750
1750
|
isEnd: k
|
|
1751
1751
|
},
|
|
1752
1752
|
tags: { section: "OraculoSeccionDestacados" }
|
|
@@ -1787,7 +1787,7 @@ function qa({
|
|
|
1787
1787
|
};
|
|
1788
1788
|
}).sort((r, c) => r.orden != null && c.orden != null ? r.orden - c.orden : r._originalIndex - c._originalIndex),
|
|
1789
1789
|
[e]
|
|
1790
|
-
), u = !e || e.length === 0,
|
|
1790
|
+
), u = !e || e.length === 0, b = u ? Array.from({ length: 6 }) : s.slice(0, 6), h = (r) => {
|
|
1791
1791
|
i({
|
|
1792
1792
|
element: "top_juegos_card",
|
|
1793
1793
|
label: `Landing: ${l} - OraculoSeccionTopJuegos - Open game: ${String(r.machine || "unknown")}`,
|
|
@@ -1807,7 +1807,7 @@ function qa({
|
|
|
1807
1807
|
m == null || m(r, !1, "CASINO");
|
|
1808
1808
|
});
|
|
1809
1809
|
};
|
|
1810
|
-
return /* @__PURE__ */ t("section", { style: { width: "100%" }, children: /* @__PURE__ */
|
|
1810
|
+
return /* @__PURE__ */ t("section", { style: { width: "100%" }, children: /* @__PURE__ */ f(j, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
1811
1811
|
/* @__PURE__ */ t(se, { title: a, iconUrl: n, size: "md" }),
|
|
1812
1812
|
/* @__PURE__ */ t(
|
|
1813
1813
|
U,
|
|
@@ -1822,8 +1822,8 @@ function qa({
|
|
|
1822
1822
|
justifyItems: "center",
|
|
1823
1823
|
width: "100%"
|
|
1824
1824
|
},
|
|
1825
|
-
children:
|
|
1826
|
-
var m,
|
|
1825
|
+
children: b.map((r, c) => {
|
|
1826
|
+
var m, p;
|
|
1827
1827
|
return /* @__PURE__ */ t(
|
|
1828
1828
|
ca,
|
|
1829
1829
|
{
|
|
@@ -1831,10 +1831,10 @@ function qa({
|
|
|
1831
1831
|
orden: u ? c + 1 : r.orden,
|
|
1832
1832
|
loading: u,
|
|
1833
1833
|
onClick: u ? void 0 : () => {
|
|
1834
|
-
o == null || o(r),
|
|
1834
|
+
o == null || o(r), h(r);
|
|
1835
1835
|
}
|
|
1836
1836
|
},
|
|
1837
|
-
u ? `sk-${c}` : (
|
|
1837
|
+
u ? `sk-${c}` : (p = r.machine) != null ? p : `${c}`
|
|
1838
1838
|
);
|
|
1839
1839
|
})
|
|
1840
1840
|
}
|
|
@@ -1842,22 +1842,25 @@ function qa({
|
|
|
1842
1842
|
] }) });
|
|
1843
1843
|
}
|
|
1844
1844
|
const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommendations", Da = (e, a) => {
|
|
1845
|
-
var n, o, i, l, s, u,
|
|
1845
|
+
var n, o, i, l, s, u, b, h, r, c, m, p, _, I;
|
|
1846
1846
|
return {
|
|
1847
|
-
|
|
1848
|
-
id: (n = e.id) != null ? n : a,
|
|
1849
|
-
orden: (o = e.id) != null ? o : a,
|
|
1847
|
+
orden: Number(a),
|
|
1850
1848
|
machine: String(
|
|
1851
|
-
(
|
|
1849
|
+
(n = e.id) != null ? n : e.external_id
|
|
1852
1850
|
),
|
|
1853
|
-
logo: e.logo,
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1851
|
+
logo: (o = e.logo) != null ? o : "",
|
|
1852
|
+
name: (i = e.room_name) != null ? i : "",
|
|
1853
|
+
web_name: (l = e.product) != null ? l : "",
|
|
1854
|
+
provider: (s = e.service) != null ? s : "",
|
|
1855
|
+
sub_provider: (u = e.service) != null ? u : "",
|
|
1856
|
+
external_id: (b = e.external_id) != null ? b : "",
|
|
1857
|
+
type: (h = e.game_type) != null ? h : "",
|
|
1858
|
+
tags: (r = e.tags) != null ? r : "",
|
|
1859
|
+
lobby_tag: (c = e.lobby_tag) != null ? c : null,
|
|
1860
|
+
background: (m = e.background) != null ? m : "",
|
|
1861
|
+
rtp: (p = e.rtp) != null ? p : null,
|
|
1862
|
+
demo_allowed: (_ = e.demo_allowed) != null ? _ : !1,
|
|
1863
|
+
gaming_session_required: (I = e.gaming_session_required) != null ? I : !1
|
|
1861
1864
|
};
|
|
1862
1865
|
}, Wa = (e) => e ? !Array.isArray(e) && Array.isArray(e.recommendations) ? e.recommendations.filter(Boolean).map((a) => String(a)) : [] : [], Ga = () => {
|
|
1863
1866
|
var a, n, o;
|
|
@@ -1885,29 +1888,29 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1885
1888
|
}
|
|
1886
1889
|
s(!0);
|
|
1887
1890
|
try {
|
|
1888
|
-
const
|
|
1891
|
+
const h = await ja(n), r = Wa(h);
|
|
1889
1892
|
if (!r.length) {
|
|
1890
1893
|
u || i([]);
|
|
1891
1894
|
return;
|
|
1892
1895
|
}
|
|
1893
1896
|
const c = await Promise.allSettled(
|
|
1894
|
-
r.map(async (
|
|
1895
|
-
const
|
|
1896
|
-
`https://api.mktolimpo.com/api/machine/${
|
|
1897
|
+
r.map(async (p, _) => {
|
|
1898
|
+
const I = await fetch(
|
|
1899
|
+
`https://api.mktolimpo.com/api/machine/${p}`
|
|
1897
1900
|
);
|
|
1898
|
-
if (!
|
|
1899
|
-
throw new Error(`No se pudo obtener machine ${
|
|
1900
|
-
const C = await
|
|
1901
|
-
return Da(C,
|
|
1901
|
+
if (!I.ok)
|
|
1902
|
+
throw new Error(`No se pudo obtener machine ${p}`);
|
|
1903
|
+
const C = await I.json();
|
|
1904
|
+
return Da(C, _);
|
|
1902
1905
|
})
|
|
1903
1906
|
);
|
|
1904
1907
|
if (u) return;
|
|
1905
1908
|
const m = c.filter(
|
|
1906
|
-
(
|
|
1907
|
-
).map((
|
|
1909
|
+
(p) => p.status === "fulfilled"
|
|
1910
|
+
).map((p) => p.value);
|
|
1908
1911
|
i(m);
|
|
1909
|
-
} catch (
|
|
1910
|
-
console.error(`[usePersonalizeGameItems:${n}] error:`,
|
|
1912
|
+
} catch (h) {
|
|
1913
|
+
console.error(`[usePersonalizeGameItems:${n}] error:`, h), u || i([]);
|
|
1911
1914
|
} finally {
|
|
1912
1915
|
u || s(!1);
|
|
1913
1916
|
}
|
|
@@ -1940,13 +1943,13 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1940
1943
|
backgroundDesktopUrl: l = "",
|
|
1941
1944
|
onViewMore: s,
|
|
1942
1945
|
className: u,
|
|
1943
|
-
isPersonalize:
|
|
1946
|
+
isPersonalize: b = !1
|
|
1944
1947
|
}) => {
|
|
1945
|
-
const
|
|
1948
|
+
const h = Q(), r = ee(), c = Xa(b), { resolvedItems: m } = Za(
|
|
1946
1949
|
e,
|
|
1947
1950
|
c
|
|
1948
|
-
),
|
|
1949
|
-
|
|
1951
|
+
), p = c ? m : Array.isArray(e) ? e : [], _ = (C) => {
|
|
1952
|
+
h({
|
|
1950
1953
|
element: "live_casino_card",
|
|
1951
1954
|
label: `Landing: ${r} - OraculoSeccionCasinoEnVivo${c ? " - personalize" : ""} - Open game: ${String(C.machine || "unknown")}`,
|
|
1952
1955
|
target: String(C.machine || "unknown"),
|
|
@@ -1961,7 +1964,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1961
1964
|
section: "OraculoSeccionCasinoEnVivo"
|
|
1962
1965
|
}
|
|
1963
1966
|
});
|
|
1964
|
-
const
|
|
1967
|
+
const T = le("showIframe"), k = le("loadMachine");
|
|
1965
1968
|
if (!k) {
|
|
1966
1969
|
if (i) {
|
|
1967
1970
|
i(C);
|
|
@@ -1973,11 +1976,11 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1973
1976
|
);
|
|
1974
1977
|
return;
|
|
1975
1978
|
}
|
|
1976
|
-
|
|
1979
|
+
T == null || T(), typeof window != "undefined" && window.scrollTo({ top: 0, behavior: "smooth" }), requestAnimationFrame(() => {
|
|
1977
1980
|
k == null || k(C, !1, "casino_en_vivo");
|
|
1978
1981
|
});
|
|
1979
|
-
},
|
|
1980
|
-
|
|
1982
|
+
}, I = () => {
|
|
1983
|
+
h({
|
|
1981
1984
|
element: "casino_en_vivo_view_more",
|
|
1982
1985
|
label: `Landing: ${r} - OraculoSeccionCasinoEnVivo${c ? " - personalize" : ""} - Ver más`,
|
|
1983
1986
|
target: "https://www.olimpo.bet/casino-en-vivo",
|
|
@@ -1989,7 +1992,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1989
1992
|
tags: { section: "OraculoSeccionCasinoEnVivo" }
|
|
1990
1993
|
}), typeof globalThis != "undefined" && globalThis.location && (s ? s() : globalThis.location.assign("https://www.olimpo.bet/casino-en-vivo"));
|
|
1991
1994
|
};
|
|
1992
|
-
return /* @__PURE__ */
|
|
1995
|
+
return /* @__PURE__ */ f(
|
|
1993
1996
|
U,
|
|
1994
1997
|
{
|
|
1995
1998
|
className: u,
|
|
@@ -2027,7 +2030,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2027
2030
|
}
|
|
2028
2031
|
}
|
|
2029
2032
|
),
|
|
2030
|
-
/* @__PURE__ */
|
|
2033
|
+
/* @__PURE__ */ f(
|
|
2031
2034
|
U,
|
|
2032
2035
|
{
|
|
2033
2036
|
sx: {
|
|
@@ -2045,7 +2048,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2045
2048
|
textAlign: { xs: "center", md: "left" }
|
|
2046
2049
|
},
|
|
2047
2050
|
children: [
|
|
2048
|
-
/* @__PURE__ */
|
|
2051
|
+
/* @__PURE__ */ f(j, { spacing: 3, sx: { maxWidth: { md: 280 } }, children: [
|
|
2049
2052
|
/* @__PURE__ */ t(
|
|
2050
2053
|
ie,
|
|
2051
2054
|
{
|
|
@@ -2076,7 +2079,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2076
2079
|
{
|
|
2077
2080
|
variant: "primary",
|
|
2078
2081
|
size: "md",
|
|
2079
|
-
onClick:
|
|
2082
|
+
onClick: I,
|
|
2080
2083
|
children: "Ver más"
|
|
2081
2084
|
}
|
|
2082
2085
|
) })
|
|
@@ -2092,7 +2095,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2092
2095
|
py: { xs: 3, md: 0 },
|
|
2093
2096
|
alignItems: "center"
|
|
2094
2097
|
},
|
|
2095
|
-
children: (
|
|
2098
|
+
children: (p != null ? p : []).slice(0, 3).map((C, T) => {
|
|
2096
2099
|
var k;
|
|
2097
2100
|
return /* @__PURE__ */ t(
|
|
2098
2101
|
da,
|
|
@@ -2101,9 +2104,9 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2101
2104
|
provider: C.provider,
|
|
2102
2105
|
providerName: C.web_name,
|
|
2103
2106
|
machine: C.machine,
|
|
2104
|
-
onClick: () =>
|
|
2107
|
+
onClick: () => _(C)
|
|
2105
2108
|
},
|
|
2106
|
-
Ja(C,
|
|
2109
|
+
Ja(C, T)
|
|
2107
2110
|
);
|
|
2108
2111
|
})
|
|
2109
2112
|
}
|
|
@@ -2113,7 +2116,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2113
2116
|
{
|
|
2114
2117
|
variant: "primary",
|
|
2115
2118
|
size: "lg",
|
|
2116
|
-
onClick:
|
|
2119
|
+
onClick: I,
|
|
2117
2120
|
children: "Ver más"
|
|
2118
2121
|
}
|
|
2119
2122
|
) })
|
|
@@ -2138,10 +2141,10 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2138
2141
|
return (o = (n = e.orden) != null ? n : e.machine) != null ? o : a;
|
|
2139
2142
|
}, en = (e, a = !0, n = 1) => {
|
|
2140
2143
|
const o = e.map((s, u) => {
|
|
2141
|
-
var
|
|
2144
|
+
var b;
|
|
2142
2145
|
return {
|
|
2143
2146
|
id: ut(s, u),
|
|
2144
|
-
imageUrl: (
|
|
2147
|
+
imageUrl: (b = s.logo) != null ? b : "",
|
|
2145
2148
|
...s.background ? { background: s.background } : {}
|
|
2146
2149
|
};
|
|
2147
2150
|
});
|
|
@@ -2175,14 +2178,14 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2175
2178
|
gridSize: s = 1,
|
|
2176
2179
|
isPersonalize: u = !1
|
|
2177
2180
|
}) => {
|
|
2178
|
-
const
|
|
2181
|
+
const b = Q(), h = ee(), r = W(null), [c, m] = H({ isStart: !0, isEnd: !1 }), p = Qa(u), { resolvedItems: _, loading: I } = Ha(
|
|
2179
2182
|
e,
|
|
2180
|
-
|
|
2181
|
-
),
|
|
2182
|
-
var
|
|
2183
|
-
|
|
2183
|
+
p
|
|
2184
|
+
), C = p ? _ : Array.isArray(e) ? e : [], T = () => {
|
|
2185
|
+
var N;
|
|
2186
|
+
b({
|
|
2184
2187
|
element: "casino_prev",
|
|
2185
|
-
label: `Landing: ${
|
|
2188
|
+
label: `Landing: ${h} - OraculoSeccionCasino ${u ? " - personalize" : ""} - Anterior`,
|
|
2186
2189
|
target: "prev",
|
|
2187
2190
|
event_type: "click",
|
|
2188
2191
|
module_id: 301,
|
|
@@ -2190,12 +2193,12 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2190
2193
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2191
2194
|
},
|
|
2192
2195
|
tags: { section: "OraculoSeccionCasino" }
|
|
2193
|
-
}), (
|
|
2194
|
-
},
|
|
2195
|
-
var
|
|
2196
|
-
|
|
2196
|
+
}), (N = r.current) == null || N.prev();
|
|
2197
|
+
}, k = () => {
|
|
2198
|
+
var N;
|
|
2199
|
+
b({
|
|
2197
2200
|
element: "casino_next",
|
|
2198
|
-
label: `Landing: ${
|
|
2201
|
+
label: `Landing: ${h} - OraculoSeccionCasino ${u ? " - personalize" : ""} - Siguiente`,
|
|
2199
2202
|
target: "next",
|
|
2200
2203
|
event_type: "click",
|
|
2201
2204
|
module_id: 301,
|
|
@@ -2203,11 +2206,11 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2203
2206
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2204
2207
|
},
|
|
2205
2208
|
tags: { section: "OraculoSeccionCasino" }
|
|
2206
|
-
}), (
|
|
2207
|
-
},
|
|
2208
|
-
if (
|
|
2209
|
+
}), (N = r.current) == null || N.next();
|
|
2210
|
+
}, A = () => {
|
|
2211
|
+
if (b({
|
|
2209
2212
|
element: "casino_view_more",
|
|
2210
|
-
label: `Landing: ${
|
|
2213
|
+
label: `Landing: ${h} - OraculoSeccionCasino ${u ? " - personalize" : ""} - Ver más`,
|
|
2211
2214
|
target: "https://www.olimpo.bet/casino",
|
|
2212
2215
|
event_type: "click",
|
|
2213
2216
|
module_id: 301,
|
|
@@ -2220,15 +2223,15 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2220
2223
|
return;
|
|
2221
2224
|
}
|
|
2222
2225
|
typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/casino");
|
|
2223
|
-
},
|
|
2224
|
-
const
|
|
2225
|
-
id: `sk-${
|
|
2226
|
+
}, L = (N = !0, P = 4) => {
|
|
2227
|
+
const E = (R) => Array.from({ length: R }, (q, g) => ({
|
|
2228
|
+
id: `sk-${R}-${g}`,
|
|
2226
2229
|
imageUrl: ""
|
|
2227
|
-
})),
|
|
2228
|
-
return
|
|
2229
|
-
},
|
|
2230
|
-
return /* @__PURE__ */ t("section", { children: /* @__PURE__ */
|
|
2231
|
-
/* @__PURE__ */
|
|
2230
|
+
})), O = [];
|
|
2231
|
+
return N && O.push({ id: "mosaic-loading", kind: "mosaic", items: E(5) }), O.push({ id: "grid-loading", kind: "grid", items: E(P) }), O;
|
|
2232
|
+
}, M = p ? I : !Array.isArray(e) || e.length === 0, F = Ye("(max-width:768px)"), w = M ? L(l, s) : en(C, l, s);
|
|
2233
|
+
return /* @__PURE__ */ t("section", { children: /* @__PURE__ */ f(j, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
2234
|
+
/* @__PURE__ */ f(
|
|
2232
2235
|
U,
|
|
2233
2236
|
{
|
|
2234
2237
|
sx: {
|
|
@@ -2241,7 +2244,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2241
2244
|
},
|
|
2242
2245
|
children: [
|
|
2243
2246
|
/* @__PURE__ */ t(se, { title: a, iconUrl: n, size: "md" }),
|
|
2244
|
-
/* @__PURE__ */
|
|
2247
|
+
/* @__PURE__ */ f(U, { sx: { display: "flex", gap: 1, justifyContent: "flex-end" }, children: [
|
|
2245
2248
|
/* @__PURE__ */ t(
|
|
2246
2249
|
K,
|
|
2247
2250
|
{
|
|
@@ -2249,7 +2252,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2249
2252
|
variant: "secondary",
|
|
2250
2253
|
iconOnly: !0,
|
|
2251
2254
|
leftIcon: /* @__PURE__ */ t(et, {}),
|
|
2252
|
-
onClick:
|
|
2255
|
+
onClick: T,
|
|
2253
2256
|
disabled: c.isStart
|
|
2254
2257
|
}
|
|
2255
2258
|
),
|
|
@@ -2260,12 +2263,12 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2260
2263
|
variant: "secondary",
|
|
2261
2264
|
iconOnly: !0,
|
|
2262
2265
|
rightIcon: /* @__PURE__ */ t(tt, {}),
|
|
2263
|
-
onClick:
|
|
2266
|
+
onClick: k,
|
|
2264
2267
|
disabled: c.isEnd
|
|
2265
2268
|
}
|
|
2266
2269
|
)
|
|
2267
2270
|
] }),
|
|
2268
|
-
/* @__PURE__ */ t(U, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(K, { variant: "secondary", onClick:
|
|
2271
|
+
/* @__PURE__ */ t(U, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(K, { variant: "secondary", onClick: A, children: "Ver más" }) })
|
|
2269
2272
|
]
|
|
2270
2273
|
}
|
|
2271
2274
|
),
|
|
@@ -2273,12 +2276,12 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2273
2276
|
ce,
|
|
2274
2277
|
{
|
|
2275
2278
|
ref: r,
|
|
2276
|
-
items:
|
|
2279
|
+
items: w,
|
|
2277
2280
|
perPage: void 0,
|
|
2278
2281
|
gap: "16px",
|
|
2279
2282
|
enableHorizontalWheel: !0,
|
|
2280
2283
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
2281
|
-
showRightGradient: !
|
|
2284
|
+
showRightGradient: !F,
|
|
2282
2285
|
breakpoints: {
|
|
2283
2286
|
400: {
|
|
2284
2287
|
gap: "4px",
|
|
@@ -2296,38 +2299,38 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2296
2299
|
padding: { left: "24px", right: "24px" }
|
|
2297
2300
|
}
|
|
2298
2301
|
},
|
|
2299
|
-
renderItem: (
|
|
2302
|
+
renderItem: (N) => /* @__PURE__ */ t("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ t(
|
|
2300
2303
|
rt,
|
|
2301
2304
|
{
|
|
2302
|
-
items:
|
|
2303
|
-
layout:
|
|
2304
|
-
loading:
|
|
2305
|
-
onClick: (
|
|
2306
|
-
if (
|
|
2307
|
-
const
|
|
2308
|
-
(
|
|
2305
|
+
items: N.items,
|
|
2306
|
+
layout: N.kind === "mosaic" ? "mosaic" : "grid",
|
|
2307
|
+
loading: M,
|
|
2308
|
+
onClick: (P) => {
|
|
2309
|
+
if (M) return;
|
|
2310
|
+
const E = C.find(
|
|
2311
|
+
(q, g) => String(ut(q, g)) === String(P.id)
|
|
2309
2312
|
);
|
|
2310
|
-
if (!
|
|
2311
|
-
o == null || o(
|
|
2313
|
+
if (!E) return;
|
|
2314
|
+
o == null || o(E), b({
|
|
2312
2315
|
element: "casino_game_card",
|
|
2313
|
-
label: `Landing: ${
|
|
2314
|
-
target: String(
|
|
2316
|
+
label: `Landing: ${h} - OraculoSeccionCasino ${u ? " - personalize" : ""} - Game: ${String(E.machine || "unknown")}`,
|
|
2317
|
+
target: String(E.machine || "unknown"),
|
|
2315
2318
|
event_type: "click",
|
|
2316
2319
|
module_id: 301,
|
|
2317
2320
|
metadata: {
|
|
2318
2321
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2319
2322
|
},
|
|
2320
2323
|
tags: {
|
|
2321
|
-
game_name: String(
|
|
2324
|
+
game_name: String(E.machine || "unknown"),
|
|
2322
2325
|
section: a || "Casino"
|
|
2323
2326
|
}
|
|
2324
2327
|
});
|
|
2325
|
-
const
|
|
2326
|
-
|
|
2328
|
+
const O = le("showIframe"), R = le("loadMachine");
|
|
2329
|
+
O == null || O(), R == null || R(E, !1, "CASINO");
|
|
2327
2330
|
}
|
|
2328
2331
|
}
|
|
2329
2332
|
) }),
|
|
2330
|
-
onMove: ({ isStart:
|
|
2333
|
+
onMove: ({ isStart: N, isEnd: P }) => m({ isStart: N, isEnd: P })
|
|
2331
2334
|
}
|
|
2332
2335
|
)
|
|
2333
2336
|
] }) });
|
|
@@ -2346,10 +2349,10 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2346
2349
|
return (o = (n = e.orden) != null ? n : e.machine) != null ? o : a;
|
|
2347
2350
|
}, nn = (e, a = !0, n = 1) => {
|
|
2348
2351
|
const o = e.map((s, u) => {
|
|
2349
|
-
var
|
|
2352
|
+
var b;
|
|
2350
2353
|
return {
|
|
2351
2354
|
id: mt(s, u),
|
|
2352
|
-
imageUrl: (
|
|
2355
|
+
imageUrl: (b = s.logo) != null ? b : "",
|
|
2353
2356
|
...s.background ? { background: s.background } : {}
|
|
2354
2357
|
};
|
|
2355
2358
|
});
|
|
@@ -2397,14 +2400,14 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2397
2400
|
gridSize: s = 1,
|
|
2398
2401
|
isPersonalize: u = !1
|
|
2399
2402
|
}) => {
|
|
2400
|
-
const
|
|
2403
|
+
const b = W(null), [h, r] = H({ isStart: !0, isEnd: !1 }), c = Q(), m = ee(), p = an(u), { resolvedItems: _, loading: I } = Ka(
|
|
2401
2404
|
e,
|
|
2402
|
-
|
|
2403
|
-
),
|
|
2404
|
-
var
|
|
2405
|
+
p
|
|
2406
|
+
), C = p ? _ : Array.isArray(e) ? e : [], T = () => {
|
|
2407
|
+
var w;
|
|
2405
2408
|
c({
|
|
2406
2409
|
element: "virtuales_prev",
|
|
2407
|
-
label: `Landing: ${m} - OraculoSeccionVirtuales${
|
|
2410
|
+
label: `Landing: ${m} - OraculoSeccionVirtuales${p ? " - personalize" : ""} - Anterior`,
|
|
2408
2411
|
target: "prev",
|
|
2409
2412
|
event_type: "click",
|
|
2410
2413
|
module_id: 301,
|
|
@@ -2412,12 +2415,12 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2412
2415
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2413
2416
|
},
|
|
2414
2417
|
tags: { section: "OraculoSeccionVirtuales" }
|
|
2415
|
-
}), (
|
|
2416
|
-
},
|
|
2417
|
-
var
|
|
2418
|
+
}), (w = b.current) == null || w.prev();
|
|
2419
|
+
}, k = () => {
|
|
2420
|
+
var w;
|
|
2418
2421
|
c({
|
|
2419
2422
|
element: "virtuales_next",
|
|
2420
|
-
label: `Landing: ${m} - OraculoSeccionVirtuales${
|
|
2423
|
+
label: `Landing: ${m} - OraculoSeccionVirtuales${p ? " - personalize" : ""} - Siguiente`,
|
|
2421
2424
|
target: "next",
|
|
2422
2425
|
event_type: "click",
|
|
2423
2426
|
module_id: 301,
|
|
@@ -2425,11 +2428,11 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2425
2428
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2426
2429
|
},
|
|
2427
2430
|
tags: { section: "OraculoSeccionVirtuales" }
|
|
2428
|
-
}), (
|
|
2429
|
-
},
|
|
2431
|
+
}), (w = b.current) == null || w.next();
|
|
2432
|
+
}, A = () => {
|
|
2430
2433
|
if (c({
|
|
2431
2434
|
element: "virtuales_view_more",
|
|
2432
|
-
label: `Landing: ${m} - OraculoSeccionVirtuales${
|
|
2435
|
+
label: `Landing: ${m} - OraculoSeccionVirtuales${p ? " - personalize" : ""} - Ver más`,
|
|
2433
2436
|
target: "https://www.olimpo.bet/juegos-virtuales",
|
|
2434
2437
|
event_type: "click",
|
|
2435
2438
|
module_id: 301,
|
|
@@ -2442,9 +2445,9 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2442
2445
|
return;
|
|
2443
2446
|
}
|
|
2444
2447
|
typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/juegos-virtuales");
|
|
2445
|
-
},
|
|
2446
|
-
return /* @__PURE__ */ t("section", { children: /* @__PURE__ */
|
|
2447
|
-
/* @__PURE__ */
|
|
2448
|
+
}, L = p ? I : !Array.isArray(e) || e.length === 0, M = be("(max-width:768px)"), F = L ? on(l, s) : nn(C, l, s);
|
|
2449
|
+
return /* @__PURE__ */ t("section", { children: /* @__PURE__ */ f(j, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
2450
|
+
/* @__PURE__ */ f(
|
|
2448
2451
|
U,
|
|
2449
2452
|
{
|
|
2450
2453
|
sx: {
|
|
@@ -2457,7 +2460,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2457
2460
|
},
|
|
2458
2461
|
children: [
|
|
2459
2462
|
/* @__PURE__ */ t(se, { title: a, iconUrl: n, size: "md" }),
|
|
2460
|
-
/* @__PURE__ */
|
|
2463
|
+
/* @__PURE__ */ f(U, { sx: { display: "flex", gap: 1, justifyContent: "flex-end" }, children: [
|
|
2461
2464
|
/* @__PURE__ */ t(
|
|
2462
2465
|
K,
|
|
2463
2466
|
{
|
|
@@ -2465,8 +2468,8 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2465
2468
|
variant: "secondary",
|
|
2466
2469
|
iconOnly: !0,
|
|
2467
2470
|
leftIcon: /* @__PURE__ */ t(et, {}),
|
|
2468
|
-
onClick:
|
|
2469
|
-
disabled:
|
|
2471
|
+
onClick: T,
|
|
2472
|
+
disabled: h.isStart
|
|
2470
2473
|
}
|
|
2471
2474
|
),
|
|
2472
2475
|
/* @__PURE__ */ t(
|
|
@@ -2476,20 +2479,20 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2476
2479
|
variant: "secondary",
|
|
2477
2480
|
iconOnly: !0,
|
|
2478
2481
|
rightIcon: /* @__PURE__ */ t(tt, {}),
|
|
2479
|
-
onClick:
|
|
2480
|
-
disabled:
|
|
2482
|
+
onClick: k,
|
|
2483
|
+
disabled: h.isEnd
|
|
2481
2484
|
}
|
|
2482
2485
|
)
|
|
2483
2486
|
] }),
|
|
2484
|
-
/* @__PURE__ */ t(U, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(K, { variant: "secondary", onClick:
|
|
2487
|
+
/* @__PURE__ */ t(U, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(K, { variant: "secondary", onClick: A, children: "Ver más" }) })
|
|
2485
2488
|
]
|
|
2486
2489
|
}
|
|
2487
2490
|
),
|
|
2488
2491
|
/* @__PURE__ */ t(
|
|
2489
2492
|
ce,
|
|
2490
2493
|
{
|
|
2491
|
-
ref:
|
|
2492
|
-
items:
|
|
2494
|
+
ref: b,
|
|
2495
|
+
items: F,
|
|
2493
2496
|
perPage: void 0,
|
|
2494
2497
|
gap: "16px",
|
|
2495
2498
|
breakpoints: {
|
|
@@ -2510,50 +2513,50 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2510
2513
|
}
|
|
2511
2514
|
},
|
|
2512
2515
|
enableHorizontalWheel: !0,
|
|
2513
|
-
showRightGradient: !
|
|
2516
|
+
showRightGradient: !M,
|
|
2514
2517
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
2515
|
-
renderItem: (
|
|
2518
|
+
renderItem: (w) => /* @__PURE__ */ t("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ t(
|
|
2516
2519
|
rt,
|
|
2517
2520
|
{
|
|
2518
|
-
items:
|
|
2519
|
-
layout:
|
|
2520
|
-
loading:
|
|
2521
|
-
onClick: (
|
|
2522
|
-
if (
|
|
2523
|
-
const
|
|
2524
|
-
(
|
|
2521
|
+
items: w.items,
|
|
2522
|
+
layout: w.kind === "mosaic" ? "mosaic" : "grid",
|
|
2523
|
+
loading: L,
|
|
2524
|
+
onClick: (N) => {
|
|
2525
|
+
if (L) return;
|
|
2526
|
+
const P = C.find(
|
|
2527
|
+
(R, q) => String(mt(R, q)) === String(N.id)
|
|
2525
2528
|
);
|
|
2526
|
-
if (!
|
|
2529
|
+
if (!P) {
|
|
2527
2530
|
console.warn(
|
|
2528
2531
|
"[virtuales] no se encontró game para id:",
|
|
2529
|
-
|
|
2532
|
+
N.id
|
|
2530
2533
|
);
|
|
2531
2534
|
return;
|
|
2532
2535
|
}
|
|
2533
|
-
o == null || o(
|
|
2536
|
+
o == null || o(P), c({
|
|
2534
2537
|
element: "virtuales_game_card",
|
|
2535
|
-
label: `Landing: ${m} - OraculoSeccionVirtuales${
|
|
2536
|
-
target: String(
|
|
2538
|
+
label: `Landing: ${m} - OraculoSeccionVirtuales${p ? " - personalize" : ""} - Game: ${String(P.machine || "unknown")}`,
|
|
2539
|
+
target: String(P.machine || "unknown"),
|
|
2537
2540
|
event_type: "click",
|
|
2538
2541
|
module_id: 301,
|
|
2539
2542
|
metadata: {
|
|
2540
2543
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2541
2544
|
},
|
|
2542
2545
|
tags: {
|
|
2543
|
-
game_name: String(
|
|
2546
|
+
game_name: String(P.machine || "unknown"),
|
|
2544
2547
|
section: a || "Virtuales"
|
|
2545
2548
|
}
|
|
2546
2549
|
});
|
|
2547
|
-
const
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
+
const E = le("showIframe"), O = le("loadMachine");
|
|
2551
|
+
E == null || E(), O == null || O(
|
|
2552
|
+
P,
|
|
2550
2553
|
!1,
|
|
2551
|
-
|
|
2554
|
+
p ? "VIRTUALES_PERSONALIZE" : "VIRTUALES"
|
|
2552
2555
|
);
|
|
2553
2556
|
}
|
|
2554
2557
|
}
|
|
2555
2558
|
) }),
|
|
2556
|
-
onMove: ({ isStart:
|
|
2559
|
+
onMove: ({ isStart: w, isEnd: N }) => r({ isStart: w, isEnd: N })
|
|
2557
2560
|
}
|
|
2558
2561
|
)
|
|
2559
2562
|
] }) });
|
|
@@ -2595,24 +2598,24 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2595
2598
|
items: n,
|
|
2596
2599
|
backgroundImageUrl: o
|
|
2597
2600
|
}) => {
|
|
2598
|
-
const i = Q(), l = ee(), s = be("(max-width: 767px)"), u = n.length > 1,
|
|
2601
|
+
const i = Q(), l = ee(), s = be("(max-width: 767px)"), u = n.length > 1, b = W(null), h = W(null), r = W(!1), c = W(!1), [m, p] = H(0), [_, I] = H({ isStart: !0, isEnd: !1 });
|
|
2599
2602
|
J(() => {
|
|
2600
2603
|
const E = setTimeout(() => {
|
|
2601
2604
|
r.current = !0;
|
|
2602
2605
|
}, 500);
|
|
2603
2606
|
return () => clearTimeout(E);
|
|
2604
2607
|
}, []);
|
|
2605
|
-
const C = W(
|
|
2608
|
+
const C = W(_);
|
|
2606
2609
|
J(() => {
|
|
2607
|
-
C.current =
|
|
2608
|
-
}, [
|
|
2609
|
-
const
|
|
2610
|
+
C.current = _;
|
|
2611
|
+
}, [_]);
|
|
2612
|
+
const T = W(!1), k = W(null), A = n == null ? void 0 : n[m], L = te(
|
|
2610
2613
|
() => {
|
|
2611
2614
|
var E, O;
|
|
2612
2615
|
return (O = (E = A == null ? void 0 : A.backgroundImageUrl) != null ? E : o) != null ? O : "";
|
|
2613
2616
|
},
|
|
2614
2617
|
[A, o]
|
|
2615
|
-
), M = ln(
|
|
2618
|
+
), M = ln(L), F = !n || n.length === 0, w = (E, O) => {
|
|
2616
2619
|
i({
|
|
2617
2620
|
element: "welcome_banner_button",
|
|
2618
2621
|
label: `OraculoSeccionBonoBienvenida - Banner button click: ${E.title || "OraculoSeccionBonoBienvenida - Banner " + (O + 1)}`,
|
|
@@ -2629,7 +2632,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2629
2632
|
button_text: E.buttonText || "no_text"
|
|
2630
2633
|
}
|
|
2631
2634
|
}), E.onButtonClick && E.onButtonClick();
|
|
2632
|
-
},
|
|
2635
|
+
}, N = (E) => {
|
|
2633
2636
|
if (!r.current) return;
|
|
2634
2637
|
if (c.current) {
|
|
2635
2638
|
c.current = !1;
|
|
@@ -2655,26 +2658,26 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2655
2658
|
});
|
|
2656
2659
|
};
|
|
2657
2660
|
J(() => {
|
|
2658
|
-
const E =
|
|
2661
|
+
const E = h.current;
|
|
2659
2662
|
if (!E) return;
|
|
2660
|
-
const O = 6,
|
|
2661
|
-
var
|
|
2662
|
-
if (
|
|
2663
|
-
const
|
|
2664
|
-
if (Math.abs(
|
|
2665
|
-
const d =
|
|
2666
|
-
d && C.current.isEnd || !d && C.current.isStart || (
|
|
2667
|
-
|
|
2668
|
-
},
|
|
2663
|
+
const O = 6, R = 380, q = (g) => {
|
|
2664
|
+
var y, S;
|
|
2665
|
+
if (F || g.ctrlKey || T.current) return;
|
|
2666
|
+
const z = g.deltaX, $ = g.deltaY;
|
|
2667
|
+
if (Math.abs(z) <= Math.abs($) || Math.abs(z) < O) return;
|
|
2668
|
+
const d = z > 0;
|
|
2669
|
+
d && C.current.isEnd || !d && C.current.isStart || (g.preventDefault(), T.current = !0, d ? (y = b.current) == null || y.next() : (S = b.current) == null || S.prev(), k.current && window.clearTimeout(k.current), k.current = window.setTimeout(() => {
|
|
2670
|
+
T.current = !1;
|
|
2671
|
+
}, R));
|
|
2669
2672
|
};
|
|
2670
2673
|
return E.addEventListener("wheel", q, { passive: !1 }), () => {
|
|
2671
2674
|
E.removeEventListener("wheel", q), k.current && window.clearTimeout(k.current);
|
|
2672
2675
|
};
|
|
2673
|
-
}, [
|
|
2674
|
-
const
|
|
2675
|
-
var
|
|
2676
|
-
const q = (
|
|
2677
|
-
return O ? /* @__PURE__ */
|
|
2676
|
+
}, [F]);
|
|
2677
|
+
const P = (E, O, R) => {
|
|
2678
|
+
var z, $;
|
|
2679
|
+
const q = (z = E.headline) != null ? z : e, g = ($ = E.headline2) != null ? $ : a;
|
|
2680
|
+
return O ? /* @__PURE__ */ f(
|
|
2678
2681
|
U,
|
|
2679
2682
|
{
|
|
2680
2683
|
sx: {
|
|
@@ -2687,7 +2690,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2687
2690
|
columnGap: 6
|
|
2688
2691
|
},
|
|
2689
2692
|
children: [
|
|
2690
|
-
(q ||
|
|
2693
|
+
(q || g) && /* @__PURE__ */ t(
|
|
2691
2694
|
U,
|
|
2692
2695
|
{
|
|
2693
2696
|
sx: {
|
|
@@ -2696,11 +2699,11 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2696
2699
|
justifyContent: "flex-start",
|
|
2697
2700
|
minHeight: "100%"
|
|
2698
2701
|
},
|
|
2699
|
-
children: /* @__PURE__ */
|
|
2702
|
+
children: /* @__PURE__ */ f(U, { sx: { ...We, textAlign: "left", mb: 0 }, children: [
|
|
2700
2703
|
q && /* @__PURE__ */ t(ie, { component: "span", sx: Ge, children: q }),
|
|
2701
|
-
|
|
2704
|
+
g && /* @__PURE__ */ f(ae, { children: [
|
|
2702
2705
|
/* @__PURE__ */ t("br", {}),
|
|
2703
|
-
/* @__PURE__ */ t(ie, { component: "span", sx: je, children:
|
|
2706
|
+
/* @__PURE__ */ t(ie, { component: "span", sx: je, children: g })
|
|
2704
2707
|
] })
|
|
2705
2708
|
] })
|
|
2706
2709
|
}
|
|
@@ -2709,35 +2712,35 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2709
2712
|
qe,
|
|
2710
2713
|
{
|
|
2711
2714
|
...E,
|
|
2712
|
-
onButtonClick: () =>
|
|
2715
|
+
onButtonClick: () => w(E, R),
|
|
2713
2716
|
variant: "large"
|
|
2714
2717
|
}
|
|
2715
2718
|
) }) })
|
|
2716
2719
|
]
|
|
2717
2720
|
}
|
|
2718
|
-
) : /* @__PURE__ */
|
|
2719
|
-
(q ||
|
|
2721
|
+
) : /* @__PURE__ */ f(U, { sx: { textAlign: "center" }, children: [
|
|
2722
|
+
(q || g) && /* @__PURE__ */ f(U, { sx: We, children: [
|
|
2720
2723
|
q && /* @__PURE__ */ t(ie, { component: "span", sx: Ge, children: q }),
|
|
2721
|
-
|
|
2724
|
+
g && /* @__PURE__ */ f(ae, { children: [
|
|
2722
2725
|
/* @__PURE__ */ t("br", {}),
|
|
2723
|
-
/* @__PURE__ */ t(ie, { component: "span", sx: je, children:
|
|
2726
|
+
/* @__PURE__ */ t(ie, { component: "span", sx: je, children: g })
|
|
2724
2727
|
] })
|
|
2725
2728
|
] }),
|
|
2726
2729
|
/* @__PURE__ */ t(U, { sx: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(
|
|
2727
2730
|
qe,
|
|
2728
2731
|
{
|
|
2729
2732
|
...E,
|
|
2730
|
-
onButtonClick: () =>
|
|
2733
|
+
onButtonClick: () => w(E, R),
|
|
2731
2734
|
variant: "small"
|
|
2732
2735
|
}
|
|
2733
2736
|
) })
|
|
2734
2737
|
] });
|
|
2735
2738
|
};
|
|
2736
|
-
return /* @__PURE__ */
|
|
2737
|
-
/* @__PURE__ */ t("div", { ref:
|
|
2739
|
+
return /* @__PURE__ */ f(U, { component: "section", sx: M, children: [
|
|
2740
|
+
/* @__PURE__ */ t("div", { ref: h, style: { width: "100%" }, children: /* @__PURE__ */ t(
|
|
2738
2741
|
ce,
|
|
2739
2742
|
{
|
|
2740
|
-
ref:
|
|
2743
|
+
ref: b,
|
|
2741
2744
|
items: n,
|
|
2742
2745
|
perPage: 1,
|
|
2743
2746
|
gap: "0px",
|
|
@@ -2751,9 +2754,9 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2751
2754
|
// arrows: false,
|
|
2752
2755
|
// drag: true,
|
|
2753
2756
|
},
|
|
2754
|
-
renderItem: (E, O) => /* @__PURE__ */ t(U, { sx: { width: "100%" }, children:
|
|
2755
|
-
onMove: ({ index: E, isStart: O, isEnd:
|
|
2756
|
-
|
|
2757
|
+
renderItem: (E, O) => /* @__PURE__ */ t(U, { sx: { width: "100%" }, children: P(E, !s, O) }),
|
|
2758
|
+
onMove: ({ index: E, isStart: O, isEnd: R }) => {
|
|
2759
|
+
p(E), typeof O == "boolean" && typeof R == "boolean" && I({ isStart: O, isEnd: R }), N(E);
|
|
2757
2760
|
}
|
|
2758
2761
|
}
|
|
2759
2762
|
) }),
|
|
@@ -2778,7 +2781,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2778
2781
|
tags: {
|
|
2779
2782
|
navigation_type: "dot_click"
|
|
2780
2783
|
}
|
|
2781
|
-
}),
|
|
2784
|
+
}), p(E), (O = b.current) == null || O.go(E);
|
|
2782
2785
|
}
|
|
2783
2786
|
}
|
|
2784
2787
|
) })
|
|
@@ -2790,12 +2793,12 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2790
2793
|
selectedIndex: o = 0,
|
|
2791
2794
|
ariaLabel: i
|
|
2792
2795
|
}) => {
|
|
2793
|
-
const l = W(null), s = W(null), u = Q(),
|
|
2796
|
+
const l = W(null), s = W(null), u = Q(), b = ee();
|
|
2794
2797
|
if (!n) return null;
|
|
2795
|
-
const
|
|
2798
|
+
const h = () => {
|
|
2796
2799
|
u({
|
|
2797
2800
|
element: "club_olimpo_button",
|
|
2798
|
-
label: `Landing: ${
|
|
2801
|
+
label: `Landing: ${b} - OraculoSeccionClubOlimpo - Click: Club Olimpo`,
|
|
2799
2802
|
target: "https://www.olimpo.bet/conoce-club-olimpo",
|
|
2800
2803
|
event_type: "click",
|
|
2801
2804
|
module_id: 301,
|
|
@@ -2807,13 +2810,13 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2807
2810
|
}, r = Array.isArray(n) ? n[o] : n;
|
|
2808
2811
|
yt(() => {
|
|
2809
2812
|
if (!l.current || !s.current || typeof ResizeObserver == "undefined") return;
|
|
2810
|
-
const m = l.current,
|
|
2813
|
+
const m = l.current, p = s.current, _ = () => {
|
|
2811
2814
|
m.style.setProperty(
|
|
2812
2815
|
"--orc-co-bottomH",
|
|
2813
|
-
`${
|
|
2816
|
+
`${p.offsetHeight + 16}px`
|
|
2814
2817
|
);
|
|
2815
|
-
},
|
|
2816
|
-
return
|
|
2818
|
+
}, I = new ResizeObserver(_);
|
|
2819
|
+
return I.observe(p), _(), () => I.disconnect();
|
|
2817
2820
|
}, []);
|
|
2818
2821
|
const c = [
|
|
2819
2822
|
"orc-co-wrap",
|
|
@@ -2830,7 +2833,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2830
2833
|
ua,
|
|
2831
2834
|
{
|
|
2832
2835
|
text: r.text,
|
|
2833
|
-
onClick:
|
|
2836
|
+
onClick: h,
|
|
2834
2837
|
imgAlt: r.imgAlt,
|
|
2835
2838
|
buttonLabel: r.buttonLabel,
|
|
2836
2839
|
imgSrcMobile: r.imgMobile,
|
|
@@ -2853,21 +2856,21 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2853
2856
|
function pn(e, a, n) {
|
|
2854
2857
|
return n ? n.map((o) => {
|
|
2855
2858
|
var r, c;
|
|
2856
|
-
const i = o.prePackCouponRows.flatMap((m) => mn(m).map((
|
|
2859
|
+
const i = o.prePackCouponRows.flatMap((m) => mn(m).map((p) => ({ eventId: m.eventId, outcomeId: p }))), l = new Set(i.map((m) => m.eventId)), s = new Set(i.map((m) => m.outcomeId)), u = new Map(i.map((m, p) => [m.outcomeId, p])), b = {};
|
|
2857
2860
|
for (const m of a) {
|
|
2858
2861
|
if (!l.has(m.eventId)) continue;
|
|
2859
|
-
const
|
|
2860
|
-
|
|
2862
|
+
const p = m.outcomes.filter((_) => s.has(_.id)).map((_) => ({ ..._, position: u.get(_.id) }));
|
|
2863
|
+
p.length && ((c = b[r = m.eventId]) != null || (b[r] = []), b[m.eventId].push({ ...m, outcomes: p }));
|
|
2861
2864
|
}
|
|
2862
|
-
const
|
|
2863
|
-
var
|
|
2864
|
-
return { ...m, betoffers: (
|
|
2865
|
+
const h = e.filter((m) => l.has(m.id)).map((m) => {
|
|
2866
|
+
var p;
|
|
2867
|
+
return { ...m, betoffers: (p = b[m.id]) != null ? p : [] };
|
|
2865
2868
|
});
|
|
2866
2869
|
return {
|
|
2867
2870
|
couponId: o.id,
|
|
2868
2871
|
status: o.status,
|
|
2869
2872
|
combinadoTotal: fn(o.prePackCouponRows),
|
|
2870
|
-
events:
|
|
2873
|
+
events: h
|
|
2871
2874
|
};
|
|
2872
2875
|
}) : [];
|
|
2873
2876
|
}
|
|
@@ -2888,8 +2891,8 @@ function hn({
|
|
|
2888
2891
|
onViewMore: o,
|
|
2889
2892
|
className: i = ""
|
|
2890
2893
|
}) {
|
|
2891
|
-
const l = Q(), s = ee(), u = W(null), [
|
|
2892
|
-
var
|
|
2894
|
+
const l = Q(), s = ee(), u = W(null), [b, h] = H({ isStart: !0, isEnd: !1 }), [r, c] = H([]), m = "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 = () => {
|
|
2895
|
+
var L;
|
|
2893
2896
|
l({
|
|
2894
2897
|
element: "evento_combinadas_prev",
|
|
2895
2898
|
label: `Landing: ${s} - OraculoSeccionEventoCombinadas - Click: Anterior`,
|
|
@@ -2899,9 +2902,9 @@ function hn({
|
|
|
2899
2902
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2900
2903
|
},
|
|
2901
2904
|
tags: { section: "OraculoSeccionEventoCombinadas" }
|
|
2902
|
-
}), (
|
|
2903
|
-
},
|
|
2904
|
-
var
|
|
2905
|
+
}), (L = u.current) == null || L.prev();
|
|
2906
|
+
}, _ = () => {
|
|
2907
|
+
var L;
|
|
2905
2908
|
l({
|
|
2906
2909
|
element: "evento_combinadas_next",
|
|
2907
2910
|
label: `Landing: ${s} - OraculoSeccionEventoCombinadas - Click: Siguiente`,
|
|
@@ -2911,8 +2914,8 @@ function hn({
|
|
|
2911
2914
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2912
2915
|
},
|
|
2913
2916
|
tags: { section: "OraculoSeccionEventoCombinadas" }
|
|
2914
|
-
}), (
|
|
2915
|
-
},
|
|
2917
|
+
}), (L = u.current) == null || L.next();
|
|
2918
|
+
}, I = () => {
|
|
2916
2919
|
l({
|
|
2917
2920
|
element: "evento_combinadas_ver_mas",
|
|
2918
2921
|
label: `Landing: ${s} - OraculoSeccionEventoCombinadas - Click: Ver más`,
|
|
@@ -2923,23 +2926,23 @@ function hn({
|
|
|
2923
2926
|
},
|
|
2924
2927
|
tags: { section: "OraculoSeccionEventoCombinadas" }
|
|
2925
2928
|
}), Sa();
|
|
2926
|
-
}, C = te(() => r.filter((
|
|
2927
|
-
async function
|
|
2928
|
-
var
|
|
2929
|
+
}, C = te(() => r.filter((L) => L.combinadoTotal !== null), [r]);
|
|
2930
|
+
async function T() {
|
|
2931
|
+
var L, M, F;
|
|
2929
2932
|
try {
|
|
2930
|
-
const
|
|
2931
|
-
if (!
|
|
2933
|
+
const N = await (await fetch(m)).json(), P = (F = (M = (L = N == null ? void 0 : N.group) == null ? void 0 : L.groups) == null ? void 0 : M[0]) == null ? void 0 : F.id;
|
|
2934
|
+
if (!P) {
|
|
2932
2935
|
console.error("Could not extract group ID");
|
|
2933
2936
|
return;
|
|
2934
2937
|
}
|
|
2935
|
-
const E = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${
|
|
2936
|
-
c(pn(
|
|
2937
|
-
} catch (
|
|
2938
|
-
console.error("loadDataEventSpecial error:",
|
|
2938
|
+
const E = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${P}.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764283566783&prePackCouponTags=CUSTOM`, R = await (await fetch(E)).json();
|
|
2939
|
+
c(pn(R.events, R.betOffers, R.prePackCoupons));
|
|
2940
|
+
} catch (w) {
|
|
2941
|
+
console.error("loadDataEventSpecial error:", w);
|
|
2939
2942
|
}
|
|
2940
2943
|
}
|
|
2941
2944
|
J(() => {
|
|
2942
|
-
|
|
2945
|
+
T();
|
|
2943
2946
|
}, []);
|
|
2944
2947
|
const k = i || void 0, A = be("(max-width:768px)");
|
|
2945
2948
|
return C.length === 0 ? null : /* @__PURE__ */ t("section", { className: k, style: {
|
|
@@ -2947,11 +2950,11 @@ function hn({
|
|
|
2947
2950
|
// paddingRight: 16,
|
|
2948
2951
|
width: "100%",
|
|
2949
2952
|
boxSizing: "border-box"
|
|
2950
|
-
}, children: /* @__PURE__ */
|
|
2951
|
-
/* @__PURE__ */ t("div", { className: He.padding, children: /* @__PURE__ */
|
|
2953
|
+
}, children: /* @__PURE__ */ f(j, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
2954
|
+
/* @__PURE__ */ t("div", { className: He.padding, children: /* @__PURE__ */ f(re, { spacing: 1.5, columns: "1fr auto ", justify: "start", children: [
|
|
2952
2955
|
/* @__PURE__ */ t(se, { title: a, iconUrl: n, size: "md" }),
|
|
2953
|
-
/* @__PURE__ */
|
|
2954
|
-
/* @__PURE__ */
|
|
2956
|
+
/* @__PURE__ */ f("div", { className: He.controls, children: [
|
|
2957
|
+
/* @__PURE__ */ f(re, { spacing: 1, columns: "auto auto", children: [
|
|
2955
2958
|
/* @__PURE__ */ t(
|
|
2956
2959
|
K,
|
|
2957
2960
|
{
|
|
@@ -2959,8 +2962,8 @@ function hn({
|
|
|
2959
2962
|
variant: "secondary",
|
|
2960
2963
|
iconOnly: !0,
|
|
2961
2964
|
leftIcon: /* @__PURE__ */ t(Te, {}),
|
|
2962
|
-
onClick:
|
|
2963
|
-
disabled:
|
|
2965
|
+
onClick: p,
|
|
2966
|
+
disabled: b.isStart
|
|
2964
2967
|
}
|
|
2965
2968
|
),
|
|
2966
2969
|
/* @__PURE__ */ t(
|
|
@@ -2970,12 +2973,12 @@ function hn({
|
|
|
2970
2973
|
variant: "secondary",
|
|
2971
2974
|
iconOnly: !0,
|
|
2972
2975
|
rightIcon: /* @__PURE__ */ t(ke, {}),
|
|
2973
|
-
onClick:
|
|
2974
|
-
disabled:
|
|
2976
|
+
onClick: _,
|
|
2977
|
+
disabled: b.isEnd
|
|
2975
2978
|
}
|
|
2976
2979
|
)
|
|
2977
2980
|
] }),
|
|
2978
|
-
/* @__PURE__ */ t(K, { variant: "secondary", onClick:
|
|
2981
|
+
/* @__PURE__ */ t(K, { variant: "secondary", onClick: I, children: "Ver más" })
|
|
2979
2982
|
] })
|
|
2980
2983
|
] }) }),
|
|
2981
2984
|
/* @__PURE__ */ t(
|
|
@@ -2992,8 +2995,8 @@ function hn({
|
|
|
2992
2995
|
breakpoints: {
|
|
2993
2996
|
768: { perPage: 1.2, gap: "12px", padding: { left: "24px", right: "24px" } }
|
|
2994
2997
|
},
|
|
2995
|
-
renderItem: (
|
|
2996
|
-
onMove: ({ isStart:
|
|
2998
|
+
renderItem: (L) => /* @__PURE__ */ t(gn, { coupon: L }),
|
|
2999
|
+
onMove: ({ isStart: L, isEnd: M }) => h({ isStart: L, isEnd: M })
|
|
2997
3000
|
}
|
|
2998
3001
|
)
|
|
2999
3002
|
] }) });
|
|
@@ -3003,27 +3006,27 @@ function bn({}) {
|
|
|
3003
3006
|
"div",
|
|
3004
3007
|
{
|
|
3005
3008
|
className: Se.cardWrapper,
|
|
3006
|
-
children: /* @__PURE__ */
|
|
3007
|
-
/* @__PURE__ */
|
|
3009
|
+
children: /* @__PURE__ */ f(j, { direction: "column", spacing: 1, children: [
|
|
3010
|
+
/* @__PURE__ */ f(j, { spacing: 1, direction: "row", children: [
|
|
3008
3011
|
/* @__PURE__ */ t(G, { variant: "text", width: "60%", height: 24 }),
|
|
3009
3012
|
/* @__PURE__ */ t(G, { variant: "text", width: "39%", height: 24 })
|
|
3010
3013
|
] }),
|
|
3011
|
-
/* @__PURE__ */
|
|
3014
|
+
/* @__PURE__ */ f(j, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
3012
3015
|
/* @__PURE__ */ t(G, { variant: "circular", width: 32, height: 40 }),
|
|
3013
3016
|
/* @__PURE__ */ t(G, { variant: "text", width: 40, height: 40 }),
|
|
3014
3017
|
/* @__PURE__ */ t(G, { variant: "circular", width: 32, height: 40 })
|
|
3015
3018
|
] }),
|
|
3016
|
-
/* @__PURE__ */
|
|
3019
|
+
/* @__PURE__ */ f(j, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
3017
3020
|
/* @__PURE__ */ t(G, { variant: "text", width: 32, height: 16 }),
|
|
3018
3021
|
/* @__PURE__ */ t(G, { variant: "text", width: 40, height: 16 }),
|
|
3019
3022
|
/* @__PURE__ */ t(G, { variant: "text", width: 32, height: 16 })
|
|
3020
3023
|
] }),
|
|
3021
|
-
/* @__PURE__ */
|
|
3024
|
+
/* @__PURE__ */ f(j, { spacing: 2, direction: "row", children: [
|
|
3022
3025
|
/* @__PURE__ */ t(G, { variant: "rounded", width: 88, height: 16 }),
|
|
3023
3026
|
/* @__PURE__ */ t(G, { variant: "rounded", width: 88, height: 16 }),
|
|
3024
3027
|
/* @__PURE__ */ t(G, { variant: "rounded", width: 88, height: 16 })
|
|
3025
3028
|
] }),
|
|
3026
|
-
/* @__PURE__ */
|
|
3029
|
+
/* @__PURE__ */ f(j, { spacing: 2, direction: "row", children: [
|
|
3027
3030
|
/* @__PURE__ */ t(G, { variant: "rounded", width: 88, height: 32 }),
|
|
3028
3031
|
/* @__PURE__ */ t(G, { variant: "rounded", width: 88, height: 32 }),
|
|
3029
3032
|
/* @__PURE__ */ t(G, { variant: "rounded", width: 88, height: 32 })
|
|
@@ -3056,11 +3059,11 @@ function Cn({
|
|
|
3056
3059
|
onViewMore: o,
|
|
3057
3060
|
className: i = ""
|
|
3058
3061
|
}) {
|
|
3059
|
-
const l = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football/all/all/all/in-play.json?channel_id=3&channel_id=3&client_id=200&client_id=200&competitionId=undefined&lang=es_PE&lang=es_PE&market=PE&market=PE&useCombined=true&useCombinedLive=true", s = W(null), [u,
|
|
3062
|
+
const l = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football/all/all/all/in-play.json?channel_id=3&channel_id=3&client_id=200&client_id=200&competitionId=undefined&lang=es_PE&lang=es_PE&market=PE&market=PE&useCombined=true&useCombinedLive=true", s = W(null), [u, b] = H({ isStart: !0, isEnd: !1 }), [h, r] = H(null), [c, m] = H({}), [p, _] = H({ start: null, end: null }), I = W(!1), [C, T] = H(null), k = W(!1), A = Q(), L = ee(), M = W(/* @__PURE__ */ new Map()), F = st(p, 300), w = W(/* @__PURE__ */ new Set()), N = () => {
|
|
3060
3063
|
var $;
|
|
3061
3064
|
A({
|
|
3062
3065
|
element: "evento_en_vivo_prev",
|
|
3063
|
-
label: `Landing: ${
|
|
3066
|
+
label: `Landing: ${L} - OraculoSeccionEventoEnVivo - Anterior`,
|
|
3064
3067
|
target: "prev",
|
|
3065
3068
|
event_type: "click",
|
|
3066
3069
|
module_id: 301,
|
|
@@ -3069,11 +3072,11 @@ function Cn({
|
|
|
3069
3072
|
},
|
|
3070
3073
|
tags: { section: "OraculoSeccionEventoEnVivo" }
|
|
3071
3074
|
}), ($ = s.current) == null || $.prev();
|
|
3072
|
-
},
|
|
3075
|
+
}, P = () => {
|
|
3073
3076
|
var $;
|
|
3074
3077
|
A({
|
|
3075
3078
|
element: "evento_en_vivo_next",
|
|
3076
|
-
label: `Landing: ${
|
|
3079
|
+
label: `Landing: ${L} - OraculoSeccionEventoEnVivo - Siguiente`,
|
|
3077
3080
|
target: "next",
|
|
3078
3081
|
event_type: "click",
|
|
3079
3082
|
module_id: 301,
|
|
@@ -3085,7 +3088,7 @@ function Cn({
|
|
|
3085
3088
|
}, E = () => {
|
|
3086
3089
|
A({
|
|
3087
3090
|
element: "evento_en_vivo_view_more",
|
|
3088
|
-
label: `Landing: ${
|
|
3091
|
+
label: `Landing: ${L} - OraculoSeccionEventoEnVivo - Ver más`,
|
|
3089
3092
|
target: "ver_mas",
|
|
3090
3093
|
event_type: "click",
|
|
3091
3094
|
module_id: 301,
|
|
@@ -3100,7 +3103,7 @@ function Cn({
|
|
|
3100
3103
|
if (!k.current) {
|
|
3101
3104
|
k.current = !0;
|
|
3102
3105
|
try {
|
|
3103
|
-
const
|
|
3106
|
+
const x = await (await fetch("https://api.mktolimpo.com/api/kambi/eventos/orden")).json(), B = (($ = x == null ? void 0 : x.data) == null ? void 0 : $.event_ids) || [], V = /* @__PURE__ */ new Map();
|
|
3104
3107
|
B.forEach((D, Z) => V.set(String(D), Z)), M.current = V;
|
|
3105
3108
|
} catch (v) {
|
|
3106
3109
|
console.error("Order fetch failed, using default sorting", v);
|
|
@@ -3108,12 +3111,12 @@ function Cn({
|
|
|
3108
3111
|
}
|
|
3109
3112
|
const d = await fetch(l);
|
|
3110
3113
|
if (!d.ok) throw new Error("Failed to fetch live events");
|
|
3111
|
-
const
|
|
3114
|
+
const y = await d.json(), S = wn(y.events);
|
|
3112
3115
|
if (M.current.size === 0)
|
|
3113
3116
|
r(S);
|
|
3114
3117
|
else {
|
|
3115
|
-
const v = [...S].sort((
|
|
3116
|
-
const V = M.current.get(String(
|
|
3118
|
+
const v = [...S].sort((x, B) => {
|
|
3119
|
+
const V = M.current.get(String(x.event.id)), D = M.current.get(String(B.event.id));
|
|
3117
3120
|
return (V !== void 0 ? V : 1 / 0) - (D !== void 0 ? D : 1 / 0);
|
|
3118
3121
|
});
|
|
3119
3122
|
r(v);
|
|
@@ -3127,37 +3130,37 @@ function Cn({
|
|
|
3127
3130
|
const $ = setInterval(O, 2e4);
|
|
3128
3131
|
return () => clearInterval($);
|
|
3129
3132
|
}, [O]), J(() => {
|
|
3130
|
-
if (
|
|
3133
|
+
if (F.start === null || F.end === null || !(h != null && h.length) || I.current)
|
|
3131
3134
|
return;
|
|
3132
|
-
const $ = 3, d = Math.max(0,
|
|
3133
|
-
var
|
|
3134
|
-
return (
|
|
3135
|
-
}).filter((v) => v && !
|
|
3136
|
-
S.length !== 0 && (S.forEach((v) =>
|
|
3137
|
-
v != null && v.events && m((
|
|
3138
|
-
...
|
|
3135
|
+
const $ = 3, d = Math.max(0, F.start - $), y = Math.min(h.length - 1, F.end + $), S = h.slice(d, y + 1).map((v) => {
|
|
3136
|
+
var x;
|
|
3137
|
+
return (x = v == null ? void 0 : v.event) == null ? void 0 : x.id;
|
|
3138
|
+
}).filter((v) => v && !w.current.has(v));
|
|
3139
|
+
S.length !== 0 && (S.forEach((v) => w.current.add(v)), I.current = !0, lt(S).then((v) => {
|
|
3140
|
+
v != null && v.events && m((x) => ({
|
|
3141
|
+
...x,
|
|
3139
3142
|
...v.events
|
|
3140
3143
|
}));
|
|
3141
3144
|
}).catch((v) => {
|
|
3142
|
-
console.error("Jersey fetch error", v), S.forEach((
|
|
3145
|
+
console.error("Jersey fetch error", v), S.forEach((x) => w.current.delete(x));
|
|
3143
3146
|
}).finally(() => {
|
|
3144
|
-
|
|
3147
|
+
I.current = !1;
|
|
3145
3148
|
}));
|
|
3146
|
-
}, [
|
|
3147
|
-
const
|
|
3148
|
-
if (!q &&
|
|
3149
|
+
}, [F, h]);
|
|
3150
|
+
const R = i || void 0, q = h === null;
|
|
3151
|
+
if (!q && h.length === 0)
|
|
3149
3152
|
return null;
|
|
3150
|
-
const
|
|
3151
|
-
return /* @__PURE__ */ t("section", { className:
|
|
3153
|
+
const g = te(() => q ? Array(4).fill({}) : (h == null ? void 0 : h.slice(0, 20)) || [], [q, h]), z = be("(max-width:768px)");
|
|
3154
|
+
return /* @__PURE__ */ t("section", { className: R, style: {
|
|
3152
3155
|
// paddingLeft: 16,
|
|
3153
3156
|
// paddingRight: 16,
|
|
3154
3157
|
width: "100%",
|
|
3155
3158
|
boxSizing: "border-box"
|
|
3156
|
-
}, children: /* @__PURE__ */
|
|
3157
|
-
/* @__PURE__ */ t("div", { className: xn.padding, children: /* @__PURE__ */
|
|
3159
|
+
}, children: /* @__PURE__ */ f(j, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
3160
|
+
/* @__PURE__ */ t("div", { className: xn.padding, children: /* @__PURE__ */ f(re, { spacing: 1.5, columns: "1fr auto ", justify: "start", children: [
|
|
3158
3161
|
/* @__PURE__ */ t(se, { title: a, iconUrl: n, size: "md" }),
|
|
3159
|
-
/* @__PURE__ */
|
|
3160
|
-
/* @__PURE__ */
|
|
3162
|
+
/* @__PURE__ */ f("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
|
|
3163
|
+
/* @__PURE__ */ f(re, { spacing: 1, columns: "auto auto", children: [
|
|
3161
3164
|
/* @__PURE__ */ t(
|
|
3162
3165
|
K,
|
|
3163
3166
|
{
|
|
@@ -3165,7 +3168,7 @@ function Cn({
|
|
|
3165
3168
|
variant: "secondary",
|
|
3166
3169
|
iconOnly: !0,
|
|
3167
3170
|
leftIcon: /* @__PURE__ */ t(Te, {}),
|
|
3168
|
-
onClick:
|
|
3171
|
+
onClick: N,
|
|
3169
3172
|
disabled: u.isStart
|
|
3170
3173
|
}
|
|
3171
3174
|
),
|
|
@@ -3176,7 +3179,7 @@ function Cn({
|
|
|
3176
3179
|
variant: "secondary",
|
|
3177
3180
|
iconOnly: !0,
|
|
3178
3181
|
rightIcon: /* @__PURE__ */ t(ke, {}),
|
|
3179
|
-
onClick:
|
|
3182
|
+
onClick: P,
|
|
3180
3183
|
disabled: u.isEnd
|
|
3181
3184
|
}
|
|
3182
3185
|
)
|
|
@@ -3188,9 +3191,9 @@ function Cn({
|
|
|
3188
3191
|
ce,
|
|
3189
3192
|
{
|
|
3190
3193
|
ref: s,
|
|
3191
|
-
items:
|
|
3194
|
+
items: g,
|
|
3192
3195
|
perPage: void 0,
|
|
3193
|
-
showRightGradient: !
|
|
3196
|
+
showRightGradient: !z,
|
|
3194
3197
|
enableHorizontalWheel: !0,
|
|
3195
3198
|
gap: "16px",
|
|
3196
3199
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
@@ -3201,44 +3204,44 @@ function Cn({
|
|
|
3201
3204
|
},
|
|
3202
3205
|
renderItem: ($) => {
|
|
3203
3206
|
var S;
|
|
3204
|
-
const d = ((S = $.event) == null ? void 0 : S.id) || $.eventId,
|
|
3207
|
+
const d = ((S = $.event) == null ? void 0 : S.id) || $.eventId, y = d in c ? c[d] : void 0;
|
|
3205
3208
|
return q ? /* @__PURE__ */ t(Ie, { children: /* @__PURE__ */ t(bn, {}) }) : /* @__PURE__ */ t(Ie, { children: /* @__PURE__ */ t(
|
|
3206
3209
|
Sn,
|
|
3207
3210
|
{
|
|
3208
3211
|
...$,
|
|
3209
|
-
jersey:
|
|
3212
|
+
jersey: y
|
|
3210
3213
|
}
|
|
3211
3214
|
) });
|
|
3212
3215
|
},
|
|
3213
|
-
onMove: ({ isStart: $, isEnd: d, visibleStart:
|
|
3214
|
-
|
|
3216
|
+
onMove: ({ isStart: $, isEnd: d, visibleStart: y, visibleEnd: S }) => {
|
|
3217
|
+
b(
|
|
3215
3218
|
(v) => v.isStart === $ && v.isEnd === d ? v : { isStart: $, isEnd: d }
|
|
3216
|
-
),
|
|
3219
|
+
), _({ start: y, end: S });
|
|
3217
3220
|
}
|
|
3218
3221
|
}
|
|
3219
3222
|
)
|
|
3220
3223
|
] }) });
|
|
3221
3224
|
}
|
|
3222
3225
|
function On() {
|
|
3223
|
-
return /* @__PURE__ */
|
|
3226
|
+
return /* @__PURE__ */ f("div", { className: de.cardContainer, children: [
|
|
3224
3227
|
/* @__PURE__ */ t(ot, { title: "" }),
|
|
3225
|
-
/* @__PURE__ */ t("div", { className: de.cardBackground, children: /* @__PURE__ */
|
|
3226
|
-
/* @__PURE__ */
|
|
3228
|
+
/* @__PURE__ */ t("div", { className: de.cardBackground, children: /* @__PURE__ */ f(j, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
3229
|
+
/* @__PURE__ */ f(j, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
3227
3230
|
/* @__PURE__ */ t(G, { variant: "circular", width: 48, height: 48 }),
|
|
3228
3231
|
/* @__PURE__ */ t(G, { variant: "circular", width: 48, height: 48 })
|
|
3229
3232
|
] }),
|
|
3230
|
-
/* @__PURE__ */
|
|
3231
|
-
/* @__PURE__ */
|
|
3233
|
+
/* @__PURE__ */ f(j, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
3234
|
+
/* @__PURE__ */ f(j, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
3232
3235
|
/* @__PURE__ */ t(G, { variant: "text", width: 80, height: 12 }),
|
|
3233
3236
|
/* @__PURE__ */ t(G, { variant: "text", width: 80, height: 12 })
|
|
3234
3237
|
] }),
|
|
3235
3238
|
/* @__PURE__ */ t(j, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ t(G, { variant: "text", width: 160, height: 12 }) }),
|
|
3236
|
-
/* @__PURE__ */
|
|
3239
|
+
/* @__PURE__ */ f(j, { direction: "row", spacing: 1, children: [
|
|
3237
3240
|
/* @__PURE__ */ t(G, { variant: "text", width: 80, height: 16 }),
|
|
3238
3241
|
/* @__PURE__ */ t(G, { variant: "text", width: 80, height: 16 }),
|
|
3239
3242
|
/* @__PURE__ */ t(G, { variant: "text", width: 80, height: 16 })
|
|
3240
3243
|
] }),
|
|
3241
|
-
/* @__PURE__ */ t("div", { className: de.jugadas, children: /* @__PURE__ */
|
|
3244
|
+
/* @__PURE__ */ t("div", { className: de.jugadas, children: /* @__PURE__ */ f(j, { direction: "row", spacing: 1, children: [
|
|
3242
3245
|
/* @__PURE__ */ t(G, { variant: "rounded", width: 80, height: 32 }),
|
|
3243
3246
|
/* @__PURE__ */ t(G, { variant: "rounded", width: 80, height: 32 }),
|
|
3244
3247
|
/* @__PURE__ */ t(G, { variant: "rounded", width: 80, height: 32 })
|
|
@@ -3259,7 +3262,7 @@ async function Nn(e, a = 2, n) {
|
|
|
3259
3262
|
if (n.aborted)
|
|
3260
3263
|
throw new DOMException("Aborted", "AbortError");
|
|
3261
3264
|
const l = e.slice(i, i + a), s = await Promise.all(
|
|
3262
|
-
l.map((u) => fetch(u, { signal: n }).then((
|
|
3265
|
+
l.map((u) => fetch(u, { signal: n }).then((b) => b.json()))
|
|
3263
3266
|
);
|
|
3264
3267
|
o.push(...s);
|
|
3265
3268
|
}
|
|
@@ -3295,11 +3298,11 @@ function An({
|
|
|
3295
3298
|
onViewMore: o,
|
|
3296
3299
|
className: i = ""
|
|
3297
3300
|
}) {
|
|
3298
|
-
const l = Q(), s = ee(), u = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE",
|
|
3301
|
+
const l = Q(), s = ee(), u = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE", b = W(null), [h, r] = H({ isStart: !0, isEnd: !1 }), [c, m] = H(null);
|
|
3299
3302
|
W(/* @__PURE__ */ new Set());
|
|
3300
|
-
const [
|
|
3303
|
+
const [p, _] = H({}), [I, C] = H({ start: null, end: null }), T = "channel_id=1&client_id=200&competitionId=undefined&lang=es_PE&market=PE&useCombined=true", k = st(I, 250), A = W(!1);
|
|
3301
3304
|
te(() => c === null ? Array(6).fill({}) : c.slice(0, 20), [c]);
|
|
3302
|
-
const
|
|
3305
|
+
const L = () => {
|
|
3303
3306
|
l({
|
|
3304
3307
|
element: "evento_semana_view_more",
|
|
3305
3308
|
label: `Landing: ${s} - OraculoSeccionEventoSemana - Ver más`,
|
|
@@ -3313,8 +3316,8 @@ function An({
|
|
|
3313
3316
|
}), wa();
|
|
3314
3317
|
};
|
|
3315
3318
|
async function M(O) {
|
|
3316
|
-
var
|
|
3317
|
-
let
|
|
3319
|
+
var g, z;
|
|
3320
|
+
let R = [], q = [];
|
|
3318
3321
|
try {
|
|
3319
3322
|
const $ = await fetch(
|
|
3320
3323
|
"https://api.mktolimpo.com/api/kambi/eventos/orden",
|
|
@@ -3322,74 +3325,74 @@ function An({
|
|
|
3322
3325
|
);
|
|
3323
3326
|
if ($.ok) {
|
|
3324
3327
|
const d = await $.json();
|
|
3325
|
-
|
|
3328
|
+
R = ((g = d == null ? void 0 : d.data) == null ? void 0 : g.group_ids) || [], q = ((z = d == null ? void 0 : d.data) == null ? void 0 : z.event_ids) || [];
|
|
3326
3329
|
}
|
|
3327
3330
|
} catch ($) {
|
|
3328
3331
|
$.name !== "AbortError" && console.warn("Order API not available, using default group order");
|
|
3329
3332
|
return;
|
|
3330
3333
|
}
|
|
3331
3334
|
try {
|
|
3332
|
-
const
|
|
3335
|
+
const y = (await (await fetch(u, { signal: O })).json()).group.groups.find(
|
|
3333
3336
|
(D) => D.englishName === "Football"
|
|
3334
3337
|
);
|
|
3335
|
-
if (!
|
|
3338
|
+
if (!y || !Array.isArray(y.groups)) {
|
|
3336
3339
|
console.error("Football groups not found");
|
|
3337
3340
|
return;
|
|
3338
3341
|
}
|
|
3339
|
-
let S = [...
|
|
3340
|
-
if (
|
|
3342
|
+
let S = [...y.groups];
|
|
3343
|
+
if (R.length > 0) {
|
|
3341
3344
|
const D = new Map(
|
|
3342
|
-
|
|
3345
|
+
R.map((Z, Y) => [Z, Y])
|
|
3343
3346
|
);
|
|
3344
3347
|
S.sort((Z, Y) => {
|
|
3345
3348
|
const me = D.get(String(Z.id)), pe = D.get(String(Y.id));
|
|
3346
3349
|
return me !== void 0 && pe !== void 0 ? me - pe : me !== void 0 ? -1 : pe !== void 0 ? 1 : 0;
|
|
3347
3350
|
});
|
|
3348
3351
|
}
|
|
3349
|
-
const
|
|
3352
|
+
const x = S.slice(0, 5), B = (D) => {
|
|
3350
3353
|
const Z = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football";
|
|
3351
3354
|
if (D.groups && D.groups.length > 0) {
|
|
3352
3355
|
const Y = D.groups[0];
|
|
3353
3356
|
return [
|
|
3354
|
-
`${Z}/${D.termKey}/${Y.termKey}/all/matches.json?${
|
|
3357
|
+
`${Z}/${D.termKey}/${Y.termKey}/all/matches.json?${T}`
|
|
3355
3358
|
];
|
|
3356
3359
|
}
|
|
3357
3360
|
return [
|
|
3358
|
-
`${Z}/${D.termKey}/all/all/matches.json?${
|
|
3361
|
+
`${Z}/${D.termKey}/all/all/matches.json?${T}`
|
|
3359
3362
|
];
|
|
3360
|
-
}, V =
|
|
3361
|
-
|
|
3363
|
+
}, V = x.flatMap(B);
|
|
3364
|
+
F(V, q, O);
|
|
3362
3365
|
} catch ($) {
|
|
3363
3366
|
console.error($);
|
|
3364
3367
|
}
|
|
3365
3368
|
}
|
|
3366
|
-
async function
|
|
3369
|
+
async function F(O, R, q) {
|
|
3367
3370
|
try {
|
|
3368
|
-
const
|
|
3369
|
-
let
|
|
3370
|
-
|
|
3371
|
-
v.events && (
|
|
3372
|
-
...v.events.flatMap((
|
|
3371
|
+
const g = await Nn(O, 2, q);
|
|
3372
|
+
let z = [], $ = [];
|
|
3373
|
+
g.forEach((v) => {
|
|
3374
|
+
v.events && (z.push(...v.events.map((x) => x.event)), $.push(
|
|
3375
|
+
...v.events.flatMap((x) => x.betOffers || [])
|
|
3373
3376
|
));
|
|
3374
3377
|
});
|
|
3375
|
-
const d = Ln(
|
|
3376
|
-
let S =
|
|
3377
|
-
if (
|
|
3378
|
+
const d = Ln(z, $), y = Mn(Bn(d));
|
|
3379
|
+
let S = y;
|
|
3380
|
+
if (R.length > 0) {
|
|
3378
3381
|
const v = new Map(
|
|
3379
|
-
|
|
3380
|
-
String(
|
|
3382
|
+
R.map((x, B) => [
|
|
3383
|
+
String(x),
|
|
3381
3384
|
B
|
|
3382
3385
|
])
|
|
3383
3386
|
);
|
|
3384
|
-
S = [...
|
|
3385
|
-
const V = v.get(String(
|
|
3387
|
+
S = [...y].sort((x, B) => {
|
|
3388
|
+
const V = v.get(String(x.id)), D = v.get(String(B.id));
|
|
3386
3389
|
return V !== void 0 && D !== void 0 ? V - D : V !== void 0 ? -1 : D !== void 0 ? 1 : 0;
|
|
3387
3390
|
});
|
|
3388
3391
|
}
|
|
3389
3392
|
if (q.aborted) return;
|
|
3390
3393
|
m(S);
|
|
3391
|
-
} catch (
|
|
3392
|
-
console.error("Error loading events:",
|
|
3394
|
+
} catch (g) {
|
|
3395
|
+
console.error("Error loading events:", g);
|
|
3393
3396
|
}
|
|
3394
3397
|
}
|
|
3395
3398
|
J(() => {
|
|
@@ -3401,13 +3404,13 @@ function An({
|
|
|
3401
3404
|
}, [e]), J(() => {
|
|
3402
3405
|
if (k.start === null || k.end === null || !(c != null && c.length) || A.current)
|
|
3403
3406
|
return;
|
|
3404
|
-
const O = 2,
|
|
3405
|
-
if (!
|
|
3406
|
-
let
|
|
3407
|
+
const O = 2, R = Math.max(0, k.start - O), q = Math.min(c.length - 1, k.end + O), g = c.slice(R, q + 1).map(($) => $ == null ? void 0 : $.id).filter(Boolean).filter(($) => p[$] === void 0);
|
|
3408
|
+
if (!g.length) return;
|
|
3409
|
+
let z = !1;
|
|
3407
3410
|
return A.current = !0, (async () => {
|
|
3408
3411
|
try {
|
|
3409
|
-
const $ = await lt(
|
|
3410
|
-
|
|
3412
|
+
const $ = await lt(g);
|
|
3413
|
+
z || _((d) => ({
|
|
3411
3414
|
...d,
|
|
3412
3415
|
...$.events
|
|
3413
3416
|
}));
|
|
@@ -3417,16 +3420,16 @@ function An({
|
|
|
3417
3420
|
A.current = !1;
|
|
3418
3421
|
}
|
|
3419
3422
|
})(), () => {
|
|
3420
|
-
|
|
3423
|
+
z = !0;
|
|
3421
3424
|
};
|
|
3422
3425
|
}, [k, c]);
|
|
3423
|
-
const
|
|
3426
|
+
const w = i || void 0, N = {
|
|
3424
3427
|
paddingLeft: 0,
|
|
3425
3428
|
width: "100%",
|
|
3426
3429
|
boxSizing: "border-box"
|
|
3427
|
-
},
|
|
3428
|
-
return !
|
|
3429
|
-
/* @__PURE__ */ t("div", { className: _e.container, children: /* @__PURE__ */
|
|
3430
|
+
}, P = c === null, E = be("(max-width:768px)");
|
|
3431
|
+
return !P && c.length === 0 ? null : /* @__PURE__ */ t("section", { className: w, style: N, children: /* @__PURE__ */ f("div", { className: `${_e.wrapper} ${_e.padding}`, children: [
|
|
3432
|
+
/* @__PURE__ */ t("div", { className: _e.container, children: /* @__PURE__ */ f(j, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
3430
3433
|
/* @__PURE__ */ t(se, { title: "Eventos de la semana" }),
|
|
3431
3434
|
/* @__PURE__ */ t("div", { className: _e.buttonWrapper, children: /* @__PURE__ */ t(
|
|
3432
3435
|
K,
|
|
@@ -3435,7 +3438,7 @@ function An({
|
|
|
3435
3438
|
size: "lg",
|
|
3436
3439
|
fullWidth: !0,
|
|
3437
3440
|
onClick: () => {
|
|
3438
|
-
|
|
3441
|
+
L();
|
|
3439
3442
|
},
|
|
3440
3443
|
children: "Ver más"
|
|
3441
3444
|
}
|
|
@@ -3444,8 +3447,8 @@ function An({
|
|
|
3444
3447
|
/* @__PURE__ */ t("div", { style: { minWidth: "180px" }, children: /* @__PURE__ */ t(
|
|
3445
3448
|
ce,
|
|
3446
3449
|
{
|
|
3447
|
-
ref:
|
|
3448
|
-
items:
|
|
3450
|
+
ref: b,
|
|
3451
|
+
items: P ? Array(6).fill({}) : c.slice(0, 20),
|
|
3449
3452
|
perPage: 3.5,
|
|
3450
3453
|
gap: "16px",
|
|
3451
3454
|
enableHorizontalWheel: !0,
|
|
@@ -3460,13 +3463,13 @@ function An({
|
|
|
3460
3463
|
}
|
|
3461
3464
|
},
|
|
3462
3465
|
renderItem: (O) => {
|
|
3463
|
-
const
|
|
3464
|
-
return
|
|
3466
|
+
const R = O.id, q = R in p ? p[R] : void 0;
|
|
3467
|
+
return P ? /* @__PURE__ */ t(Ie, { children: /* @__PURE__ */ t(On, {}) }) : /* @__PURE__ */ t(Ie, { children: /* @__PURE__ */ t($n, { event: O, jersey: q }) });
|
|
3465
3468
|
},
|
|
3466
|
-
onMove: ({ isStart: O, isEnd:
|
|
3467
|
-
r({ isStart: O, isEnd:
|
|
3469
|
+
onMove: ({ isStart: O, isEnd: R, visibleStart: q, visibleEnd: g }) => {
|
|
3470
|
+
r({ isStart: O, isEnd: R }), C({
|
|
3468
3471
|
start: q,
|
|
3469
|
-
end:
|
|
3472
|
+
end: g
|
|
3470
3473
|
}), l({
|
|
3471
3474
|
element: "evento_semana_carousel_slide",
|
|
3472
3475
|
label: `Landing: ${s} - OraculoSeccionEventoSemana - Slide Carousel`,
|
|
@@ -3476,9 +3479,9 @@ function An({
|
|
|
3476
3479
|
metadata: {
|
|
3477
3480
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
3478
3481
|
visibleStart: q,
|
|
3479
|
-
visibleEnd:
|
|
3482
|
+
visibleEnd: g,
|
|
3480
3483
|
isStart: O,
|
|
3481
|
-
isEnd:
|
|
3484
|
+
isEnd: R
|
|
3482
3485
|
},
|
|
3483
3486
|
tags: { section: "OraculoSeccionEventoSemana" }
|
|
3484
3487
|
});
|
|
@@ -3492,8 +3495,8 @@ function Rn({
|
|
|
3492
3495
|
items: a,
|
|
3493
3496
|
hideItems: n
|
|
3494
3497
|
}) {
|
|
3495
|
-
var O,
|
|
3496
|
-
const [o, i] = H(0), l = Q(), s = ee(), u = W(null),
|
|
3498
|
+
var O, R, q;
|
|
3499
|
+
const [o, i] = H(0), l = Q(), s = ee(), u = W(null), b = W(!1), h = W(!1), r = (e == null ? void 0 : e.length) || 1, c = !e || e.length === 0, m = !c && ((O = e == null ? void 0 : e.length) != null ? O : 0) > 1, p = !n && ((R = a == null ? void 0 : a.length) != null ? R : 0) > 0, _ = "#B5B5B5", I = {
|
|
3497
3500
|
position: "absolute",
|
|
3498
3501
|
top: "50%",
|
|
3499
3502
|
transform: "translateY(-50%)",
|
|
@@ -3501,18 +3504,18 @@ function Rn({
|
|
|
3501
3504
|
width: 48,
|
|
3502
3505
|
height: 40,
|
|
3503
3506
|
borderRadius: "12px",
|
|
3504
|
-
border: `1.5px solid ${
|
|
3507
|
+
border: `1.5px solid ${_}`,
|
|
3505
3508
|
py: 1,
|
|
3506
3509
|
px: 1.5,
|
|
3507
|
-
color:
|
|
3510
|
+
color: _,
|
|
3508
3511
|
backgroundColor: "transparent",
|
|
3509
3512
|
"&:hover": {
|
|
3510
3513
|
backgroundColor: "rgba(181,181,181,0.08)"
|
|
3511
3514
|
},
|
|
3512
3515
|
"&.Mui-disabled": {
|
|
3513
3516
|
opacity: 0.35,
|
|
3514
|
-
borderColor:
|
|
3515
|
-
color:
|
|
3517
|
+
borderColor: _,
|
|
3518
|
+
color: _,
|
|
3516
3519
|
backgroundColor: "transparent",
|
|
3517
3520
|
cursor: "default"
|
|
3518
3521
|
}
|
|
@@ -3528,86 +3531,86 @@ function Rn({
|
|
|
3528
3531
|
[]
|
|
3529
3532
|
);
|
|
3530
3533
|
J(() => {
|
|
3531
|
-
const
|
|
3532
|
-
|
|
3534
|
+
const g = setTimeout(() => {
|
|
3535
|
+
b.current = !0;
|
|
3533
3536
|
}, 500);
|
|
3534
|
-
return () => clearTimeout(
|
|
3537
|
+
return () => clearTimeout(g);
|
|
3535
3538
|
}, []);
|
|
3536
|
-
const
|
|
3537
|
-
var d,
|
|
3538
|
-
const $ = ((
|
|
3539
|
+
const T = (g, z) => {
|
|
3540
|
+
var d, y;
|
|
3541
|
+
const $ = ((y = (d = g.href) == null ? void 0 : d.split("/").pop()) == null ? void 0 : y.split(".")[0]) || g.label || g.id || `banner_${z + 1}`;
|
|
3539
3542
|
l({
|
|
3540
3543
|
element: "banner_carousel",
|
|
3541
3544
|
label: `Landing: ${s} - OraculoSeccionBanners - Banner click: ${$}`,
|
|
3542
|
-
target:
|
|
3545
|
+
target: g.href || "no_url",
|
|
3543
3546
|
event_type: "click",
|
|
3544
3547
|
module_id: 301,
|
|
3545
3548
|
metadata: {
|
|
3546
3549
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
3547
|
-
banner_position:
|
|
3550
|
+
banner_position: z + 1,
|
|
3548
3551
|
banner_total: (e == null ? void 0 : e.length) || 0
|
|
3549
3552
|
},
|
|
3550
3553
|
tags: {
|
|
3551
3554
|
banner_type: "carousel",
|
|
3552
3555
|
banner_target: "_self",
|
|
3553
|
-
banner_url:
|
|
3556
|
+
banner_url: g.href || "no_url"
|
|
3554
3557
|
}
|
|
3555
3558
|
});
|
|
3556
|
-
}, k = (
|
|
3559
|
+
}, k = (g) => {
|
|
3557
3560
|
if (l({
|
|
3558
3561
|
element: "banner_menu_item",
|
|
3559
|
-
label: `Landing: ${s} - OraculoSeccionBanners - Menu item click: ${
|
|
3560
|
-
target:
|
|
3562
|
+
label: `Landing: ${s} - OraculoSeccionBanners - Menu item click: ${g.label || g.id}`,
|
|
3563
|
+
target: g.href || "action",
|
|
3561
3564
|
event_type: "click",
|
|
3562
3565
|
module_id: 301,
|
|
3563
3566
|
metadata: {
|
|
3564
3567
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
3565
|
-
item_id:
|
|
3568
|
+
item_id: g.id
|
|
3566
3569
|
},
|
|
3567
3570
|
tags: {
|
|
3568
|
-
item_label:
|
|
3571
|
+
item_label: g.label || "no_label"
|
|
3569
3572
|
}
|
|
3570
|
-
}),
|
|
3571
|
-
|
|
3573
|
+
}), g.onClick) {
|
|
3574
|
+
g.onClick();
|
|
3572
3575
|
return;
|
|
3573
3576
|
}
|
|
3574
|
-
|
|
3575
|
-
}, A = 5e3,
|
|
3576
|
-
|
|
3577
|
-
},
|
|
3578
|
-
|
|
3579
|
-
var
|
|
3580
|
-
|
|
3577
|
+
g.href && typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(g.href);
|
|
3578
|
+
}, A = 5e3, L = W(null), M = !c && ((q = e == null ? void 0 : e.length) != null ? q : 0) > 1, F = () => {
|
|
3579
|
+
L.current != null && (window.clearTimeout(L.current), L.current = null);
|
|
3580
|
+
}, w = () => {
|
|
3581
|
+
F(), M && (L.current = window.setTimeout(() => {
|
|
3582
|
+
var g;
|
|
3583
|
+
h.current = !0, (g = u.current) == null || g.next();
|
|
3581
3584
|
}, A));
|
|
3582
3585
|
};
|
|
3583
|
-
J(() => (
|
|
3584
|
-
const
|
|
3585
|
-
var
|
|
3586
|
-
|
|
3587
|
-
},
|
|
3588
|
-
var
|
|
3589
|
-
|
|
3590
|
-
}, E = (
|
|
3591
|
-
var d,
|
|
3592
|
-
const
|
|
3593
|
-
if (!
|
|
3594
|
-
const $ = (d = e == null ? void 0 : e[
|
|
3586
|
+
J(() => (w(), () => F()), [M, A]);
|
|
3587
|
+
const N = (g) => {
|
|
3588
|
+
var z;
|
|
3589
|
+
g.preventDefault(), g.stopPropagation(), F(), (z = u.current) == null || z.prev();
|
|
3590
|
+
}, P = (g) => {
|
|
3591
|
+
var z;
|
|
3592
|
+
g.preventDefault(), g.stopPropagation(), F(), (z = u.current) == null || z.next();
|
|
3593
|
+
}, E = (g) => {
|
|
3594
|
+
var d, y, S, v;
|
|
3595
|
+
const z = (g % r + r) % r;
|
|
3596
|
+
if (!b.current) return;
|
|
3597
|
+
const $ = (d = e == null ? void 0 : e[z]) != null && d.href ? ((S = (y = e[z].href) == null ? void 0 : y.split("/").pop()) == null ? void 0 : S.split(".")[0]) || `banner_${z + 1}` : `banner_${z + 1}`;
|
|
3595
3598
|
l({
|
|
3596
3599
|
element: "banner_carousel",
|
|
3597
|
-
label: `Landing: ${s} - OraculoSeccionBanners - Banner view: Slide ${
|
|
3598
|
-
target: ((v = e == null ? void 0 : e[
|
|
3600
|
+
label: `Landing: ${s} - OraculoSeccionBanners - Banner view: Slide ${z + 1} - ${$}`,
|
|
3601
|
+
target: ((v = e == null ? void 0 : e[z]) == null ? void 0 : v.href) || "no_url",
|
|
3599
3602
|
event_type: "view",
|
|
3600
3603
|
module_id: 301,
|
|
3601
3604
|
metadata: {
|
|
3602
3605
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
3603
|
-
slide_index:
|
|
3606
|
+
slide_index: z + 1,
|
|
3604
3607
|
total_slides: r,
|
|
3605
3608
|
interaction_type: "manual_slide"
|
|
3606
3609
|
},
|
|
3607
|
-
tags: { banner_position: String(
|
|
3610
|
+
tags: { banner_position: String(z + 1) }
|
|
3608
3611
|
});
|
|
3609
3612
|
};
|
|
3610
|
-
return /* @__PURE__ */
|
|
3613
|
+
return /* @__PURE__ */ f(
|
|
3611
3614
|
X,
|
|
3612
3615
|
{
|
|
3613
3616
|
component: "section",
|
|
@@ -3616,7 +3619,7 @@ function Rn({
|
|
|
3616
3619
|
overflow: "visible"
|
|
3617
3620
|
},
|
|
3618
3621
|
children: [
|
|
3619
|
-
/* @__PURE__ */
|
|
3622
|
+
/* @__PURE__ */ f(
|
|
3620
3623
|
X,
|
|
3621
3624
|
{
|
|
3622
3625
|
sx: {
|
|
@@ -3649,22 +3652,22 @@ function Rn({
|
|
|
3649
3652
|
gap: "0px",
|
|
3650
3653
|
enableHorizontalWheel: !0,
|
|
3651
3654
|
options: C,
|
|
3652
|
-
onMove: ({ index:
|
|
3653
|
-
const
|
|
3654
|
-
i(
|
|
3655
|
-
const $ =
|
|
3656
|
-
|
|
3655
|
+
onMove: ({ index: g }) => {
|
|
3656
|
+
const z = (g % r + r) % r;
|
|
3657
|
+
i(z);
|
|
3658
|
+
const $ = h.current;
|
|
3659
|
+
h.current = !1, w(), $ || E(g);
|
|
3657
3660
|
},
|
|
3658
|
-
renderItem: (
|
|
3661
|
+
renderItem: (g, z) => {
|
|
3659
3662
|
var $, d;
|
|
3660
|
-
return /* @__PURE__ */
|
|
3663
|
+
return /* @__PURE__ */ f(
|
|
3661
3664
|
X,
|
|
3662
3665
|
{
|
|
3663
3666
|
component: "a",
|
|
3664
|
-
href:
|
|
3665
|
-
target: ($ =
|
|
3666
|
-
rel:
|
|
3667
|
-
onClick: () =>
|
|
3667
|
+
href: g.href,
|
|
3668
|
+
target: ($ = g.target) != null ? $ : "_self",
|
|
3669
|
+
rel: g.target === "_blank" ? "noopener noreferrer" : void 0,
|
|
3670
|
+
onClick: () => T(g, z),
|
|
3668
3671
|
sx: {
|
|
3669
3672
|
position: "relative",
|
|
3670
3673
|
width: "100%",
|
|
@@ -3674,14 +3677,14 @@ function Rn({
|
|
|
3674
3677
|
cursor: "pointer"
|
|
3675
3678
|
},
|
|
3676
3679
|
children: [
|
|
3677
|
-
/* @__PURE__ */
|
|
3678
|
-
/* @__PURE__ */ t("source", { srcSet:
|
|
3679
|
-
/* @__PURE__ */ t("source", { srcSet:
|
|
3680
|
+
/* @__PURE__ */ f(X, { component: "picture", sx: { position: "absolute", inset: 0, lineHeight: 0 }, children: [
|
|
3681
|
+
/* @__PURE__ */ t("source", { srcSet: g.desktopSrc, media: "(min-width:800px)" }),
|
|
3682
|
+
/* @__PURE__ */ t("source", { srcSet: g.mobileSrc, media: "(max-width:799px)" }),
|
|
3680
3683
|
/* @__PURE__ */ t(
|
|
3681
3684
|
X,
|
|
3682
3685
|
{
|
|
3683
3686
|
component: "img",
|
|
3684
|
-
src: (d =
|
|
3687
|
+
src: (d = g.fallbackSrc) != null ? d : g.desktopSrc,
|
|
3685
3688
|
alt: "",
|
|
3686
3689
|
"aria-hidden": !0,
|
|
3687
3690
|
loading: "lazy",
|
|
@@ -3721,14 +3724,14 @@ function Rn({
|
|
|
3721
3724
|
)
|
|
3722
3725
|
}
|
|
3723
3726
|
),
|
|
3724
|
-
m && /* @__PURE__ */
|
|
3727
|
+
m && /* @__PURE__ */ f(ae, { children: [
|
|
3725
3728
|
/* @__PURE__ */ t(
|
|
3726
3729
|
Pe,
|
|
3727
3730
|
{
|
|
3728
3731
|
"aria-label": "Anterior",
|
|
3729
|
-
onClick:
|
|
3732
|
+
onClick: N,
|
|
3730
3733
|
sx: {
|
|
3731
|
-
...
|
|
3734
|
+
...I,
|
|
3732
3735
|
left: "120px",
|
|
3733
3736
|
"@media (max-width:1024px)": { left: 24 },
|
|
3734
3737
|
"@media (max-width:786px)": { display: "none" }
|
|
@@ -3740,9 +3743,9 @@ function Rn({
|
|
|
3740
3743
|
Pe,
|
|
3741
3744
|
{
|
|
3742
3745
|
"aria-label": "Siguiente",
|
|
3743
|
-
onClick:
|
|
3746
|
+
onClick: P,
|
|
3744
3747
|
sx: {
|
|
3745
|
-
...
|
|
3748
|
+
...I,
|
|
3746
3749
|
right: "120px",
|
|
3747
3750
|
"@media (max-width:1024px)": { right: 24 },
|
|
3748
3751
|
"@media (max-width:786px)": { display: "none" }
|
|
@@ -3777,7 +3780,7 @@ function Rn({
|
|
|
3777
3780
|
]
|
|
3778
3781
|
}
|
|
3779
3782
|
),
|
|
3780
|
-
|
|
3783
|
+
p && /* @__PURE__ */ t(
|
|
3781
3784
|
X,
|
|
3782
3785
|
{
|
|
3783
3786
|
sx: {
|
|
@@ -3795,7 +3798,7 @@ function Rn({
|
|
|
3795
3798
|
boxShadow: "0 10px 24px rgba(0,0,0,.35)",
|
|
3796
3799
|
zIndex: 3
|
|
3797
3800
|
},
|
|
3798
|
-
children: a == null ? void 0 : a.map((
|
|
3801
|
+
children: a == null ? void 0 : a.map((g) => /* @__PURE__ */ f(
|
|
3799
3802
|
X,
|
|
3800
3803
|
{
|
|
3801
3804
|
sx: {
|
|
@@ -3807,7 +3810,7 @@ function Rn({
|
|
|
3807
3810
|
gap: { xs: 0.5, md: 1 },
|
|
3808
3811
|
color: "#FFFFFF",
|
|
3809
3812
|
minWidth: 0,
|
|
3810
|
-
cursor:
|
|
3813
|
+
cursor: g.onClick || g.href ? "pointer" : "default",
|
|
3811
3814
|
whiteSpace: "nowrap",
|
|
3812
3815
|
"&::after": {
|
|
3813
3816
|
content: '""',
|
|
@@ -3831,7 +3834,7 @@ function Rn({
|
|
|
3831
3834
|
opacity: 1,
|
|
3832
3835
|
transform: "scaleX(1)"
|
|
3833
3836
|
},
|
|
3834
|
-
...
|
|
3837
|
+
...g.iconHover && {
|
|
3835
3838
|
"&:hover .menu-icon-default": {
|
|
3836
3839
|
display: "none"
|
|
3837
3840
|
},
|
|
@@ -3840,9 +3843,9 @@ function Rn({
|
|
|
3840
3843
|
}
|
|
3841
3844
|
}
|
|
3842
3845
|
},
|
|
3843
|
-
onClick: () => k(
|
|
3846
|
+
onClick: () => k(g),
|
|
3844
3847
|
children: [
|
|
3845
|
-
|
|
3848
|
+
g.icon && /* @__PURE__ */ f(
|
|
3846
3849
|
X,
|
|
3847
3850
|
{
|
|
3848
3851
|
sx: {
|
|
@@ -3856,8 +3859,8 @@ function Rn({
|
|
|
3856
3859
|
X,
|
|
3857
3860
|
{
|
|
3858
3861
|
component: "img",
|
|
3859
|
-
src:
|
|
3860
|
-
alt:
|
|
3862
|
+
src: g.icon,
|
|
3863
|
+
alt: g.label || `icon-${g.id}`,
|
|
3861
3864
|
className: "menu-icon-default",
|
|
3862
3865
|
sx: {
|
|
3863
3866
|
display: "block",
|
|
@@ -3869,12 +3872,12 @@ function Rn({
|
|
|
3869
3872
|
}
|
|
3870
3873
|
}
|
|
3871
3874
|
),
|
|
3872
|
-
|
|
3875
|
+
g.iconHover && /* @__PURE__ */ t(
|
|
3873
3876
|
X,
|
|
3874
3877
|
{
|
|
3875
3878
|
component: "img",
|
|
3876
|
-
src:
|
|
3877
|
-
alt:
|
|
3879
|
+
src: g.iconHover,
|
|
3880
|
+
alt: g.label || `icon-hover-${g.id}`,
|
|
3878
3881
|
className: "menu-icon-hover",
|
|
3879
3882
|
sx: {
|
|
3880
3883
|
display: "none",
|
|
@@ -3899,12 +3902,12 @@ function Rn({
|
|
|
3899
3902
|
color: "#E0E0E0",
|
|
3900
3903
|
textAlign: "center"
|
|
3901
3904
|
},
|
|
3902
|
-
children:
|
|
3905
|
+
children: g.label
|
|
3903
3906
|
}
|
|
3904
3907
|
)
|
|
3905
3908
|
]
|
|
3906
3909
|
},
|
|
3907
|
-
|
|
3910
|
+
g.id
|
|
3908
3911
|
))
|
|
3909
3912
|
}
|
|
3910
3913
|
)
|
|
@@ -3926,7 +3929,7 @@ function zn({
|
|
|
3926
3929
|
items: a = Fn
|
|
3927
3930
|
}) {
|
|
3928
3931
|
const n = Math.ceil(a.length / 2), o = a.slice(0, n), i = a.slice(n);
|
|
3929
|
-
return /* @__PURE__ */
|
|
3932
|
+
return /* @__PURE__ */ f(X, { component: "section", "aria-labelledby": "mp-title", sx: { color: "#fff" }, children: [
|
|
3930
3933
|
/* @__PURE__ */ t(
|
|
3931
3934
|
Qe,
|
|
3932
3935
|
{
|
|
@@ -3955,7 +3958,7 @@ function zn({
|
|
|
3955
3958
|
}
|
|
3956
3959
|
}
|
|
3957
3960
|
),
|
|
3958
|
-
/* @__PURE__ */
|
|
3961
|
+
/* @__PURE__ */ f(ye, { spacing: { xs: 2, md: 3 }, alignItems: "center", children: [
|
|
3959
3962
|
/* @__PURE__ */ t(
|
|
3960
3963
|
ye,
|
|
3961
3964
|
{
|
|
@@ -3997,7 +4000,7 @@ function Ae({
|
|
|
3997
4000
|
}),
|
|
3998
4001
|
[a]
|
|
3999
4002
|
);
|
|
4000
|
-
return /* @__PURE__ */
|
|
4003
|
+
return /* @__PURE__ */ f(Ot, { theme: n, children: [
|
|
4001
4004
|
/* @__PURE__ */ t(Et, {}),
|
|
4002
4005
|
e
|
|
4003
4006
|
] });
|
|
@@ -5138,13 +5141,13 @@ const Je = [
|
|
|
5138
5141
|
loader: i,
|
|
5139
5142
|
disableWrapper: l = !1
|
|
5140
5143
|
}) => {
|
|
5141
|
-
const s = te(() => Dn(o), [o]), u = i || s.loader, [
|
|
5144
|
+
const s = te(() => Dn(o), [o]), u = i || s.loader, [b, h] = H([]), [r, c] = H(!1), [m, p] = H({}), [_, I] = H({}), [C, T] = H({}), k = Ye("(min-width:1024px)"), A = (d) => Array.isArray(d) ? d.map((y) => Number(y)).filter((y) => !Number.isNaN(y)) : [], L = te(() => {
|
|
5142
5145
|
const d = s.user;
|
|
5143
5146
|
return A(d == null ? void 0 : d.groups);
|
|
5144
5147
|
}, [s]), M = (d) => {
|
|
5145
|
-
const
|
|
5146
|
-
if (!Array.isArray(
|
|
5147
|
-
const S =
|
|
5148
|
+
const y = d.manualScalarFields;
|
|
5149
|
+
if (!Array.isArray(y)) return [];
|
|
5150
|
+
const S = y.find(
|
|
5148
5151
|
(B) => String((B == null ? void 0 : B.name) || "").trim().toLowerCase() === "groups"
|
|
5149
5152
|
);
|
|
5150
5153
|
if (!S) return [];
|
|
@@ -5152,30 +5155,30 @@ const Je = [
|
|
|
5152
5155
|
if (v == null) return [];
|
|
5153
5156
|
if (Array.isArray(v))
|
|
5154
5157
|
return v.map((B) => Number(String(B).trim())).filter((B) => !Number.isNaN(B));
|
|
5155
|
-
const
|
|
5156
|
-
return
|
|
5157
|
-
},
|
|
5158
|
+
const x = String(v).trim();
|
|
5159
|
+
return x ? x.split(",").map((B) => Number(B.trim())).filter((B) => !Number.isNaN(B)) : [];
|
|
5160
|
+
}, F = (d, y) => {
|
|
5158
5161
|
const S = M(d);
|
|
5159
5162
|
if (S.length === 0) return !0;
|
|
5160
|
-
if (!Array.isArray(
|
|
5161
|
-
const v = new Set(
|
|
5162
|
-
return S.some((
|
|
5163
|
+
if (!Array.isArray(y) || y.length === 0) return !1;
|
|
5164
|
+
const v = new Set(y);
|
|
5165
|
+
return S.some((x) => v.has(x));
|
|
5163
5166
|
};
|
|
5164
5167
|
J(() => {
|
|
5165
5168
|
if (e) return;
|
|
5166
5169
|
if (!n) {
|
|
5167
|
-
console.warn("[landing] sin db -> fallback json"),
|
|
5170
|
+
console.warn("[landing] sin db -> fallback json"), h(Be(Ke));
|
|
5168
5171
|
return;
|
|
5169
5172
|
}
|
|
5170
5173
|
const d = (S, v) => {
|
|
5171
|
-
console.warn("[landing] FALLBACK:", S, v != null ? v : ""),
|
|
5174
|
+
console.warn("[landing] FALLBACK:", S, v != null ? v : ""), h(Be(Ke)), c(!1);
|
|
5172
5175
|
};
|
|
5173
5176
|
if (process.env.NEXT_PUBLIC_LANDING_FORCE_FALLBACK === "1") {
|
|
5174
5177
|
c(!0), d("forzado por env");
|
|
5175
5178
|
return;
|
|
5176
5179
|
}
|
|
5177
5180
|
c(!0);
|
|
5178
|
-
const
|
|
5181
|
+
const y = It(
|
|
5179
5182
|
Tt(n, "landings", a),
|
|
5180
5183
|
(S) => {
|
|
5181
5184
|
try {
|
|
@@ -5183,12 +5186,12 @@ const Je = [
|
|
|
5183
5186
|
d(`doc landings/${a} no existe`);
|
|
5184
5187
|
return;
|
|
5185
5188
|
}
|
|
5186
|
-
const v = S.data(),
|
|
5187
|
-
if (!
|
|
5189
|
+
const v = S.data(), x = Be(v);
|
|
5190
|
+
if (!x.length) {
|
|
5188
5191
|
d("JSON inválido o sin secciones normalizables", v);
|
|
5189
5192
|
return;
|
|
5190
5193
|
}
|
|
5191
|
-
console.log("[landing] Firestore OK (json grande):", v),
|
|
5194
|
+
console.log("[landing] Firestore OK (json grande):", v), h(x);
|
|
5192
5195
|
} catch (v) {
|
|
5193
5196
|
d("error procesando snapshot", v);
|
|
5194
5197
|
} finally {
|
|
@@ -5199,29 +5202,29 @@ const Je = [
|
|
|
5199
5202
|
d("error onSnapshot", S);
|
|
5200
5203
|
}
|
|
5201
5204
|
);
|
|
5202
|
-
return () =>
|
|
5205
|
+
return () => y();
|
|
5203
5206
|
}, [e, a, n]), J(() => (Pa(s), () => Ua()), [s]), J(() => {
|
|
5204
|
-
(e ? e.slice() :
|
|
5205
|
-
}, [e,
|
|
5206
|
-
const
|
|
5207
|
+
(e ? e.slice() : b.slice()).map((S) => S.componentKey).filter((S) => !!S).length;
|
|
5208
|
+
}, [e, b]);
|
|
5209
|
+
const w = async (d) => {
|
|
5207
5210
|
if (Je.includes(d.componentKey))
|
|
5208
5211
|
return {
|
|
5209
5212
|
items: [],
|
|
5210
5213
|
events: [],
|
|
5211
5214
|
data: {}
|
|
5212
5215
|
};
|
|
5213
|
-
const
|
|
5214
|
-
if (!
|
|
5216
|
+
const y = (d.apiUrl || "").trim();
|
|
5217
|
+
if (!y) return;
|
|
5215
5218
|
const S = d.apiMethod || "GET", v = d.apiParams || [];
|
|
5216
|
-
let
|
|
5219
|
+
let x = y, B, V;
|
|
5217
5220
|
if (S === "GET") {
|
|
5218
5221
|
const Z = new URL(
|
|
5219
|
-
|
|
5222
|
+
y,
|
|
5220
5223
|
typeof window == "undefined" ? "http://localhost" : window.location.origin
|
|
5221
5224
|
);
|
|
5222
5225
|
for (const Y of v)
|
|
5223
5226
|
Y.key && Z.searchParams.append(Y.key, Y.value);
|
|
5224
|
-
|
|
5227
|
+
x = Z.toString();
|
|
5225
5228
|
} else {
|
|
5226
5229
|
const Z = new URLSearchParams();
|
|
5227
5230
|
for (const Y of v)
|
|
@@ -5230,51 +5233,51 @@ const Je = [
|
|
|
5230
5233
|
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
|
|
5231
5234
|
};
|
|
5232
5235
|
}
|
|
5233
|
-
const D = await fetch(
|
|
5236
|
+
const D = await fetch(x, {
|
|
5234
5237
|
method: S,
|
|
5235
5238
|
headers: V,
|
|
5236
5239
|
body: B
|
|
5237
5240
|
});
|
|
5238
|
-
if (!D.ok) throw new Ze(D.status,
|
|
5241
|
+
if (!D.ok) throw new Ze(D.status, x, D.statusText);
|
|
5239
5242
|
return D.json();
|
|
5240
|
-
},
|
|
5241
|
-
() => e ? e.slice() :
|
|
5242
|
-
[e,
|
|
5243
|
-
),
|
|
5243
|
+
}, N = te(
|
|
5244
|
+
() => e ? e.slice() : b.slice(),
|
|
5245
|
+
[e, b]
|
|
5246
|
+
), P = ue.useRef(/* @__PURE__ */ new Set());
|
|
5244
5247
|
J(() => {
|
|
5245
|
-
const d =
|
|
5248
|
+
const d = N.map((y) => ({ s: y, url: (y.apiUrl || "").trim() })).filter(({ url: y }) => !!y);
|
|
5246
5249
|
if (d.length)
|
|
5247
|
-
for (const { s:
|
|
5248
|
-
const v = `${
|
|
5249
|
-
|
|
5250
|
+
for (const { s: y, url: S } of d) {
|
|
5251
|
+
const v = `${y.id}|${S}`;
|
|
5252
|
+
P.current.has(v) || (P.current.add(v), I((x) => ({ ...x, [y.id]: !0 })), T((x) => ({ ...x, [y.id]: "" })), (async () => {
|
|
5250
5253
|
try {
|
|
5251
|
-
const
|
|
5252
|
-
|
|
5253
|
-
} catch (
|
|
5254
|
+
const x = await w(y);
|
|
5255
|
+
p((B) => ({ ...B, [y.id]: x }));
|
|
5256
|
+
} catch (x) {
|
|
5254
5257
|
let B = "Error desconocido";
|
|
5255
|
-
|
|
5258
|
+
x instanceof Ze ? B = `Error HTTP ${x.status} (${x.statusText}) en ${x.url}` : x instanceof SyntaxError ? B = "Respuesta no es JSON válido" : x instanceof TypeError ? B = "Fallo de red / CORS / conexión" : typeof x == "string" && (B = x.toString()), T((V) => ({ ...V, [y.id]: B }));
|
|
5256
5259
|
} finally {
|
|
5257
|
-
|
|
5260
|
+
I((x) => ({ ...x, [y.id]: !1 }));
|
|
5258
5261
|
}
|
|
5259
5262
|
})());
|
|
5260
5263
|
}
|
|
5261
|
-
}, [
|
|
5264
|
+
}, [N]);
|
|
5262
5265
|
const E = te(
|
|
5263
|
-
() =>
|
|
5264
|
-
[
|
|
5265
|
-
), O = (d) => Array.isArray(d) ? d.map((
|
|
5266
|
+
() => N.filter((d) => d.visible).filter((d) => F(d, L)).sort((d, y) => d.order - y.order),
|
|
5267
|
+
[N, L]
|
|
5268
|
+
), O = (d) => Array.isArray(d) ? d.map((y) => {
|
|
5266
5269
|
const S = {};
|
|
5267
|
-
for (const v of
|
|
5268
|
-
const
|
|
5269
|
-
if (
|
|
5270
|
+
for (const v of y.fields || []) {
|
|
5271
|
+
const x = (v.type || "string").toLowerCase();
|
|
5272
|
+
if (x === "number") {
|
|
5270
5273
|
const B = String(v.value || "").trim();
|
|
5271
5274
|
if (B !== "") {
|
|
5272
5275
|
const V = Number(B);
|
|
5273
5276
|
Number.isNaN(V) || (S[v.name] = V);
|
|
5274
5277
|
}
|
|
5275
|
-
} else if (
|
|
5278
|
+
} else if (x === "boolean")
|
|
5276
5279
|
S[v.name] = String(v.value).toLowerCase() === "true";
|
|
5277
|
-
else if (
|
|
5280
|
+
else if (x === "function") {
|
|
5278
5281
|
const B = String(v.value || "").trim();
|
|
5279
5282
|
if (B)
|
|
5280
5283
|
try {
|
|
@@ -5287,53 +5290,53 @@ const Je = [
|
|
|
5287
5290
|
S[v.name] = v.value;
|
|
5288
5291
|
}
|
|
5289
5292
|
return S;
|
|
5290
|
-
}) : [],
|
|
5291
|
-
const
|
|
5292
|
-
if (!Array.isArray(d)) return
|
|
5293
|
+
}) : [], R = (d) => {
|
|
5294
|
+
const y = {};
|
|
5295
|
+
if (!Array.isArray(d)) return y;
|
|
5293
5296
|
for (const S of d) {
|
|
5294
5297
|
if (!S.name) continue;
|
|
5295
5298
|
const v = (S.type || "string").toLowerCase();
|
|
5296
5299
|
if (v === "number") {
|
|
5297
|
-
const
|
|
5298
|
-
if (
|
|
5299
|
-
const B = Number(
|
|
5300
|
-
Number.isNaN(B) || (
|
|
5300
|
+
const x = String(S.value || "").trim();
|
|
5301
|
+
if (x !== "") {
|
|
5302
|
+
const B = Number(x);
|
|
5303
|
+
Number.isNaN(B) || (y[S.name] = B);
|
|
5301
5304
|
}
|
|
5302
5305
|
} else if (v === "boolean")
|
|
5303
|
-
|
|
5306
|
+
y[S.name] = String(S.value).toLowerCase() === "true";
|
|
5304
5307
|
else if (v === "function") {
|
|
5305
|
-
const
|
|
5306
|
-
if (
|
|
5308
|
+
const x = String(S.value || "").trim();
|
|
5309
|
+
if (x)
|
|
5307
5310
|
try {
|
|
5308
|
-
const B = new Function(
|
|
5309
|
-
|
|
5311
|
+
const B = new Function(x);
|
|
5312
|
+
y[S.name] = B;
|
|
5310
5313
|
} catch (B) {
|
|
5311
5314
|
console.error(`❌ Error creando función en item '${S.name}':`, B);
|
|
5312
5315
|
}
|
|
5313
5316
|
} else
|
|
5314
|
-
|
|
5317
|
+
y[S.name] = S.value;
|
|
5315
5318
|
}
|
|
5316
|
-
return
|
|
5317
|
-
}, q = (d,
|
|
5318
|
-
const
|
|
5319
|
-
if (
|
|
5320
|
-
return
|
|
5319
|
+
return y;
|
|
5320
|
+
}, q = (d, y, S, v) => {
|
|
5321
|
+
const x = S ? { ...S } : {}, B = (v || "items").trim() || "items";
|
|
5322
|
+
if (y)
|
|
5323
|
+
return x[B] = y.arr || [], x;
|
|
5321
5324
|
const V = d;
|
|
5322
5325
|
if (Array.isArray(V))
|
|
5323
|
-
return
|
|
5326
|
+
return x[B] = V, x;
|
|
5324
5327
|
if (V && typeof V == "object") {
|
|
5325
5328
|
const D = V;
|
|
5326
|
-
return Array.isArray(D.lobby) ? (
|
|
5329
|
+
return Array.isArray(D.lobby) ? (x[B] = D.lobby, x) : Array.isArray(D.items) ? (x[B] = D.items, x) : (x[B] = V, x);
|
|
5327
5330
|
}
|
|
5328
|
-
return
|
|
5329
|
-
},
|
|
5331
|
+
return x[B] = [], x;
|
|
5332
|
+
}, g = (d) => {
|
|
5330
5333
|
var B;
|
|
5331
|
-
const
|
|
5334
|
+
const y = !!((B = d.apiUrl) != null && B.trim()), S = y ? m[d.id] : void 0;
|
|
5332
5335
|
let v = d.props ? { ...d.props } : {};
|
|
5333
|
-
const
|
|
5336
|
+
const x = R(d.manualScalarFields);
|
|
5334
5337
|
if (Je.includes(d.componentKey))
|
|
5335
|
-
return { items: S, ...v, ...
|
|
5336
|
-
if (v = { ...v, ...
|
|
5338
|
+
return { items: S, ...v, ...x };
|
|
5339
|
+
if (v = { ...v, ...x }, y) v = q(S, null, v);
|
|
5337
5340
|
else if (d.dataMode === "manual") {
|
|
5338
5341
|
const V = O(d.manualItems);
|
|
5339
5342
|
if (v = q(
|
|
@@ -5347,35 +5350,35 @@ const Je = [
|
|
|
5347
5350
|
}
|
|
5348
5351
|
}
|
|
5349
5352
|
return v;
|
|
5350
|
-
},
|
|
5353
|
+
}, z = (d, y, S) => /* @__PURE__ */ t("div", { className: `mx-4 p-4 rounded ${{
|
|
5351
5354
|
loading: "bg-blue-100 text-blue-800",
|
|
5352
5355
|
error: "bg-red-100 text-red-800",
|
|
5353
5356
|
component: "bg-yellow-100 text-yellow-800"
|
|
5354
|
-
}[
|
|
5357
|
+
}[y]}`, children: S }, d), $ = (d) => {
|
|
5355
5358
|
var ze;
|
|
5356
|
-
const
|
|
5359
|
+
const y = d.componentKey, S = Vn[y];
|
|
5357
5360
|
if (!S)
|
|
5358
|
-
return console.warn(`No hay componente registrado para "${
|
|
5361
|
+
return console.warn(`No hay componente registrado para "${y}"`), z(
|
|
5359
5362
|
d.id,
|
|
5360
5363
|
"component",
|
|
5361
|
-
`Componente "${
|
|
5364
|
+
`Componente "${y}" no encontrado`
|
|
5362
5365
|
);
|
|
5363
|
-
const v = !!((ze = d.apiUrl) != null && ze.trim()),
|
|
5366
|
+
const v = !!((ze = d.apiUrl) != null && ze.trim()), x = v ? m[d.id] : void 0, B = v ? !!_[d.id] : !1, V = v ? C[d.id] : "";
|
|
5364
5367
|
if (v) {
|
|
5365
|
-
if (B && !
|
|
5366
|
-
return
|
|
5368
|
+
if (B && !x)
|
|
5369
|
+
return z(
|
|
5367
5370
|
d.id,
|
|
5368
5371
|
"loading",
|
|
5369
5372
|
`Cargando datos desde ${d.apiUrl}...`
|
|
5370
5373
|
);
|
|
5371
|
-
if (V && !
|
|
5372
|
-
return
|
|
5374
|
+
if (V && !x)
|
|
5375
|
+
return z(
|
|
5373
5376
|
d.id,
|
|
5374
5377
|
"error",
|
|
5375
5378
|
`Error cargando ${d.apiUrl}: ${V}`
|
|
5376
5379
|
);
|
|
5377
5380
|
}
|
|
5378
|
-
const D =
|
|
5381
|
+
const D = g(d), Y = (/* @__PURE__ */ new Set([
|
|
5379
5382
|
"OraculoSeccionBanners",
|
|
5380
5383
|
"OraculoSeccionBonoBienvenida",
|
|
5381
5384
|
"OraculoSeccionCasinoEnVivo",
|
|
@@ -5399,7 +5402,7 @@ const Je = [
|
|
|
5399
5402
|
};
|
|
5400
5403
|
return /* @__PURE__ */ t("div", { style: ft, className: "oraculo-section-wrapper", children: /* @__PURE__ */ t(S, { ...D }) }, d.id);
|
|
5401
5404
|
};
|
|
5402
|
-
return r && !e ? u ? /* @__PURE__ */ t(u, {}) : /* @__PURE__ */ t("div", { children: "Cargando..." }) : !r && !e &&
|
|
5405
|
+
return r && !e ? u ? /* @__PURE__ */ t(u, {}) : /* @__PURE__ */ t("div", { children: "Cargando..." }) : !r && !e && b.length === 0 ? /* @__PURE__ */ t("div", { className: "text-xs text-gray-500", children: "Sin secciones (Firestore)" }) : l ? /* @__PURE__ */ t(Ae, { children: /* @__PURE__ */ t(Le, { docId: a, children: /* @__PURE__ */ t(ae, { children: E.map($) }) }) }) : /* @__PURE__ */ t(Ae, { children: /* @__PURE__ */ t(Le, { docId: a, children: /* @__PURE__ */ t(
|
|
5403
5406
|
gt,
|
|
5404
5407
|
{
|
|
5405
5408
|
className: "oli-font",
|