@streamlayer/react 1.9.3 → 1.9.5
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/cjs/advertisement.js +1 -1
- package/lib/cjs/useStreamLayerApp2.js +9 -9
- package/lib/dist/cjs/masters.js +54 -54
- package/lib/dist/es/masters.js +7167 -7114
- package/lib/es/advertisement.js +207 -193
- package/lib/es/useStreamLayerApp2.js +2720 -2667
- package/package.json +13 -13
package/lib/es/advertisement.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsx as e, jsxs as v, Fragment as
|
|
2
|
-
import { useRef as F, useState as R, useCallback as
|
|
3
|
-
import { e as k, s as n, h as
|
|
4
|
-
import { N, a as
|
|
5
|
-
const
|
|
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 ko, useEffect as M } from "react";
|
|
3
|
+
import { e as k, s as n, h as Po, g as mo, i as D, Y as Lo, a as uo, L as Mo, u as Oo, j as _o, b as Bo, S as T, d as xo } from "./index2.js";
|
|
4
|
+
import { N, a as vo, b as Ao, C as go, c as ho, P as L, d as S, A as Ro, e as Do, S as qo } from "./useStreamLayerApp2.js";
|
|
5
|
+
const wo = /* @__PURE__ */ n("div")({
|
|
6
6
|
name: "Container",
|
|
7
7
|
class: "c5b6wdg",
|
|
8
8
|
propsAsIs: !1
|
|
9
|
-
}),
|
|
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
10
|
children: o,
|
|
11
11
|
style: s,
|
|
12
12
|
className: i,
|
|
@@ -14,53 +14,57 @@ const qo = /* @__PURE__ */ n("div")({
|
|
|
14
14
|
hiding: l,
|
|
15
15
|
direction: r = "left",
|
|
16
16
|
onAnimationEnd: c
|
|
17
|
-
}) => /* @__PURE__ */ e(
|
|
17
|
+
}) => /* @__PURE__ */ e(wo, {
|
|
18
18
|
style: s,
|
|
19
|
-
className: k(i,
|
|
19
|
+
className: k(i, Vo, Ho(r), t && !l && Go(r), t && l && Wo(r)),
|
|
20
20
|
onAnimationEnd: c,
|
|
21
21
|
children: o
|
|
22
|
-
}),
|
|
22
|
+
}), Ko = /* @__PURE__ */ n("a")({
|
|
23
23
|
name: "Link",
|
|
24
24
|
class: "l1sgte8c",
|
|
25
25
|
propsAsIs: !1
|
|
26
|
-
}),
|
|
26
|
+
}), Yo = /* @__PURE__ */ n("div")({
|
|
27
27
|
name: "BannerContainer",
|
|
28
28
|
class: "b7yfc72",
|
|
29
29
|
propsAsIs: !1
|
|
30
|
-
}),
|
|
30
|
+
}), Jo = () => Ko, Zo = /* @__PURE__ */ n(Jo())({
|
|
31
31
|
name: "BannerLink",
|
|
32
32
|
class: "bejjq94",
|
|
33
33
|
propsAsIs: !0
|
|
34
|
-
}),
|
|
34
|
+
}), Qo = ({ promotion: o, promotionId: s, hiding: i, direction: t = "bottom" }) => {
|
|
35
35
|
var l, r;
|
|
36
36
|
if (!((l = o.additionalBanner) != null && l.imageUrl))
|
|
37
37
|
return null;
|
|
38
|
-
let c = (r = o.
|
|
39
|
-
return c && c.indexOf("http") !== 0 && (c = `https://${c}`), /* @__PURE__ */ e(z, { direction: t, hiding: i, children: /* @__PURE__ */ e(
|
|
40
|
-
|
|
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
41
|
{
|
|
42
|
+
as: c ? "a" : "span",
|
|
42
43
|
className: "BannerLink",
|
|
43
44
|
href: c,
|
|
44
|
-
style: {
|
|
45
|
+
style: {
|
|
46
|
+
backgroundImage: `url(${o.additionalBanner.imageUrl})`,
|
|
47
|
+
cursor: c ? "pointer" : "default"
|
|
48
|
+
},
|
|
45
49
|
"data-promo-id": s,
|
|
46
50
|
"data-promo-type": o.type,
|
|
47
51
|
"data-analytics": "banner",
|
|
48
52
|
target: "_blank"
|
|
49
53
|
}
|
|
50
54
|
) }) });
|
|
51
|
-
},
|
|
55
|
+
}, Xo = /* @__PURE__ */ n("div")({
|
|
52
56
|
name: "NotificationContent",
|
|
53
57
|
class: "n18wsqoo",
|
|
54
58
|
propsAsIs: !1
|
|
55
|
-
}),
|
|
59
|
+
}), oe = /* @__PURE__ */ n("div")({
|
|
56
60
|
name: "Body",
|
|
57
61
|
class: "b1ia90c2",
|
|
58
62
|
propsAsIs: !1
|
|
59
|
-
}),
|
|
63
|
+
}), ee = /* @__PURE__ */ n("div")({
|
|
60
64
|
name: "Title",
|
|
61
65
|
class: "tg2z08v",
|
|
62
66
|
propsAsIs: !1
|
|
63
|
-
}),
|
|
67
|
+
}), ne = /* @__PURE__ */ n("div")({
|
|
64
68
|
name: "Text",
|
|
65
69
|
class: "t59zdk1",
|
|
66
70
|
propsAsIs: !1
|
|
@@ -68,80 +72,80 @@ const qo = /* @__PURE__ */ n("div")({
|
|
|
68
72
|
name: "MediaImgBottom",
|
|
69
73
|
class: "m1ab9fq",
|
|
70
74
|
propsAsIs: !1
|
|
71
|
-
}),
|
|
75
|
+
}), se = () => G, te = /* @__PURE__ */ n(se())({
|
|
72
76
|
name: "MediaImgMiddle",
|
|
73
77
|
class: "m9fsr0y",
|
|
74
78
|
propsAsIs: !0
|
|
75
|
-
}),
|
|
79
|
+
}), ie = /* @__PURE__ */ n("img")({
|
|
76
80
|
name: "CtaIcon",
|
|
77
81
|
class: "cvi9y5q",
|
|
78
82
|
propsAsIs: !1
|
|
79
|
-
}),
|
|
83
|
+
}), ae = /* @__PURE__ */ n("button")({
|
|
80
84
|
name: "Button",
|
|
81
85
|
class: "bgl6boa",
|
|
82
86
|
propsAsIs: !1
|
|
83
|
-
}),
|
|
87
|
+
}), re = /* @__PURE__ */ n("div")({
|
|
84
88
|
name: "Logo",
|
|
85
89
|
class: "l5mq0z",
|
|
86
90
|
propsAsIs: !1
|
|
87
|
-
}),
|
|
91
|
+
}), le = /* @__PURE__ */ n("div")({
|
|
88
92
|
name: "Footer",
|
|
89
93
|
class: "f1mse0ft",
|
|
90
94
|
propsAsIs: !1
|
|
91
|
-
}),
|
|
95
|
+
}), de = /* @__PURE__ */ n("div")({
|
|
92
96
|
name: "Vector",
|
|
93
97
|
class: "v1hcloah",
|
|
94
98
|
propsAsIs: !1
|
|
95
|
-
}),
|
|
99
|
+
}), ce = /* @__PURE__ */ n("div")({
|
|
96
100
|
name: "NotificationContainer",
|
|
97
101
|
class: "n3n65jf",
|
|
98
102
|
propsAsIs: !1
|
|
99
|
-
}),
|
|
103
|
+
}), pe = {
|
|
100
104
|
[N.BOTTOM]: G,
|
|
101
|
-
[N.MIDDLE]:
|
|
102
|
-
},
|
|
103
|
-
const i =
|
|
105
|
+
[N.MIDDLE]: te
|
|
106
|
+
}, me = ({ src: o, imagePosition: s }) => {
|
|
107
|
+
const i = pe[s] || G;
|
|
104
108
|
return /* @__PURE__ */ e(i, { children: /* @__PURE__ */ e("img", { src: o, alt: "" }) });
|
|
105
|
-
},
|
|
106
|
-
if (!o || !o.promotion || o.enabled !==
|
|
109
|
+
}, ue = ({ notification: o, open: s }) => {
|
|
110
|
+
if (!o || !o.promotion || o.enabled !== vo.NOTIFICATION_ENABLED)
|
|
107
111
|
return null;
|
|
108
112
|
const { title: i, body: t, image: l, promotion: r } = o, { sponsorLogo: c, sponsorLogoMode: m, imagePosition: A, ctaButton: a } = r;
|
|
109
|
-
return /* @__PURE__ */ v(
|
|
110
|
-
/* @__PURE__ */ v(
|
|
111
|
-
/* @__PURE__ */ e(
|
|
112
|
-
/* @__PURE__ */ v(
|
|
113
|
-
i && /* @__PURE__ */ e(
|
|
114
|
-
t && /* @__PURE__ */ e(
|
|
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 })
|
|
115
119
|
] })
|
|
116
120
|
] }),
|
|
117
|
-
/* @__PURE__ */ v(
|
|
118
|
-
m !==
|
|
119
|
-
/* @__PURE__ */ e(
|
|
120
|
-
/* @__PURE__ */ e(
|
|
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, {})
|
|
121
125
|
] }),
|
|
122
|
-
/* @__PURE__ */ v(
|
|
123
|
-
(a == null ? void 0 : a.ctaIcon) && (a == null ? void 0 : a.ctaIconMode) ===
|
|
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" }),
|
|
124
128
|
(a == null ? void 0 : a.label) || "Open"
|
|
125
129
|
] })
|
|
126
130
|
] })
|
|
127
131
|
] });
|
|
128
|
-
},
|
|
132
|
+
}, ve = /* @__PURE__ */ n("div")({
|
|
129
133
|
name: "NotificationContent",
|
|
130
134
|
class: "n1ku6hz",
|
|
131
135
|
propsAsIs: !1
|
|
132
|
-
}),
|
|
136
|
+
}), Ae = /* @__PURE__ */ n("div")({
|
|
133
137
|
name: "NotificationContainer",
|
|
134
138
|
class: "nbxqmol",
|
|
135
139
|
propsAsIs: !1
|
|
136
|
-
}),
|
|
140
|
+
}), ge = /* @__PURE__ */ n("div")({
|
|
137
141
|
name: "Body",
|
|
138
142
|
class: "b1gu3eml",
|
|
139
143
|
propsAsIs: !1
|
|
140
|
-
}),
|
|
144
|
+
}), he = /* @__PURE__ */ n("div")({
|
|
141
145
|
name: "Title",
|
|
142
146
|
class: "t1u17zva",
|
|
143
147
|
propsAsIs: !1
|
|
144
|
-
}),
|
|
148
|
+
}), Ie = /* @__PURE__ */ n("div")({
|
|
145
149
|
name: "Text",
|
|
146
150
|
class: "t10ko1g",
|
|
147
151
|
propsAsIs: !1
|
|
@@ -149,35 +153,35 @@ const qo = /* @__PURE__ */ n("div")({
|
|
|
149
153
|
name: "Media",
|
|
150
154
|
class: "mntc42e",
|
|
151
155
|
propsAsIs: !1
|
|
152
|
-
}),
|
|
156
|
+
}), ye = () => q, io = /* @__PURE__ */ n(ye())({
|
|
153
157
|
name: "MediaImgFit",
|
|
154
158
|
class: "ml060eo",
|
|
155
159
|
propsAsIs: !0
|
|
156
|
-
}),
|
|
160
|
+
}), be = () => q, Io = /* @__PURE__ */ n(be())({
|
|
157
161
|
name: "MediaImgCentered",
|
|
158
162
|
class: "m1vqlvig",
|
|
159
163
|
propsAsIs: !0
|
|
160
|
-
}),
|
|
164
|
+
}), fe = () => Io, Ne = /* @__PURE__ */ n(fe())({
|
|
161
165
|
name: "MediaImgBottom",
|
|
162
166
|
class: "m1e7tvi5",
|
|
163
167
|
propsAsIs: !0
|
|
164
|
-
}),
|
|
168
|
+
}), $e = () => q, Ce = /* @__PURE__ */ n($e())({
|
|
165
169
|
name: "MediaImgSolid",
|
|
166
170
|
class: "mqvntt2",
|
|
167
171
|
propsAsIs: !0
|
|
168
|
-
}),
|
|
172
|
+
}), Te = () => q, Se = /* @__PURE__ */ n(Te())({
|
|
169
173
|
name: "MediaImgMiddle",
|
|
170
174
|
class: "m12jtj3u",
|
|
171
175
|
propsAsIs: !0
|
|
172
|
-
}),
|
|
176
|
+
}), Ee = /* @__PURE__ */ n("img")({
|
|
173
177
|
name: "CtaIcon",
|
|
174
178
|
class: "ckq1frv",
|
|
175
179
|
propsAsIs: !1
|
|
176
|
-
}),
|
|
180
|
+
}), ke = /* @__PURE__ */ n("button")({
|
|
177
181
|
name: "Button",
|
|
178
182
|
class: "bis90pl",
|
|
179
183
|
propsAsIs: !1
|
|
180
|
-
}),
|
|
184
|
+
}), Pe = () => Po, Le = /* @__PURE__ */ n(Pe())({
|
|
181
185
|
name: "StyledChevronRight",
|
|
182
186
|
class: "s9mjmz3",
|
|
183
187
|
propsAsIs: !0
|
|
@@ -185,133 +189,133 @@ const qo = /* @__PURE__ */ n("div")({
|
|
|
185
189
|
name: "Logo",
|
|
186
190
|
class: "l1cf50a7",
|
|
187
191
|
propsAsIs: !1
|
|
188
|
-
}),
|
|
189
|
-
[N.UNSET]:
|
|
190
|
-
[N.FIT]:
|
|
191
|
-
[N.CENTERED]:
|
|
192
|
-
[N.BOTTOM]:
|
|
193
|
-
[N.SOLID]:
|
|
194
|
-
[N.MIDDLE]:
|
|
195
|
-
},
|
|
196
|
-
const i =
|
|
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]: Se
|
|
199
|
+
}, _e = ({ src: o, imagePosition: s }) => {
|
|
200
|
+
const i = Oe[s];
|
|
197
201
|
return /* @__PURE__ */ e(i, { children: /* @__PURE__ */ e("img", { src: o, alt: "" }) });
|
|
198
|
-
},
|
|
199
|
-
if (!o || !o.promotion || o.enabled !==
|
|
202
|
+
}, Be = ({ notification: o, open: s, promotionId: i, hiding: t, direction: l = "left" }) => {
|
|
203
|
+
if (!o || !o.promotion || o.enabled !== vo.NOTIFICATION_ENABLED)
|
|
200
204
|
return null;
|
|
201
|
-
if (o.promotion.mode ===
|
|
202
|
-
return /* @__PURE__ */ e(
|
|
205
|
+
if (o.promotion.mode === ho.LOWER_THIRD)
|
|
206
|
+
return /* @__PURE__ */ e(ue, { notification: o, open: s });
|
|
203
207
|
const { title: r, body: c, image: m, promotion: A } = o, { sponsorLogo: a, sponsorLogoMode: g, imagePosition: u, ctaButton: p } = A;
|
|
204
|
-
return /* @__PURE__ */ e(z, { className: "SL_Rich_Notification", direction: l, hiding: t, children: /* @__PURE__ */ v(
|
|
205
|
-
g !==
|
|
206
|
-
/* @__PURE__ */ v(
|
|
207
|
-
/* @__PURE__ */ e(
|
|
208
|
-
/* @__PURE__ */ v(
|
|
209
|
-
r && /* @__PURE__ */ e(
|
|
210
|
-
c && /* @__PURE__ */ e(
|
|
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(Me, { 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 })
|
|
211
215
|
] }),
|
|
212
|
-
/* @__PURE__ */ v(
|
|
213
|
-
(p == null ? void 0 : p.ctaIcon) && (p == null ? void 0 : p.ctaIconMode) ===
|
|
216
|
+
/* @__PURE__ */ v(ke, { 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(Ee, { src: p == null ? void 0 : p.ctaIcon, alt: "cta-icon" }),
|
|
214
218
|
(p == null ? void 0 : p.label) || "Open"
|
|
215
219
|
] }),
|
|
216
220
|
/* @__PURE__ */ e(Le, { name: "chevronRight" })
|
|
217
221
|
] })
|
|
218
222
|
] }) });
|
|
219
|
-
},
|
|
223
|
+
}, xe = /* @__PURE__ */ n("div")({
|
|
220
224
|
name: "OverlayContainer",
|
|
221
225
|
class: "okzhq2w",
|
|
222
226
|
propsAsIs: !1
|
|
223
|
-
}),
|
|
227
|
+
}), yo = /* @__PURE__ */ n("div")({
|
|
224
228
|
name: "PromoOverlay",
|
|
225
229
|
class: "pmgz5i",
|
|
226
230
|
propsAsIs: !1
|
|
227
|
-
}),
|
|
231
|
+
}), bo = /* @__PURE__ */ n("div")({
|
|
228
232
|
name: "Header",
|
|
229
233
|
class: "hyxi3jt",
|
|
230
234
|
propsAsIs: !1
|
|
231
|
-
}),
|
|
235
|
+
}), fo = /* @__PURE__ */ n("div")({
|
|
232
236
|
name: "HeaderContent",
|
|
233
237
|
class: "h149e3gp",
|
|
234
238
|
propsAsIs: !1
|
|
235
|
-
}),
|
|
239
|
+
}), No = "h10toh7", ao = /* @__PURE__ */ n("img")({
|
|
236
240
|
name: "SponsorLogo",
|
|
237
241
|
class: "s1jyea6t",
|
|
238
242
|
propsAsIs: !1
|
|
239
|
-
}),
|
|
243
|
+
}), Re = /* @__PURE__ */ n("div")({
|
|
240
244
|
name: "SponsorName",
|
|
241
245
|
class: "szpfa3h",
|
|
242
246
|
propsAsIs: !1
|
|
243
|
-
}),
|
|
247
|
+
}), $o = /* @__PURE__ */ n("div")({
|
|
244
248
|
name: "Media",
|
|
245
249
|
class: "m1crmu01",
|
|
246
250
|
propsAsIs: !1
|
|
247
|
-
}),
|
|
251
|
+
}), De = /* @__PURE__ */ n("img")({
|
|
248
252
|
name: "PromoImg",
|
|
249
253
|
class: "p1l37r8s",
|
|
250
254
|
propsAsIs: !1
|
|
251
|
-
}),
|
|
255
|
+
}), qe = "s1nmch9k", ro = /* @__PURE__ */ n("div")({
|
|
252
256
|
name: "Content",
|
|
253
257
|
class: "c1er0ljd",
|
|
254
258
|
propsAsIs: !1
|
|
255
|
-
}),
|
|
259
|
+
}), we = /* @__PURE__ */ n("div")({
|
|
256
260
|
name: "Description",
|
|
257
261
|
class: "dydopmr",
|
|
258
262
|
propsAsIs: !1
|
|
259
|
-
}),
|
|
263
|
+
}), Ve = /* @__PURE__ */ n("div")({
|
|
260
264
|
name: "Sponsor",
|
|
261
265
|
class: "s1w6nt04",
|
|
262
266
|
propsAsIs: !1
|
|
263
|
-
}),
|
|
267
|
+
}), je = /* @__PURE__ */ n("div")({
|
|
264
268
|
name: "SponsorText",
|
|
265
269
|
class: "s1evcmtq",
|
|
266
270
|
propsAsIs: !1
|
|
267
|
-
}),
|
|
271
|
+
}), Co = /* @__PURE__ */ n("div")({
|
|
268
272
|
name: "ADLogo",
|
|
269
273
|
class: "awodx0x",
|
|
270
274
|
propsAsIs: !1
|
|
271
|
-
}),
|
|
275
|
+
}), Ue = /* @__PURE__ */ n("span")({
|
|
272
276
|
name: "SponsoredText",
|
|
273
277
|
class: "s1q3n6oi",
|
|
274
278
|
propsAsIs: !1
|
|
275
|
-
}),
|
|
279
|
+
}), Fe = /* @__PURE__ */ n("div")({
|
|
276
280
|
name: "ActionBtnWrap",
|
|
277
281
|
class: "a8d4xfk",
|
|
278
282
|
propsAsIs: !1
|
|
279
|
-
}),
|
|
283
|
+
}), ze = /* @__PURE__ */ n("a")({
|
|
280
284
|
name: "ActionButton",
|
|
281
285
|
class: "at6oobh",
|
|
282
286
|
propsAsIs: !1
|
|
283
|
-
}),
|
|
287
|
+
}), Ge = /* @__PURE__ */ n("div")({
|
|
284
288
|
name: "Title",
|
|
285
289
|
class: "t1gyg7tt",
|
|
286
290
|
propsAsIs: !1
|
|
287
|
-
}),
|
|
291
|
+
}), We = "h17rwbtk", He = /* @__PURE__ */ n("div")({
|
|
288
292
|
name: "Container",
|
|
289
293
|
class: "c10m2bce",
|
|
290
294
|
propsAsIs: !1
|
|
291
|
-
}),
|
|
295
|
+
}), lo = /* @__PURE__ */ n("div")({
|
|
292
296
|
name: "Item",
|
|
293
297
|
class: "ig23yq5",
|
|
294
298
|
propsAsIs: !1
|
|
295
|
-
}),
|
|
299
|
+
}), Ke = /* @__PURE__ */ n("div")({
|
|
296
300
|
name: "Dot",
|
|
297
301
|
class: "d1f6aqua",
|
|
298
302
|
propsAsIs: !1
|
|
299
|
-
}),
|
|
303
|
+
}), Ye = ({
|
|
300
304
|
time: o,
|
|
301
305
|
adCount: s,
|
|
302
306
|
adPosition: i
|
|
303
307
|
}) => {
|
|
304
308
|
const t = Math.floor(o / 60), l = o - t * 60;
|
|
305
|
-
return t === 0 && l === 0 && s === i ? null : /* @__PURE__ */ v(
|
|
306
|
-
children: [s > 1 && /* @__PURE__ */ v(
|
|
307
|
-
children: [/* @__PURE__ */ v(
|
|
309
|
+
return t === 0 && l === 0 && s === i ? null : /* @__PURE__ */ v(He, {
|
|
310
|
+
children: [s > 1 && /* @__PURE__ */ v(po, {
|
|
311
|
+
children: [/* @__PURE__ */ v(lo, {
|
|
308
312
|
children: [i, " of ", s]
|
|
309
|
-
}), /* @__PURE__ */ e(
|
|
310
|
-
}), /* @__PURE__ */ v(
|
|
313
|
+
}), /* @__PURE__ */ e(Ke, {})]
|
|
314
|
+
}), /* @__PURE__ */ v(lo, {
|
|
311
315
|
children: [t, ":", l < 10 ? `0${l}` : l]
|
|
312
316
|
})]
|
|
313
317
|
});
|
|
314
|
-
},
|
|
318
|
+
}, Je = (o, s, { onPlay: i, onStop: t, onProgress: l }) => {
|
|
315
319
|
const r = google.ima;
|
|
316
320
|
let c = new r.AdDisplayContainer(o), m = new r.AdsLoader(c), A = new r.AdsRequest(), a;
|
|
317
321
|
m.addEventListener(
|
|
@@ -338,15 +342,15 @@ const qo = /* @__PURE__ */ n("div")({
|
|
|
338
342
|
}
|
|
339
343
|
return g;
|
|
340
344
|
};
|
|
341
|
-
},
|
|
345
|
+
}, Ze = /* @__PURE__ */ n("div")({
|
|
342
346
|
name: "Container",
|
|
343
347
|
class: "c4q6dw1",
|
|
344
348
|
propsAsIs: !1
|
|
345
|
-
}),
|
|
349
|
+
}), Qe = /* @__PURE__ */ n("div")({
|
|
346
350
|
name: "ControlsContainer",
|
|
347
351
|
class: "c1la67r",
|
|
348
352
|
propsAsIs: !1
|
|
349
|
-
}),
|
|
353
|
+
}), Xe = "m3guev", on = "m7099mt", en = "mmm6o5s", nn = ({
|
|
350
354
|
promotion: o,
|
|
351
355
|
controlVideo: s,
|
|
352
356
|
promotionId: i,
|
|
@@ -355,15 +359,15 @@ const qo = /* @__PURE__ */ n("div")({
|
|
|
355
359
|
skipAutoClose: r
|
|
356
360
|
}) => {
|
|
357
361
|
var c;
|
|
358
|
-
const m = F(null), [A, a] = R(!1), [g, u] = R(0), [p, I] = R(0), [$, h] = R(0), y = F(), b =
|
|
362
|
+
const m = F(null), [A, a] = R(!1), [g, u] = R(0), [p, I] = R(0), [$, h] = R(0), y = F(), b = ko(() => {
|
|
359
363
|
u(0), I(0), h(0), a(!1), s == null || s({
|
|
360
364
|
muted: !1
|
|
361
365
|
});
|
|
362
366
|
}, [s]);
|
|
363
|
-
|
|
367
|
+
M(() => {
|
|
364
368
|
if (l != null && l.url && m.current) {
|
|
365
369
|
b();
|
|
366
|
-
const f =
|
|
370
|
+
const f = Je(m.current, l.url, {
|
|
367
371
|
onPlay: () => {
|
|
368
372
|
D.emit("advertisement", {
|
|
369
373
|
action: "videoPlay",
|
|
@@ -387,24 +391,24 @@ const qo = /* @__PURE__ */ n("div")({
|
|
|
387
391
|
};
|
|
388
392
|
}
|
|
389
393
|
}, [l == null ? void 0 : l.url, s, b, i, o.type, t]);
|
|
390
|
-
const O = ((c = o.sponsor) == null ? void 0 : c.logo) && o.logoMode ===
|
|
391
|
-
return /* @__PURE__ */ v(
|
|
394
|
+
const O = ((c = o.sponsor) == null ? void 0 : c.logo) && o.logoMode === L.CENTER;
|
|
395
|
+
return /* @__PURE__ */ v(yo, {
|
|
392
396
|
className: "PromoOverlay",
|
|
393
|
-
children: [/* @__PURE__ */ v(
|
|
394
|
-
children: [/* @__PURE__ */ e(
|
|
395
|
-
className: k(!O &&
|
|
396
|
-
children: /* @__PURE__ */ e(
|
|
397
|
+
children: [/* @__PURE__ */ v(bo, {
|
|
398
|
+
children: [/* @__PURE__ */ e(fo, {
|
|
399
|
+
className: k(!O && No),
|
|
400
|
+
children: /* @__PURE__ */ e(Co, {
|
|
397
401
|
style: {
|
|
398
402
|
transform: "scale(1.5)"
|
|
399
403
|
},
|
|
400
404
|
children: "Ad"
|
|
401
405
|
})
|
|
402
|
-
}), /* @__PURE__ */ v(
|
|
403
|
-
children: [/* @__PURE__ */ e(
|
|
406
|
+
}), /* @__PURE__ */ v(Qe, {
|
|
407
|
+
children: [/* @__PURE__ */ e(Ye, {
|
|
404
408
|
time: g,
|
|
405
409
|
adCount: p,
|
|
406
410
|
adPosition: $
|
|
407
|
-
}), r && /* @__PURE__ */ e(
|
|
411
|
+
}), r && /* @__PURE__ */ e(mo, {
|
|
408
412
|
className: "ClosePromoIcon",
|
|
409
413
|
close: () => {
|
|
410
414
|
var f;
|
|
@@ -412,71 +416,72 @@ const qo = /* @__PURE__ */ n("div")({
|
|
|
412
416
|
}
|
|
413
417
|
})]
|
|
414
418
|
})]
|
|
415
|
-
}), /* @__PURE__ */ e(
|
|
416
|
-
className: k(
|
|
417
|
-
children: /* @__PURE__ */ e(
|
|
419
|
+
}), /* @__PURE__ */ e($o, {
|
|
420
|
+
className: k(Xe, A && on, !A && en),
|
|
421
|
+
children: /* @__PURE__ */ e(Ze, {
|
|
418
422
|
ref: m
|
|
419
423
|
})
|
|
420
424
|
})]
|
|
421
425
|
});
|
|
422
|
-
},
|
|
423
|
-
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,
|
|
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;
|
|
424
428
|
const {
|
|
425
429
|
promotion: d,
|
|
426
|
-
|
|
430
|
+
open: no,
|
|
431
|
+
advertisementPaused: To,
|
|
427
432
|
togglePause: E,
|
|
428
433
|
controlVideo: _,
|
|
429
|
-
skipAutoClose:
|
|
434
|
+
skipAutoClose: So,
|
|
430
435
|
promotionId: B,
|
|
431
|
-
onClose:
|
|
436
|
+
onClose: Eo,
|
|
432
437
|
markAsViewed: w,
|
|
433
|
-
externalAd:
|
|
434
|
-
} = o, V = d.type === S.INGAME_IAB11_LBAR || d.type === S.INGAME_IAB11, j = ((s = d.sponsor) == null ? void 0 : s.logo) && d.logoMode ===
|
|
435
|
-
if (
|
|
436
|
-
E == null || E(
|
|
437
|
-
}, []),
|
|
438
|
+
externalAd: so
|
|
439
|
+
} = o, V = d.type === S.INGAME_IAB11_LBAR || d.type === S.INGAME_IAB11, j = ((s = d.sponsor) == null ? void 0 : s.logo) && d.logoMode === L.CENTER, to = !!((t = (i = d.banner) == null ? void 0 : i.video) != null && t.url), x = d.autoPlayVideo === Ro.ENABLED;
|
|
440
|
+
if (M(() => {
|
|
441
|
+
E == null || E(to || x), no == null || no();
|
|
442
|
+
}, []), M(() => {
|
|
438
443
|
B && d.type && w && w();
|
|
439
|
-
}, [B, d.type, w]),
|
|
444
|
+
}, [B, d.type, w]), M(() => () => {
|
|
440
445
|
_ == null || _({ muted: !1 });
|
|
441
|
-
}, [_]),
|
|
442
|
-
return /* @__PURE__ */ e(
|
|
443
|
-
let
|
|
444
|
-
|
|
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}`);
|
|
445
450
|
let U = !0;
|
|
446
|
-
return
|
|
447
|
-
/* @__PURE__ */ v(
|
|
448
|
-
/* @__PURE__ */ v(
|
|
449
|
-
((r = d.sponsor) == null ? void 0 : r.logo) && d.logoMode ===
|
|
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: k(!j && No), children: [
|
|
454
|
+
((r = d.sponsor) == null ? void 0 : r.logo) && d.logoMode === L.LEFT && /* @__PURE__ */ e(ao, { src: (c = d.sponsor) == null ? void 0 : c.logo, alt: "promo" }),
|
|
450
455
|
/* @__PURE__ */ v(
|
|
451
|
-
|
|
456
|
+
Ve,
|
|
452
457
|
{
|
|
453
458
|
style: {
|
|
454
|
-
paddingLeft: (m = d.sponsor) != null && m.logo && d.logoMode ===
|
|
459
|
+
paddingLeft: (m = d.sponsor) != null && m.logo && d.logoMode === L.LEFT ? "0px" : "8px"
|
|
455
460
|
},
|
|
456
461
|
children: [
|
|
457
|
-
((A = d.sponsor) == null ? void 0 : A.logo) && d.logoMode ===
|
|
458
|
-
/* @__PURE__ */ v(
|
|
459
|
-
/* @__PURE__ */ e(
|
|
460
|
-
/* @__PURE__ */ e(
|
|
462
|
+
((A = d.sponsor) == null ? void 0 : A.logo) && d.logoMode === L.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" })
|
|
461
466
|
] })
|
|
462
467
|
]
|
|
463
468
|
}
|
|
464
469
|
)
|
|
465
470
|
] }),
|
|
466
471
|
/* @__PURE__ */ e(
|
|
467
|
-
|
|
472
|
+
mo,
|
|
468
473
|
{
|
|
469
474
|
className: "ClosePromoIcon",
|
|
470
|
-
close:
|
|
475
|
+
close: Eo,
|
|
471
476
|
autoClose: (g = d.closeTimer) == null ? void 0 : g.auto,
|
|
472
|
-
duration:
|
|
477
|
+
duration: So ? 0 : (u = d.closeTimer) == null ? void 0 : u.seconds,
|
|
473
478
|
isPlaying: U
|
|
474
479
|
}
|
|
475
480
|
)
|
|
476
481
|
] }),
|
|
477
|
-
/* @__PURE__ */ v(
|
|
478
|
-
j && /* @__PURE__ */ e(
|
|
479
|
-
/* @__PURE__ */ e(
|
|
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(
|
|
480
485
|
Lo,
|
|
481
486
|
{
|
|
482
487
|
source: (y = (h = d.banner) == null ? void 0 : h.video) == null ? void 0 : y.url,
|
|
@@ -497,19 +502,19 @@ const qo = /* @__PURE__ */ n("div")({
|
|
|
497
502
|
controlVideo: _,
|
|
498
503
|
autoPlay: x
|
|
499
504
|
}
|
|
500
|
-
) : (f = d.banner) != null && f.imageUrl ? /* @__PURE__ */ e(
|
|
501
|
-
!V && /* @__PURE__ */ v(
|
|
502
|
-
((W = d.banner) == null ? void 0 : W.title) && /* @__PURE__ */ e(
|
|
503
|
-
((K = d.banner) == null ? void 0 : K.body) && /* @__PURE__ */ e(
|
|
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: k("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 })
|
|
504
509
|
] })
|
|
505
510
|
] }),
|
|
506
|
-
d.buttonType !==
|
|
507
|
-
|
|
511
|
+
d.buttonType !== Do.NO_BUTTON && /* @__PURE__ */ e(Fe, { children: /* @__PURE__ */ e(
|
|
512
|
+
ze,
|
|
508
513
|
{
|
|
509
|
-
href:
|
|
514
|
+
href: P,
|
|
510
515
|
style: {
|
|
511
|
-
backgroundColor: ((
|
|
512
|
-
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"
|
|
513
518
|
},
|
|
514
519
|
"data-analytics": "button",
|
|
515
520
|
"data-promo-id": B,
|
|
@@ -519,11 +524,11 @@ const qo = /* @__PURE__ */ n("div")({
|
|
|
519
524
|
}
|
|
520
525
|
) })
|
|
521
526
|
] });
|
|
522
|
-
},
|
|
527
|
+
}, sn = /* @__PURE__ */ n("div")({
|
|
523
528
|
name: "SidebarContainer",
|
|
524
529
|
class: "s1abskp8",
|
|
525
530
|
propsAsIs: !1
|
|
526
|
-
}),
|
|
531
|
+
}), tn = ({
|
|
527
532
|
children: o,
|
|
528
533
|
direction: s,
|
|
529
534
|
style: i,
|
|
@@ -534,10 +539,10 @@ const qo = /* @__PURE__ */ n("div")({
|
|
|
534
539
|
style: i,
|
|
535
540
|
hiding: l,
|
|
536
541
|
className: t,
|
|
537
|
-
children: /* @__PURE__ */ e(
|
|
542
|
+
children: /* @__PURE__ */ e(sn, {
|
|
538
543
|
children: o
|
|
539
544
|
})
|
|
540
|
-
}),
|
|
545
|
+
}), an = (o) => (o == null ? void 0 : o.type) === S.INGAME_IAB11_LBAR || (o == null ? void 0 : o.type) === S.INGAME_IAB21_LBAR, rn = (o) => (o == null ? void 0 : o.type) === S.INGAME_IAB11 || (o == null ? void 0 : o.type) === S.INGAME_IAB21, ln = ({
|
|
541
546
|
advertisement: o,
|
|
542
547
|
close: s,
|
|
543
548
|
skipTypeCheck: i,
|
|
@@ -552,45 +557,54 @@ const qo = /* @__PURE__ */ n("div")({
|
|
|
552
557
|
controlVideo: u,
|
|
553
558
|
advertisementPaused: p,
|
|
554
559
|
togglePause: I
|
|
555
|
-
}) => o.promotion ? c && o.notification ? /* @__PURE__ */ e(
|
|
556
|
-
|
|
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,
|
|
557
569
|
{
|
|
558
570
|
markAsViewed: A,
|
|
559
571
|
promotionId: o.question.id,
|
|
560
572
|
promotion: o.promotion,
|
|
561
573
|
onClose: s,
|
|
574
|
+
open: a,
|
|
562
575
|
skipAutoClose: t,
|
|
563
576
|
externalAd: g,
|
|
564
577
|
controlVideo: u,
|
|
565
578
|
advertisementPaused: p,
|
|
566
579
|
togglePause: I
|
|
567
580
|
}
|
|
568
|
-
) }) : r && (i ||
|
|
569
|
-
|
|
581
|
+
) }) : r && (i || an(o.promotion)) ? /* @__PURE__ */ e(tn, { className: "PromoSidebarContainer", direction: r, hiding: !1, children: /* @__PURE__ */ e(
|
|
582
|
+
co,
|
|
570
583
|
{
|
|
571
584
|
markAsViewed: A,
|
|
572
585
|
promotionId: o.question.id,
|
|
573
586
|
promotion: o.promotion,
|
|
574
587
|
externalAd: g,
|
|
575
588
|
onClose: s,
|
|
589
|
+
open: a,
|
|
576
590
|
controlVideo: u,
|
|
577
591
|
skipAutoClose: t,
|
|
578
592
|
advertisementPaused: p,
|
|
579
593
|
togglePause: I
|
|
580
594
|
}
|
|
581
595
|
) }) : m ? /* @__PURE__ */ e(
|
|
582
|
-
|
|
596
|
+
Qo,
|
|
583
597
|
{
|
|
584
598
|
promotionId: o.question.id,
|
|
585
599
|
hiding: !1,
|
|
586
600
|
promotion: o.promotion,
|
|
587
601
|
direction: m
|
|
588
602
|
}
|
|
589
|
-
) : null : null,
|
|
603
|
+
) : null : null, dn = /* @__PURE__ */ n("div")({
|
|
590
604
|
name: "AdvertisementUIWrap",
|
|
591
605
|
class: "aa6pjif",
|
|
592
606
|
propsAsIs: !1
|
|
593
|
-
}),
|
|
607
|
+
}), cn = (o) => {
|
|
594
608
|
const s = o.target;
|
|
595
609
|
if (s instanceof HTMLAnchorElement && s.target === "_blank") {
|
|
596
610
|
const i = s.getAttribute("data-promo-id") || "", t = s.getAttribute("data-promo-type") || S.UNSET;
|
|
@@ -608,7 +622,7 @@ const qo = /* @__PURE__ */ n("div")({
|
|
|
608
622
|
}
|
|
609
623
|
});
|
|
610
624
|
}
|
|
611
|
-
},
|
|
625
|
+
}, pn = ({
|
|
612
626
|
gamification: o,
|
|
613
627
|
layoutMode: s,
|
|
614
628
|
skipAutoClose: i,
|
|
@@ -622,23 +636,23 @@ const qo = /* @__PURE__ */ n("div")({
|
|
|
622
636
|
controlVideo: g
|
|
623
637
|
}) => {
|
|
624
638
|
var u, p, I;
|
|
625
|
-
const $ = F(null), h =
|
|
639
|
+
const $ = F(null), h = uo(o.advertisement.$store);
|
|
626
640
|
Mo($, {
|
|
627
641
|
enabled: !!h.data,
|
|
628
642
|
event: "click",
|
|
629
|
-
listener:
|
|
643
|
+
listener: cn
|
|
630
644
|
});
|
|
631
645
|
const y = !r && !l;
|
|
632
646
|
if (h.data === void 0 || !A && h.isViewed)
|
|
633
647
|
return null;
|
|
634
|
-
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) ===
|
|
635
|
-
return /* @__PURE__ */ e(
|
|
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, {
|
|
636
650
|
ref: $,
|
|
637
651
|
style: {
|
|
638
652
|
height: y ? "auto" : "100%"
|
|
639
653
|
},
|
|
640
654
|
className: k("SL-AdvertisementUIWrap", m && "mobile-view", b && "SL-AdvertisementUIWrap--lower-third"),
|
|
641
|
-
children: /* @__PURE__ */ e(
|
|
655
|
+
children: /* @__PURE__ */ e(ln, {
|
|
642
656
|
skipTypeCheck: t,
|
|
643
657
|
sidebar: l,
|
|
644
658
|
banner: r,
|
|
@@ -655,7 +669,7 @@ const qo = /* @__PURE__ */ n("div")({
|
|
|
655
669
|
controlVideo: g
|
|
656
670
|
})
|
|
657
671
|
});
|
|
658
|
-
},
|
|
672
|
+
}, mn = ({
|
|
659
673
|
sdk: o,
|
|
660
674
|
sidebar: s,
|
|
661
675
|
externalAd: i,
|
|
@@ -667,8 +681,8 @@ const qo = /* @__PURE__ */ n("div")({
|
|
|
667
681
|
persistent: A,
|
|
668
682
|
notification: a
|
|
669
683
|
}) => {
|
|
670
|
-
const g =
|
|
671
|
-
if (
|
|
684
|
+
const g = uo(o.featuresList.getStore());
|
|
685
|
+
if (M(() => {
|
|
672
686
|
if (i) {
|
|
673
687
|
const p = document.createElement("script");
|
|
674
688
|
p.async = !0, p.src = "https://imasdk.googleapis.com/js/sdkloader/ima3.js", document.body.appendChild(p);
|
|
@@ -689,8 +703,8 @@ const qo = /* @__PURE__ */ n("div")({
|
|
|
689
703
|
});
|
|
690
704
|
if (!g)
|
|
691
705
|
return null;
|
|
692
|
-
const u = o.getFeature(
|
|
693
|
-
return u ? /* @__PURE__ */ e(
|
|
706
|
+
const u = o.getFeature(qo.GAMES);
|
|
707
|
+
return u ? /* @__PURE__ */ e(pn, {
|
|
694
708
|
gamification: u,
|
|
695
709
|
sidebar: s,
|
|
696
710
|
banner: t,
|
|
@@ -703,7 +717,7 @@ const qo = /* @__PURE__ */ n("div")({
|
|
|
703
717
|
externalAd: i,
|
|
704
718
|
controlVideo: o.controlVideoPlayer
|
|
705
719
|
}) : null;
|
|
706
|
-
},
|
|
720
|
+
}, hn = ({
|
|
707
721
|
event: o,
|
|
708
722
|
sidebar: s,
|
|
709
723
|
banner: i,
|
|
@@ -715,10 +729,10 @@ const qo = /* @__PURE__ */ n("div")({
|
|
|
715
729
|
skipTypeCheck: A,
|
|
716
730
|
externalAd: a
|
|
717
731
|
}) => {
|
|
718
|
-
const g =
|
|
732
|
+
const g = Oo(), u = _o(), p = Bo();
|
|
719
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: [
|
|
720
|
-
/* @__PURE__ */ e(
|
|
721
|
-
|
|
734
|
+
/* @__PURE__ */ e(xo, { customTheme: c ?? p, children: /* @__PURE__ */ e(
|
|
735
|
+
mn,
|
|
722
736
|
{
|
|
723
737
|
sdk: g,
|
|
724
738
|
sidebar: s,
|
|
@@ -736,6 +750,6 @@ const qo = /* @__PURE__ */ n("div")({
|
|
|
736
750
|
] }) : null;
|
|
737
751
|
};
|
|
738
752
|
export {
|
|
739
|
-
|
|
740
|
-
|
|
753
|
+
hn as StreamLayerSDKAdvertisement,
|
|
754
|
+
mn as StreamLayerSDKAdvertisementUI
|
|
741
755
|
};
|