oraculo-ui 0.2.27 → 0.2.28
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 +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +102 -101
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -11,8 +11,8 @@ import { ChevronLeftRounded as Ae, ChevronRightRounded as ze } from "@mui/icons-
|
|
|
11
11
|
import xe from "@mui/material/useMediaQuery";
|
|
12
12
|
import lt from "@mui/icons-material/ChevronLeftRounded";
|
|
13
13
|
import ct from "@mui/icons-material/ChevronRightRounded";
|
|
14
|
-
import { useTheme as zt, createTheme as Rt, ThemeProvider as
|
|
15
|
-
import
|
|
14
|
+
import { useTheme as zt, createTheme as Rt, ThemeProvider as Pt } from "@mui/material/styles";
|
|
15
|
+
import Lt from "@mui/material/CssBaseline";
|
|
16
16
|
import { onSnapshot as Ft, doc as qt } from "firebase/firestore";
|
|
17
17
|
function Y({
|
|
18
18
|
children: e,
|
|
@@ -178,7 +178,7 @@ function Ze({ src: e, alt: a }) {
|
|
|
178
178
|
}
|
|
179
179
|
);
|
|
180
180
|
}
|
|
181
|
-
const Dt = "oraculo__OraculoEventTitle-module__contenedor___rg1vw", Ut = "oraculo__OraculoEventTitle-module__flexGroup___jMLFO", Vt = "oraculo__OraculoEventTitle-module__subtitle___TmHna",
|
|
181
|
+
const Dt = "oraculo__OraculoEventTitle-module__contenedor___rg1vw", Ut = "oraculo__OraculoEventTitle-module__flexGroup___jMLFO", Vt = "oraculo__OraculoEventTitle-module__subtitle___TmHna", Pe = {
|
|
182
182
|
contenedor: Dt,
|
|
183
183
|
flexGroup: Ut,
|
|
184
184
|
subtitle: Vt
|
|
@@ -187,7 +187,7 @@ function Wt({ title: e, subtitle: a }) {
|
|
|
187
187
|
return /* @__PURE__ */ v(
|
|
188
188
|
"div",
|
|
189
189
|
{
|
|
190
|
-
className:
|
|
190
|
+
className: Pe.contenedor,
|
|
191
191
|
children: [
|
|
192
192
|
/* @__PURE__ */ t(
|
|
193
193
|
"span",
|
|
@@ -203,14 +203,14 @@ function Wt({ title: e, subtitle: a }) {
|
|
|
203
203
|
a && /* @__PURE__ */ v(
|
|
204
204
|
"div",
|
|
205
205
|
{
|
|
206
|
-
className:
|
|
206
|
+
className: Pe.flexGroup,
|
|
207
207
|
children: [
|
|
208
208
|
/* @__PURE__ */ v("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
|
" "
|
|
212
212
|
] }),
|
|
213
|
-
/* @__PURE__ */ t("span", { className:
|
|
213
|
+
/* @__PURE__ */ t("span", { className: Pe.subtitle, children: a }),
|
|
214
214
|
/* @__PURE__ */ t("div", {})
|
|
215
215
|
]
|
|
216
216
|
}
|
|
@@ -442,14 +442,14 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
|
|
|
442
442
|
}));
|
|
443
443
|
const h = (C) => {
|
|
444
444
|
var W;
|
|
445
|
-
const A = C.Components.Slides, M = C.Components.Controller, w = C.root.querySelector(".splide__track"), k = (W = w == null ? void 0 : w.clientWidth) != null ? W : 0,
|
|
446
|
-
let R = 0, U =
|
|
447
|
-
for (let G =
|
|
445
|
+
const A = C.Components.Slides, M = C.Components.Controller, w = C.root.querySelector(".splide__track"), k = (W = w == null ? void 0 : w.clientWidth) != null ? W : 0, P = M.getIndex(), z = A.getLength();
|
|
446
|
+
let R = 0, U = P;
|
|
447
|
+
for (let G = P; G < z; G++) {
|
|
448
448
|
const J = A.getAt(G);
|
|
449
449
|
if (!J || (R += J.slide.offsetWidth, R > k)) break;
|
|
450
450
|
U = G;
|
|
451
451
|
}
|
|
452
|
-
return { visibleStart:
|
|
452
|
+
return { visibleStart: P, visibleEnd: U };
|
|
453
453
|
}, E = (C) => {
|
|
454
454
|
const A = C.root.querySelector(".splide__track"), M = C.root.querySelector(".splide__list");
|
|
455
455
|
return !A || !M ? !1 : M.scrollWidth > A.clientWidth + 1;
|
|
@@ -467,12 +467,12 @@ const ga = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", ha = "ora
|
|
|
467
467
|
});
|
|
468
468
|
return;
|
|
469
469
|
}
|
|
470
|
-
const { visibleStart: w, visibleEnd: k } = h(C),
|
|
471
|
-
u && ((U = x.current) == null || U.style.setProperty("--gradient-opacity",
|
|
470
|
+
const { visibleStart: w, visibleEnd: k } = h(C), P = w === 0, z = k === M - 1;
|
|
471
|
+
u && ((U = x.current) == null || U.style.setProperty("--gradient-opacity", P ? "0" : "1"), (W = _.current) == null || W.style.setProperty("--gradient-opacity", z ? "0" : "1"));
|
|
472
472
|
const R = C.Components.Controller.getIndex();
|
|
473
473
|
c == null || c({
|
|
474
474
|
index: R,
|
|
475
|
-
isStart:
|
|
475
|
+
isStart: P,
|
|
476
476
|
isEnd: z,
|
|
477
477
|
total: M,
|
|
478
478
|
visibleStart: w,
|
|
@@ -866,7 +866,7 @@ const wa = ({
|
|
|
866
866
|
]
|
|
867
867
|
}
|
|
868
868
|
);
|
|
869
|
-
},
|
|
869
|
+
}, Le = 12, Fe = ({ r: e = 16 }) => /* @__PURE__ */ t(q, { sx: { width: "100%", height: "100%", borderRadius: e, overflow: "hidden" }, children: /* @__PURE__ */ t(
|
|
870
870
|
j,
|
|
871
871
|
{
|
|
872
872
|
variant: "rectangular",
|
|
@@ -909,8 +909,8 @@ const wa = ({
|
|
|
909
909
|
xs: "104px",
|
|
910
910
|
md: "152px"
|
|
911
911
|
},
|
|
912
|
-
columnGap: `${
|
|
913
|
-
rowGap: `${
|
|
912
|
+
columnGap: `${Le}px`,
|
|
913
|
+
rowGap: `${Le}px`,
|
|
914
914
|
alignItems: "stretch",
|
|
915
915
|
justifyItems: "stretch"
|
|
916
916
|
},
|
|
@@ -977,7 +977,7 @@ const wa = ({
|
|
|
977
977
|
xs: "repeat(2, 112px)",
|
|
978
978
|
md: "repeat(2, 168px)"
|
|
979
979
|
},
|
|
980
|
-
gap: `${
|
|
980
|
+
gap: `${Le}px`,
|
|
981
981
|
gridAutoFlow: "column"
|
|
982
982
|
},
|
|
983
983
|
children: (o ? Array.from({ length: i }) : e).map((c, p) => {
|
|
@@ -1254,7 +1254,7 @@ function Ra({ coupon: e }) {
|
|
|
1254
1254
|
var T;
|
|
1255
1255
|
const _ = (T = x.betoffers) != null ? T : [], h = x.homeName, E = x.awayName;
|
|
1256
1256
|
_.forEach((D) => {
|
|
1257
|
-
var A, M, w, k,
|
|
1257
|
+
var A, M, w, k, P, z, R;
|
|
1258
1258
|
if (!((A = D == null ? void 0 : D.outcomes) != null && A.length)) return;
|
|
1259
1259
|
const y = D.outcomes[0];
|
|
1260
1260
|
if (!y) return;
|
|
@@ -1263,7 +1263,7 @@ function Ra({ coupon: e }) {
|
|
|
1263
1263
|
["Más de", "Mas de", "Over"].includes(y.label) ? ($ = `Más de ${C}`, y.participant && ($ = `${y.participant} - ${$}`)) : ["Menos de", "Menos", "Under"].includes(y.label) ? ($ = `Menos de ${C}`, y.participant && ($ = `${y.participant} - ${$}`)) : ["Sí", "No"].includes(y.label) ? ($ = y.label, y.participant && ($ = `${y.participant} - ${$}`)) : ["1X", "12", "X2"].includes(y.label) ? (y.label === "1X" && ($ = `${h} o Empate`), y.label === "12" && ($ = `${h} o ${E}`), y.label === "X2" && ($ = `${E} o Empate`)) : ($ = (w = (M = y.participant) != null ? M : y.label) != null ? w : "", C !== "" && $ === y.label && ($ = `${y.label} ${C}`)), m.push({
|
|
1264
1264
|
id: y.id,
|
|
1265
1265
|
value: $,
|
|
1266
|
-
label: (
|
|
1266
|
+
label: (P = (k = D.criterion) == null ? void 0 : k.label) != null ? P : "",
|
|
1267
1267
|
odds: (z = y.odds) != null ? z : 0,
|
|
1268
1268
|
position: (R = y.position) != null ? R : 0,
|
|
1269
1269
|
eventId: x.id
|
|
@@ -1399,7 +1399,7 @@ const de = {
|
|
|
1399
1399
|
"orc-btn--full": "oraculo__OraculoButtonBet-module__orc-btn--full___z-Myo",
|
|
1400
1400
|
"orc-btn--fullHeight": "oraculo__OraculoButtonBet-module__orc-btn--fullHeight___pCxq1"
|
|
1401
1401
|
};
|
|
1402
|
-
function
|
|
1402
|
+
function Pa({
|
|
1403
1403
|
children: e,
|
|
1404
1404
|
onClick: a,
|
|
1405
1405
|
href: n,
|
|
@@ -1458,8 +1458,8 @@ function La({
|
|
|
1458
1458
|
}
|
|
1459
1459
|
);
|
|
1460
1460
|
}
|
|
1461
|
-
const
|
|
1462
|
-
cardWrapper:
|
|
1461
|
+
const La = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", Fa = "oraculo__OraculoEventEnVivoCard-module__customButtonLabel___QRhk7", qa = "oraculo__OraculoEventEnVivoCard-module__customButtonDisabled___jwioF", ke = {
|
|
1462
|
+
cardWrapper: La,
|
|
1463
1463
|
customButtonLabel: Fa,
|
|
1464
1464
|
customButtonDisabled: qa
|
|
1465
1465
|
}, Je = {
|
|
@@ -1523,7 +1523,7 @@ function Da({ event: e, liveData: a, betOffers: n, jersey: o }) {
|
|
|
1523
1523
|
] }),
|
|
1524
1524
|
/* @__PURE__ */ v(H, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1525
1525
|
/* @__PURE__ */ t(me, { spacing: 1, children: ((_ = i == null ? void 0 : i.outcomes) != null ? _ : s).map((E, T) => /* @__PURE__ */ t(ut, { text: E.label.toUpperCase() }, T)) }),
|
|
1526
|
-
/* @__PURE__ */ t(me, { spacing: 2, children: ((h = i == null ? void 0 : i.outcomes) != null ? h : s).map((E, T) => /* @__PURE__ */ t(
|
|
1526
|
+
/* @__PURE__ */ t(me, { spacing: 2, children: ((h = i == null ? void 0 : i.outcomes) != null ? h : s).map((E, T) => /* @__PURE__ */ t(Pa, { variant: "primary", disabled: E.odds == null || (i == null ? void 0 : i.cashOutStatus) == "SUSPENDED", onClick: () => {
|
|
1527
1527
|
Ue("/deportes#event/live/" + e.id, E.id);
|
|
1528
1528
|
}, className: ke.customButtonDisabled, children: /* @__PURE__ */ t("span", { className: ke.customButtonLabel, children: E.odds === void 0 ? "" : (E.odds / 1e3).toFixed(2) }) }, T)) })
|
|
1529
1529
|
] })
|
|
@@ -2248,8 +2248,8 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2248
2248
|
const k = (z) => Array.from({ length: z }, (R, U) => ({
|
|
2249
2249
|
id: `sk-${z}-${U}`,
|
|
2250
2250
|
imageUrl: ""
|
|
2251
|
-
})),
|
|
2252
|
-
return M &&
|
|
2251
|
+
})), P = [];
|
|
2252
|
+
return M && P.push({ id: "mosaic-loading", kind: "mosaic", items: k(5) }), P.push({ id: "grid-loading", kind: "grid", items: k(w) }), P;
|
|
2253
2253
|
}, $ = b ? _ : !Array.isArray(e) || e.length === 0, C = De("(max-width:950px)"), A = $ ? y(r, s) : pn(h, r, s);
|
|
2254
2254
|
return /* @__PURE__ */ t("section", { children: /* @__PURE__ */ v(H, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
2255
2255
|
/* @__PURE__ */ v(
|
|
@@ -2349,8 +2349,8 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2349
2349
|
section: a || "Casino"
|
|
2350
2350
|
}
|
|
2351
2351
|
});
|
|
2352
|
-
const
|
|
2353
|
-
|
|
2352
|
+
const P = se("showIframe"), z = se("loadMachine");
|
|
2353
|
+
P == null || P(), z == null || z(k, !1, "CASINO");
|
|
2354
2354
|
}
|
|
2355
2355
|
}
|
|
2356
2356
|
) }),
|
|
@@ -2574,8 +2574,8 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2574
2574
|
section: a || "Virtuales"
|
|
2575
2575
|
}
|
|
2576
2576
|
});
|
|
2577
|
-
const k = se("showIframe"),
|
|
2578
|
-
k == null || k(),
|
|
2577
|
+
const k = se("showIframe"), P = se("loadMachine");
|
|
2578
|
+
k == null || k(), P == null || P(
|
|
2579
2579
|
w,
|
|
2580
2580
|
!1,
|
|
2581
2581
|
b ? "VIRTUALES_PERSONALIZE" : "VIRTUALES"
|
|
@@ -2687,7 +2687,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2687
2687
|
Q(() => {
|
|
2688
2688
|
const w = g.current;
|
|
2689
2689
|
if (!w) return;
|
|
2690
|
-
const k = 6,
|
|
2690
|
+
const k = 6, P = 380, z = (R) => {
|
|
2691
2691
|
var J, I;
|
|
2692
2692
|
if ($ || R.ctrlKey || h.current) return;
|
|
2693
2693
|
const U = R.deltaX, W = R.deltaY;
|
|
@@ -2695,13 +2695,13 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2695
2695
|
const G = U > 0;
|
|
2696
2696
|
G && _.current.isEnd || !G && _.current.isStart || (R.preventDefault(), h.current = !0, G ? (J = p.current) == null || J.next() : (I = p.current) == null || I.prev(), E.current && window.clearTimeout(E.current), E.current = window.setTimeout(() => {
|
|
2697
2697
|
h.current = !1;
|
|
2698
|
-
},
|
|
2698
|
+
}, P));
|
|
2699
2699
|
};
|
|
2700
2700
|
return w.addEventListener("wheel", z, { passive: !1 }), () => {
|
|
2701
2701
|
w.removeEventListener("wheel", z), E.current && window.clearTimeout(E.current);
|
|
2702
2702
|
};
|
|
2703
2703
|
}, [$]);
|
|
2704
|
-
const M = (w, k,
|
|
2704
|
+
const M = (w, k, P) => {
|
|
2705
2705
|
var U, W;
|
|
2706
2706
|
const z = (U = w.headline) != null ? U : e, R = (W = w.headline2) != null ? W : a;
|
|
2707
2707
|
return k ? /* @__PURE__ */ v(
|
|
@@ -2739,7 +2739,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2739
2739
|
Xe,
|
|
2740
2740
|
{
|
|
2741
2741
|
...w,
|
|
2742
|
-
onButtonClick: () => C(w,
|
|
2742
|
+
onButtonClick: () => C(w, P),
|
|
2743
2743
|
variant: "large"
|
|
2744
2744
|
}
|
|
2745
2745
|
) }) })
|
|
@@ -2757,7 +2757,7 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2757
2757
|
Xe,
|
|
2758
2758
|
{
|
|
2759
2759
|
...w,
|
|
2760
|
-
onButtonClick: () => C(w,
|
|
2760
|
+
onButtonClick: () => C(w, P),
|
|
2761
2761
|
variant: "small"
|
|
2762
2762
|
}
|
|
2763
2763
|
) })
|
|
@@ -2782,8 +2782,8 @@ const en = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommend
|
|
|
2782
2782
|
// drag: true,
|
|
2783
2783
|
},
|
|
2784
2784
|
renderItem: (w, k) => /* @__PURE__ */ t(q, { sx: { width: "100%" }, children: M(w, !s, k) }),
|
|
2785
|
-
onMove: ({ index: w, isStart: k, isEnd:
|
|
2786
|
-
f(w), typeof k == "boolean" && typeof
|
|
2785
|
+
onMove: ({ index: w, isStart: k, isEnd: P }) => {
|
|
2786
|
+
f(w), typeof k == "boolean" && typeof P == "boolean" && x({ isStart: k, isEnd: P }), A(w);
|
|
2787
2787
|
}
|
|
2788
2788
|
}
|
|
2789
2789
|
) }),
|
|
@@ -2996,7 +2996,7 @@ function Tn({
|
|
|
2996
2996
|
console.error("Could not extract group ID");
|
|
2997
2997
|
return;
|
|
2998
2998
|
}
|
|
2999
|
-
const
|
|
2999
|
+
const P = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${k}.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764283566783&prePackCouponTags=CUSTOM`, R = await (await fetch(P)).json();
|
|
3000
3000
|
d(En(R.events, R.betOffers, R.prePackCoupons));
|
|
3001
3001
|
} catch (M) {
|
|
3002
3002
|
console.error("loadDataEventSpecial error:", M);
|
|
@@ -3141,8 +3141,8 @@ function St({
|
|
|
3141
3141
|
s((A) => {
|
|
3142
3142
|
const M = { ...A };
|
|
3143
3143
|
for (const [w, k] of Object.entries($.events)) {
|
|
3144
|
-
const
|
|
3145
|
-
M[
|
|
3144
|
+
const P = Number(w);
|
|
3145
|
+
M[P] || (M[P] = k);
|
|
3146
3146
|
}
|
|
3147
3147
|
return M;
|
|
3148
3148
|
});
|
|
@@ -3227,8 +3227,8 @@ function Rn({
|
|
|
3227
3227
|
if (!x.current) {
|
|
3228
3228
|
x.current = !0;
|
|
3229
3229
|
try {
|
|
3230
|
-
const J = await (await fetch("https://api.mktolimpo.com/api/kambi/eventos/orden")).json(), I = ((z = J == null ? void 0 : J.data) == null ? void 0 : z.event_ids) || [],
|
|
3231
|
-
I.forEach((K, l) =>
|
|
3230
|
+
const J = await (await fetch("https://api.mktolimpo.com/api/kambi/eventos/orden")).json(), I = ((z = J == null ? void 0 : J.data) == null ? void 0 : z.event_ids) || [], L = /* @__PURE__ */ new Map();
|
|
3231
|
+
I.forEach((K, l) => L.set(String(K), l)), T.current = L;
|
|
3232
3232
|
} catch (G) {
|
|
3233
3233
|
console.error("Order fetch failed, using default sorting", G);
|
|
3234
3234
|
}
|
|
@@ -3240,8 +3240,8 @@ function Rn({
|
|
|
3240
3240
|
u(W);
|
|
3241
3241
|
else {
|
|
3242
3242
|
const G = [...W].sort((J, I) => {
|
|
3243
|
-
const
|
|
3244
|
-
return (
|
|
3243
|
+
const L = T.current.get(String(J.event.id)), K = T.current.get(String(I.event.id));
|
|
3244
|
+
return (L !== void 0 ? L : 1 / 0) - (K !== void 0 ? K : 1 / 0);
|
|
3245
3245
|
});
|
|
3246
3246
|
u(G);
|
|
3247
3247
|
}
|
|
@@ -3263,7 +3263,7 @@ function Rn({
|
|
|
3263
3263
|
// same as your previous BUFFER
|
|
3264
3264
|
debounceMs: 300
|
|
3265
3265
|
// same as your previous debouncedVisibleRange
|
|
3266
|
-
}), M = i || void 0, w = g === null, k = ie(() => w ? Array(4).fill({}) : (g == null ? void 0 : g.slice(0, 20)) || [], [w, g]),
|
|
3266
|
+
}), M = i || void 0, w = g === null, k = ie(() => w ? Array(4).fill({}) : (g == null ? void 0 : g.slice(0, 20)) || [], [w, g]), P = xe("(max-width:950px)");
|
|
3267
3267
|
return !w && g.length === 0 ? null : /* @__PURE__ */ t("section", { className: M, style: {
|
|
3268
3268
|
// paddingLeft: 16,
|
|
3269
3269
|
// paddingRight: 16,
|
|
@@ -3306,7 +3306,7 @@ function Rn({
|
|
|
3306
3306
|
ref: s,
|
|
3307
3307
|
items: k,
|
|
3308
3308
|
perPage: void 0,
|
|
3309
|
-
showRightGradient: !
|
|
3309
|
+
showRightGradient: !P,
|
|
3310
3310
|
enableHorizontalWheel: !0,
|
|
3311
3311
|
gap: "16px",
|
|
3312
3312
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
@@ -3335,7 +3335,7 @@ function Rn({
|
|
|
3335
3335
|
)
|
|
3336
3336
|
] }) });
|
|
3337
3337
|
}
|
|
3338
|
-
function
|
|
3338
|
+
function Pn() {
|
|
3339
3339
|
return /* @__PURE__ */ v("div", { className: be.cardContainer, children: [
|
|
3340
3340
|
/* @__PURE__ */ t(mt, { title: "" }),
|
|
3341
3341
|
/* @__PURE__ */ t("div", { className: be.cardBackground, children: /* @__PURE__ */ v(H, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
@@ -3363,8 +3363,8 @@ function Ln() {
|
|
|
3363
3363
|
] }) })
|
|
3364
3364
|
] });
|
|
3365
3365
|
}
|
|
3366
|
-
const
|
|
3367
|
-
wrapper:
|
|
3366
|
+
const Ln = "oraculo__OraculoSeccionEventoSemana-module__wrapper___eqVq-", Fn = "oraculo__OraculoSeccionEventoSemana-module__container___5yFQs", qn = "oraculo__OraculoSeccionEventoSemana-module__buttonWrapper___-6IDT", Dn = "oraculo__OraculoSeccionEventoSemana-module__padding___vfUcV", Ie = {
|
|
3367
|
+
wrapper: Ln,
|
|
3368
3368
|
container: Fn,
|
|
3369
3369
|
buttonWrapper: qn,
|
|
3370
3370
|
padding: Dn
|
|
@@ -3425,7 +3425,7 @@ function Hn({
|
|
|
3425
3425
|
}), Aa();
|
|
3426
3426
|
};
|
|
3427
3427
|
async function E(M) {
|
|
3428
|
-
var
|
|
3428
|
+
var P, z;
|
|
3429
3429
|
let w = [], k = [];
|
|
3430
3430
|
try {
|
|
3431
3431
|
const R = await fetch(
|
|
@@ -3434,7 +3434,7 @@ function Hn({
|
|
|
3434
3434
|
);
|
|
3435
3435
|
if (R.ok) {
|
|
3436
3436
|
const U = await R.json();
|
|
3437
|
-
w = ((
|
|
3437
|
+
w = ((P = U == null ? void 0 : U.data) == null ? void 0 : P.group_ids) || [], k = ((z = U == null ? void 0 : U.data) == null ? void 0 : z.event_ids) || [];
|
|
3438
3438
|
}
|
|
3439
3439
|
} catch (R) {
|
|
3440
3440
|
R.name !== "AbortError" && console.warn("Order API not available, using default group order");
|
|
@@ -3458,7 +3458,7 @@ function Hn({
|
|
|
3458
3458
|
return N !== void 0 && B !== void 0 ? N - B : N !== void 0 ? -1 : B !== void 0 ? 1 : 0;
|
|
3459
3459
|
});
|
|
3460
3460
|
}
|
|
3461
|
-
const I = G.slice(0, 5),
|
|
3461
|
+
const I = G.slice(0, 5), L = (l) => {
|
|
3462
3462
|
const S = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football";
|
|
3463
3463
|
if (l.groups && l.groups.length > 0) {
|
|
3464
3464
|
const O = l.groups[0];
|
|
@@ -3469,7 +3469,7 @@ function Hn({
|
|
|
3469
3469
|
return [
|
|
3470
3470
|
`${S}/${l.termKey}/all/all/matches.json?${_}`
|
|
3471
3471
|
];
|
|
3472
|
-
}, K = I.flatMap(
|
|
3472
|
+
}, K = I.flatMap(L);
|
|
3473
3473
|
T(K, k, M);
|
|
3474
3474
|
} catch (R) {
|
|
3475
3475
|
console.error(R);
|
|
@@ -3477,9 +3477,9 @@ function Hn({
|
|
|
3477
3477
|
}
|
|
3478
3478
|
async function T(M, w, k) {
|
|
3479
3479
|
try {
|
|
3480
|
-
const
|
|
3480
|
+
const P = await Vn(M, 2, k);
|
|
3481
3481
|
let z = [], R = [];
|
|
3482
|
-
|
|
3482
|
+
P.forEach((J) => {
|
|
3483
3483
|
J.events && (z.push(...J.events.map((I) => I.event)), R.push(
|
|
3484
3484
|
...J.events.flatMap((I) => I.betOffers || [])
|
|
3485
3485
|
));
|
|
@@ -3488,20 +3488,20 @@ function Hn({
|
|
|
3488
3488
|
let G = W;
|
|
3489
3489
|
if (w.length > 0) {
|
|
3490
3490
|
const J = new Map(
|
|
3491
|
-
w.map((I,
|
|
3491
|
+
w.map((I, L) => [
|
|
3492
3492
|
String(I),
|
|
3493
|
-
|
|
3493
|
+
L
|
|
3494
3494
|
])
|
|
3495
3495
|
);
|
|
3496
|
-
G = [...W].sort((I,
|
|
3497
|
-
const K = J.get(String(I.id)), l = J.get(String(
|
|
3496
|
+
G = [...W].sort((I, L) => {
|
|
3497
|
+
const K = J.get(String(I.id)), l = J.get(String(L.id));
|
|
3498
3498
|
return K !== void 0 && l !== void 0 ? K - l : K !== void 0 ? -1 : l !== void 0 ? 1 : 0;
|
|
3499
3499
|
});
|
|
3500
3500
|
}
|
|
3501
3501
|
if (k.aborted) return;
|
|
3502
3502
|
f(G);
|
|
3503
|
-
} catch (
|
|
3504
|
-
console.error("Error loading events:",
|
|
3503
|
+
} catch (P) {
|
|
3504
|
+
console.error("Error loading events:", P);
|
|
3505
3505
|
}
|
|
3506
3506
|
}
|
|
3507
3507
|
Q(() => {
|
|
@@ -3558,12 +3558,12 @@ function Hn({
|
|
|
3558
3558
|
},
|
|
3559
3559
|
renderItem: (M) => {
|
|
3560
3560
|
const w = M.id, k = w in $ ? $[w] : void 0;
|
|
3561
|
-
return C ? /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(
|
|
3561
|
+
return C ? /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Pn, {}) }) : /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Un, { event: M, jersey: k }) });
|
|
3562
3562
|
},
|
|
3563
|
-
onMove: ({ isStart: M, isEnd: w, visibleStart: k, visibleEnd:
|
|
3563
|
+
onMove: ({ isStart: M, isEnd: w, visibleStart: k, visibleEnd: P }) => {
|
|
3564
3564
|
m({ isStart: M, isEnd: w }), x({
|
|
3565
3565
|
start: k,
|
|
3566
|
-
end:
|
|
3566
|
+
end: P
|
|
3567
3567
|
}), r({
|
|
3568
3568
|
element: "evento_semana_carousel_slide",
|
|
3569
3569
|
label: `${s} - OraculoSeccionEventoSemana - Slide Carousel`,
|
|
@@ -3573,7 +3573,7 @@ function Hn({
|
|
|
3573
3573
|
metadata: {
|
|
3574
3574
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
3575
3575
|
visibleStart: k,
|
|
3576
|
-
visibleEnd:
|
|
3576
|
+
visibleEnd: P,
|
|
3577
3577
|
isStart: M,
|
|
3578
3578
|
isEnd: w
|
|
3579
3579
|
},
|
|
@@ -3614,13 +3614,13 @@ function Jn({
|
|
|
3614
3614
|
hideItems: n
|
|
3615
3615
|
}) {
|
|
3616
3616
|
var J;
|
|
3617
|
-
const [o, i] = X(0), r = ae(), s = ne(), c = le(), p = V(null), g = V(!1), u = V(!1), [m, d] = X(() => Date.now()), f = se("setDepositActionGlobal"), b = (I) => [...I != null ? I : []].map((
|
|
3617
|
+
const [o, i] = X(0), r = ae(), s = ne(), c = le(), p = V(null), g = V(!1), u = V(!1), [m, d] = X(() => Date.now()), f = se("setDepositActionGlobal"), b = (I) => [...I != null ? I : []].map((L, K) => ({ item: L, index: K })).sort((L, K) => {
|
|
3618
3618
|
var O, N;
|
|
3619
|
-
const l = (O =
|
|
3620
|
-
return l - S ||
|
|
3621
|
-
}).map(({ item:
|
|
3619
|
+
const l = (O = L.item.order) != null ? O : Number.MAX_SAFE_INTEGER, S = (N = K.item.order) != null ? N : Number.MAX_SAFE_INTEGER;
|
|
3620
|
+
return l - S || L.index - K.index;
|
|
3621
|
+
}).map(({ item: L }) => L), x = ie(() => b(a), [a]), _ = ie(() => {
|
|
3622
3622
|
const I = (e != null ? e : []).filter(
|
|
3623
|
-
(
|
|
3623
|
+
(L) => Xn(L, m)
|
|
3624
3624
|
);
|
|
3625
3625
|
return b(I);
|
|
3626
3626
|
}, [e, m]), h = _.length || 1, E = !_ || _.length === 0, T = !E && _.length > 1, D = !n && x.length > 0;
|
|
@@ -3672,11 +3672,11 @@ function Jn({
|
|
|
3672
3672
|
}, 500);
|
|
3673
3673
|
return () => clearTimeout(I);
|
|
3674
3674
|
}, []);
|
|
3675
|
-
const A = (I,
|
|
3675
|
+
const A = (I, L, K) => {
|
|
3676
3676
|
var N, B;
|
|
3677
|
-
const l = !!
|
|
3677
|
+
const l = !!L.idFunction, S = !!L.href;
|
|
3678
3678
|
if (l)
|
|
3679
|
-
switch (I.preventDefault(), I.stopPropagation(),
|
|
3679
|
+
switch (I.preventDefault(), I.stopPropagation(), L.idFunction) {
|
|
3680
3680
|
case "deposito":
|
|
3681
3681
|
f == null || f(!0);
|
|
3682
3682
|
return;
|
|
@@ -3687,11 +3687,11 @@ function Jn({
|
|
|
3687
3687
|
I.preventDefault(), I.stopPropagation();
|
|
3688
3688
|
return;
|
|
3689
3689
|
}
|
|
3690
|
-
const O = ((B = (N =
|
|
3690
|
+
const O = ((B = (N = L.href) == null ? void 0 : N.split("/").pop()) == null ? void 0 : B.split(".")[0]) || L.label || L.id || `banner_${K + 1}`;
|
|
3691
3691
|
r({
|
|
3692
3692
|
element: "banner_carousel",
|
|
3693
3693
|
label: `${s} - OraculoSeccionBanners - Banner click: ${O}`,
|
|
3694
|
-
target:
|
|
3694
|
+
target: L.href || "no_url",
|
|
3695
3695
|
event_type: "click",
|
|
3696
3696
|
module_id: c,
|
|
3697
3697
|
metadata: {
|
|
@@ -3702,7 +3702,7 @@ function Jn({
|
|
|
3702
3702
|
tags: {
|
|
3703
3703
|
banner_type: "carousel",
|
|
3704
3704
|
banner_target: "_self",
|
|
3705
|
-
banner_url:
|
|
3705
|
+
banner_url: L.href || "no_url"
|
|
3706
3706
|
}
|
|
3707
3707
|
});
|
|
3708
3708
|
}, M = (I) => {
|
|
@@ -3724,39 +3724,39 @@ function Jn({
|
|
|
3724
3724
|
return;
|
|
3725
3725
|
}
|
|
3726
3726
|
I.href && typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(I.href);
|
|
3727
|
-
}, w = 5e3, k = V(null),
|
|
3727
|
+
}, w = 5e3, k = V(null), P = !E && ((J = _ == null ? void 0 : _.length) != null ? J : 0) > 1, z = () => {
|
|
3728
3728
|
k.current != null && (window.clearTimeout(k.current), k.current = null);
|
|
3729
3729
|
}, R = () => {
|
|
3730
|
-
z(),
|
|
3730
|
+
z(), P && (k.current = window.setTimeout(() => {
|
|
3731
3731
|
var I;
|
|
3732
3732
|
u.current = !0, (I = p.current) == null || I.next();
|
|
3733
3733
|
}, w));
|
|
3734
3734
|
};
|
|
3735
|
-
Q(() => (R(), () => z()), [
|
|
3735
|
+
Q(() => (R(), () => z()), [P, w]);
|
|
3736
3736
|
const U = (I) => {
|
|
3737
|
-
var
|
|
3738
|
-
I.preventDefault(), I.stopPropagation(), z(), (
|
|
3737
|
+
var L;
|
|
3738
|
+
I.preventDefault(), I.stopPropagation(), z(), (L = p.current) == null || L.prev();
|
|
3739
3739
|
}, W = (I) => {
|
|
3740
|
-
var
|
|
3741
|
-
I.preventDefault(), I.stopPropagation(), z(), (
|
|
3740
|
+
var L;
|
|
3741
|
+
I.preventDefault(), I.stopPropagation(), z(), (L = p.current) == null || L.next();
|
|
3742
3742
|
}, G = (I) => {
|
|
3743
3743
|
var l, S, O, N;
|
|
3744
|
-
const
|
|
3744
|
+
const L = (I % h + h) % h;
|
|
3745
3745
|
if (!g.current) return;
|
|
3746
|
-
const K = (l = _ == null ? void 0 : _[
|
|
3746
|
+
const K = (l = _ == null ? void 0 : _[L]) != null && l.href ? ((O = (S = _[L].href) == null ? void 0 : S.split("/").pop()) == null ? void 0 : O.split(".")[0]) || `banner_${L + 1}` : `banner_${L + 1}`;
|
|
3747
3747
|
r({
|
|
3748
3748
|
element: "banner_carousel",
|
|
3749
|
-
label: `${s} - OraculoSeccionBanners - Banner view: Slide ${
|
|
3750
|
-
target: ((N = _ == null ? void 0 : _[
|
|
3749
|
+
label: `${s} - OraculoSeccionBanners - Banner view: Slide ${L + 1} - ${K}`,
|
|
3750
|
+
target: ((N = _ == null ? void 0 : _[L]) == null ? void 0 : N.href) || "no_url",
|
|
3751
3751
|
event_type: "view",
|
|
3752
3752
|
module_id: c,
|
|
3753
3753
|
metadata: {
|
|
3754
3754
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
3755
|
-
slide_index:
|
|
3755
|
+
slide_index: L + 1,
|
|
3756
3756
|
total_slides: h,
|
|
3757
3757
|
interaction_type: "manual_slide"
|
|
3758
3758
|
},
|
|
3759
|
-
tags: { banner_position: String(
|
|
3759
|
+
tags: { banner_position: String(L + 1) }
|
|
3760
3760
|
});
|
|
3761
3761
|
};
|
|
3762
3762
|
return /* @__PURE__ */ v(
|
|
@@ -3803,12 +3803,12 @@ function Jn({
|
|
|
3803
3803
|
enableHorizontalWheel: !0,
|
|
3804
3804
|
options: C,
|
|
3805
3805
|
onMove: ({ index: I }) => {
|
|
3806
|
-
const
|
|
3807
|
-
i(
|
|
3806
|
+
const L = (I % h + h) % h;
|
|
3807
|
+
i(L);
|
|
3808
3808
|
const K = u.current;
|
|
3809
3809
|
u.current = !1, R(), K || G(I);
|
|
3810
3810
|
},
|
|
3811
|
-
renderItem: (I,
|
|
3811
|
+
renderItem: (I, L) => {
|
|
3812
3812
|
var N, B, F;
|
|
3813
3813
|
const K = !!I.idFunction, l = !!I.href, S = l && !K, O = K || l;
|
|
3814
3814
|
return /* @__PURE__ */ v(
|
|
@@ -3818,7 +3818,7 @@ function Jn({
|
|
|
3818
3818
|
href: S ? I.href : void 0,
|
|
3819
3819
|
target: S ? (N = I.target) != null ? N : "_self" : void 0,
|
|
3820
3820
|
rel: S && I.target === "_blank" ? "noopener noreferrer" : void 0,
|
|
3821
|
-
onClick: (Z) => A(Z, I,
|
|
3821
|
+
onClick: (Z) => A(Z, I, L),
|
|
3822
3822
|
sx: {
|
|
3823
3823
|
position: "relative",
|
|
3824
3824
|
width: "100%",
|
|
@@ -4073,7 +4073,8 @@ const Yn = [
|
|
|
4073
4073
|
{ src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/pagoEfectivo.png", alt: "PagoEfectivo" },
|
|
4074
4074
|
{ src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/tupay.svg", alt: "Tupay" },
|
|
4075
4075
|
{ src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/monnet.svg", alt: "Monnet" },
|
|
4076
|
-
{ src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/niubiz.svg", alt: "Niubiz" }
|
|
4076
|
+
{ src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/niubiz.svg", alt: "Niubiz" },
|
|
4077
|
+
{ src: "assets/img/home/MediosPago/bbva.png", alt: "BBVA" }
|
|
4077
4078
|
];
|
|
4078
4079
|
function Qn({
|
|
4079
4080
|
title: e = "Medios de pago",
|
|
@@ -4151,8 +4152,8 @@ function It({
|
|
|
4151
4152
|
}),
|
|
4152
4153
|
[a]
|
|
4153
4154
|
);
|
|
4154
|
-
return /* @__PURE__ */ v(
|
|
4155
|
-
/* @__PURE__ */ t(
|
|
4155
|
+
return /* @__PURE__ */ v(Pt, { theme: n, children: [
|
|
4156
|
+
/* @__PURE__ */ t(Lt, {}),
|
|
4156
4157
|
e
|
|
4157
4158
|
] });
|
|
4158
4159
|
}
|
|
@@ -5726,13 +5727,13 @@ const it = [
|
|
|
5726
5727
|
}, k = ie(
|
|
5727
5728
|
() => e ? e.slice() : g.slice(),
|
|
5728
5729
|
[e, g]
|
|
5729
|
-
),
|
|
5730
|
+
), P = fe.useRef(/* @__PURE__ */ new Set());
|
|
5730
5731
|
Q(() => {
|
|
5731
5732
|
const l = k.map((S) => ({ s: S, url: (S.apiUrl || "").trim() })).filter(({ url: S }) => !!S);
|
|
5732
5733
|
if (l.length)
|
|
5733
5734
|
for (const { s: S, url: O } of l) {
|
|
5734
5735
|
const N = `${S.id}|${O}`;
|
|
5735
|
-
|
|
5736
|
+
P.current.has(N) || (P.current.add(N), _((B) => ({ ...B, [S.id]: !0 })), E((B) => ({ ...B, [S.id]: "" })), (async () => {
|
|
5736
5737
|
try {
|
|
5737
5738
|
const B = await w(S);
|
|
5738
5739
|
b((F) => ({ ...F, [S.id]: B }));
|
|
@@ -5863,7 +5864,7 @@ const it = [
|
|
|
5863
5864
|
}
|
|
5864
5865
|
return J(l);
|
|
5865
5866
|
}
|
|
5866
|
-
},
|
|
5867
|
+
}, L = (l, S, O) => /* @__PURE__ */ t("div", { className: `mx-4 p-4 rounded ${{
|
|
5867
5868
|
loading: "bg-blue-100 text-blue-800",
|
|
5868
5869
|
error: "bg-red-100 text-red-800",
|
|
5869
5870
|
component: "bg-yellow-100 text-yellow-800"
|
|
@@ -5892,7 +5893,7 @@ const it = [
|
|
|
5892
5893
|
} : {}
|
|
5893
5894
|
};
|
|
5894
5895
|
if (!O)
|
|
5895
|
-
return console.warn(`No hay componente registrado para "${S}"`),
|
|
5896
|
+
return console.warn(`No hay componente registrado para "${S}"`), L(
|
|
5896
5897
|
l.id,
|
|
5897
5898
|
"component",
|
|
5898
5899
|
`Componente "${S}" no encontrado`
|
|
@@ -5900,7 +5901,7 @@ const it = [
|
|
|
5900
5901
|
const oe = !!((He = l.apiUrl) != null && He.trim()), We = oe ? f[l.id] : void 0, Et = oe ? !!x[l.id] : !1, Ge = oe ? h[l.id] : "";
|
|
5901
5902
|
if (oe) {
|
|
5902
5903
|
if (Et && !We)
|
|
5903
|
-
return
|
|
5904
|
+
return L(
|
|
5904
5905
|
l.id,
|
|
5905
5906
|
"loading",
|
|
5906
5907
|
`Cargando datos desde ${l.apiUrl}...`
|
|
@@ -5918,7 +5919,7 @@ const it = [
|
|
|
5918
5919
|
Re
|
|
5919
5920
|
);
|
|
5920
5921
|
}
|
|
5921
|
-
return
|
|
5922
|
+
return L(
|
|
5922
5923
|
l.id,
|
|
5923
5924
|
"error",
|
|
5924
5925
|
`Error cargando ${l.apiUrl}: ${Ge}`
|