oraculo-ui 0.2.1 → 0.2.2
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/hooks/usePersonalizeCasinoItems.d.ts +1 -1
- package/dist/index.cjs.js +5 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +938 -929
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -20,53 +20,53 @@ function W({
|
|
|
20
20
|
href: a,
|
|
21
21
|
target: o,
|
|
22
22
|
rel: i,
|
|
23
|
-
type:
|
|
23
|
+
type: l = "button",
|
|
24
24
|
disabled: s = !1,
|
|
25
25
|
variant: g = "primary",
|
|
26
|
-
size:
|
|
26
|
+
size: f,
|
|
27
27
|
fullWidth: b = !1,
|
|
28
|
-
fullHeight:
|
|
29
|
-
className:
|
|
30
|
-
ariaLabel:
|
|
28
|
+
fullHeight: r = !1,
|
|
29
|
+
className: m = "",
|
|
30
|
+
ariaLabel: d,
|
|
31
31
|
leftIcon: y,
|
|
32
32
|
rightIcon: _,
|
|
33
|
-
iconOnly:
|
|
33
|
+
iconOnly: T
|
|
34
34
|
}) {
|
|
35
|
-
const C = !!e && e !== !0,
|
|
35
|
+
const C = !!e && e !== !0, O = (!!y ? 1 : 0) + (!!_ ? 1 : 0) == 1, A = T != null ? T : O && !C, M = [
|
|
36
36
|
"orc-btn",
|
|
37
37
|
g === "secondary" ? "orc-btn--secondary" : g === "tertiary" ? "orc-btn--tertiary" : "orc-btn--primary",
|
|
38
|
-
|
|
38
|
+
f ? `orc-btn--${f}` : "",
|
|
39
39
|
b ? "orc-btn--full" : "",
|
|
40
|
-
|
|
40
|
+
r ? "orc-btn--fullHeight" : "",
|
|
41
41
|
A ? "orc-btn--iconOnly" : "",
|
|
42
|
-
|
|
43
|
-
].filter(Boolean).join(" "),
|
|
42
|
+
m
|
|
43
|
+
].filter(Boolean).join(" "), N = /* @__PURE__ */ p(ee, { children: [
|
|
44
44
|
y && /* @__PURE__ */ t("span", { className: "orc-btn__icon", children: y }),
|
|
45
45
|
!A && /* @__PURE__ */ t("span", { className: "orc-btn__label", children: e }),
|
|
46
46
|
_ && /* @__PURE__ */ t("span", { className: "orc-btn__icon", children: _ })
|
|
47
|
-
] }),
|
|
47
|
+
] }), S = s ? !0 : void 0;
|
|
48
48
|
return a ? /* @__PURE__ */ t(
|
|
49
49
|
He,
|
|
50
50
|
{
|
|
51
51
|
href: a,
|
|
52
52
|
target: o,
|
|
53
53
|
rel: i,
|
|
54
|
-
"aria-label":
|
|
55
|
-
"aria-disabled":
|
|
56
|
-
tabIndex:
|
|
57
|
-
className:
|
|
58
|
-
onClick:
|
|
59
|
-
children:
|
|
54
|
+
"aria-label": d,
|
|
55
|
+
"aria-disabled": S,
|
|
56
|
+
tabIndex: S ? -1 : void 0,
|
|
57
|
+
className: M,
|
|
58
|
+
onClick: S ? (R) => R.preventDefault() : n,
|
|
59
|
+
children: N
|
|
60
60
|
}
|
|
61
61
|
) : /* @__PURE__ */ t(
|
|
62
62
|
"button",
|
|
63
63
|
{
|
|
64
|
-
type:
|
|
64
|
+
type: l,
|
|
65
65
|
onClick: n,
|
|
66
|
-
disabled: !!
|
|
67
|
-
"aria-label":
|
|
68
|
-
className:
|
|
69
|
-
children:
|
|
66
|
+
disabled: !!S,
|
|
67
|
+
"aria-label": d,
|
|
68
|
+
className: M,
|
|
69
|
+
children: N
|
|
70
70
|
}
|
|
71
71
|
);
|
|
72
72
|
}
|
|
@@ -76,12 +76,12 @@ function le({
|
|
|
76
76
|
size: a = "md",
|
|
77
77
|
className: o = ""
|
|
78
78
|
}) {
|
|
79
|
-
const
|
|
79
|
+
const l = [
|
|
80
80
|
"orc-section-title",
|
|
81
81
|
a ? `orc-section-title--${a}` : "",
|
|
82
82
|
o
|
|
83
83
|
].filter(Boolean).join(" ");
|
|
84
|
-
return /* @__PURE__ */ p("div", { className:
|
|
84
|
+
return /* @__PURE__ */ p("div", { className: l, children: [
|
|
85
85
|
n && /* @__PURE__ */ t(
|
|
86
86
|
"img",
|
|
87
87
|
{
|
|
@@ -101,27 +101,27 @@ const Xe = ({
|
|
|
101
101
|
durationMs: i = 5e3
|
|
102
102
|
}) => {
|
|
103
103
|
if (e <= 1) return null;
|
|
104
|
-
const
|
|
104
|
+
const l = ["orc-dots", o].filter(Boolean).join(" "), [s, g] = D(0);
|
|
105
105
|
return K(() => {
|
|
106
|
-
g((
|
|
107
|
-
}, [n, i]), /* @__PURE__ */ t("div", { className:
|
|
108
|
-
const
|
|
106
|
+
g((f) => f + 1);
|
|
107
|
+
}, [n, i]), /* @__PURE__ */ t("div", { className: l, role: "tablist", "aria-label": "Carousel pagination", children: Array.from({ length: e }).map((f, b) => {
|
|
108
|
+
const r = b === n;
|
|
109
109
|
return /* @__PURE__ */ t("span", { className: "orc-dots__cell", children: /* @__PURE__ */ t(
|
|
110
110
|
"button",
|
|
111
111
|
{
|
|
112
112
|
type: "button",
|
|
113
113
|
role: "tab",
|
|
114
|
-
"aria-selected":
|
|
114
|
+
"aria-selected": r,
|
|
115
115
|
"aria-label": `Ir al slide ${b + 1}`,
|
|
116
|
-
className: "orc-dots__dot" + (
|
|
117
|
-
style:
|
|
116
|
+
className: "orc-dots__dot" + (r ? " orc-dots__dot--active" : ""),
|
|
117
|
+
style: r ? {
|
|
118
118
|
"--dot-progress-ms": `${i}ms`
|
|
119
119
|
} : void 0,
|
|
120
120
|
onClick: () => {
|
|
121
|
-
|
|
121
|
+
r && g((m) => m + 1), a == null || a(b);
|
|
122
122
|
}
|
|
123
123
|
},
|
|
124
|
-
|
|
124
|
+
r ? `a-${b}-${s}` : `i-${b}`
|
|
125
125
|
) }, b);
|
|
126
126
|
}) });
|
|
127
127
|
};
|
|
@@ -132,13 +132,13 @@ function oe({
|
|
|
132
132
|
justify: o = "stretch",
|
|
133
133
|
columns: i = null
|
|
134
134
|
}) {
|
|
135
|
-
const
|
|
135
|
+
const l = i || `repeat(auto-fit, minmax(${n}px, 1fr))`, s = typeof a == "number" ? `${a * 8}px` : a;
|
|
136
136
|
return /* @__PURE__ */ t(
|
|
137
137
|
"div",
|
|
138
138
|
{
|
|
139
139
|
style: {
|
|
140
140
|
display: "grid",
|
|
141
|
-
gridTemplateColumns:
|
|
141
|
+
gridTemplateColumns: l,
|
|
142
142
|
justifyItems: o,
|
|
143
143
|
gap: s,
|
|
144
144
|
height: "inherit"
|
|
@@ -308,7 +308,7 @@ const Ut = "oraculo__OraculoEventTeamInfo-module__team___UfpUs", qt = "oraculo__
|
|
|
308
308
|
highlight: Zt
|
|
309
309
|
};
|
|
310
310
|
function Jt({ jersey: e, className: n }) {
|
|
311
|
-
const a = `#${e.base}`, o = e.sleeve ? `#${e.sleeve}` : a, i = e.stripes ? `#${e.stripes}` : null,
|
|
311
|
+
const a = `#${e.base}`, o = e.sleeve ? `#${e.sleeve}` : a, i = e.stripes ? `#${e.stripes}` : null, l = e.sleevelong ? `#${e.sleevelong}` : null;
|
|
312
312
|
return /* @__PURE__ */ p("div", { className: `${he.polo} ${n != null ? n : ""}`, children: [
|
|
313
313
|
/* @__PURE__ */ t("div", { className: he.svgWrapper, children: /* @__PURE__ */ p("svg", { viewBox: "0 0 656 656", "aria-hidden": !0, children: [
|
|
314
314
|
/* @__PURE__ */ t(
|
|
@@ -322,7 +322,7 @@ function Jt({ jersey: e, className: n }) {
|
|
|
322
322
|
/* @__PURE__ */ t("path", { fill: i, d: "m153 277.8-5.8 14.5c-1 2.8-2.5 1.4-4.6.7l-2-.5-7.8-2.4-15.6-5-19-6.5-16-5.7-12-4.4-5.5-2.2c-3.5-1.1-3.1-1.2-1.9-4l1.8-4.9 3.2-9.3c-1.1-1.9 0-3.1.8-3.5l.2-.7.5-2 4.3-10.3 2.4-6 2.6-6.2.8-2.6 1.7-4.1v-.4l.3-2.6.6-3.4 1-3.5 1-3.8c.1-.9 2-5.6 3-7.8l.7-1.5.7-2 .9-3.6 3.4-12.6 2.4-8.6 2.7-11.2 3.5-9.6 3.6-9.4 3-6 2-4.1 3.6-5.8 2.2-4.3 3-4.4 3.2-3.9 1.7-1.9 3.6-3.6 3-2.9a109.3 109.3 0 0 1 13.3-11.2l1.2-.8a79.3 79.3 0 0 1 18-9l11.4-4.2 4-1.4 6.3-2.7 3.3-1.4 2.8-1.2 4-1.6 3.9-2.1 10.1-5 4.8-2.4 5.7-3.2 13.8-7.7c1.5-.8 4.7-2.7 6-3a8.5 8.5 0 0 0 3-1.8c3.4-2.5 4.5-4.8 6-5.3.4-.4 2-1.6 5.2-3.2-4.4 3.3-3.2 11-2.1 14.6a77 77 0 0 0 8.7 18.8l-.6.4-3.9 2-9 5-6.6 3.7-10 3.2c-4.3.8-13.2 2.4-14.4 2.8-1.2.3-10.2 4-14.5 5.8l-11.8 5.6-8.8 3.2-12 3.4-19 8.7c-5.8 1.4-19.3 14.2-25.3 20.4L122 128l.3.4 6.6 16.6 10.5 22.6 6.2 10.8c2.9 3 8.7 9.7 9.1 11.7.5 2 4.3 5.1 6.1 6.5.2.8.8 3.1 1.7 5.4-3.2 4.8-.4 10.6 1.4 12.9l1 4.6.3 6.5-.5 1c-1.4 1.4-.3 4 .4 5l.1 3c.5 1.4 1.3 4.2.8 5.2s0 2.7.3 3.4v4.9c-3.1.5-2 3.7-1 5.2-.5.7-1.8 2.2-3.2 2.7-1.4.5-1.8 3.6-1.8 5.2a9 9 0 0 1-2.7 4.7c-1.8 1.6-2.8 7.4-3 10.1l-1.6 1.5ZM403.8 31.1l-1.6-.7c1.2 1 2 2.2 2.8 4 1.8 2.8.6 8-.7 12.2a78 78 0 0 1-7.6 17l.5.2 3.3 1.5 5.4 3.3 5.9 3 7.2 3 8.2 2.2c.7.2 3.3 1 8.4 2 5.5.1 21.1 8 28.2 11.8l14 4.5a517 517 0 0 1 23.8 9.3c6.3.5 24.7 17 33.1 25.2l-4.6 11.6-8.2 19.3-3.8 9-5.2 8.6c-2.2 3.2-7.3 10.2-9.4 12.4-1.3-.3-5.6 4.4-7.6 6.7.3 2 .6 6.7-1.4 9.1-2 2.5-1.8 6.9-1.4 8.7.3.8.5 3-1 5.3-1.4 2.4-1 4-.5 4.5-.2.8-.7 2.5-1.4 3.4-.8.8-.4 3.3 0 4.5l.1 3-.1 2.2c-.2.6-.6 2.6-1.1 6.2 3.6 3.3 1.3 5.7-.3 6.5l2.2.3 1.3 2.7 1.5 3.8 1.1 2.3 2.7 7.1 1.6 4.8.3 2.1v1.6l1.9 1.9 4 8.9 1.8 4.5c.5 4 5.5 3.6 8 3l5.9-1.1 7.3-1.7 5.2-1.2 7.3-2.1 8.3-2.7 7.5-2.5 9.8-3.6 8-3 6.3-2.8 3.4-1.6 3-1.3 2.5-1.6 1-.8c1.9-1 2-2.1 1.6-2.9l-.6-1.7-1-2.7-1.6-4.2-1.4-4-.5-1.4-.1-.7v-1.2c.7-1-.4-2.5-1-3v-.2l-1-2-2.4-6-3.3-8.3-2.3-6a3896.4 3896.4 0 0 0-3.1-8.4l-2.2-7.1-1.5-5.7-2.5-8.9-1-3.1-1.2-4.5-2-8.2-2.2-9.3-2.8-11.4-2.6-9.1-.9-3c0-.3-.6-1.5-1-2l-2.5-5.6-3-6.6-5.7-11.3-2.5-4.3-2.3-3.3-.7-.7-4.3-5-3-3.8a73 73 0 0 0-4.2-3.8c-1.1-2-7.6-7-10.8-9.4-6.2-5-23.4-12.8-34-16.7l-11-4-16-7.9-20.1-10-7.1-3.8-2.4-1.5-13-7.3-2.6-3.4-5-3Z" }),
|
|
323
323
|
/* @__PURE__ */ t("path", { fill: i, d: "M292.1 648.8c-15.7-1.4-37.7-5-49.7-7.1-4.3-.6-22.6-5.3-35.5-9.5 1.5-10 3-21 4.3-32.7 7-60.5 4.8-132.8 3.1-185.6l-.9-32c-1-49-2.4-83.5-3.6-112-1.2-29-2.1-51.7-2.1-77 0-29 2.9-77.3 5.3-112.9l2.6-1c1.3-.3 10.1-2 14.4-2.7l10-3.2 6.6-3.7 9-5 4-2 .5-.3c1.2 2 2.6 4.1 3.4 4.8l6.1 7.8 15 14.6 4.8 4c-.6 26.4-1.1 60.6-1.1 100.1 0 59.3 1.1 82.6 2.7 114.6.9 18.8 2 40.7 3 74.9 1.5 48.3.8 98.4 0 148.6l-.8 68.3c0 13-.6 32.8-1.1 49Zm157.5-16.4-11.2 3.6a379.2 379.2 0 0 1-67 12c.2-11 .3-25.6.3-44.6 0-49.2-1.2-74.9-2.4-99.5-1.3-27.2-2.5-53-2-107.5.6-50.4 1.7-81.5 2.6-109.3 1-29.3 1.8-54.9 1.8-95.6 0-35.5-.6-70.6-1.2-98.6l3.6-3 5.3-5.1 3.5-3.6 3.5-3.4 4-5 4.2-5.3 2.7-4 .5.3 3.2 1.5 5.5 3.3 5.8 3 7.3 3 8.1 2.2c.7.2 3.3 1 8.4 2 2.4 0 6.5 1.5 11 3.4 2.6 29 5.2 68 5.2 107.8 0 41.5-1.6 70.2-3.2 102-1.6 28.7-3.3 60-4 105.6-.7 41.1.4 82.5 1.4 124.4.7 25.7 1.4 51.6 1.6 77.8a435 435 0 0 0 1.5 32.6Z" })
|
|
324
324
|
] }),
|
|
325
|
-
|
|
325
|
+
l && /* @__PURE__ */ t(ee, { children: /* @__PURE__ */ t("path", { fill: l, d: "m153 277.8-5.8 14.5c-1 2.8-2.5 1.4-4.6.7l-2-.5-7.8-2.4-15.6-5-19-6.5-16-5.7-12-4.4-5.5-2.2c-3.5-1.1-3.1-1.2-1.9-4l1.8-4.9 3.2-9.3c-1.1-1.9 0-3.1.8-3.5l.2-.7.5-2 4.3-10.3 2.4-6 2.6-6.2.8-2.6 1.7-4.1v-.4l.3-2.6.6-3.4 1-3.5 1-3.8c.1-.9 2-5.6 3-7.8l.7-1.5.7-2 .9-3.6 3.4-12.6 2.4-8.6 2.7-11.2 3.5-9.6 3.6-9.4 3-6 2-4.1 3.6-5.8 2.2-4.3 3-4.4 3.2-3.9 1.7-1.9 3.6-3.6 3-2.9a109.3 109.3 0 0 1 13.3-11.2l1.2-.8a79.3 79.3 0 0 1 18-9l11.4-4.2 4-1.4 6.3-2.7 3.3-1.4 2.8-1.2 4-1.6 3.9-2.1 10.1-5 4.8-2.4 5.7-3.2 13.8-7.7c1.5-.8 4.7-2.7 6-3a8.5 8.5 0 0 0 3-1.8c3.4-2.5 4.5-4.8 6-5.3.4-.4 2-1.6 5.2-3.2-4.4 3.3-3.2 11-2.1 14.6a77 77 0 0 0 8.7 18.8l-.6.4-3.9 2-9 5-6.6 3.7-10 3.2c-4.3.8-13.2 2.4-14.4 2.8-1.2.3-10.2 4-14.5 5.8l-11.8 5.6-8.8 3.2-12 3.4-19 8.7c-5.8 1.4-19.3 14.2-25.3 20.4L122 128l.3.4 6.6 16.6 10.5 22.6 6.2 10.8c2.9 3 8.7 9.7 9.1 11.7.5 2 4.3 5.1 6.1 6.5.2.8.8 3.1 1.7 5.4-3.2 4.8-.4 10.6 1.4 12.9l1 4.6.3 6.5-.5 1c-1.4 1.4-.3 4 .4 5l.1 3c.5 1.4 1.3 4.2.8 5.2s0 2.7.3 3.4v4.9c-3.1.5-2 3.7-1 5.2-.5.7-1.8 2.2-3.2 2.7-1.4.5-1.8 3.6-1.8 5.2a9 9 0 0 1-2.7 4.7c-1.8 1.6-2.8 7.4-3 10.1l-1.6 1.5ZM403.8 31.1l-1.6-.7c1.2 1 2 2.2 2.8 4 1.8 2.8.6 8-.7 12.2a78 78 0 0 1-7.6 17l.5.2 3.3 1.5 5.4 3.3 5.9 3 7.2 3 8.2 2.2c.7.2 3.3 1 8.4 2 5.5.1 21.1 8 28.2 11.8l14 4.5a517 517 0 0 1 23.8 9.3c6.3.5 24.7 17 33.1 25.2l-4.6 11.6-8.2 19.3-3.8 9-5.2 8.6c-2.2 3.2-7.3 10.2-9.4 12.4-1.3-.3-5.6 4.4-7.6 6.7.3 2 .6 6.7-1.4 9.1-2 2.5-1.8 6.9-1.4 8.7.3.8.5 3-1 5.3-1.4 2.4-1 4-.5 4.5-.2.8-.7 2.5-1.4 3.4-.8.8-.4 3.3 0 4.5l.1 3-.1 2.2c-.2.6-.6 2.6-1.1 6.2 3.6 3.3 1.3 5.7-.3 6.5l2.2.3 1.3 2.7 1.5 3.8 1.1 2.3 2.7 7.1 1.6 4.8.3 2.1v1.6l1.9 1.9 4 8.9 1.8 4.5c.5 4 5.5 3.6 8 3l5.9-1.1 7.3-1.7 5.2-1.2 7.3-2.1 8.3-2.7 7.5-2.5 9.8-3.6 8-3 6.3-2.8 3.4-1.6 3-1.3 2.5-1.6 1-.8c1.9-1 2-2.1 1.6-2.9l-.6-1.7-1-2.7-1.6-4.2-1.4-4-.5-1.4-.1-.7v-1.2c.7-1-.4-2.5-1-3v-.2l-1-2-2.4-6-3.3-8.3-2.3-6a3896.4 3896.4 0 0 0-3.1-8.4l-2.2-7.1-1.5-5.7-2.5-8.9-1-3.1-1.2-4.5-2-8.2-2.2-9.3-2.8-11.4-2.6-9.1-.9-3c0-.3-.6-1.5-1-2l-2.5-5.6-3-6.6-5.7-11.3-2.5-4.3-2.3-3.3-.7-.7-4.3-5-3-3.8a73 73 0 0 0-4.2-3.8c-1.1-2-7.6-7-10.8-9.4-6.2-5-23.4-12.8-34-16.7l-11-4-16-7.9-20.1-10-7.1-3.8-2.4-1.5-13-7.3-2.6-3.4-5-3Z" }) }),
|
|
326
326
|
/* @__PURE__ */ t(
|
|
327
327
|
"path",
|
|
328
328
|
{
|
|
@@ -383,24 +383,24 @@ function Xt(e, n, {
|
|
|
383
383
|
threshold: o = 60,
|
|
384
384
|
cooldownMs: i = 500
|
|
385
385
|
} = {}) {
|
|
386
|
-
const
|
|
386
|
+
const l = U(0), s = U(0);
|
|
387
387
|
K(() => {
|
|
388
388
|
if (!a) return;
|
|
389
389
|
const g = e.current;
|
|
390
390
|
if (!g) return;
|
|
391
|
-
const
|
|
392
|
-
const
|
|
393
|
-
if (!
|
|
394
|
-
const { deltaX:
|
|
395
|
-
if (Math.abs(
|
|
396
|
-
b.preventDefault(),
|
|
391
|
+
const f = (b) => {
|
|
392
|
+
const r = n.current;
|
|
393
|
+
if (!r || !r.go) return;
|
|
394
|
+
const { deltaX: m, deltaY: d } = b;
|
|
395
|
+
if (Math.abs(m) <= Math.abs(d)) return;
|
|
396
|
+
b.preventDefault(), l.current += m;
|
|
397
397
|
const y = Date.now();
|
|
398
|
-
if (y - s.current < i || Math.abs(
|
|
399
|
-
const _ =
|
|
400
|
-
|
|
398
|
+
if (y - s.current < i || Math.abs(l.current) < o) return;
|
|
399
|
+
const _ = l.current > 0 ? ">" : "<";
|
|
400
|
+
l.current = 0, s.current = y, r.go(_);
|
|
401
401
|
};
|
|
402
|
-
return g.addEventListener("wheel",
|
|
403
|
-
g.removeEventListener("wheel",
|
|
402
|
+
return g.addEventListener("wheel", f, { passive: !1 }), () => {
|
|
403
|
+
g.removeEventListener("wheel", f), l.current = 0;
|
|
404
404
|
};
|
|
405
405
|
}, [a, o, i, e, n]);
|
|
406
406
|
}
|
|
@@ -416,47 +416,47 @@ const Yt = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", Qt = "ora
|
|
|
416
416
|
perPage: a = 1,
|
|
417
417
|
gap: o = "0px",
|
|
418
418
|
breakpoints: i,
|
|
419
|
-
options:
|
|
419
|
+
options: l = {},
|
|
420
420
|
className: s = "",
|
|
421
421
|
onMove: g,
|
|
422
|
-
useIndexAsKey:
|
|
422
|
+
useIndexAsKey: f = !1,
|
|
423
423
|
enableHorizontalWheel: b = !0,
|
|
424
|
-
showRightGradient:
|
|
425
|
-
},
|
|
426
|
-
const
|
|
427
|
-
Xt(y,
|
|
424
|
+
showRightGradient: r = !1
|
|
425
|
+
}, m) => {
|
|
426
|
+
const d = U(null), y = U(null), _ = U(e.length), T = U(null), C = U(null);
|
|
427
|
+
Xt(y, d, {
|
|
428
428
|
enabled: b
|
|
429
|
-
}), ut(
|
|
429
|
+
}), ut(m, () => ({
|
|
430
430
|
next: () => {
|
|
431
|
-
var
|
|
432
|
-
return (
|
|
431
|
+
var S;
|
|
432
|
+
return (S = d.current) == null ? void 0 : S.go(">");
|
|
433
433
|
},
|
|
434
434
|
prev: () => {
|
|
435
|
-
var
|
|
436
|
-
return (
|
|
435
|
+
var S;
|
|
436
|
+
return (S = d.current) == null ? void 0 : S.go("<");
|
|
437
437
|
},
|
|
438
|
-
go: (
|
|
438
|
+
go: (S) => {
|
|
439
439
|
var R;
|
|
440
|
-
return (R =
|
|
440
|
+
return (R = d.current) == null ? void 0 : R.go(S);
|
|
441
441
|
}
|
|
442
442
|
}));
|
|
443
|
-
const
|
|
443
|
+
const B = (S) => {
|
|
444
444
|
var v;
|
|
445
|
-
const R =
|
|
446
|
-
let c = 0,
|
|
447
|
-
for (let x =
|
|
448
|
-
const
|
|
449
|
-
if (!
|
|
450
|
-
|
|
445
|
+
const R = S.Components.Slides, z = S.Components.Controller, w = S.root.querySelector(".splide__track"), I = (v = w == null ? void 0 : w.clientWidth) != null ? v : 0, F = z.getIndex(), h = R.getLength();
|
|
446
|
+
let c = 0, u = F;
|
|
447
|
+
for (let x = F; x < h; x++) {
|
|
448
|
+
const E = R.getAt(x);
|
|
449
|
+
if (!E || (c += E.slide.offsetWidth, c > I)) break;
|
|
450
|
+
u = x;
|
|
451
451
|
}
|
|
452
|
-
return { visibleStart:
|
|
453
|
-
},
|
|
454
|
-
const R =
|
|
452
|
+
return { visibleStart: F, visibleEnd: u };
|
|
453
|
+
}, $ = (S) => {
|
|
454
|
+
const R = S.root.querySelector(".splide__track"), z = S.root.querySelector(".splide__list");
|
|
455
455
|
return !R || !z ? !1 : z.scrollWidth > R.clientWidth + 1;
|
|
456
|
-
},
|
|
457
|
-
var
|
|
458
|
-
const z =
|
|
459
|
-
if (
|
|
456
|
+
}, O = _e((S) => {
|
|
457
|
+
var u, v;
|
|
458
|
+
const z = S.Components.Slides.getLength();
|
|
459
|
+
if (!$(S)) {
|
|
460
460
|
g == null || g({
|
|
461
461
|
index: 0,
|
|
462
462
|
isStart: !0,
|
|
@@ -467,37 +467,37 @@ const Yt = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", Qt = "ora
|
|
|
467
467
|
});
|
|
468
468
|
return;
|
|
469
469
|
}
|
|
470
|
-
const { visibleStart:
|
|
471
|
-
|
|
472
|
-
const c =
|
|
470
|
+
const { visibleStart: w, visibleEnd: I } = B(S), F = w === 0, h = I === z - 1;
|
|
471
|
+
r && ((u = T.current) == null || u.style.setProperty("--gradient-opacity", F ? "0" : "1"), (v = C.current) == null || v.style.setProperty("--gradient-opacity", h ? "0" : "1"));
|
|
472
|
+
const c = S.Components.Controller.getIndex();
|
|
473
473
|
g == null || g({
|
|
474
474
|
index: c,
|
|
475
|
-
isStart:
|
|
476
|
-
isEnd:
|
|
475
|
+
isStart: F,
|
|
476
|
+
isEnd: h,
|
|
477
477
|
total: z,
|
|
478
|
-
visibleStart:
|
|
479
|
-
visibleEnd:
|
|
478
|
+
visibleStart: w,
|
|
479
|
+
visibleEnd: I
|
|
480
480
|
});
|
|
481
481
|
}, [g]);
|
|
482
482
|
de.useEffect(() => {
|
|
483
483
|
var z;
|
|
484
|
-
const
|
|
485
|
-
if (!
|
|
484
|
+
const S = (z = d.current) == null ? void 0 : z.splide;
|
|
485
|
+
if (!S) return;
|
|
486
486
|
const R = _.current !== e.length;
|
|
487
487
|
_.current = e.length, R && requestAnimationFrame(() => {
|
|
488
|
-
|
|
488
|
+
S.refresh(), O(S);
|
|
489
489
|
});
|
|
490
|
-
}, [e.length,
|
|
490
|
+
}, [e.length, O]);
|
|
491
491
|
const A = _e(() => {
|
|
492
492
|
var R;
|
|
493
|
-
const
|
|
494
|
-
|
|
495
|
-
}, [
|
|
496
|
-
(
|
|
497
|
-
|
|
493
|
+
const S = (R = d.current) == null ? void 0 : R.splide;
|
|
494
|
+
S && (S.go(0, !1), O(S));
|
|
495
|
+
}, [O]), M = _e(
|
|
496
|
+
(S) => {
|
|
497
|
+
O(S);
|
|
498
498
|
},
|
|
499
|
-
[
|
|
500
|
-
),
|
|
499
|
+
[O]
|
|
500
|
+
), N = {
|
|
501
501
|
type: "slide",
|
|
502
502
|
trimSpace: !1,
|
|
503
503
|
drag: !0,
|
|
@@ -509,7 +509,7 @@ const Yt = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", Qt = "ora
|
|
|
509
509
|
perPage: a,
|
|
510
510
|
gap: o,
|
|
511
511
|
breakpoints: i,
|
|
512
|
-
...
|
|
512
|
+
...l,
|
|
513
513
|
...b ? { wheel: !1 } : {}
|
|
514
514
|
};
|
|
515
515
|
return /* @__PURE__ */ p(
|
|
@@ -522,22 +522,22 @@ const Yt = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", Qt = "ora
|
|
|
522
522
|
/* @__PURE__ */ t(
|
|
523
523
|
nn,
|
|
524
524
|
{
|
|
525
|
-
ref:
|
|
526
|
-
options:
|
|
527
|
-
onMove:
|
|
528
|
-
onMounted:
|
|
525
|
+
ref: d,
|
|
526
|
+
options: N,
|
|
527
|
+
onMove: O,
|
|
528
|
+
onMounted: M,
|
|
529
529
|
onResize: A,
|
|
530
|
-
children: e.map((
|
|
530
|
+
children: e.map((S, R) => {
|
|
531
531
|
var z;
|
|
532
|
-
return /* @__PURE__ */ t(an, { children: n(
|
|
532
|
+
return /* @__PURE__ */ t(an, { children: n(S, R) }, f ? R : (z = S.id) != null ? z : R);
|
|
533
533
|
})
|
|
534
534
|
}
|
|
535
535
|
),
|
|
536
|
-
|
|
536
|
+
r && /* @__PURE__ */ p(ee, { children: [
|
|
537
537
|
/* @__PURE__ */ t(
|
|
538
538
|
"div",
|
|
539
539
|
{
|
|
540
|
-
ref:
|
|
540
|
+
ref: T,
|
|
541
541
|
className: `${ge.gradientOverlay} ${ge.left}`,
|
|
542
542
|
style: { "--gradient-opacity": "0" },
|
|
543
543
|
children: /* @__PURE__ */ p(
|
|
@@ -595,7 +595,7 @@ const Yt = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", Qt = "ora
|
|
|
595
595
|
size: a = "sm",
|
|
596
596
|
fillParent: o = !1
|
|
597
597
|
}) => {
|
|
598
|
-
const i = a === "lg" ? { w: 280, h: 352 } : { w: 152, h: 168 },
|
|
598
|
+
const i = a === "lg" ? { w: 280, h: 352 } : { w: 152, h: 168 }, l = (g) => {
|
|
599
599
|
g.stopPropagation(), n == null || n();
|
|
600
600
|
}, s = o ? { width: "100%", height: "100%" } : { width: `${i.w}px`, height: `${i.h}px` };
|
|
601
601
|
return /* @__PURE__ */ p(
|
|
@@ -669,7 +669,7 @@ const Yt = "oraculo__OraculoCarousel-module__gradientOverlay___xYDfc", Qt = "ora
|
|
|
669
669
|
transition: "opacity .15s ease, transform .15s ease",
|
|
670
670
|
pointerEvents: "none"
|
|
671
671
|
},
|
|
672
|
-
children: /* @__PURE__ */ t(W, { variant: "primary", size: "md", onClick:
|
|
672
|
+
children: /* @__PURE__ */ t(W, { variant: "primary", size: "md", onClick: l, children: "Jugar" })
|
|
673
673
|
}
|
|
674
674
|
)
|
|
675
675
|
]
|
|
@@ -686,15 +686,15 @@ function on({
|
|
|
686
686
|
md: { w: 186, h: 264, r: 22.6, font: 64 }
|
|
687
687
|
}
|
|
688
688
|
}) {
|
|
689
|
-
var
|
|
690
|
-
const
|
|
691
|
-
var
|
|
689
|
+
var m, d, y, _;
|
|
690
|
+
const l = (T, C) => {
|
|
691
|
+
var B, $, O, A;
|
|
692
692
|
return {
|
|
693
|
-
xs: (
|
|
694
|
-
md: (A = (
|
|
693
|
+
xs: ($ = (B = i.xs) == null ? void 0 : B[T]) != null ? $ : C,
|
|
694
|
+
md: (A = (O = i.md) == null ? void 0 : O[T]) != null ? A : C
|
|
695
695
|
};
|
|
696
|
-
}, s =
|
|
697
|
-
xs: Math.round(((
|
|
696
|
+
}, s = l("w", 186), g = l("h", 264), f = l("r", 22.6), b = l("font", 64), r = {
|
|
697
|
+
xs: Math.round(((d = (m = i.xs) == null ? void 0 : m.font) != null ? d : 64) * 0.28),
|
|
698
698
|
md: Math.round(((_ = (y = i.md) == null ? void 0 : y.font) != null ? _ : 64) * 0.28)
|
|
699
699
|
};
|
|
700
700
|
return /* @__PURE__ */ p(
|
|
@@ -708,10 +708,10 @@ function on({
|
|
|
708
708
|
xs: `${s.xs}/${g.xs}`,
|
|
709
709
|
md: `${s.md}/${g.md}`
|
|
710
710
|
},
|
|
711
|
-
borderRadius: { xs: `${
|
|
711
|
+
borderRadius: { xs: `${f.xs}px`, md: `${f.md}px` },
|
|
712
712
|
boxSizing: "border-box",
|
|
713
713
|
overflow: "visible",
|
|
714
|
-
pb: { xs: `${
|
|
714
|
+
pb: { xs: `${r.xs}px`, md: `${r.md}px` },
|
|
715
715
|
"&::before": {
|
|
716
716
|
content: '""',
|
|
717
717
|
position: "absolute",
|
|
@@ -766,8 +766,8 @@ function on({
|
|
|
766
766
|
position: "absolute",
|
|
767
767
|
left: 8,
|
|
768
768
|
bottom: {
|
|
769
|
-
xs: `-${
|
|
770
|
-
md: `-${
|
|
769
|
+
xs: `-${r.xs}px`,
|
|
770
|
+
md: `-${r.md}px`
|
|
771
771
|
},
|
|
772
772
|
fontFamily: '"secondary", sans-serif',
|
|
773
773
|
fontSize: {
|
|
@@ -794,7 +794,7 @@ const rn = ({
|
|
|
794
794
|
machine: o,
|
|
795
795
|
onClick: i
|
|
796
796
|
}) => {
|
|
797
|
-
var
|
|
797
|
+
var l;
|
|
798
798
|
return /* @__PURE__ */ p(
|
|
799
799
|
L,
|
|
800
800
|
{
|
|
@@ -858,7 +858,7 @@ const rn = ({
|
|
|
858
858
|
fontSize: { xs: 11, md: 14 },
|
|
859
859
|
textTransform: "capitalize"
|
|
860
860
|
},
|
|
861
|
-
children: (
|
|
861
|
+
children: (l = n != null ? n : a) != null ? l : ""
|
|
862
862
|
}
|
|
863
863
|
)
|
|
864
864
|
}
|
|
@@ -888,9 +888,9 @@ const rn = ({
|
|
|
888
888
|
loading: o = !1,
|
|
889
889
|
gridSkeletonCount: i = 4
|
|
890
890
|
}) => {
|
|
891
|
-
var
|
|
891
|
+
var l, s;
|
|
892
892
|
if (n === "mosaic") {
|
|
893
|
-
const g = e[0],
|
|
893
|
+
const g = e[0], f = e.slice(1, 5);
|
|
894
894
|
return /* @__PURE__ */ p(
|
|
895
895
|
L,
|
|
896
896
|
{
|
|
@@ -928,7 +928,7 @@ const rn = ({
|
|
|
928
928
|
children: o ? /* @__PURE__ */ t($e, {}) : g && /* @__PURE__ */ t(
|
|
929
929
|
ye,
|
|
930
930
|
{
|
|
931
|
-
imageUrl: `https://olimpo.bet${(s = (
|
|
931
|
+
imageUrl: `https://olimpo.bet${(s = (l = g.background) != null ? l : g.imageUrl) != null ? s : ""}`,
|
|
932
932
|
size: "lg",
|
|
933
933
|
fillParent: !0,
|
|
934
934
|
onClick: () => a == null ? void 0 : a(g, 0)
|
|
@@ -936,8 +936,8 @@ const rn = ({
|
|
|
936
936
|
)
|
|
937
937
|
}
|
|
938
938
|
),
|
|
939
|
-
(o ? Array.from({ length: 4 }) :
|
|
940
|
-
var
|
|
939
|
+
(o ? Array.from({ length: 4 }) : f).map((b, r) => {
|
|
940
|
+
var m, d;
|
|
941
941
|
return /* @__PURE__ */ t(
|
|
942
942
|
L,
|
|
943
943
|
{
|
|
@@ -950,14 +950,14 @@ const rn = ({
|
|
|
950
950
|
children: o ? /* @__PURE__ */ t($e, {}) : /* @__PURE__ */ t(
|
|
951
951
|
ye,
|
|
952
952
|
{
|
|
953
|
-
imageUrl: `https://olimpo.bet${(
|
|
953
|
+
imageUrl: `https://olimpo.bet${(d = (m = b.background) != null ? m : b.imageUrl) != null ? d : ""}`,
|
|
954
954
|
size: "sm",
|
|
955
955
|
fillParent: !0,
|
|
956
|
-
onClick: () => a == null ? void 0 : a(b,
|
|
956
|
+
onClick: () => a == null ? void 0 : a(b, r + 1)
|
|
957
957
|
}
|
|
958
958
|
)
|
|
959
959
|
},
|
|
960
|
-
o ? `sk-${
|
|
960
|
+
o ? `sk-${r}` : b.id
|
|
961
961
|
);
|
|
962
962
|
})
|
|
963
963
|
]
|
|
@@ -980,8 +980,8 @@ const rn = ({
|
|
|
980
980
|
gap: `${ke}px`,
|
|
981
981
|
gridAutoFlow: "column"
|
|
982
982
|
},
|
|
983
|
-
children: (o ? Array.from({ length: i }) : e).map((g,
|
|
984
|
-
var b,
|
|
983
|
+
children: (o ? Array.from({ length: i }) : e).map((g, f) => {
|
|
984
|
+
var b, r, m;
|
|
985
985
|
return /* @__PURE__ */ t(
|
|
986
986
|
L,
|
|
987
987
|
{
|
|
@@ -989,14 +989,14 @@ const rn = ({
|
|
|
989
989
|
children: o ? /* @__PURE__ */ t($e, {}) : /* @__PURE__ */ t(
|
|
990
990
|
ye,
|
|
991
991
|
{
|
|
992
|
-
imageUrl: `https://olimpo.bet${(
|
|
992
|
+
imageUrl: `https://olimpo.bet${(r = (b = g.background) != null ? b : g.imageUrl) != null ? r : ""}`,
|
|
993
993
|
size: "sm",
|
|
994
994
|
fillParent: !0,
|
|
995
|
-
onClick: () => a == null ? void 0 : a(g,
|
|
995
|
+
onClick: () => a == null ? void 0 : a(g, f)
|
|
996
996
|
}
|
|
997
997
|
)
|
|
998
998
|
},
|
|
999
|
-
o ? `sk-${
|
|
999
|
+
o ? `sk-${f}` : (m = g.id) != null ? m : f
|
|
1000
1000
|
);
|
|
1001
1001
|
})
|
|
1002
1002
|
}
|
|
@@ -1007,12 +1007,12 @@ const rn = ({
|
|
|
1007
1007
|
subtitle: a,
|
|
1008
1008
|
buttonText: o,
|
|
1009
1009
|
onButtonClick: i,
|
|
1010
|
-
backgroundImage:
|
|
1010
|
+
backgroundImage: l,
|
|
1011
1011
|
alt: s,
|
|
1012
1012
|
className: g = "",
|
|
1013
|
-
variant:
|
|
1013
|
+
variant: f = "small"
|
|
1014
1014
|
}) => {
|
|
1015
|
-
const b = n ? n.slice(0, 2) : "",
|
|
1015
|
+
const b = n ? n.slice(0, 2) : "", r = n ? n.slice(2) : "", m = f === "large";
|
|
1016
1016
|
return /* @__PURE__ */ p(
|
|
1017
1017
|
L,
|
|
1018
1018
|
{
|
|
@@ -1022,12 +1022,12 @@ const rn = ({
|
|
|
1022
1022
|
width: "100%",
|
|
1023
1023
|
maxWidth: {
|
|
1024
1024
|
xs: 328,
|
|
1025
|
-
md:
|
|
1025
|
+
md: m ? 618 : 456
|
|
1026
1026
|
},
|
|
1027
1027
|
mx: "auto"
|
|
1028
1028
|
},
|
|
1029
1029
|
children: [
|
|
1030
|
-
|
|
1030
|
+
l && /* @__PURE__ */ t(
|
|
1031
1031
|
L,
|
|
1032
1032
|
{
|
|
1033
1033
|
sx: {
|
|
@@ -1035,7 +1035,7 @@ const rn = ({
|
|
|
1035
1035
|
width: "100%",
|
|
1036
1036
|
aspectRatio: {
|
|
1037
1037
|
xs: "328 / 188",
|
|
1038
|
-
md:
|
|
1038
|
+
md: m ? "618 / 346" : "456 / 272"
|
|
1039
1039
|
},
|
|
1040
1040
|
borderRadius: "14px",
|
|
1041
1041
|
overflow: "hidden"
|
|
@@ -1044,7 +1044,7 @@ const rn = ({
|
|
|
1044
1044
|
L,
|
|
1045
1045
|
{
|
|
1046
1046
|
component: "img",
|
|
1047
|
-
src:
|
|
1047
|
+
src: l,
|
|
1048
1048
|
alt: s != null ? s : "Fondo promocional",
|
|
1049
1049
|
sx: {
|
|
1050
1050
|
width: "100%",
|
|
@@ -1126,7 +1126,7 @@ const rn = ({
|
|
|
1126
1126
|
{
|
|
1127
1127
|
component: "span",
|
|
1128
1128
|
sx: { fontSize: { xs: 52, md: 77 } },
|
|
1129
|
-
children:
|
|
1129
|
+
children: r
|
|
1130
1130
|
}
|
|
1131
1131
|
)
|
|
1132
1132
|
]
|
|
@@ -1159,7 +1159,7 @@ const rn = ({
|
|
|
1159
1159
|
onClick: a,
|
|
1160
1160
|
imgAlt: o = "Club Olimpo",
|
|
1161
1161
|
imgSrcMobile: i,
|
|
1162
|
-
imgSrcDesktopBg:
|
|
1162
|
+
imgSrcDesktopBg: l,
|
|
1163
1163
|
imgSrcDesktopLogo: s
|
|
1164
1164
|
}) => /* @__PURE__ */ p(ee, { children: [
|
|
1165
1165
|
/* @__PURE__ */ t("div", { className: "orc-co-bgMobile", children: /* @__PURE__ */ t(
|
|
@@ -1171,10 +1171,10 @@ const rn = ({
|
|
|
1171
1171
|
}
|
|
1172
1172
|
) }),
|
|
1173
1173
|
/* @__PURE__ */ p("div", { className: "orc-co-bgDesktop", children: [
|
|
1174
|
-
|
|
1174
|
+
l && /* @__PURE__ */ t("div", { className: "orc-co-fillHost", children: /* @__PURE__ */ t(
|
|
1175
1175
|
"img",
|
|
1176
1176
|
{
|
|
1177
|
-
src:
|
|
1177
|
+
src: l,
|
|
1178
1178
|
alt: `${o} fondo`,
|
|
1179
1179
|
className: "orc-co-bgDesktopImg"
|
|
1180
1180
|
}
|
|
@@ -1250,85 +1250,85 @@ const ot = pt(void 0), Me = ({ children: e, docId: n }) => {
|
|
|
1250
1250
|
function yn({ coupon: e }) {
|
|
1251
1251
|
var b;
|
|
1252
1252
|
const n = J(), a = X();
|
|
1253
|
-
function o(
|
|
1253
|
+
function o(r) {
|
|
1254
1254
|
var y, _;
|
|
1255
|
-
const
|
|
1255
|
+
const m = [], d = Array.from(
|
|
1256
1256
|
new Map(
|
|
1257
|
-
((y =
|
|
1257
|
+
((y = r == null ? void 0 : r.events) != null ? y : []).filter(Boolean).map((T) => [T.id, T])
|
|
1258
1258
|
).values()
|
|
1259
1259
|
);
|
|
1260
|
-
return
|
|
1261
|
-
var
|
|
1262
|
-
const C = (
|
|
1260
|
+
return d.forEach((T) => {
|
|
1261
|
+
var O;
|
|
1262
|
+
const C = (O = T.betoffers) != null ? O : [], B = T.homeName, $ = T.awayName;
|
|
1263
1263
|
C.forEach((A) => {
|
|
1264
|
-
var R, z,
|
|
1264
|
+
var R, z, w, I, F, h, c;
|
|
1265
1265
|
if (!((R = A == null ? void 0 : A.outcomes) != null && R.length)) return;
|
|
1266
|
-
const
|
|
1267
|
-
if (!
|
|
1268
|
-
let
|
|
1269
|
-
const
|
|
1270
|
-
["Más de", "Mas de", "Over"].includes(
|
|
1271
|
-
id:
|
|
1272
|
-
value:
|
|
1273
|
-
label: (
|
|
1274
|
-
odds: (
|
|
1275
|
-
position: (c =
|
|
1276
|
-
eventId:
|
|
1266
|
+
const M = A.outcomes[0];
|
|
1267
|
+
if (!M) return;
|
|
1268
|
+
let N = "";
|
|
1269
|
+
const S = M != null && M.line ? M.line / 1e3 : "";
|
|
1270
|
+
["Más de", "Mas de", "Over"].includes(M.label) ? (N = `Más de ${S}`, M.participant && (N = `${M.participant} - ${N}`)) : ["Menos de", "Menos", "Under"].includes(M.label) ? (N = `Menos de ${S}`, M.participant && (N = `${M.participant} - ${N}`)) : ["Sí", "No"].includes(M.label) ? (N = M.label, M.participant && (N = `${M.participant} - ${N}`)) : ["1X", "12", "X2"].includes(M.label) ? (M.label === "1X" && (N = `${B} o Empate`), M.label === "12" && (N = `${B} o ${$}`), M.label === "X2" && (N = `${$} o Empate`)) : (N = (w = (z = M.participant) != null ? z : M.label) != null ? w : "", S !== "" && N === M.label && (N = `${M.label} ${S}`)), m.push({
|
|
1271
|
+
id: M.id,
|
|
1272
|
+
value: N,
|
|
1273
|
+
label: (F = (I = A.criterion) == null ? void 0 : I.label) != null ? F : "",
|
|
1274
|
+
odds: (h = M.odds) != null ? h : 0,
|
|
1275
|
+
position: (c = M.position) != null ? c : 0,
|
|
1276
|
+
eventId: T.id
|
|
1277
1277
|
});
|
|
1278
1278
|
});
|
|
1279
1279
|
}), {
|
|
1280
|
-
outcomes:
|
|
1281
|
-
total: Number((_ =
|
|
1280
|
+
outcomes: m.sort((T, C) => T.position - C.position),
|
|
1281
|
+
total: Number((_ = r == null ? void 0 : r.combinadoTotal) != null ? _ : 0).toLocaleString("en-US", {
|
|
1282
1282
|
minimumFractionDigits: 2,
|
|
1283
1283
|
maximumFractionDigits: 2
|
|
1284
1284
|
}),
|
|
1285
|
-
events:
|
|
1285
|
+
events: d
|
|
1286
1286
|
};
|
|
1287
1287
|
}
|
|
1288
|
-
function i(
|
|
1289
|
-
if (!
|
|
1288
|
+
function i(r) {
|
|
1289
|
+
if (!r || !Array.isArray(r.events) || r.events.length === 0)
|
|
1290
1290
|
return "/deportes#home";
|
|
1291
|
-
const
|
|
1292
|
-
if (
|
|
1293
|
-
return `/deportes#event/${
|
|
1294
|
-
const
|
|
1295
|
-
if (
|
|
1296
|
-
const _ =
|
|
1291
|
+
const m = r.events;
|
|
1292
|
+
if (m.length === 1)
|
|
1293
|
+
return `/deportes#event/${m[0].id}`;
|
|
1294
|
+
const d = m[0].groupId;
|
|
1295
|
+
if (m.every((_) => _.groupId === d)) {
|
|
1296
|
+
const _ = m[0].path;
|
|
1297
1297
|
if (Array.isArray(_) && _.length > 0)
|
|
1298
1298
|
return `/deportes#sports-hub/${_.map((C) => C.termKey).filter(Boolean).join("/")}`;
|
|
1299
1299
|
}
|
|
1300
1300
|
return "/deportes#home";
|
|
1301
1301
|
}
|
|
1302
|
-
const
|
|
1303
|
-
const
|
|
1302
|
+
const l = (r, m) => {
|
|
1303
|
+
const d = Array.isArray(r) ? r : [r], y = Array.from(
|
|
1304
1304
|
new Set(
|
|
1305
1305
|
s.outcomes.map((C) => {
|
|
1306
|
-
var
|
|
1307
|
-
const
|
|
1308
|
-
return (
|
|
1306
|
+
var $;
|
|
1307
|
+
const B = f.get(Number(C.eventId));
|
|
1308
|
+
return ($ = B == null ? void 0 : B.name) != null ? $ : "";
|
|
1309
1309
|
})
|
|
1310
1310
|
)
|
|
1311
|
-
).filter(Boolean), _ = y.length > 0 ? y.join(" + ") : JSON.stringify(
|
|
1311
|
+
).filter(Boolean), _ = y.length > 0 ? y.join(" + ") : JSON.stringify(d), T = m ? `${_} - Cuota: ${m}` : _;
|
|
1312
1312
|
n({
|
|
1313
1313
|
element: "evento_semana_outcome",
|
|
1314
|
-
label: `Landing: ${a} - OraculoEventCombinadasCard - Click: ${
|
|
1314
|
+
label: `Landing: ${a} - OraculoEventCombinadasCard - Click: ${T}`,
|
|
1315
1315
|
target: "/deportes#in-play",
|
|
1316
1316
|
event_type: "click",
|
|
1317
1317
|
module_id: 301,
|
|
1318
1318
|
metadata: {
|
|
1319
1319
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1320
1320
|
},
|
|
1321
|
-
tags: { section: "OraculoEventCombinadasCard", outcomes:
|
|
1322
|
-
}), Le(i(e),
|
|
1321
|
+
tags: { section: "OraculoEventCombinadasCard", outcomes: T }
|
|
1322
|
+
}), Le(i(e), r);
|
|
1323
1323
|
};
|
|
1324
1324
|
if (!((b = e == null ? void 0 : e.events) != null && b.length)) return null;
|
|
1325
|
-
const s = o(e), g = s.outcomes.reduce((
|
|
1326
|
-
s.events.map((
|
|
1325
|
+
const s = o(e), g = s.outcomes.reduce((r, m) => (r[m.eventId] || (r[m.eventId] = []), r[m.eventId].push(m), r), {}), f = new Map(
|
|
1326
|
+
s.events.map((r) => [r.id, r])
|
|
1327
1327
|
);
|
|
1328
1328
|
return /* @__PURE__ */ p("div", { className: te.card, children: [
|
|
1329
|
-
/* @__PURE__ */ t("div", { className: te.combinadas, children: /* @__PURE__ */ t("div", { className: te.combinadasScroll, children: /* @__PURE__ */ t(V, { direction: "column", spacing: 1.5, useFlexGap: !0, children: Object.entries(g).reverse().map(([
|
|
1330
|
-
const
|
|
1331
|
-
return
|
|
1329
|
+
/* @__PURE__ */ t("div", { className: te.combinadas, children: /* @__PURE__ */ t("div", { className: te.combinadasScroll, children: /* @__PURE__ */ t(V, { direction: "column", spacing: 1.5, useFlexGap: !0, children: Object.entries(g).reverse().map(([r, m]) => {
|
|
1330
|
+
const d = f.get(Number(r));
|
|
1331
|
+
return d ? /* @__PURE__ */ p(
|
|
1332
1332
|
V,
|
|
1333
1333
|
{
|
|
1334
1334
|
direction: "column",
|
|
@@ -1338,7 +1338,7 @@ function yn({ coupon: e }) {
|
|
|
1338
1338
|
/* @__PURE__ */ t(
|
|
1339
1339
|
le,
|
|
1340
1340
|
{
|
|
1341
|
-
title:
|
|
1341
|
+
title: d.name,
|
|
1342
1342
|
iconUrl: "/assets/img/home/Combinadas/pelota.png",
|
|
1343
1343
|
size: "xs"
|
|
1344
1344
|
}
|
|
@@ -1350,27 +1350,27 @@ function yn({ coupon: e }) {
|
|
|
1350
1350
|
src: "/assets/img/home/Combinadas/line.png"
|
|
1351
1351
|
}
|
|
1352
1352
|
),
|
|
1353
|
-
|
|
1353
|
+
m.map((y, _) => /* @__PURE__ */ p("div", { className: te.apuestaItem, children: [
|
|
1354
1354
|
/* @__PURE__ */ p("div", { className: te.lineContainer, children: [
|
|
1355
1355
|
/* @__PURE__ */ t("div", { className: te.circle }),
|
|
1356
|
-
_ <
|
|
1356
|
+
_ < m.length - 1 && /* @__PURE__ */ t("div", { className: te.line })
|
|
1357
1357
|
] }),
|
|
1358
1358
|
/* @__PURE__ */ p("div", { className: te.apuestaText, children: [
|
|
1359
1359
|
/* @__PURE__ */ t("strong", { children: y.value }),
|
|
1360
1360
|
" | ",
|
|
1361
1361
|
y.label
|
|
1362
1362
|
] })
|
|
1363
|
-
] }, `${
|
|
1363
|
+
] }, `${r}-${_}`))
|
|
1364
1364
|
]
|
|
1365
1365
|
},
|
|
1366
|
-
|
|
1366
|
+
r
|
|
1367
1367
|
) : null;
|
|
1368
1368
|
}) }) }) }),
|
|
1369
1369
|
/* @__PURE__ */ p(
|
|
1370
1370
|
"button",
|
|
1371
1371
|
{
|
|
1372
|
-
onClick: () =>
|
|
1373
|
-
s.outcomes.map((
|
|
1372
|
+
onClick: () => l(
|
|
1373
|
+
s.outcomes.map((r) => r.id),
|
|
1374
1374
|
s.total
|
|
1375
1375
|
),
|
|
1376
1376
|
className: te.cuotaTotal,
|
|
@@ -1412,56 +1412,56 @@ function xn({
|
|
|
1412
1412
|
href: a,
|
|
1413
1413
|
target: o,
|
|
1414
1414
|
rel: i,
|
|
1415
|
-
type:
|
|
1415
|
+
type: l = "button",
|
|
1416
1416
|
disabled: s = !1,
|
|
1417
1417
|
variant: g = "primary",
|
|
1418
|
-
size:
|
|
1418
|
+
size: f,
|
|
1419
1419
|
fullWidth: b = !1,
|
|
1420
|
-
fullHeight:
|
|
1421
|
-
className:
|
|
1422
|
-
ariaLabel:
|
|
1420
|
+
fullHeight: r = !1,
|
|
1421
|
+
className: m = "",
|
|
1422
|
+
ariaLabel: d,
|
|
1423
1423
|
leftIcon: y,
|
|
1424
1424
|
rightIcon: _,
|
|
1425
|
-
iconOnly:
|
|
1425
|
+
iconOnly: T
|
|
1426
1426
|
}) {
|
|
1427
|
-
const C = !!e && e !== !0,
|
|
1427
|
+
const C = !!e && e !== !0, O = (!!y ? 1 : 0) + (!!_ ? 1 : 0) == 1, A = T != null ? T : O && !C, M = [
|
|
1428
1428
|
ne["orc-btn"],
|
|
1429
1429
|
// base
|
|
1430
1430
|
ne[`orc-btn--${g}`],
|
|
1431
1431
|
// variant primary/secondary/tertiary
|
|
1432
|
-
|
|
1432
|
+
f ? ne[`orc-btn--${f}`] : "",
|
|
1433
1433
|
// sm / md / lg
|
|
1434
1434
|
b ? ne["orc-btn--full"] : "",
|
|
1435
|
-
|
|
1435
|
+
r ? ne["orc-btn--fullHeight"] : "",
|
|
1436
1436
|
A ? ne["orc-btn--iconOnly"] : "",
|
|
1437
|
-
|
|
1438
|
-
].filter(Boolean).join(" "),
|
|
1437
|
+
m
|
|
1438
|
+
].filter(Boolean).join(" "), N = /* @__PURE__ */ p(ee, { children: [
|
|
1439
1439
|
y && /* @__PURE__ */ t("span", { className: ne["orc-btn__icon"], children: y }),
|
|
1440
1440
|
!A && /* @__PURE__ */ t("span", { className: ne["orc-btn__label"], children: e }),
|
|
1441
1441
|
_ && /* @__PURE__ */ t("span", { className: ne["orc-btn__icon"], children: _ })
|
|
1442
|
-
] }),
|
|
1442
|
+
] }), S = s ? !0 : void 0;
|
|
1443
1443
|
return a ? /* @__PURE__ */ t(
|
|
1444
1444
|
He,
|
|
1445
1445
|
{
|
|
1446
1446
|
href: a,
|
|
1447
1447
|
target: o,
|
|
1448
1448
|
rel: i,
|
|
1449
|
-
"aria-label":
|
|
1450
|
-
"aria-disabled":
|
|
1451
|
-
tabIndex:
|
|
1452
|
-
className:
|
|
1453
|
-
onClick:
|
|
1454
|
-
children:
|
|
1449
|
+
"aria-label": d,
|
|
1450
|
+
"aria-disabled": S,
|
|
1451
|
+
tabIndex: S ? -1 : void 0,
|
|
1452
|
+
className: M,
|
|
1453
|
+
onClick: S ? (R) => R.preventDefault() : n,
|
|
1454
|
+
children: N
|
|
1455
1455
|
}
|
|
1456
1456
|
) : /* @__PURE__ */ t(
|
|
1457
1457
|
"button",
|
|
1458
1458
|
{
|
|
1459
|
-
type:
|
|
1459
|
+
type: l,
|
|
1460
1460
|
onClick: n,
|
|
1461
|
-
disabled: !!
|
|
1462
|
-
"aria-label":
|
|
1463
|
-
className:
|
|
1464
|
-
children:
|
|
1461
|
+
disabled: !!S,
|
|
1462
|
+
"aria-label": d,
|
|
1463
|
+
className: M,
|
|
1464
|
+
children: N
|
|
1465
1465
|
}
|
|
1466
1466
|
);
|
|
1467
1467
|
}
|
|
@@ -1482,22 +1482,22 @@ const wn = "oraculo__OraculoEventEnVivoCard-module__cardWrapper___6b-cT", Sn = "
|
|
|
1482
1482
|
real: !1,
|
|
1483
1483
|
type: "short_sleeves"
|
|
1484
1484
|
}, Ce = (e, n, a = "player") => {
|
|
1485
|
-
var i,
|
|
1485
|
+
var i, l;
|
|
1486
1486
|
if (e === void 0)
|
|
1487
1487
|
return null;
|
|
1488
1488
|
if (e === null)
|
|
1489
1489
|
return n === "home" ? Pe : ze;
|
|
1490
|
-
const o = (
|
|
1490
|
+
const o = (l = (i = e == null ? void 0 : e.jerseys) == null ? void 0 : i[n]) == null ? void 0 : l[a];
|
|
1491
1491
|
return o || (n === "home" ? Pe : ze);
|
|
1492
1492
|
};
|
|
1493
1493
|
function On({ event: e, liveData: n, betOffers: a, jersey: o }) {
|
|
1494
|
-
var g,
|
|
1494
|
+
var g, f, b, r, m, d, y, _, T, C, B;
|
|
1495
1495
|
const i = a == null ? void 0 : a.find(
|
|
1496
|
-
(
|
|
1497
|
-
var
|
|
1498
|
-
return ((
|
|
1496
|
+
($) => {
|
|
1497
|
+
var O;
|
|
1498
|
+
return ((O = $.betOfferType) == null ? void 0 : O.id) === 2;
|
|
1499
1499
|
}
|
|
1500
|
-
),
|
|
1500
|
+
), l = {
|
|
1501
1501
|
englishLabel: "",
|
|
1502
1502
|
type: "",
|
|
1503
1503
|
betOfferId: 0,
|
|
@@ -1507,32 +1507,32 @@ function On({ event: e, liveData: n, betOffers: a, jersey: o }) {
|
|
|
1507
1507
|
status: "INACTIVE",
|
|
1508
1508
|
cashOutStatus: "SUSPENDED"
|
|
1509
1509
|
}, s = [
|
|
1510
|
-
{ ...
|
|
1511
|
-
{ ...
|
|
1512
|
-
{ ...
|
|
1510
|
+
{ ...l, id: -1, label: "1", odds: void 0 },
|
|
1511
|
+
{ ...l, id: -2, label: "X", odds: void 0 },
|
|
1512
|
+
{ ...l, id: -3, label: "2", odds: void 0 }
|
|
1513
1513
|
];
|
|
1514
1514
|
return /* @__PURE__ */ t("div", { className: xe.cardWrapper, children: /* @__PURE__ */ p(V, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1515
1515
|
/* @__PURE__ */ p(V, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
1516
1516
|
/* @__PURE__ */ t(
|
|
1517
1517
|
$t,
|
|
1518
1518
|
{
|
|
1519
|
-
title: (b = (
|
|
1520
|
-
subtitle: (
|
|
1519
|
+
title: (b = (f = (g = e == null ? void 0 : e.path) == null ? void 0 : g[0]) == null ? void 0 : f.name) != null ? b : "",
|
|
1520
|
+
subtitle: (r = e == null ? void 0 : e.group) != null ? r : "",
|
|
1521
1521
|
live: !0,
|
|
1522
|
-
time: ((
|
|
1522
|
+
time: ((m = n == null ? void 0 : n.matchClock) == null ? void 0 : m.minute) != null ? `${n.matchClock.minute}'` : ""
|
|
1523
1523
|
}
|
|
1524
1524
|
),
|
|
1525
1525
|
/* @__PURE__ */ t("div", { style: { padding: "0 4px" }, children: /* @__PURE__ */ p(oe, { spacing: 1.5, columns: "1fr auto 1fr", children: [
|
|
1526
1526
|
/* @__PURE__ */ t(Se, { name: e == null ? void 0 : e.homeName, jersey: Ce(o, "home") }),
|
|
1527
|
-
/* @__PURE__ */ t(et, { text: ((y = (
|
|
1527
|
+
/* @__PURE__ */ t(et, { text: ((y = (d = n == null ? void 0 : n.score) == null ? void 0 : d.home) != null ? y : 0) + ":" + ((T = (_ = n == null ? void 0 : n.score) == null ? void 0 : _.away) != null ? T : 0), name: "En vivo" }),
|
|
1528
1528
|
/* @__PURE__ */ t(Se, { name: e == null ? void 0 : e.awayName, jersey: Ce(o, "away") })
|
|
1529
1529
|
] }) })
|
|
1530
1530
|
] }),
|
|
1531
1531
|
/* @__PURE__ */ p(V, { direction: "column", spacing: 1, useFlexGap: !0, children: [
|
|
1532
|
-
/* @__PURE__ */ t(oe, { spacing: 1, children: ((C = i == null ? void 0 : i.outcomes) != null ? C : s).map((
|
|
1533
|
-
/* @__PURE__ */ t(oe, { spacing: 2, children: ((
|
|
1534
|
-
Le("/deportes#event/live/" + e.id,
|
|
1535
|
-
}, className: xe.customButtonDisabled, children: /* @__PURE__ */ t("span", { className: xe.customButtonLabel, children:
|
|
1532
|
+
/* @__PURE__ */ t(oe, { spacing: 1, children: ((C = i == null ? void 0 : i.outcomes) != null ? C : s).map(($, O) => /* @__PURE__ */ t(Ye, { text: $.label.toUpperCase() }, O)) }),
|
|
1533
|
+
/* @__PURE__ */ t(oe, { spacing: 2, children: ((B = i == null ? void 0 : i.outcomes) != null ? B : s).map(($, O) => /* @__PURE__ */ t(xn, { variant: "primary", disabled: $.odds == null || (i == null ? void 0 : i.cashOutStatus) == "SUSPENDED", onClick: () => {
|
|
1534
|
+
Le("/deportes#event/live/" + e.id, $.id);
|
|
1535
|
+
}, className: xe.customButtonDisabled, children: /* @__PURE__ */ t("span", { className: xe.customButtonLabel, children: $.odds === void 0 ? "" : ($.odds / 1e3).toFixed(2) }) }, O)) })
|
|
1536
1536
|
] })
|
|
1537
1537
|
] }) });
|
|
1538
1538
|
}
|
|
@@ -1549,25 +1549,25 @@ const kn = "oraculo__OraculoEventSemanaCard-module__cardContainer___4JuDe", $n =
|
|
|
1549
1549
|
equipos: Mn
|
|
1550
1550
|
};
|
|
1551
1551
|
function Bn({ event: e, jersey: n }) {
|
|
1552
|
-
var s, g,
|
|
1552
|
+
var s, g, f, b, r, m, d;
|
|
1553
1553
|
const a = J(), o = X();
|
|
1554
1554
|
function i(y) {
|
|
1555
|
-
const _ = new Date(y),
|
|
1556
|
-
let
|
|
1557
|
-
return
|
|
1555
|
+
const _ = new Date(y), T = _.toLocaleDateString("es-ES", { weekday: "short" }).toUpperCase(), C = _.getDate().toString().padStart(2, "0"), B = (_.getMonth() + 1).toString().padStart(2, "0");
|
|
1556
|
+
let $ = _.toLocaleTimeString("es-PE", { hour: "numeric", minute: "2-digit", hour12: !0 }).toUpperCase();
|
|
1557
|
+
return $ = $.replace(/\./g, "").replace(/A\s*M/i, "AM").replace(/P\s*M/i, "PM"), `${T} ${C}/${B} | ${$}`;
|
|
1558
1558
|
}
|
|
1559
|
-
const
|
|
1560
|
-
const
|
|
1559
|
+
const l = (y, _) => {
|
|
1560
|
+
const T = `${e.homeName} vs ${e.awayName}`, C = _ ? (_ / 1e3).toFixed(2) : "", B = C ? `${T} - Cuota: ${C}` : T;
|
|
1561
1561
|
a({
|
|
1562
1562
|
element: "evento_semana_outcome",
|
|
1563
|
-
label: `Landing: ${o} - OraculoEventSemanaCard - Click: ${
|
|
1563
|
+
label: `Landing: ${o} - OraculoEventSemanaCard - Click: ${B}`,
|
|
1564
1564
|
target: "/deportes#in-play",
|
|
1565
1565
|
event_type: "click",
|
|
1566
1566
|
module_id: 301,
|
|
1567
1567
|
metadata: {
|
|
1568
1568
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1569
1569
|
},
|
|
1570
|
-
tags: { section: "OraculoEventSemanaCard", outcomes:
|
|
1570
|
+
tags: { section: "OraculoEventSemanaCard", outcomes: B }
|
|
1571
1571
|
}), Le("/deportes#event/" + e.id, y);
|
|
1572
1572
|
};
|
|
1573
1573
|
return /* @__PURE__ */ p("div", { className: ce.cardContainer, children: [
|
|
@@ -1582,9 +1582,9 @@ function Bn({ event: e, jersey: n }) {
|
|
|
1582
1582
|
/* @__PURE__ */ t(Tn, { text: i(e.start) })
|
|
1583
1583
|
] }),
|
|
1584
1584
|
/* @__PURE__ */ p(V, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
1585
|
-
/* @__PURE__ */ t(oe, { spacing: 1, children: ((b = (
|
|
1586
|
-
/* @__PURE__ */ t("div", { className: ce.jugadas, children: /* @__PURE__ */ t(oe, { spacing: 1, children: ((
|
|
1587
|
-
|
|
1585
|
+
/* @__PURE__ */ t(oe, { spacing: 1, children: ((b = (f = (g = e == null ? void 0 : e.outcome) == null ? void 0 : g[0]) == null ? void 0 : f.outcomes) != null ? b : []).map((y, _) => /* @__PURE__ */ t(Ye, { text: y.label.toUpperCase() }, _)) }),
|
|
1586
|
+
/* @__PURE__ */ t("div", { className: ce.jugadas, children: /* @__PURE__ */ t(oe, { spacing: 1, children: ((d = (m = (r = e == null ? void 0 : e.outcome) == null ? void 0 : r[0]) == null ? void 0 : m.outcomes) != null ? d : []).map((y, _) => /* @__PURE__ */ t(W, { variant: "primary", fullHeight: !0, onClick: () => {
|
|
1587
|
+
l(y.id, y.odds);
|
|
1588
1588
|
}, children: (y.odds / 1e3).toFixed(2) }, _)) }) })
|
|
1589
1589
|
] })
|
|
1590
1590
|
] }) })
|
|
@@ -1597,9 +1597,9 @@ function Ln({
|
|
|
1597
1597
|
onViewMore: o,
|
|
1598
1598
|
className: i = ""
|
|
1599
1599
|
}) {
|
|
1600
|
-
const
|
|
1600
|
+
const l = U(null), [s, g] = D({ isStart: !0, isEnd: !1 }), f = J(), b = X(), r = !e || e.length === 0, m = () => {
|
|
1601
1601
|
var C;
|
|
1602
|
-
|
|
1602
|
+
f({
|
|
1603
1603
|
element: "destacados_carousel_prev",
|
|
1604
1604
|
label: `Landing: ${b} - OraculoSeccionDestacados - Anterior`,
|
|
1605
1605
|
target: "carousel",
|
|
@@ -1609,10 +1609,10 @@ function Ln({
|
|
|
1609
1609
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1610
1610
|
},
|
|
1611
1611
|
tags: { section: "OraculoSeccionDestacados" }
|
|
1612
|
-
}), (C =
|
|
1613
|
-
},
|
|
1612
|
+
}), (C = l.current) == null || C.prev();
|
|
1613
|
+
}, d = () => {
|
|
1614
1614
|
var C;
|
|
1615
|
-
|
|
1615
|
+
f({
|
|
1616
1616
|
element: "destacados_carousel_next",
|
|
1617
1617
|
label: `Landing: ${b} - OraculoSeccionDestacados - Siguiente`,
|
|
1618
1618
|
target: "carousel",
|
|
@@ -1622,9 +1622,9 @@ function Ln({
|
|
|
1622
1622
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1623
1623
|
},
|
|
1624
1624
|
tags: { section: "OraculoSeccionDestacados" }
|
|
1625
|
-
}), (C =
|
|
1625
|
+
}), (C = l.current) == null || C.next();
|
|
1626
1626
|
}, y = () => {
|
|
1627
|
-
|
|
1627
|
+
f({
|
|
1628
1628
|
element: "destacados_view_more",
|
|
1629
1629
|
label: `Landing: ${b} - OraculoSeccionDestacados - Ver más`,
|
|
1630
1630
|
target: "https://www.olimpo.bet/promociones",
|
|
@@ -1637,11 +1637,11 @@ function Ln({
|
|
|
1637
1637
|
}), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/promociones");
|
|
1638
1638
|
}, _ = (C) => {
|
|
1639
1639
|
if (!C) return;
|
|
1640
|
-
const
|
|
1641
|
-
|
|
1640
|
+
const $ = `https://www.olimpo.bet/promociones/${encodeURIComponent(C)}`;
|
|
1641
|
+
f({
|
|
1642
1642
|
element: "destacados_card",
|
|
1643
1643
|
label: `Landing: ${b} - OraculoSeccionDestacados - Click: ${String(C)}`,
|
|
1644
|
-
target:
|
|
1644
|
+
target: $,
|
|
1645
1645
|
event_type: "click",
|
|
1646
1646
|
module_id: 301,
|
|
1647
1647
|
metadata: {
|
|
@@ -1651,7 +1651,7 @@ function Ln({
|
|
|
1651
1651
|
section: "OraculoSeccionDestacados",
|
|
1652
1652
|
promotion: String(C)
|
|
1653
1653
|
}
|
|
1654
|
-
}), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(
|
|
1654
|
+
}), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign($);
|
|
1655
1655
|
};
|
|
1656
1656
|
return /* @__PURE__ */ p("section", { className: i || void 0, style: { width: "100%" }, children: [
|
|
1657
1657
|
/* @__PURE__ */ p(
|
|
@@ -1677,8 +1677,8 @@ function Ln({
|
|
|
1677
1677
|
variant: "secondary",
|
|
1678
1678
|
iconOnly: !0,
|
|
1679
1679
|
leftIcon: /* @__PURE__ */ t(Ee, {}),
|
|
1680
|
-
onClick:
|
|
1681
|
-
disabled: s.isStart ||
|
|
1680
|
+
onClick: m,
|
|
1681
|
+
disabled: s.isStart || r
|
|
1682
1682
|
}
|
|
1683
1683
|
),
|
|
1684
1684
|
/* @__PURE__ */ t(
|
|
@@ -1688,8 +1688,8 @@ function Ln({
|
|
|
1688
1688
|
variant: "secondary",
|
|
1689
1689
|
iconOnly: !0,
|
|
1690
1690
|
rightIcon: /* @__PURE__ */ t(Ie, {}),
|
|
1691
|
-
onClick:
|
|
1692
|
-
disabled: s.isEnd ||
|
|
1691
|
+
onClick: d,
|
|
1692
|
+
disabled: s.isEnd || r
|
|
1693
1693
|
}
|
|
1694
1694
|
)
|
|
1695
1695
|
] }),
|
|
@@ -1700,7 +1700,7 @@ function Ln({
|
|
|
1700
1700
|
/* @__PURE__ */ t(
|
|
1701
1701
|
se,
|
|
1702
1702
|
{
|
|
1703
|
-
ref:
|
|
1703
|
+
ref: l,
|
|
1704
1704
|
items: e,
|
|
1705
1705
|
perPage: void 0,
|
|
1706
1706
|
gap: "16px",
|
|
@@ -1737,8 +1737,8 @@ function Ln({
|
|
|
1737
1737
|
},
|
|
1738
1738
|
`${C.title}-${C.image}`
|
|
1739
1739
|
),
|
|
1740
|
-
onMove: ({ isStart: C, isEnd:
|
|
1741
|
-
g({ isStart: C, isEnd:
|
|
1740
|
+
onMove: ({ isStart: C, isEnd: B }) => {
|
|
1741
|
+
g({ isStart: C, isEnd: B }), f({
|
|
1742
1742
|
element: "destacados_carousel_slide",
|
|
1743
1743
|
label: "OraculoSeccionDestacados - Slide Carousel",
|
|
1744
1744
|
target: "carousel",
|
|
@@ -1747,7 +1747,7 @@ function Ln({
|
|
|
1747
1747
|
metadata: {
|
|
1748
1748
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
1749
1749
|
isStart: C,
|
|
1750
|
-
isEnd:
|
|
1750
|
+
isEnd: B
|
|
1751
1751
|
},
|
|
1752
1752
|
tags: { section: "OraculoSeccionDestacados" }
|
|
1753
1753
|
});
|
|
@@ -1764,7 +1764,7 @@ function it() {
|
|
|
1764
1764
|
function An(e) {
|
|
1765
1765
|
it().extras = e;
|
|
1766
1766
|
}
|
|
1767
|
-
function
|
|
1767
|
+
function ie(e) {
|
|
1768
1768
|
var n;
|
|
1769
1769
|
return (n = it().extras) == null ? void 0 : n[e];
|
|
1770
1770
|
}
|
|
@@ -1777,34 +1777,34 @@ function Fn({
|
|
|
1777
1777
|
iconUrl: a,
|
|
1778
1778
|
onCardClick: o
|
|
1779
1779
|
}) {
|
|
1780
|
-
const i = J(),
|
|
1781
|
-
() => (e != null ? e : []).map((
|
|
1782
|
-
var
|
|
1780
|
+
const i = J(), l = X(), s = Q(
|
|
1781
|
+
() => (e != null ? e : []).map((r, m) => {
|
|
1782
|
+
var d;
|
|
1783
1783
|
return {
|
|
1784
|
-
...
|
|
1785
|
-
orden: (
|
|
1786
|
-
_originalIndex:
|
|
1784
|
+
...r,
|
|
1785
|
+
orden: (d = r.orden) != null ? d : m + 1,
|
|
1786
|
+
_originalIndex: m
|
|
1787
1787
|
};
|
|
1788
|
-
}).sort((
|
|
1788
|
+
}).sort((r, m) => r.orden != null && m.orden != null ? r.orden - m.orden : r._originalIndex - m._originalIndex),
|
|
1789
1789
|
[e]
|
|
1790
|
-
), g = !e || e.length === 0,
|
|
1790
|
+
), g = !e || e.length === 0, f = g ? Array.from({ length: 6 }) : s.slice(0, 6), b = (r) => {
|
|
1791
1791
|
i({
|
|
1792
1792
|
element: "top_juegos_card",
|
|
1793
|
-
label: `Landing: ${
|
|
1794
|
-
target: String(
|
|
1793
|
+
label: `Landing: ${l} - OraculoSeccionTopJuegos - Open game: ${String(r.machine || "unknown")}`,
|
|
1794
|
+
target: String(r.machine || "unknown"),
|
|
1795
1795
|
event_type: "click",
|
|
1796
1796
|
module_id: 301,
|
|
1797
1797
|
metadata: {
|
|
1798
1798
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1799
1799
|
},
|
|
1800
1800
|
tags: {
|
|
1801
|
-
game_name: String(
|
|
1801
|
+
game_name: String(r.machine || "unknown"),
|
|
1802
1802
|
section: "OraculoSeccionTopJuegos"
|
|
1803
1803
|
}
|
|
1804
1804
|
});
|
|
1805
|
-
const
|
|
1806
|
-
|
|
1807
|
-
|
|
1805
|
+
const m = ie("showIframe"), d = ie("loadMachine");
|
|
1806
|
+
m == null || m(), requestAnimationFrame(() => {
|
|
1807
|
+
d == null || d(r, !1, "CASINO");
|
|
1808
1808
|
});
|
|
1809
1809
|
};
|
|
1810
1810
|
return /* @__PURE__ */ t("section", { style: { width: "100%" }, children: /* @__PURE__ */ p(V, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
@@ -1822,19 +1822,19 @@ function Fn({
|
|
|
1822
1822
|
justifyItems: "center",
|
|
1823
1823
|
width: "100%"
|
|
1824
1824
|
},
|
|
1825
|
-
children:
|
|
1826
|
-
var
|
|
1825
|
+
children: f.map((r, m) => {
|
|
1826
|
+
var d, y;
|
|
1827
1827
|
return /* @__PURE__ */ t(
|
|
1828
1828
|
on,
|
|
1829
1829
|
{
|
|
1830
|
-
imageUrl: g ? "" :
|
|
1831
|
-
orden: g ?
|
|
1830
|
+
imageUrl: g ? "" : r.background ? `https://olimpo.bet${r.background}` : `https://olimpo.bet${(d = r.logo) != null ? d : ""}`,
|
|
1831
|
+
orden: g ? m + 1 : r.orden,
|
|
1832
1832
|
loading: g,
|
|
1833
1833
|
onClick: g ? void 0 : () => {
|
|
1834
|
-
o == null || o(
|
|
1834
|
+
o == null || o(r), b(r);
|
|
1835
1835
|
}
|
|
1836
1836
|
},
|
|
1837
|
-
g ? `sk-${
|
|
1837
|
+
g ? `sk-${m}` : (y = r.machine) != null ? y : `${m}`
|
|
1838
1838
|
);
|
|
1839
1839
|
})
|
|
1840
1840
|
}
|
|
@@ -1850,43 +1850,43 @@ const Pn = (e, n) => {
|
|
|
1850
1850
|
subtitle: a = "Disfruta la emoción en tus juegos favoritos y gana en tiempo real.",
|
|
1851
1851
|
backgroundMobileUrl: o = "",
|
|
1852
1852
|
onCardClick: i,
|
|
1853
|
-
backgroundDesktopUrl:
|
|
1853
|
+
backgroundDesktopUrl: l = "",
|
|
1854
1854
|
onViewMore: s,
|
|
1855
1855
|
className: g
|
|
1856
1856
|
}) => {
|
|
1857
|
-
const
|
|
1858
|
-
|
|
1857
|
+
const f = J(), b = X(), r = (d) => {
|
|
1858
|
+
f({
|
|
1859
1859
|
element: "live_casino_card",
|
|
1860
|
-
label: `Landing: ${b} - OraculoSeccionCasinoEnVivo - Open game: ${String(
|
|
1861
|
-
target: String(
|
|
1860
|
+
label: `Landing: ${b} - OraculoSeccionCasinoEnVivo - Open game: ${String(d.machine || "unknown")}`,
|
|
1861
|
+
target: String(d.machine || "unknown"),
|
|
1862
1862
|
event_type: "click",
|
|
1863
1863
|
module_id: 301,
|
|
1864
1864
|
metadata: {
|
|
1865
1865
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
1866
1866
|
},
|
|
1867
1867
|
tags: {
|
|
1868
|
-
game_name: String(
|
|
1869
|
-
provider:
|
|
1868
|
+
game_name: String(d.machine || "unknown"),
|
|
1869
|
+
provider: d.provider || "unknown",
|
|
1870
1870
|
section: "OraculoSeccionCasinoEnVivo"
|
|
1871
1871
|
}
|
|
1872
1872
|
});
|
|
1873
|
-
const y =
|
|
1873
|
+
const y = ie("showIframe"), _ = ie("loadMachine");
|
|
1874
1874
|
if (!_) {
|
|
1875
1875
|
if (i) {
|
|
1876
|
-
i(
|
|
1876
|
+
i(d);
|
|
1877
1877
|
return;
|
|
1878
1878
|
}
|
|
1879
1879
|
console.warn(
|
|
1880
1880
|
"[OraculoSeccionCasinoEnVivo] No existe loadMachine en extras ni onCardClick. No se puede abrir el juego.",
|
|
1881
|
-
{ machine:
|
|
1881
|
+
{ machine: d == null ? void 0 : d.machine, provider: d == null ? void 0 : d.provider }
|
|
1882
1882
|
);
|
|
1883
1883
|
return;
|
|
1884
1884
|
}
|
|
1885
1885
|
y == null || y(), typeof window != "undefined" && window.scrollTo({ top: 0, behavior: "smooth" }), requestAnimationFrame(() => {
|
|
1886
|
-
_ == null || _(
|
|
1886
|
+
_ == null || _(d, !1, "casino_en_vivo");
|
|
1887
1887
|
});
|
|
1888
|
-
},
|
|
1889
|
-
|
|
1888
|
+
}, m = () => {
|
|
1889
|
+
f({
|
|
1890
1890
|
element: "casino_en_vivo_view_more",
|
|
1891
1891
|
label: `Landing: ${b} - OraculoSeccionCasinoEnVivo - Ver más`,
|
|
1892
1892
|
target: "https://www.olimpo.bet/casino-en-vivo",
|
|
@@ -1924,7 +1924,7 @@ const Pn = (e, n) => {
|
|
|
1924
1924
|
md: `
|
|
1925
1925
|
linear-gradient(to bottom, #121212 0%, rgba(18,18,18,0) 10%),
|
|
1926
1926
|
linear-gradient(to top, #121212 0%, rgba(18,18,18,0) 10%),
|
|
1927
|
-
url('${
|
|
1927
|
+
url('${l}')
|
|
1928
1928
|
`
|
|
1929
1929
|
},
|
|
1930
1930
|
backgroundSize: "cover",
|
|
@@ -1983,7 +1983,7 @@ const Pn = (e, n) => {
|
|
|
1983
1983
|
{
|
|
1984
1984
|
variant: "primary",
|
|
1985
1985
|
size: "md",
|
|
1986
|
-
onClick:
|
|
1986
|
+
onClick: m,
|
|
1987
1987
|
children: "Ver más"
|
|
1988
1988
|
}
|
|
1989
1989
|
) })
|
|
@@ -1999,18 +1999,18 @@ const Pn = (e, n) => {
|
|
|
1999
1999
|
py: { xs: 3, md: 0 },
|
|
2000
2000
|
alignItems: "center"
|
|
2001
2001
|
},
|
|
2002
|
-
children: (e != null ? e : []).slice(0, 3).map((
|
|
2002
|
+
children: (e != null ? e : []).slice(0, 3).map((d, y) => {
|
|
2003
2003
|
var _;
|
|
2004
2004
|
return /* @__PURE__ */ t(
|
|
2005
2005
|
rn,
|
|
2006
2006
|
{
|
|
2007
|
-
logo: `https://olimpo.bet${
|
|
2008
|
-
provider:
|
|
2009
|
-
providerName:
|
|
2010
|
-
machine:
|
|
2011
|
-
onClick: () =>
|
|
2007
|
+
logo: `https://olimpo.bet${d.background ? d.background : (_ = d.logo) != null ? _ : ""}`,
|
|
2008
|
+
provider: d.provider,
|
|
2009
|
+
providerName: d.web_name,
|
|
2010
|
+
machine: d.machine,
|
|
2011
|
+
onClick: () => r(d)
|
|
2012
2012
|
},
|
|
2013
|
-
Pn(
|
|
2013
|
+
Pn(d, y)
|
|
2014
2014
|
);
|
|
2015
2015
|
})
|
|
2016
2016
|
}
|
|
@@ -2020,7 +2020,7 @@ const Pn = (e, n) => {
|
|
|
2020
2020
|
{
|
|
2021
2021
|
variant: "primary",
|
|
2022
2022
|
size: "lg",
|
|
2023
|
-
onClick:
|
|
2023
|
+
onClick: m,
|
|
2024
2024
|
children: "Ver más"
|
|
2025
2025
|
}
|
|
2026
2026
|
) })
|
|
@@ -2030,65 +2030,74 @@ const Pn = (e, n) => {
|
|
|
2030
2030
|
]
|
|
2031
2031
|
}
|
|
2032
2032
|
);
|
|
2033
|
-
}, Un = (e, n) => {
|
|
2034
|
-
var a, o, i,
|
|
2033
|
+
}, Un = "https://1v5raznji6.execute-api.us-east-1.amazonaws.com/dev/recommendations", qn = (e, n) => {
|
|
2034
|
+
var a, o, i, l, s, g, f, b, r, m, d;
|
|
2035
2035
|
return {
|
|
2036
2036
|
...e,
|
|
2037
2037
|
id: (a = e.id) != null ? a : n,
|
|
2038
2038
|
orden: (o = e.id) != null ? o : n,
|
|
2039
|
-
|
|
2039
|
+
machine: String(
|
|
2040
|
+
(s = (l = (i = e.id) != null ? i : e.machine) != null ? l : e.external_id) != null ? s : n
|
|
2041
|
+
),
|
|
2040
2042
|
logo: e.logo,
|
|
2041
|
-
room_name: (
|
|
2042
|
-
product: (
|
|
2043
|
-
service: (
|
|
2044
|
-
provider: (
|
|
2045
|
-
game_type: (
|
|
2046
|
-
external_id: (
|
|
2043
|
+
room_name: (g = e.room_name) != null ? g : "",
|
|
2044
|
+
product: (f = e.product) != null ? f : "",
|
|
2045
|
+
service: (b = e.service) != null ? b : "",
|
|
2046
|
+
provider: (r = e.provider) != null ? r : "",
|
|
2047
|
+
game_type: (m = e.game_type) != null ? m : null,
|
|
2048
|
+
external_id: (d = e.external_id) != null ? d : ""
|
|
2047
2049
|
};
|
|
2048
|
-
},
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2050
|
+
}, Vn = (e) => e ? !Array.isArray(e) && Array.isArray(e.recommendations) ? e.recommendations.filter(Boolean).map((n) => String(n)) : [] : [], Dn = () => {
|
|
2051
|
+
var n, a, o;
|
|
2052
|
+
const e = ie("user");
|
|
2053
|
+
return (o = (a = (n = e == null ? void 0 : e.userId) != null ? n : e == null ? void 0 : e.user) != null ? a : e == null ? void 0 : e.id) != null ? o : null;
|
|
2054
|
+
}, Wn = async () => {
|
|
2055
|
+
const e = Dn(), n = new URLSearchParams({
|
|
2056
|
+
userId: String(e),
|
|
2057
|
+
productType: "Casino",
|
|
2058
|
+
filter: "high-payout"
|
|
2059
|
+
}), a = `${Un}?${n.toString()}`, o = await fetch(a);
|
|
2060
|
+
if (!o.ok)
|
|
2061
|
+
throw new Error(
|
|
2062
|
+
`No se pudo obtener recomendaciones. HTTP ${o.status} ${o.statusText}`
|
|
2063
|
+
);
|
|
2064
|
+
return o.json();
|
|
2065
|
+
}, Gn = (e, n = !1) => {
|
|
2066
|
+
const [a, o] = D([]), [i, l] = D(!1);
|
|
2060
2067
|
return K(() => {
|
|
2061
2068
|
let s = !1;
|
|
2062
2069
|
return (async () => {
|
|
2063
2070
|
if (!n) {
|
|
2064
|
-
o(Array.isArray(e) ? e : []),
|
|
2065
|
-
return;
|
|
2066
|
-
}
|
|
2067
|
-
const h = qn(e);
|
|
2068
|
-
if (!h.length) {
|
|
2069
|
-
o([]), r(!1);
|
|
2071
|
+
o(Array.isArray(e) ? e : []), l(!1);
|
|
2070
2072
|
return;
|
|
2071
2073
|
}
|
|
2072
|
-
|
|
2074
|
+
l(!0);
|
|
2073
2075
|
try {
|
|
2074
|
-
const
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2076
|
+
const f = await Wn(), b = Vn(f);
|
|
2077
|
+
if (!b.length) {
|
|
2078
|
+
s || o([]);
|
|
2079
|
+
return;
|
|
2080
|
+
}
|
|
2081
|
+
const r = await Promise.allSettled(
|
|
2082
|
+
b.map(async (d, y) => {
|
|
2083
|
+
const _ = await fetch(
|
|
2084
|
+
`https://api.mktolimpo.com/api/machine/${d}`
|
|
2078
2085
|
);
|
|
2079
|
-
if (!
|
|
2080
|
-
throw new Error(`No se pudo obtener machine ${
|
|
2081
|
-
const
|
|
2082
|
-
return
|
|
2086
|
+
if (!_.ok)
|
|
2087
|
+
throw new Error(`No se pudo obtener machine ${d}`);
|
|
2088
|
+
const T = await _.json();
|
|
2089
|
+
return qn(T, y);
|
|
2083
2090
|
})
|
|
2084
2091
|
);
|
|
2085
2092
|
if (s) return;
|
|
2086
|
-
const
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2093
|
+
const m = r.filter(
|
|
2094
|
+
(d) => d.status === "fulfilled"
|
|
2095
|
+
).map((d) => d.value);
|
|
2096
|
+
o(m);
|
|
2097
|
+
} catch (f) {
|
|
2098
|
+
console.error("[usePersonalizeCasinoItems] error:", f), s || o([]);
|
|
2090
2099
|
} finally {
|
|
2091
|
-
s ||
|
|
2100
|
+
s || l(!1);
|
|
2092
2101
|
}
|
|
2093
2102
|
})(), () => {
|
|
2094
2103
|
s = !0;
|
|
@@ -2097,7 +2106,7 @@ const Pn = (e, n) => {
|
|
|
2097
2106
|
resolvedItems: a,
|
|
2098
2107
|
loading: i
|
|
2099
2108
|
};
|
|
2100
|
-
},
|
|
2109
|
+
}, jn = (e) => {
|
|
2101
2110
|
if (typeof e == "boolean") return e;
|
|
2102
2111
|
if (typeof e == "string")
|
|
2103
2112
|
return e.toLowerCase() === "true";
|
|
@@ -2110,37 +2119,37 @@ const Pn = (e, n) => {
|
|
|
2110
2119
|
}, rt = (e, n) => {
|
|
2111
2120
|
var a, o;
|
|
2112
2121
|
return (o = (a = e.orden) != null ? a : e.machine) != null ? o : n;
|
|
2113
|
-
},
|
|
2122
|
+
}, Hn = (e, n = !0, a = 1) => {
|
|
2114
2123
|
const o = e.map((s, g) => {
|
|
2115
|
-
var
|
|
2124
|
+
var f;
|
|
2116
2125
|
return {
|
|
2117
2126
|
id: rt(s, g),
|
|
2118
|
-
imageUrl: (
|
|
2127
|
+
imageUrl: (f = s.logo) != null ? f : "",
|
|
2119
2128
|
...s.background ? { background: s.background } : {}
|
|
2120
2129
|
};
|
|
2121
2130
|
});
|
|
2122
2131
|
if (!o.length) return [];
|
|
2123
2132
|
const i = [];
|
|
2124
|
-
let
|
|
2133
|
+
let l = 0;
|
|
2125
2134
|
if (n) {
|
|
2126
2135
|
const s = Math.min(o.length, 1);
|
|
2127
2136
|
i.push({
|
|
2128
2137
|
id: "mosaic-0",
|
|
2129
2138
|
kind: "mosaic",
|
|
2130
2139
|
items: o.slice(0, s)
|
|
2131
|
-
}),
|
|
2140
|
+
}), l = s;
|
|
2132
2141
|
}
|
|
2133
|
-
for (;
|
|
2134
|
-
const s = Math.min(
|
|
2142
|
+
for (; l < o.length; ) {
|
|
2143
|
+
const s = Math.min(l + a, o.length);
|
|
2135
2144
|
i.push({
|
|
2136
|
-
id: `grid-${
|
|
2145
|
+
id: `grid-${l}`,
|
|
2137
2146
|
kind: "grid",
|
|
2138
|
-
items: o.slice(
|
|
2139
|
-
}),
|
|
2147
|
+
items: o.slice(l, s)
|
|
2148
|
+
}), l = s;
|
|
2140
2149
|
}
|
|
2141
2150
|
return i;
|
|
2142
|
-
},
|
|
2143
|
-
const a = (i) => Array.from({ length: i }, (
|
|
2151
|
+
}, Kn = (e = !0, n = 4) => {
|
|
2152
|
+
const a = (i) => Array.from({ length: i }, (l, s) => ({
|
|
2144
2153
|
id: `sk-${i}-${s}`,
|
|
2145
2154
|
imageUrl: ""
|
|
2146
2155
|
})), o = [];
|
|
@@ -2153,22 +2162,22 @@ const Pn = (e, n) => {
|
|
|
2153
2162
|
kind: "grid",
|
|
2154
2163
|
items: a(n)
|
|
2155
2164
|
}), o;
|
|
2156
|
-
},
|
|
2165
|
+
}, Zn = ({
|
|
2157
2166
|
items: e,
|
|
2158
2167
|
title: n = "Casino",
|
|
2159
2168
|
iconUrl: a = "/assets/img/home/Casino/diamante.svg",
|
|
2160
2169
|
onItemClick: o,
|
|
2161
2170
|
onViewMore: i,
|
|
2162
|
-
mosaicFirst:
|
|
2171
|
+
mosaicFirst: l = !0,
|
|
2163
2172
|
gridSize: s = 1,
|
|
2164
2173
|
isPersonalize: g = !1
|
|
2165
2174
|
}) => {
|
|
2166
|
-
const
|
|
2175
|
+
const f = J(), b = X(), r = U(null), [m, d] = D({ isStart: !0, isEnd: !1 }), y = jn(g), { resolvedItems: _, loading: T } = Gn(
|
|
2167
2176
|
e,
|
|
2168
2177
|
y
|
|
2169
|
-
), C =
|
|
2170
|
-
var
|
|
2171
|
-
|
|
2178
|
+
), C = y ? _ : Array.isArray(e) ? e : [], B = y ? T : C.length === 0, $ = Q(() => B ? Kn(l, s) : Hn(C, l, s), [B, l, s, C]), O = () => {
|
|
2179
|
+
var N;
|
|
2180
|
+
f({
|
|
2172
2181
|
element: "casino_prev",
|
|
2173
2182
|
label: `Landing: ${b} - OraculoSeccionCasino - Anterior`,
|
|
2174
2183
|
target: "prev",
|
|
@@ -2178,10 +2187,10 @@ const Pn = (e, n) => {
|
|
|
2178
2187
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2179
2188
|
},
|
|
2180
2189
|
tags: { section: "OraculoSeccionCasino" }
|
|
2181
|
-
}), (
|
|
2182
|
-
},
|
|
2183
|
-
var
|
|
2184
|
-
|
|
2190
|
+
}), (N = r.current) == null || N.prev();
|
|
2191
|
+
}, A = () => {
|
|
2192
|
+
var N;
|
|
2193
|
+
f({
|
|
2185
2194
|
element: "casino_next",
|
|
2186
2195
|
label: `Landing: ${b} - OraculoSeccionCasino - Siguiente`,
|
|
2187
2196
|
target: "next",
|
|
@@ -2191,9 +2200,9 @@ const Pn = (e, n) => {
|
|
|
2191
2200
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2192
2201
|
},
|
|
2193
2202
|
tags: { section: "OraculoSeccionCasino" }
|
|
2194
|
-
}), (
|
|
2195
|
-
},
|
|
2196
|
-
if (
|
|
2203
|
+
}), (N = r.current) == null || N.next();
|
|
2204
|
+
}, M = () => {
|
|
2205
|
+
if (f({
|
|
2197
2206
|
element: "casino_view_more",
|
|
2198
2207
|
label: `Landing: ${b} - OraculoSeccionCasino - Ver más`,
|
|
2199
2208
|
target: "https://www.olimpo.bet/casino",
|
|
@@ -2231,8 +2240,8 @@ const Pn = (e, n) => {
|
|
|
2231
2240
|
variant: "secondary",
|
|
2232
2241
|
iconOnly: !0,
|
|
2233
2242
|
leftIcon: /* @__PURE__ */ t(Ze, {}),
|
|
2234
|
-
onClick:
|
|
2235
|
-
disabled:
|
|
2243
|
+
onClick: O,
|
|
2244
|
+
disabled: m.isStart
|
|
2236
2245
|
}
|
|
2237
2246
|
),
|
|
2238
2247
|
/* @__PURE__ */ t(
|
|
@@ -2242,20 +2251,20 @@ const Pn = (e, n) => {
|
|
|
2242
2251
|
variant: "secondary",
|
|
2243
2252
|
iconOnly: !0,
|
|
2244
2253
|
rightIcon: /* @__PURE__ */ t(Je, {}),
|
|
2245
|
-
onClick:
|
|
2246
|
-
disabled:
|
|
2254
|
+
onClick: A,
|
|
2255
|
+
disabled: m.isEnd
|
|
2247
2256
|
}
|
|
2248
2257
|
)
|
|
2249
2258
|
] }),
|
|
2250
|
-
/* @__PURE__ */ t(L, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(W, { variant: "secondary", onClick:
|
|
2259
|
+
/* @__PURE__ */ t(L, { sx: { justifySelf: "end" }, children: /* @__PURE__ */ t(W, { variant: "secondary", onClick: M, children: "Ver más" }) })
|
|
2251
2260
|
]
|
|
2252
2261
|
}
|
|
2253
2262
|
),
|
|
2254
2263
|
/* @__PURE__ */ t(
|
|
2255
2264
|
se,
|
|
2256
2265
|
{
|
|
2257
|
-
ref:
|
|
2258
|
-
items:
|
|
2266
|
+
ref: r,
|
|
2267
|
+
items: $,
|
|
2259
2268
|
perPage: void 0,
|
|
2260
2269
|
gap: "16px",
|
|
2261
2270
|
enableHorizontalWheel: !0,
|
|
@@ -2278,90 +2287,90 @@ const Pn = (e, n) => {
|
|
|
2278
2287
|
padding: { left: "24px", right: "24px" }
|
|
2279
2288
|
}
|
|
2280
2289
|
},
|
|
2281
|
-
renderItem: (
|
|
2290
|
+
renderItem: (N) => /* @__PURE__ */ t("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ t(
|
|
2282
2291
|
tt,
|
|
2283
2292
|
{
|
|
2284
|
-
items:
|
|
2285
|
-
layout:
|
|
2286
|
-
loading:
|
|
2287
|
-
onClick: (
|
|
2288
|
-
if (
|
|
2289
|
-
const
|
|
2290
|
-
(
|
|
2293
|
+
items: N.items,
|
|
2294
|
+
layout: N.kind === "mosaic" ? "mosaic" : "grid",
|
|
2295
|
+
loading: B,
|
|
2296
|
+
onClick: (S) => {
|
|
2297
|
+
if (B) return;
|
|
2298
|
+
const R = C.find(
|
|
2299
|
+
(I, F) => String(rt(I, F)) === String(S.id)
|
|
2291
2300
|
);
|
|
2292
|
-
if (!
|
|
2293
|
-
o == null || o(
|
|
2301
|
+
if (!R) return;
|
|
2302
|
+
o == null || o(R), f({
|
|
2294
2303
|
element: "casino_game_card",
|
|
2295
|
-
label: `Landing: ${b} - OraculoSeccionCasino - Open game: ${String(
|
|
2296
|
-
target: String(
|
|
2304
|
+
label: `Landing: ${b} - OraculoSeccionCasino - Open game: ${String(R.machine) || "unknown"}`,
|
|
2305
|
+
target: String(R.machine || "unknown"),
|
|
2297
2306
|
event_type: "click",
|
|
2298
2307
|
module_id: 301,
|
|
2299
2308
|
metadata: {
|
|
2300
2309
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2301
2310
|
},
|
|
2302
2311
|
tags: {
|
|
2303
|
-
game_name: String(
|
|
2312
|
+
game_name: String(R.machine || "unknown"),
|
|
2304
2313
|
section: n || "Casino"
|
|
2305
2314
|
}
|
|
2306
2315
|
});
|
|
2307
|
-
const
|
|
2308
|
-
|
|
2316
|
+
const z = ie("showIframe"), w = ie("loadMachine");
|
|
2317
|
+
z == null || z(), w == null || w(R, !1, "CASINO");
|
|
2309
2318
|
}
|
|
2310
2319
|
}
|
|
2311
2320
|
) }),
|
|
2312
|
-
onMove: ({ isStart:
|
|
2321
|
+
onMove: ({ isStart: N, isEnd: S }) => d({ isStart: N, isEnd: S })
|
|
2313
2322
|
}
|
|
2314
2323
|
)
|
|
2315
2324
|
] }) });
|
|
2316
2325
|
}, lt = (e, n) => {
|
|
2317
2326
|
var a, o;
|
|
2318
2327
|
return (o = (a = e.orden) != null ? a : e.machine) != null ? o : n;
|
|
2319
|
-
},
|
|
2328
|
+
}, Jn = (e, n = !0, a = 1) => {
|
|
2320
2329
|
const o = e.map((s, g) => {
|
|
2321
|
-
var
|
|
2330
|
+
var f;
|
|
2322
2331
|
return {
|
|
2323
2332
|
id: lt(s, g),
|
|
2324
|
-
imageUrl: (
|
|
2333
|
+
imageUrl: (f = s.logo) != null ? f : "",
|
|
2325
2334
|
...s.background ? { background: s.background } : {}
|
|
2326
2335
|
};
|
|
2327
2336
|
});
|
|
2328
2337
|
if (!o.length) return [];
|
|
2329
2338
|
const i = [];
|
|
2330
|
-
let
|
|
2339
|
+
let l = 0;
|
|
2331
2340
|
if (n) {
|
|
2332
2341
|
const s = Math.min(o.length, 1);
|
|
2333
2342
|
i.push({
|
|
2334
2343
|
id: "mosaic-0",
|
|
2335
2344
|
kind: "mosaic",
|
|
2336
2345
|
items: o.slice(0, s)
|
|
2337
|
-
}),
|
|
2346
|
+
}), l = s;
|
|
2338
2347
|
}
|
|
2339
|
-
for (;
|
|
2340
|
-
const s = Math.min(
|
|
2348
|
+
for (; l < o.length; ) {
|
|
2349
|
+
const s = Math.min(l + a, o.length);
|
|
2341
2350
|
i.push({
|
|
2342
|
-
id: `grid-${
|
|
2351
|
+
id: `grid-${l}`,
|
|
2343
2352
|
kind: "grid",
|
|
2344
|
-
items: o.slice(
|
|
2345
|
-
}),
|
|
2353
|
+
items: o.slice(l, s)
|
|
2354
|
+
}), l = s;
|
|
2346
2355
|
}
|
|
2347
2356
|
return i;
|
|
2348
|
-
},
|
|
2349
|
-
const a = (i) => Array.from({ length: i }, (
|
|
2357
|
+
}, Xn = (e = !0, n = 4) => {
|
|
2358
|
+
const a = (i) => Array.from({ length: i }, (l, s) => ({ id: `sk-${i}-${s}`, imageUrl: "" })), o = [];
|
|
2350
2359
|
return e && o.push({ id: "mosaic-loading", kind: "mosaic", items: a(5) }), o.push({ id: "grid-loading", kind: "grid", items: a(n) }), o;
|
|
2351
|
-
},
|
|
2360
|
+
}, Yn = ({
|
|
2352
2361
|
items: e,
|
|
2353
2362
|
title: n = "Virtuales",
|
|
2354
2363
|
iconUrl: a = "/assets/img/home/Virtuales/virtuales.svg",
|
|
2355
2364
|
onItemClick: o,
|
|
2356
2365
|
onViewMore: i,
|
|
2357
|
-
mosaicFirst:
|
|
2366
|
+
mosaicFirst: l = !0,
|
|
2358
2367
|
gridSize: s = 1
|
|
2359
2368
|
}) => {
|
|
2360
|
-
const g = U(null), [
|
|
2361
|
-
var
|
|
2362
|
-
|
|
2369
|
+
const g = U(null), [f, b] = D({ isStart: !0, isEnd: !1 }), r = J(), m = X(), d = () => {
|
|
2370
|
+
var B;
|
|
2371
|
+
r({
|
|
2363
2372
|
element: "virtuales_prev",
|
|
2364
|
-
label: `Landing: ${
|
|
2373
|
+
label: `Landing: ${m} - OraculoSeccionVirtuales - Anterior`,
|
|
2365
2374
|
target: "prev",
|
|
2366
2375
|
event_type: "click",
|
|
2367
2376
|
module_id: 301,
|
|
@@ -2369,12 +2378,12 @@ const Pn = (e, n) => {
|
|
|
2369
2378
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2370
2379
|
},
|
|
2371
2380
|
tags: { section: "OraculoSeccionVirtuales" }
|
|
2372
|
-
}), (
|
|
2381
|
+
}), (B = g.current) == null || B.prev();
|
|
2373
2382
|
}, y = () => {
|
|
2374
|
-
var
|
|
2375
|
-
|
|
2383
|
+
var B;
|
|
2384
|
+
r({
|
|
2376
2385
|
element: "virtuales_next",
|
|
2377
|
-
label: `Landing: ${
|
|
2386
|
+
label: `Landing: ${m} - OraculoSeccionVirtuales - Siguiente`,
|
|
2378
2387
|
target: "next",
|
|
2379
2388
|
event_type: "click",
|
|
2380
2389
|
module_id: 301,
|
|
@@ -2382,11 +2391,11 @@ const Pn = (e, n) => {
|
|
|
2382
2391
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2383
2392
|
},
|
|
2384
2393
|
tags: { section: "OraculoSeccionVirtuales" }
|
|
2385
|
-
}), (
|
|
2394
|
+
}), (B = g.current) == null || B.next();
|
|
2386
2395
|
}, _ = () => {
|
|
2387
|
-
|
|
2396
|
+
r({
|
|
2388
2397
|
element: "virtuales_view_more",
|
|
2389
|
-
label: `Landing: ${
|
|
2398
|
+
label: `Landing: ${m} - OraculoSeccionVirtuales - Ver más`,
|
|
2390
2399
|
target: "https://www.olimpo.bet/juegos-virtuales",
|
|
2391
2400
|
event_type: "click",
|
|
2392
2401
|
module_id: 301,
|
|
@@ -2395,7 +2404,7 @@ const Pn = (e, n) => {
|
|
|
2395
2404
|
},
|
|
2396
2405
|
tags: { section: "OraculoSeccionVirtuales" }
|
|
2397
2406
|
}), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/juegos-virtuales");
|
|
2398
|
-
},
|
|
2407
|
+
}, T = !e || e.length === 0, C = T ? Xn(l, s) : Jn(e, l, s);
|
|
2399
2408
|
return /* @__PURE__ */ t("section", { children: /* @__PURE__ */ p(V, { direction: "column", spacing: 2, useFlexGap: !0, children: [
|
|
2400
2409
|
/* @__PURE__ */ p(
|
|
2401
2410
|
L,
|
|
@@ -2418,8 +2427,8 @@ const Pn = (e, n) => {
|
|
|
2418
2427
|
variant: "secondary",
|
|
2419
2428
|
iconOnly: !0,
|
|
2420
2429
|
leftIcon: /* @__PURE__ */ t(Ze, {}),
|
|
2421
|
-
onClick:
|
|
2422
|
-
disabled:
|
|
2430
|
+
onClick: d,
|
|
2431
|
+
disabled: f.isStart
|
|
2423
2432
|
}
|
|
2424
2433
|
),
|
|
2425
2434
|
/* @__PURE__ */ t(
|
|
@@ -2430,7 +2439,7 @@ const Pn = (e, n) => {
|
|
|
2430
2439
|
iconOnly: !0,
|
|
2431
2440
|
rightIcon: /* @__PURE__ */ t(Je, {}),
|
|
2432
2441
|
onClick: y,
|
|
2433
|
-
disabled:
|
|
2442
|
+
disabled: f.isEnd
|
|
2434
2443
|
}
|
|
2435
2444
|
)
|
|
2436
2445
|
] }),
|
|
@@ -2453,48 +2462,48 @@ const Pn = (e, n) => {
|
|
|
2453
2462
|
enableHorizontalWheel: !0,
|
|
2454
2463
|
showRightGradient: !0,
|
|
2455
2464
|
options: { autoWidth: !0, trimSpace: "move" },
|
|
2456
|
-
renderItem: (
|
|
2465
|
+
renderItem: (B) => /* @__PURE__ */ t("div", { style: { alignSelf: "start" }, children: /* @__PURE__ */ t(
|
|
2457
2466
|
tt,
|
|
2458
2467
|
{
|
|
2459
|
-
items:
|
|
2460
|
-
layout:
|
|
2461
|
-
loading:
|
|
2462
|
-
onClick: (
|
|
2463
|
-
if (
|
|
2464
|
-
const
|
|
2465
|
-
(
|
|
2468
|
+
items: B.items,
|
|
2469
|
+
layout: B.kind === "mosaic" ? "mosaic" : "grid",
|
|
2470
|
+
loading: T,
|
|
2471
|
+
onClick: ($) => {
|
|
2472
|
+
if (T) return;
|
|
2473
|
+
const O = e.find(
|
|
2474
|
+
(N, S) => String(lt(N, S)) === String($.id)
|
|
2466
2475
|
);
|
|
2467
|
-
if (!
|
|
2476
|
+
if (!O) {
|
|
2468
2477
|
console.warn(
|
|
2469
2478
|
"[virtuales] no se encontró game para id:",
|
|
2470
|
-
|
|
2479
|
+
$.id
|
|
2471
2480
|
);
|
|
2472
2481
|
return;
|
|
2473
2482
|
}
|
|
2474
|
-
|
|
2483
|
+
r({
|
|
2475
2484
|
element: "virtuales_game_card",
|
|
2476
|
-
label: `Landing: ${
|
|
2477
|
-
target: String(
|
|
2485
|
+
label: `Landing: ${m} - OraculoSeccionVirtuales - Open game: ${String(O.machine || "unknown")}`,
|
|
2486
|
+
target: String(O.machine || "unknown"),
|
|
2478
2487
|
event_type: "click",
|
|
2479
2488
|
module_id: 301,
|
|
2480
2489
|
metadata: {
|
|
2481
2490
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2482
2491
|
},
|
|
2483
2492
|
tags: {
|
|
2484
|
-
game_name: String(
|
|
2493
|
+
game_name: String(O.machine || "unknown"),
|
|
2485
2494
|
section: "OraculoSeccionVirtuales"
|
|
2486
2495
|
}
|
|
2487
2496
|
});
|
|
2488
|
-
const A =
|
|
2489
|
-
A == null || A(),
|
|
2497
|
+
const A = ie("showIframe"), M = ie("loadMachine");
|
|
2498
|
+
A == null || A(), M == null || M(O, !1, "VIRTUALES");
|
|
2490
2499
|
}
|
|
2491
2500
|
}
|
|
2492
2501
|
) }),
|
|
2493
|
-
onMove: ({ isStart:
|
|
2502
|
+
onMove: ({ isStart: B, isEnd: $ }) => b({ isStart: B, isEnd: $ })
|
|
2494
2503
|
}
|
|
2495
2504
|
)
|
|
2496
2505
|
] }) });
|
|
2497
|
-
},
|
|
2506
|
+
}, Qn = (e) => ({
|
|
2498
2507
|
position: "relative",
|
|
2499
2508
|
py: 8,
|
|
2500
2509
|
color: "#fff",
|
|
@@ -2526,92 +2535,92 @@ const Pn = (e, n) => {
|
|
|
2526
2535
|
0 0 6px rgba(255, 255, 255, .6),
|
|
2527
2536
|
0 1px 0 rgba(137, 137, 137, .85)
|
|
2528
2537
|
`
|
|
2529
|
-
},
|
|
2538
|
+
}, ea = ({
|
|
2530
2539
|
headline: e,
|
|
2531
2540
|
headline2: n,
|
|
2532
2541
|
items: a,
|
|
2533
2542
|
backgroundImageUrl: o
|
|
2534
2543
|
}) => {
|
|
2535
|
-
const i = J(),
|
|
2544
|
+
const i = J(), l = X(), s = bt("(max-width: 767px)"), g = a.length > 1, f = U(null), b = U(null), r = U(!1), m = U(!1), [d, y] = D(0), [_, T] = D({ isStart: !0, isEnd: !1 });
|
|
2536
2545
|
K(() => {
|
|
2537
|
-
const
|
|
2538
|
-
|
|
2546
|
+
const w = setTimeout(() => {
|
|
2547
|
+
r.current = !0;
|
|
2539
2548
|
}, 500);
|
|
2540
|
-
return () => clearTimeout(
|
|
2549
|
+
return () => clearTimeout(w);
|
|
2541
2550
|
}, []);
|
|
2542
2551
|
const C = U(_);
|
|
2543
2552
|
K(() => {
|
|
2544
2553
|
C.current = _;
|
|
2545
2554
|
}, [_]);
|
|
2546
|
-
const
|
|
2555
|
+
const B = U(!1), $ = U(null), O = a == null ? void 0 : a[d], A = Q(
|
|
2547
2556
|
() => {
|
|
2548
|
-
var
|
|
2549
|
-
return (
|
|
2557
|
+
var w, I;
|
|
2558
|
+
return (I = (w = O == null ? void 0 : O.backgroundImageUrl) != null ? w : o) != null ? I : "";
|
|
2550
2559
|
},
|
|
2551
|
-
[
|
|
2552
|
-
),
|
|
2560
|
+
[O, o]
|
|
2561
|
+
), M = Qn(A), N = !a || a.length === 0, S = (w, I) => {
|
|
2553
2562
|
i({
|
|
2554
2563
|
element: "welcome_banner_button",
|
|
2555
|
-
label: `OraculoSeccionBonoBienvenida - Banner button click: ${
|
|
2564
|
+
label: `OraculoSeccionBonoBienvenida - Banner button click: ${w.title || "OraculoSeccionBonoBienvenida - Banner " + (I + 1)}`,
|
|
2556
2565
|
target: "action",
|
|
2557
2566
|
event_type: "click",
|
|
2558
2567
|
module_id: 301,
|
|
2559
2568
|
metadata: {
|
|
2560
2569
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
2561
|
-
banner_position:
|
|
2570
|
+
banner_position: I + 1,
|
|
2562
2571
|
banner_total: (a == null ? void 0 : a.length) || 0
|
|
2563
2572
|
},
|
|
2564
2573
|
tags: {
|
|
2565
|
-
banner_title:
|
|
2566
|
-
button_text:
|
|
2574
|
+
banner_title: w.title || "no_title",
|
|
2575
|
+
button_text: w.buttonText || "no_text"
|
|
2567
2576
|
}
|
|
2568
|
-
}),
|
|
2569
|
-
}, R = (
|
|
2570
|
-
if (!
|
|
2571
|
-
if (
|
|
2572
|
-
|
|
2577
|
+
}), w.onButtonClick && w.onButtonClick();
|
|
2578
|
+
}, R = (w) => {
|
|
2579
|
+
if (!r.current) return;
|
|
2580
|
+
if (m.current) {
|
|
2581
|
+
m.current = !1;
|
|
2573
2582
|
return;
|
|
2574
2583
|
}
|
|
2575
|
-
const
|
|
2584
|
+
const I = a == null ? void 0 : a[w];
|
|
2576
2585
|
i({
|
|
2577
2586
|
element: "welcome_banner_carousel",
|
|
2578
|
-
label: `Landing: ${
|
|
2587
|
+
label: `Landing: ${l} - OraculoSeccionBonoBienvenida - Banner view: ${(I == null ? void 0 : I.title) || "OraculoSeccionBonoBienvenida - Banner " + (w + 1)}`,
|
|
2579
2588
|
target: "no_url",
|
|
2580
2589
|
event_type: "view",
|
|
2581
2590
|
module_id: 301,
|
|
2582
2591
|
metadata: {
|
|
2583
2592
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
2584
|
-
slide_index:
|
|
2593
|
+
slide_index: w + 1,
|
|
2585
2594
|
total_slides: (a == null ? void 0 : a.length) || 0,
|
|
2586
2595
|
interaction_type: "manual_slide"
|
|
2587
2596
|
},
|
|
2588
2597
|
tags: {
|
|
2589
|
-
banner_position: String(
|
|
2590
|
-
banner_title: (
|
|
2598
|
+
banner_position: String(w + 1),
|
|
2599
|
+
banner_title: (I == null ? void 0 : I.title) || "no_title"
|
|
2591
2600
|
}
|
|
2592
2601
|
});
|
|
2593
2602
|
};
|
|
2594
2603
|
K(() => {
|
|
2595
|
-
const
|
|
2596
|
-
if (!
|
|
2597
|
-
const
|
|
2598
|
-
var
|
|
2599
|
-
if (
|
|
2600
|
-
const
|
|
2601
|
-
if (Math.abs(
|
|
2602
|
-
const x =
|
|
2603
|
-
x && C.current.isEnd || !x && C.current.isStart || (c.preventDefault(),
|
|
2604
|
-
|
|
2605
|
-
},
|
|
2604
|
+
const w = b.current;
|
|
2605
|
+
if (!w) return;
|
|
2606
|
+
const I = 6, F = 380, h = (c) => {
|
|
2607
|
+
var E, k;
|
|
2608
|
+
if (N || c.ctrlKey || B.current) return;
|
|
2609
|
+
const u = c.deltaX, v = c.deltaY;
|
|
2610
|
+
if (Math.abs(u) <= Math.abs(v) || Math.abs(u) < I) return;
|
|
2611
|
+
const x = u > 0;
|
|
2612
|
+
x && C.current.isEnd || !x && C.current.isStart || (c.preventDefault(), B.current = !0, x ? (E = f.current) == null || E.next() : (k = f.current) == null || k.prev(), $.current && window.clearTimeout($.current), $.current = window.setTimeout(() => {
|
|
2613
|
+
B.current = !1;
|
|
2614
|
+
}, F));
|
|
2606
2615
|
};
|
|
2607
|
-
return
|
|
2608
|
-
|
|
2616
|
+
return w.addEventListener("wheel", h, { passive: !1 }), () => {
|
|
2617
|
+
w.removeEventListener("wheel", h), $.current && window.clearTimeout($.current);
|
|
2609
2618
|
};
|
|
2610
|
-
}, [
|
|
2611
|
-
const z = (
|
|
2612
|
-
var
|
|
2613
|
-
const
|
|
2614
|
-
return
|
|
2619
|
+
}, [N]);
|
|
2620
|
+
const z = (w, I, F) => {
|
|
2621
|
+
var u, v;
|
|
2622
|
+
const h = (u = w.headline) != null ? u : e, c = (v = w.headline2) != null ? v : n;
|
|
2623
|
+
return I ? /* @__PURE__ */ p(
|
|
2615
2624
|
L,
|
|
2616
2625
|
{
|
|
2617
2626
|
sx: {
|
|
@@ -2624,7 +2633,7 @@ const Pn = (e, n) => {
|
|
|
2624
2633
|
columnGap: 6
|
|
2625
2634
|
},
|
|
2626
2635
|
children: [
|
|
2627
|
-
(
|
|
2636
|
+
(h || c) && /* @__PURE__ */ t(
|
|
2628
2637
|
L,
|
|
2629
2638
|
{
|
|
2630
2639
|
sx: {
|
|
@@ -2634,7 +2643,7 @@ const Pn = (e, n) => {
|
|
|
2634
2643
|
minHeight: "100%"
|
|
2635
2644
|
},
|
|
2636
2645
|
children: /* @__PURE__ */ p(L, { sx: { ...Ue, textAlign: "left", mb: 0 }, children: [
|
|
2637
|
-
|
|
2646
|
+
h && /* @__PURE__ */ t(ae, { component: "span", sx: qe, children: h }),
|
|
2638
2647
|
c && /* @__PURE__ */ p(ee, { children: [
|
|
2639
2648
|
/* @__PURE__ */ t("br", {}),
|
|
2640
2649
|
/* @__PURE__ */ t(ae, { component: "span", sx: Ve, children: c })
|
|
@@ -2645,16 +2654,16 @@ const Pn = (e, n) => {
|
|
|
2645
2654
|
/* @__PURE__ */ t(L, { sx: { display: "flex", justifyContent: "center", alignItems: "center" }, children: /* @__PURE__ */ t(L, { sx: { width: "100%", maxWidth: 600, mx: "auto" }, children: /* @__PURE__ */ t(
|
|
2646
2655
|
Fe,
|
|
2647
2656
|
{
|
|
2648
|
-
...
|
|
2649
|
-
onButtonClick: () => w
|
|
2657
|
+
...w,
|
|
2658
|
+
onButtonClick: () => S(w, F),
|
|
2650
2659
|
variant: "large"
|
|
2651
2660
|
}
|
|
2652
2661
|
) }) })
|
|
2653
2662
|
]
|
|
2654
2663
|
}
|
|
2655
2664
|
) : /* @__PURE__ */ p(L, { sx: { textAlign: "center" }, children: [
|
|
2656
|
-
(
|
|
2657
|
-
|
|
2665
|
+
(h || c) && /* @__PURE__ */ p(L, { sx: Ue, children: [
|
|
2666
|
+
h && /* @__PURE__ */ t(ae, { component: "span", sx: qe, children: h }),
|
|
2658
2667
|
c && /* @__PURE__ */ p(ee, { children: [
|
|
2659
2668
|
/* @__PURE__ */ t("br", {}),
|
|
2660
2669
|
/* @__PURE__ */ t(ae, { component: "span", sx: Ve, children: c })
|
|
@@ -2663,18 +2672,18 @@ const Pn = (e, n) => {
|
|
|
2663
2672
|
/* @__PURE__ */ t(L, { sx: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(
|
|
2664
2673
|
Fe,
|
|
2665
2674
|
{
|
|
2666
|
-
...
|
|
2667
|
-
onButtonClick: () => w
|
|
2675
|
+
...w,
|
|
2676
|
+
onButtonClick: () => S(w, F),
|
|
2668
2677
|
variant: "small"
|
|
2669
2678
|
}
|
|
2670
2679
|
) })
|
|
2671
2680
|
] });
|
|
2672
2681
|
};
|
|
2673
|
-
return /* @__PURE__ */ p(L, { component: "section", sx:
|
|
2682
|
+
return /* @__PURE__ */ p(L, { component: "section", sx: M, children: [
|
|
2674
2683
|
/* @__PURE__ */ t("div", { ref: b, style: { width: "100%" }, children: /* @__PURE__ */ t(
|
|
2675
2684
|
se,
|
|
2676
2685
|
{
|
|
2677
|
-
ref:
|
|
2686
|
+
ref: f,
|
|
2678
2687
|
items: a,
|
|
2679
2688
|
perPage: 1,
|
|
2680
2689
|
gap: "0px",
|
|
@@ -2688,9 +2697,9 @@ const Pn = (e, n) => {
|
|
|
2688
2697
|
// arrows: false,
|
|
2689
2698
|
// drag: true,
|
|
2690
2699
|
},
|
|
2691
|
-
renderItem: (
|
|
2692
|
-
onMove: ({ index:
|
|
2693
|
-
y(
|
|
2700
|
+
renderItem: (w, I) => /* @__PURE__ */ t(L, { sx: { width: "100%" }, children: z(w, !s, I) }),
|
|
2701
|
+
onMove: ({ index: w, isStart: I, isEnd: F }) => {
|
|
2702
|
+
y(w), typeof I == "boolean" && typeof F == "boolean" && T({ isStart: I, isEnd: F }), R(w);
|
|
2694
2703
|
}
|
|
2695
2704
|
}
|
|
2696
2705
|
) }),
|
|
@@ -2698,41 +2707,41 @@ const Pn = (e, n) => {
|
|
|
2698
2707
|
Xe,
|
|
2699
2708
|
{
|
|
2700
2709
|
total: a.length,
|
|
2701
|
-
active:
|
|
2702
|
-
onSelect: (
|
|
2703
|
-
var
|
|
2710
|
+
active: d,
|
|
2711
|
+
onSelect: (w) => {
|
|
2712
|
+
var I;
|
|
2704
2713
|
i({
|
|
2705
2714
|
element: "welcome_banner_dots",
|
|
2706
|
-
label: `Landing: ${
|
|
2715
|
+
label: `Landing: ${l} - OraculoSeccionBonoBienvenida - Dot navigation: Banner ${w + 1}`,
|
|
2707
2716
|
target: "no_url",
|
|
2708
2717
|
event_type: "click",
|
|
2709
2718
|
module_id: 301,
|
|
2710
2719
|
metadata: {
|
|
2711
2720
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
2712
|
-
dot_index:
|
|
2721
|
+
dot_index: w + 1,
|
|
2713
2722
|
total_dots: a.length
|
|
2714
2723
|
},
|
|
2715
2724
|
tags: {
|
|
2716
2725
|
navigation_type: "dot_click"
|
|
2717
2726
|
}
|
|
2718
|
-
}), y(
|
|
2727
|
+
}), y(w), (I = f.current) == null || I.go(w);
|
|
2719
2728
|
}
|
|
2720
2729
|
}
|
|
2721
2730
|
) })
|
|
2722
2731
|
] });
|
|
2723
|
-
},
|
|
2732
|
+
}, ta = ({
|
|
2724
2733
|
className: e = "",
|
|
2725
2734
|
fullBleed: n = !0,
|
|
2726
2735
|
items: a,
|
|
2727
2736
|
selectedIndex: o = 0,
|
|
2728
2737
|
ariaLabel: i
|
|
2729
2738
|
}) => {
|
|
2730
|
-
const
|
|
2739
|
+
const l = U(null), s = U(null), g = J(), f = X();
|
|
2731
2740
|
if (!a) return null;
|
|
2732
2741
|
const b = () => {
|
|
2733
2742
|
g({
|
|
2734
2743
|
element: "club_olimpo_button",
|
|
2735
|
-
label: `Landing: ${
|
|
2744
|
+
label: `Landing: ${f} - OraculoSeccionClubOlimpo - Click: Club Olimpo`,
|
|
2736
2745
|
target: "https://www.olimpo.bet/conoce-club-olimpo",
|
|
2737
2746
|
event_type: "click",
|
|
2738
2747
|
module_id: 301,
|
|
@@ -2741,18 +2750,18 @@ const Pn = (e, n) => {
|
|
|
2741
2750
|
},
|
|
2742
2751
|
tags: { section: "OraculoSeccionClubOlimpo" }
|
|
2743
2752
|
}), typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign("https://www.olimpo.bet/conoce-club-olimpo");
|
|
2744
|
-
},
|
|
2753
|
+
}, r = Array.isArray(a) ? a[o] : a;
|
|
2745
2754
|
gt(() => {
|
|
2746
|
-
if (!
|
|
2747
|
-
const
|
|
2748
|
-
|
|
2755
|
+
if (!l.current || !s.current || typeof ResizeObserver == "undefined") return;
|
|
2756
|
+
const d = l.current, y = s.current, _ = () => {
|
|
2757
|
+
d.style.setProperty(
|
|
2749
2758
|
"--orc-co-bottomH",
|
|
2750
2759
|
`${y.offsetHeight + 16}px`
|
|
2751
2760
|
);
|
|
2752
|
-
},
|
|
2753
|
-
return
|
|
2761
|
+
}, T = new ResizeObserver(_);
|
|
2762
|
+
return T.observe(y), _(), () => T.disconnect();
|
|
2754
2763
|
}, []);
|
|
2755
|
-
const
|
|
2764
|
+
const m = [
|
|
2756
2765
|
"orc-co-wrap",
|
|
2757
2766
|
n ? "orc-co-fullBleed" : "",
|
|
2758
2767
|
e
|
|
@@ -2760,55 +2769,55 @@ const Pn = (e, n) => {
|
|
|
2760
2769
|
return /* @__PURE__ */ t(
|
|
2761
2770
|
"section",
|
|
2762
2771
|
{
|
|
2763
|
-
ref:
|
|
2764
|
-
className:
|
|
2765
|
-
"aria-label": i ||
|
|
2772
|
+
ref: l,
|
|
2773
|
+
className: m,
|
|
2774
|
+
"aria-label": i || r.imgAlt || "Club Olimpo",
|
|
2766
2775
|
children: /* @__PURE__ */ t("div", { ref: s, children: /* @__PURE__ */ t(
|
|
2767
2776
|
ln,
|
|
2768
2777
|
{
|
|
2769
|
-
text:
|
|
2778
|
+
text: r.text,
|
|
2770
2779
|
onClick: b,
|
|
2771
|
-
imgAlt:
|
|
2772
|
-
buttonLabel:
|
|
2773
|
-
imgSrcMobile:
|
|
2774
|
-
imgSrcDesktopBg:
|
|
2775
|
-
imgSrcDesktopLogo:
|
|
2780
|
+
imgAlt: r.imgAlt,
|
|
2781
|
+
buttonLabel: r.buttonLabel,
|
|
2782
|
+
imgSrcMobile: r.imgMobile,
|
|
2783
|
+
imgSrcDesktopBg: r.imgDesktopBg,
|
|
2784
|
+
imgSrcDesktopLogo: r.imgDesktopLogo
|
|
2776
2785
|
}
|
|
2777
2786
|
) })
|
|
2778
2787
|
}
|
|
2779
2788
|
);
|
|
2780
|
-
},
|
|
2781
|
-
controls:
|
|
2782
|
-
padding:
|
|
2783
|
-
},
|
|
2789
|
+
}, na = "oraculo__OraculoSeccionEventoCombinadas-module__controls___Zsta4", aa = "oraculo__OraculoSeccionEventoCombinadas-module__padding___vf-yF", De = {
|
|
2790
|
+
controls: na,
|
|
2791
|
+
padding: aa
|
|
2792
|
+
}, oa = (e) => {
|
|
2784
2793
|
var n, a;
|
|
2785
2794
|
return (n = e.outcome) != null && n.id ? [e.outcome.id] : e.type === "BET_BUILDER" && ((a = e.group) != null && a.groups) ? e.group.groups.flatMap((o) => {
|
|
2786
|
-
var i,
|
|
2787
|
-
return (
|
|
2795
|
+
var i, l;
|
|
2796
|
+
return (l = (i = o.outcomes) == null ? void 0 : i.map((s) => s.id)) != null ? l : [];
|
|
2788
2797
|
}) : [];
|
|
2789
2798
|
};
|
|
2790
|
-
function
|
|
2799
|
+
function ia(e, n, a) {
|
|
2791
2800
|
return a ? a.map((o) => {
|
|
2792
|
-
var
|
|
2793
|
-
const i = o.prePackCouponRows.flatMap((
|
|
2794
|
-
for (const
|
|
2795
|
-
if (!
|
|
2796
|
-
const y =
|
|
2797
|
-
y.length && ((
|
|
2801
|
+
var r, m;
|
|
2802
|
+
const i = o.prePackCouponRows.flatMap((d) => oa(d).map((y) => ({ eventId: d.eventId, outcomeId: y }))), l = new Set(i.map((d) => d.eventId)), s = new Set(i.map((d) => d.outcomeId)), g = new Map(i.map((d, y) => [d.outcomeId, y])), f = {};
|
|
2803
|
+
for (const d of n) {
|
|
2804
|
+
if (!l.has(d.eventId)) continue;
|
|
2805
|
+
const y = d.outcomes.filter((_) => s.has(_.id)).map((_) => ({ ..._, position: g.get(_.id) }));
|
|
2806
|
+
y.length && ((m = f[r = d.eventId]) != null || (f[r] = []), f[d.eventId].push({ ...d, outcomes: y }));
|
|
2798
2807
|
}
|
|
2799
|
-
const b = e.filter((
|
|
2808
|
+
const b = e.filter((d) => l.has(d.id)).map((d) => {
|
|
2800
2809
|
var y;
|
|
2801
|
-
return { ...
|
|
2810
|
+
return { ...d, betoffers: (y = f[d.id]) != null ? y : [] };
|
|
2802
2811
|
});
|
|
2803
2812
|
return {
|
|
2804
2813
|
couponId: o.id,
|
|
2805
2814
|
status: o.status,
|
|
2806
|
-
combinadoTotal:
|
|
2815
|
+
combinadoTotal: ra(o.prePackCouponRows),
|
|
2807
2816
|
events: b
|
|
2808
2817
|
};
|
|
2809
2818
|
}) : [];
|
|
2810
2819
|
}
|
|
2811
|
-
function
|
|
2820
|
+
function ra(e) {
|
|
2812
2821
|
if (!Array.isArray(e) || e.length === 0) return 0;
|
|
2813
2822
|
let n = 1;
|
|
2814
2823
|
for (const a of e) {
|
|
@@ -2817,17 +2826,17 @@ function aa(e) {
|
|
|
2817
2826
|
}
|
|
2818
2827
|
return Math.floor(n * 100) / 100;
|
|
2819
2828
|
}
|
|
2820
|
-
const
|
|
2821
|
-
function
|
|
2829
|
+
const la = de.memo(yn);
|
|
2830
|
+
function sa({
|
|
2822
2831
|
items: e,
|
|
2823
2832
|
title: n = "Combinadas del Olimpo",
|
|
2824
2833
|
iconUrl: a = "https://stg-www.contodobet.com/static/img/landing/EventoCombinada/rayoIcon.svg",
|
|
2825
2834
|
onViewMore: o,
|
|
2826
2835
|
className: i = ""
|
|
2827
2836
|
}) {
|
|
2828
|
-
const
|
|
2829
|
-
var
|
|
2830
|
-
|
|
2837
|
+
const l = J(), s = X(), g = U(null), [f, b] = D({ isStart: !0, isEnd: !1 }), [r, m] = D([]), d = "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", y = () => {
|
|
2838
|
+
var O;
|
|
2839
|
+
l({
|
|
2831
2840
|
element: "evento_combinadas_prev",
|
|
2832
2841
|
label: `Landing: ${s} - OraculoSeccionEventoCombinadas - Click: Anterior`,
|
|
2833
2842
|
event_type: "click",
|
|
@@ -2836,10 +2845,10 @@ function ia({
|
|
|
2836
2845
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2837
2846
|
},
|
|
2838
2847
|
tags: { section: "OraculoSeccionEventoCombinadas" }
|
|
2839
|
-
}), (
|
|
2848
|
+
}), (O = g.current) == null || O.prev();
|
|
2840
2849
|
}, _ = () => {
|
|
2841
|
-
var
|
|
2842
|
-
|
|
2850
|
+
var O;
|
|
2851
|
+
l({
|
|
2843
2852
|
element: "evento_combinadas_next",
|
|
2844
2853
|
label: `Landing: ${s} - OraculoSeccionEventoCombinadas - Click: Siguiente`,
|
|
2845
2854
|
event_type: "click",
|
|
@@ -2848,9 +2857,9 @@ function ia({
|
|
|
2848
2857
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
2849
2858
|
},
|
|
2850
2859
|
tags: { section: "OraculoSeccionEventoCombinadas" }
|
|
2851
|
-
}), (
|
|
2852
|
-
},
|
|
2853
|
-
|
|
2860
|
+
}), (O = g.current) == null || O.next();
|
|
2861
|
+
}, T = () => {
|
|
2862
|
+
l({
|
|
2854
2863
|
element: "evento_combinadas_ver_mas",
|
|
2855
2864
|
label: `Landing: ${s} - OraculoSeccionEventoCombinadas - Click: Ver más`,
|
|
2856
2865
|
event_type: "click",
|
|
@@ -2860,26 +2869,26 @@ function ia({
|
|
|
2860
2869
|
},
|
|
2861
2870
|
tags: { section: "OraculoSeccionEventoCombinadas" }
|
|
2862
2871
|
}), _n();
|
|
2863
|
-
}, C = Q(() =>
|
|
2864
|
-
async function
|
|
2865
|
-
var
|
|
2872
|
+
}, C = Q(() => r.filter((O) => O.combinadoTotal !== null), [r]);
|
|
2873
|
+
async function B() {
|
|
2874
|
+
var O, A, M;
|
|
2866
2875
|
try {
|
|
2867
|
-
const
|
|
2876
|
+
const S = await (await fetch(d)).json(), R = (M = (A = (O = S == null ? void 0 : S.group) == null ? void 0 : O.groups) == null ? void 0 : A[0]) == null ? void 0 : M.id;
|
|
2868
2877
|
if (!R) {
|
|
2869
2878
|
console.error("Could not extract group ID");
|
|
2870
2879
|
return;
|
|
2871
2880
|
}
|
|
2872
|
-
const z = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${R}.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764283566783&prePackCouponTags=CUSTOM`,
|
|
2873
|
-
|
|
2874
|
-
} catch (
|
|
2875
|
-
console.error("loadDataEventSpecial error:",
|
|
2881
|
+
const z = `https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/prepackcoupon/eventgroup/${R}.json?lang=es_PE&market=PE&client_id=200&channel_id=1&ncid=1764283566783&prePackCouponTags=CUSTOM`, I = await (await fetch(z)).json();
|
|
2882
|
+
m(ia(I.events, I.betOffers, I.prePackCoupons));
|
|
2883
|
+
} catch (N) {
|
|
2884
|
+
console.error("loadDataEventSpecial error:", N);
|
|
2876
2885
|
}
|
|
2877
2886
|
}
|
|
2878
2887
|
K(() => {
|
|
2879
|
-
|
|
2888
|
+
B();
|
|
2880
2889
|
}, []);
|
|
2881
|
-
const
|
|
2882
|
-
return C.length === 0 ? null : /* @__PURE__ */ t("section", { className:
|
|
2890
|
+
const $ = i || void 0;
|
|
2891
|
+
return C.length === 0 ? null : /* @__PURE__ */ t("section", { className: $, style: {
|
|
2883
2892
|
// paddingLeft: 16,
|
|
2884
2893
|
// paddingRight: 16,
|
|
2885
2894
|
width: "100%",
|
|
@@ -2897,7 +2906,7 @@ function ia({
|
|
|
2897
2906
|
iconOnly: !0,
|
|
2898
2907
|
leftIcon: /* @__PURE__ */ t(Ee, {}),
|
|
2899
2908
|
onClick: y,
|
|
2900
|
-
disabled:
|
|
2909
|
+
disabled: f.isStart
|
|
2901
2910
|
}
|
|
2902
2911
|
),
|
|
2903
2912
|
/* @__PURE__ */ t(
|
|
@@ -2908,11 +2917,11 @@ function ia({
|
|
|
2908
2917
|
iconOnly: !0,
|
|
2909
2918
|
rightIcon: /* @__PURE__ */ t(Ie, {}),
|
|
2910
2919
|
onClick: _,
|
|
2911
|
-
disabled:
|
|
2920
|
+
disabled: f.isEnd
|
|
2912
2921
|
}
|
|
2913
2922
|
)
|
|
2914
2923
|
] }),
|
|
2915
|
-
/* @__PURE__ */ t(W, { variant: "secondary", onClick:
|
|
2924
|
+
/* @__PURE__ */ t(W, { variant: "secondary", onClick: T, children: "Ver más" })
|
|
2916
2925
|
] })
|
|
2917
2926
|
] }) }),
|
|
2918
2927
|
/* @__PURE__ */ t(
|
|
@@ -2929,13 +2938,13 @@ function ia({
|
|
|
2929
2938
|
breakpoints: {
|
|
2930
2939
|
768: { perPage: 1.2, gap: "12px", padding: { left: "24px", right: "24px" } }
|
|
2931
2940
|
},
|
|
2932
|
-
renderItem: (
|
|
2933
|
-
onMove: ({ isStart:
|
|
2941
|
+
renderItem: (O) => /* @__PURE__ */ t(la, { coupon: O }),
|
|
2942
|
+
onMove: ({ isStart: O, isEnd: A }) => b({ isStart: O, isEnd: A })
|
|
2934
2943
|
}
|
|
2935
2944
|
)
|
|
2936
2945
|
] }) });
|
|
2937
2946
|
}
|
|
2938
|
-
function
|
|
2947
|
+
function ca({}) {
|
|
2939
2948
|
return /* @__PURE__ */ t(
|
|
2940
2949
|
"div",
|
|
2941
2950
|
{
|
|
@@ -2969,33 +2978,33 @@ function ra({}) {
|
|
|
2969
2978
|
}
|
|
2970
2979
|
);
|
|
2971
2980
|
}
|
|
2972
|
-
const
|
|
2973
|
-
fadeWrapper:
|
|
2981
|
+
const da = "oraculo__FadeItemWrapper-module__fadeWrapper___kFOH4", ua = {
|
|
2982
|
+
fadeWrapper: da
|
|
2974
2983
|
};
|
|
2975
2984
|
function Oe({ children: e }) {
|
|
2976
|
-
return /* @__PURE__ */ t("div", { className:
|
|
2985
|
+
return /* @__PURE__ */ t("div", { className: ua.fadeWrapper, children: e });
|
|
2977
2986
|
}
|
|
2978
|
-
const
|
|
2979
|
-
padding:
|
|
2980
|
-
},
|
|
2987
|
+
const ma = "oraculo__OraculoSeccionEventoEnVivo-module__padding___Sh8tD", pa = {
|
|
2988
|
+
padding: ma
|
|
2989
|
+
}, ga = (e) => {
|
|
2981
2990
|
const n = ["esports", "cyber"];
|
|
2982
2991
|
return e.filter((a) => {
|
|
2983
2992
|
var i;
|
|
2984
2993
|
if (a.event.sport !== "FOOTBALL") return !1;
|
|
2985
2994
|
const o = ((i = a.event.group) == null ? void 0 : i.toLowerCase()) || "";
|
|
2986
|
-
return !n.some((
|
|
2995
|
+
return !n.some((l) => o.includes(l));
|
|
2987
2996
|
});
|
|
2988
|
-
},
|
|
2989
|
-
function
|
|
2997
|
+
}, fa = de.memo(On);
|
|
2998
|
+
function ha({
|
|
2990
2999
|
items: e,
|
|
2991
3000
|
title: n = "En vivo",
|
|
2992
3001
|
iconUrl: a = "https://stg-www.contodobet.com/static/img/landing/EventoEnVivo/icon.svg",
|
|
2993
3002
|
onViewMore: o,
|
|
2994
3003
|
className: i = ""
|
|
2995
3004
|
}) {
|
|
2996
|
-
const
|
|
2997
|
-
var
|
|
2998
|
-
|
|
3005
|
+
const l = "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", s = U(null), [g, f] = D({ isStart: !0, isEnd: !1 }), [b, r] = D(null), [m, d] = D({}), [y, _] = D({ start: null, end: null }), T = U(!1), [C, B] = D(null), $ = U(!1), O = J(), A = X(), M = U(/* @__PURE__ */ new Map()), N = at(y, 300), S = U(/* @__PURE__ */ new Set()), R = () => {
|
|
3006
|
+
var u;
|
|
3007
|
+
O({
|
|
2999
3008
|
element: "evento_en_vivo_prev",
|
|
3000
3009
|
label: `Landing: ${A} - OraculoSeccionEventoEnVivo - Anterior`,
|
|
3001
3010
|
target: "prev",
|
|
@@ -3005,10 +3014,10 @@ function pa({
|
|
|
3005
3014
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
3006
3015
|
},
|
|
3007
3016
|
tags: { section: "OraculoSeccionEventoEnVivo" }
|
|
3008
|
-
}), (
|
|
3017
|
+
}), (u = s.current) == null || u.prev();
|
|
3009
3018
|
}, z = () => {
|
|
3010
|
-
var
|
|
3011
|
-
|
|
3019
|
+
var u;
|
|
3020
|
+
O({
|
|
3012
3021
|
element: "evento_en_vivo_next",
|
|
3013
3022
|
label: `Landing: ${A} - OraculoSeccionEventoEnVivo - Siguiente`,
|
|
3014
3023
|
target: "next",
|
|
@@ -3018,9 +3027,9 @@ function pa({
|
|
|
3018
3027
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : ""
|
|
3019
3028
|
},
|
|
3020
3029
|
tags: { section: "OraculoSeccionEventoEnVivo" }
|
|
3021
|
-
}), (
|
|
3022
|
-
},
|
|
3023
|
-
|
|
3030
|
+
}), (u = s.current) == null || u.next();
|
|
3031
|
+
}, w = () => {
|
|
3032
|
+
O({
|
|
3024
3033
|
element: "evento_en_vivo_view_more",
|
|
3025
3034
|
label: `Landing: ${A} - OraculoSeccionEventoEnVivo - Ver más`,
|
|
3026
3035
|
target: "ver_mas",
|
|
@@ -3031,67 +3040,67 @@ function pa({
|
|
|
3031
3040
|
},
|
|
3032
3041
|
tags: { section: "OraculoSeccionEventoEnVivo" }
|
|
3033
3042
|
}), bn();
|
|
3034
|
-
},
|
|
3035
|
-
var
|
|
3043
|
+
}, I = _e(async () => {
|
|
3044
|
+
var u;
|
|
3036
3045
|
try {
|
|
3037
|
-
if (
|
|
3038
|
-
|
|
3046
|
+
if (!$.current) {
|
|
3047
|
+
$.current = !0;
|
|
3039
3048
|
try {
|
|
3040
|
-
const
|
|
3041
|
-
H.forEach((G, Y) => j.set(String(G), Y)),
|
|
3042
|
-
} catch (
|
|
3043
|
-
console.error("Order fetch failed, using default sorting",
|
|
3049
|
+
const P = await (await fetch("https://api.mktolimpo.com/api/kambi/eventos/orden")).json(), H = ((u = P == null ? void 0 : P.data) == null ? void 0 : u.event_ids) || [], j = /* @__PURE__ */ new Map();
|
|
3050
|
+
H.forEach((G, Y) => j.set(String(G), Y)), M.current = j;
|
|
3051
|
+
} catch (k) {
|
|
3052
|
+
console.error("Order fetch failed, using default sorting", k);
|
|
3044
3053
|
}
|
|
3045
3054
|
}
|
|
3046
|
-
const v = await fetch(
|
|
3055
|
+
const v = await fetch(l);
|
|
3047
3056
|
if (!v.ok) throw new Error("Failed to fetch live events");
|
|
3048
|
-
const x = await v.json(),
|
|
3049
|
-
if (
|
|
3050
|
-
|
|
3057
|
+
const x = await v.json(), E = ga(x.events);
|
|
3058
|
+
if (M.current.size === 0)
|
|
3059
|
+
r(E);
|
|
3051
3060
|
else {
|
|
3052
|
-
const
|
|
3053
|
-
const j =
|
|
3061
|
+
const k = [...E].sort((P, H) => {
|
|
3062
|
+
const j = M.current.get(String(P.event.id)), G = M.current.get(String(H.event.id));
|
|
3054
3063
|
return (j !== void 0 ? j : 1 / 0) - (G !== void 0 ? G : 1 / 0);
|
|
3055
3064
|
});
|
|
3056
|
-
|
|
3065
|
+
r(k);
|
|
3057
3066
|
}
|
|
3058
3067
|
} catch (v) {
|
|
3059
3068
|
console.error("LoadData Error:", v);
|
|
3060
3069
|
}
|
|
3061
3070
|
}, []);
|
|
3062
3071
|
K(() => {
|
|
3063
|
-
|
|
3064
|
-
const
|
|
3065
|
-
return () => clearInterval(
|
|
3066
|
-
}, [
|
|
3067
|
-
if (
|
|
3072
|
+
I();
|
|
3073
|
+
const u = setInterval(I, 2e4);
|
|
3074
|
+
return () => clearInterval(u);
|
|
3075
|
+
}, [I]), K(() => {
|
|
3076
|
+
if (N.start === null || N.end === null || !(b != null && b.length) || T.current)
|
|
3068
3077
|
return;
|
|
3069
|
-
const
|
|
3070
|
-
var
|
|
3071
|
-
return (
|
|
3072
|
-
}).filter((
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
...
|
|
3076
|
-
|
|
3078
|
+
const u = 3, v = Math.max(0, N.start - u), x = Math.min(b.length - 1, N.end + u), E = b.slice(v, x + 1).map((k) => {
|
|
3079
|
+
var P;
|
|
3080
|
+
return (P = k == null ? void 0 : k.event) == null ? void 0 : P.id;
|
|
3081
|
+
}).filter((k) => k && !S.current.has(k));
|
|
3082
|
+
E.length !== 0 && (E.forEach((k) => S.current.add(k)), T.current = !0, nt(E).then((k) => {
|
|
3083
|
+
k != null && k.events && d((P) => ({
|
|
3084
|
+
...P,
|
|
3085
|
+
...k.events
|
|
3077
3086
|
}));
|
|
3078
|
-
}).catch((
|
|
3079
|
-
console.error("Jersey fetch error",
|
|
3087
|
+
}).catch((k) => {
|
|
3088
|
+
console.error("Jersey fetch error", k), E.forEach((P) => S.current.delete(P));
|
|
3080
3089
|
}).finally(() => {
|
|
3081
|
-
|
|
3090
|
+
T.current = !1;
|
|
3082
3091
|
}));
|
|
3083
|
-
}, [
|
|
3084
|
-
const
|
|
3085
|
-
if (!
|
|
3092
|
+
}, [N, b]);
|
|
3093
|
+
const F = i || void 0, h = b === null;
|
|
3094
|
+
if (!h && b.length === 0)
|
|
3086
3095
|
return null;
|
|
3087
|
-
const c = Q(() =>
|
|
3088
|
-
return /* @__PURE__ */ t("section", { className:
|
|
3096
|
+
const c = Q(() => h ? Array(4).fill({}) : (b == null ? void 0 : b.slice(0, 20)) || [], [h, b]);
|
|
3097
|
+
return /* @__PURE__ */ t("section", { className: F, style: {
|
|
3089
3098
|
// paddingLeft: 16,
|
|
3090
3099
|
// paddingRight: 16,
|
|
3091
3100
|
width: "100%",
|
|
3092
3101
|
boxSizing: "border-box"
|
|
3093
3102
|
}, children: /* @__PURE__ */ p(V, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
3094
|
-
/* @__PURE__ */ t("div", { className:
|
|
3103
|
+
/* @__PURE__ */ t("div", { className: pa.padding, children: /* @__PURE__ */ p(oe, { spacing: 1.5, columns: "1fr auto ", justify: "start", children: [
|
|
3095
3104
|
/* @__PURE__ */ t(le, { title: n, iconUrl: a, size: "md" }),
|
|
3096
3105
|
/* @__PURE__ */ p("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
|
|
3097
3106
|
/* @__PURE__ */ p(oe, { spacing: 1, columns: "auto auto", children: [
|
|
@@ -3118,7 +3127,7 @@ function pa({
|
|
|
3118
3127
|
}
|
|
3119
3128
|
)
|
|
3120
3129
|
] }),
|
|
3121
|
-
/* @__PURE__ */ t(W, { variant: "secondary", onClick:
|
|
3130
|
+
/* @__PURE__ */ t(W, { variant: "secondary", onClick: w, children: "Ver más" })
|
|
3122
3131
|
] })
|
|
3123
3132
|
] }) }),
|
|
3124
3133
|
/* @__PURE__ */ t(
|
|
@@ -3136,27 +3145,27 @@ function pa({
|
|
|
3136
3145
|
768: { gap: "8px", focus: "center", padding: { left: "24px", right: "24px" } },
|
|
3137
3146
|
1024: { gap: "10px", focus: "center", padding: { left: "24px", right: "24px" } }
|
|
3138
3147
|
},
|
|
3139
|
-
renderItem: (
|
|
3140
|
-
var
|
|
3141
|
-
const v = ((
|
|
3142
|
-
return
|
|
3143
|
-
|
|
3148
|
+
renderItem: (u) => {
|
|
3149
|
+
var E;
|
|
3150
|
+
const v = ((E = u.event) == null ? void 0 : E.id) || u.eventId, x = v in m ? m[v] : void 0;
|
|
3151
|
+
return h ? /* @__PURE__ */ t(Oe, { children: /* @__PURE__ */ t(ca, {}) }) : /* @__PURE__ */ t(Oe, { children: /* @__PURE__ */ t(
|
|
3152
|
+
fa,
|
|
3144
3153
|
{
|
|
3145
|
-
...
|
|
3154
|
+
...u,
|
|
3146
3155
|
jersey: x
|
|
3147
3156
|
}
|
|
3148
3157
|
) });
|
|
3149
3158
|
},
|
|
3150
|
-
onMove: ({ isStart:
|
|
3151
|
-
|
|
3152
|
-
(
|
|
3153
|
-
), _({ start: x, end:
|
|
3159
|
+
onMove: ({ isStart: u, isEnd: v, visibleStart: x, visibleEnd: E }) => {
|
|
3160
|
+
f(
|
|
3161
|
+
(k) => k.isStart === u && k.isEnd === v ? k : { isStart: u, isEnd: v }
|
|
3162
|
+
), _({ start: x, end: E });
|
|
3154
3163
|
}
|
|
3155
3164
|
}
|
|
3156
3165
|
)
|
|
3157
3166
|
] }) });
|
|
3158
3167
|
}
|
|
3159
|
-
function
|
|
3168
|
+
function ba() {
|
|
3160
3169
|
return /* @__PURE__ */ p("div", { className: ce.cardContainer, children: [
|
|
3161
3170
|
/* @__PURE__ */ t(Qe, { title: "" }),
|
|
3162
3171
|
/* @__PURE__ */ t("div", { className: ce.cardBackground, children: /* @__PURE__ */ p(V, { direction: "column", spacing: { xs: 0.5, md: 1 }, useFlexGap: !0, children: [
|
|
@@ -3184,30 +3193,30 @@ function ga() {
|
|
|
3184
3193
|
] }) })
|
|
3185
3194
|
] });
|
|
3186
3195
|
}
|
|
3187
|
-
const
|
|
3188
|
-
wrapper:
|
|
3189
|
-
container:
|
|
3190
|
-
buttonWrapper:
|
|
3191
|
-
padding:
|
|
3192
|
-
},
|
|
3193
|
-
async function
|
|
3196
|
+
const va = "oraculo__OraculoSeccionEventoSemana-module__wrapper___eqVq-", _a = "oraculo__OraculoSeccionEventoSemana-module__container___5yFQs", ya = "oraculo__OraculoSeccionEventoSemana-module__buttonWrapper___-6IDT", xa = "oraculo__OraculoSeccionEventoSemana-module__padding___vfUcV", be = {
|
|
3197
|
+
wrapper: va,
|
|
3198
|
+
container: _a,
|
|
3199
|
+
buttonWrapper: ya,
|
|
3200
|
+
padding: xa
|
|
3201
|
+
}, wa = de.memo(Bn);
|
|
3202
|
+
async function Sa(e, n = 2, a) {
|
|
3194
3203
|
const o = [];
|
|
3195
3204
|
for (let i = 0; i < e.length; i += n) {
|
|
3196
3205
|
if (a.aborted)
|
|
3197
3206
|
throw new DOMException("Aborted", "AbortError");
|
|
3198
|
-
const
|
|
3199
|
-
|
|
3207
|
+
const l = e.slice(i, i + n), s = await Promise.all(
|
|
3208
|
+
l.map((g) => fetch(g, { signal: a }).then((f) => f.json()))
|
|
3200
3209
|
);
|
|
3201
3210
|
o.push(...s);
|
|
3202
3211
|
}
|
|
3203
3212
|
return o;
|
|
3204
3213
|
}
|
|
3205
|
-
function
|
|
3214
|
+
function Ca(e) {
|
|
3206
3215
|
return [...e].sort(
|
|
3207
3216
|
(n, a) => new Date(n.start).getTime() - new Date(a.start).getTime()
|
|
3208
3217
|
);
|
|
3209
3218
|
}
|
|
3210
|
-
function
|
|
3219
|
+
function Oa(e) {
|
|
3211
3220
|
const n = /* @__PURE__ */ new Date(), a = new Date(n.getTime() + 480 * 60 * 60 * 1e3);
|
|
3212
3221
|
return e.filter((o) => {
|
|
3213
3222
|
if (!o.start) return !1;
|
|
@@ -3215,29 +3224,29 @@ function wa(e) {
|
|
|
3215
3224
|
return i >= n && i <= a;
|
|
3216
3225
|
});
|
|
3217
3226
|
}
|
|
3218
|
-
function
|
|
3227
|
+
function Ea(e, n) {
|
|
3219
3228
|
const o = n.filter((i) => {
|
|
3220
|
-
var
|
|
3221
|
-
return ((
|
|
3222
|
-
}).reduce((i,
|
|
3229
|
+
var l;
|
|
3230
|
+
return ((l = i.betOfferType) == null ? void 0 : l.id) === 2;
|
|
3231
|
+
}).reduce((i, l) => (i[l.eventId] || (i[l.eventId] = []), i[l.eventId].push(l), i), {});
|
|
3223
3232
|
return e.filter((i) => o[i.id]).map((i) => ({
|
|
3224
3233
|
...i,
|
|
3225
3234
|
outcome: o[i.id]
|
|
3226
3235
|
}));
|
|
3227
3236
|
}
|
|
3228
|
-
function
|
|
3237
|
+
function Ia({
|
|
3229
3238
|
items: e,
|
|
3230
3239
|
title: n = "En vivo",
|
|
3231
3240
|
iconUrl: a,
|
|
3232
3241
|
onViewMore: o,
|
|
3233
3242
|
className: i = ""
|
|
3234
3243
|
}) {
|
|
3235
|
-
const
|
|
3244
|
+
const l = J(), s = X(), g = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/group.json?channel_id=1&client_id=200&lang=es_PE&market=PE", f = U(null), [b, r] = D({ isStart: !0, isEnd: !1 }), [m, d] = D(null);
|
|
3236
3245
|
U(/* @__PURE__ */ new Set());
|
|
3237
|
-
const [y, _] = D({}), [
|
|
3238
|
-
Q(() =>
|
|
3246
|
+
const [y, _] = D({}), [T, C] = D({ start: null, end: null }), B = "channel_id=1&client_id=200&competitionId=undefined&lang=es_PE&market=PE&useCombined=true", $ = at(T, 250), O = U(!1);
|
|
3247
|
+
Q(() => m === null ? Array(6).fill({}) : m.slice(0, 20), [m]);
|
|
3239
3248
|
const A = () => {
|
|
3240
|
-
|
|
3249
|
+
l({
|
|
3241
3250
|
element: "evento_semana_view_more",
|
|
3242
3251
|
label: `Landing: ${s} - OraculoSeccionEventoSemana - Ver más`,
|
|
3243
3252
|
target: "ver_mas",
|
|
@@ -3249,120 +3258,120 @@ function Ca({
|
|
|
3249
3258
|
tags: { section: "OraculoSeccionEventoSemana" }
|
|
3250
3259
|
}), vn();
|
|
3251
3260
|
};
|
|
3252
|
-
async function
|
|
3253
|
-
var
|
|
3254
|
-
let
|
|
3261
|
+
async function M(w) {
|
|
3262
|
+
var h, c;
|
|
3263
|
+
let I = [], F = [];
|
|
3255
3264
|
try {
|
|
3256
|
-
const
|
|
3265
|
+
const u = await fetch(
|
|
3257
3266
|
"https://api.mktolimpo.com/api/kambi/eventos/orden",
|
|
3258
|
-
{ signal:
|
|
3267
|
+
{ signal: w }
|
|
3259
3268
|
);
|
|
3260
|
-
if (
|
|
3261
|
-
const v = await
|
|
3262
|
-
|
|
3269
|
+
if (u.ok) {
|
|
3270
|
+
const v = await u.json();
|
|
3271
|
+
I = ((h = v == null ? void 0 : v.data) == null ? void 0 : h.group_ids) || [], F = ((c = v == null ? void 0 : v.data) == null ? void 0 : c.event_ids) || [];
|
|
3263
3272
|
}
|
|
3264
|
-
} catch (
|
|
3265
|
-
|
|
3273
|
+
} catch (u) {
|
|
3274
|
+
u.name !== "AbortError" && console.warn("Order API not available, using default group order");
|
|
3266
3275
|
return;
|
|
3267
3276
|
}
|
|
3268
3277
|
try {
|
|
3269
|
-
const x = (await (await fetch(g, { signal:
|
|
3278
|
+
const x = (await (await fetch(g, { signal: w })).json()).group.groups.find(
|
|
3270
3279
|
(G) => G.englishName === "Football"
|
|
3271
3280
|
);
|
|
3272
3281
|
if (!x || !Array.isArray(x.groups)) {
|
|
3273
3282
|
console.error("Football groups not found");
|
|
3274
3283
|
return;
|
|
3275
3284
|
}
|
|
3276
|
-
let
|
|
3277
|
-
if (
|
|
3285
|
+
let E = [...x.groups];
|
|
3286
|
+
if (I.length > 0) {
|
|
3278
3287
|
const G = new Map(
|
|
3279
|
-
|
|
3288
|
+
I.map((Y, re) => [Y, re])
|
|
3280
3289
|
);
|
|
3281
|
-
|
|
3282
|
-
const fe = G.get(String(Y.id)), ue = G.get(String(
|
|
3290
|
+
E.sort((Y, re) => {
|
|
3291
|
+
const fe = G.get(String(Y.id)), ue = G.get(String(re.id));
|
|
3283
3292
|
return fe !== void 0 && ue !== void 0 ? fe - ue : fe !== void 0 ? -1 : ue !== void 0 ? 1 : 0;
|
|
3284
3293
|
});
|
|
3285
3294
|
}
|
|
3286
|
-
const
|
|
3295
|
+
const P = E.slice(0, 5), H = (G) => {
|
|
3287
3296
|
const Y = "https://us1.offering-api.kambicdn.com/offering/v2018/nexuspe/listView/football";
|
|
3288
3297
|
if (G.groups && G.groups.length > 0) {
|
|
3289
|
-
const
|
|
3298
|
+
const re = G.groups[0];
|
|
3290
3299
|
return [
|
|
3291
|
-
`${Y}/${G.termKey}/${
|
|
3300
|
+
`${Y}/${G.termKey}/${re.termKey}/all/matches.json?${B}`
|
|
3292
3301
|
];
|
|
3293
3302
|
}
|
|
3294
3303
|
return [
|
|
3295
|
-
`${Y}/${G.termKey}/all/all/matches.json?${
|
|
3304
|
+
`${Y}/${G.termKey}/all/all/matches.json?${B}`
|
|
3296
3305
|
];
|
|
3297
|
-
}, j =
|
|
3298
|
-
|
|
3299
|
-
} catch (
|
|
3300
|
-
console.error(
|
|
3306
|
+
}, j = P.flatMap(H);
|
|
3307
|
+
N(j, F, w);
|
|
3308
|
+
} catch (u) {
|
|
3309
|
+
console.error(u);
|
|
3301
3310
|
}
|
|
3302
3311
|
}
|
|
3303
|
-
async function
|
|
3312
|
+
async function N(w, I, F) {
|
|
3304
3313
|
try {
|
|
3305
|
-
const
|
|
3306
|
-
let c = [],
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3314
|
+
const h = await Sa(w, 2, F);
|
|
3315
|
+
let c = [], u = [];
|
|
3316
|
+
h.forEach((k) => {
|
|
3317
|
+
k.events && (c.push(...k.events.map((P) => P.event)), u.push(
|
|
3318
|
+
...k.events.flatMap((P) => P.betOffers || [])
|
|
3310
3319
|
));
|
|
3311
3320
|
});
|
|
3312
|
-
const v =
|
|
3313
|
-
let
|
|
3314
|
-
if (
|
|
3315
|
-
const
|
|
3316
|
-
|
|
3317
|
-
String(
|
|
3321
|
+
const v = Ea(c, u), x = Ca(Oa(v));
|
|
3322
|
+
let E = x;
|
|
3323
|
+
if (I.length > 0) {
|
|
3324
|
+
const k = new Map(
|
|
3325
|
+
I.map((P, H) => [
|
|
3326
|
+
String(P),
|
|
3318
3327
|
H
|
|
3319
3328
|
])
|
|
3320
3329
|
);
|
|
3321
|
-
|
|
3322
|
-
const j =
|
|
3330
|
+
E = [...x].sort((P, H) => {
|
|
3331
|
+
const j = k.get(String(P.id)), G = k.get(String(H.id));
|
|
3323
3332
|
return j !== void 0 && G !== void 0 ? j - G : j !== void 0 ? -1 : G !== void 0 ? 1 : 0;
|
|
3324
3333
|
});
|
|
3325
3334
|
}
|
|
3326
|
-
if (
|
|
3327
|
-
|
|
3328
|
-
} catch (
|
|
3329
|
-
console.error("Error loading events:",
|
|
3335
|
+
if (F.aborted) return;
|
|
3336
|
+
d(E);
|
|
3337
|
+
} catch (h) {
|
|
3338
|
+
console.error("Error loading events:", h);
|
|
3330
3339
|
}
|
|
3331
3340
|
}
|
|
3332
3341
|
K(() => {
|
|
3333
3342
|
if (!e) return;
|
|
3334
|
-
const
|
|
3335
|
-
return
|
|
3336
|
-
|
|
3343
|
+
const w = new AbortController();
|
|
3344
|
+
return M(w.signal), () => {
|
|
3345
|
+
w.abort();
|
|
3337
3346
|
};
|
|
3338
3347
|
}, [e]), K(() => {
|
|
3339
|
-
if (
|
|
3348
|
+
if ($.start === null || $.end === null || !(m != null && m.length) || O.current)
|
|
3340
3349
|
return;
|
|
3341
|
-
const
|
|
3342
|
-
if (!
|
|
3350
|
+
const w = 2, I = Math.max(0, $.start - w), F = Math.min(m.length - 1, $.end + w), h = m.slice(I, F + 1).map((u) => u == null ? void 0 : u.id).filter(Boolean).filter((u) => y[u] === void 0);
|
|
3351
|
+
if (!h.length) return;
|
|
3343
3352
|
let c = !1;
|
|
3344
|
-
return
|
|
3353
|
+
return O.current = !0, (async () => {
|
|
3345
3354
|
try {
|
|
3346
|
-
const
|
|
3355
|
+
const u = await nt(h);
|
|
3347
3356
|
c || _((v) => ({
|
|
3348
3357
|
...v,
|
|
3349
|
-
...
|
|
3358
|
+
...u.events
|
|
3350
3359
|
}));
|
|
3351
|
-
} catch (
|
|
3352
|
-
console.error("Jersey fetch error",
|
|
3360
|
+
} catch (u) {
|
|
3361
|
+
console.error("Jersey fetch error", u);
|
|
3353
3362
|
} finally {
|
|
3354
|
-
|
|
3363
|
+
O.current = !1;
|
|
3355
3364
|
}
|
|
3356
3365
|
})(), () => {
|
|
3357
3366
|
c = !0;
|
|
3358
3367
|
};
|
|
3359
|
-
}, [
|
|
3360
|
-
const
|
|
3368
|
+
}, [$, m]);
|
|
3369
|
+
const S = i || void 0, R = {
|
|
3361
3370
|
paddingLeft: 0,
|
|
3362
3371
|
width: "100%",
|
|
3363
3372
|
boxSizing: "border-box"
|
|
3364
|
-
}, z =
|
|
3365
|
-
return !z &&
|
|
3373
|
+
}, z = m === null;
|
|
3374
|
+
return !z && m.length === 0 ? null : /* @__PURE__ */ t("section", { className: S, style: R, children: /* @__PURE__ */ p("div", { className: `${be.wrapper} ${be.padding}`, children: [
|
|
3366
3375
|
/* @__PURE__ */ t("div", { className: be.container, children: /* @__PURE__ */ p(V, { direction: "column", spacing: 1.5, useFlexGap: !0, children: [
|
|
3367
3376
|
/* @__PURE__ */ t(le, { title: "Eventos de la semana" }),
|
|
3368
3377
|
/* @__PURE__ */ t("div", { className: be.buttonWrapper, children: /* @__PURE__ */ t(
|
|
@@ -3381,8 +3390,8 @@ function Ca({
|
|
|
3381
3390
|
/* @__PURE__ */ t("div", { style: { minWidth: "180px" }, children: /* @__PURE__ */ t(
|
|
3382
3391
|
se,
|
|
3383
3392
|
{
|
|
3384
|
-
ref:
|
|
3385
|
-
items: z ? Array(6).fill({}) :
|
|
3393
|
+
ref: f,
|
|
3394
|
+
items: z ? Array(6).fill({}) : m.slice(0, 20),
|
|
3386
3395
|
perPage: 3.5,
|
|
3387
3396
|
gap: "16px",
|
|
3388
3397
|
enableHorizontalWheel: !0,
|
|
@@ -3396,15 +3405,15 @@ function Ca({
|
|
|
3396
3405
|
padding: { left: "8px", right: "8px" }
|
|
3397
3406
|
}
|
|
3398
3407
|
},
|
|
3399
|
-
renderItem: (
|
|
3400
|
-
const
|
|
3401
|
-
return z ? /* @__PURE__ */ t(Oe, { children: /* @__PURE__ */ t(
|
|
3408
|
+
renderItem: (w) => {
|
|
3409
|
+
const I = w.id, F = I in y ? y[I] : void 0;
|
|
3410
|
+
return z ? /* @__PURE__ */ t(Oe, { children: /* @__PURE__ */ t(ba, {}) }) : /* @__PURE__ */ t(Oe, { children: /* @__PURE__ */ t(wa, { event: w, jersey: F }) });
|
|
3402
3411
|
},
|
|
3403
|
-
onMove: ({ isStart:
|
|
3404
|
-
|
|
3405
|
-
start:
|
|
3406
|
-
end:
|
|
3407
|
-
}),
|
|
3412
|
+
onMove: ({ isStart: w, isEnd: I, visibleStart: F, visibleEnd: h }) => {
|
|
3413
|
+
r({ isStart: w, isEnd: I }), C({
|
|
3414
|
+
start: F,
|
|
3415
|
+
end: h
|
|
3416
|
+
}), l({
|
|
3408
3417
|
element: "evento_semana_carousel_slide",
|
|
3409
3418
|
label: `Landing: ${s} - OraculoSeccionEventoSemana - Slide Carousel`,
|
|
3410
3419
|
target: "carousel",
|
|
@@ -3412,10 +3421,10 @@ function Ca({
|
|
|
3412
3421
|
module_id: 301,
|
|
3413
3422
|
metadata: {
|
|
3414
3423
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
3415
|
-
visibleStart:
|
|
3416
|
-
visibleEnd:
|
|
3417
|
-
isStart:
|
|
3418
|
-
isEnd:
|
|
3424
|
+
visibleStart: F,
|
|
3425
|
+
visibleEnd: h,
|
|
3426
|
+
isStart: w,
|
|
3427
|
+
isEnd: I
|
|
3419
3428
|
},
|
|
3420
3429
|
tags: { section: "OraculoSeccionEventoSemana" }
|
|
3421
3430
|
});
|
|
@@ -3424,13 +3433,13 @@ function Ca({
|
|
|
3424
3433
|
) })
|
|
3425
3434
|
] }) });
|
|
3426
3435
|
}
|
|
3427
|
-
function
|
|
3436
|
+
function Ta({
|
|
3428
3437
|
backgrounds: e,
|
|
3429
3438
|
items: n,
|
|
3430
3439
|
hideItems: a
|
|
3431
3440
|
}) {
|
|
3432
|
-
var
|
|
3433
|
-
const [o, i] = D(0),
|
|
3441
|
+
var I, F, h;
|
|
3442
|
+
const [o, i] = D(0), l = J(), s = X(), g = U(null), f = U(!1), b = U(!1), r = (e == null ? void 0 : e.length) || 1, m = !e || e.length === 0, d = !m && ((I = e == null ? void 0 : e.length) != null ? I : 0) > 1, y = !a && ((F = n == null ? void 0 : n.length) != null ? F : 0) > 0, _ = "#B5B5B5", T = {
|
|
3434
3443
|
position: "absolute",
|
|
3435
3444
|
top: "50%",
|
|
3436
3445
|
transform: "translateY(-50%)",
|
|
@@ -3466,14 +3475,14 @@ function Oa({
|
|
|
3466
3475
|
);
|
|
3467
3476
|
K(() => {
|
|
3468
3477
|
const c = setTimeout(() => {
|
|
3469
|
-
|
|
3478
|
+
f.current = !0;
|
|
3470
3479
|
}, 500);
|
|
3471
3480
|
return () => clearTimeout(c);
|
|
3472
3481
|
}, []);
|
|
3473
|
-
const
|
|
3474
|
-
var x,
|
|
3475
|
-
const v = ((
|
|
3476
|
-
|
|
3482
|
+
const B = (c, u) => {
|
|
3483
|
+
var x, E;
|
|
3484
|
+
const v = ((E = (x = c.href) == null ? void 0 : x.split("/").pop()) == null ? void 0 : E.split(".")[0]) || c.label || c.id || `banner_${u + 1}`;
|
|
3485
|
+
l({
|
|
3477
3486
|
element: "banner_carousel",
|
|
3478
3487
|
label: `Landing: ${s} - OraculoSeccionBanners - Banner click: ${v}`,
|
|
3479
3488
|
target: c.href || "no_url",
|
|
@@ -3481,7 +3490,7 @@ function Oa({
|
|
|
3481
3490
|
module_id: 301,
|
|
3482
3491
|
metadata: {
|
|
3483
3492
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
3484
|
-
banner_position:
|
|
3493
|
+
banner_position: u + 1,
|
|
3485
3494
|
banner_total: (e == null ? void 0 : e.length) || 0
|
|
3486
3495
|
},
|
|
3487
3496
|
tags: {
|
|
@@ -3490,8 +3499,8 @@ function Oa({
|
|
|
3490
3499
|
banner_url: c.href || "no_url"
|
|
3491
3500
|
}
|
|
3492
3501
|
});
|
|
3493
|
-
},
|
|
3494
|
-
if (
|
|
3502
|
+
}, $ = (c) => {
|
|
3503
|
+
if (l({
|
|
3495
3504
|
element: "banner_menu_item",
|
|
3496
3505
|
label: `Landing: ${s} - OraculoSeccionBanners - Menu item click: ${c.label || c.id}`,
|
|
3497
3506
|
target: c.href || "action",
|
|
@@ -3509,39 +3518,39 @@ function Oa({
|
|
|
3509
3518
|
return;
|
|
3510
3519
|
}
|
|
3511
3520
|
c.href && typeof globalThis != "undefined" && globalThis.location && globalThis.location.assign(c.href);
|
|
3512
|
-
},
|
|
3521
|
+
}, O = 5e3, A = U(null), M = !m && ((h = e == null ? void 0 : e.length) != null ? h : 0) > 1, N = () => {
|
|
3513
3522
|
A.current != null && (window.clearTimeout(A.current), A.current = null);
|
|
3514
|
-
},
|
|
3515
|
-
|
|
3523
|
+
}, S = () => {
|
|
3524
|
+
N(), M && (A.current = window.setTimeout(() => {
|
|
3516
3525
|
var c;
|
|
3517
3526
|
b.current = !0, (c = g.current) == null || c.next();
|
|
3518
|
-
},
|
|
3527
|
+
}, O));
|
|
3519
3528
|
};
|
|
3520
|
-
K(() => (
|
|
3529
|
+
K(() => (S(), () => N()), [M, O]);
|
|
3521
3530
|
const R = (c) => {
|
|
3522
|
-
var
|
|
3523
|
-
c.preventDefault(), c.stopPropagation(),
|
|
3531
|
+
var u;
|
|
3532
|
+
c.preventDefault(), c.stopPropagation(), N(), (u = g.current) == null || u.prev();
|
|
3524
3533
|
}, z = (c) => {
|
|
3525
|
-
var
|
|
3526
|
-
c.preventDefault(), c.stopPropagation(),
|
|
3527
|
-
},
|
|
3528
|
-
var x,
|
|
3529
|
-
const
|
|
3530
|
-
if (!
|
|
3531
|
-
const v = (x = e == null ? void 0 : e[
|
|
3532
|
-
|
|
3534
|
+
var u;
|
|
3535
|
+
c.preventDefault(), c.stopPropagation(), N(), (u = g.current) == null || u.next();
|
|
3536
|
+
}, w = (c) => {
|
|
3537
|
+
var x, E, k, P;
|
|
3538
|
+
const u = (c % r + r) % r;
|
|
3539
|
+
if (!f.current) return;
|
|
3540
|
+
const v = (x = e == null ? void 0 : e[u]) != null && x.href ? ((k = (E = e[u].href) == null ? void 0 : E.split("/").pop()) == null ? void 0 : k.split(".")[0]) || `banner_${u + 1}` : `banner_${u + 1}`;
|
|
3541
|
+
l({
|
|
3533
3542
|
element: "banner_carousel",
|
|
3534
|
-
label: `Landing: ${s} - OraculoSeccionBanners - Banner view: Slide ${
|
|
3535
|
-
target: ((
|
|
3543
|
+
label: `Landing: ${s} - OraculoSeccionBanners - Banner view: Slide ${u + 1} - ${v}`,
|
|
3544
|
+
target: ((P = e == null ? void 0 : e[u]) == null ? void 0 : P.href) || "no_url",
|
|
3536
3545
|
event_type: "view",
|
|
3537
3546
|
module_id: 301,
|
|
3538
3547
|
metadata: {
|
|
3539
3548
|
location: typeof globalThis != "undefined" && globalThis.location ? globalThis.location.pathname : "",
|
|
3540
|
-
slide_index:
|
|
3541
|
-
total_slides:
|
|
3549
|
+
slide_index: u + 1,
|
|
3550
|
+
total_slides: r,
|
|
3542
3551
|
interaction_type: "manual_slide"
|
|
3543
3552
|
},
|
|
3544
|
-
tags: { banner_position: String(
|
|
3553
|
+
tags: { banner_position: String(u + 1) }
|
|
3545
3554
|
});
|
|
3546
3555
|
};
|
|
3547
3556
|
return /* @__PURE__ */ p(
|
|
@@ -3587,12 +3596,12 @@ function Oa({
|
|
|
3587
3596
|
enableHorizontalWheel: !0,
|
|
3588
3597
|
options: C,
|
|
3589
3598
|
onMove: ({ index: c }) => {
|
|
3590
|
-
const
|
|
3591
|
-
i(
|
|
3599
|
+
const u = (c % r + r) % r;
|
|
3600
|
+
i(u);
|
|
3592
3601
|
const v = b.current;
|
|
3593
|
-
b.current = !1,
|
|
3602
|
+
b.current = !1, S(), v || w(c);
|
|
3594
3603
|
},
|
|
3595
|
-
renderItem: (c,
|
|
3604
|
+
renderItem: (c, u) => {
|
|
3596
3605
|
var v, x;
|
|
3597
3606
|
return /* @__PURE__ */ p(
|
|
3598
3607
|
Z,
|
|
@@ -3601,7 +3610,7 @@ function Oa({
|
|
|
3601
3610
|
href: c.href,
|
|
3602
3611
|
target: (v = c.target) != null ? v : "_self",
|
|
3603
3612
|
rel: c.target === "_blank" ? "noopener noreferrer" : void 0,
|
|
3604
|
-
onClick: () =>
|
|
3613
|
+
onClick: () => B(c, u),
|
|
3605
3614
|
sx: {
|
|
3606
3615
|
position: "relative",
|
|
3607
3616
|
width: "100%",
|
|
@@ -3658,14 +3667,14 @@ function Oa({
|
|
|
3658
3667
|
)
|
|
3659
3668
|
}
|
|
3660
3669
|
),
|
|
3661
|
-
|
|
3670
|
+
d && /* @__PURE__ */ p(ee, { children: [
|
|
3662
3671
|
/* @__PURE__ */ t(
|
|
3663
3672
|
Ae,
|
|
3664
3673
|
{
|
|
3665
3674
|
"aria-label": "Anterior",
|
|
3666
3675
|
onClick: R,
|
|
3667
3676
|
sx: {
|
|
3668
|
-
...
|
|
3677
|
+
...T,
|
|
3669
3678
|
left: "120px",
|
|
3670
3679
|
"@media (max-width:1024px)": { left: 24 },
|
|
3671
3680
|
"@media (max-width:786px)": { display: "none" }
|
|
@@ -3679,7 +3688,7 @@ function Oa({
|
|
|
3679
3688
|
"aria-label": "Siguiente",
|
|
3680
3689
|
onClick: z,
|
|
3681
3690
|
sx: {
|
|
3682
|
-
...
|
|
3691
|
+
...T,
|
|
3683
3692
|
right: "120px",
|
|
3684
3693
|
"@media (max-width:1024px)": { right: 24 },
|
|
3685
3694
|
"@media (max-width:786px)": { display: "none" }
|
|
@@ -3703,11 +3712,11 @@ function Oa({
|
|
|
3703
3712
|
children: /* @__PURE__ */ t(
|
|
3704
3713
|
Xe,
|
|
3705
3714
|
{
|
|
3706
|
-
total:
|
|
3715
|
+
total: r,
|
|
3707
3716
|
active: o,
|
|
3708
|
-
durationMs:
|
|
3717
|
+
durationMs: O
|
|
3709
3718
|
},
|
|
3710
|
-
`${o}-${
|
|
3719
|
+
`${o}-${r}`
|
|
3711
3720
|
)
|
|
3712
3721
|
}
|
|
3713
3722
|
)
|
|
@@ -3746,7 +3755,7 @@ function Oa({
|
|
|
3746
3755
|
cursor: c.onClick || c.href ? "pointer" : "default",
|
|
3747
3756
|
whiteSpace: "nowrap"
|
|
3748
3757
|
},
|
|
3749
|
-
onClick: () =>
|
|
3758
|
+
onClick: () => $(c),
|
|
3750
3759
|
children: [
|
|
3751
3760
|
c.icon && /* @__PURE__ */ t(
|
|
3752
3761
|
Z,
|
|
@@ -3783,7 +3792,7 @@ function Oa({
|
|
|
3783
3792
|
}
|
|
3784
3793
|
);
|
|
3785
3794
|
}
|
|
3786
|
-
const
|
|
3795
|
+
const ka = [
|
|
3787
3796
|
{ src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/IBK.svg", alt: "Interbank" },
|
|
3788
3797
|
{ src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/Yape.svg", alt: "Yape" },
|
|
3789
3798
|
{ src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/BCP.png", alt: "BCP" },
|
|
@@ -3792,9 +3801,9 @@ const Ea = [
|
|
|
3792
3801
|
{ src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/monnet.svg", alt: "Monnet" },
|
|
3793
3802
|
{ src: "https://stg-www.contodobet.com/static/img/landing/MediosPago/niubiz.svg", alt: "Niubiz" }
|
|
3794
3803
|
];
|
|
3795
|
-
function
|
|
3804
|
+
function $a({
|
|
3796
3805
|
title: e = "Medios de pago",
|
|
3797
|
-
items: n =
|
|
3806
|
+
items: n = ka
|
|
3798
3807
|
}) {
|
|
3799
3808
|
const a = Math.ceil(n.length / 2), o = n.slice(0, a), i = n.slice(a);
|
|
3800
3809
|
return /* @__PURE__ */ p(Z, { component: "section", "aria-labelledby": "mp-title", sx: { color: "#fff" }, children: [
|
|
@@ -3835,7 +3844,7 @@ function Ia({
|
|
|
3835
3844
|
alignItems: "center",
|
|
3836
3845
|
gap: { xs: 2, md: 3 },
|
|
3837
3846
|
flexWrap: "wrap",
|
|
3838
|
-
children: o.map((
|
|
3847
|
+
children: o.map((l, s) => /* @__PURE__ */ t(Re, { ...l }, `${l.alt}-${l.src}-${s}`))
|
|
3839
3848
|
}
|
|
3840
3849
|
),
|
|
3841
3850
|
/* @__PURE__ */ t(
|
|
@@ -3846,7 +3855,7 @@ function Ia({
|
|
|
3846
3855
|
alignItems: "center",
|
|
3847
3856
|
gap: { xs: 2, md: 3 },
|
|
3848
3857
|
flexWrap: "wrap",
|
|
3849
|
-
children: i.map((
|
|
3858
|
+
children: i.map((l, s) => /* @__PURE__ */ t(Re, { ...l }, `${l.alt}-${l.src}-${s}`))
|
|
3850
3859
|
}
|
|
3851
3860
|
)
|
|
3852
3861
|
] })
|
|
@@ -3873,25 +3882,25 @@ function Be({
|
|
|
3873
3882
|
e
|
|
3874
3883
|
] });
|
|
3875
3884
|
}
|
|
3876
|
-
function
|
|
3885
|
+
function Ya({
|
|
3877
3886
|
docId: e = "home",
|
|
3878
3887
|
children: n
|
|
3879
3888
|
}) {
|
|
3880
3889
|
return /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Me, { docId: e, children: n }) });
|
|
3881
3890
|
}
|
|
3882
|
-
const
|
|
3891
|
+
const Na = {
|
|
3883
3892
|
OraculoSeccionDestacados: Ln,
|
|
3884
3893
|
OraculoSeccionTopJuegos: Fn,
|
|
3885
3894
|
OraculoSeccionCasinoEnVivo: zn,
|
|
3886
|
-
OraculoSeccionCasino:
|
|
3887
|
-
OraculoSeccionVirtuales:
|
|
3888
|
-
OraculoSeccionClubOlimpo:
|
|
3889
|
-
OraculoSeccionBonoBienvenida:
|
|
3890
|
-
OraculoSeccionBanners:
|
|
3891
|
-
OraculoSeccionMediosPago:
|
|
3892
|
-
OraculoSeccionEventoEnVivo:
|
|
3893
|
-
OraculoSeccionEventoSemana:
|
|
3894
|
-
OraculoSeccionEventoCombinadas:
|
|
3895
|
+
OraculoSeccionCasino: Zn,
|
|
3896
|
+
OraculoSeccionVirtuales: Yn,
|
|
3897
|
+
OraculoSeccionClubOlimpo: ta,
|
|
3898
|
+
OraculoSeccionBonoBienvenida: ea,
|
|
3899
|
+
OraculoSeccionBanners: Ta,
|
|
3900
|
+
OraculoSeccionMediosPago: $a,
|
|
3901
|
+
OraculoSeccionEventoEnVivo: ha,
|
|
3902
|
+
OraculoSeccionEventoSemana: Ia,
|
|
3903
|
+
OraculoSeccionEventoCombinadas: sa
|
|
3895
3904
|
}, We = {
|
|
3896
3905
|
sections: [
|
|
3897
3906
|
{
|
|
@@ -4955,18 +4964,18 @@ const Ta = {
|
|
|
4955
4964
|
updatedAt: "2026-01-22T04:11:09.501Z"
|
|
4956
4965
|
}
|
|
4957
4966
|
]
|
|
4958
|
-
},
|
|
4967
|
+
}, Ma = (e) => typeof e == "function" || e && typeof e == "object" && "$$typeof" in e, Ba = (e) => /^OraculoSeccion[A-Z]/.test(e);
|
|
4959
4968
|
function Ne(e) {
|
|
4960
4969
|
return e && Array.isArray(e.sections) ? e.sections.slice().sort((n, a) => {
|
|
4961
4970
|
var o, i;
|
|
4962
4971
|
return ((o = n.order) != null ? o : 0) - ((i = a.order) != null ? i : 0);
|
|
4963
4972
|
}).map((n, a) => ({ ...n, order: a + 1 })) : e && Array.isArray(e.components) ? e.components.map((n, a) => {
|
|
4964
|
-
var o, i,
|
|
4973
|
+
var o, i, l, s, g;
|
|
4965
4974
|
return {
|
|
4966
4975
|
id: (o = n.id) != null ? o : a + 1,
|
|
4967
4976
|
title: (i = n.title) != null ? i : "",
|
|
4968
4977
|
componentKey: n.componentKey,
|
|
4969
|
-
visible: (
|
|
4978
|
+
visible: (l = n.visible) != null ? l : !0,
|
|
4970
4979
|
order: a + 1,
|
|
4971
4980
|
props: (s = n.props) != null ? s : {},
|
|
4972
4981
|
apiUrl: (g = n.apiUrl) != null ? g : "",
|
|
@@ -4978,11 +4987,11 @@ function Ne(e) {
|
|
|
4978
4987
|
};
|
|
4979
4988
|
}) : [];
|
|
4980
4989
|
}
|
|
4981
|
-
const
|
|
4982
|
-
Object.entries(
|
|
4983
|
-
([e, n]) =>
|
|
4990
|
+
const La = Object.fromEntries(
|
|
4991
|
+
Object.entries(Na).filter(
|
|
4992
|
+
([e, n]) => Ba(e) && Ma(n)
|
|
4984
4993
|
)
|
|
4985
|
-
),
|
|
4994
|
+
), Aa = (e) => {
|
|
4986
4995
|
try {
|
|
4987
4996
|
return Object.fromEntries(e != null ? e : []);
|
|
4988
4997
|
} catch {
|
|
@@ -4998,70 +5007,70 @@ const je = [
|
|
|
4998
5007
|
"OraculoSeccionEventoEnVivo",
|
|
4999
5008
|
"OraculoSeccionEventoSemana",
|
|
5000
5009
|
"OraculoSeccionEventoCombinadas"
|
|
5001
|
-
],
|
|
5010
|
+
], Qa = ({
|
|
5002
5011
|
sectionsOverride: e,
|
|
5003
5012
|
docId: n = "home",
|
|
5004
5013
|
db: a,
|
|
5005
5014
|
extras: o,
|
|
5006
5015
|
loader: i,
|
|
5007
|
-
disableWrapper:
|
|
5016
|
+
disableWrapper: l = !1
|
|
5008
5017
|
}) => {
|
|
5009
|
-
const s = Q(() =>
|
|
5018
|
+
const s = Q(() => Aa(o), [o]), g = i || s.loader, [f, b] = D([]), [r, m] = D(!1), [d, y] = D({}), [_, T] = D({}), [C, B] = D({}), $ = st("(min-width:1024px)");
|
|
5010
5019
|
K(() => {
|
|
5011
5020
|
if (e) return;
|
|
5012
5021
|
if (!a) {
|
|
5013
5022
|
console.warn("[landing] sin db -> fallback json"), b(Ne(We));
|
|
5014
5023
|
return;
|
|
5015
5024
|
}
|
|
5016
|
-
const
|
|
5017
|
-
console.warn("[landing] FALLBACK:",
|
|
5025
|
+
const h = (u, v) => {
|
|
5026
|
+
console.warn("[landing] FALLBACK:", u, v != null ? v : ""), b(Ne(We)), m(!1);
|
|
5018
5027
|
};
|
|
5019
5028
|
if (process.env.NEXT_PUBLIC_LANDING_FORCE_FALLBACK === "1") {
|
|
5020
|
-
|
|
5029
|
+
m(!0), h("forzado por env");
|
|
5021
5030
|
return;
|
|
5022
5031
|
}
|
|
5023
|
-
|
|
5032
|
+
m(!0);
|
|
5024
5033
|
const c = wt(
|
|
5025
5034
|
St(a, "landings", n),
|
|
5026
|
-
(
|
|
5035
|
+
(u) => {
|
|
5027
5036
|
try {
|
|
5028
|
-
if (!
|
|
5029
|
-
|
|
5037
|
+
if (!u.exists()) {
|
|
5038
|
+
h(`doc landings/${n} no existe`);
|
|
5030
5039
|
return;
|
|
5031
5040
|
}
|
|
5032
|
-
const v =
|
|
5041
|
+
const v = u.data(), x = Ne(v);
|
|
5033
5042
|
if (!x.length) {
|
|
5034
|
-
|
|
5043
|
+
h("JSON inválido o sin secciones normalizables", v);
|
|
5035
5044
|
return;
|
|
5036
5045
|
}
|
|
5037
5046
|
console.log("[landing] Firestore OK (json grande):", v), b(x);
|
|
5038
5047
|
} catch (v) {
|
|
5039
|
-
|
|
5048
|
+
h("error procesando snapshot", v);
|
|
5040
5049
|
} finally {
|
|
5041
|
-
|
|
5050
|
+
m(!1);
|
|
5042
5051
|
}
|
|
5043
5052
|
},
|
|
5044
|
-
(
|
|
5045
|
-
|
|
5053
|
+
(u) => {
|
|
5054
|
+
h("error onSnapshot", u);
|
|
5046
5055
|
}
|
|
5047
5056
|
);
|
|
5048
5057
|
return () => c();
|
|
5049
5058
|
}, [e, n, a]), K(() => (An(s), () => Rn()), [s]), K(() => {
|
|
5050
|
-
(e ? e.slice() :
|
|
5051
|
-
}, [e,
|
|
5052
|
-
const
|
|
5053
|
-
if (je.includes(
|
|
5059
|
+
(e ? e.slice() : f.slice()).map((u) => u.componentKey).filter((u) => !!u).length;
|
|
5060
|
+
}, [e, f]);
|
|
5061
|
+
const O = async (h) => {
|
|
5062
|
+
if (je.includes(h.componentKey))
|
|
5054
5063
|
return {
|
|
5055
5064
|
// whatever empty structure your UI expects
|
|
5056
5065
|
items: [],
|
|
5057
5066
|
events: [],
|
|
5058
5067
|
data: {}
|
|
5059
5068
|
};
|
|
5060
|
-
const c = (
|
|
5069
|
+
const c = (h.apiUrl || "").trim();
|
|
5061
5070
|
if (!c) return;
|
|
5062
|
-
const
|
|
5063
|
-
let x = c,
|
|
5064
|
-
if (
|
|
5071
|
+
const u = h.apiMethod || "GET", v = h.apiParams || [];
|
|
5072
|
+
let x = c, E, k;
|
|
5073
|
+
if (u === "GET") {
|
|
5065
5074
|
const H = new URL(
|
|
5066
5075
|
c,
|
|
5067
5076
|
typeof window == "undefined" ? "http://localhost" : window.location.origin
|
|
@@ -5073,157 +5082,157 @@ const je = [
|
|
|
5073
5082
|
const H = new URLSearchParams();
|
|
5074
5083
|
for (const j of v)
|
|
5075
5084
|
j.key && H.append(j.key, j.value);
|
|
5076
|
-
|
|
5085
|
+
E = H.toString(), k = {
|
|
5077
5086
|
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
|
|
5078
5087
|
};
|
|
5079
5088
|
}
|
|
5080
|
-
const
|
|
5081
|
-
method:
|
|
5082
|
-
headers:
|
|
5083
|
-
body:
|
|
5089
|
+
const P = await fetch(x, {
|
|
5090
|
+
method: u,
|
|
5091
|
+
headers: k,
|
|
5092
|
+
body: E
|
|
5084
5093
|
});
|
|
5085
|
-
if (!
|
|
5086
|
-
return
|
|
5094
|
+
if (!P.ok) throw new Ge(P.status, x, P.statusText);
|
|
5095
|
+
return P.json();
|
|
5087
5096
|
}, A = Q(
|
|
5088
|
-
() => e ? e.slice() :
|
|
5089
|
-
[e,
|
|
5090
|
-
),
|
|
5097
|
+
() => e ? e.slice() : f.slice(),
|
|
5098
|
+
[e, f]
|
|
5099
|
+
), M = de.useRef(/* @__PURE__ */ new Set());
|
|
5091
5100
|
K(() => {
|
|
5092
|
-
const
|
|
5093
|
-
if (
|
|
5094
|
-
for (const { s: c, url:
|
|
5095
|
-
const v = `${c.id}|${
|
|
5096
|
-
|
|
5101
|
+
const h = A.map((c) => ({ s: c, url: (c.apiUrl || "").trim() })).filter(({ url: c }) => !!c);
|
|
5102
|
+
if (h.length)
|
|
5103
|
+
for (const { s: c, url: u } of h) {
|
|
5104
|
+
const v = `${c.id}|${u}`;
|
|
5105
|
+
M.current.has(v) || (M.current.add(v), T((x) => ({ ...x, [c.id]: !0 })), B((x) => ({ ...x, [c.id]: "" })), (async () => {
|
|
5097
5106
|
try {
|
|
5098
|
-
const x = await
|
|
5099
|
-
y((
|
|
5107
|
+
const x = await O(c);
|
|
5108
|
+
y((E) => ({ ...E, [c.id]: x }));
|
|
5100
5109
|
} catch (x) {
|
|
5101
|
-
let
|
|
5102
|
-
x instanceof Ge ?
|
|
5110
|
+
let E = "Error desconocido";
|
|
5111
|
+
x instanceof Ge ? E = `Error HTTP ${x.status} (${x.statusText}) en ${x.url}` : x instanceof SyntaxError ? E = "Respuesta no es JSON válido" : x instanceof TypeError ? E = "Fallo de red / CORS / conexión" : typeof x == "string" && (E = x.toString()), B((k) => ({ ...k, [c.id]: E }));
|
|
5103
5112
|
} finally {
|
|
5104
|
-
|
|
5113
|
+
T((x) => ({ ...x, [c.id]: !1 }));
|
|
5105
5114
|
}
|
|
5106
5115
|
})());
|
|
5107
5116
|
}
|
|
5108
5117
|
}, [A]);
|
|
5109
|
-
const
|
|
5110
|
-
() => A.filter((
|
|
5118
|
+
const N = Q(
|
|
5119
|
+
() => A.filter((h) => h.visible).sort((h, c) => h.order - c.order),
|
|
5111
5120
|
[A]
|
|
5112
|
-
),
|
|
5113
|
-
const
|
|
5121
|
+
), S = (h) => Array.isArray(h) ? h.map((c) => {
|
|
5122
|
+
const u = {};
|
|
5114
5123
|
for (const v of c.fields || []) {
|
|
5115
5124
|
const x = (v.type || "string").toLowerCase();
|
|
5116
5125
|
if (x === "number") {
|
|
5117
|
-
const
|
|
5118
|
-
if (
|
|
5119
|
-
const
|
|
5120
|
-
Number.isNaN(
|
|
5126
|
+
const E = String(v.value || "").trim();
|
|
5127
|
+
if (E !== "") {
|
|
5128
|
+
const k = Number(E);
|
|
5129
|
+
Number.isNaN(k) || (u[v.name] = k);
|
|
5121
5130
|
}
|
|
5122
5131
|
} else if (x === "boolean")
|
|
5123
|
-
|
|
5132
|
+
u[v.name] = String(v.value).toLowerCase() === "true";
|
|
5124
5133
|
else if (x === "function") {
|
|
5125
|
-
const
|
|
5126
|
-
if (
|
|
5134
|
+
const E = String(v.value || "").trim();
|
|
5135
|
+
if (E)
|
|
5127
5136
|
try {
|
|
5128
|
-
const
|
|
5129
|
-
|
|
5130
|
-
} catch (
|
|
5131
|
-
console.error(`❌ Error creando función en item '${v.name}':`,
|
|
5137
|
+
const k = new Function(E);
|
|
5138
|
+
u[v.name] = k;
|
|
5139
|
+
} catch (k) {
|
|
5140
|
+
console.error(`❌ Error creando función en item '${v.name}':`, k);
|
|
5132
5141
|
}
|
|
5133
|
-
} else
|
|
5142
|
+
} else u[v.name] = v.value;
|
|
5134
5143
|
}
|
|
5135
|
-
return
|
|
5136
|
-
}) : [], R = (
|
|
5144
|
+
return u;
|
|
5145
|
+
}) : [], R = (h) => {
|
|
5137
5146
|
const c = {};
|
|
5138
|
-
if (!Array.isArray(
|
|
5139
|
-
for (const
|
|
5140
|
-
if (!
|
|
5141
|
-
const v = (
|
|
5147
|
+
if (!Array.isArray(h)) return c;
|
|
5148
|
+
for (const u of h) {
|
|
5149
|
+
if (!u.name) continue;
|
|
5150
|
+
const v = (u.type || "string").toLowerCase();
|
|
5142
5151
|
if (v === "number") {
|
|
5143
|
-
const x = String(
|
|
5152
|
+
const x = String(u.value || "").trim();
|
|
5144
5153
|
if (x !== "") {
|
|
5145
|
-
const
|
|
5146
|
-
Number.isNaN(
|
|
5154
|
+
const E = Number(x);
|
|
5155
|
+
Number.isNaN(E) || (c[u.name] = E);
|
|
5147
5156
|
}
|
|
5148
5157
|
} else if (v === "boolean")
|
|
5149
|
-
c[
|
|
5158
|
+
c[u.name] = String(u.value).toLowerCase() === "true";
|
|
5150
5159
|
else if (v === "function") {
|
|
5151
|
-
const x = String(
|
|
5160
|
+
const x = String(u.value || "").trim();
|
|
5152
5161
|
if (x)
|
|
5153
5162
|
try {
|
|
5154
|
-
const
|
|
5155
|
-
c[
|
|
5156
|
-
} catch (
|
|
5157
|
-
console.error(`❌ Error creando función en item '${
|
|
5163
|
+
const E = new Function(x);
|
|
5164
|
+
c[u.name] = E;
|
|
5165
|
+
} catch (E) {
|
|
5166
|
+
console.error(`❌ Error creando función en item '${u.name}':`, E);
|
|
5158
5167
|
}
|
|
5159
|
-
} else c[
|
|
5168
|
+
} else c[u.name] = u.value;
|
|
5160
5169
|
}
|
|
5161
5170
|
return c;
|
|
5162
|
-
}, z = (
|
|
5163
|
-
const x =
|
|
5171
|
+
}, z = (h, c, u, v) => {
|
|
5172
|
+
const x = u ? { ...u } : {}, E = "items".trim() || "items";
|
|
5164
5173
|
if (c)
|
|
5165
|
-
return x[
|
|
5166
|
-
const
|
|
5167
|
-
if (Array.isArray(
|
|
5168
|
-
return x[
|
|
5169
|
-
if (
|
|
5170
|
-
const
|
|
5171
|
-
return Array.isArray(
|
|
5174
|
+
return x[E] = c.arr || [], x;
|
|
5175
|
+
const k = h;
|
|
5176
|
+
if (Array.isArray(k))
|
|
5177
|
+
return x[E] = k, x;
|
|
5178
|
+
if (k && typeof k == "object") {
|
|
5179
|
+
const P = k;
|
|
5180
|
+
return Array.isArray(P.lobby) ? (x[E] = P.lobby, x) : Array.isArray(P.items) ? (x[E] = P.items, x) : (x[E] = k, x);
|
|
5172
5181
|
}
|
|
5173
|
-
return x[
|
|
5174
|
-
},
|
|
5175
|
-
var
|
|
5176
|
-
const c = !!((
|
|
5177
|
-
let v =
|
|
5178
|
-
const x = R(
|
|
5179
|
-
if (je.includes(
|
|
5180
|
-
return { items:
|
|
5181
|
-
if (v = { ...v, ...x }, c) v = z(
|
|
5182
|
-
else if (
|
|
5183
|
-
const
|
|
5182
|
+
return x[E] = [], x;
|
|
5183
|
+
}, w = (h) => {
|
|
5184
|
+
var E;
|
|
5185
|
+
const c = !!((E = h.apiUrl) != null && E.trim()), u = c ? d[h.id] : void 0;
|
|
5186
|
+
let v = h.props ? { ...h.props } : {};
|
|
5187
|
+
const x = R(h.manualScalarFields);
|
|
5188
|
+
if (je.includes(h.componentKey))
|
|
5189
|
+
return { items: u, ...v, ...x };
|
|
5190
|
+
if (v = { ...v, ...x }, c) v = z(u, null, v);
|
|
5191
|
+
else if (h.dataMode === "manual") {
|
|
5192
|
+
const k = S(h.manualItems);
|
|
5184
5193
|
if (v = z(
|
|
5185
5194
|
null,
|
|
5186
|
-
{ arr:
|
|
5195
|
+
{ arr: k, variableName: h.variableName },
|
|
5187
5196
|
v
|
|
5188
|
-
),
|
|
5189
|
-
const
|
|
5190
|
-
v[H] =
|
|
5197
|
+
), h.variableName2 && h.manualItems2) {
|
|
5198
|
+
const P = S(h.manualItems2), H = (h.variableName2 || "items2").trim() || "items2";
|
|
5199
|
+
v[H] = P;
|
|
5191
5200
|
}
|
|
5192
5201
|
}
|
|
5193
5202
|
return v;
|
|
5194
|
-
},
|
|
5203
|
+
}, I = (h, c, u) => /* @__PURE__ */ t("div", { className: `mx-4 p-4 rounded ${{
|
|
5195
5204
|
loading: "bg-blue-100 text-blue-800",
|
|
5196
5205
|
error: "bg-red-100 text-red-800",
|
|
5197
5206
|
component: "bg-yellow-100 text-yellow-800"
|
|
5198
|
-
}[c]}`, children:
|
|
5207
|
+
}[c]}`, children: u }, h), F = (h) => {
|
|
5199
5208
|
var ue;
|
|
5200
|
-
const c =
|
|
5201
|
-
if (!
|
|
5202
|
-
return console.warn(`No hay componente registrado para "${c}"`),
|
|
5203
|
-
|
|
5209
|
+
const c = h.componentKey, u = La[c];
|
|
5210
|
+
if (!u)
|
|
5211
|
+
return console.warn(`No hay componente registrado para "${c}"`), I(
|
|
5212
|
+
h.id,
|
|
5204
5213
|
"component",
|
|
5205
5214
|
`Componente "${c}" no encontrado`
|
|
5206
5215
|
);
|
|
5207
|
-
const v = !!((ue =
|
|
5216
|
+
const v = !!((ue = h.apiUrl) != null && ue.trim()), x = v ? d[h.id] : void 0, E = v ? !!_[h.id] : !1, k = v ? C[h.id] : "";
|
|
5208
5217
|
if (v) {
|
|
5209
|
-
if (
|
|
5210
|
-
return
|
|
5211
|
-
|
|
5218
|
+
if (E && !x)
|
|
5219
|
+
return I(
|
|
5220
|
+
h.id,
|
|
5212
5221
|
"loading",
|
|
5213
|
-
`Cargando datos desde ${
|
|
5222
|
+
`Cargando datos desde ${h.apiUrl}...`
|
|
5214
5223
|
);
|
|
5215
|
-
if (
|
|
5216
|
-
return
|
|
5217
|
-
|
|
5224
|
+
if (k && !x)
|
|
5225
|
+
return I(
|
|
5226
|
+
h.id,
|
|
5218
5227
|
"error",
|
|
5219
|
-
`Error cargando ${
|
|
5228
|
+
`Error cargando ${h.apiUrl}: ${k}`
|
|
5220
5229
|
);
|
|
5221
5230
|
}
|
|
5222
|
-
const
|
|
5231
|
+
const P = w(h), j = (/* @__PURE__ */ new Set([
|
|
5223
5232
|
"OraculoSeccionBanners",
|
|
5224
5233
|
"OraculoSeccionBonoBienvenida",
|
|
5225
5234
|
"OraculoSeccionCasinoEnVivo",
|
|
5226
|
-
|
|
5235
|
+
...$ ? [] : [
|
|
5227
5236
|
"OraculoSeccionClubOlimpo",
|
|
5228
5237
|
"OraculoSeccionEventoEnVivo",
|
|
5229
5238
|
"OraculoSeccionEventoSemana",
|
|
@@ -5232,18 +5241,18 @@ const je = [
|
|
|
5232
5241
|
"OraculoSeccionDestacados",
|
|
5233
5242
|
"OraculoSeccionCasino"
|
|
5234
5243
|
]
|
|
5235
|
-
])).has(
|
|
5244
|
+
])).has(h.componentKey), G = $ ? 120 : 24, Y = ($ ? 8 : 5) * 8, re = h.componentKey === "OraculoSeccionCasinoEnVivo", fe = {
|
|
5236
5245
|
width: "100%",
|
|
5237
5246
|
boxSizing: "border-box",
|
|
5238
5247
|
...j ? {} : { paddingLeft: G, paddingRight: G },
|
|
5239
|
-
...
|
|
5248
|
+
...re ? {
|
|
5240
5249
|
marginTop: -Y,
|
|
5241
5250
|
marginBottom: -Y
|
|
5242
5251
|
} : {}
|
|
5243
5252
|
};
|
|
5244
|
-
return /* @__PURE__ */ t("div", { style: fe, className: "oraculo-section-wrapper", children: /* @__PURE__ */ t(
|
|
5253
|
+
return /* @__PURE__ */ t("div", { style: fe, className: "oraculo-section-wrapper", children: /* @__PURE__ */ t(u, { ...P }) }, h.id);
|
|
5245
5254
|
};
|
|
5246
|
-
return
|
|
5255
|
+
return r && !e ? g ? /* @__PURE__ */ t(g, {}) : /* @__PURE__ */ t("div", { children: "Cargando..." }) : !r && !e && f.length === 0 ? /* @__PURE__ */ t("div", { className: "text-xs text-gray-500", children: "Sin secciones (Firestore)" }) : l ? /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Me, { docId: n, children: /* @__PURE__ */ t(ee, { children: N.map(F) }) }) }) : /* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Me, { docId: n, children: /* @__PURE__ */ t(
|
|
5247
5256
|
ct,
|
|
5248
5257
|
{
|
|
5249
5258
|
className: "oli-font",
|
|
@@ -5258,7 +5267,7 @@ const je = [
|
|
|
5258
5267
|
maxWidth: "100%",
|
|
5259
5268
|
overflowX: "hidden"
|
|
5260
5269
|
},
|
|
5261
|
-
children: /* @__PURE__ */ t(ve, { direction: "column", spacing:
|
|
5270
|
+
children: /* @__PURE__ */ t(ve, { direction: "column", spacing: $ ? 8 : 5, useFlexGap: !0, children: N.map(F) })
|
|
5262
5271
|
}
|
|
5263
5272
|
) }) });
|
|
5264
5273
|
};
|
|
@@ -5284,24 +5293,24 @@ export {
|
|
|
5284
5293
|
oe as OraculoGridGroup,
|
|
5285
5294
|
rn as OraculoLiveCasinoCard,
|
|
5286
5295
|
Re as OraculoLogoMediosPago,
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
|
|
5290
|
-
|
|
5296
|
+
Qa as OraculoPageLandingPreview,
|
|
5297
|
+
Ta as OraculoSeccionBanners,
|
|
5298
|
+
ea as OraculoSeccionBonoBienvenida,
|
|
5299
|
+
Zn as OraculoSeccionCasino,
|
|
5291
5300
|
zn as OraculoSeccionCasinoEnVivo,
|
|
5292
|
-
|
|
5301
|
+
ta as OraculoSeccionClubOlimpo,
|
|
5293
5302
|
Ln as OraculoSeccionDestacados,
|
|
5294
|
-
|
|
5295
|
-
|
|
5296
|
-
|
|
5297
|
-
|
|
5303
|
+
sa as OraculoSeccionEventoCombinadas,
|
|
5304
|
+
ha as OraculoSeccionEventoEnVivo,
|
|
5305
|
+
Ia as OraculoSeccionEventoSemana,
|
|
5306
|
+
$a as OraculoSeccionMediosPago,
|
|
5298
5307
|
Fn as OraculoSeccionTopJuegos,
|
|
5299
|
-
|
|
5300
|
-
|
|
5308
|
+
Yn as OraculoSeccionVirtuales,
|
|
5309
|
+
Ya as OraculoSectionHost,
|
|
5301
5310
|
le as OraculoSectionTitle,
|
|
5302
5311
|
Be as OraculoThemeProvider,
|
|
5303
5312
|
Fn as OraculoTopJuegoItem,
|
|
5304
5313
|
Fe as OraculoWelcomeBanner,
|
|
5305
|
-
|
|
5314
|
+
Qa as default
|
|
5306
5315
|
};
|
|
5307
5316
|
//# sourceMappingURL=index.es.js.map
|