oraculo-ui 0.1.56 → 0.1.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e, jsxs as c, Fragment as Z } from "react/jsx-runtime";
|
|
2
2
|
import { Link as ye, Box as j, Typography as we, Stack as Se, useMediaQuery as Be, Container as Me } from "@mui/material";
|
|
3
|
-
import
|
|
3
|
+
import Fe, { forwardRef as Le, useRef as G, useImperativeHandle as We, useCallback as he, useState as W, useMemo as le, useLayoutEffect as ze, useEffect as Q } from "react";
|
|
4
4
|
import { Splide as je, SplideSlide as Ae } from "@splidejs/react-splide";
|
|
5
5
|
import k from "@mui/material/Box";
|
|
6
6
|
import M from "@mui/material/Skeleton";
|
|
@@ -11,7 +11,7 @@ import Ce from "@mui/icons-material/ChevronLeftRounded";
|
|
|
11
11
|
import Ee from "@mui/icons-material/ChevronRightRounded";
|
|
12
12
|
import Ge from "@mui/material/useMediaQuery";
|
|
13
13
|
import { onSnapshot as Ue, doc as De } from "firebase/firestore";
|
|
14
|
-
function
|
|
14
|
+
function F({
|
|
15
15
|
children: t,
|
|
16
16
|
onClick: n,
|
|
17
17
|
href: a,
|
|
@@ -292,7 +292,7 @@ function oe({ name: t, logo: n, size: a = "regular" }) {
|
|
|
292
292
|
/* @__PURE__ */ e("span", { className: ee.name, children: t })
|
|
293
293
|
] });
|
|
294
294
|
}
|
|
295
|
-
const pt = je, mt = Ae, q =
|
|
295
|
+
const pt = je, mt = Ae, q = Le(
|
|
296
296
|
({
|
|
297
297
|
items: t = [],
|
|
298
298
|
renderItem: n,
|
|
@@ -435,7 +435,7 @@ const pt = je, mt = Ae, q = Fe(
|
|
|
435
435
|
transition: "opacity .15s ease, transform .15s ease",
|
|
436
436
|
pointerEvents: "none"
|
|
437
437
|
},
|
|
438
|
-
children: /* @__PURE__ */ e(
|
|
438
|
+
children: /* @__PURE__ */ e(F, { variant: "primary", size: "md", onClick: o, children: "JUGAR" })
|
|
439
439
|
}
|
|
440
440
|
)
|
|
441
441
|
]
|
|
@@ -910,7 +910,7 @@ const gt = ({
|
|
|
910
910
|
children: a
|
|
911
911
|
}
|
|
912
912
|
),
|
|
913
|
-
i && /* @__PURE__ */ e(
|
|
913
|
+
i && /* @__PURE__ */ e(F, { onClick: l, children: i })
|
|
914
914
|
]
|
|
915
915
|
}
|
|
916
916
|
)
|
|
@@ -955,12 +955,12 @@ const gt = ({
|
|
|
955
955
|
}
|
|
956
956
|
),
|
|
957
957
|
/* @__PURE__ */ e("p", { className: "orc-co-captionDesktop", children: t }),
|
|
958
|
-
/* @__PURE__ */ e(
|
|
958
|
+
/* @__PURE__ */ e(F, { onClick: a, variant: "primary", size: "md", children: n })
|
|
959
959
|
] })
|
|
960
960
|
] }),
|
|
961
961
|
/* @__PURE__ */ c("div", { className: "orc-co-bottom", children: [
|
|
962
962
|
/* @__PURE__ */ e("p", { className: "orc-co-caption", children: t }),
|
|
963
|
-
/* @__PURE__ */ e(
|
|
963
|
+
/* @__PURE__ */ e(F, { onClick: a, variant: "primary", size: "md", children: n })
|
|
964
964
|
] })
|
|
965
965
|
] }), bt = "oraculo__OraculoEventCombinadasCard-module__card___ulQeY", _t = "oraculo__OraculoEventCombinadasCard-module__combinadas___Gxrld", vt = "oraculo__OraculoEventCombinadasCard-module__apuestaItem___YnYMy", yt = "oraculo__OraculoEventCombinadasCard-module__lineContainer___G5rbU", wt = "oraculo__OraculoEventCombinadasCard-module__circle___eehm-", St = "oraculo__OraculoEventCombinadasCard-module__line___Eb2pK", Ct = "oraculo__OraculoEventCombinadasCard-module__apuestaText___b5s7S", Et = "oraculo__OraculoEventCombinadasCard-module__cuotaTotal___Lohvu", H = {
|
|
966
966
|
card: bt,
|
|
@@ -1164,9 +1164,9 @@ const Rt = "oraculo__OraculoEventDate-module__date___xhIlh", Bt = {
|
|
|
1164
1164
|
function Mt({ text: t }) {
|
|
1165
1165
|
return /* @__PURE__ */ e("div", { className: `oli-font ${Bt.date}`, children: t });
|
|
1166
1166
|
}
|
|
1167
|
-
const
|
|
1168
|
-
cardContainer:
|
|
1169
|
-
cardBackground:
|
|
1167
|
+
const Ft = "oraculo__OraculoEventSemanaCard-module__cardContainer___4JuDe", Lt = "oraculo__OraculoEventSemanaCard-module__cardBackground___vfalD", Wt = "oraculo__OraculoEventSemanaCard-module__jugadas___W8b7H", zt = "oraculo__OraculoEventSemanaCard-module__equipos___G5hLn", J = {
|
|
1168
|
+
cardContainer: Ft,
|
|
1169
|
+
cardBackground: Lt,
|
|
1170
1170
|
jugadas: Wt,
|
|
1171
1171
|
equipos: zt
|
|
1172
1172
|
};
|
|
@@ -1196,7 +1196,7 @@ function jt({ event: t }) {
|
|
|
1196
1196
|
] }),
|
|
1197
1197
|
/* @__PURE__ */ c(B, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
1198
1198
|
/* @__PURE__ */ e(V, { spacing: 1, children: ((o = (l = (i = t == null ? void 0 : t.outcome) == null ? void 0 : i[0]) == null ? void 0 : l.outcomes) != null ? o : []).map((x, b) => /* @__PURE__ */ e($e, { text: x.label.toUpperCase() }, b)) }),
|
|
1199
|
-
/* @__PURE__ */ e("div", { className: J.jugadas, children: /* @__PURE__ */ e(V, { spacing: 1, children: ((u = (m = (r = t == null ? void 0 : t.outcome) == null ? void 0 : r[0]) == null ? void 0 : m.outcomes) != null ? u : []).map((x, b) => /* @__PURE__ */ e(
|
|
1199
|
+
/* @__PURE__ */ e("div", { className: J.jugadas, children: /* @__PURE__ */ e(V, { spacing: 1, children: ((u = (m = (r = t == null ? void 0 : t.outcome) == null ? void 0 : r[0]) == null ? void 0 : m.outcomes) != null ? u : []).map((x, b) => /* @__PURE__ */ e(F, { variant: "primary", fullHeight: !0, onClick: () => {
|
|
1200
1200
|
pe(x.id);
|
|
1201
1201
|
}, children: (x.odds / 1e3).toFixed(2) }, b)) }) })
|
|
1202
1202
|
] })
|
|
@@ -1239,7 +1239,7 @@ function At({
|
|
|
1239
1239
|
/* @__PURE__ */ e(K, { title: n, iconUrl: a, size: "md" }),
|
|
1240
1240
|
/* @__PURE__ */ c("div", { style: { display: "flex", gap: 8 }, children: [
|
|
1241
1241
|
/* @__PURE__ */ e(
|
|
1242
|
-
|
|
1242
|
+
F,
|
|
1243
1243
|
{
|
|
1244
1244
|
ariaLabel: "Anterior",
|
|
1245
1245
|
variant: "secondary",
|
|
@@ -1250,7 +1250,7 @@ function At({
|
|
|
1250
1250
|
}
|
|
1251
1251
|
),
|
|
1252
1252
|
/* @__PURE__ */ e(
|
|
1253
|
-
|
|
1253
|
+
F,
|
|
1254
1254
|
{
|
|
1255
1255
|
ariaLabel: "Siguiente",
|
|
1256
1256
|
variant: "secondary",
|
|
@@ -1261,7 +1261,7 @@ function At({
|
|
|
1261
1261
|
}
|
|
1262
1262
|
)
|
|
1263
1263
|
] }),
|
|
1264
|
-
/* @__PURE__ */ e(
|
|
1264
|
+
/* @__PURE__ */ e(F, { variant: "secondary", onClick: b, children: "Ver más" })
|
|
1265
1265
|
]
|
|
1266
1266
|
}
|
|
1267
1267
|
),
|
|
@@ -1476,11 +1476,11 @@ const Ut = (t, n) => {
|
|
|
1476
1476
|
}
|
|
1477
1477
|
),
|
|
1478
1478
|
/* @__PURE__ */ e(k, { sx: { display: { xs: "none", md: "block" } }, children: /* @__PURE__ */ e(
|
|
1479
|
-
|
|
1479
|
+
F,
|
|
1480
1480
|
{
|
|
1481
1481
|
variant: "primary",
|
|
1482
1482
|
size: "md",
|
|
1483
|
-
onClick: () => r == null ? void 0 : r(),
|
|
1483
|
+
onClick: () => (r == null ? void 0 : r()) || (window.location.href = "https://www.olimpo.bet/casino-en-vivo"),
|
|
1484
1484
|
children: "Ver más"
|
|
1485
1485
|
}
|
|
1486
1486
|
) })
|
|
@@ -1515,11 +1515,11 @@ const Ut = (t, n) => {
|
|
|
1515
1515
|
}
|
|
1516
1516
|
),
|
|
1517
1517
|
/* @__PURE__ */ e(k, { sx: { display: { xs: "block", md: "none" } }, children: /* @__PURE__ */ e(
|
|
1518
|
-
|
|
1518
|
+
F,
|
|
1519
1519
|
{
|
|
1520
1520
|
variant: "primary",
|
|
1521
1521
|
size: "lg",
|
|
1522
|
-
onClick: () => r == null ? void 0 : r(),
|
|
1522
|
+
onClick: () => (r == null ? void 0 : r()) || (window.location.href = "https://www.olimpo.bet/casino-en-vivo"),
|
|
1523
1523
|
children: "Ver más"
|
|
1524
1524
|
}
|
|
1525
1525
|
) })
|
|
@@ -1610,7 +1610,7 @@ const Ut = (t, n) => {
|
|
|
1610
1610
|
},
|
|
1611
1611
|
children: [
|
|
1612
1612
|
/* @__PURE__ */ e(
|
|
1613
|
-
|
|
1613
|
+
F,
|
|
1614
1614
|
{
|
|
1615
1615
|
ariaLabel: "Anterior",
|
|
1616
1616
|
variant: "secondary",
|
|
@@ -1621,7 +1621,7 @@ const Ut = (t, n) => {
|
|
|
1621
1621
|
}
|
|
1622
1622
|
),
|
|
1623
1623
|
/* @__PURE__ */ e(
|
|
1624
|
-
|
|
1624
|
+
F,
|
|
1625
1625
|
{
|
|
1626
1626
|
ariaLabel: "Siguiente",
|
|
1627
1627
|
variant: "secondary",
|
|
@@ -1634,7 +1634,7 @@ const Ut = (t, n) => {
|
|
|
1634
1634
|
]
|
|
1635
1635
|
}
|
|
1636
1636
|
),
|
|
1637
|
-
/* @__PURE__ */ e(k, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ e(
|
|
1637
|
+
/* @__PURE__ */ e(k, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ e(F, { variant: "secondary", onClick: s, children: "Ver más" }) })
|
|
1638
1638
|
]
|
|
1639
1639
|
}
|
|
1640
1640
|
),
|
|
@@ -1719,7 +1719,7 @@ const Ut = (t, n) => {
|
|
|
1719
1719
|
var v;
|
|
1720
1720
|
(v = m.current) == null || v.next();
|
|
1721
1721
|
}, s = () => {
|
|
1722
|
-
window.location.href = "https://www.olimpo.bet/virtuales";
|
|
1722
|
+
window.location.href = "https://www.olimpo.bet/juegos-virtuales";
|
|
1723
1723
|
}, p = (v = !0, S = 4) => {
|
|
1724
1724
|
const I = (C) => Array.from({ length: C }, (T, P) => ({ id: `sk-${C}-${P}`, imageUrl: "" })), f = [];
|
|
1725
1725
|
return v && f.push({ id: "mosaic-loading", kind: "mosaic", items: I(5) }), f.push({ id: "grid-loading", kind: "grid", items: I(S) }), f;
|
|
@@ -1754,7 +1754,7 @@ const Ut = (t, n) => {
|
|
|
1754
1754
|
},
|
|
1755
1755
|
children: [
|
|
1756
1756
|
/* @__PURE__ */ e(
|
|
1757
|
-
|
|
1757
|
+
F,
|
|
1758
1758
|
{
|
|
1759
1759
|
ariaLabel: "Anterior",
|
|
1760
1760
|
variant: "secondary",
|
|
@@ -1765,7 +1765,7 @@ const Ut = (t, n) => {
|
|
|
1765
1765
|
}
|
|
1766
1766
|
),
|
|
1767
1767
|
/* @__PURE__ */ e(
|
|
1768
|
-
|
|
1768
|
+
F,
|
|
1769
1769
|
{
|
|
1770
1770
|
ariaLabel: "Siguiente",
|
|
1771
1771
|
variant: "secondary",
|
|
@@ -1778,7 +1778,7 @@ const Ut = (t, n) => {
|
|
|
1778
1778
|
]
|
|
1779
1779
|
}
|
|
1780
1780
|
),
|
|
1781
|
-
/* @__PURE__ */ e(k, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ e(
|
|
1781
|
+
/* @__PURE__ */ e(k, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ e(F, { variant: "secondary", onClick: s, children: "Ver más" }) })
|
|
1782
1782
|
]
|
|
1783
1783
|
}
|
|
1784
1784
|
),
|
|
@@ -2085,14 +2085,14 @@ function eo({
|
|
|
2085
2085
|
const P = [];
|
|
2086
2086
|
for (const E of T) {
|
|
2087
2087
|
const d = S([E]), h = v(E), w = C.reduce((g, y) => {
|
|
2088
|
-
var R,
|
|
2088
|
+
var R, L;
|
|
2089
2089
|
g[y.eventId] || (g[y.eventId] = []);
|
|
2090
2090
|
const N = y.outcomes.filter(
|
|
2091
2091
|
(z) => d.has(z.id)
|
|
2092
2092
|
);
|
|
2093
2093
|
if (N.length > 0) {
|
|
2094
2094
|
const z = Array.from(
|
|
2095
|
-
(
|
|
2095
|
+
(L = (R = h == null ? void 0 : h[0]) == null ? void 0 : R.requiredOutcomeIds) != null ? L : []
|
|
2096
2096
|
), A = N.map((Y) => ({
|
|
2097
2097
|
...Y,
|
|
2098
2098
|
position: z.indexOf(Y.id)
|
|
@@ -2156,8 +2156,8 @@ function eo({
|
|
|
2156
2156
|
}, []);
|
|
2157
2157
|
const I = l || void 0;
|
|
2158
2158
|
return !u || u.length === 0 ? null : /* @__PURE__ */ e("section", { className: I, style: {
|
|
2159
|
-
paddingLeft: 16,
|
|
2160
|
-
paddingRight: 16,
|
|
2159
|
+
// paddingLeft: 16,
|
|
2160
|
+
// paddingRight: 16,
|
|
2161
2161
|
width: "100%",
|
|
2162
2162
|
boxSizing: "border-box"
|
|
2163
2163
|
}, children: /* @__PURE__ */ c(B, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
@@ -2166,7 +2166,7 @@ function eo({
|
|
|
2166
2166
|
/* @__PURE__ */ c("div", { className: Zt.controls, children: [
|
|
2167
2167
|
/* @__PURE__ */ c(V, { spacing: 1, columns: "auto auto", children: [
|
|
2168
2168
|
/* @__PURE__ */ e(
|
|
2169
|
-
|
|
2169
|
+
F,
|
|
2170
2170
|
{
|
|
2171
2171
|
ariaLabel: "Anterior",
|
|
2172
2172
|
variant: "secondary",
|
|
@@ -2177,7 +2177,7 @@ function eo({
|
|
|
2177
2177
|
}
|
|
2178
2178
|
),
|
|
2179
2179
|
/* @__PURE__ */ e(
|
|
2180
|
-
|
|
2180
|
+
F,
|
|
2181
2181
|
{
|
|
2182
2182
|
ariaLabel: "Siguiente",
|
|
2183
2183
|
variant: "secondary",
|
|
@@ -2188,7 +2188,7 @@ function eo({
|
|
|
2188
2188
|
}
|
|
2189
2189
|
)
|
|
2190
2190
|
] }),
|
|
2191
|
-
/* @__PURE__ */ e(
|
|
2191
|
+
/* @__PURE__ */ e(F, { variant: "secondary", onClick: p, children: "Ver más" })
|
|
2192
2192
|
] })
|
|
2193
2193
|
] }),
|
|
2194
2194
|
/* @__PURE__ */ e(
|
|
@@ -2292,7 +2292,7 @@ function ro({
|
|
|
2292
2292
|
/* @__PURE__ */ c("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
|
|
2293
2293
|
/* @__PURE__ */ c(V, { spacing: 1, columns: "auto auto", children: [
|
|
2294
2294
|
/* @__PURE__ */ e(
|
|
2295
|
-
|
|
2295
|
+
F,
|
|
2296
2296
|
{
|
|
2297
2297
|
ariaLabel: "Anterior",
|
|
2298
2298
|
variant: "secondary",
|
|
@@ -2303,7 +2303,7 @@ function ro({
|
|
|
2303
2303
|
}
|
|
2304
2304
|
),
|
|
2305
2305
|
/* @__PURE__ */ e(
|
|
2306
|
-
|
|
2306
|
+
F,
|
|
2307
2307
|
{
|
|
2308
2308
|
ariaLabel: "Siguiente",
|
|
2309
2309
|
variant: "secondary",
|
|
@@ -2314,7 +2314,7 @@ function ro({
|
|
|
2314
2314
|
}
|
|
2315
2315
|
)
|
|
2316
2316
|
] }),
|
|
2317
|
-
/* @__PURE__ */ e(
|
|
2317
|
+
/* @__PURE__ */ e(F, { variant: "secondary", onClick: p, children: "Ver más" })
|
|
2318
2318
|
] })
|
|
2319
2319
|
] }),
|
|
2320
2320
|
/* @__PURE__ */ e(
|
|
@@ -2451,13 +2451,13 @@ function lo({
|
|
|
2451
2451
|
}, [t]);
|
|
2452
2452
|
const S = l || void 0, I = !x || x.length === 0;
|
|
2453
2453
|
return /* @__PURE__ */ e("section", { className: S, style: {
|
|
2454
|
-
paddingLeft: 16,
|
|
2454
|
+
// paddingLeft: 16,
|
|
2455
2455
|
width: "100%",
|
|
2456
2456
|
boxSizing: "border-box"
|
|
2457
2457
|
}, children: /* @__PURE__ */ c("div", { className: ce.wrapper, children: [
|
|
2458
2458
|
/* @__PURE__ */ e("div", { className: ce.container, children: /* @__PURE__ */ c(B, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
2459
2459
|
/* @__PURE__ */ e(K, { title: "Eventos de la semana" }),
|
|
2460
|
-
/* @__PURE__ */ e("div", { className: ce.buttonWrapper, children: /* @__PURE__ */ e(
|
|
2460
|
+
/* @__PURE__ */ e("div", { className: ce.buttonWrapper, children: /* @__PURE__ */ e(F, { variant: "secondary", size: "lg", fullWidth: !0, onClick: () => {
|
|
2461
2461
|
p();
|
|
2462
2462
|
}, children: "Ver más" }) })
|
|
2463
2463
|
] }) }),
|
|
@@ -2643,19 +2643,18 @@ function uo({
|
|
|
2643
2643
|
sx: {
|
|
2644
2644
|
display: "flex",
|
|
2645
2645
|
flexDirection: { xs: "column", md: "row" },
|
|
2646
|
-
// 👈 icono arriba en mobile, en fila en desktop
|
|
2647
2646
|
alignItems: "center",
|
|
2648
2647
|
justifyContent: "center",
|
|
2649
2648
|
gap: { xs: 0.5, md: 1 },
|
|
2650
|
-
// espacio icono-texto
|
|
2651
2649
|
color: "#FFFFFF",
|
|
2652
2650
|
minWidth: 0,
|
|
2653
|
-
cursor: o.
|
|
2651
|
+
cursor: o.onClick ? "pointer" : "default",
|
|
2654
2652
|
whiteSpace: "nowrap"
|
|
2655
2653
|
},
|
|
2656
2654
|
onClick: () => {
|
|
2657
2655
|
var r;
|
|
2658
|
-
|
|
2656
|
+
if (o.onClick) return o.onClick();
|
|
2657
|
+
if (o.href) return window.location.href = (r = o.href) != null ? r : "/#";
|
|
2659
2658
|
},
|
|
2660
2659
|
children: [
|
|
2661
2660
|
o.icon && /* @__PURE__ */ e(
|
|
@@ -2679,7 +2678,6 @@ function uo({
|
|
|
2679
2678
|
fontWeight: 600,
|
|
2680
2679
|
color: "#E0E0E0",
|
|
2681
2680
|
textAlign: "center"
|
|
2682
|
-
// en mobile queda centrado bajo el icono
|
|
2683
2681
|
},
|
|
2684
2682
|
children: o.label
|
|
2685
2683
|
}
|
|
@@ -2813,8 +2811,8 @@ const ve = [
|
|
|
2813
2811
|
try {
|
|
2814
2812
|
let g = h.exists() ? ((w = h.data()) == null ? void 0 : w.sections) || [] : [];
|
|
2815
2813
|
g = g.slice().sort((y, N) => {
|
|
2816
|
-
var R,
|
|
2817
|
-
return ((R = y.order) != null ? R : 0) - ((
|
|
2814
|
+
var R, L;
|
|
2815
|
+
return ((R = y.order) != null ? R : 0) - ((L = N.order) != null ? L : 0);
|
|
2818
2816
|
}).map((y, N) => ({ ...y, order: N + 1 })), l(g), console.log("fetched: ", g);
|
|
2819
2817
|
} catch (g) {
|
|
2820
2818
|
console.error("Error procesando landings/" + n, g);
|
|
@@ -2858,17 +2856,17 @@ const ve = [
|
|
|
2858
2856
|
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
|
|
2859
2857
|
};
|
|
2860
2858
|
}
|
|
2861
|
-
const
|
|
2859
|
+
const L = await fetch(y, {
|
|
2862
2860
|
method: w,
|
|
2863
2861
|
headers: R,
|
|
2864
2862
|
body: N
|
|
2865
2863
|
});
|
|
2866
|
-
if (!
|
|
2867
|
-
return
|
|
2864
|
+
if (!L.ok) throw new _e(L.status, y, L.statusText);
|
|
2865
|
+
return L.json();
|
|
2868
2866
|
}, $ = le(
|
|
2869
2867
|
() => t ? t.slice() : i.slice(),
|
|
2870
2868
|
[t, i]
|
|
2871
|
-
), v =
|
|
2869
|
+
), v = Fe.useRef(/* @__PURE__ */ new Set());
|
|
2872
2870
|
Q(() => {
|
|
2873
2871
|
const d = $.map((h) => ({ s: h, url: (h.apiUrl || "").trim() })).filter(({ url: h }) => !!h);
|
|
2874
2872
|
if (d.length)
|
|
@@ -2946,8 +2944,8 @@ const ve = [
|
|
|
2946
2944
|
const A = (h.variableName || "items").trim() || "items";
|
|
2947
2945
|
return g[A] = h.arr || [], g;
|
|
2948
2946
|
}
|
|
2949
|
-
const y = d, N = Array.isArray(y), R = !N && typeof y == "object" && y !== null ? y : void 0,
|
|
2950
|
-
return g.items = z(
|
|
2947
|
+
const y = d, N = Array.isArray(y), R = !N && typeof y == "object" && y !== null ? y : void 0, L = R && Array.isArray(R.lobby || R.items) ? R.lobby || R.items : void 0, z = (A) => N ? y : L || A;
|
|
2948
|
+
return g.items = z(L || []), g;
|
|
2951
2949
|
}, T = (d) => {
|
|
2952
2950
|
var N;
|
|
2953
2951
|
const h = !!((N = d.apiUrl) != null && N.trim()), w = h ? m[d.id] : void 0;
|
|
@@ -2963,8 +2961,8 @@ const ve = [
|
|
|
2963
2961
|
{ arr: R, variableName: d.variableName },
|
|
2964
2962
|
g
|
|
2965
2963
|
), d.variableName2 && d.manualItems2) {
|
|
2966
|
-
const
|
|
2967
|
-
g[z] =
|
|
2964
|
+
const L = I(d.manualItems2), z = (d.variableName2 || "items2").trim() || "items2";
|
|
2965
|
+
g[z] = L;
|
|
2968
2966
|
}
|
|
2969
2967
|
}
|
|
2970
2968
|
return g;
|
|
@@ -2996,7 +2994,7 @@ const ve = [
|
|
|
2996
2994
|
`Error cargando ${d.apiUrl}: ${R}`
|
|
2997
2995
|
);
|
|
2998
2996
|
}
|
|
2999
|
-
const
|
|
2997
|
+
const L = T(d), A = (/* @__PURE__ */ new Set([
|
|
3000
2998
|
"OraculoSeccionBanners",
|
|
3001
2999
|
"OraculoSeccionBonoBienvenida",
|
|
3002
3000
|
"OraculoSeccionCasinoEnVivo",
|
|
@@ -3010,7 +3008,7 @@ const ve = [
|
|
|
3010
3008
|
paddingRight: Y,
|
|
3011
3009
|
width: "100%",
|
|
3012
3010
|
boxSizing: "border-box"
|
|
3013
|
-
}, children: /* @__PURE__ */ e(w, { ...
|
|
3011
|
+
}, children: /* @__PURE__ */ e(w, { ...L }) }, d.id);
|
|
3014
3012
|
};
|
|
3015
3013
|
return o && !t ? /* @__PURE__ */ e("div", { className: "text-xs text-gray-400", children: "Cargando preview..." }) : !o && !t && i.length === 0 ? /* @__PURE__ */ e("div", { className: "text-xs text-gray-500", children: "Sin secciones (Firestore)" }) : /* @__PURE__ */ e(
|
|
3016
3014
|
Me,
|
|
@@ -3032,7 +3030,7 @@ const ve = [
|
|
|
3032
3030
|
);
|
|
3033
3031
|
};
|
|
3034
3032
|
export {
|
|
3035
|
-
|
|
3033
|
+
F as OraculoButton,
|
|
3036
3034
|
q as OraculoCarousel,
|
|
3037
3035
|
ke as OraculoCarouselDots,
|
|
3038
3036
|
xt as OraculoClubOlimpoVisual,
|