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