oraculo-ui 0.1.60 → 0.1.61
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 +4 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +175 -173
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -15,10 +15,10 @@ function F({
|
|
|
15
15
|
children: t,
|
|
16
16
|
onClick: n,
|
|
17
17
|
href: r,
|
|
18
|
-
target:
|
|
18
|
+
target: i,
|
|
19
19
|
rel: u,
|
|
20
20
|
type: o = "button",
|
|
21
|
-
disabled:
|
|
21
|
+
disabled: a = !1,
|
|
22
22
|
variant: p = "primary",
|
|
23
23
|
size: m,
|
|
24
24
|
fullWidth: g = !1,
|
|
@@ -41,12 +41,12 @@ function F({
|
|
|
41
41
|
c && /* @__PURE__ */ e("span", { className: "orc-btn__icon", children: c }),
|
|
42
42
|
!S && /* @__PURE__ */ e("span", { className: "orc-btn__label", children: t }),
|
|
43
43
|
x && /* @__PURE__ */ e("span", { className: "orc-btn__icon", children: x })
|
|
44
|
-
] }), E =
|
|
44
|
+
] }), E = a ? !0 : void 0;
|
|
45
45
|
return r ? /* @__PURE__ */ e(
|
|
46
46
|
we,
|
|
47
47
|
{
|
|
48
48
|
href: r,
|
|
49
|
-
target:
|
|
49
|
+
target: i,
|
|
50
50
|
rel: u,
|
|
51
51
|
"aria-label": s,
|
|
52
52
|
"aria-disabled": E,
|
|
@@ -71,12 +71,12 @@ function K({
|
|
|
71
71
|
title: t,
|
|
72
72
|
iconUrl: n,
|
|
73
73
|
size: r = "md",
|
|
74
|
-
className:
|
|
74
|
+
className: i = ""
|
|
75
75
|
}) {
|
|
76
76
|
const o = [
|
|
77
77
|
"orc-section-title",
|
|
78
78
|
r ? `orc-section-title--${r}` : "",
|
|
79
|
-
|
|
79
|
+
i
|
|
80
80
|
].filter(Boolean).join(" ");
|
|
81
81
|
return /* @__PURE__ */ l("div", { className: o, children: [
|
|
82
82
|
n && /* @__PURE__ */ e(
|
|
@@ -94,38 +94,38 @@ const $e = ({
|
|
|
94
94
|
total: t,
|
|
95
95
|
active: n,
|
|
96
96
|
onSelect: r,
|
|
97
|
-
className:
|
|
97
|
+
className: i = ""
|
|
98
98
|
}) => {
|
|
99
99
|
if (t <= 1) return null;
|
|
100
|
-
const u = ["orc-dots",
|
|
101
|
-
return /* @__PURE__ */ e("div", { className: u, role: "tablist", children: Array.from({ length: t }).map((o,
|
|
100
|
+
const u = ["orc-dots", i].filter(Boolean).join(" ");
|
|
101
|
+
return /* @__PURE__ */ e("div", { className: u, role: "tablist", children: Array.from({ length: t }).map((o, a) => /* @__PURE__ */ e("span", { className: "orc-dots__cell", children: /* @__PURE__ */ e(
|
|
102
102
|
"button",
|
|
103
103
|
{
|
|
104
104
|
type: "button",
|
|
105
105
|
role: "tab",
|
|
106
|
-
"aria-selected":
|
|
107
|
-
"aria-label": `Ir al slide ${
|
|
108
|
-
className: "orc-dots__dot" + (
|
|
109
|
-
onClick: () => r == null ? void 0 : r(
|
|
106
|
+
"aria-selected": a === n,
|
|
107
|
+
"aria-label": `Ir al slide ${a + 1}`,
|
|
108
|
+
className: "orc-dots__dot" + (a === n ? " orc-dots__dot--active" : ""),
|
|
109
|
+
onClick: () => r == null ? void 0 : r(a)
|
|
110
110
|
}
|
|
111
|
-
) },
|
|
111
|
+
) }, a)) });
|
|
112
112
|
};
|
|
113
113
|
function V({
|
|
114
114
|
children: t,
|
|
115
115
|
minWidth: n = 32,
|
|
116
116
|
spacing: r = 2,
|
|
117
|
-
justify:
|
|
117
|
+
justify: i = "stretch",
|
|
118
118
|
columns: u = null
|
|
119
119
|
}) {
|
|
120
|
-
const o = u || `repeat(auto-fit, minmax(${n}px, 1fr))`,
|
|
120
|
+
const o = u || `repeat(auto-fit, minmax(${n}px, 1fr))`, a = typeof r == "number" ? `${r * 8}px` : r;
|
|
121
121
|
return /* @__PURE__ */ e(
|
|
122
122
|
"div",
|
|
123
123
|
{
|
|
124
124
|
style: {
|
|
125
125
|
display: "grid",
|
|
126
126
|
gridTemplateColumns: o,
|
|
127
|
-
justifyItems:
|
|
128
|
-
gap:
|
|
127
|
+
justifyItems: i,
|
|
128
|
+
gap: a,
|
|
129
129
|
height: "inherit"
|
|
130
130
|
},
|
|
131
131
|
children: t
|
|
@@ -231,7 +231,7 @@ function Qe({ live: t, time: n }) {
|
|
|
231
231
|
n && /* @__PURE__ */ e("span", { style: { fontSize: "14px", fontWeight: 400, lineHeight: "18px", paddingTop: "4px" }, children: n })
|
|
232
232
|
] });
|
|
233
233
|
}
|
|
234
|
-
function Ye({ title: t, subtitle: n, live: r = !1, time:
|
|
234
|
+
function Ye({ title: t, subtitle: n, live: r = !1, time: i = "" }) {
|
|
235
235
|
return /* @__PURE__ */ l(
|
|
236
236
|
"div",
|
|
237
237
|
{
|
|
@@ -243,7 +243,7 @@ function Ye({ title: t, subtitle: n, live: r = !1, time: a = "" }) {
|
|
|
243
243
|
},
|
|
244
244
|
children: [
|
|
245
245
|
/* @__PURE__ */ e(Je, { title: t, subtitle: n }),
|
|
246
|
-
/* @__PURE__ */ e(Qe, { live: r, time:
|
|
246
|
+
/* @__PURE__ */ e(Qe, { live: r, time: i })
|
|
247
247
|
]
|
|
248
248
|
}
|
|
249
249
|
);
|
|
@@ -297,10 +297,10 @@ const mt = Ae, ht = Ge, q = We(
|
|
|
297
297
|
items: t = [],
|
|
298
298
|
renderItem: n,
|
|
299
299
|
perPage: r = 1,
|
|
300
|
-
gap:
|
|
300
|
+
gap: i = "0px",
|
|
301
301
|
breakpoints: u,
|
|
302
302
|
options: o = {},
|
|
303
|
-
className:
|
|
303
|
+
className: a = "",
|
|
304
304
|
onMove: p,
|
|
305
305
|
useIndexAsKey: m = !1
|
|
306
306
|
}, g) => {
|
|
@@ -337,11 +337,11 @@ const mt = Ae, ht = Ge, q = We(
|
|
|
337
337
|
focus: "start",
|
|
338
338
|
autoWidth: !1,
|
|
339
339
|
perPage: r,
|
|
340
|
-
gap:
|
|
340
|
+
gap: i,
|
|
341
341
|
breakpoints: u,
|
|
342
342
|
...o
|
|
343
343
|
};
|
|
344
|
-
return /* @__PURE__ */ e("div", { className:
|
|
344
|
+
return /* @__PURE__ */ e("div", { className: a, style: { width: "100%" }, children: /* @__PURE__ */ e(
|
|
345
345
|
mt,
|
|
346
346
|
{
|
|
347
347
|
ref: b,
|
|
@@ -359,11 +359,11 @@ const mt = Ae, ht = Ge, q = We(
|
|
|
359
359
|
imageUrl: t,
|
|
360
360
|
onClick: n,
|
|
361
361
|
size: r = "sm",
|
|
362
|
-
fillParent:
|
|
362
|
+
fillParent: i = !1
|
|
363
363
|
}) => {
|
|
364
364
|
const u = r === "lg" ? { w: 280, h: 352 } : { w: 152, h: 168 }, o = (p) => {
|
|
365
365
|
p.stopPropagation(), n == null || n();
|
|
366
|
-
},
|
|
366
|
+
}, a = i ? { width: "100%", height: "100%" } : { width: `${u.w}px`, height: `${u.h}px` };
|
|
367
367
|
return /* @__PURE__ */ l(
|
|
368
368
|
O,
|
|
369
369
|
{
|
|
@@ -375,7 +375,7 @@ const mt = Ae, ht = Ge, q = We(
|
|
|
375
375
|
overflow: "hidden",
|
|
376
376
|
boxSizing: "border-box",
|
|
377
377
|
transition: "transform .15s ease, box-shadow .15s ease",
|
|
378
|
-
...
|
|
378
|
+
...a,
|
|
379
379
|
"&:hover": {
|
|
380
380
|
transform: "translateY(-2px)",
|
|
381
381
|
boxShadow: 8,
|
|
@@ -446,7 +446,7 @@ function gt({
|
|
|
446
446
|
imageUrl: t,
|
|
447
447
|
orden: n = 1,
|
|
448
448
|
onClick: r,
|
|
449
|
-
loading:
|
|
449
|
+
loading: i = !1,
|
|
450
450
|
sizes: u = {
|
|
451
451
|
xs: { w: 104, h: 112, r: 18, font: 48 },
|
|
452
452
|
md: { w: 186, h: 264, r: 22.6, font: 64 }
|
|
@@ -459,7 +459,7 @@ function gt({
|
|
|
459
459
|
xs: (N = (C = u.xs) == null ? void 0 : C[$]) != null ? N : v,
|
|
460
460
|
md: (S = (_ = u.md) == null ? void 0 : _[$]) != null ? S : v
|
|
461
461
|
};
|
|
462
|
-
},
|
|
462
|
+
}, a = o("w", 186), p = o("h", 264), m = o("r", 22.6), g = o("font", 64), b = {
|
|
463
463
|
xs: Math.round(((s = (k = u.xs) == null ? void 0 : k.font) != null ? s : 64) * 0.28),
|
|
464
464
|
md: Math.round(((x = (c = u.md) == null ? void 0 : c.font) != null ? x : 64) * 0.28)
|
|
465
465
|
};
|
|
@@ -469,10 +469,10 @@ function gt({
|
|
|
469
469
|
sx: {
|
|
470
470
|
position: "relative",
|
|
471
471
|
width: "100%",
|
|
472
|
-
maxWidth: { xs: `${
|
|
472
|
+
maxWidth: { xs: `${a.xs}px`, md: `${a.md}px` },
|
|
473
473
|
aspectRatio: {
|
|
474
|
-
xs: `${
|
|
475
|
-
md: `${
|
|
474
|
+
xs: `${a.xs}/${p.xs}`,
|
|
475
|
+
md: `${a.md}/${p.md}`
|
|
476
476
|
},
|
|
477
477
|
borderRadius: { xs: `${m.xs}px`, md: `${m.md}px` },
|
|
478
478
|
boxSizing: "border-box",
|
|
@@ -499,7 +499,7 @@ function gt({
|
|
|
499
499
|
borderRadius: "inherit",
|
|
500
500
|
overflow: "hidden"
|
|
501
501
|
},
|
|
502
|
-
children:
|
|
502
|
+
children: i ? /* @__PURE__ */ e(
|
|
503
503
|
M,
|
|
504
504
|
{
|
|
505
505
|
variant: "rectangular",
|
|
@@ -557,7 +557,7 @@ const ft = ({
|
|
|
557
557
|
logo: t,
|
|
558
558
|
provider: n,
|
|
559
559
|
providerName: r,
|
|
560
|
-
machine:
|
|
560
|
+
machine: i,
|
|
561
561
|
onClick: u
|
|
562
562
|
}) => {
|
|
563
563
|
var o;
|
|
@@ -590,7 +590,7 @@ const ft = ({
|
|
|
590
590
|
{
|
|
591
591
|
component: "img",
|
|
592
592
|
src: t,
|
|
593
|
-
alt: `Juego ${
|
|
593
|
+
alt: `Juego ${i != null ? i : ""}`,
|
|
594
594
|
sx: {
|
|
595
595
|
position: "absolute",
|
|
596
596
|
inset: 0,
|
|
@@ -651,10 +651,10 @@ const ft = ({
|
|
|
651
651
|
items: t,
|
|
652
652
|
layout: n = "grid",
|
|
653
653
|
onClick: r,
|
|
654
|
-
loading:
|
|
654
|
+
loading: i = !1,
|
|
655
655
|
gridSkeletonCount: u = 4
|
|
656
656
|
}) => {
|
|
657
|
-
var o,
|
|
657
|
+
var o, a;
|
|
658
658
|
if (n === "mosaic") {
|
|
659
659
|
const p = t[0];
|
|
660
660
|
console.log("big: ", p);
|
|
@@ -693,10 +693,10 @@ const ft = ({
|
|
|
693
693
|
overflow: "hidden",
|
|
694
694
|
borderRadius: 2
|
|
695
695
|
},
|
|
696
|
-
children:
|
|
696
|
+
children: i ? /* @__PURE__ */ e(ce, {}) : p && /* @__PURE__ */ e(
|
|
697
697
|
te,
|
|
698
698
|
{
|
|
699
|
-
imageUrl: `https://olimpo.bet${(
|
|
699
|
+
imageUrl: `https://olimpo.bet${(a = (o = p.background) != null ? o : p.imageUrl) != null ? a : ""}`,
|
|
700
700
|
size: "lg",
|
|
701
701
|
fillParent: !0,
|
|
702
702
|
onClick: () => r == null ? void 0 : r(p, 0)
|
|
@@ -704,7 +704,7 @@ const ft = ({
|
|
|
704
704
|
)
|
|
705
705
|
}
|
|
706
706
|
),
|
|
707
|
-
(
|
|
707
|
+
(i ? Array.from({ length: 4 }) : m).map((g, b) => {
|
|
708
708
|
var k, s;
|
|
709
709
|
return /* @__PURE__ */ e(
|
|
710
710
|
O,
|
|
@@ -715,7 +715,7 @@ const ft = ({
|
|
|
715
715
|
overflow: "hidden",
|
|
716
716
|
borderRadius: 2
|
|
717
717
|
},
|
|
718
|
-
children:
|
|
718
|
+
children: i ? /* @__PURE__ */ e(ce, {}) : /* @__PURE__ */ e(
|
|
719
719
|
te,
|
|
720
720
|
{
|
|
721
721
|
imageUrl: `https://olimpo.bet${(s = (k = g.background) != null ? k : g.imageUrl) != null ? s : ""}`,
|
|
@@ -725,7 +725,7 @@ const ft = ({
|
|
|
725
725
|
}
|
|
726
726
|
)
|
|
727
727
|
},
|
|
728
|
-
|
|
728
|
+
i ? `sk-${b}` : g.id
|
|
729
729
|
);
|
|
730
730
|
})
|
|
731
731
|
]
|
|
@@ -748,13 +748,13 @@ const ft = ({
|
|
|
748
748
|
gap: `${se}px`,
|
|
749
749
|
gridAutoFlow: "column"
|
|
750
750
|
},
|
|
751
|
-
children: (
|
|
751
|
+
children: (i ? Array.from({ length: u }) : t).map((p, m) => {
|
|
752
752
|
var g, b, k;
|
|
753
753
|
return /* @__PURE__ */ e(
|
|
754
754
|
O,
|
|
755
755
|
{
|
|
756
756
|
sx: { overflow: "hidden", borderRadius: 2 },
|
|
757
|
-
children:
|
|
757
|
+
children: i ? /* @__PURE__ */ e(ce, {}) : /* @__PURE__ */ e(
|
|
758
758
|
te,
|
|
759
759
|
{
|
|
760
760
|
imageUrl: `https://olimpo.bet${(b = (g = p.background) != null ? g : p.imageUrl) != null ? b : ""}`,
|
|
@@ -764,7 +764,7 @@ const ft = ({
|
|
|
764
764
|
}
|
|
765
765
|
)
|
|
766
766
|
},
|
|
767
|
-
|
|
767
|
+
i ? `sk-${m}` : (k = p.id) != null ? k : m
|
|
768
768
|
);
|
|
769
769
|
})
|
|
770
770
|
}
|
|
@@ -773,10 +773,10 @@ const ft = ({
|
|
|
773
773
|
title: t,
|
|
774
774
|
amount: n,
|
|
775
775
|
subtitle: r,
|
|
776
|
-
buttonText:
|
|
776
|
+
buttonText: i,
|
|
777
777
|
onButtonClick: u,
|
|
778
778
|
backgroundImage: o,
|
|
779
|
-
alt:
|
|
779
|
+
alt: a,
|
|
780
780
|
className: p = "",
|
|
781
781
|
variant: m = "small"
|
|
782
782
|
}) => {
|
|
@@ -813,7 +813,7 @@ const ft = ({
|
|
|
813
813
|
{
|
|
814
814
|
component: "img",
|
|
815
815
|
src: o,
|
|
816
|
-
alt:
|
|
816
|
+
alt: a != null ? a : "Fondo promocional",
|
|
817
817
|
sx: {
|
|
818
818
|
width: "100%",
|
|
819
819
|
height: "100%",
|
|
@@ -912,7 +912,7 @@ const ft = ({
|
|
|
912
912
|
children: r
|
|
913
913
|
}
|
|
914
914
|
),
|
|
915
|
-
|
|
915
|
+
i && /* @__PURE__ */ e(F, { onClick: u, children: i })
|
|
916
916
|
]
|
|
917
917
|
}
|
|
918
918
|
)
|
|
@@ -925,16 +925,16 @@ const ft = ({
|
|
|
925
925
|
text: t,
|
|
926
926
|
buttonLabel: n = "Conoce más",
|
|
927
927
|
onClick: r,
|
|
928
|
-
imgAlt:
|
|
928
|
+
imgAlt: i = "Club Olimpo",
|
|
929
929
|
imgSrcMobile: u,
|
|
930
930
|
imgSrcDesktopBg: o,
|
|
931
|
-
imgSrcDesktopLogo:
|
|
931
|
+
imgSrcDesktopLogo: a
|
|
932
932
|
}) => /* @__PURE__ */ l(Z, { children: [
|
|
933
933
|
/* @__PURE__ */ e("div", { className: "orc-co-bgMobile", children: /* @__PURE__ */ e(
|
|
934
934
|
"img",
|
|
935
935
|
{
|
|
936
936
|
src: u,
|
|
937
|
-
alt:
|
|
937
|
+
alt: i,
|
|
938
938
|
className: "orc-co-bgMobileImg"
|
|
939
939
|
}
|
|
940
940
|
) }),
|
|
@@ -943,16 +943,16 @@ const ft = ({
|
|
|
943
943
|
"img",
|
|
944
944
|
{
|
|
945
945
|
src: o,
|
|
946
|
-
alt: `${
|
|
946
|
+
alt: `${i} fondo`,
|
|
947
947
|
className: "orc-co-bgDesktopImg"
|
|
948
948
|
}
|
|
949
949
|
) }),
|
|
950
950
|
/* @__PURE__ */ l("div", { className: "orc-co-desktopContent", children: [
|
|
951
|
-
|
|
951
|
+
a && /* @__PURE__ */ e(
|
|
952
952
|
"img",
|
|
953
953
|
{
|
|
954
|
-
src:
|
|
955
|
-
alt: `${
|
|
954
|
+
src: a,
|
|
955
|
+
alt: `${i} logo`,
|
|
956
956
|
className: "orc-co-logoImg"
|
|
957
957
|
}
|
|
958
958
|
),
|
|
@@ -988,13 +988,13 @@ function Ot() {
|
|
|
988
988
|
window.location.href = "/deportes#specials";
|
|
989
989
|
}
|
|
990
990
|
function It({ event: t }) {
|
|
991
|
-
var
|
|
991
|
+
var i;
|
|
992
992
|
function n(u) {
|
|
993
993
|
var b;
|
|
994
|
-
const o = (b = u.betoffers) != null ? b : [],
|
|
994
|
+
const o = (b = u.betoffers) != null ? b : [], a = u.homeName, p = u.awayName, m = o.map((k) => {
|
|
995
995
|
var $, v, C, N, _;
|
|
996
996
|
let s = k.outcomes[0], c = "", x = s != null && s.line ? s.line / 1e3 : "";
|
|
997
|
-
return ["Más de", "Mas de", "Over"].includes(s == null ? void 0 : s.label) ? (c = `Más de ${x}`, s != null && s.participant && (c = `${s.participant} - ${c}`)) : ["Menos de", "Menos"].includes(s == null ? void 0 : s.label) ? (c = `Menos de ${x}`, s != null && s.participant && (c = `${s.participant} - ${c}`)) : ["Sí", "No"].includes(s == null ? void 0 : s.label) ? (c = s == null ? void 0 : s.label, s != null && s.participant && (c = `${s.participant} - ${c}`)) : ["1X", "12", "X2"].includes(s == null ? void 0 : s.label) ? s.label === "1X" ? c = `${
|
|
997
|
+
return ["Más de", "Mas de", "Over"].includes(s == null ? void 0 : s.label) ? (c = `Más de ${x}`, s != null && s.participant && (c = `${s.participant} - ${c}`)) : ["Menos de", "Menos"].includes(s == null ? void 0 : s.label) ? (c = `Menos de ${x}`, s != null && s.participant && (c = `${s.participant} - ${c}`)) : ["Sí", "No"].includes(s == null ? void 0 : s.label) ? (c = s == null ? void 0 : s.label, s != null && s.participant && (c = `${s.participant} - ${c}`)) : ["1X", "12", "X2"].includes(s == null ? void 0 : s.label) ? s.label === "1X" ? c = `${a} o Empate` : s.label === "12" ? c = `${a} o ${p}` : s.label === "X2" && (c = `${p} o Empate`) : (s != null && s.participant ? c = s.participant : c = ($ = s == null ? void 0 : s.label) != null ? $ : "", x !== "" && c === s.label && (c = `${s.label} ${x}`)), {
|
|
998
998
|
id: (v = s == null ? void 0 : s.id) != null ? v : 0,
|
|
999
999
|
value: c,
|
|
1000
1000
|
label: k.criterion.label,
|
|
@@ -1035,11 +1035,11 @@ function It({ event: t }) {
|
|
|
1035
1035
|
] }) }),
|
|
1036
1036
|
/* @__PURE__ */ l("button", { onClick: () => {
|
|
1037
1037
|
var u, o;
|
|
1038
|
-
return pe((o = (u = r == null ? void 0 : r.outcomes) == null ? void 0 : u.map((
|
|
1038
|
+
return pe((o = (u = r == null ? void 0 : r.outcomes) == null ? void 0 : u.map((a) => a == null ? void 0 : a.id)) != null ? o : []);
|
|
1039
1039
|
}, className: H.cuotaTotal, children: [
|
|
1040
1040
|
/* @__PURE__ */ l("span", { children: [
|
|
1041
1041
|
"Cuota total: ",
|
|
1042
|
-
/* @__PURE__ */ e("strong", { children: (((
|
|
1042
|
+
/* @__PURE__ */ e("strong", { children: (((i = t.combinadoTotal) != null ? i : 0) / 1e3).toFixed(2) })
|
|
1043
1043
|
] }),
|
|
1044
1044
|
/* @__PURE__ */ e("img", { loading: "lazy", src: "/assets/img/home/Combinadas/cuotaTotal.svg", alt: "cuota total" })
|
|
1045
1045
|
] })
|
|
@@ -1063,10 +1063,10 @@ function Nt({
|
|
|
1063
1063
|
children: t,
|
|
1064
1064
|
onClick: n,
|
|
1065
1065
|
href: r,
|
|
1066
|
-
target:
|
|
1066
|
+
target: i,
|
|
1067
1067
|
rel: u,
|
|
1068
1068
|
type: o = "button",
|
|
1069
|
-
disabled:
|
|
1069
|
+
disabled: a = !1,
|
|
1070
1070
|
variant: p = "primary",
|
|
1071
1071
|
size: m,
|
|
1072
1072
|
fullWidth: g = !1,
|
|
@@ -1092,12 +1092,12 @@ function Nt({
|
|
|
1092
1092
|
c && /* @__PURE__ */ e("span", { className: U["orc-btn__icon"], children: c }),
|
|
1093
1093
|
!S && /* @__PURE__ */ e("span", { className: U["orc-btn__label"], children: t }),
|
|
1094
1094
|
x && /* @__PURE__ */ e("span", { className: U["orc-btn__icon"], children: x })
|
|
1095
|
-
] }), E =
|
|
1095
|
+
] }), E = a ? !0 : void 0;
|
|
1096
1096
|
return r ? /* @__PURE__ */ e(
|
|
1097
1097
|
we,
|
|
1098
1098
|
{
|
|
1099
1099
|
href: r,
|
|
1100
|
-
target:
|
|
1100
|
+
target: i,
|
|
1101
1101
|
rel: u,
|
|
1102
1102
|
"aria-label": s,
|
|
1103
1103
|
"aria-disabled": E,
|
|
@@ -1122,8 +1122,8 @@ const Tt = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", Pe = {
|
|
|
1122
1122
|
cardWrapper: Tt
|
|
1123
1123
|
};
|
|
1124
1124
|
function Pt({ event: t, liveData: n, betOffers: r }) {
|
|
1125
|
-
var u, o,
|
|
1126
|
-
const
|
|
1125
|
+
var u, o, a, p, m, g, b, k;
|
|
1126
|
+
const i = r == null ? void 0 : r.find(
|
|
1127
1127
|
(s) => {
|
|
1128
1128
|
var c;
|
|
1129
1129
|
return ((c = s.betOfferType) == null ? void 0 : c.id) === 2;
|
|
@@ -1148,13 +1148,13 @@ function Pt({ event: t, liveData: n, betOffers: r }) {
|
|
|
1148
1148
|
logo: "https://stg-www.contodobet.com/static/img/landing/EventoEnVivo/Juventus.png"
|
|
1149
1149
|
}
|
|
1150
1150
|
),
|
|
1151
|
-
/* @__PURE__ */ e(Ne, { text: ((p = (
|
|
1151
|
+
/* @__PURE__ */ e(Ne, { text: ((p = (a = n == null ? void 0 : n.score) == null ? void 0 : a.home) != null ? p : 0) + ":" + ((g = (m = n == null ? void 0 : n.score) == null ? void 0 : m.away) != null ? g : 0), name: "En vivo" }),
|
|
1152
1152
|
/* @__PURE__ */ e(ne, { name: t.awayName, logo: "https://stg-www.contodobet.com/static/img/landing/EventoEnVivo/Racing.png" })
|
|
1153
1153
|
] }) })
|
|
1154
1154
|
] }),
|
|
1155
1155
|
/* @__PURE__ */ l(R, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1156
|
-
/* @__PURE__ */ e(V, { spacing: 1, children: ((b =
|
|
1157
|
-
/* @__PURE__ */ e(V, { spacing: 2, children: ((k =
|
|
1156
|
+
/* @__PURE__ */ e(V, { spacing: 1, children: ((b = i == null ? void 0 : i.outcomes) != null ? b : []).map((s, c) => /* @__PURE__ */ e(Oe, { text: s.label.toUpperCase() }, c)) }),
|
|
1157
|
+
/* @__PURE__ */ e(V, { spacing: 2, children: ((k = i == null ? void 0 : i.outcomes) != null ? k : []).map((s, c) => /* @__PURE__ */ e(Nt, { variant: "primary", disabled: s.odds == null || (i == null ? void 0 : i.cashOutStatus) == "SUSPENDED", onClick: () => {
|
|
1158
1158
|
pe(s.id);
|
|
1159
1159
|
}, children: s.odds === void 0 ? "" : (s.odds / 1e3).toFixed(2) }, c)) })
|
|
1160
1160
|
] })
|
|
@@ -1173,7 +1173,7 @@ const Ft = "oraculo__OraculoEventSemanaCard-module__cardContainer___4JuDe", Lt =
|
|
|
1173
1173
|
equipos: jt
|
|
1174
1174
|
};
|
|
1175
1175
|
function zt({ event: t }) {
|
|
1176
|
-
var r,
|
|
1176
|
+
var r, i, u, o, a, p, m;
|
|
1177
1177
|
function n(g) {
|
|
1178
1178
|
const b = new Date(g), k = b.toLocaleDateString("es-ES", {
|
|
1179
1179
|
weekday: "short"
|
|
@@ -1197,8 +1197,8 @@ function zt({ event: t }) {
|
|
|
1197
1197
|
/* @__PURE__ */ e(Mt, { text: n(t.start) })
|
|
1198
1198
|
] }),
|
|
1199
1199
|
/* @__PURE__ */ l(R, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
1200
|
-
/* @__PURE__ */ e(V, { spacing: 1, children: ((o = (u = (
|
|
1201
|
-
/* @__PURE__ */ e("div", { className: J.jugadas, children: /* @__PURE__ */ e(V, { spacing: 1, children: ((m = (p = (
|
|
1200
|
+
/* @__PURE__ */ e(V, { spacing: 1, children: ((o = (u = (i = t == null ? void 0 : t.outcome) == null ? void 0 : i[0]) == null ? void 0 : u.outcomes) != null ? o : []).map((g, b) => /* @__PURE__ */ e(Oe, { text: g.label.toUpperCase() }, b)) }),
|
|
1201
|
+
/* @__PURE__ */ e("div", { className: J.jugadas, children: /* @__PURE__ */ e(V, { spacing: 1, children: ((m = (p = (a = t == null ? void 0 : t.outcome) == null ? void 0 : a[0]) == null ? void 0 : p.outcomes) != null ? m : []).map((g, b) => /* @__PURE__ */ e(F, { variant: "primary", fullHeight: !0, onClick: () => {
|
|
1202
1202
|
pe(g.id);
|
|
1203
1203
|
}, children: (g.odds / 1e3).toFixed(2) }, b)) }) })
|
|
1204
1204
|
] })
|
|
@@ -1209,10 +1209,10 @@ function At({
|
|
|
1209
1209
|
items: t,
|
|
1210
1210
|
title: n = "Destacados",
|
|
1211
1211
|
iconUrl: r,
|
|
1212
|
-
onViewMore:
|
|
1212
|
+
onViewMore: i,
|
|
1213
1213
|
className: u = ""
|
|
1214
1214
|
}) {
|
|
1215
|
-
const o = G(null), [
|
|
1215
|
+
const o = G(null), [a, p] = z({ isStart: !0, isEnd: !1 }), m = () => {
|
|
1216
1216
|
var c;
|
|
1217
1217
|
(c = o.current) == null || c.prev();
|
|
1218
1218
|
}, g = () => {
|
|
@@ -1248,7 +1248,7 @@ function At({
|
|
|
1248
1248
|
iconOnly: !0,
|
|
1249
1249
|
leftIcon: /* @__PURE__ */ e(de, {}),
|
|
1250
1250
|
onClick: m,
|
|
1251
|
-
disabled:
|
|
1251
|
+
disabled: a.isStart
|
|
1252
1252
|
}
|
|
1253
1253
|
),
|
|
1254
1254
|
/* @__PURE__ */ e(
|
|
@@ -1259,7 +1259,7 @@ function At({
|
|
|
1259
1259
|
iconOnly: !0,
|
|
1260
1260
|
rightIcon: /* @__PURE__ */ e(ue, {}),
|
|
1261
1261
|
onClick: g,
|
|
1262
|
-
disabled:
|
|
1262
|
+
disabled: a.isEnd
|
|
1263
1263
|
}
|
|
1264
1264
|
)
|
|
1265
1265
|
] }),
|
|
@@ -1277,7 +1277,7 @@ function At({
|
|
|
1277
1277
|
options: {
|
|
1278
1278
|
autoWidth: !0,
|
|
1279
1279
|
gap: "12px",
|
|
1280
|
-
trimSpace: !
|
|
1280
|
+
trimSpace: !0,
|
|
1281
1281
|
pagination: !1,
|
|
1282
1282
|
arrows: !1,
|
|
1283
1283
|
drag: !0,
|
|
@@ -1321,20 +1321,20 @@ function At({
|
|
|
1321
1321
|
function ae(t, {
|
|
1322
1322
|
basePath: n = "/casino",
|
|
1323
1323
|
src: r,
|
|
1324
|
-
demo:
|
|
1324
|
+
demo: i = !1,
|
|
1325
1325
|
host: u = "https://www.olimpo.bet"
|
|
1326
1326
|
} = {}) {
|
|
1327
1327
|
if (typeof window == "undefined") return;
|
|
1328
1328
|
const o = t == null ? void 0 : t.machine;
|
|
1329
1329
|
if (!o) return;
|
|
1330
|
-
const
|
|
1331
|
-
|
|
1330
|
+
const a = new URLSearchParams();
|
|
1331
|
+
a.set("machine", String(o)), i && a.set("demo", "1"), window.location.href = `${u}${n}?${a.toString()}`;
|
|
1332
1332
|
}
|
|
1333
1333
|
function Gt({
|
|
1334
1334
|
items: t,
|
|
1335
1335
|
title: n = "Top Juegos",
|
|
1336
1336
|
iconUrl: r,
|
|
1337
|
-
onCardClick:
|
|
1337
|
+
onCardClick: i
|
|
1338
1338
|
}) {
|
|
1339
1339
|
const u = oe(
|
|
1340
1340
|
() => (t != null ? t : []).map((p, m) => {
|
|
@@ -1347,7 +1347,7 @@ function Gt({
|
|
|
1347
1347
|
};
|
|
1348
1348
|
}).sort((p, m) => p.orden != null && m.orden != null ? p.orden - m.orden : p._originalIndex - m._originalIndex),
|
|
1349
1349
|
[t]
|
|
1350
|
-
), o = !t || t.length === 0,
|
|
1350
|
+
), o = !t || t.length === 0, a = o ? Array.from({ length: 6 }) : u.slice(0, 6);
|
|
1351
1351
|
return /* @__PURE__ */ e("section", { style: { width: "100%" }, children: /* @__PURE__ */ l(R, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
1352
1352
|
/* @__PURE__ */ e(K, { title: n, iconUrl: r, size: "md" }),
|
|
1353
1353
|
/* @__PURE__ */ e(
|
|
@@ -1363,7 +1363,7 @@ function Gt({
|
|
|
1363
1363
|
justifyItems: "center",
|
|
1364
1364
|
width: "100%"
|
|
1365
1365
|
},
|
|
1366
|
-
children:
|
|
1366
|
+
children: a.map((p, m) => {
|
|
1367
1367
|
var g, b;
|
|
1368
1368
|
return /* @__PURE__ */ e(
|
|
1369
1369
|
gt,
|
|
@@ -1372,7 +1372,7 @@ function Gt({
|
|
|
1372
1372
|
orden: o ? m + 1 : p.orden,
|
|
1373
1373
|
loading: o,
|
|
1374
1374
|
onClick: o ? void 0 : () => {
|
|
1375
|
-
|
|
1375
|
+
i ? i(p) : ae(p, { basePath: "/casino" });
|
|
1376
1376
|
}
|
|
1377
1377
|
},
|
|
1378
1378
|
o ? `sk-${m}` : (b = p.machine) != null ? b : `${m}`
|
|
@@ -1383,16 +1383,16 @@ function Gt({
|
|
|
1383
1383
|
] }) });
|
|
1384
1384
|
}
|
|
1385
1385
|
const Ut = (t, n) => {
|
|
1386
|
-
var r,
|
|
1387
|
-
return (
|
|
1386
|
+
var r, i;
|
|
1387
|
+
return (i = (r = t.orden) != null ? r : t.machine) != null ? i : n;
|
|
1388
1388
|
}, Dt = ({
|
|
1389
1389
|
items: t,
|
|
1390
1390
|
title: n = "Casino en vivo",
|
|
1391
1391
|
subtitle: r = "Disfruta la emoción en tus juegos favoritos y gana en tiempo real.",
|
|
1392
|
-
backgroundMobileUrl:
|
|
1392
|
+
backgroundMobileUrl: i = "",
|
|
1393
1393
|
backgroundDesktopUrl: u = "",
|
|
1394
1394
|
onCardClick: o,
|
|
1395
|
-
onViewMore:
|
|
1395
|
+
onViewMore: a,
|
|
1396
1396
|
className: p
|
|
1397
1397
|
}) => (console.log("items: ", t), /* @__PURE__ */ l(
|
|
1398
1398
|
O,
|
|
@@ -1418,7 +1418,7 @@ const Ut = (t, n) => {
|
|
|
1418
1418
|
xs: `
|
|
1419
1419
|
linear-gradient(to bottom, #121212 0%, rgba(18,18,18,0) 10%),
|
|
1420
1420
|
linear-gradient(to top, #121212 0%, rgba(18,18,18,0) 10%),
|
|
1421
|
-
url('${
|
|
1421
|
+
url('${i}')
|
|
1422
1422
|
`,
|
|
1423
1423
|
md: `
|
|
1424
1424
|
linear-gradient(to bottom, #121212 0%, rgba(18,18,18,0) 10%),
|
|
@@ -1482,7 +1482,7 @@ const Ut = (t, n) => {
|
|
|
1482
1482
|
{
|
|
1483
1483
|
variant: "primary",
|
|
1484
1484
|
size: "md",
|
|
1485
|
-
onClick: () => (
|
|
1485
|
+
onClick: () => (a == null ? void 0 : a()) || (window.location.href = "https://www.olimpo.bet/casino-en-vivo"),
|
|
1486
1486
|
children: "Ver más"
|
|
1487
1487
|
}
|
|
1488
1488
|
) })
|
|
@@ -1521,7 +1521,7 @@ const Ut = (t, n) => {
|
|
|
1521
1521
|
{
|
|
1522
1522
|
variant: "primary",
|
|
1523
1523
|
size: "lg",
|
|
1524
|
-
onClick: () => (
|
|
1524
|
+
onClick: () => (a == null ? void 0 : a()) || (window.location.href = "https://www.olimpo.bet/casino-en-vivo"),
|
|
1525
1525
|
children: "Ver más"
|
|
1526
1526
|
}
|
|
1527
1527
|
) })
|
|
@@ -1531,46 +1531,46 @@ const Ut = (t, n) => {
|
|
|
1531
1531
|
]
|
|
1532
1532
|
}
|
|
1533
1533
|
)), Be = (t, n) => {
|
|
1534
|
-
var r,
|
|
1535
|
-
return (
|
|
1534
|
+
var r, i;
|
|
1535
|
+
return (i = (r = t.orden) != null ? r : t.machine) != null ? i : n;
|
|
1536
1536
|
}, Vt = (t, n = !0, r = 4) => {
|
|
1537
|
-
const
|
|
1537
|
+
const i = t.map((a, p) => {
|
|
1538
1538
|
var m;
|
|
1539
1539
|
return {
|
|
1540
|
-
id: Be(
|
|
1541
|
-
imageUrl: (m =
|
|
1542
|
-
|
|
1543
|
-
background:
|
|
1540
|
+
id: Be(a, p),
|
|
1541
|
+
imageUrl: (m = a.logo) != null ? m : "",
|
|
1542
|
+
...a.background ? { background: a.background } : {}
|
|
1543
|
+
// background: g.background,
|
|
1544
1544
|
};
|
|
1545
1545
|
});
|
|
1546
|
-
if (!
|
|
1546
|
+
if (!i.length) return [];
|
|
1547
1547
|
const u = [];
|
|
1548
1548
|
let o = 0;
|
|
1549
1549
|
if (n) {
|
|
1550
|
-
const
|
|
1550
|
+
const a = Math.min(i.length, 5);
|
|
1551
1551
|
u.push({
|
|
1552
1552
|
id: "mosaic-0",
|
|
1553
1553
|
kind: "mosaic",
|
|
1554
|
-
items:
|
|
1555
|
-
}), o =
|
|
1554
|
+
items: i.slice(0, a)
|
|
1555
|
+
}), o = a;
|
|
1556
1556
|
}
|
|
1557
|
-
for (; o <
|
|
1558
|
-
const
|
|
1557
|
+
for (; o < i.length; ) {
|
|
1558
|
+
const a = Math.min(o + r, i.length);
|
|
1559
1559
|
u.push({
|
|
1560
1560
|
id: `grid-${o}`,
|
|
1561
1561
|
kind: "grid",
|
|
1562
|
-
items:
|
|
1563
|
-
}), o =
|
|
1562
|
+
items: i.slice(o, a)
|
|
1563
|
+
}), o = a;
|
|
1564
1564
|
}
|
|
1565
1565
|
return u;
|
|
1566
1566
|
}, Ht = ({
|
|
1567
1567
|
items: t,
|
|
1568
1568
|
title: n = "Casino",
|
|
1569
1569
|
iconUrl: r = "/assets/img/home/Casino/diamante.svg",
|
|
1570
|
-
onItemClick:
|
|
1570
|
+
onItemClick: i,
|
|
1571
1571
|
onViewMore: u,
|
|
1572
1572
|
mosaicFirst: o = !0,
|
|
1573
|
-
gridSize:
|
|
1573
|
+
gridSize: a = 4
|
|
1574
1574
|
}) => {
|
|
1575
1575
|
const p = G(null), [m, g] = z({ isStart: !0, isEnd: !1 }), b = () => {
|
|
1576
1576
|
var v;
|
|
@@ -1583,7 +1583,7 @@ const Ut = (t, n) => {
|
|
|
1583
1583
|
}, c = (v = !0, C = 4) => {
|
|
1584
1584
|
const N = (S) => Array.from({ length: S }, (P, T) => ({ id: `sk-${S}-${T}`, imageUrl: "" })), _ = [];
|
|
1585
1585
|
return v && _.push({ id: "mosaic-loading", kind: "mosaic", items: N(5) }), _.push({ id: "grid-loading", kind: "grid", items: N(C) }), _;
|
|
1586
|
-
}, x = !t || t.length === 0, $ = x ? c(o,
|
|
1586
|
+
}, x = !t || t.length === 0, $ = x ? c(o, a) : Vt(t, o, a);
|
|
1587
1587
|
return /* @__PURE__ */ e("section", { children: /* @__PURE__ */ l(R, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
1588
1588
|
/* @__PURE__ */ l(
|
|
1589
1589
|
O,
|
|
@@ -1652,7 +1652,7 @@ const Ut = (t, n) => {
|
|
|
1652
1652
|
options: {
|
|
1653
1653
|
autoWidth: !0,
|
|
1654
1654
|
gap: "12px",
|
|
1655
|
-
trimSpace: !
|
|
1655
|
+
trimSpace: !0,
|
|
1656
1656
|
pagination: !1,
|
|
1657
1657
|
arrows: !1,
|
|
1658
1658
|
drag: !0,
|
|
@@ -1677,44 +1677,46 @@ const Ut = (t, n) => {
|
|
|
1677
1677
|
)
|
|
1678
1678
|
] }) });
|
|
1679
1679
|
}, Re = (t, n) => {
|
|
1680
|
-
var r,
|
|
1681
|
-
return (
|
|
1680
|
+
var r, i;
|
|
1681
|
+
return (i = (r = t.orden) != null ? r : t.machine) != null ? i : n;
|
|
1682
1682
|
}, Kt = (t, n = !0, r = 4) => {
|
|
1683
|
-
const
|
|
1683
|
+
const i = t.map((a, p) => {
|
|
1684
1684
|
var m;
|
|
1685
1685
|
return {
|
|
1686
|
-
id: Re(
|
|
1687
|
-
imageUrl: (m =
|
|
1686
|
+
id: Re(a, p),
|
|
1687
|
+
imageUrl: (m = a.logo) != null ? m : "",
|
|
1688
|
+
...a.background ? { background: a.background } : {}
|
|
1689
|
+
// background: g.background,
|
|
1688
1690
|
};
|
|
1689
1691
|
});
|
|
1690
|
-
if (!
|
|
1692
|
+
if (!i.length) return [];
|
|
1691
1693
|
const u = [];
|
|
1692
1694
|
let o = 0;
|
|
1693
1695
|
if (n) {
|
|
1694
|
-
const
|
|
1696
|
+
const a = Math.min(i.length, 5);
|
|
1695
1697
|
u.push({
|
|
1696
1698
|
id: "mosaic-0",
|
|
1697
1699
|
kind: "mosaic",
|
|
1698
|
-
items:
|
|
1699
|
-
}), o =
|
|
1700
|
+
items: i.slice(0, a)
|
|
1701
|
+
}), o = a;
|
|
1700
1702
|
}
|
|
1701
|
-
for (; o <
|
|
1702
|
-
const
|
|
1703
|
+
for (; o < i.length; ) {
|
|
1704
|
+
const a = Math.min(o + r, i.length);
|
|
1703
1705
|
u.push({
|
|
1704
1706
|
id: `grid-${o}`,
|
|
1705
1707
|
kind: "grid",
|
|
1706
|
-
items:
|
|
1707
|
-
}), o =
|
|
1708
|
+
items: i.slice(o, a)
|
|
1709
|
+
}), o = a;
|
|
1708
1710
|
}
|
|
1709
1711
|
return u;
|
|
1710
1712
|
}, qt = ({
|
|
1711
1713
|
items: t,
|
|
1712
1714
|
title: n = "Virtuales",
|
|
1713
1715
|
iconUrl: r = "/assets/img/home/Virtuales/virtuales.svg",
|
|
1714
|
-
onItemClick:
|
|
1716
|
+
onItemClick: i,
|
|
1715
1717
|
onViewMore: u,
|
|
1716
1718
|
mosaicFirst: o = !0,
|
|
1717
|
-
gridSize:
|
|
1719
|
+
gridSize: a = 4
|
|
1718
1720
|
}) => {
|
|
1719
1721
|
const p = G(null), [m, g] = z({ isStart: !0, isEnd: !1 }), b = () => {
|
|
1720
1722
|
var v;
|
|
@@ -1727,7 +1729,7 @@ const Ut = (t, n) => {
|
|
|
1727
1729
|
}, c = (v = !0, C = 4) => {
|
|
1728
1730
|
const N = (S) => Array.from({ length: S }, (P, T) => ({ id: `sk-${S}-${T}`, imageUrl: "" })), _ = [];
|
|
1729
1731
|
return v && _.push({ id: "mosaic-loading", kind: "mosaic", items: N(5) }), _.push({ id: "grid-loading", kind: "grid", items: N(C) }), _;
|
|
1730
|
-
}, x = !t || t.length === 0, $ = x ? c(o,
|
|
1732
|
+
}, x = !t || t.length === 0, $ = x ? c(o, a) : Kt(t, o, a);
|
|
1731
1733
|
return /* @__PURE__ */ e("section", { children: /* @__PURE__ */ l(R, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
1732
1734
|
/* @__PURE__ */ l(
|
|
1733
1735
|
O,
|
|
@@ -1796,7 +1798,7 @@ const Ut = (t, n) => {
|
|
|
1796
1798
|
options: {
|
|
1797
1799
|
autoWidth: !0,
|
|
1798
1800
|
gap: "12px",
|
|
1799
|
-
trimSpace: !
|
|
1801
|
+
trimSpace: !0,
|
|
1800
1802
|
pagination: !1,
|
|
1801
1803
|
arrows: !1,
|
|
1802
1804
|
drag: !0,
|
|
@@ -1857,14 +1859,14 @@ const Ut = (t, n) => {
|
|
|
1857
1859
|
headline: t,
|
|
1858
1860
|
headline2: n,
|
|
1859
1861
|
items: r,
|
|
1860
|
-
backgroundImageUrl:
|
|
1862
|
+
backgroundImageUrl: i
|
|
1861
1863
|
}) => {
|
|
1862
|
-
const u = Ue("(max-width: 767px)"), o = r.length > 1,
|
|
1864
|
+
const u = Ue("(max-width: 767px)"), o = r.length > 1, a = G(null), [p, m] = z(0), g = r == null ? void 0 : r[p], b = oe(
|
|
1863
1865
|
() => {
|
|
1864
1866
|
var c, x;
|
|
1865
|
-
return (x = (c = g == null ? void 0 : g.backgroundImageUrl) != null ? c :
|
|
1867
|
+
return (x = (c = g == null ? void 0 : g.backgroundImageUrl) != null ? c : i) != null ? x : "";
|
|
1866
1868
|
},
|
|
1867
|
-
[g,
|
|
1869
|
+
[g, i]
|
|
1868
1870
|
), k = Jt(b), s = (c, x) => {
|
|
1869
1871
|
var C, N;
|
|
1870
1872
|
const $ = (C = c.headline) != null ? C : t, v = (N = c.headline2) != null ? N : n;
|
|
@@ -1931,7 +1933,7 @@ const Ut = (t, n) => {
|
|
|
1931
1933
|
/* @__PURE__ */ e(
|
|
1932
1934
|
q,
|
|
1933
1935
|
{
|
|
1934
|
-
ref:
|
|
1936
|
+
ref: a,
|
|
1935
1937
|
items: r,
|
|
1936
1938
|
perPage: 1,
|
|
1937
1939
|
gap: "0px",
|
|
@@ -1949,7 +1951,7 @@ const Ut = (t, n) => {
|
|
|
1949
1951
|
active: p,
|
|
1950
1952
|
onSelect: (c) => {
|
|
1951
1953
|
var x;
|
|
1952
|
-
m(c), (x =
|
|
1954
|
+
m(c), (x = a.current) == null || x.go(c);
|
|
1953
1955
|
}
|
|
1954
1956
|
}
|
|
1955
1957
|
) })
|
|
@@ -1958,17 +1960,17 @@ const Ut = (t, n) => {
|
|
|
1958
1960
|
className: t = "",
|
|
1959
1961
|
fullBleed: n = !0,
|
|
1960
1962
|
items: r,
|
|
1961
|
-
selectedIndex:
|
|
1963
|
+
selectedIndex: i = 0,
|
|
1962
1964
|
ariaLabel: u
|
|
1963
1965
|
}) => {
|
|
1964
|
-
const o = G(null),
|
|
1966
|
+
const o = G(null), a = G(null);
|
|
1965
1967
|
if (!r) return null;
|
|
1966
1968
|
const p = () => {
|
|
1967
1969
|
window.location.href = "https://www.olimpo.bet/conoce-club-olimpo";
|
|
1968
|
-
}, m = Array.isArray(r) ? r[
|
|
1970
|
+
}, m = Array.isArray(r) ? r[i] : r;
|
|
1969
1971
|
ze(() => {
|
|
1970
|
-
if (!o.current || !
|
|
1971
|
-
const b = o.current, k =
|
|
1972
|
+
if (!o.current || !a.current || typeof ResizeObserver == "undefined") return;
|
|
1973
|
+
const b = o.current, k = a.current, s = () => {
|
|
1972
1974
|
b.style.setProperty(
|
|
1973
1975
|
"--orc-co-bottomH",
|
|
1974
1976
|
`${k.offsetHeight + 16}px`
|
|
@@ -1987,7 +1989,7 @@ const Ut = (t, n) => {
|
|
|
1987
1989
|
ref: o,
|
|
1988
1990
|
className: g,
|
|
1989
1991
|
"aria-label": u || m.imgAlt || "Club Olimpo",
|
|
1990
|
-
children: /* @__PURE__ */ e("div", { ref:
|
|
1992
|
+
children: /* @__PURE__ */ e("div", { ref: a, children: /* @__PURE__ */ e(
|
|
1991
1993
|
xt,
|
|
1992
1994
|
{
|
|
1993
1995
|
text: m.text,
|
|
@@ -2007,10 +2009,10 @@ function eo({
|
|
|
2007
2009
|
items: t,
|
|
2008
2010
|
title: n = "Combinadas del Olimpo",
|
|
2009
2011
|
iconUrl: r = "https://stg-www.contodobet.com/static/img/landing/EventoCombinada/rayoIcon.svg",
|
|
2010
|
-
onViewMore:
|
|
2012
|
+
onViewMore: i,
|
|
2011
2013
|
className: u = ""
|
|
2012
2014
|
}) {
|
|
2013
|
-
const o = G(null), [
|
|
2015
|
+
const o = G(null), [a, p] = z({ isStart: !0, isEnd: !1 }), [m, g] = z([]), b = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group/prepackcoupon.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764284658793&prePackCouponTags=CUSTOM", k = () => {
|
|
2014
2016
|
var _;
|
|
2015
2017
|
(_ = o.current) == null || _.prev();
|
|
2016
2018
|
}, s = () => {
|
|
@@ -2127,7 +2129,7 @@ function eo({
|
|
|
2127
2129
|
iconOnly: !0,
|
|
2128
2130
|
leftIcon: /* @__PURE__ */ e(de, {}),
|
|
2129
2131
|
onClick: k,
|
|
2130
|
-
disabled:
|
|
2132
|
+
disabled: a.isStart
|
|
2131
2133
|
}
|
|
2132
2134
|
),
|
|
2133
2135
|
/* @__PURE__ */ e(
|
|
@@ -2138,7 +2140,7 @@ function eo({
|
|
|
2138
2140
|
iconOnly: !0,
|
|
2139
2141
|
rightIcon: /* @__PURE__ */ e(ue, {}),
|
|
2140
2142
|
onClick: s,
|
|
2141
|
-
disabled:
|
|
2143
|
+
disabled: a.isEnd
|
|
2142
2144
|
}
|
|
2143
2145
|
)
|
|
2144
2146
|
] }),
|
|
@@ -2207,15 +2209,15 @@ function ro({
|
|
|
2207
2209
|
items: t,
|
|
2208
2210
|
title: n = "En vivo",
|
|
2209
2211
|
iconUrl: r = "https://stg-www.contodobet.com/static/img/landing/EventoEnVivo/icon.svg",
|
|
2210
|
-
onViewMore:
|
|
2212
|
+
onViewMore: i,
|
|
2211
2213
|
className: u = ""
|
|
2212
2214
|
}) {
|
|
2213
|
-
const o = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football/all/all/all/in-play.json?channel_id=3&channel_id=3&client_id=200&client_id=200&competitionId=undefined&lang=es_PE&lang=es_PE&market=PE&market=PE&useCombined=true&useCombinedLive=true",
|
|
2215
|
+
const o = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football/all/all/all/in-play.json?channel_id=3&channel_id=3&client_id=200&client_id=200&competitionId=undefined&lang=es_PE&lang=es_PE&market=PE&market=PE&useCombined=true&useCombinedLive=true", a = G(null), [p, m] = z({ isStart: !0, isEnd: !1 }), [g, b] = z([]), k = () => {
|
|
2214
2216
|
var C;
|
|
2215
|
-
(C =
|
|
2217
|
+
(C = a.current) == null || C.prev();
|
|
2216
2218
|
}, s = () => {
|
|
2217
2219
|
var C;
|
|
2218
|
-
(C =
|
|
2220
|
+
(C = a.current) == null || C.next();
|
|
2219
2221
|
}, c = () => {
|
|
2220
2222
|
kt();
|
|
2221
2223
|
};
|
|
@@ -2274,7 +2276,7 @@ function ro({
|
|
|
2274
2276
|
/* @__PURE__ */ e(
|
|
2275
2277
|
q,
|
|
2276
2278
|
{
|
|
2277
|
-
ref:
|
|
2279
|
+
ref: a,
|
|
2278
2280
|
items: v ? Array(4).fill({}) : g == null ? void 0 : g.filter((C) => C.event.sport === "FOOTBALL").sort(
|
|
2279
2281
|
(C, N) => new Date(N.event.start).getTime() - new Date(C.event.start).getTime()
|
|
2280
2282
|
),
|
|
@@ -2329,10 +2331,10 @@ function lo({
|
|
|
2329
2331
|
items: t,
|
|
2330
2332
|
title: n = "En vivo",
|
|
2331
2333
|
iconUrl: r,
|
|
2332
|
-
onViewMore:
|
|
2334
|
+
onViewMore: i,
|
|
2333
2335
|
className: u = ""
|
|
2334
2336
|
}) {
|
|
2335
|
-
const o = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE",
|
|
2337
|
+
const o = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE", a = G(null), [p, m] = z({ isStart: !0, isEnd: !1 }), [g, b] = z([]);
|
|
2336
2338
|
function k(_) {
|
|
2337
2339
|
return [..._].sort(
|
|
2338
2340
|
(S, P) => new Date(S.start).getTime() - new Date(P.start).getTime()
|
|
@@ -2418,7 +2420,7 @@ function lo({
|
|
|
2418
2420
|
/* @__PURE__ */ e("div", { style: { minWidth: "180px" }, children: /* @__PURE__ */ e(
|
|
2419
2421
|
q,
|
|
2420
2422
|
{
|
|
2421
|
-
ref:
|
|
2423
|
+
ref: a,
|
|
2422
2424
|
items: N ? Array(6).fill({}) : g,
|
|
2423
2425
|
perPage: 3.5,
|
|
2424
2426
|
gap: "16px",
|
|
@@ -2436,7 +2438,7 @@ function uo({
|
|
|
2436
2438
|
backgrounds: t,
|
|
2437
2439
|
items: n
|
|
2438
2440
|
}) {
|
|
2439
|
-
const [r,
|
|
2441
|
+
const [r, i] = z(0), u = (t == null ? void 0 : t.length) || 1;
|
|
2440
2442
|
return /* @__PURE__ */ l(
|
|
2441
2443
|
j,
|
|
2442
2444
|
{
|
|
@@ -2476,9 +2478,9 @@ function uo({
|
|
|
2476
2478
|
// left: 0,
|
|
2477
2479
|
// right: 0,
|
|
2478
2480
|
},
|
|
2479
|
-
onMove: ({ index: o }) =>
|
|
2481
|
+
onMove: ({ index: o }) => i(o),
|
|
2480
2482
|
renderItem: (o) => {
|
|
2481
|
-
var
|
|
2483
|
+
var a;
|
|
2482
2484
|
return /* @__PURE__ */ l(
|
|
2483
2485
|
j,
|
|
2484
2486
|
{
|
|
@@ -2511,7 +2513,7 @@ function uo({
|
|
|
2511
2513
|
j,
|
|
2512
2514
|
{
|
|
2513
2515
|
component: "img",
|
|
2514
|
-
src: (
|
|
2516
|
+
src: (a = o.fallbackSrc) != null ? a : o.desktopSrc,
|
|
2515
2517
|
alt: "",
|
|
2516
2518
|
"aria-hidden": !0,
|
|
2517
2519
|
loading: "lazy",
|
|
@@ -2606,9 +2608,9 @@ function uo({
|
|
|
2606
2608
|
whiteSpace: "nowrap"
|
|
2607
2609
|
},
|
|
2608
2610
|
onClick: () => {
|
|
2609
|
-
var
|
|
2611
|
+
var a;
|
|
2610
2612
|
if (o.onClick) return o.onClick();
|
|
2611
|
-
if (o.href) return window.location.href = (
|
|
2613
|
+
if (o.href) return window.location.href = (a = o.href) != null ? a : "/#";
|
|
2612
2614
|
},
|
|
2613
2615
|
children: [
|
|
2614
2616
|
o.icon && /* @__PURE__ */ e(
|
|
@@ -2691,7 +2693,7 @@ function mo({
|
|
|
2691
2693
|
}
|
|
2692
2694
|
}
|
|
2693
2695
|
),
|
|
2694
|
-
/* @__PURE__ */ e(j, { sx: { display: { xs: "block", md: "none" } }, children: n.map((
|
|
2696
|
+
/* @__PURE__ */ e(j, { sx: { display: { xs: "block", md: "none" } }, children: n.map((i, u) => /* @__PURE__ */ e(
|
|
2695
2697
|
Ce,
|
|
2696
2698
|
{
|
|
2697
2699
|
direction: "row",
|
|
@@ -2699,7 +2701,7 @@ function mo({
|
|
|
2699
2701
|
alignItems: "center",
|
|
2700
2702
|
gap: 2.5,
|
|
2701
2703
|
flexWrap: "wrap",
|
|
2702
|
-
children:
|
|
2704
|
+
children: i.map((o) => /* @__PURE__ */ e(ge, { ...o }, `${o.src}-${o.alt}`))
|
|
2703
2705
|
},
|
|
2704
2706
|
u
|
|
2705
2707
|
)) }),
|
|
@@ -2715,7 +2717,7 @@ function mo({
|
|
|
2715
2717
|
gridTemplateColumns: { md: "repeat(auto-fit, 160px)" },
|
|
2716
2718
|
justifyContent: { md: "center" }
|
|
2717
2719
|
},
|
|
2718
|
-
children: r.map((
|
|
2720
|
+
children: r.map((i) => /* @__PURE__ */ e(ge, { ...i }, `${i.src}-${i.alt}`))
|
|
2719
2721
|
}
|
|
2720
2722
|
)
|
|
2721
2723
|
] });
|
|
@@ -2739,8 +2741,8 @@ const ho = {
|
|
|
2739
2741
|
)
|
|
2740
2742
|
);
|
|
2741
2743
|
class ve extends Error {
|
|
2742
|
-
constructor(n, r,
|
|
2743
|
-
super(`HTTP ${n} ${
|
|
2744
|
+
constructor(n, r, i) {
|
|
2745
|
+
super(`HTTP ${n} ${i}`), this.status = n, this.url = r, this.statusText = i, this.name = "HttpError";
|
|
2744
2746
|
}
|
|
2745
2747
|
}
|
|
2746
2748
|
const ye = [
|
|
@@ -2752,12 +2754,12 @@ const ye = [
|
|
|
2752
2754
|
docId: n = "home",
|
|
2753
2755
|
db: r
|
|
2754
2756
|
}) => {
|
|
2755
|
-
const [
|
|
2757
|
+
const [i, u] = z(
|
|
2756
2758
|
[]
|
|
2757
|
-
), [o,
|
|
2759
|
+
), [o, a] = z(!1), [p, m] = z({}), [g, b] = z({}), [k, s] = z({}), c = Me("(min-width:1024px)");
|
|
2758
2760
|
Q(() => {
|
|
2759
2761
|
if (t || !r) return;
|
|
2760
|
-
|
|
2762
|
+
a(!0);
|
|
2761
2763
|
const d = De(
|
|
2762
2764
|
Ve(r, "landings", n),
|
|
2763
2765
|
(h) => {
|
|
@@ -2771,17 +2773,17 @@ const ye = [
|
|
|
2771
2773
|
} catch (f) {
|
|
2772
2774
|
console.error("Error procesando landings/" + n, f);
|
|
2773
2775
|
} finally {
|
|
2774
|
-
|
|
2776
|
+
a(!1);
|
|
2775
2777
|
}
|
|
2776
2778
|
},
|
|
2777
2779
|
(h) => {
|
|
2778
|
-
console.error("Error escuchando landings/" + n, h),
|
|
2780
|
+
console.error("Error escuchando landings/" + n, h), a(!1);
|
|
2779
2781
|
}
|
|
2780
2782
|
);
|
|
2781
2783
|
return () => d();
|
|
2782
2784
|
}, [t, n, r]), Q(() => {
|
|
2783
|
-
(t ? t.slice() :
|
|
2784
|
-
}, [t,
|
|
2785
|
+
(t ? t.slice() : i.slice()).map((w) => w.componentKey).filter((w) => !!w).length;
|
|
2786
|
+
}, [t, i]);
|
|
2785
2787
|
const x = async (d) => {
|
|
2786
2788
|
if (ye.includes(d.componentKey))
|
|
2787
2789
|
return {
|
|
@@ -2818,8 +2820,8 @@ const ye = [
|
|
|
2818
2820
|
if (!L.ok) throw new ve(L.status, y, L.statusText);
|
|
2819
2821
|
return L.json();
|
|
2820
2822
|
}, $ = oe(
|
|
2821
|
-
() => t ? t.slice() :
|
|
2822
|
-
[t,
|
|
2823
|
+
() => t ? t.slice() : i.slice(),
|
|
2824
|
+
[t, i]
|
|
2823
2825
|
), v = Le.useRef(/* @__PURE__ */ new Set());
|
|
2824
2826
|
Q(() => {
|
|
2825
2827
|
const d = $.map((h) => ({ s: h, url: (h.apiUrl || "").trim() })).filter(({ url: h }) => !!h);
|
|
@@ -2964,7 +2966,7 @@ const ye = [
|
|
|
2964
2966
|
boxSizing: "border-box"
|
|
2965
2967
|
}, children: /* @__PURE__ */ e(w, { ...L }) }, d.id);
|
|
2966
2968
|
};
|
|
2967
|
-
return o && !t ? /* @__PURE__ */ e("div", { className: "text-xs text-gray-400", children: "Cargando preview..." }) : !o && !t &&
|
|
2969
|
+
return o && !t ? /* @__PURE__ */ e("div", { className: "text-xs text-gray-400", children: "Cargando preview..." }) : !o && !t && i.length === 0 ? /* @__PURE__ */ e("div", { className: "text-xs text-gray-500", children: "Sin secciones (Firestore)" }) : /* @__PURE__ */ e(
|
|
2968
2970
|
Fe,
|
|
2969
2971
|
{
|
|
2970
2972
|
className: "oli-font",
|