oraculo-ui 0.1.158 → 0.1.160
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
|
@@ -16,8 +16,8 @@ import te from "@mui/material/Stack";
|
|
|
16
16
|
import { useCaptureInteraction as pe } from "@olimpo/capture-client";
|
|
17
17
|
import { ChevronLeftRounded as Ke, ChevronRightRounded as je } from "@mui/icons-material";
|
|
18
18
|
import Ae from "@mui/material/useMediaQuery";
|
|
19
|
-
import
|
|
20
|
-
import
|
|
19
|
+
import Ea from "@mui/icons-material/ChevronLeftRounded";
|
|
20
|
+
import $a from "@mui/icons-material/ChevronRightRounded";
|
|
21
21
|
import { useTheme as mt, createTheme as ft, ThemeProvider as ht } from "@mui/material/styles";
|
|
22
22
|
import gt from "@mui/material/CssBaseline";
|
|
23
23
|
import { onSnapshot as bt, doc as _t } from "firebase/firestore";
|
|
@@ -43,7 +43,7 @@ const ae = ge.forwardRef(function({
|
|
|
43
43
|
var X, Q, T;
|
|
44
44
|
const x = ge.useCallback((z) => {
|
|
45
45
|
typeof y == "function" ? y(z) : y && (y.current = z);
|
|
46
|
-
}, [y]), A = !!t && t !== !0, N = (!!_ ? 1 : 0) + (!!g ? 1 : 0) == 1,
|
|
46
|
+
}, [y]), A = !!t && t !== !0, N = (!!_ ? 1 : 0) + (!!g ? 1 : 0) == 1, $ = h != null ? h : N && !A, I = [
|
|
47
47
|
"orc-btn",
|
|
48
48
|
l !== "legacy" ? `orc-btn--themed orc-btn--${l}` : "",
|
|
49
49
|
i === "secondary" ? "orc-btn--secondary" : i === "tertiary" ? "orc-btn--tertiary" : i === "row" ? "orc-btn--row" : "orc-btn--primary",
|
|
@@ -51,17 +51,17 @@ const ae = ge.forwardRef(function({
|
|
|
51
51
|
c === "mobile" ? "orc-btn--mobile" : "",
|
|
52
52
|
f ? "orc-btn--full" : "",
|
|
53
53
|
u ? "orc-btn--fullHeight" : "",
|
|
54
|
-
|
|
54
|
+
$ ? "orc-btn--iconOnly" : "",
|
|
55
55
|
r ? "orc-btn--loading" : "",
|
|
56
56
|
d
|
|
57
57
|
].filter(Boolean).join(" "), w = /* @__PURE__ */ p(re, { children: [
|
|
58
58
|
_ && /* @__PURE__ */ a("span", { className: "orc-btn__icon", children: _ }),
|
|
59
|
-
|
|
59
|
+
!$ && /* @__PURE__ */ a("span", { className: "orc-btn__label", children: t }),
|
|
60
60
|
g && /* @__PURE__ */ a("span", { className: "orc-btn__icon", children: g })
|
|
61
61
|
] }), C = r || o !== void 0 ? /* @__PURE__ */ p("span", { className: "orc-btn__content", children: [
|
|
62
62
|
/* @__PURE__ */ a("span", { className: "orc-btn__idle", "aria-hidden": r, children: w }),
|
|
63
63
|
/* @__PURE__ */ p("span", { className: "orc-btn__loading orc-btn__label", "aria-hidden": !r, children: [
|
|
64
|
-
|
|
64
|
+
!$ && (o != null ? o : t),
|
|
65
65
|
/* @__PURE__ */ p("span", { className: "orc-btn__dots", "aria-hidden": "true", children: [
|
|
66
66
|
/* @__PURE__ */ a("span", {}),
|
|
67
67
|
/* @__PURE__ */ a("span", {}),
|
|
@@ -305,7 +305,7 @@ const Ma = ({
|
|
|
305
305
|
r
|
|
306
306
|
].filter(Boolean).join(" "), b = s === "progress";
|
|
307
307
|
return /* @__PURE__ */ a("div", { className: m, role: b ? "tablist" : "group", "aria-label": l, children: Array.from({ length: e }).map((_, g) => {
|
|
308
|
-
var N,
|
|
308
|
+
var N, $, I, w;
|
|
309
309
|
const h = g === t, O = (N = c == null ? void 0 : c(g)) != null ? N : {}, {
|
|
310
310
|
className: y,
|
|
311
311
|
style: x,
|
|
@@ -317,7 +317,7 @@ const Ma = ({
|
|
|
317
317
|
{
|
|
318
318
|
...k,
|
|
319
319
|
key: h && b ? `a-${g}-${u}` : `i-${g}`,
|
|
320
|
-
type: (
|
|
320
|
+
type: ($ = k.type) != null ? $ : "button",
|
|
321
321
|
role: b ? "tab" : void 0,
|
|
322
322
|
"aria-selected": b ? h : void 0,
|
|
323
323
|
"aria-pressed": b ? void 0 : h,
|
|
@@ -421,7 +421,7 @@ function ai({
|
|
|
421
421
|
onKeyDown: A,
|
|
422
422
|
disabled: k,
|
|
423
423
|
...S
|
|
424
|
-
} = f[O], N = !!(h.disabled || k),
|
|
424
|
+
} = f[O], N = !!(h.disabled || k), $ = h.id === t;
|
|
425
425
|
return /* @__PURE__ */ Ia(
|
|
426
426
|
"button",
|
|
427
427
|
{
|
|
@@ -433,11 +433,11 @@ function ai({
|
|
|
433
433
|
id: (I = h.buttonId) != null ? I : S.id,
|
|
434
434
|
type: (w = S.type) != null ? w : "button",
|
|
435
435
|
role: "tab",
|
|
436
|
-
"aria-selected":
|
|
436
|
+
"aria-selected": $,
|
|
437
437
|
"aria-controls": (C = h.panelId) != null ? C : S["aria-controls"],
|
|
438
438
|
tabIndex: O === b ? 0 : -1,
|
|
439
439
|
disabled: N,
|
|
440
|
-
className: `orc-tabs__tab${
|
|
440
|
+
className: `orc-tabs__tab${$ ? " orc-tabs__tab--active" : ""}${y ? ` ${y}` : ""}`,
|
|
441
441
|
onClick: (R) => {
|
|
442
442
|
x == null || x(R), !R.defaultPrevented && !N && r(h.id);
|
|
443
443
|
},
|
|
@@ -573,7 +573,7 @@ function Tt({ live: e, time: t, extra: n }) {
|
|
|
573
573
|
] })
|
|
574
574
|
] });
|
|
575
575
|
}
|
|
576
|
-
function
|
|
576
|
+
function Et({ title: e, subtitle: t, live: n = !1, time: r = "", extra: o = "" }) {
|
|
577
577
|
return /* @__PURE__ */ p(
|
|
578
578
|
"div",
|
|
579
579
|
{
|
|
@@ -591,8 +591,8 @@ function $t({ title: e, subtitle: t, live: n = !1, time: r = "", extra: o = "" }
|
|
|
591
591
|
}
|
|
592
592
|
);
|
|
593
593
|
}
|
|
594
|
-
const
|
|
595
|
-
label:
|
|
594
|
+
const $t = "oraculo__OraculoEventLabel-module__label___c64Xw", Mt = {
|
|
595
|
+
label: $t
|
|
596
596
|
};
|
|
597
597
|
function aa({ text: e }) {
|
|
598
598
|
return /* @__PURE__ */ a("span", { className: Mt.label, children: e });
|
|
@@ -623,7 +623,7 @@ function Ba({ text: e, name: t, size: n = "normal" }) {
|
|
|
623
623
|
}
|
|
624
624
|
);
|
|
625
625
|
}
|
|
626
|
-
const qt = "oraculo__OraculoEventTeamInfo-module__team___UfpUs", Dt = "oraculo__OraculoEventTeamInfo-module__regular___ag826", Wt = "oraculo__OraculoEventTeamInfo-module__compact___RCNOs", Vt = "oraculo__OraculoEventTeamInfo-module__logo___fKCl3", Ht = "oraculo__OraculoEventTeamInfo-module__name___4ikm-", Gt = "oraculo__OraculoEventTeamInfo-module__skeleton___Yfaxh",
|
|
626
|
+
const qt = "oraculo__OraculoEventTeamInfo-module__team___UfpUs", Dt = "oraculo__OraculoEventTeamInfo-module__regular___ag826", Wt = "oraculo__OraculoEventTeamInfo-module__compact___RCNOs", Vt = "oraculo__OraculoEventTeamInfo-module__logo___fKCl3", Ht = "oraculo__OraculoEventTeamInfo-module__name___4ikm-", Gt = "oraculo__OraculoEventTeamInfo-module__skeleton___Yfaxh", Ee = {
|
|
627
627
|
team: qt,
|
|
628
628
|
regular: Dt,
|
|
629
629
|
compact: Wt,
|
|
@@ -848,9 +848,9 @@ function en({
|
|
|
848
848
|
] });
|
|
849
849
|
}
|
|
850
850
|
function We({ name: e, jersey: t, size: n = "regular", sport: r = "FOOTBALL", gender: o = "men", flag: l = "" }) {
|
|
851
|
-
return /* @__PURE__ */ p("div", { className: `oli-font ${
|
|
852
|
-
t != null && t.base ? /* @__PURE__ */ a(en, { sport: r, gender: o, colors: t, flag: l, className: `${
|
|
853
|
-
/* @__PURE__ */ a("span", { className:
|
|
851
|
+
return /* @__PURE__ */ p("div", { className: `oli-font ${Ee.team} ${Ee[n]}`, children: [
|
|
852
|
+
t != null && t.base ? /* @__PURE__ */ a(en, { sport: r, gender: o, colors: t, flag: l, className: `${Ee.logo}` }) : /* @__PURE__ */ a(Y, { variant: "circular", className: `${Ee.logo} ${Ee.skeleton}` }),
|
|
853
|
+
/* @__PURE__ */ a("span", { className: Ee.name, children: e })
|
|
854
854
|
] });
|
|
855
855
|
}
|
|
856
856
|
function La(e, t, n) {
|
|
@@ -902,6 +902,46 @@ function ti({ label: e, totalDays: t, completedDays: n, className: r = "" }) {
|
|
|
902
902
|
}
|
|
903
903
|
);
|
|
904
904
|
}
|
|
905
|
+
function ni({
|
|
906
|
+
ariaLabel: e,
|
|
907
|
+
currentStep: t,
|
|
908
|
+
steps: n,
|
|
909
|
+
currentStepLabel: r,
|
|
910
|
+
className: o = ""
|
|
911
|
+
}) {
|
|
912
|
+
if (n.length === 0)
|
|
913
|
+
throw new RangeError("[Oraculo] steps must contain at least one step.");
|
|
914
|
+
if (!Number.isInteger(t) || t < 1 || t > n.length)
|
|
915
|
+
throw new RangeError("[Oraculo] currentStep must be a valid one-based step index.");
|
|
916
|
+
if (n.some((l) => !l.trim()))
|
|
917
|
+
throw new RangeError("[Oraculo] each step must have an accessible label.");
|
|
918
|
+
return /* @__PURE__ */ p(
|
|
919
|
+
"div",
|
|
920
|
+
{
|
|
921
|
+
className: `orc-step-indicator${o ? ` ${o}` : ""}`,
|
|
922
|
+
role: "group",
|
|
923
|
+
"aria-label": e,
|
|
924
|
+
children: [
|
|
925
|
+
/* @__PURE__ */ a("ol", { className: "orc-step-indicator__steps", children: n.map((l, i) => {
|
|
926
|
+
const s = i + 1, c = t === s, f = t >= s;
|
|
927
|
+
return /* @__PURE__ */ p(
|
|
928
|
+
"li",
|
|
929
|
+
{
|
|
930
|
+
"aria-current": c ? "step" : void 0,
|
|
931
|
+
"data-complete": f,
|
|
932
|
+
children: [
|
|
933
|
+
/* @__PURE__ */ a("span", { className: "orc-step-indicator__segment", "aria-hidden": "true" }),
|
|
934
|
+
/* @__PURE__ */ a("span", { className: "orc-step-indicator__visually-hidden", children: l })
|
|
935
|
+
]
|
|
936
|
+
},
|
|
937
|
+
s
|
|
938
|
+
);
|
|
939
|
+
}) }),
|
|
940
|
+
/* @__PURE__ */ a("span", { className: "orc-step-indicator__label", children: r })
|
|
941
|
+
]
|
|
942
|
+
}
|
|
943
|
+
);
|
|
944
|
+
}
|
|
905
945
|
function pa({ value: e, label: t }) {
|
|
906
946
|
return /* @__PURE__ */ p("span", { className: "orc-streak-day__unit", children: [
|
|
907
947
|
/* @__PURE__ */ a("span", { className: "orc-streak-day__digits", children: String(e).padStart(2, "0").split("").map((n, r) => /* @__PURE__ */ a("span", { children: n }, r)) }),
|
|
@@ -943,7 +983,7 @@ function an(e) {
|
|
|
943
983
|
}
|
|
944
984
|
);
|
|
945
985
|
}
|
|
946
|
-
function
|
|
986
|
+
function ri({
|
|
947
987
|
label: e,
|
|
948
988
|
days: t,
|
|
949
989
|
onPrevious: n,
|
|
@@ -1025,7 +1065,7 @@ function tn({
|
|
|
1025
1065
|
}
|
|
1026
1066
|
);
|
|
1027
1067
|
}
|
|
1028
|
-
function
|
|
1068
|
+
function oi(e) {
|
|
1029
1069
|
const { leftName: t, rightName: n, label: r, leftPercent: o, message: l, actionLabel: i, variant: s = "participating", className: c = "" } = e, f = /* @__PURE__ */ p(re, { children: [
|
|
1030
1070
|
/* @__PURE__ */ p("span", { className: "orc-battle-banner__content", children: [
|
|
1031
1071
|
/* @__PURE__ */ p("span", { className: "orc-battle-banner__names", children: [
|
|
@@ -1130,7 +1170,7 @@ const Fa = Me(function({
|
|
|
1130
1170
|
"aria-describedby": O,
|
|
1131
1171
|
...y
|
|
1132
1172
|
}, x) {
|
|
1133
|
-
const A = Ce(), k = u != null ? u : A, S = K(null), [N,
|
|
1173
|
+
const A = Ce(), k = u != null ? u : A, S = K(null), [N, $] = ee(!1), I = d === "password";
|
|
1134
1174
|
return /* @__PURE__ */ a(ra, { label: t, appearance: n, layout: r, hideLabel: o, hint: l, error: i, info: s, disabled: c, className: f, id: k, children: /* @__PURE__ */ p("div", { className: "orc-field__control", children: [
|
|
1135
1175
|
h,
|
|
1136
1176
|
/* @__PURE__ */ a(
|
|
@@ -1159,7 +1199,7 @@ const Fa = Me(function({
|
|
|
1159
1199
|
onMouseDown: (w) => w.preventDefault(),
|
|
1160
1200
|
onClick: () => {
|
|
1161
1201
|
var w;
|
|
1162
|
-
I ?
|
|
1202
|
+
I ? $(!N) : m == null || m(), (w = S.current) == null || w.focus();
|
|
1163
1203
|
},
|
|
1164
1204
|
children: /* @__PURE__ */ a("span", { "aria-hidden": "true", className: `orc-field__icon orc-field__icon--${I ? N ? "eye-visible" : "eye-hidden" : "clear"}` })
|
|
1165
1205
|
}
|
|
@@ -1205,7 +1245,7 @@ const Fa = Me(function({
|
|
|
1205
1245
|
),
|
|
1206
1246
|
/* @__PURE__ */ a("span", { className: "orc-field__icon orc-field__icon--arrow", "aria-hidden": "true" })
|
|
1207
1247
|
] }) });
|
|
1208
|
-
}),
|
|
1248
|
+
}), ii = Me(function({
|
|
1209
1249
|
selector: t,
|
|
1210
1250
|
label: n,
|
|
1211
1251
|
appearance: r,
|
|
@@ -1253,7 +1293,7 @@ const Fa = Me(function({
|
|
|
1253
1293
|
}
|
|
1254
1294
|
)
|
|
1255
1295
|
] }) });
|
|
1256
|
-
}),
|
|
1296
|
+
}), li = Me(function({
|
|
1257
1297
|
countries: t,
|
|
1258
1298
|
country: n,
|
|
1259
1299
|
countryLabel: r,
|
|
@@ -1302,13 +1342,13 @@ function za({
|
|
|
1302
1342
|
}
|
|
1303
1343
|
);
|
|
1304
1344
|
}
|
|
1305
|
-
function
|
|
1345
|
+
function si({ size: e = "md", className: t = "", ...n }) {
|
|
1306
1346
|
return /* @__PURE__ */ a(za, { ...n, type: "checkbox", className: `orc-choice--${e}${t ? ` ${t}` : ""}` });
|
|
1307
1347
|
}
|
|
1308
|
-
function
|
|
1348
|
+
function ci(e) {
|
|
1309
1349
|
return /* @__PURE__ */ a(za, { ...e, type: "radio" });
|
|
1310
1350
|
}
|
|
1311
|
-
function
|
|
1351
|
+
function di({
|
|
1312
1352
|
appearance: e,
|
|
1313
1353
|
children: t,
|
|
1314
1354
|
className: n = "",
|
|
@@ -1327,7 +1367,7 @@ function ci({
|
|
|
1327
1367
|
}
|
|
1328
1368
|
);
|
|
1329
1369
|
}
|
|
1330
|
-
function
|
|
1370
|
+
function ui({ label: e, name: t, value: n, options: r, onChange: o, disabled: l }) {
|
|
1331
1371
|
return /* @__PURE__ */ p("fieldset", { className: "orc-radio-group", disabled: l, children: [
|
|
1332
1372
|
/* @__PURE__ */ a("legend", { children: e }),
|
|
1333
1373
|
/* @__PURE__ */ a("div", { className: "orc-radio-group__options", children: r.map((i) => /* @__PURE__ */ p("label", { className: "orc-radio-group__option", children: [
|
|
@@ -1347,13 +1387,13 @@ function di({ label: e, name: t, value: n, options: r, onChange: o, disabled: l
|
|
|
1347
1387
|
] }, i.value)) })
|
|
1348
1388
|
] });
|
|
1349
1389
|
}
|
|
1350
|
-
function
|
|
1390
|
+
function pi({ children: e, onRemove: t, removeLabel: n = `Eliminar ${e}`, disabled: r }) {
|
|
1351
1391
|
return /* @__PURE__ */ p("span", { className: `orc-form-tag${r ? " orc-form-tag--disabled" : ""}`, children: [
|
|
1352
1392
|
e,
|
|
1353
1393
|
t && /* @__PURE__ */ a("button", { type: "button", onClick: t, disabled: r, "aria-label": n })
|
|
1354
1394
|
] });
|
|
1355
1395
|
}
|
|
1356
|
-
function
|
|
1396
|
+
function mi({ label: e, value: t, onChange: n, onRemove: r, removeLabel: o = `Eliminar ${e}`, disabled: l }) {
|
|
1357
1397
|
const i = Ce();
|
|
1358
1398
|
return /* @__PURE__ */ p("div", { className: "orc-range-field", children: [
|
|
1359
1399
|
/* @__PURE__ */ p("div", { className: "orc-range-field__body", children: [
|
|
@@ -1382,7 +1422,7 @@ function pi({ label: e, value: t, onChange: n, onRemove: r, removeLabel: o = `El
|
|
|
1382
1422
|
r && /* @__PURE__ */ a("button", { type: "button", className: "orc-range-field__remove", disabled: l, onClick: r, "aria-label": o, children: /* @__PURE__ */ a("span", { "aria-hidden": "true" }) })
|
|
1383
1423
|
] });
|
|
1384
1424
|
}
|
|
1385
|
-
function
|
|
1425
|
+
function fi({ title: e, items: t, defaultOpen: n }) {
|
|
1386
1426
|
return /* @__PURE__ */ p("details", { className: "orc-distribution", open: n, children: [
|
|
1387
1427
|
/* @__PURE__ */ p("summary", { children: [
|
|
1388
1428
|
e,
|
|
@@ -1394,10 +1434,10 @@ function mi({ title: e, items: t, defaultOpen: n }) {
|
|
|
1394
1434
|
] }, r.id)) })
|
|
1395
1435
|
] });
|
|
1396
1436
|
}
|
|
1397
|
-
function
|
|
1437
|
+
function hi({ children: e, id: t }) {
|
|
1398
1438
|
return /* @__PURE__ */ a("div", { id: t, className: "orc-form-note", role: "note", children: e });
|
|
1399
1439
|
}
|
|
1400
|
-
function
|
|
1440
|
+
function gi({ children: e, ...t }) {
|
|
1401
1441
|
var n;
|
|
1402
1442
|
return /* @__PURE__ */ p("button", { ...t, type: "button", className: `orc-form-add ${(n = t.className) != null ? n : ""}`, children: [
|
|
1403
1443
|
/* @__PURE__ */ a("span", { "aria-hidden": "true" }),
|
|
@@ -1420,7 +1460,7 @@ async function ln(e, t) {
|
|
|
1420
1460
|
}
|
|
1421
1461
|
}
|
|
1422
1462
|
}
|
|
1423
|
-
function
|
|
1463
|
+
function bi(e) {
|
|
1424
1464
|
var O, y;
|
|
1425
1465
|
const { action: t, appearance: n, inputLabel: r, value: o } = e, l = K(null), i = K(!1), [s, c] = ee(!1), [f, u] = ee(null), d = (f == null ? void 0 : f.value) === o ? f.status : null, m = e.disabled || !o.trim() || s || d === "error", b = t === "copy";
|
|
1426
1466
|
ie(() => {
|
|
@@ -1476,7 +1516,7 @@ const sn = {
|
|
|
1476
1516
|
success: "m5 8 2 2 4-4",
|
|
1477
1517
|
info: "M8 7v4m0-6h.01"
|
|
1478
1518
|
};
|
|
1479
|
-
function
|
|
1519
|
+
function _i({ appearance: e, severity: t, variant: n = "default", children: r }) {
|
|
1480
1520
|
return /* @__PURE__ */ p(
|
|
1481
1521
|
"div",
|
|
1482
1522
|
{
|
|
@@ -1518,7 +1558,7 @@ function Ua({ label: e, description: t, logoSrc: n }) {
|
|
|
1518
1558
|
] })
|
|
1519
1559
|
] });
|
|
1520
1560
|
}
|
|
1521
|
-
function
|
|
1561
|
+
function vi({
|
|
1522
1562
|
label: e,
|
|
1523
1563
|
description: t,
|
|
1524
1564
|
logoSrc: n,
|
|
@@ -1554,7 +1594,7 @@ function cn({ children: e, id: t }) {
|
|
|
1554
1594
|
e
|
|
1555
1595
|
] });
|
|
1556
1596
|
}
|
|
1557
|
-
function
|
|
1597
|
+
function yi({
|
|
1558
1598
|
amountLabel: e = "Monto a depositar",
|
|
1559
1599
|
actionLabel: t = "Ir a depositar",
|
|
1560
1600
|
currencySymbol: n = "S/",
|
|
@@ -1621,7 +1661,7 @@ function vi({
|
|
|
1621
1661
|
)
|
|
1622
1662
|
] });
|
|
1623
1663
|
}
|
|
1624
|
-
function
|
|
1664
|
+
function xi({
|
|
1625
1665
|
open: e,
|
|
1626
1666
|
severity: t,
|
|
1627
1667
|
children: n,
|
|
@@ -1662,7 +1702,7 @@ function yi({
|
|
|
1662
1702
|
);
|
|
1663
1703
|
return /* @__PURE__ */ a(it, { container: c, children: b });
|
|
1664
1704
|
}
|
|
1665
|
-
function
|
|
1705
|
+
function wi({
|
|
1666
1706
|
open: e,
|
|
1667
1707
|
onClose: t,
|
|
1668
1708
|
title: n,
|
|
@@ -1741,7 +1781,7 @@ function xi({
|
|
|
1741
1781
|
}
|
|
1742
1782
|
);
|
|
1743
1783
|
}
|
|
1744
|
-
function
|
|
1784
|
+
function Si({
|
|
1745
1785
|
open: e,
|
|
1746
1786
|
onClose: t,
|
|
1747
1787
|
onExited: n,
|
|
@@ -1809,7 +1849,7 @@ function dn(e, t, {
|
|
|
1809
1849
|
};
|
|
1810
1850
|
}, [n, r, o, e, t]);
|
|
1811
1851
|
}
|
|
1812
|
-
const un = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", pn = "oraculo__OraculoCarousel-module__right___KwpOE", mn = "oraculo__OraculoCarousel-module__left___n3WQu", fn = "oraculo__OraculoCarousel-module__svg___0mGuX",
|
|
1852
|
+
const un = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", pn = "oraculo__OraculoCarousel-module__right___KwpOE", mn = "oraculo__OraculoCarousel-module__left___n3WQu", fn = "oraculo__OraculoCarousel-module__svg___0mGuX", $e = {
|
|
1813
1853
|
gradientOverlay: un,
|
|
1814
1854
|
right: pn,
|
|
1815
1855
|
left: mn,
|
|
@@ -1919,7 +1959,7 @@ const un = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", pn = "ora
|
|
|
1919
1959
|
O.current = "mounted", k(I);
|
|
1920
1960
|
},
|
|
1921
1961
|
[k]
|
|
1922
|
-
),
|
|
1962
|
+
), $ = {
|
|
1923
1963
|
type: "slide",
|
|
1924
1964
|
trimSpace: !1,
|
|
1925
1965
|
drag: !0,
|
|
@@ -1945,7 +1985,7 @@ const un = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", pn = "ora
|
|
|
1945
1985
|
hn,
|
|
1946
1986
|
{
|
|
1947
1987
|
ref: m,
|
|
1948
|
-
options:
|
|
1988
|
+
options: $,
|
|
1949
1989
|
onMove: k,
|
|
1950
1990
|
onMounted: N,
|
|
1951
1991
|
onResize: S,
|
|
@@ -1960,12 +2000,12 @@ const un = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", pn = "ora
|
|
|
1960
2000
|
"div",
|
|
1961
2001
|
{
|
|
1962
2002
|
ref: g,
|
|
1963
|
-
className: `${
|
|
2003
|
+
className: `${$e.gradientOverlay} ${$e.left}`,
|
|
1964
2004
|
style: { "--gradient-opacity": "0" },
|
|
1965
2005
|
children: /* @__PURE__ */ p(
|
|
1966
2006
|
"svg",
|
|
1967
2007
|
{
|
|
1968
|
-
className:
|
|
2008
|
+
className: $e.svg,
|
|
1969
2009
|
viewBox: "0 0 152 184",
|
|
1970
2010
|
preserveAspectRatio: "none",
|
|
1971
2011
|
fill: "none",
|
|
@@ -1985,12 +2025,12 @@ const un = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", pn = "ora
|
|
|
1985
2025
|
"div",
|
|
1986
2026
|
{
|
|
1987
2027
|
ref: h,
|
|
1988
|
-
className: `${
|
|
2028
|
+
className: `${$e.gradientOverlay} ${$e.right}`,
|
|
1989
2029
|
style: { "--gradient-opacity": "1" },
|
|
1990
2030
|
children: /* @__PURE__ */ p(
|
|
1991
2031
|
"svg",
|
|
1992
2032
|
{
|
|
1993
|
-
className:
|
|
2033
|
+
className: $e.svg,
|
|
1994
2034
|
viewBox: "0 0 152 184",
|
|
1995
2035
|
preserveAspectRatio: "none",
|
|
1996
2036
|
fill: "none",
|
|
@@ -2721,10 +2761,10 @@ function Ve(e, t) {
|
|
|
2721
2761
|
function Tn() {
|
|
2722
2762
|
window.location.href = "/deportes#in-play";
|
|
2723
2763
|
}
|
|
2724
|
-
function
|
|
2764
|
+
function En() {
|
|
2725
2765
|
window.location.href = "/deportes#home";
|
|
2726
2766
|
}
|
|
2727
|
-
function
|
|
2767
|
+
function $n() {
|
|
2728
2768
|
window.location.href = "/deportes#specials";
|
|
2729
2769
|
}
|
|
2730
2770
|
async function Da(e) {
|
|
@@ -2761,8 +2801,8 @@ function Mn({ coupon: e }) {
|
|
|
2761
2801
|
var x;
|
|
2762
2802
|
const h = (x = g.betoffers) != null ? x : [], O = g.homeName, y = g.awayName;
|
|
2763
2803
|
h.forEach((A) => {
|
|
2764
|
-
var
|
|
2765
|
-
if (!((
|
|
2804
|
+
var $, I, w, C, R, L, U;
|
|
2805
|
+
if (!(($ = A == null ? void 0 : A.outcomes) != null && $.length)) return;
|
|
2766
2806
|
const k = A.outcomes[0];
|
|
2767
2807
|
if (!k) return;
|
|
2768
2808
|
let S = "";
|
|
@@ -2950,7 +2990,7 @@ function ga({
|
|
|
2950
2990
|
"aria-disabled": N,
|
|
2951
2991
|
tabIndex: N ? -1 : void 0,
|
|
2952
2992
|
className: k,
|
|
2953
|
-
onClick: N ? (
|
|
2993
|
+
onClick: N ? ($) => $.preventDefault() : t,
|
|
2954
2994
|
children: S
|
|
2955
2995
|
}
|
|
2956
2996
|
) : /* @__PURE__ */ a(
|
|
@@ -3066,11 +3106,11 @@ const jn = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", Zn = "
|
|
|
3066
3106
|
return e ? (t = Qn[e]) != null ? t : e : "";
|
|
3067
3107
|
};
|
|
3068
3108
|
function Yn({ event: e, liveData: t, betOffers: n, jersey: r }) {
|
|
3069
|
-
var m, b, _, g, h, O, y, x, A, k, S, N,
|
|
3109
|
+
var m, b, _, g, h, O, y, x, A, k, S, N, $, I, w, C, R, L, U, j, W, H, G, D, X, Q, T, z, v, M;
|
|
3070
3110
|
const o = ((m = e == null ? void 0 : e.sport) == null ? void 0 : m.toUpperCase()) === "TENNIS", l = ((b = e == null ? void 0 : e.sport) == null ? void 0 : b.toUpperCase()) === "BASKETBALL", i = ((_ = e == null ? void 0 : e.sport) == null ? void 0 : _.toUpperCase()) === "FOOTBALL", s = n == null ? void 0 : n.find(
|
|
3071
3111
|
(B) => {
|
|
3072
|
-
var
|
|
3073
|
-
return ((
|
|
3112
|
+
var E;
|
|
3113
|
+
return ((E = B.betOfferType) == null ? void 0 : E.id) === 2;
|
|
3074
3114
|
}
|
|
3075
3115
|
), c = {
|
|
3076
3116
|
englishLabel: "",
|
|
@@ -3092,7 +3132,7 @@ function Yn({ event: e, liveData: t, betOffers: n, jersey: r }) {
|
|
|
3092
3132
|
return /* @__PURE__ */ a("div", { className: `${Ne.cardWrapper} ${o ? Ne.cardWrapperTennis : ""}`, children: /* @__PURE__ */ p(te, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
3093
3133
|
/* @__PURE__ */ p(te, { direction: "column", spacing: o ? 1 : 1.5, useFlexGap: !0, children: [
|
|
3094
3134
|
/* @__PURE__ */ a(
|
|
3095
|
-
|
|
3135
|
+
Et,
|
|
3096
3136
|
{
|
|
3097
3137
|
title: (y = (O = (h = e == null ? void 0 : e.path) == null ? void 0 : h[0]) == null ? void 0 : O.name) != null ? y : "",
|
|
3098
3138
|
subtitle: (x = e == null ? void 0 : e.group) != null ? x : "",
|
|
@@ -3106,7 +3146,7 @@ function Yn({ event: e, liveData: t, betOffers: n, jersey: r }) {
|
|
|
3106
3146
|
{
|
|
3107
3147
|
homeName: e == null ? void 0 : e.homeName,
|
|
3108
3148
|
awayName: e == null ? void 0 : e.awayName,
|
|
3109
|
-
homeSets: (
|
|
3149
|
+
homeSets: ($ = (N = (S = t == null ? void 0 : t.statistics) == null ? void 0 : S.sets) == null ? void 0 : N.home) != null ? $ : [],
|
|
3110
3150
|
awaySets: (C = (w = (I = t == null ? void 0 : t.statistics) == null ? void 0 : I.sets) == null ? void 0 : w.away) != null ? C : [],
|
|
3111
3151
|
homePoints: (L = (R = t == null ? void 0 : t.score) == null ? void 0 : R.home) != null ? L : "0",
|
|
3112
3152
|
awayPoints: (j = (U = t == null ? void 0 : t.score) == null ? void 0 : U.away) != null ? j : "0",
|
|
@@ -3120,11 +3160,11 @@ function Yn({ event: e, liveData: t, betOffers: n, jersey: r }) {
|
|
|
3120
3160
|
] }),
|
|
3121
3161
|
/* @__PURE__ */ a(te, { direction: "column", spacing: 0.5, useFlexGap: !0, children: (() => {
|
|
3122
3162
|
var oe;
|
|
3123
|
-
const B = (oe = s == null ? void 0 : s.outcomes) != null ? oe : u,
|
|
3163
|
+
const B = (oe = s == null ? void 0 : s.outcomes) != null ? oe : u, E = { OT_ONE: 1, OT_CROSS: 2, OT_TWO: 3 }, F = [...B].sort((J, ne) => {
|
|
3124
3164
|
var se, de;
|
|
3125
3165
|
if (J.displayOrder !== void 0 && ne.displayOrder !== void 0)
|
|
3126
3166
|
return J.displayOrder - ne.displayOrder;
|
|
3127
|
-
const ce = J.type && (se =
|
|
3167
|
+
const ce = J.type && (se = E[J.type]) != null ? se : 99, _e = ne.type && (de = E[ne.type]) != null ? de : 99;
|
|
3128
3168
|
return ce - _e;
|
|
3129
3169
|
}), P = (J) => {
|
|
3130
3170
|
var ne, ce, _e, se;
|
|
@@ -3212,7 +3252,7 @@ function lr({ event: e, jersey: t }) {
|
|
|
3212
3252
|
return h = h.replace(/\./g, "").replace(/A\s*M/i, "AM").replace(/P\s*M/i, "PM"), `${b} ${_}/${g} | ${h}`;
|
|
3213
3253
|
}
|
|
3214
3254
|
const l = (d) => {
|
|
3215
|
-
var y, x, A, k, S, N,
|
|
3255
|
+
var y, x, A, k, S, N, $, I;
|
|
3216
3256
|
const m = `/deportes#event/${e.id}`, b = `${e.homeName} vs ${e.awayName}`, _ = d.odds ? (d.odds / 1e3).toFixed(2) : "", g = _ ? `${b} - Cuota: ${_}` : b, h = (y = e == null ? void 0 : e.outcome) == null ? void 0 : y[0], O = new CustomEvent("ORACULO_WEEKLY_OUTCOME_SELECTED", {
|
|
3217
3257
|
cancelable: !0,
|
|
3218
3258
|
detail: {
|
|
@@ -3231,7 +3271,7 @@ function lr({ event: e, jersey: t }) {
|
|
|
3231
3271
|
odds: d.odds,
|
|
3232
3272
|
betOfferId: (k = d.betOfferId) != null ? k : h == null ? void 0 : h.id,
|
|
3233
3273
|
criterionId: (S = h == null ? void 0 : h.criterion) == null ? void 0 : S.id,
|
|
3234
|
-
market: (I = (N = h == null ? void 0 : h.criterion) == null ? void 0 : N.label) != null ? I : (
|
|
3274
|
+
market: (I = (N = h == null ? void 0 : h.criterion) == null ? void 0 : N.label) != null ? I : ($ = h == null ? void 0 : h.betOfferType) == null ? void 0 : $.name,
|
|
3235
3275
|
destination: m
|
|
3236
3276
|
}
|
|
3237
3277
|
});
|
|
@@ -3261,10 +3301,10 @@ function lr({ event: e, jersey: t }) {
|
|
|
3261
3301
|
/* @__PURE__ */ a(te, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: (() => {
|
|
3262
3302
|
var h, O, y;
|
|
3263
3303
|
const d = (y = (O = (h = e == null ? void 0 : e.outcome) == null ? void 0 : h[0]) == null ? void 0 : O.outcomes) != null ? y : [], m = (e == null ? void 0 : e.sport) === "TENNIS", b = { OT_ONE: 1, OT_CROSS: 2, OT_TWO: 3 }, _ = [...d].sort((x, A) => {
|
|
3264
|
-
var N,
|
|
3304
|
+
var N, $;
|
|
3265
3305
|
if (x.displayOrder !== void 0 && A.displayOrder !== void 0)
|
|
3266
3306
|
return x.displayOrder - A.displayOrder;
|
|
3267
|
-
const k = x.type && (N = b[x.type]) != null ? N : 99, S = A.type && (
|
|
3307
|
+
const k = x.type && (N = b[x.type]) != null ? N : 99, S = A.type && ($ = b[A.type]) != null ? $ : 99;
|
|
3268
3308
|
return k - S;
|
|
3269
3309
|
}), g = (x) => {
|
|
3270
3310
|
var A, k, S, N;
|
|
@@ -3362,11 +3402,11 @@ function cr({
|
|
|
3362
3402
|
f({ isStart: !0, isEnd: !1 });
|
|
3363
3403
|
}, [x, y, i]);
|
|
3364
3404
|
const A = (S) => {
|
|
3365
|
-
const N = S.promotion,
|
|
3405
|
+
const N = S.promotion, $ = N ? `https://www.olimpo.bet/promociones/${encodeURIComponent(N)}` : "";
|
|
3366
3406
|
if (u({
|
|
3367
3407
|
element: "destacados_card",
|
|
3368
3408
|
label: `${d} - OraculoSeccionDestacados - Click: ${N || S.title}`,
|
|
3369
|
-
target:
|
|
3409
|
+
target: $ || "custom_item_action",
|
|
3370
3410
|
event_type: "click",
|
|
3371
3411
|
module_id: m,
|
|
3372
3412
|
metadata: {
|
|
@@ -3380,7 +3420,7 @@ function cr({
|
|
|
3380
3420
|
o(S);
|
|
3381
3421
|
return;
|
|
3382
3422
|
}
|
|
3383
|
-
|
|
3423
|
+
$ && typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign($);
|
|
3384
3424
|
};
|
|
3385
3425
|
return /* @__PURE__ */ p("section", { className: O, style: { width: "100%" }, children: [
|
|
3386
3426
|
/* @__PURE__ */ p(
|
|
@@ -3482,8 +3522,8 @@ function cr({
|
|
|
3482
3522
|
`${S.title}-${S.image}`
|
|
3483
3523
|
);
|
|
3484
3524
|
},
|
|
3485
|
-
onMove: ({ isStart: S, isEnd: N, source:
|
|
3486
|
-
f({ isStart: S, isEnd: N }),
|
|
3525
|
+
onMove: ({ isStart: S, isEnd: N, source: $ }) => {
|
|
3526
|
+
f({ isStart: S, isEnd: N }), $ === "user" && u({
|
|
3487
3527
|
element: "destacados_carousel_slide",
|
|
3488
3528
|
label: `${d} - OraculoSeccionDestacados - Slide Carousel`,
|
|
3489
3529
|
target: "carousel",
|
|
@@ -3739,10 +3779,10 @@ const hr = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/popularid
|
|
|
3739
3779
|
e,
|
|
3740
3780
|
g
|
|
3741
3781
|
), y = g ? h : Array.isArray(e) ? e : [], x = g ? O : !Array.isArray(e) || e.length === 0, A = Le(
|
|
3742
|
-
(N,
|
|
3782
|
+
(N, $) => {
|
|
3743
3783
|
if (!d) return;
|
|
3744
3784
|
const I = !!N.favourite;
|
|
3745
|
-
|
|
3785
|
+
$ !== I && d(N, $);
|
|
3746
3786
|
},
|
|
3747
3787
|
[d]
|
|
3748
3788
|
), k = (N) => {
|
|
@@ -3761,7 +3801,7 @@ const hr = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/popularid
|
|
|
3761
3801
|
section: "OraculoSeccionCasinoEnVivo"
|
|
3762
3802
|
}
|
|
3763
3803
|
});
|
|
3764
|
-
const
|
|
3804
|
+
const $ = fe("showIframe"), I = fe("loadMachine");
|
|
3765
3805
|
if (!I) {
|
|
3766
3806
|
if (o) {
|
|
3767
3807
|
o(N);
|
|
@@ -3773,7 +3813,7 @@ const hr = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/popularid
|
|
|
3773
3813
|
);
|
|
3774
3814
|
return;
|
|
3775
3815
|
}
|
|
3776
|
-
Ze(String(N.machine || "")),
|
|
3816
|
+
Ze(String(N.machine || "")), $ == null || $(), typeof window != "undefined" && window.scrollTo({ top: 0, behavior: "smooth" }), requestAnimationFrame(() => {
|
|
3777
3817
|
I == null || I(N, !1, "casino_en_vivo");
|
|
3778
3818
|
});
|
|
3779
3819
|
}, S = () => {
|
|
@@ -3892,7 +3932,7 @@ const hr = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/popularid
|
|
|
3892
3932
|
py: { xs: 3, md: 0 },
|
|
3893
3933
|
alignItems: "center"
|
|
3894
3934
|
},
|
|
3895
|
-
children: x ? Array.from({ length: 3 }).map((N,
|
|
3935
|
+
children: x ? Array.from({ length: 3 }).map((N, $) => /* @__PURE__ */ a(fa, { loading: !0, logo: "" }, `sk-${$}`)) : (y != null ? y : []).slice(0, 3).map((N, $) => {
|
|
3896
3936
|
var I;
|
|
3897
3937
|
return /* @__PURE__ */ a(
|
|
3898
3938
|
fa,
|
|
@@ -3907,7 +3947,7 @@ const hr = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/popularid
|
|
|
3907
3947
|
isFavorite: u ? !!N.favourite : void 0,
|
|
3908
3948
|
onToggleFavorite: u && d ? (w) => A(N, w) : void 0
|
|
3909
3949
|
},
|
|
3910
|
-
Nr(N,
|
|
3950
|
+
Nr(N, $)
|
|
3911
3951
|
);
|
|
3912
3952
|
})
|
|
3913
3953
|
}
|
|
@@ -3940,7 +3980,7 @@ const hr = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/popularid
|
|
|
3940
3980
|
}, Ka = (e, t) => {
|
|
3941
3981
|
var n, r;
|
|
3942
3982
|
return (r = (n = e.orden) != null ? n : e.machine) != null ? r : t;
|
|
3943
|
-
},
|
|
3983
|
+
}, Er = (e, t = !0, n = 1) => {
|
|
3944
3984
|
const r = e.map((i, s) => {
|
|
3945
3985
|
var c;
|
|
3946
3986
|
return {
|
|
@@ -3969,7 +4009,7 @@ const hr = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/popularid
|
|
|
3969
4009
|
}), l = i;
|
|
3970
4010
|
}
|
|
3971
4011
|
return o;
|
|
3972
|
-
},
|
|
4012
|
+
}, $r = ({
|
|
3973
4013
|
items: e,
|
|
3974
4014
|
title: t = "Casino",
|
|
3975
4015
|
iconUrl: n = "/assets/img/home/Casino/diamante.svg",
|
|
@@ -4030,7 +4070,7 @@ const hr = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/popularid
|
|
|
4030
4070
|
imageUrl: ""
|
|
4031
4071
|
})), R = [];
|
|
4032
4072
|
return I && R.push({ id: "mosaic-loading", kind: "mosaic", items: C(5) }), R.push({ id: "grid-loading", kind: "grid", items: C(w) }), R;
|
|
4033
|
-
}, S = _ ? h : !Array.isArray(e) || e.length === 0, N = ta("(max-width:950px)"),
|
|
4073
|
+
}, S = _ ? h : !Array.isArray(e) || e.length === 0, N = ta("(max-width:950px)"), $ = S ? k(l, i) : Er(O, l, i);
|
|
4034
4074
|
return /* @__PURE__ */ a("section", { children: /* @__PURE__ */ p(te, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
4035
4075
|
/* @__PURE__ */ p(
|
|
4036
4076
|
q,
|
|
@@ -4055,7 +4095,7 @@ const hr = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/popularid
|
|
|
4055
4095
|
ariaLabel: "Anterior",
|
|
4056
4096
|
variant: "secondary",
|
|
4057
4097
|
iconOnly: !0,
|
|
4058
|
-
leftIcon: /* @__PURE__ */ a(
|
|
4098
|
+
leftIcon: /* @__PURE__ */ a(Ea, {}),
|
|
4059
4099
|
onClick: y,
|
|
4060
4100
|
disabled: m.isStart
|
|
4061
4101
|
}
|
|
@@ -4066,7 +4106,7 @@ const hr = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/popularid
|
|
|
4066
4106
|
ariaLabel: "Siguiente",
|
|
4067
4107
|
variant: "secondary",
|
|
4068
4108
|
iconOnly: !0,
|
|
4069
|
-
rightIcon: /* @__PURE__ */ a(
|
|
4109
|
+
rightIcon: /* @__PURE__ */ a($a, {}),
|
|
4070
4110
|
onClick: x,
|
|
4071
4111
|
disabled: m.isEnd
|
|
4072
4112
|
}
|
|
@@ -4080,7 +4120,7 @@ const hr = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/popularid
|
|
|
4080
4120
|
ke,
|
|
4081
4121
|
{
|
|
4082
4122
|
ref: d,
|
|
4083
|
-
items:
|
|
4123
|
+
items: $,
|
|
4084
4124
|
perPage: void 0,
|
|
4085
4125
|
gap: "16px",
|
|
4086
4126
|
enableHorizontalWheel: !0,
|
|
@@ -4210,7 +4250,7 @@ const hr = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/popularid
|
|
|
4210
4250
|
e,
|
|
4211
4251
|
_
|
|
4212
4252
|
), O = _ ? g : Array.isArray(e) ? e : [], y = () => {
|
|
4213
|
-
var
|
|
4253
|
+
var $;
|
|
4214
4254
|
d({
|
|
4215
4255
|
element: "virtuales_prev",
|
|
4216
4256
|
label: `${m} - OraculoSeccionVirtuales${_ ? " - personalize" : ""} - Anterior`,
|
|
@@ -4221,9 +4261,9 @@ const hr = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/popularid
|
|
|
4221
4261
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
4222
4262
|
},
|
|
4223
4263
|
tags: { section: "OraculoSeccionVirtuales" }
|
|
4224
|
-
}), (
|
|
4264
|
+
}), ($ = c.current) == null || $.prev();
|
|
4225
4265
|
}, x = () => {
|
|
4226
|
-
var
|
|
4266
|
+
var $;
|
|
4227
4267
|
d({
|
|
4228
4268
|
element: "virtuales_next",
|
|
4229
4269
|
label: `${m} - OraculoSeccionVirtuales${_ ? " - personalize" : ""} - Siguiente`,
|
|
@@ -4234,7 +4274,7 @@ const hr = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/popularid
|
|
|
4234
4274
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
4235
4275
|
},
|
|
4236
4276
|
tags: { section: "OraculoSeccionVirtuales" }
|
|
4237
|
-
}), (
|
|
4277
|
+
}), ($ = c.current) == null || $.next();
|
|
4238
4278
|
}, A = () => {
|
|
4239
4279
|
if (d({
|
|
4240
4280
|
element: "virtuales_view_more",
|
|
@@ -4276,7 +4316,7 @@ const hr = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/popularid
|
|
|
4276
4316
|
ariaLabel: "Anterior",
|
|
4277
4317
|
variant: "secondary",
|
|
4278
4318
|
iconOnly: !0,
|
|
4279
|
-
leftIcon: /* @__PURE__ */ a(
|
|
4319
|
+
leftIcon: /* @__PURE__ */ a(Ea, {}),
|
|
4280
4320
|
onClick: y,
|
|
4281
4321
|
disabled: f.isStart
|
|
4282
4322
|
}
|
|
@@ -4287,7 +4327,7 @@ const hr = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/popularid
|
|
|
4287
4327
|
ariaLabel: "Siguiente",
|
|
4288
4328
|
variant: "secondary",
|
|
4289
4329
|
iconOnly: !0,
|
|
4290
|
-
rightIcon: /* @__PURE__ */ a(
|
|
4330
|
+
rightIcon: /* @__PURE__ */ a($a, {}),
|
|
4291
4331
|
onClick: x,
|
|
4292
4332
|
disabled: f.isEnd
|
|
4293
4333
|
}
|
|
@@ -4324,11 +4364,11 @@ const hr = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/popularid
|
|
|
4324
4364
|
enableHorizontalWheel: !0,
|
|
4325
4365
|
showRightGradient: !S,
|
|
4326
4366
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
4327
|
-
renderItem: (
|
|
4367
|
+
renderItem: ($) => /* @__PURE__ */ a("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ a(
|
|
4328
4368
|
qa,
|
|
4329
4369
|
{
|
|
4330
|
-
items:
|
|
4331
|
-
layout:
|
|
4370
|
+
items: $.items,
|
|
4371
|
+
layout: $.kind === "mosaic" ? "mosaic" : "grid",
|
|
4332
4372
|
loading: k,
|
|
4333
4373
|
onClick: (I) => {
|
|
4334
4374
|
if (k) return;
|
|
@@ -4367,7 +4407,7 @@ const hr = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/popularid
|
|
|
4367
4407
|
}
|
|
4368
4408
|
}
|
|
4369
4409
|
) }),
|
|
4370
|
-
onMove: ({ isStart:
|
|
4410
|
+
onMove: ({ isStart: $, isEnd: I }) => u({ isStart: $, isEnd: I })
|
|
4371
4411
|
}
|
|
4372
4412
|
)
|
|
4373
4413
|
] }) });
|
|
@@ -4443,7 +4483,7 @@ const hr = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/popularid
|
|
|
4443
4483
|
button_text: w.buttonText || "no_text"
|
|
4444
4484
|
}
|
|
4445
4485
|
}), w.onButtonClick && w.onButtonClick();
|
|
4446
|
-
},
|
|
4486
|
+
}, $ = (w) => {
|
|
4447
4487
|
if (!u.current) return;
|
|
4448
4488
|
if (d.current) {
|
|
4449
4489
|
d.current = !1;
|
|
@@ -4567,7 +4607,7 @@ const hr = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/popularid
|
|
|
4567
4607
|
},
|
|
4568
4608
|
renderItem: (w, C) => /* @__PURE__ */ a(q, { sx: { width: "100%" }, children: I(w, !i, C) }),
|
|
4569
4609
|
onMove: ({ index: w, isStart: C, isEnd: R, source: L }) => {
|
|
4570
|
-
b(w), typeof C == "boolean" && typeof R == "boolean" && g({ isStart: C, isEnd: R }), L === "user" &&
|
|
4610
|
+
b(w), typeof C == "boolean" && typeof R == "boolean" && g({ isStart: C, isEnd: R }), L === "user" && $(w);
|
|
4571
4611
|
}
|
|
4572
4612
|
}
|
|
4573
4613
|
) }),
|
|
@@ -4770,7 +4810,7 @@ function Hr({
|
|
|
4770
4810
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
4771
4811
|
},
|
|
4772
4812
|
tags: { section: "OraculoSeccionEventoCombinadas" }
|
|
4773
|
-
}),
|
|
4813
|
+
}), $n();
|
|
4774
4814
|
}, O = ue(() => d.filter((k) => {
|
|
4775
4815
|
var S;
|
|
4776
4816
|
return k.combinadoTotal !== null && ((S = k.events) == null ? void 0 : S.length) > 0;
|
|
@@ -4781,14 +4821,14 @@ function Hr({
|
|
|
4781
4821
|
const S = await fetch(b);
|
|
4782
4822
|
if (!S.ok)
|
|
4783
4823
|
throw new Error(`Kambi prepackcoupon groups: HTTP ${S.status}`);
|
|
4784
|
-
const N = await S.json(),
|
|
4785
|
-
if (!Array.isArray(
|
|
4824
|
+
const N = await S.json(), $ = (k = N == null ? void 0 : N.group) == null ? void 0 : k.groups;
|
|
4825
|
+
if (!Array.isArray($))
|
|
4786
4826
|
throw new Error("Kambi prepackcoupon groups: missing group.groups array");
|
|
4787
|
-
if (
|
|
4827
|
+
if ($.length === 0) {
|
|
4788
4828
|
m([]);
|
|
4789
4829
|
return;
|
|
4790
4830
|
}
|
|
4791
|
-
const I =
|
|
4831
|
+
const I = $.map((L) => L == null ? void 0 : L.id).filter((L) => typeof L == "number" && Number.isSafeInteger(L) && L > 0);
|
|
4792
4832
|
if (I.length === 0)
|
|
4793
4833
|
throw new Error("Kambi prepackcoupon groups: no valid group IDs");
|
|
4794
4834
|
const w = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${I.join(",")}.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764283566783&prePackCouponTags=CUSTOM`, C = await fetch(w);
|
|
@@ -4927,17 +4967,17 @@ function Za({
|
|
|
4927
4967
|
try {
|
|
4928
4968
|
const S = await n(y);
|
|
4929
4969
|
if (x !== c.current) {
|
|
4930
|
-
y.forEach((
|
|
4970
|
+
y.forEach(($) => s.current.delete($));
|
|
4931
4971
|
return;
|
|
4932
4972
|
}
|
|
4933
4973
|
if (!(S != null && S.events)) {
|
|
4934
4974
|
y.forEach(
|
|
4935
|
-
(
|
|
4975
|
+
($) => s.current.delete($)
|
|
4936
4976
|
);
|
|
4937
4977
|
return;
|
|
4938
4978
|
}
|
|
4939
|
-
i((
|
|
4940
|
-
const I = {
|
|
4979
|
+
i(($) => {
|
|
4980
|
+
const I = { ...$ };
|
|
4941
4981
|
for (const [w, C] of Object.entries(S.events)) {
|
|
4942
4982
|
const R = Number(w);
|
|
4943
4983
|
I[R] || (I[R] = C);
|
|
@@ -4947,8 +4987,8 @@ function Za({
|
|
|
4947
4987
|
const N = new Set(
|
|
4948
4988
|
Object.keys(S.events).map(Number)
|
|
4949
4989
|
);
|
|
4950
|
-
y.forEach((
|
|
4951
|
-
s.current.delete(
|
|
4990
|
+
y.forEach(($) => {
|
|
4991
|
+
s.current.delete($);
|
|
4952
4992
|
});
|
|
4953
4993
|
} catch (S) {
|
|
4954
4994
|
y.forEach(
|
|
@@ -5059,8 +5099,8 @@ function Yr({
|
|
|
5059
5099
|
basketball: 0,
|
|
5060
5100
|
tennis: 0
|
|
5061
5101
|
}, H = j.sort((G, D) => {
|
|
5062
|
-
var B,
|
|
5063
|
-
const X = (B = W[G._sportGroup]) != null ? B : 1 / 0, Q = (
|
|
5102
|
+
var B, E;
|
|
5103
|
+
const X = (B = W[G._sportGroup]) != null ? B : 1 / 0, Q = (E = W[D._sportGroup]) != null ? E : 1 / 0;
|
|
5064
5104
|
if (X !== Q)
|
|
5065
5105
|
return X - Q;
|
|
5066
5106
|
const T = x.current.get(String(G.event.id)), z = x.current.get(String(D.event.id));
|
|
@@ -5076,7 +5116,7 @@ function Yr({
|
|
|
5076
5116
|
const L = setInterval(N, 2e4);
|
|
5077
5117
|
return () => clearInterval(L);
|
|
5078
5118
|
}, [N]);
|
|
5079
|
-
const { jerseys:
|
|
5119
|
+
const { jerseys: $ } = Za({
|
|
5080
5120
|
events: (f == null ? void 0 : f.map((L) => L.event)) || [],
|
|
5081
5121
|
// extract actual event objects
|
|
5082
5122
|
visibleRange: d,
|
|
@@ -5139,7 +5179,7 @@ function Yr({
|
|
|
5139
5179
|
},
|
|
5140
5180
|
renderItem: (L) => {
|
|
5141
5181
|
var W;
|
|
5142
|
-
const U = ((W = L.event) == null ? void 0 : W.id) || L.eventId, j = U in
|
|
5182
|
+
const U = ((W = L.event) == null ? void 0 : W.id) || L.eventId, j = U in $ ? $[U] : void 0;
|
|
5143
5183
|
return w ? /* @__PURE__ */ a(Ge, { children: /* @__PURE__ */ a(Gr, {}) }) : /* @__PURE__ */ a(Ge, { children: /* @__PURE__ */ a(
|
|
5144
5184
|
Qr,
|
|
5145
5185
|
{
|
|
@@ -5248,7 +5288,7 @@ function uo({
|
|
|
5248
5288
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
5249
5289
|
},
|
|
5250
5290
|
tags: { section: "OraculoSeccionEventoSemana" }
|
|
5251
|
-
}),
|
|
5291
|
+
}), En();
|
|
5252
5292
|
};
|
|
5253
5293
|
async function x(w) {
|
|
5254
5294
|
var L, U, j;
|
|
@@ -5275,9 +5315,9 @@ function uo({
|
|
|
5275
5315
|
const D = C.length > 0 ? new Map(C.map((Q, T) => [String(Q), T])) : null, X = [];
|
|
5276
5316
|
for (const Q of c) {
|
|
5277
5317
|
const T = G.find(
|
|
5278
|
-
(
|
|
5318
|
+
(E) => {
|
|
5279
5319
|
var F;
|
|
5280
|
-
return ((F =
|
|
5320
|
+
return ((F = E.englishName) == null ? void 0 : F.toLowerCase()) === Q.englishName.toLowerCase();
|
|
5281
5321
|
}
|
|
5282
5322
|
);
|
|
5283
5323
|
if (!T || !Array.isArray(T.groups)) {
|
|
@@ -5285,17 +5325,17 @@ function uo({
|
|
|
5285
5325
|
continue;
|
|
5286
5326
|
}
|
|
5287
5327
|
let z = [...T.groups];
|
|
5288
|
-
D && z.sort((
|
|
5289
|
-
const P = D.get(String(
|
|
5328
|
+
D && z.sort((E, F) => {
|
|
5329
|
+
const P = D.get(String(E.id)), V = D.get(String(F.id));
|
|
5290
5330
|
return (P !== void 0 ? P : 1 / 0) - (V !== void 0 ? V : 1 / 0);
|
|
5291
5331
|
});
|
|
5292
|
-
const v = z.slice(0, Q.limit), M = (
|
|
5332
|
+
const v = z.slice(0, Q.limit), M = (E) => {
|
|
5293
5333
|
const F = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/${Q.termPath}`;
|
|
5294
|
-
if (
|
|
5295
|
-
const P =
|
|
5296
|
-
return `${F}/${
|
|
5334
|
+
if (E.groups && E.groups.length > 0) {
|
|
5335
|
+
const P = E.groups[0];
|
|
5336
|
+
return `${F}/${E.termKey}/${P.termKey}/all/matches.json?${O}`;
|
|
5297
5337
|
}
|
|
5298
|
-
return `${F}/${
|
|
5338
|
+
return `${F}/${E.termKey}/all/all/matches.json?${O}`;
|
|
5299
5339
|
}, B = v.map(M);
|
|
5300
5340
|
X.push(...B);
|
|
5301
5341
|
}
|
|
@@ -5350,8 +5390,8 @@ function uo({
|
|
|
5350
5390
|
fetchJerseys: Da,
|
|
5351
5391
|
buffer: 2,
|
|
5352
5392
|
debounceMs: 250
|
|
5353
|
-
}),
|
|
5354
|
-
return
|
|
5393
|
+
}), $ = b === null, I = Ae("(max-width:950px)");
|
|
5394
|
+
return !$ && b.length === 0 ? null : /* @__PURE__ */ a("section", { className: k, style: S, children: /* @__PURE__ */ p("div", { className: `${Fe.wrapper} ${Fe.padding}`, children: [
|
|
5355
5395
|
/* @__PURE__ */ a("div", { className: Fe.container, children: /* @__PURE__ */ p(te, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
5356
5396
|
/* @__PURE__ */ a(Oe, { title: "Eventos de la semana" }),
|
|
5357
5397
|
/* @__PURE__ */ a("div", { className: Fe.buttonWrapper, children: /* @__PURE__ */ a(
|
|
@@ -5371,7 +5411,7 @@ function uo({
|
|
|
5371
5411
|
ke,
|
|
5372
5412
|
{
|
|
5373
5413
|
ref: u,
|
|
5374
|
-
items:
|
|
5414
|
+
items: $ ? Array(6).fill({}) : b.slice(0, 20),
|
|
5375
5415
|
perPage: 3.5,
|
|
5376
5416
|
gap: "16px",
|
|
5377
5417
|
enableHorizontalWheel: !0,
|
|
@@ -5387,7 +5427,7 @@ function uo({
|
|
|
5387
5427
|
},
|
|
5388
5428
|
renderItem: (w) => {
|
|
5389
5429
|
const C = w.id, R = C in N ? N[C] : void 0;
|
|
5390
|
-
return
|
|
5430
|
+
return $ ? /* @__PURE__ */ a(Ge, { children: /* @__PURE__ */ a(eo, {}) }) : /* @__PURE__ */ a(Ge, { children: /* @__PURE__ */ a(oo, { event: w, jersey: R }) });
|
|
5391
5431
|
},
|
|
5392
5432
|
onMove: ({ isStart: w, isEnd: C, visibleStart: R, visibleEnd: L, source: U }) => {
|
|
5393
5433
|
m({ isStart: w, isEnd: C }), h({
|
|
@@ -5445,8 +5485,8 @@ function ho({
|
|
|
5445
5485
|
}) {
|
|
5446
5486
|
var Q;
|
|
5447
5487
|
const [o, l] = ee(0), i = pe(), s = me(), c = be(), f = K(null), u = K(!1), d = K(!1), [m, b] = ee(() => Date.now()), _ = fe("setDepositActionGlobal"), g = fe("setAbrirLiveActionGlobal"), h = fe("openLoginWithRedirect"), O = (T) => [...T != null ? T : []].map((z, v) => ({ item: z, index: v })).sort((z, v) => {
|
|
5448
|
-
var
|
|
5449
|
-
const M = (
|
|
5488
|
+
var E, F;
|
|
5489
|
+
const M = (E = z.item.order) != null ? E : Number.MAX_SAFE_INTEGER, B = (F = v.item.order) != null ? F : Number.MAX_SAFE_INTEGER;
|
|
5450
5490
|
return M - B || z.index - v.index;
|
|
5451
5491
|
}).map(({ item: z }) => z), y = ue(() => O(t), [t]), x = ue(() => {
|
|
5452
5492
|
const T = (e != null ? e : []).filter(
|
|
@@ -5455,7 +5495,7 @@ function ho({
|
|
|
5455
5495
|
return O(T);
|
|
5456
5496
|
}, [e, m]), A = x.length || 1, k = !x || x.length === 0, S = !k && x.length > 1, N = !n && y.length > 0;
|
|
5457
5497
|
ta("(max-width:950px)");
|
|
5458
|
-
const
|
|
5498
|
+
const $ = "#B5B5B5";
|
|
5459
5499
|
ie(() => {
|
|
5460
5500
|
const T = window.setInterval(() => {
|
|
5461
5501
|
b(Date.now());
|
|
@@ -5470,18 +5510,18 @@ function ho({
|
|
|
5470
5510
|
width: 48,
|
|
5471
5511
|
height: 40,
|
|
5472
5512
|
borderRadius: "12px",
|
|
5473
|
-
border: `1.5px solid ${
|
|
5513
|
+
border: `1.5px solid ${$}`,
|
|
5474
5514
|
py: 1,
|
|
5475
5515
|
px: 1.5,
|
|
5476
|
-
color:
|
|
5516
|
+
color: $,
|
|
5477
5517
|
backgroundColor: "transparent",
|
|
5478
5518
|
"&:hover": {
|
|
5479
5519
|
backgroundColor: "rgba(181,181,181,0.08)"
|
|
5480
5520
|
},
|
|
5481
5521
|
"&.Mui-disabled": {
|
|
5482
5522
|
opacity: 0.35,
|
|
5483
|
-
borderColor:
|
|
5484
|
-
color:
|
|
5523
|
+
borderColor: $,
|
|
5524
|
+
color: $,
|
|
5485
5525
|
backgroundColor: "transparent",
|
|
5486
5526
|
cursor: "default"
|
|
5487
5527
|
}
|
|
@@ -5520,10 +5560,10 @@ function ho({
|
|
|
5520
5560
|
T.preventDefault(), T.stopPropagation();
|
|
5521
5561
|
return;
|
|
5522
5562
|
}
|
|
5523
|
-
const
|
|
5563
|
+
const E = ((P = (F = z.href) == null ? void 0 : F.split("/").pop()) == null ? void 0 : P.split(".")[0]) || z.label || z.id || `banner_${v + 1}`;
|
|
5524
5564
|
i({
|
|
5525
5565
|
element: "banner_carousel",
|
|
5526
|
-
label: `${s} - OraculoSeccionBanners - Banner click: ${
|
|
5566
|
+
label: `${s} - OraculoSeccionBanners - Banner click: ${E}`,
|
|
5527
5567
|
target: z.href || "no_url",
|
|
5528
5568
|
event_type: "click",
|
|
5529
5569
|
module_id: c,
|
|
@@ -5578,10 +5618,10 @@ function ho({
|
|
|
5578
5618
|
var z;
|
|
5579
5619
|
T.preventDefault(), T.stopPropagation(), W(), (z = f.current) == null || z.next();
|
|
5580
5620
|
}, X = (T) => {
|
|
5581
|
-
var M, B,
|
|
5621
|
+
var M, B, E, F;
|
|
5582
5622
|
const z = (T % A + A) % A;
|
|
5583
5623
|
if (!u.current) return;
|
|
5584
|
-
const v = (M = x == null ? void 0 : x[z]) != null && M.href ? ((
|
|
5624
|
+
const v = (M = x == null ? void 0 : x[z]) != null && M.href ? ((E = (B = x[z].href) == null ? void 0 : B.split("/").pop()) == null ? void 0 : E.split(".")[0]) || `banner_${z + 1}` : `banner_${z + 1}`;
|
|
5585
5625
|
i({
|
|
5586
5626
|
element: "banner_carousel",
|
|
5587
5627
|
label: `${s} - OraculoSeccionBanners - Banner view: Slide ${z + 1} - ${v}`,
|
|
@@ -5648,7 +5688,7 @@ function ho({
|
|
|
5648
5688
|
},
|
|
5649
5689
|
renderItem: (T, z) => {
|
|
5650
5690
|
var F, P, V;
|
|
5651
|
-
const v = !!T.idFunction, M = !!T.href, B = M && !v,
|
|
5691
|
+
const v = !!T.idFunction, M = !!T.href, B = M && !v, E = v || M;
|
|
5652
5692
|
return /* @__PURE__ */ p(
|
|
5653
5693
|
le,
|
|
5654
5694
|
{
|
|
@@ -5663,7 +5703,7 @@ function ho({
|
|
|
5663
5703
|
height: "100%",
|
|
5664
5704
|
display: "block",
|
|
5665
5705
|
textDecoration: "none",
|
|
5666
|
-
cursor:
|
|
5706
|
+
cursor: E ? "pointer" : "default"
|
|
5667
5707
|
},
|
|
5668
5708
|
children: [
|
|
5669
5709
|
/* @__PURE__ */ p(le, { component: "picture", sx: { position: "absolute", inset: 0, lineHeight: 0 }, children: [
|
|
@@ -5995,7 +6035,7 @@ function Ja({
|
|
|
5995
6035
|
e
|
|
5996
6036
|
] });
|
|
5997
6037
|
}
|
|
5998
|
-
function
|
|
6038
|
+
function Oi({
|
|
5999
6039
|
docId: e = "Landing: home",
|
|
6000
6040
|
moduleId: t = 301,
|
|
6001
6041
|
children: n
|
|
@@ -6006,7 +6046,7 @@ const _o = {
|
|
|
6006
6046
|
OraculoSeccionDestacados: cr,
|
|
6007
6047
|
OraculoSeccionTopJuegos: fr,
|
|
6008
6048
|
OraculoSeccionCasinoEnVivo: Cr,
|
|
6009
|
-
OraculoSeccionCasino:
|
|
6049
|
+
OraculoSeccionCasino: $r,
|
|
6010
6050
|
OraculoSeccionVirtuales: Lr,
|
|
6011
6051
|
OraculoSeccionClubOlimpo: Fr,
|
|
6012
6052
|
OraculoSeccionBonoBienvenida: Pr,
|
|
@@ -7455,7 +7495,7 @@ const Na = [
|
|
|
7455
7495
|
"OraculoSeccionCasinoEnVivo",
|
|
7456
7496
|
"OraculoSeccionTopJuegos",
|
|
7457
7497
|
"OraculoSeccionDestacados"
|
|
7458
|
-
],
|
|
7498
|
+
], ki = ({
|
|
7459
7499
|
sectionsOverride: e,
|
|
7460
7500
|
docId: t = "Landing: home",
|
|
7461
7501
|
moduleId: n = 301,
|
|
@@ -7474,7 +7514,7 @@ const Na = [
|
|
|
7474
7514
|
), S = (v) => Array.isArray(v) ? v.map((M) => Number(M)).filter((M) => !Number.isNaN(M)) : [], N = ue(() => {
|
|
7475
7515
|
const v = s.user;
|
|
7476
7516
|
return v != null && v.session ? String(v.session) : "";
|
|
7477
|
-
}, [s]),
|
|
7517
|
+
}, [s]), $ = ue(() => {
|
|
7478
7518
|
const v = s.user;
|
|
7479
7519
|
return S(v == null ? void 0 : v.groups);
|
|
7480
7520
|
}, [s]), I = (v) => {
|
|
@@ -7484,18 +7524,18 @@ const Na = [
|
|
|
7484
7524
|
(P) => String((P == null ? void 0 : P.name) || "").trim().toLowerCase() === "groups"
|
|
7485
7525
|
);
|
|
7486
7526
|
if (!B) return [];
|
|
7487
|
-
const
|
|
7488
|
-
if (
|
|
7489
|
-
if (Array.isArray(
|
|
7490
|
-
return
|
|
7491
|
-
const F = String(
|
|
7527
|
+
const E = B.value;
|
|
7528
|
+
if (E == null) return [];
|
|
7529
|
+
if (Array.isArray(E))
|
|
7530
|
+
return E.map((P) => Number(String(P).trim())).filter((P) => !Number.isNaN(P));
|
|
7531
|
+
const F = String(E).trim();
|
|
7492
7532
|
return F ? F.split(",").map((P) => Number(P.trim())).filter((P) => !Number.isNaN(P)) : [];
|
|
7493
7533
|
}, w = (v, M) => {
|
|
7494
7534
|
const B = I(v);
|
|
7495
7535
|
if (B.length === 0) return !0;
|
|
7496
7536
|
if (!Array.isArray(M) || M.length === 0) return !1;
|
|
7497
|
-
const
|
|
7498
|
-
return B.some((F) =>
|
|
7537
|
+
const E = new Set(M);
|
|
7538
|
+
return B.some((F) => E.has(F));
|
|
7499
7539
|
};
|
|
7500
7540
|
ie(() => {
|
|
7501
7541
|
if (e) return;
|
|
@@ -7503,8 +7543,8 @@ const Na = [
|
|
|
7503
7543
|
console.warn("[landing] sin db -> fallback json"), u(Be(ze));
|
|
7504
7544
|
return;
|
|
7505
7545
|
}
|
|
7506
|
-
const v = (B,
|
|
7507
|
-
console.warn("[landing] FALLBACK:", B,
|
|
7546
|
+
const v = (B, E) => {
|
|
7547
|
+
console.warn("[landing] FALLBACK:", B, E != null ? E : ""), u(Be(ze)), m(!1);
|
|
7508
7548
|
};
|
|
7509
7549
|
m(!0);
|
|
7510
7550
|
const M = bt(
|
|
@@ -7515,14 +7555,14 @@ const Na = [
|
|
|
7515
7555
|
v(`doc landings/${t} no existe`);
|
|
7516
7556
|
return;
|
|
7517
7557
|
}
|
|
7518
|
-
const
|
|
7558
|
+
const E = B.data(), F = Be(E);
|
|
7519
7559
|
if (!F.length) {
|
|
7520
|
-
v("JSON inválido o sin secciones normalizables",
|
|
7560
|
+
v("JSON inválido o sin secciones normalizables", E);
|
|
7521
7561
|
return;
|
|
7522
7562
|
}
|
|
7523
|
-
console.log("[landing] Firestore OK (json grande):",
|
|
7524
|
-
} catch (
|
|
7525
|
-
v("error procesando snapshot",
|
|
7563
|
+
console.log("[landing] Firestore OK (json grande):", E), u(F);
|
|
7564
|
+
} catch (E) {
|
|
7565
|
+
v("error procesando snapshot", E);
|
|
7526
7566
|
} finally {
|
|
7527
7567
|
m(!1);
|
|
7528
7568
|
}
|
|
@@ -7545,12 +7585,12 @@ const Na = [
|
|
|
7545
7585
|
};
|
|
7546
7586
|
const B = (v.apiUrl || "").trim();
|
|
7547
7587
|
if (!B) return;
|
|
7548
|
-
const
|
|
7588
|
+
const E = v.apiMethod || "GET", F = !!M && C(B), P = F ? [
|
|
7549
7589
|
...(v.apiParams || []).filter((se) => se.key !== "session"),
|
|
7550
7590
|
{ id: "session", key: "session", value: M }
|
|
7551
7591
|
] : v.apiParams || [];
|
|
7552
7592
|
let V = B, oe, J;
|
|
7553
|
-
if (
|
|
7593
|
+
if (E === "GET") {
|
|
7554
7594
|
const se = new URL(
|
|
7555
7595
|
B,
|
|
7556
7596
|
typeof window == "undefined" ? "http://localhost" : window.location.origin
|
|
@@ -7567,7 +7607,7 @@ const Na = [
|
|
|
7567
7607
|
};
|
|
7568
7608
|
}
|
|
7569
7609
|
const ne = await fetch(V, {
|
|
7570
|
-
method:
|
|
7610
|
+
method: E,
|
|
7571
7611
|
headers: J,
|
|
7572
7612
|
body: oe
|
|
7573
7613
|
});
|
|
@@ -7584,10 +7624,10 @@ const Na = [
|
|
|
7584
7624
|
const v = L.map((M) => ({ s: M, url: (M.apiUrl || "").trim() })).filter(({ url: M }) => !!M);
|
|
7585
7625
|
if (v.length)
|
|
7586
7626
|
for (const { s: M, url: B } of v) {
|
|
7587
|
-
const
|
|
7627
|
+
const E = C(B) ? N : "", F = `${M.id}|${B}|${E}`;
|
|
7588
7628
|
U.current.has(F) || (U.current.add(F), h((P) => ({ ...P, [M.id]: !0 })), y((P) => ({ ...P, [M.id]: "" })), (async () => {
|
|
7589
7629
|
try {
|
|
7590
|
-
const P = await R(M,
|
|
7630
|
+
const P = await R(M, E);
|
|
7591
7631
|
_((V) => ({ ...V, [M.id]: P }));
|
|
7592
7632
|
} catch (P) {
|
|
7593
7633
|
let V = "Error desconocido";
|
|
@@ -7599,31 +7639,31 @@ const Na = [
|
|
|
7599
7639
|
}
|
|
7600
7640
|
}, [L, N]);
|
|
7601
7641
|
const j = ue(
|
|
7602
|
-
() => L.filter((v) => v.visible).filter((v) => w(v,
|
|
7603
|
-
[L,
|
|
7642
|
+
() => L.filter((v) => v.visible).filter((v) => w(v, $)).sort((v, M) => v.order - M.order),
|
|
7643
|
+
[L, $]
|
|
7604
7644
|
), W = (v) => Array.isArray(v) ? v.map((M) => {
|
|
7605
7645
|
const B = {};
|
|
7606
|
-
for (const
|
|
7607
|
-
const F = (
|
|
7646
|
+
for (const E of M.fields || []) {
|
|
7647
|
+
const F = (E.type || "string").toLowerCase();
|
|
7608
7648
|
if (F === "number") {
|
|
7609
|
-
const P = String(
|
|
7649
|
+
const P = String(E.value || "").trim();
|
|
7610
7650
|
if (P !== "") {
|
|
7611
7651
|
const V = Number(P);
|
|
7612
|
-
Number.isNaN(V) || (B[
|
|
7652
|
+
Number.isNaN(V) || (B[E.name] = V);
|
|
7613
7653
|
}
|
|
7614
7654
|
} else if (F === "boolean")
|
|
7615
|
-
B[
|
|
7655
|
+
B[E.name] = String(E.value).toLowerCase() === "true";
|
|
7616
7656
|
else if (F === "function") {
|
|
7617
|
-
const P = String(
|
|
7657
|
+
const P = String(E.value || "").trim();
|
|
7618
7658
|
if (P)
|
|
7619
7659
|
try {
|
|
7620
7660
|
const V = new Function(P);
|
|
7621
|
-
B[
|
|
7661
|
+
B[E.name] = V;
|
|
7622
7662
|
} catch (V) {
|
|
7623
|
-
console.error(`❌ Error creando función en item '${
|
|
7663
|
+
console.error(`❌ Error creando función en item '${E.name}':`, V);
|
|
7624
7664
|
}
|
|
7625
7665
|
} else
|
|
7626
|
-
B[
|
|
7666
|
+
B[E.name] = E.value;
|
|
7627
7667
|
}
|
|
7628
7668
|
return B;
|
|
7629
7669
|
}) : [], H = (v) => {
|
|
@@ -7631,16 +7671,16 @@ const Na = [
|
|
|
7631
7671
|
if (!Array.isArray(v)) return M;
|
|
7632
7672
|
for (const B of v) {
|
|
7633
7673
|
if (!B.name) continue;
|
|
7634
|
-
const
|
|
7635
|
-
if (
|
|
7674
|
+
const E = (B.type || "string").toLowerCase();
|
|
7675
|
+
if (E === "number") {
|
|
7636
7676
|
const F = String(B.value || "").trim();
|
|
7637
7677
|
if (F !== "") {
|
|
7638
7678
|
const P = Number(F);
|
|
7639
7679
|
Number.isNaN(P) || (M[B.name] = P);
|
|
7640
7680
|
}
|
|
7641
|
-
} else if (
|
|
7681
|
+
} else if (E === "boolean")
|
|
7642
7682
|
M[B.name] = String(B.value).toLowerCase() === "true";
|
|
7643
|
-
else if (
|
|
7683
|
+
else if (E === "function") {
|
|
7644
7684
|
const F = String(B.value || "").trim();
|
|
7645
7685
|
if (F)
|
|
7646
7686
|
try {
|
|
@@ -7653,8 +7693,8 @@ const Na = [
|
|
|
7653
7693
|
M[B.name] = B.value;
|
|
7654
7694
|
}
|
|
7655
7695
|
return M;
|
|
7656
|
-
}, G = (v, M, B,
|
|
7657
|
-
const F = B ? { ...B } : {}, P = (
|
|
7696
|
+
}, G = (v, M, B, E) => {
|
|
7697
|
+
const F = B ? { ...B } : {}, P = (E || "items").trim() || "items";
|
|
7658
7698
|
if (M)
|
|
7659
7699
|
return F[P] = M.arr || [], F;
|
|
7660
7700
|
const V = v;
|
|
@@ -7668,36 +7708,36 @@ const Na = [
|
|
|
7668
7708
|
}, D = (v) => {
|
|
7669
7709
|
var P;
|
|
7670
7710
|
const M = !!((P = v.apiUrl) != null && P.trim()), B = M ? b[v.id] : void 0;
|
|
7671
|
-
let
|
|
7711
|
+
let E = v.props ? { ...v.props } : {};
|
|
7672
7712
|
const F = H(v.manualScalarFields);
|
|
7673
7713
|
if (Na.includes(v.componentKey))
|
|
7674
|
-
return { items: B,
|
|
7675
|
-
if (
|
|
7676
|
-
|
|
7714
|
+
return { items: B, ...E, ...F };
|
|
7715
|
+
if (E = { ...E, ...F }, M)
|
|
7716
|
+
E = G(B, null, E);
|
|
7677
7717
|
else if (v.dataMode === "manual") {
|
|
7678
7718
|
const V = W(v.manualItems);
|
|
7679
|
-
if (
|
|
7719
|
+
if (E = G(
|
|
7680
7720
|
null,
|
|
7681
7721
|
{ arr: V, variableName: v.variableName },
|
|
7682
|
-
|
|
7722
|
+
E,
|
|
7683
7723
|
v.variableName
|
|
7684
7724
|
), v.variableName2 && v.manualItems2) {
|
|
7685
7725
|
const oe = W(v.manualItems2), J = (v.variableName2 || "items2").trim() || "items2";
|
|
7686
|
-
|
|
7726
|
+
E[J] = oe;
|
|
7687
7727
|
}
|
|
7688
7728
|
}
|
|
7689
|
-
return
|
|
7729
|
+
return E;
|
|
7690
7730
|
}, X = (v) => {
|
|
7691
7731
|
const M = v.props ? { ...v.props } : {};
|
|
7692
7732
|
try {
|
|
7693
7733
|
Object.assign(M, H(v.manualScalarFields));
|
|
7694
|
-
} catch (
|
|
7695
|
-
console.error("❌ Error armando scalars vacíos:", v,
|
|
7734
|
+
} catch (E) {
|
|
7735
|
+
console.error("❌ Error armando scalars vacíos:", v, E);
|
|
7696
7736
|
}
|
|
7697
7737
|
const B = (v.variableName || "items").trim() || "items";
|
|
7698
7738
|
if (typeof M[B] == "undefined" && (M[B] = []), v.variableName2) {
|
|
7699
|
-
const
|
|
7700
|
-
typeof M[
|
|
7739
|
+
const E = (v.variableName2 || "items2").trim() || "items2";
|
|
7740
|
+
typeof M[E] == "undefined" && (M[E] = []);
|
|
7701
7741
|
}
|
|
7702
7742
|
return M;
|
|
7703
7743
|
}, Q = (v) => {
|
|
@@ -7711,8 +7751,8 @@ const Na = [
|
|
|
7711
7751
|
return console.warn(
|
|
7712
7752
|
`[landing] usando fallback local para sección ${v.title} (${v.componentKey})`
|
|
7713
7753
|
), D(B);
|
|
7714
|
-
} catch (
|
|
7715
|
-
console.error("🔥 ERROR EN fallback buildCompProps:", B,
|
|
7754
|
+
} catch (E) {
|
|
7755
|
+
console.error("🔥 ERROR EN fallback buildCompProps:", B, E);
|
|
7716
7756
|
}
|
|
7717
7757
|
return X(v);
|
|
7718
7758
|
}
|
|
@@ -7819,24 +7859,24 @@ const Na = [
|
|
|
7819
7859
|
};
|
|
7820
7860
|
export {
|
|
7821
7861
|
Va as DocIdProvider,
|
|
7822
|
-
|
|
7823
|
-
|
|
7862
|
+
bi as OraculoActionField,
|
|
7863
|
+
_i as OraculoAlert,
|
|
7824
7864
|
Zo as OraculoBadge,
|
|
7825
|
-
|
|
7865
|
+
oi as OraculoBattleBanner,
|
|
7826
7866
|
tn as OraculoBattleProgress,
|
|
7827
7867
|
ae as OraculoButton,
|
|
7828
7868
|
ke as OraculoCarousel,
|
|
7829
7869
|
Ma as OraculoCarouselDots,
|
|
7830
|
-
|
|
7870
|
+
si as OraculoCheckbox,
|
|
7831
7871
|
ei as OraculoChip,
|
|
7832
7872
|
vn as OraculoClubOlimpoVisual,
|
|
7833
|
-
|
|
7873
|
+
yi as OraculoDepositAmountCard,
|
|
7834
7874
|
cn as OraculoDepositLimitMessage,
|
|
7835
|
-
|
|
7836
|
-
|
|
7875
|
+
fi as OraculoDistribution,
|
|
7876
|
+
Si as OraculoDrawer,
|
|
7837
7877
|
Mn as OraculoEventCombinadasCard,
|
|
7838
7878
|
Yn as OraculoEventEnVivoCard,
|
|
7839
|
-
|
|
7879
|
+
Et as OraculoEventHeader,
|
|
7840
7880
|
aa as OraculoEventLabel,
|
|
7841
7881
|
Aa as OraculoEventLeague,
|
|
7842
7882
|
Ba as OraculoEventScore,
|
|
@@ -7844,9 +7884,9 @@ export {
|
|
|
7844
7884
|
Tt as OraculoEventStatus,
|
|
7845
7885
|
Ct as OraculoEventStatusBadge,
|
|
7846
7886
|
We as OraculoEventTeamInfo,
|
|
7847
|
-
|
|
7848
|
-
|
|
7849
|
-
|
|
7887
|
+
ii as OraculoFieldGroup,
|
|
7888
|
+
gi as OraculoFormAddAction,
|
|
7889
|
+
hi as OraculoFormNote,
|
|
7850
7890
|
qe as OraculoGameCard,
|
|
7851
7891
|
bn as OraculoGameRankCard,
|
|
7852
7892
|
qa as OraculoGameSlide,
|
|
@@ -7856,18 +7896,18 @@ export {
|
|
|
7856
7896
|
fa as OraculoLiveCasinoCard,
|
|
7857
7897
|
Jo as OraculoLoader,
|
|
7858
7898
|
sa as OraculoLogoMediosPago,
|
|
7859
|
-
|
|
7860
|
-
|
|
7861
|
-
|
|
7862
|
-
|
|
7899
|
+
wi as OraculoModal,
|
|
7900
|
+
ki as OraculoPageLandingPreview,
|
|
7901
|
+
vi as OraculoPaymentMethodButton,
|
|
7902
|
+
li as OraculoPhoneInput,
|
|
7863
7903
|
Xo as OraculoQuantityStepper,
|
|
7864
|
-
|
|
7865
|
-
|
|
7866
|
-
|
|
7867
|
-
|
|
7904
|
+
ci as OraculoRadio,
|
|
7905
|
+
ui as OraculoRadioGroup,
|
|
7906
|
+
mi as OraculoRangeField,
|
|
7907
|
+
pi as OraculoRemovableTag,
|
|
7868
7908
|
ho as OraculoSeccionBanners,
|
|
7869
7909
|
Pr as OraculoSeccionBonoBienvenida,
|
|
7870
|
-
|
|
7910
|
+
$r as OraculoSeccionCasino,
|
|
7871
7911
|
Cr as OraculoSeccionCasinoEnVivo,
|
|
7872
7912
|
Fr as OraculoSeccionClubOlimpo,
|
|
7873
7913
|
cr as OraculoSeccionDestacados,
|
|
@@ -7877,20 +7917,21 @@ export {
|
|
|
7877
7917
|
bo as OraculoSeccionMediosPago,
|
|
7878
7918
|
fr as OraculoSeccionTopJuegos,
|
|
7879
7919
|
Lr as OraculoSeccionVirtuales,
|
|
7880
|
-
|
|
7920
|
+
Oi as OraculoSectionHost,
|
|
7881
7921
|
Oe as OraculoSectionTitle,
|
|
7882
7922
|
rn as OraculoSelect,
|
|
7883
|
-
|
|
7923
|
+
xi as OraculoSnackbar,
|
|
7884
7924
|
Yo as OraculoSpinner,
|
|
7925
|
+
ni as OraculoStepIndicator,
|
|
7885
7926
|
an as OraculoStreakDay,
|
|
7886
|
-
|
|
7927
|
+
ri as OraculoStreakDays,
|
|
7887
7928
|
ti as OraculoStreakProgress,
|
|
7888
|
-
|
|
7929
|
+
di as OraculoSwitch,
|
|
7889
7930
|
ai as OraculoTabs,
|
|
7890
7931
|
jo as OraculoTag,
|
|
7891
7932
|
Ja as OraculoThemeProvider,
|
|
7892
7933
|
fr as OraculoTopJuegoItem,
|
|
7893
7934
|
ha as OraculoWelcomeBanner,
|
|
7894
|
-
|
|
7935
|
+
ki as default
|
|
7895
7936
|
};
|
|
7896
7937
|
//# sourceMappingURL=index.es.js.map
|