oraculo-ui 0.2.13 → 0.2.14
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,20 +1,20 @@
|
|
|
1
|
-
import { jsx as t, jsxs as p, Fragment as
|
|
2
|
-
import { Link as
|
|
3
|
-
import
|
|
1
|
+
import { jsx as t, jsxs as p, Fragment as se } from "react/jsx-runtime";
|
|
2
|
+
import { Link as it, Box as te, useMediaQuery as rt, IconButton as Ke, Typography as st, Stack as Ee, Container as It } from "@mui/material";
|
|
3
|
+
import fe, { useState as J, useEffect as Q, useRef as G, forwardRef as Ct, useImperativeHandle as Et, useCallback as Oe, createContext as Ot, useContext as Tt, useMemo as ie, useLayoutEffect as kt } from "react";
|
|
4
4
|
import j from "@mui/material/Skeleton";
|
|
5
|
-
import { Splide as
|
|
5
|
+
import { Splide as $t, SplideSlide as Nt } from "@splidejs/react-splide";
|
|
6
6
|
import q from "@mui/material/Box";
|
|
7
|
-
import
|
|
7
|
+
import ue from "@mui/material/Typography";
|
|
8
8
|
import H from "@mui/material/Stack";
|
|
9
|
-
import { useCaptureInteraction as
|
|
10
|
-
import { ChevronLeftRounded as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import { useTheme as
|
|
15
|
-
import
|
|
16
|
-
import { onSnapshot as
|
|
17
|
-
function
|
|
9
|
+
import { useCaptureInteraction as ae } from "@olimpo/capture-client";
|
|
10
|
+
import { ChevronLeftRounded as Ae, ChevronRightRounded as ze } from "@mui/icons-material";
|
|
11
|
+
import xe from "@mui/material/useMediaQuery";
|
|
12
|
+
import lt from "@mui/icons-material/ChevronLeftRounded";
|
|
13
|
+
import ct from "@mui/icons-material/ChevronRightRounded";
|
|
14
|
+
import { useTheme as Mt, createTheme as Bt, ThemeProvider as At } from "@mui/material/styles";
|
|
15
|
+
import zt from "@mui/material/CssBaseline";
|
|
16
|
+
import { onSnapshot as Rt, doc as Lt } from "firebase/firestore";
|
|
17
|
+
function Y({
|
|
18
18
|
children: e,
|
|
19
19
|
onClick: a,
|
|
20
20
|
href: n,
|
|
@@ -25,28 +25,28 @@ function Q({
|
|
|
25
25
|
variant: m = "primary",
|
|
26
26
|
size: f,
|
|
27
27
|
fullWidth: g = !1,
|
|
28
|
-
fullHeight:
|
|
28
|
+
fullHeight: u = !1,
|
|
29
29
|
className: l = "",
|
|
30
30
|
ariaLabel: c,
|
|
31
31
|
leftIcon: h,
|
|
32
32
|
rightIcon: b,
|
|
33
|
-
iconOnly:
|
|
33
|
+
iconOnly: E
|
|
34
34
|
}) {
|
|
35
|
-
const
|
|
35
|
+
const A = !!e && e !== !0, k = (!!h ? 1 : 0) + (!!b ? 1 : 0) == 1, U = E != null ? E : k && !A, I = [
|
|
36
36
|
"orc-btn",
|
|
37
37
|
m === "secondary" ? "orc-btn--secondary" : m === "tertiary" ? "orc-btn--tertiary" : "orc-btn--primary",
|
|
38
38
|
f ? `orc-btn--${f}` : "",
|
|
39
39
|
g ? "orc-btn--full" : "",
|
|
40
|
-
|
|
40
|
+
u ? "orc-btn--fullHeight" : "",
|
|
41
41
|
U ? "orc-btn--iconOnly" : "",
|
|
42
42
|
l
|
|
43
|
-
].filter(Boolean).join(" "), L = /* @__PURE__ */ p(
|
|
43
|
+
].filter(Boolean).join(" "), L = /* @__PURE__ */ p(se, { children: [
|
|
44
44
|
h && /* @__PURE__ */ t("span", { className: "orc-btn__icon", children: h }),
|
|
45
45
|
!U && /* @__PURE__ */ t("span", { className: "orc-btn__label", children: e }),
|
|
46
46
|
b && /* @__PURE__ */ t("span", { className: "orc-btn__icon", children: b })
|
|
47
47
|
] }), w = s ? !0 : void 0;
|
|
48
48
|
return n ? /* @__PURE__ */ t(
|
|
49
|
-
|
|
49
|
+
it,
|
|
50
50
|
{
|
|
51
51
|
href: n,
|
|
52
52
|
target: o,
|
|
@@ -55,7 +55,7 @@ function Q({
|
|
|
55
55
|
"aria-disabled": w,
|
|
56
56
|
tabIndex: w ? -1 : void 0,
|
|
57
57
|
className: I,
|
|
58
|
-
onClick: w ? (
|
|
58
|
+
onClick: w ? (z) => z.preventDefault() : a,
|
|
59
59
|
children: L
|
|
60
60
|
}
|
|
61
61
|
) : /* @__PURE__ */ t(
|
|
@@ -70,7 +70,7 @@ function Q({
|
|
|
70
70
|
}
|
|
71
71
|
);
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function ge({
|
|
74
74
|
title: e,
|
|
75
75
|
iconUrl: a,
|
|
76
76
|
size: n = "md",
|
|
@@ -93,7 +93,7 @@ function he({
|
|
|
93
93
|
/* @__PURE__ */ t("h2", { className: "orc-section-title__title", children: e })
|
|
94
94
|
] });
|
|
95
95
|
}
|
|
96
|
-
const
|
|
96
|
+
const dt = ({
|
|
97
97
|
total: e,
|
|
98
98
|
active: a,
|
|
99
99
|
onSelect: n,
|
|
@@ -101,31 +101,31 @@ const ut = ({
|
|
|
101
101
|
durationMs: i = 5e3
|
|
102
102
|
}) => {
|
|
103
103
|
if (e <= 1) return null;
|
|
104
|
-
const r = ["orc-dots", o].filter(Boolean).join(" "), [s, m] =
|
|
105
|
-
return
|
|
104
|
+
const r = ["orc-dots", o].filter(Boolean).join(" "), [s, m] = J(0);
|
|
105
|
+
return Q(() => {
|
|
106
106
|
m((f) => f + 1);
|
|
107
107
|
}, [a, i]), /* @__PURE__ */ t("div", { className: r, role: "tablist", "aria-label": "Carousel pagination", children: Array.from({ length: e }).map((f, g) => {
|
|
108
|
-
const
|
|
108
|
+
const u = 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
|
-
"aria-selected":
|
|
114
|
+
"aria-selected": u,
|
|
115
115
|
"aria-label": `Ir al slide ${g + 1}`,
|
|
116
|
-
className: "orc-dots__dot" + (
|
|
117
|
-
style:
|
|
116
|
+
className: "orc-dots__dot" + (u ? " orc-dots__dot--active" : ""),
|
|
117
|
+
style: u ? {
|
|
118
118
|
"--dot-progress-ms": `${i}ms`
|
|
119
119
|
} : void 0,
|
|
120
120
|
onClick: () => {
|
|
121
|
-
|
|
121
|
+
u && m((l) => l + 1), n == null || n(g);
|
|
122
122
|
}
|
|
123
123
|
},
|
|
124
|
-
|
|
124
|
+
u ? `a-${g}-${s}` : `i-${g}`
|
|
125
125
|
) }, g);
|
|
126
126
|
}) });
|
|
127
127
|
};
|
|
128
|
-
function
|
|
128
|
+
function me({
|
|
129
129
|
children: e,
|
|
130
130
|
minWidth: a = 32,
|
|
131
131
|
spacing: n = 2,
|
|
@@ -147,7 +147,7 @@ function pe({
|
|
|
147
147
|
}
|
|
148
148
|
);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function Ze({ src: e, alt: a }) {
|
|
151
151
|
return /* @__PURE__ */ t(
|
|
152
152
|
te,
|
|
153
153
|
{
|
|
@@ -178,16 +178,16 @@ function Je({ src: e, alt: a }) {
|
|
|
178
178
|
}
|
|
179
179
|
);
|
|
180
180
|
}
|
|
181
|
-
const
|
|
182
|
-
contenedor:
|
|
183
|
-
flexGroup:
|
|
184
|
-
subtitle:
|
|
181
|
+
const Ft = "oraculo__OraculoEventTitle-module__contenedor___rg1vw", Pt = "oraculo__OraculoEventTitle-module__flexGroup___jMLFO", qt = "oraculo__OraculoEventTitle-module__subtitle___TmHna", Le = {
|
|
182
|
+
contenedor: Ft,
|
|
183
|
+
flexGroup: Pt,
|
|
184
|
+
subtitle: qt
|
|
185
185
|
};
|
|
186
|
-
function
|
|
186
|
+
function Dt({ title: e, subtitle: a }) {
|
|
187
187
|
return /* @__PURE__ */ p(
|
|
188
188
|
"div",
|
|
189
189
|
{
|
|
190
|
-
className:
|
|
190
|
+
className: Le.contenedor,
|
|
191
191
|
children: [
|
|
192
192
|
/* @__PURE__ */ t(
|
|
193
193
|
"span",
|
|
@@ -203,14 +203,14 @@ function Ut({ title: e, subtitle: a }) {
|
|
|
203
203
|
a && /* @__PURE__ */ p(
|
|
204
204
|
"div",
|
|
205
205
|
{
|
|
206
|
-
className:
|
|
206
|
+
className: Le.flexGroup,
|
|
207
207
|
children: [
|
|
208
208
|
/* @__PURE__ */ p("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: Le.subtitle, children: a }),
|
|
214
214
|
/* @__PURE__ */ t("div", {})
|
|
215
215
|
]
|
|
216
216
|
}
|
|
@@ -219,7 +219,7 @@ function Ut({ title: e, subtitle: a }) {
|
|
|
219
219
|
}
|
|
220
220
|
);
|
|
221
221
|
}
|
|
222
|
-
function
|
|
222
|
+
function Ut({ text: e, color: a = "#ff3b3b", textColor: n = "#fff" }) {
|
|
223
223
|
return /* @__PURE__ */ t(
|
|
224
224
|
"span",
|
|
225
225
|
{
|
|
@@ -240,13 +240,13 @@ function Vt({ text: e, color: a = "#ff3b3b", textColor: n = "#fff" }) {
|
|
|
240
240
|
}
|
|
241
241
|
);
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function Vt({ live: e, time: a }) {
|
|
244
244
|
return /* @__PURE__ */ p("div", { className: "oli-font", style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
|
|
245
|
-
e && /* @__PURE__ */ t(
|
|
245
|
+
e && /* @__PURE__ */ t(Ut, { text: "En vivo" }),
|
|
246
246
|
a && /* @__PURE__ */ t("span", { style: { fontSize: "14px", fontWeight: 400, lineHeight: "18px", paddingTop: "4px" }, children: a })
|
|
247
247
|
] });
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function Wt({ title: e, subtitle: a, live: n = !1, time: o = "" }) {
|
|
250
250
|
return /* @__PURE__ */ p(
|
|
251
251
|
"div",
|
|
252
252
|
{
|
|
@@ -257,60 +257,60 @@ function Gt({ title: e, subtitle: a, live: n = !1, time: o = "" }) {
|
|
|
257
257
|
color: "#FFFFFF"
|
|
258
258
|
},
|
|
259
259
|
children: [
|
|
260
|
-
/* @__PURE__ */ t(
|
|
261
|
-
/* @__PURE__ */ t(
|
|
260
|
+
/* @__PURE__ */ t(Dt, { title: e, subtitle: a }),
|
|
261
|
+
/* @__PURE__ */ t(Vt, { live: n, time: o })
|
|
262
262
|
]
|
|
263
263
|
}
|
|
264
264
|
);
|
|
265
265
|
}
|
|
266
|
-
const
|
|
267
|
-
label:
|
|
266
|
+
const Gt = "oraculo__OraculoEventLabel-module__label___c64Xw", jt = {
|
|
267
|
+
label: Gt
|
|
268
268
|
};
|
|
269
|
-
function
|
|
270
|
-
return /* @__PURE__ */ t("span", { className:
|
|
269
|
+
function ut({ text: e }) {
|
|
270
|
+
return /* @__PURE__ */ t("span", { className: jt.label, children: e });
|
|
271
271
|
}
|
|
272
|
-
const
|
|
273
|
-
container:
|
|
272
|
+
const Ht = "oraculo__OraculoEventLeague-module__container___rdk4F", Kt = {
|
|
273
|
+
container: Ht
|
|
274
274
|
};
|
|
275
|
-
function
|
|
276
|
-
return /* @__PURE__ */ t("div", { className:
|
|
275
|
+
function mt({ title: e }) {
|
|
276
|
+
return /* @__PURE__ */ t("div", { className: Kt.container, children: e.toUpperCase() });
|
|
277
277
|
}
|
|
278
|
-
const
|
|
279
|
-
scoreWrapper:
|
|
280
|
-
name:
|
|
281
|
-
score:
|
|
282
|
-
normal:
|
|
283
|
-
small:
|
|
278
|
+
const Zt = "oraculo__OraculoEventScore-module__scoreWrapper___fWwEr", Jt = "oraculo__OraculoEventScore-module__name___r4uL6", Xt = "oraculo__OraculoEventScore-module__score___Xl03M", Yt = "oraculo__OraculoEventScore-module__normal___cCNFz", Qt = "oraculo__OraculoEventScore-module__small___fVt8E", ve = {
|
|
279
|
+
scoreWrapper: Zt,
|
|
280
|
+
name: Jt,
|
|
281
|
+
score: Xt,
|
|
282
|
+
normal: Yt,
|
|
283
|
+
small: Qt
|
|
284
284
|
};
|
|
285
|
-
function
|
|
285
|
+
function pt({ text: e, name: a, size: n = "normal" }) {
|
|
286
286
|
return /* @__PURE__ */ p(
|
|
287
287
|
"div",
|
|
288
288
|
{
|
|
289
|
-
className: `${
|
|
289
|
+
className: `${ve.scoreWrapper} ${ve[n]}`,
|
|
290
290
|
children: [
|
|
291
|
-
/* @__PURE__ */ t("div", { className: `${
|
|
292
|
-
a && /* @__PURE__ */ t("span", { className: `${
|
|
291
|
+
/* @__PURE__ */ t("div", { className: `${ve.score} ${ve[n]}`, children: e }),
|
|
292
|
+
a && /* @__PURE__ */ t("span", { className: `${ve.name} ${ve[n]}`, children: a })
|
|
293
293
|
]
|
|
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 ea = "oraculo__OraculoEventTeamInfo-module__team___UfpUs", ta = "oraculo__OraculoEventTeamInfo-module__regular___ag826", aa = "oraculo__OraculoEventTeamInfo-module__compact___RCNOs", na = "oraculo__OraculoEventTeamInfo-module__logo___fKCl3", oa = "oraculo__OraculoEventTeamInfo-module__name___4ikm-", ia = "oraculo__OraculoEventTeamInfo-module__skeleton___Yfaxh", _e = {
|
|
298
|
+
team: ea,
|
|
299
|
+
regular: ta,
|
|
300
|
+
compact: aa,
|
|
301
|
+
logo: na,
|
|
302
|
+
name: oa,
|
|
303
|
+
skeleton: ia
|
|
304
|
+
}, ra = "oraculo__OraculoTeamPolo-module__polo___BisRg", sa = "oraculo__OraculoTeamPolo-module__svgWrapper___HRKNX", la = "oraculo__OraculoTeamPolo-module__shadow___-3DXb", ca = "oraculo__OraculoTeamPolo-module__highlight___1etm7", Se = {
|
|
305
|
+
polo: ra,
|
|
306
|
+
svgWrapper: sa,
|
|
307
|
+
shadow: la,
|
|
308
|
+
highlight: ca
|
|
309
309
|
};
|
|
310
|
-
function
|
|
310
|
+
function da({ jersey: e, className: a }) {
|
|
311
311
|
const n = `#${e.base}`, o = e.sleeve ? `#${e.sleeve}` : n, i = e.stripes ? `#${e.stripes}` : null, r = e.sleevelong ? `#${e.sleevelong}` : null;
|
|
312
|
-
return /* @__PURE__ */ p("div", { className: `${
|
|
313
|
-
/* @__PURE__ */ t("div", { className:
|
|
312
|
+
return /* @__PURE__ */ p("div", { className: `${Se.polo} ${a != null ? a : ""}`, children: [
|
|
313
|
+
/* @__PURE__ */ t("div", { className: Se.svgWrapper, children: /* @__PURE__ */ p("svg", { viewBox: "0 0 656 656", "aria-hidden": !0, children: [
|
|
314
314
|
/* @__PURE__ */ t(
|
|
315
315
|
"path",
|
|
316
316
|
{
|
|
@@ -318,11 +318,11 @@ function ua({ 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__ */ p(
|
|
321
|
+
i && /* @__PURE__ */ p(se, { children: [
|
|
322
322
|
/* @__PURE__ */ t("path", { fill: i, d: "m153 277.8-5.8 14.5c-1 2.8-2.5 1.4-4.6.7l-2-.5-7.8-2.4-15.6-5-19-6.5-16-5.7-12-4.4-5.5-2.2c-3.5-1.1-3.1-1.2-1.9-4l1.8-4.9 3.2-9.3c-1.1-1.9 0-3.1.8-3.5l.2-.7.5-2 4.3-10.3 2.4-6 2.6-6.2.8-2.6 1.7-4.1v-.4l.3-2.6.6-3.4 1-3.5 1-3.8c.1-.9 2-5.6 3-7.8l.7-1.5.7-2 .9-3.6 3.4-12.6 2.4-8.6 2.7-11.2 3.5-9.6 3.6-9.4 3-6 2-4.1 3.6-5.8 2.2-4.3 3-4.4 3.2-3.9 1.7-1.9 3.6-3.6 3-2.9a109.3 109.3 0 0 1 13.3-11.2l1.2-.8a79.3 79.3 0 0 1 18-9l11.4-4.2 4-1.4 6.3-2.7 3.3-1.4 2.8-1.2 4-1.6 3.9-2.1 10.1-5 4.8-2.4 5.7-3.2 13.8-7.7c1.5-.8 4.7-2.7 6-3a8.5 8.5 0 0 0 3-1.8c3.4-2.5 4.5-4.8 6-5.3.4-.4 2-1.6 5.2-3.2-4.4 3.3-3.2 11-2.1 14.6a77 77 0 0 0 8.7 18.8l-.6.4-3.9 2-9 5-6.6 3.7-10 3.2c-4.3.8-13.2 2.4-14.4 2.8-1.2.3-10.2 4-14.5 5.8l-11.8 5.6-8.8 3.2-12 3.4-19 8.7c-5.8 1.4-19.3 14.2-25.3 20.4L122 128l.3.4 6.6 16.6 10.5 22.6 6.2 10.8c2.9 3 8.7 9.7 9.1 11.7.5 2 4.3 5.1 6.1 6.5.2.8.8 3.1 1.7 5.4-3.2 4.8-.4 10.6 1.4 12.9l1 4.6.3 6.5-.5 1c-1.4 1.4-.3 4 .4 5l.1 3c.5 1.4 1.3 4.2.8 5.2s0 2.7.3 3.4v4.9c-3.1.5-2 3.7-1 5.2-.5.7-1.8 2.2-3.2 2.7-1.4.5-1.8 3.6-1.8 5.2a9 9 0 0 1-2.7 4.7c-1.8 1.6-2.8 7.4-3 10.1l-1.6 1.5ZM403.8 31.1l-1.6-.7c1.2 1 2 2.2 2.8 4 1.8 2.8.6 8-.7 12.2a78 78 0 0 1-7.6 17l.5.2 3.3 1.5 5.4 3.3 5.9 3 7.2 3 8.2 2.2c.7.2 3.3 1 8.4 2 5.5.1 21.1 8 28.2 11.8l14 4.5a517 517 0 0 1 23.8 9.3c6.3.5 24.7 17 33.1 25.2l-4.6 11.6-8.2 19.3-3.8 9-5.2 8.6c-2.2 3.2-7.3 10.2-9.4 12.4-1.3-.3-5.6 4.4-7.6 6.7.3 2 .6 6.7-1.4 9.1-2 2.5-1.8 6.9-1.4 8.7.3.8.5 3-1 5.3-1.4 2.4-1 4-.5 4.5-.2.8-.7 2.5-1.4 3.4-.8.8-.4 3.3 0 4.5l.1 3-.1 2.2c-.2.6-.6 2.6-1.1 6.2 3.6 3.3 1.3 5.7-.3 6.5l2.2.3 1.3 2.7 1.5 3.8 1.1 2.3 2.7 7.1 1.6 4.8.3 2.1v1.6l1.9 1.9 4 8.9 1.8 4.5c.5 4 5.5 3.6 8 3l5.9-1.1 7.3-1.7 5.2-1.2 7.3-2.1 8.3-2.7 7.5-2.5 9.8-3.6 8-3 6.3-2.8 3.4-1.6 3-1.3 2.5-1.6 1-.8c1.9-1 2-2.1 1.6-2.9l-.6-1.7-1-2.7-1.6-4.2-1.4-4-.5-1.4-.1-.7v-1.2c.7-1-.4-2.5-1-3v-.2l-1-2-2.4-6-3.3-8.3-2.3-6a3896.4 3896.4 0 0 0-3.1-8.4l-2.2-7.1-1.5-5.7-2.5-8.9-1-3.1-1.2-4.5-2-8.2-2.2-9.3-2.8-11.4-2.6-9.1-.9-3c0-.3-.6-1.5-1-2l-2.5-5.6-3-6.6-5.7-11.3-2.5-4.3-2.3-3.3-.7-.7-4.3-5-3-3.8a73 73 0 0 0-4.2-3.8c-1.1-2-7.6-7-10.8-9.4-6.2-5-23.4-12.8-34-16.7l-11-4-16-7.9-20.1-10-7.1-3.8-2.4-1.5-13-7.3-2.6-3.4-5-3Z" }),
|
|
323
323
|
/* @__PURE__ */ t("path", { fill: i, d: "M292.1 648.8c-15.7-1.4-37.7-5-49.7-7.1-4.3-.6-22.6-5.3-35.5-9.5 1.5-10 3-21 4.3-32.7 7-60.5 4.8-132.8 3.1-185.6l-.9-32c-1-49-2.4-83.5-3.6-112-1.2-29-2.1-51.7-2.1-77 0-29 2.9-77.3 5.3-112.9l2.6-1c1.3-.3 10.1-2 14.4-2.7l10-3.2 6.6-3.7 9-5 4-2 .5-.3c1.2 2 2.6 4.1 3.4 4.8l6.1 7.8 15 14.6 4.8 4c-.6 26.4-1.1 60.6-1.1 100.1 0 59.3 1.1 82.6 2.7 114.6.9 18.8 2 40.7 3 74.9 1.5 48.3.8 98.4 0 148.6l-.8 68.3c0 13-.6 32.8-1.1 49Zm157.5-16.4-11.2 3.6a379.2 379.2 0 0 1-67 12c.2-11 .3-25.6.3-44.6 0-49.2-1.2-74.9-2.4-99.5-1.3-27.2-2.5-53-2-107.5.6-50.4 1.7-81.5 2.6-109.3 1-29.3 1.8-54.9 1.8-95.6 0-35.5-.6-70.6-1.2-98.6l3.6-3 5.3-5.1 3.5-3.6 3.5-3.4 4-5 4.2-5.3 2.7-4 .5.3 3.2 1.5 5.5 3.3 5.8 3 7.3 3 8.1 2.2c.7.2 3.3 1 8.4 2 2.4 0 6.5 1.5 11 3.4 2.6 29 5.2 68 5.2 107.8 0 41.5-1.6 70.2-3.2 102-1.6 28.7-3.3 60-4 105.6-.7 41.1.4 82.5 1.4 124.4.7 25.7 1.4 51.6 1.6 77.8a435 435 0 0 0 1.5 32.6Z" })
|
|
324
324
|
] }),
|
|
325
|
-
r && /* @__PURE__ */ t(
|
|
325
|
+
r && /* @__PURE__ */ t(se, { children: /* @__PURE__ */ t("path", { fill: r, d: "m153 277.8-5.8 14.5c-1 2.8-2.5 1.4-4.6.7l-2-.5-7.8-2.4-15.6-5-19-6.5-16-5.7-12-4.4-5.5-2.2c-3.5-1.1-3.1-1.2-1.9-4l1.8-4.9 3.2-9.3c-1.1-1.9 0-3.1.8-3.5l.2-.7.5-2 4.3-10.3 2.4-6 2.6-6.2.8-2.6 1.7-4.1v-.4l.3-2.6.6-3.4 1-3.5 1-3.8c.1-.9 2-5.6 3-7.8l.7-1.5.7-2 .9-3.6 3.4-12.6 2.4-8.6 2.7-11.2 3.5-9.6 3.6-9.4 3-6 2-4.1 3.6-5.8 2.2-4.3 3-4.4 3.2-3.9 1.7-1.9 3.6-3.6 3-2.9a109.3 109.3 0 0 1 13.3-11.2l1.2-.8a79.3 79.3 0 0 1 18-9l11.4-4.2 4-1.4 6.3-2.7 3.3-1.4 2.8-1.2 4-1.6 3.9-2.1 10.1-5 4.8-2.4 5.7-3.2 13.8-7.7c1.5-.8 4.7-2.7 6-3a8.5 8.5 0 0 0 3-1.8c3.4-2.5 4.5-4.8 6-5.3.4-.4 2-1.6 5.2-3.2-4.4 3.3-3.2 11-2.1 14.6a77 77 0 0 0 8.7 18.8l-.6.4-3.9 2-9 5-6.6 3.7-10 3.2c-4.3.8-13.2 2.4-14.4 2.8-1.2.3-10.2 4-14.5 5.8l-11.8 5.6-8.8 3.2-12 3.4-19 8.7c-5.8 1.4-19.3 14.2-25.3 20.4L122 128l.3.4 6.6 16.6 10.5 22.6 6.2 10.8c2.9 3 8.7 9.7 9.1 11.7.5 2 4.3 5.1 6.1 6.5.2.8.8 3.1 1.7 5.4-3.2 4.8-.4 10.6 1.4 12.9l1 4.6.3 6.5-.5 1c-1.4 1.4-.3 4 .4 5l.1 3c.5 1.4 1.3 4.2.8 5.2s0 2.7.3 3.4v4.9c-3.1.5-2 3.7-1 5.2-.5.7-1.8 2.2-3.2 2.7-1.4.5-1.8 3.6-1.8 5.2a9 9 0 0 1-2.7 4.7c-1.8 1.6-2.8 7.4-3 10.1l-1.6 1.5ZM403.8 31.1l-1.6-.7c1.2 1 2 2.2 2.8 4 1.8 2.8.6 8-.7 12.2a78 78 0 0 1-7.6 17l.5.2 3.3 1.5 5.4 3.3 5.9 3 7.2 3 8.2 2.2c.7.2 3.3 1 8.4 2 5.5.1 21.1 8 28.2 11.8l14 4.5a517 517 0 0 1 23.8 9.3c6.3.5 24.7 17 33.1 25.2l-4.6 11.6-8.2 19.3-3.8 9-5.2 8.6c-2.2 3.2-7.3 10.2-9.4 12.4-1.3-.3-5.6 4.4-7.6 6.7.3 2 .6 6.7-1.4 9.1-2 2.5-1.8 6.9-1.4 8.7.3.8.5 3-1 5.3-1.4 2.4-1 4-.5 4.5-.2.8-.7 2.5-1.4 3.4-.8.8-.4 3.3 0 4.5l.1 3-.1 2.2c-.2.6-.6 2.6-1.1 6.2 3.6 3.3 1.3 5.7-.3 6.5l2.2.3 1.3 2.7 1.5 3.8 1.1 2.3 2.7 7.1 1.6 4.8.3 2.1v1.6l1.9 1.9 4 8.9 1.8 4.5c.5 4 5.5 3.6 8 3l5.9-1.1 7.3-1.7 5.2-1.2 7.3-2.1 8.3-2.7 7.5-2.5 9.8-3.6 8-3 6.3-2.8 3.4-1.6 3-1.3 2.5-1.6 1-.8c1.9-1 2-2.1 1.6-2.9l-.6-1.7-1-2.7-1.6-4.2-1.4-4-.5-1.4-.1-.7v-1.2c.7-1-.4-2.5-1-3v-.2l-1-2-2.4-6-3.3-8.3-2.3-6a3896.4 3896.4 0 0 0-3.1-8.4l-2.2-7.1-1.5-5.7-2.5-8.9-1-3.1-1.2-4.5-2-8.2-2.2-9.3-2.8-11.4-2.6-9.1-.9-3c0-.3-.6-1.5-1-2l-2.5-5.6-3-6.6-5.7-11.3-2.5-4.3-2.3-3.3-.7-.7-4.3-5-3-3.8a73 73 0 0 0-4.2-3.8c-1.1-2-7.6-7-10.8-9.4-6.2-5-23.4-12.8-34-16.7l-11-4-16-7.9-20.1-10-7.1-3.8-2.4-1.5-13-7.3-2.6-3.4-5-3Z" }) }),
|
|
326
326
|
/* @__PURE__ */ t(
|
|
327
327
|
"path",
|
|
328
328
|
{
|
|
@@ -350,7 +350,7 @@ function ua({ 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: Se.shadow,
|
|
354
354
|
alt: "",
|
|
355
355
|
"aria-hidden": !0
|
|
356
356
|
}
|
|
@@ -359,57 +359,57 @@ function ua({ 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: Se.highlight,
|
|
363
363
|
alt: "",
|
|
364
364
|
"aria-hidden": !0
|
|
365
365
|
}
|
|
366
366
|
)
|
|
367
367
|
] });
|
|
368
368
|
}
|
|
369
|
-
function
|
|
370
|
-
return /* @__PURE__ */ p("div", { className: `oli-font ${
|
|
369
|
+
function Ne({ name: e, jersey: a, size: n = "regular" }) {
|
|
370
|
+
return /* @__PURE__ */ p("div", { className: `oli-font ${_e.team} ${_e[n]}`, children: [
|
|
371
371
|
a != null && a.base ? /* @__PURE__ */ t(
|
|
372
|
-
|
|
372
|
+
da,
|
|
373
373
|
{
|
|
374
374
|
jersey: a,
|
|
375
|
-
className: `${
|
|
375
|
+
className: `${_e.logo}`
|
|
376
376
|
}
|
|
377
|
-
) : /* @__PURE__ */ t(j, { variant: "circular", className: `${
|
|
378
|
-
/* @__PURE__ */ t("span", { className:
|
|
377
|
+
) : /* @__PURE__ */ t(j, { variant: "circular", className: `${_e.logo} ${_e.skeleton}` }),
|
|
378
|
+
/* @__PURE__ */ t("span", { className: _e.name, children: e })
|
|
379
379
|
] });
|
|
380
380
|
}
|
|
381
|
-
function
|
|
381
|
+
function ua(e, a, {
|
|
382
382
|
enabled: n = !0,
|
|
383
383
|
threshold: o = 60,
|
|
384
384
|
cooldownMs: i = 500
|
|
385
385
|
} = {}) {
|
|
386
386
|
const r = G(0), s = G(0);
|
|
387
|
-
|
|
387
|
+
Q(() => {
|
|
388
388
|
if (!n) return;
|
|
389
389
|
const m = e.current;
|
|
390
390
|
if (!m) return;
|
|
391
391
|
const f = (g) => {
|
|
392
|
-
const
|
|
393
|
-
if (!
|
|
392
|
+
const u = a.current;
|
|
393
|
+
if (!u || !u.go) return;
|
|
394
394
|
const { deltaX: l, deltaY: c } = g;
|
|
395
395
|
if (Math.abs(l) <= Math.abs(c)) return;
|
|
396
396
|
g.preventDefault(), r.current += l;
|
|
397
397
|
const h = Date.now();
|
|
398
398
|
if (h - s.current < i || Math.abs(r.current) < o) return;
|
|
399
399
|
const b = r.current > 0 ? ">" : "<";
|
|
400
|
-
r.current = 0, s.current = h,
|
|
400
|
+
r.current = 0, s.current = h, u.go(b);
|
|
401
401
|
};
|
|
402
402
|
return m.addEventListener("wheel", f, { passive: !1 }), () => {
|
|
403
403
|
m.removeEventListener("wheel", f), r.current = 0;
|
|
404
404
|
};
|
|
405
405
|
}, [n, o, i, e, a]);
|
|
406
406
|
}
|
|
407
|
-
const
|
|
408
|
-
gradientOverlay:
|
|
409
|
-
right:
|
|
410
|
-
left:
|
|
411
|
-
svg:
|
|
412
|
-
},
|
|
407
|
+
const ma = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", pa = "oraculo__OraculoCarousel-module__right___KwpOE", fa = "oraculo__OraculoCarousel-module__left___n3WQu", ga = "oraculo__OraculoCarousel-module__svg___0mGuX", ye = {
|
|
408
|
+
gradientOverlay: ma,
|
|
409
|
+
right: pa,
|
|
410
|
+
left: fa,
|
|
411
|
+
svg: ga
|
|
412
|
+
}, ha = $t, ba = Nt, he = Ct(
|
|
413
413
|
({
|
|
414
414
|
items: e = [],
|
|
415
415
|
renderItem: a,
|
|
@@ -421,12 +421,12 @@ const pa = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", fa = "ora
|
|
|
421
421
|
onMove: m,
|
|
422
422
|
useIndexAsKey: f = !1,
|
|
423
423
|
enableHorizontalWheel: g = !0,
|
|
424
|
-
showRightGradient:
|
|
424
|
+
showRightGradient: u = !1
|
|
425
425
|
}, l) => {
|
|
426
|
-
const c = G(null), h = G(null), b = G(e.length),
|
|
427
|
-
|
|
426
|
+
const c = G(null), h = G(null), b = G(e.length), E = G(null), A = G(null);
|
|
427
|
+
ua(h, c, {
|
|
428
428
|
enabled: g
|
|
429
|
-
}),
|
|
429
|
+
}), Et(l, () => ({
|
|
430
430
|
next: () => {
|
|
431
431
|
var w;
|
|
432
432
|
return (w = c.current) == null ? void 0 : w.go(">");
|
|
@@ -436,24 +436,24 @@ const pa = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", fa = "ora
|
|
|
436
436
|
return (w = c.current) == null ? void 0 : w.go("<");
|
|
437
437
|
},
|
|
438
438
|
go: (w) => {
|
|
439
|
-
var
|
|
440
|
-
return (
|
|
439
|
+
var z;
|
|
440
|
+
return (z = c.current) == null ? void 0 : z.go(w);
|
|
441
441
|
}
|
|
442
442
|
}));
|
|
443
443
|
const O = (w) => {
|
|
444
444
|
var D;
|
|
445
|
-
const
|
|
445
|
+
const z = w.Components.Slides, F = w.Components.Controller, S = w.root.querySelector(".splide__track"), N = (D = S == null ? void 0 : S.clientWidth) != null ? D : 0, M = F.getIndex(), R = z.getLength();
|
|
446
446
|
let P = 0, v = M;
|
|
447
|
-
for (let $ = M; $ <
|
|
448
|
-
const V =
|
|
447
|
+
for (let $ = M; $ < R; $++) {
|
|
448
|
+
const V = z.getAt($);
|
|
449
449
|
if (!V || (P += V.slide.offsetWidth, P > N)) break;
|
|
450
450
|
v = $;
|
|
451
451
|
}
|
|
452
452
|
return { visibleStart: M, visibleEnd: v };
|
|
453
453
|
}, x = (w) => {
|
|
454
|
-
const
|
|
455
|
-
return !
|
|
456
|
-
},
|
|
454
|
+
const z = w.root.querySelector(".splide__track"), F = w.root.querySelector(".splide__list");
|
|
455
|
+
return !z || !F ? !1 : F.scrollWidth > z.clientWidth + 1;
|
|
456
|
+
}, k = Oe((w) => {
|
|
457
457
|
var v, D;
|
|
458
458
|
const F = w.Components.Slides.getLength();
|
|
459
459
|
if (!x(w)) {
|
|
@@ -467,36 +467,36 @@ const pa = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", fa = "ora
|
|
|
467
467
|
});
|
|
468
468
|
return;
|
|
469
469
|
}
|
|
470
|
-
const { visibleStart: S, visibleEnd: N } = O(w), M = S === 0,
|
|
471
|
-
|
|
470
|
+
const { visibleStart: S, visibleEnd: N } = O(w), M = S === 0, R = N === F - 1;
|
|
471
|
+
u && ((v = E.current) == null || v.style.setProperty("--gradient-opacity", M ? "0" : "1"), (D = A.current) == null || D.style.setProperty("--gradient-opacity", R ? "0" : "1"));
|
|
472
472
|
const P = w.Components.Controller.getIndex();
|
|
473
473
|
m == null || m({
|
|
474
474
|
index: P,
|
|
475
475
|
isStart: M,
|
|
476
|
-
isEnd:
|
|
476
|
+
isEnd: R,
|
|
477
477
|
total: F,
|
|
478
478
|
visibleStart: S,
|
|
479
479
|
visibleEnd: N
|
|
480
480
|
});
|
|
481
481
|
}, [m]);
|
|
482
|
-
|
|
482
|
+
fe.useEffect(() => {
|
|
483
483
|
var F;
|
|
484
484
|
const w = (F = c.current) == null ? void 0 : F.splide;
|
|
485
485
|
if (!w) return;
|
|
486
|
-
const
|
|
487
|
-
b.current = e.length,
|
|
488
|
-
w.refresh(),
|
|
486
|
+
const z = b.current !== e.length;
|
|
487
|
+
b.current = e.length, z && requestAnimationFrame(() => {
|
|
488
|
+
w.refresh(), k(w);
|
|
489
489
|
});
|
|
490
|
-
}, [e.length,
|
|
491
|
-
const U =
|
|
492
|
-
var
|
|
493
|
-
const w = (
|
|
494
|
-
w && (w.go(0, !1),
|
|
495
|
-
}, [
|
|
490
|
+
}, [e.length, k]);
|
|
491
|
+
const U = Oe(() => {
|
|
492
|
+
var z;
|
|
493
|
+
const w = (z = c.current) == null ? void 0 : z.splide;
|
|
494
|
+
w && (w.go(0, !1), k(w));
|
|
495
|
+
}, [k]), I = Oe(
|
|
496
496
|
(w) => {
|
|
497
|
-
|
|
497
|
+
k(w);
|
|
498
498
|
},
|
|
499
|
-
[
|
|
499
|
+
[k]
|
|
500
500
|
), L = {
|
|
501
501
|
type: "slide",
|
|
502
502
|
trimSpace: !1,
|
|
@@ -520,30 +520,30 @@ const pa = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", fa = "ora
|
|
|
520
520
|
style: { width: "100%", position: "relative", height: "100%" },
|
|
521
521
|
children: [
|
|
522
522
|
/* @__PURE__ */ t(
|
|
523
|
-
|
|
523
|
+
ha,
|
|
524
524
|
{
|
|
525
525
|
ref: c,
|
|
526
526
|
options: L,
|
|
527
|
-
onMove:
|
|
527
|
+
onMove: k,
|
|
528
528
|
onMounted: I,
|
|
529
529
|
onResize: U,
|
|
530
|
-
children: e.map((w,
|
|
530
|
+
children: e.map((w, z) => {
|
|
531
531
|
var F;
|
|
532
|
-
return /* @__PURE__ */ t(
|
|
532
|
+
return /* @__PURE__ */ t(ba, { children: a(w, z) }, f ? z : (F = w.id) != null ? F : z);
|
|
533
533
|
})
|
|
534
534
|
}
|
|
535
535
|
),
|
|
536
|
-
|
|
536
|
+
u && /* @__PURE__ */ p(se, { children: [
|
|
537
537
|
/* @__PURE__ */ t(
|
|
538
538
|
"div",
|
|
539
539
|
{
|
|
540
|
-
ref:
|
|
541
|
-
className: `${
|
|
540
|
+
ref: E,
|
|
541
|
+
className: `${ye.gradientOverlay} ${ye.left}`,
|
|
542
542
|
style: { "--gradient-opacity": "0" },
|
|
543
543
|
children: /* @__PURE__ */ p(
|
|
544
544
|
"svg",
|
|
545
545
|
{
|
|
546
|
-
className:
|
|
546
|
+
className: ye.svg,
|
|
547
547
|
viewBox: "0 0 152 184",
|
|
548
548
|
preserveAspectRatio: "none",
|
|
549
549
|
fill: "none",
|
|
@@ -562,13 +562,13 @@ const pa = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", fa = "ora
|
|
|
562
562
|
/* @__PURE__ */ t(
|
|
563
563
|
"div",
|
|
564
564
|
{
|
|
565
|
-
ref:
|
|
566
|
-
className: `${
|
|
565
|
+
ref: A,
|
|
566
|
+
className: `${ye.gradientOverlay} ${ye.right}`,
|
|
567
567
|
style: { "--gradient-opacity": "1" },
|
|
568
568
|
children: /* @__PURE__ */ p(
|
|
569
569
|
"svg",
|
|
570
570
|
{
|
|
571
|
-
className:
|
|
571
|
+
className: ye.svg,
|
|
572
572
|
viewBox: "0 0 152 184",
|
|
573
573
|
preserveAspectRatio: "none",
|
|
574
574
|
fill: "none",
|
|
@@ -589,7 +589,7 @@ const pa = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", fa = "ora
|
|
|
589
589
|
}
|
|
590
590
|
);
|
|
591
591
|
}
|
|
592
|
-
),
|
|
592
|
+
), Te = ({
|
|
593
593
|
imageUrl: e,
|
|
594
594
|
onClick: a,
|
|
595
595
|
size: n = "sm",
|
|
@@ -669,14 +669,14 @@ const pa = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", fa = "ora
|
|
|
669
669
|
transition: "opacity .15s ease, transform .15s ease",
|
|
670
670
|
pointerEvents: "none"
|
|
671
671
|
},
|
|
672
|
-
children: /* @__PURE__ */ t(
|
|
672
|
+
children: /* @__PURE__ */ t(Y, { variant: "primary", size: "md", onClick: r, children: "Jugar" })
|
|
673
673
|
}
|
|
674
674
|
)
|
|
675
675
|
]
|
|
676
676
|
}
|
|
677
677
|
);
|
|
678
678
|
};
|
|
679
|
-
function
|
|
679
|
+
function va({
|
|
680
680
|
imageUrl: e,
|
|
681
681
|
orden: a = 1,
|
|
682
682
|
onClick: n,
|
|
@@ -687,13 +687,13 @@ function _a({
|
|
|
687
687
|
}
|
|
688
688
|
}) {
|
|
689
689
|
var l, c, h, b;
|
|
690
|
-
const r = (
|
|
691
|
-
var O, x,
|
|
690
|
+
const r = (E, A) => {
|
|
691
|
+
var O, x, k, U;
|
|
692
692
|
return {
|
|
693
|
-
xs: (x = (O = i.xs) == null ? void 0 : O[
|
|
694
|
-
md: (U = (
|
|
693
|
+
xs: (x = (O = i.xs) == null ? void 0 : O[E]) != null ? x : A,
|
|
694
|
+
md: (U = (k = i.md) == null ? void 0 : k[E]) != null ? U : A
|
|
695
695
|
};
|
|
696
|
-
}, s = r("w", 186), m = r("h", 264), f = r("r", 22.6), g = r("font", 64),
|
|
696
|
+
}, s = r("w", 186), m = r("h", 264), f = r("r", 22.6), g = r("font", 64), u = {
|
|
697
697
|
xs: Math.round(((c = (l = i.xs) == null ? void 0 : l.font) != null ? c : 64) * 0.28),
|
|
698
698
|
md: Math.round(((b = (h = i.md) == null ? void 0 : h.font) != null ? b : 64) * 0.28)
|
|
699
699
|
};
|
|
@@ -711,7 +711,7 @@ function _a({
|
|
|
711
711
|
borderRadius: { xs: `${f.xs}px`, md: `${f.md}px` },
|
|
712
712
|
boxSizing: "border-box",
|
|
713
713
|
overflow: "visible",
|
|
714
|
-
pb: { xs: `${
|
|
714
|
+
pb: { xs: `${u.xs}px`, md: `${u.md}px` },
|
|
715
715
|
"&::before": {
|
|
716
716
|
content: '""',
|
|
717
717
|
position: "absolute",
|
|
@@ -748,7 +748,7 @@ function _a({
|
|
|
748
748
|
}
|
|
749
749
|
}
|
|
750
750
|
) : /* @__PURE__ */ t(
|
|
751
|
-
|
|
751
|
+
Te,
|
|
752
752
|
{
|
|
753
753
|
imageUrl: e,
|
|
754
754
|
onClick: n,
|
|
@@ -766,8 +766,8 @@ function _a({
|
|
|
766
766
|
position: "absolute",
|
|
767
767
|
left: 8,
|
|
768
768
|
bottom: {
|
|
769
|
-
xs: `-${
|
|
770
|
-
md: `-${
|
|
769
|
+
xs: `-${u.xs}px`,
|
|
770
|
+
md: `-${u.md}px`
|
|
771
771
|
},
|
|
772
772
|
fontFamily: '"secondary", sans-serif',
|
|
773
773
|
fontSize: {
|
|
@@ -787,7 +787,7 @@ function _a({
|
|
|
787
787
|
}
|
|
788
788
|
);
|
|
789
789
|
}
|
|
790
|
-
const
|
|
790
|
+
const _a = ({
|
|
791
791
|
logo: e,
|
|
792
792
|
provider: a,
|
|
793
793
|
providerName: n,
|
|
@@ -850,7 +850,7 @@ const ya = ({
|
|
|
850
850
|
pointerEvents: "none"
|
|
851
851
|
},
|
|
852
852
|
children: /* @__PURE__ */ t(
|
|
853
|
-
|
|
853
|
+
ue,
|
|
854
854
|
{
|
|
855
855
|
sx: {
|
|
856
856
|
color: "#fff",
|
|
@@ -866,7 +866,7 @@ const ya = ({
|
|
|
866
866
|
]
|
|
867
867
|
}
|
|
868
868
|
);
|
|
869
|
-
},
|
|
869
|
+
}, Fe = 12, Pe = ({ r: e = 16 }) => /* @__PURE__ */ t(q, { sx: { width: "100%", height: "100%", borderRadius: e, overflow: "hidden" }, children: /* @__PURE__ */ t(
|
|
870
870
|
j,
|
|
871
871
|
{
|
|
872
872
|
variant: "rectangular",
|
|
@@ -881,7 +881,7 @@ const ya = ({
|
|
|
881
881
|
}
|
|
882
882
|
}
|
|
883
883
|
}
|
|
884
|
-
) }),
|
|
884
|
+
) }), ft = ({
|
|
885
885
|
items: e,
|
|
886
886
|
layout: a = "grid",
|
|
887
887
|
onClick: n,
|
|
@@ -909,8 +909,8 @@ const ya = ({
|
|
|
909
909
|
xs: "104px",
|
|
910
910
|
md: "152px"
|
|
911
911
|
},
|
|
912
|
-
columnGap: `${
|
|
913
|
-
rowGap: `${
|
|
912
|
+
columnGap: `${Fe}px`,
|
|
913
|
+
rowGap: `${Fe}px`,
|
|
914
914
|
alignItems: "stretch",
|
|
915
915
|
justifyItems: "stretch"
|
|
916
916
|
},
|
|
@@ -925,8 +925,8 @@ const ya = ({
|
|
|
925
925
|
overflow: "hidden",
|
|
926
926
|
borderRadius: 2
|
|
927
927
|
},
|
|
928
|
-
children: o ? /* @__PURE__ */ t(
|
|
929
|
-
|
|
928
|
+
children: o ? /* @__PURE__ */ t(Pe, {}) : m && /* @__PURE__ */ t(
|
|
929
|
+
Te,
|
|
930
930
|
{
|
|
931
931
|
imageUrl: `https://olimpo.bet${(s = (r = m.background) != null ? r : m.imageUrl) != null ? s : ""}`,
|
|
932
932
|
size: "lg",
|
|
@@ -936,7 +936,7 @@ const ya = ({
|
|
|
936
936
|
)
|
|
937
937
|
}
|
|
938
938
|
),
|
|
939
|
-
(o ? Array.from({ length: 4 }) : f).map((g,
|
|
939
|
+
(o ? Array.from({ length: 4 }) : f).map((g, u) => {
|
|
940
940
|
var l, c;
|
|
941
941
|
return /* @__PURE__ */ t(
|
|
942
942
|
q,
|
|
@@ -947,17 +947,17 @@ const ya = ({
|
|
|
947
947
|
overflow: "hidden",
|
|
948
948
|
borderRadius: 2
|
|
949
949
|
},
|
|
950
|
-
children: o ? /* @__PURE__ */ t(
|
|
951
|
-
|
|
950
|
+
children: o ? /* @__PURE__ */ t(Pe, {}) : /* @__PURE__ */ t(
|
|
951
|
+
Te,
|
|
952
952
|
{
|
|
953
953
|
imageUrl: `https://olimpo.bet${(c = (l = g.background) != null ? l : g.imageUrl) != null ? c : ""}`,
|
|
954
954
|
size: "sm",
|
|
955
955
|
fillParent: !0,
|
|
956
|
-
onClick: () => n == null ? void 0 : n(g,
|
|
956
|
+
onClick: () => n == null ? void 0 : n(g, u + 1)
|
|
957
957
|
}
|
|
958
958
|
)
|
|
959
959
|
},
|
|
960
|
-
o ? `sk-${
|
|
960
|
+
o ? `sk-${u}` : g.id
|
|
961
961
|
);
|
|
962
962
|
})
|
|
963
963
|
]
|
|
@@ -977,19 +977,19 @@ const ya = ({
|
|
|
977
977
|
xs: "repeat(2, 112px)",
|
|
978
978
|
md: "repeat(2, 168px)"
|
|
979
979
|
},
|
|
980
|
-
gap: `${
|
|
980
|
+
gap: `${Fe}px`,
|
|
981
981
|
gridAutoFlow: "column"
|
|
982
982
|
},
|
|
983
983
|
children: (o ? Array.from({ length: i }) : e).map((m, f) => {
|
|
984
|
-
var g,
|
|
984
|
+
var g, u, l;
|
|
985
985
|
return /* @__PURE__ */ t(
|
|
986
986
|
q,
|
|
987
987
|
{
|
|
988
988
|
sx: { overflow: "hidden", borderRadius: 2 },
|
|
989
|
-
children: o ? /* @__PURE__ */ t(
|
|
990
|
-
|
|
989
|
+
children: o ? /* @__PURE__ */ t(Pe, {}) : /* @__PURE__ */ t(
|
|
990
|
+
Te,
|
|
991
991
|
{
|
|
992
|
-
imageUrl: `https://olimpo.bet${(
|
|
992
|
+
imageUrl: `https://olimpo.bet${(u = (g = m.background) != null ? g : m.imageUrl) != null ? u : ""}`,
|
|
993
993
|
size: "sm",
|
|
994
994
|
fillParent: !0,
|
|
995
995
|
onClick: () => n == null ? void 0 : n(m, f)
|
|
@@ -1001,7 +1001,7 @@ const ya = ({
|
|
|
1001
1001
|
})
|
|
1002
1002
|
}
|
|
1003
1003
|
);
|
|
1004
|
-
},
|
|
1004
|
+
}, Je = ({
|
|
1005
1005
|
title: e,
|
|
1006
1006
|
amount: a,
|
|
1007
1007
|
subtitle: n,
|
|
@@ -1012,7 +1012,7 @@ const ya = ({
|
|
|
1012
1012
|
className: m = "",
|
|
1013
1013
|
variant: f = "small"
|
|
1014
1014
|
}) => {
|
|
1015
|
-
const g = a ? a.slice(0, 2) : "",
|
|
1015
|
+
const g = a ? a.slice(0, 2) : "", u = a ? a.slice(2) : "", l = f === "large";
|
|
1016
1016
|
return /* @__PURE__ */ p(
|
|
1017
1017
|
q,
|
|
1018
1018
|
{
|
|
@@ -1085,7 +1085,7 @@ const ya = ({
|
|
|
1085
1085
|
},
|
|
1086
1086
|
children: [
|
|
1087
1087
|
e && /* @__PURE__ */ t(
|
|
1088
|
-
|
|
1088
|
+
ue,
|
|
1089
1089
|
{
|
|
1090
1090
|
sx: {
|
|
1091
1091
|
fontSize: { xs: 12, md: 20 },
|
|
@@ -1126,14 +1126,14 @@ const ya = ({
|
|
|
1126
1126
|
{
|
|
1127
1127
|
component: "span",
|
|
1128
1128
|
sx: { fontSize: { xs: 52, md: 77 } },
|
|
1129
|
-
children:
|
|
1129
|
+
children: u
|
|
1130
1130
|
}
|
|
1131
1131
|
)
|
|
1132
1132
|
]
|
|
1133
1133
|
}
|
|
1134
1134
|
),
|
|
1135
1135
|
n && /* @__PURE__ */ t(
|
|
1136
|
-
|
|
1136
|
+
ue,
|
|
1137
1137
|
{
|
|
1138
1138
|
sx: {
|
|
1139
1139
|
pb: "20px",
|
|
@@ -1144,7 +1144,7 @@ const ya = ({
|
|
|
1144
1144
|
children: n
|
|
1145
1145
|
}
|
|
1146
1146
|
),
|
|
1147
|
-
o && /* @__PURE__ */ t(
|
|
1147
|
+
o && /* @__PURE__ */ t(Y, { onClick: i, children: o })
|
|
1148
1148
|
]
|
|
1149
1149
|
}
|
|
1150
1150
|
)
|
|
@@ -1153,7 +1153,7 @@ const ya = ({
|
|
|
1153
1153
|
]
|
|
1154
1154
|
}
|
|
1155
1155
|
);
|
|
1156
|
-
},
|
|
1156
|
+
}, ya = ({
|
|
1157
1157
|
text: e,
|
|
1158
1158
|
buttonLabel: a = "Conoce más",
|
|
1159
1159
|
onClick: n,
|
|
@@ -1161,7 +1161,7 @@ const ya = ({
|
|
|
1161
1161
|
imgSrcMobile: i,
|
|
1162
1162
|
imgSrcDesktopBg: r,
|
|
1163
1163
|
imgSrcDesktopLogo: s
|
|
1164
|
-
}) => /* @__PURE__ */ p(
|
|
1164
|
+
}) => /* @__PURE__ */ p(se, { children: [
|
|
1165
1165
|
/* @__PURE__ */ t("div", { className: "orc-co-bgMobile", children: /* @__PURE__ */ t(
|
|
1166
1166
|
"img",
|
|
1167
1167
|
{
|
|
@@ -1189,38 +1189,38 @@ const ya = ({
|
|
|
1189
1189
|
}
|
|
1190
1190
|
),
|
|
1191
1191
|
/* @__PURE__ */ t("p", { className: "orc-co-captionDesktop", children: e }),
|
|
1192
|
-
/* @__PURE__ */ t(
|
|
1192
|
+
/* @__PURE__ */ t(Y, { onClick: n, variant: "primary", size: "md", children: a })
|
|
1193
1193
|
] })
|
|
1194
1194
|
] }) }),
|
|
1195
1195
|
/* @__PURE__ */ p("div", { className: "orc-co-bottom", children: [
|
|
1196
1196
|
/* @__PURE__ */ t("p", { className: "orc-co-caption", children: e }),
|
|
1197
|
-
/* @__PURE__ */ t(
|
|
1197
|
+
/* @__PURE__ */ t(Y, { onClick: n, variant: "primary", size: "md", children: a })
|
|
1198
1198
|
] })
|
|
1199
|
-
] }),
|
|
1200
|
-
card:
|
|
1201
|
-
combinadas:
|
|
1202
|
-
combinadasScroll:
|
|
1203
|
-
apuestaItem:
|
|
1204
|
-
lineContainer:
|
|
1205
|
-
circle:
|
|
1206
|
-
line:
|
|
1207
|
-
apuestaText:
|
|
1208
|
-
cuotaTotal:
|
|
1199
|
+
] }), xa = "oraculo__OraculoEventCombinadasCard-module__card___ulQeY", wa = "oraculo__OraculoEventCombinadasCard-module__combinadas___Gxrld", Sa = "oraculo__OraculoEventCombinadasCard-module__combinadasScroll___47cZl", Ia = "oraculo__OraculoEventCombinadasCard-module__apuestaItem___YnYMy", Ca = "oraculo__OraculoEventCombinadasCard-module__lineContainer___G5rbU", Ea = "oraculo__OraculoEventCombinadasCard-module__circle___eehm-", Oa = "oraculo__OraculoEventCombinadasCard-module__line___Eb2pK", Ta = "oraculo__OraculoEventCombinadasCard-module__apuestaText___b5s7S", ka = "oraculo__OraculoEventCombinadasCard-module__cuotaTotal___Lohvu", ce = {
|
|
1200
|
+
card: xa,
|
|
1201
|
+
combinadas: wa,
|
|
1202
|
+
combinadasScroll: Sa,
|
|
1203
|
+
apuestaItem: Ia,
|
|
1204
|
+
lineContainer: Ca,
|
|
1205
|
+
circle: Ea,
|
|
1206
|
+
line: Oa,
|
|
1207
|
+
apuestaText: Ta,
|
|
1208
|
+
cuotaTotal: ka
|
|
1209
1209
|
};
|
|
1210
|
-
function
|
|
1210
|
+
function Ve(e, a) {
|
|
1211
1211
|
const n = Array.isArray(a) ? a : [a];
|
|
1212
1212
|
sessionStorage.setItem("landingOutcomes", JSON.stringify(n)), window.location.href = e;
|
|
1213
1213
|
}
|
|
1214
|
-
function
|
|
1214
|
+
function $a() {
|
|
1215
1215
|
window.location.href = "/deportes#in-play";
|
|
1216
1216
|
}
|
|
1217
|
-
function
|
|
1217
|
+
function Na() {
|
|
1218
1218
|
window.location.href = "/deportes#sports-hub/football";
|
|
1219
1219
|
}
|
|
1220
|
-
function
|
|
1220
|
+
function Ma() {
|
|
1221
1221
|
window.location.href = "/deportes#specials";
|
|
1222
1222
|
}
|
|
1223
|
-
async function
|
|
1223
|
+
async function gt(e) {
|
|
1224
1224
|
return await (await fetch("https://api.mktolimpo.com/api/jerseys/search", {
|
|
1225
1225
|
method: "POST",
|
|
1226
1226
|
headers: {
|
|
@@ -1231,38 +1231,38 @@ async function ht(e) {
|
|
|
1231
1231
|
})
|
|
1232
1232
|
})).json();
|
|
1233
1233
|
}
|
|
1234
|
-
function
|
|
1235
|
-
const [n, o] =
|
|
1236
|
-
return
|
|
1234
|
+
function ht(e, a = 250) {
|
|
1235
|
+
const [n, o] = J(e);
|
|
1236
|
+
return Q(() => {
|
|
1237
1237
|
const i = setTimeout(() => o(e), a);
|
|
1238
1238
|
return () => clearTimeout(i);
|
|
1239
1239
|
}, [e, a]), n;
|
|
1240
1240
|
}
|
|
1241
|
-
const
|
|
1242
|
-
const o =
|
|
1243
|
-
return /* @__PURE__ */ t(
|
|
1244
|
-
},
|
|
1245
|
-
const e =
|
|
1241
|
+
const bt = Ot(void 0), De = ({ children: e, docId: a, moduleId: n }) => {
|
|
1242
|
+
const o = fe.useMemo(() => ({ docId: a, moduleId: n }), [a, n]);
|
|
1243
|
+
return /* @__PURE__ */ t(bt.Provider, { value: o, children: e });
|
|
1244
|
+
}, vt = () => {
|
|
1245
|
+
const e = Tt(bt);
|
|
1246
1246
|
if (!e)
|
|
1247
1247
|
throw new Error("useDocContext debe usarse dentro de DocIdProvider");
|
|
1248
1248
|
return e;
|
|
1249
|
-
},
|
|
1250
|
-
function
|
|
1249
|
+
}, ne = () => vt().docId, le = () => vt().moduleId;
|
|
1250
|
+
function Ba({ coupon: e }) {
|
|
1251
1251
|
var g;
|
|
1252
|
-
const a =
|
|
1253
|
-
function o(
|
|
1252
|
+
const a = ae(), n = ne();
|
|
1253
|
+
function o(u) {
|
|
1254
1254
|
var h, b;
|
|
1255
1255
|
const l = [], c = Array.from(
|
|
1256
1256
|
new Map(
|
|
1257
|
-
((h =
|
|
1257
|
+
((h = u == null ? void 0 : u.events) != null ? h : []).filter(Boolean).map((E) => [E.id, E])
|
|
1258
1258
|
).values()
|
|
1259
1259
|
);
|
|
1260
|
-
return c.forEach((
|
|
1261
|
-
var
|
|
1262
|
-
const
|
|
1263
|
-
|
|
1264
|
-
var
|
|
1265
|
-
if (!((
|
|
1260
|
+
return c.forEach((E) => {
|
|
1261
|
+
var k;
|
|
1262
|
+
const A = (k = E.betoffers) != null ? k : [], O = E.homeName, x = E.awayName;
|
|
1263
|
+
A.forEach((U) => {
|
|
1264
|
+
var z, F, S, N, M, R, P;
|
|
1265
|
+
if (!((z = U == null ? void 0 : U.outcomes) != null && z.length)) return;
|
|
1266
1266
|
const I = U.outcomes[0];
|
|
1267
1267
|
if (!I) return;
|
|
1268
1268
|
let L = "";
|
|
@@ -1271,63 +1271,63 @@ function Aa({ coupon: e }) {
|
|
|
1271
1271
|
id: I.id,
|
|
1272
1272
|
value: L,
|
|
1273
1273
|
label: (M = (N = U.criterion) == null ? void 0 : N.label) != null ? M : "",
|
|
1274
|
-
odds: (
|
|
1274
|
+
odds: (R = I.odds) != null ? R : 0,
|
|
1275
1275
|
position: (P = I.position) != null ? P : 0,
|
|
1276
|
-
eventId:
|
|
1276
|
+
eventId: E.id
|
|
1277
1277
|
});
|
|
1278
1278
|
});
|
|
1279
1279
|
}), {
|
|
1280
|
-
outcomes: l.sort((
|
|
1281
|
-
total: Number((b =
|
|
1280
|
+
outcomes: l.sort((E, A) => E.position - A.position),
|
|
1281
|
+
total: Number((b = u == null ? void 0 : u.combinadoTotal) != null ? b : 0).toLocaleString("en-US", {
|
|
1282
1282
|
minimumFractionDigits: 2,
|
|
1283
1283
|
maximumFractionDigits: 2
|
|
1284
1284
|
}),
|
|
1285
1285
|
events: c
|
|
1286
1286
|
};
|
|
1287
1287
|
}
|
|
1288
|
-
function i(
|
|
1289
|
-
if (!
|
|
1288
|
+
function i(u) {
|
|
1289
|
+
if (!u || !Array.isArray(u.events) || u.events.length === 0)
|
|
1290
1290
|
return "/deportes#home";
|
|
1291
|
-
const l =
|
|
1291
|
+
const l = u.events;
|
|
1292
1292
|
if (l.length === 1)
|
|
1293
1293
|
return `/deportes#event/${l[0].id}`;
|
|
1294
1294
|
const c = l[0].groupId;
|
|
1295
1295
|
if (l.every((b) => b.groupId === c)) {
|
|
1296
1296
|
const b = l[0].path;
|
|
1297
1297
|
if (Array.isArray(b) && b.length > 0)
|
|
1298
|
-
return `/deportes#sports-hub/${b.map((
|
|
1298
|
+
return `/deportes#sports-hub/${b.map((A) => A.termKey).filter(Boolean).join("/")}`;
|
|
1299
1299
|
}
|
|
1300
1300
|
return "/deportes#home";
|
|
1301
1301
|
}
|
|
1302
|
-
const r = (
|
|
1303
|
-
const c = Array.isArray(
|
|
1302
|
+
const r = (u, l) => {
|
|
1303
|
+
const c = Array.isArray(u) ? u : [u], h = Array.from(
|
|
1304
1304
|
new Set(
|
|
1305
|
-
s.outcomes.map((
|
|
1305
|
+
s.outcomes.map((A) => {
|
|
1306
1306
|
var x;
|
|
1307
|
-
const O = f.get(Number(
|
|
1307
|
+
const O = f.get(Number(A.eventId));
|
|
1308
1308
|
return (x = O == null ? void 0 : O.name) != null ? x : "";
|
|
1309
1309
|
})
|
|
1310
1310
|
)
|
|
1311
|
-
).filter(Boolean), b = h.length > 0 ? h.join(" + ") : JSON.stringify(c),
|
|
1311
|
+
).filter(Boolean), b = h.length > 0 ? h.join(" + ") : JSON.stringify(c), E = l ? `${b} - Cuota: ${l}` : b;
|
|
1312
1312
|
a({
|
|
1313
1313
|
element: "evento_semana_outcome",
|
|
1314
|
-
label: `Landing: ${n} - OraculoEventCombinadasCard - Click: ${
|
|
1314
|
+
label: `Landing: ${n} - OraculoEventCombinadasCard - Click: ${E}`,
|
|
1315
1315
|
target: "/deportes#in-play",
|
|
1316
1316
|
event_type: "click",
|
|
1317
1317
|
module_id: 301,
|
|
1318
1318
|
metadata: {
|
|
1319
1319
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1320
1320
|
},
|
|
1321
|
-
tags: { section: "OraculoEventCombinadasCard", outcomes:
|
|
1322
|
-
}),
|
|
1321
|
+
tags: { section: "OraculoEventCombinadasCard", outcomes: E }
|
|
1322
|
+
}), Ve(i(e), u);
|
|
1323
1323
|
};
|
|
1324
1324
|
if (!((g = e == null ? void 0 : e.events) != null && g.length)) return null;
|
|
1325
|
-
const s = o(e), m = s.outcomes.reduce((
|
|
1326
|
-
s.events.map((
|
|
1325
|
+
const s = o(e), m = s.outcomes.reduce((u, l) => (u[l.eventId] || (u[l.eventId] = []), u[l.eventId].push(l), u), {}), f = new Map(
|
|
1326
|
+
s.events.map((u) => [u.id, u])
|
|
1327
1327
|
);
|
|
1328
|
-
return /* @__PURE__ */ p("div", { className:
|
|
1329
|
-
/* @__PURE__ */ t("div", { className:
|
|
1330
|
-
const c = f.get(Number(
|
|
1328
|
+
return /* @__PURE__ */ p("div", { className: ce.card, children: [
|
|
1329
|
+
/* @__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(m).reverse().map(([u, l]) => {
|
|
1330
|
+
const c = f.get(Number(u));
|
|
1331
1331
|
return c ? /* @__PURE__ */ p(
|
|
1332
1332
|
H,
|
|
1333
1333
|
{
|
|
@@ -1336,7 +1336,7 @@ function Aa({ coupon: e }) {
|
|
|
1336
1336
|
useFlexGap: !0,
|
|
1337
1337
|
children: [
|
|
1338
1338
|
/* @__PURE__ */ t(
|
|
1339
|
-
|
|
1339
|
+
ge,
|
|
1340
1340
|
{
|
|
1341
1341
|
title: c.name,
|
|
1342
1342
|
iconUrl: "/assets/img/home/Combinadas/pelota.png",
|
|
@@ -1350,30 +1350,30 @@ function Aa({ coupon: e }) {
|
|
|
1350
1350
|
src: "/assets/img/home/Combinadas/line.png"
|
|
1351
1351
|
}
|
|
1352
1352
|
),
|
|
1353
|
-
l.map((h, b) => /* @__PURE__ */ p("div", { className:
|
|
1354
|
-
/* @__PURE__ */ p("div", { className:
|
|
1355
|
-
/* @__PURE__ */ t("div", { className:
|
|
1356
|
-
b < l.length - 1 && /* @__PURE__ */ t("div", { className:
|
|
1353
|
+
l.map((h, b) => /* @__PURE__ */ p("div", { className: ce.apuestaItem, children: [
|
|
1354
|
+
/* @__PURE__ */ p("div", { className: ce.lineContainer, children: [
|
|
1355
|
+
/* @__PURE__ */ t("div", { className: ce.circle }),
|
|
1356
|
+
b < l.length - 1 && /* @__PURE__ */ t("div", { className: ce.line })
|
|
1357
1357
|
] }),
|
|
1358
|
-
/* @__PURE__ */ p("div", { className:
|
|
1358
|
+
/* @__PURE__ */ p("div", { className: ce.apuestaText, children: [
|
|
1359
1359
|
/* @__PURE__ */ t("strong", { children: h.value }),
|
|
1360
1360
|
" | ",
|
|
1361
1361
|
h.label
|
|
1362
1362
|
] })
|
|
1363
|
-
] }, `${
|
|
1363
|
+
] }, `${u}-${b}`))
|
|
1364
1364
|
]
|
|
1365
1365
|
},
|
|
1366
|
-
|
|
1366
|
+
u
|
|
1367
1367
|
) : null;
|
|
1368
1368
|
}) }) }) }),
|
|
1369
1369
|
/* @__PURE__ */ p(
|
|
1370
1370
|
"button",
|
|
1371
1371
|
{
|
|
1372
1372
|
onClick: () => r(
|
|
1373
|
-
s.outcomes.map((
|
|
1373
|
+
s.outcomes.map((u) => u.id),
|
|
1374
1374
|
s.total
|
|
1375
1375
|
),
|
|
1376
|
-
className:
|
|
1376
|
+
className: ce.cuotaTotal,
|
|
1377
1377
|
children: [
|
|
1378
1378
|
/* @__PURE__ */ p("span", { children: [
|
|
1379
1379
|
"Cuota total: ",
|
|
@@ -1392,7 +1392,7 @@ function Aa({ coupon: e }) {
|
|
|
1392
1392
|
)
|
|
1393
1393
|
] });
|
|
1394
1394
|
}
|
|
1395
|
-
const
|
|
1395
|
+
const de = {
|
|
1396
1396
|
"orc-btn": "oraculo__OraculoButtonBet-module__orc-btn___jakza",
|
|
1397
1397
|
"orc-btn__label": "oraculo__OraculoButtonBet-module__orc-btn__label___zNFEH",
|
|
1398
1398
|
"orc-btn__icon": "oraculo__OraculoButtonBet-module__orc-btn__icon___5Rhyd",
|
|
@@ -1406,7 +1406,7 @@ const ue = {
|
|
|
1406
1406
|
"orc-btn--full": "oraculo__OraculoButtonBet-module__orc-btn--full___z-Myo",
|
|
1407
1407
|
"orc-btn--fullHeight": "oraculo__OraculoButtonBet-module__orc-btn--fullHeight___pCxq1"
|
|
1408
1408
|
};
|
|
1409
|
-
function
|
|
1409
|
+
function Aa({
|
|
1410
1410
|
children: e,
|
|
1411
1411
|
onClick: a,
|
|
1412
1412
|
href: n,
|
|
@@ -1417,31 +1417,31 @@ function za({
|
|
|
1417
1417
|
variant: m = "primary",
|
|
1418
1418
|
size: f,
|
|
1419
1419
|
fullWidth: g = !1,
|
|
1420
|
-
fullHeight:
|
|
1420
|
+
fullHeight: u = !1,
|
|
1421
1421
|
className: l = "",
|
|
1422
1422
|
ariaLabel: c,
|
|
1423
1423
|
leftIcon: h,
|
|
1424
1424
|
rightIcon: b,
|
|
1425
|
-
iconOnly:
|
|
1425
|
+
iconOnly: E
|
|
1426
1426
|
}) {
|
|
1427
|
-
const
|
|
1428
|
-
|
|
1427
|
+
const A = !!e && e !== !0, k = (!!h ? 1 : 0) + (!!b ? 1 : 0) == 1, U = E != null ? E : k && !A, I = [
|
|
1428
|
+
de["orc-btn"],
|
|
1429
1429
|
// base
|
|
1430
|
-
|
|
1430
|
+
de[`orc-btn--${m}`],
|
|
1431
1431
|
// variant primary/secondary/tertiary
|
|
1432
|
-
f ?
|
|
1432
|
+
f ? de[`orc-btn--${f}`] : "",
|
|
1433
1433
|
// sm / md / lg
|
|
1434
|
-
g ?
|
|
1435
|
-
|
|
1436
|
-
U ?
|
|
1434
|
+
g ? de["orc-btn--full"] : "",
|
|
1435
|
+
u ? de["orc-btn--fullHeight"] : "",
|
|
1436
|
+
U ? de["orc-btn--iconOnly"] : "",
|
|
1437
1437
|
l
|
|
1438
|
-
].filter(Boolean).join(" "), L = /* @__PURE__ */ p(
|
|
1439
|
-
h && /* @__PURE__ */ t("span", { className:
|
|
1440
|
-
!U && /* @__PURE__ */ t("span", { className:
|
|
1441
|
-
b && /* @__PURE__ */ t("span", { className:
|
|
1438
|
+
].filter(Boolean).join(" "), L = /* @__PURE__ */ p(se, { children: [
|
|
1439
|
+
h && /* @__PURE__ */ t("span", { className: de["orc-btn__icon"], children: h }),
|
|
1440
|
+
!U && /* @__PURE__ */ t("span", { className: de["orc-btn__label"], children: e }),
|
|
1441
|
+
b && /* @__PURE__ */ t("span", { className: de["orc-btn__icon"], children: b })
|
|
1442
1442
|
] }), w = s ? !0 : void 0;
|
|
1443
1443
|
return n ? /* @__PURE__ */ t(
|
|
1444
|
-
|
|
1444
|
+
it,
|
|
1445
1445
|
{
|
|
1446
1446
|
href: n,
|
|
1447
1447
|
target: o,
|
|
@@ -1450,7 +1450,7 @@ function za({
|
|
|
1450
1450
|
"aria-disabled": w,
|
|
1451
1451
|
tabIndex: w ? -1 : void 0,
|
|
1452
1452
|
className: I,
|
|
1453
|
-
onClick: w ? (
|
|
1453
|
+
onClick: w ? (z) => z.preventDefault() : a,
|
|
1454
1454
|
children: L
|
|
1455
1455
|
}
|
|
1456
1456
|
) : /* @__PURE__ */ t(
|
|
@@ -1465,37 +1465,37 @@ function za({
|
|
|
1465
1465
|
}
|
|
1466
1466
|
);
|
|
1467
1467
|
}
|
|
1468
|
-
const
|
|
1469
|
-
cardWrapper:
|
|
1470
|
-
customButtonLabel:
|
|
1471
|
-
customButtonDisabled:
|
|
1472
|
-
},
|
|
1468
|
+
const za = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", Ra = "oraculo__OraculoEventEnVivoCard-module__customButtonLabel___QRhk7", La = "oraculo__OraculoEventEnVivoCard-module__customButtonDisabled___jwioF", ke = {
|
|
1469
|
+
cardWrapper: za,
|
|
1470
|
+
customButtonLabel: Ra,
|
|
1471
|
+
customButtonDisabled: La
|
|
1472
|
+
}, Xe = {
|
|
1473
1473
|
base: "FFFFFF",
|
|
1474
1474
|
sleeve: "FFFFFF",
|
|
1475
1475
|
number: "000000",
|
|
1476
1476
|
real: !1,
|
|
1477
1477
|
type: "short_sleeves"
|
|
1478
|
-
},
|
|
1478
|
+
}, Ye = {
|
|
1479
1479
|
base: "000000",
|
|
1480
1480
|
sleeve: "000000",
|
|
1481
1481
|
number: "FFFFFF",
|
|
1482
1482
|
real: !1,
|
|
1483
1483
|
type: "short_sleeves"
|
|
1484
|
-
},
|
|
1484
|
+
}, Me = (e, a, n = "player") => {
|
|
1485
1485
|
var i, r;
|
|
1486
1486
|
if (e === void 0)
|
|
1487
1487
|
return null;
|
|
1488
1488
|
if (e === null)
|
|
1489
|
-
return a === "home" ?
|
|
1489
|
+
return a === "home" ? Xe : Ye;
|
|
1490
1490
|
const o = (r = (i = e == null ? void 0 : e.jerseys) == null ? void 0 : i[a]) == null ? void 0 : r[n];
|
|
1491
|
-
return o || (a === "home" ?
|
|
1491
|
+
return o || (a === "home" ? Xe : Ye);
|
|
1492
1492
|
};
|
|
1493
|
-
function
|
|
1494
|
-
var m, f, g,
|
|
1493
|
+
function Fa({ event: e, liveData: a, betOffers: n, jersey: o }) {
|
|
1494
|
+
var m, f, g, u, l, c, h, b, E, A, O;
|
|
1495
1495
|
const i = n == null ? void 0 : n.find(
|
|
1496
1496
|
(x) => {
|
|
1497
|
-
var
|
|
1498
|
-
return ((
|
|
1497
|
+
var k;
|
|
1498
|
+
return ((k = x.betOfferType) == null ? void 0 : k.id) === 2;
|
|
1499
1499
|
}
|
|
1500
1500
|
), r = {
|
|
1501
1501
|
englishLabel: "",
|
|
@@ -1511,53 +1511,53 @@ function Pa({ event: e, liveData: a, betOffers: n, jersey: o }) {
|
|
|
1511
1511
|
{ ...r, id: -2, label: "X", odds: void 0 },
|
|
1512
1512
|
{ ...r, id: -3, label: "2", odds: void 0 }
|
|
1513
1513
|
];
|
|
1514
|
-
return /* @__PURE__ */ t("div", { className:
|
|
1514
|
+
return /* @__PURE__ */ t("div", { className: ke.cardWrapper, children: /* @__PURE__ */ p(H, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1515
1515
|
/* @__PURE__ */ p(H, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
1516
1516
|
/* @__PURE__ */ t(
|
|
1517
|
-
|
|
1517
|
+
Wt,
|
|
1518
1518
|
{
|
|
1519
1519
|
title: (g = (f = (m = e == null ? void 0 : e.path) == null ? void 0 : m[0]) == null ? void 0 : f.name) != null ? g : "",
|
|
1520
|
-
subtitle: (
|
|
1520
|
+
subtitle: (u = e == null ? void 0 : e.group) != null ? u : "",
|
|
1521
1521
|
live: !0,
|
|
1522
1522
|
time: ((l = a == null ? void 0 : a.matchClock) == null ? void 0 : l.minute) != null ? `${a.matchClock.minute}'` : ""
|
|
1523
1523
|
}
|
|
1524
1524
|
),
|
|
1525
|
-
/* @__PURE__ */ t("div", { style: { padding: "0 4px" }, children: /* @__PURE__ */ p(
|
|
1526
|
-
/* @__PURE__ */ t(
|
|
1527
|
-
/* @__PURE__ */ t(
|
|
1528
|
-
/* @__PURE__ */ t(
|
|
1525
|
+
/* @__PURE__ */ t("div", { style: { padding: "0 4px" }, children: /* @__PURE__ */ p(me, { spacing: 1.5, columns: "1fr auto 1fr", children: [
|
|
1526
|
+
/* @__PURE__ */ t(Ne, { name: e == null ? void 0 : e.homeName, jersey: Me(o, "home") }),
|
|
1527
|
+
/* @__PURE__ */ t(pt, { text: ((h = (c = a == null ? void 0 : a.score) == null ? void 0 : c.home) != null ? h : 0) + ":" + ((E = (b = a == null ? void 0 : a.score) == null ? void 0 : b.away) != null ? E : 0), name: "En vivo" }),
|
|
1528
|
+
/* @__PURE__ */ t(Ne, { name: e == null ? void 0 : e.awayName, jersey: Me(o, "away") })
|
|
1529
1529
|
] }) })
|
|
1530
1530
|
] }),
|
|
1531
1531
|
/* @__PURE__ */ p(H, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1532
|
-
/* @__PURE__ */ t(
|
|
1533
|
-
/* @__PURE__ */ t(
|
|
1534
|
-
|
|
1535
|
-
}, className:
|
|
1532
|
+
/* @__PURE__ */ t(me, { spacing: 1, children: ((A = i == null ? void 0 : i.outcomes) != null ? A : s).map((x, k) => /* @__PURE__ */ t(ut, { text: x.label.toUpperCase() }, k)) }),
|
|
1533
|
+
/* @__PURE__ */ t(me, { spacing: 2, children: ((O = i == null ? void 0 : i.outcomes) != null ? O : s).map((x, k) => /* @__PURE__ */ t(Aa, { variant: "primary", disabled: x.odds == null || (i == null ? void 0 : i.cashOutStatus) == "SUSPENDED", onClick: () => {
|
|
1534
|
+
Ve("/deportes#event/live/" + e.id, x.id);
|
|
1535
|
+
}, className: ke.customButtonDisabled, children: /* @__PURE__ */ t("span", { className: ke.customButtonLabel, children: x.odds === void 0 ? "" : (x.odds / 1e3).toFixed(2) }) }, k)) })
|
|
1536
1536
|
] })
|
|
1537
1537
|
] }) });
|
|
1538
1538
|
}
|
|
1539
|
-
const
|
|
1540
|
-
date:
|
|
1539
|
+
const Pa = "oraculo__OraculoEventDate-module__date___xhIlh", qa = {
|
|
1540
|
+
date: Pa
|
|
1541
1541
|
};
|
|
1542
|
-
function
|
|
1543
|
-
return /* @__PURE__ */ t("div", { className: `oli-font ${
|
|
1542
|
+
function Da({ text: e }) {
|
|
1543
|
+
return /* @__PURE__ */ t("div", { className: `oli-font ${qa.date}`, children: e });
|
|
1544
1544
|
}
|
|
1545
|
-
const
|
|
1546
|
-
cardContainer:
|
|
1547
|
-
cardBackground:
|
|
1548
|
-
jugadas:
|
|
1549
|
-
equipos:
|
|
1545
|
+
const Ua = "oraculo__OraculoEventSemanaCard-module__cardContainer___4JuDe", Va = "oraculo__OraculoEventSemanaCard-module__cardBackground___vfalD", Wa = "oraculo__OraculoEventSemanaCard-module__jugadas___W8b7H", Ga = "oraculo__OraculoEventSemanaCard-module__equipos___G5hLn", be = {
|
|
1546
|
+
cardContainer: Ua,
|
|
1547
|
+
cardBackground: Va,
|
|
1548
|
+
jugadas: Wa,
|
|
1549
|
+
equipos: Ga
|
|
1550
1550
|
};
|
|
1551
|
-
function
|
|
1552
|
-
var s, m, f, g,
|
|
1553
|
-
const n =
|
|
1551
|
+
function ja({ event: e, jersey: a }) {
|
|
1552
|
+
var s, m, f, g, u, l, c;
|
|
1553
|
+
const n = ae(), o = ne();
|
|
1554
1554
|
function i(h) {
|
|
1555
|
-
const b = new Date(h),
|
|
1555
|
+
const b = new Date(h), E = b.toLocaleDateString("es-ES", { weekday: "short" }).toUpperCase(), A = b.getDate().toString().padStart(2, "0"), O = (b.getMonth() + 1).toString().padStart(2, "0");
|
|
1556
1556
|
let x = b.toLocaleTimeString("es-PE", { hour: "numeric", minute: "2-digit", hour12: !0 }).toUpperCase();
|
|
1557
|
-
return x = x.replace(/\./g, "").replace(/A\s*M/i, "AM").replace(/P\s*M/i, "PM"), `${
|
|
1557
|
+
return x = x.replace(/\./g, "").replace(/A\s*M/i, "AM").replace(/P\s*M/i, "PM"), `${E} ${A}/${O} | ${x}`;
|
|
1558
1558
|
}
|
|
1559
1559
|
const r = (h, b) => {
|
|
1560
|
-
const
|
|
1560
|
+
const E = `${e.homeName} vs ${e.awayName}`, A = b ? (b / 1e3).toFixed(2) : "", O = A ? `${E} - Cuota: ${A}` : E;
|
|
1561
1561
|
n({
|
|
1562
1562
|
element: "evento_semana_outcome",
|
|
1563
1563
|
label: `Landing: ${o} - OraculoEventSemanaCard - Click: ${O}`,
|
|
@@ -1568,43 +1568,43 @@ function Ha({ event: e, jersey: a }) {
|
|
|
1568
1568
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1569
1569
|
},
|
|
1570
1570
|
tags: { section: "OraculoEventSemanaCard", outcomes: O }
|
|
1571
|
-
}),
|
|
1571
|
+
}), Ve("/deportes#event/" + e.id, h);
|
|
1572
1572
|
};
|
|
1573
|
-
return /* @__PURE__ */ p("div", { className:
|
|
1574
|
-
/* @__PURE__ */ t(
|
|
1575
|
-
/* @__PURE__ */ t("div", { className:
|
|
1573
|
+
return /* @__PURE__ */ p("div", { className: be.cardContainer, children: [
|
|
1574
|
+
/* @__PURE__ */ t(mt, { title: (s = e == null ? void 0 : e.group) != null ? s : "" }),
|
|
1575
|
+
/* @__PURE__ */ t("div", { className: be.cardBackground, children: /* @__PURE__ */ p(H, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
1576
1576
|
/* @__PURE__ */ p(H, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1577
|
-
/* @__PURE__ */ p("div", { className:
|
|
1578
|
-
/* @__PURE__ */ t(
|
|
1579
|
-
/* @__PURE__ */ t(
|
|
1580
|
-
/* @__PURE__ */ t(
|
|
1577
|
+
/* @__PURE__ */ p("div", { className: be.equipos, children: [
|
|
1578
|
+
/* @__PURE__ */ t(Ne, { name: e.homeName, size: "compact", jersey: Me(a, "home") }),
|
|
1579
|
+
/* @__PURE__ */ t(pt, { text: "vs.", name: "", size: "small" }),
|
|
1580
|
+
/* @__PURE__ */ t(Ne, { name: e.awayName, size: "compact", jersey: Me(a, "away") })
|
|
1581
1581
|
] }),
|
|
1582
|
-
/* @__PURE__ */ t(
|
|
1582
|
+
/* @__PURE__ */ t(Da, { text: i(e.start) })
|
|
1583
1583
|
] }),
|
|
1584
1584
|
/* @__PURE__ */ p(H, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
1585
|
-
/* @__PURE__ */ t(
|
|
1586
|
-
/* @__PURE__ */ t("div", { className:
|
|
1585
|
+
/* @__PURE__ */ t(me, { spacing: 1, children: ((g = (f = (m = e == null ? void 0 : e.outcome) == null ? void 0 : m[0]) == null ? void 0 : f.outcomes) != null ? g : []).map((h, b) => /* @__PURE__ */ t(ut, { text: h.label.toUpperCase() }, b)) }),
|
|
1586
|
+
/* @__PURE__ */ t("div", { className: be.jugadas, children: /* @__PURE__ */ t(me, { spacing: 1, children: ((c = (l = (u = e == null ? void 0 : e.outcome) == null ? void 0 : u[0]) == null ? void 0 : l.outcomes) != null ? c : []).map((h, b) => /* @__PURE__ */ t(Y, { variant: "primary", fullHeight: !0, onClick: () => {
|
|
1587
1587
|
r(h.id, h.odds);
|
|
1588
1588
|
}, children: (h.odds / 1e3).toFixed(2) }, b)) }) })
|
|
1589
1589
|
] })
|
|
1590
1590
|
] }) })
|
|
1591
1591
|
] });
|
|
1592
1592
|
}
|
|
1593
|
-
function
|
|
1593
|
+
function Ha({
|
|
1594
1594
|
items: e,
|
|
1595
1595
|
title: a = "Destacados",
|
|
1596
1596
|
iconUrl: n,
|
|
1597
1597
|
onViewMore: o,
|
|
1598
1598
|
className: i = ""
|
|
1599
1599
|
}) {
|
|
1600
|
-
const r = G(null), [s, m] =
|
|
1600
|
+
const r = G(null), [s, m] = J({ isStart: !0, isEnd: !1 }), f = ae(), g = ne(), u = le(), l = !e || e.length === 0, c = () => {
|
|
1601
1601
|
var x;
|
|
1602
1602
|
f({
|
|
1603
1603
|
element: "destacados_carousel_prev",
|
|
1604
1604
|
label: `${g} - OraculoSeccionDestacados - Anterior`,
|
|
1605
1605
|
target: "carousel",
|
|
1606
1606
|
event_type: "click",
|
|
1607
|
-
module_id:
|
|
1607
|
+
module_id: u,
|
|
1608
1608
|
metadata: {
|
|
1609
1609
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1610
1610
|
},
|
|
@@ -1617,7 +1617,7 @@ function Ka({
|
|
|
1617
1617
|
label: `${g} - OraculoSeccionDestacados - Siguiente`,
|
|
1618
1618
|
target: "carousel",
|
|
1619
1619
|
event_type: "click",
|
|
1620
|
-
module_id:
|
|
1620
|
+
module_id: u,
|
|
1621
1621
|
metadata: {
|
|
1622
1622
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1623
1623
|
},
|
|
@@ -1629,13 +1629,13 @@ function Ka({
|
|
|
1629
1629
|
label: `${g} - OraculoSeccionDestacados - Ver más`,
|
|
1630
1630
|
target: "https://www.olimpo.bet/promociones",
|
|
1631
1631
|
event_type: "click",
|
|
1632
|
-
module_id:
|
|
1632
|
+
module_id: u,
|
|
1633
1633
|
metadata: {
|
|
1634
1634
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1635
1635
|
},
|
|
1636
1636
|
tags: { section: "OraculoSeccionDestacados" }
|
|
1637
1637
|
}), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/promociones");
|
|
1638
|
-
},
|
|
1638
|
+
}, E = (x) => {
|
|
1639
1639
|
if (!x) return;
|
|
1640
1640
|
const U = `https://www.olimpo.bet/promociones/${encodeURIComponent(x)}`;
|
|
1641
1641
|
f({
|
|
@@ -1643,7 +1643,7 @@ function Ka({
|
|
|
1643
1643
|
label: `${g} - OraculoSeccionDestacados - Click: ${String(x)}`,
|
|
1644
1644
|
target: U,
|
|
1645
1645
|
event_type: "click",
|
|
1646
|
-
module_id:
|
|
1646
|
+
module_id: u,
|
|
1647
1647
|
metadata: {
|
|
1648
1648
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1649
1649
|
},
|
|
@@ -1652,8 +1652,8 @@ function Ka({
|
|
|
1652
1652
|
promotion: String(x)
|
|
1653
1653
|
}
|
|
1654
1654
|
}), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(U);
|
|
1655
|
-
},
|
|
1656
|
-
return /* @__PURE__ */ p("section", { className:
|
|
1655
|
+
}, A = i || void 0, O = xe("(max-width:1024px)");
|
|
1656
|
+
return /* @__PURE__ */ p("section", { className: A, style: { width: "100%" }, children: [
|
|
1657
1657
|
/* @__PURE__ */ p(
|
|
1658
1658
|
"header",
|
|
1659
1659
|
{
|
|
@@ -1668,37 +1668,37 @@ function Ka({
|
|
|
1668
1668
|
paddingRight: O ? 16 : 0
|
|
1669
1669
|
},
|
|
1670
1670
|
children: [
|
|
1671
|
-
/* @__PURE__ */ t(
|
|
1671
|
+
/* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
|
|
1672
1672
|
/* @__PURE__ */ p("div", { style: { display: "flex", gap: 8 }, children: [
|
|
1673
1673
|
/* @__PURE__ */ t(
|
|
1674
|
-
|
|
1674
|
+
Y,
|
|
1675
1675
|
{
|
|
1676
1676
|
ariaLabel: "Anterior",
|
|
1677
1677
|
variant: "secondary",
|
|
1678
1678
|
iconOnly: !0,
|
|
1679
|
-
leftIcon: /* @__PURE__ */ t(
|
|
1679
|
+
leftIcon: /* @__PURE__ */ t(Ae, {}),
|
|
1680
1680
|
onClick: c,
|
|
1681
1681
|
disabled: s.isStart || l
|
|
1682
1682
|
}
|
|
1683
1683
|
),
|
|
1684
1684
|
/* @__PURE__ */ t(
|
|
1685
|
-
|
|
1685
|
+
Y,
|
|
1686
1686
|
{
|
|
1687
1687
|
ariaLabel: "Siguiente",
|
|
1688
1688
|
variant: "secondary",
|
|
1689
1689
|
iconOnly: !0,
|
|
1690
|
-
rightIcon: /* @__PURE__ */ t(
|
|
1690
|
+
rightIcon: /* @__PURE__ */ t(ze, {}),
|
|
1691
1691
|
onClick: h,
|
|
1692
1692
|
disabled: s.isEnd || l
|
|
1693
1693
|
}
|
|
1694
1694
|
)
|
|
1695
1695
|
] }),
|
|
1696
|
-
/* @__PURE__ */ t(
|
|
1696
|
+
/* @__PURE__ */ t(Y, { variant: "secondary", onClick: b, children: "Ver más" })
|
|
1697
1697
|
]
|
|
1698
1698
|
}
|
|
1699
1699
|
),
|
|
1700
1700
|
/* @__PURE__ */ t(
|
|
1701
|
-
|
|
1701
|
+
he,
|
|
1702
1702
|
{
|
|
1703
1703
|
ref: r,
|
|
1704
1704
|
items: e,
|
|
@@ -1719,7 +1719,7 @@ function Ka({
|
|
|
1719
1719
|
marginTop: 16,
|
|
1720
1720
|
cursor: "pointer"
|
|
1721
1721
|
},
|
|
1722
|
-
onClick: () =>
|
|
1722
|
+
onClick: () => E(x.promotion),
|
|
1723
1723
|
children: /* @__PURE__ */ t(
|
|
1724
1724
|
"img",
|
|
1725
1725
|
{
|
|
@@ -1737,17 +1737,17 @@ function Ka({
|
|
|
1737
1737
|
},
|
|
1738
1738
|
`${x.title}-${x.image}`
|
|
1739
1739
|
),
|
|
1740
|
-
onMove: ({ isStart: x, isEnd:
|
|
1741
|
-
m({ isStart: x, isEnd:
|
|
1740
|
+
onMove: ({ isStart: x, isEnd: k }) => {
|
|
1741
|
+
m({ isStart: x, isEnd: k }), f({
|
|
1742
1742
|
element: "destacados_carousel_slide",
|
|
1743
1743
|
label: `${g} - OraculoSeccionDestacados - Slide Carousel`,
|
|
1744
1744
|
target: "carousel",
|
|
1745
1745
|
event_type: "slide",
|
|
1746
|
-
module_id:
|
|
1746
|
+
module_id: u,
|
|
1747
1747
|
metadata: {
|
|
1748
1748
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
1749
1749
|
isStart: x,
|
|
1750
|
-
isEnd:
|
|
1750
|
+
isEnd: k
|
|
1751
1751
|
},
|
|
1752
1752
|
tags: { section: "OraculoSeccionDestacados" }
|
|
1753
1753
|
});
|
|
@@ -1756,28 +1756,28 @@ function Ka({
|
|
|
1756
1756
|
)
|
|
1757
1757
|
] });
|
|
1758
1758
|
}
|
|
1759
|
-
const
|
|
1760
|
-
function
|
|
1759
|
+
const $e = "__ORACULO_EXTRAS__";
|
|
1760
|
+
function _t() {
|
|
1761
1761
|
const e = globalThis;
|
|
1762
|
-
return e[
|
|
1762
|
+
return e[$e] || (e[$e] = {}), e[$e];
|
|
1763
1763
|
}
|
|
1764
|
-
function
|
|
1765
|
-
|
|
1764
|
+
function Ka(e) {
|
|
1765
|
+
_t().extras = e;
|
|
1766
1766
|
}
|
|
1767
|
-
function
|
|
1767
|
+
function pe(e) {
|
|
1768
1768
|
var a;
|
|
1769
|
-
return (a =
|
|
1769
|
+
return (a = _t().extras) == null ? void 0 : a[e];
|
|
1770
1770
|
}
|
|
1771
|
-
function
|
|
1772
|
-
delete globalThis[
|
|
1771
|
+
function Za() {
|
|
1772
|
+
delete globalThis[$e];
|
|
1773
1773
|
}
|
|
1774
|
-
function
|
|
1774
|
+
function Ja({
|
|
1775
1775
|
items: e,
|
|
1776
1776
|
title: a = "Top Juegos",
|
|
1777
1777
|
iconUrl: n,
|
|
1778
1778
|
onCardClick: o
|
|
1779
1779
|
}) {
|
|
1780
|
-
const i =
|
|
1780
|
+
const i = ae(), r = ne(), s = le(), m = ie(
|
|
1781
1781
|
() => (e != null ? e : []).map((l, c) => {
|
|
1782
1782
|
var h;
|
|
1783
1783
|
return {
|
|
@@ -1787,7 +1787,7 @@ function Xa({
|
|
|
1787
1787
|
};
|
|
1788
1788
|
}).sort((l, c) => l.orden != null && c.orden != null ? l.orden - c.orden : l._originalIndex - c._originalIndex),
|
|
1789
1789
|
[e]
|
|
1790
|
-
), f = !e || e.length === 0, g = f ? Array.from({ length: 6 }) : m.slice(0, 6),
|
|
1790
|
+
), f = !e || e.length === 0, g = f ? Array.from({ length: 6 }) : m.slice(0, 6), u = (l) => {
|
|
1791
1791
|
i({
|
|
1792
1792
|
element: "top_juegos_card",
|
|
1793
1793
|
label: `${r} - OraculoSeccionTopJuegos - Open game: ${String(l.machine || "unknown")}`,
|
|
@@ -1802,13 +1802,13 @@ function Xa({
|
|
|
1802
1802
|
section: "OraculoSeccionTopJuegos"
|
|
1803
1803
|
}
|
|
1804
1804
|
});
|
|
1805
|
-
const c =
|
|
1805
|
+
const c = pe("showIframe"), h = pe("loadMachine");
|
|
1806
1806
|
c == null || c(), requestAnimationFrame(() => {
|
|
1807
1807
|
h == null || h(l, !1, "CASINO");
|
|
1808
1808
|
});
|
|
1809
1809
|
};
|
|
1810
1810
|
return /* @__PURE__ */ t("section", { style: { width: "100%" }, children: /* @__PURE__ */ p(H, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
1811
|
-
/* @__PURE__ */ t(
|
|
1811
|
+
/* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
|
|
1812
1812
|
/* @__PURE__ */ t(
|
|
1813
1813
|
q,
|
|
1814
1814
|
{
|
|
@@ -1825,13 +1825,13 @@ function Xa({
|
|
|
1825
1825
|
children: g.map((l, c) => {
|
|
1826
1826
|
var h, b;
|
|
1827
1827
|
return /* @__PURE__ */ t(
|
|
1828
|
-
|
|
1828
|
+
va,
|
|
1829
1829
|
{
|
|
1830
1830
|
imageUrl: f ? "" : l.background ? `https://olimpo.bet${l.background}` : `https://olimpo.bet${(h = l.logo) != null ? h : ""}`,
|
|
1831
1831
|
orden: f ? c + 1 : l.orden,
|
|
1832
1832
|
loading: f,
|
|
1833
1833
|
onClick: f ? void 0 : () => {
|
|
1834
|
-
o == null || o(l),
|
|
1834
|
+
o == null || o(l), u(l);
|
|
1835
1835
|
}
|
|
1836
1836
|
},
|
|
1837
1837
|
f ? `sk-${c}` : (b = l.machine) != null ? b : `${c}`
|
|
@@ -1841,8 +1841,8 @@ function Xa({
|
|
|
1841
1841
|
)
|
|
1842
1842
|
] }) });
|
|
1843
1843
|
}
|
|
1844
|
-
const
|
|
1845
|
-
var n, o, i, r, s, m, f, g,
|
|
1844
|
+
const Xa = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommendations", Ya = (e, a) => {
|
|
1845
|
+
var n, o, i, r, s, m, f, g, u, l, c, h, b, E;
|
|
1846
1846
|
return {
|
|
1847
1847
|
orden: Number(a),
|
|
1848
1848
|
machine: String(
|
|
@@ -1855,23 +1855,23 @@ const Ya = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1855
1855
|
sub_provider: (m = e.service) != null ? m : "",
|
|
1856
1856
|
external_id: (f = e.external_id) != null ? f : "",
|
|
1857
1857
|
type: (g = e.game_type) != null ? g : "",
|
|
1858
|
-
tags: (
|
|
1858
|
+
tags: (u = e.tags) != null ? u : "",
|
|
1859
1859
|
lobby_tag: (l = e.lobby_tag) != null ? l : null,
|
|
1860
1860
|
background: (c = e.background) != null ? c : "",
|
|
1861
1861
|
rtp: (h = e.rtp) != null ? h : null,
|
|
1862
1862
|
demo_allowed: (b = e.demo_allowed) != null ? b : !1,
|
|
1863
|
-
gaming_session_required: (
|
|
1863
|
+
gaming_session_required: (E = e.gaming_session_required) != null ? E : !1
|
|
1864
1864
|
};
|
|
1865
|
-
},
|
|
1865
|
+
}, Qa = (e) => e ? !Array.isArray(e) && Array.isArray(e.recommendations) ? e.recommendations.filter(Boolean).map((a) => String(a)) : [] : [], en = () => {
|
|
1866
1866
|
var a, n, o;
|
|
1867
|
-
const e =
|
|
1867
|
+
const e = pe("user");
|
|
1868
1868
|
return (o = (n = (a = e == null ? void 0 : e.userId) != null ? a : e == null ? void 0 : e.user) != null ? n : e == null ? void 0 : e.id) != null ? o : null;
|
|
1869
|
-
},
|
|
1870
|
-
const a =
|
|
1869
|
+
}, tn = async (e) => {
|
|
1870
|
+
const a = en(), n = new URLSearchParams({
|
|
1871
1871
|
userId: String(a),
|
|
1872
1872
|
productType: e,
|
|
1873
1873
|
filter: "high-payout"
|
|
1874
|
-
}), o = `${
|
|
1874
|
+
}), o = `${Xa}?${n.toString()}`, i = await fetch(o);
|
|
1875
1875
|
if (!i.ok)
|
|
1876
1876
|
throw new Error(
|
|
1877
1877
|
`No se pudo obtener recomendaciones. HTTP ${i.status} ${i.statusText}`
|
|
@@ -1881,9 +1881,9 @@ const Ya = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1881
1881
|
...r,
|
|
1882
1882
|
recommendations: Array.isArray(r == null ? void 0 : r.recommendations) ? r.recommendations.slice(0, 49) : []
|
|
1883
1883
|
};
|
|
1884
|
-
},
|
|
1885
|
-
const [o, i] =
|
|
1886
|
-
return
|
|
1884
|
+
}, We = (e, a = !1, n = "Casino") => {
|
|
1885
|
+
const [o, i] = J([]), [r, s] = J(!1);
|
|
1886
|
+
return Q(() => {
|
|
1887
1887
|
let m = !1;
|
|
1888
1888
|
return (async () => {
|
|
1889
1889
|
if (!a) {
|
|
@@ -1892,20 +1892,20 @@ const Ya = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1892
1892
|
}
|
|
1893
1893
|
s(!0);
|
|
1894
1894
|
try {
|
|
1895
|
-
const g = await
|
|
1896
|
-
if (!
|
|
1895
|
+
const g = await tn(n), u = Qa(g);
|
|
1896
|
+
if (!u.length) {
|
|
1897
1897
|
m || i([]);
|
|
1898
1898
|
return;
|
|
1899
1899
|
}
|
|
1900
1900
|
const l = await Promise.allSettled(
|
|
1901
|
-
|
|
1902
|
-
const
|
|
1901
|
+
u.map(async (h, b) => {
|
|
1902
|
+
const E = await fetch(
|
|
1903
1903
|
`https://api.mktolimpo.com/api/machine/${h}`
|
|
1904
1904
|
);
|
|
1905
|
-
if (!
|
|
1905
|
+
if (!E.ok)
|
|
1906
1906
|
throw new Error(`No se pudo obtener machine ${h}`);
|
|
1907
|
-
const
|
|
1908
|
-
return
|
|
1907
|
+
const A = await E.json();
|
|
1908
|
+
return Ya(A, b);
|
|
1909
1909
|
})
|
|
1910
1910
|
);
|
|
1911
1911
|
if (m) return;
|
|
@@ -1925,10 +1925,10 @@ const Ya = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1925
1925
|
resolvedItems: o,
|
|
1926
1926
|
loading: r
|
|
1927
1927
|
};
|
|
1928
|
-
},
|
|
1928
|
+
}, an = (e, a = !1) => We(e, a, "Casino"), nn = (e, a = !1) => We(e, a, "Deportes Virtuales"), on = (e, a = !1) => We(e, a, "Casino en vivo"), rn = (e, a) => {
|
|
1929
1929
|
var n, o;
|
|
1930
1930
|
return (o = (n = e.orden) != null ? n : e.machine) != null ? o : a;
|
|
1931
|
-
},
|
|
1931
|
+
}, sn = (e) => {
|
|
1932
1932
|
if (typeof e == "boolean") return e;
|
|
1933
1933
|
if (typeof e == "string")
|
|
1934
1934
|
return e.toLowerCase() === "true";
|
|
@@ -1938,7 +1938,7 @@ const Ya = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1938
1938
|
return e.value.toLowerCase() === "true";
|
|
1939
1939
|
}
|
|
1940
1940
|
return !1;
|
|
1941
|
-
},
|
|
1941
|
+
}, ln = ({
|
|
1942
1942
|
items: e,
|
|
1943
1943
|
title: a = "Casino en vivo",
|
|
1944
1944
|
subtitle: n = "Disfruta la emoción en tus juegos favoritos y gana en tiempo real.",
|
|
@@ -1949,13 +1949,13 @@ const Ya = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1949
1949
|
className: m,
|
|
1950
1950
|
isPersonalize: f = !1
|
|
1951
1951
|
}) => {
|
|
1952
|
-
const g =
|
|
1952
|
+
const g = ae(), u = ne(), l = le(), c = sn(f), { resolvedItems: h } = on(
|
|
1953
1953
|
e,
|
|
1954
1954
|
c
|
|
1955
|
-
), b = c ? h : Array.isArray(e) ? e : [],
|
|
1955
|
+
), b = c ? h : Array.isArray(e) ? e : [], E = (O) => {
|
|
1956
1956
|
g({
|
|
1957
1957
|
element: "live_casino_card",
|
|
1958
|
-
label: `${
|
|
1958
|
+
label: `${u} - OraculoSeccionCasinoEnVivo${c ? " - personalize" : ""} - Open game: ${String(O.machine || "unknown")}`,
|
|
1959
1959
|
target: String(O.machine || "unknown"),
|
|
1960
1960
|
event_type: "click",
|
|
1961
1961
|
module_id: l,
|
|
@@ -1968,8 +1968,8 @@ const Ya = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1968
1968
|
section: "OraculoSeccionCasinoEnVivo"
|
|
1969
1969
|
}
|
|
1970
1970
|
});
|
|
1971
|
-
const x =
|
|
1972
|
-
if (!
|
|
1971
|
+
const x = pe("showIframe"), k = pe("loadMachine");
|
|
1972
|
+
if (!k) {
|
|
1973
1973
|
if (i) {
|
|
1974
1974
|
i(O);
|
|
1975
1975
|
return;
|
|
@@ -1981,12 +1981,12 @@ const Ya = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1981
1981
|
return;
|
|
1982
1982
|
}
|
|
1983
1983
|
x == null || x(), typeof window != "undefined" && window.scrollTo({ top: 0, behavior: "smooth" }), requestAnimationFrame(() => {
|
|
1984
|
-
|
|
1984
|
+
k == null || k(O, !1, "casino_en_vivo");
|
|
1985
1985
|
});
|
|
1986
|
-
},
|
|
1986
|
+
}, A = () => {
|
|
1987
1987
|
g({
|
|
1988
1988
|
element: "casino_en_vivo_view_more",
|
|
1989
|
-
label: `${
|
|
1989
|
+
label: `${u} - OraculoSeccionCasinoEnVivo${c ? " - personalize" : ""} - Ver más`,
|
|
1990
1990
|
target: "https://www.olimpo.bet/casino-en-vivo",
|
|
1991
1991
|
event_type: "click",
|
|
1992
1992
|
module_id: l,
|
|
@@ -2054,7 +2054,7 @@ const Ya = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2054
2054
|
children: [
|
|
2055
2055
|
/* @__PURE__ */ p(H, { spacing: 3, sx: { maxWidth: { md: 280 } }, children: [
|
|
2056
2056
|
/* @__PURE__ */ t(
|
|
2057
|
-
|
|
2057
|
+
ue,
|
|
2058
2058
|
{
|
|
2059
2059
|
variant: "h4",
|
|
2060
2060
|
sx: {
|
|
@@ -2067,7 +2067,7 @@ const Ya = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2067
2067
|
}
|
|
2068
2068
|
),
|
|
2069
2069
|
/* @__PURE__ */ t(
|
|
2070
|
-
|
|
2070
|
+
ue,
|
|
2071
2071
|
{
|
|
2072
2072
|
sx: {
|
|
2073
2073
|
fontSize: { xs: 14, md: 18 },
|
|
@@ -2079,11 +2079,11 @@ const Ya = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2079
2079
|
}
|
|
2080
2080
|
),
|
|
2081
2081
|
/* @__PURE__ */ t(q, { sx: { display: { xs: "none", md: "block" } }, children: /* @__PURE__ */ t(
|
|
2082
|
-
|
|
2082
|
+
Y,
|
|
2083
2083
|
{
|
|
2084
2084
|
variant: "primary",
|
|
2085
2085
|
size: "md",
|
|
2086
|
-
onClick:
|
|
2086
|
+
onClick: A,
|
|
2087
2087
|
children: "Ver más"
|
|
2088
2088
|
}
|
|
2089
2089
|
) })
|
|
@@ -2100,27 +2100,27 @@ const Ya = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2100
2100
|
alignItems: "center"
|
|
2101
2101
|
},
|
|
2102
2102
|
children: (b != null ? b : []).slice(0, 3).map((O, x) => {
|
|
2103
|
-
var
|
|
2103
|
+
var k;
|
|
2104
2104
|
return /* @__PURE__ */ t(
|
|
2105
|
-
|
|
2105
|
+
_a,
|
|
2106
2106
|
{
|
|
2107
|
-
logo: `https://olimpo.bet${O.background ? O.background : (
|
|
2107
|
+
logo: `https://olimpo.bet${O.background ? O.background : (k = O.logo) != null ? k : ""}`,
|
|
2108
2108
|
provider: O.provider,
|
|
2109
2109
|
providerName: O.web_name,
|
|
2110
2110
|
machine: O.machine,
|
|
2111
|
-
onClick: () =>
|
|
2111
|
+
onClick: () => E(O)
|
|
2112
2112
|
},
|
|
2113
|
-
|
|
2113
|
+
rn(O, x)
|
|
2114
2114
|
);
|
|
2115
2115
|
})
|
|
2116
2116
|
}
|
|
2117
2117
|
),
|
|
2118
2118
|
/* @__PURE__ */ t(q, { sx: { display: { xs: "block", md: "none" } }, children: /* @__PURE__ */ t(
|
|
2119
|
-
|
|
2119
|
+
Y,
|
|
2120
2120
|
{
|
|
2121
2121
|
variant: "primary",
|
|
2122
2122
|
size: "lg",
|
|
2123
|
-
onClick:
|
|
2123
|
+
onClick: A,
|
|
2124
2124
|
children: "Ver más"
|
|
2125
2125
|
}
|
|
2126
2126
|
) })
|
|
@@ -2130,7 +2130,7 @@ const Ya = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2130
2130
|
]
|
|
2131
2131
|
}
|
|
2132
2132
|
);
|
|
2133
|
-
},
|
|
2133
|
+
}, cn = (e) => {
|
|
2134
2134
|
if (typeof e == "boolean") return e;
|
|
2135
2135
|
if (typeof e == "string")
|
|
2136
2136
|
return e.toLowerCase() === "true";
|
|
@@ -2140,14 +2140,14 @@ const Ya = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2140
2140
|
return e.value.toLowerCase() === "true";
|
|
2141
2141
|
}
|
|
2142
2142
|
return !1;
|
|
2143
|
-
},
|
|
2143
|
+
}, yt = (e, a) => {
|
|
2144
2144
|
var n, o;
|
|
2145
2145
|
return (o = (n = e.orden) != null ? n : e.machine) != null ? o : a;
|
|
2146
|
-
},
|
|
2146
|
+
}, dn = (e, a = !0, n = 1) => {
|
|
2147
2147
|
const o = e.map((s, m) => {
|
|
2148
2148
|
var f;
|
|
2149
2149
|
return {
|
|
2150
|
-
id:
|
|
2150
|
+
id: yt(s, m),
|
|
2151
2151
|
imageUrl: (f = s.logo) != null ? f : "",
|
|
2152
2152
|
...s.background ? { background: s.background } : {}
|
|
2153
2153
|
};
|
|
@@ -2172,7 +2172,7 @@ const Ya = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2172
2172
|
}), r = s;
|
|
2173
2173
|
}
|
|
2174
2174
|
return i;
|
|
2175
|
-
},
|
|
2175
|
+
}, un = ({
|
|
2176
2176
|
items: e,
|
|
2177
2177
|
title: a = "Casino",
|
|
2178
2178
|
iconUrl: n = "/assets/img/home/Casino/diamante.svg",
|
|
@@ -2182,30 +2182,30 @@ const Ya = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2182
2182
|
gridSize: s = 1,
|
|
2183
2183
|
isPersonalize: m = !1
|
|
2184
2184
|
}) => {
|
|
2185
|
-
const f =
|
|
2185
|
+
const f = ae(), g = ne(), u = le(), l = G(null), [c, h] = J({ isStart: !0, isEnd: !1 }), b = cn(m), { resolvedItems: E, loading: A } = an(
|
|
2186
2186
|
e,
|
|
2187
2187
|
b
|
|
2188
|
-
), O = b ?
|
|
2188
|
+
), O = b ? E : Array.isArray(e) ? e : [], x = () => {
|
|
2189
2189
|
var F;
|
|
2190
2190
|
f({
|
|
2191
2191
|
element: "casino_prev",
|
|
2192
2192
|
label: `${g} - OraculoSeccionCasino ${m ? " - personalize" : ""} - Anterior`,
|
|
2193
2193
|
target: "prev",
|
|
2194
2194
|
event_type: "click",
|
|
2195
|
-
module_id:
|
|
2195
|
+
module_id: u,
|
|
2196
2196
|
metadata: {
|
|
2197
2197
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2198
2198
|
},
|
|
2199
2199
|
tags: { section: "OraculoSeccionCasino" }
|
|
2200
2200
|
}), (F = l.current) == null || F.prev();
|
|
2201
|
-
},
|
|
2201
|
+
}, k = () => {
|
|
2202
2202
|
var F;
|
|
2203
2203
|
f({
|
|
2204
2204
|
element: "casino_next",
|
|
2205
2205
|
label: `${g} - OraculoSeccionCasino ${m ? " - personalize" : ""} - Siguiente`,
|
|
2206
2206
|
target: "next",
|
|
2207
2207
|
event_type: "click",
|
|
2208
|
-
module_id:
|
|
2208
|
+
module_id: u,
|
|
2209
2209
|
metadata: {
|
|
2210
2210
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2211
2211
|
},
|
|
@@ -2217,7 +2217,7 @@ const Ya = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2217
2217
|
label: `${g} - OraculoSeccionCasino ${m ? " - personalize" : ""} - Ver más`,
|
|
2218
2218
|
target: "https://www.olimpo.bet/casino",
|
|
2219
2219
|
event_type: "click",
|
|
2220
|
-
module_id:
|
|
2220
|
+
module_id: u,
|
|
2221
2221
|
metadata: {
|
|
2222
2222
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2223
2223
|
},
|
|
@@ -2228,12 +2228,12 @@ const Ya = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2228
2228
|
}
|
|
2229
2229
|
typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/casino");
|
|
2230
2230
|
}, I = (F = !0, S = 4) => {
|
|
2231
|
-
const N = (
|
|
2232
|
-
id: `sk-${
|
|
2231
|
+
const N = (R) => Array.from({ length: R }, (P, v) => ({
|
|
2232
|
+
id: `sk-${R}-${v}`,
|
|
2233
2233
|
imageUrl: ""
|
|
2234
2234
|
})), M = [];
|
|
2235
2235
|
return F && M.push({ id: "mosaic-loading", kind: "mosaic", items: N(5) }), M.push({ id: "grid-loading", kind: "grid", items: N(S) }), M;
|
|
2236
|
-
}, L = b ?
|
|
2236
|
+
}, L = b ? A : !Array.isArray(e) || e.length === 0, w = rt("(max-width:1024px)"), z = L ? I(r, s) : dn(O, r, s);
|
|
2237
2237
|
return /* @__PURE__ */ t("section", { children: /* @__PURE__ */ p(H, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
2238
2238
|
/* @__PURE__ */ p(
|
|
2239
2239
|
q,
|
|
@@ -2247,40 +2247,40 @@ const Ya = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2247
2247
|
px: w ? 2 : 0
|
|
2248
2248
|
},
|
|
2249
2249
|
children: [
|
|
2250
|
-
/* @__PURE__ */ t(
|
|
2250
|
+
/* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
|
|
2251
2251
|
/* @__PURE__ */ p(q, { sx: { display: "flex", gap: 1, justifyContent: "flex-end" }, children: [
|
|
2252
2252
|
/* @__PURE__ */ t(
|
|
2253
|
-
|
|
2253
|
+
Y,
|
|
2254
2254
|
{
|
|
2255
2255
|
ariaLabel: "Anterior",
|
|
2256
2256
|
variant: "secondary",
|
|
2257
2257
|
iconOnly: !0,
|
|
2258
|
-
leftIcon: /* @__PURE__ */ t(
|
|
2258
|
+
leftIcon: /* @__PURE__ */ t(lt, {}),
|
|
2259
2259
|
onClick: x,
|
|
2260
2260
|
disabled: c.isStart
|
|
2261
2261
|
}
|
|
2262
2262
|
),
|
|
2263
2263
|
/* @__PURE__ */ t(
|
|
2264
|
-
|
|
2264
|
+
Y,
|
|
2265
2265
|
{
|
|
2266
2266
|
ariaLabel: "Siguiente",
|
|
2267
2267
|
variant: "secondary",
|
|
2268
2268
|
iconOnly: !0,
|
|
2269
|
-
rightIcon: /* @__PURE__ */ t(
|
|
2270
|
-
onClick:
|
|
2269
|
+
rightIcon: /* @__PURE__ */ t(ct, {}),
|
|
2270
|
+
onClick: k,
|
|
2271
2271
|
disabled: c.isEnd
|
|
2272
2272
|
}
|
|
2273
2273
|
)
|
|
2274
2274
|
] }),
|
|
2275
|
-
/* @__PURE__ */ t(q, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(
|
|
2275
|
+
/* @__PURE__ */ t(q, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(Y, { variant: "secondary", onClick: U, children: "Ver más" }) })
|
|
2276
2276
|
]
|
|
2277
2277
|
}
|
|
2278
2278
|
),
|
|
2279
2279
|
/* @__PURE__ */ t(
|
|
2280
|
-
|
|
2280
|
+
he,
|
|
2281
2281
|
{
|
|
2282
2282
|
ref: l,
|
|
2283
|
-
items:
|
|
2283
|
+
items: z,
|
|
2284
2284
|
perPage: void 0,
|
|
2285
2285
|
gap: "16px",
|
|
2286
2286
|
enableHorizontalWheel: !0,
|
|
@@ -2304,7 +2304,7 @@ const Ya = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2304
2304
|
}
|
|
2305
2305
|
},
|
|
2306
2306
|
renderItem: (F) => /* @__PURE__ */ t("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ t(
|
|
2307
|
-
|
|
2307
|
+
ft,
|
|
2308
2308
|
{
|
|
2309
2309
|
items: F.items,
|
|
2310
2310
|
layout: F.kind === "mosaic" ? "mosaic" : "grid",
|
|
@@ -2312,7 +2312,7 @@ const Ya = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2312
2312
|
onClick: (S) => {
|
|
2313
2313
|
if (L) return;
|
|
2314
2314
|
const N = O.find(
|
|
2315
|
-
(P, v) => String(
|
|
2315
|
+
(P, v) => String(yt(P, v)) === String(S.id)
|
|
2316
2316
|
);
|
|
2317
2317
|
if (!N) return;
|
|
2318
2318
|
o == null || o(N), f({
|
|
@@ -2320,7 +2320,7 @@ const Ya = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2320
2320
|
label: `${g} - OraculoSeccionCasino ${m ? " - personalize" : ""} - Game: ${String(N.machine || "unknown")}`,
|
|
2321
2321
|
target: String(N.machine || "unknown"),
|
|
2322
2322
|
event_type: "click",
|
|
2323
|
-
module_id:
|
|
2323
|
+
module_id: u,
|
|
2324
2324
|
metadata: {
|
|
2325
2325
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2326
2326
|
},
|
|
@@ -2329,8 +2329,8 @@ const Ya = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2329
2329
|
section: a || "Casino"
|
|
2330
2330
|
}
|
|
2331
2331
|
});
|
|
2332
|
-
const M =
|
|
2333
|
-
M == null || M(),
|
|
2332
|
+
const M = pe("showIframe"), R = pe("loadMachine");
|
|
2333
|
+
M == null || M(), R == null || R(N, !1, "CASINO");
|
|
2334
2334
|
}
|
|
2335
2335
|
}
|
|
2336
2336
|
) }),
|
|
@@ -2338,7 +2338,7 @@ const Ya = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2338
2338
|
}
|
|
2339
2339
|
)
|
|
2340
2340
|
] }) });
|
|
2341
|
-
},
|
|
2341
|
+
}, mn = (e) => {
|
|
2342
2342
|
if (typeof e == "boolean") return e;
|
|
2343
2343
|
if (typeof e == "string")
|
|
2344
2344
|
return e.toLowerCase() === "true";
|
|
@@ -2348,14 +2348,14 @@ const Ya = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2348
2348
|
return e.value.toLowerCase() === "true";
|
|
2349
2349
|
}
|
|
2350
2350
|
return !1;
|
|
2351
|
-
},
|
|
2351
|
+
}, xt = (e, a) => {
|
|
2352
2352
|
var n, o;
|
|
2353
2353
|
return (o = (n = e.orden) != null ? n : e.machine) != null ? o : a;
|
|
2354
|
-
},
|
|
2354
|
+
}, pn = (e, a = !0, n = 1) => {
|
|
2355
2355
|
const o = e.map((s, m) => {
|
|
2356
2356
|
var f;
|
|
2357
2357
|
return {
|
|
2358
|
-
id:
|
|
2358
|
+
id: xt(s, m),
|
|
2359
2359
|
imageUrl: (f = s.logo) != null ? f : "",
|
|
2360
2360
|
...s.background ? { background: s.background } : {}
|
|
2361
2361
|
};
|
|
@@ -2380,7 +2380,7 @@ const Ya = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2380
2380
|
}), r = s;
|
|
2381
2381
|
}
|
|
2382
2382
|
return i;
|
|
2383
|
-
},
|
|
2383
|
+
}, fn = (e = !0, a = 4) => {
|
|
2384
2384
|
const n = (i) => Array.from({ length: i }, (r, s) => ({
|
|
2385
2385
|
id: `sk-${i}-${s}`,
|
|
2386
2386
|
imageUrl: ""
|
|
@@ -2394,7 +2394,7 @@ const Ya = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2394
2394
|
kind: "grid",
|
|
2395
2395
|
items: n(a)
|
|
2396
2396
|
}), o;
|
|
2397
|
-
},
|
|
2397
|
+
}, gn = ({
|
|
2398
2398
|
items: e,
|
|
2399
2399
|
title: a = "Virtuales",
|
|
2400
2400
|
iconUrl: n = "/assets/img/home/Virtuales/virtuales.svg",
|
|
@@ -2404,11 +2404,11 @@ const Ya = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2404
2404
|
gridSize: s = 1,
|
|
2405
2405
|
isPersonalize: m = !1
|
|
2406
2406
|
}) => {
|
|
2407
|
-
const f = G(null), [g,
|
|
2407
|
+
const f = G(null), [g, u] = J({ isStart: !0, isEnd: !1 }), l = ae(), c = ne(), h = le(), b = mn(m), { resolvedItems: E, loading: A } = nn(
|
|
2408
2408
|
e,
|
|
2409
2409
|
b
|
|
2410
|
-
), O = b ?
|
|
2411
|
-
var
|
|
2410
|
+
), O = b ? E : Array.isArray(e) ? e : [], x = () => {
|
|
2411
|
+
var z;
|
|
2412
2412
|
l({
|
|
2413
2413
|
element: "virtuales_prev",
|
|
2414
2414
|
label: `${c} - OraculoSeccionVirtuales${b ? " - personalize" : ""} - Anterior`,
|
|
@@ -2419,9 +2419,9 @@ const Ya = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2419
2419
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2420
2420
|
},
|
|
2421
2421
|
tags: { section: "OraculoSeccionVirtuales" }
|
|
2422
|
-
}), (
|
|
2423
|
-
},
|
|
2424
|
-
var
|
|
2422
|
+
}), (z = f.current) == null || z.prev();
|
|
2423
|
+
}, k = () => {
|
|
2424
|
+
var z;
|
|
2425
2425
|
l({
|
|
2426
2426
|
element: "virtuales_next",
|
|
2427
2427
|
label: `${c} - OraculoSeccionVirtuales${b ? " - personalize" : ""} - Siguiente`,
|
|
@@ -2432,7 +2432,7 @@ const Ya = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2432
2432
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2433
2433
|
},
|
|
2434
2434
|
tags: { section: "OraculoSeccionVirtuales" }
|
|
2435
|
-
}), (
|
|
2435
|
+
}), (z = f.current) == null || z.next();
|
|
2436
2436
|
}, U = () => {
|
|
2437
2437
|
if (l({
|
|
2438
2438
|
element: "virtuales_view_more",
|
|
@@ -2449,7 +2449,7 @@ const Ya = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2449
2449
|
return;
|
|
2450
2450
|
}
|
|
2451
2451
|
typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/juegos-virtuales");
|
|
2452
|
-
}, I = b ?
|
|
2452
|
+
}, I = b ? A : !Array.isArray(e) || e.length === 0, L = xe("(max-width:1024px)"), w = I ? fn(r, s) : pn(O, r, s);
|
|
2453
2453
|
return /* @__PURE__ */ t("section", { children: /* @__PURE__ */ p(H, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
2454
2454
|
/* @__PURE__ */ p(
|
|
2455
2455
|
q,
|
|
@@ -2463,37 +2463,37 @@ const Ya = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2463
2463
|
px: L ? 2 : 0
|
|
2464
2464
|
},
|
|
2465
2465
|
children: [
|
|
2466
|
-
/* @__PURE__ */ t(
|
|
2466
|
+
/* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
|
|
2467
2467
|
/* @__PURE__ */ p(q, { sx: { display: "flex", gap: 1, justifyContent: "flex-end" }, children: [
|
|
2468
2468
|
/* @__PURE__ */ t(
|
|
2469
|
-
|
|
2469
|
+
Y,
|
|
2470
2470
|
{
|
|
2471
2471
|
ariaLabel: "Anterior",
|
|
2472
2472
|
variant: "secondary",
|
|
2473
2473
|
iconOnly: !0,
|
|
2474
|
-
leftIcon: /* @__PURE__ */ t(
|
|
2474
|
+
leftIcon: /* @__PURE__ */ t(lt, {}),
|
|
2475
2475
|
onClick: x,
|
|
2476
2476
|
disabled: g.isStart
|
|
2477
2477
|
}
|
|
2478
2478
|
),
|
|
2479
2479
|
/* @__PURE__ */ t(
|
|
2480
|
-
|
|
2480
|
+
Y,
|
|
2481
2481
|
{
|
|
2482
2482
|
ariaLabel: "Siguiente",
|
|
2483
2483
|
variant: "secondary",
|
|
2484
2484
|
iconOnly: !0,
|
|
2485
|
-
rightIcon: /* @__PURE__ */ t(
|
|
2486
|
-
onClick:
|
|
2485
|
+
rightIcon: /* @__PURE__ */ t(ct, {}),
|
|
2486
|
+
onClick: k,
|
|
2487
2487
|
disabled: g.isEnd
|
|
2488
2488
|
}
|
|
2489
2489
|
)
|
|
2490
2490
|
] }),
|
|
2491
|
-
/* @__PURE__ */ t(q, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(
|
|
2491
|
+
/* @__PURE__ */ t(q, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(Y, { variant: "secondary", onClick: U, children: "Ver más" }) })
|
|
2492
2492
|
]
|
|
2493
2493
|
}
|
|
2494
2494
|
),
|
|
2495
2495
|
/* @__PURE__ */ t(
|
|
2496
|
-
|
|
2496
|
+
he,
|
|
2497
2497
|
{
|
|
2498
2498
|
ref: f,
|
|
2499
2499
|
items: w,
|
|
@@ -2519,16 +2519,16 @@ const Ya = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2519
2519
|
enableHorizontalWheel: !0,
|
|
2520
2520
|
showRightGradient: !L,
|
|
2521
2521
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
2522
|
-
renderItem: (
|
|
2523
|
-
|
|
2522
|
+
renderItem: (z) => /* @__PURE__ */ t("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ t(
|
|
2523
|
+
ft,
|
|
2524
2524
|
{
|
|
2525
|
-
items:
|
|
2526
|
-
layout:
|
|
2525
|
+
items: z.items,
|
|
2526
|
+
layout: z.kind === "mosaic" ? "mosaic" : "grid",
|
|
2527
2527
|
loading: I,
|
|
2528
2528
|
onClick: (F) => {
|
|
2529
2529
|
if (I) return;
|
|
2530
2530
|
const S = O.find(
|
|
2531
|
-
(
|
|
2531
|
+
(R, P) => String(xt(R, P)) === String(F.id)
|
|
2532
2532
|
);
|
|
2533
2533
|
if (!S) {
|
|
2534
2534
|
console.warn(
|
|
@@ -2551,7 +2551,7 @@ const Ya = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2551
2551
|
section: a || "Virtuales"
|
|
2552
2552
|
}
|
|
2553
2553
|
});
|
|
2554
|
-
const N =
|
|
2554
|
+
const N = pe("showIframe"), M = pe("loadMachine");
|
|
2555
2555
|
N == null || N(), M == null || M(
|
|
2556
2556
|
S,
|
|
2557
2557
|
!1,
|
|
@@ -2560,11 +2560,11 @@ const Ya = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2560
2560
|
}
|
|
2561
2561
|
}
|
|
2562
2562
|
) }),
|
|
2563
|
-
onMove: ({ isStart:
|
|
2563
|
+
onMove: ({ isStart: z, isEnd: F }) => u({ isStart: z, isEnd: F })
|
|
2564
2564
|
}
|
|
2565
2565
|
)
|
|
2566
2566
|
] }) });
|
|
2567
|
-
},
|
|
2567
|
+
}, hn = (e) => ({
|
|
2568
2568
|
position: "relative",
|
|
2569
2569
|
py: 8,
|
|
2570
2570
|
color: "#fff",
|
|
@@ -2578,15 +2578,15 @@ const Ya = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2578
2578
|
backgroundRepeat: "no-repeat",
|
|
2579
2579
|
backgroundPosition: "center",
|
|
2580
2580
|
backgroundSize: "cover"
|
|
2581
|
-
}),
|
|
2581
|
+
}), Qe = {
|
|
2582
2582
|
textAlign: "center",
|
|
2583
2583
|
lineHeight: 1.1,
|
|
2584
2584
|
mb: 1.5
|
|
2585
|
-
},
|
|
2585
|
+
}, et = {
|
|
2586
2586
|
display: "inline-block",
|
|
2587
2587
|
fontWeight: 600,
|
|
2588
2588
|
fontSize: 24
|
|
2589
|
-
},
|
|
2589
|
+
}, tt = {
|
|
2590
2590
|
display: "inline-block",
|
|
2591
2591
|
fontSize: 24,
|
|
2592
2592
|
lineHeight: 1.1,
|
|
@@ -2596,30 +2596,30 @@ const Ya = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2596
2596
|
0 0 6px rgba(255, 255, 255, .6),
|
|
2597
2597
|
0 1px 0 rgba(137, 137, 137, .85)
|
|
2598
2598
|
`
|
|
2599
|
-
},
|
|
2599
|
+
}, bn = ({
|
|
2600
2600
|
headline: e,
|
|
2601
2601
|
headline2: a,
|
|
2602
2602
|
items: n,
|
|
2603
2603
|
backgroundImageUrl: o
|
|
2604
2604
|
}) => {
|
|
2605
|
-
const i =
|
|
2606
|
-
|
|
2605
|
+
const i = ae(), r = ne(), s = xe("(max-width: 767px)"), m = n.length > 1, f = G(null), g = G(null), u = G(!1), l = G(!1), [c, h] = J(0), [b, E] = J({ isStart: !0, isEnd: !1 });
|
|
2606
|
+
Q(() => {
|
|
2607
2607
|
const S = setTimeout(() => {
|
|
2608
|
-
|
|
2608
|
+
u.current = !0;
|
|
2609
2609
|
}, 500);
|
|
2610
2610
|
return () => clearTimeout(S);
|
|
2611
2611
|
}, []);
|
|
2612
|
-
const
|
|
2613
|
-
|
|
2614
|
-
|
|
2612
|
+
const A = G(b);
|
|
2613
|
+
Q(() => {
|
|
2614
|
+
A.current = b;
|
|
2615
2615
|
}, [b]);
|
|
2616
|
-
const O = G(!1), x = G(null),
|
|
2616
|
+
const O = G(!1), x = G(null), k = n == null ? void 0 : n[c], U = ie(
|
|
2617
2617
|
() => {
|
|
2618
2618
|
var S, N;
|
|
2619
|
-
return (N = (S =
|
|
2619
|
+
return (N = (S = k == null ? void 0 : k.backgroundImageUrl) != null ? S : o) != null ? N : "";
|
|
2620
2620
|
},
|
|
2621
|
-
[
|
|
2622
|
-
), I =
|
|
2621
|
+
[k, o]
|
|
2622
|
+
), I = hn(U), L = !n || n.length === 0, w = (S, N) => {
|
|
2623
2623
|
i({
|
|
2624
2624
|
element: "welcome_banner_button",
|
|
2625
2625
|
label: `OraculoSeccionBonoBienvenida - Banner button click: ${S.title || "OraculoSeccionBonoBienvenida - Banner " + (N + 1)}`,
|
|
@@ -2636,8 +2636,8 @@ const Ya = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2636
2636
|
button_text: S.buttonText || "no_text"
|
|
2637
2637
|
}
|
|
2638
2638
|
}), S.onButtonClick && S.onButtonClick();
|
|
2639
|
-
},
|
|
2640
|
-
if (!
|
|
2639
|
+
}, z = (S) => {
|
|
2640
|
+
if (!u.current) return;
|
|
2641
2641
|
if (l.current) {
|
|
2642
2642
|
l.current = !1;
|
|
2643
2643
|
return;
|
|
@@ -2661,26 +2661,26 @@ const Ya = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2661
2661
|
}
|
|
2662
2662
|
});
|
|
2663
2663
|
};
|
|
2664
|
-
|
|
2664
|
+
Q(() => {
|
|
2665
2665
|
const S = g.current;
|
|
2666
2666
|
if (!S) return;
|
|
2667
|
-
const N = 6, M = 380,
|
|
2667
|
+
const N = 6, M = 380, R = (P) => {
|
|
2668
2668
|
var V, Z;
|
|
2669
2669
|
if (L || P.ctrlKey || O.current) return;
|
|
2670
2670
|
const v = P.deltaX, D = P.deltaY;
|
|
2671
2671
|
if (Math.abs(v) <= Math.abs(D) || Math.abs(v) < N) return;
|
|
2672
2672
|
const $ = v > 0;
|
|
2673
|
-
$ &&
|
|
2673
|
+
$ && A.current.isEnd || !$ && A.current.isStart || (P.preventDefault(), O.current = !0, $ ? (V = f.current) == null || V.next() : (Z = f.current) == null || Z.prev(), x.current && window.clearTimeout(x.current), x.current = window.setTimeout(() => {
|
|
2674
2674
|
O.current = !1;
|
|
2675
2675
|
}, M));
|
|
2676
2676
|
};
|
|
2677
|
-
return S.addEventListener("wheel",
|
|
2678
|
-
S.removeEventListener("wheel",
|
|
2677
|
+
return S.addEventListener("wheel", R, { passive: !1 }), () => {
|
|
2678
|
+
S.removeEventListener("wheel", R), x.current && window.clearTimeout(x.current);
|
|
2679
2679
|
};
|
|
2680
2680
|
}, [L]);
|
|
2681
2681
|
const F = (S, N, M) => {
|
|
2682
2682
|
var v, D;
|
|
2683
|
-
const
|
|
2683
|
+
const R = (v = S.headline) != null ? v : e, P = (D = S.headline2) != null ? D : a;
|
|
2684
2684
|
return N ? /* @__PURE__ */ p(
|
|
2685
2685
|
q,
|
|
2686
2686
|
{
|
|
@@ -2694,7 +2694,7 @@ const Ya = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2694
2694
|
columnGap: 6
|
|
2695
2695
|
},
|
|
2696
2696
|
children: [
|
|
2697
|
-
(
|
|
2697
|
+
(R || P) && /* @__PURE__ */ t(
|
|
2698
2698
|
q,
|
|
2699
2699
|
{
|
|
2700
2700
|
sx: {
|
|
@@ -2703,17 +2703,17 @@ const Ya = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2703
2703
|
justifyContent: "flex-start",
|
|
2704
2704
|
minHeight: "100%"
|
|
2705
2705
|
},
|
|
2706
|
-
children: /* @__PURE__ */ p(q, { sx: { ...
|
|
2707
|
-
|
|
2708
|
-
P && /* @__PURE__ */ p(
|
|
2706
|
+
children: /* @__PURE__ */ p(q, { sx: { ...Qe, textAlign: "left", mb: 0 }, children: [
|
|
2707
|
+
R && /* @__PURE__ */ t(ue, { component: "span", sx: et, children: R }),
|
|
2708
|
+
P && /* @__PURE__ */ p(se, { children: [
|
|
2709
2709
|
/* @__PURE__ */ t("br", {}),
|
|
2710
|
-
/* @__PURE__ */ t(
|
|
2710
|
+
/* @__PURE__ */ t(ue, { component: "span", sx: tt, children: P })
|
|
2711
2711
|
] })
|
|
2712
2712
|
] })
|
|
2713
2713
|
}
|
|
2714
2714
|
),
|
|
2715
2715
|
/* @__PURE__ */ t(q, { sx: { display: "flex", justifyContent: "center", alignItems: "center" }, children: /* @__PURE__ */ t(q, { sx: { width: "100%", maxWidth: 600, mx: "auto" }, children: /* @__PURE__ */ t(
|
|
2716
|
-
|
|
2716
|
+
Je,
|
|
2717
2717
|
{
|
|
2718
2718
|
...S,
|
|
2719
2719
|
onButtonClick: () => w(S, M),
|
|
@@ -2723,15 +2723,15 @@ const Ya = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2723
2723
|
]
|
|
2724
2724
|
}
|
|
2725
2725
|
) : /* @__PURE__ */ p(q, { sx: { textAlign: "center" }, children: [
|
|
2726
|
-
(
|
|
2727
|
-
|
|
2728
|
-
P && /* @__PURE__ */ p(
|
|
2726
|
+
(R || P) && /* @__PURE__ */ p(q, { sx: Qe, children: [
|
|
2727
|
+
R && /* @__PURE__ */ t(ue, { component: "span", sx: et, children: R }),
|
|
2728
|
+
P && /* @__PURE__ */ p(se, { children: [
|
|
2729
2729
|
/* @__PURE__ */ t("br", {}),
|
|
2730
|
-
/* @__PURE__ */ t(
|
|
2730
|
+
/* @__PURE__ */ t(ue, { component: "span", sx: tt, children: P })
|
|
2731
2731
|
] })
|
|
2732
2732
|
] }),
|
|
2733
2733
|
/* @__PURE__ */ t(q, { sx: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(
|
|
2734
|
-
|
|
2734
|
+
Je,
|
|
2735
2735
|
{
|
|
2736
2736
|
...S,
|
|
2737
2737
|
onButtonClick: () => w(S, M),
|
|
@@ -2742,7 +2742,7 @@ const Ya = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2742
2742
|
};
|
|
2743
2743
|
return /* @__PURE__ */ p(q, { component: "section", sx: I, children: [
|
|
2744
2744
|
/* @__PURE__ */ t("div", { ref: g, style: { width: "100%" }, children: /* @__PURE__ */ t(
|
|
2745
|
-
|
|
2745
|
+
he,
|
|
2746
2746
|
{
|
|
2747
2747
|
ref: f,
|
|
2748
2748
|
items: n,
|
|
@@ -2760,12 +2760,12 @@ const Ya = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2760
2760
|
},
|
|
2761
2761
|
renderItem: (S, N) => /* @__PURE__ */ t(q, { sx: { width: "100%" }, children: F(S, !s, N) }),
|
|
2762
2762
|
onMove: ({ index: S, isStart: N, isEnd: M }) => {
|
|
2763
|
-
h(S), typeof N == "boolean" && typeof M == "boolean" &&
|
|
2763
|
+
h(S), typeof N == "boolean" && typeof M == "boolean" && E({ isStart: N, isEnd: M }), z(S);
|
|
2764
2764
|
}
|
|
2765
2765
|
}
|
|
2766
2766
|
) }),
|
|
2767
2767
|
m && /* @__PURE__ */ t(q, { sx: { mt: 2, display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(
|
|
2768
|
-
|
|
2768
|
+
dt,
|
|
2769
2769
|
{
|
|
2770
2770
|
total: n.length,
|
|
2771
2771
|
active: c,
|
|
@@ -2790,16 +2790,16 @@ const Ya = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2790
2790
|
}
|
|
2791
2791
|
) })
|
|
2792
2792
|
] });
|
|
2793
|
-
},
|
|
2793
|
+
}, vn = ({
|
|
2794
2794
|
className: e = "",
|
|
2795
2795
|
fullBleed: a = !0,
|
|
2796
2796
|
items: n,
|
|
2797
2797
|
selectedIndex: o = 0,
|
|
2798
2798
|
ariaLabel: i
|
|
2799
2799
|
}) => {
|
|
2800
|
-
const r = G(null), s = G(null), m =
|
|
2800
|
+
const r = G(null), s = G(null), m = ae(), f = ne(), g = le();
|
|
2801
2801
|
if (!n) return null;
|
|
2802
|
-
const
|
|
2802
|
+
const u = () => {
|
|
2803
2803
|
m({
|
|
2804
2804
|
element: "club_olimpo_button",
|
|
2805
2805
|
label: `${f} - OraculoSeccionClubOlimpo - Click: Club Olimpo`,
|
|
@@ -2812,15 +2812,15 @@ const Ya = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2812
2812
|
tags: { section: "OraculoSeccionClubOlimpo" }
|
|
2813
2813
|
}), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/conoce-club-olimpo");
|
|
2814
2814
|
}, l = Array.isArray(n) ? n[o] : n;
|
|
2815
|
-
|
|
2815
|
+
kt(() => {
|
|
2816
2816
|
if (!r.current || !s.current || typeof ResizeObserver == "undefined") return;
|
|
2817
|
-
const h = r.current, b = s.current,
|
|
2817
|
+
const h = r.current, b = s.current, E = () => {
|
|
2818
2818
|
h.style.setProperty(
|
|
2819
2819
|
"--orc-co-bottomH",
|
|
2820
2820
|
`${b.offsetHeight + 16}px`
|
|
2821
2821
|
);
|
|
2822
|
-
},
|
|
2823
|
-
return
|
|
2822
|
+
}, A = new ResizeObserver(E);
|
|
2823
|
+
return A.observe(b), E(), () => A.disconnect();
|
|
2824
2824
|
}, []);
|
|
2825
2825
|
const c = [
|
|
2826
2826
|
"orc-co-wrap",
|
|
@@ -2834,10 +2834,10 @@ const Ya = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2834
2834
|
className: c,
|
|
2835
2835
|
"aria-label": i || l.imgAlt || "Club Olimpo",
|
|
2836
2836
|
children: /* @__PURE__ */ t("div", { ref: s, children: /* @__PURE__ */ t(
|
|
2837
|
-
|
|
2837
|
+
ya,
|
|
2838
2838
|
{
|
|
2839
2839
|
text: l.text,
|
|
2840
|
-
onClick:
|
|
2840
|
+
onClick: u,
|
|
2841
2841
|
imgAlt: l.imgAlt,
|
|
2842
2842
|
buttonLabel: l.buttonLabel,
|
|
2843
2843
|
imgSrcMobile: l.imgMobile,
|
|
@@ -2847,24 +2847,24 @@ const Ya = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2847
2847
|
) })
|
|
2848
2848
|
}
|
|
2849
2849
|
);
|
|
2850
|
-
},
|
|
2851
|
-
controls:
|
|
2852
|
-
padding:
|
|
2853
|
-
},
|
|
2850
|
+
}, _n = "oraculo__OraculoSeccionEventoCombinadas-module__controls___Zsta4", yn = "oraculo__OraculoSeccionEventoCombinadas-module__padding___vf-yF", at = {
|
|
2851
|
+
controls: _n,
|
|
2852
|
+
padding: yn
|
|
2853
|
+
}, xn = (e) => {
|
|
2854
2854
|
var a, n;
|
|
2855
2855
|
return (a = e.outcome) != null && a.id ? [e.outcome.id] : e.type === "BET_BUILDER" && ((n = e.group) != null && n.groups) ? e.group.groups.flatMap((o) => {
|
|
2856
2856
|
var i, r;
|
|
2857
2857
|
return (r = (i = o.outcomes) == null ? void 0 : i.map((s) => s.id)) != null ? r : [];
|
|
2858
2858
|
}) : [];
|
|
2859
2859
|
};
|
|
2860
|
-
function
|
|
2860
|
+
function wn(e, a, n) {
|
|
2861
2861
|
return n ? n.map((o) => {
|
|
2862
|
-
var
|
|
2863
|
-
const i = o.prePackCouponRows.flatMap((c) =>
|
|
2862
|
+
var u, l;
|
|
2863
|
+
const i = o.prePackCouponRows.flatMap((c) => xn(c).map((h) => ({ eventId: c.eventId, outcomeId: h }))), r = new Set(i.map((c) => c.eventId)), s = new Set(i.map((c) => c.outcomeId)), m = new Map(i.map((c, h) => [c.outcomeId, h])), f = {};
|
|
2864
2864
|
for (const c of a) {
|
|
2865
2865
|
if (!r.has(c.eventId)) continue;
|
|
2866
2866
|
const h = c.outcomes.filter((b) => s.has(b.id)).map((b) => ({ ...b, position: m.get(b.id) }));
|
|
2867
|
-
h.length && ((l = f[
|
|
2867
|
+
h.length && ((l = f[u = c.eventId]) != null || (f[u] = []), f[c.eventId].push({ ...c, outcomes: h }));
|
|
2868
2868
|
}
|
|
2869
2869
|
const g = e.filter((c) => r.has(c.id)).map((c) => {
|
|
2870
2870
|
var h;
|
|
@@ -2873,12 +2873,12 @@ function Sn(e, a, n) {
|
|
|
2873
2873
|
return {
|
|
2874
2874
|
couponId: o.id,
|
|
2875
2875
|
status: o.status,
|
|
2876
|
-
combinadoTotal:
|
|
2876
|
+
combinadoTotal: Sn(o.prePackCouponRows),
|
|
2877
2877
|
events: g
|
|
2878
2878
|
};
|
|
2879
2879
|
}) : [];
|
|
2880
2880
|
}
|
|
2881
|
-
function
|
|
2881
|
+
function Sn(e) {
|
|
2882
2882
|
if (!Array.isArray(e) || e.length === 0) return 0;
|
|
2883
2883
|
let a = 1;
|
|
2884
2884
|
for (const n of e) {
|
|
@@ -2887,15 +2887,15 @@ function In(e) {
|
|
|
2887
2887
|
}
|
|
2888
2888
|
return Math.floor(a * 100) / 100;
|
|
2889
2889
|
}
|
|
2890
|
-
const
|
|
2891
|
-
function
|
|
2890
|
+
const In = fe.memo(Ba);
|
|
2891
|
+
function Cn({
|
|
2892
2892
|
items: e,
|
|
2893
2893
|
title: a = "Combinadas del Olimpo",
|
|
2894
2894
|
iconUrl: n = "https://stg-www.contodobet.com/static/img/landing/EventoCombinada/rayoIcon.svg",
|
|
2895
2895
|
onViewMore: o,
|
|
2896
2896
|
className: i = ""
|
|
2897
2897
|
}) {
|
|
2898
|
-
const r =
|
|
2898
|
+
const r = ae(), s = ne(), m = le(), f = G(null), [g, u] = J({ isStart: !0, isEnd: !1 }), [l, c] = J([]), h = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group/prepackcoupon.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764284658793&prePackCouponTags=CUSTOM", b = () => {
|
|
2899
2899
|
var I;
|
|
2900
2900
|
r({
|
|
2901
2901
|
element: "evento_combinadas_prev",
|
|
@@ -2907,7 +2907,7 @@ function En({
|
|
|
2907
2907
|
},
|
|
2908
2908
|
tags: { section: "OraculoSeccionEventoCombinadas" }
|
|
2909
2909
|
}), (I = f.current) == null || I.prev();
|
|
2910
|
-
},
|
|
2910
|
+
}, E = () => {
|
|
2911
2911
|
var I;
|
|
2912
2912
|
r({
|
|
2913
2913
|
element: "evento_combinadas_next",
|
|
@@ -2919,7 +2919,7 @@ function En({
|
|
|
2919
2919
|
},
|
|
2920
2920
|
tags: { section: "OraculoSeccionEventoCombinadas" }
|
|
2921
2921
|
}), (I = f.current) == null || I.next();
|
|
2922
|
-
},
|
|
2922
|
+
}, A = () => {
|
|
2923
2923
|
r({
|
|
2924
2924
|
element: "evento_combinadas_ver_mas",
|
|
2925
2925
|
label: `${s} - OraculoSeccionEventoCombinadas - Click: Ver más`,
|
|
@@ -2929,8 +2929,8 @@ function En({
|
|
|
2929
2929
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2930
2930
|
},
|
|
2931
2931
|
tags: { section: "OraculoSeccionEventoCombinadas" }
|
|
2932
|
-
}),
|
|
2933
|
-
}, O =
|
|
2932
|
+
}), Ma();
|
|
2933
|
+
}, O = ie(() => l.filter((I) => I.combinadoTotal !== null), [l]);
|
|
2934
2934
|
async function x() {
|
|
2935
2935
|
var I, L, w;
|
|
2936
2936
|
try {
|
|
@@ -2939,54 +2939,54 @@ function En({
|
|
|
2939
2939
|
console.error("Could not extract group ID");
|
|
2940
2940
|
return;
|
|
2941
2941
|
}
|
|
2942
|
-
const N = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${S}.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764283566783&prePackCouponTags=CUSTOM`,
|
|
2943
|
-
c(
|
|
2944
|
-
} catch (
|
|
2945
|
-
console.error("loadDataEventSpecial error:",
|
|
2942
|
+
const N = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${S}.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764283566783&prePackCouponTags=CUSTOM`, R = await (await fetch(N)).json();
|
|
2943
|
+
c(wn(R.events, R.betOffers, R.prePackCoupons));
|
|
2944
|
+
} catch (z) {
|
|
2945
|
+
console.error("loadDataEventSpecial error:", z);
|
|
2946
2946
|
}
|
|
2947
2947
|
}
|
|
2948
|
-
|
|
2948
|
+
Q(() => {
|
|
2949
2949
|
x();
|
|
2950
2950
|
}, []);
|
|
2951
|
-
const
|
|
2952
|
-
return O.length === 0 ? null : /* @__PURE__ */ t("section", { className:
|
|
2951
|
+
const k = i || void 0, U = xe("(max-width:1024px)");
|
|
2952
|
+
return O.length === 0 ? null : /* @__PURE__ */ t("section", { className: k, style: {
|
|
2953
2953
|
// paddingLeft: 16,
|
|
2954
2954
|
// paddingRight: 16,
|
|
2955
2955
|
width: "100%",
|
|
2956
2956
|
boxSizing: "border-box"
|
|
2957
2957
|
}, children: /* @__PURE__ */ p(H, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
2958
|
-
/* @__PURE__ */ t("div", { className:
|
|
2959
|
-
/* @__PURE__ */ t(
|
|
2960
|
-
/* @__PURE__ */ p("div", { className:
|
|
2961
|
-
/* @__PURE__ */ p(
|
|
2958
|
+
/* @__PURE__ */ t("div", { className: at.padding, children: /* @__PURE__ */ p(me, { spacing: 1.5, columns: "1fr auto ", justify: "start", children: [
|
|
2959
|
+
/* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
|
|
2960
|
+
/* @__PURE__ */ p("div", { className: at.controls, children: [
|
|
2961
|
+
/* @__PURE__ */ p(me, { spacing: 1, columns: "auto auto", children: [
|
|
2962
2962
|
/* @__PURE__ */ t(
|
|
2963
|
-
|
|
2963
|
+
Y,
|
|
2964
2964
|
{
|
|
2965
2965
|
ariaLabel: "Anterior",
|
|
2966
2966
|
variant: "secondary",
|
|
2967
2967
|
iconOnly: !0,
|
|
2968
|
-
leftIcon: /* @__PURE__ */ t(
|
|
2968
|
+
leftIcon: /* @__PURE__ */ t(Ae, {}),
|
|
2969
2969
|
onClick: b,
|
|
2970
2970
|
disabled: g.isStart
|
|
2971
2971
|
}
|
|
2972
2972
|
),
|
|
2973
2973
|
/* @__PURE__ */ t(
|
|
2974
|
-
|
|
2974
|
+
Y,
|
|
2975
2975
|
{
|
|
2976
2976
|
ariaLabel: "Siguiente",
|
|
2977
2977
|
variant: "secondary",
|
|
2978
2978
|
iconOnly: !0,
|
|
2979
|
-
rightIcon: /* @__PURE__ */ t(
|
|
2980
|
-
onClick:
|
|
2979
|
+
rightIcon: /* @__PURE__ */ t(ze, {}),
|
|
2980
|
+
onClick: E,
|
|
2981
2981
|
disabled: g.isEnd
|
|
2982
2982
|
}
|
|
2983
2983
|
)
|
|
2984
2984
|
] }),
|
|
2985
|
-
/* @__PURE__ */ t(
|
|
2985
|
+
/* @__PURE__ */ t(Y, { variant: "secondary", onClick: A, children: "Ver más" })
|
|
2986
2986
|
] })
|
|
2987
2987
|
] }) }),
|
|
2988
2988
|
/* @__PURE__ */ t(
|
|
2989
|
-
|
|
2989
|
+
he,
|
|
2990
2990
|
{
|
|
2991
2991
|
ref: f,
|
|
2992
2992
|
items: O,
|
|
@@ -2999,17 +2999,17 @@ function En({
|
|
|
2999
2999
|
breakpoints: {
|
|
3000
3000
|
768: { perPage: 1.2, gap: "12px", padding: { left: "24px", right: "24px" } }
|
|
3001
3001
|
},
|
|
3002
|
-
renderItem: (I) => /* @__PURE__ */ t(
|
|
3003
|
-
onMove: ({ isStart: I, isEnd: L }) =>
|
|
3002
|
+
renderItem: (I) => /* @__PURE__ */ t(In, { coupon: I }),
|
|
3003
|
+
onMove: ({ isStart: I, isEnd: L }) => u({ isStart: I, isEnd: L })
|
|
3004
3004
|
}
|
|
3005
3005
|
)
|
|
3006
3006
|
] }) });
|
|
3007
3007
|
}
|
|
3008
|
-
function
|
|
3008
|
+
function En({}) {
|
|
3009
3009
|
return /* @__PURE__ */ t(
|
|
3010
3010
|
"div",
|
|
3011
3011
|
{
|
|
3012
|
-
className:
|
|
3012
|
+
className: ke.cardWrapper,
|
|
3013
3013
|
children: /* @__PURE__ */ p(H, { direction: "column", spacing: 1, children: [
|
|
3014
3014
|
/* @__PURE__ */ p(H, { spacing: 1, direction: "row", children: [
|
|
3015
3015
|
/* @__PURE__ */ t(j, { variant: "text", width: "60%", height: 24 }),
|
|
@@ -3039,15 +3039,15 @@ function On({}) {
|
|
|
3039
3039
|
}
|
|
3040
3040
|
);
|
|
3041
3041
|
}
|
|
3042
|
-
const
|
|
3043
|
-
fadeWrapper:
|
|
3042
|
+
const On = "oraculo__FadeItemWrapper-module__fadeWrapper___kFOH4", Tn = {
|
|
3043
|
+
fadeWrapper: On
|
|
3044
3044
|
};
|
|
3045
|
-
function
|
|
3046
|
-
return /* @__PURE__ */ t("div", { className:
|
|
3045
|
+
function Be({ children: e }) {
|
|
3046
|
+
return /* @__PURE__ */ t("div", { className: Tn.fadeWrapper, children: e });
|
|
3047
3047
|
}
|
|
3048
|
-
const
|
|
3049
|
-
padding:
|
|
3050
|
-
},
|
|
3048
|
+
const kn = "oraculo__OraculoSeccionEventoEnVivo-module__padding___Sh8tD", $n = {
|
|
3049
|
+
padding: kn
|
|
3050
|
+
}, Nn = (e) => {
|
|
3051
3051
|
const a = ["esports", "cyber"];
|
|
3052
3052
|
return e.filter((n) => {
|
|
3053
3053
|
var i;
|
|
@@ -3055,17 +3055,17 @@ const $n = "oraculo__OraculoSeccionEventoEnVivo-module__padding___Sh8tD", Nn = {
|
|
|
3055
3055
|
const o = ((i = n.event.group) == null ? void 0 : i.toLowerCase()) || "";
|
|
3056
3056
|
return !a.some((r) => o.includes(r));
|
|
3057
3057
|
});
|
|
3058
|
-
},
|
|
3059
|
-
function
|
|
3058
|
+
}, Mn = fe.memo(Fa);
|
|
3059
|
+
function Bn({
|
|
3060
3060
|
items: e,
|
|
3061
3061
|
title: a = "En vivo",
|
|
3062
3062
|
iconUrl: n = "https://stg-www.contodobet.com/static/img/landing/EventoEnVivo/icon.svg",
|
|
3063
3063
|
onViewMore: o,
|
|
3064
3064
|
className: i = ""
|
|
3065
3065
|
}) {
|
|
3066
|
-
const r = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football/all/all/all/in-play.json?channel_id=3&channel_id=3&client_id=200&client_id=200&competitionId=undefined&lang=es_PE&lang=es_PE&market=PE&market=PE&useCombined=true&useCombinedLive=true", s = G(null), [m, f] =
|
|
3066
|
+
const r = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football/all/all/all/in-play.json?channel_id=3&channel_id=3&client_id=200&client_id=200&competitionId=undefined&lang=es_PE&lang=es_PE&market=PE&market=PE&useCombined=true&useCombinedLive=true", s = G(null), [m, f] = J({ isStart: !0, isEnd: !1 }), [g, u] = J(null), [l, c] = J({}), [h, b] = J({ start: null, end: null }), E = G(!1), [A, O] = J(null), x = G(!1), k = ae(), U = ne(), I = le(), L = G(/* @__PURE__ */ new Map()), w = ht(h, 300), z = G(/* @__PURE__ */ new Set()), F = () => {
|
|
3067
3067
|
var $;
|
|
3068
|
-
|
|
3068
|
+
k({
|
|
3069
3069
|
element: "evento_en_vivo_prev",
|
|
3070
3070
|
label: `${U} - OraculoSeccionEventoEnVivo - Anterior`,
|
|
3071
3071
|
target: "prev",
|
|
@@ -3078,7 +3078,7 @@ function An({
|
|
|
3078
3078
|
}), ($ = s.current) == null || $.prev();
|
|
3079
3079
|
}, S = () => {
|
|
3080
3080
|
var $;
|
|
3081
|
-
|
|
3081
|
+
k({
|
|
3082
3082
|
element: "evento_en_vivo_next",
|
|
3083
3083
|
label: `${U} - OraculoSeccionEventoEnVivo - Siguiente`,
|
|
3084
3084
|
target: "next",
|
|
@@ -3090,7 +3090,7 @@ function An({
|
|
|
3090
3090
|
tags: { section: "OraculoSeccionEventoEnVivo" }
|
|
3091
3091
|
}), ($ = s.current) == null || $.next();
|
|
3092
3092
|
}, N = () => {
|
|
3093
|
-
|
|
3093
|
+
k({
|
|
3094
3094
|
element: "evento_en_vivo_view_more",
|
|
3095
3095
|
label: `${U} - OraculoSeccionEventoEnVivo - Ver más`,
|
|
3096
3096
|
target: "ver_mas",
|
|
@@ -3100,99 +3100,99 @@ function An({
|
|
|
3100
3100
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
3101
3101
|
},
|
|
3102
3102
|
tags: { section: "OraculoSeccionEventoEnVivo" }
|
|
3103
|
-
}),
|
|
3104
|
-
}, M =
|
|
3103
|
+
}), $a();
|
|
3104
|
+
}, M = Oe(async () => {
|
|
3105
3105
|
var $;
|
|
3106
3106
|
try {
|
|
3107
3107
|
if (!x.current) {
|
|
3108
3108
|
x.current = !0;
|
|
3109
3109
|
try {
|
|
3110
|
-
const
|
|
3111
|
-
|
|
3110
|
+
const d = await (await fetch("https://api.mktolimpo.com/api/kambi/eventos/orden")).json(), _ = (($ = d == null ? void 0 : d.data) == null ? void 0 : $.event_ids) || [], C = /* @__PURE__ */ new Map();
|
|
3111
|
+
_.forEach((y, T) => C.set(String(y), T)), L.current = C;
|
|
3112
3112
|
} catch (W) {
|
|
3113
3113
|
console.error("Order fetch failed, using default sorting", W);
|
|
3114
3114
|
}
|
|
3115
3115
|
}
|
|
3116
3116
|
const V = await fetch(r);
|
|
3117
3117
|
if (!V.ok) throw new Error("Failed to fetch live events");
|
|
3118
|
-
const Z = await V.json(),
|
|
3118
|
+
const Z = await V.json(), X = Nn(Z.events);
|
|
3119
3119
|
if (L.current.size === 0)
|
|
3120
|
-
|
|
3120
|
+
u(X);
|
|
3121
3121
|
else {
|
|
3122
|
-
const W = [...
|
|
3123
|
-
const
|
|
3124
|
-
return (
|
|
3122
|
+
const W = [...X].sort((d, _) => {
|
|
3123
|
+
const C = L.current.get(String(d.event.id)), y = L.current.get(String(_.event.id));
|
|
3124
|
+
return (C !== void 0 ? C : 1 / 0) - (y !== void 0 ? y : 1 / 0);
|
|
3125
3125
|
});
|
|
3126
|
-
|
|
3126
|
+
u(W);
|
|
3127
3127
|
}
|
|
3128
3128
|
} catch (V) {
|
|
3129
3129
|
console.error("LoadData Error:", V);
|
|
3130
3130
|
}
|
|
3131
3131
|
}, []);
|
|
3132
|
-
|
|
3132
|
+
Q(() => {
|
|
3133
3133
|
M();
|
|
3134
3134
|
const $ = setInterval(M, 2e4);
|
|
3135
3135
|
return () => clearInterval($);
|
|
3136
|
-
}, [M]),
|
|
3137
|
-
if (w.start === null || w.end === null || !(g != null && g.length) ||
|
|
3136
|
+
}, [M]), Q(() => {
|
|
3137
|
+
if (w.start === null || w.end === null || !(g != null && g.length) || E.current)
|
|
3138
3138
|
return;
|
|
3139
|
-
const $ = 3, V = Math.max(0, w.start - $), Z = Math.min(g.length - 1, w.end + $),
|
|
3140
|
-
var
|
|
3141
|
-
return (
|
|
3142
|
-
}).filter((W) => W && !
|
|
3143
|
-
|
|
3144
|
-
W != null && W.events && c((
|
|
3145
|
-
...
|
|
3139
|
+
const $ = 3, V = Math.max(0, w.start - $), Z = Math.min(g.length - 1, w.end + $), X = g.slice(V, Z + 1).map((W) => {
|
|
3140
|
+
var d;
|
|
3141
|
+
return (d = W == null ? void 0 : W.event) == null ? void 0 : d.id;
|
|
3142
|
+
}).filter((W) => W && !z.current.has(W));
|
|
3143
|
+
X.length !== 0 && (X.forEach((W) => z.current.add(W)), E.current = !0, gt(X).then((W) => {
|
|
3144
|
+
W != null && W.events && c((d) => ({
|
|
3145
|
+
...d,
|
|
3146
3146
|
...W.events
|
|
3147
3147
|
}));
|
|
3148
3148
|
}).catch((W) => {
|
|
3149
|
-
console.error("Jersey fetch error", W),
|
|
3149
|
+
console.error("Jersey fetch error", W), X.forEach((d) => z.current.delete(d));
|
|
3150
3150
|
}).finally(() => {
|
|
3151
|
-
|
|
3151
|
+
E.current = !1;
|
|
3152
3152
|
}));
|
|
3153
3153
|
}, [w, g]);
|
|
3154
|
-
const
|
|
3154
|
+
const R = i || void 0, P = g === null;
|
|
3155
3155
|
if (!P && g.length === 0)
|
|
3156
3156
|
return null;
|
|
3157
|
-
const v =
|
|
3158
|
-
return /* @__PURE__ */ t("section", { className:
|
|
3157
|
+
const v = ie(() => P ? Array(4).fill({}) : (g == null ? void 0 : g.slice(0, 20)) || [], [P, g]), D = xe("(max-width:768px)");
|
|
3158
|
+
return /* @__PURE__ */ t("section", { className: R, style: {
|
|
3159
3159
|
// paddingLeft: 16,
|
|
3160
3160
|
// paddingRight: 16,
|
|
3161
3161
|
width: "100%",
|
|
3162
3162
|
boxSizing: "border-box"
|
|
3163
3163
|
}, children: /* @__PURE__ */ p(H, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
3164
|
-
/* @__PURE__ */ t("div", { className:
|
|
3165
|
-
/* @__PURE__ */ t(
|
|
3164
|
+
/* @__PURE__ */ t("div", { className: $n.padding, children: /* @__PURE__ */ p(me, { spacing: 1.5, columns: "1fr auto ", justify: "start", children: [
|
|
3165
|
+
/* @__PURE__ */ t(ge, { title: a, iconUrl: n, size: "md" }),
|
|
3166
3166
|
/* @__PURE__ */ p("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
|
|
3167
|
-
/* @__PURE__ */ p(
|
|
3167
|
+
/* @__PURE__ */ p(me, { spacing: 1, columns: "auto auto", children: [
|
|
3168
3168
|
/* @__PURE__ */ t(
|
|
3169
|
-
|
|
3169
|
+
Y,
|
|
3170
3170
|
{
|
|
3171
3171
|
ariaLabel: "Anterior",
|
|
3172
3172
|
variant: "secondary",
|
|
3173
3173
|
iconOnly: !0,
|
|
3174
|
-
leftIcon: /* @__PURE__ */ t(
|
|
3174
|
+
leftIcon: /* @__PURE__ */ t(Ae, {}),
|
|
3175
3175
|
onClick: F,
|
|
3176
3176
|
disabled: m.isStart
|
|
3177
3177
|
}
|
|
3178
3178
|
),
|
|
3179
3179
|
/* @__PURE__ */ t(
|
|
3180
|
-
|
|
3180
|
+
Y,
|
|
3181
3181
|
{
|
|
3182
3182
|
ariaLabel: "Siguiente",
|
|
3183
3183
|
variant: "secondary",
|
|
3184
3184
|
iconOnly: !0,
|
|
3185
|
-
rightIcon: /* @__PURE__ */ t(
|
|
3185
|
+
rightIcon: /* @__PURE__ */ t(ze, {}),
|
|
3186
3186
|
onClick: S,
|
|
3187
3187
|
disabled: m.isEnd
|
|
3188
3188
|
}
|
|
3189
3189
|
)
|
|
3190
3190
|
] }),
|
|
3191
|
-
/* @__PURE__ */ t(
|
|
3191
|
+
/* @__PURE__ */ t(Y, { variant: "secondary", onClick: N, children: "Ver más" })
|
|
3192
3192
|
] })
|
|
3193
3193
|
] }) }),
|
|
3194
3194
|
/* @__PURE__ */ t(
|
|
3195
|
-
|
|
3195
|
+
he,
|
|
3196
3196
|
{
|
|
3197
3197
|
ref: s,
|
|
3198
3198
|
items: v,
|
|
@@ -3207,29 +3207,29 @@ function An({
|
|
|
3207
3207
|
1024: { gap: "10px", focus: "center", padding: { left: "24px", right: "24px" } }
|
|
3208
3208
|
},
|
|
3209
3209
|
renderItem: ($) => {
|
|
3210
|
-
var
|
|
3211
|
-
const V = ((
|
|
3212
|
-
return P ? /* @__PURE__ */ t(
|
|
3213
|
-
|
|
3210
|
+
var X;
|
|
3211
|
+
const V = ((X = $.event) == null ? void 0 : X.id) || $.eventId, Z = V in l ? l[V] : void 0;
|
|
3212
|
+
return P ? /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(En, {}) }) : /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(
|
|
3213
|
+
Mn,
|
|
3214
3214
|
{
|
|
3215
3215
|
...$,
|
|
3216
3216
|
jersey: Z
|
|
3217
3217
|
}
|
|
3218
3218
|
) });
|
|
3219
3219
|
},
|
|
3220
|
-
onMove: ({ isStart: $, isEnd: V, visibleStart: Z, visibleEnd:
|
|
3220
|
+
onMove: ({ isStart: $, isEnd: V, visibleStart: Z, visibleEnd: X }) => {
|
|
3221
3221
|
f(
|
|
3222
3222
|
(W) => W.isStart === $ && W.isEnd === V ? W : { isStart: $, isEnd: V }
|
|
3223
|
-
), b({ start: Z, end:
|
|
3223
|
+
), b({ start: Z, end: X });
|
|
3224
3224
|
}
|
|
3225
3225
|
}
|
|
3226
3226
|
)
|
|
3227
3227
|
] }) });
|
|
3228
3228
|
}
|
|
3229
|
-
function
|
|
3230
|
-
return /* @__PURE__ */ p("div", { className:
|
|
3231
|
-
/* @__PURE__ */ t(
|
|
3232
|
-
/* @__PURE__ */ t("div", { className:
|
|
3229
|
+
function An() {
|
|
3230
|
+
return /* @__PURE__ */ p("div", { className: be.cardContainer, children: [
|
|
3231
|
+
/* @__PURE__ */ t(mt, { title: "" }),
|
|
3232
|
+
/* @__PURE__ */ t("div", { className: be.cardBackground, children: /* @__PURE__ */ p(H, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
3233
3233
|
/* @__PURE__ */ p(H, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
3234
3234
|
/* @__PURE__ */ t(j, { variant: "circular", width: 48, height: 48 }),
|
|
3235
3235
|
/* @__PURE__ */ t(j, { variant: "circular", width: 48, height: 48 })
|
|
@@ -3245,7 +3245,7 @@ function zn() {
|
|
|
3245
3245
|
/* @__PURE__ */ t(j, { variant: "text", width: 80, height: 16 }),
|
|
3246
3246
|
/* @__PURE__ */ t(j, { variant: "text", width: 80, height: 16 })
|
|
3247
3247
|
] }),
|
|
3248
|
-
/* @__PURE__ */ t("div", { className:
|
|
3248
|
+
/* @__PURE__ */ t("div", { className: be.jugadas, children: /* @__PURE__ */ p(H, { direction: "row", spacing: 1, children: [
|
|
3249
3249
|
/* @__PURE__ */ t(j, { variant: "rounded", width: 80, height: 32 }),
|
|
3250
3250
|
/* @__PURE__ */ t(j, { variant: "rounded", width: 80, height: 32 }),
|
|
3251
3251
|
/* @__PURE__ */ t(j, { variant: "rounded", width: 80, height: 32 })
|
|
@@ -3254,13 +3254,13 @@ function zn() {
|
|
|
3254
3254
|
] }) })
|
|
3255
3255
|
] });
|
|
3256
3256
|
}
|
|
3257
|
-
const
|
|
3258
|
-
wrapper:
|
|
3259
|
-
container:
|
|
3260
|
-
buttonWrapper:
|
|
3261
|
-
padding:
|
|
3262
|
-
},
|
|
3263
|
-
async function
|
|
3257
|
+
const zn = "oraculo__OraculoSeccionEventoSemana-module__wrapper___eqVq-", Rn = "oraculo__OraculoSeccionEventoSemana-module__container___5yFQs", Ln = "oraculo__OraculoSeccionEventoSemana-module__buttonWrapper___-6IDT", Fn = "oraculo__OraculoSeccionEventoSemana-module__padding___vfUcV", Ie = {
|
|
3258
|
+
wrapper: zn,
|
|
3259
|
+
container: Rn,
|
|
3260
|
+
buttonWrapper: Ln,
|
|
3261
|
+
padding: Fn
|
|
3262
|
+
}, Pn = fe.memo(ja);
|
|
3263
|
+
async function qn(e, a = 2, n) {
|
|
3264
3264
|
const o = [];
|
|
3265
3265
|
for (let i = 0; i < e.length; i += a) {
|
|
3266
3266
|
if (n.aborted)
|
|
@@ -3272,12 +3272,12 @@ async function Dn(e, a = 2, n) {
|
|
|
3272
3272
|
}
|
|
3273
3273
|
return o;
|
|
3274
3274
|
}
|
|
3275
|
-
function
|
|
3275
|
+
function Dn(e) {
|
|
3276
3276
|
return [...e].sort(
|
|
3277
3277
|
(a, n) => new Date(a.start).getTime() - new Date(n.start).getTime()
|
|
3278
3278
|
);
|
|
3279
3279
|
}
|
|
3280
|
-
function
|
|
3280
|
+
function Un(e) {
|
|
3281
3281
|
const a = /* @__PURE__ */ new Date(), n = new Date(a.getTime() + 480 * 60 * 60 * 1e3);
|
|
3282
3282
|
return e.filter((o) => {
|
|
3283
3283
|
if (!o.start) return !1;
|
|
@@ -3285,7 +3285,7 @@ function Vn(e) {
|
|
|
3285
3285
|
return i >= a && i <= n;
|
|
3286
3286
|
});
|
|
3287
3287
|
}
|
|
3288
|
-
function
|
|
3288
|
+
function Vn(e, a) {
|
|
3289
3289
|
const o = a.filter((i) => {
|
|
3290
3290
|
var r;
|
|
3291
3291
|
return ((r = i.betOfferType) == null ? void 0 : r.id) === 2;
|
|
@@ -3295,17 +3295,17 @@ function Wn(e, a) {
|
|
|
3295
3295
|
outcome: o[i.id]
|
|
3296
3296
|
}));
|
|
3297
3297
|
}
|
|
3298
|
-
function
|
|
3298
|
+
function Wn({
|
|
3299
3299
|
items: e,
|
|
3300
3300
|
title: a = "En vivo",
|
|
3301
3301
|
iconUrl: n,
|
|
3302
3302
|
onViewMore: o,
|
|
3303
3303
|
className: i = ""
|
|
3304
3304
|
}) {
|
|
3305
|
-
const r =
|
|
3305
|
+
const r = ae(), s = ne(), m = le(), f = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE", g = G(null), [u, l] = J({ isStart: !0, isEnd: !1 }), [c, h] = J(null);
|
|
3306
3306
|
G(/* @__PURE__ */ new Set());
|
|
3307
|
-
const [b,
|
|
3308
|
-
|
|
3307
|
+
const [b, E] = J({}), [A, O] = J({ start: null, end: null }), x = "channel_id=1&client_id=200&competitionId=undefined&lang=es_PE&market=PE&useCombined=true", k = ht(A, 250), U = G(!1);
|
|
3308
|
+
ie(() => c === null ? Array(6).fill({}) : c.slice(0, 20), [c]);
|
|
3309
3309
|
const I = () => {
|
|
3310
3310
|
r({
|
|
3311
3311
|
element: "evento_semana_view_more",
|
|
@@ -3317,11 +3317,11 @@ function Gn({
|
|
|
3317
3317
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
3318
3318
|
},
|
|
3319
3319
|
tags: { section: "OraculoSeccionEventoSemana" }
|
|
3320
|
-
}),
|
|
3320
|
+
}), Na();
|
|
3321
3321
|
};
|
|
3322
3322
|
async function L(M) {
|
|
3323
3323
|
var v, D;
|
|
3324
|
-
let
|
|
3324
|
+
let R = [], P = [];
|
|
3325
3325
|
try {
|
|
3326
3326
|
const $ = await fetch(
|
|
3327
3327
|
"https://api.mktolimpo.com/api/kambi/eventos/orden",
|
|
@@ -3329,7 +3329,7 @@ function Gn({
|
|
|
3329
3329
|
);
|
|
3330
3330
|
if ($.ok) {
|
|
3331
3331
|
const V = await $.json();
|
|
3332
|
-
|
|
3332
|
+
R = ((v = V == null ? void 0 : V.data) == null ? void 0 : v.group_ids) || [], P = ((D = V == null ? void 0 : V.data) == null ? void 0 : D.event_ids) || [];
|
|
3333
3333
|
}
|
|
3334
3334
|
} catch ($) {
|
|
3335
3335
|
$.name !== "AbortError" && console.warn("Order API not available, using default group order");
|
|
@@ -3337,84 +3337,84 @@ function Gn({
|
|
|
3337
3337
|
}
|
|
3338
3338
|
try {
|
|
3339
3339
|
const Z = (await (await fetch(f, { signal: M })).json()).group.groups.find(
|
|
3340
|
-
(
|
|
3340
|
+
(y) => y.englishName === "Football"
|
|
3341
3341
|
);
|
|
3342
3342
|
if (!Z || !Array.isArray(Z.groups)) {
|
|
3343
3343
|
console.error("Football groups not found");
|
|
3344
3344
|
return;
|
|
3345
3345
|
}
|
|
3346
|
-
let
|
|
3347
|
-
if (
|
|
3348
|
-
const
|
|
3349
|
-
|
|
3346
|
+
let X = [...Z.groups];
|
|
3347
|
+
if (R.length > 0) {
|
|
3348
|
+
const y = new Map(
|
|
3349
|
+
R.map((T, B) => [T, B])
|
|
3350
3350
|
);
|
|
3351
|
-
|
|
3352
|
-
const
|
|
3353
|
-
return
|
|
3351
|
+
X.sort((T, B) => {
|
|
3352
|
+
const K = y.get(String(T.id)), ee = y.get(String(B.id));
|
|
3353
|
+
return K !== void 0 && ee !== void 0 ? K - ee : K !== void 0 ? -1 : ee !== void 0 ? 1 : 0;
|
|
3354
3354
|
});
|
|
3355
3355
|
}
|
|
3356
|
-
const
|
|
3357
|
-
const
|
|
3358
|
-
if (
|
|
3359
|
-
const
|
|
3356
|
+
const d = X.slice(0, 5), _ = (y) => {
|
|
3357
|
+
const T = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football";
|
|
3358
|
+
if (y.groups && y.groups.length > 0) {
|
|
3359
|
+
const B = y.groups[0];
|
|
3360
3360
|
return [
|
|
3361
|
-
`${
|
|
3361
|
+
`${T}/${y.termKey}/${B.termKey}/all/matches.json?${x}`
|
|
3362
3362
|
];
|
|
3363
3363
|
}
|
|
3364
3364
|
return [
|
|
3365
|
-
`${
|
|
3365
|
+
`${T}/${y.termKey}/all/all/matches.json?${x}`
|
|
3366
3366
|
];
|
|
3367
|
-
},
|
|
3368
|
-
w(
|
|
3367
|
+
}, C = d.flatMap(_);
|
|
3368
|
+
w(C, P, M);
|
|
3369
3369
|
} catch ($) {
|
|
3370
3370
|
console.error($);
|
|
3371
3371
|
}
|
|
3372
3372
|
}
|
|
3373
|
-
async function w(M,
|
|
3373
|
+
async function w(M, R, P) {
|
|
3374
3374
|
try {
|
|
3375
|
-
const v = await
|
|
3375
|
+
const v = await qn(M, 2, P);
|
|
3376
3376
|
let D = [], $ = [];
|
|
3377
3377
|
v.forEach((W) => {
|
|
3378
|
-
W.events && (D.push(...W.events.map((
|
|
3379
|
-
...W.events.flatMap((
|
|
3378
|
+
W.events && (D.push(...W.events.map((d) => d.event)), $.push(
|
|
3379
|
+
...W.events.flatMap((d) => d.betOffers || [])
|
|
3380
3380
|
));
|
|
3381
3381
|
});
|
|
3382
|
-
const V =
|
|
3383
|
-
let
|
|
3384
|
-
if (
|
|
3382
|
+
const V = Vn(D, $), Z = Dn(Un(V));
|
|
3383
|
+
let X = Z;
|
|
3384
|
+
if (R.length > 0) {
|
|
3385
3385
|
const W = new Map(
|
|
3386
|
-
|
|
3387
|
-
String(
|
|
3388
|
-
|
|
3386
|
+
R.map((d, _) => [
|
|
3387
|
+
String(d),
|
|
3388
|
+
_
|
|
3389
3389
|
])
|
|
3390
3390
|
);
|
|
3391
|
-
|
|
3392
|
-
const
|
|
3393
|
-
return
|
|
3391
|
+
X = [...Z].sort((d, _) => {
|
|
3392
|
+
const C = W.get(String(d.id)), y = W.get(String(_.id));
|
|
3393
|
+
return C !== void 0 && y !== void 0 ? C - y : C !== void 0 ? -1 : y !== void 0 ? 1 : 0;
|
|
3394
3394
|
});
|
|
3395
3395
|
}
|
|
3396
3396
|
if (P.aborted) return;
|
|
3397
|
-
h(
|
|
3397
|
+
h(X);
|
|
3398
3398
|
} catch (v) {
|
|
3399
3399
|
console.error("Error loading events:", v);
|
|
3400
3400
|
}
|
|
3401
3401
|
}
|
|
3402
|
-
|
|
3402
|
+
Q(() => {
|
|
3403
3403
|
if (!e) return;
|
|
3404
3404
|
const M = new AbortController();
|
|
3405
3405
|
return L(M.signal), () => {
|
|
3406
3406
|
M.abort();
|
|
3407
3407
|
};
|
|
3408
|
-
}, [e]),
|
|
3409
|
-
if (
|
|
3408
|
+
}, [e]), Q(() => {
|
|
3409
|
+
if (k.start === null || k.end === null || !(c != null && c.length) || U.current)
|
|
3410
3410
|
return;
|
|
3411
|
-
const M = 2,
|
|
3411
|
+
const M = 2, R = Math.max(0, k.start - M), P = Math.min(c.length - 1, k.end + M), v = c.slice(R, P + 1).map(($) => $ == null ? void 0 : $.id).filter(Boolean).filter(($) => b[$] === void 0);
|
|
3412
3412
|
if (!v.length) return;
|
|
3413
3413
|
let D = !1;
|
|
3414
3414
|
return U.current = !0, (async () => {
|
|
3415
3415
|
try {
|
|
3416
|
-
const $ = await
|
|
3417
|
-
D ||
|
|
3416
|
+
const $ = await gt(v);
|
|
3417
|
+
D || E((V) => ({
|
|
3418
3418
|
...V,
|
|
3419
3419
|
...$.events
|
|
3420
3420
|
}));
|
|
@@ -3426,17 +3426,17 @@ function Gn({
|
|
|
3426
3426
|
})(), () => {
|
|
3427
3427
|
D = !0;
|
|
3428
3428
|
};
|
|
3429
|
-
}, [
|
|
3430
|
-
const
|
|
3429
|
+
}, [k, c]);
|
|
3430
|
+
const z = i || void 0, F = {
|
|
3431
3431
|
paddingLeft: 0,
|
|
3432
3432
|
width: "100%",
|
|
3433
3433
|
boxSizing: "border-box"
|
|
3434
|
-
}, S = c === null, N =
|
|
3435
|
-
return !S && c.length === 0 ? null : /* @__PURE__ */ t("section", { className:
|
|
3436
|
-
/* @__PURE__ */ t("div", { className:
|
|
3437
|
-
/* @__PURE__ */ t(
|
|
3438
|
-
/* @__PURE__ */ t("div", { className:
|
|
3439
|
-
|
|
3434
|
+
}, S = c === null, N = xe("(max-width:768px)");
|
|
3435
|
+
return !S && c.length === 0 ? null : /* @__PURE__ */ t("section", { className: z, style: F, children: /* @__PURE__ */ p("div", { className: `${Ie.wrapper} ${Ie.padding}`, children: [
|
|
3436
|
+
/* @__PURE__ */ t("div", { className: Ie.container, children: /* @__PURE__ */ p(H, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
3437
|
+
/* @__PURE__ */ t(ge, { title: "Eventos de la semana" }),
|
|
3438
|
+
/* @__PURE__ */ t("div", { className: Ie.buttonWrapper, children: /* @__PURE__ */ t(
|
|
3439
|
+
Y,
|
|
3440
3440
|
{
|
|
3441
3441
|
variant: "secondary",
|
|
3442
3442
|
size: "lg",
|
|
@@ -3449,7 +3449,7 @@ function Gn({
|
|
|
3449
3449
|
) })
|
|
3450
3450
|
] }) }),
|
|
3451
3451
|
/* @__PURE__ */ t("div", { style: { minWidth: "180px" }, children: /* @__PURE__ */ t(
|
|
3452
|
-
|
|
3452
|
+
he,
|
|
3453
3453
|
{
|
|
3454
3454
|
ref: g,
|
|
3455
3455
|
items: S ? Array(6).fill({}) : c.slice(0, 20),
|
|
@@ -3467,11 +3467,11 @@ function Gn({
|
|
|
3467
3467
|
}
|
|
3468
3468
|
},
|
|
3469
3469
|
renderItem: (M) => {
|
|
3470
|
-
const
|
|
3471
|
-
return S ? /* @__PURE__ */ t(
|
|
3470
|
+
const R = M.id, P = R in b ? b[R] : void 0;
|
|
3471
|
+
return S ? /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(An, {}) }) : /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Pn, { event: M, jersey: P }) });
|
|
3472
3472
|
},
|
|
3473
|
-
onMove: ({ isStart: M, isEnd:
|
|
3474
|
-
l({ isStart: M, isEnd:
|
|
3473
|
+
onMove: ({ isStart: M, isEnd: R, visibleStart: P, visibleEnd: v }) => {
|
|
3474
|
+
l({ isStart: M, isEnd: R }), O({
|
|
3475
3475
|
start: P,
|
|
3476
3476
|
end: v
|
|
3477
3477
|
}), r({
|
|
@@ -3485,7 +3485,7 @@ function Gn({
|
|
|
3485
3485
|
visibleStart: P,
|
|
3486
3486
|
visibleEnd: v,
|
|
3487
3487
|
isStart: M,
|
|
3488
|
-
isEnd:
|
|
3488
|
+
isEnd: R
|
|
3489
3489
|
},
|
|
3490
3490
|
tags: { section: "OraculoSeccionEventoSemana" }
|
|
3491
3491
|
});
|
|
@@ -3494,13 +3494,13 @@ function Gn({
|
|
|
3494
3494
|
) })
|
|
3495
3495
|
] }) });
|
|
3496
3496
|
}
|
|
3497
|
-
function
|
|
3497
|
+
function Gn({
|
|
3498
3498
|
backgrounds: e,
|
|
3499
3499
|
items: a,
|
|
3500
3500
|
hideItems: n
|
|
3501
3501
|
}) {
|
|
3502
|
-
var M,
|
|
3503
|
-
const [o, i] =
|
|
3502
|
+
var M, R, P;
|
|
3503
|
+
const [o, i] = J(0), r = ae(), s = ne(), m = le(), f = G(null), g = G(!1), u = G(!1), l = (e == null ? void 0 : e.length) || 1, c = !e || e.length === 0, h = !c && ((M = e == null ? void 0 : e.length) != null ? M : 0) > 1, b = !n && ((R = a == null ? void 0 : a.length) != null ? R : 0) > 0, E = "#B5B5B5", A = {
|
|
3504
3504
|
position: "absolute",
|
|
3505
3505
|
top: "50%",
|
|
3506
3506
|
transform: "translateY(-50%)",
|
|
@@ -3508,22 +3508,22 @@ function jn({
|
|
|
3508
3508
|
width: 48,
|
|
3509
3509
|
height: 40,
|
|
3510
3510
|
borderRadius: "12px",
|
|
3511
|
-
border: `1.5px solid ${
|
|
3511
|
+
border: `1.5px solid ${E}`,
|
|
3512
3512
|
py: 1,
|
|
3513
3513
|
px: 1.5,
|
|
3514
|
-
color:
|
|
3514
|
+
color: E,
|
|
3515
3515
|
backgroundColor: "transparent",
|
|
3516
3516
|
"&:hover": {
|
|
3517
3517
|
backgroundColor: "rgba(181,181,181,0.08)"
|
|
3518
3518
|
},
|
|
3519
3519
|
"&.Mui-disabled": {
|
|
3520
3520
|
opacity: 0.35,
|
|
3521
|
-
borderColor:
|
|
3522
|
-
color:
|
|
3521
|
+
borderColor: E,
|
|
3522
|
+
color: E,
|
|
3523
3523
|
backgroundColor: "transparent",
|
|
3524
3524
|
cursor: "default"
|
|
3525
3525
|
}
|
|
3526
|
-
}, O =
|
|
3526
|
+
}, O = ie(
|
|
3527
3527
|
() => ({
|
|
3528
3528
|
type: "loop",
|
|
3529
3529
|
perMove: 1,
|
|
@@ -3534,7 +3534,7 @@ function jn({
|
|
|
3534
3534
|
}),
|
|
3535
3535
|
[]
|
|
3536
3536
|
);
|
|
3537
|
-
|
|
3537
|
+
Q(() => {
|
|
3538
3538
|
const v = setTimeout(() => {
|
|
3539
3539
|
g.current = !0;
|
|
3540
3540
|
}, 500);
|
|
@@ -3560,7 +3560,7 @@ function jn({
|
|
|
3560
3560
|
banner_url: v.href || "no_url"
|
|
3561
3561
|
}
|
|
3562
3562
|
});
|
|
3563
|
-
},
|
|
3563
|
+
}, k = (v) => {
|
|
3564
3564
|
if (r({
|
|
3565
3565
|
element: "banner_menu_item",
|
|
3566
3566
|
label: `${s} - OraculoSeccionBanners - Menu item click: ${v.label || v.id}`,
|
|
@@ -3581,13 +3581,13 @@ function jn({
|
|
|
3581
3581
|
v.href && typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(v.href);
|
|
3582
3582
|
}, U = 5e3, I = G(null), L = !c && ((P = e == null ? void 0 : e.length) != null ? P : 0) > 1, w = () => {
|
|
3583
3583
|
I.current != null && (window.clearTimeout(I.current), I.current = null);
|
|
3584
|
-
},
|
|
3584
|
+
}, z = () => {
|
|
3585
3585
|
w(), L && (I.current = window.setTimeout(() => {
|
|
3586
3586
|
var v;
|
|
3587
|
-
|
|
3587
|
+
u.current = !0, (v = f.current) == null || v.next();
|
|
3588
3588
|
}, U));
|
|
3589
3589
|
};
|
|
3590
|
-
|
|
3590
|
+
Q(() => (z(), () => w()), [L, U]);
|
|
3591
3591
|
const F = (v) => {
|
|
3592
3592
|
var D;
|
|
3593
3593
|
v.preventDefault(), v.stopPropagation(), w(), (D = f.current) == null || D.prev();
|
|
@@ -3595,10 +3595,10 @@ function jn({
|
|
|
3595
3595
|
var D;
|
|
3596
3596
|
v.preventDefault(), v.stopPropagation(), w(), (D = f.current) == null || D.next();
|
|
3597
3597
|
}, N = (v) => {
|
|
3598
|
-
var V, Z,
|
|
3598
|
+
var V, Z, X, W;
|
|
3599
3599
|
const D = (v % l + l) % l;
|
|
3600
3600
|
if (!g.current) return;
|
|
3601
|
-
const $ = (V = e == null ? void 0 : e[D]) != null && V.href ? ((
|
|
3601
|
+
const $ = (V = e == null ? void 0 : e[D]) != null && V.href ? ((X = (Z = e[D].href) == null ? void 0 : Z.split("/").pop()) == null ? void 0 : X.split(".")[0]) || `banner_${D + 1}` : `banner_${D + 1}`;
|
|
3602
3602
|
r({
|
|
3603
3603
|
element: "banner_carousel",
|
|
3604
3604
|
label: `${s} - OraculoSeccionBanners - Banner view: Slide ${D + 1} - ${$}`,
|
|
@@ -3645,7 +3645,7 @@ function jn({
|
|
|
3645
3645
|
"& .splide__slide": { height: "100%", position: "relative" }
|
|
3646
3646
|
},
|
|
3647
3647
|
children: /* @__PURE__ */ t(
|
|
3648
|
-
|
|
3648
|
+
he,
|
|
3649
3649
|
{
|
|
3650
3650
|
ref: f,
|
|
3651
3651
|
items: e,
|
|
@@ -3656,8 +3656,8 @@ function jn({
|
|
|
3656
3656
|
onMove: ({ index: v }) => {
|
|
3657
3657
|
const D = (v % l + l) % l;
|
|
3658
3658
|
i(D);
|
|
3659
|
-
const $ =
|
|
3660
|
-
|
|
3659
|
+
const $ = u.current;
|
|
3660
|
+
u.current = !1, z(), $ || N(v);
|
|
3661
3661
|
},
|
|
3662
3662
|
renderItem: (v, D) => {
|
|
3663
3663
|
var $, V;
|
|
@@ -3725,33 +3725,33 @@ function jn({
|
|
|
3725
3725
|
)
|
|
3726
3726
|
}
|
|
3727
3727
|
),
|
|
3728
|
-
h && /* @__PURE__ */ p(
|
|
3728
|
+
h && /* @__PURE__ */ p(se, { children: [
|
|
3729
3729
|
/* @__PURE__ */ t(
|
|
3730
|
-
|
|
3730
|
+
Ke,
|
|
3731
3731
|
{
|
|
3732
3732
|
"aria-label": "Anterior",
|
|
3733
3733
|
onClick: F,
|
|
3734
3734
|
sx: {
|
|
3735
|
-
...
|
|
3735
|
+
...A,
|
|
3736
3736
|
left: "120px",
|
|
3737
3737
|
"@media (max-width:1024px)": { left: 24 },
|
|
3738
3738
|
"@media (max-width:786px)": { display: "none" }
|
|
3739
3739
|
},
|
|
3740
|
-
children: /* @__PURE__ */ t(
|
|
3740
|
+
children: /* @__PURE__ */ t(Ae, {})
|
|
3741
3741
|
}
|
|
3742
3742
|
),
|
|
3743
3743
|
/* @__PURE__ */ t(
|
|
3744
|
-
|
|
3744
|
+
Ke,
|
|
3745
3745
|
{
|
|
3746
3746
|
"aria-label": "Siguiente",
|
|
3747
3747
|
onClick: S,
|
|
3748
3748
|
sx: {
|
|
3749
|
-
...
|
|
3749
|
+
...A,
|
|
3750
3750
|
right: "120px",
|
|
3751
3751
|
"@media (max-width:1024px)": { right: 24 },
|
|
3752
3752
|
"@media (max-width:786px)": { display: "none" }
|
|
3753
3753
|
},
|
|
3754
|
-
children: /* @__PURE__ */ t(
|
|
3754
|
+
children: /* @__PURE__ */ t(ze, {})
|
|
3755
3755
|
}
|
|
3756
3756
|
)
|
|
3757
3757
|
] }),
|
|
@@ -3768,7 +3768,7 @@ function jn({
|
|
|
3768
3768
|
zIndex: 2
|
|
3769
3769
|
},
|
|
3770
3770
|
children: /* @__PURE__ */ t(
|
|
3771
|
-
|
|
3771
|
+
dt,
|
|
3772
3772
|
{
|
|
3773
3773
|
total: l,
|
|
3774
3774
|
active: o,
|
|
@@ -3844,7 +3844,7 @@ function jn({
|
|
|
3844
3844
|
}
|
|
3845
3845
|
}
|
|
3846
3846
|
},
|
|
3847
|
-
onClick: () =>
|
|
3847
|
+
onClick: () => k(v),
|
|
3848
3848
|
children: [
|
|
3849
3849
|
v.icon && /* @__PURE__ */ p(
|
|
3850
3850
|
te,
|
|
@@ -3894,7 +3894,7 @@ function jn({
|
|
|
3894
3894
|
}
|
|
3895
3895
|
),
|
|
3896
3896
|
/* @__PURE__ */ t(
|
|
3897
|
-
|
|
3897
|
+
st,
|
|
3898
3898
|
{
|
|
3899
3899
|
className: "menu-text",
|
|
3900
3900
|
sx: {
|
|
@@ -3916,7 +3916,7 @@ function jn({
|
|
|
3916
3916
|
}
|
|
3917
3917
|
);
|
|
3918
3918
|
}
|
|
3919
|
-
const
|
|
3919
|
+
const jn = [
|
|
3920
3920
|
{ src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/IBK.svg", alt: "Interbank" },
|
|
3921
3921
|
{ src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/Yape.svg", alt: "Yape" },
|
|
3922
3922
|
{ src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/BCP.png", alt: "BCP" },
|
|
@@ -3925,14 +3925,14 @@ const Hn = [
|
|
|
3925
3925
|
{ src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/monnet.svg", alt: "Monnet" },
|
|
3926
3926
|
{ src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/niubiz.svg", alt: "Niubiz" }
|
|
3927
3927
|
];
|
|
3928
|
-
function
|
|
3928
|
+
function Hn({
|
|
3929
3929
|
title: e = "Medios de pago",
|
|
3930
|
-
items: a =
|
|
3930
|
+
items: a = jn
|
|
3931
3931
|
}) {
|
|
3932
3932
|
const n = Math.ceil(a.length / 2), o = a.slice(0, n), i = a.slice(n);
|
|
3933
3933
|
return /* @__PURE__ */ p(te, { component: "section", "aria-labelledby": "mp-title", sx: { color: "#fff" }, children: [
|
|
3934
3934
|
/* @__PURE__ */ t(
|
|
3935
|
-
|
|
3935
|
+
st,
|
|
3936
3936
|
{
|
|
3937
3937
|
id: "mp-title",
|
|
3938
3938
|
variant: "h6",
|
|
@@ -3959,37 +3959,37 @@ function Kn({
|
|
|
3959
3959
|
}
|
|
3960
3960
|
}
|
|
3961
3961
|
),
|
|
3962
|
-
/* @__PURE__ */ p(
|
|
3962
|
+
/* @__PURE__ */ p(Ee, { spacing: { xs: 2, md: 3 }, alignItems: "center", children: [
|
|
3963
3963
|
/* @__PURE__ */ t(
|
|
3964
|
-
|
|
3964
|
+
Ee,
|
|
3965
3965
|
{
|
|
3966
3966
|
direction: "row",
|
|
3967
3967
|
justifyContent: "center",
|
|
3968
3968
|
alignItems: "center",
|
|
3969
3969
|
gap: { xs: 2, md: 3 },
|
|
3970
3970
|
flexWrap: "wrap",
|
|
3971
|
-
children: o.map((r, s) => /* @__PURE__ */ t(
|
|
3971
|
+
children: o.map((r, s) => /* @__PURE__ */ t(Ze, { ...r }, `${r.alt}-${r.src}-${s}`))
|
|
3972
3972
|
}
|
|
3973
3973
|
),
|
|
3974
3974
|
/* @__PURE__ */ t(
|
|
3975
|
-
|
|
3975
|
+
Ee,
|
|
3976
3976
|
{
|
|
3977
3977
|
direction: "row",
|
|
3978
3978
|
justifyContent: "center",
|
|
3979
3979
|
alignItems: "center",
|
|
3980
3980
|
gap: { xs: 2, md: 3 },
|
|
3981
3981
|
flexWrap: "wrap",
|
|
3982
|
-
children: i.map((r, s) => /* @__PURE__ */ t(
|
|
3982
|
+
children: i.map((r, s) => /* @__PURE__ */ t(Ze, { ...r }, `${r.alt}-${r.src}-${s}`))
|
|
3983
3983
|
}
|
|
3984
3984
|
)
|
|
3985
3985
|
] })
|
|
3986
3986
|
] });
|
|
3987
3987
|
}
|
|
3988
|
-
function
|
|
3988
|
+
function Ue({
|
|
3989
3989
|
children: e
|
|
3990
3990
|
}) {
|
|
3991
|
-
const a =
|
|
3992
|
-
() =>
|
|
3991
|
+
const a = Mt(), n = fe.useMemo(
|
|
3992
|
+
() => Bt(a, {
|
|
3993
3993
|
typography: { fontFamily: "var(--orc-font)" },
|
|
3994
3994
|
components: {
|
|
3995
3995
|
MuiTypography: {
|
|
@@ -4001,32 +4001,32 @@ function Ve({
|
|
|
4001
4001
|
}),
|
|
4002
4002
|
[a]
|
|
4003
4003
|
);
|
|
4004
|
-
return /* @__PURE__ */ p(
|
|
4005
|
-
/* @__PURE__ */ t(
|
|
4004
|
+
return /* @__PURE__ */ p(At, { theme: n, children: [
|
|
4005
|
+
/* @__PURE__ */ t(zt, {}),
|
|
4006
4006
|
e
|
|
4007
4007
|
] });
|
|
4008
4008
|
}
|
|
4009
|
-
function
|
|
4009
|
+
function ho({
|
|
4010
4010
|
docId: e = "Landing: home",
|
|
4011
4011
|
moduleId: a = 301,
|
|
4012
4012
|
children: n
|
|
4013
4013
|
}) {
|
|
4014
|
-
return /* @__PURE__ */ t(
|
|
4014
|
+
return /* @__PURE__ */ t(Ue, { children: /* @__PURE__ */ t(De, { docId: e, moduleId: a, children: n }) });
|
|
4015
4015
|
}
|
|
4016
|
-
const
|
|
4017
|
-
OraculoSeccionDestacados:
|
|
4018
|
-
OraculoSeccionTopJuegos:
|
|
4019
|
-
OraculoSeccionCasinoEnVivo:
|
|
4020
|
-
OraculoSeccionCasino:
|
|
4021
|
-
OraculoSeccionVirtuales:
|
|
4022
|
-
OraculoSeccionClubOlimpo:
|
|
4023
|
-
OraculoSeccionBonoBienvenida:
|
|
4024
|
-
OraculoSeccionBanners:
|
|
4025
|
-
OraculoSeccionMediosPago:
|
|
4026
|
-
OraculoSeccionEventoEnVivo:
|
|
4027
|
-
OraculoSeccionEventoSemana:
|
|
4028
|
-
OraculoSeccionEventoCombinadas:
|
|
4029
|
-
},
|
|
4016
|
+
const Kn = {
|
|
4017
|
+
OraculoSeccionDestacados: Ha,
|
|
4018
|
+
OraculoSeccionTopJuegos: Ja,
|
|
4019
|
+
OraculoSeccionCasinoEnVivo: ln,
|
|
4020
|
+
OraculoSeccionCasino: un,
|
|
4021
|
+
OraculoSeccionVirtuales: gn,
|
|
4022
|
+
OraculoSeccionClubOlimpo: vn,
|
|
4023
|
+
OraculoSeccionBonoBienvenida: bn,
|
|
4024
|
+
OraculoSeccionBanners: Gn,
|
|
4025
|
+
OraculoSeccionMediosPago: Hn,
|
|
4026
|
+
OraculoSeccionEventoEnVivo: Bn,
|
|
4027
|
+
OraculoSeccionEventoSemana: Wn,
|
|
4028
|
+
OraculoSeccionEventoCombinadas: Cn
|
|
4029
|
+
}, qe = {
|
|
4030
4030
|
sections: [
|
|
4031
4031
|
{
|
|
4032
4032
|
title: "Banners",
|
|
@@ -4575,7 +4575,7 @@ const Zn = {
|
|
|
4575
4575
|
apiUrl: "https://wallet-pe.olimpo.bet/api/contents/getLobby",
|
|
4576
4576
|
visible: !0,
|
|
4577
4577
|
title: "Casino",
|
|
4578
|
-
apiMethod: "GET",
|
|
4578
|
+
// apiMethod: "GET",
|
|
4579
4579
|
componentKey: "OraculoSeccionCasino",
|
|
4580
4580
|
variableName: "items",
|
|
4581
4581
|
apiParams: [
|
|
@@ -5210,8 +5210,8 @@ const Zn = {
|
|
|
5210
5210
|
componentKey: "OraculoSeccionMediosPago"
|
|
5211
5211
|
}
|
|
5212
5212
|
]
|
|
5213
|
-
},
|
|
5214
|
-
function
|
|
5213
|
+
}, Zn = (e) => typeof e == "function" || e && typeof e == "object" && "$$typeof" in e, Jn = (e) => /^OraculoSeccion[A-Z]/.test(e);
|
|
5214
|
+
function Ce(e) {
|
|
5215
5215
|
return e && Array.isArray(e.sections) ? e.sections.slice().sort((a, n) => {
|
|
5216
5216
|
var o, i;
|
|
5217
5217
|
return ((o = a.order) != null ? o : 0) - ((i = n.order) != null ? i : 0);
|
|
@@ -5236,23 +5236,23 @@ function Ee(e) {
|
|
|
5236
5236
|
};
|
|
5237
5237
|
}) : [];
|
|
5238
5238
|
}
|
|
5239
|
-
const
|
|
5240
|
-
Object.entries(
|
|
5241
|
-
([e, a]) =>
|
|
5239
|
+
const Xn = Object.fromEntries(
|
|
5240
|
+
Object.entries(Kn).filter(
|
|
5241
|
+
([e, a]) => Jn(e) && Zn(a)
|
|
5242
5242
|
)
|
|
5243
|
-
),
|
|
5243
|
+
), Yn = (e) => {
|
|
5244
5244
|
try {
|
|
5245
5245
|
return Object.fromEntries(e != null ? e : []);
|
|
5246
5246
|
} catch {
|
|
5247
5247
|
return console.warn("[oraculo] extras inválidos. Debe ser Array<[string, unknown]>", e), {};
|
|
5248
5248
|
}
|
|
5249
5249
|
};
|
|
5250
|
-
class
|
|
5250
|
+
class nt extends Error {
|
|
5251
5251
|
constructor(a, n, o) {
|
|
5252
5252
|
super(`HTTP ${a} ${o}`), this.status = a, this.url = n, this.statusText = o, this.name = "HttpError";
|
|
5253
5253
|
}
|
|
5254
5254
|
}
|
|
5255
|
-
class
|
|
5255
|
+
class bo extends fe.Component {
|
|
5256
5256
|
constructor(a) {
|
|
5257
5257
|
super(a), this.state = {
|
|
5258
5258
|
hasError: !1,
|
|
@@ -5278,11 +5278,11 @@ class eo extends ge.Component {
|
|
|
5278
5278
|
] }) : this.props.children;
|
|
5279
5279
|
}
|
|
5280
5280
|
}
|
|
5281
|
-
const
|
|
5281
|
+
const ot = [
|
|
5282
5282
|
"OraculoSeccionEventoEnVivo",
|
|
5283
5283
|
"OraculoSeccionEventoSemana",
|
|
5284
5284
|
"OraculoSeccionEventoCombinadas"
|
|
5285
|
-
],
|
|
5285
|
+
], vo = ({
|
|
5286
5286
|
sectionsOverride: e,
|
|
5287
5287
|
docId: a = "Landing: home",
|
|
5288
5288
|
moduleId: n = 301,
|
|
@@ -5291,262 +5291,262 @@ const it = [
|
|
|
5291
5291
|
loader: r,
|
|
5292
5292
|
disableWrapper: s = !1
|
|
5293
5293
|
}) => {
|
|
5294
|
-
const m =
|
|
5295
|
-
() =>
|
|
5294
|
+
const m = ie(() => Yn(i), [i]), f = r || m.loader, [g, u] = J([]), [l, c] = J(!1), [h, b] = J({}), [E, A] = J({}), [O, x] = J({}), k = rt("(min-width:1024px)"), U = ie(
|
|
5295
|
+
() => Ce(qe),
|
|
5296
5296
|
[]
|
|
5297
|
-
), I = (
|
|
5298
|
-
(
|
|
5299
|
-
), L = (
|
|
5300
|
-
const
|
|
5301
|
-
return L(
|
|
5302
|
-
}, [m]),
|
|
5303
|
-
const
|
|
5304
|
-
if (!Array.isArray(
|
|
5305
|
-
const
|
|
5306
|
-
(
|
|
5297
|
+
), I = (d) => U.find(
|
|
5298
|
+
(_) => _.id === d.id || _.componentKey === d.componentKey
|
|
5299
|
+
), L = (d) => Array.isArray(d) ? d.map((_) => Number(_)).filter((_) => !Number.isNaN(_)) : [], w = ie(() => {
|
|
5300
|
+
const d = m.user;
|
|
5301
|
+
return L(d == null ? void 0 : d.groups);
|
|
5302
|
+
}, [m]), z = (d) => {
|
|
5303
|
+
const _ = d.manualScalarFields;
|
|
5304
|
+
if (!Array.isArray(_)) return [];
|
|
5305
|
+
const C = _.find(
|
|
5306
|
+
(B) => String((B == null ? void 0 : B.name) || "").trim().toLowerCase() === "groups"
|
|
5307
5307
|
);
|
|
5308
|
-
if (!
|
|
5309
|
-
const
|
|
5310
|
-
if (
|
|
5311
|
-
if (Array.isArray(
|
|
5312
|
-
return
|
|
5313
|
-
const
|
|
5314
|
-
return
|
|
5315
|
-
}, F = (
|
|
5316
|
-
const
|
|
5317
|
-
if (
|
|
5318
|
-
if (!Array.isArray(
|
|
5319
|
-
const
|
|
5320
|
-
return
|
|
5308
|
+
if (!C) return [];
|
|
5309
|
+
const y = C.value;
|
|
5310
|
+
if (y == null) return [];
|
|
5311
|
+
if (Array.isArray(y))
|
|
5312
|
+
return y.map((B) => Number(String(B).trim())).filter((B) => !Number.isNaN(B));
|
|
5313
|
+
const T = String(y).trim();
|
|
5314
|
+
return T ? T.split(",").map((B) => Number(B.trim())).filter((B) => !Number.isNaN(B)) : [];
|
|
5315
|
+
}, F = (d, _) => {
|
|
5316
|
+
const C = z(d);
|
|
5317
|
+
if (C.length === 0) return !0;
|
|
5318
|
+
if (!Array.isArray(_) || _.length === 0) return !1;
|
|
5319
|
+
const y = new Set(_);
|
|
5320
|
+
return C.some((T) => y.has(T));
|
|
5321
5321
|
};
|
|
5322
|
-
|
|
5322
|
+
Q(() => {
|
|
5323
5323
|
if (e) return;
|
|
5324
5324
|
if (!o) {
|
|
5325
|
-
console.warn("[landing] sin db -> fallback json"),
|
|
5325
|
+
console.warn("[landing] sin db -> fallback json"), u(Ce(qe));
|
|
5326
5326
|
return;
|
|
5327
5327
|
}
|
|
5328
|
-
const
|
|
5329
|
-
console.warn("[landing] FALLBACK:",
|
|
5328
|
+
const d = (C, y) => {
|
|
5329
|
+
console.warn("[landing] FALLBACK:", C, y != null ? y : ""), u(Ce(qe)), c(!1);
|
|
5330
5330
|
};
|
|
5331
5331
|
if (process.env.NEXT_PUBLIC_LANDING_FORCE_FALLBACK === "1") {
|
|
5332
|
-
c(!0),
|
|
5332
|
+
c(!0), d("forzado por env");
|
|
5333
5333
|
return;
|
|
5334
5334
|
}
|
|
5335
5335
|
c(!0);
|
|
5336
|
-
const
|
|
5337
|
-
|
|
5338
|
-
(
|
|
5336
|
+
const _ = Rt(
|
|
5337
|
+
Lt(o, "landings", a),
|
|
5338
|
+
(C) => {
|
|
5339
5339
|
try {
|
|
5340
|
-
if (!
|
|
5341
|
-
|
|
5340
|
+
if (!C.exists()) {
|
|
5341
|
+
d(`doc landings/${a} no existe`);
|
|
5342
5342
|
return;
|
|
5343
5343
|
}
|
|
5344
|
-
const
|
|
5345
|
-
if (!
|
|
5346
|
-
|
|
5344
|
+
const y = C.data(), T = Ce(y);
|
|
5345
|
+
if (!T.length) {
|
|
5346
|
+
d("JSON inválido o sin secciones normalizables", y);
|
|
5347
5347
|
return;
|
|
5348
5348
|
}
|
|
5349
|
-
console.log("[landing] Firestore OK (json grande):",
|
|
5350
|
-
} catch (
|
|
5351
|
-
|
|
5349
|
+
console.log("[landing] Firestore OK (json grande):", y), u(T);
|
|
5350
|
+
} catch (y) {
|
|
5351
|
+
d("error procesando snapshot", y);
|
|
5352
5352
|
} finally {
|
|
5353
5353
|
c(!1);
|
|
5354
5354
|
}
|
|
5355
5355
|
},
|
|
5356
|
-
(
|
|
5357
|
-
|
|
5356
|
+
(C) => {
|
|
5357
|
+
d("error onSnapshot", C);
|
|
5358
5358
|
}
|
|
5359
5359
|
);
|
|
5360
|
-
return () =>
|
|
5361
|
-
}, [e, a, o]),
|
|
5362
|
-
(e ? e.slice() : g.slice()).map((
|
|
5360
|
+
return () => _();
|
|
5361
|
+
}, [e, a, o]), Q(() => (Ka(m), () => Za()), [m]), Q(() => {
|
|
5362
|
+
(e ? e.slice() : g.slice()).map((C) => C.componentKey).filter((C) => !!C).length;
|
|
5363
5363
|
}, [e, g]);
|
|
5364
|
-
const S = async (
|
|
5365
|
-
if (
|
|
5364
|
+
const S = async (d) => {
|
|
5365
|
+
if (ot.includes(d.componentKey))
|
|
5366
5366
|
return {
|
|
5367
5367
|
items: [],
|
|
5368
5368
|
events: [],
|
|
5369
5369
|
data: {}
|
|
5370
5370
|
};
|
|
5371
|
-
const
|
|
5372
|
-
if (!
|
|
5373
|
-
const
|
|
5374
|
-
let
|
|
5375
|
-
if (
|
|
5376
|
-
const
|
|
5377
|
-
|
|
5371
|
+
const _ = (d.apiUrl || "").trim();
|
|
5372
|
+
if (!_) return;
|
|
5373
|
+
const C = d.apiMethod || "GET", y = d.apiParams || [];
|
|
5374
|
+
let T = _, B, K;
|
|
5375
|
+
if (C === "GET") {
|
|
5376
|
+
const re = new URL(
|
|
5377
|
+
_,
|
|
5378
5378
|
typeof window == "undefined" ? "http://localhost" : window.location.origin
|
|
5379
5379
|
);
|
|
5380
|
-
for (const
|
|
5381
|
-
|
|
5382
|
-
|
|
5380
|
+
for (const oe of y)
|
|
5381
|
+
oe.key && re.searchParams.append(oe.key, oe.value);
|
|
5382
|
+
T = re.toString();
|
|
5383
5383
|
} else {
|
|
5384
|
-
const
|
|
5385
|
-
for (const
|
|
5386
|
-
|
|
5387
|
-
|
|
5384
|
+
const re = new URLSearchParams();
|
|
5385
|
+
for (const oe of y)
|
|
5386
|
+
oe.key && re.append(oe.key, oe.value);
|
|
5387
|
+
B = re.toString(), K = {
|
|
5388
5388
|
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
|
|
5389
5389
|
};
|
|
5390
5390
|
}
|
|
5391
|
-
const
|
|
5392
|
-
method:
|
|
5391
|
+
const ee = await fetch(T, {
|
|
5392
|
+
method: C,
|
|
5393
5393
|
headers: K,
|
|
5394
|
-
body:
|
|
5394
|
+
body: B
|
|
5395
5395
|
});
|
|
5396
|
-
if (!
|
|
5397
|
-
return
|
|
5398
|
-
}, N =
|
|
5396
|
+
if (!ee.ok) throw new nt(ee.status, T, ee.statusText);
|
|
5397
|
+
return ee.json();
|
|
5398
|
+
}, N = ie(
|
|
5399
5399
|
() => e ? e.slice() : g.slice(),
|
|
5400
5400
|
[e, g]
|
|
5401
|
-
), M =
|
|
5402
|
-
|
|
5403
|
-
const
|
|
5404
|
-
if (
|
|
5405
|
-
for (const { s:
|
|
5406
|
-
const
|
|
5407
|
-
M.current.has(
|
|
5401
|
+
), M = fe.useRef(/* @__PURE__ */ new Set());
|
|
5402
|
+
Q(() => {
|
|
5403
|
+
const d = N.map((_) => ({ s: _, url: (_.apiUrl || "").trim() })).filter(({ url: _ }) => !!_);
|
|
5404
|
+
if (d.length)
|
|
5405
|
+
for (const { s: _, url: C } of d) {
|
|
5406
|
+
const y = `${_.id}|${C}`;
|
|
5407
|
+
M.current.has(y) || (M.current.add(y), A((T) => ({ ...T, [_.id]: !0 })), x((T) => ({ ...T, [_.id]: "" })), (async () => {
|
|
5408
5408
|
try {
|
|
5409
|
-
const
|
|
5410
|
-
b((
|
|
5411
|
-
} catch (
|
|
5412
|
-
let
|
|
5413
|
-
|
|
5409
|
+
const T = await S(_);
|
|
5410
|
+
b((B) => ({ ...B, [_.id]: T }));
|
|
5411
|
+
} catch (T) {
|
|
5412
|
+
let B = "Error desconocido";
|
|
5413
|
+
T instanceof nt ? B = `Error HTTP ${T.status} (${T.statusText}) en ${T.url}` : T instanceof SyntaxError ? B = "Respuesta no es JSON válido" : T instanceof TypeError ? B = "Fallo de red / CORS / conexión" : typeof T == "string" && (B = T.toString()), x((K) => ({ ...K, [_.id]: B }));
|
|
5414
5414
|
} finally {
|
|
5415
|
-
|
|
5415
|
+
A((T) => ({ ...T, [_.id]: !1 }));
|
|
5416
5416
|
}
|
|
5417
5417
|
})());
|
|
5418
5418
|
}
|
|
5419
5419
|
}, [N]);
|
|
5420
|
-
const
|
|
5421
|
-
() => N.filter((
|
|
5420
|
+
const R = ie(
|
|
5421
|
+
() => N.filter((d) => d.visible).filter((d) => F(d, w)).sort((d, _) => d.order - _.order),
|
|
5422
5422
|
[N, w]
|
|
5423
|
-
), P = (
|
|
5424
|
-
const
|
|
5425
|
-
for (const
|
|
5426
|
-
const
|
|
5427
|
-
if (
|
|
5428
|
-
const
|
|
5429
|
-
if (
|
|
5430
|
-
const K = Number(
|
|
5431
|
-
Number.isNaN(K) || (
|
|
5423
|
+
), P = (d) => Array.isArray(d) ? d.map((_) => {
|
|
5424
|
+
const C = {};
|
|
5425
|
+
for (const y of _.fields || []) {
|
|
5426
|
+
const T = (y.type || "string").toLowerCase();
|
|
5427
|
+
if (T === "number") {
|
|
5428
|
+
const B = String(y.value || "").trim();
|
|
5429
|
+
if (B !== "") {
|
|
5430
|
+
const K = Number(B);
|
|
5431
|
+
Number.isNaN(K) || (C[y.name] = K);
|
|
5432
5432
|
}
|
|
5433
|
-
} else if (
|
|
5434
|
-
|
|
5435
|
-
else if (
|
|
5436
|
-
const
|
|
5437
|
-
if (
|
|
5433
|
+
} else if (T === "boolean")
|
|
5434
|
+
C[y.name] = String(y.value).toLowerCase() === "true";
|
|
5435
|
+
else if (T === "function") {
|
|
5436
|
+
const B = String(y.value || "").trim();
|
|
5437
|
+
if (B)
|
|
5438
5438
|
try {
|
|
5439
|
-
const K = new Function(
|
|
5440
|
-
|
|
5439
|
+
const K = new Function(B);
|
|
5440
|
+
C[y.name] = K;
|
|
5441
5441
|
} catch (K) {
|
|
5442
|
-
console.error(`❌ Error creando función en item '${
|
|
5442
|
+
console.error(`❌ Error creando función en item '${y.name}':`, K);
|
|
5443
5443
|
}
|
|
5444
5444
|
} else
|
|
5445
|
-
|
|
5445
|
+
C[y.name] = y.value;
|
|
5446
5446
|
}
|
|
5447
|
-
return
|
|
5448
|
-
}) : [], v = (
|
|
5449
|
-
const
|
|
5450
|
-
if (!Array.isArray(
|
|
5451
|
-
for (const
|
|
5452
|
-
if (!
|
|
5453
|
-
const
|
|
5454
|
-
if (
|
|
5455
|
-
const
|
|
5456
|
-
if (
|
|
5457
|
-
const
|
|
5458
|
-
Number.isNaN(
|
|
5447
|
+
return C;
|
|
5448
|
+
}) : [], v = (d) => {
|
|
5449
|
+
const _ = {};
|
|
5450
|
+
if (!Array.isArray(d)) return _;
|
|
5451
|
+
for (const C of d) {
|
|
5452
|
+
if (!C.name) continue;
|
|
5453
|
+
const y = (C.type || "string").toLowerCase();
|
|
5454
|
+
if (y === "number") {
|
|
5455
|
+
const T = String(C.value || "").trim();
|
|
5456
|
+
if (T !== "") {
|
|
5457
|
+
const B = Number(T);
|
|
5458
|
+
Number.isNaN(B) || (_[C.name] = B);
|
|
5459
5459
|
}
|
|
5460
|
-
} else if (
|
|
5461
|
-
|
|
5462
|
-
else if (
|
|
5463
|
-
const
|
|
5464
|
-
if (
|
|
5460
|
+
} else if (y === "boolean")
|
|
5461
|
+
_[C.name] = String(C.value).toLowerCase() === "true";
|
|
5462
|
+
else if (y === "function") {
|
|
5463
|
+
const T = String(C.value || "").trim();
|
|
5464
|
+
if (T)
|
|
5465
5465
|
try {
|
|
5466
|
-
const
|
|
5467
|
-
|
|
5468
|
-
} catch (
|
|
5469
|
-
console.error(`❌ Error creando función en item '${
|
|
5466
|
+
const B = new Function(T);
|
|
5467
|
+
_[C.name] = B;
|
|
5468
|
+
} catch (B) {
|
|
5469
|
+
console.error(`❌ Error creando función en item '${C.name}':`, B);
|
|
5470
5470
|
}
|
|
5471
5471
|
} else
|
|
5472
|
-
|
|
5472
|
+
_[C.name] = C.value;
|
|
5473
5473
|
}
|
|
5474
|
-
return
|
|
5475
|
-
}, D = (
|
|
5476
|
-
const
|
|
5477
|
-
if (
|
|
5478
|
-
return
|
|
5479
|
-
const K =
|
|
5474
|
+
return _;
|
|
5475
|
+
}, D = (d, _, C, y) => {
|
|
5476
|
+
const T = C ? { ...C } : {}, B = (y || "items").trim() || "items";
|
|
5477
|
+
if (_)
|
|
5478
|
+
return T[B] = _.arr || [], T;
|
|
5479
|
+
const K = d;
|
|
5480
5480
|
if (Array.isArray(K))
|
|
5481
|
-
return
|
|
5481
|
+
return T[B] = K, T;
|
|
5482
5482
|
if (K && typeof K == "object") {
|
|
5483
|
-
const
|
|
5484
|
-
return Array.isArray(
|
|
5483
|
+
const ee = K;
|
|
5484
|
+
return Array.isArray(ee.lobby) ? (T[B] = ee.lobby, T) : Array.isArray(ee.items) ? (T[B] = ee.items, T) : (T[B] = K, T);
|
|
5485
5485
|
}
|
|
5486
|
-
return
|
|
5487
|
-
}, $ = (
|
|
5488
|
-
var
|
|
5489
|
-
const
|
|
5490
|
-
let
|
|
5491
|
-
const
|
|
5492
|
-
if (
|
|
5493
|
-
return { items:
|
|
5494
|
-
if (
|
|
5495
|
-
|
|
5496
|
-
else if (
|
|
5497
|
-
const K = P(
|
|
5498
|
-
if (
|
|
5486
|
+
return T[B] = [], T;
|
|
5487
|
+
}, $ = (d) => {
|
|
5488
|
+
var B;
|
|
5489
|
+
const _ = !!((B = d.apiUrl) != null && B.trim()), C = _ ? h[d.id] : void 0;
|
|
5490
|
+
let y = d.props ? { ...d.props } : {};
|
|
5491
|
+
const T = v(d.manualScalarFields);
|
|
5492
|
+
if (ot.includes(d.componentKey))
|
|
5493
|
+
return { items: C, ...y, ...T };
|
|
5494
|
+
if (y = { ...y, ...T }, _)
|
|
5495
|
+
y = D(C, null, y);
|
|
5496
|
+
else if (d.dataMode === "manual") {
|
|
5497
|
+
const K = P(d.manualItems);
|
|
5498
|
+
if (y = D(
|
|
5499
5499
|
null,
|
|
5500
|
-
{ arr: K, variableName:
|
|
5501
|
-
|
|
5502
|
-
|
|
5503
|
-
),
|
|
5504
|
-
const
|
|
5505
|
-
|
|
5500
|
+
{ arr: K, variableName: d.variableName },
|
|
5501
|
+
y,
|
|
5502
|
+
d.variableName
|
|
5503
|
+
), d.variableName2 && d.manualItems2) {
|
|
5504
|
+
const ee = P(d.manualItems2), re = (d.variableName2 || "items2").trim() || "items2";
|
|
5505
|
+
y[re] = ee;
|
|
5506
5506
|
}
|
|
5507
5507
|
}
|
|
5508
|
-
return
|
|
5509
|
-
}, V = (
|
|
5510
|
-
const
|
|
5508
|
+
return y;
|
|
5509
|
+
}, V = (d) => {
|
|
5510
|
+
const _ = d.props ? { ...d.props } : {};
|
|
5511
5511
|
try {
|
|
5512
|
-
Object.assign(
|
|
5513
|
-
} catch (
|
|
5514
|
-
console.error("❌ Error armando scalars vacíos:",
|
|
5512
|
+
Object.assign(_, v(d.manualScalarFields));
|
|
5513
|
+
} catch (y) {
|
|
5514
|
+
console.error("❌ Error armando scalars vacíos:", d, y);
|
|
5515
5515
|
}
|
|
5516
|
-
const
|
|
5517
|
-
if (typeof
|
|
5518
|
-
const
|
|
5519
|
-
typeof y
|
|
5516
|
+
const C = (d.variableName || "items").trim() || "items";
|
|
5517
|
+
if (typeof _[C] == "undefined" && (_[C] = []), d.variableName2) {
|
|
5518
|
+
const y = (d.variableName2 || "items2").trim() || "items2";
|
|
5519
|
+
typeof _[y] == "undefined" && (_[y] = []);
|
|
5520
5520
|
}
|
|
5521
|
-
return
|
|
5522
|
-
}, Z = (
|
|
5521
|
+
return _;
|
|
5522
|
+
}, Z = (d) => {
|
|
5523
5523
|
try {
|
|
5524
|
-
return $(
|
|
5525
|
-
} catch (
|
|
5526
|
-
console.error("🔥 ERROR EN buildCompProps:",
|
|
5527
|
-
const
|
|
5528
|
-
if (
|
|
5524
|
+
return $(d);
|
|
5525
|
+
} catch (_) {
|
|
5526
|
+
console.error("🔥 ERROR EN buildCompProps:", d, _);
|
|
5527
|
+
const C = I(d);
|
|
5528
|
+
if (C && C !== d)
|
|
5529
5529
|
try {
|
|
5530
5530
|
return console.warn(
|
|
5531
|
-
`[landing] usando fallback local para sección ${
|
|
5532
|
-
), $(
|
|
5533
|
-
} catch (
|
|
5534
|
-
console.error("🔥 ERROR EN fallback buildCompProps:",
|
|
5531
|
+
`[landing] usando fallback local para sección ${d.title} (${d.componentKey})`
|
|
5532
|
+
), $(C);
|
|
5533
|
+
} catch (y) {
|
|
5534
|
+
console.error("🔥 ERROR EN fallback buildCompProps:", C, y);
|
|
5535
5535
|
}
|
|
5536
|
-
return V(
|
|
5536
|
+
return V(d);
|
|
5537
5537
|
}
|
|
5538
|
-
},
|
|
5538
|
+
}, X = (d, _, C) => /* @__PURE__ */ t("div", { className: `mx-4 p-4 rounded ${{
|
|
5539
5539
|
loading: "bg-blue-100 text-blue-800",
|
|
5540
5540
|
error: "bg-red-100 text-red-800",
|
|
5541
5541
|
component: "bg-yellow-100 text-yellow-800"
|
|
5542
|
-
}[
|
|
5543
|
-
var
|
|
5544
|
-
const
|
|
5542
|
+
}[_]}`, children: C }, d), W = (d) => {
|
|
5543
|
+
var He;
|
|
5544
|
+
const _ = d.componentKey, C = Xn[_], T = (/* @__PURE__ */ new Set([
|
|
5545
5545
|
"OraculoSeccionBanners",
|
|
5546
5546
|
"OraculoSeccionBonoBienvenida",
|
|
5547
5547
|
"OraculoSeccionCasinoEnVivo",
|
|
5548
5548
|
"OraculoSeccionClubOlimpo",
|
|
5549
|
-
...
|
|
5549
|
+
...k ? [] : [
|
|
5550
5550
|
"OraculoSeccionEventoEnVivo",
|
|
5551
5551
|
"OraculoSeccionEventoSemana",
|
|
5552
5552
|
"OraculoSeccionEventoCombinadas",
|
|
@@ -5554,66 +5554,60 @@ const it = [
|
|
|
5554
5554
|
"OraculoSeccionDestacados",
|
|
5555
5555
|
"OraculoSeccionCasino"
|
|
5556
5556
|
]
|
|
5557
|
-
])).has(
|
|
5557
|
+
])).has(d.componentKey), B = k ? 120 : 24, K = (k ? 8 : 5) * 8, ee = d.componentKey === "OraculoSeccionCasinoEnVivo", re = {
|
|
5558
5558
|
width: "100%",
|
|
5559
5559
|
boxSizing: "border-box",
|
|
5560
|
-
...
|
|
5561
|
-
...
|
|
5560
|
+
...T ? {} : { paddingLeft: B, paddingRight: B },
|
|
5561
|
+
...ee ? {
|
|
5562
5562
|
marginTop: -K,
|
|
5563
5563
|
marginBottom: -K
|
|
5564
5564
|
} : {}
|
|
5565
5565
|
};
|
|
5566
|
-
if (!
|
|
5567
|
-
return console.warn(`No hay componente registrado para "${
|
|
5568
|
-
|
|
5566
|
+
if (!C)
|
|
5567
|
+
return console.warn(`No hay componente registrado para "${_}"`), X(
|
|
5568
|
+
d.id,
|
|
5569
5569
|
"component",
|
|
5570
|
-
`Componente "${
|
|
5570
|
+
`Componente "${_}" no encontrado`
|
|
5571
5571
|
);
|
|
5572
|
-
const
|
|
5573
|
-
if (
|
|
5574
|
-
if (
|
|
5575
|
-
return
|
|
5576
|
-
|
|
5572
|
+
const oe = !!((He = d.apiUrl) != null && He.trim()), Ge = oe ? h[d.id] : void 0, wt = oe ? !!E[d.id] : !1, je = oe ? O[d.id] : "";
|
|
5573
|
+
if (oe) {
|
|
5574
|
+
if (wt && !Ge)
|
|
5575
|
+
return X(
|
|
5576
|
+
d.id,
|
|
5577
5577
|
"loading",
|
|
5578
|
-
`Cargando datos desde ${
|
|
5578
|
+
`Cargando datos desde ${d.apiUrl}...`
|
|
5579
5579
|
);
|
|
5580
|
-
if (
|
|
5581
|
-
const
|
|
5582
|
-
if (
|
|
5580
|
+
if (je && !Ge) {
|
|
5581
|
+
const we = I(d);
|
|
5582
|
+
if (we && we.dataMode === "manual")
|
|
5583
5583
|
try {
|
|
5584
|
-
const
|
|
5585
|
-
return /* @__PURE__ */ t("div", { style:
|
|
5586
|
-
} catch (
|
|
5584
|
+
const Re = Z(we);
|
|
5585
|
+
return /* @__PURE__ */ t("div", { style: re, className: "oraculo-section-wrapper", children: /* @__PURE__ */ t(C, { ...Re }) }, d.id);
|
|
5586
|
+
} catch (Re) {
|
|
5587
5587
|
console.error(
|
|
5588
5588
|
"🔥 ERROR renderizando fallback manual de sección:",
|
|
5589
|
-
|
|
5590
|
-
|
|
5589
|
+
we,
|
|
5590
|
+
Re
|
|
5591
5591
|
);
|
|
5592
5592
|
}
|
|
5593
|
-
return
|
|
5594
|
-
|
|
5593
|
+
return X(
|
|
5594
|
+
d.id,
|
|
5595
5595
|
"error",
|
|
5596
|
-
`Error cargando ${
|
|
5596
|
+
`Error cargando ${d.apiUrl}: ${je}`
|
|
5597
5597
|
);
|
|
5598
5598
|
}
|
|
5599
5599
|
}
|
|
5600
|
-
const
|
|
5601
|
-
return /* @__PURE__ */ t("div", { style:
|
|
5602
|
-
}
|
|
5603
|
-
|
|
5604
|
-
{
|
|
5605
|
-
|
|
5606
|
-
|
|
5607
|
-
|
|
5608
|
-
|
|
5609
|
-
|
|
5610
|
-
|
|
5611
|
-
children: W(u)
|
|
5612
|
-
},
|
|
5613
|
-
u.id
|
|
5614
|
-
);
|
|
5615
|
-
return l && !e ? f ? /* @__PURE__ */ t(f, {}) : /* @__PURE__ */ t("div", { children: "Cargando..." }) : !l && !e && g.length === 0 ? /* @__PURE__ */ t("div", { className: "text-xs text-gray-500", children: "Sin secciones (Firestore)" }) : s ? /* @__PURE__ */ t(Ve, { children: /* @__PURE__ */ t(Ue, { docId: a, moduleId: n, children: /* @__PURE__ */ t(le, { children: z.map((u) => Y(u)) }) }) }) : /* @__PURE__ */ t(Ve, { children: /* @__PURE__ */ t(Ue, { docId: a, moduleId: n, children: /* @__PURE__ */ t(
|
|
5616
|
-
Ct,
|
|
5600
|
+
const St = Z(d);
|
|
5601
|
+
return /* @__PURE__ */ t("div", { style: re, className: "oraculo-section-wrapper", children: /* @__PURE__ */ t(C, { ...St }) }, d.id);
|
|
5602
|
+
};
|
|
5603
|
+
return l && !e ? f ? /* @__PURE__ */ t(f, {}) : /* @__PURE__ */ t("div", { children: "Cargando..." }) : !l && !e && g.length === 0 ? /* @__PURE__ */ t("div", { className: "text-xs text-gray-500", children: "Sin secciones (Firestore)" }) : s ? /* @__PURE__ */ t(Ue, { children: /* @__PURE__ */ t(De, { docId: a, moduleId: n, children: /* @__PURE__ */ t(se, { children: R.map((d) => {
|
|
5604
|
+
try {
|
|
5605
|
+
return W(d);
|
|
5606
|
+
} catch (_) {
|
|
5607
|
+
return console.error("🔥 ERROR EN SECTION:", d, _), null;
|
|
5608
|
+
}
|
|
5609
|
+
}) }) }) }) : /* @__PURE__ */ t(Ue, { children: /* @__PURE__ */ t(De, { docId: a, moduleId: n, children: /* @__PURE__ */ t(
|
|
5610
|
+
It,
|
|
5617
5611
|
{
|
|
5618
5612
|
className: "oli-font",
|
|
5619
5613
|
maxWidth: !1,
|
|
@@ -5626,50 +5620,56 @@ const it = [
|
|
|
5626
5620
|
maxWidth: "100%",
|
|
5627
5621
|
overflowX: "hidden"
|
|
5628
5622
|
},
|
|
5629
|
-
children: /* @__PURE__ */ t(
|
|
5623
|
+
children: /* @__PURE__ */ t(Ee, { direction: "column", spacing: k ? 8 : 5, useFlexGap: !0, children: R.map((d) => {
|
|
5624
|
+
try {
|
|
5625
|
+
return W(d);
|
|
5626
|
+
} catch (_) {
|
|
5627
|
+
return console.error("🔥 ERROR EN SECTION:", d, _), null;
|
|
5628
|
+
}
|
|
5629
|
+
}) })
|
|
5630
5630
|
}
|
|
5631
5631
|
) }) });
|
|
5632
5632
|
};
|
|
5633
5633
|
export {
|
|
5634
|
-
|
|
5635
|
-
|
|
5636
|
-
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
|
|
5641
|
-
|
|
5642
|
-
|
|
5643
|
-
|
|
5644
|
-
|
|
5645
|
-
|
|
5646
|
-
|
|
5647
|
-
|
|
5648
|
-
|
|
5649
|
-
|
|
5650
|
-
|
|
5651
|
-
|
|
5652
|
-
|
|
5653
|
-
|
|
5654
|
-
|
|
5655
|
-
|
|
5656
|
-
|
|
5657
|
-
|
|
5658
|
-
|
|
5659
|
-
|
|
5660
|
-
|
|
5661
|
-
|
|
5662
|
-
|
|
5663
|
-
|
|
5664
|
-
|
|
5665
|
-
|
|
5666
|
-
|
|
5667
|
-
|
|
5668
|
-
|
|
5669
|
-
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
|
|
5634
|
+
De as DocIdProvider,
|
|
5635
|
+
Y as OraculoButton,
|
|
5636
|
+
he as OraculoCarousel,
|
|
5637
|
+
dt as OraculoCarouselDots,
|
|
5638
|
+
ya as OraculoClubOlimpoVisual,
|
|
5639
|
+
Ba as OraculoEventCombinadasCard,
|
|
5640
|
+
Fa as OraculoEventEnVivoCard,
|
|
5641
|
+
Wt as OraculoEventHeader,
|
|
5642
|
+
ut as OraculoEventLabel,
|
|
5643
|
+
mt as OraculoEventLeague,
|
|
5644
|
+
pt as OraculoEventScore,
|
|
5645
|
+
ja as OraculoEventSemanaCard,
|
|
5646
|
+
Vt as OraculoEventStatus,
|
|
5647
|
+
Ut as OraculoEventStatusBadge,
|
|
5648
|
+
Ne as OraculoEventTeamInfo,
|
|
5649
|
+
Te as OraculoGameCard,
|
|
5650
|
+
va as OraculoGameRankCard,
|
|
5651
|
+
ft as OraculoGameSlide,
|
|
5652
|
+
me as OraculoGridGroup,
|
|
5653
|
+
_a as OraculoLiveCasinoCard,
|
|
5654
|
+
Ze as OraculoLogoMediosPago,
|
|
5655
|
+
vo as OraculoPageLandingPreview,
|
|
5656
|
+
Gn as OraculoSeccionBanners,
|
|
5657
|
+
bn as OraculoSeccionBonoBienvenida,
|
|
5658
|
+
un as OraculoSeccionCasino,
|
|
5659
|
+
ln as OraculoSeccionCasinoEnVivo,
|
|
5660
|
+
vn as OraculoSeccionClubOlimpo,
|
|
5661
|
+
Ha as OraculoSeccionDestacados,
|
|
5662
|
+
Cn as OraculoSeccionEventoCombinadas,
|
|
5663
|
+
Bn as OraculoSeccionEventoEnVivo,
|
|
5664
|
+
Wn as OraculoSeccionEventoSemana,
|
|
5665
|
+
Hn as OraculoSeccionMediosPago,
|
|
5666
|
+
Ja as OraculoSeccionTopJuegos,
|
|
5667
|
+
gn as OraculoSeccionVirtuales,
|
|
5668
|
+
ho as OraculoSectionHost,
|
|
5669
|
+
ge as OraculoSectionTitle,
|
|
5670
|
+
Ue as OraculoThemeProvider,
|
|
5671
|
+
Ja as OraculoTopJuegoItem,
|
|
5672
|
+
Je as OraculoWelcomeBanner,
|
|
5673
|
+
vo as default
|
|
5674
5674
|
};
|
|
5675
5675
|
//# sourceMappingURL=index.es.js.map
|