oraculo-ui 0.1.152 → 0.1.153
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 +839 -808
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as t, jsxs as y, Fragment as pe } from "react/jsx-runtime";
|
|
2
|
-
import { Link as
|
|
3
|
-
import fe, { useState as Z, useEffect as Q, useRef as U, forwardRef as
|
|
4
|
-
import
|
|
2
|
+
import { Link as st, Box as ee, useMediaQuery as De, IconButton as Ke, Typography as lt, Stack as Ce, Container as Tt } from "@mui/material";
|
|
3
|
+
import fe, { useState as Z, useEffect as Q, useRef as U, forwardRef as $t, useImperativeHandle as Nt, useCallback as ke, createContext as Mt, useContext as At, useMemo as ie, useLayoutEffect as Bt } from "react";
|
|
4
|
+
import W from "@mui/material/Skeleton";
|
|
5
5
|
import { Splide as Rt, SplideSlide as Lt } from "@splidejs/react-splide";
|
|
6
6
|
import z from "@mui/material/Box";
|
|
7
7
|
import ue from "@mui/material/Typography";
|
|
@@ -20,50 +20,50 @@ function J({
|
|
|
20
20
|
href: n,
|
|
21
21
|
target: r,
|
|
22
22
|
rel: i,
|
|
23
|
-
type:
|
|
24
|
-
disabled:
|
|
23
|
+
type: s = "button",
|
|
24
|
+
disabled: l = !1,
|
|
25
25
|
variant: d = "primary",
|
|
26
26
|
size: h,
|
|
27
|
-
fullWidth:
|
|
27
|
+
fullWidth: g = !1,
|
|
28
28
|
fullHeight: m = !1,
|
|
29
29
|
className: u = "",
|
|
30
30
|
ariaLabel: c,
|
|
31
|
-
leftIcon:
|
|
31
|
+
leftIcon: f,
|
|
32
32
|
rightIcon: v,
|
|
33
33
|
iconOnly: x
|
|
34
34
|
}) {
|
|
35
|
-
const k = !!e && e !== !0, b = (!!
|
|
35
|
+
const k = !!e && e !== !0, b = (!!f ? 1 : 0) + (!!v ? 1 : 0) == 1, A = x != null ? x : b && !k, w = [
|
|
36
36
|
"orc-btn",
|
|
37
37
|
d === "secondary" ? "orc-btn--secondary" : d === "tertiary" ? "orc-btn--tertiary" : "orc-btn--primary",
|
|
38
38
|
h ? `orc-btn--${h}` : "",
|
|
39
|
-
|
|
39
|
+
g ? "orc-btn--full" : "",
|
|
40
40
|
m ? "orc-btn--fullHeight" : "",
|
|
41
|
-
|
|
41
|
+
A ? "orc-btn--iconOnly" : "",
|
|
42
42
|
u
|
|
43
43
|
].filter(Boolean).join(" "), S = /* @__PURE__ */ y(pe, { children: [
|
|
44
|
-
|
|
45
|
-
!
|
|
44
|
+
f && /* @__PURE__ */ t("span", { className: "orc-btn__icon", children: f }),
|
|
45
|
+
!A && /* @__PURE__ */ t("span", { className: "orc-btn__label", children: e }),
|
|
46
46
|
v && /* @__PURE__ */ t("span", { className: "orc-btn__icon", children: v })
|
|
47
|
-
] }),
|
|
47
|
+
] }), L = l ? !0 : void 0;
|
|
48
48
|
return n ? /* @__PURE__ */ t(
|
|
49
|
-
|
|
49
|
+
st,
|
|
50
50
|
{
|
|
51
51
|
href: n,
|
|
52
52
|
target: r,
|
|
53
53
|
rel: i,
|
|
54
54
|
"aria-label": c,
|
|
55
|
-
"aria-disabled":
|
|
56
|
-
tabIndex:
|
|
55
|
+
"aria-disabled": L,
|
|
56
|
+
tabIndex: L ? -1 : void 0,
|
|
57
57
|
className: w,
|
|
58
|
-
onClick:
|
|
58
|
+
onClick: L ? (F) => F.preventDefault() : a,
|
|
59
59
|
children: S
|
|
60
60
|
}
|
|
61
61
|
) : /* @__PURE__ */ t(
|
|
62
62
|
"button",
|
|
63
63
|
{
|
|
64
|
-
type:
|
|
64
|
+
type: s,
|
|
65
65
|
onClick: a,
|
|
66
|
-
disabled: !!
|
|
66
|
+
disabled: !!L,
|
|
67
67
|
"aria-label": c,
|
|
68
68
|
className: w,
|
|
69
69
|
children: S
|
|
@@ -76,12 +76,12 @@ function ge({
|
|
|
76
76
|
size: n = "md",
|
|
77
77
|
className: r = ""
|
|
78
78
|
}) {
|
|
79
|
-
const
|
|
79
|
+
const s = [
|
|
80
80
|
"orc-section-title",
|
|
81
81
|
n ? `orc-section-title--${n}` : "",
|
|
82
82
|
r
|
|
83
83
|
].filter(Boolean).join(" ");
|
|
84
|
-
return /* @__PURE__ */ y("div", { className:
|
|
84
|
+
return /* @__PURE__ */ y("div", { className: s, children: [
|
|
85
85
|
a && /* @__PURE__ */ t(
|
|
86
86
|
"img",
|
|
87
87
|
{
|
|
@@ -101,28 +101,28 @@ const ut = ({
|
|
|
101
101
|
durationMs: i = 5e3
|
|
102
102
|
}) => {
|
|
103
103
|
if (e <= 1) return null;
|
|
104
|
-
const
|
|
104
|
+
const s = ["orc-dots", r].filter(Boolean).join(" "), [l, d] = Z(0);
|
|
105
105
|
return Q(() => {
|
|
106
106
|
d((h) => h + 1);
|
|
107
|
-
}, [a, i]), /* @__PURE__ */ t("div", { className:
|
|
108
|
-
const m =
|
|
107
|
+
}, [a, i]), /* @__PURE__ */ t("div", { className: s, role: "tablist", "aria-label": "Carousel pagination", children: Array.from({ length: e }).map((h, g) => {
|
|
108
|
+
const m = g === 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": m,
|
|
115
|
-
"aria-label": `Ir al slide ${
|
|
115
|
+
"aria-label": `Ir al slide ${g + 1}`,
|
|
116
116
|
className: "orc-dots__dot" + (m ? " orc-dots__dot--active" : ""),
|
|
117
117
|
style: m ? {
|
|
118
118
|
"--dot-progress-ms": `${i}ms`
|
|
119
119
|
} : void 0,
|
|
120
120
|
onClick: () => {
|
|
121
|
-
m && d((u) => u + 1), n == null || n(
|
|
121
|
+
m && d((u) => u + 1), n == null || n(g);
|
|
122
122
|
}
|
|
123
123
|
},
|
|
124
|
-
m ? `a-${
|
|
125
|
-
) },
|
|
124
|
+
m ? `a-${g}-${l}` : `i-${g}`
|
|
125
|
+
) }, g);
|
|
126
126
|
}) });
|
|
127
127
|
};
|
|
128
128
|
function me({
|
|
@@ -132,15 +132,15 @@ function me({
|
|
|
132
132
|
justify: r = "stretch",
|
|
133
133
|
columns: i = null
|
|
134
134
|
}) {
|
|
135
|
-
const
|
|
135
|
+
const s = i || `repeat(auto-fit, minmax(${a}px, 1fr))`, l = typeof n == "number" ? `${n * 8}px` : n;
|
|
136
136
|
return /* @__PURE__ */ t(
|
|
137
137
|
"div",
|
|
138
138
|
{
|
|
139
139
|
style: {
|
|
140
140
|
display: "grid",
|
|
141
|
-
gridTemplateColumns:
|
|
141
|
+
gridTemplateColumns: s,
|
|
142
142
|
justifyItems: r,
|
|
143
|
-
gap:
|
|
143
|
+
gap: l,
|
|
144
144
|
height: "inherit"
|
|
145
145
|
},
|
|
146
146
|
children: e
|
|
@@ -294,11 +294,11 @@ function ft({ text: e, name: a, size: n = "normal" }) {
|
|
|
294
294
|
}
|
|
295
295
|
);
|
|
296
296
|
}
|
|
297
|
-
const ra = "oraculo__OraculoEventTeamInfo-module__team___UfpUs", ia = "oraculo__OraculoEventTeamInfo-module__regular___ag826",
|
|
297
|
+
const ra = "oraculo__OraculoEventTeamInfo-module__team___UfpUs", ia = "oraculo__OraculoEventTeamInfo-module__regular___ag826", sa = "oraculo__OraculoEventTeamInfo-module__compact___RCNOs", la = "oraculo__OraculoEventTeamInfo-module__logo___fKCl3", ca = "oraculo__OraculoEventTeamInfo-module__name___4ikm-", da = "oraculo__OraculoEventTeamInfo-module__skeleton___Yfaxh", _e = {
|
|
298
298
|
team: ra,
|
|
299
299
|
regular: ia,
|
|
300
|
-
compact:
|
|
301
|
-
logo:
|
|
300
|
+
compact: sa,
|
|
301
|
+
logo: la,
|
|
302
302
|
name: ca,
|
|
303
303
|
skeleton: da
|
|
304
304
|
}, ua = "oraculo__OraculoTeamPolo-module__polo___BisRg", ma = "oraculo__OraculoTeamPolo-module__svgWrapper___HRKNX", pa = "oraculo__OraculoTeamPolo-module__shadow___-3DXb", fa = "oraculo__OraculoTeamPolo-module__highlight___1etm7", Ie = {
|
|
@@ -308,7 +308,7 @@ const ra = "oraculo__OraculoEventTeamInfo-module__team___UfpUs", ia = "oraculo__
|
|
|
308
308
|
highlight: fa
|
|
309
309
|
};
|
|
310
310
|
function ga({ jersey: e, className: a }) {
|
|
311
|
-
const n = `#${e.base}`, r = e.sleeve ? `#${e.sleeve}` : n, i = e.stripes ? `#${e.stripes}` : null,
|
|
311
|
+
const n = `#${e.base}`, r = e.sleeve ? `#${e.sleeve}` : n, i = e.stripes ? `#${e.stripes}` : null, s = e.sleevelong ? `#${e.sleevelong}` : null;
|
|
312
312
|
return /* @__PURE__ */ y("div", { className: `${Ie.polo} ${a != null ? a : ""}`, children: [
|
|
313
313
|
/* @__PURE__ */ t("div", { className: Ie.svgWrapper, children: /* @__PURE__ */ y("svg", { viewBox: "0 0 656 656", "aria-hidden": !0, children: [
|
|
314
314
|
/* @__PURE__ */ t(
|
|
@@ -322,7 +322,7 @@ function ga({ jersey: e, className: a }) {
|
|
|
322
322
|
/* @__PURE__ */ t("path", { fill: i, d: "m153 277.8-5.8 14.5c-1 2.8-2.5 1.4-4.6.7l-2-.5-7.8-2.4-15.6-5-19-6.5-16-5.7-12-4.4-5.5-2.2c-3.5-1.1-3.1-1.2-1.9-4l1.8-4.9 3.2-9.3c-1.1-1.9 0-3.1.8-3.5l.2-.7.5-2 4.3-10.3 2.4-6 2.6-6.2.8-2.6 1.7-4.1v-.4l.3-2.6.6-3.4 1-3.5 1-3.8c.1-.9 2-5.6 3-7.8l.7-1.5.7-2 .9-3.6 3.4-12.6 2.4-8.6 2.7-11.2 3.5-9.6 3.6-9.4 3-6 2-4.1 3.6-5.8 2.2-4.3 3-4.4 3.2-3.9 1.7-1.9 3.6-3.6 3-2.9a109.3 109.3 0 0 1 13.3-11.2l1.2-.8a79.3 79.3 0 0 1 18-9l11.4-4.2 4-1.4 6.3-2.7 3.3-1.4 2.8-1.2 4-1.6 3.9-2.1 10.1-5 4.8-2.4 5.7-3.2 13.8-7.7c1.5-.8 4.7-2.7 6-3a8.5 8.5 0 0 0 3-1.8c3.4-2.5 4.5-4.8 6-5.3.4-.4 2-1.6 5.2-3.2-4.4 3.3-3.2 11-2.1 14.6a77 77 0 0 0 8.7 18.8l-.6.4-3.9 2-9 5-6.6 3.7-10 3.2c-4.3.8-13.2 2.4-14.4 2.8-1.2.3-10.2 4-14.5 5.8l-11.8 5.6-8.8 3.2-12 3.4-19 8.7c-5.8 1.4-19.3 14.2-25.3 20.4L122 128l.3.4 6.6 16.6 10.5 22.6 6.2 10.8c2.9 3 8.7 9.7 9.1 11.7.5 2 4.3 5.1 6.1 6.5.2.8.8 3.1 1.7 5.4-3.2 4.8-.4 10.6 1.4 12.9l1 4.6.3 6.5-.5 1c-1.4 1.4-.3 4 .4 5l.1 3c.5 1.4 1.3 4.2.8 5.2s0 2.7.3 3.4v4.9c-3.1.5-2 3.7-1 5.2-.5.7-1.8 2.2-3.2 2.7-1.4.5-1.8 3.6-1.8 5.2a9 9 0 0 1-2.7 4.7c-1.8 1.6-2.8 7.4-3 10.1l-1.6 1.5ZM403.8 31.1l-1.6-.7c1.2 1 2 2.2 2.8 4 1.8 2.8.6 8-.7 12.2a78 78 0 0 1-7.6 17l.5.2 3.3 1.5 5.4 3.3 5.9 3 7.2 3 8.2 2.2c.7.2 3.3 1 8.4 2 5.5.1 21.1 8 28.2 11.8l14 4.5a517 517 0 0 1 23.8 9.3c6.3.5 24.7 17 33.1 25.2l-4.6 11.6-8.2 19.3-3.8 9-5.2 8.6c-2.2 3.2-7.3 10.2-9.4 12.4-1.3-.3-5.6 4.4-7.6 6.7.3 2 .6 6.7-1.4 9.1-2 2.5-1.8 6.9-1.4 8.7.3.8.5 3-1 5.3-1.4 2.4-1 4-.5 4.5-.2.8-.7 2.5-1.4 3.4-.8.8-.4 3.3 0 4.5l.1 3-.1 2.2c-.2.6-.6 2.6-1.1 6.2 3.6 3.3 1.3 5.7-.3 6.5l2.2.3 1.3 2.7 1.5 3.8 1.1 2.3 2.7 7.1 1.6 4.8.3 2.1v1.6l1.9 1.9 4 8.9 1.8 4.5c.5 4 5.5 3.6 8 3l5.9-1.1 7.3-1.7 5.2-1.2 7.3-2.1 8.3-2.7 7.5-2.5 9.8-3.6 8-3 6.3-2.8 3.4-1.6 3-1.3 2.5-1.6 1-.8c1.9-1 2-2.1 1.6-2.9l-.6-1.7-1-2.7-1.6-4.2-1.4-4-.5-1.4-.1-.7v-1.2c.7-1-.4-2.5-1-3v-.2l-1-2-2.4-6-3.3-8.3-2.3-6a3896.4 3896.4 0 0 0-3.1-8.4l-2.2-7.1-1.5-5.7-2.5-8.9-1-3.1-1.2-4.5-2-8.2-2.2-9.3-2.8-11.4-2.6-9.1-.9-3c0-.3-.6-1.5-1-2l-2.5-5.6-3-6.6-5.7-11.3-2.5-4.3-2.3-3.3-.7-.7-4.3-5-3-3.8a73 73 0 0 0-4.2-3.8c-1.1-2-7.6-7-10.8-9.4-6.2-5-23.4-12.8-34-16.7l-11-4-16-7.9-20.1-10-7.1-3.8-2.4-1.5-13-7.3-2.6-3.4-5-3Z" }),
|
|
323
323
|
/* @__PURE__ */ t("path", { fill: i, d: "M292.1 648.8c-15.7-1.4-37.7-5-49.7-7.1-4.3-.6-22.6-5.3-35.5-9.5 1.5-10 3-21 4.3-32.7 7-60.5 4.8-132.8 3.1-185.6l-.9-32c-1-49-2.4-83.5-3.6-112-1.2-29-2.1-51.7-2.1-77 0-29 2.9-77.3 5.3-112.9l2.6-1c1.3-.3 10.1-2 14.4-2.7l10-3.2 6.6-3.7 9-5 4-2 .5-.3c1.2 2 2.6 4.1 3.4 4.8l6.1 7.8 15 14.6 4.8 4c-.6 26.4-1.1 60.6-1.1 100.1 0 59.3 1.1 82.6 2.7 114.6.9 18.8 2 40.7 3 74.9 1.5 48.3.8 98.4 0 148.6l-.8 68.3c0 13-.6 32.8-1.1 49Zm157.5-16.4-11.2 3.6a379.2 379.2 0 0 1-67 12c.2-11 .3-25.6.3-44.6 0-49.2-1.2-74.9-2.4-99.5-1.3-27.2-2.5-53-2-107.5.6-50.4 1.7-81.5 2.6-109.3 1-29.3 1.8-54.9 1.8-95.6 0-35.5-.6-70.6-1.2-98.6l3.6-3 5.3-5.1 3.5-3.6 3.5-3.4 4-5 4.2-5.3 2.7-4 .5.3 3.2 1.5 5.5 3.3 5.8 3 7.3 3 8.1 2.2c.7.2 3.3 1 8.4 2 2.4 0 6.5 1.5 11 3.4 2.6 29 5.2 68 5.2 107.8 0 41.5-1.6 70.2-3.2 102-1.6 28.7-3.3 60-4 105.6-.7 41.1.4 82.5 1.4 124.4.7 25.7 1.4 51.6 1.6 77.8a435 435 0 0 0 1.5 32.6Z" })
|
|
324
324
|
] }),
|
|
325
|
-
|
|
325
|
+
s && /* @__PURE__ */ t(pe, { children: /* @__PURE__ */ t("path", { fill: s, d: "m153 277.8-5.8 14.5c-1 2.8-2.5 1.4-4.6.7l-2-.5-7.8-2.4-15.6-5-19-6.5-16-5.7-12-4.4-5.5-2.2c-3.5-1.1-3.1-1.2-1.9-4l1.8-4.9 3.2-9.3c-1.1-1.9 0-3.1.8-3.5l.2-.7.5-2 4.3-10.3 2.4-6 2.6-6.2.8-2.6 1.7-4.1v-.4l.3-2.6.6-3.4 1-3.5 1-3.8c.1-.9 2-5.6 3-7.8l.7-1.5.7-2 .9-3.6 3.4-12.6 2.4-8.6 2.7-11.2 3.5-9.6 3.6-9.4 3-6 2-4.1 3.6-5.8 2.2-4.3 3-4.4 3.2-3.9 1.7-1.9 3.6-3.6 3-2.9a109.3 109.3 0 0 1 13.3-11.2l1.2-.8a79.3 79.3 0 0 1 18-9l11.4-4.2 4-1.4 6.3-2.7 3.3-1.4 2.8-1.2 4-1.6 3.9-2.1 10.1-5 4.8-2.4 5.7-3.2 13.8-7.7c1.5-.8 4.7-2.7 6-3a8.5 8.5 0 0 0 3-1.8c3.4-2.5 4.5-4.8 6-5.3.4-.4 2-1.6 5.2-3.2-4.4 3.3-3.2 11-2.1 14.6a77 77 0 0 0 8.7 18.8l-.6.4-3.9 2-9 5-6.6 3.7-10 3.2c-4.3.8-13.2 2.4-14.4 2.8-1.2.3-10.2 4-14.5 5.8l-11.8 5.6-8.8 3.2-12 3.4-19 8.7c-5.8 1.4-19.3 14.2-25.3 20.4L122 128l.3.4 6.6 16.6 10.5 22.6 6.2 10.8c2.9 3 8.7 9.7 9.1 11.7.5 2 4.3 5.1 6.1 6.5.2.8.8 3.1 1.7 5.4-3.2 4.8-.4 10.6 1.4 12.9l1 4.6.3 6.5-.5 1c-1.4 1.4-.3 4 .4 5l.1 3c.5 1.4 1.3 4.2.8 5.2s0 2.7.3 3.4v4.9c-3.1.5-2 3.7-1 5.2-.5.7-1.8 2.2-3.2 2.7-1.4.5-1.8 3.6-1.8 5.2a9 9 0 0 1-2.7 4.7c-1.8 1.6-2.8 7.4-3 10.1l-1.6 1.5ZM403.8 31.1l-1.6-.7c1.2 1 2 2.2 2.8 4 1.8 2.8.6 8-.7 12.2a78 78 0 0 1-7.6 17l.5.2 3.3 1.5 5.4 3.3 5.9 3 7.2 3 8.2 2.2c.7.2 3.3 1 8.4 2 5.5.1 21.1 8 28.2 11.8l14 4.5a517 517 0 0 1 23.8 9.3c6.3.5 24.7 17 33.1 25.2l-4.6 11.6-8.2 19.3-3.8 9-5.2 8.6c-2.2 3.2-7.3 10.2-9.4 12.4-1.3-.3-5.6 4.4-7.6 6.7.3 2 .6 6.7-1.4 9.1-2 2.5-1.8 6.9-1.4 8.7.3.8.5 3-1 5.3-1.4 2.4-1 4-.5 4.5-.2.8-.7 2.5-1.4 3.4-.8.8-.4 3.3 0 4.5l.1 3-.1 2.2c-.2.6-.6 2.6-1.1 6.2 3.6 3.3 1.3 5.7-.3 6.5l2.2.3 1.3 2.7 1.5 3.8 1.1 2.3 2.7 7.1 1.6 4.8.3 2.1v1.6l1.9 1.9 4 8.9 1.8 4.5c.5 4 5.5 3.6 8 3l5.9-1.1 7.3-1.7 5.2-1.2 7.3-2.1 8.3-2.7 7.5-2.5 9.8-3.6 8-3 6.3-2.8 3.4-1.6 3-1.3 2.5-1.6 1-.8c1.9-1 2-2.1 1.6-2.9l-.6-1.7-1-2.7-1.6-4.2-1.4-4-.5-1.4-.1-.7v-1.2c.7-1-.4-2.5-1-3v-.2l-1-2-2.4-6-3.3-8.3-2.3-6a3896.4 3896.4 0 0 0-3.1-8.4l-2.2-7.1-1.5-5.7-2.5-8.9-1-3.1-1.2-4.5-2-8.2-2.2-9.3-2.8-11.4-2.6-9.1-.9-3c0-.3-.6-1.5-1-2l-2.5-5.6-3-6.6-5.7-11.3-2.5-4.3-2.3-3.3-.7-.7-4.3-5-3-3.8a73 73 0 0 0-4.2-3.8c-1.1-2-7.6-7-10.8-9.4-6.2-5-23.4-12.8-34-16.7l-11-4-16-7.9-20.1-10-7.1-3.8-2.4-1.5-13-7.3-2.6-3.4-5-3Z" }) }),
|
|
326
326
|
/* @__PURE__ */ t(
|
|
327
327
|
"path",
|
|
328
328
|
{
|
|
@@ -374,7 +374,7 @@ function Me({ name: e, jersey: a, size: n = "regular" }) {
|
|
|
374
374
|
jersey: a,
|
|
375
375
|
className: `${_e.logo}`
|
|
376
376
|
}
|
|
377
|
-
) : /* @__PURE__ */ t(
|
|
377
|
+
) : /* @__PURE__ */ t(W, { variant: "circular", className: `${_e.logo} ${_e.skeleton}` }),
|
|
378
378
|
/* @__PURE__ */ t("span", { className: _e.name, children: e })
|
|
379
379
|
] });
|
|
380
380
|
}
|
|
@@ -383,24 +383,24 @@ function ha(e, a, {
|
|
|
383
383
|
threshold: r = 60,
|
|
384
384
|
cooldownMs: i = 500
|
|
385
385
|
} = {}) {
|
|
386
|
-
const
|
|
386
|
+
const s = U(0), l = U(0);
|
|
387
387
|
Q(() => {
|
|
388
388
|
if (!n) return;
|
|
389
389
|
const d = e.current;
|
|
390
390
|
if (!d) return;
|
|
391
|
-
const h = (
|
|
391
|
+
const h = (g) => {
|
|
392
392
|
const m = a.current;
|
|
393
393
|
if (!m || !m.go) return;
|
|
394
|
-
const { deltaX: u, deltaY: c } =
|
|
394
|
+
const { deltaX: u, deltaY: c } = g;
|
|
395
395
|
if (Math.abs(u) <= Math.abs(c)) return;
|
|
396
|
-
|
|
397
|
-
const
|
|
398
|
-
if (
|
|
399
|
-
const v =
|
|
400
|
-
|
|
396
|
+
g.preventDefault(), s.current += u;
|
|
397
|
+
const f = Date.now();
|
|
398
|
+
if (f - l.current < i || Math.abs(s.current) < r) return;
|
|
399
|
+
const v = s.current > 0 ? ">" : "<";
|
|
400
|
+
s.current = 0, l.current = f, m.go(v);
|
|
401
401
|
};
|
|
402
402
|
return d.addEventListener("wheel", h, { passive: !1 }), () => {
|
|
403
|
-
d.removeEventListener("wheel", h),
|
|
403
|
+
d.removeEventListener("wheel", h), s.current = 0;
|
|
404
404
|
};
|
|
405
405
|
}, [n, r, i, e, a]);
|
|
406
406
|
}
|
|
@@ -409,24 +409,24 @@ const ba = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", va = "ora
|
|
|
409
409
|
right: va,
|
|
410
410
|
left: _a,
|
|
411
411
|
svg: ya
|
|
412
|
-
}, xa = Rt, Sa = Lt, he =
|
|
412
|
+
}, xa = Rt, Sa = Lt, he = $t(
|
|
413
413
|
({
|
|
414
414
|
items: e = [],
|
|
415
415
|
renderItem: a,
|
|
416
416
|
perPage: n = 1,
|
|
417
417
|
gap: r = "0px",
|
|
418
418
|
breakpoints: i,
|
|
419
|
-
options:
|
|
420
|
-
className:
|
|
419
|
+
options: s = {},
|
|
420
|
+
className: l = "",
|
|
421
421
|
onMove: d,
|
|
422
422
|
useIndexAsKey: h = !1,
|
|
423
|
-
enableHorizontalWheel:
|
|
423
|
+
enableHorizontalWheel: g = !0,
|
|
424
424
|
showRightGradient: m = !1
|
|
425
425
|
}, u) => {
|
|
426
|
-
const c = U(null),
|
|
427
|
-
ha(
|
|
428
|
-
enabled:
|
|
429
|
-
}),
|
|
426
|
+
const c = U(null), f = U(null), v = U(e.length), x = U(null), k = U(null), T = U("user");
|
|
427
|
+
ha(f, c, {
|
|
428
|
+
enabled: g
|
|
429
|
+
}), Nt(u, () => ({
|
|
430
430
|
next: () => {
|
|
431
431
|
var I;
|
|
432
432
|
return (I = c.current) == null ? void 0 : I.go(">");
|
|
@@ -442,20 +442,20 @@ const ba = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", va = "ora
|
|
|
442
442
|
}));
|
|
443
443
|
const E = (I) => {
|
|
444
444
|
var K;
|
|
445
|
-
const _ = I.Components.Slides, O = I.Components.Controller, q = I.root.querySelector(".splide__track"), M = (K = q == null ? void 0 : q.clientWidth) != null ? K : 0,
|
|
446
|
-
let V = 0,
|
|
447
|
-
for (let
|
|
448
|
-
const X = _.getAt(
|
|
445
|
+
const _ = I.Components.Slides, O = I.Components.Controller, q = I.root.querySelector(".splide__track"), M = (K = q == null ? void 0 : q.clientWidth) != null ? K : 0, B = O.getIndex(), P = _.getLength();
|
|
446
|
+
let V = 0, G = B;
|
|
447
|
+
for (let j = B; j < P; j++) {
|
|
448
|
+
const X = _.getAt(j);
|
|
449
449
|
if (!X || (V += X.slide.offsetWidth, V > M)) break;
|
|
450
|
-
|
|
450
|
+
G = j;
|
|
451
451
|
}
|
|
452
|
-
return { visibleStart:
|
|
452
|
+
return { visibleStart: B, visibleEnd: G };
|
|
453
453
|
}, b = (I) => {
|
|
454
454
|
const _ = I.root.querySelector(".splide__track"), O = I.root.querySelector(".splide__list");
|
|
455
455
|
return !_ || !O ? !1 : O.scrollWidth > _.clientWidth + 1;
|
|
456
|
-
},
|
|
457
|
-
var K,
|
|
458
|
-
if (
|
|
456
|
+
}, A = U(!1), w = ke((I) => {
|
|
457
|
+
var K, j;
|
|
458
|
+
if (A.current) return;
|
|
459
459
|
const O = I.Components.Slides.getLength(), q = T.current;
|
|
460
460
|
if (T.current = "user", !b(I)) {
|
|
461
461
|
d == null || d({
|
|
@@ -469,16 +469,16 @@ const ba = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", va = "ora
|
|
|
469
469
|
});
|
|
470
470
|
return;
|
|
471
471
|
}
|
|
472
|
-
const { visibleStart: M, visibleEnd:
|
|
473
|
-
m && ((K = x.current) == null || K.style.setProperty("--gradient-opacity", P ? "0" : "1"), (
|
|
474
|
-
const
|
|
472
|
+
const { visibleStart: M, visibleEnd: B } = E(I), P = M === 0, V = B === O - 1;
|
|
473
|
+
m && ((K = x.current) == null || K.style.setProperty("--gradient-opacity", P ? "0" : "1"), (j = k.current) == null || j.style.setProperty("--gradient-opacity", V ? "0" : "1"));
|
|
474
|
+
const G = I.Components.Controller.getIndex();
|
|
475
475
|
d == null || d({
|
|
476
|
-
index:
|
|
476
|
+
index: G,
|
|
477
477
|
isStart: P,
|
|
478
478
|
isEnd: V,
|
|
479
479
|
total: O,
|
|
480
480
|
visibleStart: M,
|
|
481
|
-
visibleEnd:
|
|
481
|
+
visibleEnd: B,
|
|
482
482
|
source: q
|
|
483
483
|
});
|
|
484
484
|
}, [d]);
|
|
@@ -488,11 +488,11 @@ const ba = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", va = "ora
|
|
|
488
488
|
if (!I) return;
|
|
489
489
|
const _ = v.current !== e.length;
|
|
490
490
|
v.current = e.length, _ && requestAnimationFrame(() => {
|
|
491
|
-
|
|
491
|
+
A.current = !0;
|
|
492
492
|
try {
|
|
493
493
|
I.refresh();
|
|
494
494
|
} finally {
|
|
495
|
-
|
|
495
|
+
A.current = !1;
|
|
496
496
|
}
|
|
497
497
|
T.current = "resize", w(I);
|
|
498
498
|
});
|
|
@@ -501,20 +501,20 @@ const ba = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", va = "ora
|
|
|
501
501
|
var _;
|
|
502
502
|
const I = (_ = c.current) == null ? void 0 : _.splide;
|
|
503
503
|
if (I) {
|
|
504
|
-
|
|
504
|
+
A.current = !0;
|
|
505
505
|
try {
|
|
506
506
|
I.go(0, !1);
|
|
507
507
|
} finally {
|
|
508
|
-
|
|
508
|
+
A.current = !1;
|
|
509
509
|
}
|
|
510
510
|
T.current = "resize", w(I);
|
|
511
511
|
}
|
|
512
|
-
}, [w]),
|
|
512
|
+
}, [w]), L = ke(
|
|
513
513
|
(I) => {
|
|
514
514
|
T.current = "mounted", w(I);
|
|
515
515
|
},
|
|
516
516
|
[w]
|
|
517
|
-
),
|
|
517
|
+
), F = {
|
|
518
518
|
type: "slide",
|
|
519
519
|
trimSpace: !1,
|
|
520
520
|
drag: !0,
|
|
@@ -526,23 +526,23 @@ const ba = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", va = "ora
|
|
|
526
526
|
perPage: n,
|
|
527
527
|
gap: r,
|
|
528
528
|
breakpoints: i,
|
|
529
|
-
...
|
|
530
|
-
...
|
|
529
|
+
...s,
|
|
530
|
+
...g ? { wheel: !1 } : {}
|
|
531
531
|
};
|
|
532
532
|
return /* @__PURE__ */ y(
|
|
533
533
|
"div",
|
|
534
534
|
{
|
|
535
|
-
ref:
|
|
536
|
-
className:
|
|
535
|
+
ref: f,
|
|
536
|
+
className: l,
|
|
537
537
|
style: { width: "100%", position: "relative", height: "100%" },
|
|
538
538
|
children: [
|
|
539
539
|
/* @__PURE__ */ t(
|
|
540
540
|
xa,
|
|
541
541
|
{
|
|
542
542
|
ref: c,
|
|
543
|
-
options:
|
|
543
|
+
options: F,
|
|
544
544
|
onMove: w,
|
|
545
|
-
onMounted:
|
|
545
|
+
onMounted: L,
|
|
546
546
|
onResize: S,
|
|
547
547
|
children: e.map((I, _) => {
|
|
548
548
|
var O;
|
|
@@ -612,9 +612,9 @@ const ba = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", va = "ora
|
|
|
612
612
|
size: n = "sm",
|
|
613
613
|
fillParent: r = !1
|
|
614
614
|
}) => {
|
|
615
|
-
const i = n === "lg" ? { w: 280, h: 352 } : { w: 152, h: 168 },
|
|
615
|
+
const i = n === "lg" ? { w: 280, h: 352 } : { w: 152, h: 168 }, s = (d) => {
|
|
616
616
|
d.stopPropagation(), a == null || a();
|
|
617
|
-
},
|
|
617
|
+
}, l = r ? { width: "100%", height: "100%" } : { width: `${i.w}px`, height: `${i.h}px` };
|
|
618
618
|
return /* @__PURE__ */ y(
|
|
619
619
|
z,
|
|
620
620
|
{
|
|
@@ -626,7 +626,7 @@ const ba = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", va = "ora
|
|
|
626
626
|
overflow: "hidden",
|
|
627
627
|
boxSizing: "border-box",
|
|
628
628
|
transition: "transform .15s ease, box-shadow .15s ease",
|
|
629
|
-
...
|
|
629
|
+
...l,
|
|
630
630
|
"&:hover": {
|
|
631
631
|
transform: "translateY(-2px)",
|
|
632
632
|
boxShadow: 8,
|
|
@@ -686,7 +686,7 @@ const ba = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", va = "ora
|
|
|
686
686
|
transition: "opacity .15s ease, transform .15s ease",
|
|
687
687
|
pointerEvents: "none"
|
|
688
688
|
},
|
|
689
|
-
children: /* @__PURE__ */ t(J, { variant: "primary", size: "md", onClick:
|
|
689
|
+
children: /* @__PURE__ */ t(J, { variant: "primary", size: "md", onClick: s, children: "Jugar" })
|
|
690
690
|
}
|
|
691
691
|
)
|
|
692
692
|
]
|
|
@@ -703,16 +703,16 @@ function wa({
|
|
|
703
703
|
md: { w: 186, h: 264, r: 22.6, font: 64 }
|
|
704
704
|
}
|
|
705
705
|
}) {
|
|
706
|
-
var u, c,
|
|
707
|
-
const
|
|
708
|
-
var T, E, b,
|
|
706
|
+
var u, c, f, v;
|
|
707
|
+
const s = (x, k) => {
|
|
708
|
+
var T, E, b, A;
|
|
709
709
|
return {
|
|
710
710
|
xs: (E = (T = i.xs) == null ? void 0 : T[x]) != null ? E : k,
|
|
711
|
-
md: (
|
|
711
|
+
md: (A = (b = i.md) == null ? void 0 : b[x]) != null ? A : k
|
|
712
712
|
};
|
|
713
|
-
},
|
|
713
|
+
}, l = s("w", 186), d = s("h", 264), h = s("r", 22.6), g = s("font", 64), m = {
|
|
714
714
|
xs: Math.round(((c = (u = i.xs) == null ? void 0 : u.font) != null ? c : 64) * 0.28),
|
|
715
|
-
md: Math.round(((v = (
|
|
715
|
+
md: Math.round(((v = (f = i.md) == null ? void 0 : f.font) != null ? v : 64) * 0.28)
|
|
716
716
|
};
|
|
717
717
|
return /* @__PURE__ */ y(
|
|
718
718
|
z,
|
|
@@ -720,10 +720,10 @@ function wa({
|
|
|
720
720
|
sx: {
|
|
721
721
|
position: "relative",
|
|
722
722
|
width: "100%",
|
|
723
|
-
maxWidth: { xs: `${
|
|
723
|
+
maxWidth: { xs: `${l.xs}px`, md: `${l.md}px` },
|
|
724
724
|
aspectRatio: {
|
|
725
|
-
xs: `${
|
|
726
|
-
md: `${
|
|
725
|
+
xs: `${l.xs}/${d.xs}`,
|
|
726
|
+
md: `${l.md}/${d.md}`
|
|
727
727
|
},
|
|
728
728
|
borderRadius: { xs: `${h.xs}px`, md: `${h.md}px` },
|
|
729
729
|
boxSizing: "border-box",
|
|
@@ -751,7 +751,7 @@ function wa({
|
|
|
751
751
|
overflow: "hidden"
|
|
752
752
|
},
|
|
753
753
|
children: r ? /* @__PURE__ */ t(
|
|
754
|
-
|
|
754
|
+
W,
|
|
755
755
|
{
|
|
756
756
|
variant: "rectangular",
|
|
757
757
|
width: "100%",
|
|
@@ -788,8 +788,8 @@ function wa({
|
|
|
788
788
|
},
|
|
789
789
|
fontFamily: '"secondary", sans-serif',
|
|
790
790
|
fontSize: {
|
|
791
|
-
xs: `${
|
|
792
|
-
md: `${
|
|
791
|
+
xs: `${g.xs}px`,
|
|
792
|
+
md: `${g.md}px`
|
|
793
793
|
},
|
|
794
794
|
lineHeight: 1,
|
|
795
795
|
color: "#3CC666",
|
|
@@ -810,10 +810,10 @@ const Je = ({
|
|
|
810
810
|
providerName: n,
|
|
811
811
|
machine: r,
|
|
812
812
|
onClick: i,
|
|
813
|
-
loading:
|
|
813
|
+
loading: s = !1
|
|
814
814
|
}) => {
|
|
815
|
-
var
|
|
816
|
-
return
|
|
815
|
+
var l;
|
|
816
|
+
return s ? /* @__PURE__ */ t(
|
|
817
817
|
z,
|
|
818
818
|
{
|
|
819
819
|
sx: {
|
|
@@ -825,7 +825,7 @@ const Je = ({
|
|
|
825
825
|
height: { xs: 200, md: 380 }
|
|
826
826
|
},
|
|
827
827
|
children: /* @__PURE__ */ t(
|
|
828
|
-
|
|
828
|
+
W,
|
|
829
829
|
{
|
|
830
830
|
variant: "rectangular",
|
|
831
831
|
width: "100%",
|
|
@@ -902,7 +902,7 @@ const Je = ({
|
|
|
902
902
|
fontSize: { xs: 11, md: 14 },
|
|
903
903
|
textTransform: "capitalize"
|
|
904
904
|
},
|
|
905
|
-
children: (
|
|
905
|
+
children: (l = a != null ? a : n) != null ? l : ""
|
|
906
906
|
}
|
|
907
907
|
)
|
|
908
908
|
}
|
|
@@ -911,7 +911,7 @@ const Je = ({
|
|
|
911
911
|
}
|
|
912
912
|
);
|
|
913
913
|
}, ze = 12, Pe = ({ r: e = 16 }) => /* @__PURE__ */ t(z, { sx: { width: "100%", height: "100%", borderRadius: e, overflow: "hidden" }, children: /* @__PURE__ */ t(
|
|
914
|
-
|
|
914
|
+
W,
|
|
915
915
|
{
|
|
916
916
|
variant: "rectangular",
|
|
917
917
|
width: "100%",
|
|
@@ -932,7 +932,7 @@ const Je = ({
|
|
|
932
932
|
loading: r = !1,
|
|
933
933
|
gridSkeletonCount: i = 4
|
|
934
934
|
}) => {
|
|
935
|
-
var
|
|
935
|
+
var s, l;
|
|
936
936
|
if (a === "mosaic") {
|
|
937
937
|
const d = e[0], h = e.slice(1, 5);
|
|
938
938
|
return /* @__PURE__ */ y(
|
|
@@ -972,7 +972,7 @@ const Je = ({
|
|
|
972
972
|
children: r ? /* @__PURE__ */ t(Pe, {}) : d && /* @__PURE__ */ t(
|
|
973
973
|
Te,
|
|
974
974
|
{
|
|
975
|
-
imageUrl: `https://olimpo.bet${(
|
|
975
|
+
imageUrl: `https://olimpo.bet${(l = (s = d.background) != null ? s : d.imageUrl) != null ? l : ""}`,
|
|
976
976
|
size: "lg",
|
|
977
977
|
fillParent: !0,
|
|
978
978
|
onClick: () => n == null ? void 0 : n(d, 0)
|
|
@@ -980,7 +980,7 @@ const Je = ({
|
|
|
980
980
|
)
|
|
981
981
|
}
|
|
982
982
|
),
|
|
983
|
-
(r ? Array.from({ length: 4 }) : h).map((
|
|
983
|
+
(r ? Array.from({ length: 4 }) : h).map((g, m) => {
|
|
984
984
|
var u, c;
|
|
985
985
|
return /* @__PURE__ */ t(
|
|
986
986
|
z,
|
|
@@ -994,14 +994,14 @@ const Je = ({
|
|
|
994
994
|
children: r ? /* @__PURE__ */ t(Pe, {}) : /* @__PURE__ */ t(
|
|
995
995
|
Te,
|
|
996
996
|
{
|
|
997
|
-
imageUrl: `https://olimpo.bet${(c = (u =
|
|
997
|
+
imageUrl: `https://olimpo.bet${(c = (u = g.background) != null ? u : g.imageUrl) != null ? c : ""}`,
|
|
998
998
|
size: "sm",
|
|
999
999
|
fillParent: !0,
|
|
1000
|
-
onClick: () => n == null ? void 0 : n(
|
|
1000
|
+
onClick: () => n == null ? void 0 : n(g, m + 1)
|
|
1001
1001
|
}
|
|
1002
1002
|
)
|
|
1003
1003
|
},
|
|
1004
|
-
r ? `sk-${m}` :
|
|
1004
|
+
r ? `sk-${m}` : g.id
|
|
1005
1005
|
);
|
|
1006
1006
|
})
|
|
1007
1007
|
]
|
|
@@ -1025,7 +1025,7 @@ const Je = ({
|
|
|
1025
1025
|
gridAutoFlow: "column"
|
|
1026
1026
|
},
|
|
1027
1027
|
children: (r ? Array.from({ length: i }) : e).map((d, h) => {
|
|
1028
|
-
var
|
|
1028
|
+
var g, m, u;
|
|
1029
1029
|
return /* @__PURE__ */ t(
|
|
1030
1030
|
z,
|
|
1031
1031
|
{
|
|
@@ -1033,7 +1033,7 @@ const Je = ({
|
|
|
1033
1033
|
children: r ? /* @__PURE__ */ t(Pe, {}) : /* @__PURE__ */ t(
|
|
1034
1034
|
Te,
|
|
1035
1035
|
{
|
|
1036
|
-
imageUrl: `https://olimpo.bet${(m = (
|
|
1036
|
+
imageUrl: `https://olimpo.bet${(m = (g = d.background) != null ? g : d.imageUrl) != null ? m : ""}`,
|
|
1037
1037
|
size: "sm",
|
|
1038
1038
|
fillParent: !0,
|
|
1039
1039
|
onClick: () => n == null ? void 0 : n(d, h)
|
|
@@ -1051,12 +1051,12 @@ const Je = ({
|
|
|
1051
1051
|
subtitle: n,
|
|
1052
1052
|
buttonText: r,
|
|
1053
1053
|
onButtonClick: i,
|
|
1054
|
-
backgroundImage:
|
|
1055
|
-
alt:
|
|
1054
|
+
backgroundImage: s,
|
|
1055
|
+
alt: l,
|
|
1056
1056
|
className: d = "",
|
|
1057
1057
|
variant: h = "small"
|
|
1058
1058
|
}) => {
|
|
1059
|
-
const
|
|
1059
|
+
const g = a ? a.slice(0, 2) : "", m = a ? a.slice(2) : "", u = h === "large";
|
|
1060
1060
|
return /* @__PURE__ */ y(
|
|
1061
1061
|
z,
|
|
1062
1062
|
{
|
|
@@ -1071,7 +1071,7 @@ const Je = ({
|
|
|
1071
1071
|
mx: "auto"
|
|
1072
1072
|
},
|
|
1073
1073
|
children: [
|
|
1074
|
-
|
|
1074
|
+
s && /* @__PURE__ */ t(
|
|
1075
1075
|
z,
|
|
1076
1076
|
{
|
|
1077
1077
|
sx: {
|
|
@@ -1088,8 +1088,8 @@ const Je = ({
|
|
|
1088
1088
|
z,
|
|
1089
1089
|
{
|
|
1090
1090
|
component: "img",
|
|
1091
|
-
src:
|
|
1092
|
-
alt:
|
|
1091
|
+
src: s,
|
|
1092
|
+
alt: l != null ? l : "Fondo promocional",
|
|
1093
1093
|
sx: {
|
|
1094
1094
|
width: "100%",
|
|
1095
1095
|
height: "100%",
|
|
@@ -1162,7 +1162,7 @@ const Je = ({
|
|
|
1162
1162
|
{
|
|
1163
1163
|
component: "span",
|
|
1164
1164
|
sx: { fontSize: { xs: 35, md: 48 }, mr: 0.5 },
|
|
1165
|
-
children:
|
|
1165
|
+
children: g
|
|
1166
1166
|
}
|
|
1167
1167
|
),
|
|
1168
1168
|
/* @__PURE__ */ t(
|
|
@@ -1203,8 +1203,8 @@ const Je = ({
|
|
|
1203
1203
|
onClick: n,
|
|
1204
1204
|
imgAlt: r = "Club Olimpo",
|
|
1205
1205
|
imgSrcMobile: i,
|
|
1206
|
-
imgSrcDesktopBg:
|
|
1207
|
-
imgSrcDesktopLogo:
|
|
1206
|
+
imgSrcDesktopBg: s,
|
|
1207
|
+
imgSrcDesktopLogo: l
|
|
1208
1208
|
}) => /* @__PURE__ */ y(pe, { children: [
|
|
1209
1209
|
/* @__PURE__ */ t("div", { className: "orc-co-bgMobile", children: /* @__PURE__ */ t(
|
|
1210
1210
|
"img",
|
|
@@ -1215,19 +1215,19 @@ const Je = ({
|
|
|
1215
1215
|
}
|
|
1216
1216
|
) }),
|
|
1217
1217
|
/* @__PURE__ */ t("div", { className: "orc-co-bgDesktop", children: /* @__PURE__ */ y("div", { className: "orc-co-desktopInner", children: [
|
|
1218
|
-
|
|
1218
|
+
s && /* @__PURE__ */ t("div", { className: "orc-co-fillHost", children: /* @__PURE__ */ t(
|
|
1219
1219
|
"img",
|
|
1220
1220
|
{
|
|
1221
|
-
src:
|
|
1221
|
+
src: s,
|
|
1222
1222
|
alt: `${r} fondo`,
|
|
1223
1223
|
className: "orc-co-bgDesktopImg"
|
|
1224
1224
|
}
|
|
1225
1225
|
) }),
|
|
1226
1226
|
/* @__PURE__ */ y("div", { className: "orc-co-desktopContent", children: [
|
|
1227
|
-
|
|
1227
|
+
l && /* @__PURE__ */ t(
|
|
1228
1228
|
"img",
|
|
1229
1229
|
{
|
|
1230
|
-
src:
|
|
1230
|
+
src: l,
|
|
1231
1231
|
alt: `${r} logo`,
|
|
1232
1232
|
className: "orc-co-logoImg"
|
|
1233
1233
|
}
|
|
@@ -1240,22 +1240,22 @@ const Je = ({
|
|
|
1240
1240
|
/* @__PURE__ */ t("p", { className: "orc-co-caption", children: e }),
|
|
1241
1241
|
/* @__PURE__ */ t(J, { onClick: n, variant: "primary", size: "md", children: a })
|
|
1242
1242
|
] })
|
|
1243
|
-
] }), Oa = "oraculo__OraculoEventCombinadasCard-module__card___ulQeY", Ea = "oraculo__OraculoEventCombinadasCard-module__combinadas___Gxrld", Ca = "oraculo__OraculoEventCombinadasCard-module__combinadasScroll___47cZl", ka = "oraculo__OraculoEventCombinadasCard-module__apuestaItem___YnYMy", Ta = "oraculo__OraculoEventCombinadasCard-module__lineContainer___G5rbU",
|
|
1243
|
+
] }), Oa = "oraculo__OraculoEventCombinadasCard-module__card___ulQeY", Ea = "oraculo__OraculoEventCombinadasCard-module__combinadas___Gxrld", Ca = "oraculo__OraculoEventCombinadasCard-module__combinadasScroll___47cZl", ka = "oraculo__OraculoEventCombinadasCard-module__apuestaItem___YnYMy", Ta = "oraculo__OraculoEventCombinadasCard-module__lineContainer___G5rbU", $a = "oraculo__OraculoEventCombinadasCard-module__circle___eehm-", Na = "oraculo__OraculoEventCombinadasCard-module__line___Eb2pK", Ma = "oraculo__OraculoEventCombinadasCard-module__apuestaText___b5s7S", Aa = "oraculo__OraculoEventCombinadasCard-module__cuotaTotal___Lohvu", ce = {
|
|
1244
1244
|
card: Oa,
|
|
1245
1245
|
combinadas: Ea,
|
|
1246
1246
|
combinadasScroll: Ca,
|
|
1247
1247
|
apuestaItem: ka,
|
|
1248
1248
|
lineContainer: Ta,
|
|
1249
|
-
circle:
|
|
1250
|
-
line:
|
|
1249
|
+
circle: $a,
|
|
1250
|
+
line: Na,
|
|
1251
1251
|
apuestaText: Ma,
|
|
1252
|
-
cuotaTotal:
|
|
1252
|
+
cuotaTotal: Aa
|
|
1253
1253
|
};
|
|
1254
1254
|
function Ue(e, a) {
|
|
1255
1255
|
const n = Array.isArray(a) ? a : [a];
|
|
1256
1256
|
sessionStorage.setItem("landingOutcomes", JSON.stringify(n)), window.location.href = e;
|
|
1257
1257
|
}
|
|
1258
|
-
function
|
|
1258
|
+
function Ba() {
|
|
1259
1259
|
window.location.href = "/deportes#in-play";
|
|
1260
1260
|
}
|
|
1261
1261
|
function Ra() {
|
|
@@ -1279,37 +1279,37 @@ const bt = Mt(void 0), vt = ({ children: e, docId: a, moduleId: n }) => {
|
|
|
1279
1279
|
const r = fe.useMemo(() => ({ docId: a, moduleId: n }), [a, n]);
|
|
1280
1280
|
return /* @__PURE__ */ t(bt.Provider, { value: r, children: e });
|
|
1281
1281
|
}, _t = () => {
|
|
1282
|
-
const e =
|
|
1282
|
+
const e = At(bt);
|
|
1283
1283
|
if (!e)
|
|
1284
1284
|
throw new Error("useDocContext debe usarse dentro de DocIdProvider");
|
|
1285
1285
|
return e;
|
|
1286
|
-
}, re = () => _t().docId,
|
|
1286
|
+
}, re = () => _t().docId, le = () => _t().moduleId;
|
|
1287
1287
|
function Fa({ coupon: e }) {
|
|
1288
|
-
var
|
|
1288
|
+
var g;
|
|
1289
1289
|
const a = oe(), n = re();
|
|
1290
1290
|
function r(m) {
|
|
1291
|
-
var
|
|
1291
|
+
var f, v;
|
|
1292
1292
|
const u = [], c = Array.from(
|
|
1293
1293
|
new Map(
|
|
1294
|
-
((
|
|
1294
|
+
((f = m == null ? void 0 : m.events) != null ? f : []).filter(Boolean).map((x) => [x.id, x])
|
|
1295
1295
|
).values()
|
|
1296
1296
|
);
|
|
1297
1297
|
return c.forEach((x) => {
|
|
1298
1298
|
var b;
|
|
1299
1299
|
const k = (b = x.betoffers) != null ? b : [], T = x.homeName, E = x.awayName;
|
|
1300
|
-
k.forEach((
|
|
1301
|
-
var
|
|
1302
|
-
if (!((
|
|
1303
|
-
const w =
|
|
1300
|
+
k.forEach((A) => {
|
|
1301
|
+
var F, I, _, O, q, M, B;
|
|
1302
|
+
if (!((F = A == null ? void 0 : A.outcomes) != null && F.length)) return;
|
|
1303
|
+
const w = A.outcomes[0];
|
|
1304
1304
|
if (!w) return;
|
|
1305
1305
|
let S = "";
|
|
1306
|
-
const
|
|
1307
|
-
["Más de", "Mas de", "Over"].includes(w.label) ? (S = `Más de ${
|
|
1306
|
+
const L = w != null && w.line ? w.line / 1e3 : "";
|
|
1307
|
+
["Más de", "Mas de", "Over"].includes(w.label) ? (S = `Más de ${L}`, w.participant && (S = `${w.participant} - ${S}`)) : ["Menos de", "Menos", "Under"].includes(w.label) ? (S = `Menos de ${L}`, w.participant && (S = `${w.participant} - ${S}`)) : ["Sí", "No"].includes(w.label) ? (S = w.label, w.participant && (S = `${w.participant} - ${S}`)) : ["1X", "12", "X2"].includes(w.label) ? (w.label === "1X" && (S = `${T} o Empate`), w.label === "12" && (S = `${T} o ${E}`), w.label === "X2" && (S = `${E} o Empate`)) : (S = (_ = (I = w.participant) != null ? I : w.label) != null ? _ : "", L !== "" && S === w.label && (S = `${w.label} ${L}`)), u.push({
|
|
1308
1308
|
id: w.id,
|
|
1309
1309
|
value: S,
|
|
1310
|
-
label: (q = (O =
|
|
1310
|
+
label: (q = (O = A.criterion) == null ? void 0 : O.label) != null ? q : "",
|
|
1311
1311
|
odds: (M = w.odds) != null ? M : 0,
|
|
1312
|
-
position: (
|
|
1312
|
+
position: (B = w.position) != null ? B : 0,
|
|
1313
1313
|
eventId: x.id
|
|
1314
1314
|
});
|
|
1315
1315
|
});
|
|
@@ -1336,16 +1336,16 @@ function Fa({ coupon: e }) {
|
|
|
1336
1336
|
}
|
|
1337
1337
|
return "/deportes#home";
|
|
1338
1338
|
}
|
|
1339
|
-
const
|
|
1340
|
-
const c = Array.isArray(m) ? m : [m],
|
|
1339
|
+
const s = (m, u) => {
|
|
1340
|
+
const c = Array.isArray(m) ? m : [m], f = Array.from(
|
|
1341
1341
|
new Set(
|
|
1342
|
-
|
|
1342
|
+
l.outcomes.map((k) => {
|
|
1343
1343
|
var E;
|
|
1344
1344
|
const T = h.get(Number(k.eventId));
|
|
1345
1345
|
return (E = T == null ? void 0 : T.name) != null ? E : "";
|
|
1346
1346
|
})
|
|
1347
1347
|
)
|
|
1348
|
-
).filter(Boolean), v =
|
|
1348
|
+
).filter(Boolean), v = f.length > 0 ? f.join(" + ") : JSON.stringify(c), x = u ? `${v} - Cuota: ${u}` : v;
|
|
1349
1349
|
a({
|
|
1350
1350
|
element: "evento_semana_outcome",
|
|
1351
1351
|
label: `Landing: ${n} - OraculoEventCombinadasCard - Click: ${x}`,
|
|
@@ -1358,9 +1358,9 @@ function Fa({ coupon: e }) {
|
|
|
1358
1358
|
tags: { section: "OraculoEventCombinadasCard", outcomes: x }
|
|
1359
1359
|
}), Ue(i(e), m);
|
|
1360
1360
|
};
|
|
1361
|
-
if (!((
|
|
1362
|
-
const
|
|
1363
|
-
|
|
1361
|
+
if (!((g = e == null ? void 0 : e.events) != null && g.length)) return null;
|
|
1362
|
+
const l = r(e), d = l.outcomes.reduce((m, u) => (m[u.eventId] || (m[u.eventId] = []), m[u.eventId].push(u), m), {}), h = new Map(
|
|
1363
|
+
l.events.map((m) => [m.id, m])
|
|
1364
1364
|
);
|
|
1365
1365
|
return /* @__PURE__ */ y("div", { className: ce.card, children: [
|
|
1366
1366
|
/* @__PURE__ */ t("div", { className: ce.combinadas, children: /* @__PURE__ */ t("div", { className: ce.combinadasScroll, children: /* @__PURE__ */ t(H, { direction: "column", spacing: 1.5, useFlexGap: !0, children: Object.entries(d).reverse().map(([m, u]) => {
|
|
@@ -1387,15 +1387,15 @@ function Fa({ coupon: e }) {
|
|
|
1387
1387
|
src: "/assets/img/home/Combinadas/line.png"
|
|
1388
1388
|
}
|
|
1389
1389
|
),
|
|
1390
|
-
u.map((
|
|
1390
|
+
u.map((f, v) => /* @__PURE__ */ y("div", { className: ce.apuestaItem, children: [
|
|
1391
1391
|
/* @__PURE__ */ y("div", { className: ce.lineContainer, children: [
|
|
1392
1392
|
/* @__PURE__ */ t("div", { className: ce.circle }),
|
|
1393
1393
|
v < u.length - 1 && /* @__PURE__ */ t("div", { className: ce.line })
|
|
1394
1394
|
] }),
|
|
1395
1395
|
/* @__PURE__ */ y("div", { className: ce.apuestaText, children: [
|
|
1396
|
-
/* @__PURE__ */ t("strong", { children:
|
|
1396
|
+
/* @__PURE__ */ t("strong", { children: f.value }),
|
|
1397
1397
|
" | ",
|
|
1398
|
-
|
|
1398
|
+
f.label
|
|
1399
1399
|
] })
|
|
1400
1400
|
] }, `${m}-${v}`))
|
|
1401
1401
|
]
|
|
@@ -1406,15 +1406,15 @@ function Fa({ coupon: e }) {
|
|
|
1406
1406
|
/* @__PURE__ */ y(
|
|
1407
1407
|
"button",
|
|
1408
1408
|
{
|
|
1409
|
-
onClick: () =>
|
|
1410
|
-
|
|
1411
|
-
|
|
1409
|
+
onClick: () => s(
|
|
1410
|
+
l.outcomes.map((m) => m.id),
|
|
1411
|
+
l.total
|
|
1412
1412
|
),
|
|
1413
1413
|
className: ce.cuotaTotal,
|
|
1414
1414
|
children: [
|
|
1415
1415
|
/* @__PURE__ */ y("span", { children: [
|
|
1416
1416
|
"Cuota total: ",
|
|
1417
|
-
/* @__PURE__ */ t("strong", { children:
|
|
1417
|
+
/* @__PURE__ */ t("strong", { children: l.total })
|
|
1418
1418
|
] }),
|
|
1419
1419
|
/* @__PURE__ */ t(
|
|
1420
1420
|
"img",
|
|
@@ -1449,60 +1449,60 @@ function qa({
|
|
|
1449
1449
|
href: n,
|
|
1450
1450
|
target: r,
|
|
1451
1451
|
rel: i,
|
|
1452
|
-
type:
|
|
1453
|
-
disabled:
|
|
1452
|
+
type: s = "button",
|
|
1453
|
+
disabled: l = !1,
|
|
1454
1454
|
variant: d = "primary",
|
|
1455
1455
|
size: h,
|
|
1456
|
-
fullWidth:
|
|
1456
|
+
fullWidth: g = !1,
|
|
1457
1457
|
fullHeight: m = !1,
|
|
1458
1458
|
className: u = "",
|
|
1459
1459
|
ariaLabel: c,
|
|
1460
|
-
leftIcon:
|
|
1460
|
+
leftIcon: f,
|
|
1461
1461
|
rightIcon: v,
|
|
1462
1462
|
iconOnly: x
|
|
1463
1463
|
}) {
|
|
1464
|
-
const k = !!e && e !== !0, b = (!!
|
|
1464
|
+
const k = !!e && e !== !0, b = (!!f ? 1 : 0) + (!!v ? 1 : 0) == 1, A = x != null ? x : b && !k, w = [
|
|
1465
1465
|
de["orc-btn"],
|
|
1466
1466
|
// base
|
|
1467
1467
|
de[`orc-btn--${d}`],
|
|
1468
1468
|
// variant primary/secondary/tertiary
|
|
1469
1469
|
h ? de[`orc-btn--${h}`] : "",
|
|
1470
1470
|
// sm / md / lg
|
|
1471
|
-
|
|
1471
|
+
g ? de["orc-btn--full"] : "",
|
|
1472
1472
|
m ? de["orc-btn--fullHeight"] : "",
|
|
1473
|
-
|
|
1473
|
+
A ? de["orc-btn--iconOnly"] : "",
|
|
1474
1474
|
u
|
|
1475
1475
|
].filter(Boolean).join(" "), S = /* @__PURE__ */ y(pe, { children: [
|
|
1476
|
-
|
|
1477
|
-
!
|
|
1476
|
+
f && /* @__PURE__ */ t("span", { className: de["orc-btn__icon"], children: f }),
|
|
1477
|
+
!A && /* @__PURE__ */ t("span", { className: de["orc-btn__label"], children: e }),
|
|
1478
1478
|
v && /* @__PURE__ */ t("span", { className: de["orc-btn__icon"], children: v })
|
|
1479
|
-
] }),
|
|
1479
|
+
] }), L = l ? !0 : void 0;
|
|
1480
1480
|
return n ? /* @__PURE__ */ t(
|
|
1481
|
-
|
|
1481
|
+
st,
|
|
1482
1482
|
{
|
|
1483
1483
|
href: n,
|
|
1484
1484
|
target: r,
|
|
1485
1485
|
rel: i,
|
|
1486
1486
|
"aria-label": c,
|
|
1487
|
-
"aria-disabled":
|
|
1488
|
-
tabIndex:
|
|
1487
|
+
"aria-disabled": L,
|
|
1488
|
+
tabIndex: L ? -1 : void 0,
|
|
1489
1489
|
className: w,
|
|
1490
|
-
onClick:
|
|
1490
|
+
onClick: L ? (F) => F.preventDefault() : a,
|
|
1491
1491
|
children: S
|
|
1492
1492
|
}
|
|
1493
1493
|
) : /* @__PURE__ */ t(
|
|
1494
1494
|
"button",
|
|
1495
1495
|
{
|
|
1496
|
-
type:
|
|
1496
|
+
type: s,
|
|
1497
1497
|
onClick: a,
|
|
1498
|
-
disabled: !!
|
|
1498
|
+
disabled: !!L,
|
|
1499
1499
|
"aria-label": c,
|
|
1500
1500
|
className: w,
|
|
1501
1501
|
children: S
|
|
1502
1502
|
}
|
|
1503
1503
|
);
|
|
1504
1504
|
}
|
|
1505
|
-
const za = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", Pa = "oraculo__OraculoEventEnVivoCard-module__customButtonLabel___QRhk7", Da = "oraculo__OraculoEventEnVivoCard-module__customButtonDisabled___jwioF",
|
|
1505
|
+
const za = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", Pa = "oraculo__OraculoEventEnVivoCard-module__customButtonLabel___QRhk7", Da = "oraculo__OraculoEventEnVivoCard-module__customButtonDisabled___jwioF", $e = {
|
|
1506
1506
|
cardWrapper: za,
|
|
1507
1507
|
customButtonLabel: Pa,
|
|
1508
1508
|
customButtonDisabled: Da
|
|
@@ -1518,23 +1518,23 @@ const za = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", Pa = "
|
|
|
1518
1518
|
number: "FFFFFF",
|
|
1519
1519
|
real: !1,
|
|
1520
1520
|
type: "short_sleeves"
|
|
1521
|
-
},
|
|
1522
|
-
var i,
|
|
1521
|
+
}, Ae = (e, a, n = "player") => {
|
|
1522
|
+
var i, s;
|
|
1523
1523
|
if (e === void 0)
|
|
1524
1524
|
return null;
|
|
1525
1525
|
if (e === null)
|
|
1526
1526
|
return a === "home" ? Ye : Qe;
|
|
1527
|
-
const r = (
|
|
1527
|
+
const r = (s = (i = e == null ? void 0 : e.jerseys) == null ? void 0 : i[a]) == null ? void 0 : s[n];
|
|
1528
1528
|
return r || (a === "home" ? Ye : Qe);
|
|
1529
1529
|
};
|
|
1530
1530
|
function Ua({ event: e, liveData: a, betOffers: n, jersey: r }) {
|
|
1531
|
-
var d, h,
|
|
1531
|
+
var d, h, g, m, u, c, f, v, x, k, T;
|
|
1532
1532
|
const i = n == null ? void 0 : n.find(
|
|
1533
1533
|
(E) => {
|
|
1534
1534
|
var b;
|
|
1535
1535
|
return ((b = E.betOfferType) == null ? void 0 : b.id) === 2;
|
|
1536
1536
|
}
|
|
1537
|
-
),
|
|
1537
|
+
), s = {
|
|
1538
1538
|
englishLabel: "",
|
|
1539
1539
|
type: "",
|
|
1540
1540
|
betOfferId: 0,
|
|
@@ -1543,33 +1543,33 @@ function Ua({ event: e, liveData: a, betOffers: n, jersey: r }) {
|
|
|
1543
1543
|
oddsAmerican: "",
|
|
1544
1544
|
status: "INACTIVE",
|
|
1545
1545
|
cashOutStatus: "SUSPENDED"
|
|
1546
|
-
},
|
|
1547
|
-
{ ...
|
|
1548
|
-
{ ...
|
|
1549
|
-
{ ...
|
|
1546
|
+
}, l = [
|
|
1547
|
+
{ ...s, id: -1, label: "1", odds: void 0 },
|
|
1548
|
+
{ ...s, id: -2, label: "X", odds: void 0 },
|
|
1549
|
+
{ ...s, id: -3, label: "2", odds: void 0 }
|
|
1550
1550
|
];
|
|
1551
|
-
return /* @__PURE__ */ t("div", { className:
|
|
1551
|
+
return /* @__PURE__ */ t("div", { className: $e.cardWrapper, children: /* @__PURE__ */ y(H, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1552
1552
|
/* @__PURE__ */ y(H, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
1553
1553
|
/* @__PURE__ */ t(
|
|
1554
1554
|
Zt,
|
|
1555
1555
|
{
|
|
1556
|
-
title: (
|
|
1556
|
+
title: (g = (h = (d = e == null ? void 0 : e.path) == null ? void 0 : d[0]) == null ? void 0 : h.name) != null ? g : "",
|
|
1557
1557
|
subtitle: (m = e == null ? void 0 : e.group) != null ? m : "",
|
|
1558
1558
|
live: !0,
|
|
1559
1559
|
time: ((u = a == null ? void 0 : a.matchClock) == null ? void 0 : u.minute) != null ? `${a.matchClock.minute}'` : ""
|
|
1560
1560
|
}
|
|
1561
1561
|
),
|
|
1562
1562
|
/* @__PURE__ */ t("div", { style: { padding: "0 4px" }, children: /* @__PURE__ */ y(me, { spacing: 1.5, columns: "1fr auto 1fr", children: [
|
|
1563
|
-
/* @__PURE__ */ t(Me, { name: e == null ? void 0 : e.homeName, jersey:
|
|
1564
|
-
/* @__PURE__ */ t(ft, { text: ((
|
|
1565
|
-
/* @__PURE__ */ t(Me, { name: e == null ? void 0 : e.awayName, jersey:
|
|
1563
|
+
/* @__PURE__ */ t(Me, { name: e == null ? void 0 : e.homeName, jersey: Ae(r, "home") }),
|
|
1564
|
+
/* @__PURE__ */ t(ft, { text: ((f = (c = a == null ? void 0 : a.score) == null ? void 0 : c.home) != null ? f : 0) + ":" + ((x = (v = a == null ? void 0 : a.score) == null ? void 0 : v.away) != null ? x : 0), name: "En vivo" }),
|
|
1565
|
+
/* @__PURE__ */ t(Me, { name: e == null ? void 0 : e.awayName, jersey: Ae(r, "away") })
|
|
1566
1566
|
] }) })
|
|
1567
1567
|
] }),
|
|
1568
1568
|
/* @__PURE__ */ y(H, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1569
|
-
/* @__PURE__ */ t(me, { spacing: 1, children: ((k = i == null ? void 0 : i.outcomes) != null ? k :
|
|
1570
|
-
/* @__PURE__ */ t(me, { spacing: 2, children: ((T = i == null ? void 0 : i.outcomes) != null ? T :
|
|
1569
|
+
/* @__PURE__ */ t(me, { spacing: 1, children: ((k = i == null ? void 0 : i.outcomes) != null ? k : l).map((E, b) => /* @__PURE__ */ t(mt, { text: E.label.toUpperCase() }, b)) }),
|
|
1570
|
+
/* @__PURE__ */ t(me, { spacing: 2, children: ((T = i == null ? void 0 : i.outcomes) != null ? T : l).map((E, b) => /* @__PURE__ */ t(qa, { variant: "primary", disabled: E.odds == null || (i == null ? void 0 : i.cashOutStatus) == "SUSPENDED", onClick: () => {
|
|
1571
1571
|
Ue("/deportes#event/live/" + e.id, E.id);
|
|
1572
|
-
}, className:
|
|
1572
|
+
}, className: $e.customButtonDisabled, children: /* @__PURE__ */ t("span", { className: $e.customButtonLabel, children: E.odds === void 0 ? "" : (E.odds / 1e3).toFixed(2) }) }, b)) })
|
|
1573
1573
|
] })
|
|
1574
1574
|
] }) });
|
|
1575
1575
|
}
|
|
@@ -1586,14 +1586,14 @@ const ja = "oraculo__OraculoEventSemanaCard-module__cardContainer___4JuDe", Ha =
|
|
|
1586
1586
|
equipos: Za
|
|
1587
1587
|
};
|
|
1588
1588
|
function Ja({ event: e, jersey: a }) {
|
|
1589
|
-
var
|
|
1589
|
+
var l, d, h, g, m, u, c;
|
|
1590
1590
|
const n = oe(), r = re();
|
|
1591
|
-
function i(
|
|
1592
|
-
const v = new Date(
|
|
1591
|
+
function i(f) {
|
|
1592
|
+
const v = new Date(f), x = v.toLocaleDateString("es-ES", { weekday: "short" }).toUpperCase(), k = v.getDate().toString().padStart(2, "0"), T = (v.getMonth() + 1).toString().padStart(2, "0");
|
|
1593
1593
|
let E = v.toLocaleTimeString("es-PE", { hour: "numeric", minute: "2-digit", hour12: !0 }).toUpperCase();
|
|
1594
1594
|
return E = E.replace(/\./g, "").replace(/A\s*M/i, "AM").replace(/P\s*M/i, "PM"), `${x} ${k}/${T} | ${E}`;
|
|
1595
1595
|
}
|
|
1596
|
-
const
|
|
1596
|
+
const s = (f, v) => {
|
|
1597
1597
|
const x = `${e.homeName} vs ${e.awayName}`, k = v ? (v / 1e3).toFixed(2) : "", T = k ? `${x} - Cuota: ${k}` : x;
|
|
1598
1598
|
n({
|
|
1599
1599
|
element: "evento_semana_outcome",
|
|
@@ -1605,39 +1605,51 @@ function Ja({ event: e, jersey: a }) {
|
|
|
1605
1605
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1606
1606
|
},
|
|
1607
1607
|
tags: { section: "OraculoEventSemanaCard", outcomes: T }
|
|
1608
|
-
}), Ue("/deportes#event/" + e.id,
|
|
1608
|
+
}), Ue("/deportes#event/" + e.id, f);
|
|
1609
1609
|
};
|
|
1610
1610
|
return /* @__PURE__ */ y("div", { className: be.cardContainer, children: [
|
|
1611
|
-
/* @__PURE__ */ t(pt, { title: (
|
|
1611
|
+
/* @__PURE__ */ t(pt, { title: (l = e == null ? void 0 : e.group) != null ? l : "" }),
|
|
1612
1612
|
/* @__PURE__ */ t("div", { className: be.cardBackground, children: /* @__PURE__ */ y(H, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
1613
1613
|
/* @__PURE__ */ y(H, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1614
1614
|
/* @__PURE__ */ y("div", { className: be.equipos, children: [
|
|
1615
|
-
/* @__PURE__ */ t(Me, { name: e.homeName, size: "compact", jersey:
|
|
1615
|
+
/* @__PURE__ */ t(Me, { name: e.homeName, size: "compact", jersey: Ae(a, "home") }),
|
|
1616
1616
|
/* @__PURE__ */ t(ft, { text: "vs.", name: "", size: "small" }),
|
|
1617
|
-
/* @__PURE__ */ t(Me, { name: e.awayName, size: "compact", jersey:
|
|
1617
|
+
/* @__PURE__ */ t(Me, { name: e.awayName, size: "compact", jersey: Ae(a, "away") })
|
|
1618
1618
|
] }),
|
|
1619
1619
|
/* @__PURE__ */ t(Ga, { text: i(e.start) })
|
|
1620
1620
|
] }),
|
|
1621
1621
|
/* @__PURE__ */ y(H, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
1622
|
-
/* @__PURE__ */ t(me, { spacing: 1, children: ((
|
|
1623
|
-
/* @__PURE__ */ t("div", { className: be.jugadas, children: /* @__PURE__ */ t(me, { spacing: 1, children: ((c = (u = (m = e == null ? void 0 : e.outcome) == null ? void 0 : m[0]) == null ? void 0 : u.outcomes) != null ? c : []).map((
|
|
1624
|
-
|
|
1625
|
-
}, children: (
|
|
1622
|
+
/* @__PURE__ */ t(me, { spacing: 1, children: ((g = (h = (d = e == null ? void 0 : e.outcome) == null ? void 0 : d[0]) == null ? void 0 : h.outcomes) != null ? g : []).map((f, v) => /* @__PURE__ */ t(mt, { text: f.label.toUpperCase() }, v)) }),
|
|
1623
|
+
/* @__PURE__ */ t("div", { className: be.jugadas, children: /* @__PURE__ */ t(me, { spacing: 1, children: ((c = (u = (m = e == null ? void 0 : e.outcome) == null ? void 0 : m[0]) == null ? void 0 : u.outcomes) != null ? c : []).map((f, v) => /* @__PURE__ */ t(J, { variant: "primary", fullHeight: !0, onClick: () => {
|
|
1624
|
+
s(f.id, f.odds);
|
|
1625
|
+
}, children: (f.odds / 1e3).toFixed(2) }, v)) }) })
|
|
1626
1626
|
] })
|
|
1627
1627
|
] }) })
|
|
1628
1628
|
] });
|
|
1629
1629
|
}
|
|
1630
|
-
|
|
1630
|
+
const Xa = (e = 3) => Array.from({ length: e }, (a, n) => ({
|
|
1631
|
+
body: "",
|
|
1632
|
+
image: "",
|
|
1633
|
+
title: `sk-${n}`,
|
|
1634
|
+
summary_body: "",
|
|
1635
|
+
summary_title: "",
|
|
1636
|
+
groups_forbidden: [],
|
|
1637
|
+
groups_allowed: [],
|
|
1638
|
+
promotion: "",
|
|
1639
|
+
tags: "",
|
|
1640
|
+
summary_image: ""
|
|
1641
|
+
}));
|
|
1642
|
+
function Ya({
|
|
1631
1643
|
items: e,
|
|
1632
1644
|
title: a = "Destacados",
|
|
1633
1645
|
iconUrl: n = "https://d28gilnhu2bcbp.cloudfront.net/landing/1770307276612-lonuevo.webp",
|
|
1634
1646
|
onViewMore: r,
|
|
1635
1647
|
onItemClick: i,
|
|
1636
|
-
className:
|
|
1637
|
-
paddingMobile:
|
|
1648
|
+
className: s = "",
|
|
1649
|
+
paddingMobile: l = "24px"
|
|
1638
1650
|
}) {
|
|
1639
1651
|
var w;
|
|
1640
|
-
const d = U(null), [h,
|
|
1652
|
+
const d = U(null), [h, g] = Z({ isStart: !0, isEnd: !1 }), m = oe(), u = re(), c = le(), f = !e || e.length === 0, v = () => {
|
|
1641
1653
|
var S;
|
|
1642
1654
|
m({
|
|
1643
1655
|
element: "destacados_carousel_prev",
|
|
@@ -1675,20 +1687,20 @@ function Xa({
|
|
|
1675
1687
|
},
|
|
1676
1688
|
tags: { section: "OraculoSeccionDestacados" }
|
|
1677
1689
|
}), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/promociones");
|
|
1678
|
-
}, T =
|
|
1690
|
+
}, T = s || void 0, E = xe("(max-width:950px)"), b = (w = e == null ? void 0 : e.length) != null ? w : 0;
|
|
1679
1691
|
Q(() => {
|
|
1680
1692
|
if (b === 0) {
|
|
1681
|
-
|
|
1693
|
+
g({ isStart: !0, isEnd: !0 });
|
|
1682
1694
|
return;
|
|
1683
1695
|
}
|
|
1684
|
-
|
|
1685
|
-
}, [b, E,
|
|
1686
|
-
const
|
|
1687
|
-
const
|
|
1696
|
+
g({ isStart: !0, isEnd: !1 });
|
|
1697
|
+
}, [b, E, l]);
|
|
1698
|
+
const A = (S) => {
|
|
1699
|
+
const L = S.promotion, F = L ? `https://www.olimpo.bet/promociones/${encodeURIComponent(L)}` : "";
|
|
1688
1700
|
if (m({
|
|
1689
1701
|
element: "destacados_card",
|
|
1690
|
-
label: `${u} - OraculoSeccionDestacados - Click: ${
|
|
1691
|
-
target:
|
|
1702
|
+
label: `${u} - OraculoSeccionDestacados - Click: ${L || S.title}`,
|
|
1703
|
+
target: F || "custom_item_action",
|
|
1692
1704
|
event_type: "click",
|
|
1693
1705
|
module_id: c,
|
|
1694
1706
|
metadata: {
|
|
@@ -1696,13 +1708,13 @@ function Xa({
|
|
|
1696
1708
|
},
|
|
1697
1709
|
tags: {
|
|
1698
1710
|
section: "OraculoSeccionDestacados",
|
|
1699
|
-
promotion: String(
|
|
1711
|
+
promotion: String(L || "")
|
|
1700
1712
|
}
|
|
1701
1713
|
}), i) {
|
|
1702
1714
|
i(S);
|
|
1703
1715
|
return;
|
|
1704
1716
|
}
|
|
1705
|
-
|
|
1717
|
+
F && typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(F);
|
|
1706
1718
|
};
|
|
1707
1719
|
return /* @__PURE__ */ y("section", { className: T, style: { width: "100%" }, children: [
|
|
1708
1720
|
/* @__PURE__ */ y(
|
|
@@ -1715,8 +1727,8 @@ function Xa({
|
|
|
1715
1727
|
columnGap: 12,
|
|
1716
1728
|
rowGap: 8,
|
|
1717
1729
|
marginBottom: 16,
|
|
1718
|
-
paddingLeft: E ?
|
|
1719
|
-
paddingRight: E ?
|
|
1730
|
+
paddingLeft: E ? l : 0,
|
|
1731
|
+
paddingRight: E ? l : 0
|
|
1720
1732
|
},
|
|
1721
1733
|
children: [
|
|
1722
1734
|
/* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
|
|
@@ -1729,7 +1741,7 @@ function Xa({
|
|
|
1729
1741
|
iconOnly: !0,
|
|
1730
1742
|
leftIcon: /* @__PURE__ */ t(Re, {}),
|
|
1731
1743
|
onClick: v,
|
|
1732
|
-
disabled: h.isStart ||
|
|
1744
|
+
disabled: h.isStart || f
|
|
1733
1745
|
}
|
|
1734
1746
|
),
|
|
1735
1747
|
/* @__PURE__ */ t(
|
|
@@ -1740,7 +1752,7 @@ function Xa({
|
|
|
1740
1752
|
iconOnly: !0,
|
|
1741
1753
|
rightIcon: /* @__PURE__ */ t(Le, {}),
|
|
1742
1754
|
onClick: x,
|
|
1743
|
-
disabled: h.isEnd ||
|
|
1755
|
+
disabled: h.isEnd || f
|
|
1744
1756
|
}
|
|
1745
1757
|
)
|
|
1746
1758
|
] }),
|
|
@@ -1752,43 +1764,60 @@ function Xa({
|
|
|
1752
1764
|
he,
|
|
1753
1765
|
{
|
|
1754
1766
|
ref: d,
|
|
1755
|
-
items: e,
|
|
1767
|
+
items: f ? Xa() : e,
|
|
1756
1768
|
perPage: void 0,
|
|
1757
1769
|
gap: "16px",
|
|
1758
1770
|
enableHorizontalWheel: !0,
|
|
1759
1771
|
showRightGradient: !E,
|
|
1760
1772
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
1761
1773
|
breakpoints: {
|
|
1762
|
-
768: { perPage: 2, focus: "start", padding: { left:
|
|
1774
|
+
768: { perPage: 2, focus: "start", padding: { left: l, right: l } },
|
|
1763
1775
|
1024: { perPage: 2.5, focus: "start", padding: { left: "24px", right: "24px" } }
|
|
1764
1776
|
},
|
|
1765
|
-
renderItem: (S) =>
|
|
1766
|
-
"
|
|
1767
|
-
{
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
style: {
|
|
1779
|
-
width: "100%",
|
|
1780
|
-
height: typeof window != "undefined" && window.innerWidth < 768 ? "80px" : "137px",
|
|
1781
|
-
borderRadius: 8,
|
|
1782
|
-
display: "block",
|
|
1783
|
-
objectFit: "cover"
|
|
1777
|
+
renderItem: (S) => {
|
|
1778
|
+
const L = typeof window != "undefined" && window.innerWidth < 768 ? "80px" : "137px";
|
|
1779
|
+
return f ? /* @__PURE__ */ t("div", { style: { width: "100%" }, children: /* @__PURE__ */ t(
|
|
1780
|
+
W,
|
|
1781
|
+
{
|
|
1782
|
+
variant: "rectangular",
|
|
1783
|
+
width: "100%",
|
|
1784
|
+
height: L,
|
|
1785
|
+
sx: {
|
|
1786
|
+
borderRadius: "8px",
|
|
1787
|
+
bgcolor: "rgba(255,255,255,0.10)",
|
|
1788
|
+
"&::after": {
|
|
1789
|
+
background: "linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent)"
|
|
1784
1790
|
}
|
|
1785
1791
|
}
|
|
1786
|
-
|
|
1787
|
-
},
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
+
}
|
|
1793
|
+
) }, S.title) : /* @__PURE__ */ t(
|
|
1794
|
+
"div",
|
|
1795
|
+
{
|
|
1796
|
+
style: {
|
|
1797
|
+
textAlign: "center",
|
|
1798
|
+
cursor: "pointer"
|
|
1799
|
+
},
|
|
1800
|
+
onClick: () => A(S),
|
|
1801
|
+
children: /* @__PURE__ */ t(
|
|
1802
|
+
"img",
|
|
1803
|
+
{
|
|
1804
|
+
src: `https://olimpo.bet${S.image !== "" ? S.image : S.summary_image}`,
|
|
1805
|
+
alt: S.title,
|
|
1806
|
+
style: {
|
|
1807
|
+
width: "100%",
|
|
1808
|
+
height: L,
|
|
1809
|
+
borderRadius: 8,
|
|
1810
|
+
display: "block",
|
|
1811
|
+
objectFit: "cover"
|
|
1812
|
+
}
|
|
1813
|
+
}
|
|
1814
|
+
)
|
|
1815
|
+
},
|
|
1816
|
+
`${S.title}-${S.image}`
|
|
1817
|
+
);
|
|
1818
|
+
},
|
|
1819
|
+
onMove: ({ isStart: S, isEnd: L, source: F }) => {
|
|
1820
|
+
g({ isStart: S, isEnd: L }), F === "user" && m({
|
|
1792
1821
|
element: "destacados_carousel_slide",
|
|
1793
1822
|
label: `${u} - OraculoSeccionDestacados - Slide Carousel`,
|
|
1794
1823
|
target: "carousel",
|
|
@@ -1797,7 +1826,7 @@ function Xa({
|
|
|
1797
1826
|
metadata: {
|
|
1798
1827
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
1799
1828
|
isStart: S,
|
|
1800
|
-
isEnd:
|
|
1829
|
+
isEnd: L
|
|
1801
1830
|
},
|
|
1802
1831
|
tags: { section: "OraculoSeccionDestacados" }
|
|
1803
1832
|
});
|
|
@@ -1806,44 +1835,44 @@ function Xa({
|
|
|
1806
1835
|
)
|
|
1807
1836
|
] });
|
|
1808
1837
|
}
|
|
1809
|
-
const
|
|
1838
|
+
const Ne = "__ORACULO_EXTRAS__";
|
|
1810
1839
|
function yt() {
|
|
1811
1840
|
const e = globalThis;
|
|
1812
|
-
return e[
|
|
1841
|
+
return e[Ne] || (e[Ne] = {}), e[Ne];
|
|
1813
1842
|
}
|
|
1814
|
-
function
|
|
1843
|
+
function Qa(e) {
|
|
1815
1844
|
yt().extras = e;
|
|
1816
1845
|
}
|
|
1817
|
-
function
|
|
1846
|
+
function se(e) {
|
|
1818
1847
|
var a;
|
|
1819
1848
|
return (a = yt().extras) == null ? void 0 : a[e];
|
|
1820
1849
|
}
|
|
1821
|
-
function
|
|
1822
|
-
delete globalThis[
|
|
1850
|
+
function en() {
|
|
1851
|
+
delete globalThis[Ne];
|
|
1823
1852
|
}
|
|
1824
|
-
function
|
|
1853
|
+
function tn({
|
|
1825
1854
|
items: e,
|
|
1826
1855
|
title: a = "Top Juegos",
|
|
1827
1856
|
iconUrl: n,
|
|
1828
1857
|
onCardClick: r
|
|
1829
1858
|
}) {
|
|
1830
|
-
const i = oe(),
|
|
1859
|
+
const i = oe(), s = re(), l = le(), d = ie(
|
|
1831
1860
|
() => (e != null ? e : []).map((u, c) => {
|
|
1832
|
-
var
|
|
1861
|
+
var f;
|
|
1833
1862
|
return {
|
|
1834
1863
|
...u,
|
|
1835
|
-
orden: (
|
|
1864
|
+
orden: (f = u.orden) != null ? f : c + 1,
|
|
1836
1865
|
_originalIndex: c
|
|
1837
1866
|
};
|
|
1838
1867
|
}).sort((u, c) => u.orden != null && c.orden != null ? u.orden - c.orden : u._originalIndex - c._originalIndex),
|
|
1839
1868
|
[e]
|
|
1840
|
-
), h = !e || e.length === 0,
|
|
1869
|
+
), h = !e || e.length === 0, g = h ? Array.from({ length: 6 }) : d.slice(0, 6), m = (u) => {
|
|
1841
1870
|
i({
|
|
1842
1871
|
element: "top_juegos_card",
|
|
1843
|
-
label: `${
|
|
1872
|
+
label: `${s} - OraculoSeccionTopJuegos - Open game: ${String(u.machine || "unknown")}`,
|
|
1844
1873
|
target: String(u.machine || "unknown"),
|
|
1845
1874
|
event_type: "click",
|
|
1846
|
-
module_id:
|
|
1875
|
+
module_id: l,
|
|
1847
1876
|
metadata: {
|
|
1848
1877
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1849
1878
|
},
|
|
@@ -1852,9 +1881,9 @@ function en({
|
|
|
1852
1881
|
section: "OraculoSeccionTopJuegos"
|
|
1853
1882
|
}
|
|
1854
1883
|
});
|
|
1855
|
-
const c =
|
|
1884
|
+
const c = se("showIframe"), f = se("loadMachine");
|
|
1856
1885
|
c == null || c(), requestAnimationFrame(() => {
|
|
1857
|
-
|
|
1886
|
+
f == null || f(u, !1, "CASINO");
|
|
1858
1887
|
});
|
|
1859
1888
|
};
|
|
1860
1889
|
return /* @__PURE__ */ t("section", { style: { width: "100%" }, children: /* @__PURE__ */ y(H, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
@@ -1872,12 +1901,12 @@ function en({
|
|
|
1872
1901
|
justifyItems: "center",
|
|
1873
1902
|
width: "100%"
|
|
1874
1903
|
},
|
|
1875
|
-
children:
|
|
1876
|
-
var
|
|
1904
|
+
children: g.map((u, c) => {
|
|
1905
|
+
var f, v;
|
|
1877
1906
|
return /* @__PURE__ */ t(
|
|
1878
1907
|
wa,
|
|
1879
1908
|
{
|
|
1880
|
-
imageUrl: h ? "" : u.background ? `https://olimpo.bet${u.background}` : `https://olimpo.bet${(
|
|
1909
|
+
imageUrl: h ? "" : u.background ? `https://olimpo.bet${u.background}` : `https://olimpo.bet${(f = u.logo) != null ? f : ""}`,
|
|
1881
1910
|
orden: h ? c + 1 : u.orden,
|
|
1882
1911
|
loading: h,
|
|
1883
1912
|
onClick: h ? void 0 : () => {
|
|
@@ -1891,8 +1920,8 @@ function en({
|
|
|
1891
1920
|
)
|
|
1892
1921
|
] }) });
|
|
1893
1922
|
}
|
|
1894
|
-
const
|
|
1895
|
-
var n, r, i,
|
|
1923
|
+
const an = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommendations", nn = (e, a) => {
|
|
1924
|
+
var n, r, i, s, l, d, h, g, m, u, c, f, v, x;
|
|
1896
1925
|
return {
|
|
1897
1926
|
orden: Number(a),
|
|
1898
1927
|
machine: String(
|
|
@@ -1900,37 +1929,37 @@ const tn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1900
1929
|
),
|
|
1901
1930
|
logo: (r = e.logo) != null ? r : "",
|
|
1902
1931
|
name: (i = e.room_name) != null ? i : "",
|
|
1903
|
-
web_name: (
|
|
1904
|
-
provider: (
|
|
1932
|
+
web_name: (s = e.product) != null ? s : "",
|
|
1933
|
+
provider: (l = e.service) != null ? l : "",
|
|
1905
1934
|
sub_provider: (d = e.service) != null ? d : "",
|
|
1906
1935
|
external_id: (h = e.external_id) != null ? h : "",
|
|
1907
|
-
type: (
|
|
1936
|
+
type: (g = e.game_type) != null ? g : "",
|
|
1908
1937
|
tags: (m = e.tags) != null ? m : "",
|
|
1909
1938
|
lobby_tag: (u = e.lobby_tag) != null ? u : null,
|
|
1910
1939
|
background: (c = e.background) != null ? c : "",
|
|
1911
|
-
rtp: (
|
|
1940
|
+
rtp: (f = e.rtp) != null ? f : null,
|
|
1912
1941
|
demo_allowed: (v = e.demo_allowed) != null ? v : !1,
|
|
1913
1942
|
gaming_session_required: (x = e.gaming_session_required) != null ? x : !1
|
|
1914
1943
|
};
|
|
1915
|
-
},
|
|
1944
|
+
}, on = (e) => e ? !Array.isArray(e) && Array.isArray(e.recommendations) ? e.recommendations.filter(Boolean).map((a) => String(a)) : [] : [], xt = () => {
|
|
1916
1945
|
var a, n, r;
|
|
1917
|
-
const e =
|
|
1946
|
+
const e = se("user");
|
|
1918
1947
|
return (r = (n = (a = e == null ? void 0 : e.userId) != null ? a : e == null ? void 0 : e.user) != null ? n : e == null ? void 0 : e.id) != null ? r : null;
|
|
1919
|
-
},
|
|
1948
|
+
}, rn = async (e) => {
|
|
1920
1949
|
const a = xt(), n = new URLSearchParams({
|
|
1921
1950
|
userId: String(a),
|
|
1922
1951
|
productType: e
|
|
1923
|
-
}), r = `${
|
|
1952
|
+
}), r = `${an}?${n.toString()}`, i = await fetch(r);
|
|
1924
1953
|
if (!i.ok)
|
|
1925
1954
|
throw new Error(
|
|
1926
1955
|
`No se pudo obtener recomendaciones. HTTP ${i.status} ${i.statusText}`
|
|
1927
1956
|
);
|
|
1928
|
-
const
|
|
1957
|
+
const s = await i.json();
|
|
1929
1958
|
return {
|
|
1930
|
-
...
|
|
1931
|
-
recommendations: Array.isArray(
|
|
1959
|
+
...s,
|
|
1960
|
+
recommendations: Array.isArray(s == null ? void 0 : s.recommendations) ? s.recommendations.slice(0, 49) : []
|
|
1932
1961
|
};
|
|
1933
|
-
},
|
|
1962
|
+
}, sn = async (e, a) => {
|
|
1934
1963
|
const n = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking", r = JSON.stringify({
|
|
1935
1964
|
userId: String(e),
|
|
1936
1965
|
items: a
|
|
@@ -1945,28 +1974,28 @@ const tn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1945
1974
|
throw new Error(`No se pudo obtener el ranking. HTTP ${i.status} ${i.statusText}`);
|
|
1946
1975
|
return (await i.json()).rankedItems;
|
|
1947
1976
|
}, Ve = (e, a = !1, n = "Casino") => {
|
|
1948
|
-
const [r, i] = Z([]), [
|
|
1977
|
+
const [r, i] = Z([]), [s, l] = Z(!1);
|
|
1949
1978
|
return Q(() => {
|
|
1950
1979
|
let d = !1;
|
|
1951
1980
|
return (async () => {
|
|
1952
1981
|
if (!a) {
|
|
1953
|
-
i(Array.isArray(e) ? e : []),
|
|
1982
|
+
i(Array.isArray(e) ? e : []), l(!1);
|
|
1954
1983
|
return;
|
|
1955
1984
|
}
|
|
1956
|
-
|
|
1985
|
+
l(!0);
|
|
1957
1986
|
try {
|
|
1958
|
-
const
|
|
1987
|
+
const g = await rn(n), m = on(g);
|
|
1959
1988
|
if (!m.length) {
|
|
1960
1989
|
d || i([]);
|
|
1961
1990
|
return;
|
|
1962
1991
|
}
|
|
1963
|
-
const u = xt(), c = await
|
|
1964
|
-
|
|
1992
|
+
const u = xt(), c = await sn(u, m), f = c.map((T) => T.itemId), v = await Promise.allSettled(
|
|
1993
|
+
f.map(async (T, E) => {
|
|
1965
1994
|
const b = await fetch(`https://api.mktolimpo.com/api/machine/${T}`);
|
|
1966
1995
|
if (!b.ok)
|
|
1967
1996
|
throw new Error(`No se pudo obtener machine ${T}`);
|
|
1968
|
-
const
|
|
1969
|
-
return
|
|
1997
|
+
const A = await b.json();
|
|
1998
|
+
return nn(A, E);
|
|
1970
1999
|
})
|
|
1971
2000
|
);
|
|
1972
2001
|
if (d) return;
|
|
@@ -1976,26 +2005,26 @@ const tn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1976
2005
|
const E = x.find((b) => b.machine === T.itemId);
|
|
1977
2006
|
return E ? { ...E, score: T.score } : null;
|
|
1978
2007
|
}).filter(Boolean).sort((T, E) => {
|
|
1979
|
-
var b,
|
|
1980
|
-
return ((b = E.score) != null ? b : 0) - ((
|
|
2008
|
+
var b, A;
|
|
2009
|
+
return ((b = E.score) != null ? b : 0) - ((A = T.score) != null ? A : 0);
|
|
1981
2010
|
});
|
|
1982
2011
|
i(k);
|
|
1983
|
-
} catch (
|
|
1984
|
-
console.error(`[usePersonalizeGameItems:${n}] error:`,
|
|
2012
|
+
} catch (g) {
|
|
2013
|
+
console.error(`[usePersonalizeGameItems:${n}] error:`, g), d || i([]);
|
|
1985
2014
|
} finally {
|
|
1986
|
-
d ||
|
|
2015
|
+
d || l(!1);
|
|
1987
2016
|
}
|
|
1988
2017
|
})(), () => {
|
|
1989
2018
|
d = !0;
|
|
1990
2019
|
};
|
|
1991
2020
|
}, [e, a, n]), {
|
|
1992
2021
|
resolvedItems: r,
|
|
1993
|
-
loading:
|
|
2022
|
+
loading: s
|
|
1994
2023
|
};
|
|
1995
|
-
}, ln = (e, a = !1) => Ve(e, a, "Casino"),
|
|
2024
|
+
}, ln = (e, a = !1) => Ve(e, a, "Casino"), cn = (e, a = !1) => Ve(e, a, "Deportes virtuales"), dn = (e, a = !1) => Ve(e, a, "Casino en vivo"), un = (e, a) => {
|
|
1996
2025
|
var n, r;
|
|
1997
2026
|
return (r = (n = e.orden) != null ? n : e.machine) != null ? r : a;
|
|
1998
|
-
},
|
|
2027
|
+
}, mn = (e) => {
|
|
1999
2028
|
if (typeof e == "boolean") return e;
|
|
2000
2029
|
if (typeof e == "string")
|
|
2001
2030
|
return e.toLowerCase() === "true";
|
|
@@ -2005,22 +2034,22 @@ const tn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2005
2034
|
return e.value.toLowerCase() === "true";
|
|
2006
2035
|
}
|
|
2007
2036
|
return !1;
|
|
2008
|
-
},
|
|
2037
|
+
}, pn = ({
|
|
2009
2038
|
items: e,
|
|
2010
2039
|
title: a = "Casino en vivo",
|
|
2011
2040
|
subtitle: n = "Disfruta la emoción en tus juegos favoritos y gana en tiempo real.",
|
|
2012
2041
|
backgroundMobileUrl: r = "",
|
|
2013
2042
|
onCardClick: i,
|
|
2014
|
-
backgroundDesktopUrl:
|
|
2015
|
-
onViewMore:
|
|
2043
|
+
backgroundDesktopUrl: s = "",
|
|
2044
|
+
onViewMore: l,
|
|
2016
2045
|
className: d,
|
|
2017
2046
|
isPersonalize: h = !1
|
|
2018
2047
|
}) => {
|
|
2019
|
-
const
|
|
2048
|
+
const g = oe(), m = re(), u = le(), c = mn(h), { resolvedItems: f, loading: v } = dn(
|
|
2020
2049
|
e,
|
|
2021
2050
|
c
|
|
2022
|
-
), x = c ?
|
|
2023
|
-
|
|
2051
|
+
), x = c ? f : Array.isArray(e) ? e : [], k = c ? v : !Array.isArray(e) || e.length === 0, T = (b) => {
|
|
2052
|
+
g({
|
|
2024
2053
|
element: "live_casino_card",
|
|
2025
2054
|
label: `${m} - OraculoSeccionCasinoEnVivo${c ? " - personalize" : ""} - Open game: ${String(b.machine || "unknown")}`,
|
|
2026
2055
|
target: String(b.machine || "unknown"),
|
|
@@ -2035,7 +2064,7 @@ const tn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2035
2064
|
section: "OraculoSeccionCasinoEnVivo"
|
|
2036
2065
|
}
|
|
2037
2066
|
});
|
|
2038
|
-
const
|
|
2067
|
+
const A = se("showIframe"), w = se("loadMachine");
|
|
2039
2068
|
if (!w) {
|
|
2040
2069
|
if (i) {
|
|
2041
2070
|
i(b);
|
|
@@ -2047,11 +2076,11 @@ const tn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2047
2076
|
);
|
|
2048
2077
|
return;
|
|
2049
2078
|
}
|
|
2050
|
-
|
|
2079
|
+
A == null || A(), typeof window != "undefined" && window.scrollTo({ top: 0, behavior: "smooth" }), requestAnimationFrame(() => {
|
|
2051
2080
|
w == null || w(b, !1, "casino_en_vivo");
|
|
2052
2081
|
});
|
|
2053
2082
|
}, E = () => {
|
|
2054
|
-
|
|
2083
|
+
g({
|
|
2055
2084
|
element: "casino_en_vivo_view_more",
|
|
2056
2085
|
label: `${m} - OraculoSeccionCasinoEnVivo${c ? " - personalize" : ""} - Ver más`,
|
|
2057
2086
|
target: "https://www.olimpo.bet/casino-en-vivo",
|
|
@@ -2061,7 +2090,7 @@ const tn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2061
2090
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2062
2091
|
},
|
|
2063
2092
|
tags: { section: "OraculoSeccionCasinoEnVivo" }
|
|
2064
|
-
}), typeof globalThis != "undefined" && globalThis.location && (
|
|
2093
|
+
}), typeof globalThis != "undefined" && globalThis.location && (l ? l() : globalThis.location.assign("https://www.olimpo.bet/casino-en-vivo"));
|
|
2065
2094
|
};
|
|
2066
2095
|
return /* @__PURE__ */ y(
|
|
2067
2096
|
z,
|
|
@@ -2088,7 +2117,7 @@ const tn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2088
2117
|
md: `
|
|
2089
2118
|
linear-gradient(to bottom, #121212 0%, rgba(18,18,18,0) 10%),
|
|
2090
2119
|
linear-gradient(to top, #121212 0%, rgba(18,18,18,0) 10%),
|
|
2091
|
-
url('${
|
|
2120
|
+
url('${s}')
|
|
2092
2121
|
`
|
|
2093
2122
|
},
|
|
2094
2123
|
backgroundSize: {
|
|
@@ -2166,7 +2195,7 @@ const tn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2166
2195
|
py: { xs: 3, md: 0 },
|
|
2167
2196
|
alignItems: "center"
|
|
2168
2197
|
},
|
|
2169
|
-
children: k ? Array.from({ length: 3 }).map((b,
|
|
2198
|
+
children: k ? Array.from({ length: 3 }).map((b, A) => /* @__PURE__ */ t(Je, { loading: !0, logo: "" }, `sk-${A}`)) : (x != null ? x : []).slice(0, 3).map((b, A) => {
|
|
2170
2199
|
var w;
|
|
2171
2200
|
return /* @__PURE__ */ t(
|
|
2172
2201
|
Je,
|
|
@@ -2177,7 +2206,7 @@ const tn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2177
2206
|
machine: b.machine,
|
|
2178
2207
|
onClick: () => T(b)
|
|
2179
2208
|
},
|
|
2180
|
-
|
|
2209
|
+
un(b, A)
|
|
2181
2210
|
);
|
|
2182
2211
|
})
|
|
2183
2212
|
}
|
|
@@ -2197,7 +2226,7 @@ const tn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2197
2226
|
]
|
|
2198
2227
|
}
|
|
2199
2228
|
);
|
|
2200
|
-
},
|
|
2229
|
+
}, fn = (e) => {
|
|
2201
2230
|
if (typeof e == "boolean") return e;
|
|
2202
2231
|
if (typeof e == "string")
|
|
2203
2232
|
return e.toLowerCase() === "true";
|
|
@@ -2210,53 +2239,53 @@ const tn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2210
2239
|
}, St = (e, a) => {
|
|
2211
2240
|
var n, r;
|
|
2212
2241
|
return (r = (n = e.orden) != null ? n : e.machine) != null ? r : a;
|
|
2213
|
-
},
|
|
2214
|
-
const r = e.map((
|
|
2242
|
+
}, gn = (e, a = !0, n = 1) => {
|
|
2243
|
+
const r = e.map((l, d) => {
|
|
2215
2244
|
var h;
|
|
2216
2245
|
return {
|
|
2217
|
-
id: St(
|
|
2218
|
-
imageUrl: (h =
|
|
2219
|
-
...
|
|
2246
|
+
id: St(l, d),
|
|
2247
|
+
imageUrl: (h = l.logo) != null ? h : "",
|
|
2248
|
+
...l.background ? { background: l.background } : {}
|
|
2220
2249
|
};
|
|
2221
2250
|
});
|
|
2222
2251
|
if (!r.length) return [];
|
|
2223
2252
|
const i = [];
|
|
2224
|
-
let
|
|
2253
|
+
let s = 0;
|
|
2225
2254
|
if (a) {
|
|
2226
|
-
const
|
|
2255
|
+
const l = Math.min(r.length, 1);
|
|
2227
2256
|
i.push({
|
|
2228
2257
|
id: "mosaic-0",
|
|
2229
2258
|
kind: "mosaic",
|
|
2230
|
-
items: r.slice(0,
|
|
2231
|
-
}),
|
|
2259
|
+
items: r.slice(0, l)
|
|
2260
|
+
}), s = l;
|
|
2232
2261
|
}
|
|
2233
|
-
for (;
|
|
2234
|
-
const
|
|
2262
|
+
for (; s < r.length; ) {
|
|
2263
|
+
const l = Math.min(s + n, r.length);
|
|
2235
2264
|
i.push({
|
|
2236
|
-
id: `grid-${
|
|
2265
|
+
id: `grid-${s}`,
|
|
2237
2266
|
kind: "grid",
|
|
2238
|
-
items: r.slice(
|
|
2239
|
-
}),
|
|
2267
|
+
items: r.slice(s, l)
|
|
2268
|
+
}), s = l;
|
|
2240
2269
|
}
|
|
2241
2270
|
return i;
|
|
2242
|
-
},
|
|
2271
|
+
}, hn = ({
|
|
2243
2272
|
items: e,
|
|
2244
2273
|
title: a = "Casino",
|
|
2245
2274
|
iconUrl: n = "/assets/img/home/Casino/diamante.svg",
|
|
2246
2275
|
onItemClick: r,
|
|
2247
2276
|
onViewMore: i,
|
|
2248
|
-
mosaicFirst:
|
|
2249
|
-
gridSize:
|
|
2277
|
+
mosaicFirst: s = !0,
|
|
2278
|
+
gridSize: l = 1,
|
|
2250
2279
|
isPersonalize: d = !1
|
|
2251
2280
|
}) => {
|
|
2252
|
-
const h = oe(),
|
|
2281
|
+
const h = oe(), g = re(), m = le(), u = U(null), [c, f] = Z({ isStart: !0, isEnd: !1 }), v = fn(d), { resolvedItems: x, loading: k } = ln(
|
|
2253
2282
|
e,
|
|
2254
2283
|
v
|
|
2255
2284
|
), T = v ? x : Array.isArray(e) ? e : [], E = () => {
|
|
2256
2285
|
var I;
|
|
2257
2286
|
h({
|
|
2258
2287
|
element: "casino_prev",
|
|
2259
|
-
label: `${
|
|
2288
|
+
label: `${g} - OraculoSeccionCasino ${d ? " - personalize" : ""} - Anterior`,
|
|
2260
2289
|
target: "prev",
|
|
2261
2290
|
event_type: "click",
|
|
2262
2291
|
module_id: m,
|
|
@@ -2269,7 +2298,7 @@ const tn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2269
2298
|
var I;
|
|
2270
2299
|
h({
|
|
2271
2300
|
element: "casino_next",
|
|
2272
|
-
label: `${
|
|
2301
|
+
label: `${g} - OraculoSeccionCasino ${d ? " - personalize" : ""} - Siguiente`,
|
|
2273
2302
|
target: "next",
|
|
2274
2303
|
event_type: "click",
|
|
2275
2304
|
module_id: m,
|
|
@@ -2278,10 +2307,10 @@ const tn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2278
2307
|
},
|
|
2279
2308
|
tags: { section: "OraculoSeccionCasino" }
|
|
2280
2309
|
}), (I = u.current) == null || I.next();
|
|
2281
|
-
},
|
|
2310
|
+
}, A = () => {
|
|
2282
2311
|
if (h({
|
|
2283
2312
|
element: "casino_view_more",
|
|
2284
|
-
label: `${
|
|
2313
|
+
label: `${g} - OraculoSeccionCasino ${d ? " - personalize" : ""} - Ver más`,
|
|
2285
2314
|
target: "https://www.olimpo.bet/casino",
|
|
2286
2315
|
event_type: "click",
|
|
2287
2316
|
module_id: m,
|
|
@@ -2295,12 +2324,12 @@ const tn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2295
2324
|
}
|
|
2296
2325
|
typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/casino");
|
|
2297
2326
|
}, w = (I = !0, _ = 4) => {
|
|
2298
|
-
const O = (M) => Array.from({ length: M }, (
|
|
2327
|
+
const O = (M) => Array.from({ length: M }, (B, P) => ({
|
|
2299
2328
|
id: `sk-${M}-${P}`,
|
|
2300
2329
|
imageUrl: ""
|
|
2301
2330
|
})), q = [];
|
|
2302
2331
|
return I && q.push({ id: "mosaic-loading", kind: "mosaic", items: O(5) }), q.push({ id: "grid-loading", kind: "grid", items: O(_) }), q;
|
|
2303
|
-
}, S = v ? k : !Array.isArray(e) || e.length === 0,
|
|
2332
|
+
}, S = v ? k : !Array.isArray(e) || e.length === 0, L = De("(max-width:950px)"), F = S ? w(s, l) : gn(T, s, l);
|
|
2304
2333
|
return /* @__PURE__ */ t("section", { children: /* @__PURE__ */ y(H, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
2305
2334
|
/* @__PURE__ */ y(
|
|
2306
2335
|
z,
|
|
@@ -2342,7 +2371,7 @@ const tn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2342
2371
|
}
|
|
2343
2372
|
)
|
|
2344
2373
|
] }),
|
|
2345
|
-
/* @__PURE__ */ t(z, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(J, { variant: "secondary", onClick:
|
|
2374
|
+
/* @__PURE__ */ t(z, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(J, { variant: "secondary", onClick: A, children: "Ver más" }) })
|
|
2346
2375
|
]
|
|
2347
2376
|
}
|
|
2348
2377
|
),
|
|
@@ -2350,12 +2379,12 @@ const tn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2350
2379
|
he,
|
|
2351
2380
|
{
|
|
2352
2381
|
ref: u,
|
|
2353
|
-
items:
|
|
2382
|
+
items: F,
|
|
2354
2383
|
perPage: void 0,
|
|
2355
2384
|
gap: "16px",
|
|
2356
2385
|
enableHorizontalWheel: !0,
|
|
2357
2386
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
2358
|
-
showRightGradient: !
|
|
2387
|
+
showRightGradient: !L,
|
|
2359
2388
|
breakpoints: {
|
|
2360
2389
|
400: {
|
|
2361
2390
|
gap: "4px",
|
|
@@ -2382,12 +2411,12 @@ const tn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2382
2411
|
onClick: (_) => {
|
|
2383
2412
|
if (S) return;
|
|
2384
2413
|
const O = T.find(
|
|
2385
|
-
(
|
|
2414
|
+
(B, P) => String(St(B, P)) === String(_.id)
|
|
2386
2415
|
);
|
|
2387
2416
|
if (!O) return;
|
|
2388
2417
|
r == null || r(O), h({
|
|
2389
2418
|
element: "casino_game_card",
|
|
2390
|
-
label: `${
|
|
2419
|
+
label: `${g} - OraculoSeccionCasino ${d ? " - personalize" : ""} - Game: ${String(O.machine || "unknown")}`,
|
|
2391
2420
|
target: String(O.machine || "unknown"),
|
|
2392
2421
|
event_type: "click",
|
|
2393
2422
|
module_id: m,
|
|
@@ -2399,16 +2428,16 @@ const tn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2399
2428
|
section: a || "Casino"
|
|
2400
2429
|
}
|
|
2401
2430
|
});
|
|
2402
|
-
const q =
|
|
2431
|
+
const q = se("showIframe"), M = se("loadMachine");
|
|
2403
2432
|
q == null || q(), M == null || M(O, !1, "CASINO");
|
|
2404
2433
|
}
|
|
2405
2434
|
}
|
|
2406
2435
|
) }),
|
|
2407
|
-
onMove: ({ isStart: I, isEnd: _ }) =>
|
|
2436
|
+
onMove: ({ isStart: I, isEnd: _ }) => f({ isStart: I, isEnd: _ })
|
|
2408
2437
|
}
|
|
2409
2438
|
)
|
|
2410
2439
|
] }) });
|
|
2411
|
-
},
|
|
2440
|
+
}, bn = (e) => {
|
|
2412
2441
|
if (typeof e == "boolean") return e;
|
|
2413
2442
|
if (typeof e == "string")
|
|
2414
2443
|
return e.toLowerCase() === "true";
|
|
@@ -2421,38 +2450,38 @@ const tn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2421
2450
|
}, wt = (e, a) => {
|
|
2422
2451
|
var n, r;
|
|
2423
2452
|
return (r = (n = e.orden) != null ? n : e.machine) != null ? r : a;
|
|
2424
|
-
},
|
|
2425
|
-
const r = e.map((
|
|
2453
|
+
}, vn = (e, a = !0, n = 1) => {
|
|
2454
|
+
const r = e.map((l, d) => {
|
|
2426
2455
|
var h;
|
|
2427
2456
|
return {
|
|
2428
|
-
id: wt(
|
|
2429
|
-
imageUrl: (h =
|
|
2430
|
-
...
|
|
2457
|
+
id: wt(l, d),
|
|
2458
|
+
imageUrl: (h = l.logo) != null ? h : "",
|
|
2459
|
+
...l.background ? { background: l.background } : {}
|
|
2431
2460
|
};
|
|
2432
2461
|
});
|
|
2433
2462
|
if (!r.length) return [];
|
|
2434
2463
|
const i = [];
|
|
2435
|
-
let
|
|
2464
|
+
let s = 0;
|
|
2436
2465
|
if (a) {
|
|
2437
|
-
const
|
|
2466
|
+
const l = Math.min(r.length, 1);
|
|
2438
2467
|
i.push({
|
|
2439
2468
|
id: "mosaic-0",
|
|
2440
2469
|
kind: "mosaic",
|
|
2441
|
-
items: r.slice(0,
|
|
2442
|
-
}),
|
|
2470
|
+
items: r.slice(0, l)
|
|
2471
|
+
}), s = l;
|
|
2443
2472
|
}
|
|
2444
|
-
for (;
|
|
2445
|
-
const
|
|
2473
|
+
for (; s < r.length; ) {
|
|
2474
|
+
const l = Math.min(s + n, r.length);
|
|
2446
2475
|
i.push({
|
|
2447
|
-
id: `grid-${
|
|
2476
|
+
id: `grid-${s}`,
|
|
2448
2477
|
kind: "grid",
|
|
2449
|
-
items: r.slice(
|
|
2450
|
-
}),
|
|
2478
|
+
items: r.slice(s, l)
|
|
2479
|
+
}), s = l;
|
|
2451
2480
|
}
|
|
2452
2481
|
return i;
|
|
2453
|
-
},
|
|
2454
|
-
const n = (i) => Array.from({ length: i }, (
|
|
2455
|
-
id: `sk-${i}-${
|
|
2482
|
+
}, _n = (e = !0, a = 4) => {
|
|
2483
|
+
const n = (i) => Array.from({ length: i }, (s, l) => ({
|
|
2484
|
+
id: `sk-${i}-${l}`,
|
|
2456
2485
|
imageUrl: ""
|
|
2457
2486
|
})), r = [];
|
|
2458
2487
|
return e && r.push({
|
|
@@ -2464,52 +2493,52 @@ const tn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2464
2493
|
kind: "grid",
|
|
2465
2494
|
items: n(a)
|
|
2466
2495
|
}), r;
|
|
2467
|
-
},
|
|
2496
|
+
}, yn = ({
|
|
2468
2497
|
items: e,
|
|
2469
2498
|
title: a = "Virtuales",
|
|
2470
2499
|
iconUrl: n = "/assets/img/home/Virtuales/virtuales.svg",
|
|
2471
2500
|
onItemClick: r,
|
|
2472
2501
|
onViewMore: i,
|
|
2473
|
-
mosaicFirst:
|
|
2474
|
-
gridSize:
|
|
2502
|
+
mosaicFirst: s = !0,
|
|
2503
|
+
gridSize: l = 1,
|
|
2475
2504
|
isPersonalize: d = !1
|
|
2476
2505
|
}) => {
|
|
2477
|
-
const h = U(null), [
|
|
2506
|
+
const h = U(null), [g, m] = Z({ isStart: !0, isEnd: !1 }), u = oe(), c = re(), f = le(), v = bn(d), { resolvedItems: x, loading: k } = cn(
|
|
2478
2507
|
e,
|
|
2479
2508
|
v
|
|
2480
2509
|
), T = v ? x : Array.isArray(e) ? e : [], E = () => {
|
|
2481
|
-
var
|
|
2510
|
+
var F;
|
|
2482
2511
|
u({
|
|
2483
2512
|
element: "virtuales_prev",
|
|
2484
2513
|
label: `${c} - OraculoSeccionVirtuales${v ? " - personalize" : ""} - Anterior`,
|
|
2485
2514
|
target: "prev",
|
|
2486
2515
|
event_type: "click",
|
|
2487
|
-
module_id:
|
|
2516
|
+
module_id: f,
|
|
2488
2517
|
metadata: {
|
|
2489
2518
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2490
2519
|
},
|
|
2491
2520
|
tags: { section: "OraculoSeccionVirtuales" }
|
|
2492
|
-
}), (
|
|
2521
|
+
}), (F = h.current) == null || F.prev();
|
|
2493
2522
|
}, b = () => {
|
|
2494
|
-
var
|
|
2523
|
+
var F;
|
|
2495
2524
|
u({
|
|
2496
2525
|
element: "virtuales_next",
|
|
2497
2526
|
label: `${c} - OraculoSeccionVirtuales${v ? " - personalize" : ""} - Siguiente`,
|
|
2498
2527
|
target: "next",
|
|
2499
2528
|
event_type: "click",
|
|
2500
|
-
module_id:
|
|
2529
|
+
module_id: f,
|
|
2501
2530
|
metadata: {
|
|
2502
2531
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2503
2532
|
},
|
|
2504
2533
|
tags: { section: "OraculoSeccionVirtuales" }
|
|
2505
|
-
}), (
|
|
2506
|
-
},
|
|
2534
|
+
}), (F = h.current) == null || F.next();
|
|
2535
|
+
}, A = () => {
|
|
2507
2536
|
if (u({
|
|
2508
2537
|
element: "virtuales_view_more",
|
|
2509
2538
|
label: `${c} - OraculoSeccionVirtuales${v ? " - personalize" : ""} - Ver más`,
|
|
2510
2539
|
target: "https://www.olimpo.bet/juegos-virtuales",
|
|
2511
2540
|
event_type: "click",
|
|
2512
|
-
module_id:
|
|
2541
|
+
module_id: f,
|
|
2513
2542
|
metadata: {
|
|
2514
2543
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2515
2544
|
},
|
|
@@ -2519,7 +2548,7 @@ const tn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2519
2548
|
return;
|
|
2520
2549
|
}
|
|
2521
2550
|
typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/juegos-virtuales");
|
|
2522
|
-
}, w = v ? k : !Array.isArray(e) || e.length === 0, S = xe("(max-width:950px)"),
|
|
2551
|
+
}, w = v ? k : !Array.isArray(e) || e.length === 0, S = xe("(max-width:950px)"), L = w ? _n(s, l) : vn(T, s, l);
|
|
2523
2552
|
return /* @__PURE__ */ t("section", { children: /* @__PURE__ */ y(H, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
2524
2553
|
/* @__PURE__ */ y(
|
|
2525
2554
|
z,
|
|
@@ -2546,7 +2575,7 @@ const tn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2546
2575
|
iconOnly: !0,
|
|
2547
2576
|
leftIcon: /* @__PURE__ */ t(ct, {}),
|
|
2548
2577
|
onClick: E,
|
|
2549
|
-
disabled:
|
|
2578
|
+
disabled: g.isStart
|
|
2550
2579
|
}
|
|
2551
2580
|
),
|
|
2552
2581
|
/* @__PURE__ */ t(
|
|
@@ -2557,11 +2586,11 @@ const tn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2557
2586
|
iconOnly: !0,
|
|
2558
2587
|
rightIcon: /* @__PURE__ */ t(dt, {}),
|
|
2559
2588
|
onClick: b,
|
|
2560
|
-
disabled:
|
|
2589
|
+
disabled: g.isEnd
|
|
2561
2590
|
}
|
|
2562
2591
|
)
|
|
2563
2592
|
] }),
|
|
2564
|
-
/* @__PURE__ */ t(z, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(J, { variant: "secondary", onClick:
|
|
2593
|
+
/* @__PURE__ */ t(z, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(J, { variant: "secondary", onClick: A, children: "Ver más" }) })
|
|
2565
2594
|
]
|
|
2566
2595
|
}
|
|
2567
2596
|
),
|
|
@@ -2569,7 +2598,7 @@ const tn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2569
2598
|
he,
|
|
2570
2599
|
{
|
|
2571
2600
|
ref: h,
|
|
2572
|
-
items:
|
|
2601
|
+
items: L,
|
|
2573
2602
|
perPage: void 0,
|
|
2574
2603
|
gap: "16px",
|
|
2575
2604
|
breakpoints: {
|
|
@@ -2592,16 +2621,16 @@ const tn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2592
2621
|
enableHorizontalWheel: !0,
|
|
2593
2622
|
showRightGradient: !S,
|
|
2594
2623
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
2595
|
-
renderItem: (
|
|
2624
|
+
renderItem: (F) => /* @__PURE__ */ t("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ t(
|
|
2596
2625
|
gt,
|
|
2597
2626
|
{
|
|
2598
|
-
items:
|
|
2599
|
-
layout:
|
|
2627
|
+
items: F.items,
|
|
2628
|
+
layout: F.kind === "mosaic" ? "mosaic" : "grid",
|
|
2600
2629
|
loading: w,
|
|
2601
2630
|
onClick: (I) => {
|
|
2602
2631
|
if (w) return;
|
|
2603
2632
|
const _ = T.find(
|
|
2604
|
-
(M,
|
|
2633
|
+
(M, B) => String(wt(M, B)) === String(I.id)
|
|
2605
2634
|
);
|
|
2606
2635
|
if (!_) {
|
|
2607
2636
|
console.warn(
|
|
@@ -2615,7 +2644,7 @@ const tn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2615
2644
|
label: `${c} - OraculoSeccionVirtuales${v ? " - personalize" : ""} - Game: ${String(_.machine || "unknown")}`,
|
|
2616
2645
|
target: String(_.machine || "unknown"),
|
|
2617
2646
|
event_type: "click",
|
|
2618
|
-
module_id:
|
|
2647
|
+
module_id: f,
|
|
2619
2648
|
metadata: {
|
|
2620
2649
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2621
2650
|
},
|
|
@@ -2624,7 +2653,7 @@ const tn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2624
2653
|
section: a || "Virtuales"
|
|
2625
2654
|
}
|
|
2626
2655
|
});
|
|
2627
|
-
const O =
|
|
2656
|
+
const O = se("showIframe"), q = se("loadMachine");
|
|
2628
2657
|
O == null || O(), q == null || q(
|
|
2629
2658
|
_,
|
|
2630
2659
|
!1,
|
|
@@ -2633,11 +2662,11 @@ const tn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2633
2662
|
}
|
|
2634
2663
|
}
|
|
2635
2664
|
) }),
|
|
2636
|
-
onMove: ({ isStart:
|
|
2665
|
+
onMove: ({ isStart: F, isEnd: I }) => m({ isStart: F, isEnd: I })
|
|
2637
2666
|
}
|
|
2638
2667
|
)
|
|
2639
2668
|
] }) });
|
|
2640
|
-
},
|
|
2669
|
+
}, xn = (e) => ({
|
|
2641
2670
|
position: "relative",
|
|
2642
2671
|
py: 8,
|
|
2643
2672
|
color: "#fff",
|
|
@@ -2669,13 +2698,13 @@ const tn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2669
2698
|
0 0 6px rgba(255, 255, 255, .6),
|
|
2670
2699
|
0 1px 0 rgba(137, 137, 137, .85)
|
|
2671
2700
|
`
|
|
2672
|
-
},
|
|
2701
|
+
}, Sn = ({
|
|
2673
2702
|
headline: e,
|
|
2674
2703
|
headline2: a,
|
|
2675
2704
|
items: n,
|
|
2676
2705
|
backgroundImageUrl: r
|
|
2677
2706
|
}) => {
|
|
2678
|
-
const i = oe(),
|
|
2707
|
+
const i = oe(), s = re(), l = xe("(max-width: 767px)"), d = n.length > 1, h = U(null), g = U(null), m = U(!1), u = U(!1), [c, f] = Z(0), [v, x] = Z({ isStart: !0, isEnd: !1 });
|
|
2679
2708
|
Q(() => {
|
|
2680
2709
|
const _ = setTimeout(() => {
|
|
2681
2710
|
m.current = !0;
|
|
@@ -2686,13 +2715,13 @@ const tn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2686
2715
|
Q(() => {
|
|
2687
2716
|
k.current = v;
|
|
2688
2717
|
}, [v]);
|
|
2689
|
-
const T = U(!1), E = U(null), b = n == null ? void 0 : n[c],
|
|
2718
|
+
const T = U(!1), E = U(null), b = n == null ? void 0 : n[c], A = ie(
|
|
2690
2719
|
() => {
|
|
2691
2720
|
var _, O;
|
|
2692
2721
|
return (O = (_ = b == null ? void 0 : b.backgroundImageUrl) != null ? _ : r) != null ? O : "";
|
|
2693
2722
|
},
|
|
2694
2723
|
[b, r]
|
|
2695
|
-
), w =
|
|
2724
|
+
), w = xn(A), S = !n || n.length === 0, L = (_, O) => {
|
|
2696
2725
|
i({
|
|
2697
2726
|
element: "welcome_banner_button",
|
|
2698
2727
|
label: `OraculoSeccionBonoBienvenida - Banner button click: ${_.title || "OraculoSeccionBonoBienvenida - Banner " + (O + 1)}`,
|
|
@@ -2709,7 +2738,7 @@ const tn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2709
2738
|
button_text: _.buttonText || "no_text"
|
|
2710
2739
|
}
|
|
2711
2740
|
}), _.onButtonClick && _.onButtonClick();
|
|
2712
|
-
},
|
|
2741
|
+
}, F = (_) => {
|
|
2713
2742
|
if (!m.current) return;
|
|
2714
2743
|
if (u.current) {
|
|
2715
2744
|
u.current = !1;
|
|
@@ -2718,7 +2747,7 @@ const tn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2718
2747
|
const O = n == null ? void 0 : n[_];
|
|
2719
2748
|
i({
|
|
2720
2749
|
element: "welcome_banner_carousel",
|
|
2721
|
-
label: `Landing: ${
|
|
2750
|
+
label: `Landing: ${s} - OraculoSeccionBonoBienvenida - Banner view: ${(O == null ? void 0 : O.title) || "OraculoSeccionBonoBienvenida - Banner " + (_ + 1)}`,
|
|
2722
2751
|
target: "no_url",
|
|
2723
2752
|
event_type: "view",
|
|
2724
2753
|
module_id: 301,
|
|
@@ -2735,15 +2764,15 @@ const tn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2735
2764
|
});
|
|
2736
2765
|
};
|
|
2737
2766
|
Q(() => {
|
|
2738
|
-
const _ =
|
|
2767
|
+
const _ = g.current;
|
|
2739
2768
|
if (!_) return;
|
|
2740
|
-
const O = 6, q = 380, M = (
|
|
2741
|
-
var K,
|
|
2742
|
-
if (S ||
|
|
2743
|
-
const P =
|
|
2769
|
+
const O = 6, q = 380, M = (B) => {
|
|
2770
|
+
var K, j;
|
|
2771
|
+
if (S || B.ctrlKey || T.current) return;
|
|
2772
|
+
const P = B.deltaX, V = B.deltaY;
|
|
2744
2773
|
if (Math.abs(P) <= Math.abs(V) || Math.abs(P) < O) return;
|
|
2745
|
-
const
|
|
2746
|
-
|
|
2774
|
+
const G = P > 0;
|
|
2775
|
+
G && k.current.isEnd || !G && k.current.isStart || (B.preventDefault(), T.current = !0, G ? (K = h.current) == null || K.next() : (j = h.current) == null || j.prev(), E.current && window.clearTimeout(E.current), E.current = window.setTimeout(() => {
|
|
2747
2776
|
T.current = !1;
|
|
2748
2777
|
}, q));
|
|
2749
2778
|
};
|
|
@@ -2753,7 +2782,7 @@ const tn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2753
2782
|
}, [S]);
|
|
2754
2783
|
const I = (_, O, q) => {
|
|
2755
2784
|
var P, V;
|
|
2756
|
-
const M = (P = _.headline) != null ? P : e,
|
|
2785
|
+
const M = (P = _.headline) != null ? P : e, B = (V = _.headline2) != null ? V : a;
|
|
2757
2786
|
return O ? /* @__PURE__ */ y(
|
|
2758
2787
|
z,
|
|
2759
2788
|
{
|
|
@@ -2767,7 +2796,7 @@ const tn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2767
2796
|
columnGap: 6
|
|
2768
2797
|
},
|
|
2769
2798
|
children: [
|
|
2770
|
-
(M ||
|
|
2799
|
+
(M || B) && /* @__PURE__ */ t(
|
|
2771
2800
|
z,
|
|
2772
2801
|
{
|
|
2773
2802
|
sx: {
|
|
@@ -2778,9 +2807,9 @@ const tn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2778
2807
|
},
|
|
2779
2808
|
children: /* @__PURE__ */ y(z, { sx: { ...et, textAlign: "left", mb: 0 }, children: [
|
|
2780
2809
|
M && /* @__PURE__ */ t(ue, { component: "span", sx: tt, children: M }),
|
|
2781
|
-
|
|
2810
|
+
B && /* @__PURE__ */ y(pe, { children: [
|
|
2782
2811
|
/* @__PURE__ */ t("br", {}),
|
|
2783
|
-
/* @__PURE__ */ t(ue, { component: "span", sx: at, children:
|
|
2812
|
+
/* @__PURE__ */ t(ue, { component: "span", sx: at, children: B })
|
|
2784
2813
|
] })
|
|
2785
2814
|
] })
|
|
2786
2815
|
}
|
|
@@ -2789,32 +2818,32 @@ const tn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2789
2818
|
Xe,
|
|
2790
2819
|
{
|
|
2791
2820
|
..._,
|
|
2792
|
-
onButtonClick: () =>
|
|
2821
|
+
onButtonClick: () => L(_, q),
|
|
2793
2822
|
variant: "large"
|
|
2794
2823
|
}
|
|
2795
2824
|
) }) })
|
|
2796
2825
|
]
|
|
2797
2826
|
}
|
|
2798
2827
|
) : /* @__PURE__ */ y(z, { sx: { textAlign: "center" }, children: [
|
|
2799
|
-
(M ||
|
|
2828
|
+
(M || B) && /* @__PURE__ */ y(z, { sx: et, children: [
|
|
2800
2829
|
M && /* @__PURE__ */ t(ue, { component: "span", sx: tt, children: M }),
|
|
2801
|
-
|
|
2830
|
+
B && /* @__PURE__ */ y(pe, { children: [
|
|
2802
2831
|
/* @__PURE__ */ t("br", {}),
|
|
2803
|
-
/* @__PURE__ */ t(ue, { component: "span", sx: at, children:
|
|
2832
|
+
/* @__PURE__ */ t(ue, { component: "span", sx: at, children: B })
|
|
2804
2833
|
] })
|
|
2805
2834
|
] }),
|
|
2806
2835
|
/* @__PURE__ */ t(z, { sx: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(
|
|
2807
2836
|
Xe,
|
|
2808
2837
|
{
|
|
2809
2838
|
..._,
|
|
2810
|
-
onButtonClick: () =>
|
|
2839
|
+
onButtonClick: () => L(_, q),
|
|
2811
2840
|
variant: "small"
|
|
2812
2841
|
}
|
|
2813
2842
|
) })
|
|
2814
2843
|
] });
|
|
2815
2844
|
};
|
|
2816
2845
|
return /* @__PURE__ */ y(z, { component: "section", sx: w, children: [
|
|
2817
|
-
/* @__PURE__ */ t("div", { ref:
|
|
2846
|
+
/* @__PURE__ */ t("div", { ref: g, style: { width: "100%" }, children: /* @__PURE__ */ t(
|
|
2818
2847
|
he,
|
|
2819
2848
|
{
|
|
2820
2849
|
ref: h,
|
|
@@ -2831,9 +2860,9 @@ const tn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2831
2860
|
// arrows: false,
|
|
2832
2861
|
// drag: true,
|
|
2833
2862
|
},
|
|
2834
|
-
renderItem: (_, O) => /* @__PURE__ */ t(z, { sx: { width: "100%" }, children: I(_, !
|
|
2863
|
+
renderItem: (_, O) => /* @__PURE__ */ t(z, { sx: { width: "100%" }, children: I(_, !l, O) }),
|
|
2835
2864
|
onMove: ({ index: _, isStart: O, isEnd: q, source: M }) => {
|
|
2836
|
-
|
|
2865
|
+
f(_), typeof O == "boolean" && typeof q == "boolean" && x({ isStart: O, isEnd: q }), M === "user" && F(_);
|
|
2837
2866
|
}
|
|
2838
2867
|
}
|
|
2839
2868
|
) }),
|
|
@@ -2846,7 +2875,7 @@ const tn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2846
2875
|
var O;
|
|
2847
2876
|
i({
|
|
2848
2877
|
element: "welcome_banner_dots",
|
|
2849
|
-
label: `Landing: ${
|
|
2878
|
+
label: `Landing: ${s} - OraculoSeccionBonoBienvenida - Dot navigation: Banner ${_ + 1}`,
|
|
2850
2879
|
target: "no_url",
|
|
2851
2880
|
event_type: "click",
|
|
2852
2881
|
module_id: 301,
|
|
@@ -2858,23 +2887,23 @@ const tn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2858
2887
|
tags: {
|
|
2859
2888
|
navigation_type: "dot_click"
|
|
2860
2889
|
}
|
|
2861
|
-
}),
|
|
2890
|
+
}), f(_), (O = h.current) == null || O.go(_);
|
|
2862
2891
|
}
|
|
2863
2892
|
}
|
|
2864
2893
|
) })
|
|
2865
2894
|
] });
|
|
2866
|
-
},
|
|
2895
|
+
}, wn = ({
|
|
2867
2896
|
className: e = "",
|
|
2868
2897
|
fullBleed: a = !0,
|
|
2869
2898
|
items: n,
|
|
2870
2899
|
selectedIndex: r = 0,
|
|
2871
2900
|
ariaLabel: i,
|
|
2872
|
-
user:
|
|
2901
|
+
user: s = null
|
|
2873
2902
|
}) => {
|
|
2874
|
-
const
|
|
2903
|
+
const l = U(null), d = U(null), h = oe(), g = re(), m = le();
|
|
2875
2904
|
if (!n) return null;
|
|
2876
2905
|
const u = async () => {
|
|
2877
|
-
let x =
|
|
2906
|
+
let x = s;
|
|
2878
2907
|
if ((!(x != null && x.user) || !(x != null && x.session)) && typeof window != "undefined")
|
|
2879
2908
|
try {
|
|
2880
2909
|
const k = localStorage.getItem("user");
|
|
@@ -2886,7 +2915,7 @@ const tn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2886
2915
|
return console.warn("User data missing"), null;
|
|
2887
2916
|
h({
|
|
2888
2917
|
element: "club_olimpo_button",
|
|
2889
|
-
label: `${
|
|
2918
|
+
label: `${g} - OraculoSeccionClubOlimpo - Click: Club Olimpo`,
|
|
2890
2919
|
target: "https://www.clubolimpo.com/OlimpoBetWeb/",
|
|
2891
2920
|
event_type: "click",
|
|
2892
2921
|
module_id: m,
|
|
@@ -2918,10 +2947,10 @@ const tn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2918
2947
|
}, c = async () => {
|
|
2919
2948
|
const x = await u();
|
|
2920
2949
|
x ? window.location.href = x : typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/conoce-club-olimpo");
|
|
2921
|
-
},
|
|
2922
|
-
|
|
2923
|
-
if (!
|
|
2924
|
-
const x =
|
|
2950
|
+
}, f = Array.isArray(n) ? n[r] : n;
|
|
2951
|
+
Bt(() => {
|
|
2952
|
+
if (!l.current || !d.current || typeof ResizeObserver == "undefined") return;
|
|
2953
|
+
const x = l.current, k = d.current, T = () => {
|
|
2925
2954
|
x.style.setProperty(
|
|
2926
2955
|
"--orc-co-bottomH",
|
|
2927
2956
|
`${k.offsetHeight + 16}px`
|
|
@@ -2937,55 +2966,55 @@ const tn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2937
2966
|
return /* @__PURE__ */ t(
|
|
2938
2967
|
"section",
|
|
2939
2968
|
{
|
|
2940
|
-
ref:
|
|
2969
|
+
ref: l,
|
|
2941
2970
|
className: v,
|
|
2942
|
-
"aria-label": i ||
|
|
2971
|
+
"aria-label": i || f.imgAlt || "Club Olimpo",
|
|
2943
2972
|
children: /* @__PURE__ */ t("div", { ref: d, children: /* @__PURE__ */ t(
|
|
2944
2973
|
Ia,
|
|
2945
2974
|
{
|
|
2946
|
-
text:
|
|
2975
|
+
text: f.text,
|
|
2947
2976
|
onClick: c,
|
|
2948
|
-
imgAlt:
|
|
2949
|
-
buttonLabel:
|
|
2950
|
-
imgSrcMobile:
|
|
2951
|
-
imgSrcDesktopBg:
|
|
2952
|
-
imgSrcDesktopLogo:
|
|
2977
|
+
imgAlt: f.imgAlt,
|
|
2978
|
+
buttonLabel: f.buttonLabel,
|
|
2979
|
+
imgSrcMobile: f.imgMobile,
|
|
2980
|
+
imgSrcDesktopBg: f.imgDesktopBg,
|
|
2981
|
+
imgSrcDesktopLogo: f.imgDesktopLogo
|
|
2953
2982
|
}
|
|
2954
2983
|
) })
|
|
2955
2984
|
}
|
|
2956
2985
|
);
|
|
2957
|
-
},
|
|
2958
|
-
controls:
|
|
2959
|
-
padding:
|
|
2960
|
-
},
|
|
2986
|
+
}, In = "oraculo__OraculoSeccionEventoCombinadas-module__controls___Zsta4", On = "oraculo__OraculoSeccionEventoCombinadas-module__padding___vf-yF", nt = {
|
|
2987
|
+
controls: In,
|
|
2988
|
+
padding: On
|
|
2989
|
+
}, En = (e) => {
|
|
2961
2990
|
var a, n;
|
|
2962
2991
|
return (a = e.outcome) != null && a.id ? [e.outcome.id] : e.type === "BET_BUILDER" && ((n = e.group) != null && n.groups) ? e.group.groups.flatMap((r) => {
|
|
2963
|
-
var i,
|
|
2964
|
-
return (
|
|
2992
|
+
var i, s;
|
|
2993
|
+
return (s = (i = r.outcomes) == null ? void 0 : i.map((l) => l.id)) != null ? s : [];
|
|
2965
2994
|
}) : [];
|
|
2966
2995
|
};
|
|
2967
|
-
function
|
|
2996
|
+
function Cn(e, a, n) {
|
|
2968
2997
|
return n ? n.map((r) => {
|
|
2969
2998
|
var m, u;
|
|
2970
|
-
const i = r.prePackCouponRows.flatMap((c) =>
|
|
2999
|
+
const i = r.prePackCouponRows.flatMap((c) => En(c).map((f) => ({ eventId: c.eventId, outcomeId: f }))), s = new Set(i.map((c) => c.eventId)), l = new Set(i.map((c) => c.outcomeId)), d = new Map(i.map((c, f) => [c.outcomeId, f])), h = {};
|
|
2971
3000
|
for (const c of a) {
|
|
2972
|
-
if (!
|
|
2973
|
-
const
|
|
2974
|
-
|
|
3001
|
+
if (!s.has(c.eventId)) continue;
|
|
3002
|
+
const f = c.outcomes.filter((v) => l.has(v.id)).map((v) => ({ ...v, position: d.get(v.id) }));
|
|
3003
|
+
f.length && ((u = h[m = c.eventId]) != null || (h[m] = []), h[c.eventId].push({ ...c, outcomes: f }));
|
|
2975
3004
|
}
|
|
2976
|
-
const
|
|
2977
|
-
var
|
|
2978
|
-
return { ...c, betoffers: (
|
|
3005
|
+
const g = e.filter((c) => s.has(c.id)).map((c) => {
|
|
3006
|
+
var f;
|
|
3007
|
+
return { ...c, betoffers: (f = h[c.id]) != null ? f : [] };
|
|
2979
3008
|
});
|
|
2980
3009
|
return {
|
|
2981
3010
|
couponId: r.id,
|
|
2982
3011
|
status: r.status,
|
|
2983
|
-
combinadoTotal:
|
|
2984
|
-
events:
|
|
3012
|
+
combinadoTotal: kn(r.prePackCouponRows),
|
|
3013
|
+
events: g
|
|
2985
3014
|
};
|
|
2986
3015
|
}) : [];
|
|
2987
3016
|
}
|
|
2988
|
-
function
|
|
3017
|
+
function kn(e) {
|
|
2989
3018
|
if (!Array.isArray(e) || e.length === 0) return 0;
|
|
2990
3019
|
let a = 1;
|
|
2991
3020
|
for (const n of e) {
|
|
@@ -2994,19 +3023,19 @@ function Cn(e) {
|
|
|
2994
3023
|
}
|
|
2995
3024
|
return Math.floor(a * 100) / 100;
|
|
2996
3025
|
}
|
|
2997
|
-
const
|
|
2998
|
-
function
|
|
3026
|
+
const Tn = fe.memo(Fa);
|
|
3027
|
+
function $n({
|
|
2999
3028
|
items: e,
|
|
3000
3029
|
title: a = "Combinadas del Olimpo",
|
|
3001
3030
|
iconUrl: n = "https://d28gilnhu2bcbp.cloudfront.net/landing/rayoIcon.svg",
|
|
3002
3031
|
onViewMore: r,
|
|
3003
3032
|
className: i = ""
|
|
3004
3033
|
}) {
|
|
3005
|
-
const
|
|
3034
|
+
const s = oe(), l = re(), d = le(), h = U(null), [g, m] = Z({ isStart: !0, isEnd: !1 }), [u, c] = Z([]), f = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group/prepackcoupon.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764284658793&prePackCouponTags=CUSTOM", v = () => {
|
|
3006
3035
|
var w;
|
|
3007
|
-
|
|
3036
|
+
s({
|
|
3008
3037
|
element: "evento_combinadas_prev",
|
|
3009
|
-
label: `${
|
|
3038
|
+
label: `${l} - OraculoSeccionEventoCombinadas - Click: Anterior`,
|
|
3010
3039
|
event_type: "click",
|
|
3011
3040
|
module_id: d,
|
|
3012
3041
|
metadata: {
|
|
@@ -3016,9 +3045,9 @@ function Tn({
|
|
|
3016
3045
|
}), (w = h.current) == null || w.prev();
|
|
3017
3046
|
}, x = () => {
|
|
3018
3047
|
var w;
|
|
3019
|
-
|
|
3048
|
+
s({
|
|
3020
3049
|
element: "evento_combinadas_next",
|
|
3021
|
-
label: `${
|
|
3050
|
+
label: `${l} - OraculoSeccionEventoCombinadas - Click: Siguiente`,
|
|
3022
3051
|
event_type: "click",
|
|
3023
3052
|
module_id: d,
|
|
3024
3053
|
metadata: {
|
|
@@ -3027,9 +3056,9 @@ function Tn({
|
|
|
3027
3056
|
tags: { section: "OraculoSeccionEventoCombinadas" }
|
|
3028
3057
|
}), (w = h.current) == null || w.next();
|
|
3029
3058
|
}, k = () => {
|
|
3030
|
-
|
|
3059
|
+
s({
|
|
3031
3060
|
element: "evento_combinadas_ver_mas",
|
|
3032
|
-
label: `${
|
|
3061
|
+
label: `${l} - OraculoSeccionEventoCombinadas - Click: Ver más`,
|
|
3033
3062
|
event_type: "click",
|
|
3034
3063
|
module_id: d,
|
|
3035
3064
|
metadata: {
|
|
@@ -3039,15 +3068,15 @@ function Tn({
|
|
|
3039
3068
|
}), La();
|
|
3040
3069
|
}, T = ie(() => u.filter((w) => w.combinadoTotal !== null), [u]);
|
|
3041
3070
|
async function E() {
|
|
3042
|
-
var w, S,
|
|
3071
|
+
var w, S, L, F;
|
|
3043
3072
|
try {
|
|
3044
|
-
const _ = await (await fetch(
|
|
3073
|
+
const _ = await (await fetch(f)).json(), O = (F = (L = (S = (w = _ == null ? void 0 : _.group) == null ? void 0 : w.groups) == null ? void 0 : S.map((P) => P.id)) == null ? void 0 : L.filter(Boolean)) == null ? void 0 : F.join(",");
|
|
3045
3074
|
if (!O) {
|
|
3046
3075
|
console.error("Could not extract group ID");
|
|
3047
3076
|
return;
|
|
3048
3077
|
}
|
|
3049
|
-
const q = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${O}.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764283566783&prePackCouponTags=CUSTOM`,
|
|
3050
|
-
c(
|
|
3078
|
+
const q = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${O}.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764283566783&prePackCouponTags=CUSTOM`, B = await (await fetch(q)).json();
|
|
3079
|
+
c(Cn(B.events, B.betOffers, B.prePackCoupons));
|
|
3051
3080
|
} catch (I) {
|
|
3052
3081
|
console.error("loadDataEventSpecial error:", I);
|
|
3053
3082
|
}
|
|
@@ -3055,7 +3084,7 @@ function Tn({
|
|
|
3055
3084
|
Q(() => {
|
|
3056
3085
|
E();
|
|
3057
3086
|
}, []);
|
|
3058
|
-
const b = i || void 0,
|
|
3087
|
+
const b = i || void 0, A = xe("(max-width:950px)");
|
|
3059
3088
|
return T.length === 0 ? null : /* @__PURE__ */ t("section", { className: b, style: {
|
|
3060
3089
|
// paddingLeft: 16,
|
|
3061
3090
|
// paddingRight: 16,
|
|
@@ -3074,7 +3103,7 @@ function Tn({
|
|
|
3074
3103
|
iconOnly: !0,
|
|
3075
3104
|
leftIcon: /* @__PURE__ */ t(Re, {}),
|
|
3076
3105
|
onClick: v,
|
|
3077
|
-
disabled:
|
|
3106
|
+
disabled: g.isStart
|
|
3078
3107
|
}
|
|
3079
3108
|
),
|
|
3080
3109
|
/* @__PURE__ */ t(
|
|
@@ -3085,7 +3114,7 @@ function Tn({
|
|
|
3085
3114
|
iconOnly: !0,
|
|
3086
3115
|
rightIcon: /* @__PURE__ */ t(Le, {}),
|
|
3087
3116
|
onClick: x,
|
|
3088
|
-
disabled:
|
|
3117
|
+
disabled: g.isEnd
|
|
3089
3118
|
}
|
|
3090
3119
|
)
|
|
3091
3120
|
] }),
|
|
@@ -3102,11 +3131,11 @@ function Tn({
|
|
|
3102
3131
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
3103
3132
|
useIndexAsKey: !0,
|
|
3104
3133
|
enableHorizontalWheel: !0,
|
|
3105
|
-
showRightGradient: !
|
|
3134
|
+
showRightGradient: !A,
|
|
3106
3135
|
breakpoints: {
|
|
3107
3136
|
768: { perPage: 1.2, gap: "12px", padding: { left: "24px", right: "24px" } }
|
|
3108
3137
|
},
|
|
3109
|
-
renderItem: (w) => /* @__PURE__ */ t(
|
|
3138
|
+
renderItem: (w) => /* @__PURE__ */ t(Tn, { coupon: w }),
|
|
3110
3139
|
onMove: ({ isStart: w, isEnd: S }) => m({ isStart: w, isEnd: S })
|
|
3111
3140
|
}
|
|
3112
3141
|
)
|
|
@@ -3116,43 +3145,43 @@ function Nn({}) {
|
|
|
3116
3145
|
return /* @__PURE__ */ t(
|
|
3117
3146
|
"div",
|
|
3118
3147
|
{
|
|
3119
|
-
className:
|
|
3148
|
+
className: $e.cardWrapper,
|
|
3120
3149
|
children: /* @__PURE__ */ y(H, { direction: "column", spacing: 1, children: [
|
|
3121
3150
|
/* @__PURE__ */ y(H, { spacing: 1, direction: "row", children: [
|
|
3122
|
-
/* @__PURE__ */ t(
|
|
3123
|
-
/* @__PURE__ */ t(
|
|
3151
|
+
/* @__PURE__ */ t(W, { variant: "text", width: "60%", height: 24 }),
|
|
3152
|
+
/* @__PURE__ */ t(W, { variant: "text", width: "39%", height: 24 })
|
|
3124
3153
|
] }),
|
|
3125
3154
|
/* @__PURE__ */ y(H, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
3126
|
-
/* @__PURE__ */ t(
|
|
3127
|
-
/* @__PURE__ */ t(
|
|
3128
|
-
/* @__PURE__ */ t(
|
|
3155
|
+
/* @__PURE__ */ t(W, { variant: "circular", width: 32, height: 40 }),
|
|
3156
|
+
/* @__PURE__ */ t(W, { variant: "text", width: 40, height: 40 }),
|
|
3157
|
+
/* @__PURE__ */ t(W, { variant: "circular", width: 32, height: 40 })
|
|
3129
3158
|
] }),
|
|
3130
3159
|
/* @__PURE__ */ y(H, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
3131
|
-
/* @__PURE__ */ t(
|
|
3132
|
-
/* @__PURE__ */ t(
|
|
3133
|
-
/* @__PURE__ */ t(
|
|
3160
|
+
/* @__PURE__ */ t(W, { variant: "text", width: 32, height: 16 }),
|
|
3161
|
+
/* @__PURE__ */ t(W, { variant: "text", width: 40, height: 16 }),
|
|
3162
|
+
/* @__PURE__ */ t(W, { variant: "text", width: 32, height: 16 })
|
|
3134
3163
|
] }),
|
|
3135
3164
|
/* @__PURE__ */ y(H, { spacing: 2, direction: "row", children: [
|
|
3136
|
-
/* @__PURE__ */ t(
|
|
3137
|
-
/* @__PURE__ */ t(
|
|
3138
|
-
/* @__PURE__ */ t(
|
|
3165
|
+
/* @__PURE__ */ t(W, { variant: "rounded", width: 88, height: 16 }),
|
|
3166
|
+
/* @__PURE__ */ t(W, { variant: "rounded", width: 88, height: 16 }),
|
|
3167
|
+
/* @__PURE__ */ t(W, { variant: "rounded", width: 88, height: 16 })
|
|
3139
3168
|
] }),
|
|
3140
3169
|
/* @__PURE__ */ y(H, { spacing: 2, direction: "row", children: [
|
|
3141
|
-
/* @__PURE__ */ t(
|
|
3142
|
-
/* @__PURE__ */ t(
|
|
3143
|
-
/* @__PURE__ */ t(
|
|
3170
|
+
/* @__PURE__ */ t(W, { variant: "rounded", width: 88, height: 32 }),
|
|
3171
|
+
/* @__PURE__ */ t(W, { variant: "rounded", width: 88, height: 32 }),
|
|
3172
|
+
/* @__PURE__ */ t(W, { variant: "rounded", width: 88, height: 32 })
|
|
3144
3173
|
] })
|
|
3145
3174
|
] })
|
|
3146
3175
|
}
|
|
3147
3176
|
);
|
|
3148
3177
|
}
|
|
3149
|
-
const
|
|
3150
|
-
fadeWrapper:
|
|
3178
|
+
const Mn = "oraculo__FadeItemWrapper-module__fadeWrapper___kFOH4", An = {
|
|
3179
|
+
fadeWrapper: Mn
|
|
3151
3180
|
};
|
|
3152
|
-
function
|
|
3153
|
-
return /* @__PURE__ */ t("div", { className:
|
|
3181
|
+
function Be({ children: e }) {
|
|
3182
|
+
return /* @__PURE__ */ t("div", { className: An.fadeWrapper, children: e });
|
|
3154
3183
|
}
|
|
3155
|
-
const Bn = "oraculo__OraculoSeccionEventoEnVivo-module__padding___Sh8tD",
|
|
3184
|
+
const Bn = "oraculo__OraculoSeccionEventoEnVivo-module__padding___Sh8tD", Rn = {
|
|
3156
3185
|
padding: Bn
|
|
3157
3186
|
};
|
|
3158
3187
|
function It({
|
|
@@ -3162,16 +3191,16 @@ function It({
|
|
|
3162
3191
|
buffer: r = 2,
|
|
3163
3192
|
debounceMs: i = 250
|
|
3164
3193
|
}) {
|
|
3165
|
-
const [
|
|
3194
|
+
const [s, l] = Z({}), d = U(/* @__PURE__ */ new Set()), h = U(0), g = U(null), m = U(null);
|
|
3166
3195
|
return Q(() => {
|
|
3167
3196
|
if (!(!e || e.length === 0))
|
|
3168
|
-
return
|
|
3169
|
-
var
|
|
3170
|
-
const u = (
|
|
3171
|
-
let x =
|
|
3197
|
+
return g.current && clearTimeout(g.current), g.current = setTimeout(() => {
|
|
3198
|
+
var A, w;
|
|
3199
|
+
const u = (A = a.start) != null ? A : 0, c = (w = a.end) != null ? w : 7, f = Math.max(0, u - r), v = Math.min(e.length - 1, c + r);
|
|
3200
|
+
let x = f, k = v;
|
|
3172
3201
|
const T = m.current;
|
|
3173
|
-
T && (
|
|
3174
|
-
const E = e.slice(x, k + 1).map((S) => S == null ? void 0 : S.id).filter((S) => !!S).filter((S) => !d.current.has(S)).filter((S) => !(S in
|
|
3202
|
+
T && (f > T.end && (x = T.end + 1), v < T.start && (k = T.start - 1)), m.current = { start: f, end: v };
|
|
3203
|
+
const E = e.slice(x, k + 1).map((S) => S == null ? void 0 : S.id).filter((S) => !!S).filter((S) => !d.current.has(S)).filter((S) => !(S in s));
|
|
3175
3204
|
if (E.length === 0) return;
|
|
3176
3205
|
E.forEach((S) => d.current.add(S));
|
|
3177
3206
|
const b = ++h.current;
|
|
@@ -3179,61 +3208,61 @@ function It({
|
|
|
3179
3208
|
try {
|
|
3180
3209
|
const S = await n(E);
|
|
3181
3210
|
if (b !== h.current) {
|
|
3182
|
-
E.forEach((
|
|
3211
|
+
E.forEach((F) => d.current.delete(F));
|
|
3183
3212
|
return;
|
|
3184
3213
|
}
|
|
3185
3214
|
if (!(S != null && S.events)) {
|
|
3186
3215
|
E.forEach(
|
|
3187
|
-
(
|
|
3216
|
+
(F) => d.current.delete(F)
|
|
3188
3217
|
);
|
|
3189
3218
|
return;
|
|
3190
3219
|
}
|
|
3191
|
-
|
|
3192
|
-
const I = { ...
|
|
3220
|
+
l((F) => {
|
|
3221
|
+
const I = { ...F };
|
|
3193
3222
|
for (const [_, O] of Object.entries(S.events)) {
|
|
3194
3223
|
const q = Number(_);
|
|
3195
3224
|
I[q] || (I[q] = O);
|
|
3196
3225
|
}
|
|
3197
3226
|
return I;
|
|
3198
3227
|
});
|
|
3199
|
-
const
|
|
3228
|
+
const L = new Set(
|
|
3200
3229
|
Object.keys(S.events).map(Number)
|
|
3201
3230
|
);
|
|
3202
|
-
E.forEach((
|
|
3203
|
-
d.current.delete(
|
|
3231
|
+
E.forEach((F) => {
|
|
3232
|
+
d.current.delete(F);
|
|
3204
3233
|
});
|
|
3205
3234
|
} catch (S) {
|
|
3206
3235
|
E.forEach(
|
|
3207
|
-
(
|
|
3236
|
+
(L) => d.current.delete(L)
|
|
3208
3237
|
), console.error("Jersey fetch error", S);
|
|
3209
3238
|
}
|
|
3210
3239
|
})();
|
|
3211
3240
|
}, i), () => {
|
|
3212
|
-
|
|
3241
|
+
g.current && clearTimeout(g.current);
|
|
3213
3242
|
};
|
|
3214
3243
|
}, [e, a, r, i, n]), {
|
|
3215
|
-
jerseys:
|
|
3244
|
+
jerseys: s,
|
|
3216
3245
|
isPending: d.current
|
|
3217
3246
|
};
|
|
3218
3247
|
}
|
|
3219
|
-
const
|
|
3248
|
+
const Ln = (e) => {
|
|
3220
3249
|
const a = ["esports", "cyber"];
|
|
3221
3250
|
return e.filter((n) => {
|
|
3222
|
-
var
|
|
3223
|
-
const r = (
|
|
3251
|
+
var s, l;
|
|
3252
|
+
const r = (s = n == null ? void 0 : n.event) == null ? void 0 : s.sport;
|
|
3224
3253
|
if (typeof r != "string" || r !== "FOOTBALL") return !1;
|
|
3225
|
-
const i = typeof ((
|
|
3254
|
+
const i = typeof ((l = n == null ? void 0 : n.event) == null ? void 0 : l.group) == "string" ? n.event.group.toLowerCase() : "";
|
|
3226
3255
|
return !a.some((d) => i.includes(d));
|
|
3227
3256
|
});
|
|
3228
|
-
},
|
|
3229
|
-
function
|
|
3257
|
+
}, Fn = fe.memo(Ua);
|
|
3258
|
+
function qn({
|
|
3230
3259
|
items: e,
|
|
3231
3260
|
title: a = "En vivo",
|
|
3232
3261
|
iconUrl: n = "https://d28gilnhu2bcbp.cloudfront.net/landing/1778868672728-evento-en-vivo.gif",
|
|
3233
3262
|
onViewMore: r,
|
|
3234
3263
|
className: i = ""
|
|
3235
3264
|
}) {
|
|
3236
|
-
const
|
|
3265
|
+
const s = "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", l = U(null), [d, h] = Z({ isStart: !0, isEnd: !1 }), [g, m] = Z(null), [u, c] = Z({ start: null, end: null }), [f, v] = Z(null), x = U(!1), k = oe(), T = re(), E = le(), b = U(/* @__PURE__ */ new Map()), A = () => {
|
|
3237
3266
|
var M;
|
|
3238
3267
|
k({
|
|
3239
3268
|
element: "evento_en_vivo_prev",
|
|
@@ -3245,7 +3274,7 @@ function Fn({
|
|
|
3245
3274
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
3246
3275
|
},
|
|
3247
3276
|
tags: { section: "OraculoSeccionEventoEnVivo" }
|
|
3248
|
-
}), (M =
|
|
3277
|
+
}), (M = l.current) == null || M.prev();
|
|
3249
3278
|
}, w = () => {
|
|
3250
3279
|
var M;
|
|
3251
3280
|
k({
|
|
@@ -3258,7 +3287,7 @@ function Fn({
|
|
|
3258
3287
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
3259
3288
|
},
|
|
3260
3289
|
tags: { section: "OraculoSeccionEventoEnVivo" }
|
|
3261
|
-
}), (M =
|
|
3290
|
+
}), (M = l.current) == null || M.next();
|
|
3262
3291
|
}, S = () => {
|
|
3263
3292
|
k({
|
|
3264
3293
|
element: "evento_en_vivo_view_more",
|
|
@@ -3270,42 +3299,42 @@ function Fn({
|
|
|
3270
3299
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
3271
3300
|
},
|
|
3272
3301
|
tags: { section: "OraculoSeccionEventoEnVivo" }
|
|
3273
|
-
}),
|
|
3274
|
-
},
|
|
3302
|
+
}), Ba();
|
|
3303
|
+
}, L = ke(async () => {
|
|
3275
3304
|
var M;
|
|
3276
3305
|
try {
|
|
3277
3306
|
if (!x.current) {
|
|
3278
3307
|
x.current = !0;
|
|
3279
3308
|
try {
|
|
3280
|
-
const K = await (await fetch("https://api.mktolimpo.com/api/kambi/eventos/orden")).json(),
|
|
3281
|
-
|
|
3282
|
-
} catch (
|
|
3283
|
-
console.error("Order fetch failed, using default sorting",
|
|
3309
|
+
const K = await (await fetch("https://api.mktolimpo.com/api/kambi/eventos/orden")).json(), j = ((M = K == null ? void 0 : K.data) == null ? void 0 : M.event_ids) || [], X = /* @__PURE__ */ new Map();
|
|
3310
|
+
j.forEach((te, o) => X.set(String(te), o)), b.current = X;
|
|
3311
|
+
} catch (G) {
|
|
3312
|
+
console.error("Order fetch failed, using default sorting", G);
|
|
3284
3313
|
}
|
|
3285
3314
|
}
|
|
3286
|
-
const
|
|
3287
|
-
if (!
|
|
3288
|
-
const P = await
|
|
3315
|
+
const B = await fetch(s);
|
|
3316
|
+
if (!B.ok) throw new Error("Failed to fetch live events");
|
|
3317
|
+
const P = await B.json(), V = Ln(P.events);
|
|
3289
3318
|
if (b.current.size === 0)
|
|
3290
3319
|
m(V);
|
|
3291
3320
|
else {
|
|
3292
|
-
const
|
|
3293
|
-
const X = b.current.get(String(K.event.id)), te = b.current.get(String(
|
|
3321
|
+
const G = [...V].sort((K, j) => {
|
|
3322
|
+
const X = b.current.get(String(K.event.id)), te = b.current.get(String(j.event.id));
|
|
3294
3323
|
return (X !== void 0 ? X : 1 / 0) - (te !== void 0 ? te : 1 / 0);
|
|
3295
3324
|
});
|
|
3296
|
-
m(
|
|
3325
|
+
m(G);
|
|
3297
3326
|
}
|
|
3298
|
-
} catch (
|
|
3299
|
-
console.error("LoadData Error:",
|
|
3327
|
+
} catch (B) {
|
|
3328
|
+
console.error("LoadData Error:", B);
|
|
3300
3329
|
}
|
|
3301
3330
|
}, []);
|
|
3302
3331
|
Q(() => {
|
|
3303
|
-
|
|
3304
|
-
const M = setInterval(
|
|
3332
|
+
L();
|
|
3333
|
+
const M = setInterval(L, 2e4);
|
|
3305
3334
|
return () => clearInterval(M);
|
|
3306
|
-
}, [
|
|
3307
|
-
const { jerseys:
|
|
3308
|
-
events: (
|
|
3335
|
+
}, [L]);
|
|
3336
|
+
const { jerseys: F } = It({
|
|
3337
|
+
events: (g == null ? void 0 : g.map((M) => M.event)) || [],
|
|
3309
3338
|
// extract actual event objects
|
|
3310
3339
|
visibleRange: u,
|
|
3311
3340
|
fetchJerseys: ht,
|
|
@@ -3313,14 +3342,14 @@ function Fn({
|
|
|
3313
3342
|
// same as your previous BUFFER
|
|
3314
3343
|
debounceMs: 300
|
|
3315
3344
|
// same as your previous debouncedVisibleRange
|
|
3316
|
-
}), I = i || void 0, _ =
|
|
3317
|
-
return !_ &&
|
|
3345
|
+
}), I = i || void 0, _ = g === null, O = ie(() => _ ? Array(4).fill({}) : (g == null ? void 0 : g.slice(0, 20)) || [], [_, g]), q = xe("(max-width:950px)");
|
|
3346
|
+
return !_ && g.length === 0 ? null : /* @__PURE__ */ t("section", { className: I, style: {
|
|
3318
3347
|
// paddingLeft: 16,
|
|
3319
3348
|
// paddingRight: 16,
|
|
3320
3349
|
width: "100%",
|
|
3321
3350
|
boxSizing: "border-box"
|
|
3322
3351
|
}, children: /* @__PURE__ */ y(H, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
3323
|
-
/* @__PURE__ */ t("div", { className:
|
|
3352
|
+
/* @__PURE__ */ t("div", { className: Rn.padding, children: /* @__PURE__ */ y(me, { spacing: 1.5, columns: "1fr auto ", justify: "start", children: [
|
|
3324
3353
|
/* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
|
|
3325
3354
|
/* @__PURE__ */ y("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
|
|
3326
3355
|
/* @__PURE__ */ y(me, { spacing: 1, columns: "auto auto", children: [
|
|
@@ -3331,7 +3360,7 @@ function Fn({
|
|
|
3331
3360
|
variant: "secondary",
|
|
3332
3361
|
iconOnly: !0,
|
|
3333
3362
|
leftIcon: /* @__PURE__ */ t(Re, {}),
|
|
3334
|
-
onClick:
|
|
3363
|
+
onClick: A,
|
|
3335
3364
|
disabled: d.isStart
|
|
3336
3365
|
}
|
|
3337
3366
|
),
|
|
@@ -3353,7 +3382,7 @@ function Fn({
|
|
|
3353
3382
|
/* @__PURE__ */ t(
|
|
3354
3383
|
he,
|
|
3355
3384
|
{
|
|
3356
|
-
ref:
|
|
3385
|
+
ref: l,
|
|
3357
3386
|
items: O,
|
|
3358
3387
|
perPage: void 0,
|
|
3359
3388
|
showRightGradient: !q,
|
|
@@ -3367,76 +3396,76 @@ function Fn({
|
|
|
3367
3396
|
},
|
|
3368
3397
|
renderItem: (M) => {
|
|
3369
3398
|
var V;
|
|
3370
|
-
const
|
|
3371
|
-
return _ ? /* @__PURE__ */ t(
|
|
3372
|
-
|
|
3399
|
+
const B = ((V = M.event) == null ? void 0 : V.id) || M.eventId, P = B in F ? F[B] : void 0;
|
|
3400
|
+
return _ ? /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Nn, {}) }) : /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(
|
|
3401
|
+
Fn,
|
|
3373
3402
|
{
|
|
3374
3403
|
...M,
|
|
3375
3404
|
jersey: P
|
|
3376
3405
|
}
|
|
3377
3406
|
) });
|
|
3378
3407
|
},
|
|
3379
|
-
onMove: ({ isStart: M, isEnd:
|
|
3408
|
+
onMove: ({ isStart: M, isEnd: B, visibleStart: P, visibleEnd: V }) => {
|
|
3380
3409
|
h(
|
|
3381
|
-
(
|
|
3410
|
+
(G) => G.isStart === M && G.isEnd === B ? G : { isStart: M, isEnd: B }
|
|
3382
3411
|
), c({ start: P, end: V });
|
|
3383
3412
|
}
|
|
3384
3413
|
}
|
|
3385
3414
|
)
|
|
3386
3415
|
] }) });
|
|
3387
3416
|
}
|
|
3388
|
-
function
|
|
3417
|
+
function zn() {
|
|
3389
3418
|
return /* @__PURE__ */ y("div", { className: be.cardContainer, children: [
|
|
3390
3419
|
/* @__PURE__ */ t(pt, { title: "" }),
|
|
3391
3420
|
/* @__PURE__ */ t("div", { className: be.cardBackground, children: /* @__PURE__ */ y(H, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
3392
3421
|
/* @__PURE__ */ y(H, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
3393
|
-
/* @__PURE__ */ t(
|
|
3394
|
-
/* @__PURE__ */ t(
|
|
3422
|
+
/* @__PURE__ */ t(W, { variant: "circular", width: 48, height: 48 }),
|
|
3423
|
+
/* @__PURE__ */ t(W, { variant: "circular", width: 48, height: 48 })
|
|
3395
3424
|
] }),
|
|
3396
3425
|
/* @__PURE__ */ y(H, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
3397
3426
|
/* @__PURE__ */ y(H, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
3398
|
-
/* @__PURE__ */ t(
|
|
3399
|
-
/* @__PURE__ */ t(
|
|
3427
|
+
/* @__PURE__ */ t(W, { variant: "text", width: 80, height: 12 }),
|
|
3428
|
+
/* @__PURE__ */ t(W, { variant: "text", width: 80, height: 12 })
|
|
3400
3429
|
] }),
|
|
3401
|
-
/* @__PURE__ */ t(H, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ t(
|
|
3430
|
+
/* @__PURE__ */ t(H, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ t(W, { variant: "text", width: 160, height: 12 }) }),
|
|
3402
3431
|
/* @__PURE__ */ y(H, { direction: "row", spacing: 1, children: [
|
|
3403
|
-
/* @__PURE__ */ t(
|
|
3404
|
-
/* @__PURE__ */ t(
|
|
3405
|
-
/* @__PURE__ */ t(
|
|
3432
|
+
/* @__PURE__ */ t(W, { variant: "text", width: 80, height: 16 }),
|
|
3433
|
+
/* @__PURE__ */ t(W, { variant: "text", width: 80, height: 16 }),
|
|
3434
|
+
/* @__PURE__ */ t(W, { variant: "text", width: 80, height: 16 })
|
|
3406
3435
|
] }),
|
|
3407
3436
|
/* @__PURE__ */ t("div", { className: be.jugadas, children: /* @__PURE__ */ y(H, { direction: "row", spacing: 1, children: [
|
|
3408
|
-
/* @__PURE__ */ t(
|
|
3409
|
-
/* @__PURE__ */ t(
|
|
3410
|
-
/* @__PURE__ */ t(
|
|
3437
|
+
/* @__PURE__ */ t(W, { variant: "rounded", width: 80, height: 32 }),
|
|
3438
|
+
/* @__PURE__ */ t(W, { variant: "rounded", width: 80, height: 32 }),
|
|
3439
|
+
/* @__PURE__ */ t(W, { variant: "rounded", width: 80, height: 32 })
|
|
3411
3440
|
] }) })
|
|
3412
3441
|
] })
|
|
3413
3442
|
] }) })
|
|
3414
3443
|
] });
|
|
3415
3444
|
}
|
|
3416
|
-
const
|
|
3417
|
-
wrapper:
|
|
3418
|
-
container:
|
|
3419
|
-
buttonWrapper:
|
|
3420
|
-
padding:
|
|
3421
|
-
},
|
|
3422
|
-
async function
|
|
3445
|
+
const Pn = "oraculo__OraculoSeccionEventoSemana-module__wrapper___eqVq-", Dn = "oraculo__OraculoSeccionEventoSemana-module__container___5yFQs", Un = "oraculo__OraculoSeccionEventoSemana-module__buttonWrapper___-6IDT", Vn = "oraculo__OraculoSeccionEventoSemana-module__padding___vfUcV", Oe = {
|
|
3446
|
+
wrapper: Pn,
|
|
3447
|
+
container: Dn,
|
|
3448
|
+
buttonWrapper: Un,
|
|
3449
|
+
padding: Vn
|
|
3450
|
+
}, Wn = fe.memo(Ja);
|
|
3451
|
+
async function Gn(e, a = 2, n) {
|
|
3423
3452
|
const r = [];
|
|
3424
3453
|
for (let i = 0; i < e.length; i += a) {
|
|
3425
3454
|
if (n.aborted)
|
|
3426
3455
|
throw new DOMException("Aborted", "AbortError");
|
|
3427
|
-
const
|
|
3428
|
-
|
|
3456
|
+
const s = e.slice(i, i + a), l = await Promise.all(
|
|
3457
|
+
s.map((d) => fetch(d, { signal: n }).then((h) => h.json()))
|
|
3429
3458
|
);
|
|
3430
|
-
r.push(...
|
|
3459
|
+
r.push(...l);
|
|
3431
3460
|
}
|
|
3432
3461
|
return r;
|
|
3433
3462
|
}
|
|
3434
|
-
function
|
|
3463
|
+
function jn(e) {
|
|
3435
3464
|
return [...e].sort(
|
|
3436
3465
|
(a, n) => new Date(a.start).getTime() - new Date(n.start).getTime()
|
|
3437
3466
|
);
|
|
3438
3467
|
}
|
|
3439
|
-
function
|
|
3468
|
+
function Hn(e) {
|
|
3440
3469
|
const a = /* @__PURE__ */ new Date(), n = new Date(a.getTime() + 480 * 60 * 60 * 1e3);
|
|
3441
3470
|
return e.filter((r) => {
|
|
3442
3471
|
if (!r.start) return !1;
|
|
@@ -3444,27 +3473,27 @@ function jn(e) {
|
|
|
3444
3473
|
return i >= a && i <= n;
|
|
3445
3474
|
});
|
|
3446
3475
|
}
|
|
3447
|
-
function
|
|
3476
|
+
function Kn(e, a) {
|
|
3448
3477
|
const r = a.filter((i) => {
|
|
3449
|
-
var
|
|
3450
|
-
return ((
|
|
3451
|
-
}).reduce((i,
|
|
3478
|
+
var s;
|
|
3479
|
+
return ((s = i.betOfferType) == null ? void 0 : s.id) === 2;
|
|
3480
|
+
}).reduce((i, s) => (i[s.eventId] || (i[s.eventId] = []), i[s.eventId].push(s), i), {});
|
|
3452
3481
|
return e.filter((i) => r[i.id]).map((i) => ({
|
|
3453
3482
|
...i,
|
|
3454
3483
|
outcome: r[i.id]
|
|
3455
3484
|
}));
|
|
3456
3485
|
}
|
|
3457
|
-
function
|
|
3486
|
+
function Zn({
|
|
3458
3487
|
items: e,
|
|
3459
3488
|
title: a = "En vivo",
|
|
3460
3489
|
iconUrl: n,
|
|
3461
3490
|
onViewMore: r,
|
|
3462
3491
|
className: i = ""
|
|
3463
3492
|
}) {
|
|
3464
|
-
const
|
|
3465
|
-
|
|
3493
|
+
const s = oe(), l = re(), d = le(), h = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE", g = U(null), [m, u] = Z({ isStart: !0, isEnd: !1 }), [c, f] = Z(null), [v, x] = Z({ start: null, end: null }), k = "channel_id=1&client_id=200&competitionId=undefined&lang=es_PE&market=PE&useCombined=true", T = () => {
|
|
3494
|
+
s({
|
|
3466
3495
|
element: "evento_semana_view_more",
|
|
3467
|
-
label: `${
|
|
3496
|
+
label: `${l} - OraculoSeccionEventoSemana - Ver más`,
|
|
3468
3497
|
target: "ver_mas",
|
|
3469
3498
|
event_type: "click",
|
|
3470
3499
|
module_id: d,
|
|
@@ -3478,16 +3507,16 @@ function Kn({
|
|
|
3478
3507
|
var q, M;
|
|
3479
3508
|
let _ = [], O = [];
|
|
3480
3509
|
try {
|
|
3481
|
-
const
|
|
3510
|
+
const B = await fetch(
|
|
3482
3511
|
"https://api.mktolimpo.com/api/kambi/eventos/orden",
|
|
3483
3512
|
{ signal: I }
|
|
3484
3513
|
);
|
|
3485
|
-
if (
|
|
3486
|
-
const P = await
|
|
3514
|
+
if (B.ok) {
|
|
3515
|
+
const P = await B.json();
|
|
3487
3516
|
_ = ((q = P == null ? void 0 : P.data) == null ? void 0 : q.group_ids) || [], O = ((M = P == null ? void 0 : P.data) == null ? void 0 : M.event_ids) || [];
|
|
3488
3517
|
}
|
|
3489
|
-
} catch (
|
|
3490
|
-
|
|
3518
|
+
} catch (B) {
|
|
3519
|
+
B.name !== "AbortError" && console.warn("Order API not available, using default group order");
|
|
3491
3520
|
return;
|
|
3492
3521
|
}
|
|
3493
3522
|
try {
|
|
@@ -3498,17 +3527,17 @@ function Kn({
|
|
|
3498
3527
|
console.error("Football groups not found");
|
|
3499
3528
|
return;
|
|
3500
3529
|
}
|
|
3501
|
-
let
|
|
3530
|
+
let G = [...V.groups];
|
|
3502
3531
|
if (_.length > 0) {
|
|
3503
3532
|
const o = new Map(
|
|
3504
3533
|
_.map((p, C) => [p, C])
|
|
3505
3534
|
);
|
|
3506
|
-
|
|
3507
|
-
const
|
|
3508
|
-
return
|
|
3535
|
+
G.sort((p, C) => {
|
|
3536
|
+
const $ = o.get(String(p.id)), N = o.get(String(C.id));
|
|
3537
|
+
return $ !== void 0 && N !== void 0 ? $ - N : $ !== void 0 ? -1 : N !== void 0 ? 1 : 0;
|
|
3509
3538
|
});
|
|
3510
3539
|
}
|
|
3511
|
-
const
|
|
3540
|
+
const j = G.slice(0, 5), X = (o) => {
|
|
3512
3541
|
const p = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football";
|
|
3513
3542
|
if (o.groups && o.groups.length > 0) {
|
|
3514
3543
|
const C = o.groups[0];
|
|
@@ -3519,37 +3548,37 @@ function Kn({
|
|
|
3519
3548
|
return [
|
|
3520
3549
|
`${p}/${o.termKey}/all/all/matches.json?${k}`
|
|
3521
3550
|
];
|
|
3522
|
-
}, te =
|
|
3551
|
+
}, te = j.flatMap(X);
|
|
3523
3552
|
b(te, O, I);
|
|
3524
|
-
} catch (
|
|
3525
|
-
console.error(
|
|
3553
|
+
} catch (B) {
|
|
3554
|
+
console.error(B);
|
|
3526
3555
|
}
|
|
3527
3556
|
}
|
|
3528
3557
|
async function b(I, _, O) {
|
|
3529
3558
|
try {
|
|
3530
|
-
const q = await
|
|
3531
|
-
let M = [],
|
|
3559
|
+
const q = await Gn(I, 2, O);
|
|
3560
|
+
let M = [], B = [];
|
|
3532
3561
|
q.forEach((K) => {
|
|
3533
|
-
K.events && (M.push(...K.events.map((
|
|
3534
|
-
...K.events.flatMap((
|
|
3562
|
+
K.events && (M.push(...K.events.map((j) => j.event)), B.push(
|
|
3563
|
+
...K.events.flatMap((j) => j.betOffers || [])
|
|
3535
3564
|
));
|
|
3536
3565
|
});
|
|
3537
|
-
const P =
|
|
3538
|
-
let
|
|
3566
|
+
const P = Kn(M, B), V = jn(Hn(P));
|
|
3567
|
+
let G = V;
|
|
3539
3568
|
if (_.length > 0) {
|
|
3540
3569
|
const K = new Map(
|
|
3541
|
-
_.map((
|
|
3542
|
-
String(
|
|
3570
|
+
_.map((j, X) => [
|
|
3571
|
+
String(j),
|
|
3543
3572
|
X
|
|
3544
3573
|
])
|
|
3545
3574
|
);
|
|
3546
|
-
|
|
3547
|
-
const te = K.get(String(
|
|
3575
|
+
G = [...V].sort((j, X) => {
|
|
3576
|
+
const te = K.get(String(j.id)), o = K.get(String(X.id));
|
|
3548
3577
|
return te !== void 0 && o !== void 0 ? te - o : te !== void 0 ? -1 : o !== void 0 ? 1 : 0;
|
|
3549
3578
|
});
|
|
3550
3579
|
}
|
|
3551
3580
|
if (O.aborted) return;
|
|
3552
|
-
|
|
3581
|
+
f(G);
|
|
3553
3582
|
} catch (q) {
|
|
3554
3583
|
console.error("Error loading events:", q);
|
|
3555
3584
|
}
|
|
@@ -3561,7 +3590,7 @@ function Kn({
|
|
|
3561
3590
|
I.abort();
|
|
3562
3591
|
};
|
|
3563
3592
|
}, [e]);
|
|
3564
|
-
const
|
|
3593
|
+
const A = i || void 0, w = {
|
|
3565
3594
|
paddingLeft: 0,
|
|
3566
3595
|
width: "100%",
|
|
3567
3596
|
boxSizing: "border-box"
|
|
@@ -3571,8 +3600,8 @@ function Kn({
|
|
|
3571
3600
|
fetchJerseys: ht,
|
|
3572
3601
|
buffer: 2,
|
|
3573
3602
|
debounceMs: 250
|
|
3574
|
-
}),
|
|
3575
|
-
return !
|
|
3603
|
+
}), L = c === null, F = xe("(max-width:950px)");
|
|
3604
|
+
return !L && c.length === 0 ? null : /* @__PURE__ */ t("section", { className: A, style: w, children: /* @__PURE__ */ y("div", { className: `${Oe.wrapper} ${Oe.padding}`, children: [
|
|
3576
3605
|
/* @__PURE__ */ t("div", { className: Oe.container, children: /* @__PURE__ */ y(H, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
3577
3606
|
/* @__PURE__ */ t(ge, { title: "Eventos de la semana" }),
|
|
3578
3607
|
/* @__PURE__ */ t("div", { className: Oe.buttonWrapper, children: /* @__PURE__ */ t(
|
|
@@ -3591,12 +3620,12 @@ function Kn({
|
|
|
3591
3620
|
/* @__PURE__ */ t("div", { style: { minWidth: "180px" }, children: /* @__PURE__ */ t(
|
|
3592
3621
|
he,
|
|
3593
3622
|
{
|
|
3594
|
-
ref:
|
|
3595
|
-
items:
|
|
3623
|
+
ref: g,
|
|
3624
|
+
items: L ? Array(6).fill({}) : c.slice(0, 20),
|
|
3596
3625
|
perPage: 3.5,
|
|
3597
3626
|
gap: "16px",
|
|
3598
3627
|
enableHorizontalWheel: !0,
|
|
3599
|
-
showRightGradient: !
|
|
3628
|
+
showRightGradient: !F,
|
|
3600
3629
|
options: { autoWidth: !0, trimSpace: !0 },
|
|
3601
3630
|
breakpoints: {
|
|
3602
3631
|
1024: {
|
|
@@ -3608,15 +3637,15 @@ function Kn({
|
|
|
3608
3637
|
},
|
|
3609
3638
|
renderItem: (I) => {
|
|
3610
3639
|
const _ = I.id, O = _ in S ? S[_] : void 0;
|
|
3611
|
-
return
|
|
3640
|
+
return L ? /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(zn, {}) }) : /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Wn, { event: I, jersey: O }) });
|
|
3612
3641
|
},
|
|
3613
3642
|
onMove: ({ isStart: I, isEnd: _, visibleStart: O, visibleEnd: q, source: M }) => {
|
|
3614
3643
|
u({ isStart: I, isEnd: _ }), x({
|
|
3615
3644
|
start: O,
|
|
3616
3645
|
end: q
|
|
3617
|
-
}), M === "user" &&
|
|
3646
|
+
}), M === "user" && s({
|
|
3618
3647
|
element: "evento_semana_carousel_slide",
|
|
3619
|
-
label: `${
|
|
3648
|
+
label: `${l} - OraculoSeccionEventoSemana - Slide Carousel`,
|
|
3620
3649
|
target: "carousel",
|
|
3621
3650
|
event_type: "slide",
|
|
3622
3651
|
module_id: d,
|
|
@@ -3634,9 +3663,9 @@ function Kn({
|
|
|
3634
3663
|
) })
|
|
3635
3664
|
] }) });
|
|
3636
3665
|
}
|
|
3637
|
-
const
|
|
3666
|
+
const Jn = -300, Xn = (e) => /[zZ]|[+-]\d{2}:\d{2}$/.test(e), ot = (e) => {
|
|
3638
3667
|
if (!e) return null;
|
|
3639
|
-
if (
|
|
3668
|
+
if (Xn(e)) {
|
|
3640
3669
|
const h = new Date(e).getTime();
|
|
3641
3670
|
return Number.isNaN(h) ? null : h;
|
|
3642
3671
|
}
|
|
@@ -3644,42 +3673,42 @@ const Zn = -300, Jn = (e) => /[zZ]|[+-]\d{2}:\d{2}$/.test(e), ot = (e) => {
|
|
|
3644
3673
|
/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})(?::(\d{2}))?$/
|
|
3645
3674
|
);
|
|
3646
3675
|
if (!a) return null;
|
|
3647
|
-
const [, n, r, i,
|
|
3676
|
+
const [, n, r, i, s, l, d = "00"] = a;
|
|
3648
3677
|
return Date.UTC(
|
|
3649
3678
|
Number(n),
|
|
3650
3679
|
Number(r) - 1,
|
|
3651
3680
|
Number(i),
|
|
3652
|
-
Number(
|
|
3653
|
-
Number(
|
|
3681
|
+
Number(s) - Jn / 60,
|
|
3682
|
+
Number(l),
|
|
3654
3683
|
Number(d)
|
|
3655
3684
|
);
|
|
3656
|
-
},
|
|
3657
|
-
var d, h,
|
|
3658
|
-
const n = (
|
|
3659
|
-
return !(
|
|
3685
|
+
}, Yn = (e, a) => {
|
|
3686
|
+
var d, h, g, m, u, c, f, v, x;
|
|
3687
|
+
const n = (g = (h = (d = e == null ? void 0 : e.fields) != null ? d : e == null ? void 0 : e.parameters) != null ? h : e == null ? void 0 : e.extraFields) != null ? g : [], r = (c = (u = e == null ? void 0 : e.startAt) != null ? u : (m = n.find((k) => (k == null ? void 0 : k.name) === "startAt")) == null ? void 0 : m.value) != null ? c : null, i = (x = (v = e == null ? void 0 : e.endAt) != null ? v : (f = n.find((k) => (k == null ? void 0 : k.name) === "endAt")) == null ? void 0 : f.value) != null ? x : null, s = ot(r), l = ot(i);
|
|
3688
|
+
return !(s != null && a < s || l != null && a >= l);
|
|
3660
3689
|
};
|
|
3661
|
-
function
|
|
3690
|
+
function Qn({
|
|
3662
3691
|
backgrounds: e,
|
|
3663
3692
|
items: a,
|
|
3664
3693
|
hideItems: n,
|
|
3665
3694
|
user: r = null
|
|
3666
3695
|
}) {
|
|
3667
3696
|
var te;
|
|
3668
|
-
const [i,
|
|
3697
|
+
const [i, s] = Z(0), l = oe(), d = re(), h = le(), g = U(null), m = U(!1), u = U(!1), [c, f] = Z(() => Date.now()), v = se("setDepositActionGlobal"), x = se("setAbrirLiveActionGlobal"), k = se("openLoginWithRedirect"), T = (o) => [...o != null ? o : []].map((p, C) => ({ item: p, index: C })).sort((p, C) => {
|
|
3669
3698
|
var R, D;
|
|
3670
|
-
const
|
|
3671
|
-
return
|
|
3699
|
+
const $ = (R = p.item.order) != null ? R : Number.MAX_SAFE_INTEGER, N = (D = C.item.order) != null ? D : Number.MAX_SAFE_INTEGER;
|
|
3700
|
+
return $ - N || p.index - C.index;
|
|
3672
3701
|
}).map(({ item: p }) => p), E = ie(() => T(a), [a]), b = ie(() => {
|
|
3673
3702
|
const o = (e != null ? e : []).filter(
|
|
3674
|
-
(p) =>
|
|
3703
|
+
(p) => Yn(p, c)
|
|
3675
3704
|
);
|
|
3676
3705
|
return T(o);
|
|
3677
|
-
}, [e, c]),
|
|
3706
|
+
}, [e, c]), A = b.length || 1, w = !b || b.length === 0, S = !w && b.length > 1, L = !n && E.length > 0;
|
|
3678
3707
|
De("(max-width:950px)");
|
|
3679
|
-
const
|
|
3708
|
+
const F = "#B5B5B5";
|
|
3680
3709
|
Q(() => {
|
|
3681
3710
|
const o = window.setInterval(() => {
|
|
3682
|
-
|
|
3711
|
+
f(Date.now());
|
|
3683
3712
|
}, 3e4);
|
|
3684
3713
|
return () => window.clearInterval(o);
|
|
3685
3714
|
}, []);
|
|
@@ -3691,18 +3720,18 @@ function Yn({
|
|
|
3691
3720
|
width: 48,
|
|
3692
3721
|
height: 40,
|
|
3693
3722
|
borderRadius: "12px",
|
|
3694
|
-
border: `1.5px solid ${
|
|
3723
|
+
border: `1.5px solid ${F}`,
|
|
3695
3724
|
py: 1,
|
|
3696
3725
|
px: 1.5,
|
|
3697
|
-
color:
|
|
3726
|
+
color: F,
|
|
3698
3727
|
backgroundColor: "transparent",
|
|
3699
3728
|
"&:hover": {
|
|
3700
3729
|
backgroundColor: "rgba(181,181,181,0.08)"
|
|
3701
3730
|
},
|
|
3702
3731
|
"&.Mui-disabled": {
|
|
3703
3732
|
opacity: 0.35,
|
|
3704
|
-
borderColor:
|
|
3705
|
-
color:
|
|
3733
|
+
borderColor: F,
|
|
3734
|
+
color: F,
|
|
3706
3735
|
backgroundColor: "transparent",
|
|
3707
3736
|
cursor: "default"
|
|
3708
3737
|
}
|
|
@@ -3725,8 +3754,8 @@ function Yn({
|
|
|
3725
3754
|
}, []);
|
|
3726
3755
|
const O = (o, p, C) => {
|
|
3727
3756
|
var D, Y;
|
|
3728
|
-
const
|
|
3729
|
-
if (
|
|
3757
|
+
const $ = !!p.idFunction, N = !!p.href;
|
|
3758
|
+
if ($)
|
|
3730
3759
|
switch (o.preventDefault(), o.stopPropagation(), p.idFunction) {
|
|
3731
3760
|
case "deposito":
|
|
3732
3761
|
v == null || v(!0);
|
|
@@ -3737,12 +3766,12 @@ function Yn({
|
|
|
3737
3766
|
default:
|
|
3738
3767
|
return;
|
|
3739
3768
|
}
|
|
3740
|
-
if (
|
|
3769
|
+
if (!N) {
|
|
3741
3770
|
o.preventDefault(), o.stopPropagation();
|
|
3742
3771
|
return;
|
|
3743
3772
|
}
|
|
3744
3773
|
const R = ((Y = (D = p.href) == null ? void 0 : D.split("/").pop()) == null ? void 0 : Y.split(".")[0]) || p.label || p.id || `banner_${C + 1}`;
|
|
3745
|
-
|
|
3774
|
+
l({
|
|
3746
3775
|
element: "banner_carousel",
|
|
3747
3776
|
label: `${d} - OraculoSeccionBanners - Banner click: ${R}`,
|
|
3748
3777
|
target: p.href || "no_url",
|
|
@@ -3761,7 +3790,7 @@ function Yn({
|
|
|
3761
3790
|
});
|
|
3762
3791
|
}, q = (o) => {
|
|
3763
3792
|
var p;
|
|
3764
|
-
if (
|
|
3793
|
+
if (l({
|
|
3765
3794
|
element: "banner_menu_item",
|
|
3766
3795
|
label: `${d} - OraculoSeccionBanners - Menu item click: ${o.label || o.id}`,
|
|
3767
3796
|
target: o.href || "action",
|
|
@@ -3783,27 +3812,27 @@ function Yn({
|
|
|
3783
3812
|
return;
|
|
3784
3813
|
}
|
|
3785
3814
|
o.href && typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(o.href);
|
|
3786
|
-
}, M = 5e3,
|
|
3787
|
-
|
|
3788
|
-
},
|
|
3789
|
-
V(), P && (
|
|
3815
|
+
}, M = 5e3, B = U(null), P = !w && ((te = b == null ? void 0 : b.length) != null ? te : 0) > 1, V = () => {
|
|
3816
|
+
B.current != null && (window.clearTimeout(B.current), B.current = null);
|
|
3817
|
+
}, G = () => {
|
|
3818
|
+
V(), P && (B.current = window.setTimeout(() => {
|
|
3790
3819
|
var o;
|
|
3791
|
-
u.current = !0, (o =
|
|
3820
|
+
u.current = !0, (o = g.current) == null || o.next();
|
|
3792
3821
|
}, M));
|
|
3793
3822
|
};
|
|
3794
|
-
Q(() => (
|
|
3823
|
+
Q(() => (G(), () => V()), [P, M]);
|
|
3795
3824
|
const K = (o) => {
|
|
3796
3825
|
var p;
|
|
3797
|
-
o.preventDefault(), o.stopPropagation(), V(), (p =
|
|
3798
|
-
},
|
|
3826
|
+
o.preventDefault(), o.stopPropagation(), V(), (p = g.current) == null || p.prev();
|
|
3827
|
+
}, j = (o) => {
|
|
3799
3828
|
var p;
|
|
3800
|
-
o.preventDefault(), o.stopPropagation(), V(), (p =
|
|
3829
|
+
o.preventDefault(), o.stopPropagation(), V(), (p = g.current) == null || p.next();
|
|
3801
3830
|
}, X = (o) => {
|
|
3802
|
-
var N,
|
|
3803
|
-
const p = (o %
|
|
3831
|
+
var $, N, R, D;
|
|
3832
|
+
const p = (o % A + A) % A;
|
|
3804
3833
|
if (!m.current) return;
|
|
3805
|
-
const C = (
|
|
3806
|
-
|
|
3834
|
+
const C = ($ = b == null ? void 0 : b[p]) != null && $.href ? ((R = (N = b[p].href) == null ? void 0 : N.split("/").pop()) == null ? void 0 : R.split(".")[0]) || `banner_${p + 1}` : `banner_${p + 1}`;
|
|
3835
|
+
l({
|
|
3807
3836
|
element: "banner_carousel",
|
|
3808
3837
|
label: `${d} - OraculoSeccionBanners - Banner view: Slide ${p + 1} - ${C}`,
|
|
3809
3838
|
target: ((D = b == null ? void 0 : b[p]) == null ? void 0 : D.href) || "no_url",
|
|
@@ -3812,7 +3841,7 @@ function Yn({
|
|
|
3812
3841
|
metadata: {
|
|
3813
3842
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
3814
3843
|
slide_index: p + 1,
|
|
3815
|
-
total_slides:
|
|
3844
|
+
total_slides: A,
|
|
3816
3845
|
interaction_type: "manual_slide"
|
|
3817
3846
|
},
|
|
3818
3847
|
tags: { banner_position: String(p + 1) }
|
|
@@ -3825,7 +3854,7 @@ function Yn({
|
|
|
3825
3854
|
sx: {
|
|
3826
3855
|
position: "relative",
|
|
3827
3856
|
overflow: "visible",
|
|
3828
|
-
pb:
|
|
3857
|
+
pb: L ? { xs: "40px", sm: 0 } : 0
|
|
3829
3858
|
},
|
|
3830
3859
|
children: [
|
|
3831
3860
|
/* @__PURE__ */ y(
|
|
@@ -3855,28 +3884,28 @@ function Yn({
|
|
|
3855
3884
|
children: /* @__PURE__ */ t(
|
|
3856
3885
|
he,
|
|
3857
3886
|
{
|
|
3858
|
-
ref:
|
|
3887
|
+
ref: g,
|
|
3859
3888
|
items: b,
|
|
3860
3889
|
perPage: 1,
|
|
3861
3890
|
gap: "0px",
|
|
3862
3891
|
enableHorizontalWheel: !0,
|
|
3863
3892
|
options: _,
|
|
3864
3893
|
onMove: ({ index: o, source: p }) => {
|
|
3865
|
-
const C = (o %
|
|
3866
|
-
|
|
3867
|
-
const
|
|
3868
|
-
u.current = !1, p === "user" && (
|
|
3894
|
+
const C = (o % A + A) % A;
|
|
3895
|
+
s(C);
|
|
3896
|
+
const $ = u.current;
|
|
3897
|
+
u.current = !1, p === "user" && (G(), $ || X(o));
|
|
3869
3898
|
},
|
|
3870
3899
|
renderItem: (o, p) => {
|
|
3871
3900
|
var D, Y, ne;
|
|
3872
|
-
const C = !!o.idFunction,
|
|
3901
|
+
const C = !!o.idFunction, $ = !!o.href, N = $ && !C, R = C || $;
|
|
3873
3902
|
return /* @__PURE__ */ y(
|
|
3874
3903
|
ee,
|
|
3875
3904
|
{
|
|
3876
|
-
component:
|
|
3877
|
-
href:
|
|
3878
|
-
target:
|
|
3879
|
-
rel:
|
|
3905
|
+
component: N ? "a" : "div",
|
|
3906
|
+
href: N ? o.href : void 0,
|
|
3907
|
+
target: N ? (D = o.target) != null ? D : "_self" : void 0,
|
|
3908
|
+
rel: N && o.target === "_blank" ? "noopener noreferrer" : void 0,
|
|
3880
3909
|
onClick: (ae) => O(ae, o, p),
|
|
3881
3910
|
sx: {
|
|
3882
3911
|
position: "relative",
|
|
@@ -3953,7 +3982,7 @@ function Yn({
|
|
|
3953
3982
|
Ke,
|
|
3954
3983
|
{
|
|
3955
3984
|
"aria-label": "Siguiente",
|
|
3956
|
-
onClick:
|
|
3985
|
+
onClick: j,
|
|
3957
3986
|
sx: {
|
|
3958
3987
|
...I,
|
|
3959
3988
|
right: "120px",
|
|
@@ -3979,18 +4008,18 @@ function Yn({
|
|
|
3979
4008
|
children: /* @__PURE__ */ t(
|
|
3980
4009
|
ut,
|
|
3981
4010
|
{
|
|
3982
|
-
total:
|
|
4011
|
+
total: A,
|
|
3983
4012
|
active: i,
|
|
3984
4013
|
durationMs: M
|
|
3985
4014
|
},
|
|
3986
|
-
`${i}-${
|
|
4015
|
+
`${i}-${A}`
|
|
3987
4016
|
)
|
|
3988
4017
|
}
|
|
3989
4018
|
)
|
|
3990
4019
|
]
|
|
3991
4020
|
}
|
|
3992
4021
|
),
|
|
3993
|
-
|
|
4022
|
+
L && /* @__PURE__ */ t(
|
|
3994
4023
|
ee,
|
|
3995
4024
|
{
|
|
3996
4025
|
sx: {
|
|
@@ -4103,7 +4132,7 @@ function Yn({
|
|
|
4103
4132
|
}
|
|
4104
4133
|
),
|
|
4105
4134
|
/* @__PURE__ */ t(
|
|
4106
|
-
|
|
4135
|
+
lt,
|
|
4107
4136
|
{
|
|
4108
4137
|
className: "menu-text",
|
|
4109
4138
|
sx: {
|
|
@@ -4125,7 +4154,7 @@ function Yn({
|
|
|
4125
4154
|
}
|
|
4126
4155
|
);
|
|
4127
4156
|
}
|
|
4128
|
-
const
|
|
4157
|
+
const eo = [
|
|
4129
4158
|
{ src: "https://d28gilnhu2bcbp.cloudfront.net/landing/IBK.svg", alt: "Interbank" },
|
|
4130
4159
|
{ src: "https://d28gilnhu2bcbp.cloudfront.net/landing/Yape.svg", alt: "Yape" },
|
|
4131
4160
|
{ src: "https://d28gilnhu2bcbp.cloudfront.net/landing/BCP.png", alt: "BCP" },
|
|
@@ -4135,14 +4164,14 @@ const Qn = [
|
|
|
4135
4164
|
{ src: "https://d28gilnhu2bcbp.cloudfront.net/landing/niubiz.svg", alt: "Niubiz" },
|
|
4136
4165
|
{ src: "https://d28gilnhu2bcbp.cloudfront.net/landing/bbva.png", alt: "BBVA" }
|
|
4137
4166
|
];
|
|
4138
|
-
function
|
|
4167
|
+
function to({
|
|
4139
4168
|
title: e = "Medios de pago",
|
|
4140
|
-
items: a =
|
|
4169
|
+
items: a = eo
|
|
4141
4170
|
}) {
|
|
4142
4171
|
const n = Math.ceil(a.length / 2), r = a.slice(0, n), i = a.slice(n);
|
|
4143
4172
|
return /* @__PURE__ */ y(ee, { component: "section", "aria-labelledby": "mp-title", sx: { color: "#fff" }, children: [
|
|
4144
4173
|
/* @__PURE__ */ t(
|
|
4145
|
-
|
|
4174
|
+
lt,
|
|
4146
4175
|
{
|
|
4147
4176
|
id: "mp-title",
|
|
4148
4177
|
variant: "h6",
|
|
@@ -4178,7 +4207,7 @@ function eo({
|
|
|
4178
4207
|
alignItems: "center",
|
|
4179
4208
|
gap: { xs: 2, md: 3 },
|
|
4180
4209
|
flexWrap: "wrap",
|
|
4181
|
-
children: r.map((
|
|
4210
|
+
children: r.map((s, l) => /* @__PURE__ */ t(Ze, { ...s }, `${s.alt}-${s.src}-${l}`))
|
|
4182
4211
|
}
|
|
4183
4212
|
),
|
|
4184
4213
|
/* @__PURE__ */ t(
|
|
@@ -4189,7 +4218,7 @@ function eo({
|
|
|
4189
4218
|
alignItems: "center",
|
|
4190
4219
|
gap: { xs: 2, md: 3 },
|
|
4191
4220
|
flexWrap: "wrap",
|
|
4192
|
-
children: i.map((
|
|
4221
|
+
children: i.map((s, l) => /* @__PURE__ */ t(Ze, { ...s }, `${s.alt}-${s.src}-${l}`))
|
|
4193
4222
|
}
|
|
4194
4223
|
)
|
|
4195
4224
|
] })
|
|
@@ -4216,26 +4245,26 @@ function Ot({
|
|
|
4216
4245
|
e
|
|
4217
4246
|
] });
|
|
4218
4247
|
}
|
|
4219
|
-
function
|
|
4248
|
+
function Eo({
|
|
4220
4249
|
docId: e = "Landing: home",
|
|
4221
4250
|
moduleId: a = 301,
|
|
4222
4251
|
children: n
|
|
4223
4252
|
}) {
|
|
4224
4253
|
return /* @__PURE__ */ t(Ot, { children: /* @__PURE__ */ t(vt, { docId: e, moduleId: a, children: n }) });
|
|
4225
4254
|
}
|
|
4226
|
-
const
|
|
4227
|
-
OraculoSeccionDestacados:
|
|
4228
|
-
OraculoSeccionTopJuegos:
|
|
4229
|
-
OraculoSeccionCasinoEnVivo:
|
|
4230
|
-
OraculoSeccionCasino:
|
|
4231
|
-
OraculoSeccionVirtuales:
|
|
4232
|
-
OraculoSeccionClubOlimpo:
|
|
4233
|
-
OraculoSeccionBonoBienvenida:
|
|
4234
|
-
OraculoSeccionBanners:
|
|
4235
|
-
OraculoSeccionMediosPago:
|
|
4236
|
-
OraculoSeccionEventoEnVivo:
|
|
4237
|
-
OraculoSeccionEventoSemana:
|
|
4238
|
-
OraculoSeccionEventoCombinadas:
|
|
4255
|
+
const ao = {
|
|
4256
|
+
OraculoSeccionDestacados: Ya,
|
|
4257
|
+
OraculoSeccionTopJuegos: tn,
|
|
4258
|
+
OraculoSeccionCasinoEnVivo: pn,
|
|
4259
|
+
OraculoSeccionCasino: hn,
|
|
4260
|
+
OraculoSeccionVirtuales: yn,
|
|
4261
|
+
OraculoSeccionClubOlimpo: wn,
|
|
4262
|
+
OraculoSeccionBonoBienvenida: Sn,
|
|
4263
|
+
OraculoSeccionBanners: Qn,
|
|
4264
|
+
OraculoSeccionMediosPago: to,
|
|
4265
|
+
OraculoSeccionEventoEnVivo: qn,
|
|
4266
|
+
OraculoSeccionEventoSemana: Zn,
|
|
4267
|
+
OraculoSeccionEventoCombinadas: $n
|
|
4239
4268
|
}, Ee = {
|
|
4240
4269
|
sections: [
|
|
4241
4270
|
{
|
|
@@ -5604,20 +5633,20 @@ const to = {
|
|
|
5604
5633
|
componentKey: "OraculoSeccionMediosPago"
|
|
5605
5634
|
}
|
|
5606
5635
|
]
|
|
5607
|
-
},
|
|
5636
|
+
}, no = (e) => typeof e == "function" || e && typeof e == "object" && "$$typeof" in e, oo = (e) => /^OraculoSeccion[A-Z]/.test(e);
|
|
5608
5637
|
function Se(e) {
|
|
5609
5638
|
return e && Array.isArray(e.sections) ? e.sections.slice().sort((a, n) => {
|
|
5610
5639
|
var r, i;
|
|
5611
5640
|
return ((r = a.order) != null ? r : 0) - ((i = n.order) != null ? i : 0);
|
|
5612
5641
|
}).map((a, n) => ({ ...a, order: n + 1 })) : e && Array.isArray(e.components) ? e.components.map((a, n) => {
|
|
5613
|
-
var r, i,
|
|
5642
|
+
var r, i, s, l, d;
|
|
5614
5643
|
return {
|
|
5615
5644
|
id: (r = a.id) != null ? r : n + 1,
|
|
5616
5645
|
title: (i = a.title) != null ? i : "",
|
|
5617
5646
|
componentKey: a.componentKey,
|
|
5618
|
-
visible: (
|
|
5647
|
+
visible: (s = a.visible) != null ? s : !0,
|
|
5619
5648
|
order: n + 1,
|
|
5620
|
-
props: (
|
|
5649
|
+
props: (l = a.props) != null ? l : {},
|
|
5621
5650
|
apiUrl: (d = a.apiUrl) != null ? d : "",
|
|
5622
5651
|
dataMode: a.dataMode,
|
|
5623
5652
|
variableName: a.variableName,
|
|
@@ -5630,11 +5659,11 @@ function Se(e) {
|
|
|
5630
5659
|
};
|
|
5631
5660
|
}) : [];
|
|
5632
5661
|
}
|
|
5633
|
-
const
|
|
5634
|
-
Object.entries(
|
|
5635
|
-
([e, a]) =>
|
|
5662
|
+
const ro = Object.fromEntries(
|
|
5663
|
+
Object.entries(ao).filter(
|
|
5664
|
+
([e, a]) => oo(e) && no(a)
|
|
5636
5665
|
)
|
|
5637
|
-
),
|
|
5666
|
+
), io = (e) => {
|
|
5638
5667
|
try {
|
|
5639
5668
|
return Object.fromEntries(e != null ? e : []);
|
|
5640
5669
|
} catch {
|
|
@@ -5646,7 +5675,7 @@ class rt extends Error {
|
|
|
5646
5675
|
super(`HTTP ${a} ${r}`), this.status = a, this.url = n, this.statusText = r, this.name = "HttpError";
|
|
5647
5676
|
}
|
|
5648
5677
|
}
|
|
5649
|
-
class
|
|
5678
|
+
class so extends fe.Component {
|
|
5650
5679
|
constructor(a) {
|
|
5651
5680
|
super(a), this.state = { hasError: !1 };
|
|
5652
5681
|
}
|
|
@@ -5673,45 +5702,47 @@ const it = [
|
|
|
5673
5702
|
], lo = [
|
|
5674
5703
|
"OraculoSeccionCasino",
|
|
5675
5704
|
"OraculoSeccionVirtuales",
|
|
5676
|
-
"OraculoSeccionCasinoEnVivo"
|
|
5677
|
-
|
|
5705
|
+
"OraculoSeccionCasinoEnVivo",
|
|
5706
|
+
"OraculoSeccionTopJuegos",
|
|
5707
|
+
"OraculoSeccionDestacados"
|
|
5708
|
+
], Co = ({
|
|
5678
5709
|
sectionsOverride: e,
|
|
5679
5710
|
docId: a = "Landing: home",
|
|
5680
5711
|
moduleId: n = 301,
|
|
5681
5712
|
db: r,
|
|
5682
5713
|
extras: i,
|
|
5683
|
-
loader:
|
|
5684
|
-
disableWrapper:
|
|
5714
|
+
loader: s,
|
|
5715
|
+
disableWrapper: l = !1
|
|
5685
5716
|
}) => {
|
|
5686
|
-
const d = ie(() =>
|
|
5717
|
+
const d = ie(() => io(i), [i]), h = s || d.loader, [g, m] = Z(
|
|
5687
5718
|
() => e ? [] : Se(Ee)
|
|
5688
|
-
), [u, c] = Z(!1), [
|
|
5719
|
+
), [u, c] = Z(!1), [f, v] = Z({}), [x, k] = Z({}), [T, E] = Z({}), b = De("(min-width:1024px)"), A = ie(
|
|
5689
5720
|
() => Se(Ee),
|
|
5690
5721
|
[]
|
|
5691
|
-
), w = (o) =>
|
|
5722
|
+
), w = (o) => A.find(
|
|
5692
5723
|
(p) => p.id === o.id || p.componentKey === o.componentKey
|
|
5693
|
-
), S = (o) => Array.isArray(o) ? o.map((p) => Number(p)).filter((p) => !Number.isNaN(p)) : [],
|
|
5724
|
+
), S = (o) => Array.isArray(o) ? o.map((p) => Number(p)).filter((p) => !Number.isNaN(p)) : [], L = ie(() => {
|
|
5694
5725
|
const o = d.user;
|
|
5695
5726
|
return S(o == null ? void 0 : o.groups);
|
|
5696
|
-
}, [d]),
|
|
5727
|
+
}, [d]), F = (o) => {
|
|
5697
5728
|
const p = o.manualScalarFields;
|
|
5698
5729
|
if (!Array.isArray(p)) return [];
|
|
5699
5730
|
const C = p.find(
|
|
5700
5731
|
(R) => String((R == null ? void 0 : R.name) || "").trim().toLowerCase() === "groups"
|
|
5701
5732
|
);
|
|
5702
5733
|
if (!C) return [];
|
|
5703
|
-
const
|
|
5704
|
-
if (
|
|
5705
|
-
if (Array.isArray(
|
|
5706
|
-
return
|
|
5707
|
-
const
|
|
5708
|
-
return
|
|
5734
|
+
const $ = C.value;
|
|
5735
|
+
if ($ == null) return [];
|
|
5736
|
+
if (Array.isArray($))
|
|
5737
|
+
return $.map((R) => Number(String(R).trim())).filter((R) => !Number.isNaN(R));
|
|
5738
|
+
const N = String($).trim();
|
|
5739
|
+
return N ? N.split(",").map((R) => Number(R.trim())).filter((R) => !Number.isNaN(R)) : [];
|
|
5709
5740
|
}, I = (o, p) => {
|
|
5710
|
-
const C =
|
|
5741
|
+
const C = F(o);
|
|
5711
5742
|
if (C.length === 0) return !0;
|
|
5712
5743
|
if (!Array.isArray(p) || p.length === 0) return !1;
|
|
5713
|
-
const
|
|
5714
|
-
return C.some((
|
|
5744
|
+
const $ = new Set(p);
|
|
5745
|
+
return C.some((N) => $.has(N));
|
|
5715
5746
|
};
|
|
5716
5747
|
Q(() => {
|
|
5717
5748
|
if (e) return;
|
|
@@ -5719,8 +5750,8 @@ const it = [
|
|
|
5719
5750
|
console.warn("[landing] sin db -> fallback json"), m(Se(Ee));
|
|
5720
5751
|
return;
|
|
5721
5752
|
}
|
|
5722
|
-
const o = (C,
|
|
5723
|
-
console.warn("[landing] FALLBACK:", C,
|
|
5753
|
+
const o = (C, $) => {
|
|
5754
|
+
console.warn("[landing] FALLBACK:", C, $ != null ? $ : ""), m(Se(Ee)), c(!1);
|
|
5724
5755
|
};
|
|
5725
5756
|
c(!0);
|
|
5726
5757
|
const p = Dt(
|
|
@@ -5731,14 +5762,14 @@ const it = [
|
|
|
5731
5762
|
o(`doc landings/${a} no existe`);
|
|
5732
5763
|
return;
|
|
5733
5764
|
}
|
|
5734
|
-
const
|
|
5735
|
-
if (
|
|
5736
|
-
o("JSON inválido o sin secciones normalizables",
|
|
5765
|
+
const $ = C.data(), N = Se($);
|
|
5766
|
+
if (!N.length) {
|
|
5767
|
+
o("JSON inválido o sin secciones normalizables", $);
|
|
5737
5768
|
return;
|
|
5738
5769
|
}
|
|
5739
|
-
console.log("[landing] Firestore OK (json grande):",
|
|
5740
|
-
} catch (
|
|
5741
|
-
o("error procesando snapshot",
|
|
5770
|
+
console.log("[landing] Firestore OK (json grande):", $), m(N);
|
|
5771
|
+
} catch ($) {
|
|
5772
|
+
o("error procesando snapshot", $);
|
|
5742
5773
|
} finally {
|
|
5743
5774
|
c(!1);
|
|
5744
5775
|
}
|
|
@@ -5748,9 +5779,9 @@ const it = [
|
|
|
5748
5779
|
}
|
|
5749
5780
|
);
|
|
5750
5781
|
return () => p();
|
|
5751
|
-
}, [e, a, r]), Q(() => (
|
|
5752
|
-
(e ? e.slice() :
|
|
5753
|
-
}, [e,
|
|
5782
|
+
}, [e, a, r]), Q(() => (Qa(d), () => en()), [d]), Q(() => {
|
|
5783
|
+
(e ? e.slice() : g.slice()).map((C) => C.componentKey).filter((C) => !!C).length;
|
|
5784
|
+
}, [e, g]);
|
|
5754
5785
|
const _ = async (o) => {
|
|
5755
5786
|
if (it.includes(o.componentKey))
|
|
5756
5787
|
return {
|
|
@@ -5760,79 +5791,79 @@ const it = [
|
|
|
5760
5791
|
};
|
|
5761
5792
|
const p = (o.apiUrl || "").trim();
|
|
5762
5793
|
if (!p) return;
|
|
5763
|
-
const C = o.apiMethod || "GET",
|
|
5764
|
-
let
|
|
5794
|
+
const C = o.apiMethod || "GET", $ = o.apiParams || [];
|
|
5795
|
+
let N = p, R, D;
|
|
5765
5796
|
if (C === "GET") {
|
|
5766
5797
|
const ne = new URL(
|
|
5767
5798
|
p,
|
|
5768
5799
|
typeof window == "undefined" ? "http://localhost" : window.location.origin
|
|
5769
5800
|
);
|
|
5770
|
-
for (const ae of
|
|
5801
|
+
for (const ae of $)
|
|
5771
5802
|
ae.key && ne.searchParams.append(ae.key, ae.value);
|
|
5772
|
-
|
|
5803
|
+
N = ne.toString();
|
|
5773
5804
|
} else {
|
|
5774
5805
|
const ne = new URLSearchParams();
|
|
5775
|
-
for (const ae of
|
|
5806
|
+
for (const ae of $)
|
|
5776
5807
|
ae.key && ne.append(ae.key, ae.value);
|
|
5777
5808
|
R = ne.toString(), D = {
|
|
5778
5809
|
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
|
|
5779
5810
|
};
|
|
5780
5811
|
}
|
|
5781
|
-
const Y = await fetch(
|
|
5812
|
+
const Y = await fetch(N, {
|
|
5782
5813
|
method: C,
|
|
5783
5814
|
headers: D,
|
|
5784
5815
|
body: R
|
|
5785
5816
|
});
|
|
5786
|
-
if (!Y.ok) throw new rt(Y.status,
|
|
5817
|
+
if (!Y.ok) throw new rt(Y.status, N, Y.statusText);
|
|
5787
5818
|
return Y.json();
|
|
5788
5819
|
}, O = ie(
|
|
5789
|
-
() => e ? e.slice() :
|
|
5790
|
-
[e,
|
|
5820
|
+
() => e ? e.slice() : g.slice(),
|
|
5821
|
+
[e, g]
|
|
5791
5822
|
), q = fe.useRef(/* @__PURE__ */ new Set());
|
|
5792
5823
|
Q(() => {
|
|
5793
5824
|
const o = O.map((p) => ({ s: p, url: (p.apiUrl || "").trim() })).filter(({ url: p }) => !!p);
|
|
5794
5825
|
if (o.length)
|
|
5795
5826
|
for (const { s: p, url: C } of o) {
|
|
5796
|
-
const
|
|
5797
|
-
q.current.has(
|
|
5827
|
+
const $ = `${p.id}|${C}`;
|
|
5828
|
+
q.current.has($) || (q.current.add($), k((N) => ({ ...N, [p.id]: !0 })), E((N) => ({ ...N, [p.id]: "" })), (async () => {
|
|
5798
5829
|
try {
|
|
5799
|
-
const
|
|
5800
|
-
v((R) => ({ ...R, [p.id]:
|
|
5801
|
-
} catch (
|
|
5830
|
+
const N = await _(p);
|
|
5831
|
+
v((R) => ({ ...R, [p.id]: N }));
|
|
5832
|
+
} catch (N) {
|
|
5802
5833
|
let R = "Error desconocido";
|
|
5803
|
-
|
|
5834
|
+
N instanceof rt ? R = `Error HTTP ${N.status} (${N.statusText}) en ${N.url}` : N instanceof SyntaxError ? R = "Respuesta no es JSON válido" : N instanceof TypeError ? R = "Fallo de red / CORS / conexión" : typeof N == "string" && (R = N.toString()), E((D) => ({ ...D, [p.id]: R }));
|
|
5804
5835
|
} finally {
|
|
5805
|
-
k((
|
|
5836
|
+
k((N) => ({ ...N, [p.id]: !1 }));
|
|
5806
5837
|
}
|
|
5807
5838
|
})());
|
|
5808
5839
|
}
|
|
5809
5840
|
}, [O]);
|
|
5810
5841
|
const M = ie(
|
|
5811
|
-
() => O.filter((o) => o.visible).filter((o) => I(o,
|
|
5812
|
-
[O,
|
|
5813
|
-
),
|
|
5842
|
+
() => O.filter((o) => o.visible).filter((o) => I(o, L)).sort((o, p) => o.order - p.order),
|
|
5843
|
+
[O, L]
|
|
5844
|
+
), B = (o) => Array.isArray(o) ? o.map((p) => {
|
|
5814
5845
|
const C = {};
|
|
5815
|
-
for (const
|
|
5816
|
-
const
|
|
5817
|
-
if (
|
|
5818
|
-
const R = String(
|
|
5846
|
+
for (const $ of p.fields || []) {
|
|
5847
|
+
const N = ($.type || "string").toLowerCase();
|
|
5848
|
+
if (N === "number") {
|
|
5849
|
+
const R = String($.value || "").trim();
|
|
5819
5850
|
if (R !== "") {
|
|
5820
5851
|
const D = Number(R);
|
|
5821
|
-
Number.isNaN(D) || (C[
|
|
5852
|
+
Number.isNaN(D) || (C[$.name] = D);
|
|
5822
5853
|
}
|
|
5823
|
-
} else if (
|
|
5824
|
-
C[
|
|
5825
|
-
else if (
|
|
5826
|
-
const R = String(
|
|
5854
|
+
} else if (N === "boolean")
|
|
5855
|
+
C[$.name] = String($.value).toLowerCase() === "true";
|
|
5856
|
+
else if (N === "function") {
|
|
5857
|
+
const R = String($.value || "").trim();
|
|
5827
5858
|
if (R)
|
|
5828
5859
|
try {
|
|
5829
5860
|
const D = new Function(R);
|
|
5830
|
-
C[
|
|
5861
|
+
C[$.name] = D;
|
|
5831
5862
|
} catch (D) {
|
|
5832
|
-
console.error(`❌ Error creando función en item '${
|
|
5863
|
+
console.error(`❌ Error creando función en item '${$.name}':`, D);
|
|
5833
5864
|
}
|
|
5834
5865
|
} else
|
|
5835
|
-
C[
|
|
5866
|
+
C[$.name] = $.value;
|
|
5836
5867
|
}
|
|
5837
5868
|
return C;
|
|
5838
5869
|
}) : [], P = (o) => {
|
|
@@ -5840,20 +5871,20 @@ const it = [
|
|
|
5840
5871
|
if (!Array.isArray(o)) return p;
|
|
5841
5872
|
for (const C of o) {
|
|
5842
5873
|
if (!C.name) continue;
|
|
5843
|
-
const
|
|
5844
|
-
if (
|
|
5845
|
-
const
|
|
5846
|
-
if (
|
|
5847
|
-
const R = Number(
|
|
5874
|
+
const $ = (C.type || "string").toLowerCase();
|
|
5875
|
+
if ($ === "number") {
|
|
5876
|
+
const N = String(C.value || "").trim();
|
|
5877
|
+
if (N !== "") {
|
|
5878
|
+
const R = Number(N);
|
|
5848
5879
|
Number.isNaN(R) || (p[C.name] = R);
|
|
5849
5880
|
}
|
|
5850
|
-
} else if (
|
|
5881
|
+
} else if ($ === "boolean")
|
|
5851
5882
|
p[C.name] = String(C.value).toLowerCase() === "true";
|
|
5852
|
-
else if (
|
|
5853
|
-
const
|
|
5854
|
-
if (
|
|
5883
|
+
else if ($ === "function") {
|
|
5884
|
+
const N = String(C.value || "").trim();
|
|
5885
|
+
if (N)
|
|
5855
5886
|
try {
|
|
5856
|
-
const R = new Function(
|
|
5887
|
+
const R = new Function(N);
|
|
5857
5888
|
p[C.name] = R;
|
|
5858
5889
|
} catch (R) {
|
|
5859
5890
|
console.error(`❌ Error creando función en item '${C.name}':`, R);
|
|
@@ -5862,56 +5893,56 @@ const it = [
|
|
|
5862
5893
|
p[C.name] = C.value;
|
|
5863
5894
|
}
|
|
5864
5895
|
return p;
|
|
5865
|
-
}, V = (o, p, C,
|
|
5866
|
-
const
|
|
5896
|
+
}, V = (o, p, C, $) => {
|
|
5897
|
+
const N = C ? { ...C } : {}, R = ($ || "items").trim() || "items";
|
|
5867
5898
|
if (p)
|
|
5868
|
-
return
|
|
5899
|
+
return N[R] = p.arr || [], N;
|
|
5869
5900
|
const D = o;
|
|
5870
5901
|
if (Array.isArray(D))
|
|
5871
|
-
return
|
|
5902
|
+
return N[R] = D, N;
|
|
5872
5903
|
if (D && typeof D == "object") {
|
|
5873
5904
|
const Y = D;
|
|
5874
|
-
return Array.isArray(Y.lobby) ? (
|
|
5905
|
+
return Array.isArray(Y.lobby) ? (N[R] = Y.lobby, N) : Array.isArray(Y.items) ? (N[R] = Y.items, N) : (N[R] = D, N);
|
|
5875
5906
|
}
|
|
5876
|
-
return
|
|
5877
|
-
},
|
|
5907
|
+
return N[R] = [], N;
|
|
5908
|
+
}, G = (o) => {
|
|
5878
5909
|
var R;
|
|
5879
|
-
const p = !!((R = o.apiUrl) != null && R.trim()), C = p ?
|
|
5880
|
-
let
|
|
5881
|
-
const
|
|
5910
|
+
const p = !!((R = o.apiUrl) != null && R.trim()), C = p ? f[o.id] : void 0;
|
|
5911
|
+
let $ = o.props ? { ...o.props } : {};
|
|
5912
|
+
const N = P(o.manualScalarFields);
|
|
5882
5913
|
if (it.includes(o.componentKey))
|
|
5883
|
-
return { items: C, ...N
|
|
5884
|
-
if (
|
|
5885
|
-
|
|
5914
|
+
return { items: C, ...$, ...N };
|
|
5915
|
+
if ($ = { ...$, ...N }, p)
|
|
5916
|
+
$ = V(C, null, $);
|
|
5886
5917
|
else if (o.dataMode === "manual") {
|
|
5887
|
-
const D =
|
|
5888
|
-
if (
|
|
5918
|
+
const D = B(o.manualItems);
|
|
5919
|
+
if ($ = V(
|
|
5889
5920
|
null,
|
|
5890
5921
|
{ arr: D, variableName: o.variableName },
|
|
5891
|
-
|
|
5922
|
+
$,
|
|
5892
5923
|
o.variableName
|
|
5893
5924
|
), o.variableName2 && o.manualItems2) {
|
|
5894
|
-
const Y =
|
|
5895
|
-
|
|
5925
|
+
const Y = B(o.manualItems2), ne = (o.variableName2 || "items2").trim() || "items2";
|
|
5926
|
+
$[ne] = Y;
|
|
5896
5927
|
}
|
|
5897
5928
|
}
|
|
5898
|
-
return
|
|
5929
|
+
return $;
|
|
5899
5930
|
}, K = (o) => {
|
|
5900
5931
|
const p = o.props ? { ...o.props } : {};
|
|
5901
5932
|
try {
|
|
5902
5933
|
Object.assign(p, P(o.manualScalarFields));
|
|
5903
|
-
} catch (
|
|
5904
|
-
console.error("❌ Error armando scalars vacíos:", o,
|
|
5934
|
+
} catch ($) {
|
|
5935
|
+
console.error("❌ Error armando scalars vacíos:", o, $);
|
|
5905
5936
|
}
|
|
5906
5937
|
const C = (o.variableName || "items").trim() || "items";
|
|
5907
5938
|
if (typeof p[C] == "undefined" && (p[C] = []), o.variableName2) {
|
|
5908
|
-
const
|
|
5909
|
-
typeof p[
|
|
5939
|
+
const $ = (o.variableName2 || "items2").trim() || "items2";
|
|
5940
|
+
typeof p[$] == "undefined" && (p[$] = []);
|
|
5910
5941
|
}
|
|
5911
5942
|
return p;
|
|
5912
|
-
},
|
|
5943
|
+
}, j = (o) => {
|
|
5913
5944
|
try {
|
|
5914
|
-
return
|
|
5945
|
+
return G(o);
|
|
5915
5946
|
} catch (p) {
|
|
5916
5947
|
console.error("🔥 ERROR EN buildCompProps:", o, p);
|
|
5917
5948
|
const C = w(o);
|
|
@@ -5919,9 +5950,9 @@ const it = [
|
|
|
5919
5950
|
try {
|
|
5920
5951
|
return console.warn(
|
|
5921
5952
|
`[landing] usando fallback local para sección ${o.title} (${o.componentKey})`
|
|
5922
|
-
),
|
|
5923
|
-
} catch (
|
|
5924
|
-
console.error("🔥 ERROR EN fallback buildCompProps:", C,
|
|
5953
|
+
), G(C);
|
|
5954
|
+
} catch ($) {
|
|
5955
|
+
console.error("🔥 ERROR EN fallback buildCompProps:", C, $);
|
|
5925
5956
|
}
|
|
5926
5957
|
return K(o);
|
|
5927
5958
|
}
|
|
@@ -5931,7 +5962,7 @@ const it = [
|
|
|
5931
5962
|
component: "bg-yellow-100 text-yellow-800"
|
|
5932
5963
|
}[p]}`, children: C }, o), te = (o) => {
|
|
5933
5964
|
var He;
|
|
5934
|
-
const p = o.componentKey, C =
|
|
5965
|
+
const p = o.componentKey, C = ro[p], N = (/* @__PURE__ */ new Set([
|
|
5935
5966
|
"OraculoSeccionBanners",
|
|
5936
5967
|
"OraculoSeccionBonoBienvenida",
|
|
5937
5968
|
"OraculoSeccionCasinoEnVivo",
|
|
@@ -5947,7 +5978,7 @@ const it = [
|
|
|
5947
5978
|
])).has(o.componentKey), R = b ? 120 : 24, D = (b ? 8 : 5) * 8, Y = o.componentKey === "OraculoSeccionCasinoEnVivo", ne = {
|
|
5948
5979
|
width: "100%",
|
|
5949
5980
|
boxSizing: "border-box",
|
|
5950
|
-
|
|
5981
|
+
...N ? {} : { paddingLeft: R, paddingRight: R },
|
|
5951
5982
|
...Y ? {
|
|
5952
5983
|
marginTop: -D,
|
|
5953
5984
|
marginBottom: -D
|
|
@@ -5959,7 +5990,7 @@ const it = [
|
|
|
5959
5990
|
"component",
|
|
5960
5991
|
`Componente "${p}" no encontrado`
|
|
5961
5992
|
);
|
|
5962
|
-
const ae = !!((He = o.apiUrl) != null && He.trim()), We = ae ?
|
|
5993
|
+
const ae = !!((He = o.apiUrl) != null && He.trim()), We = ae ? f[o.id] : void 0, Et = ae ? !!x[o.id] : !1, Ge = ae ? T[o.id] : "";
|
|
5963
5994
|
if (ae) {
|
|
5964
5995
|
const kt = lo.includes(o.componentKey);
|
|
5965
5996
|
if (Et && !We && !kt)
|
|
@@ -5972,7 +6003,7 @@ const it = [
|
|
|
5972
6003
|
const we = w(o);
|
|
5973
6004
|
if (we && we.dataMode === "manual")
|
|
5974
6005
|
try {
|
|
5975
|
-
const Fe =
|
|
6006
|
+
const Fe = j(we);
|
|
5976
6007
|
return /* @__PURE__ */ t("div", { style: ne, className: "oraculo-section-wrapper", children: /* @__PURE__ */ t(C, { ...Fe }) }, o.id);
|
|
5977
6008
|
} catch (Fe) {
|
|
5978
6009
|
console.error(
|
|
@@ -5988,11 +6019,11 @@ const it = [
|
|
|
5988
6019
|
);
|
|
5989
6020
|
}
|
|
5990
6021
|
}
|
|
5991
|
-
const je =
|
|
6022
|
+
const je = j(o), Ct = o.componentKey === "OraculoSeccionClubOlimpo" || o.componentKey === "OraculoSeccionBanners" ? {
|
|
5992
6023
|
...je,
|
|
5993
6024
|
user: d.user
|
|
5994
6025
|
} : je;
|
|
5995
|
-
return /* @__PURE__ */ t(
|
|
6026
|
+
return /* @__PURE__ */ t(so, { section: o, children: /* @__PURE__ */ t(
|
|
5996
6027
|
"div",
|
|
5997
6028
|
{
|
|
5998
6029
|
style: ne,
|
|
@@ -6002,7 +6033,7 @@ const it = [
|
|
|
6002
6033
|
o.id
|
|
6003
6034
|
) });
|
|
6004
6035
|
};
|
|
6005
|
-
return u && !e &&
|
|
6036
|
+
return u && !e && g.length === 0 ? h ? /* @__PURE__ */ t(h, {}) : /* @__PURE__ */ t("div", { children: "Cargando..." }) : !u && !e && g.length === 0 ? /* @__PURE__ */ t("div", { className: "text-xs text-gray-500", children: "Sin secciones (Firestore)" }) : /* @__PURE__ */ t(Ot, { children: /* @__PURE__ */ t(vt, { docId: a, moduleId: n, children: /* @__PURE__ */ t(
|
|
6006
6037
|
Tt,
|
|
6007
6038
|
{
|
|
6008
6039
|
className: "oli-font",
|
|
@@ -6048,24 +6079,24 @@ export {
|
|
|
6048
6079
|
me as OraculoGridGroup,
|
|
6049
6080
|
Je as OraculoLiveCasinoCard,
|
|
6050
6081
|
Ze as OraculoLogoMediosPago,
|
|
6051
|
-
|
|
6052
|
-
|
|
6053
|
-
|
|
6054
|
-
|
|
6055
|
-
|
|
6056
|
-
|
|
6057
|
-
|
|
6058
|
-
|
|
6059
|
-
|
|
6060
|
-
|
|
6061
|
-
|
|
6062
|
-
|
|
6063
|
-
|
|
6064
|
-
|
|
6082
|
+
Co as OraculoPageLandingPreview,
|
|
6083
|
+
Qn as OraculoSeccionBanners,
|
|
6084
|
+
Sn as OraculoSeccionBonoBienvenida,
|
|
6085
|
+
hn as OraculoSeccionCasino,
|
|
6086
|
+
pn as OraculoSeccionCasinoEnVivo,
|
|
6087
|
+
wn as OraculoSeccionClubOlimpo,
|
|
6088
|
+
Ya as OraculoSeccionDestacados,
|
|
6089
|
+
$n as OraculoSeccionEventoCombinadas,
|
|
6090
|
+
qn as OraculoSeccionEventoEnVivo,
|
|
6091
|
+
Zn as OraculoSeccionEventoSemana,
|
|
6092
|
+
to as OraculoSeccionMediosPago,
|
|
6093
|
+
tn as OraculoSeccionTopJuegos,
|
|
6094
|
+
yn as OraculoSeccionVirtuales,
|
|
6095
|
+
Eo as OraculoSectionHost,
|
|
6065
6096
|
ge as OraculoSectionTitle,
|
|
6066
6097
|
Ot as OraculoThemeProvider,
|
|
6067
|
-
|
|
6098
|
+
tn as OraculoTopJuegoItem,
|
|
6068
6099
|
Xe as OraculoWelcomeBanner,
|
|
6069
|
-
|
|
6100
|
+
Co as default
|
|
6070
6101
|
};
|
|
6071
6102
|
//# sourceMappingURL=index.es.js.map
|