@streamlayer/react 1.11.3-rc.5 → 1.12.0
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/lib/app/advertisement.d.ts +18 -0
- package/lib/app/app.d.ts +19 -0
- package/lib/{auth.d.ts → app/auth.d.ts} +4 -13
- package/lib/app/bet-pack.d.ts +20 -0
- package/lib/app/event.d.ts +4 -0
- package/lib/app/insight.d.ts +13 -0
- package/lib/app/masters.d.ts +28 -0
- package/lib/app/notification.d.ts +5 -0
- package/lib/app/points.d.ts +3 -0
- package/lib/app/provider.d.ts +43 -0
- package/lib/app/useStreamLayerApp.d.ts +19 -0
- package/lib/cjs/advertisement.js +1 -1
- package/lib/cjs/auth.js +1 -1
- package/lib/cjs/bet-pack.js +1 -0
- package/lib/cjs/gamification-feature.js +1 -1
- package/lib/cjs/gamification-feature2.js +1 -0
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/index2.js +5 -0
- package/lib/cjs/insight.js +1 -1
- package/lib/cjs/masters.js +1 -0
- package/lib/cjs/masters2.js +9 -0
- package/lib/cjs/notification.js +1 -1
- package/lib/cjs/points.js +1 -1
- package/lib/cjs/provider.js +98 -85
- package/lib/cjs/useStreamLayerApp2.js +17 -15
- package/lib/classic/app/advertisement.d.ts +18 -0
- package/lib/classic/app/app.d.ts +19 -0
- package/lib/classic/{auth.d.ts → app/auth.d.ts} +4 -13
- package/lib/classic/app/bet-pack.d.ts +20 -0
- package/lib/classic/app/event.d.ts +4 -0
- package/lib/classic/app/insight.d.ts +13 -0
- package/lib/classic/app/masters.d.ts +28 -0
- package/lib/classic/app/notification.d.ts +5 -0
- package/lib/classic/app/points.d.ts +3 -0
- package/lib/classic/app/provider.d.ts +43 -0
- package/lib/classic/app/useStreamLayerApp.d.ts +19 -0
- package/lib/classic/cjs/advertisement.js +1 -1
- package/lib/classic/cjs/auth.js +1 -1
- package/lib/classic/cjs/bet-pack.js +1 -0
- package/lib/classic/cjs/gamification-feature.js +1 -1
- package/lib/classic/cjs/gamification-feature2.js +1 -0
- package/lib/classic/cjs/index.js +1 -1
- package/lib/classic/cjs/index2.js +5 -0
- package/lib/classic/cjs/insight.js +1 -1
- package/lib/classic/cjs/masters.js +1 -0
- package/lib/classic/cjs/masters2.js +9 -0
- package/lib/classic/cjs/notification.js +1 -1
- package/lib/classic/cjs/points.js +1 -1
- package/lib/classic/cjs/provider.js +98 -85
- package/lib/classic/cjs/useStreamLayerApp2.js +17 -15
- package/lib/classic/es/advertisement.js +617 -717
- package/lib/classic/es/auth.js +2 -5
- package/lib/classic/es/bet-pack.js +14 -0
- package/lib/classic/es/gamification-feature.js +1 -1
- package/lib/classic/es/gamification-feature2.js +4 -0
- package/lib/classic/es/index.js +14 -11
- package/lib/classic/es/index2.js +2890 -0
- package/lib/classic/es/insight.js +33 -33
- package/lib/classic/es/masters.js +8 -0
- package/lib/classic/es/masters2.js +981 -0
- package/lib/classic/es/notification.js +378 -453
- package/lib/classic/es/points.js +39 -64
- package/lib/classic/es/provider.js +16443 -13824
- package/lib/classic/es/useStreamLayerApp2.js +8187 -4455
- package/lib/classic/index.d.ts +14 -218
- package/lib/classic/masters.d.ts +9 -0
- package/lib/classic/style.css +1 -455
- package/lib/dist/cjs/gamification-feature.js +1 -0
- package/lib/dist/cjs/gamification-feature2.js +1 -0
- package/lib/dist/cjs/index.js +1 -0
- package/lib/dist/cjs/masters.js +223 -0
- package/lib/dist/cjs/package.json +1 -0
- package/lib/dist/es/gamification-feature.js +4 -0
- package/lib/dist/es/gamification-feature2.js +123 -0
- package/lib/dist/es/index.js +11 -0
- package/lib/dist/es/masters.js +45904 -0
- package/lib/dist/es/package.json +1 -0
- package/lib/dist/style.css +1 -0
- package/lib/es/advertisement.js +617 -717
- package/lib/es/auth.js +2 -5
- package/lib/es/bet-pack.js +14 -0
- package/lib/es/gamification-feature.js +1 -1
- package/lib/es/gamification-feature2.js +4 -0
- package/lib/es/index.js +14 -11
- package/lib/es/index2.js +2890 -0
- package/lib/es/insight.js +33 -33
- package/lib/es/masters.js +8 -0
- package/lib/es/masters2.js +981 -0
- package/lib/es/notification.js +378 -453
- package/lib/es/points.js +39 -64
- package/lib/es/provider.js +16267 -13641
- package/lib/es/useStreamLayerApp2.js +8187 -4455
- package/lib/index.d.ts +14 -218
- package/lib/masters.d.ts +9 -0
- package/lib/style.css +1 -1
- package/package.json +57 -3
- package/lib/advertisement.d.ts +0 -146
- package/lib/classic/advertisement.d.ts +0 -146
- package/lib/classic/insight.d.ts +0 -136
- package/lib/classic/notification.d.ts +0 -120
- package/lib/classic/points.d.ts +0 -12
- package/lib/classic/useStreamLayerApp.d.ts +0 -167
- package/lib/insight.d.ts +0 -136
- package/lib/notification.d.ts +0 -120
- package/lib/points.d.ts +0 -12
- package/lib/useStreamLayerApp.d.ts +0 -167
package/lib/es/advertisement.js
CHANGED
|
@@ -1,855 +1,755 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { N,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
direction: i = "left",
|
|
1
|
+
import { jsx as e, jsxs as v, Fragment as po } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as F, useState as R, useCallback as Mo, useEffect as L } from "react";
|
|
3
|
+
import { c as M, s as n, E as Po, e as mo, g as D, Y as ko, a as uo, L as Lo, u as Oo, i as _o, b as Bo, S as T, h as xo } from "./provider.js";
|
|
4
|
+
import { N, a as vo, b as Ao, C as go, c as ho, P as k, d as E, A as Ro, e as Do, S as qo } from "./useStreamLayerApp2.js";
|
|
5
|
+
const wo = /* @__PURE__ */ n("div")({
|
|
6
|
+
name: "Container",
|
|
7
|
+
class: "c5b6wdg",
|
|
8
|
+
propsAsIs: !1
|
|
9
|
+
}), Vo = "a1rlj479", jo = "s35f1di", Uo = "sj4471g", Fo = "b12050d8", zo = "b1d5ybek", Go = (o) => o === "left" || o === "right" ? jo : Fo, Wo = (o) => o === "left" || o === "right" ? Uo : zo, Ho = (o) => o === "left" ? "avdxyl3" : o === "right" ? "a1bisd08" : o === "top" ? "a1u9y2aj" : "a1qqaks", z = ({
|
|
10
|
+
children: o,
|
|
11
|
+
style: s,
|
|
12
|
+
className: i,
|
|
13
|
+
enabled: t = !0,
|
|
14
|
+
hiding: l,
|
|
15
|
+
direction: r = "left",
|
|
17
16
|
onAnimationEnd: c
|
|
18
|
-
}) => /* @__PURE__ */
|
|
19
|
-
style:
|
|
20
|
-
className:
|
|
17
|
+
}) => /* @__PURE__ */ e(wo, {
|
|
18
|
+
style: s,
|
|
19
|
+
className: M(i, Vo, Ho(r), t && !l && Go(r), t && l && Wo(r)),
|
|
21
20
|
onAnimationEnd: c,
|
|
22
|
-
children:
|
|
23
|
-
}),
|
|
24
|
-
name: "
|
|
25
|
-
class: "
|
|
26
|
-
propsAsIs: !1
|
|
27
|
-
}),
|
|
28
|
-
name: "
|
|
29
|
-
class: "
|
|
30
|
-
propsAsIs: !1
|
|
31
|
-
}),
|
|
32
|
-
name: "
|
|
33
|
-
class: "
|
|
21
|
+
children: o
|
|
22
|
+
}), Ko = /* @__PURE__ */ n("a")({
|
|
23
|
+
name: "Link",
|
|
24
|
+
class: "l1sgte8c",
|
|
25
|
+
propsAsIs: !1
|
|
26
|
+
}), Yo = /* @__PURE__ */ n("div")({
|
|
27
|
+
name: "BannerContainer",
|
|
28
|
+
class: "b7yfc72",
|
|
29
|
+
propsAsIs: !1
|
|
30
|
+
}), Jo = () => Ko, Zo = /* @__PURE__ */ n(Jo())({
|
|
31
|
+
name: "BannerLink",
|
|
32
|
+
class: "bejjq94",
|
|
34
33
|
propsAsIs: !0
|
|
35
|
-
}),
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
})
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
},
|
|
65
|
-
name: "
|
|
66
|
-
class: "
|
|
67
|
-
propsAsIs: !1
|
|
68
|
-
}),
|
|
69
|
-
name: "
|
|
70
|
-
class: "
|
|
71
|
-
propsAsIs: !1
|
|
72
|
-
}),
|
|
73
|
-
name: "
|
|
74
|
-
class: "
|
|
75
|
-
propsAsIs: !1
|
|
76
|
-
}),
|
|
77
|
-
name: "
|
|
78
|
-
class: "
|
|
79
|
-
propsAsIs: !1
|
|
80
|
-
}), W = /* @__PURE__ */ s("div")({
|
|
81
|
-
name: "S",
|
|
82
|
-
class: "s5vuv05",
|
|
83
|
-
propsAsIs: !1
|
|
84
|
-
}), to = /* @__PURE__ */ s(Ve())({
|
|
85
|
-
name: "Ae",
|
|
86
|
-
class: "a1g1k4vx",
|
|
34
|
+
}), Qo = ({ promotion: o, promotionId: s, hiding: i, direction: t = "bottom" }) => {
|
|
35
|
+
var l, r;
|
|
36
|
+
if (!((l = o.additionalBanner) != null && l.imageUrl))
|
|
37
|
+
return null;
|
|
38
|
+
let c = (r = o.additionalBanner) == null ? void 0 : r.url;
|
|
39
|
+
return c && c.indexOf("http") !== 0 && (c = `https://${c}`), /* @__PURE__ */ e(z, { direction: t, hiding: i, children: /* @__PURE__ */ e(Yo, { className: "BannerContainer", children: /* @__PURE__ */ e(
|
|
40
|
+
Zo,
|
|
41
|
+
{
|
|
42
|
+
as: c ? "a" : "span",
|
|
43
|
+
className: "BannerLink",
|
|
44
|
+
href: c,
|
|
45
|
+
style: {
|
|
46
|
+
backgroundImage: `url(${o.additionalBanner.imageUrl})`,
|
|
47
|
+
cursor: c ? "pointer" : "default"
|
|
48
|
+
},
|
|
49
|
+
"data-promo-id": s,
|
|
50
|
+
"data-promo-type": o.type,
|
|
51
|
+
"data-analytics": "banner",
|
|
52
|
+
target: "_blank"
|
|
53
|
+
}
|
|
54
|
+
) }) });
|
|
55
|
+
}, Xo = /* @__PURE__ */ n("div")({
|
|
56
|
+
name: "NotificationContent",
|
|
57
|
+
class: "n18wsqoo",
|
|
58
|
+
propsAsIs: !1
|
|
59
|
+
}), oe = /* @__PURE__ */ n("div")({
|
|
60
|
+
name: "Body",
|
|
61
|
+
class: "b1ia90c2",
|
|
62
|
+
propsAsIs: !1
|
|
63
|
+
}), ee = /* @__PURE__ */ n("div")({
|
|
64
|
+
name: "Title",
|
|
65
|
+
class: "tg2z08v",
|
|
66
|
+
propsAsIs: !1
|
|
67
|
+
}), ne = /* @__PURE__ */ n("div")({
|
|
68
|
+
name: "Text",
|
|
69
|
+
class: "t59zdk1",
|
|
70
|
+
propsAsIs: !1
|
|
71
|
+
}), G = /* @__PURE__ */ n("div")({
|
|
72
|
+
name: "MediaImgBottom",
|
|
73
|
+
class: "m1ab9fq",
|
|
74
|
+
propsAsIs: !1
|
|
75
|
+
}), se = () => G, te = /* @__PURE__ */ n(se())({
|
|
76
|
+
name: "MediaImgMiddle",
|
|
77
|
+
class: "m9fsr0y",
|
|
87
78
|
propsAsIs: !0
|
|
88
|
-
}),
|
|
89
|
-
name: "
|
|
90
|
-
class: "
|
|
91
|
-
propsAsIs: !1
|
|
92
|
-
}),
|
|
93
|
-
name: "
|
|
94
|
-
class: "
|
|
95
|
-
propsAsIs: !1
|
|
96
|
-
}),
|
|
97
|
-
name: "
|
|
98
|
-
class: "
|
|
99
|
-
propsAsIs: !1
|
|
100
|
-
}),
|
|
101
|
-
name: "
|
|
102
|
-
class: "
|
|
103
|
-
propsAsIs: !1
|
|
104
|
-
}),
|
|
105
|
-
name: "
|
|
106
|
-
class: "
|
|
107
|
-
propsAsIs: !1
|
|
108
|
-
}),
|
|
109
|
-
name: "
|
|
110
|
-
class: "
|
|
111
|
-
propsAsIs: !1
|
|
112
|
-
}),
|
|
113
|
-
[N.BOTTOM]:
|
|
114
|
-
[N.MIDDLE]:
|
|
115
|
-
},
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
}) => {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
})
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
backgroundColor: l == null ? void 0 : l.color
|
|
169
|
-
},
|
|
170
|
-
children: [(l == null ? void 0 : l.ctaIcon) && (l == null ? void 0 : l.ctaIconMode) === fe.CTA_ICON_TRANSPARENT && /* @__PURE__ */ o(no, {
|
|
171
|
-
src: l == null ? void 0 : l.ctaIcon,
|
|
172
|
-
alt: "cta-icon"
|
|
173
|
-
}), (l == null ? void 0 : l.label) || "Open"]
|
|
174
|
-
})]
|
|
175
|
-
})]
|
|
176
|
-
});
|
|
177
|
-
}, vo = () => q, Ao = () => q, fo = () => he, ho = () => q, go = () => q, yo = () => Ce, Io = /* @__PURE__ */ s("div")({
|
|
178
|
-
name: "st",
|
|
179
|
-
class: "skov865",
|
|
180
|
-
propsAsIs: !1
|
|
181
|
-
}), bo = /* @__PURE__ */ s("div")({
|
|
182
|
-
name: "lt",
|
|
183
|
-
class: "lw55zje",
|
|
184
|
-
propsAsIs: !1
|
|
185
|
-
}), No = /* @__PURE__ */ s("div")({
|
|
186
|
-
name: "ct",
|
|
187
|
-
class: "cp3zokn",
|
|
188
|
-
propsAsIs: !1
|
|
189
|
-
}), ko = /* @__PURE__ */ s("div")({
|
|
190
|
-
name: "ht",
|
|
191
|
-
class: "hleka6v",
|
|
192
|
-
propsAsIs: !1
|
|
193
|
-
}), To = /* @__PURE__ */ s("div")({
|
|
194
|
-
name: "mt",
|
|
195
|
-
class: "m1dpdc6q",
|
|
196
|
-
propsAsIs: !1
|
|
197
|
-
}), q = /* @__PURE__ */ s("div")({
|
|
198
|
-
name: "_",
|
|
199
|
-
class: "_xhq0ob",
|
|
200
|
-
propsAsIs: !1
|
|
201
|
-
}), ae = /* @__PURE__ */ s(vo())({
|
|
202
|
-
name: "se",
|
|
203
|
-
class: "s17r872u",
|
|
79
|
+
}), ie = /* @__PURE__ */ n("img")({
|
|
80
|
+
name: "CtaIcon",
|
|
81
|
+
class: "cvi9y5q",
|
|
82
|
+
propsAsIs: !1
|
|
83
|
+
}), ae = /* @__PURE__ */ n("button")({
|
|
84
|
+
name: "Button",
|
|
85
|
+
class: "bgl6boa",
|
|
86
|
+
propsAsIs: !1
|
|
87
|
+
}), re = /* @__PURE__ */ n("div")({
|
|
88
|
+
name: "Logo",
|
|
89
|
+
class: "l5mq0z",
|
|
90
|
+
propsAsIs: !1
|
|
91
|
+
}), le = /* @__PURE__ */ n("div")({
|
|
92
|
+
name: "Footer",
|
|
93
|
+
class: "f1mse0ft",
|
|
94
|
+
propsAsIs: !1
|
|
95
|
+
}), de = /* @__PURE__ */ n("div")({
|
|
96
|
+
name: "Vector",
|
|
97
|
+
class: "v1hcloah",
|
|
98
|
+
propsAsIs: !1
|
|
99
|
+
}), ce = /* @__PURE__ */ n("div")({
|
|
100
|
+
name: "NotificationContainer",
|
|
101
|
+
class: "n3n65jf",
|
|
102
|
+
propsAsIs: !1
|
|
103
|
+
}), pe = {
|
|
104
|
+
[N.BOTTOM]: G,
|
|
105
|
+
[N.MIDDLE]: te
|
|
106
|
+
}, me = ({ src: o, imagePosition: s }) => {
|
|
107
|
+
const i = pe[s] || G;
|
|
108
|
+
return /* @__PURE__ */ e(i, { children: /* @__PURE__ */ e("img", { src: o, alt: "" }) });
|
|
109
|
+
}, ue = ({ notification: o, open: s }) => {
|
|
110
|
+
if (!o || !o.promotion || o.enabled !== vo.NOTIFICATION_ENABLED)
|
|
111
|
+
return null;
|
|
112
|
+
const { title: i, body: t, image: l, promotion: r } = o, { sponsorLogo: c, sponsorLogoMode: m, imagePosition: A, ctaButton: a } = r;
|
|
113
|
+
return /* @__PURE__ */ v(ce, { className: "SL_Lower_Third_Notification", onClick: s, children: [
|
|
114
|
+
/* @__PURE__ */ v(Xo, { children: [
|
|
115
|
+
/* @__PURE__ */ e(me, { src: l, imagePosition: A }),
|
|
116
|
+
/* @__PURE__ */ v(oe, { children: [
|
|
117
|
+
i && /* @__PURE__ */ e(ee, { children: i }),
|
|
118
|
+
t && /* @__PURE__ */ e(ne, { children: t })
|
|
119
|
+
] })
|
|
120
|
+
] }),
|
|
121
|
+
/* @__PURE__ */ v(le, { children: [
|
|
122
|
+
m !== Ao.NOTIFICATION_SPONSOR_LOGO_NONE && /* @__PURE__ */ v(po, { children: [
|
|
123
|
+
/* @__PURE__ */ e(re, { children: /* @__PURE__ */ e("img", { src: c, alt: i }) }),
|
|
124
|
+
/* @__PURE__ */ e(de, {})
|
|
125
|
+
] }),
|
|
126
|
+
/* @__PURE__ */ v(ae, { name: "promo-button", style: { color: a == null ? void 0 : a.textColor, backgroundColor: a == null ? void 0 : a.color }, children: [
|
|
127
|
+
(a == null ? void 0 : a.ctaIcon) && (a == null ? void 0 : a.ctaIconMode) === go.CTA_ICON_TRANSPARENT && /* @__PURE__ */ e(ie, { src: a == null ? void 0 : a.ctaIcon, alt: "cta-icon" }),
|
|
128
|
+
(a == null ? void 0 : a.label) || "Open"
|
|
129
|
+
] })
|
|
130
|
+
] })
|
|
131
|
+
] });
|
|
132
|
+
}, ve = /* @__PURE__ */ n("div")({
|
|
133
|
+
name: "NotificationContent",
|
|
134
|
+
class: "n1ku6hz",
|
|
135
|
+
propsAsIs: !1
|
|
136
|
+
}), Ae = /* @__PURE__ */ n("div")({
|
|
137
|
+
name: "NotificationContainer",
|
|
138
|
+
class: "nbxqmol",
|
|
139
|
+
propsAsIs: !1
|
|
140
|
+
}), ge = /* @__PURE__ */ n("div")({
|
|
141
|
+
name: "Body",
|
|
142
|
+
class: "b1gu3eml",
|
|
143
|
+
propsAsIs: !1
|
|
144
|
+
}), he = /* @__PURE__ */ n("div")({
|
|
145
|
+
name: "Title",
|
|
146
|
+
class: "t1u17zva",
|
|
147
|
+
propsAsIs: !1
|
|
148
|
+
}), Ie = /* @__PURE__ */ n("div")({
|
|
149
|
+
name: "Text",
|
|
150
|
+
class: "t10ko1g",
|
|
151
|
+
propsAsIs: !1
|
|
152
|
+
}), q = /* @__PURE__ */ n("div")({
|
|
153
|
+
name: "Media",
|
|
154
|
+
class: "mntc42e",
|
|
155
|
+
propsAsIs: !1
|
|
156
|
+
}), ye = () => q, io = /* @__PURE__ */ n(ye())({
|
|
157
|
+
name: "MediaImgFit",
|
|
158
|
+
class: "ml060eo",
|
|
204
159
|
propsAsIs: !0
|
|
205
|
-
}),
|
|
206
|
-
name: "
|
|
207
|
-
class: "
|
|
160
|
+
}), be = () => q, Io = /* @__PURE__ */ n(be())({
|
|
161
|
+
name: "MediaImgCentered",
|
|
162
|
+
class: "m1vqlvig",
|
|
208
163
|
propsAsIs: !0
|
|
209
|
-
}),
|
|
210
|
-
name: "
|
|
211
|
-
class: "
|
|
164
|
+
}), fe = () => Io, Ne = /* @__PURE__ */ n(fe())({
|
|
165
|
+
name: "MediaImgBottom",
|
|
166
|
+
class: "m1e7tvi5",
|
|
212
167
|
propsAsIs: !0
|
|
213
|
-
}),
|
|
214
|
-
name: "
|
|
215
|
-
class: "
|
|
168
|
+
}), $e = () => q, Ce = /* @__PURE__ */ n($e())({
|
|
169
|
+
name: "MediaImgSolid",
|
|
170
|
+
class: "mqvntt2",
|
|
216
171
|
propsAsIs: !0
|
|
217
|
-
}),
|
|
218
|
-
name: "
|
|
219
|
-
class: "
|
|
172
|
+
}), Te = () => q, Ee = /* @__PURE__ */ n(Te())({
|
|
173
|
+
name: "MediaImgMiddle",
|
|
174
|
+
class: "m12jtj3u",
|
|
220
175
|
propsAsIs: !0
|
|
221
|
-
}),
|
|
222
|
-
name: "
|
|
223
|
-
class: "
|
|
176
|
+
}), Se = /* @__PURE__ */ n("img")({
|
|
177
|
+
name: "CtaIcon",
|
|
178
|
+
class: "ckq1frv",
|
|
224
179
|
propsAsIs: !1
|
|
225
|
-
}),
|
|
226
|
-
name: "
|
|
227
|
-
class: "
|
|
180
|
+
}), Me = /* @__PURE__ */ n("button")({
|
|
181
|
+
name: "Button",
|
|
182
|
+
class: "bis90pl",
|
|
228
183
|
propsAsIs: !1
|
|
229
|
-
}),
|
|
230
|
-
name: "
|
|
231
|
-
class: "
|
|
184
|
+
}), Pe = () => Po, ke = /* @__PURE__ */ n(Pe())({
|
|
185
|
+
name: "StyledChevronRight",
|
|
186
|
+
class: "s9mjmz3",
|
|
232
187
|
propsAsIs: !0
|
|
233
|
-
}),
|
|
234
|
-
name: "
|
|
235
|
-
class: "
|
|
236
|
-
propsAsIs: !1
|
|
237
|
-
}),
|
|
238
|
-
[N.UNSET]:
|
|
239
|
-
[N.FIT]:
|
|
240
|
-
[N.CENTERED]:
|
|
241
|
-
[N.BOTTOM]:
|
|
242
|
-
[N.SOLID]:
|
|
243
|
-
[N.MIDDLE]:
|
|
244
|
-
},
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
}) => {
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
188
|
+
}), Le = /* @__PURE__ */ n("div")({
|
|
189
|
+
name: "Logo",
|
|
190
|
+
class: "l1cf50a7",
|
|
191
|
+
propsAsIs: !1
|
|
192
|
+
}), Oe = {
|
|
193
|
+
[N.UNSET]: io,
|
|
194
|
+
[N.FIT]: io,
|
|
195
|
+
[N.CENTERED]: Io,
|
|
196
|
+
[N.BOTTOM]: Ne,
|
|
197
|
+
[N.SOLID]: Ce,
|
|
198
|
+
[N.MIDDLE]: Ee
|
|
199
|
+
}, _e = ({ src: o, imagePosition: s }) => {
|
|
200
|
+
const i = Oe[s];
|
|
201
|
+
return /* @__PURE__ */ e(i, { children: /* @__PURE__ */ e("img", { src: o, alt: "" }) });
|
|
202
|
+
}, Be = ({ notification: o, open: s, promotionId: i, hiding: t, direction: l = "left" }) => {
|
|
203
|
+
if (!o || !o.promotion || o.enabled !== vo.NOTIFICATION_ENABLED)
|
|
204
|
+
return null;
|
|
205
|
+
if (o.promotion.mode === ho.LOWER_THIRD)
|
|
206
|
+
return /* @__PURE__ */ e(ue, { notification: o, open: s });
|
|
207
|
+
const { title: r, body: c, image: m, promotion: A } = o, { sponsorLogo: a, sponsorLogoMode: g, imagePosition: u, ctaButton: p } = A;
|
|
208
|
+
return /* @__PURE__ */ e(z, { className: "SL_Rich_Notification", direction: l, hiding: t, children: /* @__PURE__ */ v(Ae, { onClick: s, children: [
|
|
209
|
+
g !== Ao.NOTIFICATION_SPONSOR_LOGO_NONE && /* @__PURE__ */ e(Le, { children: /* @__PURE__ */ e("img", { src: a, alt: r }) }),
|
|
210
|
+
/* @__PURE__ */ v(ve, { children: [
|
|
211
|
+
/* @__PURE__ */ e(_e, { src: m, imagePosition: u }),
|
|
212
|
+
/* @__PURE__ */ v(ge, { children: [
|
|
213
|
+
r && /* @__PURE__ */ e(he, { children: r }),
|
|
214
|
+
c && /* @__PURE__ */ e(Ie, { children: c })
|
|
215
|
+
] }),
|
|
216
|
+
/* @__PURE__ */ v(Me, { name: "promo-button", style: { color: p == null ? void 0 : p.textColor, backgroundColor: p == null ? void 0 : p.color }, children: [
|
|
217
|
+
(p == null ? void 0 : p.ctaIcon) && (p == null ? void 0 : p.ctaIconMode) === go.CTA_ICON_TRANSPARENT && /* @__PURE__ */ e(Se, { src: p == null ? void 0 : p.ctaIcon, alt: "cta-icon" }),
|
|
218
|
+
(p == null ? void 0 : p.label) || "Open"
|
|
219
|
+
] }),
|
|
220
|
+
/* @__PURE__ */ e(ke, { name: "chevronRight" })
|
|
221
|
+
] })
|
|
222
|
+
] }) });
|
|
223
|
+
}, xe = /* @__PURE__ */ n("div")({
|
|
224
|
+
name: "OverlayContainer",
|
|
225
|
+
class: "okzhq2w",
|
|
226
|
+
propsAsIs: !1
|
|
227
|
+
}), yo = /* @__PURE__ */ n("div")({
|
|
228
|
+
name: "PromoOverlay",
|
|
229
|
+
class: "pmgz5i",
|
|
230
|
+
propsAsIs: !1
|
|
231
|
+
}), bo = /* @__PURE__ */ n("div")({
|
|
232
|
+
name: "Header",
|
|
233
|
+
class: "hyxi3jt",
|
|
234
|
+
propsAsIs: !1
|
|
235
|
+
}), fo = /* @__PURE__ */ n("div")({
|
|
236
|
+
name: "HeaderContent",
|
|
237
|
+
class: "h149e3gp",
|
|
238
|
+
propsAsIs: !1
|
|
239
|
+
}), No = "h10toh7", ao = /* @__PURE__ */ n("img")({
|
|
240
|
+
name: "SponsorLogo",
|
|
241
|
+
class: "s1jyea6t",
|
|
242
|
+
propsAsIs: !1
|
|
243
|
+
}), Re = /* @__PURE__ */ n("div")({
|
|
244
|
+
name: "SponsorName",
|
|
245
|
+
class: "szpfa3h",
|
|
246
|
+
propsAsIs: !1
|
|
247
|
+
}), $o = /* @__PURE__ */ n("div")({
|
|
248
|
+
name: "Media",
|
|
249
|
+
class: "m1crmu01",
|
|
250
|
+
propsAsIs: !1
|
|
251
|
+
}), De = /* @__PURE__ */ n("img")({
|
|
252
|
+
name: "PromoImg",
|
|
253
|
+
class: "p1l37r8s",
|
|
254
|
+
propsAsIs: !1
|
|
255
|
+
}), qe = "s1nmch9k", ro = /* @__PURE__ */ n("div")({
|
|
256
|
+
name: "Content",
|
|
257
|
+
class: "c1er0ljd",
|
|
258
|
+
propsAsIs: !1
|
|
259
|
+
}), we = /* @__PURE__ */ n("div")({
|
|
260
|
+
name: "Description",
|
|
261
|
+
class: "dydopmr",
|
|
262
|
+
propsAsIs: !1
|
|
263
|
+
}), Ve = /* @__PURE__ */ n("div")({
|
|
264
|
+
name: "Sponsor",
|
|
265
|
+
class: "s1w6nt04",
|
|
266
|
+
propsAsIs: !1
|
|
267
|
+
}), je = /* @__PURE__ */ n("div")({
|
|
268
|
+
name: "SponsorText",
|
|
269
|
+
class: "s1evcmtq",
|
|
270
|
+
propsAsIs: !1
|
|
271
|
+
}), Co = /* @__PURE__ */ n("div")({
|
|
272
|
+
name: "ADLogo",
|
|
273
|
+
class: "awodx0x",
|
|
274
|
+
propsAsIs: !1
|
|
275
|
+
}), Ue = /* @__PURE__ */ n("span")({
|
|
276
|
+
name: "SponsoredText",
|
|
277
|
+
class: "s1q3n6oi",
|
|
278
|
+
propsAsIs: !1
|
|
279
|
+
}), Fe = /* @__PURE__ */ n("div")({
|
|
280
|
+
name: "ActionBtnWrap",
|
|
281
|
+
class: "a8d4xfk",
|
|
282
|
+
propsAsIs: !1
|
|
283
|
+
}), ze = /* @__PURE__ */ n("a")({
|
|
284
|
+
name: "ActionButton",
|
|
285
|
+
class: "at6oobh",
|
|
286
|
+
propsAsIs: !1
|
|
287
|
+
}), Ge = /* @__PURE__ */ n("div")({
|
|
288
|
+
name: "Title",
|
|
289
|
+
class: "t1gyg7tt",
|
|
290
|
+
propsAsIs: !1
|
|
291
|
+
}), We = "h17rwbtk", He = /* @__PURE__ */ n("div")({
|
|
292
|
+
name: "Container",
|
|
293
|
+
class: "c10m2bce",
|
|
294
|
+
propsAsIs: !1
|
|
295
|
+
}), lo = /* @__PURE__ */ n("div")({
|
|
296
|
+
name: "Item",
|
|
297
|
+
class: "ig23yq5",
|
|
298
|
+
propsAsIs: !1
|
|
299
|
+
}), Ke = /* @__PURE__ */ n("div")({
|
|
300
|
+
name: "Dot",
|
|
301
|
+
class: "d1f6aqua",
|
|
302
|
+
propsAsIs: !1
|
|
303
|
+
}), Ye = ({
|
|
304
|
+
time: o,
|
|
305
|
+
adCount: s,
|
|
306
|
+
adPosition: i
|
|
261
307
|
}) => {
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
promotion: A
|
|
272
|
-
} = e, {
|
|
273
|
-
sponsorLogo: l,
|
|
274
|
-
sponsorLogoMode: f,
|
|
275
|
-
imagePosition: u,
|
|
276
|
-
ctaButton: p
|
|
277
|
-
} = A;
|
|
278
|
-
return /* @__PURE__ */ o(F, {
|
|
279
|
-
className: "SL_Rich_Notification",
|
|
280
|
-
direction: r,
|
|
281
|
-
hiding: n,
|
|
282
|
-
children: /* @__PURE__ */ v(bo, {
|
|
283
|
-
onClick: t,
|
|
284
|
-
children: [f !== Ae.NOTIFICATION_SPONSOR_LOGO_NONE && /* @__PURE__ */ o(Mo, {
|
|
285
|
-
children: /* @__PURE__ */ o("img", {
|
|
286
|
-
src: l,
|
|
287
|
-
alt: i
|
|
288
|
-
})
|
|
289
|
-
}), /* @__PURE__ */ v(Io, {
|
|
290
|
-
children: [/* @__PURE__ */ o(Oo, {
|
|
291
|
-
src: m,
|
|
292
|
-
imagePosition: u
|
|
293
|
-
}), /* @__PURE__ */ v(No, {
|
|
294
|
-
children: [i && /* @__PURE__ */ o(ko, {
|
|
295
|
-
children: i
|
|
296
|
-
}), c && /* @__PURE__ */ o(To, {
|
|
297
|
-
children: c
|
|
298
|
-
})]
|
|
299
|
-
}), /* @__PURE__ */ v(Co, {
|
|
300
|
-
name: "promo-button",
|
|
301
|
-
style: {
|
|
302
|
-
color: p == null ? void 0 : p.textColor,
|
|
303
|
-
backgroundColor: p == null ? void 0 : p.color
|
|
304
|
-
},
|
|
305
|
-
children: [(p == null ? void 0 : p.ctaIcon) && (p == null ? void 0 : p.ctaIconMode) === fe.CTA_ICON_TRANSPARENT && /* @__PURE__ */ o(Lo, {
|
|
306
|
-
src: p == null ? void 0 : p.ctaIcon,
|
|
307
|
-
alt: "cta-icon"
|
|
308
|
-
}), (p == null ? void 0 : p.label) || "Open"]
|
|
309
|
-
}), /* @__PURE__ */ o(_o, {
|
|
310
|
-
name: "chevronRight"
|
|
311
|
-
})]
|
|
312
|
-
})]
|
|
313
|
-
})
|
|
308
|
+
const t = Math.floor(o / 60), l = o - t * 60;
|
|
309
|
+
return t === 0 && l === 0 && s === i ? null : /* @__PURE__ */ v(He, {
|
|
310
|
+
children: [s > 1 && /* @__PURE__ */ v(po, {
|
|
311
|
+
children: [/* @__PURE__ */ v(lo, {
|
|
312
|
+
children: [i, " of ", s]
|
|
313
|
+
}), /* @__PURE__ */ e(Ke, {})]
|
|
314
|
+
}), /* @__PURE__ */ v(lo, {
|
|
315
|
+
children: [t, ":", l < 10 ? `0${l}` : l]
|
|
316
|
+
})]
|
|
314
317
|
});
|
|
315
|
-
},
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
318
|
+
}, Je = (o, s, { onPlay: i, onStop: t, onProgress: l }) => {
|
|
319
|
+
const r = google.ima;
|
|
320
|
+
let c = new r.AdDisplayContainer(o), m = new r.AdsLoader(c), A = new r.AdsRequest(), a;
|
|
321
|
+
m.addEventListener(
|
|
322
|
+
r.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,
|
|
323
|
+
(u) => {
|
|
324
|
+
a = u.getAdsManager(o), i && a.addEventListener(r.AdEvent.Type.STARTED, i), t && a.addEventListener(r.AdEvent.Type.COMPLETE, t), l && a.addEventListener(r.AdEvent.Type.AD_PROGRESS, (p) => l(p.getAdData())), a.init(o.clientWidth, o.clientHeight, r.ViewMode.NORMAL), a.start();
|
|
325
|
+
},
|
|
326
|
+
!1
|
|
327
|
+
), m.addEventListener(
|
|
328
|
+
r.AdErrorEvent.Type.AD_ERROR,
|
|
329
|
+
() => {
|
|
330
|
+
console.log("ad error"), t == null || t();
|
|
331
|
+
},
|
|
332
|
+
!1
|
|
333
|
+
), A.linearAdSlotWidth = o.clientWidth, A.linearAdSlotHeight = o.clientHeight, A.adTagUrl = s, m.requestAds(A);
|
|
334
|
+
const g = () => {
|
|
335
|
+
a == null || a.destroy(), m == null || m.destroy(), c == null || c.destroy(), c = void 0, m = void 0, A = void 0, a = void 0;
|
|
329
336
|
};
|
|
330
337
|
return () => {
|
|
331
338
|
try {
|
|
332
339
|
c.initialize();
|
|
333
340
|
} catch (u) {
|
|
334
|
-
|
|
341
|
+
t == null || t(), console.log("AdsManager could not be started", u);
|
|
335
342
|
}
|
|
336
|
-
return
|
|
343
|
+
return g;
|
|
337
344
|
};
|
|
338
|
-
},
|
|
339
|
-
name: "
|
|
340
|
-
class: "
|
|
341
|
-
propsAsIs: !1
|
|
342
|
-
}),
|
|
343
|
-
name: "
|
|
344
|
-
class: "
|
|
345
|
-
propsAsIs: !1
|
|
346
|
-
}),
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
propsAsIs: !1
|
|
354
|
-
}), be = "coq8lkc", le = /* @__PURE__ */ s("img")({
|
|
355
|
-
name: "le",
|
|
356
|
-
class: "l4v1wna",
|
|
357
|
-
propsAsIs: !1
|
|
358
|
-
}), Do = /* @__PURE__ */ s("div")({
|
|
359
|
-
name: "Tt",
|
|
360
|
-
class: "tmkv3p8",
|
|
361
|
-
propsAsIs: !1
|
|
362
|
-
}), Ne = /* @__PURE__ */ s("div")({
|
|
363
|
-
name: "Pe",
|
|
364
|
-
class: "p2t6hr7",
|
|
365
|
-
propsAsIs: !1
|
|
366
|
-
}), qo = /* @__PURE__ */ s("img")({
|
|
367
|
-
name: "Et",
|
|
368
|
-
class: "e1pcxfds",
|
|
369
|
-
propsAsIs: !1
|
|
370
|
-
}), Vo = "liwzk4s", ie = /* @__PURE__ */ s("div")({
|
|
371
|
-
name: "ce",
|
|
372
|
-
class: "c1a201jb",
|
|
373
|
-
propsAsIs: !1
|
|
374
|
-
}), zo = /* @__PURE__ */ s("div")({
|
|
375
|
-
name: "Mt",
|
|
376
|
-
class: "m15ldj84",
|
|
377
|
-
propsAsIs: !1
|
|
378
|
-
}), Uo = /* @__PURE__ */ s("div")({
|
|
379
|
-
name: "Ot",
|
|
380
|
-
class: "o476kyw",
|
|
381
|
-
propsAsIs: !1
|
|
382
|
-
}), jo = /* @__PURE__ */ s("div")({
|
|
383
|
-
name: "kt",
|
|
384
|
-
class: "k1hywf8s",
|
|
385
|
-
propsAsIs: !1
|
|
386
|
-
}), ke = /* @__PURE__ */ s("div")({
|
|
387
|
-
name: "Se",
|
|
388
|
-
class: "sdkny8g",
|
|
389
|
-
propsAsIs: !1
|
|
390
|
-
}), Go = /* @__PURE__ */ s("span")({
|
|
391
|
-
name: "Ct",
|
|
392
|
-
class: "cbdjlwu",
|
|
393
|
-
propsAsIs: !1
|
|
394
|
-
}), Fo = /* @__PURE__ */ s("div")({
|
|
395
|
-
name: "Pt",
|
|
396
|
-
class: "p1f1xars",
|
|
397
|
-
propsAsIs: !1
|
|
398
|
-
}), Wo = /* @__PURE__ */ s("a")({
|
|
399
|
-
name: "St",
|
|
400
|
-
class: "sutwicq",
|
|
401
|
-
propsAsIs: !1
|
|
402
|
-
}), Ho = /* @__PURE__ */ s("div")({
|
|
403
|
-
name: "_t",
|
|
404
|
-
class: "_1okt91f",
|
|
405
|
-
propsAsIs: !1
|
|
406
|
-
}), $o = "jhfc43o", Ko = /* @__PURE__ */ s("div")({
|
|
407
|
-
name: "Rt",
|
|
408
|
-
class: "rxbm36u",
|
|
409
|
-
propsAsIs: !1
|
|
410
|
-
}), re = /* @__PURE__ */ s("div")({
|
|
411
|
-
name: "he",
|
|
412
|
-
class: "har3kpv",
|
|
413
|
-
propsAsIs: !1
|
|
414
|
-
}), Xo = /* @__PURE__ */ s("div")({
|
|
415
|
-
name: "$t",
|
|
416
|
-
class: "_113zdc5",
|
|
417
|
-
propsAsIs: !1
|
|
418
|
-
}), Yo = ({
|
|
419
|
-
time: e,
|
|
420
|
-
adCount: t,
|
|
421
|
-
adPosition: a
|
|
422
|
-
}) => {
|
|
423
|
-
const n = Math.floor(e / 60), r = e - n * 60;
|
|
424
|
-
return n === 0 && r === 0 && t === a ? null : /* @__PURE__ */ v(Ko, {
|
|
425
|
-
children: [t > 1 && /* @__PURE__ */ v(ce, {
|
|
426
|
-
children: [/* @__PURE__ */ v(re, {
|
|
427
|
-
children: [a, " of ", t]
|
|
428
|
-
}), /* @__PURE__ */ o(Xo, {})]
|
|
429
|
-
}), /* @__PURE__ */ v(re, {
|
|
430
|
-
children: [n, ":", r < 10 ? `0${r}` : r]
|
|
431
|
-
})]
|
|
432
|
-
});
|
|
433
|
-
}, Jo = /* @__PURE__ */ s("div")({
|
|
434
|
-
name: "zt",
|
|
435
|
-
class: "z1brcd18",
|
|
436
|
-
propsAsIs: !1
|
|
437
|
-
}), Qo = /* @__PURE__ */ s("div")({
|
|
438
|
-
name: "Bt",
|
|
439
|
-
class: "b1xio38j",
|
|
440
|
-
propsAsIs: !1
|
|
441
|
-
}), Zo = "u849s5c", es = "f1yp4da5", os = "gjcla8p", ss = ({
|
|
442
|
-
promotion: e,
|
|
443
|
-
controlVideo: t,
|
|
444
|
-
promotionId: a,
|
|
445
|
-
onClose: n,
|
|
446
|
-
externalAd: r,
|
|
447
|
-
skipAutoClose: i
|
|
345
|
+
}, Ze = /* @__PURE__ */ n("div")({
|
|
346
|
+
name: "Container",
|
|
347
|
+
class: "c4q6dw1",
|
|
348
|
+
propsAsIs: !1
|
|
349
|
+
}), Qe = /* @__PURE__ */ n("div")({
|
|
350
|
+
name: "ControlsContainer",
|
|
351
|
+
class: "c1la67r",
|
|
352
|
+
propsAsIs: !1
|
|
353
|
+
}), Xe = "m3guev", on = "m7099mt", en = "mmm6o5s", nn = ({
|
|
354
|
+
promotion: o,
|
|
355
|
+
controlVideo: s,
|
|
356
|
+
promotionId: i,
|
|
357
|
+
onClose: t,
|
|
358
|
+
externalAd: l,
|
|
359
|
+
skipAutoClose: r
|
|
448
360
|
}) => {
|
|
449
361
|
var c;
|
|
450
|
-
const m =
|
|
451
|
-
u(0),
|
|
362
|
+
const m = F(null), [A, a] = R(!1), [g, u] = R(0), [p, I] = R(0), [$, h] = R(0), y = F(), b = Mo(() => {
|
|
363
|
+
u(0), I(0), h(0), a(!1), s == null || s({
|
|
452
364
|
muted: !1
|
|
453
365
|
});
|
|
454
|
-
}, [
|
|
455
|
-
|
|
456
|
-
if (
|
|
457
|
-
|
|
458
|
-
const
|
|
366
|
+
}, [s]);
|
|
367
|
+
L(() => {
|
|
368
|
+
if (l != null && l.url && m.current) {
|
|
369
|
+
b();
|
|
370
|
+
const f = Je(m.current, l.url, {
|
|
459
371
|
onPlay: () => {
|
|
460
372
|
D.emit("advertisement", {
|
|
461
373
|
action: "videoPlay",
|
|
462
374
|
payload: {
|
|
463
|
-
id:
|
|
464
|
-
type:
|
|
465
|
-
hasBanner: !1
|
|
375
|
+
id: i,
|
|
376
|
+
type: o.type
|
|
466
377
|
}
|
|
467
|
-
}),
|
|
378
|
+
}), s == null || s({
|
|
468
379
|
muted: !0
|
|
469
|
-
}),
|
|
380
|
+
}), a(!0);
|
|
470
381
|
},
|
|
471
382
|
onStop: () => {
|
|
472
|
-
|
|
383
|
+
t == null || t(), b();
|
|
473
384
|
},
|
|
474
|
-
onProgress: (
|
|
475
|
-
u(Math.round(
|
|
385
|
+
onProgress: (C) => {
|
|
386
|
+
u(Math.round(C.duration - C.currentTime)), I(C.totalAds), h(C.adPosition);
|
|
476
387
|
}
|
|
477
388
|
})();
|
|
478
|
-
return y.current =
|
|
479
|
-
y.current = void 0,
|
|
389
|
+
return y.current = f, () => {
|
|
390
|
+
y.current = void 0, f();
|
|
480
391
|
};
|
|
481
392
|
}
|
|
482
|
-
}, [
|
|
483
|
-
const
|
|
484
|
-
return /* @__PURE__ */ v(
|
|
393
|
+
}, [l == null ? void 0 : l.url, s, b, i, o.type, t]);
|
|
394
|
+
const O = ((c = o.sponsor) == null ? void 0 : c.logo) && o.logoMode === k.CENTER;
|
|
395
|
+
return /* @__PURE__ */ v(yo, {
|
|
485
396
|
className: "PromoOverlay",
|
|
486
|
-
children: [/* @__PURE__ */ v(
|
|
487
|
-
children: [/* @__PURE__ */
|
|
488
|
-
className:
|
|
489
|
-
children: /* @__PURE__ */
|
|
397
|
+
children: [/* @__PURE__ */ v(bo, {
|
|
398
|
+
children: [/* @__PURE__ */ e(fo, {
|
|
399
|
+
className: M(!O && No),
|
|
400
|
+
children: /* @__PURE__ */ e(Co, {
|
|
490
401
|
style: {
|
|
491
402
|
transform: "scale(1.5)"
|
|
492
403
|
},
|
|
493
404
|
children: "Ad"
|
|
494
405
|
})
|
|
495
|
-
}), /* @__PURE__ */ v(
|
|
496
|
-
children: [/* @__PURE__ */
|
|
497
|
-
time:
|
|
406
|
+
}), /* @__PURE__ */ v(Qe, {
|
|
407
|
+
children: [/* @__PURE__ */ e(Ye, {
|
|
408
|
+
time: g,
|
|
498
409
|
adCount: p,
|
|
499
|
-
adPosition:
|
|
500
|
-
}),
|
|
410
|
+
adPosition: $
|
|
411
|
+
}), r && /* @__PURE__ */ e(mo, {
|
|
501
412
|
className: "ClosePromoIcon",
|
|
502
413
|
close: () => {
|
|
503
|
-
var
|
|
504
|
-
(
|
|
414
|
+
var f;
|
|
415
|
+
(f = y.current) == null || f.call(y), t == null || t(), b();
|
|
505
416
|
}
|
|
506
417
|
})]
|
|
507
418
|
})]
|
|
508
|
-
}), /* @__PURE__ */ o
|
|
509
|
-
className:
|
|
510
|
-
children: /* @__PURE__ */
|
|
419
|
+
}), /* @__PURE__ */ e($o, {
|
|
420
|
+
className: M(Xe, A && on, !A && en),
|
|
421
|
+
children: /* @__PURE__ */ e(Ze, {
|
|
511
422
|
ref: m
|
|
512
423
|
})
|
|
513
424
|
})]
|
|
514
425
|
});
|
|
515
|
-
},
|
|
516
|
-
var
|
|
426
|
+
}, co = (o) => {
|
|
427
|
+
var s, i, t, l, r, c, m, A, a, g, u, p, I, $, h, y, b, O, f, C, W, H, K, Y, J, Z, Q, X, oo, eo;
|
|
517
428
|
const {
|
|
518
429
|
promotion: d,
|
|
519
|
-
open:
|
|
520
|
-
advertisementPaused:
|
|
430
|
+
open: no,
|
|
431
|
+
advertisementPaused: To,
|
|
521
432
|
togglePause: S,
|
|
522
|
-
controlVideo:
|
|
523
|
-
skipAutoClose:
|
|
433
|
+
controlVideo: _,
|
|
434
|
+
skipAutoClose: Eo,
|
|
524
435
|
promotionId: B,
|
|
525
|
-
onClose:
|
|
526
|
-
markAsViewed:
|
|
527
|
-
externalAd:
|
|
528
|
-
} =
|
|
529
|
-
if (
|
|
530
|
-
S == null || S(
|
|
531
|
-
}, []),
|
|
532
|
-
B && d.type &&
|
|
533
|
-
}, [B, d.type,
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
});
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
children: [U && /* @__PURE__ */ o(le, {
|
|
577
|
-
className: Vo,
|
|
578
|
-
src: (p = d.sponsor) == null ? void 0 : p.logo,
|
|
579
|
-
alt: "promo"
|
|
580
|
-
}), /* @__PURE__ */ o(ie, {
|
|
581
|
-
children: (k = (g = d.banner) == null ? void 0 : g.video) != null && k.url ? /* @__PURE__ */ o(Le, {
|
|
436
|
+
onClose: So,
|
|
437
|
+
markAsViewed: w,
|
|
438
|
+
externalAd: so
|
|
439
|
+
} = o, V = d.type === E.INGAME_IAB11_LBAR || d.type === E.INGAME_IAB11, j = ((s = d.sponsor) == null ? void 0 : s.logo) && d.logoMode === k.CENTER, to = !!((t = (i = d.banner) == null ? void 0 : i.video) != null && t.url), x = d.autoPlayVideo === Ro.ENABLED;
|
|
440
|
+
if (L(() => {
|
|
441
|
+
S == null || S(to || x), no == null || no();
|
|
442
|
+
}, []), L(() => {
|
|
443
|
+
B && d.type && w && w();
|
|
444
|
+
}, [B, d.type, w]), L(() => () => {
|
|
445
|
+
_ == null || _({ muted: !1 });
|
|
446
|
+
}, [_]), so)
|
|
447
|
+
return /* @__PURE__ */ e(nn, { ...o, externalAd: so });
|
|
448
|
+
let P = (l = d.banner) == null ? void 0 : l.url;
|
|
449
|
+
P && P.indexOf("http") !== 0 && (P = `https://${P}`);
|
|
450
|
+
let U = !0;
|
|
451
|
+
return to && (!To || !x ? U = !0 : U = !1), /* @__PURE__ */ v(yo, { className: "PromoOverlay", children: [
|
|
452
|
+
/* @__PURE__ */ v(bo, { children: [
|
|
453
|
+
/* @__PURE__ */ v(fo, { className: M(!j && No), children: [
|
|
454
|
+
((r = d.sponsor) == null ? void 0 : r.logo) && d.logoMode === k.LEFT && /* @__PURE__ */ e(ao, { className: "PromoSponsorLogo", src: (c = d.sponsor) == null ? void 0 : c.logo, alt: "promo" }),
|
|
455
|
+
/* @__PURE__ */ v(
|
|
456
|
+
Ve,
|
|
457
|
+
{
|
|
458
|
+
style: {
|
|
459
|
+
paddingLeft: (m = d.sponsor) != null && m.logo && d.logoMode === k.LEFT ? "0px" : "8px"
|
|
460
|
+
},
|
|
461
|
+
children: [
|
|
462
|
+
((A = d.sponsor) == null ? void 0 : A.logo) && d.logoMode === k.LEFT && /* @__PURE__ */ e(Re, { children: (a = d.sponsor) == null ? void 0 : a.name }),
|
|
463
|
+
/* @__PURE__ */ v(je, { className: "SponsorText", children: [
|
|
464
|
+
/* @__PURE__ */ e(Co, { children: "AD" }),
|
|
465
|
+
/* @__PURE__ */ e(Ue, { children: "SPONSORED" })
|
|
466
|
+
] })
|
|
467
|
+
]
|
|
468
|
+
}
|
|
469
|
+
)
|
|
470
|
+
] }),
|
|
471
|
+
/* @__PURE__ */ e(
|
|
472
|
+
mo,
|
|
473
|
+
{
|
|
474
|
+
className: "ClosePromoIcon",
|
|
475
|
+
close: So,
|
|
476
|
+
autoClose: (g = d.closeTimer) == null ? void 0 : g.auto,
|
|
477
|
+
duration: Eo ? 0 : (u = d.closeTimer) == null ? void 0 : u.seconds,
|
|
478
|
+
isPlaying: U
|
|
479
|
+
}
|
|
480
|
+
)
|
|
481
|
+
] }),
|
|
482
|
+
/* @__PURE__ */ v($o, { children: [
|
|
483
|
+
j && /* @__PURE__ */ e(ao, { className: qe, src: (p = d.sponsor) == null ? void 0 : p.logo, alt: "promo" }),
|
|
484
|
+
/* @__PURE__ */ e(ro, { children: ($ = (I = d.banner) == null ? void 0 : I.video) != null && $.url ? /* @__PURE__ */ e(
|
|
485
|
+
ko,
|
|
486
|
+
{
|
|
582
487
|
source: (y = (h = d.banner) == null ? void 0 : h.video) == null ? void 0 : y.url,
|
|
583
|
-
poster: (
|
|
584
|
-
aspectRatio:
|
|
488
|
+
poster: (O = (b = d.banner) == null ? void 0 : b.video) == null ? void 0 : O.thumbnailUrl,
|
|
489
|
+
aspectRatio: V ? "1/1" : "16/9",
|
|
585
490
|
onPause: () => {
|
|
586
|
-
|
|
491
|
+
x && (S == null || S(!0));
|
|
587
492
|
},
|
|
588
493
|
onPlay: () => {
|
|
589
494
|
D.emit("advertisement", {
|
|
590
495
|
action: "videoPlay",
|
|
591
496
|
payload: {
|
|
592
497
|
id: B,
|
|
593
|
-
type: d.type
|
|
594
|
-
hasBanner: !1
|
|
498
|
+
type: d.type
|
|
595
499
|
}
|
|
596
500
|
}), S == null || S(!1);
|
|
597
501
|
},
|
|
598
|
-
controlVideo:
|
|
599
|
-
autoPlay:
|
|
600
|
-
}
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
}), ((K = d.banner) == null ? void 0 : K.body) && /* @__PURE__ */ o(zo, {
|
|
612
|
-
className: "AdvDescription",
|
|
613
|
-
children: (X = d.banner) == null ? void 0 : X.body
|
|
614
|
-
})]
|
|
615
|
-
})]
|
|
616
|
-
}), d.buttonType !== De.NO_BUTTON && /* @__PURE__ */ o(Fo, {
|
|
617
|
-
children: /* @__PURE__ */ o(Wo, {
|
|
618
|
-
href: C,
|
|
502
|
+
controlVideo: _,
|
|
503
|
+
autoPlay: x
|
|
504
|
+
}
|
|
505
|
+
) : (f = d.banner) != null && f.imageUrl ? /* @__PURE__ */ e(De, { style: V ? { aspectRatio: "1/1" } : {}, src: (C = d.banner) == null ? void 0 : C.imageUrl, alt: "promo" }) : null }),
|
|
506
|
+
!V && /* @__PURE__ */ v(ro, { children: [
|
|
507
|
+
((W = d.banner) == null ? void 0 : W.title) && /* @__PURE__ */ e(Ge, { className: M("AdvTitle", j && We), children: (H = d.banner) == null ? void 0 : H.title }),
|
|
508
|
+
((K = d.banner) == null ? void 0 : K.body) && /* @__PURE__ */ e(we, { className: "AdvDescription", children: (Y = d.banner) == null ? void 0 : Y.body })
|
|
509
|
+
] })
|
|
510
|
+
] }),
|
|
511
|
+
d.buttonType !== Do.NO_BUTTON && /* @__PURE__ */ e(Fe, { children: /* @__PURE__ */ e(
|
|
512
|
+
ze,
|
|
513
|
+
{
|
|
514
|
+
href: P,
|
|
619
515
|
style: {
|
|
620
|
-
backgroundColor: ((
|
|
621
|
-
color: ((
|
|
516
|
+
backgroundColor: ((Z = (J = d.banner) == null ? void 0 : J.ctaButton) == null ? void 0 : Z.color) || "#009dc4",
|
|
517
|
+
color: ((X = (Q = d.banner) == null ? void 0 : Q.ctaButton) == null ? void 0 : X.textColor) || "#fff"
|
|
622
518
|
},
|
|
623
519
|
"data-analytics": "button",
|
|
624
520
|
"data-promo-id": B,
|
|
625
521
|
"data-promo-type": d.type,
|
|
626
522
|
target: "_blank",
|
|
627
|
-
children: (
|
|
628
|
-
}
|
|
629
|
-
})
|
|
630
|
-
});
|
|
631
|
-
},
|
|
632
|
-
name: "
|
|
633
|
-
class: "
|
|
634
|
-
propsAsIs: !1
|
|
635
|
-
}),
|
|
636
|
-
children:
|
|
637
|
-
direction:
|
|
638
|
-
style:
|
|
639
|
-
className:
|
|
640
|
-
hiding:
|
|
641
|
-
}) => /* @__PURE__ */
|
|
642
|
-
direction:
|
|
643
|
-
style:
|
|
644
|
-
hiding:
|
|
645
|
-
className:
|
|
646
|
-
children: /* @__PURE__ */
|
|
647
|
-
children:
|
|
523
|
+
children: (eo = (oo = d.banner) == null ? void 0 : oo.ctaButton) == null ? void 0 : eo.label
|
|
524
|
+
}
|
|
525
|
+
) })
|
|
526
|
+
] });
|
|
527
|
+
}, sn = /* @__PURE__ */ n("div")({
|
|
528
|
+
name: "SidebarContainer",
|
|
529
|
+
class: "s1abskp8",
|
|
530
|
+
propsAsIs: !1
|
|
531
|
+
}), tn = ({
|
|
532
|
+
children: o,
|
|
533
|
+
direction: s,
|
|
534
|
+
style: i,
|
|
535
|
+
className: t,
|
|
536
|
+
hiding: l
|
|
537
|
+
}) => /* @__PURE__ */ e(z, {
|
|
538
|
+
direction: s,
|
|
539
|
+
style: i,
|
|
540
|
+
hiding: l,
|
|
541
|
+
className: t,
|
|
542
|
+
children: /* @__PURE__ */ e(sn, {
|
|
543
|
+
children: o
|
|
648
544
|
})
|
|
649
|
-
}),
|
|
650
|
-
advertisement:
|
|
651
|
-
close:
|
|
652
|
-
skipTypeCheck:
|
|
653
|
-
skipAutoClose:
|
|
654
|
-
layoutMode:
|
|
655
|
-
sidebar:
|
|
545
|
+
}), an = (o) => (o == null ? void 0 : o.type) === E.INGAME_IAB11_LBAR || (o == null ? void 0 : o.type) === E.INGAME_IAB21_LBAR, rn = (o) => (o == null ? void 0 : o.type) === E.INGAME_IAB11 || (o == null ? void 0 : o.type) === E.INGAME_IAB21, ln = ({
|
|
546
|
+
advertisement: o,
|
|
547
|
+
close: s,
|
|
548
|
+
skipTypeCheck: i,
|
|
549
|
+
skipAutoClose: t,
|
|
550
|
+
layoutMode: l = "side-by-side",
|
|
551
|
+
sidebar: r,
|
|
656
552
|
isNotification: c,
|
|
657
553
|
banner: m,
|
|
658
554
|
markAsViewed: A,
|
|
659
|
-
open:
|
|
660
|
-
externalAd:
|
|
555
|
+
open: a,
|
|
556
|
+
externalAd: g,
|
|
661
557
|
controlVideo: u,
|
|
662
558
|
advertisementPaused: p,
|
|
663
|
-
togglePause:
|
|
664
|
-
}) =>
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
}
|
|
671
|
-
|
|
672
|
-
|
|
559
|
+
togglePause: I
|
|
560
|
+
}) => o.promotion ? c && o.notification ? /* @__PURE__ */ e(
|
|
561
|
+
Be,
|
|
562
|
+
{
|
|
563
|
+
open: () => a == null ? void 0 : a({ fromNotification: !0 }),
|
|
564
|
+
notification: o.notification,
|
|
565
|
+
promotionId: o.question.id
|
|
566
|
+
}
|
|
567
|
+
) : !r && !m && (i || rn(o.promotion)) ? /* @__PURE__ */ e(xe, { className: "PromoOverlayContainer", children: /* @__PURE__ */ e(
|
|
568
|
+
co,
|
|
569
|
+
{
|
|
673
570
|
markAsViewed: A,
|
|
674
|
-
promotionId:
|
|
675
|
-
promotion:
|
|
676
|
-
onClose:
|
|
677
|
-
open:
|
|
678
|
-
skipAutoClose:
|
|
679
|
-
externalAd:
|
|
571
|
+
promotionId: o.question.id,
|
|
572
|
+
promotion: o.promotion,
|
|
573
|
+
onClose: s,
|
|
574
|
+
open: a,
|
|
575
|
+
skipAutoClose: t,
|
|
576
|
+
externalAd: g,
|
|
680
577
|
controlVideo: u,
|
|
681
578
|
advertisementPaused: p,
|
|
682
|
-
togglePause:
|
|
683
|
-
}
|
|
684
|
-
}) :
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
hiding: !1,
|
|
688
|
-
children: /* @__PURE__ */ o(de, {
|
|
579
|
+
togglePause: I
|
|
580
|
+
}
|
|
581
|
+
) }) : r && (i || an(o.promotion)) ? /* @__PURE__ */ e(tn, { className: "PromoSidebarContainer", direction: r, hiding: !1, children: /* @__PURE__ */ e(
|
|
582
|
+
co,
|
|
583
|
+
{
|
|
689
584
|
markAsViewed: A,
|
|
690
|
-
promotionId:
|
|
691
|
-
promotion:
|
|
692
|
-
externalAd:
|
|
693
|
-
onClose:
|
|
694
|
-
open:
|
|
585
|
+
promotionId: o.question.id,
|
|
586
|
+
promotion: o.promotion,
|
|
587
|
+
externalAd: g,
|
|
588
|
+
onClose: s,
|
|
589
|
+
open: a,
|
|
695
590
|
controlVideo: u,
|
|
696
|
-
skipAutoClose:
|
|
591
|
+
skipAutoClose: t,
|
|
697
592
|
advertisementPaused: p,
|
|
698
|
-
togglePause:
|
|
699
|
-
}
|
|
700
|
-
}) : m ? /* @__PURE__ */
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
593
|
+
togglePause: I
|
|
594
|
+
}
|
|
595
|
+
) }) : m ? /* @__PURE__ */ e(
|
|
596
|
+
Qo,
|
|
597
|
+
{
|
|
598
|
+
promotionId: o.question.id,
|
|
599
|
+
hiding: !1,
|
|
600
|
+
promotion: o.promotion,
|
|
601
|
+
direction: m
|
|
602
|
+
}
|
|
603
|
+
) : null : null, dn = /* @__PURE__ */ n("div")({
|
|
604
|
+
name: "AdvertisementUIWrap",
|
|
605
|
+
class: "aa6pjif",
|
|
606
|
+
propsAsIs: !1
|
|
607
|
+
}), cn = (o) => {
|
|
608
|
+
const s = o.target;
|
|
609
|
+
if (s instanceof HTMLAnchorElement && s.target === "_blank") {
|
|
610
|
+
const i = s.getAttribute("data-promo-id") || "", t = s.getAttribute("data-promo-type") || E.UNSET;
|
|
611
|
+
s.getAttribute("data-analytics") === "button" && D.emit("advertisement", {
|
|
714
612
|
action: "buttonSelect",
|
|
715
613
|
payload: {
|
|
716
|
-
id:
|
|
717
|
-
type:
|
|
718
|
-
hasBanner: !1
|
|
614
|
+
id: i,
|
|
615
|
+
type: t
|
|
719
616
|
}
|
|
720
|
-
}),
|
|
617
|
+
}), s.getAttribute("data-analytics") === "banner" && D.emit("advertisement", {
|
|
721
618
|
action: "bannerSelect",
|
|
722
619
|
payload: {
|
|
723
|
-
id:
|
|
724
|
-
type:
|
|
725
|
-
hasBanner: !1
|
|
620
|
+
id: i,
|
|
621
|
+
type: t
|
|
726
622
|
}
|
|
727
623
|
});
|
|
728
624
|
}
|
|
729
|
-
},
|
|
730
|
-
gamification:
|
|
731
|
-
layoutMode:
|
|
732
|
-
skipAutoClose:
|
|
733
|
-
skipTypeCheck:
|
|
734
|
-
sidebar:
|
|
735
|
-
banner:
|
|
625
|
+
}, pn = ({
|
|
626
|
+
gamification: o,
|
|
627
|
+
layoutMode: s,
|
|
628
|
+
skipAutoClose: i,
|
|
629
|
+
skipTypeCheck: t,
|
|
630
|
+
sidebar: l,
|
|
631
|
+
banner: r,
|
|
736
632
|
notification: c,
|
|
737
633
|
isMobileScreen: m,
|
|
738
634
|
persistent: A,
|
|
739
|
-
externalAd:
|
|
740
|
-
controlVideo:
|
|
635
|
+
externalAd: a,
|
|
636
|
+
controlVideo: g
|
|
741
637
|
}) => {
|
|
742
|
-
var u, p,
|
|
743
|
-
const
|
|
744
|
-
|
|
638
|
+
var u, p, I;
|
|
639
|
+
const $ = F(null), h = uo(o.advertisement.$store);
|
|
640
|
+
Lo($, {
|
|
745
641
|
enabled: !!h.data,
|
|
746
642
|
event: "click",
|
|
747
|
-
listener:
|
|
643
|
+
listener: cn
|
|
748
644
|
});
|
|
749
|
-
const y = !
|
|
750
|
-
if (h.data === void 0 || !A && h.isViewed)
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
645
|
+
const y = !r && !l;
|
|
646
|
+
if (h.data === void 0 || !A && h.isViewed)
|
|
647
|
+
return null;
|
|
648
|
+
const b = ((I = (p = (u = h == null ? void 0 : h.data) == null ? void 0 : u.notification) == null ? void 0 : p.promotion) == null ? void 0 : I.mode) === ho.LOWER_THIRD;
|
|
649
|
+
return /* @__PURE__ */ e(dn, {
|
|
650
|
+
ref: $,
|
|
754
651
|
style: {
|
|
755
652
|
height: y ? "auto" : "100%"
|
|
756
653
|
},
|
|
757
|
-
className:
|
|
758
|
-
children: /* @__PURE__ */
|
|
759
|
-
skipTypeCheck:
|
|
760
|
-
sidebar:
|
|
761
|
-
banner:
|
|
654
|
+
className: M("SL-AdvertisementUIWrap", m && "mobile-view", b && "SL-AdvertisementUIWrap--lower-third"),
|
|
655
|
+
children: /* @__PURE__ */ e(ln, {
|
|
656
|
+
skipTypeCheck: t,
|
|
657
|
+
sidebar: l,
|
|
658
|
+
banner: r,
|
|
762
659
|
advertisement: h.data,
|
|
763
660
|
advertisementPaused: h.isPaused,
|
|
764
661
|
togglePause: h.togglePause,
|
|
765
662
|
close: h.close,
|
|
766
|
-
externalAd:
|
|
767
|
-
markAsViewed:
|
|
768
|
-
open:
|
|
769
|
-
layoutMode:
|
|
663
|
+
externalAd: a ? h.externalAd : void 0,
|
|
664
|
+
markAsViewed: o.advertisement.markAsViewed,
|
|
665
|
+
open: o.advertisement.open,
|
|
666
|
+
layoutMode: s,
|
|
770
667
|
isNotification: c,
|
|
771
|
-
skipAutoClose:
|
|
772
|
-
controlVideo:
|
|
668
|
+
skipAutoClose: i,
|
|
669
|
+
controlVideo: g
|
|
773
670
|
})
|
|
774
671
|
});
|
|
775
|
-
},
|
|
776
|
-
sdk:
|
|
777
|
-
sidebar:
|
|
778
|
-
externalAd:
|
|
779
|
-
banner:
|
|
780
|
-
skipAutoClose:
|
|
781
|
-
skipTypeCheck:
|
|
672
|
+
}, mn = ({
|
|
673
|
+
sdk: o,
|
|
674
|
+
sidebar: s,
|
|
675
|
+
externalAd: i,
|
|
676
|
+
banner: t,
|
|
677
|
+
skipAutoClose: l,
|
|
678
|
+
skipTypeCheck: r,
|
|
782
679
|
layoutMode: c,
|
|
783
680
|
isMobileScreen: m,
|
|
784
681
|
persistent: A,
|
|
785
|
-
notification:
|
|
682
|
+
notification: a
|
|
786
683
|
}) => {
|
|
787
|
-
const
|
|
788
|
-
if (
|
|
789
|
-
if (
|
|
684
|
+
const g = uo(o.featuresList.getStore());
|
|
685
|
+
if (L(() => {
|
|
686
|
+
if (i) {
|
|
790
687
|
const p = document.createElement("script");
|
|
791
688
|
p.async = !0, p.src = "https://imasdk.googleapis.com/js/sdkloader/ima3.js", document.body.appendChild(p);
|
|
792
689
|
}
|
|
793
|
-
}, [
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
690
|
+
}, [i]), s && t)
|
|
691
|
+
return /* @__PURE__ */ e("div", {
|
|
692
|
+
style: {
|
|
693
|
+
color: "red"
|
|
694
|
+
},
|
|
695
|
+
children: "define either sidebar or banner, not both."
|
|
696
|
+
});
|
|
697
|
+
if (t && i)
|
|
698
|
+
return /* @__PURE__ */ e("div", {
|
|
699
|
+
style: {
|
|
700
|
+
color: "red"
|
|
701
|
+
},
|
|
702
|
+
children: "externalAd is not supported with banner"
|
|
703
|
+
});
|
|
704
|
+
if (!g)
|
|
705
|
+
return null;
|
|
706
|
+
const u = o.getFeature(qo.GAMES);
|
|
707
|
+
return u ? /* @__PURE__ */ e(pn, {
|
|
808
708
|
gamification: u,
|
|
809
|
-
sidebar:
|
|
810
|
-
banner:
|
|
709
|
+
sidebar: s,
|
|
710
|
+
banner: t,
|
|
811
711
|
layoutMode: c,
|
|
812
712
|
isMobileScreen: m,
|
|
813
713
|
persistent: A,
|
|
814
|
-
notification:
|
|
815
|
-
skipTypeCheck:
|
|
816
|
-
skipAutoClose:
|
|
817
|
-
externalAd:
|
|
818
|
-
controlVideo:
|
|
714
|
+
notification: a,
|
|
715
|
+
skipTypeCheck: r,
|
|
716
|
+
skipAutoClose: l,
|
|
717
|
+
externalAd: i,
|
|
718
|
+
controlVideo: o.controlVideoPlayer
|
|
819
719
|
}) : null;
|
|
820
|
-
},
|
|
821
|
-
event:
|
|
822
|
-
sidebar:
|
|
823
|
-
banner:
|
|
824
|
-
isMobileScreen:
|
|
825
|
-
skipAutoClose:
|
|
826
|
-
persistent:
|
|
720
|
+
}, hn = ({
|
|
721
|
+
event: o,
|
|
722
|
+
sidebar: s,
|
|
723
|
+
banner: i,
|
|
724
|
+
isMobileScreen: t,
|
|
725
|
+
skipAutoClose: l,
|
|
726
|
+
persistent: r,
|
|
827
727
|
theme: c,
|
|
828
728
|
notification: m,
|
|
829
729
|
skipTypeCheck: A,
|
|
830
|
-
externalAd:
|
|
730
|
+
externalAd: a
|
|
831
731
|
}) => {
|
|
832
|
-
const
|
|
833
|
-
return
|
|
834
|
-
/* @__PURE__ */
|
|
835
|
-
|
|
732
|
+
const g = Oo(), u = _o(), p = Bo();
|
|
733
|
+
return g ? a && !u.promotionExternalAd ? o !== void 0 && /* @__PURE__ */ e(T, { event: o }) : !a && u.promotionExternalAd ? o !== void 0 && /* @__PURE__ */ e(T, { event: o }) : s && !u.promotionSidebar ? o !== void 0 && /* @__PURE__ */ e(T, { event: o }) : i && !u.promotionBanner ? o !== void 0 && /* @__PURE__ */ e(T, { event: o }) : m && !u.promotionNotification ? o !== void 0 && /* @__PURE__ */ e(T, { event: o }) : !i && !s && !m && !u.promotionOverlay ? o !== void 0 && /* @__PURE__ */ e(T, { event: o }) : /* @__PURE__ */ v("div", { className: "StreamLayerSDK", children: [
|
|
734
|
+
/* @__PURE__ */ e(xo, { customTheme: c ?? p.theme, themeMode: p.themeMode, children: /* @__PURE__ */ e(
|
|
735
|
+
mn,
|
|
836
736
|
{
|
|
837
|
-
sdk:
|
|
838
|
-
sidebar:
|
|
839
|
-
banner:
|
|
840
|
-
isMobileScreen:
|
|
841
|
-
persistent:
|
|
737
|
+
sdk: g,
|
|
738
|
+
sidebar: s,
|
|
739
|
+
banner: i,
|
|
740
|
+
isMobileScreen: t,
|
|
741
|
+
persistent: r,
|
|
842
742
|
notification: m,
|
|
843
743
|
skipTypeCheck: A,
|
|
844
|
-
skipAutoClose:
|
|
744
|
+
skipAutoClose: l,
|
|
845
745
|
layoutMode: "side-by-side",
|
|
846
|
-
externalAd:
|
|
746
|
+
externalAd: a
|
|
847
747
|
}
|
|
848
748
|
) }),
|
|
849
|
-
|
|
749
|
+
o !== void 0 && /* @__PURE__ */ e(T, { event: o })
|
|
850
750
|
] }) : null;
|
|
851
751
|
};
|
|
852
752
|
export {
|
|
853
|
-
|
|
854
|
-
|
|
753
|
+
hn as StreamLayerSDKAdvertisement,
|
|
754
|
+
mn as StreamLayerSDKAdvertisementUI
|
|
855
755
|
};
|