@streamlayer/react 1.9.0 → 1.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/advertisement.js +1 -1
- package/lib/cjs/index2.js +34 -34
- package/lib/cjs/masters2.js +3 -3
- package/lib/cjs/useStreamLayerApp2.js +12 -12
- package/lib/dist/cjs/gamification-feature2.js +1 -1
- package/lib/dist/cjs/masters.js +54 -54
- package/lib/dist/es/gamification-feature2.js +5 -5
- package/lib/dist/es/index.js +3 -3
- package/lib/dist/es/masters.js +4200 -4180
- package/lib/dist/style.css +1 -1
- package/lib/es/advertisement.js +289 -267
- package/lib/es/index2.js +1965 -1952
- package/lib/es/masters2.js +231 -231
- package/lib/es/useStreamLayerApp2.js +1258 -1251
- package/lib/style.css +1 -1
- package/package.json +13 -13
package/lib/es/advertisement.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { e 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
|
-
}),
|
|
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:
|
|
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,88 +48,88 @@ 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
|
-
const { title: i, body: t, image: l, promotion: r } = o, { sponsorLogo: c, sponsorLogoMode:
|
|
109
|
-
return /* @__PURE__ */
|
|
110
|
-
/* @__PURE__ */
|
|
111
|
-
/* @__PURE__ */ e(
|
|
112
|
-
/* @__PURE__ */
|
|
113
|
-
i && /* @__PURE__ */ e(
|
|
114
|
-
t && /* @__PURE__ */ e(
|
|
108
|
+
const { title: i, body: t, image: l, promotion: r } = o, { sponsorLogo: c, sponsorLogoMode: m, imagePosition: A, ctaButton: a } = r;
|
|
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__ */
|
|
118
|
-
|
|
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__ */
|
|
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
|
|
@@ -137,7 +137,7 @@ const Do = /* @__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
|
|
@@ -145,31 +145,31 @@ const Do = /* @__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
|
-
}), Ie = () =>
|
|
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
|
|
@@ -177,158 +177,158 @@ const Do = /* @__PURE__ */ n("div")({
|
|
|
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]:
|
|
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
195
|
}, Oe = ({ src: o, imagePosition: s }) => {
|
|
196
|
-
const i =
|
|
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(
|
|
203
|
-
const { title: r, body: c, image:
|
|
204
|
-
return /* @__PURE__ */ e(
|
|
205
|
-
|
|
206
|
-
/* @__PURE__ */
|
|
207
|
-
/* @__PURE__ */ e(Oe, { src:
|
|
208
|
-
/* @__PURE__ */
|
|
209
|
-
r && /* @__PURE__ */ e(
|
|
201
|
+
if (o.promotion.mode === go.LOWER_THIRD)
|
|
202
|
+
return /* @__PURE__ */ e(me, { notification: o, open: s });
|
|
203
|
+
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(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
210
|
c && /* @__PURE__ */ e(he, { children: c })
|
|
211
211
|
] }),
|
|
212
|
-
/* @__PURE__ */
|
|
213
|
-
(
|
|
214
|
-
(
|
|
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
|
+
(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
|
|
259
|
-
}),
|
|
259
|
+
}), we = /* @__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__ */
|
|
306
|
-
children: [s > 1 && /* @__PURE__ */
|
|
307
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
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
|
-
let c = new r.AdDisplayContainer(o),
|
|
317
|
-
|
|
316
|
+
let c = new r.AdDisplayContainer(o), m = new r.AdsLoader(c), A = new r.AdsRequest(), a;
|
|
317
|
+
m.addEventListener(
|
|
318
318
|
r.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,
|
|
319
319
|
(u) => {
|
|
320
|
-
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, (
|
|
320
|
+
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();
|
|
321
321
|
},
|
|
322
322
|
!1
|
|
323
|
-
),
|
|
323
|
+
), m.addEventListener(
|
|
324
324
|
r.AdErrorEvent.Type.AD_ERROR,
|
|
325
325
|
() => {
|
|
326
326
|
console.log("ad error"), t == null || t();
|
|
327
327
|
},
|
|
328
328
|
!1
|
|
329
|
-
),
|
|
330
|
-
const
|
|
331
|
-
a == null || a.destroy(),
|
|
329
|
+
), A.linearAdSlotWidth = o.clientWidth, A.linearAdSlotHeight = o.clientHeight, A.adTagUrl = s, m.requestAds(A);
|
|
330
|
+
const g = () => {
|
|
331
|
+
a == null || a.destroy(), m == null || m.destroy(), c == null || c.destroy(), c = void 0, m = void 0, A = void 0, a = void 0;
|
|
332
332
|
};
|
|
333
333
|
return () => {
|
|
334
334
|
try {
|
|
@@ -336,17 +336,17 @@ const Do = /* @__PURE__ */ n("div")({
|
|
|
336
336
|
} catch (u) {
|
|
337
337
|
t == null || t(), console.log("AdsManager could not be started", u);
|
|
338
338
|
}
|
|
339
|
-
return
|
|
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,17 +355,17 @@ const Do = /* @__PURE__ */ n("div")({
|
|
|
355
355
|
skipAutoClose: r
|
|
356
356
|
}) => {
|
|
357
357
|
var c;
|
|
358
|
-
const
|
|
359
|
-
u(0),
|
|
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
|
+
u(0), I(0), h(0), a(!1), s == null || s({
|
|
360
360
|
muted: !1
|
|
361
361
|
});
|
|
362
362
|
}, [s]);
|
|
363
|
-
|
|
364
|
-
if (l != null && l.url &&
|
|
365
|
-
|
|
366
|
-
const f =
|
|
363
|
+
P(() => {
|
|
364
|
+
if (l != null && l.url && m.current) {
|
|
365
|
+
b();
|
|
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,
|
|
@@ -376,154 +376,168 @@ const Do = /* @__PURE__ */ n("div")({
|
|
|
376
376
|
}), a(!0);
|
|
377
377
|
},
|
|
378
378
|
onStop: () => {
|
|
379
|
-
t == null || t(),
|
|
379
|
+
t == null || t(), b();
|
|
380
380
|
},
|
|
381
381
|
onProgress: (C) => {
|
|
382
|
-
u(Math.round(C.duration - C.currentTime)),
|
|
382
|
+
u(Math.round(C.duration - C.currentTime)), I(C.totalAds), h(C.adPosition);
|
|
383
383
|
}
|
|
384
384
|
})();
|
|
385
|
-
return
|
|
386
|
-
|
|
385
|
+
return y.current = f, () => {
|
|
386
|
+
y.current = void 0, f();
|
|
387
387
|
};
|
|
388
388
|
}
|
|
389
|
-
}, [l == null ? void 0 : l.url, s,
|
|
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__ */
|
|
391
|
+
return /* @__PURE__ */ v(Io, {
|
|
392
392
|
className: "PromoOverlay",
|
|
393
|
-
children: [/* @__PURE__ */
|
|
394
|
-
children: [/* @__PURE__ */ e(
|
|
395
|
-
className:
|
|
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__ */
|
|
403
|
-
children: [/* @__PURE__ */ e(
|
|
404
|
-
time:
|
|
405
|
-
adCount:
|
|
402
|
+
}), /* @__PURE__ */ v(Xe, {
|
|
403
|
+
children: [/* @__PURE__ */ e(Ke, {
|
|
404
|
+
time: g,
|
|
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;
|
|
411
|
-
(f =
|
|
411
|
+
(f = y.current) == null || f.call(y), t == null || t(), b();
|
|
412
412
|
}
|
|
413
413
|
})]
|
|
414
414
|
})]
|
|
415
|
-
}), /* @__PURE__ */ e(
|
|
416
|
-
className:
|
|
417
|
-
children: /* @__PURE__ */ e(
|
|
418
|
-
ref:
|
|
415
|
+
}), /* @__PURE__ */ e(No, {
|
|
416
|
+
className: k(Ze, A && Qe, !A && on),
|
|
417
|
+
children: /* @__PURE__ */ e(Je, {
|
|
418
|
+
ref: m
|
|
419
419
|
})
|
|
420
420
|
})]
|
|
421
421
|
});
|
|
422
|
-
},
|
|
423
|
-
var s, i, t, l, r, c,
|
|
424
|
-
const {
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
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
|
+
const {
|
|
425
|
+
promotion: d,
|
|
426
|
+
advertisementPaused: Co,
|
|
427
|
+
togglePause: E,
|
|
428
|
+
controlVideo: _,
|
|
429
|
+
skipAutoClose: To,
|
|
430
|
+
promotionId: B,
|
|
431
|
+
onClose: So,
|
|
432
|
+
markAsViewed: w,
|
|
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
|
+
if (P(() => {
|
|
436
|
+
E == null || E(so || x);
|
|
437
|
+
}, []), P(() => {
|
|
438
|
+
B && d.type && w && w();
|
|
439
|
+
}, [B, d.type, w]), P(() => () => {
|
|
440
|
+
_ == null || _({ muted: !1 });
|
|
441
|
+
}, [_]), no)
|
|
442
|
+
return /* @__PURE__ */ e(en, { ...o, externalAd: no });
|
|
443
|
+
let L = (l = d.banner) == null ? void 0 : l.url;
|
|
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" }),
|
|
450
|
+
/* @__PURE__ */ v(
|
|
451
|
+
we,
|
|
438
452
|
{
|
|
439
453
|
style: {
|
|
440
|
-
paddingLeft: (
|
|
454
|
+
paddingLeft: (m = d.sponsor) != null && m.logo && d.logoMode === M.LEFT ? "0px" : "8px"
|
|
441
455
|
},
|
|
442
456
|
children: [
|
|
443
|
-
((
|
|
444
|
-
/* @__PURE__ */
|
|
445
|
-
/* @__PURE__ */ e(
|
|
446
|
-
/* @__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" })
|
|
447
461
|
] })
|
|
448
462
|
]
|
|
449
463
|
}
|
|
450
464
|
)
|
|
451
465
|
] }),
|
|
452
466
|
/* @__PURE__ */ e(
|
|
453
|
-
|
|
467
|
+
po,
|
|
454
468
|
{
|
|
455
469
|
className: "ClosePromoIcon",
|
|
456
|
-
close:
|
|
457
|
-
autoClose: (
|
|
458
|
-
duration:
|
|
459
|
-
isPlaying:
|
|
470
|
+
close: So,
|
|
471
|
+
autoClose: (g = d.closeTimer) == null ? void 0 : g.auto,
|
|
472
|
+
duration: To ? 0 : (u = d.closeTimer) == null ? void 0 : u.seconds,
|
|
473
|
+
isPlaying: U
|
|
460
474
|
}
|
|
461
475
|
)
|
|
462
476
|
] }),
|
|
463
|
-
/* @__PURE__ */
|
|
464
|
-
|
|
465
|
-
/* @__PURE__ */ e(
|
|
466
|
-
|
|
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,
|
|
467
481
|
{
|
|
468
|
-
source: (
|
|
469
|
-
poster: (O = (
|
|
470
|
-
aspectRatio:
|
|
482
|
+
source: (y = (h = d.banner) == null ? void 0 : h.video) == null ? void 0 : y.url,
|
|
483
|
+
poster: (O = (b = d.banner) == null ? void 0 : b.video) == null ? void 0 : O.thumbnailUrl,
|
|
484
|
+
aspectRatio: V ? "1/1" : "16/9",
|
|
471
485
|
onPause: () => {
|
|
472
|
-
|
|
486
|
+
x && (E == null || E(!0));
|
|
473
487
|
},
|
|
474
488
|
onPlay: () => {
|
|
475
|
-
|
|
489
|
+
D.emit("advertisement", {
|
|
476
490
|
action: "videoPlay",
|
|
477
491
|
payload: {
|
|
478
|
-
id:
|
|
492
|
+
id: B,
|
|
479
493
|
type: d.type
|
|
480
494
|
}
|
|
481
|
-
}),
|
|
495
|
+
}), E == null || E(!1);
|
|
482
496
|
},
|
|
483
|
-
controlVideo:
|
|
484
|
-
autoPlay:
|
|
497
|
+
controlVideo: _,
|
|
498
|
+
autoPlay: x
|
|
485
499
|
}
|
|
486
|
-
) : (f = d.banner) != null && f.imageUrl ? /* @__PURE__ */ e(
|
|
487
|
-
!
|
|
488
|
-
((
|
|
489
|
-
((
|
|
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 })
|
|
490
504
|
] })
|
|
491
505
|
] }),
|
|
492
|
-
d.buttonType !==
|
|
493
|
-
|
|
506
|
+
d.buttonType !== Ro.NO_BUTTON && /* @__PURE__ */ e(Ue, { children: /* @__PURE__ */ e(
|
|
507
|
+
Fe,
|
|
494
508
|
{
|
|
495
|
-
href:
|
|
509
|
+
href: L,
|
|
496
510
|
style: {
|
|
497
|
-
backgroundColor: ((
|
|
498
|
-
color: ((Q = (
|
|
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"
|
|
499
513
|
},
|
|
500
514
|
"data-analytics": "button",
|
|
501
|
-
"data-promo-id":
|
|
515
|
+
"data-promo-id": B,
|
|
502
516
|
"data-promo-type": d.type,
|
|
503
517
|
target: "_blank",
|
|
504
|
-
children: (
|
|
518
|
+
children: (eo = (oo = d.banner) == null ? void 0 : oo.ctaButton) == null ? void 0 : eo.label
|
|
505
519
|
}
|
|
506
520
|
) })
|
|
507
521
|
] });
|
|
508
|
-
},
|
|
522
|
+
}, nn = /* @__PURE__ */ n("div")({
|
|
509
523
|
name: "SidebarContainer",
|
|
510
524
|
class: "s1abskp8",
|
|
511
525
|
propsAsIs: !1
|
|
512
|
-
}),
|
|
526
|
+
}), sn = ({
|
|
513
527
|
children: o,
|
|
514
528
|
direction: s,
|
|
515
529
|
style: i,
|
|
516
530
|
className: t,
|
|
517
531
|
hiding: l
|
|
518
|
-
}) => /* @__PURE__ */ e(
|
|
532
|
+
}) => /* @__PURE__ */ e(z, {
|
|
519
533
|
direction: s,
|
|
520
534
|
style: i,
|
|
521
535
|
hiding: l,
|
|
522
536
|
className: t,
|
|
523
|
-
children: /* @__PURE__ */ e(
|
|
537
|
+
children: /* @__PURE__ */ e(nn, {
|
|
524
538
|
children: o
|
|
525
539
|
})
|
|
526
|
-
}),
|
|
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 = ({
|
|
527
541
|
advertisement: o,
|
|
528
542
|
close: s,
|
|
529
543
|
skipTypeCheck: i,
|
|
@@ -531,56 +545,62 @@ const Do = /* @__PURE__ */ n("div")({
|
|
|
531
545
|
layoutMode: l = "side-by-side",
|
|
532
546
|
sidebar: r,
|
|
533
547
|
isNotification: c,
|
|
534
|
-
banner:
|
|
535
|
-
markAsViewed:
|
|
548
|
+
banner: m,
|
|
549
|
+
markAsViewed: A,
|
|
536
550
|
open: a,
|
|
537
|
-
externalAd:
|
|
538
|
-
controlVideo: u
|
|
539
|
-
|
|
540
|
-
|
|
551
|
+
externalAd: g,
|
|
552
|
+
controlVideo: u,
|
|
553
|
+
advertisementPaused: p,
|
|
554
|
+
togglePause: I
|
|
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,
|
|
541
557
|
{
|
|
542
|
-
markAsViewed:
|
|
558
|
+
markAsViewed: A,
|
|
543
559
|
promotionId: o.question.id,
|
|
544
560
|
promotion: o.promotion,
|
|
545
561
|
onClose: s,
|
|
546
562
|
skipAutoClose: t,
|
|
547
|
-
externalAd:
|
|
548
|
-
controlVideo: u
|
|
563
|
+
externalAd: g,
|
|
564
|
+
controlVideo: u,
|
|
565
|
+
advertisementPaused: p,
|
|
566
|
+
togglePause: I
|
|
549
567
|
}
|
|
550
|
-
) }) : r && (i ||
|
|
551
|
-
|
|
568
|
+
) }) : r && (i || tn(o.promotion)) ? /* @__PURE__ */ e(sn, { className: "PromoSidebarContainer", direction: r, hiding: !1, children: /* @__PURE__ */ e(
|
|
569
|
+
lo,
|
|
552
570
|
{
|
|
553
|
-
markAsViewed:
|
|
571
|
+
markAsViewed: A,
|
|
554
572
|
promotionId: o.question.id,
|
|
555
573
|
promotion: o.promotion,
|
|
556
|
-
externalAd:
|
|
574
|
+
externalAd: g,
|
|
557
575
|
onClose: s,
|
|
558
576
|
controlVideo: u,
|
|
559
|
-
skipAutoClose: t
|
|
577
|
+
skipAutoClose: t,
|
|
578
|
+
advertisementPaused: p,
|
|
579
|
+
togglePause: I
|
|
560
580
|
}
|
|
561
|
-
) }) :
|
|
562
|
-
|
|
581
|
+
) }) : m ? /* @__PURE__ */ e(
|
|
582
|
+
Xo,
|
|
563
583
|
{
|
|
564
584
|
promotionId: o.question.id,
|
|
565
585
|
hiding: !1,
|
|
566
586
|
promotion: o.promotion,
|
|
567
|
-
direction:
|
|
587
|
+
direction: m
|
|
568
588
|
}
|
|
569
|
-
) : null : null,
|
|
589
|
+
) : null : null, ln = /* @__PURE__ */ n("div")({
|
|
570
590
|
name: "AdvertisementUIWrap",
|
|
571
591
|
class: "aa6pjif",
|
|
572
592
|
propsAsIs: !1
|
|
573
|
-
}),
|
|
593
|
+
}), dn = (o) => {
|
|
574
594
|
const s = o.target;
|
|
575
595
|
if (s instanceof HTMLAnchorElement && s.target === "_blank") {
|
|
576
|
-
const i = s.getAttribute("data-promo-id") || "", t = s.getAttribute("data-promo-type") ||
|
|
577
|
-
s.getAttribute("data-analytics") === "button" &&
|
|
596
|
+
const i = s.getAttribute("data-promo-id") || "", t = s.getAttribute("data-promo-type") || S.UNSET;
|
|
597
|
+
s.getAttribute("data-analytics") === "button" && D.emit("advertisement", {
|
|
578
598
|
action: "buttonSelect",
|
|
579
599
|
payload: {
|
|
580
600
|
id: i,
|
|
581
601
|
type: t
|
|
582
602
|
}
|
|
583
|
-
}), s.getAttribute("data-analytics") === "banner" &&
|
|
603
|
+
}), s.getAttribute("data-analytics") === "banner" && D.emit("advertisement", {
|
|
584
604
|
action: "bannerSelect",
|
|
585
605
|
payload: {
|
|
586
606
|
id: i,
|
|
@@ -588,7 +608,7 @@ const Do = /* @__PURE__ */ n("div")({
|
|
|
588
608
|
}
|
|
589
609
|
});
|
|
590
610
|
}
|
|
591
|
-
},
|
|
611
|
+
}, cn = ({
|
|
592
612
|
gamification: o,
|
|
593
613
|
layoutMode: s,
|
|
594
614
|
skipAutoClose: i,
|
|
@@ -596,44 +616,46 @@ const Do = /* @__PURE__ */ n("div")({
|
|
|
596
616
|
sidebar: l,
|
|
597
617
|
banner: r,
|
|
598
618
|
notification: c,
|
|
599
|
-
isMobileScreen:
|
|
600
|
-
persistent:
|
|
619
|
+
isMobileScreen: m,
|
|
620
|
+
persistent: A,
|
|
601
621
|
externalAd: a,
|
|
602
|
-
controlVideo:
|
|
622
|
+
controlVideo: g
|
|
603
623
|
}) => {
|
|
604
|
-
var u,
|
|
605
|
-
const $ =
|
|
606
|
-
|
|
607
|
-
enabled: !!
|
|
624
|
+
var u, p, I;
|
|
625
|
+
const $ = F(null), h = mo(o.advertisement.$store);
|
|
626
|
+
Mo($, {
|
|
627
|
+
enabled: !!h.data,
|
|
608
628
|
event: "click",
|
|
609
|
-
listener:
|
|
629
|
+
listener: dn
|
|
610
630
|
});
|
|
611
|
-
const
|
|
612
|
-
if (
|
|
631
|
+
const y = !r && !l;
|
|
632
|
+
if (h.data === void 0 || !A && h.isViewed)
|
|
613
633
|
return null;
|
|
614
|
-
const
|
|
615
|
-
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, {
|
|
616
636
|
ref: $,
|
|
617
637
|
style: {
|
|
618
|
-
height:
|
|
638
|
+
height: y ? "auto" : "100%"
|
|
619
639
|
},
|
|
620
|
-
className:
|
|
621
|
-
children: /* @__PURE__ */ e(
|
|
640
|
+
className: k("SL-AdvertisementUIWrap", m && "mobile-view", b && "SL-AdvertisementUIWrap--lower-third"),
|
|
641
|
+
children: /* @__PURE__ */ e(rn, {
|
|
622
642
|
skipTypeCheck: t,
|
|
623
643
|
sidebar: l,
|
|
624
644
|
banner: r,
|
|
625
|
-
advertisement:
|
|
626
|
-
|
|
627
|
-
|
|
645
|
+
advertisement: h.data,
|
|
646
|
+
advertisementPaused: h.isPaused,
|
|
647
|
+
togglePause: h.togglePause,
|
|
648
|
+
close: h.close,
|
|
649
|
+
externalAd: a ? h.externalAd : void 0,
|
|
628
650
|
markAsViewed: o.advertisement.markAsViewed,
|
|
629
651
|
open: o.advertisement.open,
|
|
630
652
|
layoutMode: s,
|
|
631
653
|
isNotification: c,
|
|
632
654
|
skipAutoClose: i,
|
|
633
|
-
controlVideo:
|
|
655
|
+
controlVideo: g
|
|
634
656
|
})
|
|
635
657
|
});
|
|
636
|
-
},
|
|
658
|
+
}, pn = ({
|
|
637
659
|
sdk: o,
|
|
638
660
|
sidebar: s,
|
|
639
661
|
externalAd: i,
|
|
@@ -641,15 +663,15 @@ const Do = /* @__PURE__ */ n("div")({
|
|
|
641
663
|
skipAutoClose: l,
|
|
642
664
|
skipTypeCheck: r,
|
|
643
665
|
layoutMode: c,
|
|
644
|
-
isMobileScreen:
|
|
645
|
-
persistent:
|
|
666
|
+
isMobileScreen: m,
|
|
667
|
+
persistent: A,
|
|
646
668
|
notification: a
|
|
647
669
|
}) => {
|
|
648
|
-
const
|
|
649
|
-
if (
|
|
670
|
+
const g = mo(o.featuresList.getStore());
|
|
671
|
+
if (P(() => {
|
|
650
672
|
if (i) {
|
|
651
|
-
const
|
|
652
|
-
|
|
673
|
+
const p = document.createElement("script");
|
|
674
|
+
p.async = !0, p.src = "https://imasdk.googleapis.com/js/sdkloader/ima3.js", document.body.appendChild(p);
|
|
653
675
|
}
|
|
654
676
|
}, [i]), s && t)
|
|
655
677
|
return /* @__PURE__ */ e("div", {
|
|
@@ -665,23 +687,23 @@ const Do = /* @__PURE__ */ n("div")({
|
|
|
665
687
|
},
|
|
666
688
|
children: "externalAd is not supported with banner"
|
|
667
689
|
});
|
|
668
|
-
if (!
|
|
690
|
+
if (!g)
|
|
669
691
|
return null;
|
|
670
|
-
const u = o.getFeature(
|
|
671
|
-
return u ? /* @__PURE__ */ e(
|
|
692
|
+
const u = o.getFeature(Do.GAMES);
|
|
693
|
+
return u ? /* @__PURE__ */ e(cn, {
|
|
672
694
|
gamification: u,
|
|
673
695
|
sidebar: s,
|
|
674
696
|
banner: t,
|
|
675
697
|
layoutMode: c,
|
|
676
|
-
isMobileScreen:
|
|
677
|
-
persistent:
|
|
698
|
+
isMobileScreen: m,
|
|
699
|
+
persistent: A,
|
|
678
700
|
notification: a,
|
|
679
701
|
skipTypeCheck: r,
|
|
680
702
|
skipAutoClose: l,
|
|
681
703
|
externalAd: i,
|
|
682
704
|
controlVideo: o.controlVideoPlayer
|
|
683
705
|
}) : null;
|
|
684
|
-
},
|
|
706
|
+
}, gn = ({
|
|
685
707
|
event: o,
|
|
686
708
|
sidebar: s,
|
|
687
709
|
banner: i,
|
|
@@ -689,22 +711,22 @@ const Do = /* @__PURE__ */ n("div")({
|
|
|
689
711
|
skipAutoClose: l,
|
|
690
712
|
persistent: r,
|
|
691
713
|
theme: c,
|
|
692
|
-
notification:
|
|
693
|
-
skipTypeCheck:
|
|
714
|
+
notification: m,
|
|
715
|
+
skipTypeCheck: A,
|
|
694
716
|
externalAd: a
|
|
695
717
|
}) => {
|
|
696
|
-
const
|
|
697
|
-
return
|
|
698
|
-
/* @__PURE__ */ e(
|
|
699
|
-
|
|
718
|
+
const g = Po(), u = Oo(), p = _o();
|
|
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: [
|
|
720
|
+
/* @__PURE__ */ e(Bo, { customTheme: c ?? p, children: /* @__PURE__ */ e(
|
|
721
|
+
pn,
|
|
700
722
|
{
|
|
701
|
-
sdk:
|
|
723
|
+
sdk: g,
|
|
702
724
|
sidebar: s,
|
|
703
725
|
banner: i,
|
|
704
726
|
isMobileScreen: t,
|
|
705
727
|
persistent: r,
|
|
706
|
-
notification:
|
|
707
|
-
skipTypeCheck:
|
|
728
|
+
notification: m,
|
|
729
|
+
skipTypeCheck: A,
|
|
708
730
|
skipAutoClose: l,
|
|
709
731
|
layoutMode: "side-by-side",
|
|
710
732
|
externalAd: a
|
|
@@ -714,6 +736,6 @@ const Do = /* @__PURE__ */ n("div")({
|
|
|
714
736
|
] }) : null;
|
|
715
737
|
};
|
|
716
738
|
export {
|
|
717
|
-
|
|
718
|
-
|
|
739
|
+
gn as StreamLayerSDKAdvertisement,
|
|
740
|
+
pn as StreamLayerSDKAdvertisementUI
|
|
719
741
|
};
|