oraculo-ui 0.1.77 → 0.1.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +3 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +859 -825
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import { Link as
|
|
1
|
+
import { jsx as e, jsxs as h, Fragment as oe } from "react/jsx-runtime";
|
|
2
|
+
import { Link as Me, Box as V, Typography as Le, Stack as de, useMediaQuery as Xe, Container as Ye } from "@mui/material";
|
|
3
3
|
import A from "@mui/material/Skeleton";
|
|
4
|
-
import
|
|
4
|
+
import We, { useRef as H, useEffect as q, forwardRef as Ze, useImperativeHandle as Qe, useCallback as ue, useState as D, useMemo as ce, useLayoutEffect as et } from "react";
|
|
5
5
|
import { Splide as tt, SplideSlide as nt } from "@splidejs/react-splide";
|
|
6
6
|
import T from "@mui/material/Box";
|
|
7
7
|
import X from "@mui/material/Typography";
|
|
@@ -21,49 +21,49 @@ function G({
|
|
|
21
21
|
disabled: s = !1,
|
|
22
22
|
variant: l = "primary",
|
|
23
23
|
size: c,
|
|
24
|
-
fullWidth:
|
|
25
|
-
fullHeight:
|
|
26
|
-
className:
|
|
24
|
+
fullWidth: f = !1,
|
|
25
|
+
fullHeight: x = !1,
|
|
26
|
+
className: v = "",
|
|
27
27
|
ariaLabel: d,
|
|
28
|
-
leftIcon:
|
|
28
|
+
leftIcon: C,
|
|
29
29
|
rightIcon: y,
|
|
30
|
-
iconOnly:
|
|
30
|
+
iconOnly: O
|
|
31
31
|
}) {
|
|
32
|
-
const
|
|
32
|
+
const w = !!t && t !== !0, S = (!!C ? 1 : 0) + (!!y ? 1 : 0) == 1, m = O != null ? O : S && !w, E = [
|
|
33
33
|
"orc-btn",
|
|
34
34
|
l === "secondary" ? "orc-btn--secondary" : l === "tertiary" ? "orc-btn--tertiary" : "orc-btn--primary",
|
|
35
35
|
c ? `orc-btn--${c}` : "",
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
].filter(Boolean).join(" "),
|
|
41
|
-
|
|
42
|
-
!
|
|
36
|
+
f ? "orc-btn--full" : "",
|
|
37
|
+
x ? "orc-btn--fullHeight" : "",
|
|
38
|
+
m ? "orc-btn--iconOnly" : "",
|
|
39
|
+
v
|
|
40
|
+
].filter(Boolean).join(" "), k = /* @__PURE__ */ h(oe, { children: [
|
|
41
|
+
C && /* @__PURE__ */ e("span", { className: "orc-btn__icon", children: C }),
|
|
42
|
+
!m && /* @__PURE__ */ e("span", { className: "orc-btn__label", children: t }),
|
|
43
43
|
y && /* @__PURE__ */ e("span", { className: "orc-btn__icon", children: y })
|
|
44
|
-
] }),
|
|
44
|
+
] }), I = s ? !0 : void 0;
|
|
45
45
|
return o ? /* @__PURE__ */ e(
|
|
46
|
-
|
|
46
|
+
Me,
|
|
47
47
|
{
|
|
48
48
|
href: o,
|
|
49
49
|
target: a,
|
|
50
50
|
rel: i,
|
|
51
51
|
"aria-label": d,
|
|
52
|
-
"aria-disabled":
|
|
53
|
-
tabIndex:
|
|
54
|
-
className:
|
|
55
|
-
onClick:
|
|
56
|
-
children:
|
|
52
|
+
"aria-disabled": I,
|
|
53
|
+
tabIndex: I ? -1 : void 0,
|
|
54
|
+
className: E,
|
|
55
|
+
onClick: I ? (N) => N.preventDefault() : n,
|
|
56
|
+
children: k
|
|
57
57
|
}
|
|
58
58
|
) : /* @__PURE__ */ e(
|
|
59
59
|
"button",
|
|
60
60
|
{
|
|
61
61
|
type: r,
|
|
62
62
|
onClick: n,
|
|
63
|
-
disabled: !!
|
|
63
|
+
disabled: !!I,
|
|
64
64
|
"aria-label": d,
|
|
65
|
-
className:
|
|
66
|
-
children:
|
|
65
|
+
className: E,
|
|
66
|
+
children: k
|
|
67
67
|
}
|
|
68
68
|
);
|
|
69
69
|
}
|
|
@@ -78,7 +78,7 @@ function ee({
|
|
|
78
78
|
o ? `orc-section-title--${o}` : "",
|
|
79
79
|
a
|
|
80
80
|
].filter(Boolean).join(" ");
|
|
81
|
-
return /* @__PURE__ */
|
|
81
|
+
return /* @__PURE__ */ h("div", { className: r, children: [
|
|
82
82
|
n && /* @__PURE__ */ e(
|
|
83
83
|
"img",
|
|
84
84
|
{
|
|
@@ -90,7 +90,7 @@ function ee({
|
|
|
90
90
|
/* @__PURE__ */ e("h2", { className: "orc-section-title__title", children: t })
|
|
91
91
|
] });
|
|
92
92
|
}
|
|
93
|
-
const
|
|
93
|
+
const Ae = ({
|
|
94
94
|
total: t,
|
|
95
95
|
active: n,
|
|
96
96
|
onSelect: o,
|
|
@@ -163,16 +163,16 @@ function Ce({ src: t, alt: n }) {
|
|
|
163
163
|
}
|
|
164
164
|
);
|
|
165
165
|
}
|
|
166
|
-
const it = "oraculo__OraculoEventTitle-module__contenedor___rg1vw", st = "oraculo__OraculoEventTitle-module__flexGroup___jMLFO", ct = "oraculo__OraculoEventTitle-module__subtitle___TmHna",
|
|
166
|
+
const it = "oraculo__OraculoEventTitle-module__contenedor___rg1vw", st = "oraculo__OraculoEventTitle-module__flexGroup___jMLFO", ct = "oraculo__OraculoEventTitle-module__subtitle___TmHna", be = {
|
|
167
167
|
contenedor: it,
|
|
168
168
|
flexGroup: st,
|
|
169
169
|
subtitle: ct
|
|
170
170
|
};
|
|
171
171
|
function lt({ title: t, subtitle: n }) {
|
|
172
|
-
return /* @__PURE__ */
|
|
172
|
+
return /* @__PURE__ */ h(
|
|
173
173
|
"div",
|
|
174
174
|
{
|
|
175
|
-
className:
|
|
175
|
+
className: be.contenedor,
|
|
176
176
|
children: [
|
|
177
177
|
/* @__PURE__ */ e(
|
|
178
178
|
"span",
|
|
@@ -185,17 +185,17 @@ function lt({ title: t, subtitle: n }) {
|
|
|
185
185
|
children: t
|
|
186
186
|
}
|
|
187
187
|
),
|
|
188
|
-
n && /* @__PURE__ */
|
|
188
|
+
n && /* @__PURE__ */ h(
|
|
189
189
|
"div",
|
|
190
190
|
{
|
|
191
|
-
className:
|
|
191
|
+
className: be.flexGroup,
|
|
192
192
|
children: [
|
|
193
|
-
/* @__PURE__ */
|
|
193
|
+
/* @__PURE__ */ h("svg", { width: "4", height: "4", viewBox: "0 0 5 5", xmlns: "http://www.w3.org/2000/svg", style: { flexShrink: 0 }, children: [
|
|
194
194
|
" ",
|
|
195
195
|
/* @__PURE__ */ e("circle", { cx: "2.5", cy: "2.5", r: "2.5", fill: "white" }),
|
|
196
196
|
" "
|
|
197
197
|
] }),
|
|
198
|
-
/* @__PURE__ */ e("span", { className:
|
|
198
|
+
/* @__PURE__ */ e("span", { className: be.subtitle, children: n }),
|
|
199
199
|
/* @__PURE__ */ e("div", {})
|
|
200
200
|
]
|
|
201
201
|
}
|
|
@@ -226,13 +226,13 @@ function dt({ text: t, color: n = "#ff3b3b", textColor: o = "#fff" }) {
|
|
|
226
226
|
);
|
|
227
227
|
}
|
|
228
228
|
function ut({ live: t, time: n }) {
|
|
229
|
-
return /* @__PURE__ */
|
|
229
|
+
return /* @__PURE__ */ h("div", { className: "oli-font", style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
|
|
230
230
|
t && /* @__PURE__ */ e(dt, { text: "En vivo" }),
|
|
231
231
|
n && /* @__PURE__ */ e("span", { style: { fontSize: "14px", fontWeight: 400, lineHeight: "18px", paddingTop: "4px" }, children: n })
|
|
232
232
|
] });
|
|
233
233
|
}
|
|
234
234
|
function pt({ title: t, subtitle: n, live: o = !1, time: a = "" }) {
|
|
235
|
-
return /* @__PURE__ */
|
|
235
|
+
return /* @__PURE__ */ h(
|
|
236
236
|
"div",
|
|
237
237
|
{
|
|
238
238
|
style: {
|
|
@@ -251,13 +251,13 @@ function pt({ title: t, subtitle: n, live: o = !1, time: a = "" }) {
|
|
|
251
251
|
const mt = "oraculo__OraculoEventLabel-module__label___c64Xw", ht = {
|
|
252
252
|
label: mt
|
|
253
253
|
};
|
|
254
|
-
function
|
|
254
|
+
function ze({ text: t }) {
|
|
255
255
|
return /* @__PURE__ */ e("span", { className: ht.label, children: t });
|
|
256
256
|
}
|
|
257
257
|
const ft = "oraculo__OraculoEventLeague-module__container___rdk4F", gt = {
|
|
258
258
|
container: ft
|
|
259
259
|
};
|
|
260
|
-
function
|
|
260
|
+
function je({ title: t }) {
|
|
261
261
|
return /* @__PURE__ */ e("div", { className: gt.container, children: t.toUpperCase() });
|
|
262
262
|
}
|
|
263
263
|
const xt = "oraculo__OraculoEventScore-module__scoreWrapper___fWwEr", bt = "oraculo__OraculoEventScore-module__name___r4uL6", _t = "oraculo__OraculoEventScore-module__score___Xl03M", vt = "oraculo__OraculoEventScore-module__normal___cCNFz", wt = "oraculo__OraculoEventScore-module__small___fVt8E", ie = {
|
|
@@ -267,8 +267,8 @@ const xt = "oraculo__OraculoEventScore-module__scoreWrapper___fWwEr", bt = "orac
|
|
|
267
267
|
normal: vt,
|
|
268
268
|
small: wt
|
|
269
269
|
};
|
|
270
|
-
function
|
|
271
|
-
return /* @__PURE__ */
|
|
270
|
+
function Ue({ text: t, name: n, size: o = "normal" }) {
|
|
271
|
+
return /* @__PURE__ */ h(
|
|
272
272
|
"div",
|
|
273
273
|
{
|
|
274
274
|
className: `${ie.scoreWrapper} ${ie[o]}`,
|
|
@@ -292,10 +292,10 @@ const yt = "oraculo__OraculoEventTeamInfo-module__team___UfpUs", St = "oraculo__
|
|
|
292
292
|
shadow: Nt,
|
|
293
293
|
highlight: Tt
|
|
294
294
|
};
|
|
295
|
-
function
|
|
295
|
+
function Ft({ jersey: t, className: n }) {
|
|
296
296
|
const o = `#${t.base}`, a = t.sleeve ? `#${t.sleeve}` : o, i = t.stripes ? `#${t.stripes}` : null, r = t.sleevelong ? `#${t.sleevelong}` : null;
|
|
297
|
-
return /* @__PURE__ */
|
|
298
|
-
/* @__PURE__ */ e("div", { className: le.svgWrapper, children: /* @__PURE__ */
|
|
297
|
+
return /* @__PURE__ */ h("div", { className: `${le.polo} ${n != null ? n : ""}`, children: [
|
|
298
|
+
/* @__PURE__ */ e("div", { className: le.svgWrapper, children: /* @__PURE__ */ h("svg", { viewBox: "0 0 656 656", "aria-hidden": !0, children: [
|
|
299
299
|
/* @__PURE__ */ e(
|
|
300
300
|
"path",
|
|
301
301
|
{
|
|
@@ -303,7 +303,7 @@ function Mt({ jersey: t, className: n }) {
|
|
|
303
303
|
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"
|
|
304
304
|
}
|
|
305
305
|
),
|
|
306
|
-
i && /* @__PURE__ */
|
|
306
|
+
i && /* @__PURE__ */ h(oe, { children: [
|
|
307
307
|
/* @__PURE__ */ e("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" }),
|
|
308
308
|
/* @__PURE__ */ e("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" })
|
|
309
309
|
] }),
|
|
@@ -351,10 +351,10 @@ function Mt({ jersey: t, className: n }) {
|
|
|
351
351
|
)
|
|
352
352
|
] });
|
|
353
353
|
}
|
|
354
|
-
function
|
|
355
|
-
return /* @__PURE__ */
|
|
354
|
+
function he({ name: t, jersey: n, size: o = "regular" }) {
|
|
355
|
+
return /* @__PURE__ */ h("div", { className: `oli-font ${se.team} ${se[o]}`, children: [
|
|
356
356
|
n != null && n.base ? /* @__PURE__ */ e(
|
|
357
|
-
|
|
357
|
+
Ft,
|
|
358
358
|
{
|
|
359
359
|
jersey: n,
|
|
360
360
|
className: `${se.logo}`
|
|
@@ -363,21 +363,21 @@ function me({ name: t, jersey: n, size: o = "regular" }) {
|
|
|
363
363
|
/* @__PURE__ */ e("span", { className: se.name, children: t })
|
|
364
364
|
] });
|
|
365
365
|
}
|
|
366
|
-
function
|
|
366
|
+
function Rt(t, n, { enabled: o = !0 } = {}) {
|
|
367
367
|
const a = H(null);
|
|
368
|
-
|
|
368
|
+
q(() => {
|
|
369
369
|
if (!o) return;
|
|
370
370
|
const i = t.current;
|
|
371
371
|
if (!i) return;
|
|
372
372
|
const r = (s) => {
|
|
373
373
|
const l = n.current;
|
|
374
374
|
if (!l || !l.go) return;
|
|
375
|
-
const { deltaX: c, deltaY:
|
|
376
|
-
if (Math.abs(c) <= Math.abs(
|
|
375
|
+
const { deltaX: c, deltaY: f } = s;
|
|
376
|
+
if (Math.abs(c) <= Math.abs(f) || Math.abs(c) < 2) return;
|
|
377
377
|
s.preventDefault();
|
|
378
|
-
const
|
|
378
|
+
const x = c > 0 ? ">" : "<";
|
|
379
379
|
a.current === null && (a.current = requestAnimationFrame(() => {
|
|
380
|
-
a.current = null, l.go(
|
|
380
|
+
a.current = null, l.go(x);
|
|
381
381
|
}));
|
|
382
382
|
};
|
|
383
383
|
return i.addEventListener("wheel", r, { passive: !1 }), () => {
|
|
@@ -385,7 +385,7 @@ function Ft(t, n, { enabled: o = !0 } = {}) {
|
|
|
385
385
|
};
|
|
386
386
|
}, [o, t, n]);
|
|
387
387
|
}
|
|
388
|
-
const
|
|
388
|
+
const Mt = tt, Lt = nt, te = Ze(
|
|
389
389
|
({
|
|
390
390
|
items: t = [],
|
|
391
391
|
renderItem: n,
|
|
@@ -396,45 +396,80 @@ const Rt = tt, Lt = nt, te = Ze(
|
|
|
396
396
|
className: s = "",
|
|
397
397
|
onMove: l,
|
|
398
398
|
useIndexAsKey: c = !1,
|
|
399
|
-
enableHorizontalWheel:
|
|
400
|
-
},
|
|
401
|
-
const
|
|
402
|
-
|
|
403
|
-
enabled:
|
|
404
|
-
}), Qe(
|
|
399
|
+
enableHorizontalWheel: f = !0
|
|
400
|
+
}, x) => {
|
|
401
|
+
const v = H(null), d = H(null), C = H(t.length);
|
|
402
|
+
Rt(d, v, {
|
|
403
|
+
enabled: f
|
|
404
|
+
}), Qe(x, () => ({
|
|
405
405
|
next: () => {
|
|
406
|
-
var
|
|
407
|
-
return (
|
|
406
|
+
var m;
|
|
407
|
+
return (m = v.current) == null ? void 0 : m.go(">");
|
|
408
408
|
},
|
|
409
409
|
prev: () => {
|
|
410
|
-
var
|
|
411
|
-
return (
|
|
410
|
+
var m;
|
|
411
|
+
return (m = v.current) == null ? void 0 : m.go("<");
|
|
412
412
|
},
|
|
413
|
-
go: (
|
|
414
|
-
var
|
|
415
|
-
return (
|
|
413
|
+
go: (m) => {
|
|
414
|
+
var E;
|
|
415
|
+
return (E = v.current) == null ? void 0 : E.go(m);
|
|
416
416
|
}
|
|
417
417
|
}));
|
|
418
|
-
const
|
|
419
|
-
var
|
|
420
|
-
const
|
|
421
|
-
let
|
|
422
|
-
for (let
|
|
423
|
-
const
|
|
424
|
-
if (!
|
|
425
|
-
|
|
426
|
-
F = B;
|
|
418
|
+
const y = (m) => {
|
|
419
|
+
var u;
|
|
420
|
+
const E = m.Components.Slides, k = m.Components.Controller, I = m.root.querySelector(".splide__track"), N = (u = I == null ? void 0 : I.clientWidth) != null ? u : 0, F = k.getIndex(), P = E.getLength();
|
|
421
|
+
let L = 0, p = F;
|
|
422
|
+
for (let _ = F; _ < P; _++) {
|
|
423
|
+
const g = E.getAt(_);
|
|
424
|
+
if (!g || (L += g.slide.offsetWidth, L > N)) break;
|
|
425
|
+
p = _;
|
|
427
426
|
}
|
|
428
|
-
return { visibleStart:
|
|
429
|
-
},
|
|
430
|
-
const
|
|
431
|
-
|
|
432
|
-
},
|
|
433
|
-
(
|
|
434
|
-
|
|
427
|
+
return { visibleStart: F, visibleEnd: p };
|
|
428
|
+
}, O = (m) => {
|
|
429
|
+
const E = m.root.querySelector(".splide__track"), k = m.root.querySelector(".splide__list");
|
|
430
|
+
return !E || !k ? !1 : k.scrollWidth > E.clientWidth + 1;
|
|
431
|
+
}, w = ue((m) => {
|
|
432
|
+
const k = m.Components.Slides.getLength();
|
|
433
|
+
if (!O(m)) {
|
|
434
|
+
l == null || l({
|
|
435
|
+
index: 0,
|
|
436
|
+
isStart: !0,
|
|
437
|
+
isEnd: !0,
|
|
438
|
+
total: k,
|
|
439
|
+
visibleStart: 0,
|
|
440
|
+
visibleEnd: k - 1
|
|
441
|
+
});
|
|
442
|
+
return;
|
|
443
|
+
}
|
|
444
|
+
const { visibleStart: I, visibleEnd: N } = y(m), F = I === 0, P = N === k - 1, L = m.Components.Controller.getIndex();
|
|
445
|
+
l == null || l({
|
|
446
|
+
index: L,
|
|
447
|
+
isStart: F,
|
|
448
|
+
isEnd: P,
|
|
449
|
+
total: k,
|
|
450
|
+
visibleStart: I,
|
|
451
|
+
visibleEnd: N
|
|
452
|
+
});
|
|
453
|
+
}, [l]);
|
|
454
|
+
We.useEffect(() => {
|
|
455
|
+
var k;
|
|
456
|
+
const m = (k = v.current) == null ? void 0 : k.splide;
|
|
457
|
+
if (!m) return;
|
|
458
|
+
const E = C.current !== t.length;
|
|
459
|
+
C.current = t.length, E && requestAnimationFrame(() => {
|
|
460
|
+
m.refresh(), w(m);
|
|
461
|
+
});
|
|
462
|
+
}, [t.length, w]);
|
|
463
|
+
const M = ue(() => {
|
|
464
|
+
var E;
|
|
465
|
+
const m = (E = v.current) == null ? void 0 : E.splide;
|
|
466
|
+
m && (m.go(0, !1), w(m));
|
|
467
|
+
}, [w]), B = ue(
|
|
468
|
+
(m) => {
|
|
469
|
+
w(m);
|
|
435
470
|
},
|
|
436
|
-
[
|
|
437
|
-
),
|
|
471
|
+
[w]
|
|
472
|
+
), S = {
|
|
438
473
|
type: "slide",
|
|
439
474
|
trimSpace: !1,
|
|
440
475
|
drag: !0,
|
|
@@ -447,23 +482,24 @@ const Rt = tt, Lt = nt, te = Ze(
|
|
|
447
482
|
gap: a,
|
|
448
483
|
breakpoints: i,
|
|
449
484
|
...r,
|
|
450
|
-
...
|
|
485
|
+
...f ? { wheel: !1 } : {}
|
|
451
486
|
};
|
|
452
487
|
return /* @__PURE__ */ e("div", { ref: d, className: s, style: { width: "100%" }, children: /* @__PURE__ */ e(
|
|
453
|
-
|
|
488
|
+
Mt,
|
|
454
489
|
{
|
|
455
|
-
ref:
|
|
456
|
-
options:
|
|
457
|
-
onMove:
|
|
458
|
-
onMounted:
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
490
|
+
ref: v,
|
|
491
|
+
options: S,
|
|
492
|
+
onMove: w,
|
|
493
|
+
onMounted: B,
|
|
494
|
+
onResize: M,
|
|
495
|
+
children: t.map((m, E) => {
|
|
496
|
+
var k;
|
|
497
|
+
return /* @__PURE__ */ e(Lt, { children: n(m, E) }, c ? E : (k = m.id) != null ? k : E);
|
|
462
498
|
})
|
|
463
499
|
}
|
|
464
500
|
) });
|
|
465
501
|
}
|
|
466
|
-
),
|
|
502
|
+
), pe = ({
|
|
467
503
|
imageUrl: t,
|
|
468
504
|
onClick: n,
|
|
469
505
|
size: o = "sm",
|
|
@@ -472,7 +508,7 @@ const Rt = tt, Lt = nt, te = Ze(
|
|
|
472
508
|
const i = o === "lg" ? { w: 280, h: 352 } : { w: 152, h: 168 }, r = (l) => {
|
|
473
509
|
l.stopPropagation(), n == null || n();
|
|
474
510
|
}, s = a ? { width: "100%", height: "100%" } : { width: `${i.w}px`, height: `${i.h}px` };
|
|
475
|
-
return /* @__PURE__ */
|
|
511
|
+
return /* @__PURE__ */ h(
|
|
476
512
|
T,
|
|
477
513
|
{
|
|
478
514
|
onClick: n,
|
|
@@ -550,7 +586,7 @@ const Rt = tt, Lt = nt, te = Ze(
|
|
|
550
586
|
}
|
|
551
587
|
);
|
|
552
588
|
};
|
|
553
|
-
function
|
|
589
|
+
function Wt({
|
|
554
590
|
imageUrl: t,
|
|
555
591
|
orden: n = 1,
|
|
556
592
|
onClick: o,
|
|
@@ -560,18 +596,18 @@ function Bt({
|
|
|
560
596
|
md: { w: 186, h: 264, r: 22.6, font: 64 }
|
|
561
597
|
}
|
|
562
598
|
}) {
|
|
563
|
-
var
|
|
564
|
-
const r = (
|
|
565
|
-
var
|
|
599
|
+
var v, d, C, y;
|
|
600
|
+
const r = (O, w) => {
|
|
601
|
+
var M, B, S, m;
|
|
566
602
|
return {
|
|
567
|
-
xs: (
|
|
568
|
-
md: (
|
|
603
|
+
xs: (B = (M = i.xs) == null ? void 0 : M[O]) != null ? B : w,
|
|
604
|
+
md: (m = (S = i.md) == null ? void 0 : S[O]) != null ? m : w
|
|
569
605
|
};
|
|
570
|
-
}, s = r("w", 186), l = r("h", 264), c = r("r", 22.6),
|
|
571
|
-
xs: Math.round(((d = (
|
|
572
|
-
md: Math.round(((y = (
|
|
606
|
+
}, s = r("w", 186), l = r("h", 264), c = r("r", 22.6), f = r("font", 64), x = {
|
|
607
|
+
xs: Math.round(((d = (v = i.xs) == null ? void 0 : v.font) != null ? d : 64) * 0.28),
|
|
608
|
+
md: Math.round(((y = (C = i.md) == null ? void 0 : C.font) != null ? y : 64) * 0.28)
|
|
573
609
|
};
|
|
574
|
-
return /* @__PURE__ */
|
|
610
|
+
return /* @__PURE__ */ h(
|
|
575
611
|
T,
|
|
576
612
|
{
|
|
577
613
|
sx: {
|
|
@@ -585,7 +621,7 @@ function Bt({
|
|
|
585
621
|
borderRadius: { xs: `${c.xs}px`, md: `${c.md}px` },
|
|
586
622
|
boxSizing: "border-box",
|
|
587
623
|
overflow: "visible",
|
|
588
|
-
pb: { xs: `${
|
|
624
|
+
pb: { xs: `${x.xs}px`, md: `${x.md}px` },
|
|
589
625
|
"&::before": {
|
|
590
626
|
content: '""',
|
|
591
627
|
position: "absolute",
|
|
@@ -622,7 +658,7 @@ function Bt({
|
|
|
622
658
|
}
|
|
623
659
|
}
|
|
624
660
|
) : /* @__PURE__ */ e(
|
|
625
|
-
|
|
661
|
+
pe,
|
|
626
662
|
{
|
|
627
663
|
imageUrl: t,
|
|
628
664
|
onClick: o,
|
|
@@ -640,13 +676,13 @@ function Bt({
|
|
|
640
676
|
position: "absolute",
|
|
641
677
|
left: 8,
|
|
642
678
|
bottom: {
|
|
643
|
-
xs: `-${
|
|
644
|
-
md: `-${
|
|
679
|
+
xs: `-${x.xs}px`,
|
|
680
|
+
md: `-${x.md}px`
|
|
645
681
|
},
|
|
646
682
|
fontFamily: "secondary",
|
|
647
683
|
fontSize: {
|
|
648
|
-
xs: `${
|
|
649
|
-
md: `${
|
|
684
|
+
xs: `${f.xs}px`,
|
|
685
|
+
md: `${f.md}px`
|
|
650
686
|
},
|
|
651
687
|
lineHeight: 1,
|
|
652
688
|
color: "#3CC666",
|
|
@@ -661,7 +697,7 @@ function Bt({
|
|
|
661
697
|
}
|
|
662
698
|
);
|
|
663
699
|
}
|
|
664
|
-
const
|
|
700
|
+
const Bt = ({
|
|
665
701
|
logo: t,
|
|
666
702
|
provider: n,
|
|
667
703
|
providerName: o,
|
|
@@ -669,7 +705,7 @@ const Pt = ({
|
|
|
669
705
|
onClick: i
|
|
670
706
|
}) => {
|
|
671
707
|
var r;
|
|
672
|
-
return /* @__PURE__ */
|
|
708
|
+
return /* @__PURE__ */ h(
|
|
673
709
|
T,
|
|
674
710
|
{
|
|
675
711
|
onClick: i,
|
|
@@ -740,7 +776,7 @@ const Pt = ({
|
|
|
740
776
|
]
|
|
741
777
|
}
|
|
742
778
|
);
|
|
743
|
-
},
|
|
779
|
+
}, _e = 12, ve = ({ r: t = 16 }) => /* @__PURE__ */ e(T, { sx: { width: "100%", height: "100%", borderRadius: t, overflow: "hidden" }, children: /* @__PURE__ */ e(
|
|
744
780
|
A,
|
|
745
781
|
{
|
|
746
782
|
variant: "rectangular",
|
|
@@ -755,7 +791,7 @@ const Pt = ({
|
|
|
755
791
|
}
|
|
756
792
|
}
|
|
757
793
|
}
|
|
758
|
-
) }),
|
|
794
|
+
) }), De = ({
|
|
759
795
|
items: t,
|
|
760
796
|
layout: n = "grid",
|
|
761
797
|
onClick: o,
|
|
@@ -764,10 +800,8 @@ const Pt = ({
|
|
|
764
800
|
}) => {
|
|
765
801
|
var r, s;
|
|
766
802
|
if (n === "mosaic") {
|
|
767
|
-
const l = t[0];
|
|
768
|
-
|
|
769
|
-
const c = t.slice(1, 5);
|
|
770
|
-
return /* @__PURE__ */ m(
|
|
803
|
+
const l = t[0], c = t.slice(1, 5);
|
|
804
|
+
return /* @__PURE__ */ h(
|
|
771
805
|
T,
|
|
772
806
|
{
|
|
773
807
|
sx: {
|
|
@@ -785,8 +819,8 @@ const Pt = ({
|
|
|
785
819
|
xs: "104px",
|
|
786
820
|
md: "152px"
|
|
787
821
|
},
|
|
788
|
-
columnGap: `${
|
|
789
|
-
rowGap: `${
|
|
822
|
+
columnGap: `${_e}px`,
|
|
823
|
+
rowGap: `${_e}px`,
|
|
790
824
|
alignItems: "stretch",
|
|
791
825
|
justifyItems: "stretch"
|
|
792
826
|
},
|
|
@@ -801,8 +835,8 @@ const Pt = ({
|
|
|
801
835
|
overflow: "hidden",
|
|
802
836
|
borderRadius: 2
|
|
803
837
|
},
|
|
804
|
-
children: a ? /* @__PURE__ */ e(
|
|
805
|
-
|
|
838
|
+
children: a ? /* @__PURE__ */ e(ve, {}) : l && /* @__PURE__ */ e(
|
|
839
|
+
pe,
|
|
806
840
|
{
|
|
807
841
|
imageUrl: `https://olimpo.bet${(s = (r = l.background) != null ? r : l.imageUrl) != null ? s : ""}`,
|
|
808
842
|
size: "lg",
|
|
@@ -812,8 +846,8 @@ const Pt = ({
|
|
|
812
846
|
)
|
|
813
847
|
}
|
|
814
848
|
),
|
|
815
|
-
(a ? Array.from({ length: 4 }) : c).map((
|
|
816
|
-
var
|
|
849
|
+
(a ? Array.from({ length: 4 }) : c).map((f, x) => {
|
|
850
|
+
var v, d;
|
|
817
851
|
return /* @__PURE__ */ e(
|
|
818
852
|
T,
|
|
819
853
|
{
|
|
@@ -823,17 +857,17 @@ const Pt = ({
|
|
|
823
857
|
overflow: "hidden",
|
|
824
858
|
borderRadius: 2
|
|
825
859
|
},
|
|
826
|
-
children: a ? /* @__PURE__ */ e(
|
|
827
|
-
|
|
860
|
+
children: a ? /* @__PURE__ */ e(ve, {}) : /* @__PURE__ */ e(
|
|
861
|
+
pe,
|
|
828
862
|
{
|
|
829
|
-
imageUrl: `https://olimpo.bet${(d = (
|
|
863
|
+
imageUrl: `https://olimpo.bet${(d = (v = f.background) != null ? v : f.imageUrl) != null ? d : ""}`,
|
|
830
864
|
size: "sm",
|
|
831
865
|
fillParent: !0,
|
|
832
|
-
onClick: () => o == null ? void 0 : o(
|
|
866
|
+
onClick: () => o == null ? void 0 : o(f, x + 1)
|
|
833
867
|
}
|
|
834
868
|
)
|
|
835
869
|
},
|
|
836
|
-
a ? `sk-${
|
|
870
|
+
a ? `sk-${x}` : f.id
|
|
837
871
|
);
|
|
838
872
|
})
|
|
839
873
|
]
|
|
@@ -853,26 +887,26 @@ const Pt = ({
|
|
|
853
887
|
xs: "repeat(2, 112px)",
|
|
854
888
|
md: "repeat(2, 168px)"
|
|
855
889
|
},
|
|
856
|
-
gap: `${
|
|
890
|
+
gap: `${_e}px`,
|
|
857
891
|
gridAutoFlow: "column"
|
|
858
892
|
},
|
|
859
893
|
children: (a ? Array.from({ length: i }) : t).map((l, c) => {
|
|
860
|
-
var
|
|
894
|
+
var f, x, v;
|
|
861
895
|
return /* @__PURE__ */ e(
|
|
862
896
|
T,
|
|
863
897
|
{
|
|
864
898
|
sx: { overflow: "hidden", borderRadius: 2 },
|
|
865
|
-
children: a ? /* @__PURE__ */ e(
|
|
866
|
-
|
|
899
|
+
children: a ? /* @__PURE__ */ e(ve, {}) : /* @__PURE__ */ e(
|
|
900
|
+
pe,
|
|
867
901
|
{
|
|
868
|
-
imageUrl: `https://olimpo.bet${(
|
|
902
|
+
imageUrl: `https://olimpo.bet${(x = (f = l.background) != null ? f : l.imageUrl) != null ? x : ""}`,
|
|
869
903
|
size: "sm",
|
|
870
904
|
fillParent: !0,
|
|
871
905
|
onClick: () => o == null ? void 0 : o(l, c)
|
|
872
906
|
}
|
|
873
907
|
)
|
|
874
908
|
},
|
|
875
|
-
a ? `sk-${c}` : (
|
|
909
|
+
a ? `sk-${c}` : (v = l.id) != null ? v : c
|
|
876
910
|
);
|
|
877
911
|
})
|
|
878
912
|
}
|
|
@@ -888,8 +922,8 @@ const Pt = ({
|
|
|
888
922
|
className: l = "",
|
|
889
923
|
variant: c = "small"
|
|
890
924
|
}) => {
|
|
891
|
-
const
|
|
892
|
-
return /* @__PURE__ */
|
|
925
|
+
const f = n ? n.slice(0, 2) : "", x = n ? n.slice(2) : "", v = c === "large";
|
|
926
|
+
return /* @__PURE__ */ h(
|
|
893
927
|
T,
|
|
894
928
|
{
|
|
895
929
|
className: l,
|
|
@@ -898,7 +932,7 @@ const Pt = ({
|
|
|
898
932
|
width: "100%",
|
|
899
933
|
maxWidth: {
|
|
900
934
|
xs: 328,
|
|
901
|
-
md:
|
|
935
|
+
md: v ? 618 : 456
|
|
902
936
|
},
|
|
903
937
|
mx: "auto"
|
|
904
938
|
},
|
|
@@ -911,7 +945,7 @@ const Pt = ({
|
|
|
911
945
|
width: "100%",
|
|
912
946
|
aspectRatio: {
|
|
913
947
|
xs: "328 / 188",
|
|
914
|
-
md:
|
|
948
|
+
md: v ? "618 / 346" : "456 / 272"
|
|
915
949
|
},
|
|
916
950
|
borderRadius: "14px",
|
|
917
951
|
overflow: "hidden"
|
|
@@ -950,7 +984,7 @@ const Pt = ({
|
|
|
950
984
|
pl: "14%",
|
|
951
985
|
pr: { xs: "14%", lg: "15%" }
|
|
952
986
|
},
|
|
953
|
-
children: /* @__PURE__ */
|
|
987
|
+
children: /* @__PURE__ */ h(
|
|
954
988
|
T,
|
|
955
989
|
{
|
|
956
990
|
sx: {
|
|
@@ -971,7 +1005,7 @@ const Pt = ({
|
|
|
971
1005
|
children: t
|
|
972
1006
|
}
|
|
973
1007
|
),
|
|
974
|
-
n && /* @__PURE__ */
|
|
1008
|
+
n && /* @__PURE__ */ h(
|
|
975
1009
|
T,
|
|
976
1010
|
{
|
|
977
1011
|
component: "p",
|
|
@@ -994,7 +1028,7 @@ const Pt = ({
|
|
|
994
1028
|
{
|
|
995
1029
|
component: "span",
|
|
996
1030
|
sx: { fontSize: { xs: 35, md: 48 }, mr: 0.5 },
|
|
997
|
-
children:
|
|
1031
|
+
children: f
|
|
998
1032
|
}
|
|
999
1033
|
),
|
|
1000
1034
|
/* @__PURE__ */ e(
|
|
@@ -1002,7 +1036,7 @@ const Pt = ({
|
|
|
1002
1036
|
{
|
|
1003
1037
|
component: "span",
|
|
1004
1038
|
sx: { fontSize: { xs: 52, md: 77 } },
|
|
1005
|
-
children:
|
|
1039
|
+
children: x
|
|
1006
1040
|
}
|
|
1007
1041
|
)
|
|
1008
1042
|
]
|
|
@@ -1029,7 +1063,7 @@ const Pt = ({
|
|
|
1029
1063
|
]
|
|
1030
1064
|
}
|
|
1031
1065
|
);
|
|
1032
|
-
},
|
|
1066
|
+
}, Pt = ({
|
|
1033
1067
|
text: t,
|
|
1034
1068
|
buttonLabel: n = "Conoce más",
|
|
1035
1069
|
onClick: o,
|
|
@@ -1037,7 +1071,7 @@ const Pt = ({
|
|
|
1037
1071
|
imgSrcMobile: i,
|
|
1038
1072
|
imgSrcDesktopBg: r,
|
|
1039
1073
|
imgSrcDesktopLogo: s
|
|
1040
|
-
}) => /* @__PURE__ */
|
|
1074
|
+
}) => /* @__PURE__ */ h(oe, { children: [
|
|
1041
1075
|
/* @__PURE__ */ e("div", { className: "orc-co-bgMobile", children: /* @__PURE__ */ e(
|
|
1042
1076
|
"img",
|
|
1043
1077
|
{
|
|
@@ -1046,7 +1080,7 @@ const Pt = ({
|
|
|
1046
1080
|
className: "orc-co-bgMobileImg"
|
|
1047
1081
|
}
|
|
1048
1082
|
) }),
|
|
1049
|
-
/* @__PURE__ */
|
|
1083
|
+
/* @__PURE__ */ h("div", { className: "orc-co-bgDesktop", children: [
|
|
1050
1084
|
r && /* @__PURE__ */ e("div", { className: "orc-co-fillHost", children: /* @__PURE__ */ e(
|
|
1051
1085
|
"img",
|
|
1052
1086
|
{
|
|
@@ -1055,7 +1089,7 @@ const Pt = ({
|
|
|
1055
1089
|
className: "orc-co-bgDesktopImg"
|
|
1056
1090
|
}
|
|
1057
1091
|
) }),
|
|
1058
|
-
/* @__PURE__ */
|
|
1092
|
+
/* @__PURE__ */ h("div", { className: "orc-co-desktopContent", children: [
|
|
1059
1093
|
s && /* @__PURE__ */ e(
|
|
1060
1094
|
"img",
|
|
1061
1095
|
{
|
|
@@ -1068,7 +1102,7 @@ const Pt = ({
|
|
|
1068
1102
|
/* @__PURE__ */ e(G, { onClick: o, variant: "primary", size: "md", children: n })
|
|
1069
1103
|
] })
|
|
1070
1104
|
] }),
|
|
1071
|
-
/* @__PURE__ */
|
|
1105
|
+
/* @__PURE__ */ h("div", { className: "orc-co-bottom", children: [
|
|
1072
1106
|
/* @__PURE__ */ e("p", { className: "orc-co-caption", children: t }),
|
|
1073
1107
|
/* @__PURE__ */ e(G, { onClick: o, variant: "primary", size: "md", children: n })
|
|
1074
1108
|
] })
|
|
@@ -1086,16 +1120,16 @@ function Ee(t) {
|
|
|
1086
1120
|
const n = Array.isArray(t) ? t : [t];
|
|
1087
1121
|
sessionStorage.setItem("landingOutcomes", JSON.stringify(n)), window.location.href = "/deportes#in-play";
|
|
1088
1122
|
}
|
|
1089
|
-
function
|
|
1123
|
+
function qt() {
|
|
1090
1124
|
window.location.href = "/deportes#in-play";
|
|
1091
1125
|
}
|
|
1092
|
-
function
|
|
1126
|
+
function Kt() {
|
|
1093
1127
|
window.location.href = "/deportes#sports-hub/football";
|
|
1094
1128
|
}
|
|
1095
|
-
function
|
|
1129
|
+
function Jt() {
|
|
1096
1130
|
window.location.href = "/deportes#specials";
|
|
1097
1131
|
}
|
|
1098
|
-
async function
|
|
1132
|
+
async function Ge(t) {
|
|
1099
1133
|
return await (await fetch("https://api.mktolimpo.com/api/jerseys/search", {
|
|
1100
1134
|
method: "POST",
|
|
1101
1135
|
headers: {
|
|
@@ -1106,9 +1140,9 @@ async function De(t) {
|
|
|
1106
1140
|
})
|
|
1107
1141
|
})).json();
|
|
1108
1142
|
}
|
|
1109
|
-
function
|
|
1143
|
+
function He(t, n = 250) {
|
|
1110
1144
|
const [o, a] = D(t);
|
|
1111
|
-
return
|
|
1145
|
+
return q(() => {
|
|
1112
1146
|
const i = setTimeout(() => a(t), n);
|
|
1113
1147
|
return () => clearTimeout(i);
|
|
1114
1148
|
}, [t, n]), o;
|
|
@@ -1116,27 +1150,27 @@ function Ge(t, n = 250) {
|
|
|
1116
1150
|
function Xt({ event: t }) {
|
|
1117
1151
|
var a;
|
|
1118
1152
|
function n(i) {
|
|
1119
|
-
var
|
|
1120
|
-
const r = (
|
|
1121
|
-
var
|
|
1122
|
-
let d =
|
|
1123
|
-
return ["Más de", "Mas de", "Over"].includes(d == null ? void 0 : d.label) ? (
|
|
1124
|
-
id: (
|
|
1125
|
-
value:
|
|
1126
|
-
label:
|
|
1127
|
-
odds: (
|
|
1128
|
-
bl: (
|
|
1129
|
-
position: (
|
|
1153
|
+
var x;
|
|
1154
|
+
const r = (x = i.betoffers) != null ? x : [], s = i.homeName, l = i.awayName, c = r.map((v) => {
|
|
1155
|
+
var O, w, M, B, S;
|
|
1156
|
+
let d = v.outcomes[0], C = "", y = d != null && d.line ? d.line / 1e3 : "";
|
|
1157
|
+
return ["Más de", "Mas de", "Over"].includes(d == null ? void 0 : d.label) ? (C = `Más de ${y}`, d != null && d.participant && (C = `${d.participant} - ${C}`)) : ["Menos de", "Menos"].includes(d == null ? void 0 : d.label) ? (C = `Menos de ${y}`, d != null && d.participant && (C = `${d.participant} - ${C}`)) : ["Sí", "No"].includes(d == null ? void 0 : d.label) ? (C = d == null ? void 0 : d.label, d != null && d.participant && (C = `${d.participant} - ${C}`)) : ["1X", "12", "X2"].includes(d == null ? void 0 : d.label) ? d.label === "1X" ? C = `${s} o Empate` : d.label === "12" ? C = `${s} o ${l}` : d.label === "X2" && (C = `${l} o Empate`) : (d != null && d.participant ? C = d.participant : C = (O = d == null ? void 0 : d.label) != null ? O : "", y !== "" && C === d.label && (C = `${d.label} ${y}`)), {
|
|
1158
|
+
id: (w = d == null ? void 0 : d.id) != null ? w : 0,
|
|
1159
|
+
value: C,
|
|
1160
|
+
label: v.criterion.label,
|
|
1161
|
+
odds: (M = d == null ? void 0 : d.odds) != null ? M : 0,
|
|
1162
|
+
bl: (B = d == null ? void 0 : d.label) != null ? B : 0,
|
|
1163
|
+
position: (S = d == null ? void 0 : d.position) != null ? S : 0
|
|
1130
1164
|
};
|
|
1131
|
-
}),
|
|
1165
|
+
}), f = c.reduce((v, d) => v + d.odds, 0) / 1e3;
|
|
1132
1166
|
return {
|
|
1133
1167
|
outcomes: c,
|
|
1134
|
-
total:
|
|
1168
|
+
total: f.toFixed(2)
|
|
1135
1169
|
};
|
|
1136
1170
|
}
|
|
1137
1171
|
const o = n(t);
|
|
1138
|
-
return /* @__PURE__ */
|
|
1139
|
-
/* @__PURE__ */ e("div", { className: Z.combinadas, children: /* @__PURE__ */
|
|
1172
|
+
return /* @__PURE__ */ h("div", { className: Z.card, children: [
|
|
1173
|
+
/* @__PURE__ */ e("div", { className: Z.combinadas, children: /* @__PURE__ */ h(z, { direction: "column", spacing: 0.5, useFlexGap: !0, children: [
|
|
1140
1174
|
/* @__PURE__ */ e(
|
|
1141
1175
|
ee,
|
|
1142
1176
|
{
|
|
@@ -1146,12 +1180,12 @@ function Xt({ event: t }) {
|
|
|
1146
1180
|
}
|
|
1147
1181
|
),
|
|
1148
1182
|
/* @__PURE__ */ e("img", { loading: "lazy", src: "/assets/img/home/Combinadas/line.png" }),
|
|
1149
|
-
/* @__PURE__ */ e(z, { direction: "column", spacing: 0.5, useFlexGap: !0, children: o.outcomes.sort((i, r) => i.position - r.position).map((i, r) => /* @__PURE__ */
|
|
1150
|
-
/* @__PURE__ */
|
|
1183
|
+
/* @__PURE__ */ e(z, { direction: "column", spacing: 0.5, useFlexGap: !0, children: o.outcomes.sort((i, r) => i.position - r.position).map((i, r) => /* @__PURE__ */ h("div", { className: Z.apuestaItem, children: [
|
|
1184
|
+
/* @__PURE__ */ h("div", { className: Z.lineContainer, children: [
|
|
1151
1185
|
/* @__PURE__ */ e("div", { className: Z.circle }),
|
|
1152
1186
|
r < o.outcomes.length - 1 && /* @__PURE__ */ e("div", { className: Z.line })
|
|
1153
1187
|
] }),
|
|
1154
|
-
/* @__PURE__ */
|
|
1188
|
+
/* @__PURE__ */ h("div", { className: Z.apuestaText, children: [
|
|
1155
1189
|
/* @__PURE__ */ e("strong", { children: i.value }),
|
|
1156
1190
|
" ",
|
|
1157
1191
|
"| ",
|
|
@@ -1159,11 +1193,11 @@ function Xt({ event: t }) {
|
|
|
1159
1193
|
] })
|
|
1160
1194
|
] }, r)) })
|
|
1161
1195
|
] }) }),
|
|
1162
|
-
/* @__PURE__ */
|
|
1196
|
+
/* @__PURE__ */ h("button", { onClick: () => {
|
|
1163
1197
|
var i, r;
|
|
1164
1198
|
return Ee((r = (i = o == null ? void 0 : o.outcomes) == null ? void 0 : i.map((s) => s == null ? void 0 : s.id)) != null ? r : []);
|
|
1165
1199
|
}, className: Z.cuotaTotal, children: [
|
|
1166
|
-
/* @__PURE__ */
|
|
1200
|
+
/* @__PURE__ */ h("span", { children: [
|
|
1167
1201
|
"Cuota total: ",
|
|
1168
1202
|
/* @__PURE__ */ e("strong", { children: (((a = t.combinadoTotal) != null ? a : 0) / 1e3).toFixed(2) })
|
|
1169
1203
|
] }),
|
|
@@ -1171,7 +1205,7 @@ function Xt({ event: t }) {
|
|
|
1171
1205
|
] })
|
|
1172
1206
|
] });
|
|
1173
1207
|
}
|
|
1174
|
-
const
|
|
1208
|
+
const J = {
|
|
1175
1209
|
"orc-btn": "oraculo__OraculoButtonBet-module__orc-btn___jakza",
|
|
1176
1210
|
"orc-btn__label": "oraculo__OraculoButtonBet-module__orc-btn__label___zNFEH",
|
|
1177
1211
|
"orc-btn__icon": "oraculo__OraculoButtonBet-module__orc-btn__icon___5Rhyd",
|
|
@@ -1195,56 +1229,56 @@ function Yt({
|
|
|
1195
1229
|
disabled: s = !1,
|
|
1196
1230
|
variant: l = "primary",
|
|
1197
1231
|
size: c,
|
|
1198
|
-
fullWidth:
|
|
1199
|
-
fullHeight:
|
|
1200
|
-
className:
|
|
1232
|
+
fullWidth: f = !1,
|
|
1233
|
+
fullHeight: x = !1,
|
|
1234
|
+
className: v = "",
|
|
1201
1235
|
ariaLabel: d,
|
|
1202
|
-
leftIcon:
|
|
1236
|
+
leftIcon: C,
|
|
1203
1237
|
rightIcon: y,
|
|
1204
|
-
iconOnly:
|
|
1238
|
+
iconOnly: O
|
|
1205
1239
|
}) {
|
|
1206
|
-
const
|
|
1207
|
-
|
|
1240
|
+
const w = !!t && t !== !0, S = (!!C ? 1 : 0) + (!!y ? 1 : 0) == 1, m = O != null ? O : S && !w, E = [
|
|
1241
|
+
J["orc-btn"],
|
|
1208
1242
|
// base
|
|
1209
|
-
|
|
1243
|
+
J[`orc-btn--${l}`],
|
|
1210
1244
|
// variant primary/secondary/tertiary
|
|
1211
|
-
c ?
|
|
1245
|
+
c ? J[`orc-btn--${c}`] : "",
|
|
1212
1246
|
// sm / md / lg
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
].filter(Boolean).join(" "),
|
|
1218
|
-
|
|
1219
|
-
!
|
|
1220
|
-
y && /* @__PURE__ */ e("span", { className:
|
|
1221
|
-
] }),
|
|
1247
|
+
f ? J["orc-btn--full"] : "",
|
|
1248
|
+
x ? J["orc-btn--fullHeight"] : "",
|
|
1249
|
+
m ? J["orc-btn--iconOnly"] : "",
|
|
1250
|
+
v
|
|
1251
|
+
].filter(Boolean).join(" "), k = /* @__PURE__ */ h(oe, { children: [
|
|
1252
|
+
C && /* @__PURE__ */ e("span", { className: J["orc-btn__icon"], children: C }),
|
|
1253
|
+
!m && /* @__PURE__ */ e("span", { className: J["orc-btn__label"], children: t }),
|
|
1254
|
+
y && /* @__PURE__ */ e("span", { className: J["orc-btn__icon"], children: y })
|
|
1255
|
+
] }), I = s ? !0 : void 0;
|
|
1222
1256
|
return o ? /* @__PURE__ */ e(
|
|
1223
|
-
|
|
1257
|
+
Me,
|
|
1224
1258
|
{
|
|
1225
1259
|
href: o,
|
|
1226
1260
|
target: a,
|
|
1227
1261
|
rel: i,
|
|
1228
1262
|
"aria-label": d,
|
|
1229
|
-
"aria-disabled":
|
|
1230
|
-
tabIndex:
|
|
1231
|
-
className:
|
|
1232
|
-
onClick:
|
|
1233
|
-
children:
|
|
1263
|
+
"aria-disabled": I,
|
|
1264
|
+
tabIndex: I ? -1 : void 0,
|
|
1265
|
+
className: E,
|
|
1266
|
+
onClick: I ? (N) => N.preventDefault() : n,
|
|
1267
|
+
children: k
|
|
1234
1268
|
}
|
|
1235
1269
|
) : /* @__PURE__ */ e(
|
|
1236
1270
|
"button",
|
|
1237
1271
|
{
|
|
1238
1272
|
type: r,
|
|
1239
1273
|
onClick: n,
|
|
1240
|
-
disabled: !!
|
|
1274
|
+
disabled: !!I,
|
|
1241
1275
|
"aria-label": d,
|
|
1242
|
-
className:
|
|
1243
|
-
children:
|
|
1276
|
+
className: E,
|
|
1277
|
+
children: k
|
|
1244
1278
|
}
|
|
1245
1279
|
);
|
|
1246
1280
|
}
|
|
1247
|
-
const Zt = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT",
|
|
1281
|
+
const Zt = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", Ve = {
|
|
1248
1282
|
cardWrapper: Zt
|
|
1249
1283
|
}, Oe = {
|
|
1250
1284
|
base: "FFFFFF",
|
|
@@ -1258,7 +1292,7 @@ const Zt = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", He = {
|
|
|
1258
1292
|
number: "FFFFFF",
|
|
1259
1293
|
real: !1,
|
|
1260
1294
|
type: "short_sleeves"
|
|
1261
|
-
},
|
|
1295
|
+
}, fe = (t, n, o = "player") => {
|
|
1262
1296
|
var i, r;
|
|
1263
1297
|
if (t === void 0)
|
|
1264
1298
|
return null;
|
|
@@ -1268,35 +1302,35 @@ const Zt = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", He = {
|
|
|
1268
1302
|
return a || (n === "home" ? Oe : Ie);
|
|
1269
1303
|
};
|
|
1270
1304
|
function Qt({ event: t, liveData: n, betOffers: o, jersey: a }) {
|
|
1271
|
-
var r, s, l, c,
|
|
1305
|
+
var r, s, l, c, f, x, v, d, C, y, O;
|
|
1272
1306
|
const i = o == null ? void 0 : o.find(
|
|
1273
|
-
(
|
|
1274
|
-
var
|
|
1275
|
-
return ((
|
|
1307
|
+
(w) => {
|
|
1308
|
+
var M;
|
|
1309
|
+
return ((M = w.betOfferType) == null ? void 0 : M.id) === 2;
|
|
1276
1310
|
}
|
|
1277
1311
|
);
|
|
1278
|
-
return /* @__PURE__ */ e("div", { className:
|
|
1279
|
-
/* @__PURE__ */
|
|
1312
|
+
return /* @__PURE__ */ e("div", { className: Ve.cardWrapper, children: /* @__PURE__ */ h(z, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1313
|
+
/* @__PURE__ */ h(z, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
1280
1314
|
/* @__PURE__ */ e(
|
|
1281
1315
|
pt,
|
|
1282
1316
|
{
|
|
1283
1317
|
title: (l = (s = (r = t == null ? void 0 : t.path) == null ? void 0 : r[0]) == null ? void 0 : s.name) != null ? l : "",
|
|
1284
1318
|
subtitle: (c = t == null ? void 0 : t.group) != null ? c : "",
|
|
1285
1319
|
live: !0,
|
|
1286
|
-
time: ((
|
|
1320
|
+
time: ((f = n == null ? void 0 : n.matchClock) == null ? void 0 : f.minute) != null ? `${n.matchClock.minute}'` : ""
|
|
1287
1321
|
}
|
|
1288
1322
|
),
|
|
1289
|
-
/* @__PURE__ */ e("div", { style: { padding: "0 4px" }, children: /* @__PURE__ */
|
|
1290
|
-
/* @__PURE__ */ e(
|
|
1291
|
-
/* @__PURE__ */ e(
|
|
1292
|
-
/* @__PURE__ */ e(
|
|
1323
|
+
/* @__PURE__ */ e("div", { style: { padding: "0 4px" }, children: /* @__PURE__ */ h(Y, { spacing: 1.5, columns: "1fr auto 1fr", children: [
|
|
1324
|
+
/* @__PURE__ */ e(he, { name: t == null ? void 0 : t.homeName, jersey: fe(a, "home") }),
|
|
1325
|
+
/* @__PURE__ */ e(Ue, { text: ((v = (x = n == null ? void 0 : n.score) == null ? void 0 : x.home) != null ? v : 0) + ":" + ((C = (d = n == null ? void 0 : n.score) == null ? void 0 : d.away) != null ? C : 0), name: "En vivo" }),
|
|
1326
|
+
/* @__PURE__ */ e(he, { name: t == null ? void 0 : t.awayName, jersey: fe(a, "away") })
|
|
1293
1327
|
] }) })
|
|
1294
1328
|
] }),
|
|
1295
|
-
/* @__PURE__ */
|
|
1296
|
-
/* @__PURE__ */ e(Y, { spacing: 1, children: ((y = i == null ? void 0 : i.outcomes) != null ? y : []).map((
|
|
1297
|
-
/* @__PURE__ */ e(Y, { spacing: 2, children: ((
|
|
1298
|
-
Ee(
|
|
1299
|
-
}, children:
|
|
1329
|
+
/* @__PURE__ */ h(z, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1330
|
+
/* @__PURE__ */ e(Y, { spacing: 1, children: ((y = i == null ? void 0 : i.outcomes) != null ? y : []).map((w, M) => /* @__PURE__ */ e(ze, { text: w.label.toUpperCase() }, M)) }),
|
|
1331
|
+
/* @__PURE__ */ e(Y, { spacing: 2, children: ((O = i == null ? void 0 : i.outcomes) != null ? O : []).map((w, M) => /* @__PURE__ */ e(Yt, { variant: "primary", disabled: w.odds == null || (i == null ? void 0 : i.cashOutStatus) == "SUSPENDED", onClick: () => {
|
|
1332
|
+
Ee(w.id);
|
|
1333
|
+
}, children: w.odds === void 0 ? "" : (w.odds / 1e3).toFixed(2) }, M)) })
|
|
1300
1334
|
] })
|
|
1301
1335
|
] }) });
|
|
1302
1336
|
}
|
|
@@ -1313,28 +1347,28 @@ const on = "oraculo__OraculoEventSemanaCard-module__cardContainer___4JuDe", rn =
|
|
|
1313
1347
|
equipos: sn
|
|
1314
1348
|
};
|
|
1315
1349
|
function cn({ event: t, jersey: n }) {
|
|
1316
|
-
var a, i, r, s, l, c,
|
|
1317
|
-
function o(
|
|
1318
|
-
const
|
|
1319
|
-
let
|
|
1320
|
-
return
|
|
1350
|
+
var a, i, r, s, l, c, f;
|
|
1351
|
+
function o(x) {
|
|
1352
|
+
const v = new Date(x), d = v.toLocaleDateString("es-ES", { weekday: "short" }).toUpperCase(), C = v.getDate().toString().padStart(2, "0"), y = (v.getMonth() + 1).toString().padStart(2, "0");
|
|
1353
|
+
let O = v.toLocaleTimeString("es-PE", { hour: "numeric", minute: "2-digit", hour12: !0 }).toUpperCase();
|
|
1354
|
+
return O = O.replace(/\./g, "").replace(/A\s*M/i, "AM").replace(/P\s*M/i, "PM"), `${d} ${C}/${y} | ${O}`;
|
|
1321
1355
|
}
|
|
1322
|
-
return /* @__PURE__ */
|
|
1323
|
-
/* @__PURE__ */ e(
|
|
1324
|
-
/* @__PURE__ */ e("div", { className: ne.cardBackground, children: /* @__PURE__ */
|
|
1325
|
-
/* @__PURE__ */
|
|
1326
|
-
/* @__PURE__ */
|
|
1327
|
-
/* @__PURE__ */ e(
|
|
1328
|
-
/* @__PURE__ */ e(
|
|
1329
|
-
/* @__PURE__ */ e(
|
|
1356
|
+
return /* @__PURE__ */ h("div", { className: ne.cardContainer, children: [
|
|
1357
|
+
/* @__PURE__ */ e(je, { title: (a = t == null ? void 0 : t.group) != null ? a : "" }),
|
|
1358
|
+
/* @__PURE__ */ e("div", { className: ne.cardBackground, children: /* @__PURE__ */ h(z, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
1359
|
+
/* @__PURE__ */ h(z, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1360
|
+
/* @__PURE__ */ h("div", { className: ne.equipos, children: [
|
|
1361
|
+
/* @__PURE__ */ e(he, { name: t.homeName, size: "compact", jersey: fe(n, "home") }),
|
|
1362
|
+
/* @__PURE__ */ e(Ue, { text: "vs.", name: "", size: "small" }),
|
|
1363
|
+
/* @__PURE__ */ e(he, { name: t.awayName, size: "compact", jersey: fe(n, "away") })
|
|
1330
1364
|
] }),
|
|
1331
1365
|
/* @__PURE__ */ e(nn, { text: o(t.start) })
|
|
1332
1366
|
] }),
|
|
1333
|
-
/* @__PURE__ */
|
|
1334
|
-
/* @__PURE__ */ e(Y, { spacing: 1, children: ((s = (r = (i = t == null ? void 0 : t.outcome) == null ? void 0 : i[0]) == null ? void 0 : r.outcomes) != null ? s : []).map((
|
|
1335
|
-
/* @__PURE__ */ e("div", { className: ne.jugadas, children: /* @__PURE__ */ e(Y, { spacing: 1, children: ((
|
|
1336
|
-
Ee(
|
|
1337
|
-
}, children: (
|
|
1367
|
+
/* @__PURE__ */ h(z, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
1368
|
+
/* @__PURE__ */ e(Y, { spacing: 1, children: ((s = (r = (i = t == null ? void 0 : t.outcome) == null ? void 0 : i[0]) == null ? void 0 : r.outcomes) != null ? s : []).map((x, v) => /* @__PURE__ */ e(ze, { text: x.label.toUpperCase() }, v)) }),
|
|
1369
|
+
/* @__PURE__ */ e("div", { className: ne.jugadas, children: /* @__PURE__ */ e(Y, { spacing: 1, children: ((f = (c = (l = t == null ? void 0 : t.outcome) == null ? void 0 : l[0]) == null ? void 0 : c.outcomes) != null ? f : []).map((x, v) => /* @__PURE__ */ e(G, { variant: "primary", fullHeight: !0, onClick: () => {
|
|
1370
|
+
Ee(x.id);
|
|
1371
|
+
}, children: (x.odds / 1e3).toFixed(2) }, v)) }) })
|
|
1338
1372
|
] })
|
|
1339
1373
|
] }) })
|
|
1340
1374
|
] });
|
|
@@ -1346,21 +1380,21 @@ function ln({
|
|
|
1346
1380
|
onViewMore: a,
|
|
1347
1381
|
className: i = ""
|
|
1348
1382
|
}) {
|
|
1349
|
-
const r = H(null), [s, l] = D({ isStart: !0, isEnd: !1 }), c = !t || t.length === 0,
|
|
1383
|
+
const r = H(null), [s, l] = D({ isStart: !0, isEnd: !1 }), c = !t || t.length === 0, f = () => {
|
|
1350
1384
|
var y;
|
|
1351
1385
|
return (y = r.current) == null ? void 0 : y.prev();
|
|
1352
|
-
},
|
|
1386
|
+
}, x = () => {
|
|
1353
1387
|
var y;
|
|
1354
1388
|
return (y = r.current) == null ? void 0 : y.next();
|
|
1355
|
-
},
|
|
1389
|
+
}, v = () => {
|
|
1356
1390
|
window.location.href = "https://www.olimpo.bet/promociones";
|
|
1357
1391
|
}, d = (y) => {
|
|
1358
1392
|
if (!y || typeof window == "undefined") return;
|
|
1359
|
-
const
|
|
1360
|
-
window.location.href =
|
|
1393
|
+
const w = `https://www.olimpo.bet/promociones/${encodeURIComponent(y)}`;
|
|
1394
|
+
window.location.href = w;
|
|
1361
1395
|
};
|
|
1362
|
-
return /* @__PURE__ */
|
|
1363
|
-
/* @__PURE__ */
|
|
1396
|
+
return /* @__PURE__ */ h("section", { className: i || void 0, style: { width: "100%" }, children: [
|
|
1397
|
+
/* @__PURE__ */ h(
|
|
1364
1398
|
"header",
|
|
1365
1399
|
{
|
|
1366
1400
|
style: {
|
|
@@ -1373,7 +1407,7 @@ function ln({
|
|
|
1373
1407
|
},
|
|
1374
1408
|
children: [
|
|
1375
1409
|
/* @__PURE__ */ e(ee, { title: n, iconUrl: o, size: "md" }),
|
|
1376
|
-
/* @__PURE__ */
|
|
1410
|
+
/* @__PURE__ */ h("div", { style: { display: "flex", gap: 8 }, children: [
|
|
1377
1411
|
/* @__PURE__ */ e(
|
|
1378
1412
|
G,
|
|
1379
1413
|
{
|
|
@@ -1381,7 +1415,7 @@ function ln({
|
|
|
1381
1415
|
variant: "secondary",
|
|
1382
1416
|
iconOnly: !0,
|
|
1383
1417
|
leftIcon: /* @__PURE__ */ e(ye, {}),
|
|
1384
|
-
onClick:
|
|
1418
|
+
onClick: f,
|
|
1385
1419
|
disabled: s.isStart || c
|
|
1386
1420
|
}
|
|
1387
1421
|
),
|
|
@@ -1392,12 +1426,12 @@ function ln({
|
|
|
1392
1426
|
variant: "secondary",
|
|
1393
1427
|
iconOnly: !0,
|
|
1394
1428
|
rightIcon: /* @__PURE__ */ e(Se, {}),
|
|
1395
|
-
onClick:
|
|
1429
|
+
onClick: x,
|
|
1396
1430
|
disabled: s.isEnd || c
|
|
1397
1431
|
}
|
|
1398
1432
|
)
|
|
1399
1433
|
] }),
|
|
1400
|
-
/* @__PURE__ */ e(G, { variant: "secondary", onClick:
|
|
1434
|
+
/* @__PURE__ */ e(G, { variant: "secondary", onClick: v, children: "Ver más" })
|
|
1401
1435
|
]
|
|
1402
1436
|
}
|
|
1403
1437
|
),
|
|
@@ -1448,25 +1482,25 @@ function ln({
|
|
|
1448
1482
|
},
|
|
1449
1483
|
`${y.title}-${y.image}`
|
|
1450
1484
|
),
|
|
1451
|
-
onMove: ({ isStart: y, isEnd:
|
|
1485
|
+
onMove: ({ isStart: y, isEnd: O }) => l({ isStart: y, isEnd: O })
|
|
1452
1486
|
}
|
|
1453
1487
|
)
|
|
1454
1488
|
] });
|
|
1455
1489
|
}
|
|
1456
|
-
const
|
|
1457
|
-
function
|
|
1490
|
+
const me = "__ORACULO_EXTRAS__";
|
|
1491
|
+
function qe() {
|
|
1458
1492
|
const t = globalThis;
|
|
1459
|
-
return t[
|
|
1493
|
+
return t[me] || (t[me] = {}), t[me];
|
|
1460
1494
|
}
|
|
1461
1495
|
function dn(t) {
|
|
1462
|
-
|
|
1496
|
+
qe().extras = t;
|
|
1463
1497
|
}
|
|
1464
1498
|
function Q(t) {
|
|
1465
1499
|
var n;
|
|
1466
|
-
return (n =
|
|
1500
|
+
return (n = qe().extras) == null ? void 0 : n[t];
|
|
1467
1501
|
}
|
|
1468
1502
|
function un() {
|
|
1469
|
-
delete globalThis[
|
|
1503
|
+
delete globalThis[me];
|
|
1470
1504
|
}
|
|
1471
1505
|
function pn({
|
|
1472
1506
|
items: t,
|
|
@@ -1475,22 +1509,22 @@ function pn({
|
|
|
1475
1509
|
onCardClick: a
|
|
1476
1510
|
}) {
|
|
1477
1511
|
const i = ce(
|
|
1478
|
-
() => (t != null ? t : []).map((c,
|
|
1479
|
-
var
|
|
1512
|
+
() => (t != null ? t : []).map((c, f) => {
|
|
1513
|
+
var x;
|
|
1480
1514
|
return {
|
|
1481
1515
|
...c,
|
|
1482
|
-
orden: (
|
|
1483
|
-
_originalIndex:
|
|
1516
|
+
orden: (x = c.orden) != null ? x : f + 1,
|
|
1517
|
+
_originalIndex: f
|
|
1484
1518
|
};
|
|
1485
|
-
}).sort((c,
|
|
1519
|
+
}).sort((c, f) => c.orden != null && f.orden != null ? c.orden - f.orden : c._originalIndex - f._originalIndex),
|
|
1486
1520
|
[t]
|
|
1487
1521
|
), r = !t || t.length === 0, s = r ? Array.from({ length: 6 }) : i.slice(0, 6), l = (c) => {
|
|
1488
|
-
const
|
|
1489
|
-
|
|
1490
|
-
|
|
1522
|
+
const f = Q("showIframe"), x = Q("loadMachine");
|
|
1523
|
+
f == null || f(), requestAnimationFrame(() => {
|
|
1524
|
+
x == null || x(c, !1, "CASINO");
|
|
1491
1525
|
});
|
|
1492
1526
|
};
|
|
1493
|
-
return /* @__PURE__ */ e("section", { style: { width: "100%" }, children: /* @__PURE__ */
|
|
1527
|
+
return /* @__PURE__ */ e("section", { style: { width: "100%" }, children: /* @__PURE__ */ h(z, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
1494
1528
|
/* @__PURE__ */ e(ee, { title: n, iconUrl: o, size: "md" }),
|
|
1495
1529
|
/* @__PURE__ */ e(
|
|
1496
1530
|
T,
|
|
@@ -1505,19 +1539,19 @@ function pn({
|
|
|
1505
1539
|
justifyItems: "center",
|
|
1506
1540
|
width: "100%"
|
|
1507
1541
|
},
|
|
1508
|
-
children: s.map((c,
|
|
1509
|
-
var
|
|
1542
|
+
children: s.map((c, f) => {
|
|
1543
|
+
var x, v;
|
|
1510
1544
|
return /* @__PURE__ */ e(
|
|
1511
|
-
|
|
1545
|
+
Wt,
|
|
1512
1546
|
{
|
|
1513
|
-
imageUrl: r ? "" : c.background ? `https://olimpo.bet${c.background}` : `https://olimpo.bet${(
|
|
1514
|
-
orden: r ?
|
|
1547
|
+
imageUrl: r ? "" : c.background ? `https://olimpo.bet${c.background}` : `https://olimpo.bet${(x = c.logo) != null ? x : ""}`,
|
|
1548
|
+
orden: r ? f + 1 : c.orden,
|
|
1515
1549
|
loading: r,
|
|
1516
1550
|
onClick: r ? void 0 : () => {
|
|
1517
1551
|
a == null || a(c), l(c);
|
|
1518
1552
|
}
|
|
1519
1553
|
},
|
|
1520
|
-
r ? `sk-${
|
|
1554
|
+
r ? `sk-${f}` : (v = c.machine) != null ? v : `${f}`
|
|
1521
1555
|
);
|
|
1522
1556
|
})
|
|
1523
1557
|
}
|
|
@@ -1537,12 +1571,12 @@ const mn = (t, n) => {
|
|
|
1537
1571
|
className: s
|
|
1538
1572
|
}) => {
|
|
1539
1573
|
const l = (c) => {
|
|
1540
|
-
const
|
|
1541
|
-
|
|
1542
|
-
|
|
1574
|
+
const f = Q("showIframe"), x = Q("loadMachine");
|
|
1575
|
+
f == null || f(), typeof window != "undefined" && window.scrollTo({ top: 0, behavior: "smooth" }), requestAnimationFrame(() => {
|
|
1576
|
+
x == null || x(c, !1, "casino_en_vivo");
|
|
1543
1577
|
});
|
|
1544
1578
|
};
|
|
1545
|
-
return /* @__PURE__ */
|
|
1579
|
+
return /* @__PURE__ */ h(
|
|
1546
1580
|
T,
|
|
1547
1581
|
{
|
|
1548
1582
|
className: s,
|
|
@@ -1577,7 +1611,7 @@ const mn = (t, n) => {
|
|
|
1577
1611
|
}
|
|
1578
1612
|
}
|
|
1579
1613
|
),
|
|
1580
|
-
/* @__PURE__ */
|
|
1614
|
+
/* @__PURE__ */ h(
|
|
1581
1615
|
T,
|
|
1582
1616
|
{
|
|
1583
1617
|
sx: {
|
|
@@ -1595,7 +1629,7 @@ const mn = (t, n) => {
|
|
|
1595
1629
|
textAlign: { xs: "center", md: "left" }
|
|
1596
1630
|
},
|
|
1597
1631
|
children: [
|
|
1598
|
-
/* @__PURE__ */
|
|
1632
|
+
/* @__PURE__ */ h(z, { spacing: 3, sx: { maxWidth: { md: 280 } }, children: [
|
|
1599
1633
|
/* @__PURE__ */ e(
|
|
1600
1634
|
X,
|
|
1601
1635
|
{
|
|
@@ -1642,18 +1676,18 @@ const mn = (t, n) => {
|
|
|
1642
1676
|
py: { xs: 3, md: 0 },
|
|
1643
1677
|
alignItems: "center"
|
|
1644
1678
|
},
|
|
1645
|
-
children: (t != null ? t : []).slice(0, 3).map((c,
|
|
1646
|
-
var
|
|
1679
|
+
children: (t != null ? t : []).slice(0, 3).map((c, f) => {
|
|
1680
|
+
var x;
|
|
1647
1681
|
return /* @__PURE__ */ e(
|
|
1648
|
-
|
|
1682
|
+
Bt,
|
|
1649
1683
|
{
|
|
1650
|
-
logo: `https://olimpo.bet${c.background ? c.background : (
|
|
1684
|
+
logo: `https://olimpo.bet${c.background ? c.background : (x = c.logo) != null ? x : ""}`,
|
|
1651
1685
|
provider: c.provider,
|
|
1652
1686
|
providerName: c.web_name,
|
|
1653
1687
|
machine: c.machine,
|
|
1654
1688
|
onClick: () => l(c)
|
|
1655
1689
|
},
|
|
1656
|
-
mn(c,
|
|
1690
|
+
mn(c, f)
|
|
1657
1691
|
);
|
|
1658
1692
|
})
|
|
1659
1693
|
}
|
|
@@ -1676,7 +1710,7 @@ const mn = (t, n) => {
|
|
|
1676
1710
|
}, Ke = (t, n) => {
|
|
1677
1711
|
var o, a;
|
|
1678
1712
|
return (a = (o = t.orden) != null ? o : t.machine) != null ? a : n;
|
|
1679
|
-
}, fn = (t, n = !0, o =
|
|
1713
|
+
}, fn = (t, n = !0, o = 1) => {
|
|
1680
1714
|
const a = t.map((s, l) => {
|
|
1681
1715
|
var c;
|
|
1682
1716
|
return {
|
|
@@ -1689,7 +1723,7 @@ const mn = (t, n) => {
|
|
|
1689
1723
|
const i = [];
|
|
1690
1724
|
let r = 0;
|
|
1691
1725
|
if (n) {
|
|
1692
|
-
const s = Math.min(a.length,
|
|
1726
|
+
const s = Math.min(a.length, 1);
|
|
1693
1727
|
i.push({ id: "mosaic-0", kind: "mosaic", items: a.slice(0, s) }), r = s;
|
|
1694
1728
|
}
|
|
1695
1729
|
for (; r < a.length; ) {
|
|
@@ -1704,22 +1738,22 @@ const mn = (t, n) => {
|
|
|
1704
1738
|
onItemClick: a,
|
|
1705
1739
|
onViewMore: i,
|
|
1706
1740
|
mosaicFirst: r = !0,
|
|
1707
|
-
gridSize: s =
|
|
1741
|
+
gridSize: s = 1
|
|
1708
1742
|
}) => {
|
|
1709
|
-
const l = H(null), [c,
|
|
1710
|
-
var
|
|
1711
|
-
return (
|
|
1712
|
-
},
|
|
1713
|
-
var
|
|
1714
|
-
return (
|
|
1743
|
+
const l = H(null), [c, f] = D({ isStart: !0, isEnd: !1 }), x = () => {
|
|
1744
|
+
var w;
|
|
1745
|
+
return (w = l.current) == null ? void 0 : w.prev();
|
|
1746
|
+
}, v = () => {
|
|
1747
|
+
var w;
|
|
1748
|
+
return (w = l.current) == null ? void 0 : w.next();
|
|
1715
1749
|
}, d = () => {
|
|
1716
1750
|
window.location.href = "https://www.olimpo.bet/casino";
|
|
1717
|
-
},
|
|
1718
|
-
const
|
|
1719
|
-
return
|
|
1720
|
-
}, y = !t || t.length === 0,
|
|
1721
|
-
return /* @__PURE__ */ e("section", { children: /* @__PURE__ */
|
|
1722
|
-
/* @__PURE__ */
|
|
1751
|
+
}, C = (w = !0, M = 4) => {
|
|
1752
|
+
const B = (m) => Array.from({ length: m }, (E, k) => ({ id: `sk-${m}-${k}`, imageUrl: "" })), S = [];
|
|
1753
|
+
return w && S.push({ id: "mosaic-loading", kind: "mosaic", items: B(5) }), S.push({ id: "grid-loading", kind: "grid", items: B(M) }), S;
|
|
1754
|
+
}, y = !t || t.length === 0, O = y ? C(r, s) : fn(t, r, s);
|
|
1755
|
+
return /* @__PURE__ */ e("section", { children: /* @__PURE__ */ h(z, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
1756
|
+
/* @__PURE__ */ h(
|
|
1723
1757
|
T,
|
|
1724
1758
|
{
|
|
1725
1759
|
sx: {
|
|
@@ -1731,7 +1765,7 @@ const mn = (t, n) => {
|
|
|
1731
1765
|
},
|
|
1732
1766
|
children: [
|
|
1733
1767
|
/* @__PURE__ */ e(ee, { title: n, iconUrl: o, size: "md" }),
|
|
1734
|
-
/* @__PURE__ */
|
|
1768
|
+
/* @__PURE__ */ h(T, { sx: { display: "flex", gap: 1, justifyContent: "flex-end" }, children: [
|
|
1735
1769
|
/* @__PURE__ */ e(
|
|
1736
1770
|
G,
|
|
1737
1771
|
{
|
|
@@ -1739,7 +1773,7 @@ const mn = (t, n) => {
|
|
|
1739
1773
|
variant: "secondary",
|
|
1740
1774
|
iconOnly: !0,
|
|
1741
1775
|
leftIcon: /* @__PURE__ */ e(Be, {}),
|
|
1742
|
-
onClick:
|
|
1776
|
+
onClick: x,
|
|
1743
1777
|
disabled: c.isStart
|
|
1744
1778
|
}
|
|
1745
1779
|
),
|
|
@@ -1750,7 +1784,7 @@ const mn = (t, n) => {
|
|
|
1750
1784
|
variant: "secondary",
|
|
1751
1785
|
iconOnly: !0,
|
|
1752
1786
|
rightIcon: /* @__PURE__ */ e(Pe, {}),
|
|
1753
|
-
onClick:
|
|
1787
|
+
onClick: v,
|
|
1754
1788
|
disabled: c.isEnd
|
|
1755
1789
|
}
|
|
1756
1790
|
)
|
|
@@ -1763,7 +1797,7 @@ const mn = (t, n) => {
|
|
|
1763
1797
|
te,
|
|
1764
1798
|
{
|
|
1765
1799
|
ref: l,
|
|
1766
|
-
items:
|
|
1800
|
+
items: O,
|
|
1767
1801
|
perPage: 1,
|
|
1768
1802
|
gap: "0px",
|
|
1769
1803
|
enableHorizontalWheel: !0,
|
|
@@ -1776,29 +1810,29 @@ const mn = (t, n) => {
|
|
|
1776
1810
|
drag: !0,
|
|
1777
1811
|
focus: "start"
|
|
1778
1812
|
},
|
|
1779
|
-
renderItem: (
|
|
1780
|
-
|
|
1813
|
+
renderItem: (w) => /* @__PURE__ */ e("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ e(
|
|
1814
|
+
De,
|
|
1781
1815
|
{
|
|
1782
|
-
items:
|
|
1783
|
-
layout:
|
|
1816
|
+
items: w.items,
|
|
1817
|
+
layout: w.kind === "mosaic" ? "mosaic" : "grid",
|
|
1784
1818
|
loading: y,
|
|
1785
|
-
onClick: (
|
|
1819
|
+
onClick: (M) => {
|
|
1786
1820
|
if (y) return;
|
|
1787
|
-
const
|
|
1788
|
-
if (!
|
|
1789
|
-
const
|
|
1790
|
-
|
|
1821
|
+
const B = t.find((E, k) => String(Ke(E, k)) === String(M.id));
|
|
1822
|
+
if (!B) return;
|
|
1823
|
+
const S = Q("showIframe"), m = Q("loadMachine");
|
|
1824
|
+
S == null || S(), m == null || m(B, !1, "CASINO");
|
|
1791
1825
|
}
|
|
1792
1826
|
}
|
|
1793
1827
|
) }),
|
|
1794
|
-
onMove: ({ isStart:
|
|
1828
|
+
onMove: ({ isStart: w, isEnd: M }) => f({ isStart: w, isEnd: M })
|
|
1795
1829
|
}
|
|
1796
1830
|
)
|
|
1797
1831
|
] }) });
|
|
1798
1832
|
}, Je = (t, n) => {
|
|
1799
1833
|
var o, a;
|
|
1800
1834
|
return (a = (o = t.orden) != null ? o : t.machine) != null ? a : n;
|
|
1801
|
-
}, xn = (t, n = !0, o =
|
|
1835
|
+
}, xn = (t, n = !0, o = 1) => {
|
|
1802
1836
|
const a = t.map((s, l) => {
|
|
1803
1837
|
var c;
|
|
1804
1838
|
return {
|
|
@@ -1811,7 +1845,7 @@ const mn = (t, n) => {
|
|
|
1811
1845
|
const i = [];
|
|
1812
1846
|
let r = 0;
|
|
1813
1847
|
if (n) {
|
|
1814
|
-
const s = Math.min(a.length,
|
|
1848
|
+
const s = Math.min(a.length, 1);
|
|
1815
1849
|
i.push({ id: "mosaic-0", kind: "mosaic", items: a.slice(0, s) }), r = s;
|
|
1816
1850
|
}
|
|
1817
1851
|
for (; r < a.length; ) {
|
|
@@ -1829,19 +1863,19 @@ const mn = (t, n) => {
|
|
|
1829
1863
|
onItemClick: a,
|
|
1830
1864
|
onViewMore: i,
|
|
1831
1865
|
mosaicFirst: r = !0,
|
|
1832
|
-
gridSize: s =
|
|
1866
|
+
gridSize: s = 1
|
|
1833
1867
|
}) => {
|
|
1834
|
-
const l = H(null), [c,
|
|
1835
|
-
var
|
|
1836
|
-
return (
|
|
1837
|
-
},
|
|
1838
|
-
var
|
|
1839
|
-
return (
|
|
1868
|
+
const l = H(null), [c, f] = D({ isStart: !0, isEnd: !1 }), x = () => {
|
|
1869
|
+
var O;
|
|
1870
|
+
return (O = l.current) == null ? void 0 : O.prev();
|
|
1871
|
+
}, v = () => {
|
|
1872
|
+
var O;
|
|
1873
|
+
return (O = l.current) == null ? void 0 : O.next();
|
|
1840
1874
|
}, d = () => {
|
|
1841
1875
|
window.location.href = "https://www.olimpo.bet/juegos-virtuales";
|
|
1842
|
-
},
|
|
1843
|
-
return /* @__PURE__ */ e("section", { children: /* @__PURE__ */
|
|
1844
|
-
/* @__PURE__ */
|
|
1876
|
+
}, C = !t || t.length === 0, y = C ? bn(r, s) : xn(t, r, s);
|
|
1877
|
+
return /* @__PURE__ */ e("section", { children: /* @__PURE__ */ h(z, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
1878
|
+
/* @__PURE__ */ h(
|
|
1845
1879
|
T,
|
|
1846
1880
|
{
|
|
1847
1881
|
sx: {
|
|
@@ -1853,7 +1887,7 @@ const mn = (t, n) => {
|
|
|
1853
1887
|
},
|
|
1854
1888
|
children: [
|
|
1855
1889
|
/* @__PURE__ */ e(ee, { title: n, iconUrl: o, size: "md" }),
|
|
1856
|
-
/* @__PURE__ */
|
|
1890
|
+
/* @__PURE__ */ h(T, { sx: { display: "flex", gap: 1, justifyContent: "flex-end" }, children: [
|
|
1857
1891
|
/* @__PURE__ */ e(
|
|
1858
1892
|
G,
|
|
1859
1893
|
{
|
|
@@ -1861,7 +1895,7 @@ const mn = (t, n) => {
|
|
|
1861
1895
|
variant: "secondary",
|
|
1862
1896
|
iconOnly: !0,
|
|
1863
1897
|
leftIcon: /* @__PURE__ */ e(Be, {}),
|
|
1864
|
-
onClick:
|
|
1898
|
+
onClick: x,
|
|
1865
1899
|
disabled: c.isStart
|
|
1866
1900
|
}
|
|
1867
1901
|
),
|
|
@@ -1872,7 +1906,7 @@ const mn = (t, n) => {
|
|
|
1872
1906
|
variant: "secondary",
|
|
1873
1907
|
iconOnly: !0,
|
|
1874
1908
|
rightIcon: /* @__PURE__ */ e(Pe, {}),
|
|
1875
|
-
onClick:
|
|
1909
|
+
onClick: v,
|
|
1876
1910
|
disabled: c.isEnd
|
|
1877
1911
|
}
|
|
1878
1912
|
)
|
|
@@ -1899,25 +1933,25 @@ const mn = (t, n) => {
|
|
|
1899
1933
|
focus: "start",
|
|
1900
1934
|
perMove: 1
|
|
1901
1935
|
},
|
|
1902
|
-
renderItem: (
|
|
1903
|
-
|
|
1936
|
+
renderItem: (O) => /* @__PURE__ */ e("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ e(
|
|
1937
|
+
De,
|
|
1904
1938
|
{
|
|
1905
|
-
items:
|
|
1906
|
-
layout:
|
|
1907
|
-
loading:
|
|
1908
|
-
onClick: (
|
|
1909
|
-
if (
|
|
1910
|
-
const
|
|
1911
|
-
if (!
|
|
1912
|
-
console.warn("[virtuales] no se encontró game para id:",
|
|
1939
|
+
items: O.items,
|
|
1940
|
+
layout: O.kind === "mosaic" ? "mosaic" : "grid",
|
|
1941
|
+
loading: C,
|
|
1942
|
+
onClick: (w) => {
|
|
1943
|
+
if (C) return;
|
|
1944
|
+
const M = t.find((m, E) => String(Je(m, E)) === String(w.id));
|
|
1945
|
+
if (!M) {
|
|
1946
|
+
console.warn("[virtuales] no se encontró game para id:", w.id);
|
|
1913
1947
|
return;
|
|
1914
1948
|
}
|
|
1915
|
-
const
|
|
1916
|
-
|
|
1949
|
+
const B = Q("showIframe"), S = Q("loadMachine");
|
|
1950
|
+
B == null || B(), S == null || S(M, !1, "VIRTUALES");
|
|
1917
1951
|
}
|
|
1918
1952
|
}
|
|
1919
1953
|
) }),
|
|
1920
|
-
onMove: ({ isStart:
|
|
1954
|
+
onMove: ({ isStart: O, isEnd: w }) => f({ isStart: O, isEnd: w })
|
|
1921
1955
|
}
|
|
1922
1956
|
)
|
|
1923
1957
|
] }) });
|
|
@@ -1959,38 +1993,38 @@ const mn = (t, n) => {
|
|
|
1959
1993
|
items: o,
|
|
1960
1994
|
backgroundImageUrl: a
|
|
1961
1995
|
}) => {
|
|
1962
|
-
const i = ot("(max-width: 767px)"), r = o.length > 1, s = H(null), l = H(null), [c,
|
|
1963
|
-
|
|
1964
|
-
d.current =
|
|
1965
|
-
}, [
|
|
1966
|
-
const
|
|
1996
|
+
const i = ot("(max-width: 767px)"), r = o.length > 1, s = H(null), l = H(null), [c, f] = D(0), [x, v] = D({ isStart: !0, isEnd: !1 }), d = H(x);
|
|
1997
|
+
q(() => {
|
|
1998
|
+
d.current = x;
|
|
1999
|
+
}, [x]);
|
|
2000
|
+
const C = H(!1), y = H(null), O = o == null ? void 0 : o[c], w = ce(
|
|
1967
2001
|
() => {
|
|
1968
|
-
var
|
|
1969
|
-
return (
|
|
2002
|
+
var m, E;
|
|
2003
|
+
return (E = (m = O == null ? void 0 : O.backgroundImageUrl) != null ? m : a) != null ? E : "";
|
|
1970
2004
|
},
|
|
1971
|
-
[
|
|
1972
|
-
),
|
|
1973
|
-
|
|
1974
|
-
const
|
|
1975
|
-
if (!
|
|
1976
|
-
const
|
|
1977
|
-
var
|
|
1978
|
-
if (
|
|
1979
|
-
const F =
|
|
1980
|
-
if (Math.abs(F) <= Math.abs(
|
|
1981
|
-
const
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
},
|
|
2005
|
+
[O, a]
|
|
2006
|
+
), M = vn(w), B = !o || o.length === 0;
|
|
2007
|
+
q(() => {
|
|
2008
|
+
const m = l.current;
|
|
2009
|
+
if (!m) return;
|
|
2010
|
+
const E = 6, k = 380, I = (N) => {
|
|
2011
|
+
var p, u;
|
|
2012
|
+
if (B || N.ctrlKey || C.current) return;
|
|
2013
|
+
const F = N.deltaX, P = N.deltaY;
|
|
2014
|
+
if (Math.abs(F) <= Math.abs(P) || Math.abs(F) < E) return;
|
|
2015
|
+
const L = F > 0;
|
|
2016
|
+
L && d.current.isEnd || !L && d.current.isStart || (N.preventDefault(), C.current = !0, L ? (p = s.current) == null || p.next() : (u = s.current) == null || u.prev(), y.current && window.clearTimeout(y.current), y.current = window.setTimeout(() => {
|
|
2017
|
+
C.current = !1;
|
|
2018
|
+
}, k));
|
|
1985
2019
|
};
|
|
1986
|
-
return
|
|
1987
|
-
|
|
2020
|
+
return m.addEventListener("wheel", I, { passive: !1 }), () => {
|
|
2021
|
+
m.removeEventListener("wheel", I), y.current && window.clearTimeout(y.current);
|
|
1988
2022
|
};
|
|
1989
|
-
}, [
|
|
1990
|
-
const
|
|
1991
|
-
var
|
|
1992
|
-
const
|
|
1993
|
-
return
|
|
2023
|
+
}, [B]);
|
|
2024
|
+
const S = (m, E) => {
|
|
2025
|
+
var N, F;
|
|
2026
|
+
const k = (N = m.headline) != null ? N : t, I = (F = m.headline2) != null ? F : n;
|
|
2027
|
+
return E ? /* @__PURE__ */ h(
|
|
1994
2028
|
T,
|
|
1995
2029
|
{
|
|
1996
2030
|
sx: {
|
|
@@ -2003,7 +2037,7 @@ const mn = (t, n) => {
|
|
|
2003
2037
|
columnGap: 6
|
|
2004
2038
|
},
|
|
2005
2039
|
children: [
|
|
2006
|
-
(
|
|
2040
|
+
(k || I) && /* @__PURE__ */ e(
|
|
2007
2041
|
T,
|
|
2008
2042
|
{
|
|
2009
2043
|
sx: {
|
|
@@ -2012,30 +2046,30 @@ const mn = (t, n) => {
|
|
|
2012
2046
|
justifyContent: "flex-start",
|
|
2013
2047
|
minHeight: "100%"
|
|
2014
2048
|
},
|
|
2015
|
-
children: /* @__PURE__ */
|
|
2016
|
-
|
|
2017
|
-
|
|
2049
|
+
children: /* @__PURE__ */ h(T, { sx: { ...$e, textAlign: "left", mb: 0 }, children: [
|
|
2050
|
+
k && /* @__PURE__ */ e(X, { component: "span", sx: Ne, children: k }),
|
|
2051
|
+
I && /* @__PURE__ */ h(oe, { children: [
|
|
2018
2052
|
/* @__PURE__ */ e("br", {}),
|
|
2019
|
-
/* @__PURE__ */ e(X, { component: "span", sx: Te, children:
|
|
2053
|
+
/* @__PURE__ */ e(X, { component: "span", sx: Te, children: I })
|
|
2020
2054
|
] })
|
|
2021
2055
|
] })
|
|
2022
2056
|
}
|
|
2023
2057
|
),
|
|
2024
|
-
/* @__PURE__ */ e(T, { sx: { display: "flex", justifyContent: "center", alignItems: "center" }, children: /* @__PURE__ */ e(T, { sx: { width: "100%", maxWidth: 600, mx: "auto" }, children: /* @__PURE__ */ e(ke, { ...
|
|
2058
|
+
/* @__PURE__ */ e(T, { sx: { display: "flex", justifyContent: "center", alignItems: "center" }, children: /* @__PURE__ */ e(T, { sx: { width: "100%", maxWidth: 600, mx: "auto" }, children: /* @__PURE__ */ e(ke, { ...m, onButtonClick: m.onButtonClick, variant: "large" }) }) })
|
|
2025
2059
|
]
|
|
2026
2060
|
}
|
|
2027
|
-
) : /* @__PURE__ */
|
|
2028
|
-
(
|
|
2029
|
-
|
|
2030
|
-
|
|
2061
|
+
) : /* @__PURE__ */ h(T, { sx: { textAlign: "center" }, children: [
|
|
2062
|
+
(k || I) && /* @__PURE__ */ h(T, { sx: $e, children: [
|
|
2063
|
+
k && /* @__PURE__ */ e(X, { component: "span", sx: Ne, children: k }),
|
|
2064
|
+
I && /* @__PURE__ */ h(oe, { children: [
|
|
2031
2065
|
/* @__PURE__ */ e("br", {}),
|
|
2032
|
-
/* @__PURE__ */ e(X, { component: "span", sx: Te, children:
|
|
2066
|
+
/* @__PURE__ */ e(X, { component: "span", sx: Te, children: I })
|
|
2033
2067
|
] })
|
|
2034
2068
|
] }),
|
|
2035
|
-
/* @__PURE__ */ e(T, { sx: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ e(ke, { ...
|
|
2069
|
+
/* @__PURE__ */ e(T, { sx: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ e(ke, { ...m, onButtonClick: m.onButtonClick, variant: "small" }) })
|
|
2036
2070
|
] });
|
|
2037
2071
|
};
|
|
2038
|
-
return /* @__PURE__ */
|
|
2072
|
+
return /* @__PURE__ */ h(T, { component: "section", sx: M, children: [
|
|
2039
2073
|
/* @__PURE__ */ e("div", { ref: l, style: { width: "100%" }, children: /* @__PURE__ */ e(
|
|
2040
2074
|
te,
|
|
2041
2075
|
{
|
|
@@ -2053,20 +2087,20 @@ const mn = (t, n) => {
|
|
|
2053
2087
|
// arrows: false,
|
|
2054
2088
|
// drag: true,
|
|
2055
2089
|
},
|
|
2056
|
-
renderItem: (
|
|
2057
|
-
onMove: ({ index:
|
|
2058
|
-
|
|
2090
|
+
renderItem: (m) => /* @__PURE__ */ e(T, { sx: { width: "100%" }, children: S(m, !i) }),
|
|
2091
|
+
onMove: ({ index: m, isStart: E, isEnd: k }) => {
|
|
2092
|
+
f(m), typeof E == "boolean" && typeof k == "boolean" && v({ isStart: E, isEnd: k });
|
|
2059
2093
|
}
|
|
2060
2094
|
}
|
|
2061
2095
|
) }),
|
|
2062
2096
|
r && /* @__PURE__ */ e(T, { sx: { mt: 2, display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ e(
|
|
2063
|
-
|
|
2097
|
+
Ae,
|
|
2064
2098
|
{
|
|
2065
2099
|
total: o.length,
|
|
2066
2100
|
active: c,
|
|
2067
|
-
onSelect: (
|
|
2068
|
-
var
|
|
2069
|
-
|
|
2101
|
+
onSelect: (m) => {
|
|
2102
|
+
var E;
|
|
2103
|
+
f(m), (E = s.current) == null || E.go(m);
|
|
2070
2104
|
}
|
|
2071
2105
|
}
|
|
2072
2106
|
) })
|
|
@@ -2085,15 +2119,15 @@ const mn = (t, n) => {
|
|
|
2085
2119
|
}, c = Array.isArray(o) ? o[a] : o;
|
|
2086
2120
|
et(() => {
|
|
2087
2121
|
if (!r.current || !s.current || typeof ResizeObserver == "undefined") return;
|
|
2088
|
-
const
|
|
2089
|
-
|
|
2122
|
+
const x = r.current, v = s.current, d = () => {
|
|
2123
|
+
x.style.setProperty(
|
|
2090
2124
|
"--orc-co-bottomH",
|
|
2091
|
-
`${
|
|
2125
|
+
`${v.offsetHeight + 16}px`
|
|
2092
2126
|
);
|
|
2093
|
-
},
|
|
2094
|
-
return
|
|
2127
|
+
}, C = new ResizeObserver(d);
|
|
2128
|
+
return C.observe(v), d(), () => C.disconnect();
|
|
2095
2129
|
}, []);
|
|
2096
|
-
const
|
|
2130
|
+
const f = [
|
|
2097
2131
|
"orc-co-wrap",
|
|
2098
2132
|
n ? "orc-co-fullBleed" : "",
|
|
2099
2133
|
t
|
|
@@ -2102,10 +2136,10 @@ const mn = (t, n) => {
|
|
|
2102
2136
|
"section",
|
|
2103
2137
|
{
|
|
2104
2138
|
ref: r,
|
|
2105
|
-
className:
|
|
2139
|
+
className: f,
|
|
2106
2140
|
"aria-label": i || c.imgAlt || "Club Olimpo",
|
|
2107
2141
|
children: /* @__PURE__ */ e("div", { ref: s, children: /* @__PURE__ */ e(
|
|
2108
|
-
|
|
2142
|
+
Pt,
|
|
2109
2143
|
{
|
|
2110
2144
|
text: c.text,
|
|
2111
2145
|
onClick: l,
|
|
@@ -2127,115 +2161,115 @@ function Cn({
|
|
|
2127
2161
|
onViewMore: a,
|
|
2128
2162
|
className: i = ""
|
|
2129
2163
|
}) {
|
|
2130
|
-
const r = H(null), [s, l] = D({ isStart: !0, isEnd: !1 }), [c,
|
|
2131
|
-
var
|
|
2132
|
-
(
|
|
2164
|
+
const r = H(null), [s, l] = D({ isStart: !0, isEnd: !1 }), [c, f] = D([]), x = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group/prepackcoupon.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764284658793&prePackCouponTags=CUSTOM", v = () => {
|
|
2165
|
+
var S;
|
|
2166
|
+
(S = r.current) == null || S.prev();
|
|
2133
2167
|
}, d = () => {
|
|
2134
|
-
var
|
|
2135
|
-
(
|
|
2136
|
-
},
|
|
2137
|
-
|
|
2168
|
+
var S;
|
|
2169
|
+
(S = r.current) == null || S.next();
|
|
2170
|
+
}, C = () => {
|
|
2171
|
+
Jt();
|
|
2138
2172
|
};
|
|
2139
2173
|
async function y() {
|
|
2140
|
-
var
|
|
2174
|
+
var S, m, E;
|
|
2141
2175
|
try {
|
|
2142
|
-
const
|
|
2143
|
-
if (
|
|
2176
|
+
const I = await (await fetch(x)).json(), N = (E = (m = (S = I == null ? void 0 : I.group) == null ? void 0 : S.groups) == null ? void 0 : m[0]) == null ? void 0 : E.id;
|
|
2177
|
+
if (!N) {
|
|
2144
2178
|
console.error("Could not extract group ID");
|
|
2145
2179
|
return;
|
|
2146
2180
|
}
|
|
2147
|
-
const F = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${
|
|
2148
|
-
|
|
2149
|
-
|
|
2181
|
+
const F = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${N}.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764283566783&prePackCouponTags=CUSTOM`, L = await (await fetch(F)).json();
|
|
2182
|
+
f(
|
|
2183
|
+
O(L.events, L.betOffers, L.prePackCoupons)
|
|
2150
2184
|
);
|
|
2151
|
-
} catch (
|
|
2152
|
-
console.error("loadDataEventSpecial error:",
|
|
2185
|
+
} catch (k) {
|
|
2186
|
+
console.error("loadDataEventSpecial error:", k);
|
|
2153
2187
|
}
|
|
2154
2188
|
}
|
|
2155
|
-
function
|
|
2156
|
-
const
|
|
2157
|
-
for (const
|
|
2158
|
-
const
|
|
2159
|
-
var
|
|
2160
|
-
|
|
2161
|
-
const
|
|
2162
|
-
(
|
|
2189
|
+
function O(S, m, E) {
|
|
2190
|
+
const k = [];
|
|
2191
|
+
for (const I of E) {
|
|
2192
|
+
const N = M([I]), F = w(I), P = m.reduce((L, p) => {
|
|
2193
|
+
var _, g;
|
|
2194
|
+
L[p.eventId] || (L[p.eventId] = []);
|
|
2195
|
+
const u = p.outcomes.filter(
|
|
2196
|
+
(b) => N.has(b.id)
|
|
2163
2197
|
);
|
|
2164
|
-
if (
|
|
2165
|
-
const
|
|
2166
|
-
(
|
|
2167
|
-
),
|
|
2168
|
-
...
|
|
2169
|
-
position:
|
|
2198
|
+
if (u.length > 0) {
|
|
2199
|
+
const b = Array.from(
|
|
2200
|
+
(g = (_ = F == null ? void 0 : F[0]) == null ? void 0 : _.requiredOutcomeIds) != null ? g : []
|
|
2201
|
+
), $ = u.map((R) => ({
|
|
2202
|
+
...R,
|
|
2203
|
+
position: b.indexOf(R.id)
|
|
2170
2204
|
}));
|
|
2171
|
-
|
|
2172
|
-
...
|
|
2173
|
-
outcomes:
|
|
2205
|
+
L[p.eventId].push({
|
|
2206
|
+
...p,
|
|
2207
|
+
outcomes: $
|
|
2174
2208
|
});
|
|
2175
2209
|
}
|
|
2176
|
-
return
|
|
2210
|
+
return L;
|
|
2177
2211
|
}, {});
|
|
2178
|
-
|
|
2179
|
-
if (
|
|
2180
|
-
const
|
|
2181
|
-
let
|
|
2182
|
-
for (const
|
|
2183
|
-
if ([...
|
|
2184
|
-
|
|
2212
|
+
S.forEach((L) => {
|
|
2213
|
+
if (L.id !== I.prePackCouponRows[0].eventId) return;
|
|
2214
|
+
const p = N;
|
|
2215
|
+
let u = null;
|
|
2216
|
+
for (const _ of F)
|
|
2217
|
+
if ([..._.requiredOutcomeIds].every((b) => p.has(b))) {
|
|
2218
|
+
u = _.decimal;
|
|
2185
2219
|
break;
|
|
2186
2220
|
}
|
|
2187
|
-
|
|
2188
|
-
...
|
|
2189
|
-
combinadoTotal:
|
|
2190
|
-
betoffers:
|
|
2191
|
-
couponId:
|
|
2221
|
+
k.push({
|
|
2222
|
+
...L,
|
|
2223
|
+
combinadoTotal: u,
|
|
2224
|
+
betoffers: P[L.id] || [],
|
|
2225
|
+
couponId: I.id
|
|
2192
2226
|
// optional for tracking
|
|
2193
2227
|
});
|
|
2194
2228
|
});
|
|
2195
2229
|
}
|
|
2196
|
-
return
|
|
2230
|
+
return k;
|
|
2197
2231
|
}
|
|
2198
|
-
function
|
|
2199
|
-
var
|
|
2200
|
-
const
|
|
2201
|
-
for (const
|
|
2202
|
-
if (
|
|
2203
|
-
const
|
|
2204
|
-
|
|
2232
|
+
function w(S) {
|
|
2233
|
+
var E;
|
|
2234
|
+
const m = [];
|
|
2235
|
+
for (const k of S.prePackCouponRows)
|
|
2236
|
+
if (k.type === "BET_BUILDER" && ((E = k.group) != null && E.groups)) {
|
|
2237
|
+
const I = /* @__PURE__ */ new Set();
|
|
2238
|
+
k.group.groups.forEach((N) => {
|
|
2205
2239
|
var F;
|
|
2206
|
-
(F =
|
|
2207
|
-
}),
|
|
2208
|
-
requiredOutcomeIds:
|
|
2209
|
-
decimal:
|
|
2240
|
+
(F = N.outcomes) == null || F.forEach((P) => I.add(P.id));
|
|
2241
|
+
}), m.push({
|
|
2242
|
+
requiredOutcomeIds: I,
|
|
2243
|
+
decimal: k.odds.decimal
|
|
2210
2244
|
});
|
|
2211
2245
|
}
|
|
2212
|
-
return
|
|
2246
|
+
return m;
|
|
2213
2247
|
}
|
|
2214
|
-
function S
|
|
2215
|
-
var
|
|
2216
|
-
const
|
|
2217
|
-
for (const
|
|
2218
|
-
for (const
|
|
2219
|
-
|
|
2248
|
+
function M(S) {
|
|
2249
|
+
var E;
|
|
2250
|
+
const m = /* @__PURE__ */ new Set();
|
|
2251
|
+
for (const k of S)
|
|
2252
|
+
for (const I of k.prePackCouponRows)
|
|
2253
|
+
I.type === "BET_BUILDER" && ((E = I.group) != null && E.groups) && I.group.groups.forEach((N) => {
|
|
2220
2254
|
var F;
|
|
2221
|
-
(F =
|
|
2222
|
-
}),
|
|
2223
|
-
return
|
|
2255
|
+
(F = N.outcomes) == null || F.forEach((P) => m.add(P.id));
|
|
2256
|
+
}), I.type === "SIMPLE" && I.outcome && m.add(I.outcome.id);
|
|
2257
|
+
return m;
|
|
2224
2258
|
}
|
|
2225
|
-
|
|
2259
|
+
q(() => {
|
|
2226
2260
|
y();
|
|
2227
2261
|
}, []);
|
|
2228
|
-
const
|
|
2229
|
-
return !c || c.length === 0 ? null : /* @__PURE__ */ e("section", { className:
|
|
2262
|
+
const B = i || void 0;
|
|
2263
|
+
return !c || c.length === 0 ? null : /* @__PURE__ */ e("section", { className: B, style: {
|
|
2230
2264
|
// paddingLeft: 16,
|
|
2231
2265
|
// paddingRight: 16,
|
|
2232
2266
|
width: "100%",
|
|
2233
2267
|
boxSizing: "border-box"
|
|
2234
|
-
}, children: /* @__PURE__ */
|
|
2235
|
-
/* @__PURE__ */
|
|
2268
|
+
}, children: /* @__PURE__ */ h(z, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
2269
|
+
/* @__PURE__ */ h(Y, { spacing: 1.5, columns: "1fr auto ", justify: "start", children: [
|
|
2236
2270
|
/* @__PURE__ */ e(ee, { title: n, iconUrl: o, size: "md" }),
|
|
2237
|
-
/* @__PURE__ */
|
|
2238
|
-
/* @__PURE__ */
|
|
2271
|
+
/* @__PURE__ */ h("div", { className: En.controls, children: [
|
|
2272
|
+
/* @__PURE__ */ h(Y, { spacing: 1, columns: "auto auto", children: [
|
|
2239
2273
|
/* @__PURE__ */ e(
|
|
2240
2274
|
G,
|
|
2241
2275
|
{
|
|
@@ -2243,7 +2277,7 @@ function Cn({
|
|
|
2243
2277
|
variant: "secondary",
|
|
2244
2278
|
iconOnly: !0,
|
|
2245
2279
|
leftIcon: /* @__PURE__ */ e(ye, {}),
|
|
2246
|
-
onClick:
|
|
2280
|
+
onClick: v,
|
|
2247
2281
|
disabled: s.isStart
|
|
2248
2282
|
}
|
|
2249
2283
|
),
|
|
@@ -2259,14 +2293,14 @@ function Cn({
|
|
|
2259
2293
|
}
|
|
2260
2294
|
)
|
|
2261
2295
|
] }),
|
|
2262
|
-
/* @__PURE__ */ e(G, { variant: "secondary", onClick:
|
|
2296
|
+
/* @__PURE__ */ e(G, { variant: "secondary", onClick: C, children: "Ver más" })
|
|
2263
2297
|
] })
|
|
2264
2298
|
] }),
|
|
2265
2299
|
/* @__PURE__ */ e(
|
|
2266
2300
|
te,
|
|
2267
2301
|
{
|
|
2268
2302
|
ref: r,
|
|
2269
|
-
items: c.filter((
|
|
2303
|
+
items: c.filter((S) => S.combinadoTotal !== null),
|
|
2270
2304
|
perPage: void 0,
|
|
2271
2305
|
gap: "16px",
|
|
2272
2306
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
@@ -2275,8 +2309,8 @@ function Cn({
|
|
|
2275
2309
|
breakpoints: {
|
|
2276
2310
|
768: { perPage: 1.2, gap: "12px", padding: { left: "0px", right: "0px" } }
|
|
2277
2311
|
},
|
|
2278
|
-
renderItem: (
|
|
2279
|
-
onMove: ({ isStart:
|
|
2312
|
+
renderItem: (S) => /* @__PURE__ */ e(Xt, { event: S }),
|
|
2313
|
+
onMove: ({ isStart: S, isEnd: m }) => l({ isStart: S, isEnd: m })
|
|
2280
2314
|
}
|
|
2281
2315
|
)
|
|
2282
2316
|
] }) });
|
|
@@ -2285,28 +2319,28 @@ function kn({}) {
|
|
|
2285
2319
|
return /* @__PURE__ */ e(
|
|
2286
2320
|
"div",
|
|
2287
2321
|
{
|
|
2288
|
-
className:
|
|
2289
|
-
children: /* @__PURE__ */
|
|
2290
|
-
/* @__PURE__ */
|
|
2322
|
+
className: Ve.cardWrapper,
|
|
2323
|
+
children: /* @__PURE__ */ h(z, { direction: "column", spacing: 1, children: [
|
|
2324
|
+
/* @__PURE__ */ h(z, { spacing: 1, direction: "row", children: [
|
|
2291
2325
|
/* @__PURE__ */ e(A, { variant: "text", width: "60%", height: 24 }),
|
|
2292
2326
|
/* @__PURE__ */ e(A, { variant: "text", width: "39%", height: 24 })
|
|
2293
2327
|
] }),
|
|
2294
|
-
/* @__PURE__ */
|
|
2328
|
+
/* @__PURE__ */ h(z, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
2295
2329
|
/* @__PURE__ */ e(A, { variant: "circular", width: 32, height: 40 }),
|
|
2296
2330
|
/* @__PURE__ */ e(A, { variant: "text", width: 40, height: 40 }),
|
|
2297
2331
|
/* @__PURE__ */ e(A, { variant: "circular", width: 32, height: 40 })
|
|
2298
2332
|
] }),
|
|
2299
|
-
/* @__PURE__ */
|
|
2333
|
+
/* @__PURE__ */ h(z, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
2300
2334
|
/* @__PURE__ */ e(A, { variant: "text", width: 32, height: 16 }),
|
|
2301
2335
|
/* @__PURE__ */ e(A, { variant: "text", width: 40, height: 16 }),
|
|
2302
2336
|
/* @__PURE__ */ e(A, { variant: "text", width: 32, height: 16 })
|
|
2303
2337
|
] }),
|
|
2304
|
-
/* @__PURE__ */
|
|
2338
|
+
/* @__PURE__ */ h(z, { spacing: 2, direction: "row", children: [
|
|
2305
2339
|
/* @__PURE__ */ e(A, { variant: "rounded", width: 88, height: 16 }),
|
|
2306
2340
|
/* @__PURE__ */ e(A, { variant: "rounded", width: 88, height: 16 }),
|
|
2307
2341
|
/* @__PURE__ */ e(A, { variant: "rounded", width: 88, height: 16 })
|
|
2308
2342
|
] }),
|
|
2309
|
-
/* @__PURE__ */
|
|
2343
|
+
/* @__PURE__ */ h(z, { spacing: 2, direction: "row", children: [
|
|
2310
2344
|
/* @__PURE__ */ e(A, { variant: "rounded", width: 88, height: 32 }),
|
|
2311
2345
|
/* @__PURE__ */ e(A, { variant: "rounded", width: 88, height: 32 }),
|
|
2312
2346
|
/* @__PURE__ */ e(A, { variant: "rounded", width: 88, height: 32 })
|
|
@@ -2318,7 +2352,7 @@ function kn({}) {
|
|
|
2318
2352
|
const On = "oraculo__FadeItemWrapper-module__fadeWrapper___kFOH4", In = {
|
|
2319
2353
|
fadeWrapper: On
|
|
2320
2354
|
};
|
|
2321
|
-
function
|
|
2355
|
+
function ge({ children: t }) {
|
|
2322
2356
|
return /* @__PURE__ */ e("div", { className: In.fadeWrapper, children: t });
|
|
2323
2357
|
}
|
|
2324
2358
|
function $n({
|
|
@@ -2328,81 +2362,81 @@ function $n({
|
|
|
2328
2362
|
onViewMore: a,
|
|
2329
2363
|
className: i = ""
|
|
2330
2364
|
}) {
|
|
2331
|
-
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 = H(null), [l, c] = D({ isStart: !0, isEnd: !1 }), [
|
|
2332
|
-
var
|
|
2333
|
-
(
|
|
2334
|
-
},
|
|
2335
|
-
var
|
|
2336
|
-
(
|
|
2337
|
-
},
|
|
2338
|
-
|
|
2339
|
-
},
|
|
2340
|
-
var
|
|
2341
|
-
if (
|
|
2342
|
-
const
|
|
2343
|
-
return !
|
|
2344
|
-
}), F =
|
|
2345
|
-
var
|
|
2365
|
+
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 = H(null), [l, c] = D({ isStart: !0, isEnd: !1 }), [f, x] = D(null), [v, d] = D({}), [C, y] = D({ start: null, end: null }), O = H(!1), [w, M] = D(null), B = H(!1), S = He(C, 300), m = () => {
|
|
2366
|
+
var p;
|
|
2367
|
+
(p = s.current) == null || p.prev();
|
|
2368
|
+
}, E = () => {
|
|
2369
|
+
var p;
|
|
2370
|
+
(p = s.current) == null || p.next();
|
|
2371
|
+
}, k = () => {
|
|
2372
|
+
qt();
|
|
2373
|
+
}, I = ["esports", "cyber"], N = (p) => p.filter((u) => {
|
|
2374
|
+
var g;
|
|
2375
|
+
if (u.event.sport !== "FOOTBALL") return !1;
|
|
2376
|
+
const _ = ((g = u.event.group) == null ? void 0 : g.toLowerCase()) || "";
|
|
2377
|
+
return !I.some((b) => _.includes(b));
|
|
2378
|
+
}), F = ue(async () => {
|
|
2379
|
+
var p;
|
|
2346
2380
|
try {
|
|
2347
|
-
let
|
|
2348
|
-
if (!
|
|
2349
|
-
|
|
2381
|
+
let u = w;
|
|
2382
|
+
if (!B.current && w === null) {
|
|
2383
|
+
B.current = !0;
|
|
2350
2384
|
try {
|
|
2351
2385
|
const j = await fetch(
|
|
2352
2386
|
"https://api.mktolimpo.com/api/kambi/eventos/orden"
|
|
2353
2387
|
), U = j.ok ? await j.json() : null;
|
|
2354
|
-
|
|
2388
|
+
u = ((p = U == null ? void 0 : U.data) == null ? void 0 : p.event_ids) || [];
|
|
2355
2389
|
} catch {
|
|
2356
|
-
|
|
2390
|
+
u = [];
|
|
2357
2391
|
}
|
|
2358
|
-
|
|
2392
|
+
M(u);
|
|
2359
2393
|
}
|
|
2360
|
-
const
|
|
2361
|
-
if (!
|
|
2362
|
-
|
|
2394
|
+
const g = await (await fetch(r)).json(), b = N(g.events);
|
|
2395
|
+
if (!u || u.length === 0) {
|
|
2396
|
+
x(b);
|
|
2363
2397
|
return;
|
|
2364
2398
|
}
|
|
2365
|
-
const
|
|
2366
|
-
|
|
2367
|
-
),
|
|
2368
|
-
const
|
|
2369
|
-
return
|
|
2399
|
+
const $ = new Map(
|
|
2400
|
+
u.map((j, U) => [String(j), U])
|
|
2401
|
+
), R = [...b].sort((j, U) => {
|
|
2402
|
+
const W = $.get(String(j.event.id)), K = $.get(String(U.event.id));
|
|
2403
|
+
return W !== void 0 && K !== void 0 ? W - K : W !== void 0 ? -1 : K !== void 0 ? 1 : 0;
|
|
2370
2404
|
});
|
|
2371
|
-
|
|
2372
|
-
} catch (
|
|
2373
|
-
console.error(
|
|
2405
|
+
x(R);
|
|
2406
|
+
} catch (u) {
|
|
2407
|
+
console.error(u);
|
|
2374
2408
|
}
|
|
2375
|
-
}, [
|
|
2376
|
-
|
|
2409
|
+
}, [w]);
|
|
2410
|
+
q(() => {
|
|
2377
2411
|
F();
|
|
2378
|
-
const
|
|
2379
|
-
return () => clearInterval(
|
|
2380
|
-
}, [F]),
|
|
2381
|
-
if (
|
|
2412
|
+
const p = setInterval(F, 2e4);
|
|
2413
|
+
return () => clearInterval(p);
|
|
2414
|
+
}, [F]), q(() => {
|
|
2415
|
+
if (S.start === null || S.end === null || !(f != null && f.length) || O.current)
|
|
2382
2416
|
return;
|
|
2383
|
-
const
|
|
2384
|
-
|
|
2385
|
-
d((
|
|
2386
|
-
|
|
2387
|
-
...
|
|
2417
|
+
const p = 3, u = Math.max(0, S.start - p), _ = Math.min(f.length - 1, S.end + p), g = f.slice(u, _ + 1).map((b) => b == null ? void 0 : b.event.id).filter(Boolean).filter((b) => v[b] === void 0);
|
|
2418
|
+
g.length && (O.current = !0, Ge(g).then((b) => {
|
|
2419
|
+
d(($) => ({
|
|
2420
|
+
...$,
|
|
2421
|
+
...b.events
|
|
2388
2422
|
}));
|
|
2389
|
-
}).catch((
|
|
2390
|
-
console.error("Jersey fetch error",
|
|
2423
|
+
}).catch((b) => {
|
|
2424
|
+
console.error("Jersey fetch error", b);
|
|
2391
2425
|
}).finally(() => {
|
|
2392
|
-
|
|
2426
|
+
O.current = !1;
|
|
2393
2427
|
}));
|
|
2394
|
-
}, [
|
|
2395
|
-
const
|
|
2396
|
-
return !
|
|
2428
|
+
}, [S, f, v]);
|
|
2429
|
+
const P = i || void 0, L = f === null;
|
|
2430
|
+
return !L && f.length === 0 ? null : /* @__PURE__ */ e("section", { className: P, style: {
|
|
2397
2431
|
// paddingLeft: 16,
|
|
2398
2432
|
// paddingRight: 16,
|
|
2399
2433
|
width: "100%",
|
|
2400
2434
|
boxSizing: "border-box"
|
|
2401
|
-
}, children: /* @__PURE__ */
|
|
2402
|
-
/* @__PURE__ */
|
|
2435
|
+
}, children: /* @__PURE__ */ h(z, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
2436
|
+
/* @__PURE__ */ h(Y, { spacing: 1.5, columns: "1fr auto ", justify: "start", children: [
|
|
2403
2437
|
/* @__PURE__ */ e(ee, { title: n, iconUrl: o, size: "md" }),
|
|
2404
|
-
/* @__PURE__ */
|
|
2405
|
-
/* @__PURE__ */
|
|
2438
|
+
/* @__PURE__ */ h("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
|
|
2439
|
+
/* @__PURE__ */ h(Y, { spacing: 1, columns: "auto auto", children: [
|
|
2406
2440
|
/* @__PURE__ */ e(
|
|
2407
2441
|
G,
|
|
2408
2442
|
{
|
|
@@ -2410,7 +2444,7 @@ function $n({
|
|
|
2410
2444
|
variant: "secondary",
|
|
2411
2445
|
iconOnly: !0,
|
|
2412
2446
|
leftIcon: /* @__PURE__ */ e(ye, {}),
|
|
2413
|
-
onClick:
|
|
2447
|
+
onClick: m,
|
|
2414
2448
|
disabled: l.isStart
|
|
2415
2449
|
}
|
|
2416
2450
|
),
|
|
@@ -2421,19 +2455,19 @@ function $n({
|
|
|
2421
2455
|
variant: "secondary",
|
|
2422
2456
|
iconOnly: !0,
|
|
2423
2457
|
rightIcon: /* @__PURE__ */ e(Se, {}),
|
|
2424
|
-
onClick:
|
|
2458
|
+
onClick: E,
|
|
2425
2459
|
disabled: l.isEnd
|
|
2426
2460
|
}
|
|
2427
2461
|
)
|
|
2428
2462
|
] }),
|
|
2429
|
-
/* @__PURE__ */ e(G, { variant: "secondary", onClick:
|
|
2463
|
+
/* @__PURE__ */ e(G, { variant: "secondary", onClick: k, children: "Ver más" })
|
|
2430
2464
|
] })
|
|
2431
2465
|
] }),
|
|
2432
2466
|
/* @__PURE__ */ e(
|
|
2433
2467
|
te,
|
|
2434
2468
|
{
|
|
2435
2469
|
ref: s,
|
|
2436
|
-
items:
|
|
2470
|
+
items: L ? Array(4).fill({}) : f.slice(0, 20),
|
|
2437
2471
|
perPage: void 0,
|
|
2438
2472
|
enableHorizontalWheel: !0,
|
|
2439
2473
|
gap: "16px",
|
|
@@ -2443,21 +2477,21 @@ function $n({
|
|
|
2443
2477
|
768: { gap: "8px", focus: "center" },
|
|
2444
2478
|
1024: { gap: "10px", focus: "center" }
|
|
2445
2479
|
},
|
|
2446
|
-
renderItem: (
|
|
2447
|
-
var
|
|
2448
|
-
const
|
|
2449
|
-
return
|
|
2480
|
+
renderItem: (p) => {
|
|
2481
|
+
var g;
|
|
2482
|
+
const u = ((g = p.event) == null ? void 0 : g.id) || p.eventId, _ = u in v ? v[u] : void 0;
|
|
2483
|
+
return L ? /* @__PURE__ */ e(ge, { children: /* @__PURE__ */ e(kn, {}) }) : /* @__PURE__ */ e(ge, { children: /* @__PURE__ */ e(
|
|
2450
2484
|
Qt,
|
|
2451
2485
|
{
|
|
2452
|
-
...
|
|
2453
|
-
jersey:
|
|
2486
|
+
...p,
|
|
2487
|
+
jersey: _
|
|
2454
2488
|
}
|
|
2455
2489
|
) });
|
|
2456
2490
|
},
|
|
2457
|
-
onMove: ({ isStart:
|
|
2458
|
-
c({ isStart:
|
|
2459
|
-
start:
|
|
2460
|
-
end:
|
|
2491
|
+
onMove: ({ isStart: p, isEnd: u, visibleStart: _, visibleEnd: g }) => {
|
|
2492
|
+
c({ isStart: p, isEnd: u }), y({
|
|
2493
|
+
start: _,
|
|
2494
|
+
end: g
|
|
2461
2495
|
});
|
|
2462
2496
|
}
|
|
2463
2497
|
}
|
|
@@ -2465,25 +2499,25 @@ function $n({
|
|
|
2465
2499
|
] }) });
|
|
2466
2500
|
}
|
|
2467
2501
|
function Nn() {
|
|
2468
|
-
return /* @__PURE__ */
|
|
2469
|
-
/* @__PURE__ */ e(
|
|
2470
|
-
/* @__PURE__ */ e("div", { className: ne.cardBackground, children: /* @__PURE__ */
|
|
2471
|
-
/* @__PURE__ */
|
|
2502
|
+
return /* @__PURE__ */ h("div", { className: ne.cardContainer, children: [
|
|
2503
|
+
/* @__PURE__ */ e(je, { title: "" }),
|
|
2504
|
+
/* @__PURE__ */ e("div", { className: ne.cardBackground, children: /* @__PURE__ */ h(z, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
2505
|
+
/* @__PURE__ */ h(z, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
2472
2506
|
/* @__PURE__ */ e(A, { variant: "circular", width: 48, height: 48 }),
|
|
2473
2507
|
/* @__PURE__ */ e(A, { variant: "circular", width: 48, height: 48 })
|
|
2474
2508
|
] }),
|
|
2475
|
-
/* @__PURE__ */
|
|
2476
|
-
/* @__PURE__ */
|
|
2509
|
+
/* @__PURE__ */ h(z, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
2510
|
+
/* @__PURE__ */ h(z, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
2477
2511
|
/* @__PURE__ */ e(A, { variant: "text", width: 80, height: 12 }),
|
|
2478
2512
|
/* @__PURE__ */ e(A, { variant: "text", width: 80, height: 12 })
|
|
2479
2513
|
] }),
|
|
2480
2514
|
/* @__PURE__ */ e(z, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ e(A, { variant: "text", width: 160, height: 12 }) }),
|
|
2481
|
-
/* @__PURE__ */
|
|
2515
|
+
/* @__PURE__ */ h(z, { direction: "row", spacing: 1, children: [
|
|
2482
2516
|
/* @__PURE__ */ e(A, { variant: "text", width: 80, height: 16 }),
|
|
2483
2517
|
/* @__PURE__ */ e(A, { variant: "text", width: 80, height: 16 }),
|
|
2484
2518
|
/* @__PURE__ */ e(A, { variant: "text", width: 80, height: 16 })
|
|
2485
2519
|
] }),
|
|
2486
|
-
/* @__PURE__ */ e("div", { className: ne.jugadas, children: /* @__PURE__ */
|
|
2520
|
+
/* @__PURE__ */ e("div", { className: ne.jugadas, children: /* @__PURE__ */ h(z, { direction: "row", spacing: 1, children: [
|
|
2487
2521
|
/* @__PURE__ */ e(A, { variant: "rounded", width: 80, height: 32 }),
|
|
2488
2522
|
/* @__PURE__ */ e(A, { variant: "rounded", width: 80, height: 32 }),
|
|
2489
2523
|
/* @__PURE__ */ e(A, { variant: "rounded", width: 80, height: 32 })
|
|
@@ -2492,12 +2526,12 @@ function Nn() {
|
|
|
2492
2526
|
] }) })
|
|
2493
2527
|
] });
|
|
2494
2528
|
}
|
|
2495
|
-
const Tn = "oraculo__OraculoSeccionEventoSemana-module__wrapper___eqVq-",
|
|
2529
|
+
const Tn = "oraculo__OraculoSeccionEventoSemana-module__wrapper___eqVq-", Fn = "oraculo__OraculoSeccionEventoSemana-module__container___5yFQs", Rn = "oraculo__OraculoSeccionEventoSemana-module__buttonWrapper___-6IDT", we = {
|
|
2496
2530
|
wrapper: Tn,
|
|
2497
|
-
container:
|
|
2498
|
-
buttonWrapper:
|
|
2531
|
+
container: Fn,
|
|
2532
|
+
buttonWrapper: Rn
|
|
2499
2533
|
};
|
|
2500
|
-
async function
|
|
2534
|
+
async function Mn(t, n = 2, o) {
|
|
2501
2535
|
const a = [];
|
|
2502
2536
|
for (let i = 0; i < t.length; i += n) {
|
|
2503
2537
|
if (o.aborted)
|
|
@@ -2514,7 +2548,7 @@ function Ln(t) {
|
|
|
2514
2548
|
(n, o) => new Date(n.start).getTime() - new Date(o.start).getTime()
|
|
2515
2549
|
);
|
|
2516
2550
|
}
|
|
2517
|
-
function
|
|
2551
|
+
function Wn(t) {
|
|
2518
2552
|
const n = /* @__PURE__ */ new Date(), o = new Date(n.getTime() + 480 * 60 * 60 * 1e3);
|
|
2519
2553
|
return t.filter((a) => {
|
|
2520
2554
|
if (!a.start) return !1;
|
|
@@ -2522,7 +2556,7 @@ function Bn(t) {
|
|
|
2522
2556
|
return i >= n && i <= o;
|
|
2523
2557
|
});
|
|
2524
2558
|
}
|
|
2525
|
-
function
|
|
2559
|
+
function Bn(t, n) {
|
|
2526
2560
|
const a = n.filter((i) => {
|
|
2527
2561
|
var r;
|
|
2528
2562
|
return ((r = i.betOfferType) == null ? void 0 : r.id) === 2;
|
|
@@ -2532,141 +2566,141 @@ function Pn(t, n) {
|
|
|
2532
2566
|
outcome: a[i.id]
|
|
2533
2567
|
}));
|
|
2534
2568
|
}
|
|
2535
|
-
function
|
|
2569
|
+
function Pn({
|
|
2536
2570
|
items: t,
|
|
2537
2571
|
title: n = "En vivo",
|
|
2538
2572
|
iconUrl: o,
|
|
2539
2573
|
onViewMore: a,
|
|
2540
2574
|
className: i = ""
|
|
2541
2575
|
}) {
|
|
2542
|
-
const r = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE", s = H(null), [l, c] = D({ isStart: !0, isEnd: !1 }), [
|
|
2576
|
+
const r = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE", s = H(null), [l, c] = D({ isStart: !0, isEnd: !1 }), [f, x] = D(null);
|
|
2543
2577
|
H(/* @__PURE__ */ new Set());
|
|
2544
|
-
const [
|
|
2545
|
-
|
|
2578
|
+
const [v, d] = D({}), [C, y] = D({ start: null, end: null }), O = "channel_id=1&client_id=200&competitionId=undefined&lang=es_PE&market=PE&useCombined=true", w = He(C, 250), M = H(!1), B = () => {
|
|
2579
|
+
Kt();
|
|
2546
2580
|
};
|
|
2547
|
-
async function
|
|
2548
|
-
var
|
|
2549
|
-
let F = [],
|
|
2581
|
+
async function S(N) {
|
|
2582
|
+
var L, p;
|
|
2583
|
+
let F = [], P = [];
|
|
2550
2584
|
try {
|
|
2551
|
-
const
|
|
2585
|
+
const u = await fetch(
|
|
2552
2586
|
"https://api.mktolimpo.com/api/kambi/eventos/orden",
|
|
2553
|
-
{ signal:
|
|
2587
|
+
{ signal: N }
|
|
2554
2588
|
);
|
|
2555
|
-
if (
|
|
2556
|
-
const
|
|
2557
|
-
F = ((
|
|
2589
|
+
if (u.ok) {
|
|
2590
|
+
const _ = await u.json();
|
|
2591
|
+
F = ((L = _ == null ? void 0 : _.data) == null ? void 0 : L.group_ids) || [], P = ((p = _ == null ? void 0 : _.data) == null ? void 0 : p.event_ids) || [];
|
|
2558
2592
|
}
|
|
2559
|
-
} catch (
|
|
2560
|
-
|
|
2593
|
+
} catch (u) {
|
|
2594
|
+
u.name !== "AbortError" && console.warn("Order API not available, using default group order");
|
|
2561
2595
|
return;
|
|
2562
2596
|
}
|
|
2563
2597
|
try {
|
|
2564
|
-
const
|
|
2565
|
-
(
|
|
2598
|
+
const g = (await (await fetch(r, { signal: N })).json()).group.groups.find(
|
|
2599
|
+
(W) => W.englishName === "Football"
|
|
2566
2600
|
);
|
|
2567
|
-
if (!
|
|
2601
|
+
if (!g || !Array.isArray(g.groups)) {
|
|
2568
2602
|
console.error("Football groups not found");
|
|
2569
2603
|
return;
|
|
2570
2604
|
}
|
|
2571
|
-
let
|
|
2605
|
+
let b = [...g.groups];
|
|
2572
2606
|
if (F.length > 0) {
|
|
2573
|
-
const
|
|
2574
|
-
F.map((
|
|
2607
|
+
const W = new Map(
|
|
2608
|
+
F.map((K, re) => [K, re])
|
|
2575
2609
|
);
|
|
2576
|
-
|
|
2577
|
-
const ae =
|
|
2578
|
-
return ae !== void 0 &&
|
|
2610
|
+
b.sort((K, re) => {
|
|
2611
|
+
const ae = W.get(String(K.id)), xe = W.get(String(re.id));
|
|
2612
|
+
return ae !== void 0 && xe !== void 0 ? ae - xe : ae !== void 0 ? -1 : xe !== void 0 ? 1 : 0;
|
|
2579
2613
|
});
|
|
2580
2614
|
}
|
|
2581
|
-
const
|
|
2582
|
-
const
|
|
2583
|
-
if (
|
|
2584
|
-
const re =
|
|
2615
|
+
const R = b.slice(0, 5), j = (W) => {
|
|
2616
|
+
const K = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football";
|
|
2617
|
+
if (W.groups && W.groups.length > 0) {
|
|
2618
|
+
const re = W.groups[0];
|
|
2585
2619
|
return [
|
|
2586
|
-
`${
|
|
2620
|
+
`${K}/${W.termKey}/${re.termKey}/all/matches.json?${O}`
|
|
2587
2621
|
];
|
|
2588
2622
|
}
|
|
2589
2623
|
return [
|
|
2590
|
-
`${
|
|
2624
|
+
`${K}/${W.termKey}/all/all/matches.json?${O}`
|
|
2591
2625
|
];
|
|
2592
|
-
}, U =
|
|
2593
|
-
|
|
2626
|
+
}, U = R.flatMap(j);
|
|
2627
|
+
m(
|
|
2594
2628
|
U,
|
|
2595
|
-
|
|
2596
|
-
|
|
2629
|
+
P,
|
|
2630
|
+
N
|
|
2597
2631
|
);
|
|
2598
|
-
} catch (
|
|
2599
|
-
console.error(
|
|
2632
|
+
} catch (u) {
|
|
2633
|
+
console.error(u);
|
|
2600
2634
|
}
|
|
2601
2635
|
}
|
|
2602
|
-
async function
|
|
2636
|
+
async function m(N, F, P) {
|
|
2603
2637
|
try {
|
|
2604
|
-
const
|
|
2605
|
-
let
|
|
2606
|
-
|
|
2607
|
-
|
|
2638
|
+
const L = await Mn(N, 2, P);
|
|
2639
|
+
let p = [], u = [];
|
|
2640
|
+
L.forEach(($) => {
|
|
2641
|
+
$.events && (p.push(...$.events.map((R) => R.event)), u.push(...$.events.flatMap((R) => R.betOffers || [])));
|
|
2608
2642
|
});
|
|
2609
|
-
const
|
|
2610
|
-
let
|
|
2643
|
+
const _ = Bn(p, u), g = Ln(Wn(_));
|
|
2644
|
+
let b = g;
|
|
2611
2645
|
if (F.length > 0) {
|
|
2612
|
-
const
|
|
2613
|
-
F.map((
|
|
2614
|
-
String(
|
|
2646
|
+
const $ = new Map(
|
|
2647
|
+
F.map((R, j) => [
|
|
2648
|
+
String(R),
|
|
2615
2649
|
j
|
|
2616
2650
|
])
|
|
2617
2651
|
);
|
|
2618
|
-
|
|
2619
|
-
const U =
|
|
2620
|
-
return U !== void 0 &&
|
|
2652
|
+
b = [...g].sort((R, j) => {
|
|
2653
|
+
const U = $.get(String(R.id)), W = $.get(String(j.id));
|
|
2654
|
+
return U !== void 0 && W !== void 0 ? U - W : U !== void 0 ? -1 : W !== void 0 ? 1 : 0;
|
|
2621
2655
|
});
|
|
2622
2656
|
}
|
|
2623
|
-
if (
|
|
2624
|
-
|
|
2625
|
-
} catch (
|
|
2626
|
-
console.error("Error loading events:",
|
|
2657
|
+
if (P.aborted) return;
|
|
2658
|
+
x(b);
|
|
2659
|
+
} catch (L) {
|
|
2660
|
+
console.error("Error loading events:", L);
|
|
2627
2661
|
}
|
|
2628
2662
|
}
|
|
2629
|
-
|
|
2663
|
+
q(() => {
|
|
2630
2664
|
if (!t) return;
|
|
2631
|
-
const
|
|
2632
|
-
return
|
|
2633
|
-
|
|
2665
|
+
const N = new AbortController();
|
|
2666
|
+
return S(N.signal), () => {
|
|
2667
|
+
N.abort();
|
|
2634
2668
|
};
|
|
2635
|
-
}, [t]),
|
|
2636
|
-
if (
|
|
2669
|
+
}, [t]), q(() => {
|
|
2670
|
+
if (w.start === null || w.end === null || !(f != null && f.length) || M.current)
|
|
2637
2671
|
return;
|
|
2638
|
-
const
|
|
2639
|
-
if (!
|
|
2640
|
-
let
|
|
2641
|
-
return
|
|
2672
|
+
const N = 2, F = Math.max(0, w.start - N), P = Math.min(f.length - 1, w.end + N), L = f.slice(F, P + 1).map((u) => u == null ? void 0 : u.id).filter(Boolean).filter((u) => v[u] === void 0);
|
|
2673
|
+
if (!L.length) return;
|
|
2674
|
+
let p = !1;
|
|
2675
|
+
return M.current = !0, (async () => {
|
|
2642
2676
|
try {
|
|
2643
|
-
const
|
|
2644
|
-
|
|
2645
|
-
...
|
|
2646
|
-
...
|
|
2677
|
+
const u = await Ge(L);
|
|
2678
|
+
p || d((_) => ({
|
|
2679
|
+
..._,
|
|
2680
|
+
...u.events
|
|
2647
2681
|
}));
|
|
2648
|
-
} catch (
|
|
2649
|
-
console.error("Jersey fetch error",
|
|
2682
|
+
} catch (u) {
|
|
2683
|
+
console.error("Jersey fetch error", u);
|
|
2650
2684
|
} finally {
|
|
2651
|
-
|
|
2685
|
+
M.current = !1;
|
|
2652
2686
|
}
|
|
2653
2687
|
})(), () => {
|
|
2654
|
-
|
|
2688
|
+
p = !0;
|
|
2655
2689
|
};
|
|
2656
|
-
}, [
|
|
2657
|
-
const
|
|
2658
|
-
return !
|
|
2659
|
-
/* @__PURE__ */ e("div", { className:
|
|
2690
|
+
}, [w, f]);
|
|
2691
|
+
const E = i || void 0, k = { paddingLeft: 0, width: "100%", boxSizing: "border-box" }, I = f === null;
|
|
2692
|
+
return !I && f.length === 0 ? null : /* @__PURE__ */ e("section", { className: E, style: k, children: /* @__PURE__ */ h("div", { className: we.wrapper, children: [
|
|
2693
|
+
/* @__PURE__ */ e("div", { className: we.container, children: /* @__PURE__ */ h(z, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
2660
2694
|
/* @__PURE__ */ e(ee, { title: "Eventos de la semana" }),
|
|
2661
|
-
/* @__PURE__ */ e("div", { className:
|
|
2662
|
-
|
|
2695
|
+
/* @__PURE__ */ e("div", { className: we.buttonWrapper, children: /* @__PURE__ */ e(G, { variant: "secondary", size: "lg", fullWidth: !0, onClick: () => {
|
|
2696
|
+
B();
|
|
2663
2697
|
}, children: "Ver más" }) })
|
|
2664
2698
|
] }) }),
|
|
2665
2699
|
/* @__PURE__ */ e("div", { style: { minWidth: "180px" }, children: /* @__PURE__ */ e(
|
|
2666
2700
|
te,
|
|
2667
2701
|
{
|
|
2668
2702
|
ref: s,
|
|
2669
|
-
items:
|
|
2703
|
+
items: I ? Array(6).fill({}) : f.slice(0, 20),
|
|
2670
2704
|
perPage: 3.5,
|
|
2671
2705
|
gap: "16px",
|
|
2672
2706
|
enableHorizontalWheel: !0,
|
|
@@ -2674,14 +2708,14 @@ function Wn({
|
|
|
2674
2708
|
breakpoints: {
|
|
2675
2709
|
1024: { perPage: 1.4, gap: "8px", focus: "center", padding: { left: "8px", right: "8px" } }
|
|
2676
2710
|
},
|
|
2677
|
-
renderItem: (
|
|
2678
|
-
const F =
|
|
2679
|
-
return
|
|
2711
|
+
renderItem: (N) => {
|
|
2712
|
+
const F = N.id, P = F in v ? v[F] : void 0;
|
|
2713
|
+
return I ? /* @__PURE__ */ e(ge, { children: /* @__PURE__ */ e(Nn, {}) }) : /* @__PURE__ */ e(ge, { children: /* @__PURE__ */ e(cn, { event: N, jersey: P }) });
|
|
2680
2714
|
},
|
|
2681
|
-
onMove: ({ isStart:
|
|
2682
|
-
c({ isStart:
|
|
2683
|
-
start:
|
|
2684
|
-
end:
|
|
2715
|
+
onMove: ({ isStart: N, isEnd: F, visibleStart: P, visibleEnd: L }) => {
|
|
2716
|
+
c({ isStart: N, isEnd: F }), y({
|
|
2717
|
+
start: P,
|
|
2718
|
+
end: L
|
|
2685
2719
|
});
|
|
2686
2720
|
}
|
|
2687
2721
|
}
|
|
@@ -2693,14 +2727,14 @@ function An({
|
|
|
2693
2727
|
items: n
|
|
2694
2728
|
}) {
|
|
2695
2729
|
const [o, a] = D(0), i = H(null), r = (t == null ? void 0 : t.length) || 1, s = !t || t.length === 0;
|
|
2696
|
-
return
|
|
2730
|
+
return q(() => {
|
|
2697
2731
|
if (s || !t || t.length <= 1) return;
|
|
2698
2732
|
const l = window.setInterval(() => {
|
|
2699
2733
|
var c;
|
|
2700
2734
|
(c = i.current) == null || c.next();
|
|
2701
2735
|
}, 5e3);
|
|
2702
2736
|
return () => window.clearInterval(l);
|
|
2703
|
-
}, [s, t == null ? void 0 : t.length]), /* @__PURE__ */
|
|
2737
|
+
}, [s, t == null ? void 0 : t.length]), /* @__PURE__ */ h(
|
|
2704
2738
|
V,
|
|
2705
2739
|
{
|
|
2706
2740
|
component: "section",
|
|
@@ -2709,7 +2743,7 @@ function An({
|
|
|
2709
2743
|
overflow: "visible"
|
|
2710
2744
|
},
|
|
2711
2745
|
children: [
|
|
2712
|
-
/* @__PURE__ */
|
|
2746
|
+
/* @__PURE__ */ h(
|
|
2713
2747
|
V,
|
|
2714
2748
|
{
|
|
2715
2749
|
sx: {
|
|
@@ -2740,8 +2774,8 @@ function An({
|
|
|
2740
2774
|
a(c);
|
|
2741
2775
|
},
|
|
2742
2776
|
renderItem: (l) => {
|
|
2743
|
-
var c,
|
|
2744
|
-
return /* @__PURE__ */
|
|
2777
|
+
var c, f;
|
|
2778
|
+
return /* @__PURE__ */ h(
|
|
2745
2779
|
V,
|
|
2746
2780
|
{
|
|
2747
2781
|
component: "a",
|
|
@@ -2756,7 +2790,7 @@ function An({
|
|
|
2756
2790
|
cursor: "pointer"
|
|
2757
2791
|
},
|
|
2758
2792
|
children: [
|
|
2759
|
-
/* @__PURE__ */
|
|
2793
|
+
/* @__PURE__ */ h(
|
|
2760
2794
|
V,
|
|
2761
2795
|
{
|
|
2762
2796
|
component: "picture",
|
|
@@ -2768,7 +2802,7 @@ function An({
|
|
|
2768
2802
|
V,
|
|
2769
2803
|
{
|
|
2770
2804
|
component: "img",
|
|
2771
|
-
src: (
|
|
2805
|
+
src: (f = l.fallbackSrc) != null ? f : l.desktopSrc,
|
|
2772
2806
|
alt: "",
|
|
2773
2807
|
"aria-hidden": !0,
|
|
2774
2808
|
loading: "lazy",
|
|
@@ -2820,7 +2854,7 @@ function An({
|
|
|
2820
2854
|
justifyContent: "center",
|
|
2821
2855
|
zIndex: 2
|
|
2822
2856
|
},
|
|
2823
|
-
children: /* @__PURE__ */ e(
|
|
2857
|
+
children: /* @__PURE__ */ e(Ae, { total: r, active: o })
|
|
2824
2858
|
}
|
|
2825
2859
|
)
|
|
2826
2860
|
]
|
|
@@ -2847,7 +2881,7 @@ function An({
|
|
|
2847
2881
|
boxShadow: "0 10px 24px rgba(0,0,0,.35)",
|
|
2848
2882
|
zIndex: 3
|
|
2849
2883
|
},
|
|
2850
|
-
children: n == null ? void 0 : n.map((l) => /* @__PURE__ */
|
|
2884
|
+
children: n == null ? void 0 : n.map((l) => /* @__PURE__ */ h(
|
|
2851
2885
|
V,
|
|
2852
2886
|
{
|
|
2853
2887
|
sx: {
|
|
@@ -2916,7 +2950,7 @@ function jn({
|
|
|
2916
2950
|
items: n = zn
|
|
2917
2951
|
}) {
|
|
2918
2952
|
const o = Math.ceil(n.length / 2), a = n.slice(0, o), i = n.slice(o);
|
|
2919
|
-
return /* @__PURE__ */
|
|
2953
|
+
return /* @__PURE__ */ h(V, { component: "section", "aria-labelledby": "mp-title", sx: { color: "#fff" }, children: [
|
|
2920
2954
|
/* @__PURE__ */ e(
|
|
2921
2955
|
Le,
|
|
2922
2956
|
{
|
|
@@ -2945,7 +2979,7 @@ function jn({
|
|
|
2945
2979
|
}
|
|
2946
2980
|
}
|
|
2947
2981
|
),
|
|
2948
|
-
/* @__PURE__ */
|
|
2982
|
+
/* @__PURE__ */ h(de, { spacing: { xs: 2, md: 3 }, alignItems: "center", children: [
|
|
2949
2983
|
/* @__PURE__ */ e(
|
|
2950
2984
|
de,
|
|
2951
2985
|
{
|
|
@@ -2982,7 +3016,7 @@ const Un = {
|
|
|
2982
3016
|
OraculoSeccionBanners: An,
|
|
2983
3017
|
OraculoSeccionMediosPago: jn,
|
|
2984
3018
|
OraculoSeccionEventoEnVivo: $n,
|
|
2985
|
-
OraculoSeccionEventoSemana:
|
|
3019
|
+
OraculoSeccionEventoSemana: Pn,
|
|
2986
3020
|
OraculoSeccionEventoCombinadas: Cn
|
|
2987
3021
|
}, Dn = (t) => typeof t == "function" || t && typeof t == "object" && "$$typeof" in t, Gn = (t) => /^OraculoSeccion[A-Z]/.test(t), Hn = Object.fromEntries(
|
|
2988
3022
|
Object.entries(Un).filter(
|
|
@@ -2995,12 +3029,12 @@ const Un = {
|
|
|
2995
3029
|
return console.warn("[oraculo] extras inválidos. Debe ser Array<[string, unknown]>", t), {};
|
|
2996
3030
|
}
|
|
2997
3031
|
};
|
|
2998
|
-
class
|
|
3032
|
+
class Fe extends Error {
|
|
2999
3033
|
constructor(n, o, a) {
|
|
3000
3034
|
super(`HTTP ${n} ${a}`), this.status = n, this.url = o, this.statusText = a, this.name = "HttpError";
|
|
3001
3035
|
}
|
|
3002
3036
|
}
|
|
3003
|
-
const
|
|
3037
|
+
const Re = [
|
|
3004
3038
|
"OraculoSeccionEventoEnVivo",
|
|
3005
3039
|
"OraculoSeccionEventoSemana",
|
|
3006
3040
|
"OraculoSeccionEventoCombinadas"
|
|
@@ -3011,218 +3045,218 @@ const Fe = [
|
|
|
3011
3045
|
extras: a,
|
|
3012
3046
|
loader: i
|
|
3013
3047
|
}) => {
|
|
3014
|
-
const r = ce(() => Vn(a), [a]), s = i || r.loader, [l, c] = D([]), [
|
|
3015
|
-
|
|
3048
|
+
const r = ce(() => Vn(a), [a]), s = i || r.loader, [l, c] = D([]), [f, x] = D(!1), [v, d] = D({}), [C, y] = D({}), [O, w] = D({}), M = Xe("(min-width:1024px)");
|
|
3049
|
+
q(() => {
|
|
3016
3050
|
if (t || !o) return;
|
|
3017
|
-
|
|
3018
|
-
const
|
|
3051
|
+
x(!0);
|
|
3052
|
+
const p = rt(
|
|
3019
3053
|
at(o, "landings", n),
|
|
3020
|
-
(
|
|
3021
|
-
var
|
|
3054
|
+
(u) => {
|
|
3055
|
+
var _;
|
|
3022
3056
|
try {
|
|
3023
|
-
let
|
|
3024
|
-
|
|
3025
|
-
var
|
|
3026
|
-
return ((
|
|
3027
|
-
}).map((
|
|
3028
|
-
} catch (
|
|
3029
|
-
console.error("Error procesando landings/" + n,
|
|
3057
|
+
let g = u.exists() ? ((_ = u.data()) == null ? void 0 : _.sections) || [] : [];
|
|
3058
|
+
g = g.slice().sort((b, $) => {
|
|
3059
|
+
var R, j;
|
|
3060
|
+
return ((R = b.order) != null ? R : 0) - ((j = $.order) != null ? j : 0);
|
|
3061
|
+
}).map((b, $) => ({ ...b, order: $ + 1 })), c(g), console.log("fetched: ", g);
|
|
3062
|
+
} catch (g) {
|
|
3063
|
+
console.error("Error procesando landings/" + n, g);
|
|
3030
3064
|
} finally {
|
|
3031
|
-
|
|
3065
|
+
x(!1);
|
|
3032
3066
|
}
|
|
3033
3067
|
},
|
|
3034
|
-
(
|
|
3035
|
-
console.error("Error escuchando landings/" + n,
|
|
3068
|
+
(u) => {
|
|
3069
|
+
console.error("Error escuchando landings/" + n, u), x(!1);
|
|
3036
3070
|
}
|
|
3037
3071
|
);
|
|
3038
|
-
return () =>
|
|
3039
|
-
}, [t, n, o]),
|
|
3040
|
-
(t ? t.slice() : l.slice()).map((
|
|
3072
|
+
return () => p();
|
|
3073
|
+
}, [t, n, o]), q(() => (dn(r), () => un()), [r]), q(() => {
|
|
3074
|
+
(t ? t.slice() : l.slice()).map((_) => _.componentKey).filter((_) => !!_).length;
|
|
3041
3075
|
}, [t, l]);
|
|
3042
|
-
const
|
|
3043
|
-
if (
|
|
3076
|
+
const B = async (p) => {
|
|
3077
|
+
if (Re.includes(p.componentKey))
|
|
3044
3078
|
return {
|
|
3045
3079
|
// whatever empty structure your UI expects
|
|
3046
3080
|
items: [],
|
|
3047
3081
|
events: [],
|
|
3048
3082
|
data: {}
|
|
3049
3083
|
};
|
|
3050
|
-
const
|
|
3051
|
-
if (!
|
|
3052
|
-
const
|
|
3053
|
-
let
|
|
3054
|
-
if (
|
|
3084
|
+
const u = (p.apiUrl || "").trim();
|
|
3085
|
+
if (!u) return;
|
|
3086
|
+
const _ = p.apiMethod || "GET", g = p.apiParams || [];
|
|
3087
|
+
let b = u, $, R;
|
|
3088
|
+
if (_ === "GET") {
|
|
3055
3089
|
const U = new URL(
|
|
3056
|
-
|
|
3090
|
+
u,
|
|
3057
3091
|
typeof window == "undefined" ? "http://localhost" : window.location.origin
|
|
3058
3092
|
);
|
|
3059
|
-
for (const
|
|
3060
|
-
|
|
3061
|
-
|
|
3093
|
+
for (const W of g)
|
|
3094
|
+
W.key && U.searchParams.append(W.key, W.value);
|
|
3095
|
+
b = U.toString();
|
|
3062
3096
|
} else {
|
|
3063
3097
|
const U = new URLSearchParams();
|
|
3064
|
-
for (const
|
|
3065
|
-
|
|
3066
|
-
|
|
3098
|
+
for (const W of g)
|
|
3099
|
+
W.key && U.append(W.key, W.value);
|
|
3100
|
+
$ = U.toString(), R = {
|
|
3067
3101
|
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
|
|
3068
3102
|
};
|
|
3069
3103
|
}
|
|
3070
|
-
const j = await fetch(
|
|
3071
|
-
method:
|
|
3072
|
-
headers:
|
|
3073
|
-
body:
|
|
3104
|
+
const j = await fetch(b, {
|
|
3105
|
+
method: _,
|
|
3106
|
+
headers: R,
|
|
3107
|
+
body: $
|
|
3074
3108
|
});
|
|
3075
|
-
if (!j.ok) throw new
|
|
3109
|
+
if (!j.ok) throw new Fe(j.status, b, j.statusText);
|
|
3076
3110
|
return j.json();
|
|
3077
|
-
},
|
|
3111
|
+
}, S = ce(
|
|
3078
3112
|
() => t ? t.slice() : l.slice(),
|
|
3079
3113
|
[t, l]
|
|
3080
|
-
),
|
|
3081
|
-
|
|
3082
|
-
const
|
|
3083
|
-
if (
|
|
3084
|
-
for (const { s:
|
|
3085
|
-
const
|
|
3086
|
-
|
|
3114
|
+
), m = We.useRef(/* @__PURE__ */ new Set());
|
|
3115
|
+
q(() => {
|
|
3116
|
+
const p = S.map((u) => ({ s: u, url: (u.apiUrl || "").trim() })).filter(({ url: u }) => !!u);
|
|
3117
|
+
if (p.length)
|
|
3118
|
+
for (const { s: u, url: _ } of p) {
|
|
3119
|
+
const g = `${u.id}|${_}`;
|
|
3120
|
+
m.current.has(g) || (m.current.add(g), y((b) => ({ ...b, [u.id]: !0 })), w((b) => ({ ...b, [u.id]: "" })), (async () => {
|
|
3087
3121
|
try {
|
|
3088
|
-
const
|
|
3089
|
-
d((
|
|
3090
|
-
} catch (
|
|
3091
|
-
let
|
|
3092
|
-
|
|
3122
|
+
const b = await B(u);
|
|
3123
|
+
d(($) => ({ ...$, [u.id]: b }));
|
|
3124
|
+
} catch (b) {
|
|
3125
|
+
let $ = "Error desconocido";
|
|
3126
|
+
b instanceof Fe ? $ = `Error HTTP ${b.status} (${b.statusText}) en ${b.url}` : b instanceof SyntaxError ? $ = "Respuesta no es JSON válido" : b instanceof TypeError ? $ = "Fallo de red / CORS / conexión" : typeof b == "string" && ($ = b.toString()), w((R) => ({ ...R, [u.id]: $ }));
|
|
3093
3127
|
} finally {
|
|
3094
|
-
y((
|
|
3128
|
+
y((b) => ({ ...b, [u.id]: !1 }));
|
|
3095
3129
|
}
|
|
3096
3130
|
})());
|
|
3097
3131
|
}
|
|
3098
|
-
}, [
|
|
3099
|
-
const
|
|
3100
|
-
() =>
|
|
3101
|
-
[
|
|
3102
|
-
),
|
|
3103
|
-
const
|
|
3104
|
-
for (const
|
|
3105
|
-
const
|
|
3106
|
-
if (
|
|
3107
|
-
const
|
|
3108
|
-
if (
|
|
3109
|
-
const
|
|
3110
|
-
Number.isNaN(
|
|
3132
|
+
}, [S]);
|
|
3133
|
+
const E = ce(
|
|
3134
|
+
() => S.filter((p) => p.visible).sort((p, u) => p.order - u.order),
|
|
3135
|
+
[S]
|
|
3136
|
+
), k = (p) => Array.isArray(p) ? p.map((u) => {
|
|
3137
|
+
const _ = {};
|
|
3138
|
+
for (const g of u.fields || []) {
|
|
3139
|
+
const b = (g.type || "string").toLowerCase();
|
|
3140
|
+
if (b === "number") {
|
|
3141
|
+
const $ = String(g.value || "").trim();
|
|
3142
|
+
if ($ !== "") {
|
|
3143
|
+
const R = Number($);
|
|
3144
|
+
Number.isNaN(R) || (_[g.name] = R);
|
|
3111
3145
|
}
|
|
3112
|
-
} else if (
|
|
3113
|
-
|
|
3114
|
-
else if (
|
|
3115
|
-
const
|
|
3116
|
-
if (
|
|
3146
|
+
} else if (b === "boolean")
|
|
3147
|
+
_[g.name] = String(g.value).toLowerCase() === "true";
|
|
3148
|
+
else if (b === "function") {
|
|
3149
|
+
const $ = String(g.value || "").trim();
|
|
3150
|
+
if ($)
|
|
3117
3151
|
try {
|
|
3118
|
-
const
|
|
3119
|
-
|
|
3120
|
-
} catch (
|
|
3121
|
-
console.error(`❌ Error creando función en item '${
|
|
3152
|
+
const R = new Function($);
|
|
3153
|
+
_[g.name] = R;
|
|
3154
|
+
} catch (R) {
|
|
3155
|
+
console.error(`❌ Error creando función en item '${g.name}':`, R);
|
|
3122
3156
|
}
|
|
3123
|
-
} else
|
|
3157
|
+
} else _[g.name] = g.value;
|
|
3124
3158
|
}
|
|
3125
|
-
return
|
|
3126
|
-
}) : [],
|
|
3127
|
-
const
|
|
3128
|
-
if (!Array.isArray(
|
|
3129
|
-
for (const
|
|
3130
|
-
if (!
|
|
3131
|
-
const
|
|
3132
|
-
if (
|
|
3133
|
-
const
|
|
3134
|
-
if (
|
|
3135
|
-
const
|
|
3136
|
-
Number.isNaN(
|
|
3159
|
+
return _;
|
|
3160
|
+
}) : [], I = (p) => {
|
|
3161
|
+
const u = {};
|
|
3162
|
+
if (!Array.isArray(p)) return u;
|
|
3163
|
+
for (const _ of p) {
|
|
3164
|
+
if (!_.name) continue;
|
|
3165
|
+
const g = (_.type || "string").toLowerCase();
|
|
3166
|
+
if (g === "number") {
|
|
3167
|
+
const b = String(_.value || "").trim();
|
|
3168
|
+
if (b !== "") {
|
|
3169
|
+
const $ = Number(b);
|
|
3170
|
+
Number.isNaN($) || (u[_.name] = $);
|
|
3137
3171
|
}
|
|
3138
|
-
} else if (
|
|
3139
|
-
|
|
3140
|
-
else if (
|
|
3141
|
-
const
|
|
3142
|
-
if (
|
|
3172
|
+
} else if (g === "boolean")
|
|
3173
|
+
u[_.name] = String(_.value).toLowerCase() === "true";
|
|
3174
|
+
else if (g === "function") {
|
|
3175
|
+
const b = String(_.value || "").trim();
|
|
3176
|
+
if (b)
|
|
3143
3177
|
try {
|
|
3144
|
-
const
|
|
3145
|
-
|
|
3146
|
-
} catch (
|
|
3147
|
-
console.error(`❌ Error creando función en item '${
|
|
3178
|
+
const $ = new Function(b);
|
|
3179
|
+
u[_.name] = $;
|
|
3180
|
+
} catch ($) {
|
|
3181
|
+
console.error(`❌ Error creando función en item '${_.name}':`, $);
|
|
3148
3182
|
}
|
|
3149
|
-
} else
|
|
3183
|
+
} else u[_.name] = _.value;
|
|
3150
3184
|
}
|
|
3151
|
-
return
|
|
3152
|
-
},
|
|
3153
|
-
const
|
|
3154
|
-
if (
|
|
3155
|
-
const
|
|
3156
|
-
return
|
|
3185
|
+
return u;
|
|
3186
|
+
}, N = (p, u, _) => {
|
|
3187
|
+
const g = _ ? { ..._ } : {};
|
|
3188
|
+
if (u) {
|
|
3189
|
+
const W = (u.variableName || "items").trim() || "items";
|
|
3190
|
+
return g[W] = u.arr || [], g;
|
|
3157
3191
|
}
|
|
3158
|
-
const
|
|
3159
|
-
return
|
|
3160
|
-
}, F = (
|
|
3161
|
-
var
|
|
3162
|
-
const
|
|
3163
|
-
let
|
|
3164
|
-
const
|
|
3165
|
-
if (
|
|
3166
|
-
return { items:
|
|
3167
|
-
if (
|
|
3168
|
-
else if (
|
|
3169
|
-
const
|
|
3170
|
-
if (
|
|
3192
|
+
const b = p, $ = Array.isArray(b), R = !$ && typeof b == "object" && b !== null ? b : void 0, j = R && Array.isArray(R.lobby || R.items) ? R.lobby || R.items : void 0, U = (W) => $ ? b : j || W;
|
|
3193
|
+
return g.items = U(j || []), g;
|
|
3194
|
+
}, F = (p) => {
|
|
3195
|
+
var $;
|
|
3196
|
+
const u = !!(($ = p.apiUrl) != null && $.trim()), _ = u ? v[p.id] : void 0;
|
|
3197
|
+
let g = p.props ? { ...p.props } : {};
|
|
3198
|
+
const b = I(p.manualScalarFields);
|
|
3199
|
+
if (Re.includes(p.componentKey))
|
|
3200
|
+
return { items: _, ...g, ...b };
|
|
3201
|
+
if (g = { ...g, ...b }, u) g = N(_, null, g);
|
|
3202
|
+
else if (p.dataMode === "manual") {
|
|
3203
|
+
const R = k(p.manualItems);
|
|
3204
|
+
if (g = N(
|
|
3171
3205
|
null,
|
|
3172
|
-
{ arr:
|
|
3173
|
-
|
|
3174
|
-
),
|
|
3175
|
-
const j =
|
|
3176
|
-
|
|
3206
|
+
{ arr: R, variableName: p.variableName },
|
|
3207
|
+
g
|
|
3208
|
+
), p.variableName2 && p.manualItems2) {
|
|
3209
|
+
const j = k(p.manualItems2), U = (p.variableName2 || "items2").trim() || "items2";
|
|
3210
|
+
g[U] = j;
|
|
3177
3211
|
}
|
|
3178
3212
|
}
|
|
3179
|
-
return
|
|
3180
|
-
},
|
|
3213
|
+
return g;
|
|
3214
|
+
}, P = (p, u, _) => /* @__PURE__ */ e("div", { className: `mx-4 p-4 rounded ${{
|
|
3181
3215
|
loading: "bg-blue-100 text-blue-800",
|
|
3182
3216
|
error: "bg-red-100 text-red-800",
|
|
3183
3217
|
component: "bg-yellow-100 text-yellow-800"
|
|
3184
|
-
}[
|
|
3218
|
+
}[u]}`, children: _ }, p), L = (p) => {
|
|
3185
3219
|
var ae;
|
|
3186
|
-
const
|
|
3187
|
-
if (!
|
|
3188
|
-
return console.warn(`No hay componente registrado para "${
|
|
3189
|
-
|
|
3220
|
+
const u = p.componentKey, _ = Hn[u];
|
|
3221
|
+
if (!_)
|
|
3222
|
+
return console.warn(`No hay componente registrado para "${u}"`), P(
|
|
3223
|
+
p.id,
|
|
3190
3224
|
"component",
|
|
3191
|
-
`Componente "${
|
|
3225
|
+
`Componente "${u}" no encontrado`
|
|
3192
3226
|
);
|
|
3193
|
-
const
|
|
3194
|
-
if (
|
|
3195
|
-
if (
|
|
3196
|
-
return
|
|
3197
|
-
|
|
3227
|
+
const g = !!((ae = p.apiUrl) != null && ae.trim()), b = g ? v[p.id] : void 0, $ = g ? !!C[p.id] : !1, R = g ? O[p.id] : "";
|
|
3228
|
+
if (g) {
|
|
3229
|
+
if ($ && !b)
|
|
3230
|
+
return P(
|
|
3231
|
+
p.id,
|
|
3198
3232
|
"loading",
|
|
3199
|
-
`Cargando datos desde ${
|
|
3233
|
+
`Cargando datos desde ${p.apiUrl}...`
|
|
3200
3234
|
);
|
|
3201
|
-
if (
|
|
3202
|
-
return
|
|
3203
|
-
|
|
3235
|
+
if (R && !b)
|
|
3236
|
+
return P(
|
|
3237
|
+
p.id,
|
|
3204
3238
|
"error",
|
|
3205
|
-
`Error cargando ${
|
|
3239
|
+
`Error cargando ${p.apiUrl}: ${R}`
|
|
3206
3240
|
);
|
|
3207
3241
|
}
|
|
3208
|
-
const j = F(
|
|
3242
|
+
const j = F(p), W = (/* @__PURE__ */ new Set([
|
|
3209
3243
|
"OraculoSeccionBanners",
|
|
3210
3244
|
"OraculoSeccionBonoBienvenida",
|
|
3211
3245
|
"OraculoSeccionCasinoEnVivo",
|
|
3212
|
-
|
|
3213
|
-
])).has(
|
|
3214
|
-
return /* @__PURE__ */ e("div", { style:
|
|
3246
|
+
M ? "" : "OraculoSeccionClubOlimpo"
|
|
3247
|
+
])).has(p.componentKey), K = M ? 120 : 24;
|
|
3248
|
+
return /* @__PURE__ */ e("div", { style: W ? {
|
|
3215
3249
|
width: "100%",
|
|
3216
3250
|
boxSizing: "border-box"
|
|
3217
3251
|
} : {
|
|
3218
|
-
paddingLeft:
|
|
3219
|
-
paddingRight:
|
|
3252
|
+
paddingLeft: K,
|
|
3253
|
+
paddingRight: K,
|
|
3220
3254
|
width: "100%",
|
|
3221
3255
|
boxSizing: "border-box"
|
|
3222
|
-
}, className: "oraculo-section-wrapper", children: /* @__PURE__ */ e(
|
|
3256
|
+
}, className: "oraculo-section-wrapper", children: /* @__PURE__ */ e(_, { ...j }) }, p.id);
|
|
3223
3257
|
};
|
|
3224
|
-
return
|
|
3225
|
-
|
|
3258
|
+
return f && !t ? s ? /* @__PURE__ */ e(s, {}) : /* @__PURE__ */ e("div", { children: "Cargando..." }) : !f && !t && l.length === 0 ? /* @__PURE__ */ e("div", { className: "text-xs text-gray-500", children: "Sin secciones (Firestore)" }) : /* @__PURE__ */ e(
|
|
3259
|
+
Ye,
|
|
3226
3260
|
{
|
|
3227
3261
|
className: "oli-font",
|
|
3228
3262
|
maxWidth: !1,
|
|
@@ -3240,9 +3274,9 @@ const Fe = [
|
|
|
3240
3274
|
de,
|
|
3241
3275
|
{
|
|
3242
3276
|
direction: "column",
|
|
3243
|
-
spacing:
|
|
3277
|
+
spacing: M ? 8 : 5,
|
|
3244
3278
|
useFlexGap: !0,
|
|
3245
|
-
children:
|
|
3279
|
+
children: E.map(L)
|
|
3246
3280
|
}
|
|
3247
3281
|
)
|
|
3248
3282
|
}
|
|
@@ -3251,23 +3285,23 @@ const Fe = [
|
|
|
3251
3285
|
export {
|
|
3252
3286
|
G as OraculoButton,
|
|
3253
3287
|
te as OraculoCarousel,
|
|
3254
|
-
|
|
3255
|
-
|
|
3288
|
+
Ae as OraculoCarouselDots,
|
|
3289
|
+
Pt as OraculoClubOlimpoVisual,
|
|
3256
3290
|
Xt as OraculoEventCombinadasCard,
|
|
3257
3291
|
Qt as OraculoEventEnVivoCard,
|
|
3258
3292
|
pt as OraculoEventHeader,
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3293
|
+
ze as OraculoEventLabel,
|
|
3294
|
+
je as OraculoEventLeague,
|
|
3295
|
+
Ue as OraculoEventScore,
|
|
3262
3296
|
cn as OraculoEventSemanaCard,
|
|
3263
3297
|
ut as OraculoEventStatus,
|
|
3264
3298
|
dt as OraculoEventStatusBadge,
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3299
|
+
he as OraculoEventTeamInfo,
|
|
3300
|
+
pe as OraculoGameCard,
|
|
3301
|
+
Wt as OraculoGameRankCard,
|
|
3302
|
+
De as OraculoGameSlide,
|
|
3269
3303
|
Y as OraculoGridGroup,
|
|
3270
|
-
|
|
3304
|
+
Bt as OraculoLiveCasinoCard,
|
|
3271
3305
|
Ce as OraculoLogoMediosPago,
|
|
3272
3306
|
io as OraculoPageLandingPreview,
|
|
3273
3307
|
An as OraculoSeccionBanners,
|
|
@@ -3278,7 +3312,7 @@ export {
|
|
|
3278
3312
|
ln as OraculoSeccionDestacados,
|
|
3279
3313
|
Cn as OraculoSeccionEventoCombinadas,
|
|
3280
3314
|
$n as OraculoSeccionEventoEnVivo,
|
|
3281
|
-
|
|
3315
|
+
Pn as OraculoSeccionEventoSemana,
|
|
3282
3316
|
jn as OraculoSeccionMediosPago,
|
|
3283
3317
|
pn as OraculoSeccionTopJuegos,
|
|
3284
3318
|
_n as OraculoSeccionVirtuales,
|