oraculo-ui 0.2.8 → 0.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +3 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +265 -262
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
1
|
+
import { jsx as t, jsxs as f, Fragment as ae } from "react/jsx-runtime";
|
|
2
2
|
import { Link as Xe, Box as X, useMediaQuery as Ye, IconButton as Pe, Typography as Qe, Stack as ye, Container as gt } from "@mui/material";
|
|
3
3
|
import ue, { useState as H, useEffect as J, useRef as W, forwardRef as ht, useImperativeHandle as bt, useCallback as xe, useContext as vt, createContext as _t, useMemo as te, useLayoutEffect as yt } from "react";
|
|
4
4
|
import G from "@mui/material/Skeleton";
|
|
@@ -28,11 +28,11 @@ function K({
|
|
|
28
28
|
fullHeight: r = !1,
|
|
29
29
|
className: c = "",
|
|
30
30
|
ariaLabel: m,
|
|
31
|
-
leftIcon:
|
|
31
|
+
leftIcon: p,
|
|
32
32
|
rightIcon: _,
|
|
33
|
-
iconOnly:
|
|
33
|
+
iconOnly: I
|
|
34
34
|
}) {
|
|
35
|
-
const C = !!e && e !== !0, A = (!!
|
|
35
|
+
const C = !!e && e !== !0, A = (!!p ? 1 : 0) + (!!_ ? 1 : 0) == 1, L = I != null ? I : A && !C, M = [
|
|
36
36
|
"orc-btn",
|
|
37
37
|
u === "secondary" ? "orc-btn--secondary" : u === "tertiary" ? "orc-btn--tertiary" : "orc-btn--primary",
|
|
38
38
|
b ? `orc-btn--${b}` : "",
|
|
@@ -40,8 +40,8 @@ function K({
|
|
|
40
40
|
r ? "orc-btn--fullHeight" : "",
|
|
41
41
|
L ? "orc-btn--iconOnly" : "",
|
|
42
42
|
c
|
|
43
|
-
].filter(Boolean).join(" "), F = /* @__PURE__ */
|
|
44
|
-
|
|
43
|
+
].filter(Boolean).join(" "), F = /* @__PURE__ */ f(ae, { children: [
|
|
44
|
+
p && /* @__PURE__ */ t("span", { className: "orc-btn__icon", children: p }),
|
|
45
45
|
!L && /* @__PURE__ */ t("span", { className: "orc-btn__label", children: e }),
|
|
46
46
|
_ && /* @__PURE__ */ t("span", { className: "orc-btn__icon", children: _ })
|
|
47
47
|
] }), w = s ? !0 : void 0;
|
|
@@ -81,7 +81,7 @@ function se({
|
|
|
81
81
|
n ? `orc-section-title--${n}` : "",
|
|
82
82
|
o
|
|
83
83
|
].filter(Boolean).join(" ");
|
|
84
|
-
return /* @__PURE__ */
|
|
84
|
+
return /* @__PURE__ */ f("div", { className: l, children: [
|
|
85
85
|
a && /* @__PURE__ */ t(
|
|
86
86
|
"img",
|
|
87
87
|
{
|
|
@@ -184,7 +184,7 @@ const kt = "oraculo__OraculoEventTitle-module__contenedor___rg1vw", $t = "oracul
|
|
|
184
184
|
subtitle: Nt
|
|
185
185
|
};
|
|
186
186
|
function Mt({ title: e, subtitle: a }) {
|
|
187
|
-
return /* @__PURE__ */
|
|
187
|
+
return /* @__PURE__ */ f(
|
|
188
188
|
"div",
|
|
189
189
|
{
|
|
190
190
|
className: $e.contenedor,
|
|
@@ -200,12 +200,12 @@ function Mt({ title: e, subtitle: a }) {
|
|
|
200
200
|
children: e
|
|
201
201
|
}
|
|
202
202
|
),
|
|
203
|
-
a && /* @__PURE__ */
|
|
203
|
+
a && /* @__PURE__ */ f(
|
|
204
204
|
"div",
|
|
205
205
|
{
|
|
206
206
|
className: $e.flexGroup,
|
|
207
207
|
children: [
|
|
208
|
-
/* @__PURE__ */
|
|
208
|
+
/* @__PURE__ */ f("svg", { width: "4", height: "4", viewBox: "0 0 5 5", xmlns: "http://www.w3.org/2000/svg", style: { flexShrink: 0 }, children: [
|
|
209
209
|
" ",
|
|
210
210
|
/* @__PURE__ */ t("circle", { cx: "2.5", cy: "2.5", r: "2.5", fill: "white" }),
|
|
211
211
|
" "
|
|
@@ -241,13 +241,13 @@ function Bt({ text: e, color: a = "#ff3b3b", textColor: n = "#fff" }) {
|
|
|
241
241
|
);
|
|
242
242
|
}
|
|
243
243
|
function Lt({ live: e, time: a }) {
|
|
244
|
-
return /* @__PURE__ */
|
|
244
|
+
return /* @__PURE__ */ f("div", { className: "oli-font", style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
|
|
245
245
|
e && /* @__PURE__ */ t(Bt, { text: "En vivo" }),
|
|
246
246
|
a && /* @__PURE__ */ t("span", { style: { fontSize: "14px", fontWeight: 400, lineHeight: "18px", paddingTop: "4px" }, children: a })
|
|
247
247
|
] });
|
|
248
248
|
}
|
|
249
249
|
function At({ title: e, subtitle: a, live: n = !1, time: o = "" }) {
|
|
250
|
-
return /* @__PURE__ */
|
|
250
|
+
return /* @__PURE__ */ f(
|
|
251
251
|
"div",
|
|
252
252
|
{
|
|
253
253
|
style: {
|
|
@@ -283,7 +283,7 @@ const Ut = "oraculo__OraculoEventScore-module__scoreWrapper___fWwEr", qt = "orac
|
|
|
283
283
|
small: Wt
|
|
284
284
|
};
|
|
285
285
|
function it({ text: e, name: a, size: n = "normal" }) {
|
|
286
|
-
return /* @__PURE__ */
|
|
286
|
+
return /* @__PURE__ */ f(
|
|
287
287
|
"div",
|
|
288
288
|
{
|
|
289
289
|
className: `${fe.scoreWrapper} ${fe[n]}`,
|
|
@@ -309,8 +309,8 @@ const Gt = "oraculo__OraculoEventTeamInfo-module__team___UfpUs", jt = "oraculo__
|
|
|
309
309
|
};
|
|
310
310
|
function ta({ jersey: e, className: a }) {
|
|
311
311
|
const n = `#${e.base}`, o = e.sleeve ? `#${e.sleeve}` : n, i = e.stripes ? `#${e.stripes}` : null, l = e.sleevelong ? `#${e.sleevelong}` : null;
|
|
312
|
-
return /* @__PURE__ */
|
|
313
|
-
/* @__PURE__ */ t("div", { className: ve.svgWrapper, children: /* @__PURE__ */
|
|
312
|
+
return /* @__PURE__ */ f("div", { className: `${ve.polo} ${a != null ? a : ""}`, children: [
|
|
313
|
+
/* @__PURE__ */ t("div", { className: ve.svgWrapper, children: /* @__PURE__ */ f("svg", { viewBox: "0 0 656 656", "aria-hidden": !0, children: [
|
|
314
314
|
/* @__PURE__ */ t(
|
|
315
315
|
"path",
|
|
316
316
|
{
|
|
@@ -318,7 +318,7 @@ function ta({ jersey: e, className: a }) {
|
|
|
318
318
|
d: "m62 265 5.8-17c-.4-.7-.6-1.5-.4-2 .2-.7.8-1.2 1.2-1.4l1.2-4 9-21.6c.2-1 1-3.5 2.4-6.4a69.9 69.9 0 0 1 4.1-17.2l2.9-7 2.9-11.4c1.7-5.8 5.2-18.4 5.8-22 .6-3.6 6.8-19 9.8-26.2.4-.9 2.4-4.7 7.2-12.8 5.4-12.2 23.5-27.2 32-33.1l6.6-3.7 7.9-3.6 17.3-6.2 16.6-7.1L215 52c7-4.1 21.8-12.5 24.1-13.2 2.3-.8 5-3.5 6-4.7 1.2-1.2 4.2-3.8 6.6-4.7 2.3-1 8.2-6.8 10.8-9.6 1.6-1.4 3.8-4.7 9.2-7.5 5.3-2.9 20.4-4 27.2-4.3h25.6l16.7.3 14.1.6 10.3.7 9.5 1.7c6.4.6 12.6 4.3 15.4 8l2.7 3.1 8.9 8 1.8.7 4.9 3 2.7 3.5c4.2 2.2 13.1 7.1 15.2 8.7 2 1.6 30.1 15.4 44 22 8 3.2 39 12.3 55.3 30 5.2 4.3 7 7.8 11.4 12.4 5.1 5.3 15.1 29 16.9 32 1.4 2.6 5 17 6.8 24l4.8 20.5 8.4 29 8.9 22.7 2.3 5.4.6 1.5c.5.6 1.4 2 1 2.6-.2.6 0 2 .2 2.7l1 2.6 2 5.8 2.2 5.9c.3 1.3-4.3 4-6.6 5.2l-11.1 5-12.6 4.7-15 5-14.6 4.6-10.9 2.4a66 66 0 0 1-8.6 1.4c-3.4.3-4.7-.4-4.9-.8l-5-12.3-1.9-3.8-1.8-1.6.1-.8v-1l-.4-1.8-1.3-4.1-3.3-9-1.3-2-2.2-5.7-2.5-.3-1 .8v2l-2.7 13.1-8.7 58-.9 6.4-.2 7.9c0 3-1 16-1.7 18.3l-2.5 9-.2 7.6-.3 8.7-.3 7.5.3 4 .5 15c.3 1.9-.6 7-1.1 9.3-.6 2.4-1.6 7.5-1.4 8.8.3 1.4-.2 4.4-.5 5.8l-1.3 8.9c-.2 1.4-.8 5-1.3 7.2.7 1.6 4.7 14.6 5.9 17.8 1.2 3.3 4.8 19.4 5 20.7.3 1 1.1 7.8 1.5 11 .1 2.5.3 8 .2 10 0 2-.8 6.6-1.1 8.6-.2 1.7-.7 5.5-1.2 7s-1.2 8.5-1.4 11.8A81.1 81.1 0 0 1 477 552l.3 7.1.2 6.5 1.4 17.7.5 6 1.5 7.7.4 4.6c.3 2.1.7 7 .7 10.1.3 3-2.5 6-4 7 0 .2-1.2 1-4.6 3-6.4 5-26.3 11.6-35.5 14.3a379.2 379.2 0 0 1-58.6 11.2c-2.3.8-27 2.2-39 2.7-8.3 0-27 0-34.5-.4-11.5.9-47.4-4.8-63.9-7.7-6.3-.9-42.1-10.4-48-14.4-3.7-2.4-14.3-8-16.9-9.7a10.7 10.7 0 0 1-4.1-5.4c-.3-1 .1-8.6.4-12.3l.6-5 1.4-9.6 1-8 .3-4.3-.4-7.7-1-10.8v-13.8l.7-10 1.1-7.7 1.8-8 2.8-9.5 3.3-9.3a78 78 0 0 1-2.5-20.8 1112.2 1112.2 0 0 1 .6-14.1c-.1-.7 2.1-10.2 3.3-15l1-3.8-.1-.8c-1.4-8.3-1.5-14-1.9-15.4a78 78 0 0 1 .4-10.9l2-6.7.4-2-.4-1.5a67.6 67.6 0 0 1-7.3-27l-.2-7.7.5-5.4.3-1.5.4-3.9.7-5 .2-2.2-.2-.4-.3-6-1-3.1-.3-4-.7-7.6-1.5-8.3-.8-4.2-1.4-9.2-.4-4.3L172 279l-2.2-14.6a545 545 0 0 1-1.7-8.5c-.1-1-2-2.1-3-2.6 0 .6-.6 1.5-1.7 2-1.2.7-2.4 1.3-2.7 2.2l-.8 4.7a15 15 0 0 1-2.5 4.1 16.4 16.4 0 0 0-2.6 6.3l-.3 2.4v1.3l-1.4 1.1-.3.3-6 14.5c-.7 2.3-1.3 1.8-1.9 1.5l-10.5-3.1-9-3-18.3-6-20-6.8-13-4.8c-2.1-1-7-3-9.4-3.8-2.5-.8-3-1.3-2.8-1.4Z"
|
|
319
319
|
}
|
|
320
320
|
),
|
|
321
|
-
i && /* @__PURE__ */
|
|
321
|
+
i && /* @__PURE__ */ f(ae, { children: [
|
|
322
322
|
/* @__PURE__ */ t("path", { fill: i, d: "m153 277.8-5.8 14.5c-1 2.8-2.5 1.4-4.6.7l-2-.5-7.8-2.4-15.6-5-19-6.5-16-5.7-12-4.4-5.5-2.2c-3.5-1.1-3.1-1.2-1.9-4l1.8-4.9 3.2-9.3c-1.1-1.9 0-3.1.8-3.5l.2-.7.5-2 4.3-10.3 2.4-6 2.6-6.2.8-2.6 1.7-4.1v-.4l.3-2.6.6-3.4 1-3.5 1-3.8c.1-.9 2-5.6 3-7.8l.7-1.5.7-2 .9-3.6 3.4-12.6 2.4-8.6 2.7-11.2 3.5-9.6 3.6-9.4 3-6 2-4.1 3.6-5.8 2.2-4.3 3-4.4 3.2-3.9 1.7-1.9 3.6-3.6 3-2.9a109.3 109.3 0 0 1 13.3-11.2l1.2-.8a79.3 79.3 0 0 1 18-9l11.4-4.2 4-1.4 6.3-2.7 3.3-1.4 2.8-1.2 4-1.6 3.9-2.1 10.1-5 4.8-2.4 5.7-3.2 13.8-7.7c1.5-.8 4.7-2.7 6-3a8.5 8.5 0 0 0 3-1.8c3.4-2.5 4.5-4.8 6-5.3.4-.4 2-1.6 5.2-3.2-4.4 3.3-3.2 11-2.1 14.6a77 77 0 0 0 8.7 18.8l-.6.4-3.9 2-9 5-6.6 3.7-10 3.2c-4.3.8-13.2 2.4-14.4 2.8-1.2.3-10.2 4-14.5 5.8l-11.8 5.6-8.8 3.2-12 3.4-19 8.7c-5.8 1.4-19.3 14.2-25.3 20.4L122 128l.3.4 6.6 16.6 10.5 22.6 6.2 10.8c2.9 3 8.7 9.7 9.1 11.7.5 2 4.3 5.1 6.1 6.5.2.8.8 3.1 1.7 5.4-3.2 4.8-.4 10.6 1.4 12.9l1 4.6.3 6.5-.5 1c-1.4 1.4-.3 4 .4 5l.1 3c.5 1.4 1.3 4.2.8 5.2s0 2.7.3 3.4v4.9c-3.1.5-2 3.7-1 5.2-.5.7-1.8 2.2-3.2 2.7-1.4.5-1.8 3.6-1.8 5.2a9 9 0 0 1-2.7 4.7c-1.8 1.6-2.8 7.4-3 10.1l-1.6 1.5ZM403.8 31.1l-1.6-.7c1.2 1 2 2.2 2.8 4 1.8 2.8.6 8-.7 12.2a78 78 0 0 1-7.6 17l.5.2 3.3 1.5 5.4 3.3 5.9 3 7.2 3 8.2 2.2c.7.2 3.3 1 8.4 2 5.5.1 21.1 8 28.2 11.8l14 4.5a517 517 0 0 1 23.8 9.3c6.3.5 24.7 17 33.1 25.2l-4.6 11.6-8.2 19.3-3.8 9-5.2 8.6c-2.2 3.2-7.3 10.2-9.4 12.4-1.3-.3-5.6 4.4-7.6 6.7.3 2 .6 6.7-1.4 9.1-2 2.5-1.8 6.9-1.4 8.7.3.8.5 3-1 5.3-1.4 2.4-1 4-.5 4.5-.2.8-.7 2.5-1.4 3.4-.8.8-.4 3.3 0 4.5l.1 3-.1 2.2c-.2.6-.6 2.6-1.1 6.2 3.6 3.3 1.3 5.7-.3 6.5l2.2.3 1.3 2.7 1.5 3.8 1.1 2.3 2.7 7.1 1.6 4.8.3 2.1v1.6l1.9 1.9 4 8.9 1.8 4.5c.5 4 5.5 3.6 8 3l5.9-1.1 7.3-1.7 5.2-1.2 7.3-2.1 8.3-2.7 7.5-2.5 9.8-3.6 8-3 6.3-2.8 3.4-1.6 3-1.3 2.5-1.6 1-.8c1.9-1 2-2.1 1.6-2.9l-.6-1.7-1-2.7-1.6-4.2-1.4-4-.5-1.4-.1-.7v-1.2c.7-1-.4-2.5-1-3v-.2l-1-2-2.4-6-3.3-8.3-2.3-6a3896.4 3896.4 0 0 0-3.1-8.4l-2.2-7.1-1.5-5.7-2.5-8.9-1-3.1-1.2-4.5-2-8.2-2.2-9.3-2.8-11.4-2.6-9.1-.9-3c0-.3-.6-1.5-1-2l-2.5-5.6-3-6.6-5.7-11.3-2.5-4.3-2.3-3.3-.7-.7-4.3-5-3-3.8a73 73 0 0 0-4.2-3.8c-1.1-2-7.6-7-10.8-9.4-6.2-5-23.4-12.8-34-16.7l-11-4-16-7.9-20.1-10-7.1-3.8-2.4-1.5-13-7.3-2.6-3.4-5-3Z" }),
|
|
323
323
|
/* @__PURE__ */ t("path", { fill: i, d: "M292.1 648.8c-15.7-1.4-37.7-5-49.7-7.1-4.3-.6-22.6-5.3-35.5-9.5 1.5-10 3-21 4.3-32.7 7-60.5 4.8-132.8 3.1-185.6l-.9-32c-1-49-2.4-83.5-3.6-112-1.2-29-2.1-51.7-2.1-77 0-29 2.9-77.3 5.3-112.9l2.6-1c1.3-.3 10.1-2 14.4-2.7l10-3.2 6.6-3.7 9-5 4-2 .5-.3c1.2 2 2.6 4.1 3.4 4.8l6.1 7.8 15 14.6 4.8 4c-.6 26.4-1.1 60.6-1.1 100.1 0 59.3 1.1 82.6 2.7 114.6.9 18.8 2 40.7 3 74.9 1.5 48.3.8 98.4 0 148.6l-.8 68.3c0 13-.6 32.8-1.1 49Zm157.5-16.4-11.2 3.6a379.2 379.2 0 0 1-67 12c.2-11 .3-25.6.3-44.6 0-49.2-1.2-74.9-2.4-99.5-1.3-27.2-2.5-53-2-107.5.6-50.4 1.7-81.5 2.6-109.3 1-29.3 1.8-54.9 1.8-95.6 0-35.5-.6-70.6-1.2-98.6l3.6-3 5.3-5.1 3.5-3.6 3.5-3.4 4-5 4.2-5.3 2.7-4 .5.3 3.2 1.5 5.5 3.3 5.8 3 7.3 3 8.1 2.2c.7.2 3.3 1 8.4 2 2.4 0 6.5 1.5 11 3.4 2.6 29 5.2 68 5.2 107.8 0 41.5-1.6 70.2-3.2 102-1.6 28.7-3.3 60-4 105.6-.7 41.1.4 82.5 1.4 124.4.7 25.7 1.4 51.6 1.6 77.8a435 435 0 0 0 1.5 32.6Z" })
|
|
324
324
|
] }),
|
|
@@ -367,7 +367,7 @@ function ta({ jersey: e, className: a }) {
|
|
|
367
367
|
] });
|
|
368
368
|
}
|
|
369
369
|
function Oe({ name: e, jersey: a, size: n = "regular" }) {
|
|
370
|
-
return /* @__PURE__ */
|
|
370
|
+
return /* @__PURE__ */ f("div", { className: `oli-font ${ge.team} ${ge[n]}`, children: [
|
|
371
371
|
a != null && a.base ? /* @__PURE__ */ t(
|
|
372
372
|
ta,
|
|
373
373
|
{
|
|
@@ -394,10 +394,10 @@ function aa(e, a, {
|
|
|
394
394
|
const { deltaX: c, deltaY: m } = h;
|
|
395
395
|
if (Math.abs(c) <= Math.abs(m)) return;
|
|
396
396
|
h.preventDefault(), l.current += c;
|
|
397
|
-
const
|
|
398
|
-
if (
|
|
397
|
+
const p = Date.now();
|
|
398
|
+
if (p - s.current < i || Math.abs(l.current) < o) return;
|
|
399
399
|
const _ = l.current > 0 ? ">" : "<";
|
|
400
|
-
l.current = 0, s.current =
|
|
400
|
+
l.current = 0, s.current = p, r.go(_);
|
|
401
401
|
};
|
|
402
402
|
return u.addEventListener("wheel", b, { passive: !1 }), () => {
|
|
403
403
|
u.removeEventListener("wheel", b), l.current = 0;
|
|
@@ -423,8 +423,8 @@ const na = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", oa = "ora
|
|
|
423
423
|
enableHorizontalWheel: h = !0,
|
|
424
424
|
showRightGradient: r = !1
|
|
425
425
|
}, c) => {
|
|
426
|
-
const m = W(null),
|
|
427
|
-
aa(
|
|
426
|
+
const m = W(null), p = W(null), _ = W(e.length), I = W(null), C = W(null);
|
|
427
|
+
aa(p, m, {
|
|
428
428
|
enabled: h
|
|
429
429
|
}), bt(c, () => ({
|
|
430
430
|
next: () => {
|
|
@@ -440,7 +440,7 @@ const na = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", oa = "ora
|
|
|
440
440
|
return (N = m.current) == null ? void 0 : N.go(w);
|
|
441
441
|
}
|
|
442
442
|
}));
|
|
443
|
-
const
|
|
443
|
+
const T = (w) => {
|
|
444
444
|
var $;
|
|
445
445
|
const N = w.Components.Slides, P = w.Components.Controller, E = w.root.querySelector(".splide__track"), O = ($ = E == null ? void 0 : E.clientWidth) != null ? $ : 0, R = P.getIndex(), q = N.getLength();
|
|
446
446
|
let g = 0, z = R;
|
|
@@ -467,8 +467,8 @@ const na = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", oa = "ora
|
|
|
467
467
|
});
|
|
468
468
|
return;
|
|
469
469
|
}
|
|
470
|
-
const { visibleStart: E, visibleEnd: O } =
|
|
471
|
-
r && ((z =
|
|
470
|
+
const { visibleStart: E, visibleEnd: O } = T(w), R = E === 0, q = O === P - 1;
|
|
471
|
+
r && ((z = I.current) == null || z.style.setProperty("--gradient-opacity", R ? "0" : "1"), ($ = C.current) == null || $.style.setProperty("--gradient-opacity", q ? "0" : "1"));
|
|
472
472
|
const g = w.Components.Controller.getIndex();
|
|
473
473
|
u == null || u({
|
|
474
474
|
index: g,
|
|
@@ -512,10 +512,10 @@ const na = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", oa = "ora
|
|
|
512
512
|
...l,
|
|
513
513
|
...h ? { wheel: !1 } : {}
|
|
514
514
|
};
|
|
515
|
-
return /* @__PURE__ */
|
|
515
|
+
return /* @__PURE__ */ f(
|
|
516
516
|
"div",
|
|
517
517
|
{
|
|
518
|
-
ref:
|
|
518
|
+
ref: p,
|
|
519
519
|
className: s,
|
|
520
520
|
style: { width: "100%", position: "relative", height: "100%" },
|
|
521
521
|
children: [
|
|
@@ -533,14 +533,14 @@ const na = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", oa = "ora
|
|
|
533
533
|
})
|
|
534
534
|
}
|
|
535
535
|
),
|
|
536
|
-
r && /* @__PURE__ */
|
|
536
|
+
r && /* @__PURE__ */ f(ae, { children: [
|
|
537
537
|
/* @__PURE__ */ t(
|
|
538
538
|
"div",
|
|
539
539
|
{
|
|
540
|
-
ref:
|
|
540
|
+
ref: I,
|
|
541
541
|
className: `${he.gradientOverlay} ${he.left}`,
|
|
542
542
|
style: { "--gradient-opacity": "0" },
|
|
543
|
-
children: /* @__PURE__ */
|
|
543
|
+
children: /* @__PURE__ */ f(
|
|
544
544
|
"svg",
|
|
545
545
|
{
|
|
546
546
|
className: he.svg,
|
|
@@ -550,7 +550,7 @@ const na = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", oa = "ora
|
|
|
550
550
|
xmlns: "http://www.w3.org/2000/svg",
|
|
551
551
|
children: [
|
|
552
552
|
/* @__PURE__ */ t("path", { d: "M0 0H152V184H0V0Z", fill: "url(#paint_left)" }),
|
|
553
|
-
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */
|
|
553
|
+
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ f("linearGradient", { id: "paint_left", x1: "0", y1: "92", x2: "152", y2: "92", gradientUnits: "userSpaceOnUse", children: [
|
|
554
554
|
/* @__PURE__ */ t("stop", { offset: "0.59737", stopColor: "#121212", stopOpacity: "0" }),
|
|
555
555
|
/* @__PURE__ */ t("stop", { offset: "1", stopColor: "#121212" })
|
|
556
556
|
] }) })
|
|
@@ -565,7 +565,7 @@ const na = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", oa = "ora
|
|
|
565
565
|
ref: C,
|
|
566
566
|
className: `${he.gradientOverlay} ${he.right}`,
|
|
567
567
|
style: { "--gradient-opacity": "1" },
|
|
568
|
-
children: /* @__PURE__ */
|
|
568
|
+
children: /* @__PURE__ */ f(
|
|
569
569
|
"svg",
|
|
570
570
|
{
|
|
571
571
|
className: he.svg,
|
|
@@ -575,7 +575,7 @@ const na = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", oa = "ora
|
|
|
575
575
|
xmlns: "http://www.w3.org/2000/svg",
|
|
576
576
|
children: [
|
|
577
577
|
/* @__PURE__ */ t("path", { d: "M0 0H152V184H0V0Z", fill: "url(#paint_right)" }),
|
|
578
|
-
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */
|
|
578
|
+
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ f("linearGradient", { id: "paint_right", x1: "0", y1: "92", x2: "152", y2: "92", gradientUnits: "userSpaceOnUse", children: [
|
|
579
579
|
/* @__PURE__ */ t("stop", { offset: "0.59737", stopColor: "#121212", stopOpacity: "0" }),
|
|
580
580
|
/* @__PURE__ */ t("stop", { offset: "1", stopColor: "#121212" })
|
|
581
581
|
] }) })
|
|
@@ -598,7 +598,7 @@ const na = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", oa = "ora
|
|
|
598
598
|
const i = n === "lg" ? { w: 280, h: 352 } : { w: 152, h: 168 }, l = (u) => {
|
|
599
599
|
u.stopPropagation(), a == null || a();
|
|
600
600
|
}, s = o ? { width: "100%", height: "100%" } : { width: `${i.w}px`, height: `${i.h}px` };
|
|
601
|
-
return /* @__PURE__ */
|
|
601
|
+
return /* @__PURE__ */ f(
|
|
602
602
|
U,
|
|
603
603
|
{
|
|
604
604
|
onClick: a,
|
|
@@ -686,18 +686,18 @@ function ca({
|
|
|
686
686
|
md: { w: 186, h: 264, r: 22.6, font: 64 }
|
|
687
687
|
}
|
|
688
688
|
}) {
|
|
689
|
-
var c, m,
|
|
690
|
-
const l = (
|
|
691
|
-
var
|
|
689
|
+
var c, m, p, _;
|
|
690
|
+
const l = (I, C) => {
|
|
691
|
+
var T, k, A, L;
|
|
692
692
|
return {
|
|
693
|
-
xs: (k = (
|
|
694
|
-
md: (L = (A = i.md) == null ? void 0 : A[
|
|
693
|
+
xs: (k = (T = i.xs) == null ? void 0 : T[I]) != null ? k : C,
|
|
694
|
+
md: (L = (A = i.md) == null ? void 0 : A[I]) != null ? L : C
|
|
695
695
|
};
|
|
696
696
|
}, s = l("w", 186), u = l("h", 264), b = l("r", 22.6), h = l("font", 64), r = {
|
|
697
697
|
xs: Math.round(((m = (c = i.xs) == null ? void 0 : c.font) != null ? m : 64) * 0.28),
|
|
698
|
-
md: Math.round(((_ = (
|
|
698
|
+
md: Math.round(((_ = (p = i.md) == null ? void 0 : p.font) != null ? _ : 64) * 0.28)
|
|
699
699
|
};
|
|
700
|
-
return /* @__PURE__ */
|
|
700
|
+
return /* @__PURE__ */ f(
|
|
701
701
|
U,
|
|
702
702
|
{
|
|
703
703
|
sx: {
|
|
@@ -795,7 +795,7 @@ const da = ({
|
|
|
795
795
|
onClick: i
|
|
796
796
|
}) => {
|
|
797
797
|
var l;
|
|
798
|
-
return /* @__PURE__ */
|
|
798
|
+
return /* @__PURE__ */ f(
|
|
799
799
|
U,
|
|
800
800
|
{
|
|
801
801
|
onClick: i,
|
|
@@ -891,7 +891,7 @@ const da = ({
|
|
|
891
891
|
var l, s;
|
|
892
892
|
if (a === "mosaic") {
|
|
893
893
|
const u = e[0], b = e.slice(1, 5);
|
|
894
|
-
return /* @__PURE__ */
|
|
894
|
+
return /* @__PURE__ */ f(
|
|
895
895
|
U,
|
|
896
896
|
{
|
|
897
897
|
sx: {
|
|
@@ -1013,7 +1013,7 @@ const da = ({
|
|
|
1013
1013
|
variant: b = "small"
|
|
1014
1014
|
}) => {
|
|
1015
1015
|
const h = a ? a.slice(0, 2) : "", r = a ? a.slice(2) : "", c = b === "large";
|
|
1016
|
-
return /* @__PURE__ */
|
|
1016
|
+
return /* @__PURE__ */ f(
|
|
1017
1017
|
U,
|
|
1018
1018
|
{
|
|
1019
1019
|
className: u,
|
|
@@ -1074,7 +1074,7 @@ const da = ({
|
|
|
1074
1074
|
pl: "14%",
|
|
1075
1075
|
pr: { xs: "14%", lg: "15%" }
|
|
1076
1076
|
},
|
|
1077
|
-
children: /* @__PURE__ */
|
|
1077
|
+
children: /* @__PURE__ */ f(
|
|
1078
1078
|
U,
|
|
1079
1079
|
{
|
|
1080
1080
|
sx: {
|
|
@@ -1095,7 +1095,7 @@ const da = ({
|
|
|
1095
1095
|
children: e
|
|
1096
1096
|
}
|
|
1097
1097
|
),
|
|
1098
|
-
a && /* @__PURE__ */
|
|
1098
|
+
a && /* @__PURE__ */ f(
|
|
1099
1099
|
U,
|
|
1100
1100
|
{
|
|
1101
1101
|
component: "p",
|
|
@@ -1161,7 +1161,7 @@ const da = ({
|
|
|
1161
1161
|
imgSrcMobile: i,
|
|
1162
1162
|
imgSrcDesktopBg: l,
|
|
1163
1163
|
imgSrcDesktopLogo: s
|
|
1164
|
-
}) => /* @__PURE__ */
|
|
1164
|
+
}) => /* @__PURE__ */ f(ae, { children: [
|
|
1165
1165
|
/* @__PURE__ */ t("div", { className: "orc-co-bgMobile", children: /* @__PURE__ */ t(
|
|
1166
1166
|
"img",
|
|
1167
1167
|
{
|
|
@@ -1170,7 +1170,7 @@ const da = ({
|
|
|
1170
1170
|
className: "orc-co-bgMobileImg"
|
|
1171
1171
|
}
|
|
1172
1172
|
) }),
|
|
1173
|
-
/* @__PURE__ */ t("div", { className: "orc-co-bgDesktop", children: /* @__PURE__ */
|
|
1173
|
+
/* @__PURE__ */ t("div", { className: "orc-co-bgDesktop", children: /* @__PURE__ */ f("div", { className: "orc-co-desktopInner", children: [
|
|
1174
1174
|
l && /* @__PURE__ */ t("div", { className: "orc-co-fillHost", children: /* @__PURE__ */ t(
|
|
1175
1175
|
"img",
|
|
1176
1176
|
{
|
|
@@ -1179,7 +1179,7 @@ const da = ({
|
|
|
1179
1179
|
className: "orc-co-bgDesktopImg"
|
|
1180
1180
|
}
|
|
1181
1181
|
) }),
|
|
1182
|
-
/* @__PURE__ */
|
|
1182
|
+
/* @__PURE__ */ f("div", { className: "orc-co-desktopContent", children: [
|
|
1183
1183
|
s && /* @__PURE__ */ t(
|
|
1184
1184
|
"img",
|
|
1185
1185
|
{
|
|
@@ -1192,7 +1192,7 @@ const da = ({
|
|
|
1192
1192
|
/* @__PURE__ */ t(K, { onClick: n, variant: "primary", size: "md", children: a })
|
|
1193
1193
|
] })
|
|
1194
1194
|
] }) }),
|
|
1195
|
-
/* @__PURE__ */
|
|
1195
|
+
/* @__PURE__ */ f("div", { className: "orc-co-bottom", children: [
|
|
1196
1196
|
/* @__PURE__ */ t("p", { className: "orc-co-caption", children: e }),
|
|
1197
1197
|
/* @__PURE__ */ t(K, { onClick: n, variant: "primary", size: "md", children: a })
|
|
1198
1198
|
] })
|
|
@@ -1251,15 +1251,15 @@ function Ca({ coupon: e }) {
|
|
|
1251
1251
|
var h;
|
|
1252
1252
|
const a = Q(), n = ee();
|
|
1253
1253
|
function o(r) {
|
|
1254
|
-
var
|
|
1254
|
+
var p, _;
|
|
1255
1255
|
const c = [], m = Array.from(
|
|
1256
1256
|
new Map(
|
|
1257
|
-
((
|
|
1257
|
+
((p = r == null ? void 0 : r.events) != null ? p : []).filter(Boolean).map((I) => [I.id, I])
|
|
1258
1258
|
).values()
|
|
1259
1259
|
);
|
|
1260
|
-
return m.forEach((
|
|
1260
|
+
return m.forEach((I) => {
|
|
1261
1261
|
var A;
|
|
1262
|
-
const C = (A =
|
|
1262
|
+
const C = (A = I.betoffers) != null ? A : [], T = I.homeName, k = I.awayName;
|
|
1263
1263
|
C.forEach((L) => {
|
|
1264
1264
|
var N, P, E, O, R, q, g;
|
|
1265
1265
|
if (!((N = L == null ? void 0 : L.outcomes) != null && N.length)) return;
|
|
@@ -1267,17 +1267,17 @@ function Ca({ coupon: e }) {
|
|
|
1267
1267
|
if (!M) return;
|
|
1268
1268
|
let F = "";
|
|
1269
1269
|
const w = M != null && M.line ? M.line / 1e3 : "";
|
|
1270
|
-
["Más de", "Mas de", "Over"].includes(M.label) ? (F = `Más de ${w}`, M.participant && (F = `${M.participant} - ${F}`)) : ["Menos de", "Menos", "Under"].includes(M.label) ? (F = `Menos de ${w}`, M.participant && (F = `${M.participant} - ${F}`)) : ["Sí", "No"].includes(M.label) ? (F = M.label, M.participant && (F = `${M.participant} - ${F}`)) : ["1X", "12", "X2"].includes(M.label) ? (M.label === "1X" && (F = `${
|
|
1270
|
+
["Más de", "Mas de", "Over"].includes(M.label) ? (F = `Más de ${w}`, M.participant && (F = `${M.participant} - ${F}`)) : ["Menos de", "Menos", "Under"].includes(M.label) ? (F = `Menos de ${w}`, M.participant && (F = `${M.participant} - ${F}`)) : ["Sí", "No"].includes(M.label) ? (F = M.label, M.participant && (F = `${M.participant} - ${F}`)) : ["1X", "12", "X2"].includes(M.label) ? (M.label === "1X" && (F = `${T} o Empate`), M.label === "12" && (F = `${T} o ${k}`), M.label === "X2" && (F = `${k} o Empate`)) : (F = (E = (P = M.participant) != null ? P : M.label) != null ? E : "", w !== "" && F === M.label && (F = `${M.label} ${w}`)), c.push({
|
|
1271
1271
|
id: M.id,
|
|
1272
1272
|
value: F,
|
|
1273
1273
|
label: (R = (O = L.criterion) == null ? void 0 : O.label) != null ? R : "",
|
|
1274
1274
|
odds: (q = M.odds) != null ? q : 0,
|
|
1275
1275
|
position: (g = M.position) != null ? g : 0,
|
|
1276
|
-
eventId:
|
|
1276
|
+
eventId: I.id
|
|
1277
1277
|
});
|
|
1278
1278
|
});
|
|
1279
1279
|
}), {
|
|
1280
|
-
outcomes: c.sort((
|
|
1280
|
+
outcomes: c.sort((I, C) => I.position - C.position),
|
|
1281
1281
|
total: Number((_ = r == null ? void 0 : r.combinadoTotal) != null ? _ : 0).toLocaleString("en-US", {
|
|
1282
1282
|
minimumFractionDigits: 2,
|
|
1283
1283
|
maximumFractionDigits: 2
|
|
@@ -1300,35 +1300,35 @@ function Ca({ coupon: e }) {
|
|
|
1300
1300
|
return "/deportes#home";
|
|
1301
1301
|
}
|
|
1302
1302
|
const l = (r, c) => {
|
|
1303
|
-
const m = Array.isArray(r) ? r : [r],
|
|
1303
|
+
const m = Array.isArray(r) ? r : [r], p = Array.from(
|
|
1304
1304
|
new Set(
|
|
1305
1305
|
s.outcomes.map((C) => {
|
|
1306
1306
|
var k;
|
|
1307
|
-
const
|
|
1308
|
-
return (k =
|
|
1307
|
+
const T = b.get(Number(C.eventId));
|
|
1308
|
+
return (k = T == null ? void 0 : T.name) != null ? k : "";
|
|
1309
1309
|
})
|
|
1310
1310
|
)
|
|
1311
|
-
).filter(Boolean), _ =
|
|
1311
|
+
).filter(Boolean), _ = p.length > 0 ? p.join(" + ") : JSON.stringify(m), I = c ? `${_} - Cuota: ${c}` : _;
|
|
1312
1312
|
a({
|
|
1313
1313
|
element: "evento_semana_outcome",
|
|
1314
|
-
label: `Landing: ${n} - OraculoEventCombinadasCard - Click: ${
|
|
1314
|
+
label: `Landing: ${n} - OraculoEventCombinadasCard - Click: ${I}`,
|
|
1315
1315
|
target: "/deportes#in-play",
|
|
1316
1316
|
event_type: "click",
|
|
1317
1317
|
module_id: 301,
|
|
1318
1318
|
metadata: {
|
|
1319
1319
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1320
1320
|
},
|
|
1321
|
-
tags: { section: "OraculoEventCombinadasCard", outcomes:
|
|
1321
|
+
tags: { section: "OraculoEventCombinadasCard", outcomes: I }
|
|
1322
1322
|
}), Re(i(e), r);
|
|
1323
1323
|
};
|
|
1324
1324
|
if (!((h = e == null ? void 0 : e.events) != null && h.length)) return null;
|
|
1325
1325
|
const s = o(e), u = s.outcomes.reduce((r, c) => (r[c.eventId] || (r[c.eventId] = []), r[c.eventId].push(c), r), {}), b = new Map(
|
|
1326
1326
|
s.events.map((r) => [r.id, r])
|
|
1327
1327
|
);
|
|
1328
|
-
return /* @__PURE__ */
|
|
1328
|
+
return /* @__PURE__ */ f("div", { className: ne.card, children: [
|
|
1329
1329
|
/* @__PURE__ */ t("div", { className: ne.combinadas, children: /* @__PURE__ */ t("div", { className: ne.combinadasScroll, children: /* @__PURE__ */ t(j, { direction: "column", spacing: 1.5, useFlexGap: !0, children: Object.entries(u).reverse().map(([r, c]) => {
|
|
1330
1330
|
const m = b.get(Number(r));
|
|
1331
|
-
return m ? /* @__PURE__ */
|
|
1331
|
+
return m ? /* @__PURE__ */ f(
|
|
1332
1332
|
j,
|
|
1333
1333
|
{
|
|
1334
1334
|
direction: "column",
|
|
@@ -1350,15 +1350,15 @@ function Ca({ coupon: e }) {
|
|
|
1350
1350
|
src: "/assets/img/home/Combinadas/line.png"
|
|
1351
1351
|
}
|
|
1352
1352
|
),
|
|
1353
|
-
c.map((
|
|
1354
|
-
/* @__PURE__ */
|
|
1353
|
+
c.map((p, _) => /* @__PURE__ */ f("div", { className: ne.apuestaItem, children: [
|
|
1354
|
+
/* @__PURE__ */ f("div", { className: ne.lineContainer, children: [
|
|
1355
1355
|
/* @__PURE__ */ t("div", { className: ne.circle }),
|
|
1356
1356
|
_ < c.length - 1 && /* @__PURE__ */ t("div", { className: ne.line })
|
|
1357
1357
|
] }),
|
|
1358
|
-
/* @__PURE__ */
|
|
1359
|
-
/* @__PURE__ */ t("strong", { children:
|
|
1358
|
+
/* @__PURE__ */ f("div", { className: ne.apuestaText, children: [
|
|
1359
|
+
/* @__PURE__ */ t("strong", { children: p.value }),
|
|
1360
1360
|
" | ",
|
|
1361
|
-
|
|
1361
|
+
p.label
|
|
1362
1362
|
] })
|
|
1363
1363
|
] }, `${r}-${_}`))
|
|
1364
1364
|
]
|
|
@@ -1366,7 +1366,7 @@ function Ca({ coupon: e }) {
|
|
|
1366
1366
|
r
|
|
1367
1367
|
) : null;
|
|
1368
1368
|
}) }) }) }),
|
|
1369
|
-
/* @__PURE__ */
|
|
1369
|
+
/* @__PURE__ */ f(
|
|
1370
1370
|
"button",
|
|
1371
1371
|
{
|
|
1372
1372
|
onClick: () => l(
|
|
@@ -1375,7 +1375,7 @@ function Ca({ coupon: e }) {
|
|
|
1375
1375
|
),
|
|
1376
1376
|
className: ne.cuotaTotal,
|
|
1377
1377
|
children: [
|
|
1378
|
-
/* @__PURE__ */
|
|
1378
|
+
/* @__PURE__ */ f("span", { children: [
|
|
1379
1379
|
"Cuota total: ",
|
|
1380
1380
|
/* @__PURE__ */ t("strong", { children: s.total })
|
|
1381
1381
|
] }),
|
|
@@ -1420,11 +1420,11 @@ function Oa({
|
|
|
1420
1420
|
fullHeight: r = !1,
|
|
1421
1421
|
className: c = "",
|
|
1422
1422
|
ariaLabel: m,
|
|
1423
|
-
leftIcon:
|
|
1423
|
+
leftIcon: p,
|
|
1424
1424
|
rightIcon: _,
|
|
1425
|
-
iconOnly:
|
|
1425
|
+
iconOnly: I
|
|
1426
1426
|
}) {
|
|
1427
|
-
const C = !!e && e !== !0, A = (!!
|
|
1427
|
+
const C = !!e && e !== !0, A = (!!p ? 1 : 0) + (!!_ ? 1 : 0) == 1, L = I != null ? I : A && !C, M = [
|
|
1428
1428
|
oe["orc-btn"],
|
|
1429
1429
|
// base
|
|
1430
1430
|
oe[`orc-btn--${u}`],
|
|
@@ -1435,8 +1435,8 @@ function Oa({
|
|
|
1435
1435
|
r ? oe["orc-btn--fullHeight"] : "",
|
|
1436
1436
|
L ? oe["orc-btn--iconOnly"] : "",
|
|
1437
1437
|
c
|
|
1438
|
-
].filter(Boolean).join(" "), F = /* @__PURE__ */
|
|
1439
|
-
|
|
1438
|
+
].filter(Boolean).join(" "), F = /* @__PURE__ */ f(ae, { children: [
|
|
1439
|
+
p && /* @__PURE__ */ t("span", { className: oe["orc-btn__icon"], children: p }),
|
|
1440
1440
|
!L && /* @__PURE__ */ t("span", { className: oe["orc-btn__label"], children: e }),
|
|
1441
1441
|
_ && /* @__PURE__ */ t("span", { className: oe["orc-btn__icon"], children: _ })
|
|
1442
1442
|
] }), w = s ? !0 : void 0;
|
|
@@ -1491,7 +1491,7 @@ const Ea = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", Ia = "
|
|
|
1491
1491
|
return o || (a === "home" ? Ve : De);
|
|
1492
1492
|
};
|
|
1493
1493
|
function ka({ event: e, liveData: a, betOffers: n, jersey: o }) {
|
|
1494
|
-
var u, b, h, r, c, m,
|
|
1494
|
+
var u, b, h, r, c, m, p, _, I, C, T;
|
|
1495
1495
|
const i = n == null ? void 0 : n.find(
|
|
1496
1496
|
(k) => {
|
|
1497
1497
|
var A;
|
|
@@ -1511,8 +1511,8 @@ function ka({ event: e, liveData: a, betOffers: n, jersey: o }) {
|
|
|
1511
1511
|
{ ...l, id: -2, label: "X", odds: void 0 },
|
|
1512
1512
|
{ ...l, id: -3, label: "2", odds: void 0 }
|
|
1513
1513
|
];
|
|
1514
|
-
return /* @__PURE__ */ t("div", { className: Se.cardWrapper, children: /* @__PURE__ */
|
|
1515
|
-
/* @__PURE__ */
|
|
1514
|
+
return /* @__PURE__ */ t("div", { className: Se.cardWrapper, children: /* @__PURE__ */ f(j, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1515
|
+
/* @__PURE__ */ f(j, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
1516
1516
|
/* @__PURE__ */ t(
|
|
1517
1517
|
At,
|
|
1518
1518
|
{
|
|
@@ -1522,15 +1522,15 @@ function ka({ event: e, liveData: a, betOffers: n, jersey: o }) {
|
|
|
1522
1522
|
time: ((c = a == null ? void 0 : a.matchClock) == null ? void 0 : c.minute) != null ? `${a.matchClock.minute}'` : ""
|
|
1523
1523
|
}
|
|
1524
1524
|
),
|
|
1525
|
-
/* @__PURE__ */ t("div", { style: { padding: "0 4px" }, children: /* @__PURE__ */
|
|
1525
|
+
/* @__PURE__ */ t("div", { style: { padding: "0 4px" }, children: /* @__PURE__ */ f(re, { spacing: 1.5, columns: "1fr auto 1fr", children: [
|
|
1526
1526
|
/* @__PURE__ */ t(Oe, { name: e == null ? void 0 : e.homeName, jersey: Ee(o, "home") }),
|
|
1527
|
-
/* @__PURE__ */ t(it, { text: ((
|
|
1527
|
+
/* @__PURE__ */ t(it, { text: ((p = (m = a == null ? void 0 : a.score) == null ? void 0 : m.home) != null ? p : 0) + ":" + ((I = (_ = a == null ? void 0 : a.score) == null ? void 0 : _.away) != null ? I : 0), name: "En vivo" }),
|
|
1528
1528
|
/* @__PURE__ */ t(Oe, { name: e == null ? void 0 : e.awayName, jersey: Ee(o, "away") })
|
|
1529
1529
|
] }) })
|
|
1530
1530
|
] }),
|
|
1531
|
-
/* @__PURE__ */
|
|
1531
|
+
/* @__PURE__ */ f(j, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1532
1532
|
/* @__PURE__ */ t(re, { spacing: 1, children: ((C = i == null ? void 0 : i.outcomes) != null ? C : s).map((k, A) => /* @__PURE__ */ t(nt, { text: k.label.toUpperCase() }, A)) }),
|
|
1533
|
-
/* @__PURE__ */ t(re, { spacing: 2, children: ((
|
|
1533
|
+
/* @__PURE__ */ t(re, { spacing: 2, children: ((T = i == null ? void 0 : i.outcomes) != null ? T : s).map((k, A) => /* @__PURE__ */ t(Oa, { variant: "primary", disabled: k.odds == null || (i == null ? void 0 : i.cashOutStatus) == "SUSPENDED", onClick: () => {
|
|
1534
1534
|
Re("/deportes#event/live/" + e.id, k.id);
|
|
1535
1535
|
}, className: Se.customButtonDisabled, children: /* @__PURE__ */ t("span", { className: Se.customButtonLabel, children: k.odds === void 0 ? "" : (k.odds / 1e3).toFixed(2) }) }, A)) })
|
|
1536
1536
|
] })
|
|
@@ -1551,41 +1551,41 @@ const Ba = "oraculo__OraculoEventSemanaCard-module__cardContainer___4JuDe", La =
|
|
|
1551
1551
|
function Fa({ event: e, jersey: a }) {
|
|
1552
1552
|
var s, u, b, h, r, c, m;
|
|
1553
1553
|
const n = Q(), o = ee();
|
|
1554
|
-
function i(
|
|
1555
|
-
const _ = new Date(
|
|
1554
|
+
function i(p) {
|
|
1555
|
+
const _ = new Date(p), I = _.toLocaleDateString("es-ES", { weekday: "short" }).toUpperCase(), C = _.getDate().toString().padStart(2, "0"), T = (_.getMonth() + 1).toString().padStart(2, "0");
|
|
1556
1556
|
let k = _.toLocaleTimeString("es-PE", { hour: "numeric", minute: "2-digit", hour12: !0 }).toUpperCase();
|
|
1557
|
-
return k = k.replace(/\./g, "").replace(/A\s*M/i, "AM").replace(/P\s*M/i, "PM"), `${
|
|
1557
|
+
return k = k.replace(/\./g, "").replace(/A\s*M/i, "AM").replace(/P\s*M/i, "PM"), `${I} ${C}/${T} | ${k}`;
|
|
1558
1558
|
}
|
|
1559
|
-
const l = (
|
|
1560
|
-
const
|
|
1559
|
+
const l = (p, _) => {
|
|
1560
|
+
const I = `${e.homeName} vs ${e.awayName}`, C = _ ? (_ / 1e3).toFixed(2) : "", T = C ? `${I} - Cuota: ${C}` : I;
|
|
1561
1561
|
n({
|
|
1562
1562
|
element: "evento_semana_outcome",
|
|
1563
|
-
label: `Landing: ${o} - OraculoEventSemanaCard - Click: ${
|
|
1563
|
+
label: `Landing: ${o} - OraculoEventSemanaCard - Click: ${T}`,
|
|
1564
1564
|
target: "/deportes#in-play",
|
|
1565
1565
|
event_type: "click",
|
|
1566
1566
|
module_id: 301,
|
|
1567
1567
|
metadata: {
|
|
1568
1568
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1569
1569
|
},
|
|
1570
|
-
tags: { section: "OraculoEventSemanaCard", outcomes:
|
|
1571
|
-
}), Re("/deportes#event/" + e.id,
|
|
1570
|
+
tags: { section: "OraculoEventSemanaCard", outcomes: T }
|
|
1571
|
+
}), Re("/deportes#event/" + e.id, p);
|
|
1572
1572
|
};
|
|
1573
|
-
return /* @__PURE__ */
|
|
1573
|
+
return /* @__PURE__ */ f("div", { className: de.cardContainer, children: [
|
|
1574
1574
|
/* @__PURE__ */ t(ot, { title: (s = e == null ? void 0 : e.group) != null ? s : "" }),
|
|
1575
|
-
/* @__PURE__ */ t("div", { className: de.cardBackground, children: /* @__PURE__ */
|
|
1576
|
-
/* @__PURE__ */
|
|
1577
|
-
/* @__PURE__ */
|
|
1575
|
+
/* @__PURE__ */ t("div", { className: de.cardBackground, children: /* @__PURE__ */ f(j, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
1576
|
+
/* @__PURE__ */ f(j, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1577
|
+
/* @__PURE__ */ f("div", { className: de.equipos, children: [
|
|
1578
1578
|
/* @__PURE__ */ t(Oe, { name: e.homeName, size: "compact", jersey: Ee(a, "home") }),
|
|
1579
1579
|
/* @__PURE__ */ t(it, { text: "vs.", name: "", size: "small" }),
|
|
1580
1580
|
/* @__PURE__ */ t(Oe, { name: e.awayName, size: "compact", jersey: Ee(a, "away") })
|
|
1581
1581
|
] }),
|
|
1582
1582
|
/* @__PURE__ */ t(Ma, { text: i(e.start) })
|
|
1583
1583
|
] }),
|
|
1584
|
-
/* @__PURE__ */
|
|
1585
|
-
/* @__PURE__ */ t(re, { spacing: 1, children: ((h = (b = (u = e == null ? void 0 : e.outcome) == null ? void 0 : u[0]) == null ? void 0 : b.outcomes) != null ? h : []).map((
|
|
1586
|
-
/* @__PURE__ */ t("div", { className: de.jugadas, children: /* @__PURE__ */ t(re, { spacing: 1, children: ((m = (c = (r = e == null ? void 0 : e.outcome) == null ? void 0 : r[0]) == null ? void 0 : c.outcomes) != null ? m : []).map((
|
|
1587
|
-
l(
|
|
1588
|
-
}, children: (
|
|
1584
|
+
/* @__PURE__ */ f(j, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
1585
|
+
/* @__PURE__ */ t(re, { spacing: 1, children: ((h = (b = (u = e == null ? void 0 : e.outcome) == null ? void 0 : u[0]) == null ? void 0 : b.outcomes) != null ? h : []).map((p, _) => /* @__PURE__ */ t(nt, { text: p.label.toUpperCase() }, _)) }),
|
|
1586
|
+
/* @__PURE__ */ t("div", { className: de.jugadas, children: /* @__PURE__ */ t(re, { spacing: 1, children: ((m = (c = (r = e == null ? void 0 : e.outcome) == null ? void 0 : r[0]) == null ? void 0 : c.outcomes) != null ? m : []).map((p, _) => /* @__PURE__ */ t(K, { variant: "primary", fullHeight: !0, onClick: () => {
|
|
1587
|
+
l(p.id, p.odds);
|
|
1588
|
+
}, children: (p.odds / 1e3).toFixed(2) }, _)) }) })
|
|
1589
1589
|
] })
|
|
1590
1590
|
] }) })
|
|
1591
1591
|
] });
|
|
@@ -1598,7 +1598,7 @@ function za({
|
|
|
1598
1598
|
className: i = ""
|
|
1599
1599
|
}) {
|
|
1600
1600
|
const l = W(null), [s, u] = H({ isStart: !0, isEnd: !1 }), b = Q(), h = ee(), r = !e || e.length === 0, c = () => {
|
|
1601
|
-
var
|
|
1601
|
+
var T;
|
|
1602
1602
|
b({
|
|
1603
1603
|
element: "destacados_carousel_prev",
|
|
1604
1604
|
label: `Landing: ${h} - OraculoSeccionDestacados - Anterior`,
|
|
@@ -1609,9 +1609,9 @@ function za({
|
|
|
1609
1609
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1610
1610
|
},
|
|
1611
1611
|
tags: { section: "OraculoSeccionDestacados" }
|
|
1612
|
-
}), (
|
|
1612
|
+
}), (T = l.current) == null || T.prev();
|
|
1613
1613
|
}, m = () => {
|
|
1614
|
-
var
|
|
1614
|
+
var T;
|
|
1615
1615
|
b({
|
|
1616
1616
|
element: "destacados_carousel_next",
|
|
1617
1617
|
label: `Landing: ${h} - OraculoSeccionDestacados - Siguiente`,
|
|
@@ -1622,8 +1622,8 @@ function za({
|
|
|
1622
1622
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1623
1623
|
},
|
|
1624
1624
|
tags: { section: "OraculoSeccionDestacados" }
|
|
1625
|
-
}), (
|
|
1626
|
-
},
|
|
1625
|
+
}), (T = l.current) == null || T.next();
|
|
1626
|
+
}, p = () => {
|
|
1627
1627
|
b({
|
|
1628
1628
|
element: "destacados_view_more",
|
|
1629
1629
|
label: `Landing: ${h} - OraculoSeccionDestacados - Ver más`,
|
|
@@ -1635,12 +1635,12 @@ function za({
|
|
|
1635
1635
|
},
|
|
1636
1636
|
tags: { section: "OraculoSeccionDestacados" }
|
|
1637
1637
|
}), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/promociones");
|
|
1638
|
-
}, _ = (
|
|
1639
|
-
if (!
|
|
1640
|
-
const A = `https://www.olimpo.bet/promociones/${encodeURIComponent(
|
|
1638
|
+
}, _ = (T) => {
|
|
1639
|
+
if (!T) return;
|
|
1640
|
+
const A = `https://www.olimpo.bet/promociones/${encodeURIComponent(T)}`;
|
|
1641
1641
|
b({
|
|
1642
1642
|
element: "destacados_card",
|
|
1643
|
-
label: `Landing: ${h} - OraculoSeccionDestacados - Click: ${String(
|
|
1643
|
+
label: `Landing: ${h} - OraculoSeccionDestacados - Click: ${String(T)}`,
|
|
1644
1644
|
target: A,
|
|
1645
1645
|
event_type: "click",
|
|
1646
1646
|
module_id: 301,
|
|
@@ -1649,12 +1649,12 @@ function za({
|
|
|
1649
1649
|
},
|
|
1650
1650
|
tags: {
|
|
1651
1651
|
section: "OraculoSeccionDestacados",
|
|
1652
|
-
promotion: String(
|
|
1652
|
+
promotion: String(T)
|
|
1653
1653
|
}
|
|
1654
1654
|
}), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(A);
|
|
1655
|
-
},
|
|
1656
|
-
return /* @__PURE__ */
|
|
1657
|
-
/* @__PURE__ */
|
|
1655
|
+
}, I = i || void 0, C = be("(max-width:768px)");
|
|
1656
|
+
return /* @__PURE__ */ f("section", { className: I, style: { width: "100%" }, children: [
|
|
1657
|
+
/* @__PURE__ */ f(
|
|
1658
1658
|
"header",
|
|
1659
1659
|
{
|
|
1660
1660
|
style: {
|
|
@@ -1669,7 +1669,7 @@ function za({
|
|
|
1669
1669
|
},
|
|
1670
1670
|
children: [
|
|
1671
1671
|
/* @__PURE__ */ t(se, { title: a, iconUrl: n, size: "md" }),
|
|
1672
|
-
/* @__PURE__ */
|
|
1672
|
+
/* @__PURE__ */ f("div", { style: { display: "flex", gap: 8 }, children: [
|
|
1673
1673
|
/* @__PURE__ */ t(
|
|
1674
1674
|
K,
|
|
1675
1675
|
{
|
|
@@ -1693,7 +1693,7 @@ function za({
|
|
|
1693
1693
|
}
|
|
1694
1694
|
)
|
|
1695
1695
|
] }),
|
|
1696
|
-
/* @__PURE__ */ t(K, { variant: "secondary", onClick:
|
|
1696
|
+
/* @__PURE__ */ t(K, { variant: "secondary", onClick: p, children: "Ver más" })
|
|
1697
1697
|
]
|
|
1698
1698
|
}
|
|
1699
1699
|
),
|
|
@@ -1711,7 +1711,7 @@ function za({
|
|
|
1711
1711
|
768: { perPage: 2, focus: "start", padding: { left: "24px", right: "24px" } },
|
|
1712
1712
|
1024: { perPage: 2.5, focus: "start", padding: { left: "24px", right: "24px" } }
|
|
1713
1713
|
},
|
|
1714
|
-
renderItem: (
|
|
1714
|
+
renderItem: (T) => /* @__PURE__ */ t(
|
|
1715
1715
|
"div",
|
|
1716
1716
|
{
|
|
1717
1717
|
style: {
|
|
@@ -1719,12 +1719,12 @@ function za({
|
|
|
1719
1719
|
marginTop: 16,
|
|
1720
1720
|
cursor: "pointer"
|
|
1721
1721
|
},
|
|
1722
|
-
onClick: () => _(
|
|
1722
|
+
onClick: () => _(T.promotion),
|
|
1723
1723
|
children: /* @__PURE__ */ t(
|
|
1724
1724
|
"img",
|
|
1725
1725
|
{
|
|
1726
|
-
src: `https://olimpo.bet${
|
|
1727
|
-
alt:
|
|
1726
|
+
src: `https://olimpo.bet${T.image !== "" ? T.image : T.summary_image}`,
|
|
1727
|
+
alt: T.title,
|
|
1728
1728
|
style: {
|
|
1729
1729
|
width: "100%",
|
|
1730
1730
|
height: typeof window != "undefined" && window.innerWidth < 768 ? "80px" : "137px",
|
|
@@ -1735,10 +1735,10 @@ function za({
|
|
|
1735
1735
|
}
|
|
1736
1736
|
)
|
|
1737
1737
|
},
|
|
1738
|
-
`${
|
|
1738
|
+
`${T.title}-${T.image}`
|
|
1739
1739
|
),
|
|
1740
|
-
onMove: ({ isStart:
|
|
1741
|
-
u({ isStart:
|
|
1740
|
+
onMove: ({ isStart: T, isEnd: k }) => {
|
|
1741
|
+
u({ isStart: T, isEnd: k }), b({
|
|
1742
1742
|
element: "destacados_carousel_slide",
|
|
1743
1743
|
label: "OraculoSeccionDestacados - Slide Carousel",
|
|
1744
1744
|
target: "carousel",
|
|
@@ -1746,7 +1746,7 @@ function za({
|
|
|
1746
1746
|
module_id: 301,
|
|
1747
1747
|
metadata: {
|
|
1748
1748
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
1749
|
-
isStart:
|
|
1749
|
+
isStart: T,
|
|
1750
1750
|
isEnd: k
|
|
1751
1751
|
},
|
|
1752
1752
|
tags: { section: "OraculoSeccionDestacados" }
|
|
@@ -1807,7 +1807,7 @@ function qa({
|
|
|
1807
1807
|
m == null || m(r, !1, "CASINO");
|
|
1808
1808
|
});
|
|
1809
1809
|
};
|
|
1810
|
-
return /* @__PURE__ */ t("section", { style: { width: "100%" }, children: /* @__PURE__ */
|
|
1810
|
+
return /* @__PURE__ */ t("section", { style: { width: "100%" }, children: /* @__PURE__ */ f(j, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
1811
1811
|
/* @__PURE__ */ t(se, { title: a, iconUrl: n, size: "md" }),
|
|
1812
1812
|
/* @__PURE__ */ t(
|
|
1813
1813
|
U,
|
|
@@ -1823,7 +1823,7 @@ function qa({
|
|
|
1823
1823
|
width: "100%"
|
|
1824
1824
|
},
|
|
1825
1825
|
children: b.map((r, c) => {
|
|
1826
|
-
var m,
|
|
1826
|
+
var m, p;
|
|
1827
1827
|
return /* @__PURE__ */ t(
|
|
1828
1828
|
ca,
|
|
1829
1829
|
{
|
|
@@ -1834,7 +1834,7 @@ function qa({
|
|
|
1834
1834
|
o == null || o(r), h(r);
|
|
1835
1835
|
}
|
|
1836
1836
|
},
|
|
1837
|
-
u ? `sk-${c}` : (
|
|
1837
|
+
u ? `sk-${c}` : (p = r.machine) != null ? p : `${c}`
|
|
1838
1838
|
);
|
|
1839
1839
|
})
|
|
1840
1840
|
}
|
|
@@ -1842,22 +1842,25 @@ function qa({
|
|
|
1842
1842
|
] }) });
|
|
1843
1843
|
}
|
|
1844
1844
|
const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommendations", Da = (e, a) => {
|
|
1845
|
-
var n, o, i, l, s, u, b, h, r, c, m;
|
|
1845
|
+
var n, o, i, l, s, u, b, h, r, c, m, p, _, I;
|
|
1846
1846
|
return {
|
|
1847
|
-
|
|
1848
|
-
id: (n = e.id) != null ? n : a,
|
|
1849
|
-
orden: (o = e.id) != null ? o : a,
|
|
1847
|
+
orden: Number(a),
|
|
1850
1848
|
machine: String(
|
|
1851
|
-
(
|
|
1849
|
+
(n = e.id) != null ? n : e.external_id
|
|
1852
1850
|
),
|
|
1853
|
-
logo: e.logo,
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1851
|
+
logo: (o = e.logo) != null ? o : "",
|
|
1852
|
+
name: (i = e.room_name) != null ? i : "",
|
|
1853
|
+
web_name: (l = e.product) != null ? l : "",
|
|
1854
|
+
provider: (s = e.service) != null ? s : "",
|
|
1855
|
+
sub_provider: (u = e.service) != null ? u : "",
|
|
1856
|
+
external_id: (b = e.external_id) != null ? b : "",
|
|
1857
|
+
type: (h = e.game_type) != null ? h : "",
|
|
1858
|
+
tags: (r = e.tags) != null ? r : "",
|
|
1859
|
+
lobby_tag: (c = e.lobby_tag) != null ? c : null,
|
|
1860
|
+
background: (m = e.background) != null ? m : "",
|
|
1861
|
+
rtp: (p = e.rtp) != null ? p : null,
|
|
1862
|
+
demo_allowed: (_ = e.demo_allowed) != null ? _ : !1,
|
|
1863
|
+
gaming_session_required: (I = e.gaming_session_required) != null ? I : !1
|
|
1861
1864
|
};
|
|
1862
1865
|
}, Wa = (e) => e ? !Array.isArray(e) && Array.isArray(e.recommendations) ? e.recommendations.filter(Boolean).map((a) => String(a)) : [] : [], Ga = () => {
|
|
1863
1866
|
var a, n, o;
|
|
@@ -1891,20 +1894,20 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1891
1894
|
return;
|
|
1892
1895
|
}
|
|
1893
1896
|
const c = await Promise.allSettled(
|
|
1894
|
-
r.map(async (
|
|
1895
|
-
const
|
|
1896
|
-
`https://api.mktolimpo.com/api/machine/${
|
|
1897
|
+
r.map(async (p, _) => {
|
|
1898
|
+
const I = await fetch(
|
|
1899
|
+
`https://api.mktolimpo.com/api/machine/${p}`
|
|
1897
1900
|
);
|
|
1898
|
-
if (!
|
|
1899
|
-
throw new Error(`No se pudo obtener machine ${
|
|
1900
|
-
const C = await
|
|
1901
|
+
if (!I.ok)
|
|
1902
|
+
throw new Error(`No se pudo obtener machine ${p}`);
|
|
1903
|
+
const C = await I.json();
|
|
1901
1904
|
return Da(C, _);
|
|
1902
1905
|
})
|
|
1903
1906
|
);
|
|
1904
1907
|
if (u) return;
|
|
1905
1908
|
const m = c.filter(
|
|
1906
|
-
(
|
|
1907
|
-
).map((
|
|
1909
|
+
(p) => p.status === "fulfilled"
|
|
1910
|
+
).map((p) => p.value);
|
|
1908
1911
|
i(m);
|
|
1909
1912
|
} catch (h) {
|
|
1910
1913
|
console.error(`[usePersonalizeGameItems:${n}] error:`, h), u || i([]);
|
|
@@ -1945,7 +1948,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1945
1948
|
const h = Q(), r = ee(), c = Xa(b), { resolvedItems: m } = Za(
|
|
1946
1949
|
e,
|
|
1947
1950
|
c
|
|
1948
|
-
),
|
|
1951
|
+
), p = c ? m : Array.isArray(e) ? e : [], _ = (C) => {
|
|
1949
1952
|
h({
|
|
1950
1953
|
element: "live_casino_card",
|
|
1951
1954
|
label: `Landing: ${r} - OraculoSeccionCasinoEnVivo${c ? " - personalize" : ""} - Open game: ${String(C.machine || "unknown")}`,
|
|
@@ -1961,7 +1964,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1961
1964
|
section: "OraculoSeccionCasinoEnVivo"
|
|
1962
1965
|
}
|
|
1963
1966
|
});
|
|
1964
|
-
const
|
|
1967
|
+
const T = le("showIframe"), k = le("loadMachine");
|
|
1965
1968
|
if (!k) {
|
|
1966
1969
|
if (i) {
|
|
1967
1970
|
i(C);
|
|
@@ -1973,10 +1976,10 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1973
1976
|
);
|
|
1974
1977
|
return;
|
|
1975
1978
|
}
|
|
1976
|
-
|
|
1979
|
+
T == null || T(), typeof window != "undefined" && window.scrollTo({ top: 0, behavior: "smooth" }), requestAnimationFrame(() => {
|
|
1977
1980
|
k == null || k(C, !1, "casino_en_vivo");
|
|
1978
1981
|
});
|
|
1979
|
-
},
|
|
1982
|
+
}, I = () => {
|
|
1980
1983
|
h({
|
|
1981
1984
|
element: "casino_en_vivo_view_more",
|
|
1982
1985
|
label: `Landing: ${r} - OraculoSeccionCasinoEnVivo${c ? " - personalize" : ""} - Ver más`,
|
|
@@ -1989,7 +1992,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1989
1992
|
tags: { section: "OraculoSeccionCasinoEnVivo" }
|
|
1990
1993
|
}), typeof globalThis != "undefined" && globalThis.location && (s ? s() : globalThis.location.assign("https://www.olimpo.bet/casino-en-vivo"));
|
|
1991
1994
|
};
|
|
1992
|
-
return /* @__PURE__ */
|
|
1995
|
+
return /* @__PURE__ */ f(
|
|
1993
1996
|
U,
|
|
1994
1997
|
{
|
|
1995
1998
|
className: u,
|
|
@@ -2027,7 +2030,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2027
2030
|
}
|
|
2028
2031
|
}
|
|
2029
2032
|
),
|
|
2030
|
-
/* @__PURE__ */
|
|
2033
|
+
/* @__PURE__ */ f(
|
|
2031
2034
|
U,
|
|
2032
2035
|
{
|
|
2033
2036
|
sx: {
|
|
@@ -2045,7 +2048,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2045
2048
|
textAlign: { xs: "center", md: "left" }
|
|
2046
2049
|
},
|
|
2047
2050
|
children: [
|
|
2048
|
-
/* @__PURE__ */
|
|
2051
|
+
/* @__PURE__ */ f(j, { spacing: 3, sx: { maxWidth: { md: 280 } }, children: [
|
|
2049
2052
|
/* @__PURE__ */ t(
|
|
2050
2053
|
ie,
|
|
2051
2054
|
{
|
|
@@ -2076,7 +2079,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2076
2079
|
{
|
|
2077
2080
|
variant: "primary",
|
|
2078
2081
|
size: "md",
|
|
2079
|
-
onClick:
|
|
2082
|
+
onClick: I,
|
|
2080
2083
|
children: "Ver más"
|
|
2081
2084
|
}
|
|
2082
2085
|
) })
|
|
@@ -2092,7 +2095,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2092
2095
|
py: { xs: 3, md: 0 },
|
|
2093
2096
|
alignItems: "center"
|
|
2094
2097
|
},
|
|
2095
|
-
children: (
|
|
2098
|
+
children: (p != null ? p : []).slice(0, 3).map((C, T) => {
|
|
2096
2099
|
var k;
|
|
2097
2100
|
return /* @__PURE__ */ t(
|
|
2098
2101
|
da,
|
|
@@ -2103,7 +2106,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2103
2106
|
machine: C.machine,
|
|
2104
2107
|
onClick: () => _(C)
|
|
2105
2108
|
},
|
|
2106
|
-
Ja(C,
|
|
2109
|
+
Ja(C, T)
|
|
2107
2110
|
);
|
|
2108
2111
|
})
|
|
2109
2112
|
}
|
|
@@ -2113,7 +2116,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2113
2116
|
{
|
|
2114
2117
|
variant: "primary",
|
|
2115
2118
|
size: "lg",
|
|
2116
|
-
onClick:
|
|
2119
|
+
onClick: I,
|
|
2117
2120
|
children: "Ver más"
|
|
2118
2121
|
}
|
|
2119
2122
|
) })
|
|
@@ -2175,10 +2178,10 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2175
2178
|
gridSize: s = 1,
|
|
2176
2179
|
isPersonalize: u = !1
|
|
2177
2180
|
}) => {
|
|
2178
|
-
const b = Q(), h = ee(), r = W(null), [c, m] = H({ isStart: !0, isEnd: !1 }),
|
|
2181
|
+
const b = Q(), h = ee(), r = W(null), [c, m] = H({ isStart: !0, isEnd: !1 }), p = Qa(u), { resolvedItems: _, loading: I } = Ha(
|
|
2179
2182
|
e,
|
|
2180
|
-
|
|
2181
|
-
), C =
|
|
2183
|
+
p
|
|
2184
|
+
), C = p ? _ : Array.isArray(e) ? e : [], T = () => {
|
|
2182
2185
|
var N;
|
|
2183
2186
|
b({
|
|
2184
2187
|
element: "casino_prev",
|
|
@@ -2226,9 +2229,9 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2226
2229
|
imageUrl: ""
|
|
2227
2230
|
})), O = [];
|
|
2228
2231
|
return N && O.push({ id: "mosaic-loading", kind: "mosaic", items: E(5) }), O.push({ id: "grid-loading", kind: "grid", items: E(P) }), O;
|
|
2229
|
-
}, M =
|
|
2230
|
-
return /* @__PURE__ */ t("section", { children: /* @__PURE__ */
|
|
2231
|
-
/* @__PURE__ */
|
|
2232
|
+
}, M = p ? I : !Array.isArray(e) || e.length === 0, F = Ye("(max-width:768px)"), w = M ? L(l, s) : en(C, l, s);
|
|
2233
|
+
return /* @__PURE__ */ t("section", { children: /* @__PURE__ */ f(j, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
2234
|
+
/* @__PURE__ */ f(
|
|
2232
2235
|
U,
|
|
2233
2236
|
{
|
|
2234
2237
|
sx: {
|
|
@@ -2241,7 +2244,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2241
2244
|
},
|
|
2242
2245
|
children: [
|
|
2243
2246
|
/* @__PURE__ */ t(se, { title: a, iconUrl: n, size: "md" }),
|
|
2244
|
-
/* @__PURE__ */
|
|
2247
|
+
/* @__PURE__ */ f(U, { sx: { display: "flex", gap: 1, justifyContent: "flex-end" }, children: [
|
|
2245
2248
|
/* @__PURE__ */ t(
|
|
2246
2249
|
K,
|
|
2247
2250
|
{
|
|
@@ -2249,7 +2252,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2249
2252
|
variant: "secondary",
|
|
2250
2253
|
iconOnly: !0,
|
|
2251
2254
|
leftIcon: /* @__PURE__ */ t(et, {}),
|
|
2252
|
-
onClick:
|
|
2255
|
+
onClick: T,
|
|
2253
2256
|
disabled: c.isStart
|
|
2254
2257
|
}
|
|
2255
2258
|
),
|
|
@@ -2397,14 +2400,14 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2397
2400
|
gridSize: s = 1,
|
|
2398
2401
|
isPersonalize: u = !1
|
|
2399
2402
|
}) => {
|
|
2400
|
-
const b = W(null), [h, r] = H({ isStart: !0, isEnd: !1 }), c = Q(), m = ee(),
|
|
2403
|
+
const b = W(null), [h, r] = H({ isStart: !0, isEnd: !1 }), c = Q(), m = ee(), p = an(u), { resolvedItems: _, loading: I } = Ka(
|
|
2401
2404
|
e,
|
|
2402
|
-
|
|
2403
|
-
), C =
|
|
2405
|
+
p
|
|
2406
|
+
), C = p ? _ : Array.isArray(e) ? e : [], T = () => {
|
|
2404
2407
|
var w;
|
|
2405
2408
|
c({
|
|
2406
2409
|
element: "virtuales_prev",
|
|
2407
|
-
label: `Landing: ${m} - OraculoSeccionVirtuales${
|
|
2410
|
+
label: `Landing: ${m} - OraculoSeccionVirtuales${p ? " - personalize" : ""} - Anterior`,
|
|
2408
2411
|
target: "prev",
|
|
2409
2412
|
event_type: "click",
|
|
2410
2413
|
module_id: 301,
|
|
@@ -2417,7 +2420,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2417
2420
|
var w;
|
|
2418
2421
|
c({
|
|
2419
2422
|
element: "virtuales_next",
|
|
2420
|
-
label: `Landing: ${m} - OraculoSeccionVirtuales${
|
|
2423
|
+
label: `Landing: ${m} - OraculoSeccionVirtuales${p ? " - personalize" : ""} - Siguiente`,
|
|
2421
2424
|
target: "next",
|
|
2422
2425
|
event_type: "click",
|
|
2423
2426
|
module_id: 301,
|
|
@@ -2429,7 +2432,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2429
2432
|
}, A = () => {
|
|
2430
2433
|
if (c({
|
|
2431
2434
|
element: "virtuales_view_more",
|
|
2432
|
-
label: `Landing: ${m} - OraculoSeccionVirtuales${
|
|
2435
|
+
label: `Landing: ${m} - OraculoSeccionVirtuales${p ? " - personalize" : ""} - Ver más`,
|
|
2433
2436
|
target: "https://www.olimpo.bet/juegos-virtuales",
|
|
2434
2437
|
event_type: "click",
|
|
2435
2438
|
module_id: 301,
|
|
@@ -2442,9 +2445,9 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2442
2445
|
return;
|
|
2443
2446
|
}
|
|
2444
2447
|
typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/juegos-virtuales");
|
|
2445
|
-
}, L =
|
|
2446
|
-
return /* @__PURE__ */ t("section", { children: /* @__PURE__ */
|
|
2447
|
-
/* @__PURE__ */
|
|
2448
|
+
}, L = p ? I : !Array.isArray(e) || e.length === 0, M = be("(max-width:768px)"), F = L ? on(l, s) : nn(C, l, s);
|
|
2449
|
+
return /* @__PURE__ */ t("section", { children: /* @__PURE__ */ f(j, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
2450
|
+
/* @__PURE__ */ f(
|
|
2448
2451
|
U,
|
|
2449
2452
|
{
|
|
2450
2453
|
sx: {
|
|
@@ -2457,7 +2460,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2457
2460
|
},
|
|
2458
2461
|
children: [
|
|
2459
2462
|
/* @__PURE__ */ t(se, { title: a, iconUrl: n, size: "md" }),
|
|
2460
|
-
/* @__PURE__ */
|
|
2463
|
+
/* @__PURE__ */ f(U, { sx: { display: "flex", gap: 1, justifyContent: "flex-end" }, children: [
|
|
2461
2464
|
/* @__PURE__ */ t(
|
|
2462
2465
|
K,
|
|
2463
2466
|
{
|
|
@@ -2465,7 +2468,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2465
2468
|
variant: "secondary",
|
|
2466
2469
|
iconOnly: !0,
|
|
2467
2470
|
leftIcon: /* @__PURE__ */ t(et, {}),
|
|
2468
|
-
onClick:
|
|
2471
|
+
onClick: T,
|
|
2469
2472
|
disabled: h.isStart
|
|
2470
2473
|
}
|
|
2471
2474
|
),
|
|
@@ -2532,7 +2535,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2532
2535
|
}
|
|
2533
2536
|
o == null || o(P), c({
|
|
2534
2537
|
element: "virtuales_game_card",
|
|
2535
|
-
label: `Landing: ${m} - OraculoSeccionVirtuales${
|
|
2538
|
+
label: `Landing: ${m} - OraculoSeccionVirtuales${p ? " - personalize" : ""} - Game: ${String(P.machine || "unknown")}`,
|
|
2536
2539
|
target: String(P.machine || "unknown"),
|
|
2537
2540
|
event_type: "click",
|
|
2538
2541
|
module_id: 301,
|
|
@@ -2548,7 +2551,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2548
2551
|
E == null || E(), O == null || O(
|
|
2549
2552
|
P,
|
|
2550
2553
|
!1,
|
|
2551
|
-
|
|
2554
|
+
p ? "VIRTUALES_PERSONALIZE" : "VIRTUALES"
|
|
2552
2555
|
);
|
|
2553
2556
|
}
|
|
2554
2557
|
}
|
|
@@ -2595,7 +2598,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2595
2598
|
items: n,
|
|
2596
2599
|
backgroundImageUrl: o
|
|
2597
2600
|
}) => {
|
|
2598
|
-
const i = Q(), l = ee(), s = be("(max-width: 767px)"), u = n.length > 1, b = W(null), h = W(null), r = W(!1), c = W(!1), [m,
|
|
2601
|
+
const i = Q(), l = ee(), s = be("(max-width: 767px)"), u = n.length > 1, b = W(null), h = W(null), r = W(!1), c = W(!1), [m, p] = H(0), [_, I] = H({ isStart: !0, isEnd: !1 });
|
|
2599
2602
|
J(() => {
|
|
2600
2603
|
const E = setTimeout(() => {
|
|
2601
2604
|
r.current = !0;
|
|
@@ -2606,7 +2609,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2606
2609
|
J(() => {
|
|
2607
2610
|
C.current = _;
|
|
2608
2611
|
}, [_]);
|
|
2609
|
-
const
|
|
2612
|
+
const T = W(!1), k = W(null), A = n == null ? void 0 : n[m], L = te(
|
|
2610
2613
|
() => {
|
|
2611
2614
|
var E, O;
|
|
2612
2615
|
return (O = (E = A == null ? void 0 : A.backgroundImageUrl) != null ? E : o) != null ? O : "";
|
|
@@ -2659,12 +2662,12 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2659
2662
|
if (!E) return;
|
|
2660
2663
|
const O = 6, R = 380, q = (g) => {
|
|
2661
2664
|
var y, S;
|
|
2662
|
-
if (F || g.ctrlKey ||
|
|
2665
|
+
if (F || g.ctrlKey || T.current) return;
|
|
2663
2666
|
const z = g.deltaX, $ = g.deltaY;
|
|
2664
2667
|
if (Math.abs(z) <= Math.abs($) || Math.abs(z) < O) return;
|
|
2665
2668
|
const d = z > 0;
|
|
2666
|
-
d && C.current.isEnd || !d && C.current.isStart || (g.preventDefault(),
|
|
2667
|
-
|
|
2669
|
+
d && C.current.isEnd || !d && C.current.isStart || (g.preventDefault(), T.current = !0, d ? (y = b.current) == null || y.next() : (S = b.current) == null || S.prev(), k.current && window.clearTimeout(k.current), k.current = window.setTimeout(() => {
|
|
2670
|
+
T.current = !1;
|
|
2668
2671
|
}, R));
|
|
2669
2672
|
};
|
|
2670
2673
|
return E.addEventListener("wheel", q, { passive: !1 }), () => {
|
|
@@ -2674,7 +2677,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2674
2677
|
const P = (E, O, R) => {
|
|
2675
2678
|
var z, $;
|
|
2676
2679
|
const q = (z = E.headline) != null ? z : e, g = ($ = E.headline2) != null ? $ : a;
|
|
2677
|
-
return O ? /* @__PURE__ */
|
|
2680
|
+
return O ? /* @__PURE__ */ f(
|
|
2678
2681
|
U,
|
|
2679
2682
|
{
|
|
2680
2683
|
sx: {
|
|
@@ -2696,9 +2699,9 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2696
2699
|
justifyContent: "flex-start",
|
|
2697
2700
|
minHeight: "100%"
|
|
2698
2701
|
},
|
|
2699
|
-
children: /* @__PURE__ */
|
|
2702
|
+
children: /* @__PURE__ */ f(U, { sx: { ...We, textAlign: "left", mb: 0 }, children: [
|
|
2700
2703
|
q && /* @__PURE__ */ t(ie, { component: "span", sx: Ge, children: q }),
|
|
2701
|
-
g && /* @__PURE__ */
|
|
2704
|
+
g && /* @__PURE__ */ f(ae, { children: [
|
|
2702
2705
|
/* @__PURE__ */ t("br", {}),
|
|
2703
2706
|
/* @__PURE__ */ t(ie, { component: "span", sx: je, children: g })
|
|
2704
2707
|
] })
|
|
@@ -2715,10 +2718,10 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2715
2718
|
) }) })
|
|
2716
2719
|
]
|
|
2717
2720
|
}
|
|
2718
|
-
) : /* @__PURE__ */
|
|
2719
|
-
(q || g) && /* @__PURE__ */
|
|
2721
|
+
) : /* @__PURE__ */ f(U, { sx: { textAlign: "center" }, children: [
|
|
2722
|
+
(q || g) && /* @__PURE__ */ f(U, { sx: We, children: [
|
|
2720
2723
|
q && /* @__PURE__ */ t(ie, { component: "span", sx: Ge, children: q }),
|
|
2721
|
-
g && /* @__PURE__ */
|
|
2724
|
+
g && /* @__PURE__ */ f(ae, { children: [
|
|
2722
2725
|
/* @__PURE__ */ t("br", {}),
|
|
2723
2726
|
/* @__PURE__ */ t(ie, { component: "span", sx: je, children: g })
|
|
2724
2727
|
] })
|
|
@@ -2733,7 +2736,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2733
2736
|
) })
|
|
2734
2737
|
] });
|
|
2735
2738
|
};
|
|
2736
|
-
return /* @__PURE__ */
|
|
2739
|
+
return /* @__PURE__ */ f(U, { component: "section", sx: M, children: [
|
|
2737
2740
|
/* @__PURE__ */ t("div", { ref: h, style: { width: "100%" }, children: /* @__PURE__ */ t(
|
|
2738
2741
|
ce,
|
|
2739
2742
|
{
|
|
@@ -2753,7 +2756,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2753
2756
|
},
|
|
2754
2757
|
renderItem: (E, O) => /* @__PURE__ */ t(U, { sx: { width: "100%" }, children: P(E, !s, O) }),
|
|
2755
2758
|
onMove: ({ index: E, isStart: O, isEnd: R }) => {
|
|
2756
|
-
|
|
2759
|
+
p(E), typeof O == "boolean" && typeof R == "boolean" && I({ isStart: O, isEnd: R }), N(E);
|
|
2757
2760
|
}
|
|
2758
2761
|
}
|
|
2759
2762
|
) }),
|
|
@@ -2778,7 +2781,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2778
2781
|
tags: {
|
|
2779
2782
|
navigation_type: "dot_click"
|
|
2780
2783
|
}
|
|
2781
|
-
}),
|
|
2784
|
+
}), p(E), (O = b.current) == null || O.go(E);
|
|
2782
2785
|
}
|
|
2783
2786
|
}
|
|
2784
2787
|
) })
|
|
@@ -2807,13 +2810,13 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2807
2810
|
}, r = Array.isArray(n) ? n[o] : n;
|
|
2808
2811
|
yt(() => {
|
|
2809
2812
|
if (!l.current || !s.current || typeof ResizeObserver == "undefined") return;
|
|
2810
|
-
const m = l.current,
|
|
2813
|
+
const m = l.current, p = s.current, _ = () => {
|
|
2811
2814
|
m.style.setProperty(
|
|
2812
2815
|
"--orc-co-bottomH",
|
|
2813
|
-
`${
|
|
2816
|
+
`${p.offsetHeight + 16}px`
|
|
2814
2817
|
);
|
|
2815
|
-
},
|
|
2816
|
-
return
|
|
2818
|
+
}, I = new ResizeObserver(_);
|
|
2819
|
+
return I.observe(p), _(), () => I.disconnect();
|
|
2817
2820
|
}, []);
|
|
2818
2821
|
const c = [
|
|
2819
2822
|
"orc-co-wrap",
|
|
@@ -2853,15 +2856,15 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2853
2856
|
function pn(e, a, n) {
|
|
2854
2857
|
return n ? n.map((o) => {
|
|
2855
2858
|
var r, c;
|
|
2856
|
-
const i = o.prePackCouponRows.flatMap((m) => mn(m).map((
|
|
2859
|
+
const i = o.prePackCouponRows.flatMap((m) => mn(m).map((p) => ({ eventId: m.eventId, outcomeId: p }))), l = new Set(i.map((m) => m.eventId)), s = new Set(i.map((m) => m.outcomeId)), u = new Map(i.map((m, p) => [m.outcomeId, p])), b = {};
|
|
2857
2860
|
for (const m of a) {
|
|
2858
2861
|
if (!l.has(m.eventId)) continue;
|
|
2859
|
-
const
|
|
2860
|
-
|
|
2862
|
+
const p = m.outcomes.filter((_) => s.has(_.id)).map((_) => ({ ..._, position: u.get(_.id) }));
|
|
2863
|
+
p.length && ((c = b[r = m.eventId]) != null || (b[r] = []), b[m.eventId].push({ ...m, outcomes: p }));
|
|
2861
2864
|
}
|
|
2862
2865
|
const h = e.filter((m) => l.has(m.id)).map((m) => {
|
|
2863
|
-
var
|
|
2864
|
-
return { ...m, betoffers: (
|
|
2866
|
+
var p;
|
|
2867
|
+
return { ...m, betoffers: (p = b[m.id]) != null ? p : [] };
|
|
2865
2868
|
});
|
|
2866
2869
|
return {
|
|
2867
2870
|
couponId: o.id,
|
|
@@ -2888,7 +2891,7 @@ function hn({
|
|
|
2888
2891
|
onViewMore: o,
|
|
2889
2892
|
className: i = ""
|
|
2890
2893
|
}) {
|
|
2891
|
-
const l = Q(), s = ee(), u = W(null), [b, h] = H({ isStart: !0, isEnd: !1 }), [r, c] = H([]), m = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group/prepackcoupon.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764284658793&prePackCouponTags=CUSTOM",
|
|
2894
|
+
const l = Q(), s = ee(), u = W(null), [b, h] = H({ isStart: !0, isEnd: !1 }), [r, c] = H([]), m = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group/prepackcoupon.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764284658793&prePackCouponTags=CUSTOM", p = () => {
|
|
2892
2895
|
var L;
|
|
2893
2896
|
l({
|
|
2894
2897
|
element: "evento_combinadas_prev",
|
|
@@ -2912,7 +2915,7 @@ function hn({
|
|
|
2912
2915
|
},
|
|
2913
2916
|
tags: { section: "OraculoSeccionEventoCombinadas" }
|
|
2914
2917
|
}), (L = u.current) == null || L.next();
|
|
2915
|
-
},
|
|
2918
|
+
}, I = () => {
|
|
2916
2919
|
l({
|
|
2917
2920
|
element: "evento_combinadas_ver_mas",
|
|
2918
2921
|
label: `Landing: ${s} - OraculoSeccionEventoCombinadas - Click: Ver más`,
|
|
@@ -2924,7 +2927,7 @@ function hn({
|
|
|
2924
2927
|
tags: { section: "OraculoSeccionEventoCombinadas" }
|
|
2925
2928
|
}), Sa();
|
|
2926
2929
|
}, C = te(() => r.filter((L) => L.combinadoTotal !== null), [r]);
|
|
2927
|
-
async function
|
|
2930
|
+
async function T() {
|
|
2928
2931
|
var L, M, F;
|
|
2929
2932
|
try {
|
|
2930
2933
|
const N = await (await fetch(m)).json(), P = (F = (M = (L = N == null ? void 0 : N.group) == null ? void 0 : L.groups) == null ? void 0 : M[0]) == null ? void 0 : F.id;
|
|
@@ -2939,7 +2942,7 @@ function hn({
|
|
|
2939
2942
|
}
|
|
2940
2943
|
}
|
|
2941
2944
|
J(() => {
|
|
2942
|
-
|
|
2945
|
+
T();
|
|
2943
2946
|
}, []);
|
|
2944
2947
|
const k = i || void 0, A = be("(max-width:768px)");
|
|
2945
2948
|
return C.length === 0 ? null : /* @__PURE__ */ t("section", { className: k, style: {
|
|
@@ -2947,11 +2950,11 @@ function hn({
|
|
|
2947
2950
|
// paddingRight: 16,
|
|
2948
2951
|
width: "100%",
|
|
2949
2952
|
boxSizing: "border-box"
|
|
2950
|
-
}, children: /* @__PURE__ */
|
|
2951
|
-
/* @__PURE__ */ t("div", { className: He.padding, children: /* @__PURE__ */
|
|
2953
|
+
}, children: /* @__PURE__ */ f(j, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
2954
|
+
/* @__PURE__ */ t("div", { className: He.padding, children: /* @__PURE__ */ f(re, { spacing: 1.5, columns: "1fr auto ", justify: "start", children: [
|
|
2952
2955
|
/* @__PURE__ */ t(se, { title: a, iconUrl: n, size: "md" }),
|
|
2953
|
-
/* @__PURE__ */
|
|
2954
|
-
/* @__PURE__ */
|
|
2956
|
+
/* @__PURE__ */ f("div", { className: He.controls, children: [
|
|
2957
|
+
/* @__PURE__ */ f(re, { spacing: 1, columns: "auto auto", children: [
|
|
2955
2958
|
/* @__PURE__ */ t(
|
|
2956
2959
|
K,
|
|
2957
2960
|
{
|
|
@@ -2959,7 +2962,7 @@ function hn({
|
|
|
2959
2962
|
variant: "secondary",
|
|
2960
2963
|
iconOnly: !0,
|
|
2961
2964
|
leftIcon: /* @__PURE__ */ t(Te, {}),
|
|
2962
|
-
onClick:
|
|
2965
|
+
onClick: p,
|
|
2963
2966
|
disabled: b.isStart
|
|
2964
2967
|
}
|
|
2965
2968
|
),
|
|
@@ -2975,7 +2978,7 @@ function hn({
|
|
|
2975
2978
|
}
|
|
2976
2979
|
)
|
|
2977
2980
|
] }),
|
|
2978
|
-
/* @__PURE__ */ t(K, { variant: "secondary", onClick:
|
|
2981
|
+
/* @__PURE__ */ t(K, { variant: "secondary", onClick: I, children: "Ver más" })
|
|
2979
2982
|
] })
|
|
2980
2983
|
] }) }),
|
|
2981
2984
|
/* @__PURE__ */ t(
|
|
@@ -3003,27 +3006,27 @@ function bn({}) {
|
|
|
3003
3006
|
"div",
|
|
3004
3007
|
{
|
|
3005
3008
|
className: Se.cardWrapper,
|
|
3006
|
-
children: /* @__PURE__ */
|
|
3007
|
-
/* @__PURE__ */
|
|
3009
|
+
children: /* @__PURE__ */ f(j, { direction: "column", spacing: 1, children: [
|
|
3010
|
+
/* @__PURE__ */ f(j, { spacing: 1, direction: "row", children: [
|
|
3008
3011
|
/* @__PURE__ */ t(G, { variant: "text", width: "60%", height: 24 }),
|
|
3009
3012
|
/* @__PURE__ */ t(G, { variant: "text", width: "39%", height: 24 })
|
|
3010
3013
|
] }),
|
|
3011
|
-
/* @__PURE__ */
|
|
3014
|
+
/* @__PURE__ */ f(j, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
3012
3015
|
/* @__PURE__ */ t(G, { variant: "circular", width: 32, height: 40 }),
|
|
3013
3016
|
/* @__PURE__ */ t(G, { variant: "text", width: 40, height: 40 }),
|
|
3014
3017
|
/* @__PURE__ */ t(G, { variant: "circular", width: 32, height: 40 })
|
|
3015
3018
|
] }),
|
|
3016
|
-
/* @__PURE__ */
|
|
3019
|
+
/* @__PURE__ */ f(j, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
3017
3020
|
/* @__PURE__ */ t(G, { variant: "text", width: 32, height: 16 }),
|
|
3018
3021
|
/* @__PURE__ */ t(G, { variant: "text", width: 40, height: 16 }),
|
|
3019
3022
|
/* @__PURE__ */ t(G, { variant: "text", width: 32, height: 16 })
|
|
3020
3023
|
] }),
|
|
3021
|
-
/* @__PURE__ */
|
|
3024
|
+
/* @__PURE__ */ f(j, { spacing: 2, direction: "row", children: [
|
|
3022
3025
|
/* @__PURE__ */ t(G, { variant: "rounded", width: 88, height: 16 }),
|
|
3023
3026
|
/* @__PURE__ */ t(G, { variant: "rounded", width: 88, height: 16 }),
|
|
3024
3027
|
/* @__PURE__ */ t(G, { variant: "rounded", width: 88, height: 16 })
|
|
3025
3028
|
] }),
|
|
3026
|
-
/* @__PURE__ */
|
|
3029
|
+
/* @__PURE__ */ f(j, { spacing: 2, direction: "row", children: [
|
|
3027
3030
|
/* @__PURE__ */ t(G, { variant: "rounded", width: 88, height: 32 }),
|
|
3028
3031
|
/* @__PURE__ */ t(G, { variant: "rounded", width: 88, height: 32 }),
|
|
3029
3032
|
/* @__PURE__ */ t(G, { variant: "rounded", width: 88, height: 32 })
|
|
@@ -3056,7 +3059,7 @@ function Cn({
|
|
|
3056
3059
|
onViewMore: o,
|
|
3057
3060
|
className: i = ""
|
|
3058
3061
|
}) {
|
|
3059
|
-
const l = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football/all/all/all/in-play.json?channel_id=3&channel_id=3&client_id=200&client_id=200&competitionId=undefined&lang=es_PE&lang=es_PE&market=PE&market=PE&useCombined=true&useCombinedLive=true", s = W(null), [u, b] = H({ isStart: !0, isEnd: !1 }), [h, r] = H(null), [c, m] = H({}), [
|
|
3062
|
+
const l = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football/all/all/all/in-play.json?channel_id=3&channel_id=3&client_id=200&client_id=200&competitionId=undefined&lang=es_PE&lang=es_PE&market=PE&market=PE&useCombined=true&useCombinedLive=true", s = W(null), [u, b] = H({ isStart: !0, isEnd: !1 }), [h, r] = H(null), [c, m] = H({}), [p, _] = H({ start: null, end: null }), I = W(!1), [C, T] = H(null), k = W(!1), A = Q(), L = ee(), M = W(/* @__PURE__ */ new Map()), F = st(p, 300), w = W(/* @__PURE__ */ new Set()), N = () => {
|
|
3060
3063
|
var $;
|
|
3061
3064
|
A({
|
|
3062
3065
|
element: "evento_en_vivo_prev",
|
|
@@ -3127,13 +3130,13 @@ function Cn({
|
|
|
3127
3130
|
const $ = setInterval(O, 2e4);
|
|
3128
3131
|
return () => clearInterval($);
|
|
3129
3132
|
}, [O]), J(() => {
|
|
3130
|
-
if (F.start === null || F.end === null || !(h != null && h.length) ||
|
|
3133
|
+
if (F.start === null || F.end === null || !(h != null && h.length) || I.current)
|
|
3131
3134
|
return;
|
|
3132
3135
|
const $ = 3, d = Math.max(0, F.start - $), y = Math.min(h.length - 1, F.end + $), S = h.slice(d, y + 1).map((v) => {
|
|
3133
3136
|
var x;
|
|
3134
3137
|
return (x = v == null ? void 0 : v.event) == null ? void 0 : x.id;
|
|
3135
3138
|
}).filter((v) => v && !w.current.has(v));
|
|
3136
|
-
S.length !== 0 && (S.forEach((v) => w.current.add(v)),
|
|
3139
|
+
S.length !== 0 && (S.forEach((v) => w.current.add(v)), I.current = !0, lt(S).then((v) => {
|
|
3137
3140
|
v != null && v.events && m((x) => ({
|
|
3138
3141
|
...x,
|
|
3139
3142
|
...v.events
|
|
@@ -3141,7 +3144,7 @@ function Cn({
|
|
|
3141
3144
|
}).catch((v) => {
|
|
3142
3145
|
console.error("Jersey fetch error", v), S.forEach((x) => w.current.delete(x));
|
|
3143
3146
|
}).finally(() => {
|
|
3144
|
-
|
|
3147
|
+
I.current = !1;
|
|
3145
3148
|
}));
|
|
3146
3149
|
}, [F, h]);
|
|
3147
3150
|
const R = i || void 0, q = h === null;
|
|
@@ -3153,11 +3156,11 @@ function Cn({
|
|
|
3153
3156
|
// paddingRight: 16,
|
|
3154
3157
|
width: "100%",
|
|
3155
3158
|
boxSizing: "border-box"
|
|
3156
|
-
}, children: /* @__PURE__ */
|
|
3157
|
-
/* @__PURE__ */ t("div", { className: xn.padding, children: /* @__PURE__ */
|
|
3159
|
+
}, children: /* @__PURE__ */ f(j, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
3160
|
+
/* @__PURE__ */ t("div", { className: xn.padding, children: /* @__PURE__ */ f(re, { spacing: 1.5, columns: "1fr auto ", justify: "start", children: [
|
|
3158
3161
|
/* @__PURE__ */ t(se, { title: a, iconUrl: n, size: "md" }),
|
|
3159
|
-
/* @__PURE__ */
|
|
3160
|
-
/* @__PURE__ */
|
|
3162
|
+
/* @__PURE__ */ f("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
|
|
3163
|
+
/* @__PURE__ */ f(re, { spacing: 1, columns: "auto auto", children: [
|
|
3161
3164
|
/* @__PURE__ */ t(
|
|
3162
3165
|
K,
|
|
3163
3166
|
{
|
|
@@ -3220,25 +3223,25 @@ function Cn({
|
|
|
3220
3223
|
] }) });
|
|
3221
3224
|
}
|
|
3222
3225
|
function On() {
|
|
3223
|
-
return /* @__PURE__ */
|
|
3226
|
+
return /* @__PURE__ */ f("div", { className: de.cardContainer, children: [
|
|
3224
3227
|
/* @__PURE__ */ t(ot, { title: "" }),
|
|
3225
|
-
/* @__PURE__ */ t("div", { className: de.cardBackground, children: /* @__PURE__ */
|
|
3226
|
-
/* @__PURE__ */
|
|
3228
|
+
/* @__PURE__ */ t("div", { className: de.cardBackground, children: /* @__PURE__ */ f(j, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
3229
|
+
/* @__PURE__ */ f(j, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
3227
3230
|
/* @__PURE__ */ t(G, { variant: "circular", width: 48, height: 48 }),
|
|
3228
3231
|
/* @__PURE__ */ t(G, { variant: "circular", width: 48, height: 48 })
|
|
3229
3232
|
] }),
|
|
3230
|
-
/* @__PURE__ */
|
|
3231
|
-
/* @__PURE__ */
|
|
3233
|
+
/* @__PURE__ */ f(j, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
3234
|
+
/* @__PURE__ */ f(j, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
3232
3235
|
/* @__PURE__ */ t(G, { variant: "text", width: 80, height: 12 }),
|
|
3233
3236
|
/* @__PURE__ */ t(G, { variant: "text", width: 80, height: 12 })
|
|
3234
3237
|
] }),
|
|
3235
3238
|
/* @__PURE__ */ t(j, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ t(G, { variant: "text", width: 160, height: 12 }) }),
|
|
3236
|
-
/* @__PURE__ */
|
|
3239
|
+
/* @__PURE__ */ f(j, { direction: "row", spacing: 1, children: [
|
|
3237
3240
|
/* @__PURE__ */ t(G, { variant: "text", width: 80, height: 16 }),
|
|
3238
3241
|
/* @__PURE__ */ t(G, { variant: "text", width: 80, height: 16 }),
|
|
3239
3242
|
/* @__PURE__ */ t(G, { variant: "text", width: 80, height: 16 })
|
|
3240
3243
|
] }),
|
|
3241
|
-
/* @__PURE__ */ t("div", { className: de.jugadas, children: /* @__PURE__ */
|
|
3244
|
+
/* @__PURE__ */ t("div", { className: de.jugadas, children: /* @__PURE__ */ f(j, { direction: "row", spacing: 1, children: [
|
|
3242
3245
|
/* @__PURE__ */ t(G, { variant: "rounded", width: 80, height: 32 }),
|
|
3243
3246
|
/* @__PURE__ */ t(G, { variant: "rounded", width: 80, height: 32 }),
|
|
3244
3247
|
/* @__PURE__ */ t(G, { variant: "rounded", width: 80, height: 32 })
|
|
@@ -3297,7 +3300,7 @@ function An({
|
|
|
3297
3300
|
}) {
|
|
3298
3301
|
const l = Q(), s = ee(), u = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE", b = W(null), [h, r] = H({ isStart: !0, isEnd: !1 }), [c, m] = H(null);
|
|
3299
3302
|
W(/* @__PURE__ */ new Set());
|
|
3300
|
-
const [
|
|
3303
|
+
const [p, _] = H({}), [I, C] = H({ start: null, end: null }), T = "channel_id=1&client_id=200&competitionId=undefined&lang=es_PE&market=PE&useCombined=true", k = st(I, 250), A = W(!1);
|
|
3301
3304
|
te(() => c === null ? Array(6).fill({}) : c.slice(0, 20), [c]);
|
|
3302
3305
|
const L = () => {
|
|
3303
3306
|
l({
|
|
@@ -3351,11 +3354,11 @@ function An({
|
|
|
3351
3354
|
if (D.groups && D.groups.length > 0) {
|
|
3352
3355
|
const Y = D.groups[0];
|
|
3353
3356
|
return [
|
|
3354
|
-
`${Z}/${D.termKey}/${Y.termKey}/all/matches.json?${
|
|
3357
|
+
`${Z}/${D.termKey}/${Y.termKey}/all/matches.json?${T}`
|
|
3355
3358
|
];
|
|
3356
3359
|
}
|
|
3357
3360
|
return [
|
|
3358
|
-
`${Z}/${D.termKey}/all/all/matches.json?${
|
|
3361
|
+
`${Z}/${D.termKey}/all/all/matches.json?${T}`
|
|
3359
3362
|
];
|
|
3360
3363
|
}, V = x.flatMap(B);
|
|
3361
3364
|
F(V, q, O);
|
|
@@ -3401,7 +3404,7 @@ function An({
|
|
|
3401
3404
|
}, [e]), J(() => {
|
|
3402
3405
|
if (k.start === null || k.end === null || !(c != null && c.length) || A.current)
|
|
3403
3406
|
return;
|
|
3404
|
-
const O = 2, R = Math.max(0, k.start - O), q = Math.min(c.length - 1, k.end + O), g = c.slice(R, q + 1).map(($) => $ == null ? void 0 : $.id).filter(Boolean).filter(($) =>
|
|
3407
|
+
const O = 2, R = Math.max(0, k.start - O), q = Math.min(c.length - 1, k.end + O), g = c.slice(R, q + 1).map(($) => $ == null ? void 0 : $.id).filter(Boolean).filter(($) => p[$] === void 0);
|
|
3405
3408
|
if (!g.length) return;
|
|
3406
3409
|
let z = !1;
|
|
3407
3410
|
return A.current = !0, (async () => {
|
|
@@ -3425,8 +3428,8 @@ function An({
|
|
|
3425
3428
|
width: "100%",
|
|
3426
3429
|
boxSizing: "border-box"
|
|
3427
3430
|
}, P = c === null, E = be("(max-width:768px)");
|
|
3428
|
-
return !P && c.length === 0 ? null : /* @__PURE__ */ t("section", { className: w, style: N, children: /* @__PURE__ */
|
|
3429
|
-
/* @__PURE__ */ t("div", { className: _e.container, children: /* @__PURE__ */
|
|
3431
|
+
return !P && c.length === 0 ? null : /* @__PURE__ */ t("section", { className: w, style: N, children: /* @__PURE__ */ f("div", { className: `${_e.wrapper} ${_e.padding}`, children: [
|
|
3432
|
+
/* @__PURE__ */ t("div", { className: _e.container, children: /* @__PURE__ */ f(j, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
3430
3433
|
/* @__PURE__ */ t(se, { title: "Eventos de la semana" }),
|
|
3431
3434
|
/* @__PURE__ */ t("div", { className: _e.buttonWrapper, children: /* @__PURE__ */ t(
|
|
3432
3435
|
K,
|
|
@@ -3460,7 +3463,7 @@ function An({
|
|
|
3460
3463
|
}
|
|
3461
3464
|
},
|
|
3462
3465
|
renderItem: (O) => {
|
|
3463
|
-
const R = O.id, q = R in
|
|
3466
|
+
const R = O.id, q = R in p ? p[R] : void 0;
|
|
3464
3467
|
return P ? /* @__PURE__ */ t(Ie, { children: /* @__PURE__ */ t(On, {}) }) : /* @__PURE__ */ t(Ie, { children: /* @__PURE__ */ t($n, { event: O, jersey: q }) });
|
|
3465
3468
|
},
|
|
3466
3469
|
onMove: ({ isStart: O, isEnd: R, visibleStart: q, visibleEnd: g }) => {
|
|
@@ -3493,7 +3496,7 @@ function Rn({
|
|
|
3493
3496
|
hideItems: n
|
|
3494
3497
|
}) {
|
|
3495
3498
|
var O, R, q;
|
|
3496
|
-
const [o, i] = H(0), l = Q(), s = ee(), u = W(null), b = W(!1), h = W(!1), r = (e == null ? void 0 : e.length) || 1, c = !e || e.length === 0, m = !c && ((O = e == null ? void 0 : e.length) != null ? O : 0) > 1,
|
|
3499
|
+
const [o, i] = H(0), l = Q(), s = ee(), u = W(null), b = W(!1), h = W(!1), r = (e == null ? void 0 : e.length) || 1, c = !e || e.length === 0, m = !c && ((O = e == null ? void 0 : e.length) != null ? O : 0) > 1, p = !n && ((R = a == null ? void 0 : a.length) != null ? R : 0) > 0, _ = "#B5B5B5", I = {
|
|
3497
3500
|
position: "absolute",
|
|
3498
3501
|
top: "50%",
|
|
3499
3502
|
transform: "translateY(-50%)",
|
|
@@ -3533,7 +3536,7 @@ function Rn({
|
|
|
3533
3536
|
}, 500);
|
|
3534
3537
|
return () => clearTimeout(g);
|
|
3535
3538
|
}, []);
|
|
3536
|
-
const
|
|
3539
|
+
const T = (g, z) => {
|
|
3537
3540
|
var d, y;
|
|
3538
3541
|
const $ = ((y = (d = g.href) == null ? void 0 : d.split("/").pop()) == null ? void 0 : y.split(".")[0]) || g.label || g.id || `banner_${z + 1}`;
|
|
3539
3542
|
l({
|
|
@@ -3607,7 +3610,7 @@ function Rn({
|
|
|
3607
3610
|
tags: { banner_position: String(z + 1) }
|
|
3608
3611
|
});
|
|
3609
3612
|
};
|
|
3610
|
-
return /* @__PURE__ */
|
|
3613
|
+
return /* @__PURE__ */ f(
|
|
3611
3614
|
X,
|
|
3612
3615
|
{
|
|
3613
3616
|
component: "section",
|
|
@@ -3616,7 +3619,7 @@ function Rn({
|
|
|
3616
3619
|
overflow: "visible"
|
|
3617
3620
|
},
|
|
3618
3621
|
children: [
|
|
3619
|
-
/* @__PURE__ */
|
|
3622
|
+
/* @__PURE__ */ f(
|
|
3620
3623
|
X,
|
|
3621
3624
|
{
|
|
3622
3625
|
sx: {
|
|
@@ -3657,14 +3660,14 @@ function Rn({
|
|
|
3657
3660
|
},
|
|
3658
3661
|
renderItem: (g, z) => {
|
|
3659
3662
|
var $, d;
|
|
3660
|
-
return /* @__PURE__ */
|
|
3663
|
+
return /* @__PURE__ */ f(
|
|
3661
3664
|
X,
|
|
3662
3665
|
{
|
|
3663
3666
|
component: "a",
|
|
3664
3667
|
href: g.href,
|
|
3665
3668
|
target: ($ = g.target) != null ? $ : "_self",
|
|
3666
3669
|
rel: g.target === "_blank" ? "noopener noreferrer" : void 0,
|
|
3667
|
-
onClick: () =>
|
|
3670
|
+
onClick: () => T(g, z),
|
|
3668
3671
|
sx: {
|
|
3669
3672
|
position: "relative",
|
|
3670
3673
|
width: "100%",
|
|
@@ -3674,7 +3677,7 @@ function Rn({
|
|
|
3674
3677
|
cursor: "pointer"
|
|
3675
3678
|
},
|
|
3676
3679
|
children: [
|
|
3677
|
-
/* @__PURE__ */
|
|
3680
|
+
/* @__PURE__ */ f(X, { component: "picture", sx: { position: "absolute", inset: 0, lineHeight: 0 }, children: [
|
|
3678
3681
|
/* @__PURE__ */ t("source", { srcSet: g.desktopSrc, media: "(min-width:800px)" }),
|
|
3679
3682
|
/* @__PURE__ */ t("source", { srcSet: g.mobileSrc, media: "(max-width:799px)" }),
|
|
3680
3683
|
/* @__PURE__ */ t(
|
|
@@ -3721,14 +3724,14 @@ function Rn({
|
|
|
3721
3724
|
)
|
|
3722
3725
|
}
|
|
3723
3726
|
),
|
|
3724
|
-
m && /* @__PURE__ */
|
|
3727
|
+
m && /* @__PURE__ */ f(ae, { children: [
|
|
3725
3728
|
/* @__PURE__ */ t(
|
|
3726
3729
|
Pe,
|
|
3727
3730
|
{
|
|
3728
3731
|
"aria-label": "Anterior",
|
|
3729
3732
|
onClick: N,
|
|
3730
3733
|
sx: {
|
|
3731
|
-
...
|
|
3734
|
+
...I,
|
|
3732
3735
|
left: "120px",
|
|
3733
3736
|
"@media (max-width:1024px)": { left: 24 },
|
|
3734
3737
|
"@media (max-width:786px)": { display: "none" }
|
|
@@ -3742,7 +3745,7 @@ function Rn({
|
|
|
3742
3745
|
"aria-label": "Siguiente",
|
|
3743
3746
|
onClick: P,
|
|
3744
3747
|
sx: {
|
|
3745
|
-
...
|
|
3748
|
+
...I,
|
|
3746
3749
|
right: "120px",
|
|
3747
3750
|
"@media (max-width:1024px)": { right: 24 },
|
|
3748
3751
|
"@media (max-width:786px)": { display: "none" }
|
|
@@ -3777,7 +3780,7 @@ function Rn({
|
|
|
3777
3780
|
]
|
|
3778
3781
|
}
|
|
3779
3782
|
),
|
|
3780
|
-
|
|
3783
|
+
p && /* @__PURE__ */ t(
|
|
3781
3784
|
X,
|
|
3782
3785
|
{
|
|
3783
3786
|
sx: {
|
|
@@ -3795,7 +3798,7 @@ function Rn({
|
|
|
3795
3798
|
boxShadow: "0 10px 24px rgba(0,0,0,.35)",
|
|
3796
3799
|
zIndex: 3
|
|
3797
3800
|
},
|
|
3798
|
-
children: a == null ? void 0 : a.map((g) => /* @__PURE__ */
|
|
3801
|
+
children: a == null ? void 0 : a.map((g) => /* @__PURE__ */ f(
|
|
3799
3802
|
X,
|
|
3800
3803
|
{
|
|
3801
3804
|
sx: {
|
|
@@ -3842,7 +3845,7 @@ function Rn({
|
|
|
3842
3845
|
},
|
|
3843
3846
|
onClick: () => k(g),
|
|
3844
3847
|
children: [
|
|
3845
|
-
g.icon && /* @__PURE__ */
|
|
3848
|
+
g.icon && /* @__PURE__ */ f(
|
|
3846
3849
|
X,
|
|
3847
3850
|
{
|
|
3848
3851
|
sx: {
|
|
@@ -3926,7 +3929,7 @@ function zn({
|
|
|
3926
3929
|
items: a = Fn
|
|
3927
3930
|
}) {
|
|
3928
3931
|
const n = Math.ceil(a.length / 2), o = a.slice(0, n), i = a.slice(n);
|
|
3929
|
-
return /* @__PURE__ */
|
|
3932
|
+
return /* @__PURE__ */ f(X, { component: "section", "aria-labelledby": "mp-title", sx: { color: "#fff" }, children: [
|
|
3930
3933
|
/* @__PURE__ */ t(
|
|
3931
3934
|
Qe,
|
|
3932
3935
|
{
|
|
@@ -3955,7 +3958,7 @@ function zn({
|
|
|
3955
3958
|
}
|
|
3956
3959
|
}
|
|
3957
3960
|
),
|
|
3958
|
-
/* @__PURE__ */
|
|
3961
|
+
/* @__PURE__ */ f(ye, { spacing: { xs: 2, md: 3 }, alignItems: "center", children: [
|
|
3959
3962
|
/* @__PURE__ */ t(
|
|
3960
3963
|
ye,
|
|
3961
3964
|
{
|
|
@@ -3997,7 +4000,7 @@ function Ae({
|
|
|
3997
4000
|
}),
|
|
3998
4001
|
[a]
|
|
3999
4002
|
);
|
|
4000
|
-
return /* @__PURE__ */
|
|
4003
|
+
return /* @__PURE__ */ f(Ot, { theme: n, children: [
|
|
4001
4004
|
/* @__PURE__ */ t(Et, {}),
|
|
4002
4005
|
e
|
|
4003
4006
|
] });
|
|
@@ -5138,7 +5141,7 @@ const Je = [
|
|
|
5138
5141
|
loader: i,
|
|
5139
5142
|
disableWrapper: l = !1
|
|
5140
5143
|
}) => {
|
|
5141
|
-
const s = te(() => Dn(o), [o]), u = i || s.loader, [b, h] = H([]), [r, c] = H(!1), [m,
|
|
5144
|
+
const s = te(() => Dn(o), [o]), u = i || s.loader, [b, h] = H([]), [r, c] = H(!1), [m, p] = H({}), [_, I] = H({}), [C, T] = H({}), k = Ye("(min-width:1024px)"), A = (d) => Array.isArray(d) ? d.map((y) => Number(y)).filter((y) => !Number.isNaN(y)) : [], L = te(() => {
|
|
5142
5145
|
const d = s.user;
|
|
5143
5146
|
return A(d == null ? void 0 : d.groups);
|
|
5144
5147
|
}, [s]), M = (d) => {
|
|
@@ -5246,15 +5249,15 @@ const Je = [
|
|
|
5246
5249
|
if (d.length)
|
|
5247
5250
|
for (const { s: y, url: S } of d) {
|
|
5248
5251
|
const v = `${y.id}|${S}`;
|
|
5249
|
-
P.current.has(v) || (P.current.add(v),
|
|
5252
|
+
P.current.has(v) || (P.current.add(v), I((x) => ({ ...x, [y.id]: !0 })), T((x) => ({ ...x, [y.id]: "" })), (async () => {
|
|
5250
5253
|
try {
|
|
5251
5254
|
const x = await w(y);
|
|
5252
|
-
|
|
5255
|
+
p((B) => ({ ...B, [y.id]: x }));
|
|
5253
5256
|
} catch (x) {
|
|
5254
5257
|
let B = "Error desconocido";
|
|
5255
|
-
x instanceof Ze ? B = `Error HTTP ${x.status} (${x.statusText}) en ${x.url}` : x instanceof SyntaxError ? B = "Respuesta no es JSON válido" : x instanceof TypeError ? B = "Fallo de red / CORS / conexión" : typeof x == "string" && (B = x.toString()),
|
|
5258
|
+
x instanceof Ze ? B = `Error HTTP ${x.status} (${x.statusText}) en ${x.url}` : x instanceof SyntaxError ? B = "Respuesta no es JSON válido" : x instanceof TypeError ? B = "Fallo de red / CORS / conexión" : typeof x == "string" && (B = x.toString()), T((V) => ({ ...V, [y.id]: B }));
|
|
5256
5259
|
} finally {
|
|
5257
|
-
|
|
5260
|
+
I((x) => ({ ...x, [y.id]: !1 }));
|
|
5258
5261
|
}
|
|
5259
5262
|
})());
|
|
5260
5263
|
}
|