oraculo-ui 0.1.154 → 0.1.155
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 +29 -29
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t, jsxs as b, Fragment as te } from "react/jsx-runtime";
|
|
2
|
-
import { Link as vt, Box as le, IconButton as Qe, useMediaQuery as et, Typography as yt, Stack as
|
|
3
|
-
import ve, { useState as ee, useEffect as re, useRef as Z, forwardRef as Ft, useImperativeHandle as zt, useCallback as
|
|
2
|
+
import { Link as vt, Box as le, IconButton as Qe, useMediaQuery as et, Typography as yt, Stack as Fe, Container as Pt } from "@mui/material";
|
|
3
|
+
import ve, { useState as ee, useEffect as re, useRef as Z, forwardRef as Ft, useImperativeHandle as zt, useCallback as Me, createContext as Ut, useContext as qt, useMemo as de, useLayoutEffect as Vt } from "react";
|
|
4
4
|
import X from "@mui/material/Skeleton";
|
|
5
5
|
import { Splide as Wt, SplideSlide as Dt } from "@splidejs/react-splide";
|
|
6
6
|
import U from "@mui/material/Box";
|
|
@@ -601,7 +601,7 @@ const Ma = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", Ba = "ora
|
|
|
601
601
|
}, O = (E) => {
|
|
602
602
|
const v = E.root.querySelector(".splide__track"), T = E.root.querySelector(".splide__list");
|
|
603
603
|
return !v || !T ? !1 : T.scrollWidth > v.clientWidth + 1;
|
|
604
|
-
}, L = Z(!1), I =
|
|
604
|
+
}, L = Z(!1), I = Me((E) => {
|
|
605
605
|
var G, q;
|
|
606
606
|
if (L.current) return;
|
|
607
607
|
const T = E.Components.Slides.getLength(), F = M.current;
|
|
@@ -645,7 +645,7 @@ const Ma = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", Ba = "ora
|
|
|
645
645
|
M.current = "resize", I(E);
|
|
646
646
|
});
|
|
647
647
|
}, [e.length, I]);
|
|
648
|
-
const y =
|
|
648
|
+
const y = Me(() => {
|
|
649
649
|
var v;
|
|
650
650
|
const E = (v = u.current) == null ? void 0 : v.splide;
|
|
651
651
|
if (E) {
|
|
@@ -657,7 +657,7 @@ const Ma = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", Ba = "ora
|
|
|
657
657
|
}
|
|
658
658
|
M.current = "resize", I(E);
|
|
659
659
|
}
|
|
660
|
-
}, [I]), w =
|
|
660
|
+
}, [I]), w = Me(
|
|
661
661
|
(E) => {
|
|
662
662
|
M.current = "mounted", I(E);
|
|
663
663
|
},
|
|
@@ -952,7 +952,7 @@ function za({
|
|
|
952
952
|
}
|
|
953
953
|
);
|
|
954
954
|
}
|
|
955
|
-
const Ke = "/assets/img/home/CasinoEnVivo/image3.png", Ua = "/assets/img/home/CasinoEnVivo/image2.png",
|
|
955
|
+
const Ke = "/assets/img/home/CasinoEnVivo/image3.png", Ua = "/assets/img/home/CasinoEnVivo/image2.png", Le = "/assets/img/home/CasinoEnVivo/image1.png", it = ({
|
|
956
956
|
logo: e,
|
|
957
957
|
provider: a,
|
|
958
958
|
providerName: n,
|
|
@@ -1051,18 +1051,18 @@ const Ke = "/assets/img/home/CasinoEnVivo/image3.png", Ua = "/assets/img/home/Ca
|
|
|
1051
1051
|
U,
|
|
1052
1052
|
{
|
|
1053
1053
|
component: "img",
|
|
1054
|
-
src: l ?
|
|
1054
|
+
src: l ? Le : Ke,
|
|
1055
1055
|
alt: l ? "Favorito activo" : "Favorito",
|
|
1056
1056
|
sx: {
|
|
1057
1057
|
width: 32,
|
|
1058
1058
|
height: 32,
|
|
1059
1059
|
objectFit: "contain",
|
|
1060
1060
|
content: {
|
|
1061
|
-
xs: `url(${l ?
|
|
1062
|
-
md: `url(${l ?
|
|
1061
|
+
xs: `url(${l ? Le : Ke})`,
|
|
1062
|
+
md: `url(${l ? Le : Ke})`
|
|
1063
1063
|
},
|
|
1064
1064
|
".MuiIconButton-root:hover &": {
|
|
1065
|
-
content: l ? `url(${
|
|
1065
|
+
content: l ? `url(${Le})` : `url(${Ua})`
|
|
1066
1066
|
}
|
|
1067
1067
|
}
|
|
1068
1068
|
}
|
|
@@ -2473,7 +2473,7 @@ const Fn = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/popularid
|
|
|
2473
2473
|
const u = se(), h = ce(), x = pe(), _ = Kn(g), { resolvedItems: S, loading: M } = Zn(
|
|
2474
2474
|
e,
|
|
2475
2475
|
_
|
|
2476
|
-
), k = _ ? S : Array.isArray(e) ? e : [], O = _ ? M : !Array.isArray(e) || e.length === 0, L =
|
|
2476
|
+
), k = _ ? S : Array.isArray(e) ? e : [], O = _ ? M : !Array.isArray(e) || e.length === 0, L = Me(
|
|
2477
2477
|
(w, B) => {
|
|
2478
2478
|
if (!d) return;
|
|
2479
2479
|
const E = !!w.favourite;
|
|
@@ -3737,7 +3737,7 @@ function So({
|
|
|
3737
3737
|
},
|
|
3738
3738
|
tags: { section: "OraculoSeccionEventoEnVivo" }
|
|
3739
3739
|
}), Xa();
|
|
3740
|
-
}, w =
|
|
3740
|
+
}, w = Me(async () => {
|
|
3741
3741
|
var R;
|
|
3742
3742
|
try {
|
|
3743
3743
|
if (!_.current) {
|
|
@@ -3900,7 +3900,7 @@ function wo() {
|
|
|
3900
3900
|
] }) })
|
|
3901
3901
|
] });
|
|
3902
3902
|
}
|
|
3903
|
-
const Oo = "oraculo__OraculoSeccionEventoSemana-module__wrapper___eqVq-", Io = "oraculo__OraculoSeccionEventoSemana-module__container___5yFQs", To = "oraculo__OraculoSeccionEventoSemana-module__buttonWrapper___-6IDT", Eo = "oraculo__OraculoSeccionEventoSemana-module__padding___vfUcV",
|
|
3903
|
+
const Oo = "oraculo__OraculoSeccionEventoSemana-module__wrapper___eqVq-", Io = "oraculo__OraculoSeccionEventoSemana-module__container___5yFQs", To = "oraculo__OraculoSeccionEventoSemana-module__buttonWrapper___-6IDT", Eo = "oraculo__OraculoSeccionEventoSemana-module__padding___vfUcV", Re = {
|
|
3904
3904
|
wrapper: Oo,
|
|
3905
3905
|
container: Io,
|
|
3906
3906
|
buttonWrapper: To,
|
|
@@ -4066,10 +4066,10 @@ function Mo({
|
|
|
4066
4066
|
buffer: 2,
|
|
4067
4067
|
debounceMs: 250
|
|
4068
4068
|
}), B = h === null, E = Ne("(max-width:950px)");
|
|
4069
|
-
return !B && h.length === 0 ? null : /* @__PURE__ */ t("section", { className: I, style: y, children: /* @__PURE__ */ b("div", { className: `${
|
|
4070
|
-
/* @__PURE__ */ t("div", { className:
|
|
4069
|
+
return !B && h.length === 0 ? null : /* @__PURE__ */ t("section", { className: I, style: y, children: /* @__PURE__ */ b("div", { className: `${Re.wrapper} ${Re.padding}`, children: [
|
|
4070
|
+
/* @__PURE__ */ t("div", { className: Re.container, children: /* @__PURE__ */ b(Q, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
4071
4071
|
/* @__PURE__ */ t(ye, { title: "Eventos de la semana" }),
|
|
4072
|
-
/* @__PURE__ */ t("div", { className:
|
|
4072
|
+
/* @__PURE__ */ t("div", { className: Re.buttonWrapper, children: /* @__PURE__ */ t(
|
|
4073
4073
|
ae,
|
|
4074
4074
|
{
|
|
4075
4075
|
variant: "secondary",
|
|
@@ -4663,9 +4663,9 @@ function zo({
|
|
|
4663
4663
|
}
|
|
4664
4664
|
}
|
|
4665
4665
|
),
|
|
4666
|
-
/* @__PURE__ */ b(
|
|
4666
|
+
/* @__PURE__ */ b(Fe, { spacing: { xs: 2, md: 3 }, alignItems: "center", children: [
|
|
4667
4667
|
/* @__PURE__ */ t(
|
|
4668
|
-
|
|
4668
|
+
Fe,
|
|
4669
4669
|
{
|
|
4670
4670
|
direction: "row",
|
|
4671
4671
|
justifyContent: "center",
|
|
@@ -4676,7 +4676,7 @@ function zo({
|
|
|
4676
4676
|
}
|
|
4677
4677
|
),
|
|
4678
4678
|
/* @__PURE__ */ t(
|
|
4679
|
-
|
|
4679
|
+
Fe,
|
|
4680
4680
|
{
|
|
4681
4681
|
direction: "row",
|
|
4682
4682
|
justifyContent: "center",
|
|
@@ -4730,7 +4730,7 @@ const Uo = {
|
|
|
4730
4730
|
OraculoSeccionEventoEnVivo: So,
|
|
4731
4731
|
OraculoSeccionEventoSemana: Mo,
|
|
4732
4732
|
OraculoSeccionEventoCombinadas: fo
|
|
4733
|
-
},
|
|
4733
|
+
}, Pe = {
|
|
4734
4734
|
sections: [
|
|
4735
4735
|
{
|
|
4736
4736
|
title: "Banners",
|
|
@@ -6180,9 +6180,9 @@ const _t = [
|
|
|
6180
6180
|
disableWrapper: l = !1
|
|
6181
6181
|
}) => {
|
|
6182
6182
|
const c = de(() => Do(i), [i]), g = s || c.loader, [f, m] = ee(
|
|
6183
|
-
() => e ? [] : Ae(
|
|
6183
|
+
() => e ? [] : Ae(Pe)
|
|
6184
6184
|
), [d, u] = ee(!1), [h, x] = ee({}), [_, S] = ee({}), [M, k] = ee({}), O = et("(min-width:1024px)"), L = de(
|
|
6185
|
-
() => Ae(
|
|
6185
|
+
() => Ae(Pe),
|
|
6186
6186
|
[]
|
|
6187
6187
|
), I = (r) => L.find(
|
|
6188
6188
|
(p) => p.id === r.id || p.componentKey === r.componentKey
|
|
@@ -6212,11 +6212,11 @@ const _t = [
|
|
|
6212
6212
|
re(() => {
|
|
6213
6213
|
if (e) return;
|
|
6214
6214
|
if (!o) {
|
|
6215
|
-
console.warn("[landing] sin db -> fallback json"), m(Ae(
|
|
6215
|
+
console.warn("[landing] sin db -> fallback json"), m(Ae(Pe));
|
|
6216
6216
|
return;
|
|
6217
6217
|
}
|
|
6218
6218
|
const r = (C, A) => {
|
|
6219
|
-
console.warn("[landing] FALLBACK:", C, A != null ? A : ""), m(Ae(
|
|
6219
|
+
console.warn("[landing] FALLBACK:", C, A != null ? A : ""), m(Ae(Pe)), u(!1);
|
|
6220
6220
|
};
|
|
6221
6221
|
u(!0);
|
|
6222
6222
|
const p = Kt(
|
|
@@ -6465,15 +6465,15 @@ const _t = [
|
|
|
6465
6465
|
`Cargando datos desde ${r.apiUrl}...`
|
|
6466
6466
|
);
|
|
6467
6467
|
if (Se && !j) {
|
|
6468
|
-
const
|
|
6469
|
-
if (
|
|
6468
|
+
const Be = I(r);
|
|
6469
|
+
if (Be && Be.dataMode === "manual")
|
|
6470
6470
|
try {
|
|
6471
|
-
const je = q(
|
|
6471
|
+
const je = q(Be);
|
|
6472
6472
|
return /* @__PURE__ */ t("div", { style: ne, className: "oraculo-section-wrapper", children: /* @__PURE__ */ t(C, { ...je }) }, r.id);
|
|
6473
6473
|
} catch (je) {
|
|
6474
6474
|
console.error(
|
|
6475
6475
|
"🔥 ERROR renderizando fallback manual de sección:",
|
|
6476
|
-
|
|
6476
|
+
Be,
|
|
6477
6477
|
je
|
|
6478
6478
|
);
|
|
6479
6479
|
}
|
|
@@ -6513,7 +6513,7 @@ const _t = [
|
|
|
6513
6513
|
maxWidth: "100%",
|
|
6514
6514
|
overflowX: "hidden"
|
|
6515
6515
|
},
|
|
6516
|
-
children: /* @__PURE__ */ t(
|
|
6516
|
+
children: /* @__PURE__ */ t(Fe, { direction: "column", spacing: O ? 8 : 5, useFlexGap: !0, children: R.map((r) => {
|
|
6517
6517
|
try {
|
|
6518
6518
|
return Y(r);
|
|
6519
6519
|
} catch (p) {
|