oraculo-ui 0.1.113 → 0.1.115
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 -264
- 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,24 +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
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
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.provider) != null ? s : "",
|
|
1855
|
+
sub_provider: (u = e.provider) != 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
|
|
1863
1864
|
};
|
|
1864
1865
|
}, Wa = (e) => e ? !Array.isArray(e) && Array.isArray(e.recommendations) ? e.recommendations.filter(Boolean).map((a) => String(a)) : [] : [], Ga = () => {
|
|
1865
1866
|
var a, n, o;
|
|
@@ -1893,20 +1894,20 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1893
1894
|
return;
|
|
1894
1895
|
}
|
|
1895
1896
|
const c = await Promise.allSettled(
|
|
1896
|
-
r.map(async (
|
|
1897
|
-
const
|
|
1898
|
-
`https://api.mktolimpo.com/api/machine/${
|
|
1897
|
+
r.map(async (p, _) => {
|
|
1898
|
+
const I = await fetch(
|
|
1899
|
+
`https://api.mktolimpo.com/api/machine/${p}`
|
|
1899
1900
|
);
|
|
1900
|
-
if (!
|
|
1901
|
-
throw new Error(`No se pudo obtener machine ${
|
|
1902
|
-
const C = await
|
|
1901
|
+
if (!I.ok)
|
|
1902
|
+
throw new Error(`No se pudo obtener machine ${p}`);
|
|
1903
|
+
const C = await I.json();
|
|
1903
1904
|
return Da(C, _);
|
|
1904
1905
|
})
|
|
1905
1906
|
);
|
|
1906
1907
|
if (u) return;
|
|
1907
1908
|
const m = c.filter(
|
|
1908
|
-
(
|
|
1909
|
-
).map((
|
|
1909
|
+
(p) => p.status === "fulfilled"
|
|
1910
|
+
).map((p) => p.value);
|
|
1910
1911
|
i(m);
|
|
1911
1912
|
} catch (h) {
|
|
1912
1913
|
console.error(`[usePersonalizeGameItems:${n}] error:`, h), u || i([]);
|
|
@@ -1947,7 +1948,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1947
1948
|
const h = Q(), r = ee(), c = Xa(b), { resolvedItems: m } = Za(
|
|
1948
1949
|
e,
|
|
1949
1950
|
c
|
|
1950
|
-
),
|
|
1951
|
+
), p = c ? m : Array.isArray(e) ? e : [], _ = (C) => {
|
|
1951
1952
|
h({
|
|
1952
1953
|
element: "live_casino_card",
|
|
1953
1954
|
label: `Landing: ${r} - OraculoSeccionCasinoEnVivo${c ? " - personalize" : ""} - Open game: ${String(C.machine || "unknown")}`,
|
|
@@ -1963,7 +1964,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1963
1964
|
section: "OraculoSeccionCasinoEnVivo"
|
|
1964
1965
|
}
|
|
1965
1966
|
});
|
|
1966
|
-
const
|
|
1967
|
+
const T = le("showIframe"), k = le("loadMachine");
|
|
1967
1968
|
if (!k) {
|
|
1968
1969
|
if (i) {
|
|
1969
1970
|
i(C);
|
|
@@ -1975,10 +1976,10 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1975
1976
|
);
|
|
1976
1977
|
return;
|
|
1977
1978
|
}
|
|
1978
|
-
|
|
1979
|
+
T == null || T(), typeof window != "undefined" && window.scrollTo({ top: 0, behavior: "smooth" }), requestAnimationFrame(() => {
|
|
1979
1980
|
k == null || k(C, !1, "casino_en_vivo");
|
|
1980
1981
|
});
|
|
1981
|
-
},
|
|
1982
|
+
}, I = () => {
|
|
1982
1983
|
h({
|
|
1983
1984
|
element: "casino_en_vivo_view_more",
|
|
1984
1985
|
label: `Landing: ${r} - OraculoSeccionCasinoEnVivo${c ? " - personalize" : ""} - Ver más`,
|
|
@@ -1991,7 +1992,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
1991
1992
|
tags: { section: "OraculoSeccionCasinoEnVivo" }
|
|
1992
1993
|
}), typeof globalThis != "undefined" && globalThis.location && (s ? s() : globalThis.location.assign("https://www.olimpo.bet/casino-en-vivo"));
|
|
1993
1994
|
};
|
|
1994
|
-
return /* @__PURE__ */
|
|
1995
|
+
return /* @__PURE__ */ f(
|
|
1995
1996
|
U,
|
|
1996
1997
|
{
|
|
1997
1998
|
className: u,
|
|
@@ -2029,7 +2030,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2029
2030
|
}
|
|
2030
2031
|
}
|
|
2031
2032
|
),
|
|
2032
|
-
/* @__PURE__ */
|
|
2033
|
+
/* @__PURE__ */ f(
|
|
2033
2034
|
U,
|
|
2034
2035
|
{
|
|
2035
2036
|
sx: {
|
|
@@ -2047,7 +2048,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2047
2048
|
textAlign: { xs: "center", md: "left" }
|
|
2048
2049
|
},
|
|
2049
2050
|
children: [
|
|
2050
|
-
/* @__PURE__ */
|
|
2051
|
+
/* @__PURE__ */ f(j, { spacing: 3, sx: { maxWidth: { md: 280 } }, children: [
|
|
2051
2052
|
/* @__PURE__ */ t(
|
|
2052
2053
|
ie,
|
|
2053
2054
|
{
|
|
@@ -2078,7 +2079,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2078
2079
|
{
|
|
2079
2080
|
variant: "primary",
|
|
2080
2081
|
size: "md",
|
|
2081
|
-
onClick:
|
|
2082
|
+
onClick: I,
|
|
2082
2083
|
children: "Ver más"
|
|
2083
2084
|
}
|
|
2084
2085
|
) })
|
|
@@ -2094,7 +2095,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2094
2095
|
py: { xs: 3, md: 0 },
|
|
2095
2096
|
alignItems: "center"
|
|
2096
2097
|
},
|
|
2097
|
-
children: (
|
|
2098
|
+
children: (p != null ? p : []).slice(0, 3).map((C, T) => {
|
|
2098
2099
|
var k;
|
|
2099
2100
|
return /* @__PURE__ */ t(
|
|
2100
2101
|
da,
|
|
@@ -2105,7 +2106,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2105
2106
|
machine: C.machine,
|
|
2106
2107
|
onClick: () => _(C)
|
|
2107
2108
|
},
|
|
2108
|
-
Ja(C,
|
|
2109
|
+
Ja(C, T)
|
|
2109
2110
|
);
|
|
2110
2111
|
})
|
|
2111
2112
|
}
|
|
@@ -2115,7 +2116,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2115
2116
|
{
|
|
2116
2117
|
variant: "primary",
|
|
2117
2118
|
size: "lg",
|
|
2118
|
-
onClick:
|
|
2119
|
+
onClick: I,
|
|
2119
2120
|
children: "Ver más"
|
|
2120
2121
|
}
|
|
2121
2122
|
) })
|
|
@@ -2177,10 +2178,10 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2177
2178
|
gridSize: s = 1,
|
|
2178
2179
|
isPersonalize: u = !1
|
|
2179
2180
|
}) => {
|
|
2180
|
-
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(
|
|
2181
2182
|
e,
|
|
2182
|
-
|
|
2183
|
-
), C =
|
|
2183
|
+
p
|
|
2184
|
+
), C = p ? _ : Array.isArray(e) ? e : [], T = () => {
|
|
2184
2185
|
var N;
|
|
2185
2186
|
b({
|
|
2186
2187
|
element: "casino_prev",
|
|
@@ -2228,9 +2229,9 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2228
2229
|
imageUrl: ""
|
|
2229
2230
|
})), O = [];
|
|
2230
2231
|
return N && O.push({ id: "mosaic-loading", kind: "mosaic", items: E(5) }), O.push({ id: "grid-loading", kind: "grid", items: E(P) }), O;
|
|
2231
|
-
}, M =
|
|
2232
|
-
return /* @__PURE__ */ t("section", { children: /* @__PURE__ */
|
|
2233
|
-
/* @__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(
|
|
2234
2235
|
U,
|
|
2235
2236
|
{
|
|
2236
2237
|
sx: {
|
|
@@ -2243,7 +2244,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2243
2244
|
},
|
|
2244
2245
|
children: [
|
|
2245
2246
|
/* @__PURE__ */ t(se, { title: a, iconUrl: n, size: "md" }),
|
|
2246
|
-
/* @__PURE__ */
|
|
2247
|
+
/* @__PURE__ */ f(U, { sx: { display: "flex", gap: 1, justifyContent: "flex-end" }, children: [
|
|
2247
2248
|
/* @__PURE__ */ t(
|
|
2248
2249
|
K,
|
|
2249
2250
|
{
|
|
@@ -2251,7 +2252,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2251
2252
|
variant: "secondary",
|
|
2252
2253
|
iconOnly: !0,
|
|
2253
2254
|
leftIcon: /* @__PURE__ */ t(et, {}),
|
|
2254
|
-
onClick:
|
|
2255
|
+
onClick: T,
|
|
2255
2256
|
disabled: c.isStart
|
|
2256
2257
|
}
|
|
2257
2258
|
),
|
|
@@ -2399,14 +2400,14 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2399
2400
|
gridSize: s = 1,
|
|
2400
2401
|
isPersonalize: u = !1
|
|
2401
2402
|
}) => {
|
|
2402
|
-
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(
|
|
2403
2404
|
e,
|
|
2404
|
-
|
|
2405
|
-
), C =
|
|
2405
|
+
p
|
|
2406
|
+
), C = p ? _ : Array.isArray(e) ? e : [], T = () => {
|
|
2406
2407
|
var w;
|
|
2407
2408
|
c({
|
|
2408
2409
|
element: "virtuales_prev",
|
|
2409
|
-
label: `Landing: ${m} - OraculoSeccionVirtuales${
|
|
2410
|
+
label: `Landing: ${m} - OraculoSeccionVirtuales${p ? " - personalize" : ""} - Anterior`,
|
|
2410
2411
|
target: "prev",
|
|
2411
2412
|
event_type: "click",
|
|
2412
2413
|
module_id: 301,
|
|
@@ -2419,7 +2420,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2419
2420
|
var w;
|
|
2420
2421
|
c({
|
|
2421
2422
|
element: "virtuales_next",
|
|
2422
|
-
label: `Landing: ${m} - OraculoSeccionVirtuales${
|
|
2423
|
+
label: `Landing: ${m} - OraculoSeccionVirtuales${p ? " - personalize" : ""} - Siguiente`,
|
|
2423
2424
|
target: "next",
|
|
2424
2425
|
event_type: "click",
|
|
2425
2426
|
module_id: 301,
|
|
@@ -2431,7 +2432,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2431
2432
|
}, A = () => {
|
|
2432
2433
|
if (c({
|
|
2433
2434
|
element: "virtuales_view_more",
|
|
2434
|
-
label: `Landing: ${m} - OraculoSeccionVirtuales${
|
|
2435
|
+
label: `Landing: ${m} - OraculoSeccionVirtuales${p ? " - personalize" : ""} - Ver más`,
|
|
2435
2436
|
target: "https://www.olimpo.bet/juegos-virtuales",
|
|
2436
2437
|
event_type: "click",
|
|
2437
2438
|
module_id: 301,
|
|
@@ -2444,9 +2445,9 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2444
2445
|
return;
|
|
2445
2446
|
}
|
|
2446
2447
|
typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/juegos-virtuales");
|
|
2447
|
-
}, L =
|
|
2448
|
-
return /* @__PURE__ */ t("section", { children: /* @__PURE__ */
|
|
2449
|
-
/* @__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(
|
|
2450
2451
|
U,
|
|
2451
2452
|
{
|
|
2452
2453
|
sx: {
|
|
@@ -2459,7 +2460,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2459
2460
|
},
|
|
2460
2461
|
children: [
|
|
2461
2462
|
/* @__PURE__ */ t(se, { title: a, iconUrl: n, size: "md" }),
|
|
2462
|
-
/* @__PURE__ */
|
|
2463
|
+
/* @__PURE__ */ f(U, { sx: { display: "flex", gap: 1, justifyContent: "flex-end" }, children: [
|
|
2463
2464
|
/* @__PURE__ */ t(
|
|
2464
2465
|
K,
|
|
2465
2466
|
{
|
|
@@ -2467,7 +2468,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2467
2468
|
variant: "secondary",
|
|
2468
2469
|
iconOnly: !0,
|
|
2469
2470
|
leftIcon: /* @__PURE__ */ t(et, {}),
|
|
2470
|
-
onClick:
|
|
2471
|
+
onClick: T,
|
|
2471
2472
|
disabled: h.isStart
|
|
2472
2473
|
}
|
|
2473
2474
|
),
|
|
@@ -2534,7 +2535,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2534
2535
|
}
|
|
2535
2536
|
o == null || o(P), c({
|
|
2536
2537
|
element: "virtuales_game_card",
|
|
2537
|
-
label: `Landing: ${m} - OraculoSeccionVirtuales${
|
|
2538
|
+
label: `Landing: ${m} - OraculoSeccionVirtuales${p ? " - personalize" : ""} - Game: ${String(P.machine || "unknown")}`,
|
|
2538
2539
|
target: String(P.machine || "unknown"),
|
|
2539
2540
|
event_type: "click",
|
|
2540
2541
|
module_id: 301,
|
|
@@ -2550,7 +2551,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2550
2551
|
E == null || E(), O == null || O(
|
|
2551
2552
|
P,
|
|
2552
2553
|
!1,
|
|
2553
|
-
|
|
2554
|
+
p ? "VIRTUALES_PERSONALIZE" : "VIRTUALES"
|
|
2554
2555
|
);
|
|
2555
2556
|
}
|
|
2556
2557
|
}
|
|
@@ -2597,7 +2598,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2597
2598
|
items: n,
|
|
2598
2599
|
backgroundImageUrl: o
|
|
2599
2600
|
}) => {
|
|
2600
|
-
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 });
|
|
2601
2602
|
J(() => {
|
|
2602
2603
|
const E = setTimeout(() => {
|
|
2603
2604
|
r.current = !0;
|
|
@@ -2608,7 +2609,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2608
2609
|
J(() => {
|
|
2609
2610
|
C.current = _;
|
|
2610
2611
|
}, [_]);
|
|
2611
|
-
const
|
|
2612
|
+
const T = W(!1), k = W(null), A = n == null ? void 0 : n[m], L = te(
|
|
2612
2613
|
() => {
|
|
2613
2614
|
var E, O;
|
|
2614
2615
|
return (O = (E = A == null ? void 0 : A.backgroundImageUrl) != null ? E : o) != null ? O : "";
|
|
@@ -2661,12 +2662,12 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2661
2662
|
if (!E) return;
|
|
2662
2663
|
const O = 6, R = 380, q = (g) => {
|
|
2663
2664
|
var y, S;
|
|
2664
|
-
if (F || g.ctrlKey ||
|
|
2665
|
+
if (F || g.ctrlKey || T.current) return;
|
|
2665
2666
|
const z = g.deltaX, $ = g.deltaY;
|
|
2666
2667
|
if (Math.abs(z) <= Math.abs($) || Math.abs(z) < O) return;
|
|
2667
2668
|
const d = z > 0;
|
|
2668
|
-
d && C.current.isEnd || !d && C.current.isStart || (g.preventDefault(),
|
|
2669
|
-
|
|
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;
|
|
2670
2671
|
}, R));
|
|
2671
2672
|
};
|
|
2672
2673
|
return E.addEventListener("wheel", q, { passive: !1 }), () => {
|
|
@@ -2676,7 +2677,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2676
2677
|
const P = (E, O, R) => {
|
|
2677
2678
|
var z, $;
|
|
2678
2679
|
const q = (z = E.headline) != null ? z : e, g = ($ = E.headline2) != null ? $ : a;
|
|
2679
|
-
return O ? /* @__PURE__ */
|
|
2680
|
+
return O ? /* @__PURE__ */ f(
|
|
2680
2681
|
U,
|
|
2681
2682
|
{
|
|
2682
2683
|
sx: {
|
|
@@ -2698,9 +2699,9 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2698
2699
|
justifyContent: "flex-start",
|
|
2699
2700
|
minHeight: "100%"
|
|
2700
2701
|
},
|
|
2701
|
-
children: /* @__PURE__ */
|
|
2702
|
+
children: /* @__PURE__ */ f(U, { sx: { ...We, textAlign: "left", mb: 0 }, children: [
|
|
2702
2703
|
q && /* @__PURE__ */ t(ie, { component: "span", sx: Ge, children: q }),
|
|
2703
|
-
g && /* @__PURE__ */
|
|
2704
|
+
g && /* @__PURE__ */ f(ae, { children: [
|
|
2704
2705
|
/* @__PURE__ */ t("br", {}),
|
|
2705
2706
|
/* @__PURE__ */ t(ie, { component: "span", sx: je, children: g })
|
|
2706
2707
|
] })
|
|
@@ -2717,10 +2718,10 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2717
2718
|
) }) })
|
|
2718
2719
|
]
|
|
2719
2720
|
}
|
|
2720
|
-
) : /* @__PURE__ */
|
|
2721
|
-
(q || g) && /* @__PURE__ */
|
|
2721
|
+
) : /* @__PURE__ */ f(U, { sx: { textAlign: "center" }, children: [
|
|
2722
|
+
(q || g) && /* @__PURE__ */ f(U, { sx: We, children: [
|
|
2722
2723
|
q && /* @__PURE__ */ t(ie, { component: "span", sx: Ge, children: q }),
|
|
2723
|
-
g && /* @__PURE__ */
|
|
2724
|
+
g && /* @__PURE__ */ f(ae, { children: [
|
|
2724
2725
|
/* @__PURE__ */ t("br", {}),
|
|
2725
2726
|
/* @__PURE__ */ t(ie, { component: "span", sx: je, children: g })
|
|
2726
2727
|
] })
|
|
@@ -2735,7 +2736,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2735
2736
|
) })
|
|
2736
2737
|
] });
|
|
2737
2738
|
};
|
|
2738
|
-
return /* @__PURE__ */
|
|
2739
|
+
return /* @__PURE__ */ f(U, { component: "section", sx: M, children: [
|
|
2739
2740
|
/* @__PURE__ */ t("div", { ref: h, style: { width: "100%" }, children: /* @__PURE__ */ t(
|
|
2740
2741
|
ce,
|
|
2741
2742
|
{
|
|
@@ -2755,7 +2756,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2755
2756
|
},
|
|
2756
2757
|
renderItem: (E, O) => /* @__PURE__ */ t(U, { sx: { width: "100%" }, children: P(E, !s, O) }),
|
|
2757
2758
|
onMove: ({ index: E, isStart: O, isEnd: R }) => {
|
|
2758
|
-
|
|
2759
|
+
p(E), typeof O == "boolean" && typeof R == "boolean" && I({ isStart: O, isEnd: R }), N(E);
|
|
2759
2760
|
}
|
|
2760
2761
|
}
|
|
2761
2762
|
) }),
|
|
@@ -2780,7 +2781,7 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2780
2781
|
tags: {
|
|
2781
2782
|
navigation_type: "dot_click"
|
|
2782
2783
|
}
|
|
2783
|
-
}),
|
|
2784
|
+
}), p(E), (O = b.current) == null || O.go(E);
|
|
2784
2785
|
}
|
|
2785
2786
|
}
|
|
2786
2787
|
) })
|
|
@@ -2809,13 +2810,13 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2809
2810
|
}, r = Array.isArray(n) ? n[o] : n;
|
|
2810
2811
|
yt(() => {
|
|
2811
2812
|
if (!l.current || !s.current || typeof ResizeObserver == "undefined") return;
|
|
2812
|
-
const m = l.current,
|
|
2813
|
+
const m = l.current, p = s.current, _ = () => {
|
|
2813
2814
|
m.style.setProperty(
|
|
2814
2815
|
"--orc-co-bottomH",
|
|
2815
|
-
`${
|
|
2816
|
+
`${p.offsetHeight + 16}px`
|
|
2816
2817
|
);
|
|
2817
|
-
},
|
|
2818
|
-
return
|
|
2818
|
+
}, I = new ResizeObserver(_);
|
|
2819
|
+
return I.observe(p), _(), () => I.disconnect();
|
|
2819
2820
|
}, []);
|
|
2820
2821
|
const c = [
|
|
2821
2822
|
"orc-co-wrap",
|
|
@@ -2855,15 +2856,15 @@ const Va = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2855
2856
|
function pn(e, a, n) {
|
|
2856
2857
|
return n ? n.map((o) => {
|
|
2857
2858
|
var r, c;
|
|
2858
|
-
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 = {};
|
|
2859
2860
|
for (const m of a) {
|
|
2860
2861
|
if (!l.has(m.eventId)) continue;
|
|
2861
|
-
const
|
|
2862
|
-
|
|
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 }));
|
|
2863
2864
|
}
|
|
2864
2865
|
const h = e.filter((m) => l.has(m.id)).map((m) => {
|
|
2865
|
-
var
|
|
2866
|
-
return { ...m, betoffers: (
|
|
2866
|
+
var p;
|
|
2867
|
+
return { ...m, betoffers: (p = b[m.id]) != null ? p : [] };
|
|
2867
2868
|
});
|
|
2868
2869
|
return {
|
|
2869
2870
|
couponId: o.id,
|
|
@@ -2890,7 +2891,7 @@ function hn({
|
|
|
2890
2891
|
onViewMore: o,
|
|
2891
2892
|
className: i = ""
|
|
2892
2893
|
}) {
|
|
2893
|
-
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 = () => {
|
|
2894
2895
|
var L;
|
|
2895
2896
|
l({
|
|
2896
2897
|
element: "evento_combinadas_prev",
|
|
@@ -2914,7 +2915,7 @@ function hn({
|
|
|
2914
2915
|
},
|
|
2915
2916
|
tags: { section: "OraculoSeccionEventoCombinadas" }
|
|
2916
2917
|
}), (L = u.current) == null || L.next();
|
|
2917
|
-
},
|
|
2918
|
+
}, I = () => {
|
|
2918
2919
|
l({
|
|
2919
2920
|
element: "evento_combinadas_ver_mas",
|
|
2920
2921
|
label: `Landing: ${s} - OraculoSeccionEventoCombinadas - Click: Ver más`,
|
|
@@ -2926,7 +2927,7 @@ function hn({
|
|
|
2926
2927
|
tags: { section: "OraculoSeccionEventoCombinadas" }
|
|
2927
2928
|
}), Sa();
|
|
2928
2929
|
}, C = te(() => r.filter((L) => L.combinadoTotal !== null), [r]);
|
|
2929
|
-
async function
|
|
2930
|
+
async function T() {
|
|
2930
2931
|
var L, M, F;
|
|
2931
2932
|
try {
|
|
2932
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;
|
|
@@ -2941,7 +2942,7 @@ function hn({
|
|
|
2941
2942
|
}
|
|
2942
2943
|
}
|
|
2943
2944
|
J(() => {
|
|
2944
|
-
|
|
2945
|
+
T();
|
|
2945
2946
|
}, []);
|
|
2946
2947
|
const k = i || void 0, A = be("(max-width:768px)");
|
|
2947
2948
|
return C.length === 0 ? null : /* @__PURE__ */ t("section", { className: k, style: {
|
|
@@ -2949,11 +2950,11 @@ function hn({
|
|
|
2949
2950
|
// paddingRight: 16,
|
|
2950
2951
|
width: "100%",
|
|
2951
2952
|
boxSizing: "border-box"
|
|
2952
|
-
}, children: /* @__PURE__ */
|
|
2953
|
-
/* @__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: [
|
|
2954
2955
|
/* @__PURE__ */ t(se, { title: a, iconUrl: n, size: "md" }),
|
|
2955
|
-
/* @__PURE__ */
|
|
2956
|
-
/* @__PURE__ */
|
|
2956
|
+
/* @__PURE__ */ f("div", { className: He.controls, children: [
|
|
2957
|
+
/* @__PURE__ */ f(re, { spacing: 1, columns: "auto auto", children: [
|
|
2957
2958
|
/* @__PURE__ */ t(
|
|
2958
2959
|
K,
|
|
2959
2960
|
{
|
|
@@ -2961,7 +2962,7 @@ function hn({
|
|
|
2961
2962
|
variant: "secondary",
|
|
2962
2963
|
iconOnly: !0,
|
|
2963
2964
|
leftIcon: /* @__PURE__ */ t(Te, {}),
|
|
2964
|
-
onClick:
|
|
2965
|
+
onClick: p,
|
|
2965
2966
|
disabled: b.isStart
|
|
2966
2967
|
}
|
|
2967
2968
|
),
|
|
@@ -2977,7 +2978,7 @@ function hn({
|
|
|
2977
2978
|
}
|
|
2978
2979
|
)
|
|
2979
2980
|
] }),
|
|
2980
|
-
/* @__PURE__ */ t(K, { variant: "secondary", onClick:
|
|
2981
|
+
/* @__PURE__ */ t(K, { variant: "secondary", onClick: I, children: "Ver más" })
|
|
2981
2982
|
] })
|
|
2982
2983
|
] }) }),
|
|
2983
2984
|
/* @__PURE__ */ t(
|
|
@@ -3005,27 +3006,27 @@ function bn({}) {
|
|
|
3005
3006
|
"div",
|
|
3006
3007
|
{
|
|
3007
3008
|
className: Se.cardWrapper,
|
|
3008
|
-
children: /* @__PURE__ */
|
|
3009
|
-
/* @__PURE__ */
|
|
3009
|
+
children: /* @__PURE__ */ f(j, { direction: "column", spacing: 1, children: [
|
|
3010
|
+
/* @__PURE__ */ f(j, { spacing: 1, direction: "row", children: [
|
|
3010
3011
|
/* @__PURE__ */ t(G, { variant: "text", width: "60%", height: 24 }),
|
|
3011
3012
|
/* @__PURE__ */ t(G, { variant: "text", width: "39%", height: 24 })
|
|
3012
3013
|
] }),
|
|
3013
|
-
/* @__PURE__ */
|
|
3014
|
+
/* @__PURE__ */ f(j, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
3014
3015
|
/* @__PURE__ */ t(G, { variant: "circular", width: 32, height: 40 }),
|
|
3015
3016
|
/* @__PURE__ */ t(G, { variant: "text", width: 40, height: 40 }),
|
|
3016
3017
|
/* @__PURE__ */ t(G, { variant: "circular", width: 32, height: 40 })
|
|
3017
3018
|
] }),
|
|
3018
|
-
/* @__PURE__ */
|
|
3019
|
+
/* @__PURE__ */ f(j, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: [
|
|
3019
3020
|
/* @__PURE__ */ t(G, { variant: "text", width: 32, height: 16 }),
|
|
3020
3021
|
/* @__PURE__ */ t(G, { variant: "text", width: 40, height: 16 }),
|
|
3021
3022
|
/* @__PURE__ */ t(G, { variant: "text", width: 32, height: 16 })
|
|
3022
3023
|
] }),
|
|
3023
|
-
/* @__PURE__ */
|
|
3024
|
+
/* @__PURE__ */ f(j, { spacing: 2, direction: "row", children: [
|
|
3024
3025
|
/* @__PURE__ */ t(G, { variant: "rounded", width: 88, height: 16 }),
|
|
3025
3026
|
/* @__PURE__ */ t(G, { variant: "rounded", width: 88, height: 16 }),
|
|
3026
3027
|
/* @__PURE__ */ t(G, { variant: "rounded", width: 88, height: 16 })
|
|
3027
3028
|
] }),
|
|
3028
|
-
/* @__PURE__ */
|
|
3029
|
+
/* @__PURE__ */ f(j, { spacing: 2, direction: "row", children: [
|
|
3029
3030
|
/* @__PURE__ */ t(G, { variant: "rounded", width: 88, height: 32 }),
|
|
3030
3031
|
/* @__PURE__ */ t(G, { variant: "rounded", width: 88, height: 32 }),
|
|
3031
3032
|
/* @__PURE__ */ t(G, { variant: "rounded", width: 88, height: 32 })
|
|
@@ -3058,7 +3059,7 @@ function Cn({
|
|
|
3058
3059
|
onViewMore: o,
|
|
3059
3060
|
className: i = ""
|
|
3060
3061
|
}) {
|
|
3061
|
-
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 = () => {
|
|
3062
3063
|
var $;
|
|
3063
3064
|
A({
|
|
3064
3065
|
element: "evento_en_vivo_prev",
|
|
@@ -3129,13 +3130,13 @@ function Cn({
|
|
|
3129
3130
|
const $ = setInterval(O, 2e4);
|
|
3130
3131
|
return () => clearInterval($);
|
|
3131
3132
|
}, [O]), J(() => {
|
|
3132
|
-
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)
|
|
3133
3134
|
return;
|
|
3134
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) => {
|
|
3135
3136
|
var x;
|
|
3136
3137
|
return (x = v == null ? void 0 : v.event) == null ? void 0 : x.id;
|
|
3137
3138
|
}).filter((v) => v && !w.current.has(v));
|
|
3138
|
-
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) => {
|
|
3139
3140
|
v != null && v.events && m((x) => ({
|
|
3140
3141
|
...x,
|
|
3141
3142
|
...v.events
|
|
@@ -3143,7 +3144,7 @@ function Cn({
|
|
|
3143
3144
|
}).catch((v) => {
|
|
3144
3145
|
console.error("Jersey fetch error", v), S.forEach((x) => w.current.delete(x));
|
|
3145
3146
|
}).finally(() => {
|
|
3146
|
-
|
|
3147
|
+
I.current = !1;
|
|
3147
3148
|
}));
|
|
3148
3149
|
}, [F, h]);
|
|
3149
3150
|
const R = i || void 0, q = h === null;
|
|
@@ -3155,11 +3156,11 @@ function Cn({
|
|
|
3155
3156
|
// paddingRight: 16,
|
|
3156
3157
|
width: "100%",
|
|
3157
3158
|
boxSizing: "border-box"
|
|
3158
|
-
}, children: /* @__PURE__ */
|
|
3159
|
-
/* @__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: [
|
|
3160
3161
|
/* @__PURE__ */ t(se, { title: a, iconUrl: n, size: "md" }),
|
|
3161
|
-
/* @__PURE__ */
|
|
3162
|
-
/* @__PURE__ */
|
|
3162
|
+
/* @__PURE__ */ f("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
|
|
3163
|
+
/* @__PURE__ */ f(re, { spacing: 1, columns: "auto auto", children: [
|
|
3163
3164
|
/* @__PURE__ */ t(
|
|
3164
3165
|
K,
|
|
3165
3166
|
{
|
|
@@ -3222,25 +3223,25 @@ function Cn({
|
|
|
3222
3223
|
] }) });
|
|
3223
3224
|
}
|
|
3224
3225
|
function On() {
|
|
3225
|
-
return /* @__PURE__ */
|
|
3226
|
+
return /* @__PURE__ */ f("div", { className: de.cardContainer, children: [
|
|
3226
3227
|
/* @__PURE__ */ t(ot, { title: "" }),
|
|
3227
|
-
/* @__PURE__ */ t("div", { className: de.cardBackground, children: /* @__PURE__ */
|
|
3228
|
-
/* @__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: [
|
|
3229
3230
|
/* @__PURE__ */ t(G, { variant: "circular", width: 48, height: 48 }),
|
|
3230
3231
|
/* @__PURE__ */ t(G, { variant: "circular", width: 48, height: 48 })
|
|
3231
3232
|
] }),
|
|
3232
|
-
/* @__PURE__ */
|
|
3233
|
-
/* @__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: [
|
|
3234
3235
|
/* @__PURE__ */ t(G, { variant: "text", width: 80, height: 12 }),
|
|
3235
3236
|
/* @__PURE__ */ t(G, { variant: "text", width: 80, height: 12 })
|
|
3236
3237
|
] }),
|
|
3237
3238
|
/* @__PURE__ */ t(j, { spacing: 8, direction: "row", justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ t(G, { variant: "text", width: 160, height: 12 }) }),
|
|
3238
|
-
/* @__PURE__ */
|
|
3239
|
+
/* @__PURE__ */ f(j, { direction: "row", spacing: 1, children: [
|
|
3239
3240
|
/* @__PURE__ */ t(G, { variant: "text", width: 80, height: 16 }),
|
|
3240
3241
|
/* @__PURE__ */ t(G, { variant: "text", width: 80, height: 16 }),
|
|
3241
3242
|
/* @__PURE__ */ t(G, { variant: "text", width: 80, height: 16 })
|
|
3242
3243
|
] }),
|
|
3243
|
-
/* @__PURE__ */ t("div", { className: de.jugadas, children: /* @__PURE__ */
|
|
3244
|
+
/* @__PURE__ */ t("div", { className: de.jugadas, children: /* @__PURE__ */ f(j, { direction: "row", spacing: 1, children: [
|
|
3244
3245
|
/* @__PURE__ */ t(G, { variant: "rounded", width: 80, height: 32 }),
|
|
3245
3246
|
/* @__PURE__ */ t(G, { variant: "rounded", width: 80, height: 32 }),
|
|
3246
3247
|
/* @__PURE__ */ t(G, { variant: "rounded", width: 80, height: 32 })
|
|
@@ -3299,7 +3300,7 @@ function An({
|
|
|
3299
3300
|
}) {
|
|
3300
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);
|
|
3301
3302
|
W(/* @__PURE__ */ new Set());
|
|
3302
|
-
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);
|
|
3303
3304
|
te(() => c === null ? Array(6).fill({}) : c.slice(0, 20), [c]);
|
|
3304
3305
|
const L = () => {
|
|
3305
3306
|
l({
|
|
@@ -3353,11 +3354,11 @@ function An({
|
|
|
3353
3354
|
if (D.groups && D.groups.length > 0) {
|
|
3354
3355
|
const Y = D.groups[0];
|
|
3355
3356
|
return [
|
|
3356
|
-
`${Z}/${D.termKey}/${Y.termKey}/all/matches.json?${
|
|
3357
|
+
`${Z}/${D.termKey}/${Y.termKey}/all/matches.json?${T}`
|
|
3357
3358
|
];
|
|
3358
3359
|
}
|
|
3359
3360
|
return [
|
|
3360
|
-
`${Z}/${D.termKey}/all/all/matches.json?${
|
|
3361
|
+
`${Z}/${D.termKey}/all/all/matches.json?${T}`
|
|
3361
3362
|
];
|
|
3362
3363
|
}, V = x.flatMap(B);
|
|
3363
3364
|
F(V, q, O);
|
|
@@ -3403,7 +3404,7 @@ function An({
|
|
|
3403
3404
|
}, [e]), J(() => {
|
|
3404
3405
|
if (k.start === null || k.end === null || !(c != null && c.length) || A.current)
|
|
3405
3406
|
return;
|
|
3406
|
-
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);
|
|
3407
3408
|
if (!g.length) return;
|
|
3408
3409
|
let z = !1;
|
|
3409
3410
|
return A.current = !0, (async () => {
|
|
@@ -3427,8 +3428,8 @@ function An({
|
|
|
3427
3428
|
width: "100%",
|
|
3428
3429
|
boxSizing: "border-box"
|
|
3429
3430
|
}, P = c === null, E = be("(max-width:768px)");
|
|
3430
|
-
return !P && c.length === 0 ? null : /* @__PURE__ */ t("section", { className: w, style: N, children: /* @__PURE__ */
|
|
3431
|
-
/* @__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: [
|
|
3432
3433
|
/* @__PURE__ */ t(se, { title: "Eventos de la semana" }),
|
|
3433
3434
|
/* @__PURE__ */ t("div", { className: _e.buttonWrapper, children: /* @__PURE__ */ t(
|
|
3434
3435
|
K,
|
|
@@ -3462,7 +3463,7 @@ function An({
|
|
|
3462
3463
|
}
|
|
3463
3464
|
},
|
|
3464
3465
|
renderItem: (O) => {
|
|
3465
|
-
const R = O.id, q = R in
|
|
3466
|
+
const R = O.id, q = R in p ? p[R] : void 0;
|
|
3466
3467
|
return P ? /* @__PURE__ */ t(Ie, { children: /* @__PURE__ */ t(On, {}) }) : /* @__PURE__ */ t(Ie, { children: /* @__PURE__ */ t($n, { event: O, jersey: q }) });
|
|
3467
3468
|
},
|
|
3468
3469
|
onMove: ({ isStart: O, isEnd: R, visibleStart: q, visibleEnd: g }) => {
|
|
@@ -3495,7 +3496,7 @@ function Rn({
|
|
|
3495
3496
|
hideItems: n
|
|
3496
3497
|
}) {
|
|
3497
3498
|
var O, R, q;
|
|
3498
|
-
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 = {
|
|
3499
3500
|
position: "absolute",
|
|
3500
3501
|
top: "50%",
|
|
3501
3502
|
transform: "translateY(-50%)",
|
|
@@ -3535,7 +3536,7 @@ function Rn({
|
|
|
3535
3536
|
}, 500);
|
|
3536
3537
|
return () => clearTimeout(g);
|
|
3537
3538
|
}, []);
|
|
3538
|
-
const
|
|
3539
|
+
const T = (g, z) => {
|
|
3539
3540
|
var d, y;
|
|
3540
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}`;
|
|
3541
3542
|
l({
|
|
@@ -3609,7 +3610,7 @@ function Rn({
|
|
|
3609
3610
|
tags: { banner_position: String(z + 1) }
|
|
3610
3611
|
});
|
|
3611
3612
|
};
|
|
3612
|
-
return /* @__PURE__ */
|
|
3613
|
+
return /* @__PURE__ */ f(
|
|
3613
3614
|
X,
|
|
3614
3615
|
{
|
|
3615
3616
|
component: "section",
|
|
@@ -3618,7 +3619,7 @@ function Rn({
|
|
|
3618
3619
|
overflow: "visible"
|
|
3619
3620
|
},
|
|
3620
3621
|
children: [
|
|
3621
|
-
/* @__PURE__ */
|
|
3622
|
+
/* @__PURE__ */ f(
|
|
3622
3623
|
X,
|
|
3623
3624
|
{
|
|
3624
3625
|
sx: {
|
|
@@ -3659,14 +3660,14 @@ function Rn({
|
|
|
3659
3660
|
},
|
|
3660
3661
|
renderItem: (g, z) => {
|
|
3661
3662
|
var $, d;
|
|
3662
|
-
return /* @__PURE__ */
|
|
3663
|
+
return /* @__PURE__ */ f(
|
|
3663
3664
|
X,
|
|
3664
3665
|
{
|
|
3665
3666
|
component: "a",
|
|
3666
3667
|
href: g.href,
|
|
3667
3668
|
target: ($ = g.target) != null ? $ : "_self",
|
|
3668
3669
|
rel: g.target === "_blank" ? "noopener noreferrer" : void 0,
|
|
3669
|
-
onClick: () =>
|
|
3670
|
+
onClick: () => T(g, z),
|
|
3670
3671
|
sx: {
|
|
3671
3672
|
position: "relative",
|
|
3672
3673
|
width: "100%",
|
|
@@ -3676,7 +3677,7 @@ function Rn({
|
|
|
3676
3677
|
cursor: "pointer"
|
|
3677
3678
|
},
|
|
3678
3679
|
children: [
|
|
3679
|
-
/* @__PURE__ */
|
|
3680
|
+
/* @__PURE__ */ f(X, { component: "picture", sx: { position: "absolute", inset: 0, lineHeight: 0 }, children: [
|
|
3680
3681
|
/* @__PURE__ */ t("source", { srcSet: g.desktopSrc, media: "(min-width:800px)" }),
|
|
3681
3682
|
/* @__PURE__ */ t("source", { srcSet: g.mobileSrc, media: "(max-width:799px)" }),
|
|
3682
3683
|
/* @__PURE__ */ t(
|
|
@@ -3723,14 +3724,14 @@ function Rn({
|
|
|
3723
3724
|
)
|
|
3724
3725
|
}
|
|
3725
3726
|
),
|
|
3726
|
-
m && /* @__PURE__ */
|
|
3727
|
+
m && /* @__PURE__ */ f(ae, { children: [
|
|
3727
3728
|
/* @__PURE__ */ t(
|
|
3728
3729
|
Pe,
|
|
3729
3730
|
{
|
|
3730
3731
|
"aria-label": "Anterior",
|
|
3731
3732
|
onClick: N,
|
|
3732
3733
|
sx: {
|
|
3733
|
-
...
|
|
3734
|
+
...I,
|
|
3734
3735
|
left: "120px",
|
|
3735
3736
|
"@media (max-width:1024px)": { left: 24 },
|
|
3736
3737
|
"@media (max-width:786px)": { display: "none" }
|
|
@@ -3744,7 +3745,7 @@ function Rn({
|
|
|
3744
3745
|
"aria-label": "Siguiente",
|
|
3745
3746
|
onClick: P,
|
|
3746
3747
|
sx: {
|
|
3747
|
-
...
|
|
3748
|
+
...I,
|
|
3748
3749
|
right: "120px",
|
|
3749
3750
|
"@media (max-width:1024px)": { right: 24 },
|
|
3750
3751
|
"@media (max-width:786px)": { display: "none" }
|
|
@@ -3779,7 +3780,7 @@ function Rn({
|
|
|
3779
3780
|
]
|
|
3780
3781
|
}
|
|
3781
3782
|
),
|
|
3782
|
-
|
|
3783
|
+
p && /* @__PURE__ */ t(
|
|
3783
3784
|
X,
|
|
3784
3785
|
{
|
|
3785
3786
|
sx: {
|
|
@@ -3797,7 +3798,7 @@ function Rn({
|
|
|
3797
3798
|
boxShadow: "0 10px 24px rgba(0,0,0,.35)",
|
|
3798
3799
|
zIndex: 3
|
|
3799
3800
|
},
|
|
3800
|
-
children: a == null ? void 0 : a.map((g) => /* @__PURE__ */
|
|
3801
|
+
children: a == null ? void 0 : a.map((g) => /* @__PURE__ */ f(
|
|
3801
3802
|
X,
|
|
3802
3803
|
{
|
|
3803
3804
|
sx: {
|
|
@@ -3844,7 +3845,7 @@ function Rn({
|
|
|
3844
3845
|
},
|
|
3845
3846
|
onClick: () => k(g),
|
|
3846
3847
|
children: [
|
|
3847
|
-
g.icon && /* @__PURE__ */
|
|
3848
|
+
g.icon && /* @__PURE__ */ f(
|
|
3848
3849
|
X,
|
|
3849
3850
|
{
|
|
3850
3851
|
sx: {
|
|
@@ -3928,7 +3929,7 @@ function zn({
|
|
|
3928
3929
|
items: a = Fn
|
|
3929
3930
|
}) {
|
|
3930
3931
|
const n = Math.ceil(a.length / 2), o = a.slice(0, n), i = a.slice(n);
|
|
3931
|
-
return /* @__PURE__ */
|
|
3932
|
+
return /* @__PURE__ */ f(X, { component: "section", "aria-labelledby": "mp-title", sx: { color: "#fff" }, children: [
|
|
3932
3933
|
/* @__PURE__ */ t(
|
|
3933
3934
|
Qe,
|
|
3934
3935
|
{
|
|
@@ -3957,7 +3958,7 @@ function zn({
|
|
|
3957
3958
|
}
|
|
3958
3959
|
}
|
|
3959
3960
|
),
|
|
3960
|
-
/* @__PURE__ */
|
|
3961
|
+
/* @__PURE__ */ f(ye, { spacing: { xs: 2, md: 3 }, alignItems: "center", children: [
|
|
3961
3962
|
/* @__PURE__ */ t(
|
|
3962
3963
|
ye,
|
|
3963
3964
|
{
|
|
@@ -3999,7 +4000,7 @@ function Ae({
|
|
|
3999
4000
|
}),
|
|
4000
4001
|
[a]
|
|
4001
4002
|
);
|
|
4002
|
-
return /* @__PURE__ */
|
|
4003
|
+
return /* @__PURE__ */ f(Ot, { theme: n, children: [
|
|
4003
4004
|
/* @__PURE__ */ t(Et, {}),
|
|
4004
4005
|
e
|
|
4005
4006
|
] });
|
|
@@ -5140,7 +5141,7 @@ const Je = [
|
|
|
5140
5141
|
loader: i,
|
|
5141
5142
|
disableWrapper: l = !1
|
|
5142
5143
|
}) => {
|
|
5143
|
-
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(() => {
|
|
5144
5145
|
const d = s.user;
|
|
5145
5146
|
return A(d == null ? void 0 : d.groups);
|
|
5146
5147
|
}, [s]), M = (d) => {
|
|
@@ -5248,15 +5249,15 @@ const Je = [
|
|
|
5248
5249
|
if (d.length)
|
|
5249
5250
|
for (const { s: y, url: S } of d) {
|
|
5250
5251
|
const v = `${y.id}|${S}`;
|
|
5251
|
-
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 () => {
|
|
5252
5253
|
try {
|
|
5253
5254
|
const x = await w(y);
|
|
5254
|
-
|
|
5255
|
+
p((B) => ({ ...B, [y.id]: x }));
|
|
5255
5256
|
} catch (x) {
|
|
5256
5257
|
let B = "Error desconocido";
|
|
5257
|
-
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 }));
|
|
5258
5259
|
} finally {
|
|
5259
|
-
|
|
5260
|
+
I((x) => ({ ...x, [y.id]: !1 }));
|
|
5260
5261
|
}
|
|
5261
5262
|
})());
|
|
5262
5263
|
}
|