oraculo-ui 0.2.42 → 0.2.43
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.es.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import { Link as
|
|
3
|
-
import fe, { useState as Z, useEffect as Q, useRef as U, forwardRef as
|
|
4
|
-
import
|
|
5
|
-
import { Splide as
|
|
1
|
+
import { jsx as t, jsxs as y, Fragment as pe } from "react/jsx-runtime";
|
|
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
|
+
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";
|
|
8
8
|
import H from "@mui/material/Stack";
|
|
9
9
|
import { useCaptureInteraction as oe } from "@olimpo/capture-client";
|
|
10
|
-
import { ChevronLeftRounded as
|
|
10
|
+
import { ChevronLeftRounded as Re, ChevronRightRounded as Le } from "@mui/icons-material";
|
|
11
11
|
import xe from "@mui/material/useMediaQuery";
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import { useTheme as
|
|
15
|
-
import
|
|
16
|
-
import { onSnapshot as
|
|
12
|
+
import ct from "@mui/icons-material/ChevronLeftRounded";
|
|
13
|
+
import dt from "@mui/icons-material/ChevronRightRounded";
|
|
14
|
+
import { useTheme as Ft, createTheme as qt, ThemeProvider as zt } from "@mui/material/styles";
|
|
15
|
+
import Pt from "@mui/material/CssBaseline";
|
|
16
|
+
import { onSnapshot as Dt, doc as Ut } from "firebase/firestore";
|
|
17
17
|
function J({
|
|
18
18
|
children: e,
|
|
19
19
|
onClick: a,
|
|
@@ -24,38 +24,38 @@ function J({
|
|
|
24
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:
|
|
32
|
-
rightIcon:
|
|
31
|
+
leftIcon: f,
|
|
32
|
+
rightIcon: v,
|
|
33
33
|
iconOnly: x
|
|
34
34
|
}) {
|
|
35
|
-
const
|
|
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
|
-
].filter(Boolean).join(" "), S = /* @__PURE__ */
|
|
44
|
-
|
|
45
|
-
!
|
|
46
|
-
|
|
47
|
-
] }),
|
|
43
|
+
].filter(Boolean).join(" "), S = /* @__PURE__ */ y(pe, { children: [
|
|
44
|
+
f && /* @__PURE__ */ t("span", { className: "orc-btn__icon", children: f }),
|
|
45
|
+
!A && /* @__PURE__ */ t("span", { className: "orc-btn__label", children: e }),
|
|
46
|
+
v && /* @__PURE__ */ t("span", { className: "orc-btn__icon", children: v })
|
|
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:
|
|
57
|
-
className:
|
|
58
|
-
onClick:
|
|
55
|
+
"aria-disabled": L,
|
|
56
|
+
tabIndex: L ? -1 : void 0,
|
|
57
|
+
className: w,
|
|
58
|
+
onClick: L ? (F) => F.preventDefault() : a,
|
|
59
59
|
children: S
|
|
60
60
|
}
|
|
61
61
|
) : /* @__PURE__ */ t(
|
|
@@ -63,9 +63,9 @@ function J({
|
|
|
63
63
|
{
|
|
64
64
|
type: s,
|
|
65
65
|
onClick: a,
|
|
66
|
-
disabled: !!
|
|
66
|
+
disabled: !!L,
|
|
67
67
|
"aria-label": c,
|
|
68
|
-
className:
|
|
68
|
+
className: w,
|
|
69
69
|
children: S
|
|
70
70
|
}
|
|
71
71
|
);
|
|
@@ -81,7 +81,7 @@ function ge({
|
|
|
81
81
|
n ? `orc-section-title--${n}` : "",
|
|
82
82
|
r
|
|
83
83
|
].filter(Boolean).join(" ");
|
|
84
|
-
return /* @__PURE__ */
|
|
84
|
+
return /* @__PURE__ */ y("div", { className: s, children: [
|
|
85
85
|
a && /* @__PURE__ */ t(
|
|
86
86
|
"img",
|
|
87
87
|
{
|
|
@@ -93,7 +93,7 @@ function ge({
|
|
|
93
93
|
/* @__PURE__ */ t("h2", { className: "orc-section-title__title", children: e })
|
|
94
94
|
] });
|
|
95
95
|
}
|
|
96
|
-
const
|
|
96
|
+
const ut = ({
|
|
97
97
|
total: e,
|
|
98
98
|
active: a,
|
|
99
99
|
onSelect: n,
|
|
@@ -104,25 +104,25 @@ const dt = ({
|
|
|
104
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: s, role: "tablist", "aria-label": "Carousel pagination", children: Array.from({ length: e }).map((h,
|
|
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({
|
|
@@ -178,16 +178,16 @@ function Ze({ src: e, alt: a }) {
|
|
|
178
178
|
}
|
|
179
179
|
);
|
|
180
180
|
}
|
|
181
|
-
const
|
|
182
|
-
contenedor:
|
|
183
|
-
flexGroup:
|
|
184
|
-
subtitle:
|
|
181
|
+
const Vt = "oraculo__OraculoEventTitle-module__contenedor___rg1vw", Wt = "oraculo__OraculoEventTitle-module__flexGroup___jMLFO", Gt = "oraculo__OraculoEventTitle-module__subtitle___TmHna", qe = {
|
|
182
|
+
contenedor: Vt,
|
|
183
|
+
flexGroup: Wt,
|
|
184
|
+
subtitle: Gt
|
|
185
185
|
};
|
|
186
|
-
function
|
|
187
|
-
return /* @__PURE__ */
|
|
186
|
+
function jt({ title: e, subtitle: a }) {
|
|
187
|
+
return /* @__PURE__ */ y(
|
|
188
188
|
"div",
|
|
189
189
|
{
|
|
190
|
-
className:
|
|
190
|
+
className: qe.contenedor,
|
|
191
191
|
children: [
|
|
192
192
|
/* @__PURE__ */ t(
|
|
193
193
|
"span",
|
|
@@ -200,17 +200,17 @@ function Wt({ title: e, subtitle: a }) {
|
|
|
200
200
|
children: e
|
|
201
201
|
}
|
|
202
202
|
),
|
|
203
|
-
a && /* @__PURE__ */
|
|
203
|
+
a && /* @__PURE__ */ y(
|
|
204
204
|
"div",
|
|
205
205
|
{
|
|
206
|
-
className:
|
|
206
|
+
className: qe.flexGroup,
|
|
207
207
|
children: [
|
|
208
|
-
/* @__PURE__ */
|
|
208
|
+
/* @__PURE__ */ y("svg", { width: "4", height: "4", viewBox: "0 0 5 5", xmlns: "http://www.w3.org/2000/svg", style: { flexShrink: 0 }, children: [
|
|
209
209
|
" ",
|
|
210
210
|
/* @__PURE__ */ t("circle", { cx: "2.5", cy: "2.5", r: "2.5", fill: "white" }),
|
|
211
211
|
" "
|
|
212
212
|
] }),
|
|
213
|
-
/* @__PURE__ */ t("span", { className:
|
|
213
|
+
/* @__PURE__ */ t("span", { className: qe.subtitle, children: a }),
|
|
214
214
|
/* @__PURE__ */ t("div", {})
|
|
215
215
|
]
|
|
216
216
|
}
|
|
@@ -219,7 +219,7 @@ function Wt({ title: e, subtitle: a }) {
|
|
|
219
219
|
}
|
|
220
220
|
);
|
|
221
221
|
}
|
|
222
|
-
function
|
|
222
|
+
function Ht({ text: e, color: a = "#ff3b3b", textColor: n = "#fff" }) {
|
|
223
223
|
return /* @__PURE__ */ t(
|
|
224
224
|
"span",
|
|
225
225
|
{
|
|
@@ -240,14 +240,14 @@ function Gt({ text: e, color: a = "#ff3b3b", textColor: n = "#fff" }) {
|
|
|
240
240
|
}
|
|
241
241
|
);
|
|
242
242
|
}
|
|
243
|
-
function
|
|
244
|
-
return /* @__PURE__ */
|
|
245
|
-
e && /* @__PURE__ */ t(
|
|
243
|
+
function Kt({ live: e, time: a }) {
|
|
244
|
+
return /* @__PURE__ */ y("div", { className: "oli-font", style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
|
|
245
|
+
e && /* @__PURE__ */ t(Ht, { text: "En vivo" }),
|
|
246
246
|
a && /* @__PURE__ */ t("span", { style: { fontSize: "14px", fontWeight: 400, lineHeight: "18px", paddingTop: "4px" }, children: a })
|
|
247
247
|
] });
|
|
248
248
|
}
|
|
249
|
-
function
|
|
250
|
-
return /* @__PURE__ */
|
|
249
|
+
function Zt({ title: e, subtitle: a, live: n = !1, time: r = "" }) {
|
|
250
|
+
return /* @__PURE__ */ y(
|
|
251
251
|
"div",
|
|
252
252
|
{
|
|
253
253
|
style: {
|
|
@@ -257,33 +257,33 @@ function Ht({ title: e, subtitle: a, live: n = !1, time: r = "" }) {
|
|
|
257
257
|
color: "#FFFFFF"
|
|
258
258
|
},
|
|
259
259
|
children: [
|
|
260
|
-
/* @__PURE__ */ t(
|
|
261
|
-
/* @__PURE__ */ t(
|
|
260
|
+
/* @__PURE__ */ t(jt, { title: e, subtitle: a }),
|
|
261
|
+
/* @__PURE__ */ t(Kt, { live: n, time: r })
|
|
262
262
|
]
|
|
263
263
|
}
|
|
264
264
|
);
|
|
265
265
|
}
|
|
266
|
-
const
|
|
267
|
-
label:
|
|
266
|
+
const Jt = "oraculo__OraculoEventLabel-module__label___c64Xw", Xt = {
|
|
267
|
+
label: Jt
|
|
268
268
|
};
|
|
269
|
-
function
|
|
270
|
-
return /* @__PURE__ */ t("span", { className:
|
|
269
|
+
function mt({ text: e }) {
|
|
270
|
+
return /* @__PURE__ */ t("span", { className: Xt.label, children: e });
|
|
271
271
|
}
|
|
272
|
-
const
|
|
273
|
-
container:
|
|
272
|
+
const Yt = "oraculo__OraculoEventLeague-module__container___rdk4F", Qt = {
|
|
273
|
+
container: Yt
|
|
274
274
|
};
|
|
275
|
-
function
|
|
276
|
-
return /* @__PURE__ */ t("div", { className:
|
|
275
|
+
function pt({ title: e }) {
|
|
276
|
+
return /* @__PURE__ */ t("div", { className: Qt.container, children: e.toUpperCase() });
|
|
277
277
|
}
|
|
278
|
-
const
|
|
279
|
-
scoreWrapper:
|
|
280
|
-
name:
|
|
281
|
-
score:
|
|
282
|
-
normal:
|
|
283
|
-
small:
|
|
278
|
+
const ea = "oraculo__OraculoEventScore-module__scoreWrapper___fWwEr", ta = "oraculo__OraculoEventScore-module__name___r4uL6", aa = "oraculo__OraculoEventScore-module__score___Xl03M", na = "oraculo__OraculoEventScore-module__normal___cCNFz", oa = "oraculo__OraculoEventScore-module__small___fVt8E", ve = {
|
|
279
|
+
scoreWrapper: ea,
|
|
280
|
+
name: ta,
|
|
281
|
+
score: aa,
|
|
282
|
+
normal: na,
|
|
283
|
+
small: oa
|
|
284
284
|
};
|
|
285
|
-
function
|
|
286
|
-
return /* @__PURE__ */
|
|
285
|
+
function ft({ text: e, name: a, size: n = "normal" }) {
|
|
286
|
+
return /* @__PURE__ */ y(
|
|
287
287
|
"div",
|
|
288
288
|
{
|
|
289
289
|
className: `${ve.scoreWrapper} ${ve[n]}`,
|
|
@@ -294,23 +294,23 @@ function pt({ text: e, name: a, size: n = "normal" }) {
|
|
|
294
294
|
}
|
|
295
295
|
);
|
|
296
296
|
}
|
|
297
|
-
const
|
|
298
|
-
team:
|
|
299
|
-
regular:
|
|
300
|
-
compact:
|
|
301
|
-
logo:
|
|
302
|
-
name:
|
|
303
|
-
skeleton:
|
|
304
|
-
},
|
|
305
|
-
polo:
|
|
306
|
-
svgWrapper:
|
|
307
|
-
shadow:
|
|
308
|
-
highlight:
|
|
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
|
+
team: ra,
|
|
299
|
+
regular: ia,
|
|
300
|
+
compact: sa,
|
|
301
|
+
logo: la,
|
|
302
|
+
name: ca,
|
|
303
|
+
skeleton: da
|
|
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 = {
|
|
305
|
+
polo: ua,
|
|
306
|
+
svgWrapper: ma,
|
|
307
|
+
shadow: pa,
|
|
308
|
+
highlight: fa
|
|
309
309
|
};
|
|
310
|
-
function
|
|
310
|
+
function ga({ jersey: e, className: a }) {
|
|
311
311
|
const n = `#${e.base}`, r = e.sleeve ? `#${e.sleeve}` : n, i = e.stripes ? `#${e.stripes}` : null, s = e.sleevelong ? `#${e.sleevelong}` : null;
|
|
312
|
-
return /* @__PURE__ */
|
|
313
|
-
/* @__PURE__ */ t("div", { className:
|
|
312
|
+
return /* @__PURE__ */ y("div", { className: `${Ie.polo} ${a != null ? a : ""}`, children: [
|
|
313
|
+
/* @__PURE__ */ t("div", { className: Ie.svgWrapper, children: /* @__PURE__ */ y("svg", { viewBox: "0 0 656 656", "aria-hidden": !0, children: [
|
|
314
314
|
/* @__PURE__ */ t(
|
|
315
315
|
"path",
|
|
316
316
|
{
|
|
@@ -318,7 +318,7 @@ function pa({ jersey: e, className: a }) {
|
|
|
318
318
|
d: "m62 265 5.8-17c-.4-.7-.6-1.5-.4-2 .2-.7.8-1.2 1.2-1.4l1.2-4 9-21.6c.2-1 1-3.5 2.4-6.4a69.9 69.9 0 0 1 4.1-17.2l2.9-7 2.9-11.4c1.7-5.8 5.2-18.4 5.8-22 .6-3.6 6.8-19 9.8-26.2.4-.9 2.4-4.7 7.2-12.8 5.4-12.2 23.5-27.2 32-33.1l6.6-3.7 7.9-3.6 17.3-6.2 16.6-7.1L215 52c7-4.1 21.8-12.5 24.1-13.2 2.3-.8 5-3.5 6-4.7 1.2-1.2 4.2-3.8 6.6-4.7 2.3-1 8.2-6.8 10.8-9.6 1.6-1.4 3.8-4.7 9.2-7.5 5.3-2.9 20.4-4 27.2-4.3h25.6l16.7.3 14.1.6 10.3.7 9.5 1.7c6.4.6 12.6 4.3 15.4 8l2.7 3.1 8.9 8 1.8.7 4.9 3 2.7 3.5c4.2 2.2 13.1 7.1 15.2 8.7 2 1.6 30.1 15.4 44 22 8 3.2 39 12.3 55.3 30 5.2 4.3 7 7.8 11.4 12.4 5.1 5.3 15.1 29 16.9 32 1.4 2.6 5 17 6.8 24l4.8 20.5 8.4 29 8.9 22.7 2.3 5.4.6 1.5c.5.6 1.4 2 1 2.6-.2.6 0 2 .2 2.7l1 2.6 2 5.8 2.2 5.9c.3 1.3-4.3 4-6.6 5.2l-11.1 5-12.6 4.7-15 5-14.6 4.6-10.9 2.4a66 66 0 0 1-8.6 1.4c-3.4.3-4.7-.4-4.9-.8l-5-12.3-1.9-3.8-1.8-1.6.1-.8v-1l-.4-1.8-1.3-4.1-3.3-9-1.3-2-2.2-5.7-2.5-.3-1 .8v2l-2.7 13.1-8.7 58-.9 6.4-.2 7.9c0 3-1 16-1.7 18.3l-2.5 9-.2 7.6-.3 8.7-.3 7.5.3 4 .5 15c.3 1.9-.6 7-1.1 9.3-.6 2.4-1.6 7.5-1.4 8.8.3 1.4-.2 4.4-.5 5.8l-1.3 8.9c-.2 1.4-.8 5-1.3 7.2.7 1.6 4.7 14.6 5.9 17.8 1.2 3.3 4.8 19.4 5 20.7.3 1 1.1 7.8 1.5 11 .1 2.5.3 8 .2 10 0 2-.8 6.6-1.1 8.6-.2 1.7-.7 5.5-1.2 7s-1.2 8.5-1.4 11.8A81.1 81.1 0 0 1 477 552l.3 7.1.2 6.5 1.4 17.7.5 6 1.5 7.7.4 4.6c.3 2.1.7 7 .7 10.1.3 3-2.5 6-4 7 0 .2-1.2 1-4.6 3-6.4 5-26.3 11.6-35.5 14.3a379.2 379.2 0 0 1-58.6 11.2c-2.3.8-27 2.2-39 2.7-8.3 0-27 0-34.5-.4-11.5.9-47.4-4.8-63.9-7.7-6.3-.9-42.1-10.4-48-14.4-3.7-2.4-14.3-8-16.9-9.7a10.7 10.7 0 0 1-4.1-5.4c-.3-1 .1-8.6.4-12.3l.6-5 1.4-9.6 1-8 .3-4.3-.4-7.7-1-10.8v-13.8l.7-10 1.1-7.7 1.8-8 2.8-9.5 3.3-9.3a78 78 0 0 1-2.5-20.8 1112.2 1112.2 0 0 1 .6-14.1c-.1-.7 2.1-10.2 3.3-15l1-3.8-.1-.8c-1.4-8.3-1.5-14-1.9-15.4a78 78 0 0 1 .4-10.9l2-6.7.4-2-.4-1.5a67.6 67.6 0 0 1-7.3-27l-.2-7.7.5-5.4.3-1.5.4-3.9.7-5 .2-2.2-.2-.4-.3-6-1-3.1-.3-4-.7-7.6-1.5-8.3-.8-4.2-1.4-9.2-.4-4.3L172 279l-2.2-14.6a545 545 0 0 1-1.7-8.5c-.1-1-2-2.1-3-2.6 0 .6-.6 1.5-1.7 2-1.2.7-2.4 1.3-2.7 2.2l-.8 4.7a15 15 0 0 1-2.5 4.1 16.4 16.4 0 0 0-2.6 6.3l-.3 2.4v1.3l-1.4 1.1-.3.3-6 14.5c-.7 2.3-1.3 1.8-1.9 1.5l-10.5-3.1-9-3-18.3-6-20-6.8-13-4.8c-2.1-1-7-3-9.4-3.8-2.5-.8-3-1.3-2.8-1.4Z"
|
|
319
319
|
}
|
|
320
320
|
),
|
|
321
|
-
i && /* @__PURE__ */
|
|
321
|
+
i && /* @__PURE__ */ y(pe, { children: [
|
|
322
322
|
/* @__PURE__ */ t("path", { fill: i, d: "m153 277.8-5.8 14.5c-1 2.8-2.5 1.4-4.6.7l-2-.5-7.8-2.4-15.6-5-19-6.5-16-5.7-12-4.4-5.5-2.2c-3.5-1.1-3.1-1.2-1.9-4l1.8-4.9 3.2-9.3c-1.1-1.9 0-3.1.8-3.5l.2-.7.5-2 4.3-10.3 2.4-6 2.6-6.2.8-2.6 1.7-4.1v-.4l.3-2.6.6-3.4 1-3.5 1-3.8c.1-.9 2-5.6 3-7.8l.7-1.5.7-2 .9-3.6 3.4-12.6 2.4-8.6 2.7-11.2 3.5-9.6 3.6-9.4 3-6 2-4.1 3.6-5.8 2.2-4.3 3-4.4 3.2-3.9 1.7-1.9 3.6-3.6 3-2.9a109.3 109.3 0 0 1 13.3-11.2l1.2-.8a79.3 79.3 0 0 1 18-9l11.4-4.2 4-1.4 6.3-2.7 3.3-1.4 2.8-1.2 4-1.6 3.9-2.1 10.1-5 4.8-2.4 5.7-3.2 13.8-7.7c1.5-.8 4.7-2.7 6-3a8.5 8.5 0 0 0 3-1.8c3.4-2.5 4.5-4.8 6-5.3.4-.4 2-1.6 5.2-3.2-4.4 3.3-3.2 11-2.1 14.6a77 77 0 0 0 8.7 18.8l-.6.4-3.9 2-9 5-6.6 3.7-10 3.2c-4.3.8-13.2 2.4-14.4 2.8-1.2.3-10.2 4-14.5 5.8l-11.8 5.6-8.8 3.2-12 3.4-19 8.7c-5.8 1.4-19.3 14.2-25.3 20.4L122 128l.3.4 6.6 16.6 10.5 22.6 6.2 10.8c2.9 3 8.7 9.7 9.1 11.7.5 2 4.3 5.1 6.1 6.5.2.8.8 3.1 1.7 5.4-3.2 4.8-.4 10.6 1.4 12.9l1 4.6.3 6.5-.5 1c-1.4 1.4-.3 4 .4 5l.1 3c.5 1.4 1.3 4.2.8 5.2s0 2.7.3 3.4v4.9c-3.1.5-2 3.7-1 5.2-.5.7-1.8 2.2-3.2 2.7-1.4.5-1.8 3.6-1.8 5.2a9 9 0 0 1-2.7 4.7c-1.8 1.6-2.8 7.4-3 10.1l-1.6 1.5ZM403.8 31.1l-1.6-.7c1.2 1 2 2.2 2.8 4 1.8 2.8.6 8-.7 12.2a78 78 0 0 1-7.6 17l.5.2 3.3 1.5 5.4 3.3 5.9 3 7.2 3 8.2 2.2c.7.2 3.3 1 8.4 2 5.5.1 21.1 8 28.2 11.8l14 4.5a517 517 0 0 1 23.8 9.3c6.3.5 24.7 17 33.1 25.2l-4.6 11.6-8.2 19.3-3.8 9-5.2 8.6c-2.2 3.2-7.3 10.2-9.4 12.4-1.3-.3-5.6 4.4-7.6 6.7.3 2 .6 6.7-1.4 9.1-2 2.5-1.8 6.9-1.4 8.7.3.8.5 3-1 5.3-1.4 2.4-1 4-.5 4.5-.2.8-.7 2.5-1.4 3.4-.8.8-.4 3.3 0 4.5l.1 3-.1 2.2c-.2.6-.6 2.6-1.1 6.2 3.6 3.3 1.3 5.7-.3 6.5l2.2.3 1.3 2.7 1.5 3.8 1.1 2.3 2.7 7.1 1.6 4.8.3 2.1v1.6l1.9 1.9 4 8.9 1.8 4.5c.5 4 5.5 3.6 8 3l5.9-1.1 7.3-1.7 5.2-1.2 7.3-2.1 8.3-2.7 7.5-2.5 9.8-3.6 8-3 6.3-2.8 3.4-1.6 3-1.3 2.5-1.6 1-.8c1.9-1 2-2.1 1.6-2.9l-.6-1.7-1-2.7-1.6-4.2-1.4-4-.5-1.4-.1-.7v-1.2c.7-1-.4-2.5-1-3v-.2l-1-2-2.4-6-3.3-8.3-2.3-6a3896.4 3896.4 0 0 0-3.1-8.4l-2.2-7.1-1.5-5.7-2.5-8.9-1-3.1-1.2-4.5-2-8.2-2.2-9.3-2.8-11.4-2.6-9.1-.9-3c0-.3-.6-1.5-1-2l-2.5-5.6-3-6.6-5.7-11.3-2.5-4.3-2.3-3.3-.7-.7-4.3-5-3-3.8a73 73 0 0 0-4.2-3.8c-1.1-2-7.6-7-10.8-9.4-6.2-5-23.4-12.8-34-16.7l-11-4-16-7.9-20.1-10-7.1-3.8-2.4-1.5-13-7.3-2.6-3.4-5-3Z" }),
|
|
323
323
|
/* @__PURE__ */ t("path", { fill: i, d: "M292.1 648.8c-15.7-1.4-37.7-5-49.7-7.1-4.3-.6-22.6-5.3-35.5-9.5 1.5-10 3-21 4.3-32.7 7-60.5 4.8-132.8 3.1-185.6l-.9-32c-1-49-2.4-83.5-3.6-112-1.2-29-2.1-51.7-2.1-77 0-29 2.9-77.3 5.3-112.9l2.6-1c1.3-.3 10.1-2 14.4-2.7l10-3.2 6.6-3.7 9-5 4-2 .5-.3c1.2 2 2.6 4.1 3.4 4.8l6.1 7.8 15 14.6 4.8 4c-.6 26.4-1.1 60.6-1.1 100.1 0 59.3 1.1 82.6 2.7 114.6.9 18.8 2 40.7 3 74.9 1.5 48.3.8 98.4 0 148.6l-.8 68.3c0 13-.6 32.8-1.1 49Zm157.5-16.4-11.2 3.6a379.2 379.2 0 0 1-67 12c.2-11 .3-25.6.3-44.6 0-49.2-1.2-74.9-2.4-99.5-1.3-27.2-2.5-53-2-107.5.6-50.4 1.7-81.5 2.6-109.3 1-29.3 1.8-54.9 1.8-95.6 0-35.5-.6-70.6-1.2-98.6l3.6-3 5.3-5.1 3.5-3.6 3.5-3.4 4-5 4.2-5.3 2.7-4 .5.3 3.2 1.5 5.5 3.3 5.8 3 7.3 3 8.1 2.2c.7.2 3.3 1 8.4 2 2.4 0 6.5 1.5 11 3.4 2.6 29 5.2 68 5.2 107.8 0 41.5-1.6 70.2-3.2 102-1.6 28.7-3.3 60-4 105.6-.7 41.1.4 82.5 1.4 124.4.7 25.7 1.4 51.6 1.6 77.8a435 435 0 0 0 1.5 32.6Z" })
|
|
324
324
|
] }),
|
|
@@ -350,7 +350,7 @@ function pa({ jersey: e, className: a }) {
|
|
|
350
350
|
"img",
|
|
351
351
|
{
|
|
352
352
|
src: "https://widgets.sir.sportradar.com/assets/media/shadow.7a42eb6e.png",
|
|
353
|
-
className:
|
|
353
|
+
className: Ie.shadow,
|
|
354
354
|
alt: "",
|
|
355
355
|
"aria-hidden": !0
|
|
356
356
|
}
|
|
@@ -359,26 +359,26 @@ function pa({ jersey: e, className: a }) {
|
|
|
359
359
|
"img",
|
|
360
360
|
{
|
|
361
361
|
src: "https://widgets.sir.sportradar.com/assets/media/highlight.b1ac6c3e.png",
|
|
362
|
-
className:
|
|
362
|
+
className: Ie.highlight,
|
|
363
363
|
alt: "",
|
|
364
364
|
"aria-hidden": !0
|
|
365
365
|
}
|
|
366
366
|
)
|
|
367
367
|
] });
|
|
368
368
|
}
|
|
369
|
-
function
|
|
370
|
-
return /* @__PURE__ */
|
|
369
|
+
function Me({ name: e, jersey: a, size: n = "regular" }) {
|
|
370
|
+
return /* @__PURE__ */ y("div", { className: `oli-font ${_e.team} ${_e[n]}`, children: [
|
|
371
371
|
a != null && a.base ? /* @__PURE__ */ t(
|
|
372
|
-
|
|
372
|
+
ga,
|
|
373
373
|
{
|
|
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
|
}
|
|
381
|
-
function
|
|
381
|
+
function ha(e, a, {
|
|
382
382
|
enabled: n = !0,
|
|
383
383
|
threshold: r = 60,
|
|
384
384
|
cooldownMs: i = 500
|
|
@@ -388,28 +388,28 @@ function fa(e, a, {
|
|
|
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
|
|
400
|
-
s.current = 0, l.current =
|
|
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
403
|
d.removeEventListener("wheel", h), s.current = 0;
|
|
404
404
|
};
|
|
405
405
|
}, [n, r, i, e, a]);
|
|
406
406
|
}
|
|
407
|
-
const
|
|
408
|
-
gradientOverlay:
|
|
409
|
-
right:
|
|
410
|
-
left:
|
|
411
|
-
svg:
|
|
412
|
-
},
|
|
407
|
+
const ba = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", va = "oraculo__OraculoCarousel-module__right___KwpOE", _a = "oraculo__OraculoCarousel-module__left___n3WQu", ya = "oraculo__OraculoCarousel-module__svg___0mGuX", ye = {
|
|
408
|
+
gradientOverlay: ba,
|
|
409
|
+
right: va,
|
|
410
|
+
left: _a,
|
|
411
|
+
svg: ya
|
|
412
|
+
}, xa = Rt, Sa = Lt, he = $t(
|
|
413
413
|
({
|
|
414
414
|
items: e = [],
|
|
415
415
|
renderItem: a,
|
|
@@ -420,13 +420,13 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
|
|
|
420
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
|
-
|
|
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(">");
|
|
@@ -436,85 +436,85 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
|
|
|
436
436
|
return (I = c.current) == null ? void 0 : I.go("<");
|
|
437
437
|
},
|
|
438
438
|
go: (I) => {
|
|
439
|
-
var
|
|
440
|
-
return (
|
|
439
|
+
var _;
|
|
440
|
+
return (_ = c.current) == null ? void 0 : _.go(I);
|
|
441
441
|
}
|
|
442
442
|
}));
|
|
443
|
-
const
|
|
443
|
+
const E = (I) => {
|
|
444
444
|
var K;
|
|
445
|
-
const
|
|
446
|
-
let V = 0,
|
|
447
|
-
for (let
|
|
448
|
-
const X =
|
|
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: B, visibleEnd:
|
|
453
|
-
},
|
|
454
|
-
const
|
|
455
|
-
return !
|
|
456
|
-
},
|
|
457
|
-
var K,
|
|
458
|
-
if (
|
|
459
|
-
const
|
|
460
|
-
if (
|
|
452
|
+
return { visibleStart: B, visibleEnd: G };
|
|
453
|
+
}, b = (I) => {
|
|
454
|
+
const _ = I.root.querySelector(".splide__track"), O = I.root.querySelector(".splide__list");
|
|
455
|
+
return !_ || !O ? !1 : O.scrollWidth > _.clientWidth + 1;
|
|
456
|
+
}, A = U(!1), w = ke((I) => {
|
|
457
|
+
var K, j;
|
|
458
|
+
if (A.current) return;
|
|
459
|
+
const O = I.Components.Slides.getLength(), q = T.current;
|
|
460
|
+
if (T.current = "user", !b(I)) {
|
|
461
461
|
d == null || d({
|
|
462
462
|
index: 0,
|
|
463
463
|
isStart: !0,
|
|
464
464
|
isEnd: !0,
|
|
465
|
-
total:
|
|
465
|
+
total: O,
|
|
466
466
|
visibleStart: 0,
|
|
467
|
-
visibleEnd:
|
|
467
|
+
visibleEnd: O - 1,
|
|
468
468
|
source: q
|
|
469
469
|
});
|
|
470
470
|
return;
|
|
471
471
|
}
|
|
472
|
-
const { visibleStart: M, visibleEnd: B } =
|
|
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
|
-
total:
|
|
479
|
+
total: O,
|
|
480
480
|
visibleStart: M,
|
|
481
481
|
visibleEnd: B,
|
|
482
482
|
source: q
|
|
483
483
|
});
|
|
484
484
|
}, [d]);
|
|
485
485
|
fe.useEffect(() => {
|
|
486
|
-
var
|
|
487
|
-
const I = (
|
|
486
|
+
var O;
|
|
487
|
+
const I = (O = c.current) == null ? void 0 : O.splide;
|
|
488
488
|
if (!I) return;
|
|
489
|
-
const
|
|
490
|
-
|
|
491
|
-
|
|
489
|
+
const _ = v.current !== e.length;
|
|
490
|
+
v.current = e.length, _ && requestAnimationFrame(() => {
|
|
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
|
});
|
|
499
|
-
}, [e.length,
|
|
500
|
-
const S =
|
|
501
|
-
var
|
|
502
|
-
const I = (
|
|
499
|
+
}, [e.length, w]);
|
|
500
|
+
const S = ke(() => {
|
|
501
|
+
var _;
|
|
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
|
-
}, [
|
|
512
|
+
}, [w]), L = ke(
|
|
513
513
|
(I) => {
|
|
514
|
-
|
|
514
|
+
T.current = "mounted", w(I);
|
|
515
515
|
},
|
|
516
|
-
[
|
|
517
|
-
),
|
|
516
|
+
[w]
|
|
517
|
+
), F = {
|
|
518
518
|
type: "slide",
|
|
519
519
|
trimSpace: !1,
|
|
520
520
|
drag: !0,
|
|
@@ -527,37 +527,37 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
|
|
|
527
527
|
gap: r,
|
|
528
528
|
breakpoints: i,
|
|
529
529
|
...s,
|
|
530
|
-
...
|
|
530
|
+
...g ? { wheel: !1 } : {}
|
|
531
531
|
};
|
|
532
|
-
return /* @__PURE__ */
|
|
532
|
+
return /* @__PURE__ */ y(
|
|
533
533
|
"div",
|
|
534
534
|
{
|
|
535
|
-
ref:
|
|
535
|
+
ref: f,
|
|
536
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:
|
|
544
|
-
onMove:
|
|
545
|
-
onMounted:
|
|
543
|
+
options: F,
|
|
544
|
+
onMove: w,
|
|
545
|
+
onMounted: L,
|
|
546
546
|
onResize: S,
|
|
547
|
-
children: e.map((I,
|
|
548
|
-
var
|
|
549
|
-
return /* @__PURE__ */ t(
|
|
547
|
+
children: e.map((I, _) => {
|
|
548
|
+
var O;
|
|
549
|
+
return /* @__PURE__ */ t(Sa, { children: a(I, _) }, h ? _ : (O = I.id) != null ? O : _);
|
|
550
550
|
})
|
|
551
551
|
}
|
|
552
552
|
),
|
|
553
|
-
m && /* @__PURE__ */
|
|
553
|
+
m && /* @__PURE__ */ y(pe, { children: [
|
|
554
554
|
/* @__PURE__ */ t(
|
|
555
555
|
"div",
|
|
556
556
|
{
|
|
557
557
|
ref: x,
|
|
558
558
|
className: `${ye.gradientOverlay} ${ye.left}`,
|
|
559
559
|
style: { "--gradient-opacity": "0" },
|
|
560
|
-
children: /* @__PURE__ */
|
|
560
|
+
children: /* @__PURE__ */ y(
|
|
561
561
|
"svg",
|
|
562
562
|
{
|
|
563
563
|
className: ye.svg,
|
|
@@ -567,7 +567,7 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
|
|
|
567
567
|
xmlns: "http://www.w3.org/2000/svg",
|
|
568
568
|
children: [
|
|
569
569
|
/* @__PURE__ */ t("path", { d: "M0 0H152V184H0V0Z", fill: "url(#paint_left)" }),
|
|
570
|
-
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */
|
|
570
|
+
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ y("linearGradient", { id: "paint_left", x1: "0", y1: "92", x2: "152", y2: "92", gradientUnits: "userSpaceOnUse", children: [
|
|
571
571
|
/* @__PURE__ */ t("stop", { offset: "0.59737", stopColor: "#121212", stopOpacity: "0" }),
|
|
572
572
|
/* @__PURE__ */ t("stop", { offset: "1", stopColor: "#121212" })
|
|
573
573
|
] }) })
|
|
@@ -579,10 +579,10 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
|
|
|
579
579
|
/* @__PURE__ */ t(
|
|
580
580
|
"div",
|
|
581
581
|
{
|
|
582
|
-
ref:
|
|
582
|
+
ref: k,
|
|
583
583
|
className: `${ye.gradientOverlay} ${ye.right}`,
|
|
584
584
|
style: { "--gradient-opacity": "1" },
|
|
585
|
-
children: /* @__PURE__ */
|
|
585
|
+
children: /* @__PURE__ */ y(
|
|
586
586
|
"svg",
|
|
587
587
|
{
|
|
588
588
|
className: ye.svg,
|
|
@@ -592,7 +592,7 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
|
|
|
592
592
|
xmlns: "http://www.w3.org/2000/svg",
|
|
593
593
|
children: [
|
|
594
594
|
/* @__PURE__ */ t("path", { d: "M0 0H152V184H0V0Z", fill: "url(#paint_right)" }),
|
|
595
|
-
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */
|
|
595
|
+
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ y("linearGradient", { id: "paint_right", x1: "0", y1: "92", x2: "152", y2: "92", gradientUnits: "userSpaceOnUse", children: [
|
|
596
596
|
/* @__PURE__ */ t("stop", { offset: "0.59737", stopColor: "#121212", stopOpacity: "0" }),
|
|
597
597
|
/* @__PURE__ */ t("stop", { offset: "1", stopColor: "#121212" })
|
|
598
598
|
] }) })
|
|
@@ -615,7 +615,7 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
|
|
|
615
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
|
-
return /* @__PURE__ */
|
|
618
|
+
return /* @__PURE__ */ y(
|
|
619
619
|
z,
|
|
620
620
|
{
|
|
621
621
|
onClick: a,
|
|
@@ -693,7 +693,7 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
|
|
|
693
693
|
}
|
|
694
694
|
);
|
|
695
695
|
};
|
|
696
|
-
function
|
|
696
|
+
function wa({
|
|
697
697
|
imageUrl: e,
|
|
698
698
|
orden: a = 1,
|
|
699
699
|
onClick: n,
|
|
@@ -703,18 +703,18 @@ function xa({
|
|
|
703
703
|
md: { w: 186, h: 264, r: 22.6, font: 64 }
|
|
704
704
|
}
|
|
705
705
|
}) {
|
|
706
|
-
var u, c,
|
|
707
|
-
const s = (x,
|
|
708
|
-
var
|
|
706
|
+
var u, c, f, v;
|
|
707
|
+
const s = (x, k) => {
|
|
708
|
+
var T, E, b, A;
|
|
709
709
|
return {
|
|
710
|
-
xs: (
|
|
711
|
-
md: (
|
|
710
|
+
xs: (E = (T = i.xs) == null ? void 0 : T[x]) != null ? E : k,
|
|
711
|
+
md: (A = (b = i.md) == null ? void 0 : b[x]) != null ? A : k
|
|
712
712
|
};
|
|
713
|
-
}, l = s("w", 186), d = s("h", 264), h = s("r", 22.6),
|
|
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(((
|
|
715
|
+
md: Math.round(((v = (f = i.md) == null ? void 0 : f.font) != null ? v : 64) * 0.28)
|
|
716
716
|
};
|
|
717
|
-
return /* @__PURE__ */
|
|
717
|
+
return /* @__PURE__ */ y(
|
|
718
718
|
z,
|
|
719
719
|
{
|
|
720
720
|
sx: {
|
|
@@ -751,7 +751,7 @@ function xa({
|
|
|
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 xa({
|
|
|
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",
|
|
@@ -804,15 +804,42 @@ function xa({
|
|
|
804
804
|
}
|
|
805
805
|
);
|
|
806
806
|
}
|
|
807
|
-
const
|
|
807
|
+
const Je = ({
|
|
808
808
|
logo: e,
|
|
809
809
|
provider: a,
|
|
810
810
|
providerName: n,
|
|
811
811
|
machine: r,
|
|
812
|
-
onClick: i
|
|
812
|
+
onClick: i,
|
|
813
|
+
loading: s = !1
|
|
813
814
|
}) => {
|
|
814
|
-
var
|
|
815
|
-
return /* @__PURE__ */
|
|
815
|
+
var l;
|
|
816
|
+
return s ? /* @__PURE__ */ t(
|
|
817
|
+
z,
|
|
818
|
+
{
|
|
819
|
+
sx: {
|
|
820
|
+
flex: "0 0 auto",
|
|
821
|
+
position: "relative",
|
|
822
|
+
borderRadius: "20px",
|
|
823
|
+
overflow: "hidden",
|
|
824
|
+
width: { xs: 100, md: 180 },
|
|
825
|
+
height: { xs: 200, md: 380 }
|
|
826
|
+
},
|
|
827
|
+
children: /* @__PURE__ */ t(
|
|
828
|
+
W,
|
|
829
|
+
{
|
|
830
|
+
variant: "rectangular",
|
|
831
|
+
width: "100%",
|
|
832
|
+
height: "100%",
|
|
833
|
+
sx: {
|
|
834
|
+
bgcolor: "rgba(255,255,255,0.10)",
|
|
835
|
+
"&::after": {
|
|
836
|
+
background: "linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent)"
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
)
|
|
841
|
+
}
|
|
842
|
+
) : /* @__PURE__ */ y(
|
|
816
843
|
z,
|
|
817
844
|
{
|
|
818
845
|
onClick: i,
|
|
@@ -875,7 +902,7 @@ const Sa = ({
|
|
|
875
902
|
fontSize: { xs: 11, md: 14 },
|
|
876
903
|
textTransform: "capitalize"
|
|
877
904
|
},
|
|
878
|
-
children: (
|
|
905
|
+
children: (l = a != null ? a : n) != null ? l : ""
|
|
879
906
|
}
|
|
880
907
|
)
|
|
881
908
|
}
|
|
@@ -883,8 +910,8 @@ const Sa = ({
|
|
|
883
910
|
]
|
|
884
911
|
}
|
|
885
912
|
);
|
|
886
|
-
},
|
|
887
|
-
|
|
913
|
+
}, ze = 12, Pe = ({ r: e = 16 }) => /* @__PURE__ */ t(z, { sx: { width: "100%", height: "100%", borderRadius: e, overflow: "hidden" }, children: /* @__PURE__ */ t(
|
|
914
|
+
W,
|
|
888
915
|
{
|
|
889
916
|
variant: "rectangular",
|
|
890
917
|
width: "100%",
|
|
@@ -898,7 +925,7 @@ const Sa = ({
|
|
|
898
925
|
}
|
|
899
926
|
}
|
|
900
927
|
}
|
|
901
|
-
) }),
|
|
928
|
+
) }), gt = ({
|
|
902
929
|
items: e,
|
|
903
930
|
layout: a = "grid",
|
|
904
931
|
onClick: n,
|
|
@@ -908,7 +935,7 @@ const Sa = ({
|
|
|
908
935
|
var s, l;
|
|
909
936
|
if (a === "mosaic") {
|
|
910
937
|
const d = e[0], h = e.slice(1, 5);
|
|
911
|
-
return /* @__PURE__ */
|
|
938
|
+
return /* @__PURE__ */ y(
|
|
912
939
|
z,
|
|
913
940
|
{
|
|
914
941
|
sx: {
|
|
@@ -926,8 +953,8 @@ const Sa = ({
|
|
|
926
953
|
xs: "104px",
|
|
927
954
|
md: "152px"
|
|
928
955
|
},
|
|
929
|
-
columnGap: `${
|
|
930
|
-
rowGap: `${
|
|
956
|
+
columnGap: `${ze}px`,
|
|
957
|
+
rowGap: `${ze}px`,
|
|
931
958
|
alignItems: "stretch",
|
|
932
959
|
justifyItems: "stretch"
|
|
933
960
|
},
|
|
@@ -942,7 +969,7 @@ const Sa = ({
|
|
|
942
969
|
overflow: "hidden",
|
|
943
970
|
borderRadius: 2
|
|
944
971
|
},
|
|
945
|
-
children: r ? /* @__PURE__ */ t(
|
|
972
|
+
children: r ? /* @__PURE__ */ t(Pe, {}) : d && /* @__PURE__ */ t(
|
|
946
973
|
Te,
|
|
947
974
|
{
|
|
948
975
|
imageUrl: `https://olimpo.bet${(l = (s = d.background) != null ? s : d.imageUrl) != null ? l : ""}`,
|
|
@@ -953,7 +980,7 @@ const Sa = ({
|
|
|
953
980
|
)
|
|
954
981
|
}
|
|
955
982
|
),
|
|
956
|
-
(r ? Array.from({ length: 4 }) : h).map((
|
|
983
|
+
(r ? Array.from({ length: 4 }) : h).map((g, m) => {
|
|
957
984
|
var u, c;
|
|
958
985
|
return /* @__PURE__ */ t(
|
|
959
986
|
z,
|
|
@@ -964,17 +991,17 @@ const Sa = ({
|
|
|
964
991
|
overflow: "hidden",
|
|
965
992
|
borderRadius: 2
|
|
966
993
|
},
|
|
967
|
-
children: r ? /* @__PURE__ */ t(
|
|
994
|
+
children: r ? /* @__PURE__ */ t(Pe, {}) : /* @__PURE__ */ t(
|
|
968
995
|
Te,
|
|
969
996
|
{
|
|
970
|
-
imageUrl: `https://olimpo.bet${(c = (u =
|
|
997
|
+
imageUrl: `https://olimpo.bet${(c = (u = g.background) != null ? u : g.imageUrl) != null ? c : ""}`,
|
|
971
998
|
size: "sm",
|
|
972
999
|
fillParent: !0,
|
|
973
|
-
onClick: () => n == null ? void 0 : n(
|
|
1000
|
+
onClick: () => n == null ? void 0 : n(g, m + 1)
|
|
974
1001
|
}
|
|
975
1002
|
)
|
|
976
1003
|
},
|
|
977
|
-
r ? `sk-${m}` :
|
|
1004
|
+
r ? `sk-${m}` : g.id
|
|
978
1005
|
);
|
|
979
1006
|
})
|
|
980
1007
|
]
|
|
@@ -994,19 +1021,19 @@ const Sa = ({
|
|
|
994
1021
|
xs: "repeat(2, 112px)",
|
|
995
1022
|
md: "repeat(2, 168px)"
|
|
996
1023
|
},
|
|
997
|
-
gap: `${
|
|
1024
|
+
gap: `${ze}px`,
|
|
998
1025
|
gridAutoFlow: "column"
|
|
999
1026
|
},
|
|
1000
1027
|
children: (r ? Array.from({ length: i }) : e).map((d, h) => {
|
|
1001
|
-
var
|
|
1028
|
+
var g, m, u;
|
|
1002
1029
|
return /* @__PURE__ */ t(
|
|
1003
1030
|
z,
|
|
1004
1031
|
{
|
|
1005
1032
|
sx: { overflow: "hidden", borderRadius: 2 },
|
|
1006
|
-
children: r ? /* @__PURE__ */ t(
|
|
1033
|
+
children: r ? /* @__PURE__ */ t(Pe, {}) : /* @__PURE__ */ t(
|
|
1007
1034
|
Te,
|
|
1008
1035
|
{
|
|
1009
|
-
imageUrl: `https://olimpo.bet${(m = (
|
|
1036
|
+
imageUrl: `https://olimpo.bet${(m = (g = d.background) != null ? g : d.imageUrl) != null ? m : ""}`,
|
|
1010
1037
|
size: "sm",
|
|
1011
1038
|
fillParent: !0,
|
|
1012
1039
|
onClick: () => n == null ? void 0 : n(d, h)
|
|
@@ -1018,7 +1045,7 @@ const Sa = ({
|
|
|
1018
1045
|
})
|
|
1019
1046
|
}
|
|
1020
1047
|
);
|
|
1021
|
-
},
|
|
1048
|
+
}, Xe = ({
|
|
1022
1049
|
title: e,
|
|
1023
1050
|
amount: a,
|
|
1024
1051
|
subtitle: n,
|
|
@@ -1029,8 +1056,8 @@ const Sa = ({
|
|
|
1029
1056
|
className: d = "",
|
|
1030
1057
|
variant: h = "small"
|
|
1031
1058
|
}) => {
|
|
1032
|
-
const
|
|
1033
|
-
return /* @__PURE__ */
|
|
1059
|
+
const g = a ? a.slice(0, 2) : "", m = a ? a.slice(2) : "", u = h === "large";
|
|
1060
|
+
return /* @__PURE__ */ y(
|
|
1034
1061
|
z,
|
|
1035
1062
|
{
|
|
1036
1063
|
className: d,
|
|
@@ -1091,7 +1118,7 @@ const Sa = ({
|
|
|
1091
1118
|
pl: "14%",
|
|
1092
1119
|
pr: { xs: "14%", lg: "15%" }
|
|
1093
1120
|
},
|
|
1094
|
-
children: /* @__PURE__ */
|
|
1121
|
+
children: /* @__PURE__ */ y(
|
|
1095
1122
|
z,
|
|
1096
1123
|
{
|
|
1097
1124
|
sx: {
|
|
@@ -1112,7 +1139,7 @@ const Sa = ({
|
|
|
1112
1139
|
children: e
|
|
1113
1140
|
}
|
|
1114
1141
|
),
|
|
1115
|
-
a && /* @__PURE__ */
|
|
1142
|
+
a && /* @__PURE__ */ y(
|
|
1116
1143
|
z,
|
|
1117
1144
|
{
|
|
1118
1145
|
component: "p",
|
|
@@ -1135,7 +1162,7 @@ const Sa = ({
|
|
|
1135
1162
|
{
|
|
1136
1163
|
component: "span",
|
|
1137
1164
|
sx: { fontSize: { xs: 35, md: 48 }, mr: 0.5 },
|
|
1138
|
-
children:
|
|
1165
|
+
children: g
|
|
1139
1166
|
}
|
|
1140
1167
|
),
|
|
1141
1168
|
/* @__PURE__ */ t(
|
|
@@ -1170,7 +1197,7 @@ const Sa = ({
|
|
|
1170
1197
|
]
|
|
1171
1198
|
}
|
|
1172
1199
|
);
|
|
1173
|
-
},
|
|
1200
|
+
}, Ia = ({
|
|
1174
1201
|
text: e,
|
|
1175
1202
|
buttonLabel: a = "Conoce más",
|
|
1176
1203
|
onClick: n,
|
|
@@ -1178,7 +1205,7 @@ const Sa = ({
|
|
|
1178
1205
|
imgSrcMobile: i,
|
|
1179
1206
|
imgSrcDesktopBg: s,
|
|
1180
1207
|
imgSrcDesktopLogo: l
|
|
1181
|
-
}) => /* @__PURE__ */
|
|
1208
|
+
}) => /* @__PURE__ */ y(pe, { children: [
|
|
1182
1209
|
/* @__PURE__ */ t("div", { className: "orc-co-bgMobile", children: /* @__PURE__ */ t(
|
|
1183
1210
|
"img",
|
|
1184
1211
|
{
|
|
@@ -1187,7 +1214,7 @@ const Sa = ({
|
|
|
1187
1214
|
className: "orc-co-bgMobileImg"
|
|
1188
1215
|
}
|
|
1189
1216
|
) }),
|
|
1190
|
-
/* @__PURE__ */ t("div", { className: "orc-co-bgDesktop", children: /* @__PURE__ */
|
|
1217
|
+
/* @__PURE__ */ t("div", { className: "orc-co-bgDesktop", children: /* @__PURE__ */ y("div", { className: "orc-co-desktopInner", children: [
|
|
1191
1218
|
s && /* @__PURE__ */ t("div", { className: "orc-co-fillHost", children: /* @__PURE__ */ t(
|
|
1192
1219
|
"img",
|
|
1193
1220
|
{
|
|
@@ -1196,7 +1223,7 @@ const Sa = ({
|
|
|
1196
1223
|
className: "orc-co-bgDesktopImg"
|
|
1197
1224
|
}
|
|
1198
1225
|
) }),
|
|
1199
|
-
/* @__PURE__ */
|
|
1226
|
+
/* @__PURE__ */ y("div", { className: "orc-co-desktopContent", children: [
|
|
1200
1227
|
l && /* @__PURE__ */ t(
|
|
1201
1228
|
"img",
|
|
1202
1229
|
{
|
|
@@ -1209,20 +1236,20 @@ const Sa = ({
|
|
|
1209
1236
|
/* @__PURE__ */ t(J, { onClick: n, variant: "primary", size: "md", children: a })
|
|
1210
1237
|
] })
|
|
1211
1238
|
] }) }),
|
|
1212
|
-
/* @__PURE__ */
|
|
1239
|
+
/* @__PURE__ */ y("div", { className: "orc-co-bottom", children: [
|
|
1213
1240
|
/* @__PURE__ */ t("p", { className: "orc-co-caption", children: e }),
|
|
1214
1241
|
/* @__PURE__ */ t(J, { onClick: n, variant: "primary", size: "md", children: a })
|
|
1215
1242
|
] })
|
|
1216
|
-
] }),
|
|
1217
|
-
card:
|
|
1218
|
-
combinadas:
|
|
1219
|
-
combinadasScroll:
|
|
1220
|
-
apuestaItem:
|
|
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
|
+
card: Oa,
|
|
1245
|
+
combinadas: Ea,
|
|
1246
|
+
combinadasScroll: Ca,
|
|
1247
|
+
apuestaItem: ka,
|
|
1221
1248
|
lineContainer: Ta,
|
|
1222
|
-
circle:
|
|
1249
|
+
circle: $a,
|
|
1223
1250
|
line: Na,
|
|
1224
|
-
apuestaText:
|
|
1225
|
-
cuotaTotal:
|
|
1251
|
+
apuestaText: Ma,
|
|
1252
|
+
cuotaTotal: Aa
|
|
1226
1253
|
};
|
|
1227
1254
|
function Ue(e, a) {
|
|
1228
1255
|
const n = Array.isArray(a) ? a : [a];
|
|
@@ -1231,13 +1258,13 @@ function Ue(e, a) {
|
|
|
1231
1258
|
function Ba() {
|
|
1232
1259
|
window.location.href = "/deportes#in-play";
|
|
1233
1260
|
}
|
|
1234
|
-
function
|
|
1261
|
+
function Ra() {
|
|
1235
1262
|
window.location.href = "/deportes#sports-hub/football";
|
|
1236
1263
|
}
|
|
1237
|
-
function
|
|
1264
|
+
function La() {
|
|
1238
1265
|
window.location.href = "/deportes#specials";
|
|
1239
1266
|
}
|
|
1240
|
-
async function
|
|
1267
|
+
async function ht(e) {
|
|
1241
1268
|
return await (await fetch("https://api.mktolimpo.com/api/jerseys/search", {
|
|
1242
1269
|
method: "POST",
|
|
1243
1270
|
headers: {
|
|
@@ -1248,47 +1275,47 @@ async function gt(e) {
|
|
|
1248
1275
|
})
|
|
1249
1276
|
})).json();
|
|
1250
1277
|
}
|
|
1251
|
-
const
|
|
1278
|
+
const bt = Mt(void 0), vt = ({ children: e, docId: a, moduleId: n }) => {
|
|
1252
1279
|
const r = fe.useMemo(() => ({ docId: a, moduleId: n }), [a, n]);
|
|
1253
|
-
return /* @__PURE__ */ t(
|
|
1254
|
-
},
|
|
1255
|
-
const e =
|
|
1280
|
+
return /* @__PURE__ */ t(bt.Provider, { value: r, children: e });
|
|
1281
|
+
}, _t = () => {
|
|
1282
|
+
const e = At(bt);
|
|
1256
1283
|
if (!e)
|
|
1257
1284
|
throw new Error("useDocContext debe usarse dentro de DocIdProvider");
|
|
1258
1285
|
return e;
|
|
1259
|
-
}, re = () =>
|
|
1260
|
-
function
|
|
1261
|
-
var
|
|
1286
|
+
}, re = () => _t().docId, le = () => _t().moduleId;
|
|
1287
|
+
function Fa({ coupon: e }) {
|
|
1288
|
+
var g;
|
|
1262
1289
|
const a = oe(), n = re();
|
|
1263
1290
|
function r(m) {
|
|
1264
|
-
var
|
|
1291
|
+
var f, v;
|
|
1265
1292
|
const u = [], c = Array.from(
|
|
1266
1293
|
new Map(
|
|
1267
|
-
((
|
|
1294
|
+
((f = m == null ? void 0 : m.events) != null ? f : []).filter(Boolean).map((x) => [x.id, x])
|
|
1268
1295
|
).values()
|
|
1269
1296
|
);
|
|
1270
1297
|
return c.forEach((x) => {
|
|
1271
|
-
var
|
|
1272
|
-
const
|
|
1273
|
-
|
|
1274
|
-
var
|
|
1275
|
-
if (!((
|
|
1276
|
-
const
|
|
1277
|
-
if (!
|
|
1298
|
+
var b;
|
|
1299
|
+
const k = (b = x.betoffers) != null ? b : [], T = x.homeName, E = x.awayName;
|
|
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
|
+
if (!w) return;
|
|
1278
1305
|
let S = "";
|
|
1279
|
-
const
|
|
1280
|
-
["Más de", "Mas de", "Over"].includes(
|
|
1281
|
-
id:
|
|
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
|
+
id: w.id,
|
|
1282
1309
|
value: S,
|
|
1283
|
-
label: (q = (
|
|
1284
|
-
odds: (M =
|
|
1285
|
-
position: (B =
|
|
1310
|
+
label: (q = (O = A.criterion) == null ? void 0 : O.label) != null ? q : "",
|
|
1311
|
+
odds: (M = w.odds) != null ? M : 0,
|
|
1312
|
+
position: (B = w.position) != null ? B : 0,
|
|
1286
1313
|
eventId: x.id
|
|
1287
1314
|
});
|
|
1288
1315
|
});
|
|
1289
1316
|
}), {
|
|
1290
|
-
outcomes: u.sort((x,
|
|
1291
|
-
total: Number((
|
|
1317
|
+
outcomes: u.sort((x, k) => x.position - k.position),
|
|
1318
|
+
total: Number((v = m == null ? void 0 : m.combinadoTotal) != null ? v : 0).toLocaleString("en-US", {
|
|
1292
1319
|
minimumFractionDigits: 2,
|
|
1293
1320
|
maximumFractionDigits: 2
|
|
1294
1321
|
}),
|
|
@@ -1302,23 +1329,23 @@ function La({ coupon: e }) {
|
|
|
1302
1329
|
if (u.length === 1)
|
|
1303
1330
|
return `/deportes#event/${u[0].id}`;
|
|
1304
1331
|
const c = u[0].groupId;
|
|
1305
|
-
if (u.every((
|
|
1306
|
-
const
|
|
1307
|
-
if (Array.isArray(
|
|
1308
|
-
return `/deportes#sports-hub/${
|
|
1332
|
+
if (u.every((v) => v.groupId === c)) {
|
|
1333
|
+
const v = u[0].path;
|
|
1334
|
+
if (Array.isArray(v) && v.length > 0)
|
|
1335
|
+
return `/deportes#sports-hub/${v.map((k) => k.termKey).filter(Boolean).join("/")}`;
|
|
1309
1336
|
}
|
|
1310
1337
|
return "/deportes#home";
|
|
1311
1338
|
}
|
|
1312
1339
|
const s = (m, u) => {
|
|
1313
|
-
const c = Array.isArray(m) ? m : [m],
|
|
1340
|
+
const c = Array.isArray(m) ? m : [m], f = Array.from(
|
|
1314
1341
|
new Set(
|
|
1315
|
-
l.outcomes.map((
|
|
1316
|
-
var
|
|
1317
|
-
const
|
|
1318
|
-
return (
|
|
1342
|
+
l.outcomes.map((k) => {
|
|
1343
|
+
var E;
|
|
1344
|
+
const T = h.get(Number(k.eventId));
|
|
1345
|
+
return (E = T == null ? void 0 : T.name) != null ? E : "";
|
|
1319
1346
|
})
|
|
1320
1347
|
)
|
|
1321
|
-
).filter(Boolean),
|
|
1348
|
+
).filter(Boolean), v = f.length > 0 ? f.join(" + ") : JSON.stringify(c), x = u ? `${v} - Cuota: ${u}` : v;
|
|
1322
1349
|
a({
|
|
1323
1350
|
element: "evento_semana_outcome",
|
|
1324
1351
|
label: `Landing: ${n} - OraculoEventCombinadasCard - Click: ${x}`,
|
|
@@ -1331,14 +1358,14 @@ function La({ coupon: e }) {
|
|
|
1331
1358
|
tags: { section: "OraculoEventCombinadasCard", outcomes: x }
|
|
1332
1359
|
}), Ue(i(e), m);
|
|
1333
1360
|
};
|
|
1334
|
-
if (!((
|
|
1361
|
+
if (!((g = e == null ? void 0 : e.events) != null && g.length)) return null;
|
|
1335
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(
|
|
1336
1363
|
l.events.map((m) => [m.id, m])
|
|
1337
1364
|
);
|
|
1338
|
-
return /* @__PURE__ */
|
|
1365
|
+
return /* @__PURE__ */ y("div", { className: ce.card, children: [
|
|
1339
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]) => {
|
|
1340
1367
|
const c = h.get(Number(m));
|
|
1341
|
-
return c ? /* @__PURE__ */
|
|
1368
|
+
return c ? /* @__PURE__ */ y(
|
|
1342
1369
|
H,
|
|
1343
1370
|
{
|
|
1344
1371
|
direction: "column",
|
|
@@ -1360,23 +1387,23 @@ function La({ coupon: e }) {
|
|
|
1360
1387
|
src: "/assets/img/home/Combinadas/line.png"
|
|
1361
1388
|
}
|
|
1362
1389
|
),
|
|
1363
|
-
u.map((
|
|
1364
|
-
/* @__PURE__ */
|
|
1390
|
+
u.map((f, v) => /* @__PURE__ */ y("div", { className: ce.apuestaItem, children: [
|
|
1391
|
+
/* @__PURE__ */ y("div", { className: ce.lineContainer, children: [
|
|
1365
1392
|
/* @__PURE__ */ t("div", { className: ce.circle }),
|
|
1366
|
-
|
|
1393
|
+
v < u.length - 1 && /* @__PURE__ */ t("div", { className: ce.line })
|
|
1367
1394
|
] }),
|
|
1368
|
-
/* @__PURE__ */
|
|
1369
|
-
/* @__PURE__ */ t("strong", { children:
|
|
1395
|
+
/* @__PURE__ */ y("div", { className: ce.apuestaText, children: [
|
|
1396
|
+
/* @__PURE__ */ t("strong", { children: f.value }),
|
|
1370
1397
|
" | ",
|
|
1371
|
-
|
|
1398
|
+
f.label
|
|
1372
1399
|
] })
|
|
1373
|
-
] }, `${m}-${
|
|
1400
|
+
] }, `${m}-${v}`))
|
|
1374
1401
|
]
|
|
1375
1402
|
},
|
|
1376
1403
|
m
|
|
1377
1404
|
) : null;
|
|
1378
1405
|
}) }) }) }),
|
|
1379
|
-
/* @__PURE__ */
|
|
1406
|
+
/* @__PURE__ */ y(
|
|
1380
1407
|
"button",
|
|
1381
1408
|
{
|
|
1382
1409
|
onClick: () => s(
|
|
@@ -1385,7 +1412,7 @@ function La({ coupon: e }) {
|
|
|
1385
1412
|
),
|
|
1386
1413
|
className: ce.cuotaTotal,
|
|
1387
1414
|
children: [
|
|
1388
|
-
/* @__PURE__ */
|
|
1415
|
+
/* @__PURE__ */ y("span", { children: [
|
|
1389
1416
|
"Cuota total: ",
|
|
1390
1417
|
/* @__PURE__ */ t("strong", { children: l.total })
|
|
1391
1418
|
] }),
|
|
@@ -1416,7 +1443,7 @@ const de = {
|
|
|
1416
1443
|
"orc-btn--full": "oraculo__OraculoButtonBet-module__orc-btn--full___z-Myo",
|
|
1417
1444
|
"orc-btn--fullHeight": "oraculo__OraculoButtonBet-module__orc-btn--fullHeight___pCxq1"
|
|
1418
1445
|
};
|
|
1419
|
-
function
|
|
1446
|
+
function qa({
|
|
1420
1447
|
children: e,
|
|
1421
1448
|
onClick: a,
|
|
1422
1449
|
href: n,
|
|
@@ -1426,41 +1453,41 @@ function Fa({
|
|
|
1426
1453
|
disabled: l = !1,
|
|
1427
1454
|
variant: d = "primary",
|
|
1428
1455
|
size: h,
|
|
1429
|
-
fullWidth:
|
|
1456
|
+
fullWidth: g = !1,
|
|
1430
1457
|
fullHeight: m = !1,
|
|
1431
1458
|
className: u = "",
|
|
1432
1459
|
ariaLabel: c,
|
|
1433
|
-
leftIcon:
|
|
1434
|
-
rightIcon:
|
|
1460
|
+
leftIcon: f,
|
|
1461
|
+
rightIcon: v,
|
|
1435
1462
|
iconOnly: x
|
|
1436
1463
|
}) {
|
|
1437
|
-
const
|
|
1464
|
+
const k = !!e && e !== !0, b = (!!f ? 1 : 0) + (!!v ? 1 : 0) == 1, A = x != null ? x : b && !k, w = [
|
|
1438
1465
|
de["orc-btn"],
|
|
1439
1466
|
// base
|
|
1440
1467
|
de[`orc-btn--${d}`],
|
|
1441
1468
|
// variant primary/secondary/tertiary
|
|
1442
1469
|
h ? de[`orc-btn--${h}`] : "",
|
|
1443
1470
|
// sm / md / lg
|
|
1444
|
-
|
|
1471
|
+
g ? de["orc-btn--full"] : "",
|
|
1445
1472
|
m ? de["orc-btn--fullHeight"] : "",
|
|
1446
|
-
|
|
1473
|
+
A ? de["orc-btn--iconOnly"] : "",
|
|
1447
1474
|
u
|
|
1448
|
-
].filter(Boolean).join(" "), S = /* @__PURE__ */
|
|
1449
|
-
|
|
1450
|
-
!
|
|
1451
|
-
|
|
1452
|
-
] }),
|
|
1475
|
+
].filter(Boolean).join(" "), S = /* @__PURE__ */ y(pe, { children: [
|
|
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
|
+
v && /* @__PURE__ */ t("span", { className: de["orc-btn__icon"], children: v })
|
|
1479
|
+
] }), L = l ? !0 : void 0;
|
|
1453
1480
|
return n ? /* @__PURE__ */ t(
|
|
1454
|
-
|
|
1481
|
+
st,
|
|
1455
1482
|
{
|
|
1456
1483
|
href: n,
|
|
1457
1484
|
target: r,
|
|
1458
1485
|
rel: i,
|
|
1459
1486
|
"aria-label": c,
|
|
1460
|
-
"aria-disabled":
|
|
1461
|
-
tabIndex:
|
|
1462
|
-
className:
|
|
1463
|
-
onClick:
|
|
1487
|
+
"aria-disabled": L,
|
|
1488
|
+
tabIndex: L ? -1 : void 0,
|
|
1489
|
+
className: w,
|
|
1490
|
+
onClick: L ? (F) => F.preventDefault() : a,
|
|
1464
1491
|
children: S
|
|
1465
1492
|
}
|
|
1466
1493
|
) : /* @__PURE__ */ t(
|
|
@@ -1468,44 +1495,44 @@ function Fa({
|
|
|
1468
1495
|
{
|
|
1469
1496
|
type: s,
|
|
1470
1497
|
onClick: a,
|
|
1471
|
-
disabled: !!
|
|
1498
|
+
disabled: !!L,
|
|
1472
1499
|
"aria-label": c,
|
|
1473
|
-
className:
|
|
1500
|
+
className: w,
|
|
1474
1501
|
children: S
|
|
1475
1502
|
}
|
|
1476
1503
|
);
|
|
1477
1504
|
}
|
|
1478
|
-
const
|
|
1479
|
-
cardWrapper:
|
|
1480
|
-
customButtonLabel:
|
|
1481
|
-
customButtonDisabled:
|
|
1482
|
-
},
|
|
1505
|
+
const za = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", Pa = "oraculo__OraculoEventEnVivoCard-module__customButtonLabel___QRhk7", Da = "oraculo__OraculoEventEnVivoCard-module__customButtonDisabled___jwioF", $e = {
|
|
1506
|
+
cardWrapper: za,
|
|
1507
|
+
customButtonLabel: Pa,
|
|
1508
|
+
customButtonDisabled: Da
|
|
1509
|
+
}, Ye = {
|
|
1483
1510
|
base: "FFFFFF",
|
|
1484
1511
|
sleeve: "FFFFFF",
|
|
1485
1512
|
number: "000000",
|
|
1486
1513
|
real: !1,
|
|
1487
1514
|
type: "short_sleeves"
|
|
1488
|
-
},
|
|
1515
|
+
}, Qe = {
|
|
1489
1516
|
base: "000000",
|
|
1490
1517
|
sleeve: "000000",
|
|
1491
1518
|
number: "FFFFFF",
|
|
1492
1519
|
real: !1,
|
|
1493
1520
|
type: "short_sleeves"
|
|
1494
|
-
},
|
|
1521
|
+
}, Ae = (e, a, n = "player") => {
|
|
1495
1522
|
var i, s;
|
|
1496
1523
|
if (e === void 0)
|
|
1497
1524
|
return null;
|
|
1498
1525
|
if (e === null)
|
|
1499
|
-
return a === "home" ?
|
|
1526
|
+
return a === "home" ? Ye : Qe;
|
|
1500
1527
|
const r = (s = (i = e == null ? void 0 : e.jerseys) == null ? void 0 : i[a]) == null ? void 0 : s[n];
|
|
1501
|
-
return r || (a === "home" ?
|
|
1528
|
+
return r || (a === "home" ? Ye : Qe);
|
|
1502
1529
|
};
|
|
1503
|
-
function
|
|
1504
|
-
var d, h,
|
|
1530
|
+
function Ua({ event: e, liveData: a, betOffers: n, jersey: r }) {
|
|
1531
|
+
var d, h, g, m, u, c, f, v, x, k, T;
|
|
1505
1532
|
const i = n == null ? void 0 : n.find(
|
|
1506
|
-
(
|
|
1507
|
-
var
|
|
1508
|
-
return ((
|
|
1533
|
+
(E) => {
|
|
1534
|
+
var b;
|
|
1535
|
+
return ((b = E.betOfferType) == null ? void 0 : b.id) === 2;
|
|
1509
1536
|
}
|
|
1510
1537
|
), s = {
|
|
1511
1538
|
englishLabel: "",
|
|
@@ -1521,86 +1548,98 @@ function Da({ event: e, liveData: a, betOffers: n, jersey: r }) {
|
|
|
1521
1548
|
{ ...s, id: -2, label: "X", odds: void 0 },
|
|
1522
1549
|
{ ...s, id: -3, label: "2", odds: void 0 }
|
|
1523
1550
|
];
|
|
1524
|
-
return /* @__PURE__ */ t("div", { className:
|
|
1525
|
-
/* @__PURE__ */
|
|
1551
|
+
return /* @__PURE__ */ t("div", { className: $e.cardWrapper, children: /* @__PURE__ */ y(H, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1552
|
+
/* @__PURE__ */ y(H, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
1526
1553
|
/* @__PURE__ */ t(
|
|
1527
|
-
|
|
1554
|
+
Zt,
|
|
1528
1555
|
{
|
|
1529
|
-
title: (
|
|
1556
|
+
title: (g = (h = (d = e == null ? void 0 : e.path) == null ? void 0 : d[0]) == null ? void 0 : h.name) != null ? g : "",
|
|
1530
1557
|
subtitle: (m = e == null ? void 0 : e.group) != null ? m : "",
|
|
1531
1558
|
live: !0,
|
|
1532
1559
|
time: ((u = a == null ? void 0 : a.matchClock) == null ? void 0 : u.minute) != null ? `${a.matchClock.minute}'` : ""
|
|
1533
1560
|
}
|
|
1534
1561
|
),
|
|
1535
|
-
/* @__PURE__ */ t("div", { style: { padding: "0 4px" }, children: /* @__PURE__ */
|
|
1536
|
-
/* @__PURE__ */ t(
|
|
1537
|
-
/* @__PURE__ */ t(
|
|
1538
|
-
/* @__PURE__ */ t(
|
|
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: 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") })
|
|
1539
1566
|
] }) })
|
|
1540
1567
|
] }),
|
|
1541
|
-
/* @__PURE__ */
|
|
1542
|
-
/* @__PURE__ */ t(me, { spacing: 1, children: ((
|
|
1543
|
-
/* @__PURE__ */ t(me, { spacing: 2, children: ((
|
|
1544
|
-
Ue("/deportes#event/live/" + e.id,
|
|
1545
|
-
}, className:
|
|
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 : 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
|
+
Ue("/deportes#event/live/" + e.id, E.id);
|
|
1572
|
+
}, className: $e.customButtonDisabled, children: /* @__PURE__ */ t("span", { className: $e.customButtonLabel, children: E.odds === void 0 ? "" : (E.odds / 1e3).toFixed(2) }) }, b)) })
|
|
1546
1573
|
] })
|
|
1547
1574
|
] }) });
|
|
1548
1575
|
}
|
|
1549
|
-
const
|
|
1550
|
-
date:
|
|
1576
|
+
const Va = "oraculo__OraculoEventDate-module__date___xhIlh", Wa = {
|
|
1577
|
+
date: Va
|
|
1551
1578
|
};
|
|
1552
|
-
function
|
|
1553
|
-
return /* @__PURE__ */ t("div", { className: `oli-font ${
|
|
1579
|
+
function Ga({ text: e }) {
|
|
1580
|
+
return /* @__PURE__ */ t("div", { className: `oli-font ${Wa.date}`, children: e });
|
|
1554
1581
|
}
|
|
1555
|
-
const
|
|
1556
|
-
cardContainer:
|
|
1557
|
-
cardBackground:
|
|
1558
|
-
jugadas:
|
|
1559
|
-
equipos:
|
|
1582
|
+
const ja = "oraculo__OraculoEventSemanaCard-module__cardContainer___4JuDe", Ha = "oraculo__OraculoEventSemanaCard-module__cardBackground___vfalD", Ka = "oraculo__OraculoEventSemanaCard-module__jugadas___W8b7H", Za = "oraculo__OraculoEventSemanaCard-module__equipos___G5hLn", be = {
|
|
1583
|
+
cardContainer: ja,
|
|
1584
|
+
cardBackground: Ha,
|
|
1585
|
+
jugadas: Ka,
|
|
1586
|
+
equipos: Za
|
|
1560
1587
|
};
|
|
1561
|
-
function
|
|
1562
|
-
var l, d, h,
|
|
1588
|
+
function Ja({ event: e, jersey: a }) {
|
|
1589
|
+
var l, d, h, g, m, u, c;
|
|
1563
1590
|
const n = oe(), r = re();
|
|
1564
|
-
function i(
|
|
1565
|
-
const
|
|
1566
|
-
let
|
|
1567
|
-
return
|
|
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
|
+
let E = v.toLocaleTimeString("es-PE", { hour: "numeric", minute: "2-digit", hour12: !0 }).toUpperCase();
|
|
1594
|
+
return E = E.replace(/\./g, "").replace(/A\s*M/i, "AM").replace(/P\s*M/i, "PM"), `${x} ${k}/${T} | ${E}`;
|
|
1568
1595
|
}
|
|
1569
|
-
const s = (
|
|
1570
|
-
const x = `${e.homeName} vs ${e.awayName}`,
|
|
1596
|
+
const s = (f, v) => {
|
|
1597
|
+
const x = `${e.homeName} vs ${e.awayName}`, k = v ? (v / 1e3).toFixed(2) : "", T = k ? `${x} - Cuota: ${k}` : x;
|
|
1571
1598
|
n({
|
|
1572
1599
|
element: "evento_semana_outcome",
|
|
1573
|
-
label: `Landing: ${r} - OraculoEventSemanaCard - Click: ${
|
|
1600
|
+
label: `Landing: ${r} - OraculoEventSemanaCard - Click: ${T}`,
|
|
1574
1601
|
target: "/deportes#in-play",
|
|
1575
1602
|
event_type: "click",
|
|
1576
1603
|
module_id: 301,
|
|
1577
1604
|
metadata: {
|
|
1578
1605
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1579
1606
|
},
|
|
1580
|
-
tags: { section: "OraculoEventSemanaCard", outcomes:
|
|
1581
|
-
}), Ue("/deportes#event/" + e.id,
|
|
1607
|
+
tags: { section: "OraculoEventSemanaCard", outcomes: T }
|
|
1608
|
+
}), Ue("/deportes#event/" + e.id, f);
|
|
1582
1609
|
};
|
|
1583
|
-
return /* @__PURE__ */
|
|
1584
|
-
/* @__PURE__ */ t(
|
|
1585
|
-
/* @__PURE__ */ t("div", { className: be.cardBackground, children: /* @__PURE__ */
|
|
1586
|
-
/* @__PURE__ */
|
|
1587
|
-
/* @__PURE__ */
|
|
1588
|
-
/* @__PURE__ */ t(
|
|
1589
|
-
/* @__PURE__ */ t(
|
|
1590
|
-
/* @__PURE__ */ t(
|
|
1610
|
+
return /* @__PURE__ */ y("div", { className: be.cardContainer, children: [
|
|
1611
|
+
/* @__PURE__ */ t(pt, { title: (l = e == null ? void 0 : e.group) != null ? l : "" }),
|
|
1612
|
+
/* @__PURE__ */ t("div", { className: be.cardBackground, children: /* @__PURE__ */ y(H, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
1613
|
+
/* @__PURE__ */ y(H, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1614
|
+
/* @__PURE__ */ y("div", { className: be.equipos, children: [
|
|
1615
|
+
/* @__PURE__ */ t(Me, { name: e.homeName, size: "compact", jersey: Ae(a, "home") }),
|
|
1616
|
+
/* @__PURE__ */ t(ft, { text: "vs.", name: "", size: "small" }),
|
|
1617
|
+
/* @__PURE__ */ t(Me, { name: e.awayName, size: "compact", jersey: Ae(a, "away") })
|
|
1591
1618
|
] }),
|
|
1592
|
-
/* @__PURE__ */ t(
|
|
1619
|
+
/* @__PURE__ */ t(Ga, { text: i(e.start) })
|
|
1593
1620
|
] }),
|
|
1594
|
-
/* @__PURE__ */
|
|
1595
|
-
/* @__PURE__ */ t(me, { spacing: 1, children: ((
|
|
1596
|
-
/* @__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((
|
|
1597
|
-
s(
|
|
1598
|
-
}, children: (
|
|
1621
|
+
/* @__PURE__ */ y(H, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, 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)) }) })
|
|
1599
1626
|
] })
|
|
1600
1627
|
] }) })
|
|
1601
1628
|
] });
|
|
1602
1629
|
}
|
|
1603
|
-
|
|
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({
|
|
1604
1643
|
items: e,
|
|
1605
1644
|
title: a = "Destacados",
|
|
1606
1645
|
iconUrl: n = "https://d28gilnhu2bcbp.cloudfront.net/landing/1770307276612-lonuevo.webp",
|
|
@@ -1609,8 +1648,8 @@ function Ja({
|
|
|
1609
1648
|
className: s = "",
|
|
1610
1649
|
paddingMobile: l = "24px"
|
|
1611
1650
|
}) {
|
|
1612
|
-
var
|
|
1613
|
-
const d = U(null), [h,
|
|
1651
|
+
var w;
|
|
1652
|
+
const d = U(null), [h, g] = Z({ isStart: !0, isEnd: !1 }), m = oe(), u = re(), c = le(), f = !e || e.length === 0, v = () => {
|
|
1614
1653
|
var S;
|
|
1615
1654
|
m({
|
|
1616
1655
|
element: "destacados_carousel_prev",
|
|
@@ -1636,7 +1675,7 @@ function Ja({
|
|
|
1636
1675
|
},
|
|
1637
1676
|
tags: { section: "OraculoSeccionDestacados" }
|
|
1638
1677
|
}), (S = d.current) == null || S.next();
|
|
1639
|
-
},
|
|
1678
|
+
}, k = () => {
|
|
1640
1679
|
m({
|
|
1641
1680
|
element: "destacados_view_more",
|
|
1642
1681
|
label: `${u} - OraculoSeccionDestacados - Ver más`,
|
|
@@ -1648,20 +1687,20 @@ function Ja({
|
|
|
1648
1687
|
},
|
|
1649
1688
|
tags: { section: "OraculoSeccionDestacados" }
|
|
1650
1689
|
}), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/promociones");
|
|
1651
|
-
},
|
|
1690
|
+
}, T = s || void 0, E = xe("(max-width:950px)"), b = (w = e == null ? void 0 : e.length) != null ? w : 0;
|
|
1652
1691
|
Q(() => {
|
|
1653
|
-
if (
|
|
1654
|
-
|
|
1692
|
+
if (b === 0) {
|
|
1693
|
+
g({ isStart: !0, isEnd: !0 });
|
|
1655
1694
|
return;
|
|
1656
1695
|
}
|
|
1657
|
-
|
|
1658
|
-
}, [
|
|
1659
|
-
const
|
|
1660
|
-
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)}` : "";
|
|
1661
1700
|
if (m({
|
|
1662
1701
|
element: "destacados_card",
|
|
1663
|
-
label: `${u} - OraculoSeccionDestacados - Click: ${
|
|
1664
|
-
target:
|
|
1702
|
+
label: `${u} - OraculoSeccionDestacados - Click: ${L || S.title}`,
|
|
1703
|
+
target: F || "custom_item_action",
|
|
1665
1704
|
event_type: "click",
|
|
1666
1705
|
module_id: c,
|
|
1667
1706
|
metadata: {
|
|
@@ -1669,16 +1708,16 @@ function Ja({
|
|
|
1669
1708
|
},
|
|
1670
1709
|
tags: {
|
|
1671
1710
|
section: "OraculoSeccionDestacados",
|
|
1672
|
-
promotion: String(
|
|
1711
|
+
promotion: String(L || "")
|
|
1673
1712
|
}
|
|
1674
1713
|
}), i) {
|
|
1675
1714
|
i(S);
|
|
1676
1715
|
return;
|
|
1677
1716
|
}
|
|
1678
|
-
|
|
1717
|
+
F && typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(F);
|
|
1679
1718
|
};
|
|
1680
|
-
return /* @__PURE__ */
|
|
1681
|
-
/* @__PURE__ */
|
|
1719
|
+
return /* @__PURE__ */ y("section", { className: T, style: { width: "100%" }, children: [
|
|
1720
|
+
/* @__PURE__ */ y(
|
|
1682
1721
|
"header",
|
|
1683
1722
|
{
|
|
1684
1723
|
style: {
|
|
@@ -1688,21 +1727,21 @@ function Ja({
|
|
|
1688
1727
|
columnGap: 12,
|
|
1689
1728
|
rowGap: 8,
|
|
1690
1729
|
marginBottom: 16,
|
|
1691
|
-
paddingLeft:
|
|
1692
|
-
paddingRight:
|
|
1730
|
+
paddingLeft: E ? l : 0,
|
|
1731
|
+
paddingRight: E ? l : 0
|
|
1693
1732
|
},
|
|
1694
1733
|
children: [
|
|
1695
1734
|
/* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
|
|
1696
|
-
/* @__PURE__ */
|
|
1735
|
+
/* @__PURE__ */ y("div", { style: { display: "flex", gap: 8 }, children: [
|
|
1697
1736
|
/* @__PURE__ */ t(
|
|
1698
1737
|
J,
|
|
1699
1738
|
{
|
|
1700
1739
|
ariaLabel: "Anterior",
|
|
1701
1740
|
variant: "secondary",
|
|
1702
1741
|
iconOnly: !0,
|
|
1703
|
-
leftIcon: /* @__PURE__ */ t(
|
|
1704
|
-
onClick:
|
|
1705
|
-
disabled: h.isStart ||
|
|
1742
|
+
leftIcon: /* @__PURE__ */ t(Re, {}),
|
|
1743
|
+
onClick: v,
|
|
1744
|
+
disabled: h.isStart || f
|
|
1706
1745
|
}
|
|
1707
1746
|
),
|
|
1708
1747
|
/* @__PURE__ */ t(
|
|
@@ -1711,13 +1750,13 @@ function Ja({
|
|
|
1711
1750
|
ariaLabel: "Siguiente",
|
|
1712
1751
|
variant: "secondary",
|
|
1713
1752
|
iconOnly: !0,
|
|
1714
|
-
rightIcon: /* @__PURE__ */ t(
|
|
1753
|
+
rightIcon: /* @__PURE__ */ t(Le, {}),
|
|
1715
1754
|
onClick: x,
|
|
1716
|
-
disabled: h.isEnd ||
|
|
1755
|
+
disabled: h.isEnd || f
|
|
1717
1756
|
}
|
|
1718
1757
|
)
|
|
1719
1758
|
] }),
|
|
1720
|
-
/* @__PURE__ */ t(J, { variant: "secondary", onClick:
|
|
1759
|
+
/* @__PURE__ */ t(J, { variant: "secondary", onClick: k, children: "Ver más" })
|
|
1721
1760
|
]
|
|
1722
1761
|
}
|
|
1723
1762
|
),
|
|
@@ -1725,43 +1764,60 @@ function Ja({
|
|
|
1725
1764
|
he,
|
|
1726
1765
|
{
|
|
1727
1766
|
ref: d,
|
|
1728
|
-
items: e,
|
|
1767
|
+
items: f ? Xa() : e,
|
|
1729
1768
|
perPage: void 0,
|
|
1730
1769
|
gap: "16px",
|
|
1731
1770
|
enableHorizontalWheel: !0,
|
|
1732
|
-
showRightGradient: !
|
|
1771
|
+
showRightGradient: !E,
|
|
1733
1772
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
1734
1773
|
breakpoints: {
|
|
1735
1774
|
768: { perPage: 2, focus: "start", padding: { left: l, right: l } },
|
|
1736
1775
|
1024: { perPage: 2.5, focus: "start", padding: { left: "24px", right: "24px" } }
|
|
1737
1776
|
},
|
|
1738
|
-
renderItem: (S) =>
|
|
1739
|
-
"
|
|
1740
|
-
{
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
style: {
|
|
1752
|
-
width: "100%",
|
|
1753
|
-
height: typeof window != "undefined" && window.innerWidth < 768 ? "80px" : "137px",
|
|
1754
|
-
borderRadius: 8,
|
|
1755
|
-
display: "block",
|
|
1756
|
-
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)"
|
|
1757
1790
|
}
|
|
1758
1791
|
}
|
|
1759
|
-
|
|
1760
|
-
},
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
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({
|
|
1765
1821
|
element: "destacados_carousel_slide",
|
|
1766
1822
|
label: `${u} - OraculoSeccionDestacados - Slide Carousel`,
|
|
1767
1823
|
target: "carousel",
|
|
@@ -1770,7 +1826,7 @@ function Ja({
|
|
|
1770
1826
|
metadata: {
|
|
1771
1827
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
1772
1828
|
isStart: S,
|
|
1773
|
-
isEnd:
|
|
1829
|
+
isEnd: L
|
|
1774
1830
|
},
|
|
1775
1831
|
tags: { section: "OraculoSeccionDestacados" }
|
|
1776
1832
|
});
|
|
@@ -1780,21 +1836,21 @@ function Ja({
|
|
|
1780
1836
|
] });
|
|
1781
1837
|
}
|
|
1782
1838
|
const Ne = "__ORACULO_EXTRAS__";
|
|
1783
|
-
function
|
|
1839
|
+
function yt() {
|
|
1784
1840
|
const e = globalThis;
|
|
1785
1841
|
return e[Ne] || (e[Ne] = {}), e[Ne];
|
|
1786
1842
|
}
|
|
1787
|
-
function
|
|
1788
|
-
|
|
1843
|
+
function Qa(e) {
|
|
1844
|
+
yt().extras = e;
|
|
1789
1845
|
}
|
|
1790
1846
|
function se(e) {
|
|
1791
1847
|
var a;
|
|
1792
|
-
return (a =
|
|
1848
|
+
return (a = yt().extras) == null ? void 0 : a[e];
|
|
1793
1849
|
}
|
|
1794
|
-
function
|
|
1850
|
+
function en() {
|
|
1795
1851
|
delete globalThis[Ne];
|
|
1796
1852
|
}
|
|
1797
|
-
function
|
|
1853
|
+
function tn({
|
|
1798
1854
|
items: e,
|
|
1799
1855
|
title: a = "Top Juegos",
|
|
1800
1856
|
iconUrl: n,
|
|
@@ -1802,15 +1858,15 @@ function Qa({
|
|
|
1802
1858
|
}) {
|
|
1803
1859
|
const i = oe(), s = re(), l = le(), d = ie(
|
|
1804
1860
|
() => (e != null ? e : []).map((u, c) => {
|
|
1805
|
-
var
|
|
1861
|
+
var f;
|
|
1806
1862
|
return {
|
|
1807
1863
|
...u,
|
|
1808
|
-
orden: (
|
|
1864
|
+
orden: (f = u.orden) != null ? f : c + 1,
|
|
1809
1865
|
_originalIndex: c
|
|
1810
1866
|
};
|
|
1811
1867
|
}).sort((u, c) => u.orden != null && c.orden != null ? u.orden - c.orden : u._originalIndex - c._originalIndex),
|
|
1812
1868
|
[e]
|
|
1813
|
-
), h = !e || e.length === 0,
|
|
1869
|
+
), h = !e || e.length === 0, g = h ? Array.from({ length: 6 }) : d.slice(0, 6), m = (u) => {
|
|
1814
1870
|
i({
|
|
1815
1871
|
element: "top_juegos_card",
|
|
1816
1872
|
label: `${s} - OraculoSeccionTopJuegos - Open game: ${String(u.machine || "unknown")}`,
|
|
@@ -1825,12 +1881,12 @@ function Qa({
|
|
|
1825
1881
|
section: "OraculoSeccionTopJuegos"
|
|
1826
1882
|
}
|
|
1827
1883
|
});
|
|
1828
|
-
const c = se("showIframe"),
|
|
1884
|
+
const c = se("showIframe"), f = se("loadMachine");
|
|
1829
1885
|
c == null || c(), requestAnimationFrame(() => {
|
|
1830
|
-
|
|
1886
|
+
f == null || f(u, !1, "CASINO");
|
|
1831
1887
|
});
|
|
1832
1888
|
};
|
|
1833
|
-
return /* @__PURE__ */ t("section", { style: { width: "100%" }, children: /* @__PURE__ */
|
|
1889
|
+
return /* @__PURE__ */ t("section", { style: { width: "100%" }, children: /* @__PURE__ */ y(H, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
1834
1890
|
/* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
|
|
1835
1891
|
/* @__PURE__ */ t(
|
|
1836
1892
|
z,
|
|
@@ -1845,27 +1901,27 @@ function Qa({
|
|
|
1845
1901
|
justifyItems: "center",
|
|
1846
1902
|
width: "100%"
|
|
1847
1903
|
},
|
|
1848
|
-
children:
|
|
1849
|
-
var
|
|
1904
|
+
children: g.map((u, c) => {
|
|
1905
|
+
var f, v;
|
|
1850
1906
|
return /* @__PURE__ */ t(
|
|
1851
|
-
|
|
1907
|
+
wa,
|
|
1852
1908
|
{
|
|
1853
|
-
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 : ""}`,
|
|
1854
1910
|
orden: h ? c + 1 : u.orden,
|
|
1855
1911
|
loading: h,
|
|
1856
1912
|
onClick: h ? void 0 : () => {
|
|
1857
1913
|
r == null || r(u), m(u);
|
|
1858
1914
|
}
|
|
1859
1915
|
},
|
|
1860
|
-
h ? `sk-${c}` : (
|
|
1916
|
+
h ? `sk-${c}` : (v = u.machine) != null ? v : `${c}`
|
|
1861
1917
|
);
|
|
1862
1918
|
})
|
|
1863
1919
|
}
|
|
1864
1920
|
)
|
|
1865
1921
|
] }) });
|
|
1866
1922
|
}
|
|
1867
|
-
const
|
|
1868
|
-
var n, r, i, s, l, d, h,
|
|
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;
|
|
1869
1925
|
return {
|
|
1870
1926
|
orden: Number(a),
|
|
1871
1927
|
machine: String(
|
|
@@ -1877,23 +1933,23 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1877
1933
|
provider: (l = e.service) != null ? l : "",
|
|
1878
1934
|
sub_provider: (d = e.service) != null ? d : "",
|
|
1879
1935
|
external_id: (h = e.external_id) != null ? h : "",
|
|
1880
|
-
type: (
|
|
1936
|
+
type: (g = e.game_type) != null ? g : "",
|
|
1881
1937
|
tags: (m = e.tags) != null ? m : "",
|
|
1882
1938
|
lobby_tag: (u = e.lobby_tag) != null ? u : null,
|
|
1883
1939
|
background: (c = e.background) != null ? c : "",
|
|
1884
|
-
rtp: (
|
|
1885
|
-
demo_allowed: (
|
|
1940
|
+
rtp: (f = e.rtp) != null ? f : null,
|
|
1941
|
+
demo_allowed: (v = e.demo_allowed) != null ? v : !1,
|
|
1886
1942
|
gaming_session_required: (x = e.gaming_session_required) != null ? x : !1
|
|
1887
1943
|
};
|
|
1888
|
-
},
|
|
1944
|
+
}, on = (e) => e ? !Array.isArray(e) && Array.isArray(e.recommendations) ? e.recommendations.filter(Boolean).map((a) => String(a)) : [] : [], xt = () => {
|
|
1889
1945
|
var a, n, r;
|
|
1890
1946
|
const e = se("user");
|
|
1891
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;
|
|
1892
|
-
},
|
|
1893
|
-
const a =
|
|
1948
|
+
}, rn = async (e) => {
|
|
1949
|
+
const a = xt(), n = new URLSearchParams({
|
|
1894
1950
|
userId: String(a),
|
|
1895
1951
|
productType: e
|
|
1896
|
-
}), r = `${
|
|
1952
|
+
}), r = `${an}?${n.toString()}`, i = await fetch(r);
|
|
1897
1953
|
if (!i.ok)
|
|
1898
1954
|
throw new Error(
|
|
1899
1955
|
`No se pudo obtener recomendaciones. HTTP ${i.status} ${i.statusText}`
|
|
@@ -1903,7 +1959,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1903
1959
|
...s,
|
|
1904
1960
|
recommendations: Array.isArray(s == null ? void 0 : s.recommendations) ? s.recommendations.slice(0, 49) : []
|
|
1905
1961
|
};
|
|
1906
|
-
},
|
|
1962
|
+
}, sn = async (e, a) => {
|
|
1907
1963
|
const n = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/ranking", r = JSON.stringify({
|
|
1908
1964
|
userId: String(e),
|
|
1909
1965
|
items: a
|
|
@@ -1928,33 +1984,33 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1928
1984
|
}
|
|
1929
1985
|
l(!0);
|
|
1930
1986
|
try {
|
|
1931
|
-
const
|
|
1987
|
+
const g = await rn(n), m = on(g);
|
|
1932
1988
|
if (!m.length) {
|
|
1933
1989
|
d || i([]);
|
|
1934
1990
|
return;
|
|
1935
1991
|
}
|
|
1936
|
-
const u =
|
|
1937
|
-
|
|
1938
|
-
const
|
|
1939
|
-
if (!
|
|
1940
|
-
throw new Error(`No se pudo obtener machine ${
|
|
1941
|
-
const
|
|
1942
|
-
return
|
|
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) => {
|
|
1994
|
+
const b = await fetch(`https://api.mktolimpo.com/api/machine/${T}`);
|
|
1995
|
+
if (!b.ok)
|
|
1996
|
+
throw new Error(`No se pudo obtener machine ${T}`);
|
|
1997
|
+
const A = await b.json();
|
|
1998
|
+
return nn(A, E);
|
|
1943
1999
|
})
|
|
1944
2000
|
);
|
|
1945
2001
|
if (d) return;
|
|
1946
|
-
const x =
|
|
1947
|
-
(
|
|
1948
|
-
).map((
|
|
1949
|
-
const
|
|
1950
|
-
return
|
|
1951
|
-
}).filter(Boolean).sort((
|
|
1952
|
-
var
|
|
1953
|
-
return ((
|
|
2002
|
+
const x = v.filter(
|
|
2003
|
+
(T) => T.status === "fulfilled"
|
|
2004
|
+
).map((T) => T.value), k = c.map((T) => {
|
|
2005
|
+
const E = x.find((b) => b.machine === T.itemId);
|
|
2006
|
+
return E ? { ...E, score: T.score } : null;
|
|
2007
|
+
}).filter(Boolean).sort((T, E) => {
|
|
2008
|
+
var b, A;
|
|
2009
|
+
return ((b = E.score) != null ? b : 0) - ((A = T.score) != null ? A : 0);
|
|
1954
2010
|
});
|
|
1955
|
-
i(
|
|
1956
|
-
} catch (
|
|
1957
|
-
console.error(`[usePersonalizeGameItems:${n}] error:`,
|
|
2011
|
+
i(k);
|
|
2012
|
+
} catch (g) {
|
|
2013
|
+
console.error(`[usePersonalizeGameItems:${n}] error:`, g), d || i([]);
|
|
1958
2014
|
} finally {
|
|
1959
2015
|
d || l(!1);
|
|
1960
2016
|
}
|
|
@@ -1965,10 +2021,10 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1965
2021
|
resolvedItems: r,
|
|
1966
2022
|
loading: s
|
|
1967
2023
|
};
|
|
1968
|
-
},
|
|
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) => {
|
|
1969
2025
|
var n, r;
|
|
1970
2026
|
return (r = (n = e.orden) != null ? n : e.machine) != null ? r : a;
|
|
1971
|
-
},
|
|
2027
|
+
}, mn = (e) => {
|
|
1972
2028
|
if (typeof e == "boolean") return e;
|
|
1973
2029
|
if (typeof e == "string")
|
|
1974
2030
|
return e.toLowerCase() === "true";
|
|
@@ -1978,7 +2034,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1978
2034
|
return e.value.toLowerCase() === "true";
|
|
1979
2035
|
}
|
|
1980
2036
|
return !1;
|
|
1981
|
-
},
|
|
2037
|
+
}, pn = ({
|
|
1982
2038
|
items: e,
|
|
1983
2039
|
title: a = "Casino en vivo",
|
|
1984
2040
|
subtitle: n = "Disfruta la emoción en tus juegos favoritos y gana en tiempo real.",
|
|
@@ -1989,42 +2045,42 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1989
2045
|
className: d,
|
|
1990
2046
|
isPersonalize: h = !1
|
|
1991
2047
|
}) => {
|
|
1992
|
-
const
|
|
2048
|
+
const g = oe(), m = re(), u = le(), c = mn(h), { resolvedItems: f, loading: v } = dn(
|
|
1993
2049
|
e,
|
|
1994
2050
|
c
|
|
1995
|
-
),
|
|
1996
|
-
|
|
2051
|
+
), x = c ? f : Array.isArray(e) ? e : [], k = c ? v : !Array.isArray(e) || e.length === 0, T = (b) => {
|
|
2052
|
+
g({
|
|
1997
2053
|
element: "live_casino_card",
|
|
1998
|
-
label: `${m} - OraculoSeccionCasinoEnVivo${c ? " - personalize" : ""} - Open game: ${String(
|
|
1999
|
-
target: String(
|
|
2054
|
+
label: `${m} - OraculoSeccionCasinoEnVivo${c ? " - personalize" : ""} - Open game: ${String(b.machine || "unknown")}`,
|
|
2055
|
+
target: String(b.machine || "unknown"),
|
|
2000
2056
|
event_type: "click",
|
|
2001
2057
|
module_id: u,
|
|
2002
2058
|
metadata: {
|
|
2003
2059
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2004
2060
|
},
|
|
2005
2061
|
tags: {
|
|
2006
|
-
game_name: String(
|
|
2007
|
-
provider:
|
|
2062
|
+
game_name: String(b.machine || "unknown"),
|
|
2063
|
+
provider: b.provider || "unknown",
|
|
2008
2064
|
section: "OraculoSeccionCasinoEnVivo"
|
|
2009
2065
|
}
|
|
2010
2066
|
});
|
|
2011
|
-
const
|
|
2067
|
+
const A = se("showIframe"), w = se("loadMachine");
|
|
2012
2068
|
if (!w) {
|
|
2013
2069
|
if (i) {
|
|
2014
|
-
i(
|
|
2070
|
+
i(b);
|
|
2015
2071
|
return;
|
|
2016
2072
|
}
|
|
2017
2073
|
console.warn(
|
|
2018
2074
|
"[OraculoSeccionCasinoEnVivo] No existe loadMachine en extras ni onCardClick. No se puede abrir el juego.",
|
|
2019
|
-
{ machine:
|
|
2075
|
+
{ machine: b == null ? void 0 : b.machine, provider: b == null ? void 0 : b.provider }
|
|
2020
2076
|
);
|
|
2021
2077
|
return;
|
|
2022
2078
|
}
|
|
2023
|
-
|
|
2024
|
-
w == null || w(
|
|
2079
|
+
A == null || A(), typeof window != "undefined" && window.scrollTo({ top: 0, behavior: "smooth" }), requestAnimationFrame(() => {
|
|
2080
|
+
w == null || w(b, !1, "casino_en_vivo");
|
|
2025
2081
|
});
|
|
2026
|
-
},
|
|
2027
|
-
|
|
2082
|
+
}, E = () => {
|
|
2083
|
+
g({
|
|
2028
2084
|
element: "casino_en_vivo_view_more",
|
|
2029
2085
|
label: `${m} - OraculoSeccionCasinoEnVivo${c ? " - personalize" : ""} - Ver más`,
|
|
2030
2086
|
target: "https://www.olimpo.bet/casino-en-vivo",
|
|
@@ -2036,7 +2092,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2036
2092
|
tags: { section: "OraculoSeccionCasinoEnVivo" }
|
|
2037
2093
|
}), typeof globalThis != "undefined" && globalThis.location && (l ? l() : globalThis.location.assign("https://www.olimpo.bet/casino-en-vivo"));
|
|
2038
2094
|
};
|
|
2039
|
-
return /* @__PURE__ */
|
|
2095
|
+
return /* @__PURE__ */ y(
|
|
2040
2096
|
z,
|
|
2041
2097
|
{
|
|
2042
2098
|
className: d,
|
|
@@ -2074,7 +2130,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2074
2130
|
}
|
|
2075
2131
|
}
|
|
2076
2132
|
),
|
|
2077
|
-
/* @__PURE__ */
|
|
2133
|
+
/* @__PURE__ */ y(
|
|
2078
2134
|
z,
|
|
2079
2135
|
{
|
|
2080
2136
|
sx: {
|
|
@@ -2092,7 +2148,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2092
2148
|
textAlign: { xs: "center", md: "left" }
|
|
2093
2149
|
},
|
|
2094
2150
|
children: [
|
|
2095
|
-
/* @__PURE__ */
|
|
2151
|
+
/* @__PURE__ */ y(H, { spacing: 3, sx: { maxWidth: { md: 280 } }, children: [
|
|
2096
2152
|
/* @__PURE__ */ t(
|
|
2097
2153
|
ue,
|
|
2098
2154
|
{
|
|
@@ -2123,7 +2179,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2123
2179
|
{
|
|
2124
2180
|
variant: "primary",
|
|
2125
2181
|
size: "md",
|
|
2126
|
-
onClick:
|
|
2182
|
+
onClick: E,
|
|
2127
2183
|
children: "Ver más"
|
|
2128
2184
|
}
|
|
2129
2185
|
) })
|
|
@@ -2139,18 +2195,18 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2139
2195
|
py: { xs: 3, md: 0 },
|
|
2140
2196
|
alignItems: "center"
|
|
2141
2197
|
},
|
|
2142
|
-
children: (b != null ?
|
|
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) => {
|
|
2143
2199
|
var w;
|
|
2144
2200
|
return /* @__PURE__ */ t(
|
|
2145
|
-
|
|
2201
|
+
Je,
|
|
2146
2202
|
{
|
|
2147
|
-
logo: `https://olimpo.bet${
|
|
2148
|
-
provider:
|
|
2149
|
-
providerName:
|
|
2150
|
-
machine:
|
|
2151
|
-
onClick: () =>
|
|
2203
|
+
logo: `https://olimpo.bet${b.background ? b.background : (w = b.logo) != null ? w : ""}`,
|
|
2204
|
+
provider: b.provider,
|
|
2205
|
+
providerName: b.web_name,
|
|
2206
|
+
machine: b.machine,
|
|
2207
|
+
onClick: () => T(b)
|
|
2152
2208
|
},
|
|
2153
|
-
|
|
2209
|
+
un(b, A)
|
|
2154
2210
|
);
|
|
2155
2211
|
})
|
|
2156
2212
|
}
|
|
@@ -2160,7 +2216,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2160
2216
|
{
|
|
2161
2217
|
variant: "primary",
|
|
2162
2218
|
size: "lg",
|
|
2163
|
-
onClick:
|
|
2219
|
+
onClick: E,
|
|
2164
2220
|
children: "Ver más"
|
|
2165
2221
|
}
|
|
2166
2222
|
) })
|
|
@@ -2170,7 +2226,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2170
2226
|
]
|
|
2171
2227
|
}
|
|
2172
2228
|
);
|
|
2173
|
-
},
|
|
2229
|
+
}, fn = (e) => {
|
|
2174
2230
|
if (typeof e == "boolean") return e;
|
|
2175
2231
|
if (typeof e == "string")
|
|
2176
2232
|
return e.toLowerCase() === "true";
|
|
@@ -2180,14 +2236,14 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2180
2236
|
return e.value.toLowerCase() === "true";
|
|
2181
2237
|
}
|
|
2182
2238
|
return !1;
|
|
2183
|
-
},
|
|
2239
|
+
}, St = (e, a) => {
|
|
2184
2240
|
var n, r;
|
|
2185
2241
|
return (r = (n = e.orden) != null ? n : e.machine) != null ? r : a;
|
|
2186
|
-
},
|
|
2242
|
+
}, gn = (e, a = !0, n = 1) => {
|
|
2187
2243
|
const r = e.map((l, d) => {
|
|
2188
2244
|
var h;
|
|
2189
2245
|
return {
|
|
2190
|
-
id:
|
|
2246
|
+
id: St(l, d),
|
|
2191
2247
|
imageUrl: (h = l.logo) != null ? h : "",
|
|
2192
2248
|
...l.background ? { background: l.background } : {}
|
|
2193
2249
|
};
|
|
@@ -2212,7 +2268,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2212
2268
|
}), s = l;
|
|
2213
2269
|
}
|
|
2214
2270
|
return i;
|
|
2215
|
-
},
|
|
2271
|
+
}, hn = ({
|
|
2216
2272
|
items: e,
|
|
2217
2273
|
title: a = "Casino",
|
|
2218
2274
|
iconUrl: n = "/assets/img/home/Casino/diamante.svg",
|
|
@@ -2222,14 +2278,14 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2222
2278
|
gridSize: l = 1,
|
|
2223
2279
|
isPersonalize: d = !1
|
|
2224
2280
|
}) => {
|
|
2225
|
-
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(
|
|
2226
2282
|
e,
|
|
2227
|
-
|
|
2228
|
-
),
|
|
2283
|
+
v
|
|
2284
|
+
), T = v ? x : Array.isArray(e) ? e : [], E = () => {
|
|
2229
2285
|
var I;
|
|
2230
2286
|
h({
|
|
2231
2287
|
element: "casino_prev",
|
|
2232
|
-
label: `${
|
|
2288
|
+
label: `${g} - OraculoSeccionCasino ${d ? " - personalize" : ""} - Anterior`,
|
|
2233
2289
|
target: "prev",
|
|
2234
2290
|
event_type: "click",
|
|
2235
2291
|
module_id: m,
|
|
@@ -2238,11 +2294,11 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2238
2294
|
},
|
|
2239
2295
|
tags: { section: "OraculoSeccionCasino" }
|
|
2240
2296
|
}), (I = u.current) == null || I.prev();
|
|
2241
|
-
},
|
|
2297
|
+
}, b = () => {
|
|
2242
2298
|
var I;
|
|
2243
2299
|
h({
|
|
2244
2300
|
element: "casino_next",
|
|
2245
|
-
label: `${
|
|
2301
|
+
label: `${g} - OraculoSeccionCasino ${d ? " - personalize" : ""} - Siguiente`,
|
|
2246
2302
|
target: "next",
|
|
2247
2303
|
event_type: "click",
|
|
2248
2304
|
module_id: m,
|
|
@@ -2251,10 +2307,10 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2251
2307
|
},
|
|
2252
2308
|
tags: { section: "OraculoSeccionCasino" }
|
|
2253
2309
|
}), (I = u.current) == null || I.next();
|
|
2254
|
-
},
|
|
2310
|
+
}, A = () => {
|
|
2255
2311
|
if (h({
|
|
2256
2312
|
element: "casino_view_more",
|
|
2257
|
-
label: `${
|
|
2313
|
+
label: `${g} - OraculoSeccionCasino ${d ? " - personalize" : ""} - Ver más`,
|
|
2258
2314
|
target: "https://www.olimpo.bet/casino",
|
|
2259
2315
|
event_type: "click",
|
|
2260
2316
|
module_id: m,
|
|
@@ -2267,15 +2323,15 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2267
2323
|
return;
|
|
2268
2324
|
}
|
|
2269
2325
|
typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/casino");
|
|
2270
|
-
},
|
|
2271
|
-
const
|
|
2326
|
+
}, w = (I = !0, _ = 4) => {
|
|
2327
|
+
const O = (M) => Array.from({ length: M }, (B, P) => ({
|
|
2272
2328
|
id: `sk-${M}-${P}`,
|
|
2273
2329
|
imageUrl: ""
|
|
2274
2330
|
})), q = [];
|
|
2275
|
-
return I && q.push({ id: "mosaic-loading", kind: "mosaic", items:
|
|
2276
|
-
}, S =
|
|
2277
|
-
return /* @__PURE__ */ t("section", { children: /* @__PURE__ */
|
|
2278
|
-
/* @__PURE__ */
|
|
2331
|
+
return I && q.push({ id: "mosaic-loading", kind: "mosaic", items: O(5) }), q.push({ id: "grid-loading", kind: "grid", items: O(_) }), q;
|
|
2332
|
+
}, S = v ? k : !Array.isArray(e) || e.length === 0, L = De("(max-width:950px)"), F = S ? w(s, l) : gn(T, s, l);
|
|
2333
|
+
return /* @__PURE__ */ t("section", { children: /* @__PURE__ */ y(H, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
2334
|
+
/* @__PURE__ */ y(
|
|
2279
2335
|
z,
|
|
2280
2336
|
{
|
|
2281
2337
|
sx: {
|
|
@@ -2291,15 +2347,15 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2291
2347
|
},
|
|
2292
2348
|
children: [
|
|
2293
2349
|
/* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
|
|
2294
|
-
/* @__PURE__ */
|
|
2350
|
+
/* @__PURE__ */ y(z, { sx: { display: "flex", gap: 1, justifyContent: "flex-end" }, children: [
|
|
2295
2351
|
/* @__PURE__ */ t(
|
|
2296
2352
|
J,
|
|
2297
2353
|
{
|
|
2298
2354
|
ariaLabel: "Anterior",
|
|
2299
2355
|
variant: "secondary",
|
|
2300
2356
|
iconOnly: !0,
|
|
2301
|
-
leftIcon: /* @__PURE__ */ t(
|
|
2302
|
-
onClick:
|
|
2357
|
+
leftIcon: /* @__PURE__ */ t(ct, {}),
|
|
2358
|
+
onClick: E,
|
|
2303
2359
|
disabled: c.isStart
|
|
2304
2360
|
}
|
|
2305
2361
|
),
|
|
@@ -2309,13 +2365,13 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2309
2365
|
ariaLabel: "Siguiente",
|
|
2310
2366
|
variant: "secondary",
|
|
2311
2367
|
iconOnly: !0,
|
|
2312
|
-
rightIcon: /* @__PURE__ */ t(
|
|
2313
|
-
onClick:
|
|
2368
|
+
rightIcon: /* @__PURE__ */ t(dt, {}),
|
|
2369
|
+
onClick: b,
|
|
2314
2370
|
disabled: c.isEnd
|
|
2315
2371
|
}
|
|
2316
2372
|
)
|
|
2317
2373
|
] }),
|
|
2318
|
-
/* @__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" }) })
|
|
2319
2375
|
]
|
|
2320
2376
|
}
|
|
2321
2377
|
),
|
|
@@ -2323,12 +2379,12 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2323
2379
|
he,
|
|
2324
2380
|
{
|
|
2325
2381
|
ref: u,
|
|
2326
|
-
items:
|
|
2382
|
+
items: F,
|
|
2327
2383
|
perPage: void 0,
|
|
2328
2384
|
gap: "16px",
|
|
2329
2385
|
enableHorizontalWheel: !0,
|
|
2330
2386
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
2331
|
-
showRightGradient: !
|
|
2387
|
+
showRightGradient: !L,
|
|
2332
2388
|
breakpoints: {
|
|
2333
2389
|
400: {
|
|
2334
2390
|
gap: "4px",
|
|
@@ -2347,41 +2403,41 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2347
2403
|
}
|
|
2348
2404
|
},
|
|
2349
2405
|
renderItem: (I) => /* @__PURE__ */ t("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ t(
|
|
2350
|
-
|
|
2406
|
+
gt,
|
|
2351
2407
|
{
|
|
2352
2408
|
items: I.items,
|
|
2353
2409
|
layout: I.kind === "mosaic" ? "mosaic" : "grid",
|
|
2354
2410
|
loading: S,
|
|
2355
|
-
onClick: (
|
|
2411
|
+
onClick: (_) => {
|
|
2356
2412
|
if (S) return;
|
|
2357
|
-
const
|
|
2358
|
-
(B, P) => String(
|
|
2413
|
+
const O = T.find(
|
|
2414
|
+
(B, P) => String(St(B, P)) === String(_.id)
|
|
2359
2415
|
);
|
|
2360
|
-
if (!
|
|
2361
|
-
r == null || r(
|
|
2416
|
+
if (!O) return;
|
|
2417
|
+
r == null || r(O), h({
|
|
2362
2418
|
element: "casino_game_card",
|
|
2363
|
-
label: `${
|
|
2364
|
-
target: String(
|
|
2419
|
+
label: `${g} - OraculoSeccionCasino ${d ? " - personalize" : ""} - Game: ${String(O.machine || "unknown")}`,
|
|
2420
|
+
target: String(O.machine || "unknown"),
|
|
2365
2421
|
event_type: "click",
|
|
2366
2422
|
module_id: m,
|
|
2367
2423
|
metadata: {
|
|
2368
2424
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2369
2425
|
},
|
|
2370
2426
|
tags: {
|
|
2371
|
-
game_name: String(
|
|
2427
|
+
game_name: String(O.machine || "unknown"),
|
|
2372
2428
|
section: a || "Casino"
|
|
2373
2429
|
}
|
|
2374
2430
|
});
|
|
2375
2431
|
const q = se("showIframe"), M = se("loadMachine");
|
|
2376
|
-
q == null || q(), M == null || M(
|
|
2432
|
+
q == null || q(), M == null || M(O, !1, "CASINO");
|
|
2377
2433
|
}
|
|
2378
2434
|
}
|
|
2379
2435
|
) }),
|
|
2380
|
-
onMove: ({ isStart: I, isEnd:
|
|
2436
|
+
onMove: ({ isStart: I, isEnd: _ }) => f({ isStart: I, isEnd: _ })
|
|
2381
2437
|
}
|
|
2382
2438
|
)
|
|
2383
2439
|
] }) });
|
|
2384
|
-
},
|
|
2440
|
+
}, bn = (e) => {
|
|
2385
2441
|
if (typeof e == "boolean") return e;
|
|
2386
2442
|
if (typeof e == "string")
|
|
2387
2443
|
return e.toLowerCase() === "true";
|
|
@@ -2391,14 +2447,14 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2391
2447
|
return e.value.toLowerCase() === "true";
|
|
2392
2448
|
}
|
|
2393
2449
|
return !1;
|
|
2394
|
-
},
|
|
2450
|
+
}, wt = (e, a) => {
|
|
2395
2451
|
var n, r;
|
|
2396
2452
|
return (r = (n = e.orden) != null ? n : e.machine) != null ? r : a;
|
|
2397
|
-
},
|
|
2453
|
+
}, vn = (e, a = !0, n = 1) => {
|
|
2398
2454
|
const r = e.map((l, d) => {
|
|
2399
2455
|
var h;
|
|
2400
2456
|
return {
|
|
2401
|
-
id:
|
|
2457
|
+
id: wt(l, d),
|
|
2402
2458
|
imageUrl: (h = l.logo) != null ? h : "",
|
|
2403
2459
|
...l.background ? { background: l.background } : {}
|
|
2404
2460
|
};
|
|
@@ -2423,7 +2479,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2423
2479
|
}), s = l;
|
|
2424
2480
|
}
|
|
2425
2481
|
return i;
|
|
2426
|
-
},
|
|
2482
|
+
}, _n = (e = !0, a = 4) => {
|
|
2427
2483
|
const n = (i) => Array.from({ length: i }, (s, l) => ({
|
|
2428
2484
|
id: `sk-${i}-${l}`,
|
|
2429
2485
|
imageUrl: ""
|
|
@@ -2437,7 +2493,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2437
2493
|
kind: "grid",
|
|
2438
2494
|
items: n(a)
|
|
2439
2495
|
}), r;
|
|
2440
|
-
},
|
|
2496
|
+
}, yn = ({
|
|
2441
2497
|
items: e,
|
|
2442
2498
|
title: a = "Virtuales",
|
|
2443
2499
|
iconUrl: n = "/assets/img/home/Virtuales/virtuales.svg",
|
|
@@ -2447,42 +2503,42 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2447
2503
|
gridSize: l = 1,
|
|
2448
2504
|
isPersonalize: d = !1
|
|
2449
2505
|
}) => {
|
|
2450
|
-
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(
|
|
2451
2507
|
e,
|
|
2452
|
-
|
|
2453
|
-
),
|
|
2454
|
-
var
|
|
2508
|
+
v
|
|
2509
|
+
), T = v ? x : Array.isArray(e) ? e : [], E = () => {
|
|
2510
|
+
var F;
|
|
2455
2511
|
u({
|
|
2456
2512
|
element: "virtuales_prev",
|
|
2457
|
-
label: `${c} - OraculoSeccionVirtuales${
|
|
2513
|
+
label: `${c} - OraculoSeccionVirtuales${v ? " - personalize" : ""} - Anterior`,
|
|
2458
2514
|
target: "prev",
|
|
2459
2515
|
event_type: "click",
|
|
2460
|
-
module_id:
|
|
2516
|
+
module_id: f,
|
|
2461
2517
|
metadata: {
|
|
2462
2518
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2463
2519
|
},
|
|
2464
2520
|
tags: { section: "OraculoSeccionVirtuales" }
|
|
2465
|
-
}), (
|
|
2466
|
-
},
|
|
2467
|
-
var
|
|
2521
|
+
}), (F = h.current) == null || F.prev();
|
|
2522
|
+
}, b = () => {
|
|
2523
|
+
var F;
|
|
2468
2524
|
u({
|
|
2469
2525
|
element: "virtuales_next",
|
|
2470
|
-
label: `${c} - OraculoSeccionVirtuales${
|
|
2526
|
+
label: `${c} - OraculoSeccionVirtuales${v ? " - personalize" : ""} - Siguiente`,
|
|
2471
2527
|
target: "next",
|
|
2472
2528
|
event_type: "click",
|
|
2473
|
-
module_id:
|
|
2529
|
+
module_id: f,
|
|
2474
2530
|
metadata: {
|
|
2475
2531
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2476
2532
|
},
|
|
2477
2533
|
tags: { section: "OraculoSeccionVirtuales" }
|
|
2478
|
-
}), (
|
|
2479
|
-
},
|
|
2534
|
+
}), (F = h.current) == null || F.next();
|
|
2535
|
+
}, A = () => {
|
|
2480
2536
|
if (u({
|
|
2481
2537
|
element: "virtuales_view_more",
|
|
2482
|
-
label: `${c} - OraculoSeccionVirtuales${
|
|
2538
|
+
label: `${c} - OraculoSeccionVirtuales${v ? " - personalize" : ""} - Ver más`,
|
|
2483
2539
|
target: "https://www.olimpo.bet/juegos-virtuales",
|
|
2484
2540
|
event_type: "click",
|
|
2485
|
-
module_id:
|
|
2541
|
+
module_id: f,
|
|
2486
2542
|
metadata: {
|
|
2487
2543
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2488
2544
|
},
|
|
@@ -2492,9 +2548,9 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2492
2548
|
return;
|
|
2493
2549
|
}
|
|
2494
2550
|
typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/juegos-virtuales");
|
|
2495
|
-
},
|
|
2496
|
-
return /* @__PURE__ */ t("section", { children: /* @__PURE__ */
|
|
2497
|
-
/* @__PURE__ */
|
|
2551
|
+
}, w = v ? k : !Array.isArray(e) || e.length === 0, S = xe("(max-width:950px)"), L = w ? _n(s, l) : vn(T, s, l);
|
|
2552
|
+
return /* @__PURE__ */ t("section", { children: /* @__PURE__ */ y(H, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
2553
|
+
/* @__PURE__ */ y(
|
|
2498
2554
|
z,
|
|
2499
2555
|
{
|
|
2500
2556
|
sx: {
|
|
@@ -2510,16 +2566,16 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2510
2566
|
},
|
|
2511
2567
|
children: [
|
|
2512
2568
|
/* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
|
|
2513
|
-
/* @__PURE__ */
|
|
2569
|
+
/* @__PURE__ */ y(z, { sx: { display: "flex", gap: 1, justifyContent: "flex-end" }, children: [
|
|
2514
2570
|
/* @__PURE__ */ t(
|
|
2515
2571
|
J,
|
|
2516
2572
|
{
|
|
2517
2573
|
ariaLabel: "Anterior",
|
|
2518
2574
|
variant: "secondary",
|
|
2519
2575
|
iconOnly: !0,
|
|
2520
|
-
leftIcon: /* @__PURE__ */ t(
|
|
2521
|
-
onClick:
|
|
2522
|
-
disabled:
|
|
2576
|
+
leftIcon: /* @__PURE__ */ t(ct, {}),
|
|
2577
|
+
onClick: E,
|
|
2578
|
+
disabled: g.isStart
|
|
2523
2579
|
}
|
|
2524
2580
|
),
|
|
2525
2581
|
/* @__PURE__ */ t(
|
|
@@ -2528,13 +2584,13 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2528
2584
|
ariaLabel: "Siguiente",
|
|
2529
2585
|
variant: "secondary",
|
|
2530
2586
|
iconOnly: !0,
|
|
2531
|
-
rightIcon: /* @__PURE__ */ t(
|
|
2532
|
-
onClick:
|
|
2533
|
-
disabled:
|
|
2587
|
+
rightIcon: /* @__PURE__ */ t(dt, {}),
|
|
2588
|
+
onClick: b,
|
|
2589
|
+
disabled: g.isEnd
|
|
2534
2590
|
}
|
|
2535
2591
|
)
|
|
2536
2592
|
] }),
|
|
2537
|
-
/* @__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" }) })
|
|
2538
2594
|
]
|
|
2539
2595
|
}
|
|
2540
2596
|
),
|
|
@@ -2542,7 +2598,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2542
2598
|
he,
|
|
2543
2599
|
{
|
|
2544
2600
|
ref: h,
|
|
2545
|
-
items:
|
|
2601
|
+
items: L,
|
|
2546
2602
|
perPage: void 0,
|
|
2547
2603
|
gap: "16px",
|
|
2548
2604
|
breakpoints: {
|
|
@@ -2565,52 +2621,52 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2565
2621
|
enableHorizontalWheel: !0,
|
|
2566
2622
|
showRightGradient: !S,
|
|
2567
2623
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
2568
|
-
renderItem: (
|
|
2569
|
-
|
|
2624
|
+
renderItem: (F) => /* @__PURE__ */ t("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ t(
|
|
2625
|
+
gt,
|
|
2570
2626
|
{
|
|
2571
|
-
items:
|
|
2572
|
-
layout:
|
|
2573
|
-
loading:
|
|
2627
|
+
items: F.items,
|
|
2628
|
+
layout: F.kind === "mosaic" ? "mosaic" : "grid",
|
|
2629
|
+
loading: w,
|
|
2574
2630
|
onClick: (I) => {
|
|
2575
|
-
if (
|
|
2576
|
-
const
|
|
2577
|
-
(M, B) => String(
|
|
2631
|
+
if (w) return;
|
|
2632
|
+
const _ = T.find(
|
|
2633
|
+
(M, B) => String(wt(M, B)) === String(I.id)
|
|
2578
2634
|
);
|
|
2579
|
-
if (!
|
|
2635
|
+
if (!_) {
|
|
2580
2636
|
console.warn(
|
|
2581
2637
|
"[virtuales] no se encontró game para id:",
|
|
2582
2638
|
I.id
|
|
2583
2639
|
);
|
|
2584
2640
|
return;
|
|
2585
2641
|
}
|
|
2586
|
-
r == null || r(
|
|
2642
|
+
r == null || r(_), u({
|
|
2587
2643
|
element: "virtuales_game_card",
|
|
2588
|
-
label: `${c} - OraculoSeccionVirtuales${
|
|
2589
|
-
target: String(
|
|
2644
|
+
label: `${c} - OraculoSeccionVirtuales${v ? " - personalize" : ""} - Game: ${String(_.machine || "unknown")}`,
|
|
2645
|
+
target: String(_.machine || "unknown"),
|
|
2590
2646
|
event_type: "click",
|
|
2591
|
-
module_id:
|
|
2647
|
+
module_id: f,
|
|
2592
2648
|
metadata: {
|
|
2593
2649
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2594
2650
|
},
|
|
2595
2651
|
tags: {
|
|
2596
|
-
game_name: String(
|
|
2652
|
+
game_name: String(_.machine || "unknown"),
|
|
2597
2653
|
section: a || "Virtuales"
|
|
2598
2654
|
}
|
|
2599
2655
|
});
|
|
2600
|
-
const
|
|
2601
|
-
|
|
2602
|
-
|
|
2656
|
+
const O = se("showIframe"), q = se("loadMachine");
|
|
2657
|
+
O == null || O(), q == null || q(
|
|
2658
|
+
_,
|
|
2603
2659
|
!1,
|
|
2604
|
-
|
|
2660
|
+
v ? "VIRTUALES_PERSONALIZE" : "VIRTUALES"
|
|
2605
2661
|
);
|
|
2606
2662
|
}
|
|
2607
2663
|
}
|
|
2608
2664
|
) }),
|
|
2609
|
-
onMove: ({ isStart:
|
|
2665
|
+
onMove: ({ isStart: F, isEnd: I }) => m({ isStart: F, isEnd: I })
|
|
2610
2666
|
}
|
|
2611
2667
|
)
|
|
2612
2668
|
] }) });
|
|
2613
|
-
},
|
|
2669
|
+
}, xn = (e) => ({
|
|
2614
2670
|
position: "relative",
|
|
2615
2671
|
py: 8,
|
|
2616
2672
|
color: "#fff",
|
|
@@ -2624,15 +2680,15 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2624
2680
|
backgroundRepeat: "no-repeat",
|
|
2625
2681
|
backgroundPosition: "center",
|
|
2626
2682
|
backgroundSize: "cover"
|
|
2627
|
-
}),
|
|
2683
|
+
}), et = {
|
|
2628
2684
|
textAlign: "center",
|
|
2629
2685
|
lineHeight: 1.1,
|
|
2630
2686
|
mb: 1.5
|
|
2631
|
-
},
|
|
2687
|
+
}, tt = {
|
|
2632
2688
|
display: "inline-block",
|
|
2633
2689
|
fontWeight: 600,
|
|
2634
2690
|
fontSize: 24
|
|
2635
|
-
},
|
|
2691
|
+
}, at = {
|
|
2636
2692
|
display: "inline-block",
|
|
2637
2693
|
fontSize: 24,
|
|
2638
2694
|
lineHeight: 1.1,
|
|
@@ -2642,92 +2698,92 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2642
2698
|
0 0 6px rgba(255, 255, 255, .6),
|
|
2643
2699
|
0 1px 0 rgba(137, 137, 137, .85)
|
|
2644
2700
|
`
|
|
2645
|
-
},
|
|
2701
|
+
}, Sn = ({
|
|
2646
2702
|
headline: e,
|
|
2647
2703
|
headline2: a,
|
|
2648
2704
|
items: n,
|
|
2649
2705
|
backgroundImageUrl: r
|
|
2650
2706
|
}) => {
|
|
2651
|
-
const i = oe(), s = re(), l = xe("(max-width: 767px)"), d = n.length > 1, h = U(null),
|
|
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 });
|
|
2652
2708
|
Q(() => {
|
|
2653
|
-
const
|
|
2709
|
+
const _ = setTimeout(() => {
|
|
2654
2710
|
m.current = !0;
|
|
2655
2711
|
}, 500);
|
|
2656
|
-
return () => clearTimeout(
|
|
2712
|
+
return () => clearTimeout(_);
|
|
2657
2713
|
}, []);
|
|
2658
|
-
const
|
|
2714
|
+
const k = U(v);
|
|
2659
2715
|
Q(() => {
|
|
2660
|
-
|
|
2661
|
-
}, [
|
|
2662
|
-
const
|
|
2716
|
+
k.current = v;
|
|
2717
|
+
}, [v]);
|
|
2718
|
+
const T = U(!1), E = U(null), b = n == null ? void 0 : n[c], A = ie(
|
|
2663
2719
|
() => {
|
|
2664
|
-
var
|
|
2665
|
-
return (
|
|
2720
|
+
var _, O;
|
|
2721
|
+
return (O = (_ = b == null ? void 0 : b.backgroundImageUrl) != null ? _ : r) != null ? O : "";
|
|
2666
2722
|
},
|
|
2667
|
-
[
|
|
2668
|
-
),
|
|
2723
|
+
[b, r]
|
|
2724
|
+
), w = xn(A), S = !n || n.length === 0, L = (_, O) => {
|
|
2669
2725
|
i({
|
|
2670
2726
|
element: "welcome_banner_button",
|
|
2671
|
-
label: `OraculoSeccionBonoBienvenida - Banner button click: ${
|
|
2727
|
+
label: `OraculoSeccionBonoBienvenida - Banner button click: ${_.title || "OraculoSeccionBonoBienvenida - Banner " + (O + 1)}`,
|
|
2672
2728
|
target: "action",
|
|
2673
2729
|
event_type: "click",
|
|
2674
2730
|
module_id: 301,
|
|
2675
2731
|
metadata: {
|
|
2676
2732
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
2677
|
-
banner_position:
|
|
2733
|
+
banner_position: O + 1,
|
|
2678
2734
|
banner_total: (n == null ? void 0 : n.length) || 0
|
|
2679
2735
|
},
|
|
2680
2736
|
tags: {
|
|
2681
|
-
banner_title:
|
|
2682
|
-
button_text:
|
|
2737
|
+
banner_title: _.title || "no_title",
|
|
2738
|
+
button_text: _.buttonText || "no_text"
|
|
2683
2739
|
}
|
|
2684
|
-
}),
|
|
2685
|
-
},
|
|
2740
|
+
}), _.onButtonClick && _.onButtonClick();
|
|
2741
|
+
}, F = (_) => {
|
|
2686
2742
|
if (!m.current) return;
|
|
2687
2743
|
if (u.current) {
|
|
2688
2744
|
u.current = !1;
|
|
2689
2745
|
return;
|
|
2690
2746
|
}
|
|
2691
|
-
const
|
|
2747
|
+
const O = n == null ? void 0 : n[_];
|
|
2692
2748
|
i({
|
|
2693
2749
|
element: "welcome_banner_carousel",
|
|
2694
|
-
label: `Landing: ${s} - OraculoSeccionBonoBienvenida - Banner view: ${(
|
|
2750
|
+
label: `Landing: ${s} - OraculoSeccionBonoBienvenida - Banner view: ${(O == null ? void 0 : O.title) || "OraculoSeccionBonoBienvenida - Banner " + (_ + 1)}`,
|
|
2695
2751
|
target: "no_url",
|
|
2696
2752
|
event_type: "view",
|
|
2697
2753
|
module_id: 301,
|
|
2698
2754
|
metadata: {
|
|
2699
2755
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
2700
|
-
slide_index:
|
|
2756
|
+
slide_index: _ + 1,
|
|
2701
2757
|
total_slides: (n == null ? void 0 : n.length) || 0,
|
|
2702
2758
|
interaction_type: "manual_slide"
|
|
2703
2759
|
},
|
|
2704
2760
|
tags: {
|
|
2705
|
-
banner_position: String(
|
|
2706
|
-
banner_title: (
|
|
2761
|
+
banner_position: String(_ + 1),
|
|
2762
|
+
banner_title: (O == null ? void 0 : O.title) || "no_title"
|
|
2707
2763
|
}
|
|
2708
2764
|
});
|
|
2709
2765
|
};
|
|
2710
2766
|
Q(() => {
|
|
2711
|
-
const
|
|
2712
|
-
if (!
|
|
2713
|
-
const
|
|
2714
|
-
var K,
|
|
2715
|
-
if (S || B.ctrlKey ||
|
|
2767
|
+
const _ = g.current;
|
|
2768
|
+
if (!_) return;
|
|
2769
|
+
const O = 6, q = 380, M = (B) => {
|
|
2770
|
+
var K, j;
|
|
2771
|
+
if (S || B.ctrlKey || T.current) return;
|
|
2716
2772
|
const P = B.deltaX, V = B.deltaY;
|
|
2717
|
-
if (Math.abs(P) <= Math.abs(V) || Math.abs(P) <
|
|
2718
|
-
const
|
|
2719
|
-
|
|
2720
|
-
|
|
2773
|
+
if (Math.abs(P) <= Math.abs(V) || Math.abs(P) < O) return;
|
|
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(() => {
|
|
2776
|
+
T.current = !1;
|
|
2721
2777
|
}, q));
|
|
2722
2778
|
};
|
|
2723
|
-
return
|
|
2724
|
-
|
|
2779
|
+
return _.addEventListener("wheel", M, { passive: !1 }), () => {
|
|
2780
|
+
_.removeEventListener("wheel", M), E.current && window.clearTimeout(E.current);
|
|
2725
2781
|
};
|
|
2726
2782
|
}, [S]);
|
|
2727
|
-
const I = (
|
|
2783
|
+
const I = (_, O, q) => {
|
|
2728
2784
|
var P, V;
|
|
2729
|
-
const M = (P =
|
|
2730
|
-
return
|
|
2785
|
+
const M = (P = _.headline) != null ? P : e, B = (V = _.headline2) != null ? V : a;
|
|
2786
|
+
return O ? /* @__PURE__ */ y(
|
|
2731
2787
|
z,
|
|
2732
2788
|
{
|
|
2733
2789
|
sx: {
|
|
@@ -2749,45 +2805,45 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2749
2805
|
justifyContent: "flex-start",
|
|
2750
2806
|
minHeight: "100%"
|
|
2751
2807
|
},
|
|
2752
|
-
children: /* @__PURE__ */
|
|
2753
|
-
M && /* @__PURE__ */ t(ue, { component: "span", sx:
|
|
2754
|
-
B && /* @__PURE__ */
|
|
2808
|
+
children: /* @__PURE__ */ y(z, { sx: { ...et, textAlign: "left", mb: 0 }, children: [
|
|
2809
|
+
M && /* @__PURE__ */ t(ue, { component: "span", sx: tt, children: M }),
|
|
2810
|
+
B && /* @__PURE__ */ y(pe, { children: [
|
|
2755
2811
|
/* @__PURE__ */ t("br", {}),
|
|
2756
|
-
/* @__PURE__ */ t(ue, { component: "span", sx:
|
|
2812
|
+
/* @__PURE__ */ t(ue, { component: "span", sx: at, children: B })
|
|
2757
2813
|
] })
|
|
2758
2814
|
] })
|
|
2759
2815
|
}
|
|
2760
2816
|
),
|
|
2761
2817
|
/* @__PURE__ */ t(z, { sx: { display: "flex", justifyContent: "center", alignItems: "center" }, children: /* @__PURE__ */ t(z, { sx: { width: "100%", maxWidth: 600, mx: "auto" }, children: /* @__PURE__ */ t(
|
|
2762
|
-
|
|
2818
|
+
Xe,
|
|
2763
2819
|
{
|
|
2764
|
-
...
|
|
2765
|
-
onButtonClick: () =>
|
|
2820
|
+
..._,
|
|
2821
|
+
onButtonClick: () => L(_, q),
|
|
2766
2822
|
variant: "large"
|
|
2767
2823
|
}
|
|
2768
2824
|
) }) })
|
|
2769
2825
|
]
|
|
2770
2826
|
}
|
|
2771
|
-
) : /* @__PURE__ */
|
|
2772
|
-
(M || B) && /* @__PURE__ */
|
|
2773
|
-
M && /* @__PURE__ */ t(ue, { component: "span", sx:
|
|
2774
|
-
B && /* @__PURE__ */
|
|
2827
|
+
) : /* @__PURE__ */ y(z, { sx: { textAlign: "center" }, children: [
|
|
2828
|
+
(M || B) && /* @__PURE__ */ y(z, { sx: et, children: [
|
|
2829
|
+
M && /* @__PURE__ */ t(ue, { component: "span", sx: tt, children: M }),
|
|
2830
|
+
B && /* @__PURE__ */ y(pe, { children: [
|
|
2775
2831
|
/* @__PURE__ */ t("br", {}),
|
|
2776
|
-
/* @__PURE__ */ t(ue, { component: "span", sx:
|
|
2832
|
+
/* @__PURE__ */ t(ue, { component: "span", sx: at, children: B })
|
|
2777
2833
|
] })
|
|
2778
2834
|
] }),
|
|
2779
2835
|
/* @__PURE__ */ t(z, { sx: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(
|
|
2780
|
-
|
|
2836
|
+
Xe,
|
|
2781
2837
|
{
|
|
2782
|
-
...
|
|
2783
|
-
onButtonClick: () =>
|
|
2838
|
+
..._,
|
|
2839
|
+
onButtonClick: () => L(_, q),
|
|
2784
2840
|
variant: "small"
|
|
2785
2841
|
}
|
|
2786
2842
|
) })
|
|
2787
2843
|
] });
|
|
2788
2844
|
};
|
|
2789
|
-
return /* @__PURE__ */
|
|
2790
|
-
/* @__PURE__ */ t("div", { ref:
|
|
2845
|
+
return /* @__PURE__ */ y(z, { component: "section", sx: w, children: [
|
|
2846
|
+
/* @__PURE__ */ t("div", { ref: g, style: { width: "100%" }, children: /* @__PURE__ */ t(
|
|
2791
2847
|
he,
|
|
2792
2848
|
{
|
|
2793
2849
|
ref: h,
|
|
@@ -2804,39 +2860,39 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2804
2860
|
// arrows: false,
|
|
2805
2861
|
// drag: true,
|
|
2806
2862
|
},
|
|
2807
|
-
renderItem: (
|
|
2808
|
-
onMove: ({ index:
|
|
2809
|
-
|
|
2863
|
+
renderItem: (_, O) => /* @__PURE__ */ t(z, { sx: { width: "100%" }, children: I(_, !l, O) }),
|
|
2864
|
+
onMove: ({ index: _, isStart: O, isEnd: q, source: M }) => {
|
|
2865
|
+
f(_), typeof O == "boolean" && typeof q == "boolean" && x({ isStart: O, isEnd: q }), M === "user" && F(_);
|
|
2810
2866
|
}
|
|
2811
2867
|
}
|
|
2812
2868
|
) }),
|
|
2813
2869
|
d && /* @__PURE__ */ t(z, { sx: { mt: 2, display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(
|
|
2814
|
-
|
|
2870
|
+
ut,
|
|
2815
2871
|
{
|
|
2816
2872
|
total: n.length,
|
|
2817
2873
|
active: c,
|
|
2818
|
-
onSelect: (
|
|
2819
|
-
var
|
|
2874
|
+
onSelect: (_) => {
|
|
2875
|
+
var O;
|
|
2820
2876
|
i({
|
|
2821
2877
|
element: "welcome_banner_dots",
|
|
2822
|
-
label: `Landing: ${s} - OraculoSeccionBonoBienvenida - Dot navigation: Banner ${
|
|
2878
|
+
label: `Landing: ${s} - OraculoSeccionBonoBienvenida - Dot navigation: Banner ${_ + 1}`,
|
|
2823
2879
|
target: "no_url",
|
|
2824
2880
|
event_type: "click",
|
|
2825
2881
|
module_id: 301,
|
|
2826
2882
|
metadata: {
|
|
2827
2883
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
2828
|
-
dot_index:
|
|
2884
|
+
dot_index: _ + 1,
|
|
2829
2885
|
total_dots: n.length
|
|
2830
2886
|
},
|
|
2831
2887
|
tags: {
|
|
2832
2888
|
navigation_type: "dot_click"
|
|
2833
2889
|
}
|
|
2834
|
-
}),
|
|
2890
|
+
}), f(_), (O = h.current) == null || O.go(_);
|
|
2835
2891
|
}
|
|
2836
2892
|
}
|
|
2837
2893
|
) })
|
|
2838
2894
|
] });
|
|
2839
|
-
},
|
|
2895
|
+
}, wn = ({
|
|
2840
2896
|
className: e = "",
|
|
2841
2897
|
fullBleed: a = !0,
|
|
2842
2898
|
items: n,
|
|
@@ -2844,22 +2900,22 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2844
2900
|
ariaLabel: i,
|
|
2845
2901
|
user: s = null
|
|
2846
2902
|
}) => {
|
|
2847
|
-
const l = U(null), d = U(null), h = oe(),
|
|
2903
|
+
const l = U(null), d = U(null), h = oe(), g = re(), m = le();
|
|
2848
2904
|
if (!n) return null;
|
|
2849
2905
|
const u = async () => {
|
|
2850
2906
|
let x = s;
|
|
2851
2907
|
if ((!(x != null && x.user) || !(x != null && x.session)) && typeof window != "undefined")
|
|
2852
2908
|
try {
|
|
2853
|
-
const
|
|
2854
|
-
|
|
2855
|
-
} catch (
|
|
2856
|
-
console.error("[getMarketPlaceUrl] Error parsing localStorage user",
|
|
2909
|
+
const k = localStorage.getItem("user");
|
|
2910
|
+
k && (x = JSON.parse(k));
|
|
2911
|
+
} catch (k) {
|
|
2912
|
+
console.error("[getMarketPlaceUrl] Error parsing localStorage user", k);
|
|
2857
2913
|
}
|
|
2858
2914
|
if (!(x != null && x.user) || !(x != null && x.session))
|
|
2859
2915
|
return console.warn("User data missing"), null;
|
|
2860
2916
|
h({
|
|
2861
2917
|
element: "club_olimpo_button",
|
|
2862
|
-
label: `${
|
|
2918
|
+
label: `${g} - OraculoSeccionClubOlimpo - Click: Club Olimpo`,
|
|
2863
2919
|
target: "https://www.clubolimpo.com/OlimpoBetWeb/",
|
|
2864
2920
|
event_type: "click",
|
|
2865
2921
|
module_id: m,
|
|
@@ -2869,40 +2925,40 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2869
2925
|
tags: { section: "OraculoSeccionClubOlimpo" }
|
|
2870
2926
|
});
|
|
2871
2927
|
try {
|
|
2872
|
-
const
|
|
2928
|
+
const k = {
|
|
2873
2929
|
idUsuario: "PE" + x.user,
|
|
2874
2930
|
session_id: x.session,
|
|
2875
2931
|
pagina: "home"
|
|
2876
|
-
},
|
|
2932
|
+
}, E = await fetch("https://apipe.mktolimpo.com/api/pm/token", {
|
|
2877
2933
|
method: "POST",
|
|
2878
2934
|
headers: {
|
|
2879
2935
|
"Content-Type": "application/json"
|
|
2880
2936
|
},
|
|
2881
|
-
body: JSON.stringify(
|
|
2937
|
+
body: JSON.stringify(k)
|
|
2882
2938
|
});
|
|
2883
|
-
if (
|
|
2884
|
-
const
|
|
2885
|
-
return
|
|
2939
|
+
if (E.ok) {
|
|
2940
|
+
const b = await E.json();
|
|
2941
|
+
return b == null ? void 0 : b.url;
|
|
2886
2942
|
}
|
|
2887
2943
|
return null;
|
|
2888
|
-
} catch (
|
|
2889
|
-
return console.error("[getMarketPlaceUrl]",
|
|
2944
|
+
} catch (k) {
|
|
2945
|
+
return console.error("[getMarketPlaceUrl]", k), null;
|
|
2890
2946
|
}
|
|
2891
2947
|
}, c = async () => {
|
|
2892
2948
|
const x = await u();
|
|
2893
2949
|
x ? window.location.href = x : typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/conoce-club-olimpo");
|
|
2894
|
-
},
|
|
2895
|
-
|
|
2950
|
+
}, f = Array.isArray(n) ? n[r] : n;
|
|
2951
|
+
Bt(() => {
|
|
2896
2952
|
if (!l.current || !d.current || typeof ResizeObserver == "undefined") return;
|
|
2897
|
-
const x = l.current,
|
|
2953
|
+
const x = l.current, k = d.current, T = () => {
|
|
2898
2954
|
x.style.setProperty(
|
|
2899
2955
|
"--orc-co-bottomH",
|
|
2900
|
-
`${
|
|
2956
|
+
`${k.offsetHeight + 16}px`
|
|
2901
2957
|
);
|
|
2902
|
-
},
|
|
2903
|
-
return
|
|
2958
|
+
}, E = new ResizeObserver(T);
|
|
2959
|
+
return E.observe(k), T(), () => E.disconnect();
|
|
2904
2960
|
}, []);
|
|
2905
|
-
const
|
|
2961
|
+
const v = [
|
|
2906
2962
|
"orc-co-wrap",
|
|
2907
2963
|
a ? "orc-co-fullBleed" : "",
|
|
2908
2964
|
e
|
|
@@ -2911,54 +2967,54 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2911
2967
|
"section",
|
|
2912
2968
|
{
|
|
2913
2969
|
ref: l,
|
|
2914
|
-
className:
|
|
2915
|
-
"aria-label": i ||
|
|
2970
|
+
className: v,
|
|
2971
|
+
"aria-label": i || f.imgAlt || "Club Olimpo",
|
|
2916
2972
|
children: /* @__PURE__ */ t("div", { ref: d, children: /* @__PURE__ */ t(
|
|
2917
|
-
|
|
2973
|
+
Ia,
|
|
2918
2974
|
{
|
|
2919
|
-
text:
|
|
2975
|
+
text: f.text,
|
|
2920
2976
|
onClick: c,
|
|
2921
|
-
imgAlt:
|
|
2922
|
-
buttonLabel:
|
|
2923
|
-
imgSrcMobile:
|
|
2924
|
-
imgSrcDesktopBg:
|
|
2925
|
-
imgSrcDesktopLogo:
|
|
2977
|
+
imgAlt: f.imgAlt,
|
|
2978
|
+
buttonLabel: f.buttonLabel,
|
|
2979
|
+
imgSrcMobile: f.imgMobile,
|
|
2980
|
+
imgSrcDesktopBg: f.imgDesktopBg,
|
|
2981
|
+
imgSrcDesktopLogo: f.imgDesktopLogo
|
|
2926
2982
|
}
|
|
2927
2983
|
) })
|
|
2928
2984
|
}
|
|
2929
2985
|
);
|
|
2930
|
-
},
|
|
2931
|
-
controls:
|
|
2932
|
-
padding:
|
|
2933
|
-
},
|
|
2986
|
+
}, In = "oraculo__OraculoSeccionEventoCombinadas-module__controls___Zsta4", On = "oraculo__OraculoSeccionEventoCombinadas-module__padding___vf-yF", nt = {
|
|
2987
|
+
controls: In,
|
|
2988
|
+
padding: On
|
|
2989
|
+
}, En = (e) => {
|
|
2934
2990
|
var a, n;
|
|
2935
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) => {
|
|
2936
2992
|
var i, s;
|
|
2937
2993
|
return (s = (i = r.outcomes) == null ? void 0 : i.map((l) => l.id)) != null ? s : [];
|
|
2938
2994
|
}) : [];
|
|
2939
2995
|
};
|
|
2940
|
-
function
|
|
2996
|
+
function Cn(e, a, n) {
|
|
2941
2997
|
return n ? n.map((r) => {
|
|
2942
2998
|
var m, u;
|
|
2943
|
-
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 = {};
|
|
2944
3000
|
for (const c of a) {
|
|
2945
3001
|
if (!s.has(c.eventId)) continue;
|
|
2946
|
-
const
|
|
2947
|
-
|
|
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 }));
|
|
2948
3004
|
}
|
|
2949
|
-
const
|
|
2950
|
-
var
|
|
2951
|
-
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 : [] };
|
|
2952
3008
|
});
|
|
2953
3009
|
return {
|
|
2954
3010
|
couponId: r.id,
|
|
2955
3011
|
status: r.status,
|
|
2956
|
-
combinadoTotal:
|
|
2957
|
-
events:
|
|
3012
|
+
combinadoTotal: kn(r.prePackCouponRows),
|
|
3013
|
+
events: g
|
|
2958
3014
|
};
|
|
2959
3015
|
}) : [];
|
|
2960
3016
|
}
|
|
2961
|
-
function
|
|
3017
|
+
function kn(e) {
|
|
2962
3018
|
if (!Array.isArray(e) || e.length === 0) return 0;
|
|
2963
3019
|
let a = 1;
|
|
2964
3020
|
for (const n of e) {
|
|
@@ -2967,16 +3023,16 @@ function En(e) {
|
|
|
2967
3023
|
}
|
|
2968
3024
|
return Math.floor(a * 100) / 100;
|
|
2969
3025
|
}
|
|
2970
|
-
const
|
|
2971
|
-
function
|
|
3026
|
+
const Tn = fe.memo(Fa);
|
|
3027
|
+
function $n({
|
|
2972
3028
|
items: e,
|
|
2973
3029
|
title: a = "Combinadas del Olimpo",
|
|
2974
3030
|
iconUrl: n = "https://d28gilnhu2bcbp.cloudfront.net/landing/rayoIcon.svg",
|
|
2975
3031
|
onViewMore: r,
|
|
2976
3032
|
className: i = ""
|
|
2977
3033
|
}) {
|
|
2978
|
-
const s = oe(), l = re(), d = le(), h = U(null), [
|
|
2979
|
-
var
|
|
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 = () => {
|
|
3035
|
+
var w;
|
|
2980
3036
|
s({
|
|
2981
3037
|
element: "evento_combinadas_prev",
|
|
2982
3038
|
label: `${l} - OraculoSeccionEventoCombinadas - Click: Anterior`,
|
|
@@ -2986,9 +3042,9 @@ function Tn({
|
|
|
2986
3042
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2987
3043
|
},
|
|
2988
3044
|
tags: { section: "OraculoSeccionEventoCombinadas" }
|
|
2989
|
-
}), (
|
|
3045
|
+
}), (w = h.current) == null || w.prev();
|
|
2990
3046
|
}, x = () => {
|
|
2991
|
-
var
|
|
3047
|
+
var w;
|
|
2992
3048
|
s({
|
|
2993
3049
|
element: "evento_combinadas_next",
|
|
2994
3050
|
label: `${l} - OraculoSeccionEventoCombinadas - Click: Siguiente`,
|
|
@@ -2998,8 +3054,8 @@ function Tn({
|
|
|
2998
3054
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2999
3055
|
},
|
|
3000
3056
|
tags: { section: "OraculoSeccionEventoCombinadas" }
|
|
3001
|
-
}), (
|
|
3002
|
-
},
|
|
3057
|
+
}), (w = h.current) == null || w.next();
|
|
3058
|
+
}, k = () => {
|
|
3003
3059
|
s({
|
|
3004
3060
|
element: "evento_combinadas_ver_mas",
|
|
3005
3061
|
label: `${l} - OraculoSeccionEventoCombinadas - Click: Ver más`,
|
|
@@ -3009,45 +3065,45 @@ function Tn({
|
|
|
3009
3065
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
3010
3066
|
},
|
|
3011
3067
|
tags: { section: "OraculoSeccionEventoCombinadas" }
|
|
3012
|
-
}),
|
|
3013
|
-
},
|
|
3014
|
-
async function
|
|
3015
|
-
var
|
|
3068
|
+
}), La();
|
|
3069
|
+
}, T = ie(() => u.filter((w) => w.combinadoTotal !== null), [u]);
|
|
3070
|
+
async function E() {
|
|
3071
|
+
var w, S, L, F;
|
|
3016
3072
|
try {
|
|
3017
|
-
const
|
|
3018
|
-
if (!
|
|
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(",");
|
|
3074
|
+
if (!O) {
|
|
3019
3075
|
console.error("Could not extract group ID");
|
|
3020
3076
|
return;
|
|
3021
3077
|
}
|
|
3022
|
-
const q = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${
|
|
3023
|
-
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));
|
|
3024
3080
|
} catch (I) {
|
|
3025
3081
|
console.error("loadDataEventSpecial error:", I);
|
|
3026
3082
|
}
|
|
3027
3083
|
}
|
|
3028
3084
|
Q(() => {
|
|
3029
|
-
|
|
3085
|
+
E();
|
|
3030
3086
|
}, []);
|
|
3031
|
-
const
|
|
3032
|
-
return
|
|
3087
|
+
const b = i || void 0, A = xe("(max-width:950px)");
|
|
3088
|
+
return T.length === 0 ? null : /* @__PURE__ */ t("section", { className: b, style: {
|
|
3033
3089
|
// paddingLeft: 16,
|
|
3034
3090
|
// paddingRight: 16,
|
|
3035
3091
|
width: "100%",
|
|
3036
3092
|
boxSizing: "border-box"
|
|
3037
|
-
}, children: /* @__PURE__ */
|
|
3038
|
-
/* @__PURE__ */ t("div", { className:
|
|
3093
|
+
}, children: /* @__PURE__ */ y(H, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
3094
|
+
/* @__PURE__ */ t("div", { className: nt.padding, children: /* @__PURE__ */ y(me, { spacing: 1.5, columns: "1fr auto ", justify: "start", children: [
|
|
3039
3095
|
/* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
|
|
3040
|
-
/* @__PURE__ */
|
|
3041
|
-
/* @__PURE__ */
|
|
3096
|
+
/* @__PURE__ */ y("div", { className: nt.controls, children: [
|
|
3097
|
+
/* @__PURE__ */ y(me, { spacing: 1, columns: "auto auto", children: [
|
|
3042
3098
|
/* @__PURE__ */ t(
|
|
3043
3099
|
J,
|
|
3044
3100
|
{
|
|
3045
3101
|
ariaLabel: "Anterior",
|
|
3046
3102
|
variant: "secondary",
|
|
3047
3103
|
iconOnly: !0,
|
|
3048
|
-
leftIcon: /* @__PURE__ */ t(
|
|
3049
|
-
onClick:
|
|
3050
|
-
disabled:
|
|
3104
|
+
leftIcon: /* @__PURE__ */ t(Re, {}),
|
|
3105
|
+
onClick: v,
|
|
3106
|
+
disabled: g.isStart
|
|
3051
3107
|
}
|
|
3052
3108
|
),
|
|
3053
3109
|
/* @__PURE__ */ t(
|
|
@@ -3056,140 +3112,140 @@ function Tn({
|
|
|
3056
3112
|
ariaLabel: "Siguiente",
|
|
3057
3113
|
variant: "secondary",
|
|
3058
3114
|
iconOnly: !0,
|
|
3059
|
-
rightIcon: /* @__PURE__ */ t(
|
|
3115
|
+
rightIcon: /* @__PURE__ */ t(Le, {}),
|
|
3060
3116
|
onClick: x,
|
|
3061
|
-
disabled:
|
|
3117
|
+
disabled: g.isEnd
|
|
3062
3118
|
}
|
|
3063
3119
|
)
|
|
3064
3120
|
] }),
|
|
3065
|
-
/* @__PURE__ */ t(J, { variant: "secondary", onClick:
|
|
3121
|
+
/* @__PURE__ */ t(J, { variant: "secondary", onClick: k, children: "Ver más" })
|
|
3066
3122
|
] })
|
|
3067
3123
|
] }) }),
|
|
3068
3124
|
/* @__PURE__ */ t(
|
|
3069
3125
|
he,
|
|
3070
3126
|
{
|
|
3071
3127
|
ref: h,
|
|
3072
|
-
items:
|
|
3128
|
+
items: T,
|
|
3073
3129
|
perPage: void 0,
|
|
3074
3130
|
gap: "16px",
|
|
3075
3131
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
3076
3132
|
useIndexAsKey: !0,
|
|
3077
3133
|
enableHorizontalWheel: !0,
|
|
3078
|
-
showRightGradient: !
|
|
3134
|
+
showRightGradient: !A,
|
|
3079
3135
|
breakpoints: {
|
|
3080
3136
|
768: { perPage: 1.2, gap: "12px", padding: { left: "24px", right: "24px" } }
|
|
3081
3137
|
},
|
|
3082
|
-
renderItem: (
|
|
3083
|
-
onMove: ({ isStart:
|
|
3138
|
+
renderItem: (w) => /* @__PURE__ */ t(Tn, { coupon: w }),
|
|
3139
|
+
onMove: ({ isStart: w, isEnd: S }) => m({ isStart: w, isEnd: S })
|
|
3084
3140
|
}
|
|
3085
3141
|
)
|
|
3086
3142
|
] }) });
|
|
3087
3143
|
}
|
|
3088
|
-
function
|
|
3144
|
+
function Nn({}) {
|
|
3089
3145
|
return /* @__PURE__ */ t(
|
|
3090
3146
|
"div",
|
|
3091
3147
|
{
|
|
3092
|
-
className:
|
|
3093
|
-
children: /* @__PURE__ */
|
|
3094
|
-
/* @__PURE__ */
|
|
3095
|
-
/* @__PURE__ */ t(
|
|
3096
|
-
/* @__PURE__ */ t(
|
|
3148
|
+
className: $e.cardWrapper,
|
|
3149
|
+
children: /* @__PURE__ */ y(H, { direction: "column", spacing: 1, children: [
|
|
3150
|
+
/* @__PURE__ */ y(H, { spacing: 1, direction: "row", children: [
|
|
3151
|
+
/* @__PURE__ */ t(W, { variant: "text", width: "60%", height: 24 }),
|
|
3152
|
+
/* @__PURE__ */ t(W, { variant: "text", width: "39%", height: 24 })
|
|
3097
3153
|
] }),
|
|
3098
|
-
/* @__PURE__ */
|
|
3099
|
-
/* @__PURE__ */ t(
|
|
3100
|
-
/* @__PURE__ */ t(
|
|
3101
|
-
/* @__PURE__ */ t(
|
|
3154
|
+
/* @__PURE__ */ y(H, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
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 })
|
|
3102
3158
|
] }),
|
|
3103
|
-
/* @__PURE__ */
|
|
3104
|
-
/* @__PURE__ */ t(
|
|
3105
|
-
/* @__PURE__ */ t(
|
|
3106
|
-
/* @__PURE__ */ t(
|
|
3159
|
+
/* @__PURE__ */ y(H, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
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 })
|
|
3107
3163
|
] }),
|
|
3108
|
-
/* @__PURE__ */
|
|
3109
|
-
/* @__PURE__ */ t(
|
|
3110
|
-
/* @__PURE__ */ t(
|
|
3111
|
-
/* @__PURE__ */ t(
|
|
3164
|
+
/* @__PURE__ */ y(H, { spacing: 2, direction: "row", children: [
|
|
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 })
|
|
3112
3168
|
] }),
|
|
3113
|
-
/* @__PURE__ */
|
|
3114
|
-
/* @__PURE__ */ t(
|
|
3115
|
-
/* @__PURE__ */ t(
|
|
3116
|
-
/* @__PURE__ */ t(
|
|
3169
|
+
/* @__PURE__ */ y(H, { spacing: 2, direction: "row", children: [
|
|
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 })
|
|
3117
3173
|
] })
|
|
3118
3174
|
] })
|
|
3119
3175
|
}
|
|
3120
3176
|
);
|
|
3121
3177
|
}
|
|
3122
|
-
const
|
|
3123
|
-
fadeWrapper:
|
|
3178
|
+
const Mn = "oraculo__FadeItemWrapper-module__fadeWrapper___kFOH4", An = {
|
|
3179
|
+
fadeWrapper: Mn
|
|
3124
3180
|
};
|
|
3125
3181
|
function Be({ children: e }) {
|
|
3126
|
-
return /* @__PURE__ */ t("div", { className:
|
|
3182
|
+
return /* @__PURE__ */ t("div", { className: An.fadeWrapper, children: e });
|
|
3127
3183
|
}
|
|
3128
|
-
const
|
|
3129
|
-
padding:
|
|
3184
|
+
const Bn = "oraculo__OraculoSeccionEventoEnVivo-module__padding___Sh8tD", Rn = {
|
|
3185
|
+
padding: Bn
|
|
3130
3186
|
};
|
|
3131
|
-
function
|
|
3187
|
+
function It({
|
|
3132
3188
|
events: e,
|
|
3133
3189
|
visibleRange: a,
|
|
3134
3190
|
fetchJerseys: n,
|
|
3135
3191
|
buffer: r = 2,
|
|
3136
3192
|
debounceMs: i = 250
|
|
3137
3193
|
}) {
|
|
3138
|
-
const [s, l] = Z({}), d = U(/* @__PURE__ */ new Set()), h = U(0),
|
|
3194
|
+
const [s, l] = Z({}), d = U(/* @__PURE__ */ new Set()), h = U(0), g = U(null), m = U(null);
|
|
3139
3195
|
return Q(() => {
|
|
3140
3196
|
if (!(!e || e.length === 0))
|
|
3141
|
-
return
|
|
3142
|
-
var
|
|
3143
|
-
const u = (
|
|
3144
|
-
let x =
|
|
3145
|
-
const
|
|
3146
|
-
|
|
3147
|
-
const
|
|
3148
|
-
if (
|
|
3149
|
-
|
|
3150
|
-
const
|
|
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;
|
|
3201
|
+
const T = m.current;
|
|
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));
|
|
3204
|
+
if (E.length === 0) return;
|
|
3205
|
+
E.forEach((S) => d.current.add(S));
|
|
3206
|
+
const b = ++h.current;
|
|
3151
3207
|
(async () => {
|
|
3152
3208
|
try {
|
|
3153
|
-
const S = await n(
|
|
3154
|
-
if (
|
|
3155
|
-
|
|
3209
|
+
const S = await n(E);
|
|
3210
|
+
if (b !== h.current) {
|
|
3211
|
+
E.forEach((F) => d.current.delete(F));
|
|
3156
3212
|
return;
|
|
3157
3213
|
}
|
|
3158
3214
|
if (!(S != null && S.events)) {
|
|
3159
|
-
|
|
3160
|
-
(
|
|
3215
|
+
E.forEach(
|
|
3216
|
+
(F) => d.current.delete(F)
|
|
3161
3217
|
);
|
|
3162
3218
|
return;
|
|
3163
3219
|
}
|
|
3164
|
-
l((
|
|
3165
|
-
const I = { ...
|
|
3166
|
-
for (const [
|
|
3167
|
-
const q = Number(
|
|
3168
|
-
I[q] || (I[q] =
|
|
3220
|
+
l((F) => {
|
|
3221
|
+
const I = { ...F };
|
|
3222
|
+
for (const [_, O] of Object.entries(S.events)) {
|
|
3223
|
+
const q = Number(_);
|
|
3224
|
+
I[q] || (I[q] = O);
|
|
3169
3225
|
}
|
|
3170
3226
|
return I;
|
|
3171
3227
|
});
|
|
3172
|
-
const
|
|
3228
|
+
const L = new Set(
|
|
3173
3229
|
Object.keys(S.events).map(Number)
|
|
3174
3230
|
);
|
|
3175
|
-
|
|
3176
|
-
d.current.delete(
|
|
3231
|
+
E.forEach((F) => {
|
|
3232
|
+
d.current.delete(F);
|
|
3177
3233
|
});
|
|
3178
3234
|
} catch (S) {
|
|
3179
|
-
|
|
3180
|
-
(
|
|
3235
|
+
E.forEach(
|
|
3236
|
+
(L) => d.current.delete(L)
|
|
3181
3237
|
), console.error("Jersey fetch error", S);
|
|
3182
3238
|
}
|
|
3183
3239
|
})();
|
|
3184
3240
|
}, i), () => {
|
|
3185
|
-
|
|
3241
|
+
g.current && clearTimeout(g.current);
|
|
3186
3242
|
};
|
|
3187
3243
|
}, [e, a, r, i, n]), {
|
|
3188
3244
|
jerseys: s,
|
|
3189
3245
|
isPending: d.current
|
|
3190
3246
|
};
|
|
3191
3247
|
}
|
|
3192
|
-
const
|
|
3248
|
+
const Ln = (e) => {
|
|
3193
3249
|
const a = ["esports", "cyber"];
|
|
3194
3250
|
return e.filter((n) => {
|
|
3195
3251
|
var s, l;
|
|
@@ -3198,113 +3254,113 @@ const An = (e) => {
|
|
|
3198
3254
|
const i = typeof ((l = n == null ? void 0 : n.event) == null ? void 0 : l.group) == "string" ? n.event.group.toLowerCase() : "";
|
|
3199
3255
|
return !a.some((d) => i.includes(d));
|
|
3200
3256
|
});
|
|
3201
|
-
},
|
|
3202
|
-
function
|
|
3257
|
+
}, Fn = fe.memo(Ua);
|
|
3258
|
+
function qn({
|
|
3203
3259
|
items: e,
|
|
3204
3260
|
title: a = "En vivo",
|
|
3205
3261
|
iconUrl: n = "https://d28gilnhu2bcbp.cloudfront.net/landing/1778868672728-evento-en-vivo.gif",
|
|
3206
3262
|
onViewMore: r,
|
|
3207
3263
|
className: i = ""
|
|
3208
3264
|
}) {
|
|
3209
|
-
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 }), [
|
|
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 = () => {
|
|
3210
3266
|
var M;
|
|
3211
|
-
|
|
3267
|
+
k({
|
|
3212
3268
|
element: "evento_en_vivo_prev",
|
|
3213
|
-
label: `${
|
|
3269
|
+
label: `${T} - OraculoSeccionEventoEnVivo - Anterior`,
|
|
3214
3270
|
target: "prev",
|
|
3215
3271
|
event_type: "click",
|
|
3216
|
-
module_id:
|
|
3272
|
+
module_id: E,
|
|
3217
3273
|
metadata: {
|
|
3218
3274
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
3219
3275
|
},
|
|
3220
3276
|
tags: { section: "OraculoSeccionEventoEnVivo" }
|
|
3221
3277
|
}), (M = l.current) == null || M.prev();
|
|
3222
|
-
},
|
|
3278
|
+
}, w = () => {
|
|
3223
3279
|
var M;
|
|
3224
|
-
|
|
3280
|
+
k({
|
|
3225
3281
|
element: "evento_en_vivo_next",
|
|
3226
|
-
label: `${
|
|
3282
|
+
label: `${T} - OraculoSeccionEventoEnVivo - Siguiente`,
|
|
3227
3283
|
target: "next",
|
|
3228
3284
|
event_type: "click",
|
|
3229
|
-
module_id:
|
|
3285
|
+
module_id: E,
|
|
3230
3286
|
metadata: {
|
|
3231
3287
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
3232
3288
|
},
|
|
3233
3289
|
tags: { section: "OraculoSeccionEventoEnVivo" }
|
|
3234
3290
|
}), (M = l.current) == null || M.next();
|
|
3235
3291
|
}, S = () => {
|
|
3236
|
-
|
|
3292
|
+
k({
|
|
3237
3293
|
element: "evento_en_vivo_view_more",
|
|
3238
|
-
label: `${
|
|
3294
|
+
label: `${T} - OraculoSeccionEventoEnVivo - Ver más`,
|
|
3239
3295
|
target: "ver_mas",
|
|
3240
3296
|
event_type: "click",
|
|
3241
|
-
module_id:
|
|
3297
|
+
module_id: E,
|
|
3242
3298
|
metadata: {
|
|
3243
3299
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
3244
3300
|
},
|
|
3245
3301
|
tags: { section: "OraculoSeccionEventoEnVivo" }
|
|
3246
3302
|
}), Ba();
|
|
3247
|
-
},
|
|
3303
|
+
}, L = ke(async () => {
|
|
3248
3304
|
var M;
|
|
3249
3305
|
try {
|
|
3250
3306
|
if (!x.current) {
|
|
3251
3307
|
x.current = !0;
|
|
3252
3308
|
try {
|
|
3253
|
-
const K = await (await fetch("https://api.mktolimpo.com/api/kambi/eventos/orden")).json(),
|
|
3254
|
-
|
|
3255
|
-
} catch (
|
|
3256
|
-
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);
|
|
3257
3313
|
}
|
|
3258
3314
|
}
|
|
3259
3315
|
const B = await fetch(s);
|
|
3260
3316
|
if (!B.ok) throw new Error("Failed to fetch live events");
|
|
3261
|
-
const P = await B.json(), V =
|
|
3262
|
-
if (
|
|
3317
|
+
const P = await B.json(), V = Ln(P.events);
|
|
3318
|
+
if (b.current.size === 0)
|
|
3263
3319
|
m(V);
|
|
3264
3320
|
else {
|
|
3265
|
-
const
|
|
3266
|
-
const X =
|
|
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));
|
|
3267
3323
|
return (X !== void 0 ? X : 1 / 0) - (te !== void 0 ? te : 1 / 0);
|
|
3268
3324
|
});
|
|
3269
|
-
m(
|
|
3325
|
+
m(G);
|
|
3270
3326
|
}
|
|
3271
3327
|
} catch (B) {
|
|
3272
3328
|
console.error("LoadData Error:", B);
|
|
3273
3329
|
}
|
|
3274
3330
|
}, []);
|
|
3275
3331
|
Q(() => {
|
|
3276
|
-
|
|
3277
|
-
const M = setInterval(
|
|
3332
|
+
L();
|
|
3333
|
+
const M = setInterval(L, 2e4);
|
|
3278
3334
|
return () => clearInterval(M);
|
|
3279
|
-
}, [
|
|
3280
|
-
const { jerseys:
|
|
3281
|
-
events: (
|
|
3335
|
+
}, [L]);
|
|
3336
|
+
const { jerseys: F } = It({
|
|
3337
|
+
events: (g == null ? void 0 : g.map((M) => M.event)) || [],
|
|
3282
3338
|
// extract actual event objects
|
|
3283
3339
|
visibleRange: u,
|
|
3284
|
-
fetchJerseys:
|
|
3340
|
+
fetchJerseys: ht,
|
|
3285
3341
|
buffer: 3,
|
|
3286
3342
|
// same as your previous BUFFER
|
|
3287
3343
|
debounceMs: 300
|
|
3288
3344
|
// same as your previous debouncedVisibleRange
|
|
3289
|
-
}), I = i || void 0,
|
|
3290
|
-
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: {
|
|
3291
3347
|
// paddingLeft: 16,
|
|
3292
3348
|
// paddingRight: 16,
|
|
3293
3349
|
width: "100%",
|
|
3294
3350
|
boxSizing: "border-box"
|
|
3295
|
-
}, children: /* @__PURE__ */
|
|
3296
|
-
/* @__PURE__ */ t("div", { className:
|
|
3351
|
+
}, children: /* @__PURE__ */ y(H, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
3352
|
+
/* @__PURE__ */ t("div", { className: Rn.padding, children: /* @__PURE__ */ y(me, { spacing: 1.5, columns: "1fr auto ", justify: "start", children: [
|
|
3297
3353
|
/* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
|
|
3298
|
-
/* @__PURE__ */
|
|
3299
|
-
/* @__PURE__ */
|
|
3354
|
+
/* @__PURE__ */ y("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
|
|
3355
|
+
/* @__PURE__ */ y(me, { spacing: 1, columns: "auto auto", children: [
|
|
3300
3356
|
/* @__PURE__ */ t(
|
|
3301
3357
|
J,
|
|
3302
3358
|
{
|
|
3303
3359
|
ariaLabel: "Anterior",
|
|
3304
3360
|
variant: "secondary",
|
|
3305
3361
|
iconOnly: !0,
|
|
3306
|
-
leftIcon: /* @__PURE__ */ t(
|
|
3307
|
-
onClick:
|
|
3362
|
+
leftIcon: /* @__PURE__ */ t(Re, {}),
|
|
3363
|
+
onClick: A,
|
|
3308
3364
|
disabled: d.isStart
|
|
3309
3365
|
}
|
|
3310
3366
|
),
|
|
@@ -3314,8 +3370,8 @@ function Ln({
|
|
|
3314
3370
|
ariaLabel: "Siguiente",
|
|
3315
3371
|
variant: "secondary",
|
|
3316
3372
|
iconOnly: !0,
|
|
3317
|
-
rightIcon: /* @__PURE__ */ t(
|
|
3318
|
-
onClick:
|
|
3373
|
+
rightIcon: /* @__PURE__ */ t(Le, {}),
|
|
3374
|
+
onClick: w,
|
|
3319
3375
|
disabled: d.isEnd
|
|
3320
3376
|
}
|
|
3321
3377
|
)
|
|
@@ -3327,7 +3383,7 @@ function Ln({
|
|
|
3327
3383
|
he,
|
|
3328
3384
|
{
|
|
3329
3385
|
ref: l,
|
|
3330
|
-
items:
|
|
3386
|
+
items: O,
|
|
3331
3387
|
perPage: void 0,
|
|
3332
3388
|
showRightGradient: !q,
|
|
3333
3389
|
enableHorizontalWheel: !0,
|
|
@@ -3340,9 +3396,9 @@ function Ln({
|
|
|
3340
3396
|
},
|
|
3341
3397
|
renderItem: (M) => {
|
|
3342
3398
|
var V;
|
|
3343
|
-
const B = ((V = M.event) == null ? void 0 : V.id) || M.eventId, P = B in
|
|
3344
|
-
return
|
|
3345
|
-
|
|
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,
|
|
3346
3402
|
{
|
|
3347
3403
|
...M,
|
|
3348
3404
|
jersey: P
|
|
@@ -3351,48 +3407,48 @@ function Ln({
|
|
|
3351
3407
|
},
|
|
3352
3408
|
onMove: ({ isStart: M, isEnd: B, visibleStart: P, visibleEnd: V }) => {
|
|
3353
3409
|
h(
|
|
3354
|
-
(
|
|
3410
|
+
(G) => G.isStart === M && G.isEnd === B ? G : { isStart: M, isEnd: B }
|
|
3355
3411
|
), c({ start: P, end: V });
|
|
3356
3412
|
}
|
|
3357
3413
|
}
|
|
3358
3414
|
)
|
|
3359
3415
|
] }) });
|
|
3360
3416
|
}
|
|
3361
|
-
function
|
|
3362
|
-
return /* @__PURE__ */
|
|
3363
|
-
/* @__PURE__ */ t(
|
|
3364
|
-
/* @__PURE__ */ t("div", { className: be.cardBackground, children: /* @__PURE__ */
|
|
3365
|
-
/* @__PURE__ */
|
|
3366
|
-
/* @__PURE__ */ t(
|
|
3367
|
-
/* @__PURE__ */ t(
|
|
3417
|
+
function zn() {
|
|
3418
|
+
return /* @__PURE__ */ y("div", { className: be.cardContainer, children: [
|
|
3419
|
+
/* @__PURE__ */ t(pt, { title: "" }),
|
|
3420
|
+
/* @__PURE__ */ t("div", { className: be.cardBackground, children: /* @__PURE__ */ y(H, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
3421
|
+
/* @__PURE__ */ y(H, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
3422
|
+
/* @__PURE__ */ t(W, { variant: "circular", width: 48, height: 48 }),
|
|
3423
|
+
/* @__PURE__ */ t(W, { variant: "circular", width: 48, height: 48 })
|
|
3368
3424
|
] }),
|
|
3369
|
-
/* @__PURE__ */
|
|
3370
|
-
/* @__PURE__ */
|
|
3371
|
-
/* @__PURE__ */ t(
|
|
3372
|
-
/* @__PURE__ */ t(
|
|
3425
|
+
/* @__PURE__ */ y(H, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
3426
|
+
/* @__PURE__ */ y(H, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
3427
|
+
/* @__PURE__ */ t(W, { variant: "text", width: 80, height: 12 }),
|
|
3428
|
+
/* @__PURE__ */ t(W, { variant: "text", width: 80, height: 12 })
|
|
3373
3429
|
] }),
|
|
3374
|
-
/* @__PURE__ */ t(H, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ t(
|
|
3375
|
-
/* @__PURE__ */
|
|
3376
|
-
/* @__PURE__ */ t(
|
|
3377
|
-
/* @__PURE__ */ t(
|
|
3378
|
-
/* @__PURE__ */ t(
|
|
3430
|
+
/* @__PURE__ */ t(H, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ t(W, { variant: "text", width: 160, height: 12 }) }),
|
|
3431
|
+
/* @__PURE__ */ y(H, { direction: "row", spacing: 1, children: [
|
|
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 })
|
|
3379
3435
|
] }),
|
|
3380
|
-
/* @__PURE__ */ t("div", { className: be.jugadas, children: /* @__PURE__ */
|
|
3381
|
-
/* @__PURE__ */ t(
|
|
3382
|
-
/* @__PURE__ */ t(
|
|
3383
|
-
/* @__PURE__ */ t(
|
|
3436
|
+
/* @__PURE__ */ t("div", { className: be.jugadas, children: /* @__PURE__ */ y(H, { direction: "row", spacing: 1, children: [
|
|
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 })
|
|
3384
3440
|
] }) })
|
|
3385
3441
|
] })
|
|
3386
3442
|
] }) })
|
|
3387
3443
|
] });
|
|
3388
3444
|
}
|
|
3389
|
-
const
|
|
3390
|
-
wrapper:
|
|
3391
|
-
container:
|
|
3392
|
-
buttonWrapper:
|
|
3393
|
-
padding:
|
|
3394
|
-
},
|
|
3395
|
-
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) {
|
|
3396
3452
|
const r = [];
|
|
3397
3453
|
for (let i = 0; i < e.length; i += a) {
|
|
3398
3454
|
if (n.aborted)
|
|
@@ -3404,12 +3460,12 @@ async function Vn(e, a = 2, n) {
|
|
|
3404
3460
|
}
|
|
3405
3461
|
return r;
|
|
3406
3462
|
}
|
|
3407
|
-
function
|
|
3463
|
+
function jn(e) {
|
|
3408
3464
|
return [...e].sort(
|
|
3409
3465
|
(a, n) => new Date(a.start).getTime() - new Date(n.start).getTime()
|
|
3410
3466
|
);
|
|
3411
3467
|
}
|
|
3412
|
-
function
|
|
3468
|
+
function Hn(e) {
|
|
3413
3469
|
const a = /* @__PURE__ */ new Date(), n = new Date(a.getTime() + 480 * 60 * 60 * 1e3);
|
|
3414
3470
|
return e.filter((r) => {
|
|
3415
3471
|
if (!r.start) return !1;
|
|
@@ -3417,7 +3473,7 @@ function Gn(e) {
|
|
|
3417
3473
|
return i >= a && i <= n;
|
|
3418
3474
|
});
|
|
3419
3475
|
}
|
|
3420
|
-
function
|
|
3476
|
+
function Kn(e, a) {
|
|
3421
3477
|
const r = a.filter((i) => {
|
|
3422
3478
|
var s;
|
|
3423
3479
|
return ((s = i.betOfferType) == null ? void 0 : s.id) === 2;
|
|
@@ -3427,14 +3483,14 @@ function jn(e, a) {
|
|
|
3427
3483
|
outcome: r[i.id]
|
|
3428
3484
|
}));
|
|
3429
3485
|
}
|
|
3430
|
-
function
|
|
3486
|
+
function Zn({
|
|
3431
3487
|
items: e,
|
|
3432
3488
|
title: a = "En vivo",
|
|
3433
3489
|
iconUrl: n,
|
|
3434
3490
|
onViewMore: r,
|
|
3435
3491
|
className: i = ""
|
|
3436
3492
|
}) {
|
|
3437
|
-
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",
|
|
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 = () => {
|
|
3438
3494
|
s({
|
|
3439
3495
|
element: "evento_semana_view_more",
|
|
3440
3496
|
label: `${l} - OraculoSeccionEventoSemana - Ver más`,
|
|
@@ -3445,11 +3501,11 @@ function Hn({
|
|
|
3445
3501
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
3446
3502
|
},
|
|
3447
3503
|
tags: { section: "OraculoSeccionEventoSemana" }
|
|
3448
|
-
}),
|
|
3504
|
+
}), Ra();
|
|
3449
3505
|
};
|
|
3450
|
-
async function
|
|
3506
|
+
async function E(I) {
|
|
3451
3507
|
var q, M;
|
|
3452
|
-
let
|
|
3508
|
+
let _ = [], O = [];
|
|
3453
3509
|
try {
|
|
3454
3510
|
const B = await fetch(
|
|
3455
3511
|
"https://api.mktolimpo.com/api/kambi/eventos/orden",
|
|
@@ -3457,7 +3513,7 @@ function Hn({
|
|
|
3457
3513
|
);
|
|
3458
3514
|
if (B.ok) {
|
|
3459
3515
|
const P = await B.json();
|
|
3460
|
-
|
|
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) || [];
|
|
3461
3517
|
}
|
|
3462
3518
|
} catch (B) {
|
|
3463
3519
|
B.name !== "AbortError" && console.warn("Order API not available, using default group order");
|
|
@@ -3471,58 +3527,58 @@ function Hn({
|
|
|
3471
3527
|
console.error("Football groups not found");
|
|
3472
3528
|
return;
|
|
3473
3529
|
}
|
|
3474
|
-
let
|
|
3475
|
-
if (
|
|
3530
|
+
let G = [...V.groups];
|
|
3531
|
+
if (_.length > 0) {
|
|
3476
3532
|
const o = new Map(
|
|
3477
|
-
|
|
3533
|
+
_.map((p, C) => [p, C])
|
|
3478
3534
|
);
|
|
3479
|
-
|
|
3480
|
-
const
|
|
3481
|
-
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;
|
|
3482
3538
|
});
|
|
3483
3539
|
}
|
|
3484
|
-
const
|
|
3540
|
+
const j = G.slice(0, 5), X = (o) => {
|
|
3485
3541
|
const p = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football";
|
|
3486
3542
|
if (o.groups && o.groups.length > 0) {
|
|
3487
3543
|
const C = o.groups[0];
|
|
3488
3544
|
return [
|
|
3489
|
-
`${p}/${o.termKey}/${C.termKey}/all/matches.json?${
|
|
3545
|
+
`${p}/${o.termKey}/${C.termKey}/all/matches.json?${k}`
|
|
3490
3546
|
];
|
|
3491
3547
|
}
|
|
3492
3548
|
return [
|
|
3493
|
-
`${p}/${o.termKey}/all/all/matches.json?${
|
|
3549
|
+
`${p}/${o.termKey}/all/all/matches.json?${k}`
|
|
3494
3550
|
];
|
|
3495
|
-
}, te =
|
|
3496
|
-
|
|
3551
|
+
}, te = j.flatMap(X);
|
|
3552
|
+
b(te, O, I);
|
|
3497
3553
|
} catch (B) {
|
|
3498
3554
|
console.error(B);
|
|
3499
3555
|
}
|
|
3500
3556
|
}
|
|
3501
|
-
async function
|
|
3557
|
+
async function b(I, _, O) {
|
|
3502
3558
|
try {
|
|
3503
|
-
const q = await
|
|
3559
|
+
const q = await Gn(I, 2, O);
|
|
3504
3560
|
let M = [], B = [];
|
|
3505
3561
|
q.forEach((K) => {
|
|
3506
|
-
K.events && (M.push(...K.events.map((
|
|
3507
|
-
...K.events.flatMap((
|
|
3562
|
+
K.events && (M.push(...K.events.map((j) => j.event)), B.push(
|
|
3563
|
+
...K.events.flatMap((j) => j.betOffers || [])
|
|
3508
3564
|
));
|
|
3509
3565
|
});
|
|
3510
|
-
const P =
|
|
3511
|
-
let
|
|
3512
|
-
if (
|
|
3566
|
+
const P = Kn(M, B), V = jn(Hn(P));
|
|
3567
|
+
let G = V;
|
|
3568
|
+
if (_.length > 0) {
|
|
3513
3569
|
const K = new Map(
|
|
3514
|
-
|
|
3515
|
-
String(
|
|
3570
|
+
_.map((j, X) => [
|
|
3571
|
+
String(j),
|
|
3516
3572
|
X
|
|
3517
3573
|
])
|
|
3518
3574
|
);
|
|
3519
|
-
|
|
3520
|
-
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));
|
|
3521
3577
|
return te !== void 0 && o !== void 0 ? te - o : te !== void 0 ? -1 : o !== void 0 ? 1 : 0;
|
|
3522
3578
|
});
|
|
3523
3579
|
}
|
|
3524
|
-
if (
|
|
3525
|
-
|
|
3580
|
+
if (O.aborted) return;
|
|
3581
|
+
f(G);
|
|
3526
3582
|
} catch (q) {
|
|
3527
3583
|
console.error("Error loading events:", q);
|
|
3528
3584
|
}
|
|
@@ -3530,32 +3586,32 @@ function Hn({
|
|
|
3530
3586
|
Q(() => {
|
|
3531
3587
|
if (!e) return;
|
|
3532
3588
|
const I = new AbortController();
|
|
3533
|
-
return
|
|
3589
|
+
return E(I.signal), () => {
|
|
3534
3590
|
I.abort();
|
|
3535
3591
|
};
|
|
3536
3592
|
}, [e]);
|
|
3537
|
-
const
|
|
3593
|
+
const A = i || void 0, w = {
|
|
3538
3594
|
paddingLeft: 0,
|
|
3539
3595
|
width: "100%",
|
|
3540
3596
|
boxSizing: "border-box"
|
|
3541
|
-
}, { jerseys: S } =
|
|
3597
|
+
}, { jerseys: S } = It({
|
|
3542
3598
|
events: c,
|
|
3543
|
-
visibleRange:
|
|
3544
|
-
fetchJerseys:
|
|
3599
|
+
visibleRange: v,
|
|
3600
|
+
fetchJerseys: ht,
|
|
3545
3601
|
buffer: 2,
|
|
3546
3602
|
debounceMs: 250
|
|
3547
|
-
}),
|
|
3548
|
-
return !
|
|
3549
|
-
/* @__PURE__ */ t("div", { className:
|
|
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: [
|
|
3605
|
+
/* @__PURE__ */ t("div", { className: Oe.container, children: /* @__PURE__ */ y(H, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
3550
3606
|
/* @__PURE__ */ t(ge, { title: "Eventos de la semana" }),
|
|
3551
|
-
/* @__PURE__ */ t("div", { className:
|
|
3607
|
+
/* @__PURE__ */ t("div", { className: Oe.buttonWrapper, children: /* @__PURE__ */ t(
|
|
3552
3608
|
J,
|
|
3553
3609
|
{
|
|
3554
3610
|
variant: "secondary",
|
|
3555
3611
|
size: "lg",
|
|
3556
3612
|
fullWidth: !0,
|
|
3557
3613
|
onClick: () => {
|
|
3558
|
-
|
|
3614
|
+
T();
|
|
3559
3615
|
},
|
|
3560
3616
|
children: "Ver más"
|
|
3561
3617
|
}
|
|
@@ -3564,12 +3620,12 @@ function Hn({
|
|
|
3564
3620
|
/* @__PURE__ */ t("div", { style: { minWidth: "180px" }, children: /* @__PURE__ */ t(
|
|
3565
3621
|
he,
|
|
3566
3622
|
{
|
|
3567
|
-
ref:
|
|
3568
|
-
items:
|
|
3623
|
+
ref: g,
|
|
3624
|
+
items: L ? Array(6).fill({}) : c.slice(0, 20),
|
|
3569
3625
|
perPage: 3.5,
|
|
3570
3626
|
gap: "16px",
|
|
3571
3627
|
enableHorizontalWheel: !0,
|
|
3572
|
-
showRightGradient: !
|
|
3628
|
+
showRightGradient: !F,
|
|
3573
3629
|
options: { autoWidth: !0, trimSpace: !0 },
|
|
3574
3630
|
breakpoints: {
|
|
3575
3631
|
1024: {
|
|
@@ -3580,12 +3636,12 @@ function Hn({
|
|
|
3580
3636
|
}
|
|
3581
3637
|
},
|
|
3582
3638
|
renderItem: (I) => {
|
|
3583
|
-
const
|
|
3584
|
-
return
|
|
3639
|
+
const _ = I.id, O = _ in S ? S[_] : void 0;
|
|
3640
|
+
return L ? /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(zn, {}) }) : /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Wn, { event: I, jersey: O }) });
|
|
3585
3641
|
},
|
|
3586
|
-
onMove: ({ isStart: I, isEnd:
|
|
3587
|
-
u({ isStart: I, isEnd:
|
|
3588
|
-
start:
|
|
3642
|
+
onMove: ({ isStart: I, isEnd: _, visibleStart: O, visibleEnd: q, source: M }) => {
|
|
3643
|
+
u({ isStart: I, isEnd: _ }), x({
|
|
3644
|
+
start: O,
|
|
3589
3645
|
end: q
|
|
3590
3646
|
}), M === "user" && s({
|
|
3591
3647
|
element: "evento_semana_carousel_slide",
|
|
@@ -3595,10 +3651,10 @@ function Hn({
|
|
|
3595
3651
|
module_id: d,
|
|
3596
3652
|
metadata: {
|
|
3597
3653
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
3598
|
-
visibleStart:
|
|
3654
|
+
visibleStart: O,
|
|
3599
3655
|
visibleEnd: q,
|
|
3600
3656
|
isStart: I,
|
|
3601
|
-
isEnd:
|
|
3657
|
+
isEnd: _
|
|
3602
3658
|
},
|
|
3603
3659
|
tags: { section: "OraculoSeccionEventoSemana" }
|
|
3604
3660
|
});
|
|
@@ -3607,9 +3663,9 @@ function Hn({
|
|
|
3607
3663
|
) })
|
|
3608
3664
|
] }) });
|
|
3609
3665
|
}
|
|
3610
|
-
const
|
|
3666
|
+
const Jn = -300, Xn = (e) => /[zZ]|[+-]\d{2}:\d{2}$/.test(e), ot = (e) => {
|
|
3611
3667
|
if (!e) return null;
|
|
3612
|
-
if (
|
|
3668
|
+
if (Xn(e)) {
|
|
3613
3669
|
const h = new Date(e).getTime();
|
|
3614
3670
|
return Number.isNaN(h) ? null : h;
|
|
3615
3671
|
}
|
|
@@ -3622,37 +3678,37 @@ const Kn = -300, Zn = (e) => /[zZ]|[+-]\d{2}:\d{2}$/.test(e), nt = (e) => {
|
|
|
3622
3678
|
Number(n),
|
|
3623
3679
|
Number(r) - 1,
|
|
3624
3680
|
Number(i),
|
|
3625
|
-
Number(s) -
|
|
3681
|
+
Number(s) - Jn / 60,
|
|
3626
3682
|
Number(l),
|
|
3627
3683
|
Number(d)
|
|
3628
3684
|
);
|
|
3629
|
-
},
|
|
3630
|
-
var d, h,
|
|
3631
|
-
const n = (
|
|
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);
|
|
3632
3688
|
return !(s != null && a < s || l != null && a >= l);
|
|
3633
3689
|
};
|
|
3634
|
-
function
|
|
3690
|
+
function Qn({
|
|
3635
3691
|
backgrounds: e,
|
|
3636
3692
|
items: a,
|
|
3637
3693
|
hideItems: n,
|
|
3638
3694
|
user: r = null
|
|
3639
3695
|
}) {
|
|
3640
3696
|
var te;
|
|
3641
|
-
const [i, s] = Z(0), l = oe(), d = re(), h = le(),
|
|
3642
|
-
var
|
|
3643
|
-
const
|
|
3644
|
-
return
|
|
3645
|
-
}).map(({ item: p }) => p),
|
|
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) => {
|
|
3698
|
+
var R, D;
|
|
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;
|
|
3701
|
+
}).map(({ item: p }) => p), E = ie(() => T(a), [a]), b = ie(() => {
|
|
3646
3702
|
const o = (e != null ? e : []).filter(
|
|
3647
|
-
(p) =>
|
|
3703
|
+
(p) => Yn(p, c)
|
|
3648
3704
|
);
|
|
3649
|
-
return
|
|
3650
|
-
}, [e, c]),
|
|
3705
|
+
return T(o);
|
|
3706
|
+
}, [e, c]), A = b.length || 1, w = !b || b.length === 0, S = !w && b.length > 1, L = !n && E.length > 0;
|
|
3651
3707
|
De("(max-width:950px)");
|
|
3652
|
-
const
|
|
3708
|
+
const F = "#B5B5B5";
|
|
3653
3709
|
Q(() => {
|
|
3654
3710
|
const o = window.setInterval(() => {
|
|
3655
|
-
|
|
3711
|
+
f(Date.now());
|
|
3656
3712
|
}, 3e4);
|
|
3657
3713
|
return () => window.clearInterval(o);
|
|
3658
3714
|
}, []);
|
|
@@ -3664,22 +3720,22 @@ function Xn({
|
|
|
3664
3720
|
width: 48,
|
|
3665
3721
|
height: 40,
|
|
3666
3722
|
borderRadius: "12px",
|
|
3667
|
-
border: `1.5px solid ${
|
|
3723
|
+
border: `1.5px solid ${F}`,
|
|
3668
3724
|
py: 1,
|
|
3669
3725
|
px: 1.5,
|
|
3670
|
-
color:
|
|
3726
|
+
color: F,
|
|
3671
3727
|
backgroundColor: "transparent",
|
|
3672
3728
|
"&:hover": {
|
|
3673
3729
|
backgroundColor: "rgba(181,181,181,0.08)"
|
|
3674
3730
|
},
|
|
3675
3731
|
"&.Mui-disabled": {
|
|
3676
3732
|
opacity: 0.35,
|
|
3677
|
-
borderColor:
|
|
3678
|
-
color:
|
|
3733
|
+
borderColor: F,
|
|
3734
|
+
color: F,
|
|
3679
3735
|
backgroundColor: "transparent",
|
|
3680
3736
|
cursor: "default"
|
|
3681
3737
|
}
|
|
3682
|
-
},
|
|
3738
|
+
}, _ = ie(
|
|
3683
3739
|
() => ({
|
|
3684
3740
|
type: "loop",
|
|
3685
3741
|
perMove: 1,
|
|
@@ -3696,13 +3752,13 @@ function Xn({
|
|
|
3696
3752
|
}, 500);
|
|
3697
3753
|
return () => clearTimeout(o);
|
|
3698
3754
|
}, []);
|
|
3699
|
-
const
|
|
3755
|
+
const O = (o, p, C) => {
|
|
3700
3756
|
var D, Y;
|
|
3701
|
-
const
|
|
3702
|
-
if (
|
|
3757
|
+
const $ = !!p.idFunction, N = !!p.href;
|
|
3758
|
+
if ($)
|
|
3703
3759
|
switch (o.preventDefault(), o.stopPropagation(), p.idFunction) {
|
|
3704
3760
|
case "deposito":
|
|
3705
|
-
|
|
3761
|
+
v == null || v(!0);
|
|
3706
3762
|
return;
|
|
3707
3763
|
case "abrirLive":
|
|
3708
3764
|
x == null || x();
|
|
@@ -3710,21 +3766,21 @@ function Xn({
|
|
|
3710
3766
|
default:
|
|
3711
3767
|
return;
|
|
3712
3768
|
}
|
|
3713
|
-
if (
|
|
3769
|
+
if (!N) {
|
|
3714
3770
|
o.preventDefault(), o.stopPropagation();
|
|
3715
3771
|
return;
|
|
3716
3772
|
}
|
|
3717
|
-
const
|
|
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}`;
|
|
3718
3774
|
l({
|
|
3719
3775
|
element: "banner_carousel",
|
|
3720
|
-
label: `${d} - OraculoSeccionBanners - Banner click: ${
|
|
3776
|
+
label: `${d} - OraculoSeccionBanners - Banner click: ${R}`,
|
|
3721
3777
|
target: p.href || "no_url",
|
|
3722
3778
|
event_type: "click",
|
|
3723
3779
|
module_id: h,
|
|
3724
3780
|
metadata: {
|
|
3725
3781
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
3726
3782
|
banner_position: C + 1,
|
|
3727
|
-
banner_total: (
|
|
3783
|
+
banner_total: (b == null ? void 0 : b.length) || 0
|
|
3728
3784
|
},
|
|
3729
3785
|
tags: {
|
|
3730
3786
|
banner_type: "carousel",
|
|
@@ -3748,7 +3804,7 @@ function Xn({
|
|
|
3748
3804
|
item_label: o.label || "no_label"
|
|
3749
3805
|
}
|
|
3750
3806
|
}), !r && o.label == "MISIONES") {
|
|
3751
|
-
|
|
3807
|
+
k == null || k((p = o.href) != null ? p : "");
|
|
3752
3808
|
return;
|
|
3753
3809
|
}
|
|
3754
3810
|
if (o.onClick) {
|
|
@@ -3756,52 +3812,52 @@ function Xn({
|
|
|
3756
3812
|
return;
|
|
3757
3813
|
}
|
|
3758
3814
|
o.href && typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(o.href);
|
|
3759
|
-
}, M = 5e3, B = U(null), P = !
|
|
3815
|
+
}, M = 5e3, B = U(null), P = !w && ((te = b == null ? void 0 : b.length) != null ? te : 0) > 1, V = () => {
|
|
3760
3816
|
B.current != null && (window.clearTimeout(B.current), B.current = null);
|
|
3761
|
-
},
|
|
3817
|
+
}, G = () => {
|
|
3762
3818
|
V(), P && (B.current = window.setTimeout(() => {
|
|
3763
3819
|
var o;
|
|
3764
|
-
u.current = !0, (o =
|
|
3820
|
+
u.current = !0, (o = g.current) == null || o.next();
|
|
3765
3821
|
}, M));
|
|
3766
3822
|
};
|
|
3767
|
-
Q(() => (
|
|
3823
|
+
Q(() => (G(), () => V()), [P, M]);
|
|
3768
3824
|
const K = (o) => {
|
|
3769
3825
|
var p;
|
|
3770
|
-
o.preventDefault(), o.stopPropagation(), V(), (p =
|
|
3771
|
-
},
|
|
3826
|
+
o.preventDefault(), o.stopPropagation(), V(), (p = g.current) == null || p.prev();
|
|
3827
|
+
}, j = (o) => {
|
|
3772
3828
|
var p;
|
|
3773
|
-
o.preventDefault(), o.stopPropagation(), V(), (p =
|
|
3829
|
+
o.preventDefault(), o.stopPropagation(), V(), (p = g.current) == null || p.next();
|
|
3774
3830
|
}, X = (o) => {
|
|
3775
|
-
var N,
|
|
3776
|
-
const p = (o %
|
|
3831
|
+
var $, N, R, D;
|
|
3832
|
+
const p = (o % A + A) % A;
|
|
3777
3833
|
if (!m.current) return;
|
|
3778
|
-
const C = (
|
|
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}`;
|
|
3779
3835
|
l({
|
|
3780
3836
|
element: "banner_carousel",
|
|
3781
3837
|
label: `${d} - OraculoSeccionBanners - Banner view: Slide ${p + 1} - ${C}`,
|
|
3782
|
-
target: ((D =
|
|
3838
|
+
target: ((D = b == null ? void 0 : b[p]) == null ? void 0 : D.href) || "no_url",
|
|
3783
3839
|
event_type: "view",
|
|
3784
3840
|
module_id: h,
|
|
3785
3841
|
metadata: {
|
|
3786
3842
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
3787
3843
|
slide_index: p + 1,
|
|
3788
|
-
total_slides:
|
|
3844
|
+
total_slides: A,
|
|
3789
3845
|
interaction_type: "manual_slide"
|
|
3790
3846
|
},
|
|
3791
3847
|
tags: { banner_position: String(p + 1) }
|
|
3792
3848
|
});
|
|
3793
3849
|
};
|
|
3794
|
-
return /* @__PURE__ */
|
|
3850
|
+
return /* @__PURE__ */ y(
|
|
3795
3851
|
ee,
|
|
3796
3852
|
{
|
|
3797
3853
|
component: "section",
|
|
3798
3854
|
sx: {
|
|
3799
3855
|
position: "relative",
|
|
3800
3856
|
overflow: "visible",
|
|
3801
|
-
pb:
|
|
3857
|
+
pb: L ? { xs: "40px", sm: 0 } : 0
|
|
3802
3858
|
},
|
|
3803
3859
|
children: [
|
|
3804
|
-
/* @__PURE__ */
|
|
3860
|
+
/* @__PURE__ */ y(
|
|
3805
3861
|
ee,
|
|
3806
3862
|
{
|
|
3807
3863
|
sx: {
|
|
@@ -3828,39 +3884,39 @@ function Xn({
|
|
|
3828
3884
|
children: /* @__PURE__ */ t(
|
|
3829
3885
|
he,
|
|
3830
3886
|
{
|
|
3831
|
-
ref:
|
|
3832
|
-
items:
|
|
3887
|
+
ref: g,
|
|
3888
|
+
items: b,
|
|
3833
3889
|
perPage: 1,
|
|
3834
3890
|
gap: "0px",
|
|
3835
3891
|
enableHorizontalWheel: !0,
|
|
3836
|
-
options:
|
|
3892
|
+
options: _,
|
|
3837
3893
|
onMove: ({ index: o, source: p }) => {
|
|
3838
|
-
const C = (o %
|
|
3894
|
+
const C = (o % A + A) % A;
|
|
3839
3895
|
s(C);
|
|
3840
|
-
const
|
|
3841
|
-
u.current = !1, p === "user" && (
|
|
3896
|
+
const $ = u.current;
|
|
3897
|
+
u.current = !1, p === "user" && (G(), $ || X(o));
|
|
3842
3898
|
},
|
|
3843
3899
|
renderItem: (o, p) => {
|
|
3844
3900
|
var D, Y, ne;
|
|
3845
|
-
const C = !!o.idFunction,
|
|
3846
|
-
return /* @__PURE__ */
|
|
3901
|
+
const C = !!o.idFunction, $ = !!o.href, N = $ && !C, R = C || $;
|
|
3902
|
+
return /* @__PURE__ */ y(
|
|
3847
3903
|
ee,
|
|
3848
3904
|
{
|
|
3849
|
-
component:
|
|
3850
|
-
href:
|
|
3851
|
-
target:
|
|
3852
|
-
rel:
|
|
3853
|
-
onClick: (ae) =>
|
|
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,
|
|
3909
|
+
onClick: (ae) => O(ae, o, p),
|
|
3854
3910
|
sx: {
|
|
3855
3911
|
position: "relative",
|
|
3856
3912
|
width: "100%",
|
|
3857
3913
|
height: "100%",
|
|
3858
3914
|
display: "block",
|
|
3859
3915
|
textDecoration: "none",
|
|
3860
|
-
cursor:
|
|
3916
|
+
cursor: R ? "pointer" : "default"
|
|
3861
3917
|
},
|
|
3862
3918
|
children: [
|
|
3863
|
-
/* @__PURE__ */
|
|
3919
|
+
/* @__PURE__ */ y(ee, { component: "picture", sx: { position: "absolute", inset: 0, lineHeight: 0 }, children: [
|
|
3864
3920
|
/* @__PURE__ */ t("source", { srcSet: o.desktopSrc, media: "(min-width:950px)" }),
|
|
3865
3921
|
/* @__PURE__ */ t("source", { srcSet: o.mobileSrc, media: "(max-width:949px)" }),
|
|
3866
3922
|
/* @__PURE__ */ t(
|
|
@@ -3907,7 +3963,7 @@ function Xn({
|
|
|
3907
3963
|
)
|
|
3908
3964
|
}
|
|
3909
3965
|
),
|
|
3910
|
-
S && /* @__PURE__ */
|
|
3966
|
+
S && /* @__PURE__ */ y(pe, { children: [
|
|
3911
3967
|
/* @__PURE__ */ t(
|
|
3912
3968
|
Ke,
|
|
3913
3969
|
{
|
|
@@ -3919,21 +3975,21 @@ function Xn({
|
|
|
3919
3975
|
"@media (max-width:1024px)": { left: 24 },
|
|
3920
3976
|
"@media (max-width:786px)": { display: "none" }
|
|
3921
3977
|
},
|
|
3922
|
-
children: /* @__PURE__ */ t(
|
|
3978
|
+
children: /* @__PURE__ */ t(Re, {})
|
|
3923
3979
|
}
|
|
3924
3980
|
),
|
|
3925
3981
|
/* @__PURE__ */ t(
|
|
3926
3982
|
Ke,
|
|
3927
3983
|
{
|
|
3928
3984
|
"aria-label": "Siguiente",
|
|
3929
|
-
onClick:
|
|
3985
|
+
onClick: j,
|
|
3930
3986
|
sx: {
|
|
3931
3987
|
...I,
|
|
3932
3988
|
right: "120px",
|
|
3933
3989
|
"@media (max-width:1024px)": { right: 24 },
|
|
3934
3990
|
"@media (max-width:786px)": { display: "none" }
|
|
3935
3991
|
},
|
|
3936
|
-
children: /* @__PURE__ */ t(
|
|
3992
|
+
children: /* @__PURE__ */ t(Le, {})
|
|
3937
3993
|
}
|
|
3938
3994
|
)
|
|
3939
3995
|
] }),
|
|
@@ -3950,20 +4006,20 @@ function Xn({
|
|
|
3950
4006
|
zIndex: 2
|
|
3951
4007
|
},
|
|
3952
4008
|
children: /* @__PURE__ */ t(
|
|
3953
|
-
|
|
4009
|
+
ut,
|
|
3954
4010
|
{
|
|
3955
|
-
total:
|
|
4011
|
+
total: A,
|
|
3956
4012
|
active: i,
|
|
3957
4013
|
durationMs: M
|
|
3958
4014
|
},
|
|
3959
|
-
`${i}-${
|
|
4015
|
+
`${i}-${A}`
|
|
3960
4016
|
)
|
|
3961
4017
|
}
|
|
3962
4018
|
)
|
|
3963
4019
|
]
|
|
3964
4020
|
}
|
|
3965
4021
|
),
|
|
3966
|
-
|
|
4022
|
+
L && /* @__PURE__ */ t(
|
|
3967
4023
|
ee,
|
|
3968
4024
|
{
|
|
3969
4025
|
sx: {
|
|
@@ -3981,7 +4037,7 @@ function Xn({
|
|
|
3981
4037
|
boxShadow: "0 10px 24px rgba(0,0,0,.35)",
|
|
3982
4038
|
zIndex: 3
|
|
3983
4039
|
},
|
|
3984
|
-
children:
|
|
4040
|
+
children: E == null ? void 0 : E.map((o) => /* @__PURE__ */ y(
|
|
3985
4041
|
ee,
|
|
3986
4042
|
{
|
|
3987
4043
|
sx: {
|
|
@@ -4028,7 +4084,7 @@ function Xn({
|
|
|
4028
4084
|
},
|
|
4029
4085
|
onClick: () => q(o),
|
|
4030
4086
|
children: [
|
|
4031
|
-
o.icon && /* @__PURE__ */
|
|
4087
|
+
o.icon && /* @__PURE__ */ y(
|
|
4032
4088
|
ee,
|
|
4033
4089
|
{
|
|
4034
4090
|
sx: {
|
|
@@ -4076,7 +4132,7 @@ function Xn({
|
|
|
4076
4132
|
}
|
|
4077
4133
|
),
|
|
4078
4134
|
/* @__PURE__ */ t(
|
|
4079
|
-
|
|
4135
|
+
lt,
|
|
4080
4136
|
{
|
|
4081
4137
|
className: "menu-text",
|
|
4082
4138
|
sx: {
|
|
@@ -4098,7 +4154,7 @@ function Xn({
|
|
|
4098
4154
|
}
|
|
4099
4155
|
);
|
|
4100
4156
|
}
|
|
4101
|
-
const
|
|
4157
|
+
const eo = [
|
|
4102
4158
|
{ src: "https://d28gilnhu2bcbp.cloudfront.net/landing/IBK.svg", alt: "Interbank" },
|
|
4103
4159
|
{ src: "https://d28gilnhu2bcbp.cloudfront.net/landing/Yape.svg", alt: "Yape" },
|
|
4104
4160
|
{ src: "https://d28gilnhu2bcbp.cloudfront.net/landing/BCP.png", alt: "BCP" },
|
|
@@ -4108,14 +4164,14 @@ const Yn = [
|
|
|
4108
4164
|
{ src: "https://d28gilnhu2bcbp.cloudfront.net/landing/niubiz.svg", alt: "Niubiz" },
|
|
4109
4165
|
{ src: "https://d28gilnhu2bcbp.cloudfront.net/landing/bbva.png", alt: "BBVA" }
|
|
4110
4166
|
];
|
|
4111
|
-
function
|
|
4167
|
+
function to({
|
|
4112
4168
|
title: e = "Medios de pago",
|
|
4113
|
-
items: a =
|
|
4169
|
+
items: a = eo
|
|
4114
4170
|
}) {
|
|
4115
4171
|
const n = Math.ceil(a.length / 2), r = a.slice(0, n), i = a.slice(n);
|
|
4116
|
-
return /* @__PURE__ */
|
|
4172
|
+
return /* @__PURE__ */ y(ee, { component: "section", "aria-labelledby": "mp-title", sx: { color: "#fff" }, children: [
|
|
4117
4173
|
/* @__PURE__ */ t(
|
|
4118
|
-
|
|
4174
|
+
lt,
|
|
4119
4175
|
{
|
|
4120
4176
|
id: "mp-title",
|
|
4121
4177
|
variant: "h6",
|
|
@@ -4142,9 +4198,9 @@ function Qn({
|
|
|
4142
4198
|
}
|
|
4143
4199
|
}
|
|
4144
4200
|
),
|
|
4145
|
-
/* @__PURE__ */
|
|
4201
|
+
/* @__PURE__ */ y(Ce, { spacing: { xs: 2, md: 3 }, alignItems: "center", children: [
|
|
4146
4202
|
/* @__PURE__ */ t(
|
|
4147
|
-
|
|
4203
|
+
Ce,
|
|
4148
4204
|
{
|
|
4149
4205
|
direction: "row",
|
|
4150
4206
|
justifyContent: "center",
|
|
@@ -4155,7 +4211,7 @@ function Qn({
|
|
|
4155
4211
|
}
|
|
4156
4212
|
),
|
|
4157
4213
|
/* @__PURE__ */ t(
|
|
4158
|
-
|
|
4214
|
+
Ce,
|
|
4159
4215
|
{
|
|
4160
4216
|
direction: "row",
|
|
4161
4217
|
justifyContent: "center",
|
|
@@ -4168,11 +4224,11 @@ function Qn({
|
|
|
4168
4224
|
] })
|
|
4169
4225
|
] });
|
|
4170
4226
|
}
|
|
4171
|
-
function
|
|
4227
|
+
function Ot({
|
|
4172
4228
|
children: e
|
|
4173
4229
|
}) {
|
|
4174
|
-
const a =
|
|
4175
|
-
() =>
|
|
4230
|
+
const a = Ft(), n = fe.useMemo(
|
|
4231
|
+
() => qt(a, {
|
|
4176
4232
|
typography: { fontFamily: "var(--orc-font)" },
|
|
4177
4233
|
components: {
|
|
4178
4234
|
MuiTypography: {
|
|
@@ -4184,32 +4240,32 @@ function It({
|
|
|
4184
4240
|
}),
|
|
4185
4241
|
[a]
|
|
4186
4242
|
);
|
|
4187
|
-
return /* @__PURE__ */
|
|
4188
|
-
/* @__PURE__ */ t(
|
|
4243
|
+
return /* @__PURE__ */ y(zt, { theme: n, children: [
|
|
4244
|
+
/* @__PURE__ */ t(Pt, {}),
|
|
4189
4245
|
e
|
|
4190
4246
|
] });
|
|
4191
4247
|
}
|
|
4192
|
-
function
|
|
4248
|
+
function Eo({
|
|
4193
4249
|
docId: e = "Landing: home",
|
|
4194
4250
|
moduleId: a = 301,
|
|
4195
4251
|
children: n
|
|
4196
4252
|
}) {
|
|
4197
|
-
return /* @__PURE__ */ t(
|
|
4253
|
+
return /* @__PURE__ */ t(Ot, { children: /* @__PURE__ */ t(vt, { docId: e, moduleId: a, children: n }) });
|
|
4198
4254
|
}
|
|
4199
|
-
const
|
|
4200
|
-
OraculoSeccionDestacados:
|
|
4201
|
-
OraculoSeccionTopJuegos:
|
|
4202
|
-
OraculoSeccionCasinoEnVivo:
|
|
4203
|
-
OraculoSeccionCasino:
|
|
4204
|
-
OraculoSeccionVirtuales:
|
|
4205
|
-
OraculoSeccionClubOlimpo:
|
|
4206
|
-
OraculoSeccionBonoBienvenida:
|
|
4207
|
-
OraculoSeccionBanners:
|
|
4208
|
-
OraculoSeccionMediosPago:
|
|
4209
|
-
OraculoSeccionEventoEnVivo:
|
|
4210
|
-
OraculoSeccionEventoSemana:
|
|
4211
|
-
OraculoSeccionEventoCombinadas:
|
|
4212
|
-
},
|
|
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
|
|
4268
|
+
}, Ee = {
|
|
4213
4269
|
sections: [
|
|
4214
4270
|
{
|
|
4215
4271
|
title: "Banners",
|
|
@@ -5577,8 +5633,8 @@ const eo = {
|
|
|
5577
5633
|
componentKey: "OraculoSeccionMediosPago"
|
|
5578
5634
|
}
|
|
5579
5635
|
]
|
|
5580
|
-
},
|
|
5581
|
-
function
|
|
5636
|
+
}, no = (e) => typeof e == "function" || e && typeof e == "object" && "$$typeof" in e, oo = (e) => /^OraculoSeccion[A-Z]/.test(e);
|
|
5637
|
+
function Se(e) {
|
|
5582
5638
|
return e && Array.isArray(e.sections) ? e.sections.slice().sort((a, n) => {
|
|
5583
5639
|
var r, i;
|
|
5584
5640
|
return ((r = a.order) != null ? r : 0) - ((i = n.order) != null ? i : 0);
|
|
@@ -5603,23 +5659,23 @@ function Oe(e) {
|
|
|
5603
5659
|
};
|
|
5604
5660
|
}) : [];
|
|
5605
5661
|
}
|
|
5606
|
-
const
|
|
5607
|
-
Object.entries(
|
|
5608
|
-
([e, a]) =>
|
|
5662
|
+
const ro = Object.fromEntries(
|
|
5663
|
+
Object.entries(ao).filter(
|
|
5664
|
+
([e, a]) => oo(e) && no(a)
|
|
5609
5665
|
)
|
|
5610
|
-
),
|
|
5666
|
+
), io = (e) => {
|
|
5611
5667
|
try {
|
|
5612
5668
|
return Object.fromEntries(e != null ? e : []);
|
|
5613
5669
|
} catch {
|
|
5614
5670
|
return console.warn("[oraculo] extras inválidos. Debe ser Array<[string, unknown]>", e), {};
|
|
5615
5671
|
}
|
|
5616
5672
|
};
|
|
5617
|
-
class
|
|
5673
|
+
class rt extends Error {
|
|
5618
5674
|
constructor(a, n, r) {
|
|
5619
5675
|
super(`HTTP ${a} ${r}`), this.status = a, this.url = n, this.statusText = r, this.name = "HttpError";
|
|
5620
5676
|
}
|
|
5621
5677
|
}
|
|
5622
|
-
class
|
|
5678
|
+
class so extends fe.Component {
|
|
5623
5679
|
constructor(a) {
|
|
5624
5680
|
super(a), this.state = { hasError: !1 };
|
|
5625
5681
|
}
|
|
@@ -5639,11 +5695,17 @@ class ro extends fe.Component {
|
|
|
5639
5695
|
return this.state.hasError ? null : this.props.children;
|
|
5640
5696
|
}
|
|
5641
5697
|
}
|
|
5642
|
-
const
|
|
5698
|
+
const it = [
|
|
5643
5699
|
"OraculoSeccionEventoEnVivo",
|
|
5644
5700
|
"OraculoSeccionEventoSemana",
|
|
5645
5701
|
"OraculoSeccionEventoCombinadas"
|
|
5646
|
-
],
|
|
5702
|
+
], lo = [
|
|
5703
|
+
"OraculoSeccionCasino",
|
|
5704
|
+
"OraculoSeccionVirtuales",
|
|
5705
|
+
"OraculoSeccionCasinoEnVivo",
|
|
5706
|
+
"OraculoSeccionTopJuegos",
|
|
5707
|
+
"OraculoSeccionDestacados"
|
|
5708
|
+
], Co = ({
|
|
5647
5709
|
sectionsOverride: e,
|
|
5648
5710
|
docId: a = "Landing: home",
|
|
5649
5711
|
moduleId: n = 301,
|
|
@@ -5652,60 +5714,62 @@ const rt = [
|
|
|
5652
5714
|
loader: s,
|
|
5653
5715
|
disableWrapper: l = !1
|
|
5654
5716
|
}) => {
|
|
5655
|
-
const d = ie(() =>
|
|
5656
|
-
() =>
|
|
5717
|
+
const d = ie(() => io(i), [i]), h = s || d.loader, [g, m] = Z(
|
|
5718
|
+
() => e ? [] : Se(Ee)
|
|
5719
|
+
), [u, c] = Z(!1), [f, v] = Z({}), [x, k] = Z({}), [T, E] = Z({}), b = De("(min-width:1024px)"), A = ie(
|
|
5720
|
+
() => Se(Ee),
|
|
5657
5721
|
[]
|
|
5658
|
-
),
|
|
5722
|
+
), w = (o) => A.find(
|
|
5659
5723
|
(p) => p.id === o.id || p.componentKey === o.componentKey
|
|
5660
|
-
), 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(() => {
|
|
5661
5725
|
const o = d.user;
|
|
5662
5726
|
return S(o == null ? void 0 : o.groups);
|
|
5663
|
-
}, [d]),
|
|
5727
|
+
}, [d]), F = (o) => {
|
|
5664
5728
|
const p = o.manualScalarFields;
|
|
5665
5729
|
if (!Array.isArray(p)) return [];
|
|
5666
5730
|
const C = p.find(
|
|
5667
|
-
(
|
|
5731
|
+
(R) => String((R == null ? void 0 : R.name) || "").trim().toLowerCase() === "groups"
|
|
5668
5732
|
);
|
|
5669
5733
|
if (!C) return [];
|
|
5670
|
-
const
|
|
5671
|
-
if (
|
|
5672
|
-
if (Array.isArray(
|
|
5673
|
-
return
|
|
5674
|
-
const
|
|
5675
|
-
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)) : [];
|
|
5676
5740
|
}, I = (o, p) => {
|
|
5677
|
-
const C =
|
|
5741
|
+
const C = F(o);
|
|
5678
5742
|
if (C.length === 0) return !0;
|
|
5679
5743
|
if (!Array.isArray(p) || p.length === 0) return !1;
|
|
5680
|
-
const
|
|
5681
|
-
return C.some((
|
|
5744
|
+
const $ = new Set(p);
|
|
5745
|
+
return C.some((N) => $.has(N));
|
|
5682
5746
|
};
|
|
5683
5747
|
Q(() => {
|
|
5684
5748
|
if (e) return;
|
|
5685
5749
|
if (!r) {
|
|
5686
|
-
console.warn("[landing] sin db -> fallback json"), m(
|
|
5750
|
+
console.warn("[landing] sin db -> fallback json"), m(Se(Ee));
|
|
5687
5751
|
return;
|
|
5688
5752
|
}
|
|
5689
|
-
const o = (C,
|
|
5690
|
-
console.warn("[landing] FALLBACK:", C,
|
|
5753
|
+
const o = (C, $) => {
|
|
5754
|
+
console.warn("[landing] FALLBACK:", C, $ != null ? $ : ""), m(Se(Ee)), c(!1);
|
|
5691
5755
|
};
|
|
5692
5756
|
c(!0);
|
|
5693
|
-
const p =
|
|
5694
|
-
|
|
5757
|
+
const p = Dt(
|
|
5758
|
+
Ut(r, "landings", a),
|
|
5695
5759
|
(C) => {
|
|
5696
5760
|
try {
|
|
5697
5761
|
if (!C.exists()) {
|
|
5698
5762
|
o(`doc landings/${a} no existe`);
|
|
5699
5763
|
return;
|
|
5700
5764
|
}
|
|
5701
|
-
const
|
|
5702
|
-
if (
|
|
5703
|
-
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", $);
|
|
5704
5768
|
return;
|
|
5705
5769
|
}
|
|
5706
|
-
console.log("[landing] Firestore OK (json grande):",
|
|
5707
|
-
} catch (
|
|
5708
|
-
o("error procesando snapshot",
|
|
5770
|
+
console.log("[landing] Firestore OK (json grande):", $), m(N);
|
|
5771
|
+
} catch ($) {
|
|
5772
|
+
o("error procesando snapshot", $);
|
|
5709
5773
|
} finally {
|
|
5710
5774
|
c(!1);
|
|
5711
5775
|
}
|
|
@@ -5715,11 +5779,11 @@ const rt = [
|
|
|
5715
5779
|
}
|
|
5716
5780
|
);
|
|
5717
5781
|
return () => p();
|
|
5718
|
-
}, [e, a, r]), Q(() => (
|
|
5719
|
-
(e ? e.slice() :
|
|
5720
|
-
}, [e,
|
|
5721
|
-
const
|
|
5722
|
-
if (
|
|
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]);
|
|
5785
|
+
const _ = async (o) => {
|
|
5786
|
+
if (it.includes(o.componentKey))
|
|
5723
5787
|
return {
|
|
5724
5788
|
items: [],
|
|
5725
5789
|
events: [],
|
|
@@ -5727,79 +5791,79 @@ const rt = [
|
|
|
5727
5791
|
};
|
|
5728
5792
|
const p = (o.apiUrl || "").trim();
|
|
5729
5793
|
if (!p) return;
|
|
5730
|
-
const C = o.apiMethod || "GET",
|
|
5731
|
-
let
|
|
5794
|
+
const C = o.apiMethod || "GET", $ = o.apiParams || [];
|
|
5795
|
+
let N = p, R, D;
|
|
5732
5796
|
if (C === "GET") {
|
|
5733
5797
|
const ne = new URL(
|
|
5734
5798
|
p,
|
|
5735
5799
|
typeof window == "undefined" ? "http://localhost" : window.location.origin
|
|
5736
5800
|
);
|
|
5737
|
-
for (const ae of
|
|
5801
|
+
for (const ae of $)
|
|
5738
5802
|
ae.key && ne.searchParams.append(ae.key, ae.value);
|
|
5739
|
-
|
|
5803
|
+
N = ne.toString();
|
|
5740
5804
|
} else {
|
|
5741
5805
|
const ne = new URLSearchParams();
|
|
5742
|
-
for (const ae of
|
|
5806
|
+
for (const ae of $)
|
|
5743
5807
|
ae.key && ne.append(ae.key, ae.value);
|
|
5744
|
-
|
|
5808
|
+
R = ne.toString(), D = {
|
|
5745
5809
|
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
|
|
5746
5810
|
};
|
|
5747
5811
|
}
|
|
5748
|
-
const Y = await fetch(
|
|
5812
|
+
const Y = await fetch(N, {
|
|
5749
5813
|
method: C,
|
|
5750
5814
|
headers: D,
|
|
5751
|
-
body:
|
|
5815
|
+
body: R
|
|
5752
5816
|
});
|
|
5753
|
-
if (!Y.ok) throw new
|
|
5817
|
+
if (!Y.ok) throw new rt(Y.status, N, Y.statusText);
|
|
5754
5818
|
return Y.json();
|
|
5755
|
-
},
|
|
5756
|
-
() => e ? e.slice() :
|
|
5757
|
-
[e,
|
|
5819
|
+
}, O = ie(
|
|
5820
|
+
() => e ? e.slice() : g.slice(),
|
|
5821
|
+
[e, g]
|
|
5758
5822
|
), q = fe.useRef(/* @__PURE__ */ new Set());
|
|
5759
5823
|
Q(() => {
|
|
5760
|
-
const o =
|
|
5824
|
+
const o = O.map((p) => ({ s: p, url: (p.apiUrl || "").trim() })).filter(({ url: p }) => !!p);
|
|
5761
5825
|
if (o.length)
|
|
5762
5826
|
for (const { s: p, url: C } of o) {
|
|
5763
|
-
const
|
|
5764
|
-
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 () => {
|
|
5765
5829
|
try {
|
|
5766
|
-
const
|
|
5767
|
-
|
|
5768
|
-
} catch (
|
|
5769
|
-
let
|
|
5770
|
-
|
|
5830
|
+
const N = await _(p);
|
|
5831
|
+
v((R) => ({ ...R, [p.id]: N }));
|
|
5832
|
+
} catch (N) {
|
|
5833
|
+
let R = "Error desconocido";
|
|
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 }));
|
|
5771
5835
|
} finally {
|
|
5772
|
-
|
|
5836
|
+
k((N) => ({ ...N, [p.id]: !1 }));
|
|
5773
5837
|
}
|
|
5774
5838
|
})());
|
|
5775
5839
|
}
|
|
5776
|
-
}, [
|
|
5840
|
+
}, [O]);
|
|
5777
5841
|
const M = ie(
|
|
5778
|
-
() =>
|
|
5779
|
-
[
|
|
5842
|
+
() => O.filter((o) => o.visible).filter((o) => I(o, L)).sort((o, p) => o.order - p.order),
|
|
5843
|
+
[O, L]
|
|
5780
5844
|
), B = (o) => Array.isArray(o) ? o.map((p) => {
|
|
5781
5845
|
const C = {};
|
|
5782
|
-
for (const
|
|
5783
|
-
const
|
|
5784
|
-
if (
|
|
5785
|
-
const
|
|
5786
|
-
if (
|
|
5787
|
-
const D = Number(
|
|
5788
|
-
Number.isNaN(D) || (C[
|
|
5846
|
+
for (const $ of p.fields || []) {
|
|
5847
|
+
const N = ($.type || "string").toLowerCase();
|
|
5848
|
+
if (N === "number") {
|
|
5849
|
+
const R = String($.value || "").trim();
|
|
5850
|
+
if (R !== "") {
|
|
5851
|
+
const D = Number(R);
|
|
5852
|
+
Number.isNaN(D) || (C[$.name] = D);
|
|
5789
5853
|
}
|
|
5790
|
-
} else if (
|
|
5791
|
-
C[
|
|
5792
|
-
else if (
|
|
5793
|
-
const
|
|
5794
|
-
if (
|
|
5854
|
+
} else if (N === "boolean")
|
|
5855
|
+
C[$.name] = String($.value).toLowerCase() === "true";
|
|
5856
|
+
else if (N === "function") {
|
|
5857
|
+
const R = String($.value || "").trim();
|
|
5858
|
+
if (R)
|
|
5795
5859
|
try {
|
|
5796
|
-
const D = new Function(
|
|
5797
|
-
C[
|
|
5860
|
+
const D = new Function(R);
|
|
5861
|
+
C[$.name] = D;
|
|
5798
5862
|
} catch (D) {
|
|
5799
|
-
console.error(`❌ Error creando función en item '${
|
|
5863
|
+
console.error(`❌ Error creando función en item '${$.name}':`, D);
|
|
5800
5864
|
}
|
|
5801
5865
|
} else
|
|
5802
|
-
C[
|
|
5866
|
+
C[$.name] = $.value;
|
|
5803
5867
|
}
|
|
5804
5868
|
return C;
|
|
5805
5869
|
}) : [], P = (o) => {
|
|
@@ -5807,88 +5871,88 @@ const rt = [
|
|
|
5807
5871
|
if (!Array.isArray(o)) return p;
|
|
5808
5872
|
for (const C of o) {
|
|
5809
5873
|
if (!C.name) continue;
|
|
5810
|
-
const
|
|
5811
|
-
if (
|
|
5812
|
-
const
|
|
5813
|
-
if (
|
|
5814
|
-
const
|
|
5815
|
-
Number.isNaN(
|
|
5874
|
+
const $ = (C.type || "string").toLowerCase();
|
|
5875
|
+
if ($ === "number") {
|
|
5876
|
+
const N = String(C.value || "").trim();
|
|
5877
|
+
if (N !== "") {
|
|
5878
|
+
const R = Number(N);
|
|
5879
|
+
Number.isNaN(R) || (p[C.name] = R);
|
|
5816
5880
|
}
|
|
5817
|
-
} else if (
|
|
5881
|
+
} else if ($ === "boolean")
|
|
5818
5882
|
p[C.name] = String(C.value).toLowerCase() === "true";
|
|
5819
|
-
else if (
|
|
5820
|
-
const
|
|
5821
|
-
if (
|
|
5883
|
+
else if ($ === "function") {
|
|
5884
|
+
const N = String(C.value || "").trim();
|
|
5885
|
+
if (N)
|
|
5822
5886
|
try {
|
|
5823
|
-
const
|
|
5824
|
-
p[C.name] =
|
|
5825
|
-
} catch (
|
|
5826
|
-
console.error(`❌ Error creando función en item '${C.name}':`,
|
|
5887
|
+
const R = new Function(N);
|
|
5888
|
+
p[C.name] = R;
|
|
5889
|
+
} catch (R) {
|
|
5890
|
+
console.error(`❌ Error creando función en item '${C.name}':`, R);
|
|
5827
5891
|
}
|
|
5828
5892
|
} else
|
|
5829
5893
|
p[C.name] = C.value;
|
|
5830
5894
|
}
|
|
5831
5895
|
return p;
|
|
5832
|
-
}, V = (o, p, C,
|
|
5833
|
-
const
|
|
5896
|
+
}, V = (o, p, C, $) => {
|
|
5897
|
+
const N = C ? { ...C } : {}, R = ($ || "items").trim() || "items";
|
|
5834
5898
|
if (p)
|
|
5835
|
-
return
|
|
5899
|
+
return N[R] = p.arr || [], N;
|
|
5836
5900
|
const D = o;
|
|
5837
5901
|
if (Array.isArray(D))
|
|
5838
|
-
return
|
|
5902
|
+
return N[R] = D, N;
|
|
5839
5903
|
if (D && typeof D == "object") {
|
|
5840
5904
|
const Y = D;
|
|
5841
|
-
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);
|
|
5842
5906
|
}
|
|
5843
|
-
return
|
|
5844
|
-
},
|
|
5845
|
-
var
|
|
5846
|
-
const p = !!((
|
|
5847
|
-
let
|
|
5848
|
-
const
|
|
5849
|
-
if (
|
|
5850
|
-
return { items: C, ...N
|
|
5851
|
-
if (
|
|
5852
|
-
|
|
5907
|
+
return N[R] = [], N;
|
|
5908
|
+
}, G = (o) => {
|
|
5909
|
+
var R;
|
|
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);
|
|
5913
|
+
if (it.includes(o.componentKey))
|
|
5914
|
+
return { items: C, ...$, ...N };
|
|
5915
|
+
if ($ = { ...$, ...N }, p)
|
|
5916
|
+
$ = V(C, null, $);
|
|
5853
5917
|
else if (o.dataMode === "manual") {
|
|
5854
5918
|
const D = B(o.manualItems);
|
|
5855
|
-
if (
|
|
5919
|
+
if ($ = V(
|
|
5856
5920
|
null,
|
|
5857
5921
|
{ arr: D, variableName: o.variableName },
|
|
5858
|
-
|
|
5922
|
+
$,
|
|
5859
5923
|
o.variableName
|
|
5860
5924
|
), o.variableName2 && o.manualItems2) {
|
|
5861
5925
|
const Y = B(o.manualItems2), ne = (o.variableName2 || "items2").trim() || "items2";
|
|
5862
|
-
|
|
5926
|
+
$[ne] = Y;
|
|
5863
5927
|
}
|
|
5864
5928
|
}
|
|
5865
|
-
return
|
|
5929
|
+
return $;
|
|
5866
5930
|
}, K = (o) => {
|
|
5867
5931
|
const p = o.props ? { ...o.props } : {};
|
|
5868
5932
|
try {
|
|
5869
5933
|
Object.assign(p, P(o.manualScalarFields));
|
|
5870
|
-
} catch (
|
|
5871
|
-
console.error("❌ Error armando scalars vacíos:", o,
|
|
5934
|
+
} catch ($) {
|
|
5935
|
+
console.error("❌ Error armando scalars vacíos:", o, $);
|
|
5872
5936
|
}
|
|
5873
5937
|
const C = (o.variableName || "items").trim() || "items";
|
|
5874
5938
|
if (typeof p[C] == "undefined" && (p[C] = []), o.variableName2) {
|
|
5875
|
-
const
|
|
5876
|
-
typeof p[
|
|
5939
|
+
const $ = (o.variableName2 || "items2").trim() || "items2";
|
|
5940
|
+
typeof p[$] == "undefined" && (p[$] = []);
|
|
5877
5941
|
}
|
|
5878
5942
|
return p;
|
|
5879
|
-
},
|
|
5943
|
+
}, j = (o) => {
|
|
5880
5944
|
try {
|
|
5881
|
-
return
|
|
5945
|
+
return G(o);
|
|
5882
5946
|
} catch (p) {
|
|
5883
5947
|
console.error("🔥 ERROR EN buildCompProps:", o, p);
|
|
5884
|
-
const C =
|
|
5948
|
+
const C = w(o);
|
|
5885
5949
|
if (C && C !== o)
|
|
5886
5950
|
try {
|
|
5887
5951
|
return console.warn(
|
|
5888
5952
|
`[landing] usando fallback local para sección ${o.title} (${o.componentKey})`
|
|
5889
|
-
),
|
|
5890
|
-
} catch (
|
|
5891
|
-
console.error("🔥 ERROR EN fallback buildCompProps:", C,
|
|
5953
|
+
), G(C);
|
|
5954
|
+
} catch ($) {
|
|
5955
|
+
console.error("🔥 ERROR EN fallback buildCompProps:", C, $);
|
|
5892
5956
|
}
|
|
5893
5957
|
return K(o);
|
|
5894
5958
|
}
|
|
@@ -5898,12 +5962,12 @@ const rt = [
|
|
|
5898
5962
|
component: "bg-yellow-100 text-yellow-800"
|
|
5899
5963
|
}[p]}`, children: C }, o), te = (o) => {
|
|
5900
5964
|
var He;
|
|
5901
|
-
const p = o.componentKey, C =
|
|
5965
|
+
const p = o.componentKey, C = ro[p], N = (/* @__PURE__ */ new Set([
|
|
5902
5966
|
"OraculoSeccionBanners",
|
|
5903
5967
|
"OraculoSeccionBonoBienvenida",
|
|
5904
5968
|
"OraculoSeccionCasinoEnVivo",
|
|
5905
5969
|
"OraculoSeccionClubOlimpo",
|
|
5906
|
-
...
|
|
5970
|
+
...b ? [] : [
|
|
5907
5971
|
"OraculoSeccionEventoEnVivo",
|
|
5908
5972
|
"OraculoSeccionEventoSemana",
|
|
5909
5973
|
"OraculoSeccionEventoCombinadas",
|
|
@@ -5911,10 +5975,10 @@ const rt = [
|
|
|
5911
5975
|
"OraculoSeccionDestacados",
|
|
5912
5976
|
"OraculoSeccionCasino"
|
|
5913
5977
|
]
|
|
5914
|
-
])).has(o.componentKey),
|
|
5978
|
+
])).has(o.componentKey), R = b ? 120 : 24, D = (b ? 8 : 5) * 8, Y = o.componentKey === "OraculoSeccionCasinoEnVivo", ne = {
|
|
5915
5979
|
width: "100%",
|
|
5916
5980
|
boxSizing: "border-box",
|
|
5917
|
-
|
|
5981
|
+
...N ? {} : { paddingLeft: R, paddingRight: R },
|
|
5918
5982
|
...Y ? {
|
|
5919
5983
|
marginTop: -D,
|
|
5920
5984
|
marginBottom: -D
|
|
@@ -5926,25 +5990,26 @@ const rt = [
|
|
|
5926
5990
|
"component",
|
|
5927
5991
|
`Componente "${p}" no encontrado`
|
|
5928
5992
|
);
|
|
5929
|
-
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] : "";
|
|
5930
5994
|
if (ae) {
|
|
5931
|
-
|
|
5995
|
+
const kt = lo.includes(o.componentKey);
|
|
5996
|
+
if (Et && !We && !kt)
|
|
5932
5997
|
return X(
|
|
5933
5998
|
o.id,
|
|
5934
5999
|
"loading",
|
|
5935
6000
|
`Cargando datos desde ${o.apiUrl}...`
|
|
5936
6001
|
);
|
|
5937
6002
|
if (Ge && !We) {
|
|
5938
|
-
const
|
|
5939
|
-
if (
|
|
6003
|
+
const we = w(o);
|
|
6004
|
+
if (we && we.dataMode === "manual")
|
|
5940
6005
|
try {
|
|
5941
|
-
const
|
|
5942
|
-
return /* @__PURE__ */ t("div", { style: ne, className: "oraculo-section-wrapper", children: /* @__PURE__ */ t(C, { ...
|
|
5943
|
-
} catch (
|
|
6006
|
+
const Fe = j(we);
|
|
6007
|
+
return /* @__PURE__ */ t("div", { style: ne, className: "oraculo-section-wrapper", children: /* @__PURE__ */ t(C, { ...Fe }) }, o.id);
|
|
6008
|
+
} catch (Fe) {
|
|
5944
6009
|
console.error(
|
|
5945
6010
|
"🔥 ERROR renderizando fallback manual de sección:",
|
|
5946
|
-
|
|
5947
|
-
|
|
6011
|
+
we,
|
|
6012
|
+
Fe
|
|
5948
6013
|
);
|
|
5949
6014
|
}
|
|
5950
6015
|
return X(
|
|
@@ -5954,22 +6019,22 @@ const rt = [
|
|
|
5954
6019
|
);
|
|
5955
6020
|
}
|
|
5956
6021
|
}
|
|
5957
|
-
const je =
|
|
6022
|
+
const je = j(o), Ct = o.componentKey === "OraculoSeccionClubOlimpo" || o.componentKey === "OraculoSeccionBanners" ? {
|
|
5958
6023
|
...je,
|
|
5959
6024
|
user: d.user
|
|
5960
6025
|
} : je;
|
|
5961
|
-
return /* @__PURE__ */ t(
|
|
6026
|
+
return /* @__PURE__ */ t(so, { section: o, children: /* @__PURE__ */ t(
|
|
5962
6027
|
"div",
|
|
5963
6028
|
{
|
|
5964
6029
|
style: ne,
|
|
5965
6030
|
className: "oraculo-section-wrapper",
|
|
5966
|
-
children: /* @__PURE__ */ t(C, { ...
|
|
6031
|
+
children: /* @__PURE__ */ t(C, { ...Ct })
|
|
5967
6032
|
},
|
|
5968
6033
|
o.id
|
|
5969
6034
|
) });
|
|
5970
6035
|
};
|
|
5971
|
-
return u && !e ? h ? /* @__PURE__ */ t(h, {}) : /* @__PURE__ */ t("div", { children: "Cargando..." }) : !u && !e &&
|
|
5972
|
-
|
|
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(
|
|
6037
|
+
Tt,
|
|
5973
6038
|
{
|
|
5974
6039
|
className: "oli-font",
|
|
5975
6040
|
maxWidth: !1,
|
|
@@ -5982,7 +6047,7 @@ const rt = [
|
|
|
5982
6047
|
maxWidth: "100%",
|
|
5983
6048
|
overflowX: "hidden"
|
|
5984
6049
|
},
|
|
5985
|
-
children: /* @__PURE__ */ t(
|
|
6050
|
+
children: /* @__PURE__ */ t(Ce, { direction: "column", spacing: b ? 8 : 5, useFlexGap: !0, children: M.map((o) => {
|
|
5986
6051
|
try {
|
|
5987
6052
|
return te(o);
|
|
5988
6053
|
} catch (p) {
|
|
@@ -5993,45 +6058,45 @@ const rt = [
|
|
|
5993
6058
|
) }) });
|
|
5994
6059
|
};
|
|
5995
6060
|
export {
|
|
5996
|
-
|
|
6061
|
+
vt as DocIdProvider,
|
|
5997
6062
|
J as OraculoButton,
|
|
5998
6063
|
he as OraculoCarousel,
|
|
5999
|
-
|
|
6000
|
-
|
|
6001
|
-
|
|
6002
|
-
|
|
6003
|
-
|
|
6004
|
-
|
|
6005
|
-
|
|
6006
|
-
|
|
6007
|
-
|
|
6008
|
-
|
|
6009
|
-
|
|
6010
|
-
|
|
6064
|
+
ut as OraculoCarouselDots,
|
|
6065
|
+
Ia as OraculoClubOlimpoVisual,
|
|
6066
|
+
Fa as OraculoEventCombinadasCard,
|
|
6067
|
+
Ua as OraculoEventEnVivoCard,
|
|
6068
|
+
Zt as OraculoEventHeader,
|
|
6069
|
+
mt as OraculoEventLabel,
|
|
6070
|
+
pt as OraculoEventLeague,
|
|
6071
|
+
ft as OraculoEventScore,
|
|
6072
|
+
Ja as OraculoEventSemanaCard,
|
|
6073
|
+
Kt as OraculoEventStatus,
|
|
6074
|
+
Ht as OraculoEventStatusBadge,
|
|
6075
|
+
Me as OraculoEventTeamInfo,
|
|
6011
6076
|
Te as OraculoGameCard,
|
|
6012
|
-
|
|
6013
|
-
|
|
6077
|
+
wa as OraculoGameRankCard,
|
|
6078
|
+
gt as OraculoGameSlide,
|
|
6014
6079
|
me as OraculoGridGroup,
|
|
6015
|
-
|
|
6080
|
+
Je as OraculoLiveCasinoCard,
|
|
6016
6081
|
Ze as OraculoLogoMediosPago,
|
|
6017
|
-
|
|
6018
|
-
|
|
6019
|
-
|
|
6020
|
-
|
|
6021
|
-
|
|
6022
|
-
|
|
6023
|
-
|
|
6024
|
-
|
|
6025
|
-
|
|
6026
|
-
|
|
6027
|
-
|
|
6028
|
-
|
|
6029
|
-
|
|
6030
|
-
|
|
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,
|
|
6031
6096
|
ge as OraculoSectionTitle,
|
|
6032
|
-
|
|
6033
|
-
|
|
6034
|
-
|
|
6035
|
-
|
|
6097
|
+
Ot as OraculoThemeProvider,
|
|
6098
|
+
tn as OraculoTopJuegoItem,
|
|
6099
|
+
Xe as OraculoWelcomeBanner,
|
|
6100
|
+
Co as default
|
|
6036
6101
|
};
|
|
6037
6102
|
//# sourceMappingURL=index.es.js.map
|